aril 1.2.18 → 1.2.19

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 (376) hide show
  1. package/boot/config/apps/src/interfaces.d.ts +5 -0
  2. package/boot/config/apps/src/route-permissions.d.ts +2 -2
  3. package/esm2022/boot/config/apps/src/apps.service.mjs +5 -5
  4. package/esm2022/boot/config/apps/src/auth.guard.mjs +4 -4
  5. package/esm2022/boot/config/apps/src/interfaces.mjs +1 -1
  6. package/esm2022/boot/config/apps/src/route-permissions.mjs +24 -6
  7. package/esm2022/boot/config/apps/src/showdowDOMWrapper.mjs +4 -4
  8. package/esm2022/boot/host/src/app.component.mjs +4 -4
  9. package/esm2022/boot/mfe/src/app.component.mjs +4 -4
  10. package/esm2022/boot/pages/src/forbidden.component.mjs +4 -4
  11. package/esm2022/boot/pages/src/notFound.component.mjs +4 -4
  12. package/esm2022/http/src/httpBackend.mjs +4 -4
  13. package/esm2022/i18n/src/i18n.module.mjs +5 -5
  14. package/esm2022/i18n/src/loader.mjs +4 -4
  15. package/esm2022/theme/layout/app/breadcrumb/app.breadcrumb.component.mjs +4 -4
  16. package/esm2022/theme/layout/app/expandableMenu/expandable-menu.component.mjs +4 -4
  17. package/esm2022/theme/layout/app/favorite-pages/favorite-pages-sidebar.component.mjs +4 -4
  18. package/esm2022/theme/layout/app/favorite-pages/favorite-pages.service.mjs +4 -4
  19. package/esm2022/theme/layout/app/favorite-pages/modals/add-edit-favorite-modal/add-edit-favorite-modal.component.mjs +4 -4
  20. package/esm2022/theme/layout/app/general-search/general-search.component.mjs +4 -4
  21. package/esm2022/theme/layout/app/history/history-sidebar.component.mjs +4 -4
  22. package/esm2022/theme/layout/app/history/history.service.mjs +4 -4
  23. package/esm2022/theme/layout/app/layout/app.layout.component.mjs +4 -4
  24. package/esm2022/theme/layout/app/layout/mfe.layout.component.mjs +4 -4
  25. package/esm2022/theme/layout/app/notifications/notifications-sidebar.component.mjs +4 -4
  26. package/esm2022/theme/layout/app/profileSidebar/app.profilesidebar.component.mjs +4 -4
  27. package/esm2022/theme/layout/app/profileSidebar/modals/change-password-modal/change-password-modal.component.mjs +4 -4
  28. package/esm2022/theme/layout/app/profileSidebar/modals/edit-profile-modal/edit-profile-modal.component.mjs +4 -4
  29. package/esm2022/theme/layout/app/profileSidebar/profile.service.mjs +4 -4
  30. package/esm2022/theme/layout/app/site-map/site-map-sidebar.component.mjs +4 -4
  31. package/esm2022/theme/layout/app/static-sidebar/static-sidebar.component.mjs +4 -4
  32. package/esm2022/theme/layout/app/topbar/app.topbar.component.mjs +4 -4
  33. package/esm2022/theme/layout/service/app.layout.service.mjs +4 -4
  34. package/esm2022/theme/layout/service/app.menu.service.mjs +4 -4
  35. package/esm2022/theme/layout/service/breadcrumb.service.mjs +4 -4
  36. package/esm2022/theme/layout/service/notifications.service.mjs +4 -4
  37. package/esm2022/theme/layout/service/search.service.mjs +4 -4
  38. package/esm2022/theme/layout/service/selection-group.service.mjs +4 -4
  39. package/esm2022/ui/autoComplete/src/auto-complete.component.mjs +4 -4
  40. package/esm2022/ui/badge/src/badge.component.mjs +4 -4
  41. package/esm2022/ui/button/src/button.component.mjs +4 -4
  42. package/esm2022/ui/button/src/split-button.component.mjs +4 -4
  43. package/esm2022/ui/calendar/src/calendar.component.mjs +4 -4
  44. package/esm2022/ui/charts/src/amCharts/column/column-chart.component.mjs +4 -4
  45. package/esm2022/ui/charts/src/amCharts/line/line-chart.component.mjs +4 -4
  46. package/esm2022/ui/charts/src/amCharts/pie/pie-chart.component.mjs +4 -4
  47. package/esm2022/ui/charts/src/highCharts/area/area-chart.component.mjs +4 -4
  48. package/esm2022/ui/charts/src/highCharts/bar/bar-chart.component.mjs +4 -4
  49. package/esm2022/ui/charts/src/highCharts/column/column-chart.component.mjs +4 -4
  50. package/esm2022/ui/charts/src/highCharts/gauge/solid-gauge.component.mjs +4 -4
  51. package/esm2022/ui/charts/src/highCharts/heatmap/heatMap-chart.component.mjs +4 -4
  52. package/esm2022/ui/charts/src/highCharts/line/line-chart-datetime-axis.component.mjs +4 -4
  53. package/esm2022/ui/charts/src/highCharts/line/line-chart-series.component.mjs +4 -4
  54. package/esm2022/ui/charts/src/highCharts/line/line-chart.component.mjs +4 -4
  55. package/esm2022/ui/charts/src/highCharts/pie/pie-chart.component.mjs +4 -4
  56. package/esm2022/ui/checkbox/src/check-box.component.mjs +4 -4
  57. package/esm2022/ui/checkbox/src/tri-state-checkbox.component.mjs +4 -4
  58. package/esm2022/ui/chip/src/chip.component.mjs +4 -4
  59. package/esm2022/ui/collapse-reorder-list/src/collapse-reorder-list.component.mjs +4 -4
  60. package/esm2022/ui/dxEditor/src/dx-editor.component.mjs +4 -4
  61. package/esm2022/ui/dxField/src/dx-field.component.mjs +4 -4
  62. package/esm2022/ui/editor/src/aril-editor.component.mjs +4 -4
  63. package/esm2022/ui/field/src/field.component.mjs +4 -4
  64. package/esm2022/ui/fileUpload/src/file-upload.component.mjs +4 -4
  65. package/esm2022/ui/form/index.mjs +5 -5
  66. package/esm2022/ui/form/src/form-submit-button.component.mjs +4 -4
  67. package/esm2022/ui/form/src/form.component.mjs +4 -4
  68. package/esm2022/ui/img-viewer/src/img-viewer.component.mjs +4 -4
  69. package/esm2022/ui/json-diff-comparison/src/json-diff.component.mjs +4 -4
  70. package/esm2022/ui/lib/src/form/form-error-message.component.mjs +4 -4
  71. package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +4 -4
  72. package/esm2022/ui/lib/src/grid/enum-color-picker.pipe.mjs +4 -4
  73. package/esm2022/ui/lib/src/grid/flex-grid.directive.mjs +4 -4
  74. package/esm2022/ui/lib/src/input/common-input-validators.service.mjs +4 -4
  75. package/esm2022/ui/lib/src/input/dx-input-error-message.pipe.mjs +4 -4
  76. package/esm2022/ui/lib/src/input/input-disabled.directive.mjs +4 -4
  77. package/esm2022/ui/lib/src/input/input-error-message.pipe.mjs +4 -4
  78. package/esm2022/ui/lib/src/input/value-accessor.directive.mjs +4 -4
  79. package/esm2022/ui/loader/src/loader.component.mjs +4 -4
  80. package/esm2022/ui/mask/src/mask.component.mjs +4 -4
  81. package/esm2022/ui/multiSelect/src/multi-select.component.mjs +4 -4
  82. package/esm2022/ui/number/src/number.component.mjs +4 -4
  83. package/esm2022/ui/operation-types-dialog/src/operation-types-dialog.component.mjs +4 -4
  84. package/esm2022/ui/overlayPanel/src/overlay-panel.component.mjs +4 -4
  85. package/esm2022/ui/panel/src/panel.component.mjs +4 -4
  86. package/esm2022/ui/password/src/password.component.mjs +4 -4
  87. package/esm2022/ui/pdf-viewer/src/pdf-viewer.component.mjs +4 -4
  88. package/esm2022/ui/progressbar/src/progressbar.component.mjs +4 -4
  89. package/esm2022/ui/radioButton/src/radio-button.component.mjs +4 -4
  90. package/esm2022/ui/relativeDateSelector/src/relative-date-selector.component.mjs +4 -4
  91. package/esm2022/ui/selectBox/src/select-box.component.mjs +4 -4
  92. package/esm2022/ui/switch/src/switch.component.mjs +4 -4
  93. package/esm2022/ui/table/index.mjs +5 -5
  94. package/esm2022/ui/table/src/export-overlay-panel.component.mjs +4 -4
  95. package/esm2022/ui/table/src/table-column.component.mjs +4 -4
  96. package/esm2022/ui/table/src/table.component.mjs +4 -4
  97. package/esm2022/ui/table-expand/index.mjs +5 -5
  98. package/esm2022/ui/table-expand/src/table-column.component.mjs +4 -4
  99. package/esm2022/ui/table-expand/src/table-expand-area.component.mjs +4 -4
  100. package/esm2022/ui/table-expand/src/table.component.mjs +4 -4
  101. package/esm2022/ui/tag/src/tag.component.mjs +4 -4
  102. package/esm2022/ui/tagBox/src/tag-box.component.mjs +4 -4
  103. package/esm2022/ui/text/src/text.component.mjs +4 -4
  104. package/esm2022/ui/textArea/src/text-area.component.mjs +4 -4
  105. package/esm2022/ui/toggle-button/src/toggle-button.component.mjs +4 -4
  106. package/esm2022/ui/tooltip/src/tooltip-component.mjs +4 -4
  107. package/esm2022/ui/translate-input/src/aril-lang-modal/aril-lang-modal.component.mjs +4 -4
  108. package/esm2022/ui/translate-input/src/aril-translate-input.component.mjs +4 -4
  109. package/esm2022/ui/tree/src/tree.component.mjs +4 -4
  110. package/esm2022/ui/treeSelect/src/treeSelect.component.mjs +4 -4
  111. package/esm2022/ui/treeTable/src/tree-table.component.mjs +4 -4
  112. package/esm2022/ui/value/src/value.component.mjs +4 -4
  113. package/esm2022/ui-business/assetPicker/src/asset-picker.component.mjs +4 -4
  114. package/esm2022/ui-business/detailed-overlay-panel/src/detailed-overlay-panel.component.mjs +4 -4
  115. package/esm2022/ui-business/enumPicker/src/enum-picker.component.mjs +4 -4
  116. package/esm2022/ui-business/image-viewer/src/aril-image-viewer.component.mjs +4 -4
  117. package/esm2022/ui-business/multiple-ref-value/src/multiple-ref-value.component.mjs +4 -4
  118. package/esm2022/ui-business/notification-templates-dialog/src/notification-templates-dialog.component.mjs +4 -4
  119. package/esm2022/ui-business/operation-types-dialog/src/operation-types-dialog.component.mjs +4 -4
  120. package/esm2022/ui-business/pdf-preview-modal/src/pdf-preview-modal.component.mjs +4 -4
  121. package/esm2022/ui-business/ref-value/src/ref-value.component.mjs +4 -4
  122. package/esm2022/ui-business/rolePicker/src/role-picker.component.mjs +4 -4
  123. package/esm2022/ui-business/trace-drawer/src/app-log.service.mjs +4 -4
  124. package/esm2022/ui-business/trace-drawer/src/trace-drawer.component.mjs +4 -4
  125. package/esm2022/ui-business/trace-drawer/src/trace-log.service.mjs +4 -4
  126. package/esm2022/ui-business/trace-id/src/trace-id.component.mjs +4 -4
  127. package/esm2022/ui-business/userPicker/src/user-picker.component.mjs +4 -4
  128. package/esm2022/util/block/src/block.mjs +7 -7
  129. package/esm2022/util/directives/src/detail-page-customization/detail-page-customization.directive.mjs +4 -4
  130. package/esm2022/util/directives/src/dialog-component/plugin-dialog.component.mjs +4 -4
  131. package/esm2022/util/directives/src/dialog-service/plugin-dialog.service.mjs +4 -4
  132. package/esm2022/util/lib/src/module-router.mjs +4 -4
  133. package/esm2022/util/pipes/src/distance-to-now.pipe.mjs +4 -4
  134. package/esm2022/util/pipes/src/get-column-by-field.pipe.mjs +4 -4
  135. package/esm2022/util/pipes/src/parse.pipe.mjs +4 -4
  136. package/esm2022/util/pipes/src/round-number.pipe.mjs +4 -4
  137. package/esm2022/util/pipes/src/safe.pipe.mjs +4 -4
  138. package/esm2022/util/pipes/src/translate-json/translate-json.pipe.mjs +4 -4
  139. package/esm2022/util/pub-sub/src/pub-sub.service.mjs +4 -4
  140. package/esm2022/util/sync-active-tab-route/src/sync-active-tab-route.directive.mjs +4 -4
  141. package/esm2022/util/unwrap/src/unwrap-tag.directive.mjs +4 -4
  142. package/fesm2022/{aril-app.component-wxP3y8dg.mjs → aril-app.component-Cw1MxAqD.mjs} +4 -4
  143. package/fesm2022/{aril-app.component-wxP3y8dg.mjs.map → aril-app.component-Cw1MxAqD.mjs.map} +1 -1
  144. package/fesm2022/aril-boot-base.mjs +1 -1
  145. package/fesm2022/aril-boot-base.mjs.map +1 -1
  146. package/fesm2022/aril-boot-bridge.mjs.map +1 -1
  147. package/fesm2022/aril-boot-config-api.mjs +1 -1
  148. package/fesm2022/aril-boot-config-api.mjs.map +1 -1
  149. package/fesm2022/aril-boot-config-apps.mjs +34 -16
  150. package/fesm2022/aril-boot-config-apps.mjs.map +1 -1
  151. package/fesm2022/aril-boot-config-plugins.mjs +1 -1
  152. package/fesm2022/aril-boot-config-plugins.mjs.map +1 -1
  153. package/fesm2022/aril-boot-config-translate.mjs.map +1 -1
  154. package/fesm2022/aril-boot-host.mjs +4 -4
  155. package/fesm2022/aril-boot-host.mjs.map +1 -1
  156. package/fesm2022/{aril-boot-mfe-app.component-7IjAmjz0.mjs → aril-boot-mfe-app.component-CCTntpyN.mjs} +5 -5
  157. package/fesm2022/{aril-boot-mfe-app.component-7IjAmjz0.mjs.map → aril-boot-mfe-app.component-CCTntpyN.mjs.map} +1 -1
  158. package/fesm2022/{aril-boot-mfe-aril-boot-mfe-KXDpUyv7.mjs → aril-boot-mfe-aril-boot-mfe-D8DZ-gT-.mjs} +4 -4
  159. package/fesm2022/{aril-boot-mfe-aril-boot-mfe-KXDpUyv7.mjs.map → aril-boot-mfe-aril-boot-mfe-D8DZ-gT-.mjs.map} +1 -1
  160. package/fesm2022/aril-boot-mfe.mjs +1 -1
  161. package/fesm2022/aril-boot-pages.mjs +6 -6
  162. package/fesm2022/aril-boot-pages.mjs.map +1 -1
  163. package/fesm2022/aril-http.mjs +3 -3
  164. package/fesm2022/aril-http.mjs.map +1 -1
  165. package/fesm2022/aril-i18n.mjs +7 -7
  166. package/fesm2022/aril-i18n.mjs.map +1 -1
  167. package/fesm2022/aril-keycloak.mjs.map +1 -1
  168. package/fesm2022/aril-provider.mjs +1 -1
  169. package/fesm2022/aril-provider.mjs.map +1 -1
  170. package/fesm2022/aril-theme-layout.mjs +72 -72
  171. package/fesm2022/aril-theme-layout.mjs.map +1 -1
  172. package/fesm2022/aril-ui-autoComplete.mjs +6 -6
  173. package/fesm2022/aril-ui-autoComplete.mjs.map +1 -1
  174. package/fesm2022/aril-ui-badge.mjs +4 -4
  175. package/fesm2022/aril-ui-badge.mjs.map +1 -1
  176. package/fesm2022/aril-ui-business-assetPicker.mjs +5 -5
  177. package/fesm2022/aril-ui-business-assetPicker.mjs.map +1 -1
  178. package/fesm2022/aril-ui-business-detailed-overlay-panel.mjs +5 -5
  179. package/fesm2022/aril-ui-business-detailed-overlay-panel.mjs.map +1 -1
  180. package/fesm2022/aril-ui-business-enumPicker.mjs +5 -5
  181. package/fesm2022/aril-ui-business-enumPicker.mjs.map +1 -1
  182. package/fesm2022/aril-ui-business-image-viewer.mjs +3 -3
  183. package/fesm2022/aril-ui-business-image-viewer.mjs.map +1 -1
  184. package/fesm2022/aril-ui-business-multiple-ref-value.mjs +4 -4
  185. package/fesm2022/aril-ui-business-multiple-ref-value.mjs.map +1 -1
  186. package/fesm2022/aril-ui-business-notification-templates-dialog.mjs +3 -3
  187. package/fesm2022/aril-ui-business-notification-templates-dialog.mjs.map +1 -1
  188. package/fesm2022/aril-ui-business-operation-types-dialog.mjs +3 -3
  189. package/fesm2022/aril-ui-business-operation-types-dialog.mjs.map +1 -1
  190. package/fesm2022/aril-ui-business-pdf-preview-modal.mjs +3 -3
  191. package/fesm2022/aril-ui-business-pdf-preview-modal.mjs.map +1 -1
  192. package/fesm2022/aril-ui-business-ref-value.mjs +4 -4
  193. package/fesm2022/aril-ui-business-ref-value.mjs.map +1 -1
  194. package/fesm2022/aril-ui-business-rolePicker.mjs +4 -4
  195. package/fesm2022/aril-ui-business-rolePicker.mjs.map +1 -1
  196. package/fesm2022/aril-ui-business-trace-drawer.mjs +10 -10
  197. package/fesm2022/aril-ui-business-trace-drawer.mjs.map +1 -1
  198. package/fesm2022/aril-ui-business-trace-id.mjs +4 -4
  199. package/fesm2022/aril-ui-business-trace-id.mjs.map +1 -1
  200. package/fesm2022/aril-ui-business-userPicker.mjs +3 -3
  201. package/fesm2022/aril-ui-business-userPicker.mjs.map +1 -1
  202. package/fesm2022/aril-ui-button.mjs +7 -7
  203. package/fesm2022/aril-ui-button.mjs.map +1 -1
  204. package/fesm2022/aril-ui-calendar.mjs +3 -3
  205. package/fesm2022/aril-ui-calendar.mjs.map +1 -1
  206. package/fesm2022/aril-ui-charts.mjs +37 -37
  207. package/fesm2022/aril-ui-charts.mjs.map +1 -1
  208. package/fesm2022/aril-ui-checkbox.mjs +6 -6
  209. package/fesm2022/aril-ui-checkbox.mjs.map +1 -1
  210. package/fesm2022/aril-ui-chip.mjs +4 -4
  211. package/fesm2022/aril-ui-chip.mjs.map +1 -1
  212. package/fesm2022/aril-ui-collapse-reorder-list.mjs +4 -4
  213. package/fesm2022/aril-ui-collapse-reorder-list.mjs.map +1 -1
  214. package/fesm2022/aril-ui-dxEditor.mjs +4 -4
  215. package/fesm2022/aril-ui-dxEditor.mjs.map +1 -1
  216. package/fesm2022/aril-ui-dxField.mjs +4 -4
  217. package/fesm2022/aril-ui-dxField.mjs.map +1 -1
  218. package/fesm2022/aril-ui-editor.mjs +4 -4
  219. package/fesm2022/aril-ui-editor.mjs.map +1 -1
  220. package/fesm2022/aril-ui-field.mjs +4 -4
  221. package/fesm2022/aril-ui-field.mjs.map +1 -1
  222. package/fesm2022/aril-ui-fileUpload.mjs +4 -4
  223. package/fesm2022/aril-ui-fileUpload.mjs.map +1 -1
  224. package/fesm2022/aril-ui-form.mjs +11 -11
  225. package/fesm2022/aril-ui-form.mjs.map +1 -1
  226. package/fesm2022/aril-ui-img-viewer.mjs +3 -3
  227. package/fesm2022/aril-ui-img-viewer.mjs.map +1 -1
  228. package/fesm2022/aril-ui-json-diff-comparison.mjs +4 -4
  229. package/fesm2022/aril-ui-json-diff-comparison.mjs.map +1 -1
  230. package/fesm2022/aril-ui-lib.mjs +28 -28
  231. package/fesm2022/aril-ui-lib.mjs.map +1 -1
  232. package/fesm2022/aril-ui-loader.mjs +3 -3
  233. package/fesm2022/aril-ui-loader.mjs.map +1 -1
  234. package/fesm2022/aril-ui-mask.mjs +3 -3
  235. package/fesm2022/aril-ui-mask.mjs.map +1 -1
  236. package/fesm2022/aril-ui-multiSelect.mjs +3 -3
  237. package/fesm2022/aril-ui-multiSelect.mjs.map +1 -1
  238. package/fesm2022/aril-ui-number.mjs +3 -3
  239. package/fesm2022/aril-ui-number.mjs.map +1 -1
  240. package/fesm2022/aril-ui-operation-types-dialog.mjs +3 -3
  241. package/fesm2022/aril-ui-operation-types-dialog.mjs.map +1 -1
  242. package/fesm2022/aril-ui-overlayPanel.mjs +4 -4
  243. package/fesm2022/aril-ui-overlayPanel.mjs.map +1 -1
  244. package/fesm2022/aril-ui-panel.mjs +4 -4
  245. package/fesm2022/aril-ui-panel.mjs.map +1 -1
  246. package/fesm2022/aril-ui-password.mjs +3 -3
  247. package/fesm2022/aril-ui-password.mjs.map +1 -1
  248. package/fesm2022/aril-ui-pdf-viewer.mjs +3 -3
  249. package/fesm2022/aril-ui-pdf-viewer.mjs.map +1 -1
  250. package/fesm2022/aril-ui-progressbar.mjs +3 -3
  251. package/fesm2022/aril-ui-progressbar.mjs.map +1 -1
  252. package/fesm2022/aril-ui-radioButton.mjs +3 -3
  253. package/fesm2022/aril-ui-radioButton.mjs.map +1 -1
  254. package/fesm2022/aril-ui-relativeDateSelector.mjs +4 -4
  255. package/fesm2022/aril-ui-relativeDateSelector.mjs.map +1 -1
  256. package/fesm2022/aril-ui-selectBox.mjs +5 -5
  257. package/fesm2022/aril-ui-selectBox.mjs.map +1 -1
  258. package/fesm2022/aril-ui-switch.mjs +3 -3
  259. package/fesm2022/aril-ui-switch.mjs.map +1 -1
  260. package/fesm2022/aril-ui-table-expand.mjs +14 -14
  261. package/fesm2022/aril-ui-table-expand.mjs.map +1 -1
  262. package/fesm2022/aril-ui-table.mjs +15 -15
  263. package/fesm2022/aril-ui-table.mjs.map +1 -1
  264. package/fesm2022/aril-ui-tag.mjs +3 -3
  265. package/fesm2022/aril-ui-tag.mjs.map +1 -1
  266. package/fesm2022/aril-ui-tagBox.mjs +5 -5
  267. package/fesm2022/aril-ui-tagBox.mjs.map +1 -1
  268. package/fesm2022/aril-ui-text.mjs +3 -3
  269. package/fesm2022/aril-ui-text.mjs.map +1 -1
  270. package/fesm2022/aril-ui-textArea.mjs +3 -3
  271. package/fesm2022/aril-ui-textArea.mjs.map +1 -1
  272. package/fesm2022/aril-ui-toggle-button.mjs +4 -4
  273. package/fesm2022/aril-ui-toggle-button.mjs.map +1 -1
  274. package/fesm2022/aril-ui-tooltip.mjs +3 -3
  275. package/fesm2022/aril-ui-tooltip.mjs.map +1 -1
  276. package/fesm2022/aril-ui-translate-input.mjs +6 -6
  277. package/fesm2022/aril-ui-translate-input.mjs.map +1 -1
  278. package/fesm2022/aril-ui-tree.mjs +4 -4
  279. package/fesm2022/aril-ui-tree.mjs.map +1 -1
  280. package/fesm2022/aril-ui-treeSelect.mjs +4 -4
  281. package/fesm2022/aril-ui-treeSelect.mjs.map +1 -1
  282. package/fesm2022/aril-ui-treeTable.mjs +4 -4
  283. package/fesm2022/aril-ui-treeTable.mjs.map +1 -1
  284. package/fesm2022/aril-ui-value.mjs +5 -5
  285. package/fesm2022/aril-ui-value.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 +210 -210
  304. package/theme/layout/app/favorite-pages/favorite-pages-sidebar.component.d.ts +16 -0
  305. package/theme/layout/app/history/history-sidebar.component.d.ts +16 -0
  306. package/theme/layout/app/notifications/notifications-sidebar.component.d.ts +16 -0
  307. package/theme/layout/app/site-map/site-map-sidebar.component.d.ts +16 -0
  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 +4 -6
  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 +3 -6
  367. package/ui-business/enumPicker/src/enum-picker.component.d.ts +23 -23
  368. package/ui-business/image-viewer/src/aril-image-viewer.component.d.ts +8 -8
  369. package/ui-business/multiple-ref-value/src/multiple-ref-value.component.d.ts +2 -5
  370. package/ui-business/ref-value/src/ref-value.component.d.ts +5 -5
  371. package/ui-business/rolePicker/src/role-picker.component.d.ts +6 -6
  372. package/ui-business/trace-drawer/src/trace-drawer.component.d.ts +8 -8
  373. package/ui-business/trace-id/src/trace-id.component.d.ts +6 -6
  374. package/ui-business/userPicker/src/user-picker.component.d.ts +3 -3
  375. package/util/block/src/block.d.ts +4 -4
  376. package/util/lib/src/types.d.ts +16 -0
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-tagBox.mjs","sources":["../../projects/aril/ui/tagBox/src/tag-box.component.ts","../../projects/aril/ui/tagBox/src/tag-box.component.html","../../projects/aril/ui/tagBox/aril-ui-tagBox.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { NgClass } from '@angular/common';\r\nimport { Component, ElementRef, ViewChild, input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { DxTagBoxModule } from 'devextreme-angular/ui/tag-box';\r\n\r\nimport {\r\n\tBaseInputComponent,\r\n\tDXInputErrorMessagePipe,\r\n\tInputErrorMessagePipe,\r\n\tValueAccessorDirective\r\n} from 'aril/ui/lib';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-tag-box',\r\n\ttemplateUrl: './tag-box.component.html',\r\n\timports: [ReactiveFormsModule, DxTagBoxModule, DXInputErrorMessagePipe, NgClass],\r\n\tproviders: [InputErrorMessagePipe],\r\n\thostDirectives: [ValueAccessorDirective]\r\n})\r\nexport class TagBoxComponent extends BaseInputComponent {\r\n\tplaceholder = input<string>('');\r\n\tvalueExpr = input.required<string>();\r\n\tdisplayExpr = input.required<string>();\r\n\tmaxDisplayedTags = input(5);\r\n\ttabindex = input<number>(0);\r\n\tacceptCustomValue = input(true);\r\n\titems = input.required<Array<string | number>>();\r\n\r\n\t@ViewChild('tagBox') tagBox!: ElementRef;\r\n\r\n\tonCustomItemCreating(e: any) {\r\n\t\tlet newValues = [];\r\n\r\n\t\tconst items = e.component.option('items');\r\n\t\tconst selectedItems = e.component.option('selectedItems');\r\n\r\n\t\tif (e.text.indexOf(',') != -1) newValues = e.text.replace(/ /g, '').split(',');\r\n\t\telse if (e.text.indexOf('|') != -1) newValues = e.text.replace(/ /g, '').split('|');\r\n\t\telse if (e.text.indexOf(' ') != -1) newValues = e.text.split(' ');\r\n\t\telse newValues.push(e.text);\r\n\r\n\t\tnewValues.forEach((value: string) => {\r\n\t\t\tif (selectedItems.indexOf(value) == -1) {\r\n\t\t\t\tselectedItems.push(value);\r\n\t\t\t\titems?.unshift(value);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\te.component.option('items', items);\r\n\t\te.component.option('value', selectedItems);\r\n\t\te.text = '';\r\n\t}\r\n}\r\n","<dx-tag-box\r\n\t#ref\r\n\t[items]=\"items()\"\r\n\t[valueExpr]=\"valueExpr()\"\r\n\t[displayExpr]=\"displayExpr()\"\r\n\t[showSelectionControls]=\"!acceptCustomValue()\"\r\n\t[applyValueMode]=\"acceptCustomValue() ? 'instantly' : 'useButtons'\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[multiline]=\"false\"\r\n\t[tabIndex]=\"tabindex()\"\r\n\t[acceptCustomValue]=\"acceptCustomValue()\"\r\n\t[searchEnabled]=\"true\"\r\n\t[maxDisplayedTags]=\"maxDisplayedTags()\"\r\n\t[showMultiTagOnly]=\"false\"\r\n\t[showClearButton]=\"true\"\r\n\t[showDropDownButton]=\"true\"\r\n\t(onCustomItemCreating)=\"onCustomItemCreating($event)\"\r\n\t[isValid]=\"ngControl?.control?.valid || ngControl?.control?.pristine || ngControl?.control?.disabled || false\"\r\n\t[validationError]=\"ngControl?.control?.errors | dxInputErrorMessage: ngControl?.control\"\r\n\tvalidationMessagePosition=\"top\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n\t<div *dxTemplate=\"let data of 'dropDownButton'\">\r\n\t\t<i [class]=\"!ref.opened ? 'pi pi-chevron-down' :'pi pi-chevron-up'\" style=\"font-size: xx-small\"></i>\r\n </div>\r\n</dx-tag-box>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AAsBM,MAAO,eAAgB,SAAQ,kBAAkB,CAAA;AARvD,IAAA,WAAA,GAAA;;AASC,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAChC,QAAA,IAAA,CAAA,SAAS,GAAG,KAA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;kBAR3B,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,YACN,cAAc,EAAA,OAAA,EAEf,CAAC,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,OAAO,CAAC,aACrE,CAAC,qBAAqB,CAAC,EAClB,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,mqCAAA,EAAA,CAAA;8BAWnB,MAAM,EAAA,CAAA;sBAA1B,SAAS;uBAAC,QAAQ,CAAA;;;AE/BpB;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-tagBox.mjs","sources":["../../projects/aril/ui/tagBox/src/tag-box.component.ts","../../projects/aril/ui/tagBox/src/tag-box.component.html","../../projects/aril/ui/tagBox/aril-ui-tagBox.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { NgClass } from '@angular/common';\r\nimport { Component, ElementRef, ViewChild, input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { DxTagBoxModule } from 'devextreme-angular/ui/tag-box';\r\n\r\nimport {\r\n\tBaseInputComponent,\r\n\tDXInputErrorMessagePipe,\r\n\tInputErrorMessagePipe,\r\n\tValueAccessorDirective\r\n} from 'aril/ui/lib';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-tag-box',\r\n\ttemplateUrl: './tag-box.component.html',\r\n\timports: [ReactiveFormsModule, DxTagBoxModule, DXInputErrorMessagePipe, NgClass],\r\n\tproviders: [InputErrorMessagePipe],\r\n\thostDirectives: [ValueAccessorDirective]\r\n})\r\nexport class TagBoxComponent extends BaseInputComponent {\r\n\tplaceholder = input<string>('');\r\n\tvalueExpr = input.required<string>();\r\n\tdisplayExpr = input.required<string>();\r\n\tmaxDisplayedTags = input(5);\r\n\ttabindex = input<number>(0);\r\n\tacceptCustomValue = input(true);\r\n\titems = input.required<Array<string | number>>();\r\n\r\n\t@ViewChild('tagBox') tagBox!: ElementRef;\r\n\r\n\tonCustomItemCreating(e: any) {\r\n\t\tlet newValues = [];\r\n\r\n\t\tconst items = e.component.option('items');\r\n\t\tconst selectedItems = e.component.option('selectedItems');\r\n\r\n\t\tif (e.text.indexOf(',') != -1) newValues = e.text.replace(/ /g, '').split(',');\r\n\t\telse if (e.text.indexOf('|') != -1) newValues = e.text.replace(/ /g, '').split('|');\r\n\t\telse if (e.text.indexOf(' ') != -1) newValues = e.text.split(' ');\r\n\t\telse newValues.push(e.text);\r\n\r\n\t\tnewValues.forEach((value: string) => {\r\n\t\t\tif (selectedItems.indexOf(value) == -1) {\r\n\t\t\t\tselectedItems.push(value);\r\n\t\t\t\titems?.unshift(value);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\te.component.option('items', items);\r\n\t\te.component.option('value', selectedItems);\r\n\t\te.text = '';\r\n\t}\r\n}\r\n","<dx-tag-box\r\n\t#ref\r\n\t[items]=\"items()\"\r\n\t[valueExpr]=\"valueExpr()\"\r\n\t[displayExpr]=\"displayExpr()\"\r\n\t[showSelectionControls]=\"!acceptCustomValue()\"\r\n\t[applyValueMode]=\"acceptCustomValue() ? 'instantly' : 'useButtons'\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[multiline]=\"false\"\r\n\t[tabIndex]=\"tabindex()\"\r\n\t[acceptCustomValue]=\"acceptCustomValue()\"\r\n\t[searchEnabled]=\"true\"\r\n\t[maxDisplayedTags]=\"maxDisplayedTags()\"\r\n\t[showMultiTagOnly]=\"false\"\r\n\t[showClearButton]=\"true\"\r\n\t[showDropDownButton]=\"true\"\r\n\t(onCustomItemCreating)=\"onCustomItemCreating($event)\"\r\n\t[isValid]=\"ngControl?.control?.valid || ngControl?.control?.pristine || ngControl?.control?.disabled || false\"\r\n\t[validationError]=\"ngControl?.control?.errors | dxInputErrorMessage: ngControl?.control\"\r\n\tvalidationMessagePosition=\"top\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n\t<div *dxTemplate=\"let data of 'dropDownButton'\">\r\n\t\t<i [class]=\"!ref.opened ? 'pi pi-chevron-down' :'pi pi-chevron-up'\" style=\"font-size: xx-small\"></i>\r\n </div>\r\n</dx-tag-box>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AAsBM,MAAO,eAAgB,SAAQ,kBAAkB,CAAA;AARvD,IAAA,WAAA,GAAA;;AASC,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAS,EAAE,CAAC;AAC/B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAU;AACpC,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAU;AACtC,QAAA,IAAA,CAAA,gBAAgB,GAAG,KAAK,CAAC,CAAC,CAAC;AAC3B,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,CAAC,CAAC;AAC3B,QAAA,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAAC,IAAI,CAAC;AAC/B,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,EAA0B;AA0BhD,IAAA;AAtBA,IAAA,oBAAoB,CAAC,CAAM,EAAA;QAC1B,IAAI,SAAS,GAAG,EAAE;QAElB,MAAM,KAAK,GAAG,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC;QACzC,MAAM,aAAa,GAAG,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,eAAe,CAAC;QAEzD,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAAE,YAAA,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC;aACzE,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAAE,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AAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,mBAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,cAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,uBAAuB,EAAA,IAAA,EAAA,qBAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAI1D,eAAe,EAAA,UAAA,EAAA,CAAA;kBAR3B,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,YACN,cAAc,EAAA,OAAA,EAEf,CAAC,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,OAAO,CAAC,aACrE,CAAC,qBAAqB,CAAC,EAAA,cAAA,EAClB,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,mqCAAA,EAAA;8BAWnB,MAAM,EAAA,CAAA;sBAA1B,SAAS;uBAAC,QAAQ;;;AE/BpB;;AAEG;;;;"}
@@ -38,10 +38,10 @@ class TextComponent extends BaseInputComponent {
38
38
  this.ngControl.control.setValue(transformedValue);
39
39
  }
40
40
  }
41
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
42
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: TextComponent, isStandalone: true, selector: "aril-text[ngModel], aril-text[formControl], aril-text[formControlName]", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<ng-template #input>\r\n\t<input\r\n\t\tpInputText\r\n\t\ttype=\"text\"\r\n\t\t[class]=\"_sizeClass()\"\r\n\t\t[placeholder]=\"placeholder()\"\r\n\t\t[tabindex]=\"tabindex()\"\r\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t\t[tooltipOptions]=\"tooltipOptions\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(input)=\"onInputChange($event)\" />\r\n</ng-template>\r\n\r\n@if (_icon()) {\r\n\t<span [class]=\"_iconPosClass()\">\r\n\t\t<i [class]=\"_icon()\"></i>\r\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\r\n\t</span>\r\n} @else {\r\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i3.InputText, selector: "[pInputText]", inputs: ["variant"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
41
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
42
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: TextComponent, isStandalone: true, selector: "aril-text[ngModel], aril-text[formControl], aril-text[formControlName]", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<ng-template #input>\r\n\t<input\r\n\t\tpInputText\r\n\t\ttype=\"text\"\r\n\t\t[class]=\"_sizeClass()\"\r\n\t\t[placeholder]=\"placeholder()\"\r\n\t\t[tabindex]=\"tabindex()\"\r\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t\t[tooltipOptions]=\"tooltipOptions\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(input)=\"onInputChange($event)\" />\r\n</ng-template>\r\n\r\n@if (_icon()) {\r\n\t<span [class]=\"_iconPosClass()\">\r\n\t\t<i [class]=\"_icon()\"></i>\r\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\r\n\t</span>\r\n} @else {\r\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i3.InputText, selector: "[pInputText]", inputs: ["variant"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
43
43
  }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextComponent, decorators: [{
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TextComponent, decorators: [{
45
45
  type: Component,
46
46
  args: [{ standalone: true, selector: 'aril-text[ngModel], aril-text[formControl], aril-text[formControlName]', imports: [ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, NgTemplateOutlet], hostDirectives: [ValueAccessorDirective], template: "<ng-template #input>\r\n\t<input\r\n\t\tpInputText\r\n\t\ttype=\"text\"\r\n\t\t[class]=\"_sizeClass()\"\r\n\t\t[placeholder]=\"placeholder()\"\r\n\t\t[tabindex]=\"tabindex()\"\r\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t\t[tooltipOptions]=\"tooltipOptions\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(input)=\"onInputChange($event)\" />\r\n</ng-template>\r\n\r\n@if (_icon()) {\r\n\t<span [class]=\"_iconPosClass()\">\r\n\t\t<i [class]=\"_icon()\"></i>\r\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\r\n\t</span>\r\n} @else {\r\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\r\n}\r\n" }]
47
47
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-text.mjs","sources":["../../projects/aril/ui/text/src/text.component.ts","../../projects/aril/ui/text/src/text.component.html","../../projects/aril/ui/text/aril-ui-text.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\r\nimport { Component, computed, input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { InputTextModule } from 'primeng/inputtext';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\nimport {\r\n\tBaseInputComponent,\r\n\tIconPosTypes,\r\n\tInputErrorMessagePipe,\r\n\tPrimeIcon,\r\n\tValueAccessorDirective,\r\n\ticonPosTransform,\r\n\ticonTransform\r\n} from 'aril/ui/lib';\r\n\r\ntype Size = 'sm' | 'md' | 'lg';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-text[ngModel], aril-text[formControl], aril-text[formControlName]',\r\n\ttemplateUrl: './text.component.html',\r\n\timports: [ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, NgTemplateOutlet],\r\n\thostDirectives: [ValueAccessorDirective]\r\n})\r\nexport class TextComponent extends BaseInputComponent {\r\n\tplaceholder = input<string>('');\r\n\ttabindex = input<number>();\r\n\ticon = input<PrimeIcon>();\r\n\ticonPos = input<IconPosTypes>('left');\r\n\tsize = input<Size>('md');\r\n\r\n\t_icon = computed(() => iconTransform(this.icon()!));\r\n\t_iconPosClass = computed(() => iconPosTransform(this.iconPos()!));\r\n\r\n\t_sizeClass = computed(() => {\r\n\t\tswitch (this.size()) {\r\n\t\t\tcase 'sm':\r\n\t\t\t\treturn 'p-inputtext-sm';\r\n\t\t\tcase 'md':\r\n\t\t\t\treturn '';\r\n\t\t\tcase 'lg':\r\n\t\t\t\treturn 'p-inputtext-lg';\r\n\t\t}\r\n\t});\r\n\r\n\tonInputChange(event: Event) {\r\n\t\tconst value = (event.target as HTMLInputElement).value;\r\n\t\tconst transformedValue = value === '' ? null : value;\r\n\t\tif (this.ngControl.control) {\r\n\t\t\tthis.ngControl.control.setValue(transformedValue);\r\n\t\t}\r\n\t}\r\n}\r\n","<ng-template #input>\r\n\t<input\r\n\t\tpInputText\r\n\t\ttype=\"text\"\r\n\t\t[class]=\"_sizeClass()\"\r\n\t\t[placeholder]=\"placeholder()\"\r\n\t\t[tabindex]=\"tabindex()\"\r\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t\t[tooltipOptions]=\"tooltipOptions\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(input)=\"onInputChange($event)\" />\r\n</ng-template>\r\n\r\n@if (_icon()) {\r\n\t<span [class]=\"_iconPosClass()\">\r\n\t\t<i [class]=\"_icon()\"></i>\r\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\r\n\t</span>\r\n} @else {\r\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AA0BM,MAAO,aAAc,SAAQ,kBAAkB,CAAA;AAPrD,IAAA,WAAA,GAAA;;AAQC,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;QAChC,IAAQ,CAAA,QAA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,EAAE,qBAAqB,EAAE,gBAAgB,CAAC,EACvF,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,krBAAA,EAAA,CAAA;;;AExBzC;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-text.mjs","sources":["../../projects/aril/ui/text/src/text.component.ts","../../projects/aril/ui/text/src/text.component.html","../../projects/aril/ui/text/aril-ui-text.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\r\nimport { Component, computed, input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { InputTextModule } from 'primeng/inputtext';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\nimport {\r\n\tBaseInputComponent,\r\n\tIconPosTypes,\r\n\tInputErrorMessagePipe,\r\n\tPrimeIcon,\r\n\tValueAccessorDirective,\r\n\ticonPosTransform,\r\n\ticonTransform\r\n} from 'aril/ui/lib';\r\n\r\ntype Size = 'sm' | 'md' | 'lg';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-text[ngModel], aril-text[formControl], aril-text[formControlName]',\r\n\ttemplateUrl: './text.component.html',\r\n\timports: [ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, NgTemplateOutlet],\r\n\thostDirectives: [ValueAccessorDirective]\r\n})\r\nexport class TextComponent extends BaseInputComponent {\r\n\tplaceholder = input<string>('');\r\n\ttabindex = input<number>();\r\n\ticon = input<PrimeIcon>();\r\n\ticonPos = input<IconPosTypes>('left');\r\n\tsize = input<Size>('md');\r\n\r\n\t_icon = computed(() => iconTransform(this.icon()!));\r\n\t_iconPosClass = computed(() => iconPosTransform(this.iconPos()!));\r\n\r\n\t_sizeClass = computed(() => {\r\n\t\tswitch (this.size()) {\r\n\t\t\tcase 'sm':\r\n\t\t\t\treturn 'p-inputtext-sm';\r\n\t\t\tcase 'md':\r\n\t\t\t\treturn '';\r\n\t\t\tcase 'lg':\r\n\t\t\t\treturn 'p-inputtext-lg';\r\n\t\t}\r\n\t});\r\n\r\n\tonInputChange(event: Event) {\r\n\t\tconst value = (event.target as HTMLInputElement).value;\r\n\t\tconst transformedValue = value === '' ? null : value;\r\n\t\tif (this.ngControl.control) {\r\n\t\t\tthis.ngControl.control.setValue(transformedValue);\r\n\t\t}\r\n\t}\r\n}\r\n","<ng-template #input>\r\n\t<input\r\n\t\tpInputText\r\n\t\ttype=\"text\"\r\n\t\t[class]=\"_sizeClass()\"\r\n\t\t[placeholder]=\"placeholder()\"\r\n\t\t[tabindex]=\"tabindex()\"\r\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t\t[tooltipOptions]=\"tooltipOptions\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(input)=\"onInputChange($event)\" />\r\n</ng-template>\r\n\r\n@if (_icon()) {\r\n\t<span [class]=\"_iconPosClass()\">\r\n\t\t<i [class]=\"_icon()\"></i>\r\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\r\n\t</span>\r\n} @else {\r\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AA0BM,MAAO,aAAc,SAAQ,kBAAkB,CAAA;AAPrD,IAAA,WAAA,GAAA;;AAQC,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAS,EAAE,CAAC;QAC/B,IAAA,CAAA,QAAQ,GAAG,KAAK,EAAU;QAC1B,IAAA,CAAA,IAAI,GAAG,KAAK,EAAa;AACzB,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAe,MAAM,CAAC;AACrC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAO,IAAI,CAAC;AAExB,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAC,MAAM,aAAa,CAAC,IAAI,CAAC,IAAI,EAAG,CAAC,CAAC;AACnD,QAAA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AA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,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,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAG1F,aAAa,EAAA,UAAA,EAAA,CAAA;kBAPzB,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,YACN,wEAAwE,EAAA,OAAA,EAEzE,CAAC,mBAAmB,EAAE,eAAe,EAAE,aAAa,EAAE,qBAAqB,EAAE,gBAAgB,CAAC,EAAA,cAAA,EACvF,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,krBAAA,EAAA;;;AExBzC;;AAEG;;;;"}
@@ -18,10 +18,10 @@ class TextAreaComponent extends BaseInputComponent {
18
18
  this.tabindex = input();
19
19
  this.placeholder = input('');
20
20
  }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextAreaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
22
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: TextAreaComponent, isStandalone: true, selector: "aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, cols: { classPropertyName: "cols", publicName: "cols", isSignal: true, isRequired: false, transformFunction: null }, isAutoResize: { classPropertyName: "isAutoResize", publicName: "isAutoResize", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<textarea\r\n\tpInputTextarea\r\n\t[class.w-full]=\"!cols()\"\r\n\t[rows]=\"rows()\"\r\n\t[cols]=\"cols()\"\r\n\t[autoResize]=\"isAutoResize()\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"></textarea>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: InputTextareaModule }, { kind: "directive", type: i3.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize", "variant"], outputs: ["onResize"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }] }); }
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TextAreaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
22
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: TextAreaComponent, isStandalone: true, selector: "aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, cols: { classPropertyName: "cols", publicName: "cols", isSignal: true, isRequired: false, transformFunction: null }, isAutoResize: { classPropertyName: "isAutoResize", publicName: "isAutoResize", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<textarea\r\n\tpInputTextarea\r\n\t[class.w-full]=\"!cols()\"\r\n\t[rows]=\"rows()\"\r\n\t[cols]=\"cols()\"\r\n\t[autoResize]=\"isAutoResize()\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"></textarea>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: InputTextareaModule }, { kind: "directive", type: i3.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize", "variant"], outputs: ["onResize"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }] }); }
23
23
  }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextAreaComponent, decorators: [{
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TextAreaComponent, decorators: [{
25
25
  type: Component,
26
26
  args: [{ standalone: true, selector: 'aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]', imports: [ReactiveFormsModule, InputTextareaModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<textarea\r\n\tpInputTextarea\r\n\t[class.w-full]=\"!cols()\"\r\n\t[rows]=\"rows()\"\r\n\t[cols]=\"cols()\"\r\n\t[autoResize]=\"isAutoResize()\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"></textarea>\r\n" }]
27
27
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-textArea.mjs","sources":["../../projects/aril/ui/textArea/src/text-area.component.ts","../../projects/aril/ui/textArea/src/text-area.component.html","../../projects/aril/ui/textArea/aril-ui-textArea.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { InputTextareaModule } from 'primeng/inputtextarea';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]',\r\n\ttemplateUrl: './text-area.component.html',\r\n\timports: [ReactiveFormsModule, InputTextareaModule, TooltipModule, InputErrorMessagePipe],\r\n\thostDirectives: [ValueAccessorDirective]\r\n})\r\nexport class TextAreaComponent extends BaseInputComponent {\r\n\trows = input<number>();\r\n\tcols = input<number>();\r\n\tisAutoResize = input<boolean>(true);\r\n\ttabindex = input<number>();\r\n\tplaceholder = input<string>('');\r\n}\r\n","<textarea\r\n\tpInputTextarea\r\n\t[class.w-full]=\"!cols()\"\r\n\t[rows]=\"rows()\"\r\n\t[cols]=\"cols()\"\r\n\t[autoResize]=\"isAutoResize()\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\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AAA,IAAI,EACN,QAAA,EAAA,uFAAuF,EAExF,OAAA,EAAA,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,aAAa,EAAE,qBAAqB,CAAC,EACzE,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,2dAAA,EAAA,CAAA;;;AEbzC;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-textArea.mjs","sources":["../../projects/aril/ui/textArea/src/text-area.component.ts","../../projects/aril/ui/textArea/src/text-area.component.html","../../projects/aril/ui/textArea/aril-ui-textArea.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { InputTextareaModule } from 'primeng/inputtextarea';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]',\r\n\ttemplateUrl: './text-area.component.html',\r\n\timports: [ReactiveFormsModule, InputTextareaModule, TooltipModule, InputErrorMessagePipe],\r\n\thostDirectives: [ValueAccessorDirective]\r\n})\r\nexport class TextAreaComponent extends BaseInputComponent {\r\n\trows = input<number>();\r\n\tcols = input<number>();\r\n\tisAutoResize = input<boolean>(true);\r\n\ttabindex = input<number>();\r\n\tplaceholder = input<string>('');\r\n}\r\n","<textarea\r\n\tpInputTextarea\r\n\t[class.w-full]=\"!cols()\"\r\n\t[rows]=\"rows()\"\r\n\t[cols]=\"cols()\"\r\n\t[autoResize]=\"isAutoResize()\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUp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mBAAmB,EAAE,aAAa,EAAE,qBAAqB,CAAC,EAAA,cAAA,EACzE,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,2dAAA,EAAA;;;AEbzC;;AAEG;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { NgClass, NgStyle } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { input, EventEmitter, Component, Output } from '@angular/core';
3
+ import { input, EventEmitter, Output, Component } from '@angular/core';
4
4
  import * as i1 from 'primeng/button';
5
5
  import { ButtonModule } from 'primeng/button';
6
6
 
@@ -14,10 +14,10 @@ class ToggleButtonComponent {
14
14
  this.selectedIndex = index;
15
15
  this.selectionChange.emit(this.selectedIndex);
16
16
  }
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ToggleButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
18
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: ToggleButtonComponent, isStandalone: true, selector: "aril-toggle-button", inputs: { buttonLabels: { classPropertyName: "buttonLabels", publicName: "buttonLabels", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { selectionChange: "selectionChange" }, ngImport: i0, template: "<div class=\"toggle-button-container\">\r\n <div>\r\n @for(label of buttonLabels();track label; let i = $index){\r\n <button\r\n pButton\r\n (click)=\"toggleButton(i)\"\r\n [ngClass]=\"{'p-button-success': selectedIndex === i, 'p-button-secondary p-button-outlined': selectedIndex !== i}\"\r\n [ngStyle]=\"{'border-color': selectedIndex !== i ? '#E6E8EB' : null}\"\r\n >\r\n {{label}}</button>\r\n }\r\n </div>\r\n</div>", styles: [".toggle-button-container{width:100%;display:flex;justify-content:center}button{margin:0!important;border-radius:0!important}button:first-child{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}button:last-child{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ToggleButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
18
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: ToggleButtonComponent, isStandalone: true, selector: "aril-toggle-button", inputs: { buttonLabels: { classPropertyName: "buttonLabels", publicName: "buttonLabels", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { selectionChange: "selectionChange" }, ngImport: i0, template: "<div class=\"toggle-button-container\">\r\n <div>\r\n @for(label of buttonLabels();track label; let i = $index){\r\n <button\r\n pButton\r\n (click)=\"toggleButton(i)\"\r\n [ngClass]=\"{'p-button-success': selectedIndex === i, 'p-button-secondary p-button-outlined': selectedIndex !== i}\"\r\n [ngStyle]=\"{'border-color': selectedIndex !== i ? '#E6E8EB' : null}\"\r\n >\r\n {{label}}</button>\r\n }\r\n </div>\r\n</div>", styles: [".toggle-button-container{width:100%;display:flex;justify-content:center}button{margin:0!important;border-radius:0!important}button:first-child{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}button:last-child{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
19
19
  }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ToggleButtonComponent, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ToggleButtonComponent, decorators: [{
21
21
  type: Component,
22
22
  args: [{ standalone: true, selector: 'aril-toggle-button', imports: [ButtonModule, NgClass, NgStyle], template: "<div class=\"toggle-button-container\">\r\n <div>\r\n @for(label of buttonLabels();track label; let i = $index){\r\n <button\r\n pButton\r\n (click)=\"toggleButton(i)\"\r\n [ngClass]=\"{'p-button-success': selectedIndex === i, 'p-button-secondary p-button-outlined': selectedIndex !== i}\"\r\n [ngStyle]=\"{'border-color': selectedIndex !== i ? '#E6E8EB' : null}\"\r\n >\r\n {{label}}</button>\r\n }\r\n </div>\r\n</div>", styles: [".toggle-button-container{width:100%;display:flex;justify-content:center}button{margin:0!important;border-radius:0!important}button:first-child{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}button:last-child{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}\n"] }]
23
23
  }], propDecorators: { selectionChange: [{
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-toggle-button.mjs","sources":["../../projects/aril/ui/toggle-button/src/toggle-button.component.ts","../../projects/aril/ui/toggle-button/src/toggle-button.component.html","../../projects/aril/ui/toggle-button/aril-ui-toggle-button.ts"],"sourcesContent":["import { NgClass, NgStyle } from '@angular/common';\r\nimport { Component, Input, Output, EventEmitter, input } from '@angular/core';\r\nimport { ButtonModule } from 'primeng/button';\r\n\r\n@Component({ \r\n standalone: true,\r\n selector: 'aril-toggle-button',\r\n templateUrl: './toggle-button.component.html',\r\n styleUrls: ['./toggle-button.component.scss'],\r\n imports: [ButtonModule, NgClass,NgStyle]\r\n})\r\nexport class ToggleButtonComponent {\r\n buttonLabels = input.required<string[]>();\r\n @Output() selectionChange: EventEmitter<number> = new EventEmitter<number>();\r\n\r\n selectedIndex = 0;\r\n\r\n toggleButton(index: number) {\r\n this.selectedIndex = index;\r\n this.selectionChange.emit(this.selectedIndex);\r\n }\r\n}","<div class=\"toggle-button-container\">\r\n <div>\r\n @for(label of buttonLabels();track label; let i = $index){\r\n <button\r\n pButton\r\n (click)=\"toggleButton(i)\"\r\n [ngClass]=\"{'p-button-success': selectedIndex === i, 'p-button-secondary p-button-outlined': selectedIndex !== i}\"\r\n [ngStyle]=\"{'border-color': selectedIndex !== i ? '#E6E8EB' : null}\"\r\n >\r\n {{label}}</button>\r\n }\r\n </div>\r\n</div>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAWa,qBAAqB,CAAA;AAPlC,IAAA,WAAA,GAAA;AAQG,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAC,QAAQ,EAAY,CAAC;AACjC,QAAA,IAAA,CAAA,eAAe,GAAyB,IAAI,YAAY,EAAU,CAAC;QAE7E,IAAa,CAAA,aAAA,GAAG,CAAC,CAAC;AAMnB,KAAA;AAJC,IAAA,YAAY,CAAC,KAAa,EAAA;AACxB,QAAA,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;KAC/C;8GATU,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,uRCXlC,udAYM,EAAA,MAAA,EAAA,CAAA,iUAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDHM,YAAY,EAAE,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,aAAA,EAAA,OAAA,EAAA,MAAA,EAAA,SAAA,EAAA,UAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,OAAO,oFAAC,OAAO,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAE5B,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;iCACI,IAAI,EAAA,QAAA,EACN,oBAAoB,EAGrB,OAAA,EAAA,CAAC,YAAY,EAAE,OAAO,EAAC,OAAO,CAAC,EAAA,QAAA,EAAA,udAAA,EAAA,MAAA,EAAA,CAAA,iUAAA,CAAA,EAAA,CAAA;8BAI9B,eAAe,EAAA,CAAA;sBAAxB,MAAM;;;AEbT;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-toggle-button.mjs","sources":["../../projects/aril/ui/toggle-button/src/toggle-button.component.ts","../../projects/aril/ui/toggle-button/src/toggle-button.component.html","../../projects/aril/ui/toggle-button/aril-ui-toggle-button.ts"],"sourcesContent":["import { NgClass, NgStyle } from '@angular/common';\r\nimport { Component, Input, Output, EventEmitter, input } from '@angular/core';\r\nimport { ButtonModule } from 'primeng/button';\r\n\r\n@Component({ \r\n standalone: true,\r\n selector: 'aril-toggle-button',\r\n templateUrl: './toggle-button.component.html',\r\n styleUrls: ['./toggle-button.component.scss'],\r\n imports: [ButtonModule, NgClass,NgStyle]\r\n})\r\nexport class ToggleButtonComponent {\r\n buttonLabels = input.required<string[]>();\r\n @Output() selectionChange: EventEmitter<number> = new EventEmitter<number>();\r\n\r\n selectedIndex = 0;\r\n\r\n toggleButton(index: number) {\r\n this.selectedIndex = index;\r\n this.selectionChange.emit(this.selectedIndex);\r\n }\r\n}","<div class=\"toggle-button-container\">\r\n <div>\r\n @for(label of buttonLabels();track label; let i = $index){\r\n <button\r\n pButton\r\n (click)=\"toggleButton(i)\"\r\n [ngClass]=\"{'p-button-success': selectedIndex === i, 'p-button-secondary p-button-outlined': selectedIndex !== i}\"\r\n [ngStyle]=\"{'border-color': selectedIndex !== i ? '#E6E8EB' : null}\"\r\n >\r\n {{label}}</button>\r\n }\r\n </div>\r\n</div>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAWa,qBAAqB,CAAA;AAPlC,IAAA,WAAA,GAAA;AAQG,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAC,QAAQ,EAAY;AAChC,QAAA,IAAA,CAAA,eAAe,GAAyB,IAAI,YAAY,EAAU;QAE5E,IAAA,CAAA,aAAa,GAAG,CAAC;AAMlB,IAAA;AAJC,IAAA,YAAY,CAAC,KAAa,EAAA;AACxB,QAAA,IAAI,CAAC,aAAa,GAAG,KAAK;QAC1B,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC;IAC/C;+GATW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,qBAAqB,uRCXlC,udAYM,EAAA,MAAA,EAAA,CAAA,iUAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDHM,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,aAAA,EAAA,OAAA,EAAA,MAAA,EAAA,SAAA,EAAA,UAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,OAAO,oFAAC,OAAO,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAE5B,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;iCACI,IAAI,EAAA,QAAA,EACN,oBAAoB,EAAA,OAAA,EAGrB,CAAC,YAAY,EAAE,OAAO,EAAC,OAAO,CAAC,EAAA,QAAA,EAAA,udAAA,EAAA,MAAA,EAAA,CAAA,iUAAA,CAAA,EAAA;8BAI9B,eAAe,EAAA,CAAA;sBAAxB;;;AEbH;;AAEG;;;;"}
@@ -14,10 +14,10 @@ class TooltipComponent {
14
14
  this.tooltipStyleClass = input('');
15
15
  this.appendTo = input('body');
16
16
  }
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
18
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: TooltipComponent, isStandalone: true, selector: "aril-tooltip", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, showDelay: { classPropertyName: "showDelay", publicName: "showDelay", isSignal: true, isRequired: false, transformFunction: null }, hideDelay: { classPropertyName: "hideDelay", publicName: "hideDelay", isSignal: true, isRequired: false, transformFunction: null }, tooltipStyle: { classPropertyName: "tooltipStyle", publicName: "tooltipStyle", isSignal: true, isRequired: false, transformFunction: null }, tooltipStyleClass: { classPropertyName: "tooltipStyleClass", publicName: "tooltipStyleClass", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span\r\n\t[pTooltip]=\"template() ?? text()\"\r\n\t[tooltipPosition]=\"position()\"\r\n\t[showDelay]=\"showDelay()\"\r\n\t[hideDelay]=\"hideDelay()\"\r\n\t[style]=\"tooltipStyle()\"\r\n\t[tooltipStyleClass]=\"tooltipStyleClass()\"\r\n\t[appendTo]=\"appendTo()\">\r\n\t<ng-content></ng-content>\r\n</span>\r\n", dependencies: [{ kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }] }); }
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
18
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: TooltipComponent, isStandalone: true, selector: "aril-tooltip", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, showDelay: { classPropertyName: "showDelay", publicName: "showDelay", isSignal: true, isRequired: false, transformFunction: null }, hideDelay: { classPropertyName: "hideDelay", publicName: "hideDelay", isSignal: true, isRequired: false, transformFunction: null }, tooltipStyle: { classPropertyName: "tooltipStyle", publicName: "tooltipStyle", isSignal: true, isRequired: false, transformFunction: null }, tooltipStyleClass: { classPropertyName: "tooltipStyleClass", publicName: "tooltipStyleClass", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span\r\n\t[pTooltip]=\"template() ?? text()\"\r\n\t[tooltipPosition]=\"position()\"\r\n\t[showDelay]=\"showDelay()\"\r\n\t[hideDelay]=\"hideDelay()\"\r\n\t[style]=\"tooltipStyle()\"\r\n\t[tooltipStyleClass]=\"tooltipStyleClass()\"\r\n\t[appendTo]=\"appendTo()\">\r\n\t<ng-content></ng-content>\r\n</span>\r\n", dependencies: [{ kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }] }); }
19
19
  }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TooltipComponent, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TooltipComponent, decorators: [{
21
21
  type: Component,
22
22
  args: [{ standalone: true, selector: 'aril-tooltip', imports: [TooltipModule], template: "<span\r\n\t[pTooltip]=\"template() ?? text()\"\r\n\t[tooltipPosition]=\"position()\"\r\n\t[showDelay]=\"showDelay()\"\r\n\t[hideDelay]=\"hideDelay()\"\r\n\t[style]=\"tooltipStyle()\"\r\n\t[tooltipStyleClass]=\"tooltipStyleClass()\"\r\n\t[appendTo]=\"appendTo()\">\r\n\t<ng-content></ng-content>\r\n</span>\r\n" }]
23
23
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-tooltip.mjs","sources":["../../projects/aril/ui/tooltip/src/tooltip-component.ts","../../projects/aril/ui/tooltip/src/tooltip-component.html","../../projects/aril/ui/tooltip/aril-ui-tooltip.ts"],"sourcesContent":["import { Component, TemplateRef, input } from '@angular/core';\r\n\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-tooltip',\r\n\ttemplateUrl: './tooltip-component.html',\r\n\timports: [TooltipModule]\r\n})\r\nexport class TooltipComponent {\r\n\ttext = input<string>('');\r\n\ttemplate = input<TemplateRef<any> | null>();\r\n\tposition = input<string>('right'); // (right, top, bottom, left)\r\n\tshowDelay = input<number>(0); // (ms)\r\n\thideDelay = input<number>(0); // (ms)\r\n\ttooltipStyle = input<any>({});\r\n\ttooltipStyleClass = input<string>('');\r\n\tappendTo = input<any>('body');\r\n}\r\n","<span\r\n\t[pTooltip]=\"template() ?? text()\"\r\n\t[tooltipPosition]=\"position()\"\r\n\t[showDelay]=\"showDelay()\"\r\n\t[hideDelay]=\"hideDelay()\"\r\n\t[style]=\"tooltipStyle()\"\r\n\t[tooltipStyleClass]=\"tooltipStyleClass()\"\r\n\t[appendTo]=\"appendTo()\">\r\n\t<ng-content></ng-content>\r\n</span>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAUa,gBAAgB,CAAA;AAN7B,IAAA,WAAA,GAAA;AAOC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;QACzB,IAAQ,CAAA,QAAA,GAAG,KAAK,EAA2B,CAAC;AAC5C,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,OAAO,CAAC,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,CAAC,CAAC,CAAC;AAC7B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,CAAC,CAAC,CAAC;AAC7B,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAM,EAAE,CAAC,CAAC;AAC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A,EAAA,EAAA,iBAAA,EAAA,mBAAA,EAAA,UAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECV7B,uTAUA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDFW,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,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,EAAA;;2FAEX,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,cAAc,EAEf,OAAA,EAAA,CAAC,aAAa,CAAC,EAAA,QAAA,EAAA,uTAAA,EAAA,CAAA;;;AERzB;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-tooltip.mjs","sources":["../../projects/aril/ui/tooltip/src/tooltip-component.ts","../../projects/aril/ui/tooltip/src/tooltip-component.html","../../projects/aril/ui/tooltip/aril-ui-tooltip.ts"],"sourcesContent":["import { Component, TemplateRef, input } from '@angular/core';\r\n\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-tooltip',\r\n\ttemplateUrl: './tooltip-component.html',\r\n\timports: [TooltipModule]\r\n})\r\nexport class TooltipComponent {\r\n\ttext = input<string>('');\r\n\ttemplate = input<TemplateRef<any> | null>();\r\n\tposition = input<string>('right'); // (right, top, bottom, left)\r\n\tshowDelay = input<number>(0); // (ms)\r\n\thideDelay = input<number>(0); // (ms)\r\n\ttooltipStyle = input<any>({});\r\n\ttooltipStyleClass = input<string>('');\r\n\tappendTo = input<any>('body');\r\n}\r\n","<span\r\n\t[pTooltip]=\"template() ?? text()\"\r\n\t[tooltipPosition]=\"position()\"\r\n\t[showDelay]=\"showDelay()\"\r\n\t[hideDelay]=\"hideDelay()\"\r\n\t[style]=\"tooltipStyle()\"\r\n\t[tooltipStyleClass]=\"tooltipStyleClass()\"\r\n\t[appendTo]=\"appendTo()\">\r\n\t<ng-content></ng-content>\r\n</span>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAUa,gBAAgB,CAAA;AAN7B,IAAA,WAAA,GAAA;AAOC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAS,EAAE,CAAC;QACxB,IAAA,CAAA,QAAQ,GAAG,KAAK,EAA2B;AAC3C,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,OAAO,CAAC,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,CAAC,CAAC,CAAC;AAC7B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,CAAC,CAAC,CAAC;AAC7B,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAM,EAAE,CAAC;AAC7B,QAAA,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAAS,EAAE,CAAC;AACrC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAM,MAAM,CAAC;AAC7B,IAAA;+GATY,gBAAgB,EAAA,I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A,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECV7B,uTAUA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDFW,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,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;;4FAEX,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EAAA,QAAA,EACN,cAAc,EAAA,OAAA,EAEf,CAAC,aAAa,CAAC,EAAA,QAAA,EAAA,uTAAA,EAAA;;;AERzB;;AAEG;;;;"}
@@ -69,10 +69,10 @@ class ArilLangModalComponent {
69
69
  languages: this.mandatoryLanguages?.map((lang) => this.getLabel(lang)).join(', ')
70
70
  });
71
71
  }
72
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ArilLangModalComponent, deps: [{ token: i1.DynamicDialogConfig }, { token: i1.DynamicDialogRef }], target: i0.ɵɵFactoryTarget.Component }); }
73
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: ArilLangModalComponent, isStandalone: true, selector: "aril-lang-modal", ngImport: i0, template: "<div>\r\n\t<aril-field\r\n\t\t[label]=\"translocoService.translate('translationModal.addLanguage')\"\r\n\t\t[cols]=\"{ default: 12 }\"\r\n\t\tclass=\"mb-4 block\">\r\n\t\t<enum-picker\r\n\t\t\t[(ngModel)]=\"selectedLanguages\"\r\n\t\t\t[items]=\"availableLanguages\"\r\n\t\t\t[isMultiple]=\"true\"\r\n\t\t\titemKey=\"code\"\r\n\t\t\titemText=\"name\" />\r\n\t</aril-field>\r\n\r\n\t@for (lang of selectedLanguages; track lang) {\r\n\t\t<div class=\"border-1 border-gray-300 border-round py-2 px-4 mb-2 flex justify-content-between items-center\">\r\n\t\t\t<aril-field labelPos=\"left\" [label]=\"getLabel(lang)\" [cols]=\"{ default: 12 }\" [labelWidth]=\"15\" [valueWidth]=\"85\">\r\n\t\t\t\t<aril-text class=\"value-input\" [(ngModel)]=\"translations[lang]\" />\r\n\t\t\t</aril-field>\r\n\t\t</div>\r\n\t}\r\n\r\n\t<div class=\"mt-4\">\r\n\t\t@if (mandatoryLanguages.length && isSaveDisabled()) {\r\n\t\t\t<div class=\"mb-2\">\r\n\t\t\t\t<p-tag [value]=\"getInfoText()\" severity=\"info\" />\r\n\t\t\t</div>\r\n\t\t}\r\n\t</div>\r\n\r\n\t<div class=\"mt-4 flex justify-content-end\">\r\n\t\t<aril-button\r\n\t\t\tcolor=\"danger\"\r\n\t\t\t[outlined]=\"true\"\r\n\t\t\t[label]=\"translocoService.translate('cancel')\"\r\n\t\t\t[raised]=\"false\"\r\n\t\t\ticon=\"TIMES\"\r\n\t\t\t(clickEvent)=\"close()\" />\r\n\t\t<aril-button\r\n\t\t\t[label]=\"translocoService.translate('save')\"\r\n\t\t\tcolor=\"success\"\r\n\t\t\ticon=\"CHECK\"\r\n\t\t\tclass=\"ml-2\"\r\n\t\t\t(clickEvent)=\"save()\"\r\n\t\t\t[disabled]=\"isSaveDisabled()\" />\r\n\t</div>\r\n</div>\r\n", styles: [":host .value-input ::ng-deep input{width:100%}\n"], dependencies: [{ kind: "component", type: TextComponent, selector: "aril-text[ngModel], aril-text[formControl], aril-text[formControlName]", inputs: ["placeholder", "tabindex", "icon", "iconPos", "size"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: CommonModule }, { 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: FieldComponent, selector: "aril-field", inputs: ["label", "color", "labelWidth", "valueWidth", "labelPos", "markAsRequired", "cols", "infoData", "infoDataOverlayPanel"] }, { kind: "component", type: EnumPickerComponent, selector: "enum-picker[ngModel], enum-picker[formControl], enum-picker[formControlName]", inputs: ["itemKey", "itemText", "groupName", "parentSelectionKey", "tabindex", "items", "isMultiple", "excludedKeys", "grouped", "showClearButton", "placeholder", "searchExpr", "acceptCustomValue", "textClampCharacters", "useVirtualScroll", "virtualScrollItemSize", "scrollHeight", "selectedItemsLabel", "appendTo", "style", "styleClass", "tooltip", "tooltipPosition"], outputs: ["onSelectionChanged"] }, { kind: "ngmodule", type: TagModule }, { kind: "component", type: i3.Tag, selector: "p-tag", inputs: ["style", "styleClass", "severity", "value", "icon", "rounded"] }] }); }
72
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ArilLangModalComponent, deps: [{ token: i1.DynamicDialogConfig }, { token: i1.DynamicDialogRef }], target: i0.ɵɵFactoryTarget.Component }); }
73
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: ArilLangModalComponent, isStandalone: true, selector: "aril-lang-modal", ngImport: i0, template: "<div>\r\n\t<aril-field\r\n\t\t[label]=\"translocoService.translate('translationModal.addLanguage')\"\r\n\t\t[cols]=\"{ default: 12 }\"\r\n\t\tclass=\"mb-4 block\">\r\n\t\t<enum-picker\r\n\t\t\t[(ngModel)]=\"selectedLanguages\"\r\n\t\t\t[items]=\"availableLanguages\"\r\n\t\t\t[isMultiple]=\"true\"\r\n\t\t\titemKey=\"code\"\r\n\t\t\titemText=\"name\" />\r\n\t</aril-field>\r\n\r\n\t@for (lang of selectedLanguages; track lang) {\r\n\t\t<div class=\"border-1 border-gray-300 border-round py-2 px-4 mb-2 flex justify-content-between items-center\">\r\n\t\t\t<aril-field labelPos=\"left\" [label]=\"getLabel(lang)\" [cols]=\"{ default: 12 }\" [labelWidth]=\"15\" [valueWidth]=\"85\">\r\n\t\t\t\t<aril-text class=\"value-input\" [(ngModel)]=\"translations[lang]\" />\r\n\t\t\t</aril-field>\r\n\t\t</div>\r\n\t}\r\n\r\n\t<div class=\"mt-4\">\r\n\t\t@if (mandatoryLanguages.length && isSaveDisabled()) {\r\n\t\t\t<div class=\"mb-2\">\r\n\t\t\t\t<p-tag [value]=\"getInfoText()\" severity=\"info\" />\r\n\t\t\t</div>\r\n\t\t}\r\n\t</div>\r\n\r\n\t<div class=\"mt-4 flex justify-content-end\">\r\n\t\t<aril-button\r\n\t\t\tcolor=\"danger\"\r\n\t\t\t[outlined]=\"true\"\r\n\t\t\t[label]=\"translocoService.translate('cancel')\"\r\n\t\t\t[raised]=\"false\"\r\n\t\t\ticon=\"TIMES\"\r\n\t\t\t(clickEvent)=\"close()\" />\r\n\t\t<aril-button\r\n\t\t\t[label]=\"translocoService.translate('save')\"\r\n\t\t\tcolor=\"success\"\r\n\t\t\ticon=\"CHECK\"\r\n\t\t\tclass=\"ml-2\"\r\n\t\t\t(clickEvent)=\"save()\"\r\n\t\t\t[disabled]=\"isSaveDisabled()\" />\r\n\t</div>\r\n</div>\r\n", styles: [":host .value-input ::ng-deep input{width:100%}\n"], dependencies: [{ kind: "component", type: TextComponent, selector: "aril-text[ngModel], aril-text[formControl], aril-text[formControlName]", inputs: ["placeholder", "tabindex", "icon", "iconPos", "size"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: CommonModule }, { 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: FieldComponent, selector: "aril-field", inputs: ["label", "color", "labelWidth", "valueWidth", "labelPos", "markAsRequired", "cols", "infoData", "infoDataOverlayPanel"] }, { kind: "component", type: EnumPickerComponent, selector: "enum-picker[ngModel], enum-picker[formControl], enum-picker[formControlName]", inputs: ["itemKey", "itemText", "groupName", "parentSelectionKey", "tabindex", "items", "isMultiple", "excludedKeys", "grouped", "showClearButton", "placeholder", "searchExpr", "acceptCustomValue", "textClampCharacters", "useVirtualScroll", "virtualScrollItemSize", "scrollHeight", "selectedItemsLabel", "appendTo", "style", "styleClass", "tooltip", "tooltipPosition"], outputs: ["onSelectionChanged"] }, { kind: "ngmodule", type: TagModule }, { kind: "component", type: i3.Tag, selector: "p-tag", inputs: ["style", "styleClass", "severity", "value", "icon", "rounded"] }] }); }
74
74
  }
