@verisoft/ui-primeng 20.0.0 → 20.1.0

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 (219) hide show
  1. package/.eslintrc.json +43 -0
  2. package/assets/.gitkeep +0 -0
  3. package/jest.config.ts +22 -0
  4. package/ng-package.json +14 -0
  5. package/package.json +6 -18
  6. package/project.json +36 -0
  7. package/src/index.ts +34 -0
  8. package/src/lib/components/breadcrumb/breadcrumb.component.html +11 -0
  9. package/src/lib/components/breadcrumb/breadcrumb.component.scss +18 -0
  10. package/src/lib/components/breadcrumb/breadcrumb.component.spec.ts +21 -0
  11. package/src/lib/components/breadcrumb/breadcrumb.component.stories.ts +36 -0
  12. package/src/lib/components/breadcrumb/breadcrumb.component.ts +27 -0
  13. package/src/lib/components/breadcrumb/breadcrumb.pipe.ts +13 -0
  14. package/src/lib/components/breadcrumb/index.ts +1 -0
  15. package/src/lib/components/button/button-severity.pipe.ts +20 -0
  16. package/src/lib/components/button/button.component.html +20 -0
  17. package/src/lib/components/button/button.component.scss +0 -0
  18. package/src/lib/components/button/button.component.spec.ts +21 -0
  19. package/src/lib/components/button/button.component.ts +49 -0
  20. package/src/lib/components/button/index.ts +1 -0
  21. package/src/lib/components/calendar/calendar.component.html +53 -0
  22. package/src/lib/components/calendar/calendar.component.scss +0 -0
  23. package/src/lib/components/calendar/calendar.component.spec.ts +21 -0
  24. package/src/lib/components/calendar/calendar.component.ts +70 -0
  25. package/src/lib/components/calendar/index.ts +1 -0
  26. package/src/lib/components/checkbox/checkbox.component.html +20 -0
  27. package/src/lib/components/checkbox/checkbox.component.scss +15 -0
  28. package/src/lib/components/checkbox/checkbox.component.spec.ts +21 -0
  29. package/src/lib/components/checkbox/checkbox.component.stories.ts +72 -0
  30. package/src/lib/components/checkbox/checkbox.component.ts +46 -0
  31. package/src/lib/components/checkbox/index.ts +1 -0
  32. package/src/lib/components/confirm-dialog/confirm-dialog.component.html +51 -0
  33. package/src/lib/components/confirm-dialog/confirm-dialog.component.scss +3 -0
  34. package/src/lib/components/confirm-dialog/confirm-dialog.component.spec.ts +21 -0
  35. package/src/lib/components/confirm-dialog/confirm-dialog.component.stories.ts +74 -0
  36. package/src/lib/components/confirm-dialog/confirm-dialog.component.ts +73 -0
  37. package/src/lib/components/confirm-dialog/index.ts +1 -0
  38. package/src/lib/components/dropdown/dropdown.component.html +93 -0
  39. package/src/lib/components/dropdown/dropdown.component.scss +16 -0
  40. package/src/lib/components/dropdown/dropdown.component.spec.ts +21 -0
  41. package/src/lib/components/dropdown/dropdown.component.ts +139 -0
  42. package/src/lib/components/dropdown/index.ts +1 -0
  43. package/src/lib/components/dropdown-button/dropdown-button.component.html +1 -0
  44. package/src/lib/components/dropdown-button/dropdown-button.component.ts +20 -0
  45. package/src/lib/components/dropdown-button/index.ts +1 -0
  46. package/src/lib/components/errors/error.component.html +7 -0
  47. package/src/lib/components/errors/error.component.scss +3 -0
  48. package/src/lib/components/errors/error.component.ts +34 -0
  49. package/src/lib/components/errors/index.ts +1 -0
  50. package/src/lib/components/feature-list/directives/feature-list-column.directive.ts +32 -0
  51. package/src/lib/components/feature-list/directives/feature-list-filter-field.directive.ts +8 -0
  52. package/src/lib/components/feature-list/feature-list-filter.pipe.ts +21 -0
  53. package/src/lib/components/feature-list/feature-list-page.component.ts +32 -0
  54. package/src/lib/components/feature-list/feature-list-page.model.ts +42 -0
  55. package/src/lib/components/feature-list/feature-list.component.html +59 -0
  56. package/src/lib/components/feature-list/feature-list.component.scss +10 -0
  57. package/src/lib/components/feature-list/feature-list.component.ts +341 -0
  58. package/src/lib/components/feature-list/index.ts +5 -0
  59. package/src/lib/components/filter/directives/filter-field.directive.ts +34 -0
  60. package/src/lib/components/filter/filter.component.html +68 -0
  61. package/src/lib/components/filter/filter.component.scss +0 -0
  62. package/src/lib/components/filter/filter.component.spec.ts +21 -0
  63. package/src/lib/components/filter/filter.component.stories.ts +23 -0
  64. package/src/lib/components/filter/filter.component.ts +281 -0
  65. package/src/lib/components/filter/filter.model.ts +18 -0
  66. package/src/lib/components/filter/index.ts +2 -0
  67. package/src/lib/components/form-field/form-field.component.html +42 -0
  68. package/src/lib/components/form-field/form-field.component.scss +0 -0
  69. package/src/lib/components/form-field/form-field.component.spec.ts +21 -0
  70. package/src/lib/components/form-field/form-field.component.stories.ts +69 -0
  71. package/src/lib/components/form-field/form-field.component.ts +37 -0
  72. package/src/lib/components/form-field/index.ts +1 -0
  73. package/src/lib/components/header/header.component.html +84 -0
  74. package/src/lib/components/header/header.component.scss +0 -0
  75. package/src/lib/components/header/header.component.spec.ts +21 -0
  76. package/src/lib/components/header/header.component.stories.ts +24 -0
  77. package/src/lib/components/header/header.component.ts +65 -0
  78. package/src/lib/components/header/index.ts +2 -0
  79. package/src/lib/components/header/services/header-provider.service.ts +15 -0
  80. package/src/lib/components/icon/icon.component.html +2 -0
  81. package/src/lib/components/icon/icon.component.scss +51 -0
  82. package/src/lib/components/icon/icon.component.ts +86 -0
  83. package/src/lib/components/icon/index.ts +2 -0
  84. package/src/lib/components/input-group/index.ts +1 -0
  85. package/src/lib/components/input-group/input-group.component.html +34 -0
  86. package/src/lib/components/input-group/input-group.component.spec.ts +21 -0
  87. package/src/lib/components/input-group/input-group.component.ts +58 -0
  88. package/src/lib/components/loader/index.ts +1 -0
  89. package/src/lib/components/loader/loader.component.html +5 -0
  90. package/src/lib/components/loader/loader.component.scss +0 -0
  91. package/src/lib/components/loader/loader.component.spec.ts +21 -0
  92. package/src/lib/components/loader/loader.component.ts +16 -0
  93. package/src/lib/components/multiselect/index.ts +1 -0
  94. package/src/lib/components/multiselect/multiselect.component.html +67 -0
  95. package/src/lib/components/multiselect/multiselect.component.scss +0 -0
  96. package/src/lib/components/multiselect/multiselect.component.spec.ts +21 -0
  97. package/src/lib/components/multiselect/multiselect.component.ts +120 -0
  98. package/src/lib/components/number-input/index.ts +1 -0
  99. package/src/lib/components/number-input/number-input.component.html +22 -0
  100. package/src/lib/components/number-input/number-input.component.spec.ts +21 -0
  101. package/src/lib/components/number-input/number-input.component.ts +55 -0
  102. package/src/lib/components/page-header/index.ts +1 -0
  103. package/src/lib/components/page-header/page-header.component.html +35 -0
  104. package/src/lib/components/page-header/page-header.component.scss +0 -0
  105. package/src/lib/components/page-header/page-header.component.spec.ts +21 -0
  106. package/src/lib/components/page-header/page-header.component.ts +31 -0
  107. package/src/lib/components/password/index.ts +1 -0
  108. package/src/lib/components/password/password.component.html +24 -0
  109. package/src/lib/components/password/password.component.scss +0 -0
  110. package/src/lib/components/password/password.component.spec.ts +21 -0
  111. package/src/lib/components/password/password.component.ts +56 -0
  112. package/src/lib/components/radiobutton/index.ts +1 -0
  113. package/src/lib/components/radiobutton/radiobutton.component.html +34 -0
  114. package/src/lib/components/radiobutton/radiobutton.component.scss +6 -0
  115. package/src/lib/components/radiobutton/radiobutton.component.spec.ts +21 -0
  116. package/src/lib/components/radiobutton/radiobutton.component.stories.ts +71 -0
  117. package/src/lib/components/radiobutton/radiobutton.component.ts +61 -0
  118. package/src/lib/components/section/index.ts +1 -0
  119. package/src/lib/components/section/section.component.html +25 -0
  120. package/src/lib/components/section/section.component.scss +0 -0
  121. package/src/lib/components/section/section.component.spec.ts +21 -0
  122. package/src/lib/components/section/section.component.ts +31 -0
  123. package/src/lib/components/shared-components/.eslintrc.json +42 -0
  124. package/src/lib/components/shared-components/action-button-group/action-button-group.component.html +25 -0
  125. package/src/lib/components/shared-components/action-button-group/action-button-group.component.scss +0 -0
  126. package/src/lib/components/shared-components/action-button-group/action-button-group.component.spec.ts +21 -0
  127. package/src/lib/components/shared-components/action-button-group/action-button-group.component.ts +111 -0
  128. package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.html +10 -0
  129. package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.scss +0 -0
  130. package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.spec.ts +21 -0
  131. package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.ts +69 -0
  132. package/src/lib/components/shared-components/action-button-group/index.ts +2 -0
  133. package/src/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.ts +142 -0
  134. package/src/lib/components/shared-components/dynamic-component/dynamic-component.component.ts +56 -0
  135. package/src/lib/components/shared-components/dynamic-component/index.ts +2 -0
  136. package/src/lib/components/shared-components/generic-field/generic-field.component.html +98 -0
  137. package/src/lib/components/shared-components/generic-field/generic-field.component.spec.ts +21 -0
  138. package/src/lib/components/shared-components/generic-field/generic-field.component.ts +90 -0
  139. package/src/lib/components/shared-components/generic-field/index.ts +1 -0
  140. package/src/lib/components/shared-components/generic-form/generic-form.component.html +46 -0
  141. package/src/lib/components/shared-components/generic-form/generic-form.component.spec.ts +21 -0
  142. package/src/lib/components/shared-components/generic-form/generic-form.component.ts +56 -0
  143. package/src/lib/components/shared-components/generic-form/generic-form.model.spec.ts +82 -0
  144. package/src/lib/components/shared-components/generic-form/generic-form.model.ts +68 -0
  145. package/src/lib/components/shared-components/generic-form/index.ts +2 -0
  146. package/src/lib/components/shared-components/index.ts +4 -0
  147. package/src/lib/components/side-menu/index.ts +2 -0
  148. package/src/lib/components/side-menu/side-menu.component.html +53 -0
  149. package/src/lib/components/side-menu/side-menu.component.scss +0 -0
  150. package/src/lib/components/side-menu/side-menu.component.spec.ts +21 -0
  151. package/src/lib/components/side-menu/side-menu.component.ts +96 -0
  152. package/src/lib/components/side-menu/side-menu.module.ts +66 -0
  153. package/src/lib/components/slider/index.ts +1 -0
  154. package/src/lib/components/slider/slider.component.html +19 -0
  155. package/src/lib/components/slider/slider.component.spec.ts +21 -0
  156. package/src/lib/components/slider/slider.component.ts +56 -0
  157. package/src/lib/components/snackbar/index.ts +2 -0
  158. package/src/lib/components/snackbar/services/snackbar.service.ts +45 -0
  159. package/src/lib/components/snackbar/snackbar.component.html +3 -0
  160. package/src/lib/components/snackbar/snackbar.component.scss +0 -0
  161. package/src/lib/components/snackbar/snackbar.component.spec.ts +21 -0
  162. package/src/lib/components/snackbar/snackbar.component.stories.ts +70 -0
  163. package/src/lib/components/snackbar/snackbar.component.ts +25 -0
  164. package/src/lib/components/stepper/index.ts +1 -0
  165. package/src/lib/components/stepper/stepper.component.html +35 -0
  166. package/src/lib/components/stepper/stepper.component.spec.ts +21 -0
  167. package/src/lib/components/stepper/stepper.component.ts +39 -0
  168. package/src/lib/components/switch/index.ts +1 -0
  169. package/src/lib/components/switch/switch.component.html +18 -0
  170. package/src/lib/components/switch/switch.component.scss +0 -0
  171. package/src/lib/components/switch/switch.component.spec.ts +21 -0
  172. package/src/lib/components/switch/switch.component.stories.ts +65 -0
  173. package/src/lib/components/switch/switch.component.ts +52 -0
  174. package/src/lib/components/tab-view/index.ts +2 -0
  175. package/src/lib/components/tab-view/tab-view-item.component.ts +22 -0
  176. package/src/lib/components/tab-view/tab-view.component.html +41 -0
  177. package/src/lib/components/tab-view/tab-view.component.ts +55 -0
  178. package/src/lib/components/table/index.ts +1 -0
  179. package/src/lib/components/table/table-filter.pipe.ts +59 -0
  180. package/src/lib/components/table/table.component.html +127 -0
  181. package/src/lib/components/table/table.component.scss +11 -0
  182. package/src/lib/components/table/table.component.spec.ts +21 -0
  183. package/src/lib/components/table/table.component.stories.ts +55 -0
  184. package/src/lib/components/table/table.component.ts +288 -0
  185. package/src/lib/components/table/table.models.ts +26 -0
  186. package/src/lib/components/tag/index.ts +2 -0
  187. package/src/lib/components/tag/tag.component.html +12 -0
  188. package/src/lib/components/tag/tag.component.scss +33 -0
  189. package/src/lib/components/tag/tag.component.ts +83 -0
  190. package/src/lib/components/textarea/index.ts +1 -0
  191. package/src/lib/components/textarea/textarea.component.html +40 -0
  192. package/src/lib/components/textarea/textarea.component.scss +5 -0
  193. package/src/lib/components/textarea/textarea.component.spec.ts +21 -0
  194. package/src/lib/components/textarea/textarea.component.stories.ts +98 -0
  195. package/src/lib/components/textarea/textarea.component.ts +62 -0
  196. package/src/lib/components/textfield/index.ts +1 -0
  197. package/src/lib/components/textfield/textfield.component.html +82 -0
  198. package/src/lib/components/textfield/textfield.component.scss +23 -0
  199. package/src/lib/components/textfield/textfield.component.spec.ts +21 -0
  200. package/src/lib/components/textfield/textfield.component.stories.ts +85 -0
  201. package/src/lib/components/textfield/textfield.component.ts +68 -0
  202. package/src/lib/components/tooltip/index.ts +1 -0
  203. package/src/lib/components/tooltip/tooltip.component.html +3 -0
  204. package/src/lib/components/tooltip/tooltip.component.ts +17 -0
  205. package/src/lib/icons.ts +36 -0
  206. package/src/lib/interceptors/http-error-message.interceptor.ts +35 -0
  207. package/src/lib/pages/not-found-page/not-found-page.component.html +26 -0
  208. package/src/lib/pages/not-found-page/not-found-page.component.scss +0 -0
  209. package/src/lib/pages/not-found-page/not-found-page.component.spec.ts +21 -0
  210. package/src/lib/pages/not-found-page/not-found-page.component.ts +16 -0
  211. package/src/tab-view.ts +1 -0
  212. package/src/test-setup.ts +8 -0
  213. package/tsconfig.json +29 -0
  214. package/tsconfig.lib.json +18 -0
  215. package/tsconfig.lib.prod.json +9 -0
  216. package/tsconfig.spec.json +16 -0
  217. package/fesm2022/verisoft-ui-primeng.mjs +0 -2866
  218. package/fesm2022/verisoft-ui-primeng.mjs.map +0 -1
  219. package/index.d.ts +0 -729
