@aquera/ngx-smart-table 0.0.3-alpha → 0.0.5-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-calendar-editor.mjs +2 -5
- package/esm2020/lib/editors/nile-date-picker-editor.mjs +38 -77
- package/esm2020/lib/editors/nile-select-editor.mjs +2 -1
- package/esm2020/lib/models/cell-strategies.interface.mjs +1 -1
- package/esm2020/lib/renderer/components/st-cell/st-cell.component.mjs +10 -4
- package/esm2020/lib/renderer/components/st-column-menu/st-column-menu.component.mjs +2 -2
- package/esm2020/lib/renderer/components/st-table/st-table.component.mjs +18 -10
- package/esm2020/lib/renderer/components/st-table-actions/st-table-actions.component.mjs +15 -17
- package/fesm2015/aquera-ngx-smart-table.mjs +438 -468
- package/fesm2015/aquera-ngx-smart-table.mjs.map +1 -1
- package/fesm2020/aquera-ngx-smart-table.mjs +429 -458
- package/fesm2020/aquera-ngx-smart-table.mjs.map +1 -1
- package/lib/editors/nile-calendar-editor.d.ts +1 -2
- package/lib/editors/nile-date-picker-editor.d.ts +6 -4
- package/lib/editors/nile-select-editor.d.ts +1 -0
- package/lib/models/cell-strategies.interface.d.ts +7 -0
- package/package.json +1 -1
|
@@ -52,8 +52,6 @@ export interface NileCalendarEditorOptions {
|
|
|
52
52
|
errorMessage?: string;
|
|
53
53
|
/** Size of the calendar control */
|
|
54
54
|
size?: 'small' | 'medium' | 'large';
|
|
55
|
-
/** Use portal for dropdown rendering to prevent clipping */
|
|
56
|
-
portal?: boolean;
|
|
57
55
|
/** Validate before saving (default: true) */
|
|
58
56
|
validateOnSave?: boolean;
|
|
59
57
|
}
|
|
@@ -63,6 +61,7 @@ export interface NileCalendarEditorOptions {
|
|
|
63
61
|
*/
|
|
64
62
|
export declare class NileCalendarEditor<T = string> implements CellEditor<T> {
|
|
65
63
|
private readonly options?;
|
|
64
|
+
acceptsInitialKeypress: boolean;
|
|
66
65
|
private calendar?;
|
|
67
66
|
private eventListeners;
|
|
68
67
|
constructor(options?: NileCalendarEditorOptions | undefined);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Custom editor using NileDatePicker from @aquera/nile-elements
|
|
3
|
-
* Supports both single date and range selection with slot-based trigger
|
|
3
|
+
* Supports both single date and range selection with slot-based trigger div
|
|
4
4
|
* Returns string values for both modes:
|
|
5
5
|
* - Single mode: 'YYYY-MM-DD'
|
|
6
6
|
* - Range mode: 'YYYY-MM-DD - YYYY-MM-DD'
|
|
@@ -64,17 +64,19 @@ export interface NileDatePickerEditorOptions {
|
|
|
64
64
|
*/
|
|
65
65
|
export declare class NileDatePickerEditor<T = string> implements CellEditor<T> {
|
|
66
66
|
private readonly options?;
|
|
67
|
+
acceptsInitialKeypress: boolean;
|
|
67
68
|
private datePicker?;
|
|
68
|
-
private
|
|
69
|
+
private triggerDiv?;
|
|
69
70
|
private eventListeners;
|
|
70
71
|
constructor(options?: NileDatePickerEditorOptions | undefined);
|
|
71
72
|
edit(context: CellEditorContext<T>): void;
|
|
72
73
|
/**
|
|
73
|
-
* Set initial value in the trigger
|
|
74
|
+
* Set initial value in the trigger div
|
|
74
75
|
*/
|
|
75
76
|
private setInitialValue;
|
|
76
77
|
/**
|
|
77
|
-
* Apply
|
|
78
|
+
* Apply configuration options to the date picker
|
|
79
|
+
* Note: Trigger is now a simple div, so input-specific options are not applied
|
|
78
80
|
*/
|
|
79
81
|
private applyOptions;
|
|
80
82
|
/**
|
|
@@ -72,6 +72,7 @@ export interface NileSelectEditorOptions {
|
|
|
72
72
|
*/
|
|
73
73
|
export declare class NileSelectEditor<T = string> implements CellEditor<T> {
|
|
74
74
|
private readonly options;
|
|
75
|
+
acceptsInitialKeypress: boolean;
|
|
75
76
|
private select?;
|
|
76
77
|
private eventListeners;
|
|
77
78
|
private optionsSubscription?;
|
|
@@ -89,6 +89,13 @@ export interface CellEditorContext<T = any> {
|
|
|
89
89
|
* Editors are stateless and can be shared across multiple cells
|
|
90
90
|
*/
|
|
91
91
|
export interface CellEditor<T = any> {
|
|
92
|
+
/**
|
|
93
|
+
* Whether this editor should receive the initial keypress character
|
|
94
|
+
* when starting edit mode via keyboard.
|
|
95
|
+
* - true (default): Initial keypress character becomes the starting value
|
|
96
|
+
* - false: Initial keypress just triggers edit mode, character is ignored
|
|
97
|
+
*/
|
|
98
|
+
acceptsInitialKeypress?: boolean;
|
|
92
99
|
/**
|
|
93
100
|
* Initialize and render the editor
|
|
94
101
|
* @param context Editor context with value, callbacks, and container
|