aril 0.0.7 → 0.0.9

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 (339) hide show
  1. package/README.md +48 -48
  2. package/aril-0.0.9.tgz +0 -0
  3. package/esm2022/http/index.mjs +1 -1
  4. package/esm2022/http/lib/enums.mjs +6 -6
  5. package/esm2022/http/lib/interfaces.mjs +10 -31
  6. package/esm2022/http/src/httpClient.mjs +3 -3
  7. package/esm2022/http/src/serviceBase.mjs +25 -27
  8. package/esm2022/http/src/serviceStateMethods.mjs +4 -7
  9. package/esm2022/i18n/aril-i18n.mjs +5 -0
  10. package/esm2022/i18n/index.mjs +6 -0
  11. package/esm2022/i18n/src/file-url-token.mjs +3 -0
  12. package/esm2022/i18n/src/i18n.module.mjs +17 -0
  13. package/esm2022/i18n/src/loader.mjs +20 -0
  14. package/esm2022/i18n/src/provideI18n.mjs +16 -0
  15. package/esm2022/i18n/src/provideScope.mjs +18 -0
  16. package/esm2022/public-api.mjs +2 -2
  17. package/esm2022/theme/layout/app/breadcrumb/app.breadcrumb.component.mjs +3 -3
  18. package/esm2022/theme/layout/app/config/app.config.component.mjs +12 -14
  19. package/esm2022/theme/layout/app/layout/app.layout.component.mjs +15 -9
  20. package/esm2022/theme/layout/app/menu/app.menu.component.mjs +148 -166
  21. package/esm2022/theme/layout/app/profileSidebar/app.profilesidebar.component.mjs +3 -3
  22. package/esm2022/theme/layout/app/sidebar/app.sidebar.component.mjs +4 -4
  23. package/esm2022/theme/layout/app/topbar/app.topbar.component.mjs +4 -4
  24. package/esm2022/theme/layout/index.mjs +1 -1
  25. package/esm2022/theme/layout/service/app.layout.service.mjs +10 -15
  26. package/esm2022/theme/layout/service/app.menu.service.mjs +1 -1
  27. package/esm2022/theme/layout/service/menuchangeevent.mjs +1 -1
  28. package/esm2022/ui/badge/index.mjs +1 -1
  29. package/esm2022/ui/badge/src/badge.component.mjs +3 -3
  30. package/esm2022/ui/button/index.mjs +1 -1
  31. package/esm2022/ui/button/src/button.component.mjs +4 -4
  32. package/esm2022/ui/button/src/split-button.component.mjs +3 -3
  33. package/esm2022/ui/calendar/index.mjs +1 -1
  34. package/esm2022/ui/calendar/src/calendar.component.mjs +27 -14
  35. package/esm2022/ui/checkbox/index.mjs +1 -1
  36. package/esm2022/ui/checkbox/src/check-box.component.mjs +4 -4
  37. package/esm2022/ui/checkbox/src/tri-state-checkbox.component.mjs +4 -4
  38. package/esm2022/ui/dxField/index.mjs +1 -1
  39. package/esm2022/ui/dxField/src/dx-field.component.mjs +5 -5
  40. package/esm2022/ui/field/index.mjs +1 -1
  41. package/esm2022/ui/field/src/field.component.mjs +11 -9
  42. package/esm2022/ui/fileUpload/index.mjs +1 -1
  43. package/esm2022/ui/fileUpload/src/file-upload.component.mjs +12 -12
  44. package/esm2022/ui/form/index.mjs +7 -7
  45. package/esm2022/ui/form/src/form-submit-button.component.mjs +22 -27
  46. package/esm2022/ui/form/src/form.component.mjs +2 -2
  47. package/esm2022/ui/index.mjs +2 -2
  48. package/esm2022/ui/lib/index.mjs +1 -1
  49. package/esm2022/ui/lib/src/form/form-error-message.component.mjs +9 -9
  50. package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +1 -1
  51. package/esm2022/ui/lib/src/form/form-field-builder.mjs +4 -4
  52. package/esm2022/ui/lib/src/form/form-validation.mjs +3 -3
  53. package/esm2022/ui/lib/src/grid/flex-grid.directive.mjs +2 -2
  54. package/esm2022/ui/lib/src/input/baseInput.mjs +4 -4
  55. package/esm2022/ui/lib/src/input/common-input-validators.service.mjs +6 -6
  56. package/esm2022/ui/lib/src/input/dx-input-error-message.pipe.mjs +3 -3
  57. package/esm2022/ui/lib/src/input/input-disabled.directive.mjs +1 -1
  58. package/esm2022/ui/lib/src/input/input-error-message.pipe.mjs +3 -2
  59. package/esm2022/ui/lib/src/input/input-transforms.mjs +1 -1
  60. package/esm2022/ui/lib/src/input/value-accessor.directive.mjs +12 -6
  61. package/esm2022/ui/mask/index.mjs +1 -1
  62. package/esm2022/ui/mask/src/mask.component.mjs +8 -8
  63. package/esm2022/ui/number/index.mjs +1 -1
  64. package/esm2022/ui/number/src/number.component.mjs +10 -10
  65. package/esm2022/ui/overlayPanel/index.mjs +1 -1
  66. package/esm2022/ui/overlayPanel/src/overlay-panel.component.mjs +4 -7
  67. package/esm2022/ui/panel/index.mjs +1 -1
  68. package/esm2022/ui/panel/src/panel.component.mjs +3 -3
  69. package/esm2022/ui/password/index.mjs +1 -1
  70. package/esm2022/ui/password/src/password.component.mjs +7 -7
  71. package/esm2022/ui/radioButton/index.mjs +1 -1
  72. package/esm2022/ui/radioButton/src/radio-button.component.mjs +8 -8
  73. package/esm2022/ui/selectBox/index.mjs +1 -1
  74. package/esm2022/ui/selectBox/src/select-box.component.mjs +8 -8
  75. package/esm2022/ui/switch/index.mjs +1 -1
  76. package/esm2022/ui/switch/src/switch.component.mjs +7 -7
  77. package/esm2022/ui/table/index.mjs +3 -5
  78. package/esm2022/ui/table/src/i18n.mjs +53 -90
  79. package/esm2022/ui/table/src/table-column.component.mjs +4 -8
  80. package/esm2022/ui/table/src/table.component.mjs +13 -10
  81. package/esm2022/ui/tagBox/index.mjs +1 -1
  82. package/esm2022/ui/tagBox/src/tag-box.component.mjs +13 -13
  83. package/esm2022/ui/text/index.mjs +1 -1
  84. package/esm2022/ui/text/src/text.component.mjs +5 -5
  85. package/esm2022/ui/textArea/index.mjs +1 -1
  86. package/esm2022/ui/textArea/src/text-area.component.mjs +4 -4
  87. package/esm2022/ui/tree/index.mjs +1 -1
  88. package/esm2022/ui/tree/src/tree.component.mjs +5 -5
  89. package/esm2022/ui/treeTable/index.mjs +1 -1
  90. package/esm2022/ui/treeTable/src/tree-table.component.mjs +3 -3
  91. package/esm2022/ui/value/index.mjs +1 -1
  92. package/esm2022/ui/value/src/value.component.mjs +13 -13
  93. package/esm2022/util/index.mjs +2 -2
  94. package/esm2022/util/init-event/index.mjs +1 -1
  95. package/esm2022/util/init-event/src/init-event.directive.mjs +1 -1
  96. package/esm2022/util/lib/index.mjs +2 -1
  97. package/esm2022/util/lib/src/interfaces.mjs +1 -1
  98. package/esm2022/util/lib/src/module-router.mjs +16 -0
  99. package/esm2022/util/lib/src/types.mjs +1 -1
  100. package/esm2022/util/primitive-extensions/index.mjs +5 -5
  101. package/esm2022/util/primitive-extensions/src/boolean.extensions.mjs +1 -1
  102. package/esm2022/util/primitive-extensions/src/date.extensions.mjs +68 -47
  103. package/esm2022/util/primitive-extensions/src/number.extensions.mjs +13 -7
  104. package/esm2022/util/primitive-extensions/src/string.extensions.mjs +4 -4
  105. package/esm2022/util/pub-sub/index.mjs +1 -1
  106. package/esm2022/util/pub-sub/src/pub-sub.service.mjs +7 -5
  107. package/fesm2022/aril-http.mjs +39 -63
  108. package/fesm2022/aril-http.mjs.map +1 -1
  109. package/fesm2022/aril-i18n.mjs +72 -0
  110. package/fesm2022/aril-i18n.mjs.map +1 -0
  111. package/fesm2022/aril-theme-layout.mjs +190 -209
  112. package/fesm2022/aril-theme-layout.mjs.map +1 -1
  113. package/fesm2022/aril-ui-badge.mjs +2 -2
  114. package/fesm2022/aril-ui-badge.mjs.map +1 -1
  115. package/fesm2022/aril-ui-button.mjs +5 -5
  116. package/fesm2022/aril-ui-button.mjs.map +1 -1
  117. package/fesm2022/aril-ui-calendar.mjs +25 -12
  118. package/fesm2022/aril-ui-calendar.mjs.map +1 -1
  119. package/fesm2022/aril-ui-checkbox.mjs +5 -5
  120. package/fesm2022/aril-ui-checkbox.mjs.map +1 -1
  121. package/fesm2022/aril-ui-dxField.mjs +4 -4
  122. package/fesm2022/aril-ui-dxField.mjs.map +1 -1
  123. package/fesm2022/aril-ui-field.mjs +9 -7
  124. package/fesm2022/aril-ui-field.mjs.map +1 -1
  125. package/fesm2022/aril-ui-fileUpload.mjs +11 -11
  126. package/fesm2022/aril-ui-fileUpload.mjs.map +1 -1
  127. package/fesm2022/aril-ui-form.mjs +28 -34
  128. package/fesm2022/aril-ui-form.mjs.map +1 -1
  129. package/fesm2022/aril-ui-lib.mjs +30 -23
  130. package/fesm2022/aril-ui-lib.mjs.map +1 -1
  131. package/fesm2022/aril-ui-mask.mjs +8 -8
  132. package/fesm2022/aril-ui-mask.mjs.map +1 -1
  133. package/fesm2022/aril-ui-number.mjs +10 -10
  134. package/fesm2022/aril-ui-number.mjs.map +1 -1
  135. package/fesm2022/aril-ui-overlayPanel.mjs +2 -5
  136. package/fesm2022/aril-ui-overlayPanel.mjs.map +1 -1
  137. package/fesm2022/aril-ui-panel.mjs +2 -2
  138. package/fesm2022/aril-ui-panel.mjs.map +1 -1
  139. package/fesm2022/aril-ui-password.mjs +7 -7
  140. package/fesm2022/aril-ui-password.mjs.map +1 -1
  141. package/fesm2022/aril-ui-radioButton.mjs +7 -7
  142. package/fesm2022/aril-ui-radioButton.mjs.map +1 -1
  143. package/fesm2022/aril-ui-selectBox.mjs +5 -5
  144. package/fesm2022/aril-ui-selectBox.mjs.map +1 -1
  145. package/fesm2022/aril-ui-switch.mjs +7 -7
  146. package/fesm2022/aril-ui-switch.mjs.map +1 -1
  147. package/fesm2022/aril-ui-table.mjs +66 -105
  148. package/fesm2022/aril-ui-table.mjs.map +1 -1
  149. package/fesm2022/aril-ui-tagBox.mjs +11 -11
  150. package/fesm2022/aril-ui-tagBox.mjs.map +1 -1
  151. package/fesm2022/aril-ui-text.mjs +4 -4
  152. package/fesm2022/aril-ui-text.mjs.map +1 -1
  153. package/fesm2022/aril-ui-textArea.mjs +3 -3
  154. package/fesm2022/aril-ui-textArea.mjs.map +1 -1
  155. package/fesm2022/aril-ui-tree.mjs +3 -3
  156. package/fesm2022/aril-ui-tree.mjs.map +1 -1
  157. package/fesm2022/aril-ui-treeTable.mjs +2 -2
  158. package/fesm2022/aril-ui-treeTable.mjs.map +1 -1
  159. package/fesm2022/aril-ui-value.mjs +11 -11
  160. package/fesm2022/aril-ui-value.mjs.map +1 -1
  161. package/fesm2022/aril-ui.mjs +1 -1
  162. package/fesm2022/aril-ui.mjs.map +1 -1
  163. package/fesm2022/aril-util-init-event.mjs.map +1 -1
  164. package/fesm2022/aril-util-lib.mjs +19 -0
  165. package/fesm2022/aril-util-lib.mjs.map +1 -1
  166. package/fesm2022/aril-util-primitive-extensions.mjs +82 -55
  167. package/fesm2022/aril-util-primitive-extensions.mjs.map +1 -1
  168. package/fesm2022/aril-util-pub-sub.mjs +6 -4
  169. package/fesm2022/aril-util-pub-sub.mjs.map +1 -1
  170. package/fesm2022/aril-util.mjs +1 -1
  171. package/fesm2022/aril-util.mjs.map +1 -1
  172. package/fesm2022/aril.mjs +1 -1
  173. package/fesm2022/aril.mjs.map +1 -1
  174. package/http/lib/enums.d.ts +5 -5
  175. package/http/lib/interfaces.d.ts +9 -31
  176. package/http/src/httpClient.d.ts +3 -3
  177. package/http/src/serviceBase.d.ts +2 -1
  178. package/http/src/serviceStateMethods.d.ts +2 -3
  179. package/i18n/index.d.ts +5 -0
  180. package/i18n/src/file-url-token.d.ts +2 -0
  181. package/i18n/src/i18n.module.d.ts +7 -0
  182. package/i18n/src/loader.d.ts +9 -0
  183. package/i18n/src/provideI18n.d.ts +2 -0
  184. package/i18n/src/provideScope.d.ts +9 -0
  185. package/package.json +13 -7
  186. package/styles/ui/ui.common.scss +8 -8
  187. package/theme/layout/app/breadcrumb/app.breadcrumb.component.ts +2 -4
  188. package/theme/layout/app/config/app.config.component.html +13 -62
  189. package/theme/layout/app/config/app.config.component.ts +12 -21
  190. package/theme/layout/app/layout/app.layout.component.ts +39 -52
  191. package/theme/layout/app/menu/app.menu.component.ts +147 -121
  192. package/theme/layout/app/profileSidebar/app.profilesidebar.component.html +5 -18
  193. package/theme/layout/app/profileSidebar/app.profilesidebar.component.ts +2 -3
  194. package/theme/layout/app/sidebar/app.sidebar.component.html +9 -31
  195. package/theme/layout/app/sidebar/app.sidebar.component.ts +6 -3
  196. package/theme/layout/app/topbar/app.topbar.component.html +1 -5
  197. package/theme/layout/app/topbar/app.topbar.component.ts +4 -5
  198. package/theme/layout/index.ts +1 -1
  199. package/theme/layout/ng-package.json +6 -6
  200. package/theme/layout/service/app.layout.service.ts +12 -31
  201. package/theme/layout/service/app.menu.service.ts +0 -1
  202. package/theme/layout/service/menuchangeevent.ts +1 -1
  203. package/theme/styles/layout/_animation.scss +53 -53
  204. package/theme/styles/layout/_breadcrumb.scss +21 -21
  205. package/theme/styles/layout/_config.scss +42 -42
  206. package/theme/styles/layout/_content.scss +3 -3
  207. package/theme/styles/layout/_fonts.scss +40 -36
  208. package/theme/styles/layout/_layout_dark.scss +5 -5
  209. package/theme/styles/layout/_layout_dim.scss +5 -5
  210. package/theme/styles/layout/_layout_light.scss +5 -5
  211. package/theme/styles/layout/_main.scss +28 -28
  212. package/theme/styles/layout/_profile.scss +10 -10
  213. package/theme/styles/layout/_responsive.scss +111 -113
  214. package/theme/styles/layout/_sidebar_drawer.scss +234 -236
  215. package/theme/styles/layout/_sidebar_horizontal.scss +163 -163
  216. package/theme/styles/layout/_sidebar_reveal.scss +201 -203
  217. package/theme/styles/layout/_sidebar_slim.scss +144 -145
  218. package/theme/styles/layout/_sidebar_slim_plus.scss +162 -163
  219. package/theme/styles/layout/_sidebar_vertical.scss +153 -153
  220. package/theme/styles/layout/_topbar.scss +78 -78
  221. package/theme/styles/layout/_typography.scss +68 -63
  222. package/theme/styles/layout/_utils.scss +24 -24
  223. package/theme/styles/layout/layout.scss +24 -24
  224. package/theme/styles/layout/menutheme/_colorscheme.scss +11 -11
  225. package/theme/styles/layout/menutheme/_menutheme.scss +3 -3
  226. package/theme/styles/layout/menutheme/_primarycolor.scss +16 -16
  227. package/theme/styles/layout/menutheme/_transparent.scss +26 -26
  228. package/theme/styles/layout/preloading.scss +84 -84
  229. package/theme/styles/theme/base/_colors.scss +14 -15
  230. package/theme/styles/theme/base/_common.scss +39 -38
  231. package/theme/styles/theme/base/_components.scss +97 -97
  232. package/theme/styles/theme/base/_mixins.scss +281 -281
  233. package/theme/styles/theme/base/components/button/_button.scss +535 -535
  234. package/theme/styles/theme/base/components/button/_speeddial.scss +60 -60
  235. package/theme/styles/theme/base/components/button/_splitbutton.scss +328 -334
  236. package/theme/styles/theme/base/components/data/_carousel.scss +31 -31
  237. package/theme/styles/theme/base/components/data/_datatable.scss +336 -336
  238. package/theme/styles/theme/base/components/data/_dataview.scss +38 -38
  239. package/theme/styles/theme/base/components/data/_filter.scss +124 -125
  240. package/theme/styles/theme/base/components/data/_organizationchart.scss +48 -48
  241. package/theme/styles/theme/base/components/data/_paginator.scss +78 -78
  242. package/theme/styles/theme/base/components/data/_timeline.scss +33 -36
  243. package/theme/styles/theme/base/components/data/_treetable.scss +253 -254
  244. package/theme/styles/theme/base/components/data/_virtualscroller.scss +24 -24
  245. package/theme/styles/theme/base/components/file/_fileupload.scss +51 -51
  246. package/theme/styles/theme/base/components/input/_autocomplete.scss +120 -120
  247. package/theme/styles/theme/base/components/input/_calendar.scss +250 -250
  248. package/theme/styles/theme/base/components/input/_cascadeselect.scss +117 -118
  249. package/theme/styles/theme/base/components/input/_checkbox.scss +71 -71
  250. package/theme/styles/theme/base/components/input/_chips.scss +49 -49
  251. package/theme/styles/theme/base/components/input/_colorpicker.scss +11 -11
  252. package/theme/styles/theme/base/components/input/_dropdown.scss +141 -141
  253. package/theme/styles/theme/base/components/input/_editor.scss +120 -120
  254. package/theme/styles/theme/base/components/input/_inputgroup.scss +42 -42
  255. package/theme/styles/theme/base/components/input/_inputmask.scss +10 -10
  256. package/theme/styles/theme/base/components/input/_inputnumber.scss +21 -21
  257. package/theme/styles/theme/base/components/input/_inputswitch.scss +54 -54
  258. package/theme/styles/theme/base/components/input/_inputtext.scss +62 -62
  259. package/theme/styles/theme/base/components/input/_listbox.scss +80 -80
  260. package/theme/styles/theme/base/components/input/_multiselect.scss +158 -160
  261. package/theme/styles/theme/base/components/input/_password.scss +42 -42
  262. package/theme/styles/theme/base/components/input/_radiobutton.scss +57 -57
  263. package/theme/styles/theme/base/components/input/_rating.scss +53 -53
  264. package/theme/styles/theme/base/components/input/_selectbutton.scss +46 -46
  265. package/theme/styles/theme/base/components/input/_slider.scss +59 -55
  266. package/theme/styles/theme/base/components/input/_togglebutton.scss +44 -44
  267. package/theme/styles/theme/base/components/input/_treeselect.scss +119 -119
  268. package/theme/styles/theme/base/components/menu/_breadcrumb.scss +33 -33
  269. package/theme/styles/theme/base/components/menu/_contextmenu.scss +31 -31
  270. package/theme/styles/theme/base/components/menu/_dock.scss +80 -80
  271. package/theme/styles/theme/base/components/menu/_megamenu.scss +54 -54
  272. package/theme/styles/theme/base/components/menu/_menu.scss +30 -30
  273. package/theme/styles/theme/base/components/menu/_menubar.scss +136 -137
  274. package/theme/styles/theme/base/components/menu/_panelmenu.scss +151 -151
  275. package/theme/styles/theme/base/components/menu/_slidemenu.scss +57 -57
  276. package/theme/styles/theme/base/components/menu/_steps.scss +46 -46
  277. package/theme/styles/theme/base/components/menu/_tabmenu.scss +60 -61
  278. package/theme/styles/theme/base/components/menu/_tieredmenu.scss +34 -34
  279. package/theme/styles/theme/base/components/messages/_inlinemessage.scss +55 -55
  280. package/theme/styles/theme/base/components/messages/_message.scss +105 -105
  281. package/theme/styles/theme/base/components/messages/_toast.scss +97 -98
  282. package/theme/styles/theme/base/components/misc/_avatar.scss +22 -22
  283. package/theme/styles/theme/base/components/misc/_badge.scss +40 -40
  284. package/theme/styles/theme/base/components/misc/_chip.scss +39 -39
  285. package/theme/styles/theme/base/components/misc/_inplace.scss +12 -13
  286. package/theme/styles/theme/base/components/misc/_progressbar.scss +13 -13
  287. package/theme/styles/theme/base/components/misc/_scrolltop.scss +20 -20
  288. package/theme/styles/theme/base/components/misc/_skeleton.scss +6 -6
  289. package/theme/styles/theme/base/components/misc/_tag.scss +31 -31
  290. package/theme/styles/theme/base/components/misc/_terminal.scss +1 -1
  291. package/theme/styles/theme/base/components/multimedia/_galleria.scss +150 -150
  292. package/theme/styles/theme/base/components/multimedia/_image.scss +35 -35
  293. package/theme/styles/theme/base/components/overlay/_confirmpopup.scss +57 -59
  294. package/theme/styles/theme/base/components/overlay/_dialog.scss +56 -56
  295. package/theme/styles/theme/base/components/overlay/_overlaypanel.scss +58 -60
  296. package/theme/styles/theme/base/components/overlay/_sidebar.scss +20 -20
  297. package/theme/styles/theme/base/components/overlay/_tooltip.scss +27 -27
  298. package/theme/styles/theme/base/components/panel/_accordion.scss +104 -104
  299. package/theme/styles/theme/base/components/panel/_card.scss +23 -23
  300. package/theme/styles/theme/base/components/panel/_divider.scss +24 -24
  301. package/theme/styles/theme/base/components/panel/_fieldset.scss +38 -38
  302. package/theme/styles/theme/base/components/panel/_panel.scss +61 -61
  303. package/theme/styles/theme/base/components/panel/_scrollpanel.scss +5 -5
  304. package/theme/styles/theme/base/components/panel/_splitter.scss +15 -15
  305. package/theme/styles/theme/base/components/panel/_tabview.scss +68 -68
  306. package/theme/styles/theme/base/components/panel/_toolbar.scss +8 -8
  307. package/theme/styles/theme/dark/_extensions.scss +134 -120
  308. package/theme/styles/theme/dark/_variables.scss +918 -896
  309. package/theme/styles/theme/dark/blue/theme.scss +14 -14
  310. package/theme/styles/theme/dark/indigo/theme.scss +14 -14
  311. package/theme/styles/theme/light/_extensions.scss +116 -102
  312. package/theme/styles/theme/light/_variables.scss +911 -898
  313. package/theme/styles/theme/light/blue/theme.scss +14 -14
  314. package/theme/styles/theme/light/indigo/theme.scss +14 -14
  315. package/ui/button/src/button.component.d.ts +1 -1
  316. package/ui/calendar/src/calendar.component.d.ts +1 -1
  317. package/ui/form/index.d.ts +4 -4
  318. package/ui/form/src/form-submit-button.component.d.ts +5 -5
  319. package/ui/lib/src/form/form-validation.d.ts +1 -1
  320. package/ui/lib/src/input/baseInput.d.ts +2 -2
  321. package/ui/lib/src/input/common-input-validators.service.d.ts +3 -3
  322. package/ui/lib/src/input/dx-input-error-message.pipe.d.ts +2 -2
  323. package/ui/lib/src/input/input-transforms.d.ts +1 -1
  324. package/ui/mask/src/mask.component.d.ts +3 -3
  325. package/ui/number/src/number.component.d.ts +4 -4
  326. package/ui/overlayPanel/src/overlay-panel.component.d.ts +1 -1
  327. package/ui/password/src/password.component.d.ts +3 -3
  328. package/ui/selectBox/src/select-box.component.d.ts +2 -2
  329. package/ui/switch/src/switch.component.d.ts +3 -3
  330. package/ui/table/index.d.ts +0 -1
  331. package/ui/table/src/table-column.component.d.ts +1 -1
  332. package/ui/table/src/table.component.d.ts +4 -3
  333. package/ui/tree/src/tree.component.d.ts +1 -1
  334. package/ui/value/src/value.component.d.ts +2 -2
  335. package/util/lib/index.d.ts +1 -0
  336. package/util/lib/src/module-router.d.ts +5 -0
  337. package/util/lib/src/types.d.ts +2 -2
  338. package/util/primitive-extensions/index.d.ts +4 -4
  339. package/aril-0.0.7.tgz +0 -0
