@ornery/ui-grid-vanilla 1.0.7 → 1.0.8
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/adopt-styles.d.ts +2 -0
- package/dist/adopt-styles.d.ts.map +1 -0
- package/dist/attribute-bridge.d.ts +39 -0
- package/dist/attribute-bridge.d.ts.map +1 -0
- package/dist/browser.d.ts +3 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/components/grid-body-cell/grid-body-cell.d.ts +19 -0
- package/dist/components/grid-body-cell/grid-body-cell.d.ts.map +1 -0
- package/dist/components/grid-body-cell/index.d.ts +2 -0
- package/dist/components/grid-body-cell/index.d.ts.map +1 -0
- package/dist/components/grid-cell-editor/grid-cell-editor.d.ts +28 -0
- package/dist/components/grid-cell-editor/grid-cell-editor.d.ts.map +1 -0
- package/dist/components/grid-cell-editor/index.d.ts +2 -0
- package/dist/components/grid-cell-editor/index.d.ts.map +1 -0
- package/dist/components/grid-filter-cell/grid-filter-cell.d.ts +32 -0
- package/dist/components/grid-filter-cell/grid-filter-cell.d.ts.map +1 -0
- package/dist/components/grid-filter-cell/grid-filter-cell.template.d.ts +8 -0
- package/dist/components/grid-filter-cell/grid-filter-cell.template.d.ts.map +1 -0
- package/dist/components/grid-filter-cell/index.d.ts +2 -0
- package/dist/components/grid-filter-cell/index.d.ts.map +1 -0
- package/dist/components/grid-group-row/grid-group-row.d.ts +55 -0
- package/dist/components/grid-group-row/grid-group-row.d.ts.map +1 -0
- package/dist/components/grid-group-row/grid-group-row.template.d.ts +12 -0
- package/dist/components/grid-group-row/grid-group-row.template.d.ts.map +1 -0
- package/dist/components/grid-group-row/index.d.ts +2 -0
- package/dist/components/grid-group-row/index.d.ts.map +1 -0
- package/dist/components/grid-header-cell/grid-header-cell.d.ts +13 -0
- package/dist/components/grid-header-cell/grid-header-cell.d.ts.map +1 -0
- package/dist/components/grid-header-cell/index.d.ts +2 -0
- package/dist/components/grid-header-cell/index.d.ts.map +1 -0
- package/dist/components/grid-pagination/grid-pagination.d.ts +45 -0
- package/dist/components/grid-pagination/grid-pagination.d.ts.map +1 -0
- package/dist/components/grid-pagination/grid-pagination.template.d.ts +17 -0
- package/dist/components/grid-pagination/grid-pagination.template.d.ts.map +1 -0
- package/dist/components/grid-pagination/index.d.ts +2 -0
- package/dist/components/grid-pagination/index.d.ts.map +1 -0
- package/dist/components/grid-template/grid-template.d.ts +31 -0
- package/dist/components/grid-template/grid-template.d.ts.map +1 -0
- package/dist/components/grid-template/index.d.ts +2 -0
- package/dist/components/grid-template/index.d.ts.map +1 -0
- package/dist/events.d.ts +43 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/focus.d.ts +100 -0
- package/dist/focus.d.ts.map +1 -0
- package/dist/framework-slots.d.ts +170 -0
- package/dist/framework-slots.d.ts.map +1 -0
- package/dist/grid-controller.d.ts +363 -0
- package/dist/grid-controller.d.ts.map +1 -0
- package/dist/icons.d.ts +34 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/index.d.ts +11 -902
- package/dist/index.d.ts.map +1 -0
- package/dist/patch.d.ts +88 -0
- package/dist/patch.d.ts.map +1 -0
- package/dist/render.d.ts +62 -0
- package/dist/render.d.ts.map +1 -0
- package/dist/templates/index.d.ts +24 -0
- package/dist/templates/index.d.ts.map +1 -0
- package/dist/ui-grid-empty.template.d.ts +8 -0
- package/dist/ui-grid-empty.template.d.ts.map +1 -0
- package/dist/ui-grid-shell.template.d.ts +17 -0
- package/dist/ui-grid-shell.template.d.ts.map +1 -0
- package/dist/ui-grid-standalone.element.d.ts +309 -0
- package/dist/ui-grid-standalone.element.d.ts.map +1 -0
- package/dist/utils/cell-class.d.ts +9 -0
- package/dist/utils/cell-class.d.ts.map +1 -0
- package/dist/utils/display-items.d.ts +11 -0
- package/dist/utils/display-items.d.ts.map +1 -0
- package/dist/utils/dom.d.ts +22 -0
- package/dist/utils/dom.d.ts.map +1 -0
- package/package.json +10 -10
- package/tsconfig.dts.json +15 -0
- package/tsconfig.json +0 -1
- package/tsup.config.ts +1 -1
- package/dist/index.d.mts +0 -904
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Framework-rendered slot bridge for the vanilla grid element.
|
|
3
|
+
*
|
|
4
|
+
* The vanilla grid renders every cell / header / filter / group / expandable
|
|
5
|
+
* / empty-state via string-interpolated templates by default. When a
|
|
6
|
+
* framework wrapper (Angular, React, or any other consumer) wants to own
|
|
7
|
+
* rendering of a slot with its own templating engine, it calls
|
|
8
|
+
* `setFrameworkRenderedSlots()` on the element to flip slot kinds into
|
|
9
|
+
* "slot placeholder" mode.
|
|
10
|
+
*
|
|
11
|
+
* In that mode the element emits `<slot name="…">` placeholders at the
|
|
12
|
+
* usual render sites. The wrapper listens for the `*SlotsChanged` event
|
|
13
|
+
* this module dispatches and inserts light-DOM nodes with matching `slot`
|
|
14
|
+
* attributes carrying its framework-rendered content. Slot projection then
|
|
15
|
+
* composes the wrapper's view back into the shadow tree without the
|
|
16
|
+
* wrapper ever touching the shadow DOM directly.
|
|
17
|
+
*
|
|
18
|
+
* Slot naming conventions:
|
|
19
|
+
* - `cell-<columnName>-<rowId>` per-cell (one slot per rendered body cell)
|
|
20
|
+
* - `header-<columnName>` per-column, singleton
|
|
21
|
+
* - `filter-<columnName>` per-column, singleton
|
|
22
|
+
* - `group-row-<groupId>` per-group
|
|
23
|
+
* - `expandable-row-<rowId>` per-row
|
|
24
|
+
* - `empty` singleton
|
|
25
|
+
*/
|
|
26
|
+
import { type GridCellTemplateContext, type GridColumnDef, type GridExpandableTemplateContext, type GridHeaderTemplateContext, type GridLabels, type GridRow, type GroupItem } from '@ornery/ui-grid-core';
|
|
27
|
+
/** Which slot kinds the element should render as `<slot>` placeholders. */
|
|
28
|
+
export interface FrameworkRenderedSlotsConfig {
|
|
29
|
+
/** Column names whose body cells are framework-rendered. Everything else
|
|
30
|
+
* continues to use the vanilla interpolation path. */
|
|
31
|
+
cells?: readonly string[];
|
|
32
|
+
/** Column names whose header cells are framework-rendered. */
|
|
33
|
+
headers?: readonly string[];
|
|
34
|
+
/** Column names whose filter cells are framework-rendered. */
|
|
35
|
+
filters?: readonly string[];
|
|
36
|
+
/** When true, group rows are emitted as slot placeholders. */
|
|
37
|
+
groupRow?: boolean;
|
|
38
|
+
/** When true, expandable detail rows are emitted as slot placeholders. */
|
|
39
|
+
expandableRow?: boolean;
|
|
40
|
+
/** When true, the empty-state panel is emitted as a slot placeholder. */
|
|
41
|
+
emptyState?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface FrameworkCellSlot {
|
|
44
|
+
slotName: string;
|
|
45
|
+
columnName: string;
|
|
46
|
+
rowId: string;
|
|
47
|
+
rowIndex: number;
|
|
48
|
+
context: GridCellTemplateContext;
|
|
49
|
+
}
|
|
50
|
+
export interface FrameworkHeaderSlot {
|
|
51
|
+
slotName: string;
|
|
52
|
+
columnName: string;
|
|
53
|
+
context: GridHeaderTemplateContext;
|
|
54
|
+
}
|
|
55
|
+
export interface FrameworkFilterSlot {
|
|
56
|
+
slotName: string;
|
|
57
|
+
columnName: string;
|
|
58
|
+
value: string;
|
|
59
|
+
placeholder: string;
|
|
60
|
+
disabled: boolean;
|
|
61
|
+
column: GridColumnDef;
|
|
62
|
+
}
|
|
63
|
+
export interface FrameworkGroupRowSlot {
|
|
64
|
+
slotName: string;
|
|
65
|
+
groupId: string;
|
|
66
|
+
field: string;
|
|
67
|
+
label: string;
|
|
68
|
+
count: number;
|
|
69
|
+
depth: number;
|
|
70
|
+
collapsed: boolean;
|
|
71
|
+
}
|
|
72
|
+
export interface FrameworkExpandableRowSlot {
|
|
73
|
+
slotName: string;
|
|
74
|
+
rowId: string;
|
|
75
|
+
rowIndex: number;
|
|
76
|
+
context: GridExpandableTemplateContext;
|
|
77
|
+
}
|
|
78
|
+
export interface FrameworkEmptyStateSlot {
|
|
79
|
+
slotName: 'empty';
|
|
80
|
+
heading: string;
|
|
81
|
+
description: string;
|
|
82
|
+
labels: GridLabels;
|
|
83
|
+
}
|
|
84
|
+
export interface FrameworkSlotDelta<TSlot> {
|
|
85
|
+
added: TSlot[];
|
|
86
|
+
removed: TSlot[];
|
|
87
|
+
}
|
|
88
|
+
export declare function cellSlotName(column: GridColumnDef): string;
|
|
89
|
+
export declare function cellSlotNameForRow(column: GridColumnDef, row: GridRow): string;
|
|
90
|
+
export declare function headerSlotName(column: GridColumnDef): string;
|
|
91
|
+
export declare function filterSlotName(column: GridColumnDef): string;
|
|
92
|
+
export declare function groupRowSlotName(group: GroupItem): string;
|
|
93
|
+
export declare function expandableRowSlotName(row: GridRow): string;
|
|
94
|
+
/**
|
|
95
|
+
* Bridge state + behavior. The element creates one instance, reads the
|
|
96
|
+
* `has*` methods during render to decide which path to take, calls the
|
|
97
|
+
* `stage*` methods as it emits slot placeholders, and calls `flush()` at
|
|
98
|
+
* the end of each render pass to emit the add/remove delta.
|
|
99
|
+
*/
|
|
100
|
+
export declare class FrameworkSlotBridge {
|
|
101
|
+
private readonly host;
|
|
102
|
+
private flaggedCells;
|
|
103
|
+
private flaggedHeaders;
|
|
104
|
+
private flaggedFilters;
|
|
105
|
+
private flaggedGroupRow;
|
|
106
|
+
private flaggedExpandableRow;
|
|
107
|
+
private flaggedEmptyState;
|
|
108
|
+
private lastCellSlots;
|
|
109
|
+
private lastExpandableRowSlots;
|
|
110
|
+
private lastGroupRowSlots;
|
|
111
|
+
private lastHeaderSlots;
|
|
112
|
+
private lastFilterSlots;
|
|
113
|
+
private lastEmptyStateSlot;
|
|
114
|
+
private pendingCellSlots;
|
|
115
|
+
private pendingExpandableRowSlots;
|
|
116
|
+
private pendingGroupRowSlots;
|
|
117
|
+
private pendingHeaderSlots;
|
|
118
|
+
private pendingFilterSlots;
|
|
119
|
+
private pendingEmptyStateSlot;
|
|
120
|
+
constructor(host: EventTarget);
|
|
121
|
+
/**
|
|
122
|
+
* Apply a slots config. Returns true when the structural set changed (and
|
|
123
|
+
* therefore a re-render is required), false when the config is a no-op.
|
|
124
|
+
*/
|
|
125
|
+
configure(config: FrameworkRenderedSlotsConfig): boolean;
|
|
126
|
+
hasCell(columnName: string): boolean;
|
|
127
|
+
hasHeader(columnName: string): boolean;
|
|
128
|
+
hasFilter(columnName: string): boolean;
|
|
129
|
+
hasGroupRow(): boolean;
|
|
130
|
+
hasExpandableRow(): boolean;
|
|
131
|
+
hasEmptyState(): boolean;
|
|
132
|
+
stageCell(column: GridColumnDef, row: GridRow, rowIndex: number): void;
|
|
133
|
+
/**
|
|
134
|
+
* Carry forward every previously-known cell slot for `rowId` into the
|
|
135
|
+
* current pending set. Used by the structural patch path when a row's
|
|
136
|
+
* fingerprint matches the previous render's: `stageCell` would normally
|
|
137
|
+
* re-record the slot during cell rendering, but the fingerprint
|
|
138
|
+
* short-circuit skips the render pass for unchanged rows. Without this,
|
|
139
|
+
* `flush()` would diff pending (missing the row's slots) against last
|
|
140
|
+
* (containing them) and emit a spurious `removed` for every cell of the
|
|
141
|
+
* unchanged row, destroying the framework wrappers' projected content.
|
|
142
|
+
*/
|
|
143
|
+
carryRowCells(rowId: string): void;
|
|
144
|
+
stageExpandableRow(row: GridRow, rowIndex: number): void;
|
|
145
|
+
stageGroupRow(group: GroupItem): void;
|
|
146
|
+
stageHeader(column: GridColumnDef): void;
|
|
147
|
+
stageFilter(column: GridColumnDef, value: string, placeholder: string, disabled: boolean): void;
|
|
148
|
+
stageEmptyState(heading: string, description: string, labels: GridLabels): void;
|
|
149
|
+
/**
|
|
150
|
+
* Diff pending vs. last, dispatch `*SlotsChanged` events for every kind
|
|
151
|
+
* that moved, then swap last = pending and reset pending. Called at the
|
|
152
|
+
* end of every render pass.
|
|
153
|
+
*/
|
|
154
|
+
flush(): void;
|
|
155
|
+
/**
|
|
156
|
+
* Data-only patch variant: merge pending entries into last without firing
|
|
157
|
+
* events, since the slot structure hasn't changed (only cell contexts
|
|
158
|
+
* refreshed). Wrappers that need context updates subscribe to
|
|
159
|
+
* `rowsVisibleChanged`.
|
|
160
|
+
*/
|
|
161
|
+
mergePendingIntoLast(): void;
|
|
162
|
+
/**
|
|
163
|
+
* On element teardown, emit `removed` for every remaining slot so wrappers
|
|
164
|
+
* can destroy their views.
|
|
165
|
+
*/
|
|
166
|
+
flushRemovals(): void;
|
|
167
|
+
private diffAndEmit;
|
|
168
|
+
private diffAndEmitSingleton;
|
|
169
|
+
}
|
|
170
|
+
//# sourceMappingURL=framework-slots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"framework-slots.d.ts","sourceRoot":"","sources":["../src/framework-slots.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAGL,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,UAAU,EAEf,KAAK,OAAO,EACZ,KAAK,SAAS,EACf,MAAM,sBAAsB,CAAC;AAE9B,2EAA2E;AAC3E,MAAM,WAAW,4BAA4B;IAC3C;0DACsD;IACtD,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,8DAA8D;IAC9D,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,8DAA8D;IAC9D,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0EAA0E;IAC1E,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,yEAAyE;IACzE,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,uBAAuB,CAAC;CAClC;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAA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,MAAM,GAAG,IAAI;IAQlC,kBAAkB,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IAexD,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAarC,WAAW,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;IASxC,WAAW,CACT,MAAM,EAAE,aAAa,EACrB,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,OAAO,GAChB,IAAI;IAYP,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI;IAS/E;;;;OAIG;IACH,KAAK,IAAI,IAAI;IAsCb;;;;;OAKG;IACH,oBAAoB,IAAI,IAAI;IAU5B;;;OAGG;IACH,aAAa,IAAI,IAAI;IAIrB,OAAO,CAAC,WAAW;IAuBnB,OAAO,CAAC,oBAAoB;CAiB7B"}
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import { resolveGridSelectionOptions, GridValidatorRegistry, type GridSelectionState, type GridInfiniteScrollState, type DisplayItem, type GridCellPosition, type GridColumnDef, type GridBenchmarkResult, type GridLabels, type GridOptions, type GridRecord, type GridRow, type PipelineResult, type PinDirection, type PinnedColumnState, type SortDirection, type GroupItem, type SortState, type UiGridApi } from '@ornery/ui-grid-core';
|
|
2
|
+
/**
|
|
3
|
+
* Complete grid save state — parity with the old `ui.grid.saveState`
|
|
4
|
+
* module. Every field is optional so partial saves / restores work too.
|
|
5
|
+
*
|
|
6
|
+
* Opt-in/out behaviour mirrors the old module: by default save() serialises
|
|
7
|
+
* everything; consumers can disable per-field capture via
|
|
8
|
+
* `saveSort`/`saveFilter`/... options on `GridOptions`. Restore tolerates
|
|
9
|
+
* missing fields.
|
|
10
|
+
*/
|
|
11
|
+
export interface GridSaveState {
|
|
12
|
+
sortState?: SortState;
|
|
13
|
+
activeFilters?: Record<string, string>;
|
|
14
|
+
groupByColumns?: string[];
|
|
15
|
+
collapsedGroups?: Record<string, boolean>;
|
|
16
|
+
pinnedColumns?: PinnedColumnState;
|
|
17
|
+
columnOrder?: string[];
|
|
18
|
+
columnWidthOverrides?: Record<string, string>;
|
|
19
|
+
currentPage?: number;
|
|
20
|
+
pageSize?: number;
|
|
21
|
+
selectedRowIds?: string[];
|
|
22
|
+
focusedCell?: GridCellPosition | null;
|
|
23
|
+
expandedRows?: Record<string, boolean>;
|
|
24
|
+
expandedTreeRows?: Record<string, boolean>;
|
|
25
|
+
scrollTop?: number;
|
|
26
|
+
scrollLeft?: number;
|
|
27
|
+
}
|
|
28
|
+
export interface GridControllerSnapshot {
|
|
29
|
+
options: GridOptions;
|
|
30
|
+
labels: GridLabels;
|
|
31
|
+
rowSize: number;
|
|
32
|
+
visibleColumns: GridColumnDef[];
|
|
33
|
+
gridTemplateColumns: string;
|
|
34
|
+
pipeline: PipelineResult;
|
|
35
|
+
activeFilters: Record<string, string>;
|
|
36
|
+
sortState: SortState;
|
|
37
|
+
groupByColumns: string[];
|
|
38
|
+
pinnedColumns: PinnedColumnState;
|
|
39
|
+
currentPage: number;
|
|
40
|
+
totalPages: number;
|
|
41
|
+
firstRowIndex: number;
|
|
42
|
+
lastRowIndex: number;
|
|
43
|
+
pageSize: number;
|
|
44
|
+
editingCell: GridCellPosition | null;
|
|
45
|
+
editingValue: string;
|
|
46
|
+
/** Row ids currently selected. A ReadonlySet for surgical DOM updates —
|
|
47
|
+
* the renderer toggles the .ui-grid-row-selected class on every cell
|
|
48
|
+
* whose data-row matches one of these ids. */
|
|
49
|
+
selectedRowIds: ReadonlySet<string>;
|
|
50
|
+
selectAll: boolean;
|
|
51
|
+
focusedRowId: string | null;
|
|
52
|
+
selectedCount: number;
|
|
53
|
+
}
|
|
54
|
+
export type GridControllerSubscriber = (snapshot: GridControllerSnapshot) => void;
|
|
55
|
+
export declare class VanillaGridController {
|
|
56
|
+
private options;
|
|
57
|
+
private activeFilters;
|
|
58
|
+
private sortState;
|
|
59
|
+
private groupByColumns;
|
|
60
|
+
private lastOptionsGroupBy;
|
|
61
|
+
private lastOptionsPinnedState;
|
|
62
|
+
private lastOptionsInfiniteScrollUp;
|
|
63
|
+
private lastOptionsInfiniteScrollDown;
|
|
64
|
+
private collapsedGroups;
|
|
65
|
+
private hiddenRowReasons;
|
|
66
|
+
private expandedRows;
|
|
67
|
+
private expandedTreeRows;
|
|
68
|
+
private pinnedColumns;
|
|
69
|
+
private columnOrder;
|
|
70
|
+
private columnWidthOverrides;
|
|
71
|
+
private viewportWidth;
|
|
72
|
+
private currentPage;
|
|
73
|
+
private pageSize;
|
|
74
|
+
private editingCell;
|
|
75
|
+
private editingValue;
|
|
76
|
+
private exporterOverrides;
|
|
77
|
+
private validatorRegistry;
|
|
78
|
+
private rowEditState;
|
|
79
|
+
private rowEditTimers;
|
|
80
|
+
private rowEditSavePromiseOverrides;
|
|
81
|
+
private selectionState;
|
|
82
|
+
/** cellNav state. Persists the last focused cell so the public API's
|
|
83
|
+
* getFocusedCell returns the right value across re-renders, and tracks
|
|
84
|
+
* the focused-cells history for getCurrentSelection. */
|
|
85
|
+
private cellNavLastRowCol;
|
|
86
|
+
private cellNavFocusedCells;
|
|
87
|
+
/** Infinite-scroll state. Direction flags seed from options; dataLoading
|
|
88
|
+
* + previousVisibleRows are runtime bookkeeping for saveScrollPercentage /
|
|
89
|
+
* dataRemovedTop / dataRemovedBottom. */
|
|
90
|
+
private infiniteScrollState;
|
|
91
|
+
private pipeline;
|
|
92
|
+
private labels;
|
|
93
|
+
private visibleColumns;
|
|
94
|
+
private apiRegistered;
|
|
95
|
+
private disposed;
|
|
96
|
+
private wasmEngineInitRequested;
|
|
97
|
+
private readonly subscribers;
|
|
98
|
+
readonly gridApi: UiGridApi;
|
|
99
|
+
constructor(options: GridOptions);
|
|
100
|
+
/** Disposer for the i18n language-change listener — cleared when the
|
|
101
|
+
* controller is torn down (matches the pattern used for other global
|
|
102
|
+
* subscriptions). */
|
|
103
|
+
private disposeLanguageListener;
|
|
104
|
+
dispose(): void;
|
|
105
|
+
setOptions(options: GridOptions): void;
|
|
106
|
+
/**
|
|
107
|
+
* Fast-path: swap only the row data and rebuild the pipeline without
|
|
108
|
+
* touching column state. Emits the new snapshot. The element uses this to
|
|
109
|
+
* patch cell content in-place without rebuilding the full shadow DOM.
|
|
110
|
+
*/
|
|
111
|
+
refreshData(data: readonly GridRecord[]): void;
|
|
112
|
+
subscribe(subscriber: GridControllerSubscriber): () => void;
|
|
113
|
+
getSnapshot(): GridControllerSnapshot;
|
|
114
|
+
getDisplayItems(): DisplayItem[];
|
|
115
|
+
setCollapsedGroup(groupId: string, collapsed: boolean): void;
|
|
116
|
+
toggleSort(columnName: string): void;
|
|
117
|
+
sortColumn(columnName: string, direction?: SortDirection): void;
|
|
118
|
+
setFilter(columnName: string, value: string): void;
|
|
119
|
+
clearAllFilters(): void;
|
|
120
|
+
toggleGrouping(columnName: string): void;
|
|
121
|
+
clearGrouping(): void;
|
|
122
|
+
seekPage(page: number): void;
|
|
123
|
+
setPageSize(pageSize: number): void;
|
|
124
|
+
pinColumn(columnName: string, direction: PinDirection): void;
|
|
125
|
+
moveVisibleColumn(columnName: string, targetColumnName: string): void;
|
|
126
|
+
toggleRowExpansion(row: GridRow | GridRecord | string): void;
|
|
127
|
+
expandAllRows(): void;
|
|
128
|
+
collapseAllRows(): void;
|
|
129
|
+
toggleTreeRow(row: GridRow | GridRecord | string): void;
|
|
130
|
+
expandAllTreeRows(): void;
|
|
131
|
+
collapseAllTreeRows(): void;
|
|
132
|
+
setTreeRowExpanded(row: GridRow | GridRecord | string, expanded: boolean): void;
|
|
133
|
+
beginCellEdit(row: GridRow | GridRecord | string, columnName: string, triggerEvent?: Event | KeyboardEvent | null, initialValue?: string): void;
|
|
134
|
+
updateEditingValue(value: string): void;
|
|
135
|
+
commitCellEdit(): void;
|
|
136
|
+
cancelCellEdit(): void;
|
|
137
|
+
/** Internal: run a core selection mutation, raise events, trigger a render. */
|
|
138
|
+
private applySelectionChange;
|
|
139
|
+
private allGridRows;
|
|
140
|
+
toggleRowSelectionByEntity(rowEntity: GridRecord, evt?: Event | null): void;
|
|
141
|
+
selectRow(rowEntity: GridRecord, evt?: Event | null): void;
|
|
142
|
+
selectRowByVisibleIndex(rowNum: number, evt?: Event | null): void;
|
|
143
|
+
selectRowByKey(isInEntity: boolean, key: string, comparator: unknown, evt?: Event | null, lookInRows?: readonly GridRow[]): void;
|
|
144
|
+
unSelectRow(rowEntity: GridRecord, evt?: Event | null): void;
|
|
145
|
+
unSelectRowByVisibleIndex(rowNum: number, evt?: Event | null): void;
|
|
146
|
+
unSelectRowByKey(isInEntity: boolean, key: string, comparator: unknown, evt?: Event | null, lookInRows?: readonly GridRow[]): void;
|
|
147
|
+
selectAllRows(evt?: Event | null): void;
|
|
148
|
+
selectAllVisibleRows(evt?: Event | null): void;
|
|
149
|
+
clearSelectedRows(evt?: Event | null): void;
|
|
150
|
+
shiftSelectRow(rowEntity: GridRecord, evt?: Event | null): void;
|
|
151
|
+
getSelectedRows(): GridRecord[];
|
|
152
|
+
getUnSelectedRows(): GridRecord[];
|
|
153
|
+
getSelectedGridRows(): GridRow[];
|
|
154
|
+
getUnSelectedGridRows(): GridRow[];
|
|
155
|
+
setMultiSelect(multiSelect: boolean): void;
|
|
156
|
+
setModifierKeysToMultiSelect(value: boolean): void;
|
|
157
|
+
/** Focus a row by id — the old module's `row.setFocused(true)` with all
|
|
158
|
+
* the book-keeping. Raises rowFocusChanged and refreshes. */
|
|
159
|
+
setRowFocused(rowId: string, focused: boolean, evt?: Event | null): void;
|
|
160
|
+
getRowSelectionState(): Readonly<GridSelectionState>;
|
|
161
|
+
/** Resolved/defaulted selection options — exposed for the element layer
|
|
162
|
+
* so it can decide whether to wire pointer handlers without duplicating
|
|
163
|
+
* default logic. */
|
|
164
|
+
getResolvedSelectionOptions(): ReturnType<typeof resolveGridSelectionOptions>;
|
|
165
|
+
/** Public analogue of findRowById — the element uses this during drag
|
|
166
|
+
* painting to resolve a row-id back to its entity without calling the
|
|
167
|
+
* selection API methods that would double-raise events. */
|
|
168
|
+
findRowByIdPublic(rowId: string): GridRow | null;
|
|
169
|
+
/** Record a navigation event. Pushes to the focused-cells history,
|
|
170
|
+
* updates lastRowCol, and raises cellNav.navigate on the public API. */
|
|
171
|
+
setCellNavFocus(rowId: string | null, columnName: string | null, opts?: {
|
|
172
|
+
appendToSelection?: boolean;
|
|
173
|
+
}): void;
|
|
174
|
+
/** Raise viewPortKeyDown / viewPortKeyPress on behalf of the element.
|
|
175
|
+
* Element gates this with `options.keyDownOverrides`. */
|
|
176
|
+
raiseCellNavKeyEvent(type: 'keydown' | 'keypress', event: KeyboardEvent): void;
|
|
177
|
+
private cellNavGetFocusedCell;
|
|
178
|
+
private cellNavGetCurrentSelection;
|
|
179
|
+
private cellNavRowColSelectIndex;
|
|
180
|
+
private resolveCellNavRowCol;
|
|
181
|
+
/** cellNav.scrollToFocus — resolves rowEntity + colDef into a logical
|
|
182
|
+
* focus and delegates to the element (if attached) for actual scrolling.
|
|
183
|
+
* When the element isn't wired (e.g. bare controller in tests), the
|
|
184
|
+
* state still updates and the promise resolves immediately. */
|
|
185
|
+
private cellNavScrollToFocus;
|
|
186
|
+
/** Element registers its scroll-and-focus handler here so the API
|
|
187
|
+
* binding above can delegate DOM work. Controller stays DOM-free. */
|
|
188
|
+
private cellNavScrollRequest;
|
|
189
|
+
setCellNavScrollHandler(handler: ((rowId: string | null, columnName: string | null) => void) | null): void;
|
|
190
|
+
/** Read-only accessor for the current options. Used by the element to
|
|
191
|
+
* inspect keyDownOverrides / modifierKeysToMultiSelectCells without
|
|
192
|
+
* coupling it to a private field. */
|
|
193
|
+
getOptions(): GridOptions;
|
|
194
|
+
/** Evaluate whether the current scroll position should request more
|
|
195
|
+
* data at the top or bottom. Called from the element's scroll frame. */
|
|
196
|
+
evaluateInfiniteScroll(startIndex: number, visibleRows: number, viewportRows: number): void;
|
|
197
|
+
private infiniteScrollDataLoaded;
|
|
198
|
+
private infiniteScrollResetScroll;
|
|
199
|
+
private infiniteScrollSavePercentage;
|
|
200
|
+
private infiniteScrollDataRemovedTop;
|
|
201
|
+
private infiniteScrollDataRemovedBottom;
|
|
202
|
+
private infiniteScrollSetDirections;
|
|
203
|
+
/** Element registers a scroll-to-top handler here so resetScroll can
|
|
204
|
+
* bring the viewport back to 0. Keeps the controller DOM-free. */
|
|
205
|
+
private infiniteScrollScrollToTopRequest;
|
|
206
|
+
setInfiniteScrollResetHandler(handler: (() => void) | null): void;
|
|
207
|
+
/** Element-owned render benchmark. When present, `core.benchmark()`
|
|
208
|
+
* measures the actual render path instead of the controller-only
|
|
209
|
+
* pipeline builder. */
|
|
210
|
+
private benchmarkRequest;
|
|
211
|
+
setBenchmarkHandler(handler: ((iterations?: number) => Promise<GridBenchmarkResult>) | null): void;
|
|
212
|
+
getInfiniteScrollState(): Readonly<GridInfiniteScrollState>;
|
|
213
|
+
canResizeColumns(): boolean;
|
|
214
|
+
setViewportWidth(width: number): void;
|
|
215
|
+
getViewportWidth(): number;
|
|
216
|
+
setColumnWidthOverride(columnName: string, widthPx: number): void;
|
|
217
|
+
/** Returns the grid-template-columns string as if `columnName` had the given width,
|
|
218
|
+
* without triggering a full refresh. Used for smooth drag-resize DOM updates. */
|
|
219
|
+
buildTemplateColumnsWithOverride(columnName: string, widthPx: number): string;
|
|
220
|
+
isGroupingEnabled(): boolean;
|
|
221
|
+
isSortingEnabled(): boolean;
|
|
222
|
+
isFilteringEnabled(): boolean;
|
|
223
|
+
isPaginationEnabled(): boolean;
|
|
224
|
+
shouldShowPaginationControls(): boolean;
|
|
225
|
+
isTreeEnabled(): boolean;
|
|
226
|
+
isExpandableEnabled(): boolean;
|
|
227
|
+
isColumnSortable(column: GridColumnDef): boolean;
|
|
228
|
+
isColumnFilterable(column: GridColumnDef): boolean;
|
|
229
|
+
isColumnGrouped(column: GridColumnDef): boolean;
|
|
230
|
+
sortButtonLabel(column: GridColumnDef): string;
|
|
231
|
+
groupingButtonLabel(column: GridColumnDef): string;
|
|
232
|
+
filterPlaceholder(column: GridColumnDef): string;
|
|
233
|
+
getSortDirection(column: GridColumnDef): SortDirection;
|
|
234
|
+
isPinningEnabled(): boolean;
|
|
235
|
+
isColumnPinnable(column: GridColumnDef): boolean;
|
|
236
|
+
/** True when the given column is editable in principle — does NOT evaluate
|
|
237
|
+
* a per-row `cellEditableCondition`. Use isCellEditable for that. */
|
|
238
|
+
isColumnEditable(column: GridColumnDef): boolean;
|
|
239
|
+
/** True when the (row, column) cell is editable, respecting both the
|
|
240
|
+
* column's `enableCellEdit` flag and any `cellEditableCondition`. */
|
|
241
|
+
isCellEditable(row: GridRow, column: GridColumnDef): boolean;
|
|
242
|
+
isPinned(column: GridColumnDef): boolean;
|
|
243
|
+
isPinnedLeftLast(column: GridColumnDef): boolean;
|
|
244
|
+
isPinnedRightFirst(column: GridColumnDef): boolean;
|
|
245
|
+
groupDisclosureLabel(group: GroupItem): string;
|
|
246
|
+
pinnedOffset(column: GridColumnDef): {
|
|
247
|
+
side: 'left' | 'right';
|
|
248
|
+
offset: string;
|
|
249
|
+
} | null;
|
|
250
|
+
displayValue(row: GridRow, column: GridColumnDef): unknown;
|
|
251
|
+
headerLabel(column: GridColumnDef): string;
|
|
252
|
+
cellIndent(row: GridRow, column: GridColumnDef): string;
|
|
253
|
+
showTreeToggle(row: GridRow, column: GridColumnDef): boolean;
|
|
254
|
+
showExpandToggle(_row: GridRow, column: GridColumnDef): boolean;
|
|
255
|
+
isTreeRowExpanded(row: GridRow): boolean;
|
|
256
|
+
treeToggleLabel(row: GridRow): string;
|
|
257
|
+
expandToggleLabel(row: GridRow): string;
|
|
258
|
+
editorInputType(column: GridColumnDef): string;
|
|
259
|
+
isEditingCell(rowId: string, columnName: string): boolean;
|
|
260
|
+
/** Compact key for the editing cell, or null when no edit is in flight.
|
|
261
|
+
* Used by the patch path to detect when the editing position moves so it
|
|
262
|
+
* can force the affected cells through the slow rebuild path. */
|
|
263
|
+
getEditingCellKey(): string | null;
|
|
264
|
+
/**
|
|
265
|
+
* Serialise the current grid state. Mirrors `ui.grid.saveState.save`:
|
|
266
|
+
* every field is gated by an `options.save*` flag with the old grid's
|
|
267
|
+
* defaults. A missing flag keeps the matching field out of the result.
|
|
268
|
+
*/
|
|
269
|
+
getState(): GridSaveState;
|
|
270
|
+
/**
|
|
271
|
+
* Apply a previously saved state. All fields are optional — missing
|
|
272
|
+
* fields are left at whatever the controller currently has. Matches the
|
|
273
|
+
* old grid's `ui.grid.saveState.restore`.
|
|
274
|
+
*/
|
|
275
|
+
setState(state: Partial<GridSaveState>): void;
|
|
276
|
+
/** Element injects its scroll accessor so save() can capture scrollTop/
|
|
277
|
+
* scrollLeft. Controller stays DOM-free. */
|
|
278
|
+
private saveStateScrollSnapshot;
|
|
279
|
+
private saveStateScrollRestore;
|
|
280
|
+
setSaveStateScrollHandlers(snapshot: (() => {
|
|
281
|
+
scrollTop: number;
|
|
282
|
+
scrollLeft: number;
|
|
283
|
+
}) | null, restore: ((scrollTop: number, scrollLeft: number) => void) | null): void;
|
|
284
|
+
private refresh;
|
|
285
|
+
private maybeEnableWasmEngine;
|
|
286
|
+
private emit;
|
|
287
|
+
private findRowById;
|
|
288
|
+
private buildRowsFromData;
|
|
289
|
+
private findColumnByName;
|
|
290
|
+
private resolveRowId;
|
|
291
|
+
private getRowSize;
|
|
292
|
+
private getTotalPages;
|
|
293
|
+
private getEffectivePageSize;
|
|
294
|
+
private getCurrentPage;
|
|
295
|
+
private getFirstRowIndex;
|
|
296
|
+
private getLastRowIndex;
|
|
297
|
+
private setRowInvisible;
|
|
298
|
+
private clearRowInvisible;
|
|
299
|
+
private benchmark;
|
|
300
|
+
/** Returns the rows that match the requested exporter row-type. Mirrors
|
|
301
|
+
* the old grid's row selection logic: `all` uses the full data set (or
|
|
302
|
+
* `exporterAllDataFn` when provided), `visible` uses the current pipeline
|
|
303
|
+
* output, `selected` uses the selection state. */
|
|
304
|
+
private exporterRowsFor;
|
|
305
|
+
private resolveExporterOptions;
|
|
306
|
+
private buildCsv;
|
|
307
|
+
private exportCsv;
|
|
308
|
+
private buildPdfDocDefinition;
|
|
309
|
+
private exportPdf;
|
|
310
|
+
private buildExcelSheetData;
|
|
311
|
+
private exportExcel;
|
|
312
|
+
/** Runs the validators declared on `colDef.validators` against the new
|
|
313
|
+
* value and flips `$$invalid<col>` / `$$errors<col>` on the entity. On
|
|
314
|
+
* failure raises `validate.validationFailed`. Async validators are
|
|
315
|
+
* awaited so the caller can `await` for complete results. */
|
|
316
|
+
private validateRunValidators;
|
|
317
|
+
private validateGetFormattedErrors;
|
|
318
|
+
private validateGetTitleFormattedErrors;
|
|
319
|
+
private validateGetInvalidRows;
|
|
320
|
+
/** Test hook — exposes the validator registry so consumers can inspect or
|
|
321
|
+
* extend it outside of the gridApi surface (e.g. from a controller-level
|
|
322
|
+
* plugin). */
|
|
323
|
+
getValidatorRegistry(): GridValidatorRegistry;
|
|
324
|
+
/** Set by the element so `importAFile()` can trigger its file-picker flow.
|
|
325
|
+
* Controller stays DOM-free: it just invokes whatever handler was wired. */
|
|
326
|
+
private importerFilePickerRequest;
|
|
327
|
+
setImporterFilePickerHandler(handler: (() => void) | null): void;
|
|
328
|
+
private resolveImporterOptions;
|
|
329
|
+
private importerRequestFile;
|
|
330
|
+
private importerDispatchObjects;
|
|
331
|
+
private importerImportText;
|
|
332
|
+
private importerImportThisFile;
|
|
333
|
+
private buildExporterMenuItems;
|
|
334
|
+
/** Menu items the importer contributes. Just the single "Import"
|
|
335
|
+
* entry when the feature is enabled; returns an empty array otherwise. */
|
|
336
|
+
private buildImporterMenuItems;
|
|
337
|
+
/** Menu items row-edit contributes: "Save changes" + "Retry errored
|
|
338
|
+
* rows". Each entry is gated by both a gridOption flag and a runtime
|
|
339
|
+
* predicate (`hasDirtyRows` / `hasErrorRows`) so the menu only surfaces
|
|
340
|
+
* actions that have something to do. */
|
|
341
|
+
private buildRowEditMenuItems;
|
|
342
|
+
private rowEditSetSavePromise;
|
|
343
|
+
private rowEditGetDirtyRows;
|
|
344
|
+
private rowEditGetErrorRows;
|
|
345
|
+
private rowEditFlushDirtyRows;
|
|
346
|
+
/** Re-fires `saveRow` for every row currently in the error state. The
|
|
347
|
+
* "Retry errored rows" menu entry funnels through here. Returns a
|
|
348
|
+
* promise that resolves once every retry promise has settled. */
|
|
349
|
+
private rowEditRetryErroredRows;
|
|
350
|
+
private rowEditSetRowsDirty;
|
|
351
|
+
private rowEditSetRowsClean;
|
|
352
|
+
private considerSetRowEditTimer;
|
|
353
|
+
private cancelRowEditTimer;
|
|
354
|
+
private runRowEditSave;
|
|
355
|
+
/** Test hook — reports the current row-edit dirty / error / saving state. */
|
|
356
|
+
getRowEditState(): {
|
|
357
|
+
dirtyRowIds: string[];
|
|
358
|
+
errorRowIds: string[];
|
|
359
|
+
savingRowIds: string[];
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
export declare function createVanillaGridController(options: GridOptions): VanillaGridController;
|
|
363
|
+
//# sourceMappingURL=grid-controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-controller.d.ts","sourceRoot":"","sources":["../src/grid-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAqDL,2BAA2B,EAwC3B,qBAAqB,EAWrB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAiB5B,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EAExB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,OAAO,EAEZ,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,sBAAsB,CAAC;AAE9B;;;;;;;;GAQG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,aAA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C,sBAAsB;IAmB9B;8EAC0E;IAC1E,OAAO,CAAC,sBAAsB;IAM9B;;;4CAGwC;IACxC,OAAO,CAAC,qBAAqB;IAiB7B,OAAO,CAAC,qBAAqB;IAK7B,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,qBAAqB;IAQ7B;;qEAEiE;IACjE,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,uBAAuB;IAa/B,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,cAAc;IAwBtB,6EAA6E;IAC7E,eAAe,IAAI;QACjB,WAAW,EAAE,MAAM,EAAE,CAAC;QACtB,WAAW,EAAE,MAAM,EAAE,CAAC;QACtB,YAAY,EAAE,MAAM,EAAE,CAAC;KACxB;CAOF;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,WAAW,GAAG,qBAAqB,CAEvF"}
|
package/dist/icons.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icon registry for the vanilla grid element.
|
|
3
|
+
*
|
|
4
|
+
* The grid draws its own sort / group / tree / expand / pin / pagination
|
|
5
|
+
* icons via inline SVGs. Consumers can override any individual icon by
|
|
6
|
+
* passing an `iconOverrides` map in GridOptions or by writing to the
|
|
7
|
+
* element's `controlIcons` property at runtime. This module owns the
|
|
8
|
+
* icon registry class plus the SVG markup helpers so the element file
|
|
9
|
+
* doesn't have to.
|
|
10
|
+
*/
|
|
11
|
+
export type UiGridControlIconKey = 'sortNone' | 'sortAsc' | 'sortDesc' | 'group' | 'groupExpanded' | 'groupCollapsed' | 'treeExpanded' | 'treeCollapsed' | 'expandExpanded' | 'expandCollapsed' | 'pin' | 'pinLeft' | 'pinRight' | 'paginationPrev' | 'paginationNext';
|
|
12
|
+
export interface UiGridIconDefinition {
|
|
13
|
+
viewBox?: string;
|
|
14
|
+
path: string;
|
|
15
|
+
}
|
|
16
|
+
export type UiGridIconOverrides = Partial<Record<UiGridControlIconKey, UiGridIconDefinition>>;
|
|
17
|
+
export declare const DEFAULT_ICONS: Record<UiGridControlIconKey, UiGridIconDefinition>;
|
|
18
|
+
/**
|
|
19
|
+
* Holds the active set of icons (defaults merged with consumer overrides)
|
|
20
|
+
* and renders the inline SVG markup for each one. A single instance lives
|
|
21
|
+
* on the element.
|
|
22
|
+
*/
|
|
23
|
+
export declare class IconRegistry {
|
|
24
|
+
private overrides;
|
|
25
|
+
private resolved;
|
|
26
|
+
getOverrides(): UiGridIconOverrides;
|
|
27
|
+
setOverrides(value: UiGridIconOverrides): void;
|
|
28
|
+
resolve(key: UiGridControlIconKey): UiGridIconDefinition;
|
|
29
|
+
/** Render the SVG markup for a control icon (sort, group, pin, …). */
|
|
30
|
+
renderControlIcon(key: UiGridControlIconKey): string;
|
|
31
|
+
/** Render the SVG markup with an arbitrary wrapper class. */
|
|
32
|
+
renderIconWithClass(svgClass: string, key: UiGridControlIconKey): string;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,MAAM,MAAM,oBAAoB,GAC5B,UAAU,GACV,SAAS,GACT,UAAU,GACV,OAAO,GACP,eAAe,GACf,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,gBAAgB,GAChB,iBAAiB,GACjB,KAAK,GACL,SAAS,GACT,UAAU,GACV,gBAAgB,GAChB,gBAAgB,CAAC;AAErB,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAC,CAAC;AAE9F,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,oBAAoB,EAAE,oBAAoB,CAgB5E,CAAC;AAEF;;;;GAIG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,SAAS,CAA2B;IAC5C,OAAO,CAAC,QAAQ,CAA4E;IAE5F,YAAY,IAAI,mBAAmB;IAInC,YAAY,CAAC,KAAK,EAAE,mBAAmB,GAAG,IAAI;IAK9C,OAAO,CAAC,GAAG,EAAE,oBAAoB,GAAG,oBAAoB;IAIxD,sEAAsE;IACtE,iBAAiB,CAAC,GAAG,EAAE,oBAAoB,GAAG,MAAM;IAIpD,6DAA6D;IAC7D,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,oBAAoB,GAAG,MAAM;CAIzE"}
|