aril 0.0.46 → 0.0.48

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 (618) hide show
  1. package/boot/config/api/{index.ts → index.d.ts} +1 -1
  2. package/boot/config/api/src/api.service.d.ts +14 -0
  3. package/boot/config/api/src/interfaces.d.ts +9 -0
  4. package/boot/config/apps/{index.ts → index.d.ts} +2 -2
  5. package/boot/config/apps/src/apps.service.d.ts +16 -0
  6. package/boot/config/apps/src/interfaces.d.ts +23 -0
  7. package/boot/config/apps/src/showdowDOMWrapper.d.ts +10 -0
  8. package/boot/config/plugins/{index.ts → index.d.ts} +2 -2
  9. package/boot/config/plugins/src/getNgZone.d.ts +5 -0
  10. package/boot/config/plugins/src/interfaces.d.ts +18 -0
  11. package/boot/config/plugins/src/plugins.service.d.ts +9 -0
  12. package/boot/host/{index.ts → index.d.ts} +1 -1
  13. package/boot/host/src/app.component.d.ts +8 -0
  14. package/boot/host/src/bootstrap.d.ts +2 -0
  15. package/boot/index.d.ts +1 -0
  16. package/boot/mfe/{index.ts → index.d.ts} +1 -1
  17. package/boot/mfe/src/app.component.d.ts +12 -0
  18. package/boot/mfe/src/appComponentLoader.d.ts +1 -0
  19. package/boot/mfe/src/bootstrap.d.ts +6 -0
  20. package/boot/mfe/src/loadStyles.d.ts +3 -0
  21. package/esm2022/aril.mjs +5 -0
  22. package/esm2022/boot/aril-boot.mjs +5 -0
  23. package/esm2022/boot/config/api/aril-boot-config-api.mjs +5 -0
  24. package/esm2022/boot/config/api/index.mjs +2 -0
  25. package/esm2022/boot/config/api/src/api.service.mjs +42 -0
  26. package/esm2022/boot/config/api/src/interfaces.mjs +11 -0
  27. package/esm2022/boot/config/apps/aril-boot-config-apps.mjs +5 -0
  28. package/esm2022/boot/config/apps/index.mjs +3 -0
  29. package/esm2022/boot/config/apps/src/apps.service.mjs +51 -0
  30. package/esm2022/boot/config/apps/src/interfaces.mjs +17 -0
  31. package/esm2022/boot/config/apps/src/showdowDOMWrapper.mjs +35 -0
  32. package/esm2022/boot/config/plugins/aril-boot-config-plugins.mjs +5 -0
  33. package/esm2022/boot/config/plugins/index.mjs +3 -0
  34. package/esm2022/boot/config/plugins/src/getNgZone.mjs +12 -0
  35. package/esm2022/boot/config/plugins/src/interfaces.mjs +3 -0
  36. package/esm2022/boot/config/plugins/src/plugins.service.mjs +65 -0
  37. package/esm2022/boot/host/aril-boot-host.mjs +5 -0
  38. package/esm2022/boot/host/index.mjs +2 -0
  39. package/esm2022/boot/host/src/app.component.mjs +32 -0
  40. package/esm2022/boot/host/src/bootstrap.mjs +50 -0
  41. package/esm2022/boot/index.mjs +2 -0
  42. package/esm2022/boot/mfe/aril-boot-mfe.mjs +5 -0
  43. package/esm2022/boot/mfe/index.mjs +2 -0
  44. package/esm2022/boot/mfe/src/app.component.mjs +60 -0
  45. package/esm2022/boot/mfe/src/appComponentLoader.mjs +5 -0
  46. package/esm2022/boot/mfe/src/bootstrap.mjs +64 -0
  47. package/esm2022/boot/mfe/src/loadStyles.mjs +16 -0
  48. package/esm2022/http/aril-http.mjs +5 -0
  49. package/esm2022/http/index.mjs +12 -0
  50. package/esm2022/http/lib/enums.mjs +16 -0
  51. package/esm2022/http/lib/interfaces.mjs +15 -0
  52. package/esm2022/http/src/httpBackend.mjs +17 -0
  53. package/esm2022/http/src/httpClient.mjs +14 -0
  54. package/esm2022/http/src/interceptor/state-machine.interceptor.mjs +8 -0
  55. package/esm2022/http/src/serviceBase.mjs +60 -0
  56. package/esm2022/http/src/serviceMockBase.mjs +5 -0
  57. package/esm2022/http/src/serviceRequest.mjs +21 -0
  58. package/esm2022/http/src/serviceStateMethods.mjs +118 -0
  59. package/esm2022/i18n/aril-i18n.mjs +5 -0
  60. package/esm2022/i18n/index.mjs +6 -0
  61. package/esm2022/i18n/src/folder-name-token.mjs +3 -0
  62. package/esm2022/i18n/src/i18n.module.mjs +17 -0
  63. package/esm2022/i18n/src/loader.mjs +20 -0
  64. package/esm2022/i18n/src/provideI18n.mjs +16 -0
  65. package/esm2022/i18n/src/provideScope.mjs +18 -0
  66. package/esm2022/keycloak/aril-keycloak.mjs +5 -0
  67. package/esm2022/keycloak/index.mjs +4 -0
  68. package/esm2022/keycloak/src/auth.guard.mjs +39 -0
  69. package/esm2022/keycloak/src/auth.interceptor.mjs +10 -0
  70. package/esm2022/keycloak/src/keycloak.manager.mjs +76 -0
  71. package/esm2022/public-api.mjs +3 -0
  72. package/esm2022/theme/aril-theme.mjs +5 -0
  73. package/esm2022/theme/index.mjs +2 -0
  74. package/esm2022/theme/layout/app/breadcrumb/app.breadcrumb.component.mjs +41 -0
  75. package/esm2022/theme/layout/app/config/app.config.component.mjs +132 -0
  76. package/esm2022/theme/layout/app/layout/app.layout.component.mjs +147 -0
  77. package/esm2022/theme/layout/app/layout/mfe.layout.component.mjs +67 -0
  78. package/esm2022/theme/layout/app/menu/app.menu.component.mjs +398 -0
  79. package/esm2022/theme/layout/app/profileSidebar/app.profilesidebar.component.mjs +28 -0
  80. package/esm2022/theme/layout/app/sidebar/app.sidebar.component.mjs +41 -0
  81. package/esm2022/theme/layout/app/topbar/app.topbar.component.mjs +34 -0
  82. package/esm2022/theme/layout/aril-theme-layout.mjs +5 -0
  83. package/esm2022/theme/layout/index.mjs +4 -0
  84. package/esm2022/theme/layout/service/app.layout.service.mjs +127 -0
  85. package/esm2022/theme/layout/service/app.menu.service.mjs +53 -0
  86. package/esm2022/theme/layout/service/menuchangeevent.mjs +2 -0
  87. package/esm2022/ui/aril-ui.mjs +5 -0
  88. package/esm2022/ui/autoComplete/aril-ui-autoComplete.mjs +5 -0
  89. package/esm2022/ui/autoComplete/index.mjs +2 -0
  90. package/esm2022/ui/autoComplete/src/auto-complete.component.mjs +81 -0
  91. package/esm2022/ui/autoComplete/src/interfaces.mjs +2 -0
  92. package/esm2022/ui/badge/aril-ui-badge.mjs +5 -0
  93. package/esm2022/ui/badge/index.mjs +2 -0
  94. package/esm2022/ui/badge/src/badge.component.mjs +19 -0
  95. package/esm2022/ui/button/aril-ui-button.mjs +5 -0
  96. package/esm2022/ui/button/index.mjs +3 -0
  97. package/esm2022/ui/button/src/button.component.mjs +37 -0
  98. package/esm2022/ui/button/src/split-button.component.mjs +18 -0
  99. package/esm2022/ui/calendar/aril-ui-calendar.mjs +5 -0
  100. package/esm2022/ui/calendar/index.mjs +2 -0
  101. package/esm2022/ui/calendar/src/calendar.component.mjs +119 -0
  102. package/esm2022/ui/checkbox/aril-ui-checkbox.mjs +5 -0
  103. package/esm2022/ui/checkbox/index.mjs +3 -0
  104. package/esm2022/ui/checkbox/src/check-box.component.mjs +24 -0
  105. package/esm2022/ui/checkbox/src/tri-state-checkbox.component.mjs +24 -0
  106. package/esm2022/ui/dxField/aril-ui-dxField.mjs +5 -0
  107. package/esm2022/ui/dxField/index.mjs +2 -0
  108. package/esm2022/ui/dxField/src/dx-field.component.mjs +18 -0
  109. package/esm2022/ui/field/aril-ui-field.mjs +5 -0
  110. package/esm2022/ui/field/index.mjs +2 -0
  111. package/esm2022/ui/field/src/field.component.mjs +39 -0
  112. package/esm2022/ui/fileUpload/aril-ui-fileUpload.mjs +5 -0
  113. package/esm2022/ui/fileUpload/index.mjs +2 -0
  114. package/esm2022/ui/fileUpload/src/file-upload.component.mjs +61 -0
  115. package/esm2022/ui/form/aril-ui-form.mjs +5 -0
  116. package/esm2022/ui/form/index.mjs +22 -0
  117. package/esm2022/ui/form/src/form-submit-button.component.mjs +40 -0
  118. package/esm2022/ui/form/src/form.component.mjs +27 -0
  119. package/esm2022/ui/index.mjs +2 -0
  120. package/esm2022/ui/lib/aril-ui-lib.mjs +5 -0
  121. package/esm2022/ui/lib/index.mjs +15 -0
  122. package/esm2022/ui/lib/src/form/form-error-message.component.mjs +33 -0
  123. package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +34 -0
  124. package/esm2022/ui/lib/src/form/form-field-builder.mjs +23 -0
  125. package/esm2022/ui/lib/src/form/form-validation.mjs +14 -0
  126. package/esm2022/ui/lib/src/grid/flex-grid.directive.mjs +21 -0
  127. package/esm2022/ui/lib/src/input/baseInput.mjs +24 -0
  128. package/esm2022/ui/lib/src/input/common-input-validators.service.mjs +49 -0
  129. package/esm2022/ui/lib/src/input/dx-input-error-message.pipe.mjs +22 -0
  130. package/esm2022/ui/lib/src/input/input-disabled.directive.mjs +25 -0
  131. package/esm2022/ui/lib/src/input/input-error-message.pipe.mjs +42 -0
  132. package/esm2022/ui/lib/src/input/input-transforms.mjs +8 -0
  133. package/esm2022/ui/lib/src/input/value-accessor.directive.mjs +38 -0
  134. package/esm2022/ui/mask/aril-ui-mask.mjs +5 -0
  135. package/esm2022/ui/mask/index.mjs +2 -0
  136. package/esm2022/ui/mask/src/mask.component.mjs +35 -0
  137. package/esm2022/ui/number/aril-ui-number.mjs +5 -0
  138. package/esm2022/ui/number/index.mjs +2 -0
  139. package/esm2022/ui/number/src/number.component.mjs +36 -0
  140. package/esm2022/ui/overlayPanel/aril-ui-overlayPanel.mjs +5 -0
  141. package/esm2022/ui/overlayPanel/index.mjs +2 -0
  142. package/esm2022/ui/overlayPanel/src/overlay-panel.component.mjs +20 -0
  143. package/esm2022/ui/panel/aril-ui-panel.mjs +5 -0
  144. package/esm2022/ui/panel/index.mjs +2 -0
  145. package/esm2022/ui/panel/src/panel.component.mjs +24 -0
  146. package/esm2022/ui/password/aril-ui-password.mjs +5 -0
  147. package/esm2022/ui/password/index.mjs +2 -0
  148. package/esm2022/ui/password/src/password.component.mjs +29 -0
  149. package/esm2022/ui/radioButton/aril-ui-radioButton.mjs +5 -0
  150. package/esm2022/ui/radioButton/index.mjs +2 -0
  151. package/esm2022/ui/radioButton/src/radio-button.component.mjs +30 -0
  152. package/esm2022/ui/selectBox/aril-ui-selectBox.mjs +5 -0
  153. package/esm2022/ui/selectBox/index.mjs +2 -0
  154. package/esm2022/ui/selectBox/src/interfaces.mjs +2 -0
  155. package/esm2022/ui/selectBox/src/select-box.component.mjs +54 -0
  156. package/esm2022/ui/switch/aril-ui-switch.mjs +5 -0
  157. package/esm2022/ui/switch/index.mjs +2 -0
  158. package/esm2022/ui/switch/src/switch.component.mjs +23 -0
  159. package/esm2022/ui/table/aril-ui-table.mjs +5 -0
  160. package/esm2022/ui/table/index.mjs +49 -0
  161. package/esm2022/ui/table/src/i18n.mjs +56 -0
  162. package/esm2022/ui/table/src/table-column.component.mjs +23 -0
  163. package/esm2022/ui/table/src/table.component.mjs +94 -0
  164. package/esm2022/ui/tagBox/aril-ui-tagBox.mjs +5 -0
  165. package/esm2022/ui/tagBox/index.mjs +2 -0
  166. package/esm2022/ui/tagBox/src/tag-box.component.mjs +50 -0
  167. package/esm2022/ui/text/aril-ui-text.mjs +5 -0
  168. package/esm2022/ui/text/index.mjs +2 -0
  169. package/esm2022/ui/text/src/text.component.mjs +40 -0
  170. package/esm2022/ui/textArea/aril-ui-textArea.mjs +5 -0
  171. package/esm2022/ui/textArea/index.mjs +2 -0
  172. package/esm2022/ui/textArea/src/text-area.component.mjs +26 -0
  173. package/esm2022/ui/toggle-button/aril-ui-toggle-button.mjs +5 -0
  174. package/esm2022/ui/toggle-button/index.mjs +2 -0
  175. package/esm2022/ui/toggle-button/src/toggle-button.component.mjs +25 -0
  176. package/esm2022/ui/tree/aril-ui-tree.mjs +5 -0
  177. package/esm2022/ui/tree/index.mjs +2 -0
  178. package/esm2022/ui/tree/src/tree.component.mjs +34 -0
  179. package/esm2022/ui/treeTable/aril-ui-treeTable.mjs +5 -0
  180. package/esm2022/ui/treeTable/index.mjs +2 -0
  181. package/esm2022/ui/treeTable/src/tree-table.component.mjs +55 -0
  182. package/esm2022/ui/value/aril-ui-value.mjs +5 -0
  183. package/esm2022/ui/value/index.mjs +2 -0
  184. package/esm2022/ui/value/src/value.component.mjs +35 -0
  185. package/esm2022/util/aril-util.mjs +5 -0
  186. package/esm2022/util/block/aril-util-block.mjs +5 -0
  187. package/esm2022/util/block/index.mjs +2 -0
  188. package/esm2022/util/block/src/block.mjs +64 -0
  189. package/esm2022/util/custom_pages/aril-util-custom_pages.mjs +5 -0
  190. package/esm2022/util/custom_pages/index.mjs +2 -0
  191. package/esm2022/util/custom_pages/src/notFound.component.mjs +65 -0
  192. package/esm2022/util/index.mjs +2 -0
  193. package/esm2022/util/init-event/aril-util-init-event.mjs +5 -0
  194. package/esm2022/util/init-event/index.mjs +2 -0
  195. package/esm2022/util/init-event/src/init-event.directive.mjs +22 -0
  196. package/esm2022/util/lib/aril-util-lib.mjs +5 -0
  197. package/esm2022/util/lib/index.mjs +4 -0
  198. package/esm2022/util/lib/src/interfaces.mjs +4 -0
  199. package/esm2022/util/lib/src/module-router.mjs +17 -0
  200. package/esm2022/util/lib/src/types.mjs +3 -0
  201. package/esm2022/util/loaders/aril-util-loaders.mjs +5 -0
  202. package/esm2022/util/loaders/index.mjs +3 -0
  203. package/esm2022/util/loaders/script/script.loader.service.mjs +61 -0
  204. package/esm2022/util/loaders/style/style.loader.service.mjs +61 -0
  205. package/esm2022/util/primitive-extensions/aril-util-primitive-extensions.mjs +5 -0
  206. package/esm2022/util/primitive-extensions/index.mjs +5 -0
  207. package/esm2022/util/primitive-extensions/src/boolean.extensions.mjs +2 -0
  208. package/esm2022/util/primitive-extensions/src/date.extensions.mjs +116 -0
  209. package/esm2022/util/primitive-extensions/src/number.extensions.mjs +39 -0
  210. package/esm2022/util/primitive-extensions/src/string.extensions.mjs +23 -0
  211. package/esm2022/util/pub-sub/aril-util-pub-sub.mjs +5 -0
  212. package/esm2022/util/pub-sub/index.mjs +2 -0
  213. package/esm2022/util/pub-sub/src/pub-sub.service.mjs +29 -0
  214. package/fesm2022/aril-app.component-c363Er6g.mjs +76 -0
  215. package/fesm2022/aril-app.component-c363Er6g.mjs.map +1 -0
  216. package/fesm2022/aril-boot-config-api.mjs +59 -0
  217. package/fesm2022/aril-boot-config-api.mjs.map +1 -0
  218. package/fesm2022/aril-boot-config-apps.mjs +106 -0
  219. package/fesm2022/aril-boot-config-apps.mjs.map +1 -0
  220. package/fesm2022/aril-boot-config-plugins.mjs +84 -0
  221. package/fesm2022/aril-boot-config-plugins.mjs.map +1 -0
  222. package/fesm2022/aril-boot-host.mjs +86 -0
  223. package/fesm2022/aril-boot-host.mjs.map +1 -0
  224. package/fesm2022/aril-boot-mfe-app.component-WWRmTfs5.mjs +75 -0
  225. package/fesm2022/aril-boot-mfe-app.component-WWRmTfs5.mjs.map +1 -0
  226. package/fesm2022/aril-boot-mfe-aril-boot-mfe-PwAGdNZE.mjs +90 -0
  227. package/fesm2022/aril-boot-mfe-aril-boot-mfe-PwAGdNZE.mjs.map +1 -0
  228. package/fesm2022/aril-boot-mfe.mjs +16 -0
  229. package/fesm2022/aril-boot-mfe.mjs.map +1 -0
  230. package/fesm2022/aril-boot.mjs +8 -0
  231. package/fesm2022/aril-boot.mjs.map +1 -0
  232. package/fesm2022/aril-http.mjs +273 -0
  233. package/fesm2022/aril-http.mjs.map +1 -0
  234. package/fesm2022/aril-i18n.mjs +72 -0
  235. package/fesm2022/aril-i18n.mjs.map +1 -0
  236. package/fesm2022/aril-keycloak.mjs +129 -0
  237. package/fesm2022/aril-keycloak.mjs.map +1 -0
  238. package/fesm2022/aril-theme-layout.mjs +1010 -0
  239. package/fesm2022/aril-theme-layout.mjs.map +1 -0
  240. package/fesm2022/aril-theme.mjs +8 -0
  241. package/fesm2022/aril-theme.mjs.map +1 -0
  242. package/fesm2022/aril-ui-autoComplete.mjs +88 -0
  243. package/fesm2022/aril-ui-autoComplete.mjs.map +1 -0
  244. package/fesm2022/aril-ui-badge.mjs +26 -0
  245. package/fesm2022/aril-ui-badge.mjs.map +1 -0
  246. package/fesm2022/aril-ui-button.mjs +59 -0
  247. package/fesm2022/aril-ui-button.mjs.map +1 -0
  248. package/fesm2022/aril-ui-calendar.mjs +125 -0
  249. package/fesm2022/aril-ui-calendar.mjs.map +1 -0
  250. package/fesm2022/aril-ui-checkbox.mjs +47 -0
  251. package/fesm2022/aril-ui-checkbox.mjs.map +1 -0
  252. package/fesm2022/aril-ui-dxField.mjs +25 -0
  253. package/fesm2022/aril-ui-dxField.mjs.map +1 -0
  254. package/fesm2022/aril-ui-field.mjs +46 -0
  255. package/fesm2022/aril-ui-field.mjs.map +1 -0
  256. package/fesm2022/aril-ui-fileUpload.mjs +68 -0
  257. package/fesm2022/aril-ui-fileUpload.mjs.map +1 -0
  258. package/fesm2022/aril-ui-form.mjs +86 -0
  259. package/fesm2022/aril-ui-form.mjs.map +1 -0
  260. package/fesm2022/aril-ui-lib.mjs +322 -0
  261. package/fesm2022/aril-ui-lib.mjs.map +1 -0
  262. package/fesm2022/aril-ui-mask.mjs +42 -0
  263. package/fesm2022/aril-ui-mask.mjs.map +1 -0
  264. package/fesm2022/aril-ui-number.mjs +43 -0
  265. package/fesm2022/aril-ui-number.mjs.map +1 -0
  266. package/fesm2022/aril-ui-overlayPanel.mjs +27 -0
  267. package/fesm2022/aril-ui-overlayPanel.mjs.map +1 -0
  268. package/fesm2022/aril-ui-panel.mjs +31 -0
  269. package/fesm2022/aril-ui-panel.mjs.map +1 -0
  270. package/fesm2022/aril-ui-password.mjs +36 -0
  271. package/fesm2022/aril-ui-password.mjs.map +1 -0
  272. package/fesm2022/aril-ui-radioButton.mjs +37 -0
  273. package/fesm2022/aril-ui-radioButton.mjs.map +1 -0
  274. package/fesm2022/aril-ui-selectBox.mjs +61 -0
  275. package/fesm2022/aril-ui-selectBox.mjs.map +1 -0
  276. package/fesm2022/aril-ui-switch.mjs +30 -0
  277. package/fesm2022/aril-ui-switch.mjs.map +1 -0
  278. package/fesm2022/aril-ui-table.mjs +219 -0
  279. package/fesm2022/aril-ui-table.mjs.map +1 -0
  280. package/fesm2022/aril-ui-tagBox.mjs +57 -0
  281. package/fesm2022/aril-ui-tagBox.mjs.map +1 -0
  282. package/fesm2022/aril-ui-text.mjs +47 -0
  283. package/fesm2022/aril-ui-text.mjs.map +1 -0
  284. package/fesm2022/aril-ui-textArea.mjs +33 -0
  285. package/fesm2022/aril-ui-textArea.mjs.map +1 -0
  286. package/fesm2022/aril-ui-toggle-button.mjs +32 -0
  287. package/fesm2022/aril-ui-toggle-button.mjs.map +1 -0
  288. package/fesm2022/aril-ui-tree.mjs +41 -0
  289. package/fesm2022/aril-ui-tree.mjs.map +1 -0
  290. package/fesm2022/aril-ui-treeTable.mjs +62 -0
  291. package/fesm2022/aril-ui-treeTable.mjs.map +1 -0
  292. package/fesm2022/aril-ui-value.mjs +42 -0
  293. package/fesm2022/aril-ui-value.mjs.map +1 -0
  294. package/fesm2022/aril-ui.mjs +8 -0
  295. package/fesm2022/aril-ui.mjs.map +1 -0
  296. package/fesm2022/aril-util-block.mjs +71 -0
  297. package/fesm2022/aril-util-block.mjs.map +1 -0
  298. package/fesm2022/aril-util-custom_pages.mjs +72 -0
  299. package/fesm2022/aril-util-custom_pages.mjs.map +1 -0
  300. package/fesm2022/aril-util-init-event.mjs +29 -0
  301. package/fesm2022/aril-util-init-event.mjs.map +1 -0
  302. package/fesm2022/aril-util-lib.mjs +29 -0
  303. package/fesm2022/aril-util-lib.mjs.map +1 -0
  304. package/fesm2022/aril-util-loaders.mjs +126 -0
  305. package/fesm2022/aril-util-loaders.mjs.map +1 -0
  306. package/fesm2022/aril-util-primitive-extensions.mjs +179 -0
  307. package/fesm2022/aril-util-primitive-extensions.mjs.map +1 -0
  308. package/fesm2022/aril-util-pub-sub.mjs +36 -0
  309. package/fesm2022/aril-util-pub-sub.mjs.map +1 -0
  310. package/fesm2022/aril-util.mjs +8 -0
  311. package/fesm2022/aril-util.mjs.map +1 -0
  312. package/fesm2022/aril.mjs +157 -0
  313. package/fesm2022/aril.mjs.map +1 -0
  314. package/http/{index.ts → index.d.ts} +8 -13
  315. package/http/lib/enums.d.ts +13 -0
  316. package/http/lib/interfaces.d.ts +21 -0
  317. package/http/src/httpBackend.d.ts +8 -0
  318. package/http/src/httpClient.d.ts +8 -0
  319. package/http/src/interceptor/state-machine.interceptor.d.ts +2 -0
  320. package/http/src/serviceBase.d.ts +5 -0
  321. package/http/src/serviceMockBase.d.ts +6 -0
  322. package/http/src/serviceRequest.d.ts +4 -0
  323. package/http/src/serviceStateMethods.d.ts +14 -0
  324. package/i18n/{index.ts → index.d.ts} +5 -5
  325. package/i18n/src/folder-name-token.d.ts +2 -0
  326. package/i18n/src/i18n.module.d.ts +7 -0
  327. package/i18n/src/loader.d.ts +9 -0
  328. package/i18n/src/provideI18n.d.ts +2 -0
  329. package/i18n/src/provideScope.d.ts +5 -0
  330. package/index.d.ts +5 -0
  331. package/keycloak/{index.ts → index.d.ts} +3 -3
  332. package/keycloak/src/auth.guard.d.ts +11 -0
  333. package/keycloak/src/auth.interceptor.d.ts +2 -0
  334. package/keycloak/src/keycloak.manager.d.ts +25 -0
  335. package/package.json +314 -31
  336. package/{public-api.ts → public-api.d.ts} +2 -2
  337. package/theme/index.d.ts +1 -0
  338. package/theme/layout/app/breadcrumb/app.breadcrumb.component.d.ts +16 -0
  339. package/theme/layout/app/config/app.config.component.d.ts +36 -0
  340. package/theme/layout/app/layout/app.layout.component.d.ts +48 -0
  341. package/theme/layout/app/layout/mfe.layout.component.d.ts +8 -0
  342. package/theme/layout/app/menu/app.menu.component.d.ts +50 -0
  343. package/theme/layout/app/profileSidebar/app.profilesidebar.component.d.ts +13 -0
  344. package/theme/layout/app/sidebar/app.sidebar.component.d.ts +15 -0
  345. package/theme/layout/app/topbar/app.topbar.component.d.ts +16 -0
  346. package/theme/layout/index.d.ts +3 -0
  347. package/theme/layout/service/app.layout.service.d.ts +51 -0
  348. package/theme/layout/service/app.menu.service.d.ts +23 -0
  349. package/theme/layout/service/menuchangeevent.d.ts +4 -0
  350. package/ui/autoComplete/{index.ts → index.d.ts} +1 -1
  351. package/ui/autoComplete/src/auto-complete.component.d.ts +24 -0
  352. package/ui/autoComplete/src/interfaces.d.ts +24 -0
  353. package/ui/badge/{index.ts → index.d.ts} +1 -1
  354. package/ui/badge/src/badge.component.d.ts +11 -0
  355. package/ui/button/{index.ts → index.d.ts} +2 -2
  356. package/ui/button/src/button.component.d.ts +24 -0
  357. package/ui/button/src/split-button.component.d.ts +8 -0
  358. package/ui/calendar/{index.ts → index.d.ts} +1 -1
  359. package/ui/calendar/src/calendar.component.d.ts +38 -0
  360. package/ui/checkbox/{index.ts → index.d.ts} +2 -2
  361. package/ui/checkbox/src/check-box.component.d.ts +9 -0
  362. package/ui/checkbox/src/tri-state-checkbox.component.d.ts +9 -0
  363. package/ui/dxField/{index.ts → index.d.ts} +1 -1
  364. package/ui/dxField/src/dx-field.component.d.ts +9 -0
  365. package/ui/field/{index.ts → index.d.ts} +1 -1
  366. package/ui/field/src/field.component.d.ts +25 -0
  367. package/ui/fileUpload/{index.ts → index.d.ts} +1 -1
  368. package/ui/fileUpload/src/file-upload.component.d.ts +47 -0
  369. package/ui/form/index.d.ts +11 -0
  370. package/ui/form/src/form-submit-button.component.d.ts +14 -0
  371. package/ui/form/src/form.component.d.ts +8 -0
  372. package/ui/index.d.ts +1 -0
  373. package/ui/lib/{index.ts → index.d.ts} +11 -16
  374. package/ui/lib/src/form/form-error-message.component.d.ts +9 -0
  375. package/ui/lib/src/form/form-error-message.directive.d.ts +14 -0
  376. package/ui/lib/src/form/form-field-builder.d.ts +8 -0
  377. package/ui/lib/src/form/form-validation.d.ts +2 -0
  378. package/ui/lib/src/grid/flex-grid.directive.d.ts +6 -0
  379. package/ui/lib/src/input/baseInput.d.ts +7 -0
  380. package/ui/lib/src/input/common-input-validators.service.d.ts +20 -0
  381. package/ui/lib/src/input/dx-input-error-message.pipe.d.ts +11 -0
  382. package/ui/lib/src/input/input-disabled.directive.d.ts +9 -0
  383. package/ui/lib/src/input/input-error-message.pipe.d.ts +7 -0
  384. package/ui/lib/src/input/input-transforms.d.ts +5 -0
  385. package/ui/lib/src/input/value-accessor.directive.d.ts +9 -0
  386. package/ui/mask/{index.ts → index.d.ts} +1 -1
  387. package/ui/mask/src/mask.component.d.ts +21 -0
  388. package/ui/number/{index.ts → index.d.ts} +1 -1
  389. package/ui/number/src/number.component.d.ts +27 -0
  390. package/ui/overlayPanel/{index.ts → index.d.ts} +1 -1
  391. package/ui/overlayPanel/src/overlay-panel.component.d.ts +8 -0
  392. package/ui/panel/{index.ts → index.d.ts} +1 -1
  393. package/ui/panel/src/panel.component.d.ts +10 -0
  394. package/ui/password/{index.ts → index.d.ts} +1 -1
  395. package/ui/password/src/password.component.d.ts +11 -0
  396. package/ui/radioButton/{index.ts → index.d.ts} +1 -1
  397. package/ui/radioButton/src/radio-button.component.d.ts +20 -0
  398. package/ui/selectBox/{index.ts → index.d.ts} +1 -1
  399. package/ui/selectBox/src/interfaces.d.ts +32 -0
  400. package/ui/selectBox/src/select-box.component.d.ts +25 -0
  401. package/ui/switch/{index.ts → index.d.ts} +1 -1
  402. package/ui/switch/src/switch.component.d.ts +8 -0
  403. package/ui/table/index.d.ts +16 -0
  404. package/ui/table/src/i18n.d.ts +42 -0
  405. package/ui/table/src/table-column.component.d.ts +24 -0
  406. package/ui/table/src/table.component.d.ts +41 -0
  407. package/ui/tagBox/{index.ts → index.d.ts} +1 -1
  408. package/ui/tagBox/src/tag-box.component.d.ts +15 -0
  409. package/ui/text/{index.ts → index.d.ts} +1 -1
  410. package/ui/text/src/text.component.d.ts +17 -0
  411. package/ui/textArea/{index.ts → index.d.ts} +1 -1
  412. package/ui/textArea/src/text-area.component.d.ts +11 -0
  413. package/ui/toggle-button/index.d.ts +1 -0
  414. package/ui/toggle-button/src/toggle-button.component.d.ts +10 -0
  415. package/ui/tree/{index.ts → index.d.ts} +1 -1
  416. package/ui/tree/src/tree.component.d.ts +19 -0
  417. package/ui/treeTable/{index.ts → index.d.ts} +1 -1
  418. package/ui/treeTable/src/tree-table.component.d.ts +21 -0
  419. package/ui/value/{index.ts → index.d.ts} +1 -1
  420. package/ui/value/src/value.component.d.ts +13 -0
  421. package/util/block/{index.ts → index.d.ts} +1 -1
  422. package/util/block/src/block.d.ts +28 -0
  423. package/util/custom_pages/{index.ts → index.d.ts} +1 -1
  424. package/util/custom_pages/src/notFound.component.d.ts +5 -0
  425. package/util/index.d.ts +1 -0
  426. package/util/init-event/{index.ts → index.d.ts} +1 -1
  427. package/util/init-event/src/init-event.directive.d.ts +8 -0
  428. package/util/lib/{index.ts → index.d.ts} +3 -3
  429. package/util/lib/src/interfaces.d.ts +41 -0
  430. package/util/lib/src/module-router.d.ts +5 -0
  431. package/util/lib/src/types.d.ts +29 -0
  432. package/util/loaders/{index.ts → index.d.ts} +2 -2
  433. package/util/loaders/script/script.loader.service.d.ts +13 -0
  434. package/util/loaders/style/style.loader.service.d.ts +13 -0
  435. package/util/primitive-extensions/{index.ts → index.d.ts} +4 -4
  436. package/util/primitive-extensions/src/{boolean.extensions.ts → boolean.extensions.d.ts} +1 -1
  437. package/util/primitive-extensions/src/date.extensions.d.ts +8 -0
  438. package/util/primitive-extensions/src/number.extensions.d.ts +12 -0
  439. package/util/primitive-extensions/src/string.extensions.d.ts +11 -0
  440. package/util/pub-sub/{index.ts → index.d.ts} +1 -1
  441. package/util/pub-sub/src/pub-sub.service.d.ts +20 -0
  442. package/.eslintrc.json +0 -41
  443. package/boot/config/api/ng-package.json +0 -6
  444. package/boot/config/api/src/api.service.ts +0 -57
  445. package/boot/config/api/src/interfaces.ts +0 -13
  446. package/boot/config/apps/ng-package.json +0 -6
  447. package/boot/config/apps/src/apps.service.ts +0 -64
  448. package/boot/config/apps/src/interfaces.ts +0 -27
  449. package/boot/config/apps/src/showdowDOMWrapper.ts +0 -28
  450. package/boot/config/plugins/ng-package.json +0 -6
  451. package/boot/config/plugins/src/getNgZone.ts +0 -9
  452. package/boot/config/plugins/src/interfaces.ts +0 -11
  453. package/boot/config/plugins/src/plugins.service.ts +0 -82
  454. package/boot/host/ng-package.json +0 -6
  455. package/boot/host/src/app.component.ts +0 -27
  456. package/boot/host/src/bootstrap.ts +0 -61
  457. package/boot/index.ts +0 -1
  458. package/boot/mfe/ng-package.json +0 -6
  459. package/boot/mfe/src/app.component.ts +0 -57
  460. package/boot/mfe/src/appComponentLoader.ts +0 -4
  461. package/boot/mfe/src/bootstrap.ts +0 -78
  462. package/boot/mfe/src/loadStyles.ts +0 -19
  463. package/boot/ng-package.json +0 -6
  464. package/http/lib/enums.ts +0 -13
  465. package/http/lib/interfaces.ts +0 -38
  466. package/http/ng-package.json +0 -6
  467. package/http/src/httpBackend.ts +0 -12
  468. package/http/src/httpClient.ts +0 -20
  469. package/http/src/interceptor/state-machine.interceptor.ts +0 -9
  470. package/http/src/serviceBase.ts +0 -91
  471. package/http/src/serviceMockBase.ts +0 -12
  472. package/http/src/serviceRequest.ts +0 -26
  473. package/http/src/serviceStateMethods.ts +0 -155
  474. package/i18n/ng-package.json +0 -6
  475. package/i18n/src/folder-name-token.ts +0 -3
  476. package/i18n/src/i18n.module.ts +0 -11
  477. package/i18n/src/loader.ts +0 -16
  478. package/i18n/src/provideI18n.ts +0 -18
  479. package/i18n/src/provideScope.ts +0 -20
  480. package/keycloak/ng-package.json +0 -6
  481. package/keycloak/src/auth.guard.ts +0 -37
  482. package/keycloak/src/auth.interceptor.ts +0 -13
  483. package/keycloak/src/keycloak.manager.ts +0 -89
  484. package/ng-package.json +0 -14
  485. package/project.json +0 -39
  486. package/tsconfig.lib.json +0 -12
  487. package/tsconfig.lib.prod.json +0 -10
  488. package/tsconfig.spec.json +0 -9
  489. package/ui/autoComplete/ng-package.json +0 -6
  490. package/ui/autoComplete/src/auto-complete.component.html +0 -11
  491. package/ui/autoComplete/src/auto-complete.component.ts +0 -92
  492. package/ui/autoComplete/src/interfaces.ts +0 -30
  493. package/ui/badge/ng-package.json +0 -6
  494. package/ui/badge/src/badge.component.html +0 -3
  495. package/ui/badge/src/badge.component.ts +0 -19
  496. package/ui/button/ng-package.json +0 -6
  497. package/ui/button/src/button.component.html +0 -10
  498. package/ui/button/src/button.component.ts +0 -43
  499. package/ui/button/src/split-button.component.html +0 -2
  500. package/ui/button/src/split-button.component.ts +0 -17
  501. package/ui/calendar/ng-package.json +0 -6
  502. package/ui/calendar/src/calendar.component.html +0 -31
  503. package/ui/calendar/src/calendar.component.ts +0 -136
  504. package/ui/checkbox/ng-package.json +0 -6
  505. package/ui/checkbox/src/check-box.component.html +0 -9
  506. package/ui/checkbox/src/check-box.component.ts +0 -19
  507. package/ui/checkbox/src/tri-state-checkbox.component.html +0 -7
  508. package/ui/checkbox/src/tri-state-checkbox.component.ts +0 -20
  509. package/ui/dxField/ng-package.json +0 -6
  510. package/ui/dxField/src/dx-field.component.html +0 -8
  511. package/ui/dxField/src/dx-field.component.ts +0 -16
  512. package/ui/field/ng-package.json +0 -6
  513. package/ui/field/src/field.component.html +0 -22
  514. package/ui/field/src/field.component.ts +0 -46
  515. package/ui/fileUpload/ng-package.json +0 -6
  516. package/ui/fileUpload/src/file-upload.component.html +0 -38
  517. package/ui/fileUpload/src/file-upload.component.ts +0 -72
  518. package/ui/form/index.ts +0 -18
  519. package/ui/form/ng-package.json +0 -6
  520. package/ui/form/src/form-submit-button.component.html +0 -12
  521. package/ui/form/src/form-submit-button.component.ts +0 -36
  522. package/ui/form/src/form.component.ts +0 -20
  523. package/ui/index.ts +0 -1
  524. package/ui/lib/ng-package.json +0 -6
  525. package/ui/lib/src/form/form-error-message.component.ts +0 -25
  526. package/ui/lib/src/form/form-error-message.directive.ts +0 -32
  527. package/ui/lib/src/form/form-field-builder.ts +0 -31
  528. package/ui/lib/src/form/form-validation.ts +0 -14
  529. package/ui/lib/src/grid/flex-grid.directive.ts +0 -10
  530. package/ui/lib/src/input/baseInput.ts +0 -30
  531. package/ui/lib/src/input/common-input-validators.service.ts +0 -57
  532. package/ui/lib/src/input/dx-input-error-message.pipe.ts +0 -16
  533. package/ui/lib/src/input/input-disabled.directive.ts +0 -15
  534. package/ui/lib/src/input/input-error-message.pipe.ts +0 -39
  535. package/ui/lib/src/input/input-transforms.ts +0 -11
  536. package/ui/lib/src/input/value-accessor.directive.ts +0 -27
  537. package/ui/mask/ng-package.json +0 -6
  538. package/ui/mask/src/mask.component.css +0 -23
  539. package/ui/mask/src/mask.component.html +0 -17
  540. package/ui/mask/src/mask.component.ts +0 -34
  541. package/ui/ng-package.json +0 -6
  542. package/ui/number/ng-package.json +0 -6
  543. package/ui/number/src/number.component.html +0 -25
  544. package/ui/number/src/number.component.ts +0 -34
  545. package/ui/overlayPanel/ng-package.json +0 -6
  546. package/ui/overlayPanel/src/overlay-panel.component.html +0 -5
  547. package/ui/overlayPanel/src/overlay-panel.component.ts +0 -16
  548. package/ui/panel/ng-package.json +0 -6
  549. package/ui/panel/src/panel.component.css +0 -25
  550. package/ui/panel/src/panel.component.html +0 -38
  551. package/ui/panel/src/panel.component.ts +0 -24
  552. package/ui/password/ng-package.json +0 -6
  553. package/ui/password/src/password.component.html +0 -24
  554. package/ui/password/src/password.component.ts +0 -22
  555. package/ui/radioButton/ng-package.json +0 -6
  556. package/ui/radioButton/src/radio-button.component.html +0 -17
  557. package/ui/radioButton/src/radio-button.component.ts +0 -36
  558. package/ui/selectBox/ng-package.json +0 -6
  559. package/ui/selectBox/src/interfaces.ts +0 -41
  560. package/ui/selectBox/src/select-box.component.html +0 -17
  561. package/ui/selectBox/src/select-box.component.ts +0 -69
  562. package/ui/switch/ng-package.json +0 -6
  563. package/ui/switch/src/switch.component.html +0 -7
  564. package/ui/switch/src/switch.component.ts +0 -18
  565. package/ui/table/index.ts +0 -34
  566. package/ui/table/ng-package.json +0 -6
  567. package/ui/table/src/i18n.ts +0 -55
  568. package/ui/table/src/table-column.component.ts +0 -28
  569. package/ui/table/src/table.component.html +0 -136
  570. package/ui/table/src/table.component.ts +0 -99
  571. package/ui/tagBox/ng-package.json +0 -6
  572. package/ui/tagBox/src/tag-box.component.html +0 -21
  573. package/ui/tagBox/src/tag-box.component.ts +0 -53
  574. package/ui/text/ng-package.json +0 -6
  575. package/ui/text/src/text.component.html +0 -21
  576. package/ui/text/src/text.component.ts +0 -47
  577. package/ui/textArea/ng-package.json +0 -6
  578. package/ui/textArea/src/text-area.component.html +0 -11
  579. package/ui/textArea/src/text-area.component.ts +0 -21
  580. package/ui/toggle-button/index.ts +0 -1
  581. package/ui/toggle-button/ng-package.json +0 -6
  582. package/ui/toggle-button/src/toggle-button.component.html +0 -13
  583. package/ui/toggle-button/src/toggle-button.component.scss +0 -19
  584. package/ui/toggle-button/src/toggle-button.component.ts +0 -22
  585. package/ui/tree/ng-package.json +0 -6
  586. package/ui/tree/src/tree.component.html +0 -16
  587. package/ui/tree/src/tree.component.ts +0 -52
  588. package/ui/treeTable/ng-package.json +0 -6
  589. package/ui/treeTable/src/tree-table.component.html +0 -88
  590. package/ui/treeTable/src/tree-table.component.ts +0 -57
  591. package/ui/value/ng-package.json +0 -6
  592. package/ui/value/src/value.component.html +0 -19
  593. package/ui/value/src/value.component.ts +0 -39
  594. package/util/block/ng-package.json +0 -6
  595. package/util/block/src/block.ts +0 -65
  596. package/util/custom_pages/ng-package.json +0 -6
  597. package/util/custom_pages/src/notFound.component.ts +0 -34
  598. package/util/index.ts +0 -1
  599. package/util/init-event/ng-package.json +0 -6
  600. package/util/init-event/src/init-event.directive.ts +0 -13
  601. package/util/lib/ng-package.json +0 -6
  602. package/util/lib/src/interfaces.ts +0 -44
  603. package/util/lib/src/module-router.ts +0 -10
  604. package/util/lib/src/types.ts +0 -49
  605. package/util/loaders/ng-package.json +0 -6
  606. package/util/loaders/script/script.loader.service.ts +0 -69
  607. package/util/loaders/style/style.loader.service.ts +0 -69
  608. package/util/ng-package.json +0 -6
  609. package/util/primitive-extensions/ng-package.json +0 -6
  610. package/util/primitive-extensions/src/date.extensions.ts +0 -135
  611. package/util/primitive-extensions/src/number.extensions.ts +0 -57
  612. package/util/primitive-extensions/src/string.extensions.ts +0 -39
  613. package/util/pub-sub/ng-package.json +0 -6
  614. package/util/pub-sub/src/pub-sub.service.ts +0 -34
  615. /package/boot/config/{api/src/api.sample.json → api.sample.json} +0 -0
  616. /package/{util/block/src → scripts/util}/blockui.min.js +0 -0
  617. /package/{ui/styles → styles/ui}/ui.common.scss +0 -0
  618. /package/{util/block/src → styles/util}/blockui.css +0 -0
