@ohioepa/oepa-ui-lib 2.0.18 → 2.0.20

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.
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { ElementRef, EventEmitter, QueryList } from '@angular/core';
2
2
  import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3
3
  import { OepaAction } from './oepa-action';
4
4
  import { OepaActionEvent } from './oepa-action-event';
@@ -9,6 +9,7 @@ import * as i0 from "@angular/core";
9
9
  export declare class ActionBtnComponent {
10
10
  private sanitizer;
11
11
  busy: boolean;
12
+ actionMenuItems: QueryList<ElementRef<HTMLAnchorElement>>;
12
13
  /** Emits true when dropdown opens, false when closes */
13
14
  dropdownOpenChange: EventEmitter<boolean>;
14
15
  /** Button label */
@@ -33,6 +34,10 @@ export declare class ActionBtnComponent {
33
34
  getID(): string;
34
35
  dropdownOpened(): void;
35
36
  dropdownClosed(): void;
37
+ onToggleKeydown(event: KeyboardEvent): void;
38
+ onMenuKeydown(event: KeyboardEvent): void;
39
+ private getMenuItems;
40
+ private focusFirstOrLastItem;
36
41
  static ɵfac: i0.ɵɵFactoryDeclaration<ActionBtnComponent, never>;
37
42
  static ɵcmp: i0.ɵɵComponentDeclaration<ActionBtnComponent, "oepa-action-btn", never, { "label": { "alias": "label"; "required": false; }; "btnId": { "alias": "btnId"; "required": false; }; "data": { "alias": "data"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "normalSize": { "alias": "normalSize"; "required": false; }; "dropup": { "alias": "dropup"; "required": false; }; }, { "dropdownOpenChange": "dropdownOpenChange"; "actionClicked": "actionClicked"; }, never, never, false, never>;
38
43
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
2
  import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3
3
  import { OepaTable } from './oepa-table';
4
4
  import { OepaTableConfig } from './oepa-table-config';
@@ -18,6 +18,7 @@ import { OepaFileUtilService } from '@ohioepa/oepa-common-lib';
18
18
  import * as i0 from "@angular/core";
19
19
  export declare class TableComponent implements OnInit {
20
20
  private sanitizer;
21
+ private elementRef;
21
22
  private tableService;
22
23
  private tableExportService;
23
24
  private fileUtilService;
@@ -29,7 +30,8 @@ export declare class TableComponent implements OnInit {
29
30
  exportVisibleOnly: boolean | undefined;
30
31
  /** True if any action dropdown is open */
31
32
  isAnyActionDropdownOpen: boolean;
32
- actionDropdownOpenChange: EventEmitter<boolean>;
33
+ /** Dynamic spacer height used to avoid clipping inside expansion panels */
34
+ actionFillerHeight: number;
33
35
  dataColumns: Array<OepaTableColumn>;
34
36
  hiddenColumns: Array<OepaTableColumn>;
35
37
  columnHeaders: Array<string>;
@@ -43,6 +45,7 @@ export declare class TableComponent implements OnInit {
43
45
  currentPage: number;
44
46
  paginationOn: boolean;
45
47
  tableId: string;
48
+ addActionFiller: boolean;
46
49
  set config(conf: OepaTableConfig);
47
50
  get config(): OepaTableConfig;
48
51
  set complexHeader(hdrs: Array<OepaTableHeader>);
@@ -57,11 +60,12 @@ export declare class TableComponent implements OnInit {
57
60
  private resetHeaders;
58
61
  /** Called when any oepa-action-btn dropdown open/close changes */
59
62
  onDropdownOpenChange(isOpen: boolean): void;
63
+ private updateDropdownFillerState;
60
64
  private initializeHiddenColumns;
61
65
  set data(values: Array<OepaTableRow>);
62
66
  get data(): Array<OepaTableRow>;
63
67
  totalRow: OepaTableRow | undefined;
64
- constructor(sanitizer: DomSanitizer, tableService: TableService, tableExportService: TableExportService, fileUtilService: OepaFileUtilService);
68
+ constructor(sanitizer: DomSanitizer, elementRef: ElementRef<HTMLElement>, tableService: TableService, tableExportService: TableExportService, fileUtilService: OepaFileUtilService);
65
69
  ngOnInit(): void;
66
70
  private extractInnerColumns;
67
71
  private extractColumnHeaders;
@@ -145,5 +149,5 @@ export declare class TableComponent implements OnInit {
145
149
  exportToHTML(): void;
146
150
  onCustomBtnClick(): void;
147
151
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
148
- static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "oepa-table", never, { "tableId": { "alias": "tableId"; "required": false; }; "config": { "alias": "config"; "required": false; }; "complexHeader": { "alias": "complexHeader"; "required": false; }; "header": { "alias": "header"; "required": false; }; "customBtnLabel": { "alias": "customBtnLabel"; "required": false; }; "customBtnVisible": { "alias": "customBtnVisible"; "required": false; }; "customBtnEnabled": { "alias": "customBtnEnabled"; "required": false; }; "data": { "alias": "data"; "required": false; }; "totalRow": { "alias": "totalRow"; "required": false; }; }, { "actionDropdownOpenChange": "actionDropdownOpenChange"; "cellClicked": "cellClicked"; "actionClicked": "actionClicked"; "rowSelected": "rowSelected"; "customBtnClicked": "customBtnClicked"; }, never, never, false, never>;
152
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "oepa-table", never, { "tableId": { "alias": "tableId"; "required": false; }; "addActionFiller": { "alias": "addActionFiller"; "required": false; }; "config": { "alias": "config"; "required": false; }; "complexHeader": { "alias": "complexHeader"; "required": false; }; "header": { "alias": "header"; "required": false; }; "customBtnLabel": { "alias": "customBtnLabel"; "required": false; }; "customBtnVisible": { "alias": "customBtnVisible"; "required": false; }; "customBtnEnabled": { "alias": "customBtnEnabled"; "required": false; }; "data": { "alias": "data"; "required": false; }; "totalRow": { "alias": "totalRow"; "required": false; }; }, { "cellClicked": "cellClicked"; "actionClicked": "actionClicked"; "rowSelected": "rowSelected"; "customBtnClicked": "customBtnClicked"; }, never, never, false, never>;
149
153
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohioepa/oepa-ui-lib",
3
- "version": "2.0.18",
3
+ "version": "2.0.20",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.13",
6
6
  "@angular/core": "^18.2.13"
Binary file