@@ -1,10 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ChangeDetectionStrategy, Input, EventEmitter, Output, NgModule } from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, Input, input, EventEmitter, inject, Output, NgModule } from '@angular/core';
3
3
  import * as i1$1 from 'aril/ui/button';
4
4
  import { ButtonComponent } from 'aril/ui/button';
5
5
  import * as i1 from 'aril/ui/lib';
6
- import { FlexGridDirective, FormErrorMessageDirective } from 'aril/ui/lib';
7
- import { isFormControl, isFormGroup, isFormArray } from '@angular/forms';
6
+ import { FlexGridDirective, FormErrorMessageDirective, checkValidInputs } from 'aril/ui/lib';
7
+ import { MessageService } from 'primeng/api';
8
8
 
9
9
  /* TODO :
10
10
  1. InputSignal
@@ -23,7 +23,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
23
23
  FlexGridDirective,
24
24
  {
25
25
  directive: FormErrorMessageDirective,
26
- inputs: ["formErrorMessage: formGroup"]
26
+ inputs: ['formErrorMessage: formGroup']
27
27
  }
28
28
  ],
29
29
  changeDetection: ChangeDetectionStrategy.OnPush
@@ -33,53 +33,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
33
33
  args: [{ required: true }]
34
34
  }] } });
35
35
 
36
- /* eslint-disable @typescript-eslint/no-unused-vars */
37
- /* eslint-disable @typescript-eslint/no-explicit-any */
38
- /* TODO :
39
- 1. InputSignal
40
- */
41
36
  class FormSubmitButtonComponent extends ButtonComponent {
42
37
  constructor() {
43
38
  super(...arguments);
39
+ this.formGroup = input.required();
40
+ this.validEvent = new EventEmitter();
44
41
  this.inValidEvent = new EventEmitter();
42
+ this.messageService = inject(MessageService);
45
43
  }
46
44
  submit() {
47
- this.markAsDirty(this.formGroup.controls);
48
- if (this.formGroup.valid)
49
- this.clickEvent.emit();
50
- else
45
+ checkValidInputs(this.formGroup());
46
+ if (this.formGroup().valid)
47
+ this.validEvent.emit();
48
+ else {
49
+ this.messageService.add({
50
+ key: 'toast-root',
51
+ severity: 'warn ',
52
+ summary: 'Form Hatası',
53
+ detail: 'Lütfen formdaki eksikleri gideriniz'
54
+ });
51
55
  this.inValidEvent.emit();
52
- }
53
- markAsDirty(controls) {
54
- Object.entries(controls).forEach(([key, ctrl]) => {
55
- if (isFormControl(ctrl)) {
56
- ctrl.markAsDirty();
57
- }
58
- else if (isFormGroup(ctrl) || isFormArray(ctrl)) {
59
- this.markAsDirty(ctrl.controls);
60
- }
61
- });
56
+ }
62
57
  }
63
58
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FormSubmitButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
64
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: FormSubmitButtonComponent, selector: "aril-form-submit", inputs: { formGroup: "formGroup" }, outputs: { inValidEvent: "inValidEvent" }, usesInheritance: true, ngImport: i0, template: "<aril-button\r\n\t[label]=\"label\"\r\n\t[loading]=\"formGroup.pending\"\r\n\t[disabled]=\"disabled\"\r\n\t[raised]=\"raised\"\r\n\t[outlined]=\"outlined\"\r\n\t[badge]=\"badge\"\r\n\t[size]=\"size\"\r\n\t[icon]=\"icon\"\r\n\t[color]=\"color\"\r\n\t(clickEvent)=\"submit()\">\r\n</aril-button>\r\n", dependencies: [{ kind: "component", type: i1$1.ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "outlined", "badge", "size", "icon", "color"], outputs: ["clickEvent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
59
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: FormSubmitButtonComponent, selector: "aril-form-submit:not([click])", inputs: { formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { validEvent: "validEvent", inValidEvent: "inValidEvent" }, usesInheritance: true, ngImport: i0, template: "<aril-button\n\t[label]=\"label\"\n\t[loading]=\"formGroup().pending\"\n\t[disabled]=\"disabled\"\n\t[raised]=\"raised\"\n\t[outlined]=\"outlined\"\n\t[badge]=\"badge\"\n\t[size]=\"size\"\n\t[icon]=\"icon\"\n\t[color]=\"color\"\n\t(clickEvent)=\"submit()\">\n</aril-button>\n", dependencies: [{ kind: "component", type: i1$1.ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "outlined", "badge", "size", "icon", "color"], outputs: ["clickEvent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
65
60
  }
66
61
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FormSubmitButtonComponent, decorators: [{
67
62
  type: Component,
68
- args: [{ selector: 'aril-form-submit', changeDetection: ChangeDetectionStrategy.OnPush, template: "<aril-button\r\n\t[label]=\"label\"\r\n\t[loading]=\"formGroup.pending\"\r\n\t[disabled]=\"disabled\"\r\n\t[raised]=\"raised\"\r\n\t[outlined]=\"outlined\"\r\n\t[badge]=\"badge\"\r\n\t[size]=\"size\"\r\n\t[icon]=\"icon\"\r\n\t[color]=\"color\"\r\n\t(clickEvent)=\"submit()\">\r\n</aril-button>\r\n" }]
69
- }], propDecorators: { formGroup: [{
70
- type: Input,
71
- args: [{ required: true }]
63
+ args: [{ selector: 'aril-form-submit:not([click])', changeDetection: ChangeDetectionStrategy.OnPush, template: "<aril-button\n\t[label]=\"label\"\n\t[loading]=\"formGroup().pending\"\n\t[disabled]=\"disabled\"\n\t[raised]=\"raised\"\n\t[outlined]=\"outlined\"\n\t[badge]=\"badge\"\n\t[size]=\"size\"\n\t[icon]=\"icon\"\n\t[color]=\"color\"\n\t(clickEvent)=\"submit()\">\n</aril-button>\n" }]
64
+ }], propDecorators: { validEvent: [{
65
+ type: Output
72
66
  }], inValidEvent: [{
73
67
  type: Output
74
68
  }] } });
75
69
 
76
70
  const components = [FormComponent, FormSubmitButtonComponent];
77
- class FormModule {
78
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
79
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.2", ngImport: i0, type: FormModule, declarations: [FormComponent, FormSubmitButtonComponent], imports: [ButtonComponent], exports: [FormComponent, FormSubmitButtonComponent] }); }
80
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FormModule, imports: [ButtonComponent] }); }
71
+ class ARiLFormModule {
72
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ARiLFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
73
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.2", ngImport: i0, type: ARiLFormModule, declarations: [FormComponent, FormSubmitButtonComponent], imports: [ButtonComponent], exports: [FormComponent, FormSubmitButtonComponent] }); }
74
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ARiLFormModule, imports: [ButtonComponent] }); }
81
75
  }
