@softheon/armature 17.12.7 → 17.13.1

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.
Files changed (28) hide show
  1. package/ag-grid-components/src/sof-table/sof-table.component.d.ts +25 -23
  2. package/assets/styles/_variables.scss +3 -0
  3. package/assets/styles/sof-styles.scss +6 -2
  4. package/esm2022/ag-grid-components/src/sof-table/sof-table.component.mjs +41 -33
  5. package/esm2022/lib/base-components/sof-utility-button/sof-utility-button.component.mjs +4 -10
  6. package/esm2022/lib/core/components/app-template/app-template.component.mjs +1 -1
  7. package/esm2022/lib/core/models/base-config.mjs +1 -1
  8. package/esm2022/lib/core/models/nav-panel-config.mjs +2 -0
  9. package/esm2022/lib/navigation/components/{side-navigation → navigation}/navigation.component.mjs +1 -1
  10. package/esm2022/lib/navigation/components/sof-navigation-panel/models/nav-panel-nodes.mjs +2 -0
  11. package/esm2022/lib/navigation/components/sof-navigation-panel/models/nav-panel-settings.mjs +2 -0
  12. package/esm2022/lib/navigation/components/sof-navigation-panel/sof-nav-panel.component.mjs +136 -0
  13. package/esm2022/lib/navigation/navigation-api.mjs +5 -2
  14. package/esm2022/lib/navigation/navigation.module.mjs +2 -2
  15. package/fesm2022/softheon-armature-ag-grid-components.mjs +41 -33
  16. package/fesm2022/softheon-armature-ag-grid-components.mjs.map +1 -1
  17. package/fesm2022/softheon-armature.mjs +126 -12
  18. package/fesm2022/softheon-armature.mjs.map +1 -1
  19. package/lib/base-components/sof-utility-button/sof-utility-button.component.d.ts +2 -9
  20. package/lib/core/models/base-config.d.ts +5 -0
  21. package/lib/core/models/nav-panel-config.d.ts +17 -0
  22. package/lib/navigation/components/sof-navigation-panel/models/nav-panel-nodes.d.ts +99 -0
  23. package/lib/navigation/components/sof-navigation-panel/models/nav-panel-settings.d.ts +26 -0
  24. package/lib/navigation/components/sof-navigation-panel/sof-nav-panel.component.d.ts +82 -0
  25. package/lib/navigation/navigation-api.d.ts +4 -1
  26. package/lib/navigation/navigation.module.d.ts +1 -1
  27. package/package.json +1 -1
  28. /package/lib/navigation/components/{side-navigation → navigation}/navigation.component.d.ts +0 -0
