aril 1.2.20 → 1.2.22

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 (377) hide show
  1. package/esm2022/boot/config/apps/src/apps.service.mjs +4 -4
  2. package/esm2022/boot/config/apps/src/auth.guard.mjs +4 -4
  3. package/esm2022/boot/config/apps/src/showdowDOMWrapper.mjs +4 -4
  4. package/esm2022/boot/host/src/app.component.mjs +4 -4
  5. package/esm2022/boot/mfe/src/app.component.mjs +4 -4
  6. package/esm2022/boot/pages/src/forbidden.component.mjs +4 -4
  7. package/esm2022/boot/pages/src/notFound.component.mjs +4 -4
  8. package/esm2022/http/src/httpBackend.mjs +4 -4
  9. package/esm2022/i18n/src/i18n.module.mjs +5 -5
  10. package/esm2022/i18n/src/loader.mjs +4 -4
  11. package/esm2022/theme/layout/app/breadcrumb/app.breadcrumb.component.mjs +4 -4
  12. package/esm2022/theme/layout/app/expandableMenu/expandable-menu.component.mjs +4 -4
  13. package/esm2022/theme/layout/app/favorite-pages/favorite-pages-sidebar.component.mjs +4 -4
  14. package/esm2022/theme/layout/app/favorite-pages/favorite-pages.service.mjs +4 -4
  15. package/esm2022/theme/layout/app/favorite-pages/modals/add-edit-favorite-modal/add-edit-favorite-modal.component.mjs +4 -4
  16. package/esm2022/theme/layout/app/general-search/general-search.component.mjs +4 -4
  17. package/esm2022/theme/layout/app/history/history-sidebar.component.mjs +4 -4
  18. package/esm2022/theme/layout/app/history/history.service.mjs +4 -4
  19. package/esm2022/theme/layout/app/layout/app.layout.component.mjs +4 -4
  20. package/esm2022/theme/layout/app/layout/mfe.layout.component.mjs +4 -4
  21. package/esm2022/theme/layout/app/notifications/notifications-sidebar.component.mjs +4 -4
  22. package/esm2022/theme/layout/app/profileSidebar/app.profilesidebar.component.mjs +4 -4
  23. package/esm2022/theme/layout/app/profileSidebar/modals/change-password-modal/change-password-modal.component.mjs +4 -4
  24. package/esm2022/theme/layout/app/profileSidebar/modals/edit-profile-modal/edit-profile-modal.component.mjs +4 -4
  25. package/esm2022/theme/layout/app/profileSidebar/profile.service.mjs +4 -4
  26. package/esm2022/theme/layout/app/site-map/site-map-sidebar.component.mjs +4 -4
  27. package/esm2022/theme/layout/app/static-sidebar/static-sidebar.component.mjs +4 -4
  28. package/esm2022/theme/layout/app/topbar/app.topbar.component.mjs +4 -4
  29. package/esm2022/theme/layout/service/app.layout.service.mjs +4 -4
  30. package/esm2022/theme/layout/service/app.menu.service.mjs +4 -4
  31. package/esm2022/theme/layout/service/breadcrumb.service.mjs +4 -4
  32. package/esm2022/theme/layout/service/notifications.service.mjs +4 -4
  33. package/esm2022/theme/layout/service/search.service.mjs +4 -4
  34. package/esm2022/theme/layout/service/selection-group.service.mjs +4 -4
  35. package/esm2022/ui/autoComplete/src/auto-complete.component.mjs +4 -4
  36. package/esm2022/ui/badge/src/badge.component.mjs +4 -4
  37. package/esm2022/ui/button/src/button.component.mjs +4 -4
  38. package/esm2022/ui/button/src/split-button.component.mjs +4 -4
  39. package/esm2022/ui/calendar/src/calendar.component.mjs +4 -4
  40. package/esm2022/ui/charts/src/amCharts/column/column-chart.component.mjs +4 -4
  41. package/esm2022/ui/charts/src/amCharts/line/line-chart.component.mjs +4 -4
  42. package/esm2022/ui/charts/src/amCharts/pie/pie-chart.component.mjs +4 -4
  43. package/esm2022/ui/charts/src/highCharts/area/area-chart.component.mjs +4 -4
  44. package/esm2022/ui/charts/src/highCharts/bar/bar-chart.component.mjs +4 -4
  45. package/esm2022/ui/charts/src/highCharts/column/column-chart.component.mjs +4 -4
  46. package/esm2022/ui/charts/src/highCharts/gauge/solid-gauge.component.mjs +4 -4
  47. package/esm2022/ui/charts/src/highCharts/heatmap/heatMap-chart.component.mjs +4 -4
  48. package/esm2022/ui/charts/src/highCharts/line/line-chart-datetime-axis.component.mjs +4 -4
  49. package/esm2022/ui/charts/src/highCharts/line/line-chart-series.component.mjs +4 -4
  50. package/esm2022/ui/charts/src/highCharts/line/line-chart.component.mjs +4 -4
  51. package/esm2022/ui/charts/src/highCharts/pie/pie-chart.component.mjs +4 -4
  52. package/esm2022/ui/checkbox/src/check-box.component.mjs +4 -4
  53. package/esm2022/ui/checkbox/src/tri-state-checkbox.component.mjs +4 -4
  54. package/esm2022/ui/chip/src/chip.component.mjs +4 -4
  55. package/esm2022/ui/collapse-reorder-list/src/collapse-reorder-list.component.mjs +4 -4
  56. package/esm2022/ui/dxEditor/src/dx-editor.component.mjs +4 -4
  57. package/esm2022/ui/dxField/src/dx-field.component.mjs +4 -4
  58. package/esm2022/ui/editor/src/aril-editor.component.mjs +4 -4
  59. package/esm2022/ui/field/src/field.component.mjs +4 -4
  60. package/esm2022/ui/fileUpload/src/file-upload.component.mjs +4 -4
  61. package/esm2022/ui/form/index.mjs +5 -5
  62. package/esm2022/ui/form/src/form-submit-button.component.mjs +4 -4
  63. package/esm2022/ui/form/src/form.component.mjs +4 -4
  64. package/esm2022/ui/img-viewer/src/img-viewer.component.mjs +4 -4
  65. package/esm2022/ui/json-diff-comparison/src/json-diff.component.mjs +4 -4
  66. package/esm2022/ui/lib/src/form/form-error-message.component.mjs +4 -4
  67. package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +4 -4
  68. package/esm2022/ui/lib/src/grid/enum-color-picker.pipe.mjs +4 -4
  69. package/esm2022/ui/lib/src/grid/flex-grid.directive.mjs +4 -4
  70. package/esm2022/ui/lib/src/input/common-input-validators.service.mjs +4 -4
  71. package/esm2022/ui/lib/src/input/dx-input-error-message.pipe.mjs +4 -4
  72. package/esm2022/ui/lib/src/input/input-disabled.directive.mjs +4 -4
  73. package/esm2022/ui/lib/src/input/input-error-message.pipe.mjs +4 -4
  74. package/esm2022/ui/lib/src/input/value-accessor.directive.mjs +4 -4
  75. package/esm2022/ui/loader/src/loader.component.mjs +4 -4
  76. package/esm2022/ui/mask/src/mask.component.mjs +4 -4
  77. package/esm2022/ui/multiSelect/src/multi-select.component.mjs +4 -4
  78. package/esm2022/ui/number/src/number.component.mjs +4 -4
  79. package/esm2022/ui/operation-types-dialog/src/operation-types-dialog.component.mjs +4 -4
  80. package/esm2022/ui/overlayPanel/src/overlay-panel.component.mjs +4 -4
  81. package/esm2022/ui/panel/src/panel.component.mjs +4 -4
  82. package/esm2022/ui/password/src/password.component.mjs +4 -4
  83. package/esm2022/ui/pdf-viewer/src/pdf-viewer.component.mjs +4 -4
  84. package/esm2022/ui/progressbar/src/progressbar.component.mjs +4 -4
  85. package/esm2022/ui/radioButton/src/radio-button.component.mjs +4 -4
  86. package/esm2022/ui/relativeDateSelector/src/relative-date-selector.component.mjs +4 -4
  87. package/esm2022/ui/selectBox/src/select-box.component.mjs +4 -4
  88. package/esm2022/ui/switch/src/switch.component.mjs +4 -4
  89. package/esm2022/ui/table/index.mjs +5 -5
  90. package/esm2022/ui/table/src/export-overlay-panel.component.mjs +4 -4
  91. package/esm2022/ui/table/src/table-column.component.mjs +4 -4
  92. package/esm2022/ui/table/src/table.component.mjs +4 -4
  93. package/esm2022/ui/table-expand/index.mjs +5 -5
  94. package/esm2022/ui/table-expand/src/table-column.component.mjs +4 -4
  95. package/esm2022/ui/table-expand/src/table-expand-area.component.mjs +4 -4
  96. package/esm2022/ui/table-expand/src/table.component.mjs +4 -4
  97. package/esm2022/ui/tag/src/tag.component.mjs +4 -4
  98. package/esm2022/ui/tagBox/src/tag-box.component.mjs +4 -4
  99. package/esm2022/ui/text/src/text.component.mjs +4 -4
  100. package/esm2022/ui/textArea/src/text-area.component.mjs +4 -4
  101. package/esm2022/ui/toggle-button/src/toggle-button.component.mjs +4 -4
  102. package/esm2022/ui/tooltip/src/tooltip-component.mjs +4 -4
  103. package/esm2022/ui/translate-input/src/aril-lang-modal/aril-lang-modal.component.mjs +4 -4
  104. package/esm2022/ui/translate-input/src/aril-translate-input.component.mjs +4 -4
  105. package/esm2022/ui/tree/src/tree.component.mjs +4 -4
  106. package/esm2022/ui/treeSelect/src/treeSelect.component.mjs +4 -4
  107. package/esm2022/ui/treeTable/src/tree-table.component.mjs +4 -4
  108. package/esm2022/ui/value/src/value.component.mjs +4 -4
  109. package/esm2022/ui-business/assetPicker/src/asset-picker.component.mjs +4 -4
  110. package/esm2022/ui-business/detailed-overlay-panel/src/detailed-overlay-panel.component.mjs +4 -4
  111. package/esm2022/ui-business/enumPicker/src/enum-picker.component.mjs +114 -22
  112. package/esm2022/ui-business/enumPicker/src/interface.mjs +1 -1
  113. package/esm2022/ui-business/image-viewer/src/aril-image-viewer.component.mjs +4 -4
  114. package/esm2022/ui-business/multiple-ref-value/src/multiple-ref-value.component.mjs +4 -4
  115. package/esm2022/ui-business/notification-templates-dialog/src/notification-templates-dialog.component.mjs +4 -4
  116. package/esm2022/ui-business/operation-types-dialog/src/operation-types-dialog.component.mjs +4 -4
  117. package/esm2022/ui-business/pdf-preview-modal/src/pdf-preview-modal.component.mjs +4 -4
  118. package/esm2022/ui-business/ref-value/src/ref-value.component.mjs +4 -4
  119. package/esm2022/ui-business/rolePicker/src/role-picker.component.mjs +4 -4
  120. package/esm2022/ui-business/trace-drawer/src/app-log.service.mjs +4 -4
  121. package/esm2022/ui-business/trace-drawer/src/trace-drawer.component.mjs +4 -4
  122. package/esm2022/ui-business/trace-drawer/src/trace-log.service.mjs +4 -4
  123. package/esm2022/ui-business/trace-id/src/trace-id.component.mjs +4 -4
  124. package/esm2022/ui-business/userPicker/src/user-picker.component.mjs +4 -4
  125. package/esm2022/util/activity/src/activity.service.mjs +4 -4
  126. package/esm2022/util/block/src/block.mjs +7 -7
  127. package/esm2022/util/directives/src/detail-page-customization/detail-page-customization.directive.mjs +4 -4
  128. package/esm2022/util/directives/src/dialog-component/plugin-dialog.component.mjs +4 -4
  129. package/esm2022/util/directives/src/dialog-service/plugin-dialog.service.mjs +4 -4
  130. package/esm2022/util/lib/src/module-router.mjs +4 -4
  131. package/esm2022/util/pipes/src/distance-to-now.pipe.mjs +4 -4
  132. package/esm2022/util/pipes/src/get-column-by-field.pipe.mjs +4 -4
  133. package/esm2022/util/pipes/src/parse.pipe.mjs +4 -4
  134. package/esm2022/util/pipes/src/round-number.pipe.mjs +4 -4
  135. package/esm2022/util/pipes/src/safe.pipe.mjs +4 -4
  136. package/esm2022/util/pipes/src/translate-json/translate-json.pipe.mjs +4 -4
  137. package/esm2022/util/pub-sub/src/pub-sub.service.mjs +4 -4
  138. package/esm2022/util/sync-active-tab-route/src/sync-active-tab-route.directive.mjs +4 -4
  139. package/esm2022/util/unwrap/src/unwrap-tag.directive.mjs +4 -4
  140. package/fesm2022/{aril-app.component-CwZZhJcO.mjs → aril-app.component-W3wwVSp1.mjs} +4 -4
  141. package/fesm2022/{aril-app.component-CwZZhJcO.mjs.map → aril-app.component-W3wwVSp1.mjs.map} +1 -1
  142. package/fesm2022/aril-boot-base.mjs +1 -1
  143. package/fesm2022/aril-boot-base.mjs.map +1 -1
  144. package/fesm2022/aril-boot-bridge.mjs.map +1 -1
  145. package/fesm2022/aril-boot-config-api.mjs +1 -1
  146. package/fesm2022/aril-boot-config-api.mjs.map +1 -1
  147. package/fesm2022/aril-boot-config-apps.mjs +10 -10
  148. package/fesm2022/aril-boot-config-apps.mjs.map +1 -1
  149. package/fesm2022/aril-boot-config-plugins.mjs +1 -1
  150. package/fesm2022/aril-boot-config-plugins.mjs.map +1 -1
  151. package/fesm2022/aril-boot-config-translate.mjs.map +1 -1
  152. package/fesm2022/aril-boot-host.mjs +4 -4
  153. package/fesm2022/aril-boot-host.mjs.map +1 -1
  154. package/fesm2022/{aril-boot-mfe-app.component-DwYgUUdL.mjs → aril-boot-mfe-app.component-D1w8I2ug.mjs} +5 -5
  155. package/fesm2022/{aril-boot-mfe-app.component-DwYgUUdL.mjs.map → aril-boot-mfe-app.component-D1w8I2ug.mjs.map} +1 -1
  156. package/fesm2022/{aril-boot-mfe-aril-boot-mfe-hJkkFa_a.mjs → aril-boot-mfe-aril-boot-mfe-JHrhKvhU.mjs} +4 -4
  157. package/fesm2022/{aril-boot-mfe-aril-boot-mfe-hJkkFa_a.mjs.map → aril-boot-mfe-aril-boot-mfe-JHrhKvhU.mjs.map} +1 -1
  158. package/fesm2022/aril-boot-mfe.mjs +1 -1
  159. package/fesm2022/aril-boot-pages.mjs +6 -6
  160. package/fesm2022/aril-boot-pages.mjs.map +1 -1
  161. package/fesm2022/aril-http.mjs +3 -3
  162. package/fesm2022/aril-http.mjs.map +1 -1
  163. package/fesm2022/aril-i18n.mjs +7 -7
  164. package/fesm2022/aril-i18n.mjs.map +1 -1
  165. package/fesm2022/aril-keycloak.mjs.map +1 -1
  166. package/fesm2022/aril-provider.mjs +1 -1
  167. package/fesm2022/aril-provider.mjs.map +1 -1
  168. package/fesm2022/aril-theme-layout.mjs +72 -72
  169. package/fesm2022/aril-theme-layout.mjs.map +1 -1
  170. package/fesm2022/aril-ui-autoComplete.mjs +6 -6
  171. package/fesm2022/aril-ui-autoComplete.mjs.map +1 -1
  172. package/fesm2022/aril-ui-badge.mjs +4 -4
  173. package/fesm2022/aril-ui-badge.mjs.map +1 -1
  174. package/fesm2022/aril-ui-business-assetPicker.mjs +5 -5
  175. package/fesm2022/aril-ui-business-assetPicker.mjs.map +1 -1
  176. package/fesm2022/aril-ui-business-detailed-overlay-panel.mjs +5 -5
  177. package/fesm2022/aril-ui-business-detailed-overlay-panel.mjs.map +1 -1
  178. package/fesm2022/aril-ui-business-enumPicker.mjs +116 -24
  179. package/fesm2022/aril-ui-business-enumPicker.mjs.map +1 -1
  180. package/fesm2022/aril-ui-business-image-viewer.mjs +3 -3
  181. package/fesm2022/aril-ui-business-image-viewer.mjs.map +1 -1
  182. package/fesm2022/aril-ui-business-multiple-ref-value.mjs +4 -4
  183. package/fesm2022/aril-ui-business-multiple-ref-value.mjs.map +1 -1
  184. package/fesm2022/aril-ui-business-notification-templates-dialog.mjs +3 -3
  185. package/fesm2022/aril-ui-business-notification-templates-dialog.mjs.map +1 -1
  186. package/fesm2022/aril-ui-business-operation-types-dialog.mjs +3 -3
  187. package/fesm2022/aril-ui-business-operation-types-dialog.mjs.map +1 -1
  188. package/fesm2022/aril-ui-business-pdf-preview-modal.mjs +3 -3
  189. package/fesm2022/aril-ui-business-pdf-preview-modal.mjs.map +1 -1
  190. package/fesm2022/aril-ui-business-ref-value.mjs +4 -4
  191. package/fesm2022/aril-ui-business-ref-value.mjs.map +1 -1
  192. package/fesm2022/aril-ui-business-rolePicker.mjs +4 -4
  193. package/fesm2022/aril-ui-business-rolePicker.mjs.map +1 -1
  194. package/fesm2022/aril-ui-business-trace-drawer.mjs +10 -10
  195. package/fesm2022/aril-ui-business-trace-drawer.mjs.map +1 -1
  196. package/fesm2022/aril-ui-business-trace-id.mjs +4 -4
  197. package/fesm2022/aril-ui-business-trace-id.mjs.map +1 -1
  198. package/fesm2022/aril-ui-business-userPicker.mjs +3 -3
  199. package/fesm2022/aril-ui-business-userPicker.mjs.map +1 -1
  200. package/fesm2022/aril-ui-button.mjs +7 -7
  201. package/fesm2022/aril-ui-button.mjs.map +1 -1
  202. package/fesm2022/aril-ui-calendar.mjs +3 -3
  203. package/fesm2022/aril-ui-calendar.mjs.map +1 -1
  204. package/fesm2022/aril-ui-charts.mjs +37 -37
  205. package/fesm2022/aril-ui-charts.mjs.map +1 -1
  206. package/fesm2022/aril-ui-checkbox.mjs +6 -6
  207. package/fesm2022/aril-ui-checkbox.mjs.map +1 -1
  208. package/fesm2022/aril-ui-chip.mjs +4 -4
  209. package/fesm2022/aril-ui-chip.mjs.map +1 -1
  210. package/fesm2022/aril-ui-collapse-reorder-list.mjs +4 -4
  211. package/fesm2022/aril-ui-collapse-reorder-list.mjs.map +1 -1
  212. package/fesm2022/aril-ui-dxEditor.mjs +4 -4
  213. package/fesm2022/aril-ui-dxEditor.mjs.map +1 -1
  214. package/fesm2022/aril-ui-dxField.mjs +4 -4
  215. package/fesm2022/aril-ui-dxField.mjs.map +1 -1
  216. package/fesm2022/aril-ui-editor.mjs +4 -4
  217. package/fesm2022/aril-ui-editor.mjs.map +1 -1
  218. package/fesm2022/aril-ui-field.mjs +4 -4
  219. package/fesm2022/aril-ui-field.mjs.map +1 -1
  220. package/fesm2022/aril-ui-fileUpload.mjs +4 -4
  221. package/fesm2022/aril-ui-fileUpload.mjs.map +1 -1
  222. package/fesm2022/aril-ui-form.mjs +11 -11
  223. package/fesm2022/aril-ui-form.mjs.map +1 -1
  224. package/fesm2022/aril-ui-img-viewer.mjs +3 -3
  225. package/fesm2022/aril-ui-img-viewer.mjs.map +1 -1
  226. package/fesm2022/aril-ui-json-diff-comparison.mjs +4 -4
  227. package/fesm2022/aril-ui-json-diff-comparison.mjs.map +1 -1
  228. package/fesm2022/aril-ui-lib.mjs +28 -28
  229. package/fesm2022/aril-ui-lib.mjs.map +1 -1
  230. package/fesm2022/aril-ui-loader.mjs +3 -3
  231. package/fesm2022/aril-ui-loader.mjs.map +1 -1
  232. package/fesm2022/aril-ui-mask.mjs +3 -3
  233. package/fesm2022/aril-ui-mask.mjs.map +1 -1
  234. package/fesm2022/aril-ui-multiSelect.mjs +3 -3
  235. package/fesm2022/aril-ui-multiSelect.mjs.map +1 -1
  236. package/fesm2022/aril-ui-number.mjs +3 -3
  237. package/fesm2022/aril-ui-number.mjs.map +1 -1
  238. package/fesm2022/aril-ui-operation-types-dialog.mjs +3 -3
  239. package/fesm2022/aril-ui-operation-types-dialog.mjs.map +1 -1
  240. package/fesm2022/aril-ui-overlayPanel.mjs +4 -4
  241. package/fesm2022/aril-ui-overlayPanel.mjs.map +1 -1
  242. package/fesm2022/aril-ui-panel.mjs +4 -4
  243. package/fesm2022/aril-ui-panel.mjs.map +1 -1
  244. package/fesm2022/aril-ui-password.mjs +3 -3
  245. package/fesm2022/aril-ui-password.mjs.map +1 -1
  246. package/fesm2022/aril-ui-pdf-viewer.mjs +3 -3
  247. package/fesm2022/aril-ui-pdf-viewer.mjs.map +1 -1
  248. package/fesm2022/aril-ui-progressbar.mjs +3 -3
  249. package/fesm2022/aril-ui-progressbar.mjs.map +1 -1
  250. package/fesm2022/aril-ui-radioButton.mjs +3 -3
  251. package/fesm2022/aril-ui-radioButton.mjs.map +1 -1
  252. package/fesm2022/aril-ui-relativeDateSelector.mjs +4 -4
  253. package/fesm2022/aril-ui-relativeDateSelector.mjs.map +1 -1
  254. package/fesm2022/aril-ui-selectBox.mjs +5 -5
  255. package/fesm2022/aril-ui-selectBox.mjs.map +1 -1
  256. package/fesm2022/aril-ui-switch.mjs +3 -3
  257. package/fesm2022/aril-ui-switch.mjs.map +1 -1
  258. package/fesm2022/aril-ui-table-expand.mjs +14 -14
  259. package/fesm2022/aril-ui-table-expand.mjs.map +1 -1
  260. package/fesm2022/aril-ui-table.mjs +15 -15
  261. package/fesm2022/aril-ui-table.mjs.map +1 -1
  262. package/fesm2022/aril-ui-tag.mjs +3 -3
  263. package/fesm2022/aril-ui-tag.mjs.map +1 -1
  264. package/fesm2022/aril-ui-tagBox.mjs +5 -5
  265. package/fesm2022/aril-ui-tagBox.mjs.map +1 -1
  266. package/fesm2022/aril-ui-text.mjs +3 -3
  267. package/fesm2022/aril-ui-text.mjs.map +1 -1
  268. package/fesm2022/aril-ui-textArea.mjs +3 -3
  269. package/fesm2022/aril-ui-textArea.mjs.map +1 -1
  270. package/fesm2022/aril-ui-toggle-button.mjs +4 -4
  271. package/fesm2022/aril-ui-toggle-button.mjs.map +1 -1
  272. package/fesm2022/aril-ui-tooltip.mjs +3 -3
  273. package/fesm2022/aril-ui-tooltip.mjs.map +1 -1
  274. package/fesm2022/aril-ui-translate-input.mjs +6 -6
  275. package/fesm2022/aril-ui-translate-input.mjs.map +1 -1
  276. package/fesm2022/aril-ui-tree.mjs +4 -4
  277. package/fesm2022/aril-ui-tree.mjs.map +1 -1
  278. package/fesm2022/aril-ui-treeSelect.mjs +4 -4
  279. package/fesm2022/aril-ui-treeSelect.mjs.map +1 -1
  280. package/fesm2022/aril-ui-treeTable.mjs +4 -4
  281. package/fesm2022/aril-ui-treeTable.mjs.map +1 -1
  282. package/fesm2022/aril-ui-value.mjs +5 -5
  283. package/fesm2022/aril-ui-value.mjs.map +1 -1
  284. package/fesm2022/aril-util-activity.mjs +3 -3
  285. package/fesm2022/aril-util-activity.mjs.map +1 -1
  286. package/fesm2022/aril-util-block.mjs +6 -6
  287. package/fesm2022/aril-util-block.mjs.map +1 -1
  288. package/fesm2022/aril-util-directives.mjs +10 -10
  289. package/fesm2022/aril-util-directives.mjs.map +1 -1
  290. package/fesm2022/aril-util-lib.mjs +3 -3
  291. package/fesm2022/aril-util-lib.mjs.map +1 -1
  292. package/fesm2022/aril-util-pipes.mjs +18 -18
  293. package/fesm2022/aril-util-pipes.mjs.map +1 -1
  294. package/fesm2022/aril-util-primitive-extensions.mjs.map +1 -1
  295. package/fesm2022/aril-util-pub-sub.mjs +3 -3
  296. package/fesm2022/aril-util-pub-sub.mjs.map +1 -1
  297. package/fesm2022/aril-util-sync-active-tab-route.mjs +4 -4
  298. package/fesm2022/aril-util-sync-active-tab-route.mjs.map +1 -1
  299. package/fesm2022/aril-util-unwrap.mjs +3 -3
  300. package/fesm2022/aril-util-unwrap.mjs.map +1 -1
  301. package/fesm2022/aril.mjs +6 -6
  302. package/fesm2022/aril.mjs.map +1 -1
  303. package/package.json +204 -204
  304. package/theme/layout/app/favorite-pages/favorite-pages-sidebar.component.d.ts +0 -16
  305. package/theme/layout/app/history/history-sidebar.component.d.ts +0 -16
  306. package/theme/layout/app/notifications/notifications-sidebar.component.d.ts +0 -16
  307. package/theme/layout/app/site-map/site-map-sidebar.component.d.ts +0 -16
  308. package/ui/autoComplete/src/auto-complete.component.d.ts +8 -8
  309. package/ui/badge/src/badge.component.d.ts +9 -9
  310. package/ui/button/src/button.component.d.ts +12 -12
  311. package/ui/button/src/split-button.component.d.ts +1 -1
  312. package/ui/calendar/src/calendar.component.d.ts +22 -22
  313. package/ui/charts/src/amCharts/column/column-chart.component.d.ts +4 -4
  314. package/ui/charts/src/amCharts/line/line-chart.component.d.ts +5 -5
  315. package/ui/charts/src/amCharts/pie/pie-chart.component.d.ts +4 -4
  316. package/ui/charts/src/highCharts/area/area-chart.component.d.ts +3 -3
  317. package/ui/charts/src/highCharts/bar/bar-chart.component.d.ts +7 -7
  318. package/ui/charts/src/highCharts/column/column-chart.component.d.ts +9 -9
  319. package/ui/charts/src/highCharts/gauge/solid-gauge.component.d.ts +3 -3
  320. package/ui/charts/src/highCharts/heatmap/heatMap-chart.component.d.ts +4 -4
  321. package/ui/charts/src/highCharts/line/line-chart-datetime-axis.component.d.ts +5 -5
  322. package/ui/charts/src/highCharts/line/line-chart-series.component.d.ts +4 -4
  323. package/ui/charts/src/highCharts/line/line-chart.component.d.ts +4 -4
  324. package/ui/charts/src/highCharts/pie/pie-chart.component.d.ts +7 -7
  325. package/ui/checkbox/src/check-box.component.d.ts +3 -3
  326. package/ui/checkbox/src/tri-state-checkbox.component.d.ts +2 -2
  327. package/ui/chip/src/chip.component.d.ts +7 -7
  328. package/ui/collapse-reorder-list/src/collapse-reorder-list.component.d.ts +4 -4
  329. package/ui/dxEditor/src/dx-editor.component.d.ts +5 -5
  330. package/ui/dxField/src/dx-field.component.d.ts +5 -5
  331. package/ui/editor/src/aril-editor.component.d.ts +3 -3
  332. package/ui/field/src/field.component.d.ts +9 -9
  333. package/ui/fileUpload/src/file-upload.component.d.ts +14 -14
  334. package/ui/form/src/form-submit-button.component.d.ts +1 -1
  335. package/ui/form/src/form.component.d.ts +1 -1
  336. package/ui/img-viewer/src/img-viewer.component.d.ts +1 -1
  337. package/ui/lib/src/form/form-error-message.directive.d.ts +1 -1
  338. package/ui/mask/src/mask.component.d.ts +6 -6
  339. package/ui/multiSelect/src/multi-select.component.d.ts +13 -13
  340. package/ui/number/src/number.component.d.ts +15 -15
  341. package/ui/overlayPanel/src/overlay-panel.component.d.ts +1 -1
  342. package/ui/panel/src/panel.component.d.ts +6 -6
  343. package/ui/password/src/password.component.d.ts +4 -4
  344. package/ui/pdf-viewer/src/pdf-viewer.component.d.ts +12 -12
  345. package/ui/progressbar/src/progressbar.component.d.ts +3 -3
  346. package/ui/radioButton/src/radio-button.component.d.ts +3 -3
  347. package/ui/selectBox/src/select-box.component.d.ts +10 -10
  348. package/ui/switch/src/switch.component.d.ts +1 -1
  349. package/ui/table/src/export-overlay-panel.component.d.ts +2 -2
  350. package/ui/table/src/table-column.component.d.ts +11 -11
  351. package/ui/table/src/table.component.d.ts +35 -35
  352. package/ui/table-expand/src/table-column.component.d.ts +6 -6
  353. package/ui/table-expand/src/table.component.d.ts +20 -20
  354. package/ui/tag/src/tag.component.d.ts +6 -4
  355. package/ui/tagBox/src/tag-box.component.d.ts +7 -7
  356. package/ui/text/src/text.component.d.ts +5 -5
  357. package/ui/textArea/src/text-area.component.d.ts +5 -5
  358. package/ui/toggle-button/src/toggle-button.component.d.ts +1 -1
  359. package/ui/tooltip/src/tooltip-component.d.ts +8 -8
  360. package/ui/translate-input/src/aril-translate-input.component.d.ts +2 -2
  361. package/ui/tree/src/tree.component.d.ts +8 -8
  362. package/ui/treeSelect/src/treeSelect.component.d.ts +12 -12
  363. package/ui/treeTable/src/tree-table.component.d.ts +5 -5
  364. package/ui/value/src/value.component.d.ts +15 -15
  365. package/ui-business/assetPicker/src/asset-picker.component.d.ts +11 -11
  366. package/ui-business/detailed-overlay-panel/src/detailed-overlay-panel.component.d.ts +6 -3
  367. package/ui-business/enumPicker/src/enum-picker.component.d.ts +34 -25
  368. package/ui-business/enumPicker/src/interface.d.ts +4 -0
  369. package/ui-business/image-viewer/src/aril-image-viewer.component.d.ts +8 -8
  370. package/ui-business/multiple-ref-value/src/multiple-ref-value.component.d.ts +5 -2
  371. package/ui-business/ref-value/src/ref-value.component.d.ts +5 -5
  372. package/ui-business/rolePicker/src/role-picker.component.d.ts +6 -6
  373. package/ui-business/trace-drawer/src/trace-drawer.component.d.ts +8 -8
  374. package/ui-business/trace-id/src/trace-id.component.d.ts +6 -6
  375. package/ui-business/userPicker/src/user-picker.component.d.ts +3 -3
  376. package/util/block/src/block.d.ts +4 -4
  377. package/util/lib/src/types.d.ts +0 -16
