@guiexpert/table 1.1.90 → 1.1.91
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/README.md +3 -1
- package/css/main.css +50 -4
- package/css/table-classes.css +30 -0
- package/css/table-color-classes.css +3 -1
- package/css/table-color-vars.css +4 -2
- package/css/table-tree.css +13 -1
- package/index.cjs +80 -89
- package/index.d.ts +192 -184
- package/index.js +3229 -1580
- package/lib/common/debounce.d.ts +1 -0
- package/lib/common/decorator/avoid-double-execution.decorator.d.ts +2 -0
- package/lib/common/escape-html.d.ts +22 -0
- package/lib/common/generator/column-def-generator-service.d.ts +2 -1
- package/lib/common/generator/domain/property-type.d.ts +19 -0
- package/lib/common/generator/domain/value-info.d.ts +2 -1
- package/lib/common/generator/json-service.d.ts +1 -0
- package/lib/common/generator/property-type.service.d.ts +3 -2
- package/lib/common/generator/scheme-generator-service.d.ts +3 -1
- package/lib/common/generator/string-util.d.ts +7 -0
- package/lib/common/throttle.d.ts +1 -0
- package/lib/table/action/action-id.type.d.ts +5 -1
- package/lib/table/action/on-action-triggered.if.d.ts +2 -1
- package/lib/table/action/osx-shortcut-actionId-mapping.d.ts +3 -1
- package/lib/table/action/shortcut-actionid-mapping.type.d.ts +3 -1
- package/lib/table/action/shortcut-util.d.ts +12 -0
- package/lib/table/action/shortcut.service.d.ts +5 -3
- package/lib/table/action/windows-shortcut-actionId-mapping.d.ts +3 -1
- package/lib/table/aria/aria-grid-info.d.ts +76 -0
- package/lib/table/aria/aria-ids.d.ts +56 -0
- package/lib/table/aria/aria-texts.d.ts +34 -0
- package/lib/table/aria/aria-texts.if.d.ts +88 -0
- package/lib/table/aria/live-announcer.d.ts +53 -0
- package/lib/table/aria/tree-aria-info.d.ts +58 -0
- package/lib/table/checkbox/all-rows-checkbox-model.d.ts +31 -0
- package/lib/table/checkbox/checkbox-model.d.ts +3 -2
- package/lib/table/checkbox/checkbox-model.if.d.ts +2 -1
- package/lib/table/checkbox/tree-checkbox-model.d.ts +19 -4
- package/lib/table/color/color-rgb.d.ts +2 -1
- package/lib/table/color/color-rgb.if.d.ts +2 -0
- package/lib/table/color/ge-css-color-util.d.ts +25 -2
- package/lib/table/color/three-color-gradient-arg.d.ts +3 -2
- package/lib/table/color/three-color-gradient-arg.if.d.ts +3 -1
- package/lib/table/color/two-color-gradient-arg.d.ts +3 -2
- package/lib/table/color/two-color-gradient-arg.if.d.ts +3 -1
- package/lib/table/crud/column-widths.d.ts +2 -1
- package/lib/table/crud/column-widths.if.d.ts +1 -0
- package/lib/table/crud/crud-action.d.ts +1 -0
- package/lib/table/crud/crud-object-edit.d.ts +25 -3
- package/lib/table/crud/crud-object-view.d.ts +6 -0
- package/lib/table/crud/crud-options.d.ts +35 -4
- package/lib/table/crud/crud-options.if.d.ts +3 -2
- package/lib/table/crud/crud-table-model-factory.d.ts +64 -8
- package/lib/table/crud/url-info.d.ts +2 -1
- package/lib/table/crud/url-info.if.d.ts +1 -0
- package/lib/table/crud/urls.if.d.ts +2 -1
- package/lib/table/css-vars.d.ts +1 -0
- package/lib/table/data/chunk/chunk.data-event.d.ts +3 -2
- package/lib/table/data/chunk/chunk.data-event.if.d.ts +2 -1
- package/lib/table/data/chunk/request-chunk.d.ts +2 -1
- package/lib/table/data/chunk/request-chunk.if.d.ts +1 -0
- package/lib/table/data/common/aligns.d.ts +18 -0
- package/lib/table/data/common/area-map-factory.d.ts +3 -2
- package/lib/table/data/common/area-map.d.ts +3 -1
- package/lib/table/data/common/area-map.type.d.ts +1 -0
- package/lib/table/data/common/args-adjust-columns-to-row-parent-params.d.ts +6 -4
- package/lib/table/data/common/args-render-cell-div.d.ts +5 -3
- package/lib/table/data/common/boolean-function.d.ts +10 -0
- package/lib/table/data/common/cell-range.d.ts +16 -7
- package/lib/table/data/common/checkbox-column-def.d.ts +6 -4
- package/lib/table/data/common/checked-type.d.ts +2 -0
- package/lib/table/data/common/event/ge-cell-indices.d.ts +2 -0
- package/lib/table/data/common/event/ge-key-event.d.ts +2 -0
- package/lib/table/data/common/event/ge-model-change-event.d.ts +16 -2
- package/lib/table/data/common/event/ge-mouse-event.d.ts +52 -4
- package/lib/table/data/common/event/ge-scroll-event.d.ts +27 -1
- package/lib/table/data/common/event/input/table-cell-update-event.d.ts +14 -10
- package/lib/table/data/common/event/input/table-cell-update-event.if.d.ts +3 -1
- package/lib/table/data/common/filter-function.d.ts +2 -0
- package/lib/table/data/common/get-t.d.ts +2 -0
- package/lib/table/data/common/index-and-px.d.ts +2 -0
- package/lib/table/data/common/size-unit.type.d.ts +2 -0
- package/lib/table/data/common/size.d.ts +13 -2
- package/lib/table/data/common/size.if.d.ts +3 -1
- package/lib/table/data/common/sizes.d.ts +133 -1
- package/lib/table/data/common/sort-item.d.ts +16 -3
- package/lib/table/data/common/sort-state.type.d.ts +2 -0
- package/lib/table/data/common/tree-arrow.type.d.ts +2 -0
- package/lib/table/data/common/tree-row-if.d.ts +22 -1
- package/lib/table/data/common/tree-row.d.ts +3 -1
- package/lib/table/data/common/value-label.d.ts +2 -1
- package/lib/table/data/common/value-label.if.d.ts +1 -0
- package/lib/table/data/div-scope.type.d.ts +2 -0
- package/lib/table/data/event/mouse-target-data.d.ts +5 -3
- package/lib/table/data/geo-data.d.ts +2 -0
- package/lib/table/data/options/auto-restore-options.d.ts +32 -1
- package/lib/table/data/options/auto-restore-options.if.d.ts +8 -0
- package/lib/table/data/options/default-row-heights.d.ts +20 -2
- package/lib/table/data/options/default-row-heights.if.d.ts +4 -1
- package/lib/table/data/options/header-group-options.d.ts +3 -2
- package/lib/table/data/options/header-group-options.if.d.ts +3 -4
- package/lib/table/data/options/icon.d.ts +2 -1
- package/lib/table/data/options/icon.if.d.ts +2 -0
- package/lib/table/data/options/sorted-options.d.ts +3 -2
- package/lib/table/data/options/sorted-options.if.d.ts +3 -1
- package/lib/table/data/options/table-options.d.ts +37 -13
- package/lib/table/data/options/table-options.if.d.ts +117 -44
- package/lib/table/data/options/tree-options.d.ts +3 -2
- package/lib/table/data/options/tree-options.if.d.ts +3 -1
- package/lib/table/data/side-ident.type.d.ts +2 -0
- package/lib/table/data/table-model-and-options.d.ts +5 -3
- package/lib/table/data/table-model-and-options.if.d.ts +4 -2
- package/lib/table/data/tablemodel/area-ident.type.d.ts +4 -0
- package/lib/table/data/tablemodel/areamodel/abstract-area-model.d.ts +10 -9
- package/lib/table/data/tablemodel/areamodel/area-model-array-of-arrays.d.ts +6 -4
- package/lib/table/data/tablemodel/areamodel/area-model-cell-groups.d.ts +13 -12
- package/lib/table/data/tablemodel/areamodel/area-model-hidden.d.ts +9 -7
- package/lib/table/data/tablemodel/areamodel/area-model-object-array-with-columndefs.d.ts +16 -14
- package/lib/table/data/tablemodel/areamodel/area-model-object-array.d.ts +35 -31
- package/lib/table/data/tablemodel/areamodel/area-model-tree.d.ts +153 -11
- package/lib/table/data/tablemodel/areamodel/area-model.d.ts +66 -104
- package/lib/table/data/tablemodel/areamodel/area-model.if.d.ts +56 -50
- package/lib/table/data/tablemodel/areamodel/async-area-model-object-array.d.ts +5 -5
- package/lib/table/data/tablemodel/areamodel/col-and-rowspan-model.d.ts +14 -3
- package/lib/table/data/tablemodel/areamodel/cover-grid-body-model.d.ts +10 -8
- package/lib/table/data/tablemodel/areamodel/has-default-row-height-if.d.ts +1 -0
- package/lib/table/data/tablemodel/areamodel/object-array-holder.if.d.ts +1 -0
- package/lib/table/data/tablemodel/cellgroup/cell-group-ext.d.ts +3 -2
- package/lib/table/data/tablemodel/cellgroup/cell-group.d.ts +2 -1
- package/lib/table/data/tablemodel/cellgroup/cell-group.if.d.ts +28 -0
- package/lib/table/data/tablemodel/cellgroup/cellgroup-factory.d.ts +4 -3
- package/lib/table/data/tablemodel/column/column-def.d.ts +67 -10
- package/lib/table/data/tablemodel/column/column-def.if.d.ts +63 -96
- package/lib/table/data/tablemodel/column/column-visibility.d.ts +6 -0
- package/lib/table/data/tablemodel/cover-grid-table-model.d.ts +11 -10
- package/lib/table/data/tablemodel/padding.d.ts +2 -0
- package/lib/table/data/tablemodel/table-model.d.ts +75 -14
- package/lib/table/data/tablemodel/table-model.if.d.ts +52 -8
- package/lib/table/ele-scope.d.ts +36 -5
- package/lib/table/event-adapter.d.ts +17 -10
- package/lib/table/event-checkbox-changed-handler.d.ts +2 -1
- package/lib/table/event-listener.if.d.ts +42 -9
- package/lib/table/factory/cover-grid-factory.d.ts +4 -3
- package/lib/table/factory/table-factory.d.ts +103 -64
- package/lib/table/factory/tree-factory.d.ts +45 -3
- package/lib/table/focus/event-focus-changed-listener.if.d.ts +5 -3
- package/lib/table/focus/focus-model.d.ts +7 -5
- package/lib/table/focus/focus-model.if.d.ts +22 -1
- package/lib/table/focus/focus.type.d.ts +2 -0
- package/lib/table/input-handler.d.ts +5 -1
- package/lib/table/instanceof-workaround.d.ts +16 -0
- package/lib/table/license-manager.d.ts +2 -0
- package/lib/table/mouse-handler.d.ts +18 -9
- package/lib/table/render-scope.d.ts +115 -25
- package/lib/table/renderer/action/action-event-listener.if.d.ts +2 -1
- package/lib/table/renderer/action/action-event.d.ts +4 -3
- package/lib/table/renderer/action/action-event.if.d.ts +2 -1
- package/lib/table/renderer/action/actions-cell-renderer.d.ts +8 -7
- package/lib/table/renderer/cell-group-ext-cell-renderer.d.ts +8 -7
- package/lib/table/renderer/cell-render.if.d.ts +41 -4
- package/lib/table/renderer/checkbox-boolean-property-cell-renderer.d.ts +7 -5
- package/lib/table/renderer/checkbox-cell-renderer.d.ts +8 -5
- package/lib/table/renderer/date-to-int-date-cell-renderer.d.ts +6 -5
- package/lib/table/renderer/date-to-iso-cell-renderer.d.ts +6 -5
- package/lib/table/renderer/date-to-locale-date-cell-renderer.d.ts +6 -5
- package/lib/table/renderer/date-to-tec-cell-renderer.d.ts +6 -5
- package/lib/table/renderer/edit/edit-cell-renderer.type.d.ts +2 -1
- package/lib/table/renderer/edit/edit-input-pipe-for-number.d.ts +2 -1
- package/lib/table/renderer/edit/edit-input-pipe.if.d.ts +2 -0
- package/lib/table/renderer/edit/input-cell-renderer.d.ts +6 -5
- package/lib/table/renderer/edit/select-cell-renderer.d.ts +7 -6
- package/lib/table/renderer/male-female-to-icon-cell-renderer.d.ts +19 -6
- package/lib/table/renderer/number-cell-progress-bar-cell-renderer.d.ts +11 -6
- package/lib/table/renderer/number-cell-renderer.d.ts +6 -5
- package/lib/table/renderer/positive-and-negative-number-renderer.d.ts +6 -5
- package/lib/table/renderer/progress-bar-cell-renderer.d.ts +12 -6
- package/lib/table/renderer/renderer-cleanup-fn.type.d.ts +1 -0
- package/lib/table/renderer/renderer.d.ts +3 -2
- package/lib/table/renderer/simple-array-cell-renderer.d.ts +6 -5
- package/lib/table/renderer/star-rating-cell-renderer.d.ts +12 -6
- package/lib/table/renderer/true-false-cell-renderer.d.ts +17 -5
- package/lib/table/resize-handler.d.ts +3 -1
- package/lib/table/selection/event-selection-changed-listener.if.d.ts +2 -1
- package/lib/table/selection/multi-rows-selection-model.d.ts +7 -4
- package/lib/table/selection/selection-model.d.ts +112 -10
- package/lib/table/selection/selection-model.if.d.ts +48 -3
- package/lib/table/selection/selection-service.d.ts +35 -7
- package/lib/table/selection/selection.type.d.ts +3 -0
- package/lib/table/service/abstract-store-state.service.d.ts +1 -1
- package/lib/table/service/convenience-dom.service.d.ts +36 -13
- package/lib/table/service/copy-service.d.ts +18 -4
- package/lib/table/service/copy-service.if.d.ts +4 -3
- package/lib/table/service/data/collapsed-expanded.data.d.ts +1 -0
- package/lib/table/service/data/html-style.type.d.ts +1 -0
- package/lib/table/service/dom-service.if.d.ts +30 -0
- package/lib/table/service/excel-service.d.ts +24 -1
- package/lib/table/service/excel-service.if.d.ts +7 -0
- package/lib/table/service/ge-filter.service.d.ts +1 -0
- package/lib/table/service/simple-dom-service.d.ts +3 -1
- package/lib/table/service/store-state-collapsed-expand.service.d.ts +4 -3
- package/lib/table/service/store-state-scroll-pos.service.d.ts +3 -2
- package/lib/table/service/store-state-sorting.service.d.ts +4 -3
- package/lib/table/service/tree-row.service.d.ts +5 -1
- package/lib/table/table-api.d.ts +296 -550
- package/lib/table/table-scope.d.ts +213 -86
- package/package.json +23 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AreaIdent } from '../tablemodel/area-ident.type';
|
|
2
|
-
import { AreaModelIf } from '../tablemodel/areamodel/area-model.if';
|
|
3
|
-
import { TableScope } from '../../table-scope';
|
|
1
|
+
import { AreaIdent } from '../tablemodel/area-ident.type.js';
|
|
2
|
+
import { AreaModelIf } from '../tablemodel/areamodel/area-model.if.js';
|
|
3
|
+
import { TableScope } from '../../table-scope.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The MouseTargetData class is used to process and provide information about user interaction, especially mouse events, with specific areas and elements of a table built using HTML Div elements, Span elements, and Input elements.
|
|
@@ -25,6 +25,8 @@ import { TableScope } from '../../table-scope';
|
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* const mouseTarget = new MouseTargetData(eventTarget, tableScope);
|
|
28
|
+
*
|
|
29
|
+
* @category Internals
|
|
28
30
|
*/
|
|
29
31
|
export declare class MouseTargetData {
|
|
30
32
|
rowIdx: number;
|
|
@@ -1,5 +1,36 @@
|
|
|
1
|
-
import { AutoRestoreOptionsIf } from './auto-restore-options.if';
|
|
1
|
+
import { AutoRestoreOptionsIf } from './auto-restore-options.if.js';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Defaults for {@link TableOptionsIf.autoRestoreOptions}: everything off. Spread it and switch on what the table
|
|
5
|
+
* should remember in `localStorage` (one key per table).
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* const tableOptions: TableOptionsIf = {
|
|
9
|
+
* ...new TableOptions(),
|
|
10
|
+
* autoRestoreOptions: {
|
|
11
|
+
* ...new AutoRestoreOptions<Order>(),
|
|
12
|
+
* getStorageKeyFn: () => "orders-table", // unique per table
|
|
13
|
+
* autoRestoreSortingState: true,
|
|
14
|
+
* autoRestoreScrollPosition: true
|
|
15
|
+
* }
|
|
16
|
+
* };
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* // trees: remember expanded nodes – needs a stable id per node
|
|
20
|
+
* const treeOptions: TableOptionsIf = {
|
|
21
|
+
* ...new TableOptions(),
|
|
22
|
+
* autoRestoreOptions: {
|
|
23
|
+
* ...new AutoRestoreOptions<OrderNode>(),
|
|
24
|
+
* getStorageKeyFn: () => "order-tree",
|
|
25
|
+
* getRowId: (node: OrderNode) => node.id,
|
|
26
|
+
* autoRestoreCollapsedExpandedState: true
|
|
27
|
+
* }
|
|
28
|
+
* };
|
|
29
|
+
*
|
|
30
|
+
* @see Training: [Remember the state](https://gui.expert/training/persist-state/)
|
|
31
|
+
*
|
|
32
|
+
* @category Options
|
|
33
|
+
*/
|
|
3
34
|
export declare class AutoRestoreOptions<T> implements AutoRestoreOptionsIf<T> {
|
|
4
35
|
autoRestoreSortingState: boolean;
|
|
5
36
|
autoRestoreCollapsedExpandedState: boolean;
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
* @param {AutoRestoreOptionsIf<T>} optionsIf - The options that dictate the behavior of auto-restoring.
|
|
15
15
|
*
|
|
16
16
|
* @returns {boolean} - Returns `true` if the two instances are considered the same, `false` otherwise.
|
|
17
|
+
*
|
|
18
|
+
* @category Options
|
|
17
19
|
*/
|
|
18
20
|
export type IsSameFn<T> = (r1: T, r2: T, optionsIf: AutoRestoreOptionsIf<T>) => boolean;
|
|
19
21
|
/**
|
|
@@ -22,12 +24,16 @@ export type IsSameFn<T> = (r1: T, r2: T, optionsIf: AutoRestoreOptionsIf<T>) =>
|
|
|
22
24
|
* AutoRestoreOptionsIf interface.
|
|
23
25
|
* @typedef
|
|
24
26
|
* @typeparam T - The type of the object that the function is going to use.
|
|
27
|
+
*
|
|
28
|
+
* @category Options
|
|
25
29
|
*/
|
|
26
30
|
export type GetRowIdFn<T> = ((row: T) => string | number);
|
|
27
31
|
/**
|
|
28
32
|
* GetStorageKeyFn is a type alias for a function that returns a unique key (as a string) for storage.
|
|
29
33
|
* It is used for restoring state in conjunction with the AutoRestoreOptionsIf interface.
|
|
30
34
|
* @typedef
|
|
35
|
+
*
|
|
36
|
+
* @category Options
|
|
31
37
|
*/
|
|
32
38
|
export type GetStorageKeyFn = (() => string);
|
|
33
39
|
/**
|
|
@@ -60,6 +66,8 @@ export type GetStorageKeyFn = (() => string);
|
|
|
60
66
|
*
|
|
61
67
|
* @property {(r1: T, r2: T, optionsIf: AutoRestoreOptionsIf<T>) => boolean} isSame - Function for checking
|
|
62
68
|
* if two instances of T are considered the same when restoring state. If not provided, strict equality check (===) will be used.
|
|
69
|
+
*
|
|
70
|
+
* @category Options
|
|
63
71
|
*/
|
|
64
72
|
export interface AutoRestoreOptionsIf<T> {
|
|
65
73
|
autoRestoreSortingState: boolean;
|
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
import { DefaultRowHeightsIf } from './default-row-heights.if';
|
|
1
|
+
import { DefaultRowHeightsIf } from './default-row-heights.if.js';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Row heights of header, body and footer in px – default 34 each. Used in {@link TableOptionsIf.defaultRowHeights}
|
|
5
|
+
* and {@link CreateTableModelPara.defaultRowHeights}.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* const tableOptions: TableOptionsIf = { ...new TableOptions(), defaultRowHeights: new DefaultRowHeights(40, 30, 36) };
|
|
9
|
+
*
|
|
10
|
+
* @category Options
|
|
11
|
+
*/
|
|
3
12
|
export declare class DefaultRowHeights implements DefaultRowHeightsIf {
|
|
13
|
+
/** Height of header rows in px. */
|
|
4
14
|
header: number;
|
|
15
|
+
/** Height of body rows in px. */
|
|
5
16
|
body: number;
|
|
17
|
+
/** Height of footer rows in px. */
|
|
6
18
|
footer: number;
|
|
7
|
-
constructor(
|
|
19
|
+
constructor(
|
|
20
|
+
/** Height of header rows in px. */
|
|
21
|
+
header?: number,
|
|
22
|
+
/** Height of body rows in px. */
|
|
23
|
+
body?: number,
|
|
24
|
+
/** Height of footer rows in px. */
|
|
25
|
+
footer?: number);
|
|
8
26
|
}
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* @property `body`: It sets the height of the body rows present in the table. This value can be individually adjusted by developers.
|
|
8
8
|
* @property `footer`: This property represents the height of the table footer row. It has a mutable value that can be modified as per requirements.
|
|
9
9
|
*
|
|
10
|
+
* See {@link DefaultRowHeights} for the defaults (34 px each).
|
|
11
|
+
*
|
|
10
12
|
* @example
|
|
11
13
|
* // declaring a variable with default row heights
|
|
12
14
|
* let rowHeights: DefaultRowHeightsIf = {
|
|
@@ -14,8 +16,9 @@
|
|
|
14
16
|
* body: 100,
|
|
15
17
|
* footer: 60
|
|
16
18
|
* };
|
|
19
|
+
|
|
17
20
|
*
|
|
18
|
-
*
|
|
21
|
+
* @category Options
|
|
19
22
|
*/
|
|
20
23
|
export interface DefaultRowHeightsIf {
|
|
21
24
|
header: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { IconIf } from './icon.if';
|
|
2
|
-
import { HeaderGroupOptionsIf } from './header-group-options.if';
|
|
1
|
+
import { IconIf } from './icon.if.js';
|
|
2
|
+
import { HeaderGroupOptionsIf } from './header-group-options.if.js';
|
|
3
3
|
|
|
4
|
+
/** @category Header groups */
|
|
4
5
|
export declare class HeaderGroupOptions implements HeaderGroupOptionsIf {
|
|
5
6
|
iconExpanded: IconIf;
|
|
6
7
|
iconCollapsed: IconIf;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IconIf } from './icon.if';
|
|
1
|
+
import { IconIf } from './icon.if.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The `HeaderGroupOptionsIf` interface is part of the TypeScript project,
|
|
@@ -32,10 +32,9 @@ import { IconIf } from './icon.if';
|
|
|
32
32
|
* classes: ["my-collapsed-icon-class"]
|
|
33
33
|
* }
|
|
34
34
|
* };
|
|
35
|
+
|
|
35
36
|
*
|
|
36
|
-
*
|
|
37
|
-
* interface where `iconExpanded` and `iconCollapsed` each hold the specifications
|
|
38
|
-
* for the expanded and collapsed states of a header group component respectively.
|
|
37
|
+
* @category Header groups
|
|
39
38
|
*/
|
|
40
39
|
export interface HeaderGroupOptionsIf {
|
|
41
40
|
iconExpanded: IconIf;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { IconIf } from './icon.if';
|
|
2
|
-
import { SortedOptionsIf } from './sorted-options.if';
|
|
1
|
+
import { IconIf } from './icon.if.js';
|
|
2
|
+
import { SortedOptionsIf } from './sorted-options.if.js';
|
|
3
3
|
|
|
4
|
+
/** @category Options */
|
|
4
5
|
export declare class SortedOptions implements SortedOptionsIf {
|
|
5
6
|
iconAsc: IconIf;
|
|
6
7
|
iconDesc: IconIf;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IconIf } from './icon.if';
|
|
1
|
+
import { IconIf } from './icon.if.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* This TypeScript interface, `SortedOptionsIf`, represents the configuration options for sorting.
|
|
@@ -21,6 +21,8 @@ import { IconIf } from './icon.if';
|
|
|
21
21
|
* Note that the `classes` property in `IconIf` expects an array of strings, each string indicating a CSS class that should be applied to the icon.
|
|
22
22
|
*
|
|
23
23
|
* @interface
|
|
24
|
+
*
|
|
25
|
+
* @category Options
|
|
24
26
|
*/
|
|
25
27
|
export interface SortedOptionsIf {
|
|
26
28
|
iconAsc: IconIf;
|
|
@@ -1,18 +1,34 @@
|
|
|
1
|
-
import { DefaultRowHeightsIf } from './default-row-heights.if';
|
|
2
|
-
import { TableOptionsIf } from './table-options.if';
|
|
3
|
-
import { TreeOptions } from './tree-options';
|
|
4
|
-
import { FilterFunction } from '../common/filter-function';
|
|
5
|
-
import { SortState } from '../common/sort-state.type';
|
|
6
|
-
import { SortedOptions } from './sorted-options';
|
|
7
|
-
import { GetEditRenderer } from '../../renderer/edit/edit-cell-renderer.type';
|
|
8
|
-
import { SelectionModelIf } from '../../selection/selection-model.if';
|
|
9
|
-
import { GetT } from '../common/get-t';
|
|
10
|
-
import { FocusModelIf } from '../../focus/focus-model.if';
|
|
11
|
-
import { ShortcutActionIdMapping } from '../../action/shortcut-actionid-mapping.type';
|
|
12
|
-
import { HeaderGroupOptions } from './header-group-options';
|
|
1
|
+
import { DefaultRowHeightsIf } from './default-row-heights.if.js';
|
|
2
|
+
import { TableOptionsIf } from './table-options.if.js';
|
|
3
|
+
import { TreeOptions } from './tree-options.js';
|
|
4
|
+
import { FilterFunction } from '../common/filter-function.js';
|
|
5
|
+
import { SortState } from '../common/sort-state.type.js';
|
|
6
|
+
import { SortedOptions } from './sorted-options.js';
|
|
7
|
+
import { GetEditRenderer } from '../../renderer/edit/edit-cell-renderer.type.js';
|
|
8
|
+
import { SelectionModelIf } from '../../selection/selection-model.if.js';
|
|
9
|
+
import { GetT } from '../common/get-t.js';
|
|
10
|
+
import { FocusModelIf } from '../../focus/focus-model.if.js';
|
|
11
|
+
import { ShortcutActionIdMapping } from '../../action/shortcut-actionid-mapping.type.js';
|
|
12
|
+
import { HeaderGroupOptions } from './header-group-options.js';
|
|
13
|
+
import { AriaTextsIf } from '../../aria/aria-texts.if.js';
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
+
* All default options of a table – see {@link TableOptionsIf} for the meaning of each field.
|
|
17
|
+
*
|
|
18
|
+
* Use it with the spread pattern: all defaults, plus your changes.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* const tableOptions: TableOptionsIf = {
|
|
22
|
+
* ...new TableOptions(),
|
|
23
|
+
* hoverColumnVisible: false,
|
|
24
|
+
* verticalBorderVisible: false,
|
|
25
|
+
* defaultRowHeights: { header: 40, body: 30, footer: 36 },
|
|
26
|
+
* externalFilterFunction: (order: Order) => order.total > 1000
|
|
27
|
+
* };
|
|
28
|
+
*
|
|
29
|
+
* @see Training: [TableOptions: behaviour and look](https://gui.expert/training/table-options/)
|
|
30
|
+
*
|
|
31
|
+
* @category Options
|
|
16
32
|
*/
|
|
17
33
|
export declare class TableOptions implements TableOptionsIf {
|
|
18
34
|
overflowX: "auto" | "scroll";
|
|
@@ -53,4 +69,12 @@ export declare class TableOptions implements TableOptionsIf {
|
|
|
53
69
|
* Focus model of the table. Not set (default): every table creates its own `new FocusModel("cell")`.
|
|
54
70
|
*/
|
|
55
71
|
getFocusModel?: GetT<FocusModelIf>;
|
|
72
|
+
/** Accessible name of the table (`aria-label`). Default: none. @since 1.1.91 */
|
|
73
|
+
ariaLabel?: string;
|
|
74
|
+
/** Id of the element that names the table (`aria-labelledby`). Default: none. @since 1.1.91 */
|
|
75
|
+
ariaLabelledBy?: string;
|
|
76
|
+
/** Id of the element that describes the table (`aria-describedby`). Default: none. @since 1.1.91 */
|
|
77
|
+
ariaDescribedBy?: string;
|
|
78
|
+
/** Own screen reader texts; missing functions use the English defaults ({@link AriaTexts}). @since 1.1.91 */
|
|
79
|
+
ariaTexts?: Partial<AriaTextsIf>;
|
|
56
80
|
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { DefaultRowHeightsIf } from './default-row-heights.if';
|
|
2
|
-
import { TreeOptionsIf } from './tree-options.if';
|
|
3
|
-
import { FilterFunction } from '../common/filter-function';
|
|
4
|
-
import { SortState } from '../common/sort-state.type';
|
|
5
|
-
import { SortedOptionsIf } from './sorted-options.if';
|
|
6
|
-
import { AutoRestoreOptionsIf } from './auto-restore-options.if';
|
|
7
|
-
import { GetEditRenderer } from '../../renderer/edit/edit-cell-renderer.type';
|
|
8
|
-
import { SelectionModelIf } from '../../selection/selection-model.if';
|
|
9
|
-
import { GetT } from '../common/get-t';
|
|
10
|
-
import { FocusModelIf } from '../../focus/focus-model.if';
|
|
11
|
-
import { ShortcutActionIdMapping } from '../../action/shortcut-actionid-mapping.type';
|
|
12
|
-
import { HeaderGroupOptionsIf } from './header-group-options.if';
|
|
1
|
+
import { DefaultRowHeightsIf } from './default-row-heights.if.js';
|
|
2
|
+
import { TreeOptionsIf } from './tree-options.if.js';
|
|
3
|
+
import { FilterFunction } from '../common/filter-function.js';
|
|
4
|
+
import { SortState } from '../common/sort-state.type.js';
|
|
5
|
+
import { SortedOptionsIf } from './sorted-options.if.js';
|
|
6
|
+
import { AutoRestoreOptionsIf } from './auto-restore-options.if.js';
|
|
7
|
+
import { GetEditRenderer } from '../../renderer/edit/edit-cell-renderer.type.js';
|
|
8
|
+
import { SelectionModelIf } from '../../selection/selection-model.if.js';
|
|
9
|
+
import { GetT } from '../common/get-t.js';
|
|
10
|
+
import { FocusModelIf } from '../../focus/focus-model.if.js';
|
|
11
|
+
import { ShortcutActionIdMapping } from '../../action/shortcut-actionid-mapping.type.js';
|
|
12
|
+
import { HeaderGroupOptionsIf } from './header-group-options.if.js';
|
|
13
|
+
import { AriaTextsIf } from '../../aria/aria-texts.if.js';
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
16
|
* Represents the options for configuring a table.
|
|
@@ -46,6 +47,20 @@ import { HeaderGroupOptionsIf } from './header-group-options.if';
|
|
|
46
47
|
* | getSelectionModel | Retrieves the selection model for a specific object. |
|
|
47
48
|
* | getFocusModel | Retrieves the focus model of the component. |
|
|
48
49
|
* | shortcutActionIdMapping | Represents a mapping of shortcut action IDs. |
|
|
50
|
+
*
|
|
51
|
+
* Start from the defaults in {@link TableOptions} and change only what you need.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* const tableOptions: TableOptionsIf = {
|
|
55
|
+
* ...new TableOptions(),
|
|
56
|
+
* hoverColumnVisible: false,
|
|
57
|
+
* columnsDraggable: false,
|
|
58
|
+
* defaultRowHeights: { header: 40, body: 30, footer: 36 }
|
|
59
|
+
* };
|
|
60
|
+
*
|
|
61
|
+
* @see Training: [TableOptions: behaviour and look](https://gui.expert/training/table-options/)
|
|
62
|
+
*
|
|
63
|
+
* @category Options
|
|
49
64
|
*/
|
|
50
65
|
export interface TableOptionsIf {
|
|
51
66
|
/**
|
|
@@ -160,72 +175,130 @@ export interface TableOptionsIf {
|
|
|
160
175
|
*/
|
|
161
176
|
footerVerticalSeparator: boolean;
|
|
162
177
|
/**
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
* @typedef {number[]} DefaultRowHeightsIf
|
|
166
|
-
* @description An array of numbers representing the default height for each row in a table.
|
|
178
|
+
* Row heights of header, body and footer in px (default 34 / 34 / 34). Read by {@link TableFactory.createTableModel}
|
|
179
|
+
* when it creates the area models – pass the options there as `tableOptions`, too.
|
|
167
180
|
*/
|
|
168
181
|
defaultRowHeights: DefaultRowHeightsIf;
|
|
182
|
+
/** Reserved – currently not evaluated (tree tables always show the expand-all / collapse-all icon in the top left header cell). */
|
|
169
183
|
headerToggleExpandCollapseIcons: boolean;
|
|
184
|
+
/** Icons and behaviour of tree tables (arrows, indentation). See {@link TreeOptionsIf}. */
|
|
170
185
|
treeOptions: TreeOptionsIf;
|
|
186
|
+
/** Icons of collapsible header groups ({@link AreaModelCellGroups}). */
|
|
171
187
|
headerGroupOptions: HeaderGroupOptionsIf;
|
|
172
188
|
/**
|
|
173
189
|
* Indicates whether to show checkbox without an extra column.
|
|
174
190
|
* If true and the row is checkable, a checkbox is rendered in the first column.
|
|
175
191
|
* If false and the row is checkable, a checkbox is rendered in an extra column left to the first column.
|
|
176
192
|
*
|
|
177
|
-
* @
|
|
193
|
+
* @see Training: [Tree table with checkboxes](https://gui.expert/training/tree-table/)
|
|
178
194
|
*/
|
|
179
195
|
showCheckboxWihoutExtraColumn: boolean;
|
|
180
196
|
/**
|
|
181
|
-
*
|
|
197
|
+
* Your filter: called for every row, return `true` to show it. After changing the filter criteria call
|
|
198
|
+
* {@link TableApi.externalFilterChanged} – the table filters again and keeps the sort order.
|
|
182
199
|
*
|
|
183
|
-
* @
|
|
200
|
+
* @example
|
|
201
|
+
* const filter = { text: "" };
|
|
202
|
+
* const tableOptions: TableOptionsIf = {
|
|
203
|
+
* ...new TableOptions(),
|
|
204
|
+
* externalFilterFunction: (order: Order) => order.customer.toLowerCase().includes(filter.text)
|
|
205
|
+
* };
|
|
206
|
+
* searchInput.addEventListener("input", () => {
|
|
207
|
+
* filter.text = searchInput.value.toLowerCase();
|
|
208
|
+
* tableApi.externalFilterChanged();
|
|
209
|
+
* });
|
|
210
|
+
*
|
|
211
|
+
* @see Training: [Filtering with a live search](https://gui.expert/training/filtering/)
|
|
184
212
|
*/
|
|
185
213
|
externalFilterFunction: FilterFunction<any> | undefined;
|
|
214
|
+
/** The sort icons shown in sortable header cells. */
|
|
215
|
+
sortedOptions: SortedOptionsIf;
|
|
186
216
|
/**
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
* @class
|
|
190
|
-
* @classdesc The SortedOptions represents a class that defines sorted icons, which will displayed in the header (if column is sortable).
|
|
217
|
+
* The order of the sort states on repeated double-clicks on a header, default `["asc", "desc"]`.
|
|
218
|
+
* Add `""` to get "unsorted" as third state. Per column: {@link ColumnDefIf.sortStatesOrder}.
|
|
191
219
|
*/
|
|
192
|
-
|
|
220
|
+
sortOrder: SortState[];
|
|
193
221
|
/**
|
|
194
|
-
*
|
|
222
|
+
* Remember sorting, scroll position and expanded tree nodes in `localStorage`. Off by default.
|
|
195
223
|
*
|
|
196
|
-
* @
|
|
224
|
+
* @see {@link AutoRestoreOptions}
|
|
225
|
+
* @see Training: [Remember the state](https://gui.expert/training/persist-state/)
|
|
197
226
|
*/
|
|
198
|
-
sortOrder: SortState[];
|
|
199
227
|
autoRestoreOptions?: AutoRestoreOptionsIf<any>;
|
|
200
228
|
/**
|
|
201
|
-
*
|
|
229
|
+
* The editor for a cell, if the column has no own {@link ColumnDefIf.getEditRenderer}.
|
|
230
|
+
* Default: a text input ({@link InputCellRenderer}).
|
|
202
231
|
*
|
|
203
|
-
* @
|
|
204
|
-
* @name getEditRenderer
|
|
205
|
-
* @param {string} action - The action for which to retrieve the edit renderer.
|
|
206
|
-
* @returns {GetEditRenderer} - The edit renderer for the specified action.
|
|
232
|
+
* @see Training: [Inline editing](https://gui.expert/training/inline-editing/)
|
|
207
233
|
*/
|
|
208
234
|
getEditRenderer?: GetEditRenderer;
|
|
209
235
|
/**
|
|
210
|
-
*
|
|
236
|
+
* Returns the selection model of the table. Without it every table creates its own `new SelectionModel()`
|
|
237
|
+
* of type `"none"` – nothing can be selected.
|
|
211
238
|
*
|
|
212
|
-
* @
|
|
213
|
-
*
|
|
239
|
+
* @example
|
|
240
|
+
* const selectionModel = new SelectionModel("row", "single");
|
|
241
|
+
* const tableOptions: TableOptionsIf = { ...new TableOptions(), getSelectionModel: () => selectionModel };
|
|
242
|
+
*
|
|
243
|
+
* @see Training: [Select cells, rows and ranges](https://gui.expert/training/selection-and-copy/)
|
|
214
244
|
*/
|
|
215
245
|
getSelectionModel?: GetT<SelectionModelIf>;
|
|
246
|
+
/** Returns the focus model of the table. Default: every table creates its own {@link FocusModel}. */
|
|
247
|
+
getFocusModel?: GetT<FocusModelIf>;
|
|
216
248
|
/**
|
|
217
|
-
*
|
|
249
|
+
* Own keyboard shortcuts: maps a shortcut (e.g. `"ctrl+c"`, `"f2"`) to an {@link ActionId}.
|
|
250
|
+
* Default: {@link WindowsShortcutActionIdMapping} resp. {@link OsxShortcutActionIdMapping}.
|
|
251
|
+
*/
|
|
252
|
+
shortcutActionIdMapping?: ShortcutActionIdMapping;
|
|
253
|
+
/** Switch off all keyboard shortcuts of the table (copy, select all, navigation, F2 …). */
|
|
254
|
+
shortcutActionsDisabled: boolean;
|
|
255
|
+
/**
|
|
256
|
+
* The accessible name of the table for screen readers (`aria-label` of the grid), e.g. `"Orders"`.
|
|
257
|
+
* Prefer {@link ariaLabelledBy} if the page shows a title.
|
|
218
258
|
*
|
|
219
|
-
* @
|
|
259
|
+
* @example
|
|
260
|
+
* const tableOptions: TableOptionsIf = { ...new TableOptions(), ariaLabel: "Orders" };
|
|
261
|
+
*
|
|
262
|
+
* @since 1.1.91
|
|
263
|
+
* @see Training: [Accessible tables: keyboard and screen readers](https://gui.expert/training/accessibility/)
|
|
220
264
|
*/
|
|
221
|
-
|
|
265
|
+
ariaLabel?: string;
|
|
222
266
|
/**
|
|
223
|
-
*
|
|
267
|
+
* The id of the element that names the table, e.g. a heading above it (`aria-labelledby` of the grid).
|
|
268
|
+
* Takes precedence over {@link ariaLabel}.
|
|
224
269
|
*
|
|
225
|
-
* @
|
|
226
|
-
*
|
|
227
|
-
*
|
|
270
|
+
* @example
|
|
271
|
+
* // <h2 id="orders-title">Orders 2026</h2> <div class="table-div"></div>
|
|
272
|
+
* const tableOptions: TableOptionsIf = { ...new TableOptions(), ariaLabelledBy: "orders-title" };
|
|
273
|
+
*
|
|
274
|
+
* @since 1.1.91
|
|
228
275
|
*/
|
|
229
|
-
|
|
230
|
-
|
|
276
|
+
ariaLabelledBy?: string;
|
|
277
|
+
/**
|
|
278
|
+
* The id of an element that describes the table, e.g. a hint below it (`aria-describedby` of the grid).
|
|
279
|
+
*
|
|
280
|
+
* @example
|
|
281
|
+
* // <p id="orders-hint">Double click a header to sort.</p>
|
|
282
|
+
* const tableOptions: TableOptionsIf = { ...new TableOptions(), ariaDescribedBy: "orders-hint" };
|
|
283
|
+
*
|
|
284
|
+
* @since 1.1.91
|
|
285
|
+
*/
|
|
286
|
+
ariaDescribedBy?: string;
|
|
287
|
+
/**
|
|
288
|
+
* Own texts for screen readers – announcements (sorting, filter, copy, select all) and the names of the row
|
|
289
|
+
* checkboxes and header group toggles. Functions you leave out keep their English default ({@link AriaTexts}).
|
|
290
|
+
*
|
|
291
|
+
* @example
|
|
292
|
+
* const tableOptions: TableOptionsIf = {
|
|
293
|
+
* ...new TableOptions(),
|
|
294
|
+
* ariaTexts: {
|
|
295
|
+
* filtered: (rowCount: number) => `${rowCount} Zeilen`,
|
|
296
|
+
* copied: (cellCount: number) => `${cellCount} Zellen kopiert`,
|
|
297
|
+
* selectRow: (rowNumber: number) => `Zeile ${rowNumber} auswählen`,
|
|
298
|
+
* },
|
|
299
|
+
* };
|
|
300
|
+
*
|
|
301
|
+
* @since 1.1.91
|
|
302
|
+
*/
|
|
303
|
+
ariaTexts?: Partial<AriaTextsIf>;
|
|
231
304
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { IconIf } from './icon.if';
|
|
2
|
-
import { TreeOptionsIf } from './tree-options.if';
|
|
1
|
+
import { IconIf } from './icon.if.js';
|
|
2
|
+
import { TreeOptionsIf } from './tree-options.if.js';
|
|
3
3
|
|
|
4
|
+
/** @category Options */
|
|
4
5
|
export declare class TreeOptions implements TreeOptionsIf {
|
|
5
6
|
arrowExpanded: IconIf;
|
|
6
7
|
arrowCollapsed: IconIf;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IconIf } from './icon.if';
|
|
1
|
+
import { IconIf } from './icon.if.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* This interface `TreeOptionsIf` represents the specific configuration and properties of a tree component, usually displayed in a User Interface (UI).
|
|
@@ -40,6 +40,8 @@ import { IconIf } from './icon.if';
|
|
|
40
40
|
* classes: ['placeholder-icon-class'],
|
|
41
41
|
* },
|
|
42
42
|
* };
|
|
43
|
+
*
|
|
44
|
+
* @category Options
|
|
43
45
|
*/
|
|
44
46
|
export interface TreeOptionsIf {
|
|
45
47
|
arrowExpandCollapseAll: IconIf;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { TableModelAndOptionsIf } from './table-model-and-options.if';
|
|
2
|
-
import { TableModelIf } from './tablemodel/table-model.if';
|
|
3
|
-
import { TableOptions } from './options/table-options';
|
|
1
|
+
import { TableModelAndOptionsIf } from './table-model-and-options.if.js';
|
|
2
|
+
import { TableModelIf } from './tablemodel/table-model.if.js';
|
|
3
|
+
import { TableOptions } from './options/table-options.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Container object for one table model and one table options object.
|
|
7
|
+
*
|
|
8
|
+
* @category Table model
|
|
7
9
|
*/
|
|
8
10
|
export declare class TableModelAndOptions implements TableModelAndOptionsIf {
|
|
9
11
|
tableModel: TableModelIf;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { TableModelIf } from './tablemodel/table-model.if';
|
|
2
|
-
import { TableOptions } from './options/table-options';
|
|
1
|
+
import { TableModelIf } from './tablemodel/table-model.if.js';
|
|
2
|
+
import { TableOptions } from './options/table-options.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Interface for a container object for one table model and one table options object.
|
|
6
|
+
*
|
|
7
|
+
* @category Table model
|
|
6
8
|
*/
|
|
7
9
|
export interface TableModelAndOptionsIf {
|
|
8
10
|
tableModel: TableModelIf;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The AreaIdent is an identifier for the three areas : header, body, and footer.
|
|
3
|
+
*
|
|
4
|
+
* @category Area models
|
|
3
5
|
*/
|
|
4
6
|
export type AreaIdent = "header" | "body" | "footer";
|
|
5
7
|
/**
|
|
6
8
|
* Converts a string to the identifier of type AreaIdent.
|
|
7
9
|
* @param s should be "header"|"body"|"footer". The fallback return value is 'body'
|
|
10
|
+
*
|
|
11
|
+
* @category Area models
|
|
8
12
|
*/
|
|
9
13
|
export declare const getAreaIdentByString: (s: string | null) => AreaIdent;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { CellRendererIf } from '../../../renderer/cell-render.if';
|
|
2
|
-
import { AreaModelIf } from './area-model.if';
|
|
3
|
-
import { CheckedType } from '../../common/checked-type';
|
|
4
|
-
import { ColumnDefIf } from '../column/column-def.if';
|
|
5
|
-
import { AreaIdent } from '../area-ident.type';
|
|
6
|
-
import { CheckboxModelIf } from '../../../checkbox/checkbox-model.if';
|
|
7
|
-
import { FilterFunction } from '../../common/filter-function';
|
|
8
|
-
import { SortItem } from '../../common/sort-item';
|
|
9
|
-
import { HasDefaultRowHeightIf } from './has-default-row-height-if';
|
|
1
|
+
import { CellRendererIf } from '../../../renderer/cell-render.if.js';
|
|
2
|
+
import { AreaModelIf } from './area-model.if.js';
|
|
3
|
+
import { CheckedType } from '../../common/checked-type.js';
|
|
4
|
+
import { ColumnDefIf } from '../column/column-def.if.js';
|
|
5
|
+
import { AreaIdent } from '../area-ident.type.js';
|
|
6
|
+
import { CheckboxModelIf } from '../../../checkbox/checkbox-model.if.js';
|
|
7
|
+
import { FilterFunction } from '../../common/filter-function.js';
|
|
8
|
+
import { SortItem } from '../../common/sort-item.js';
|
|
9
|
+
import { HasDefaultRowHeightIf } from './has-default-row-height-if.js';
|
|
10
10
|
|
|
11
|
+
/** @category Area models */
|
|
11
12
|
export declare abstract class AbstractAreaModel<T> implements AreaModelIf, HasDefaultRowHeightIf {
|
|
12
13
|
areaIdent: AreaIdent;
|
|
13
14
|
protected columnDefs: ColumnDefIf[];
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { AbstractAreaModel } from './abstract-area-model';
|
|
2
|
-
import { AreaIdent } from '../area-ident.type';
|
|
3
|
-
import { ColumnDefIf } from '../column/column-def.if';
|
|
4
|
-
import { FilterFunction } from '../../common/filter-function';
|
|
1
|
+
import { AbstractAreaModel } from './abstract-area-model.js';
|
|
2
|
+
import { AreaIdent } from '../area-ident.type.js';
|
|
3
|
+
import { ColumnDefIf } from '../column/column-def.if.js';
|
|
4
|
+
import { FilterFunction } from '../../common/filter-function.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Represents a model for an area containing a two-dimensional array of data.
|
|
8
8
|
* @template T - The type of data in the array.
|
|
9
|
+
*
|
|
10
|
+
* @category Area models
|
|
9
11
|
*/
|
|
10
12
|
export declare class AreaModelArrayOfArrays<T> extends AbstractAreaModel<T[][]> {
|
|
11
13
|
areaIdent: AreaIdent;
|