@enigmatry/entry-components 1.15.1-preview.9 → 15.0.0-preview

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 (207) hide show
  1. package/README.md +2 -1
  2. package/assets/fonts/Montserrat/Montserrat-bold.eot +0 -0
  3. package/assets/fonts/Montserrat/Montserrat-bold.ttf +0 -0
  4. package/assets/fonts/Montserrat/Montserrat-bold.woff +0 -0
  5. package/assets/fonts/Montserrat/Montserrat-bold.woff2 +0 -0
  6. package/assets/fonts/OpenSans/OpenSans-bold.eot +0 -0
  7. package/assets/fonts/OpenSans/OpenSans-bold.ttf +0 -0
  8. package/assets/fonts/OpenSans/OpenSans-bold.woff +0 -0
  9. package/assets/fonts/OpenSans/OpenSans-bold.woff2 +0 -0
  10. package/assets/fonts/OpenSans/OpenSans-normal.eot +0 -0
  11. package/assets/fonts/OpenSans/OpenSans-normal.ttf +0 -0
  12. package/assets/fonts/OpenSans/OpenSans-normal.woff +0 -0
  13. package/assets/fonts/OpenSans/OpenSans-normal.woff2 +0 -0
  14. package/assets/fonts/Roboto/Roboto-bold.woff2 +0 -0
  15. package/assets/fonts/Roboto/Roboto-normal.woff2 +0 -0
  16. package/button/README.md +47 -0
  17. package/button/entry-button-config.d.ts +26 -0
  18. package/button/entry-button.directive.d.ts +18 -0
  19. package/button/entry-button.module.d.ts +9 -0
  20. package/{header → button}/index.d.ts +1 -1
  21. package/button/public-api.d.ts +3 -0
  22. package/dialog/README.md +2 -2
  23. package/dialog/entry-dialog-buttons-alignment.type.d.ts +1 -1
  24. package/dialog/entry-dialog-config.model.d.ts +1 -1
  25. package/dialog/entry-dialog.module.d.ts +4 -1
  26. package/esm2020/{header/enigmatry-entry-components-header.mjs → button/enigmatry-entry-components-button.mjs} +1 -1
  27. package/esm2020/button/entry-button-config.mjs +22 -0
  28. package/esm2020/button/entry-button.directive.mjs +56 -0
  29. package/esm2020/button/entry-button.module.mjs +28 -0
  30. package/esm2020/button/public-api.mjs +4 -0
  31. package/esm2020/dialog/dialogs/entry-dialog.component.mjs +8 -5
  32. package/esm2020/dialog/entry-dialog-buttons-alignment.type.mjs +1 -2
  33. package/esm2020/dialog/entry-dialog-config.model.mjs +3 -3
  34. package/esm2020/dialog/entry-dialog.module.mjs +16 -4
  35. package/esm2020/file-input/enigmatry-entry-components-file-input.mjs +5 -0
  36. package/esm2020/file-input/entry-file-input.component.mjs +197 -0
  37. package/esm2020/file-input/entry-file-input.module.mjs +40 -0
  38. package/esm2020/file-input/public-api.mjs +3 -0
  39. package/esm2020/permissions/enigmatry-entry-components-permissions.mjs +5 -0
  40. package/esm2020/permissions/permission-type.mjs +2 -0
  41. package/esm2020/permissions/permission.directive.mjs +35 -0
  42. package/esm2020/permissions/permission.guard.mjs +14 -0
  43. package/esm2020/permissions/permission.module.mjs +29 -0
  44. package/esm2020/permissions/permission.pipe.mjs +20 -0
  45. package/esm2020/permissions/permission.service.mjs +3 -0
  46. package/esm2020/permissions/public-api.mjs +6 -0
  47. package/esm2020/public-api.mjs +4 -3
  48. package/esm2020/search-filter/entry-search-filter.component.mjs +8 -6
  49. package/esm2020/search-filter/entry-search-filter.module.mjs +12 -4
  50. package/esm2020/search-filter/search-filter-input/search-filter-input.component.mjs +9 -4
  51. package/esm2020/table/components/entry-cell/entry-cell.component.mjs +23 -0
  52. package/esm2020/table/components/entry-cell-context-menu/entry-cell-context-menu.component.mjs +33 -0
  53. package/esm2020/table/components/entry-cell-formatted-value/entry-cell-formatted-value.component.mjs +25 -0
  54. package/esm2020/table/components/entry-table/entry-table.component.mjs +248 -0
  55. package/esm2020/table/components/index.mjs +5 -0
  56. package/esm2020/table/enigmatry-entry-components-table.mjs +5 -0
  57. package/esm2020/table/entry-table.module.mjs +84 -0
  58. package/esm2020/table/interfaces/cell-template.mjs +2 -0
  59. package/esm2020/table/interfaces/column-def.mjs +2 -0
  60. package/esm2020/table/interfaces/column-sort-prop.mjs +2 -0
  61. package/esm2020/table/interfaces/column-type-parameter.mjs +2 -0
  62. package/esm2020/table/interfaces/column-type.mjs +2 -0
  63. package/esm2020/table/interfaces/context-menu-item.mjs +2 -0
  64. package/esm2020/table/interfaces/entry-table-config.mjs +18 -0
  65. package/esm2020/table/interfaces/index.mjs +13 -0
  66. package/esm2020/table/interfaces/paged-query.mjs +34 -0
  67. package/esm2020/table/interfaces/pagination.mjs +2 -0
  68. package/esm2020/table/interfaces/row-class-formatter.mjs +2 -0
  69. package/esm2020/table/interfaces/row-context-menu-formatter.mjs +2 -0
  70. package/esm2020/table/interfaces/row-selection-formatter.mjs +2 -0
  71. package/esm2020/table/public-api.mjs +4 -0
  72. package/esm2020/validation/entry-form-errors.component.mjs +7 -3
  73. package/fesm2015/enigmatry-entry-components-button.mjs +110 -0
  74. package/fesm2015/enigmatry-entry-components-button.mjs.map +1 -0
  75. package/fesm2015/enigmatry-entry-components-dialog.mjs +22 -7
  76. package/fesm2015/enigmatry-entry-components-dialog.mjs.map +1 -1
  77. package/fesm2015/enigmatry-entry-components-file-input.mjs +237 -0
  78. package/fesm2015/enigmatry-entry-components-file-input.mjs.map +1 -0
  79. package/fesm2015/enigmatry-entry-components-permissions.mjs +98 -0
  80. package/fesm2015/enigmatry-entry-components-permissions.mjs.map +1 -0
  81. package/fesm2015/enigmatry-entry-components-search-filter.mjs +24 -9
  82. package/fesm2015/enigmatry-entry-components-search-filter.mjs.map +1 -1
  83. package/fesm2015/enigmatry-entry-components-table.mjs +459 -0
  84. package/fesm2015/enigmatry-entry-components-table.mjs.map +1 -0
  85. package/fesm2015/enigmatry-entry-components-validation.mjs +6 -2
  86. package/fesm2015/enigmatry-entry-components-validation.mjs.map +1 -1
  87. package/fesm2015/enigmatry-entry-components.mjs +3 -2
  88. package/fesm2015/enigmatry-entry-components.mjs.map +1 -1
  89. package/fesm2020/enigmatry-entry-components-button.mjs +107 -0
  90. package/fesm2020/enigmatry-entry-components-button.mjs.map +1 -0
  91. package/fesm2020/enigmatry-entry-components-dialog.mjs +22 -7
  92. package/fesm2020/enigmatry-entry-components-dialog.mjs.map +1 -1
  93. package/fesm2020/enigmatry-entry-components-file-input.mjs +240 -0
  94. package/fesm2020/enigmatry-entry-components-file-input.mjs.map +1 -0
  95. package/fesm2020/enigmatry-entry-components-permissions.mjs +97 -0
  96. package/fesm2020/enigmatry-entry-components-permissions.mjs.map +1 -0
  97. package/fesm2020/enigmatry-entry-components-search-filter.mjs +24 -9
  98. package/fesm2020/enigmatry-entry-components-search-filter.mjs.map +1 -1
  99. package/fesm2020/enigmatry-entry-components-table.mjs +450 -0
  100. package/fesm2020/enigmatry-entry-components-table.mjs.map +1 -0
  101. package/fesm2020/enigmatry-entry-components-validation.mjs +6 -2
  102. package/fesm2020/enigmatry-entry-components-validation.mjs.map +1 -1
  103. package/fesm2020/enigmatry-entry-components.mjs +3 -2
  104. package/fesm2020/enigmatry-entry-components.mjs.map +1 -1
  105. package/file-input/README.md +71 -0
  106. package/file-input/entry-file-input.component.d.ts +74 -0
  107. package/file-input/entry-file-input.module.d.ts +12 -0
  108. package/file-input/index.d.ts +5 -0
  109. package/file-input/public-api.d.ts +2 -0
  110. package/package.json +31 -15
  111. package/permissions/README.md +68 -0
  112. package/permissions/index.d.ts +5 -0
  113. package/permissions/permission-type.d.ts +3 -0
  114. package/permissions/permission.directive.d.ts +11 -0
  115. package/permissions/permission.guard.d.ts +2 -0
  116. package/permissions/permission.module.d.ts +9 -0
  117. package/permissions/permission.pipe.d.ts +11 -0
  118. package/permissions/permission.service.d.ts +4 -0
  119. package/permissions/public-api.d.ts +5 -0
  120. package/public-api.d.ts +3 -2
  121. package/search-filter/entry-search-filter.module.d.ts +4 -2
  122. package/search-filter/search-filter-input/search-filter-input.component.d.ts +4 -2
  123. package/styles/_generator.scss +15 -10
  124. package/styles/modules/_default-theme.scss +36 -59
  125. package/styles/modules/components/buttons/_generator.scss +8 -0
  126. package/styles/modules/components/dialogs/_generator.scss +8 -3
  127. package/styles/modules/components/forms/_generator.scss +12 -6
  128. package/styles/modules/components/inputs/_generator.scss +15 -0
  129. package/styles/modules/components/search-filter/_generator.scss +15 -0
  130. package/styles/modules/components/tables/_cells.scss +11 -8
  131. package/styles/modules/components/tables/_no-result.scss +1 -3
  132. package/styles/modules/components/tables/_rows.scss +10 -40
  133. package/styles/modules/components/tables/_sorting.scss +2 -9
  134. package/styles/modules/typography/_fonts.scss +35 -42
  135. package/styles/modules/vendors/angular-material/_generator.scss +46 -0
  136. package/styles/modules/vendors/angular-material/_palette-generator.scss +32 -0
  137. package/styles/modules/vendors/angular-material/_typography-generator.scss +101 -0
  138. package/styles/partials/core/components/_index.scss +3 -3
  139. package/styles/partials/core/components/dialogs/_general.scss +10 -64
  140. package/styles/partials/core/components/forms/_general.scss +9 -13
  141. package/styles/partials/core/components/search-filter/_general.scss +9 -0
  142. package/styles/partials/core/components/tables/_general.scss +17 -0
  143. package/styles/partials/generator-test.scss +38 -0
  144. package/table/README.md +76 -0
  145. package/table/components/entry-cell/entry-cell.component.d.ts +10 -0
  146. package/table/components/entry-cell-context-menu/entry-cell-context-menu.component.d.ts +14 -0
  147. package/table/components/entry-cell-formatted-value/entry-cell-formatted-value.component.d.ts +10 -0
  148. package/table/components/entry-table/entry-table.component.d.ts +81 -0
  149. package/table/components/index.d.ts +4 -0
  150. package/table/entry-table.module.d.ts +20 -0
  151. package/{toolbar → table}/index.d.ts +1 -1
  152. package/table/interfaces/cell-template.d.ts +4 -0
  153. package/table/interfaces/column-def.d.ts +20 -0
  154. package/table/interfaces/column-sort-prop.d.ts +5 -0
  155. package/table/interfaces/column-type-parameter.d.ts +9 -0
  156. package/table/interfaces/column-type.d.ts +1 -0
  157. package/table/interfaces/context-menu-item.d.ts +6 -0
  158. package/table/interfaces/entry-table-config.d.ts +11 -0
  159. package/table/interfaces/index.d.ts +12 -0
  160. package/table/interfaces/paged-query.d.ts +14 -0
  161. package/table/interfaces/pagination.d.ts +19 -0
  162. package/table/interfaces/row-class-formatter.d.ts +3 -0
  163. package/table/interfaces/row-context-menu-formatter.d.ts +4 -0
  164. package/table/interfaces/row-selection-formatter.d.ts +4 -0
  165. package/table/public-api.d.ts +3 -0
  166. package/esm2020/header/entry-header.component.mjs +0 -13
  167. package/esm2020/header/entry-header.module.mjs +0 -24
  168. package/esm2020/header/public-api.mjs +0 -3
  169. package/esm2020/toolbar/enigmatry-entry-components-toolbar.mjs +0 -5
  170. package/esm2020/toolbar/entry-toolbar.component.mjs +0 -43
  171. package/esm2020/toolbar/entry-toolbar.module.mjs +0 -24
  172. package/esm2020/toolbar/public-api.mjs +0 -3
  173. package/fesm2015/enigmatry-entry-components-header.mjs +0 -41
  174. package/fesm2015/enigmatry-entry-components-header.mjs.map +0 -1
  175. package/fesm2015/enigmatry-entry-components-toolbar.mjs +0 -71
  176. package/fesm2015/enigmatry-entry-components-toolbar.mjs.map +0 -1
  177. package/fesm2020/enigmatry-entry-components-header.mjs +0 -41
  178. package/fesm2020/enigmatry-entry-components-header.mjs.map +0 -1
  179. package/fesm2020/enigmatry-entry-components-toolbar.mjs +0 -71
  180. package/fesm2020/enigmatry-entry-components-toolbar.mjs.map +0 -1
  181. package/header/README.md +0 -41
  182. package/header/entry-header.component.d.ts +0 -6
  183. package/header/entry-header.module.d.ts +0 -8
  184. package/header/public-api.d.ts +0 -2
  185. package/styles/modules/components/forms/outlines/_field-outlines.scss +0 -45
  186. package/styles/modules/components/forms/outlines/_form-fields.scss +0 -26
  187. package/styles/modules/components/forms/outlines/_general.scss +0 -9
  188. package/styles/modules/components/forms/selectors/_checkboxes.scss +0 -55
  189. package/styles/modules/components/forms/selectors/_radio-buttons.scss +0 -39
  190. package/styles/modules/components/headers/_generator.scss +0 -12
  191. package/styles/modules/elements/_generator.scss +0 -20
  192. package/styles/modules/elements/anchors/_generator.scss +0 -16
  193. package/styles/modules/elements/buttons/_default.scss +0 -12
  194. package/styles/modules/elements/buttons/_generator.scss +0 -45
  195. package/styles/modules/states/_hover.scss +0 -18
  196. package/styles/partials/core/components/headers/_general.scss +0 -7
  197. package/styles/partials/core/components/tables/_action-cells.scss +0 -26
  198. package/styles/partials/core/components/tables/_cells.scss +0 -39
  199. package/styles/partials/core/components/tables/_index.scss +0 -5
  200. package/styles/partials/core/components/tables/_layout.scss +0 -47
  201. package/styles/partials/core/components/tables/_rows.scss +0 -13
  202. package/styles/partials/core/components/tables/_sorting.scss +0 -8
  203. package/styles/partials/test.scss +0 -35
  204. package/toolbar/README.md +0 -39
  205. package/toolbar/entry-toolbar.component.d.ts +0 -28
  206. package/toolbar/entry-toolbar.module.d.ts +0 -8
  207. package/toolbar/public-api.d.ts +0 -2
