@aquera/ngx-smart-table 0.0.33 → 0.0.36

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.33",
3
+ "version": "0.0.36",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -4835,6 +4835,7 @@ declare class StTableComponent implements OnInit, OnChanges, OnDestroy, AfterVie
4835
4835
  readonly columnResized: _angular_core.OutputEmitterRef<ColumnResizeEvent>;
4836
4836
  readonly columnMoved: _angular_core.OutputEmitterRef<ColumnMoveEvent>;
4837
4837
  readonly configValidationErrors: _angular_core.OutputEmitterRef<SchemaValidationError[]>;
4838
+ readonly addColumnClicked: _angular_core.OutputEmitterRef<void>;
4838
4839
  readonly columnAdded: _angular_core.OutputEmitterRef<ColumnAddEvent>;
4839
4840
  readonly rowAction: _angular_core.OutputEmitterRef<RowActionEvent>;
4840
4841
  readonly validationStateChange: _angular_core.OutputEmitterRef<TableValidationState>;
@@ -4862,6 +4863,12 @@ declare class StTableComponent implements OnInit, OnChanges, OnDestroy, AfterVie
4862
4863
  triggerTop?: number;
4863
4864
  }>;
4864
4865
  readonly columnMenuContext: _angular_core.WritableSignal<ColumnActionContext | null>;
4866
+ readonly tableActionsMenuIsOpen: _angular_core.WritableSignal<boolean>;
4867
+ readonly tableActionsMenuPosition: _angular_core.WritableSignal<{
4868
+ x: number;
4869
+ y: number;
4870
+ }>;
4871
+ readonly tableActionsMenuView: _angular_core.WritableSignal<"main" | "columns">;
4865
4872
  readonly virtualScrollState: _angular_core.WritableSignal<VirtualScrollState | null>;
4866
4873
  readonly virtualScrollTotalHeight: _angular_core.Signal<number>;
4867
4874
  readonly virtualScrollOffsetY: _angular_core.Signal<number>;
@@ -4945,6 +4952,22 @@ declare class StTableComponent implements OnInit, OnChanges, OnDestroy, AfterVie
4945
4952
  showBottomPagination(): boolean;
4946
4953
  private validateConfiguration;
4947
4954
  onAddColumnClick(): void;
4955
+ onTableActionsButtonClick(position: {
4956
+ x: number;
4957
+ y: number;
4958
+ }): void;
4959
+ closeTableActionsMenu(): void;
4960
+ onTableActionsAddColumn(): void;
4961
+ openTableActionsColumnsView(): void;
4962
+ backToTableActionsMain(): void;
4963
+ onTableActionsToggleColumn(columnKey: string, event: Event): void;
4964
+ getTableActionsColumnsVisibility(): {
4965
+ key: string;
4966
+ header: string;
4967
+ visible: boolean;
4968
+ hideable: boolean;
4969
+ }[];
4970
+ tableActionsDropdownStyle(): Record<string, string | number>;
4948
4971
  onColumnCreated(column: ColumnConfig): void;
4949
4972
  onModalCancelled(): void;
4950
4973
  isVirtualScrollEnabled(): boolean;
@@ -4973,6 +4996,9 @@ declare class StTableComponent implements OnInit, OnChanges, OnDestroy, AfterVie
4973
4996
  private focusNextOutsideTable;
4974
4997
  /** Move focus to the last focusable element before the table host. */
4975
4998
  private focusPrevOutsideTable;
4999
+ private getFocusableOutsideTable;
5000
+ /** focus() can still no-op (inert ancestors, shadow hosts) — walk candidates until one takes focus. */
5001
+ private focusFirstThatTakesFocus;
4976
5002
  openColumnMenuFromKeyboard(columnIndex: number, isFirst: boolean, isLast: boolean): void;
4977
5003
  openColumnMenu(event: MouseEvent, column: ColumnConfig<any>, columnIndex: number, isFirst: boolean, isLast: boolean): void;
4978
5004
  closeColumnMenu(): void;
@@ -5074,7 +5100,7 @@ declare class StTableComponent implements OnInit, OnChanges, OnDestroy, AfterVie
5074
5100
  onDocumentClick(event: MouseEvent): void;
5075
5101
  ngOnDestroy(): void;