@@ -0,0 +1,125 @@
1
+ import { NgClass } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { inject, Injector, input, computed, runInInjectionContext, Component } from '@angular/core';
4
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
+ import * as i3 from '@angular/forms';
6
+ import { ReactiveFormsModule, FormsModule } from '@angular/forms';
7
+ import * as i4 from 'primeng/calendar';
8
+ import { CalendarModule } from 'primeng/calendar';
9
+ import * as i5 from 'primeng/tooltip';
10
+ import { TooltipModule } from 'primeng/tooltip';
11
+ import * as i2 from 'aril/ui/lib';
12
+ import { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
13
+ import 'aril/util/primitive-extensions';
14
+ import * as i1 from 'primeng/api';
15
+
16
+ /* eslint-disable @typescript-eslint/no-explicit-any */
17
+ /* TODO
18
+ 1. Adjust different color or background for weekends
19
+ */
20
+ class CalendarComponent extends BaseInputComponent {
21
+ constructor(primeNgConfig) {
22
+ super();
23
+ this.primeNgConfig = primeNgConfig;
24
+ this.injector = inject(Injector);
25
+ this.minDate = input();
26
+ this.maxDate = input();
27
+ this.inline = input(false);
28
+ this.showIcon = input(false);
29
+ this.showTime = input(false);
30
+ this.showWeek = input(false);
31
+ this.showSeconds = input(false);
32
+ this.disabledDates = input([]);
33
+ this.view = input('date');
34
+ this.selectionMode = input('single');
35
+ this.tabindex = input();
36
+ this.showOnFocus = input(false);
37
+ this._minJSDate = computed(() => {
38
+ return this.minDate()?.longToDate();
39
+ });
40
+ this._maxJSDate = computed(() => {
41
+ return this.maxDate()?.longToDate();
42
+ });
43
+ this._selectedDisabledDates = computed(() => {
44
+ return this.disabledDates()?.map((value) => value.longToDate());
45
+ });
46
+ this._dateFormat = computed(() => {
47
+ switch (this.view()) {
48
+ case 'month':
49
+ return 'MM/yy';
50
+ case 'year':
51
+ return 'yy';
52
+ default:
53
+ return 'dd/MM/yy';
54
+ }
55
+ });
56
+ this.setLocale();
57
+ }
58
+ ngOnInit() {
59
+ if (typeof this.ngControl?.control?.value === 'number')
60
+ this.model = this.ngControl?.control?.value?.longToDate();
61
+ }
62
+ ngAfterViewInit() {
63
+ runInInjectionContext(this.injector, () => {
64
+ this.ngControl?.control?.valueChanges?.pipe(takeUntilDestroyed()).subscribe((value) => {
65
+ if (Number(value)) {
66
+ const currentDate = this.model || new Date();
67
+ currentDate.setTime(value);
68
+ this.model = currentDate;
69
+ }
70
+ });
71
+ });
72
+ }
73
+ setFormCtrl(value) {
74
+ this.ngControl?.control?.setValue(value?.getTime());
75
+ }
76
+ // isWeekend(date: any): boolean {
77
+ // if (!date) {
78
+ // return false;
79
+ // }
80
+ // if (this.view == 'date') {
81
+ // const dayOfWeek = date.getDay();
82
+ // return dayOfWeek === 5 || dayOfWeek === 6;
83
+ // }
84
+ // }
85
+ setLocale() {
86
+ this.primeNgConfig.setTranslation({
87
+ firstDayOfWeek: 0,
88
+ dayNames: ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'],
89
+ dayNamesMin: ['Pzr', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt'],
90
+ dayNamesShort: ['Pzr', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt'],
91
+ monthNames: [
92
+ 'Ocak',
93
+ 'Şubat',
94
+ 'Mart',
95
+ 'Nisan',
96
+ 'Mayıs',
97
+ 'Haziran',
98
+ 'Temmuz',
99
+ 'Ağustos',
100
+ 'Eylül',
101
+ 'Ekim',
102
+ 'Kasım',
103
+ 'Aralık'
104
+ ],
105
+ monthNamesShort: ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'],
106
+ today: 'Bugün',
107
+ clear: 'Temizle',
108
+ dateFormat: 'dd/mm/yy',
109
+ weekHeader: 'Hafta'
110
+ });
111
+ }
112
+ 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 }); }
113
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: CalendarComponent, isStandalone: true, selector: "aril-calendar[ngModel], aril-calendar[formControl], aril-calendar[formControlName]", inputs: { minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, showTime: { classPropertyName: "showTime", publicName: "showTime", isSignal: true, isRequired: false, transformFunction: null }, showWeek: { classPropertyName: "showWeek", publicName: "showWeek", isSignal: true, isRequired: false, transformFunction: null }, showSeconds: { classPropertyName: "showSeconds", publicName: "showSeconds", isSignal: true, isRequired: false, transformFunction: null }, disabledDates: { classPropertyName: "disabledDates", publicName: "disabledDates", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, showOnFocus: { classPropertyName: "showOnFocus", publicName: "showOnFocus", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i2.ValueAccessorDirective }], ngImport: i0, template: "<div [ngClass]=\"{ invalidCalendar: ngControl.dirty && ngControl.invalid }\">\r\n\t<p-calendar\r\n\t\t[showIcon]=\"true\"\r\n\t\t[dateFormat]=\"_dateFormat()\"\r\n\t\t[showButtonBar]=\"true\"\r\n\t\t[minDate]=\"_minJSDate()\"\r\n\t\t[maxDate]=\"_maxJSDate()\"\r\n\t\t[tabindex]=\"tabindex()\"\r\n\t\t[disabledDates]=\"_selectedDisabledDates()\"\r\n\t\t[selectionMode]=\"selectionMode()\"\r\n\t\t[disabled]=\"ngControl.control.disabled\"\r\n\t\t[readonlyInput]=\"false\"\r\n\t\t[showTime]=\"showTime()\"\r\n\t\t[showSeconds]=\"showSeconds()\"\r\n\t\t[inline]=\"inline()\"\r\n\t\t[showWeek]=\"showWeek()\"\r\n\t\t[showOnFocus]=\"showOnFocus()\"\r\n\t\t[firstDayOfWeek]=\"1\"\r\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t\t[tooltipOptions]=\"tooltipOptions\"\r\n\t\t[(ngModel)]=\"model\"\r\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event); setFormCtrl($event)\"\r\n\t\tappendTo=\"body\">\r\n\t\t<ng-template pTemplate=\"header\">\r\n\t\t\t<ng-content select=\"[header]\"></ng-content>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"footer\">\r\n\t\t\t<ng-content select=\"[footer]\"></ng-content>\r\n\t\t</ng-template>\r\n\t</p-calendar>\r\n</div>\r\n", styles: [".invalidCalendar{border:1px solid #e24c4c;border-radius:6px}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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", "stepYearPicker", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "variant", "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" }] }); }
114
+ }
115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: CalendarComponent, decorators: [{
116
+ type: Component,
117
+ args: [{ standalone: true, selector: 'aril-calendar[ngModel], aril-calendar[formControl], aril-calendar[formControlName]', imports: [ReactiveFormsModule, FormsModule, NgClass, CalendarModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<div [ngClass]=\"{ invalidCalendar: ngControl.dirty && ngControl.invalid }\">\r\n\t<p-calendar\r\n\t\t[showIcon]=\"true\"\r\n\t\t[dateFormat]=\"_dateFormat()\"\r\n\t\t[showButtonBar]=\"true\"\r\n\t\t[minDate]=\"_minJSDate()\"\r\n\t\t[maxDate]=\"_maxJSDate()\"\r\n\t\t[tabindex]=\"tabindex()\"\r\n\t\t[disabledDates]=\"_selectedDisabledDates()\"\r\n\t\t[selectionMode]=\"selectionMode()\"\r\n\t\t[disabled]=\"ngControl.control.disabled\"\r\n\t\t[readonlyInput]=\"false\"\r\n\t\t[showTime]=\"showTime()\"\r\n\t\t[showSeconds]=\"showSeconds()\"\r\n\t\t[inline]=\"inline()\"\r\n\t\t[showWeek]=\"showWeek()\"\r\n\t\t[showOnFocus]=\"showOnFocus()\"\r\n\t\t[firstDayOfWeek]=\"1\"\r\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t\t[tooltipOptions]=\"tooltipOptions\"\r\n\t\t[(ngModel)]=\"model\"\r\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event); setFormCtrl($event)\"\r\n\t\tappendTo=\"body\">\r\n\t\t<ng-template pTemplate=\"header\">\r\n\t\t\t<ng-content select=\"[header]\"></ng-content>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"footer\">\r\n\t\t\t<ng-content select=\"[footer]\"></ng-content>\r\n\t\t</ng-template>\r\n\t</p-calendar>\r\n</div>\r\n", styles: [".invalidCalendar{border:1px solid #e24c4c;border-radius:6px}\n"] }]
118
+ }], ctorParameters: () => [{ type: i1.PrimeNGConfig }] });
119
+
120
+ /**
121
+ * Generated bundle index. Do not edit.
122
+ */
123
+
124
+ export { CalendarComponent };
125
+ //# sourceMappingURL=aril-ui-calendar.mjs.map
@@ -0,0 +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":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\n\r\n/* TODO\r\n 1. Adjust different color or background for weekends\r\n*/\r\nimport { NgClass } from '@angular/common';\r\nimport { OnInit, runInInjectionContext } from '@angular/core';\r\nimport { AfterViewInit, Component, Injector, computed, inject, input } from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { PrimeNGConfig } from 'primeng/api';\r\nimport { CalendarModule } from 'primeng/calendar';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/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\tstandalone: true,\r\n\tselector: 'aril-calendar[ngModel], aril-calendar[formControl], aril-calendar[formControlName]',\r\n\ttemplateUrl: './calendar.component.html',\r\n\timports: [ReactiveFormsModule, FormsModule, NgClass, CalendarModule, TooltipModule, InputErrorMessagePipe],\r\n\thostDirectives: [ValueAccessorDirective],\r\n\tstyles: '.invalidCalendar { border:1px solid #e24c4c;border-radius: 6px; }'\r\n})\r\nexport class CalendarComponent extends BaseInputComponent implements OnInit, AfterViewInit {\r\n\tconstructor(private primeNgConfig: PrimeNGConfig) {\r\n\t\tsuper();\r\n\t\tthis.setLocale();\r\n\t}\r\n\r\n\tprivate readonly injector = inject(Injector);\r\n\r\n\tngOnInit(): void {\r\n\t\tif (typeof this.ngControl?.control?.value === 'number') \r\n\t\t\tthis.model = this.ngControl?.control?.value?.longToDate();\r\n\t}\r\n\r\n\tngAfterViewInit(): void {\r\n\t\trunInInjectionContext(this.injector, () => {\r\n\t\t\tthis.ngControl?.control?.valueChanges?.pipe(takeUntilDestroyed()).subscribe((value: number) => {\r\n\t\t\t\tif (Number(value)) {\r\n\t\t\t\t\tconst currentDate = this.model || new Date();\r\n\t\t\t\t\tcurrentDate.setTime(value);\r\n\t\t\t\t\tthis.model = currentDate;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tsetFormCtrl(value: Date) {\r\n\t\tthis.ngControl?.control?.setValue(value?.getTime());\r\n\t}\r\n\r\n\tmodel!: Date | undefined;\r\n\r\n\tminDate = input<number>();\r\n\tmaxDate = input<number>();\r\n\tinline = input<boolean>(false);\r\n\tshowIcon = input<boolean>(false);\r\n\tshowTime = input<boolean>(false);\r\n\tshowWeek = input<boolean>(false);\r\n\tshowSeconds = input<boolean>(false);\r\n\tdisabledDates = input<number[]>([]);\r\n\tview = input<View>('date');\r\n\tselectionMode = input<SelectionMode>('single');\r\n\ttabindex = input<number>();\r\n\r\n\tshowOnFocus= input<boolean>(false);\r\n\r\n\t_minJSDate = computed(() => {\r\n\t\treturn this.minDate()?.longToDate() as Date;\r\n\t});\r\n\r\n\t_maxJSDate = computed(() => {\r\n\t\treturn this.maxDate()?.longToDate() as Date;\r\n\t});\r\n\r\n\t_selectedDisabledDates = computed(() => {\r\n\t\treturn this.disabledDates()?.map((value: number) => value.longToDate() as Date);\r\n\t});\r\n\r\n\t_dateFormat = computed(() => {\r\n\t\tswitch (this.view()) {\r\n\t\t\tcase 'month':\r\n\t\t\t\treturn 'MM/yy';\r\n\t\t\tcase 'year':\r\n\t\t\t\treturn 'yy';\r\n\t\t\tdefault:\r\n\t\t\t\treturn 'dd/MM/yy';\r\n\t\t}\r\n\t});\r\n\r\n\t// isWeekend(date: any): boolean {\r\n\t// if (!date) {\r\n\t// return false;\r\n\t// }\r\n\r\n\t// if (this.view == 'date') {\r\n\t// const dayOfWeek = date.getDay();\r\n\t// return dayOfWeek === 5 || dayOfWeek === 6;\r\n\t// }\r\n\t// }\r\n\r\n\tsetLocale() {\r\n\t\tthis.primeNgConfig.setTranslation({\r\n\t\t\tfirstDayOfWeek: 0,\r\n\t\t\tdayNames: ['Pazar','Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'],\r\n\t\t\tdayNamesMin: ['Pzr','Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt'],\r\n\t\t\tdayNamesShort: ['Pzr', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt'],\r\n\t\t\tmonthNames: [\r\n\t\t\t\t'Ocak',\r\n\t\t\t\t'Şubat',\r\n\t\t\t\t'Mart',\r\n\t\t\t\t'Nisan',\r\n\t\t\t\t'Mayıs',\r\n\t\t\t\t'Haziran',\r\n\t\t\t\t'Temmuz',\r\n\t\t\t\t'Ağustos',\r\n\t\t\t\t'Eylül',\r\n\t\t\t\t'Ekim',\r\n\t\t\t\t'Kasım',\r\n\t\t\t\t'Aralık'\r\n\t\t\t],\r\n\t\t\tmonthNamesShort: ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'],\r\n\t\t\ttoday: 'Bugün',\r\n\t\t\tclear: 'Temizle',\r\n\t\t\tdateFormat: 'dd/mm/yy',\r\n\t\t\tweekHeader: 'Hafta'\r\n\t\t});\r\n\t}\r\n}\r\n","<div [ngClass]=\"{ invalidCalendar: ngControl.dirty && ngControl.invalid }\">\r\n\t<p-calendar\r\n\t\t[showIcon]=\"true\"\r\n\t\t[dateFormat]=\"_dateFormat()\"\r\n\t\t[showButtonBar]=\"true\"\r\n\t\t[minDate]=\"_minJSDate()\"\r\n\t\t[maxDate]=\"_maxJSDate()\"\r\n\t\t[tabindex]=\"tabindex()\"\r\n\t\t[disabledDates]=\"_selectedDisabledDates()\"\r\n\t\t[selectionMode]=\"selectionMode()\"\r\n\t\t[disabled]=\"ngControl.control.disabled\"\r\n\t\t[readonlyInput]=\"false\"\r\n\t\t[showTime]=\"showTime()\"\r\n\t\t[showSeconds]=\"showSeconds()\"\r\n\t\t[inline]=\"inline()\"\r\n\t\t[showWeek]=\"showWeek()\"\r\n\t\t[showOnFocus]=\"showOnFocus()\"\r\n\t\t[firstDayOfWeek]=\"1\"\r\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t\t[tooltipOptions]=\"tooltipOptions\"\r\n\t\t[(ngModel)]=\"model\"\r\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event); setFormCtrl($event)\"\r\n\t\tappendTo=\"body\">\r\n\t\t<ng-template pTemplate=\"header\">\r\n\t\t\t<ng-content select=\"[header]\"></ng-content>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"footer\">\r\n\t\t\t<ng-content select=\"[footer]\"></ng-content>\r\n\t\t</ng-template>\r\n\t</p-calendar>\r\n</div>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;AAEA;;AAEE;AAyBI,MAAO,iBAAkB,SAAQ,kBAAkB,CAAA;AACxD,IAAA,WAAA,CAAoB,aAA4B,EAAA;AAC/C,QAAA,KAAK,EAAE,CAAC;QADW,IAAa,CAAA,aAAA,GAAb,aAAa,CAAe;AAK/B,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;QAyB7C,IAAO,CAAA,OAAA,GAAG,KAAK,EAAU,CAAC;QAC1B,IAAO,CAAA,OAAA,GAAG,KAAK,EAAU,CAAC;AAC1B,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAU,KAAK,CAAC,CAAC;AAC/B,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,CAAC,CAAC;AACjC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,CAAC,CAAC;AACjC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,CAAC,CAAC;AACjC,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EAAA;;2FAI7F,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAR7B,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,YACN,oFAAoF,EAAA,OAAA,EAErF,CAAC,mBAAmB,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,qBAAqB,CAAC,EAC1F,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,+sCAAA,EAAA,MAAA,EAAA,CAAA,gEAAA,CAAA,EAAA,CAAA;;;AE1BzC;;AAEG;;;;"}
@@ -0,0 +1,47 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, Component } from '@angular/core';
3
+ import * as i2 from '@angular/forms';
4
+ import { ReactiveFormsModule } from '@angular/forms';
5
+ import * as i3 from 'primeng/checkbox';
6
+ import { CheckboxModule } from 'primeng/checkbox';
7
+ import * as i4 from 'primeng/tooltip';
8
+ import { TooltipModule } from 'primeng/tooltip';
9
+ import * as i1 from 'aril/ui/lib';
10
+ import { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
11
+ import * as i3$1 from 'primeng/tristatecheckbox';
12
+ import { TriStateCheckboxModule } from 'primeng/tristatecheckbox';
13
+
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]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\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", "autofocus", "trueValue", "falseValue", "variant"], 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" }] }); }
22
+ }
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: CheckboxComponent, decorators: [{
24
+ type: Component,
25
+ args: [{ standalone: true, selector: 'aril-checkbox[ngModel], aril-checkbox[formControl], aril-checkbox[formControlName]', imports: [ReactiveFormsModule, CheckboxModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<p-checkbox\r\n\t[label]=\"label()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[binary]=\"true\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\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]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\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", "variant", "tabindex", "inputId", "style", "styleClass", "label", "readonly", "checkboxTrueIcon", "checkboxFalseIcon", "autofocus"], 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" }] }); }
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], template: "<p-triStateCheckbox\r\n\t[label]=\"label()\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n</p-triStateCheckbox>\r\n" }]
40
+ }] });
41
+
42
+ /**
43
+ * Generated bundle index. Do not edit.
44
+ */
45
+
46
+ export { CheckboxComponent, TriStateCheckboxComponent };
47
+ //# sourceMappingURL=aril-ui-checkbox.mjs.map
@@ -0,0 +1 @@
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 { Component, input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { CheckboxModule } from 'primeng/checkbox';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-checkbox[ngModel], aril-checkbox[formControl], aril-checkbox[formControlName]',\r\n\ttemplateUrl: './check-box.component.html',\r\n\timports: [ReactiveFormsModule, CheckboxModule, TooltipModule, InputErrorMessagePipe],\r\n\thostDirectives: [ValueAccessorDirective]\r\n})\r\nexport class CheckboxComponent extends BaseInputComponent {\r\n\tlabel = input.required<string>();\r\n\ttabindex = input<number>();\r\n}\r\n","<p-checkbox\r\n\t[label]=\"label()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[binary]=\"true\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n</p-checkbox>\r\n","import { Component, input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { TooltipModule } from 'primeng/tooltip';\r\nimport { TriStateCheckboxModule } from 'primeng/tristatecheckbox';\r\n\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector:\r\n\t\t'aril-tri-state-checkbox[ngModel], aril-tri-state-checkbox[formControl], aril-tri-state-checkbox[formControlName]',\r\n\ttemplateUrl: './tri-state-checkbox.component.html',\r\n\timports: [ReactiveFormsModule, TriStateCheckboxModule, TooltipModule, InputErrorMessagePipe],\r\n\thostDirectives: [ValueAccessorDirective]\r\n})\r\nexport class TriStateCheckboxComponent extends BaseInputComponent {\r\n\tlabel = input.required<string>();\r\n\ttabindex = input<number>();\r\n}\r\n","<p-triStateCheckbox\r\n\t[label]=\"label()\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n</p-triStateCheckbox>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3"],"mappings":";;;;;;;;;;;;;AAeM,MAAO,iBAAkB,SAAQ,kBAAkB,CAAA;AAPzD,IAAA,WAAA,GAAA;;AAQC,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;QACjC,IAAQ,CAAA,QAAA,GAAG,KAAK,EAAU,CAAC;AAC3B,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,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EA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'@angular/core';
3
+ import { input, Component, ChangeDetectionStrategy } from '@angular/core';
4
+
5
+ class DxFieldComponent {
6
+ constructor() {
7
+ this.label = input();
8
+ this.color = input('#333');
9
+ this.labelWidth = input(30);
10
+ this.valueWidth = input(70);
11
+ }
12
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: DxFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
13
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: DxFieldComponent, isStandalone: true, selector: "aril-dx-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, labelWidth: { classPropertyName: "labelWidth", publicName: "labelWidth", isSignal: true, isRequired: false, transformFunction: null }, valueWidth: { classPropertyName: "valueWidth", publicName: "valueWidth", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"dx-field\">\r\n\t<div class=\"dx-field-label font-bold\" [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", dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
14
+ }
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: DxFieldComponent, decorators: [{
16
+ type: Component,
17
+ args: [{ standalone: true, selector: 'aril-dx-field', imports: [NgStyle], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"dx-field\">\r\n\t<div class=\"dx-field-label font-bold\" [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" }]
18
+ }] });
19
+
20
+ /**
21
+ * Generated bundle index. Do not edit.
22
+ */
23
+
24
+ export { DxFieldComponent };
25
+ //# 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@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-dx-field',\r\n\ttemplateUrl: './dx-field.component.html',\r\n\timports: [NgStyle],\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class DxFieldComponent {\r\n\tlabel = input<string>();\r\n\tcolor = input<string>('#333');\r\n\tlabelWidth = input<number>(30);\r\n\tvalueWidth = input<number>(70);\r\n}\r\n","<div class=\"dx-field\">\r\n\t<div class=\"dx-field-label font-bold\" [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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAUa,gBAAgB,CAAA;AAP7B,IAAA,WAAA,GAAA;QAQC,IAAK,CAAA,KAAA,GAAG,KAAK,EAAU,CAAC;AACxB,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAS,MAAM,CAAC,CAAC;AAC9B,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AA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AAA,EAAA,CAAC,OAAO,CAAC,EAAA,eAAA,EACD,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,gTAAA,EAAA,CAAA;;;AERhD;;AAEG;;;;"}
@@ -0,0 +1,46 @@
1
+ import { NgIf, NgTemplateOutlet } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { input, effect, Component, ChangeDetectionStrategy, HostBinding } from '@angular/core';
4
+ import { DxFieldComponent } from 'aril/ui/dxField';
5
+
6
+ class FieldComponent {
7
+ constructor() {
8
+ this.label = input();
9
+ this.color = input('#333');
10
+ this.labelWidth = input(30);
11
+ this.valueWidth = input(70);
12
+ this.labelPos = input('top');
13
+ this.markAsRequired = input(false);
14
+ this.cols = input.required({});
15
+ this.hostClass = '';
16
+ this.padding = '.5rem';
17
+ effect(() => {
18
+ if (this.cols()) {
19
+ this.hostClass = Object.entries(this.cols()).reduce((acc, [key, value]) => {
20
+ if (key === 'default')
21
+ return `${acc} col-${value}`;
22
+ return `${acc} ${key}:col-${value}`;
23
+ }, '');
24
+ }
25
+ });
26
+ }
27
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
28
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: FieldComponent, isStandalone: true, selector: "aril-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, labelWidth: { classPropertyName: "labelWidth", publicName: "labelWidth", isSignal: true, isRequired: false, transformFunction: null }, valueWidth: { classPropertyName: "valueWidth", publicName: "valueWidth", isSignal: true, isRequired: false, transformFunction: null }, labelPos: { classPropertyName: "labelPos", publicName: "labelPos", isSignal: true, isRequired: false, transformFunction: null }, markAsRequired: { classPropertyName: "markAsRequired", publicName: "markAsRequired", isSignal: true, isRequired: false, transformFunction: null }, cols: { classPropertyName: "cols", publicName: "cols", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "class": "this.hostClass", "style.padding": "this.padding" } }, ngImport: i0, template: "<ng-template #content>\r\n\t@if (label() && labelPos() === 'top') {\r\n\t\t<div class=\"mb-1\">\r\n\t\t\t<span class=\"font-bold\">\r\n\t\t\t\t@if (markAsRequired()) {\r\n\t\t\t\t\t*\r\n\t\t\t\t}\r\n\t\t\t\t{{ label() }}\r\n\t\t\t</span>\r\n\t\t</div>\r\n\t}\r\n\t<ng-content></ng-content>\r\n</ng-template>\r\n\r\n<aril-dx-field\r\n\t*ngIf=\"labelPos() === 'left'; else content\"\r\n\t[label]=\"label()\"\r\n\t[color]=\"color()\"\r\n\t[labelWidth]=\"labelWidth()\"\r\n\t[valueWidth]=\"valueWidth()\">\r\n\t<ng-container *ngTemplateOutlet=\"content\"></ng-container>\r\n</aril-dx-field>\r\n", dependencies: [{ kind: "component", type: DxFieldComponent, selector: "aril-dx-field", inputs: ["label", "color", "labelWidth", "valueWidth"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
29
+ }
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FieldComponent, decorators: [{
31
+ type: Component,
32
+ args: [{ standalone: true, selector: 'aril-field', imports: [DxFieldComponent, NgIf, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #content>\r\n\t@if (label() && labelPos() === 'top') {\r\n\t\t<div class=\"mb-1\">\r\n\t\t\t<span class=\"font-bold\">\r\n\t\t\t\t@if (markAsRequired()) {\r\n\t\t\t\t\t*\r\n\t\t\t\t}\r\n\t\t\t\t{{ label() }}\r\n\t\t\t</span>\r\n\t\t</div>\r\n\t}\r\n\t<ng-content></ng-content>\r\n</ng-template>\r\n\r\n<aril-dx-field\r\n\t*ngIf=\"labelPos() === 'left'; else content\"\r\n\t[label]=\"label()\"\r\n\t[color]=\"color()\"\r\n\t[labelWidth]=\"labelWidth()\"\r\n\t[valueWidth]=\"valueWidth()\">\r\n\t<ng-container *ngTemplateOutlet=\"content\"></ng-container>\r\n</aril-dx-field>\r\n" }]
33
+ }], ctorParameters: () => [], propDecorators: { hostClass: [{
34
+ type: HostBinding,
35
+ args: ['class']
36
+ }], padding: [{
37
+ type: HostBinding,
38
+ args: ['style.padding']
39
+ }] } });
40
+
41
+ /**
42
+ * Generated bundle index. Do not edit.
43
+ */
44
+
45
+ export { FieldComponent };
46
+ //# sourceMappingURL=aril-ui-field.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-ui-field.mjs","sources":["../../projects/aril/ui/field/src/field.component.ts","../../projects/aril/ui/field/src/field.component.html","../../projects/aril/ui/field/aril-ui-field.ts"],"sourcesContent":["import { NgIf, NgTemplateOutlet } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, HostBinding, effect, input } from '@angular/core';\r\n\r\nimport { DxFieldComponent } from 'aril/ui/dxField';\r\nimport { Types } from 'aril/util/lib';\r\n\r\ntype LabelPositions = 'top' | 'left';\r\n\r\ninterface ColumnSizeTypes {\r\n\txl?: Types.NumberRange<1, 13>;\r\n\tlg?: Types.NumberRange<1, 13>;\r\n\tmd?: Types.NumberRange<1, 13>;\r\n\tsm?: Types.NumberRange<1, 13>;\r\n\tdefault?: Types.NumberRange<1, 13>;\r\n}\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-field',\r\n\ttemplateUrl: './field.component.html',\r\n\timports: [DxFieldComponent, NgIf, NgTemplateOutlet],\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FieldComponent {\r\n\tconstructor() {\r\n\t\teffect(() => {\r\n\t\t\tif (this.cols()) {\r\n\t\t\t\tthis.hostClass = Object.entries(this.cols()).reduce((acc, [key, value]) => {\r\n\t\t\t\t\tif (key === 'default') return `${acc} col-${value}`;\r\n\t\t\t\t\treturn `${acc} ${key}:col-${value}`;\r\n\t\t\t\t}, '');\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tlabel = input<string>();\r\n\tcolor = input<string>('#333');\r\n\tlabelWidth = input<number>(30);\r\n\tvalueWidth = input<number>(70);\r\n\tlabelPos = input<LabelPositions>('top');\r\n\tmarkAsRequired = input<boolean>(false);\r\n\tcols = input.required<ColumnSizeTypes>({});\r\n\r\n\t@HostBinding('class') hostClass = '';\r\n\t@HostBinding('style.padding') padding = '.5rem';\r\n}\r\n","<ng-template #content>\r\n\t@if (label() && labelPos() === 'top') {\r\n\t\t<div class=\"mb-1\">\r\n\t\t\t<span class=\"font-bold\">\r\n\t\t\t\t@if (markAsRequired()) {\r\n\t\t\t\t\t*\r\n\t\t\t\t}\r\n\t\t\t\t{{ label() }}\r\n\t\t\t</span>\r\n\t\t</div>\r\n\t}\r\n\t<ng-content></ng-content>\r\n</ng-template>\r\n\r\n<aril-dx-field\r\n\t*ngIf=\"labelPos() === 'left'; else content\"\r\n\t[label]=\"label()\"\r\n\t[color]=\"color()\"\r\n\t[labelWidth]=\"labelWidth()\"\r\n\t[valueWidth]=\"valueWidth()\">\r\n\t<ng-container *ngTemplateOutlet=\"content\"></ng-container>\r\n</aril-dx-field>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAuBa,cAAc,CAAA;AAC1B,IAAA,WAAA,GAAA;QAWA,IAAK,CAAA,KAAA,GAAG,KAAK,EAAU,CAAC;AACxB,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAS,MAAM,CAAC,CAAC;AAC9B,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAC/B,QAA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A,CAAA,OAAA,EAAA,OAAA,EAAA,YAAA,EAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,IAAI,6FAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAGtC,cAAc,EAAA,UAAA,EAAA,CAAA;kBAP1B,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,YAAY,EAEb,OAAA,EAAA,CAAC,gBAAgB,EAAE,IAAI,EAAE,gBAAgB,CAAC,EAClC,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,glBAAA,EAAA,CAAA;wDAsBzB,SAAS,EAAA,CAAA;sBAA9B,WAAW;uBAAC,OAAO,CAAA;gBACU,OAAO,EAAA,CAAA;sBAApC,WAAW;uBAAC,eAAe,CAAA;;;AE5C7B;;AAEG;;;;"}
@@ -0,0 +1,68 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, EventEmitter, Component, Output } from '@angular/core';
3
+ import * as i1 from 'primeng/api';
4
+ import { MessageService } from 'primeng/api';
5
+ import * as i2 from 'primeng/fileupload';
6
+ import { FileUploadModule } from 'primeng/fileupload';
7
+
8
+ class FileUploadComponent {
9
+ constructor(messageService) {
10
+ this.messageService = messageService;
11
+ this.name = input();
12
+ this.url = input.required();
13
+ this.multiple = input(false);
14
+ this.accept = input('.xlsx');
15
+ this.disabled = input(false);
16
+ this.auto = input(false);
17
+ this.maxFileSize = input();
18
+ this.tabindex = input();
19
+ this.withCredentials = input(false);
20
+ this.showUploadButton = input(true);
21
+ this.showCancelButton = input(true);
22
+ this.cancelLabel = input('Temizle');
23
+ this.chooseLabel = input('Dosya Seç');
24
+ this.uploadLabel = input('Dosya Yükle');
25
+ this.invalidFileTypeMessageSummary = input('Geçersiz dosya türü');
26
+ this.invalidFileTypeMessageDetail = input('Seçilen dosya türü desteklenmiyor.');
27
+ this.invalidFileSizeMessageSummary = input('Dosya boyutu çok büyük');
28
+ this.invalidFileSizeMessageDetail = input('Dosya boyutu izin verilen maksimum boyuttan daha büyük.');
29
+ this.beforeSend = new EventEmitter();
30
+ this.upload = new EventEmitter();
31
+ this.errors = new EventEmitter();
32
+ this.selects = new EventEmitter();
33
+ this.clear = new EventEmitter();
34
+ this.uploadedFiles = [];
35
+ }
36
+ onUpload(event) {
37
+ this.upload.emit(event);
38
+ this.uploadedFiles = event.files;
39
+ this.messageService.add({ key: 'toast-root', severity: 'success', summary: 'Dosya başarıyla yüklendi.' });
40
+ }
41
+ onError(event) {
42
+ this.errors.emit(event);
43
+ this.messageService.add({ key: 'toast-root', severity: 'error', summary: 'Dosya yüklenemedi.' });
44
+ }
45
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FileUploadComponent, deps: [{ token: i1.MessageService }], target: i0.ɵɵFactoryTarget.Component }); }
46
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: FileUploadComponent, isStandalone: true, selector: "aril-file-upload", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: true, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, auto: { classPropertyName: "auto", publicName: "auto", isSignal: true, isRequired: false, transformFunction: null }, maxFileSize: { classPropertyName: "maxFileSize", publicName: "maxFileSize", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, withCredentials: { classPropertyName: "withCredentials", publicName: "withCredentials", isSignal: true, isRequired: false, transformFunction: null }, showUploadButton: { classPropertyName: "showUploadButton", publicName: "showUploadButton", isSignal: true, isRequired: false, transformFunction: null }, showCancelButton: { classPropertyName: "showCancelButton", publicName: "showCancelButton", isSignal: true, isRequired: false, transformFunction: null }, cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: false, transformFunction: null }, chooseLabel: { classPropertyName: "chooseLabel", publicName: "chooseLabel", isSignal: true, isRequired: false, transformFunction: null }, uploadLabel: { classPropertyName: "uploadLabel", publicName: "uploadLabel", isSignal: true, isRequired: false, transformFunction: null }, invalidFileTypeMessageSummary: { classPropertyName: "invalidFileTypeMessageSummary", publicName: "invalidFileTypeMessageSummary", isSignal: true, isRequired: false, transformFunction: null }, invalidFileTypeMessageDetail: { classPropertyName: "invalidFileTypeMessageDetail", publicName: "invalidFileTypeMessageDetail", isSignal: true, isRequired: false, transformFunction: null }, invalidFileSizeMessageSummary: { classPropertyName: "invalidFileSizeMessageSummary", publicName: "invalidFileSizeMessageSummary", isSignal: true, isRequired: false, transformFunction: null }, invalidFileSizeMessageDetail: { classPropertyName: "invalidFileSizeMessageDetail", publicName: "invalidFileSizeMessageDetail", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { beforeSend: "beforeSend", upload: "upload", errors: "errors", selects: "selects", clear: "clear" }, providers: [MessageService], ngImport: i0, template: "<p-fileUpload\r\n\t[name]=\"name()\"\r\n\t[url]=\"url()\"\r\n\tmethod=\"post\"\r\n\t[multiple]=\"multiple()\"\r\n\t[accept]=\"accept()\"\r\n\t[disabled]=\"disabled()\"\r\n\t[auto]=\"auto()\"\r\n\t[maxFileSize]=\"maxFileSize()\"\r\n\t[tabindex]=\"tabindex\"\r\n\t[withCredentials]=\"withCredentials()\"\r\n\t[showUploadButton]=\"showUploadButton()\"\r\n\t[showCancelButton]=\"showCancelButton()\"\r\n\t[chooseLabel]=\"chooseLabel()\"\r\n\t[cancelLabel]=\"cancelLabel()\"\r\n\t[uploadLabel]=\"uploadLabel()\"\r\n\t[invalidFileTypeMessageSummary]=\"invalidFileTypeMessageSummary()\"\r\n\t[invalidFileTypeMessageDetail]=\"invalidFileTypeMessageDetail()\"\r\n\t[invalidFileSizeMessageSummary]=\"invalidFileSizeMessageSummary()\"\r\n\t[invalidFileSizeMessageDetail]=\"invalidFileSizeMessageDetail()\"\r\n\t(onBeforeSend)=\"beforeSend.emit($event)\"\r\n\t(onUpload)=\"onUpload($event)\"\r\n\t(onError)=\"onError($event)\"\r\n\t(onSelect)=\"selects.emit($event)\"\r\n\t(onClear)=\"clear.emit($event)\">\r\n\t<ng-template pTemplate=\"content\">\r\n\t\t@if (uploadedFiles.length) {\r\n\t\t\t<div class=\"flex flex-column\">\r\n\t\t\t\t@for (file of uploadedFiles; track file) {\r\n\t\t\t\t\t<div class=\"mt-2\">\r\n\t\t\t\t\t\t<i class=\"pi pi-file-excel\" style=\"color: slateblue; font-size: 1.4rem\"></i>\r\n\t\t\t\t\t\t{{ file.name }} - {{ file.size }} bytes\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t}\r\n\t</ng-template>\r\n</p-fileUpload>\r\n", dependencies: [{ kind: "ngmodule", type: FileUploadModule }, { kind: "component", type: i2.FileUpload, selector: "p-fileUpload", inputs: ["name", "url", "method", "multiple", "accept", "disabled", "auto", "withCredentials", "maxFileSize", "invalidFileSizeMessageSummary", "invalidFileSizeMessageDetail", "invalidFileTypeMessageSummary", "invalidFileTypeMessageDetail", "invalidFileLimitMessageDetail", "invalidFileLimitMessageSummary", "style", "styleClass", "previewWidth", "chooseLabel", "uploadLabel", "cancelLabel", "chooseIcon", "uploadIcon", "cancelIcon", "showUploadButton", "showCancelButton", "mode", "headers", "customUpload", "fileLimit", "uploadStyleClass", "cancelStyleClass", "removeStyleClass", "chooseStyleClass", "files"], outputs: ["onBeforeUpload", "onSend", "onUpload", "onError", "onClear", "onRemove", "onSelect", "onProgress", "uploadHandler", "onImageError", "onRemoveUploadedFile"] }, { kind: "directive", type: i1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }] }); }
47
+ }
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FileUploadComponent, decorators: [{
49
+ type: Component,
50
+ args: [{ standalone: true, selector: 'aril-file-upload', imports: [FileUploadModule], providers: [MessageService], template: "<p-fileUpload\r\n\t[name]=\"name()\"\r\n\t[url]=\"url()\"\r\n\tmethod=\"post\"\r\n\t[multiple]=\"multiple()\"\r\n\t[accept]=\"accept()\"\r\n\t[disabled]=\"disabled()\"\r\n\t[auto]=\"auto()\"\r\n\t[maxFileSize]=\"maxFileSize()\"\r\n\t[tabindex]=\"tabindex\"\r\n\t[withCredentials]=\"withCredentials()\"\r\n\t[showUploadButton]=\"showUploadButton()\"\r\n\t[showCancelButton]=\"showCancelButton()\"\r\n\t[chooseLabel]=\"chooseLabel()\"\r\n\t[cancelLabel]=\"cancelLabel()\"\r\n\t[uploadLabel]=\"uploadLabel()\"\r\n\t[invalidFileTypeMessageSummary]=\"invalidFileTypeMessageSummary()\"\r\n\t[invalidFileTypeMessageDetail]=\"invalidFileTypeMessageDetail()\"\r\n\t[invalidFileSizeMessageSummary]=\"invalidFileSizeMessageSummary()\"\r\n\t[invalidFileSizeMessageDetail]=\"invalidFileSizeMessageDetail()\"\r\n\t(onBeforeSend)=\"beforeSend.emit($event)\"\r\n\t(onUpload)=\"onUpload($event)\"\r\n\t(onError)=\"onError($event)\"\r\n\t(onSelect)=\"selects.emit($event)\"\r\n\t(onClear)=\"clear.emit($event)\">\r\n\t<ng-template pTemplate=\"content\">\r\n\t\t@if (uploadedFiles.length) {\r\n\t\t\t<div class=\"flex flex-column\">\r\n\t\t\t\t@for (file of uploadedFiles; track file) {\r\n\t\t\t\t\t<div class=\"mt-2\">\r\n\t\t\t\t\t\t<i class=\"pi pi-file-excel\" style=\"color: slateblue; font-size: 1.4rem\"></i>\r\n\t\t\t\t\t\t{{ file.name }} - {{ file.size }} bytes\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t}\r\n\t</ng-template>\r\n</p-fileUpload>\r\n" }]
51
+ }], ctorParameters: () => [{ type: i1.MessageService }], propDecorators: { beforeSend: [{
52
+ type: Output
53
+ }], upload: [{
54
+ type: Output
55
+ }], errors: [{
56
+ type: Output
57
+ }], selects: [{
58
+ type: Output
59
+ }], clear: [{
60
+ type: Output
61
+ }] } });
62
+
63
+ /**
64
+ * Generated bundle index. Do not edit.
65
+ */
66
+
67
+ export { FileUploadComponent };
68
+ //# sourceMappingURL=aril-ui-fileUpload.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-ui-fileUpload.mjs","sources":["../../projects/aril/ui/fileUpload/src/file-upload.component.ts","../../projects/aril/ui/fileUpload/src/file-upload.component.html","../../projects/aril/ui/fileUpload/aril-ui-fileUpload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { HttpEvent } from '@angular/common/http';\r\nimport { Component, EventEmitter, Output, input } from '@angular/core';\r\n\r\nimport { MessageService } from 'primeng/api';\r\nimport { FileUploadModule } from 'primeng/fileupload';\r\n\r\ninterface UploadEvent {\r\n\toriginalEvent: HttpEvent<any>;\r\n\tfiles: File[];\r\n}\r\n\r\ninterface UploadFile {\r\n\tname: string;\r\n\tsize: number;\r\n\ttype: string;\r\n\tobjectURL?: string;\r\n}\r\n\r\ninterface FileUploadErrorEvent {\r\n\tfiles: File[];\r\n\terror: ErrorEvent;\r\n}\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-file-upload',\r\n\ttemplateUrl: './file-upload.component.html',\r\n\timports: [FileUploadModule],\r\n\tproviders: [MessageService]\r\n})\r\nexport class FileUploadComponent {\r\n\tconstructor(private messageService: MessageService) {}\r\n\r\n\tname = input<string>();\r\n\turl = input.required<string>();\r\n\tmultiple = input(false);\r\n\taccept = input<string>('.xlsx');\r\n\tdisabled = input(false);\r\n\tauto = input(false);\r\n\tmaxFileSize = input<number>();\r\n\ttabindex = input<number>();\r\n\twithCredentials = input(false);\r\n\tshowUploadButton = input(true);\r\n\tshowCancelButton = input(true);\r\n\tcancelLabel = input('Temizle');\r\n\tchooseLabel = input('Dosya Seç');\r\n\tuploadLabel = input('Dosya Yükle');\r\n\tinvalidFileTypeMessageSummary = input('Geçersiz dosya türü');\r\n\tinvalidFileTypeMessageDetail = input('Seçilen dosya türü desteklenmiyor.');\r\n\tinvalidFileSizeMessageSummary = input('Dosya boyutu çok büyük');\r\n\tinvalidFileSizeMessageDetail = input('Dosya boyutu izin verilen maksimum boyuttan daha büyük.');\r\n\r\n\t@Output() beforeSend: EventEmitter<unknown> = new EventEmitter();\r\n\t@Output() upload: EventEmitter<unknown> = new EventEmitter();\r\n\t@Output() errors: EventEmitter<unknown> = new EventEmitter();\r\n\t@Output() selects: EventEmitter<unknown> = new EventEmitter();\r\n\t@Output() clear: EventEmitter<unknown> = new EventEmitter();\r\n\r\n\tuploadedFiles: UploadFile[] = [];\r\n\r\n\tonUpload(event: UploadEvent) {\r\n\t\tthis.upload.emit(event);\r\n\t\tthis.uploadedFiles = event.files;\r\n\t\tthis.messageService.add({ key: 'toast-root', severity: 'success', summary: 'Dosya başarıyla yüklendi.' });\r\n\t}\r\n\r\n\tonError(event: any) {\r\n\t\tthis.errors.emit(event);\r\n\t\tthis.messageService.add({ key: 'toast-root', severity: 'error', summary: 'Dosya yüklenemedi.' });\r\n\t}\r\n}\r\n","<p-fileUpload\r\n\t[name]=\"name()\"\r\n\t[url]=\"url()\"\r\n\tmethod=\"post\"\r\n\t[multiple]=\"multiple()\"\r\n\t[accept]=\"accept()\"\r\n\t[disabled]=\"disabled()\"\r\n\t[auto]=\"auto()\"\r\n\t[maxFileSize]=\"maxFileSize()\"\r\n\t[tabindex]=\"tabindex\"\r\n\t[withCredentials]=\"withCredentials()\"\r\n\t[showUploadButton]=\"showUploadButton()\"\r\n\t[showCancelButton]=\"showCancelButton()\"\r\n\t[chooseLabel]=\"chooseLabel()\"\r\n\t[cancelLabel]=\"cancelLabel()\"\r\n\t[uploadLabel]=\"uploadLabel()\"\r\n\t[invalidFileTypeMessageSummary]=\"invalidFileTypeMessageSummary()\"\r\n\t[invalidFileTypeMessageDetail]=\"invalidFileTypeMessageDetail()\"\r\n\t[invalidFileSizeMessageSummary]=\"invalidFileSizeMessageSummary()\"\r\n\t[invalidFileSizeMessageDetail]=\"invalidFileSizeMessageDetail()\"\r\n\t(onBeforeSend)=\"beforeSend.emit($event)\"\r\n\t(onUpload)=\"onUpload($event)\"\r\n\t(onError)=\"onError($event)\"\r\n\t(onSelect)=\"selects.emit($event)\"\r\n\t(onClear)=\"clear.emit($event)\">\r\n\t<ng-template pTemplate=\"content\">\r\n\t\t@if (uploadedFiles.length) {\r\n\t\t\t<div class=\"flex flex-column\">\r\n\t\t\t\t@for (file of uploadedFiles; track file) {\r\n\t\t\t\t\t<div class=\"mt-2\">\r\n\t\t\t\t\t\t<i class=\"pi pi-file-excel\" style=\"color: slateblue; font-size: 1.4rem\"></i>\r\n\t\t\t\t\t\t{{ file.name }} - {{ file.size }} bytes\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t}\r\n\t</ng-template>\r\n</p-fileUpload>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MA+Ba,mBAAmB,CAAA;AAC/B,IAAA,WAAA,CAAoB,cAA8B,EAAA;QAA9B,IAAc,CAAA,cAAA,GAAd,cAAc,CAAgB;QAElD,IAAI,CAAA,IAAA,GAAG,KAAK,EAAU,CAAC;AACvB,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;AAC/B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;;;;"}
@@ -0,0 +1,86 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, EventEmitter, inject, Component, ChangeDetectionStrategy, Output, NgModule } from '@angular/core';
3
+ import * as i1 from 'aril/ui/button';
4
+ import { ButtonComponent } from 'aril/ui/button';
5
+ import { MessageService } from 'primeng/api';
6
+ import * as i1$1 from 'aril/ui/lib';
7
+ import { checkValidInputs, FlexGridDirective, FormErrorMessageDirective } from 'aril/ui/lib';
8
+
9
+ class FormSubmitButtonComponent extends ButtonComponent {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.formGroup = input.required();
13
+ this.validEvent = new EventEmitter();
14
+ this.inValidEvent = new EventEmitter();
15
+ this.messageService = inject(MessageService);
16
+ }
17
+ submit() {
18
+ checkValidInputs(this.formGroup());
19
+ if (this.formGroup().valid)
20
+ this.validEvent.emit();
21
+ else {
22
+ this.messageService.add({
23
+ key: 'toast-root',
24
+ severity: 'warn ',
25
+ summary: 'Form Hatası',
26
+ detail: 'Lütfen formdaki eksikleri gideriniz'
27
+ });
28
+ this.inValidEvent.emit();
29
+ }
30
+ }
31
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FormSubmitButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
32
+ 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\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.ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "outlined", "badge", "size", "icon", "color"], outputs: ["clickEvent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
33
+ }
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FormSubmitButtonComponent, decorators: [{
35
+ type: Component,
36
+ args: [{ selector: 'aril-form-submit:not([click])', 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" }]
37
+ }], propDecorators: { validEvent: [{
38
+ type: Output
39
+ }], inValidEvent: [{
40
+ type: Output
41
+ }] } });
42
+
43
+ class FormComponent {
44
+ constructor() {
45
+ this.formGroup = input.required();
46
+ }
47
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
48
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: FormComponent, selector: "aril-form", inputs: { formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: true, transformFunction: null } }, hostDirectives: [{ directive: i1$1.FlexGridDirective }, { directive: i1$1.FormErrorMessageDirective, inputs: ["formErrorMessage", "formGroup"] }], ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
49
+ }
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FormComponent, decorators: [{
51
+ type: Component,
52
+ args: [{
53
+ selector: 'aril-form',
54
+ template: ` <ng-content></ng-content> `,
55
+ hostDirectives: [
56
+ FlexGridDirective,
57
+ {
58
+ directive: FormErrorMessageDirective,
59
+ inputs: ['formErrorMessage: formGroup']
60
+ }
61
+ ],
62
+ changeDetection: ChangeDetectionStrategy.OnPush
63
+ }]
64
+ }] });
65
+
66
+ const components = [FormComponent, FormSubmitButtonComponent];
67
+ class ARiLFormModule {
68
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ARiLFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
69
+ 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] }); }
70
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ARiLFormModule, imports: [ButtonComponent] }); }
71
+ }
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ARiLFormModule, decorators: [{
73
+ type: NgModule,
74
+ args: [{
75
+ imports: [ButtonComponent],
76
+ exports: [components],
77
+ declarations: [components]
78
+ }]
79
+ }] });
80
+
81
+ /**
82
+ * Generated bundle index. Do not edit.
83
+ */
84
+
85
+ export { ARiLFormModule, FormComponent, FormSubmitButtonComponent };
86
+ //# sourceMappingURL=aril-ui-form.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-ui-form.mjs","sources":["../../projects/aril/ui/form/src/form-submit-button.component.ts","../../projects/aril/ui/form/src/form-submit-button.component.html","../../projects/aril/ui/form/src/form.component.ts","../../projects/aril/ui/form/index.ts","../../projects/aril/ui/form/aril-ui-form.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Output, inject, input } 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\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","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@Component({\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\tformGroup = input.required<FormGroup>();\r\n}\r\n","import { NgModule } from '@angular/core';\r\n\r\nimport { ButtonComponent } from 'aril/ui/button';\r\n\r\nimport { FormSubmitButtonComponent } from './src/form-submit-button.component';\r\nimport { FormComponent } from './src/form.component';\r\n\r\nexport * from './src/form.component';\r\nexport * from './src/form-submit-button.component';\r\n\r\nconst components = [FormComponent, FormSubmitButtonComponent];\r\n\r\n@NgModule({\r\n\timports: [ButtonComponent],\r\n\texports: [components],\r\n\tdeclarations: [components]\r\n})\r\nexport class ARiLFormModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAaM,MAAO,yBAA0B,SAAQ,eAAe,CAAA;AAL9D,IAAA,WAAA,GAAA;;AAMC,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAa,CAAC;AAE9B,QAAA,IAAA,CAAA,UAAU,GAAwB,IAAI,YAAY,EAAS,CAAC;AAC5D,QAAA,IAAA,CAAA,YAAY,GAAwB,IAAI,YAAY,EAAS,CAAC;AAExE,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAgBxC,KAAA;IAdA,MAAM,GAAA;AACL,QAAA,gBAAgB,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;AAEnC,QAAA,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK;AAAE,YAAA,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;aAC9C;AACJ,YAAA,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC;AACvB,gBAAA,GAAG,EAAE,YAA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