@aquera/ngx-smart-table 0.0.5-alpha → 0.0.7-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 +52 -3
- package/esm2020/lib/renderer/components/st-table/st-table.component.mjs +25 -14
- package/esm2020/lib/renderer/components/st-workbook/st-workbook.component.mjs +23 -9
- package/fesm2015/aquera-ngx-smart-table.mjs +103 -28
- package/fesm2015/aquera-ngx-smart-table.mjs.map +1 -1
- package/fesm2020/aquera-ngx-smart-table.mjs +98 -24
- package/fesm2020/aquera-ngx-smart-table.mjs.map +1 -1
- package/lib/editors/nile-select-editor.d.ts +1 -0
- package/lib/renderer/components/st-table/st-table.component.d.ts +2 -0
- package/lib/renderer/components/st-workbook/st-workbook.component.d.ts +5 -4
- package/package.json +2 -1
|
@@ -74,6 +74,7 @@ export declare class NileSelectEditor<T = string> implements CellEditor<T> {
|
|
|
74
74
|
private readonly options;
|
|
75
75
|
acceptsInitialKeypress: boolean;
|
|
76
76
|
private select?;
|
|
77
|
+
private portalDiv?;
|
|
77
78
|
private eventListeners;
|
|
78
79
|
private optionsSubscription?;
|
|
79
80
|
private currentOptions;
|
|
@@ -85,6 +85,8 @@ export declare class StTableComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
85
85
|
* Create internal TableState from config
|
|
86
86
|
*/
|
|
87
87
|
private createInternalTableState;
|
|
88
|
+
private subscribeToValidationState;
|
|
89
|
+
private subscribeToInternalState;
|
|
88
90
|
/**
|
|
89
91
|
* Subscribe to external TableState changes
|
|
90
92
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, OnChanges, OnDestroy, SimpleChanges, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
3
|
import { WorkbookConfig, WorkbookSheetConfig } from '../../../models/workbook-config.interface';
|
|
4
4
|
import { WorkbookAction, WorkbookActionEvent, SheetTabActionEvent } from '../../../models/workbook-action.interface';
|
|
@@ -11,6 +11,7 @@ import { AutosaveService } from '../../../services/autosave.service';
|
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class StWorkbookComponent implements OnInit, OnChanges, OnDestroy {
|
|
13
13
|
private autosaveService;
|
|
14
|
+
private cdr;
|
|
14
15
|
/**
|
|
15
16
|
* Workbook configuration
|
|
16
17
|
*/
|
|
@@ -68,9 +69,9 @@ export declare class StWorkbookComponent implements OnInit, OnChanges, OnDestroy
|
|
|
68
69
|
*/
|
|
69
70
|
currentTableConfig: TableConfig | null;
|
|
70
71
|
/**
|
|
71
|
-
* Current table data (for active sheet)
|
|
72
|
+
* Current table data (for active sheet) - using BehaviorSubject for reactive updates
|
|
72
73
|
*/
|
|
73
|
-
currentTableData
|
|
74
|
+
currentTableData$: BehaviorSubject<any[]>;
|
|
74
75
|
/**
|
|
75
76
|
* Current table state (for active sheet)
|
|
76
77
|
*/
|
|
@@ -127,7 +128,7 @@ export declare class StWorkbookComponent implements OnInit, OnChanges, OnDestroy
|
|
|
127
128
|
* Beforeunload handler reference
|
|
128
129
|
*/
|
|
129
130
|
private beforeUnloadHandler;
|
|
130
|
-
constructor(autosaveService: AutosaveService);
|
|
131
|
+
constructor(autosaveService: AutosaveService, cdr: ChangeDetectorRef);
|
|
131
132
|
ngOnInit(): void;
|
|
132
133
|
ngOnChanges(changes: SimpleChanges): void;
|
|
133
134
|
/**
|