aril 0.0.2 → 0.0.3

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 (207) hide show
  1. package/README.md +20 -7
  2. package/esm2022/http/index.mjs +5 -1
  3. package/esm2022/http/lib/enums.mjs +1 -2
  4. package/esm2022/http/lib/interfaces.mjs +3 -1
  5. package/esm2022/http/src/httpClient.mjs +2 -1
  6. package/esm2022/http/src/serviceBase.mjs +10 -10
  7. package/esm2022/ui/badge/aril-ui-badge.mjs +5 -0
  8. package/esm2022/ui/badge/index.mjs +2 -0
  9. package/esm2022/ui/badge/src/badge.component.mjs +25 -0
  10. package/esm2022/ui/button/index.mjs +2 -1
  11. package/esm2022/ui/button/src/button.component.mjs +45 -7
  12. package/esm2022/ui/button/src/split-button.component.mjs +17 -0
  13. package/esm2022/ui/calendar/src/calendar.component.mjs +80 -8
  14. package/esm2022/ui/checkbox/index.mjs +2 -2
  15. package/esm2022/ui/checkbox/src/check-box.component.mjs +26 -0
  16. package/esm2022/ui/confirmPopup/aril-ui-confirmPopup.mjs +5 -0
  17. package/esm2022/ui/confirmPopup/index.mjs +2 -0
  18. package/esm2022/ui/confirmPopup/src/confirm-popup.component.mjs +40 -0
  19. package/esm2022/ui/dialog/aril-ui-dialog.mjs +5 -0
  20. package/esm2022/ui/dialog/index.mjs +2 -0
  21. package/esm2022/ui/dialog/src/dialog.component.mjs +56 -0
  22. package/esm2022/ui/dxField/aril-ui-dxField.mjs +5 -0
  23. package/esm2022/ui/dxField/index.mjs +2 -0
  24. package/esm2022/ui/dxField/src/dx-field.component.mjs +27 -0
  25. package/esm2022/ui/field/aril-ui-field.mjs +5 -0
  26. package/esm2022/ui/field/index.mjs +2 -0
  27. package/esm2022/ui/field/src/field.component.mjs +48 -0
  28. package/esm2022/ui/fileUpload/aril-ui-fileUpload.mjs +5 -0
  29. package/esm2022/ui/fileUpload/index.mjs +2 -0
  30. package/esm2022/ui/fileUpload/src/file-upload.component.mjs +85 -0
  31. package/esm2022/ui/form/aril-ui-form.mjs +5 -0
  32. package/esm2022/ui/form/index.mjs +3 -0
  33. package/esm2022/ui/form/src/form-submit-button.component.mjs +41 -0
  34. package/esm2022/ui/form/src/form.component.mjs +28 -0
  35. package/esm2022/ui/lib/index.mjs +13 -3
  36. package/esm2022/ui/lib/src/form/form-error-message.component.mjs +33 -0
  37. package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +35 -0
  38. package/esm2022/ui/lib/src/grid/flex-grid.directive.mjs +21 -0
  39. package/esm2022/ui/lib/src/input/baseInput.mjs +24 -0
  40. package/esm2022/ui/lib/src/input/common-input-validators.service.mjs +3 -3
  41. package/esm2022/ui/lib/src/input/dx-input-error-message.pipe.mjs +22 -0
  42. package/esm2022/ui/lib/src/input/input-disabled.directive.mjs +3 -3
  43. package/esm2022/ui/lib/src/input/input-error-message.pipe.mjs +41 -0
  44. package/esm2022/ui/lib/src/input/input-transforms.mjs +8 -0
  45. package/esm2022/ui/lib/src/input/value-accessor.directive.mjs +32 -0
  46. package/esm2022/ui/mask/aril-ui-mask.mjs +5 -0
  47. package/esm2022/ui/mask/index.mjs +2 -0
  48. package/esm2022/ui/mask/src/mask.component.mjs +44 -0
  49. package/esm2022/ui/number/aril-ui-number.mjs +5 -0
  50. package/esm2022/ui/number/index.mjs +2 -0
  51. package/esm2022/ui/number/src/number.component.mjs +58 -0
  52. package/esm2022/ui/overlayPanel/aril-ui-overlayPanel.mjs +5 -0
  53. package/esm2022/ui/overlayPanel/index.mjs +2 -0
  54. package/esm2022/ui/overlayPanel/src/overlay-panel.component.mjs +37 -0
  55. package/esm2022/ui/panel/aril-ui-panel.mjs +5 -0
  56. package/esm2022/ui/panel/index.mjs +2 -0
  57. package/esm2022/ui/panel/src/panel.component.mjs +32 -0
  58. package/esm2022/ui/password/aril-ui-password.mjs +5 -0
  59. package/esm2022/ui/password/index.mjs +2 -0
  60. package/esm2022/ui/password/src/password.component.mjs +32 -0
  61. package/esm2022/ui/radioButton/aril-ui-radioButton.mjs +5 -0
  62. package/esm2022/ui/radioButton/index.mjs +2 -0
  63. package/esm2022/ui/radioButton/src/radio-button.component.mjs +35 -0
  64. package/esm2022/ui/selectBox/aril-ui-selectBox.mjs +5 -0
  65. package/esm2022/ui/selectBox/index.mjs +2 -0
  66. package/esm2022/ui/selectBox/src/select-box.component.mjs +41 -0
  67. package/esm2022/ui/switch/aril-ui-switch.mjs +5 -0
  68. package/esm2022/ui/switch/index.mjs +2 -0
  69. package/esm2022/ui/switch/src/switch.component.mjs +19 -0
  70. package/esm2022/ui/tagBox/aril-ui-tagBox.mjs +5 -0
  71. package/esm2022/ui/tagBox/index.mjs +2 -0
  72. package/esm2022/ui/tagBox/src/tag-box.component.mjs +58 -0
  73. package/esm2022/ui/text/aril-ui-text.mjs +5 -0
  74. package/esm2022/ui/text/index.mjs +2 -0
  75. package/esm2022/ui/text/src/text.component.mjs +37 -0
  76. package/esm2022/ui/textArea/aril-ui-textArea.mjs +5 -0
  77. package/esm2022/ui/textArea/index.mjs +2 -0
  78. package/esm2022/ui/textArea/src/text-area.component.mjs +27 -0
  79. package/esm2022/ui/tree/aril-ui-tree.mjs +5 -0
  80. package/esm2022/ui/tree/index.mjs +2 -0
  81. package/esm2022/ui/tree/src/tree.component.mjs +67 -0
  82. package/esm2022/ui/treeTable/aril-ui-treeTable.mjs +5 -0
  83. package/esm2022/ui/treeTable/index.mjs +2 -0
  84. package/esm2022/ui/treeTable/src/tree-table.component.mjs +52 -0
  85. package/esm2022/util/init-event/src/init-event.directive.mjs +8 -8
  86. package/esm2022/util/lib/src/interfaces.mjs +3 -1
  87. package/esm2022/util/lib/src/types.mjs +4 -1
  88. package/esm2022/util/pub-sub/src/pub-sub.service.mjs +5 -4
  89. package/fesm2022/aril-http.mjs +49 -45
  90. package/fesm2022/aril-http.mjs.map +1 -1
  91. package/fesm2022/aril-ui-badge.mjs +32 -0
  92. package/fesm2022/aril-ui-badge.mjs.map +1 -0
  93. package/fesm2022/aril-ui-button.mjs +59 -7
  94. package/fesm2022/aril-ui-button.mjs.map +1 -1
  95. package/fesm2022/aril-ui-calendar.mjs +78 -7
  96. package/fesm2022/aril-ui-calendar.mjs.map +1 -1
  97. package/fesm2022/aril-ui-checkbox.mjs +22 -7
  98. package/fesm2022/aril-ui-checkbox.mjs.map +1 -1
  99. package/fesm2022/aril-ui-confirmPopup.mjs +47 -0
  100. package/fesm2022/aril-ui-confirmPopup.mjs.map +1 -0
  101. package/fesm2022/aril-ui-dialog.mjs +63 -0
  102. package/fesm2022/aril-ui-dialog.mjs.map +1 -0
  103. package/fesm2022/aril-ui-dxField.mjs +34 -0
  104. package/fesm2022/aril-ui-dxField.mjs.map +1 -0
  105. package/fesm2022/aril-ui-field.mjs +55 -0
  106. package/fesm2022/aril-ui-field.mjs.map +1 -0
  107. package/fesm2022/aril-ui-fileUpload.mjs +92 -0
  108. package/fesm2022/aril-ui-fileUpload.mjs.map +1 -0
  109. package/fesm2022/aril-ui-form.mjs +74 -0
  110. package/fesm2022/aril-ui-form.mjs.map +1 -0
  111. package/fesm2022/aril-ui-lib.mjs +252 -51
  112. package/fesm2022/aril-ui-lib.mjs.map +1 -1
  113. package/fesm2022/aril-ui-mask.mjs +51 -0
  114. package/fesm2022/aril-ui-mask.mjs.map +1 -0
  115. package/fesm2022/aril-ui-number.mjs +65 -0
  116. package/fesm2022/aril-ui-number.mjs.map +1 -0
  117. package/fesm2022/aril-ui-overlayPanel.mjs +44 -0
  118. package/fesm2022/aril-ui-overlayPanel.mjs.map +1 -0
  119. package/fesm2022/aril-ui-panel.mjs +39 -0
  120. package/fesm2022/aril-ui-panel.mjs.map +1 -0
  121. package/fesm2022/aril-ui-password.mjs +39 -0
  122. package/fesm2022/aril-ui-password.mjs.map +1 -0
  123. package/fesm2022/aril-ui-radioButton.mjs +42 -0
  124. package/fesm2022/aril-ui-radioButton.mjs.map +1 -0
  125. package/fesm2022/aril-ui-selectBox.mjs +48 -0
  126. package/fesm2022/aril-ui-selectBox.mjs.map +1 -0
  127. package/fesm2022/aril-ui-switch.mjs +26 -0
  128. package/fesm2022/aril-ui-switch.mjs.map +1 -0
  129. package/fesm2022/aril-ui-tagBox.mjs +65 -0
  130. package/fesm2022/aril-ui-tagBox.mjs.map +1 -0
  131. package/fesm2022/aril-ui-text.mjs +44 -0
  132. package/fesm2022/aril-ui-text.mjs.map +1 -0
  133. package/fesm2022/aril-ui-textArea.mjs +34 -0
  134. package/fesm2022/aril-ui-textArea.mjs.map +1 -0
  135. package/fesm2022/aril-ui-tree.mjs +74 -0
  136. package/fesm2022/aril-ui-tree.mjs.map +1 -0
  137. package/fesm2022/aril-ui-treeTable.mjs +59 -0
  138. package/fesm2022/aril-ui-treeTable.mjs.map +1 -0
  139. package/fesm2022/aril-util-init-event.mjs +7 -7
  140. package/fesm2022/aril-util-init-event.mjs.map +1 -1
  141. package/fesm2022/aril-util-lib.mjs +7 -0
  142. package/fesm2022/aril-util-lib.mjs.map +1 -1
  143. package/fesm2022/aril-util-pub-sub.mjs +4 -3
  144. package/fesm2022/aril-util-pub-sub.mjs.map +1 -1
  145. package/http/index.d.ts +2 -0
  146. package/http/lib/enums.d.ts +2 -2
  147. package/package.json +138 -12
  148. package/styles/ui/ui.styles.css +8 -0
  149. package/ui/badge/index.d.ts +1 -0
  150. package/ui/badge/src/badge.component.d.ts +11 -0
  151. package/ui/button/index.d.ts +1 -0
  152. package/ui/button/src/button.component.d.ts +21 -2
  153. package/ui/button/src/split-button.component.d.ts +8 -0
  154. package/ui/calendar/src/calendar.component.d.ts +26 -2
  155. package/ui/checkbox/index.d.ts +1 -1
  156. package/ui/checkbox/src/check-box.component.d.ts +8 -0
  157. package/ui/confirmPopup/index.d.ts +1 -0
  158. package/ui/confirmPopup/src/confirm-popup.component.d.ts +15 -0
  159. package/ui/dialog/index.d.ts +1 -0
  160. package/ui/dialog/src/dialog.component.d.ts +20 -0
  161. package/ui/dxField/index.d.ts +1 -0
  162. package/ui/dxField/src/dx-field.component.d.ts +11 -0
  163. package/ui/field/index.d.ts +1 -0
  164. package/ui/field/src/field.component.d.ts +24 -0
  165. package/ui/fileUpload/index.d.ts +1 -0
  166. package/ui/fileUpload/src/file-upload.component.d.ts +44 -0
  167. package/ui/form/index.d.ts +2 -0
  168. package/ui/form/src/form-submit-button.component.d.ts +14 -0
  169. package/ui/form/src/form.component.d.ts +8 -0
  170. package/ui/lib/index.d.ts +9 -2
  171. package/ui/lib/src/form/form-error-message.component.d.ts +9 -0
  172. package/ui/lib/src/form/form-error-message.directive.d.ts +14 -0
  173. package/ui/lib/src/grid/flex-grid.directive.d.ts +6 -0
  174. package/ui/lib/src/input/baseInput.d.ts +7 -0
  175. package/ui/lib/src/input/dx-input-error-message.pipe.d.ts +11 -0
  176. package/ui/lib/src/input/input-error-message.pipe.d.ts +7 -0
  177. package/ui/lib/src/input/input-transforms.d.ts +5 -0
  178. package/ui/lib/src/input/value-accessor.directive.d.ts +9 -0
  179. package/ui/mask/index.d.ts +1 -0
  180. package/ui/mask/src/mask.component.d.ts +21 -0
  181. package/ui/number/index.d.ts +1 -0
  182. package/ui/number/src/number.component.d.ts +23 -0
  183. package/ui/overlayPanel/index.d.ts +1 -0
  184. package/ui/overlayPanel/src/overlay-panel.component.d.ts +15 -0
  185. package/ui/panel/index.d.ts +1 -0
  186. package/ui/panel/src/panel.component.d.ts +12 -0
  187. package/ui/password/index.d.ts +1 -0
  188. package/ui/password/src/password.component.d.ts +10 -0
  189. package/ui/radioButton/index.d.ts +1 -0
  190. package/ui/radioButton/src/radio-button.component.d.ts +17 -0
  191. package/ui/selectBox/index.d.ts +1 -0
  192. package/ui/selectBox/src/select-box.component.d.ts +18 -0
  193. package/ui/switch/index.d.ts +1 -0
  194. package/ui/switch/src/switch.component.d.ts +7 -0
  195. package/ui/tagBox/index.d.ts +1 -0
  196. package/ui/tagBox/src/tag-box.component.d.ts +14 -0
  197. package/ui/text/index.d.ts +1 -0
  198. package/ui/text/src/text.component.d.ts +15 -0
  199. package/ui/textArea/index.d.ts +1 -0
  200. package/ui/textArea/src/text-area.component.d.ts +11 -0
  201. package/ui/tree/index.d.ts +1 -0
  202. package/ui/tree/src/tree.component.d.ts +29 -0
  203. package/ui/treeTable/index.d.ts +1 -0
  204. package/ui/treeTable/src/tree-table.component.d.ts +23 -0
  205. package/util/init-event/src/init-event.directive.d.ts +4 -4
  206. package/esm2022/ui/checkbox/src/checkbox.component.mjs +0 -11
  207. package/ui/checkbox/src/checkbox.component.d.ts +0 -5
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-ui-overlayPanel.mjs","sources":["../../projects/aril/ui/overlayPanel/src/overlay-panel.component.ts","../../projects/aril/ui/overlayPanel/src/overlay-panel.component.html","../../projects/aril/ui/overlayPanel/aril-ui-overlayPanel.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild } from '@angular/core';\r\nimport { ButtonComponent } from 'aril/ui/button';\r\nimport { OverlayPanel, OverlayPanelModule } from \"primeng/overlaypanel\";\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-overlay-panel',\r\n templateUrl: './overlay-panel.component.html',\r\n imports: [OverlayPanelModule, ButtonComponent],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class OverlayPanelComponent {\r\n @Input() showTransitionOptions!: string;\r\n @Input() hideTransitionOptions!: string;\r\n @Input() dismissable = true;\r\n @Input() styleClass!: string;\r\n @Input() label!: string;\r\n\r\n @ViewChild('overlayPanel') overlayPanel!: OverlayPanel;\r\n @ViewChild('toggleButton') toggleButton!: ElementRef;\r\n\r\n togglePanel(event: MouseEvent) {\r\n this.overlayPanel.toggle(event, this.toggleButton.nativeElement);\r\n }\r\n}\r\n","<p-overlayPanel\r\n\t[showTransitionOptions]=\"showTransitionOptions\"\r\n\t[hideTransitionOptions]=\"hideTransitionOptions\"\r\n\t[dismissable]=\"dismissable\"\r\n\t[styleClass]=\"styleClass\"\r\n\t#overlayPanel>\r\n\t<ng-template pTemplate=\"content\">\r\n\t\t<ng-content></ng-content>\r\n\t</ng-template>\r\n</p-overlayPanel>\r\n<div>\r\n\t<aril-button\r\n\t\tcolor=\"primary\"\r\n\t\t[label]=\"label || 'Show'\"\r\n\t\t(clickEvent)=\"togglePanel($event)\"\r\n\t\tclass=\"toggle-button\"\r\n\t\t#toggleButton>\r\n\t</aril-button>\r\n</div>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAWa,qBAAqB,CAAA;AAPlC,IAAA,WAAA,GAAA;QAUW,IAAW,CAAA,WAAA,GAAG,IAAI,CAAC;AAU7B,KAAA;AAHC,IAAA,WAAW,CAAC,KAAiB,EAAA;AAC3B,QAAA,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;KAClE;8GAZU,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,ECXlC,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,EAAA,qBAAA,EAAA,uBAAA,EAAA,qBAAA,EAAA,uBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,UAAA,EAAA,YAAA,EAAA,KAAA,EAAA,OAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,cAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,cAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,EAAA,YAAA,EAAA,cAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,cAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,oiBAmBA,EDXY,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,kBAAkB,0cAAE,eAAe,EAAA,QAAA,EAAA,0BAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,EAAA,UAAA,EAAA,QAAA,EAAA,UAAA,EAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAAA,OAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAGlC,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;iCACI,IAAI,EAAA,QAAA,EACN,oBAAoB,EAAA,OAAA,EAErB,CAAC,kBAAkB,EAAE,eAAe,CAAC,EAAA,eAAA,EAC7B,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,oiBAAA,EAAA,CAAA;8BAGtC,qBAAqB,EAAA,CAAA;sBAA7B,KAAK;gBACG,qBAAqB,EAAA,CAAA;sBAA7B,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBAEqB,YAAY,EAAA,CAAA;sBAAtC,SAAS;uBAAC,cAAc,CAAA;gBACE,YAAY,EAAA,CAAA;sBAAtC,SAAS;uBAAC,cAAc,CAAA;;;AEnB3B;;AAEG;;;;"}
@@ -0,0 +1,39 @@
1
+ import { NgClass } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { Component, ChangeDetectionStrategy, ViewChild, Input } from '@angular/core';
4
+ import * as i1 from 'primeng/panel';
5
+ import { PanelModule } from 'primeng/panel';
6
+ import * as i2 from 'primeng/api';
7
+
8
+ class PanelComponent {
9
+ constructor() {
10
+ this.toggleable = true;
11
+ this.canFullScreen = true;
12
+ this.isFullScreen = false;
13
+ }
14
+ toggleFullScreen() {
15
+ this.isFullScreen = !this.isFullScreen;
16
+ }
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: PanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
18
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: PanelComponent, isStandalone: true, selector: "aril-panel", inputs: { header: "header", toggleable: "toggleable", canFullScreen: "canFullScreen" }, viewQueries: [{ propertyName: "panelRef", first: true, predicate: ["panel"], descendants: true }], ngImport: i0, template: "<div [ngClass]=\"{ 'full-screen': isFullScreen && canFullScreen }\">\n\t<p-panel [toggleable]=\"toggleable\">\n\t\t<ng-template pTemplate=\"header\">\n\t\t\t<div class=\"panel-header\">\n\t\t\t\t<span class=\"text-primary font-semibold text-xl\">{{ header }}</span>\n\t\t\t\t@if (canFullScreen) {\n\t\t\t\t\t<div class=\"panel-icons\">\n\t\t\t\t\t\t<i\n\t\t\t\t\t\t\t[attr.role]=\"'none'\"\n\t\t\t\t\t\t\tclass=\"pi mr-1 header-icon\"\n\t\t\t\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t\t\t\t'pi-window-maximize': !isFullScreen,\n\t\t\t\t\t\t\t\t'pi-window-minimize': isFullScreen\n\t\t\t\t\t\t\t}\"\n\t\t\t\t\t\t\t(click)=\"toggleFullScreen()\"></i>\n\t\t\t\t\t\t<!-- Full Screen Icon -->\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</ng-template>\n\t\t<ng-content></ng-content>\n\t</p-panel>\n</div>\n", styles: [".full-screen{position:fixed;inset:0;z-index:99999999;overflow-y:auto;box-sizing:border-box;width:100%;height:100vh;background:#fff}.panel-header{width:100%;display:flex;justify-content:space-between;align-items:center}.header-icon{cursor:pointer;width:1.5rem}\n"], dependencies: [{ kind: "ngmodule", type: PanelModule }, { kind: "component", type: i1.Panel, selector: "p-panel", inputs: ["toggleable", "header", "collapsed", "style", "styleClass", "iconPos", "expandIcon", "collapseIcon", "showHeader", "toggler", "transitionOptions"], outputs: ["collapsedChange", "onBeforeToggle", "onAfterToggle"] }, { kind: "directive", type: i2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
19
+ }
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: PanelComponent, decorators: [{
21
+ type: Component,
22
+ args: [{ standalone: true, selector: 'aril-panel', imports: [PanelModule, NgClass], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"{ 'full-screen': isFullScreen && canFullScreen }\">\n\t<p-panel [toggleable]=\"toggleable\">\n\t\t<ng-template pTemplate=\"header\">\n\t\t\t<div class=\"panel-header\">\n\t\t\t\t<span class=\"text-primary font-semibold text-xl\">{{ header }}</span>\n\t\t\t\t@if (canFullScreen) {\n\t\t\t\t\t<div class=\"panel-icons\">\n\t\t\t\t\t\t<i\n\t\t\t\t\t\t\t[attr.role]=\"'none'\"\n\t\t\t\t\t\t\tclass=\"pi mr-1 header-icon\"\n\t\t\t\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t\t\t\t'pi-window-maximize': !isFullScreen,\n\t\t\t\t\t\t\t\t'pi-window-minimize': isFullScreen\n\t\t\t\t\t\t\t}\"\n\t\t\t\t\t\t\t(click)=\"toggleFullScreen()\"></i>\n\t\t\t\t\t\t<!-- Full Screen Icon -->\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</ng-template>\n\t\t<ng-content></ng-content>\n\t</p-panel>\n</div>\n", styles: [".full-screen{position:fixed;inset:0;z-index:99999999;overflow-y:auto;box-sizing:border-box;width:100%;height:100vh;background:#fff}.panel-header{width:100%;display:flex;justify-content:space-between;align-items:center}.header-icon{cursor:pointer;width:1.5rem}\n"] }]
23
+ }], propDecorators: { panelRef: [{
24
+ type: ViewChild,
25
+ args: ['panel']
26
+ }], header: [{
27
+ type: Input
28
+ }], toggleable: [{
29
+ type: Input
30
+ }], canFullScreen: [{
31
+ type: Input
32
+ }] } });
33
+
34
+ /**
35
+ * Generated bundle index. Do not edit.
36
+ */
37
+
38
+ export { PanelComponent };
39
+ //# sourceMappingURL=aril-ui-panel.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-ui-panel.mjs","sources":["../../projects/aril/ui/panel/src/panel.component.ts","../../projects/aril/ui/panel/src/panel.component.html","../../projects/aril/ui/panel/aril-ui-panel.ts"],"sourcesContent":["import { NgClass } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild } from '@angular/core';\r\nimport { PanelModule } from 'primeng/panel';\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-panel',\r\n templateUrl: './panel.component.html',\r\n styleUrl: './panel.component.css',\r\n imports: [PanelModule, NgClass],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class PanelComponent {\r\n @ViewChild('panel') panelRef!: ElementRef;\r\n\r\n @Input() header!: string;\r\n @Input() toggleable = true;\r\n @Input() canFullScreen = true;\r\n\r\n isFullScreen = false;\r\n\r\n toggleFullScreen() {\r\n this.isFullScreen = !this.isFullScreen;\r\n }\r\n}\r\n","<div [ngClass]=\"{ 'full-screen': isFullScreen && canFullScreen }\">\n\t<p-panel [toggleable]=\"toggleable\">\n\t\t<ng-template pTemplate=\"header\">\n\t\t\t<div class=\"panel-header\">\n\t\t\t\t<span class=\"text-primary font-semibold text-xl\">{{ header }}</span>\n\t\t\t\t@if (canFullScreen) {\n\t\t\t\t\t<div class=\"panel-icons\">\n\t\t\t\t\t\t<i\n\t\t\t\t\t\t\t[attr.role]=\"'none'\"\n\t\t\t\t\t\t\tclass=\"pi mr-1 header-icon\"\n\t\t\t\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t\t\t\t'pi-window-maximize': !isFullScreen,\n\t\t\t\t\t\t\t\t'pi-window-minimize': isFullScreen\n\t\t\t\t\t\t\t}\"\n\t\t\t\t\t\t\t(click)=\"toggleFullScreen()\"></i>\n\t\t\t\t\t\t<!-- Full Screen Icon -->\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</ng-template>\n\t\t<ng-content></ng-content>\n\t</p-panel>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAYa,cAAc,CAAA;AAR3B,IAAA,WAAA,GAAA;QAYW,IAAU,CAAA,UAAA,GAAG,IAAI,CAAC;QAClB,IAAa,CAAA,aAAA,GAAG,IAAI,CAAC;QAE9B,IAAY,CAAA,YAAA,GAAG,KAAK,CAAC;AAKtB,KAAA;IAHC,gBAAgB,GAAA;AACd,QAAA,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;KACxC;8GAXU,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,cAAc,ECZ3B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,UAAA,EAAA,YAAA,EAAA,aAAA,EAAA,eAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,UAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,OAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,8xBAuBA,EDdY,MAAA,EAAA,CAAA,uQAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,WAAW,gaAAE,OAAO,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAGnB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAR1B,SAAS;iCACI,IAAI,EAAA,QAAA,EACN,YAAY,EAAA,OAAA,EAGb,CAAC,WAAW,EAAE,OAAO,CAAC,EAAA,eAAA,EACd,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,8xBAAA,EAAA,MAAA,EAAA,CAAA,uQAAA,CAAA,EAAA,CAAA;8BAG3B,QAAQ,EAAA,CAAA;sBAA3B,SAAS;uBAAC,OAAO,CAAA;gBAET,MAAM,EAAA,CAAA;sBAAd,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;gBACG,aAAa,EAAA,CAAA;sBAArB,KAAK;;;AEjBR;;AAEG;;;;"}
@@ -0,0 +1,39 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
3
+ import * as i2 from '@angular/forms';
4
+ import { ReactiveFormsModule } from '@angular/forms';
5
+ import * as i3 from 'primeng/password';
6
+ import { PasswordModule } from 'primeng/password';
7
+ import * as i5 from 'primeng/divider';
8
+ import { DividerModule } from 'primeng/divider';
9
+ import * as i6 from 'primeng/tooltip';
10
+ import { TooltipModule } from 'primeng/tooltip';
11
+ import * as i1 from 'aril/ui/lib';
12
+ import { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
13
+ import * as i4 from 'primeng/api';
14
+
15
+ class InputPasswordComponent extends BaseInputComponent {
16
+ constructor() {
17
+ super(...arguments);
18
+ this.feedback = false;
19
+ }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: InputPasswordComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
21
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: InputPasswordComponent, isStandalone: true, selector: "aril-password[ngModel], aril-password[formControl], aril-password[formControlName]", inputs: { feedback: "feedback", passwordCriterias: "passwordCriterias", placeholder: "placeholder" }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<!-- /* TODO : REFACTOR */ -->\n<p-password\n\t[feedback]=\"feedback\"\n\t[toggleMask]=\"true\"\n\t[placeholder]=\"placeholder\"\n\t[pTooltip]=\"\n\t\tngControl.invalid\n\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\n\t\t\t: ''\n\t\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n\t@if (passwordCriterias?.length) {\n\t\t<ng-template pTemplate=\"header\">\n\t\t\t<h6>\u015Eifre Olu\u015Ftur</h6>\n\t\t</ng-template>\n\t\t<ng-template pTemplate=\"footer\">\n\t\t\t<p-divider></p-divider>\n\t\t\t<p class=\"mt-2\">\u015Eartlar</p>\n\t\t\t<ul class=\"pl-2 ml-2 mt-0\" style=\"line-height: 1.5\">\n\t\t\t\t@for (criterion of passwordCriterias; track criterion) {\n\t\t\t\t\t<li>{{ criterion }}</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</ng-template>\n\t}\n</p-password>\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: PasswordModule }, { kind: "component", type: i3.Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "disabled", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "appendTo", "toggleMask", "inputStyleClass", "styleClass", "style", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "placeholder", "showClear"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "directive", type: i4.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: DividerModule }, { kind: "component", type: i5.Divider, selector: "p-divider", inputs: ["style", "styleClass", "layout", "type", "align"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i6.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
22
+ }
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: InputPasswordComponent, decorators: [{
24
+ type: Component,
25
+ args: [{ standalone: true, selector: 'aril-password[ngModel], aril-password[formControl], aril-password[formControlName]', imports: [ReactiveFormsModule, PasswordModule, DividerModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- /* TODO : REFACTOR */ -->\n<p-password\n\t[feedback]=\"feedback\"\n\t[toggleMask]=\"true\"\n\t[placeholder]=\"placeholder\"\n\t[pTooltip]=\"\n\t\tngControl.invalid\n\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\n\t\t\t: ''\n\t\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n\t@if (passwordCriterias?.length) {\n\t\t<ng-template pTemplate=\"header\">\n\t\t\t<h6>\u015Eifre Olu\u015Ftur</h6>\n\t\t</ng-template>\n\t\t<ng-template pTemplate=\"footer\">\n\t\t\t<p-divider></p-divider>\n\t\t\t<p class=\"mt-2\">\u015Eartlar</p>\n\t\t\t<ul class=\"pl-2 ml-2 mt-0\" style=\"line-height: 1.5\">\n\t\t\t\t@for (criterion of passwordCriterias; track criterion) {\n\t\t\t\t\t<li>{{ criterion }}</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</ng-template>\n\t}\n</p-password>\n" }]
26
+ }], propDecorators: { feedback: [{
27
+ type: Input
28
+ }], passwordCriterias: [{
29
+ type: Input
30
+ }], placeholder: [{
31
+ type: Input
32
+ }] } });
33
+
34
+ /**
35
+ * Generated bundle index. Do not edit.
36
+ */
37
+
38
+ export { InputPasswordComponent };
39
+ //# sourceMappingURL=aril-ui-password.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-ui-password.mjs","sources":["../../projects/aril/ui/password/src/password.component.ts","../../projects/aril/ui/password/src/password.component.html","../../projects/aril/ui/password/aril-ui-password.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { PasswordModule } from 'primeng/password';\r\nimport { DividerModule } from 'primeng/divider';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-password[ngModel], aril-password[formControl], aril-password[formControlName]',\r\n templateUrl: './password.component.html',\r\n imports: [ReactiveFormsModule, PasswordModule, DividerModule, TooltipModule, InputErrorMessagePipe],\r\n hostDirectives: [ValueAccessorDirective],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class InputPasswordComponent extends BaseInputComponent {\r\n @Input() feedback = false;\r\n @Input() passwordCriterias?: Array<string>;\r\n @Input() placeholder?: string;\r\n}\r\n","<!-- /* TODO : REFACTOR */ -->\n<p-password\n\t[feedback]=\"feedback\"\n\t[toggleMask]=\"true\"\n\t[placeholder]=\"placeholder\"\n\t[pTooltip]=\"\n\t\tngControl.invalid\n\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\n\t\t\t: ''\n\t\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n\t@if (passwordCriterias?.length) {\n\t\t<ng-template pTemplate=\"header\">\n\t\t\t<h6>Şifre Oluştur</h6>\n\t\t</ng-template>\n\t\t<ng-template pTemplate=\"footer\">\n\t\t\t<p-divider></p-divider>\n\t\t\t<p class=\"mt-2\">Şartlar</p>\n\t\t\t<ul class=\"pl-2 ml-2 mt-0\" style=\"line-height: 1.5\">\n\t\t\t\t@for (criterion of passwordCriterias; track criterion) {\n\t\t\t\t\t<li>{{ criterion }}</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</ng-template>\n\t}\n</p-password>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAeM,MAAO,sBAAuB,SAAQ,kBAAkB,CAAA;AAR9D,IAAA,WAAA,GAAA;;QASW,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;AAG3B,KAAA;8GAJY,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oFAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,mBAAA,EAAA,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AA,CAAA;sBAAnB,KAAK;;;AElBR;;AAEG;;;;"}
@@ -0,0 +1,42 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
3
+ import * as i2 from '@angular/forms';
4
+ import { ReactiveFormsModule } from '@angular/forms';
5
+ import * as i3 from 'primeng/radiobutton';
6
+ import { RadioButtonModule } from 'primeng/radiobutton';
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
+
12
+ /* eslint-disable @typescript-eslint/no-explicit-any */
13
+ class RadioButtonComponent extends BaseInputComponent {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.options = [];
17
+ this._pAlign = "flex flex-wrap gap-3";
18
+ this._cAlign = "flex align-items-center";
19
+ }
20
+ set align(value) {
21
+ this._pAlign = value == "horizontal" ? "flex flex-wrap gap-3" : "flex flex-column gap-3";
22
+ this._cAlign = value == "horizontal" ? "flex align-items-center" : "field-checkbox'";
23
+ }
24
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RadioButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
25
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: RadioButtonComponent, isStandalone: true, selector: "aril-radio-button[ngModel], aril-radio-button[formControl], aril-radio-button[formControlName]", inputs: { options: "options", align: "align" }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<div [class]=\"_pAlign\">\n\t@for (item of options; track item) {\n\t\t<div [class]=\"_cAlign\">\n\t\t\t<p-radioButton\n\t\t\t\t[value]=\"item.key\"\n\t\t\t\t[inputId]=\"item.key\"\n\t\t\t\t[pTooltip]=\"\n\t\t\t\t\tngControl.invalid\n\t\t\t\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\n\t\t\t\t\t\t: ''\n\t\t\t\t\"\n\t\t\t\t[tooltipOptions]=\"tooltipOptions\"\n\t\t\t\t[formControl]=\"ngControl.control\"\n\t\t\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n\t\t\t</p-radioButton\n\t\t\t>&nbsp;\n\t\t\t<span class=\"ml-2\">{{ item.label }}</span>\n\t\t</div>\n\t}\n</div>\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: RadioButtonModule }, { kind: "component", type: i3.RadioButton, selector: "p-radioButton", inputs: ["value", "formControlName", "name", "disabled", "label", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "style", "styleClass", "labelStyleClass"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
26
+ }
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RadioButtonComponent, decorators: [{
28
+ type: Component,
29
+ args: [{ standalone: true, selector: 'aril-radio-button[ngModel], aril-radio-button[formControl], aril-radio-button[formControlName]', imports: [ReactiveFormsModule, RadioButtonModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"_pAlign\">\n\t@for (item of options; track item) {\n\t\t<div [class]=\"_cAlign\">\n\t\t\t<p-radioButton\n\t\t\t\t[value]=\"item.key\"\n\t\t\t\t[inputId]=\"item.key\"\n\t\t\t\t[pTooltip]=\"\n\t\t\t\t\tngControl.invalid\n\t\t\t\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\n\t\t\t\t\t\t: ''\n\t\t\t\t\"\n\t\t\t\t[tooltipOptions]=\"tooltipOptions\"\n\t\t\t\t[formControl]=\"ngControl.control\"\n\t\t\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n\t\t\t</p-radioButton\n\t\t\t>&nbsp;\n\t\t\t<span class=\"ml-2\">{{ item.label }}</span>\n\t\t</div>\n\t}\n</div>\n" }]
30
+ }], propDecorators: { options: [{
31
+ type: Input,
32
+ args: [{ required: true }]
33
+ }], align: [{
34
+ type: Input
35
+ }] } });
36
+
37
+ /**
38
+ * Generated bundle index. Do not edit.
39
+ */
40
+
41
+ export { RadioButtonComponent };
42
+ //# sourceMappingURL=aril-ui-radioButton.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-ui-radioButton.mjs","sources":["../../projects/aril/ui/radioButton/src/radio-button.component.ts","../../projects/aril/ui/radioButton/src/radio-button.component.html","../../projects/aril/ui/radioButton/aril-ui-radioButton.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\n\r\nimport { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { RadioButtonModule } from 'primeng/radiobutton';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\n\r\ntype Aligns = 'horizontal' | 'vertical';\r\ninterface RadioButtonOption {\r\n key: any;\r\n label: string;\r\n}\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-radio-button[ngModel], aril-radio-button[formControl], aril-radio-button[formControlName]',\r\n templateUrl: './radio-button.component.html',\r\n imports: [ReactiveFormsModule, RadioButtonModule, TooltipModule, InputErrorMessagePipe],\r\n hostDirectives: [ValueAccessorDirective],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class RadioButtonComponent extends BaseInputComponent {\r\n @Input({ required: true }) options: RadioButtonOption[] = [];\r\n @Input() set align(value: Aligns) {\r\n this._pAlign = value == \"horizontal\" ? \"flex flex-wrap gap-3\" : \"flex flex-column gap-3\";\r\n this._cAlign = value == \"horizontal\" ? \"flex align-items-center\" : \"field-checkbox'\";\r\n }\r\n\r\n _pAlign = \"flex flex-wrap gap-3\";\r\n _cAlign = \"flex align-items-center\";\r\n}\r\n","<div [class]=\"_pAlign\">\n\t@for (item of options; track item) {\n\t\t<div [class]=\"_cAlign\">\n\t\t\t<p-radioButton\n\t\t\t\t[value]=\"item.key\"\n\t\t\t\t[inputId]=\"item.key\"\n\t\t\t\t[pTooltip]=\"\n\t\t\t\t\tngControl.invalid\n\t\t\t\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\n\t\t\t\t\t\t: ''\n\t\t\t\t\"\n\t\t\t\t[tooltipOptions]=\"tooltipOptions\"\n\t\t\t\t[formControl]=\"ngControl.control\"\n\t\t\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n\t\t\t</p-radioButton\n\t\t\t>&nbsp;\n\t\t\t<span class=\"ml-2\">{{ item.label }}</span>\n\t\t</div>\n\t}\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AAsBM,MAAO,oBAAqB,SAAQ,kBAAkB,CAAA;AAR5D,IAAA,WAAA,GAAA;;QAS6B,IAAO,CAAA,OAAA,GAAwB,EAAE,CAAC;QAM7D,IAAO,CAAA,OAAA,GAAG,sBAAsB,CAAC;QACjC,IAAO,CAAA,OAAA,GAAG,yBAAyB,C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AA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,eAAA,EAAA,mBAAA,EAAA,eAAA,EAAA,QAAA,EAAA,WAAA,EAAA,WAAA,EAAA,MAAA,EAAA,aAAA,EAAA,cAAA,EAAA,UAAA,EAAA,YAAA,EAAA,cAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAI3E,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBARhC,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,YACN,gGAAgG,EAAA,OAAA,EAEjG,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,aAAa,EAAE,qBAAqB,CAAC,kBACvE,CAAC,sBAAsB,CAAC,EACvB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,imBAAA,EAAA,CAAA;8BAGpB,OAAO,EAAA,CAAA;sBAAjC,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;gBACZ,KAAK,EAAA,CAAA;sBAAjB,KAAK;;;AExBR;;AAEG;;;;"}
@@ -0,0 +1,48 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
3
+ import * as i2 from '@angular/forms';
4
+ import { ReactiveFormsModule } from '@angular/forms';
5
+ import * as i3 from 'devextreme-angular/ui/select-box';
6
+ import { DxSelectBoxModule } from 'devextreme-angular/ui/select-box';
7
+ import * as i1 from 'aril/ui/lib';
8
+ import { BaseInputComponent, DXInputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
9
+
10
+ class SelectBoxComponent extends BaseInputComponent {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.itemKey = "key";
14
+ this.itemText = "text";
15
+ this.items = [];
16
+ /** * @description when grouped = true, option item structure { key:string, items:[] } */
17
+ this.grouped = false;
18
+ }
19
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SelectBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
20
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: SelectBoxComponent, isStandalone: true, selector: "aril-select-box[formControl], aril-select-box[formControlName]", inputs: { itemKey: "itemKey", itemText: "itemText", items: "items", grouped: "grouped", placeholder: "placeholder", searchExpr: "searchExpr", formCtrl: "formCtrl" }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<dx-select-box\r\n\t[items]=\"items\"\r\n\t[valueExpr]=\"itemKey\"\r\n\t[displayExpr]=\"itemText\"\r\n\t[searchEnabled]=\"true\"\r\n\t[searchExpr]=\"searchExpr\"\r\n\t[grouped]=\"grouped\"\r\n\t[placeholder]=\"placeholder\"\r\n\t[showClearButton]=\"true\"\r\n\t[isValid]=\"formCtrl.valid || formCtrl.pristine\"\r\n\t[validationError]=\"formCtrl.errors | dxInputErrorMessage: formCtrl\"\r\n\tvalidationMessagePosition=\"top\"\r\n\t[formControl]=\"formCtrl\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n</dx-select-box>\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: DxSelectBoxModule }, { kind: "component", type: i3.DxSelectBoxComponent, selector: "dx-select-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "buttons", "customItemCreateEvent", "dataSource", "deferRendering", "disabled", "displayExpr", "displayValue", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hint", "hoverStateEnabled", "inputAttr", "isDirty", "isValid", "items", "itemTemplate", "label", "labelMode", "maxLength", "minSearchLength", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectedItem", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showSelectionControls", "spellcheck", "stylingMode", "tabIndex", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCopy", "onCustomItemCreating", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onOpened", "onOptionChanged", "onPaste", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "customItemCreateEventChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "displayValueChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isDirtyChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxLengthChange", "minSearchLengthChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectedItemChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showSelectionControlsChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "pipe", type: DXInputErrorMessagePipe, name: "dxInputErrorMessage" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
21
+ }
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SelectBoxComponent, decorators: [{
23
+ type: Component,
24
+ args: [{ standalone: true, selector: 'aril-select-box[formControl], aril-select-box[formControlName]', imports: [ReactiveFormsModule, DxSelectBoxModule, DXInputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<dx-select-box\r\n\t[items]=\"items\"\r\n\t[valueExpr]=\"itemKey\"\r\n\t[displayExpr]=\"itemText\"\r\n\t[searchEnabled]=\"true\"\r\n\t[searchExpr]=\"searchExpr\"\r\n\t[grouped]=\"grouped\"\r\n\t[placeholder]=\"placeholder\"\r\n\t[showClearButton]=\"true\"\r\n\t[isValid]=\"formCtrl.valid || formCtrl.pristine\"\r\n\t[validationError]=\"formCtrl.errors | dxInputErrorMessage: formCtrl\"\r\n\tvalidationMessagePosition=\"top\"\r\n\t[formControl]=\"formCtrl\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n</dx-select-box>\r\n" }]
25
+ }], propDecorators: { itemKey: [{
26
+ type: Input
27
+ }], itemText: [{
28
+ type: Input
29
+ }], items: [{
30
+ type: Input,
31
+ args: [{ required: true }]
32
+ }], grouped: [{
33
+ type: Input
34
+ }], placeholder: [{
35
+ type: Input
36
+ }], searchExpr: [{
37
+ type: Input
38
+ }], formCtrl: [{
39
+ type: Input,
40
+ args: [{ required: true }]
41
+ }] } });
42
+
43
+ /**
44
+ * Generated bundle index. Do not edit.
45
+ */
46
+
47
+ export { SelectBoxComponent };
48
+ //# sourceMappingURL=aril-ui-selectBox.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-ui-selectBox.mjs","sources":["../../projects/aril/ui/selectBox/src/select-box.component.ts","../../projects/aril/ui/selectBox/src/select-box.component.html","../../projects/aril/ui/selectBox/aril-ui-selectBox.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\r\nimport { DxSelectBoxModule } from \"devextreme-angular/ui/select-box\";\r\nimport { Interfaces } from \"aril/util/lib\";\r\nimport { BaseInputComponent, ValueAccessorDirective, DXInputErrorMessagePipe } from \"aril/ui/lib\";\r\n\r\nexport type SelectBoxItem = Interfaces.MapStringString | Interfaces.MapStringNumber | Interfaces.MapNumberString | Interfaces.MapNumberNumber;\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-select-box[formControl], aril-select-box[formControlName]',\r\n templateUrl: './select-box.component.html',\r\n imports: [ReactiveFormsModule, DxSelectBoxModule, DXInputErrorMessagePipe],\r\n hostDirectives: [ValueAccessorDirective],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SelectBoxComponent extends BaseInputComponent {\r\n @Input() itemKey = \"key\";\r\n @Input() itemText = \"text\";\r\n @Input({ required: true }) items: Array<SelectBoxItem> = [];\r\n\r\n /** * @description when grouped = true, option item structure { key:string, items:[] } */\r\n @Input() grouped = false;\r\n @Input() placeholder!: string;\r\n @Input() searchExpr!: Array<string>;\r\n @Input({ required: true }) formCtrl!: FormControl;\r\n}\r\n","<dx-select-box\r\n\t[items]=\"items\"\r\n\t[valueExpr]=\"itemKey\"\r\n\t[displayExpr]=\"itemText\"\r\n\t[searchEnabled]=\"true\"\r\n\t[searchExpr]=\"searchExpr\"\r\n\t[grouped]=\"grouped\"\r\n\t[placeholder]=\"placeholder\"\r\n\t[showClearButton]=\"true\"\r\n\t[isValid]=\"formCtrl.valid || formCtrl.pristine\"\r\n\t[validationError]=\"formCtrl.errors | dxInputErrorMessage: formCtrl\"\r\n\tvalidationMessagePosition=\"top\"\r\n\t[formControl]=\"formCtrl\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n</dx-select-box>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAgBM,MAAO,kBAAmB,SAAQ,kBAAkB,CAAA;AAR1D,IAAA,WAAA,GAAA;;QASW,IAAO,CAAA,OAAA,GAAG,KAAK,CAAC;QAChB,IAAQ,CAAA,QAAA,GAAG,MAAM,CAAC;QACA,IAAK,CAAA,KAAA,GAAyB,EAAE,CAAC;;QAGnD,IAAO,CAAA,OAAA,GAAG,KAAK,CAAC;AAI1B,KAAA;8GAVY,kBAAkB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,kBAAkB,mXChB/B,giBAeA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDHY,mBAAmB,EAAE,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,UAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAiB,4qFAAE,uBAAuB,EAAA,IAAA,EAAA,qBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAI9D,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAR9B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,YACN,gEAAgE,EAAA,OAAA,EAEjE,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,uBAAuB,CAAC,kBAC1D,CAAC,sBAAsB,CAAC,EACvB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,giBAAA,EAAA,CAAA;8BAGtC,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACqB,KAAK,EAAA,CAAA;sBAA/B,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;gBAGhB,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;gBACqB,QAAQ,EAAA,CAAA;sBAAlC,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;;;AEzB3B;;AAEG;;;;"}
@@ -0,0 +1,26 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy } from '@angular/core';
3
+ import * as i2 from '@angular/forms';
4
+ import { ReactiveFormsModule } from '@angular/forms';
5
+ import * as i4 from 'primeng/tooltip';
6
+ import { TooltipModule } from 'primeng/tooltip';
7
+ import * as i3 from 'primeng/inputswitch';
8
+ import { InputSwitchModule } from 'primeng/inputswitch';
9
+ import * as i1 from 'aril/ui/lib';
10
+ import { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
11
+
12
+ class InputSwitchComponent extends BaseInputComponent {
13
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: InputSwitchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
14
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: InputSwitchComponent, isStandalone: true, selector: "aril-switch[ngModel], aril-switch[formControl], aril-switch[formControlName]", usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<p-inputSwitch\r\n\t[pTooltip]=\"\r\n\t\tngControl.invalid\r\n\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\r\n\t\t\t: ''\r\n\t\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n</p-inputSwitch>\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: InputSwitchModule }, { kind: "component", type: i3.InputSwitch, selector: "p-inputSwitch", inputs: ["style", "styleClass", "tabindex", "inputId", "name", "disabled", "readonly", "trueValue", "falseValue", "ariaLabel", "ariaLabelledBy"], outputs: ["onChange"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
15
+ }
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: InputSwitchComponent, decorators: [{
17
+ type: Component,
18
+ args: [{ standalone: true, selector: 'aril-switch[ngModel], aril-switch[formControl], aril-switch[formControlName]', imports: [ReactiveFormsModule, InputSwitchModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-inputSwitch\r\n\t[pTooltip]=\"\r\n\t\tngControl.invalid\r\n\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\r\n\t\t\t: ''\r\n\t\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n</p-inputSwitch>\r\n" }]
19
+ }] });
20
+
21
+ /**
22
+ * Generated bundle index. Do not edit.
23
+ */
24
+
25
+ export { InputSwitchComponent };
26
+ //# sourceMappingURL=aril-ui-switch.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-ui-switch.mjs","sources":["../../projects/aril/ui/switch/src/switch.component.ts","../../projects/aril/ui/switch/src/switch.component.html","../../projects/aril/ui/switch/aril-ui-switch.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\nimport { InputSwitchModule } from 'primeng/inputswitch';\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-switch[ngModel], aril-switch[formControl], aril-switch[formControlName]',\r\n templateUrl: './switch.component.html',\r\n imports: [ReactiveFormsModule, InputSwitchModule, TooltipModule, InputErrorMessagePipe],\r\n hostDirectives: [ValueAccessorDirective],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class InputSwitchComponent extends BaseInputComponent {\r\n\r\n}\r\n","<p-inputSwitch\r\n\t[pTooltip]=\"\r\n\t\tngControl.invalid\r\n\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\r\n\t\t\t: ''\r\n\t\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n</p-inputSwitch>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAcM,MAAO,oBAAqB,SAAQ,kBAAkB,CAAA;8GAA/C,oBAAoB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,8EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,sBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECdjC,8TAUA,EDAY,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,mBAAmB,yTAAE,iBAAiB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,WAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,YAAA,EAAA,UAAA,EAAA,SAAA,EAAA,MAAA,EAAA,UAAA,EAAA,UAAA,EAAA,WAAA,EAAA,YAAA,EAAA,WAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,eAAA,EAAA,mBAAA,EAAA,eAAA,EAAA,QAAA,EAAA,WAAA,EAAA,WAAA,EAAA,MAAA,EAAA,aAAA,EAAA,cAAA,EAAA,UAAA,EAAA,YAAA,EAAA,cAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAI3E,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBARhC,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,YACN,8EAA8E,EAAA,OAAA,EAE/E,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,aAAa,EAAE,qBAAqB,CAAC,kBACvE,CAAC,sBAAsB,CAAC,EACvB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,8TAAA,EAAA,CAAA;;;AEZjD;;AAEG;;;;"}
@@ -0,0 +1,65 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
3
+ import * as i2 from '@angular/forms';
4
+ import { ReactiveFormsModule } from '@angular/forms';
5
+ import * as i3 from 'devextreme-angular/ui/tag-box';
6
+ import { DxTagBoxModule } from 'devextreme-angular/ui/tag-box';
7
+ import * as i1 from 'aril/ui/lib';
8
+ import { BaseInputComponent, DXInputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
9
+
10
+ /* eslint-disable @typescript-eslint/no-explicit-any */
11
+ class TagBoxComponent extends BaseInputComponent {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.maxDisplayedTags = 5;
15
+ this.acceptCustomValue = true;
16
+ this.items = [];
17
+ }
18
+ onCustomItemCreating(e) {
19
+ let newValues = [];
20
+ const items = e.component.option("items");
21
+ const selectedItems = e.component.option("selectedItems");
22
+ if (e.text.indexOf(",") != -1)
23
+ newValues = e.text.replace(/ /g, '').split(',');
24
+ else if (e.text.indexOf("|") != -1)
25
+ newValues = e.text.replace(/ /g, '').split('|');
26
+ else if (e.text.indexOf(" ") != -1)
27
+ newValues = e.text.split(' ');
28
+ else
29
+ newValues.push(e.text);
30
+ newValues.forEach((value) => {
31
+ if (selectedItems.indexOf(value) == -1) {
32
+ selectedItems.push(value);
33
+ items.unshift(value);
34
+ }
35
+ });
36
+ e.component.option("items", items);
37
+ e.component.option("value", selectedItems);
38
+ e.text = "";
39
+ }
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TagBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
41
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: TagBoxComponent, isStandalone: true, selector: "aril-tag-box", inputs: { placeholder: "placeholder", maxDisplayedTags: "maxDisplayedTags", acceptCustomValue: "acceptCustomValue", items: "items", formCtrl: "formCtrl" }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<dx-tag-box\r\n\t[items]=\"items\"\r\n\t[showSelectionControls]=\"!acceptCustomValue\"\r\n\t[applyValueMode]=\"acceptCustomValue ? 'instantly' : 'useButtons'\"\r\n\t[placeholder]=\"placeholder\"\r\n\t[multiline]=\"false\"\r\n\t[acceptCustomValue]=\"acceptCustomValue\"\r\n\t[searchEnabled]=\"true\"\r\n\t[maxDisplayedTags]=\"maxDisplayedTags\"\r\n\t[showMultiTagOnly]=\"false\"\r\n\t[showClearButton]=\"true\"\r\n\t(onCustomItemCreating)=\"onCustomItemCreating($event)\"\r\n\t[isValid]=\"formCtrl.valid || formCtrl.pristine\"\r\n\t[validationError]=\"formCtrl.errors | dxInputErrorMessage: formCtrl\"\r\n\tvalidationMessagePosition=\"top\"\r\n\t[formControl]=\"formCtrl\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n</dx-tag-box>\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: DxTagBoxModule }, { kind: "component", type: i3.DxTagBoxComponent, selector: "dx-tag-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "applyValueMode", "buttons", "customItemCreateEvent", "dataSource", "deferRendering", "disabled", "displayExpr", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hideSelectedItems", "hint", "hoverStateEnabled", "inputAttr", "isDirty", "isValid", "items", "itemTemplate", "label", "labelMode", "maxDisplayedTags", "maxFilterQueryLength", "maxLength", "minSearchLength", "multiline", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectAllMode", "selectAllText", "selectedItems", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showMultiTagOnly", "showSelectionControls", "stylingMode", "tabIndex", "tagTemplate", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCustomItemCreating", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onMultiTagPreparing", "onOpened", "onOptionChanged", "onSelectAllValueChanged", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "applyValueModeChange", "buttonsChange", "customItemCreateEventChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hideSelectedItemsChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isDirtyChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxDisplayedTagsChange", "maxFilterQueryLengthChange", "maxLengthChange", "minSearchLengthChange", "multilineChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectAllModeChange", "selectAllTextChange", "selectedItemsChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showMultiTagOnlyChange", "showSelectionControlsChange", "stylingModeChange", "tabIndexChange", "tagTemplateChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "pipe", type: DXInputErrorMessagePipe, name: "dxInputErrorMessage" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
42
+ }
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TagBoxComponent, decorators: [{
44
+ type: Component,
45
+ args: [{ standalone: true, selector: 'aril-tag-box', imports: [ReactiveFormsModule, DxTagBoxModule, DXInputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<dx-tag-box\r\n\t[items]=\"items\"\r\n\t[showSelectionControls]=\"!acceptCustomValue\"\r\n\t[applyValueMode]=\"acceptCustomValue ? 'instantly' : 'useButtons'\"\r\n\t[placeholder]=\"placeholder\"\r\n\t[multiline]=\"false\"\r\n\t[acceptCustomValue]=\"acceptCustomValue\"\r\n\t[searchEnabled]=\"true\"\r\n\t[maxDisplayedTags]=\"maxDisplayedTags\"\r\n\t[showMultiTagOnly]=\"false\"\r\n\t[showClearButton]=\"true\"\r\n\t(onCustomItemCreating)=\"onCustomItemCreating($event)\"\r\n\t[isValid]=\"formCtrl.valid || formCtrl.pristine\"\r\n\t[validationError]=\"formCtrl.errors | dxInputErrorMessage: formCtrl\"\r\n\tvalidationMessagePosition=\"top\"\r\n\t[formControl]=\"formCtrl\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n</dx-tag-box>\r\n" }]
46
+ }], propDecorators: { placeholder: [{
47
+ type: Input
48
+ }], maxDisplayedTags: [{
49
+ type: Input
50
+ }], acceptCustomValue: [{
51
+ type: Input
52
+ }], items: [{
53
+ type: Input,
54
+ args: [{ required: true }]
55
+ }], formCtrl: [{
56
+ type: Input,
57
+ args: [{ required: true }]
58
+ }] } });
59
+
60
+ /**
61
+ * Generated bundle index. Do not edit.
62
+ */
63
+
64
+ export { TagBoxComponent };
65
+ //# sourceMappingURL=aril-ui-tagBox.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-ui-tagBox.mjs","sources":["../../projects/aril/ui/tagBox/src/tag-box.component.ts","../../projects/aril/ui/tagBox/src/tag-box.component.html","../../projects/aril/ui/tagBox/aril-ui-tagBox.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\n\r\nimport { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\r\nimport { DxTagBoxModule } from \"devextreme-angular/ui/tag-box\";\r\nimport { BaseInputComponent, DXInputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-tag-box',\r\n templateUrl: './tag-box.component.html',\r\n imports: [ReactiveFormsModule, DxTagBoxModule, DXInputErrorMessagePipe],\r\n hostDirectives: [ValueAccessorDirective],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class TagBoxComponent extends BaseInputComponent {\r\n @Input() placeholder!: string;\r\n @Input() maxDisplayedTags = 5;\r\n @Input() acceptCustomValue = true;\r\n @Input({ required: true }) items: Array<string | number> = [];\r\n @Input({ required: true }) formCtrl!: FormControl;\r\n\r\n onCustomItemCreating(e: any) {\r\n let newValues = [];\r\n\r\n const items = e.component.option(\"items\");\r\n const selectedItems = e.component.option(\"selectedItems\");\r\n\r\n if (e.text.indexOf(\",\") != -1) newValues = e.text.replace(/ /g, '').split(',');\r\n else if (e.text.indexOf(\"|\") != -1) newValues = e.text.replace(/ /g, '').split('|');\r\n else if (e.text.indexOf(\" \") != -1) newValues = e.text.split(' ');\r\n else newValues.push(e.text);\r\n\r\n newValues.forEach((value: string) => {\r\n if (selectedItems.indexOf(value) == -1) {\r\n selectedItems.push(value);\r\n items.unshift(value);\r\n }\r\n });\r\n\r\n e.component.option(\"items\", items);\r\n e.component.option(\"value\", selectedItems);\r\n e.text = \"\";\r\n }\r\n}\r\n","<dx-tag-box\r\n\t[items]=\"items\"\r\n\t[showSelectionControls]=\"!acceptCustomValue\"\r\n\t[applyValueMode]=\"acceptCustomValue ? 'instantly' : 'useButtons'\"\r\n\t[placeholder]=\"placeholder\"\r\n\t[multiline]=\"false\"\r\n\t[acceptCustomValue]=\"acceptCustomValue\"\r\n\t[searchEnabled]=\"true\"\r\n\t[maxDisplayedTags]=\"maxDisplayedTags\"\r\n\t[showMultiTagOnly]=\"false\"\r\n\t[showClearButton]=\"true\"\r\n\t(onCustomItemCreating)=\"onCustomItemCreating($event)\"\r\n\t[isValid]=\"formCtrl.valid || formCtrl.pristine\"\r\n\t[validationError]=\"formCtrl.errors | dxInputErrorMessage: formCtrl\"\r\n\tvalidationMessagePosition=\"top\"\r\n\t[formControl]=\"formCtrl\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n</dx-tag-box>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;AAeM,MAAO,eAAgB,SA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EAAA,IAAI,YACN,cAAc,EAAA,OAAA,EAEf,CAAC,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,CAAC,kBACvD,CAAC,sBAAsB,CAAC,EACvB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,ovBAAA,EAAA,CAAA;8BAGtC,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,gBAAgB,EAAA,CAAA;sBAAxB,KAAK;gBACG,iBAAiB,EAAA,CAAA;sBAAzB,KAAK;gBACqB,KAAK,EAAA,CAAA;sBAA/B,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;gBACE,QAAQ,EAAA,CAAA;sBAAlC,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;;;AEpB3B;;AAEG;;;;"}
@@ -0,0 +1,44 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
3
+ import * as i2 from '@angular/forms';
4
+ import { ReactiveFormsModule } from '@angular/forms';
5
+ import * as i3 from 'primeng/inputtext';
6
+ import { InputTextModule } from 'primeng/inputtext';
7
+ import * as i4 from 'primeng/tooltip';
8
+ import { TooltipModule } from 'primeng/tooltip';
9
+ import * as i1 from 'aril/ui/lib';
10
+ import { BaseInputComponent, iconTransform, iconPosTransform, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
11
+
12
+ class TextComponent extends BaseInputComponent {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.placeholder = '';
16
+ }
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
18
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: TextComponent, isStandalone: true, selector: "aril-text[ngModel], aril-text[formControl], aril-text[formControlName]", inputs: { style: "style", styleClass: "styleClass", customClass: "customClass", placeholder: "placeholder", icon: ["icon", "icon", iconTransform], iconPosClass: ["iconPos", "iconPosClass", iconPosTransform] }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<ng-template #input>\n\t<input\n\t\tpInputText\n\t\ttype=\"text\"\n\t\t[style]=\"style\"\n\t\t[class]=\"customClass\"\n\t\t[placeholder]=\"placeholder\"\n\t\t[pTooltip]=\"\n\t\t\tngControl.invalid\n\t\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\n\t\t\t\t: ''\n\t\t\"\n\t\t[tooltipOptions]=\"tooltipOptions\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\" />\n</ng-template>\n\n@if (icon) {\n\t<span [class]=\"iconPosClass ?? 'p-input-icon-left'\">\n\t\t<i [class]=\"icon\"></i>\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n\t</span>\n} @else {\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n}\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i3.InputText, selector: "[pInputText]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
19
+ }
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextComponent, decorators: [{
21
+ type: Component,
22
+ args: [{ standalone: true, selector: 'aril-text[ngModel], aril-text[formControl], aril-text[formControlName]', imports: [ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #input>\n\t<input\n\t\tpInputText\n\t\ttype=\"text\"\n\t\t[style]=\"style\"\n\t\t[class]=\"customClass\"\n\t\t[placeholder]=\"placeholder\"\n\t\t[pTooltip]=\"\n\t\t\tngControl.invalid\n\t\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\n\t\t\t\t: ''\n\t\t\"\n\t\t[tooltipOptions]=\"tooltipOptions\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\" />\n</ng-template>\n\n@if (icon) {\n\t<span [class]=\"iconPosClass ?? 'p-input-icon-left'\">\n\t\t<i [class]=\"icon\"></i>\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n\t</span>\n} @else {\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n}\n" }]
23
+ }], propDecorators: { style: [{
24
+ type: Input
25
+ }], styleClass: [{
26
+ type: Input
27
+ }], customClass: [{
28
+ type: Input
29
+ }], placeholder: [{
30
+ type: Input
31
+ }], icon: [{
32
+ type: Input,
33
+ args: [{ transform: iconTransform }]
34
+ }], iconPosClass: [{
35
+ type: Input,
36
+ args: [{ "alias": "iconPos", transform: iconPosTransform }]
37
+ }] } });
38
+
39
+ /**
40
+ * Generated bundle index. Do not edit.
41
+ */
42
+
43
+ export { TextComponent };
44
+ //# sourceMappingURL=aril-ui-text.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-ui-text.mjs","sources":["../../projects/aril/ui/text/src/text.component.ts","../../projects/aril/ui/text/src/text.component.html","../../projects/aril/ui/text/aril-ui-text.ts"],"sourcesContent":["\r\n\r\nimport { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { InputTextModule } from 'primeng/inputtext';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\nimport {\r\n BaseInputComponent, IconPosTypes, InputErrorMessagePipe, PrimeIcon,\r\n ValueAccessorDirective, iconPosTransform, iconTransform\r\n} from 'aril/ui/lib';\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-text[ngModel], aril-text[formControl], aril-text[formControlName]',\r\n templateUrl: './text.component.html',\r\n imports: [ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe],\r\n hostDirectives: [ValueAccessorDirective],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class TextComponent extends BaseInputComponent {\r\n @Input() style?: object;\r\n @Input() styleClass?: string;\r\n @Input() customClass?: string;\r\n @Input() placeholder? = '';\r\n @Input({ transform: iconTransform }) icon?: PrimeIcon;\r\n @Input({ \"alias\": \"iconPos\", transform: iconPosTransform }) iconPosClass?: IconPosTypes;\r\n}\r\n","<ng-template #input>\n\t<input\n\t\tpInputText\n\t\ttype=\"text\"\n\t\t[style]=\"style\"\n\t\t[class]=\"customClass\"\n\t\t[placeholder]=\"placeholder\"\n\t\t[pTooltip]=\"\n\t\t\tngControl.invalid\n\t\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\n\t\t\t\t: ''\n\t\t\"\n\t\t[tooltipOptions]=\"tooltipOptions\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\" />\n</ng-template>\n\n@if (icon) {\n\t<span [class]=\"iconPosClass ?? 'p-input-icon-left'\">\n\t\t<i [class]=\"icon\"></i>\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n\t</span>\n} @else {\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAmBM,MAAO,aAAc,SAAQ,kBAAkB,CAAA;AARrD,IAAA,WAAA,GAAA;;QAYW,IAAW,CAAA,WAAA,GAAI,EAAE,CAAC;AAG5B,KAAA;8GAPY,aAAa,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAb,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,aAAa,EAKJ,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wEAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA,UAAA,EAAA,YAAA,EAAA,WAAA,EAAA,aAAA,EAAA,WAAA,EAAA,aAAA,EAAA,IAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,aAAa,CACO,EAAA,YAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,gBAAgB,CCzB1D,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,sBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,isBAyBA,EDVY,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,mBAAmB,EAAE,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,8MAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eA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AAS,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAA;;;AEzB5D;;AAEG;;;;"}
@@ -0,0 +1,34 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
3
+ import * as i2 from '@angular/forms';
4
+ import { ReactiveFormsModule } from '@angular/forms';
5
+ import * as i3 from 'primeng/inputtextarea';
6
+ import { InputTextareaModule } from 'primeng/inputtextarea';
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
+
12
+ class TextAreaComponent extends BaseInputComponent {
13
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextAreaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
14
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: TextAreaComponent, isStandalone: true, selector: "aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]", inputs: { rows: "rows", cols: "cols", style: "style", placeholder: "placeholder" }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<textarea\r\n\tpInputTextarea\r\n\t[rows]=\"rows\"\r\n\t[cols]=\"cols\"\r\n\t[style]=\"style\"\r\n\t[autoResize]=\"true\"\r\n\t[placeholder]=\"placeholder\"\r\n\t[pTooltip]=\"\r\n\t\tngControl.invalid\r\n\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\r\n\t\t\t: ''\r\n\t\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"></textarea>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: InputTextareaModule }, { kind: "directive", type: i3.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize"], outputs: ["onResize"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
15
+ }
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextAreaComponent, decorators: [{
17
+ type: Component,
18
+ args: [{ standalone: true, selector: 'aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]', imports: [ReactiveFormsModule, InputTextareaModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<textarea\r\n\tpInputTextarea\r\n\t[rows]=\"rows\"\r\n\t[cols]=\"cols\"\r\n\t[style]=\"style\"\r\n\t[autoResize]=\"true\"\r\n\t[placeholder]=\"placeholder\"\r\n\t[pTooltip]=\"\r\n\t\tngControl.invalid\r\n\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\r\n\t\t\t: ''\r\n\t\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"></textarea>\r\n" }]
19
+ }], propDecorators: { rows: [{
20
+ type: Input
21
+ }], cols: [{
22
+ type: Input
23
+ }], style: [{
24
+ type: Input
25
+ }], placeholder: [{
26
+ type: Input
27
+ }] } });
28
+
29
+ /**
30
+ * Generated bundle index. Do not edit.
31
+ */
32
+
33
+ export { TextAreaComponent };
34
+ //# sourceMappingURL=aril-ui-textArea.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-ui-textArea.mjs","sources":["../../projects/aril/ui/textArea/src/text-area.component.ts","../../projects/aril/ui/textArea/src/text-area.component.html","../../projects/aril/ui/textArea/aril-ui-textArea.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { InputTextareaModule } from 'primeng/inputtextarea';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]',\r\n templateUrl: './text-area.component.html',\r\n imports: [ReactiveFormsModule, InputTextareaModule, TooltipModule, InputErrorMessagePipe],\r\n hostDirectives: [ValueAccessorDirective],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class TextAreaComponent extends BaseInputComponent {\r\n @Input() rows?: number;\r\n @Input() cols?: number;\r\n @Input() style?: object;\r\n @Input() placeholder?: string;\r\n}\r\n","<textarea\r\n\tpInputTextarea\r\n\t[rows]=\"rows\"\r\n\t[cols]=\"cols\"\r\n\t[style]=\"style\"\r\n\t[autoResize]=\"true\"\r\n\t[placeholder]=\"placeholder\"\r\n\t[pTooltip]=\"\r\n\t\tngControl.invalid\r\n\t\t\t? (ngControl.control.value | inputErrorMessage: ngControl)\r\n\t\t\t: ''\r\n\t\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"></textarea>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAcM,MAAO,iBAAkB,SAAQ,kBAAkB,CAAA;8GAA5C,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,uFAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,MAAA,EAAA,KAAA,EAAA,OAAA,EAAA,WAAA,EAAA,aAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,sBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECd9B,mcAeA,EDLY,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,mBAAmB,ykBAAE,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,aAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,YAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,eAAA,EAAA,mBAAA,EAAA,eAAA,EAAA,QAAA,EAAA,WAAA,EAAA,WAAA,EAAA,MAAA,EAAA,aAAA,EAAA,cAAA,EAAA,UAAA,EAAA,YAAA,EAAA,cAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAI7E,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAR7B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,YACN,uFAAuF,EAAA,OAAA,EAExF,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,aAAa,EAAE,qBAAqB,CAAC,kBACzE,CAAC,sBAAsB,CAAC,EACvB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mcAAA,EAAA,CAAA;8BAGtC,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;;;AElBR;;AAEG;;;;"}
@@ -0,0 +1,74 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Component, ChangeDetectionStrategy, Input, Output } from '@angular/core';
3
+ import * as i1 from 'primeng/tree';
4
+ import { TreeModule } from 'primeng/tree';
5
+
6
+ /* eslint-disable @typescript-eslint/no-explicit-any */
7
+ class TreeComponent {
8
+ constructor() {
9
+ this.metaKeySelection = false;
10
+ this.propagateSelectionUp = false;
11
+ this.propagateSelectionDown = true;
12
+ this.filterMode = 'lenient';
13
+ this.filterBy = 'label';
14
+ this.nodeSelect = new EventEmitter();
15
+ this.nodeUnselect = new EventEmitter();
16
+ this.nodeExpand = new EventEmitter();
17
+ this.nodeCollapse = new EventEmitter();
18
+ }
19
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
20
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: TreeComponent, isStandalone: true, selector: "aril-tree", inputs: { value: "value", selectionMode: "selectionMode", selection: "selection", style: "style", styleClass: "styleClass", contextMenuSelection: "contextMenuSelection", contextMenu: "contextMenu", metaKeySelection: "metaKeySelection", propagateSelectionUp: "propagateSelectionUp", propagateSelectionDown: "propagateSelectionDown", loading: "loading", loadingIcon: "loadingIcon", filter: "filter", filterMode: "filterMode", filterBy: "filterBy", filterPlaceholder: "filterPlaceholder", filterLocale: "filterLocale" }, outputs: { nodeSelect: "nodeSelect", nodeUnselect: "nodeUnselect", nodeExpand: "nodeExpand", nodeCollapse: "nodeCollapse" }, ngImport: i0, template: "<p-tree\r\n\t[value]=\"value\"\r\n\t[selectionMode]=\"selectionMode\"\r\n\t[selection]=\"selection\"\r\n\t[style]=\"style\"\r\n\t[styleClass]=\"styleClass\"\r\n\t[contextMenu]=\"contextMenu\"\r\n\t[metaKeySelection]=\"metaKeySelection\"\r\n\t[propagateSelectionUp]=\"propagateSelectionUp\"\r\n\t[propagateSelectionDown]=\"propagateSelectionDown\"\r\n\t[loading]=\"loading\"\r\n\t[loadingIcon]=\"loadingIcon\"\r\n\t[filter]=\"filter\"\r\n\t[filterMode]=\"filterMode\"\r\n\t[filterBy]=\"filterBy\"\r\n\t[filterPlaceholder]=\"filterPlaceholder\"\r\n\t[filterLocale]=\"filterLocale\"\r\n\t(onNodeSelect)=\"nodeSelect.emit($event)\"\r\n\t(onNodeUnselect)=\"nodeUnselect.emit($event)\"\r\n\t(onNodeExpand)=\"nodeExpand.emit($event)\"\r\n\t(onNodeCollapse)=\"nodeCollapse.emit($event)\">\r\n</p-tree>\r\n", dependencies: [{ kind: "ngmodule", type: TreeModule }, { kind: "component", type: i1.Tree, selector: "p-tree", inputs: ["value", "selectionMode", "selection", "style", "styleClass", "contextMenu", "layout", "draggableScope", "droppableScope", "draggableNodes", "droppableNodes", "metaKeySelection", "propagateSelectionUp", "propagateSelectionDown", "loading", "loadingIcon", "emptyMessage", "ariaLabel", "togglerAriaLabel", "ariaLabelledBy", "validateDrop", "filter", "filterBy", "filterMode", "filterPlaceholder", "filteredNodes", "filterLocale", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "indentation", "_templateMap", "trackBy", "virtualNodeHeight"], outputs: ["selectionChange", "onNodeSelect", "onNodeUnselect", "onNodeExpand", "onNodeCollapse", "onNodeContextMenuSelect", "onNodeDrop", "onLazyLoad", "onScroll", "onScrollIndexChange", "onFilter"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
21
+ }
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TreeComponent, decorators: [{
23
+ type: Component,
24
+ args: [{ standalone: true, selector: 'aril-tree', imports: [TreeModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-tree\r\n\t[value]=\"value\"\r\n\t[selectionMode]=\"selectionMode\"\r\n\t[selection]=\"selection\"\r\n\t[style]=\"style\"\r\n\t[styleClass]=\"styleClass\"\r\n\t[contextMenu]=\"contextMenu\"\r\n\t[metaKeySelection]=\"metaKeySelection\"\r\n\t[propagateSelectionUp]=\"propagateSelectionUp\"\r\n\t[propagateSelectionDown]=\"propagateSelectionDown\"\r\n\t[loading]=\"loading\"\r\n\t[loadingIcon]=\"loadingIcon\"\r\n\t[filter]=\"filter\"\r\n\t[filterMode]=\"filterMode\"\r\n\t[filterBy]=\"filterBy\"\r\n\t[filterPlaceholder]=\"filterPlaceholder\"\r\n\t[filterLocale]=\"filterLocale\"\r\n\t(onNodeSelect)=\"nodeSelect.emit($event)\"\r\n\t(onNodeUnselect)=\"nodeUnselect.emit($event)\"\r\n\t(onNodeExpand)=\"nodeExpand.emit($event)\"\r\n\t(onNodeCollapse)=\"nodeCollapse.emit($event)\">\r\n</p-tree>\r\n" }]
25
+ }], propDecorators: { value: [{
26
+ type: Input
27
+ }], selectionMode: [{
28
+ type: Input
29
+ }], selection: [{
30
+ type: Input
31
+ }], style: [{
32
+ type: Input
33
+ }], styleClass: [{
34
+ type: Input
35
+ }], contextMenuSelection: [{
36
+ type: Input
37
+ }], contextMenu: [{
38
+ type: Input
39
+ }], metaKeySelection: [{
40
+ type: Input
41
+ }], propagateSelectionUp: [{
42
+ type: Input
43
+ }], propagateSelectionDown: [{
44
+ type: Input
45
+ }], loading: [{
46
+ type: Input
47
+ }], loadingIcon: [{
48
+ type: Input
49
+ }], filter: [{
50
+ type: Input
51
+ }], filterMode: [{
52
+ type: Input
53
+ }], filterBy: [{
54
+ type: Input
55
+ }], filterPlaceholder: [{
56
+ type: Input
57
+ }], filterLocale: [{
58
+ type: Input
59
+ }], nodeSelect: [{
60
+ type: Output
61
+ }], nodeUnselect: [{
62
+ type: Output
63
+ }], nodeExpand: [{
64
+ type: Output
65
+ }], nodeCollapse: [{
66
+ type: Output
67
+ }] } });
68
+
69
+ /**
70
+ * Generated bundle index. Do not edit.
71
+ */
72
+
73
+ export { TreeComponent };
74
+ //# sourceMappingURL=aril-ui-tree.mjs.map