@@ -1,22 +1,22 @@
1
1
  import * as i0 from '@angular/core';
2
- import { signal, input, EventEmitter, effect, Output, Component } from '@angular/core';
2
+ import { signal, input, EventEmitter, effect, Component, Output } from '@angular/core';
3
3
  import * as i4 from '@angular/forms';
4
4
  import { ReactiveFormsModule } from '@angular/forms';
5
5
  import * as i6 from 'primeng/multiselect';
6
6
  import { MultiSelectModule } from 'primeng/multiselect';
7
+ import * as i8 from 'primeng/tooltip';
8
+ import { TooltipModule } from 'primeng/tooltip';
7
9
  import * as i2 from '@ngneat/transloco';
8
10
  import { TranslocoModule } from '@ngneat/transloco';
9
11
  import * as i5 from 'devextreme-angular/ui/select-box';
10
12
  import { DxSelectBoxModule } from 'devextreme-angular/ui/select-box';
11
- import { firstValueFrom } from 'rxjs';
12
- import DataSource from 'devextreme/data/data_source';
13
13
  import ArrayStore from 'devextreme/data/array_store';
14
+ import DataSource from 'devextreme/data/data_source';
15
+ import { firstValueFrom } from 'rxjs';
14
16
  import { API_CONFIGS } from 'aril/boot/config/api';
