@aquera/ngx-smart-table 0.0.13-alpha → 0.0.15-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.
@@ -73,12 +73,20 @@ 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;
81
82
  private isInitializing;
83
+ private hasSaved;
84
+ private lastSelectedValue;
85
+ /**
86
+ * Inject global styles to remove border from nile-select combobox
87
+ * Uses ::part selector which works across shadow DOM boundaries
88
+ */
89
+ private injectBorderlessStyles;
82
90
  constructor(options: NileSelectEditorOptions);
83
91
  edit(context: CellEditorContext<T>): void;
84
92
  /**
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aquera/ngx-smart-table",
3
- "version": "0.0.13-alpha",
3
+ "version": "0.0.15-alpha",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=13.0.0 <16.0.0",