@aquera/ngx-smart-table 0.0.25 → 0.0.27

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.25",
3
+ "version": "0.0.27",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
@@ -3816,6 +3816,102 @@ declare class NileDatePickerEditor<T = string> implements CellEditor<T> {
3816
3816
  focus(): void;
3817
3817
  }
3818
3818
 
3819
+ /**
3820
+ * Custom editor using NileChip from @aquera/nile-elements
3821
+ * Renders the chip input in a floating popover below the cell to avoid row height mismatch.
3822
+ *
3823
+ * @see https://nile.aqueralabs.com/1.6.3/chip?theme=enterprise
3824
+ */
3825
+
3826
+ /**
3827
+ * Chip option for autocomplete suggestions
3828
+ */
3829
+ interface ChipOption {
3830
+ /** The option's value */
3831
+ value: string;
3832
+ /** Display label for the option (defaults to value if omitted) */
3833
+ label?: string;
3834
+ }
3835
+ /**
3836
+ * Options interface for NileChipEditor
3837
+ */
3838
+ interface NileChipEditorOptions {
3839
+ /** Autocomplete suggestion list (full set) */
3840
+ autoCompleteOptions?: ChipOption[] | string[];
3841
+ /** Placeholder text shown inside the input area */
3842
+ placeholder?: string;
3843
+ /** Allow users to type custom values not present in the suggestion list */
3844
+ acceptUserInput?: boolean;
3845
+ /** Prevent duplicate chip values */
3846
+ noDuplicates?: boolean;
3847
+ /** Disable the chip input */
3848
+ disabled?: boolean;
3849
+ /** Make the chip input readonly */
3850
+ readonly?: boolean;
3851
+ /** Show a clear-all button */
3852
+ clearable?: boolean;
3853
+ /** Prevent chip tags from wrapping to multiple lines */
3854
+ noWrap?: boolean;
3855
+ /** Remove the autocomplete dropdown entirely */
3856
+ noAutoComplete?: boolean;
3857
+ /** Enable virtual scrolling in the suggestion dropdown */
3858
+ enableVirtualScroll?: boolean;
3859
+ /** Control whether the dropdown opens on focus — 'true' | 'false' | 'always' */
3860
+ openDropdownOnFocus?: string;
3861
+ /** Show loading spinner inside the dropdown */
3862
+ loading?: boolean;
3863
+ /** Warning state styling */
3864
+ warning?: boolean;
3865
+ /** Error state styling */
3866
+ error?: boolean;
3867
+ /** Success state styling */
3868
+ success?: boolean;
3869
+ /** Error message shown below the input */
3870
+ errorMessage?: string;
3871
+ /** Help text shown below the input */
3872
+ helpText?: string;
3873
+ /** Label text for the chip input */
3874
+ label?: string;
3875
+ /** Indexes of chips to highlight as errors */
3876
+ errorIndexes?: number[];
3877
+ /** Custom filter function for autocomplete */
3878
+ filterFunction?: (query: string, option: string) => boolean;
3879
+ /** Custom render function for dropdown items */
3880
+ renderItemFunction?: (option: string) => string;
3881
+ /** Auto-focus the input when editor opens (default: true) */
3882
+ autoFocus?: boolean;
3883
+ /** Minimum width of the popover in px (default: width of the cell) */
3884
+ popoverMinWidth?: number;
3885
+ /** Maximum height of the popover in px before it scrolls (default: 200) */
3886
+ popoverMaxHeight?: number;
3887
+ }
3888
+ /**
3889
+ * Custom editor that uses NileChip (tag input) component.
3890
+ * Renders in a floating popover below the cell to avoid expanding row height.
3891
+ *
3892
+ * Cell value is expected to be `string[]` (array of tag strings).
3893
+ */
3894
+ declare class NileChipEditor implements CellEditor<string[]> {
3895
+ private readonly options?;
3896
+ acceptsInitialKeypress: boolean;
3897
+ private chip?;
3898
+ private popover?;
3899
+ private cellContainer?;
3900
+ private eventListeners;
3901
+ private trackedValues;
3902
+ private hasChangeOccurred;
3903
+ constructor(options?: NileChipEditorOptions | undefined);
3904
+ edit(context: CellEditorContext<string[]>): void;
3905
+ private positionPopover;
3906
+ private setInitialValue;
3907
+ private applyOptions;
3908
+ private addListener;
3909
+ private setupEventListeners;
3910
+ destroy(): void;
3911
+ focus(): void;
3912
+ getCurrentValue(): string[];
3913
+ }
3914
+
3819
3915
  /**
3820
3916
  * Custom editor using NileCodeEditor from @aquera/nile-elements
3821
3917
  * This provides code editing capabilities with syntax highlighting for table cells
@@ -4243,12 +4339,14 @@ declare class StTableComponent implements OnInit, OnChanges, OnDestroy, AfterVie
4243
4339
  readonly dropdownPosition: _angular_core.WritableSignal<{
4244
4340
  x: number;
4245
4341
  y: number;
4342
+ triggerTop?: number;
4246
4343
  }>;
4247
4344
  readonly dropdownContext: _angular_core.WritableSignal<RowActionContext | null>;
4248
4345
  readonly columnMenuIsOpen: _angular_core.WritableSignal<boolean>;
4249
4346
  readonly columnMenuPosition: _angular_core.WritableSignal<{
4250
4347
  x: number;
4251
4348
  y: number;
4349
+ triggerTop?: number;
4252
4350
  }>;
4253
4351
  readonly columnMenuContext: _angular_core.WritableSignal<ColumnActionContext | null>;
4254
4352
  readonly virtualScrollState: _angular_core.WritableSignal<VirtualScrollState | null>;
@@ -4261,6 +4359,7 @@ declare class StTableComponent implements OnInit, OnChanges, OnDestroy, AfterVie
4261
4359
  position: {
4262
4360
  x: number;
4263
4361
  y: number;
4362
+ triggerTop?: number;
4264
4363
  };
4265
4364
  context: RowActionContext | null;
4266
4365
  }>;
@@ -4269,6 +4368,7 @@ declare class StTableComponent implements OnInit, OnChanges, OnDestroy, AfterVie
4269
4368
  position: {
4270
4369
  x: number;
4271
4370
  y: number;
4371
+ triggerTop?: number;
4272
4372
  };
4273
4373
  context: ColumnActionContext | null;
4274
4374
  }>;
@@ -4607,11 +4707,12 @@ declare class StColumnMenuDropdownComponent implements OnChanges {
4607
4707
  */
