@deephaven/iris-grid 0.72.1-beta.4 → 0.72.1-core-plugins.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AdvancedFilterCreator.css.map +1 -1
- package/dist/AdvancedFilterCreator.js +3 -3
- package/dist/AdvancedFilterCreator.js.map +1 -1
- package/dist/AdvancedFilterCreatorSelectValue.css.map +1 -1
- package/dist/ColumnStatistics.css.map +1 -1
- package/dist/ColumnStatistics.js +1 -4
- package/dist/ColumnStatistics.js.map +1 -1
- package/dist/CrossColumnSearch.css.map +1 -1
- package/dist/FilterInputField.css.map +1 -1
- package/dist/GotoRow.css.map +1 -1
- package/dist/GotoRow.d.ts.map +1 -1
- package/dist/GotoRow.js +4 -6
- package/dist/GotoRow.js.map +1 -1
- package/dist/IrisGrid.d.ts +3 -1
- package/dist/IrisGrid.d.ts.map +1 -1
- package/dist/IrisGrid.js +20 -5
- package/dist/IrisGrid.js.map +1 -1
- package/dist/IrisGridModel.d.ts +4 -6
- package/dist/IrisGridModel.d.ts.map +1 -1
- package/dist/IrisGridModel.js +8 -7
- package/dist/IrisGridModel.js.map +1 -1
- package/dist/IrisGridPartitionSelector.css.map +1 -1
- package/dist/IrisGridPartitionSelector.d.ts.map +1 -1
- package/dist/IrisGridPartitionSelector.js +37 -29
- package/dist/IrisGridPartitionSelector.js.map +1 -1
- package/dist/IrisGridProxyModel.d.ts +10 -112
- package/dist/IrisGridProxyModel.d.ts.map +1 -1
- package/dist/IrisGridProxyModel.js +43 -349
- package/dist/IrisGridProxyModel.js.map +1 -1
- package/dist/IrisGridTableModel.d.ts +8 -6
- package/dist/IrisGridTableModel.d.ts.map +1 -1
- package/dist/IrisGridTableModel.js +13 -8
- package/dist/IrisGridTableModel.js.map +1 -1
- package/dist/IrisGridTableModelTemplate.d.ts +9 -6
- package/dist/IrisGridTableModelTemplate.d.ts.map +1 -1
- package/dist/IrisGridTableModelTemplate.js +32 -13
- package/dist/IrisGridTableModelTemplate.js.map +1 -1
- package/dist/IrisGridTestUtils.d.ts +1 -1
- package/dist/IrisGridTestUtils.d.ts.map +1 -1
- package/dist/IrisGridTestUtils.js +3 -1
- package/dist/IrisGridTestUtils.js.map +1 -1
- package/dist/IrisGridTreeTableModel.d.ts +1 -0
- package/dist/IrisGridTreeTableModel.d.ts.map +1 -1
- package/dist/IrisGridTreeTableModel.js +13 -3
- package/dist/IrisGridTreeTableModel.js.map +1 -1
- package/dist/LazyIrisGrid.d.ts +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/mousehandlers/IrisGridCellOverflowMouseHandler.js +1 -1
- package/dist/mousehandlers/IrisGridCellOverflowMouseHandler.js.map +1 -1
- package/dist/mousehandlers/IrisGridContextMenuHandler.d.ts +2 -2
- package/dist/mousehandlers/IrisGridContextMenuHandler.d.ts.map +1 -1
- package/dist/mousehandlers/IrisGridContextMenuHandler.js +3 -2
- package/dist/mousehandlers/IrisGridContextMenuHandler.js.map +1 -1
- package/dist/mousehandlers/IrisGridRowTreeMouseHandler.js +1 -1
- package/dist/mousehandlers/IrisGridRowTreeMouseHandler.js.map +1 -1
- package/dist/mousehandlers/IrisGridTokenMouseHandler.js +1 -1
- package/dist/mousehandlers/IrisGridTokenMouseHandler.js.map +1 -1
- package/dist/sidebar/ChartBuilder.css +0 -1
- package/dist/sidebar/ChartBuilder.css.map +1 -1
- package/dist/sidebar/ChartBuilder.d.ts +1 -1
- package/dist/sidebar/ChartBuilder.d.ts.map +1 -1
- package/dist/sidebar/ChartBuilder.js +10 -8
- package/dist/sidebar/ChartBuilder.js.map +1 -1
- package/dist/sidebar/CustomColumnBuilder.css +1 -1
- package/dist/sidebar/CustomColumnBuilder.css.map +1 -1
- package/dist/sidebar/CustomColumnBuilder.js +3 -3
- package/dist/sidebar/CustomColumnBuilder.js.map +1 -1
- package/dist/sidebar/RollupRows.css.map +1 -1
- package/dist/sidebar/SelectDistinctBuilder.js +1 -1
- package/dist/sidebar/SelectDistinctBuilder.js.map +1 -1
- package/dist/sidebar/TableCsvExporter.css.map +1 -1
- package/dist/sidebar/TableCsvExporter.d.ts +1 -1
- package/dist/sidebar/TableCsvExporter.d.ts.map +1 -1
- package/dist/sidebar/TableCsvExporter.js +11 -9
- package/dist/sidebar/TableCsvExporter.js.map +1 -1
- package/dist/sidebar/aggregations/AggregationEdit.css.map +1 -1
- package/dist/sidebar/aggregations/Aggregations.css.map +1 -1
- package/dist/sidebar/aggregations/Aggregations.d.ts.map +1 -1
- package/dist/sidebar/aggregations/Aggregations.js +9 -6
- package/dist/sidebar/aggregations/Aggregations.js.map +1 -1
- package/dist/sidebar/conditional-formatting/ColumnFormatEditor.d.ts.map +1 -1
- package/dist/sidebar/conditional-formatting/ColumnFormatEditor.js +7 -12
- package/dist/sidebar/conditional-formatting/ColumnFormatEditor.js.map +1 -1
- package/dist/sidebar/conditional-formatting/ConditionalFormatEditor.css +3 -0
- package/dist/sidebar/conditional-formatting/ConditionalFormatEditor.css.map +1 -1
- package/dist/sidebar/conditional-formatting/ConditionalFormattingMenu.css.map +1 -1
- package/dist/sidebar/conditional-formatting/RowFormatEditor.d.ts.map +1 -1
- package/dist/sidebar/conditional-formatting/RowFormatEditor.js +7 -12
- package/dist/sidebar/conditional-formatting/RowFormatEditor.js.map +1 -1
- package/dist/sidebar/conditional-formatting/StyleEditor.css.map +1 -1
- package/dist/sidebar/visibility-ordering-builder/VisibilityOrderingBuilder.css.map +1 -1
- package/dist/sidebar/visibility-ordering-builder/VisibilityOrderingGroup.css.map +1 -1
- package/dist/sidebar/visibility-ordering-builder/sortable-tree/TreeItem.css.map +1 -1
- package/package.json +20 -19
- package/dist/TableViewportUpdater.d.ts +0 -49
- package/dist/TableViewportUpdater.d.ts.map +0 -1
- package/dist/TableViewportUpdater.js +0 -161
- package/dist/TableViewportUpdater.js.map +0 -1
- package/dist/TreeTableViewportUpdater.d.ts +0 -37
- package/dist/TreeTableViewportUpdater.d.ts.map +0 -1
- package/dist/TreeTableViewportUpdater.js +0 -96
- package/dist/TreeTableViewportUpdater.js.map +0 -1
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { Formatter } from '@deephaven/jsapi-utils';
|
|
2
|
-
import { CancelablePromise } from '@deephaven/utils';
|
|
3
2
|
import type { dh as DhType } from '@deephaven/jsapi-types';
|
|
4
|
-
import { EditableGridModel, ModelIndex, MoveOperation } from '@deephaven/grid';
|
|
5
|
-
import IrisGridTableModel from './IrisGridTableModel';
|
|
6
|
-
import IrisGridTreeTableModel from './IrisGridTreeTableModel';
|
|
7
3
|
import IrisGridModel from './IrisGridModel';
|
|
8
|
-
import { ColumnName
|
|
9
|
-
import type ColumnHeaderGroup from './ColumnHeaderGroup';
|
|
4
|
+
import { ColumnName } from './CommonTypes';
|
|
10
5
|
import { PartitionConfig, PartitionedGridModel } from './PartitionedGridModel';
|
|
11
6
|
/**
|
|
12
7
|
* Model which proxies calls to other IrisGridModels.
|
|
13
8
|
* This allows for operations that generate new tables, like rollups.
|
|
9
|
+
* The proxy model will call any methods it has implemented and delegate any
|
|
10
|
+
* it does not implement to the underlying model.
|
|
14
11
|
*/
|
|
15
12
|
declare class IrisGridProxyModel extends IrisGridModel implements PartitionedGridModel {
|
|
16
13
|
/**
|
|
@@ -19,18 +16,14 @@ declare class IrisGridProxyModel extends IrisGridModel implements PartitionedGri
|
|
|
19
16
|
* @param formatter The formatter to use when getting formats
|
|
20
17
|
* @param inputTable Iris input table associated with this table
|
|
21
18
|
*/
|
|
22
|
-
dh: typeof DhType;
|
|
23
|
-
originalModel: IrisGridModel;
|
|
24
19
|
model: IrisGridModel;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
columns?: DhType.Column[];
|
|
33
|
-
};
|
|
20
|
+
dh: typeof DhType;
|
|
21
|
+
private originalModel;
|
|
22
|
+
private modelPromise;
|
|
23
|
+
private rollup;
|
|
24
|
+
private partition;
|
|
25
|
+
private selectDistinct;
|
|
26
|
+
private currentViewport?;
|
|
34
27
|
constructor(dh: typeof DhType, table: DhType.Table | DhType.TreeTable | DhType.PartitionedTable, formatter?: Formatter, inputTable?: DhType.InputTable | null);
|
|
35
28
|
close(): void;
|
|
36
29
|
handleModelEvent(event: CustomEvent): void;
|
|
@@ -40,118 +33,23 @@ declare class IrisGridProxyModel extends IrisGridModel implements PartitionedGri
|
|
|
40
33
|
stopListening(): void;
|
|
41
34
|
addListeners(model: IrisGridModel): void;
|
|
42
35
|
removeListeners(model: IrisGridModel): void;
|
|
43
|
-
get rowCount(): number;
|
|
44
|
-
get columnCount(): number;
|
|
45
|
-
get floatingTopRowCount(): number;
|
|
46
|
-
get floatingBottomRowCount(): number;
|
|
47
|
-
get floatingLeftColumnCount(): number;
|
|
48
|
-
get floatingRightColumnCount(): number;
|
|
49
|
-
textForCell: IrisGridModel['textForCell'];
|
|
50
|
-
truncationCharForCell: IrisGridModel['truncationCharForCell'];
|
|
51
|
-
textAlignForCell: IrisGridModel['textAlignForCell'];
|
|
52
|
-
colorForCell: IrisGridModel['colorForCell'];
|
|
53
|
-
backgroundColorForCell: IrisGridModel['backgroundColorForCell'];
|
|
54
|
-
textForColumnHeader: IrisGridModel['textForColumnHeader'];
|
|
55
|
-
colorForColumnHeader: IrisGridModel['colorForColumnHeader'];
|
|
56
|
-
textForRowHeader: IrisGridModel['textForRowHeader'];
|
|
57
|
-
textForRowFooter: IrisGridModel['textForRowFooter'];
|
|
58
|
-
isRowMovable: IrisGridModel['isRowMovable'];
|
|
59
|
-
isColumnMovable: IrisGridModel['isColumnMovable'];
|
|
60
|
-
isColumnFrozen(x: ModelIndex): boolean;
|
|
61
|
-
isColumnSortable(index: number): boolean;
|
|
62
|
-
get hasExpandableRows(): boolean;
|
|
63
|
-
get isExpandAllAvailable(): boolean;
|
|
64
|
-
isRowExpandable: IrisGridTreeTableModel['isRowExpandable'];
|
|
65
|
-
isRowExpanded: IrisGridTreeTableModel['isRowExpanded'];
|
|
66
|
-
setRowExpanded: IrisGridTreeTableModel['setRowExpanded'];
|
|
67
|
-
expandAll: IrisGridTreeTableModel['expandAll'];
|
|
68
|
-
collapseAll: IrisGridTreeTableModel['collapseAll'];
|
|
69
|
-
depthForRow: IrisGridTreeTableModel['depthForRow'];
|
|
70
|
-
get isExportAvailable(): boolean;
|
|
71
|
-
get isColumnStatisticsAvailable(): boolean;
|
|
72
|
-
get isValuesTableAvailable(): boolean;
|
|
73
36
|
get isCustomColumnsAvailable(): boolean;
|
|
74
|
-
get isFormatColumnsAvailable(): boolean;
|
|
75
|
-
get isChartBuilderAvailable(): boolean;
|
|
76
37
|
get isRollupAvailable(): boolean;
|
|
77
38
|
get isSelectDistinctAvailable(): boolean;
|
|
78
|
-
get isTotalsAvailable(): boolean;
|
|
79
|
-
get isReversible(): boolean;
|
|
80
|
-
get columns(): readonly DhType.Column[];
|
|
81
|
-
get initialMovedColumns(): readonly MoveOperation[];
|
|
82
|
-
get initialMovedRows(): readonly MoveOperation[];
|
|
83
|
-
get layoutHints(): DhType.LayoutHints | null | undefined;
|
|
84
|
-
get frontColumns(): readonly ColumnName[];
|
|
85
|
-
get backColumns(): readonly ColumnName[];
|
|
86
|
-
get frozenColumns(): readonly ColumnName[];
|
|
87
|
-
getColumnHeaderGroup: IrisGridModel['getColumnHeaderGroup'];
|
|
88
|
-
get columnHeaderGroups(): readonly ColumnHeaderGroup[];
|
|
89
|
-
set columnHeaderGroups(groups: readonly ColumnHeaderGroup[]);
|
|
90
|
-
get initialColumnHeaderGroups(): readonly ColumnHeaderGroup[];
|
|
91
|
-
getColumnHeaderParentGroup: IrisGridModel['getColumnHeaderParentGroup'];
|
|
92
|
-
get columnHeaderGroupMap(): ReadonlyMap<string, ColumnHeaderGroup>;
|
|
93
|
-
get columnHeaderMaxDepth(): number;
|
|
94
|
-
updateFrozenColumns(columns: readonly ColumnName[]): void;
|
|
95
39
|
get originalColumns(): readonly DhType.Column[];
|
|
96
|
-
get groupedColumns(): readonly DhType.Column[];
|
|
97
40
|
get partitionColumns(): readonly DhType.Column[];
|
|
98
|
-
sourceForCell: IrisGridModel['sourceForCell'];
|
|
99
|
-
getClearFilterRange: IrisGridModel['getClearFilterRange'];
|
|
100
|
-
get description(): string;
|
|
101
|
-
formatForCell: IrisGridModel['formatForCell'];
|
|
102
|
-
valueForCell: IrisGridModel['valueForCell'];
|
|
103
|
-
renderTypeForCell: IrisGridModel['renderTypeForCell'];
|
|
104
|
-
dataBarOptionsForCell: IrisGridModel['dataBarOptionsForCell'];
|
|
105
|
-
get filter(): readonly DhType.FilterCondition[];
|
|
106
|
-
set filter(filter: readonly DhType.FilterCondition[]);
|
|
107
41
|
get partitionConfig(): PartitionConfig | null;
|
|
108
42
|
set partitionConfig(partitionConfig: PartitionConfig | null);
|
|
109
43
|
partitionKeysTable(): Promise<DhType.Table>;
|
|
110
44
|
partitionMergedTable(): Promise<DhType.Table>;
|
|
111
45
|
partitionTable(partitions: unknown[]): Promise<DhType.Table>;
|
|
112
|
-
get formatter(): Formatter;
|
|
113
|
-
set formatter(formatter: Formatter);
|
|
114
|
-
displayString: IrisGridModel['displayString'];
|
|
115
|
-
get sort(): readonly DhType.Sort[];
|
|
116
|
-
set sort(sort: readonly DhType.Sort[]);
|
|
117
|
-
get customColumns(): readonly ColumnName[];
|
|
118
|
-
set customColumns(customColumns: readonly ColumnName[]);
|
|
119
|
-
get formatColumns(): readonly DhType.CustomColumn[];
|
|
120
|
-
set formatColumns(formatColumns: readonly DhType.CustomColumn[]);
|
|
121
46
|
get rollupConfig(): DhType.RollupConfig | null;
|
|
122
47
|
set rollupConfig(rollupConfig: DhType.RollupConfig | null);
|
|
123
48
|
get selectDistinctColumns(): ColumnName[];
|
|
124
49
|
set selectDistinctColumns(columnNames: string[]);
|
|
125
|
-
get table(): DhType.Table | DhType.TreeTable | undefined;
|
|
126
|
-
get totalsConfig(): UITotalsTableConfig | null;
|
|
127
|
-
set totalsConfig(totalsConfig: UITotalsTableConfig | null);
|
|
128
50
|
get isFilterRequired(): boolean;
|
|
129
51
|
get isPartitionRequired(): boolean;
|
|
130
|
-
get isEditable(): boolean;
|
|
131
|
-
get isViewportPending(): boolean;
|
|
132
|
-
isEditableRange: IrisGridTableModel['isEditableRange'];
|
|
133
|
-
isFilterable: IrisGridTableModel['isFilterable'];
|
|
134
52
|
setViewport: (top: number, bottom: number, columns?: DhType.Column[]) => void;
|
|
135
|
-
snapshot: IrisGridModel['snapshot'];
|
|
136
|
-
textSnapshot: IrisGridTableModel['textSnapshot'];
|
|
137
|
-
export(): Promise<DhType.Table>;
|
|
138
|
-
valuesTable: IrisGridTableModel['valuesTable'];
|
|
139
|
-
columnStatistics(column: DhType.Column): Promise<DhType.ColumnStatistics>;
|
|
140
|
-
editValueForCell: IrisGridTableModel['editValueForCell'];
|
|
141
|
-
setValueForCell: IrisGridTableModel['setValueForCell'];
|
|
142
|
-
setValueForRanges: IrisGridTableModel['setValueForRanges'];
|
|
143
|
-
setValues: EditableGridModel['setValues'];
|
|
144
|
-
isValidForCell: IrisGridTableModel['isValidForCell'];
|
|
145
|
-
delete: IrisGridTableModel['delete'];
|
|
146
|
-
get pendingDataMap(): PendingDataMap<UIRow>;
|
|
147
|
-
set pendingDataMap(map: PendingDataMap<UIRow>);
|
|
148
|
-
get pendingRowCount(): number;
|
|
149
|
-
set pendingRowCount(count: number);
|
|
150
|
-
get pendingDataErrors(): PendingDataErrorMap;
|
|
151
|
-
commitPending: IrisGridTableModel['commitPending'];
|
|
152
|
-
getColumnIndexByName(name: ColumnName): number | undefined;
|
|
153
|
-
seekRow(startRow: number, column: DhType.Column, valueType: DhType.ValueTypeType, value: unknown, insensitive?: boolean, contains?: boolean, isBackwards?: boolean): Promise<number>;
|
|
154
|
-
get isSeekRowAvailable(): boolean;
|
|
155
53
|
}
|
|
156
54
|
export default IrisGridProxyModel;
|
|
157
55
|
//# sourceMappingURL=IrisGridProxyModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IrisGridProxyModel.d.ts","sourceRoot":"","sources":["../src/IrisGridProxyModel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IrisGridProxyModel.d.ts","sourceRoot":"","sources":["../src/IrisGridProxyModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAc,MAAM,wBAAwB,CAAC;AAO/D,OAAO,KAAK,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAI3D,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EACL,eAAe,EACf,oBAAoB,EAErB,MAAM,wBAAwB,CAAC;AAmBhC;;;;;GAKG;AAGH,cAAM,kBAAmB,SAAQ,aAAc,YAAW,oBAAoB;IAC5E;;;;;OAKG;IAEH,KAAK,EAAE,aAAa,CAAC;IAErB,EAAE,EAAE,OAAO,MAAM,CAAC;IAElB,OAAO,CAAC,aAAa,CAAgB;IAErC,OAAO,CAAC,YAAY,CAA0C;IAE9D,OAAO,CAAC,MAAM,CAA6B;IAE3C,OAAO,CAAC,SAAS,CAAyB;IAE1C,OAAO,CAAC,cAAc,CAAe;IAErC,OAAO,CAAC,eAAe,CAAC,CAItB;gBAGA,EAAE,EAAE,OAAO,MAAM,EACjB,KAAK,EAAE,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,gBAAgB,EAChE,SAAS,YAAoB,EAC7B,UAAU,GAAE,MAAM,CAAC,UAAU,GAAG,IAAW;IA8D7C,KAAK,IAAI,IAAI;IAUb,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAO1C,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAqCpC,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,IAAI;IAqCxD,cAAc,IAAI,IAAI;IAMtB,aAAa,IAAI,IAAI;IAMrB,YAAY,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IASxC,eAAe,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAS3C,IAAI,wBAAwB,IAAI,OAAO,CAMtC;IAED,IAAI,iBAAiB,IAAI,OAAO,CAK/B;IAED,IAAI,yBAAyB,IAAI,OAAO,CAMvC;IAED,IAAI,eAAe,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,CAE9C;IAED,IAAI,gBAAgB,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,CAK/C;IAED,IAAI,eAAe,IAAI,eAAe,GAAG,IAAI,CAQ5C;IAED,IAAI,eAAe,CAAC,eAAe,EAAE,eAAe,GAAG,IAAI,EA4B1D;IAED,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;IAO3C,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;IAO7C,cAAc,CAAC,UAAU,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;IAO5D,IAAI,YAAY,IAAI,MAAM,CAAC,YAAY,GAAG,IAAI,CAE7C;IAED,IAAI,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,YAAY,GAAG,IAAI,EA0BxD;IAED,IAAI,qBAAqB,IAAI,UAAU,EAAE,CAExC;IAED,IAAI,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,EAgC9C;IAED,IAAI,gBAAgB,IAAI,OAAO,CAE9B;IAED,IAAI,mBAAmB,IAAI,OAAO,CAIjC;IAED,WAAW,QACJ,MAAM,UACH,MAAM,YACJ,OAAO,MAAM,EAAE,KACxB,IAAI,CAGL;CACH;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
2
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
3
1
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
2
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
5
3
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
6
|
-
|
|
7
|
-
import deepEqual from 'deep-equal';
|
|
4
|
+
import deepEqual from 'fast-deep-equal';
|
|
8
5
|
import { Formatter, TableUtils } from '@deephaven/jsapi-utils';
|
|
9
6
|
import Log from '@deephaven/log';
|
|
10
7
|
import { EventShimCustomEvent, PromiseUtils } from '@deephaven/utils';
|
|
11
|
-
import { isEditableGridModel, isExpandableGridModel } from '@deephaven/grid';
|
|
12
8
|
import IrisGridTableModel from "./IrisGridTableModel.js";
|
|
13
9
|
import IrisGridPartitionedTableModel from "./IrisGridPartitionedTableModel.js";
|
|
14
10
|
import IrisGridTreeTableModel from "./IrisGridTreeTableModel.js";
|
|
@@ -29,7 +25,11 @@ function makeModel(dh, table, formatter, inputTable) {
|
|
|
29
25
|
/**
|
|
30
26
|
* Model which proxies calls to other IrisGridModels.
|
|
31
27
|
* This allows for operations that generate new tables, like rollups.
|
|
28
|
+
* The proxy model will call any methods it has implemented and delegate any
|
|
29
|
+
* it does not implement to the underlying model.
|
|
32
30
|
*/
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
32
|
+
// @ts-ignore
|
|
33
33
|
class IrisGridProxyModel extends IrisGridModel {
|
|
34
34
|
/**
|
|
35
35
|
* @param dh JSAPI instance
|
|
@@ -39,125 +39,20 @@ class IrisGridProxyModel extends IrisGridModel {
|
|
|
39
39
|
*/
|
|
40
40
|
|
|
41
41
|
constructor(dh, table) {
|
|
42
|
-
var _this;
|
|
43
42
|
var formatter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Formatter(dh);
|
|
44
43
|
var inputTable = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
45
44
|
super(dh);
|
|
46
|
-
|
|
45
|
+
|
|
46
|
+
// The EventTarget methods must be bound to this instance
|
|
47
|
+
// Otherwise they throw errors because of the Proxy
|
|
48
|
+
_defineProperty(this, "model", void 0);
|
|
47
49
|
_defineProperty(this, "dh", void 0);
|
|
48
50
|
_defineProperty(this, "originalModel", void 0);
|
|
49
|
-
_defineProperty(this, "model", void 0);
|
|
50
51
|
_defineProperty(this, "modelPromise", void 0);
|
|
51
52
|
_defineProperty(this, "rollup", void 0);
|
|
52
53
|
_defineProperty(this, "partition", void 0);
|
|
53
54
|
_defineProperty(this, "selectDistinct", void 0);
|
|
54
55
|
_defineProperty(this, "currentViewport", void 0);
|
|
55
|
-
_defineProperty(this, "textForCell", function () {
|
|
56
|
-
return _this.model.textForCell(...arguments);
|
|
57
|
-
});
|
|
58
|
-
_defineProperty(this, "truncationCharForCell", function () {
|
|
59
|
-
return _this.model.truncationCharForCell(...arguments);
|
|
60
|
-
});
|
|
61
|
-
_defineProperty(this, "textAlignForCell", function () {
|
|
62
|
-
return _this.model.textAlignForCell(...arguments);
|
|
63
|
-
});
|
|
64
|
-
_defineProperty(this, "colorForCell", function () {
|
|
65
|
-
return _this.model.colorForCell(...arguments);
|
|
66
|
-
});
|
|
67
|
-
_defineProperty(this, "backgroundColorForCell", function () {
|
|
68
|
-
return _this.model.backgroundColorForCell(...arguments);
|
|
69
|
-
});
|
|
70
|
-
_defineProperty(this, "textForColumnHeader", function () {
|
|
71
|
-
return _this.model.textForColumnHeader(...arguments);
|
|
72
|
-
});
|
|
73
|
-
_defineProperty(this, "colorForColumnHeader", function () {
|
|
74
|
-
return _this.model.colorForColumnHeader(...arguments);
|
|
75
|
-
});
|
|
76
|
-
_defineProperty(this, "textForRowHeader", function () {
|
|
77
|
-
return _this.model.textForRowHeader(...arguments);
|
|
78
|
-
});
|
|
79
|
-
_defineProperty(this, "textForRowFooter", function () {
|
|
80
|
-
return _this.model.textForRowFooter(...arguments);
|
|
81
|
-
});
|
|
82
|
-
_defineProperty(this, "isRowMovable", function () {
|
|
83
|
-
return _this.model.isRowMovable(...arguments);
|
|
84
|
-
});
|
|
85
|
-
_defineProperty(this, "isColumnMovable", function () {
|
|
86
|
-
return _this.model.isColumnMovable(...arguments);
|
|
87
|
-
});
|
|
88
|
-
_defineProperty(this, "isRowExpandable", function () {
|
|
89
|
-
if (isExpandableGridModel(_this.model)) {
|
|
90
|
-
return _this.model.isRowExpandable(...arguments);
|
|
91
|
-
}
|
|
92
|
-
return false;
|
|
93
|
-
});
|
|
94
|
-
_defineProperty(this, "isRowExpanded", function () {
|
|
95
|
-
if (isExpandableGridModel(_this.model)) {
|
|
96
|
-
return _this.model.isRowExpanded(...arguments);
|
|
97
|
-
}
|
|
98
|
-
return false;
|
|
99
|
-
});
|
|
100
|
-
_defineProperty(this, "setRowExpanded", function () {
|
|
101
|
-
if (isExpandableGridModel(_this.model)) {
|
|
102
|
-
return _this.model.setRowExpanded(...arguments);
|
|
103
|
-
}
|
|
104
|
-
throw Error('Function setRowExpanded does not exist on IrisGridTableModel');
|
|
105
|
-
});
|
|
106
|
-
_defineProperty(this, "expandAll", () => {
|
|
107
|
-
if (isExpandableGridModel(this.model)) {
|
|
108
|
-
return this.model.expandAll();
|
|
109
|
-
}
|
|
110
|
-
throw Error('Function expandAll does not exist on IrisGridTableModel');
|
|
111
|
-
});
|
|
112
|
-
_defineProperty(this, "collapseAll", () => {
|
|
113
|
-
if (isExpandableGridModel(this.model)) {
|
|
114
|
-
return this.model.collapseAll();
|
|
115
|
-
}
|
|
116
|
-
throw Error('Function collapseAll does not exist on IrisGridTableModel');
|
|
117
|
-
});
|
|
118
|
-
_defineProperty(this, "depthForRow", function () {
|
|
119
|
-
if (isExpandableGridModel(_this.model)) {
|
|
120
|
-
return _this.model.depthForRow(...arguments);
|
|
121
|
-
}
|
|
122
|
-
return 0;
|
|
123
|
-
// throw Error('Function depthForRow does not exist on IrisGridTableModel');
|
|
124
|
-
});
|
|
125
|
-
_defineProperty(this, "getColumnHeaderGroup", function () {
|
|
126
|
-
return _this.model.getColumnHeaderGroup(...arguments);
|
|
127
|
-
});
|
|
128
|
-
_defineProperty(this, "getColumnHeaderParentGroup", function () {
|
|
129
|
-
return _this.model.getColumnHeaderParentGroup(...arguments);
|
|
130
|
-
});
|
|
131
|
-
_defineProperty(this, "sourceForCell", function () {
|
|
132
|
-
return _this.model.sourceForCell(...arguments);
|
|
133
|
-
});
|
|
134
|
-
_defineProperty(this, "getClearFilterRange", function () {
|
|
135
|
-
return _this.model.getClearFilterRange(...arguments);
|
|
136
|
-
});
|
|
137
|
-
_defineProperty(this, "formatForCell", function () {
|
|
138
|
-
return _this.model.formatForCell(...arguments);
|
|
139
|
-
});
|
|
140
|
-
_defineProperty(this, "valueForCell", function () {
|
|
141
|
-
return _this.model.valueForCell(...arguments);
|
|
142
|
-
});
|
|
143
|
-
_defineProperty(this, "renderTypeForCell", function () {
|
|
144
|
-
return _this.model.renderTypeForCell(...arguments);
|
|
145
|
-
});
|
|
146
|
-
_defineProperty(this, "dataBarOptionsForCell", function () {
|
|
147
|
-
return _this.model.dataBarOptionsForCell(...arguments);
|
|
148
|
-
});
|
|
149
|
-
_defineProperty(this, "displayString", function () {
|
|
150
|
-
return _this.model.displayString(...arguments);
|
|
151
|
-
});
|
|
152
|
-
_defineProperty(this, "isEditableRange", function () {
|
|
153
|
-
if (isEditableGridModel(_this.model)) {
|
|
154
|
-
return _this.model.isEditableRange(...arguments);
|
|
155
|
-
}
|
|
156
|
-
return false;
|
|
157
|
-
});
|
|
158
|
-
_defineProperty(this, "isFilterable", function () {
|
|
159
|
-
return _this.model.isFilterable(...arguments);
|
|
160
|
-
});
|
|
161
56
|
_defineProperty(this, "setViewport", (top, bottom, columns) => {
|
|
162
57
|
this.currentViewport = {
|
|
163
58
|
top,
|
|
@@ -166,51 +61,9 @@ class IrisGridProxyModel extends IrisGridModel {
|
|
|
166
61
|
};
|
|
167
62
|
this.model.setViewport(top, bottom, columns);
|
|
168
63
|
});
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
_defineProperty(this, "textSnapshot", function () {
|
|
173
|
-
return _this.model.textSnapshot(...arguments);
|
|
174
|
-
});
|
|
175
|
-
_defineProperty(this, "valuesTable", function () {
|
|
176
|
-
return _this.model.valuesTable(...arguments);
|
|
177
|
-
});
|
|
178
|
-
_defineProperty(this, "editValueForCell", function () {
|
|
179
|
-
if (isEditableGridModel(_this.model)) {
|
|
180
|
-
return _this.model.editValueForCell(...arguments);
|
|
181
|
-
}
|
|
182
|
-
return '';
|
|
183
|
-
});
|
|
184
|
-
_defineProperty(this, "setValueForCell", function () {
|
|
185
|
-
if (isEditableGridModel(_this.model)) {
|
|
186
|
-
return _this.model.setValueForCell(...arguments);
|
|
187
|
-
}
|
|
188
|
-
return Promise.reject(new Error('Model is not editable'));
|
|
189
|
-
});
|
|
190
|
-
_defineProperty(this, "setValueForRanges", function () {
|
|
191
|
-
if (isEditableGridModel(_this.model)) {
|
|
192
|
-
return _this.model.setValueForRanges(...arguments);
|
|
193
|
-
}
|
|
194
|
-
return Promise.reject(new Error('Model is not editable'));
|
|
195
|
-
});
|
|
196
|
-
_defineProperty(this, "setValues", function () {
|
|
197
|
-
if (isEditableGridModel(_this.model)) {
|
|
198
|
-
return _this.model.setValues(...arguments);
|
|
199
|
-
}
|
|
200
|
-
return Promise.resolve();
|
|
201
|
-
});
|
|
202
|
-
_defineProperty(this, "isValidForCell", function () {
|
|
203
|
-
if (isEditableGridModel(_this.model)) {
|
|
204
|
-
return _this.model.isValidForCell(...arguments);
|
|
205
|
-
}
|
|
206
|
-
return false;
|
|
207
|
-
});
|
|
208
|
-
_defineProperty(this, "delete", function () {
|
|
209
|
-
return _this.model.delete(...arguments);
|
|
210
|
-
});
|
|
211
|
-
_defineProperty(this, "commitPending", function () {
|
|
212
|
-
return _this.model.commitPending(...arguments);
|
|
213
|
-
});
|
|
64
|
+
this.addEventListener = this.addEventListener.bind(this);
|
|
65
|
+
this.removeEventListener = this.removeEventListener.bind(this);
|
|
66
|
+
this.dispatchEvent = this.dispatchEvent.bind(this);
|
|
214
67
|
this.handleModelEvent = this.handleModelEvent.bind(this);
|
|
215
68
|
var model = makeModel(dh, table, formatter, inputTable);
|
|
216
69
|
this.dh = dh;
|
|
@@ -220,6 +73,37 @@ class IrisGridProxyModel extends IrisGridModel {
|
|
|
220
73
|
this.rollup = null;
|
|
221
74
|
this.partition = null;
|
|
222
75
|
this.selectDistinct = [];
|
|
76
|
+
|
|
77
|
+
// eslint-disable-next-line no-constructor-return
|
|
78
|
+
return new Proxy(this, {
|
|
79
|
+
// We want to use any properties on the proxy model if defined
|
|
80
|
+
// If not, then proxy to the underlying model
|
|
81
|
+
get(target, prop, receiver) {
|
|
82
|
+
var _Object$getOwnPropert;
|
|
83
|
+
// Does this class have a getter for the prop
|
|
84
|
+
// Getter functions are on the prototype
|
|
85
|
+
var proxyHasGetter = ((_Object$getOwnPropert = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(target), prop)) === null || _Object$getOwnPropert === void 0 ? void 0 : _Object$getOwnPropert.get) != null;
|
|
86
|
+
if (proxyHasGetter) {
|
|
87
|
+
return Reflect.get(target, prop, receiver);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Does this class implement the property
|
|
91
|
+
var proxyHasProp = Object.prototype.hasOwnProperty.call(target, prop);
|
|
92
|
+
|
|
93
|
+
// Does the class implement a function for the property
|
|
94
|
+
var proxyHasFn = Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(target), prop);
|
|
95
|
+
var trueTarget = proxyHasProp || proxyHasFn ? target : target.model;
|
|
96
|
+
return Reflect.get(trueTarget, prop);
|
|
97
|
+
},
|
|
98
|
+
set(target, prop, value) {
|
|
99
|
+
var _Object$getOwnPropert2;
|
|
100
|
+
var proxyHasSetter = ((_Object$getOwnPropert2 = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(target), prop)) === null || _Object$getOwnPropert2 === void 0 ? void 0 : _Object$getOwnPropert2.set) != null;
|
|
101
|
+
if (proxyHasSetter) {
|
|
102
|
+
return Reflect.set(target, prop, value, target);
|
|
103
|
+
}
|
|
104
|
+
return Reflect.set(target.model, prop, value, target.model);
|
|
105
|
+
}
|
|
106
|
+
});
|
|
223
107
|
}
|
|
224
108
|
close() {
|
|
225
109
|
this.originalModel.close();
|
|
@@ -320,135 +204,26 @@ class IrisGridProxyModel extends IrisGridModel {
|
|
|
320
204
|
model.removeEventListener(events[i], this.handleModelEvent);
|
|
321
205
|
}
|
|
322
206
|
}
|
|
323
|
-
get rowCount() {
|
|
324
|
-
return this.model.rowCount;
|
|
325
|
-
}
|
|
326
|
-
get columnCount() {
|
|
327
|
-
return this.model.columnCount;
|
|
328
|
-
}
|
|
329
|
-
get floatingTopRowCount() {
|
|
330
|
-
return this.model.floatingTopRowCount;
|
|
331
|
-
}
|
|
332
|
-
get floatingBottomRowCount() {
|
|
333
|
-
return this.model.floatingBottomRowCount;
|
|
334
|
-
}
|
|
335
|
-
get floatingLeftColumnCount() {
|
|
336
|
-
return this.model.floatingLeftColumnCount;
|
|
337
|
-
}
|
|
338
|
-
get floatingRightColumnCount() {
|
|
339
|
-
return this.model.floatingRightColumnCount;
|
|
340
|
-
}
|
|
341
|
-
isColumnFrozen(x) {
|
|
342
|
-
return this.model.isColumnFrozen(x);
|
|
343
|
-
}
|
|
344
|
-
isColumnSortable(index) {
|
|
345
|
-
return this.model.isColumnSortable(index);
|
|
346
|
-
}
|
|
347
|
-
get hasExpandableRows() {
|
|
348
|
-
if (isExpandableGridModel(this.model)) {
|
|
349
|
-
return this.model.hasExpandableRows;
|
|
350
|
-
}
|
|
351
|
-
return false;
|
|
352
|
-
}
|
|
353
|
-
get isExpandAllAvailable() {
|
|
354
|
-
if (isExpandableGridModel(this.model)) {
|
|
355
|
-
var _this$model$isExpandA;
|
|
356
|
-
return (_this$model$isExpandA = this.model.isExpandAllAvailable) !== null && _this$model$isExpandA !== void 0 ? _this$model$isExpandA : false;
|
|
357
|
-
}
|
|
358
|
-
return false;
|
|
359
|
-
}
|
|
360
|
-
get isExportAvailable() {
|
|
361
|
-
return this.model.isExportAvailable;
|
|
362
|
-
}
|
|
363
|
-
get isColumnStatisticsAvailable() {
|
|
364
|
-
return this.model.isColumnStatisticsAvailable;
|
|
365
|
-
}
|
|
366
|
-
get isValuesTableAvailable() {
|
|
367
|
-
return this.model.isValuesTableAvailable;
|
|
368
|
-
}
|
|
369
207
|
get isCustomColumnsAvailable() {
|
|
370
208
|
return this.model.isCustomColumnsAvailable &&
|
|
371
209
|
// Disable for selectDistinct tables
|
|
372
210
|
!(this.isSelectDistinctAvailable && this.selectDistinctColumns.length > 0);
|
|
373
211
|
}
|
|
374
|
-
get isFormatColumnsAvailable() {
|
|
375
|
-
return this.model.isFormatColumnsAvailable;
|
|
376
|
-
}
|
|
377
|
-
get isChartBuilderAvailable() {
|
|
378
|
-
return this.model.isChartBuilderAvailable;
|
|
379
|
-
}
|
|
380
212
|
get isRollupAvailable() {
|
|
381
213
|
return (this.originalModel.isRollupAvailable || this.rollup != null) && this.selectDistinct.length === 0;
|
|
382
214
|
}
|
|
383
215
|
get isSelectDistinctAvailable() {
|
|
384
216
|
return (this.originalModel.isSelectDistinctAvailable || this.selectDistinct.length > 0) && this.rollup == null;
|
|
385
217
|
}
|
|
386
|
-
get isTotalsAvailable() {
|
|
387
|
-
return this.model.isTotalsAvailable;
|
|
388
|
-
}
|
|
389
|
-
get isReversible() {
|
|
390
|
-
return this.model.isReversible;
|
|
391
|
-
}
|
|
392
|
-
get columns() {
|
|
393
|
-
return this.model.columns;
|
|
394
|
-
}
|
|
395
|
-
get initialMovedColumns() {
|
|
396
|
-
return this.model.initialMovedColumns;
|
|
397
|
-
}
|
|
398
|
-
get initialMovedRows() {
|
|
399
|
-
return this.model.initialMovedRows;
|
|
400
|
-
}
|
|
401
|
-
get layoutHints() {
|
|
402
|
-
return this.model.layoutHints;
|
|
403
|
-
}
|
|
404
|
-
get frontColumns() {
|
|
405
|
-
return this.model.frontColumns;
|
|
406
|
-
}
|
|
407
|
-
get backColumns() {
|
|
408
|
-
return this.model.backColumns;
|
|
409
|
-
}
|
|
410
|
-
get frozenColumns() {
|
|
411
|
-
return this.model.frozenColumns;
|
|
412
|
-
}
|
|
413
|
-
get columnHeaderGroups() {
|
|
414
|
-
return this.model.columnHeaderGroups;
|
|
415
|
-
}
|
|
416
|
-
set columnHeaderGroups(groups) {
|
|
417
|
-
this.model.columnHeaderGroups = groups;
|
|
418
|
-
}
|
|
419
|
-
get initialColumnHeaderGroups() {
|
|
420
|
-
return this.model.initialColumnHeaderGroups;
|
|
421
|
-
}
|
|
422
|
-
get columnHeaderGroupMap() {
|
|
423
|
-
return this.model.columnHeaderGroupMap;
|
|
424
|
-
}
|
|
425
|
-
get columnHeaderMaxDepth() {
|
|
426
|
-
return this.model.columnHeaderMaxDepth;
|
|
427
|
-
}
|
|
428
|
-
updateFrozenColumns(columns) {
|
|
429
|
-
return this.model.updateFrozenColumns(columns);
|
|
430
|
-
}
|
|
431
218
|
get originalColumns() {
|
|
432
219
|
return this.originalModel.columns;
|
|
433
220
|
}
|
|
434
|
-
get groupedColumns() {
|
|
435
|
-
return this.model.groupedColumns;
|
|
436
|
-
}
|
|
437
221
|
get partitionColumns() {
|
|
438
222
|
if (!isPartitionedGridModelProvider(this.originalModel)) {
|
|
439
223
|
return [];
|
|
440
224
|
}
|
|
441
225
|
return this.originalModel.partitionColumns;
|
|
442
226
|
}
|
|
443
|
-
get description() {
|
|
444
|
-
return this.model.description;
|
|
445
|
-
}
|
|
446
|
-
get filter() {
|
|
447
|
-
return this.model.filter;
|
|
448
|
-
}
|
|
449
|
-
set filter(filter) {
|
|
450
|
-
this.model.filter = filter;
|
|
451
|
-
}
|
|
452
227
|
get partitionConfig() {
|
|
453
228
|
if (!isPartitionedGridModelProvider(this.originalModel) || !this.originalModel.isPartitionRequired) {
|
|
454
229
|
return null;
|
|
@@ -491,30 +266,6 @@ class IrisGridProxyModel extends IrisGridModel {
|
|
|
491
266
|
}
|
|
492
267
|
return this.originalModel.partitionTable(partitions);
|
|
493
268
|
}
|
|
494
|
-
get formatter() {
|
|
495
|
-
return this.model.formatter;
|
|
496
|
-
}
|
|
497
|
-
set formatter(formatter) {
|
|
498
|
-
this.model.formatter = formatter;
|
|
499
|
-
}
|
|
500
|
-
get sort() {
|
|
501
|
-
return this.model.sort;
|
|
502
|
-
}
|
|
503
|
-
set sort(sort) {
|
|
504
|
-
this.model.sort = sort;
|
|
505
|
-
}
|
|
506
|
-
get customColumns() {
|
|
507
|
-
return this.model.customColumns;
|
|
508
|
-
}
|
|
509
|
-
set customColumns(customColumns) {
|
|
510
|
-
this.model.customColumns = customColumns;
|
|
511
|
-
}
|
|
512
|
-
get formatColumns() {
|
|
513
|
-
return this.model.formatColumns;
|
|
514
|
-
}
|
|
515
|
-
set formatColumns(formatColumns) {
|
|
516
|
-
this.model.formatColumns = formatColumns;
|
|
517
|
-
}
|
|
518
269
|
get rollupConfig() {
|
|
519
270
|
return this.rollup;
|
|
520
271
|
}
|
|
@@ -556,69 +307,12 @@ class IrisGridProxyModel extends IrisGridModel {
|
|
|
556
307
|
}
|
|
557
308
|
this.setNextModel(modelPromise);
|
|
558
309
|
}
|
|
559
|
-
get table() {
|
|
560
|
-
if (isIrisGridTableModelTemplate(this.model)) {
|
|
561
|
-
return this.model.table;
|
|
562
|
-
}
|
|
563
|
-
return undefined;
|
|
564
|
-
}
|
|
565
|
-
get totalsConfig() {
|
|
566
|
-
return this.model.totalsConfig;
|
|
567
|
-
}
|
|
568
|
-
set totalsConfig(totalsConfig) {
|
|
569
|
-
this.model.totalsConfig = totalsConfig;
|
|
570
|
-
}
|
|
571
310
|
get isFilterRequired() {
|
|
572
311
|
return this.originalModel.isFilterRequired;
|
|
573
312
|
}
|
|
574
313
|
get isPartitionRequired() {
|
|
575
314
|
return isPartitionedGridModelProvider(this.originalModel) ? this.originalModel.isPartitionRequired : false;
|
|
576
315
|
}
|
|
577
|
-
get isEditable() {
|
|
578
|
-
return isEditableGridModel(this.model) && this.model.isEditable;
|
|
579
|
-
}
|
|
580
|
-
get isViewportPending() {
|
|
581
|
-
return this.model.isViewportPending;
|
|
582
|
-
}
|
|
583
|
-
export() {
|
|
584
|
-
if (TableUtils.isTreeTable(this.model)) {
|
|
585
|
-
throw new Error("TreeTable has no 'export' property");
|
|
586
|
-
}
|
|
587
|
-
return this.model.export();
|
|
588
|
-
}
|
|
589
|
-
columnStatistics(column) {
|
|
590
|
-
if (TableUtils.isTreeTable(this.model)) {
|
|
591
|
-
throw new Error("TreeTable has no 'columnStatistics' function");
|
|
592
|
-
}
|
|
593
|
-
return this.model.columnStatistics(column);
|
|
594
|
-
}
|
|
595
|
-
get pendingDataMap() {
|
|
596
|
-
return this.model.pendingDataMap;
|
|
597
|
-
}
|
|
598
|
-
set pendingDataMap(map) {
|
|
599
|
-
this.model.pendingDataMap = map;
|
|
600
|
-
}
|
|
601
|
-
get pendingRowCount() {
|
|
602
|
-
return this.model.pendingRowCount;
|
|
603
|
-
}
|
|
604
|
-
set pendingRowCount(count) {
|
|
605
|
-
this.model.pendingRowCount = count;
|
|
606
|
-
}
|
|
607
|
-
get pendingDataErrors() {
|
|
608
|
-
return this.model.pendingDataErrors;
|
|
609
|
-
}
|
|
610
|
-
getColumnIndexByName(name) {
|
|
611
|
-
return this.model.getColumnIndexByName(name);
|
|
612
|
-
}
|
|
613
|
-
seekRow(startRow, column, valueType, value, insensitive, contains, isBackwards) {
|
|
614
|
-
var _this2 = this;
|
|
615
|
-
return _asyncToGenerator(function* () {
|
|
616
|
-
return _this2.model.seekRow(startRow, column, valueType, value, insensitive, contains, isBackwards);
|
|
617
|
-
})();
|
|
618
|
-
}
|
|
619
|
-
get isSeekRowAvailable() {
|
|
620
|
-
return this.model.isSeekRowAvailable;
|
|
621
|
-
}
|
|
622
316
|
}
|
|
623
317
|
export default IrisGridProxyModel;
|
|
624
318
|
//# sourceMappingURL=IrisGridProxyModel.js.map
|