@@ -0,0 +1,459 @@
1
+ import * as i4$1 from '@angular/material/paginator';
2
+ import { MatPaginatorModule } from '@angular/material/paginator';
3
+ export { PageEvent } from '@angular/material/paginator';
4
+ import * as i0 from '@angular/core';
5
+ import { InjectionToken, Component, ChangeDetectionStrategy, Inject, Input, EventEmitter, Output, TemplateRef, HostBinding, NgModule } from '@angular/core';
6
+ import { SelectionModel } from '@angular/cdk/collections';
7
+ import * as i2$1 from '@angular/material/table';
8
+ import { MatTableDataSource, MatTableModule } from '@angular/material/table';
9
+ import * as i1 from '@angular/common';
10
+ import { CommonModule } from '@angular/common';
11
+ import * as i3$1 from '@angular/material/sort';
12
+ import { MatSortModule } from '@angular/material/sort';
13
+ import * as i5 from '@angular/material/checkbox';
14
+ import { MatCheckboxModule } from '@angular/material/checkbox';
15
+ import * as i6 from '@angular/material/radio';
16
+ import { MatRadioModule } from '@angular/material/radio';
17
+ import * as i2 from '@angular/material/icon';
18
+ import { MatIconModule } from '@angular/material/icon';
19
+ import * as i3 from '@angular/material/menu';
20
+ import { MatMenuModule } from '@angular/material/menu';
21
+ import * as i4 from '@angular/material/button';
22
+ import { MatButtonModule } from '@angular/material/button';
23
+ import { FormsModule } from '@angular/forms';
24
+
25
+ class EntryTableConfig {
26
+ constructor() {
27
+ this.showPaginator = true;
28
+ this.showFirstLastButtons = false;
29
+ this.pageSize = 20;
30
+ this.pageSizeOptions = [20, 50, 100];
31
+ this.hidePageSize = false;
32
+ this.noResultsText = 'No results found';
33
+ }
34
+ }
35
+ ;
36
+ const ENTRY_TABLE_CONFIG = new InjectionToken('ENTRY_TABLE_CONFIG', {
37
+ providedIn: 'root',
38
+ factory: () => new EntryTableConfig()
39
+ });
40
+ const DEFAULT_PERCENTAGE_MULTIPLIER = new InjectionToken('');
41
+
42
+ const defaultPageSize = 10;
43
+ const defaultPageNumber = 1;
44
+ class PagedQuery {
45
+ constructor() {
46
+ this.pageNumber = defaultPageNumber;
47
+ this.pageSize = defaultPageSize;
48
+ }
49
+ sortChange(sort) {
50
+ if (sort.active) {
51
+ this.sortBy = sort.active;
52
+ this.sortDirection = sort.direction;
53
+ this.pageNumber = defaultPageNumber;
54
+ }
55
+ }
56
+ pageChange(page) {
57
+ this.pageNumber = page.pageIndex + 1;
58
+ this.pageSize = page.pageSize;
59
+ }
60
+ applyRouteChanges(queryParams) {
61
+ var _a, _b;
62
+ this.pageNumber = queryParams.pageNumber ? Number(queryParams.pageNumber) : defaultPageNumber;
63
+ this.pageSize = queryParams.pageSize ? Number(queryParams.pageSize) : this.pageSize;
64
+ this.sortBy = (_a = queryParams.sortBy) !== null && _a !== void 0 ? _a : this.sortBy;
65
+ this.sortDirection = (_b = queryParams.sortDirection) !== null && _b !== void 0 ? _b : this.sortDirection;
66
+ }
67
+ getRouteQueryParams() {
68
+ return {
69
+ pageNumber: this.pageNumber,
70
+ pageSize: this.pageSize,
71
+ sortBy: this.sortBy,
72
+ sortDirection: this.sortDirection
73
+ };
74
+ }
75
+ }
76
+
77
+ class EntryCellFormattedValueComponent {
78
+ constructor(defaultPercentageMultiplier) {
79
+ this.defaultPercentageMultiplier = defaultPercentageMultiplier;
80
+ }
81
+ }
82
+ EntryCellFormattedValueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryCellFormattedValueComponent, deps: [{ token: DEFAULT_PERCENTAGE_MULTIPLIER }], target: i0.ɵɵFactoryTarget.Component });
83
+ EntryCellFormattedValueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: EntryCellFormattedValueComponent, selector: "entry-cell-formatted-value", inputs: { value: "value", type: "type", typeParameter: "typeParameter" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"type\">\n <!-- Boolean -->\n <ng-container *ngSwitchCase=\"'boolean'\">\n {{value ? '\\u2713' : ''}}\n </ng-container>\n <!-- Number -->\n <ng-container *ngSwitchCase=\"'number'\">\n {{value | number: typeParameter?.digitsInfo : typeParameter?.locale}}\n </ng-container>\n <!-- Currency -->\n <ng-container *ngSwitchCase=\"'currency'\">\n {{value | currency: typeParameter?.currencyCode : typeParameter?.display : typeParameter?.digitsInfo : typeParameter?.locale}}\n </ng-container>\n <!-- Percent -->\n <ng-container *ngSwitchCase=\"'percent'\">\n {{+value * (typeParameter?.multiplier ?? defaultPercentageMultiplier) | percent: typeParameter?.digitsInfo : typeParameter?.locale}}\n </ng-container>\n <!-- Date -->\n <ng-container *ngSwitchCase=\"'date'\">\n {{value | date: typeParameter?.format : typeParameter?.timezone : typeParameter?.locale}}\n </ng-container>\n <!-- Link -->\n <ng-container *ngSwitchCase=\"'link'\">\n <a [href]=\"value\" target=\"_blank\">{{value}}</a>\n </ng-container>\n <!-- Default -->\n <ng-container *ngSwitchDefault>\n {{value}}\n </ng-container>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: i1.DecimalPipe, name: "number" }, { kind: "pipe", type: i1.PercentPipe, name: "percent" }, { kind: "pipe", type: i1.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
84
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryCellFormattedValueComponent, decorators: [{
85
+ type: Component,
86
+ args: [{ selector: 'entry-cell-formatted-value', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [ngSwitch]=\"type\">\n <!-- Boolean -->\n <ng-container *ngSwitchCase=\"'boolean'\">\n {{value ? '\\u2713' : ''}}\n </ng-container>\n <!-- Number -->\n <ng-container *ngSwitchCase=\"'number'\">\n {{value | number: typeParameter?.digitsInfo : typeParameter?.locale}}\n </ng-container>\n <!-- Currency -->\n <ng-container *ngSwitchCase=\"'currency'\">\n {{value | currency: typeParameter?.currencyCode : typeParameter?.display : typeParameter?.digitsInfo : typeParameter?.locale}}\n </ng-container>\n <!-- Percent -->\n <ng-container *ngSwitchCase=\"'percent'\">\n {{+value * (typeParameter?.multiplier ?? defaultPercentageMultiplier) | percent: typeParameter?.digitsInfo : typeParameter?.locale}}\n </ng-container>\n <!-- Date -->\n <ng-container *ngSwitchCase=\"'date'\">\n {{value | date: typeParameter?.format : typeParameter?.timezone : typeParameter?.locale}}\n </ng-container>\n <!-- Link -->\n <ng-container *ngSwitchCase=\"'link'\">\n <a [href]=\"value\" target=\"_blank\">{{value}}</a>\n </ng-container>\n <!-- Default -->\n <ng-container *ngSwitchDefault>\n {{value}}\n </ng-container>\n</ng-container>\n" }]
87
+ }], ctorParameters: function () {
88
+ return [{ type: undefined, decorators: [{
89
+ type: Inject,
90
+ args: [DEFAULT_PERCENTAGE_MULTIPLIER]
91
+ }] }];
92
+ }, propDecorators: { value: [{
93
+ type: Input
94
+ }], type: [{
95
+ type: Input
96
+ }], typeParameter: [{
97
+ type: Input
98
+ }] } });
99
+
100
+ class EntryCellComponent {
101
+ get value() {
102
+ return this.getCellValue(this.rowData, this.colDef);
103
+ }
104
+ getCellValue(rowData, colDef) {
105
+ const keys = colDef.field ? colDef.field.split('.') : [];
106
+ return keys.reduce((data, key) => data && data[key], rowData);
107
+ }
108
+ }
109
+ EntryCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
110
+ EntryCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: EntryCellComponent, selector: "entry-cell", inputs: { rowData: "rowData", colDef: "colDef" }, ngImport: i0, template: "<entry-cell-formatted-value [value]=\"value\" [type]=\"colDef.type\" [typeParameter]=\"colDef.typeParameter\"></entry-cell-formatted-value>", dependencies: [{ kind: "component", type: EntryCellFormattedValueComponent, selector: "entry-cell-formatted-value", inputs: ["value", "type", "typeParameter"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
111
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryCellComponent, decorators: [{
112
+ type: Component,
113
+ args: [{ selector: 'entry-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<entry-cell-formatted-value [value]=\"value\" [type]=\"colDef.type\" [typeParameter]=\"colDef.typeParameter\"></entry-cell-formatted-value>" }]
114
+ }], propDecorators: { rowData: [{
115
+ type: Input
116
+ }], colDef: [{
117
+ type: Input
118
+ }] } });
119
+
120
+ class EntryCellContextMenuComponent {
121
+ constructor() {
122
+ this.items = [];
123
+ this.selected = new EventEmitter();
124
+ this.menuItems = [];
125
+ }
126
+ ngOnInit() {
127
+ var _a;
128
+ this.menuItems = ((_a = this.rowMenuFormatter) === null || _a === void 0 ? void 0 : _a.items)
129
+ ? this.rowMenuFormatter.items(this.rowData)
130
+ : this.items;
131
+ }
132
+ }
133
+ EntryCellContextMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryCellContextMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
134
+ EntryCellContextMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: EntryCellContextMenuComponent, selector: "entry-cell-context-menu", inputs: { items: "items", rowMenuFormatter: "rowMenuFormatter", rowData: "rowData" }, outputs: { selected: "selected" }, ngImport: i0, template: "<button mat-icon-button [matMenuTriggerFor]=\"menu\" (click)=\"$event.stopPropagation()\">\n <mat-icon>more_vert</mat-icon>\n</button>\n<mat-menu #menu=\"matMenu\" class=\"entry-table-menu\">\n <button *ngFor=\"let item of menuItems\" mat-menu-item [disabled]=\"item.disabled\" (click)=\"selected.emit(item.id)\"\n class=\"context-menu-item\">\n <mat-icon *ngIf=\"item.icon\">{{item.icon}}</mat-icon>\n <span>{{item.name}}</span>\n </button>\n</mat-menu>", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i3.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryCellContextMenuComponent, decorators: [{
136
+ type: Component,
137
+ args: [{ selector: 'entry-cell-context-menu', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button mat-icon-button [matMenuTriggerFor]=\"menu\" (click)=\"$event.stopPropagation()\">\n <mat-icon>more_vert</mat-icon>\n</button>\n<mat-menu #menu=\"matMenu\" class=\"entry-table-menu\">\n <button *ngFor=\"let item of menuItems\" mat-menu-item [disabled]=\"item.disabled\" (click)=\"selected.emit(item.id)\"\n class=\"context-menu-item\">\n <mat-icon *ngIf=\"item.icon\">{{item.icon}}</mat-icon>\n <span>{{item.name}}</span>\n </button>\n</mat-menu>" }]
138
+ }], propDecorators: { items: [{
139
+ type: Input
140
+ }], rowMenuFormatter: [{
141
+ type: Input
142
+ }], rowData: [{
143
+ type: Input
144
+ }], selected: [{
145
+ type: Output
146
+ }] } });
147
+
148
+ /* eslint-disable @typescript-eslint/member-ordering */
149
+ class EntryTableComponent {
150
+ get hasNoResult() {
151
+ return (!this.data || this._data.length === 0) && !this.loading;
152
+ }
153
+ constructor(_config, _elementRef, _changeDetectorRef) {
154
+ this._config = _config;
155
+ this._elementRef = _elementRef;
156
+ this._changeDetectorRef = _changeDetectorRef;
157
+ this.className = 'entry-table';
158
+ this.dataSource = new MatTableDataSource([]);
159
+ this.columns = [];
160
+ // Data
161
+ this._data = [];
162
+ this.data = [];
163
+ this.total = 0;
164
+ this.loading = false;
165
+ this.pageDisabled = false;
166
+ this.pageIndex = 0;
167
+ this.pageChange = new EventEmitter();
168
+ this.sortDisableClear = false;
169
+ this.sortDisabled = false;
170
+ this.sortStart = 'asc';
171
+ this.sortChange = new EventEmitter();
172
+ // Row
173
+ this.rowHover = false;
174
+ this.rowStriped = false;
175
+ this.rowFocusVisible = false;
176
+ this.rowClick = new EventEmitter();
177
+ // Row selection
178
+ this.multiSelectable = true;
179
+ this.rowSelection = new SelectionModel(true, []);
180
+ this.rowSelected = [];
181
+ this.rowSelectable = false;
182
+ this.showSelectAllCheckbox = true;
183
+ this.rowSelectionFormatter = {};
184
+ this.rowSelectionChange = new EventEmitter();
185
+ // Context menu
186
+ this.showContextMenu = false;
187
+ this.contextMenuItems = [];
188
+ this.contextMenuItemSelected = new EventEmitter();
189
+ this.selectionColumn = 'selection-column';
190
+ this.contextMenuColumn = 'context-menu-column';
191
+ }
192
+ detectChanges() {
193
+ this._changeDetectorRef.detectChanges();
194
+ }
195
+ isTemplateRef(obj) {
196
+ return obj instanceof TemplateRef;
197
+ }
198
+ getRowClassList(rowData, index) {
199
+ const classList = {
200
+ selected: this.rowSelection.isSelected(rowData),
201
+ // eslint-disable-next-line @typescript-eslint/naming-convention
202
+ 'mat-row-odd': index % 2,
203
+ };
204
+ if (this.rowClassFormatter) {
205
+ for (const key of Object.keys(this.rowClassFormatter)) {
206
+ classList[key] = this.rowClassFormatter[key](rowData);
207
+ }
208
+ }
209
+ return classList;
210
+ }
211
+ getColumnClassList(colDef) {
212
+ var _a, _b;
213
+ const customClasses = (_a = colDef.class) !== null && _a !== void 0 ? _a : '';
214
+ const columnType = (_b = colDef.type) !== null && _b !== void 0 ? _b : '';
215
+ const columnField = `cell-${this.convertToKebabCase(colDef.field)}`;
216
+ return `${customClasses} ${columnType} ${columnField}`;
217
+ }
218
+ ngOnChanges(changes) {
219
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
220
+ this.showPaginator = (_a = this.showPaginator) !== null && _a !== void 0 ? _a : this._config.showPaginator;
221
+ this.showFirstLastButtons = (_b = this.showFirstLastButtons) !== null && _b !== void 0 ? _b : this._config.showFirstLastButtons;
222
+ this.pageSizeOptions = (_c = this.pageSizeOptions) !== null && _c !== void 0 ? _c : this._config.pageSizeOptions;
223
+ this.hidePageSize = (_d = this.hidePageSize) !== null && _d !== void 0 ? _d : this._config.hidePageSize;
224
+ this.noResultText = (_e = this.noResultText) !== null && _e !== void 0 ? _e : this._config.noResultsText;
225
+ this.displayedColumns = this.columns.filter(item => !item.hide).map(item => item.field);
226
+ if (this.rowSelectable && !this.displayedColumns.includes(this.selectionColumn)) {
227
+ this.displayedColumns.unshift(this.selectionColumn);
228
+ }
229
+ if (this.showContextMenu && !this.displayedColumns.includes(this.contextMenuColumn)) {
230
+ this.displayedColumns.push(this.contextMenuColumn);
231
+ }
232
+ if (this.rowSelectable) {
233
+ this.rowSelection = new SelectionModel(this.multiSelectable, this.rowSelected);
234
+ }
235
+ if (!this.data) {
236
+ this.data = [];
237
+ }
238
+ if (Array.isArray(this.data)) {
239
+ this._data = this.data;
240
+ }
241
+ else {
242
+ this._page = this.data;
243
+ this._data = (_f = this._page.items) !== null && _f !== void 0 ? _f : [];
244
+ this.total = (_g = this._page.totalCount) !== null && _g !== void 0 ? _g : 0;
245
+ this.pageSize = (_j = (_h = this._page.pageSize) !== null && _h !== void 0 ? _h : this.pageSize) !== null && _j !== void 0 ? _j : this._config.pageSize;
246
+ this.pageIndex = this._page.pageNumber ? this._page.pageNumber - 1 : this.pageIndex;
247
+ }
248
+ if (this.dataSource) {
249
+ this.dataSource.disconnect();
250
+ }
251
+ this.dataSource = new MatTableDataSource(this._data);
252
+ if (changes.data) {
253
+ this.scrollToTop();
254
+ }
255
+ }
256
+ getIndex(index, dataIndex) {
257
+ return typeof index === 'undefined' ? dataIndex : index;
258
+ }
259
+ isAllSelected() {
260
+ const numSelected = this.rowSelection.selected.length;
261
+ const numRows = this.dataSource.data.filter(row => { var _a, _b; return !((_b = (_a = this.rowSelectionFormatter).disabled) === null || _b === void 0 ? void 0 : _b.call(_a, row)); }).length;
262
+ return numSelected === numRows;
263
+ }
264
+ toggleSelectAllCheckbox() {
265
+ if (this.isAllSelected()) {
266
+ this.rowSelection.clear();
267
+ this.rowSelectionChange.emit(this.rowSelection.selected);
268
+ return;
269
+ }
270
+ this.dataSource.data.forEach(row => {
271
+ var _a, _b;
272
+ if (!((_b = (_a = this.rowSelectionFormatter).disabled) === null || _b === void 0 ? void 0 : _b.call(_a, row))) {
273
+ this.rowSelection.select(row);
274
+ }
275
+ });
276
+ this.rowSelectionChange.emit(this.rowSelection.selected);
277
+ }
278
+ toggleRowSelection(row) {
279
+ this.rowSelection.toggle(row);
280
+ this.rowSelectionChange.emit(this.rowSelection.selected);
281
+ }
282
+ handlePage(e) {
283
+ this.pageChange.emit(e);
284
+ }
285
+ scrollToTop() {
286
+ this._elementRef.nativeElement.scrollTop = 0;
287
+ }
288
+ convertToKebabCase(value) {
289
+ return value === null || value === void 0 ? void 0 : value.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
290
+ }
291
+ }
292
+ EntryTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryTableComponent, deps: [{ token: ENTRY_TABLE_CONFIG }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
293
+ EntryTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: EntryTableComponent, selector: "entry-table", inputs: { displayedColumns: "displayedColumns", columns: "columns", data: "data", total: "total", loading: "loading", showPaginator: "showPaginator", pageDisabled: "pageDisabled", showFirstLastButtons: "showFirstLastButtons", pageIndex: "pageIndex", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", hidePageSize: "hidePageSize", paginationTemplate: "paginationTemplate", sortActive: "sortActive", sortDirection: "sortDirection", sortDisableClear: "sortDisableClear", sortDisabled: "sortDisabled", sortStart: "sortStart", rowHover: "rowHover", rowStriped: "rowStriped", rowFocusVisible: "rowFocusVisible", multiSelectable: "multiSelectable", rowSelected: "rowSelected", rowSelectable: "rowSelectable", showSelectAllCheckbox: "showSelectAllCheckbox", rowSelectionFormatter: "rowSelectionFormatter", rowClassFormatter: "rowClassFormatter", showContextMenu: "showContextMenu", contextMenuItems: "contextMenuItems", contextMenuTemplate: "contextMenuTemplate", rowContextMenuFormatter: "rowContextMenuFormatter", noResultText: "noResultText", noResultTemplate: "noResultTemplate", headerTemplate: "headerTemplate", cellTemplate: "cellTemplate" }, outputs: { pageChange: "pageChange", sortChange: "sortChange", rowClick: "rowClick", rowSelectionChange: "rowSelectionChange", contextMenuItemSelected: "contextMenuItemSelected" }, host: { properties: { "class": "this.className" } }, usesOnChanges: true, ngImport: i0, template: "<!-- Table content -->\n<table mat-table \n [ngClass]=\"{'mat-table-hover': rowHover, 'mat-table-striped': rowStriped, 'mat-table-with-data': !hasNoResult }\"\n [dataSource]=\"dataSource\"\n matSort\n [matSortActive]=\"sortActive\"\n [matSortDirection]=\"sortDirection\"\n [matSortDisableClear]=\"sortDisableClear\"\n [matSortDisabled]=\"sortDisabled\"\n [matSortStart]=\"sortStart\"\n (matSortChange)=\"sortChange.emit($event)\">\n\n <!-- Selection column -->\n <ng-container *ngIf=\"rowSelectable\" [matColumnDef]=\"selectionColumn\">\n <th mat-header-cell *matHeaderCellDef class=\"selection-cell\">\n <mat-checkbox *ngIf=\"multiSelectable && showSelectAllCheckbox\"\n [checked]=\"rowSelection.hasValue() && isAllSelected()\"\n [indeterminate]=\"rowSelection.hasValue() && !isAllSelected()\"\n (change)=\"$event ? toggleSelectAllCheckbox() : null\">\n </mat-checkbox>\n </th>\n <td mat-cell *matCellDef=\"let row; let index = index; let dataIndex = dataIndex;\"\n class=\"selection-cell\"\n (click)=\"$event.stopPropagation()\">\n <mat-checkbox\n *ngIf=\"multiSelectable && !(rowSelectionFormatter.hideCheckbox && rowSelectionFormatter.hideCheckbox!(row))\"\n [disabled]=\"rowSelectionFormatter.disabled && rowSelectionFormatter.disabled!(row)\"\n [checked]=\"rowSelection.isSelected(row)\"\n (change)=\"$event ? toggleRowSelection(row) : null\">\n </mat-checkbox>\n <mat-radio-button\n *ngIf=\"!multiSelectable && !(rowSelectionFormatter.hideCheckbox && rowSelectionFormatter.hideCheckbox!(row))\"\n [disabled]=\"rowSelectionFormatter.disabled && rowSelectionFormatter.disabled!(row)\"\n [checked]=\"rowSelection.isSelected(row)\"\n [value]=\"rowSelection.isSelected(row)\"\n (change)=\"$event ? toggleRowSelection(row) : null\">\n </mat-radio-button>\n </td>\n </ng-container>\n\n <!-- Context menu column -->\n <ng-container *ngIf=\"showContextMenu\" [matColumnDef]=\"contextMenuColumn\">\n <th mat-header-cell *matHeaderCellDef class=\"action-cell\"></th>\n <td mat-cell *matCellDef=\"let row; let index = index; let dataIndex = dataIndex;\"\n class=\"action-cell\">\n <ng-template [ngIf]=\"isTemplateRef(contextMenuTemplate)\" [ngIfElse]=\"contextMenuTpl\">\n <ng-template [ngTemplateOutlet]=\"contextMenuTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row }\">\n </ng-template>\n </ng-template>\n <ng-template #contextMenuTpl>\n <entry-cell-context-menu\n [items]=\"contextMenuItems\"\n [rowData]=\"row\"\n [rowMenuFormatter]=\"rowContextMenuFormatter\"\n (selected)=\"contextMenuItemSelected.emit({itemId: $event, rowData: row})\"\n ></entry-cell-context-menu>\n </ng-template>\n </td>\n </ng-container>\n\n <ng-container *ngFor=\"let col of columns;\">\n <ng-container [matColumnDef]=\"col.field\"\n [sticky]=\"col.pinned==='left'\" [stickyEnd]=\"col.pinned==='right'\">\n <th mat-header-cell *matHeaderCellDef\n [class]=\"getColumnClassList(col)\"\n [ngClass]=\"{'mat-table-sticky-left': col.pinned === 'left', 'mat-table-sticky-right': col.pinned === 'right'}\"\n [ngStyle]=\"{'width': col.width, 'min-width': col.width}\">\n <ng-template [ngIf]=\"isTemplateRef(headerTemplate)\" [ngIfElse]=\"headerTpl\">\n <ng-template [ngTemplateOutlet]=\"headerTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col }\">\n </ng-template>\n </ng-template>\n <ng-template #headerTpl>\n <ng-template [ngIf]=\"headerTemplate && isTemplateRef(headerTemplate[col.field])\"\n [ngIfElse]=\"defaultHeaderTpl\">\n <ng-template [ngTemplateOutlet]=\"headerTemplate[col.field]\"\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col }\">\n </ng-template>\n </ng-template>\n </ng-template>\n <ng-template #defaultHeaderTpl>\n <div [mat-sort-header]=\"col.sortProp?.id || col.field\"\n [disabled]=\"!col.sortable\"\n [disableClear]=\"col.sortProp?.disableClear\">\n <span>{{col.header}}</span>\n </div>\n </ng-template>\n </th>\n\n <td mat-cell *matCellDef=\"let row; let index = index; let dataIndex = dataIndex;\"\n [class]=\"getColumnClassList(col)\"\n [ngClass]=\"{'mat-table-sticky-left': col.pinned === 'left', 'mat-table-sticky-right': col.pinned === 'right'}\"\n [ngStyle]=\"{'width': col.width, 'min-width': col.width}\">\n <ng-template [ngIf]=\"isTemplateRef(cellTemplate)\" [ngIfElse]=\"cellTpl\">\n <ng-template [ngTemplateOutlet]=\"cellTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: getIndex(index, dataIndex), colDef: col }\">\n </ng-template>\n </ng-template>\n <ng-template #cellTpl>\n <ng-template [ngIf]=\"cellTemplate && isTemplateRef(cellTemplate[col.field])\"\n [ngIfElse]=\"colDefCellTpl\">\n <ng-template [ngTemplateOutlet]=\"cellTemplate[col.field]\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: getIndex(index, dataIndex), colDef: col }\">\n </ng-template>\n </ng-template>\n </ng-template>\n <ng-template #colDefCellTpl>\n <ng-template [ngIf]=\"col.cellTemplate\" [ngIfElse]=\"defaultCellTpl\"\n [ngTemplateOutlet]=\"col.cellTemplate ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: getIndex(index, dataIndex), colDef: col }\">\n </ng-template>\n </ng-template>\n <ng-template #defaultCellTpl>\n <entry-cell [rowData]=\"row\" [colDef]=\"col\"></entry-cell>\n </ng-template>\n </td>\n </ng-container>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\n <tr mat-row\n *matRowDef=\"let row; let index = index; let dataIndex = dataIndex; columns: displayedColumns;\"\n [ngClass]=\"getRowClassList(row, getIndex(index, dataIndex))\"\n [attr.tabindex]=\"rowFocusVisible ? 0 : -1\"\n (click)=\"rowClick.emit(row)\"\n (keyup.enter)=\"rowClick.emit(row)\">\n </tr>\n</table>\n\n<!-- No results -->\n<div class=\"no-results mat-body-2\" *ngIf=\"hasNoResult\">\n <ng-template [ngIf]=\"isTemplateRef(noResultTemplate)\" [ngIfElse]=\"defaultNoResultTpl\">\n <ng-template [ngTemplateOutlet]=\"noResultTemplate\"></ng-template>\n </ng-template>\n <ng-template #defaultNoResultTpl>{{noResultText}}</ng-template>\n</div>\n\n<!-- Pagination -->\n<ng-template [ngIf]=\"isTemplateRef(paginationTemplate)\" [ngIfElse]=\"defaultPaginationTemplate\">\n <ng-template [ngTemplateOutlet]=\"paginationTemplate\"></ng-template>\n</ng-template>\n<ng-template #defaultPaginationTemplate>\n <mat-paginator class=\"pagination\" *ngIf=\"showPaginator\"\n [showFirstLastButtons]=\"showFirstLastButtons\"\n [length]=\"total\"\n [pageIndex]=\"pageIndex\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n [hidePageSize]=\"hidePageSize\"\n (page)=\"handlePage($event)\"\n [disabled]=\"pageDisabled\">\n </mat-paginator>\n</ng-template>", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i2$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i2$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i2$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i2$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i2$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i2$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i2$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i2$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: i3$1.MatSort, selector: "[matSort]", inputs: ["matSortDisabled", "matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i3$1.MatSortHeader, selector: "[mat-sort-header]", inputs: ["disabled", "mat-sort-header", "arrowPosition", "start", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "component", type: i4$1.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }, { kind: "component", type: i5.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: i6.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { kind: "component", type: EntryCellComponent, selector: "entry-cell", inputs: ["rowData", "colDef"] }, { kind: "component", type: EntryCellContextMenuComponent, selector: "entry-cell-context-menu", inputs: ["items", "rowMenuFormatter", "rowData"], outputs: ["selected"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
294
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryTableComponent, decorators: [{
295
+ type: Component,
296
+ args: [{ selector: 'entry-table', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- Table content -->\n<table mat-table \n [ngClass]=\"{'mat-table-hover': rowHover, 'mat-table-striped': rowStriped, 'mat-table-with-data': !hasNoResult }\"\n [dataSource]=\"dataSource\"\n matSort\n [matSortActive]=\"sortActive\"\n [matSortDirection]=\"sortDirection\"\n [matSortDisableClear]=\"sortDisableClear\"\n [matSortDisabled]=\"sortDisabled\"\n [matSortStart]=\"sortStart\"\n (matSortChange)=\"sortChange.emit($event)\">\n\n <!-- Selection column -->\n <ng-container *ngIf=\"rowSelectable\" [matColumnDef]=\"selectionColumn\">\n <th mat-header-cell *matHeaderCellDef class=\"selection-cell\">\n <mat-checkbox *ngIf=\"multiSelectable && showSelectAllCheckbox\"\n [checked]=\"rowSelection.hasValue() && isAllSelected()\"\n [indeterminate]=\"rowSelection.hasValue() && !isAllSelected()\"\n (change)=\"$event ? toggleSelectAllCheckbox() : null\">\n </mat-checkbox>\n </th>\n <td mat-cell *matCellDef=\"let row; let index = index; let dataIndex = dataIndex;\"\n class=\"selection-cell\"\n (click)=\"$event.stopPropagation()\">\n <mat-checkbox\n *ngIf=\"multiSelectable && !(rowSelectionFormatter.hideCheckbox && rowSelectionFormatter.hideCheckbox!(row))\"\n [disabled]=\"rowSelectionFormatter.disabled && rowSelectionFormatter.disabled!(row)\"\n [checked]=\"rowSelection.isSelected(row)\"\n (change)=\"$event ? toggleRowSelection(row) : null\">\n </mat-checkbox>\n <mat-radio-button\n *ngIf=\"!multiSelectable && !(rowSelectionFormatter.hideCheckbox && rowSelectionFormatter.hideCheckbox!(row))\"\n [disabled]=\"rowSelectionFormatter.disabled && rowSelectionFormatter.disabled!(row)\"\n [checked]=\"rowSelection.isSelected(row)\"\n [value]=\"rowSelection.isSelected(row)\"\n (change)=\"$event ? toggleRowSelection(row) : null\">\n </mat-radio-button>\n </td>\n </ng-container>\n\n <!-- Context menu column -->\n <ng-container *ngIf=\"showContextMenu\" [matColumnDef]=\"contextMenuColumn\">\n <th mat-header-cell *matHeaderCellDef class=\"action-cell\"></th>\n <td mat-cell *matCellDef=\"let row; let index = index; let dataIndex = dataIndex;\"\n class=\"action-cell\">\n <ng-template [ngIf]=\"isTemplateRef(contextMenuTemplate)\" [ngIfElse]=\"contextMenuTpl\">\n <ng-template [ngTemplateOutlet]=\"contextMenuTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row }\">\n </ng-template>\n </ng-template>\n <ng-template #contextMenuTpl>\n <entry-cell-context-menu\n [items]=\"contextMenuItems\"\n [rowData]=\"row\"\n [rowMenuFormatter]=\"rowContextMenuFormatter\"\n (selected)=\"contextMenuItemSelected.emit({itemId: $event, rowData: row})\"\n ></entry-cell-context-menu>\n </ng-template>\n </td>\n </ng-container>\n\n <ng-container *ngFor=\"let col of columns;\">\n <ng-container [matColumnDef]=\"col.field\"\n [sticky]=\"col.pinned==='left'\" [stickyEnd]=\"col.pinned==='right'\">\n <th mat-header-cell *matHeaderCellDef\n [class]=\"getColumnClassList(col)\"\n [ngClass]=\"{'mat-table-sticky-left': col.pinned === 'left', 'mat-table-sticky-right': col.pinned === 'right'}\"\n [ngStyle]=\"{'width': col.width, 'min-width': col.width}\">\n <ng-template [ngIf]=\"isTemplateRef(headerTemplate)\" [ngIfElse]=\"headerTpl\">\n <ng-template [ngTemplateOutlet]=\"headerTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col }\">\n </ng-template>\n </ng-template>\n <ng-template #headerTpl>\n <ng-template [ngIf]=\"headerTemplate && isTemplateRef(headerTemplate[col.field])\"\n [ngIfElse]=\"defaultHeaderTpl\">\n <ng-template [ngTemplateOutlet]=\"headerTemplate[col.field]\"\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col }\">\n </ng-template>\n </ng-template>\n </ng-template>\n <ng-template #defaultHeaderTpl>\n <div [mat-sort-header]=\"col.sortProp?.id || col.field\"\n [disabled]=\"!col.sortable\"\n [disableClear]=\"col.sortProp?.disableClear\">\n <span>{{col.header}}</span>\n </div>\n </ng-template>\n </th>\n\n <td mat-cell *matCellDef=\"let row; let index = index; let dataIndex = dataIndex;\"\n [class]=\"getColumnClassList(col)\"\n [ngClass]=\"{'mat-table-sticky-left': col.pinned === 'left', 'mat-table-sticky-right': col.pinned === 'right'}\"\n [ngStyle]=\"{'width': col.width, 'min-width': col.width}\">\n <ng-template [ngIf]=\"isTemplateRef(cellTemplate)\" [ngIfElse]=\"cellTpl\">\n <ng-template [ngTemplateOutlet]=\"cellTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: getIndex(index, dataIndex), colDef: col }\">\n </ng-template>\n </ng-template>\n <ng-template #cellTpl>\n <ng-template [ngIf]=\"cellTemplate && isTemplateRef(cellTemplate[col.field])\"\n [ngIfElse]=\"colDefCellTpl\">\n <ng-template [ngTemplateOutlet]=\"cellTemplate[col.field]\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: getIndex(index, dataIndex), colDef: col }\">\n </ng-template>\n </ng-template>\n </ng-template>\n <ng-template #colDefCellTpl>\n <ng-template [ngIf]=\"col.cellTemplate\" [ngIfElse]=\"defaultCellTpl\"\n [ngTemplateOutlet]=\"col.cellTemplate ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: getIndex(index, dataIndex), colDef: col }\">\n </ng-template>\n </ng-template>\n <ng-template #defaultCellTpl>\n <entry-cell [rowData]=\"row\" [colDef]=\"col\"></entry-cell>\n </ng-template>\n </td>\n </ng-container>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\n <tr mat-row\n *matRowDef=\"let row; let index = index; let dataIndex = dataIndex; columns: displayedColumns;\"\n [ngClass]=\"getRowClassList(row, getIndex(index, dataIndex))\"\n [attr.tabindex]=\"rowFocusVisible ? 0 : -1\"\n (click)=\"rowClick.emit(row)\"\n (keyup.enter)=\"rowClick.emit(row)\">\n </tr>\n</table>\n\n<!-- No results -->\n<div class=\"no-results mat-body-2\" *ngIf=\"hasNoResult\">\n <ng-template [ngIf]=\"isTemplateRef(noResultTemplate)\" [ngIfElse]=\"defaultNoResultTpl\">\n <ng-template [ngTemplateOutlet]=\"noResultTemplate\"></ng-template>\n </ng-template>\n <ng-template #defaultNoResultTpl>{{noResultText}}</ng-template>\n</div>\n\n<!-- Pagination -->\n<ng-template [ngIf]=\"isTemplateRef(paginationTemplate)\" [ngIfElse]=\"defaultPaginationTemplate\">\n <ng-template [ngTemplateOutlet]=\"paginationTemplate\"></ng-template>\n</ng-template>\n<ng-template #defaultPaginationTemplate>\n <mat-paginator class=\"pagination\" *ngIf=\"showPaginator\"\n [showFirstLastButtons]=\"showFirstLastButtons\"\n [length]=\"total\"\n [pageIndex]=\"pageIndex\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n [hidePageSize]=\"hidePageSize\"\n (page)=\"handlePage($event)\"\n [disabled]=\"pageDisabled\">\n </mat-paginator>\n</ng-template>" }]
297
+ }], ctorParameters: function () {
298
+ return [{ type: EntryTableConfig, decorators: [{
299
+ type: Inject,
300
+ args: [ENTRY_TABLE_CONFIG]
301
+ }] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }];
302
+ }, propDecorators: { className: [{
303
+ type: HostBinding,
304
+ args: ['class']
305
+ }], displayedColumns: [{
306
+ type: Input
307
+ }], columns: [{
308
+ type: Input
309
+ }], data: [{
310
+ type: Input
311
+ }], total: [{
312
+ type: Input
313
+ }], loading: [{
314
+ type: Input
315
+ }], showPaginator: [{
316
+ type: Input
317
+ }], pageDisabled: [{
318
+ type: Input
319
+ }], showFirstLastButtons: [{
320
+ type: Input
321
+ }], pageIndex: [{
322
+ type: Input
323
+ }], pageSize: [{
324
+ type: Input
325
+ }], pageSizeOptions: [{
326
+ type: Input
327
+ }], hidePageSize: [{
328
+ type: Input
329
+ }], pageChange: [{
330
+ type: Output
331
+ }], paginationTemplate: [{
332
+ type: Input
333
+ }], sortActive: [{
334
+ type: Input
335
+ }], sortDirection: [{
336
+ type: Input
337
+ }], sortDisableClear: [{
338
+ type: Input
339
+ }], sortDisabled: [{
340
+ type: Input
341
+ }], sortStart: [{
342
+ type: Input
343
+ }], sortChange: [{
344
+ type: Output
345
+ }], rowHover: [{
346
+ type: Input
347
+ }], rowStriped: [{
348
+ type: Input
349
+ }], rowFocusVisible: [{
350
+ type: Input
351
+ }], rowClick: [{
352
+ type: Output
353
+ }], multiSelectable: [{
354
+ type: Input
355
+ }], rowSelected: [{
356
+ type: Input
357
+ }], rowSelectable: [{
358
+ type: Input
359
+ }], showSelectAllCheckbox: [{
360
+ type: Input
361
+ }], rowSelectionFormatter: [{
362
+ type: Input
363
+ }], rowClassFormatter: [{
364
+ type: Input
365
+ }], rowSelectionChange: [{
366
+ type: Output
367
+ }], showContextMenu: [{
368
+ type: Input
369
+ }], contextMenuItems: [{
370
+ type: Input
371
+ }], contextMenuTemplate: [{
372
+ type: Input
373
+ }], rowContextMenuFormatter: [{
374
+ type: Input
375
+ }], contextMenuItemSelected: [{
376
+ type: Output
377
+ }], noResultText: [{
378
+ type: Input
379
+ }], noResultTemplate: [{
380
+ type: Input
381
+ }], headerTemplate: [{
382
+ type: Input
383
+ }], cellTemplate: [{
384
+ type: Input
385
+ }] } });
386
+
387
+ class EntryTableModule {
388
+ }
389
+ EntryTableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
390
+ EntryTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: EntryTableModule, declarations: [EntryTableComponent,
391
+ EntryCellComponent,
392
+ EntryCellContextMenuComponent,
393
+ EntryCellFormattedValueComponent], imports: [CommonModule,
394
+ FormsModule,
395
+ MatTableModule,
396
+ MatSortModule,
397
+ MatPaginatorModule,
398
+ MatCheckboxModule,
399
+ MatIconModule,
400
+ MatMenuModule,
401
+ MatRadioModule,
402
+ CommonModule,
403
+ MatButtonModule], exports: [EntryTableComponent,
404
+ EntryCellComponent,
405
+ EntryCellContextMenuComponent,
406
+ EntryCellFormattedValueComponent] });
407
+ EntryTableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryTableModule, providers: [
408
+ { provide: DEFAULT_PERCENTAGE_MULTIPLIER, useValue: 1 }
409
+ ], imports: [CommonModule,
410
+ FormsModule,
411
+ MatTableModule,
412
+ MatSortModule,
413
+ MatPaginatorModule,
414
+ MatCheckboxModule,
415
+ MatIconModule,
416
+ MatMenuModule,
417
+ MatRadioModule,
418
+ CommonModule,
419
+ MatButtonModule] });
420
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EntryTableModule, decorators: [{
421
+ type: NgModule,
422
+ args: [{
423
+ imports: [
424
+ CommonModule,
425
+ FormsModule,
426
+ MatTableModule,
427
+ MatSortModule,
428
+ MatPaginatorModule,
429
+ MatCheckboxModule,
430
+ MatIconModule,
431
+ MatMenuModule,
432
+ MatRadioModule,
433
+ CommonModule,
434
+ MatButtonModule
435
+ ],
436
+ declarations: [
437
+ EntryTableComponent,
438
+ EntryCellComponent,
439
+ EntryCellContextMenuComponent,
440
+ EntryCellFormattedValueComponent
441
+ ],
442
+ exports: [
443
+ EntryTableComponent,
444
+ EntryCellComponent,
445
+ EntryCellContextMenuComponent,
446
+ EntryCellFormattedValueComponent
447
+ ],
448
+ providers: [
449
+ { provide: DEFAULT_PERCENTAGE_MULTIPLIER, useValue: 1 }
450
+ ]
451
+ }]
452
+ }] });
453
+
454
+ /**
455
+ * Generated bundle index. Do not edit.
456
+ */
457
+
458
+ export { DEFAULT_PERCENTAGE_MULTIPLIER, ENTRY_TABLE_CONFIG, EntryCellComponent, EntryCellContextMenuComponent, EntryCellFormattedValueComponent, EntryTableComponent, EntryTableConfig, EntryTableModule, PagedQuery, defaultPageNumber, defaultPageSize };
459
+ //# sourceMappingURL=enigmatry-entry-components-table.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enigmatry-entry-components-table.mjs","sources":["../../../../libs/entry-components/table/interfaces/entry-table-config.ts","../../../../libs/entry-components/table/interfaces/paged-query.ts","../../../../libs/entry-components/table/components/entry-cell-formatted-value/entry-cell-formatted-value.component.ts","../../../../libs/entry-components/table/components/entry-cell-formatted-value/entry-cell-formatted-value.component.html","../../../../libs/entry-components/table/components/entry-cell/entry-cell.component.ts","../../../../libs/entry-components/table/components/entry-cell/entry-cell.component.html","../../../../libs/entry-components/table/components/entry-cell-context-menu/entry-cell-context-menu.component.ts","../../../../libs/entry-components/table/components/entry-cell-context-menu/entry-cell-context-menu.component.html","../../../../libs/entry-components/table/components/entry-table/entry-table.component.ts","../../../../libs/entry-components/table/components/entry-table/entry-table.component.html","../../../../libs/entry-components/table/entry-table.module.ts","../../../../libs/entry-components/table/enigmatry-entry-components-table.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport class EntryTableConfig {\n public showPaginator = true;\n public showFirstLastButtons = false;\n public pageSize = 20;\n public pageSizeOptions = [20, 50, 100];\n public hidePageSize = false;\n public noResultsText = 'No results found';\n};\n\nexport const ENTRY_TABLE_CONFIG = new InjectionToken<EntryTableConfig>(\n 'ENTRY_TABLE_CONFIG',\n {\n providedIn: 'root',\n factory: () => new EntryTableConfig()\n });\n\n\nexport const DEFAULT_PERCENTAGE_MULTIPLIER: InjectionToken<number> = new InjectionToken<number>('');\n","import { Params } from '@angular/router';\nimport { OnPage, OnSort, PageEvent, SortDirection, SortEvent } from './pagination';\n\nexport const defaultPageSize = 10;\nexport const defaultPageNumber = 1;\n\nexport class PagedQuery implements OnPage, OnSort {\n pageNumber = defaultPageNumber;\n pageSize = defaultPageSize;\n sortBy?: string;\n sortDirection?: SortDirection;\n\n sortChange(sort: SortEvent): void {\n if (sort.active) {\n this.sortBy = sort.active;\n this.sortDirection = sort.direction;\n this.pageNumber = defaultPageNumber;\n }\n }\n\n pageChange(page: PageEvent): void {\n this.pageNumber = page.pageIndex + 1;\n this.pageSize = page.pageSize;\n }\n\n applyRouteChanges(queryParams: Params): void {\n this.pageNumber = queryParams.pageNumber ? Number(queryParams.pageNumber) : defaultPageNumber;\n this.pageSize = queryParams.pageSize ? Number(queryParams.pageSize) : this.pageSize;\n this.sortBy = queryParams.sortBy ?? this.sortBy;\n this.sortDirection = queryParams.sortDirection ?? this.sortDirection;\n }\n\n getRouteQueryParams(): Params {\n return {\n pageNumber: this.pageNumber,\n pageSize: this.pageSize,\n sortBy: this.sortBy,\n sortDirection: this.sortDirection\n };\n }\n}\n","import { ChangeDetectionStrategy, Component, Inject, Input } from '@angular/core';\nimport { DEFAULT_PERCENTAGE_MULTIPLIER } from '../../interfaces/entry-table-config';\n\n@Component({\n selector: 'entry-cell-formatted-value',\n templateUrl: './entry-cell-formatted-value.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EntryCellFormattedValueComponent {\n\n @Input() value: string | undefined;\n @Input() type: string;\n @Input() typeParameter: any | undefined;\n\n constructor(\n @Inject(DEFAULT_PERCENTAGE_MULTIPLIER) public defaultPercentageMultiplier: number) {\n }\n}\n","<ng-container [ngSwitch]=\"type\">\n <!-- Boolean -->\n <ng-container *ngSwitchCase=\"'boolean'\">\n {{value ? '\\u2713' : ''}}\n </ng-container>\n <!-- Number -->\n <ng-container *ngSwitchCase=\"'number'\">\n {{value | number: typeParameter?.digitsInfo : typeParameter?.locale}}\n </ng-container>\n <!-- Currency -->\n <ng-container *ngSwitchCase=\"'currency'\">\n {{value | currency: typeParameter?.currencyCode : typeParameter?.display : typeParameter?.digitsInfo : typeParameter?.locale}}\n </ng-container>\n <!-- Percent -->\n <ng-container *ngSwitchCase=\"'percent'\">\n {{+value * (typeParameter?.multiplier ?? defaultPercentageMultiplier) | percent: typeParameter?.digitsInfo : typeParameter?.locale}}\n </ng-container>\n <!-- Date -->\n <ng-container *ngSwitchCase=\"'date'\">\n {{value | date: typeParameter?.format : typeParameter?.timezone : typeParameter?.locale}}\n </ng-container>\n <!-- Link -->\n <ng-container *ngSwitchCase=\"'link'\">\n <a [href]=\"value\" target=\"_blank\">{{value}}</a>\n </ng-container>\n <!-- Default -->\n <ng-container *ngSwitchDefault>\n {{value}}\n </ng-container>\n</ng-container>\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { ColumnDef } from '../../interfaces';\n\n@Component({\n selector: 'entry-cell',\n templateUrl: './entry-cell.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EntryCellComponent<T> {\n\n @Input() rowData: T;\n @Input() colDef: ColumnDef;\n\n get value(): any {\n return this.getCellValue(this.rowData, this.colDef);\n }\n\n private getCellValue(rowData: T, colDef: ColumnDef) {\n const keys = colDef.field ? colDef.field.split('.') : [];\n return keys.reduce((data, key) => data && (data as any)[key], rowData);\n }\n\n}\n","<entry-cell-formatted-value [value]=\"value\" [type]=\"colDef.type\" [typeParameter]=\"colDef.typeParameter\"></entry-cell-formatted-value>","import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { RowContextMenuFormatter } from '../../interfaces/row-context-menu-formatter';\nimport { ContextMenuItem } from '../../interfaces/context-menu-item';\n\n@Component({\n selector: 'entry-cell-context-menu',\n templateUrl: './entry-cell-context-menu.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EntryCellContextMenuComponent implements OnInit {\n\n @Input() items: ContextMenuItem[] = [];\n @Input() rowMenuFormatter: RowContextMenuFormatter;\n @Input() rowData: any;\n @Output() selected = new EventEmitter<string>();\n\n menuItems: ContextMenuItem[] = [];\n\n ngOnInit(): void {\n this.menuItems = this.rowMenuFormatter?.items\n ? this.rowMenuFormatter.items(this.rowData)\n : this.items;\n }\n}\n","<button mat-icon-button [matMenuTriggerFor]=\"menu\" (click)=\"$event.stopPropagation()\">\n <mat-icon>more_vert</mat-icon>\n</button>\n<mat-menu #menu=\"matMenu\" class=\"entry-table-menu\">\n <button *ngFor=\"let item of menuItems\" mat-menu-item [disabled]=\"item.disabled\" (click)=\"selected.emit(item.id)\"\n class=\"context-menu-item\">\n <mat-icon *ngIf=\"item.icon\">{{item.icon}}</mat-icon>\n <span>{{item.name}}</span>\n </button>\n</mat-menu>","/* eslint-disable @typescript-eslint/member-ordering */\n\nimport {\n Component,\n Input,\n Output,\n EventEmitter,\n ViewEncapsulation,\n ChangeDetectionStrategy,\n OnChanges,\n TemplateRef,\n ChangeDetectorRef,\n ElementRef,\n SimpleChanges,\n HostBinding,\n Inject,\n} from '@angular/core';\nimport { SelectionModel } from '@angular/cdk/collections';\nimport { MatTableDataSource } from '@angular/material/table';\nimport { PageEvent } from '@angular/material/paginator';\nimport { Sort, SortDirection } from '@angular/material/sort';\n\nimport {\n ColumnDef, PagedData, RowSelectionFormatter, RowClassFormatter,\n ContextMenuItem, RowContextMenuFormatter, CellTemplate, ENTRY_TABLE_CONFIG, EntryTableConfig\n} from '../../interfaces';\n\n@Component({\n selector: 'entry-table',\n templateUrl: './entry-table.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EntryTableComponent<T> implements OnChanges {\n @HostBinding('class') className = 'entry-table';\n\n dataSource = new MatTableDataSource<T>([]);\n\n @Input() displayedColumns: string[];\n @Input() columns: ColumnDef[] = [];\n\n // Data\n\n private _data: T[] = [];\n private _page: PagedData<T>;\n @Input() data: T[] | PagedData<T> | null | undefined = [];\n @Input() total = 0;\n @Input() loading = false;\n\n // Pagination\n\n @Input() showPaginator: boolean;\n @Input() pageDisabled = false;\n @Input() showFirstLastButtons: boolean;\n @Input() pageIndex = 0;\n @Input() pageSize: number;\n @Input() pageSizeOptions: number[];\n @Input() hidePageSize: boolean;\n @Output() pageChange = new EventEmitter<PageEvent>();\n\n @Input() paginationTemplate: TemplateRef<any>;\n\n // Sort\n\n @Input() sortActive: string;\n @Input() sortDirection: SortDirection;\n @Input() sortDisableClear = false;\n @Input() sortDisabled = false;\n @Input() sortStart: 'asc' | 'desc' = 'asc';\n @Output() sortChange = new EventEmitter<Sort>();\n\n // Row\n\n @Input() rowHover = false;\n @Input() rowStriped = false;\n @Input() rowFocusVisible = false;\n @Output() rowClick = new EventEmitter<T>();\n\n // Row selection\n\n @Input() multiSelectable = true;\n rowSelection: SelectionModel<T> = new SelectionModel<T>(true, []);\n\n @Input() rowSelected: T[] = [];\n @Input() rowSelectable = false;\n @Input() showSelectAllCheckbox = true;\n @Input() rowSelectionFormatter: RowSelectionFormatter = {};\n @Input() rowClassFormatter: RowClassFormatter;\n @Output() rowSelectionChange = new EventEmitter<T[]>();\n\n // Context menu\n\n @Input() showContextMenu = false;\n @Input() contextMenuItems: ContextMenuItem[] = [];\n @Input() contextMenuTemplate: TemplateRef<any> | null;\n @Input() rowContextMenuFormatter: RowContextMenuFormatter;\n @Output() contextMenuItemSelected = new EventEmitter<{ itemId: string; rowData: T }>();\n\n // No Result\n\n @Input() noResultText: string;\n @Input() noResultTemplate: TemplateRef<any> | null;\n\n readonly selectionColumn = 'selection-column';\n readonly contextMenuColumn = 'context-menu-column';\n\n get hasNoResult() {\n return (!this.data || this._data.length === 0) && !this.loading;\n }\n\n @Input() headerTemplate: TemplateRef<any> | CellTemplate | any;\n\n @Input() cellTemplate: TemplateRef<any> | CellTemplate | any;\n\n constructor(\n @Inject(ENTRY_TABLE_CONFIG) private _config: EntryTableConfig,\n private _elementRef: ElementRef<HTMLElement>,\n private _changeDetectorRef: ChangeDetectorRef) { }\n\n detectChanges() {\n this._changeDetectorRef.detectChanges();\n }\n\n isTemplateRef(obj: any) {\n return obj instanceof TemplateRef;\n }\n\n getRowClassList(rowData: T, index: number) {\n const classList = {\n selected: this.rowSelection.isSelected(rowData),\n // eslint-disable-next-line @typescript-eslint/naming-convention\n 'mat-row-odd': index % 2,\n };\n if (this.rowClassFormatter) {\n for (const key of Object.keys(this.rowClassFormatter)) {\n classList[key] = this.rowClassFormatter[key](rowData);\n }\n }\n return classList;\n }\n\n getColumnClassList(colDef: ColumnDef): string {\n const customClasses = colDef.class ?? '';\n const columnType = colDef.type ?? '';\n const columnField = `cell-${this.convertToKebabCase(colDef.field)}`;\n\n return `${customClasses} ${columnType} ${columnField}`;\n }\n\n ngOnChanges(changes: SimpleChanges) {\n this.showPaginator = this.showPaginator ?? this._config.showPaginator;\n this.showFirstLastButtons = this.showFirstLastButtons ?? this._config.showFirstLastButtons;\n this.pageSizeOptions = this.pageSizeOptions ?? this._config.pageSizeOptions;\n this.hidePageSize = this.hidePageSize ?? this._config.hidePageSize;\n this.noResultText = this.noResultText ?? this._config.noResultsText;\n\n this.displayedColumns = this.columns.filter(item => !item.hide).map(item => item.field);\n\n if (this.rowSelectable && !this.displayedColumns.includes(this.selectionColumn)) {\n this.displayedColumns.unshift(this.selectionColumn);\n }\n\n if (this.showContextMenu && !this.displayedColumns.includes(this.contextMenuColumn)) {\n this.displayedColumns.push(this.contextMenuColumn);\n }\n\n if (this.rowSelectable) {\n this.rowSelection = new SelectionModel<T>(this.multiSelectable, this.rowSelected);\n }\n\n if (!this.data) {\n this.data = [];\n }\n\n if (Array.isArray(this.data)) {\n this._data = this.data as T[];\n } else {\n this._page = this.data as PagedData<T>;\n this._data = this._page.items ?? [];\n this.total = this._page.totalCount ?? 0;\n this.pageSize = this._page.pageSize ?? this.pageSize ?? this._config.pageSize;\n this.pageIndex = this._page.pageNumber ? this._page.pageNumber - 1 : this.pageIndex;\n }\n\n if (this.dataSource) {\n this.dataSource.disconnect();\n }\n\n this.dataSource = new MatTableDataSource(this._data);\n\n if (changes.data) {\n this.scrollToTop();\n }\n }\n\n getIndex(index: number, dataIndex: number) {\n return typeof index === 'undefined' ? dataIndex : index;\n }\n\n isAllSelected() {\n const numSelected = this.rowSelection.selected.length;\n const numRows = this.dataSource.data.filter(row => !this.rowSelectionFormatter.disabled?.(row)).length;\n return numSelected === numRows;\n }\n\n toggleSelectAllCheckbox(): void {\n if (this.isAllSelected()) {\n this.rowSelection.clear();\n this.rowSelectionChange.emit(this.rowSelection.selected);\n return;\n }\n this.dataSource.data.forEach(row => {\n if (!this.rowSelectionFormatter.disabled?.(row)) {\n this.rowSelection.select(row);\n }\n });\n this.rowSelectionChange.emit(this.rowSelection.selected);\n }\n\n toggleRowSelection(row: any) {\n this.rowSelection.toggle(row);\n this.rowSelectionChange.emit(this.rowSelection.selected);\n }\n\n handlePage(e: PageEvent) {\n this.pageChange.emit(e);\n }\n\n scrollToTop(): void {\n this._elementRef.nativeElement.scrollTop = 0;\n }\n\n private convertToKebabCase(value: string): string {\n return value?.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();\n }\n}\n","<!-- Table content -->\n<table mat-table \n [ngClass]=\"{'mat-table-hover': rowHover, 'mat-table-striped': rowStriped, 'mat-table-with-data': !hasNoResult }\"\n [dataSource]=\"dataSource\"\n matSort\n [matSortActive]=\"sortActive\"\n [matSortDirection]=\"sortDirection\"\n [matSortDisableClear]=\"sortDisableClear\"\n [matSortDisabled]=\"sortDisabled\"\n [matSortStart]=\"sortStart\"\n (matSortChange)=\"sortChange.emit($event)\">\n\n <!-- Selection column -->\n <ng-container *ngIf=\"rowSelectable\" [matColumnDef]=\"selectionColumn\">\n <th mat-header-cell *matHeaderCellDef class=\"selection-cell\">\n <mat-checkbox *ngIf=\"multiSelectable && showSelectAllCheckbox\"\n [checked]=\"rowSelection.hasValue() && isAllSelected()\"\n [indeterminate]=\"rowSelection.hasValue() && !isAllSelected()\"\n (change)=\"$event ? toggleSelectAllCheckbox() : null\">\n </mat-checkbox>\n </th>\n <td mat-cell *matCellDef=\"let row; let index = index; let dataIndex = dataIndex;\"\n class=\"selection-cell\"\n (click)=\"$event.stopPropagation()\">\n <mat-checkbox\n *ngIf=\"multiSelectable && !(rowSelectionFormatter.hideCheckbox && rowSelectionFormatter.hideCheckbox!(row))\"\n [disabled]=\"rowSelectionFormatter.disabled && rowSelectionFormatter.disabled!(row)\"\n [checked]=\"rowSelection.isSelected(row)\"\n (change)=\"$event ? toggleRowSelection(row) : null\">\n </mat-checkbox>\n <mat-radio-button\n *ngIf=\"!multiSelectable && !(rowSelectionFormatter.hideCheckbox && rowSelectionFormatter.hideCheckbox!(row))\"\n [disabled]=\"rowSelectionFormatter.disabled && rowSelectionFormatter.disabled!(row)\"\n [checked]=\"rowSelection.isSelected(row)\"\n [value]=\"rowSelection.isSelected(row)\"\n (change)=\"$event ? toggleRowSelection(row) : null\">\n </mat-radio-button>\n </td>\n </ng-container>\n\n <!-- Context menu column -->\n <ng-container *ngIf=\"showContextMenu\" [matColumnDef]=\"contextMenuColumn\">\n <th mat-header-cell *matHeaderCellDef class=\"action-cell\"></th>\n <td mat-cell *matCellDef=\"let row; let index = index; let dataIndex = dataIndex;\"\n class=\"action-cell\">\n <ng-template [ngIf]=\"isTemplateRef(contextMenuTemplate)\" [ngIfElse]=\"contextMenuTpl\">\n <ng-template [ngTemplateOutlet]=\"contextMenuTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row }\">\n </ng-template>\n </ng-template>\n <ng-template #contextMenuTpl>\n <entry-cell-context-menu\n [items]=\"contextMenuItems\"\n [rowData]=\"row\"\n [rowMenuFormatter]=\"rowContextMenuFormatter\"\n (selected)=\"contextMenuItemSelected.emit({itemId: $event, rowData: row})\"\n ></entry-cell-context-menu>\n </ng-template>\n </td>\n </ng-container>\n\n <ng-container *ngFor=\"let col of columns;\">\n <ng-container [matColumnDef]=\"col.field\"\n [sticky]=\"col.pinned==='left'\" [stickyEnd]=\"col.pinned==='right'\">\n <th mat-header-cell *matHeaderCellDef\n [class]=\"getColumnClassList(col)\"\n [ngClass]=\"{'mat-table-sticky-left': col.pinned === 'left', 'mat-table-sticky-right': col.pinned === 'right'}\"\n [ngStyle]=\"{'width': col.width, 'min-width': col.width}\">\n <ng-template [ngIf]=\"isTemplateRef(headerTemplate)\" [ngIfElse]=\"headerTpl\">\n <ng-template [ngTemplateOutlet]=\"headerTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col }\">\n </ng-template>\n </ng-template>\n <ng-template #headerTpl>\n <ng-template [ngIf]=\"headerTemplate && isTemplateRef(headerTemplate[col.field])\"\n [ngIfElse]=\"defaultHeaderTpl\">\n <ng-template [ngTemplateOutlet]=\"headerTemplate[col.field]\"\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col }\">\n </ng-template>\n </ng-template>\n </ng-template>\n <ng-template #defaultHeaderTpl>\n <div [mat-sort-header]=\"col.sortProp?.id || col.field\"\n [disabled]=\"!col.sortable\"\n [disableClear]=\"col.sortProp?.disableClear\">\n <span>{{col.header}}</span>\n </div>\n </ng-template>\n </th>\n\n <td mat-cell *matCellDef=\"let row; let index = index; let dataIndex = dataIndex;\"\n [class]=\"getColumnClassList(col)\"\n [ngClass]=\"{'mat-table-sticky-left': col.pinned === 'left', 'mat-table-sticky-right': col.pinned === 'right'}\"\n [ngStyle]=\"{'width': col.width, 'min-width': col.width}\">\n <ng-template [ngIf]=\"isTemplateRef(cellTemplate)\" [ngIfElse]=\"cellTpl\">\n <ng-template [ngTemplateOutlet]=\"cellTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: getIndex(index, dataIndex), colDef: col }\">\n </ng-template>\n </ng-template>\n <ng-template #cellTpl>\n <ng-template [ngIf]=\"cellTemplate && isTemplateRef(cellTemplate[col.field])\"\n [ngIfElse]=\"colDefCellTpl\">\n <ng-template [ngTemplateOutlet]=\"cellTemplate[col.field]\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: getIndex(index, dataIndex), colDef: col }\">\n </ng-template>\n </ng-template>\n </ng-template>\n <ng-template #colDefCellTpl>\n <ng-template [ngIf]=\"col.cellTemplate\" [ngIfElse]=\"defaultCellTpl\"\n [ngTemplateOutlet]=\"col.cellTemplate ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: getIndex(index, dataIndex), colDef: col }\">\n </ng-template>\n </ng-template>\n <ng-template #defaultCellTpl>\n <entry-cell [rowData]=\"row\" [colDef]=\"col\"></entry-cell>\n </ng-template>\n </td>\n </ng-container>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\n <tr mat-row\n *matRowDef=\"let row; let index = index; let dataIndex = dataIndex; columns: displayedColumns;\"\n [ngClass]=\"getRowClassList(row, getIndex(index, dataIndex))\"\n [attr.tabindex]=\"rowFocusVisible ? 0 : -1\"\n (click)=\"rowClick.emit(row)\"\n (keyup.enter)=\"rowClick.emit(row)\">\n </tr>\n</table>\n\n<!-- No results -->\n<div class=\"no-results mat-body-2\" *ngIf=\"hasNoResult\">\n <ng-template [ngIf]=\"isTemplateRef(noResultTemplate)\" [ngIfElse]=\"defaultNoResultTpl\">\n <ng-template [ngTemplateOutlet]=\"noResultTemplate\"></ng-template>\n </ng-template>\n <ng-template #defaultNoResultTpl>{{noResultText}}</ng-template>\n</div>\n\n<!-- Pagination -->\n<ng-template [ngIf]=\"isTemplateRef(paginationTemplate)\" [ngIfElse]=\"defaultPaginationTemplate\">\n <ng-template [ngTemplateOutlet]=\"paginationTemplate\"></ng-template>\n</ng-template>\n<ng-template #defaultPaginationTemplate>\n <mat-paginator class=\"pagination\" *ngIf=\"showPaginator\"\n [showFirstLastButtons]=\"showFirstLastButtons\"\n [length]=\"total\"\n [pageIndex]=\"pageIndex\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n [hidePageSize]=\"hidePageSize\"\n (page)=\"handlePage($event)\"\n [disabled]=\"pageDisabled\">\n </mat-paginator>\n</ng-template>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatSortModule } from '@angular/material/sort';\nimport { MatPaginatorModule } from '@angular/material/paginator';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatRadioModule } from '@angular/material/radio';\nimport {MatButtonModule} from '@angular/material/button';\n\nimport { EntryTableComponent } from './components/entry-table/entry-table.component';\nimport { EntryCellComponent } from './components/entry-cell/entry-cell.component';\nimport { EntryCellContextMenuComponent } from './components/entry-cell-context-menu/entry-cell-context-menu.component';\nimport { EntryCellFormattedValueComponent } from './components/entry-cell-formatted-value/entry-cell-formatted-value.component';\nimport { DEFAULT_PERCENTAGE_MULTIPLIER } from './interfaces';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n MatTableModule,\n MatSortModule,\n MatPaginatorModule,\n MatCheckboxModule,\n MatIconModule,\n MatMenuModule,\n MatRadioModule,\n CommonModule,\n MatButtonModule\n ],\n declarations: [\n EntryTableComponent,\n EntryCellComponent,\n EntryCellContextMenuComponent,\n EntryCellFormattedValueComponent\n ],\n exports: [\n EntryTableComponent,\n EntryCellComponent,\n EntryCellContextMenuComponent,\n EntryCellFormattedValueComponent\n ],\n providers: [\n { provide: DEFAULT_PERCENTAGE_MULTIPLIER, useValue: 1 }\n ]\n})\nexport class EntryTableModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.EntryCellFormattedValueComponent","i2","i3","i4","i7.EntryCellComponent","i8.EntryCellContextMenuComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;MAEa,gBAAgB,CAAA;AAA7B,IAAA,WAAA,GAAA;AACS,QAAA,IAAa,CAAA,aAAA,GAAG,IAAI,CAAC;AACrB,QAAA,IAAoB,CAAA,oBAAA,GAAG,KAAK,CAAC;AAC7B,QAAA,IAAQ,CAAA,QAAA,GAAG,EAAE,CAAC;QACd,IAAe,CAAA,eAAA,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;AAChC,QAAA,IAAY,CAAA,YAAA,GAAG,KAAK,CAAC;AACrB,QAAA,IAAa,CAAA,aAAA,GAAG,kBAAkB,CAAC;KAC3C;AAAA,CAAA;AAAA,CAAC;MAEW,kBAAkB,GAAG,IAAI,cAAc,CAClD,oBAAoB,EACpB;AACE,IAAA,UAAU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