@netgrif/components-core 6.3.0 → 6.4.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/esm2020/assets/i18n/de.json +1 -0
  2. package/esm2020/assets/i18n/en.json +1 -0
  3. package/esm2020/assets/i18n/sk.json +1 -0
  4. package/esm2020/lib/data-fields/base-component/abstract-base-data-field.component.mjs +51 -0
  5. package/esm2020/lib/data-fields/boolean-field/abstract-boolean-field.component.mjs +7 -26
  6. package/esm2020/lib/data-fields/boolean-field/boolean-default-field/abstract-boolean-default-field.component.mjs +46 -0
  7. package/esm2020/lib/data-fields/boolean-field/models/boolean-field.mjs +9 -1
  8. package/esm2020/lib/data-fields/button-field/abstract-button-field.component.mjs +7 -39
  9. package/esm2020/lib/data-fields/button-field/button-default-field/abstract-button-default-field.component.mjs +58 -0
  10. package/esm2020/lib/data-fields/button-field/models/button-field.mjs +5 -1
  11. package/esm2020/lib/data-fields/case-ref-field/case-ref-default/case-ref-default.component.mjs +67 -0
  12. package/esm2020/lib/data-fields/case-ref-field/model/case-ref-field.mjs +11 -0
  13. package/esm2020/lib/data-fields/case-ref-field/model/case-ref-injection-tokens.mjs +4 -0
  14. package/esm2020/lib/data-fields/data-field-template/abstract-data-field-template.component.mjs +51 -6
  15. package/esm2020/lib/data-fields/date-field/abstract-date-field.component.mjs +10 -12
  16. package/esm2020/lib/data-fields/date-field/date-default-field/abstract-date-default-field.component.mjs +29 -0
  17. package/esm2020/lib/data-fields/date-field/models/date-field.mjs +5 -1
  18. package/esm2020/lib/data-fields/date-time-field/abstract-date-time-field.component.mjs +10 -12
  19. package/esm2020/lib/data-fields/date-time-field/date-time-default-field/abstract-date-time-default-field.component.mjs +29 -0
  20. package/esm2020/lib/data-fields/date-time-field/models/date-time-field.mjs +5 -1
  21. package/esm2020/lib/data-fields/enumeration-field/abstract-enumeration-field.component.mjs +4 -1
  22. package/esm2020/lib/data-fields/enumeration-field/enumeration-autocomplete-dynamic-field/abstract-enumeration-autocomplete-dynamic-field.component.mjs +23 -20
  23. package/esm2020/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/abstract-enumeration-autocomplete-select-field.component.mjs +20 -21
  24. package/esm2020/lib/data-fields/enumeration-field/enumeration-icon-field/abstract-enumeration-icon-field.component.mjs +26 -19
  25. package/esm2020/lib/data-fields/enumeration-field/enumeration-list-field/abstract-enumeration-list-field.component.mjs +16 -12
  26. package/esm2020/lib/data-fields/enumeration-field/enumeration-select-field/abstract-enumeration-select-field.component.mjs +16 -12
  27. package/esm2020/lib/data-fields/enumeration-field/enumeration-stepper-field/abstract-enumeration-stepper-field.component.mjs +26 -21
  28. package/esm2020/lib/data-fields/enumeration-field/models/enumeration-field.mjs +9 -1
  29. package/esm2020/lib/data-fields/file-field/abstract-file-field.component.mjs +11 -420
  30. package/esm2020/lib/data-fields/file-field/file-default-field/abstract-file-default-field.component.mjs +456 -0
  31. package/esm2020/lib/data-fields/file-field/models/file-field-constants.mjs +5 -0
  32. package/esm2020/lib/data-fields/file-field/models/file-field.mjs +6 -1
  33. package/esm2020/lib/data-fields/file-list-field/abstract-file-list-field.component.mjs +11 -278
  34. package/esm2020/lib/data-fields/file-list-field/file-list-default-field/abstract-file-list-default-field.component.mjs +304 -0
  35. package/esm2020/lib/data-fields/file-list-field/models/file-list-field.mjs +6 -1
  36. package/esm2020/lib/data-fields/filter-field/abstract-filter-field-tab-view-content.component.mjs +4 -4
  37. package/esm2020/lib/data-fields/filter-field/abstract-filter-field-tab-view.component.mjs +4 -4
  38. package/esm2020/lib/data-fields/filter-field/abstract-filter-field.component.mjs +8 -20
  39. package/esm2020/lib/data-fields/filter-field/filter-default-field/abstract-filter-default-field.component.mjs +38 -0
  40. package/esm2020/lib/data-fields/filter-field/models/filter-field.mjs +5 -1
  41. package/esm2020/lib/data-fields/i18n-field/abstract-i18n-errors.component.mjs +18 -16
  42. package/esm2020/lib/data-fields/i18n-field/abstract-i18n-field.component.mjs +4 -1
  43. package/esm2020/lib/data-fields/i18n-field/i18n-divider-field/abstract-i18n-divider-field.component.mjs +24 -20
  44. package/esm2020/lib/data-fields/i18n-field/i18n-text-field/abstract-i18n-text-field.component.mjs +35 -32
  45. package/esm2020/lib/data-fields/i18n-field/models/i18n-field.mjs +6 -2
  46. package/esm2020/lib/data-fields/models/abstract-data-field-component.mjs +4 -1
  47. package/esm2020/lib/data-fields/models/abstract-data-field.mjs +14 -2
  48. package/esm2020/lib/data-fields/models/component.mjs +21 -2
  49. package/esm2020/lib/data-fields/models/data-field-portal-data-injection-token.mjs +3 -0
  50. package/esm2020/lib/data-fields/models/update-strategy.mjs +7 -0
  51. package/esm2020/lib/data-fields/multichoice-field/abstract-multichoice-field.component.mjs +4 -1
  52. package/esm2020/lib/data-fields/multichoice-field/models/multichoice-field.mjs +9 -1
  53. package/esm2020/lib/data-fields/multichoice-field/multichoice-autocomplete-field/abstract-multichoice-autocomplete-field-component.component.mjs +30 -30
  54. package/esm2020/lib/data-fields/multichoice-field/multichoice-list-field/abstract-multichoice-list-field.component.mjs +16 -12
  55. package/esm2020/lib/data-fields/multichoice-field/multichoice-select-field/abstract-multichoice-select-field.component.mjs +16 -12
  56. package/esm2020/lib/data-fields/number-field/abstract-number-errors.component.mjs +17 -15
  57. package/esm2020/lib/data-fields/number-field/abstract-number-field.component.mjs +4 -1
  58. package/esm2020/lib/data-fields/number-field/currency-number-field/abstract-currency-number-field.component.mjs +21 -15
  59. package/esm2020/lib/data-fields/number-field/models/number-field.mjs +5 -1
  60. package/esm2020/lib/data-fields/number-field/number-default-field/abstract-default-number-field.component.mjs +12 -6
  61. package/esm2020/lib/data-fields/public-api.mjs +17 -2
  62. package/esm2020/lib/data-fields/task-ref-field/abstract-task-ref-field.component.mjs +10 -116
  63. package/esm2020/lib/data-fields/task-ref-field/model/task-ref-field.mjs +5 -1
  64. package/esm2020/lib/data-fields/task-ref-field/task-ref-dashboard-field/abstract-task-ref-dashboard-field.component.mjs +130 -0
  65. package/esm2020/lib/data-fields/task-ref-field/task-ref-list-field/abstract-task-ref-list-field.component.mjs +54 -0
  66. package/esm2020/lib/data-fields/text-field/abstract-dashboard-text-field.component.mjs +14 -14
  67. package/esm2020/lib/data-fields/text-field/abstract-text-errors.component.mjs +23 -3
  68. package/esm2020/lib/data-fields/text-field/dashboard-bar-chart-text-field/abstract-dashboard-bar-chart-text-field.component.mjs +12 -6
  69. package/esm2020/lib/data-fields/text-field/dashboard-iframe-text-field/abstract-dashboard-iframe-text-field.component.mjs +12 -6
  70. package/esm2020/lib/data-fields/text-field/dashboard-line-chart-text-field/abstract-dashboard-line-chart-text-field.component.mjs +12 -6
  71. package/esm2020/lib/data-fields/text-field/dashboard-pie-chart-text-field/abstract-dashboard-pie-chart-text-field.component.mjs +12 -6
  72. package/esm2020/lib/data-fields/text-field/dashboard-portal-text-field/abstract-dashboard-portal-text-field.component.mjs +12 -6
  73. package/esm2020/lib/data-fields/text-field/html-textarea-field/abstract-html-textarea-field.component.mjs +16 -16
  74. package/esm2020/lib/data-fields/text-field/models/text-field.mjs +8 -4
  75. package/esm2020/lib/data-fields/text-field/password-text-field/abstract-password-text-field.component.mjs +14 -14
  76. package/esm2020/lib/data-fields/text-field/rich-textarea-field/abstract-rich-textarea-field.component.mjs +14 -14
  77. package/esm2020/lib/data-fields/text-field/simple-text-field/abstract-simple-text-field.component.mjs +14 -14
  78. package/esm2020/lib/data-fields/text-field/textarea-field/abstract-textarea-field.component.mjs +17 -17
  79. package/esm2020/lib/data-fields/time-instance-abstract-field/abstract-time-instance-field.component.mjs +12 -12
  80. package/esm2020/lib/data-fields/user-field/abstract-user-field.component.mjs +7 -39
  81. package/esm2020/lib/data-fields/user-field/models/user-field.mjs +5 -1
  82. package/esm2020/lib/data-fields/user-field/user-default-field/abstract-user-default-field.component.mjs +70 -0
  83. package/esm2020/lib/data-fields/user-list-field/abstract-user-list-field.component.mjs +7 -45
  84. package/esm2020/lib/data-fields/user-list-field/models/user-list-field.mjs +5 -1
  85. package/esm2020/lib/data-fields/user-list-field/user-list-default-field/abstract-user-list-default-field.component.mjs +60 -0
  86. package/esm2020/lib/dialog/injection-tokens.mjs +10 -0
  87. package/esm2020/lib/dialog/public-api.mjs +2 -1
  88. package/esm2020/lib/filter/models/task-search-request-body.mjs +1 -1
  89. package/esm2020/lib/filter/user-filters.service.mjs +22 -15
  90. package/esm2020/lib/impersonation/services/impersonation-user-select.service.mjs +24 -17
  91. package/esm2020/lib/panel/workflow-panel/abstract-workflow-panel.component.mjs +6 -2
  92. package/esm2020/lib/registry/component-registry.service.mjs +38 -0
  93. package/esm2020/lib/registry/public-api.mjs +2 -0
  94. package/esm2020/lib/side-menu/content-components/public-api.mjs +2 -1
  95. package/esm2020/lib/task-content/field-component-resolver/abstract-field-component-resolver.component.mjs +24 -5
  96. package/esm2020/lib/task-content/model/field-type-resource.mjs +2 -1
  97. package/esm2020/lib/task-content/services/field-converter.service.mjs +4 -1
  98. package/esm2020/lib/task-content/task-content/abstract-task-content.component.mjs +20 -7
  99. package/esm2020/lib/view/case-view/service/case-view-service.mjs +20 -15
  100. package/esm2020/lib/view/workflow-view/abstract-workflow-view.component.mjs +12 -7
  101. package/esm2020/public-api.mjs +2 -1
  102. package/fesm2015/netgrif-components-core.mjs +1771 -961
  103. package/fesm2015/netgrif-components-core.mjs.map +1 -1
  104. package/fesm2020/netgrif-components-core.mjs +1675 -957
  105. package/fesm2020/netgrif-components-core.mjs.map +1 -1
  106. package/lib/data-fields/base-component/abstract-base-data-field.component.d.ts +18 -0
  107. package/lib/data-fields/boolean-field/abstract-boolean-field.component.d.ts +5 -7
  108. package/lib/data-fields/boolean-field/boolean-default-field/abstract-boolean-default-field.component.d.ts +14 -0
  109. package/lib/data-fields/boolean-field/models/boolean-field.d.ts +3 -0
  110. package/lib/data-fields/button-field/abstract-button-field.component.d.ts +5 -16
  111. package/lib/data-fields/button-field/button-default-field/abstract-button-default-field.component.d.ts +23 -0
  112. package/lib/data-fields/button-field/models/button-field.d.ts +1 -0
  113. package/lib/data-fields/case-ref-field/case-ref-default/case-ref-default.component.d.ts +16 -0
  114. package/lib/data-fields/case-ref-field/model/case-ref-field.d.ts +9 -0
  115. package/lib/data-fields/case-ref-field/model/case-ref-injection-tokens.d.ts +3 -0
  116. package/lib/data-fields/data-field-template/abstract-data-field-template.component.d.ts +22 -3
  117. package/lib/data-fields/date-field/abstract-date-field.component.d.ts +7 -7
  118. package/lib/data-fields/date-field/date-default-field/abstract-date-default-field.component.d.ts +12 -0
  119. package/lib/data-fields/date-field/models/date-field.d.ts +1 -0
  120. package/lib/data-fields/date-time-field/abstract-date-time-field.component.d.ts +7 -7
  121. package/lib/data-fields/date-time-field/date-time-default-field/abstract-date-time-default-field.component.d.ts +12 -0
  122. package/lib/data-fields/date-time-field/models/date-time-field.d.ts +1 -0
  123. package/lib/data-fields/enumeration-field/abstract-enumeration-field.component.d.ts +3 -0
  124. package/lib/data-fields/enumeration-field/enumeration-autocomplete-dynamic-field/abstract-enumeration-autocomplete-dynamic-field.component.d.ts +8 -10
  125. package/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/abstract-enumeration-autocomplete-select-field.component.d.ts +6 -10
  126. package/lib/data-fields/enumeration-field/enumeration-icon-field/abstract-enumeration-icon-field.component.d.ts +9 -9
  127. package/lib/data-fields/enumeration-field/enumeration-list-field/abstract-enumeration-list-field.component.d.ts +6 -8
  128. package/lib/data-fields/enumeration-field/enumeration-select-field/abstract-enumeration-select-field.component.d.ts +6 -8
  129. package/lib/data-fields/enumeration-field/enumeration-stepper-field/abstract-enumeration-stepper-field.component.d.ts +8 -9
  130. package/lib/data-fields/enumeration-field/models/enumeration-field.d.ts +3 -0
  131. package/lib/data-fields/file-field/abstract-file-field.component.d.ts +9 -147
  132. package/lib/data-fields/file-field/file-default-field/abstract-file-default-field.component.d.ts +151 -0
  133. package/lib/data-fields/file-field/models/file-field-constants.d.ts +4 -0
  134. package/lib/data-fields/file-field/models/file-field.d.ts +1 -0
  135. package/lib/data-fields/file-list-field/abstract-file-list-field.component.d.ts +8 -71
  136. package/lib/data-fields/file-list-field/file-list-default-field/abstract-file-list-default-field.component.d.ts +76 -0
  137. package/lib/data-fields/file-list-field/models/file-list-field.d.ts +1 -0
  138. package/lib/data-fields/filter-field/abstract-filter-field-tab-view-content.component.d.ts +3 -3
  139. package/lib/data-fields/filter-field/abstract-filter-field-tab-view.component.d.ts +3 -3
  140. package/lib/data-fields/filter-field/abstract-filter-field.component.d.ts +6 -11
  141. package/lib/data-fields/filter-field/filter-default-field/abstract-filter-default-field.component.d.ts +18 -0
  142. package/lib/data-fields/filter-field/models/filter-field.d.ts +1 -0
  143. package/lib/data-fields/i18n-field/abstract-i18n-errors.component.d.ts +6 -9
  144. package/lib/data-fields/i18n-field/abstract-i18n-field.component.d.ts +3 -0
  145. package/lib/data-fields/i18n-field/i18n-divider-field/abstract-i18n-divider-field.component.d.ts +6 -8
  146. package/lib/data-fields/i18n-field/i18n-text-field/abstract-i18n-text-field.component.d.ts +5 -8
  147. package/lib/data-fields/i18n-field/models/i18n-field.d.ts +1 -0
  148. package/lib/data-fields/models/abstract-data-field-component.d.ts +1 -0
  149. package/lib/data-fields/models/abstract-data-field.d.ts +9 -0
  150. package/lib/data-fields/models/component.d.ts +19 -0
  151. package/lib/data-fields/models/data-field-portal-data-injection-token.d.ts +13 -0
  152. package/lib/data-fields/models/update-strategy.d.ts +6 -0
  153. package/lib/data-fields/multichoice-field/abstract-multichoice-field.component.d.ts +3 -0
  154. package/lib/data-fields/multichoice-field/models/multichoice-field.d.ts +3 -0
  155. package/lib/data-fields/multichoice-field/multichoice-autocomplete-field/abstract-multichoice-autocomplete-field-component.component.d.ts +6 -9
  156. package/lib/data-fields/multichoice-field/multichoice-list-field/abstract-multichoice-list-field.component.d.ts +6 -7
  157. package/lib/data-fields/multichoice-field/multichoice-select-field/abstract-multichoice-select-field.component.d.ts +6 -8
  158. package/lib/data-fields/number-field/abstract-number-errors.component.d.ts +6 -9
  159. package/lib/data-fields/number-field/abstract-number-field.component.d.ts +3 -0
  160. package/lib/data-fields/number-field/currency-number-field/abstract-currency-number-field.component.d.ts +4 -2
  161. package/lib/data-fields/number-field/models/number-field.d.ts +1 -0
  162. package/lib/data-fields/number-field/number-default-field/abstract-default-number-field.component.d.ts +4 -2
  163. package/lib/data-fields/public-api.d.ts +16 -1
  164. package/lib/data-fields/task-ref-field/abstract-task-ref-field.component.d.ts +6 -13
  165. package/lib/data-fields/task-ref-field/model/task-ref-field.d.ts +1 -0
  166. package/lib/data-fields/task-ref-field/task-ref-dashboard-field/abstract-task-ref-dashboard-field.component.d.ts +20 -0
  167. package/lib/data-fields/task-ref-field/task-ref-list-field/abstract-task-ref-list-field.component.d.ts +16 -0
  168. package/lib/data-fields/text-field/abstract-dashboard-text-field.component.d.ts +5 -9
  169. package/lib/data-fields/text-field/abstract-text-errors.component.d.ts +7 -2
  170. package/lib/data-fields/text-field/dashboard-bar-chart-text-field/abstract-dashboard-bar-chart-text-field.component.d.ts +4 -2
  171. package/lib/data-fields/text-field/dashboard-iframe-text-field/abstract-dashboard-iframe-text-field.component.d.ts +4 -2
  172. package/lib/data-fields/text-field/dashboard-line-chart-text-field/abstract-dashboard-line-chart-text-field.component.d.ts +4 -2
  173. package/lib/data-fields/text-field/dashboard-pie-chart-text-field/abstract-dashboard-pie-chart-text-field.component.d.ts +4 -2
  174. package/lib/data-fields/text-field/dashboard-portal-text-field/abstract-dashboard-portal-text-field.component.d.ts +4 -2
  175. package/lib/data-fields/text-field/html-textarea-field/abstract-html-textarea-field.component.d.ts +5 -9
  176. package/lib/data-fields/text-field/models/text-field.d.ts +3 -2
  177. package/lib/data-fields/text-field/password-text-field/abstract-password-text-field.component.d.ts +5 -9
  178. package/lib/data-fields/text-field/rich-textarea-field/abstract-rich-textarea-field.component.d.ts +5 -9
  179. package/lib/data-fields/text-field/simple-text-field/abstract-simple-text-field.component.d.ts +5 -9
  180. package/lib/data-fields/text-field/textarea-field/abstract-textarea-field.component.d.ts +6 -9
  181. package/lib/data-fields/time-instance-abstract-field/abstract-time-instance-field.component.d.ts +6 -5
  182. package/lib/data-fields/user-field/abstract-user-field.component.d.ts +5 -27
  183. package/lib/data-fields/user-field/models/user-field.d.ts +1 -0
  184. package/lib/data-fields/user-field/user-default-field/abstract-user-default-field.component.d.ts +34 -0
  185. package/lib/data-fields/user-list-field/abstract-user-list-field.component.d.ts +5 -25
  186. package/lib/data-fields/user-list-field/models/user-list-field.d.ts +1 -0
  187. package/lib/data-fields/user-list-field/user-list-default-field/abstract-user-list-default-field.component.d.ts +24 -0
  188. package/lib/dialog/injection-tokens.d.ts +10 -0
  189. package/lib/dialog/public-api.d.ts +1 -0
  190. package/lib/filter/models/task-search-request-body.d.ts +6 -0
  191. package/lib/filter/user-filters.service.d.ts +4 -2
  192. package/lib/impersonation/services/impersonation-user-select.service.d.ts +3 -3
  193. package/lib/panel/workflow-panel/abstract-workflow-panel.component.d.ts +3 -1
  194. package/lib/{data-fields/text-field/dashboard-portal-text-field/dashboard-portal-component-registry.service.d.ts → registry/component-registry.service.d.ts} +6 -5
  195. package/lib/registry/public-api.d.ts +1 -0
  196. package/lib/side-menu/content-components/public-api.d.ts +1 -0
  197. package/lib/task-content/field-component-resolver/abstract-field-component-resolver.component.d.ts +7 -3
  198. package/lib/task-content/model/field-type-resource.d.ts +1 -0
  199. package/lib/task-content/task-content/abstract-task-content.component.d.ts +5 -1
  200. package/lib/view/case-view/service/case-view-service.d.ts +3 -3
  201. package/lib/view/workflow-view/abstract-workflow-view.component.d.ts +3 -3
  202. package/package.json +1 -1
  203. package/public-api.d.ts +1 -0
  204. package/src/assets/i18n/de.json +1 -0
  205. package/src/assets/i18n/en.json +1 -0
  206. package/src/assets/i18n/sk.json +1 -0
  207. package/esm2020/lib/data-fields/text-field/dashboard-portal-text-field/dashboard-portal-component-registry.service.mjs +0 -35
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { NgModule, Injectable, Component, Inject, InjectionToken, Optional, Input, ViewChild, ViewChildren, TemplateRef, Type, Injector, SkipSelf, EventEmitter, Output, Pipe, Directive } from '@angular/core';
2
+ import { NgModule, Injectable, Component, Inject, InjectionToken, Optional, Input, Injector, ViewChild, ViewChildren, SkipSelf, EventEmitter, Output, TemplateRef, Type, Pipe, Directive } from '@angular/core';
3
3
  import * as i5 from '@angular/common';
4
4
  import { CommonModule, registerLocaleData, CurrencyPipe, getCurrencySymbol } from '@angular/common';
5
5
  import { DragDropModule } from '@angular/cdk/drag-drop';
@@ -7,10 +7,10 @@ import { A11yModule } from '@angular/cdk/a11y';
7
7
  import { CdkStepperModule } from '@angular/cdk/stepper';
8
8
  import { CdkTableModule } from '@angular/cdk/table';
9
9
  import { CdkTreeModule, NestedTreeControl } from '@angular/cdk/tree';
10
- import { PortalModule, TemplatePortal, ComponentPortal } from '@angular/cdk/portal';
10
+ import { PortalModule, ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
11
11
  import { ScrollingModule, CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
12
12
  import * as i1$4 from '@angular/forms';
13
- import { FormsModule, ReactiveFormsModule, Validators, FormControl } from '@angular/forms';
13
+ import { FormsModule, ReactiveFormsModule, FormControl, Validators } from '@angular/forms';
14
14
  import { FlexLayoutModule, FlexModule } from '@angular/flex-layout';
15
15
  import { MatMomentDateModule, MomentDateAdapter } from '@angular/material-moment-adapter';
16
16
  import { MatAutocompleteModule } from '@angular/material/autocomplete';
@@ -1007,6 +1007,7 @@ var dataField$2 = {
1007
1007
  noFile: "No File",
1008
1008
  clickToUpload: "Click to upload file",
1009
1009
  clickToDownload: "Click to download {{fileName}}",
1010
+ clickToOpen: "Click to view file content",
1010
1011
  clickToDelete: "Click to delete file"
1011
1012
  },
1012
1013
  i18n: {
@@ -1523,6 +1524,7 @@ var dataField$1 = {
1523
1524
  noFile: "Žiadny súbor",
1524
1525
  clickToUpload: "Kliknutím nahrajte súbor",
1525
1526
  clickToDownload: "Kliknutím stiahnite súbor {{fileName}}",
1527
+ clickToOpen: "Kliknutím zobrazíte obsah súboru",
1526
1528
  clickToDelete: "Kliknutím vymažte súbor"
1527
1529
  },
1528
1530
  i18n: {
@@ -2039,6 +2041,7 @@ var dataField = {
2039
2041
  noFile: "keine Datei",
2040
2042
  clickToUpload: "Klicken Sie, um eine Datei hochzuladen",
2041
2043
  clickToDownload: "Klicken Sie, um {{fileName}} herunterzuladen",
2044
+ clickToOpen: "Klicken Sie hier, um den Dateiinhalt anzuzeigen",
2042
2045
  clickToDelete: "Klicken Sie, um die Datei zu löschen"
2043
2046
  },
2044
2047
  i18n: {
@@ -3871,6 +3874,176 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
3871
3874
  }]
3872
3875
  }] });
3873
3876
 