@@ -1,2866 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, Input, Optional, Self, Component, forwardRef, ChangeDetectionStrategy, Pipe, input, ViewEncapsulation, Inject, Injectable, EventEmitter, ViewChild, Output, NgModule, ChangeDetectorRef, ContentChild, ContentChildren, Directive, InjectionToken, SimpleChange, Injector, ViewContainerRef } from '@angular/core';
3
- import * as i1 from '@angular/forms';
4
- import { ReactiveFormsModule, UntypedFormGroup, UntypedFormControl, FormGroup, NG_VALUE_ACCESSOR } from '@angular/forms';
5
- import * as i1$4 from '@verisoft/ui-core';
6
- import { BaseFormInputComponent, WarningPipe, BaseInputControls, INPUT_GROUP_COMPONENT_TOKEN, SlotPosition, FieldSize, FieldType, TEXTFIELD_COMPONENT_TOKEN, BreadcrumbCoreComponent, BREADCRUMB_COMPONENT_TOKEN, CHECKBOX_COMPONENT_TOKEN, CALENDAR_COMPONENT_TOKEN, PASSWORD_COMPONENT_TOKEN, ControlSeverity, IconPosition, BUTTON_COMPONENT_TOKEN, SECTION_COMPONENT_TOKEN, DROPDOWN_BUTTON_COMPONENT_TOKEN, RADIOBUTTON_COMPONENT_TOKEN, NUMBER_INPUT_COMPONENT_TOKEN, SETTINGS_MENU, UnsubscribeComponent, HEADER_COMPONENT_TOKEN, TEXTAREA_COMPONENT_TOKEN, LOADER_COMPONENT_TOKEN, SNACKBAR_COMPONENT_TOKEN, SideMenuService, ScreenSizeService, MENU_TOKEN, SideMenuProviderService, SIDE_MENU_COMPONENT_TOKEN, SIDE_MENU_STATE_TOKEN, ColumnModel, RowModel, TABLE_COLUMN_PROVIDER, TABLE_COMPONENT_TOKEN, ACTION_BUTTON_GROUP_COMPONENT_TOKEN, queryListChanged, DROPDOWN_COMPONENT_TOKEN, MULTISELECT_COMPONENT_TOKEN, GenericFieldType, DatasourceDirective, GENERIC_FIELD_COMPONENT_TOKEN, DEFAULT_DEBOUNCE_TIME, DialogService, isFilterEmpty, ButtonShortCutDirective, FILTER_COMPONENT_TOKEN, MAX_COLUMN_CHAR_COUNT, TableSelectionMode, downloadFile, TableDatasourceDirective, TableFilterDirective, TableColumnDirective, PageHeaderCoreComponent, PAGE_HEADER_COMPONENT_TOKEN, LayoutType, STEPPER_COMPONENT_TOKEN, SLIDER_COMPONENT_TOKEN, CONFIRM_DIALOG_COMPONENT_TOKEN, SWITCH_COMPONENT_TOKEN, TAB_VIEW_COMPONENT_TOKEN } from '@verisoft/ui-core';
7
- import * as i3$1 from 'primeng/inputgroup';
8
- import { InputGroupModule } from 'primeng/inputgroup';
9
- import * as i2$1 from 'primeng/inputgroupaddon';
10
- import { InputGroupAddonModule } from 'primeng/inputgroupaddon';
11
- import * as i4 from 'primeng/inputtext';
12
- import { InputTextModule } from 'primeng/inputtext';
13
- import * as i2 from '@angular/common';
14
- import { CommonModule, NgClass, AsyncPipe, NgTemplateOutlet } from '@angular/common';
15
- import { ERROR_PROVIDER_TOKEN, DEFAULT_SEARCH_LIMIT, SortDirection, BASE_URL_PATH, BaseHttpService, convertDatasource, DEFAULT_PAGE_SIZE } from '@verisoft/core';
16
- import * as i1$1 from 'primeng/message';
17
- import { MessageModule } from 'primeng/message';
18
- import * as i3 from 'primeng/tooltip';
19
- import { TooltipModule } from 'primeng/tooltip';
20
- import * as i2$2 from 'primeng/floatlabel';
21
- import { FloatLabelModule } from 'primeng/floatlabel';
22
- import * as i1$2 from 'primeng/breadcrumb';
23
- import { BreadcrumbModule } from 'primeng/breadcrumb';
24
- import * as i3$2 from 'primeng/checkbox';
25
- import { CheckboxModule } from 'primeng/checkbox';
26
- import { DatePicker } from 'primeng/datepicker';
27
- import * as i2$3 from 'primeng/password';
28
- import { PasswordModule } from 'primeng/password';
29
- import * as i2$4 from '@angular/router';
30
- import { RouterModule, Router, ActivatedRoute, RouterOutlet, RouterLink } from '@angular/router';
31
- import * as i1$3 from 'primeng/button';
32
- import { ButtonModule } from 'primeng/button';
33
- import * as i6 from 'primeng/ripple';
34
- import { RippleModule } from 'primeng/ripple';
35
- import * as i3$3 from 'primeng/radiobutton';
36
- import { RadioButtonModule } from 'primeng/radiobutton';
37
- import * as i2$5 from 'primeng/inputnumber';
38
- import { InputNumberModule } from 'primeng/inputnumber';
39
- import * as i4$1 from 'primeng/avatar';
40
- import { AvatarModule } from 'primeng/avatar';
41
- import { Textarea } from 'primeng/textarea';
42
- import * as i1$5 from 'primeng/progressspinner';
43
- import { ProgressSpinnerModule } from 'primeng/progressspinner';
44
- import * as i1$6 from 'primeng/api';
45
- import * as i2$6 from 'primeng/toast';
46
- import { ToastModule } from 'primeng/toast';
47
- import * as i3$5 from '@ngx-translate/core';
48
- import { TranslateModule } from '@ngx-translate/core';
49
- import * as i1$7 from 'primeng/tree';
50
- import { TreeModule } from 'primeng/tree';
51
- import * as i2$7 from 'primeng/table';
52
- import { TableModule } from 'primeng/table';
53
- import { Subject, takeUntil, combineLatestWith, BehaviorSubject, startWith, map, debounceTime, distinctUntilChanged, take, switchMap, forkJoin, of, catchError, throwError } from 'rxjs';
54
- import * as i2$8 from 'primeng/select';
55
- import { SelectModule } from 'primeng/select';
56
- import * as i3$4 from 'primeng/multiselect';
57
- import { MultiSelectModule } from 'primeng/multiselect';
58
- import { HttpClient } from '@angular/common/http';
59
- import * as i2$9 from 'primeng/stepper';
60
- import { StepperModule } from 'primeng/stepper';
61
- import * as i2$a from 'primeng/slider';
62
- import { SliderModule } from 'primeng/slider';
63
- import * as i3$6 from 'primeng/dialog';
64
- import { DialogModule } from 'primeng/dialog';
65
- import { ToggleSwitch } from 'primeng/toggleswitch';
66
- import { v4 } from 'uuid';
67
- import * as i1$8 from 'primeng/tabs';
68
- import { TabsModule } from 'primeng/tabs';
69
-
70
- const Icons = {
71
- add: 'pi pi-plus',
72
- minus: 'pi pi-minus',
73
- delete: 'pi pi-trash',
74
- filter: 'pi pi-filter',
75
- download: 'pi pi-download',
76
- save: 'pi pi-save',
77
- print: 'pi pi-print',
78
- calendar: 'pi pi-calendar',
79
- edit: 'pi pi-pencil',
80
- settings: 'pi pi-cog',
81
- house: 'pi pi-home',
82
- chevronRight: 'pi pi-chevron-right',
83
- chevronLeft: 'pi pi-chevron-left',
84
- chevronDown: 'pi pi-chevron-down',
85
- chevronUp: 'pi pi-chevron-up',
86
- checkbox: 'pi pi-check',
87
- warning: 'pi pi-exclamation-triangle',
88
- search: 'pi pi-search',
89
- action: 'pi pi-bars',
90
- user: 'pi pi-user',
91
- logout: 'pi pi-user',
92
- crossCircle: 'pi pi-times-circle',
93
- infoCircle: 'pi pi-info-circle',
94
- cross: 'pi pi-times',
95
- arrowLeft: 'pi pi-arrow-left',
96
- arrowRight: 'pi pi-arrow-right',
97
- questionCircle: 'pi pi-question-circle',
98
- checkCircle: 'pi pi-check-circle',
99
- sitemap: 'pi pi-sitemap',
100
- check: 'pi pi-check',
101
- envelope: 'pi pi-envelope',
102
- loader: 'pi pi-loader',
103
- };
104
-
105
- class FormFieldComponent extends BaseFormInputComponent {
106
- constructor(ngControl) {
107
- super(ngControl);
108
- this.display = 'block';
109
- this.errorProvider = inject(ERROR_PROVIDER_TOKEN);
110
- this.icons = Icons;
111
- }
112
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: FormFieldComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
113
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: FormFieldComponent, isStandalone: true, selector: "v-form-field", inputs: { display: "display", variant: "variant" }, usesInheritance: true, ngImport: i0, template: "<div class=\"v-form-field mt-3\" [attr.data-testId]=\"testId\">\n <div [ngClass]=\"{ 'd-block d-md-flex': display === 'flex', 'd-lg-flex': display === 'block' }\">\n <div class=\"col-12 col-md-4 d-flex align-items-center\">\n <label\n class=\"v-formfield-label d-flex align-items-center\"\n [ngClass]=\"{\n 'pb-2': display === 'block',\n 'text-error': (errorProvider.mapError(ngControl?.errors ?? [])) && ngControl?.dirty, \n 'text-warning': (ngControl?.errors | warning) && ngControl?.dirty,\n 'text-default': !ngControl?.invalid && !ngControl?.dirty,\n 'text-secondary': !ngControl?.invalid && ngControl?.dirty\n }\"\n >{{ label }}@if (label) {\n <span>:</span>\n }\n @if (required) {\n <span class=\"text-error ps-1\">*</span>\n }\n </label>\n @if (tooltip) {\n <i\n [pTooltip]=\"tooltip\"\n class=\"ps-2 text-default v-tooltip {{ icons.infoCircle }}\"\n ></i>\n }\n </div>\n <div\n class=\"col-sm-12 col-md-8 col-lg-8\"\n >\n <div\n class=\"v-form-field-content align-items-center w-100\"\n [ngClass]=\"{ 'd-flex': display === 'flex', 'd-block': display === 'block', 'input-warning': ngControl?.errors | warning }\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n <div class=\"align-content-center\">\n <ng-container>\n </ng-container>\n </div>\n</div>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MessageModule }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i3.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo"] }, { kind: "pipe", type: WarningPipe, name: "warning" }] }); }
114
- }
115
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: FormFieldComponent, decorators: [{
116
- type: Component,
117
- args: [{ selector: 'v-form-field', imports: [
118
- CommonModule,
119
- WarningPipe,
120
- ReactiveFormsModule,
121
- MessageModule,
122
- TooltipModule,
123
- ], template: "<div class=\"v-form-field mt-3\" [attr.data-testId]=\"testId\">\n <div [ngClass]=\"{ 'd-block d-md-flex': display === 'flex', 'd-lg-flex': display === 'block' }\">\n <div class=\"col-12 col-md-4 d-flex align-items-center\">\n <label\n class=\"v-formfield-label d-flex align-items-center\"\n [ngClass]=\"{\n 'pb-2': display === 'block',\n 'text-error': (errorProvider.mapError(ngControl?.errors ?? [])) && ngControl?.dirty, \n 'text-warning': (ngControl?.errors | warning) && ngControl?.dirty,\n 'text-default': !ngControl?.invalid && !ngControl?.dirty,\n 'text-secondary': !ngControl?.invalid && ngControl?.dirty\n }\"\n >{{ label }}@if (label) {\n <span>:</span>\n }\n @if (required) {\n <span class=\"text-error ps-1\">*</span>\n }\n </label>\n @if (tooltip) {\n <i\n [pTooltip]=\"tooltip\"\n class=\"ps-2 text-default v-tooltip {{ icons.infoCircle }}\"\n ></i>\n }\n </div>\n <div\n class=\"col-sm-12 col-md-8 col-lg-8\"\n >\n <div\n class=\"v-form-field-content align-items-center w-100\"\n [ngClass]=\"{ 'd-flex': display === 'flex', 'd-block': display === 'block', 'input-warning': ngControl?.errors | warning }\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n <div class=\"align-content-center\">\n <ng-container>\n </ng-container>\n </div>\n</div>\n</div>\n" }]
124
- }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
125
- type: Optional
126
- }, {
127
- type: Self
128
- }] }], propDecorators: { display: [{
129
- type: Input
130
- }], variant: [{
131
- type: Input
132
- }] } });
133
-
134
- class InputGroupComponent extends BaseFormInputComponent {
135
- constructor(ngControl) {
136
- super(ngControl);
137
- }
138
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: InputGroupComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
139
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: InputGroupComponent, isStandalone: true, selector: "v-input-group", inputs: { items: "items" }, providers: [
140
- {
141
- provide: BaseInputControls,
142
- useExisting: forwardRef(() => InputGroupComponent),
143
- },
144
- {
145
- provide: INPUT_GROUP_COMPONENT_TOKEN,
146
- useExisting: InputGroupComponent,
147
- },
148
- ], usesInheritance: true, ngImport: i0, template: "<div class=\"v-input-group w-100\">\n <v-form-field\n [label]=\"label\"\n [required]=\"required\"\n [tooltip]=\"tooltip\" >\n <p-inputGroup>\n @for (item of items; track item) {\n @if (item.position === 'left') {\n <p-inputGroupAddon>\n @if (item.icon) {\n <i [class]=\"item.icon\"></i>\n }\n @if (item.text) {\n {{ item.text }}\n }\n </p-inputGroupAddon>\n }\n }\n <input pInputText [formControl]=\"formControl\" class=\"w-100\" />\n @for (item of items; track item) {\n @if (item.position === 'right') {\n <p-inputGroupAddon>\n @if (item.icon) {\n <i [class]=\"item.icon\"></i>\n }\n @if (item.text) {\n {{ item.text }}\n }\n </p-inputGroupAddon>\n }\n }\n </p-inputGroup>\n </v-form-field>\n</div>\n", dependencies: [{ kind: "ngmodule", type: InputGroupAddonModule }, { kind: "component", type: i2$1.InputGroupAddon, selector: "p-inputgroup-addon, p-inputGroupAddon", inputs: ["style", "styleClass"] }, { kind: "ngmodule", type: InputGroupModule }, { kind: "component", type: i3$1.InputGroup, selector: "p-inputgroup, p-inputGroup, p-input-group", inputs: ["styleClass"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i4.InputText, selector: "[pInputText]", inputs: ["pSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: FormFieldComponent, selector: "v-form-field", inputs: ["display", "variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
149
- }
150
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: InputGroupComponent, decorators: [{
151
- type: Component,
152
- args: [{ selector: 'v-input-group', imports: [
153
- InputGroupAddonModule,
154
- InputGroupModule,
155
- InputTextModule,
156
- ReactiveFormsModule,
157
- FormFieldComponent
158
- ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
159
- {
160
- provide: BaseInputControls,
161
- useExisting: forwardRef(() => InputGroupComponent),
162
- },
163
- {
164
- provide: INPUT_GROUP_COMPONENT_TOKEN,
165
- useExisting: InputGroupComponent,
166
- },
167
- ], template: "<div class=\"v-input-group w-100\">\n <v-form-field\n [label]=\"label\"\n [required]=\"required\"\n [tooltip]=\"tooltip\" >\n <p-inputGroup>\n @for (item of items; track item) {\n @if (item.position === 'left') {\n <p-inputGroupAddon>\n @if (item.icon) {\n <i [class]=\"item.icon\"></i>\n }\n @if (item.text) {\n {{ item.text }}\n }\n </p-inputGroupAddon>\n }\n }\n <input pInputText [formControl]=\"formControl\" class=\"w-100\" />\n @for (item of items; track item) {\n @if (item.position === 'right') {\n <p-inputGroupAddon>\n @if (item.icon) {\n <i [class]=\"item.icon\"></i>\n }\n @if (item.text) {\n {{ item.text }}\n }\n </p-inputGroupAddon>\n }\n }\n </p-inputGroup>\n </v-form-field>\n</div>\n" }]
168
- }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
169
- type: Optional
170
- }, {
171
- type: Self
172
- }] }], propDecorators: { items: [{
173
- type: Input
174
- }] } });
175
-
176
- class ErrorComponent {
177
- constructor() {
178
- this.errorSlot = SlotPosition.bottom;
179
- this.messageSlot = SlotPosition.bottom;
180
- this.variant = 'simple';
181
- this.severity = 'error';
182
- this.errorService = inject(ERROR_PROVIDER_TOKEN);
183
- this.icons = Icons;
184
- }
185
- getErrorMessage(errors) {
186
- return this.errorService.mapError(errors);
187
- }
188
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
189
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: ErrorComponent, isStandalone: true, selector: "v-validation-message", inputs: { ngControl: "ngControl", errorSlot: "errorSlot", messageSlot: "messageSlot", variant: "variant", severity: "severity" }, ngImport: i0, template: "\n@if (ngControl && ngControl.errors) {\n <p-message\n [severity]=\"severity\"\n text=\"{{ getErrorMessage(ngControl.errors) | async }}\">\n </p-message>\n}\n", styles: [".p-message-content{color:#e60017}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MessageModule }, { kind: "component", type: i1$1.Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant"], outputs: ["onClose"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] }); }
190
- }
191
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ErrorComponent, decorators: [{
192
- type: Component,
193
- args: [{ selector: "v-validation-message", imports: [CommonModule, MessageModule], template: "\n@if (ngControl && ngControl.errors) {\n <p-message\n [severity]=\"severity\"\n text=\"{{ getErrorMessage(ngControl.errors) | async }}\">\n </p-message>\n}\n", styles: [".p-message-content{color:#e60017}\n"] }]
194
- }], propDecorators: { ngControl: [{
195
- type: Input,
196
- args: [{ required: true }]
197
- }], errorSlot: [{
198
- type: Input
199
- }], messageSlot: [{
200
- type: Input
201
- }], variant: [{
202
- type: Input
203
- }], severity: [{
204
- type: Input
205
- }] } });
206
-
207
- class TextfieldComponent extends BaseFormInputComponent {
208
- constructor(ngControl) {
209
- super(ngControl);
210
- this.icons = Icons;
211
- this.size = FieldSize.medium;
212
- this.type = FieldType.text;
213
- this.floatLabel = false;
214
- }
215
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: TextfieldComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
216
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: TextfieldComponent, isStandalone: true, selector: "v-textfield", inputs: { size: "size", type: "type", floatLabel: "floatLabel" }, providers: [
217
- {
218
- provide: BaseInputControls,
219
- useExisting: forwardRef(() => TextfieldComponent),
220
- },
221
- {
222
- provide: TEXTFIELD_COMPONENT_TOKEN,
223
- useExisting: TextfieldComponent,
224
- },
225
- ], usesInheritance: true, ngImport: i0, template: "<div class=\"v-text-field\">\n @if (!floatLabel && label) {\n <v-form-field\n class=\"w-100\"\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [testId]=\"testId\"\n [display]=\"formDisplay\"\n >\n <span\n class=\"w-100 flex-grow-1\"\n [ngClass]=\"{ 'p-input-icon-right': type === 'search' }\"\n >\n <input\n pInputText\n [id]=\"inputId\"\n [formControl]=\"formControl\"\n [type]=\"type === 'search' ? 'text' : type\"\n class=\"w-100 flex-grow-1 v-text-field\"\n [required]=\"isRequired()\"\n [readOnly]=\"readonly\"\n [title]=\"label\"\n [placeholder]=\"placeholder ? placeholder : ''\"\n [ngClass]=\"{\n 'p-inputtext-sm': size === 'small',\n 'p-inputtext-lg': size === 'large'\n }\"\n />\n @if (type === 'search') {\n <i\n class=\"pi ms-2 v-text-field__icon\"\n [ngStyle]=\"{\n cursor: ngControl && ngControl.value ? 'pointer' : 'default'\n }\"\n [ngClass]=\"{\n 'pi-search': ngControl && !ngControl.value,\n 'pi-times': ngControl && ngControl.value,\n }\"\n (click)=\"ngControl && ngControl.value ? ngControl.reset() : null\"\n ></i>\n }\n </span>\n </v-form-field>\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n } @else {\n <span\n class=\"w-100 flex-grow-1\"\n [ngClass]=\"{ 'p-input-icon-right': type === 'search' }\"\n >\n <p-floatLabel>\n <input\n pInputText\n type=\"text\"\n [id]=\"inputId\"\n class=\"w-100 flex-grow-1\"\n [required]=\"isRequired()\"\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder ? placeholder : ''\"\n [ngClass]=\"{\n 'p-inputtext-sm': size === 'small',\n 'p-inputtext-lg': size === 'large'\n }\"\n />\n <label [for]=\"inputId\" class=\"v-text-field__label\">{{ label }}</label>\n </p-floatLabel>\n @if (type === 'search') {\n <i\n class=\"pi ms-2 v-text-field__icon\"\n [ngStyle]=\"{\n cursor: ngControl && ngControl.value ? 'pointer' : 'default'\n }\"\n [ngClass]=\"{\n 'pi-search': ngControl && !ngControl.value,\n 'pi-times': ngControl && ngControl.value,\n }\"\n (click)=\"ngControl && ngControl.value ? ngControl.reset() : null\"\n ></i>\n }\n </span>\n }\n</div>\n", styles: [".p-inputtext:focus .ng-invalid.ng-dirty{border-color:var(--error-color)}.p-inputtext.ng-dirty.ng-invalid{border-color:var(--error-color)}.verisoft-text-field{justify-content:center;width:100%}.p-input-icon-right i.pi-times:hover{cursor:pointer}.p-inputtext.p-inputtext-lg{font-size:1rem;padding:.75rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i4.InputText, selector: "[pInputText]", inputs: ["pSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: FormFieldComponent, selector: "v-form-field", inputs: ["display", "variant"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i2$2.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "component", type: ErrorComponent, selector: "v-validation-message", inputs: ["ngControl", "errorSlot", "messageSlot", "variant", "severity"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
226
- }
227
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: TextfieldComponent, decorators: [{
228
- type: Component,
229
- args: [{ selector: 'v-textfield', imports: [
230
- CommonModule,
231
- InputTextModule,
232
- ReactiveFormsModule,
233
- FormFieldComponent,
234
- FloatLabelModule,
235
- ErrorComponent
236
- ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
237
- {
238
- provide: BaseInputControls,
239
- useExisting: forwardRef(() => TextfieldComponent),
240
- },
241
- {
242
- provide: TEXTFIELD_COMPONENT_TOKEN,
243
- useExisting: TextfieldComponent,
244
- },
245
- ], template: "<div class=\"v-text-field\">\n @if (!floatLabel && label) {\n <v-form-field\n class=\"w-100\"\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [testId]=\"testId\"\n [display]=\"formDisplay\"\n >\n <span\n class=\"w-100 flex-grow-1\"\n [ngClass]=\"{ 'p-input-icon-right': type === 'search' }\"\n >\n <input\n pInputText\n [id]=\"inputId\"\n [formControl]=\"formControl\"\n [type]=\"type === 'search' ? 'text' : type\"\n class=\"w-100 flex-grow-1 v-text-field\"\n [required]=\"isRequired()\"\n [readOnly]=\"readonly\"\n [title]=\"label\"\n [placeholder]=\"placeholder ? placeholder : ''\"\n [ngClass]=\"{\n 'p-inputtext-sm': size === 'small',\n 'p-inputtext-lg': size === 'large'\n }\"\n />\n @if (type === 'search') {\n <i\n class=\"pi ms-2 v-text-field__icon\"\n [ngStyle]=\"{\n cursor: ngControl && ngControl.value ? 'pointer' : 'default'\n }\"\n [ngClass]=\"{\n 'pi-search': ngControl && !ngControl.value,\n 'pi-times': ngControl && ngControl.value,\n }\"\n (click)=\"ngControl && ngControl.value ? ngControl.reset() : null\"\n ></i>\n }\n </span>\n </v-form-field>\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n } @else {\n <span\n class=\"w-100 flex-grow-1\"\n [ngClass]=\"{ 'p-input-icon-right': type === 'search' }\"\n >\n <p-floatLabel>\n <input\n pInputText\n type=\"text\"\n [id]=\"inputId\"\n class=\"w-100 flex-grow-1\"\n [required]=\"isRequired()\"\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder ? placeholder : ''\"\n [ngClass]=\"{\n 'p-inputtext-sm': size === 'small',\n 'p-inputtext-lg': size === 'large'\n }\"\n />\n <label [for]=\"inputId\" class=\"v-text-field__label\">{{ label }}</label>\n </p-floatLabel>\n @if (type === 'search') {\n <i\n class=\"pi ms-2 v-text-field__icon\"\n [ngStyle]=\"{\n cursor: ngControl && ngControl.value ? 'pointer' : 'default'\n }\"\n [ngClass]=\"{\n 'pi-search': ngControl && !ngControl.value,\n 'pi-times': ngControl && ngControl.value,\n }\"\n (click)=\"ngControl && ngControl.value ? ngControl.reset() : null\"\n ></i>\n }\n </span>\n }\n</div>\n", styles: [".p-inputtext:focus .ng-invalid.ng-dirty{border-color:var(--error-color)}.p-inputtext.ng-dirty.ng-invalid{border-color:var(--error-color)}.verisoft-text-field{justify-content:center;width:100%}.p-input-icon-right i.pi-times:hover{cursor:pointer}.p-inputtext.p-inputtext-lg{font-size:1rem;padding:.75rem}\n"] }]
246
- }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
247
- type: Optional
248
- }, {
249
- type: Self
250
- }] }], propDecorators: { size: [{
251
- type: Input
252
- }], type: [{
253
- type: Input
254
- }], floatLabel: [{
255
- type: Input
256
- }] } });
257
-
258
- class ConvertMenuItemPipe {
259
- transform(items) {
260
- return items.map(i => i);
261
- }
262
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ConvertMenuItemPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
263
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.1", ngImport: i0, type: ConvertMenuItemPipe, isStandalone: true, name: "menuItem" }); }
264
- }
265
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ConvertMenuItemPipe, decorators: [{
266
- type: Pipe,
267
- args: [{
268
- name: 'menuItem',
269
- standalone: true,
270
- }]
271
- }] });
272
-
273
- class BreadcrumbComponent extends BreadcrumbCoreComponent {
274
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: BreadcrumbComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
275
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: BreadcrumbComponent, isStandalone: true, selector: "v-breadcrumb", providers: [
276
- {
277
- provide: BREADCRUMB_COMPONENT_TOKEN,
278
- useExisting: BreadcrumbComponent
279
- },
280
- ], usesInheritance: true, ngImport: i0, template: "<div class=\"v-breadcrumb card flex justify-content-center\">\n @if (useHomeRoute) {\n <p-breadcrumb\n class=\"max-w-full\"\n [model]=\"items | menuItem\"\n [home]=\"home\"\n ></p-breadcrumb>\n } @else {\n <p-breadcrumb class=\"max-w-full\" [model]=\"items | menuItem\"></p-breadcrumb>\n }\n</div>\n", styles: ["p-breadcrumb>nav{border:none}p-breadcrumb>nav>ol{align-items:stretch;font-weight:600;font-size:1rem}p-breadcrumb>nav a[aria-current=page]>span{color:var(--primary-color)!important}.p-menuitem-link{gap:.5rem;text-align:center}.p-menuitem-text{align-self:baseline}\n"], dependencies: [{ kind: "ngmodule", type: BreadcrumbModule }, { kind: "component", type: i1$2.Breadcrumb, selector: "p-breadcrumb", inputs: ["model", "style", "styleClass", "home", "homeAriaLabel"], outputs: ["onItemClick"] }, { kind: "pipe", type: ConvertMenuItemPipe, name: "menuItem" }] }); }
281
- }
282
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: BreadcrumbComponent, decorators: [{
283
- type: Component,
284
- args: [{ selector: 'v-breadcrumb', imports: [
285
- BreadcrumbModule,
286
- ConvertMenuItemPipe
287
- ], providers: [
288
- {
289
- provide: BREADCRUMB_COMPONENT_TOKEN,
290
- useExisting: BreadcrumbComponent
291
- },
292
- ], template: "<div class=\"v-breadcrumb card flex justify-content-center\">\n @if (useHomeRoute) {\n <p-breadcrumb\n class=\"max-w-full\"\n [model]=\"items | menuItem\"\n [home]=\"home\"\n ></p-breadcrumb>\n } @else {\n <p-breadcrumb class=\"max-w-full\" [model]=\"items | menuItem\"></p-breadcrumb>\n }\n</div>\n", styles: ["p-breadcrumb>nav{border:none}p-breadcrumb>nav>ol{align-items:stretch;font-weight:600;font-size:1rem}p-breadcrumb>nav a[aria-current=page]>span{color:var(--primary-color)!important}.p-menuitem-link{gap:.5rem;text-align:center}.p-menuitem-text{align-self:baseline}\n"] }]
293
- }] });
294
-
295
- class CheckboxComponent extends BaseFormInputComponent {
296
- constructor(ngControl) {
297
- super(ngControl);
298
- this.indeterminate = input(false, ...(ngDevMode ? [{ debugName: "indeterminate" }] : []));
299
- this.icon = Icons;
300
- }
301
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: CheckboxComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
302
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.1", type: CheckboxComponent, isStandalone: true, selector: "v-checkbox", inputs: { indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
303
- {
304
- provide: BaseInputControls,
305
- useExisting: CheckboxComponent,
306
- },
307
- {
308
- provide: CHECKBOX_COMPONENT_TOKEN,
309
- useExisting: CheckboxComponent,
310
- },
311
- ], usesInheritance: true, ngImport: i0, template: "<div class=\"v-checkbox d-flex align-items-center mt-2\">\n <v-form-field\n class=\"w-100\"\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [testId]=\"testId\"\n [display]=\"formDisplay\"\n >\n <p-checkbox\n [ngClass]=\"{ 'checkbox-error': ngControl?.invalid && ngControl?.dirty && ngControl?.value === false }\"\n [formControl]=\"formControl\"\n [required]=\"required\"\n [binary]=\"true\"\n [readonly]=\"readonly\"\n [indeterminate]=\"indeterminate()\"\n />\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n </v-form-field>\n</div>\n", styles: ["p-echeckbox.ng-dirty.ng-invalid .p-checkbox>.p-checkbox-box{border-color:var(--error-color)}p-echeckbox.ng-dirty.ng-invalid .p-checkbox-label{color:var(--error-color)}.checkbox-error .p-checkbox-box.p-highlight{background:var(--error-color)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i3$2.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: FormFieldComponent, selector: "v-form-field", inputs: ["display", "variant"] }, { kind: "component", type: ErrorComponent, selector: "v-validation-message", inputs: ["ngControl", "errorSlot", "messageSlot", "variant", "severity"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
312
- }
313
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: CheckboxComponent, decorators: [{
314
- type: Component,
315
- args: [{ selector: 'v-checkbox', imports: [CommonModule, CheckboxModule, ReactiveFormsModule, FormFieldComponent, ErrorComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
316
- {
317
- provide: BaseInputControls,
318
- useExisting: CheckboxComponent,
319
- },
320
- {
321
- provide: CHECKBOX_COMPONENT_TOKEN,
322
- useExisting: CheckboxComponent,
323
- },
324
- ], template: "<div class=\"v-checkbox d-flex align-items-center mt-2\">\n <v-form-field\n class=\"w-100\"\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [testId]=\"testId\"\n [display]=\"formDisplay\"\n >\n <p-checkbox\n [ngClass]=\"{ 'checkbox-error': ngControl?.invalid && ngControl?.dirty && ngControl?.value === false }\"\n [formControl]=\"formControl\"\n [required]=\"required\"\n [binary]=\"true\"\n [readonly]=\"readonly\"\n [indeterminate]=\"indeterminate()\"\n />\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n </v-form-field>\n</div>\n", styles: ["p-echeckbox.ng-dirty.ng-invalid .p-checkbox>.p-checkbox-box{border-color:var(--error-color)}p-echeckbox.ng-dirty.ng-invalid .p-checkbox-label{color:var(--error-color)}.checkbox-error .p-checkbox-box.p-highlight{background:var(--error-color)}\n"] }]
325
- }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
326
- type: Optional
327
- }, {
328
- type: Self
329
- }] }] });
330
-
331
- class CalendarComponent extends BaseFormInputComponent {
332
- constructor(ngControl) {
333
- super(ngControl);
334
- this.icon = Icons.calendar;
335
- this.selectionMode = 'single';
336
- this.icons = Icons;
337
- this.formDisplay = "block";
338
- }
339
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: CalendarComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
340
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: CalendarComponent, isStandalone: true, selector: "v-calendar", inputs: { maxDate: "maxDate", icon: "icon", minDate: "minDate", header: "header", footer: "footer", floatLabel: "floatLabel", selectionMode: "selectionMode" }, providers: [
341
- {
342
- provide: BaseInputControls,
343
- useExisting: forwardRef(() => CalendarComponent),
344
- },
345
- {
346
- provide: CALENDAR_COMPONENT_TOKEN,
347
- useExisting: CalendarComponent,
348
- },
349
- ], usesInheritance: true, ngImport: i0, template: "<div class=\"v-calendar w-100\">\n @if (label && !floatLabel) {\n <v-form-field\n class=\"w-100\"\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [display]=\"formDisplay\"\n >\n <p-date-picker\n appendTo=\"body\"\n [style]=\"{'width':'100%'}\"\n [inputStyle]=\"{'width':'100%'}\"\n [formControl]=\"formControl\"\n [showClear]=\"clearable\"\n [dataType]=\"'string'\"\n [selectionMode]=\"selectionMode\"\n [icon]=\"icon\"\n [maxDate]=\"maxDate\"\n [id]=\"inputId\"\n [showButtonBar]=\"true\"\n [placeholder]=\"placeholder\"\n [required]=\"isRequired()\"\n [minDate]=\"minDate\"\n [showIcon]=\"formControl && !formControl.value\"\n iconDisplay=\"input\"\n />\n </v-form-field>\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n }\n @if (floatLabel) {\n <p-floatLabel>\n <p-date-picker\n appendTo=\"body\"\n [style]=\"{'width':'100%'}\"\n [inputStyle]=\"{'width':'100%'}\"\n [formControl]=\"formControl\"\n [showClear]=\"clearable\"\n [maxDate]=\"maxDate\"\n [id]=\"inputId\"\n [icon]=\"icon\"\n [selectionMode]=\"selectionMode\"\n [showButtonBar]=\"true\"\n [placeholder]=\"placeholder\"\n [required]=\"isRequired()\"\n [minDate]=\"minDate\"\n iconDisplay=\"input\"\n />\n <label [for]=\"inputId\" [innerHTML]=\"floatLabel\"></label>\n </p-floatLabel>\n }\n</div>\n\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "component", type: FormFieldComponent, selector: "v-form-field", inputs: ["display", "variant"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i2$2.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "component", type: ErrorComponent, selector: "v-validation-message", inputs: ["ngControl", "errorSlot", "messageSlot", "variant", "severity"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
350
- }
351
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: CalendarComponent, decorators: [{
352
- type: Component,
353
- args: [{ selector: 'v-calendar', imports: [
354
- ReactiveFormsModule,
355
- DatePicker,
356
- FormFieldComponent,
357
- FloatLabelModule,
358
- ErrorComponent
359
- ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
360
- {
361
- provide: BaseInputControls,
362
- useExisting: forwardRef(() => CalendarComponent),
363
- },
364
- {
365
- provide: CALENDAR_COMPONENT_TOKEN,
366
- useExisting: CalendarComponent,
367
- },
368
- ], template: "<div class=\"v-calendar w-100\">\n @if (label && !floatLabel) {\n <v-form-field\n class=\"w-100\"\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [display]=\"formDisplay\"\n >\n <p-date-picker\n appendTo=\"body\"\n [style]=\"{'width':'100%'}\"\n [inputStyle]=\"{'width':'100%'}\"\n [formControl]=\"formControl\"\n [showClear]=\"clearable\"\n [dataType]=\"'string'\"\n [selectionMode]=\"selectionMode\"\n [icon]=\"icon\"\n [maxDate]=\"maxDate\"\n [id]=\"inputId\"\n [showButtonBar]=\"true\"\n [placeholder]=\"placeholder\"\n [required]=\"isRequired()\"\n [minDate]=\"minDate\"\n [showIcon]=\"formControl && !formControl.value\"\n iconDisplay=\"input\"\n />\n </v-form-field>\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n }\n @if (floatLabel) {\n <p-floatLabel>\n <p-date-picker\n appendTo=\"body\"\n [style]=\"{'width':'100%'}\"\n [inputStyle]=\"{'width':'100%'}\"\n [formControl]=\"formControl\"\n [showClear]=\"clearable\"\n [maxDate]=\"maxDate\"\n [id]=\"inputId\"\n [icon]=\"icon\"\n [selectionMode]=\"selectionMode\"\n [showButtonBar]=\"true\"\n [placeholder]=\"placeholder\"\n [required]=\"isRequired()\"\n [minDate]=\"minDate\"\n iconDisplay=\"input\"\n />\n <label [for]=\"inputId\" [innerHTML]=\"floatLabel\"></label>\n </p-floatLabel>\n }\n</div>\n\n" }]
369
- }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
370
- type: Optional
371
- }, {
372
- type: Self
373
- }] }], propDecorators: { maxDate: [{
374
- type: Input
375
- }], icon: [{
376
- type: Input
377
- }], minDate: [{
378
- type: Input
379
- }], header: [{
380
- type: Input
381
- }], footer: [{
382
- type: Input
383
- }], floatLabel: [{
384
- type: Input
385
- }], selectionMode: [{
386
- type: Input
387
- }] } });
388
-
389
- class PasswordComponent extends BaseFormInputComponent {
390
- constructor(ngControl) {
391
- super(ngControl);
392
- this.toggleMask = true;
393
- this.feedback = false;
394
- this.formDisplay = "block";
395
- }
396
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: PasswordComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
397
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.1", type: PasswordComponent, isStandalone: true, selector: "v-password", inputs: { toggleMask: "toggleMask", feedback: "feedback" }, providers: [
398
- {
399
- provide: BaseInputControls,
400
- useExisting: PasswordComponent,
401
- },
402
- {
403
- provide: PASSWORD_COMPONENT_TOKEN,
404
- useExisting: PasswordComponent,
405
- },
406
- ], usesInheritance: true, ngImport: i0, template: "<div class=\"v-password d-flex align-items-center\">\n <v-form-field\n class=\"w-100\"\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [testId]=\"testId\"\n [display]=\"formDisplay\"\n >\n <p-password\n [style]=\"{'width':'100%'}\"\n [inputStyle]=\"{'width':'100%'}\" \n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [showClear]=\"clearable\"\n [feedback]=\"feedback\"\n [required]=\"isRequired()\"\n [label]=\"label\"\n [id]=\"inputId\"\n [toggleMask]=\"toggleMask\"\n />\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n </v-form-field>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: PasswordModule }, { kind: "component", type: i2$3.Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "toggleMask", "inputStyleClass", "styleClass", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "placeholder", "showClear", "autofocus", "tabindex", "appendTo"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: FormFieldComponent, selector: "v-form-field", inputs: ["display", "variant"] }, { kind: "component", type: ErrorComponent, selector: "v-validation-message", inputs: ["ngControl", "errorSlot", "messageSlot", "variant", "severity"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
407
- }
408
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: PasswordComponent, decorators: [{
409
- type: Component,
410
- args: [{ selector: 'v-password', imports: [
411
- ReactiveFormsModule,
412
- PasswordModule,
413
- FloatLabelModule,
414
- FormFieldComponent,
415
- ErrorComponent
416
- ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
417
- {
418
- provide: BaseInputControls,
419
- useExisting: PasswordComponent,
420
- },
421
- {
422
- provide: PASSWORD_COMPONENT_TOKEN,
423
- useExisting: PasswordComponent,
424
- },
425
- ], template: "<div class=\"v-password d-flex align-items-center\">\n <v-form-field\n class=\"w-100\"\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [testId]=\"testId\"\n [display]=\"formDisplay\"\n >\n <p-password\n [style]=\"{'width':'100%'}\"\n [inputStyle]=\"{'width':'100%'}\" \n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [showClear]=\"clearable\"\n [feedback]=\"feedback\"\n [required]=\"isRequired()\"\n [label]=\"label\"\n [id]=\"inputId\"\n [toggleMask]=\"toggleMask\"\n />\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n </v-form-field>\n</div>\n" }]
426
- }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
427
- type: Optional
428
- }, {
429
- type: Self
430
- }] }], propDecorators: { toggleMask: [{
431
- type: Input
432
- }], feedback: [{
433
- type: Input
434
- }] } });
435
-
436
- class ButtonSeverityPipe {
437
- transform(severity) {
438
- if (severity === undefined || severity === null) {
439
- return null;
440
- }
441
- if (severity === ControlSeverity.warning) {
442
- return 'warn';
443
- }
444
- return severity;
445
- }
446
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ButtonSeverityPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
447
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.1", ngImport: i0, type: ButtonSeverityPipe, isStandalone: true, name: "buttonSeverity" }); }
448
- }
449
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ButtonSeverityPipe, decorators: [{
450
- type: Pipe,
451
- args: [{
452
- name: 'buttonSeverity'
453
- }]
454
- }] });
455
-
456
- class ButtonComponent {
457
- constructor() {
458
- this.iconPos = IconPosition.right;
459
- }
460
- fireClick(event) {
461
- if (this.disabled) {
462
- event.stopPropagation();
463
- event.stopImmediatePropagation();
464
- }
465
- }
466
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
467
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.1", type: ButtonComponent, isStandalone: true, selector: "v-button", inputs: { label: "label", icon: "icon", badge: "badge", iconPos: "iconPos", disabled: "disabled", rounded: "rounded", outlined: "outlined", raised: "raised", severity: "severity", routerLink: "routerLink", size: "size", queryParams: "queryParams" }, providers: [
468
- {
469
- provide: BUTTON_COMPONENT_TOKEN,
470
- useExisting: ButtonComponent,
471
- },
472
- ], ngImport: i0, template: "<div class=\"v-button d-inline-block\" \n(click)=\"fireClick($event)\">\n <a\n [routerLink]=\"routerLink ? routerLink : undefined\"\n [queryParams]=\"queryParams ? queryParams : undefined\"\n >\n <p-button\n [disabled]=\"disabled\"\n [icon]=\"icon\"\n [badge]=\"badge\"\n [outlined]=\"outlined\"\n [rounded]=\"rounded\"\n [raised]=\"raised\"\n [label]=\"label\"\n [size]=\"$any(size)\"\n [severity]=\"severity | buttonSeverity\"\n [iconPos]=\"iconPos\"\n />\n </a>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$3.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: RippleModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: ButtonSeverityPipe, name: "buttonSeverity" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
473
- }
474
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ButtonComponent, decorators: [{
475
- type: Component,
476
- args: [{ selector: 'v-button', imports: [ButtonModule, RippleModule, RouterModule, ButtonSeverityPipe], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
477
- {
478
- provide: BUTTON_COMPONENT_TOKEN,
479
- useExisting: ButtonComponent,
480
- },
481
- ], template: "<div class=\"v-button d-inline-block\" \n(click)=\"fireClick($event)\">\n <a\n [routerLink]=\"routerLink ? routerLink : undefined\"\n [queryParams]=\"queryParams ? queryParams : undefined\"\n >\n <p-button\n [disabled]=\"disabled\"\n [icon]=\"icon\"\n [badge]=\"badge\"\n [outlined]=\"outlined\"\n [rounded]=\"rounded\"\n [raised]=\"raised\"\n [label]=\"label\"\n [size]=\"$any(size)\"\n [severity]=\"severity | buttonSeverity\"\n [iconPos]=\"iconPos\"\n />\n </a>\n</div>\n" }]
482
- }], propDecorators: { label: [{
483
- type: Input
484
- }], icon: [{
485
- type: Input
486
- }], badge: [{
487
- type: Input
488
- }], iconPos: [{
489
- type: Input
490
- }], disabled: [{
491
- type: Input
492
- }], rounded: [{
493
- type: Input
494
- }], outlined: [{
495
- type: Input
496
- }], raised: [{
497
- type: Input
498
- }], severity: [{
499
- type: Input
500
- }], routerLink: [{
501
- type: Input
502
- }], size: [{
503
- type: Input
504
- }], queryParams: [{
505
- type: Input
506
- }] } });
507
-
508
- class SectionComponent {
509
- constructor() {
510
- this.showContent = true;
511
- this.icons = Icons;
512
- this.icon = Icons.chevronDown;
513
- }
514
- toggle() {
515
- this.showContent = !this.showContent;
516
- this.icon = this.showContent ? Icons.chevronDown : Icons.chevronUp;
517
- }
518
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
519
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: SectionComponent, isStandalone: true, selector: "v-section", inputs: { title: "title", showContent: "showContent", backgroundColor: "backgroundColor" }, providers: [
520
- { provide: SECTION_COMPONENT_TOKEN, useExisting: SectionComponent },
521
- ], ngImport: i0, template: "<div class=\"v-section\">\n <div\n class=\"v-section-header text-align-center d-flex\"\n [ngStyle]=\"{ 'background-color': backgroundColor }\"\n >\n <p\n class=\"text-primary align-items-center text-nowrap d-none d-md-block ps-3 m-0 w-100\"\n >\n {{ title }}\n </p>\n <div class=\"d-flex\">\n <ng-content select=\"[actions]\"></ng-content>\n <v-button\n size=\"small\"\n [icon]=\"icon\"\n (click)=\"toggle()\"\n />\n </div>\n </div>\n @if (showContent) {\n <div class=\"v-section-content\">\n <ng-content></ng-content>\n </div>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ButtonComponent, selector: "v-button", inputs: ["label", "icon", "badge", "iconPos", "disabled", "rounded", "outlined", "raised", "severity", "routerLink", "size", "queryParams"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
522
- }
523
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SectionComponent, decorators: [{
524
- type: Component,
525
- args: [{ selector: 'v-section', imports: [CommonModule, ButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
526
- { provide: SECTION_COMPONENT_TOKEN, useExisting: SectionComponent },
527
- ], template: "<div class=\"v-section\">\n <div\n class=\"v-section-header text-align-center d-flex\"\n [ngStyle]=\"{ 'background-color': backgroundColor }\"\n >\n <p\n class=\"text-primary align-items-center text-nowrap d-none d-md-block ps-3 m-0 w-100\"\n >\n {{ title }}\n </p>\n <div class=\"d-flex\">\n <ng-content select=\"[actions]\"></ng-content>\n <v-button\n size=\"small\"\n [icon]=\"icon\"\n (click)=\"toggle()\"\n />\n </div>\n </div>\n @if (showContent) {\n <div class=\"v-section-content\">\n <ng-content></ng-content>\n </div>\n }\n</div>\n" }]
528
- }], propDecorators: { title: [{
529
- type: Input
530
- }], showContent: [{
531
- type: Input
532
- }], backgroundColor: [{
533
- type: Input
534
- }] } });
535
-
536
- class DropdownButtonComponent {
537
- constructor() {
538
- this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
539
- this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
540
- this.rounded = input(false, ...(ngDevMode ? [{ debugName: "rounded" }] : []));
541
- this.raised = input(false, ...(ngDevMode ? [{ debugName: "raised" }] : []));
542
- this.outlined = input(false, ...(ngDevMode ? [{ debugName: "outlined" }] : []));
543
- this.severity = input(ControlSeverity.primary, ...(ngDevMode ? [{ debugName: "severity" }] : []));
544
- this.size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
545
- this.items = input(undefined, ...(ngDevMode ? [{ debugName: "items" }] : []));
546
- }
547
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
548
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.1", type: DropdownButtonComponent, isStandalone: true, selector: "v-dropdown-button", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, raised: { classPropertyName: "raised", publicName: "raised", isSignal: true, isRequired: false, transformFunction: null }, outlined: { classPropertyName: "outlined", publicName: "outlined", isSignal: true, isRequired: false, transformFunction: null }, severity: { classPropertyName: "severity", publicName: "severity", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
549
- { provide: DROPDOWN_BUTTON_COMPONENT_TOKEN, useExisting: DropdownButtonComponent }
550
- ], ngImport: i0, template: "<p>NOT implemented </p>" }); }
551
- }
552
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownButtonComponent, decorators: [{
553
- type: Component,
554
- args: [{ selector: 'v-dropdown-button', providers: [
555
- { provide: DROPDOWN_BUTTON_COMPONENT_TOKEN, useExisting: DropdownButtonComponent }
556
- ], template: "<p>NOT implemented </p>" }]
557
- }] });
558
-
559
- class RadioButtonComponent extends BaseFormInputComponent {
560
- constructor(ngControl) {
561
- super(ngControl);
562
- this.radioGroupName = Math.random().toString();
563
- this.items = [];
564
- }
565
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: RadioButtonComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
566
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: RadioButtonComponent, isStandalone: true, selector: "v-radiobutton", inputs: { radioGroupName: "radioGroupName", items: "items" }, providers: [
567
- {
568
- provide: BaseInputControls,
569
- useExisting: RadioButtonComponent,
570
- },
571
- {
572
- provide: RADIOBUTTON_COMPONENT_TOKEN,
573
- useExisting: RadioButtonComponent,
574
- },
575
- ], usesInheritance: true, ngImport: i0, template: "<div class=\"v-radiobutton\">\n <v-form-field\n [label]=\"label\"\n [required]=\"required\"\n [tooltip]=\"tooltip\"\n [testId]=\"testId\"\n >\n <div class=\"d-flex align-items-center gap-3\">\n @for (item of items; track item) {\n <div>\n <p-radioButton\n [inputId]=\"item.id\"\n [ngClass]=\"{\n 'radio-error': ngControl?.invalid && ngControl?.dirty,\n }\"\n [name]=\"radioGroupName\"\n [value]=\"item.value\"\n [formControl]=\"formControl\"\n />\n <label [for]=\"item.id\" class=\"ps-2\">\n <span\n [ngClass]=\"{\n 'text-error': ngControl?.invalid && ngControl?.dirty,\n 'text-primary': ngControl?.value === item.value\n }\"\n >{{ item.value }}</span\n >\n </label>\n </div>\n }\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n </div>\n </v-form-field>\n </div>\n", styles: [".radio-error .p-radiobutton .p-radiobutton-box.p-highlight{border-color:var(--error-color);background:var(--error-color)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: FormFieldComponent, selector: "v-form-field", inputs: ["display", "variant"] }, { kind: "ngmodule", type: RadioButtonModule }, { kind: "component", type: i3$3.RadioButton, selector: "p-radioButton, p-radiobutton, p-radio-button", inputs: ["value", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "styleClass", "autofocus", "binary", "variant", "size"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: ErrorComponent, selector: "v-validation-message", inputs: ["ngControl", "errorSlot", "messageSlot", "variant", "severity"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
576
- }
577
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: RadioButtonComponent, decorators: [{
578
- type: Component,
579
- args: [{ selector: 'v-radiobutton', imports: [
580
- CommonModule,
581
- FormFieldComponent,
582
- RadioButtonModule,
583
- ReactiveFormsModule,
584
- ErrorComponent
585
- ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
586
- {
587
- provide: BaseInputControls,
588
- useExisting: RadioButtonComponent,
589
- },
590
- {
591
- provide: RADIOBUTTON_COMPONENT_TOKEN,
592
- useExisting: RadioButtonComponent,
593
- },
594
- ], template: "<div class=\"v-radiobutton\">\n <v-form-field\n [label]=\"label\"\n [required]=\"required\"\n [tooltip]=\"tooltip\"\n [testId]=\"testId\"\n >\n <div class=\"d-flex align-items-center gap-3\">\n @for (item of items; track item) {\n <div>\n <p-radioButton\n [inputId]=\"item.id\"\n [ngClass]=\"{\n 'radio-error': ngControl?.invalid && ngControl?.dirty,\n }\"\n [name]=\"radioGroupName\"\n [value]=\"item.value\"\n [formControl]=\"formControl\"\n />\n <label [for]=\"item.id\" class=\"ps-2\">\n <span\n [ngClass]=\"{\n 'text-error': ngControl?.invalid && ngControl?.dirty,\n 'text-primary': ngControl?.value === item.value\n }\"\n >{{ item.value }}</span\n >\n </label>\n </div>\n }\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n </div>\n </v-form-field>\n </div>\n", styles: [".radio-error .p-radiobutton .p-radiobutton-box.p-highlight{border-color:var(--error-color);background:var(--error-color)}\n"] }]
595
- }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
596
- type: Optional
597
- }, {
598
- type: Self
599
- }] }], propDecorators: { radioGroupName: [{
600
- type: Input
601
- }], items: [{
602
- type: Input
603
- }] } });
604
-
605
- class NumberInputComponent extends BaseFormInputComponent {
606
- constructor(ngControl) {
607
- super(ngControl);
608
- this.step = 1;
609
- this.errorMessage = 'test';
610
- }
611
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: NumberInputComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
612
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.1", type: NumberInputComponent, isStandalone: true, selector: "v-number-input", inputs: { mode: "mode", currency: "currency", min: "min", max: "max", step: "step", errorMessage: "errorMessage" }, providers: [
613
- {
614
- provide: BaseInputControls,
615
- useExisting: forwardRef(() => NumberInputComponent),
616
- },
617
- {
618
- provide: NUMBER_INPUT_COMPONENT_TOKEN,
619
- useExisting: NumberInputComponent,
620
- },
621
- ], usesInheritance: true, ngImport: i0, template: "<div class=\"v-number-input\">\n <v-form-field\n class=\"w-100\"\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [testId]=\"testId\"\n >\n <p-inputNumber\n class=\"w-100\"\n [formControl]=\"formControl\"\n [showButtons]=\"true\"\n [inputId]=\"inputId\"\n [mode]=\"mode\"\n [min]=\"min\"\n [max]=\"max\"\n [step]=\"step\"\n [currency]=\"currency\"\n />\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n </v-form-field>\n</div>\n", dependencies: [{ kind: "ngmodule", type: InputNumberModule }, { kind: "component", type: i2$5.InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "placeholder", "tabindex", "title", "ariaLabelledBy", "ariaDescribedBy", "ariaLabel", "ariaRequired", "autocomplete", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: FormFieldComponent, selector: "v-form-field", inputs: ["display", "variant"] }, { kind: "component", type: ErrorComponent, selector: "v-validation-message", inputs: ["ngControl", "errorSlot", "messageSlot", "variant", "severity"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
622
- }
623
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: NumberInputComponent, decorators: [{
624
- type: Component,
625
- args: [{ selector: 'v-number-input', imports: [
626
- InputNumberModule,
627
- ReactiveFormsModule,
628
- FormFieldComponent,
629
- ErrorComponent
630
- ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
631
- {
632
- provide: BaseInputControls,
633
- useExisting: forwardRef(() => NumberInputComponent),
634
- },
635
- {
636
- provide: NUMBER_INPUT_COMPONENT_TOKEN,
637
- useExisting: NumberInputComponent,
638
- },
639
- ], template: "<div class=\"v-number-input\">\n <v-form-field\n class=\"w-100\"\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [testId]=\"testId\"\n >\n <p-inputNumber\n class=\"w-100\"\n [formControl]=\"formControl\"\n [showButtons]=\"true\"\n [inputId]=\"inputId\"\n [mode]=\"mode\"\n [min]=\"min\"\n [max]=\"max\"\n [step]=\"step\"\n [currency]=\"currency\"\n />\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n </v-form-field>\n</div>\n" }]
640
- }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
641
- type: Optional
642
- }, {
643
- type: Self
644
- }] }], propDecorators: { mode: [{
645
- type: Input
646
- }], currency: [{
647
- type: Input
648
- }], min: [{
649
- type: Input
650
- }], max: [{
651
- type: Input
652
- }], step: [{
653
- type: Input
654
- }], errorMessage: [{
655
- type: Input
656
- }] } });
657
-
658
- class HeaderProviderService {
659
- constructor(settingsMenu) {
660
- this.settingsMenu = settingsMenu;
661
- this.menu = [];
662
- }
663
- init() {
664
- this.menu = this.settingsMenu;
665
- }
666
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: HeaderProviderService, deps: [{ token: SETTINGS_MENU }], target: i0.ɵɵFactoryTarget.Injectable }); }
667
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: HeaderProviderService, providedIn: 'root' }); }
668
- }
669
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: HeaderProviderService, decorators: [{
670
- type: Injectable,
671
- args: [{
672
- providedIn: 'root',
673
- }]
674
- }], ctorParameters: () => [{ type: undefined, decorators: [{
675
- type: Inject,
676
- args: [SETTINGS_MENU]
677
- }] }] });
678
-
679
- class HeaderComponent extends UnsubscribeComponent {
680
- constructor(providerService, screenSizeService, cdr) {
681
- super();
682
- this.providerService = providerService;
683
- this.screenSizeService = screenSizeService;
684
- this.cdr = cdr;
685
- this.exampleHeader = false;
686
- this.icons = Icons;
687
- this.menuVisible = false;
688
- }
689
- ngOnInit() {
690
- this.providerService.init();
691
- }
692
- toggleMenu() {
693
- if (this.menuRef) {
694
- this.menuVisible = !this.menuVisible;
695
- this.menuRef.classList.toggle('menu-visible');
696
- this.cdr.detectChanges();
697
- }
698
- }
699
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: HeaderComponent, deps: [{ token: HeaderProviderService }, { token: i1$4.ScreenSizeService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
700
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: HeaderComponent, isStandalone: true, selector: "v-header", inputs: { title: "title", logoUrl: "logoUrl", userName: "userName", userRole: "userRole", menuRef: "menuRef", exampleHeader: "exampleHeader" }, providers: [
701
- { provide: HEADER_COMPONENT_TOKEN, useExisting: HeaderComponent },
702
- ], usesInheritance: true, ngImport: i0, template: "<div\n class=\"v-header d-flex w-100 text-align-end\"\n [ngStyle]=\"{ position: exampleHeader ? 'relative' : 'fixed' }\"\n >\n @if (screenSizeService.isMobileBlock | async) {\n <div class=\"burger-menu\">\n <v-button\n [icon]=\"menuVisible ? icons.cross : icons.action\"\n (click)=\"toggleMenu()\"\n />\n <div class=\"logo mt-3\" [routerLink]=\"[logoRouterLink]\">\n <img [src]=\"logoUrl\" alt=\"\"/>\n </div>\n </div>\n }\n <div class=\"v-header-title col-auto\">\n <p class=\"text-primary text-nowrap d-none d-md-block ps-3 m-0 w-100\">\n {{ title }}\n </p>\n <div class=\"col-8 col-md-auto ps-3 m-0 w-100\">\n <ng-content select=\"[module]\"></ng-content>\n </div>\n </div>\n @if ((screenSizeService.isMobileBlock | async) === false) {\n <div class=\"w-100 text-start justify-content-start align-content-center\">\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n </div>\n <div class=\"col-auto d-flex align-items-center justify-content-end p-4\">\n <div class=\"d-flex aling-items-center\">\n <p-avatar\n image=\"assets/primeng/images/_global/jara.png\"\n styleClass=\"me-2\"\n size=\"large\"\n shape=\"circle\"\n />\n <div class=\"card align-content-center pe-3\">\n <p\n class=\"text-primary m-0 header-username\"\n [innerHTML]=\"userName\"\n ></p>\n <p\n class=\"text-default m-0 header-userrole\"\n [innerHTML]=\"userRole\"\n ></p>\n </div>\n </div>\n <div class=\"d-flex gap-4 align-items-center\">\n <ng-content select=\"[useractions]\"/>\n </div>\n </div>\n }\n @if (screenSizeService.isMobileBlock | async) {\n <div class=\"user-info-container d-flex align-items-center\">\n <div class=\"d-flex\">\n <div class=\"card pe-3 align-content-center\">\n <p-avatar\n image=\"assets/images/_global/jara.png\"\n styleClass=\"mr-2\"\n size=\"large\"\n shape=\"circle\"\n ></p-avatar>\n </div>\n <div class=\"card align-content-center pe-3 d-flex\">\n <div class=\"user-info\">\n <p\n class=\"text-default m-0 header-username\"\n [innerHTML]=\"userName\"\n ></p>\n <p\n class=\"text-default m-0 header-userrole\"\n [innerHTML]=\"userRole\"\n ></p>\n </div>\n <div class=\"user-actions\">\n <ng-content select=\"[useractions]\"></ng-content>\n </div>\n </div>\n </div>\n <div class=\"d-flex gap-4 align-items-center justify-content-center\">\n <ng-content select=\"[dbcontext]\" />\n </div>\n </div>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: AvatarModule }, { kind: "component", type: i4$1.Avatar, selector: "p-avatar", inputs: ["label", "icon", "image", "size", "shape", "styleClass", "ariaLabel", "ariaLabelledBy"], outputs: ["onImageError"] }, { kind: "component", type: ButtonComponent, selector: "v-button", inputs: ["label", "icon", "badge", "iconPos", "disabled", "rounded", "outlined", "raised", "severity", "routerLink", "size", "queryParams"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
703
- }
704
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: HeaderComponent, decorators: [{
705
- type: Component,
706
- args: [{ selector: 'v-header', imports: [CommonModule, AvatarModule, ButtonComponent, RouterModule], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
707
- { provide: HEADER_COMPONENT_TOKEN, useExisting: HeaderComponent },
708
- ], template: "<div\n class=\"v-header d-flex w-100 text-align-end\"\n [ngStyle]=\"{ position: exampleHeader ? 'relative' : 'fixed' }\"\n >\n @if (screenSizeService.isMobileBlock | async) {\n <div class=\"burger-menu\">\n <v-button\n [icon]=\"menuVisible ? icons.cross : icons.action\"\n (click)=\"toggleMenu()\"\n />\n <div class=\"logo mt-3\" [routerLink]=\"[logoRouterLink]\">\n <img [src]=\"logoUrl\" alt=\"\"/>\n </div>\n </div>\n }\n <div class=\"v-header-title col-auto\">\n <p class=\"text-primary text-nowrap d-none d-md-block ps-3 m-0 w-100\">\n {{ title }}\n </p>\n <div class=\"col-8 col-md-auto ps-3 m-0 w-100\">\n <ng-content select=\"[module]\"></ng-content>\n </div>\n </div>\n @if ((screenSizeService.isMobileBlock | async) === false) {\n <div class=\"w-100 text-start justify-content-start align-content-center\">\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n </div>\n <div class=\"col-auto d-flex align-items-center justify-content-end p-4\">\n <div class=\"d-flex aling-items-center\">\n <p-avatar\n image=\"assets/primeng/images/_global/jara.png\"\n styleClass=\"me-2\"\n size=\"large\"\n shape=\"circle\"\n />\n <div class=\"card align-content-center pe-3\">\n <p\n class=\"text-primary m-0 header-username\"\n [innerHTML]=\"userName\"\n ></p>\n <p\n class=\"text-default m-0 header-userrole\"\n [innerHTML]=\"userRole\"\n ></p>\n </div>\n </div>\n <div class=\"d-flex gap-4 align-items-center\">\n <ng-content select=\"[useractions]\"/>\n </div>\n </div>\n }\n @if (screenSizeService.isMobileBlock | async) {\n <div class=\"user-info-container d-flex align-items-center\">\n <div class=\"d-flex\">\n <div class=\"card pe-3 align-content-center\">\n <p-avatar\n image=\"assets/images/_global/jara.png\"\n styleClass=\"mr-2\"\n size=\"large\"\n shape=\"circle\"\n ></p-avatar>\n </div>\n <div class=\"card align-content-center pe-3 d-flex\">\n <div class=\"user-info\">\n <p\n class=\"text-default m-0 header-username\"\n [innerHTML]=\"userName\"\n ></p>\n <p\n class=\"text-default m-0 header-userrole\"\n [innerHTML]=\"userRole\"\n ></p>\n </div>\n <div class=\"user-actions\">\n <ng-content select=\"[useractions]\"></ng-content>\n </div>\n </div>\n </div>\n <div class=\"d-flex gap-4 align-items-center justify-content-center\">\n <ng-content select=\"[dbcontext]\" />\n </div>\n </div>\n }\n</div>\n" }]
709
- }], ctorParameters: () => [{ type: HeaderProviderService }, { type: i1$4.ScreenSizeService }, { type: i0.ChangeDetectorRef }], propDecorators: { title: [{
710
- type: Input
711
- }], logoUrl: [{
712
- type: Input
713
- }], userName: [{
714
- type: Input
715
- }], userRole: [{
716
- type: Input
717
- }], menuRef: [{
718
- type: Input
719
- }], exampleHeader: [{
720
- type: Input
721
- }] } });
722
-
723
- class TextareaComponent extends BaseFormInputComponent {
724
- constructor(ngControl) {
725
- super(ngControl);
726
- this.rows = 5;
727
- this.cols = 30;
728
- this.autoResize = false;
729
- }
730
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: TextareaComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
731
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: TextareaComponent, isStandalone: true, selector: "v-textarea", inputs: { rows: "rows", cols: "cols", autoResize: "autoResize", floatLabel: "floatLabel" }, providers: [
732
- {
733
- provide: BaseInputControls,
734
- useExisting: TextareaComponent,
735
- },
736
- {
737
- provide: TEXTAREA_COMPONENT_TOKEN,
738
- useExisting: TextareaComponent,
739
- },
740
- ], usesInheritance: true, ngImport: i0, template: "<div class=\"v-textarea\">\n @if (!floatLabel) {\n <v-form-field\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [display]=\"formDisplay\"\n >\n <textarea\n class=\"flex-grow-1\"\n pTextarea\n [rows]=\"rows\"\n [cols]=\"cols\"\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [required]=\"isRequired()\"\n [readOnly]=\"readonly\"\n [autoResize]=\"autoResize\"\n ></textarea>\n </v-form-field>\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n }\n @if (floatLabel) {\n <p-floatLabel>\n <textarea\n class=\"flex-grow-1\"\n pTextarea\n [rows]=\"rows\"\n [cols]=\"cols\"\n [id]=\"inputId\"\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [required]=\"isRequired()\"\n [readOnly]=\"readonly\"\n [autoResize]=\"autoResize\"\n ></textarea>\n <label [for]=\"inputId\">{{ floatLabel }}</label>\n </p-floatLabel>\n }\n</div>\n", styles: [".v-textarea textarea{line-height:1.75rem!important}\n"], dependencies: [{ kind: "directive", type: Textarea, selector: "[pTextarea], [pInputTextarea]", inputs: ["autoResize", "pSize", "variant", "fluid", "invalid"], outputs: ["onResize"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: FormFieldComponent, selector: "v-form-field", inputs: ["display", "variant"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i2$2.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "component", type: ErrorComponent, selector: "v-validation-message", inputs: ["ngControl", "errorSlot", "messageSlot", "variant", "severity"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
741
- }
742
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: TextareaComponent, decorators: [{
743
- type: Component,
744
- args: [{ selector: 'v-textarea', imports: [
745
- Textarea,
746
- ReactiveFormsModule,
747
- FormFieldComponent,
748
- FloatLabelModule,
749
- ErrorComponent
750
- ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
751
- {
752
- provide: BaseInputControls,
753
- useExisting: TextareaComponent,
754
- },
755
- {
756
- provide: TEXTAREA_COMPONENT_TOKEN,
757
- useExisting: TextareaComponent,
758
- },
759
- ], template: "<div class=\"v-textarea\">\n @if (!floatLabel) {\n <v-form-field\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [display]=\"formDisplay\"\n >\n <textarea\n class=\"flex-grow-1\"\n pTextarea\n [rows]=\"rows\"\n [cols]=\"cols\"\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [required]=\"isRequired()\"\n [readOnly]=\"readonly\"\n [autoResize]=\"autoResize\"\n ></textarea>\n </v-form-field>\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n }\n @if (floatLabel) {\n <p-floatLabel>\n <textarea\n class=\"flex-grow-1\"\n pTextarea\n [rows]=\"rows\"\n [cols]=\"cols\"\n [id]=\"inputId\"\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [required]=\"isRequired()\"\n [readOnly]=\"readonly\"\n [autoResize]=\"autoResize\"\n ></textarea>\n <label [for]=\"inputId\">{{ floatLabel }}</label>\n </p-floatLabel>\n }\n</div>\n", styles: [".v-textarea textarea{line-height:1.75rem!important}\n"] }]
760
- }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
761
- type: Optional
762
- }, {
763
- type: Self
764
- }] }], propDecorators: { rows: [{
765
- type: Input
766
- }], cols: [{
767
- type: Input
768
- }], autoResize: [{
769
- type: Input
770
- }], floatLabel: [{
771
- type: Input
772
- }] } });
773
-
774
- class LoaderComponent {
775
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: LoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
776
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.1", type: LoaderComponent, isStandalone: true, selector: "v-loader", providers: [
777
- { provide: LOADER_COMPONENT_TOKEN, useExisting: LoaderComponent },
778
- ], ngImport: i0, template: "<div class=\"v-loader d-flex justify-content-center\">\n <div>\n <p-progressSpinner class=\"p-progress-spinner-circle\"></p-progressSpinner>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ProgressSpinnerModule }, { kind: "component", type: i1$5.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
779
- }
780
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: LoaderComponent, decorators: [{
781
- type: Component,
782
- args: [{ selector: 'v-loader', imports: [ProgressSpinnerModule], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
783
- { provide: LOADER_COMPONENT_TOKEN, useExisting: LoaderComponent },
784
- ], template: "<div class=\"v-loader d-flex justify-content-center\">\n <div>\n <p-progressSpinner class=\"p-progress-spinner-circle\"></p-progressSpinner>\n </div>\n</div>\n" }]
785
- }] });
786
-
787
- class SnackbarService {
788
- constructor(messageService) {
789
- this.messageService = messageService;
790
- }
791
- showSuccess(message, icon) {
792
- this.messageService.add({
793
- severity: 'success',
794
- summary: 'Success',
795
- detail: message,
796
- icon: icon,
797
- });
798
- }
799
- showInfo(message, icon) {
800
- this.messageService.add({
801
- severity: 'info',
802
- summary: 'Info',
803
- detail: message,
804
- icon: icon,
805
- });
806
- }
807
- showWarn(message, icon) {
808
- this.messageService.add({
809
- severity: 'warn',
810
- summary: 'Warn',
811
- detail: message,
812
- icon: icon,
813
- });
814
- }
815
- showError(message, icon) {
816
- this.messageService.add({
817
- severity: 'error',
818
- summary: 'Error',
819
- detail: message,
820
- icon: icon,
821
- });
822
- }
823
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SnackbarService, deps: [{ token: i1$6.MessageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
824
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SnackbarService, providedIn: 'root' }); }
825
- }
826
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SnackbarService, decorators: [{
827
- type: Injectable,
828
- args: [{
829
- providedIn: 'root',
830
- }]
831
- }], ctorParameters: () => [{ type: i1$6.MessageService }] });
832
-
833
- class SnackbarComponent {
834
- constructor(snackbarService) {
835
- this.snackbarService = snackbarService;
836
- }
837
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SnackbarComponent, deps: [{ token: SnackbarService }], target: i0.ɵɵFactoryTarget.Component }); }
838
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.1", type: SnackbarComponent, isStandalone: true, selector: "v-snackbar", providers: [
839
- SnackbarService,
840
- {
841
- provide: SNACKBAR_COMPONENT_TOKEN,
842
- useExisting: SnackbarComponent,
843
- },
844
- ], ngImport: i0, template: "<div class=\"v-snackbar\">\n <p-toast />\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ToastModule }, { kind: "component", type: i2$6.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }, { kind: "ngmodule", type: RippleModule }] }); }
845
- }
846
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SnackbarComponent, decorators: [{
847
- type: Component,
848
- args: [{ selector: 'v-snackbar', imports: [ToastModule, RippleModule], providers: [
849
- SnackbarService,
850
- {
851
- provide: SNACKBAR_COMPONENT_TOKEN,
852
- useExisting: SnackbarComponent,
853
- },
854
- ], template: "<div class=\"v-snackbar\">\n <p-toast />\n</div>\n" }]
855
- }], ctorParameters: () => [{ type: SnackbarService }] });
856
-
857
- class SideMenuComponent extends UnsubscribeComponent {
858
- constructor() {
859
- super(...arguments);
860
- this.items = [];
861
- this.logoUrl = '';
862
- this.minimalized = new EventEmitter();
863
- this.itemSelected = new EventEmitter();
864
- this.menuService = inject(SideMenuService);
865
- this.router = inject(Router);
866
- this.icons = Icons;
867
- this.screenSizeService = inject(ScreenSizeService);
868
- this.isMinimalized = false;
869
- }
870
- ngAfterContentInit() {
871
- if (this.menuService.menuMinimalized) {
872
- this.setMenuMinimalized(this.menu);
873
- }
874
- }
875
- menuMinimalize(menu) {
876
- const audit = document.getElementsByClassName('detail-audit');
877
- if (audit.length > 0) {
878
- audit.item(0)?.classList.toggle('menu-close__audit');
879
- }
880
- if (menu) {
881
- menu.classList.toggle('menu-closed');
882
- this.isMinimalized = menu.classList.contains('menu-closed');
883
- this.menuService.saveMinimalizedState(this.isMinimalized);
884
- this.minimalized.emit(this.isMinimalized);
885
- }
886
- }
887
- onSelectionChange(event) {
888
- const item = event.node;
889
- if (item.label) {
890
- this.menuService.saveExpandedState(item);
891
- }
892
- }
893
- onNodeSelect(event) {
894
- const item = event.node;
895
- if (item.url) {
896
- this.router.navigateByUrl(item.url);
897
- }
898
- }
899
- setMenuMinimalized(menu) {
900
- if (menu) {
901
- menu.nativeElement.classList.add("menu-closed");
902
- this.minimalized.emit(true);
903
- }
904
- }
905
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SideMenuComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
906
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: SideMenuComponent, isStandalone: true, selector: "v-side-menu", inputs: { items: "items", logoUrl: "logoUrl", userName: "userName", userRole: "userRole" }, outputs: { minimalized: "minimalized", itemSelected: "itemSelected" }, viewQueries: [{ propertyName: "menu", first: true, predicate: ["sidemenu"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"v-side-menu\" #sidemenu>\n <div\n [ngClass]=\"\n (screenSizeService.isMobileBlock | async)\n ? 'v-side-menu-container__mobile'\n : 'v-side-menu-container'\n \"\n >\n @if ((screenSizeService.isMobileBlock | async) === false) {\n <div class=\"v-side-menu-header pb-3 text-center\">\n <div class=\"logo\" [routerLink]=\"[logoRouterLink]\">\n <img [src]=\"logoUrl\" alt=\"\" />\n </div>\n <hr />\n </div>\n }\n <div\n [ngClass]=\"{\n 'v-side-menu-body__mobile': screenSizeService.isMobileBlock | async,\n 'v-side-menu-body': (screenSizeService.isMobileBlock | async) === false\n }\"\n class=\"text-center\"\n >\n <p-tree\n selectionMode=\"single\"\n [value]=\"items\"\n (onNodeExpand)=\"onSelectionChange($event)\"\n (onNodeCollapse)=\"onSelectionChange($event)\"\n (onNodeSelect)=\"onNodeSelect($event)\"\n >\n </p-tree>\n </div>\n <div\n class=\"text-center py-3 d-flex justify-content-end flex-column support\"\n >\n <hr class=\"mx-4 divider\" />\n <v-button\n class=\"support-button\"\n [label]=\"isMinimalized ? undefined : 'Support'\"\n severity=\"primary\"\n [icon]=\"icons.questionCircle\"\n ></v-button>\n </div>\n </div>\n @if ((screenSizeService.isMobileBlock | async) === false) {\n <div\n class=\"close-button\"\n (click)=\"menuMinimalize(sidemenu)\"\n >\n <i class=\"pi pi-chevron-left text-white close-icon\"></i>\n </div>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: TreeModule }, { kind: "component", type: i1$7.Tree, selector: "p-tree", inputs: ["value", "selectionMode", "loadingMode", "selection", "styleClass", "contextMenu", "draggableScope", "droppableScope", "draggableNodes", "droppableNodes", "metaKeySelection", "propagateSelectionUp", "propagateSelectionDown", "loading", "loadingIcon", "emptyMessage", "ariaLabel", "togglerAriaLabel", "ariaLabelledBy", "validateDrop", "filter", "filterInputAutoFocus", "filterBy", "filterMode", "filterOptions", "filterPlaceholder", "filteredNodes", "filterLocale", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "indentation", "_templateMap", "trackBy", "highlightOnSelect"], outputs: ["selectionChange", "onNodeSelect", "onNodeUnselect", "onNodeExpand", "onNodeCollapse", "onNodeContextMenuSelect", "onNodeDoubleClick", "onNodeDrop", "onLazyLoad", "onScroll", "onScrollIndexChange", "onFilter"] }, { kind: "component", type: ButtonComponent, selector: "v-button", inputs: ["label", "icon", "badge", "iconPos", "disabled", "rounded", "outlined", "raised", "severity", "routerLink", "size", "queryParams"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: AvatarModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
907
- }
908
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SideMenuComponent, decorators: [{
909
- type: Component,
910
- args: [{ selector: 'v-side-menu', imports: [
911
- NgClass,
912
- AsyncPipe,
913
- TreeModule,
914
- ButtonComponent,
915
- TranslateModule,
916
- AvatarModule,
917
- RouterModule
918
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"v-side-menu\" #sidemenu>\n <div\n [ngClass]=\"\n (screenSizeService.isMobileBlock | async)\n ? 'v-side-menu-container__mobile'\n : 'v-side-menu-container'\n \"\n >\n @if ((screenSizeService.isMobileBlock | async) === false) {\n <div class=\"v-side-menu-header pb-3 text-center\">\n <div class=\"logo\" [routerLink]=\"[logoRouterLink]\">\n <img [src]=\"logoUrl\" alt=\"\" />\n </div>\n <hr />\n </div>\n }\n <div\n [ngClass]=\"{\n 'v-side-menu-body__mobile': screenSizeService.isMobileBlock | async,\n 'v-side-menu-body': (screenSizeService.isMobileBlock | async) === false\n }\"\n class=\"text-center\"\n >\n <p-tree\n selectionMode=\"single\"\n [value]=\"items\"\n (onNodeExpand)=\"onSelectionChange($event)\"\n (onNodeCollapse)=\"onSelectionChange($event)\"\n (onNodeSelect)=\"onNodeSelect($event)\"\n >\n </p-tree>\n </div>\n <div\n class=\"text-center py-3 d-flex justify-content-end flex-column support\"\n >\n <hr class=\"mx-4 divider\" />\n <v-button\n class=\"support-button\"\n [label]=\"isMinimalized ? undefined : 'Support'\"\n severity=\"primary\"\n [icon]=\"icons.questionCircle\"\n ></v-button>\n </div>\n </div>\n @if ((screenSizeService.isMobileBlock | async) === false) {\n <div\n class=\"close-button\"\n (click)=\"menuMinimalize(sidemenu)\"\n >\n <i class=\"pi pi-chevron-left text-white close-icon\"></i>\n </div>\n }\n</div>\n" }]
919
- }], propDecorators: { items: [{
920
- type: Input
921
- }], logoUrl: [{
922
- type: Input
923
- }], userName: [{
924
- type: Input
925
- }], userRole: [{
926
- type: Input
927
- }], minimalized: [{
928
- type: Output
929
- }], itemSelected: [{
930
- type: Output
931
- }], menu: [{
932
- type: ViewChild,
933
- args: ['sidemenu', { static: true }]
934
- }] } });
935
-
936
- class SideMenuModule extends UnsubscribeComponent {
937
- constructor(service) {
938
- super();
939
- this.service = service;
940
- }
941
- static forRoot(config) {
942
- const moduleWithProvider = {
943
- ngModule: SideMenuModule,
944
- };
945
- if (config?.items) {
946
- moduleWithProvider.providers = [
947
- {
948
- provide: MENU_TOKEN,
949
- useValue: config.items,
950
- },
951
- ];
952
- }
953
- return moduleWithProvider;
954
- }
955
- static forChild(menu) {
956
- return {
957
- ngModule: SideMenuModule,
958
- providers: [
959
- {
960
- provide: MENU_TOKEN,
961
- useValue: menu,
962
- },
963
- ],
964
- };
965
- }
966
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SideMenuModule, deps: [{ token: i1$4.SideMenuProviderService }], target: i0.ɵɵFactoryTarget.NgModule }); }
967
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.1", ngImport: i0, type: SideMenuModule, imports: [SideMenuComponent], exports: [SideMenuComponent] }); }
968
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SideMenuModule, providers: [
969
- SideMenuProviderService,
970
- {
971
- provide: SIDE_MENU_COMPONENT_TOKEN,
972
- useExisting: SideMenuComponent,
973
- },
974
- {
975
- provide: SIDE_MENU_STATE_TOKEN,
976
- useValue: localStorage.getItem('SideMenuStateToken') ?? {
977
- expanded: [],
978
- minimalized: false,
979
- },
980
- },
981
- ], imports: [SideMenuComponent] }); }
982
- }
983
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SideMenuModule, decorators: [{
984
- type: NgModule,
985
- args: [{
986
- imports: [SideMenuComponent],
987
- exports: [SideMenuComponent],
988
- providers: [
989
- SideMenuProviderService,
990
- {
991
- provide: SIDE_MENU_COMPONENT_TOKEN,
992
- useExisting: SideMenuComponent,
993
- },
994
- {
995
- provide: SIDE_MENU_STATE_TOKEN,
996
- useValue: localStorage.getItem('SideMenuStateToken') ?? {
997
- expanded: [],
998
- minimalized: false,
999
- },
1000
- },
1001
- ],
1002
- }]
1003
- }], ctorParameters: () => [{ type: i1$4.SideMenuProviderService }] });
1004
-
1005
- class TableFilterPipe {
1006
- transform(value) {
1007
- if (value == undefined) {
1008
- return undefined;
1009
- }
1010
- return Object.entries(value)
1011
- .filter((x) => x[0] != undefined)
1012
- .reduce((currentFilter, [key, value]) => {
1013
- const filterValue = this.convertToFilterMetadata(value);
1014
- if (filterValue) {
1015
- if (key === 'searchField') {
1016
- key = 'global';
1017
- }
1018
- currentFilter[key] = filterValue;
1019
- }
1020
- return currentFilter;
1021
- }, {});
1022
- }
1023
- convertToFilterMetadata(value) {
1024
- if (value == undefined) {
1025
- return undefined;
1026
- }
1027
- if (typeof value == 'string') {
1028
- return {
1029
- matchMode: 'contains',
1030
- value: value,
1031
- };
1032
- }
1033
- if (Array.isArray(value)) {
1034
- return value.map((x) => this.convertToFilterMetadata(x));
1035
- }
1036
- return {
1037
- matchMode: 'equals',
1038
- value: value,
1039
- };
1040
- }
1041
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: TableFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1042
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.1", ngImport: i0, type: TableFilterPipe, isStandalone: true, name: "primengFilter" }); }
1043
- }
1044
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: TableFilterPipe, decorators: [{
1045
- type: Pipe,
1046
- args: [{
1047
- name: 'primengFilter',
1048
- standalone: true,
1049
- }]
1050
- }] });
1051
-
1052
- function convertToFilter(value) {
1053
- if (value == undefined) {
1054
- return undefined;
1055
- }
1056
- const filter = {};
1057
- Object.keys(value).map((key) => {
1058
- const filterValue = value[key];
1059
- if (filterValue != undefined && typeof filterValue === 'object') {
1060
- filter[key] = filterValue.value;
1061
- }
1062
- else {
1063
- filter[key] = filterValue;
1064
- }
1065
- });
1066
- return filter;
1067
- }
1068
-
1069
- class TableComponent {
1070
- constructor() {
1071
- this.total = 0;
1072
- this.scrollable = true;
1073
- this.pageSize = DEFAULT_SEARCH_LIMIT;
1074
- this.showPaginator = true;
1075
- this.sortMultiple = false;
1076
- this.lazy = false;
1077
- this.showPageSizePicker = true;
1078
- this.maximumColumnLength = 0;
1079
- this.disableCustomClicks = false;
1080
- this.selection = [];
1081
- this.pageSizeChange = new EventEmitter();
1082
- this.selectionChange = new EventEmitter();
1083
- this.pageChange = new EventEmitter();
1084
- this.sortChange = new EventEmitter();
1085
- this.lazyLoad = new EventEmitter();
1086
- this.cdRef = inject(ChangeDetectorRef);
1087
- this.tableColumns = [];
1088
- this.tableRows = [];
1089
- this.expandedRows = {};
1090
- this.router = inject(Router);
1091
- this.route = inject(ActivatedRoute);
1092
- this.icons = Icons;
1093
- }
1094
- set columns(value) {
1095
- this._columns = value;
1096
- this.tableColumns = (value ?? []).map((x) => new ColumnModel(x));
1097
- }
1098
- get columns() {
1099
- return this._columns;
1100
- }
1101
- ngOnChanges(changes) {
1102
- if (changes['data']) {
1103
- this.updateRowModels();
1104
- }
1105
- if (changes['selection'] || changes['data']) {
1106
- this.tableSelection = this.selection
1107
- ? this.tableRows.filter((x) => this.selection.includes(x.row))
1108
- : undefined;
1109
- }
1110
- if (changes['filter'] && !changes['filter'].isFirstChange()) {
1111
- this.globalFilterFields = this.columns.filter(x => x.id).map(x => 'row.' + x.id);
1112
- setTimeout(() => {
1113
- this.table?._filter();
1114
- }, 0);
1115
- }
1116
- }
1117
- ngAfterViewInit() {
1118
- if (this.viewColumns?.length) {
1119
- const templateColumnModel = this.viewColumns
1120
- .toArray()
1121
- .map((provider) => new ColumnModel(provider.getDefinition()));
1122
- this.tableColumns = [...this.tableColumns, ...templateColumnModel];
1123
- }
1124
- this.expansionTemplate = {
1125
- template: this.rowDetailTemplate,
1126
- };
1127
- this.cdRef.detectChanges();
1128
- }
1129
- updateRowModels() {
1130
- this.tableRows = (this.data ?? []).map((x) => new RowModel(x, false, false));
1131
- }
1132
- pageChanged(page) {
1133
- this.pageChange.emit(page);
1134
- }
1135
- pageSizeChanged(pageSize) {
1136
- this.pageSizeChange.emit(pageSize);
1137
- this.pageSize = pageSize;
1138
- }
1139
- sortChanged(event) {
1140
- let eventEmiterArg;
1141
- if (event.field) {
1142
- const singleEvent = event;
1143
- eventEmiterArg = this.getSorts([singleEvent]);
1144
- this.sortMeta = undefined;
1145
- this.sortSignleColumn = singleEvent;
1146
- }
1147
- else {
1148
- const multiEvent = event;
1149
- eventEmiterArg = this.getSorts(multiEvent.multisortmeta);
1150
- this.sortMeta = multiEvent.multisortmeta;
1151
- this.sortSignleColumn = undefined;
1152
- }
1153
- this.sortChange.emit(eventEmiterArg);
1154
- }
1155
- selectionChanged(event) {
1156
- this.tableSelection = event;
1157
- if (this.selectionMode) {
1158
- const eventArgArray = Array.isArray(event) ? event : [event];
1159
- const selection = event ? eventArgArray.map((x) => x.row) : [];
1160
- this.selectionChange.emit(selection);
1161
- }
1162
- }
1163
- fireLazyLoad(event) {
1164
- if (this.lazy) {
1165
- const sort = this.sortSignleColumn
1166
- ? this.getSorts([this.sortSignleColumn])
1167
- : this.sortMeta
1168
- ? this.getSorts(this.sortMeta)
1169
- : undefined;
1170
- const lazyLoadEvent = {
1171
- sort,
1172
- offset: event.first ?? 0,
1173
- limit: event.rows ?? this.pageSize,
1174
- filter: convertToFilter(event.filters),
1175
- };
1176
- this.lazyLoad.emit(lazyLoadEvent);
1177
- }
1178
- }
1179
- removePrefix(input, prefix) {
1180
- return input.startsWith(prefix) ? input.slice(prefix.length) : input;
1181
- }
1182
- convertToSortDirection(value) {
1183
- return value === 1 ? SortDirection.asc : SortDirection.desc;
1184
- }
1185
- getSorts(value) {
1186
- return value
1187
- ? value.map((x) => ({
1188
- field: this.removePrefix(x.field, 'row.'),
1189
- direction: this.convertToSortDirection(x.order),
1190
- }))
1191
- : undefined;
1192
- }
1193
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1194
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: TableComponent, isStandalone: true, selector: "v-table", inputs: { data: "data", total: "total", filter: "filter", loading: "loading", scrollable: "scrollable", pageSize: "pageSize", currentPage: "currentPage", showPaginator: "showPaginator", sortMultiple: "sortMultiple", lazy: "lazy", selectionMode: "selectionMode", showPageSizePicker: "showPageSizePicker", entityKey: "entityKey", maximumColumnLength: "maximumColumnLength", disableCustomClicks: "disableCustomClicks", columns: "columns", selection: "selection" }, outputs: { pageSizeChange: "pageSizeChange", selectionChange: "selectionChange", pageChange: "pageChange", sortChange: "sortChange", lazyLoad: "lazyLoad" }, providers: [
1195
- {
1196
- provide: TABLE_COMPONENT_TOKEN,
1197
- useExisting: TableComponent,
1198
- },
1199
- ], queries: [{ propertyName: "rowDetailTemplate", first: true, predicate: ["rowDetail"], descendants: true }, { propertyName: "viewColumns", predicate: TABLE_COLUMN_PROVIDER }], viewQueries: [{ propertyName: "table", first: true, predicate: ["table"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"v-table\">\n <p-table\n #table\n class=\"v-table\"\n [value]=\"tableRows\"\n [filters]=\"filter | primengFilter\"\n [paginator]=\"showPaginator\"\n [rows]=\"pageSize\"\n [totalRecords]=\"total\"\n [loading]=\"loading\"\n [lazy]=\"lazy\"\n dataKey=\"id\"\n [scrollable]=\"scrollable\"\n [sortMode]=\"sortMultiple ? 'multiple' : 'single'\"\n [scrollHeight]=\"'flex'\"\n [selectionMode]=\"selectionMode\"\n [selection]=\"tableSelection\"\n [rowsPerPageOptions]=\"[10, 25, 50, 100]\"\n [expandedRowKeys]=\"expandedRows\"\n [showCurrentPageReport]=\"true\"\n currentPageReportTemplate=\"Showing {first} to {last} of {totalRecords} entries\"\n [customSort]=\"lazy\"\n [multiSortMeta]=\"sortMeta\"\n [resizableColumns]=\"true\"\n columnResizeMode=\"expand\"\n [globalFilterFields]=\"globalFilterFields\"\n (onPage)=\"pageChanged($event)\"\n (onSort)=\"sortChanged($event)\"\n (selectionChange)=\"selectionChanged($event)\"\n (onLazyLoad)=\"fireLazyLoad($event)\"\n >\n <ng-template pTemplate=\"header\">\n <tr>\n @if (selectionMode === 'multiple') {\n <th>\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </th>\n } @for (column of tableColumns; track column; let index = $index) {\n @if (column.sortable) {\n <th\n pResizableColumn\n [pSortableColumn]=\"'row.' + column.id\"\n [style.width]=\"column.width\"\n >\n {{ column.headerGetter(column.id, index) }}\n <p-sortIcon [field]=\"'row.' + column.id\"></p-sortIcon>\n </th>\n }\n @if (!column.sortable) {\n <th\n pResizableColumn\n [class.v-auto-cell]=\"column.template\"\n [style.width]=\"column.width\"\n >\n {{ column.headerGetter(column.id, index) }}\n </th>\n }\n } @if (rowDetailTemplate){\n <th></th>\n }\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-row let-expanded=\"expanded\">\n <tr\n [pSelectableRow]=\"row\"\n [pSelectableRowDisabled]=\"selectionMode !== 'single'\"\n (dblclick)=\"\n router.navigate(['./' + row.row[entityKey ?? 'id']], {\n relativeTo: route\n })\n \"\n >\n @if (selectionMode === 'multiple'){\n <td>\n <p-tableCheckbox [value]=\"row\"></p-tableCheckbox>\n </td>\n }\n @for (cd of tableColumns; track cd; let index = $index) {\n <td\n [class]=\"cd.columnClass!\"\n [class.v-auto-cell]=\"cd.template\"\n >\n @if (cd.template) {\n <ng-container\n *ngTemplateOutlet=\"cd.template; context: { $implicit: row.row }\"\n ></ng-container>\n }\n @if (!row.template) {\n <span\n [queryParams]=\"cd.queryParams ? cd.queryParams : undefined\"\n [routerLink]=\"cd.routerLink ? cd.routerLink(row.row) : undefined\"\n [innerHTML]=\"cd.valueGetter(row.row, index)\"\n ></span>\n }\n </td>\n }\n @if (rowDetailTemplate){\n <td>\n <p-button\n type=\"button\"\n pRipple\n severity=\"primary\"\n [pRowToggler]=\"row\"\n [text]=\"true\"\n [rounded]=\"true\"\n [plain]=\"true\"\n [icon]=\"expanded ? icons.chevronDown : icons.chevronRight\"\n />\n </td>\n }\n </tr>\n </ng-template>\n <ng-template pTemplate=\"rowexpansion\" let-row>\n <tr>\n <td [attr.colspan]=\"tableColumns.length + 1\">\n <ng-container\n class=\"w-100\"\n *ngTemplateOutlet=\"\n expansionTemplate.template;\n context: { $implicit: row.row }\n \"\n ></ng-container>\n </td>\n </tr>\n </ng-template>\n </p-table>\n</div>\n", styles: [".v-auto-cell{width:1%;white-space:nowrap}.v-table{display:flex;flex-direction:column;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: TableModule }, { kind: "component", type: i2$7.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i1$6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i2$7.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { kind: "directive", type: i2$7.SelectableRow, selector: "[pSelectableRow]", inputs: ["pSelectableRow", "pSelectableRowIndex", "pSelectableRowDisabled"] }, { kind: "directive", type: i2$7.RowToggler, selector: "[pRowToggler]", inputs: ["pRowToggler", "pRowTogglerDisabled"] }, { kind: "directive", type: i2$7.ResizableColumn, selector: "[pResizableColumn]", inputs: ["pResizableColumnDisabled"] }, { kind: "component", type: i2$7.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { kind: "component", type: i2$7.TableCheckbox, selector: "p-tableCheckbox", inputs: ["value", "disabled", "required", "index", "inputId", "name", "ariaLabel"] }, { kind: "component", type: i2$7.TableHeaderCheckbox, selector: "p-tableHeaderCheckbox", inputs: ["disabled", "inputId", "name", "ariaLabel"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$3.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: RippleModule }, { kind: "directive", type: i6.Ripple, selector: "[pRipple]" }, { kind: "pipe", type: TableFilterPipe, name: "primengFilter" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
1200
- }
1201
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: TableComponent, decorators: [{
1202
- type: Component,
1203
- args: [{ selector: 'v-table', imports: [
1204
- CommonModule,
1205
- TableModule,
1206
- RouterModule,
1207
- ButtonModule,
1208
- RippleModule,
1209
- TableFilterPipe,
1210
- ], providers: [
1211
- {
1212
- provide: TABLE_COMPONENT_TOKEN,
1213
- useExisting: TableComponent,
1214
- },
1215
- ], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"v-table\">\n <p-table\n #table\n class=\"v-table\"\n [value]=\"tableRows\"\n [filters]=\"filter | primengFilter\"\n [paginator]=\"showPaginator\"\n [rows]=\"pageSize\"\n [totalRecords]=\"total\"\n [loading]=\"loading\"\n [lazy]=\"lazy\"\n dataKey=\"id\"\n [scrollable]=\"scrollable\"\n [sortMode]=\"sortMultiple ? 'multiple' : 'single'\"\n [scrollHeight]=\"'flex'\"\n [selectionMode]=\"selectionMode\"\n [selection]=\"tableSelection\"\n [rowsPerPageOptions]=\"[10, 25, 50, 100]\"\n [expandedRowKeys]=\"expandedRows\"\n [showCurrentPageReport]=\"true\"\n currentPageReportTemplate=\"Showing {first} to {last} of {totalRecords} entries\"\n [customSort]=\"lazy\"\n [multiSortMeta]=\"sortMeta\"\n [resizableColumns]=\"true\"\n columnResizeMode=\"expand\"\n [globalFilterFields]=\"globalFilterFields\"\n (onPage)=\"pageChanged($event)\"\n (onSort)=\"sortChanged($event)\"\n (selectionChange)=\"selectionChanged($event)\"\n (onLazyLoad)=\"fireLazyLoad($event)\"\n >\n <ng-template pTemplate=\"header\">\n <tr>\n @if (selectionMode === 'multiple') {\n <th>\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </th>\n } @for (column of tableColumns; track column; let index = $index) {\n @if (column.sortable) {\n <th\n pResizableColumn\n [pSortableColumn]=\"'row.' + column.id\"\n [style.width]=\"column.width\"\n >\n {{ column.headerGetter(column.id, index) }}\n <p-sortIcon [field]=\"'row.' + column.id\"></p-sortIcon>\n </th>\n }\n @if (!column.sortable) {\n <th\n pResizableColumn\n [class.v-auto-cell]=\"column.template\"\n [style.width]=\"column.width\"\n >\n {{ column.headerGetter(column.id, index) }}\n </th>\n }\n } @if (rowDetailTemplate){\n <th></th>\n }\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-row let-expanded=\"expanded\">\n <tr\n [pSelectableRow]=\"row\"\n [pSelectableRowDisabled]=\"selectionMode !== 'single'\"\n (dblclick)=\"\n router.navigate(['./' + row.row[entityKey ?? 'id']], {\n relativeTo: route\n })\n \"\n >\n @if (selectionMode === 'multiple'){\n <td>\n <p-tableCheckbox [value]=\"row\"></p-tableCheckbox>\n </td>\n }\n @for (cd of tableColumns; track cd; let index = $index) {\n <td\n [class]=\"cd.columnClass!\"\n [class.v-auto-cell]=\"cd.template\"\n >\n @if (cd.template) {\n <ng-container\n *ngTemplateOutlet=\"cd.template; context: { $implicit: row.row }\"\n ></ng-container>\n }\n @if (!row.template) {\n <span\n [queryParams]=\"cd.queryParams ? cd.queryParams : undefined\"\n [routerLink]=\"cd.routerLink ? cd.routerLink(row.row) : undefined\"\n [innerHTML]=\"cd.valueGetter(row.row, index)\"\n ></span>\n }\n </td>\n }\n @if (rowDetailTemplate){\n <td>\n <p-button\n type=\"button\"\n pRipple\n severity=\"primary\"\n [pRowToggler]=\"row\"\n [text]=\"true\"\n [rounded]=\"true\"\n [plain]=\"true\"\n [icon]=\"expanded ? icons.chevronDown : icons.chevronRight\"\n />\n </td>\n }\n </tr>\n </ng-template>\n <ng-template pTemplate=\"rowexpansion\" let-row>\n <tr>\n <td [attr.colspan]=\"tableColumns.length + 1\">\n <ng-container\n class=\"w-100\"\n *ngTemplateOutlet=\"\n expansionTemplate.template;\n context: { $implicit: row.row }\n \"\n ></ng-container>\n </td>\n </tr>\n </ng-template>\n </p-table>\n</div>\n", styles: [".v-auto-cell{width:1%;white-space:nowrap}.v-table{display:flex;flex-direction:column;height:100%}\n"] }]
1216
- }], propDecorators: { viewColumns: [{
1217
- type: ContentChildren,
1218
- args: [TABLE_COLUMN_PROVIDER]
1219
- }], table: [{
1220
- type: ViewChild,
1221
- args: ['table']
1222
- }], rowDetailTemplate: [{
1223
- type: ContentChild,
1224
- args: ['rowDetail', { static: false }]
1225
- }], data: [{
1226
- type: Input
1227
- }], total: [{
1228
- type: Input
1229
- }], filter: [{
1230
- type: Input
1231
- }], loading: [{
1232
- type: Input
1233
- }], scrollable: [{
1234
- type: Input
1235
- }], pageSize: [{
1236
- type: Input
1237
- }], currentPage: [{
1238
- type: Input
1239
- }], showPaginator: [{
1240
- type: Input
1241
- }], sortMultiple: [{
1242
- type: Input
1243
- }], lazy: [{
1244
- type: Input
1245
- }], selectionMode: [{
1246
- type: Input
1247
- }], showPageSizePicker: [{
1248
- type: Input
1249
- }], entityKey: [{
1250
- type: Input
1251
- }], maximumColumnLength: [{
1252
- type: Input
1253
- }], disableCustomClicks: [{
1254
- type: Input
1255
- }], columns: [{
1256
- type: Input
1257
- }], selection: [{
1258
- type: Input
1259
- }], pageSizeChange: [{
1260
- type: Output
1261
- }], selectionChange: [{
1262
- type: Output
1263
- }], pageChange: [{
1264
- type: Output
1265
- }], sortChange: [{
1266
- type: Output
1267
- }], lazyLoad: [{
1268
- type: Output
1269
- }] } });
1270
-
1271
- class ActionButtonComponent {
1272
- constructor() {
1273
- this.disabled = false;
1274
- this.outlined = false;
1275
- this.raised = false;
1276
- // eslint-disable-next-line @angular-eslint/no-output-native
1277
- this.click = new EventEmitter();
1278
- this.icons = Icons;
1279
- this.propertyChangeSubject = new Subject();
1280
- this.propertyChanged = this.propertyChangeSubject.asObservable();
1281
- this.buttonGroup = inject(ACTION_BUTTON_GROUP_COMPONENT_TOKEN, {
1282
- optional: true,
1283
- });
1284
- }
1285
- ngOnChanges(changes) {
1286
- const isValueChange = Object.keys(changes).some((x) => !changes[x].firstChange);
1287
- if (isValueChange) {
1288
- this.propertyChangeSubject.next(null);
1289
- }
1290
- }
1291
- handleClick(event) {
1292
- event.stopPropagation();
1293
- this.click.emit(event);
1294
- }
1295
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ActionButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1296
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.1", type: ActionButtonComponent, isStandalone: true, selector: "v-action-button", inputs: { disabled: "disabled", toolTip: "toolTip", id: "id", icon: "icon", outlined: "outlined", raised: "raised", severity: "severity", label: "label", size: "size" }, outputs: { click: "click" }, usesOnChanges: true, ngImport: i0, template: "<v-button\n [label]=\"label\"\n [disabled]=\"disabled\"\n [icon]=\"icon\"\n [outlined]=\"outlined\"\n tooltipPosition=\"bottom\"\n [size]=\"size\"\n [severity]=\"severity\"\n (click)=\"handleClick($event)\"\n></v-button>\n", styles: [""], dependencies: [{ kind: "component", type: ButtonComponent, selector: "v-button", inputs: ["label", "icon", "badge", "iconPos", "disabled", "rounded", "outlined", "raised", "severity", "routerLink", "size", "queryParams"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1297
- }
1298
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ActionButtonComponent, decorators: [{
1299
- type: Component,
1300
- args: [{ selector: 'v-action-button', imports: [ButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<v-button\n [label]=\"label\"\n [disabled]=\"disabled\"\n [icon]=\"icon\"\n [outlined]=\"outlined\"\n tooltipPosition=\"bottom\"\n [size]=\"size\"\n [severity]=\"severity\"\n (click)=\"handleClick($event)\"\n></v-button>\n" }]
1301
- }], propDecorators: { disabled: [{
1302
- type: Input
1303
- }], toolTip: [{
1304
- type: Input
1305
- }], id: [{
1306
- type: Input
1307
- }], icon: [{
1308
- type: Input
1309
- }], outlined: [{
1310
- type: Input
1311
- }], raised: [{
1312
- type: Input
1313
- }], severity: [{
1314
- type: Input
1315
- }], label: [{
1316
- type: Input
1317
- }], size: [{
1318
- type: Input
1319
- }], click: [{
1320
- type: Output
1321
- }] } });
1322
-
1323
- class ActionButtonGroupComponent extends UnsubscribeComponent {
1324
- constructor(changeDetectorRef, screenSizeService) {
1325
- super();
1326
- this.changeDetectorRef = changeDetectorRef;
1327
- this.screenSizeService = screenSizeService;
1328
- this.maxItems = 3;
1329
- this.maxItemsMobile = 0;
1330
- this.items = [];
1331
- this.menuIconPos = 'right';
1332
- this.menuIcon = Icons.action;
1333
- this.icons = Icons;
1334
- this.allItems = [];
1335
- this.visibleActions = [];
1336
- this.menuItems = [];
1337
- }
1338
- ngAfterContentInit() {
1339
- this.subscribeItemChange();
1340
- }
1341
- fireClick(item, event) {
1342
- event.stopPropagation();
1343
- item.click.emit();
1344
- }
1345
- subscribeItemChange() {
1346
- const screenResize$ = this.screenSizeService.isMobileBlock;
1347
- const actions$ = queryListChanged(this.actions);
1348
- screenResize$
1349
- .pipe(takeUntil(this.destroyed$), combineLatestWith(actions$))
1350
- .subscribe(([isMobile, actions]) => {
1351
- this.computeItems(actions, isMobile);
1352
- });
1353
- }
1354
- computeItems(actions, isMobile) {
1355
- const allItems = [...(this.items ?? []), ...actions];
1356
- const maxItems = isMobile ? this.maxItemsMobile : this.maxItems;
1357
- this.visibleActions = allItems.slice(0, maxItems);
1358
- this.menuItems = allItems.slice(maxItems).map(this.convertToMenuItem);
1359
- this.changeDetectorRef.detectChanges();
1360
- }
1361
- convertToMenuItem(item) {
1362
- return {
1363
- label: item.label,
1364
- icon: item.icon,
1365
- command: () => {
1366
- item.click.emit();
1367
- },
1368
- };
1369
- }
1370
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ActionButtonGroupComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$4.ScreenSizeService }], target: i0.ɵɵFactoryTarget.Component }); }
1371
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: ActionButtonGroupComponent, isStandalone: true, selector: "v-action-button-group", inputs: { maxItems: "maxItems", maxItemsMobile: "maxItemsMobile", items: "items", menuIconPos: "menuIconPos", menuIcon: "menuIcon", label: "label", icon: "icon" }, providers: [
1372
- {
1373
- provide: ACTION_BUTTON_GROUP_COMPONENT_TOKEN,
1374
- useExisting: ActionButtonGroupComponent,
1375
- },
1376
- ], queries: [{ propertyName: "actions", predicate: ActionButtonComponent }], usesInheritance: true, ngImport: i0, template: "<div\n class=\"v-action-button-group align-items-center justify-content-center justify-content-md-end\"\n>\n <div class=\"v-action-button-group__actions d-flex gap-2\">\n @for (action of visibleActions; track action) {\n <v-action-button\n [disabled]=\"action.disabled\"\n [icon]=\"action.icon\"\n [id]=\"action.id\"\n [outlined]=\"action.outlined\"\n [raised]=\"action.raised\"\n [toolTip]=\"action.toolTip || action.label\"\n [severity]=\"action.severity\"\n [size]=\"action.size\"\n (click)=\"fireClick(action, $event)\"\n ></v-action-button>\n } @if (actions.length > visibleActions.length) {\n <v-dropdown-button\n [label]=\"label\"\n [icon]=\"menuIcon\"\n [items]=\"menuItems\"\n />\n }\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: ActionButtonComponent, selector: "v-action-button", inputs: ["disabled", "toolTip", "id", "icon", "outlined", "raised", "severity", "label", "size"], outputs: ["click"] }, { kind: "component", type: DropdownButtonComponent, selector: "v-dropdown-button", inputs: ["label", "icon", "rounded", "raised", "outlined", "severity", "size", "items"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1377
- }
1378
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ActionButtonGroupComponent, decorators: [{
1379
- type: Component,
1380
- args: [{ selector: 'v-action-button-group', imports: [ActionButtonComponent, DropdownButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
1381
- {
1382
- provide: ACTION_BUTTON_GROUP_COMPONENT_TOKEN,
1383
- useExisting: ActionButtonGroupComponent,
1384
- },
1385
- ], template: "<div\n class=\"v-action-button-group align-items-center justify-content-center justify-content-md-end\"\n>\n <div class=\"v-action-button-group__actions d-flex gap-2\">\n @for (action of visibleActions; track action) {\n <v-action-button\n [disabled]=\"action.disabled\"\n [icon]=\"action.icon\"\n [id]=\"action.id\"\n [outlined]=\"action.outlined\"\n [raised]=\"action.raised\"\n [toolTip]=\"action.toolTip || action.label\"\n [severity]=\"action.severity\"\n [size]=\"action.size\"\n (click)=\"fireClick(action, $event)\"\n ></v-action-button>\n } @if (actions.length > visibleActions.length) {\n <v-dropdown-button\n [label]=\"label\"\n [icon]=\"menuIcon\"\n [items]=\"menuItems\"\n />\n }\n </div>\n</div>\n" }]
1386
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1$4.ScreenSizeService }], propDecorators: { actions: [{
1387
- type: ContentChildren,
1388
- args: [ActionButtonComponent]
1389
- }], maxItems: [{
1390
- type: Input
1391
- }], maxItemsMobile: [{
1392
- type: Input
1393
- }], items: [{
1394
- type: Input
1395
- }], menuIconPos: [{
1396
- type: Input
1397
- }], menuIcon: [{
1398
- type: Input
1399
- }], label: [{
1400
- type: Input
1401
- }], icon: [{
1402
- type: Input
1403
- }] } });
1404
-
1405
- class DropdownComponent extends BaseFormInputComponent {
1406
- constructor(ngControl) {
1407
- super(ngControl);
1408
- this.options = [];
1409
- this.editable = false;
1410
- this.loading = false;
1411
- this.lazy = false;
1412
- this.filter = true;
1413
- this.forceMinWidth = false;
1414
- this.showFilter = false;
1415
- this.localSearch = false;
1416
- this.showed = new EventEmitter();
1417
- this.cleared = new EventEmitter();
1418
- this.lazyLoad = new EventEmitter();
1419
- this.filtered = new EventEmitter();
1420
- this.destroy$ = new Subject();
1421
- this.virtualOptionSize = 37.5;
1422
- }
1423
- ngOnChanges(changes) {
1424
- if (changes['lazy'] || changes['loading']) {
1425
- this.virtualScrollOptions = this.lazy
1426
- ? {
1427
- showLoader: this.loading,
1428
- lazy: true,
1429
- onLazyLoad: this.onLazyLoad.bind(this),
1430
- }
1431
- : undefined;
1432
- }
1433
- }
1434
- ngOnDestroy() {
1435
- this.destroy$.next();
1436
- this.destroy$.complete();
1437
- }
1438
- onLazyLoad(event) {
1439
- this.lazyLoad.emit({
1440
- offset: event.first,
1441
- limit: event.last - event.first,
1442
- });
1443
- }
1444
- filterChange(event) {
1445
- this.filtered.emit({
1446
- filter: event.filter,
1447
- });
1448
- }
1449
- onDropdownShow() {
1450
- this.showed.emit();
1451
- }
1452
- onDropdownClear() {
1453
- this.cleared.emit();
1454
- }
1455
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
1456
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: DropdownComponent, isStandalone: true, selector: "v-dropdown", inputs: { options: "options", optionLabel: "optionLabel", optionValue: "optionValue", dropdownIcon: "dropdownIcon", floatLabel: "floatLabel", editable: "editable", loading: "loading", lazy: "lazy", filter: "filter", forceMinWidth: "forceMinWidth", showFilter: "showFilter", localSearch: "localSearch" }, outputs: { showed: "showed", cleared: "cleared", lazyLoad: "lazyLoad", filtered: "filtered" }, providers: [
1457
- {
1458
- provide: BaseInputControls,
1459
- useExisting: forwardRef(() => DropdownComponent),
1460
- multi: true,
1461
- },
1462
- {
1463
- provide: DROPDOWN_COMPONENT_TOKEN,
1464
- useExisting: DropdownComponent,
1465
- },
1466
- ], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"v-dropdown\">\n @if (label && !floatLabel) {\n <v-form-field\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [testId]=\"testId\"\n [display]=\"formDisplay\"\n >\n <p-select\n class=\"w-100\"\n appendTo=\"body\"\n [formControl]=\"formControl\"\n [filter]=\"filter\"\n [title]=\"label\"\n [options]=\"options\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue\"\n [loading]=\"loading\"\n [placeholder]=\"placeholder ?? ''\"\n [virtualScroll]=\"lazy\"\n [virtualScrollItemSize]=\"virtualOptionSize\"\n [virtualScrollOptions]=\"virtualScrollOptions\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [showClear]=\"formControl && clearable && !readonly\"\n [editable]=\"editable\"\n [dataKey]=\"optionValue\"\n (showEvent)=\"onDropdownShow()\"\n (clearEvent)=\"onDropdownClear()\"\n (onFilter)=\"filterChange($event)\"\n >\n </p-select>\n </v-form-field>\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n }\n @if (!label && !floatLabel) {\n <p-select\n class=\"w-100\"\n appendTo=\"body\"\n [formControl]=\"formControl\"\n [filter]=\"filter\"\n [title]=\"label\"\n [options]=\"options\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue\"\n [loading]=\"loading\"\n [placeholder]=\"placeholder ? placeholder : label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [showClear]=\"formControl && clearable && !readonly\"\n [editable]=\"editable\"\n [dataKey]=\"optionValue\"\n [virtualScroll]=\"lazy\"\n [virtualScrollItemSize]=\"virtualOptionSize\"\n [virtualScrollOptions]=\"virtualScrollOptions\"\n (showEvent)=\"onDropdownShow()\"\n (clearEvent)=\"onDropdownClear()\"\n (onFilter)=\"filterChange($event)\"\n >\n </p-select>\n }\n @if (floatLabel && !label) {\n <p-floatLabel>\n <p-select\n class=\"w-100\"\n appendTo=\"body\"\n [formControl]=\"formControl\"\n [title]=\"label\"\n [options]=\"options\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue\"\n [loading]=\"loading\"\n [placeholder]=\"placeholder ? placeholder : label\"\n [filter]=\"filter\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [showClear]=\"formControl && clearable && !readonly\"\n [editable]=\"editable\"\n [dataKey]=\"optionValue\"\n [virtualScroll]=\"lazy\"\n [virtualScrollItemSize]=\"virtualOptionSize\"\n [virtualScrollOptions]=\"virtualScrollOptions\"\n (showEvent)=\"onDropdownShow()\"\n (clearEvent)=\"onDropdownClear()\"\n (onFilter)=\"filterChange($event)\"\n (lazyLoad)=\"onLazyLoad($any($event))\"\n >\n </p-select>\n <label [for]=\"inputId\">{{ floatLabel }}</label>\n </p-floatLabel>\n }\n</div>", styles: [".v-dropdown{justify-content:center;width:100%}.p-dropdown-items-wrapper,.p-scroller-viewport,.p-scroller{min-width:8rem!important;overflow-x:hidden;overflow-y:auto}.p-dropdown{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i2$8.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "component", type: FormFieldComponent, selector: "v-form-field", inputs: ["display", "variant"] }, { kind: "ngmodule", type: MessageModule }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i2$2.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "component", type: ErrorComponent, selector: "v-validation-message", inputs: ["ngControl", "errorSlot", "messageSlot", "variant", "severity"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
1467
- }
1468
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownComponent, decorators: [{
1469
- type: Component,
1470
- args: [{ selector: 'v-dropdown', imports: [
1471
- ReactiveFormsModule,
1472
- SelectModule,
1473
- TooltipModule,
1474
- FormFieldComponent,
1475
- MessageModule,
1476
- FloatLabelModule,
1477
- ErrorComponent
1478
- ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
1479
- {
1480
- provide: BaseInputControls,
1481
- useExisting: forwardRef(() => DropdownComponent),
1482
- multi: true,
1483
- },
1484
- {
1485
- provide: DROPDOWN_COMPONENT_TOKEN,
1486
- useExisting: DropdownComponent,
1487
- },
1488
- ], template: "<div class=\"v-dropdown\">\n @if (label && !floatLabel) {\n <v-form-field\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [testId]=\"testId\"\n [display]=\"formDisplay\"\n >\n <p-select\n class=\"w-100\"\n appendTo=\"body\"\n [formControl]=\"formControl\"\n [filter]=\"filter\"\n [title]=\"label\"\n [options]=\"options\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue\"\n [loading]=\"loading\"\n [placeholder]=\"placeholder ?? ''\"\n [virtualScroll]=\"lazy\"\n [virtualScrollItemSize]=\"virtualOptionSize\"\n [virtualScrollOptions]=\"virtualScrollOptions\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [showClear]=\"formControl && clearable && !readonly\"\n [editable]=\"editable\"\n [dataKey]=\"optionValue\"\n (showEvent)=\"onDropdownShow()\"\n (clearEvent)=\"onDropdownClear()\"\n (onFilter)=\"filterChange($event)\"\n >\n </p-select>\n </v-form-field>\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n }\n @if (!label && !floatLabel) {\n <p-select\n class=\"w-100\"\n appendTo=\"body\"\n [formControl]=\"formControl\"\n [filter]=\"filter\"\n [title]=\"label\"\n [options]=\"options\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue\"\n [loading]=\"loading\"\n [placeholder]=\"placeholder ? placeholder : label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [showClear]=\"formControl && clearable && !readonly\"\n [editable]=\"editable\"\n [dataKey]=\"optionValue\"\n [virtualScroll]=\"lazy\"\n [virtualScrollItemSize]=\"virtualOptionSize\"\n [virtualScrollOptions]=\"virtualScrollOptions\"\n (showEvent)=\"onDropdownShow()\"\n (clearEvent)=\"onDropdownClear()\"\n (onFilter)=\"filterChange($event)\"\n >\n </p-select>\n }\n @if (floatLabel && !label) {\n <p-floatLabel>\n <p-select\n class=\"w-100\"\n appendTo=\"body\"\n [formControl]=\"formControl\"\n [title]=\"label\"\n [options]=\"options\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue\"\n [loading]=\"loading\"\n [placeholder]=\"placeholder ? placeholder : label\"\n [filter]=\"filter\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [showClear]=\"formControl && clearable && !readonly\"\n [editable]=\"editable\"\n [dataKey]=\"optionValue\"\n [virtualScroll]=\"lazy\"\n [virtualScrollItemSize]=\"virtualOptionSize\"\n [virtualScrollOptions]=\"virtualScrollOptions\"\n (showEvent)=\"onDropdownShow()\"\n (clearEvent)=\"onDropdownClear()\"\n (onFilter)=\"filterChange($event)\"\n (lazyLoad)=\"onLazyLoad($any($event))\"\n >\n </p-select>\n <label [for]=\"inputId\">{{ floatLabel }}</label>\n </p-floatLabel>\n }\n</div>", styles: [".v-dropdown{justify-content:center;width:100%}.p-dropdown-items-wrapper,.p-scroller-viewport,.p-scroller{min-width:8rem!important;overflow-x:hidden;overflow-y:auto}.p-dropdown{width:100%}\n"] }]
1489
- }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
1490
- type: Optional
1491
- }, {
1492
- type: Self
1493
- }] }], propDecorators: { options: [{
1494
- type: Input
1495
- }], optionLabel: [{
1496
- type: Input
1497
- }], optionValue: [{
1498
- type: Input
1499
- }], dropdownIcon: [{
1500
- type: Input
1501
- }], floatLabel: [{
1502
- type: Input
1503
- }], editable: [{
1504
- type: Input
1505
- }], loading: [{
1506
- type: Input
1507
- }], lazy: [{
1508
- type: Input
1509
- }], filter: [{
1510
- type: Input
1511
- }], forceMinWidth: [{
1512
- type: Input
1513
- }], showFilter: [{
1514
- type: Input
1515
- }], localSearch: [{
1516
- type: Input
1517
- }], showed: [{
1518
- type: Output
1519
- }], cleared: [{
1520
- type: Output
1521
- }], lazyLoad: [{
1522
- type: Output
1523
- }], filtered: [{
1524
- type: Output
1525
- }] } });
1526
-
1527
- class MultiselectComponent extends BaseFormInputComponent {
1528
- constructor(ngControl) {
1529
- super(ngControl);
1530
- this.options = [];
1531
- this.editable = true;
1532
- this.loading = false;
1533
- this.lazy = false;
1534
- this.filter = true;
1535
- this.size = FieldSize.medium;
1536
- this.changed = new EventEmitter();
1537
- this.showed = new EventEmitter();
1538
- this.cleared = new EventEmitter();
1539
- this.lazyLoad = new EventEmitter();
1540
- this.filtered = new EventEmitter();
1541
- this.virtualOptionSize = 37.5;
1542
- }
1543
- ngOnChanges(changes) {
1544
- if (changes['lazy'] || changes['loading']) {
1545
- this.virtualScrollOptions = this.lazy
1546
- ? {
1547
- showLoader: this.loading,
1548
- lazy: true,
1549
- onLazyLoad: this.onLazyLoad.bind(this),
1550
- }
1551
- : undefined;
1552
- }
1553
- }
1554
- onLazyLoad(event) {
1555
- this.lazyLoad.emit({
1556
- offset: event.first,
1557
- limit: event.last - event.first,
1558
- });
1559
- }
1560
- selectionChange(event) {
1561
- this.cleared.emit(event);
1562
- }
1563
- onDropdownShow() {
1564
- this.showed.emit();
1565
- }
1566
- onDropdownClear() {
1567
- this.cleared.emit();
1568
- }
1569
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: MultiselectComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
1570
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: MultiselectComponent, isStandalone: true, selector: "v-multiselect", inputs: { options: "options", optionLabel: "optionLabel", optionValue: "optionValue", dropdownIcon: "dropdownIcon", floatLabel: "floatLabel", editable: "editable", loading: "loading", lazy: "lazy", filter: "filter", size: "size" }, outputs: { changed: "changed", showed: "showed", cleared: "cleared", lazyLoad: "lazyLoad", filtered: "filtered" }, providers: [
1571
- {
1572
- provide: BaseInputControls,
1573
- useExisting: forwardRef(() => MultiselectComponent),
1574
- multi: true,
1575
- },
1576
- {
1577
- provide: MULTISELECT_COMPONENT_TOKEN,
1578
- useExisting: MultiselectComponent,
1579
- },
1580
- ], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"v-multiple-select\">\n @if (label && !floatLabel) {\n <v-form-field\n class=\"w-100\"\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [testId]=\"testId\"\n [display]=\"formDisplay\"\n >\n <p-multiSelect\n class=\"w-100\"\n appendTo=\"body\"\n [formControl]=\"formControl\"\n [title]=\"label\"\n display=\"chip\"\n [options]=\"options\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue\"\n [loading]=\"loading\"\n [placeholder]=\"placeholder ? placeholder : label\"\n [virtualScrollItemSize]=\"25\"\n [lazy]=\"true\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [showClear]=\"formControl && clearable && !readonly\"\n [virtualScroll]=\"lazy\"\n [virtualScrollItemSize]=\"virtualOptionSize\"\n [virtualScrollOptions]=\"virtualScrollOptions\"\n (showEvent)=\"onDropdownShow()\"\n (clearEvent)=\"onDropdownClear()\"\n (changeEvent)=\"selectionChange($event)\"\n (lazyLoadEvent)=\"onLazyLoad($any($event))\"\n ></p-multiSelect>\n </v-form-field>\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n }\n @if (floatLabel) {\n <p-floatLabel>\n <p-multiSelect\n class=\"w-100\"\n appendTo=\"body\"\n [formControl]=\"formControl\"\n [title]=\"label\"\n [options]=\"options\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue\"\n [loading]=\"loading\"\n [placeholder]=\"placeholder ? placeholder : label\"\n [virtualScrollItemSize]=\"25\"\n [lazy]=\"true\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [inputId]=\"inputId\"\n [showClear]=\"formControl && clearable && !readonly\"\n [virtualScroll]=\"lazy\"\n [virtualScrollItemSize]=\"virtualOptionSize\"\n [virtualScrollOptions]=\"virtualScrollOptions\"\n (showEvent)=\"onDropdownShow()\"\n (clearEvent)=\"onDropdownClear()\"\n (changeEvent)=\"selectionChange($event)\"\n (lazyLoadEvent)=\"onLazyLoad($any($event))\"\n ></p-multiSelect>\n <label [for]=\"inputId\">{{ floatLabel }}</label>\n </p-floatLabel>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: i2$2.FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "ngmodule", type: MultiSelectModule }, { kind: "component", type: i3$4.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "styleClass", "panelStyle", "panelStyleClass", "inputId", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "dataKey", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "placeholder", "options", "filterValue", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus", "highlightOnSelect", "size", "variant", "fluid", "appendTo"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "component", type: ErrorComponent, selector: "v-validation-message", inputs: ["ngControl", "errorSlot", "messageSlot", "variant", "severity"] }, { kind: "component", type: FormFieldComponent, selector: "v-form-field", inputs: ["display", "variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1581
- }
1582
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: MultiselectComponent, decorators: [{
1583
- type: Component,
1584
- args: [{ selector: 'v-multiselect', imports: [
1585
- ReactiveFormsModule,
1586
- FloatLabelModule,
1587
- MultiSelectModule,
1588
- ErrorComponent,
1589
- FormFieldComponent
1590
- ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
1591
- {
1592
- provide: BaseInputControls,
1593
- useExisting: forwardRef(() => MultiselectComponent),
1594
- multi: true,
1595
- },
1596
- {
1597
- provide: MULTISELECT_COMPONENT_TOKEN,
1598
- useExisting: MultiselectComponent,
1599
- },
1600
- ], template: "<div class=\"v-multiple-select\">\n @if (label && !floatLabel) {\n <v-form-field\n class=\"w-100\"\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [testId]=\"testId\"\n [display]=\"formDisplay\"\n >\n <p-multiSelect\n class=\"w-100\"\n appendTo=\"body\"\n [formControl]=\"formControl\"\n [title]=\"label\"\n display=\"chip\"\n [options]=\"options\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue\"\n [loading]=\"loading\"\n [placeholder]=\"placeholder ? placeholder : label\"\n [virtualScrollItemSize]=\"25\"\n [lazy]=\"true\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [showClear]=\"formControl && clearable && !readonly\"\n [virtualScroll]=\"lazy\"\n [virtualScrollItemSize]=\"virtualOptionSize\"\n [virtualScrollOptions]=\"virtualScrollOptions\"\n (showEvent)=\"onDropdownShow()\"\n (clearEvent)=\"onDropdownClear()\"\n (changeEvent)=\"selectionChange($event)\"\n (lazyLoadEvent)=\"onLazyLoad($any($event))\"\n ></p-multiSelect>\n </v-form-field>\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n }\n @if (floatLabel) {\n <p-floatLabel>\n <p-multiSelect\n class=\"w-100\"\n appendTo=\"body\"\n [formControl]=\"formControl\"\n [title]=\"label\"\n [options]=\"options\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue\"\n [loading]=\"loading\"\n [placeholder]=\"placeholder ? placeholder : label\"\n [virtualScrollItemSize]=\"25\"\n [lazy]=\"true\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [inputId]=\"inputId\"\n [showClear]=\"formControl && clearable && !readonly\"\n [virtualScroll]=\"lazy\"\n [virtualScrollItemSize]=\"virtualOptionSize\"\n [virtualScrollOptions]=\"virtualScrollOptions\"\n (showEvent)=\"onDropdownShow()\"\n (clearEvent)=\"onDropdownClear()\"\n (changeEvent)=\"selectionChange($event)\"\n (lazyLoadEvent)=\"onLazyLoad($any($event))\"\n ></p-multiSelect>\n <label [for]=\"inputId\">{{ floatLabel }}</label>\n </p-floatLabel>\n }\n</div>\n" }]
1601
- }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
1602
- type: Optional
1603
- }, {
1604
- type: Self
1605
- }] }], propDecorators: { options: [{
1606
- type: Input
1607
- }], optionLabel: [{
1608
- type: Input
1609
- }], optionValue: [{
1610
- type: Input
1611
- }], dropdownIcon: [{
1612
- type: Input
1613
- }], floatLabel: [{
1614
- type: Input
1615
- }], editable: [{
1616
- type: Input
1617
- }], loading: [{
1618
- type: Input
1619
- }], lazy: [{
1620
- type: Input
1621
- }], filter: [{
1622
- type: Input
1623
- }], size: [{
1624
- type: Input
1625
- }], changed: [{
1626
- type: Output
1627
- }], showed: [{
1628
- type: Output
1629
- }], cleared: [{
1630
- type: Output
1631
- }], lazyLoad: [{
1632
- type: Output
1633
- }], filtered: [{
1634
- type: Output
1635
- }] } });
1636
-
1637
- class GenericFieldComponent extends BaseFormInputComponent {
1638
- constructor() {
1639
- super(...arguments);
1640
- this.type = GenericFieldType.text;
1641
- this.size = FieldSize.medium;
1642
- this.loading = false;
1643
- this.lazy = false;
1644
- this.filter = true;
1645
- this.changed = new EventEmitter();
1646
- this.showed = new EventEmitter();
1647
- this.cleared = new EventEmitter();
1648
- this.lazyLoad = new EventEmitter();
1649
- this.filtered = new EventEmitter();
1650
- this.fieldTypes = GenericFieldType;
1651
- this.icons = Icons;
1652
- }
1653
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: GenericFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
1654
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: GenericFieldComponent, isStandalone: true, selector: "v-generic-field", inputs: { type: "type", floatLabel: "floatLabel", optionLabel: "optionLabel", optionValue: "optionValue", options: "options", size: "size", loading: "loading", lazy: "lazy", filter: "filter", datasource: "datasource", filterField: "filterField", showFilter: "showFilter", localSearch: "localSearch" }, outputs: { changed: "changed", showed: "showed", cleared: "cleared", lazyLoad: "lazyLoad", filtered: "filtered" }, providers: [
1655
- {
1656
- provide: GENERIC_FIELD_COMPONENT_TOKEN,
1657
- useExisting: GenericFieldComponent,
1658
- },
1659
- ], usesInheritance: true, ngImport: i0, template: "@if (!type || type === fieldTypes.text) {\n<v-textfield\n [label]=\"label\"\n [floatLabel]=\"floatLabel === true\"\n [size]=\"size\"\n [formControl]=\"formControl\"\n/>\n} @else if (type === fieldTypes.dropdown && !datasource) {\n<v-dropdown\n [label]=\"!floatLabel ? label : ''\"\n [floatLabel]=\"floatLabel ? label : ''\"\n [testId]=\"testId\"\n [options]=\"options\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue ?? optionLabel\"\n [loading]=\"loading\"\n [forceMinWidth]=\"true\"\n [formControl]=\"formControl\"\n [showFilter]=\"showFilter ?? false\"\n [localSearch]=\"localSearch ?? false\"\n (changeEvent)=\"changed.emit($event)\"\n (clearEvent)=\"cleared.emit($event)\"\n (lazyLoadEvent)=\"lazyLoad.emit($any($event))\"\n (showEvent)=\"showed.emit($event)\"\n/> \n} @else if (type === fieldTypes.dropdown && datasource) {\n <v-dropdown\n useDatasource\n [forceMinWidth]=\"true\"\n [datasource]=\"datasource\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue ?? optionLabel\"\n [label]=\"!floatLabel ? label : ''\"\n [floatLabel]=\"floatLabel ? label : ''\"\n [testId]=\"testId\"\n [loading]=\"loading\"\n [formControl]=\"formControl\"\n [showFilter]=\"showFilter ?? false\"\n [filterField]=\"filterField ?? 'fulltext'\"\n [localSearch]=\"localSearch ?? false\"\n (changeEvent)=\"changed.emit($event)\"\n (clearEvent)=\"cleared.emit($event)\"\n (lazyLoadEvent)=\"lazyLoad.emit($any($event))\"\n (showEvent)=\"showed.emit($event)\"\n />\n} @else if (type === fieldTypes.multiselect && !datasource) {\n<v-multiselect\n [label]=\"!floatLabel ? label : ''\"\n [floatLabel]=\"floatLabel ? label : ''\"\n [testId]=\"testId\"\n [options]=\"options\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue ?? optionLabel\"\n [loading]=\"loading\"\n [formControl]=\"formControl\"\n (changeEvent)=\"changed.emit($event)\"\n (clearEvent)=\"cleared.emit($event)\"\n (lazyLoadEvent)=\"lazyLoad.emit($any($event))\"\n (showEvent)=\"showed.emit($event)\"\n/>\n} @else if (type === fieldTypes.multiselect && datasource) {\n<v-multiselect\n useDatasource\n [datasource]=\"datasource\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue ?? optionLabel\"\n [label]=\"!floatLabel ? label : ''\"\n [floatLabel]=\"floatLabel ? label : ''\"\n [testId]=\"testId\"\n [loading]=\"loading\"\n [formControl]=\"formControl\"\n (changeEvent)=\"changed.emit($event)\"\n (clearEvent)=\"cleared.emit($event)\"\n (lazyLoadEvent)=\"lazyLoad.emit($any($event))\"\n (showEvent)=\"showed.emit($event)\"\n/>\n} @else if (type === fieldTypes.checkbox) {\n<v-checkbox\n [label]=\"label\"\n [testId]=\"testId\"\n [formControl]=\"formControl\"\n [indeterminate]=\"true\"\n/>\n} @else if (type === fieldTypes.simplecheckbox) {\n<v-checkbox\n [label]=\"label\"\n [testId]=\"testId\"\n [formControl]=\"formControl\"\n/>\n} @else if (type === fieldTypes.calendar) {\n<v-calendar\n [label]=\"!floatLabel ? label : ''\"\n [floatLabel]=\"floatLabel ? label : ''\"\n [testId]=\"testId\"\n [formControl]=\"formControl\"\n [icon]=\"icons.calendar\"\n/>\n}\n", dependencies: [{ kind: "component", type: DropdownComponent, selector: "v-dropdown", inputs: ["options", "optionLabel", "optionValue", "dropdownIcon", "floatLabel", "editable", "loading", "lazy", "filter", "forceMinWidth", "showFilter", "localSearch"], outputs: ["showed", "cleared", "lazyLoad", "filtered"] }, { kind: "component", type: CalendarComponent, selector: "v-calendar", inputs: ["maxDate", "icon", "minDate", "header", "footer", "floatLabel", "selectionMode"] }, { kind: "component", type: MultiselectComponent, selector: "v-multiselect", inputs: ["options", "optionLabel", "optionValue", "dropdownIcon", "floatLabel", "editable", "loading", "lazy", "filter", "size"], outputs: ["changed", "showed", "cleared", "lazyLoad", "filtered"] }, { kind: "component", type: TextfieldComponent, selector: "v-textfield", inputs: ["size", "type", "floatLabel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: CheckboxComponent, selector: "v-checkbox", inputs: ["indeterminate"] }, { kind: "directive", type: DatasourceDirective, selector: "v-dropdown[useDatasource], v-multiselect[useDatasource], v-generic-field[useDatasource]", inputs: ["datasource", "autoBind", "loadingText", "filterField", "transformFn", "extraFilter"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1660
- }
1661
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: GenericFieldComponent, decorators: [{
1662
- type: Component,
1663
- args: [{ selector: 'v-generic-field', imports: [
1664
- DropdownComponent,
1665
- CalendarComponent,
1666
- MultiselectComponent,
1667
- TextfieldComponent,
1668
- ReactiveFormsModule,
1669
- CheckboxComponent,
1670
- DatasourceDirective
1671
- ], providers: [
1672
- {
1673
- provide: GENERIC_FIELD_COMPONENT_TOKEN,
1674
- useExisting: GenericFieldComponent,
1675
- },
1676
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (!type || type === fieldTypes.text) {\n<v-textfield\n [label]=\"label\"\n [floatLabel]=\"floatLabel === true\"\n [size]=\"size\"\n [formControl]=\"formControl\"\n/>\n} @else if (type === fieldTypes.dropdown && !datasource) {\n<v-dropdown\n [label]=\"!floatLabel ? label : ''\"\n [floatLabel]=\"floatLabel ? label : ''\"\n [testId]=\"testId\"\n [options]=\"options\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue ?? optionLabel\"\n [loading]=\"loading\"\n [forceMinWidth]=\"true\"\n [formControl]=\"formControl\"\n [showFilter]=\"showFilter ?? false\"\n [localSearch]=\"localSearch ?? false\"\n (changeEvent)=\"changed.emit($event)\"\n (clearEvent)=\"cleared.emit($event)\"\n (lazyLoadEvent)=\"lazyLoad.emit($any($event))\"\n (showEvent)=\"showed.emit($event)\"\n/> \n} @else if (type === fieldTypes.dropdown && datasource) {\n <v-dropdown\n useDatasource\n [forceMinWidth]=\"true\"\n [datasource]=\"datasource\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue ?? optionLabel\"\n [label]=\"!floatLabel ? label : ''\"\n [floatLabel]=\"floatLabel ? label : ''\"\n [testId]=\"testId\"\n [loading]=\"loading\"\n [formControl]=\"formControl\"\n [showFilter]=\"showFilter ?? false\"\n [filterField]=\"filterField ?? 'fulltext'\"\n [localSearch]=\"localSearch ?? false\"\n (changeEvent)=\"changed.emit($event)\"\n (clearEvent)=\"cleared.emit($event)\"\n (lazyLoadEvent)=\"lazyLoad.emit($any($event))\"\n (showEvent)=\"showed.emit($event)\"\n />\n} @else if (type === fieldTypes.multiselect && !datasource) {\n<v-multiselect\n [label]=\"!floatLabel ? label : ''\"\n [floatLabel]=\"floatLabel ? label : ''\"\n [testId]=\"testId\"\n [options]=\"options\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue ?? optionLabel\"\n [loading]=\"loading\"\n [formControl]=\"formControl\"\n (changeEvent)=\"changed.emit($event)\"\n (clearEvent)=\"cleared.emit($event)\"\n (lazyLoadEvent)=\"lazyLoad.emit($any($event))\"\n (showEvent)=\"showed.emit($event)\"\n/>\n} @else if (type === fieldTypes.multiselect && datasource) {\n<v-multiselect\n useDatasource\n [datasource]=\"datasource\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue ?? optionLabel\"\n [label]=\"!floatLabel ? label : ''\"\n [floatLabel]=\"floatLabel ? label : ''\"\n [testId]=\"testId\"\n [loading]=\"loading\"\n [formControl]=\"formControl\"\n (changeEvent)=\"changed.emit($event)\"\n (clearEvent)=\"cleared.emit($event)\"\n (lazyLoadEvent)=\"lazyLoad.emit($any($event))\"\n (showEvent)=\"showed.emit($event)\"\n/>\n} @else if (type === fieldTypes.checkbox) {\n<v-checkbox\n [label]=\"label\"\n [testId]=\"testId\"\n [formControl]=\"formControl\"\n [indeterminate]=\"true\"\n/>\n} @else if (type === fieldTypes.simplecheckbox) {\n<v-checkbox\n [label]=\"label\"\n [testId]=\"testId\"\n [formControl]=\"formControl\"\n/>\n} @else if (type === fieldTypes.calendar) {\n<v-calendar\n [label]=\"!floatLabel ? label : ''\"\n [floatLabel]=\"floatLabel ? label : ''\"\n [testId]=\"testId\"\n [formControl]=\"formControl\"\n [icon]=\"icons.calendar\"\n/>\n}\n" }]
1677
- }], propDecorators: { type: [{
1678
- type: Input
1679
- }], floatLabel: [{
1680
- type: Input
1681
- }], optionLabel: [{
1682
- type: Input
1683
- }], optionValue: [{
1684
- type: Input
1685
- }], options: [{
1686
- type: Input
1687
- }], size: [{
1688
- type: Input
1689
- }], loading: [{
1690
- type: Input
1691
- }], lazy: [{
1692
- type: Input
1693
- }], filter: [{
1694
- type: Input
1695
- }], datasource: [{
1696
- type: Input
1697
- }], filterField: [{
1698
- type: Input
1699
- }], showFilter: [{
1700
- type: Input
1701
- }], localSearch: [{
1702
- type: Input
1703
- }], changed: [{
1704
- type: Output
1705
- }], showed: [{
1706
- type: Output
1707
- }], cleared: [{
1708
- type: Output
1709
- }], lazyLoad: [{
1710
- type: Output
1711
- }], filtered: [{
1712
- type: Output
1713
- }] } });
1714
-
1715
- function generateFormGroup(fields, lastGroupValue, inputGroup, inputGroupChanged = false) {
1716
- const formGroup = (inputGroupChanged
1717
- ? inputGroup ?? lastGroupValue
1718
- : lastGroupValue ?? inputGroup) ?? new UntypedFormGroup({});
1719
- fields?.forEach((field) => {
1720
- const control = formGroup.get(field.name);
1721
- if (!control) {
1722
- formGroup.addControl(field.name, new UntypedFormControl(field.value, field.validator));
1723
- }
1724
- else if (control && control.value !== field.value) {
1725
- control.setValue(field.value);
1726
- control.setValidators(field.validator ?? null);
1727
- }
1728
- else {
1729
- control.setValidators(field.validator ?? null);
1730
- }
1731
- if (field.readonly && (control || formGroup.get(field.name))) {
1732
- formGroup.get(field.name)?.disable();
1733
- }
1734
- });
1735
- if (!inputGroupChanged) {
1736
- for (const field in formGroup.controls) {
1737
- const control = fields?.find((x) => x.name == field);
1738
- if (!control) {
1739
- formGroup.removeControl(field);
1740
- }
1741
- }
1742
- }
1743
- return formGroup;
1744
- }
1745
- function getColumnClass(value) {
1746
- if (!value) {
1747
- return undefined;
1748
- }
1749
- switch (value) {
1750
- case 1:
1751
- return 'col-12';
1752
- case 2:
1753
- return 'col-12 col-md-6';
1754
- case 3:
1755
- return 'col-12 col-md-4';
1756
- case 4:
1757
- return 'col-12 col-md-3';
1758
- case 6:
1759
- return 'col-12 col-md-2';
1760
- }
1761
- return 'col-12 col-md-1';
1762
- }
1763
-
1764
- class GenericFormComponent {
1765
- ngOnChanges(changes) {
1766
- if (changes['fields'] || changes['formGroup']) {
1767
- this.formGroupComputed = generateFormGroup(this.fields, this.formGroupComputed, this.formGroup, !!changes['formGroup']);
1768
- }
1769
- if (changes['columns']) {
1770
- this.columnClass = getColumnClass(this.columns);
1771
- }
1772
- }
1773
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: GenericFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1774
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: GenericFormComponent, isStandalone: true, selector: "v-generic-form", inputs: { formGroup: "formGroup", fields: "fields", columns: "columns", showAsRow: "showAsRow" }, usesOnChanges: true, ngImport: i0, template: "@if (formGroupComputed) {\r\n <div\r\n class=\"v-generic-form\"\r\n [ngClass]=\"showAsRow ? 'd-flex flex-row' : 'row'\"\r\n [formGroup]=\"formGroupComputed\"\r\n >\r\n @for(field of fields; track field) { @if (columnClass) {\r\n <div class=\"v-generic-form__column {{ columnClass }}\">\r\n <v-generic-field\r\n [type]=\"field.type\"\r\n [label]=\"field.label ?? 'NOT SET' | translate\"\r\n [floatLabel]=\"field.floatLabel\"\r\n [testId]=\"field.testId\"\r\n [options]=\"field.options\"\r\n [optionLabel]=\"field.optionLabel\"\r\n [optionValue]=\"field.optionValue ?? field.optionLabel\"\r\n [options]=\"field.options\"\r\n [size]=\"field.size\"\r\n [formControlName]=\"field.name\"\r\n [datasource]=\"field.datasource\"\r\n [showFilter]=\"field.showFilter\"\r\n [filterField]=\"field.filterField\"\r\n [localSearch]=\"field.localSearch\"\r\n ></v-generic-field>\r\n </div>\r\n } @else {\r\n <v-generic-field\r\n class=\"me-4\"\r\n [type]=\"field.type\"\r\n [label]=\"field.label ?? 'NOT SET' | translate\"\r\n [floatLabel]=\"field.floatLabel\"\r\n [testId]=\"field.testId\"\r\n [options]=\"field.options\"\r\n [optionLabel]=\"field.optionLabel\"\r\n [optionValue]=\"field.optionValue ?? field.optionLabel\"\r\n [options]=\"field.options\"\r\n [size]=\"field.size\"\r\n [formControlName]=\"field.name\"\r\n [datasource]=\"field.datasource\"\r\n [showFilter]=\"field.showFilter\"\r\n [filterField]=\"field.filterField\"\r\n [localSearch]=\"field.localSearch\"\r\n ></v-generic-field>\r\n } }\r\n </div>\r\n }\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: GenericFieldComponent, selector: "v-generic-field", inputs: ["type", "floatLabel", "optionLabel", "optionValue", "options", "size", "loading", "lazy", "filter", "datasource", "filterField", "showFilter", "localSearch"], outputs: ["changed", "showed", "cleared", "lazyLoad", "filtered"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1775
- }
1776
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: GenericFormComponent, decorators: [{
1777
- type: Component,
1778
- args: [{ selector: 'v-generic-form', imports: [
1779
- CommonModule,
1780
- GenericFieldComponent,
1781
- ReactiveFormsModule,
1782
- TranslateModule,
1783
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (formGroupComputed) {\r\n <div\r\n class=\"v-generic-form\"\r\n [ngClass]=\"showAsRow ? 'd-flex flex-row' : 'row'\"\r\n [formGroup]=\"formGroupComputed\"\r\n >\r\n @for(field of fields; track field) { @if (columnClass) {\r\n <div class=\"v-generic-form__column {{ columnClass }}\">\r\n <v-generic-field\r\n [type]=\"field.type\"\r\n [label]=\"field.label ?? 'NOT SET' | translate\"\r\n [floatLabel]=\"field.floatLabel\"\r\n [testId]=\"field.testId\"\r\n [options]=\"field.options\"\r\n [optionLabel]=\"field.optionLabel\"\r\n [optionValue]=\"field.optionValue ?? field.optionLabel\"\r\n [options]=\"field.options\"\r\n [size]=\"field.size\"\r\n [formControlName]=\"field.name\"\r\n [datasource]=\"field.datasource\"\r\n [showFilter]=\"field.showFilter\"\r\n [filterField]=\"field.filterField\"\r\n [localSearch]=\"field.localSearch\"\r\n ></v-generic-field>\r\n </div>\r\n } @else {\r\n <v-generic-field\r\n class=\"me-4\"\r\n [type]=\"field.type\"\r\n [label]=\"field.label ?? 'NOT SET' | translate\"\r\n [floatLabel]=\"field.floatLabel\"\r\n [testId]=\"field.testId\"\r\n [options]=\"field.options\"\r\n [optionLabel]=\"field.optionLabel\"\r\n [optionValue]=\"field.optionValue ?? field.optionLabel\"\r\n [options]=\"field.options\"\r\n [size]=\"field.size\"\r\n [formControlName]=\"field.name\"\r\n [datasource]=\"field.datasource\"\r\n [showFilter]=\"field.showFilter\"\r\n [filterField]=\"field.filterField\"\r\n [localSearch]=\"field.localSearch\"\r\n ></v-generic-field>\r\n } }\r\n </div>\r\n }\r\n" }]
1784
- }], propDecorators: { formGroup: [{
1785
- type: Input
1786
- }], fields: [{
1787
- type: Input
1788
- }], columns: [{
1789
- type: Input
1790
- }], showAsRow: [{
1791
- type: Input
1792
- }] } });
1793
-
1794
- class FilterFieldDirective {
1795
- constructor() {
1796
- this.type = GenericFieldType.text;
1797
- }
1798
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: FilterFieldDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1799
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.1", type: FilterFieldDirective, isStandalone: true, selector: "v-filter-field", inputs: { name: "name", type: "type", label: "label", optionLabel: "optionLabel", optionValue: "optionValue", options: "options", value: "value", validator: "validator", datasource: "datasource", filterField: "filterField", showFilter: "showFilter", localSearch: "localSearch" }, ngImport: i0 }); }
1800
- }
1801
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: FilterFieldDirective, decorators: [{
1802
- type: Directive,
1803
- args: [{
1804
- // eslint-disable-next-line @angular-eslint/directive-selector
1805
- selector: 'v-filter-field',
1806
- standalone: true,
1807
- }]
1808
- }], propDecorators: { name: [{
1809
- type: Input,
1810
- args: [{ required: true }]
1811
- }], type: [{
1812
- type: Input
1813
- }], label: [{
1814
- type: Input
1815
- }], optionLabel: [{
1816
- type: Input
1817
- }], optionValue: [{
1818
- type: Input
1819
- }], options: [{
1820
- type: Input
1821
- }], value: [{
1822
- type: Input
1823
- }], validator: [{
1824
- type: Input
1825
- }], datasource: [{
1826
- type: Input
1827
- }], filterField: [{
1828
- type: Input
1829
- }], showFilter: [{
1830
- type: Input
1831
- }], localSearch: [{
1832
- type: Input
1833
- }] } });
1834
-
1835
- function getFilledControlCount(formGroup) {
1836
- let count = 0;
1837
- Object.keys(formGroup.controls).forEach((key) => {
1838
- const control = formGroup.get(key);
1839
- if (control?.value) {
1840
- if (typeof control.value === 'boolean') {
1841
- count++;
1842
- }
1843
- if (typeof control.value === 'string' && control.value.trim() !== '') {
1844
- count++;
1845
- }
1846
- }
1847
- });
1848
- return count;
1849
- }
1850
-
1851
- class FilterComponent extends UnsubscribeComponent {
1852
- constructor() {
1853
- super(...arguments);
1854
- this.fields = [];
1855
- this.filters = [];
1856
- this.fulltextFieldName = 'searchField';
1857
- this.showFulltext = true;
1858
- this.showFilters = true;
1859
- this.autoBind = true;
1860
- this.debounceTime = DEFAULT_DEBOUNCE_TIME;
1861
- this.icons = Icons;
1862
- this.searchField = {
1863
- name: this.fulltextFieldName,
1864
- };
1865
- this.inputFields$ = new BehaviorSubject([...this.fields ?? [], ...this.filters ?? []]);
1866
- this.FieldSize = FieldSize;
1867
- this.screenSizeService = inject(ScreenSizeService);
1868
- this.changeDetectorRef = inject(ChangeDetectorRef);
1869
- this.dialogService = inject(DialogService);
1870
- this.formGroup = new FormGroup({});
1871
- this.filledFiltersCount$ = this.formGroup.valueChanges.pipe(startWith(this.formGroup), map(() => getFilledControlCount(this.formGroup).toString()));
1872
- this.lastFormFields = [];
1873
- }
1874
- ngOnInit() {
1875
- this.formGroup.valueChanges
1876
- .pipe(takeUntil(this.destroyed$), debounceTime(this.debounceTime ?? DEFAULT_DEBOUNCE_TIME), map((x) => this.convertFilter(x)), distinctUntilChanged())
1877
- .subscribe((value) => this.onChange?.(value));
1878
- }
1879
- ngOnChanges(changes) {
1880
- if (changes['fields'] || changes['filters']) {
1881
- this.inputFields$.next([...this.fields ?? [], ...this.filters ?? []]);
1882
- }
1883
- }
1884
- ngAfterContentInit() {
1885
- const fieldDeclaratios$ = this.fieldDeclarations.changes.pipe(startWith({}), map(() => this.fieldDeclarations.toArray()));
1886
- this.fieldDefinitios$ = this.inputFields$.pipe(combineLatestWith(fieldDeclaratios$), map(([inputs, views]) => {
1887
- this.searchField.name = this.fulltextFieldName;
1888
- this.lastFormFields = [this.searchField, ...(inputs ?? []), ...views];
1889
- return this.lastFormFields;
1890
- }));
1891
- this.simpleFormFieldDefinitions$ = this.fieldDefinitios$.pipe(map((fields) => {
1892
- return fields
1893
- .filter((x) => x.name !== this.fulltextFieldName)
1894
- .map((x) => ({ ...x, floatLabel: true, size: FieldSize.large }));
1895
- }));
1896
- this.formGroup$ = this.fieldDefinitios$.pipe(map((fields) => generateFormGroup(fields, this.formGroup, undefined, false)));
1897
- this.changeDetectorRef.detectChanges();
1898
- }
1899
- openFilter() {
1900
- const fields = this.lastFormFields.map((x) => ({
1901
- ...x,
1902
- label: x.name === this.fulltextFieldName ? 'Fulltext' : x.label ?? x.name,
1903
- }));
1904
- const formGroup = generateFormGroup(this.lastFormFields, undefined, undefined, false);
1905
- formGroup.patchValue(this.formGroup.value);
1906
- this.dialogService.showDialog({
1907
- title: 'Set filters',
1908
- headerIcon: this.icons.filter,
1909
- severity: 'primary',
1910
- componentType: GenericFormComponent,
1911
- data: {
1912
- formGroup,
1913
- fields: fields,
1914
- columns: 1,
1915
- },
1916
- confirmButtonFn: () => this.setFilterValues(formGroup),
1917
- confirmButtonText: 'Apply',
1918
- cancelButtonFn: () => this.clear(),
1919
- cancelButtonText: 'Clear all',
1920
- showCancelButton: true,
1921
- closable: false,
1922
- });
1923
- }
1924
- openSearch() {
1925
- this.dialogService.showDialog({
1926
- headerIcon: 'pi pi-search',
1927
- severity: 'primary',
1928
- innerHTML: '<p>Search</p>',
1929
- confirmButtonFn: () => this.submitValue(),
1930
- confirmButtonText: 'Apply',
1931
- cancelButtonFn: () => this.clear(),
1932
- cancelButtonText: 'Clear all',
1933
- showCancelButton: true,
1934
- closable: false,
1935
- });
1936
- }
1937
- writeValue(data) {
1938
- this.formGroup.patchValue(data);
1939
- }
1940
- registerOnChange(fn) {
1941
- this.onChange = fn;
1942
- }
1943
- registerOnTouched(fn) {
1944
- this.onTouch = fn;
1945
- }
1946
- setDisabledState(isDisabled) {
1947
- isDisabled ? this.formGroup.disable() : this.formGroup.enable();
1948
- }
1949
- submitValue() {
1950
- if (!this.autoBind) {
1951
- this.onChange?.(this.formGroup.value);
1952
- }
1953
- }
1954
- setFilterValues(dialogFormGroup) {
1955
- this.formGroup.setValue(dialogFormGroup.value);
1956
- this.submitValue();
1957
- }
1958
- clear() {
1959
- this.formGroup.reset();
1960
- this.submitValue();
1961
- }
1962
- convertFilter(value) {
1963
- if (value == undefined) {
1964
- return undefined;
1965
- }
1966
- const isEmpty = isFilterEmpty(value);
1967
- if (isEmpty) {
1968
- return undefined;
1969
- }
1970
- return value;
1971
- }
1972
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: FilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
1973
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: FilterComponent, isStandalone: true, selector: "v-filter", inputs: { fields: "fields", filters: "filters", title: "title", fulltextFieldName: "fulltextFieldName", showFulltext: "showFulltext", showFilters: "showFilters", autoBind: "autoBind", debounceTime: "debounceTime" }, providers: [
1974
- {
1975
- provide: NG_VALUE_ACCESSOR,
1976
- useExisting: forwardRef(() => FilterComponent),
1977
- multi: true,
1978
- },
1979
- {
1980
- provide: FILTER_COMPONENT_TOKEN,
1981
- useExisting: FilterComponent,
1982
- },
1983
- ], queries: [{ propertyName: "fieldDeclarations", predicate: FilterFieldDirective }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"v-filter w-100 p-3 bg-primary\">\n @if (formGroup$ | async; as formGroup){\n <form [formGroup]=\"formGroup\" class=\"d-flex align-items-center\">\n @if (title) {\n <div class=\"v-filter_title pe-4\">\n <h2 class=\"text-white m-0\">{{ title }}</h2>\n </div>\n }\n <div class=\"v-filter__fulltext flex-grow-1 pe-4\">\n @if (showFulltext){\n <v-textfield\n class=\"d-none d-lg-block\"\n placeholder=\"Search\"\n size=\"large\"\n formControlName=\"searchField\"\n type=\"search\"\n [clearable]=\"true\"\n >\n </v-textfield>\n }\n </div>\n @if (simpleFormFieldDefinitions$ | async; as declaration){\n @if (showFilters)\n {\n <div class=\"v-filter_filters d-none d-sm-block me-2\">\n <v-generic-form\n [fields]=\"declaration\"\n [formGroup]=\"formGroup\"\n ></v-generic-form>\n <v-button label=\"X\" class=\"mt-3\" (click)=\"clear()\" />\n </div>\n }\n <div class=\"v-filter_action-buttons d-flex\">\n @if (declaration.length && !showFilters) {\n <v-button \n class=\"me-4\"\n [icon]=\"icons.filter\"\n [label]=\"$any(filledFiltersCount$ | async)\"\n (click)=\"openFilter()\"\n />\n } @if (!autoBind) {\n <v-button\n useShortCut\n [shortCutFn]=\"submitValue.bind(this)\"\n shortCutKey=\"Enter\"\n class=\"text-white mx-2\"\n [outlined]=\"true\"\n size=\"small\"\n label=\"Apply\"\n (click)=\"submitValue()\"\n ></v-button>\n <v-button\n useShortCut\n [shortCutFn]=\"clear.bind(this)\"\n shortCutKey=\"Escape\"\n class=\"text-white\"\n [outlined]=\"true\"\n size=\"small\"\n label=\"Clear\"\n (click)=\"clear()\"\n ></v-button>\n } \n </div>\n }\n <ng-content select=\"v-action-button-group\"></ng-content>\n </form>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: TextfieldComponent, selector: "v-textfield", inputs: ["size", "type", "floatLabel"] }, { kind: "component", type: GenericFormComponent, selector: "v-generic-form", inputs: ["formGroup", "fields", "columns", "showAsRow"] }, { kind: "component", type: ButtonComponent, selector: "v-button", inputs: ["label", "icon", "badge", "iconPos", "disabled", "rounded", "outlined", "raised", "severity", "routerLink", "size", "queryParams"] }, { kind: "directive", type: ButtonShortCutDirective, selector: "v-button[useShortCut]", inputs: ["shortCutFn", "shortCutKey"], exportAs: ["useShortCut"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1984
- }
1985
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: FilterComponent, decorators: [{
1986
- type: Component,
1987
- args: [{ selector: 'v-filter', imports: [
1988
- AsyncPipe,
1989
- ReactiveFormsModule,
1990
- TextfieldComponent,
1991
- GenericFormComponent,
1992
- ButtonComponent,
1993
- ButtonShortCutDirective,
1994
- ], providers: [
1995
- {
1996
- provide: NG_VALUE_ACCESSOR,
1997
- useExisting: forwardRef(() => FilterComponent),
1998
- multi: true,
1999
- },
2000
- {
2001
- provide: FILTER_COMPONENT_TOKEN,
2002
- useExisting: FilterComponent,
2003
- },
2004
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"v-filter w-100 p-3 bg-primary\">\n @if (formGroup$ | async; as formGroup){\n <form [formGroup]=\"formGroup\" class=\"d-flex align-items-center\">\n @if (title) {\n <div class=\"v-filter_title pe-4\">\n <h2 class=\"text-white m-0\">{{ title }}</h2>\n </div>\n }\n <div class=\"v-filter__fulltext flex-grow-1 pe-4\">\n @if (showFulltext){\n <v-textfield\n class=\"d-none d-lg-block\"\n placeholder=\"Search\"\n size=\"large\"\n formControlName=\"searchField\"\n type=\"search\"\n [clearable]=\"true\"\n >\n </v-textfield>\n }\n </div>\n @if (simpleFormFieldDefinitions$ | async; as declaration){\n @if (showFilters)\n {\n <div class=\"v-filter_filters d-none d-sm-block me-2\">\n <v-generic-form\n [fields]=\"declaration\"\n [formGroup]=\"formGroup\"\n ></v-generic-form>\n <v-button label=\"X\" class=\"mt-3\" (click)=\"clear()\" />\n </div>\n }\n <div class=\"v-filter_action-buttons d-flex\">\n @if (declaration.length && !showFilters) {\n <v-button \n class=\"me-4\"\n [icon]=\"icons.filter\"\n [label]=\"$any(filledFiltersCount$ | async)\"\n (click)=\"openFilter()\"\n />\n } @if (!autoBind) {\n <v-button\n useShortCut\n [shortCutFn]=\"submitValue.bind(this)\"\n shortCutKey=\"Enter\"\n class=\"text-white mx-2\"\n [outlined]=\"true\"\n size=\"small\"\n label=\"Apply\"\n (click)=\"submitValue()\"\n ></v-button>\n <v-button\n useShortCut\n [shortCutFn]=\"clear.bind(this)\"\n shortCutKey=\"Escape\"\n class=\"text-white\"\n [outlined]=\"true\"\n size=\"small\"\n label=\"Clear\"\n (click)=\"clear()\"\n ></v-button>\n } \n </div>\n }\n <ng-content select=\"v-action-button-group\"></ng-content>\n </form>\n }\n</div>\n" }]
2005
- }], propDecorators: { fieldDeclarations: [{
2006
- type: ContentChildren,
2007
- args: [FilterFieldDirective]
2008
- }], fields: [{
2009
- type: Input
2010
- }], filters: [{
2011
- type: Input
2012
- }], title: [{
2013
- type: Input
2014
- }], fulltextFieldName: [{
2015
- type: Input
2016
- }], showFulltext: [{
2017
- type: Input
2018
- }], showFilters: [{
2019
- type: Input
2020
- }], autoBind: [{
2021
- type: Input
2022
- }], debounceTime: [{
2023
- type: Input
2024
- }] } });
2025
-
2026
- class FeatureListFilterFieldDirective extends FilterFieldDirective {
2027
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: FeatureListFilterFieldDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
2028
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.1", type: FeatureListFilterFieldDirective, isStandalone: true, selector: "v-feature-list-filter-field", usesInheritance: true, ngImport: i0 }); }
2029
- }
2030
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: FeatureListFilterFieldDirective, decorators: [{
2031
- type: Directive,
2032
- args: [{
2033
- // eslint-disable-next-line @angular-eslint/directive-selector
2034
- selector: 'v-feature-list-filter-field',
2035
- standalone: true,
2036
- }]
2037
- }] });
2038
-
2039
- class FeatureListFilterPipe {
2040
- transform(value) {
2041
- if (!value) {
2042
- return undefined;
2043
- }
2044
- return value.filter(x => x.filter).map((x, index) => ({
2045
- name: x.id,
2046
- label: typeof x.headerName === 'function' ? x.headerName(x.id, index) : x.headerName ?? '',
2047
- type: x.type,
2048
- }));
2049
- }
2050
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: FeatureListFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
2051
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.1", ngImport: i0, type: FeatureListFilterPipe, isStandalone: true, name: "featureListColumn" }); }
2052
- }
2053
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: FeatureListFilterPipe, decorators: [{
2054
- type: Pipe,
2055
- args: [{
2056
- name: 'featureListColumn',
2057
- standalone: true,
2058
- }]
2059
- }] });
2060
-
2061
- class FeatureListPageComponent {
2062
- constructor(activatedRoute) {
2063
- this.config =
2064
- activatedRoute.snapshot.data[FEATURE_LIST_PAGE_CONFIG_PROPERTY];
2065
- }
2066
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: FeatureListPageComponent, deps: [{ token: i2$4.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
2067
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.1", type: FeatureListPageComponent, isStandalone: true, selector: "v-feature-list-page", ngImport: i0, template: `
2068
- <v-feature-list
2069
- [title]="config.title"
2070
- [tableName]="config.tableName"
2071
- [showAdd]="config.showAdd ?? true"
2072
- [showDownload]="config.showDownload ?? true"
2073
- [showDelete]="config.showDelete ?? true"
2074
- >
2075
- </v-feature-list>
2076
- `, isInline: true, dependencies: [{ kind: "component", type: FeatureListComponent, selector: "v-feature-list", inputs: ["autoBind", "title", "columns", "filters", "maxVisibleActions", "tableName", "ngrxFeatureKey", "maxVisibleMobileActions", "showExtendedFilter", "showDownload", "showDelete", "showAdd", "canDownload", "canDelete", "canAdd", "useRouterFilter", "fulltextFieldName", "showFulltext", "deleteConfirmMessage", "autoDeleteEnabled", "autoDownloadEnabled", "downloadFileName", "datasource", "extraFilter", "disableCustomClicks", "maximumColumnLength", "selectionMode"], outputs: ["addClick", "downloadClick", "deleteClick", "selectionChange"] }] }); }
2077
- }
2078
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: FeatureListPageComponent, decorators: [{
2079
- type: Component,
2080
- args: [{
2081
- selector: 'v-feature-list-page',
2082
- imports: [FeatureListComponent],
2083
- template: `
2084
- <v-feature-list
2085
- [title]="config.title"
2086
- [tableName]="config.tableName"
2087
- [showAdd]="config.showAdd ?? true"
2088
- [showDownload]="config.showDownload ?? true"
2089
- [showDelete]="config.showDelete ?? true"
2090
- >
2091
- </v-feature-list>
2092
- `
2093
- }]
2094
- }], ctorParameters: () => [{ type: i2$4.ActivatedRoute }] });
2095
-
2096
- const FEATURE_LIST_PAGE_CONFIG_PROPERTY = 'feature_list_config';
2097
- function addFeatureListPage(value) {
2098
- const { config, ...route } = value;
2099
- return {
2100
- component: FeatureListPageComponent,
2101
- ...route,
2102
- data: {
2103
- [FEATURE_LIST_PAGE_CONFIG_PROPERTY]: config,
2104
- ...(route.data ?? {}),
2105
- },
2106
- };
2107
- }
2108
- const FEATURE_LIST_COLUMN_PROVIDER = new InjectionToken('FEATURE_LIST_COLUMN_PROVIDER');
2109
-
2110
- class FeatureListComponent {
2111
- constructor() {
2112
- this.autoBind = true;
2113
- this.maxVisibleActions = 2;
2114
- this.maxVisibleMobileActions = 0;
2115
- this.showExtendedFilter = false;
2116
- this.showDownload = false;
2117
- this.showDelete = false;
2118
- this.showAdd = false;
2119
- this.canDownload = true;
2120
- this.canDelete = true;
2121
- this.canAdd = true;
2122
- this.useRouterFilter = true;
2123
- this.fulltextFieldName = 'searchField';
2124
- this.showFulltext = true;
2125
- this.autoDeleteEnabled = true;
2126
- this.autoDownloadEnabled = true;
2127
- this.downloadFileName = 'export.csv';
2128
- this.disableCustomClicks = false;
2129
- this.maximumColumnLength = MAX_COLUMN_CHAR_COUNT;
2130
- this.addClick = new EventEmitter();
2131
- this.downloadClick = new EventEmitter();
2132
- this.deleteClick = new EventEmitter();
2133
- this.selectionChange = new EventEmitter();
2134
- this.icons = Icons;
2135
- this.httpClient = inject(HttpClient);
2136
- this.baseUrl = inject(BASE_URL_PATH);
2137
- this.cdRef = inject(ChangeDetectorRef);
2138
- this.dialogService = inject(DialogService);
2139
- this.selection = [];
2140
- }
2141
- set selectionMode(mode) {
2142
- this._selectionMode = mode;
2143
- }
2144
- get selectionMode() {
2145
- return this.canDelete
2146
- ? TableSelectionMode.single
2147
- : this._selectionMode;
2148
- }
2149
- ngAfterViewInit() {
2150
- if (this.viewColumns?.length) {
2151
- const vewColumns = this.viewColumns
2152
- ?.toArray()
2153
- .map((x) => x.getDefinition());
2154
- this.columns = [...(this.columns ?? []), ...(vewColumns ?? [])];
2155
- this.cdRef.detectChanges();
2156
- }
2157
- if (this.fieldDeclarations?.length) {
2158
- this.filters = this.fieldDeclarations?.toArray();
2159
- }
2160
- this.cdRef.detectChanges();
2161
- }
2162
- selectItems(items) {
2163
- this.selection = items ?? [];
2164
- if (this.selectionMode !== undefined) {
2165
- this.selectionChange.emit(this.selectionMode === 'multiple'
2166
- ? this.selection
2167
- : this.selection[0]);
2168
- }
2169
- }
2170
- startDeleteItems() {
2171
- if (!this.selection.length) {
2172
- return;
2173
- }
2174
- if (this.deleteConfirmMessage) {
2175
- const message = this.deleteConfirmMessage;
2176
- this.dialogService.showDialog({
2177
- innerHTML: message,
2178
- confirmButtonFn: () => this.deleteItems(this.selection),
2179
- });
2180
- }
2181
- else {
2182
- this.deleteItems(this.selection);
2183
- }
2184
- }
2185
- startDownload() {
2186
- this.downloadClick.emit();
2187
- if (!this.autoDownloadEnabled) {
2188
- return;
2189
- }
2190
- const dowloadFn = this.createDownloadFn(this.datasource);
2191
- if (dowloadFn) {
2192
- this.tableDatasourceDirective.params$
2193
- .pipe(take(1), switchMap((params) => dowloadFn(params)))
2194
- .subscribe((blob) => {
2195
- downloadFile(this.downloadFileName, blob);
2196
- });
2197
- }
2198
- }
2199
- deleteItems(items) {
2200
- if (!this.autoDeleteEnabled) {
2201
- this.deleteClick.emit(items);
2202
- }
2203
- else {
2204
- this.forceDelete(items);
2205
- }
2206
- }
2207
- forceDelete(items) {
2208
- const deleteFn = this.createDeleteFn(this.datasource);
2209
- if (deleteFn) {
2210
- const deleteMethods = items.map((x) => deleteFn(x));
2211
- forkJoin(deleteMethods)
2212
- .pipe(take(1))
2213
- .subscribe(() => this.finishDeletion(items));
2214
- }
2215
- else {
2216
- this.finishDeletion(items);
2217
- }
2218
- }
2219
- createDeleteFn(datasource) {
2220
- if (!datasource) {
2221
- return undefined;
2222
- }
2223
- if (typeof datasource === 'string') {
2224
- const service = new BaseHttpService(this.httpClient, this.baseUrl, datasource);
2225
- return (item) => service.delete(item.id);
2226
- }
2227
- if (datasource instanceof BaseHttpService) {
2228
- return (item) => datasource.delete(item.id);
2229
- }
2230
- return undefined;
2231
- }
2232
- createDownloadFn(datasource) {
2233
- if (!datasource) {
2234
- return undefined;
2235
- }
2236
- if (typeof datasource === 'string') {
2237
- const service = new BaseHttpService(this.httpClient, this.baseUrl, datasource);
2238
- return (request) => service.export(request);
2239
- }
2240
- if (datasource instanceof BaseHttpService) {
2241
- return (request) => datasource.export(request);
2242
- }
2243
- const fetchFunction = convertDatasource(datasource, this.baseUrl, this.httpClient);
2244
- return (request) => {
2245
- const allData = [];
2246
- let offset = 0;
2247
- const fetchAllData = () => {
2248
- return fetchFunction({
2249
- ...request,
2250
- offset,
2251
- limit: DEFAULT_PAGE_SIZE,
2252
- }).pipe(take(1), switchMap((response) => {
2253
- allData.push(...response.data);
2254
- if (allData.length < response.total) {
2255
- offset = offset + DEFAULT_PAGE_SIZE;
2256
- return fetchAllData();
2257
- }
2258
- else {
2259
- return of(this.convertToBlob(allData));
2260
- }
2261
- }));
2262
- };
2263
- return fetchAllData();
2264
- };
2265
- }
2266
- finishDeletion(items) {
2267
- if (this.datasource && Array.isArray(this.datasource)) {
2268
- this.datasource = this.datasource.filter((x) => !items.includes(x));
2269
- }
2270
- else {
2271
- this.tableDatasourceDirective.reload();
2272
- }
2273
- this.deleteClick.emit(items);
2274
- }
2275
- convertToBlob(data) {
2276
- const columnModel = this.columns.map((x) => new ColumnModel(x));
2277
- const headers = columnModel.map((x, index) => x.headerGetter(x.id, index));
2278
- const dataValues = data.map((row, rowIndex) => columnModel.map((column) => column.valueGetter(row, rowIndex)));
2279
- const csvData = [headers, ...dataValues]
2280
- .map((row) => row.join(','))
2281
- .join('\n');
2282
- return new Blob([csvData], { type: 'text/csv' });
2283
- }
2284
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: FeatureListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2285
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: FeatureListComponent, isStandalone: true, selector: "v-feature-list", inputs: { autoBind: "autoBind", title: "title", columns: "columns", filters: "filters", maxVisibleActions: "maxVisibleActions", tableName: "tableName", ngrxFeatureKey: "ngrxFeatureKey", maxVisibleMobileActions: "maxVisibleMobileActions", showExtendedFilter: "showExtendedFilter", showDownload: "showDownload", showDelete: "showDelete", showAdd: "showAdd", canDownload: "canDownload", canDelete: "canDelete", canAdd: "canAdd", useRouterFilter: "useRouterFilter", fulltextFieldName: "fulltextFieldName", showFulltext: "showFulltext", deleteConfirmMessage: "deleteConfirmMessage", autoDeleteEnabled: "autoDeleteEnabled", autoDownloadEnabled: "autoDownloadEnabled", downloadFileName: "downloadFileName", datasource: "datasource", extraFilter: "extraFilter", disableCustomClicks: "disableCustomClicks", maximumColumnLength: "maximumColumnLength", selectionMode: "selectionMode" }, outputs: { addClick: "addClick", downloadClick: "downloadClick", deleteClick: "deleteClick", selectionChange: "selectionChange" }, queries: [{ propertyName: "viewColumns", predicate: FEATURE_LIST_COLUMN_PROVIDER }, { propertyName: "fieldDeclarations", predicate: FeatureListFilterFieldDirective }], viewQueries: [{ propertyName: "tableDatasourceDirective", first: true, predicate: TableDatasourceDirective, descendants: true }], ngImport: i0, template: "<div class=\"feature-list__container full-height-container\">\n <v-filter\n #filter\n [title]=\"title\"\n [fields]=\"columns | featureListColumn\"\n [filters]=\"filters\"\n [fulltextFieldName]=\"fulltextFieldName\"\n [showFulltext]=\"showFulltext\"\n [showFilters]=\"showExtendedFilter\"\n >\n <v-action-button-group\n [maxItems]=\"maxVisibleActions\"\n [maxItemsMobile]=\"maxVisibleMobileActions\"\n >\n @if (showAdd) {\n <v-action-button\n [icon]=\"icons.add\"\n label=\"Add\"\n [disabled]=\"!canAdd\"\n (click)=\"addClick.emit()\"\n ></v-action-button>\n } @if (showDelete){\n <v-action-button\n [icon]=\"icons.delete\"\n label=\"Delete\"\n [disabled]=\"!canDelete || !selection.length\"\n (click)=\"startDeleteItems()\"\n ></v-action-button>\n } @if (showDownload){\n <v-action-button\n [icon]=\"icons.download\"\n label=\"Download\"\n [disabled]=\"!canDownload\"\n (click)=\"startDownload()\"\n ></v-action-button>\n }\n </v-action-button-group>\n </v-filter>\n <div class=\"feature-list__table-container full-height-container\">\n <div class=\"full-height-container\">\n <v-table\n useDatasource\n useFilter\n [filterComponent]=\"filter\"\n class=\"full-height-container\"\n [selectionMode]=\"selectionMode\"\n [tableName]=\"tableName\"\n [autoBind]=\"true\"\n [datasource]=\"datasource\"\n [columns]=\"columns\"\n [extraFilter]=\"extraFilter\"\n [maximumColumnLength]=\"maximumColumnLength\"\n [disableCustomClicks]=\"disableCustomClicks\"\n (selectionChange)=\"selectItems($event)\"\n >\n </v-table>\n </div>\n </div>\n</div>\n", styles: [".full-height-container,:host{display:flex;flex-direction:column;flex-grow:1;height:100%}\n"], dependencies: [{ kind: "component", type: TableComponent, selector: "v-table", inputs: ["data", "total", "filter", "loading", "scrollable", "pageSize", "currentPage", "showPaginator", "sortMultiple", "lazy", "selectionMode", "showPageSizePicker", "entityKey", "maximumColumnLength", "disableCustomClicks", "columns", "selection"], outputs: ["pageSizeChange", "selectionChange", "pageChange", "sortChange", "lazyLoad"] }, { kind: "directive", type: TableDatasourceDirective, selector: "v-table[useDatasource]", inputs: ["autoBind", "tableName", "debounceTime", "datasource", "extraFilter", "transformFn"], exportAs: ["useDatasource"] }, { kind: "component", type: FilterComponent, selector: "v-filter", inputs: ["fields", "filters", "title", "fulltextFieldName", "showFulltext", "showFilters", "autoBind", "debounceTime"] }, { kind: "directive", type: TableFilterDirective, selector: "v-table[useFilter]", inputs: ["filterComponent"], exportAs: ["tableFilterDirective"] }, { kind: "component", type: ActionButtonGroupComponent, selector: "v-action-button-group", inputs: ["maxItems", "maxItemsMobile", "items", "menuIconPos", "menuIcon", "label", "icon"] }, { kind: "component", type: ActionButtonComponent, selector: "v-action-button", inputs: ["disabled", "toolTip", "id", "icon", "outlined", "raised", "severity", "label", "size"], outputs: ["click"] }, { kind: "pipe", type: FeatureListFilterPipe, name: "featureListColumn" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2286
- }
2287
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: FeatureListComponent, decorators: [{
2288
- type: Component,
2289
- args: [{ selector: 'v-feature-list', imports: [
2290
- TableComponent,
2291
- TableDatasourceDirective,
2292
- FilterComponent,
2293
- TableFilterDirective,
2294
- ActionButtonGroupComponent,
2295
- ActionButtonComponent,
2296
- FeatureListFilterPipe,
2297
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"feature-list__container full-height-container\">\n <v-filter\n #filter\n [title]=\"title\"\n [fields]=\"columns | featureListColumn\"\n [filters]=\"filters\"\n [fulltextFieldName]=\"fulltextFieldName\"\n [showFulltext]=\"showFulltext\"\n [showFilters]=\"showExtendedFilter\"\n >\n <v-action-button-group\n [maxItems]=\"maxVisibleActions\"\n [maxItemsMobile]=\"maxVisibleMobileActions\"\n >\n @if (showAdd) {\n <v-action-button\n [icon]=\"icons.add\"\n label=\"Add\"\n [disabled]=\"!canAdd\"\n (click)=\"addClick.emit()\"\n ></v-action-button>\n } @if (showDelete){\n <v-action-button\n [icon]=\"icons.delete\"\n label=\"Delete\"\n [disabled]=\"!canDelete || !selection.length\"\n (click)=\"startDeleteItems()\"\n ></v-action-button>\n } @if (showDownload){\n <v-action-button\n [icon]=\"icons.download\"\n label=\"Download\"\n [disabled]=\"!canDownload\"\n (click)=\"startDownload()\"\n ></v-action-button>\n }\n </v-action-button-group>\n </v-filter>\n <div class=\"feature-list__table-container full-height-container\">\n <div class=\"full-height-container\">\n <v-table\n useDatasource\n useFilter\n [filterComponent]=\"filter\"\n class=\"full-height-container\"\n [selectionMode]=\"selectionMode\"\n [tableName]=\"tableName\"\n [autoBind]=\"true\"\n [datasource]=\"datasource\"\n [columns]=\"columns\"\n [extraFilter]=\"extraFilter\"\n [maximumColumnLength]=\"maximumColumnLength\"\n [disableCustomClicks]=\"disableCustomClicks\"\n (selectionChange)=\"selectItems($event)\"\n >\n </v-table>\n </div>\n </div>\n</div>\n", styles: [".full-height-container,:host{display:flex;flex-direction:column;flex-grow:1;height:100%}\n"] }]
2298
- }], propDecorators: { viewColumns: [{
2299
- type: ContentChildren,
2300
- args: [FEATURE_LIST_COLUMN_PROVIDER]
2301
- }], fieldDeclarations: [{
2302
- type: ContentChildren,
2303
- args: [FeatureListFilterFieldDirective]
2304
- }], tableDatasourceDirective: [{
2305
- type: ViewChild,
2306
- args: [TableDatasourceDirective]
2307
- }], autoBind: [{
2308
- type: Input
2309
- }], title: [{
2310
- type: Input
2311
- }], columns: [{
2312
- type: Input
2313
- }], filters: [{
2314
- type: Input
2315
- }], maxVisibleActions: [{
2316
- type: Input
2317
- }], tableName: [{
2318
- type: Input,
2319
- args: [{ required: true }]
2320
- }], ngrxFeatureKey: [{
2321
- type: Input
2322
- }], maxVisibleMobileActions: [{
2323
- type: Input
2324
- }], showExtendedFilter: [{
2325
- type: Input
2326
- }], showDownload: [{
2327
- type: Input
2328
- }], showDelete: [{
2329
- type: Input
2330
- }], showAdd: [{
2331
- type: Input
2332
- }], canDownload: [{
2333
- type: Input
2334
- }], canDelete: [{
2335
- type: Input
2336
- }], canAdd: [{
2337
- type: Input
2338
- }], useRouterFilter: [{
2339
- type: Input
2340
- }], fulltextFieldName: [{
2341
- type: Input
2342
- }], showFulltext: [{
2343
- type: Input
2344
- }], deleteConfirmMessage: [{
2345
- type: Input
2346
- }], autoDeleteEnabled: [{
2347
- type: Input
2348
- }], autoDownloadEnabled: [{
2349
- type: Input
2350
- }], downloadFileName: [{
2351
- type: Input
2352
- }], datasource: [{
2353
- type: Input
2354
- }], extraFilter: [{
2355
- type: Input
2356
- }], disableCustomClicks: [{
2357
- type: Input
2358
- }], maximumColumnLength: [{
2359
- type: Input
2360
- }], addClick: [{
2361
- type: Output
2362
- }], downloadClick: [{
2363
- type: Output
2364
- }], deleteClick: [{
2365
- type: Output
2366
- }], selectionChange: [{
2367
- type: Output
2368
- }], selectionMode: [{
2369
- type: Input
2370
- }] } });
2371
-
2372
- class FeatureListColumnDirective extends TableColumnDirective {
2373
- constructor() {
2374
- super(...arguments);
2375
- this.filter = false;
2376
- this.type = GenericFieldType.text;
2377
- }
2378
- getDefinition() {
2379
- const definition = super.getDefinition();
2380
- definition.filter = this.filter;
2381
- definition.type = this.type;
2382
- definition.format = this.format;
2383
- return definition;
2384
- }
2385
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: FeatureListColumnDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
2386
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.1", type: FeatureListColumnDirective, isStandalone: true, selector: "v-feature-list-column", inputs: { filter: "filter", type: "type" }, providers: [
2387
- {
2388
- provide: FEATURE_LIST_COLUMN_PROVIDER,
2389
- useExisting: FeatureListColumnDirective,
2390
- multi: true,
2391
- },
2392
- ], usesInheritance: true, ngImport: i0 }); }
2393
- }
2394
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: FeatureListColumnDirective, decorators: [{
2395
- type: Directive,
2396
- args: [{
2397
- // eslint-disable-next-line @angular-eslint/directive-selector
2398
- selector: 'v-feature-list-column',
2399
- standalone: true,
2400
- providers: [
2401
- {
2402
- provide: FEATURE_LIST_COLUMN_PROVIDER,
2403
- useExisting: FeatureListColumnDirective,
2404
- multi: true,
2405
- },
2406
- ],
2407
- }]
2408
- }], propDecorators: { filter: [{
2409
- type: Input
2410
- }], type: [{
2411
- type: Input
2412
- }] } });
2413
-
2414
- /* eslint-disable @typescript-eslint/no-explicit-any */
2415
- class DynamicComponentFactoryService {
2416
- constructor(componentFactoryResolver) {
2417
- this.componentFactoryResolver = componentFactoryResolver;
2418
- }
2419
- ngOnDestroy() {
2420
- this.unsubscribeComponentEvents(this);
2421
- }
2422
- async createDynamicComponent(componentType, viewContainerRef, inputs, injector = undefined) {
2423
- const componentFactory = this.componentFactoryResolver.resolveComponentFactory(componentType);
2424
- viewContainerRef.clear();
2425
- const component = viewContainerRef.createComponent(componentFactory, undefined, injector);
2426
- this.setComponentDataInt(componentFactory, component, inputs);
2427
- this.fireComponentEvents(component.instance, inputs);
2428
- return component;
2429
- }
2430
- setComponentData(component, inputs) {
2431
- const factory = this.componentFactoryResolver.resolveComponentFactory(component.componentType);
2432
- this.setComponentDataInt(factory, component, inputs);
2433
- }
2434
- unsubscribeComponentEvents(instance) {
2435
- const subscriptionStoreKey = '__outputSubscriptions__';
2436
- const subscriptions = instance[subscriptionStoreKey];
2437
- if (subscriptions) {
2438
- subscriptions.forEach((sub) => sub.unsubscribe());
2439
- subscriptions.clear();
2440
- }
2441
- }
2442
- fireComponentEvents(instance, inputs) {
2443
- if (!instance || typeof instance !== 'object')
2444
- return;
2445
- this.fireInputComponentEvents(instance, inputs);
2446
- this.fireOutputComponentEvents(instance, inputs);
2447
- }
2448
- setComponentDataInt(factory, component, inputs) {
2449
- if (inputs) {
2450
- const propertyNames = factory.inputs.map((x) => x.propName);
2451
- const inputsHash = new Set(propertyNames);
2452
- Object.keys(inputs)
2453
- .filter((x) => inputsHash.has(x))
2454
- .forEach((x) => {
2455
- component.instance[x] = inputs[x];
2456
- });
2457
- }
2458
- }
2459
- fireInputComponentEvents(instance, inputs) {
2460
- const onChangeComponent = instance;
2461
- if (onChangeComponent.ngOnChanges && inputs) {
2462
- const changeEventArgs = Object.keys(inputs).reduce((changes, key) => {
2463
- const inputValue = inputs[key];
2464
- changes[key] = new SimpleChange(undefined, inputValue, true);
2465
- return changes;
2466
- }, {});
2467
- onChangeComponent.ngOnChanges(changeEventArgs);
2468
- }
2469
- }
2470
- fireOutputComponentEvents(instance, inputs) {
2471
- const outputs = Object.keys(inputs).filter((key) => {
2472
- const emitter = instance[key];
2473
- return emitter instanceof EventEmitter;
2474
- });
2475
- const subscriptionStoreKey = '__outputSubscriptions__';
2476
- if (!(subscriptionStoreKey in instance)) {
2477
- instance[subscriptionStoreKey] = new Map();
2478
- }
2479
- const subscriptions = instance[subscriptionStoreKey];
2480
- for (const outputKey of outputs) {
2481
- const eventEmitter = instance[outputKey];
2482
- const callback = inputs[outputKey];
2483
- if (eventEmitter && typeof callback === 'function') {
2484
- if (subscriptions.has(outputKey)) {
2485
- subscriptions.get(outputKey).unsubscribe();
2486
- }
2487
- const subscription = eventEmitter.subscribe((value) => callback(value));
2488
- subscriptions.set(outputKey, subscription);
2489
- }
2490
- }
2491
- }
2492
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DynamicComponentFactoryService, deps: [{ token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Injectable }); }
2493
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DynamicComponentFactoryService, providedIn: 'root' }); }
2494
- }
2495
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DynamicComponentFactoryService, decorators: [{
2496
- type: Injectable,
2497
- args: [{
2498
- providedIn: 'root',
2499
- }]
2500
- }], ctorParameters: () => [{ type: i0.ComponentFactoryResolver }] });
2501
-
2502
- class DynamicComponent {
2503
- constructor() {
2504
- this.factoryServices = inject(DynamicComponentFactoryService);
2505
- this.changeDetectorRef = inject(ChangeDetectorRef);
2506
- this.injector = inject(Injector);
2507
- }
2508
- ngOnChanges() {
2509
- this.createComponent();
2510
- }
2511
- ngAfterViewInit() {
2512
- this.createComponent();
2513
- this.changeDetectorRef.detectChanges();
2514
- }
2515
- createComponent() {
2516
- if (this.container) {
2517
- this.factoryServices.createDynamicComponent(this.componentType, this.container, this.data, this.injector);
2518
- }
2519
- }
2520
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DynamicComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2521
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.1", type: DynamicComponent, isStandalone: true, selector: "v-dynamic-component", inputs: { componentType: "componentType", data: "data" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["dynamicContainer"], descendants: true, read: ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0, template: `<ng-container #dynamicContainer></ng-container>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2522
- }
2523
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DynamicComponent, decorators: [{
2524
- type: Component,
2525
- args: [{
2526
- selector: 'v-dynamic-component',
2527
- standalone: true,
2528
- changeDetection: ChangeDetectionStrategy.OnPush,
2529
- template: `<ng-container #dynamicContainer></ng-container>`,
2530
- }]
2531
- }], propDecorators: { componentType: [{
2532
- type: Input
2533
- }], data: [{
2534
- type: Input
2535
- }], container: [{
2536
- type: ViewChild,
2537
- args: ['dynamicContainer', { read: ViewContainerRef, static: true }]
2538
- }] } });
2539
-
2540
- class PageHeaderComponent extends PageHeaderCoreComponent {
2541
- constructor() {
2542
- super(...arguments);
2543
- this.icons = Icons;
2544
- }
2545
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: PageHeaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
2546
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: PageHeaderComponent, isStandalone: true, selector: "v-page-header", providers: [
2547
- { provide: PAGE_HEADER_COMPONENT_TOKEN, useExisting: PageHeaderComponent },
2548
- ], queries: [{ propertyName: "buttonGroup", first: true, predicate: ActionButtonGroupComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div\n class=\"v-page-header d-block d-md-flex px-3 w-100 gap-0 gap-md-4 align-items-center text-center text-md-start\"\n >\n @if (showBackButton) {\n <v-button\n size=\"small\"\n [icon]=\"icons.arrowLeft\"\n label=\"Back\"\n [outlined]=\"true\"\n (click)=\"locationBack()\"\n ></v-button>\n }\n <div\n class=\"align-items-center justify-content-center justify-content-md-start gap-2 w-100 d-flex\"\n >\n <h1 class=\"text-primary m-0\" [innerText]=\"title\"></h1>\n @if (subtitle) {\n <div\n class=\"d-flex gap-2 align-items-center text-center text-md-start\"\n >\n <h1 class=\"text-default m-0\" [innerText]=\"'-'\"></h1>\n <h1 class=\"text-default\" [innerText]=\"subtitle\"></h1>\n </div>\n }\n </div>\n <div\n class=\"align-content-center page-header-action-buttons justify-content-center w-100\"\n >\n @if (buttonGroup) {\n <div>\n <ng-content [select]=\"buttonGroup\"></ng-content>\n </div>\n }\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: ButtonComponent, selector: "v-button", inputs: ["label", "icon", "badge", "iconPos", "disabled", "rounded", "outlined", "raised", "severity", "routerLink", "size", "queryParams"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2549
- }
2550
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: PageHeaderComponent, decorators: [{
2551
- type: Component,
2552
- args: [{ selector: 'v-page-header', imports: [ButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
2553
- { provide: PAGE_HEADER_COMPONENT_TOKEN, useExisting: PageHeaderComponent },
2554
- ], template: "<div\n class=\"v-page-header d-block d-md-flex px-3 w-100 gap-0 gap-md-4 align-items-center text-center text-md-start\"\n >\n @if (showBackButton) {\n <v-button\n size=\"small\"\n [icon]=\"icons.arrowLeft\"\n label=\"Back\"\n [outlined]=\"true\"\n (click)=\"locationBack()\"\n ></v-button>\n }\n <div\n class=\"align-items-center justify-content-center justify-content-md-start gap-2 w-100 d-flex\"\n >\n <h1 class=\"text-primary m-0\" [innerText]=\"title\"></h1>\n @if (subtitle) {\n <div\n class=\"d-flex gap-2 align-items-center text-center text-md-start\"\n >\n <h1 class=\"text-default m-0\" [innerText]=\"'-'\"></h1>\n <h1 class=\"text-default\" [innerText]=\"subtitle\"></h1>\n </div>\n }\n </div>\n <div\n class=\"align-content-center page-header-action-buttons justify-content-center w-100\"\n >\n @if (buttonGroup) {\n <div>\n <ng-content [select]=\"buttonGroup\"></ng-content>\n </div>\n }\n </div>\n</div>\n" }]
2555
- }], propDecorators: { buttonGroup: [{
2556
- type: ContentChild,
2557
- args: [ActionButtonGroupComponent]
2558
- }] } });
2559
-
2560
- class StepperComponent {
2561
- constructor() {
2562
- this.icons = Icons;
2563
- this.size = FieldSize.medium;
2564
- this.layout = LayoutType.horizontal;
2565
- this.activeIndex = 0;
2566
- this.activeIndexChange = new EventEmitter();
2567
- }
2568
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: StepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2569
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: StepperComponent, isStandalone: true, selector: "v-stepper", inputs: { items: "items", prefix: "prefix", label: "label", size: "size", layout: "layout", icon: "icon", activeIndex: "activeIndex", annotation: "annotation" }, outputs: { activeIndexChange: "activeIndexChange" }, providers: [
2570
- { provide: STEPPER_COMPONENT_TOKEN, useExisting: StepperComponent },
2571
- ], ngImport: i0, template: "<div class=\"v-stepper\">\n <p-stepper>\n <p-step-list>\n @for(item of items; track item; let idx = $index) {\n <p-step [value]=\"idx\">{{ item.header }}</p-step>\n }\n </p-step-list>\n <p-step-panels>\n @for(item of items; track item; let idx = $index) {\n <p-step-panel [value]=\"idx\">\n <ng-template pTemplate=\"content\" let-nextCallback=\"nextCallback\" let-prevCallback=\"prevCallback\"\n let-index=\"index\">\n @if (item.template && item.template.elementRef) {\n <ng-template *ngTemplateOutlet=\"\n item.template;\n context: { item: item, index: index }\n \" />\n }\n <div class=\"d-flex pt-4 justify-content-between\">\n @if (index > 0) {\n <v-button label=\"Back\" [icon]=\"icons.arrowLeft\" size=\"small\" [outlined]=\"true\"\n (click)=\"prevCallback.emit()\" />\n }\n\n @if (index < items.length - 1) {\n <v-button label=\"Next\" size=\"small\" [icon]=\"icons.arrowRight\"\n iconPos=\"right\" (click)=\"nextCallback.emit()\" />\n }\n </div>\n </ng-template>\n </p-step-panel>\n }\n </p-step-panels>\n </p-stepper>\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ButtonComponent, selector: "v-button", inputs: ["label", "icon", "badge", "iconPos", "disabled", "rounded", "outlined", "raised", "severity", "routerLink", "size", "queryParams"] }, { kind: "ngmodule", type: StepperModule }, { kind: "component", type: i2$9.Stepper, selector: "p-stepper", inputs: ["value", "linear", "transitionOptions"], outputs: ["valueChange"] }, { kind: "component", type: i2$9.StepList, selector: "p-step-list" }, { kind: "component", type: i2$9.StepPanels, selector: "p-step-panels" }, { kind: "component", type: i2$9.StepPanel, selector: "p-step-panel", inputs: ["value"], outputs: ["valueChange"] }, { kind: "component", type: i2$9.Step, selector: "p-step", inputs: ["value", "disabled"], outputs: ["valueChange"] }, { kind: "directive", type: i1$6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2572
- }
2573
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: StepperComponent, decorators: [{
2574
- type: Component,
2575
- args: [{ selector: 'v-stepper', imports: [CommonModule, ButtonComponent, StepperModule], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
2576
- { provide: STEPPER_COMPONENT_TOKEN, useExisting: StepperComponent },
2577
- ], template: "<div class=\"v-stepper\">\n <p-stepper>\n <p-step-list>\n @for(item of items; track item; let idx = $index) {\n <p-step [value]=\"idx\">{{ item.header }}</p-step>\n }\n </p-step-list>\n <p-step-panels>\n @for(item of items; track item; let idx = $index) {\n <p-step-panel [value]=\"idx\">\n <ng-template pTemplate=\"content\" let-nextCallback=\"nextCallback\" let-prevCallback=\"prevCallback\"\n let-index=\"index\">\n @if (item.template && item.template.elementRef) {\n <ng-template *ngTemplateOutlet=\"\n item.template;\n context: { item: item, index: index }\n \" />\n }\n <div class=\"d-flex pt-4 justify-content-between\">\n @if (index > 0) {\n <v-button label=\"Back\" [icon]=\"icons.arrowLeft\" size=\"small\" [outlined]=\"true\"\n (click)=\"prevCallback.emit()\" />\n }\n\n @if (index < items.length - 1) {\n <v-button label=\"Next\" size=\"small\" [icon]=\"icons.arrowRight\"\n iconPos=\"right\" (click)=\"nextCallback.emit()\" />\n }\n </div>\n </ng-template>\n </p-step-panel>\n }\n </p-step-panels>\n </p-stepper>\n</div>" }]
2578
- }], propDecorators: { items: [{
2579
- type: Input
2580
- }], prefix: [{
2581
- type: Input
2582
- }], label: [{
2583
- type: Input
2584
- }], size: [{
2585
- type: Input
2586
- }], layout: [{
2587
- type: Input
2588
- }], icon: [{
2589
- type: Input
2590
- }], activeIndex: [{
2591
- type: Input
2592
- }], annotation: [{
2593
- type: Input
2594
- }], activeIndexChange: [{
2595
- type: Output
2596
- }] } });
2597
-
2598
- class SliderComponent extends BaseFormInputComponent {
2599
- constructor(ngControl) {
2600
- super(ngControl);
2601
- this.step = 1;
2602
- this.min = 0;
2603
- this.max = 100;
2604
- this.range = false;
2605
- }
2606
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SliderComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
2607
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.1", type: SliderComponent, isStandalone: true, selector: "v-slider", inputs: { step: "step", min: "min", max: "max", range: "range" }, providers: [
2608
- {
2609
- provide: BaseInputControls,
2610
- useExisting: forwardRef(() => SliderComponent),
2611
- },
2612
- {
2613
- provide: SLIDER_COMPONENT_TOKEN,
2614
- useExisting: SliderComponent,
2615
- },
2616
- ], usesInheritance: true, ngImport: i0, template: "<div class=\"v-slider\">\n <v-form-field\n class=\"w-100\"\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [testId]=\"testId\"\n >\n <p-slider\n class=\"w-100\"\n [formControl]=\"formControl\"\n [step]=\"step\"\n [range]=\"range\"\n [min]=\"min\"\n [max]=\"max\"\n />\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n </v-form-field>\n</div>", dependencies: [{ kind: "ngmodule", type: SliderModule }, { kind: "component", type: i2$a.Slider, selector: "p-slider", inputs: ["animate", "min", "max", "orientation", "step", "range", "styleClass", "ariaLabel", "ariaLabelledBy", "tabindex", "autofocus"], outputs: ["onChange", "onSlideEnd"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: FormFieldComponent, selector: "v-form-field", inputs: ["display", "variant"] }, { kind: "component", type: ErrorComponent, selector: "v-validation-message", inputs: ["ngControl", "errorSlot", "messageSlot", "variant", "severity"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2617
- }
2618
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SliderComponent, decorators: [{
2619
- type: Component,
2620
- args: [{ selector: 'v-slider', imports: [
2621
- SliderModule,
2622
- ReactiveFormsModule,
2623
- FormFieldComponent,
2624
- ErrorComponent
2625
- ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
2626
- {
2627
- provide: BaseInputControls,
2628
- useExisting: forwardRef(() => SliderComponent),
2629
- },
2630
- {
2631
- provide: SLIDER_COMPONENT_TOKEN,
2632
- useExisting: SliderComponent,
2633
- },
2634
- ], template: "<div class=\"v-slider\">\n <v-form-field\n class=\"w-100\"\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [testId]=\"testId\"\n >\n <p-slider\n class=\"w-100\"\n [formControl]=\"formControl\"\n [step]=\"step\"\n [range]=\"range\"\n [min]=\"min\"\n [max]=\"max\"\n />\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n </v-form-field>\n</div>" }]
2635
- }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
2636
- type: Optional
2637
- }, {
2638
- type: Self
2639
- }] }], propDecorators: { step: [{
2640
- type: Input
2641
- }], min: [{
2642
- type: Input
2643
- }], max: [{
2644
- type: Input
2645
- }], range: [{
2646
- type: Input
2647
- }] } });
2648
-
2649
- class ConfirmDialogComponent extends UnsubscribeComponent {
2650
- constructor(dialogService, cdr) {
2651
- super();
2652
- this.dialogService = dialogService;
2653
- this.cdr = cdr;
2654
- this.visible = false;
2655
- this.closable = false;
2656
- }
2657
- ngOnInit() {
2658
- this.dialogService.showEvent
2659
- .pipe(takeUntil(this.destroyed$))
2660
- .subscribe((x) => {
2661
- this.data = x;
2662
- this.visible = true;
2663
- this.cdr.detectChanges();
2664
- });
2665
- }
2666
- dialogClick(confirm) {
2667
- const { confirmButtonFn, cancelButtonFn } = this.data;
2668
- if (confirm && confirmButtonFn) {
2669
- confirmButtonFn();
2670
- }
2671
- if (!confirm && cancelButtonFn) {
2672
- cancelButtonFn();
2673
- }
2674
- this.visible = false;
2675
- this.cdr.detectChanges();
2676
- }
2677
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ConfirmDialogComponent, deps: [{ token: i1$4.DialogService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
2678
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: ConfirmDialogComponent, isStandalone: true, selector: "v-confirm-dialog", providers: [
2679
- {
2680
- provide: CONFIRM_DIALOG_COMPONENT_TOKEN,
2681
- useExisting: ConfirmDialogComponent,
2682
- },
2683
- ], usesInheritance: true, ngImport: i0, template: "@if (data) {\n <div class=\"v-dialog d-flex justify-content-center\">\n <p-dialog\n [(visible)]=\"visible\"\n [modal]=\"true\"\n [closable]=\"closable\"\n [style]=\"{ width: '25rem' }\"\n >\n <ng-template pTemplate=\"header\">\n <div\n class=\"v-dialog-header w-100 align-items-center d-flex justify-content-center\"\n >\n <h1 class=\"text-center me-3\">{{ data.title }}</h1>\n <i class=\"{{ data.headerIcon }} text-{{ data.severity }}\"></i>\n </div>\n </ng-template>\n <div class=\"v-dialog-content w-100 align-items-center text-center\">\n @if (data.innerHTML) {\n <div [innerHTML]=\"data.innerHTML\"></div>\n } @else if (data.componentType) {\n <v-dynamic-component\n [componentType]=\"data.componentType\"\n [data]=\"$any(data.data)\"\n ></v-dynamic-component>\n }\n </div>\n <ng-template pTemplate=\"footer\">\n <div\n class=\"v-dialog-footer d-flex justify-content-center w-100 gap-3\"\n [ngClass]=\"{\n 'flex-row-reverse': data.buttonOrder === 'cancel-confirm'\n }\"\n >\n <v-button\n [label]=\"data.confirmButtonText ?? 'Yes'\"\n [severity]=\"data.severity\"\n (click)=\"data.confirmButtonFn ? dialogClick(true) : (visible = false)\"\n />\n @if (data.showCancelButton && data.severity !== 'success') {\n <v-button\n [label]=\"data.cancelButtonText ?? 'No'\"\n [outlined]=\"true\"\n [severity]=\"'secondary'\"\n (click)=\"data.cancelButtonFn ? dialogClick(false) : (visible = false)\"\n />\n }\n </div>\n </ng-template>\n </p-dialog>\n </div>\n}\n", styles: [".v-dialog-content *{line-height:1.5rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type: i3$6.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "directive", type: i1$6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: ButtonComponent, selector: "v-button", inputs: ["label", "icon", "badge", "iconPos", "disabled", "rounded", "outlined", "raised", "severity", "routerLink", "size", "queryParams"] }, { kind: "ngmodule", type: AvatarModule }, { kind: "component", type: DynamicComponent, selector: "v-dynamic-component", inputs: ["componentType", "data"] }] }); }
2684
- }
2685
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ConfirmDialogComponent, decorators: [{
2686
- type: Component,
2687
- args: [{ selector: 'v-confirm-dialog', imports: [
2688
- CommonModule,
2689
- DialogModule,
2690
- ButtonComponent,
2691
- AvatarModule,
2692
- DynamicComponent,
2693
- ], providers: [
2694
- {
2695
- provide: CONFIRM_DIALOG_COMPONENT_TOKEN,
2696
- useExisting: ConfirmDialogComponent,
2697
- },
2698
- ], template: "@if (data) {\n <div class=\"v-dialog d-flex justify-content-center\">\n <p-dialog\n [(visible)]=\"visible\"\n [modal]=\"true\"\n [closable]=\"closable\"\n [style]=\"{ width: '25rem' }\"\n >\n <ng-template pTemplate=\"header\">\n <div\n class=\"v-dialog-header w-100 align-items-center d-flex justify-content-center\"\n >\n <h1 class=\"text-center me-3\">{{ data.title }}</h1>\n <i class=\"{{ data.headerIcon }} text-{{ data.severity }}\"></i>\n </div>\n </ng-template>\n <div class=\"v-dialog-content w-100 align-items-center text-center\">\n @if (data.innerHTML) {\n <div [innerHTML]=\"data.innerHTML\"></div>\n } @else if (data.componentType) {\n <v-dynamic-component\n [componentType]=\"data.componentType\"\n [data]=\"$any(data.data)\"\n ></v-dynamic-component>\n }\n </div>\n <ng-template pTemplate=\"footer\">\n <div\n class=\"v-dialog-footer d-flex justify-content-center w-100 gap-3\"\n [ngClass]=\"{\n 'flex-row-reverse': data.buttonOrder === 'cancel-confirm'\n }\"\n >\n <v-button\n [label]=\"data.confirmButtonText ?? 'Yes'\"\n [severity]=\"data.severity\"\n (click)=\"data.confirmButtonFn ? dialogClick(true) : (visible = false)\"\n />\n @if (data.showCancelButton && data.severity !== 'success') {\n <v-button\n [label]=\"data.cancelButtonText ?? 'No'\"\n [outlined]=\"true\"\n [severity]=\"'secondary'\"\n (click)=\"data.cancelButtonFn ? dialogClick(false) : (visible = false)\"\n />\n }\n </div>\n </ng-template>\n </p-dialog>\n </div>\n}\n", styles: [".v-dialog-content *{line-height:1.5rem}\n"] }]
2699
- }], ctorParameters: () => [{ type: i1$4.DialogService }, { type: i0.ChangeDetectorRef }] });
2700
-
2701
- class SwitchComponent extends BaseFormInputComponent {
2702
- constructor(ngControl) {
2703
- super(ngControl);
2704
- this.id = v4();
2705
- }
2706
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SwitchComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
2707
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.1", type: SwitchComponent, isStandalone: true, selector: "v-switch", providers: [
2708
- {
2709
- provide: BaseInputControls,
2710
- useExisting: forwardRef(() => SwitchComponent),
2711
- multi: true,
2712
- },
2713
- {
2714
- provide: SWITCH_COMPONENT_TOKEN,
2715
- useExisting: SwitchComponent,
2716
- },
2717
- ], usesInheritance: true, ngImport: i0, template: "<div class=\"v-switch d-flex align-items-center\">\n <v-form-field\n class=\"w-100\"\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [testId]=\"testId\"\n [display]=\"formDisplay\"\n >\n <p-toggle-switch\n [formControl]=\"formControl\"\n [required]=\"isRequired()\"\n [title]=\"label\"\n [readonly]=\"readonly\"\n [inputId]=\"id\"\n /><v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n </v-form-field>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: ToggleSwitch, selector: "p-toggleswitch, p-toggleSwitch, p-toggle-switch", inputs: ["styleClass", "tabindex", "inputId", "readonly", "trueValue", "falseValue", "ariaLabel", "size", "ariaLabelledBy", "autofocus"], outputs: ["onChange"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: FormFieldComponent, selector: "v-form-field", inputs: ["display", "variant"] }, { kind: "component", type: ErrorComponent, selector: "v-validation-message", inputs: ["ngControl", "errorSlot", "messageSlot", "variant", "severity"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2718
- }
2719
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SwitchComponent, decorators: [{
2720
- type: Component,
2721
- args: [{ selector: 'v-switch', imports: [
2722
- ToggleSwitch,
2723
- ReactiveFormsModule,
2724
- FormFieldComponent,
2725
- ErrorComponent
2726
- ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
2727
- {
2728
- provide: BaseInputControls,
2729
- useExisting: forwardRef(() => SwitchComponent),
2730
- multi: true,
2731
- },
2732
- {
2733
- provide: SWITCH_COMPONENT_TOKEN,
2734
- useExisting: SwitchComponent,
2735
- },
2736
- ], template: "<div class=\"v-switch d-flex align-items-center\">\n <v-form-field\n class=\"w-100\"\n [label]=\"label\"\n [tooltip]=\"tooltip\"\n [required]=\"isRequired()\"\n [testId]=\"testId\"\n [display]=\"formDisplay\"\n >\n <p-toggle-switch\n [formControl]=\"formControl\"\n [required]=\"isRequired()\"\n [title]=\"label\"\n [readonly]=\"readonly\"\n [inputId]=\"id\"\n /><v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\n </v-form-field>\n</div>\n" }]
2737
- }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
2738
- type: Optional
2739
- }, {
2740
- type: Self
2741
- }] }] });
2742
-
2743
- class HttpErrorMessageInterceptor {
2744
- constructor(snackbarService) {
2745
- this.snackbarService = snackbarService;
2746
- }
2747
- intercept(req, next) {
2748
- return next.handle(req).pipe(catchError((errorResponse) => {
2749
- if (!errorResponse.ok) {
2750
- if (errorResponse.status === 403) {
2751
- this.snackbarService.showError('Unauthorized request');
2752
- console.error('Unauthorized request');
2753
- }
2754
- else {
2755
- this.snackbarService.showError(errorResponse.message);
2756
- console.error(errorResponse);
2757
- }
2758
- }
2759
- return throwError(() => errorResponse);
2760
- }));
2761
- }
2762
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: HttpErrorMessageInterceptor, deps: [{ token: SnackbarService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2763
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: HttpErrorMessageInterceptor }); }
2764
- }
2765
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: HttpErrorMessageInterceptor, decorators: [{
2766
- type: Injectable
2767
- }], ctorParameters: () => [{ type: SnackbarService }] });
2768
-
2769
- class TabViewItemComponent {
2770
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: TabViewItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2771
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.1", type: TabViewItemComponent, isStandalone: true, selector: "v-tab-view-item", inputs: { title: "title", url: "url", icon: "icon", disabled: "disabled", content: "content" }, viewQueries: [{ propertyName: "contentTemplate", first: true, predicate: ["contentTemplate"], descendants: true, static: true }], ngImport: i0, template: `<ng-template #contentTemplate>
2772
- <ng-content></ng-content>
2773
- </ng-template>`, isInline: true }); }
2774
- }
2775
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: TabViewItemComponent, decorators: [{
2776
- type: Component,
2777
- args: [{
2778
- selector: 'v-tab-view-item',
2779
- template: `<ng-template #contentTemplate>
2780
- <ng-content></ng-content>
2781
- </ng-template>`,
2782
- }]
2783
- }], propDecorators: { contentTemplate: [{
2784
- type: ViewChild,
2785
- args: ['contentTemplate', { static: true }]
2786
- }], title: [{
2787
- type: Input
2788
- }], url: [{
2789
- type: Input
2790
- }], icon: [{
2791
- type: Input
2792
- }], disabled: [{
2793
- type: Input
2794
- }], content: [{
2795
- type: Input
2796
- }] } });
2797
-
2798
- class TabViewComponent {
2799
- constructor() {
2800
- this.items = [];
2801
- this.useRouting = false;
2802
- this.activeIndex = 0;
2803
- this.activeIndexChange = new EventEmitter();
2804
- this.mergedItems = [];
2805
- }
2806
- ngAfterContentInit() {
2807
- this.mergedItems = [...this.items, ...this.children.toArray()];
2808
- }
2809
- activeItemChanged(item) {
2810
- let index;
2811
- if (typeof item === 'number') {
2812
- index = item;
2813
- }
2814
- else {
2815
- index = this.items.indexOf(item);
2816
- }
2817
- if (index != -1) {
2818
- this.activeIndexChange.emit(index);
2819
- }
2820
- }
2821
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: TabViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2822
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: TabViewComponent, isStandalone: true, selector: "v-tab-view", inputs: { items: "items", useRouting: "useRouting", activeIndex: "activeIndex" }, outputs: { activeIndexChange: "activeIndexChange" }, providers: [
2823
- { provide: TAB_VIEW_COMPONENT_TOKEN, useExisting: TabViewComponent }
2824
- ], queries: [{ propertyName: "children", predicate: TabViewItemComponent }], ngImport: i0, template: "<div class=\"v-tab-view\">\n @if (useRouting) {\n <p-tabs [value]=\"activeIndex\">\n <p-tablist>\n @for(tab of mergedItems; track tab.url; let index = $index){\n <p-tab [value]=\"index\" [routerLink]=\"tab.url\" (valueChange)=\"activeItemChanged(index)\">\n @if (tab.icon) {\n <i [class]=\"tab.icon\"></i>\n }\n <span>{{ tab.title }}</span>\n </p-tab>\n }\n </p-tablist>\n </p-tabs>\n <router-outlet></router-outlet>\n } @else {\n <p-tabs [value]=\"activeIndex\">\n <p-tablist>\n @for (tab of mergedItems; track tab; let index = $index) {\n <p-tab [value]=\"index\" (valueChange)=\"activeItemChanged(index)\">\n @if (tab.icon) {\n <i [class]=\"tab.icon\"></i>\n }\n <span>{{ tab.title }}</span>\n </p-tab>\n }\n </p-tablist>\n <p-tabpanels>\n @for (tab of mergedItems; track tab; let index = $index) {\n <p-tabpanel [value]=\"index\">\n @if (tab.contentTemplate){\n <ng-container *ngTemplateOutlet=\"tab.contentTemplate\"></ng-container>\n } @else if (tab.content) {\n {{ tab.content }}\n }\n </p-tabpanel>\n }\n </p-tabpanels>\n </p-tabs>\n }\n</div>", dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: TabsModule }, { kind: "component", type: i1$8.Tabs, selector: "p-tabs", inputs: ["value", "scrollable", "lazy", "selectOnFocus", "showNavigators", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: i1$8.TabPanels, selector: "p-tabpanels" }, { kind: "component", type: i1$8.TabPanel, selector: "p-tabpanel", inputs: ["value"], outputs: ["valueChange"] }, { kind: "component", type: i1$8.TabList, selector: "p-tablist" }, { kind: "component", type: i1$8.Tab, selector: "p-tab", inputs: ["value", "disabled"], outputs: ["valueChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
2825
- }
2826
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: TabViewComponent, decorators: [{
2827
- type: Component,
2828
- args: [{ selector: 'v-tab-view', imports: [RouterOutlet, RouterLink, TabsModule, NgTemplateOutlet], providers: [
2829
- { provide: TAB_VIEW_COMPONENT_TOKEN, useExisting: TabViewComponent }
2830
- ], template: "<div class=\"v-tab-view\">\n @if (useRouting) {\n <p-tabs [value]=\"activeIndex\">\n <p-tablist>\n @for(tab of mergedItems; track tab.url; let index = $index){\n <p-tab [value]=\"index\" [routerLink]=\"tab.url\" (valueChange)=\"activeItemChanged(index)\">\n @if (tab.icon) {\n <i [class]=\"tab.icon\"></i>\n }\n <span>{{ tab.title }}</span>\n </p-tab>\n }\n </p-tablist>\n </p-tabs>\n <router-outlet></router-outlet>\n } @else {\n <p-tabs [value]=\"activeIndex\">\n <p-tablist>\n @for (tab of mergedItems; track tab; let index = $index) {\n <p-tab [value]=\"index\" (valueChange)=\"activeItemChanged(index)\">\n @if (tab.icon) {\n <i [class]=\"tab.icon\"></i>\n }\n <span>{{ tab.title }}</span>\n </p-tab>\n }\n </p-tablist>\n <p-tabpanels>\n @for (tab of mergedItems; track tab; let index = $index) {\n <p-tabpanel [value]=\"index\">\n @if (tab.contentTemplate){\n <ng-container *ngTemplateOutlet=\"tab.contentTemplate\"></ng-container>\n } @else if (tab.content) {\n {{ tab.content }}\n }\n </p-tabpanel>\n }\n </p-tabpanels>\n </p-tabs>\n }\n</div>" }]
2831
- }], propDecorators: { children: [{
2832
- type: ContentChildren,
2833
- args: [TabViewItemComponent]
2834
- }], items: [{
2835
- type: Input
2836
- }], useRouting: [{
2837
- type: Input
2838
- }], activeIndex: [{
2839
- type: Input
2840
- }], activeIndexChange: [{
2841
- type: Output
2842
- }] } });
2843
-
2844
- class TooltipComponent {
2845
- constructor() {
2846
- this.color = input(undefined, ...(ngDevMode ? [{ debugName: "color" }] : []));
2847
- this.position = input(undefined, ...(ngDevMode ? [{ debugName: "position" }] : []));
2848
- this.size = input(undefined, ...(ngDevMode ? [{ debugName: "size" }] : []));
2849
- this.tooltipText = input(undefined, ...(ngDevMode ? [{ debugName: "tooltipText" }] : []));
2850
- }
2851
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2852
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.1", type: TooltipComponent, isStandalone: true, selector: "v-tooltip", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, tooltipText: { classPropertyName: "tooltipText", publicName: "tooltipText", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"d-inline-block v-tooltip\" [pTooltip]=\"tooltipText()\" [tooltipPosition]=\"position()\">\n <ng-content></ng-content>\n</div>", dependencies: [{ kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i3.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo"] }] }); }
2853
- }
2854
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: TooltipComponent, decorators: [{
2855
- type: Component,
2856
- args: [{ selector: "v-tooltip", imports: [
2857
- TooltipModule,
2858
- ], template: "<div class=\"d-inline-block v-tooltip\" [pTooltip]=\"tooltipText()\" [tooltipPosition]=\"position()\">\n <ng-content></ng-content>\n</div>" }]
2859
- }] });
2860
-
2861
- /**
2862
- * Generated bundle index. Do not edit.
2863
- */
2864
-
2865
- export { ActionButtonComponent, ActionButtonGroupComponent, BreadcrumbComponent, ButtonComponent, CalendarComponent, CheckboxComponent, ConfirmDialogComponent, DropdownButtonComponent, DropdownComponent, DynamicComponent, DynamicComponentFactoryService, FEATURE_LIST_COLUMN_PROVIDER, FEATURE_LIST_PAGE_CONFIG_PROPERTY, FeatureListColumnDirective, FeatureListComponent, FeatureListFilterFieldDirective, FeatureListFilterPipe, FilterComponent, FilterFieldDirective, FormFieldComponent, GenericFieldComponent, GenericFormComponent, HeaderComponent, HeaderProviderService, HttpErrorMessageInterceptor, Icons, InputGroupComponent, LoaderComponent, MultiselectComponent, NumberInputComponent, PageHeaderComponent, PasswordComponent, RadioButtonComponent, SectionComponent, SideMenuComponent, SideMenuModule, SliderComponent, SnackbarComponent, SnackbarService, StepperComponent, SwitchComponent, TabViewComponent, TabViewItemComponent, TableComponent, TextareaComponent, TextfieldComponent, TooltipComponent, addFeatureListPage, generateFormGroup, getColumnClass };
2866
- //# sourceMappingURL=verisoft-ui-primeng.mjs.map