@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.
@@ -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 input
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 triggerInput?;
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 input
74
+ * Set initial value in the trigger div
74
75
  */
75
76
  private setInitialValue;
76
77
  /**
77
- * Apply all configuration options to both NileDatePicker and trigger input
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aquera/ngx-smart-table",
3
- "version": "0.0.3-alpha",
3
+ "version": "0.0.5-alpha",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=13.0.0 <16.0.0",
6
6
  "@angular/core": ">=13.0.0 <16.0.0",