@aquera/ngx-smart-table 0.0.26 → 0.0.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aquera/ngx-smart-table",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
@@ -31,5 +31,6 @@
31
31
  "types": "./types/aquera-ngx-smart-table.d.ts",
32
32
  "default": "./fesm2022/aquera-ngx-smart-table.mjs"
33
33
  }
34
- }
34
+ },
35
+ "type": "module"
35
36
  }
@@ -3478,6 +3478,12 @@ interface NileSelectEditorOptions {
3478
3478
  validateOnSave?: boolean;
3479
3479
  /** Append dropdown to document body instead of parent */
3480
3480
  portal?: boolean;
3481
+ /**
3482
+ * When true (default), opens the options list as soon as the cell enters edit mode
3483
+ * (e.g. double-click). Set to false to keep the list closed until the user opens it.
3484
+ * With `enableVirtualScroll`, opening uses the inner `nile-virtual-select` only.
3485
+ */
3486
+ openDropdownOnEdit?: boolean;
3481
3487
  }
3482
3488
  /**
3483
3489
  * Custom editor that uses NileSelect component
@@ -3494,6 +3500,11 @@ declare class NileSelectEditor<T = string> implements CellEditor<T> {
3494
3500
  private hasChangeOccurred;
3495
3501
  constructor(options: NileSelectEditorOptions);
3496
3502
  edit(context: CellEditorContext<T>): void;
3503
+ private activateSelectAfterMount;
3504
+ /** Lit @query('nile-popup') / .select — must exist before handleOpenChange touches this.popup.popup */
3505
+ private isNileSelectPopupMounted;
3506
+ private invokeShowHandlingPromise;
3507
+ private openNileSelectDropdownSafely;
3497
3508
  /**
3498
3509
  * Set the initial value for the select
3499
3510
  */
@@ -3899,6 +3910,7 @@ declare class NileChipEditor implements CellEditor<string[]> {
3899
3910
  private cellContainer?;
3900
3911
  private eventListeners;
3901
3912
  private trackedValues;
3913
+ private hasChangeOccurred;
3902
3914
  constructor(options?: NileChipEditorOptions | undefined);
3903
3915
  edit(context: CellEditorContext<string[]>): void;
3904
3916
  private positionPopover;
@@ -4338,12 +4350,14 @@ declare class StTableComponent implements OnInit, OnChanges, OnDestroy, AfterVie
4338
4350
  readonly dropdownPosition: _angular_core.WritableSignal<{
4339
4351
  x: number;
4340
4352
  y: number;
4353
+ triggerTop?: number;
4341
4354
  }>;
4342
4355
  readonly dropdownContext: _angular_core.WritableSignal<RowActionContext | null>;
4343
4356
  readonly columnMenuIsOpen: _angular_core.WritableSignal<boolean>;
4344
4357
  readonly columnMenuPosition: _angular_core.WritableSignal<{
4345
4358
  x: number;
4346
4359
  y: number;
4360
+ triggerTop?: number;
4347
4361
  }>;
4348
4362
  readonly columnMenuContext: _angular_core.WritableSignal<ColumnActionContext | null>;
4349
4363
  readonly virtualScrollState: _angular_core.WritableSignal<VirtualScrollState | null>;
@@ -4356,6 +4370,7 @@ declare class StTableComponent implements OnInit, OnChanges, OnDestroy, AfterVie
4356
4370
  position: {
4357
4371
  x: number;
4358
4372
  y: number;
4373
+ triggerTop?: number;
4359
4374
  };
4360
4375
  context: RowActionContext | null;
4361
4376
  }>;
@@ -4364,6 +4379,7 @@ declare class StTableComponent implements OnInit, OnChanges, OnDestroy, AfterVie
4364
4379
  position: {
4365
4380
  x: number;
4366
4381
  y: number;
4382
+ triggerTop?: number;
4367
4383
  };
4368
4384
  context: ColumnActionContext | null;
4369
4385
  }>;
@@ -4702,11 +4718,12 @@ declare class StColumnMenuDropdownComponent implements OnChanges {
4702
4718
  */
4703
4719
  isOpen: boolean;
4704
4720
  /**
4705
- * Position of the dropdown (x, y coordinates)
4721
+ * Position of the dropdown (x, y coordinates, triggerTop for flip positioning)
4706
4722
  */
4707
4723
  position: {
4708
4724
  x: number;
4709
4725
  y: number;
4726
+ triggerTop?: number;
4710
4727
  };
4711
4728
  /**
4712
4729
  * Context containing column data, index, and actions
@@ -4721,6 +4738,7 @@ declare class StColumnMenuDropdownComponent implements OnChanges {
4721
4738
  */
4722
4739
  closed: EventEmitter<void>;
4723
4740
  filterPopup?: StColumnFilterComponent;
4741
+ dropdownPanel?: ElementRef<HTMLElement>;
4724
4742
  /**
4725
4743
  * Visible actions (filtered by hidden property)
4726
4744
  */
@@ -5044,11 +5062,12 @@ declare class StRowActionsDropdownComponent implements OnChanges {
5044
5062
  */
5045
5063
  isOpen: boolean;
5046
5064
  /**
5047
- * Position of the dropdown (x, y coordinates)
5065
+ * Position of the dropdown (x, y coordinates, triggerTop for flip positioning)
5048
5066
  */
5049
5067
  position: {
5050
5068
  x: number;
5051
5069
  y: number;
5070
+ triggerTop?: number;
5052
5071
  };
5053
5072
  /**
5054
5073
  * Context containing row data, index, and actions
@@ -5062,6 +5081,7 @@ declare class StRowActionsDropdownComponent implements OnChanges {
5062
5081
  * Emitted when the dropdown should close
5063
5082
  */
5064
5083
  closed: EventEmitter<void>;
5084
+ dropdownPanel?: ElementRef<HTMLElement>;
5065
5085
  /**
5066
5086
  * Visible actions (filtered by hidden property)
5067
5087
  */