aril 0.0.2 → 0.0.4

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 (353) hide show
  1. package/README.md +32 -10
  2. package/esm2022/http/index.mjs +5 -1
  3. package/esm2022/http/lib/enums.mjs +1 -2
  4. package/esm2022/http/lib/interfaces.mjs +3 -1
  5. package/esm2022/http/src/httpClient.mjs +2 -1
  6. package/esm2022/http/src/serviceBase.mjs +10 -10
  7. package/esm2022/ui/badge/aril-ui-badge.mjs +5 -0
  8. package/esm2022/ui/badge/index.mjs +2 -0
  9. package/esm2022/ui/badge/src/badge.component.mjs +25 -0
  10. package/esm2022/ui/button/index.mjs +2 -1
  11. package/esm2022/ui/button/src/button.component.mjs +44 -7
  12. package/esm2022/ui/button/src/split-button.component.mjs +18 -0
  13. package/esm2022/ui/calendar/src/calendar.component.mjs +102 -8
  14. package/esm2022/ui/checkbox/index.mjs +3 -2
  15. package/esm2022/ui/checkbox/src/check-box.component.mjs +24 -0
  16. package/esm2022/ui/checkbox/src/tri-state-checkbox.component.mjs +24 -0
  17. package/esm2022/ui/confirmPopup/aril-ui-confirmPopup.mjs +5 -0
  18. package/esm2022/ui/confirmPopup/index.mjs +2 -0
  19. package/esm2022/ui/confirmPopup/src/confirm-popup.component.mjs +28 -0
  20. package/esm2022/ui/dxField/aril-ui-dxField.mjs +5 -0
  21. package/esm2022/ui/dxField/index.mjs +2 -0
  22. package/esm2022/ui/dxField/src/dx-field.component.mjs +30 -0
  23. package/esm2022/ui/field/aril-ui-field.mjs +5 -0
  24. package/esm2022/ui/field/index.mjs +2 -0
  25. package/esm2022/ui/field/src/field.component.mjs +48 -0
  26. package/esm2022/ui/fileUpload/aril-ui-fileUpload.mjs +5 -0
  27. package/esm2022/ui/fileUpload/index.mjs +2 -0
  28. package/esm2022/ui/fileUpload/src/file-upload.component.mjs +88 -0
  29. package/esm2022/ui/form/aril-ui-form.mjs +5 -0
  30. package/esm2022/ui/form/index.mjs +4 -0
  31. package/esm2022/ui/form/src/form-submit-button.component.mjs +44 -0
  32. package/esm2022/ui/form/src/form.component.mjs +31 -0
  33. package/esm2022/ui/lib/index.mjs +13 -3
  34. package/esm2022/ui/lib/src/form/form-error-message.component.mjs +37 -0
  35. package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +38 -0
  36. package/esm2022/ui/lib/src/form/form-field-builder.mjs +2 -2
  37. package/esm2022/ui/lib/src/form/form-validation.mjs +1 -1
  38. package/esm2022/ui/lib/src/grid/flex-grid.directive.mjs +21 -0
  39. package/esm2022/ui/lib/src/input/baseInput.mjs +24 -0
  40. package/esm2022/ui/lib/src/input/common-input-validators.service.mjs +3 -3
  41. package/esm2022/ui/lib/src/input/dx-input-error-message.pipe.mjs +22 -0
  42. package/esm2022/ui/lib/src/input/input-disabled.directive.mjs +8 -4
  43. package/esm2022/ui/lib/src/input/input-error-message.pipe.mjs +41 -0
  44. package/esm2022/ui/lib/src/input/input-transforms.mjs +8 -0
  45. package/esm2022/ui/lib/src/input/value-accessor.directive.mjs +32 -0
  46. package/esm2022/ui/mask/aril-ui-mask.mjs +5 -0
  47. package/esm2022/ui/mask/index.mjs +2 -0
  48. package/esm2022/ui/mask/src/mask.component.mjs +35 -0
  49. package/esm2022/ui/number/aril-ui-number.mjs +5 -0
  50. package/esm2022/ui/number/index.mjs +2 -0
  51. package/esm2022/ui/number/src/number.component.mjs +57 -0
  52. package/esm2022/ui/overlayPanel/aril-ui-overlayPanel.mjs +5 -0
  53. package/esm2022/ui/overlayPanel/index.mjs +2 -0
  54. package/esm2022/ui/overlayPanel/src/overlay-panel.component.mjs +23 -0
  55. package/esm2022/ui/panel/aril-ui-panel.mjs +5 -0
  56. package/esm2022/ui/panel/index.mjs +2 -0
  57. package/esm2022/ui/panel/src/panel.component.mjs +27 -0
  58. package/esm2022/ui/password/aril-ui-password.mjs +5 -0
  59. package/esm2022/ui/password/index.mjs +2 -0
  60. package/esm2022/ui/password/src/password.component.mjs +37 -0
  61. package/esm2022/ui/radioButton/aril-ui-radioButton.mjs +5 -0
  62. package/esm2022/ui/radioButton/index.mjs +2 -0
  63. package/esm2022/ui/radioButton/src/radio-button.component.mjs +37 -0
  64. package/esm2022/ui/selectBox/aril-ui-selectBox.mjs +5 -0
  65. package/esm2022/ui/selectBox/index.mjs +2 -0
  66. package/esm2022/ui/selectBox/src/select-box.component.mjs +43 -0
  67. package/esm2022/ui/switch/aril-ui-switch.mjs +5 -0
  68. package/esm2022/ui/switch/index.mjs +2 -0
  69. package/esm2022/ui/switch/src/switch.component.mjs +24 -0
  70. package/esm2022/ui/table/aril-ui-table.mjs +5 -0
  71. package/esm2022/ui/table/index.mjs +4 -0
  72. package/esm2022/ui/table/src/i18n.mjs +93 -0
  73. package/esm2022/ui/table/src/table-column.component.mjs +35 -0
  74. package/esm2022/ui/table/src/table.component.mjs +78 -0
  75. package/esm2022/ui/tagBox/aril-ui-tagBox.mjs +5 -0
  76. package/esm2022/ui/tagBox/index.mjs +2 -0
  77. package/esm2022/ui/tagBox/src/tag-box.component.mjs +63 -0
  78. package/esm2022/ui/text/aril-ui-text.mjs +5 -0
  79. package/esm2022/ui/text/index.mjs +2 -0
  80. package/esm2022/ui/text/src/text.component.mjs +54 -0
  81. package/esm2022/ui/textArea/aril-ui-textArea.mjs +5 -0
  82. package/esm2022/ui/textArea/index.mjs +2 -0
  83. package/esm2022/ui/textArea/src/text-area.component.mjs +30 -0
  84. package/esm2022/ui/tree/aril-ui-tree.mjs +5 -0
  85. package/esm2022/ui/tree/index.mjs +2 -0
  86. package/esm2022/ui/tree/src/tree.component.mjs +58 -0
  87. package/esm2022/ui/treeTable/aril-ui-treeTable.mjs +5 -0
  88. package/esm2022/ui/treeTable/index.mjs +2 -0
  89. package/esm2022/ui/treeTable/src/tree-table.component.mjs +59 -0
  90. package/esm2022/ui/value/aril-ui-value.mjs +5 -0
  91. package/esm2022/ui/value/index.mjs +2 -0
  92. package/esm2022/ui/value/src/value.component.mjs +51 -0
  93. package/esm2022/util/init-event/src/init-event.directive.mjs +8 -8
  94. package/esm2022/util/lib/src/interfaces.mjs +3 -1
  95. package/esm2022/util/lib/src/types.mjs +5 -1
  96. package/esm2022/util/primitive-extensions/src/string.extensions.mjs +7 -1
  97. package/esm2022/util/pub-sub/src/pub-sub.service.mjs +5 -4
  98. package/fesm2022/aril-http.mjs +49 -45
  99. package/fesm2022/aril-http.mjs.map +1 -1
  100. package/fesm2022/aril-ui-badge.mjs +32 -0
  101. package/fesm2022/aril-ui-badge.mjs.map +1 -0
  102. package/fesm2022/aril-ui-button.mjs +58 -6
  103. package/fesm2022/aril-ui-button.mjs.map +1 -1
  104. package/fesm2022/aril-ui-calendar.mjs +101 -7
  105. package/fesm2022/aril-ui-calendar.mjs.map +1 -1
  106. package/fesm2022/aril-ui-checkbox.mjs +36 -7
  107. package/fesm2022/aril-ui-checkbox.mjs.map +1 -1
  108. package/fesm2022/aril-ui-confirmPopup.mjs +35 -0
  109. package/fesm2022/aril-ui-confirmPopup.mjs.map +1 -0
  110. package/fesm2022/aril-ui-dxField.mjs +37 -0
  111. package/fesm2022/aril-ui-dxField.mjs.map +1 -0
  112. package/fesm2022/aril-ui-field.mjs +55 -0
  113. package/fesm2022/aril-ui-field.mjs.map +1 -0
  114. package/fesm2022/aril-ui-fileUpload.mjs +95 -0
  115. package/fesm2022/aril-ui-fileUpload.mjs.map +1 -0
  116. package/fesm2022/aril-ui-form.mjs +82 -0
  117. package/fesm2022/aril-ui-form.mjs.map +1 -0
  118. package/fesm2022/aril-ui-lib.mjs +263 -51
  119. package/fesm2022/aril-ui-lib.mjs.map +1 -1
  120. package/fesm2022/aril-ui-mask.mjs +42 -0
  121. package/fesm2022/aril-ui-mask.mjs.map +1 -0
  122. package/fesm2022/aril-ui-number.mjs +64 -0
  123. package/fesm2022/aril-ui-number.mjs.map +1 -0
  124. package/fesm2022/aril-ui-overlayPanel.mjs +30 -0
  125. package/fesm2022/aril-ui-overlayPanel.mjs.map +1 -0
  126. package/fesm2022/aril-ui-panel.mjs +34 -0
  127. package/fesm2022/aril-ui-panel.mjs.map +1 -0
  128. package/fesm2022/aril-ui-password.mjs +44 -0
  129. package/fesm2022/aril-ui-password.mjs.map +1 -0
  130. package/fesm2022/aril-ui-radioButton.mjs +44 -0
  131. package/fesm2022/aril-ui-radioButton.mjs.map +1 -0
  132. package/fesm2022/aril-ui-selectBox.mjs +50 -0
  133. package/fesm2022/aril-ui-selectBox.mjs.map +1 -0
  134. package/fesm2022/aril-ui-switch.mjs +31 -0
  135. package/fesm2022/aril-ui-switch.mjs.map +1 -0
  136. package/fesm2022/aril-ui-table.mjs +211 -0
  137. package/fesm2022/aril-ui-table.mjs.map +1 -0
  138. package/fesm2022/aril-ui-tagBox.mjs +70 -0
  139. package/fesm2022/aril-ui-tagBox.mjs.map +1 -0
  140. package/fesm2022/aril-ui-text.mjs +61 -0
  141. package/fesm2022/aril-ui-text.mjs.map +1 -0
  142. package/fesm2022/aril-ui-textArea.mjs +37 -0
  143. package/fesm2022/aril-ui-textArea.mjs.map +1 -0
  144. package/fesm2022/aril-ui-tree.mjs +65 -0
  145. package/fesm2022/aril-ui-tree.mjs.map +1 -0
  146. package/fesm2022/aril-ui-treeTable.mjs +66 -0
  147. package/fesm2022/aril-ui-treeTable.mjs.map +1 -0
  148. package/fesm2022/aril-ui-value.mjs +58 -0
  149. package/fesm2022/aril-ui-value.mjs.map +1 -0
  150. package/fesm2022/aril-util-init-event.mjs +7 -7
  151. package/fesm2022/aril-util-init-event.mjs.map +1 -1
  152. package/fesm2022/aril-util-lib.mjs +8 -0
  153. package/fesm2022/aril-util-lib.mjs.map +1 -1
  154. package/fesm2022/aril-util-primitive-extensions.mjs +6 -0
  155. package/fesm2022/aril-util-primitive-extensions.mjs.map +1 -1
  156. package/fesm2022/aril-util-pub-sub.mjs +4 -3
  157. package/fesm2022/aril-util-pub-sub.mjs.map +1 -1
  158. package/http/index.d.ts +2 -0
  159. package/http/lib/enums.d.ts +2 -2
  160. package/package.json +142 -7
  161. package/styles/ui/ui.common.scss +8 -0
  162. package/theme/fonts/poppins-v20-latin-500.woff +0 -0
  163. package/theme/fonts/poppins-v20-latin-500.woff2 +0 -0
  164. package/theme/fonts/poppins-v20-latin-600.woff +0 -0
  165. package/theme/fonts/poppins-v20-latin-600.woff2 +0 -0
  166. package/theme/fonts/poppins-v20-latin-700.woff +0 -0
  167. package/theme/fonts/poppins-v20-latin-700.woff2 +0 -0
  168. package/theme/fonts/poppins-v20-latin-regular.woff +0 -0
  169. package/theme/fonts/poppins-v20-latin-regular.woff2 +0 -0
  170. package/theme/images/avatar.png +0 -0
  171. package/theme/styles/layout/_animation.scss +53 -0
  172. package/theme/styles/layout/_breadcrumb.scss +21 -0
  173. package/theme/styles/layout/_config.scss +42 -0
  174. package/theme/styles/layout/_content.scss +3 -0
  175. package/theme/styles/layout/_fonts.scss +36 -0
  176. package/theme/styles/layout/_layout_dark.scss +5 -0
  177. package/theme/styles/layout/_layout_dim.scss +5 -0
  178. package/theme/styles/layout/_layout_light.scss +5 -0
  179. package/theme/styles/layout/_main.scss +28 -0
  180. package/theme/styles/layout/_profile.scss +10 -0
  181. package/theme/styles/layout/_responsive.scss +113 -0
  182. package/theme/styles/layout/_sidebar_drawer.scss +236 -0
  183. package/theme/styles/layout/_sidebar_horizontal.scss +163 -0
  184. package/theme/styles/layout/_sidebar_reveal.scss +203 -0
  185. package/theme/styles/layout/_sidebar_slim.scss +145 -0
  186. package/theme/styles/layout/_sidebar_slim_plus.scss +163 -0
  187. package/theme/styles/layout/_sidebar_vertical.scss +153 -0
  188. package/theme/styles/layout/_topbar.scss +78 -0
  189. package/theme/styles/layout/_typography.scss +63 -0
  190. package/theme/styles/layout/_utils.scss +24 -0
  191. package/theme/styles/layout/layout.scss +24 -0
  192. package/theme/styles/layout/menutheme/_colorscheme.scss +11 -0
  193. package/theme/styles/layout/menutheme/_menutheme.scss +3 -0
  194. package/theme/styles/layout/menutheme/_primarycolor.scss +16 -0
  195. package/theme/styles/layout/menutheme/_transparent.scss +26 -0
  196. package/theme/styles/layout/preloading.scss +84 -0
  197. package/theme/styles/theme/base/_colors.scss +18 -0
  198. package/theme/styles/theme/base/_common.scss +75 -0
  199. package/theme/styles/theme/base/_components.scss +106 -0
  200. package/theme/styles/theme/base/_mixins.scss +337 -0
  201. package/theme/styles/theme/base/components/button/_button.scss +576 -0
  202. package/theme/styles/theme/base/components/button/_speeddial.scss +96 -0
  203. package/theme/styles/theme/base/components/button/_splitbutton.scss +354 -0
  204. package/theme/styles/theme/base/components/data/_carousel.scss +37 -0
  205. package/theme/styles/theme/base/components/data/_datatable.scss +338 -0
  206. package/theme/styles/theme/base/components/data/_dataview.scss +46 -0
  207. package/theme/styles/theme/base/components/data/_filter.scss +138 -0
  208. package/theme/styles/theme/base/components/data/_orderlist.scss +114 -0
  209. package/theme/styles/theme/base/components/data/_organizationchart.scss +50 -0
  210. package/theme/styles/theme/base/components/data/_paginator.scss +92 -0
  211. package/theme/styles/theme/base/components/data/_picklist.scss +114 -0
  212. package/theme/styles/theme/base/components/data/_timeline.scss +38 -0
  213. package/theme/styles/theme/base/components/data/_tree.scss +150 -0
  214. package/theme/styles/theme/base/components/data/_treetable.scss +256 -0
  215. package/theme/styles/theme/base/components/data/_virtualscroller.scss +28 -0
  216. package/theme/styles/theme/base/components/file/_fileupload.scss +64 -0
  217. package/theme/styles/theme/base/components/input/_autocomplete.scss +136 -0
  218. package/theme/styles/theme/base/components/input/_calendar.scss +267 -0
  219. package/theme/styles/theme/base/components/input/_cascadeselect.scss +136 -0
  220. package/theme/styles/theme/base/components/input/_checkbox.scss +94 -0
  221. package/theme/styles/theme/base/components/input/_chips.scss +65 -0
  222. package/theme/styles/theme/base/components/input/_colorpicker.scss +19 -0
  223. package/theme/styles/theme/base/components/input/_dropdown.scss +151 -0
  224. package/theme/styles/theme/base/components/input/_editor.scss +122 -0
  225. package/theme/styles/theme/base/components/input/_inputgroup.scss +75 -0
  226. package/theme/styles/theme/base/components/input/_inputmask.scss +16 -0
  227. package/theme/styles/theme/base/components/input/_inputnumber.scss +28 -0
  228. package/theme/styles/theme/base/components/input/_inputswitch.scss +60 -0
  229. package/theme/styles/theme/base/components/input/_inputtext.scss +100 -0
  230. package/theme/styles/theme/base/components/input/_listbox.scss +97 -0
  231. package/theme/styles/theme/base/components/input/_multiselect.scss +179 -0
  232. package/theme/styles/theme/base/components/input/_password.scss +52 -0
  233. package/theme/styles/theme/base/components/input/_radiobutton.scss +78 -0
  234. package/theme/styles/theme/base/components/input/_rating.scss +60 -0
  235. package/theme/styles/theme/base/components/input/_selectbutton.scss +50 -0
  236. package/theme/styles/theme/base/components/input/_slider.scss +71 -0
  237. package/theme/styles/theme/base/components/input/_togglebutton.scss +48 -0
  238. package/theme/styles/theme/base/components/input/_treeselect.scss +139 -0
  239. package/theme/styles/theme/base/components/menu/_breadcrumb.scss +42 -0
  240. package/theme/styles/theme/base/components/menu/_contextmenu.scss +39 -0
  241. package/theme/styles/theme/base/components/menu/_dock.scss +95 -0
  242. package/theme/styles/theme/base/components/menu/_megamenu.scss +55 -0
  243. package/theme/styles/theme/base/components/menu/_menu.scss +37 -0
  244. package/theme/styles/theme/base/components/menu/_menubar.scss +141 -0
  245. package/theme/styles/theme/base/components/menu/_panelmenu.scss +153 -0
  246. package/theme/styles/theme/base/components/menu/_slidemenu.scss +59 -0
  247. package/theme/styles/theme/base/components/menu/_steps.scss +56 -0
  248. package/theme/styles/theme/base/components/menu/_tabmenu.scss +74 -0
  249. package/theme/styles/theme/base/components/menu/_tieredmenu.scss +43 -0
  250. package/theme/styles/theme/base/components/messages/_inlinemessage.scss +69 -0
  251. package/theme/styles/theme/base/components/messages/_message.scss +107 -0
  252. package/theme/styles/theme/base/components/messages/_toast.scss +100 -0
  253. package/theme/styles/theme/base/components/misc/_avatar.scss +30 -0
  254. package/theme/styles/theme/base/components/misc/_badge.scss +48 -0
  255. package/theme/styles/theme/base/components/misc/_blockui.scss +0 -0
  256. package/theme/styles/theme/base/components/misc/_chip.scss +42 -0
  257. package/theme/styles/theme/base/components/misc/_inplace.scss +17 -0
  258. package/theme/styles/theme/base/components/misc/_progressbar.scss +17 -0
  259. package/theme/styles/theme/base/components/misc/_scrolltop.scss +25 -0
  260. package/theme/styles/theme/base/components/misc/_skeleton.scss +8 -0
  261. package/theme/styles/theme/base/components/misc/_tag.scss +40 -0
  262. package/theme/styles/theme/base/components/misc/_terminal.scss +12 -0
  263. package/theme/styles/theme/base/components/multimedia/_galleria.scss +155 -0
  264. package/theme/styles/theme/base/components/multimedia/_image.scss +49 -0
  265. package/theme/styles/theme/base/components/overlay/_confirmpopup.scss +72 -0
  266. package/theme/styles/theme/base/components/overlay/_dialog.scss +69 -0
  267. package/theme/styles/theme/base/components/overlay/_overlaypanel.scss +64 -0
  268. package/theme/styles/theme/base/components/overlay/_sidebar.scss +27 -0
  269. package/theme/styles/theme/base/components/overlay/_tooltip.scss +33 -0
  270. package/theme/styles/theme/base/components/panel/_accordion.scss +119 -0
  271. package/theme/styles/theme/base/components/panel/_card.scss +30 -0
  272. package/theme/styles/theme/base/components/panel/_divider.scss +31 -0
  273. package/theme/styles/theme/base/components/panel/_fieldset.scss +47 -0
  274. package/theme/styles/theme/base/components/panel/_panel.scss +63 -0
  275. package/theme/styles/theme/base/components/panel/_scrollpanel.scss +6 -0
  276. package/theme/styles/theme/base/components/panel/_splitter.scss +19 -0
  277. package/theme/styles/theme/base/components/panel/_tabview.scss +82 -0
  278. package/theme/styles/theme/base/components/panel/_toolbar.scss +11 -0
  279. package/theme/styles/theme/dark/_extensions.scss +120 -0
  280. package/theme/styles/theme/dark/_variables.scss +896 -0
  281. package/theme/styles/theme/dark/blue/theme.scss +14 -0
  282. package/theme/styles/theme/dark/indigo/theme.scss +14 -0
  283. package/theme/styles/theme/light/_extensions.scss +102 -0
  284. package/theme/styles/theme/light/_variables.scss +898 -0
  285. package/theme/styles/theme/light/blue/theme.scss +13 -0
  286. package/theme/styles/theme/light/indigo/theme.scss +14 -0
  287. package/ui/badge/index.d.ts +1 -0
  288. package/ui/badge/src/badge.component.d.ts +11 -0
  289. package/ui/button/index.d.ts +1 -0
  290. package/ui/button/src/button.component.d.ts +23 -2
  291. package/ui/button/src/split-button.component.d.ts +8 -0
  292. package/ui/calendar/src/calendar.component.d.ts +30 -2
  293. package/ui/checkbox/index.d.ts +2 -1
  294. package/ui/checkbox/src/check-box.component.d.ts +9 -0
  295. package/ui/checkbox/src/tri-state-checkbox.component.d.ts +9 -0
  296. package/ui/confirmPopup/index.d.ts +1 -0
  297. package/ui/confirmPopup/src/confirm-popup.component.d.ts +9 -0
  298. package/ui/dxField/index.d.ts +1 -0
  299. package/ui/dxField/src/dx-field.component.d.ts +11 -0
  300. package/ui/field/index.d.ts +1 -0
  301. package/ui/field/src/field.component.d.ts +25 -0
  302. package/ui/fileUpload/index.d.ts +1 -0
  303. package/ui/fileUpload/src/file-upload.component.d.ts +46 -0
  304. package/ui/form/index.d.ts +2 -0
  305. package/ui/form/src/form-submit-button.component.d.ts +14 -0
  306. package/ui/form/src/form.component.d.ts +8 -0
  307. package/ui/lib/index.d.ts +9 -2
  308. package/ui/lib/src/form/form-error-message.component.d.ts +9 -0
  309. package/ui/lib/src/form/form-error-message.directive.d.ts +14 -0
  310. package/ui/lib/src/form/form-field-builder.d.ts +1 -0
  311. package/ui/lib/src/grid/flex-grid.directive.d.ts +6 -0
  312. package/ui/lib/src/input/baseInput.d.ts +7 -0
  313. package/ui/lib/src/input/dx-input-error-message.pipe.d.ts +11 -0
  314. package/ui/lib/src/input/input-error-message.pipe.d.ts +7 -0
  315. package/ui/lib/src/input/input-transforms.d.ts +5 -0
  316. package/ui/lib/src/input/value-accessor.directive.d.ts +9 -0
  317. package/ui/mask/index.d.ts +1 -0
  318. package/ui/mask/src/mask.component.d.ts +21 -0
  319. package/ui/number/index.d.ts +1 -0
  320. package/ui/number/src/number.component.d.ts +24 -0
  321. package/ui/overlayPanel/index.d.ts +1 -0
  322. package/ui/overlayPanel/src/overlay-panel.component.d.ts +8 -0
  323. package/ui/panel/index.d.ts +1 -0
  324. package/ui/panel/src/panel.component.d.ts +11 -0
  325. package/ui/password/index.d.ts +1 -0
  326. package/ui/password/src/password.component.d.ts +11 -0
  327. package/ui/radioButton/index.d.ts +1 -0
  328. package/ui/radioButton/src/radio-button.component.d.ts +18 -0
  329. package/ui/selectBox/index.d.ts +1 -0
  330. package/ui/selectBox/src/select-box.component.d.ts +20 -0
  331. package/ui/switch/index.d.ts +1 -0
  332. package/ui/switch/src/switch.component.d.ts +8 -0
  333. package/ui/table/index.d.ts +2 -0
  334. package/ui/table/src/i18n.d.ts +42 -0
  335. package/ui/table/src/table-column.component.d.ts +22 -0
  336. package/ui/table/src/table.component.d.ts +30 -0
  337. package/ui/tagBox/index.d.ts +1 -0
  338. package/ui/tagBox/src/tag-box.component.d.ts +15 -0
  339. package/ui/text/index.d.ts +1 -0
  340. package/ui/text/src/text.component.d.ts +17 -0
  341. package/ui/textArea/index.d.ts +1 -0
  342. package/ui/textArea/src/text-area.component.d.ts +11 -0
  343. package/ui/tree/index.d.ts +1 -0
  344. package/ui/tree/src/tree.component.d.ts +25 -0
  345. package/ui/treeTable/index.d.ts +1 -0
  346. package/ui/treeTable/src/tree-table.component.d.ts +25 -0
  347. package/ui/value/index.d.ts +1 -0
  348. package/ui/value/src/value.component.d.ts +15 -0
  349. package/util/init-event/src/init-event.directive.d.ts +4 -4
  350. package/util/lib/src/types.d.ts +7 -0
  351. package/util/primitive-extensions/src/string.extensions.d.ts +1 -0
  352. package/esm2022/ui/checkbox/src/checkbox.component.mjs +0 -11
  353. package/ui/checkbox/src/checkbox.component.d.ts +0 -5