4608
4708
  isOpen: boolean;
4609
4709
  /**
4610
- * Position of the dropdown (x, y coordinates)
4710
+ * Position of the dropdown (x, y coordinates, triggerTop for flip positioning)
4611
4711
  */
4612
4712
  position: {
4613
4713
  x: number;
4614
4714
  y: number;
4715
+ triggerTop?: number;
4615
4716
  };
4616
4717
  /**
4617
4718
  * Context containing column data, index, and actions
@@ -4626,6 +4727,7 @@ declare class StColumnMenuDropdownComponent implements OnChanges {
4626
4727
  */
4627
4728
  closed: EventEmitter<void>;
4628
4729
  filterPopup?: StColumnFilterComponent;
4730
+ dropdownPanel?: ElementRef<HTMLElement>;
4629
4731
  /**
4630
4732
  * Visible actions (filtered by hidden property)
4631
4733
  */
@@ -4949,11 +5051,12 @@ declare class StRowActionsDropdownComponent implements OnChanges {
4949
5051
  */
4950
5052
  isOpen: boolean;
4951
5053
  /**
4952
- * Position of the dropdown (x, y coordinates)
5054
+ * Position of the dropdown (x, y coordinates, triggerTop for flip positioning)
4953
5055
  */
4954
5056
  position: {
4955
5057
  x: number;
4956
5058
  y: number;
5059
+ triggerTop?: number;
4957
5060
  };
4958
5061
  /**
4959
5062
  * Context containing row data, index, and actions
@@ -4967,6 +5070,7 @@ declare class StRowActionsDropdownComponent implements OnChanges {
4967
5070
  * Emitted when the dropdown should close
4968
5071
  */
4969
5072
  closed: EventEmitter<void>;
5073
+ dropdownPanel?: ElementRef<HTMLElement>;
4970
5074
  /**
4971
5075
  * Visible actions (filtered by hidden property)
4972
5076
  */
@@ -6163,5 +6267,5 @@ declare class AutosaveService {
6163
6267
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<AutosaveService>;
6164
6268
  }
6165
6269
 
6166
- export { ArrayFormatter, AutosaveService, BaseColumnConfig, BooleanEditor, BooleanFormatter, BuilderPreviewComponent, BuilderToolbarComponent, Cell, CellAlignment, CellDataType, CellLifecycleState, CellVerticalAlignment, ChainValidator, ClickOutsideDirective, ColumnConfigFactory, ColumnEditorComponent, ColumnListComponent, Columns, CurrencyFormatter, DEFAULT_AUTOSAVE_CONFIG, DEFAULT_COLUMN_CONFIG, DEFAULT_TABLE_CONFIG, DateEditor, DateFormatter, DateRangeValidator, DefaultFormatter, DefinitionBuilderComponent, DefinitionBuilderModule, DefinitionBuilderService, DefinitionExportService, DefinitionImportService, EditMode, EmailValidator, FilterOperator, FunctionFormatter, FunctionValidator, JsonSchemaValidatorService, LengthValidator, NavigationDirection, NavigationKey, NileAutoCompleteEditor, NileCalendarEditor, NileCodeEditor, NileDatePickerEditor, NileInputEditor, NileSelectEditor, NumberEditor, NumberFormatter, OUFormatter, PatternValidators, PercentageFormatter, RangeValidator, RegexValidator, RequiredValidator, RowValidationService, SampleDataGeneratorService, SelectEditor, SharedTableComponentsModule, SheetState, SimpleColumnConfig, SmartTableModule, SortDirection, StAddColumnButtonComponent, StCellComponent, StColumnEditorModalComponent, StColumnFilterComponent, StColumnMenuDropdownComponent, StColumnResizeDirective, StColumnVisibilityComponent, StHeaderComponent, StKeyboardNavigationDirective, StPaginationComponent, StRowActionsDropdownComponent, StSheetActionsComponent, StSheetComponent, StTableActionsComponent, StTableComponent, StWorkbookComponent, StringFormatter, TableConfigEditorComponent, TableState, TableZIndex, TemplateFormatter, TextAreaEditor, TextEditor, UrlValidator, ValidationLoggerService, VirtualScrollService, WorkbookState, canEdit, createCellState, createMemento, dnToHumanReadable, isCellValid, isDisplayMode, isNullOrUndefined, isValidDate, isValidationSuccess, mergeTableConfig, registerFormatter, resolveFormatter, restoreFromMemento };
6167
- export type { AllowedDatesRange, AsyncCellValidator, AutoCompleteOption, AutoCompleteStyle, AutosaveConfig, AutosaveData, AutosaveStrategy, BuilderState, CellCancelEvent, CellChangeEvent, CellEditEvent, CellEditor, CellEditorContext, CellEvent, CellEventHandler, CellFocusPosition, CellFormatter, CellLifecycleHooks, CellParser, CellSaveEvent, CellState, CellStateMemento, CellValidator, CellValue, CodeEditorCompletion, ColumnAction, ColumnActionContext, ColumnActionEvent, ColumnAddEvent, ColumnConfig, ColumnConfigOptions, ColumnConfigWithKey, ColumnFilterEvent, ColumnFilterState, ColumnMoveEvent, ColumnResizeEvent, ColumnSortEvent, ColumnSortState, CompositeValidator, DataChangeEvent, DateRange, ExportOptions, FilterContext, FilterOptions, ImportResult, NileAutoCompleteEditorOptions, NileCalendarEditorOptions, NileCodeEditorOptions, NileDatePickerEditorOptions, NileInputEditorOptions, NileSelectEditorOptions, OUFormatterOptions, PaginationState, PartialColumnConfig, RowAction, RowActionContext, RowActionEvent, RowManagementConfig, RowValidationState, SelectOption, SheetAction, SheetActionContext, SheetActionEvent, SheetConfig, SheetMetadata, SheetStateConfig, SheetStateSnapshot, SheetTabAction, SheetTabActionEvent, TableConfig, TableStateChangeEvent, TableStateConfig, TableStateSnapshot, TableValidationState, ValidationError, ValidationLogEntry, ValidationResult, VirtualScrollState, WorkbookAction, WorkbookActionEvent, WorkbookConfig, WorkbookMetadata, WorkbookSheetConfig, WorkbookStateConfig, WorkbookStateSnapshot };
6270
+ export { ArrayFormatter, AutosaveService, BaseColumnConfig, BooleanEditor, BooleanFormatter, BuilderPreviewComponent, BuilderToolbarComponent, Cell, CellAlignment, CellDataType, CellLifecycleState, CellVerticalAlignment, ChainValidator, ClickOutsideDirective, ColumnConfigFactory, ColumnEditorComponent, ColumnListComponent, Columns, CurrencyFormatter, DEFAULT_AUTOSAVE_CONFIG, DEFAULT_COLUMN_CONFIG, DEFAULT_TABLE_CONFIG, DateEditor, DateFormatter, DateRangeValidator, DefaultFormatter, DefinitionBuilderComponent, DefinitionBuilderModule, DefinitionBuilderService, DefinitionExportService, DefinitionImportService, EditMode, EmailValidator, FilterOperator, FunctionFormatter, FunctionValidator, JsonSchemaValidatorService, LengthValidator, NavigationDirection, NavigationKey, NileAutoCompleteEditor, NileCalendarEditor, NileChipEditor, NileCodeEditor, NileDatePickerEditor, NileInputEditor, NileSelectEditor, NumberEditor, NumberFormatter, OUFormatter, PatternValidators, PercentageFormatter, RangeValidator, RegexValidator, RequiredValidator, RowValidationService, SampleDataGeneratorService, SelectEditor, SharedTableComponentsModule, SheetState, SimpleColumnConfig, SmartTableModule, SortDirection, StAddColumnButtonComponent, StCellComponent, StColumnEditorModalComponent, StColumnFilterComponent, StColumnMenuDropdownComponent, StColumnResizeDirective, StColumnVisibilityComponent, StHeaderComponent, StKeyboardNavigationDirective, StPaginationComponent, StRowActionsDropdownComponent, StSheetActionsComponent, StSheetComponent, StTableActionsComponent, StTableComponent, StWorkbookComponent, StringFormatter, TableConfigEditorComponent, TableState, TableZIndex, TemplateFormatter, TextAreaEditor, TextEditor, UrlValidator, ValidationLoggerService, VirtualScrollService, WorkbookState, canEdit, createCellState, createMemento, dnToHumanReadable, isCellValid, isDisplayMode, isNullOrUndefined, isValidDate, isValidationSuccess, mergeTableConfig, registerFormatter, resolveFormatter, restoreFromMemento };
6271
+ export type { AllowedDatesRange, AsyncCellValidator, AutoCompleteOption, AutoCompleteStyle, AutosaveConfig, AutosaveData, AutosaveStrategy, BuilderState, CellCancelEvent, CellChangeEvent, CellEditEvent, CellEditor, CellEditorContext, CellEvent, CellEventHandler, CellFocusPosition, CellFormatter, CellLifecycleHooks, CellParser, CellSaveEvent, CellState, CellStateMemento, CellValidator, CellValue, ChipOption, CodeEditorCompletion, ColumnAction, ColumnActionContext, ColumnActionEvent, ColumnAddEvent, ColumnConfig, ColumnConfigOptions, ColumnConfigWithKey, ColumnFilterEvent, ColumnFilterState, ColumnMoveEvent, ColumnResizeEvent, ColumnSortEvent, ColumnSortState, CompositeValidator, DataChangeEvent, DateRange, ExportOptions, FilterContext, FilterOptions, ImportResult, NileAutoCompleteEditorOptions, NileCalendarEditorOptions, NileChipEditorOptions, NileCodeEditorOptions, NileDatePickerEditorOptions, NileInputEditorOptions, NileSelectEditorOptions, OUFormatterOptions, PaginationState, PartialColumnConfig, RowAction, RowActionContext, RowActionEvent, RowManagementConfig, RowValidationState, SelectOption, SheetAction, SheetActionContext, SheetActionEvent, SheetConfig, SheetMetadata, SheetStateConfig, SheetStateSnapshot, SheetTabAction, SheetTabActionEvent, TableConfig, TableStateChangeEvent, TableStateConfig, TableStateSnapshot, TableValidationState, ValidationError, ValidationLogEntry, ValidationResult, VirtualScrollState, WorkbookAction, WorkbookActionEvent, WorkbookConfig, WorkbookMetadata, WorkbookSheetConfig, WorkbookStateConfig, WorkbookStateSnapshot };