mirror of
https://github.com/nasa/openmct.git
synced 2025-06-15 05:38:12 +00:00
[Table] style refactor (#2157)
* [Table] Use Vue SFCs Use Vue SFCs. Use inject/provide to pass services to components instead of wrapping components in closures. * Convert CSS to BEM - WIP! - All in progress; - Headers table divorced from old; - Sizing working properly at this point; * Reset legacy file, undo unintended change commit * Convert CSS to BEM - WIP! - All in progress; - Sizing table divorced from legacy; * Convert CSS to BEM - WIP! - All in progress; - Table body divorced from legacy; * Convert CSS to BEM - WIP! - Near done, converted tabular-holder from legacy; - Unit testing in main view and in Layout frames; - Modded legacy CSS to properly hide control-bar with new naming when in Layout frame; * Convert CSS to BEM - done - Cleanup and organization; * Convert CSS to BEM - Further code cleanup; * Convert CSS to BEM - Further code cleanup; - Remove legacy table style imports;
This commit is contained in:
@ -36,12 +36,12 @@ define([
|
||||
TelemetryTableConfiguration
|
||||
) {
|
||||
class TelemetryTable extends EventEmitter {
|
||||
constructor(domainObject, rowCount, openmct) {
|
||||
constructor(domainObject, openmct) {
|
||||
super();
|
||||
|
||||
this.domainObject = domainObject;
|
||||
this.openmct = openmct;
|
||||
this.rowCount = rowCount;
|
||||
this.rowCount = 100;
|
||||
this.subscriptions = {};
|
||||
this.tableComposition = undefined;
|
||||
this.telemetryObjects = [];
|
||||
@ -85,10 +85,10 @@ define([
|
||||
|
||||
this.configuration.addColumnsForAllObjects(composition);
|
||||
composition.forEach(this.addTelemetryObject);
|
||||
|
||||
|
||||
this.tableComposition.on('add', this.addTelemetryObject);
|
||||
this.tableComposition.on('remove', this.removeTelemetryObject);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -158,7 +158,7 @@ define([
|
||||
|
||||
getColumnMapForObject(objectKeyString) {
|
||||
let columns = this.configuration.getColumns();
|
||||
|
||||
|
||||
return columns[objectKeyString].reduce((map, column) => {
|
||||
map[column.getKey()] = column;
|
||||
return map;
|
||||
@ -189,7 +189,7 @@ define([
|
||||
this.filteredRows.destroy();
|
||||
Object.keys(this.subscriptions).forEach(this.unsubscribe, this);
|
||||
this.openmct.time.off('bounds', this.refreshData);
|
||||
|
||||
|
||||
if (this.tableComposition !== undefined) {
|
||||
this.tableComposition.off('add', this.addTelemetryObject);
|
||||
this.tableComposition.off('remove', this.removeTelemetryObject);
|
||||
@ -198,4 +198,4 @@ define([
|
||||
}
|
||||
|
||||
return TelemetryTable;
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user