@@ -1 +1 @@
1
- {"version":3,"file":"aril-http.mjs","sources":["../../projects/aril/http/src/httpClient.ts","../../projects/aril/http/src/serviceStateMethods.ts","../../projects/aril/http/lib/enums.ts","../../projects/aril/http/lib/interfaces.ts","../../projects/aril/http/src/serviceBase.ts","../../projects/aril/http/aril-http.ts"],"sourcesContent":["import { HttpClient } from \"@angular/common/http\";\r\nimport { InjectionToken, Injector, inject } from \"@angular/core\";\r\nimport { APIs } from \"../lib/enums\";\r\nimport { ServiceCallStateMap } from \"../lib/interfaces\";\r\n\r\nexport const API_TOKEN = new InjectionToken<APIs>('API');\r\n\r\nexport abstract class RestClient {\r\n private readonly httpClient = inject(HttpClient);\r\n private readonly baseAPI = inject(API_TOKEN);\r\n private readonly injector = inject(Injector);\r\n\r\n abstract states: ServiceCallStateMap<any>;\r\n}","/* eslint-disable @typescript-eslint/no-explicit-any */\r\n\r\nimport { ServiceCallStateMap } from \"../lib/interfaces\";\r\n\r\nexport const callState = (states: ServiceCallStateMap<any>, serviceName: any): void => {\r\n states[serviceName] = {\r\n serviceCalled: true,\r\n waitingForResponse: true,\r\n responseIsRecieved: false,\r\n serviceCallFailed: false\r\n };\r\n}\r\nexport const successState = (states: ServiceCallStateMap<any>, serviceName: any): void => {\r\n states[serviceName] = {\r\n serviceCalled: true,\r\n waitingForResponse: false,\r\n responseIsRecieved: true,\r\n serviceCallFailed: false,\r\n };\r\n}\r\nexport const errorState = (states: ServiceCallStateMap<any>, serviceName: any): void => {\r\n states[serviceName] = {\r\n serviceCalled: true,\r\n waitingForResponse: false,\r\n responseIsRecieved: true,\r\n serviceCallFailed: true,\r\n };\r\n}","export enum HTTPMethods {\r\n GET = \"GET\", // Read\r\n POST = \"POST\", // Create\r\n DELETE = \"DELETE\", // Delete\r\n};\r\n\r\nexport enum APIs {\r\n crm = \"crm\",\r\n wdm = \"wdm\",\r\n billing = \"billing\",\r\n payment = \"payment\",\r\n yeap = \"yeap\"\r\n}\r\n\r\nexport enum ProxyTypes {\r\n Native,\r\n ServerSide,\r\n ClientSide\r\n}","import { ProxyTypes } from \"./enums\";\r\n\r\nexport interface ServiceCallStates {\r\n serviceCalled: boolean;\r\n waitingForResponse: boolean;\r\n responseIsRecieved: boolean;\r\n serviceCallFailed: boolean;\r\n}\r\n\r\nexport type ServiceCallStateMap<T> = {\r\n [K in keyof T]?: T[K] extends Function ? ServiceCallStates : never;\r\n}\r\n\r\nexport class ServiceResponse<T> {\r\n params: any;\r\n response: T;\r\n proxy: ProxyTypes;\r\n items: Array<T>;\r\n paging: {\r\n currentPage: number;\r\n pageSize: number\r\n totalItemCount: number;\r\n totalPageCount: number;\r\n };\r\n\r\n constructor(resp?: T) {\r\n this.params = undefined;\r\n this.response = resp ?? {} as T;\r\n this.proxy = ProxyTypes.Native;\r\n this.items = [];\r\n this.paging = {\r\n currentPage: 1,\r\n pageSize: 10,\r\n totalItemCount: 0,\r\n totalPageCount: 0\r\n };\r\n }\r\n}\r\n\r\nexport class ClientSidePagingResponse {\r\n originalResponse: any;\r\n allItems: any[];\r\n\r\n constructor() {\r\n this.allItems = [];\r\n }\r\n}\r\n\r\nexport class ServerSidePagingRequest {\r\n params: any;\r\n pageNumber: number;\r\n pageSize: number;\r\n\r\n constructor() {\r\n this.params = undefined;\r\n this.pageNumber = 1;\r\n this.pageSize = 10;\r\n }\r\n}\r\n\r\nexport class ServerSidePagingResponse {\r\n originalResponse: any;\r\n items: any[];\r\n totalItemCount: number;\r\n totalPageCount: number;\r\n\r\n constructor() {\r\n this.items = [];\r\n this.totalItemCount = 0;\r\n this.totalPageCount = 0;\r\n }\r\n}","/* eslint-disable @typescript-eslint/no-explicit-any */\r\n\r\n/** TODO: ADD INTERCEPTOR */\r\n/** TODO: SET REQUEST & RESPONSE ACCORDING TO PROXY */\r\n\r\nimport { Observable, throwError } from 'rxjs';\r\nimport { catchError, map, tap } from 'rxjs/operators';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { HttpErrorResponse, HttpClient, HttpParams } from '@angular/common/http';\r\nimport { callState, successState, errorState } from './serviceStateMethods';\r\nimport { runInInjectionContext } from '@angular/core';\r\nimport { APIs, HTTPMethods, ProxyTypes } from '../lib/enums';\r\nimport { ServiceCallStateMap, ServiceResponse } from '../lib/interfaces';\r\nimport { Interfaces } from \"aril/util/lib\";\r\n\r\nexport function ServiceCall(httpMethod: HTTPMethods, proxy: ProxyTypes, remoteAPI?: APIs): MethodDecorator {\r\n return function (serviceClass: object, serviceName: string | symbol, descriptor: PropertyDescriptor) {\r\n const originalFunction = descriptor.value;\r\n\r\n descriptor.value = function (...args: any[]) {\r\n\r\n return runInInjectionContext((<any>this).injector, () => {\r\n const httpClient: HttpClient = (<any>this).httpClient;\r\n const api: APIs = remoteAPI ?? (<any>this).baseAPI;\r\n const endPoint: string = api + <string>serviceName;\r\n const params = getParams(httpMethod, proxy, originalFunction, args);\r\n const states: ServiceCallStateMap<any> = (<any>this).states;\r\n\r\n callState(states, serviceName);\r\n\r\n let observable: Observable<any> = new Observable<any>();\r\n\r\n switch (httpMethod) {\r\n case HTTPMethods.GET:\r\n observable = httpClient.get<any>(endPoint, { params: params as HttpParams, responseType: 'json' });\r\n break;\r\n case HTTPMethods.POST:\r\n observable = httpClient.post<any>(endPoint, params, { responseType: 'json' });\r\n break;\r\n case HTTPMethods.DELETE:\r\n observable = httpClient.delete<any>(endPoint + \"/\" + args[0], { responseType: 'json' });\r\n break;\r\n }\r\n\r\n observable = observable.pipe(\r\n map((data) => setResponse(data, proxy)),\r\n tap(() => successState(states, serviceName)),\r\n catchError((error: HttpErrorResponse) => {\r\n errorState(states, serviceName);\r\n console.error(error);\r\n return throwError(() => new Error('Something bad happened; please try again later.'));\r\n }),\r\n takeUntilDestroyed()\r\n );\r\n\r\n return observable;\r\n });\r\n };\r\n };\r\n}\r\n\r\nfunction getParams(httpMethod: HTTPMethods, proxy: ProxyTypes, fn: () => any, args: any[]): HttpParams | Interfaces.MapStringString | undefined {\r\n if (args.length) {\r\n const source = fn.toString();\r\n const match = source.match(/\\((.*?)\\)/);\r\n const paramNames = match ? match[1].split(',').map(param => param.trim()) : [];\r\n\r\n if (httpMethod === HTTPMethods.GET) {\r\n let queryParams = new HttpParams()\r\n\r\n paramNames.forEach((paramName, index) => {\r\n queryParams = queryParams.append(paramName, args[index]);\r\n });\r\n return queryParams;\r\n }\r\n else {\r\n const params: Interfaces.MapStringString = {};\r\n\r\n args.forEach((arg, index) => {\r\n params[paramNames[index]] = arg;\r\n });\r\n\r\n return params;\r\n }\r\n }\r\n else return undefined;\r\n}\r\n\r\nfunction setResponse(data: any, proxy: ProxyTypes) {\r\n // switch (proxy) {\r\n // case ProxyTypes.Native:\r\n // break;\r\n // case ProxyTypes.ServerSide:\r\n // break;\r\n // case ProxyTypes.ClientSide:\r\n // break;\r\n // }\r\n\r\n return new ServiceResponse<any>(data)\r\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAKa,SAAS,GAAG,IAAI,cAAc,CAAO,KAAK,EAAE;MAEnC,UAAU,CAAA;AAAhC,IAAA,WAAA,GAAA;AACmB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAChC,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAC5B,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;KAG9C;AAAA;;ACbD;MAIa,SAAS,GAAG,CAAC,MAAgC,EAAE,WAAgB,KAAU;IACpF,MAAM,CAAC,WAAW,CAAC,GAAG;AACpB,QAAA,aAAa,EAAE,IAAI;AACnB,QAAA,kBAAkB,EAAE,IAAI;AACxB,QAAA,kBAAkB,EAAE,KAAK;AACzB,QAAA,iBAAiB,EAAE,KAAK;KACzB,CAAC;AACJ,EAAC;MACY,YAAY,GAAG,CAAC,MAAgC,EAAE,WAAgB,KAAU;IACvF,MAAM,CAAC,WAAW,CAAC,GAAG;AACpB,QAAA,aAAa,EAAE,IAAI;AACnB,QAAA,kBAAkB,EAAE,KAAK;AACzB,QAAA,kBAAkB,EAAE,IAAI;AACxB,QAAA,iBAAiB,EAAE,KAAK;KACzB,CAAC;AACJ,EAAC;MACY,UAAU,GAAG,CAAC,MAAgC,EAAE,WAAgB,KAAU;IACrF,MAAM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1B,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,GAAG,GAAG,CAAC;AAClC,aAAC,CAAC,CAAC;AAEH,YAAA,OAAO,MAAM,CAAC;SACf;KACF;;AACI,QAAA,OAAO,SAAS,CAAC;AACxB,CAAC;AAED,SAAS,WAAW,CAAC,IAAS,EAAE,KAAiB,EAAA;;;;;;;;;AAU/C,IAAA,OAAO,IAAI,eAAe,CAAM,IAAI,CAAC,CAAA;AACvC;;ACnGA;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-http.mjs","sources":["../../projects/aril/http/lib/enums.ts","../../projects/aril/http/lib/interfaces.ts","../../projects/aril/http/src/httpClient.ts","../../projects/aril/http/src/serviceStateMethods.ts","../../projects/aril/http/src/serviceBase.ts","../../projects/aril/http/index.ts","../../projects/aril/http/aril-http.ts"],"sourcesContent":["export enum HTTPMethods {\r\n GET = \"GET\",\r\n POST = \"POST\",\r\n DELETE = \"DELETE\"\r\n}\r\n\r\nexport enum APIs {\r\n crm = \"crm\",\r\n wdm = \"wdm\",\r\n billing = \"billing\",\r\n payment = \"payment\",\r\n yeap = \"yeap\"\r\n}\r\n\r\nexport enum ProxyTypes {\r\n Native,\r\n ServerSide,\r\n ClientSide\r\n}","/* eslint-disable @typescript-eslint/no-explicit-any */\r\n/* eslint-disable @typescript-eslint/ban-types */\r\n\r\nimport { ProxyTypes } from \"./enums\";\r\n\r\nexport interface ServiceCallStates {\r\n serviceCalled: boolean;\r\n waitingForResponse: boolean;\r\n responseIsRecieved: boolean;\r\n serviceCallFailed: boolean;\r\n}\r\n\r\nexport type ServiceCallStateMap<T> = {\r\n [K in keyof T]?: T[K] extends Function ? ServiceCallStates : never;\r\n}\r\n\r\nexport class ServiceResponse<T> {\r\n params: any;\r\n response: T;\r\n proxy: ProxyTypes;\r\n items: Array<T>;\r\n paging: {\r\n currentPage: number;\r\n pageSize: number\r\n totalItemCount: number;\r\n totalPageCount: number;\r\n };\r\n\r\n constructor(resp?: T) {\r\n this.params = undefined;\r\n this.response = resp ?? {} as T;\r\n this.proxy = ProxyTypes.Native;\r\n this.items = [];\r\n this.paging = {\r\n currentPage: 1,\r\n pageSize: 10,\r\n totalItemCount: 0,\r\n totalPageCount: 0\r\n };\r\n }\r\n}\r\n\r\nexport class ClientSidePagingResponse {\r\n originalResponse: any;\r\n allItems: any[];\r\n\r\n constructor() {\r\n this.allItems = [];\r\n }\r\n}\r\n\r\nexport class ServerSidePagingRequest {\r\n params: any;\r\n pageNumber: number;\r\n pageSize: number;\r\n\r\n constructor() {\r\n this.params = undefined;\r\n this.pageNumber = 1;\r\n this.pageSize = 10;\r\n }\r\n}\r\n\r\nexport class ServerSidePagingResponse {\r\n originalResponse: any;\r\n items: any[];\r\n totalItemCount: number;\r\n totalPageCount: number;\r\n\r\n constructor() {\r\n this.items = [];\r\n this.totalItemCount = 0;\r\n this.totalPageCount = 0;\r\n }\r\n}","/* eslint-disable @typescript-eslint/no-explicit-any */\r\n\r\nimport { HttpClient } from \"@angular/common/http\";\r\nimport { InjectionToken, Injector, inject } from \"@angular/core\";\r\nimport { APIs } from \"../lib/enums\";\r\nimport { ServiceCallStateMap } from \"../lib/interfaces\";\r\n\r\nexport const API_TOKEN = new InjectionToken<APIs>('API');\r\n\r\nexport abstract class RestClient {\r\n private readonly httpClient = inject(HttpClient);\r\n private readonly baseAPI = inject(API_TOKEN);\r\n private readonly injector = inject(Injector);\r\n\r\n abstract states: ServiceCallStateMap<any>;\r\n}","/* eslint-disable @typescript-eslint/no-explicit-any */\r\n\r\nimport { ServiceCallStateMap } from \"../lib/interfaces\";\r\n\r\nexport const callState = (states: ServiceCallStateMap<any>, serviceName: any): void => {\r\n states[serviceName] = {\r\n serviceCalled: true,\r\n waitingForResponse: true,\r\n responseIsRecieved: false,\r\n serviceCallFailed: false\r\n };\r\n}\r\nexport const successState = (states: ServiceCallStateMap<any>, serviceName: any): void => {\r\n states[serviceName] = {\r\n serviceCalled: true,\r\n waitingForResponse: false,\r\n responseIsRecieved: true,\r\n serviceCallFailed: false,\r\n };\r\n}\r\nexport const errorState = (states: ServiceCallStateMap<any>, serviceName: any): void => {\r\n states[serviceName] = {\r\n serviceCalled: true,\r\n waitingForResponse: false,\r\n responseIsRecieved: true,\r\n serviceCallFailed: true,\r\n };\r\n}","/* eslint-disable @typescript-eslint/no-explicit-any */\r\n\r\n/** TODO: ADD INTERCEPTOR */\r\n/** TODO: SET REQUEST & RESPONSE ACCORDING TO PROXY */\r\n\r\nimport { Observable, throwError } from 'rxjs';\r\nimport { catchError, map, tap } from 'rxjs/operators';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { HttpErrorResponse, HttpClient, HttpParams } from '@angular/common/http';\r\nimport { callState, successState, errorState } from './serviceStateMethods';\r\nimport { runInInjectionContext } from '@angular/core';\r\nimport { APIs, HTTPMethods, ProxyTypes } from '../lib/enums';\r\nimport { ServiceCallStateMap, ServiceResponse } from '../lib/interfaces';\r\nimport { Interfaces } from \"aril/util/lib\";\r\n\r\nexport function ServiceCall(httpMethod: HTTPMethods, proxy: ProxyTypes, remoteAPI?: APIs): MethodDecorator {\r\n return function (serviceClass: object, serviceName: string | symbol, descriptor: PropertyDescriptor) {\r\n const originalFunction = descriptor.value;\r\n\r\n descriptor.value = function (...args: any[]) {\r\n\r\n return runInInjectionContext((<any>this).injector, () => {\r\n const httpClient: HttpClient = (<any>this).httpClient;\r\n const api: APIs = remoteAPI ?? (<any>this).baseAPI;\r\n const endPoint: string = api + <string>serviceName;\r\n const params = getParams(httpMethod, proxy, originalFunction, args);\r\n const states: ServiceCallStateMap<any> = (<any>this).states;\r\n\r\n callState(states, serviceName);\r\n\r\n let observable: Observable<any> = new Observable<any>();\r\n\r\n switch (httpMethod) {\r\n case HTTPMethods.GET:\r\n observable = httpClient.get<any>(endPoint, { params: params as HttpParams, responseType: 'json' });\r\n break;\r\n case HTTPMethods.POST:\r\n observable = httpClient.post<any>(endPoint, params, { responseType: 'json' });\r\n break;\r\n case HTTPMethods.DELETE:\r\n observable = httpClient.delete<any>(endPoint + \"/\" + args[0], { responseType: 'json' });\r\n break;\r\n }\r\n\r\n observable = observable.pipe(\r\n map((data) => setResponse(data, proxy)),\r\n tap(() => successState(states, serviceName)),\r\n catchError((error: HttpErrorResponse) => {\r\n errorState(states, serviceName);\r\n console.error(error);\r\n return throwError(() => new Error('Something bad happened; please try again later.'));\r\n }),\r\n takeUntilDestroyed()\r\n );\r\n\r\n return observable;\r\n });\r\n };\r\n };\r\n}\r\n\r\nfunction getParams(httpMethod: HTTPMethods, proxy: ProxyTypes, fn: () => any, args: any[]): HttpParams | Interfaces.MapStringString | undefined {\r\n if (args.length) {\r\n const source = fn.toString();\r\n const match = source.match(/\\((.*?)\\)/);\r\n const paramNames = match ? match[1].split(',').map(param => param.trim()) : [];\r\n\r\n if (httpMethod === HTTPMethods.GET) {\r\n let queryParams = new HttpParams()\r\n\r\n paramNames.forEach((paramName, index) => {\r\n queryParams = queryParams.append(paramName, args[index]);\r\n });\r\n return queryParams;\r\n }\r\n else {\r\n const params: Interfaces.MapStringString = {};\r\n\r\n args.forEach((arg, index) => {\r\n params[paramNames[index]] = arg;\r\n });\r\n\r\n return params;\r\n }\r\n }\r\n else return undefined;\r\n}\r\n\r\nfunction setResponse(data: any, proxy: ProxyTypes) {\r\n switch (proxy) {\r\n case ProxyTypes.Native:\r\n break;\r\n case ProxyTypes.ServerSide:\r\n break;\r\n case ProxyTypes.ClientSide:\r\n break;\r\n }\r\n\r\n return new ServiceResponse<any>(data)\r\n}","/* lib */\r\nexport * from './lib/enums';\r\nexport * from './lib/interfaces';\r\n\r\n/* src */\r\nexport * from './src/httpClient';\r\nexport * from './src/serviceBase';\r\nexport * from './src/serviceStateMethods';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;IAAY,YAIX;AAJD,CAAA,UAAY,WAAW,EAAA;AACrB,IAAA,WAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IA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ectionStrategy, Input } from '@angular/core';
3
+ import * as i1 from 'primeng/tag';
4
+ import { TagModule } from 'primeng/tag';
5
+
6
+ /* TODO :
7
+ 1. InputSignal
8
+ */
9
+ class BadgeComponent {
10
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: BadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
11
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: BadgeComponent, isStandalone: true, selector: "aril-badge", inputs: { icon: "icon", value: "value", severity: "severity", rounded: "rounded" }, ngImport: i0, template: "<p-tag [icon]=\"icon\" [value]=\"value\" [severity]=\"severity\" [rounded]=\"rounded\">\r\n\t<ng-content></ng-content>\r\n</p-tag>\r\n", dependencies: [{ kind: "ngmodule", type: TagModule }, { kind: "component", type: i1.Tag, selector: "p-tag", inputs: ["style", "styleClass", "severity", "value", "icon", "rounded"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
12
+ }
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: BadgeComponent, decorators: [{
14
+ type: Component,
15
+ args: [{ standalone: true, selector: 'aril-badge', imports: [TagModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-tag [icon]=\"icon\" [value]=\"value\" [severity]=\"severity\" [rounded]=\"rounded\">\r\n\t<ng-content></ng-content>\r\n</p-tag>\r\n" }]
16
+ }], propDecorators: { icon: [{
17
+ type: Input
18
+ }], value: [{
19
+ type: Input
20
+ }], severity: [{
21
+ type: Input,
22
+ args: [{ required: true }]
23
+ }], rounded: [{
24
+ type: Input
25
+ }] } });
26
+
27
+ /**
28
+ * Generated bundle index. Do not edit.
29
+ */
30
+
31
+ export { BadgeComponent };
32
+ //# sourceMappingURL=aril-ui-badge.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-ui-badge.mjs","sources":["../../projects/aril/ui/badge/src/badge.component.ts","../../projects/aril/ui/badge/src/badge.component.html","../../projects/aril/ui/badge/aril-ui-badge.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\nimport { TagModule } from 'primeng/tag';\r\n\r\ntype Severity = 'primary' | 'success' | 'info' | 'warning' | 'danger';\r\n\r\n/* TODO : \r\n 1. InputSignal\r\n*/\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-badge',\r\n templateUrl: './badge.component.html',\r\n imports: [TagModule],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class BadgeComponent {\r\n @Input() icon!: string;\r\n @Input() value!: string;\r\n @Input({ required: true }) severity!: Severity;\r\n @Input() rounded!: boolean;\r\n}\r\n","<p-tag [icon]=\"icon\" [value]=\"value\" [severity]=\"severity\" [rounded]=\"rounded\">\r\n\t<ng-content></ng-content>\r\n</p-tag>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA;;AAEE;MASW,cAAc,CAAA;8GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EChB3B,wIAGA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDUY,SAAS,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,GAAA,EAAA,QAAA,EAAA,OAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,YAAA,EAAA,UAAA,EAAA,OAAA,EAAA,MAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAGR,cAAc,EAAA,UAAA,EAAA,CAAA;kBAP1B,SAAS;iCACI,IAAI,EAAA,QAAA,EACN,YAAY,EAEb,OAAA,EAAA,CAAC,SAAS,CAAC,EAAA,eAAA,EACH,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,wIAAA,EAAA,CAAA;8BAGtC,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACqB,QAAQ,EAAA,CAAA;sBAAlC,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;gBAChB,OAAO,EAAA,CAAA;sBAAf,KAAK;;;AEpBR;;AAEG;;;;"}
@@ -1,18 +1,70 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ChangeDetectionStrategy } from '@angular/core';
2
+ import { EventEmitter, Component, ChangeDetectionStrategy, Input, Output, input } from '@angular/core';
3
+ import * as i1 from 'primeng/button';
4
+ import { ButtonModule } from 'primeng/button';
5
+ import { iconTransform } from 'aril/ui/lib';
6
+ import * as i1$1 from 'primeng/splitbutton';
7
+ import { SplitButtonModule } from 'primeng/splitbutton';
3
8
 
9
+ function colorTransform(color) {
10
+ return `p-button-${color}`;
11
+ }
4
12
  class ButtonComponent {
5
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
6
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: ButtonComponent, isStandalone: true, selector: "aril-ui-button", ngImport: i0, template: "<p>button works!</p>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
13
+ constructor() {
14
+ this.raised = true;
15
+ this.size = "md";
16
+ this.clickEvent = new EventEmitter();
17
+ this.styleClass = '';
18
+ }
19
+ ngOnInit() {
20
+ this.styleClass = `${this.raised ? `p-button-raised` : ''} ${this.outlined ? `p-button-outlined` : ''} ${this.size ? `p-button-${this.size}` : ''} ${this.color}`;
21
+ }
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
23
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "17.1.2", type: ButtonComponent, isStandalone: true, selector: "aril-button:not([click])", inputs: { label: "label", loading: "loading", disabled: "disabled", raised: "raised", outlined: "outlined", badge: "badge", size: "size", icon: ["icon", "icon", iconTransform], color: ["color", "color", colorTransform] }, outputs: { clickEvent: "clickEvent" }, ngImport: i0, template: "<p-button\n\t[label]=\"label\"\n\t[badge]=\"badge\"\n\t[icon]=\"icon\"\n\ticonPos=\"left\"\n\t[disabled]=\"disabled\"\n\t[styleClass]=\"styleClass\"\n\t[loading]=\"loading\"\n\t(onClick)=\"clickEvent.emit($event)\">\n</p-button>\n", dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "size", "style", "styleClass", "badgeClass", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
24
+ }
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ButtonComponent, decorators: [{
26
+ type: Component,
27
+ args: [{ standalone: true, selector: 'aril-button:not([click])', imports: [ButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-button\n\t[label]=\"label\"\n\t[badge]=\"badge\"\n\t[icon]=\"icon\"\n\ticonPos=\"left\"\n\t[disabled]=\"disabled\"\n\t[styleClass]=\"styleClass\"\n\t[loading]=\"loading\"\n\t(onClick)=\"clickEvent.emit($event)\">\n</p-button>\n" }]
28
+ }], propDecorators: { label: [{
29
+ type: Input
30
+ }], loading: [{
31
+ type: Input
32
+ }], disabled: [{
33
+ type: Input
34
+ }], raised: [{
35
+ type: Input
36
+ }], outlined: [{
37
+ type: Input
38
+ }], badge: [{
39
+ type: Input
40
+ }], size: [{
41
+ type: Input
42
+ }], icon: [{
43
+ type: Input,
44
+ args: [{ transform: iconTransform }]
45
+ }], color: [{
46
+ type: Input,
47
+ args: [{ required: true, transform: colorTransform }]
48
+ }], clickEvent: [{
49
+ type: Output
50
+ }] } });
51
+
52
+ class SplitButtonComponent extends ButtonComponent {
53
+ constructor() {
54
+ super(...arguments);
55
+ this.menu = input.required();
56
+ }
57
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SplitButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
58
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: SplitButtonComponent, isStandalone: true, selector: "aril-split-button", inputs: { menu: { classPropertyName: "menu", publicName: "menu", isSignal: true, isRequired: true, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: "<p-splitButton\r\n\t[label]=\"label\"\r\n\t[icon]=\"icon\"\r\n\t[styleClass]=\"styleClass\"\r\n\t[model]=\"menu()\"\r\n\t[disabled]=\"disabled\">\r\n</p-splitButton>\r\n", dependencies: [{ kind: "ngmodule", type: SplitButtonModule }, { kind: "component", type: i1$1.SplitButton, selector: "p-splitButton", inputs: ["model", "icon", "iconPos", "label", "style", "styleClass", "menuStyle", "menuStyleClass", "disabled", "tabindex", "appendTo", "dir", "expandAriaLabel", "showTransitionOptions", "hideTransitionOptions", "buttonProps", "menuButtonProps"], outputs: ["onClick", "onDropdownClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
7
59
  }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ButtonComponent, decorators: [{
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SplitButtonComponent, decorators: [{
9
61
  type: Component,
10
- args: [{ standalone: true, selector: 'aril-ui-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<p>button works!</p>\n" }]
62
+ args: [{ standalone: true, selector: 'aril-split-button', imports: [SplitButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-splitButton\r\n\t[label]=\"label\"\r\n\t[icon]=\"icon\"\r\n\t[styleClass]=\"styleClass\"\r\n\t[model]=\"menu()\"\r\n\t[disabled]=\"disabled\">\r\n</p-splitButton>\r\n" }]
11
63
  }] });
12
64
 
13
65
  /**
14
66
  * Generated bundle index. Do not edit.
15
67
  */
16
68
 
17
- export { ButtonComponent };
69
+ export { ButtonComponent, SplitButtonComponent, colorTransform };
18
70
  //# sourceMappingURL=aril-ui-button.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-button.mjs","sources":["../../projects/aril/ui/button/src/button.component.ts","../../projects/aril/ui/button/src/button.component.html","../../projects/aril/ui/button/aril-ui-button.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n standalone: true,\n selector: 'aril-ui-button',\n templateUrl: './button.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ButtonComponent {}\n","<p>button works!</p>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAQa,eAAe,CAAA;8GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,0ECR5B,wBACA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FDOa,eAAe,EAAA,UAAA,EAAA,CAAA;kBAN3B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,gBAAgB,EAET,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,wBAAA,EAAA,CAAA;;;AENjD;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-button.mjs","sources":["../../projects/aril/ui/button/src/button.component.ts","../../projects/aril/ui/button/src/button.component.html","../../projects/aril/ui/button/src/split-button.component.ts","../../projects/aril/ui/button/src/split-button.component.html","../../projects/aril/ui/button/aril-ui-button.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\nimport { ButtonModule } from 'primeng/button';\r\nimport { PrimeIcon, iconTransform } from 'aril/ui/lib';\r\n\r\n/* TODO : \r\n 1. InputSignal\r\n*/\r\n\r\ntype Size = 'sm' | 'md' | 'lg';\r\nexport type Colors = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger';\r\n\r\nexport function colorTransform(color: Colors): string {\r\n return `p-button-${color}`;\r\n}\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-button:not([click])',\r\n templateUrl: './button.component.html',\r\n imports: [ButtonModule],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class ButtonComponent implements OnInit {\r\n @Input() label!: string;\r\n @Input() loading!: boolean;\r\n @Input() disabled!: boolean;\r\n @Input() raised = true;\r\n @Input() outlined!: boolean;\r\n @Input() badge!: string;\r\n @Input() size: Size = \"md\";\r\n @Input({ transform: iconTransform }) icon!: PrimeIcon;\r\n @Input({ required: true, transform: colorTransform }) color!: Colors;\r\n\r\n @Output() clickEvent: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>();\r\n\r\n styleClass = '';\r\n\r\n ngOnInit() {\r\n this.styleClass = `${this.raised ? `p-button-raised` : ''} ${this.outlined ? `p-button-outlined` : ''} ${this.size ? `p-button-${this.size}` : ''} ${this.color}`;\r\n }\r\n}\r\n","<p-button\n\t[label]=\"label\"\n\t[badge]=\"badge\"\n\t[icon]=\"icon\"\n\ticonPos=\"left\"\n\t[disabled]=\"disabled\"\n\t[styleClass]=\"styleClass\"\n\t[loading]=\"loading\"\n\t(onClick)=\"clickEvent.emit($event)\">\n</p-button>\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\r\nimport { MenuItem } from 'primeng/api';\r\nimport { SplitButtonModule } from 'primeng/splitbutton';\r\nimport { ButtonComponent } from './button.component';\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-split-button',\r\n templateUrl: './split-button.component.html',\r\n imports: [SplitButtonModule],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SplitButtonComponent extends ButtonComponent {\r\n menu = input.required<MenuItem[]>();\r\n}\r\n","<p-splitButton\r\n\t[label]=\"label\"\r\n\t[icon]=\"icon\"\r\n\t[styleClass]=\"styleClass\"\r\n\t[model]=\"menu()\"\r\n\t[disabled]=\"disabled\">\r\n</p-splitButton>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;AAWM,SAAU,cAAc,CAAC,KAAa,EAAA;IAC1C,OAAO,CAAA,SAAA,EAAY,KAAK,CAAA,CAAE,CAAC;AAC7B,CAAC;MASY,eAAe,CAAA;AAP5B,IAAA,WAAA,GAAA;QAWW,IAAM,CAAA,MAAA,GAAG,IAAI,CAAC;QAGd,IAAI,CAAA,IAAA,GAAS,IAAI,CAAC;AAIjB,QAAA,IAAA,CAAA,UAAU,GAA6B,IAAI,YAAY,EAAc,CAAC;QAEhF,IAAU,CAAA,UAAA,GAAG,EAAE,CAAC;AAKjB,KAAA;I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A,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECZjC,2KAOA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDEY,iBAAiB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,IAAA,CAAA,WAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,SAAA,EAAA,OAAA,EAAA,OAAA,EAAA,YAAA,EAAA,WAAA,EAAA,gBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,uBAAA,EAAA,uBAAA,EAAA,aAAA,EAAA,iBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,SAAA,EAAA,iBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAGhB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAPhC,SAAS;iCACI,IAAI,EAAA,QAAA,EACN,mBAAmB,EAEpB,OAAA,EAAA,CAAC,iBAAiB,CAAC,EAAA,eAAA,EACX,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2KAAA,EAAA,CAAA;;;AEVjD;;AAEG;;;;"}
@@ -1,14 +1,108 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ChangeDetectionStrategy } from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
3
+ import * as i3 from '@angular/forms';
4
+ import { ReactiveFormsModule } from '@angular/forms';
5
+ import * as i4 from 'primeng/calendar';
6
+ import { CalendarModule } from 'primeng/calendar';
7
+ import * as i5 from 'primeng/tooltip';
8
+ import { TooltipModule } from 'primeng/tooltip';
9
+ import * as i2 from 'aril/ui/lib';
10
+ import { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
11
+ import 'aril/util/primitive-extensions';
12
+ import * as i1 from 'primeng/api';
3
13
 
4
- class CalendarComponent {
5
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: CalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
6
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: CalendarComponent, isStandalone: true, selector: "aril-ui-calendar", ngImport: i0, template: "<p>calendar works!</p>\r\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
14
+ /* eslint-disable @typescript-eslint/no-explicit-any */
15
+ /* TODOS
16
+ 1. InputSignal
17
+ 2. Adjust different color or background for weekends
18
+ */
19
+ class CalendarComponent extends BaseInputComponent {
20
+ constructor(primeNgConfig) {
21
+ super();
22
+ this.primeNgConfig = primeNgConfig;
23
+ this.disabledDates = [];
24
+ this.view = 'date';
25
+ this.selectionMode = 'single';
26
+ this.dateFormat = "dd/MM/yy";
27
+ this.selectedDisabledDates = [];
28
+ this.setLocale();
29
+ }
30
+ ngOnChanges(changes) {
31
+ if (changes.minDate) {
32
+ this.minJSDate = this.minDate.longToDate();
33
+ }
34
+ if (changes.maxDate) {
35
+ this.maxJSDate = this.minDate.longToDate();
36
+ }
37
+ if (changes.disabledDates?.currentValue.length) {
38
+ this.selectedDisabledDates = this.disabledDates.map((value) => value.longToDate());
39
+ }
40
+ if (changes.view) {
41
+ switch (this.view) {
42
+ case 'month':
43
+ this.dateFormat = "MM/yy";
44
+ break;
45
+ case 'year':
46
+ this.dateFormat = "yy";
47
+ break;
48
+ default:
49
+ this.dateFormat = "dd/MM/yy";
50
+ break;
51
+ }
52
+ }
53
+ }
54
+ // isWeekend(date: any): boolean {
55
+ // if (!date) {
56
+ // return false;
57
+ // }
58
+ // if (this.view == 'date') {
59
+ // const dayOfWeek = date.getDay();
60
+ // return dayOfWeek === 5 || dayOfWeek === 6;
61
+ // }
62
+ // }
63
+ setLocale() {
64
+ this.primeNgConfig.setTranslation({
65
+ firstDayOfWeek: 0,
66
+ dayNames: ["Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi", "Pazar"],
67
+ dayNamesMin: ["Pzt", "Sal", "Çar", "Per", "Cum", "Cmt", "Pzr"],
68
+ dayNamesShort: ["Pzt", "Sal", "Çar", "Per", "Cum", "Cmt", "Pzr"],
69
+ monthNames: ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"],
70
+ monthNamesShort: ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"],
71
+ today: 'Bugün',
72
+ clear: 'Temizle',
73
+ dateFormat: 'dd/mm/yy',
74
+ weekHeader: 'Hafta'
75
+ });
76
+ }
77
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: CalendarComponent, deps: [{ token: i1.PrimeNGConfig }], target: i0.ɵɵFactoryTarget.Component }); }
78
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: CalendarComponent, isStandalone: true, selector: "aril-calendar[ngModel], aril-calendar[formControl], aril-calendar[formControlName]", inputs: { minDate: "minDate", maxDate: "maxDate", inline: "inline", showIcon: "showIcon", showTime: "showTime", showWeek: "showWeek", showSeconds: "showSeconds", disabledDates: "disabledDates", view: "view", selectionMode: "selectionMode", tabindex: "tabindex" }, usesInheritance: true, usesOnChanges: true, hostDirectives: [{ directive: i2.ValueAccessorDirective }], ngImport: i0, template: "<p-calendar\r\n\t[showIcon]=\"true\"\r\n\t[dateFormat]=\"dateFormat\"\r\n\t[showButtonBar]=\"true\"\r\n\t[minDate]=\"minJSDate\"\r\n\t[maxDate]=\"maxJSDate\"\r\n\t[tabindex]=\"tabindex\"\r\n\t[disabledDates]=\"selectedDisabledDates\"\r\n\t[selectionMode]=\"selectionMode\"\r\n\t[readonlyInput]=\"true\"\r\n\t[showTime]=\"showTime\"\r\n\t[showSeconds]=\"showSeconds\"\r\n\t[inline]=\"inline\"\r\n\t[showWeek]=\"showWeek\"\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\t<ng-template pTemplate=\"header\">\r\n\t\t<ng-content select=\"[calendarHeader]\"></ng-content>\r\n\t</ng-template>\r\n\t<ng-template pTemplate=\"footer\">\r\n\t\t<ng-content select=\"[calendarFooter]\"></ng-content>\r\n\t</ng-template>\r\n</p-calendar>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: CalendarModule }, { kind: "component", type: i4.Calendar, selector: "p-calendar", inputs: ["iconDisplay", "style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "locale", "view", "defaultDate"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: i1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i5.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 }); }
7
79
  }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: CalendarComponent, decorators: [{
80
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: CalendarComponent, decorators: [{
9
81
  type: Component,
10
- args: [{ standalone: true, selector: 'aril-ui-calendar', changeDetection: ChangeDetectionStrategy.OnPush, template: "<p>calendar works!</p>\r\n" }]
11
- }] });
82
+ args: [{ standalone: true, selector: 'aril-calendar[ngModel], aril-calendar[formControl], aril-calendar[formControlName]', imports: [ReactiveFormsModule, CalendarModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-calendar\r\n\t[showIcon]=\"true\"\r\n\t[dateFormat]=\"dateFormat\"\r\n\t[showButtonBar]=\"true\"\r\n\t[minDate]=\"minJSDate\"\r\n\t[maxDate]=\"maxJSDate\"\r\n\t[tabindex]=\"tabindex\"\r\n\t[disabledDates]=\"selectedDisabledDates\"\r\n\t[selectionMode]=\"selectionMode\"\r\n\t[readonlyInput]=\"true\"\r\n\t[showTime]=\"showTime\"\r\n\t[showSeconds]=\"showSeconds\"\r\n\t[inline]=\"inline\"\r\n\t[showWeek]=\"showWeek\"\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\t<ng-template pTemplate=\"header\">\r\n\t\t<ng-content select=\"[calendarHeader]\"></ng-content>\r\n\t</ng-template>\r\n\t<ng-template pTemplate=\"footer\">\r\n\t\t<ng-content select=\"[calendarFooter]\"></ng-content>\r\n\t</ng-template>\r\n</p-calendar>\r\n" }]
83
+ }], ctorParameters: () => [{ type: i1.PrimeNGConfig }], propDecorators: { minDate: [{
84
+ type: Input
85
+ }], maxDate: [{
86
+ type: Input
87
+ }], inline: [{
88
+ type: Input
89
+ }], showIcon: [{
90
+ type: Input
91
+ }], showTime: [{
92
+ type: Input
93
+ }], showWeek: [{
94
+ type: Input
95
+ }], showSeconds: [{
96
+ type: Input
97
+ }], disabledDates: [{
98
+ type: Input
99
+ }], view: [{
100
+ type: Input
101
+ }], selectionMode: [{
102
+ type: Input
103
+ }], tabindex: [{
104
+ type: Input
105
+ }] } });
12
106
 
13
107
  /**
14
108
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-calendar.mjs","sources":["../../projects/aril/ui/calendar/src/calendar.component.ts","../../projects/aril/ui/calendar/src/calendar.component.html","../../projects/aril/ui/calendar/aril-ui-calendar.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-ui-calendar',\r\n templateUrl: './calendar.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class CalendarComponent {\r\n\r\n}\r\n","<p>calendar works!</p>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAQa,iBAAiB,CAAA;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,4ECR9B,4BACA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FDOa,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAN7B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,kBAAkB,EAEX,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,4BAAA,EAAA,CAAA;;;AENjD;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-calendar.mjs","sources":["../../projects/aril/ui/calendar/src/calendar.component.ts","../../projects/aril/ui/calendar/src/calendar.component.html","../../projects/aril/ui/calendar/aril-ui-calendar.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\n\r\n/* TODOS \r\n 1. InputSignal\r\n 2. Adjust different color or background for weekends\r\n*/\r\n\r\nimport { ChangeDetectionStrategy, Component, Input, OnChanges } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { CalendarModule } from 'primeng/calendar';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\nimport { PrimeNGConfig } from 'primeng/api';\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\nimport { Types } from 'aril/util/lib';\r\nimport \"aril/util/primitive-extensions\";\r\n\r\ntype View = 'date' | 'month' | 'year';\r\ntype SelectionMode = 'single' | 'multiple' | 'range';\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-calendar[ngModel], aril-calendar[formControl], aril-calendar[formControlName]',\r\n templateUrl: './calendar.component.html',\r\n imports: [ReactiveFormsModule, CalendarModule, TooltipModule, InputErrorMessagePipe],\r\n hostDirectives: [ValueAccessorDirective],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class CalendarComponent extends BaseInputComponent implements OnChanges {\r\n constructor(private primeNgConfig: PrimeNGConfig) {\r\n super();\r\n this.setLocale();\r\n }\r\n\r\n @Input() minDate!: number;\r\n @Input() maxDate!: number;\r\n @Input() inline!: boolean;\r\n @Input() showIcon!: boolean;\r\n @Input() showTime!: boolean;\r\n @Input() showWeek!: boolean;\r\n @Input() showSeconds!: boolean;\r\n @Input() disabledDates: number[] = [];\r\n @Input() view: View = 'date';\r\n @Input() selectionMode: SelectionMode = 'single';\r\n @Input() tabindex!: number;\r\n\r\n minJSDate!: Date;\r\n maxJSDate!: Date;\r\n dateFormat = \"dd/MM/yy\";\r\n selectedDisabledDates: Date[] = [];\r\n\r\n ngOnChanges(changes: Types.NgChanges<CalendarComponent>): void {\r\n if (changes.minDate) { this.minJSDate = this.minDate.longToDate() as Date }\r\n if (changes.maxDate) { this.maxJSDate = this.minDate.longToDate() as Date }\r\n if (changes.disabledDates?.currentValue.length) {\r\n this.selectedDisabledDates = this.disabledDates.map((value: number) => value.longToDate() as Date);\r\n }\r\n if (changes.view) {\r\n switch (this.view) {\r\n case 'month':\r\n this.dateFormat = \"MM/yy\"\r\n break;\r\n case 'year':\r\n this.dateFormat = \"yy\"\r\n break;\r\n default:\r\n this.dateFormat = \"dd/MM/yy\"\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // isWeekend(date: any): boolean {\r\n // if (!date) {\r\n // return false;\r\n // }\r\n\r\n // if (this.view == 'date') {\r\n // const dayOfWeek = date.getDay();\r\n // return dayOfWeek === 5 || dayOfWeek === 6;\r\n // }\r\n // }\r\n\r\n setLocale() {\r\n this.primeNgConfig.setTranslation({\r\n firstDayOfWeek: 0,\r\n dayNames: [\"Pazartesi\", \"Salı\", \"Çarşamba\", \"Perşembe\", \"Cuma\", \"Cumartesi\", \"Pazar\"],\r\n dayNamesMin: [\"Pzt\", \"Sal\", \"Çar\", \"Per\", \"Cum\", \"Cmt\", \"Pzr\"],\r\n dayNamesShort: [\"Pzt\", \"Sal\", \"Çar\", \"Per\", \"Cum\", \"Cmt\", \"Pzr\"],\r\n monthNames: [\"Ocak\", \"Şubat\", \"Mart\", \"Nisan\", \"Mayıs\", \"Haziran\", \"Temmuz\", \"Ağustos\", \"Eylül\", \"Ekim\", \"Kasım\", \"Aralık\"],\r\n monthNamesShort: [\"Oca\", \"Şub\", \"Mar\", \"Nis\", \"May\", \"Haz\", \"Tem\", \"Ağu\", \"Eyl\", \"Eki\", \"Kas\", \"Ara\"],\r\n today: 'Bugün',\r\n clear: 'Temizle',\r\n dateFormat: 'dd/mm/yy',\r\n weekHeader: 'Hafta'\r\n });\r\n }\r\n}\r\n","<p-calendar\r\n\t[showIcon]=\"true\"\r\n\t[dateFormat]=\"dateFormat\"\r\n\t[showButtonBar]=\"true\"\r\n\t[minDate]=\"minJSDate\"\r\n\t[maxDate]=\"maxJSDate\"\r\n\t[tabindex]=\"tabindex\"\r\n\t[disabledDates]=\"selectedDisabledDates\"\r\n\t[selectionMode]=\"selectionMode\"\r\n\t[readonlyInput]=\"true\"\r\n\t[showTime]=\"showTime\"\r\n\t[showSeconds]=\"showSeconds\"\r\n\t[inline]=\"inline\"\r\n\t[showWeek]=\"showWeek\"\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\t<ng-template pTemplate=\"header\">\r\n\t\t<ng-content select=\"[calendarHeader]\"></ng-content>\r\n\t</ng-template>\r\n\t<ng-template pTemplate=\"footer\">\r\n\t\t<ng-content select=\"[calendarFooter]\"></ng-content>\r\n\t</ng-template>\r\n</p-calendar>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;AAEA;;;AAGE;AAsBI,MAAO,iBAAkB,SAAQ,kBAAkB,CAAA;AACvD,IAAA,WAAA,CAAoB,aAA4B,EAAA;AAC9C,QAAA,KAAK,EAAE,CAAC;QADU,IAAa,CAAA,aAAA,GAAb,aAAa,CAAe;QAYvC,IAAa,CAAA,aAAA,GAAa,EAAE,CAAC;QAC7B,IAAI,CAAA,IAAA,GAAS,MAAM,CAAC;QACpB,IAAa,CAAA,aAAA,GAAkB,QAAQ,CAAC;QAKjD,IAAU,CAAA,UAAA,GAAG,UAAU,CAAC;QACxB,IAAqB,CAAA,qBAAA,GAAW,EAAE,CAAC;QAlBjC,IAAI,CAAC,SAAS,EAAE,CAAC;KAClB;AAmBD,IAAA,WAAW,CAAC,OAA2C,EAAA;AACrD,QAAA,IAAI,OAAO,CAAC,OAAO,EAAE;YAAE,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAU,CAAA;SAAE;AAC3E,QAAA,IAAI,OAAO,CAAC,OAAO,EAAE;YAAE,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAU,CAAA;SAAE;QAC3E,IAAI,OAAO,CAAC,aAAa,EAAE,YAAY,CAAC,MAAM,EAAE;AAC9C,YAAA,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,KAAa,KAAK,KAAK,CAAC,UAAU,EA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A,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAIxE,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAR7B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,YACN,oFAAoF,EAAA,OAAA,EAErF,CAAC,mBAAmB,EAAE,cAAc,EAAE,aAAa,EAAE,qBAAqB,CAAC,kBACpE,CAAC,sBAAsB,CAAC,EACvB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,m8BAAA,EAAA,CAAA;kFAQtC,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,MAAM,EAAA,CAAA;sBAAd,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,aAAa,EAAA,CAAA;sBAArB,KAAK;gBACG,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,aAAa,EAAA,CAAA;sBAArB,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;;;AE3CR;;AAEG;;;;"}
@@ -1,18 +1,47 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ChangeDetectionStrategy } from '@angular/core';
2
+ import { input, Component, ChangeDetectionStrategy } from '@angular/core';
3
+ import * as i3 from 'primeng/checkbox';
4
+ import { CheckboxModule } from 'primeng/checkbox';
5
+ import * as i1 from 'aril/ui/lib';
6
+ import { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
7
+ import * as i2 from '@angular/forms';
8
+ import { ReactiveFormsModule } from '@angular/forms';
9
+ import * as i4 from 'primeng/tooltip';
10
+ import { TooltipModule } from 'primeng/tooltip';
11
+ import * as i3$1 from 'primeng/tristatecheckbox';
12
+ import { TriStateCheckboxModule } from 'primeng/tristatecheckbox';
3
13
 
4
- class CheckboxComponent {
5
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
6
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: CheckboxComponent, isStandalone: true, selector: "aril-ui-checkbox", ngImport: i0, template: "<p>checkbox works!</p>\r\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
14
+ class CheckboxComponent extends BaseInputComponent {
15
+ constructor() {
16
+ super(...arguments);
17
+ this.label = input.required();
18
+ this.tabindex = input();
19
+ }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: CheckboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
21
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: CheckboxComponent, isStandalone: true, selector: "aril-checkbox[ngModel], aril-checkbox[formControl], aril-checkbox[formControlName]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<p-checkbox\r\n\t[label]=\"label()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[binary]=\"true\"\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-checkbox>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i3.Checkbox, selector: "p-checkbox", inputs: ["value", "name", "disabled", "binary", "label", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "style", "styleClass", "labelStyleClass", "formControl", "checkboxIcon", "readonly", "required", "trueValue", "falseValue"], outputs: ["onChange", "onFocus", "onBlur"] }, { 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 }); }
7
22
  }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: CheckboxComponent, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: CheckboxComponent, decorators: [{
9
24
  type: Component,
10
- args: [{ standalone: true, selector: 'aril-ui-checkbox', changeDetection: ChangeDetectionStrategy.OnPush, template: "<p>checkbox works!</p>\r\n" }]
25
+ args: [{ standalone: true, selector: 'aril-checkbox[ngModel], aril-checkbox[formControl], aril-checkbox[formControlName]', imports: [ReactiveFormsModule, CheckboxModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-checkbox\r\n\t[label]=\"label()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[binary]=\"true\"\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-checkbox>\r\n" }]
26
+ }] });
27
+
28
+ class TriStateCheckboxComponent extends BaseInputComponent {
29
+ constructor() {
30
+ super(...arguments);
31
+ this.label = input.required();
32
+ this.tabindex = input();
33
+ }
34
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TriStateCheckboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
35
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: TriStateCheckboxComponent, isStandalone: true, selector: "aril-tri-state-checkbox[ngModel], aril-tri-state-checkbox[formControl], aril-tri-state-checkbox[formControlName]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<p-triStateCheckbox\r\n\t[label]=\"label()\"\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-triStateCheckbox>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: TriStateCheckboxModule }, { kind: "component", type: i3$1.TriStateCheckbox, selector: "p-triStateCheckbox", inputs: ["disabled", "name", "ariaLabel", "ariaLabelledBy", "tabindex", "inputId", "style", "styleClass", "label", "readonly", "checkboxTrueIcon", "checkboxFalseIcon"], outputs: ["onChange"] }, { 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 }); }
36
+ }
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TriStateCheckboxComponent, decorators: [{
38
+ type: Component,
39
+ args: [{ standalone: true, selector: 'aril-tri-state-checkbox[ngModel], aril-tri-state-checkbox[formControl], aril-tri-state-checkbox[formControlName]', imports: [ReactiveFormsModule, TriStateCheckboxModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-triStateCheckbox\r\n\t[label]=\"label()\"\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-triStateCheckbox>\r\n" }]
11
40
  }] });
12
41
 
13
42
  /**
14
43
  * Generated bundle index. Do not edit.
15
44
  */
16
45
 
17
- export { CheckboxComponent };
46
+ export { CheckboxComponent, TriStateCheckboxComponent };
18
47
  //# sourceMappingURL=aril-ui-checkbox.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-checkbox.mjs","sources":["../../projects/aril/ui/checkbox/src/checkbox.component.ts","../../projects/aril/ui/checkbox/src/checkbox.component.html","../../projects/aril/ui/checkbox/aril-ui-checkbox.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-ui-checkbox',\r\n templateUrl: './checkbox.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class CheckboxComponent {\r\n\r\n}\r\n","<p>checkbox works!</p>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAQa,iBAAiB,CAAA;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,4ECR9B,4BACA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FDOa,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAN7B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,kBAAkB,EAEX,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,4BAAA,EAAA,CAAA;;;AENjD;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-checkbox.mjs","sources":["../../projects/aril/ui/checkbox/src/check-box.component.ts","../../projects/aril/ui/checkbox/src/check-box.component.html","../../projects/aril/ui/checkbox/src/tri-state-checkbox.component.ts","../../projects/aril/ui/checkbox/src/tri-state-checkbox.component.html","../../projects/aril/ui/checkbox/aril-ui-checkbox.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\r\nimport { CheckboxModule } from 'primeng/checkbox';\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-checkbox[ngModel], aril-checkbox[formControl], aril-checkbox[formControlName]',\r\n templateUrl: './check-box.component.html',\r\n imports: [ReactiveFormsModule, CheckboxModule, TooltipModule, InputErrorMessagePipe],\r\n hostDirectives: [ValueAccessorDirective],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class CheckboxComponent extends BaseInputComponent {\r\n label = input.required<string>();\r\n tabindex = input<number>();\r\n}","<p-checkbox\r\n\t[label]=\"label()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[binary]=\"true\"\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-checkbox>\r\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\r\nimport { TriStateCheckboxModule } from 'primeng/tristatecheckbox';\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-tri-state-checkbox[ngModel], aril-tri-state-checkbox[formControl], aril-tri-state-checkbox[formControlName]',\r\n templateUrl: './tri-state-checkbox.component.html',\r\n imports: [ReactiveFormsModule, TriStateCheckboxModule, TooltipModule, InputErrorMessagePipe],\r\n hostDirectives: [ValueAccessorDirective],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class TriStateCheckboxComponent extends BaseInputComponent {\r\n label = input.required<string>();\r\n tabindex = input<number>();\r\n}\r\n","<p-triStateCheckbox\r\n\t[label]=\"label()\"\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-triStateCheckbox>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3"],"mappings":";;;;;;;;;;;;;AAcM,MAAO,iBAAkB,SAAQ,kBAAkB,CAAA;AARzD,IAAA,WAAA,GAAA;;AASE,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;QACjC,IAAQ,CAAA,QAAA,GAAG,KAAK,EAAU,CAAC;AAC5B,KAAA;8GAHY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oFAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA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C,MAAM,EAAA,QAAA,EAAA,iWAAA,EAAA,CAAA;;;AEZjD;;AAEG;;;;"}
@@ -0,0 +1,35 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Component, ChangeDetectionStrategy, Input, Output } from '@angular/core';
3
+ import * as i1 from 'primeng/confirmpopup';
4
+ import { ConfirmPopupModule } from 'primeng/confirmpopup';
5
+
6
+ /* TODO :
7
+ 1. InputSignal
8
+ 2. Content Template
9
+ 3. Headless
10
+ */
11
+ class ConfirmPopupComponent {
12
+ constructor() {
13
+ this.showEvent = new EventEmitter();
14
+ this.hideEvent = new EventEmitter();
15
+ }
16
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ConfirmPopupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
17
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: ConfirmPopupComponent, isStandalone: true, selector: "aril-confirm-popup", inputs: { key: "key" }, outputs: { showEvent: "showEvent", hideEvent: "hideEvent" }, ngImport: i0, template: "<p-confirmPopup\r\n\t[key]=\"key\"\r\n\t(onShow)=\"showEvent.emit()\"\r\n\t(onHide)=\"hideEvent.emit()\">\r\n</p-confirmPopup>\r\n", dependencies: [{ kind: "ngmodule", type: ConfirmPopupModule }, { kind: "component", type: i1.ConfirmPopup, selector: "p-confirmPopup", inputs: ["key", "defaultFocus", "showTransitionOptions", "hideTransitionOptions", "autoZIndex", "baseZIndex", "style", "styleClass", "visible"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
18
+ }
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ConfirmPopupComponent, decorators: [{
20
+ type: Component,
21
+ args: [{ standalone: true, selector: 'aril-confirm-popup', imports: [ConfirmPopupModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-confirmPopup\r\n\t[key]=\"key\"\r\n\t(onShow)=\"showEvent.emit()\"\r\n\t(onHide)=\"hideEvent.emit()\">\r\n</p-confirmPopup>\r\n" }]
22
+ }], propDecorators: { key: [{
23
+ type: Input
24
+ }], showEvent: [{
25
+ type: Output
26
+ }], hideEvent: [{
27
+ type: Output
28
+ }] } });
29
+
30
+ /**
31
+ * Generated bundle index. Do not edit.
32
+ */
33
+
34
+ export { ConfirmPopupComponent };
35
+ //# sourceMappingURL=aril-ui-confirmPopup.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-ui-confirmPopup.mjs","sources":["../../projects/aril/ui/confirmPopup/src/confirm-popup.component.ts","../../projects/aril/ui/confirmPopup/src/confirm-popup.component.html","../../projects/aril/ui/confirmPopup/aril-ui-confirmPopup.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\r\nimport { ConfirmPopupModule } from 'primeng/confirmpopup';\r\n\r\n/* TODO : \r\n 1. InputSignal\r\n 2. Content Template\r\n 3. Headless\r\n*/\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-confirm-popup',\r\n templateUrl: './confirm-popup.component.html',\r\n imports: [ConfirmPopupModule],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class ConfirmPopupComponent {\r\n @Input() key?: string;\r\n\r\n @Output() showEvent: EventEmitter<void> = new EventEmitter();\r\n @Output() hideEvent: EventEmitter<void> = new EventEmitter();\r\n}\r\n","<p-confirmPopup\r\n\t[key]=\"key\"\r\n\t(onShow)=\"showEvent.emit()\"\r\n\t(onHide)=\"hideEvent.emit()\">\r\n</p-confirmPopup>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAGA;;;;AAIE;MASW,qBAAqB,CAAA;AAPlC,IAAA,WAAA,GAAA;AAUY,QAAA,IAAA,CAAA,SAAS,GAAuB,IAAI,YAAY,EAAE,CAAC;AACnD,QAAA,IAAA,CAAA,SAAS,GAAuB,IAA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
+
5
+ /* TODO :
6
+ 1. InputSignal
7
+ */
8
+ class DxFieldComponent {
9
+ constructor() {
10
+ this.color = '#333';
11
+ this.labelWidth = 30;
12
+ this.valueWidth = 70;
13
+ }
14
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: DxFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
15
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "17.1.2", type: DxFieldComponent, isStandalone: true, selector: "aril-dx-field", inputs: { label: "label", color: "color", labelWidth: ["labelWidth", "labelWidth", (value) => value + "%"], valueWidth: ["valueWidth", "valueWidth", (value) => value + "%"] }, ngImport: i0, template: "<div class=\"dx-field\">\r\n\t<div\r\n\t\tclass=\"dx-field-label font-bold\"\r\n\t\t[ngStyle]=\"{ color: color, width: labelWidth }\">\r\n\t\t{{ label }}\r\n\t</div>\r\n\t<div class=\"dx-field-value\" [ngStyle]=\"{ width: valueWidth }\">\r\n\t\t<ng-content></ng-content>\r\n\t</div>\r\n</div>\r\n`\r\n", dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
16
+ }
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: DxFieldComponent, decorators: [{
18
+ type: Component,
19
+ args: [{ standalone: true, selector: 'aril-dx-field', imports: [NgStyle], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"dx-field\">\r\n\t<div\r\n\t\tclass=\"dx-field-label font-bold\"\r\n\t\t[ngStyle]=\"{ color: color, width: labelWidth }\">\r\n\t\t{{ label }}\r\n\t</div>\r\n\t<div class=\"dx-field-value\" [ngStyle]=\"{ width: valueWidth }\">\r\n\t\t<ng-content></ng-content>\r\n\t</div>\r\n</div>\r\n`\r\n" }]
20
+ }], propDecorators: { label: [{
21
+ type: Input
22
+ }], color: [{
23
+ type: Input
24
+ }], labelWidth: [{
25
+ type: Input,
26
+ args: [{ transform: (value) => value + "%" }]
27
+ }], valueWidth: [{
28
+ type: Input,
29
+ args: [{ transform: (value) => value + "%" }]
30
+ }] } });
31
+
32
+ /**
33
+ * Generated bundle index. Do not edit.
34
+ */
35
+
36
+ export { DxFieldComponent };
37
+ //# sourceMappingURL=aril-ui-dxField.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-ui-dxField.mjs","sources":["../../projects/aril/ui/dxField/src/dx-field.component.ts","../../projects/aril/ui/dxField/src/dx-field.component.html","../../projects/aril/ui/dxField/aril-ui-dxField.ts"],"sourcesContent":["import { NgStyle } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\n\r\n/* TODO : \r\n 1. InputSignal\r\n*/\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-dx-field',\r\n templateUrl: './dx-field.component.html',\r\n imports: [NgStyle],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class DxFieldComponent {\r\n @Input() label!: string;\r\n @Input() color = '#333';\r\n @Input({ transform: (value: number) => value + \"%\" }) labelWidth = 30;\r\n @Input({ transform: (value: number) => value + \"%\" }) valueWidth = 70;\r\n}\r\n","<div class=\"dx-field\">\r\n\t<div\r\n\t\tclass=\"dx-field-label font-bold\"\r\n\t\t[ngStyle]=\"{ color: color, width: labelWidth }\">\r\n\t\t{{ label }}\r\n\t</div>\r\n\t<div class=\"dx-field-value\" [ngStyle]=\"{ width: valueWidth }\">\r\n\t\t<ng-content></ng-content>\r\n\t</div>\r\n</div>\r\n`\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;AAEE;MASW,gBAAgB,CAAA;AAP7B,IAAA,WAAA,GAAA;QASW,IAAK,CAAA,KAAA,GAAG,MAAM,CAAC;QAC8B,IAAU,CAAA,UAAA,GAAG,EAAE,CAAC;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