@aquera/ngx-smart-table 0.0.17-patch-0.6 → 0.0.17-patch-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/esm2020/lib/editors/nile-chip-editor.mjs +5 -2
- package/esm2020/lib/editors/nile-select-editor.mjs +119 -6
- package/esm2020/lib/renderer/components/st-cell/st-cell.component.mjs +9 -3
- package/esm2020/lib/renderer/components/st-column-menu/st-column-menu.component.mjs +36 -17
- package/esm2020/lib/renderer/components/st-row-actions-dropdown/st-row-actions-dropdown.component.mjs +34 -27
- package/esm2020/lib/renderer/components/st-table/st-table.component.mjs +5 -5
- package/fesm2015/aquera-ngx-smart-table.mjs +212 -58
- package/fesm2015/aquera-ngx-smart-table.mjs.map +1 -1
- package/fesm2020/aquera-ngx-smart-table.mjs +201 -53
- package/fesm2020/aquera-ngx-smart-table.mjs.map +1 -1
- package/lib/editors/nile-chip-editor.d.ts +1 -0
- package/lib/editors/nile-select-editor.d.ts +11 -0
- package/lib/renderer/components/st-column-menu/st-column-menu.component.d.ts +4 -2
- package/lib/renderer/components/st-row-actions-dropdown/st-row-actions-dropdown.component.d.ts +4 -2
- package/lib/renderer/components/st-table/st-table.component.d.ts +2 -0
- package/package.json +1 -1
|
@@ -81,6 +81,7 @@ export declare class NileChipEditor implements CellEditor<string[]> {
|
|
|
81
81
|
private cellContainer?;
|
|
82
82
|
private eventListeners;
|
|
83
83
|
private trackedValues;
|
|
84
|
+
private hasChangeOccurred;
|
|
84
85
|
constructor(options?: NileChipEditorOptions | undefined);
|
|
85
86
|
edit(context: CellEditorContext<string[]>): void;
|
|
86
87
|
private positionPopover;
|
|
@@ -65,6 +65,12 @@ export interface NileSelectEditorOptions {
|
|
|
65
65
|
validateOnSave?: boolean;
|
|
66
66
|
/** Append dropdown to document body instead of parent */
|
|
67
67
|
portal?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* When true (default), opens the options list as soon as the cell enters edit mode
|
|
70
|
+
* (e.g. double-click). Set to false to keep the list closed until the user opens it.
|
|
71
|
+
* With `enableVirtualScroll`, opening uses the inner `nile-virtual-select` only.
|
|
72
|
+
*/
|
|
73
|
+
openDropdownOnEdit?: boolean;
|
|
68
74
|
}
|
|
69
75
|
/**
|
|
70
76
|
* Custom editor that uses NileSelect component
|
|
@@ -81,6 +87,11 @@ export declare class NileSelectEditor<T = string> implements CellEditor<T> {
|
|
|
81
87
|
private hasChangeOccurred;
|
|
82
88
|
constructor(options: NileSelectEditorOptions);
|
|
83
89
|
edit(context: CellEditorContext<T>): void;
|
|
90
|
+
private activateSelectAfterMount;
|
|
91
|
+
/** Lit @query('nile-popup') / .select — must exist before handleOpenChange touches this.popup.popup */
|
|
92
|
+
private isNileSelectPopupMounted;
|
|
93
|
+
private invokeShowHandlingPromise;
|
|
94
|
+
private openNileSelectDropdownSafely;
|
|
84
95
|
/**
|
|
85
96
|
* Set the initial value for the select
|
|
86
97
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { EventEmitter, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ColumnAction, ColumnActionContext, ColumnActionEvent } from '../../../models/column-action.interface';
|
|
3
3
|
import { StColumnFilterComponent } from '../st-column-filter/st-column-filter.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -8,11 +8,12 @@ export declare class StColumnMenuDropdownComponent implements OnChanges {
|
|
|
8
8
|
*/
|
|
9
9
|
isOpen: boolean;
|
|
10
10
|
/**
|
|
11
|
-
* Position of the dropdown (x, y coordinates)
|
|
11
|
+
* Position of the dropdown (x, y coordinates, triggerTop for flip positioning)
|
|
12
12
|
*/
|
|
13
13
|
position: {
|
|
14
14
|
x: number;
|
|
15
15
|
y: number;
|
|
16
|
+
triggerTop?: number;
|
|
16
17
|
};
|
|
17
18
|
/**
|
|
18
19
|
* Context containing column data, index, and actions
|
|
@@ -27,6 +28,7 @@ export declare class StColumnMenuDropdownComponent implements OnChanges {
|
|
|
27
28
|
*/
|
|
28
29
|
closed: EventEmitter<void>;
|
|
29
30
|
filterPopup?: StColumnFilterComponent;
|
|
31
|
+
dropdownPanel?: ElementRef<HTMLElement>;
|
|
30
32
|
/**
|
|
31
33
|
* Visible actions (filtered by hidden property)
|
|
32
34
|
*/
|
package/lib/renderer/components/st-row-actions-dropdown/st-row-actions-dropdown.component.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges, ElementRef } from '@angular/core';
|
|
2
2
|
import { RowAction, RowActionContext, RowActionEvent } from '../../../models/row-action.interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class StRowActionsDropdownComponent implements OnChanges {
|
|
@@ -7,11 +7,12 @@ export declare class StRowActionsDropdownComponent implements OnChanges {
|
|
|
7
7
|
*/
|
|
8
8
|
isOpen: boolean;
|
|
9
9
|
/**
|
|
10
|
-
* Position of the dropdown (x, y coordinates)
|
|
10
|
+
* Position of the dropdown (x, y coordinates, triggerTop for flip positioning)
|
|
11
11
|
*/
|
|
12
12
|
position: {
|
|
13
13
|
x: number;
|
|
14
14
|
y: number;
|
|
15
|
+
triggerTop?: number;
|
|
15
16
|
};
|
|
16
17
|
/**
|
|
17
18
|
* Context containing row data, index, and actions
|
|
@@ -25,6 +26,7 @@ export declare class StRowActionsDropdownComponent implements OnChanges {
|
|
|
25
26
|
* Emitted when the dropdown should close
|
|
26
27
|
*/
|
|
27
28
|
closed: EventEmitter<void>;
|
|
29
|
+
dropdownPanel?: ElementRef<HTMLElement>;
|
|
28
30
|
/**
|
|
29
31
|
* Visible actions (filtered by hidden property)
|
|
30
32
|
*/
|
|
@@ -61,6 +61,7 @@ export declare class StTableComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
61
61
|
position: {
|
|
62
62
|
x: number;
|
|
63
63
|
y: number;
|
|
64
|
+
triggerTop?: number;
|
|
64
65
|
};
|
|
65
66
|
context: RowActionContext | null;
|
|
66
67
|
};
|
|
@@ -71,6 +72,7 @@ export declare class StTableComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
71
72
|
position: {
|
|
72
73
|
x: number;
|
|
73
74
|
y: number;
|
|
75
|
+
triggerTop?: number;
|
|
74
76
|
};
|
|
75
77
|
context: ColumnActionContext | null;
|
|
76
78
|
};
|