5076
5102
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<StTableComponent, never>;
5077
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<StTableComponent, "st-table", never, { "tableConfig": { "alias": "tableConfig"; "required": true; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "data$": { "alias": "data$"; "required": false; "isSignal": true; }; "tableState": { "alias": "tableState"; "required": false; "isSignal": true; }; "enableSorting": { "alias": "enableSorting"; "required": false; "isSignal": true; }; "enableFiltering": { "alias": "enableFiltering"; "required": false; "isSignal": true; }; "validateConfig": { "alias": "validateConfig"; "required": false; "isSignal": true; }; }, { "stateChange": "stateChange"; "dataChange": "dataChange"; "cellEdit": "cellEdit"; "cellSave": "cellSave"; "cellCancel": "cellCancel"; "cellChange": "cellChange"; "columnResized": "columnResized"; "columnMoved": "columnMoved"; "configValidationErrors": "configValidationErrors"; "columnAdded": "columnAdded"; "rowAction": "rowAction"; "validationStateChange": "validationStateChange"; "requestAddRow": "requestAddRow"; "requestFocusTabs": "requestFocusTabs"; }, never, never, true, never>;
5103
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<StTableComponent, "st-table", never, { "tableConfig": { "alias": "tableConfig"; "required": true; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "data$": { "alias": "data$"; "required": false; "isSignal": true; }; "tableState": { "alias": "tableState"; "required": false; "isSignal": true; }; "enableSorting": { "alias": "enableSorting"; "required": false; "isSignal": true; }; "enableFiltering": { "alias": "enableFiltering"; "required": false; "isSignal": true; }; "validateConfig": { "alias": "validateConfig"; "required": false; "isSignal": true; }; }, { "stateChange": "stateChange"; "dataChange": "dataChange"; "cellEdit": "cellEdit"; "cellSave": "cellSave"; "cellCancel": "cellCancel"; "cellChange": "cellChange"; "columnResized": "columnResized"; "columnMoved": "columnMoved"; "configValidationErrors": "configValidationErrors"; "addColumnClicked": "addColumnClicked"; "columnAdded": "columnAdded"; "rowAction": "rowAction"; "validationStateChange": "validationStateChange"; "requestAddRow": "requestAddRow"; "requestFocusTabs": "requestFocusTabs"; }, never, never, true, never>;
5078
5104
  }
5079
5105
 
5080
5106
  /**
@@ -5589,78 +5615,15 @@ declare class StColumnEditorModalComponent implements OnInit, OnDestroy {
5589
5615
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<StColumnEditorModalComponent, "st-column-editor-modal", never, {}, { "columnCreated": "columnCreated"; "cancelled": "cancelled"; }, never, never, true, never>;
5590
5616
  }
5591
5617
 
5592
- type MenuView = 'main' | 'columns';
5593
- declare class StTableActionsComponent implements OnInit, OnDestroy {
5594
- tableState: TableState;
5595
- allowAddColumn: boolean;
5596
- addColumnClicked: EventEmitter<void>;
5597
- isOpen: boolean;
5598
- currentView: MenuView;
5599
- columnsVisibility: {
5600
- key: string;
5601
- header: string;
5602
- visible: boolean;
5603
- hideable: boolean;
5604
- }[];
5605
- /**
5606
- * Dropdown positioning style
5607
- */
5608
- dropdownStyle: any;
5609
- private stateSubscription?;
5610
- constructor();
5611
- ngOnInit(): void;
5612
- ngOnDestroy(): void;
5613
- /**
5614
- * Update columns visibility list from current table state
5615
- */
5616
- private updateColumnsVisibility;
5617
- /**
5618
- * Subscribe to table state changes
5619
- */
5620
- private subscribeToStateChanges;
5621
- /**
5622
- * Toggle menu open/close
5623
- */
5624
- toggleMenu(event: Event): void;
5625
- /**
5626
- * Update dropdown position based on trigger button
5627
- */
5628
- private updateDropdownPosition;
5629
- /**
5630
- * Close menu
5631
- */
5632
- closeMenu(): void;
5633
- /**
5634
- * Handle add column action
5635
- */
5636
- onAddColumn(event: Event): void;
5637
- /**
5638
- * Open column visibility submenu
5639
- */
5640
- openColumnsSubmenu(event: Event): void;
5641
- /**
5642
- * Go back to main menu
5643
- */
5644
- backToMain(event: Event): void;
5645
- /**
5646
- * Toggle column visibility
5647
- */
5648
- onToggleColumn(columnKey: string, event: Event): void;
5649
- /**
5650
- * Check if column is visible
5651
- */
5652
- isColumnVisible(columnKey: string): boolean;
5653
- /**
5654
- * Check if column is hideable
5655
- */
5656
- isColumnHideable(column: {
5657
- key: string;
5658
- header: string;
5659
- visible: boolean;
5660
- hideable: boolean;
5661
- }): boolean;
5618
+ declare class StTableActionsComponent {
5619
+ isMenuOpen: boolean;
5620
+ menuButtonClicked: EventEmitter<{
5621
+ x: number;
5622
+ y: number;
5623
+ }>;
5624
+ onButtonClick(event: MouseEvent): void;
5662
5625
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<StTableActionsComponent, never>;
5663
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<StTableActionsComponent, "st-table-actions", never, { "tableState": { "alias": "tableState"; "required": false; }; "allowAddColumn": { "alias": "allowAddColumn"; "required": false; }; }, { "addColumnClicked": "addColumnClicked"; }, never, never, true, never>;
5626
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<StTableActionsComponent, "st-table-actions", never, { "isMenuOpen": { "alias": "isMenuOpen"; "required": false; }; }, { "menuButtonClicked": "menuButtonClicked"; }, never, never, true, never>;
5664
5627
  }
5665
5628
 
5666
5629
  declare class StRowActionsDropdownComponent implements OnChanges {