75
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ArilLangModalComponent, decorators: [{
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ArilLangModalComponent, decorators: [{
76
76
  type: Component,
77
77
  args: [{ selector: 'aril-lang-modal', imports: [
78
78
  TextComponent,
@@ -167,8 +167,8 @@ class ArilTranslateInputComponent extends BaseInputComponent {
167
167
  }
168
168
  return true;
169
169
  }
170
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ArilTranslateInputComponent, deps: [{ token: i1.DialogService }, { token: i2.TranslocoService }], target: i0.ɵɵFactoryTarget.Component }); }
171
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: ArilTranslateInputComponent, isStandalone: true, selector: "aril-translate-input[ngModel], aril-translate-input[formControl], aril-translate-input[formControlName]", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, mandatoryLanguages: { classPropertyName: "mandatoryLanguages", publicName: "mandatoryLanguages", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i3$1.ValueAccessorDirective }], ngImport: i0, template: `
170
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ArilTranslateInputComponent, deps: [{ token: i1.DialogService }, { token: i2.TranslocoService }], target: i0.ɵɵFactoryTarget.Component }); }
171
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: ArilTranslateInputComponent, isStandalone: true, selector: "aril-translate-input[ngModel], aril-translate-input[formControl], aril-translate-input[formControlName]", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, mandatoryLanguages: { classPropertyName: "mandatoryLanguages", publicName: "mandatoryLanguages", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i3$1.ValueAccessorDirective }], ngImport: i0, template: `
172
172
  <div class="p-inputgroup">
173
173
  <input
174
174
  pInputText
@@ -182,7 +182,7 @@ class ArilTranslateInputComponent extends BaseInputComponent {
182
182
  </div>
183
183
  `, isInline: true, styles: [":host ::ng-deep .p-inputgroup{display:flex;align-items:center;width:100%}:host ::ng-deep .p-inputgroup .p-inputtext{flex:1 1 auto;border-top-right-radius:0;border-bottom-right-radius:0}:host ::ng-deep .p-inputgroup .p-button{border-top-left-radius:0;border-bottom-left-radius:0}:host ::ng-deep .p-inputgroup-sm .p-inputtext,:host ::ng-deep .p-inputgroup-sm .p-button{line-height:1.3}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i5.InputText, selector: "[pInputText]", inputs: ["variant"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i6.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i7.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "style", "styleClass", "badgeClass", "ariaLabel", "autofocus"], outputs: ["onClick", "onFocus", "onBlur"] }] }); }
184
184
  }
185
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ArilTranslateInputComponent, decorators: [{
185
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ArilTranslateInputComponent, decorators: [{
186
186
  type: Component,
187
187
  args: [{ selector: 'aril-translate-input[ngModel], aril-translate-input[formControl], aril-translate-input[formControlName]', standalone: true, imports: [FormsModule, ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, ButtonModule], hostDirectives: [ValueAccessorDirective], template: `
188
188
  <div class="p-inputgroup">
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-translate-input.mjs","sources":["../../projects/aril/ui/translate-input/src/aril-lang-modal/constants.ts","../../projects/aril/ui/translate-input/src/aril-lang-modal/aril-lang-modal.component.ts","../../projects/aril/ui/translate-input/src/aril-lang-modal/aril-lang-modal.component.html","../../projects/aril/ui/translate-input/src/aril-translate-input.component.ts","../../projects/aril/ui/translate-input/aril-ui-translate-input.ts"],"sourcesContent":["import { LanguageDto } from '../interface';\r\n\r\nexport const ALL_LANGS: LanguageDto[] = [\r\n\t{ code: 'en', name: '🇬🇧 English' },\r\n\t{ code: 'tr', name: '🇹🇷 Türkçe' },\r\n\t{ code: 'de', name: '🇩🇪 Deutsch' },\r\n\t{ code: 'fr', name: '🇫🇷 Français' },\r\n\t{ code: 'es', name: '🇪🇸 Español' },\r\n\t{ code: 'ar', name: '🇸🇦 العربية (السعودية)' },\r\n\t{ code: 'he', name: '🇮🇱 עברית' },\r\n\t{ code: 'fa', name: '🇮🇷 فارسی' },\r\n\t{ code: 'ro', name: '🇷🇴 Română' },\r\n\t{ code: 'ru', name: '🇷🇺 Русский' },\r\n\t{ code: 'ja', name: '🇯🇵 日本語' },\r\n\t{ code: 'zh', name: '🇨🇳 简体中文' }\r\n];\r\n","/* eslint-disable @angular-eslint/component-selector */\r\nimport { CommonModule } from '@angular/common';\r\nimport { Component, inject } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nimport { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';\r\nimport { TagModule } from 'primeng/tag';\r\n\r\nimport { TranslocoModule, TranslocoService } from '@ngneat/transloco';\r\n\r\nimport { EnumPickerComponent } from 'aril/ui-business/enumPicker';\r\nimport { ButtonComponent } from 'aril/ui/button';\r\nimport { FieldComponent } from 'aril/ui/field';\r\nimport { TextComponent } from 'aril/ui/text';\r\n\r\nimport { LangModalData, TranslationObject } from '../interface';\r\nimport { ALL_LANGS } from './constants';\r\n\r\n@Component({\r\n\tselector: 'aril-lang-modal',\r\n\timports: [\r\n\t\tTextComponent,\r\n\t\tFormsModule,\r\n\t\tCommonModule,\r\n\t\tButtonComponent,\r\n\t\tTranslocoModule,\r\n\t\tFieldComponent,\r\n\t\tEnumPickerComponent,\r\n\t\tTagModule\r\n\t],\r\n\tstandalone: true,\r\n\ttemplateUrl: 'aril-lang-modal.component.html',\r\n\tstyleUrls: ['aril-lang-modal.component.scss']\r\n})\r\nexport class ArilLangModalComponent {\r\n\ttranslocoService = inject(TranslocoService);\r\n\tselectedLanguages: string[] = ['tr', 'en'];\r\n\tavailableLanguages = ALL_LANGS;\r\n\ttranslations: TranslationObject = {};\r\n\tmandatoryLanguages: string[] = [];\r\n\r\n\tconstructor(\r\n\t\tpublic config: DynamicDialogConfig<LangModalData>,\r\n\t\tpublic ref: DynamicDialogRef\r\n\t) {\r\n\t\tthis.translations = { ...this.config.data?.translations };\r\n\t\tthis.mandatoryLanguages = this.config.data?.mandatoryLanguages || [];\r\n\t}\r\n\r\n\tsave() {\r\n\t\tconst allowed = new Set(this.selectedLanguages);\r\n\t\t// only output the languages that are selected\r\n\t\tconst outputTranslations = Object.fromEntries(Object.entries(this.translations).filter(([k]) => allowed.has(k)));\r\n\t\tthis.ref.close(outputTranslations);\r\n\t}\r\n\r\n\tclose() {\r\n\t\tthis.ref.close();\r\n\t}\r\n\r\n\tgetLabel(code: string) {\r\n\t\treturn this.availableLanguages.find((lang) => lang.code === code)?.name;\r\n\t}\r\n\r\n\tisSaveDisabled() {\r\n\t\treturn this.mandatoryLanguages?.some((lang) => !this.selectedLanguages.includes(lang) || !this.translations[lang]);\r\n\t}\r\n\r\n\tgetInfoText() {\r\n\t\treturn this.translocoService.translate('translationModal.mandatoryLanguages', {\r\n\t\t\tlanguages: this.mandatoryLanguages?.map((lang) => this.getLabel(lang)).join(', ')\r\n\t\t});\r\n\t}\r\n}\r\n","<div>\r\n\t<aril-field\r\n\t\t[label]=\"translocoService.translate('translationModal.addLanguage')\"\r\n\t\t[cols]=\"{ default: 12 }\"\r\n\t\tclass=\"mb-4 block\">\r\n\t\t<enum-picker\r\n\t\t\t[(ngModel)]=\"selectedLanguages\"\r\n\t\t\t[items]=\"availableLanguages\"\r\n\t\t\t[isMultiple]=\"true\"\r\n\t\t\titemKey=\"code\"\r\n\t\t\titemText=\"name\" />\r\n\t</aril-field>\r\n\r\n\t@for (lang of selectedLanguages; track lang) {\r\n\t\t<div class=\"border-1 border-gray-300 border-round py-2 px-4 mb-2 flex justify-content-between items-center\">\r\n\t\t\t<aril-field labelPos=\"left\" [label]=\"getLabel(lang)\" [cols]=\"{ default: 12 }\" [labelWidth]=\"15\" [valueWidth]=\"85\">\r\n\t\t\t\t<aril-text class=\"value-input\" [(ngModel)]=\"translations[lang]\" />\r\n\t\t\t</aril-field>\r\n\t\t</div>\r\n\t}\r\n\r\n\t<div class=\"mt-4\">\r\n\t\t@if (mandatoryLanguages.length && isSaveDisabled()) {\r\n\t\t\t<div class=\"mb-2\">\r\n\t\t\t\t<p-tag [value]=\"getInfoText()\" severity=\"info\" />\r\n\t\t\t</div>\r\n\t\t}\r\n\t</div>\r\n\r\n\t<div class=\"mt-4 flex justify-content-end\">\r\n\t\t<aril-button\r\n\t\t\tcolor=\"danger\"\r\n\t\t\t[outlined]=\"true\"\r\n\t\t\t[label]=\"translocoService.translate('cancel')\"\r\n\t\t\t[raised]=\"false\"\r\n\t\t\ticon=\"TIMES\"\r\n\t\t\t(clickEvent)=\"close()\" />\r\n\t\t<aril-button\r\n\t\t\t[label]=\"translocoService.translate('save')\"\r\n\t\t\tcolor=\"success\"\r\n\t\t\ticon=\"CHECK\"\r\n\t\t\tclass=\"ml-2\"\r\n\t\t\t(clickEvent)=\"save()\"\r\n\t\t\t[disabled]=\"isSaveDisabled()\" />\r\n\t</div>\r\n</div>\r\n","import { Component, input } from '@angular/core';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { ButtonModule } from 'primeng/button';\r\nimport { DialogService } from 'primeng/dynamicdialog';\r\nimport { InputTextModule } from 'primeng/inputtext';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\nimport { TranslocoService } from '@ngneat/transloco';\r\n\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\n\r\nimport { ArilLangModalComponent } from './aril-lang-modal/aril-lang-modal.component';\r\nimport { TranslationObject } from './interface';\r\n\r\n@Component({\r\n\tselector: 'aril-translate-input[ngModel], aril-translate-input[formControl], aril-translate-input[formControlName]',\r\n\tstandalone: true,\r\n\timports: [FormsModule, ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, ButtonModule],\r\n\thostDirectives: [ValueAccessorDirective],\r\n\ttemplate: `\r\n\t\t<div class=\"p-inputgroup\">\r\n\t\t\t<input\r\n\t\t\t\tpInputText\r\n\t\t\t\ttype=\"text\"\r\n\t\t\t\t[placeholder]=\"placeholder()\"\r\n\t\t\t\t[ngModel]=\"getDisplayValue()\"\r\n\t\t\t\t(ngModelChange)=\"onInputChange($event)\"\r\n\t\t\t\t[pTooltip]=\"shouldShowError() ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t\t\t\t[tooltipOptions]=\"tooltipOptions\" />\r\n\t\t\t<p-button icon=\"pi pi-language\" (onClick)=\"openModal()\" styleClass=\"p-button-text p-button-rounded\"> </p-button>\r\n\t\t</div>\r\n\t`,\r\n\tstyles: [\r\n\t\t`\r\n\t\t\t:host ::ng-deep .p-inputgroup {\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\twidth: 100%;\r\n\t\t\t}\r\n\r\n\t\t\t:host ::ng-deep .p-inputgroup .p-inputtext {\r\n\t\t\t\tflex: 1 1 auto;\r\n\t\t\t\tborder-top-right-radius: 0;\r\n\t\t\t\tborder-bottom-right-radius: 0;\r\n\t\t\t}\r\n\r\n\t\t\t:host ::ng-deep .p-inputgroup .p-button {\r\n\t\t\t\tborder-top-left-radius: 0;\r\n\t\t\t\tborder-bottom-left-radius: 0;\r\n\t\t\t}\r\n\r\n\t\t\t:host ::ng-deep .p-inputgroup-sm .p-inputtext,\r\n\t\t\t:host ::ng-deep .p-inputgroup-sm .p-button {\r\n\t\t\t\tline-height: 1.3;\r\n\t\t\t}\r\n\t\t`\r\n\t]\r\n})\r\nexport class ArilTranslateInputComponent extends BaseInputComponent {\r\n\tplaceholder = input<string>('');\r\n\tmandatoryLanguages = input<string[]>();\r\n\r\n\tvalue: TranslationObject = {};\r\n\tcurrentLang!: string;\r\n\r\n\tonChange = (used: any) => {};\r\n\tonTouch = () => {};\r\n\r\n\tconstructor(\r\n\t\treadonly dialogService: DialogService,\r\n\t\treadonly translocoService: TranslocoService\r\n\t) {\r\n\t\tsuper();\r\n\t\tthis.currentLang = this.translocoService.getActiveLang();\r\n\t}\r\n\r\n\twriteValue(value: TranslationObject): void {\r\n\t\tif (!value) {\r\n\t\t\tthis.value = {};\r\n\t\t} else if (typeof value === 'object') {\r\n\t\t\tthis.value = value || {};\r\n\t\t} else {\r\n\t\t\tconsole.error('Invalid value type for translations, expected object');\r\n\t\t\tthis.value = {};\r\n\t\t}\r\n\t\tthis.updateFormControlSilently(this.value);\r\n\t}\r\n\r\n\tprivate updateFormControlSilently(value: TranslationObject): void {\r\n\t\tif (this.ngControl?.control) {\r\n\t\t\tthis.ngControl.control.setValue(value, { emitEvent: false });\r\n\t\t}\r\n\t}\r\n\r\n\tprivate updateValueAndFormControl(newValue: TranslationObject): void {\r\n\t\tthis.value = { ...newValue };\r\n\t\tthis.updateFormControlSilently(this.value);\r\n\t\tthis.onChange(this.value);\r\n\t\tthis.onTouch();\r\n\t}\r\n\r\n\tonInputChange(newValue: string): void {\r\n\t\tconst updatedValue = {\r\n\t\t\t...this.value,\r\n\t\t\t[this.currentLang]: newValue\r\n\t\t};\r\n\t\tthis.updateValueAndFormControl(updatedValue);\r\n\t}\r\n\r\n\tgetDisplayValue(): string {\r\n\t\tlet translationObj = this.value;\r\n\r\n\t\tconst controlValue = this.ngControl?.control?.value;\r\n\t\tif (controlValue && typeof controlValue === 'object') {\r\n\t\t\ttranslationObj = controlValue;\r\n\t\t}\r\n\r\n\t\treturn translationObj?.[this.currentLang] || '';\r\n\t}\r\n\r\n\topenModal() {\r\n\t\tconst currentTranslations = this.ngControl?.control?.value || this.value || {};\r\n\t\tconst ref = this.dialogService.open(ArilLangModalComponent, {\r\n\t\t\twidth: '40%',\r\n\t\t\tdata: {\r\n\t\t\t\ttranslations: { ...currentTranslations },\r\n\t\t\t\tcurrentLang: this.currentLang,\r\n\t\t\t\tmandatoryLanguages: this.mandatoryLanguages()\r\n\t\t\t},\r\n\t\t\theader: this.translocoService.translate('translationModal.title')\r\n\t\t});\r\n\r\n\t\tref.onClose.subscribe((result) => {\r\n\t\t\tif (result) {\r\n\t\t\t\tthis.updateValueAndFormControl(result);\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.updateValueAndFormControl({ ...result });\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tshouldShowError(): boolean {\r\n\t\tif (!this.ngControl?.invalid) return false;\r\n\t\tif (this.value && typeof this.value === 'object') {\r\n\t\t\tconst hasAnyTranslation = Object.values(this.value).some((val) => val && val.trim() !== '');\r\n\t\t\tif (hasAnyTranslation) return false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n}\r\n","/**\n * Gener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AA,EAAA,cAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,SAAA,EAAA,MAAA,EAAA,OAAA,EAAA,OAAA,EAAA,UAAA,EAAA,SAAA,EAAA,aAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,OAAA,EAAA,UAAA,EAAA,UAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,OAAA,EAAA,YAAA,EAAA,YAAA,EAAA,WAAA,EAAA,WAAA,CAAA,EAAA,OAAA,EAAA,CAAA,SAAA,EAAA,SAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAyCnG,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBA5CvC,SAAS;+BACC,yGAAyG,EAAA,UAAA,EACvG,IAAI,EACP,OAAA,EAAA,CAAC,WAAW,EAAE,mBAAmB,EAAE,eAAe,EAAE,aAAa,EAAE,qBAAqB,EAAE,YAAY,CAAC,kBAChG,CAAC,sBAAsB,CAAC,EAC9B,QAAA,EAAA,CAAA;;;;;;;;;;;;AAYT,CAAA,CAAA,EAAA,MAAA,EAAA,CAAA,mYAAA,CAAA,EAAA,CAAA;;;AChCF;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-translate-input.mjs","sources":["../../projects/aril/ui/translate-input/src/aril-lang-modal/constants.ts","../../projects/aril/ui/translate-input/src/aril-lang-modal/aril-lang-modal.component.ts","../../projects/aril/ui/translate-input/src/aril-lang-modal/aril-lang-modal.component.html","../../projects/aril/ui/translate-input/src/aril-translate-input.component.ts","../../projects/aril/ui/translate-input/aril-ui-translate-input.ts"],"sourcesContent":["import { LanguageDto } from '../interface';\r\n\r\nexport const ALL_LANGS: LanguageDto[] = [\r\n\t{ code: 'en', name: '🇬🇧 English' },\r\n\t{ code: 'tr', name: '🇹🇷 Türkçe' },\r\n\t{ code: 'de', name: '🇩🇪 Deutsch' },\r\n\t{ code: 'fr', name: '🇫🇷 Français' },\r\n\t{ code: 'es', name: '🇪🇸 Español' },\r\n\t{ code: 'ar', name: '🇸🇦 العربية (السعودية)' },\r\n\t{ code: 'he', name: '🇮🇱 עברית' },\r\n\t{ code: 'fa', name: '🇮🇷 فارسی' },\r\n\t{ code: 'ro', name: '🇷🇴 Română' },\r\n\t{ code: 'ru', name: '🇷🇺 Русский' },\r\n\t{ code: 'ja', name: '🇯🇵 日本語' },\r\n\t{ code: 'zh', name: '🇨🇳 简体中文' }\r\n];\r\n","/* eslint-disable @angular-eslint/component-selector */\r\nimport { CommonModule } from '@angular/common';\r\nimport { Component, inject } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nimport { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';\r\nimport { TagModule } from 'primeng/tag';\r\n\r\nimport { TranslocoModule, TranslocoService } from '@ngneat/transloco';\r\n\r\nimport { EnumPickerComponent } from 'aril/ui-business/enumPicker';\r\nimport { ButtonComponent } from 'aril/ui/button';\r\nimport { FieldComponent } from 'aril/ui/field';\r\nimport { TextComponent } from 'aril/ui/text';\r\n\r\nimport { LangModalData, TranslationObject } from '../interface';\r\nimport { ALL_LANGS } from './constants';\r\n\r\n@Component({\r\n\tselector: 'aril-lang-modal',\r\n\timports: [\r\n\t\tTextComponent,\r\n\t\tFormsModule,\r\n\t\tCommonModule,\r\n\t\tButtonComponent,\r\n\t\tTranslocoModule,\r\n\t\tFieldComponent,\r\n\t\tEnumPickerComponent,\r\n\t\tTagModule\r\n\t],\r\n\tstandalone: true,\r\n\ttemplateUrl: 'aril-lang-modal.component.html',\r\n\tstyleUrls: ['aril-lang-modal.component.scss']\r\n})\r\nexport class ArilLangModalComponent {\r\n\ttranslocoService = inject(TranslocoService);\r\n\tselectedLanguages: string[] = ['tr', 'en'];\r\n\tavailableLanguages = ALL_LANGS;\r\n\ttranslations: TranslationObject = {};\r\n\tmandatoryLanguages: string[] = [];\r\n\r\n\tconstructor(\r\n\t\tpublic config: DynamicDialogConfig<LangModalData>,\r\n\t\tpublic ref: DynamicDialogRef\r\n\t) {\r\n\t\tthis.translations = { ...this.config.data?.translations };\r\n\t\tthis.mandatoryLanguages = this.config.data?.mandatoryLanguages || [];\r\n\t}\r\n\r\n\tsave() {\r\n\t\tconst allowed = new Set(this.selectedLanguages);\r\n\t\t// only output the languages that are selected\r\n\t\tconst outputTranslations = Object.fromEntries(Object.entries(this.translations).filter(([k]) => allowed.has(k)));\r\n\t\tthis.ref.close(outputTranslations);\r\n\t}\r\n\r\n\tclose() {\r\n\t\tthis.ref.close();\r\n\t}\r\n\r\n\tgetLabel(code: string) {\r\n\t\treturn this.availableLanguages.find((lang) => lang.code === code)?.name;\r\n\t}\r\n\r\n\tisSaveDisabled() {\r\n\t\treturn this.mandatoryLanguages?.some((lang) => !this.selectedLanguages.includes(lang) || !this.translations[lang]);\r\n\t}\r\n\r\n\tgetInfoText() {\r\n\t\treturn this.translocoService.translate('translationModal.mandatoryLanguages', {\r\n\t\t\tlanguages: this.mandatoryLanguages?.map((lang) => this.getLabel(lang)).join(', ')\r\n\t\t});\r\n\t}\r\n}\r\n","<div>\r\n\t<aril-field\r\n\t\t[label]=\"translocoService.translate('translationModal.addLanguage')\"\r\n\t\t[cols]=\"{ default: 12 }\"\r\n\t\tclass=\"mb-4 block\">\r\n\t\t<enum-picker\r\n\t\t\t[(ngModel)]=\"selectedLanguages\"\r\n\t\t\t[items]=\"availableLanguages\"\r\n\t\t\t[isMultiple]=\"true\"\r\n\t\t\titemKey=\"code\"\r\n\t\t\titemText=\"name\" />\r\n\t</aril-field>\r\n\r\n\t@for (lang of selectedLanguages; track lang) {\r\n\t\t<div class=\"border-1 border-gray-300 border-round py-2 px-4 mb-2 flex justify-content-between items-center\">\r\n\t\t\t<aril-field labelPos=\"left\" [label]=\"getLabel(lang)\" [cols]=\"{ default: 12 }\" [labelWidth]=\"15\" [valueWidth]=\"85\">\r\n\t\t\t\t<aril-text class=\"value-input\" [(ngModel)]=\"translations[lang]\" />\r\n\t\t\t</aril-field>\r\n\t\t</div>\r\n\t}\r\n\r\n\t<div class=\"mt-4\">\r\n\t\t@if (mandatoryLanguages.length && isSaveDisabled()) {\r\n\t\t\t<div class=\"mb-2\">\r\n\t\t\t\t<p-tag [value]=\"getInfoText()\" severity=\"info\" />\r\n\t\t\t</div>\r\n\t\t}\r\n\t</div>\r\n\r\n\t<div class=\"mt-4 flex justify-content-end\">\r\n\t\t<aril-button\r\n\t\t\tcolor=\"danger\"\r\n\t\t\t[outlined]=\"true\"\r\n\t\t\t[label]=\"translocoService.translate('cancel')\"\r\n\t\t\t[raised]=\"false\"\r\n\t\t\ticon=\"TIMES\"\r\n\t\t\t(clickEvent)=\"close()\" />\r\n\t\t<aril-button\r\n\t\t\t[label]=\"translocoService.translate('save')\"\r\n\t\t\tcolor=\"success\"\r\n\t\t\ticon=\"CHECK\"\r\n\t\t\tclass=\"ml-2\"\r\n\t\t\t(clickEvent)=\"save()\"\r\n\t\t\t[disabled]=\"isSaveDisabled()\" />\r\n\t</div>\r\n</div>\r\n","import { Component, input } from '@angular/core';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { ButtonModule } from 'primeng/button';\r\nimport { DialogService } from 'primeng/dynamicdialog';\r\nimport { InputTextModule } from 'primeng/inputtext';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\nimport { TranslocoService } from '@ngneat/transloco';\r\n\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\n\r\nimport { ArilLangModalComponent } from './aril-lang-modal/aril-lang-modal.component';\r\nimport { TranslationObject } from './interface';\r\n\r\n@Component({\r\n\tselector: 'aril-translate-input[ngModel], aril-translate-input[formControl], aril-translate-input[formControlName]',\r\n\tstandalone: true,\r\n\timports: [FormsModule, ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, ButtonModule],\r\n\thostDirectives: [ValueAccessorDirective],\r\n\ttemplate: `\r\n\t\t<div class=\"p-inputgroup\">\r\n\t\t\t<input\r\n\t\t\t\tpInputText\r\n\t\t\t\ttype=\"text\"\r\n\t\t\t\t[placeholder]=\"placeholder()\"\r\n\t\t\t\t[ngModel]=\"getDisplayValue()\"\r\n\t\t\t\t(ngModelChange)=\"onInputChange($event)\"\r\n\t\t\t\t[pTooltip]=\"shouldShowError() ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t\t\t\t[tooltipOptions]=\"tooltipOptions\" />\r\n\t\t\t<p-button icon=\"pi pi-language\" (onClick)=\"openModal()\" styleClass=\"p-button-text p-button-rounded\"> </p-button>\r\n\t\t</div>\r\n\t`,\r\n\tstyles: [\r\n\t\t`\r\n\t\t\t:host ::ng-deep .p-inputgroup {\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\twidth: 100%;\r\n\t\t\t}\r\n\r\n\t\t\t:host ::ng-deep .p-inputgroup .p-inputtext {\r\n\t\t\t\tflex: 1 1 auto;\r\n\t\t\t\tborder-top-right-radius: 0;\r\n\t\t\t\tborder-bottom-right-radius: 0;\r\n\t\t\t}\r\n\r\n\t\t\t:host ::ng-deep .p-inputgroup .p-button {\r\n\t\t\t\tborder-top-left-radius: 0;\r\n\t\t\t\tborder-bottom-left-radius: 0;\r\n\t\t\t}\r\n\r\n\t\t\t:host ::ng-deep .p-inputgroup-sm .p-inputtext,\r\n\t\t\t:host ::ng-deep .p-inputgroup-sm .p-button {\r\n\t\t\t\tline-height: 1.3;\r\n\t\t\t}\r\n\t\t`\r\n\t]\r\n})\r\nexport class ArilTranslateInputComponent extends BaseInputComponent {\r\n\tplaceholder = input<string>('');\r\n\tmandatoryLanguages = input<string[]>();\r\n\r\n\tvalue: TranslationObject = {};\r\n\tcurrentLang!: string;\r\n\r\n\tonChange = (used: any) => {};\r\n\tonTouch = () => {};\r\n\r\n\tconstructor(\r\n\t\treadonly dialogService: DialogService,\r\n\t\treadonly translocoService: TranslocoService\r\n\t) {\r\n\t\tsuper();\r\n\t\tthis.currentLang = this.translocoService.getActiveLang();\r\n\t}\r\n\r\n\twriteValue(value: TranslationObject): void {\r\n\t\tif (!value) {\r\n\t\t\tthis.value = {};\r\n\t\t} else if (typeof value === 'object') {\r\n\t\t\tthis.value = value || {};\r\n\t\t} else {\r\n\t\t\tconsole.error('Invalid value type for translations, expected object');\r\n\t\t\tthis.value = {};\r\n\t\t}\r\n\t\tthis.updateFormControlSilently(this.value);\r\n\t}\r\n\r\n\tprivate updateFormControlSilently(value: TranslationObject): void {\r\n\t\tif (this.ngControl?.control) {\r\n\t\t\tthis.ngControl.control.setValue(value, { emitEvent: false });\r\n\t\t}\r\n\t}\r\n\r\n\tprivate updateValueAndFormControl(newValue: TranslationObject): void {\r\n\t\tthis.value = { ...newValue };\r\n\t\tthis.updateFormControlSilently(this.value);\r\n\t\tthis.onChange(this.value);\r\n\t\tthis.onTouch();\r\n\t}\r\n\r\n\tonInputChange(newValue: string): void {\r\n\t\tconst updatedValue = {\r\n\t\t\t...this.value,\r\n\t\t\t[this.currentLang]: newValue\r\n\t\t};\r\n\t\tthis.updateValueAndFormControl(updatedValue);\r\n\t}\r\n\r\n\tgetDisplayValue(): string {\r\n\t\tlet translationObj = this.value;\r\n\r\n\t\tconst controlValue = this.ngControl?.control?.value;\r\n\t\tif (controlValue && typeof controlValue === 'object') {\r\n\t\t\ttranslationObj = controlValue;\r\n\t\t}\r\n\r\n\t\treturn translationObj?.[this.currentLang] || '';\r\n\t}\r\n\r\n\topenModal() {\r\n\t\tconst currentTranslations = this.ngControl?.control?.value || this.value || {};\r\n\t\tconst ref = this.dialogService.open(ArilLangModalComponent, {\r\n\t\t\twidth: '40%',\r\n\t\t\tdata: {\r\n\t\t\t\ttranslations: { ...currentTranslations },\r\n\t\t\t\tcurrentLang: this.currentLang,\r\n\t\t\t\tmandatoryLanguages: this.mandatoryLanguages()\r\n\t\t\t},\r\n\t\t\theader: this.translocoService.translate('translationModal.title')\r\n\t\t});\r\n\r\n\t\tref.onClose.subscribe((result) => {\r\n\t\t\tif (result) {\r\n\t\t\t\tthis.updateValueAndFormControl(result);\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.updateValueAndFormControl({ ...result });\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tshouldShowError(): boolean {\r\n\t\tif (!this.ngControl?.invalid) return false;\r\n\t\tif (this.value && typeof this.value === 'object') {\r\n\t\t\tconst hasAnyTranslation = Object.values(this.value).some((val) => val && val.trim() !== '');\r\n\t\t\tif (hasAnyTranslation) return false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEO,MAAM,SAAS,GAAkB;AACvC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE;AACpC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE;AACnC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE;AACpC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE;AACrC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE;AACpC,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,yBAAyB,EAAE;AAC/C,IAAA,EAAE,IAAI,EAAE,IAAI,EAAE,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C,sBAAsB,CAAC,EAAA,QAAA,EAC9B,CAAA;;;;;;;;;;;;AAYT,CAAA,CAAA,EAAA,MAAA,EAAA,CAAA,mYAAA,CAAA,EAAA;;;AChCF;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, EventEmitter, effect, Component, ChangeDetectionStrategy, Output } from '@angular/core';
2
+ import { input, EventEmitter, effect, Output, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
  import * as i2 from 'primeng/contextmenu';
4
4
  import { ContextMenuModule } from 'primeng/contextmenu';
5
5
  import * as i1 from 'primeng/tree';
@@ -40,10 +40,10 @@ class TreeComponent {
40
40
  });
41
41
  }
42
42
  }
43
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
44
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: TreeComponent, isStandalone: true, selector: "aril-tree", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, contextMenu: { classPropertyName: "contextMenu", publicName: "contextMenu", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, selectedNode: { classPropertyName: "selectedNode", publicName: "selectedNode", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, isAllExpanded: { classPropertyName: "isAllExpanded", publicName: "isAllExpanded", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expandEvent: "expandEvent", selectionEvent: "selectionEvent" }, ngImport: i0, template: "<!-- <div class=\"mb-3\">\r\n\t<aril-button [label]=\"isExpended ? 'Daralt' : 'Geni\u015Flet'\" size=\"sm\" [color]=\"isExpended ? 'primary' :'warning'\" (clickEvent)=\"toggleTree()\"></aril-button>\r\n</div> -->\r\n<p-tree\r\n\t[value]=\"data()\"\r\n\t[selectionMode]=\"selectionMode()\"\r\n\t[(selection)]=\"selectionNodes\"\r\n\t[contextMenu]=\"contextMenu()?.length ? contextMenuRef : null\"\r\n\t[filter]=\"filter()\"\r\n\tfilterMode=\"lenient\"\r\n\tfilterBy=\"label\"\r\n\t[filterPlaceholder]=\"filterPlaceholder()\"\r\n\t[styleClass]=\"styleClass()!\"\r\n\t(onNodeExpand)=\"expandEvent.emit($event.node)\"\r\n\t(selectionChange)=\"selectionEvent.emit(selectionNodes)\">\r\n</p-tree>\r\n<p-contextMenu #contextMenuRef [model]=\"contextMenu()\"></p-contextMenu>\r\n", styles: ["::ng-deep .p-tree .p-tree-filter{padding:.75rem 2rem .75rem .75rem!important}\n"], dependencies: [{ kind: "ngmodule", type: TreeModule }, { kind: "component", type: i1.Tree, selector: "p-tree", inputs: ["value", "selectionMode", "loadingMode", "selection", "style", "styleClass", "contextMenu", "layout", "draggableScope", "droppableScope", "draggableNodes", "droppableNodes", "metaKeySelection", "propagateSelectionUp", "propagateSelectionDown", "loading", "loadingIcon", "emptyMessage", "ariaLabel", "togglerAriaLabel", "ariaLabelledBy", "validateDrop", "filter", "filterBy", "filterMode", "filterPlaceholder", "filteredNodes", "filterLocale", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "indentation", "_templateMap", "trackBy", "virtualNodeHeight"], outputs: ["selectionChange", "onNodeSelect", "onNodeUnselect", "onNodeExpand", "onNodeCollapse", "onNodeContextMenuSelect", "onNodeDrop", "onLazyLoad", "onScroll", "onScrollIndexChange", "onFilter"] }, { kind: "ngmodule", type: ContextMenuModule }, { kind: "component", type: i2.ContextMenu, selector: "p-contextMenu", inputs: ["model", "triggerEvent", "target", "global", "style", "styleClass", "appendTo", "autoZIndex", "baseZIndex", "id", "ariaLabel", "ariaLabelledBy", "pressDelay"], outputs: ["onShow", "onHide"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
43
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
44
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: TreeComponent, isStandalone: true, selector: "aril-tree", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, contextMenu: { classPropertyName: "contextMenu", publicName: "contextMenu", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, selectedNode: { classPropertyName: "selectedNode", publicName: "selectedNode", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, isAllExpanded: { classPropertyName: "isAllExpanded", publicName: "isAllExpanded", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expandEvent: "expandEvent", selectionEvent: "selectionEvent" }, ngImport: i0, template: "<!-- <div class=\"mb-3\">\r\n\t<aril-button [label]=\"isExpended ? 'Daralt' : 'Geni\u015Flet'\" size=\"sm\" [color]=\"isExpended ? 'primary' :'warning'\" (clickEvent)=\"toggleTree()\"></aril-button>\r\n</div> -->\r\n<p-tree\r\n\t[value]=\"data()\"\r\n\t[selectionMode]=\"selectionMode()\"\r\n\t[(selection)]=\"selectionNodes\"\r\n\t[contextMenu]=\"contextMenu()?.length ? contextMenuRef : null\"\r\n\t[filter]=\"filter()\"\r\n\tfilterMode=\"lenient\"\r\n\tfilterBy=\"label\"\r\n\t[filterPlaceholder]=\"filterPlaceholder()\"\r\n\t[styleClass]=\"styleClass()!\"\r\n\t(onNodeExpand)=\"expandEvent.emit($event.node)\"\r\n\t(selectionChange)=\"selectionEvent.emit(selectionNodes)\">\r\n</p-tree>\r\n<p-contextMenu #contextMenuRef [model]=\"contextMenu()\"></p-contextMenu>\r\n", styles: ["::ng-deep .p-tree .p-tree-filter{padding:.75rem 2rem .75rem .75rem!important}\n"], dependencies: [{ kind: "ngmodule", type: TreeModule }, { kind: "component", type: i1.Tree, selector: "p-tree", inputs: ["value", "selectionMode", "loadingMode", "selection", "style", "styleClass", "contextMenu", "layout", "draggableScope", "droppableScope", "draggableNodes", "droppableNodes", "metaKeySelection", "propagateSelectionUp", "propagateSelectionDown", "loading", "loadingIcon", "emptyMessage", "ariaLabel", "togglerAriaLabel", "ariaLabelledBy", "validateDrop", "filter", "filterBy", "filterMode", "filterPlaceholder", "filteredNodes", "filterLocale", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "indentation", "_templateMap", "trackBy", "virtualNodeHeight"], outputs: ["selectionChange", "onNodeSelect", "onNodeUnselect", "onNodeExpand", "onNodeCollapse", "onNodeContextMenuSelect", "onNodeDrop", "onLazyLoad", "onScroll", "onScrollIndexChange", "onFilter"] }, { kind: "ngmodule", type: ContextMenuModule }, { kind: "component", type: i2.ContextMenu, selector: "p-contextMenu", inputs: ["model", "triggerEvent", "target", "global", "style", "styleClass", "appendTo", "autoZIndex", "baseZIndex", "id", "ariaLabel", "ariaLabelledBy", "pressDelay"], outputs: ["onShow", "onHide"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
45
45
  }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TreeComponent, decorators: [{
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TreeComponent, decorators: [{
47
47
  type: Component,
48
48
  args: [{ standalone: true, selector: 'aril-tree', imports: [TreeModule, ContextMenuModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- <div class=\"mb-3\">\r\n\t<aril-button [label]=\"isExpended ? 'Daralt' : 'Geni\u015Flet'\" size=\"sm\" [color]=\"isExpended ? 'primary' :'warning'\" (clickEvent)=\"toggleTree()\"></aril-button>\r\n</div> -->\r\n<p-tree\r\n\t[value]=\"data()\"\r\n\t[selectionMode]=\"selectionMode()\"\r\n\t[(selection)]=\"selectionNodes\"\r\n\t[contextMenu]=\"contextMenu()?.length ? contextMenuRef : null\"\r\n\t[filter]=\"filter()\"\r\n\tfilterMode=\"lenient\"\r\n\tfilterBy=\"label\"\r\n\t[filterPlaceholder]=\"filterPlaceholder()\"\r\n\t[styleClass]=\"styleClass()!\"\r\n\t(onNodeExpand)=\"expandEvent.emit($event.node)\"\r\n\t(selectionChange)=\"selectionEvent.emit(selectionNodes)\">\r\n</p-tree>\r\n<p-contextMenu #contextMenuRef [model]=\"contextMenu()\"></p-contextMenu>\r\n", styles: ["::ng-deep .p-tree .p-tree-filter{padding:.75rem 2rem .75rem .75rem!important}\n"] }]
49
49
  }], ctorParameters: () => [], propDecorators: { expandEvent: [{
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-tree.mjs","sources":["../../projects/aril/ui/tree/src/tree.component.ts","../../projects/aril/ui/tree/src/tree.component.html","../../projects/aril/ui/tree/aril-ui-tree.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { ChangeDetectionStrategy, Component, EventEmitter, Output, effect, input } from '@angular/core';\r\n\r\nimport { MenuItem, TreeNode } from 'primeng/api';\r\nimport { ContextMenuModule } from 'primeng/contextmenu';\r\nimport { TreeModule } from 'primeng/tree';\r\n\r\ntype SelectionModes = 'multiple' | 'checkbox' | 'single';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-tree',\r\n\ttemplateUrl: './tree.component.html',\r\n\timports: [TreeModule, ContextMenuModule],\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n\tstyles: [\r\n\t\t`\r\n\t\t\t::ng-deep .p-tree .p-tree-filter {\r\n\t\t\t\tpadding: 0.75rem 2rem 0.75rem 0.75rem !important;\r\n\t\t\t}\r\n\t\t`\r\n\t]\r\n})\r\nexport class TreeComponent {\r\n\tconstructor() {\r\n\t\teffect(() => {\r\n\t\t\tthis.selectionNodes = this.selectedNode();\r\n\t\t});\r\n\r\n\t\teffect(() => {\r\n\t\t\tif (this.data() && this.isAllExpanded()) {\r\n\t\t\t\tthis.expandAll();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tdata = input.required<TreeNode[]>();\r\n\tcontextMenu = input<MenuItem[]>();\r\n\tfilterPlaceholder = input<string>('Arama');\r\n\tfilter = input<boolean>(true);\r\n\tselectionMode = input<SelectionModes>();\r\n\tselectedNode = input<TreeNode | TreeNode[] | null>(null);\r\n\tstyleClass = input<string | null>(null);\r\n\tisAllExpanded = input<boolean>(false);\r\n\r\n\t@Output() expandEvent: EventEmitter<unknown> = new EventEmitter();\r\n\t@Output() selectionEvent: EventEmitter<any> = new EventEmitter<any>();\r\n\r\n\tselectionNodes!: TreeNode | TreeNode[] | null;\r\n\r\n\texpandAll() {\r\n\t\tthis.data().forEach((node) => {\r\n\t\t\tthis.expandRecursive(node, true);\r\n\t\t});\r\n\t}\r\n\r\n\tprivate expandRecursive(node: TreeNode, isExpand: boolean) {\r\n\t\tnode.expanded = isExpand;\r\n\t\tif (node.children) {\r\n\t\t\tnode.children.forEach((childNode) => {\r\n\t\t\t\tthis.expandRecursive(childNode, isExpand);\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n}\r\n","<!-- <div class=\"mb-3\">\r\n\t<aril-button [label]=\"isExpended ? 'Daralt' : 'Genişlet'\" size=\"sm\" [color]=\"isExpended ? 'primary' :'warning'\" (clickEvent)=\"toggleTree()\"></aril-button>\r\n</div> -->\r\n<p-tree\r\n\t[value]=\"data()\"\r\n\t[selectionMode]=\"selectionMode()\"\r\n\t[(selection)]=\"selectionNodes\"\r\n\t[contextMenu]=\"contextMenu()?.length ? contextMenuRef : null\"\r\n\t[filter]=\"filter()\"\r\n\tfilterMode=\"lenient\"\r\n\tfilterBy=\"label\"\r\n\t[filterPlaceholder]=\"filterPlaceholder()\"\r\n\t[styleClass]=\"styleClass()!\"\r\n\t(onNodeExpand)=\"expandEvent.emit($event.node)\"\r\n\t(selectionChange)=\"selectionEvent.emit(selectionNodes)\">\r\n</p-tree>\r\n<p-contextMenu #contextMenuRef [model]=\"contextMenu()\"></p-contextMenu>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;MAuBa,aAAa,CAAA;AACzB,IAAA,WAAA,GAAA;AAYA,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,EAAc,CAAC;QACpC,IAAW,CAAA,WAAA,GAAG,KAAK,EAAc,CAAC;AAClC,QAAA,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAAS,OAAO,CAAC,CAAC;AAC3C,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAU,IAAI,CAAC,CAAC;QAC9B,IAAa,CAAA,aAAA,GAAG,KAAK,EAAkB,CAAC;AACxC,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAA+B,IAAI,CAAC,CAAC;AACzD,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAgB,IAAI,CAAC,CAAC;AACxC,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK,CAAU,KAAK,CAAC,CAAC;AAE5B,QAAA,IAAA,CAAA,WAAW,GAA0B,IAAI,YAAY,EAAE,CAAC;AACxD,QAAA,IAAA,CAAA,cAAc,GAAsB,IAAI,YAAY,EAAO,CAAC;QArBrE,MAAM,CAAC,MAAK;AACX,YAAA,IAAI,CAAC,cAAc,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AAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,WAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,cAAA,EAAA,QAAA,EAAA,QAAA,EAAA,OAAA,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,YAAA,EAAA,IAAA,EAAA,WAAA,EAAA,gBAAA,EAAA,YAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAU3B,aAAa,EAAA,UAAA,EAAA,CAAA;kBAdzB,SAAS;iCACG,IAAI,EAAA,QAAA,EACN,WAAW,EAAA,OAAA,EAEZ,CAAC,UAAU,EAAE,iBAAiB,CAAC,EAAA,eAAA,EACvB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,qwBAAA,EAAA,MAAA,EAAA,CAAA,iFAAA,CAAA,EAAA,CAAA;wDA+BrC,WAAW,EAAA,CAAA;sBAApB,MAAM;gBACG,cAAc,EAAA,CAAA;sBAAvB,MAAM;;;AE9CR;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-tree.mjs","sources":["../../projects/aril/ui/tree/src/tree.component.ts","../../projects/aril/ui/tree/src/tree.component.html","../../projects/aril/ui/tree/aril-ui-tree.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { ChangeDetectionStrategy, Component, EventEmitter, Output, effect, input } from '@angular/core';\r\n\r\nimport { MenuItem, TreeNode } from 'primeng/api';\r\nimport { ContextMenuModule } from 'primeng/contextmenu';\r\nimport { TreeModule } from 'primeng/tree';\r\n\r\ntype SelectionModes = 'multiple' | 'checkbox' | 'single';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-tree',\r\n\ttemplateUrl: './tree.component.html',\r\n\timports: [TreeModule, ContextMenuModule],\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n\tstyles: [\r\n\t\t`\r\n\t\t\t::ng-deep .p-tree .p-tree-filter {\r\n\t\t\t\tpadding: 0.75rem 2rem 0.75rem 0.75rem !important;\r\n\t\t\t}\r\n\t\t`\r\n\t]\r\n})\r\nexport class TreeComponent {\r\n\tconstructor() {\r\n\t\teffect(() => {\r\n\t\t\tthis.selectionNodes = this.selectedNode();\r\n\t\t});\r\n\r\n\t\teffect(() => {\r\n\t\t\tif (this.data() && this.isAllExpanded()) {\r\n\t\t\t\tthis.expandAll();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tdata = input.required<TreeNode[]>();\r\n\tcontextMenu = input<MenuItem[]>();\r\n\tfilterPlaceholder = input<string>('Arama');\r\n\tfilter = input<boolean>(true);\r\n\tselectionMode = input<SelectionModes>();\r\n\tselectedNode = input<TreeNode | TreeNode[] | null>(null);\r\n\tstyleClass = input<string | null>(null);\r\n\tisAllExpanded = input<boolean>(false);\r\n\r\n\t@Output() expandEvent: EventEmitter<unknown> = new EventEmitter();\r\n\t@Output() selectionEvent: EventEmitter<any> = new EventEmitter<any>();\r\n\r\n\tselectionNodes!: TreeNode | TreeNode[] | null;\r\n\r\n\texpandAll() {\r\n\t\tthis.data().forEach((node) => {\r\n\t\t\tthis.expandRecursive(node, true);\r\n\t\t});\r\n\t}\r\n\r\n\tprivate expandRecursive(node: TreeNode, isExpand: boolean) {\r\n\t\tnode.expanded = isExpand;\r\n\t\tif (node.children) {\r\n\t\t\tnode.children.forEach((childNode) => {\r\n\t\t\t\tthis.expandRecursive(childNode, isExpand);\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n}\r\n","<!-- <div class=\"mb-3\">\r\n\t<aril-button [label]=\"isExpended ? 'Daralt' : 'Genişlet'\" size=\"sm\" [color]=\"isExpended ? 'primary' :'warning'\" (clickEvent)=\"toggleTree()\"></aril-button>\r\n</div> -->\r\n<p-tree\r\n\t[value]=\"data()\"\r\n\t[selectionMode]=\"selectionMode()\"\r\n\t[(selection)]=\"selectionNodes\"\r\n\t[contextMenu]=\"contextMenu()?.length ? contextMenuRef : null\"\r\n\t[filter]=\"filter()\"\r\n\tfilterMode=\"lenient\"\r\n\tfilterBy=\"label\"\r\n\t[filterPlaceholder]=\"filterPlaceholder()\"\r\n\t[styleClass]=\"styleClass()!\"\r\n\t(onNodeExpand)=\"expandEvent.emit($event.node)\"\r\n\t(selectionChange)=\"selectionEvent.emit(selectionNodes)\">\r\n</p-tree>\r\n<p-contextMenu #contextMenuRef [model]=\"contextMenu()\"></p-contextMenu>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;MAuBa,aAAa,CAAA;AACzB,IAAA,WAAA,GAAA;AAYA,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,EAAc;QACnC,IAAA,CAAA,WAAW,GAAG,KAAK,EAAc;AACjC,QAAA,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAAS,OAAO,CAAC;AAC1C,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAU,IAAI,CAAC;QAC7B,IAAA,CAAA,aAAa,GAAG,KAAK,EAAkB;AACvC,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAA+B,IAAI,CAAC;AACxD,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAgB,IAAI,CAAC;AACvC,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK,CAAU,KAAK,CAAC;AAE3B,QAAA,IAAA,CAAA,WAAW,GAA0B,IAAI,YAAY,EAAE;AACvD,QAAA,IAAA,CAAA,cAAc,GAAsB,IAAI,YAAY,EAAO;QArBpE,MAAM,CAAC,MAAK;AACX,YAAA,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,YAAY,EAAE;AAC1C,QAAA,CAAC,CAAC;QAEF,MAAM,CAAC,MAAK;YACX,IAAI,IAAI,CAAC,IAAI,E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AAA,EAAA,QAAA,EAAA,OAAA,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,YAAA,EAAA,IAAA,EAAA,WAAA,EAAA,gBAAA,EAAA,YAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAU3B,aAAa,EAAA,UAAA,EAAA,CAAA;kBAdzB,SAAS;iCACG,IAAI,EAAA,QAAA,EACN,WAAW,EAAA,OAAA,EAEZ,CAAC,UAAU,EAAE,iBAAiB,CAAC,EAAA,eAAA,EACvB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,qwBAAA,EAAA,MAAA,EAAA,CAAA,iFAAA,CAAA,EAAA;wDA+BrC,WAAW,EAAA,CAAA;sBAApB;gBACS,cAAc,EAAA,CAAA;sBAAvB;;;AE9CF;;AAEG;;;;"}
@@ -1,7 +1,7 @@
1
1
  import * as i2 from '@angular/forms';
2
2
  import { ReactiveFormsModule, FormsModule } from '@angular/forms';
3
3
  import * as i0 from '@angular/core';
4
- import { input, EventEmitter, Component, ChangeDetectionStrategy, Output } from '@angular/core';
4
+ import { input, EventEmitter, Output, ChangeDetectionStrategy, Component } from '@angular/core';
5
5
  import * as i1 from 'primeng/treeselect';
6
6
  import { TreeSelectModule } from 'primeng/treeselect';
7
7
 
@@ -24,10 +24,10 @@ class TreeSelectComponent {
24
24
  this.nodeUnselect = new EventEmitter();
25
25
  this.cleared = new EventEmitter();
26
26
  }
27
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TreeSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
28
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: TreeSelectComponent, isStandalone: true, selector: "aril-treeSelect", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, modelValue: { classPropertyName: "modelValue", publicName: "modelValue", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, display: { classPropertyName: "display", publicName: "display", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, propagateSelectionUp: { classPropertyName: "propagateSelectionUp", publicName: "propagateSelectionUp", isSignal: true, isRequired: false, transformFunction: null }, propagateSelectionDown: { classPropertyName: "propagateSelectionDown", publicName: "propagateSelectionDown", isSignal: true, isRequired: false, transformFunction: null }, metaKeySelection: { classPropertyName: "metaKeySelection", publicName: "metaKeySelection", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { modelValueChange: "modelValueChange", nodeSelect: "nodeSelect", nodeUnselect: "nodeUnselect", cleared: "cleared" }, ngImport: i0, template: "<p-treeSelect\r\n class=\"w-full\"\r\n [options]=\"options()\"\r\n [placeholder]=\"placeholder()\"\r\n [showClear]=\"showClear()\"\r\n [display]=\"display()\"\r\n [selectionMode]=\"selectionMode()\"\r\n [propagateSelectionUp]=\"propagateSelectionUp()\"\r\n [propagateSelectionDown]=\"propagateSelectionDown()\"\r\n [metaKeySelection]=\"metaKeySelection()\"\r\n [filter]=\"filter()\"\r\n [filterPlaceholder]=\"filterPlaceholder()\"\r\n [ngModel]=\"modelValue()\"\r\n (ngModelChange)=\"modelValueChange.emit($event)\"\r\n (onNodeSelect)=\"nodeSelect.emit($event)\"\r\n (onNodeUnselect)=\"nodeUnselect.emit($event)\"\r\n (onClear)=\"cleared.emit()\"\r\n></p-treeSelect>\r\n", styles: [":host ::ng-deep .p-treenode-content.p-highlight{background:transparent!important}:host ::ng-deep .p-treenode-content.p-highlight .p-treenode-label{color:#000!important}\n"], dependencies: [{ kind: "ngmodule", type: TreeSelectModule }, { kind: "component", type: i1.TreeSelect, selector: "p-treeSelect", inputs: ["inputId", "scrollHeight", "disabled", "metaKeySelection", "variant", "display", "selectionMode", "tabindex", "ariaLabel", "ariaLabelledBy", "placeholder", "panelClass", "panelStyle", "panelStyleClass", "containerStyle", "containerStyleClass", "labelStyle", "labelStyleClass", "overlayOptions", "emptyMessage", "appendTo", "filter", "filterBy", "filterMode", "filterPlaceholder", "filterLocale", "filterInputAutoFocus", "propagateSelectionDown", "propagateSelectionUp", "showClear", "resetFilterOnHide", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autofocus", "options", "showTransitionOptions", "hideTransitionOptions", "loading"], outputs: ["onNodeExpand", "onNodeCollapse", "onShow", "onHide", "onClear", "onFilter", "onFocus", "onBlur", "onNodeUnselect", "onNodeSelect"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
27
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TreeSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
28
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: TreeSelectComponent, isStandalone: true, selector: "aril-treeSelect", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, modelValue: { classPropertyName: "modelValue", publicName: "modelValue", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, display: { classPropertyName: "display", publicName: "display", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, propagateSelectionUp: { classPropertyName: "propagateSelectionUp", publicName: "propagateSelectionUp", isSignal: true, isRequired: false, transformFunction: null }, propagateSelectionDown: { classPropertyName: "propagateSelectionDown", publicName: "propagateSelectionDown", isSignal: true, isRequired: false, transformFunction: null }, metaKeySelection: { classPropertyName: "metaKeySelection", publicName: "metaKeySelection", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { modelValueChange: "modelValueChange", nodeSelect: "nodeSelect", nodeUnselect: "nodeUnselect", cleared: "cleared" }, ngImport: i0, template: "<p-treeSelect\r\n class=\"w-full\"\r\n [options]=\"options()\"\r\n [placeholder]=\"placeholder()\"\r\n [showClear]=\"showClear()\"\r\n [display]=\"display()\"\r\n [selectionMode]=\"selectionMode()\"\r\n [propagateSelectionUp]=\"propagateSelectionUp()\"\r\n [propagateSelectionDown]=\"propagateSelectionDown()\"\r\n [metaKeySelection]=\"metaKeySelection()\"\r\n [filter]=\"filter()\"\r\n [filterPlaceholder]=\"filterPlaceholder()\"\r\n [ngModel]=\"modelValue()\"\r\n (ngModelChange)=\"modelValueChange.emit($event)\"\r\n (onNodeSelect)=\"nodeSelect.emit($event)\"\r\n (onNodeUnselect)=\"nodeUnselect.emit($event)\"\r\n (onClear)=\"cleared.emit()\"\r\n></p-treeSelect>\r\n", styles: [":host ::ng-deep .p-treenode-content.p-highlight{background:transparent!important}:host ::ng-deep .p-treenode-content.p-highlight .p-treenode-label{color:#000!important}\n"], dependencies: [{ kind: "ngmodule", type: TreeSelectModule }, { kind: "component", type: i1.TreeSelect, selector: "p-treeSelect", inputs: ["inputId", "scrollHeight", "disabled", "metaKeySelection", "variant", "display", "selectionMode", "tabindex", "ariaLabel", "ariaLabelledBy", "placeholder", "panelClass", "panelStyle", "panelStyleClass", "containerStyle", "containerStyleClass", "labelStyle", "labelStyleClass", "overlayOptions", "emptyMessage", "appendTo", "filter", "filterBy", "filterMode", "filterPlaceholder", "filterLocale", "filterInputAutoFocus", "propagateSelectionDown", "propagateSelectionUp", "showClear", "resetFilterOnHide", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autofocus", "options", "showTransitionOptions", "hideTransitionOptions", "loading"], outputs: ["onNodeExpand", "onNodeCollapse", "onShow", "onHide", "onClear", "onFilter", "onFocus", "onBlur", "onNodeUnselect", "onNodeSelect"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
29
29
  }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TreeSelectComponent, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TreeSelectComponent, decorators: [{
31
31
  type: Component,
32
32
  args: [{ standalone: true, selector: 'aril-treeSelect', imports: [TreeSelectModule, ReactiveFormsModule, FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-treeSelect\r\n class=\"w-full\"\r\n [options]=\"options()\"\r\n [placeholder]=\"placeholder()\"\r\n [showClear]=\"showClear()\"\r\n [display]=\"display()\"\r\n [selectionMode]=\"selectionMode()\"\r\n [propagateSelectionUp]=\"propagateSelectionUp()\"\r\n [propagateSelectionDown]=\"propagateSelectionDown()\"\r\n [metaKeySelection]=\"metaKeySelection()\"\r\n [filter]=\"filter()\"\r\n [filterPlaceholder]=\"filterPlaceholder()\"\r\n [ngModel]=\"modelValue()\"\r\n (ngModelChange)=\"modelValueChange.emit($event)\"\r\n (onNodeSelect)=\"nodeSelect.emit($event)\"\r\n (onNodeUnselect)=\"nodeUnselect.emit($event)\"\r\n (onClear)=\"cleared.emit()\"\r\n></p-treeSelect>\r\n", styles: [":host ::ng-deep .p-treenode-content.p-highlight{background:transparent!important}:host ::ng-deep .p-treenode-content.p-highlight .p-treenode-label{color:#000!important}\n"] }]
33
33
  }], propDecorators: { modelValueChange: [{