82
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FormModule, decorators: [{
76
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ARiLFormModule, decorators: [{
83
77
  type: NgModule,
84
78
  args: [{
85
79
  imports: [ButtonComponent],
@@ -92,5 +86,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
92
86
  * Generated bundle index. Do not edit.
93
87
  */
94
88
 
95
- export { FormComponent, FormModule, FormSubmitButtonComponent };
89
+ export { ARiLFormModule, FormComponent, FormSubmitButtonComponent };
96
90
  //# sourceMappingURL=aril-ui-form.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-form.mjs","sources":["../../projects/aril/ui/form/src/form.component.ts","../../projects/aril/ui/form/src/form-submit-button.component.ts","../../projects/aril/ui/form/src/form-submit-button.component.html","../../projects/aril/ui/form/index.ts","../../projects/aril/ui/form/aril-ui-form.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\n\r\nimport { FlexGridDirective, FormErrorMessageDirective } from 'aril/ui/lib';\r\n\r\n/* TODO : \r\n 1. InputSignal\r\n*/\r\n\r\n@Component({\r\n // standalone: true,\r\n selector: 'aril-form',\r\n template: ` <ng-content></ng-content> `,\r\n hostDirectives: [\r\n FlexGridDirective,\r\n {\r\n directive: FormErrorMessageDirective,\r\n inputs: [\"formErrorMessage: formGroup\"]\r\n }\r\n ],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormComponent {\r\n @Input({ required: true }) formGroup!: FormGroup;\r\n}\r\n","/* eslint-disable @typescript-eslint/no-unused-vars */\r\n/* eslint-disable @typescript-eslint/no-explicit-any */\r\n\r\nimport { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\r\nimport { FormGroup, isFormArray, isFormControl, isFormGroup } from '@angular/forms';\r\n\r\nimport { ButtonComponent } from 'aril/ui/button';\r\n\r\n/* TODO : \r\n 1. InputSignal\r\n*/\r\n\r\n@Component({\r\n // standalone: true,\r\n selector: 'aril-form-submit',\r\n templateUrl: './form-submit-button.component.html',\r\n // imports: [ButtonComponent],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormSubmitButtonComponent extends ButtonComponent {\r\n @Input({ required: true }) formGroup!: FormGroup;\r\n @Output() inValidEvent: EventEmitter<never> = new EventEmitter<never>();\r\n\r\n submit() {\r\n this.markAsDirty(this.formGroup.controls);\r\n if (this.formGroup.valid) this.clickEvent.emit();\r\n else this.inValidEvent.emit();\r\n }\r\n\r\n markAsDirty(controls: { [key: string]: any }) {\r\n Object.entries(controls).forEach(([key, ctrl]) => {\r\n if (isFormControl(ctrl)) {\r\n ctrl.markAsDirty();\r\n } else if (isFormGroup(ctrl) || isFormArray(ctrl)) {\r\n this.markAsDirty(ctrl.controls);\r\n }\r\n });\r\n }\r\n}","<aril-button\r\n\t[label]=\"label\"\r\n\t[loading]=\"formGroup.pending\"\r\n\t[disabled]=\"disabled\"\r\n\t[raised]=\"raised\"\r\n\t[outlined]=\"outlined\"\r\n\t[badge]=\"badge\"\r\n\t[size]=\"size\"\r\n\t[icon]=\"icon\"\r\n\t[color]=\"color\"\r\n\t(clickEvent)=\"submit()\">\r\n</aril-button>\r\n","export * from './src/form.component';\r\nexport * from './src/form-submit-button.component';\r\n\r\nimport { NgModule } from '@angular/core';\r\n\r\nimport { ButtonComponent } from \"aril/ui/button\";\r\n\r\nimport { FormComponent } from './src/form.component';\r\nimport { FormSubmitButtonComponent } from './src/form-submit-button.component';\r\n\r\nconst components = [FormComponent, FormSubmitButtonComponent];\r\n\r\n@NgModule({\r\n imports: [ButtonComponent],\r\n exports: [components],\r\n declarations: [components]\r\n})\r\nexport class FormModule { }","/**\n * Generated bundle index. Do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B,EAAA,eAAA,EAGX,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2SAAA,EAAA,CAAA;8BAGpB,SAAS,EAAA,CAAA;sBAAnC,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;gBACf,YAAY,EAAA,CAAA;sBAArB,MAAM;;;AEXT,MAAM,UAAU,GAAG,CAAC,aAAa,EAAE,yBAAyB,CAAC,CAAC;MAOjD,UAAU,CAAA;8GAAV,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAV,UAAU,EAAA,YAAA,EAAA,CAPH,aAAa,EAAE,yBAAyB,aAGhD,eAAe,CAAA,EAAA,OAAA,EAAA,CAHP,aAAa,EAAE,yBAAyB,CAAA,EAAA,CAAA,CAAA,EAAA;AAO/C,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAU,YAJX,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAId,UAAU,EAAA,UAAA,EAAA,CAAA;kBALtB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,OAAO,EAAE,CAAC,UAAU,CAAC;oBACrB,YAAY,EAAE,CAAC,UAAU,CAAC;AAC3B,iBAAA,CAAA;;;AChBD;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-form.mjs","sources":["../../projects/aril/ui/form/src/form.component.ts","../../projects/aril/ui/form/src/form-submit-button.component.ts","../../projects/aril/ui/form/src/form-submit-button.component.html","../../projects/aril/ui/form/index.ts","../../projects/aril/ui/form/aril-ui-form.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\n\r\nimport { FlexGridDirective, FormErrorMessageDirective } from 'aril/ui/lib';\r\n\r\n/* TODO : \r\n 1. InputSignal\r\n*/\r\n\r\n@Component({\r\n\t// standalone: true,\r\n\tselector: 'aril-form',\r\n\ttemplate: ` <ng-content></ng-content> `,\r\n\thostDirectives: [\r\n\t\tFlexGridDirective,\r\n\t\t{\r\n\t\t\tdirective: FormErrorMessageDirective,\r\n\t\t\tinputs: ['formErrorMessage: formGroup']\r\n\t\t}\r\n\t],\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormComponent {\r\n\t@Input({ required: true }) formGroup!: FormGroup;\r\n}\r\n","import { ChangeDetectionStrategy, Component, EventEmitter, input, Output, inject } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\n\r\nimport { MessageService } from 'primeng/api';\r\n\r\nimport { ButtonComponent } from 'aril/ui/button';\r\nimport { checkValidInputs } from 'aril/ui/lib';\r\n\r\n@Component({\r\n\tselector: 'aril-form-submit:not([click])',\r\n\ttemplateUrl: './form-submit-button.component.html',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormSubmitButtonComponent extends ButtonComponent {\r\n\tformGroup = input.required<FormGroup>();\r\n\r\n\t@Output() validEvent: EventEmitter<never> = new EventEmitter<never>();\r\n\t@Output() inValidEvent: EventEmitter<never> = new EventEmitter<never>();\r\n\r\n\tmessageService = inject(MessageService);\r\n\r\n\tsubmit() {\r\n\t\tcheckValidInputs(this.formGroup());\r\n\r\n\t\tif (this.formGroup().valid) this.validEvent.emit();\r\n\t\telse {\r\n\t\t\tthis.messageService.add({\r\n\t\t\t\tkey: 'toast-root',\r\n\t\t\t\tseverity: 'warn ',\r\n\t\t\t\tsummary: 'Form Hatası',\r\n\t\t\t\tdetail: 'Lütfen formdaki eksikleri gideriniz'\r\n\t\t\t});\r\n\t\t\tthis.inValidEvent.emit();\r\n\t\t}\r\n\t}\r\n}\r\n","<aril-button\n\t[label]=\"label\"\n\t[loading]=\"formGroup().pending\"\n\t[disabled]=\"disabled\"\n\t[raised]=\"raised\"\n\t[outlined]=\"outlined\"\n\t[badge]=\"badge\"\n\t[size]=\"size\"\n\t[icon]=\"icon\"\n\t[color]=\"color\"\n\t(clickEvent)=\"submit()\">\n</aril-button>\n","export * from './src/form.component';\nexport * from './src/form-submit-button.component';\n\nimport { NgModule } from '@angular/core';\n\nimport { ButtonComponent } from 'aril/ui/button';\n\nimport { FormComponent } from './src/form.component';\nimport { FormSubmitButtonComponent } from './src/form-submit-button.component';\n\nconst components = [FormComponent, FormSubmitButtonComponent];\n\n@NgModule({\n\timports: [ButtonComponent],\n\texports: [components],\n\tdeclarations: [components]\n})\nexport class ARiLFormModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;AAKA;;AAEE;MAeW,aAAa,CAAA;8GAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAb,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,aAAa,oOAVf,CAA6B,2BAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAU3B,aAAa,EAAA,UAAA,EAAA,CAAA;kBAbzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;;AAEV,oBAAA,QAAQ,EAAE,WAAW;AACrB,oBAAA,QAAQ,EAAE,CAA6B,2BAAA,CAAA;AACvC,oBAAA,cAAc,EAAE;wBACf,iBAAiB;AACjB,wBAAA;AACC,4BAAA,SAAS,EAAE,yBAAyB;4BACpC,MAAM,EAAE,CAAC,6BAA6B,CAAC;AACvC,yB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ACT,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,OAAO,EAAE,CAAC,UAAU,CAAC;oBACrB,YAAY,EAAE,CAAC,UAAU,CAAC;AAC1B,iBAAA,CAAA;;;AChBD;;AAEG;;;;"}
@@ -18,10 +18,10 @@ class FormErrorMessagesComponent {
18
18
  });
19
19
  }
20
20
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FormErrorMessagesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
21
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: FormErrorMessagesComponent, isStandalone: true, selector: "ng-component", inputs: { messages: "messages" }, ngImport: i0, template: `
22
- <div class="flex gap-2 formErrorMessage">
23
- <p-messages [(value)]="_pMessages" [enableService]="false" [closable]="false"></p-messages>
24
- </div>
21
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: FormErrorMessagesComponent, isStandalone: true, selector: "ng-component", inputs: { messages: "messages" }, ngImport: i0, template: `
22
+ <div class="flex gap-2 formErrorMessage">
23
+ <p-messages [(value)]="_pMessages" [enableService]="false" [closable]="false"></p-messages>
24
+ </div>
25
25
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: MessagesModule }, { kind: "component", type: i1.Messages, selector: "p-messages", inputs: ["value", "closable", "style", "styleClass", "enableService", "key", "escape", "severity", "showTransitionOptions", "hideTransitionOptions"], outputs: ["valueChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
26
26
  }
27
27
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FormErrorMessagesComponent, decorators: [{
@@ -29,10 +29,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
29
29
  args: [{
30
30
  standalone: true,
31
31
  imports: [MessagesModule],
32
- template: `
33
- <div class="flex gap-2 formErrorMessage">
34
- <p-messages [(value)]="_pMessages" [enableService]="false" [closable]="false"></p-messages>
35
- </div>
32
+ template: `
33
+ <div class="flex gap-2 formErrorMessage">
34
+ <p-messages [(value)]="_pMessages" [enableService]="false" [closable]="false"></p-messages>
35
+ </div>
36
36
  `,
37
37
  changeDetection: ChangeDetectionStrategy.OnPush
38
38
  }]
@@ -76,7 +76,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
76
76
  }] } });
77
77
 
78
78
  const checkValidInputs = (formGroup) => {
79
- Object.keys(formGroup.controls).forEach(field => {
79
+ Object.keys(formGroup.controls).forEach((field) => {
80
80
  const control = formGroup.get(field);
81
81
  if (control instanceof FormControl) {
82
82
  control.markAsTouched({ onlySelf: true });
@@ -89,21 +89,21 @@ const checkValidInputs = (formGroup) => {
89
89
  };
90
90
 
91
91
  const addControlsWithValidation = (form, controls) => {
92
- controls.forEach(control => {
92
+ controls.forEach((control) => {
93
93
  if (!form.contains(control.name)) {
94
94
  form.addControl(control.name, new FormControl({ value: '', disabled: control?.disabled || false }, control.validator));
95
95
  }
96
96
  });
97
97
  };
98
98
  const removeControls = (form, controlNames) => {
99
- controlNames.forEach(controlName => {
99
+ controlNames.forEach((controlName) => {
100
100
  if (form.contains(controlName)) {
101
101
  form.removeControl(controlName);
102
102
  }
103
103
  });
104
104
  };
105
105
  const updateValueAndValidities = (form, controlNames) => {
106
- controlNames.forEach(controlName => {
106
+ controlNames.forEach((controlName) => {
107
107
  if (form.contains(controlName)) {
108
108
  form.get(controlName)?.updateValueAndValidity();
109
109
  }
@@ -148,7 +148,7 @@ function injectNgControl() {
148
148
  ngControl instanceof FormControlDirective) {
149
149
  return ngControl;
150
150
  }
151
- throw new Error("Something went wrong in InjectNgControl");
151
+ throw new Error('Something went wrong in InjectNgControl');
152
152
  }
153
153
 
154
154
  class CommonInputValidatorsService {
@@ -157,16 +157,16 @@ class CommonInputValidatorsService {
157
157
  * @param edCtrlName - name of the end date form control
158
158
  * @param rangeValue - range between start and end date. Default value is 1
159
159
  * @param rangeFormat - format of the range. Default value is "day"
160
- */
161
- dateRange(sdCtrlName, edCtrlName, rangeValue = 0, rangeFormat = "day") {
160
+ */
161
+ dateRange(sdCtrlName, edCtrlName, rangeValue = 0, rangeFormat = 'day') {
162
162
  return (control) => {
163
163
  const start = control.get(sdCtrlName)?.value;
164
164
  const end = control.get(edCtrlName)?.value;
165
165
  const startJSDate = start.longToDate();
166
166
  const endJSDate = end.longToDate();
167
167
  if (startJSDate && endJSDate) {
168
- const isRangeValid = (endJSDate.getTime() - startJSDate.getTime() > rangeValue);
169
- return isRangeValid ? null : { dateRange: `The end date must be at least ${rangeValue} ${rangeFormat} bigger than the start date` };
168
+ const isRangeValid = endJSDate.getTime() - startJSDate.getTime() > rangeValue;
169
+ return isRangeValid ? null : ({ dateRange: `The end date must be at least ${rangeValue} ${rangeFormat} bigger than the start date` });
170
170
  }
171
171
  return null;
172
172
  };
@@ -220,7 +220,8 @@ class InputErrorMessagePipe {
220
220
  return 'Invalid email';
221
221
  case 'pattern':
222
222
  return 'Invalid format';
223
- default: return errorValue;
223
+ default:
224
+ return errorValue;
224
225
  }
225
226
  }
226
227
  return '';
@@ -291,16 +292,22 @@ function iconPosTransform(pos) {
291
292
  /* eslint-disable @typescript-eslint/no-unused-vars */
292
293
  /* eslint-disable @typescript-eslint/no-explicit-any */
293
294
  class ValueAccessorDirective {
294
- writeValue(obj) { return; }
295
- registerOnChange(fn) { return; }
296
- registerOnTouched(fn) { return; }
295
+ writeValue(obj) {
296
+ return;
297
+ }
298
+ registerOnChange(fn) {
299
+ return;
300
+ }
301
+ registerOnTouched(fn) {
302
+ return;
303
+ }
297
304
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ValueAccessorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
298
305
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.2", type: ValueAccessorDirective, isStandalone: true, providers: [
299
306
  {
300
307
  provide: NG_VALUE_ACCESSOR,
301
308
  multi: true,
302
309
  useExisting: ValueAccessorDirective
303
- },
310
+ }
304
311
  ], ngImport: i0 }); }
305
312
  }
306
313
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ValueAccessorDirective, decorators: [{
@@ -312,7 +319,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
312
319
  provide: NG_VALUE_ACCESSOR,
313
320
  multi: true,
314
321
  useExisting: ValueAccessorDirective
315
- },
322
+ }
316
323
  ]
317
324
  }]
318
325
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-lib.mjs","sources":["../../projects/aril/ui/lib/src/form/form-error-message.component.ts","../../projects/aril/ui/lib/src/form/form-error-message.directive.ts","../../projects/aril/ui/lib/src/form/form-validation.ts","../../projects/aril/ui/lib/src/form/form-field-builder.ts","../../projects/aril/ui/lib/src/grid/flex-grid.directive.ts","../../projects/aril/ui/lib/src/input/baseInput.ts","../../projects/aril/ui/lib/src/input/common-input-validators.service.ts","../../projects/aril/ui/lib/src/input/input-error-message.pipe.ts","../../projects/aril/ui/lib/src/input/dx-input-error-message.pipe.ts","../../projects/aril/ui/lib/src/input/input-disabled.directive.ts","../../projects/aril/ui/lib/src/input/input-transforms.ts","../../projects/aril/ui/lib/src/input/value-accessor.directive.ts","../../projects/aril/ui/lib/index.ts","../../projects/aril/ui/lib/aril-ui-lib.ts"],"sourcesContent":["\r\nimport { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\nimport { ValidationErrors } from '@angular/forms';\r\n\r\nimport { Message } from 'primeng/api';\r\nimport { MessagesModule } from 'primeng/messages';\r\n\r\n/* TODO : \r\n 1. InputSignal\r\n 2. Use computed or effect instead of input setter\r\n*/\r\n\r\n@Component({\r\n standalone: true,\r\n imports: [MessagesModule],\r\n template: `\r\n\t\t<div class=\"flex gap-2 formErrorMessage\">\r\n\t\t\t<p-messages [(value)]=\"_pMessages\" [enableService]=\"false\" [closable]=\"false\"></p-messages>\r\n\t\t</div>\r\n\t`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormErrorMessagesComponent {\r\n _pMessages!: Message[];\r\n\r\n @Input() set messages(messages: ValidationErrors | null) {\r\n this._pMessages = Object.values(messages!).map((msg) => {\r\n return { severity: 'error', summary: '', detail: msg }\r\n });\r\n }\r\n}\r\n","/* eslint-disable @angular-eslint/directive-selector */\r\n\r\nimport { ComponentRef, Directive, Input, OnInit, ViewContainerRef } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\n\r\nimport { FormErrorMessagesComponent } from './form-error-message.component';\r\n\r\n/* TODO : \r\n 1. InputSignal\r\n*/\r\n\r\n@Directive({\r\n standalone: true,\r\n selector: '[formErrorMessage]'\r\n})\r\nexport class FormErrorMessageDirective implements OnInit {\r\n constructor(private viewContainerRef: ViewContainerRef) { }\r\n\r\n @Input() formErrorMessage!: FormGroup;\r\n\r\n errorKeys: string[] = [];\r\n componentRef!: ComponentRef<FormErrorMessagesComponent>;\r\n\r\n ngOnInit(): void {\r\n this.formErrorMessage.statusChanges.subscribe((status) => {\r\n if (this.componentRef) this.viewContainerRef.remove();\r\n\r\n if (status === 'INVALID') {\r\n if (this.formErrorMessage.errors) {\r\n this.componentRef = this.viewContainerRef.createComponent(FormErrorMessagesComponent);\r\n this.componentRef.instance.messages = this.formErrorMessage.errors;\r\n this.viewContainerRef.insert(this.componentRef.hostView);\r\n }\r\n }\r\n });\r\n }\r\n}","import { FormArray, FormControl, FormGroup } from \"@angular/forms\";\r\n\r\nexport const checkValidInputs = (formGroup: FormGroup | FormArray) => {\r\n Object.keys(formGroup.controls).forEach(field => {\r\n const control = formGroup.get(field);\r\n\r\n if (control instanceof FormControl) {\r\n control.markAsTouched({ onlySelf: true });\r\n control.markAsDirty({ onlySelf: true });\r\n }\r\n else if (control instanceof FormGroup || control instanceof FormArray) {\r\n checkValidInputs(control);\r\n }\r\n });\r\n}","import { FormControl, FormGroup, ValidatorFn } from '@angular/forms';\r\n\r\nexport const addControlsWithValidation = (form: FormGroup, controls: { name: string, validator?: ValidatorFn, disabled?: boolean }[]) => {\r\n controls.forEach(control => {\r\n if (!form.contains(control.name)) {\r\n form.addControl(control.name, new FormControl({ value: '', disabled: control?.disabled || false }, control.validator));\r\n }\r\n });\r\n}\r\n\r\nexport const removeControls = (form: FormGroup, controlNames: string[]) => {\r\n controlNames.forEach(controlName => {\r\n if (form.contains(controlName)) {\r\n form.removeControl(controlName);\r\n }\r\n });\r\n}\r\n\r\nexport const updateValueAndValidities = (form: FormGroup, controlNames: string[]) => {\r\n controlNames.forEach(controlName => {\r\n if (form.contains(controlName)) {\r\n form.get(controlName)?.updateValueAndValidity();\r\n }\r\n });\r\n}","/* eslint-disable @angular-eslint/directive-selector */\r\n\r\nimport { Directive, HostBinding } from \"@angular/core\";\r\n\r\n@Directive({\r\n standalone: true,\r\n selector: '[flexGrid]'\r\n})\r\nexport class FlexGridDirective {\r\n @HostBinding('class') hostClass = 'grid p-fluid m-0 p-0';\r\n}","import { inject } from \"@angular/core\";\r\nimport { FormControlDirective, FormControlName, NgControl, NgModel } from \"@angular/forms\";\r\n\r\nimport { TooltipOptions } from \"primeng/api\";\r\n\r\nexport abstract class BaseInputComponent {\r\n\r\n ngControl = injectNgControl();\r\n\r\n tooltipOptions: TooltipOptions = {\r\n tooltipPosition: 'top',\r\n tooltipEvent: 'focus',\r\n tooltipStyleClass: 'tooltipErrorMessage'\r\n };\r\n}\r\n\r\nexport function injectNgControl() {\r\n const ngControl = inject(NgControl, { self: true, optional: true });\r\n\r\n if (!ngControl) throw new Error('NgModel or FormControlName or FormControlDirective is required');\r\n\r\n if (\r\n ngControl instanceof NgModel ||\r\n ngControl instanceof FormControlName ||\r\n ngControl instanceof FormControlDirective\r\n ) {\r\n return ngControl;\r\n }\r\n\r\n throw new Error(\"Something went wrong in InjectNgControl\");\r\n}","import { Injectable } from '@angular/core';\r\nimport { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';\r\n\r\nimport \"aril/util/primitive-extensions\";\r\n\r\nexport type DateRangeFormat = \"minute\" | \"hour\" | \"day\" | \"month\" | \"year\";\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CommonInputValidatorsService {\r\n\r\n /**\r\n * @param sdCtrlName - name of the start date form control\r\n * @param edCtrlName - name of the end date form control\r\n * @param rangeValue - range between start and end date. Default value is 1\r\n * @param rangeFormat - format of the range. Default value is \"day\"\r\n */\r\n dateRange(sdCtrlName: string, edCtrlName: string, rangeValue = 0, rangeFormat: DateRangeFormat = \"day\"): ValidatorFn {\r\n return (control: AbstractControl): ValidationErrors | null => {\r\n const start: number = control.get(sdCtrlName)?.value;\r\n const end: number = control.get(edCtrlName)?.value;\r\n\r\n const startJSDate = start.longToDate();\r\n const endJSDate = end.longToDate();\r\n\r\n if (startJSDate && endJSDate) {\r\n const isRangeValid = (endJSDate.getTime() - startJSDate.getTime() > rangeValue);\r\n\r\n return isRangeValid ? null : { dateRange: `The end date must be at least ${rangeValue} ${rangeFormat} bigger than the start date` };\r\n }\r\n\r\n return null;\r\n }\r\n }\r\n\r\n /**\r\n * @description - pasword match vs.\r\n */\r\n strictMatch(controlName: string, matchingControlName: string): ValidatorFn {\r\n return (control: AbstractControl): ValidationErrors | null => {\r\n const firstField = control.get(controlName);\r\n const secondField = control.get(matchingControlName);\r\n\r\n if (!firstField || !secondField) {\r\n return null;\r\n }\r\n\r\n if (firstField.value !== secondField.value) {\r\n return { strictMatch: `${controlName} and ${matchingControlName} do not match` };\r\n }\r\n\r\n return null;\r\n }\r\n }\r\n}\r\n","/* eslint-disable @typescript-eslint/no-explicit-any */\r\n\r\nimport { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n standalone: true,\r\n name: 'inputErrorMessage'\r\n})\r\nexport class InputErrorMessagePipe implements PipeTransform {\r\n\r\n transform(value: any, ...args: any[]): string {\r\n const control = args[0];\r\n const errorKeys = Object.keys(control.errors || {});\r\n\r\n if (errorKeys.length) {\r\n const errorKey = errorKeys[0];\r\n const errorValue = control.errors![errorKey];\r\n\r\n switch (errorKey) {\r\n case 'required':\r\n return 'This field is required';\r\n case 'min':\r\n return `Minimum value is ${errorValue.min}`;\r\n case 'max':\r\n return `Maximum value is ${errorValue.max}`;\r\n case 'minlength':\r\n return `Minimum length is ${errorValue.requiredLength}`;\r\n case 'maxlength':\r\n return `Maximum length is ${errorValue.requiredLength}`;\r\n case 'email':\r\n return 'Invalid email';\r\n case 'pattern':\r\n return 'Invalid format';\r\n default: return errorValue;\r\n }\r\n }\r\n\r\n return '';\r\n }\r\n}\r\n","/* eslint-disable @typescript-eslint/no-explicit-any */\r\n\r\nimport { Pipe, PipeTransform, inject } from \"@angular/core\";\r\n\r\nimport { InputErrorMessagePipe } from \"./input-error-message.pipe\";\r\n\r\n@Pipe({\r\n standalone: true,\r\n name: 'dxInputErrorMessage'\r\n})\r\nexport class DXInputErrorMessagePipe implements PipeTransform {\r\n errorMsgPipe = inject(InputErrorMessagePipe);\r\n\r\n transform(value: any, ...args: any[]): { message: string } {\r\n return { message: this.errorMsgPipe.transform(value, ...args) };\r\n }\r\n}","import { Directive, Input } from '@angular/core';\r\nimport { NgControl } from '@angular/forms';\r\n\r\n/* TODO : \r\n 1. InputSignal\r\n 2. Use computed or effect instead of input setter\r\n*/\r\n\r\n@Directive({\r\n standalone: true,\r\n selector: '[arilDisabled]'\r\n})\r\nexport class InputDisabledDirective {\r\n constructor(private ngControl: NgControl) { }\r\n\r\n @Input() set arilDisabled(condition: boolean) {\r\n const action = condition ? 'disable' : 'enable';\r\n if (this.ngControl.control) this.ngControl.control[action]();\r\n }\r\n}\r\n","import { PrimeIcons } from 'primeng/api';\r\n\r\nexport type PrimeIcon = Exclude<keyof typeof PrimeIcons, \"prototype\">;\r\nexport function iconTransform(icon: PrimeIcon): string {\r\n return PrimeIcons[icon];\r\n}\r\n\r\nexport type IconPosTypes = 'right' | 'left';\r\nexport function iconPosTransform(pos: IconPosTypes): string {\r\n return 'p-input-icon-' + pos;\r\n}","/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { Directive } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Directive({\n standalone: true,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n multi: true,\n useExisting: ValueAccessorDirective\n },\n ]\n})\nexport class ValueAccessorDirective implements ControlValueAccessor {\n writeValue(obj: any): void { return }\n registerOnChange(fn: any): void { return }\n registerOnTouched(fn: any): void { return }\n}","/* form */\r\nexport * from './src/form/form-error-message.directive';\r\nexport * from './src/form/form-validation';\r\nexport * from './src/form/form-field-builder';\r\n\r\n/* grid */\r\nexport * from './src/grid/flex-grid.directive';\r\n\r\n/* input */\r\nexport * from './src/input/baseInput';\r\nexport * from './src/input/common-input-validators.service';\r\nexport * from './src/input/dx-input-error-message.pipe';\r\nexport * from './src/input/input-disabled.directive';\r\nexport * from './src/input/input-error-message.pipe';\r\nexport * from './src/input/input-transforms';\r\nexport * from './src/input/value-accessor.directive';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;AAOA;;;AAGE;MAYW,0BAA0B,CAAA;IAGrC,IAAa,QAAQ,CAAC,QAAiC,EAAA;AACrD,QAAA,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,QAAS,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAI;AACrD,YAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAA;AACxD,SAAC,CAAC,CAAC;KACJ;8GAPU,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAA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1B,4BAAA,KAAK,EAAE,IAAI;AACX,4BAAA,WAAW,EAAwB,sBAAA;AACpC,yBAAA;AACF,qBAAA;AACF,iBAAA,CAAA;;;ACfD;;ACAA;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-lib.mjs","sources":["../../projects/aril/ui/lib/src/form/form-error-message.component.ts","../../projects/aril/ui/lib/src/form/form-error-message.directive.ts","../../projects/aril/ui/lib/src/form/form-validation.ts","../../projects/aril/ui/lib/src/form/form-field-builder.ts","../../projects/aril/ui/lib/src/grid/flex-grid.directive.ts","../../projects/aril/ui/lib/src/input/baseInput.ts","../../projects/aril/ui/lib/src/input/common-input-validators.service.ts","../../projects/aril/ui/lib/src/input/input-error-message.pipe.ts","../../projects/aril/ui/lib/src/input/dx-input-error-message.pipe.ts","../../projects/aril/ui/lib/src/input/input-disabled.directive.ts","../../projects/aril/ui/lib/src/input/input-transforms.ts","../../projects/aril/ui/lib/src/input/value-accessor.directive.ts","../../projects/aril/ui/lib/index.ts","../../projects/aril/ui/lib/aril-ui-lib.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { ValidationErrors } from '@angular/forms';\n\nimport { Message } from 'primeng/api';\nimport { MessagesModule } from 'primeng/messages';\n\n/* TODO : \n 1. InputSignal\n 2. Use computed or effect instead of input setter\n*/\n\n@Component({\n\tstandalone: true,\n\timports: [MessagesModule],\n\ttemplate: `\n\t\t<div class=\"flex gap-2 formErrorMessage\">\n\t\t\t<p-messages [(value)]=\"_pMessages\" [enableService]=\"false\" [closable]=\"false\"></p-messages>\n\t\t</div>\n\t`,\n\tchangeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormErrorMessagesComponent {\n\t_pMessages!: Message[];\n\n\t@Input() set messages(messages: ValidationErrors | null) {\n\t\tthis._pMessages = Object.values(messages!).map((msg) => {\n\t\t\treturn { severity: 'error', summary: '', detail: msg };\n\t\t});\n\t}\n}\n","/* eslint-disable @angular-eslint/directive-selector */\n\nimport { ComponentRef, Directive, Input, OnInit, ViewContainerRef } from '@angular/core';\nimport { FormGroup } from '@angular/forms';\n\nimport { FormErrorMessagesComponent } from './form-error-message.component';\n\n/* TODO : \n 1. InputSignal\n*/\n\n@Directive({\n\tstandalone: true,\n\tselector: '[formErrorMessage]'\n})\nexport class FormErrorMessageDirective implements OnInit {\n\tconstructor(private viewContainerRef: ViewContainerRef) {}\n\n\t@Input() formErrorMessage!: FormGroup;\n\n\terrorKeys: string[] = [];\n\tcomponentRef!: ComponentRef<FormErrorMessagesComponent>;\n\n\tngOnInit(): void {\n\t\tthis.formErrorMessage.statusChanges.subscribe((status) => {\n\t\t\tif (this.componentRef) this.viewContainerRef.remove();\n\n\t\t\tif (status === 'INVALID') {\n\t\t\t\tif (this.formErrorMessage.errors) {\n\t\t\t\t\tthis.componentRef = this.viewContainerRef.createComponent(FormErrorMessagesComponent);\n\t\t\t\t\tthis.componentRef.instance.messages = this.formErrorMessage.errors;\n\t\t\t\t\tthis.viewContainerRef.insert(this.componentRef.hostView);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n}\n","import { FormArray, FormControl, FormGroup } from '@angular/forms';\n\nexport const checkValidInputs = (formGroup: FormGroup | FormArray) => {\n\tObject.keys(formGroup.controls).forEach((field) => {\n\t\tconst control = formGroup.get(field);\n\n\t\tif (control instanceof FormControl) {\n\t\t\tcontrol.markAsTouched({ onlySelf: true });\n\t\t\tcontrol.markAsDirty({ onlySelf: true });\n\t\t} else if (control instanceof FormGroup || control instanceof FormArray) {\n\t\t\tcheckValidInputs(control);\n\t\t}\n\t});\n};\n","import { FormControl, FormGroup, ValidatorFn } from '@angular/forms';\n\nexport const addControlsWithValidation = (\n\tform: FormGroup,\n\tcontrols: { name: string; validator?: ValidatorFn; disabled?: boolean }[]\n) => {\n\tcontrols.forEach((control) => {\n\t\tif (!form.contains(control.name)) {\n\t\t\tform.addControl(\n\t\t\t\tcontrol.name,\n\t\t\t\tnew FormControl({ value: '', disabled: control?.disabled || false }, control.validator)\n\t\t\t);\n\t\t}\n\t});\n};\n\nexport const removeControls = (form: FormGroup, controlNames: string[]) => {\n\tcontrolNames.forEach((controlName) => {\n\t\tif (form.contains(controlName)) {\n\t\t\tform.removeControl(controlName);\n\t\t}\n\t});\n};\n\nexport const updateValueAndValidities = (form: FormGroup, controlNames: string[]) => {\n\tcontrolNames.forEach((controlName) => {\n\t\tif (form.contains(controlName)) {\n\t\t\tform.get(controlName)?.updateValueAndValidity();\n\t\t}\n\t});\n};\n","/* eslint-disable @angular-eslint/directive-selector */\n\nimport { Directive, HostBinding } from '@angular/core';\n\n@Directive({\n\tstandalone: true,\n\tselector: '[flexGrid]'\n})\nexport class FlexGridDirective {\n\t@HostBinding('class') hostClass = 'grid p-fluid m-0 p-0';\n}\n","import { inject } from '@angular/core';\nimport { FormControlDirective, FormControlName, NgControl, NgModel } from '@angular/forms';\n\nimport { TooltipOptions } from 'primeng/api';\n\nexport abstract class BaseInputComponent {\n\tngControl = injectNgControl();\n\n\ttooltipOptions: TooltipOptions = {\n\t\ttooltipPosition: 'top',\n\t\ttooltipEvent: 'focus',\n\t\ttooltipStyleClass: 'tooltipErrorMessage'\n\t};\n}\n\nexport function injectNgControl() {\n\tconst ngControl = inject(NgControl, { self: true, optional: true });\n\n\tif (!ngControl) throw new Error('NgModel or FormControlName or FormControlDirective is required');\n\n\tif (\n\t\tngControl instanceof NgModel ||\n\t\tngControl instanceof FormControlName ||\n\t\tngControl instanceof FormControlDirective\n\t) {\n\t\treturn ngControl;\n\t}\n\n\tthrow new Error('Something went wrong in InjectNgControl');\n}\n","import { Injectable } from '@angular/core';\nimport { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';\n\nimport 'aril/util/primitive-extensions';\n\nexport type DateRangeFormat = 'minute' | 'hour' | 'day' | 'month' | 'year';\n\n@Injectable({\n\tprovidedIn: 'root'\n})\nexport class CommonInputValidatorsService {\n\t/**\n\t * @param sdCtrlName - name of the start date form control\n\t * @param edCtrlName - name of the end date form control\n\t * @param rangeValue - range between start and end date. Default value is 1\n\t * @param rangeFormat - format of the range. Default value is \"day\"\n\t */\n\tdateRange(sdCtrlName: string, edCtrlName: string, rangeValue = 0, rangeFormat: DateRangeFormat = 'day'): ValidatorFn {\n\t\treturn (control: AbstractControl): ValidationErrors | null => {\n\t\t\tconst start: number = control.get(sdCtrlName)?.value;\n\t\t\tconst end: number = control.get(edCtrlName)?.value;\n\n\t\t\tconst startJSDate = start.longToDate();\n\t\t\tconst endJSDate = end.longToDate();\n\n\t\t\tif (startJSDate && endJSDate) {\n\t\t\t\tconst isRangeValid = endJSDate.getTime() - startJSDate.getTime() > rangeValue;\n\n\t\t\t\treturn isRangeValid ? null : (\n\t\t\t\t\t\t{ dateRange: `The end date must be at least ${rangeValue} ${rangeFormat} bigger than the start date` }\n\t\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn null;\n\t\t};\n\t}\n\n\t/**\n\t * @description - pasword match vs.\n\t */\n\tstrictMatch(controlName: string, matchingControlName: string): ValidatorFn {\n\t\treturn (control: AbstractControl): ValidationErrors | null => {\n\t\t\tconst firstField = control.get(controlName);\n\t\t\tconst secondField = control.get(matchingControlName);\n\n\t\t\tif (!firstField || !secondField) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tif (firstField.value !== secondField.value) {\n\t\t\t\treturn { strictMatch: `${controlName} and ${matchingControlName} do not match` };\n\t\t\t}\n\n\t\t\treturn null;\n\t\t};\n\t}\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n\tstandalone: true,\n\tname: 'inputErrorMessage'\n})\nexport class InputErrorMessagePipe implements PipeTransform {\n\ttransform(value: any, ...args: any[]): string {\n\t\tconst control = args[0];\n\t\tconst errorKeys = Object.keys(control.errors || {});\n\n\t\tif (errorKeys.length) {\n\t\t\tconst errorKey = errorKeys[0];\n\t\t\tconst errorValue = control.errors![errorKey];\n\n\t\t\tswitch (errorKey) {\n\t\t\t\tcase 'required':\n\t\t\t\t\treturn 'This field is required';\n\t\t\t\tcase 'min':\n\t\t\t\t\treturn `Minimum value is ${errorValue.min}`;\n\t\t\t\tcase 'max':\n\t\t\t\t\treturn `Maximum value is ${errorValue.max}`;\n\t\t\t\tcase 'minlength':\n\t\t\t\t\treturn `Minimum length is ${errorValue.requiredLength}`;\n\t\t\t\tcase 'maxlength':\n\t\t\t\t\treturn `Maximum length is ${errorValue.requiredLength}`;\n\t\t\t\tcase 'email':\n\t\t\t\t\treturn 'Invalid email';\n\t\t\t\tcase 'pattern':\n\t\t\t\t\treturn 'Invalid format';\n\t\t\t\tdefault:\n\t\t\t\t\treturn errorValue;\n\t\t\t}\n\t\t}\n\n\t\treturn '';\n\t}\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { Pipe, PipeTransform, inject } from '@angular/core';\n\nimport { InputErrorMessagePipe } from './input-error-message.pipe';\n\n@Pipe({\n\tstandalone: true,\n\tname: 'dxInputErrorMessage'\n})\nexport class DXInputErrorMessagePipe implements PipeTransform {\n\terrorMsgPipe = inject(InputErrorMessagePipe);\n\n\ttransform(value: any, ...args: any[]): { message: string } {\n\t\treturn { message: this.errorMsgPipe.transform(value, ...args) };\n\t}\n}\n","import { Directive, Input } from '@angular/core';\nimport { NgControl } from '@angular/forms';\n\n/* TODO : \n 1. InputSignal\n 2. Use computed or effect instead of input setter\n*/\n\n@Directive({\n\tstandalone: true,\n\tselector: '[arilDisabled]'\n})\nexport class InputDisabledDirective {\n\tconstructor(private ngControl: NgControl) {}\n\n\t@Input() set arilDisabled(condition: boolean) {\n\t\tconst action = condition ? 'disable' : 'enable';\n\t\tif (this.ngControl.control) this.ngControl.control[action]();\n\t}\n}\n","import { PrimeIcons } from 'primeng/api';\n\nexport type PrimeIcon = Exclude<keyof typeof PrimeIcons, 'prototype'>;\nexport function iconTransform(icon: PrimeIcon): string {\n\treturn PrimeIcons[icon];\n}\n\nexport type IconPosTypes = 'right' | 'left';\nexport function iconPosTransform(pos: IconPosTypes): string {\n\treturn 'p-input-icon-' + pos;\n}\n","/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { Directive } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Directive({\n\tstandalone: true,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tmulti: true,\n\t\t\tuseExisting: ValueAccessorDirective\n\t\t}\n\t]\n})\nexport class ValueAccessorDirective implements ControlValueAccessor {\n\twriteValue(obj: any): void {\n\t\treturn;\n\t}\n\tregisterOnChange(fn: any): void {\n\t\treturn;\n\t}\n\tregisterOnTouched(fn: any): void {\n\t\treturn;\n\t}\n}\n","/* form */\nexport * from './src/form/form-error-message.directive';\nexport * from './src/form/form-validation';\nexport * from './src/form/form-field-builder';\n\n/* grid */\nexport * from './src/grid/flex-grid.directive';\n\n/* input */\nexport * from './src/input/baseInput';\nexport * from './src/input/common-input-validators.service';\nexport * from './src/input/dx-input-error-message.pipe';\nexport * from './src/input/input-disabled.directive';\nexport * from './src/input/input-error-message.pipe';\nexport * from './src/input/input-transforms';\nexport * from './src/input/value-accessor.directive';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;AAMA;;;AAGE;MAYW,0BAA0B,CAAA;IAGtC,IAAa,QAAQ,CAAC,QAAiC,EAAA;AACtD,QAAA,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,QAAS,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAI;AACtD,YAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AACxD,SAAC,CAAC,CAAC;KACH;8GAPW,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAA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A,KAAK,EAAE,IAAI;AACX,4BAAA,WAAW,EAAwB,sBAAA;AACnC,yBAAA;AACD,qBAAA;AACD,iBAAA,CAAA;;;ACfD;;ACAA;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, Component, ChangeDetectionStrategy } from '@angular/core';
2
+ import { input, Component } from '@angular/core';
3
3
  import * as i2 from '@angular/forms';
4
4
  import { ReactiveFormsModule } from '@angular/forms';
5
5
  import { NgStyle } from '@angular/common';
@@ -15,28 +15,28 @@ import { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } fro
15
15
  * ? - optional characters
16
16
  * formatting characters -> (), -
17
17
  */
18
- class InputMaskComponent extends BaseInputComponent {
18
+ class MaskComponent extends BaseInputComponent {
19
19
  constructor() {
20
20
  super(...arguments);
21
21
  this.mask = input.required();
22
- this.slotChar = input("_");
22
+ this.slotChar = input('_');
23
23
  this.placeholder = input();
24
24
  this.maxlength = input(100);
25
25
  this.usageInGrid = input(true);
26
26
  this.tabindex = input();
27
27
  this.showTooltip = false;
28
28
  }
29
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: InputMaskComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
30
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: InputMaskComponent, isStandalone: true, selector: "aril-mask[ngModel], aril-mask[formControl], aril-mask[formControlName]", inputs: { mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: true, transformFunction: null }, slotChar: { classPropertyName: "slotChar", publicName: "slotChar", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, usageInGrid: { classPropertyName: "usageInGrid", publicName: "usageInGrid", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<div\r\n\tstyle=\"position: relative\"\r\n\t[ngStyle]=\"!usageInGrid ? { display: 'inline-block' } : {}\">\r\n\t<p-inputMask\r\n\t\t[mask]=\"mask()\"\r\n\t\t[slotChar]=\"slotChar()\"\r\n\t\t[placeholder]=\"placeholder()\"\r\n\t\t[maxlength]=\"maxlength()\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\r\n\t\t(onFocus)=\"showTooltip = true\"\r\n\t\t(onBlur)=\"showTooltip = false\">\r\n\t</p-inputMask>\r\n\t@if (ngControl.invalid && showTooltip) {\r\n\t\t<div class=\"custom-tooltip tooltipErrorMessage\">\r\n\t\t\t{{ ngControl.control.value | inputErrorMessage: ngControl }}\r\n\t\t</div>\r\n\t}\r\n</div>\r\n", styles: [".custom-tooltip{position:absolute;background-color:#dc143c;color:#fff;padding:.75rem;border-radius:6px;z-index:1001;top:-107%;left:50%;transform:translate(-50%);white-space:nowrap}.custom-tooltip:before{content:\"\";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:3px;border-style:solid;border-color:var(--primary-color) transparent transparent transparent}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: InputMaskModule }, { kind: "component", type: i3.InputMask, selector: "p-inputMask", inputs: ["type", "slotChar", "autoClear", "showClear", "style", "inputId", "styleClass", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabel", "ariaLabelledBy", "ariaRequired", "disabled", "readonly", "unmask", "name", "required", "characterPattern", "autoFocus", "autocomplete", "keepBuffer", "mask"], outputs: ["onComplete", "onFocus", "onBlur", "onInput", "onKeydown", "onClear"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: MaskComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
30
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: MaskComponent, isStandalone: true, selector: "aril-mask[ngModel], aril-mask[formControl], aril-mask[formControlName]", inputs: { mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: true, transformFunction: null }, slotChar: { classPropertyName: "slotChar", publicName: "slotChar", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, usageInGrid: { classPropertyName: "usageInGrid", publicName: "usageInGrid", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<div style=\"position: relative\" [ngStyle]=\"!usageInGrid ? { display: 'inline-block' } : {}\">\n\t<p-inputMask\n\t\t[mask]=\"mask()\"\n\t\t[slotChar]=\"slotChar()\"\n\t\t[placeholder]=\"placeholder()\"\n\t\t[maxlength]=\"maxlength()\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\n\t\t(onFocus)=\"showTooltip = true\"\n\t\t(onBlur)=\"showTooltip = false\">\n\t</p-inputMask>\n\t@if (ngControl.invalid && showTooltip) {\n\t\t<div class=\"custom-tooltip tooltipErrorMessage\">\n\t\t\t{{ ngControl.control.value | inputErrorMessage: ngControl }}\n\t\t</div>\n\t}\n</div>\n", styles: [".custom-tooltip{position:absolute;background-color:#dc143c;color:#fff;padding:.75rem;border-radius:6px;z-index:1001;top:-107%;left:50%;transform:translate(-50%);white-space:nowrap}.custom-tooltip:before{content:\"\";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:3px;border-style:solid;border-color:var(--primary-color) transparent transparent transparent}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: InputMaskModule }, { kind: "component", type: i3.InputMask, selector: "p-inputMask", inputs: ["type", "slotChar", "autoClear", "showClear", "style", "inputId", "styleClass", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabel", "ariaLabelledBy", "ariaRequired", "disabled", "readonly", "unmask", "name", "required", "characterPattern", "autoFocus", "autocomplete", "keepBuffer", "mask"], outputs: ["onComplete", "onFocus", "onBlur", "onInput", "onKeydown", "onClear"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }] }); }
31
31
  }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: InputMaskComponent, decorators: [{
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: MaskComponent, decorators: [{
33
33
  type: Component,
34
- args: [{ standalone: true, selector: 'aril-mask[ngModel], aril-mask[formControl], aril-mask[formControlName]', imports: [ReactiveFormsModule, NgStyle, InputMaskModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\r\n\tstyle=\"position: relative\"\r\n\t[ngStyle]=\"!usageInGrid ? { display: 'inline-block' } : {}\">\r\n\t<p-inputMask\r\n\t\t[mask]=\"mask()\"\r\n\t\t[slotChar]=\"slotChar()\"\r\n\t\t[placeholder]=\"placeholder()\"\r\n\t\t[maxlength]=\"maxlength()\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\r\n\t\t(onFocus)=\"showTooltip = true\"\r\n\t\t(onBlur)=\"showTooltip = false\">\r\n\t</p-inputMask>\r\n\t@if (ngControl.invalid && showTooltip) {\r\n\t\t<div class=\"custom-tooltip tooltipErrorMessage\">\r\n\t\t\t{{ ngControl.control.value | inputErrorMessage: ngControl }}\r\n\t\t</div>\r\n\t}\r\n</div>\r\n", styles: [".custom-tooltip{position:absolute;background-color:#dc143c;color:#fff;padding:.75rem;border-radius:6px;z-index:1001;top:-107%;left:50%;transform:translate(-50%);white-space:nowrap}.custom-tooltip:before{content:\"\";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:3px;border-style:solid;border-color:var(--primary-color) transparent transparent transparent}\n"] }]
34
+ args: [{ standalone: true, selector: 'aril-mask[ngModel], aril-mask[formControl], aril-mask[formControlName]', imports: [ReactiveFormsModule, NgStyle, InputMaskModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<div style=\"position: relative\" [ngStyle]=\"!usageInGrid ? { display: 'inline-block' } : {}\">\n\t<p-inputMask\n\t\t[mask]=\"mask()\"\n\t\t[slotChar]=\"slotChar()\"\n\t\t[placeholder]=\"placeholder()\"\n\t\t[maxlength]=\"maxlength()\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\n\t\t(onFocus)=\"showTooltip = true\"\n\t\t(onBlur)=\"showTooltip = false\">\n\t</p-inputMask>\n\t@if (ngControl.invalid && showTooltip) {\n\t\t<div class=\"custom-tooltip tooltipErrorMessage\">\n\t\t\t{{ ngControl.control.value | inputErrorMessage: ngControl }}\n\t\t</div>\n\t}\n</div>\n", styles: [".custom-tooltip{position:absolute;background-color:#dc143c;color:#fff;padding:.75rem;border-radius:6px;z-index:1001;top:-107%;left:50%;transform:translate(-50%);white-space:nowrap}.custom-tooltip:before{content:\"\";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:3px;border-style:solid;border-color:var(--primary-color) transparent transparent transparent}\n"] }]
35
35
  }] });
36
36
 
37
37
  /**
38
38
  * Generated bundle index. Do not edit.
39
39
  */
40
40
 
41
- export { InputMaskComponent };
41
+ export { MaskComponent };
42
42
  //# sourceMappingURL=aril-ui-mask.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-mask.mjs","sources":["../../projects/aril/ui/mask/src/mask.component.ts","../../projects/aril/ui/mask/src/mask.component.html","../../projects/aril/ui/mask/aril-ui-mask.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { NgStyle } from '@angular/common';\r\n\r\nimport { InputMaskModule } from 'primeng/inputmask';\r\n\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\n\r\n/**\r\n * a - alphabetic characters\r\n * 9 - numeric characters\r\n * * - alphanumeric characters\r\n * ? - optional characters\r\n * formatting characters -> (), -\r\n */\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-mask[ngModel], aril-mask[formControl], aril-mask[formControlName]',\r\n templateUrl: './mask.component.html',\r\n styleUrl: './mask.component.css',\r\n imports: [ReactiveFormsModule, NgStyle, InputMaskModule, InputErrorMessagePipe],\r\n hostDirectives: [ValueAccessorDirective],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class InputMaskComponent extends BaseInputComponent {\r\n mask = input.required<string>();\r\n slotChar = input<string>(\"_\");\r\n placeholder = input<string>();\r\n maxlength = input<number>(100);\r\n usageInGrid = input<boolean>(true);\r\n tabindex = input<number>();\r\n\r\n showTooltip = false;\r\n}\r\n","<div\r\n\tstyle=\"position: relative\"\r\n\t[ngStyle]=\"!usageInGrid ? { display: 'inline-block' } : {}\">\r\n\t<p-inputMask\r\n\t\t[mask]=\"mask()\"\r\n\t\t[slotChar]=\"slotChar()\"\r\n\t\t[placeholder]=\"placeholder()\"\r\n\t\t[maxlength]=\"maxlength()\"\r\n\t\t[formControl]=\"ngControl.control\"\r\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\r\n\t\t(onFocus)=\"showTooltip = true\"\r\n\t\t(onBlur)=\"showTooltip = false\">\r\n\t</p-inputMask>\r\n\t@if (ngControl.invalid && showTooltip) {\r\n\t\t<div class=\"custom-tooltip tooltipErrorMessage\">\r\n\t\t\t{{ ngControl.control.value | inputErrorMessage: ngControl }}\r\n\t\t</div>\r\n\t}\r\n</div>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAQA;;;;;;AAMG;AAWG,MAAO,kBAAmB,SAAQ,kBAAkB,CAAA;AAT1D,IAAA,WAAA,GAAA;;AAUE,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;AAChC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,GAAG,CAAC,CAAC;QAC9B,IAAW,CAAA,WAAA,GAAG,KAAK,EAAU,CAAC;AAC9B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,GAAG,CAAC,CAAC;AAC/B,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAU,IAAI,CA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,EAAE,qBAAqB,CAAC,kBAC/D,CAAC,sBAAsB,CAAC,EACvB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,kqBAAA,EAAA,MAAA,EAAA,CAAA,2XAAA,CAAA,EAAA,CAAA;;;AEvBjD;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-mask.mjs","sources":["../../projects/aril/ui/mask/src/mask.component.ts","../../projects/aril/ui/mask/src/mask.component.html","../../projects/aril/ui/mask/aril-ui-mask.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NgStyle } from '@angular/common';\n\nimport { InputMaskModule } from 'primeng/inputmask';\n\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\n\n/**\n * a - alphabetic characters\n * 9 - numeric characters\n * * - alphanumeric characters\n * ? - optional characters\n * formatting characters -> (), -\n */\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-mask[ngModel], aril-mask[formControl], aril-mask[formControlName]',\n\ttemplateUrl: './mask.component.html',\n\tstyleUrl: './mask.component.css',\n\timports: [ReactiveFormsModule, NgStyle, InputMaskModule, InputErrorMessagePipe],\n\thostDirectives: [ValueAccessorDirective]\n})\nexport class MaskComponent extends BaseInputComponent {\n\tmask = input.required<string>();\n\tslotChar = input<string>('_');\n\tplaceholder = input<string>();\n\tmaxlength = input<number>(100);\n\tusageInGrid = input<boolean>(true);\n\ttabindex = input<number>();\n\n\tshowTooltip = false;\n}\n","<div style=\"position: relative\" [ngStyle]=\"!usageInGrid ? { display: 'inline-block' } : {}\">\n\t<p-inputMask\n\t\t[mask]=\"mask()\"\n\t\t[slotChar]=\"slotChar()\"\n\t\t[placeholder]=\"placeholder()\"\n\t\t[maxlength]=\"maxlength()\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\n\t\t(onFocus)=\"showTooltip = true\"\n\t\t(onBlur)=\"showTooltip = false\">\n\t</p-inputMask>\n\t@if (ngControl.invalid && showTooltip) {\n\t\t<div class=\"custom-tooltip tooltipErrorMessage\">\n\t\t\t{{ ngControl.control.value | inputErrorMessage: ngControl }}\n\t\t</div>\n\t}\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAQA;;;;;;AAMG;AAUG,MAAO,aAAc,SAAQ,kBAAkB,CAAA;AARrD,IAAA,WAAA,GAAA;;AASC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;AAChC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,GAAG,CAAC,CAAC;QAC9B,IAAW,CAAA,WAAA,GAAG,KAAK,EAAU,CAAC;AAC9B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,GAAG,CAAC,CAAC;AAC/B,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAU,IAAI,CAAC,CAAC;QACnC,IAAQ,CAAA,QAAA,GAAG,KAAK,EAAU,CAAC;QAE3B,IAAW,CAAA,WAAA,GAAG,KAAK,CAAC;AACpB,KAAA;8GATY,aAAa,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wEAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,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,WAAA,EAA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EAAA,WAAA,EAAA,gBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,MAAA,EAAA,UAAA,EAAA,kBAAA,EAAA,WAAA,EAAA,cAAA,EAAA,YAAA,EAAA,MAAA,CAAA,EAAA,OAAA,EAAA,CAAA,YAAA,EAAA,SAAA,EAAA,QAAA,EAAA,SAAA,EAAA,WAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGlE,aAAa,EAAA,UAAA,EAAA,CAAA;kBARzB,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,wEAAwE,EAGzE,OAAA,EAAA,CAAC,mBAAmB,EAAE,OAAO,EAAE,eAAe,EAAE,qBAAqB,CAAC,EAC/D,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,snBAAA,EAAA,MAAA,EAAA,CAAA,2XAAA,CAAA,EAAA,CAAA;;;AEtBzC;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
2
+ import { Component, Input } from '@angular/core';
3
3
  import * as i2 from '@angular/forms';
4
4
  import { ReactiveFormsModule } from '@angular/forms';
5
5
  import * as i4 from 'primeng/tooltip';
@@ -9,25 +9,25 @@ import { InputNumberModule } from 'primeng/inputnumber';
9
9
  import * as i1 from 'aril/ui/lib';
10
10
  import { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
11
11
 
12
- class InputNumberComponent extends BaseInputComponent {
12
+ class NumberComponent extends BaseInputComponent {
13
13
  constructor() {
14
14
  super(...arguments);
15
15
  this.useGrouping = true;
16
16
  this._style = {};
17
- this._buttonLayout = "stacked";
17
+ this._buttonLayout = 'stacked';
18
18
  }
19
19
  set buttonLayout(value) {
20
20
  this._buttonLayout = value;
21
- if (value == "vertical") {
22
- this._style = { 'width': '3rem' };
21
+ if (value == 'vertical') {
22
+ this._style = { width: '3rem' };
23
23
  }
24
24
  }
25
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: InputNumberComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
26
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: InputNumberComponent, isStandalone: true, selector: "aril-number[ngModel], aril-number[formControl], aril-number[formControlName]", inputs: { min: "min", max: "max", showButtons: "showButtons", placeholder: "placeholder", prefix: "prefix", suffix: "suffix", maxlength: "maxlength", showClear: "showClear", useGrouping: "useGrouping", maxDigits: "maxDigits", minDigits: "minDigits", tabindex: "tabindex", buttonLayout: "buttonLayout" }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<p-inputNumber\r\n\t[min]=\"min\"\r\n\t[max]=\"max\"\r\n\tmode=\"decimal\"\r\n\tlocale=\"en-US\"\r\n\t[prefix]=\"prefix\"\r\n\t[suffix]=\"suffix\"\r\n\t[maxlength]=\"maxlength\"\r\n\t[showClear]=\"showClear\"\r\n\t[style]=\"_style\"\r\n\t[tabindex]=\"tabindex\"\r\n\tspinnerMode=\"vertical\"\r\n\t[useGrouping]=\"useGrouping\"\r\n\t[placeholder]=\"placeholder\"\r\n\t[showButtons]=\"showButtons\"\r\n\t[maxFractionDigits]=\"maxDigits\"\r\n\t[minFractionDigits]=\"minDigits\"\r\n\t[buttonLayout]=\"_buttonLayout\"\r\n\tincrementButtonClass=\"p-button-info\"\r\n\tdecrementButtonClass=\"p-button-danger\"\r\n\t[pTooltip]=\"\r\n\t\tngControl.invalid\r\n\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\r\n\t\t\t: ''\r\n\t\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n</p-inputNumber>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: InputNumberModule }, { kind: "component", type: i3.InputNumber, selector: "p-inputNumber", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "style", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabelledBy", "ariaLabel", "ariaRequired", "name", "required", "autocomplete", "min", "max", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "step", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "disabled"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { 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" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
25
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: NumberComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
26
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: NumberComponent, isStandalone: true, selector: "aril-number[ngModel], aril-number[formControl], aril-number[formControlName]", inputs: { min: "min", max: "max", showButtons: "showButtons", placeholder: "placeholder", prefix: "prefix", suffix: "suffix", maxlength: "maxlength", showClear: "showClear", useGrouping: "useGrouping", maxDigits: "maxDigits", minDigits: "minDigits", tabindex: "tabindex", buttonLayout: "buttonLayout" }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<p-inputNumber\n\t[min]=\"min\"\n\t[max]=\"max\"\n\tmode=\"decimal\"\n\tlocale=\"en-US\"\n\t[prefix]=\"prefix\"\n\t[suffix]=\"suffix\"\n\t[maxlength]=\"maxlength\"\n\t[showClear]=\"showClear\"\n\t[style]=\"_style\"\n\t[tabindex]=\"tabindex\"\n\tspinnerMode=\"vertical\"\n\t[useGrouping]=\"useGrouping\"\n\t[placeholder]=\"placeholder\"\n\t[showButtons]=\"showButtons\"\n\t[maxFractionDigits]=\"maxDigits\"\n\t[minFractionDigits]=\"minDigits\"\n\t[buttonLayout]=\"_buttonLayout\"\n\tincrementButtonClass=\"p-button-info\"\n\tdecrementButtonClass=\"p-button-danger\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</p-inputNumber>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: InputNumberModule }, { kind: "component", type: i3.InputNumber, selector: "p-inputNumber", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "style", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabelledBy", "ariaLabel", "ariaRequired", "name", "required", "autocomplete", "min", "max", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "step", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "disabled"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { 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" }] }); }
27
27
  }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: InputNumberComponent, decorators: [{
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: NumberComponent, decorators: [{
29
29
  type: Component,
30
- args: [{ standalone: true, selector: 'aril-number[ngModel], aril-number[formControl], aril-number[formControlName]', imports: [ReactiveFormsModule, InputNumberModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-inputNumber\r\n\t[min]=\"min\"\r\n\t[max]=\"max\"\r\n\tmode=\"decimal\"\r\n\tlocale=\"en-US\"\r\n\t[prefix]=\"prefix\"\r\n\t[suffix]=\"suffix\"\r\n\t[maxlength]=\"maxlength\"\r\n\t[showClear]=\"showClear\"\r\n\t[style]=\"_style\"\r\n\t[tabindex]=\"tabindex\"\r\n\tspinnerMode=\"vertical\"\r\n\t[useGrouping]=\"useGrouping\"\r\n\t[placeholder]=\"placeholder\"\r\n\t[showButtons]=\"showButtons\"\r\n\t[maxFractionDigits]=\"maxDigits\"\r\n\t[minFractionDigits]=\"minDigits\"\r\n\t[buttonLayout]=\"_buttonLayout\"\r\n\tincrementButtonClass=\"p-button-info\"\r\n\tdecrementButtonClass=\"p-button-danger\"\r\n\t[pTooltip]=\"\r\n\t\tngControl.invalid\r\n\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\r\n\t\t\t: ''\r\n\t\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n</p-inputNumber>\r\n" }]
30
+ args: [{ standalone: true, selector: 'aril-number[ngModel], aril-number[formControl], aril-number[formControlName]', imports: [ReactiveFormsModule, InputNumberModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<p-inputNumber\n\t[min]=\"min\"\n\t[max]=\"max\"\n\tmode=\"decimal\"\n\tlocale=\"en-US\"\n\t[prefix]=\"prefix\"\n\t[suffix]=\"suffix\"\n\t[maxlength]=\"maxlength\"\n\t[showClear]=\"showClear\"\n\t[style]=\"_style\"\n\t[tabindex]=\"tabindex\"\n\tspinnerMode=\"vertical\"\n\t[useGrouping]=\"useGrouping\"\n\t[placeholder]=\"placeholder\"\n\t[showButtons]=\"showButtons\"\n\t[maxFractionDigits]=\"maxDigits\"\n\t[minFractionDigits]=\"minDigits\"\n\t[buttonLayout]=\"_buttonLayout\"\n\tincrementButtonClass=\"p-button-info\"\n\tdecrementButtonClass=\"p-button-danger\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</p-inputNumber>\n" }]
31
31
  }], propDecorators: { min: [{
32
32
  type: Input
33
33
  }], max: [{
@@ -60,5 +60,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
60
60
  * Generated bundle index. Do not edit.
61
61
  */
62
62
 
63
- export { InputNumberComponent };
63
+ export { NumberComponent };
64
64
  //# sourceMappingURL=aril-ui-number.mjs.map