15
17
  import { Apps } from 'aril/boot/config/apps';
16
18
  import * as i3 from 'aril/ui/lib';
17
- import { BaseInputComponent, DXInputErrorMessagePipe, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
18
- import * as i8 from 'primeng/tooltip';
19
- import { TooltipModule } from 'primeng/tooltip';
19
+ import { BaseInputComponent, InputErrorMessagePipe, DXInputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
20
20
  import * as i1 from '@angular/common/http';
21
21
  import * as i7 from 'primeng/api';
22
22
 
@@ -27,7 +27,11 @@ class EnumPickerComponent extends BaseInputComponent {
27
27
  this.translocoService = translocoService;
28
28
  this.selectionItems = signal(null);
29
29
  this.selectBoxDataSource = signal(null);
30
+ this.groupedSelectionItems = signal(null);
31
+ this.isGrouped = signal(false);
30
32
  this.originalSelectionItems = [];
33
+ this.rawParentItems = [];
34
+ this.rawGroups = [];
31
35
  /**
32
36
  * Single Select States
33
37
  */
@@ -35,6 +39,7 @@ class EnumPickerComponent extends BaseInputComponent {
35
39
  this.itemText = input('text');
36
40
  this.groupName = input('');
37
41
  this.parentSelectionKey = input(null);
42
+ this.parentGroupName = input('');
38
43
  this.tabindex = input(0);
39
44
  this.items = input();
40
45
  this.isMultiple = input(false);
@@ -65,18 +70,33 @@ class EnumPickerComponent extends BaseInputComponent {
65
70
  this.tooltipPosition = input('top');
66
71
  this.onSelectionChanged = new EventEmitter();
67
72
  effect(() => {
68
- if (this.groupName() || this.parentSelectionKey())
69
- this.getSelectionItems();
73
+ const psk = this.parentSelectionKey();
74
+ if (this.groupName() || psk) {
75
+ if (this.isMultiple() && Array.isArray(psk) && psk.length >= 2) {
76
+ this.getGroupedSelectionItems(psk);
77
+ }
78
+ else {
79
+ this.getSelectionItems();
80
+ }
81
+ }
70
82
  });
71
- // excludedKeys değişince item listesini yeniden filtrele (originalSelectionItems korunur)
83
+ // excludedKeys değişince item listesini yeniden filtrele (cache korunur, refetch yok)
84
+ // allowSignalWrites: excludedKeys runtime'da (item'lar yüklendikten sonra) değişince
85
+ // buildGroupedFromRaw/updateSelectionItemsText senkron signal yazar; bu effect içinde izinli olmalı (NG0600).
72
86
  effect(() => {
73
87
  this.excludedKeys();
74
- if (this.originalSelectionItems.length > 0) {
88
+ if (this.rawGroups.length > 0) {
89
+ this.buildGroupedFromRaw();
90
+ }
91
+ else if (this.originalSelectionItems.length > 0) {
75
92
  this.updateSelectionItemsText();
76
93
  }
77
- });
94
+ }, { allowSignalWrites: true });
78
95
  this.translocoService.langChanges$.subscribe(() => {
79
- if (this.selectionItems() && this.selectionItems()?.length > 0) {
96
+ if (this.rawGroups.length > 0) {
97
+ this.buildGroupedFromRaw();
98
+ }
99
+ else if (this.selectionItems() && this.selectionItems()?.length > 0) {
80
100
  this.updateSelectionItemsText();
81
101
  }
82
102
  });
@@ -91,11 +111,12 @@ class EnumPickerComponent extends BaseInputComponent {
91
111
  const payload = {
92
112
  groupName: this.groupName()
93
113
  };
94
- if (Array.isArray(this.parentSelectionKey())) {
95
- payload.parentSelectionKeys = this.parentSelectionKey();
114
+ const psk = this.parentSelectionKey();
115
+ if (Array.isArray(psk)) {
116
+ payload.parentSelectionKeys = psk;
96
117
  }
97
118
  else {
98
- payload.parentSelectionKey = this.parentSelectionKey();
119
+ payload.parentSelectionKey = psk;
99
120
  }
100
121
  const hostApi = API_CONFIGS.getExternalAppEndpoint(Apps.MNG);
101
122
  try {
@@ -105,24 +126,88 @@ class EnumPickerComponent extends BaseInputComponent {
105
126
  catch (error) {
106
127
  this.originalSelectionItems = [];
107
128
  }
129
+ // Flat moda dön (await sonrası — effect context dışı olduğu için signal yazımı güvenli)
130
+ this.rawGroups = [];
131
+ this.rawParentItems = [];
132
+ this.groupedSelectionItems.set(null);
133
+ this.isGrouped.set(false);
108
134
  this.updateSelectionItemsText();
109
135
  }
136
+ // Parent (multiple) ≥2 seçiliyken her parent için ayrı istek atılır (load-all batch)
137
+ // ve child item'lar parent başına gruplanır. Grup başlığı parent'ın lokalize display'idir.
138
+ async getGroupedSelectionItems(parentKeys) {
139
+ const childGroupName = this.groupName();
140
+ const parentGroupName = this.parentGroupName();
141
+ const hasParentGroup = !!parentGroupName;
142
+ const requests = [];
143
+ if (hasParentGroup) {
144
+ requests.push({ groupName: parentGroupName });
145
+ }
146
+ parentKeys.forEach((key) => {
147
+ requests.push({ groupName: childGroupName, parentSelectionKey: key });
148
+ });
149
+ const hostApi = API_CONFIGS.getExternalAppEndpoint(Apps.MNG);
150
+ let groups = [];
151
+ try {
152
+ groups =
153
+ (await firstValueFrom(this.http.post(hostApi + '/selection-group/load-all', requests))) ||
154
+ [];
155
+ }
156
+ catch (error) {
157
+ groups = [];
158
+ }
159
+ this.rawParentItems = hasParentGroup ? groups[0]?.selectionItems || [] : [];
160
+ const childGroups = hasParentGroup ? groups.slice(1) : groups;
161
+ this.rawGroups = parentKeys.map((parentKey, index) => ({
162
+ parentKey,
163
+ items: childGroups[index]?.selectionItems || []
164
+ }));
165
+ this.buildGroupedFromRaw();
166
+ }
167
+ buildGroupedFromRaw() {
168
+ const excluded = new Set(this.excludedKeys() || []);
169
+ const parentDisplayMap = new Map();
170
+ this.rawParentItems.forEach((item) => {
171
+ parentDisplayMap.set(item.selectionKey, this.resolveDisplay(item));
172
+ });
173
+ const built = this.rawGroups.map((group) => ({
174
+ label: parentDisplayMap.get(group.parentKey) ?? group.parentKey,
175
+ items: group.items
176
+ .filter((item) => !excluded.has(item.selectionKey))
177
+ .map((item) => ({
178
+ key: item.selectionKey,
179
+ text: this.resolveDisplay(item)
180
+ }))
181
+ }));
182
+ this.selectionItems.set(null);
183
+ this.selectBoxDataSource.set(null);
184
+ this.groupedSelectionItems.set(built);
185
+ this.isGrouped.set(true);
186
+ this.filterCurrentValueBySelectionItems();
187
+ }
188
+ resolveDisplay(item) {
189
+ const lang = this.translocoService.getActiveLang();
190
+ return item?.selectionMultiLanguageDisplays?.[lang] || item.selectionDisplay;
191
+ }
192
+ getVisibleItems() {
193
+ if (this.isGrouped()) {
194
+ return (this.groupedSelectionItems() || []).flatMap((group) => group.items);
195
+ }
196
+ return this.selectionItems() || [];
197
+ }
110
198
  updateSelectionItemsText() {
111
199
  if (!this.originalSelectionItems || this.originalSelectionItems.length === 0) {
112
200
  this.selectionItems.set(null);
113
201
  this.selectBoxDataSource.set(null);
114
202
  return;
115
203
  }
116
- const currentLang = this.translocoService.getActiveLang();
117
204
  this.selectionItems.set(null);
118
205
  const excluded = new Set(this.excludedKeys() || []);
119
206
  const mappedItems = this.originalSelectionItems
120
207
  .filter((item) => !excluded.has(item.selectionKey))
121
208
  .map((item) => ({
122
209
  key: item.selectionKey,
123
- text: item?.selectionMultiLanguageDisplays?.[currentLang] ?
124
- item.selectionMultiLanguageDisplays[currentLang]
125
- : item.selectionDisplay,
210
+ text: this.resolveDisplay(item),
126
211
  parentSelectionKey: item.parentSelectionKey
127
212
  }));
128
213
  this.selectionItems.set(mappedItems);
@@ -136,7 +221,7 @@ class EnumPickerComponent extends BaseInputComponent {
136
221
  if (!this.parentSelectionKey() && !hasExcluded)
137
222
  return;
138
223
  const currentValue = this.ngControl.control?.value;
139
- const validKeys = new Set((this.selectionItems() || []).map((item) => item[this.itemKey()]));
224
+ const validKeys = new Set(this.getVisibleItems().map((item) => item[this.itemKey()]));
140
225
  if (this.isMultiple()) {
141
226
  // Child multi-select: geçersiz key'leri filtrele, geçerlileri bırak
142
227
  if (!Array.isArray(currentValue) || currentValue.length === 0)
@@ -183,12 +268,19 @@ class EnumPickerComponent extends BaseInputComponent {
183
268
  pageSize: 50
184
269
  }));
185
270
  }
186
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EnumPickerComponent, deps: [{ token: i1.HttpClient }, { token: i2.TranslocoService }], target: i0.ɵɵFactoryTarget.Component }); }
187
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: EnumPickerComponent, isStandalone: true, selector: "enum-picker[ngModel], enum-picker[formControl], enum-picker[formControlName]", inputs: { itemKey: { classPropertyName: "itemKey", publicName: "itemKey", isSignal: true, isRequired: false, transformFunction: null }, itemText: { classPropertyName: "itemText", publicName: "itemText", isSignal: true, isRequired: false, transformFunction: null }, groupName: { classPropertyName: "groupName", publicName: "groupName", isSignal: true, isRequired: false, transformFunction: null }, parentSelectionKey: { classPropertyName: "parentSelectionKey", publicName: "parentSelectionKey", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, isMultiple: { classPropertyName: "isMultiple", publicName: "isMultiple", isSignal: true, isRequired: false, transformFunction: null }, excludedKeys: { classPropertyName: "excludedKeys", publicName: "excludedKeys", isSignal: true, isRequired: false, transformFunction: null }, grouped: { classPropertyName: "grouped", publicName: "grouped", isSignal: true, isRequired: false, transformFunction: null }, showClearButton: { classPropertyName: "showClearButton", publicName: "showClearButton", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, searchExpr: { classPropertyName: "searchExpr", publicName: "searchExpr", isSignal: true, isRequired: false, transformFunction: null }, acceptCustomValue: { classPropertyName: "acceptCustomValue", publicName: "acceptCustomValue", isSignal: true, isRequired: false, transformFunction: null }, textClampCharacters: { classPropertyName: "textClampCharacters", publicName: "textClampCharacters", isSignal: true, isRequired: false, transformFunction: null }, useVirtualScroll: { classPropertyName: "useVirtualScroll", publicName: "useVirtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, selectedItemsLabel: { classPropertyName: "selectedItemsLabel", publicName: "selectedItemsLabel", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onSelectionChanged: "onSelectionChanged" }, providers: [InputErrorMessagePipe], usesInheritance: true, hostDirectives: [{ directive: i3.ValueAccessorDirective }], ngImport: i0, template: "@if (isMultiple()) {\r\n\t<p-multiSelect\r\n\t\t[options]=\"selectionItems() || items() || []\"\r\n\t\t[optionValue]=\"itemKey()\"\r\n\t\t[optionLabel]=\"itemText()\"\r\n\t\t[defaultLabel]=\"placeholder()\"\r\n\t\t[selectedItemsLabel]=\"selectedItemsLabel()\"\r\n\t\t[style]=\"style()\"\r\n\t\t[styleClass]=\"styleClass()\"\r\n\t\t[tooltip]=\"tooltip()\"\r\n\t\t[tooltipPosition]=\"tooltipPosition()\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\r\n\t\t[maxSelectedLabels]=\"2\"\r\n\t\t[appendTo]=\"appendTo()\"\r\n\t\t[virtualScroll]=\"useVirtualScroll()\"\r\n\t\t[virtualScrollItemSize]=\"virtualScrollItemSize()\"\r\n\t\t[scrollHeight]=\"scrollHeight()\"\r\n\t\t[filter]=\"true\"\r\n\t\t[panelStyle]=\"{ 'max-width': '400px', 'min-width': 'auto' }\">\r\n\t\t<ng-template let-enum pTemplate=\"item\">\r\n\t\t\t<div [pTooltip]=\"enum[itemText()]?.length > textClampCharacters() ? enum[itemText()] : ''\">\r\n\t\t\t\t@if (enum[itemText()]?.length > textClampCharacters()) {\r\n\t\t\t\t\t{{ enum[itemText()].slice(0, textClampCharacters()) }}...\r\n\t\t\t\t} @else {\r\n\t\t\t\t\t{{ enum[itemText()] }}\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t</ng-template>\r\n\t</p-multiSelect>\r\n} @else {\r\n\t<dx-select-box\r\n [dataSource]=\"useVirtualScroll() ? selectBoxDataSource() : (selectionItems() || items() || [])\"\r\n\t\t[valueExpr]=\"itemKey()\"\r\n\t\t[displayExpr]=\"itemText()\"\r\n\t\t[searchEnabled]=\"true\"\r\n\t\t[searchExpr]=\"searchExpr()\"\r\n\t\t[tabIndex]=\"tabindex()\"\r\n\t\t[grouped]=\"grouped()\"\r\n\t\t[placeholder]=\"placeholder()\"\r\n\t\t[showClearButton]=\"showClearButton()\"\r\n\t\t[acceptCustomValue]=\"acceptCustomValue()\"\r\n\t\t(onCustomItemCreating)=\"onCustomItemCreating($event)\"\r\n\t\t[isValid]=\"ngControl?.control?.valid || ngControl?.control?.pristine || ngControl?.control?.disabled || false\"\r\n\t\t[validationError]=\"ngControl?.control?.errors | dxInputErrorMessage: ngControl?.control\"\r\n\t\tvalidationMessagePosition=\"top\"\r\n\t\t[noDataText]=\"translocoService.translate('messages.noDataToDisplay')\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\r\n (onSelectionChanged)=\"onSelectionChanged.emit($event.selectedItem);setTitle($event.selectedItem)\"\r\n [inputAttr]=\"{ 'title': selectedItemText }\">\r\n\t</dx-select-box>\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: DxSelectBoxModule }, { kind: "component", type: i5.DxSelectBoxComponent, selector: "dx-select-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "buttons", "customItemCreateEvent", "dataSource", "deferRendering", "disabled", "displayExpr", "displayValue", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hint", "hoverStateEnabled", "inputAttr", "isDirty", "isValid", "items", "itemTemplate", "label", "labelMode", "maxLength", "minSearchLength", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectedItem", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showSelectionControls", "spellcheck", "stylingMode", "tabIndex", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCopy", "onCustomItemCreating", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onOpened", "onOptionChanged", "onPaste", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "customItemCreateEventChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "displayValueChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isDirtyChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxLengthChange", "minSearchLengthChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectedItemChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showSelectionControlsChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "pipe", type: DXInputErrorMessagePipe, name: "dxInputErrorMessage" }, { kind: "ngmodule", type: TranslocoModule }, { kind: "ngmodule", type: MultiSelectModule }, { kind: "component", type: i6.MultiSelect, selector: "p-multiSelect", inputs: ["id", "ariaLabel", "style", "styleClass", "panelStyle", "panelStyleClass", "inputId", "disabled", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "variant", "appendTo", "dataKey", "name", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "defaultLabel", "placeholder", "options", "filterValue", "itemSize", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "directive", type: i7.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i8.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }] }); }
271
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: EnumPickerComponent, deps: [{ token: i1.HttpClient }, { token: i2.TranslocoService }], target: i0.ɵɵFactoryTarget.Component }); }
272
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: EnumPickerComponent, isStandalone: true, selector: "enum-picker[ngModel], enum-picker[formControl], enum-picker[formControlName]", inputs: { itemKey: { classPropertyName: "itemKey", publicName: "itemKey", isSignal: true, isRequired: false, transformFunction: null }, itemText: { classPropertyName: "itemText", publicName: "itemText", isSignal: true, isRequired: false, transformFunction: null }, groupName: { classPropertyName: "groupName", publicName: "groupName", isSignal: true, isRequired: false, transformFunction: null }, parentSelectionKey: { classPropertyName: "parentSelectionKey", publicName: "parentSelectionKey", isSignal: true, isRequired: false, transformFunction: null }, parentGroupName: { classPropertyName: "parentGroupName", publicName: "parentGroupName", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, isMultiple: { classPropertyName: "isMultiple", publicName: "isMultiple", isSignal: true, isRequired: false, transformFunction: null }, excludedKeys: { classPropertyName: "excludedKeys", publicName: "excludedKeys", isSignal: true, isRequired: false, transformFunction: null }, grouped: { classPropertyName: "grouped", publicName: "grouped", isSignal: true, isRequired: false, transformFunction: null }, showClearButton: { classPropertyName: "showClearButton", publicName: "showClearButton", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, searchExpr: { classPropertyName: "searchExpr", publicName: "searchExpr", isSignal: true, isRequired: false, transformFunction: null }, acceptCustomValue: { classPropertyName: "acceptCustomValue", publicName: "acceptCustomValue", isSignal: true, isRequired: false, transformFunction: null }, textClampCharacters: { classPropertyName: "textClampCharacters", publicName: "textClampCharacters", isSignal: true, isRequired: false, transformFunction: null }, useVirtualScroll: { classPropertyName: "useVirtualScroll", publicName: "useVirtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, selectedItemsLabel: { classPropertyName: "selectedItemsLabel", publicName: "selectedItemsLabel", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onSelectionChanged: "onSelectionChanged" }, providers: [InputErrorMessagePipe], usesInheritance: true, hostDirectives: [{ directive: i3.ValueAccessorDirective }], ngImport: i0, template: "@if (isMultiple()) {\r\n\t<p-multiSelect\r\n\t\t[options]=\"isGrouped() ? (groupedSelectionItems() || []) : (selectionItems() || items() || [])\"\r\n\t\t[group]=\"isGrouped()\"\r\n\t\t[optionValue]=\"itemKey()\"\r\n\t\t[optionLabel]=\"itemText()\"\r\n\t\t[defaultLabel]=\"placeholder()\"\r\n\t\t[selectedItemsLabel]=\"selectedItemsLabel()\"\r\n\t\t[style]=\"style()\"\r\n\t\t[styleClass]=\"styleClass()\"\r\n\t\t[tooltip]=\"tooltip()\"\r\n\t\t[tooltipPosition]=\"tooltipPosition()\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\r\n\t\t[maxSelectedLabels]=\"2\"\r\n\t\t[appendTo]=\"appendTo()\"\r\n\t\t[virtualScroll]=\"useVirtualScroll()\"\r\n\t\t[virtualScrollItemSize]=\"virtualScrollItemSize()\"\r\n\t\t[scrollHeight]=\"scrollHeight()\"\r\n\t\t[filter]=\"true\"\r\n\t\t[panelStyle]=\"{ 'max-width': '400px', 'min-width': 'auto' }\">\r\n\t\t@if (isGrouped()) {\r\n\t\t\t<ng-template let-group pTemplate=\"group\">\r\n\t\t\t\t<span>{{ group.label }}</span>\r\n\t\t\t</ng-template>\r\n\t\t}\r\n\t\t<ng-template let-enum pTemplate=\"item\">\r\n\t\t\t<div [pTooltip]=\"enum[itemText()]?.length > textClampCharacters() ? enum[itemText()] : ''\">\r\n\t\t\t\t@if (enum[itemText()]?.length > textClampCharacters()) {\r\n\t\t\t\t\t{{ enum[itemText()].slice(0, textClampCharacters()) }}...\r\n\t\t\t\t} @else {\r\n\t\t\t\t\t{{ enum[itemText()] }}\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t</ng-template>\r\n\t</p-multiSelect>\r\n} @else {\r\n\t<dx-select-box\r\n [dataSource]=\"useVirtualScroll() ? selectBoxDataSource() : (selectionItems() || items() || [])\"\r\n\t\t[valueExpr]=\"itemKey()\"\r\n\t\t[displayExpr]=\"itemText()\"\r\n\t\t[searchEnabled]=\"true\"\r\n\t\t[searchExpr]=\"searchExpr()\"\r\n\t\t[tabIndex]=\"tabindex()\"\r\n\t\t[grouped]=\"grouped()\"\r\n\t\t[placeholder]=\"placeholder()\"\r\n\t\t[showClearButton]=\"showClearButton()\"\r\n\t\t[acceptCustomValue]=\"acceptCustomValue()\"\r\n\t\t(onCustomItemCreating)=\"onCustomItemCreating($event)\"\r\n\t\t[isValid]=\"ngControl?.control?.valid || ngControl?.control?.pristine || ngControl?.control?.disabled || false\"\r\n\t\t[validationError]=\"ngControl?.control?.errors | dxInputErrorMessage: ngControl?.control\"\r\n\t\tvalidationMessagePosition=\"top\"\r\n\t\t[noDataText]=\"translocoService.translate('messages.noDataToDisplay')\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\r\n (onSelectionChanged)=\"onSelectionChanged.emit($event.selectedItem);setTitle($event.selectedItem)\"\r\n [inputAttr]=\"{ 'title': selectedItemText }\">\r\n\t</dx-select-box>\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: DxSelectBoxModule }, { kind: "component", type: i5.DxSelectBoxComponent, selector: "dx-select-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "buttons", "customItemCreateEvent", "dataSource", "deferRendering", "disabled", "displayExpr", "displayValue", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hint", "hoverStateEnabled", "inputAttr", "isDirty", "isValid", "items", "itemTemplate", "label", "labelMode", "maxLength", "minSearchLength", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectedItem", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showSelectionControls", "spellcheck", "stylingMode", "tabIndex", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCopy", "onCustomItemCreating", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onOpened", "onOptionChanged", "onPaste", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "customItemCreateEventChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "displayValueChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isDirtyChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxLengthChange", "minSearchLengthChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectedItemChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showSelectionControlsChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "pipe", type: DXInputErrorMessagePipe, name: "dxInputErrorMessage" }, { kind: "ngmodule", type: TranslocoModule }, { kind: "ngmodule", type: MultiSelectModule }, { kind: "component", type: i6.MultiSelect, selector: "p-multiSelect", inputs: ["id", "ariaLabel", "style", "styleClass", "panelStyle", "panelStyleClass", "inputId", "disabled", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "variant", "appendTo", "dataKey", "name", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "defaultLabel", "placeholder", "options", "filterValue", "itemSize", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "directive", type: i7.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i8.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }] }); }
188
273
  }
189
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EnumPickerComponent, decorators: [{
274
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: EnumPickerComponent, decorators: [{
190
275
  type: Component,
191
- args: [{ standalone: true, selector: 'enum-picker[ngModel], enum-picker[formControl], enum-picker[formControlName]', imports: [ReactiveFormsModule, DxSelectBoxModule, DXInputErrorMessagePipe, TranslocoModule, MultiSelectModule, TooltipModule], providers: [InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "@if (isMultiple()) {\r\n\t<p-multiSelect\r\n\t\t[options]=\"selectionItems() || items() || []\"\r\n\t\t[optionValue]=\"itemKey()\"\r\n\t\t[optionLabel]=\"itemText()\"\r\n\t\t[defaultLabel]=\"placeholder()\"\r\n\t\t[selectedItemsLabel]=\"selectedItemsLabel()\"\r\n\t\t[style]=\"style()\"\r\n\t\t[styleClass]=\"styleClass()\"\r\n\t\t[tooltip]=\"tooltip()\"\r\n\t\t[tooltipPosition]=\"tooltipPosition()\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\r\n\t\t[maxSelectedLabels]=\"2\"\r\n\t\t[appendTo]=\"appendTo()\"\r\n\t\t[virtualScroll]=\"useVirtualScroll()\"\r\n\t\t[virtualScrollItemSize]=\"virtualScrollItemSize()\"\r\n\t\t[scrollHeight]=\"scrollHeight()\"\r\n\t\t[filter]=\"true\"\r\n\t\t[panelStyle]=\"{ 'max-width': '400px', 'min-width': 'auto' }\">\r\n\t\t<ng-template let-enum pTemplate=\"item\">\r\n\t\t\t<div [pTooltip]=\"enum[itemText()]?.length > textClampCharacters() ? enum[itemText()] : ''\">\r\n\t\t\t\t@if (enum[itemText()]?.length > textClampCharacters()) {\r\n\t\t\t\t\t{{ enum[itemText()].slice(0, textClampCharacters()) }}...\r\n\t\t\t\t} @else {\r\n\t\t\t\t\t{{ enum[itemText()] }}\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t</ng-template>\r\n\t</p-multiSelect>\r\n} @else {\r\n\t<dx-select-box\r\n [dataSource]=\"useVirtualScroll() ? selectBoxDataSource() : (selectionItems() || items() || [])\"\r\n\t\t[valueExpr]=\"itemKey()\"\r\n\t\t[displayExpr]=\"itemText()\"\r\n\t\t[searchEnabled]=\"true\"\r\n\t\t[searchExpr]=\"searchExpr()\"\r\n\t\t[tabIndex]=\"tabindex()\"\r\n\t\t[grouped]=\"grouped()\"\r\n\t\t[placeholder]=\"placeholder()\"\r\n\t\t[showClearButton]=\"showClearButton()\"\r\n\t\t[acceptCustomValue]=\"acceptCustomValue()\"\r\n\t\t(onCustomItemCreating)=\"onCustomItemCreating($event)\"\r\n\t\t[isValid]=\"ngControl?.control?.valid || ngControl?.control?.pristine || ngControl?.control?.disabled || false\"\r\n\t\t[validationError]=\"ngControl?.control?.errors | dxInputErrorMessage: ngControl?.control\"\r\n\t\tvalidationMessagePosition=\"top\"\r\n\t\t[noDataText]=\"translocoService.translate('messages.noDataToDisplay')\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\r\n (onSelectionChanged)=\"onSelectionChanged.emit($event.selectedItem);setTitle($event.selectedItem)\"\r\n [inputAttr]=\"{ 'title': selectedItemText }\">\r\n\t</dx-select-box>\r\n}\r\n" }]
276
+ args: [{ standalone: true, selector: 'enum-picker[ngModel], enum-picker[formControl], enum-picker[formControlName]', imports: [
277
+ ReactiveFormsModule,
278
+ DxSelectBoxModule,
279
+ DXInputErrorMessagePipe,
280
+ TranslocoModule,
281
+ MultiSelectModule,
282
+ TooltipModule
283
+ ], providers: [InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "@if (isMultiple()) {\r\n\t<p-multiSelect\r\n\t\t[options]=\"isGrouped() ? (groupedSelectionItems() || []) : (selectionItems() || items() || [])\"\r\n\t\t[group]=\"isGrouped()\"\r\n\t\t[optionValue]=\"itemKey()\"\r\n\t\t[optionLabel]=\"itemText()\"\r\n\t\t[defaultLabel]=\"placeholder()\"\r\n\t\t[selectedItemsLabel]=\"selectedItemsLabel()\"\r\n\t\t[style]=\"style()\"\r\n\t\t[styleClass]=\"styleClass()\"\r\n\t\t[tooltip]=\"tooltip()\"\r\n\t\t[tooltipPosition]=\"tooltipPosition()\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\r\n\t\t[maxSelectedLabels]=\"2\"\r\n\t\t[appendTo]=\"appendTo()\"\r\n\t\t[virtualScroll]=\"useVirtualScroll()\"\r\n\t\t[virtualScrollItemSize]=\"virtualScrollItemSize()\"\r\n\t\t[scrollHeight]=\"scrollHeight()\"\r\n\t\t[filter]=\"true\"\r\n\t\t[panelStyle]=\"{ 'max-width': '400px', 'min-width': 'auto' }\">\r\n\t\t@if (isGrouped()) {\r\n\t\t\t<ng-template let-group pTemplate=\"group\">\r\n\t\t\t\t<span>{{ group.label }}</span>\r\n\t\t\t</ng-template>\r\n\t\t}\r\n\t\t<ng-template let-enum pTemplate=\"item\">\r\n\t\t\t<div [pTooltip]=\"enum[itemText()]?.length > textClampCharacters() ? enum[itemText()] : ''\">\r\n\t\t\t\t@if (enum[itemText()]?.length > textClampCharacters()) {\r\n\t\t\t\t\t{{ enum[itemText()].slice(0, textClampCharacters()) }}...\r\n\t\t\t\t} @else {\r\n\t\t\t\t\t{{ enum[itemText()] }}\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t</ng-template>\r\n\t</p-multiSelect>\r\n} @else {\r\n\t<dx-select-box\r\n [dataSource]=\"useVirtualScroll() ? selectBoxDataSource() : (selectionItems() || items() || [])\"\r\n\t\t[valueExpr]=\"itemKey()\"\r\n\t\t[displayExpr]=\"itemText()\"\r\n\t\t[searchEnabled]=\"true\"\r\n\t\t[searchExpr]=\"searchExpr()\"\r\n\t\t[tabIndex]=\"tabindex()\"\r\n\t\t[grouped]=\"grouped()\"\r\n\t\t[placeholder]=\"placeholder()\"\r\n\t\t[showClearButton]=\"showClearButton()\"\r\n\t\t[acceptCustomValue]=\"acceptCustomValue()\"\r\n\t\t(onCustomItemCreating)=\"onCustomItemCreating($event)\"\r\n\t\t[isValid]=\"ngControl?.control?.valid || ngControl?.control?.pristine || ngControl?.control?.disabled || false\"\r\n\t\t[validationError]=\"ngControl?.control?.errors | dxInputErrorMessage: ngControl?.control\"\r\n\t\tvalidationMessagePosition=\"top\"\r\n\t\t[noDataText]=\"translocoService.translate('messages.noDataToDisplay')\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\r\n (onSelectionChanged)=\"onSelectionChanged.emit($event.selectedItem);setTitle($event.selectedItem)\"\r\n [inputAttr]=\"{ 'title': selectedItemText }\">\r\n\t</dx-select-box>\r\n}\r\n" }]
192
284
  }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.TranslocoService }], propDecorators: { onSelectionChanged: [{
193
285
  type: Output
194
286
  }] } });
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-business-enumPicker.mjs","sources":["../../projects/aril/ui-business/enumPicker/src/enum-picker.component.ts","../../projects/aril/ui-business/enumPicker/src/enum-picker.component.html","../../projects/aril/ui-business/enumPicker/aril-ui-business-enumPicker.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\r\nimport { Component, EventEmitter, Output, effect, input, signal } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { MultiSelectModule } from 'primeng/multiselect';\r\n\r\nimport { TranslocoModule, TranslocoService } from '@ngneat/transloco';\r\nimport { DxSelectBoxModule } from 'devextreme-angular/ui/select-box';\r\nimport { firstValueFrom } from 'rxjs';\r\n\r\nimport DataSource from 'devextreme/data/data_source';\r\nimport ArrayStore from 'devextreme/data/array_store';\r\n\r\nimport { API_CONFIGS } from 'aril/boot/config/api';\r\nimport { Apps } from 'aril/boot/config/apps';\r\nimport {\r\n\tBaseInputComponent,\r\n\tDXInputErrorMessagePipe,\r\n\tInputErrorMessagePipe,\r\n\tValueAccessorDirective\r\n} from 'aril/ui/lib';\r\n\r\nimport { SelectBoxItem, SelectionGroupDTO, SelectionItem, SelectionRequestDTO } from './interface';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'enum-picker[ngModel], enum-picker[formControl], enum-picker[formControlName]',\r\n\ttemplateUrl: './enum-picker.component.html',\r\n\timports: [ReactiveFormsModule, DxSelectBoxModule, DXInputErrorMessagePipe, TranslocoModule, MultiSelectModule, TooltipModule],\r\n\tproviders: [InputErrorMessagePipe],\r\n\thostDirectives: [ValueAccessorDirective]\r\n})\r\nexport class EnumPickerComponent extends BaseInputComponent {\r\n\tselectionItems = signal<SelectBoxItem[] | null>(null);\r\n\tselectBoxDataSource = signal<DataSource | null>(null);\r\n\tprivate originalSelectionItems: SelectionItem[] = [];\r\n\t/**\r\n\t * Single Select States\r\n\t */\r\n\r\n\titemKey = input('key');\r\n\titemText = input('text');\r\n\tgroupName = input('');\r\n\tparentSelectionKey = input(null);\r\n\ttabindex = input<number>(0);\r\n\titems = input<SelectBoxItem[]>();\r\n\tisMultiple = input<boolean>(false);\r\n\t// Cross-validation RemoveItem action ile set edilir; verilen selectionKey'leri item listesinden filtreler.\r\n\texcludedKeys = input<string[]>([]);\r\n\tselectedItemText = '';\r\n\t/** * @description when grouped = true, option item structure { key:string, items:[] } */\r\n\tgrouped = input(false);\r\n\tshowClearButton = input<boolean>(true);\r\n\tplaceholder = input<string>('');\r\n\tsearchExpr = input<string | string[]>('');\r\n\tacceptCustomValue = input<boolean>(false);\r\n\ttextClampCharacters = input<number>(40);\r\n\r\n\t/**\r\n\t * Virtual Scroll States\r\n\t */\r\n\tuseVirtualScroll = input<boolean>(false);\r\n\tvirtualScrollItemSize = input<number>(30);\r\n\tscrollHeight = input<string>('300px');\r\n\r\n\t/**\r\n\t * Multi Select States\r\n\t */\r\n\r\n\tselectedItemsLabel = input<string>('{0} değer seçildi'); // default value -> ({0} items selected\r\n\tappendTo = input<string>('body');\r\n\tstyle = input<object>({});\r\n\tstyleClass = input<string>('');\r\n\ttooltip = input<string>('');\r\n\ttooltipPosition = input<any>('top');\r\n\r\n\t@Output() onSelectionChanged = new EventEmitter<SelectBoxItem>();\r\n\r\n\tconstructor(\r\n\t\tprivate readonly http: HttpClient,\r\n\t\tpublic translocoService: TranslocoService\r\n\t) {\r\n\t\tsuper();\r\n\t\teffect(() => {\r\n\t\t\tif (this.groupName() || this.parentSelectionKey()) this.getSelectionItems();\r\n\t\t});\r\n\r\n\t\t// excludedKeys değişince item listesini yeniden filtrele (originalSelectionItems korunur)\r\n\t\teffect(() => {\r\n\t\t\tthis.excludedKeys();\r\n\t\t\tif (this.originalSelectionItems.length > 0) {\r\n\t\t\t\tthis.updateSelectionItemsText();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis.translocoService.langChanges$.subscribe(() => {\r\n\t\t\tif (this.selectionItems() && (this.selectionItems() as SelectBoxItem[])?.length > 0) {\r\n\t\t\t\tthis.updateSelectionItemsText();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tsetTitle(event?: any) {\r\n\t\tif (event && event[this.itemText()].length > 25) {\r\n\t\t\tthis.selectedItemText = event ? event[this.itemText()] : '';\r\n\t\t}\r\n\t\tthis.onSelectionChanged.emit(event);\r\n\t}\r\n\r\n\tasync getSelectionItems() {\r\n\t\tconst payload: Partial<SelectionRequestDTO> = {\r\n\t\t\tgroupName: this.groupName()\r\n\t\t};\r\n\r\n\t\tif (Array.isArray(this.parentSelectionKey())) {\r\n\t\t\tpayload.parentSelectionKeys = this.parentSelectionKey();\r\n\t\t} else {\r\n\t\t\tpayload.parentSelectionKey = this.parentSelectionKey();\r\n\t\t}\r\n\r\n\t\tconst hostApi = API_CONFIGS.getExternalAppEndpoint(Apps.MNG);\r\n\r\n\t\ttry {\r\n\t\t\tconst selectionGroup = await firstValueFrom(\r\n\t\t\t\tthis.http.post<SelectionGroupDTO>(hostApi + '/selection-group/load', payload)\r\n\t\t\t);\r\n\r\n\t\t\tthis.originalSelectionItems = selectionGroup?.selectionItems || [];\r\n\t\t} catch (error) {\r\n\t\t\tthis.originalSelectionItems = [];\r\n\t\t}\r\n\t\tthis.updateSelectionItemsText();\r\n\t}\r\n\r\n\tprivate updateSelectionItemsText() {\r\n\t\tif (!this.originalSelectionItems || this.originalSelectionItems.length === 0) {\r\n\t\t\tthis.selectionItems.set(null);\r\n\t\t\tthis.selectBoxDataSource.set(null);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst currentLang = this.translocoService.getActiveLang();\r\n\r\n\t\tthis.selectionItems.set(null);\r\n\r\n\t\tconst excluded = new Set(this.excludedKeys() || []);\r\n\t\tconst mappedItems = this.originalSelectionItems\r\n\t\t\t.filter((item: SelectionItem) => !excluded.has(item.selectionKey))\r\n\t\t\t.map((item: SelectionItem) => ({\r\n\t\t\t\tkey: item.selectionKey,\r\n\t\t\t\ttext:\r\n\t\t\t\t\titem?.selectionMultiLanguageDisplays?.[currentLang] ?\r\n\t\t\t\t\t\titem.selectionMultiLanguageDisplays[currentLang]\r\n\t\t\t\t\t:\titem.selectionDisplay,\r\n\t\t\t\tparentSelectionKey: item.parentSelectionKey\r\n\t\t\t}));\r\n\r\n\t\tthis.selectionItems.set(mappedItems);\r\n\t\tthis.rebuildSelectBoxDataSource(mappedItems);\r\n\t\tthis.filterCurrentValueBySelectionItems();\r\n\t}\r\n\r\n\t// Parent enum (multiple) değiştiğinde veya excludedKeys aktifken\r\n\t// form'daki geçersiz key'leri temizler (selectionItems zaten filtrelenmiş haliyle gelir).\r\n\tfilterCurrentValueBySelectionItems(): void {\r\n\t\tconst hasExcluded = (this.excludedKeys() || []).length > 0;\r\n\t\tif (!this.parentSelectionKey() && !hasExcluded) return;\r\n\t\tconst currentValue = this.ngControl.control?.value;\r\n\t\tconst validKeys = new Set(\r\n\t\t\t(this.selectionItems() || []).map((item: any) => item[this.itemKey()])\r\n\t\t);\r\n\r\n\t\tif (this.isMultiple()) {\r\n\t\t\t// Child multi-select: geçersiz key'leri filtrele, geçerlileri bırak\r\n\t\t\tif (!Array.isArray(currentValue) || currentValue.length === 0) return;\r\n\t\t\tconst filtered = (currentValue as string[]).filter((key) => validKeys.has(key));\r\n\t\t\tif (filtered.length !== currentValue.length) {\r\n\t\t\t\tthis.ngControl.control?.setValue(filtered, { emitEvent: true });\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (!currentValue) return;\r\n\t\t\t\r\n\t\t\tif (!validKeys.has(currentValue)) {\r\n\t\t\t\tthis.ngControl.control?.reset(null, { emitEvent: true });\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tonCustomItemCreating(event: any) {\r\n\t\tif (!event.text) {\r\n\t\t\tevent.customItem = null;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst newItem = {\r\n\t\t\t[this.itemKey()]: event.text,\r\n\t\t\t[this.itemText()]: event.text\r\n\t\t};\r\n\t\tconst currentItems = this.selectionItems() || [];\r\n\t\tconst updatedItems = [...currentItems, newItem];\r\n\t\tthis.selectionItems.set(updatedItems);\r\n\t\tthis.rebuildSelectBoxDataSource(updatedItems);\r\n\t\tevent.customItem = newItem;\r\n\t}\r\n\r\n\t\tprivate rebuildSelectBoxDataSource(items: SelectBoxItem[]): void {\r\n\t\tif (!this.useVirtualScroll()) {\r\n\t\t\tthis.selectBoxDataSource.set(null);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.selectBoxDataSource.set(\r\n\t\t\tnew DataSource({\r\n\t\t\t\tstore: new ArrayStore({\r\n\t\t\t\t\tdata: items,\r\n\t\t\t\t\tkey: this.itemKey()\r\n\t\t\t\t}),\r\n\t\t\t\tpaginate: true,\r\n\t\t\t\tpageSize: 50\r\n\t\t\t})\r\n\t\t);\r\n\t}\r\n}\r\n","@if (isMultiple()) {\r\n\t<p-multiSelect\r\n\t\t[options]=\"selectionItems() || items() || []\"\r\n\t\t[optionValue]=\"itemKey()\"\r\n\t\t[optionLabel]=\"itemText()\"\r\n\t\t[defaultLabel]=\"placeholder()\"\r\n\t\t[selectedItemsLabel]=\"selectedItemsLabel()\"\r\n\t\t[style]=\"style()\"\r\n\t\t[styleClass]=\"styleClass()\"\r\n\t\t[tooltip]=\"tooltip()\"\r\n\t\t[tooltipPosition]=\"tooltipPosition()\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\r\n\t\t[maxSelectedLabels]=\"2\"\r\n\t\t[appendTo]=\"appendTo()\"\r\n\t\t[virtualScroll]=\"useVirtualScroll()\"\r\n\t\t[virtualScrollItemSize]=\"virtualScrollItemSize()\"\r\n\t\t[scrollHeight]=\"scrollHeight()\"\r\n\t\t[filter]=\"true\"\r\n\t\t[panelStyle]=\"{ 'max-width': '400px', 'min-width': 'auto' }\">\r\n\t\t<ng-template let-enum pTemplate=\"item\">\r\n\t\t\t<div [pTooltip]=\"enum[itemText()]?.length > textClampCharacters() ? enum[itemText()] : ''\">\r\n\t\t\t\t@if (enum[itemText()]?.length > textClampCharacters()) {\r\n\t\t\t\t\t{{ enum[itemText()].slice(0, textClampCharacters()) }}...\r\n\t\t\t\t} @else {\r\n\t\t\t\t\t{{ enum[itemText()] }}\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t</ng-template>\r\n\t</p-multiSelect>\r\n} @else {\r\n\t<dx-select-box\r\n [dataSource]=\"useVirtualScroll() ? selectBoxDataSource() : (selectionItems() || items() || [])\"\r\n\t\t[valueExpr]=\"itemKey()\"\r\n\t\t[displayExpr]=\"itemText()\"\r\n\t\t[searchEnabled]=\"true\"\r\n\t\t[searchExpr]=\"searchExpr()\"\r\n\t\t[tabIndex]=\"tabindex()\"\r\n\t\t[grouped]=\"grouped()\"\r\n\t\t[placeholder]=\"placeholder()\"\r\n\t\t[showClearButton]=\"showClearButton()\"\r\n\t\t[acceptCustomValue]=\"acceptCustomValue()\"\r\n\t\t(onCustomItemCreating)=\"onCustomItemCreating($event)\"\r\n\t\t[isValid]=\"ngControl?.control?.valid || ngControl?.control?.pristine || ngControl?.control?.disabled || false\"\r\n\t\t[validationError]=\"ngControl?.control?.errors | dxInputErrorMessage: ngControl?.control\"\r\n\t\tvalidationMessagePosition=\"top\"\r\n\t\t[noDataText]=\"translocoService.translate('messages.noDataToDisplay')\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\r\n (onSelectionChanged)=\"onSelectionChanged.emit($event.selectedItem);setTitle($event.selectedItem)\"\r\n [inputAttr]=\"{ 'title': selectedItemText }\">\r\n\t</dx-select-box>\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiCM,MAAO,mBAAoB,SAAQ,kBAAkB,CAAA;IA8C1D,WAAA,CACkB,IAAgB,EAC1B,gBAAkC,EAAA;AAEzC,QAAA,KAAK,EAAE;QAHU,IAAA,CAAA,IAAI,GAAJ,IAAI;QACd,IAAA,CAAA,gBAAgB,GAAhB,gBAAgB;AA/CxB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAyB,IAAI,CAAC;AACrD,QAAA,IAAA,CAAA,mBAAmB,GAAG,MAAM,CAAoB,IAAI,CAAC;QAC7C,IAAA,CAAA,sBAAsB,GAAoB,EAAE;AACpD;;AAEG;AAEH,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC;AACtB,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC;AACxB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CA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AAA,OAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,eAAA,EAAA,mBAAA,EAAA,eAAA,EAAA,QAAA,EAAA,WAAA,EAAA,WAAA,EAAA,MAAA,EAAA,aAAA,EAAA,cAAA,EAAA,UAAA,EAAA,YAAA,EAAA,cAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIhH,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAR/B,SAAS;iCACG,IAAI,EAAA,QAAA,EACN,8EAA8E,EAAA,OAAA,EAE/E,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,eAAe,EAAE,iBAAiB,EAAE,aAAa,CAAC,EAAA,SAAA,EAClH,CAAC,qBAAqB,CAAC,EAAA,cAAA,EAClB,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,82EAAA,EAAA;8GA8C9B,kBAAkB,EAAA,CAAA;sBAA3B;;;AE7EF;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-business-enumPicker.mjs","sources":["../../projects/aril/ui-business/enumPicker/src/enum-picker.component.ts","../../projects/aril/ui-business/enumPicker/src/enum-picker.component.html","../../projects/aril/ui-business/enumPicker/aril-ui-business-enumPicker.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\r\nimport { Component, EventEmitter, Output, effect, input, signal } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { MultiSelectModule } from 'primeng/multiselect';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\nimport { TranslocoModule, TranslocoService } from '@ngneat/transloco';\r\nimport { DxSelectBoxModule } from 'devextreme-angular/ui/select-box';\r\nimport ArrayStore from 'devextreme/data/array_store';\r\nimport DataSource from 'devextreme/data/data_source';\r\nimport { firstValueFrom } from 'rxjs';\r\n\r\nimport { API_CONFIGS } from 'aril/boot/config/api';\r\nimport { Apps } from 'aril/boot/config/apps';\r\nimport {\r\n\tBaseInputComponent,\r\n\tDXInputErrorMessagePipe,\r\n\tInputErrorMessagePipe,\r\n\tValueAccessorDirective\r\n} from 'aril/ui/lib';\r\n\r\nimport {\r\n\tGroupedSelectionItem,\r\n\tSelectBoxItem,\r\n\tSelectionGroupDTO,\r\n\tSelectionItem,\r\n\tSelectionRequestDTO\r\n} from './interface';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'enum-picker[ngModel], enum-picker[formControl], enum-picker[formControlName]',\r\n\ttemplateUrl: './enum-picker.component.html',\r\n\timports: [\r\n\t\tReactiveFormsModule,\r\n\t\tDxSelectBoxModule,\r\n\t\tDXInputErrorMessagePipe,\r\n\t\tTranslocoModule,\r\n\t\tMultiSelectModule,\r\n\t\tTooltipModule\r\n\t],\r\n\tproviders: [InputErrorMessagePipe],\r\n\thostDirectives: [ValueAccessorDirective]\r\n})\r\nexport class EnumPickerComponent extends BaseInputComponent {\r\n\tselectionItems = signal<SelectBoxItem[] | null>(null);\r\n\tselectBoxDataSource = signal<DataSource | null>(null);\r\n\tgroupedSelectionItems = signal<GroupedSelectionItem[] | null>(null);\r\n\tisGrouped = signal<boolean>(false);\r\n\tprivate originalSelectionItems: SelectionItem[] = [];\r\n\tprivate rawParentItems: SelectionItem[] = [];\r\n\tprivate rawGroups: { parentKey: string; items: SelectionItem[] }[] = [];\r\n\t/**\r\n\t * Single Select States\r\n\t */\r\n\r\n\titemKey = input('key');\r\n\titemText = input('text');\r\n\tgroupName = input('');\r\n\tparentSelectionKey = input<string | null>(null);\r\n\tparentGroupName = input<string>('');\r\n\ttabindex = input<number>(0);\r\n\titems = input<SelectBoxItem[]>();\r\n\tisMultiple = input<boolean>(false);\r\n\t// Cross-validation RemoveItem action ile set edilir; verilen selectionKey'leri item listesinden filtreler.\r\n\texcludedKeys = input<string[]>([]);\r\n\tselectedItemText = '';\r\n\t/** * @description when grouped = true, option item structure { key:string, items:[] } */\r\n\tgrouped = input(false);\r\n\tshowClearButton = input<boolean>(true);\r\n\tplaceholder = input<string>('');\r\n\tsearchExpr = input<string | string[]>('');\r\n\tacceptCustomValue = input<boolean>(false);\r\n\ttextClampCharacters = input<number>(40);\r\n\r\n\t/**\r\n\t * Virtual Scroll States\r\n\t */\r\n\tuseVirtualScroll = input<boolean>(false);\r\n\tvirtualScrollItemSize = input<number>(30);\r\n\tscrollHeight = input<string>('300px');\r\n\r\n\t/**\r\n\t * Multi Select States\r\n\t */\r\n\r\n\tselectedItemsLabel = input<string>('{0} değer seçildi'); // default value -> ({0} items selected\r\n\tappendTo = input<string>('body');\r\n\tstyle = input<object>({});\r\n\tstyleClass = input<string>('');\r\n\ttooltip = input<string>('');\r\n\ttooltipPosition = input<any>('top');\r\n\r\n\t@Output() onSelectionChanged = new EventEmitter<SelectBoxItem>();\r\n\r\n\tconstructor(\r\n\t\tprivate readonly http: HttpClient,\r\n\t\tpublic translocoService: TranslocoService\r\n\t) {\r\n\t\tsuper();\r\n\t\teffect(() => {\r\n\t\t\tconst psk = this.parentSelectionKey() as string[] | string | null;\r\n\t\t\tif (this.groupName() || psk) {\r\n\t\t\t\tif (this.isMultiple() && Array.isArray(psk) && psk.length >= 2) {\r\n\t\t\t\t\tthis.getGroupedSelectionItems(psk);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.getSelectionItems();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// excludedKeys değişince item listesini yeniden filtrele (cache korunur, refetch yok)\r\n\t\t// allowSignalWrites: excludedKeys runtime'da (item'lar yüklendikten sonra) değişince\r\n\t\t// buildGroupedFromRaw/updateSelectionItemsText senkron signal yazar; bu effect içinde izinli olmalı (NG0600).\r\n\t\teffect(\r\n\t\t\t() => {\r\n\t\t\t\tthis.excludedKeys();\r\n\t\t\t\tif (this.rawGroups.length > 0) {\r\n\t\t\t\t\tthis.buildGroupedFromRaw();\r\n\t\t\t\t} else if (this.originalSelectionItems.length > 0) {\r\n\t\t\t\t\tthis.updateSelectionItemsText();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{ allowSignalWrites: true }\r\n\t\t);\r\n\r\n\t\tthis.translocoService.langChanges$.subscribe(() => {\r\n\t\t\tif (this.rawGroups.length > 0) {\r\n\t\t\t\tthis.buildGroupedFromRaw();\r\n\t\t\t} else if (this.selectionItems() && (this.selectionItems() as SelectBoxItem[])?.length > 0) {\r\n\t\t\t\tthis.updateSelectionItemsText();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tsetTitle(event?: any) {\r\n\t\tif (event && event[this.itemText()].length > 25) {\r\n\t\t\tthis.selectedItemText = event ? event[this.itemText()] : '';\r\n\t\t}\r\n\t\tthis.onSelectionChanged.emit(event);\r\n\t}\r\n\r\n\tasync getSelectionItems() {\r\n\t\tconst payload: Partial<SelectionRequestDTO> = {\r\n\t\t\tgroupName: this.groupName()\r\n\t\t};\r\n\r\n\t\tconst psk = this.parentSelectionKey() as string | string[] | null;\r\n\t\tif (Array.isArray(psk)) {\r\n\t\t\tpayload.parentSelectionKeys = psk;\r\n\t\t} else {\r\n\t\t\tpayload.parentSelectionKey = psk;\r\n\t\t}\r\n\r\n\t\tconst hostApi = API_CONFIGS.getExternalAppEndpoint(Apps.MNG);\r\n\r\n\t\ttry {\r\n\t\t\tconst selectionGroup = await firstValueFrom(\r\n\t\t\t\tthis.http.post<SelectionGroupDTO>(hostApi + '/selection-group/load', payload)\r\n\t\t\t);\r\n\r\n\t\t\tthis.originalSelectionItems = selectionGroup?.selectionItems || [];\r\n\t\t} catch (error) {\r\n\t\t\tthis.originalSelectionItems = [];\r\n\t\t}\r\n\t\t// Flat moda dön (await sonrası — effect context dışı olduğu için signal yazımı güvenli)\r\n\t\tthis.rawGroups = [];\r\n\t\tthis.rawParentItems = [];\r\n\t\tthis.groupedSelectionItems.set(null);\r\n\t\tthis.isGrouped.set(false);\r\n\t\tthis.updateSelectionItemsText();\r\n\t}\r\n\r\n\t// Parent (multiple) ≥2 seçiliyken her parent için ayrı istek atılır (load-all batch)\r\n\t// ve child item'lar parent başına gruplanır. Grup başlığı parent'ın lokalize display'idir.\r\n\tasync getGroupedSelectionItems(parentKeys: string[]) {\r\n\t\tconst childGroupName = this.groupName();\r\n\t\tconst parentGroupName = this.parentGroupName();\r\n\t\tconst hasParentGroup = !!parentGroupName;\r\n\r\n\t\tconst requests: Partial<SelectionRequestDTO>[] = [];\r\n\t\tif (hasParentGroup) {\r\n\t\t\trequests.push({ groupName: parentGroupName });\r\n\t\t}\r\n\t\tparentKeys.forEach((key) => {\r\n\t\t\trequests.push({ groupName: childGroupName, parentSelectionKey: key });\r\n\t\t});\r\n\r\n\t\tconst hostApi = API_CONFIGS.getExternalAppEndpoint(Apps.MNG);\r\n\r\n\t\tlet groups: SelectionGroupDTO[] = [];\r\n\t\ttry {\r\n\t\t\tgroups =\r\n\t\t\t\t(await firstValueFrom(this.http.post<SelectionGroupDTO[]>(hostApi + '/selection-group/load-all', requests))) ||\r\n\t\t\t\t[];\r\n\t\t} catch (error) {\r\n\t\t\tgroups = [];\r\n\t\t}\r\n\r\n\t\tthis.rawParentItems = hasParentGroup ? groups[0]?.selectionItems || [] : [];\r\n\t\tconst childGroups = hasParentGroup ? groups.slice(1) : groups;\r\n\t\tthis.rawGroups = parentKeys.map((parentKey, index) => ({\r\n\t\t\tparentKey,\r\n\t\t\titems: childGroups[index]?.selectionItems || []\r\n\t\t}));\r\n\r\n\t\tthis.buildGroupedFromRaw();\r\n\t}\r\n\r\n\tprivate buildGroupedFromRaw() {\r\n\t\tconst excluded = new Set(this.excludedKeys() || []);\r\n\t\tconst parentDisplayMap = new Map<string, string>();\r\n\t\tthis.rawParentItems.forEach((item: SelectionItem) => {\r\n\t\t\tparentDisplayMap.set(item.selectionKey, this.resolveDisplay(item));\r\n\t\t});\r\n\r\n\t\tconst built: GroupedSelectionItem[] = this.rawGroups.map((group) => ({\r\n\t\t\tlabel: parentDisplayMap.get(group.parentKey) ?? group.parentKey,\r\n\t\t\titems: group.items\r\n\t\t\t\t.filter((item: SelectionItem) => !excluded.has(item.selectionKey))\r\n\t\t\t\t.map((item: SelectionItem) => ({\r\n\t\t\t\t\tkey: item.selectionKey,\r\n\t\t\t\t\ttext: this.resolveDisplay(item)\r\n\t\t\t\t}))\r\n\t\t}));\r\n\r\n\t\tthis.selectionItems.set(null);\r\n\t\tthis.selectBoxDataSource.set(null);\r\n\t\tthis.groupedSelectionItems.set(built);\r\n\t\tthis.isGrouped.set(true);\r\n\t\tthis.filterCurrentValueBySelectionItems();\r\n\t}\r\n\r\n\tprivate resolveDisplay(item: SelectionItem): string {\r\n\t\tconst lang = this.translocoService.getActiveLang();\r\n\t\treturn item?.selectionMultiLanguageDisplays?.[lang] || item.selectionDisplay;\r\n\t}\r\n\r\n\tprivate getVisibleItems(): SelectBoxItem[] {\r\n\t\tif (this.isGrouped()) {\r\n\t\t\treturn (this.groupedSelectionItems() || []).flatMap((group) => group.items);\r\n\t\t}\r\n\t\treturn this.selectionItems() || [];\r\n\t}\r\n\r\n\tprivate updateSelectionItemsText() {\r\n\t\tif (!this.originalSelectionItems || this.originalSelectionItems.length === 0) {\r\n\t\t\tthis.selectionItems.set(null);\r\n\t\t\tthis.selectBoxDataSource.set(null);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.selectionItems.set(null);\r\n\r\n\t\tconst excluded = new Set(this.excludedKeys() || []);\r\n\t\tconst mappedItems = this.originalSelectionItems\r\n\t\t\t.filter((item: SelectionItem) => !excluded.has(item.selectionKey))\r\n\t\t\t.map((item: SelectionItem) => ({\r\n\t\t\t\tkey: item.selectionKey,\r\n\t\t\t\ttext: this.resolveDisplay(item),\r\n\t\t\t\tparentSelectionKey: item.parentSelectionKey\r\n\t\t\t}));\r\n\r\n\t\tthis.selectionItems.set(mappedItems);\r\n\t\tthis.rebuildSelectBoxDataSource(mappedItems);\r\n\t\tthis.filterCurrentValueBySelectionItems();\r\n\t}\r\n\r\n\t// Parent enum (multiple) değiştiğinde veya excludedKeys aktifken\r\n\t// form'daki geçersiz key'leri temizler (selectionItems zaten filtrelenmiş haliyle gelir).\r\n\tfilterCurrentValueBySelectionItems(): void {\r\n\t\tconst hasExcluded = (this.excludedKeys() || []).length > 0;\r\n\t\tif (!this.parentSelectionKey() && !hasExcluded) return;\r\n\t\tconst currentValue = this.ngControl.control?.value;\r\n\t\tconst validKeys = new Set(this.getVisibleItems().map((item: any) => item[this.itemKey()]));\r\n\r\n\t\tif (this.isMultiple()) {\r\n\t\t\t// Child multi-select: geçersiz key'leri filtrele, geçerlileri bırak\r\n\t\t\tif (!Array.isArray(currentValue) || currentValue.length === 0) return;\r\n\t\t\tconst filtered = (currentValue as string[]).filter((key) => validKeys.has(key));\r\n\t\t\tif (filtered.length !== currentValue.length) {\r\n\t\t\t\tthis.ngControl.control?.setValue(filtered, { emitEvent: true });\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (!currentValue) return;\r\n\r\n\t\t\tif (!validKeys.has(currentValue)) {\r\n\t\t\t\tthis.ngControl.control?.reset(null, { emitEvent: true });\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tonCustomItemCreating(event: any) {\r\n\t\tif (!event.text) {\r\n\t\t\tevent.customItem = null;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst newItem = {\r\n\t\t\t[this.itemKey()]: event.text,\r\n\t\t\t[this.itemText()]: event.text\r\n\t\t};\r\n\t\tconst currentItems = this.selectionItems() || [];\r\n\t\tconst updatedItems = [...currentItems, newItem];\r\n\t\tthis.selectionItems.set(updatedItems);\r\n\t\tthis.rebuildSelectBoxDataSource(updatedItems);\r\n\t\tevent.customItem = newItem;\r\n\t}\r\n\r\n\tprivate rebuildSelectBoxDataSource(items: SelectBoxItem[]): void {\r\n\t\tif (!this.useVirtualScroll()) {\r\n\t\t\tthis.selectBoxDataSource.set(null);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.selectBoxDataSource.set(\r\n\t\t\tnew DataSource({\r\n\t\t\t\tstore: new ArrayStore({\r\n\t\t\t\t\tdata: items,\r\n\t\t\t\t\tkey: this.itemKey()\r\n\t\t\t\t}),\r\n\t\t\t\tpaginate: true,\r\n\t\t\t\tpageSize: 50\r\n\t\t\t})\r\n\t\t);\r\n\t}\r\n}\r\n","@if (isMultiple()) {\r\n\t<p-multiSelect\r\n\t\t[options]=\"isGrouped() ? (groupedSelectionItems() || []) : (selectionItems() || items() || [])\"\r\n\t\t[group]=\"isGrouped()\"\r\n\t\t[optionValue]=\"itemKey()\"\r\n\t\t[optionLabel]=\"itemText()\"\r\n\t\t[defaultLabel]=\"placeholder()\"\r\n\t\t[selectedItemsLabel]=\"selectedItemsLabel()\"\r\n\t\t[style]=\"style()\"\r\n\t\t[styleClass]=\"styleClass()\"\r\n\t\t[tooltip]=\"tooltip()\"\r\n\t\t[tooltipPosition]=\"tooltipPosition()\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\r\n\t\t[maxSelectedLabels]=\"2\"\r\n\t\t[appendTo]=\"appendTo()\"\r\n\t\t[virtualScroll]=\"useVirtualScroll()\"\r\n\t\t[virtualScrollItemSize]=\"virtualScrollItemSize()\"\r\n\t\t[scrollHeight]=\"scrollHeight()\"\r\n\t\t[filter]=\"true\"\r\n\t\t[panelStyle]=\"{ 'max-width': '400px', 'min-width': 'auto' }\">\r\n\t\t@if (isGrouped()) {\r\n\t\t\t<ng-template let-group pTemplate=\"group\">\r\n\t\t\t\t<span>{{ group.label }}</span>\r\n\t\t\t</ng-template>\r\n\t\t}\r\n\t\t<ng-template let-enum pTemplate=\"item\">\r\n\t\t\t<div [pTooltip]=\"enum[itemText()]?.length > textClampCharacters() ? enum[itemText()] : ''\">\r\n\t\t\t\t@if (enum[itemText()]?.length > textClampCharacters()) {\r\n\t\t\t\t\t{{ enum[itemText()].slice(0, textClampCharacters()) }}...\r\n\t\t\t\t} @else {\r\n\t\t\t\t\t{{ enum[itemText()] }}\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t</ng-template>\r\n\t</p-multiSelect>\r\n} @else {\r\n\t<dx-select-box\r\n [dataSource]=\"useVirtualScroll() ? selectBoxDataSource() : (selectionItems() || items() || [])\"\r\n\t\t[valueExpr]=\"itemKey()\"\r\n\t\t[displayExpr]=\"itemText()\"\r\n\t\t[searchEnabled]=\"true\"\r\n\t\t[searchExpr]=\"searchExpr()\"\r\n\t\t[tabIndex]=\"tabindex()\"\r\n\t\t[grouped]=\"grouped()\"\r\n\t\t[placeholder]=\"placeholder()\"\r\n\t\t[showClearButton]=\"showClearButton()\"\r\n\t\t[acceptCustomValue]=\"acceptCustomValue()\"\r\n\t\t(onCustomItemCreating)=\"onCustomItemCreating($event)\"\r\n\t\t[isValid]=\"ngControl?.control?.valid || ngControl?.control?.pristine || ngControl?.control?.disabled || false\"\r\n\t\t[validationError]=\"ngControl?.control?.errors | dxInputErrorMessage: ngControl?.control\"\r\n\t\tvalidationMessagePosition=\"top\"\r\n\t\t[noDataText]=\"translocoService.translate('messages.noDataToDisplay')\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\r\n (onSelectionChanged)=\"onSelectionChanged.emit($event.selectedItem);setTitle($event.selectedItem)\"\r\n [inputAttr]=\"{ 'title': selectedItemText }\">\r\n\t</dx-select-box>\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA6CM,MAAO,mBAAoB,SAAQ,kBAAkB,CAAA;IAmD1D,WACkB,CAAA,IAAgB,EAC1B,gBAAkC,EAAA;AAEzC,QAAA,KAAK,EAAE,CAAC;QAHS,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;QAC1B,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;AApD1C,QAAA,IAAA,CAAA,c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A,cAAA,EAAA,UAAA,EAAA,YAAA,EAAA,cAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAKF,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAf/B,SAAS;iCACG,IAAI,EAAA,QAAA,EACN,8EAA8E,EAE/E,OAAA,EAAA;wBACR,mBAAmB;wBACnB,iBAAiB;wBACjB,uBAAuB;wBACvB,eAAe;wBACf,iBAAiB;wBACjB,aAAa;AACb,qBAAA,EAAA,SAAA,EACU,CAAC,qBAAqB,CAAC,EAClB,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,0lFAAA,EAAA,CAAA;8GAmD9B,kBAAkB,EAAA,CAAA;sBAA3B,MAAM;;;AE9FR;;AAEG;;;;"}
@@ -69,8 +69,8 @@ class ArilImageViewerComponent {
69
69
  }
70
70
  });
71
71
  }
72
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ArilImageViewerComponent, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Component }); }
73
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: ArilImageViewerComponent, isStandalone: true, selector: "aril-image-viewer", inputs: { imageUrl: { classPropertyName: "imageUrl", publicName: "imageUrl", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, borderRadius: { classPropertyName: "borderRadius", publicName: "borderRadius", isSignal: true, isRequired: false, transformFunction: null }, objectFit: { classPropertyName: "objectFit", publicName: "objectFit", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
72
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ArilImageViewerComponent, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Component }); }
73
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: ArilImageViewerComponent, isStandalone: true, selector: "aril-image-viewer", inputs: { imageUrl: { classPropertyName: "imageUrl", publicName: "imageUrl", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, borderRadius: { classPropertyName: "borderRadius", publicName: "borderRadius", isSignal: true, isRequired: false, transformFunction: null }, objectFit: { classPropertyName: "objectFit", publicName: "objectFit", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
74
74
  @if (imageDataUrl()) {
75
75
  <img
76
76
  [src]="imageDataUrl()"
@@ -86,7 +86,7 @@ class ArilImageViewerComponent {
86
86
  }
87
87
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
88
88
  }
89
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ArilImageViewerComponent, decorators: [{
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ArilImageViewerComponent, decorators: [{
90
90
  type: Component,
91
91
  args: [{
92
92
  selector: 'aril-image-viewer',
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-business-image-viewer.mjs","sources":["../../projects/aril/ui-business/image-viewer/src/aril-image-viewer.component.ts","../../projects/aril/ui-business/image-viewer/aril-ui-business-image-viewer.ts"],"sourcesContent":["import { Component, input, signal, effect } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { CommonModule } from '@angular/common';\r\nimport { API_CONFIGS } from 'aril/boot/config/api';\r\nimport { Apps } from 'aril/boot/config/apps';\r\n\r\n@Component({\r\n\tselector: 'aril-image-viewer',\r\n\tstandalone: true,\r\n\timports: [CommonModule],\r\n\ttemplate: `\r\n\t\t@if (imageDataUrl()) {\r\n\t\t\t<img \r\n\t\t\t\t[src]=\"imageDataUrl()\" \r\n\t\t\t\t[alt]=\"alt()\" \r\n\t\t\t\t[class]=\"styleClass()\" \r\n\t\t\t\t[ngStyle]=\"computedStyle()\" />\r\n\t\t} @else if (isLoading()) {\r\n\t\t\t<div [class]=\"styleClass()\" [ngStyle]=\"computedStyle()\">\r\n\t\t\t\t<ng-content select=\"[loading]\"></ng-content>\r\n\t\t\t</div>\r\n\t\t} @else {\r\n\t\t\t<ng-content></ng-content>\r\n\t\t}\r\n\t`\r\n})\r\nexport class ArilImageViewerComponent {\r\n\timageUrl = input<string | null>(null);\r\n\talt = input<string>('image');\r\n\tstyleClass = input<string>('');\r\n\twidth = input<string>('');\r\n\theight = input<string>('');\r\n\tborderRadius = input<string>('');\r\n\tobjectFit = input<'contain' | 'cover' | 'fill' | 'none' | 'scale-down'>('cover');\r\n\tcustomStyle = input<Record<string, string>>({});\r\n\r\n\timageDataUrl = signal<string | null>(null);\r\n\tisLoading = signal<boolean>(false);\r\n\r\n\tcomputedStyle = signal<Record<string, string>>({});\r\n\r\n\tconstructor(private readonly http: HttpClient) {\r\n\t\teffect(() => {\r\n\t\t\tconst url = this.imageUrl();\r\n\t\t\tif (url) {\r\n\t\t\t\tthis.loadImage(url);\r\n\t\t\t} else {\r\n\t\t\t\tthis.imageDataUrl.set(null);\r\n\t\t\t}\r\n\t\t},{\r\n allowSignalWrites: true\r\n });\r\n\r\n\t\teffect(() => {\r\n\t\t\tconst styles: Record<string, string> = { ...this.customStyle() };\r\n\t\t\t\r\n\t\t\tif (this.width()) styles['width'] = this.width();\r\n\t\t\tif (this.height()) styles['height'] = this.height();\r\n\t\t\tif (this.borderRadius()) styles['border-radius'] = this.borderRadius();\r\n\t\t\tif (this.objectFit()) styles['object-fit'] = this.objectFit();\r\n\t\t\t\r\n\t\t\tthis.computedStyle.set(styles);\r\n\t\t}, {\r\n\t\t\tallowSignalWrites: true\r\n\t\t});\r\n\t}\r\n\r\n\tprivate loadImage(url: string) {\r\n\t\tthis.isLoading.set(true);\r\n\t\tthis.imageDataUrl.set(null);\r\n\r\n\t\tthis.http\r\n\t\t\t.get(`${API_CONFIGS.getExternalAppEndpoint(Apps.MW)}/buckets/view-object`, {\r\n\t\t\t\tparams: { url },\r\n\t\t\t\tresponseType: 'blob'\r\n\t\t\t})\r\n\t\t\t.subscribe({\r\n\t\t\t\tnext: (blob) => {\r\n\t\t\t\t\tconst reader = new FileReader();\r\n\t\t\t\t\treader.onloadend = () => {\r\n\t\t\t\t\t\tthis.imageDataUrl.set(reader.result as string);\r\n\t\t\t\t\t\tthis.isLoading.set(false);\r\n\t\t\t\t\t};\r\n\t\t\t\t\treader.readAsDataURL(blob);\r\n\t\t\t\t},\r\n\t\t\t\terror: () => {\r\n\t\t\t\t\tthis.imageDataUrl.set(null);\r\n\t\t\t\t\tthis.isLoading.set(false);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MA0Ba,wBAAwB,CAAA;AAepC,IAAA,WAAA,CAA6B,IAAgB,EAAA;QAAhB,IAAA,CAAA,IAAI,GAAJ,IAAI;AAdjC,QA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AA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAhB1B,CAAA;;;;;;;;;;;;;;AAcT,CAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAfS,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAiBV,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBApBpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;AAcT,CAAA;AACD,iBAAA;;;ACzBD;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-business-image-viewer.mjs","sources":["../../projects/aril/ui-business/image-viewer/src/aril-image-viewer.component.ts","../../projects/aril/ui-business/image-viewer/aril-ui-business-image-viewer.ts"],"sourcesContent":["import { Component, input, signal, effect } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { CommonModule } from '@angular/common';\r\nimport { API_CONFIGS } from 'aril/boot/config/api';\r\nimport { Apps } from 'aril/boot/config/apps';\r\n\r\n@Component({\r\n\tselector: 'aril-image-viewer',\r\n\tstandalone: true,\r\n\timports: [CommonModule],\r\n\ttemplate: `\r\n\t\t@if (imageDataUrl()) {\r\n\t\t\t<img \r\n\t\t\t\t[src]=\"imageDataUrl()\" \r\n\t\t\t\t[alt]=\"alt()\" \r\n\t\t\t\t[class]=\"styleClass()\" \r\n\t\t\t\t[ngStyle]=\"computedStyle()\" />\r\n\t\t} @else if (isLoading()) {\r\n\t\t\t<div [class]=\"styleClass()\" [ngStyle]=\"computedStyle()\">\r\n\t\t\t\t<ng-content select=\"[loading]\"></ng-content>\r\n\t\t\t</div>\r\n\t\t} @else {\r\n\t\t\t<ng-content></ng-content>\r\n\t\t}\r\n\t`\r\n})\r\nexport class ArilImageViewerComponent {\r\n\timageUrl = input<string | null>(null);\r\n\talt = input<string>('image');\r\n\tstyleClass = input<string>('');\r\n\twidth = input<string>('');\r\n\theight = input<string>('');\r\n\tborderRadius = input<string>('');\r\n\tobjectFit = input<'contain' | 'cover' | 'fill' | 'none' | 'scale-down'>('cover');\r\n\tcustomStyle = input<Record<string, string>>({});\r\n\r\n\timageDataUrl = signal<string | null>(null);\r\n\tisLoading = signal<boolean>(false);\r\n\r\n\tcomputedStyle = signal<Record<string, string>>({});\r\n\r\n\tconstructor(private readonly http: HttpClient) {\r\n\t\teffect(() => {\r\n\t\t\tconst url = this.imageUrl();\r\n\t\t\tif (url) {\r\n\t\t\t\tthis.loadImage(url);\r\n\t\t\t} else {\r\n\t\t\t\tthis.imageDataUrl.set(null);\r\n\t\t\t}\r\n\t\t},{\r\n allowSignalWrites: true\r\n });\r\n\r\n\t\teffect(() => {\r\n\t\t\tconst styles: Record<string, string> = { ...this.customStyle() };\r\n\t\t\t\r\n\t\t\tif (this.width()) styles['width'] = this.width();\r\n\t\t\tif (this.height()) styles['height'] = this.height();\r\n\t\t\tif (this.borderRadius()) styles['border-radius'] = this.borderRadius();\r\n\t\t\tif (this.objectFit()) styles['object-fit'] = this.objectFit();\r\n\t\t\t\r\n\t\t\tthis.computedStyle.set(styles);\r\n\t\t}, {\r\n\t\t\tallowSignalWrites: true\r\n\t\t});\r\n\t}\r\n\r\n\tprivate loadImage(url: string) {\r\n\t\tthis.isLoading.set(true);\r\n\t\tthis.imageDataUrl.set(null);\r\n\r\n\t\tthis.http\r\n\t\t\t.get(`${API_CONFIGS.getExternalAppEndpoint(Apps.MW)}/buckets/view-object`, {\r\n\t\t\t\tparams: { url },\r\n\t\t\t\tresponseType: 'blob'\r\n\t\t\t})\r\n\t\t\t.subscribe({\r\n\t\t\t\tnext: (blob) => {\r\n\t\t\t\t\tconst reader = new FileReader();\r\n\t\t\t\t\treader.onloadend = () => {\r\n\t\t\t\t\t\tthis.imageDataUrl.set(reader.result as string);\r\n\t\t\t\t\t\tthis.isLoading.set(false);\r\n\t\t\t\t\t};\r\n\t\t\t\t\treader.readAsDataURL(blob);\r\n\t\t\t\t},\r\n\t\t\t\terror: () => {\r\n\t\t\t\t\tthis.imageDataUrl.set(null);\r\n\t\t\t\t\tthis.isLoading.set(false);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MA0Ba,wBAAwB,CAAA;AAepC,IAAA,WAAA,CAA6B,IAAgB,EAAA;QAAhB,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;AAd7C,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAgB,IAAI,CAAC,CAAC;AACtC,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK,CAAS,OAAO,CAAC,CAAC;AAC7B,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAC/B,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAC1B,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AA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,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;AAcT,CAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAfS,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAiBV,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBApBpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;AAcT,CAAA,CAAA;AACD,iBAAA,CAAA;;;ACzBD;;AAEG;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { SlicePipe } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { input, EventEmitter, Output, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { input, EventEmitter, Component, ChangeDetectionStrategy, Output } from '@angular/core';
4
4
  import * as i1 from 'primeng/overlaypanel';
5
5
  import { OverlayPanelModule } from 'primeng/overlaypanel';
6
6
  import { RefValueComponent } from 'aril/ui-business/ref-value';
@@ -12,10 +12,10 @@ class MultipleRefValueComponent {
12
12
  this.maxBadgeCount = input(3);
13
13
  this.clickEvent = new EventEmitter();
14
14
  }
15
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MultipleRefValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: MultipleRefValueComponent, isStandalone: true, selector: "aril-multiple-ref-value", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: true, transformFunction: null }, detailPageUrl: { classPropertyName: "detailPageUrl", publicName: "detailPageUrl", isSignal: true, isRequired: false, transformFunction: null }, maxBadgeCount: { classPropertyName: "maxBadgeCount", publicName: "maxBadgeCount", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clickEvent: "clickEvent" }, ngImport: i0, template: "<div class=\"flex align-items-center gap-1\">\r\n\t@for (item of model() | slice: 0 : maxBadgeCount(); track item) {\r\n\t\t<aril-ref-value\r\n\t\t\tclass=\"cursor-pointer\"\r\n\t\t\t[assetId]=\"item.value\"\r\n\t\t\t[valueDesc]=\"item.valueDesc\"\r\n\t\t\t[detailPageUrl]=\"detailPageUrl()\"\r\n\t\t\t(clickEvent)=\"clickEvent.emit($event)\" />\r\n\t}\r\n\t@if (model().length > maxBadgeCount()) {\r\n\t\t<i class=\"pi pi-ellipsis-v cursor-pointer\" (click)=\"op.toggle($event)\"></i>\r\n\r\n\t\t<p-overlayPanel #op class=\"shadow-4\" appendTo=\"body\">\r\n\t\t\t<div class=\"flex flex-column gap-2 max-w-30rem max-h-20rem pr-3 overflow-y-auto\">\r\n\t\t\t\t@for (item of model() | slice: maxBadgeCount(); track item) {\r\n\t\t\t\t\t<aril-ref-value\r\n\t\t\t\t\t\tclass=\"cursor-pointer\"\r\n\t\t\t\t\t\t[assetId]=\"item.value\"\r\n\t\t\t\t\t\t[valueDesc]=\"item.valueDesc\"\r\n\t\t\t\t\t\t[detailPageUrl]=\"detailPageUrl()\"\r\n\t\t\t\t\t\t(clickEvent)=\"clickEvent.emit($event)\" />\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t</p-overlayPanel>\r\n\t}\r\n</div>\r\n", dependencies: [{ kind: "component", type: RefValueComponent, selector: "aril-ref-value", inputs: ["overlayPanelShow", "assetId", "valueDesc", "detailPageUrl", "target"], outputs: ["clickEvent"] }, { kind: "pipe", type: SlicePipe, name: "slice" }, { kind: "ngmodule", type: OverlayPanelModule }, { kind: "component", type: i1.OverlayPanel, selector: "p-overlayPanel", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "showCloseIcon", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
15
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: MultipleRefValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: MultipleRefValueComponent, isStandalone: true, selector: "aril-multiple-ref-value", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: true, transformFunction: null }, detailPageUrl: { classPropertyName: "detailPageUrl", publicName: "detailPageUrl", isSignal: true, isRequired: false, transformFunction: null }, maxBadgeCount: { classPropertyName: "maxBadgeCount", publicName: "maxBadgeCount", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clickEvent: "clickEvent" }, ngImport: i0, template: "<div class=\"flex align-items-center gap-1\">\r\n\t@for (item of model() | slice: 0 : maxBadgeCount(); track item) {\r\n\t\t<aril-ref-value\r\n\t\t\tclass=\"cursor-pointer\"\r\n\t\t\t[assetId]=\"item.value\"\r\n\t\t\t[valueDesc]=\"item.valueDesc\"\r\n\t\t\t[detailPageUrl]=\"detailPageUrl()\"\r\n\t\t\t(clickEvent)=\"clickEvent.emit($event)\" />\r\n\t}\r\n\t@if (model().length > maxBadgeCount()) {\r\n\t\t<i class=\"pi pi-ellipsis-v cursor-pointer\" (click)=\"op.toggle($event)\"></i>\r\n\r\n\t\t<p-overlayPanel #op class=\"shadow-4\" appendTo=\"body\">\r\n\t\t\t<div class=\"flex flex-column gap-2 max-w-30rem max-h-20rem pr-3 overflow-y-auto\">\r\n\t\t\t\t@for (item of model() | slice: maxBadgeCount(); track item) {\r\n\t\t\t\t\t<aril-ref-value\r\n\t\t\t\t\t\tclass=\"cursor-pointer\"\r\n\t\t\t\t\t\t[assetId]=\"item.value\"\r\n\t\t\t\t\t\t[valueDesc]=\"item.valueDesc\"\r\n\t\t\t\t\t\t[detailPageUrl]=\"detailPageUrl()\"\r\n\t\t\t\t\t\t(clickEvent)=\"clickEvent.emit($event)\" />\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t</p-overlayPanel>\r\n\t}\r\n</div>\r\n", dependencies: [{ kind: "component", type: RefValueComponent, selector: "aril-ref-value", inputs: ["overlayPanelShow", "assetId", "valueDesc", "detailPageUrl", "target"], outputs: ["clickEvent"] }, { kind: "pipe", type: SlicePipe, name: "slice" }, { kind: "ngmodule", type: OverlayPanelModule }, { kind: "component", type: i1.OverlayPanel, selector: "p-overlayPanel", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "showCloseIcon", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MultipleRefValueComponent, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: MultipleRefValueComponent, decorators: [{
19
19
  type: Component,
20
20
  args: [{ standalone: true, selector: 'aril-multiple-ref-value', imports: [RefValueComponent, SlicePipe, OverlayPanelModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex align-items-center gap-1\">\r\n\t@for (item of model() | slice: 0 : maxBadgeCount(); track item) {\r\n\t\t<aril-ref-value\r\n\t\t\tclass=\"cursor-pointer\"\r\n\t\t\t[assetId]=\"item.value\"\r\n\t\t\t[valueDesc]=\"item.valueDesc\"\r\n\t\t\t[detailPageUrl]=\"detailPageUrl()\"\r\n\t\t\t(clickEvent)=\"clickEvent.emit($event)\" />\r\n\t}\r\n\t@if (model().length > maxBadgeCount()) {\r\n\t\t<i class=\"pi pi-ellipsis-v cursor-pointer\" (click)=\"op.toggle($event)\"></i>\r\n\r\n\t\t<p-overlayPanel #op class=\"shadow-4\" appendTo=\"body\">\r\n\t\t\t<div class=\"flex flex-column gap-2 max-w-30rem max-h-20rem pr-3 overflow-y-auto\">\r\n\t\t\t\t@for (item of model() | slice: maxBadgeCount(); track item) {\r\n\t\t\t\t\t<aril-ref-value\r\n\t\t\t\t\t\tclass=\"cursor-pointer\"\r\n\t\t\t\t\t\t[assetId]=\"item.value\"\r\n\t\t\t\t\t\t[valueDesc]=\"item.valueDesc\"\r\n\t\t\t\t\t\t[detailPageUrl]=\"detailPageUrl()\"\r\n\t\t\t\t\t\t(clickEvent)=\"clickEvent.emit($event)\" />\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t</p-overlayPanel>\r\n\t}\r\n</div>\r\n" }]
21
21
  }], propDecorators: { clickEvent: [{
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-business-multiple-ref-value.mjs","sources":["../../projects/aril/ui-business/multiple-ref-value/src/multiple-ref-value.component.ts","../../projects/aril/ui-business/multiple-ref-value/src/multiple-ref-value.component.html","../../projects/aril/ui-business/multiple-ref-value/aril-ui-business-multiple-ref-value.ts"],"sourcesContent":["import { SlicePipe } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, EventEmitter, Output, input } from '@angular/core';\r\n\r\nimport { OverlayPanelModule } from 'primeng/overlaypanel';\r\n\r\nimport { RefValueComponent } from 'aril/ui-business/ref-value';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-multiple-ref-value',\r\n\ttemplateUrl: './multiple-ref-value.component.html',\r\n\timports: [RefValueComponent, SlicePipe, OverlayPanelModule],\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class MultipleRefValueComponent {\r\n\tmodel = input.required<{ value: any; valueDesc: string }[]>();\r\n\tdetailPageUrl = input<string>('');\r\n\tmaxBadgeCount = input<number>(3);\r\n\r\n\t@Output() clickEvent = new EventEmitter();\r\n}\r\n","<div class=\"flex align-items-center gap-1\">\r\n\t@for (item of model() | slice: 0 : maxBadgeCount(); track item) {\r\n\t\t<aril-ref-value\r\n\t\t\tclass=\"cursor-pointer\"\r\n\t\t\t[assetId]=\"item.value\"\r\n\t\t\t[valueDesc]=\"item.valueDesc\"\r\n\t\t\t[detailPageUrl]=\"detailPageUrl()\"\r\n\t\t\t(clickEvent)=\"clickEvent.emit($event)\" />\r\n\t}\r\n\t@if (model().length > maxBadgeCount()) {\r\n\t\t<i class=\"pi pi-ellipsis-v cursor-pointer\" (click)=\"op.toggle($event)\"></i>\r\n\r\n\t\t<p-overlayPanel #op class=\"shadow-4\" appendTo=\"body\">\r\n\t\t\t<div class=\"flex flex-column gap-2 max-w-30rem max-h-20rem pr-3 overflow-y-auto\">\r\n\t\t\t\t@for (item of model() | slice: maxBadgeCount(); track item) {\r\n\t\t\t\t\t<aril-ref-value\r\n\t\t\t\t\t\tclass=\"cursor-pointer\"\r\n\t\t\t\t\t\t[assetId]=\"item.value\"\r\n\t\t\t\t\t\t[valueDesc]=\"item.valueDesc\"\r\n\t\t\t\t\t\t[detailPageUrl]=\"detailPageUrl()\"\r\n\t\t\t\t\t\t(clickEvent)=\"clickEvent.emit($event)\" />\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t</p-overlayPanel>\r\n\t}\r\n</div>\r\n","/**\n * Generated bundle index. Do not edit.\n */\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,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAG9C,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAPrC,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EAAA,QAAA,EACN,yBAAyB,EAAA,OAAA,EAE1B,CAAC,iBAAiB,EAAE,SAAS,EAAE,kBAAkB,CAAC,EAAA,eAAA,EAC1C,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,siCAAA,EAAA;8BAOrC,UAAU,EAAA,CAAA;sBAAnB;;;AEnBF;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-business-multiple-ref-value.mjs","sources":["../../projects/aril/ui-business/multiple-ref-value/src/multiple-ref-value.component.ts","../../projects/aril/ui-business/multiple-ref-value/src/multiple-ref-value.component.html","../../projects/aril/ui-business/multiple-ref-value/aril-ui-business-multiple-ref-value.ts"],"sourcesContent":["import { SlicePipe } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, EventEmitter, Output, input } from '@angular/core';\r\n\r\nimport { OverlayPanelModule } from 'primeng/overlaypanel';\r\n\r\nimport { RefValueComponent } from 'aril/ui-business/ref-value';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-multiple-ref-value',\r\n\ttemplateUrl: './multiple-ref-value.component.html',\r\n\timports: [RefValueComponent, SlicePipe, OverlayPanelModule],\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class MultipleRefValueComponent {\r\n\tmodel = input.required<{ value: any; valueDesc: string }[]>();\r\n\tdetailPageUrl = input<string>('');\r\n\tmaxBadgeCount = input<number>(3);\r\n\r\n\t@Output() clickEvent = new EventEmitter();\r\n}\r\n","<div class=\"flex align-items-center gap-1\">\r\n\t@for (item of model() | slice: 0 : maxBadgeCount(); track item) {\r\n\t\t<aril-ref-value\r\n\t\t\tclass=\"cursor-pointer\"\r\n\t\t\t[assetId]=\"item.value\"\r\n\t\t\t[valueDesc]=\"item.valueDesc\"\r\n\t\t\t[detailPageUrl]=\"detailPageUrl()\"\r\n\t\t\t(clickEvent)=\"clickEvent.emit($event)\" />\r\n\t}\r\n\t@if (model().length > maxBadgeCount()) {\r\n\t\t<i class=\"pi pi-ellipsis-v cursor-pointer\" (click)=\"op.toggle($event)\"></i>\r\n\r\n\t\t<p-overlayPanel #op class=\"shadow-4\" appendTo=\"body\">\r\n\t\t\t<div class=\"flex flex-column gap-2 max-w-30rem max-h-20rem pr-3 overflow-y-auto\">\r\n\t\t\t\t@for (item of model() | slice: maxBadgeCount(); track item) {\r\n\t\t\t\t\t<aril-ref-value\r\n\t\t\t\t\t\tclass=\"cursor-pointer\"\r\n\t\t\t\t\t\t[assetId]=\"item.value\"\r\n\t\t\t\t\t\t[valueDesc]=\"item.valueDesc\"\r\n\t\t\t\t\t\t[detailPageUrl]=\"detailPageUrl()\"\r\n\t\t\t\t\t\t(clickEvent)=\"clickEvent.emit($event)\" />\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t</p-overlayPanel>\r\n\t}\r\n</div>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAca,yBAAyB,CAAA;AAPtC,IAAA,WAAA,GAAA;AAQC,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAuC,CAAC;AAC9D,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAClC,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK,CAAS,CAAC,CAAC,CAAC;AAEvB,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,YAAY,EAAE,CAAC;AAC1C,KAAA;8GANY,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAzB,IAAA,SAAA,IAAA,CAAA,IAAA,GA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{
55
55
  this.ref.close();
56
56
  }
57
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationTemplatesDialogComponent, deps: [{ token: i1.DynamicDialogRef }, { token: i2.HttpClient }, { token: i3.MessageService }, { token: i4.TranslocoService }], target: i0.ɵɵFactoryTarget.Component }); }
58
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: NotificationTemplatesDialogComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<div class=\"grid\">\r\n\t<aril-table\r\n\t\tclass=\"col-12\"\r\n\t\t[data]=\"notificationTemplates() || []\"\r\n\t\t[noDataFoundLabel]=\"translocoService.translate('noDataFound')\">\r\n\t\t<aril-table-column field=\"templateCode\" [header]=\"translocoService.translate('notifications.templateCode')\" type=\"text\">\r\n\t\t\t<ng-template let-item>\r\n\t\t\t\t<aril-value type=\"text\" [model]=\"item.templateCode\" />\r\n\t\t\t</ng-template>\r\n\t\t</aril-table-column>\r\n\r\n\t\t<aril-table-column field=\"templateTitle\" [header]=\"translocoService.translate('notifications.fileName')\" type=\"text\">\r\n\t\t\t<ng-template let-item>\r\n\t\t\t\t@if (item.url) {\r\n\t\t\t\t\t<aril-value [model]=\"item.templateTitle\" [isClickable]=\"true\" (click)=\"downloadTemplate(item.url)\" />\r\n\t\t\t\t} @else {\r\n\t\t\t\t\t<aril-value type=\"text\" [model]=\"item.templateTitle\" />\r\n\t\t\t\t}\r\n\t\t\t</ng-template>\r\n\t\t</aril-table-column>\r\n\t</aril-table>\r\n\r\n\t<div class=\"col-12 flex justify-content-end\">\r\n\t\t<aril-button\r\n\t\t\t[label]=\"translocoService.translate('close')\"\r\n\t\t\ticon=\"TIMES\"\r\n\t\t\tcolor=\"secondary\"\r\n\t\t\t[outlined]=\"true\"\r\n\t\t\t(clickEvent)=\"closeDialog()\" />\r\n\t</div>\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: ARiLTableModule }, { kind: "component", type: i5.TableComponent, selector: "aril-table", inputs: ["kebabMenuItems", "expandableFields", "data", "checkboxSelection", "radioButtonSelection", "headerCheckboxSelection", "pageSize", "proxy", "showFooter", "tAlign", "selectionMode", "exportFileName", "noDataFoundLabel", "tableHeader", "showTableHeader", "isFirstRowSelected", "dataKey", "selectedRowsInput", "isLazy", "totalRecords", "paginator", "paginatorDropdownAppendTo", "isColumnExpandMode", "isResizableColumns", "isSortable", "scrollable", "scrollHeight", "sortMode", "showFirstLastIcon", "rowSelectable", "reorderableColumns", "reorderField", "showColumnFilters", "selectionPageOnly", "openSelectionOnSidebar", "globalFilterFields", "exportConfig"], outputs: ["onPageEvent", "selectionEvent", "lazyLoadEvent", "rowReorderEvent"] }, { kind: "component", type: i5.TableColumnComponent, selector: "aril-table-column", inputs: ["type", "field", "header", "tAlign", "isShowHeaderTooltip", "tooltipTemplate", "width", "showFilter", "filterType", "showTimeInDateFilters", "enumGroupName"] }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "rounded", "text", "outlined", "badge", "size", "icon", "iconPos", "color"], outputs: ["clickEvent"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "component", type: ValueComponent, selector: "aril-value", inputs: ["model", "type", "format", "isClickable", "groupName", "parentSelectionKey", "isTextClamp", "textClampCharacters", "style", "copyable", "shouldShowCopyForClampedText", "arrayTypeDisplayName", "arrayTypeMaxBadgeCount", "bigDecimalRoundingMode", "bigDecimalScale"] }] }); }
57
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: NotificationTemplatesDialogComponent, deps: [{ token: i1.DynamicDialogRef }, { token: i2.HttpClient }, { token: i3.MessageService }, { token: i4.TranslocoService }], target: i0.ɵɵFactoryTarget.Component }); }
58
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: NotificationTemplatesDialogComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<div class=\"grid\">\r\n\t<aril-table\r\n\t\tclass=\"col-12\"\r\n\t\t[data]=\"notificationTemplates() || []\"\r\n\t\t[noDataFoundLabel]=\"translocoService.translate('noDataFound')\">\r\n\t\t<aril-table-column field=\"templateCode\" [header]=\"translocoService.translate('notifications.templateCode')\" type=\"text\">\r\n\t\t\t<ng-template let-item>\r\n\t\t\t\t<aril-value type=\"text\" [model]=\"item.templateCode\" />\r\n\t\t\t</ng-template>\r\n\t\t</aril-table-column>\r\n\r\n\t\t<aril-table-column field=\"templateTitle\" [header]=\"translocoService.translate('notifications.fileName')\" type=\"text\">\r\n\t\t\t<ng-template let-item>\r\n\t\t\t\t@if (item.url) {\r\n\t\t\t\t\t<aril-value [model]=\"item.templateTitle\" [isClickable]=\"true\" (click)=\"downloadTemplate(item.url)\" />\r\n\t\t\t\t} @else {\r\n\t\t\t\t\t<aril-value type=\"text\" [model]=\"item.templateTitle\" />\r\n\t\t\t\t}\r\n\t\t\t</ng-template>\r\n\t\t</aril-table-column>\r\n\t</aril-table>\r\n\r\n\t<div class=\"col-12 flex justify-content-end\">\r\n\t\t<aril-button\r\n\t\t\t[label]=\"translocoService.translate('close')\"\r\n\t\t\ticon=\"TIMES\"\r\n\t\t\tcolor=\"secondary\"\r\n\t\t\t[outlined]=\"true\"\r\n\t\t\t(clickEvent)=\"closeDialog()\" />\r\n\t</div>\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: ARiLTableModule }, { kind: "component", type: i5.TableComponent, selector: "aril-table", inputs: ["kebabMenuItems", "expandableFields", "data", "checkboxSelection", "radioButtonSelection", "headerCheckboxSelection", "pageSize", "proxy", "showFooter", "tAlign", "selectionMode", "exportFileName", "noDataFoundLabel", "tableHeader", "showTableHeader", "isFirstRowSelected", "dataKey", "selectedRowsInput", "isLazy", "totalRecords", "paginator", "paginatorDropdownAppendTo", "isColumnExpandMode", "isResizableColumns", "isSortable", "scrollable", "scrollHeight", "sortMode", "showFirstLastIcon", "rowSelectable", "reorderableColumns", "reorderField", "showColumnFilters", "selectionPageOnly", "openSelectionOnSidebar", "globalFilterFields", "exportConfig"], outputs: ["onPageEvent", "selectionEvent", "lazyLoadEvent", "rowReorderEvent"] }, { kind: "component", type: i5.TableColumnComponent, selector: "aril-table-column", inputs: ["type", "field", "header", "tAlign", "isShowHeaderTooltip", "tooltipTemplate", "width", "showFilter", "filterType", "showTimeInDateFilters", "enumGroupName"] }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "rounded", "text", "outlined", "badge", "size", "icon", "iconPos", "color"], outputs: ["clickEvent"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "component", type: ValueComponent, selector: "aril-value", inputs: ["model", "type", "format", "isClickable", "groupName", "parentSelectionKey", "isTextClamp", "textClampCharacters", "style", "copyable", "shouldShowCopyForClampedText", "arrayTypeDisplayName", "arrayTypeMaxBadgeCount", "bigDecimalRoundingMode", "bigDecimalScale"] }] }); }
59
59
  }
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationTemplatesDialogComponent, decorators: [{
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: NotificationTemplatesDialogComponent, decorators: [{
61
61
  type: Component,
62
62
  args: [{ standalone: true, imports: [ARiLTableModule, ButtonComponent, TranslocoModule, ValueComponent], template: "<div class=\"grid\">\r\n\t<aril-table\r\n\t\tclass=\"col-12\"\r\n\t\t[data]=\"notificationTemplates() || []\"\r\n\t\t[noDataFoundLabel]=\"translocoService.translate('noDataFound')\">\r\n\t\t<aril-table-column field=\"templateCode\" [header]=\"translocoService.translate('notifications.templateCode')\" type=\"text\">\r\n\t\t\t<ng-template let-item>\r\n\t\t\t\t<aril-value type=\"text\" [model]=\"item.templateCode\" />\r\n\t\t\t</ng-template>\r\n\t\t</aril-table-column>\r\n\r\n\t\t<aril-table-column field=\"templateTitle\" [header]=\"translocoService.translate('notifications.fileName')\" type=\"text\">\r\n\t\t\t<ng-template let-item>\r\n\t\t\t\t@if (item.url) {\r\n\t\t\t\t\t<aril-value [model]=\"item.templateTitle\" [isClickable]=\"true\" (click)=\"downloadTemplate(item.url)\" />\r\n\t\t\t\t} @else {\r\n\t\t\t\t\t<aril-value type=\"text\" [model]=\"item.templateTitle\" />\r\n\t\t\t\t}\r\n\t\t\t</ng-template>\r\n\t\t</aril-table-column>\r\n\t</aril-table>\r\n\r\n\t<div class=\"col-12 flex justify-content-end\">\r\n\t\t<aril-button\r\n\t\t\t[label]=\"translocoService.translate('close')\"\r\n\t\t\ticon=\"TIMES\"\r\n\t\t\tcolor=\"secondary\"\r\n\t\t\t[outlined]=\"true\"\r\n\t\t\t(clickEvent)=\"closeDialog()\" />\r\n\t</div>\r\n</div>\r\n" }]
63
63
  }], ctorParameters: () => [{ type: i1.DynamicDialogRef }, { type: i2.HttpClient }, { type: i3.MessageService }, { type: i4.TranslocoService }] });