3877
+ const DATA_FIELD_PORTAL_DATA = new InjectionToken('DataFieldPortalData');
3878
+
3879
+ class AbstractBaseDataFieldComponent {
3880
+ constructor(dataFieldPortalData) {
3881
+ if (!!dataFieldPortalData) {
3882
+ this.dataField = dataFieldPortalData.dataField;
3883
+ this.formControlRef = dataFieldPortalData.formControlRef;
3884
+ this.showLargeLayout = dataFieldPortalData.showLargeLayout;
3885
+ if (!this.dataField.initialized) {
3886
+ this.formControlRef = new FormControl('', { updateOn: this.dataField.getUpdateOnStrategy() });
3887
+ this.dataField.registerFormControl(this.formControlRef);
3888
+ }
3889
+ }
3890
+ }
3891
+ ngOnDestroy() {
3892
+ this.dataField.disconnectFormControl();
3893
+ }
3894
+ checkPropertyInComponent(property) {
3895
+ var _a, _b;
3896
+ return !!((_b = (_a = this.dataField) === null || _a === void 0 ? void 0 : _a.component) === null || _b === void 0 ? void 0 : _b.properties)
3897
+ && property in this.dataField.component.properties;
3898
+ }
3899
+ hasTitle() {
3900
+ return this.dataField.title !== undefined && this.dataField.title !== '';
3901
+ }
3902
+ hasHint() {
3903
+ return this.dataField.description !== undefined && this.dataField.description !== '';
3904
+ }
3905
+ }
3906
+ AbstractBaseDataFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractBaseDataFieldComponent, deps: [{ token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
3907
+ AbstractBaseDataFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractBaseDataFieldComponent, selector: "ncc-base-data-field", inputs: { dataField: "dataField", formControlRef: "formControlRef", showLargeLayout: "showLargeLayout" }, ngImport: i0, template: '', isInline: true });
3908
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractBaseDataFieldComponent, decorators: [{
3909
+ type: Component,
3910
+ args: [{
3911
+ selector: 'ncc-base-data-field',
3912
+ template: ''
3913
+ }]
3914
+ }], ctorParameters: function () {
3915
+ return [{ type: undefined, decorators: [{
3916
+ type: Optional
3917
+ }, {
3918
+ type: Inject,
3919
+ args: [DATA_FIELD_PORTAL_DATA]
3920
+ }] }];
3921
+ }, propDecorators: { dataField: [{
3922
+ type: Input
3923
+ }], formControlRef: [{
3924
+ type: Input
3925
+ }], showLargeLayout: [{
3926
+ type: Input
3927
+ }] } });
3928
+
3929
+ /**
3930
+ * Whether invalid data values should be sent to backend or not. Invalid data is NOT set to backend by default.
3931
+ * You can use this InjectionToken to override this behavior in a specific application scope.
3932
+ *
3933
+ * This token is ultimately injected by individual data fields, so this option can be in theory applied at a very low level of granularity.
3934
+ * The library implementation doesn't allow access to such low level components, so a custom implementation is necessary to provide this
3935
+ * token at such low level. Applying the token to individual task views is achievable with the default implementation.
3936
+ */
3937
+ const NAE_INFORM_ABOUT_INVALID_DATA = new InjectionToken('NaeInformAboutInvalidData');
3938
+
3939
+ /**
3940
+ * Holds the common functionality for all DataFieldComponents.
3941
+ */
3942
+ class AbstractDataFieldComponent {
3943
+ constructor(_informAboutInvalidData) {
3944
+ this._informAboutInvalidData = _informAboutInvalidData;
3945
+ this.taskOffset = 0;
3946
+ this._formControl = new FormControl('', { updateOn: 'blur' });
3947
+ }
3948
+ /**
3949
+ * Registers the {@link FormControl} to the provided data field.
3950
+ *
3951
+ * See [DataField.registerFormControl]{@link DataField#registerFormControl} form more information.
3952
+ */
3953
+ ngOnInit() {
3954
+ this.dataField.registerFormControl(this._formControl);
3955
+ this.dataField.sendInvalidValues = this._informAboutInvalidData;
3956
+ }
3957
+ ngOnDestroy() {
3958
+ this.dataField.disconnectFormControl();
3959
+ }
3960
+ /**
3961
+ * The [FormControl]{@link https://angular.io/api/forms/FormControl} object that should be used to control any rendered forms.
3962
+ */
3963
+ get formControl() {
3964
+ return this._formControl;
3965
+ }
3966
+ hasTitle() {
3967
+ return this.dataField.title !== undefined && this.dataField.title !== '';
3968
+ }
3969
+ }
3970
+ AbstractDataFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDataFieldComponent, deps: [{ token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
3971
+ AbstractDataFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractDataFieldComponent, selector: "ncc-abstract-datafield", inputs: { dataField: "dataField", taskOffset: "taskOffset" }, ngImport: i0, template: '', isInline: true });
3972
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDataFieldComponent, decorators: [{
3973
+ type: Component,
3974
+ args: [{
3975
+ selector: 'ncc-abstract-datafield',
3976
+ template: ''
3977
+ }]
3978
+ }], ctorParameters: function () {
3979
+ return [{ type: undefined, decorators: [{
3980
+ type: Optional
3981
+ }, {
3982
+ type: Inject,
3983
+ args: [NAE_INFORM_ABOUT_INVALID_DATA]
3984
+ }] }];
3985
+ }, propDecorators: { dataField: [{
3986
+ type: Input
3987
+ }], taskOffset: [{
3988
+ type: Input
3989
+ }] } });
3990
+
3991
+ /**
3992
+ * @deprecated
3993
+ * */
3994
+ class AbstractBooleanFieldComponent extends AbstractDataFieldComponent {
3995
+ constructor(informAboutInvalidData) {
3996
+ super(informAboutInvalidData);
3997
+ this._formControl = new FormControl('');
3998
+ }
3999
+ }
4000
+ AbstractBooleanFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractBooleanFieldComponent, deps: [{ token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4001
+ AbstractBooleanFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractBooleanFieldComponent, selector: "ncc-abstract-boolean-field", inputs: { dataField: "dataField" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
4002
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractBooleanFieldComponent, decorators: [{
4003
+ type: Component,
4004
+ args: [{
4005
+ selector: 'ncc-abstract-boolean-field',
4006
+ template: ''
4007
+ }]
4008
+ }], ctorParameters: function () {
4009
+ return [{ type: undefined, decorators: [{
4010
+ type: Optional
4011
+ }, {
4012
+ type: Inject,
4013
+ args: [NAE_INFORM_ABOUT_INVALID_DATA]
4014
+ }] }];
4015
+ }, propDecorators: { dataField: [{
4016
+ type: Input
4017
+ }] } });
4018
+
4019
+ const DEFAULT = "default";
4020
+ var ComponentPrefixes;
4021
+ (function (ComponentPrefixes) {
4022
+ ComponentPrefixes["BOOLEAN"] = "boolean-";
4023
+ ComponentPrefixes["BUTTON"] = "button-";
4024
+ ComponentPrefixes["DATE"] = "date-";
4025
+ ComponentPrefixes["DATE_TIME"] = "date-time-";
4026
+ ComponentPrefixes["ENUMERATION"] = "enumeration-";
4027
+ ComponentPrefixes["FILE"] = "file-";
4028
+ ComponentPrefixes["FILE_LIST"] = "file-list-";
4029
+ ComponentPrefixes["FILTER"] = "filter-";
4030
+ ComponentPrefixes["I18N"] = "i18n-";
4031
+ ComponentPrefixes["MULTICHOICE"] = "multichoice-";
4032
+ ComponentPrefixes["NUMBER"] = "number-";
4033
+ ComponentPrefixes["TASK_REF"] = "task-ref-";
4034
+ ComponentPrefixes["CASE_REF"] = "case-ref-";
4035
+ ComponentPrefixes["TEXT"] = "text-";
4036
+ ComponentPrefixes["USER"] = "user-";
4037
+ ComponentPrefixes["USER_LIST"] = "user-list-";
4038
+ })(ComponentPrefixes || (ComponentPrefixes = {}));
4039
+
4040
+ var UpdateStrategy;
4041
+ (function (UpdateStrategy) {
4042
+ UpdateStrategy["CHANGE"] = "change";
4043
+ UpdateStrategy["BLUR"] = "blur";
4044
+ UpdateStrategy["SUBMIT"] = "submit";
4045
+ })(UpdateStrategy || (UpdateStrategy = {}));
4046
+
3874
4047
  /**
3875
4048
  * Holds the logic common to all data field Model objects.
3876
4049
  * @typeparam T - type of the `value` property of the data field
@@ -4070,13 +4243,22 @@ class DataField {
4070
4243
  set input(value) {
4071
4244
  this._input = value;
4072
4245
  }
4246
+ get formControlRef() {
4247
+ return this._formControlRef;
4248
+ }
4249
+ set formControlRef(formControl) {
4250
+ this._formControlRef = formControl;
4251
+ }
4252
+ getUpdateOnStrategy() {
4253
+ return UpdateStrategy.BLUR;
4254
+ }
4073
4255
  /**
4074
4256
  * This function resolve type of component for HTML
4075
4257
  * @returns type of component in string
4076
4258
  */
4077
4259
  getComponentType() {
4078
4260
  var _a, _b;
4079
- return (_b = (_a = this.component) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : '';
4261
+ return (_b = (_a = this.component) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : DEFAULT;
4080
4262
  }
4081
4263
  destroy() {
4082
4264
  this._value.complete();
@@ -4092,6 +4274,7 @@ class DataField {
4092
4274
  throw new Error('Data field can be initialized only once!'
4093
4275
  + ' Disconnect the previous form control before initializing the data field again!');
4094
4276
  }
4277
+ this.formControlRef = formControl;
4095
4278
  formControl.setValidators(this.resolveFormControlValidators());
4096
4279
  this._formControlValueSubscription = formControl.valueChanges.pipe(distinctUntilChanged(this.valueEquality)).subscribe(newValue => {
4097
4280
  this._valid = this._determineFormControlValidity(formControl);
@@ -4300,6 +4483,12 @@ class BooleanField extends DataField {
4300
4483
  constructor(stringId, title, value, behavior, placeholder, description, layout, validations, component, parentTaskId) {
4301
4484
  super(stringId, title, value, behavior, placeholder, description, layout, validations, component, parentTaskId);
4302
4485
  }
4486
+ getTypedComponentType() {
4487
+ return ComponentPrefixes.BOOLEAN + this.getComponentType();
4488
+ }
4489
+ getUpdateOnStrategy() {
4490
+ return UpdateStrategy.CHANGE;
4491
+ }
4303
4492
  resolveValidations() {
4304
4493
  const result = [];
4305
4494
  this.validations.forEach(item => {
@@ -4314,76 +4503,16 @@ class BooleanField extends DataField {
4314
4503
  }
4315
4504
  }
4316
4505
 
4317
- /**
4318
- * Whether invalid data values should be sent to backend or not. Invalid data is NOT set to backend by default.
4319
- * You can use this InjectionToken to override this behavior in a specific application scope.
4320
- *
4321
- * This token is ultimately injected by individual data fields, so this option can be in theory applied at a very low level of granularity.
4322
- * The library implementation doesn't allow access to such low level components, so a custom implementation is necessary to provide this
4323
- * token at such low level. Applying the token to individual task views is achievable with the default implementation.
4324
- */
4325
- const NAE_INFORM_ABOUT_INVALID_DATA = new InjectionToken('NaeInformAboutInvalidData');
4326
-
4327
- /**
4328
- * Holds the common functionality for all DataFieldComponents.
4329
- */
4330
- class AbstractDataFieldComponent {
4331
- constructor(_informAboutInvalidData) {
4332
- this._informAboutInvalidData = _informAboutInvalidData;
4333
- this.taskOffset = 0;
4334
- this._formControl = new FormControl('', { updateOn: 'blur' });
4335
- }
4336
- /**
4337
- * Registers the {@link FormControl} to the provided data field.
4338
- *
4339
- * See [DataField.registerFormControl]{@link DataField#registerFormControl} form more information.
4340
- */
4341
- ngOnInit() {
4342
- this.dataField.registerFormControl(this._formControl);
4343
- this.dataField.sendInvalidValues = this._informAboutInvalidData;
4344
- }
4345
- ngOnDestroy() {
4346
- this.dataField.disconnectFormControl();
4347
- }
4348
- /**
4349
- * The [FormControl]{@link https://angular.io/api/forms/FormControl} object that should be used to control any rendered forms.
4350
- */
4351
- get formControl() {
4352
- return this._formControl;
4353
- }
4354
- }
4355
- AbstractDataFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDataFieldComponent, deps: [{ token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4356
- AbstractDataFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractDataFieldComponent, selector: "ncc-abstract-datafield", inputs: { dataField: "dataField", taskOffset: "taskOffset" }, ngImport: i0, template: '', isInline: true });
4357
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDataFieldComponent, decorators: [{
4358
- type: Component,
4359
- args: [{
4360
- selector: 'ncc-abstract-datafield',
4361
- template: ''
4362
- }]
4363
- }], ctorParameters: function () {
4364
- return [{ type: undefined, decorators: [{
4365
- type: Optional
4366
- }, {
4367
- type: Inject,
4368
- args: [NAE_INFORM_ABOUT_INVALID_DATA]
4369
- }] }];
4370
- }, propDecorators: { dataField: [{
4371
- type: Input
4372
- }], taskOffset: [{
4373
- type: Input
4374
- }] } });
4375
-
4376
- class AbstractBooleanFieldComponent extends AbstractDataFieldComponent {
4377
- constructor(_translate, informAboutInvalidData) {
4378
- super(informAboutInvalidData);
4506
+ class AbstractBooleanDefaultFieldComponent extends AbstractBaseDataFieldComponent {
4507
+ constructor(_translate, dataFieldPortalData) {
4508
+ super(dataFieldPortalData);
4379
4509
  this._translate = _translate;
4380
- this._formControl = new FormControl('');
4381
4510
  }
4382
4511
  getErrorMessage() {
4383
- if (this.formControl.hasError(BooleanFieldValidation.REQUIRED)) {
4512
+ if (this.formControlRef.hasError(BooleanFieldValidation.REQUIRED)) {
4384
4513
  return this._translate.instant('dataField.validations.required');
4385
4514
  }
4386
- else if (this.formControl.hasError(BooleanFieldValidation.REQUIRED_TRUE)) {
4515
+ else if (this.formControlRef.hasError(BooleanFieldValidation.REQUIRED_TRUE)) {
4387
4516
  return this.resolveErrorMessage(this.dataField, BooleanFieldValidation.REQUIRED_TRUE, this._translate.instant('dataField.validations.requiredTrue'));
4388
4517
  }
4389
4518
  return '';
@@ -4399,17 +4528,42 @@ class AbstractBooleanFieldComponent extends AbstractDataFieldComponent {
4399
4528
  return generalMessage;
4400
4529
  }
4401
4530
  }
4402
- AbstractBooleanFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractBooleanFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4403
- AbstractBooleanFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractBooleanFieldComponent, selector: "ncc-abstract-boolean-field", inputs: { dataField: "dataField" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
4404
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractBooleanFieldComponent, decorators: [{
4531
+ AbstractBooleanDefaultFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractBooleanDefaultFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4532
+ AbstractBooleanDefaultFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractBooleanDefaultFieldComponent, selector: "ncc-abstract-boolean-default-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
4533
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractBooleanDefaultFieldComponent, decorators: [{
4405
4534
  type: Component,
4406
4535
  args: [{
4407
- selector: 'ncc-abstract-boolean-field',
4536
+ selector: 'ncc-abstract-boolean-default-field',
4408
4537
  template: ''
4409
4538
  }]
4410
4539
  }], ctorParameters: function () {
4411
4540
  return [{ type: i1$2.TranslateService }, { type: undefined, decorators: [{
4412
4541
  type: Optional
4542
+ }, {
4543
+ type: Inject,
4544
+ args: [DATA_FIELD_PORTAL_DATA]
4545
+ }] }];
4546
+ } });
4547
+
4548
+ /**
4549
+ * @deprecated
4550
+ * */
4551
+ class AbstractButtonFieldComponent extends AbstractDataFieldComponent {
4552
+ constructor(informAboutInvalidData) {
4553
+ super(informAboutInvalidData);
4554
+ }
4555
+ }
4556
+ AbstractButtonFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractButtonFieldComponent, deps: [{ token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4557
+ AbstractButtonFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractButtonFieldComponent, selector: "ncc-abstract-button-field", inputs: { dataField: "dataField" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
4558
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractButtonFieldComponent, decorators: [{
4559
+ type: Component,
4560
+ args: [{
4561
+ selector: 'ncc-abstract-button-field',
4562
+ template: ''
4563
+ }]
4564
+ }], ctorParameters: function () {
4565
+ return [{ type: undefined, decorators: [{
4566
+ type: Optional
4413
4567
  }, {
4414
4568
  type: Inject,
4415
4569
  args: [NAE_INFORM_ABOUT_INVALID_DATA]
@@ -4426,6 +4580,9 @@ class ButtonField extends DataField {
4426
4580
  constructor(stringId, title, behavior, value, placeholder, description, layout, validations, component, parentTaskId) {
4427
4581
  super(stringId, title, (value === undefined) ? 0 : value, behavior, placeholder, description, layout, validations, component, parentTaskId);
4428
4582
  }
4583
+ getTypedComponentType() {
4584
+ return ComponentPrefixes.BUTTON + DEFAULT;
4585
+ }
4429
4586
  }
4430
4587
 
4431
4588
  /** Abstract dialog for all types of dialog components is used for data injection and dialog reference holding. */
@@ -4634,14 +4791,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4634
4791
  }]
4635
4792
  }], ctorParameters: function () { return [{ type: i1$3.MatDialog }]; } });
4636
4793
 
4637
- class AbstractButtonFieldComponent extends AbstractDataFieldComponent {
4638
- constructor(_translate, _dialogService, informAboutInvalidData) {
4639
- super(informAboutInvalidData);
4794
+ class AbstractButtonDefaultFieldComponent extends AbstractBaseDataFieldComponent {
4795
+ constructor(_translate, _dialogService, dataFieldPortalData) {
4796
+ super(dataFieldPortalData);
4640
4797
  this._translate = _translate;
4641
4798
  this._dialogService = _dialogService;
4642
4799
  }
4643
4800
  getErrorMessage() {
4644
- if (this.formControl.hasError(ButtonFieldValidation.REQUIRED)) {
4801
+ if (this.formControlRef.hasError(ButtonFieldValidation.REQUIRED)) {
4645
4802
  return this._translate.instant('dataField.validations.required');
4646
4803
  }
4647
4804
  }
@@ -4656,26 +4813,26 @@ class AbstractButtonFieldComponent extends AbstractDataFieldComponent {
4656
4813
  * This function depends on type of component, if had dialogText provided in component, then its open a dialog with that text
4657
4814
  */
4658
4815
  resolveValue() {
4659
- if (this.dataField.component && this.dataField.component.properties &&
4660
- this.dataField.component.properties.dialogText !== undefined) {
4816
+ var _a, _b, _c, _d;
4817
+ if (!!((_b = (_a = this.dataField.component) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.dialogText) && ((_d = (_c = this.dataField.component) === null || _c === void 0 ? void 0 : _c.properties) === null || _d === void 0 ? void 0 : _d.dialogTitle)) {
4661
4818
  const dialogRef = this._dialogService.openConfirmDialog(this.dataField.component.properties.dialogTitle, this.dataField.component.properties.dialogText, this._translate.instant('dialog.close'), this._translate.instant('dialog.submit'));
4662
4819
  dialogRef.afterClosed().pipe(take(1)).subscribe(result => {
4663
4820
  if (result && result.confirmed) {
4664
- this.formControl.setValue(this.formControl.value + 1);
4821
+ this.formControlRef.setValue(this.formControlRef.value + 1);
4665
4822
  }
4666
4823
  });
4667
4824
  }
4668
4825
  else {
4669
- this.formControl.setValue(this.formControl.value + 1);
4826
+ this.formControlRef.setValue(this.formControlRef.value + 1);
4670
4827
  }
4671
4828
  }
4672
4829
  }
4673
- AbstractButtonFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractButtonFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: DialogService }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4674
- AbstractButtonFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractButtonFieldComponent, selector: "ncc-abstract-button-field", inputs: { dataField: "dataField" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
4675
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractButtonFieldComponent, decorators: [{
4830
+ AbstractButtonDefaultFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractButtonDefaultFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: DialogService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4831
+ AbstractButtonDefaultFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractButtonDefaultFieldComponent, selector: "ncc-abstract-button-default-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
4832
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractButtonDefaultFieldComponent, decorators: [{
4676
4833
  type: Component,
4677
4834
  args: [{
4678
- selector: 'ncc-abstract-button-field',
4835
+ selector: 'ncc-abstract-button-default-field',
4679
4836
  template: ''
4680
4837
  }]
4681
4838
  }], ctorParameters: function () {
@@ -4683,11 +4840,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4683
4840
  type: Optional
4684
4841
  }, {
4685
4842
  type: Inject,
4686
- args: [NAE_INFORM_ABOUT_INVALID_DATA]
4843
+ args: [DATA_FIELD_PORTAL_DATA]
4687
4844
  }] }];
4688
- }, propDecorators: { dataField: [{
4689
- type: Input
4690
- }] } });
4845
+ } });
4691
4846
 
4692
4847
  /**
4693
4848
  * This class wraps a `boolean` variable into an object, so it can be passed by reference rather than by value to other objects.
@@ -4747,6 +4902,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4747
4902
  }]
4748
4903
  }], ctorParameters: function () { return []; } });
4749
4904
 
4905
+ class ComponentRegistryService {
4906
+ constructor() {
4907
+ this.registry = new Map();
4908
+ this.typeRegistry = new Map();
4909
+ }
4910
+ register(component, factory) {
4911
+ this.registry.set(component, factory);
4912
+ }
4913
+ registerType(key, type) {
4914
+ this.typeRegistry.set(key, type);
4915
+ }
4916
+ contains(component) {
4917
+ return this.registry.has(component);
4918
+ }
4919
+ get(component, injector) {
4920
+ if (!this.registry.has(component)) {
4921
+ return undefined;
4922
+ }
4923
+ return this.registry.get(component)(injector);
4924
+ }
4925
+ getType(key) {
4926
+ if (!this.typeRegistry.has(key)) {
4927
+ return undefined;
4928
+ }
4929
+ return this.typeRegistry.get(key);
4930
+ }
4931
+ }
4932
+ ComponentRegistryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ComponentRegistryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4933
+ ComponentRegistryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ComponentRegistryService, providedIn: 'root' });
4934
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ComponentRegistryService, decorators: [{
4935
+ type: Injectable,
4936
+ args: [{
4937
+ providedIn: 'root'
4938
+ }]
4939
+ }], ctorParameters: function () { return []; } });
4940
+
4750
4941
  /**
4751
4942
  * Provides a responsive layout to data fields where their appearance can change based on the width of space they have available.
4752
4943
  *
@@ -4760,9 +4951,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4760
4951
  * See {@link DataField} and {@link TemplateAppearance} for more information.
4761
4952
  */
4762
4953
  class AbstractDataFieldTemplateComponent {
4763
- constructor(_paperView, _config) {
4954
+ constructor(_paperView, _config, _componentRegistry, injector) {
4764
4955
  this._paperView = _paperView;
4765
4956
  this._config = _config;
4957
+ this._componentRegistry = _componentRegistry;
4958
+ this.injector = injector;
4766
4959
  /**
4767
4960
  * If the available space has a width smaller that this breakpoint the datafield will fill 100% of the available space.
4768
4961
  *
@@ -4808,10 +5001,20 @@ class AbstractDataFieldTemplateComponent {
4808
5001
  else {
4809
5002
  this._isNetgrifTemplate = this._isConfiguredNetgrifTemplate;
4810
5003
  }
5004
+ this._componentPortal = this.resolveComponentPortal(this.dataField, this.showLargeLayout, this.dataField.formControlRef, this.additionalFieldProperties);
4811
5005
  }
4812
5006
  get dataField() {
4813
5007
  return this._dataField;
4814
5008
  }
5009
+ get componentPortal() {
5010
+ return this._componentPortal;
5011
+ }
5012
+ get additionalFieldProperties() {
5013
+ return this._additionalFieldProperties;
5014
+ }
5015
+ set additionalFieldProperties(value) {
5016
+ this._additionalFieldProperties = value;
5017
+ }
4815
5018
  /**
4816
5019
  * Function that is called when the Component changes dimension and
4817
5020
  * determines whether the "small" or "large" layout should be displayed.
@@ -4824,6 +5027,29 @@ class AbstractDataFieldTemplateComponent {
4824
5027
  this._showLargeLayout.value = this.evaluateTemplate();
4825
5028
  return this._showLargeLayout.value;
4826
5029
  }
5030
+ hasComponent() {
5031
+ return this._componentRegistry.contains(this.dataField.getTypedComponentType());
5032
+ }
5033
+ resolveComponentPortal(dataField, showLargeLayout, formControlRef, additionalFieldProperties) {
5034
+ if (this.hasComponent()) {
5035
+ const portalInjector = Injector.create({
5036
+ providers: [
5037
+ {
5038
+ provide: DATA_FIELD_PORTAL_DATA,
5039
+ useValue: {
5040
+ dataField: dataField,
5041
+ showLargeLayout: showLargeLayout,
5042
+ formControlRef: formControlRef,
5043
+ additionalFieldProperties
5044
+ }
5045
+ }
5046
+ ],
5047
+ parent: this.injector
5048
+ });
5049
+ return this._componentRegistry.get(this.dataField.getTypedComponentType(), portalInjector);
5050
+ }
5051
+ return undefined;
5052
+ }
4827
5053
  /**
4828
5054
  * @returns `false` if the data field uses the `TemplateAppearance.MATERIAL` and `true` otherwise.
4829
5055
  */
@@ -4836,26 +5062,60 @@ class AbstractDataFieldTemplateComponent {
4836
5062
  isPaperView() {
4837
5063
  return this._paperView.paperView;
4838
5064
  }
5065
+ isNotButton() {
5066
+ return !(this.dataField instanceof ButtonField);
5067
+ }
4839
5068
  }
4840
- AbstractDataFieldTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDataFieldTemplateComponent, deps: [{ token: PaperViewService }, { token: ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
4841
- AbstractDataFieldTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractDataFieldTemplateComponent, selector: "ncc-abstract-datafield-template", inputs: { dataFieldTemplate: "dataFieldTemplate", layoutChangeWidthBreakpoint: "layoutChangeWidthBreakpoint", offset: "offset", dataField: "dataField" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["dataFieldContainer"], descendants: true }], ngImport: i0, template: '', isInline: true });
5069
+ AbstractDataFieldTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDataFieldTemplateComponent, deps: [{ token: PaperViewService }, { token: ConfigurationService }, { token: ComponentRegistryService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
5070
+ AbstractDataFieldTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractDataFieldTemplateComponent, selector: "ncc-abstract-datafield-template", inputs: { dataFieldTemplate: "dataFieldTemplate", layoutChangeWidthBreakpoint: "layoutChangeWidthBreakpoint", offset: "offset", _additionalFieldProperties: "_additionalFieldProperties", dataField: "dataField", additionalFieldProperties: "additionalFieldProperties" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["dataFieldContainer"], descendants: true }], ngImport: i0, template: '', isInline: true });
4842
5071
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDataFieldTemplateComponent, decorators: [{
4843
5072
  type: Component,
4844
5073
  args: [{
4845
5074
  selector: 'ncc-abstract-datafield-template',
4846
5075
  template: ''
4847
5076
  }]
4848
- }], ctorParameters: function () { return [{ type: PaperViewService }, { type: ConfigurationService }]; }, propDecorators: { dataFieldTemplate: [{
5077
+ }], ctorParameters: function () { return [{ type: PaperViewService }, { type: ConfigurationService }, { type: ComponentRegistryService }, { type: i0.Injector }]; }, propDecorators: { dataFieldTemplate: [{
4849
5078
  type: Input
4850
5079
  }], layoutChangeWidthBreakpoint: [{
4851
5080
  type: Input
4852
5081
  }], offset: [{
4853
5082
  type: Input
5083
+ }], _additionalFieldProperties: [{
5084
+ type: Input
4854
5085
  }], container: [{
4855
5086
  type: ViewChild,
4856
5087
  args: ['dataFieldContainer']
4857
5088
  }], dataField: [{
4858
5089
  type: Input
5090
+ }], additionalFieldProperties: [{
5091
+ type: Input
5092
+ }] } });
5093
+
5094
+ /**
5095
+ * @deprecated
5096
+ * */
5097
+ class AbstractDateFieldComponent extends AbstractDataFieldComponent {
5098
+ constructor(informAboutInvalidData) {
5099
+ super(informAboutInvalidData);
5100
+ }
5101
+ }
5102
+ AbstractDateFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDateFieldComponent, deps: [{ token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
5103
+ AbstractDateFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractDateFieldComponent, selector: "ncc-abstract-date-field", inputs: { dataField: "dataField" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
5104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDateFieldComponent, decorators: [{
5105
+ type: Component,
5106
+ args: [{
5107
+ selector: 'ncc-abstract-date-field',
5108
+ template: ''
5109
+ }]
5110
+ }], ctorParameters: function () {
5111
+ return [{ type: undefined, decorators: [{
5112
+ type: Optional
5113
+ }, {
5114
+ type: Inject,
5115
+ args: [NAE_INFORM_ABOUT_INVALID_DATA]
5116
+ }] }];
5117
+ }, propDecorators: { dataField: [{
5118
+ type: Input
4859
5119
  }] } });
4860
5120
 
4861
5121
  var AbstractTimeInstanceFieldValidation;
@@ -4961,16 +5221,16 @@ class AbstractTimeInstanceField extends DataField {
4961
5221
  }
4962
5222
  }
4963
5223
 
4964
- class AbstractTimeInstanceFieldComponent extends AbstractDataFieldComponent {
4965
- constructor(_translate, informAboutInvalidData) {
4966
- super(informAboutInvalidData);
5224
+ class AbstractTimeInstanceFieldComponent extends AbstractBaseDataFieldComponent {
5225
+ constructor(_translate, dataFieldPortalData) {
5226
+ super(dataFieldPortalData);
4967
5227
  this._translate = _translate;
4968
5228
  }
4969
5229
  buildErrorMessage(dataField) {
4970
- if (this.formControl.hasError(AbstractTimeInstanceFieldValidation.REQUIRED)) {
5230
+ if (this.formControlRef.hasError(AbstractTimeInstanceFieldValidation.REQUIRED)) {
4971
5231
  return this._translate.instant('dataField.validations.required');
4972
5232
  }
4973
- if (this.formControl.hasError(AbstractTimeInstanceFieldValidation.VALID_BETWEEN)) {
5233
+ if (this.formControlRef.hasError(AbstractTimeInstanceFieldValidation.VALID_BETWEEN)) {
4974
5234
  const tmp = dataField.validations.find(value => value.validationRule.includes(AbstractTimeInstanceFieldValidation.BETWEEN)).validationRule.split(' ');
4975
5235
  const parts = tmp[1].split(',');
4976
5236
  let left = AbstractTimeInstanceField.parseDate(parts[0]);
@@ -4985,10 +5245,10 @@ class AbstractTimeInstanceFieldComponent extends AbstractDataFieldComponent {
4985
5245
  }
4986
5246
  return this.resolveErrorMessage(dataField, AbstractTimeInstanceFieldValidation.BETWEEN, this._translate.instant('dataField.validations.dateRange', { left, right }));
4987
5247
  }
4988
- if (this.formControl.hasError(AbstractTimeInstanceFieldValidation.VALID_WORKDAY)) {
5248
+ if (this.formControlRef.hasError(AbstractTimeInstanceFieldValidation.VALID_WORKDAY)) {
4989
5249
  return this.resolveErrorMessage(dataField, AbstractTimeInstanceFieldValidation.WORKDAY, this._translate.instant('dataField.validations.workday'));
4990
5250
  }
4991
- if (this.formControl.hasError(AbstractTimeInstanceFieldValidation.VALID_WEEKEND)) {
5251
+ if (this.formControlRef.hasError(AbstractTimeInstanceFieldValidation.VALID_WEEKEND)) {
4992
5252
  return this.resolveErrorMessage(dataField, AbstractTimeInstanceFieldValidation.WEEKEND, this._translate.instant('dataField.validations.weekend'));
4993
5253
  }
4994
5254
  return '';
@@ -5001,7 +5261,7 @@ class AbstractTimeInstanceFieldComponent extends AbstractDataFieldComponent {
5001
5261
  return generalMessage;
5002
5262
  }
5003
5263
  }
5004
- AbstractTimeInstanceFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractTimeInstanceFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
5264
+ AbstractTimeInstanceFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractTimeInstanceFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
5005
5265
  AbstractTimeInstanceFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractTimeInstanceFieldComponent, selector: "ncc-abstract-time-instance-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
5006
5266
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractTimeInstanceFieldComponent, decorators: [{
5007
5267
  type: Component,
@@ -5014,30 +5274,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
5014
5274
  type: Optional
5015
5275
  }, {
5016
5276
  type: Inject,
5017
- args: [NAE_INFORM_ABOUT_INVALID_DATA]
5277
+ args: [DATA_FIELD_PORTAL_DATA]
5018
5278
  }] }];
5019
5279
  } });
5020
5280
 
5021
- class AbstractDateFieldComponent extends AbstractTimeInstanceFieldComponent {
5022
- constructor(_translate, informAboutInvalidData) {
5023
- super(_translate, informAboutInvalidData);
5281
+ class AbstractDateDefaultFieldComponent extends AbstractTimeInstanceFieldComponent {
5282
+ constructor(_translate, dataFieldPortalData) {
5283
+ super(_translate, dataFieldPortalData);
5024
5284
  this._translate = _translate;
5025
5285
  }
5026
5286
  getErrorMessage() {
5027
5287
  return this.buildErrorMessage(this.dataField);
5028
5288
  }
5029
5289
  }
5030
- AbstractDateFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDateFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
5031
- AbstractDateFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractDateFieldComponent, selector: "ncc-abstract-date-field", inputs: { dataField: "dataField" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
5032
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDateFieldComponent, decorators: [{
5290
+ AbstractDateDefaultFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDateDefaultFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
5291
+ AbstractDateDefaultFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractDateDefaultFieldComponent, selector: "ncc-abstract-date-default-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
5292
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDateDefaultFieldComponent, decorators: [{
5033
5293
  type: Component,
5034
5294
  args: [{
5035
- selector: 'ncc-abstract-date-field',
5295
+ selector: 'ncc-abstract-date-default-field',
5036
5296
  template: ''
5037
5297
  }]
5038
5298
  }], ctorParameters: function () {
5039
5299
  return [{ type: i1$2.TranslateService }, { type: undefined, decorators: [{
5040
5300
  type: Optional
5301
+ }, {
5302
+ type: Inject,
5303
+ args: [DATA_FIELD_PORTAL_DATA]
5304
+ }] }];
5305
+ } });
5306
+
5307
+ /**
5308
+ * @deprecated
5309
+ * */
5310
+ class AbstractDateTimeFieldComponent extends AbstractDataFieldComponent {
5311
+ constructor(informAboutInvalidData) {
5312
+ super(informAboutInvalidData);
5313
+ }
5314
+ }
5315
+ AbstractDateTimeFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDateTimeFieldComponent, deps: [{ token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
5316
+ AbstractDateTimeFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractDateTimeFieldComponent, selector: "ncc-abstract-date-time-field", inputs: { dataField: "dataField" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
5317
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDateTimeFieldComponent, decorators: [{
5318
+ type: Component,
5319
+ args: [{
5320
+ selector: 'ncc-abstract-date-time-field',
5321
+ template: ''
5322
+ }]
5323
+ }], ctorParameters: function () {
5324
+ return [{ type: undefined, decorators: [{
5325
+ type: Optional
5041
5326
  }, {
5042
5327
  type: Inject,
5043
5328
  args: [NAE_INFORM_ABOUT_INVALID_DATA]
@@ -5046,21 +5331,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
5046
5331
  type: Input
5047
5332
  }] } });
5048
5333
 
5049
- class AbstractDateTimeFieldComponent extends AbstractTimeInstanceFieldComponent {
5050
- constructor(_translate, informAboutInvalidData) {
5051
- super(_translate, informAboutInvalidData);
5334
+ class AbstractDateTimeDefaultFieldComponent extends AbstractTimeInstanceFieldComponent {
5335
+ constructor(_translate, dataFieldPortalData) {
5336
+ super(_translate, dataFieldPortalData);
5052
5337
  this._translate = _translate;
5053
5338
  }
5054
5339
  getErrorMessage() {
5055
5340
  return this.buildErrorMessage(this.dataField);
5056
5341
  }
5057
5342
  }
5058
- AbstractDateTimeFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDateTimeFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
5059
- AbstractDateTimeFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractDateTimeFieldComponent, selector: "ncc-abstract-date-time-field", inputs: { dataField: "dataField" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
5060
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDateTimeFieldComponent, decorators: [{
5343
+ AbstractDateTimeDefaultFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDateTimeDefaultFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
5344
+ AbstractDateTimeDefaultFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractDateTimeDefaultFieldComponent, selector: "ncc-abstract-date-time-default-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
5345
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDateTimeDefaultFieldComponent, decorators: [{
5061
5346
  type: Component,
5062
5347
  args: [{
5063
- selector: 'ncc-abstract-date-time-field',
5348
+ selector: 'ncc-abstract-date-time-default-field',
5064
5349
  template: ''
5065
5350
  }]
5066
5351
  }], ctorParameters: function () {
@@ -5068,12 +5353,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
5068
5353
  type: Optional
5069
5354
  }, {
5070
5355
  type: Inject,
5071
- args: [NAE_INFORM_ABOUT_INVALID_DATA]
5356
+ args: [DATA_FIELD_PORTAL_DATA]
5072
5357
  }] }];
5073
- }, propDecorators: { dataField: [{
5074
- type: Input
5075
- }] } });
5358
+ } });
5076
5359
 
5360
+ /**
5361
+ * @deprecated
5362
+ * */
5077
5363
  class AbstractEnumerationFieldComponent extends AbstractDataFieldComponent {
5078
5364
  constructor(informAboutInvalidData) {
5079
5365
  super(informAboutInvalidData);
@@ -5099,44 +5385,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
5099
5385
  type: Input
5100
5386
  }] } });
5101
5387
 
5102
- class AbstractEnumerationSelectFieldComponent {
5388
+ class AbstractEnumerationSelectFieldComponent extends AbstractBaseDataFieldComponent {
5389
+ constructor(dataFieldPortalData) {
5390
+ super(dataFieldPortalData);
5391
+ }
5103
5392
  }
5104
- AbstractEnumerationSelectFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractEnumerationSelectFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5105
- AbstractEnumerationSelectFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractEnumerationSelectFieldComponent, selector: "ncc-abstract-enumeration-select-field", inputs: { enumerationField: "enumerationField", formControlRef: "formControlRef", showLargeLayout: "showLargeLayout" }, ngImport: i0, template: '', isInline: true });
5393
+ AbstractEnumerationSelectFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractEnumerationSelectFieldComponent, deps: [{ token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
5394
+ AbstractEnumerationSelectFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractEnumerationSelectFieldComponent, selector: "ncc-abstract-enumeration-select-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
5106
5395
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractEnumerationSelectFieldComponent, decorators: [{
5107
5396
  type: Component,
5108
5397
  args: [{
5109
5398
  selector: 'ncc-abstract-enumeration-select-field',
5110
5399
  template: ''
5111
5400
  }]
5112
- }], propDecorators: { enumerationField: [{
5113
- type: Input
5114
- }], formControlRef: [{
5115
- type: Input
5116
- }], showLargeLayout: [{
5117
- type: Input
5118
- }] } });
5401
+ }], ctorParameters: function () {
5402
+ return [{ type: undefined, decorators: [{
5403
+ type: Optional
5404
+ }, {
5405
+ type: Inject,
5406
+ args: [DATA_FIELD_PORTAL_DATA]
5407
+ }] }];
5408
+ } });
5119
5409
 
5120
- class AbstractEnumerationListFieldComponent {
5410
+ class AbstractEnumerationListFieldComponent extends AbstractBaseDataFieldComponent {
5411
+ constructor(dataFieldPortalData) {
5412
+ super(dataFieldPortalData);
5413
+ }
5121
5414
  resetEnum() {
5122
5415
  this.formControlRef.reset();
5123
5416
  }
5124
5417
  }
5125
- AbstractEnumerationListFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractEnumerationListFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5126
- AbstractEnumerationListFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractEnumerationListFieldComponent, selector: "ncc-abstract-enumeration-list-field", inputs: { enumerationField: "enumerationField", formControlRef: "formControlRef", showLargeLayout: "showLargeLayout" }, ngImport: i0, template: '', isInline: true });
5418
+ AbstractEnumerationListFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractEnumerationListFieldComponent, deps: [{ token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
5419
+ AbstractEnumerationListFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractEnumerationListFieldComponent, selector: "ncc-abstract-enumeration-list-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
5127
5420
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractEnumerationListFieldComponent, decorators: [{
5128
5421
  type: Component,
5129
5422
  args: [{
5130
5423
  selector: 'ncc-abstract-enumeration-list-field',
5131
5424
  template: ''
5132
5425
  }]
5133
- }], propDecorators: { enumerationField: [{
5134
- type: Input
5135
- }], formControlRef: [{
5136
- type: Input
5137
- }], showLargeLayout: [{
5138
- type: Input
5139
- }] } });
5426
+ }], ctorParameters: function () {
5427
+ return [{ type: undefined, decorators: [{
5428
+ type: Optional
5429
+ }, {
5430
+ type: Inject,
5431
+ args: [DATA_FIELD_PORTAL_DATA]
5432
+ }] }];
5433
+ } });
5140
5434
 
5141
5435
  /**
5142
5436
  * Contains types of renderable data fields.
@@ -5158,6 +5452,7 @@ var FieldTypeResource;
5158
5452
  FieldTypeResource["ENUMERATION_MAP"] = "enumeration_map";
5159
5453
  FieldTypeResource["MULTICHOICE_MAP"] = "multichoice_map";
5160
5454
  FieldTypeResource["TASK_REF"] = "taskRef";
5455
+ FieldTypeResource["CASE_REF"] = "caseRef";
5161
5456
  FieldTypeResource["FILTER"] = "filter";
5162
5457
  FieldTypeResource["I18N"] = "i18n";
5163
5458
  })(FieldTypeResource || (FieldTypeResource = {}));
@@ -5183,9 +5478,15 @@ class EnumerationField extends DataField {
5183
5478
  get fieldType() {
5184
5479
  return this._fieldType;
5185
5480
  }
5481
+ getUpdateOnStrategy() {
5482
+ return UpdateStrategy.CHANGE;
5483
+ }
5186
5484
  valueChanges() {
5187
5485
  return this._value.pipe(debounceTime(this.REQUEST_DEBOUNCE_TIME));
5188
5486
  }
5487
+ getTypedComponentType() {
5488
+ return ComponentPrefixes.ENUMERATION + this.getComponentType();
5489
+ }
5189
5490
  resolveFormControlValidators() {
5190
5491
  const result = [];
5191
5492
  if (this.behavior.required) {
@@ -5208,13 +5509,14 @@ var EnumerationAutocompleteFilterProperty;
5208
5509
  EnumerationAutocompleteFilterProperty["SUBSTRING"] = "substring";
5209
5510
  })(EnumerationAutocompleteFilterProperty || (EnumerationAutocompleteFilterProperty = {}));
5210
5511
 
5211
- class AbstractEnumerationAutocompleteSelectFieldComponent {
5212
- constructor(_translate) {
5512
+ class AbstractEnumerationAutocompleteSelectFieldComponent extends AbstractBaseDataFieldComponent {
5513
+ constructor(_translate, dataFieldPortalData) {
5514
+ super(dataFieldPortalData);
5213
5515
  this._translate = _translate;
5214
5516
  this.renderSelection = (key) => {
5215
5517
  if (key !== undefined && key !== '' && key !== null) {
5216
- if (this.enumerationField.choices.find(choice => choice.key === key)) {
5217
- return this.enumerationField.choices.find(choice => choice.key === key).value;
5518
+ if (this.dataField.choices.find(choice => choice.key === key)) {
5519
+ return this.dataField.choices.find(choice => choice.key === key).value;
5218
5520
  }
5219
5521
  }
5220
5522
  return key;
@@ -5226,12 +5528,9 @@ class AbstractEnumerationAutocompleteSelectFieldComponent {
5226
5528
  ngOnDestroy() {
5227
5529
  this.filteredOptions = undefined;
5228
5530
  }
5229
- checkPropertyInComponent(property) {
5230
- return !!this.enumerationField.component && !!this.enumerationField.component.properties && property in this.enumerationField.component.properties;
5231
- }
5232
5531
  filterType() {
5233
5532
  if (this.checkPropertyInComponent('filter')) {
5234
- return this.enumerationField.component.properties.filter;
5533
+ return this.dataField.component.properties.filter;
5235
5534
  }
5236
5535
  }
5237
5536
  _filter(value) {
@@ -5248,7 +5547,7 @@ class AbstractEnumerationAutocompleteSelectFieldComponent {
5248
5547
  }
5249
5548
  _filterInclude(value) {
5250
5549
  const filterValue = value === null || value === void 0 ? void 0 : value.toLowerCase().normalize('NFD').replace(/[\u0300-\u036f]/g, '');
5251
- return this.enumerationField.choices.filter(option => option.value.toLowerCase()
5550
+ return this.dataField.choices.filter(option => option.value.toLowerCase()
5252
5551
  .normalize('NFD')
5253
5552
  .replace(/[\u0300-\u036f]/g, '')
5254
5553
  .includes(filterValue));
@@ -5260,7 +5559,7 @@ class AbstractEnumerationAutocompleteSelectFieldComponent {
5260
5559
  */
5261
5560
  _filterIndexOf(value) {
5262
5561
  const filterValue = value === null || value === void 0 ? void 0 : value.toLowerCase().normalize('NFD').replace(/[\u0300-\u036f]/g, '');
5263
- return this.enumerationField.choices.filter(option => option.value.toLowerCase().normalize('NFD')
5562
+ return this.dataField.choices.filter(option => option.value.toLowerCase().normalize('NFD')
5264
5563
  .replace(/[\u0300-\u036f]/g, '').indexOf(filterValue) === 0);
5265
5564
  }
5266
5565
  change() {
@@ -5277,76 +5576,116 @@ class AbstractEnumerationAutocompleteSelectFieldComponent {
5277
5576
  }
5278
5577
  }
5279
5578
  }
5280
- AbstractEnumerationAutocompleteSelectFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractEnumerationAutocompleteSelectFieldComponent, deps: [{ token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
5281
- AbstractEnumerationAutocompleteSelectFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractEnumerationAutocompleteSelectFieldComponent, selector: "ncc-abstract-enumeration-autocomplete-field", inputs: { enumerationField: "enumerationField", formControlRef: "formControlRef", showLargeLayout: "showLargeLayout" }, viewQueries: [{ propertyName: "text", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: '', isInline: true });
5579
+ AbstractEnumerationAutocompleteSelectFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractEnumerationAutocompleteSelectFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
5580
+ AbstractEnumerationAutocompleteSelectFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractEnumerationAutocompleteSelectFieldComponent, selector: "ncc-abstract-enumeration-autocomplete-field", viewQueries: [{ propertyName: "text", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
5282
5581
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractEnumerationAutocompleteSelectFieldComponent, decorators: [{
5283
5582
  type: Component,
5284
5583
  args: [{
5285
5584
  selector: 'ncc-abstract-enumeration-autocomplete-field',
5286
5585
  template: ''
5287
5586
  }]
5288
- }], ctorParameters: function () { return [{ type: i1$2.TranslateService }]; }, propDecorators: { enumerationField: [{
5289
- type: Input
5290
- }], formControlRef: [{
5291
- type: Input
5292
- }], showLargeLayout: [{
5293
- type: Input
5294
- }], text: [{
5587
+ }], ctorParameters: function () {
5588
+ return [{ type: i1$2.TranslateService }, { type: undefined, decorators: [{
5589
+ type: Optional
5590
+ }, {
5591
+ type: Inject,
5592
+ args: [DATA_FIELD_PORTAL_DATA]
5593
+ }] }];
5594
+ }, propDecorators: { text: [{
5295
5595
  type: ViewChild,
5296
5596
  args: ['input']
5297
5597
  }] } });
5298
5598
 
5299
- class AbstractEnumerationStepperFieldComponent {
5300
- constructor(ref) {
5599
+ class AbstractEnumerationStepperFieldComponent extends AbstractBaseDataFieldComponent {
5600
+ constructor(ref, dataFieldPortalData) {
5601
+ super(dataFieldPortalData);
5301
5602
  this.ref = ref;
5302
5603
  this.arrowStepper = false;
5303
5604
  }
5304
5605
  ngOnInit() {
5305
- if (this.enumerationField && this.enumerationField.component && this.enumerationField.component.properties &&
5306
- this.enumerationField.component.properties.arrowStepper) {
5307
- this.arrowStepper = this.enumerationField.component.properties.arrowStepper === 'true';
5308
- }
5606
+ var _a, _b;
5607
+ this.arrowStepper = ((_b = (_a = this.dataField.component) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.arrowStepper) === 'true';
5309
5608
  }
5310
5609
  canShowDoneIcon(index) {
5311
- return index <= this.enumerationField.choices.findIndex(choice => choice.key === this.enumerationField.value);
5610
+ return index <= this.dataField.choices.findIndex(choice => choice.key === this.dataField.value);
5312
5611
  }
5313
5612
  isSelected(key) {
5314
- return key === this.enumerationField.value;
5613
+ return key === this.dataField.value;
5315
5614
  }
5316
5615
  ngAfterViewChecked() {
5317
5616
  if (!!this.steps && !!this.steps.toArray()) {
5318
5617
  const width = this.ref.nativeElement.parentElement.offsetWidth;
5319
- const maxWidth = (width + (this.enumerationField.choices.length - 1) * 20) / this.enumerationField.choices.length;
5618
+ const maxWidth = (width + (this.dataField.choices.length - 1) * 20) / this.dataField.choices.length;
5320
5619
  this.steps.toArray().forEach(step => {
5321
5620
  step.nativeElement.style.maxWidth = maxWidth >= 72 ? maxWidth + 'px' : '72px';
5322
5621
  });
5323
5622
  }
5324
5623
  }
5325
5624
  setStepperValue(key) {
5326
- if (!this.enumerationField.disabled) {
5625
+ if (!this.formControlRef.disabled) {
5327
5626
  this.formControlRef.setValue(key);
5328
5627
  }
5329
5628
  }
5629
+ hasTitle() {
5630
+ return this.dataField.title !== undefined && this.dataField.title !== '';
5631
+ }
5632
+ resolveValue(key) {
5633
+ var _a;
5634
+ return (_a = this.dataField.choices.find(k => k.key === key)) === null || _a === void 0 ? void 0 : _a.value;
5635
+ }
5330
5636
  }
5331
- AbstractEnumerationStepperFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractEnumerationStepperFieldComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
5332
- AbstractEnumerationStepperFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractEnumerationStepperFieldComponent, selector: "ncc-abstract-enumeration-stepper-field", inputs: { enumerationField: "enumerationField", formControlRef: "formControlRef", showLargeLayout: "showLargeLayout" }, viewQueries: [{ propertyName: "steps", predicate: ["oneStep"], descendants: true }], ngImport: i0, template: '', isInline: true });
5637
+ AbstractEnumerationStepperFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractEnumerationStepperFieldComponent, deps: [{ token: i0.ElementRef }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
5638
+ AbstractEnumerationStepperFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractEnumerationStepperFieldComponent, selector: "ncc-abstract-enumeration-stepper-field", viewQueries: [{ propertyName: "steps", predicate: ["oneStep"], descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
5333
5639
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractEnumerationStepperFieldComponent, decorators: [{
5334
5640
  type: Component,
5335
5641
  args: [{
5336
5642
  selector: 'ncc-abstract-enumeration-stepper-field',
5337
5643
  template: ''
5338
5644
  }]
5339
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { enumerationField: [{
5340
- type: Input
5341
- }], formControlRef: [{
5342
- type: Input
5343
- }], showLargeLayout: [{
5344
- type: Input
5345
- }], steps: [{
5645
+ }], ctorParameters: function () {
5646
+ return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
5647
+ type: Optional
5648
+ }, {
5649
+ type: Inject,
5650
+ args: [DATA_FIELD_PORTAL_DATA]
5651
+ }] }];
5652
+ }, propDecorators: { steps: [{
5346
5653
  type: ViewChildren,
5347
5654
  args: ['oneStep']
5348
5655
  }] } });
5349
5656
 
5657
+ /**
5658
+ * @deprecated
5659
+ * */
5660
+ /**
5661
+ * Component that is created in the body of the task panel accord on the Petri Net, which must be bind properties.
5662
+ */
5663
+ class AbstractFileFieldComponent extends AbstractDataFieldComponent {
5664
+ constructor(informAboutInvalidData) {
5665
+ super(informAboutInvalidData);
5666
+ }
5667
+ }
5668
+ AbstractFileFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFileFieldComponent, deps: [{ token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
5669
+ AbstractFileFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractFileFieldComponent, selector: "ncc-abstract-file-field", inputs: { dataField: "dataField", taskId: "taskId" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
5670
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFileFieldComponent, decorators: [{
5671
+ type: Component,
5672
+ args: [{
5673
+ selector: 'ncc-abstract-file-field',
5674
+ template: ''
5675
+ }]
5676
+ }], ctorParameters: function () {
5677
+ return [{ type: undefined, decorators: [{
5678
+ type: Optional
5679
+ }, {
5680
+ type: Inject,
5681
+ args: [NAE_INFORM_ABOUT_INVALID_DATA]
5682
+ }] }];
5683
+ }, propDecorators: { dataField: [{
5684
+ type: Input
5685
+ }], taskId: [{
5686
+ type: Input
5687
+ }] } });
5688
+
5350
5689
  /**
5351
5690
  * Supported types of files a user can select through a file picker.
5352
5691
  */
@@ -5407,6 +5746,9 @@ class FileField extends DataField {
5407
5746
  get updated() {
5408
5747
  return this._update.asObservable();
5409
5748
  }
5749
+ getTypedComponentType() {
5750
+ return ComponentPrefixes.FILE + this.getComponentType();
5751
+ }
5410
5752
  valueWithoutChange(value) {
5411
5753
  this.changed = false;
5412
5754
  this._value.next(value !== null && value !== void 0 ? value : {});
@@ -5435,6 +5777,7 @@ class FileField extends DataField {
5435
5777
  throw new Error('Data field can be initialized only once!'
5436
5778
  + ' Disconnect the previous form control before initializing the data field again!');
5437
5779
  }
5780
+ this.formControlRef = formControl;
5438
5781
  formControl.setValidators(this.resolveFormControlValidators());
5439
5782
  this._myValueSubscription = this._value.pipe(distinctUntilChanged(this.valueEquality)).subscribe(newValue => {
5440
5783
  var _a;
@@ -5453,6 +5796,11 @@ class FileField extends DataField {
5453
5796
  }
5454
5797
  }
5455
5798
 
5799
+ const PREVIEW = 'preview';
5800
+ const PREVIEW_BUTTON = 'preview_button';
5801
+ const FILE_FIELD_HEIGHT = 75;
5802
+ const FILE_FIELD_PADDING = 16;
5803
+
5456
5804
  /**
5457
5805
  * Determines the type of resource the Filter can search for.
5458
5806
  *
@@ -5488,8 +5836,8 @@ var TextFieldComponent;
5488
5836
  })(TextFieldComponent || (TextFieldComponent = {}));
5489
5837
  var TextAreaHeight;
5490
5838
  (function (TextAreaHeight) {
5491
- TextAreaHeight[TextAreaHeight["OUTLINE"] = 27] = "OUTLINE";
5492
- TextAreaHeight[TextAreaHeight["FILL_STANDARD"] = 34] = "FILL_STANDARD";
5839
+ TextAreaHeight[TextAreaHeight["OUTLINE"] = 20] = "OUTLINE";
5840
+ TextAreaHeight[TextAreaHeight["FILL_STANDARD"] = 22] = "FILL_STANDARD";
5493
5841
  })(TextAreaHeight || (TextAreaHeight = {}));
5494
5842
  var TextFieldValidation;
5495
5843
  (function (TextFieldValidation) {
@@ -5508,6 +5856,9 @@ class TextField extends DataField {
5508
5856
  constructor(stringId, title, value, behavior, placeholder, description, layout, validations, _component, parentTaskId) {
5509
5857
  super(stringId, title, value, behavior, placeholder, description, layout, validations, _component, parentTaskId);
5510
5858
  }
5859
+ getTypedComponentType() {
5860
+ return ComponentPrefixes.TEXT + this.getComponentType();
5861
+ }
5511
5862
  resolveValidations() {
5512
5863
  const result = [];
5513
5864
  this.validations.forEach(item => {
@@ -5555,7 +5906,7 @@ class TextField extends DataField {
5555
5906
  }
5556
5907
  }
5557
5908
  }
5558
- TextField.FIELD_HEIGHT = 105;
5909
+ TextField.FIELD_HEIGHT = 67;
5559
5910
 
5560
5911
  var NumberFieldValidation;
5561
5912
  (function (NumberFieldValidation) {
@@ -5579,6 +5930,9 @@ class NumberField extends DataField {
5579
5930
  super(stringId, title, value, behavior, placeholder, description, layout, validations, component, parentTaskId);
5580
5931
  this._formatFilter = format;
5581
5932
  }
5933
+ getTypedComponentType() {
5934
+ return ComponentPrefixes.NUMBER + this.getComponentType();
5935
+ }
5582
5936
  resolveValidations() {
5583
5937
  const result = [];
5584
5938
  this.validations.forEach(item => {
@@ -5702,6 +6056,12 @@ class MultichoiceField extends DataField {
5702
6056
  get fieldType() {
5703
6057
  return this._fieldType;
5704
6058
  }
6059
+ getUpdateOnStrategy() {
6060
+ return UpdateStrategy.CHANGE;
6061
+ }
6062
+ getTypedComponentType() {
6063
+ return ComponentPrefixes.MULTICHOICE + this.getComponentType();
6064
+ }
5705
6065
  valueEquality(a, b) {
5706
6066
  // we assume that multichoice options are always given in the same order
5707
6067
  return (!a && !b) || (!!a
@@ -5715,6 +6075,9 @@ class DateField extends AbstractTimeInstanceField {
5715
6075
  constructor(stringId, title, value, behavior, placeholder, description, layout, validations, component, parentTaskId) {
5716
6076
  super(stringId, title, value, behavior, placeholder, description, layout, validations, component, parentTaskId);
5717
6077
  }
6078
+ getTypedComponentType() {
6079
+ return ComponentPrefixes.DATE + this.getComponentType();
6080
+ }
5718
6081
  valueEquality(a, b) {
5719
6082
  return AbstractTimeInstanceField.isEqual(a, b, 'day');
5720
6083
  }
@@ -5724,6 +6087,9 @@ class DateTimeField extends AbstractTimeInstanceField {
5724
6087
  constructor(stringId, title, value, behavior, placeholder, description, layout, validations, component, parentTaskId) {
5725
6088
  super(stringId, title, value, behavior, placeholder, description, layout, validations, component, parentTaskId);
5726
6089
  }
6090
+ getTypedComponentType() {
6091
+ return ComponentPrefixes.DATE_TIME + this.getComponentType();
6092
+ }
5727
6093
  valueEquality(a, b) {
5728
6094
  return AbstractTimeInstanceField.isEqual(a, b, 'minute');
5729
6095
  }
@@ -5734,6 +6100,9 @@ class UserField extends DataField {
5734
6100
  super(stringId, title, value, behavior, placeholder, description, layout, validations, component, parentTaskId);
5735
6101
  this._roles = _roles;
5736
6102
  }
6103
+ getTypedComponentType() {
6104
+ return ComponentPrefixes.USER + this.getComponentType();
6105
+ }
5737
6106
  get roles() {
5738
6107
  return this._roles;
5739
6108
  }
@@ -5807,6 +6176,9 @@ class FileListField extends DataField {
5807
6176
  get value() {
5808
6177
  return this._value.getValue();
5809
6178
  }
6179
+ getTypedComponentType() {
6180
+ return ComponentPrefixes.FILE_LIST + this.getComponentType();
6181
+ }
5810
6182
  valueWithoutChange(value) {
5811
6183
  this.changed = false;
5812
6184
  this._value.next(value !== null && value !== void 0 ? value : { namesPaths: [] });
@@ -5839,6 +6211,7 @@ class FileListField extends DataField {
5839
6211
  throw new Error('Data field can be initialized only once!'
5840
6212
  + ' Disconnect the previous form control before initializing the data field again!');
5841
6213
  }
6214
+ this.formControlRef = formControl;
5842
6215
  formControl.setValidators(this.resolveFormControlValidators());
5843
6216
  this._myValueSubscription = this._value.pipe(distinctUntilChanged(this.valueEquality)).subscribe(newValue => {
5844
6217
  this.valid = this._determineFormControlValidity(formControl);
@@ -5890,6 +6263,9 @@ class TaskRefField extends DataField {
5890
6263
  set dashboardCols(value) {
5891
6264
  this._dashboardCols = value;
5892
6265
  }
6266
+ getTypedComponentType() {
6267
+ return ComponentPrefixes.TASK_REF + this.getComponentType();
6268
+ }
5893
6269
  }
5894
6270
 
5895
6271
  class DynamicEnumerationField extends EnumerationField {
@@ -5941,6 +6317,9 @@ class FilterField extends DataField {
5941
6317
  get allowedNets() {
5942
6318
  return this._allowedNets;
5943
6319
  }
6320
+ getTypedComponentType() {
6321
+ return ComponentPrefixes.FILTER + this.getComponentType();
6322
+ }
5944
6323
  }
5945
6324
 
5946
6325
  var I18nFieldValidation;
@@ -5951,6 +6330,9 @@ var I18nFieldValidation;
5951
6330
  })(I18nFieldValidation || (I18nFieldValidation = {}));
5952
6331
  const DEFAULT_LANGUAGE_CODE = 'xx';
5953
6332
  class I18nField extends DataField {
6333
+ getTypedComponentType() {
6334
+ return ComponentPrefixes.I18N + this.getComponentType();
6335
+ }
5954
6336
  static defaultValueNonEquality(a, b) {
5955
6337
  return (!(!a.defaultValue && !b.defaultValue)
5956
6338
  && ((!a.defaultValue && !!b.defaultValue)
@@ -6092,7 +6474,8 @@ class I18nField extends DataField {
6092
6474
  };
6093
6475
  }
6094
6476
  validRequiredI18n(fc) {
6095
- return (fc.value.defaultValue === '' && Object.keys(fc.value.translations).length === 0)
6477
+ var _a;
6478
+ return (fc.value.defaultValue === '' && !!((_a = fc.value) === null || _a === void 0 ? void 0 : _a.translations) && Object.keys(fc.value.translations).length === 0)
6096
6479
  ? ({ requiredI18n: true }) : null;
6097
6480
  }
6098
6481
  }
@@ -6105,6 +6488,9 @@ class UserListField extends DataField {
6105
6488
  get roles() {
6106
6489
  return this._roles;
6107
6490
  }
6491
+ getTypedComponentType() {
6492
+ return ComponentPrefixes.USER_LIST + this.getComponentType();
6493
+ }
6108
6494
  valueEquality(a, b) {
6109
6495
  return (!a && !b) ||
6110
6496
  (!!a && !!b && a.userValues.size === b.userValues.size);
@@ -6190,6 +6576,15 @@ function decodeBase64(encoded) {
6190
6576
  return Buffer.Buffer.from(encoded, 'base64').toString('utf-8');
6191
6577
  }
6192
6578
 
6579
+ class CaseRefField extends DataField {
6580
+ constructor(stringId, title, initialValue, behavior, placeholder, description, layout, validations, component, parentTaskId) {
6581
+ super(stringId, title, initialValue, behavior, placeholder, description, layout, validations, component, parentTaskId);
6582
+ }
6583
+ getTypedComponentType() {
6584
+ return ComponentPrefixes.CASE_REF + this.getComponentType();
6585
+ }
6586
+ }
6587
+
6193
6588
  class FieldConverterService {
6194
6589
  constructor() {
6195
6590
  this.textFieldNames = ['textarea', 'richtextarea', 'htmltextarea', 'editor', 'htmlEditor', 'area'];
@@ -6245,6 +6640,8 @@ class FieldConverterService {
6245
6640
  return new FileListField(item.stringId, item.name, item.behavior, item.value ? item.value : {}, item.placeholder, item.description, item.layout, item.validations, null, null, item.component, item.parentTaskId);
6246
6641
  case FieldTypeResource.TASK_REF:
6247
6642
  return new TaskRefField(item.stringId, item.name, item.value ? item.value : [], item.behavior, item.placeholder, item.description, item.layout, item.validations, item.component, item.parentTaskId);
6643
+ case FieldTypeResource.CASE_REF:
6644
+ return new CaseRefField(item.stringId, item.name, item.value ? item.value : [], item.behavior, item.placeholder, item.description, item.layout, item.validations, item.component, item.parentTaskId);
6248
6645
  case FieldTypeResource.FILTER:
6249
6646
  return new FilterField(item.stringId, item.name, (_b = item.value) !== null && _b !== void 0 ? _b : '', item.filterMetadata, item.allowedNets, item.behavior, item.placeholder, item.description, item.layout, item.validations, item.component, item.parentTaskId);
6250
6647
  case FieldTypeResource.I18N:
@@ -6803,13 +7200,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
6803
7200
  }]
6804
7201
  }], ctorParameters: function () { return []; } });
6805
7202
 
6806
- const preview = 'preview';
6807
- const fieldHeight = 75;
6808
- const fieldPadding = 16;
6809
- /**
6810
- * Component that is created in the body of the task panel accord on the Petri Net, which must be bind properties.
6811
- */
6812
- class AbstractFileFieldComponent extends AbstractDataFieldComponent {
7203
+ class AbstractFileDefaultFieldComponent extends AbstractBaseDataFieldComponent {
6813
7204
  /**
6814
7205
  * Only inject services.
6815
7206
  * @param _taskResourceService Provides to download a file from the backend
@@ -6817,28 +7208,27 @@ class AbstractFileFieldComponent extends AbstractDataFieldComponent {
6817
7208
  * @param _snackbar Snackbar service to notify user
6818
7209
  * @param _translate Translate service for I18N
6819
7210
  * @param _eventService used for parsing of backend response
6820
- * @param informAboutInvalidData whether the backend should be notified about invalid values.
6821
7211
  * Option injected trough `NAE_INFORM_ABOUT_INVALID_DATA` InjectionToken
6822
7212
  * @param _sanitizer Sanitize url of image preview
7213
+ * @param dataFieldPortalData Field and form control data if field is provided with portal
6823
7214
  */
6824
- constructor(_taskResourceService, _log, _snackbar, _translate, _eventService, informAboutInvalidData, _sanitizer) {
6825
- super(informAboutInvalidData);
7215
+ constructor(_taskResourceService, _log, _snackbar, _translate, _eventService, _sanitizer, dataFieldPortalData) {
7216
+ super(dataFieldPortalData);
6826
7217
  this._taskResourceService = _taskResourceService;
6827
7218
  this._log = _log;
6828
7219
  this._snackbar = _snackbar;
6829
7220
  this._translate = _translate;
6830
7221
  this._eventService = _eventService;
6831
7222
  this._sanitizer = _sanitizer;
6832
- /**
6833
- * If file preview should be displayed
6834
- */
6835
- this.filePreview = false;
6836
7223
  /**
6837
7224
  * If file type can be displayed
6838
7225
  */
6839
7226
  this.isDisplayable = false;
7227
+ this.isFilePreview = false;
7228
+ this.isFilePreviewButton = false;
6840
7229
  this.state = this.defaultState;
6841
7230
  this.fullSource = new BehaviorSubject(null);
7231
+ this.taskId = dataFieldPortalData.additionalFieldProperties.taskId;
6842
7232
  }
6843
7233
  /**
6844
7234
  * Set :
@@ -6846,9 +7236,9 @@ class AbstractFileFieldComponent extends AbstractDataFieldComponent {
6846
7236
  * - Display name
6847
7237
  */
6848
7238
  ngOnInit() {
6849
- super.ngOnInit();
6850
- this.filePreview = this.dataField && this.dataField.component && this.dataField.component.name
6851
- && this.dataField.component.name === preview;
7239
+ var _a, _b, _c, _d;
7240
+ this.isFilePreview = ((_b = (_a = this.dataField) === null || _a === void 0 ? void 0 : _a.component) === null || _b === void 0 ? void 0 : _b.name) === PREVIEW;
7241
+ this.isFilePreviewButton = ((_d = (_c = this.dataField) === null || _c === void 0 ? void 0 : _c.component) === null || _d === void 0 ? void 0 : _d.name) === PREVIEW_BUTTON;
6852
7242
  }
6853
7243
  ngAfterViewInit() {
6854
7244
  if (this.fileUploadEl) {
@@ -6856,18 +7246,27 @@ class AbstractFileFieldComponent extends AbstractDataFieldComponent {
6856
7246
  this.upload();
6857
7247
  };
6858
7248
  }
6859
- if (this.filePreview) {
7249
+ if (this.isFilePreview) {
6860
7250
  if (!!this.imageDivEl) {
6861
7251
  if (!this.isEmpty()) {
6862
7252
  this.initializePreviewIfDisplayable();
6863
7253
  }
6864
7254
  }
6865
7255
  }
7256
+ if (this.isFilePreviewButton) {
7257
+ if (!this.isEmpty()) {
7258
+ this.initializePreviewIfDisplayable();
7259
+ }
7260
+ }
6866
7261
  this.updatedFieldSubscription = this.dataField.updated.subscribe(() => {
7262
+ var _a, _b, _c, _d;
6867
7263
  this.previewSource = undefined;
6868
- if (!!this.filePreview
6869
- && !!this.dataField.value
6870
- && !!this.dataField.value.name) {
7264
+ if (!!this.isFilePreview && !!((_b = (_a = this.dataField) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.name)) {
7265
+ this.fileForDownload = undefined;
7266
+ this.fileForPreview = undefined;
7267
+ this.initializePreviewIfDisplayable();
7268
+ }
7269
+ if (!!this.isFilePreviewButton && !!((_d = (_c = this.dataField) === null || _c === void 0 ? void 0 : _c.value) === null || _d === void 0 ? void 0 : _d.name)) {
6871
7270
  this.fileForDownload = undefined;
6872
7271
  this.fileForPreview = undefined;
6873
7272
  this.initializePreviewIfDisplayable();
@@ -6880,7 +7279,7 @@ class AbstractFileFieldComponent extends AbstractDataFieldComponent {
6880
7279
  this.updatedFieldSubscription.unsubscribe();
6881
7280
  }
6882
7281
  chooseFile() {
6883
- if (this.state.uploading || this.formControl.disabled) {
7282
+ if (this.state.uploading || this.formControlRef.disabled) {
6884
7283
  return;
6885
7284
  }
6886
7285
  this.fileUploadEl.nativeElement.click();
@@ -6950,12 +7349,12 @@ class AbstractFileFieldComponent extends AbstractDataFieldComponent {
6950
7349
  this.state.error = false;
6951
7350
  this.dataField.downloaded = false;
6952
7351
  this.dataField.value.name = fileToUpload.name;
6953
- if (this.filePreview) {
7352
+ if (this.isFilePreview) {
6954
7353
  this.initializePreviewIfDisplayable();
6955
7354
  }
6956
7355
  this.fullSource.next(undefined);
6957
7356
  this.fileForDownload = undefined;
6958
- this.formControl.setValue(this.dataField.value.name);
7357
+ this.formControlRef.setValue(this.dataField.value.name);
6959
7358
  }
6960
7359
  this.dataField.touch = true;
6961
7360
  this.dataField.update();
@@ -6993,7 +7392,7 @@ class AbstractFileFieldComponent extends AbstractDataFieldComponent {
6993
7392
  if (!response.type || response.type !== ProgressType.DOWNLOAD) {
6994
7393
  this._log.debug(`File [${this.dataField.stringId}] ${this.dataField.value.name} was successfully downloaded`);
6995
7394
  this.downloadViaAnchor(response);
6996
- if (this.filePreview) {
7395
+ if (this.isFilePreview) {
6997
7396
  this.initDownloadFile(response);
6998
7397
  }
6999
7398
  this.state.downloading = false;
@@ -7047,7 +7446,7 @@ class AbstractFileFieldComponent extends AbstractDataFieldComponent {
7047
7446
  if (response.success) {
7048
7447
  const filename = this.dataField.value.name;
7049
7448
  this.dataField.value = {};
7050
- this.formControl.setValue('');
7449
+ this.formControlRef.setValue('');
7051
7450
  this.dataField.update();
7052
7451
  this.dataField.downloaded = false;
7053
7452
  this.fullSource.next(undefined);
@@ -7055,7 +7454,7 @@ class AbstractFileFieldComponent extends AbstractDataFieldComponent {
7055
7454
  this.previewSource = undefined;
7056
7455
  this.fileForPreview = undefined;
7057
7456
  this._log.debug(`File [${this.dataField.stringId}] ${filename} was successfully deleted`);
7058
- this.formControl.markAsTouched();
7457
+ this.formControlRef.markAsTouched();
7059
7458
  }
7060
7459
  else {
7061
7460
  this._log.error(`Deleting file [${this.dataField.stringId}] ${this.dataField.value.name} has failed!`, response.error);
@@ -7153,25 +7552,25 @@ class AbstractFileFieldComponent extends AbstractDataFieldComponent {
7153
7552
  }
7154
7553
  getHeight() {
7155
7554
  return this.dataField.layout && this.dataField.layout.rows && this.dataField.layout.rows !== 1 ?
7156
- (this.dataField.layout.rows) * fieldHeight - fieldPadding : fieldHeight - fieldPadding;
7555
+ (this.dataField.layout.rows) * FILE_FIELD_HEIGHT - FILE_FIELD_PADDING : FILE_FIELD_HEIGHT - FILE_FIELD_PADDING;
7157
7556
  }
7158
7557
  getPreviewBorderWidth() {
7159
7558
  if (this.borderPropertyEnabled('borderWidth')) {
7160
7559
  return this.dataField.component.properties.borderWidth + 'px';
7161
7560
  }
7162
- return `${AbstractFileFieldComponent.DEFAULT_PREVIEW_BORDER_WIDTH}px`;
7561
+ return `${AbstractFileDefaultFieldComponent.DEFAULT_PREVIEW_BORDER_WIDTH}px`;
7163
7562
  }
7164
7563
  getPreviewBorderStyle() {
7165
7564
  if (this.borderPropertyEnabled('borderStyle')) {
7166
7565
  return this.dataField.component.properties.borderStyle;
7167
7566
  }
7168
- return AbstractFileFieldComponent.DEFAULT_PREVIEW_BORDER_STYLE;
7567
+ return AbstractFileDefaultFieldComponent.DEFAULT_PREVIEW_BORDER_STYLE;
7169
7568
  }
7170
7569
  getPreviewBorderColor() {
7171
7570
  if (this.borderPropertyEnabled('borderColor')) {
7172
7571
  return this.dataField.component.properties.borderColor;
7173
7572
  }
7174
- return AbstractFileFieldComponent.DEFAULT_PREVIEW_BORDER_COLOR;
7573
+ return AbstractFileDefaultFieldComponent.DEFAULT_PREVIEW_BORDER_COLOR;
7175
7574
  }
7176
7575
  isBorderLGBTQ() {
7177
7576
  if (this.borderPropertyEnabled('borderLGBTQ')) {
@@ -7191,38 +7590,50 @@ class AbstractFileFieldComponent extends AbstractDataFieldComponent {
7191
7590
  resolveParentTaskId() {
7192
7591
  return !!this.dataField.parentTaskId ? this.dataField.parentTaskId : this.taskId;
7193
7592
  }
7593
+ hasTitle() {
7594
+ return this.dataField.title !== undefined && this.dataField.title !== '';
7595
+ }
7596
+ hasHint() {
7597
+ return this.dataField.description !== undefined && this.dataField.description !== '';
7598
+ }
7599
+ getCutProperty(i18nLabel) {
7600
+ if (this.labelWidth !== i18nLabel.offsetWidth) {
7601
+ this.labelWidth = i18nLabel.offsetWidth;
7602
+ const calculatedWidth = 'calc(0.5em + ' + i18nLabel.offsetWidth / 4 * 3 + 'px)';
7603
+ this.cutProperty = `polygon(0 0, 0 100%, 100% 100%, 100% 0%, ${calculatedWidth} 0, ${calculatedWidth} 6%, 0.5em 6%, 0.5em 0)`;
7604
+ }
7605
+ return this.cutProperty;
7606
+ }
7194
7607
  }
7195
7608
  /**
7196
7609
  * The width of the default file preview border in pixels. The `px` string is appended in the code.
7197
7610
  */
7198
- AbstractFileFieldComponent.DEFAULT_PREVIEW_BORDER_WIDTH = 0;
7611
+ AbstractFileDefaultFieldComponent.DEFAULT_PREVIEW_BORDER_WIDTH = 0;
7199
7612
  /**
7200
7613
  * The CSS style attribute of the default file preview border.
7201
7614
  */
7202
- AbstractFileFieldComponent.DEFAULT_PREVIEW_BORDER_STYLE = 'none';
7615
+ AbstractFileDefaultFieldComponent.DEFAULT_PREVIEW_BORDER_STYLE = 'none';
7203
7616
  /**
7204
7617
  * The CSS color string of the default file preview border.
7205
7618
  */
7206
- AbstractFileFieldComponent.DEFAULT_PREVIEW_BORDER_COLOR = 'black';
7207
- AbstractFileFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFileFieldComponent, deps: [{ token: TaskResourceService }, { token: LoggerService }, { token: SnackBarService }, { token: i1$2.TranslateService }, { token: EventService }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }, { token: i2$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
7208
- AbstractFileFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractFileFieldComponent, selector: "ncc-abstract-file-field", inputs: { taskId: "taskId", dataField: "dataField" }, viewQueries: [{ propertyName: "fileUploadEl", first: true, predicate: ["fileUploadInput"], descendants: true }, { propertyName: "imageEl", first: true, predicate: ["imageEl"], descendants: true }, { propertyName: "imageDivEl", first: true, predicate: ["imageDiv"], descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
7209
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFileFieldComponent, decorators: [{
7619
+ AbstractFileDefaultFieldComponent.DEFAULT_PREVIEW_BORDER_COLOR = 'black';
7620
+ AbstractFileDefaultFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFileDefaultFieldComponent, deps: [{ token: TaskResourceService }, { token: LoggerService }, { token: SnackBarService }, { token: i1$2.TranslateService }, { token: EventService }, { token: i2$1.DomSanitizer }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
7621
+ AbstractFileDefaultFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractFileDefaultFieldComponent, selector: "ncc-abstract-file-default-fied", inputs: { taskId: "taskId" }, viewQueries: [{ propertyName: "fileUploadEl", first: true, predicate: ["fileUploadInput"], descendants: true }, { propertyName: "imageEl", first: true, predicate: ["imageEl"], descendants: true }, { propertyName: "imageDivEl", first: true, predicate: ["imageDiv"], descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
7622
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFileDefaultFieldComponent, decorators: [{
7210
7623
  type: Component,
7211
7624
  args: [{
7212
- selector: 'ncc-abstract-file-field',
7625
+ selector: 'ncc-abstract-file-default-fied',
7213
7626
  template: ''
7214
7627
  }]
7215
7628
  }], ctorParameters: function () {
7216
- return [{ type: TaskResourceService }, { type: LoggerService }, { type: SnackBarService }, { type: i1$2.TranslateService }, { type: EventService }, { type: undefined, decorators: [{
7629
+ return [{ type: TaskResourceService }, { type: LoggerService }, { type: SnackBarService }, { type: i1$2.TranslateService }, { type: EventService }, { type: i2$1.DomSanitizer }, { type: undefined, decorators: [{
7217
7630
  type: Optional
7218
7631
  }, {
7219
7632
  type: Inject,
7220
- args: [NAE_INFORM_ABOUT_INVALID_DATA]
7221
- }] }, { type: i2$1.DomSanitizer }];
7633
+ args: [DATA_FIELD_PORTAL_DATA]
7634
+ }] }];
7222
7635
  }, propDecorators: { taskId: [{
7223
7636
  type: Input
7224
- }], dataField: [{
7225
- type: Input
7226
7637
  }], fileUploadEl: [{
7227
7638
  type: ViewChild,
7228
7639
  args: ['fileUploadInput']
@@ -7234,9 +7645,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
7234
7645
  args: ['imageDiv']
7235
7646
  }] } });
7236
7647
 
7648
+ /**
7649
+ * @deprecated
7650
+ * */
7237
7651
  class AbstractFileListFieldComponent extends AbstractDataFieldComponent {
7238
- constructor(_taskResourceService, _log, _snackbar, _translate, _eventService, informAboutInvalidData) {
7652
+ constructor(informAboutInvalidData) {
7239
7653
  super(informAboutInvalidData);
7654
+ }
7655
+ }
7656
+ AbstractFileListFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFileListFieldComponent, deps: [{ token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
7657
+ AbstractFileListFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractFileListFieldComponent, selector: "ncc-abstract-filelist-field", inputs: { dataField: "dataField", taskId: "taskId" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
7658
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFileListFieldComponent, decorators: [{
7659
+ type: Component,
7660
+ args: [{
7661
+ selector: 'ncc-abstract-filelist-field',
7662
+ template: ''
7663
+ }]
7664
+ }], ctorParameters: function () {
7665
+ return [{ type: undefined, decorators: [{
7666
+ type: Optional
7667
+ }, {
7668
+ type: Inject,
7669
+ args: [NAE_INFORM_ABOUT_INVALID_DATA]
7670
+ }] }];
7671
+ }, propDecorators: { dataField: [{
7672
+ type: Input
7673
+ }], taskId: [{
7674
+ type: Input
7675
+ }] } });
7676
+
7677
+ class AbstractFileListDefaultFieldComponent extends AbstractBaseDataFieldComponent {
7678
+ constructor(_taskResourceService, _log, _snackbar, _translate, _eventService, dataFieldPortalData) {
7679
+ super(dataFieldPortalData);
7240
7680
  this._taskResourceService = _taskResourceService;
7241
7681
  this._log = _log;
7242
7682
  this._snackbar = _snackbar;
@@ -7245,9 +7685,9 @@ class AbstractFileListFieldComponent extends AbstractDataFieldComponent {
7245
7685
  this.state = this.defaultState;
7246
7686
  this.uploadedFiles = new Array();
7247
7687
  this.maxFilesNumber = Number.POSITIVE_INFINITY;
7688
+ this.taskId = dataFieldPortalData.additionalFieldProperties.taskId;
7248
7689
  }
7249
7690
  ngOnInit() {
7250
- super.ngOnInit();
7251
7691
  this.valueChange$ = this.dataField.valueChanges().subscribe(() => {
7252
7692
  this.parseResponse();
7253
7693
  });
@@ -7276,7 +7716,7 @@ class AbstractFileListFieldComponent extends AbstractDataFieldComponent {
7276
7716
  this.valueChange$.unsubscribe();
7277
7717
  }
7278
7718
  chooseFile() {
7279
- if (this.state.uploading || this.formControl.disabled) {
7719
+ if (this.state.uploading || this.formControlRef.disabled) {
7280
7720
  return;
7281
7721
  }
7282
7722
  this.fileUploadEl.nativeElement.click();
@@ -7360,7 +7800,7 @@ class AbstractFileListFieldComponent extends AbstractDataFieldComponent {
7360
7800
  filesToUpload.forEach(fileToUpload => {
7361
7801
  this.uploadedFiles.push(fileToUpload.name);
7362
7802
  this.dataField.value.namesPaths.push({ name: fileToUpload.name });
7363
- this.formControl.setValue(this.dataField.value.namesPaths.map(namePath => {
7803
+ this.formControlRef.setValue(this.dataField.value.namesPaths.map(namePath => {
7364
7804
  return namePath['name'];
7365
7805
  }).join('/'));
7366
7806
  });
@@ -7447,14 +7887,14 @@ class AbstractFileListFieldComponent extends AbstractDataFieldComponent {
7447
7887
  this.uploadedFiles = this.uploadedFiles.filter(uploadedFile => uploadedFile !== fileName);
7448
7888
  if (this.dataField.value.namesPaths) {
7449
7889
  this.dataField.value.namesPaths = this.dataField.value.namesPaths.filter(namePath => namePath.name !== fileName);
7450
- this.formControl.setValue(this.dataField.value.namesPaths.map(namePath => {
7890
+ this.formControlRef.setValue(this.dataField.value.namesPaths.map(namePath => {
7451
7891
  return namePath['name'];
7452
7892
  }).join('/'));
7453
7893
  this.dataField.update();
7454
7894
  }
7455
7895
  this.dataField.downloaded = this.dataField.downloaded.filter(one => one !== fileName);
7456
7896
  this._log.debug(`File [${this.dataField.stringId}] ${fileName} was successfully deleted`);
7457
- this.formControl.markAsTouched();
7897
+ this.formControlRef.markAsTouched();
7458
7898
  }
7459
7899
  else {
7460
7900
  this._log.error(`Deleting file [${this.dataField.stringId}] ${fileName} has failed!`, response.error);
@@ -7497,13 +7937,21 @@ class AbstractFileListFieldComponent extends AbstractDataFieldComponent {
7497
7937
  resolveParentTaskId() {
7498
7938
  return !!this.dataField.parentTaskId ? this.dataField.parentTaskId : this.taskId;
7499
7939
  }
7940
+ getCutProperty(i18nLabel) {
7941
+ if (this.labelWidth !== i18nLabel.offsetWidth) {
7942
+ this.labelWidth = i18nLabel.offsetWidth;
7943
+ const calculatedWidth = 'calc(0.5em + ' + i18nLabel.offsetWidth / 4 * 3 + 'px)';
7944
+ this.cutProperty = `polygon(0 0, 0 100%, 100% 100%, 100% 0%, ${calculatedWidth} 0, ${calculatedWidth} 3px, 0.5em 3px, 0.5em 0)`;
7945
+ }
7946
+ return this.cutProperty;
7947
+ }
7500
7948
  }
7501
- AbstractFileListFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFileListFieldComponent, deps: [{ token: TaskResourceService }, { token: LoggerService }, { token: SnackBarService }, { token: i1$2.TranslateService }, { token: EventService }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
7502
- AbstractFileListFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractFileListFieldComponent, selector: "ncc-abstract-filelist-field", inputs: { taskId: "taskId", dataField: "dataField" }, viewQueries: [{ propertyName: "fileUploadEl", first: true, predicate: ["fileUploadInput"], descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
7503
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFileListFieldComponent, decorators: [{
7949
+ AbstractFileListDefaultFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFileListDefaultFieldComponent, deps: [{ token: TaskResourceService }, { token: LoggerService }, { token: SnackBarService }, { token: i1$2.TranslateService }, { token: EventService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
7950
+ AbstractFileListDefaultFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractFileListDefaultFieldComponent, selector: "ncc-abstract-file-list-default-field", inputs: { taskId: "taskId" }, viewQueries: [{ propertyName: "fileUploadEl", first: true, predicate: ["fileUploadInput"], descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
7951
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFileListDefaultFieldComponent, decorators: [{
7504
7952
  type: Component,
7505
7953
  args: [{
7506
- selector: 'ncc-abstract-filelist-field',
7954
+ selector: 'ncc-abstract-file-list-default-field',
7507
7955
  template: ''
7508
7956
  }]
7509
7957
  }], ctorParameters: function () {
@@ -7511,17 +7959,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
7511
7959
  type: Optional
7512
7960
  }, {
7513
7961
  type: Inject,
7514
- args: [NAE_INFORM_ABOUT_INVALID_DATA]
7962
+ args: [DATA_FIELD_PORTAL_DATA]
7515
7963
  }] }];
7516
7964
  }, propDecorators: { taskId: [{
7517
7965
  type: Input
7518
- }], dataField: [{
7519
- type: Input
7520
7966
  }], fileUploadEl: [{
7521
7967
  type: ViewChild,
7522
7968
  args: ['fileUploadInput']
7523
7969
  }] } });
7524
7970
 
7971
+ /**
7972
+ * @deprecated
7973
+ * */
7525
7974
  class AbstractMultichoiceFieldComponent extends AbstractDataFieldComponent {
7526
7975
  constructor(informAboutInvalidData) {
7527
7976
  super(informAboutInvalidData);
@@ -7553,13 +8002,15 @@ var MultichoiceAutocompleteFilterProperty;
7553
8002
  MultichoiceAutocompleteFilterProperty["SUBSTRING"] = "substring";
7554
8003
  })(MultichoiceAutocompleteFilterProperty || (MultichoiceAutocompleteFilterProperty = {}));
7555
8004
 
7556
- class AbstractMultichoiceAutocompleteFieldComponentComponent {
7557
- constructor() {
8005
+ class AbstractMultichoiceAutocompleteFieldComponentComponent extends AbstractBaseDataFieldComponent {
8006
+ constructor(dataFieldPortalData) {
8007
+ super(dataFieldPortalData);
7558
8008
  this.separatorKeysCodes = [ENTER, COMMA];
7559
8009
  this.renderSelection = (key) => {
7560
8010
  if (key !== undefined && key !== '' && key !== null) {
7561
- if (this.multichoiceField.choices.find(choice => choice.key === key)) {
7562
- return this.multichoiceField.choices.find(choice => choice.key === key).value;
8011
+ const choice = this.dataField.choices.find(c => c.key === key);
8012
+ if (choice) {
8013
+ return choice.value;
7563
8014
  }
7564
8015
  }
7565
8016
  return key;
@@ -7567,7 +8018,7 @@ class AbstractMultichoiceAutocompleteFieldComponentComponent {
7567
8018
  }
7568
8019
  ngOnInit() {
7569
8020
  this.subscriptionChangeData$ = this.formControlRef.valueChanges.subscribe(newVal => {
7570
- this.filteredOptions = of(this._filter(newVal !== null && newVal !== void 0 ? newVal : '').filter((option) => { var _a; return !((_a = this.multichoiceField.value) === null || _a === void 0 ? void 0 : _a.includes(option.key)); }));
8021
+ this.filteredOptions = of(this._filter(newVal !== null && newVal !== void 0 ? newVal : '').filter((option) => { var _a; return !((_a = this.dataField.value) === null || _a === void 0 ? void 0 : _a.includes(option.key)); }));
7571
8022
  });
7572
8023
  }
7573
8024
  ngOnDestroy() {
@@ -7578,10 +8029,10 @@ class AbstractMultichoiceAutocompleteFieldComponentComponent {
7578
8029
  var _a;
7579
8030
  const value = (_a = event['key']) !== null && _a !== void 0 ? _a : '';
7580
8031
  if (value) {
7581
- this.multichoiceField.value = this.multichoiceField.value === null ? [] : this.multichoiceField.value;
7582
- const choiceArray = [...this.multichoiceField.value];
8032
+ this.dataField.value = this.dataField.value === null ? [] : this.dataField.value;
8033
+ const choiceArray = [...this.dataField.value];
7583
8034
  choiceArray.push(value);
7584
- this.multichoiceField.value = choiceArray;
8035
+ this.dataField.value = choiceArray;
7585
8036
  this.input.nativeElement.value = '';
7586
8037
  this.change();
7587
8038
  }
@@ -7591,25 +8042,22 @@ class AbstractMultichoiceAutocompleteFieldComponentComponent {
7591
8042
  }
7592
8043
  }
7593
8044
  remove(value) {
7594
- const index = this.multichoiceField.value.indexOf(value);
8045
+ const index = this.dataField.value.indexOf(value);
7595
8046
  if (index >= 0) {
7596
- const choiceArray = [...this.multichoiceField.value];
8047
+ const choiceArray = [...this.dataField.value];
7597
8048
  choiceArray.splice(index, 1);
7598
- this.multichoiceField.value = choiceArray;
8049
+ this.dataField.value = choiceArray;
7599
8050
  this.change();
7600
8051
  }
7601
8052
  }
7602
8053
  change() {
7603
8054
  if (this.input.nativeElement.value !== undefined) {
7604
- this.filteredOptions = of(this._filter(this.input.nativeElement.value).filter((option) => !this.multichoiceField.value.includes(option.key)));
8055
+ this.filteredOptions = of(this._filter(this.input.nativeElement.value).filter((option) => !this.dataField.value.includes(option.key)));
7605
8056
  }
7606
8057
  }
7607
- checkPropertyInComponent(property) {
7608
- return !!this.multichoiceField.component && !!this.multichoiceField.component.properties && property in this.multichoiceField.component.properties;
7609
- }
7610
8058
  filterType() {
7611
8059
  if (this.checkPropertyInComponent('filter')) {
7612
- return this.multichoiceField.component.properties.filter;
8060
+ return this.dataField.component.properties.filter;
7613
8061
  }
7614
8062
  }
7615
8063
  _filter(value) {
@@ -7629,76 +8077,88 @@ class AbstractMultichoiceAutocompleteFieldComponentComponent {
7629
8077
  value = '';
7630
8078
  }
7631
8079
  const filterValue = value === null || value === void 0 ? void 0 : value.toLowerCase().normalize('NFD').replace(/[\u0300-\u036f]/g, '');
7632
- return this.multichoiceField.choices.filter(option => option.value.toLowerCase().normalize('NFD').replace(/[\u0300-\u036f]/g, '').includes(filterValue));
8080
+ return this.dataField.choices.filter(option => option.value.toLowerCase().normalize('NFD').replace(/[\u0300-\u036f]/g, '').includes(filterValue));
7633
8081
  }
7634
8082
  _filterIndexOf(value) {
7635
8083
  if (Array.isArray(value)) {
7636
8084
  value = '';
7637
8085
  }
7638
8086
  const filterValue = value === null || value === void 0 ? void 0 : value.toLowerCase().normalize('NFD').replace(/[\u0300-\u036f]/g, '');
7639
- return this.multichoiceField.choices.filter(option => option.value.toLowerCase().normalize('NFD')
8087
+ return this.dataField.choices.filter(option => option.value.toLowerCase().normalize('NFD')
7640
8088
  .replace(/[\u0300-\u036f]/g, '').indexOf(filterValue) === 0);
7641
8089
  }
7642
8090
  getValueFromKey(key) {
7643
8091
  var _a;
7644
- return (_a = this.multichoiceField.choices.find(choice => choice.key === key)) === null || _a === void 0 ? void 0 : _a.value;
8092
+ return (_a = this.dataField.choices.find(choice => choice.key === key)) === null || _a === void 0 ? void 0 : _a.value;
7645
8093
  }
7646
8094
  }
7647
- AbstractMultichoiceAutocompleteFieldComponentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractMultichoiceAutocompleteFieldComponentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
7648
- AbstractMultichoiceAutocompleteFieldComponentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractMultichoiceAutocompleteFieldComponentComponent, selector: "ncc-abstract-multichoice-autocomplete-field", inputs: { multichoiceField: "multichoiceField", formControlRef: "formControlRef", showLargeLayout: "showLargeLayout" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: '', isInline: true });
8095
+ AbstractMultichoiceAutocompleteFieldComponentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractMultichoiceAutocompleteFieldComponentComponent, deps: [{ token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8096
+ AbstractMultichoiceAutocompleteFieldComponentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractMultichoiceAutocompleteFieldComponentComponent, selector: "ncc-abstract-multichoice-autocomplete-field", viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
7649
8097
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractMultichoiceAutocompleteFieldComponentComponent, decorators: [{
7650
8098
  type: Component,
7651
8099
  args: [{
7652
8100
  selector: 'ncc-abstract-multichoice-autocomplete-field',
7653
8101
  template: ''
7654
8102
  }]
7655
- }], propDecorators: { multichoiceField: [{
7656
- type: Input
7657
- }], formControlRef: [{
7658
- type: Input
7659
- }], showLargeLayout: [{
7660
- type: Input
7661
- }], input: [{
8103
+ }], ctorParameters: function () {
8104
+ return [{ type: undefined, decorators: [{
8105
+ type: Optional
8106
+ }, {
8107
+ type: Inject,
8108
+ args: [DATA_FIELD_PORTAL_DATA]
8109
+ }] }];
8110
+ }, propDecorators: { input: [{
7662
8111
  type: ViewChild,
7663
8112
  args: ['input']
7664
8113
  }] } });
7665
8114
 
7666
- class AbstractMultichoiceListFieldComponent {
8115
+ class AbstractMultichoiceListFieldComponent extends AbstractBaseDataFieldComponent {
8116
+ constructor(dataFieldPortalData) {
8117
+ super(dataFieldPortalData);
8118
+ }
7667
8119
  }
7668
- AbstractMultichoiceListFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractMultichoiceListFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
7669
- AbstractMultichoiceListFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractMultichoiceListFieldComponent, selector: "ncc-abstract-multichoice-list-field", inputs: { multichoiceField: "multichoiceField", formControlRef: "formControlRef", showLargeLayout: "showLargeLayout" }, ngImport: i0, template: '', isInline: true });
8120
+ AbstractMultichoiceListFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractMultichoiceListFieldComponent, deps: [{ token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8121
+ AbstractMultichoiceListFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractMultichoiceListFieldComponent, selector: "ncc-abstract-multichoice-list-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
7670
8122
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractMultichoiceListFieldComponent, decorators: [{
7671
8123
  type: Component,
7672
8124
  args: [{
7673
8125
  selector: 'ncc-abstract-multichoice-list-field',
7674
8126
  template: ''
7675
8127
  }]
7676
- }], propDecorators: { multichoiceField: [{
7677
- type: Input
7678
- }], formControlRef: [{
7679
- type: Input
7680
- }], showLargeLayout: [{
7681
- type: Input
7682
- }] } });
8128
+ }], ctorParameters: function () {
8129
+ return [{ type: undefined, decorators: [{
8130
+ type: Optional
8131
+ }, {
8132
+ type: Inject,
8133
+ args: [DATA_FIELD_PORTAL_DATA]
8134
+ }] }];
8135
+ } });
7683
8136
 
7684
- class AbstractMultichoiceSelectFieldComponent {
8137
+ class AbstractMultichoiceSelectFieldComponent extends AbstractBaseDataFieldComponent {
8138
+ constructor(dataFieldPortalData) {
8139
+ super(dataFieldPortalData);
8140
+ }
7685
8141
  }
7686
- AbstractMultichoiceSelectFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractMultichoiceSelectFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
7687
- AbstractMultichoiceSelectFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractMultichoiceSelectFieldComponent, selector: "ncc-abstract-multichoice-select-field", inputs: { multichoiceField: "multichoiceField", formControlRef: "formControlRef", showLargeLayout: "showLargeLayout" }, ngImport: i0, template: '', isInline: true });
8142
+ AbstractMultichoiceSelectFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractMultichoiceSelectFieldComponent, deps: [{ token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8143
+ AbstractMultichoiceSelectFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractMultichoiceSelectFieldComponent, selector: "ncc-abstract-multichoice-select-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
7688
8144
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractMultichoiceSelectFieldComponent, decorators: [{
7689
8145
  type: Component,
7690
8146
  args: [{
7691
8147
  selector: 'ncc-abstract-multichoice-select-field',
7692
8148
  template: ''
7693
8149
  }]
7694
- }], propDecorators: { multichoiceField: [{
7695
- type: Input
7696
- }], formControlRef: [{
7697
- type: Input
7698
- }], showLargeLayout: [{
7699
- type: Input
7700
- }] } });
8150
+ }], ctorParameters: function () {
8151
+ return [{ type: undefined, decorators: [{
8152
+ type: Optional
8153
+ }, {
8154
+ type: Inject,
8155
+ args: [DATA_FIELD_PORTAL_DATA]
8156
+ }] }];
8157
+ } });
7701
8158
 
8159
+ /**
8160
+ * @deprecated
8161
+ * */
7702
8162
  class AbstractNumberFieldComponent extends AbstractDataFieldComponent {
7703
8163
  constructor(_translate, informAboutInvalidData) {
7704
8164
  super(informAboutInvalidData);
@@ -7724,8 +8184,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
7724
8184
  type: Input
7725
8185
  }] } });
7726
8186
 
7727
- class AbstractNumberErrorsComponent {
7728
- constructor(_translate) {
8187
+ class AbstractNumberErrorsComponent extends AbstractBaseDataFieldComponent {
8188
+ constructor(_translate, dataFieldPortalData) {
8189
+ super(dataFieldPortalData);
7729
8190
  this._translate = _translate;
7730
8191
  }
7731
8192
  getErrorMessage() {
@@ -7748,38 +8209,39 @@ class AbstractNumberErrorsComponent {
7748
8209
  return this.resolveErrorMessage(NumberFieldValidation.DECIMAL, this._translate.instant('dataField.validations.decimal'));
7749
8210
  }
7750
8211
  if (this.formControlRef.hasError(NumberFieldValidation.VALID_IN_RANGE)) {
7751
- const tmp = this.numberField.validations.find(value => value.validationRule.includes(NumberFieldValidation.IN_RANGE)).validationRule.split(' ');
8212
+ const tmp = this.dataField.validations.find(value => value.validationRule.includes(NumberFieldValidation.IN_RANGE)).validationRule.split(' ');
7752
8213
  return this.resolveErrorMessage(NumberFieldValidation.IN_RANGE, this._translate.instant('dataField.validations.inrange', { range: tmp[1] }));
7753
8214
  }
7754
8215
  return '';
7755
8216
  }
7756
8217
  resolveErrorMessage(search, generalMessage) {
7757
- const validation = this.numberField.validations.find(value => value.validationRule.includes(search));
8218
+ const validation = this.dataField.validations.find(value => value.validationRule.includes(search));
7758
8219
  if (validation.validationMessage && validation.validationMessage !== '') {
7759
8220
  return validation.validationMessage;
7760
8221
  }
7761
8222
  return generalMessage;
7762
8223
  }
7763
8224
  }
7764
- AbstractNumberErrorsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractNumberErrorsComponent, deps: [{ token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
7765
- AbstractNumberErrorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractNumberErrorsComponent, selector: "ncc-abstract-number-errors-field", inputs: { showLargeLayout: "showLargeLayout", formControlRef: "formControlRef", numberField: "numberField" }, ngImport: i0, template: '', isInline: true });
8225
+ AbstractNumberErrorsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractNumberErrorsComponent, deps: [{ token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8226
+ AbstractNumberErrorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractNumberErrorsComponent, selector: "ncc-abstract-number-errors-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
7766
8227
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractNumberErrorsComponent, decorators: [{
7767
8228
  type: Component,
7768
8229
  args: [{
7769
8230
  selector: 'ncc-abstract-number-errors-field',
7770
8231
  template: ''
7771
8232
  }]
7772
- }], ctorParameters: function () { return [{ type: i1$2.TranslateService }]; }, propDecorators: { showLargeLayout: [{
7773
- type: Input
7774
- }], formControlRef: [{
7775
- type: Input
7776
- }], numberField: [{
7777
- type: Input
7778
- }] } });
8233
+ }], ctorParameters: function () {
8234
+ return [{ type: i1$2.TranslateService }, { type: undefined, decorators: [{
8235
+ type: Optional
8236
+ }, {
8237
+ type: Inject,
8238
+ args: [DATA_FIELD_PORTAL_DATA]
8239
+ }] }];
8240
+ } });
7779
8241
 
7780
8242
  class AbstractCurrencyNumberFieldComponent extends AbstractNumberErrorsComponent {
7781
- constructor(_currencyPipe, translateService) {
7782
- super(translateService);
8243
+ constructor(_currencyPipe, translateService, dataFieldPortalData) {
8244
+ super(translateService, dataFieldPortalData);
7783
8245
  this._currencyPipe = _currencyPipe;
7784
8246
  this.NUMBER_TYPE = 'number';
7785
8247
  this.TEXT_TYPE = 'text';
@@ -7788,8 +8250,8 @@ class AbstractCurrencyNumberFieldComponent extends AbstractNumberErrorsComponent
7788
8250
  ngAfterViewInit() {
7789
8251
  var _a;
7790
8252
  this.fieldType = this.TEXT_TYPE;
7791
- this.transformedValue = this.transformCurrency((_a = this.numberField.value) === null || _a === void 0 ? void 0 : _a.toString());
7792
- this.numberField.valueChanges().subscribe(value => {
8253
+ this.transformedValue = this.transformCurrency((_a = this.dataField.value) === null || _a === void 0 ? void 0 : _a.toString());
8254
+ this.dataField.valueChanges().subscribe(value => {
7793
8255
  if (value !== undefined && value !== null) {
7794
8256
  if (this.fieldType === this.TEXT_TYPE) {
7795
8257
  this.transformedValue = this.transformCurrency(value.toString()) + this.WHITESPACE;
@@ -7807,26 +8269,26 @@ class AbstractCurrencyNumberFieldComponent extends AbstractNumberErrorsComponent
7807
8269
  }
7808
8270
  transformToNumber() {
7809
8271
  this.fieldType = this.NUMBER_TYPE;
7810
- this.transformedValue = !!this.numberField.value ? this.numberField.value.toString() : '0';
8272
+ this.transformedValue = !!this.dataField.value ? this.dataField.value.toString() : '0';
7811
8273
  }
7812
8274
  getCurrencySymbol() {
7813
- if (this.numberField._formatFilter === undefined) {
7814
- return getCurrencySymbol(this.numberField.component.properties['code'], 'wide', this.numberField.component.properties['locale']);
8275
+ if (this.dataField._formatFilter === undefined) {
8276
+ return getCurrencySymbol(this.dataField.component.properties['code'], 'wide', this.dataField.component.properties['locale']);
7815
8277
  }
7816
- return getCurrencySymbol(this.numberField._formatFilter.code, 'wide', this.numberField._formatFilter.locale);
8278
+ return getCurrencySymbol(this.dataField._formatFilter.code, 'wide', this.dataField._formatFilter.locale);
7817
8279
  }
7818
8280
  isNumberType() {
7819
8281
  return this.fieldType === this.NUMBER_TYPE;
7820
8282
  }
7821
8283
  transformCurrency(value) {
7822
8284
  value = !!value ? value : '0';
7823
- if (this.numberField._formatFilter === undefined) {
7824
- return this._currencyPipe.transform(parseFloat(value), this.numberField.component.properties['code'], 'symbol', '1.' + this.numberField.component.properties['fractionSize'] + '-' + this.numberField.component.properties['fractionSize'], this.numberField.component.properties['locale']);
8285
+ if (this.dataField._formatFilter === undefined) {
8286
+ return this._currencyPipe.transform(parseFloat(value), this.dataField.component.properties['code'], 'symbol', '1.' + this.dataField.component.properties['fractionSize'] + '-' + this.dataField.component.properties['fractionSize'], this.dataField.component.properties['locale']);
7825
8287
  }
7826
- return this._currencyPipe.transform(parseFloat(value), this.numberField._formatFilter.code, 'symbol', '1.' + this.numberField._formatFilter.fractionSize + '-' + this.numberField._formatFilter.fractionSize, this.numberField._formatFilter.locale);
8288
+ return this._currencyPipe.transform(parseFloat(value), this.dataField._formatFilter.code, 'symbol', '1.' + this.dataField._formatFilter.fractionSize + '-' + this.dataField._formatFilter.fractionSize, this.dataField._formatFilter.locale);
7827
8289
  }
7828
8290
  }
7829
- AbstractCurrencyNumberFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractCurrencyNumberFieldComponent, deps: [{ token: i5.CurrencyPipe }, { token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
8291
+ AbstractCurrencyNumberFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractCurrencyNumberFieldComponent, deps: [{ token: i5.CurrencyPipe }, { token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
7830
8292
  AbstractCurrencyNumberFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractCurrencyNumberFieldComponent, selector: "ncc-abstract-currency-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
7831
8293
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractCurrencyNumberFieldComponent, decorators: [{
7832
8294
  type: Component,
@@ -7834,14 +8296,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
7834
8296
  selector: 'ncc-abstract-currency-field',
7835
8297
  template: ''
7836
8298
  }]
7837
- }], ctorParameters: function () { return [{ type: i5.CurrencyPipe }, { type: i1$2.TranslateService }]; } });
8299
+ }], ctorParameters: function () {
8300
+ return [{ type: i5.CurrencyPipe }, { type: i1$2.TranslateService }, { type: undefined, decorators: [{
8301
+ type: Optional
8302
+ }, {
8303
+ type: Inject,
8304
+ args: [DATA_FIELD_PORTAL_DATA]
8305
+ }] }];
8306
+ } });
7838
8307
 
7839
8308
  class AbstractDefaultNumberFieldComponent extends AbstractNumberErrorsComponent {
7840
- constructor(translateService) {
7841
- super(translateService);
8309
+ constructor(translateService, dataFieldPortalData) {
8310
+ super(translateService, dataFieldPortalData);
7842
8311
  }
7843
8312
  }
7844
- AbstractDefaultNumberFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDefaultNumberFieldComponent, deps: [{ token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
8313
+ AbstractDefaultNumberFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDefaultNumberFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
7845
8314
  AbstractDefaultNumberFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractDefaultNumberFieldComponent, selector: "ncc-abstract-number-default-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
7846
8315
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDefaultNumberFieldComponent, decorators: [{
7847
8316
  type: Component,
@@ -7849,7 +8318,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
7849
8318
  selector: 'ncc-abstract-number-default-field',
7850
8319
  template: ''
7851
8320
  }]
7852
- }], ctorParameters: function () { return [{ type: i1$2.TranslateService }]; } });
8321
+ }], ctorParameters: function () {
8322
+ return [{ type: i1$2.TranslateService }, { type: undefined, decorators: [{
8323
+ type: Optional
8324
+ }, {
8325
+ type: Inject,
8326
+ args: [DATA_FIELD_PORTAL_DATA]
8327
+ }] }];
8328
+ } });
7853
8329
 
7854
8330
  class AbstractTextFieldComponent extends AbstractDataFieldComponent {
7855
8331
  constructor(informAboutInvalidData) {
@@ -7875,8 +8351,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
7875
8351
  type: Input
7876
8352
  }] } });
7877
8353
 
7878
- class AbstractTextErrorsComponent {
7879
- constructor(_translate) {
8354
+ class AbstractTextErrorsComponent extends AbstractBaseDataFieldComponent {
8355
+ constructor(_translate, dataFieldPortalData) {
8356
+ super(dataFieldPortalData);
7880
8357
  this._translate = _translate;
7881
8358
  }
7882
8359
  buildErrorMessage(textField, formControlRef) {
@@ -7908,61 +8385,79 @@ class AbstractTextErrorsComponent {
7908
8385
  return generalMessage;
7909
8386
  }
7910
8387
  }
8388
+ AbstractTextErrorsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractTextErrorsComponent, deps: [{ token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8389
+ AbstractTextErrorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractTextErrorsComponent, selector: "ncc-text-errors", usesInheritance: true, ngImport: i0, template: '', isInline: true });
8390
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractTextErrorsComponent, decorators: [{
8391
+ type: Component,
8392
+ args: [{
8393
+ selector: 'ncc-text-errors',
8394
+ template: ''
8395
+ }]
8396
+ }], ctorParameters: function () {
8397
+ return [{ type: i1$2.TranslateService }, { type: undefined, decorators: [{
8398
+ type: Optional
8399
+ }, {
8400
+ type: Inject,
8401
+ args: [DATA_FIELD_PORTAL_DATA]
8402
+ }] }];
8403
+ } });
7911
8404
 
7912
8405
  class AbstractSimpleTextFieldComponent extends AbstractTextErrorsComponent {
7913
- constructor(_translate) {
7914
- super(_translate);
8406
+ constructor(_translate, dataFieldPortalData) {
8407
+ super(_translate, dataFieldPortalData);
7915
8408
  this._translate = _translate;
7916
8409
  }
7917
8410
  getErrorMessage() {
7918
- return this.buildErrorMessage(this.textField, this.formControlRef);
8411
+ return this.buildErrorMessage(this.dataField, this.formControlRef);
7919
8412
  }
7920
8413
  }
7921
- AbstractSimpleTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractSimpleTextFieldComponent, deps: [{ token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
7922
- AbstractSimpleTextFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractSimpleTextFieldComponent, selector: "ncc-abstract-simple-text-field", inputs: { textField: "textField", formControlRef: "formControlRef", showLargeLayout: "showLargeLayout" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
8414
+ AbstractSimpleTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractSimpleTextFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8415
+ AbstractSimpleTextFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractSimpleTextFieldComponent, selector: "ncc-abstract-simple-text-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
7923
8416
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractSimpleTextFieldComponent, decorators: [{
7924
8417
  type: Component,
7925
8418
  args: [{
7926
8419
  selector: 'ncc-abstract-simple-text-field',
7927
8420
  template: ''
7928
8421
  }]
7929
- }], ctorParameters: function () { return [{ type: i1$2.TranslateService }]; }, propDecorators: { textField: [{
7930
- type: Input
7931
- }], formControlRef: [{
7932
- type: Input
7933
- }], showLargeLayout: [{
7934
- type: Input
7935
- }] } });
8422
+ }], ctorParameters: function () {
8423
+ return [{ type: i1$2.TranslateService }, { type: undefined, decorators: [{
8424
+ type: Optional
8425
+ }, {
8426
+ type: Inject,
8427
+ args: [DATA_FIELD_PORTAL_DATA]
8428
+ }] }];
8429
+ } });
7936
8430
 
7937
8431
  class AbstractRichTextareaFieldComponent extends AbstractTextErrorsComponent {
7938
8432
  // TODO BUG: update on blur dont working, switch back to update on ngModel
7939
- constructor(_translate) {
7940
- super(_translate);
8433
+ constructor(_translate, dataFieldPortalData) {
8434
+ super(_translate, dataFieldPortalData);
7941
8435
  this._translate = _translate;
7942
8436
  }
7943
8437
  getErrorMessage() {
7944
- return this.buildErrorMessage(this.textAreaField, this.formControlRef);
8438
+ return this.buildErrorMessage(this.dataField, this.formControlRef);
7945
8439
  }
7946
8440
  }
7947
- AbstractRichTextareaFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractRichTextareaFieldComponent, deps: [{ token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
7948
- AbstractRichTextareaFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractRichTextareaFieldComponent, selector: "ncc-abstract-rich-text-field", inputs: { textAreaField: "textAreaField", formControlRef: "formControlRef", showLargeLayout: "showLargeLayout" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
8441
+ AbstractRichTextareaFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractRichTextareaFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8442
+ AbstractRichTextareaFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractRichTextareaFieldComponent, selector: "ncc-abstract-rich-text-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
7949
8443
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractRichTextareaFieldComponent, decorators: [{
7950
8444
  type: Component,
7951
8445
  args: [{
7952
8446
  selector: 'ncc-abstract-rich-text-field',
7953
8447
  template: ''
7954
8448
  }]
7955
- }], ctorParameters: function () { return [{ type: i1$2.TranslateService }]; }, propDecorators: { textAreaField: [{
7956
- type: Input
7957
- }], formControlRef: [{
7958
- type: Input
7959
- }], showLargeLayout: [{
7960
- type: Input
7961
- }] } });
8449
+ }], ctorParameters: function () {
8450
+ return [{ type: i1$2.TranslateService }, { type: undefined, decorators: [{
8451
+ type: Optional
8452
+ }, {
8453
+ type: Inject,
8454
+ args: [DATA_FIELD_PORTAL_DATA]
8455
+ }] }];
8456
+ } });
7962
8457
 
7963
8458
  class AbstractHtmlTextareaFieldComponent extends AbstractTextErrorsComponent {
7964
- constructor(_translate, _sanitizer) {
7965
- super(_translate);
8459
+ constructor(_translate, _sanitizer, dataFieldPortalData) {
8460
+ super(_translate, dataFieldPortalData);
7966
8461
  this._translate = _translate;
7967
8462
  this._sanitizer = _sanitizer;
7968
8463
  this.quillModules = {
@@ -7983,61 +8478,63 @@ class AbstractHtmlTextareaFieldComponent extends AbstractTextErrorsComponent {
7983
8478
  }
7984
8479
  ngOnInit() {
7985
8480
  this.disabledDisplay = this.sanitizeValue();
7986
- this.textAreaField.valueChanges().subscribe(() => {
8481
+ this.dataField.valueChanges().subscribe(() => {
7987
8482
  this.disabledDisplay = this.sanitizeValue();
7988
8483
  });
7989
8484
  }
7990
8485
  sanitizeValue() {
7991
- return this._sanitizer.bypassSecurityTrustHtml(this.textAreaField.value !== undefined ? this.textAreaField.value : '');
8486
+ return this._sanitizer.bypassSecurityTrustHtml(this.dataField.value !== undefined ? this.dataField.value : '');
7992
8487
  }
7993
8488
  getErrorMessage() {
7994
- return this.buildErrorMessage(this.textAreaField, this.formControlRef);
8489
+ return this.buildErrorMessage(this.dataField, this.formControlRef);
7995
8490
  }
7996
8491
  }
7997
- AbstractHtmlTextareaFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractHtmlTextareaFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: i2$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
7998
- AbstractHtmlTextareaFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractHtmlTextareaFieldComponent, selector: "ncc-abstract-html-area-field", inputs: { textAreaField: "textAreaField", formControlRef: "formControlRef", showLargeLayout: "showLargeLayout" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
8492
+ AbstractHtmlTextareaFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractHtmlTextareaFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: i2$1.DomSanitizer }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8493
+ AbstractHtmlTextareaFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractHtmlTextareaFieldComponent, selector: "ncc-abstract-html-area-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
7999
8494
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractHtmlTextareaFieldComponent, decorators: [{
8000
8495
  type: Component,
8001
8496
  args: [{
8002
8497
  selector: 'ncc-abstract-html-area-field',
8003
8498
  template: ''
8004
8499
  }]
8005
- }], ctorParameters: function () { return [{ type: i1$2.TranslateService }, { type: i2$1.DomSanitizer }]; }, propDecorators: { textAreaField: [{
8006
- type: Input
8007
- }], formControlRef: [{
8008
- type: Input
8009
- }], showLargeLayout: [{
8010
- type: Input
8011
- }] } });
8500
+ }], ctorParameters: function () {
8501
+ return [{ type: i1$2.TranslateService }, { type: i2$1.DomSanitizer }, { type: undefined, decorators: [{
8502
+ type: Optional
8503
+ }, {
8504
+ type: Inject,
8505
+ args: [DATA_FIELD_PORTAL_DATA]
8506
+ }] }];
8507
+ } });
8012
8508
 
8013
8509
  class AbstractPasswordTextFieldComponent extends AbstractTextErrorsComponent {
8014
- constructor(_translate) {
8015
- super(_translate);
8510
+ constructor(_translate, dataFieldPortalData) {
8511
+ super(_translate, dataFieldPortalData);
8016
8512
  this._translate = _translate;
8017
8513
  }
8018
8514
  getErrorMessage() {
8019
- return this.buildErrorMessage(this.passwordTextField, this.formControlRef);
8515
+ return this.buildErrorMessage(this.dataField, this.formControlRef);
8020
8516
  }
8021
8517
  }
8022
- AbstractPasswordTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractPasswordTextFieldComponent, deps: [{ token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
8023
- AbstractPasswordTextFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractPasswordTextFieldComponent, selector: "ncc-abstract-password-text-field", inputs: { passwordTextField: "passwordTextField", formControlRef: "formControlRef", showLargeLayout: "showLargeLayout" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
8518
+ AbstractPasswordTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractPasswordTextFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8519
+ AbstractPasswordTextFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractPasswordTextFieldComponent, selector: "ncc-abstract-password-text-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
8024
8520
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractPasswordTextFieldComponent, decorators: [{
8025
8521
  type: Component,
8026
8522
  args: [{
8027
8523
  selector: 'ncc-abstract-password-text-field',
8028
8524
  template: ''
8029
8525
  }]
8030
- }], ctorParameters: function () { return [{ type: i1$2.TranslateService }]; }, propDecorators: { passwordTextField: [{
8031
- type: Input
8032
- }], formControlRef: [{
8033
- type: Input
8034
- }], showLargeLayout: [{
8035
- type: Input
8036
- }] } });
8526
+ }], ctorParameters: function () {
8527
+ return [{ type: i1$2.TranslateService }, { type: undefined, decorators: [{
8528
+ type: Optional
8529
+ }, {
8530
+ type: Inject,
8531
+ args: [DATA_FIELD_PORTAL_DATA]
8532
+ }] }];
8533
+ } });
8037
8534
 
8038
8535
  class AbstractTextareaFieldComponent extends AbstractTextErrorsComponent {
8039
- constructor(_translate, _ngZone) {
8040
- super(_translate);
8536
+ constructor(_translate, _ngZone, dataFieldPortalData) {
8537
+ super(_translate, dataFieldPortalData);
8041
8538
  this._translate = _translate;
8042
8539
  this._ngZone = _ngZone;
8043
8540
  }
@@ -8049,34 +8546,35 @@ class AbstractTextareaFieldComponent extends AbstractTextErrorsComponent {
8049
8546
  }
8050
8547
  }
8051
8548
  getHeight() {
8052
- const oneHeight = this.textAreaField.layout && this.textAreaField.layout.appearance === 'outline' ?
8549
+ const oneHeight = this.dataField.layout && this.dataField.layout.appearance === 'outline' ?
8053
8550
  TextAreaHeight.OUTLINE : TextAreaHeight.FILL_STANDARD;
8054
- return this.textAreaField.layout && this.textAreaField.layout.rows && this.textAreaField.layout.rows !== 1 ?
8055
- (this.textAreaField.layout.rows - 1) * TextField.FIELD_HEIGHT + oneHeight : oneHeight;
8551
+ return this.dataField.layout && this.dataField.layout.rows && this.dataField.layout.rows !== 1 ?
8552
+ (this.dataField.layout.rows - 1) * TextField.FIELD_HEIGHT + oneHeight : oneHeight;
8056
8553
  }
8057
8554
  triggerResize() {
8058
8555
  this._ngZone.onStable.pipe(take(1))
8059
8556
  .subscribe(() => this.dynamicTextArea.resizeToFitContent(true));
8060
8557
  }
8061
8558
  getErrorMessage() {
8062
- return this.buildErrorMessage(this.textAreaField, this.formControlRef);
8559
+ return this.buildErrorMessage(this.dataField, this.formControlRef);
8063
8560
  }
8064
8561
  }
8065
- AbstractTextareaFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractTextareaFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
8066
- AbstractTextareaFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractTextareaFieldComponent, selector: "ncc-abstract-text-area-field", inputs: { textAreaField: "textAreaField", formControlRef: "formControlRef", showLargeLayout: "showLargeLayout" }, viewQueries: [{ propertyName: "dynamicTextArea", first: true, predicate: ["dynamicTextArea"], descendants: true }, { propertyName: "textArea", first: true, predicate: ["textArea"], descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
8562
+ AbstractTextareaFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractTextareaFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: i0.NgZone }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8563
+ AbstractTextareaFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractTextareaFieldComponent, selector: "ncc-abstract-text-area-field", viewQueries: [{ propertyName: "dynamicTextArea", first: true, predicate: ["dynamicTextArea"], descendants: true }, { propertyName: "textArea", first: true, predicate: ["textArea"], descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
8067
8564
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractTextareaFieldComponent, decorators: [{
8068
8565
  type: Component,
8069
8566
  args: [{
8070
8567
  selector: 'ncc-abstract-text-area-field',
8071
8568
  template: ''
8072
8569
  }]
8073
- }], ctorParameters: function () { return [{ type: i1$2.TranslateService }, { type: i0.NgZone }]; }, propDecorators: { textAreaField: [{
8074
- type: Input
8075
- }], formControlRef: [{
8076
- type: Input
8077
- }], showLargeLayout: [{
8078
- type: Input
8079
- }], dynamicTextArea: [{
8570
+ }], ctorParameters: function () {
8571
+ return [{ type: i1$2.TranslateService }, { type: i0.NgZone }, { type: undefined, decorators: [{
8572
+ type: Optional
8573
+ }, {
8574
+ type: Inject,
8575
+ args: [DATA_FIELD_PORTAL_DATA]
8576
+ }] }];
8577
+ }, propDecorators: { dynamicTextArea: [{
8080
8578
  type: ViewChild,
8081
8579
  args: ['dynamicTextArea']
8082
8580
  }], textArea: [{
@@ -8085,8 +8583,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
8085
8583
  }] } });
8086
8584
 
8087
8585
  class AbstractDashboardTextFieldComponent extends AbstractTextErrorsComponent {
8088
- constructor(translate) {
8089
- super(translate);
8586
+ constructor(translate, dataFieldPortalData) {
8587
+ super(translate, dataFieldPortalData);
8090
8588
  this.initialized = false;
8091
8589
  }
8092
8590
  ngOnInit() {
@@ -8103,24 +8601,25 @@ class AbstractDashboardTextFieldComponent extends AbstractTextErrorsComponent {
8103
8601
  this._sub.unsubscribe();
8104
8602
  }
8105
8603
  getErrorMessage() {
8106
- return this.buildErrorMessage(this.textField, this.formControlRef);
8604
+ return this.buildErrorMessage(this.dataField, this.formControlRef);
8107
8605
  }
8108
8606
  }
8109
- AbstractDashboardTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDashboardTextFieldComponent, deps: [{ token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
8110
- AbstractDashboardTextFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractDashboardTextFieldComponent, selector: "ncc-abstract-dashboard-text-field", inputs: { textField: "textField", formControlRef: "formControlRef", showLargeLayout: "showLargeLayout" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
8607
+ AbstractDashboardTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDashboardTextFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8608
+ AbstractDashboardTextFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractDashboardTextFieldComponent, selector: "ncc-abstract-dashboard-text-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
8111
8609
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDashboardTextFieldComponent, decorators: [{
8112
8610
  type: Component,
8113
8611
  args: [{
8114
8612
  selector: 'ncc-abstract-dashboard-text-field',
8115
8613
  template: ''
8116
8614
  }]
8117
- }], ctorParameters: function () { return [{ type: i1$2.TranslateService }]; }, propDecorators: { textField: [{
8118
- type: Input
8119
- }], formControlRef: [{
8120
- type: Input
8121
- }], showLargeLayout: [{
8122
- type: Input
8123
- }] } });
8615
+ }], ctorParameters: function () {
8616
+ return [{ type: i1$2.TranslateService }, { type: undefined, decorators: [{
8617
+ type: Optional
8618
+ }, {
8619
+ type: Inject,
8620
+ args: [DATA_FIELD_PORTAL_DATA]
8621
+ }] }];
8622
+ } });
8124
8623
 
8125
8624
  var DashboardCardTypes;
8126
8625
  (function (DashboardCardTypes) {
@@ -8137,8 +8636,8 @@ var DashboardCardTypes;
8137
8636
  })(DashboardCardTypes || (DashboardCardTypes = {}));
8138
8637
 
8139
8638
  class AbstractDashboardLineChartTextFieldComponent extends AbstractDashboardTextFieldComponent {
8140
- constructor(translate) {
8141
- super(translate);
8639
+ constructor(translate, dataFieldPortalData) {
8640
+ super(translate, dataFieldPortalData);
8142
8641
  }
8143
8642
  createCard(textFieldValue) {
8144
8643
  const parsedValue = JSON.parse(textFieldValue);
@@ -8153,7 +8652,7 @@ class AbstractDashboardLineChartTextFieldComponent extends AbstractDashboardText
8153
8652
  };
8154
8653
  }
8155
8654
  }
8156
- AbstractDashboardLineChartTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDashboardLineChartTextFieldComponent, deps: [{ token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
8655
+ AbstractDashboardLineChartTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDashboardLineChartTextFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8157
8656
  AbstractDashboardLineChartTextFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractDashboardLineChartTextFieldComponent, selector: "ncc-abstract-dashboard-line-chart-text-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
8158
8657
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDashboardLineChartTextFieldComponent, decorators: [{
8159
8658
  type: Component,
@@ -8161,11 +8660,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
8161
8660
  selector: 'ncc-abstract-dashboard-line-chart-text-field',
8162
8661
  template: ''
8163
8662
  }]
8164
- }], ctorParameters: function () { return [{ type: i1$2.TranslateService }]; } });
8663
+ }], ctorParameters: function () {
8664
+ return [{ type: i1$2.TranslateService }, { type: undefined, decorators: [{
8665
+ type: Optional
8666
+ }, {
8667
+ type: Inject,
8668
+ args: [DATA_FIELD_PORTAL_DATA]
8669
+ }] }];
8670
+ } });
8165
8671
 
8166
8672
  class AbstractDashboardPieChartTextFieldComponent extends AbstractDashboardTextFieldComponent {
8167
- constructor(translate) {
8168
- super(translate);
8673
+ constructor(translate, dataFieldPortalData) {
8674
+ super(translate, dataFieldPortalData);
8169
8675
  }
8170
8676
  createCard(textFieldValue) {
8171
8677
  const parsedValue = JSON.parse(textFieldValue);
@@ -8178,7 +8684,7 @@ class AbstractDashboardPieChartTextFieldComponent extends AbstractDashboardTextF
8178
8684
  };
8179
8685
  }
8180
8686
  }
8181
- AbstractDashboardPieChartTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDashboardPieChartTextFieldComponent, deps: [{ token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
8687
+ AbstractDashboardPieChartTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDashboardPieChartTextFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8182
8688
  AbstractDashboardPieChartTextFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractDashboardPieChartTextFieldComponent, selector: "ncc-abstract-dashboard-pie-chart-text-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
8183
8689
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDashboardPieChartTextFieldComponent, decorators: [{
8184
8690
  type: Component,
@@ -8186,11 +8692,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
8186
8692
  selector: 'ncc-abstract-dashboard-pie-chart-text-field',
8187
8693
  template: ''
8188
8694
  }]
8189
- }], ctorParameters: function () { return [{ type: i1$2.TranslateService }]; } });
8695
+ }], ctorParameters: function () {
8696
+ return [{ type: i1$2.TranslateService }, { type: undefined, decorators: [{
8697
+ type: Optional
8698
+ }, {
8699
+ type: Inject,
8700
+ args: [DATA_FIELD_PORTAL_DATA]
8701
+ }] }];
8702
+ } });
8190
8703
 
8191
8704
  class AbstractDashboardBarChartTextFieldComponent extends AbstractDashboardTextFieldComponent {
8192
- constructor(translate) {
8193
- super(translate);
8705
+ constructor(translate, dataFieldPortalData) {
8706
+ super(translate, dataFieldPortalData);
8194
8707
  }
8195
8708
  createCard(textFieldValue) {
8196
8709
  const parsedValue = JSON.parse(textFieldValue);
@@ -8205,7 +8718,7 @@ class AbstractDashboardBarChartTextFieldComponent extends AbstractDashboardTextF
8205
8718
  };
8206
8719
  }
8207
8720
  }
8208
- AbstractDashboardBarChartTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDashboardBarChartTextFieldComponent, deps: [{ token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
8721
+ AbstractDashboardBarChartTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDashboardBarChartTextFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8209
8722
  AbstractDashboardBarChartTextFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractDashboardBarChartTextFieldComponent, selector: "ncc-abstract-dashboard-bar-chart-text-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
8210
8723
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDashboardBarChartTextFieldComponent, decorators: [{
8211
8724
  type: Component,
@@ -8213,11 +8726,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
8213
8726
  selector: 'ncc-abstract-dashboard-bar-chart-text-field',
8214
8727
  template: ''
8215
8728
  }]
8216
- }], ctorParameters: function () { return [{ type: i1$2.TranslateService }]; } });
8729
+ }], ctorParameters: function () {
8730
+ return [{ type: i1$2.TranslateService }, { type: undefined, decorators: [{
8731
+ type: Optional
8732
+ }, {
8733
+ type: Inject,
8734
+ args: [DATA_FIELD_PORTAL_DATA]
8735
+ }] }];
8736
+ } });
8217
8737
 
8218
8738
  class AbstractDashboardIframeTextFieldComponent extends AbstractDashboardTextFieldComponent {
8219
- constructor(translate) {
8220
- super(translate);
8739
+ constructor(translate, dataFieldPortalData) {
8740
+ super(translate, dataFieldPortalData);
8221
8741
  }
8222
8742
  createCard(textFieldValue) {
8223
8743
  return {
@@ -8227,7 +8747,7 @@ class AbstractDashboardIframeTextFieldComponent extends AbstractDashboardTextFie
8227
8747
  };
8228
8748
  }
8229
8749
  }
8230
- AbstractDashboardIframeTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDashboardIframeTextFieldComponent, deps: [{ token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
8750
+ AbstractDashboardIframeTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDashboardIframeTextFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8231
8751
  AbstractDashboardIframeTextFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractDashboardIframeTextFieldComponent, selector: "ncc-abstract-dashboard-iframe-text-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
8232
8752
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDashboardIframeTextFieldComponent, decorators: [{
8233
8753
  type: Component,
@@ -8235,11 +8755,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
8235
8755
  selector: 'ncc-abstract-dashboard-iframe-text-field',
8236
8756
  template: ''
8237
8757
  }]
8238
- }], ctorParameters: function () { return [{ type: i1$2.TranslateService }]; } });
8758
+ }], ctorParameters: function () {
8759
+ return [{ type: i1$2.TranslateService }, { type: undefined, decorators: [{
8760
+ type: Optional
8761
+ }, {
8762
+ type: Inject,
8763
+ args: [DATA_FIELD_PORTAL_DATA]
8764
+ }] }];
8765
+ } });
8239
8766
 
8240
8767
  class AbstractDashboardPortalTextFieldComponent extends AbstractDashboardTextFieldComponent {
8241
- constructor(translate) {
8242
- super(translate);
8768
+ constructor(translate, dataFieldPortalData) {
8769
+ super(translate, dataFieldPortalData);
8243
8770
  }
8244
8771
  createCard(textFieldValue) {
8245
8772
  return {
@@ -8249,7 +8776,7 @@ class AbstractDashboardPortalTextFieldComponent extends AbstractDashboardTextFie
8249
8776
  };
8250
8777
  }
8251
8778
  }
8252
- AbstractDashboardPortalTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDashboardPortalTextFieldComponent, deps: [{ token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
8779
+ AbstractDashboardPortalTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDashboardPortalTextFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8253
8780
  AbstractDashboardPortalTextFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractDashboardPortalTextFieldComponent, selector: "ncc-abstract-dashboard-pie-chart-text-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
8254
8781
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractDashboardPortalTextFieldComponent, decorators: [{
8255
8782
  type: Component,
@@ -8257,211 +8784,77 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
8257
8784
  selector: 'ncc-abstract-dashboard-pie-chart-text-field',
8258
8785
  template: ''
8259
8786
  }]
8260
- }], ctorParameters: function () { return [{ type: i1$2.TranslateService }]; } });
8261
-
8262
- var SideMenuSize;
8263
- (function (SideMenuSize) {
8264
- SideMenuSize["SMALL"] = "side-menu-width-small";
8265
- SideMenuSize["MEDIUM"] = "side-menu-width-medium";
8266
- SideMenuSize["LARGE"] = "side-menu-width-large";
8267
- SideMenuSize["XL"] = "side-menu-width-xl";
8268
- })(SideMenuSize || (SideMenuSize = {}));
8269
-
8270
- const NAE_SIDE_MENU_CONTROL = new InjectionToken('NaeSideMenuControl');
8271
-
8272
- class PortalWrapper {
8273
- constructor(_portal, _width) {
8274
- this._portal = _portal;
8275
- this._width = _width;
8276
- }
8277
- get portal() {
8278
- return this._portal;
8279
- }
8280
- get size() {
8281
- return this._width;
8282
- }
8283
- }
8284
-
8285
- class SideMenuRef {
8286
- constructor(_event$) {
8287
- this._event$ = _event$;
8288
- }
8289
- get onEvent() {
8290
- return !!this._event$ ? this._event$.asObservable() :
8291
- throwError(new Error('Side menu event stream was not correctly bound to side menu component!'));
8292
- }
8293
- get onClose() {
8294
- return !!this._event$ ? this._event$.pipe(filter((event) => !event.opened)) :
8295
- throwError(new Error('Side menu close event stream was not correctly bound to side menu component!'));
8296
- }
8297
- }
8298
-
8299
- class SideMenuControl {
8300
- constructor(bindingsFunction = () => { }, sideMenuOpenedStateChange = of(true), sideMenuCloseFunction, _injectionData, isVersionVisible, allVersionEnabled) {
8301
- this.sideMenuCloseFunction = sideMenuCloseFunction;
8302
- this._injectionData = _injectionData;
8303
- this.isVersionVisible = isVersionVisible;
8304
- this.allVersionEnabled = allVersionEnabled;
8305
- this._event$ = new Subject();
8306
- bindingsFunction(this._event$);
8307
- sideMenuOpenedStateChange.subscribe((opened) => {
8308
- if (!opened) {
8309
- this._event$.next({ opened, message: 'Side menu closed unexpectedly' });
8310
- this._event$.complete();
8311
- }
8312
- });
8313
- }
8314
- get data() {
8315
- return this._injectionData;
8316
- }
8317
- publish(event) {
8318
- this._event$.next(event);
8319
- }
8320
- close(event) {
8321
- if (!event.message) {
8322
- event.message = 'Side menu is closing';
8323
- }
8324
- this._event$.next(Object.assign(Object.assign({}, event), { opened: false }));
8325
- return this.sideMenuCloseFunction().pipe(tap((closed) => {
8326
- if (closed === 'close') {
8327
- this._event$.complete();
8328
- }
8329
- }));
8330
- }
8331
- }
8332
-
8333
- const NAE_NET_VERSION_VISIBLE = new InjectionToken('NaeNetVersionVisible');
8334
- const NAE_NET_ALL_VERSIONS = new InjectionToken('NaeNetAllVersion');
8787
+ }], ctorParameters: function () {
8788
+ return [{ type: i1$2.TranslateService }, { type: undefined, decorators: [{
8789
+ type: Optional
8790
+ }, {
8791
+ type: Inject,
8792
+ args: [DATA_FIELD_PORTAL_DATA]
8793
+ }] }];
8794
+ } });
8335
8795
 
8336
- class SideMenuService {
8337
- constructor(isVersionVisible, allVersionEnabled) {
8338
- this.isVersionVisible = isVersionVisible !== null ? isVersionVisible : true;
8339
- this.allVersionEnabled = allVersionEnabled !== null ? allVersionEnabled : false;
8340
- }
8341
- /**
8342
- * register SideMenuContainerComponent
8343
- *
8344
- * params menu is SideMenuContainerComponent
8345
- */
8346
- registerSideMenu(menu) {
8347
- if (this._sideMenuComponent) {
8348
- throw new Error('SideMenuContainerComponent has been already registered!');
8349
- }
8350
- this._sideMenuComponent = menu;
8351
- }
8352
- isOpened() {
8353
- return this._sideMenuComponent.isOpened();
8354
- }
8355
- /**
8356
- * Open this _sideMenu, and return a Observable that will resolve when it's fully opened (or get rejected if it didn't).
8357
- *
8358
- * @returns Observable<MatDrawerToggleResult>
8359
- */
8360
- open(componentOrTemplateRef, width = SideMenuSize.MEDIUM, injectionData) {
8361
- if (!this.componentIsPresent()) {
8362
- throw new Error('Side menu is not initialized');
8363
- }
8364
- if (this._sideMenuComponent.isOpened()) {
8365
- throw new Error('Side menu has been already opened with another content');
8366
- }
8367
- let ref = new SideMenuRef(null);
8368
- this._controlObject = new SideMenuControl(((event) => {
8369
- ref = new SideMenuRef(event);
8370
- }), this._sideMenuComponent.openedChange(), () => this._sideMenuComponent.close(this._sideMenuComponent), injectionData, this.isVersionVisible, this.allVersionEnabled);
8371
- const wrapper = this._createPortal(componentOrTemplateRef, width, this._controlObject);
8372
- this._sideMenuComponent.open(wrapper).subscribe((opened) => {
8373
- if (opened === 'open') {
8374
- this._controlObject.publish({ opened: true });
8375
- }
8376
- });
8377
- return ref;
8378
- }
8379
- _createPortal(template, size, controlObject) {
8380
- if (template === undefined || template === null) {
8381
- throw new Error('A component template must be provided to open a side menu!');
8382
- }
8383
- if (template instanceof TemplateRef) {
8384
- return new PortalWrapper(new TemplatePortal(template, null), size);
8385
- }
8386
- if (template instanceof Type) {
8387
- const injector = Injector.create({ providers: [{ provide: NAE_SIDE_MENU_CONTROL, useValue: controlObject }] });
8388
- return new PortalWrapper(new ComponentPortal(template, null, injector), size);
8389
- }
8390
- }
8391
- /**
8392
- * Close this _sideMenu, and return a Observable that will resolve when it's fully closed (or get rejected if it didn't).
8393
- *
8394
- * @returns Observable<MatDrawerToggleResult>
8395
- */
8396
- close(closeEvent) {
8397
- return this._controlObject.close(closeEvent);
8796
+ /**
8797
+ * @deprecated
8798
+ * */
8799
+ /**
8800
+ * Component that is created in the body of the task panel accord on the Petri Net, which must be bind properties.
8801
+ */
8802
+ class AbstractUserFieldComponent extends AbstractDataFieldComponent {
8803
+ constructor(informAboutInvalidData) {
8804
+ super(informAboutInvalidData);
8398
8805
  }
8399
- /**
8400
- * Toggle this _sideMenu. This is equivalent to calling close() when it's already opened, or open() when it's closed.
8401
- *
8402
- * @param isOpen Whether the _sideMenu should be open.
8403
- *
8404
- * @returns open or close side menu
8405
- */
8406
- // public toggle(isOpen?: boolean): Observable<MatDrawerToggleResult> {
8407
- // return from(this._sideMenu.toggle(isOpen));
8408
- // }
8409
- componentIsPresent() {
8410
- return !!this._sideMenuComponent;
8806
+ ngOnInit() {
8807
+ super.ngOnInit();
8411
8808
  }
8412
8809
  }
8413
- SideMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SideMenuService, deps: [{ token: NAE_NET_VERSION_VISIBLE, optional: true }, { token: NAE_NET_ALL_VERSIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
8414
- SideMenuServiceprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SideMenuService, providedIn: 'root' });
8415
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SideMenuService, decorators: [{
8416
- type: Injectable,
8810
+ AbstractUserFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractUserFieldComponent, deps: [{ token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8811
+ AbstractUserFieldComponentcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractUserFieldComponent, selector: "ncc-abstract-user-field", inputs: { dataField: "dataField" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
8812
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractUserFieldComponent, decorators: [{
8813
+ type: Component,
8417
8814
  args: [{
8418
- providedIn: 'root'
8815
+ selector: 'ncc-abstract-user-field',
8816
+ template: ''
8419
8817
  }]
8420
8818
  }], ctorParameters: function () {
8421
8819
  return [{ type: undefined, decorators: [{
8422
8820
  type: Optional
8423
8821
  }, {
8424
8822
  type: Inject,
8425
- args: [NAE_NET_VERSION_VISIBLE]
8426
- }] }, { type: undefined, decorators: [{
8427
- type: Optional
8428
- }, {
8429
- type: Inject,
8430
- args: [NAE_NET_ALL_VERSIONS]
8823
+ args: [NAE_INFORM_ABOUT_INVALID_DATA]
8431
8824
  }] }];
8432
- } });
8825
+ }, propDecorators: { dataField: [{
8826
+ type: Input
8827
+ }] } });
8433
8828
 
8434
- /**
8435
- * Component that is created in the body of the task panel accord on the Petri Net, which must be bind properties.
8436
- */
8437
- class AbstractUserFieldComponent extends AbstractDataFieldComponent {
8829
+ class AbstractUserDefaultFieldComponent extends AbstractBaseDataFieldComponent {
8438
8830
  /**
8439
8831
  * Inject services.
8440
- * @param _sideMenuService Service to open and close [UserAssignComponent]{@link AbstractUserAssignComponent} with user data.
8832
+ * @param _dialog Service to open and close [UserAssignDialogComponent]{@link UserAssignDialogComponent} with user data.
8441
8833
  * @param _snackbar Service to displaying information to the user.
8442
8834
  * @param _translate Service to translate text.
8443
8835
  * @param informAboutInvalidData whether the backend should be notified about invalid values.
8444
8836
  * Option injected trough `NAE_INFORM_ABOUT_INVALID_DATA` InjectionToken
8445
8837
  */
8446
- constructor(_sideMenuService, _snackbar, _translate, informAboutInvalidData) {
8447
- super(informAboutInvalidData);
8448
- this._sideMenuService = _sideMenuService;
8838
+ constructor(_dialog, _snackbar, _translate, dataFieldPortalData) {
8839
+ super(dataFieldPortalData);
8840
+ this._dialog = _dialog;
8449
8841
  this._snackbar = _snackbar;
8450
8842
  this._translate = _translate;
8451
8843
  }
8452
- ngOnInit() {
8453
- super.ngOnInit();
8454
- }
8455
8844
  /**
8456
8845
  * Call after click on user field button.
8457
8846
  *
8458
- * Open [UserAssignComponent]{@link AbstractUserAssignComponent} in side menu with data represents preselected user from backend.
8847
+ * Open [UserAssignDialogComponent]{@link UserAssignDialogComponent} in side menu with data represents preselected user from backend.
8459
8848
  *
8460
8849
  * After close side menu, the snackbar info will be displayed either for the unselected user or the selected one.
8461
8850
  */
8462
8851
  selectAbstractUser(component) {
8463
8852
  let valueReturned = false;
8464
- this._sideMenuService.open(component, SideMenuSize.MEDIUM, { roles: this.dataField.roles, value: this.dataField.value }).onClose.subscribe($event => {
8853
+ const dialogRef = this._dialog.open(component, {
8854
+ panelClass: "dialog-responsive",
8855
+ data: { roles: this.dataField.roles, value: this.dataField.value },
8856
+ });
8857
+ dialogRef.afterClosed().subscribe($event => {
8465
8858
  if ($event.data) {
8466
8859
  this.dataField.value = $event.data;
8467
8860
  this._snackbar.openGenericSnackBar(this._translate.instant('dataField.snackBar.userAssigned', { userName: this.dataField.value.fullName }), 'how_to_reg');
@@ -8472,97 +8865,113 @@ class AbstractUserFieldComponent extends AbstractDataFieldComponent {
8472
8865
  }
8473
8866
  });
8474
8867
  }
8868
+ getCutProperty(i18nLabel) {
8869
+ if (this.labelWidth !== i18nLabel.offsetWidth) {
8870
+ this.labelWidth = i18nLabel.offsetWidth;
8871
+ const calculatedWidth = 'calc(0.5em + ' + i18nLabel.offsetWidth / 4 * 3 + 'px)';
8872
+ this.cutProperty = `polygon(0 0, 0 100%, 100% 100%, 100% 0%, ${calculatedWidth} 0, ${calculatedWidth} 6%, 0.5em 6%, 0.5em 0)`;
8873
+ }
8874
+ return this.cutProperty;
8875
+ }
8475
8876
  }
8476
- AbstractUserFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractUserFieldComponent, deps: [{ token: SideMenuService }, { token: SnackBarService }, { token: i1$2.TranslateService }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8477
- AbstractUserFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractUserFieldComponent, selector: "ncc-abstract-user-field", inputs: { dataField: "dataField" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
8478
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractUserFieldComponent, decorators: [{
8877
+ AbstractUserDefaultFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractUserDefaultFieldComponent, deps: [{ token: i1$3.MatDialog }, { token: SnackBarService }, { token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8878
+ AbstractUserDefaultFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractUserDefaultFieldComponent, selector: "ncc-abstract-user-default-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
8879
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractUserDefaultFieldComponent, decorators: [{
8479
8880
  type: Component,
8480
8881
  args: [{
8481
- selector: 'ncc-abstract-user-field',
8882
+ selector: 'ncc-abstract-user-default-field',
8482
8883
  template: ''
8483
8884
  }]
8484
8885
  }], ctorParameters: function () {
8485
- return [{ type: SideMenuService }, { type: SnackBarService }, { type: i1$2.TranslateService }, { type: undefined, decorators: [{
8886
+ return [{ type: i1$3.MatDialog }, { type: SnackBarService }, { type: i1$2.TranslateService }, { type: undefined, decorators: [{
8486
8887
  type: Optional
8487
8888
  }, {
8488
8889
  type: Inject,
8489
- args: [NAE_INFORM_ABOUT_INVALID_DATA]
8890
+ args: [DATA_FIELD_PORTAL_DATA]
8490
8891
  }] }];
8491
- }, propDecorators: { dataField: [{
8492
- type: Input
8493
- }] } });
8892
+ } });
8494
8893
 
8495
- class AbstractEnumerationIconFieldComponent {
8496
- constructor() {
8894
+ class AbstractEnumerationIconFieldComponent extends AbstractBaseDataFieldComponent {
8895
+ constructor(dataFieldPortalData) {
8896
+ super(dataFieldPortalData);
8897
+ }
8898
+ ngOnInit() {
8899
+ var _a, _b;
8900
+ if ((_b = (_a = this.dataField.component) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.horizontal) {
8901
+ this.horizontal = this.dataField.component.properties.horizontal === "true";
8902
+ }
8497
8903
  }
8498
8904
  resolveIconValue(key) {
8499
8905
  var _a, _b;
8500
- return (_b = (_a = this.enumerationField.component) === null || _a === void 0 ? void 0 : _a.optionIcons.find(icon => icon.key === key)) === null || _b === void 0 ? void 0 : _b.value;
8906
+ return (_b = (_a = this.dataField.component) === null || _a === void 0 ? void 0 : _a.optionIcons.find(icon => icon.key === key)) === null || _b === void 0 ? void 0 : _b.value;
8501
8907
  }
8502
8908
  resolveIconType(key) {
8503
8909
  var _a, _b;
8504
- return (_b = (_a = this.enumerationField.component) === null || _a === void 0 ? void 0 : _a.optionIcons.find(icon => icon.key === key)) === null || _b === void 0 ? void 0 : _b.type;
8910
+ return (_b = (_a = this.dataField.component) === null || _a === void 0 ? void 0 : _a.optionIcons.find(icon => icon.key === key)) === null || _b === void 0 ? void 0 : _b.type;
8505
8911
  }
8506
8912
  resolveArrow(key) {
8507
8913
  var _a;
8508
- return ((_a = this.enumerationField.component) === null || _a === void 0 ? void 0 : _a.properties.arrow) === 'true';
8914
+ return ((_a = this.dataField.component) === null || _a === void 0 ? void 0 : _a.properties.arrow) === 'true';
8509
8915
  }
8510
8916
  resolveDivider(key) {
8511
8917
  var _a;
8512
- return ((_a = this.enumerationField.component) === null || _a === void 0 ? void 0 : _a.properties.divider) === 'true';
8918
+ return ((_a = this.dataField.component) === null || _a === void 0 ? void 0 : _a.properties.divider) === 'true';
8513
8919
  }
8514
8920
  setEnumValue(key) {
8515
- if (!this.enumerationField.disabled) {
8921
+ if (!this.formControlRef.disabled) {
8516
8922
  this.formControlRef.setValue(key);
8517
8923
  }
8518
8924
  }
8519
8925
  isSelected(key) {
8520
- return key === this.enumerationField.value;
8926
+ return key === this.dataField.value;
8521
8927
  }
8522
8928
  }
8523
- AbstractEnumerationIconFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractEnumerationIconFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
8524
- AbstractEnumerationIconFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractEnumerationIconFieldComponent, selector: "ncc-abstract-enumerataion-icon-field", inputs: { enumerationField: "enumerationField", formControlRef: "formControlRef", showLargeLayout: "showLargeLayout" }, ngImport: i0, template: '', isInline: true });
8929
+ AbstractEnumerationIconFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractEnumerationIconFieldComponent, deps: [{ token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8930
+ AbstractEnumerationIconFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractEnumerationIconFieldComponent, selector: "ncc-abstract-enumerataion-icon-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
8525
8931
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractEnumerationIconFieldComponent, decorators: [{
8526
8932
  type: Component,
8527
8933
  args: [{
8528
8934
  selector: 'ncc-abstract-enumerataion-icon-field',
8529
8935
  template: ''
8530
8936
  }]
8531
- }], ctorParameters: function () { return []; }, propDecorators: { enumerationField: [{
8532
- type: Input
8533
- }], formControlRef: [{
8534
- type: Input
8535
- }], showLargeLayout: [{
8536
- type: Input
8537
- }] } });
8937
+ }], ctorParameters: function () {
8938
+ return [{ type: undefined, decorators: [{
8939
+ type: Optional
8940
+ }, {
8941
+ type: Inject,
8942
+ args: [DATA_FIELD_PORTAL_DATA]
8943
+ }] }];
8944
+ } });
8538
8945
 
8539
- class AbstractEnumerationAutocompleteDynamicFieldComponent {
8540
- constructor(_translate) {
8946
+ class AbstractEnumerationAutocompleteDynamicFieldComponent extends AbstractBaseDataFieldComponent {
8947
+ constructor(_translate, dataFieldPortalData) {
8948
+ super(dataFieldPortalData);
8541
8949
  this._translate = _translate;
8542
8950
  this.renderSelection = (key) => {
8543
8951
  if (key !== undefined && key !== '' && key !== null) {
8544
- if (this.enumerationField.choices.find(choice => choice.key === key)) {
8545
- return this.enumerationField.choices.find(choice => choice.key === key).value;
8952
+ if (this.dataField.choices.find(choice => choice.key === key)) {
8953
+ return this.dataField.choices.find(choice => choice.key === key).value;
8546
8954
  }
8547
8955
  }
8548
8956
  return key;
8549
8957
  };
8550
8958
  }
8551
8959
  ngOnInit() {
8552
- this.filteredOptions = this.formControlRef.valueChanges.pipe(startWith(''), map(() => this.enumerationField.choices));
8553
- this.enumerationField.choicesChange$.subscribe(() => {
8554
- this.filteredOptions = of(this.enumerationField.choices);
8960
+ this.filteredOptions = this.formControlRef.valueChanges.pipe(startWith(''), map(() => this.dataField.choices));
8961
+ this.choiceSubscription = this.dataField.choicesChange$.subscribe(() => {
8962
+ this.filteredOptions = of(this.dataField.choices);
8555
8963
  });
8556
8964
  }
8557
8965
  ngAfterViewInit() {
8558
- this.enumerationField.input = this.text;
8966
+ this.dataField.input = this.text;
8559
8967
  }
8560
8968
  ngOnDestroy() {
8561
8969
  this.filteredOptions = undefined;
8970
+ this.choiceSubscription.unsubscribe();
8562
8971
  }
8563
8972
  change() {
8564
8973
  if (this.text.nativeElement.value !== undefined) {
8565
- this.filteredOptions = of(this.enumerationField.choices);
8974
+ this.filteredOptions = of(this.dataField.choices);
8566
8975
  }
8567
8976
  }
8568
8977
  buildErrorMessage() {
@@ -8571,50 +8980,35 @@ class AbstractEnumerationAutocompleteDynamicFieldComponent {
8571
8980
  }
8572
8981
  }
8573
8982
  }
8574
- AbstractEnumerationAutocompleteDynamicFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractEnumerationAutocompleteDynamicFieldComponent, deps: [{ token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
8575
- AbstractEnumerationAutocompleteDynamicFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractEnumerationAutocompleteDynamicFieldComponent, selector: "ncc-abstract-enumeration-autocomplete-dynamic-field", inputs: { enumerationField: "enumerationField", formControlRef: "formControlRef", showLargeLayout: "showLargeLayout" }, viewQueries: [{ propertyName: "text", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: '', isInline: true });
8983
+ AbstractEnumerationAutocompleteDynamicFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractEnumerationAutocompleteDynamicFieldComponent, deps: [{ token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8984
+ AbstractEnumerationAutocompleteDynamicFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractEnumerationAutocompleteDynamicFieldComponent, selector: "ncc-abstract-enumeration-autocomplete-dynamic-field", viewQueries: [{ propertyName: "text", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
8576
8985
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractEnumerationAutocompleteDynamicFieldComponent, decorators: [{
8577
8986
  type: Component,
8578
8987
  args: [{
8579
8988
  selector: 'ncc-abstract-enumeration-autocomplete-dynamic-field',
8580
8989
  template: ''
8581
8990
  }]
8582
- }], ctorParameters: function () { return [{ type: i1$2.TranslateService }]; }, propDecorators: { enumerationField: [{
8583
- type: Input
8584
- }], formControlRef: [{
8585
- type: Input
8586
- }], showLargeLayout: [{
8587
- type: Input
8588
- }], text: [{
8991
+ }], ctorParameters: function () {
8992
+ return [{ type: i1$2.TranslateService }, { type: undefined, decorators: [{
8993
+ type: Optional
8994
+ }, {
8995
+ type: Inject,
8996
+ args: [DATA_FIELD_PORTAL_DATA]
8997
+ }] }];
8998
+ }, propDecorators: { text: [{
8589
8999
  type: ViewChild,
8590
9000
  args: ['input']
8591
9001
  }] } });
8592
9002
 
8593
9003
  /**
8594
- * Provides access to the {@link FilterField} instance for dependency injection inside
8595
- * an {@link AbstractFilterFieldComponent} implementation.
8596
- */
8597
- const NAE_FILTER_FIELD = new InjectionToken('NaeFilterField');
8598
-
9004
+ * @deprecated
9005
+ * */
8599
9006
  class AbstractFilterFieldComponent extends AbstractDataFieldComponent {
8600
- constructor(_parentInjector, informAboutInvalidData) {
9007
+ constructor(informAboutInvalidData) {
8601
9008
  super(informAboutInvalidData);
8602
- this._parentInjector = _parentInjector;
8603
- }
8604
- ngOnInit() {
8605
- super.ngOnInit();
8606
- const providers = [
8607
- { provide: NAE_FILTER_FIELD, useValue: this.dataField }
8608
- ];
8609
- const injector = Injector.create({ providers, parent: this._parentInjector });
8610
- this.portal = new ComponentPortal(this.getFilterContentComponent(), null, injector);
8611
- this.initialized = true;
8612
- }
8613
- get editable() {
8614
- return !!this.dataField.behavior.editable;
8615
9009
  }
8616
9010
  }
8617
- AbstractFilterFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFilterFieldComponent, deps: [{ token: i0.Injector }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
9011
+ AbstractFilterFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFilterFieldComponent, deps: [{ token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
8618
9012
  AbstractFilterFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractFilterFieldComponent, selector: "ncc-abstract-filter-field", inputs: { dataField: "dataField" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
8619
9013
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFilterFieldComponent, decorators: [{
8620
9014
  type: Component,
@@ -8623,7 +9017,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
8623
9017
  template: ''
8624
9018
  }]
8625
9019
  }], ctorParameters: function () {
8626
- return [{ type: i0.Injector }, { type: undefined, decorators: [{
9020
+ return [{ type: undefined, decorators: [{
8627
9021
  type: Optional
8628
9022
  }, {
8629
9023
  type: Inject,
@@ -8633,6 +9027,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
8633
9027
  type: Input
8634
9028
  }] } });
8635
9029
 
9030
+ /**
9031
+ * Provides access to the {@link FilterField} instance for dependency injection inside
9032
+ * an {@link AbstractFilterFieldComponent} implementation.
9033
+ */
9034
+ const NAE_FILTER_FIELD = new InjectionToken('NaeFilterField');
9035
+
8636
9036
  // TODO 23.4.2020 - Same as MergeOperator for Filters, should these Enums be kept separate, or should just one exist?
8637
9037
  /**
8638
9038
  * Determines the way {@link Predicate}s are combined together.
@@ -13605,39 +14005,6 @@ var Dashboard;
13605
14005
  Dashboard["FILTER_TAB_VIEW_COMPONENT_ID"] = "filter-tab-view";
13606
14006
  })(Dashboard || (Dashboard = {}));
13607
14007
 
13608
- class DashboardPortalComponentRegistryService {
13609
- constructor() {
13610
- this.registry = new Map();
13611
- this.typeRegistry = new Map();
13612
- }
13613
- register(component, factory) {
13614
- this.registry.set(component, factory);
13615
- }
13616
- registerType(key, type) {
13617
- this.typeRegistry.set(key, type);
13618
- }
13619
- get(component, injector) {
13620
- if (!this.registry.has(component)) {
13621
- return undefined;
13622
- }
13623
- return this.registry.get(component)(injector);
13624
- }
13625
- getType(key) {
13626
- if (!this.typeRegistry.has(key)) {
13627
- return undefined;
13628
- }
13629
- return this.typeRegistry.get(key);
13630
- }
13631
- }
13632
- DashboardPortalComponentRegistryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DashboardPortalComponentRegistryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
13633
- DashboardPortalComponentRegistryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DashboardPortalComponentRegistryService, providedIn: 'root' });
13634
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DashboardPortalComponentRegistryService, decorators: [{
13635
- type: Injectable,
13636
- args: [{
13637
- providedIn: 'root'
13638
- }]
13639
- }], ctorParameters: function () { return []; } });
13640
-
13641
14008
  class AbstractFilterFieldTabViewComponent {
13642
14009
  constructor(_registry, _filterField, _tabContentComponent, _tabViewComponent) {
13643
14010
  var _a, _b;
@@ -13677,7 +14044,7 @@ class AbstractFilterFieldTabViewComponent {
13677
14044
  }
13678
14045
  ;
13679
14046
  }
13680
- AbstractFilterFieldTabViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFilterFieldTabViewComponent, deps: [{ token: DashboardPortalComponentRegistryService }, { token: FilterField }, { token: i0.Type }, { token: i0.Type }], target: i0.ɵɵFactoryTarget.Component });
14047
+ AbstractFilterFieldTabViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFilterFieldTabViewComponent, deps: [{ token: ComponentRegistryService }, { token: FilterField }, { token: i0.Type }, { token: i0.Type }], target: i0.ɵɵFactoryTarget.Component });
13681
14048
  AbstractFilterFieldTabViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractFilterFieldTabViewComponent, selector: "ncc-abstract-filter-field-tab-view", ngImport: i0, template: '', isInline: true });
13682
14049
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFilterFieldTabViewComponent, decorators: [{
13683
14050
  type: Component,
@@ -13685,7 +14052,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
13685
14052
  selector: 'ncc-abstract-filter-field-tab-view',
13686
14053
  template: ''
13687
14054
  }]
13688
- }], ctorParameters: function () { return [{ type: DashboardPortalComponentRegistryService }, { type: FilterField }, { type: i0.Type }, { type: i0.Type }]; } });
14055
+ }], ctorParameters: function () { return [{ type: ComponentRegistryService }, { type: FilterField }, { type: i0.Type }, { type: i0.Type }]; } });
13689
14056
 
13690
14057
  const NAE_VIEW_ID = new InjectionToken('NaeViewId');
13691
14058
  const NAE_VIEW_ID_SEGMENT = new InjectionToken('NaeViewIdSegment');
@@ -13755,7 +14122,7 @@ class AbstractFilterFieldTabViewContentComponent extends AbstractFilterFieldCont
13755
14122
  this.componentPortal = this.registry.get(Dashboard.FILTER_TAB_VIEW_ID, portalInjector);
13756
14123
  }
13757
14124
  }
13758
- AbstractFilterFieldTabViewContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFilterFieldTabViewContentComponent, deps: [{ token: DashboardPortalComponentRegistryService }, { token: i0.Injector }, { token: NAE_FILTER_FIELD }, { token: SearchService }], target: i0.ɵɵFactoryTarget.Component });
14125
+ AbstractFilterFieldTabViewContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFilterFieldTabViewContentComponent, deps: [{ token: ComponentRegistryService }, { token: i0.Injector }, { token: NAE_FILTER_FIELD }, { token: SearchService }], target: i0.ɵɵFactoryTarget.Component });
13759
14126
  AbstractFilterFieldTabViewContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractFilterFieldTabViewContentComponent, selector: "ncc-abstract-filter-field-tab-view-content", usesInheritance: true, ngImport: i0, template: '', isInline: true });
13760
14127
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFilterFieldTabViewContentComponent, decorators: [{
13761
14128
  type: Component,
@@ -13764,12 +14131,49 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
13764
14131
  template: ''
13765
14132
  }]
13766
14133
  }], ctorParameters: function () {
13767
- return [{ type: DashboardPortalComponentRegistryService }, { type: i0.Injector }, { type: FilterField, decorators: [{
14134
+ return [{ type: ComponentRegistryService }, { type: i0.Injector }, { type: FilterField, decorators: [{
13768
14135
  type: Inject,
13769
14136
  args: [NAE_FILTER_FIELD]
13770
14137
  }] }, { type: SearchService }];
13771
14138
  } });
13772
14139
 
14140
+ class AbstractFilterDefaultFieldComponent extends AbstractBaseDataFieldComponent {
14141
+ constructor(_parentInjector, dataFieldPortalData) {
14142
+ super(dataFieldPortalData);
14143
+ this._parentInjector = _parentInjector;
14144
+ }
14145
+ ngOnInit() {
14146
+ const providers = [
14147
+ { provide: NAE_FILTER_FIELD, useValue: this.dataField }
14148
+ ];
14149
+ const injector = Injector.create({ providers, parent: this._parentInjector });
14150
+ this.portal = new ComponentPortal(this.getFilterContentComponent(), null, injector);
14151
+ this.initialized = true;
14152
+ }
14153
+ get editable() {
14154
+ return !!this.dataField.behavior.editable;
14155
+ }
14156
+ }
14157
+ AbstractFilterDefaultFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFilterDefaultFieldComponent, deps: [{ token: i0.Injector }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
14158
+ AbstractFilterDefaultFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractFilterDefaultFieldComponent, selector: "ncc-abstract-filter-default-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
14159
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFilterDefaultFieldComponent, decorators: [{
14160
+ type: Component,
14161
+ args: [{
14162
+ selector: 'ncc-abstract-filter-default-field',
14163
+ template: ''
14164
+ }]
14165
+ }], ctorParameters: function () {
14166
+ return [{ type: i0.Injector }, { type: undefined, decorators: [{
14167
+ type: Optional
14168
+ }, {
14169
+ type: Inject,
14170
+ args: [DATA_FIELD_PORTAL_DATA]
14171
+ }] }];
14172
+ } });
14173
+
14174
+ /**
14175
+ * @deprecated
14176
+ * */
13773
14177
  class AbstractI18nFieldComponent extends AbstractDataFieldComponent {
13774
14178
  constructor(informAboutInvalidData) {
13775
14179
  super(informAboutInvalidData);
@@ -14045,8 +14449,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
14045
14449
  }]
14046
14450
  }], ctorParameters: function () { return [{ type: i2$1.DomSanitizer }]; } });
14047
14451
 
14048
- class AbstractI18nErrorsComponent {
14049
- constructor(languageIconsService, _translate) {
14452
+ class AbstractI18nErrorsComponent extends AbstractBaseDataFieldComponent {
14453
+ constructor(languageIconsService, _translate, dataFieldPortalData) {
14454
+ super(dataFieldPortalData);
14050
14455
  this.languageIconsService = languageIconsService;
14051
14456
  this._translate = _translate;
14052
14457
  }
@@ -14055,7 +14460,7 @@ class AbstractI18nErrorsComponent {
14055
14460
  return this._translate.instant('dataField.validations.requiredI18n');
14056
14461
  }
14057
14462
  if (this.formControlRef.hasError(I18nFieldValidation.TRANSLATION_REQUIRED)) {
14058
- const tmp = this.textI18nField.validations.find(value => value.validationRule.includes(I18nFieldValidation.TRANSLATION_REQUIRED)).validationRule.split(' ');
14463
+ const tmp = this.dataField.validations.find(value => value.validationRule.includes(I18nFieldValidation.TRANSLATION_REQUIRED)).validationRule.split(' ');
14059
14464
  const missingLanguages = tmp[1]
14060
14465
  .replace(' ', '')
14061
14466
  .split(',')
@@ -14065,7 +14470,7 @@ class AbstractI18nErrorsComponent {
14065
14470
  return this.resolveErrorMessage(I18nFieldValidation.TRANSLATION_REQUIRED, this._translate.instant('dataField.validations.translationRequired', { translation: missingLanguages }));
14066
14471
  }
14067
14472
  if (this.formControlRef.hasError(I18nFieldValidation.TRANSLATION_ONLY)) {
14068
- const tmp = this.textI18nField.validations.find(value => value.validationRule.includes(I18nFieldValidation.TRANSLATION_ONLY)).validationRule.split(' ');
14473
+ const tmp = this.dataField.validations.find(value => value.validationRule.includes(I18nFieldValidation.TRANSLATION_ONLY)).validationRule.split(' ');
14069
14474
  const onlyLanguages = tmp[1]
14070
14475
  .replace(' ', '')
14071
14476
  .split(',')
@@ -14076,32 +14481,33 @@ class AbstractI18nErrorsComponent {
14076
14481
  return '';
14077
14482
  }
14078
14483
  resolveErrorMessage(search, generalMessage) {
14079
- const validation = this.textI18nField.validations.find(value => value.validationRule.includes(search));
14484
+ const validation = this.dataField.validations.find(value => value.validationRule.includes(search));
14080
14485
  if (validation.validationMessage && validation.validationMessage !== '') {
14081
14486
  return validation.validationMessage;
14082
14487
  }
14083
14488
  return generalMessage;
14084
14489
  }
14085
14490
  }
14086
- AbstractI18nErrorsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractI18nErrorsComponent, deps: [{ token: LanguageIconsService }, { token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
14087
- AbstractI18nErrorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractI18nErrorsComponent, selector: "ncc-abstract-i18n-errors", inputs: { showLargeLayout: "showLargeLayout", formControlRef: "formControlRef", textI18nField: "textI18nField" }, ngImport: i0, template: '', isInline: true });
14491
+ AbstractI18nErrorsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractI18nErrorsComponent, deps: [{ token: LanguageIconsService }, { token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
14492
+ AbstractI18nErrorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractI18nErrorsComponent, selector: "ncc-abstract-i18n-errors", usesInheritance: true, ngImport: i0, template: '', isInline: true });
14088
14493
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractI18nErrorsComponent, decorators: [{
14089
14494
  type: Component,
14090
14495
  args: [{
14091
14496
  selector: 'ncc-abstract-i18n-errors',
14092
14497
  template: ''
14093
14498
  }]
14094
- }], ctorParameters: function () { return [{ type: LanguageIconsService }, { type: i1$2.TranslateService }]; }, propDecorators: { showLargeLayout: [{
14095
- type: Input
14096
- }], formControlRef: [{
14097
- type: Input
14098
- }], textI18nField: [{
14099
- type: Input
14100
- }] } });
14499
+ }], ctorParameters: function () {
14500
+ return [{ type: LanguageIconsService }, { type: i1$2.TranslateService }, { type: undefined, decorators: [{
14501
+ type: Optional
14502
+ }, {
14503
+ type: Inject,
14504
+ args: [DATA_FIELD_PORTAL_DATA]
14505
+ }] }];
14506
+ } });
14101
14507
 
14102
14508
  class AbstractI18nTextFieldComponent extends AbstractI18nErrorsComponent {
14103
- constructor(languageIconsService, _translateService, _domSanitizer) {
14104
- super(languageIconsService, _translateService);
14509
+ constructor(languageIconsService, _translateService, _domSanitizer, dataFieldPortalData) {
14510
+ super(languageIconsService, _translateService, dataFieldPortalData);
14105
14511
  this.languageIconsService = languageIconsService;
14106
14512
  this._translateService = _translateService;
14107
14513
  this._domSanitizer = _domSanitizer;
@@ -14112,11 +14518,11 @@ class AbstractI18nTextFieldComponent extends AbstractI18nErrorsComponent {
14112
14518
  this.languageKeys = Object.keys(this.languageIconsService.languageIcons);
14113
14519
  }
14114
14520
  ngOnInit() {
14115
- this.currentValue = I18nField.toObject(this.textI18nField.value);
14116
- this.fieldUpdateSubscription = this.textI18nField.updated.subscribe(() => {
14521
+ this.currentValue = I18nField.toObject(this.dataField.value);
14522
+ this.fieldUpdateSubscription = this.dataField.updated.subscribe(() => {
14117
14523
  this.refreshCurrentValue();
14118
14524
  });
14119
- this.fieldValueChangesSubscription = this.textI18nField.valueChanges().subscribe(newValue => {
14525
+ this.fieldValueChangesSubscription = this.dataField.valueChanges().subscribe(newValue => {
14120
14526
  this.refreshCurrentValue(newValue);
14121
14527
  });
14122
14528
  }
@@ -14124,8 +14530,8 @@ class AbstractI18nTextFieldComponent extends AbstractI18nErrorsComponent {
14124
14530
  this.fieldUpdateSubscription.unsubscribe();
14125
14531
  this.fieldValueChangesSubscription.unsubscribe();
14126
14532
  }
14127
- refreshCurrentValue(newValue = this.textI18nField.value) {
14128
- if (this.textI18nField.disabled) {
14533
+ refreshCurrentValue(newValue = this.dataField.value) {
14534
+ if (this.dataField.disabled) {
14129
14535
  this.selectedLanguage = this._translateService.currentLang.split('-')[0];
14130
14536
  this.filledShown = false;
14131
14537
  this.initializedLanguage = false;
@@ -14154,7 +14560,7 @@ class AbstractI18nTextFieldComponent extends AbstractI18nErrorsComponent {
14154
14560
  if (!this.isDefaultValue(this.selectedLanguage) && this.currentValue[this.selectedLanguage] === '') {
14155
14561
  delete this.currentValue[this.selectedLanguage];
14156
14562
  }
14157
- this.textI18nField.value = I18nField.fromObject(this.currentValue, this.textI18nField.value.key);
14563
+ this.dataField.value = I18nField.fromObject(this.currentValue, this.dataField.value.key);
14158
14564
  this.formControlRef.markAsTouched();
14159
14565
  }
14160
14566
  refreshFilledMap() {
@@ -14171,7 +14577,7 @@ class AbstractI18nTextFieldComponent extends AbstractI18nErrorsComponent {
14171
14577
  }
14172
14578
  removeTranslation(key) {
14173
14579
  delete this.currentValue[key];
14174
- this.textI18nField.value = I18nField.fromObject(this.currentValue, this.textI18nField.value.key);
14580
+ this.dataField.value = I18nField.fromObject(this.currentValue, this.dataField.value.key);
14175
14581
  this.formControlRef.markAsTouched();
14176
14582
  this.refreshFilledMap();
14177
14583
  }
@@ -14182,120 +14588,151 @@ class AbstractI18nTextFieldComponent extends AbstractI18nErrorsComponent {
14182
14588
  if (this.labelWidth !== i18nLabel.offsetWidth) {
14183
14589
  this.labelWidth = i18nLabel.offsetWidth;
14184
14590
  const calculatedWidth = 'calc(0.5em + ' + i18nLabel.offsetWidth / 4 * 3 + 'px)';
14185
- this.cutProperty = `polygon(0 0, 0 100%, 100% 100%, 100% 0%, ${calculatedWidth} 0, ${calculatedWidth} 5%, 0.5em 5%, 0.5em 0)`;
14591
+ this.cutProperty = `polygon(0 0, 0 100%, 100% 100%, 100% 0%, ${calculatedWidth} 0, ${calculatedWidth} 6%, 0.5em 6%, 0.5em 0)`;
14186
14592
  }
14187
14593
  return this.cutProperty;
14188
14594
  }
14595
+ hasHint() {
14596
+ return this.dataField.description !== undefined && this.dataField.description !== '';
14597
+ }
14189
14598
  getTranslation() {
14190
14599
  const locale = this._translateService.currentLang.split('-')[0];
14191
- return locale in this.textI18nField.value.translations
14192
- ? this.textI18nField.value.translations[locale]
14193
- : this.textI18nField.value.defaultValue;
14600
+ return locale in this.dataField.value.translations
14601
+ ? this.dataField.value.translations[locale]
14602
+ : this.dataField.value.defaultValue;
14194
14603
  }
14195
14604
  isPlainText() {
14196
- if (this.textPropertyEnabled('plainText')) {
14197
- return this.textI18nField.component.properties.plainText === 'true';
14605
+ if (this.checkPropertyInComponent('plainText')) {
14606
+ return this.dataField.component.properties.plainText === 'true';
14198
14607
  }
14199
14608
  }
14200
14609
  getTextColor() {
14201
- if (this.textPropertyEnabled('textColor')) {
14202
- return this.textI18nField.component.properties.textColor;
14610
+ if (this.checkPropertyInComponent('textColor')) {
14611
+ return this.dataField.component.properties.textColor;
14203
14612
  }
14204
14613
  }
14205
14614
  getTextFontSize() {
14206
- if (this.textPropertyEnabled('fontSize')) {
14207
- return this.textI18nField.component.properties.fontSize + 'px';
14615
+ if (this.checkPropertyInComponent('fontSize')) {
14616
+ return this.dataField.component.properties.fontSize + 'px';
14208
14617
  }
14209
14618
  }
14210
14619
  textPropertyEnabled(property) {
14211
14620
  var _a, _b;
14212
- return !!((_b = (_a = this.textI18nField) === null || _a === void 0 ? void 0 : _a.component) === null || _b === void 0 ? void 0 : _b.properties)
14213
- && property in this.textI18nField.component.properties;
14621
+ return !!((_b = (_a = this.dataField) === null || _a === void 0 ? void 0 : _a.component) === null || _b === void 0 ? void 0 : _b.properties)
14622
+ && property in this.dataField.component.properties;
14214
14623
  }
14215
14624
  }
14216
- AbstractI18nTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractI18nTextFieldComponent, deps: [{ token: LanguageIconsService }, { token: i1$2.TranslateService }, { token: i2$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
14217
- AbstractI18nTextFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractI18nTextFieldComponent, selector: "ncc-abstract-i18n-text-field", inputs: { textI18nField: "textI18nField", formControlRef: "formControlRef", showLargeLayout: "showLargeLayout" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
14625
+ AbstractI18nTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractI18nTextFieldComponent, deps: [{ token: LanguageIconsService }, { token: i1$2.TranslateService }, { token: i2$1.DomSanitizer }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
14626
+ AbstractI18nTextFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractI18nTextFieldComponent, selector: "ncc-abstract-i18n-text-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
14218
14627
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractI18nTextFieldComponent, decorators: [{
14219
14628
  type: Component,
14220
14629
  args: [{
14221
14630
  selector: 'ncc-abstract-i18n-text-field',
14222
14631
  template: ''
14223
14632
  }]
14224
- }], ctorParameters: function () { return [{ type: LanguageIconsService }, { type: i1$2.TranslateService }, { type: i2$1.DomSanitizer }]; }, propDecorators: { textI18nField: [{
14225
- type: Input
14226
- }], formControlRef: [{
14227
- type: Input
14228
- }], showLargeLayout: [{
14229
- type: Input
14230
- }] } });
14633
+ }], ctorParameters: function () {
14634
+ return [{ type: LanguageIconsService }, { type: i1$2.TranslateService }, { type: i2$1.DomSanitizer }, { type: undefined, decorators: [{
14635
+ type: Optional
14636
+ }, {
14637
+ type: Inject,
14638
+ args: [DATA_FIELD_PORTAL_DATA]
14639
+ }] }];
14640
+ } });
14231
14641
 
14232
- class AbstractI18nDividerFieldComponent {
14642
+ class AbstractI18nDividerFieldComponent extends AbstractBaseDataFieldComponent {
14643
+ constructor(dataFieldPortalData) {
14644
+ super(dataFieldPortalData);
14645
+ }
14233
14646
  getDividerColor() {
14234
- if (this.dividerPropertyEnabled('dividerColor')) {
14235
- return this.dividerI18nField.component.properties.dividerColor;
14647
+ if (this.checkPropertyInComponent('dividerColor')) {
14648
+ return this.dataField.component.properties.dividerColor;
14236
14649
  }
14237
14650
  }
14238
14651
  isDividerLGBTQ() {
14239
- if (this.dividerPropertyEnabled('dividerLGBTQ')) {
14240
- return this.dividerI18nField.component.properties.dividerLGBTQ === 'true';
14652
+ if (this.checkPropertyInComponent('dividerLGBTQ')) {
14653
+ return this.dataField.component.properties.dividerLGBTQ === 'true';
14241
14654
  }
14242
14655
  return false;
14243
14656
  }
14244
14657
  getDividerFontSize() {
14245
- if (this.dividerPropertyEnabled('fontSize')) {
14246
- return this.dividerI18nField.component.properties.fontSize + 'px';
14658
+ if (this.checkPropertyInComponent('fontSize')) {
14659
+ return this.dataField.component.properties.fontSize + 'px';
14247
14660
  }
14248
14661
  }
14249
14662
  dividerPropertyEnabled(property) {
14250
14663
  var _a, _b;
14251
- return !!((_b = (_a = this.dividerI18nField) === null || _a === void 0 ? void 0 : _a.component) === null || _b === void 0 ? void 0 : _b.properties)
14252
- && property in this.dividerI18nField.component.properties;
14664
+ return !!((_b = (_a = this.dataField) === null || _a === void 0 ? void 0 : _a.component) === null || _b === void 0 ? void 0 : _b.properties)
14665
+ && property in this.dataField.component.properties;
14253
14666
  }
14254
14667
  }
14255
- AbstractI18nDividerFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractI18nDividerFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
14256
- AbstractI18nDividerFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractI18nDividerFieldComponent, selector: "ncc-abstract-i18n-divider-field", inputs: { dividerI18nField: "dividerI18nField", formControlRef: "formControlRef", showLargeLayout: "showLargeLayout" }, ngImport: i0, template: '', isInline: true });
14668
+ AbstractI18nDividerFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractI18nDividerFieldComponent, deps: [{ token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
14669
+ AbstractI18nDividerFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractI18nDividerFieldComponent, selector: "ncc-abstract-i18n-divider-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
14257
14670
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractI18nDividerFieldComponent, decorators: [{
14258
14671
  type: Component,
14259
14672
  args: [{
14260
14673
  selector: 'ncc-abstract-i18n-divider-field',
14261
14674
  template: ''
14262
14675
  }]
14263
- }], propDecorators: { dividerI18nField: [{
14264
- type: Input
14265
- }], formControlRef: [{
14266
- type: Input
14267
- }], showLargeLayout: [{
14268
- type: Input
14269
- }] } });
14676
+ }], ctorParameters: function () {
14677
+ return [{ type: undefined, decorators: [{
14678
+ type: Optional
14679
+ }, {
14680
+ type: Inject,
14681
+ args: [DATA_FIELD_PORTAL_DATA]
14682
+ }] }];
14683
+ } });
14270
14684
 
14685
+ /**
14686
+ * @deprecated
14687
+ * */
14271
14688
  class AbstractUserListFieldComponent extends AbstractDataFieldComponent {
14272
- /**
14273
- * Inject services.
14274
- * @param _sideMenuService Service to open and close [UserAssignComponent]{@link AbstractUserAssignComponent} with user data.
14275
- * @param _snackbar Service to displaying information to the user.
14276
- * @param _translate Service to translate text.
14277
- * @param informAboutInvalidData whether the backend should be notified about invalid values.
14278
- * Option injected trough `NAE_INFORM_ABOUT_INVALID_DATA` InjectionToken
14279
- */
14280
- constructor(_sideMenuService, _snackbar, _translate, informAboutInvalidData) {
14689
+ constructor(informAboutInvalidData) {
14281
14690
  super(informAboutInvalidData);
14282
- this._sideMenuService = _sideMenuService;
14283
- this._snackbar = _snackbar;
14284
- this._translate = _translate;
14285
14691
  }
14286
14692
  ngOnInit() {
14287
14693
  super.ngOnInit();
14288
14694
  }
14695
+ }
14696
+ AbstractUserListFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractUserListFieldComponent, deps: [{ token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
14697
+ AbstractUserListFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractUserListFieldComponent, selector: "ncc-abstract-user-list-field", inputs: { dataField: "dataField" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
14698
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractUserListFieldComponent, decorators: [{
14699
+ type: Component,
14700
+ args: [{
14701
+ selector: 'ncc-abstract-user-list-field',
14702
+ template: '',
14703
+ }]
14704
+ }], ctorParameters: function () {
14705
+ return [{ type: undefined, decorators: [{
14706
+ type: Optional
14707
+ }, {
14708
+ type: Inject,
14709
+ args: [NAE_INFORM_ABOUT_INVALID_DATA]
14710
+ }] }];
14711
+ }, propDecorators: { dataField: [{
14712
+ type: Input
14713
+ }] } });
14714
+
14715
+ class AbstractUserListDefaultFieldComponent extends AbstractBaseDataFieldComponent {
14716
+ constructor(_dialog, _snackbar, _translate, dataFieldPortalData) {
14717
+ super(dataFieldPortalData);
14718
+ this._dialog = _dialog;
14719
+ this._snackbar = _snackbar;
14720
+ this._translate = _translate;
14721
+ }
14289
14722
  /**
14290
14723
  * Call after click on user field button.
14291
14724
  *
14292
- * Open [UserAssignComponent]{@link AbstractUserAssignComponent} in side menu with data represents preselected user from backend.
14725
+ * Open [MultiUserAssignDialogComponent]{@link MultiUserAssignDialogComponent} in side menu with data represents preselected user from backend.
14293
14726
  *
14294
14727
  * After close side menu, the snackbar info will be displayed either for the unselected user or the selected one.
14295
14728
  */
14296
14729
  selectAbstractUser(component) {
14297
14730
  let valueReturned = false;
14298
- this._sideMenuService.open(component, SideMenuSize.MEDIUM, { roles: this.dataField.roles, value: this.dataField.value }).onClose.subscribe($event => {
14731
+ const dialogRef = this._dialog.open(component, {
14732
+ panelClass: "dialog-responsive",
14733
+ data: { roles: this.dataField.roles, value: this.dataField.value },
14734
+ });
14735
+ dialogRef.afterClosed().subscribe($event => {
14299
14736
  if ($event.data) {
14300
14737
  this.dataField.value = new UserListValue(new Map($event.data.map(v => [v.id, v])));
14301
14738
  this._snackbar.openGenericSnackBar(this._translate.instant('dataField.snackBar.userListAssigned', { userNames: this.dataField.value.toString() }), 'how_to_reg');
@@ -14312,24 +14749,47 @@ class AbstractUserListFieldComponent extends AbstractDataFieldComponent {
14312
14749
  this.dataField.value = existingUsers;
14313
14750
  }
14314
14751
  }
14315
- AbstractUserListFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractUserListFieldComponent, deps: [{ token: SideMenuService }, { token: SnackBarService }, { token: i1$2.TranslateService }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
14316
- AbstractUserListFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractUserListFieldComponent, selector: "ncc-abstract-user-list-field", inputs: { dataField: "dataField" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
14317
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractUserListFieldComponent, decorators: [{
14752
+ AbstractUserListDefaultFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractUserListDefaultFieldComponent, deps: [{ token: i1$3.MatDialog }, { token: SnackBarService }, { token: i1$2.TranslateService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
14753
+ AbstractUserListDefaultFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractUserListDefaultFieldComponent, selector: "ncc-abstract-user-list-default-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
14754
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractUserListDefaultFieldComponent, decorators: [{
14318
14755
  type: Component,
14319
14756
  args: [{
14320
- selector: 'ncc-abstract-user-list-field',
14757
+ selector: 'ncc-abstract-user-list-default-field',
14321
14758
  template: '',
14322
14759
  }]
14323
14760
  }], ctorParameters: function () {
14324
- return [{ type: SideMenuService }, { type: SnackBarService }, { type: i1$2.TranslateService }, { type: undefined, decorators: [{
14761
+ return [{ type: i1$3.MatDialog }, { type: SnackBarService }, { type: i1$2.TranslateService }, { type: undefined, decorators: [{
14762
+ type: Optional
14763
+ }, {
14764
+ type: Inject,
14765
+ args: [DATA_FIELD_PORTAL_DATA]
14766
+ }] }];
14767
+ } });
14768
+
14769
+ /**
14770
+ * @deprecated
14771
+ * */
14772
+ class AbstractTaskRefFieldComponent extends AbstractDataFieldComponent {
14773
+ constructor(informAboutInvalidData) {
14774
+ super(informAboutInvalidData);
14775
+ }
14776
+ }
14777
+ AbstractTaskRefFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractTaskRefFieldComponent, deps: [{ token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
14778
+ AbstractTaskRefFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractTaskRefFieldComponent, selector: "ncc-abstract-task-ref-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
14779
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractTaskRefFieldComponent, decorators: [{
14780
+ type: Component,
14781
+ args: [{
14782
+ selector: 'ncc-abstract-task-ref-field',
14783
+ template: ''
14784
+ }]
14785
+ }], ctorParameters: function () {
14786
+ return [{ type: undefined, decorators: [{
14325
14787
  type: Optional
14326
14788
  }, {
14327
14789
  type: Inject,
14328
14790
  args: [NAE_INFORM_ABOUT_INVALID_DATA]
14329
14791
  }] }];
14330
- }, propDecorators: { dataField: [{
14331
- type: Input
14332
- }] } });
14792
+ } });
14333
14793
 
14334
14794
  /**
14335
14795
  * A collection of Task ref field dashboard component constants used to reference elements of the underlying processes
@@ -14354,134 +14814,6 @@ var TaskRefDashboardTileConstants;
14354
14814
  TaskRefDashboardTileConstants["DASHBOARD_TILE_PROCESS_IDENTIFIER"] = "dashboard_tile";
14355
14815
  })(TaskRefDashboardTileConstants || (TaskRefDashboardTileConstants = {}));
14356
14816
 
14357
- class AbstractTaskRefFieldComponent extends AbstractDataFieldComponent {
14358
- constructor(_logger, informAboutInvalidData) {
14359
- super(informAboutInvalidData);
14360
- this._logger = _logger;
14361
- }
14362
- ngOnInit() {
14363
- super.ngOnInit();
14364
- this.createDashboardTiles();
14365
- }
14366
- createDashboardTiles() {
14367
- const gridRows = this.dataField.dashboardRows;
14368
- if (gridRows === undefined) {
14369
- this._logger.error(`TaskRef Dashboard '${this.dataField.stringId}' does not specify grid height! Add a number field with id '${TaskRefDashboardConstants.DASHBOARD_ROWS}' to the same task as the task ref field, to specify the height.`);
14370
- }
14371
- const gridCols = this.dataField.dashboardCols;
14372
- if (gridCols === undefined) {
14373
- this._logger.error(`TaskRef Dashboard '${this.dataField.stringId}' does not specify grid width! Add a number field with id '${TaskRefDashboardConstants.DASHBOARD_COLS}' to the same task as the task ref field, to specify the width.`);
14374
- }
14375
- const occupiedTiles = this.createFlagGrid(gridRows, gridCols);
14376
- this.dashboardTiles = [];
14377
- if (this.dataField.dashboardTiles && this.dataField.dashboardTiles.length > 0) {
14378
- for (const extractedTile of this.dataField.dashboardTiles) {
14379
- const tile = this.createDashboardTile(extractedTile);
14380
- this.dashboardTiles.push(tile);
14381
- this.occupySpace(occupiedTiles, tile.y, tile.x, tile.cols, tile.rows);
14382
- }
14383
- }
14384
- for (let y = 0; y < occupiedTiles.length; y++) {
14385
- for (let x = 0; x < occupiedTiles[y].length; x++) {
14386
- if (!occupiedTiles[y][x]) {
14387
- this.dashboardTiles.push(this.createEmptyDashboardTile(x, y));
14388
- }
14389
- }
14390
- }
14391
- }
14392
- createFlagGrid(rows = 1, cols = 1) {
14393
- const result = [];
14394
- for (let r = 0; r < rows; r++) {
14395
- result.push(Array(cols).fill(false));
14396
- }
14397
- return result;
14398
- }
14399
- createDashboardTile(tile) {
14400
- const result = {
14401
- dataGroups: tile.dataGroups
14402
- };
14403
- for (const dg of tile.dataGroups) {
14404
- for (const field of dg.fields) {
14405
- switch (field.stringId) {
14406
- case TaskRefDashboardTileConstants.DASHBOARD_TILE_X:
14407
- result.x = field.value;
14408
- break;
14409
- case TaskRefDashboardTileConstants.DASHBOARD_TILE_Y:
14410
- result.y = field.value;
14411
- break;
14412
- case TaskRefDashboardTileConstants.DASHBOARD_TILE_ROWS:
14413
- result.rows = field.value;
14414
- break;
14415
- case TaskRefDashboardTileConstants.DASHBOARD_TILE_COLS:
14416
- result.cols = field.value;
14417
- break;
14418
- }
14419
- }
14420
- }
14421
- if (result.x === undefined) {
14422
- if (tile.dataGroups.length > 0) {
14423
- this._logger.error(`Task ref dashboard tile from task '${tile.dataGroups[0].parentTaskId}' transition '${tile.dataGroups[0].parentTransitionId}' case '${tile.dataGroups[0].parentCaseId}' does not specify tile grid X coordinate! Add a number field with ID '${TaskRefDashboardTileConstants.DASHBOARD_TILE_X}' to the referenced task to specify it.`);
14424
- }
14425
- result.x = 0;
14426
- }
14427
- if (result.y === undefined) {
14428
- if (tile.dataGroups.length > 0) {
14429
- this._logger.error(`Task ref dashboard tile from task '${tile.dataGroups[0].parentTaskId}' transition '${tile.dataGroups[0].parentTransitionId}' case '${tile.dataGroups[0].parentCaseId}' does not specify tile grid Y coordinate! Add a number field with ID '${TaskRefDashboardTileConstants.DASHBOARD_TILE_Y}' to the referenced task to specify it.`);
14430
- }
14431
- result.y = 0;
14432
- }
14433
- if (result.rows === undefined) {
14434
- if (tile.dataGroups.length > 0) {
14435
- this._logger.error(`Task ref dashboard tile from task '${tile.dataGroups[0].parentTaskId}' transition '${tile.dataGroups[0].parentTransitionId}' case '${tile.dataGroups[0].parentCaseId}' does not specify tile height coordinate! Add a number field with ID '${TaskRefDashboardTileConstants.DASHBOARD_TILE_ROWS}' to the referenced task to specify it.`);
14436
- }
14437
- result.rows = 1;
14438
- }
14439
- if (result.cols === undefined) {
14440
- if (tile.dataGroups.length > 0) {
14441
- this._logger.error(`Task ref dashboard tile from task '${tile.dataGroups[0].parentTaskId}' transition '${tile.dataGroups[0].parentTransitionId}' case '${tile.dataGroups[0].parentCaseId}' does not specify tile width coordinate! Add a number field with ID '${TaskRefDashboardTileConstants.DASHBOARD_TILE_COLS}' to the referenced task to specify it.`);
14442
- }
14443
- result.cols = 1;
14444
- }
14445
- return result;
14446
- }
14447
- // TODO a modified copy of a method of the same name from AbstractTaskContentComponent
14448
- occupySpace(grid, y, x, width, height) {
14449
- for (let j = y; j < y + height; j++) {
14450
- for (let i = x; i < x + width; i++) {
14451
- grid[j][i] = true;
14452
- }
14453
- }
14454
- }
14455
- createEmptyDashboardTile(x, y) {
14456
- return {
14457
- dataGroups: [],
14458
- x,
14459
- y,
14460
- rows: 1,
14461
- cols: 1,
14462
- isEmpty: true
14463
- };
14464
- }
14465
- }
14466
- AbstractTaskRefFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractTaskRefFieldComponent, deps: [{ token: LoggerService }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
14467
- AbstractTaskRefFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractTaskRefFieldComponent, selector: "ncc-abstract-task-ref-field", inputs: { dataField: "dataField" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
14468
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractTaskRefFieldComponent, decorators: [{
14469
- type: Component,
14470
- args: [{
14471
- selector: 'ncc-abstract-task-ref-field',
14472
- template: ''
14473
- }]
14474
- }], ctorParameters: function () {
14475
- return [{ type: LoggerService }, { type: undefined, decorators: [{
14476
- type: Optional
14477
- }, {
14478
- type: Inject,
14479
- args: [NAE_INFORM_ABOUT_INVALID_DATA]
14480
- }] }];
14481
- }, propDecorators: { dataField: [{
14482
- type: Input
14483
- }] } });
14484
-
14485
14817
  const NAE_TASK_OPERATIONS = new InjectionToken('NaeTaskOperationsInterface');
14486
14818
 
14487
14819
  class AfterAction extends Subject {
@@ -15993,6 +16325,242 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
15993
16325
  type: Input
15994
16326
  }] } });
15995
16327
 
16328
+ class AbstractTaskRefDashboardFieldComponent extends AbstractBaseDataFieldComponent {
16329
+ constructor(_logger, dataFieldPortalData) {
16330
+ super(dataFieldPortalData);
16331
+ this._logger = _logger;
16332
+ }
16333
+ ngOnInit() {
16334
+ this.createDashboardTiles();
16335
+ }
16336
+ createDashboardTiles() {
16337
+ const gridRows = this.dataField.dashboardRows;
16338
+ if (gridRows === undefined) {
16339
+ this._logger.error(`TaskRef Dashboard '${this.dataField.stringId}' does not specify grid height! Add a number field with id '${TaskRefDashboardConstants.DASHBOARD_ROWS}' to the same task as the task ref field, to specify the height.`);
16340
+ }
16341
+ const gridCols = this.dataField.dashboardCols;
16342
+ if (gridCols === undefined) {
16343
+ this._logger.error(`TaskRef Dashboard '${this.dataField.stringId}' does not specify grid width! Add a number field with id '${TaskRefDashboardConstants.DASHBOARD_COLS}' to the same task as the task ref field, to specify the width.`);
16344
+ }
16345
+ const occupiedTiles = this.createFlagGrid(gridRows, gridCols);
16346
+ this.dashboardTiles = [];
16347
+ if (this.dataField.dashboardTiles && this.dataField.dashboardTiles.length > 0) {
16348
+ for (const extractedTile of this.dataField.dashboardTiles) {
16349
+ const tile = this.createDashboardTile(extractedTile);
16350
+ this.dashboardTiles.push(tile);
16351
+ this.occupySpace(occupiedTiles, tile.y, tile.x, tile.cols, tile.rows);
16352
+ }
16353
+ }
16354
+ for (let y = 0; y < occupiedTiles.length; y++) {
16355
+ for (let x = 0; x < occupiedTiles[y].length; x++) {
16356
+ if (!occupiedTiles[y][x]) {
16357
+ this.dashboardTiles.push(this.createEmptyDashboardTile(x, y));
16358
+ }
16359
+ }
16360
+ }
16361
+ }
16362
+ createFlagGrid(rows = 1, cols = 1) {
16363
+ const result = [];
16364
+ for (let r = 0; r < rows; r++) {
16365
+ result.push(Array(cols).fill(false));
16366
+ }
16367
+ return result;
16368
+ }
16369
+ createDashboardTile(tile) {
16370
+ const result = {
16371
+ dataGroups: tile.dataGroups
16372
+ };
16373
+ for (const dg of tile.dataGroups) {
16374
+ for (const field of dg.fields) {
16375
+ switch (field.stringId) {
16376
+ case TaskRefDashboardTileConstants.DASHBOARD_TILE_X:
16377
+ result.x = field.value;
16378
+ break;
16379
+ case TaskRefDashboardTileConstants.DASHBOARD_TILE_Y:
16380
+ result.y = field.value;
16381
+ break;
16382
+ case TaskRefDashboardTileConstants.DASHBOARD_TILE_ROWS:
16383
+ result.rows = field.value;
16384
+ break;
16385
+ case TaskRefDashboardTileConstants.DASHBOARD_TILE_COLS:
16386
+ result.cols = field.value;
16387
+ break;
16388
+ }
16389
+ }
16390
+ }
16391
+ if (result.x === undefined) {
16392
+ if (tile.dataGroups.length > 0) {
16393
+ this._logger.error(`Task ref dashboard tile from task '${tile.dataGroups[0].parentTaskId}' transition '${tile.dataGroups[0].parentTransitionId}' case '${tile.dataGroups[0].parentCaseId}' does not specify tile grid X coordinate! Add a number field with ID '${TaskRefDashboardTileConstants.DASHBOARD_TILE_X}' to the referenced task to specify it.`);
16394
+ }
16395
+ result.x = 0;
16396
+ }
16397
+ if (result.y === undefined) {
16398
+ if (tile.dataGroups.length > 0) {
16399
+ this._logger.error(`Task ref dashboard tile from task '${tile.dataGroups[0].parentTaskId}' transition '${tile.dataGroups[0].parentTransitionId}' case '${tile.dataGroups[0].parentCaseId}' does not specify tile grid Y coordinate! Add a number field with ID '${TaskRefDashboardTileConstants.DASHBOARD_TILE_Y}' to the referenced task to specify it.`);
16400
+ }
16401
+ result.y = 0;
16402
+ }
16403
+ if (result.rows === undefined) {
16404
+ if (tile.dataGroups.length > 0) {
16405
+ this._logger.error(`Task ref dashboard tile from task '${tile.dataGroups[0].parentTaskId}' transition '${tile.dataGroups[0].parentTransitionId}' case '${tile.dataGroups[0].parentCaseId}' does not specify tile height coordinate! Add a number field with ID '${TaskRefDashboardTileConstants.DASHBOARD_TILE_ROWS}' to the referenced task to specify it.`);
16406
+ }
16407
+ result.rows = 1;
16408
+ }
16409
+ if (result.cols === undefined) {
16410
+ if (tile.dataGroups.length > 0) {
16411
+ this._logger.error(`Task ref dashboard tile from task '${tile.dataGroups[0].parentTaskId}' transition '${tile.dataGroups[0].parentTransitionId}' case '${tile.dataGroups[0].parentCaseId}' does not specify tile width coordinate! Add a number field with ID '${TaskRefDashboardTileConstants.DASHBOARD_TILE_COLS}' to the referenced task to specify it.`);
16412
+ }
16413
+ result.cols = 1;
16414
+ }
16415
+ return result;
16416
+ }
16417
+ // TODO a modified copy of a method of the same name from AbstractTaskContentComponent
16418
+ occupySpace(grid, y, x, width, height) {
16419
+ for (let j = y; j < y + height; j++) {
16420
+ for (let i = x; i < x + width; i++) {
16421
+ grid[j][i] = true;
16422
+ }
16423
+ }
16424
+ }
16425
+ createEmptyDashboardTile(x, y) {
16426
+ return {
16427
+ dataGroups: [],
16428
+ x,
16429
+ y,
16430
+ rows: 1,
16431
+ cols: 1,
16432
+ isEmpty: true
16433
+ };
16434
+ }
16435
+ }
16436
+ AbstractTaskRefDashboardFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractTaskRefDashboardFieldComponent, deps: [{ token: LoggerService }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
16437
+ AbstractTaskRefDashboardFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractTaskRefDashboardFieldComponent, selector: "ncc-abstract-task-ref-dashboard", usesInheritance: true, ngImport: i0, template: '', isInline: true });
16438
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractTaskRefDashboardFieldComponent, decorators: [{
16439
+ type: Component,
16440
+ args: [{
16441
+ selector: 'ncc-abstract-task-ref-dashboard',
16442
+ template: ''
16443
+ }]
16444
+ }], ctorParameters: function () {
16445
+ return [{ type: LoggerService }, { type: undefined, decorators: [{
16446
+ type: Optional
16447
+ }, {
16448
+ type: Inject,
16449
+ args: [DATA_FIELD_PORTAL_DATA]
16450
+ }] }];
16451
+ } });
16452
+
16453
+ class AbstractTaskRefListFieldComponent extends AbstractBaseDataFieldComponent {
16454
+ constructor(injector, taskViewType, dataFieldPortalData) {
16455
+ super(dataFieldPortalData);
16456
+ this.injector = injector;
16457
+ this.taskViewType = taskViewType;
16458
+ }
16459
+ ngAfterViewInit() {
16460
+ this.createFilter();
16461
+ this.dataField.valueChanges().subscribe(() => {
16462
+ this.createFilter();
16463
+ });
16464
+ }
16465
+ createFilter() {
16466
+ const portalInjector = Injector.create({
16467
+ providers: [
16468
+ {
16469
+ provide: NAE_BASE_FILTER,
16470
+ useValue: { filter: SimpleFilter.fromTaskQuery({ stringId: this.dataField.value }) }
16471
+ },
16472
+ {
16473
+ provide: NAE_VIEW_ID_SEGMENT,
16474
+ useValue: this.dataField.parentCaseId + '_' + this.dataField.parentTaskId + '_' + this.dataField.stringId
16475
+ },
16476
+ { provide: ViewIdService, useClass: ViewIdService }
16477
+ ],
16478
+ parent: this.injector
16479
+ });
16480
+ this.componentPortal = new ComponentPortal(this.taskViewType, null, portalInjector);
16481
+ }
16482
+ }
16483
+ AbstractTaskRefListFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractTaskRefListFieldComponent, deps: [{ token: i0.Injector }, { token: i0.Type }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
16484
+ AbstractTaskRefListFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractTaskRefListFieldComponent, selector: "ncc-abstract-task-ref-list-field", usesInheritance: true, ngImport: i0, template: '', isInline: true });
16485
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractTaskRefListFieldComponent, decorators: [{
16486
+ type: Component,
16487
+ args: [{
16488
+ selector: 'ncc-abstract-task-ref-list-field',
16489
+ template: ''
16490
+ }]
16491
+ }], ctorParameters: function () {
16492
+ return [{ type: i0.Injector }, { type: i0.Type }, { type: undefined, decorators: [{
16493
+ type: Optional
16494
+ }, {
16495
+ type: Inject,
16496
+ args: [DATA_FIELD_PORTAL_DATA]
16497
+ }] }];
16498
+ } });
16499
+
16500
+ const NAE_DEFAULT_HEADERS = new InjectionToken('NaeDefaultHeaders');
16501
+
16502
+ const NAE_CASE_REF_CREATE_CASE = new InjectionToken('NaeCaseRefCreateCase');
16503
+ const NAE_CASE_REF_SEARCH = new InjectionToken('NaeCaseRefSearch');
16504
+
16505
+ class AbstractCaseRefDefaultComponent extends AbstractBaseDataFieldComponent {
16506
+ constructor(injector, caseViewType, dataFieldPortalData) {
16507
+ super(dataFieldPortalData);
16508
+ this.injector = injector;
16509
+ this.caseViewType = caseViewType;
16510
+ }
16511
+ ngAfterViewInit() {
16512
+ this.createFilter();
16513
+ this.dataField.valueChanges().subscribe(() => {
16514
+ this.createFilter();
16515
+ });
16516
+ }
16517
+ createFilter() {
16518
+ var _a, _b, _c, _d, _e, _f;
16519
+ let portalInjector;
16520
+ const filterValue = this.dataField.value.length > 0 ? this.dataField.value : '';
16521
+ portalInjector = Injector.create({
16522
+ providers: [
16523
+ {
16524
+ provide: NAE_DEFAULT_HEADERS, useValue: (_b = (_a = this.dataField.component) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.headers.split(',')
16525
+ },
16526
+ {
16527
+ provide: NAE_CASE_REF_CREATE_CASE, useValue: ((_d = (_c = this.dataField.component) === null || _c === void 0 ? void 0 : _c.properties) === null || _d === void 0 ? void 0 : _d.createCase) === 'true'
16528
+ },
16529
+ {
16530
+ provide: NAE_CASE_REF_SEARCH, useValue: ((_f = (_e = this.dataField.component) === null || _e === void 0 ? void 0 : _e.properties) === null || _f === void 0 ? void 0 : _f.search) === 'true'
16531
+ },
16532
+ {
16533
+ provide: NAE_BASE_FILTER,
16534
+ useValue: { filter: SimpleFilter.fromCaseQuery({ stringId: filterValue }) }
16535
+ },
16536
+ {
16537
+ provide: NAE_VIEW_ID_SEGMENT,
16538
+ useValue: this.dataField.parentCaseId + '_' + this.dataField.parentTaskId + '_' + this.dataField.stringId
16539
+ },
16540
+ { provide: ViewIdService, useClass: ViewIdService }
16541
+ ],
16542
+ parent: this.injector
16543
+ });
16544
+ this.componentPortal = new ComponentPortal(this.caseViewType, null, portalInjector);
16545
+ }
16546
+ }
16547
+ AbstractCaseRefDefaultComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractCaseRefDefaultComponent, deps: [{ token: i0.Injector }, { token: i0.Type }, { token: DATA_FIELD_PORTAL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
16548
+ AbstractCaseRefDefaultComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractCaseRefDefaultComponent, selector: "ncc-abstract-case-ref-default", usesInheritance: true, ngImport: i0, template: '', isInline: true });
16549
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractCaseRefDefaultComponent, decorators: [{
16550
+ type: Component,
16551
+ args: [{
16552
+ selector: 'ncc-abstract-case-ref-default',
16553
+ template: ''
16554
+ }]
16555
+ }], ctorParameters: function () {
16556
+ return [{ type: i0.Injector }, { type: i0.Type }, { type: undefined, decorators: [{
16557
+ type: Optional
16558
+ }, {
16559
+ type: Inject,
16560
+ args: [DATA_FIELD_PORTAL_DATA]
16561
+ }] }];
16562
+ } });
16563
+
15996
16564
  const BOOLEAN_VALUE_LABEL_ENABLED = new InjectionToken('BooleanValueLabelEnabledToken');
15997
16565
 
15998
16566
  /**
@@ -17353,15 +17921,6 @@ var PermissionType;
17353
17921
  PermissionType["SET"] = "set";
17354
17922
  })(PermissionType || (PermissionType = {}));
17355
17923
 
17356
- const NAE_USER_ASSIGN_COMPONENT = new InjectionToken('NaeUserAssignComponent');
17357
- const NAE_FILES_UPLOAD_COMPONENT = new InjectionToken('NaeFilesUploadComponent');
17358
- const NAE_NEW_CASE_COMPONENT = new InjectionToken('NaeNewCaseComponent');
17359
- const NAE_OPTION_SELECTOR_COMPONENT = new InjectionToken('NaeOptionSelectorComponent');
17360
- const NAE_SAVE_FILTER_COMPONENT = new InjectionToken('NaeSaveFilterComponent');
17361
- const NAE_LOAD_FILTER_COMPONENT = new InjectionToken('NaeLoadFilterComponent');
17362
- const NAE_USER_IMPERSONATE_COMPONENT = new InjectionToken('NaeUserImpersonateComponent');
17363
- const NAE_ADMIN_IMPERSONATE_COMPONENT = new InjectionToken('NaeAdminImpersonateComponent');
17364
-
17365
17924
  /**
17366
17925
  * Holds the information that accompanies a page load request. These information are held outside of the
17367
17926
  * service that handles the requests, so that state information about multiple requests can be handled independently of each other.
@@ -17534,6 +18093,15 @@ function createSortParam(attribute, direction) {
17534
18093
  return `${attribute},${direction}`;
17535
18094
  }
17536
18095
 
18096
+ const NAE_USER_ASSIGN_DIALOG_COMPONENT = new InjectionToken('NaeUserAssignDialogComponent');
18097
+ const NAE_FILES_UPLOAD_DIALOG_COMPONENT = new InjectionToken('NaeFilesUploadDialogComponent');
18098
+ const NAE_NEW_CASE_DIALOG_COMPONENT = new InjectionToken('NaeNewCaseDialogComponent');
18099
+ const NAE_OPTION_SELECTOR_DIALOG_COMPONENT = new InjectionToken('NaeOptionSelectorDialogComponent');
18100
+ const NAE_SAVE_FILTER_DIALOG_COMPONENT = new InjectionToken('NaeSaveFilterDialogComponent');
18101
+ const NAE_LOAD_FILTER_DIALOG_COMPONENT = new InjectionToken('NaeLoadFilterDialogComponent');
18102
+ const NAE_USER_IMPERSONATE_DIALOG_COMPONENT = new InjectionToken('NaeUserImpersonateDialogComponent');
18103
+ const NAE_ADMIN_IMPERSONATE_DIALOG_COMPONENT = new InjectionToken('NaeAdminImpersonateDialogComponent');
18104
+
17537
18105
  /**
17538
18106
  * Enum AssignPolicy
17539
18107
  *
@@ -17664,10 +18232,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
17664
18232
  }], ctorParameters: function () { return [{ type: UserComparatorService }, { type: UserService }]; } });
17665
18233
 
17666
18234
  class CaseViewService extends AbstractSortableViewComponent {
17667
- constructor(_allowedNetsService, _sideMenuService, _caseResourceService, _log, _snackBarService, _searchService, _translate, _user, _processService, resolver, _newCaseComponent, newCaseConfig, _permissionService) {
18235
+ constructor(_allowedNetsService, _dialog, _caseResourceService, _log, _snackBarService, _searchService, _translate, _user, _processService, resolver, _newCaseComponent, newCaseConfig, _permissionService) {
17668
18236
  super(resolver);
17669
18237
  this._allowedNetsService = _allowedNetsService;
17670
- this._sideMenuService = _sideMenuService;
18238
+ this._dialog = _dialog;
17671
18239
  this._caseResourceService = _caseResourceService;
17672
18240
  this._log = _log;
17673
18241
  this._snackBarService = _snackBarService;
@@ -17800,12 +18368,18 @@ class CaseViewService extends AbstractSortableViewComponent {
17800
18368
  isCaseTitleRequired: true
17801
18369
  }) {
17802
18370
  const myCase = new Subject();
17803
- this._sideMenuService.open(this._newCaseComponent, SideMenuSize.MEDIUM, {
17804
- allowedNets$: this.getNewCaseAllowedNets(),
17805
- newCaseCreationConfiguration
17806
- }).onClose.subscribe($event => {
17807
- this._log.debug($event.message, $event.data);
17808
- if ($event.data) {
18371
+ const dialogRef = this._dialog.open(this._newCaseComponent, {
18372
+ width: '40%',
18373
+ minWidth: '300px',
18374
+ panelClass: "dialog-responsive",
18375
+ data: {
18376
+ allowedNets$: this.getNewCaseAllowedNets(),
18377
+ newCaseCreationConfiguration
18378
+ },
18379
+ });
18380
+ dialogRef.afterClosed().subscribe($event => {
18381
+ if ($event === null || $event === void 0 ? void 0 : $event.data) {
18382
+ this._log.debug($event.message, $event.data);
17809
18383
  this.reload();
17810
18384
  myCase.next($event.data);
17811
18385
  }
@@ -17892,16 +18466,16 @@ class CaseViewService extends AbstractSortableViewComponent {
17892
18466
  return this._permissionService.hasCasePermission(aCase, PermissionType.VIEW);
17893
18467
  }
17894
18468
  }
17895
- CaseViewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CaseViewService, deps: [{ token: AllowedNetsService }, { token: SideMenuService }, { token: CaseResourceService }, { token: LoggerService }, { token: SnackBarService }, { token: SearchService }, { token: i1$2.TranslateService }, { token: UserService }, { token: ProcessService }, { token: SearchIndexResolverService }, { token: NAE_NEW_CASE_COMPONENT, optional: true }, { token: NAE_NEW_CASE_CONFIGURATION, optional: true }, { token: PermissionService }], target: i0.ɵɵFactoryTarget.Injectable });
18469
+ CaseViewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CaseViewService, deps: [{ token: AllowedNetsService }, { token: i1$3.MatDialog }, { token: CaseResourceService }, { token: LoggerService }, { token: SnackBarService }, { token: SearchService }, { token: i1$2.TranslateService }, { token: UserService }, { token: ProcessService }, { token: SearchIndexResolverService }, { token: NAE_NEW_CASE_DIALOG_COMPONENT, optional: true }, { token: NAE_NEW_CASE_CONFIGURATION, optional: true }, { token: PermissionService }], target: i0.ɵɵFactoryTarget.Injectable });
17896
18470
  CaseViewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CaseViewService });
17897
18471
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CaseViewService, decorators: [{
17898
18472
  type: Injectable
17899
18473
  }], ctorParameters: function () {
17900
- return [{ type: AllowedNetsService }, { type: SideMenuService }, { type: CaseResourceService }, { type: LoggerService }, { type: SnackBarService }, { type: SearchService }, { type: i1$2.TranslateService }, { type: UserService }, { type: ProcessService }, { type: SearchIndexResolverService }, { type: undefined, decorators: [{
18474
+ return [{ type: AllowedNetsService }, { type: i1$3.MatDialog }, { type: CaseResourceService }, { type: LoggerService }, { type: SnackBarService }, { type: SearchService }, { type: i1$2.TranslateService }, { type: UserService }, { type: ProcessService }, { type: SearchIndexResolverService }, { type: undefined, decorators: [{
17901
18475
  type: Optional
17902
18476
  }, {
17903
18477
  type: Inject,
17904
- args: [NAE_NEW_CASE_COMPONENT]
18478
+ args: [NAE_NEW_CASE_DIALOG_COMPONENT]
17905
18479
  }] }, { type: undefined, decorators: [{
17906
18480
  type: Optional
17907
18481
  }, {
@@ -18483,6 +19057,187 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
18483
19057
  }] }, { type: TaskContentService }];
18484
19058
  } });
18485
19059
 
19060
+ var SideMenuSize;
19061
+ (function (SideMenuSize) {
19062
+ SideMenuSize["SMALL"] = "side-menu-width-small";
19063
+ SideMenuSize["MEDIUM"] = "side-menu-width-medium";
19064
+ SideMenuSize["LARGE"] = "side-menu-width-large";
19065
+ SideMenuSize["XL"] = "side-menu-width-xl";
19066
+ })(SideMenuSize || (SideMenuSize = {}));
19067
+
19068
+ const NAE_USER_ASSIGN_COMPONENT = new InjectionToken('NaeUserAssignComponent');
19069
+ const NAE_FILES_UPLOAD_COMPONENT = new InjectionToken('NaeFilesUploadComponent');
19070
+ const NAE_NEW_CASE_COMPONENT = new InjectionToken('NaeNewCaseComponent');
19071
+ const NAE_OPTION_SELECTOR_COMPONENT = new InjectionToken('NaeOptionSelectorComponent');
19072
+ const NAE_SAVE_FILTER_COMPONENT = new InjectionToken('NaeSaveFilterComponent');
19073
+ const NAE_LOAD_FILTER_COMPONENT = new InjectionToken('NaeLoadFilterComponent');
19074
+ const NAE_USER_IMPERSONATE_COMPONENT = new InjectionToken('NaeUserImpersonateComponent');
19075
+ const NAE_ADMIN_IMPERSONATE_COMPONENT = new InjectionToken('NaeAdminImpersonateComponent');
19076
+
19077
+ const NAE_SIDE_MENU_CONTROL = new InjectionToken('NaeSideMenuControl');
19078
+
19079
+ class PortalWrapper {
19080
+ constructor(_portal, _width) {
19081
+ this._portal = _portal;
19082
+ this._width = _width;
19083
+ }
19084
+ get portal() {
19085
+ return this._portal;
19086
+ }
19087
+ get size() {
19088
+ return this._width;
19089
+ }
19090
+ }
19091
+
19092
+ class SideMenuRef {
19093
+ constructor(_event$) {
19094
+ this._event$ = _event$;
19095
+ }
19096
+ get onEvent() {
19097
+ return !!this._event$ ? this._event$.asObservable() :
19098
+ throwError(new Error('Side menu event stream was not correctly bound to side menu component!'));
19099
+ }
19100
+ get onClose() {
19101
+ return !!this._event$ ? this._event$.pipe(filter((event) => !event.opened)) :
19102
+ throwError(new Error('Side menu close event stream was not correctly bound to side menu component!'));
19103
+ }
19104
+ }
19105
+
19106
+ class SideMenuControl {
19107
+ constructor(bindingsFunction = () => { }, sideMenuOpenedStateChange = of(true), sideMenuCloseFunction, _injectionData, isVersionVisible, allVersionEnabled) {
19108
+ this.sideMenuCloseFunction = sideMenuCloseFunction;
19109
+ this._injectionData = _injectionData;
19110
+ this.isVersionVisible = isVersionVisible;
19111
+ this.allVersionEnabled = allVersionEnabled;
19112
+ this._event$ = new Subject();
19113
+ bindingsFunction(this._event$);
19114
+ sideMenuOpenedStateChange.subscribe((opened) => {
19115
+ if (!opened) {
19116
+ this._event$.next({ opened, message: 'Side menu closed unexpectedly' });
19117
+ this._event$.complete();
19118
+ }
19119
+ });
19120
+ }
19121
+ get data() {
19122
+ return this._injectionData;
19123
+ }
19124
+ publish(event) {
19125
+ this._event$.next(event);
19126
+ }
19127
+ close(event) {
19128
+ if (!event.message) {
19129
+ event.message = 'Side menu is closing';
19130
+ }
19131
+ this._event$.next(Object.assign(Object.assign({}, event), { opened: false }));
19132
+ return this.sideMenuCloseFunction().pipe(tap((closed) => {
19133
+ if (closed === 'close') {
19134
+ this._event$.complete();
19135
+ }
19136
+ }));
19137
+ }
19138
+ }
19139
+
19140
+ const NAE_NET_VERSION_VISIBLE = new InjectionToken('NaeNetVersionVisible');
19141
+ const NAE_NET_ALL_VERSIONS = new InjectionToken('NaeNetAllVersion');
19142
+
19143
+ class SideMenuService {
19144
+ constructor(isVersionVisible, allVersionEnabled) {
19145
+ this.isVersionVisible = isVersionVisible !== null ? isVersionVisible : true;
19146
+ this.allVersionEnabled = allVersionEnabled !== null ? allVersionEnabled : false;
19147
+ }
19148
+ /**
19149
+ * register SideMenuContainerComponent
19150
+ *
19151
+ * params menu is SideMenuContainerComponent
19152
+ */
19153
+ registerSideMenu(menu) {
19154
+ if (this._sideMenuComponent) {
19155
+ throw new Error('SideMenuContainerComponent has been already registered!');
19156
+ }
19157
+ this._sideMenuComponent = menu;
19158
+ }
19159
+ isOpened() {
19160
+ return this._sideMenuComponent.isOpened();
19161
+ }
19162
+ /**
19163
+ * Open this _sideMenu, and return a Observable that will resolve when it's fully opened (or get rejected if it didn't).
19164
+ *
19165
+ * @returns Observable<MatDrawerToggleResult>
19166
+ */
19167
+ open(componentOrTemplateRef, width = SideMenuSize.MEDIUM, injectionData) {
19168
+ if (!this.componentIsPresent()) {
19169
+ throw new Error('Side menu is not initialized');
19170
+ }
19171
+ if (this._sideMenuComponent.isOpened()) {
19172
+ throw new Error('Side menu has been already opened with another content');
19173
+ }
19174
+ let ref = new SideMenuRef(null);
19175
+ this._controlObject = new SideMenuControl(((event) => {
19176
+ ref = new SideMenuRef(event);
19177
+ }), this._sideMenuComponent.openedChange(), () => this._sideMenuComponent.close(this._sideMenuComponent), injectionData, this.isVersionVisible, this.allVersionEnabled);
19178
+ const wrapper = this._createPortal(componentOrTemplateRef, width, this._controlObject);
19179
+ this._sideMenuComponent.open(wrapper).subscribe((opened) => {
19180
+ if (opened === 'open') {
19181
+ this._controlObject.publish({ opened: true });
19182
+ }
19183
+ });
19184
+ return ref;
19185
+ }
19186
+ _createPortal(template, size, controlObject) {
19187
+ if (template === undefined || template === null) {
19188
+ throw new Error('A component template must be provided to open a side menu!');
19189
+ }
19190
+ if (template instanceof TemplateRef) {
19191
+ return new PortalWrapper(new TemplatePortal(template, null), size);
19192
+ }
19193
+ if (template instanceof Type) {
19194
+ const injector = Injector.create({ providers: [{ provide: NAE_SIDE_MENU_CONTROL, useValue: controlObject }] });
19195
+ return new PortalWrapper(new ComponentPortal(template, null, injector), size);
19196
+ }
19197
+ }
19198
+ /**
19199
+ * Close this _sideMenu, and return a Observable that will resolve when it's fully closed (or get rejected if it didn't).
19200
+ *
19201
+ * @returns Observable<MatDrawerToggleResult>
19202
+ */
19203
+ close(closeEvent) {
19204
+ return this._controlObject.close(closeEvent);
19205
+ }
19206
+ /**
19207
+ * Toggle this _sideMenu. This is equivalent to calling close() when it's already opened, or open() when it's closed.
19208
+ *
19209
+ * @param isOpen Whether the _sideMenu should be open.
19210
+ *
19211
+ * @returns open or close side menu
19212
+ */
19213
+ // public toggle(isOpen?: boolean): Observable<MatDrawerToggleResult> {
19214
+ // return from(this._sideMenu.toggle(isOpen));
19215
+ // }
19216
+ componentIsPresent() {
19217
+ return !!this._sideMenuComponent;
19218
+ }
19219
+ }
19220
+ SideMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SideMenuService, deps: [{ token: NAE_NET_VERSION_VISIBLE, optional: true }, { token: NAE_NET_ALL_VERSIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
19221
+ SideMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SideMenuService, providedIn: 'root' });
19222
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SideMenuService, decorators: [{
19223
+ type: Injectable,
19224
+ args: [{
19225
+ providedIn: 'root'
19226
+ }]
19227
+ }], ctorParameters: function () {
19228
+ return [{ type: undefined, decorators: [{
19229
+ type: Optional
19230
+ }, {
19231
+ type: Inject,
19232
+ args: [NAE_NET_VERSION_VISIBLE]
19233
+ }] }, { type: undefined, decorators: [{
19234
+ type: Optional
19235
+ }, {
19236
+ type: Inject,
19237
+ args: [NAE_NET_ALL_VERSIONS]
19238
+ }] }];
19239
+ } });
19240
+
18486
19241
  /**
18487
19242
  * Service that handles the logic of delegating a task.
18488
19243
  */
@@ -20131,7 +20886,7 @@ class AbstractWorkflowPanelComponent extends AbstractPanelWithHeaderBindingCompo
20131
20886
  }
20132
20887
  }
20133
20888
  AbstractWorkflowPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractWorkflowPanelComponent, deps: [{ token: LoggerService }, { token: i1$2.TranslateService }, { token: WorkflowViewService }, { token: PetriNetResourceService }, { token: OverflowService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
20134
- AbstractWorkflowPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractWorkflowPanelComponent, selector: "ncc-abstract-workflow-panel", inputs: { workflow: "workflow", selectedHeaders$: "selectedHeaders$", responsiveBody: "responsiveBody", showDeleteMenu: "showDeleteMenu" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
20889
+ AbstractWorkflowPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractWorkflowPanelComponent, selector: "ncc-abstract-workflow-panel", inputs: { workflow: "workflow", selectedHeaders$: "selectedHeaders$", responsiveBody: "responsiveBody", showDeleteMenu: "showDeleteMenu", first: "first", last: "last" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
20135
20890
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractWorkflowPanelComponent, decorators: [{
20136
20891
  type: Component,
20137
20892
  args: [{
@@ -20150,6 +20905,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
20150
20905
  type: Input
20151
20906
  }], showDeleteMenu: [{
20152
20907
  type: Input
20908
+ }], first: [{
20909
+ type: Input
20910
+ }], last: [{
20911
+ type: Input
20153
20912
  }] } });
20154
20913
 
20155
20914
  /**
@@ -22548,7 +23307,7 @@ function getFieldIndexFromDataGroups(groups, fieldId) {
22548
23307
  * Service that manages filters created by users of the application.
22549
23308
  */
22550
23309
  class UserFiltersService {
22551
- constructor(_caseService, _taskService, _processService, _callChainService, _sideMenuService, _log, _categoryResolverService, _saveFilterComponent, _loadFilterComponent) {
23310
+ constructor(_caseService, _taskService, _processService, _callChainService, _sideMenuService, _log, _categoryResolverService, _dialog, _saveFilterComponent, _loadFilterComponent) {
22552
23311
  this._caseService = _caseService;
22553
23312
  this._taskService = _taskService;
22554
23313
  this._processService = _processService;
@@ -22556,6 +23315,7 @@ class UserFiltersService {
22556
23315
  this._sideMenuService = _sideMenuService;
22557
23316
  this._log = _log;
22558
23317
  this._categoryResolverService = _categoryResolverService;
23318
+ this._dialog = _dialog;
22559
23319
  this._saveFilterComponent = _saveFilterComponent;
22560
23320
  this._loadFilterComponent = _loadFilterComponent;
22561
23321
  this._initialized$ = new ReplaySubject(1);
@@ -22622,10 +23382,13 @@ class UserFiltersService {
22622
23382
  filterCasesFilter = filterCasesFilter.merge(additionalFilter, MergeOperator.AND);
22623
23383
  }
22624
23384
  const result = new ReplaySubject(1);
22625
- const ref = this._sideMenuService.open(this._loadFilterComponent, SideMenuSize.LARGE, {
22626
- filter: filterCasesFilter
23385
+ const ref = this._dialog.open(this._loadFilterComponent, {
23386
+ panelClass: "dialog-responsive",
23387
+ data: {
23388
+ filter: filterCasesFilter
23389
+ },
22627
23390
  });
22628
- ref.onClose.pipe(filter(e => !e.opened), take(1)).subscribe(event => {
23391
+ ref.afterClosed().subscribe(event => {
22629
23392
  if (event.message === 'Side menu closed unexpectedly') {
22630
23393
  result.next();
22631
23394
  }
@@ -22672,10 +23435,13 @@ class UserFiltersService {
22672
23435
  }
22673
23436
  const result = new ReplaySubject(1);
22674
23437
  this.createFilterCaseAndSetData(searchService, allowedNets, searchCategories, viewId, additionalData, withDefaultCategories, inheritAllowedNets, navigationItemTaskData).subscribe(filterCaseId => {
22675
- const ref = this._sideMenuService.open(this._saveFilterComponent, SideMenuSize.LARGE, {
22676
- newFilterCaseId: filterCaseId
23438
+ const ref = this._dialog.open(this._saveFilterComponent, {
23439
+ panelClass: "dialog-responsive",
23440
+ data: {
23441
+ newFilterCaseId: filterCaseId
23442
+ },
22677
23443
  });
22678
- ref.onClose.pipe(filter(e => !e.opened), take(1)).subscribe(event => {
23444
+ ref.afterClosed().subscribe(event => {
22679
23445
  if (event.message === 'Side menu closed unexpectedly') {
22680
23446
  this.delete(filterCaseId);
22681
23447
  result.next();
@@ -22826,7 +23592,7 @@ class UserFiltersService {
22826
23592
  };
22827
23593
  }
22828
23594
  }
22829
- UserFiltersService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UserFiltersService, deps: [{ token: CaseResourceService }, { token: TaskResourceService }, { token: ProcessService }, { token: CallChainService }, { token: SideMenuService }, { token: LoggerService }, { token: CategoryResolverService }, { token: NAE_SAVE_FILTER_COMPONENT, optional: true }, { token: NAE_LOAD_FILTER_COMPONENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
23595
+ UserFiltersService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UserFiltersService, deps: [{ token: CaseResourceService }, { token: TaskResourceService }, { token: ProcessService }, { token: CallChainService }, { token: SideMenuService }, { token: LoggerService }, { token: CategoryResolverService }, { token: i1$3.MatDialog }, { token: NAE_SAVE_FILTER_DIALOG_COMPONENT, optional: true }, { token: NAE_LOAD_FILTER_DIALOG_COMPONENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
22830
23596
  UserFiltersService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UserFiltersService, providedIn: 'root' });
22831
23597
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UserFiltersService, decorators: [{
22832
23598
  type: Injectable,
@@ -22834,16 +23600,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
22834
23600
  providedIn: 'root'
22835
23601
  }]
22836
23602
  }], ctorParameters: function () {
22837
- return [{ type: CaseResourceService }, { type: TaskResourceService }, { type: ProcessService }, { type: CallChainService }, { type: SideMenuService }, { type: LoggerService }, { type: CategoryResolverService }, { type: undefined, decorators: [{
23603
+ return [{ type: CaseResourceService }, { type: TaskResourceService }, { type: ProcessService }, { type: CallChainService }, { type: SideMenuService }, { type: LoggerService }, { type: CategoryResolverService }, { type: i1$3.MatDialog }, { type: undefined, decorators: [{
22838
23604
  type: Optional
22839
23605
  }, {
22840
23606
  type: Inject,
22841
- args: [NAE_SAVE_FILTER_COMPONENT]
23607
+ args: [NAE_SAVE_FILTER_DIALOG_COMPONENT]
22842
23608
  }] }, { type: undefined, decorators: [{
22843
23609
  type: Optional
22844
23610
  }, {
22845
23611
  type: Inject,
22846
- args: [NAE_LOAD_FILTER_COMPONENT]
23612
+ args: [NAE_LOAD_FILTER_DIALOG_COMPONENT]
22847
23613
  }] }];
22848
23614
  } });
22849
23615
 
@@ -23673,8 +24439,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
23673
24439
  }] }];
23674
24440
  } });
23675
24441
 
23676
- const NAE_DEFAULT_HEADERS = new InjectionToken('NaeDefaultHeaders');
23677
-
23678
24442
  class CaseHeaderService extends AbstractHeaderService {
23679
24443
  constructor(_allowedNetsService, preferences, logger, viewIdService, overflowService, naeDefaultHeaders) {
23680
24444
  super(HeaderType.CASE, preferences, logger, viewIdService, overflowService);
@@ -26713,12 +27477,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
26713
27477
  }], ctorParameters: function () { return [{ type: ResourceProvider }, { type: i2$3.Router }, { type: ConfigurationService }, { type: UserService }, { type: SnackBarService }, { type: FilterRepository }, { type: LoggerService }, { type: i1$2.TranslateService }]; } });
26714
27478
 
26715
27479
  class ImpersonationUserSelectService {
26716
- constructor(_log, _sideMenuService, _snackBar, _impersonation, _user, _userImpersonateComponent, _adminImpersonateComponent) {
27480
+ constructor(_log, _snackBar, _impersonation, _user, _dialog, _userImpersonateComponent, _adminImpersonateComponent) {
26717
27481
  this._log = _log;
26718
- this._sideMenuService = _sideMenuService;
26719
27482
  this._snackBar = _snackBar;
26720
27483
  this._impersonation = _impersonation;
26721
27484
  this._user = _user;
27485
+ this._dialog = _dialog;
26722
27486
  this._userImpersonateComponent = _userImpersonateComponent;
26723
27487
  this._adminImpersonateComponent = _adminImpersonateComponent;
26724
27488
  }
@@ -26727,18 +27491,26 @@ class ImpersonationUserSelectService {
26727
27491
  */
26728
27492
  selectImpersonate() {
26729
27493
  if (this.isAdmin()) {
26730
- this._sideMenuService.open(this._adminImpersonateComponent, SideMenuSize.LARGE, this.injectedData()).onClose.subscribe(event => {
27494
+ const dialogRef = this._dialog.open(this._adminImpersonateComponent, {
27495
+ panelClass: "dialog-responsive",
27496
+ data: this.injectedData(),
27497
+ });
27498
+ dialogRef.afterClosed().subscribe(event => {
26731
27499
  this._log.debug('Impersonable user select :' + event);
26732
- if (event.data === undefined) {
27500
+ if ((event === null || event === void 0 ? void 0 : event.data) === undefined) {
26733
27501
  return;
26734
27502
  }
26735
27503
  this._impersonation.impersonateUser(event.data._id);
26736
27504
  });
26737
27505
  }
26738
27506
  else {
26739
- this._sideMenuService.open(this._userImpersonateComponent, SideMenuSize.XL, this.injectedData()).onClose.subscribe(event => {
27507
+ const dialogRef = this._dialog.open(this._userImpersonateComponent, {
27508
+ panelClass: "dialog-responsive",
27509
+ data: this.injectedData(),
27510
+ });
27511
+ dialogRef.afterClosed().subscribe(event => {
26740
27512
  this._log.debug('Impersonable config select :' + event);
26741
- if (event.data === undefined) {
27513
+ if ((event === null || event === void 0 ? void 0 : event.data) === undefined) {
26742
27514
  return;
26743
27515
  }
26744
27516
  this._impersonation.impersonateByConfig(event.data.stringId);
@@ -26766,7 +27538,7 @@ class ImpersonationUserSelectService {
26766
27538
  return this._user.hasAuthority('ROLE_ADMIN');
26767
27539
  }
26768
27540
  }
26769
- ImpersonationUserSelectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ImpersonationUserSelectService, deps: [{ token: LoggerService }, { token: SideMenuService }, { token: SnackBarService }, { token: ImpersonationService }, { token: UserService }, { token: NAE_USER_IMPERSONATE_COMPONENT, optional: true }, { token: NAE_ADMIN_IMPERSONATE_COMPONENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
27541
+ ImpersonationUserSelectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ImpersonationUserSelectService, deps: [{ token: LoggerService }, { token: SnackBarService }, { token: ImpersonationService }, { token: UserService }, { token: i1$3.MatDialog }, { token: NAE_USER_IMPERSONATE_DIALOG_COMPONENT, optional: true }, { token: NAE_ADMIN_IMPERSONATE_DIALOG_COMPONENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
26770
27542
  ImpersonationUserSelectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ImpersonationUserSelectService, providedIn: 'root' });
26771
27543
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ImpersonationUserSelectService, decorators: [{
26772
27544
  type: Injectable,
@@ -26774,16 +27546,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
26774
27546
  providedIn: 'root'
26775
27547
  }]
26776
27548
  }], ctorParameters: function () {
26777
- return [{ type: LoggerService }, { type: SideMenuService }, { type: SnackBarService }, { type: ImpersonationService }, { type: UserService }, { type: undefined, decorators: [{
27549
+ return [{ type: LoggerService }, { type: SnackBarService }, { type: ImpersonationService }, { type: UserService }, { type: i1$3.MatDialog }, { type: undefined, decorators: [{
26778
27550
  type: Optional
26779
27551
  }, {
26780
27552
  type: Inject,
26781
- args: [NAE_USER_IMPERSONATE_COMPONENT]
27553
+ args: [NAE_USER_IMPERSONATE_DIALOG_COMPONENT]
26782
27554
  }] }, { type: undefined, decorators: [{
26783
27555
  type: Optional
26784
27556
  }, {
26785
27557
  type: Inject,
26786
- args: [NAE_ADMIN_IMPERSONATE_COMPONENT]
27558
+ args: [NAE_ADMIN_IMPERSONATE_DIALOG_COMPONENT]
26787
27559
  }] }];
26788
27560
  } });
26789
27561
 
@@ -28869,9 +29641,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
28869
29641
  }], ctorParameters: function () { return []; } });
28870
29642
 
28871
29643
  class AbstractWorkflowViewComponent extends AbstractViewWithHeadersComponent {
28872
- constructor(_sideMenuService, _workflowViewService, _log, _processService, _activatedRoute) {
29644
+ constructor(_dialog, _workflowViewService, _log, _processService, _activatedRoute) {
28873
29645
  super(_workflowViewService, _activatedRoute);
28874
- this._sideMenuService = _sideMenuService;
29646
+ this._dialog = _dialog;
28875
29647
  this._workflowViewService = _workflowViewService;
28876
29648
  this._log = _log;
28877
29649
  this._processService = _processService;
@@ -28885,7 +29657,12 @@ class AbstractWorkflowViewComponent extends AbstractViewWithHeadersComponent {
28885
29657
  this.initializeHeader(this.workflowHeader);
28886
29658
  }
28887
29659
  importSidemenuNet(component) {
28888
- this._sideMenuService.open(component).onClose.subscribe(event => {
29660
+ const dialogRef = this._dialog.open(component, {
29661
+ width: '40%',
29662
+ minWidth: '300px',
29663
+ panelClass: "dialog-responsive",
29664
+ });
29665
+ dialogRef.afterClosed().subscribe(event => {
28889
29666
  var _a, _b;
28890
29667
  if (((_a = event.data) === null || _a === void 0 ? void 0 : _a.net) !== undefined) {
28891
29668
  this._workflowViewService.reload();
@@ -28924,7 +29701,7 @@ class AbstractWorkflowViewComponent extends AbstractViewWithHeadersComponent {
28924
29701
  }
28925
29702
  }
28926
29703
  }
28927
- AbstractWorkflowViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractWorkflowViewComponent, deps: [{ token: SideMenuService }, { token: WorkflowViewService }, { token: LoggerService }, { token: ProcessService }, { token: i2$3.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
29704
+ AbstractWorkflowViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractWorkflowViewComponent, deps: [{ token: i1$3.MatDialog }, { token: WorkflowViewService }, { token: LoggerService }, { token: ProcessService }, { token: i2$3.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
28928
29705
  AbstractWorkflowViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractWorkflowViewComponent, selector: "ncc-abstract-workflow-view", inputs: { footerSize: "footerSize", showDeleteMenu: "showDeleteMenu" }, viewQueries: [{ propertyName: "workflowHeader", first: true, predicate: ["header"], descendants: true }, { propertyName: "viewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
28929
29706
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractWorkflowViewComponent, decorators: [{
28930
29707
  type: Component,
@@ -28932,7 +29709,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
28932
29709
  selector: 'ncc-abstract-workflow-view',
28933
29710
  template: ''
28934
29711
  }]
28935
- }], ctorParameters: function () { return [{ type: SideMenuService }, { type: WorkflowViewService }, { type: LoggerService }, { type: ProcessService }, { type: i2$3.ActivatedRoute }]; }, propDecorators: { footerSize: [{
29712
+ }], ctorParameters: function () { return [{ type: i1$3.MatDialog }, { type: WorkflowViewService }, { type: LoggerService }, { type: ProcessService }, { type: i2$3.ActivatedRoute }]; }, propDecorators: { footerSize: [{
28936
29713
  type: Input
28937
29714
  }], showDeleteMenu: [{
28938
29715
  type: Input
@@ -33363,7 +34140,7 @@ class AbstractTaskContentComponent {
33363
34140
  const result = [];
33364
34141
  for (let i = 0; i < dataGroups.length; i++) {
33365
34142
  const group = dataGroups[i];
33366
- if (!group.fields.some(f => this.isTaskRef(f))) {
34143
+ if (!group.fields.some(f => this.isTaskRef(f) && this.shouldResolveTaskRefData(f))) {
33367
34144
  result.push(group);
33368
34145
  continue;
33369
34146
  }
@@ -33371,9 +34148,9 @@ class AbstractTaskContentComponent {
33371
34148
  if (split.startGroup !== undefined) {
33372
34149
  result.push(split.startGroup);
33373
34150
  }
33374
- if (((_a = split.taskRef.component) === null || _a === void 0 ? void 0 : _a.name) === TaskRefComponents.DASHBOARD) {
33375
- result.push(this.createDashboardTaskRefDataGroup(group, split.taskRef));
33376
- containsDashboard = true;
34151
+ if (!!((_a = split.taskRef.component) === null || _a === void 0 ? void 0 : _a.name)) {
34152
+ result.push(this.createComponentTaskRefDataGroup(group, split.taskRef));
34153
+ containsDashboard = split.taskRef.component.name === TaskRefComponents.DASHBOARD;
33377
34154
  }
33378
34155
  if (split.taskRef.value.length === 0 || split.endGroup === undefined) {
33379
34156
  if (split.endGroup !== undefined) {
@@ -33488,14 +34265,15 @@ class AbstractTaskContentComponent {
33488
34265
  * The information about nesting and parent task/case are preserved from the passed original data group.
33489
34266
  * @param originalDataGroup source of the information about parent task/case
33490
34267
  * @param taskRef the task ref that will be added to the new data group
34268
+ * @param title optional title for taskref
33491
34269
  * @protected
33492
34270
  */
33493
- createDashboardTaskRefDataGroup(originalDataGroup, taskRef) {
34271
+ createComponentTaskRefDataGroup(originalDataGroup, taskRef, title) {
33494
34272
  return {
33495
34273
  fields: [taskRef],
33496
34274
  alignment: undefined,
33497
34275
  stretch: false,
33498
- title: undefined,
34276
+ title: title,
33499
34277
  parentTaskId: originalDataGroup.parentTaskId,
33500
34278
  parentTransitionId: originalDataGroup.parentTransitionId,
33501
34279
  parentCaseId: originalDataGroup.parentCaseId,
@@ -33866,6 +34644,18 @@ class AbstractTaskContentComponent {
33866
34644
  return element.item.stringId + '-' + this.taskContentService.$shouldCreateCounter.getValue();
33867
34645
  }
33868
34646
  }
34647
+ shouldResolveTaskRefData(dataRef) {
34648
+ if (!!dataRef.component) {
34649
+ return this.hasRequiredComponentProperty(dataRef.component, "resolve_data", "true");
34650
+ }
34651
+ return true;
34652
+ }
34653
+ hasRequiredComponentProperty(component, propertyName, propertyValue) {
34654
+ return component != null
34655
+ && component.properties != null
34656
+ && !!component.properties[propertyName]
34657
+ && component.properties[propertyName] === propertyValue;
34658
+ }
33869
34659
  }
33870
34660
  AbstractTaskContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractTaskContentComponent, deps: [{ token: FieldConverterService }, { token: TaskContentService }, { token: PaperViewService }, { token: LoggerService }, { token: TaskEventService, optional: true }, { token: NAE_ASYNC_RENDERING_CONFIGURATION, optional: true }], target: i0.ɵɵFactoryTarget.Component });
33871
34661
  AbstractTaskContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractTaskContentComponent, selector: "ncc-abstract-task-content", inputs: { noDataText: "noDataText", noDataIcon: "noDataIcon", displayNoDataIcon: "displayNoDataIcon" }, outputs: { taskEvent: "taskEvent" }, ngImport: i0, template: '', isInline: true });
@@ -33898,11 +34688,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
33898
34688
  * Resolves the correct {@link AbstractDataFieldComponent} implementation for the provided data field object.
33899
34689
  */
33900
34690
  class AbstractFieldComponentResolverComponent {
33901
- constructor(taskContentService) {
34691
+ constructor(taskContentService, _informAboutInvalidData) {
33902
34692
  this.taskContentService = taskContentService;
34693
+ this._informAboutInvalidData = _informAboutInvalidData;
33903
34694
  this.fieldTypeEnum = FieldTypeResource;
33904
34695
  this.taskElementEnum = TaskElementType;
33905
34696
  }
34697
+ ngOnInit() {
34698
+ if (!!this.gridElement.item) {
34699
+ this.gridElement.item.registerFormControl(new FormControl('', { updateOn: this.gridElement.item.getUpdateOnStrategy() }));
34700
+ this.gridElement.item.sendInvalidValues = this._informAboutInvalidData;
34701
+ }
34702
+ }
34703
+ ngOnDestroy() {
34704
+ var _a;
34705
+ if (!!((_a = this.gridElement) === null || _a === void 0 ? void 0 : _a.item)) {
34706
+ this.gridElement.item.disconnectFormControl();
34707
+ }
34708
+ }
33906
34709
  isOffsetPresent() {
33907
34710
  return !!this.taskContentService.task && !!this.taskContentService.task.layout && !!this.taskContentService.task.layout.offset;
33908
34711
  }
@@ -33932,7 +34735,7 @@ class AbstractFieldComponentResolverComponent {
33932
34735
  || (!!component.properties && 'plainText' in component.properties && component.properties.plaintText === 'true'));
33933
34736
  }
33934
34737
  }
33935
- AbstractFieldComponentResolverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFieldComponentResolverComponent, deps: [{ token: TaskContentService }], target: i0.ɵɵFactoryTarget.Component });
34738
+ AbstractFieldComponentResolverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFieldComponentResolverComponent, deps: [{ token: TaskContentService }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
33936
34739
  AbstractFieldComponentResolverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractFieldComponentResolverComponent, selector: "ncc-abstract-field-component-resolver", inputs: { gridElement: "gridElement" }, ngImport: i0, template: '', isInline: true });
33937
34740
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractFieldComponentResolverComponent, decorators: [{
33938
34741
  type: Component,
@@ -33940,7 +34743,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
33940
34743
  selector: 'ncc-abstract-field-component-resolver',
33941
34744
  template: ''
33942
34745
  }]
33943
- }], ctorParameters: function () { return [{ type: TaskContentService }]; }, propDecorators: { gridElement: [{
34746
+ }], ctorParameters: function () {
34747
+ return [{ type: TaskContentService }, { type: undefined, decorators: [{
34748
+ type: Optional
34749
+ }, {
34750
+ type: Inject,
34751
+ args: [NAE_INFORM_ABOUT_INVALID_DATA]
34752
+ }] }];
34753
+ }, propDecorators: { gridElement: [{
33944
34754
  type: Input
33945
34755
  }] } });
33946
34756
 
@@ -34290,5 +35100,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
34290
35100
  * Generated bundle index. Do not edit.
34291
35101
  */
34292
35102
 
34293
- export { AbstractAddChildNodeComponent, AbstractAdvancedSearchComponent, AbstractAuthenticationOverlayComponent, AbstractBooleanFieldComponent, AbstractBreadcrumbsComponent, AbstractButtonFieldComponent, AbstractCaseListComponent, AbstractCaseListPaginatorComponent, AbstractCasePanelComponent, AbstractCaseViewComponent, AbstractChangePasswordComponent, AbstractCountCardComponent, AbstractCurrencyNumberFieldComponent, AbstractCustomCardComponent, AbstractDashboardBarChartTextFieldComponent, AbstractDashboardContentComponent, AbstractDashboardIframeTextFieldComponent, AbstractDashboardLineChartTextFieldComponent, AbstractDashboardPieChartTextFieldComponent, AbstractDashboardPortalTextFieldComponent, AbstractDashboardTextFieldComponent, AbstractDataFieldTemplateComponent, AbstractDateFieldComponent, AbstractDateTimeFieldComponent, AbstractDefaultNumberFieldComponent, AbstractEditModeComponent, AbstractEmailSubmissionFormComponent, AbstractEnumerationAutocompleteDynamicFieldComponent, AbstractEnumerationAutocompleteSelectFieldComponent, AbstractEnumerationFieldComponent, AbstractEnumerationIconFieldComponent, AbstractEnumerationListFieldComponent, AbstractEnumerationSelectFieldComponent, AbstractEnumerationStepperFieldComponent, AbstractFieldComponentResolverComponent, AbstractFileFieldComponent, AbstractFileListFieldComponent, AbstractFilterFieldComponent, AbstractFilterFieldContentComponent, AbstractFilterFieldTabViewComponent, AbstractFilterFieldTabViewContentComponent, AbstractFilterSelectorComponent, AbstractFilterSelectorListItemComponent, AbstractForgottenPasswordComponent, AbstractFulltextSearchComponent, AbstractGroupNavigationComponentResolverComponent, AbstractHeaderComponent, AbstractHeaderService, AbstractHtmlTextareaFieldComponent, AbstractI18nDividerFieldComponent, AbstractI18nErrorsComponent, AbstractI18nFieldComponent, AbstractI18nTextFieldComponent, AbstractIframeCardComponent, AbstractImmediateFilterTextComponent, AbstractImmediateFilterTextContentComponent, AbstractImportNetComponent, AbstractInternalLinkComponent, AbstractLanguageSelectorComponent, AbstractLdapGroupRoleAssignmentComponent, AbstractLegalNoticeComponent, AbstractLoadFilterComponent, AbstractLoadingModeComponent, AbstractLoggerService, AbstractLoginFormComponent, AbstractLogoutShortcutComponent, AbstractMultiUserAssignComponent, AbstractMultiUserAssignItemComponent, AbstractMultiUserAssignListComponent, AbstractMultichoiceAutocompleteFieldComponentComponent, AbstractMultichoiceFieldComponent, AbstractMultichoiceListFieldComponent, AbstractMultichoiceSelectFieldComponent, AbstractNavigationDoubleDrawerComponent, AbstractNavigationDrawerComponent, AbstractNavigationRailComponent, AbstractNavigationTreeComponent, AbstractNewCaseComponent, AbstractNumberErrorsComponent, AbstractNumberFieldComponent, AbstractOptionSelectorComponent, AbstractPanelComponent, AbstractPanelItemComponent, AbstractPasswordTextFieldComponent, AbstractProfileComponent, AbstractQuickPanelComponent, AbstractRegistrationComponent, AbstractRegistrationFormComponent, AbstractRemoveNodeComponent, AbstractResourceProvider, AbstractResourceService, AbstractRichTextareaFieldComponent, AbstractRoleAssignmentComponent, AbstractSaveFilterComponent, AbstractSearchClauseComponent, AbstractSearchComponent, AbstractSearchConfigurationInputComponent, AbstractSearchModeComponent, AbstractSearchOperandInputComponent, AbstractSearchPredicateComponent, AbstractSessionIdleComponent, AbstractSideMenuContainerComponent, AbstractSimpleTextFieldComponent, AbstractSingleTaskComponent, AbstractSingleTaskViewComponent, AbstractSortModeComponent, AbstractSortableViewComponent, AbstractTabCreationDetectorComponent, AbstractTabViewComponent, AbstractTabbedCaseViewComponent, AbstractTabbedTaskViewComponent, AbstractTaskContentComponent, AbstractTaskListComponent, AbstractTaskListPaginationComponent, AbstractTaskPanelComponent, AbstractTaskRefDashboardTileComponent, AbstractTaskRefFieldComponent, AbstractTaskViewComponent, AbstractTextErrorsComponent, AbstractTextFieldComponent, AbstractTextareaFieldComponent, AbstractToolbarComponent, AbstractTreeComponent, AbstractTreeTaskContentComponent, AbstractUserAssignComponent, AbstractUserAssignItemComponent, AbstractUserAssignListComponent, AbstractUserCardComponent, AbstractUserFieldComponent, AbstractUserImpersonateComponent, AbstractUserInviteComponent, AbstractUserListFieldComponent, AbstractViewWithHeadersComponent, AbstractWorkflowPanelComponent, AbstractWorkflowViewComponent, AccessService, ActiveGroupService, AdvancedSearchComponentInitializationService, AfterAction, AlertDialogComponent, AlertDialogModule, AllowedNetsService, AllowedNetsServiceFactory, AnonymousAuthenticationInterceptor, AnonymousService, AssignPolicy, AssignPolicyService, AssignTaskService, AuthenticationGuardService, AuthenticationInterceptor, AuthenticationMethodService, AuthenticationModule, AuthenticationService, AuthorityGuardService, AutocompleteCategory, BOOLEAN_VALUE_LABEL_ENABLED, BaseAllowedNetsService, BasicAuthenticationService, BooleanField, BooleanFieldValidation, BooleanOperator, ButtonField, ButtonFieldValidation, CONFIRM_PASSWORD, CallChainService, CancelTaskService, CaseAuthor, CaseCreationDate, CaseCreationDateTime, CaseDataset, CaseHeaderService, CaseListFontColorService, CaseMetaField, CaseNetAttributeAutocompleteCategory, CaseProcess, CaseResourceService, CaseRole, CaseSearch, CaseSimpleDataset, CaseStringId, CaseTask, CaseTitle, CaseTreeNode, CaseTreeService, CaseViewService, CaseVisualId, Categories, Category, CategoryFactory, CategoryResolverService, ChangedFieldsService, ClausePredicate, ConfigParams, ConfigurationInput, ConfigurationService, ConfirmDialogComponent, ConfirmDialogModule, ConsoleLogPublisher, ContainsPipe, CovalentModule, CurrencyModule, CustomDateAdapter, DATE_FORMAT, DATE_FORMAT_STRING, DATE_TIME_FORMAT, DATE_TIME_FORMAT_STRING, DEFAULT_LANGUAGE_CODE, Dashboard, DashboardCardTypes, DashboardMultiData, DashboardPortalComponentRegistryService, DashboardResourceService, DashboardSingleData, DataField, DataFieldsModule, DataFocusPolicy, DataFocusPolicyService, DataGroupAlignment, DatafieldMapKey, DateField, DateTimeField, DefaultSearchCategoriesModule, DelegateTaskService, DialogModule, DialogService, DynamicEnumerationField, DynamicNavigationRouteProviderService, EditableClausePredicate, EditableClausePredicateWithGenerators, EditableElementaryPredicate, EditablePredicate, EditablePredicateWithGenerator, ElementaryPredicate, EnumerationAutocompleteFilterProperty, EnumerationField, EnumerationFieldValidation, Equals, EqualsDate, ErrorSnackBarComponent, EventConstants, EventQueueService, EventService, FILTER_DEFAULT_HEADERS_ID, FILTER_IDENTIFIERS, FILTER_VIEW_TASK_TRANSITION_ID, FieldAlignment, FieldConverterService, FieldTypeResource, FileField, FileListField, FileListFieldValidation, FilePreviewType, FileUploadMIMEType, FileUploadModel, Filter, FilterExtractionService, FilterField, FilterRepository, FilterType, FinishPolicy, FinishPolicyService, FinishTaskService, GenericSnackBarComponent, GroupGuardService, GroupNavigationComponentResolverService, GroupNavigationConstants, HeaderColumn, HeaderColumnType, HeaderMode, HeaderSearchService, HeaderType, HttpLoaderFactory, I18nField, I18nFieldValidation, ImpersonationService, ImpersonationUserListService, ImpersonationUserResourceService, ImpersonationUserSelectService, InRange, InRangeDate, IncrementingCounter, IsEmptyPipe, IsNonEmptyPipe, IsNull, LanguageIconsService, LanguageService, LdapGroupListService, LdapGroupResourceService, LessThan, LessThanDate, LessThanDateTime, LetContext, LetDirective, Like, LoadingEmitter, LoadingWithFilterEmitter, LocalStorageLogPublisher, LogEntry, LogLevel, LogPublisher, LogPublisherService, LoggerService, MaterialAppearance, MaterialModule, MergeOperator, MergedFilter, MockAuthenticationMethodService, MockAuthenticationService, MockEndpoint, MockProfileService, MockSignUpService, MockUserPreferenceService, MockUserResourceService, MockUserService, MoreThan, MoreThanDate, MoreThanDateTime, MultichoiceAutocompleteFilterProperty, MultichoiceField, NAE_ADMIN_IMPERSONATE_COMPONENT, NAE_ASYNC_RENDERING_CONFIGURATION, NAE_AUTOSWITCH_TAB_TOKEN, NAE_BASE_FILTER, NAE_DEFAULT_CASE_SEARCH_CATEGORIES, NAE_DEFAULT_HEADERS, NAE_DEFAULT_MIN_PASSWORD_LENGTH, NAE_DEFAULT_TASK_SEARCH_CATEGORIES, NAE_FILES_UPLOAD_COMPONENT, NAE_FILTERS_FILTER, NAE_FILTER_FIELD, NAE_FILTER_TEXT, NAE_GROUP_NAVIGATION_COMPONENT_RESOLVER_COMPONENT, NAE_INFORM_ABOUT_INVALID_DATA, NAE_LOAD_FILTER_COMPONENT, NAE_MIN_PASSWORD_LENGTH, NAE_NAVIGATION_ITEM_TASK_DATA, NAE_NET_ALL_VERSIONS, NAE_NET_VERSION_VISIBLE, NAE_NEW_CASE_COMPONENT, NAE_NEW_CASE_CONFIGURATION, NAE_NEW_CASE_CREATION_CONFIGURATION_DATA, NAE_OPEN_EXISTING_TAB, NAE_OPTION_SELECTOR_COMPONENT, NAE_PREFERRED_TASK_ENDPOINT, NAE_ROUTING_CONFIGURATION_PATH, NAE_SAVE_FILTER_COMPONENT, NAE_SEARCH_CATEGORIES, NAE_SEARCH_COMPONENT_CONFIGURATION, NAE_SIDE_MENU_CONTROL, NAE_SNACKBAR_HORIZONTAL_POSITION, NAE_SNACKBAR_VERTICAL_POSITION, NAE_TAB_DATA, NAE_TASK_FORCE_OPEN, NAE_TASK_OPERATIONS, NAE_TASK_PANEL_DISABLE_BUTTON_FUNCTIONS, NAE_TASK_VIEW_CONFIGURATION, NAE_TREE_CASE_VIEW_CONFIGURATION, NAE_URI_NODE_CASES_PAGE_SIZE, NAE_USER_ASSIGN_COMPONENT, NAE_USER_IMPERSONATE_COMPONENT, NAE_VIEW_ID, NAE_VIEW_ID_SEGMENT, NAE_WORKFLOW_SERVICE_CONFIRM_DELETE, NAE_WORKFLOW_SERVICE_FILTER, Net, NetAttributeAutocompleteCategory, NextGroupService, NoConfigurationAutocompleteCategory, NoConfigurationCategory, NoConfigurationUserAutocompleteCategory, NotEquals, NotEqualsDate, NotEqualsDateTime, NullAuthenticationService, NullTaskOperations, NumberField, NumberFieldValidation, OLD_PASSWORD, OpenedTab, Operator, OperatorResolverService, OperatorService, OperatorTemplatePart, OperatorTemplatePartType, Operators, OrganizationListService, OverflowService, PASSWORD, PUBLISHERS, PageLoadRequestContext, PaginationParams, PaginationSort, PaperViewService, PermissionService, PermissionType, PetriNetResourceService, Predicate, PredicateWithGenerator, ProcessList, ProcessService, ProfileModule, ProfileService, ProgressType, PromptDialogComponent, PromptDialogModule, PublicCaseResourceService, PublicPetriNetResourceService, PublicProcessService, PublicTaskLoadingService, PublicTaskResourceService, PublicUrlResolverService, Query, QueuedEvent, RedirectService, ResourceProvider, ResultWithAfterActions, RoleAssignmentLdapGroupService, RoleAssignmentService, RoleGuardService, RoutingBuilderService, SearchIndex, SearchIndexResolverService, SearchInputType, SearchMode, SearchService, SelectedCaseService, SessionIdleTimerService, SessionService, SideMenuControl, SideMenuRef, SideMenuService, SideMenuSize, SignUpModule, SignUpService, SimpleFilter, SingleTaskContentService, SnackBarComponent, SnackBarHorizontalPosition, SnackBarModule, SnackBarService, SnackBarVerticalPosition, SpinnerOverlayService, Subgrid, SubjectTaskOperations, Substring, SuccessSnackBarComponent, TabLabelStream, TabView, TabbedVirtualScrollComponent, TaskAssignee, TaskConst, TaskContentService, TaskDataService, TaskElementType, TaskEndpoint, TaskEvent, TaskEventService, TaskHandlingService, TaskHeaderService, TaskMetaField, TaskNetAttributeAutocompleteCategory, TaskProcess, TaskRefComponents, TaskRefDashboardConstants, TaskRefDashboardTileConstants, TaskRefField, TaskRequestStateService, TaskResourceService, TaskRole, TaskTask, TaskViewService, TemplateAppearance, TestCaseBaseFilterProvider, TestCaseViewAllowedNetsFactory, TestConfigurationService, TestMockDependenciesModule, TestNoAllowedNetsFactory, TestTaskBaseFilterProvider, TestTaskViewAllowedNetsFactory, TestViewService, TextAreaField, TextAreaHeight, TextField, TextFieldComponent, TextFieldValidation, TextFieldView, TranslateLibModule, TreeCaseViewService, TreePetriflowIdentifiers, TreeTaskContentService, UnlimitedTaskContentService, UriContentType, UriResourceService, UriService, User, UserAutocomplete, UserComparatorService, UserField, UserFilterConstants, UserFiltersService, UserImpersonationConstants, UserInviteService, UserListField, UserListService, UserListValue, UserPreferenceService, UserResourceService, UserService, UserTransformer, UserValue, UtilityModule, ViewIdService, ViewService, WarningSnackBarComponent, WorkflowHeaderService, WorkflowMetaField, WorkflowViewService, WrappedBoolean, arrayToObservable, authenticationServiceFactory, clearTimeInformation, configureCategory, createMockCase, createMockCaseOutcome, createMockDataGroup, createMockDependencies, createMockField, createMockGetDataOutcome, createMockImmediateData, createMockNet, createMockPage, createMockPetriNetOutcome, createMockSetDataOutcome, createMockTask, createMockTaskOutcome, createSortParam, createTaskEventNotification, decodeBase64, defaultCaseSearchCategoriesFactory, defaultTaskSearchCategoriesFactory, destroySubscription, encodeBase64, extractFilterFieldFromData, extractFilterFromData, extractFilterFromFilterField, extractIconAndTitle, extractRoles, getField, getFieldFromDataGroups, getFieldIndex, getFieldIndexFromDataGroups, getImmediateData, getNetAndCreateCase, groupNavigationViewIdSegmentFactory, hasContent, loadAllPages, mockUserAutocompleteValue, navigationItemTaskAllowedNetsServiceFactory, navigationItemTaskCategoryFactory, navigationItemTaskFilterFactory, ofVoid, processMessageResponse, publicBaseFilterFactory, publicFactoryResolver, refreshTree, tabbedAllowedNetsServiceFactory, tabbedTaskViewConfigurationFactory, toMoment };
35103
+ export { AbstractAddChildNodeComponent, AbstractAdvancedSearchComponent, AbstractAuthenticationOverlayComponent, AbstractBaseDataFieldComponent, AbstractBooleanDefaultFieldComponent, AbstractBooleanFieldComponent, AbstractBreadcrumbsComponent, AbstractButtonDefaultFieldComponent, AbstractButtonFieldComponent, AbstractCaseListComponent, AbstractCaseListPaginatorComponent, AbstractCasePanelComponent, AbstractCaseRefDefaultComponent, AbstractCaseViewComponent, AbstractChangePasswordComponent, AbstractCountCardComponent, AbstractCurrencyNumberFieldComponent, AbstractCustomCardComponent, AbstractDashboardBarChartTextFieldComponent, AbstractDashboardContentComponent, AbstractDashboardIframeTextFieldComponent, AbstractDashboardLineChartTextFieldComponent, AbstractDashboardPieChartTextFieldComponent, AbstractDashboardPortalTextFieldComponent, AbstractDashboardTextFieldComponent, AbstractDataFieldTemplateComponent, AbstractDateDefaultFieldComponent, AbstractDateFieldComponent, AbstractDateTimeDefaultFieldComponent, AbstractDateTimeFieldComponent, AbstractDefaultNumberFieldComponent, AbstractEditModeComponent, AbstractEmailSubmissionFormComponent, AbstractEnumerationAutocompleteDynamicFieldComponent, AbstractEnumerationAutocompleteSelectFieldComponent, AbstractEnumerationFieldComponent, AbstractEnumerationIconFieldComponent, AbstractEnumerationListFieldComponent, AbstractEnumerationSelectFieldComponent, AbstractEnumerationStepperFieldComponent, AbstractFieldComponentResolverComponent, AbstractFileDefaultFieldComponent, AbstractFileFieldComponent, AbstractFileListDefaultFieldComponent, AbstractFileListFieldComponent, AbstractFilterDefaultFieldComponent, AbstractFilterFieldComponent, AbstractFilterFieldContentComponent, AbstractFilterFieldTabViewComponent, AbstractFilterFieldTabViewContentComponent, AbstractFilterSelectorComponent, AbstractFilterSelectorListItemComponent, AbstractForgottenPasswordComponent, AbstractFulltextSearchComponent, AbstractGroupNavigationComponentResolverComponent, AbstractHeaderComponent, AbstractHeaderService, AbstractHtmlTextareaFieldComponent, AbstractI18nDividerFieldComponent, AbstractI18nErrorsComponent, AbstractI18nFieldComponent, AbstractI18nTextFieldComponent, AbstractIframeCardComponent, AbstractImmediateFilterTextComponent, AbstractImmediateFilterTextContentComponent, AbstractImportNetComponent, AbstractInternalLinkComponent, AbstractLanguageSelectorComponent, AbstractLdapGroupRoleAssignmentComponent, AbstractLegalNoticeComponent, AbstractLoadFilterComponent, AbstractLoadingModeComponent, AbstractLoggerService, AbstractLoginFormComponent, AbstractLogoutShortcutComponent, AbstractMultiUserAssignComponent, AbstractMultiUserAssignItemComponent, AbstractMultiUserAssignListComponent, AbstractMultichoiceAutocompleteFieldComponentComponent, AbstractMultichoiceFieldComponent, AbstractMultichoiceListFieldComponent, AbstractMultichoiceSelectFieldComponent, AbstractNavigationDoubleDrawerComponent, AbstractNavigationDrawerComponent, AbstractNavigationRailComponent, AbstractNavigationTreeComponent, AbstractNewCaseComponent, AbstractNumberErrorsComponent, AbstractNumberFieldComponent, AbstractOptionSelectorComponent, AbstractPanelComponent, AbstractPanelItemComponent, AbstractPasswordTextFieldComponent, AbstractProfileComponent, AbstractQuickPanelComponent, AbstractRegistrationComponent, AbstractRegistrationFormComponent, AbstractRemoveNodeComponent, AbstractResourceProvider, AbstractResourceService, AbstractRichTextareaFieldComponent, AbstractRoleAssignmentComponent, AbstractSaveFilterComponent, AbstractSearchClauseComponent, AbstractSearchComponent, AbstractSearchConfigurationInputComponent, AbstractSearchModeComponent, AbstractSearchOperandInputComponent, AbstractSearchPredicateComponent, AbstractSessionIdleComponent, AbstractSideMenuContainerComponent, AbstractSimpleTextFieldComponent, AbstractSingleTaskComponent, AbstractSingleTaskViewComponent, AbstractSortModeComponent, AbstractSortableViewComponent, AbstractTabCreationDetectorComponent, AbstractTabViewComponent, AbstractTabbedCaseViewComponent, AbstractTabbedTaskViewComponent, AbstractTaskContentComponent, AbstractTaskListComponent, AbstractTaskListPaginationComponent, AbstractTaskPanelComponent, AbstractTaskRefDashboardFieldComponent, AbstractTaskRefDashboardTileComponent, AbstractTaskRefFieldComponent, AbstractTaskRefListFieldComponent, AbstractTaskViewComponent, AbstractTextErrorsComponent, AbstractTextFieldComponent, AbstractTextareaFieldComponent, AbstractToolbarComponent, AbstractTreeComponent, AbstractTreeTaskContentComponent, AbstractUserAssignComponent, AbstractUserAssignItemComponent, AbstractUserAssignListComponent, AbstractUserCardComponent, AbstractUserDefaultFieldComponent, AbstractUserFieldComponent, AbstractUserImpersonateComponent, AbstractUserInviteComponent, AbstractUserListDefaultFieldComponent, AbstractUserListFieldComponent, AbstractViewWithHeadersComponent, AbstractWorkflowPanelComponent, AbstractWorkflowViewComponent, AccessService, ActiveGroupService, AdvancedSearchComponentInitializationService, AfterAction, AlertDialogComponent, AlertDialogModule, AllowedNetsService, AllowedNetsServiceFactory, AnonymousAuthenticationInterceptor, AnonymousService, AssignPolicy, AssignPolicyService, AssignTaskService, AuthenticationGuardService, AuthenticationInterceptor, AuthenticationMethodService, AuthenticationModule, AuthenticationService, AuthorityGuardService, AutocompleteCategory, BOOLEAN_VALUE_LABEL_ENABLED, BaseAllowedNetsService, BasicAuthenticationService, BooleanField, BooleanFieldValidation, BooleanOperator, ButtonField, ButtonFieldValidation, CONFIRM_PASSWORD, CallChainService, CancelTaskService, CaseAuthor, CaseCreationDate, CaseCreationDateTime, CaseDataset, CaseHeaderService, CaseListFontColorService, CaseMetaField, CaseNetAttributeAutocompleteCategory, CaseProcess, CaseRefField, CaseResourceService, CaseRole, CaseSearch, CaseSimpleDataset, CaseStringId, CaseTask, CaseTitle, CaseTreeNode, CaseTreeService, CaseViewService, CaseVisualId, Categories, Category, CategoryFactory, CategoryResolverService, ChangedFieldsService, ClausePredicate, ComponentPrefixes, ComponentRegistryService, ConfigParams, ConfigurationInput, ConfigurationService, ConfirmDialogComponent, ConfirmDialogModule, ConsoleLogPublisher, ContainsPipe, CovalentModule, CurrencyModule, CustomDateAdapter, DATA_FIELD_PORTAL_DATA, DATE_FORMAT, DATE_FORMAT_STRING, DATE_TIME_FORMAT, DATE_TIME_FORMAT_STRING, DEFAULT, DEFAULT_LANGUAGE_CODE, Dashboard, DashboardCardTypes, DashboardMultiData, DashboardResourceService, DashboardSingleData, DataField, DataFieldsModule, DataFocusPolicy, DataFocusPolicyService, DataGroupAlignment, DatafieldMapKey, DateField, DateTimeField, DefaultSearchCategoriesModule, DelegateTaskService, DialogModule, DialogService, DynamicEnumerationField, DynamicNavigationRouteProviderService, EditableClausePredicate, EditableClausePredicateWithGenerators, EditableElementaryPredicate, EditablePredicate, EditablePredicateWithGenerator, ElementaryPredicate, EnumerationAutocompleteFilterProperty, EnumerationField, EnumerationFieldValidation, Equals, EqualsDate, ErrorSnackBarComponent, EventConstants, EventQueueService, EventService, FILTER_DEFAULT_HEADERS_ID, FILTER_IDENTIFIERS, FILTER_VIEW_TASK_TRANSITION_ID, FieldAlignment, FieldConverterService, FieldTypeResource, FileField, FileListField, FileListFieldValidation, FilePreviewType, FileUploadMIMEType, FileUploadModel, Filter, FilterExtractionService, FilterField, FilterRepository, FilterType, FilteredArray, FinishPolicy, FinishPolicyService, FinishTaskService, GenericSnackBarComponent, GroupGuardService, GroupNavigationComponentResolverService, GroupNavigationConstants, HeaderColumn, HeaderColumnType, HeaderMode, HeaderSearchService, HeaderType, HttpLoaderFactory, I18nField, I18nFieldValidation, ImpersonationService, ImpersonationUserListService, ImpersonationUserResourceService, ImpersonationUserSelectService, InRange, InRangeDate, IncrementingCounter, IsEmptyPipe, IsNonEmptyPipe, IsNull, LanguageIconsService, LanguageService, LdapGroupListService, LdapGroupResourceService, LessThan, LessThanDate, LessThanDateTime, LetContext, LetDirective, Like, LoadingEmitter, LoadingWithFilterEmitter, LocalStorageLogPublisher, LogEntry, LogLevel, LogPublisher, LogPublisherService, LoggerService, MaterialAppearance, MaterialModule, MergeOperator, MergedFilter, MockAuthenticationMethodService, MockAuthenticationService, MockEndpoint, MockProfileService, MockSignUpService, MockUserPreferenceService, MockUserResourceService, MockUserService, MoreThan, MoreThanDate, MoreThanDateTime, MultichoiceAutocompleteFilterProperty, MultichoiceField, NAE_ADMIN_IMPERSONATE_COMPONENT, NAE_ADMIN_IMPERSONATE_DIALOG_COMPONENT, NAE_ASYNC_RENDERING_CONFIGURATION, NAE_AUTOSWITCH_TAB_TOKEN, NAE_BASE_FILTER, NAE_CASE_REF_CREATE_CASE, NAE_CASE_REF_SEARCH, NAE_DEFAULT_CASE_SEARCH_CATEGORIES, NAE_DEFAULT_HEADERS, NAE_DEFAULT_MIN_PASSWORD_LENGTH, NAE_DEFAULT_TASK_SEARCH_CATEGORIES, NAE_FILES_UPLOAD_COMPONENT, NAE_FILES_UPLOAD_DIALOG_COMPONENT, NAE_FILTERS_FILTER, NAE_FILTER_FIELD, NAE_FILTER_TEXT, NAE_GROUP_NAVIGATION_COMPONENT_RESOLVER_COMPONENT, NAE_INFORM_ABOUT_INVALID_DATA, NAE_LOAD_FILTER_COMPONENT, NAE_LOAD_FILTER_DIALOG_COMPONENT, NAE_MIN_PASSWORD_LENGTH, NAE_NAVIGATION_ITEM_TASK_DATA, NAE_NET_ALL_VERSIONS, NAE_NET_VERSION_VISIBLE, NAE_NEW_CASE_COMPONENT, NAE_NEW_CASE_CONFIGURATION, NAE_NEW_CASE_CREATION_CONFIGURATION_DATA, NAE_NEW_CASE_DIALOG_COMPONENT, NAE_OPEN_EXISTING_TAB, NAE_OPTION_SELECTOR_COMPONENT, NAE_OPTION_SELECTOR_DIALOG_COMPONENT, NAE_PREFERRED_TASK_ENDPOINT, NAE_ROUTING_CONFIGURATION_PATH, NAE_SAVE_FILTER_COMPONENT, NAE_SAVE_FILTER_DIALOG_COMPONENT, NAE_SEARCH_CATEGORIES, NAE_SEARCH_COMPONENT_CONFIGURATION, NAE_SIDE_MENU_CONTROL, NAE_SNACKBAR_HORIZONTAL_POSITION, NAE_SNACKBAR_VERTICAL_POSITION, NAE_TAB_DATA, NAE_TASK_FORCE_OPEN, NAE_TASK_OPERATIONS, NAE_TASK_PANEL_DISABLE_BUTTON_FUNCTIONS, NAE_TASK_VIEW_CONFIGURATION, NAE_TREE_CASE_VIEW_CONFIGURATION, NAE_URI_NODE_CASES_PAGE_SIZE, NAE_USER_ASSIGN_COMPONENT, NAE_USER_ASSIGN_DIALOG_COMPONENT, NAE_USER_IMPERSONATE_COMPONENT, NAE_USER_IMPERSONATE_DIALOG_COMPONENT, NAE_VIEW_ID, NAE_VIEW_ID_SEGMENT, NAE_WORKFLOW_SERVICE_CONFIRM_DELETE, NAE_WORKFLOW_SERVICE_FILTER, Net, NetAttributeAutocompleteCategory, NextGroupService, NoConfigurationAutocompleteCategory, NoConfigurationCategory, NoConfigurationUserAutocompleteCategory, NotEquals, NotEqualsDate, NotEqualsDateTime, NullAuthenticationService, NullTaskOperations, NumberField, NumberFieldValidation, OLD_PASSWORD, OpenedTab, Operator, OperatorResolverService, OperatorService, OperatorTemplatePart, OperatorTemplatePartType, Operators, OrganizationListService, OverflowService, PASSWORD, PUBLISHERS, PageLoadRequestContext, PaginationParams, PaginationSort, PaperViewService, PermissionService, PermissionType, PetriNetResourceService, Predicate, PredicateWithGenerator, ProcessList, ProcessService, ProfileModule, ProfileService, ProgressType, PromptDialogComponent, PromptDialogModule, PublicCaseResourceService, PublicPetriNetResourceService, PublicProcessService, PublicTaskLoadingService, PublicTaskResourceService, PublicUrlResolverService, Query, QueuedEvent, RedirectService, ResourceProvider, ResultWithAfterActions, RoleAssignmentLdapGroupService, RoleAssignmentService, RoleGuardService, RoutingBuilderService, SearchIndex, SearchIndexResolverService, SearchInputType, SearchMode, SearchService, SelectedCaseService, SessionIdleTimerService, SessionService, SideMenuControl, SideMenuRef, SideMenuService, SideMenuSize, SignUpModule, SignUpService, SimpleFilter, SingleTaskContentService, SnackBarComponent, SnackBarHorizontalPosition, SnackBarModule, SnackBarService, SnackBarVerticalPosition, SpinnerOverlayService, Subgrid, SubjectTaskOperations, Substring, SuccessSnackBarComponent, TabLabelStream, TabView, TabbedVirtualScrollComponent, TaskAssignee, TaskConst, TaskContentService, TaskDataService, TaskElementType, TaskEndpoint, TaskEvent, TaskEventService, TaskHandlingService, TaskHeaderService, TaskMetaField, TaskNetAttributeAutocompleteCategory, TaskProcess, TaskRefComponents, TaskRefDashboardConstants, TaskRefDashboardTileConstants, TaskRefField, TaskRequestStateService, TaskResourceService, TaskRole, TaskTask, TaskViewService, TemplateAppearance, TestCaseBaseFilterProvider, TestCaseViewAllowedNetsFactory, TestConfigurationService, TestMockDependenciesModule, TestNoAllowedNetsFactory, TestTaskBaseFilterProvider, TestTaskViewAllowedNetsFactory, TestViewService, TextAreaField, TextAreaHeight, TextField, TextFieldComponent, TextFieldValidation, TextFieldView, TranslateLibModule, TreeCaseViewService, TreePetriflowIdentifiers, TreeTaskContentService, UnlimitedTaskContentService, UriContentType, UriResourceService, UriService, User, UserAutocomplete, UserComparatorService, UserField, UserFilterConstants, UserFiltersService, UserImpersonationConstants, UserInviteService, UserListField, UserListService, UserListValue, UserPreferenceService, UserResourceService, UserService, UserTransformer, UserValue, UtilityModule, ViewIdService, ViewService, WarningSnackBarComponent, WorkflowHeaderService, WorkflowMetaField, WorkflowViewService, WrappedBoolean, arrayToObservable, authenticationServiceFactory, clearTimeInformation, configureCategory, createMockCase, createMockCaseOutcome, createMockDataGroup, createMockDependencies, createMockField, createMockGetDataOutcome, createMockImmediateData, createMockNet, createMockPage, createMockPetriNetOutcome, createMockSetDataOutcome, createMockTask, createMockTaskOutcome, createSortParam, createTaskEventNotification, decodeBase64, defaultCaseSearchCategoriesFactory, defaultTaskSearchCategoriesFactory, destroySubscription, encodeBase64, extractFilterFieldFromData, extractFilterFromData, extractFilterFromFilterField, extractIconAndTitle, extractRoles, getField, getFieldFromDataGroups, getFieldIndex, getFieldIndexFromDataGroups, getImmediateData, getNetAndCreateCase, groupNavigationViewIdSegmentFactory, hasContent, loadAllPages, mockUserAutocompleteValue, navigationItemTaskAllowedNetsServiceFactory, navigationItemTaskCategoryFactory, navigationItemTaskFilterFactory, ofVoid, processMessageResponse, publicBaseFilterFactory, publicFactoryResolver, refreshTree, tabbedAllowedNetsServiceFactory, tabbedTaskViewConfigurationFactory, toMoment };
34294
35104
  //# sourceMappingURL=netgrif-components-core.mjs.map