@aquera/ngx-smart-table 0.0.12-alpha → 0.0.14-alpha
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/esm2020/lib/editors/nile-select-editor.mjs +143 -21
- package/esm2020/lib/renderer/components/st-cell/st-cell.component.mjs +2 -2
- package/esm2020/lib/renderer/components/st-table/st-table.component.mjs +44 -1
- package/esm2020/lib/renderer/components/st-workbook/st-workbook.component.mjs +30 -4
- package/fesm2015/aquera-ngx-smart-table.mjs +217 -25
- package/fesm2015/aquera-ngx-smart-table.mjs.map +1 -1
- package/fesm2020/aquera-ngx-smart-table.mjs +214 -24
- package/fesm2020/aquera-ngx-smart-table.mjs.map +1 -1
- package/lib/editors/nile-select-editor.d.ts +7 -0
- package/lib/renderer/components/st-table/st-table.component.d.ts +11 -0
- package/lib/renderer/components/st-workbook/st-workbook.component.d.ts +16 -0
- package/package.json +1 -1
|
@@ -73,11 +73,18 @@ export interface NileSelectEditorOptions {
|
|
|
73
73
|
export declare class NileSelectEditor<T = string> implements CellEditor<T> {
|
|
74
74
|
private readonly options;
|
|
75
75
|
acceptsInitialKeypress: boolean;
|
|
76
|
+
private static stylesInjected;
|
|
76
77
|
private select?;
|
|
77
78
|
private portalDiv?;
|
|
78
79
|
private eventListeners;
|
|
79
80
|
private optionsSubscription?;
|
|
80
81
|
private currentOptions;
|
|
82
|
+
private isInitializing;
|
|
83
|
+
/**
|
|
84
|
+
* Inject global styles to remove border from nile-select combobox
|
|
85
|
+
* Uses ::part selector which works across shadow DOM boundaries
|
|
86
|
+
*/
|
|
87
|
+
private injectBorderlessStyles;
|
|
81
88
|
constructor(options: NileSelectEditorOptions);
|
|
82
89
|
edit(context: CellEditorContext<T>): void;
|
|
83
90
|
/**
|
|
@@ -313,6 +313,17 @@ export declare class StTableComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
313
313
|
* Scroll a cell into view, accounting for sticky columns
|
|
314
314
|
*/
|
|
315
315
|
private scrollCellIntoView;
|
|
316
|
+
/**
|
|
317
|
+
* Scroll to a specific row by index and optionally focus it
|
|
318
|
+
* @param rowIndex - The index of the row to scroll to
|
|
319
|
+
* @param focusFirstCell - Whether to focus the first editable cell (default: false)
|
|
320
|
+
*/
|
|
321
|
+
scrollToRowAndFocus(rowIndex: number, focusFirstCell?: boolean): void;
|
|
322
|
+
/**
|
|
323
|
+
* Scroll to the last row in the table
|
|
324
|
+
* @param focusFirstCell - Whether to focus the first editable cell (default: true)
|
|
325
|
+
*/
|
|
326
|
+
scrollToLastRow(focusFirstCell?: boolean): void;
|
|
316
327
|
/**
|
|
317
328
|
* Get the scroll container element
|
|
318
329
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, OnChanges, OnDestroy, SimpleChanges, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { StTableComponent } from '../st-table/st-table.component';
|
|
2
3
|
import { BehaviorSubject } from 'rxjs';
|
|
3
4
|
import { WorkbookConfig, WorkbookSheetConfig } from '../../../models/workbook-config.interface';
|
|
4
5
|
import { WorkbookAction, WorkbookActionEvent, SheetTabActionEvent } from '../../../models/workbook-action.interface';
|
|
@@ -64,6 +65,10 @@ export declare class StWorkbookComponent implements OnInit, OnChanges, OnDestroy
|
|
|
64
65
|
sheetId: string;
|
|
65
66
|
focusColumn?: number | undefined;
|
|
66
67
|
}>;
|
|
68
|
+
/**
|
|
69
|
+
* Reference to the st-table component for programmatic control
|
|
70
|
+
*/
|
|
71
|
+
tableComponent?: StTableComponent;
|
|
67
72
|
/**
|
|
68
73
|
* Array of sheets
|
|
69
74
|
*/
|
|
@@ -250,6 +255,17 @@ export declare class StWorkbookComponent implements OnInit, OnChanges, OnDestroy
|
|
|
250
255
|
* Setup beforeunload warning for unsaved changes
|
|
251
256
|
*/
|
|
252
257
|
private setupBeforeUnloadWarning;
|
|
258
|
+
/**
|
|
259
|
+
* Scroll to a specific row in the current table
|
|
260
|
+
* @param rowIndex - The index of the row to scroll to
|
|
261
|
+
* @param focusFirstCell - Whether to focus the first editable cell (default: false)
|
|
262
|
+
*/
|
|
263
|
+
scrollToRow(rowIndex: number, focusFirstCell?: boolean): void;
|
|
264
|
+
/**
|
|
265
|
+
* Scroll to the last row in the current table
|
|
266
|
+
* @param focusFirstCell - Whether to focus the first editable cell (default: true)
|
|
267
|
+
*/
|
|
268
|
+
scrollToLastRow(focusFirstCell?: boolean): void;
|
|
253
269
|
static ɵfac: i0.ɵɵFactoryDeclaration<StWorkbookComponent, never>;
|
|
254
270
|
static ɵcmp: i0.ɵɵComponentDeclaration<StWorkbookComponent, "st-workbook", never, { "config": "config"; "sheetsData": "sheetsData"; "state": "state"; }, { "sheetChanged": "sheetChanged"; "addSheet": "addSheet"; "sheetTabAction": "sheetTabAction"; "workbookAction": "workbookAction"; "cellChange": "cellChange"; "cellSave": "cellSave"; "tableStateChange": "tableStateChange"; "fullscreenToggle": "fullscreenToggle"; "requestAddRow": "requestAddRow"; }, never, never>;
|
|
255
271
|
}
|