@aquera/ngx-smart-table 0.0.17-patch-0.2 → 0.0.17-patch-0.4

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.
@@ -71,8 +71,6 @@ export interface NileCodeEditorOptions {
71
71
  dialogMaxHeight?: string;
72
72
  /** Dialog editor min height (default: '300px') */
73
73
  dialogEditorHeight?: string;
74
- /** Minimum number of visible lines in the dialog editor (default: 20) */
75
- dialogMinLines?: number;
76
74
  /** Inline completion dataset */
77
75
  customAutoCompletions?: Record<string, CodeEditorCompletion[]> | CodeEditorCompletion[];
78
76
  /** Paths to fetch completion datasets from */
@@ -114,20 +112,46 @@ export declare class NileCodeEditor<T = string> implements CellEditor<T> {
114
112
  private expandButtonClicked;
115
113
  private documentClickHandler?;
116
114
  private trackedValue;
115
+ private syncingFromDialog;
116
+ private userEditedInline;
117
+ private dialogOriginalValue;
118
+ private dialogCurrentValue;
117
119
  constructor(options?: NileCodeEditorOptions | undefined);
118
120
  edit(context: CellEditorContext<T>): void;
119
121
  /**
120
122
  * Focus the editor and place cursor
121
123
  */
122
124
  private focusEditor;
125
+ /**
126
+ * Read the live value directly from CodeMirror's internal state,
127
+ * bypassing debounced nile-change events and the possibly-stale .value property.
128
+ *
129
+ * Priority order:
130
+ * 1. trackedValue - always up to date from change events
131
+ * 2. CodeMirror internal state - for real-time reading
132
+ * 3. editor.value property - fallback
133
+ */
134
+ private getLiveEditorValue;
123
135
  /**
124
136
  * Open the full editor dialog
125
137
  */
126
138
  private openDialog;
127
139
  /**
128
- * Close the dialog and optionally save/exit edit mode
140
+ * Get the current value from the dialog editor
141
+ */
142
+ private getDialogEditorValue;
143
+ /**
144
+ * Apply changes from dialog and close it
145
+ */
146
+ private applyDialogChanges;
147
+ /**
148
+ * Cancel dialog changes and revert to original value
149
+ */
150
+ private cancelDialogChanges;
151
+ /**
152
+ * Close and remove the dialog UI
129
153
  */
130
- private closeDialog;
154
+ private closeDialogUI;
131
155
  /**
132
156
  * Apply all configuration options to the NileCodeEditor element
133
157
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aquera/ngx-smart-table",
3
- "version": "0.0.17-patch-0.2",
3
+ "version": "0.0.17-patch-0.4",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=13.0.0 <16.0.0",