@@ -1,23 +1,24 @@
1
- import { AfterViewInit, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
- import { PageEvent } from '@angular/material/paginator';
3
- import { ColDef, GridApi, GridReadyEvent, PaginationChangedEvent } from "ag-grid-community";
1
+ import { ElementRef, OnChanges, OnInit, SimpleChanges, WritableSignal } from '@angular/core';
2
+ import { ColDef, GridReadyEvent, PaginationChangedEvent } from "ag-grid-community";
4
3
  import * as i0 from "@angular/core";
5
4
  /** The Softheon Armature Table component */
6
- export declare class SofTableComponent implements OnInit, OnChanges, AfterViewInit {
5
+ export declare class SofTableComponent implements OnInit, OnChanges {
7
6
  /** The language text or a key that will be shown in this component */
8
7
  rowData: any[];
9
8
  /** Column Definitions: Defines & controls grid columns. */
10
9
  colDefs: ColDef[];
11
10
  /** Size modes for table */
12
- sizeMode: 'Compact' | 'Roomy' | 'Default';
11
+ private sizeMode;
13
12
  /** Pages sizes */
14
- paginationPageSizeSelector: number[];
13
+ paginationPageSizeSelector: Array<number>;
15
14
  /** Enable search */
16
15
  enableSearch: boolean;
17
16
  /** Enable custom text filter dropdowns */
18
17
  enableFilter: boolean;
19
18
  /** Enable Checkbox selection */
20
- enableCheckboxSelection: boolean;
19
+ private enableCheckboxSelection;
20
+ /** the search input */
21
+ gridSearchTextInput: ElementRef<HTMLInputElement>;
21
22
  /** Column names that should be filterable */
22
23
  colFilters: SofTableFilter[];
23
24
  /** Show filter */
@@ -27,13 +28,11 @@ export declare class SofTableComponent implements OnInit, OnChanges, AfterViewIn
27
28
  /** Current Page Index */
28
29
  currentPage: number;
29
30
  /** Grid API */
30
- gridApi: GridApi;
31
- /**Page Event from Paginator */
32
- pageEvent: PageEvent;
31
+ private gridApi;
32
+ /** Is the table ready to be displayed */
33
+ isGridDataRendered: WritableSignal<boolean>;
33
34
  /** Default Page Size */
34
35
  paginationPageSize: number;
35
- /** Current Page size selector */
36
- currentPageSizeSelector: string;
37
36
  /** Tool tip show delay */
38
37
  tooltipShowDelay: number;
39
38
  /** Default Column Definition */
@@ -54,32 +53,35 @@ export declare class SofTableComponent implements OnInit, OnChanges, AfterViewIn
54
53
  filterOpenState: boolean;
55
54
  /** The list of filters and the selected values */
56
55
  filterSelections: string[][];
57
- constructor();
58
56
  /** On component init */
59
57
  ngOnInit(): void;
60
- /** Actions to take once view is initialized */
61
- ngAfterViewInit(): void;
62
58
  /**
63
59
  * Angular On Changes
64
60
  * @param changes The input changes
65
61
  */
66
62
  ngOnChanges(changes: SimpleChanges): void;
67
- /**
68
- * On page selection change
69
- * @param value The selected page number
70
- */
71
- onChange(value: any): void;
72
63
  /**
73
64
  * Called when the grid has ingested the input data
74
- * @param params Grid Ready Event
65
+ * @param params Grid Ready Event,
66
+ * The grid has initialized and is ready for most api calls, but may not be fully rendered yet.
67
+ * @note you can not access this.gridApi before this function is run,
68
+ * any attempts to access this.gridApi in this components ngOnInit or the first ngOnChanges cycle
69
+ * will result in a type error; being this.gridApi is undefined at that time.
75
70
  */
76
71
  onGridReady(params: GridReadyEvent): void;
72
+ /** Fired the first time data is rendered into the grid. */
73
+ onFirstDataRendered(): void;
74
+ /**
75
+ * On page selection change
76
+ * @param value The selected page number
77
+ */
78
+ onChange(value: number): void;
77
79
  /** On next page event */
78
80
  nextPage(): void;
79
81
  /** On Previous Page Event */
80
82
  previousPage(): void;
81
83
  /** Resize grid from size mode */
82
- resizeGrid(): void;
84
+ private resizeGrid;
83
85
  /**
84
86
  * On Change Page Size Event
85
87
  * @param event The pagination event
@@ -88,7 +90,7 @@ export declare class SofTableComponent implements OnInit, OnChanges, AfterViewIn
88
90
  /** Called when the grid filter is changed */
89
91
  onFilterChanged(): void;
90
92
  /** Generated text for showing pages in format: 1-11 of 11 */
91
- handlePageChangeText(): void;
93
+ private handlePageChangeText;
92
94
  /**
93
95
  * Apply the search filter on data when search text changed
94
96
  */
@@ -26,4 +26,7 @@ $surface-color-default-light: #FFFFFF;
26
26
  $surface-color-level-one-light: #FAFAFA;
27
27
  $surface-color-level-two-light: #F5F5F5;
28
28
  $surface-color-level-three-light: #E9E9E9;
29
+
29
30
  $surface-color-inverse-light: #333333;
31
+ $surface-color-inverse-level-one-light: #424242;
32
+ $surface-color-inverse-level-two-light: #515151;
@@ -1922,7 +1922,6 @@ mat-card {
1922
1922
  }
1923
1923
  &.below {
1924
1924
  overflow: initial;
1925
- margin-top: 0.75rem;
1926
1925
  &:after {
1927
1926
  top: -0.5rem;
1928
1927
  right: calc(50% - 0.3rem);
@@ -1936,7 +1935,7 @@ mat-card {
1936
1935
 
1937
1936
  &.above {
1938
1937
  overflow: initial;
1939
- margin-bottom: 0.75rem;
1938
+ margin-bottom: 1.25rem;
1940
1939
  &:after {
1941
1940
  bottom: -0.5rem;
1942
1941
  right: calc(50% - 0.3rem);
@@ -1978,6 +1977,11 @@ mat-card {
1978
1977
  }
1979
1978
  }
1980
1979
 
1980
+ ::ng-deep .cdk-overlay-container .cdk-overlay-pane {
1981
+ &.mat-mdc-tooltip-panel {
1982
+ transform: none !important;
1983
+ }
1984
+ }
1981
1985
 
1982
1986
  .mat-mdc-chip {
1983
1987
  font-style: normal !important;