@aquera/ngx-smart-table 0.0.27 → 0.0.31
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/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aquera/ngx-smart-table",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.31",
|
|
4
4
|
"license": "MIT",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public",
|
|
7
|
+
"registry": "https://registry.npmjs.org/"
|
|
8
|
+
},
|
|
5
9
|
"peerDependencies": {
|
|
6
10
|
"@angular/common": "^21.0.0",
|
|
7
11
|
"@angular/core": "^21.0.0",
|
|
8
|
-
"@aquera/nile": "^1.
|
|
9
|
-
"@aquera/nile-elements": "^1.
|
|
12
|
+
"@aquera/nile": "^1.2.4",
|
|
13
|
+
"@aquera/nile-elements": "^1.6.9",
|
|
10
14
|
"rxjs": "^7.4.0"
|
|
11
15
|
},
|
|
12
16
|
"dependencies": {
|
|
@@ -31,5 +35,6 @@
|
|
|
31
35
|
"types": "./types/aquera-ngx-smart-table.d.ts",
|
|
32
36
|
"default": "./fesm2022/aquera-ngx-smart-table.mjs"
|
|
33
37
|
}
|
|
34
|
-
}
|
|
38
|
+
},
|
|
39
|
+
"type": "module"
|
|
35
40
|
}
|
|
@@ -976,6 +976,12 @@ interface ColumnConfig<T = any> {
|
|
|
976
976
|
* Edit mode trigger
|
|
977
977
|
*/
|
|
978
978
|
readonly editMode?: EditMode;
|
|
979
|
+
/**
|
|
980
|
+
* When `true` with {@link CellDataType.BOOLEAN}, the cell shows a `nile-checkbox` in display mode (inline toggle).
|
|
981
|
+
* When `false` or unset on other column setups, display uses the formatter (e.g. Yes/No).
|
|
982
|
+
* With `Columns.nileCheckbox(...)`, defaults to `true` unless you pass `booleanDisplayAsCheckbox: false`.
|
|
983
|
+
*/
|
|
984
|
+
readonly booleanDisplayAsCheckbox?: boolean;
|
|
979
985
|
/**
|
|
980
986
|
* Whether this column is sortable
|
|
981
987
|
*/
|
|
@@ -1081,6 +1087,11 @@ interface ColumnConfig<T = any> {
|
|
|
1081
1087
|
* @default true
|
|
1082
1088
|
*/
|
|
1083
1089
|
readonly showStickyShadow?: boolean;
|
|
1090
|
+
/**
|
|
1091
|
+
* Background for this column’s cells when `sticky` is set (header + body).
|
|
1092
|
+
* Falls back to `TableConfig.display.stickyColumnBackground` when omitted.
|
|
1093
|
+
*/
|
|
1094
|
+
readonly stickyBackground?: string;
|
|
1084
1095
|
/**
|
|
1085
1096
|
* Cell content alignment
|
|
1086
1097
|
*/
|
|
@@ -1361,6 +1372,11 @@ declare class Cell<T = any> {
|
|
|
1361
1372
|
* @param newValue The new value from editor
|
|
1362
1373
|
*/
|
|
1363
1374
|
saveEdit(newValue: T): boolean;
|
|
1375
|
+
/**
|
|
1376
|
+
* Apply a new value from an inline display control (e.g. `nile-checkbox`) without entering edit mode.
|
|
1377
|
+
* Runs the same validation, dirty-state, history, and save hooks as {@link saveEdit}.
|
|
1378
|
+
*/
|
|
1379
|
+
commitDisplayValue(newValue: T): boolean;
|
|
1364
1380
|
/**
|
|
1365
1381
|
* Cancel edit and revert to previous value
|
|
1366
1382
|
*/
|
|
@@ -1958,6 +1974,10 @@ interface RowActionContext {
|
|
|
1958
1974
|
* Provides a single source of truth for pagination, sorting, filtering, and display options
|
|
1959
1975
|
*/
|
|
1960
1976
|
|
|
1977
|
+
/** Context passed to `TableConfig.display.rowBackground`. */
|
|
1978
|
+
interface TableRowBackgroundContext {
|
|
1979
|
+
rowIndex: number;
|
|
1980
|
+
}
|
|
1961
1981
|
/**
|
|
1962
1982
|
* Comprehensive table configuration interface
|
|
1963
1983
|
*/
|
|
@@ -2072,10 +2092,47 @@ interface TableConfig {
|
|
|
2072
2092
|
*/
|
|
2073
2093
|
hover?: boolean;
|
|
2074
2094
|
/**
|
|
2075
|
-
* Max height of the table in pixels
|
|
2095
|
+
* Max height of the table body scroll area in pixels (standard / non–virtual-scroll mode).
|
|
2096
|
+
* Applied as `max-height` on the `.st-table` wrapper. Ignored for that sizing when `visibleBodyRows` is set.
|
|
2097
|
+
* The host uses `min-height: 0` so flex parents (e.g. workbook tabs) honor the cap.
|
|
2076
2098
|
* @default 300
|
|
2077
2099
|
*/
|
|
2078
2100
|
maxHeight?: number;
|
|
2101
|
+
/**
|
|
2102
|
+
* Number of **data** (body) rows to keep visible before vertical scroll (standard mode only).
|
|
2103
|
+
* Use **`0`** to show **all** rows: no row-count viewport and no `display.maxHeight` cap on `.st-table`
|
|
2104
|
+
* (natural table height; page/parent may still scroll).
|
|
2105
|
+
* For **positive** N, the table measures the header and the sum of the first N body row heights (capped
|
|
2106
|
+
* by actual row count) and sets that viewport; it takes precedence over `maxHeight` for that wrapper.
|
|
2107
|
+
* Not used when virtual scroll is enabled.
|
|
2108
|
+
*/
|
|
2109
|
+
visibleBodyRows?: number;
|
|
2110
|
+
/**
|
|
2111
|
+
* Default background for sticky columns (row #, sticky-left / sticky-right cells) when the column has no `stickyBackground`.
|
|
2112
|
+
*/
|
|
2113
|
+
stickyColumnBackground?: string;
|
|
2114
|
+
/**
|
|
2115
|
+
* When true, applies the sticky row background to every cell in each row (not only sticky-positioned columns).
|
|
2116
|
+
* Each cell uses `column.stickyBackground` when set, otherwise `stickyColumnBackground`.
|
|
2117
|
+
* @default false
|
|
2118
|
+
*/
|
|
2119
|
+
stickyColumnBackgroundFullRow?: boolean;
|
|
2120
|
+
/**
|
|
2121
|
+
* Per-row background from row data. When a non-empty string is returned, it applies to every body cell in that row
|
|
2122
|
+
* (row number, data cells, settings column). Return `undefined` / `null` / `''` to fall back to sticky / default styling.
|
|
2123
|
+
* Not serializable in JSON configs (TypeScript only).
|
|
2124
|
+
*/
|
|
2125
|
+
rowBackground?: (rowData: any, context: TableRowBackgroundContext) => string | null | undefined;
|
|
2126
|
+
/**
|
|
2127
|
+
* Customize the keyboard-focused cell outline (`.cell-focused` when keyboard navigation is enabled).
|
|
2128
|
+
* Any property omitted keeps the library default.
|
|
2129
|
+
*/
|
|
2130
|
+
focusedCell?: {
|
|
2131
|
+
outlineColor?: string;
|
|
2132
|
+
outlineWidth?: string;
|
|
2133
|
+
boxShadow?: string;
|
|
2134
|
+
editingBoxShadow?: string;
|
|
2135
|
+
};
|
|
2079
2136
|
/**
|
|
2080
2137
|
* Virtual scroll configuration for large datasets
|
|
2081
2138
|
* Enables efficient rendering by only showing visible rows
|
|
@@ -3478,6 +3535,12 @@ interface NileSelectEditorOptions {
|
|
|
3478
3535
|
validateOnSave?: boolean;
|
|
3479
3536
|
/** Append dropdown to document body instead of parent */
|
|
3480
3537
|
portal?: boolean;
|
|
3538
|
+
/**
|
|
3539
|
+
* When true (default), opens the options list as soon as the cell enters edit mode
|
|
3540
|
+
* (e.g. double-click). Set to false to keep the list closed until the user opens it.
|
|
3541
|
+
* With `enableVirtualScroll`, opening uses the inner `nile-virtual-select` only.
|
|
3542
|
+
*/
|
|
3543
|
+
openDropdownOnEdit?: boolean;
|
|
3481
3544
|
}
|
|
3482
3545
|
/**
|
|
3483
3546
|
* Custom editor that uses NileSelect component
|
|
@@ -3494,6 +3557,11 @@ declare class NileSelectEditor<T = string> implements CellEditor<T> {
|
|
|
3494
3557
|
private hasChangeOccurred;
|
|
3495
3558
|
constructor(options: NileSelectEditorOptions);
|
|
3496
3559
|
edit(context: CellEditorContext<T>): void;
|
|
3560
|
+
private activateSelectAfterMount;
|
|
3561
|
+
/** Lit @query('nile-popup') / .select — must exist before handleOpenChange touches this.popup.popup */
|
|
3562
|
+
private isNileSelectPopupMounted;
|
|
3563
|
+
private invokeShowHandlingPromise;
|
|
3564
|
+
private openNileSelectDropdownSafely;
|
|
3497
3565
|
/**
|
|
3498
3566
|
* Set the initial value for the select
|
|
3499
3567
|
*/
|
|
@@ -4024,6 +4092,8 @@ declare class NileCodeEditor<T = string> implements CellEditor<T> {
|
|
|
4024
4092
|
private context?;
|
|
4025
4093
|
private dialogOpen;
|
|
4026
4094
|
private expandButtonClicked;
|
|
4095
|
+
/** Pointer is down on a CodeMirror tooltip — skip blur-save so completion clicks are not treated as leaving the cell */
|
|
4096
|
+
private codeMirrorUiPointerDown;
|
|
4027
4097
|
private documentClickHandler?;
|
|
4028
4098
|
private trackedValue;
|
|
4029
4099
|
private syncingFromDialog;
|
|
@@ -4031,6 +4101,13 @@ declare class NileCodeEditor<T = string> implements CellEditor<T> {
|
|
|
4031
4101
|
private dialogOriginalValue;
|
|
4032
4102
|
private dialogCurrentValue;
|
|
4033
4103
|
constructor(options?: NileCodeEditorOptions | undefined);
|
|
4104
|
+
/**
|
|
4105
|
+
* Parent CodeMirror tooltips to `document.body` so autocomplete is not clipped by the table/cell
|
|
4106
|
+
* overflow chain. Uses runtime `import()` only — no extra entries in this library's package.json;
|
|
4107
|
+
* modules resolve from the app via `@aquera/nile-elements` / `codemirror` (unchanged consumer graph).
|
|
4108
|
+
*/
|
|
4109
|
+
private attachCodeMirrorTooltipsToBody;
|
|
4110
|
+
private onNileCodeMirrorAfterUpdate;
|
|
4034
4111
|
edit(context: CellEditorContext<T>): void;
|
|
4035
4112
|
/**
|
|
4036
4113
|
* Focus the editor and place cursor
|
|
@@ -4091,6 +4168,38 @@ declare class NileCodeEditor<T = string> implements CellEditor<T> {
|
|
|
4091
4168
|
getEditorInstance(): any;
|
|
4092
4169
|
}
|
|
4093
4170
|
|
|
4171
|
+
/**
|
|
4172
|
+
* Boolean cell editor using `<nile-checkbox>` from @aquera/nile-elements`.
|
|
4173
|
+
*
|
|
4174
|
+
* For display (inline checkbox vs Yes/No text), set `booleanDisplayAsCheckbox` on the column config
|
|
4175
|
+
* (`Columns.nileCheckbox` defaults it to `true`; pass `booleanDisplayAsCheckbox: false` for text until edit).
|
|
4176
|
+
*/
|
|
4177
|
+
|
|
4178
|
+
interface NileCheckboxEditorOptions {
|
|
4179
|
+
/** Checkbox size (default `small` for compact table cells) */
|
|
4180
|
+
size?: 'small' | 'medium' | 'large';
|
|
4181
|
+
disabled?: boolean;
|
|
4182
|
+
/** Optional label text (Nile `label` attribute); leave empty for icon-only in-cell */
|
|
4183
|
+
label?: string;
|
|
4184
|
+
/** When true (default), each toggle calls `onSave` immediately */
|
|
4185
|
+
saveOnChange?: boolean;
|
|
4186
|
+
autoFocus?: boolean;
|
|
4187
|
+
}
|
|
4188
|
+
/**
|
|
4189
|
+
* Uses Nile checkbox styling/behavior instead of a native `<input type="checkbox">`.
|
|
4190
|
+
*/
|
|
4191
|
+
declare class NileCheckboxEditor implements CellEditor<boolean> {
|
|
4192
|
+
private readonly options?;
|
|
4193
|
+
readonly acceptsInitialKeypress = false;
|
|
4194
|
+
private checkbox?;
|
|
4195
|
+
private readonly listeners;
|
|
4196
|
+
constructor(options?: NileCheckboxEditorOptions | undefined);
|
|
4197
|
+
edit(context: CellEditorContext<boolean>): void;
|
|
4198
|
+
destroy(): void;
|
|
4199
|
+
focus(): void;
|
|
4200
|
+
getCurrentValue(): boolean;
|
|
4201
|
+
}
|
|
4202
|
+
|
|
4094
4203
|
/**
|
|
4095
4204
|
* Column configuration factory
|
|
4096
4205
|
* Simplifies creation of common column types with sensible defaults
|
|
@@ -4130,6 +4239,19 @@ declare class ColumnConfigFactory {
|
|
|
4130
4239
|
trueValue?: string;
|
|
4131
4240
|
falseValue?: string;
|
|
4132
4241
|
}): ColumnConfig<boolean>;
|
|
4242
|
+
/**
|
|
4243
|
+
* Boolean column using {@link NileCheckboxEditor} (`<nile-checkbox>`) instead of a native checkbox.
|
|
4244
|
+
*
|
|
4245
|
+
* Display mode:
|
|
4246
|
+
* - `booleanDisplayAsCheckbox` omitted or `true` — inline `nile-checkbox` in the cell (toggle without opening editor).
|
|
4247
|
+
* - `booleanDisplayAsCheckbox: false` — show formatted text (`trueValue` / `falseValue`, default Yes/No) until the user edits the cell.
|
|
4248
|
+
*/
|
|
4249
|
+
static nileCheckbox(key: string, options?: Partial<ColumnConfig<boolean>> & {
|
|
4250
|
+
trueValue?: string;
|
|
4251
|
+
falseValue?: string;
|
|
4252
|
+
/** Options passed to {@link NileCheckboxEditor} */
|
|
4253
|
+
nileCheckbox?: NileCheckboxEditorOptions;
|
|
4254
|
+
}): ColumnConfig<boolean>;
|
|
4133
4255
|
/**
|
|
4134
4256
|
* Create a select/dropdown column
|
|
4135
4257
|
*/
|
|
@@ -4194,6 +4316,9 @@ declare class StCellComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
|
4194
4316
|
rowData: any;
|
|
4195
4317
|
rowIndex: number | undefined;
|
|
4196
4318
|
} | null>;
|
|
4319
|
+
/** Boolean column: show `nile-checkbox` in display mode instead of Yes/No text */
|
|
4320
|
+
readonly showBooleanCheckboxDisplay: _angular_core.Signal<boolean>;
|
|
4321
|
+
readonly booleanCheckboxChecked: _angular_core.Signal<boolean>;
|
|
4197
4322
|
ngOnInit(): void;
|
|
4198
4323
|
ngAfterViewInit(): void;
|
|
4199
4324
|
ngOnDestroy(): void;
|
|
@@ -4204,6 +4329,7 @@ declare class StCellComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
|
4204
4329
|
private startEditWithKey;
|
|
4205
4330
|
onCellClick(): void;
|
|
4206
4331
|
onCellDoubleClick(): void;
|
|
4332
|
+
onBooleanCheckboxDisplayChange(event: Event): void;
|
|
4207
4333
|
private startEdit;
|
|
4208
4334
|
private renderEditor;
|
|
4209
4335
|
private saveEdit;
|
|
@@ -4303,6 +4429,7 @@ declare class VirtualScrollService {
|
|
|
4303
4429
|
|
|
4304
4430
|
declare class StTableComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit {
|
|
4305
4431
|
private destroyRef;
|
|
4432
|
+
private injector;
|
|
4306
4433
|
private schemaValidator;
|
|
4307
4434
|
private logger;
|
|
4308
4435
|
private virtualScrollService;
|
|
@@ -4372,12 +4499,12 @@ declare class StTableComponent implements OnInit, OnChanges, OnDestroy, AfterVie
|
|
|
4372
4499
|
};
|
|
4373
4500
|
context: ColumnActionContext | null;
|
|
4374
4501
|
}>;
|
|
4502
|
+
skeletonColumns?: number[];
|
|
4503
|
+
skeletonRows?: number[];
|
|
4375
4504
|
readonly virtualScrollTotalHeight$: BehaviorSubject<number>;
|
|
4376
4505
|
readonly virtualScrollOffsetY$: BehaviorSubject<number>;
|
|
4377
4506
|
readonly virtualScrollOffsetYNeg$: BehaviorSubject<number>;
|
|
4378
4507
|
readonly visibleRows$: BehaviorSubject<Cell<any>[][]>;
|
|
4379
|
-
skeletonColumns?: number[];
|
|
4380
|
-
skeletonRows?: number[];
|
|
4381
4508
|
private internalTableState?;
|
|
4382
4509
|
private internalCellGrid?;
|
|
4383
4510
|
private stateSubscription?;
|
|
@@ -4390,6 +4517,12 @@ declare class StTableComponent implements OnInit, OnChanges, OnDestroy, AfterVie
|
|
|
4390
4517
|
private scrollContainer?;
|
|
4391
4518
|
private scrollSubscription?;
|
|
4392
4519
|
scrollViewport?: ElementRef<HTMLElement>;
|
|
4520
|
+
/** Pixel height for `.st-table` when `display.visibleBodyRows` is set (measured from DOM). */
|
|
4521
|
+
private readonly scrollViewportHeightPx;
|
|
4522
|
+
private viewportMeasureRaf;
|
|
4523
|
+
private tableResizeObserver;
|
|
4524
|
+
private observedTableElement;
|
|
4525
|
+
private readonly fallbackBodyRowPx;
|
|
4393
4526
|
constructor();
|
|
4394
4527
|
ngOnInit(): void;
|
|
4395
4528
|
ngAfterViewInit(): void;
|
|
@@ -4459,6 +4592,43 @@ declare class StTableComponent implements OnInit, OnChanges, OnDestroy, AfterVie
|
|
|
4459
4592
|
scrollToLastRow(focusFirstCell?: boolean): void;
|
|
4460
4593
|
private getScrollContainerElement;
|
|
4461
4594
|
private calculateStickyWidths;
|
|
4595
|
+
/**
|
|
4596
|
+
* Resolved CSS color from `display.rowBackground` for this row index, if any.
|
|
4597
|
+
*/
|
|
4598
|
+
resolveRowBackground(rowIndex: number): string | undefined;
|
|
4599
|
+
/**
|
|
4600
|
+
* Body cell background: `rowBackground` wins when set; otherwise sticky / full-row tint via `stickyColumnBackground`.
|
|
4601
|
+
*/
|
|
4602
|
+
bodyCellBackground(column: ColumnConfig | undefined, rowIndex: number): string | undefined;
|
|
4603
|
+
/**
|
|
4604
|
+
* Row-number cell background: conditional row color, else table sticky row-number tint.
|
|
4605
|
+
*/
|
|
4606
|
+
rowNumberCellBackground(rowIndex: number): string | undefined;
|
|
4607
|
+
/**
|
|
4608
|
+
* Trailing settings / row-actions body cell background.
|
|
4609
|
+
*/
|
|
4610
|
+
settingsColumnBodyBackground(rowIndex: number): string | undefined;
|
|
4611
|
+
/**
|
|
4612
|
+
* Cell background from sticky styling: per-column `stickyBackground`, else `display.stickyColumnBackground`.
|
|
4613
|
+
* When `display.stickyColumnBackgroundFullRow` is true, applies to every data cell (not only sticky columns).
|
|
4614
|
+
*/
|
|
4615
|
+
stickyColumnBackground(column: ColumnConfig | undefined): string | undefined;
|
|
4616
|
+
/** Row # column is sticky-left; uses table-level `display.stickyColumnBackground` only. */
|
|
4617
|
+
rowNumberStickyBackground(): string | undefined;
|
|
4618
|
+
/** Positive row counts only (caller must ensure `raw > 0`). */
|
|
4619
|
+
private clampPositiveVisibleBodyRows;
|
|
4620
|
+
private fallbackViewportPxForRowCount;
|
|
4621
|
+
/** Effective body rows for viewport math: never more than rows actually rendered. */
|
|
4622
|
+
private effectiveVisibleBodyRows;
|
|
4623
|
+
private scheduleScrollViewportMeasure;
|
|
4624
|
+
/**
|
|
4625
|
+
* Sets `scrollViewportHeightPx` from measured thead/tbody row heights so `visibleBodyRows` maps to real pixels.
|
|
4626
|
+
*/
|
|
4627
|
+
private updateScrollViewportMeasurement;
|
|
4628
|
+
private ensureTableResizeObserver;
|
|
4629
|
+
private detachTableResizeObserver;
|
|
4630
|
+
/** Host styles: max-height plus CSS variables for keyboard-focused cell (see `display.focusedCell`). */
|
|
4631
|
+
tableWrapperStyle(): Record<string, string | number | null>;
|
|
4462
4632
|
onCellClick(rowIndex: number, columnIndex: number): void;
|
|
4463
4633
|
onCellEdit(event: CellEditEvent): void;
|
|
4464
4634
|
onCellSave(event: CellSaveEvent): void;
|
|
@@ -5262,6 +5432,7 @@ declare class StWorkbookComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
5262
5432
|
private destroyRef;
|
|
5263
5433
|
private autosaveService;
|
|
5264
5434
|
private cdr;
|
|
5435
|
+
private injector;
|
|
5265
5436
|
readonly config: _angular_core.InputSignal<WorkbookConfig>;
|
|
5266
5437
|
readonly sheetsData: _angular_core.InputSignal<BehaviorSubject<Map<string, any[]>>>;
|
|
5267
5438
|
readonly state: _angular_core.InputSignal<WorkbookState | undefined>;
|
|
@@ -5278,6 +5449,7 @@ declare class StWorkbookComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
5278
5449
|
focusColumn?: number;
|
|
5279
5450
|
}>;
|
|
5280
5451
|
tableComponent?: StTableComponent;
|
|
5452
|
+
workbookTabGroup?: ElementRef<HTMLElement>;
|
|
5281
5453
|
readonly sheets: _angular_core.WritableSignal<WorkbookSheetConfig[]>;
|
|
5282
5454
|
readonly activeSheetIndex: _angular_core.WritableSignal<number>;
|
|
5283
5455
|
readonly currentTableConfig: _angular_core.WritableSignal<TableConfig | null>;
|
|
@@ -5308,6 +5480,17 @@ declare class StWorkbookComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
5308
5480
|
get activeState(): WorkbookState;
|
|
5309
5481
|
onTabChange(event: any): void;
|
|
5310
5482
|
private updateActiveSheet;
|
|
5483
|
+
/**
|
|
5484
|
+
* After a new sheet is appended, scroll the tab strip so the new tab clears the sticky toolbar overlay
|
|
5485
|
+
* and move keyboard focus to that tab.
|
|
5486
|
+
*/
|
|
5487
|
+
private scheduleScrollAndFocusNewSheetTab;
|
|
5488
|
+
/**
|
|
5489
|
+
* Scroll the active sheet tab into the visible part of the nav (left of the sticky toolbar).
|
|
5490
|
+
* No extra flex margin — avoids a permanent gap between the last sheet tab and the toolbar.
|
|
5491
|
+
*/
|
|
5492
|
+
private queueScrollActiveSheetTabClearOfToolbar;
|
|
5493
|
+
private scrollSheetTabIntoNav;
|
|
5311
5494
|
onAddSheet(): void;
|
|
5312
5495
|
trackByKey(index: number, key: string): string;
|
|
5313
5496
|
get canAddSheet(): boolean;
|
|
@@ -5322,7 +5505,12 @@ declare class StWorkbookComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
5322
5505
|
isActionDisabled(action: WorkbookAction): boolean;
|
|
5323
5506
|
onWorkbookActionClick(action: WorkbookAction, event: Event): void;
|
|
5324
5507
|
toggleFullscreen(): void;
|
|
5508
|
+
/**
|
|
5509
|
+
* Keeps `sheetsData` in sync with the grid: patches `row[columnKey]` from the cell event then `next()`s the map.
|
|
5510
|
+
* Initial rows still come from the host (e.g. demo `loadSheetsData`); edits persist here in memory.
|
|
5511
|
+
*/
|
|
5325
5512
|
onCellChange(event: CellChangeEvent): void;
|
|
5513
|
+
/** Same row patch as {@link onCellChange}; host apps receive this output after data is updated. */
|
|
5326
5514
|
onCellSave(event: any): void;
|
|
5327
5515
|
onTableStateChange(event: TableStateChangeEvent): void;
|
|
5328
5516
|
onRequestAddRow(event: {
|
|
@@ -6267,5 +6455,5 @@ declare class AutosaveService {
|
|
|
6267
6455
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AutosaveService>;
|
|
6268
6456
|
}
|
|
6269
6457
|
|
|
6270
|
-
export { ArrayFormatter, AutosaveService, BaseColumnConfig, BooleanEditor, BooleanFormatter, BuilderPreviewComponent, BuilderToolbarComponent, Cell, CellAlignment, CellDataType, CellLifecycleState, CellVerticalAlignment, ChainValidator, ClickOutsideDirective, ColumnConfigFactory, ColumnEditorComponent, ColumnListComponent, Columns, CurrencyFormatter, DEFAULT_AUTOSAVE_CONFIG, DEFAULT_COLUMN_CONFIG, DEFAULT_TABLE_CONFIG, DateEditor, DateFormatter, DateRangeValidator, DefaultFormatter, DefinitionBuilderComponent, DefinitionBuilderModule, DefinitionBuilderService, DefinitionExportService, DefinitionImportService, EditMode, EmailValidator, FilterOperator, FunctionFormatter, FunctionValidator, JsonSchemaValidatorService, LengthValidator, NavigationDirection, NavigationKey, NileAutoCompleteEditor, NileCalendarEditor, NileChipEditor, NileCodeEditor, NileDatePickerEditor, NileInputEditor, NileSelectEditor, NumberEditor, NumberFormatter, OUFormatter, PatternValidators, PercentageFormatter, RangeValidator, RegexValidator, RequiredValidator, RowValidationService, SampleDataGeneratorService, SelectEditor, SharedTableComponentsModule, SheetState, SimpleColumnConfig, SmartTableModule, SortDirection, StAddColumnButtonComponent, StCellComponent, StColumnEditorModalComponent, StColumnFilterComponent, StColumnMenuDropdownComponent, StColumnResizeDirective, StColumnVisibilityComponent, StHeaderComponent, StKeyboardNavigationDirective, StPaginationComponent, StRowActionsDropdownComponent, StSheetActionsComponent, StSheetComponent, StTableActionsComponent, StTableComponent, StWorkbookComponent, StringFormatter, TableConfigEditorComponent, TableState, TableZIndex, TemplateFormatter, TextAreaEditor, TextEditor, UrlValidator, ValidationLoggerService, VirtualScrollService, WorkbookState, canEdit, createCellState, createMemento, dnToHumanReadable, isCellValid, isDisplayMode, isNullOrUndefined, isValidDate, isValidationSuccess, mergeTableConfig, registerFormatter, resolveFormatter, restoreFromMemento };
|
|
6271
|
-
export type { AllowedDatesRange, AsyncCellValidator, AutoCompleteOption, AutoCompleteStyle, AutosaveConfig, AutosaveData, AutosaveStrategy, BuilderState, CellCancelEvent, CellChangeEvent, CellEditEvent, CellEditor, CellEditorContext, CellEvent, CellEventHandler, CellFocusPosition, CellFormatter, CellLifecycleHooks, CellParser, CellSaveEvent, CellState, CellStateMemento, CellValidator, CellValue, ChipOption, CodeEditorCompletion, ColumnAction, ColumnActionContext, ColumnActionEvent, ColumnAddEvent, ColumnConfig, ColumnConfigOptions, ColumnConfigWithKey, ColumnFilterEvent, ColumnFilterState, ColumnMoveEvent, ColumnResizeEvent, ColumnSortEvent, ColumnSortState, CompositeValidator, DataChangeEvent, DateRange, ExportOptions, FilterContext, FilterOptions, ImportResult, NileAutoCompleteEditorOptions, NileCalendarEditorOptions, NileChipEditorOptions, NileCodeEditorOptions, NileDatePickerEditorOptions, NileInputEditorOptions, NileSelectEditorOptions, OUFormatterOptions, PaginationState, PartialColumnConfig, RowAction, RowActionContext, RowActionEvent, RowManagementConfig, RowValidationState, SelectOption, SheetAction, SheetActionContext, SheetActionEvent, SheetConfig, SheetMetadata, SheetStateConfig, SheetStateSnapshot, SheetTabAction, SheetTabActionEvent, TableConfig, TableStateChangeEvent, TableStateConfig, TableStateSnapshot, TableValidationState, ValidationError, ValidationLogEntry, ValidationResult, VirtualScrollState, WorkbookAction, WorkbookActionEvent, WorkbookConfig, WorkbookMetadata, WorkbookSheetConfig, WorkbookStateConfig, WorkbookStateSnapshot };
|
|
6458
|
+
export { ArrayFormatter, AutosaveService, BaseColumnConfig, BooleanEditor, BooleanFormatter, BuilderPreviewComponent, BuilderToolbarComponent, Cell, CellAlignment, CellDataType, CellLifecycleState, CellVerticalAlignment, ChainValidator, ClickOutsideDirective, ColumnConfigFactory, ColumnEditorComponent, ColumnListComponent, Columns, CurrencyFormatter, DEFAULT_AUTOSAVE_CONFIG, DEFAULT_COLUMN_CONFIG, DEFAULT_TABLE_CONFIG, DateEditor, DateFormatter, DateRangeValidator, DefaultFormatter, DefinitionBuilderComponent, DefinitionBuilderModule, DefinitionBuilderService, DefinitionExportService, DefinitionImportService, EditMode, EmailValidator, FilterOperator, FunctionFormatter, FunctionValidator, JsonSchemaValidatorService, LengthValidator, NavigationDirection, NavigationKey, NileAutoCompleteEditor, NileCalendarEditor, NileCheckboxEditor, NileChipEditor, NileCodeEditor, NileDatePickerEditor, NileInputEditor, NileSelectEditor, NumberEditor, NumberFormatter, OUFormatter, PatternValidators, PercentageFormatter, RangeValidator, RegexValidator, RequiredValidator, RowValidationService, SampleDataGeneratorService, SelectEditor, SharedTableComponentsModule, SheetState, SimpleColumnConfig, SmartTableModule, SortDirection, StAddColumnButtonComponent, StCellComponent, StColumnEditorModalComponent, StColumnFilterComponent, StColumnMenuDropdownComponent, StColumnResizeDirective, StColumnVisibilityComponent, StHeaderComponent, StKeyboardNavigationDirective, StPaginationComponent, StRowActionsDropdownComponent, StSheetActionsComponent, StSheetComponent, StTableActionsComponent, StTableComponent, StWorkbookComponent, StringFormatter, TableConfigEditorComponent, TableState, TableZIndex, TemplateFormatter, TextAreaEditor, TextEditor, UrlValidator, ValidationLoggerService, VirtualScrollService, WorkbookState, canEdit, createCellState, createMemento, dnToHumanReadable, isCellValid, isDisplayMode, isNullOrUndefined, isValidDate, isValidationSuccess, mergeTableConfig, registerFormatter, resolveFormatter, restoreFromMemento };
|
|
6459
|
+
export type { AllowedDatesRange, AsyncCellValidator, AutoCompleteOption, AutoCompleteStyle, AutosaveConfig, AutosaveData, AutosaveStrategy, BuilderState, CellCancelEvent, CellChangeEvent, CellEditEvent, CellEditor, CellEditorContext, CellEvent, CellEventHandler, CellFocusPosition, CellFormatter, CellLifecycleHooks, CellParser, CellSaveEvent, CellState, CellStateMemento, CellValidator, CellValue, ChipOption, CodeEditorCompletion, ColumnAction, ColumnActionContext, ColumnActionEvent, ColumnAddEvent, ColumnConfig, ColumnConfigOptions, ColumnConfigWithKey, ColumnFilterEvent, ColumnFilterState, ColumnMoveEvent, ColumnResizeEvent, ColumnSortEvent, ColumnSortState, CompositeValidator, DataChangeEvent, DateRange, ExportOptions, FilterContext, FilterOptions, ImportResult, NileAutoCompleteEditorOptions, NileCalendarEditorOptions, NileCheckboxEditorOptions, NileChipEditorOptions, NileCodeEditorOptions, NileDatePickerEditorOptions, NileInputEditorOptions, NileSelectEditorOptions, OUFormatterOptions, PaginationState, PartialColumnConfig, RowAction, RowActionContext, RowActionEvent, RowManagementConfig, RowValidationState, SelectOption, SheetAction, SheetActionContext, SheetActionEvent, SheetConfig, SheetMetadata, SheetStateConfig, SheetStateSnapshot, SheetTabAction, SheetTabActionEvent, TableConfig, TableRowBackgroundContext, TableStateChangeEvent, TableStateConfig, TableStateSnapshot, TableValidationState, ValidationError, ValidationLogEntry, ValidationResult, VirtualScrollState, WorkbookAction, WorkbookActionEvent, WorkbookConfig, WorkbookMetadata, WorkbookSheetConfig, WorkbookStateConfig, WorkbookStateSnapshot };
|