@gravionlabs/helix-core 22.1.2 → 22.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (820) hide show
  1. package/fesm2022/gravionlabs-helix-core-accordion.mjs +994 -541
  2. package/fesm2022/gravionlabs-helix-core-accordion.mjs.map +1 -1
  3. package/fesm2022/gravionlabs-helix-core-animateonscroll.mjs +265 -166
  4. package/fesm2022/gravionlabs-helix-core-animateonscroll.mjs.map +1 -1
  5. package/fesm2022/gravionlabs-helix-core-api.mjs +926 -836
  6. package/fesm2022/gravionlabs-helix-core-api.mjs.map +1 -1
  7. package/fesm2022/gravionlabs-helix-core-autocomplete.mjs +2603 -1611
  8. package/fesm2022/gravionlabs-helix-core-autocomplete.mjs.map +1 -1
  9. package/fesm2022/gravionlabs-helix-core-autofocus.mjs +115 -79
  10. package/fesm2022/gravionlabs-helix-core-autofocus.mjs.map +1 -1
  11. package/fesm2022/gravionlabs-helix-core-avatar.mjs +356 -180
  12. package/fesm2022/gravionlabs-helix-core-avatar.mjs.map +1 -1
  13. package/fesm2022/gravionlabs-helix-core-avatargroup.mjs +200 -84
  14. package/fesm2022/gravionlabs-helix-core-avatargroup.mjs.map +1 -1
  15. package/fesm2022/gravionlabs-helix-core-badge.mjs +671 -390
  16. package/fesm2022/gravionlabs-helix-core-badge.mjs.map +1 -1
  17. package/fesm2022/gravionlabs-helix-core-base.mjs +113 -103
  18. package/fesm2022/gravionlabs-helix-core-base.mjs.map +1 -1
  19. package/fesm2022/gravionlabs-helix-core-basecomponent.mjs +498 -444
  20. package/fesm2022/gravionlabs-helix-core-basecomponent.mjs.map +1 -1
  21. package/fesm2022/gravionlabs-helix-core-baseeditableholder.mjs +131 -69
  22. package/fesm2022/gravionlabs-helix-core-baseeditableholder.mjs.map +1 -1
  23. package/fesm2022/gravionlabs-helix-core-baseinput.mjs +210 -94
  24. package/fesm2022/gravionlabs-helix-core-baseinput.mjs.map +1 -1
  25. package/fesm2022/gravionlabs-helix-core-basemodelholder.mjs +39 -26
  26. package/fesm2022/gravionlabs-helix-core-basemodelholder.mjs.map +1 -1
  27. package/fesm2022/gravionlabs-helix-core-bind.mjs +136 -98
  28. package/fesm2022/gravionlabs-helix-core-bind.mjs.map +1 -1
  29. package/fesm2022/gravionlabs-helix-core-blockui.mjs +390 -224
  30. package/fesm2022/gravionlabs-helix-core-blockui.mjs.map +1 -1
  31. package/fesm2022/gravionlabs-helix-core-breadcrumb.mjs +473 -212
  32. package/fesm2022/gravionlabs-helix-core-breadcrumb.mjs.map +1 -1
  33. package/fesm2022/gravionlabs-helix-core-button.mjs +1739 -825
  34. package/fesm2022/gravionlabs-helix-core-button.mjs.map +1 -1
  35. package/fesm2022/gravionlabs-helix-core-buttongroup.mjs +116 -64
  36. package/fesm2022/gravionlabs-helix-core-buttongroup.mjs.map +1 -1
  37. package/fesm2022/gravionlabs-helix-core-card.mjs +454 -205
  38. package/fesm2022/gravionlabs-helix-core-card.mjs.map +1 -1
  39. package/fesm2022/gravionlabs-helix-core-carousel.mjs +1238 -898
  40. package/fesm2022/gravionlabs-helix-core-carousel.mjs.map +1 -1
  41. package/fesm2022/gravionlabs-helix-core-cascadeselect.mjs +2373 -1337
  42. package/fesm2022/gravionlabs-helix-core-cascadeselect.mjs.map +1 -1
  43. package/fesm2022/gravionlabs-helix-core-chart.mjs +407 -214
  44. package/fesm2022/gravionlabs-helix-core-chart.mjs.map +1 -1
  45. package/fesm2022/gravionlabs-helix-core-checkbox.mjs +704 -346
  46. package/fesm2022/gravionlabs-helix-core-checkbox.mjs.map +1 -1
  47. package/fesm2022/gravionlabs-helix-core-chip.mjs +489 -251
  48. package/fesm2022/gravionlabs-helix-core-chip.mjs.map +1 -1
  49. package/fesm2022/gravionlabs-helix-core-classnames.mjs +95 -48
  50. package/fesm2022/gravionlabs-helix-core-classnames.mjs.map +1 -1
  51. package/fesm2022/gravionlabs-helix-core-colorpicker.mjs +975 -667
  52. package/fesm2022/gravionlabs-helix-core-colorpicker.mjs.map +1 -1
  53. package/fesm2022/gravionlabs-helix-core-config.mjs +395 -306
  54. package/fesm2022/gravionlabs-helix-core-config.mjs.map +1 -1
  55. package/fesm2022/gravionlabs-helix-core-confirmdialog.mjs +1222 -546
  56. package/fesm2022/gravionlabs-helix-core-confirmdialog.mjs.map +1 -1
  57. package/fesm2022/gravionlabs-helix-core-confirmpopup.mjs +878 -524
  58. package/fesm2022/gravionlabs-helix-core-confirmpopup.mjs.map +1 -1
  59. package/fesm2022/gravionlabs-helix-core-contextmenu.mjs +1917 -1031
  60. package/fesm2022/gravionlabs-helix-core-contextmenu.mjs.map +1 -1
  61. package/fesm2022/gravionlabs-helix-core-dataview.mjs +1075 -522
  62. package/fesm2022/gravionlabs-helix-core-dataview.mjs.map +1 -1
  63. package/fesm2022/gravionlabs-helix-core-datepicker.mjs +3797 -3313
  64. package/fesm2022/gravionlabs-helix-core-datepicker.mjs.map +1 -1
  65. package/fesm2022/gravionlabs-helix-core-dialog.mjs +1852 -1047
  66. package/fesm2022/gravionlabs-helix-core-dialog.mjs.map +1 -1
  67. package/fesm2022/gravionlabs-helix-core-divider.mjs +288 -136
  68. package/fesm2022/gravionlabs-helix-core-divider.mjs.map +1 -1
  69. package/fesm2022/gravionlabs-helix-core-dock.mjs +655 -387
  70. package/fesm2022/gravionlabs-helix-core-dock.mjs.map +1 -1
  71. package/fesm2022/gravionlabs-helix-core-dom.mjs +589 -760
  72. package/fesm2022/gravionlabs-helix-core-dom.mjs.map +1 -1
  73. package/fesm2022/gravionlabs-helix-core-dragdrop.mjs +457 -302
  74. package/fesm2022/gravionlabs-helix-core-dragdrop.mjs.map +1 -1
  75. package/fesm2022/gravionlabs-helix-core-drawer.mjs +986 -507
  76. package/fesm2022/gravionlabs-helix-core-drawer.mjs.map +1 -1
  77. package/fesm2022/gravionlabs-helix-core-dynamicdialog.mjs +849 -923
  78. package/fesm2022/gravionlabs-helix-core-dynamicdialog.mjs.map +1 -1
  79. package/fesm2022/gravionlabs-helix-core-editor.mjs +578 -383
  80. package/fesm2022/gravionlabs-helix-core-editor.mjs.map +1 -1
  81. package/fesm2022/gravionlabs-helix-core-fieldset.mjs +593 -280
  82. package/fesm2022/gravionlabs-helix-core-fieldset.mjs.map +1 -1
  83. package/fesm2022/gravionlabs-helix-core-fileupload.mjs +1882 -994
  84. package/fesm2022/gravionlabs-helix-core-fileupload.mjs.map +1 -1
  85. package/fesm2022/gravionlabs-helix-core-firsterror.mjs +41 -23
  86. package/fesm2022/gravionlabs-helix-core-firsterror.mjs.map +1 -1
  87. package/fesm2022/gravionlabs-helix-core-floatlabel.mjs +197 -94
  88. package/fesm2022/gravionlabs-helix-core-floatlabel.mjs.map +1 -1
  89. package/fesm2022/gravionlabs-helix-core-fluid.mjs +149 -74
  90. package/fesm2022/gravionlabs-helix-core-fluid.mjs.map +1 -1
  91. package/fesm2022/gravionlabs-helix-core-focustrap.mjs +141 -104
  92. package/fesm2022/gravionlabs-helix-core-focustrap.mjs.map +1 -1
  93. package/fesm2022/gravionlabs-helix-core-galleria.mjs +2800 -1449
  94. package/fesm2022/gravionlabs-helix-core-galleria.mjs.map +1 -1
  95. package/fesm2022/gravionlabs-helix-core-iconfield.mjs +214 -98
  96. package/fesm2022/gravionlabs-helix-core-iconfield.mjs.map +1 -1
  97. package/fesm2022/gravionlabs-helix-core-icons-angledoubledown.mjs +43 -24
  98. package/fesm2022/gravionlabs-helix-core-icons-angledoubledown.mjs.map +1 -1
  99. package/fesm2022/gravionlabs-helix-core-icons-angledoubleleft.mjs +43 -24
  100. package/fesm2022/gravionlabs-helix-core-icons-angledoubleleft.mjs.map +1 -1
  101. package/fesm2022/gravionlabs-helix-core-icons-angledoubleright.mjs +43 -24
  102. package/fesm2022/gravionlabs-helix-core-icons-angledoubleright.mjs.map +1 -1
  103. package/fesm2022/gravionlabs-helix-core-icons-angledoubleup.mjs +43 -24
  104. package/fesm2022/gravionlabs-helix-core-icons-angledoubleup.mjs.map +1 -1
  105. package/fesm2022/gravionlabs-helix-core-icons-angledown.mjs +43 -24
  106. package/fesm2022/gravionlabs-helix-core-icons-angledown.mjs.map +1 -1
  107. package/fesm2022/gravionlabs-helix-core-icons-angleleft.mjs +43 -24
  108. package/fesm2022/gravionlabs-helix-core-icons-angleleft.mjs.map +1 -1
  109. package/fesm2022/gravionlabs-helix-core-icons-angleright.mjs +43 -24
  110. package/fesm2022/gravionlabs-helix-core-icons-angleright.mjs.map +1 -1
  111. package/fesm2022/gravionlabs-helix-core-icons-angleup.mjs +43 -24
  112. package/fesm2022/gravionlabs-helix-core-icons-angleup.mjs.map +1 -1
  113. package/fesm2022/gravionlabs-helix-core-icons-arrowdown.mjs +48 -29
  114. package/fesm2022/gravionlabs-helix-core-icons-arrowdown.mjs.map +1 -1
  115. package/fesm2022/gravionlabs-helix-core-icons-arrowdownleft.mjs +43 -24
  116. package/fesm2022/gravionlabs-helix-core-icons-arrowdownleft.mjs.map +1 -1
  117. package/fesm2022/gravionlabs-helix-core-icons-arrowdownright.mjs +43 -24
  118. package/fesm2022/gravionlabs-helix-core-icons-arrowdownright.mjs.map +1 -1
  119. package/fesm2022/gravionlabs-helix-core-icons-arrowleft.mjs +48 -29
  120. package/fesm2022/gravionlabs-helix-core-icons-arrowleft.mjs.map +1 -1
  121. package/fesm2022/gravionlabs-helix-core-icons-arrowright.mjs +43 -24
  122. package/fesm2022/gravionlabs-helix-core-icons-arrowright.mjs.map +1 -1
  123. package/fesm2022/gravionlabs-helix-core-icons-arrowup.mjs +48 -29
  124. package/fesm2022/gravionlabs-helix-core-icons-arrowup.mjs.map +1 -1
  125. package/fesm2022/gravionlabs-helix-core-icons-ban.mjs +48 -29
  126. package/fesm2022/gravionlabs-helix-core-icons-ban.mjs.map +1 -1
  127. package/fesm2022/gravionlabs-helix-core-icons-bars.mjs +43 -24
  128. package/fesm2022/gravionlabs-helix-core-icons-bars.mjs.map +1 -1
  129. package/fesm2022/gravionlabs-helix-core-icons-baseicon.mjs +120 -64
  130. package/fesm2022/gravionlabs-helix-core-icons-baseicon.mjs.map +1 -1
  131. package/fesm2022/gravionlabs-helix-core-icons-blank.mjs +42 -23
  132. package/fesm2022/gravionlabs-helix-core-icons-blank.mjs.map +1 -1
  133. package/fesm2022/gravionlabs-helix-core-icons-calendar.mjs +43 -24
  134. package/fesm2022/gravionlabs-helix-core-icons-calendar.mjs.map +1 -1
  135. package/fesm2022/gravionlabs-helix-core-icons-caretleft.mjs +43 -24
  136. package/fesm2022/gravionlabs-helix-core-icons-caretleft.mjs.map +1 -1
  137. package/fesm2022/gravionlabs-helix-core-icons-caretright.mjs +43 -24
  138. package/fesm2022/gravionlabs-helix-core-icons-caretright.mjs.map +1 -1
  139. package/fesm2022/gravionlabs-helix-core-icons-check.mjs +43 -24
  140. package/fesm2022/gravionlabs-helix-core-icons-check.mjs.map +1 -1
  141. package/fesm2022/gravionlabs-helix-core-icons-chevrondown.mjs +43 -24
  142. package/fesm2022/gravionlabs-helix-core-icons-chevrondown.mjs.map +1 -1
  143. package/fesm2022/gravionlabs-helix-core-icons-chevronleft.mjs +43 -24
  144. package/fesm2022/gravionlabs-helix-core-icons-chevronleft.mjs.map +1 -1
  145. package/fesm2022/gravionlabs-helix-core-icons-chevronright.mjs +43 -24
  146. package/fesm2022/gravionlabs-helix-core-icons-chevronright.mjs.map +1 -1
  147. package/fesm2022/gravionlabs-helix-core-icons-chevronup.mjs +43 -24
  148. package/fesm2022/gravionlabs-helix-core-icons-chevronup.mjs.map +1 -1
  149. package/fesm2022/gravionlabs-helix-core-icons-exclamationtriangle.mjs +48 -29
  150. package/fesm2022/gravionlabs-helix-core-icons-exclamationtriangle.mjs.map +1 -1
  151. package/fesm2022/gravionlabs-helix-core-icons-eye.mjs +43 -24
  152. package/fesm2022/gravionlabs-helix-core-icons-eye.mjs.map +1 -1
  153. package/fesm2022/gravionlabs-helix-core-icons-eyeslash.mjs +48 -29
  154. package/fesm2022/gravionlabs-helix-core-icons-eyeslash.mjs.map +1 -1
  155. package/fesm2022/gravionlabs-helix-core-icons-filter.mjs +48 -29
  156. package/fesm2022/gravionlabs-helix-core-icons-filter.mjs.map +1 -1
  157. package/fesm2022/gravionlabs-helix-core-icons-filterfill.mjs +43 -24
  158. package/fesm2022/gravionlabs-helix-core-icons-filterfill.mjs.map +1 -1
  159. package/fesm2022/gravionlabs-helix-core-icons-filterslash.mjs +48 -29
  160. package/fesm2022/gravionlabs-helix-core-icons-filterslash.mjs.map +1 -1
  161. package/fesm2022/gravionlabs-helix-core-icons-home.mjs +48 -29
  162. package/fesm2022/gravionlabs-helix-core-icons-home.mjs.map +1 -1
  163. package/fesm2022/gravionlabs-helix-core-icons-infocircle.mjs +48 -29
  164. package/fesm2022/gravionlabs-helix-core-icons-infocircle.mjs.map +1 -1
  165. package/fesm2022/gravionlabs-helix-core-icons-minus.mjs +43 -24
  166. package/fesm2022/gravionlabs-helix-core-icons-minus.mjs.map +1 -1
  167. package/fesm2022/gravionlabs-helix-core-icons-pencil.mjs +48 -29
  168. package/fesm2022/gravionlabs-helix-core-icons-pencil.mjs.map +1 -1
  169. package/fesm2022/gravionlabs-helix-core-icons-plus.mjs +48 -29
  170. package/fesm2022/gravionlabs-helix-core-icons-plus.mjs.map +1 -1
  171. package/fesm2022/gravionlabs-helix-core-icons-refresh.mjs +48 -29
  172. package/fesm2022/gravionlabs-helix-core-icons-refresh.mjs.map +1 -1
  173. package/fesm2022/gravionlabs-helix-core-icons-search.mjs +48 -29
  174. package/fesm2022/gravionlabs-helix-core-icons-search.mjs.map +1 -1
  175. package/fesm2022/gravionlabs-helix-core-icons-searchminus.mjs +48 -29
  176. package/fesm2022/gravionlabs-helix-core-icons-searchminus.mjs.map +1 -1
  177. package/fesm2022/gravionlabs-helix-core-icons-searchplus.mjs +48 -29
  178. package/fesm2022/gravionlabs-helix-core-icons-searchplus.mjs.map +1 -1
  179. package/fesm2022/gravionlabs-helix-core-icons-sortalt.mjs +48 -29
  180. package/fesm2022/gravionlabs-helix-core-icons-sortalt.mjs.map +1 -1
  181. package/fesm2022/gravionlabs-helix-core-icons-sortamountdown.mjs +48 -29
  182. package/fesm2022/gravionlabs-helix-core-icons-sortamountdown.mjs.map +1 -1
  183. package/fesm2022/gravionlabs-helix-core-icons-sortamountupalt.mjs +48 -29
  184. package/fesm2022/gravionlabs-helix-core-icons-sortamountupalt.mjs.map +1 -1
  185. package/fesm2022/gravionlabs-helix-core-icons-spinner.mjs +48 -29
  186. package/fesm2022/gravionlabs-helix-core-icons-spinner.mjs.map +1 -1
  187. package/fesm2022/gravionlabs-helix-core-icons-star.mjs +48 -29
  188. package/fesm2022/gravionlabs-helix-core-icons-star.mjs.map +1 -1
  189. package/fesm2022/gravionlabs-helix-core-icons-starfill.mjs +48 -29
  190. package/fesm2022/gravionlabs-helix-core-icons-starfill.mjs.map +1 -1
  191. package/fesm2022/gravionlabs-helix-core-icons-thlarge.mjs +48 -29
  192. package/fesm2022/gravionlabs-helix-core-icons-thlarge.mjs.map +1 -1
  193. package/fesm2022/gravionlabs-helix-core-icons-times.mjs +43 -24
  194. package/fesm2022/gravionlabs-helix-core-icons-times.mjs.map +1 -1
  195. package/fesm2022/gravionlabs-helix-core-icons-timescircle.mjs +48 -29
  196. package/fesm2022/gravionlabs-helix-core-icons-timescircle.mjs.map +1 -1
  197. package/fesm2022/gravionlabs-helix-core-icons-trash.mjs +48 -29
  198. package/fesm2022/gravionlabs-helix-core-icons-trash.mjs.map +1 -1
  199. package/fesm2022/gravionlabs-helix-core-icons-undo.mjs +48 -29
  200. package/fesm2022/gravionlabs-helix-core-icons-undo.mjs.map +1 -1
  201. package/fesm2022/gravionlabs-helix-core-icons-upload.mjs +48 -29
  202. package/fesm2022/gravionlabs-helix-core-icons-upload.mjs.map +1 -1
  203. package/fesm2022/gravionlabs-helix-core-icons-windowmaximize.mjs +48 -29
  204. package/fesm2022/gravionlabs-helix-core-icons-windowmaximize.mjs.map +1 -1
  205. package/fesm2022/gravionlabs-helix-core-icons-windowminimize.mjs +48 -29
  206. package/fesm2022/gravionlabs-helix-core-icons-windowminimize.mjs.map +1 -1
  207. package/fesm2022/gravionlabs-helix-core-icons.mjs +53 -63
  208. package/fesm2022/gravionlabs-helix-core-iftalabel.mjs +175 -81
  209. package/fesm2022/gravionlabs-helix-core-iftalabel.mjs.map +1 -1
  210. package/fesm2022/gravionlabs-helix-core-image.mjs +1089 -552
  211. package/fesm2022/gravionlabs-helix-core-image.mjs.map +1 -1
  212. package/fesm2022/gravionlabs-helix-core-imagecompare.mjs +348 -165
  213. package/fesm2022/gravionlabs-helix-core-imagecompare.mjs.map +1 -1
  214. package/fesm2022/gravionlabs-helix-core-inplace.mjs +591 -249
  215. package/fesm2022/gravionlabs-helix-core-inplace.mjs.map +1 -1
  216. package/fesm2022/gravionlabs-helix-core-inputgroup.mjs +175 -91
  217. package/fesm2022/gravionlabs-helix-core-inputgroup.mjs.map +1 -1
  218. package/fesm2022/gravionlabs-helix-core-inputgroupaddon.mjs +196 -73
  219. package/fesm2022/gravionlabs-helix-core-inputgroupaddon.mjs.map +1 -1
  220. package/fesm2022/gravionlabs-helix-core-inputicon.mjs +207 -70
  221. package/fesm2022/gravionlabs-helix-core-inputicon.mjs.map +1 -1
  222. package/fesm2022/gravionlabs-helix-core-inputmask.mjs +1581 -1330
  223. package/fesm2022/gravionlabs-helix-core-inputmask.mjs.map +1 -1
  224. package/fesm2022/gravionlabs-helix-core-inputnumber.mjs +1696 -1294
  225. package/fesm2022/gravionlabs-helix-core-inputnumber.mjs.map +1 -1
  226. package/fesm2022/gravionlabs-helix-core-inputotp.mjs +576 -363
  227. package/fesm2022/gravionlabs-helix-core-inputotp.mjs.map +1 -1
  228. package/fesm2022/gravionlabs-helix-core-inputtext.mjs +344 -183
  229. package/fesm2022/gravionlabs-helix-core-inputtext.mjs.map +1 -1
  230. package/fesm2022/gravionlabs-helix-core-keyfilter.mjs +291 -252
  231. package/fesm2022/gravionlabs-helix-core-keyfilter.mjs.map +1 -1
  232. package/fesm2022/gravionlabs-helix-core-knob.mjs +642 -396
  233. package/fesm2022/gravionlabs-helix-core-knob.mjs.map +1 -1
  234. package/fesm2022/gravionlabs-helix-core-listbox.mjs +2354 -1401
  235. package/fesm2022/gravionlabs-helix-core-listbox.mjs.map +1 -1
  236. package/fesm2022/gravionlabs-helix-core-megamenu.mjs +1913 -1052
  237. package/fesm2022/gravionlabs-helix-core-megamenu.mjs.map +1 -1
  238. package/fesm2022/gravionlabs-helix-core-menu.mjs +1392 -767
  239. package/fesm2022/gravionlabs-helix-core-menu.mjs.map +1 -1
  240. package/fesm2022/gravionlabs-helix-core-menubar.mjs +1857 -984
  241. package/fesm2022/gravionlabs-helix-core-menubar.mjs.map +1 -1
  242. package/fesm2022/gravionlabs-helix-core-message.mjs +605 -288
  243. package/fesm2022/gravionlabs-helix-core-message.mjs.map +1 -1
  244. package/fesm2022/gravionlabs-helix-core-metergroup.mjs +719 -323
  245. package/fesm2022/gravionlabs-helix-core-metergroup.mjs.map +1 -1
  246. package/fesm2022/gravionlabs-helix-core-motion.mjs +1178 -694
  247. package/fesm2022/gravionlabs-helix-core-motion.mjs.map +1 -1
  248. package/fesm2022/gravionlabs-helix-core-multiselect.mjs +3437 -1839
  249. package/fesm2022/gravionlabs-helix-core-multiselect.mjs.map +1 -1
  250. package/fesm2022/gravionlabs-helix-core-orderlist.mjs +1426 -753
  251. package/fesm2022/gravionlabs-helix-core-orderlist.mjs.map +1 -1
  252. package/fesm2022/gravionlabs-helix-core-organizationchart.mjs +755 -371
  253. package/fesm2022/gravionlabs-helix-core-organizationchart.mjs.map +1 -1
  254. package/fesm2022/gravionlabs-helix-core-overlay.mjs +984 -600
  255. package/fesm2022/gravionlabs-helix-core-overlay.mjs.map +1 -1
  256. package/fesm2022/gravionlabs-helix-core-overlaybadge.mjs +310 -107
  257. package/fesm2022/gravionlabs-helix-core-overlaybadge.mjs.map +1 -1
  258. package/fesm2022/gravionlabs-helix-core-paginator.mjs +1076 -564
  259. package/fesm2022/gravionlabs-helix-core-paginator.mjs.map +1 -1
  260. package/fesm2022/gravionlabs-helix-core-panel.mjs +759 -364
  261. package/fesm2022/gravionlabs-helix-core-panel.mjs.map +1 -1
  262. package/fesm2022/gravionlabs-helix-core-panelmenu.mjs +1909 -888
  263. package/fesm2022/gravionlabs-helix-core-panelmenu.mjs.map +1 -1
  264. package/fesm2022/gravionlabs-helix-core-passthrough.mjs +10 -18
  265. package/fesm2022/gravionlabs-helix-core-passthrough.mjs.map +1 -1
  266. package/fesm2022/gravionlabs-helix-core-password.mjs +1624 -894
  267. package/fesm2022/gravionlabs-helix-core-password.mjs.map +1 -1
  268. package/fesm2022/gravionlabs-helix-core-picklist.mjs +2415 -1359
  269. package/fesm2022/gravionlabs-helix-core-picklist.mjs.map +1 -1
  270. package/fesm2022/gravionlabs-helix-core-popover.mjs +708 -442
  271. package/fesm2022/gravionlabs-helix-core-popover.mjs.map +1 -1
  272. package/fesm2022/gravionlabs-helix-core-progressbar.mjs +380 -170
  273. package/fesm2022/gravionlabs-helix-core-progressbar.mjs.map +1 -1
  274. package/fesm2022/gravionlabs-helix-core-progressspinner.mjs +276 -121
  275. package/fesm2022/gravionlabs-helix-core-progressspinner.mjs.map +1 -1
  276. package/fesm2022/gravionlabs-helix-core-radiobutton.mjs +525 -291
  277. package/fesm2022/gravionlabs-helix-core-radiobutton.mjs.map +1 -1
  278. package/fesm2022/gravionlabs-helix-core-rating.mjs +529 -286
  279. package/fesm2022/gravionlabs-helix-core-rating.mjs.map +1 -1
  280. package/fesm2022/gravionlabs-helix-core-ripple.mjs +194 -175
  281. package/fesm2022/gravionlabs-helix-core-ripple.mjs.map +1 -1
  282. package/fesm2022/gravionlabs-helix-core-scroller.mjs +1384 -977
  283. package/fesm2022/gravionlabs-helix-core-scroller.mjs.map +1 -1
  284. package/fesm2022/gravionlabs-helix-core-scrollpanel.mjs +605 -458
  285. package/fesm2022/gravionlabs-helix-core-scrollpanel.mjs.map +1 -1
  286. package/fesm2022/gravionlabs-helix-core-scrolltop.mjs +565 -261
  287. package/fesm2022/gravionlabs-helix-core-scrolltop.mjs.map +1 -1
  288. package/fesm2022/gravionlabs-helix-core-select.mjs +2959 -1644
  289. package/fesm2022/gravionlabs-helix-core-select.mjs.map +1 -1
  290. package/fesm2022/gravionlabs-helix-core-selectbutton.mjs +644 -335
  291. package/fesm2022/gravionlabs-helix-core-selectbutton.mjs.map +1 -1
  292. package/fesm2022/gravionlabs-helix-core-skeleton.mjs +315 -160
  293. package/fesm2022/gravionlabs-helix-core-skeleton.mjs.map +1 -1
  294. package/fesm2022/gravionlabs-helix-core-slider.mjs +839 -630
  295. package/fesm2022/gravionlabs-helix-core-slider.mjs.map +1 -1
  296. package/fesm2022/gravionlabs-helix-core-speeddial.mjs +1183 -700
  297. package/fesm2022/gravionlabs-helix-core-speeddial.mjs.map +1 -1
  298. package/fesm2022/gravionlabs-helix-core-splitbutton.mjs +977 -375
  299. package/fesm2022/gravionlabs-helix-core-splitbutton.mjs.map +1 -1
  300. package/fesm2022/gravionlabs-helix-core-splitter.mjs +737 -509
  301. package/fesm2022/gravionlabs-helix-core-splitter.mjs.map +1 -1
  302. package/fesm2022/gravionlabs-helix-core-stepper.mjs +1397 -628
  303. package/fesm2022/gravionlabs-helix-core-stepper.mjs.map +1 -1
  304. package/fesm2022/gravionlabs-helix-core-steps.mjs +457 -272
  305. package/fesm2022/gravionlabs-helix-core-steps.mjs.map +1 -1
  306. package/fesm2022/gravionlabs-helix-core-styleclass.mjs +466 -344
  307. package/fesm2022/gravionlabs-helix-core-styleclass.mjs.map +1 -1
  308. package/fesm2022/gravionlabs-helix-core-table.mjs +9728 -5590
  309. package/fesm2022/gravionlabs-helix-core-table.mjs.map +1 -1
  310. package/fesm2022/gravionlabs-helix-core-tabs.mjs +1350 -735
  311. package/fesm2022/gravionlabs-helix-core-tabs.mjs.map +1 -1
  312. package/fesm2022/gravionlabs-helix-core-tag.mjs +343 -154
  313. package/fesm2022/gravionlabs-helix-core-tag.mjs.map +1 -1
  314. package/fesm2022/gravionlabs-helix-core-terminal.mjs +384 -214
  315. package/fesm2022/gravionlabs-helix-core-terminal.mjs.map +1 -1
  316. package/fesm2022/gravionlabs-helix-core-textarea.mjs +347 -209
  317. package/fesm2022/gravionlabs-helix-core-textarea.mjs.map +1 -1
  318. package/fesm2022/gravionlabs-helix-core-themes-aura.mjs +4846 -5618
  319. package/fesm2022/gravionlabs-helix-core-themes-aura.mjs.map +1 -1
  320. package/fesm2022/gravionlabs-helix-core-themes-lara.mjs +4961 -5809
  321. package/fesm2022/gravionlabs-helix-core-themes-lara.mjs.map +1 -1
  322. package/fesm2022/gravionlabs-helix-core-themes-nora.mjs +4780 -5567
  323. package/fesm2022/gravionlabs-helix-core-themes-nora.mjs.map +1 -1
  324. package/fesm2022/gravionlabs-helix-core-themes-types.mjs +0 -700
  325. package/fesm2022/gravionlabs-helix-core-themes.mjs +4 -9
  326. package/fesm2022/gravionlabs-helix-core-themes.mjs.map +1 -1
  327. package/fesm2022/gravionlabs-helix-core-tieredmenu.mjs +1967 -1048
  328. package/fesm2022/gravionlabs-helix-core-tieredmenu.mjs.map +1 -1
  329. package/fesm2022/gravionlabs-helix-core-timeline.mjs +370 -185
  330. package/fesm2022/gravionlabs-helix-core-timeline.mjs.map +1 -1
  331. package/fesm2022/gravionlabs-helix-core-toast.mjs +1083 -526
  332. package/fesm2022/gravionlabs-helix-core-toast.mjs.map +1 -1
  333. package/fesm2022/gravionlabs-helix-core-togglebutton.mjs +609 -315
  334. package/fesm2022/gravionlabs-helix-core-togglebutton.mjs.map +1 -1
  335. package/fesm2022/gravionlabs-helix-core-toggleswitch.mjs +504 -246
  336. package/fesm2022/gravionlabs-helix-core-toggleswitch.mjs.map +1 -1
  337. package/fesm2022/gravionlabs-helix-core-toolbar.mjs +350 -149
  338. package/fesm2022/gravionlabs-helix-core-toolbar.mjs.map +1 -1
  339. package/fesm2022/gravionlabs-helix-core-tooltip.mjs +1035 -795
  340. package/fesm2022/gravionlabs-helix-core-tooltip.mjs.map +1 -1
  341. package/fesm2022/gravionlabs-helix-core-tree.mjs +2673 -1668
  342. package/fesm2022/gravionlabs-helix-core-tree.mjs.map +1 -1
  343. package/fesm2022/gravionlabs-helix-core-treeselect.mjs +1773 -976
  344. package/fesm2022/gravionlabs-helix-core-treeselect.mjs.map +1 -1
  345. package/fesm2022/gravionlabs-helix-core-treetable.mjs +5963 -3647
  346. package/fesm2022/gravionlabs-helix-core-treetable.mjs.map +1 -1
  347. package/fesm2022/gravionlabs-helix-core-ts-helpers.mjs +0 -4
  348. package/fesm2022/gravionlabs-helix-core-types-accordion.mjs +0 -4
  349. package/fesm2022/gravionlabs-helix-core-types-autocomplete.mjs +0 -4
  350. package/fesm2022/gravionlabs-helix-core-types-avatar.mjs +0 -4
  351. package/fesm2022/gravionlabs-helix-core-types-avatargroup.mjs +0 -4
  352. package/fesm2022/gravionlabs-helix-core-types-badge.mjs +0 -4
  353. package/fesm2022/gravionlabs-helix-core-types-blockui.mjs +0 -4
  354. package/fesm2022/gravionlabs-helix-core-types-breadcrumb.mjs +0 -4
  355. package/fesm2022/gravionlabs-helix-core-types-button.mjs +0 -4
  356. package/fesm2022/gravionlabs-helix-core-types-card.mjs +0 -4
  357. package/fesm2022/gravionlabs-helix-core-types-carousel.mjs +0 -4
  358. package/fesm2022/gravionlabs-helix-core-types-cascadeselect.mjs +0 -4
  359. package/fesm2022/gravionlabs-helix-core-types-chart.mjs +0 -4
  360. package/fesm2022/gravionlabs-helix-core-types-checkbox.mjs +0 -4
  361. package/fesm2022/gravionlabs-helix-core-types-chip.mjs +0 -4
  362. package/fesm2022/gravionlabs-helix-core-types-colorpicker.mjs +0 -4
  363. package/fesm2022/gravionlabs-helix-core-types-confirmdialog.mjs +0 -4
  364. package/fesm2022/gravionlabs-helix-core-types-confirmpopup.mjs +0 -4
  365. package/fesm2022/gravionlabs-helix-core-types-contextmenu.mjs +0 -4
  366. package/fesm2022/gravionlabs-helix-core-types-dataview.mjs +0 -4
  367. package/fesm2022/gravionlabs-helix-core-types-datepicker.mjs +0 -4
  368. package/fesm2022/gravionlabs-helix-core-types-dialog.mjs +0 -4
  369. package/fesm2022/gravionlabs-helix-core-types-divider.mjs +0 -4
  370. package/fesm2022/gravionlabs-helix-core-types-dock.mjs +0 -4
  371. package/fesm2022/gravionlabs-helix-core-types-drawer.mjs +0 -4
  372. package/fesm2022/gravionlabs-helix-core-types-editor.mjs +0 -4
  373. package/fesm2022/gravionlabs-helix-core-types-fieldset.mjs +0 -4
  374. package/fesm2022/gravionlabs-helix-core-types-fileupload.mjs +0 -4
  375. package/fesm2022/gravionlabs-helix-core-types-floatlabel.mjs +0 -4
  376. package/fesm2022/gravionlabs-helix-core-types-fluid.mjs +0 -4
  377. package/fesm2022/gravionlabs-helix-core-types-galleria.mjs +0 -4
  378. package/fesm2022/gravionlabs-helix-core-types-iconfield.mjs +0 -4
  379. package/fesm2022/gravionlabs-helix-core-types-iftalabel.mjs +0 -4
  380. package/fesm2022/gravionlabs-helix-core-types-image.mjs +0 -4
  381. package/fesm2022/gravionlabs-helix-core-types-imagecompare.mjs +0 -4
  382. package/fesm2022/gravionlabs-helix-core-types-inplace.mjs +0 -4
  383. package/fesm2022/gravionlabs-helix-core-types-inputgroup.mjs +0 -4
  384. package/fesm2022/gravionlabs-helix-core-types-inputgroupaddon.mjs +0 -4
  385. package/fesm2022/gravionlabs-helix-core-types-inputicon.mjs +0 -4
  386. package/fesm2022/gravionlabs-helix-core-types-inputmask.mjs +0 -4
  387. package/fesm2022/gravionlabs-helix-core-types-inputnumber.mjs +0 -4
  388. package/fesm2022/gravionlabs-helix-core-types-inputotp.mjs +0 -4
  389. package/fesm2022/gravionlabs-helix-core-types-inputtext.mjs +0 -4
  390. package/fesm2022/gravionlabs-helix-core-types-knob.mjs +0 -4
  391. package/fesm2022/gravionlabs-helix-core-types-listbox.mjs +0 -4
  392. package/fesm2022/gravionlabs-helix-core-types-megamenu.mjs +0 -4
  393. package/fesm2022/gravionlabs-helix-core-types-menu.mjs +0 -4
  394. package/fesm2022/gravionlabs-helix-core-types-menubar.mjs +0 -4
  395. package/fesm2022/gravionlabs-helix-core-types-message.mjs +0 -4
  396. package/fesm2022/gravionlabs-helix-core-types-metergroup.mjs +0 -4
  397. package/fesm2022/gravionlabs-helix-core-types-motion.mjs +0 -4
  398. package/fesm2022/gravionlabs-helix-core-types-multiselect.mjs +0 -4
  399. package/fesm2022/gravionlabs-helix-core-types-orderlist.mjs +0 -4
  400. package/fesm2022/gravionlabs-helix-core-types-organizationchart.mjs +0 -4
  401. package/fesm2022/gravionlabs-helix-core-types-overlay.mjs +0 -4
  402. package/fesm2022/gravionlabs-helix-core-types-overlaybadge.mjs +0 -4
  403. package/fesm2022/gravionlabs-helix-core-types-paginator.mjs +0 -4
  404. package/fesm2022/gravionlabs-helix-core-types-panel.mjs +0 -4
  405. package/fesm2022/gravionlabs-helix-core-types-panelmenu.mjs +0 -4
  406. package/fesm2022/gravionlabs-helix-core-types-password.mjs +0 -4
  407. package/fesm2022/gravionlabs-helix-core-types-picklist.mjs +0 -4
  408. package/fesm2022/gravionlabs-helix-core-types-popover.mjs +0 -4
  409. package/fesm2022/gravionlabs-helix-core-types-progressbar.mjs +0 -4
  410. package/fesm2022/gravionlabs-helix-core-types-progressspinner.mjs +0 -4
  411. package/fesm2022/gravionlabs-helix-core-types-radiobutton.mjs +0 -4
  412. package/fesm2022/gravionlabs-helix-core-types-rating.mjs +0 -4
  413. package/fesm2022/gravionlabs-helix-core-types-scroller.mjs +0 -4
  414. package/fesm2022/gravionlabs-helix-core-types-scrollpanel.mjs +0 -4
  415. package/fesm2022/gravionlabs-helix-core-types-scrolltop.mjs +0 -4
  416. package/fesm2022/gravionlabs-helix-core-types-select.mjs +0 -4
  417. package/fesm2022/gravionlabs-helix-core-types-selectbutton.mjs +0 -4
  418. package/fesm2022/gravionlabs-helix-core-types-skeleton.mjs +0 -4
  419. package/fesm2022/gravionlabs-helix-core-types-slider.mjs +0 -4
  420. package/fesm2022/gravionlabs-helix-core-types-speeddial.mjs +0 -4
  421. package/fesm2022/gravionlabs-helix-core-types-splitbutton.mjs +0 -4
  422. package/fesm2022/gravionlabs-helix-core-types-splitter.mjs +0 -4
  423. package/fesm2022/gravionlabs-helix-core-types-stepper.mjs +0 -4
  424. package/fesm2022/gravionlabs-helix-core-types-table.mjs +0 -4
  425. package/fesm2022/gravionlabs-helix-core-types-tabs.mjs +0 -4
  426. package/fesm2022/gravionlabs-helix-core-types-tag.mjs +0 -4
  427. package/fesm2022/gravionlabs-helix-core-types-terminal.mjs +0 -4
  428. package/fesm2022/gravionlabs-helix-core-types-textarea.mjs +0 -4
  429. package/fesm2022/gravionlabs-helix-core-types-tieredmenu.mjs +0 -4
  430. package/fesm2022/gravionlabs-helix-core-types-timeline.mjs +0 -4
  431. package/fesm2022/gravionlabs-helix-core-types-toast.mjs +0 -4
  432. package/fesm2022/gravionlabs-helix-core-types-togglebutton.mjs +0 -4
  433. package/fesm2022/gravionlabs-helix-core-types-toggleswitch.mjs +0 -4
  434. package/fesm2022/gravionlabs-helix-core-types-toolbar.mjs +0 -4
  435. package/fesm2022/gravionlabs-helix-core-types-tooltip.mjs +0 -4
  436. package/fesm2022/gravionlabs-helix-core-types-tree.mjs +0 -4
  437. package/fesm2022/gravionlabs-helix-core-types-treeselect.mjs +0 -4
  438. package/fesm2022/gravionlabs-helix-core-types-treetable.mjs +0 -4
  439. package/fesm2022/gravionlabs-helix-core-uix-motion.mjs +192 -282
  440. package/fesm2022/gravionlabs-helix-core-uix-motion.mjs.map +1 -1
  441. package/fesm2022/gravionlabs-helix-core-uix-styled.mjs +827 -813
  442. package/fesm2022/gravionlabs-helix-core-uix-styled.mjs.map +1 -1
  443. package/fesm2022/gravionlabs-helix-core-uix-utils.mjs +967 -1558
  444. package/fesm2022/gravionlabs-helix-core-uix-utils.mjs.map +1 -1
  445. package/fesm2022/gravionlabs-helix-core-usestyle.mjs +62 -52
  446. package/fesm2022/gravionlabs-helix-core-usestyle.mjs.map +1 -1
  447. package/fesm2022/gravionlabs-helix-core-utils.mjs +272 -366
  448. package/fesm2022/gravionlabs-helix-core-utils.mjs.map +1 -1
  449. package/fesm2022/gravionlabs-helix-core-validators.mjs +86 -93
  450. package/fesm2022/gravionlabs-helix-core-validators.mjs.map +1 -1
  451. package/fesm2022/gravionlabs-helix-core.mjs +1 -5
  452. package/fesm2022/gravionlabs-helix-core.mjs.map +1 -1
  453. package/package.json +1 -1
  454. package/types/gravionlabs-helix-core-accordion.d.ts +317 -246
  455. package/types/gravionlabs-helix-core-animateonscroll.d.ts +89 -61
  456. package/types/gravionlabs-helix-core-api.d.ts +1743 -1777
  457. package/types/gravionlabs-helix-core-autocomplete.d.ts +1070 -750
  458. package/types/gravionlabs-helix-core-autofocus.d.ts +29 -26
  459. package/types/gravionlabs-helix-core-avatar.d.ts +165 -123
  460. package/types/gravionlabs-helix-core-avatargroup.d.ts +58 -48
  461. package/types/gravionlabs-helix-core-badge.d.ts +243 -162
  462. package/types/gravionlabs-helix-core-base.d.ts +46 -49
  463. package/types/gravionlabs-helix-core-basecomponent.d.ts +187 -170
  464. package/types/gravionlabs-helix-core-baseeditableholder.d.ts +63 -45
  465. package/types/gravionlabs-helix-core-baseinput.d.ts +121 -73
  466. package/types/gravionlabs-helix-core-basemodelholder.d.ts +9 -12
  467. package/types/gravionlabs-helix-core-bind.d.ts +36 -33
  468. package/types/gravionlabs-helix-core-blockui.d.ts +114 -90
  469. package/types/gravionlabs-helix-core-breadcrumb.d.ts +158 -132
  470. package/types/gravionlabs-helix-core-button.d.ts +716 -443
  471. package/types/gravionlabs-helix-core-buttongroup.d.ts +28 -33
  472. package/types/gravionlabs-helix-core-card.d.ts +156 -136
  473. package/types/gravionlabs-helix-core-carousel.d.ts +461 -361
  474. package/types/gravionlabs-helix-core-cascadeselect.d.ts +880 -604
  475. package/types/gravionlabs-helix-core-chart.d.ts +162 -115
  476. package/types/gravionlabs-helix-core-checkbox.d.ts +310 -211
  477. package/types/gravionlabs-helix-core-chip.d.ts +202 -147
  478. package/types/gravionlabs-helix-core-classnames.d.ts +23 -21
  479. package/types/gravionlabs-helix-core-colorpicker.d.ts +359 -290
  480. package/types/gravionlabs-helix-core-config.d.ts +249 -259
  481. package/types/gravionlabs-helix-core-confirmdialog.d.ts +498 -325
  482. package/types/gravionlabs-helix-core-confirmpopup.d.ts +273 -218
  483. package/types/gravionlabs-helix-core-contextmenu.d.ts +509 -351
  484. package/types/gravionlabs-helix-core-dataview.d.ts +507 -349
  485. package/types/gravionlabs-helix-core-datepicker.d.ts +1267 -954
  486. package/types/gravionlabs-helix-core-dialog.d.ts +758 -515
  487. package/types/gravionlabs-helix-core-divider.d.ts +126 -106
  488. package/types/gravionlabs-helix-core-dock.d.ts +219 -181
  489. package/types/gravionlabs-helix-core-dom.d.ts +97 -100
  490. package/types/gravionlabs-helix-core-dragdrop.d.ts +149 -107
  491. package/types/gravionlabs-helix-core-drawer.d.ts +382 -278
  492. package/types/gravionlabs-helix-core-dynamicdialog.d.ts +512 -519
  493. package/types/gravionlabs-helix-core-editor.d.ts +225 -173
  494. package/types/gravionlabs-helix-core-fieldset.d.ts +209 -170
  495. package/types/gravionlabs-helix-core-fileupload.d.ts +764 -533
  496. package/types/gravionlabs-helix-core-firsterror.d.ts +8 -11
  497. package/types/gravionlabs-helix-core-floatlabel.d.ts +57 -52
  498. package/types/gravionlabs-helix-core-fluid.d.ts +38 -39
  499. package/types/gravionlabs-helix-core-focustrap.d.ts +33 -30
  500. package/types/gravionlabs-helix-core-galleria.d.ts +957 -628
  501. package/types/gravionlabs-helix-core-iconfield.d.ts +72 -57
  502. package/types/gravionlabs-helix-core-icons-angledoubledown.d.ts +6 -9
  503. package/types/gravionlabs-helix-core-icons-angledoubleleft.d.ts +6 -9
  504. package/types/gravionlabs-helix-core-icons-angledoubleright.d.ts +6 -9
  505. package/types/gravionlabs-helix-core-icons-angledoubleup.d.ts +6 -9
  506. package/types/gravionlabs-helix-core-icons-angledown.d.ts +6 -9
  507. package/types/gravionlabs-helix-core-icons-angleleft.d.ts +6 -9
  508. package/types/gravionlabs-helix-core-icons-angleright.d.ts +6 -9
  509. package/types/gravionlabs-helix-core-icons-angleup.d.ts +6 -9
  510. package/types/gravionlabs-helix-core-icons-arrowdown.d.ts +8 -11
  511. package/types/gravionlabs-helix-core-icons-arrowdownleft.d.ts +6 -9
  512. package/types/gravionlabs-helix-core-icons-arrowdownright.d.ts +6 -9
  513. package/types/gravionlabs-helix-core-icons-arrowleft.d.ts +8 -11
  514. package/types/gravionlabs-helix-core-icons-arrowright.d.ts +6 -9
  515. package/types/gravionlabs-helix-core-icons-arrowup.d.ts +8 -11
  516. package/types/gravionlabs-helix-core-icons-ban.d.ts +8 -11
  517. package/types/gravionlabs-helix-core-icons-bars.d.ts +6 -9
  518. package/types/gravionlabs-helix-core-icons-baseicon.d.ts +25 -24
  519. package/types/gravionlabs-helix-core-icons-blank.d.ts +6 -9
  520. package/types/gravionlabs-helix-core-icons-calendar.d.ts +6 -9
  521. package/types/gravionlabs-helix-core-icons-caretleft.d.ts +6 -9
  522. package/types/gravionlabs-helix-core-icons-caretright.d.ts +6 -9
  523. package/types/gravionlabs-helix-core-icons-check.d.ts +6 -9
  524. package/types/gravionlabs-helix-core-icons-chevrondown.d.ts +6 -9
  525. package/types/gravionlabs-helix-core-icons-chevronleft.d.ts +6 -9
  526. package/types/gravionlabs-helix-core-icons-chevronright.d.ts +6 -9
  527. package/types/gravionlabs-helix-core-icons-chevronup.d.ts +6 -9
  528. package/types/gravionlabs-helix-core-icons-exclamationtriangle.d.ts +8 -11
  529. package/types/gravionlabs-helix-core-icons-eye.d.ts +6 -9
  530. package/types/gravionlabs-helix-core-icons-eyeslash.d.ts +8 -11
  531. package/types/gravionlabs-helix-core-icons-filter.d.ts +8 -11
  532. package/types/gravionlabs-helix-core-icons-filterfill.d.ts +6 -9
  533. package/types/gravionlabs-helix-core-icons-filterslash.d.ts +8 -11
  534. package/types/gravionlabs-helix-core-icons-home.d.ts +8 -11
  535. package/types/gravionlabs-helix-core-icons-infocircle.d.ts +8 -11
  536. package/types/gravionlabs-helix-core-icons-minus.d.ts +6 -9
  537. package/types/gravionlabs-helix-core-icons-pencil.d.ts +8 -11
  538. package/types/gravionlabs-helix-core-icons-plus.d.ts +8 -11
  539. package/types/gravionlabs-helix-core-icons-refresh.d.ts +8 -11
  540. package/types/gravionlabs-helix-core-icons-search.d.ts +8 -11
  541. package/types/gravionlabs-helix-core-icons-searchminus.d.ts +8 -11
  542. package/types/gravionlabs-helix-core-icons-searchplus.d.ts +8 -11
  543. package/types/gravionlabs-helix-core-icons-sortalt.d.ts +8 -11
  544. package/types/gravionlabs-helix-core-icons-sortamountdown.d.ts +8 -11
  545. package/types/gravionlabs-helix-core-icons-sortamountupalt.d.ts +8 -11
  546. package/types/gravionlabs-helix-core-icons-spinner.d.ts +8 -11
  547. package/types/gravionlabs-helix-core-icons-star.d.ts +8 -11
  548. package/types/gravionlabs-helix-core-icons-starfill.d.ts +8 -11
  549. package/types/gravionlabs-helix-core-icons-thlarge.d.ts +8 -11
  550. package/types/gravionlabs-helix-core-icons-times.d.ts +6 -9
  551. package/types/gravionlabs-helix-core-icons-timescircle.d.ts +8 -11
  552. package/types/gravionlabs-helix-core-icons-trash.d.ts +8 -11
  553. package/types/gravionlabs-helix-core-icons-undo.d.ts +8 -11
  554. package/types/gravionlabs-helix-core-icons-upload.d.ts +8 -11
  555. package/types/gravionlabs-helix-core-icons-windowmaximize.d.ts +8 -11
  556. package/types/gravionlabs-helix-core-icons-windowminimize.d.ts +8 -11
  557. package/types/gravionlabs-helix-core-icons.d.ts +53 -53
  558. package/types/gravionlabs-helix-core-iftalabel.d.ts +42 -43
  559. package/types/gravionlabs-helix-core-image.d.ts +440 -331
  560. package/types/gravionlabs-helix-core-imagecompare.d.ts +99 -84
  561. package/types/gravionlabs-helix-core-inplace.d.ts +188 -149
  562. package/types/gravionlabs-helix-core-inputgroup.d.ts +55 -50
  563. package/types/gravionlabs-helix-core-inputgroupaddon.d.ts +54 -43
  564. package/types/gravionlabs-helix-core-inputicon.d.ts +49 -38
  565. package/types/gravionlabs-helix-core-inputmask.d.ts +499 -353
  566. package/types/gravionlabs-helix-core-inputnumber.d.ts +581 -410
  567. package/types/gravionlabs-helix-core-inputotp.d.ts +206 -158
  568. package/types/gravionlabs-helix-core-inputtext.d.ts +142 -102
  569. package/types/gravionlabs-helix-core-keyfilter.d.ts +62 -53
  570. package/types/gravionlabs-helix-core-knob.d.ts +265 -188
  571. package/types/gravionlabs-helix-core-listbox.d.ts +897 -638
  572. package/types/gravionlabs-helix-core-megamenu.d.ts +512 -365
  573. package/types/gravionlabs-helix-core-menu.d.ts +441 -343
  574. package/types/gravionlabs-helix-core-menubar.d.ts +499 -361
  575. package/types/gravionlabs-helix-core-message.d.ts +267 -195
  576. package/types/gravionlabs-helix-core-metergroup.d.ts +256 -190
  577. package/types/gravionlabs-helix-core-motion.d.ts +602 -385
  578. package/types/gravionlabs-helix-core-multiselect.d.ts +1256 -855
  579. package/types/gravionlabs-helix-core-orderlist.d.ts +504 -351
  580. package/types/gravionlabs-helix-core-organizationchart.d.ts +264 -203
  581. package/types/gravionlabs-helix-core-overlay.d.ts +417 -307
  582. package/types/gravionlabs-helix-core-overlaybadge.d.ts +107 -71
  583. package/types/gravionlabs-helix-core-paginator.d.ts +445 -336
  584. package/types/gravionlabs-helix-core-panel.d.ts +285 -225
  585. package/types/gravionlabs-helix-core-panelmenu.d.ts +499 -340
  586. package/types/gravionlabs-helix-core-passthrough.d.ts +5 -7
  587. package/types/gravionlabs-helix-core-password.d.ts +657 -463
  588. package/types/gravionlabs-helix-core-picklist.d.ts +938 -647
  589. package/types/gravionlabs-helix-core-popover.d.ts +259 -190
  590. package/types/gravionlabs-helix-core-progressbar.d.ts +141 -106
  591. package/types/gravionlabs-helix-core-progressspinner.d.ts +101 -76
  592. package/types/gravionlabs-helix-core-radiobutton.d.ts +228 -174
  593. package/types/gravionlabs-helix-core-rating.d.ts +217 -178
  594. package/types/gravionlabs-helix-core-ripple.d.ts +43 -48
  595. package/types/gravionlabs-helix-core-scroller.d.ts +505 -371
  596. package/types/gravionlabs-helix-core-scrollpanel.d.ts +151 -141
  597. package/types/gravionlabs-helix-core-scrolltop.d.ts +195 -140
  598. package/types/gravionlabs-helix-core-select.d.ts +1095 -749
  599. package/types/gravionlabs-helix-core-selectbutton.d.ts +238 -165
  600. package/types/gravionlabs-helix-core-skeleton.d.ts +123 -88
  601. package/types/gravionlabs-helix-core-slider.d.ts +259 -201
  602. package/types/gravionlabs-helix-core-speeddial.d.ts +511 -390
  603. package/types/gravionlabs-helix-core-splitbutton.d.ts +422 -267
  604. package/types/gravionlabs-helix-core-splitter.d.ts +246 -192
  605. package/types/gravionlabs-helix-core-stepper.d.ts +428 -269
  606. package/types/gravionlabs-helix-core-steps.d.ts +162 -134
  607. package/types/gravionlabs-helix-core-styleclass.d.ts +165 -107
  608. package/types/gravionlabs-helix-core-table.d.ts +2908 -1935
  609. package/types/gravionlabs-helix-core-tabs.d.ts +471 -311
  610. package/types/gravionlabs-helix-core-tag.d.ts +123 -98
  611. package/types/gravionlabs-helix-core-terminal.d.ts +142 -124
  612. package/types/gravionlabs-helix-core-textarea.d.ts +147 -110
  613. package/types/gravionlabs-helix-core-themes-aura.d.ts +957 -942
  614. package/types/gravionlabs-helix-core-themes-lara.d.ts +968 -953
  615. package/types/gravionlabs-helix-core-themes-nora.d.ts +954 -939
  616. package/types/gravionlabs-helix-core-themes-types.d.ts +17940 -18746
  617. package/types/gravionlabs-helix-core-themes.d.ts +8 -11
  618. package/types/gravionlabs-helix-core-tieredmenu.d.ts +583 -398
  619. package/types/gravionlabs-helix-core-timeline.d.ts +145 -125
  620. package/types/gravionlabs-helix-core-toast.d.ts +408 -275
  621. package/types/gravionlabs-helix-core-togglebutton.d.ts +264 -188
  622. package/types/gravionlabs-helix-core-toggleswitch.d.ts +202 -150
  623. package/types/gravionlabs-helix-core-toolbar.d.ts +100 -90
  624. package/types/gravionlabs-helix-core-tooltip.d.ts +362 -256
  625. package/types/gravionlabs-helix-core-tree.d.ts +902 -630
  626. package/types/gravionlabs-helix-core-treeselect.d.ts +770 -559
  627. package/types/gravionlabs-helix-core-treetable.d.ts +1715 -1205
  628. package/types/gravionlabs-helix-core-ts-helpers.d.ts +4 -6
  629. package/types/gravionlabs-helix-core-types-accordion.d.ts +42 -45
  630. package/types/gravionlabs-helix-core-types-autocomplete.d.ts +230 -233
  631. package/types/gravionlabs-helix-core-types-avatar.d.ts +23 -26
  632. package/types/gravionlabs-helix-core-types-avatargroup.d.ts +11 -14
  633. package/types/gravionlabs-helix-core-types-badge.d.ts +11 -14
  634. package/types/gravionlabs-helix-core-types-blockui.d.ts +18 -21
  635. package/types/gravionlabs-helix-core-types-breadcrumb.d.ts +65 -68
  636. package/types/gravionlabs-helix-core-types-button.d.ts +90 -93
  637. package/types/gravionlabs-helix-core-types-card.d.ts +54 -57
  638. package/types/gravionlabs-helix-core-types-carousel.d.ts +107 -110
  639. package/types/gravionlabs-helix-core-types-cascadeselect.d.ts +151 -157
  640. package/types/gravionlabs-helix-core-types-chart.d.ts +15 -18
  641. package/types/gravionlabs-helix-core-types-checkbox.d.ts +48 -51
  642. package/types/gravionlabs-helix-core-types-chip.d.ts +49 -52
  643. package/types/gravionlabs-helix-core-types-colorpicker.d.ts +58 -61
  644. package/types/gravionlabs-helix-core-types-confirmdialog.d.ts +116 -119
  645. package/types/gravionlabs-helix-core-types-confirmpopup.d.ts +74 -77
  646. package/types/gravionlabs-helix-core-types-contextmenu.d.ts +71 -74
  647. package/types/gravionlabs-helix-core-types-dataview.d.ts +178 -181
  648. package/types/gravionlabs-helix-core-types-datepicker.d.ts +436 -439
  649. package/types/gravionlabs-helix-core-types-dialog.d.ts +86 -89
  650. package/types/gravionlabs-helix-core-types-divider.d.ts +11 -14
  651. package/types/gravionlabs-helix-core-types-dock.d.ts +44 -47
  652. package/types/gravionlabs-helix-core-types-drawer.d.ts +61 -64
  653. package/types/gravionlabs-helix-core-types-editor.d.ts +143 -146
  654. package/types/gravionlabs-helix-core-types-fieldset.d.ts +69 -73
  655. package/types/gravionlabs-helix-core-types-fileupload.d.ts +260 -265
  656. package/types/gravionlabs-helix-core-types-floatlabel.d.ts +11 -14
  657. package/types/gravionlabs-helix-core-types-fluid.d.ts +11 -14
  658. package/types/gravionlabs-helix-core-types-galleria.d.ts +204 -207
  659. package/types/gravionlabs-helix-core-types-iconfield.d.ts +11 -14
  660. package/types/gravionlabs-helix-core-types-iftalabel.d.ts +11 -14
  661. package/types/gravionlabs-helix-core-types-image.d.ts +113 -116
  662. package/types/gravionlabs-helix-core-types-imagecompare.d.ts +22 -25
  663. package/types/gravionlabs-helix-core-types-inplace.d.ts +46 -49
  664. package/types/gravionlabs-helix-core-types-inputgroup.d.ts +11 -14
  665. package/types/gravionlabs-helix-core-types-inputgroupaddon.d.ts +11 -14
  666. package/types/gravionlabs-helix-core-types-inputicon.d.ts +11 -14
  667. package/types/gravionlabs-helix-core-types-inputmask.d.ts +30 -33
  668. package/types/gravionlabs-helix-core-types-inputnumber.d.ts +68 -71
  669. package/types/gravionlabs-helix-core-types-inputotp.d.ts +67 -70
  670. package/types/gravionlabs-helix-core-types-inputtext.d.ts +7 -10
  671. package/types/gravionlabs-helix-core-types-knob.d.ts +23 -26
  672. package/types/gravionlabs-helix-core-types-listbox.d.ts +262 -266
  673. package/types/gravionlabs-helix-core-types-megamenu.d.ts +112 -115
  674. package/types/gravionlabs-helix-core-types-menu.d.ts +83 -86
  675. package/types/gravionlabs-helix-core-types-menubar.d.ts +98 -101
  676. package/types/gravionlabs-helix-core-types-message.d.ts +61 -64
  677. package/types/gravionlabs-helix-core-types-metergroup.d.ts +135 -138
  678. package/types/gravionlabs-helix-core-types-motion.d.ts +11 -14
  679. package/types/gravionlabs-helix-core-types-multiselect.d.ts +302 -306
  680. package/types/gravionlabs-helix-core-types-orderlist.d.ts +125 -128
  681. package/types/gravionlabs-helix-core-types-organizationchart.d.ts +90 -96
  682. package/types/gravionlabs-helix-core-types-overlay.d.ts +31 -34
  683. package/types/gravionlabs-helix-core-types-overlaybadge.d.ts +17 -20
  684. package/types/gravionlabs-helix-core-types-paginator.d.ts +131 -134
  685. package/types/gravionlabs-helix-core-types-panel.d.ts +89 -93
  686. package/types/gravionlabs-helix-core-types-panelmenu.d.ts +105 -108
  687. package/types/gravionlabs-helix-core-types-password.d.ts +94 -97
  688. package/types/gravionlabs-helix-core-types-picklist.d.ts +240 -250
  689. package/types/gravionlabs-helix-core-types-popover.d.ts +33 -36
  690. package/types/gravionlabs-helix-core-types-progressbar.d.ts +32 -35
  691. package/types/gravionlabs-helix-core-types-progressspinner.d.ts +19 -22
  692. package/types/gravionlabs-helix-core-types-radiobutton.d.ts +29 -32
  693. package/types/gravionlabs-helix-core-types-rating.d.ts +62 -65
  694. package/types/gravionlabs-helix-core-types-scroller.d.ts +142 -146
  695. package/types/gravionlabs-helix-core-types-scrollpanel.d.ts +30 -33
  696. package/types/gravionlabs-helix-core-types-scrolltop.d.ts +35 -38
  697. package/types/gravionlabs-helix-core-types-select.d.ts +245 -248
  698. package/types/gravionlabs-helix-core-types-selectbutton.d.ts +56 -59
  699. package/types/gravionlabs-helix-core-types-skeleton.d.ts +11 -14
  700. package/types/gravionlabs-helix-core-types-slider.d.ts +50 -53
  701. package/types/gravionlabs-helix-core-types-speeddial.d.ts +69 -72
  702. package/types/gravionlabs-helix-core-types-splitbutton.d.ts +41 -44
  703. package/types/gravionlabs-helix-core-types-splitter.d.ts +36 -40
  704. package/types/gravionlabs-helix-core-types-stepper.d.ts +68 -71
  705. package/types/gravionlabs-helix-core-types-table.d.ts +721 -727
  706. package/types/gravionlabs-helix-core-types-tabs.d.ts +51 -54
  707. package/types/gravionlabs-helix-core-types-tag.d.ts +26 -29
  708. package/types/gravionlabs-helix-core-types-terminal.d.ts +43 -46
  709. package/types/gravionlabs-helix-core-types-textarea.d.ts +11 -14
  710. package/types/gravionlabs-helix-core-types-tieredmenu.d.ts +69 -72
  711. package/types/gravionlabs-helix-core-types-timeline.d.ts +58 -61
  712. package/types/gravionlabs-helix-core-types-toast.d.ts +86 -89
  713. package/types/gravionlabs-helix-core-types-togglebutton.d.ts +51 -54
  714. package/types/gravionlabs-helix-core-types-toggleswitch.d.ts +41 -44
  715. package/types/gravionlabs-helix-core-types-toolbar.d.ts +34 -37
  716. package/types/gravionlabs-helix-core-types-tooltip.d.ts +15 -18
  717. package/types/gravionlabs-helix-core-types-tree.d.ts +230 -239
  718. package/types/gravionlabs-helix-core-types-treeselect.d.ts +195 -199
  719. package/types/gravionlabs-helix-core-types-treetable.d.ts +486 -491
  720. package/types/gravionlabs-helix-core-uix-motion.d.ts +177 -190
  721. package/types/gravionlabs-helix-core-uix-styled.d.ts +254 -277
  722. package/types/gravionlabs-helix-core-uix-utils.d.ts +39 -176
  723. package/types/gravionlabs-helix-core-usestyle.d.ts +12 -15
  724. package/types/gravionlabs-helix-core-utils.d.ts +45 -50
  725. package/types/gravionlabs-helix-core-validators.d.ts +29 -34
  726. package/types/gravionlabs-helix-core.d.ts +2 -2
  727. package/fesm2022/gravionlabs-helix-core-icons.mjs.map +0 -1
  728. package/fesm2022/gravionlabs-helix-core-themes-types.mjs.map +0 -1
  729. package/fesm2022/gravionlabs-helix-core-ts-helpers.mjs.map +0 -1
  730. package/fesm2022/gravionlabs-helix-core-types-accordion.mjs.map +0 -1
  731. package/fesm2022/gravionlabs-helix-core-types-autocomplete.mjs.map +0 -1
  732. package/fesm2022/gravionlabs-helix-core-types-avatar.mjs.map +0 -1
  733. package/fesm2022/gravionlabs-helix-core-types-avatargroup.mjs.map +0 -1
  734. package/fesm2022/gravionlabs-helix-core-types-badge.mjs.map +0 -1
  735. package/fesm2022/gravionlabs-helix-core-types-blockui.mjs.map +0 -1
  736. package/fesm2022/gravionlabs-helix-core-types-breadcrumb.mjs.map +0 -1
  737. package/fesm2022/gravionlabs-helix-core-types-button.mjs.map +0 -1
  738. package/fesm2022/gravionlabs-helix-core-types-card.mjs.map +0 -1
  739. package/fesm2022/gravionlabs-helix-core-types-carousel.mjs.map +0 -1
  740. package/fesm2022/gravionlabs-helix-core-types-cascadeselect.mjs.map +0 -1
  741. package/fesm2022/gravionlabs-helix-core-types-chart.mjs.map +0 -1
  742. package/fesm2022/gravionlabs-helix-core-types-checkbox.mjs.map +0 -1
  743. package/fesm2022/gravionlabs-helix-core-types-chip.mjs.map +0 -1
  744. package/fesm2022/gravionlabs-helix-core-types-colorpicker.mjs.map +0 -1
  745. package/fesm2022/gravionlabs-helix-core-types-confirmdialog.mjs.map +0 -1
  746. package/fesm2022/gravionlabs-helix-core-types-confirmpopup.mjs.map +0 -1
  747. package/fesm2022/gravionlabs-helix-core-types-contextmenu.mjs.map +0 -1
  748. package/fesm2022/gravionlabs-helix-core-types-dataview.mjs.map +0 -1
  749. package/fesm2022/gravionlabs-helix-core-types-datepicker.mjs.map +0 -1
  750. package/fesm2022/gravionlabs-helix-core-types-dialog.mjs.map +0 -1
  751. package/fesm2022/gravionlabs-helix-core-types-divider.mjs.map +0 -1
  752. package/fesm2022/gravionlabs-helix-core-types-dock.mjs.map +0 -1
  753. package/fesm2022/gravionlabs-helix-core-types-drawer.mjs.map +0 -1
  754. package/fesm2022/gravionlabs-helix-core-types-editor.mjs.map +0 -1
  755. package/fesm2022/gravionlabs-helix-core-types-fieldset.mjs.map +0 -1
  756. package/fesm2022/gravionlabs-helix-core-types-fileupload.mjs.map +0 -1
  757. package/fesm2022/gravionlabs-helix-core-types-floatlabel.mjs.map +0 -1
  758. package/fesm2022/gravionlabs-helix-core-types-fluid.mjs.map +0 -1
  759. package/fesm2022/gravionlabs-helix-core-types-galleria.mjs.map +0 -1
  760. package/fesm2022/gravionlabs-helix-core-types-iconfield.mjs.map +0 -1
  761. package/fesm2022/gravionlabs-helix-core-types-iftalabel.mjs.map +0 -1
  762. package/fesm2022/gravionlabs-helix-core-types-image.mjs.map +0 -1
  763. package/fesm2022/gravionlabs-helix-core-types-imagecompare.mjs.map +0 -1
  764. package/fesm2022/gravionlabs-helix-core-types-inplace.mjs.map +0 -1
  765. package/fesm2022/gravionlabs-helix-core-types-inputgroup.mjs.map +0 -1
  766. package/fesm2022/gravionlabs-helix-core-types-inputgroupaddon.mjs.map +0 -1
  767. package/fesm2022/gravionlabs-helix-core-types-inputicon.mjs.map +0 -1
  768. package/fesm2022/gravionlabs-helix-core-types-inputmask.mjs.map +0 -1
  769. package/fesm2022/gravionlabs-helix-core-types-inputnumber.mjs.map +0 -1
  770. package/fesm2022/gravionlabs-helix-core-types-inputotp.mjs.map +0 -1
  771. package/fesm2022/gravionlabs-helix-core-types-inputtext.mjs.map +0 -1
  772. package/fesm2022/gravionlabs-helix-core-types-knob.mjs.map +0 -1
  773. package/fesm2022/gravionlabs-helix-core-types-listbox.mjs.map +0 -1
  774. package/fesm2022/gravionlabs-helix-core-types-megamenu.mjs.map +0 -1
  775. package/fesm2022/gravionlabs-helix-core-types-menu.mjs.map +0 -1
  776. package/fesm2022/gravionlabs-helix-core-types-menubar.mjs.map +0 -1
  777. package/fesm2022/gravionlabs-helix-core-types-message.mjs.map +0 -1
  778. package/fesm2022/gravionlabs-helix-core-types-metergroup.mjs.map +0 -1
  779. package/fesm2022/gravionlabs-helix-core-types-motion.mjs.map +0 -1
  780. package/fesm2022/gravionlabs-helix-core-types-multiselect.mjs.map +0 -1
  781. package/fesm2022/gravionlabs-helix-core-types-orderlist.mjs.map +0 -1
  782. package/fesm2022/gravionlabs-helix-core-types-organizationchart.mjs.map +0 -1
  783. package/fesm2022/gravionlabs-helix-core-types-overlay.mjs.map +0 -1
  784. package/fesm2022/gravionlabs-helix-core-types-overlaybadge.mjs.map +0 -1
  785. package/fesm2022/gravionlabs-helix-core-types-paginator.mjs.map +0 -1
  786. package/fesm2022/gravionlabs-helix-core-types-panel.mjs.map +0 -1
  787. package/fesm2022/gravionlabs-helix-core-types-panelmenu.mjs.map +0 -1
  788. package/fesm2022/gravionlabs-helix-core-types-password.mjs.map +0 -1
  789. package/fesm2022/gravionlabs-helix-core-types-picklist.mjs.map +0 -1
  790. package/fesm2022/gravionlabs-helix-core-types-popover.mjs.map +0 -1
  791. package/fesm2022/gravionlabs-helix-core-types-progressbar.mjs.map +0 -1
  792. package/fesm2022/gravionlabs-helix-core-types-progressspinner.mjs.map +0 -1
  793. package/fesm2022/gravionlabs-helix-core-types-radiobutton.mjs.map +0 -1
  794. package/fesm2022/gravionlabs-helix-core-types-rating.mjs.map +0 -1
  795. package/fesm2022/gravionlabs-helix-core-types-scroller.mjs.map +0 -1
  796. package/fesm2022/gravionlabs-helix-core-types-scrollpanel.mjs.map +0 -1
  797. package/fesm2022/gravionlabs-helix-core-types-scrolltop.mjs.map +0 -1
  798. package/fesm2022/gravionlabs-helix-core-types-select.mjs.map +0 -1
  799. package/fesm2022/gravionlabs-helix-core-types-selectbutton.mjs.map +0 -1
  800. package/fesm2022/gravionlabs-helix-core-types-skeleton.mjs.map +0 -1
  801. package/fesm2022/gravionlabs-helix-core-types-slider.mjs.map +0 -1
  802. package/fesm2022/gravionlabs-helix-core-types-speeddial.mjs.map +0 -1
  803. package/fesm2022/gravionlabs-helix-core-types-splitbutton.mjs.map +0 -1
  804. package/fesm2022/gravionlabs-helix-core-types-splitter.mjs.map +0 -1
  805. package/fesm2022/gravionlabs-helix-core-types-stepper.mjs.map +0 -1
  806. package/fesm2022/gravionlabs-helix-core-types-table.mjs.map +0 -1
  807. package/fesm2022/gravionlabs-helix-core-types-tabs.mjs.map +0 -1
  808. package/fesm2022/gravionlabs-helix-core-types-tag.mjs.map +0 -1
  809. package/fesm2022/gravionlabs-helix-core-types-terminal.mjs.map +0 -1
  810. package/fesm2022/gravionlabs-helix-core-types-textarea.mjs.map +0 -1
  811. package/fesm2022/gravionlabs-helix-core-types-tieredmenu.mjs.map +0 -1
  812. package/fesm2022/gravionlabs-helix-core-types-timeline.mjs.map +0 -1
  813. package/fesm2022/gravionlabs-helix-core-types-toast.mjs.map +0 -1
  814. package/fesm2022/gravionlabs-helix-core-types-togglebutton.mjs.map +0 -1
  815. package/fesm2022/gravionlabs-helix-core-types-toggleswitch.mjs.map +0 -1
  816. package/fesm2022/gravionlabs-helix-core-types-toolbar.mjs.map +0 -1
  817. package/fesm2022/gravionlabs-helix-core-types-tooltip.mjs.map +0 -1
  818. package/fesm2022/gravionlabs-helix-core-types-tree.mjs.map +0 -1
  819. package/fesm2022/gravionlabs-helix-core-types-treeselect.mjs.map +0 -1
  820. package/fesm2022/gravionlabs-helix-core-types-treetable.mjs.map +0 -1
@@ -1,23 +1,22 @@
1
- export * from '@gravionlabs/helix-core/types/fileupload';
2
- import * as i1 from '@angular/common';
3
- import { CommonModule, isPlatformBrowser } from '@angular/common';
4
- import { HttpClient, HttpEventType } from '@angular/common/http';
5
- import * as i0 from '@angular/core';
6
- import { Injectable, InjectionToken, inject, output, input, ChangeDetectionStrategy, Component, booleanAttribute, numberAttribute, contentChild, viewChild, model, NgZone, contentChildren, ViewEncapsulation, NgModule } from '@angular/core';
7
- import { DomSanitizer } from '@angular/platform-browser';
8
- import { addClass, removeClass } from '@gravionlabs/helix-core/uix/utils';
9
- import { TranslationKeys, HelixTemplate, SharedModule } from '@gravionlabs/helix-core/api';
10
- import { Badge } from '@gravionlabs/helix-core/badge';
11
- import { BaseComponent, PARENT_INSTANCE } from '@gravionlabs/helix-core/basecomponent';
12
- import * as i2 from '@gravionlabs/helix-core/bind';
13
- import { Bind } from '@gravionlabs/helix-core/bind';
14
- import { Button } from '@gravionlabs/helix-core/button';
15
- import { TimesIcon, PlusIcon, UploadIcon } from '@gravionlabs/helix-core/icons';
16
- import { Message } from '@gravionlabs/helix-core/message';
17
- import { ProgressBar } from '@gravionlabs/helix-core/progressbar';
18
- import { BaseStyle } from '@gravionlabs/helix-core/base';
19
-
20
- const style = /*css*/ `
1
+ import * as i1 from "@angular/common";
2
+ import { CommonModule, isPlatformBrowser } from "@angular/common";
3
+ import { HttpClient, HttpEventType } from "@angular/common/http";
4
+ import * as i0 from "@angular/core";
5
+ import { ChangeDetectionStrategy, Component, Injectable, InjectionToken, NgModule, NgZone, ViewEncapsulation, booleanAttribute, contentChild, contentChildren, inject, input, model, numberAttribute, output, viewChild } from "@angular/core";
6
+ import { DomSanitizer } from "@angular/platform-browser";
7
+ import { addClass, removeClass } from "@gravionlabs/helix-core/uix/utils";
8
+ import { HelixTemplate, SharedModule, TranslationKeys } from "@gravionlabs/helix-core/api";
9
+ import { Badge } from "@gravionlabs/helix-core/badge";
10
+ import { BaseComponent, PARENT_INSTANCE } from "@gravionlabs/helix-core/basecomponent";
11
+ import * as i2 from "@gravionlabs/helix-core/bind";
12
+ import { Bind } from "@gravionlabs/helix-core/bind";
13
+ import { Button } from "@gravionlabs/helix-core/button";
14
+ import { PlusIcon, TimesIcon, UploadIcon } from "@gravionlabs/helix-core/icons";
15
+ import { Message } from "@gravionlabs/helix-core/message";
16
+ import { ProgressBar } from "@gravionlabs/helix-core/progressbar";
17
+ import { BaseStyle } from "@gravionlabs/helix-core/base";
18
+ export * from "@gravionlabs/helix-core/types/fileupload";
19
+ const style = `
21
20
  .h-fileupload input[type='file'] {
22
21
  display: none;
23
22
  }
@@ -104,982 +103,1871 @@ const style = /*css*/ `
104
103
  gap: dt('fileupload.basic.gap');
105
104
  }
106
105
  `;
107
-
108
106
  const classes = {
109
- root: ({ instance }) => `h-fileupload h-fileupload-${instance.mode()} h-component`,
110
- header: 'h-fileupload-header',
111
- pcChooseButton: 'h-fileupload-choose-button',
112
- pcUploadButton: 'h-fileupload-upload-button',
113
- pcCancelButton: 'h-fileupload-cancel-button',
114
- content: 'h-fileupload-content',
115
- fileList: 'h-fileupload-file-list',
116
- file: 'h-fileupload-file',
117
- fileThumbnail: 'h-fileupload-file-thumbnail',
118
- fileInfo: 'h-fileupload-file-info',
119
- fileName: 'h-fileupload-file-name',
120
- fileSize: 'h-fileupload-file-size',
121
- pcFileBadge: 'h-fileupload-file-badge',
122
- fileActions: 'h-fileupload-file-actions',
123
- pcFileRemoveButton: 'h-fileupload-file-remove-button',
124
- basicContent: 'h-fileupload-basic-content'
107
+ root: ({ instance }) => `h-fileupload h-fileupload-${instance.mode()} h-component`,
108
+ header: "h-fileupload-header",
109
+ pcChooseButton: "h-fileupload-choose-button",
110
+ pcUploadButton: "h-fileupload-upload-button",
111
+ pcCancelButton: "h-fileupload-cancel-button",
112
+ content: "h-fileupload-content",
113
+ fileList: "h-fileupload-file-list",
114
+ file: "h-fileupload-file",
115
+ fileThumbnail: "h-fileupload-file-thumbnail",
116
+ fileInfo: "h-fileupload-file-info",
117
+ fileName: "h-fileupload-file-name",
118
+ fileSize: "h-fileupload-file-size",
119
+ pcFileBadge: "h-fileupload-file-badge",
120
+ fileActions: "h-fileupload-file-actions",
121
+ pcFileRemoveButton: "h-fileupload-file-remove-button",
122
+ basicContent: "h-fileupload-basic-content"
125
123
  };
126
- class FileUploadStyle extends BaseStyle {
127
- name = 'fileupload';
128
- style = style;
129
- classes = classes;
130
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileUploadStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
131
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileUploadStyle });
132
- }
133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileUploadStyle, decorators: [{
134
- type: Injectable
135
- }] });
136
- /**
137
- *
138
- * FileUpload is an advanced uploader with dragdrop support, multi file uploads, auto uploading, progress tracking and validations.
139
- *
140
- * [Live Demo](https://www.primeng.org/fileupload/)
141
- *
142
- * @module fileuploadstyle
143
- *
144
- */
124
+ var FileUploadStyle = class FileUploadStyle extends BaseStyle {
125
+ name = "fileupload";
126
+ style = style;
127
+ classes = classes;
128
+ static ɵfac = i0.ɵɵngDeclareFactory({
129
+ minVersion: "12.0.0",
130
+ version: "22.2.1",
131
+ ngImport: i0,
132
+ type: FileUploadStyle,
133
+ deps: null,
134
+ target: i0.ɵɵFactoryTarget.Injectable
135
+ });
136
+ static ɵprov = i0.ɵɵngDeclareInjectable({
137
+ minVersion: "12.0.0",
138
+ version: "22.2.1",
139
+ ngImport: i0,
140
+ type: FileUploadStyle
141
+ });
142
+ };
143
+ i0.ɵɵngDeclareClassMetadata({
144
+ minVersion: "12.0.0",
145
+ version: "22.2.1",
146
+ ngImport: i0,
147
+ type: FileUploadStyle,
148
+ decorators: [{ type: Injectable }]
149
+ });
145
150
  var FileUploadClasses;
146
- (function (FileUploadClasses) {
147
- /**
148
- * Class name of the root element
149
- */
150
- FileUploadClasses["root"] = "h-fileupload";
151
- /**
152
- * Class name of the header element
153
- */
154
- FileUploadClasses["header"] = "h-fileupload-header";
155
- /**
156
- * Class name of the choose button element
157
- */
158
- FileUploadClasses["pcChooseButton"] = "h-fileupload-choose-button";
159
- /**
160
- * Class name of the upload button element
161
- */
162
- FileUploadClasses["pcUploadButton"] = "h-fileupload-upload-button";
163
- /**
164
- * Class name of the cancel button element
165
- */
166
- FileUploadClasses["pcCancelButton"] = "h-fileupload-cancel-button";
167
- /**
168
- * Class name of the content element
169
- */
170
- FileUploadClasses["content"] = "h-fileupload-content";
171
- /**
172
- * Class name of the file list element
173
- */
174
- FileUploadClasses["fileList"] = "h-fileupload-file-list";
175
- /**
176
- * Class name of the file element
177
- */
178
- FileUploadClasses["file"] = "h-fileupload-file";
179
- /**
180
- * Class name of the file thumbnail element
181
- */
182
- FileUploadClasses["fileThumbnail"] = "h-fileupload-file-thumbnail";
183
- /**
184
- * Class name of the file info element
185
- */
186
- FileUploadClasses["fileInfo"] = "h-fileupload-file-info";
187
- /**
188
- * Class name of the file name element
189
- */
190
- FileUploadClasses["fileName"] = "h-fileupload-file-name";
191
- /**
192
- * Class name of the file size element
193
- */
194
- FileUploadClasses["fileSize"] = "h-fileupload-file-size";
195
- /**
196
- * Class name of the file badge element
197
- */
198
- FileUploadClasses["pcFileBadge"] = "h-fileupload-file-badge";
199
- /**
200
- * Class name of the file actions element
201
- */
202
- FileUploadClasses["fileActions"] = "h-fileupload-file-actions";
203
- /**
204
- * Class name of the file remove button element
205
- */
206
- FileUploadClasses["pcFileRemoveButton"] = "h-fileupload-file-remove-button";
207
- /**
208
- * Class name of the content in basic mode
209
- */
210
- FileUploadClasses["basicContent"] = "h-fileupload-basic-content";
151
+ (function(FileUploadClasses) {
152
+ FileUploadClasses["root"] = "h-fileupload";
153
+ FileUploadClasses["header"] = "h-fileupload-header";
154
+ FileUploadClasses["pcChooseButton"] = "h-fileupload-choose-button";
155
+ FileUploadClasses["pcUploadButton"] = "h-fileupload-upload-button";
156
+ FileUploadClasses["pcCancelButton"] = "h-fileupload-cancel-button";
157
+ FileUploadClasses["content"] = "h-fileupload-content";
158
+ FileUploadClasses["fileList"] = "h-fileupload-file-list";
159
+ FileUploadClasses["file"] = "h-fileupload-file";
160
+ FileUploadClasses["fileThumbnail"] = "h-fileupload-file-thumbnail";
161
+ FileUploadClasses["fileInfo"] = "h-fileupload-file-info";
162
+ FileUploadClasses["fileName"] = "h-fileupload-file-name";
163
+ FileUploadClasses["fileSize"] = "h-fileupload-file-size";
164
+ FileUploadClasses["pcFileBadge"] = "h-fileupload-file-badge";
165
+ FileUploadClasses["fileActions"] = "h-fileupload-file-actions";
166
+ FileUploadClasses["pcFileRemoveButton"] = "h-fileupload-file-remove-button";
167
+ FileUploadClasses["basicContent"] = "h-fileupload-basic-content";
211
168
  })(FileUploadClasses || (FileUploadClasses = {}));
212
-
213
- const FILEUPLOAD_INSTANCE = new InjectionToken('FILEUPLOAD_INSTANCE');
214
- class FileContent extends BaseComponent {
215
- _componentStyle = inject(FileUploadStyle);
216
- $pcFileUpload = inject(FILEUPLOAD_INSTANCE);
217
- onRemove = output();
218
- files = input(/* @ts-ignore */
219
- ...(ngDevMode ? [undefined, { debugName: "files" }] : /* istanbul ignore next */ []));
220
- badgeSeverity = input('warn', /* @ts-ignore */
221
- ...(ngDevMode ? [{ debugName: "badgeSeverity" }] : /* istanbul ignore next */ []));
222
- badgeValue = input(/* @ts-ignore */
223
- ...(ngDevMode ? [undefined, { debugName: "badgeValue" }] : /* istanbul ignore next */ []));
224
- previewWidth = input(50, /* @ts-ignore */
225
- ...(ngDevMode ? [{ debugName: "previewWidth" }] : /* istanbul ignore next */ []));
226
- fileRemoveIconTemplate = input(/* @ts-ignore */
227
- ...(ngDevMode ? [undefined, { debugName: "fileRemoveIconTemplate" }] : /* istanbul ignore next */ []));
228
- onRemoveClick(event, index) {
229
- this.onRemove.emit({ event, index });
230
- }
231
- formatSize(bytes) {
232
- const k = 1024;
233
- const dm = 3;
234
- const sizes = this.config.getTranslation(TranslationKeys.FILE_SIZE_TYPES);
235
- if (bytes === 0) {
236
- return `0 ${sizes[0]}`;
237
- }
238
- const i = Math.floor(Math.log(bytes) / Math.log(k));
239
- const formattedSize = (bytes / Math.pow(k, i)).toFixed(dm);
240
- return `${formattedSize} ${sizes[i]}`;
241
- }
242
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileContent, deps: null, target: i0.ɵɵFactoryTarget.Component });
243
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: FileContent, isStandalone: true, selector: "[hFileContent]", inputs: { files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null }, badgeSeverity: { classPropertyName: "badgeSeverity", publicName: "badgeSeverity", isSignal: true, isRequired: false, transformFunction: null }, badgeValue: { classPropertyName: "badgeValue", publicName: "badgeValue", isSignal: true, isRequired: false, transformFunction: null }, previewWidth: { classPropertyName: "previewWidth", publicName: "previewWidth", isSignal: true, isRequired: false, transformFunction: null }, fileRemoveIconTemplate: { classPropertyName: "fileRemoveIconTemplate", publicName: "fileRemoveIconTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onRemove: "onRemove" }, providers: [FileUploadStyle], usesInheritance: true, ngImport: i0, template: "@for (file of files(); track file?.name + '-' + $index; let index = $index) {\n <div [class]=\"cx('file')\" [hBind]=\"$pcFileUpload.ptm('file')\">\n <img role=\"presentation\" [class]=\"cx('fileThumbnail')\" [attr.alt]=\"file.name\" [src]=\"file.objectURL\" [width]=\"previewWidth()\" [hBind]=\"$pcFileUpload.ptm('fileThumbnail')\" />\n <div [class]=\"cx('fileInfo')\" [hBind]=\"$pcFileUpload.ptm('fileInfo')\">\n <div [class]=\"cx('fileName')\" [hBind]=\"$pcFileUpload.ptm('fileName')\">{{ file.name }}</div>\n <span [class]=\"cx('fileSize')\" [hBind]=\"$pcFileUpload.ptm('fileSize')\">{{ formatSize(file.size) }}</span>\n </div>\n <h-badge [value]=\"badgeValue()\" [severity]=\"badgeSeverity()\" [class]=\"cx('pcFileBadge')\" [pt]=\"$pcFileUpload.ptm('pcFileBadge')\" [unstyled]=\"unstyled()\" />\n <div [class]=\"cx('fileActions')\" [hBind]=\"$pcFileUpload.ptm('fileActions')\">\n <h-button (onClick)=\"onRemoveClick($event, index)\" [styleClass]=\"cx('pcFileRemoveButton')\" text rounded severity=\"danger\" [pt]=\"$pcFileUpload.ptm('pcFileRemoveButton')\" [unstyled]=\"unstyled()\">\n <ng-template #icon let-iconClass=\"class\">\n @if (fileRemoveIconTemplate()) {\n <ng-template *ngTemplateOutlet=\"fileRemoveIconTemplate(); context: { class: iconClass, file: file, index: index }\"></ng-template>\n } @else {\n <svg data-h-icon=\"times\" [class]=\"iconClass\" [attr.aria-hidden]=\"true\" />\n }\n </ng-template>\n </h-button>\n </div>\n </div>\n }\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Badge, selector: "h-badge", inputs: ["styleClass", "badgeSize", "size", "severity", "value", "badgeDisabled"] }, { kind: "component", type: Button, selector: "h-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: TimesIcon, selector: "[data-h-icon=\"times\"]" }, { kind: "directive", type: Bind, selector: "[hBind]", inputs: ["hBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
244
- }
245
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileContent, decorators: [{
246
- type: Component,
247
- args: [{ selector: '[hFileContent]', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, providers: [FileUploadStyle], imports: [CommonModule, Badge, Button, TimesIcon, Bind], template: "@for (file of files(); track file?.name + '-' + $index; let index = $index) {\n <div [class]=\"cx('file')\" [hBind]=\"$pcFileUpload.ptm('file')\">\n <img role=\"presentation\" [class]=\"cx('fileThumbnail')\" [attr.alt]=\"file.name\" [src]=\"file.objectURL\" [width]=\"previewWidth()\" [hBind]=\"$pcFileUpload.ptm('fileThumbnail')\" />\n <div [class]=\"cx('fileInfo')\" [hBind]=\"$pcFileUpload.ptm('fileInfo')\">\n <div [class]=\"cx('fileName')\" [hBind]=\"$pcFileUpload.ptm('fileName')\">{{ file.name }}</div>\n <span [class]=\"cx('fileSize')\" [hBind]=\"$pcFileUpload.ptm('fileSize')\">{{ formatSize(file.size) }}</span>\n </div>\n <h-badge [value]=\"badgeValue()\" [severity]=\"badgeSeverity()\" [class]=\"cx('pcFileBadge')\" [pt]=\"$pcFileUpload.ptm('pcFileBadge')\" [unstyled]=\"unstyled()\" />\n <div [class]=\"cx('fileActions')\" [hBind]=\"$pcFileUpload.ptm('fileActions')\">\n <h-button (onClick)=\"onRemoveClick($event, index)\" [styleClass]=\"cx('pcFileRemoveButton')\" text rounded severity=\"danger\" [pt]=\"$pcFileUpload.ptm('pcFileRemoveButton')\" [unstyled]=\"unstyled()\">\n <ng-template #icon let-iconClass=\"class\">\n @if (fileRemoveIconTemplate()) {\n <ng-template *ngTemplateOutlet=\"fileRemoveIconTemplate(); context: { class: iconClass, file: file, index: index }\"></ng-template>\n } @else {\n <svg data-h-icon=\"times\" [class]=\"iconClass\" [attr.aria-hidden]=\"true\" />\n }\n </ng-template>\n </h-button>\n </div>\n </div>\n }\n" }]
248
- }], propDecorators: { onRemove: [{ type: i0.Output, args: ["onRemove"] }], files: [{ type: i0.Input, args: [{ isSignal: true, alias: "files", required: false }] }], badgeSeverity: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeSeverity", required: false }] }], badgeValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeValue", required: false }] }], previewWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "previewWidth", required: false }] }], fileRemoveIconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileRemoveIconTemplate", required: false }] }] } });
249
- /**
250
- * FileUpload is an advanced uploader with dragdrop support, multi file uploads, auto uploading, progress tracking and validations.
251
- * @group Components
252
- */
253
- class FileUpload extends BaseComponent {
254
- componentName = 'FileUpload';
255
- bindDirectiveInstance = inject(Bind, { self: true });
256
- onAfterViewChecked() {
257
- this.bindDirectiveInstance.setAttrs(this.ptm('host'));
258
- }
259
- /**
260
- * Name of the request parameter to identify the files at backend.
261
- * @group Props
262
- */
263
- name = input(/* @ts-ignore */
264
- ...(ngDevMode ? [undefined, { debugName: "name" }] : /* istanbul ignore next */ []));
265
- /**
266
- * Remote url to upload the files.
267
- * @group Props
268
- */
269
- url = input(/* @ts-ignore */
270
- ...(ngDevMode ? [undefined, { debugName: "url" }] : /* istanbul ignore next */ []));
271
- /**
272
- * HTTP method to send the files to the url such as "post" and "put".
273
- * @group Props
274
- */
275
- method = input('post', /* @ts-ignore */
276
- ...(ngDevMode ? [{ debugName: "method" }] : /* istanbul ignore next */ []));
277
- /**
278
- * Used to select multiple files at once from file dialog.
279
- * @group Props
280
- */
281
- multiple = input(undefined, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
282
- /**
283
- * Comma-separated list of pattern to restrict the allowed file types. Can be any combination of either the MIME types (such as "image/*") or the file extensions (such as ".jpg").
284
- * @group Props
285
- */
286
- accept = input(/* @ts-ignore */
287
- ...(ngDevMode ? [undefined, { debugName: "accept" }] : /* istanbul ignore next */ []));
288
- /**
289
- * Disables the upload functionality.
290
- * @group Props
291
- */
292
- disabled = input(undefined, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
293
- /**
294
- * When enabled, upload begins automatically after selection is completed.
295
- * @group Props
296
- */
297
- auto = input(undefined, { ...(ngDevMode ? { debugName: "auto" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
298
- /**
299
- * Cross-site Access-Control requests should be made using credentials such as cookies, authorization headers or TLS client certificates.
300
- * @group Props
301
- */
302
- withCredentials = input(undefined, { ...(ngDevMode ? { debugName: "withCredentials" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
303
- /**
304
- * Maximum file size allowed in bytes.
305
- * @group Props
306
- */
307
- maxFileSize = input(undefined, { ...(ngDevMode ? { debugName: "maxFileSize" } : /* istanbul ignore next */ {}), transform: numberAttribute });
308
- /**
309
- * Summary message of the invalid file size.
310
- * @group Props
311
- */
312
- invalidFileSizeMessageSummary = input('{0}: Invalid file size, ', /* @ts-ignore */
313
- ...(ngDevMode ? [{ debugName: "invalidFileSizeMessageSummary" }] : /* istanbul ignore next */ []));
314
- /**
315
- * Detail message of the invalid file size.
316
- * @group Props
317
- */
318
- invalidFileSizeMessageDetail = input('maximum upload size is {0}.', /* @ts-ignore */
319
- ...(ngDevMode ? [{ debugName: "invalidFileSizeMessageDetail" }] : /* istanbul ignore next */ []));
320
- /**
321
- * Summary message of the invalid file type.
322
- * @group Props
323
- */
324
- invalidFileTypeMessageSummary = input('{0}: Invalid file type, ', /* @ts-ignore */
325
- ...(ngDevMode ? [{ debugName: "invalidFileTypeMessageSummary" }] : /* istanbul ignore next */ []));
326
- /**
327
- * Detail message of the invalid file type.
328
- * @group Props
329
- */
330
- invalidFileTypeMessageDetail = input('allowed file types: {0}.', /* @ts-ignore */
331
- ...(ngDevMode ? [{ debugName: "invalidFileTypeMessageDetail" }] : /* istanbul ignore next */ []));
332
- /**
333
- * Detail message of the invalid file type.
334
- * @group Props
335
- */
336
- invalidFileLimitMessageDetail = input('limit is {0} at most.', /* @ts-ignore */
337
- ...(ngDevMode ? [{ debugName: "invalidFileLimitMessageDetail" }] : /* istanbul ignore next */ []));
338
- /**
339
- * Summary message of the invalid file type.
340
- * @group Props
341
- */
342
- invalidFileLimitMessageSummary = input('Maximum number of files exceeded, ', /* @ts-ignore */
343
- ...(ngDevMode ? [{ debugName: "invalidFileLimitMessageSummary" }] : /* istanbul ignore next */ []));
344
- /**
345
- * Inline style of the element.
346
- * @group Props
347
- */
348
- style = input(/* @ts-ignore */
349
- ...(ngDevMode ? [undefined, { debugName: "style" }] : /* istanbul ignore next */ []));
350
- /**
351
- * Class of the element.
352
- * @group Props
353
- */
354
- styleClass = input(/* @ts-ignore */
355
- ...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
356
- /**
357
- * Width of the image thumbnail in pixels.
358
- * @group Props
359
- */
360
- previewWidth = input(50, { ...(ngDevMode ? { debugName: "previewWidth" } : /* istanbul ignore next */ {}), transform: numberAttribute });
361
- /**
362
- * Label of the choose button. Defaults to Helix Locale configuration.
363
- * @group Props
364
- */
365
- chooseLabel = input(/* @ts-ignore */
366
- ...(ngDevMode ? [undefined, { debugName: "chooseLabel" }] : /* istanbul ignore next */ []));
367
- /**
368
- * Label of the upload button. Defaults to Helix Locale configuration.
369
- * @group Props
370
- */
371
- uploadLabel = input(/* @ts-ignore */
372
- ...(ngDevMode ? [undefined, { debugName: "uploadLabel" }] : /* istanbul ignore next */ []));
373
- /**
374
- * Label of the cancel button. Defaults to Helix Locale configuration.
375
- * @group Props
376
- */
377
- cancelLabel = input(/* @ts-ignore */
378
- ...(ngDevMode ? [undefined, { debugName: "cancelLabel" }] : /* istanbul ignore next */ []));
379
- /**
380
- * Icon of the choose button.
381
- * @group Props
382
- */
383
- chooseIcon = input(/* @ts-ignore */
384
- ...(ngDevMode ? [undefined, { debugName: "chooseIcon" }] : /* istanbul ignore next */ []));
385
- /**
386
- * Icon of the upload button.
387
- * @group Props
388
- */
389
- uploadIcon = input(/* @ts-ignore */
390
- ...(ngDevMode ? [undefined, { debugName: "uploadIcon" }] : /* istanbul ignore next */ []));
391
- /**
392
- * Icon of the cancel button.
393
- * @group Props
394
- */
395
- cancelIcon = input(/* @ts-ignore */
396
- ...(ngDevMode ? [undefined, { debugName: "cancelIcon" }] : /* istanbul ignore next */ []));
397
- /**
398
- * Whether to show the upload button.
399
- * @group Props
400
- */
401
- showUploadButton = input(true, { ...(ngDevMode ? { debugName: "showUploadButton" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
402
- /**
403
- * Whether to show the cancel button.
404
- * @group Props
405
- */
406
- showCancelButton = input(true, { ...(ngDevMode ? { debugName: "showCancelButton" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
407
- /**
408
- * Defines the UI of the component.
409
- * @group Props
410
- */
411
- mode = input('advanced', /* @ts-ignore */
412
- ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
413
- /**
414
- * HttpHeaders class represents the header configuration options for an HTTP request.
415
- * @group Props
416
- */
417
- headers = input(/* @ts-ignore */
418
- ...(ngDevMode ? [undefined, { debugName: "headers" }] : /* istanbul ignore next */ []));
419
- /**
420
- * Whether to use the default upload or a manual implementation defined in uploadHandler callback. Defaults to Helix Locale configuration.
421
- * @group Props
422
- */
423
- customUpload = input(undefined, { ...(ngDevMode ? { debugName: "customUpload" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
424
- /**
425
- * Maximum number of files that can be uploaded.
426
- * @group Props
427
- */
428
- fileLimit = input(undefined, { ...(ngDevMode ? { debugName: "fileLimit" } : /* istanbul ignore next */ {}), transform: (value) => numberAttribute(value, undefined) });
429
- /**
430
- * Style class of the upload button.
431
- * @group Props
432
- */
433
- uploadStyleClass = input(/* @ts-ignore */
434
- ...(ngDevMode ? [undefined, { debugName: "uploadStyleClass" }] : /* istanbul ignore next */ []));
435
- /**
436
- * Style class of the cancel button.
437
- * @group Props
438
- */
439
- cancelStyleClass = input(/* @ts-ignore */
440
- ...(ngDevMode ? [undefined, { debugName: "cancelStyleClass" }] : /* istanbul ignore next */ []));
441
- /**
442
- * Style class of the remove button.
443
- * @group Props
444
- */
445
- removeStyleClass = input(/* @ts-ignore */
446
- ...(ngDevMode ? [undefined, { debugName: "removeStyleClass" }] : /* istanbul ignore next */ []));
447
- /**
448
- * Style class of the choose button.
449
- * @group Props
450
- */
451
- chooseStyleClass = input(/* @ts-ignore */
452
- ...(ngDevMode ? [undefined, { debugName: "chooseStyleClass" }] : /* istanbul ignore next */ []));
453
- /**
454
- * Used to pass all properties of the ButtonProps to the choose button inside the component.
455
- * @group Props
456
- */
457
- chooseButtonProps = input(undefined, /* @ts-ignore */
458
- ...(ngDevMode ? [{ debugName: "chooseButtonProps" }] : /* istanbul ignore next */ []));
459
- /**
460
- * Used to pass all properties of the ButtonProps to the upload button inside the component.
461
- * @group Props
462
- */
463
- uploadButtonProps = input({ severity: 'secondary' }, /* @ts-ignore */
464
- ...(ngDevMode ? [{ debugName: "uploadButtonProps" }] : /* istanbul ignore next */ []));
465
- /**
466
- * Used to pass all properties of the ButtonProps to the cancel button inside the component.
467
- * @group Props
468
- */
469
- cancelButtonProps = input({ severity: 'secondary' }, /* @ts-ignore */
470
- ...(ngDevMode ? [{ debugName: "cancelButtonProps" }] : /* istanbul ignore next */ []));
471
- /**
472
- * Callback to invoke before file upload is initialized.
473
- * @param {FileBeforeUploadEvent} event - Custom upload event.
474
- * @group Emits
475
- */
476
- onBeforeUpload = output();
477
- /**
478
- * An event indicating that the request was sent to the server. Useful when a request may be retried multiple times, to distinguish between retries on the final event stream.
479
- * @param {FileSendEvent} event - Custom send event.
480
- * @group Emits
481
- */
482
- onSend = output();
483
- /**
484
- * Callback to invoke when file upload is complete.
485
- * @param {FileUploadEvent} event - Custom upload event.
486
- * @group Emits
487
- */
488
- onUpload = output();
489
- /**
490
- * Callback to invoke if file upload fails.
491
- * @param {FileUploadErrorEvent} event - Custom error event.
492
- * @group Emits
493
- */
494
- onError = output();
495
- /**
496
- * Callback to invoke when files in queue are removed without uploading using clear all button.
497
- * @param {Event} event - Browser event.
498
- * @group Emits
499
- */
500
- onClear = output();
501
- /**
502
- * Callback to invoke when a file is removed without uploading using clear button of a file.
503
- * @param {FileRemoveEvent} event - Remove event.
504
- * @group Emits
505
- */
506
- onRemove = output();
507
- /**
508
- * Callback to invoke when files are selected.
509
- * @param {FileSelectEvent} event - Select event.
510
- * @group Emits
511
- */
512
- onSelect = output();
513
- /**
514
- * Callback to invoke when files are being uploaded.
515
- * @param {FileProgressEvent} event - Progress event.
516
- * @group Emits
517
- */
518
- onProgress = output();
519
- /**
520
- * Callback to invoke in custom upload mode to upload the files manually.
521
- * @param {FileUploadHandlerEvent} event - Upload handler event.
522
- * @group Emits
523
- */
524
- uploadHandler = output();
525
- /**
526
- * This event is triggered if an error occurs while loading an image file.
527
- * @param {Event} event - Browser event.
528
- * @group Emits
529
- */
530
- onImageError = output();
531
- /**
532
- * This event is triggered if an error occurs while loading an image file.
533
- * @param {RemoveUploadedFileEvent} event - Remove event.
534
- * @group Emits
535
- */
536
- onRemoveUploadedFile = output();
537
- /**
538
- * Custom file template.
539
- * @group Templates
540
- */
541
- fileTemplate = contentChild('file', { ...(ngDevMode ? { debugName: "fileTemplate" } : /* istanbul ignore next */ {}), descendants: false });
542
- /**
543
- * Custom header template.
544
- * @param {FileUploadHeaderTemplateContext} context - header template context.
545
- * @group Templates
546
- */
547
- headerTemplate = contentChild('header', { ...(ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
548
- /**
549
- * Custom content template.
550
- * @param {FileUploadContentTemplateContext} context - content template context.
551
- * @group Templates
552
- */
553
- contentTemplate = contentChild('content', { ...(ngDevMode ? { debugName: "contentTemplate" } : /* istanbul ignore next */ {}), descendants: false });
554
- /**
555
- * Custom toolbar template.
556
- * @group Templates
557
- */
558
- toolbarTemplate = contentChild('toolbar', { ...(ngDevMode ? { debugName: "toolbarTemplate" } : /* istanbul ignore next */ {}), descendants: false });
559
- /**
560
- * Custom choose icon template.
561
- * @group Templates
562
- */
563
- chooseIconTemplate = contentChild('chooseicon', { ...(ngDevMode ? { debugName: "chooseIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
564
- /**
565
- * Custom file label template.
566
- * @param {FileUploadFileLabelTemplateContext} context - file label template context.
567
- * @group Templates
568
- */
569
- fileLabelTemplate = contentChild('filelabel', { ...(ngDevMode ? { debugName: "fileLabelTemplate" } : /* istanbul ignore next */ {}), descendants: false });
570
- /**
571
- * Custom upload icon template.
572
- * @group Templates
573
- */
574
- uploadIconTemplate = contentChild('uploadicon', { ...(ngDevMode ? { debugName: "uploadIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
575
- /**
576
- * Custom cancel icon template.
577
- * @group Templates
578
- */
579
- cancelIconTemplate = contentChild('cancelicon', { ...(ngDevMode ? { debugName: "cancelIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
580
- /**
581
- * Custom empty state template.
582
- * @group Templates
583
- */
584
- emptyTemplate = contentChild('empty', { ...(ngDevMode ? { debugName: "emptyTemplate" } : /* istanbul ignore next */ {}), descendants: false });
585
- advancedFileInput = viewChild('advancedfileinput', /* @ts-ignore */
586
- ...(ngDevMode ? [{ debugName: "advancedFileInput" }] : /* istanbul ignore next */ []));
587
- basicFileInput = viewChild('basicfileinput', /* @ts-ignore */
588
- ...(ngDevMode ? [{ debugName: "basicFileInput" }] : /* istanbul ignore next */ []));
589
- content = viewChild('content', /* @ts-ignore */
590
- ...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
591
- files = model([], /* @ts-ignore */
592
- ...(ngDevMode ? [{ debugName: "files" }] : /* istanbul ignore next */ []));
593
- get basicButtonLabel() {
594
- if (this.auto() || !this.hasFiles()) {
595
- return this.chooseLabel();
596
- }
597
- return this.uploadLabel() ?? this.files()[0].name;
598
- }
599
- progress = 0;
600
- dragHighlight;
601
- msgs;
602
- uploadedFileCount = 0;
603
- focus;
604
- uploading;
605
- duplicateIEEvent; // flag to recognize duplicate onchange event for file input
606
- translationSubscription;
607
- dragOverListener;
608
- uploadedFiles = [];
609
- sanitizer = inject(DomSanitizer);
610
- zone = inject(NgZone);
611
- http = inject(HttpClient);
612
- _componentStyle = inject(FileUploadStyle);
613
- onInit() {
614
- this.translationSubscription = this.config.translationObserver.subscribe(() => {
615
- this.cd.markForCheck();
616
- });
617
- }
618
- onAfterViewInit() {
619
- if (isPlatformBrowser(this.platformId)) {
620
- if (this.mode() === 'advanced') {
621
- this.zone.runOutsideAngular(() => {
622
- const content = this.content();
623
- if (content) {
624
- this.dragOverListener = this.renderer.listen(content.nativeElement, 'dragover', this.onDragOver.bind(this));
625
- }
626
- });
627
- }
628
- }
629
- }
630
- _headerTemplate;
631
- _contentTemplate;
632
- _toolbarTemplate;
633
- _chooseIconTemplate;
634
- _uploadIconTemplate;
635
- _cancelIconTemplate;
636
- _emptyTemplate;
637
- _fileTemplate;
638
- _fileLabelTemplate;
639
- templates = contentChildren(HelixTemplate, /* @ts-ignore */
640
- ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
641
- onAfterContentInit() {
642
- this.templates()?.forEach((item) => {
643
- switch (item.getType()) {
644
- case 'header':
645
- this._headerTemplate = item.template;
646
- break;
647
- case 'file':
648
- this._fileTemplate = item.template;
649
- break;
650
- case 'content':
651
- this._contentTemplate = item.template;
652
- break;
653
- case 'toolbar':
654
- this._toolbarTemplate = item.template;
655
- break;
656
- case 'chooseicon':
657
- this._chooseIconTemplate = item.template;
658
- break;
659
- case 'uploadicon':
660
- this._uploadIconTemplate = item.template;
661
- break;
662
- case 'cancelicon':
663
- this._cancelIconTemplate = item.template;
664
- break;
665
- case 'empty':
666
- this._emptyTemplate = item.template;
667
- break;
668
- case 'filelabel':
669
- this._fileLabelTemplate = item.template;
670
- break;
671
- default:
672
- this._fileTemplate = item.template;
673
- break;
674
- }
675
- });
676
- }
677
- basicFileChosenLabel() {
678
- if (this.auto())
679
- return this.chooseButtonLabel;
680
- else if (this.hasFiles()) {
681
- if (this.files() && this.files().length === 1)
682
- return this.files()[0].name;
683
- return this.config.getTranslation('fileChosenMessage')?.replace('{0}', this.files().length);
684
- }
685
- return this.config.getTranslation('noFileChosenMessage') || '';
686
- }
687
- completedLabel() {
688
- return this.config.getTranslation('completed') || '';
689
- }
690
- getTranslation(option) {
691
- return this.config.getTranslation(option);
692
- }
693
- choose() {
694
- this.advancedFileInput()?.nativeElement.click();
695
- }
696
- onFileSelect(event) {
697
- if (event.type !== 'drop' && this.isIE11() && this.duplicateIEEvent) {
698
- this.duplicateIEEvent = false;
699
- return;
700
- }
701
- if (!this.multiple()) {
702
- this.files.set([]);
703
- }
704
- this.msgs = [];
705
- let files = event.dataTransfer ? event.dataTransfer.files : event.target.files;
706
- for (let i = 0; i < files.length; i++) {
707
- let file = files[i];
708
- if (!this.isFileSelected(file)) {
709
- if (this.validate(file)) {
710
- if (this.isImage(file)) {
711
- file.objectURL = this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(files[i]));
712
- }
713
- this.files().push(files[i]);
714
- }
715
- }
716
- }
717
- this.onSelect.emit({ originalEvent: event, files: files, currentFiles: this.files() });
718
- // this will check the fileLimit with the uploaded files
719
- this.checkFileLimit(files);
720
- if (this.hasFiles() && this.auto() && (this.mode() !== 'advanced' || !this.isFileLimitExceeded())) {
721
- this.upload();
722
- }
723
- if (event.type !== 'drop' && this.isIE11()) {
724
- this.clearIEInput();
725
- }
726
- else {
727
- this.clearInputElement();
728
- }
729
- }
730
- isFileSelected(file) {
731
- for (let sFile of this.files()) {
732
- if (sFile.name + sFile.type + sFile.size === file.name + file.type + file.size) {
733
- return true;
734
- }
735
- }
736
- return false;
737
- }
738
- isIE11() {
739
- if (isPlatformBrowser(this.platformId)) {
740
- return !!this.document.defaultView['MSInputMethodContext'] && !!this.document['documentMode'];
741
- }
742
- }
743
- validate(file) {
744
- this.msgs = this.msgs || [];
745
- const accept = this.accept();
746
- if (accept && !this.isFileTypeValid(file)) {
747
- const text = `${this.invalidFileTypeMessageSummary().replace('{0}', file.name)} ${this.invalidFileTypeMessageDetail().replace('{0}', accept)}`;
748
- this.msgs.push({
749
- severity: 'error',
750
- text: text
751
- });
752
- return false;
753
- }
754
- const maxFileSize = this.maxFileSize();
755
- if (maxFileSize && file.size > maxFileSize) {
756
- const text = `${this.invalidFileSizeMessageSummary().replace('{0}', file.name)} ${this.invalidFileSizeMessageDetail().replace('{0}', this.formatSize(maxFileSize))}`;
757
- this.msgs.push({
758
- severity: 'error',
759
- text: text
760
- });
761
- return false;
762
- }
763
- return true;
764
- }
765
- isFileTypeValid(file) {
766
- let acceptableTypes = this.accept()?.split(',').map((type) => type.trim());
767
- for (let type of acceptableTypes) {
768
- let acceptable = this.isWildcard(type) ? this.getTypeClass(file.type) === this.getTypeClass(type) : file.type == type || this.getFileExtension(file).toLowerCase() === type.toLowerCase();
769
- if (acceptable) {
770
- return true;
771
- }
772
- }
773
- return false;
774
- }
775
- getTypeClass(fileType) {
776
- return fileType.substring(0, fileType.indexOf('/'));
777
- }
778
- isWildcard(fileType) {
779
- return fileType.indexOf('*') !== -1;
780
- }
781
- getFileExtension(file) {
782
- return '.' + file.name.split('.').pop();
783
- }
784
- isImage(file) {
785
- return /^image\//.test(file.type);
786
- }
787
- onImageLoad(img) {
788
- window.URL.revokeObjectURL(img.src);
789
- }
790
- /**
791
- * Uploads the selected files.
792
- * @group Method
793
- */
794
- uploader() {
795
- if (this.customUpload()) {
796
- if (this.fileLimit()) {
797
- this.uploadedFileCount += this.files().length;
798
- }
799
- this.uploadHandler.emit({
800
- files: this.files()
801
- });
802
- this.cd.markForCheck();
803
- }
804
- else {
805
- this.uploading = true;
806
- this.msgs = [];
807
- let formData = new FormData();
808
- this.onBeforeUpload.emit({
809
- formData: formData
810
- });
811
- for (let i = 0; i < this.files().length; i++) {
812
- formData.append(this.name(), this.files()[i], this.files()[i].name);
813
- }
814
- this.http
815
- .request(this.method(), this.url(), {
816
- body: formData,
817
- headers: this.headers(),
818
- reportProgress: true,
819
- observe: 'events',
820
- withCredentials: this.withCredentials()
821
- })
822
- .subscribe((event) => {
823
- switch (event.type) {
824
- case HttpEventType.Sent:
825
- this.onSend.emit({
826
- originalEvent: event,
827
- formData: formData
828
- });
829
- break;
830
- case HttpEventType.Response:
831
- this.uploading = false;
832
- this.progress = 0;
833
- if (event['status'] >= 200 && event['status'] < 300) {
834
- if (this.fileLimit()) {
835
- this.uploadedFileCount += this.files().length;
836
- }
837
- this.onUpload.emit({ originalEvent: event, files: this.files() });
838
- }
839
- else {
840
- this.onError.emit({ files: this.files() });
841
- }
842
- this.uploadedFiles = [...this.uploadedFiles, ...this.files()];
843
- this.clear();
844
- break;
845
- case HttpEventType.UploadProgress: {
846
- if (event['loaded']) {
847
- this.progress = Math.round((event['loaded'] * 100) / event['total']);
848
- }
849
- this.onProgress.emit({ originalEvent: event, progress: this.progress });
850
- break;
851
- }
852
- }
853
- this.cd.markForCheck();
854
- }, (error) => {
855
- this.uploading = false;
856
- this.onError.emit({ files: this.files(), error: error });
857
- });
858
- }
859
- }
860
- onRemoveClick(e) {
861
- const { event, index } = e;
862
- if (this.hasFiles()) {
863
- this.remove(event, index);
864
- }
865
- }
866
- onRemoveUploadedFileClick(e) {
867
- const { index } = e;
868
- if (this.hasUploadedFiles()) {
869
- this.removeUploadedFile(index);
870
- }
871
- }
872
- /**
873
- * Clears the files list.
874
- * @group Method
875
- */
876
- clear() {
877
- this.files.set([]);
878
- this.onClear.emit();
879
- this.clearInputElement();
880
- this.msgs = [];
881
- this.cd.markForCheck();
882
- }
883
- /**
884
- * Removes a single file.
885
- * @param {Event} event - Browser event.
886
- * @param {Number} index - Index of the file.
887
- * @group Method
888
- */
889
- remove(event, index) {
890
- this.clearInputElement();
891
- this.onRemove.emit({ originalEvent: event, file: this.files()[index] });
892
- this.files().splice(index, 1);
893
- this.checkFileLimit(this.files());
894
- }
895
- /**
896
- * Removes uploaded file.
897
- * @param {Number} index - Index of the file to be removed.
898
- * @group Method
899
- */
900
- removeUploadedFile(index) {
901
- let removedFile = this.uploadedFiles.splice(index, 1)[0];
902
- this.uploadedFiles = [...this.uploadedFiles];
903
- this.onRemoveUploadedFile.emit({ file: removedFile, files: this.uploadedFiles });
904
- }
905
- isFileLimitExceeded() {
906
- const isAutoMode = this.auto();
907
- const totalFileCount = isAutoMode ? this.files().length : this.files().length + this.uploadedFileCount;
908
- const fileLimit = this.fileLimit();
909
- if (fileLimit && fileLimit <= totalFileCount && this.focus) {
910
- this.focus = false;
911
- }
912
- return fileLimit && fileLimit < totalFileCount;
913
- }
914
- isChooseDisabled() {
915
- if (this.auto()) {
916
- const fileLimit = this.fileLimit();
917
- return fileLimit && fileLimit <= this.files().length;
918
- }
919
- else {
920
- const fileLimit = this.fileLimit();
921
- return fileLimit && fileLimit <= this.files().length + this.uploadedFileCount;
922
- }
923
- }
924
- checkFileLimit(files) {
925
- this.msgs ??= [];
926
- const fileLimit = this.fileLimit();
927
- const hasExistingValidationMessages = this.msgs.length > 0 && fileLimit && fileLimit < files.length;
928
- if (this.isFileLimitExceeded() || hasExistingValidationMessages) {
929
- const text = `${this.invalidFileLimitMessageSummary().replace('{0}', this.fileLimit().toString())} ${this.invalidFileLimitMessageDetail().replace('{0}', this.fileLimit().toString())}`;
930
- this.msgs.push({
931
- severity: 'error',
932
- text: text
933
- });
934
- }
935
- else {
936
- this.msgs = this.msgs.filter((msg) => !msg.text.includes(this.invalidFileLimitMessageSummary()));
937
- }
938
- }
939
- clearInputElement() {
940
- if (this.advancedFileInput() && this.advancedFileInput().nativeElement) {
941
- this.advancedFileInput().nativeElement.value = '';
942
- }
943
- const basicFileInput = this.basicFileInput();
944
- if (basicFileInput && basicFileInput.nativeElement) {
945
- basicFileInput.nativeElement.value = '';
946
- }
947
- }
948
- clearIEInput() {
949
- if (this.advancedFileInput() && this.advancedFileInput().nativeElement) {
950
- this.duplicateIEEvent = true; //IE11 fix to prevent onFileChange trigger again
951
- this.advancedFileInput().nativeElement.value = '';
952
- }
953
- }
954
- hasFiles() {
955
- return this.files() && this.files().length > 0;
956
- }
957
- hasUploadedFiles() {
958
- return this.uploadedFiles && this.uploadedFiles.length > 0;
959
- }
960
- onDragEnter(e) {
961
- if (!this.disabled()) {
962
- e.stopPropagation();
963
- e.preventDefault();
964
- }
965
- }
966
- onDragOver(e) {
967
- if (!this.disabled()) {
968
- !this.$unstyled() && addClass(this.content()?.nativeElement, 'h-fileupload-highlight');
969
- this.content()?.nativeElement.setAttribute('data-h-highlight', true);
970
- this.dragHighlight = true;
971
- e.stopPropagation();
972
- e.preventDefault();
973
- }
974
- }
975
- onDragLeave(event) {
976
- if (!this.disabled()) {
977
- !this.$unstyled() && removeClass(this.content()?.nativeElement, 'h-fileupload-highlight');
978
- this.content()?.nativeElement.setAttribute('data-h-highlight', false);
979
- }
980
- }
981
- onDrop(event) {
982
- if (!this.disabled()) {
983
- !this.$unstyled() && removeClass(this.content()?.nativeElement, 'h-fileupload-highlight');
984
- this.content()?.nativeElement.setAttribute('data-h-highlight', false);
985
- event.stopPropagation();
986
- event.preventDefault();
987
- let files = event.dataTransfer ? event.dataTransfer.files : event.target.files;
988
- let allowDrop = this.multiple() || (files && files.length === 1);
989
- if (allowDrop) {
990
- this.onFileSelect(event);
991
- }
992
- }
993
- }
994
- onFocus() {
995
- this.focus = true;
996
- }
997
- onBlur() {
998
- this.focus = false;
999
- }
1000
- formatSize(bytes) {
1001
- const k = 1024;
1002
- const dm = 3;
1003
- const sizes = this.getTranslation(TranslationKeys.FILE_SIZE_TYPES);
1004
- if (bytes === 0) {
1005
- return `0 ${sizes[0]}`;
1006
- }
1007
- const i = Math.floor(Math.log(bytes) / Math.log(k));
1008
- const formattedSize = (bytes / Math.pow(k, i)).toFixed(dm);
1009
- return `${formattedSize} ${sizes[i]}`;
1010
- }
1011
- upload() {
1012
- if (this.hasFiles())
1013
- this.uploader();
1014
- }
1015
- onBasicUploaderClick() {
1016
- this.basicFileInput()?.nativeElement.click();
1017
- }
1018
- onBasicKeydown(event) {
1019
- switch (event.code) {
1020
- case 'Space':
1021
- case 'Enter':
1022
- this.onBasicUploaderClick();
1023
- event.preventDefault();
1024
- break;
1025
- }
1026
- }
1027
- imageError(event) {
1028
- this.onImageError.emit(event);
1029
- }
1030
- getBlockableElement() {
1031
- return this.el.nativeElement.children[0];
1032
- }
1033
- get chooseButtonLabel() {
1034
- return this.chooseLabel() || this.config.getTranslation(TranslationKeys.CHOOSE);
1035
- }
1036
- get uploadButtonLabel() {
1037
- return this.uploadLabel() || this.config.getTranslation(TranslationKeys.UPLOAD);
1038
- }
1039
- get cancelButtonLabel() {
1040
- return this.cancelLabel() || this.config.getTranslation(TranslationKeys.CANCEL);
1041
- }
1042
- get browseFilesLabel() {
1043
- return this.config.getTranslation(TranslationKeys.ARIA)[TranslationKeys.BROWSE_FILES];
1044
- }
1045
- get pendingLabel() {
1046
- return this.config.getTranslation(TranslationKeys.PENDING);
1047
- }
1048
- onDestroy() {
1049
- const content = this.content();
1050
- if (content && content.nativeElement) {
1051
- if (this.dragOverListener) {
1052
- this.dragOverListener();
1053
- this.dragOverListener = null;
1054
- }
1055
- }
1056
- if (this.translationSubscription) {
1057
- this.translationSubscription.unsubscribe();
1058
- }
1059
- }
1060
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileUpload, deps: null, target: i0.ɵɵFactoryTarget.Component });
1061
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: FileUpload, isStandalone: true, selector: "h-fileupload, h-fileUpload", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: false, transformFunction: null }, method: { classPropertyName: "method", publicName: "method", isSignal: true, isRequired: false, 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 }, withCredentials: { classPropertyName: "withCredentials", publicName: "withCredentials", isSignal: true, isRequired: false, transformFunction: null }, maxFileSize: { classPropertyName: "maxFileSize", publicName: "maxFileSize", 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 }, invalidFileTypeMessageSummary: { classPropertyName: "invalidFileTypeMessageSummary", publicName: "invalidFileTypeMessageSummary", isSignal: true, isRequired: false, transformFunction: null }, invalidFileTypeMessageDetail: { classPropertyName: "invalidFileTypeMessageDetail", publicName: "invalidFileTypeMessageDetail", isSignal: true, isRequired: false, transformFunction: null }, invalidFileLimitMessageDetail: { classPropertyName: "invalidFileLimitMessageDetail", publicName: "invalidFileLimitMessageDetail", isSignal: true, isRequired: false, transformFunction: null }, invalidFileLimitMessageSummary: { classPropertyName: "invalidFileLimitMessageSummary", publicName: "invalidFileLimitMessageSummary", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, previewWidth: { classPropertyName: "previewWidth", publicName: "previewWidth", 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 }, cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: false, transformFunction: null }, chooseIcon: { classPropertyName: "chooseIcon", publicName: "chooseIcon", isSignal: true, isRequired: false, transformFunction: null }, uploadIcon: { classPropertyName: "uploadIcon", publicName: "uploadIcon", isSignal: true, isRequired: false, transformFunction: null }, cancelIcon: { classPropertyName: "cancelIcon", publicName: "cancelIcon", 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 }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, headers: { classPropertyName: "headers", publicName: "headers", isSignal: true, isRequired: false, transformFunction: null }, customUpload: { classPropertyName: "customUpload", publicName: "customUpload", isSignal: true, isRequired: false, transformFunction: null }, fileLimit: { classPropertyName: "fileLimit", publicName: "fileLimit", isSignal: true, isRequired: false, transformFunction: null }, uploadStyleClass: { classPropertyName: "uploadStyleClass", publicName: "uploadStyleClass", isSignal: true, isRequired: false, transformFunction: null }, cancelStyleClass: { classPropertyName: "cancelStyleClass", publicName: "cancelStyleClass", isSignal: true, isRequired: false, transformFunction: null }, removeStyleClass: { classPropertyName: "removeStyleClass", publicName: "removeStyleClass", isSignal: true, isRequired: false, transformFunction: null }, chooseStyleClass: { classPropertyName: "chooseStyleClass", publicName: "chooseStyleClass", isSignal: true, isRequired: false, transformFunction: null }, chooseButtonProps: { classPropertyName: "chooseButtonProps", publicName: "chooseButtonProps", isSignal: true, isRequired: false, transformFunction: null }, uploadButtonProps: { classPropertyName: "uploadButtonProps", publicName: "uploadButtonProps", isSignal: true, isRequired: false, transformFunction: null }, cancelButtonProps: { classPropertyName: "cancelButtonProps", publicName: "cancelButtonProps", isSignal: true, isRequired: false, transformFunction: null }, files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onBeforeUpload: "onBeforeUpload", onSend: "onSend", onUpload: "onUpload", onError: "onError", onClear: "onClear", onRemove: "onRemove", onSelect: "onSelect", onProgress: "onProgress", uploadHandler: "uploadHandler", onImageError: "onImageError", onRemoveUploadedFile: "onRemoveUploadedFile", files: "filesChange" }, providers: [FileUploadStyle, { provide: FILEUPLOAD_INSTANCE, useExisting: FileUpload }, { provide: PARENT_INSTANCE, useExisting: FileUpload }], queries: [{ propertyName: "fileTemplate", first: true, predicate: ["file"], isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "toolbarTemplate", first: true, predicate: ["toolbar"], isSignal: true }, { propertyName: "chooseIconTemplate", first: true, predicate: ["chooseicon"], isSignal: true }, { propertyName: "fileLabelTemplate", first: true, predicate: ["filelabel"], isSignal: true }, { propertyName: "uploadIconTemplate", first: true, predicate: ["uploadicon"], isSignal: true }, { propertyName: "cancelIconTemplate", first: true, predicate: ["cancelicon"], isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"], isSignal: true }, { propertyName: "templates", predicate: HelixTemplate, isSignal: true }], viewQueries: [{ propertyName: "advancedFileInput", first: true, predicate: ["advancedfileinput"], descendants: true, isSignal: true }, { propertyName: "basicFileInput", first: true, predicate: ["basicfileinput"], descendants: true, isSignal: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i2.Bind }], ngImport: i0, template: "@if (mode() === 'advanced') {\n <div [class]=\"cn(cx('root'), styleClass())\" [ngStyle]=\"style()\" [hBind]=\"ptm('root')\">\n <input [attr.aria-label]=\"browseFilesLabel\" #advancedfileinput type=\"file\" (change)=\"onFileSelect($event)\" [multiple]=\"multiple()\" [accept]=\"accept()\" [disabled]=\"disabled() || isChooseDisabled()\" [attr.title]=\"''\" [hBind]=\"ptm('input')\" />\n <div [class]=\"cx('header')\" [hBind]=\"ptm('header')\">\n @if (!headerTemplate() && !_headerTemplate) {\n <h-button\n [styleClass]=\"cn(cx('pcChooseButton'), chooseStyleClass())\"\n [disabled]=\"disabled() || isChooseDisabled()\"\n (focus)=\"onFocus()\"\n [label]=\"chooseButtonLabel\"\n (blur)=\"onBlur()\"\n (onClick)=\"choose()\"\n (keydown.enter)=\"choose()\"\n [buttonProps]=\"chooseButtonProps()\"\n [pt]=\"ptm('pcChooseButton')\"\n [unstyled]=\"unstyled()\"\n >\n <input\n [attr.aria-label]=\"browseFilesLabel\"\n #advancedfileinput\n type=\"file\"\n (change)=\"onFileSelect($event)\"\n [multiple]=\"multiple()\"\n [accept]=\"accept()\"\n [disabled]=\"disabled() || isChooseDisabled()\"\n [attr.title]=\"''\"\n [hBind]=\"ptm('input')\"\n />\n <ng-template #icon>\n @if (chooseIcon()) {\n <span [class]=\"chooseIcon()\" [attr.aria-label]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\"></span>\n }\n @if (!chooseIcon()) {\n @if (!chooseIconTemplate() && !_chooseIconTemplate) {\n <svg data-h-icon=\"plus\" [attr.aria-label]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\" />\n }\n @if (chooseIconTemplate() || _chooseIconTemplate) {\n <span [attr.aria-label]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\">\n <ng-template *ngTemplateOutlet=\"chooseIconTemplate() || _chooseIconTemplate\"></ng-template>\n </span>\n }\n }\n </ng-template>\n </h-button>\n @if (!auto() && showUploadButton()) {\n <h-button\n [label]=\"uploadButtonLabel\"\n (onClick)=\"upload()\"\n [disabled]=\"!hasFiles() || isFileLimitExceeded()\"\n [styleClass]=\"cn(cx('pcUploadButton'), uploadStyleClass())\"\n [buttonProps]=\"uploadButtonProps()\"\n [pt]=\"ptm('pcUploadButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (uploadIcon()) {\n <span [ngClass]=\"uploadIcon()\" [attr.aria-hidden]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcUploadButton')?.icon)\"></span>\n }\n @if (!uploadIcon()) {\n @if (!uploadIconTemplate() && !_uploadIconTemplate) {\n <svg data-h-icon=\"upload\" [hBind]=\"$safeNavigationMigration(ptm('pcUploadButton')?.icon)\" />\n }\n @if (uploadIconTemplate() || _uploadIconTemplate) {\n <span [attr.aria-hidden]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcUploadButton')?.icon)\">\n <ng-template *ngTemplateOutlet=\"uploadIconTemplate() || _uploadIconTemplate\"></ng-template>\n </span>\n }\n }\n </ng-template>\n </h-button>\n }\n @if (!auto() && showCancelButton()) {\n <h-button\n [label]=\"cancelButtonLabel\"\n (onClick)=\"clear()\"\n [disabled]=\"!hasFiles() || uploading\"\n [styleClass]=\"cn(cx('pcCancelButton'), cancelStyleClass())\"\n [buttonProps]=\"cancelButtonProps()\"\n [pt]=\"ptm('pcCancelButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (cancelIcon()) {\n <span [ngClass]=\"cancelIcon()\"></span>\n }\n @if (!cancelIcon()) {\n @if (!cancelIconTemplate() && !_cancelIconTemplate) {\n <svg data-h-icon=\"times\" [attr.aria-hidden]=\"true\" />\n }\n @if (cancelIconTemplate() || _cancelIconTemplate) {\n <span [attr.aria-hidden]=\"true\">\n <ng-template *ngTemplateOutlet=\"cancelIconTemplate() || _cancelIconTemplate\"></ng-template>\n </span>\n }\n }\n </ng-template>\n </h-button>\n }\n }\n <ng-container\n *ngTemplateOutlet=\"\n headerTemplate() || _headerTemplate;\n context: {\n $implicit: files(),\n uploadedFiles: uploadedFiles,\n chooseCallback: choose.bind(this),\n clearCallback: clear.bind(this),\n uploadCallback: upload.bind(this)\n }\n \"\n ></ng-container>\n <ng-container *ngTemplateOutlet=\"toolbarTemplate() || _toolbarTemplate\"></ng-container>\n </div>\n <div #content [class]=\"cx('content')\" (dragenter)=\"onDragEnter($event)\" (dragleave)=\"onDragLeave($event)\" (drop)=\"onDrop($event)\" [hBind]=\"ptm('content')\">\n @if (contentTemplate() || _contentTemplate) {\n <ng-container\n *ngTemplateOutlet=\"\n contentTemplate() || _contentTemplate;\n context: {\n $implicit: files(),\n uploadedFiles: uploadedFiles,\n chooseCallback: choose.bind(this),\n clearCallback: clear.bind(this),\n removeUploadedFileCallback: removeUploadedFile.bind(this),\n removeFileCallback: remove.bind(this),\n progress: progress,\n messages: msgs\n }\n \"\n ></ng-container>\n } @else {\n @if (hasFiles()) {\n <h-progressbar [value]=\"progress\" [showValue]=\"false\" [pt]=\"ptm('pcProgressBar')\"></h-progressbar>\n }\n @for (message of msgs; track message) {\n <h-message [severity]=\"message.severity\" [text]=\"message.text\" [pt]=\"ptm('pcMessage')\" [unstyled]=\"unstyled()\"></h-message>\n }\n @if (hasFiles()) {\n <div [class]=\"cx('fileList')\" [hBind]=\"ptm('fileList')\">\n @for (file of files(); track file; let i = $index) {\n <ng-container *ngTemplateOutlet=\"fileTemplate() || _fileTemplate; context: { $implicit: file, index: i }\"></ng-container>\n }\n @if (!fileTemplate() && !_fileTemplate) {\n <div\n hFileContent\n [unstyled]=\"unstyled()\"\n [files]=\"files()\"\n (onRemove)=\"onRemoveClick($event)\"\n [badgeValue]=\"pendingLabel\"\n [previewWidth]=\"previewWidth()\"\n [fileRemoveIconTemplate]=\"cancelIconTemplate() || _cancelIconTemplate\"\n ></div>\n }\n </div>\n }\n @if (hasUploadedFiles()) {\n <div [class]=\"cx('fileList')\" [hBind]=\"ptm('fileList')\">\n @for (file of uploadedFiles; track file; let i = $index) {\n <ng-container *ngTemplateOutlet=\"fileTemplate() || _fileTemplate; context: { $implicit: file, index: i }\"></ng-container>\n }\n @if (!fileTemplate() && !_fileTemplate) {\n <div\n hFileContent\n [unstyled]=\"unstyled()\"\n [files]=\"uploadedFiles\"\n (onRemove)=\"onRemoveUploadedFileClick($event)\"\n [badgeValue]=\"completedLabel()\"\n badgeSeverity=\"success\"\n [previewWidth]=\"previewWidth()\"\n [fileRemoveIconTemplate]=\"cancelIconTemplate() || _cancelIconTemplate\"\n ></div>\n }\n </div>\n }\n }\n @if ((emptyTemplate() || _emptyTemplate) && !hasFiles() && !hasUploadedFiles()) {\n <ng-container *ngTemplateOutlet=\"emptyTemplate() || _emptyTemplate\" [hBind]=\"ptm('empty')\"></ng-container>\n }\n</div>\n</div>\n}\n@if (mode() === 'basic') {\n <div [class]=\"cn(cx('root'), styleClass())\" [hBind]=\"ptm('root')\">\n @for (message of msgs; track message) {\n <h-message [severity]=\"message.severity\" [text]=\"message.text\" [pt]=\"ptm('pcMessage')\" [unstyled]=\"unstyled()\"></h-message>\n }\n <div [class]=\"cx('basicContent')\" [hBind]=\"ptm('basicContent')\">\n <h-button\n [styleClass]=\"cn(cx('pcChooseButton'), chooseStyleClass())\"\n [disabled]=\"disabled()\"\n [label]=\"chooseButtonLabel\"\n [style]=\"style()\"\n (onClick)=\"onBasicUploaderClick()\"\n (keydown)=\"onBasicKeydown($event)\"\n [buttonProps]=\"chooseButtonProps()\"\n [pt]=\"ptm('pcChooseButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (hasFiles() && !auto()) {\n @if (uploadIcon()) {\n <span class=\"h-button-icon h-button-icon-left\" [ngClass]=\"uploadIcon()\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\"></span>\n }\n @if (!uploadIcon()) {\n @if (!uploadIconTemplate() && !_uploadIconTemplate) {\n <svg data-h-icon=\"upload\" [class]=\"'h-button-icon h-button-icon-left'\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\" />\n }\n @if (_uploadIconTemplate || uploadIconTemplate()) {\n <span class=\"h-button-icon h-button-icon-left\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\">\n <ng-template *ngTemplateOutlet=\"_uploadIconTemplate || uploadIconTemplate()\"></ng-template>\n </span>\n }\n }\n } @else {\n @if (chooseIcon()) {\n <span class=\"h-button-icon h-button-icon-left pi\" [ngClass]=\"chooseIcon()\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\"></span>\n }\n @if (!chooseIcon()) {\n @if (!chooseIconTemplate() && !_chooseIconTemplate) {\n <svg data-h-icon=\"plus\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\" />\n }\n <ng-template *ngTemplateOutlet=\"chooseIconTemplate() || _chooseIconTemplate\"></ng-template>\n }\n }\n </ng-template>\n <input [attr.aria-label]=\"browseFilesLabel\" #basicfileinput type=\"file\" [accept]=\"accept()\" [multiple]=\"multiple()\" [disabled]=\"disabled()\" (change)=\"onFileSelect($event)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\" [hBind]=\"ptm('input')\" />\n </h-button>\n @if (!auto()) {\n @if (!fileLabelTemplate() && !_fileLabelTemplate) {\n <span>\n {{ basicFileChosenLabel() }}\n </span>\n } @else {\n <ng-container *ngTemplateOutlet=\"fileLabelTemplate() || _fileLabelTemplate; context: { $implicit: files() }\"></ng-container>\n }\n }\n </div>\n </div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Button, selector: "h-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: ProgressBar, selector: "h-progressBar, h-progressbar, h-progress-bar", inputs: ["value", "showValue", "styleClass", "valueStyleClass", "unit", "mode", "color"] }, { kind: "component", type: Message, selector: "h-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant", "motionOptions"], outputs: ["onClose"] }, { kind: "component", type: PlusIcon, selector: "[data-h-icon=\"plus\"]" }, { kind: "component", type: UploadIcon, selector: "[data-h-icon=\"upload\"]" }, { kind: "component", type: TimesIcon, selector: "[data-h-icon=\"times\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "component", type: FileContent, selector: "[hFileContent]", inputs: ["files", "badgeSeverity", "badgeValue", "previewWidth", "fileRemoveIconTemplate"], outputs: ["onRemove"] }, { kind: "directive", type: Bind, selector: "[hBind]", inputs: ["hBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1062
- }
1063
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileUpload, decorators: [{
1064
- type: Component,
1065
- args: [{ selector: 'h-fileupload, h-fileUpload', standalone: true, imports: [CommonModule, Button, ProgressBar, Message, PlusIcon, UploadIcon, TimesIcon, SharedModule, FileContent, Bind], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [FileUploadStyle, { provide: FILEUPLOAD_INSTANCE, useExisting: FileUpload }, { provide: PARENT_INSTANCE, useExisting: FileUpload }], hostDirectives: [Bind], template: "@if (mode() === 'advanced') {\n <div [class]=\"cn(cx('root'), styleClass())\" [ngStyle]=\"style()\" [hBind]=\"ptm('root')\">\n <input [attr.aria-label]=\"browseFilesLabel\" #advancedfileinput type=\"file\" (change)=\"onFileSelect($event)\" [multiple]=\"multiple()\" [accept]=\"accept()\" [disabled]=\"disabled() || isChooseDisabled()\" [attr.title]=\"''\" [hBind]=\"ptm('input')\" />\n <div [class]=\"cx('header')\" [hBind]=\"ptm('header')\">\n @if (!headerTemplate() && !_headerTemplate) {\n <h-button\n [styleClass]=\"cn(cx('pcChooseButton'), chooseStyleClass())\"\n [disabled]=\"disabled() || isChooseDisabled()\"\n (focus)=\"onFocus()\"\n [label]=\"chooseButtonLabel\"\n (blur)=\"onBlur()\"\n (onClick)=\"choose()\"\n (keydown.enter)=\"choose()\"\n [buttonProps]=\"chooseButtonProps()\"\n [pt]=\"ptm('pcChooseButton')\"\n [unstyled]=\"unstyled()\"\n >\n <input\n [attr.aria-label]=\"browseFilesLabel\"\n #advancedfileinput\n type=\"file\"\n (change)=\"onFileSelect($event)\"\n [multiple]=\"multiple()\"\n [accept]=\"accept()\"\n [disabled]=\"disabled() || isChooseDisabled()\"\n [attr.title]=\"''\"\n [hBind]=\"ptm('input')\"\n />\n <ng-template #icon>\n @if (chooseIcon()) {\n <span [class]=\"chooseIcon()\" [attr.aria-label]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\"></span>\n }\n @if (!chooseIcon()) {\n @if (!chooseIconTemplate() && !_chooseIconTemplate) {\n <svg data-h-icon=\"plus\" [attr.aria-label]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\" />\n }\n @if (chooseIconTemplate() || _chooseIconTemplate) {\n <span [attr.aria-label]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\">\n <ng-template *ngTemplateOutlet=\"chooseIconTemplate() || _chooseIconTemplate\"></ng-template>\n </span>\n }\n }\n </ng-template>\n </h-button>\n @if (!auto() && showUploadButton()) {\n <h-button\n [label]=\"uploadButtonLabel\"\n (onClick)=\"upload()\"\n [disabled]=\"!hasFiles() || isFileLimitExceeded()\"\n [styleClass]=\"cn(cx('pcUploadButton'), uploadStyleClass())\"\n [buttonProps]=\"uploadButtonProps()\"\n [pt]=\"ptm('pcUploadButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (uploadIcon()) {\n <span [ngClass]=\"uploadIcon()\" [attr.aria-hidden]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcUploadButton')?.icon)\"></span>\n }\n @if (!uploadIcon()) {\n @if (!uploadIconTemplate() && !_uploadIconTemplate) {\n <svg data-h-icon=\"upload\" [hBind]=\"$safeNavigationMigration(ptm('pcUploadButton')?.icon)\" />\n }\n @if (uploadIconTemplate() || _uploadIconTemplate) {\n <span [attr.aria-hidden]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcUploadButton')?.icon)\">\n <ng-template *ngTemplateOutlet=\"uploadIconTemplate() || _uploadIconTemplate\"></ng-template>\n </span>\n }\n }\n </ng-template>\n </h-button>\n }\n @if (!auto() && showCancelButton()) {\n <h-button\n [label]=\"cancelButtonLabel\"\n (onClick)=\"clear()\"\n [disabled]=\"!hasFiles() || uploading\"\n [styleClass]=\"cn(cx('pcCancelButton'), cancelStyleClass())\"\n [buttonProps]=\"cancelButtonProps()\"\n [pt]=\"ptm('pcCancelButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (cancelIcon()) {\n <span [ngClass]=\"cancelIcon()\"></span>\n }\n @if (!cancelIcon()) {\n @if (!cancelIconTemplate() && !_cancelIconTemplate) {\n <svg data-h-icon=\"times\" [attr.aria-hidden]=\"true\" />\n }\n @if (cancelIconTemplate() || _cancelIconTemplate) {\n <span [attr.aria-hidden]=\"true\">\n <ng-template *ngTemplateOutlet=\"cancelIconTemplate() || _cancelIconTemplate\"></ng-template>\n </span>\n }\n }\n </ng-template>\n </h-button>\n }\n }\n <ng-container\n *ngTemplateOutlet=\"\n headerTemplate() || _headerTemplate;\n context: {\n $implicit: files(),\n uploadedFiles: uploadedFiles,\n chooseCallback: choose.bind(this),\n clearCallback: clear.bind(this),\n uploadCallback: upload.bind(this)\n }\n \"\n ></ng-container>\n <ng-container *ngTemplateOutlet=\"toolbarTemplate() || _toolbarTemplate\"></ng-container>\n </div>\n <div #content [class]=\"cx('content')\" (dragenter)=\"onDragEnter($event)\" (dragleave)=\"onDragLeave($event)\" (drop)=\"onDrop($event)\" [hBind]=\"ptm('content')\">\n @if (contentTemplate() || _contentTemplate) {\n <ng-container\n *ngTemplateOutlet=\"\n contentTemplate() || _contentTemplate;\n context: {\n $implicit: files(),\n uploadedFiles: uploadedFiles,\n chooseCallback: choose.bind(this),\n clearCallback: clear.bind(this),\n removeUploadedFileCallback: removeUploadedFile.bind(this),\n removeFileCallback: remove.bind(this),\n progress: progress,\n messages: msgs\n }\n \"\n ></ng-container>\n } @else {\n @if (hasFiles()) {\n <h-progressbar [value]=\"progress\" [showValue]=\"false\" [pt]=\"ptm('pcProgressBar')\"></h-progressbar>\n }\n @for (message of msgs; track message) {\n <h-message [severity]=\"message.severity\" [text]=\"message.text\" [pt]=\"ptm('pcMessage')\" [unstyled]=\"unstyled()\"></h-message>\n }\n @if (hasFiles()) {\n <div [class]=\"cx('fileList')\" [hBind]=\"ptm('fileList')\">\n @for (file of files(); track file; let i = $index) {\n <ng-container *ngTemplateOutlet=\"fileTemplate() || _fileTemplate; context: { $implicit: file, index: i }\"></ng-container>\n }\n @if (!fileTemplate() && !_fileTemplate) {\n <div\n hFileContent\n [unstyled]=\"unstyled()\"\n [files]=\"files()\"\n (onRemove)=\"onRemoveClick($event)\"\n [badgeValue]=\"pendingLabel\"\n [previewWidth]=\"previewWidth()\"\n [fileRemoveIconTemplate]=\"cancelIconTemplate() || _cancelIconTemplate\"\n ></div>\n }\n </div>\n }\n @if (hasUploadedFiles()) {\n <div [class]=\"cx('fileList')\" [hBind]=\"ptm('fileList')\">\n @for (file of uploadedFiles; track file; let i = $index) {\n <ng-container *ngTemplateOutlet=\"fileTemplate() || _fileTemplate; context: { $implicit: file, index: i }\"></ng-container>\n }\n @if (!fileTemplate() && !_fileTemplate) {\n <div\n hFileContent\n [unstyled]=\"unstyled()\"\n [files]=\"uploadedFiles\"\n (onRemove)=\"onRemoveUploadedFileClick($event)\"\n [badgeValue]=\"completedLabel()\"\n badgeSeverity=\"success\"\n [previewWidth]=\"previewWidth()\"\n [fileRemoveIconTemplate]=\"cancelIconTemplate() || _cancelIconTemplate\"\n ></div>\n }\n </div>\n }\n }\n @if ((emptyTemplate() || _emptyTemplate) && !hasFiles() && !hasUploadedFiles()) {\n <ng-container *ngTemplateOutlet=\"emptyTemplate() || _emptyTemplate\" [hBind]=\"ptm('empty')\"></ng-container>\n }\n</div>\n</div>\n}\n@if (mode() === 'basic') {\n <div [class]=\"cn(cx('root'), styleClass())\" [hBind]=\"ptm('root')\">\n @for (message of msgs; track message) {\n <h-message [severity]=\"message.severity\" [text]=\"message.text\" [pt]=\"ptm('pcMessage')\" [unstyled]=\"unstyled()\"></h-message>\n }\n <div [class]=\"cx('basicContent')\" [hBind]=\"ptm('basicContent')\">\n <h-button\n [styleClass]=\"cn(cx('pcChooseButton'), chooseStyleClass())\"\n [disabled]=\"disabled()\"\n [label]=\"chooseButtonLabel\"\n [style]=\"style()\"\n (onClick)=\"onBasicUploaderClick()\"\n (keydown)=\"onBasicKeydown($event)\"\n [buttonProps]=\"chooseButtonProps()\"\n [pt]=\"ptm('pcChooseButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (hasFiles() && !auto()) {\n @if (uploadIcon()) {\n <span class=\"h-button-icon h-button-icon-left\" [ngClass]=\"uploadIcon()\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\"></span>\n }\n @if (!uploadIcon()) {\n @if (!uploadIconTemplate() && !_uploadIconTemplate) {\n <svg data-h-icon=\"upload\" [class]=\"'h-button-icon h-button-icon-left'\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\" />\n }\n @if (_uploadIconTemplate || uploadIconTemplate()) {\n <span class=\"h-button-icon h-button-icon-left\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\">\n <ng-template *ngTemplateOutlet=\"_uploadIconTemplate || uploadIconTemplate()\"></ng-template>\n </span>\n }\n }\n } @else {\n @if (chooseIcon()) {\n <span class=\"h-button-icon h-button-icon-left pi\" [ngClass]=\"chooseIcon()\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\"></span>\n }\n @if (!chooseIcon()) {\n @if (!chooseIconTemplate() && !_chooseIconTemplate) {\n <svg data-h-icon=\"plus\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\" />\n }\n <ng-template *ngTemplateOutlet=\"chooseIconTemplate() || _chooseIconTemplate\"></ng-template>\n }\n }\n </ng-template>\n <input [attr.aria-label]=\"browseFilesLabel\" #basicfileinput type=\"file\" [accept]=\"accept()\" [multiple]=\"multiple()\" [disabled]=\"disabled()\" (change)=\"onFileSelect($event)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\" [hBind]=\"ptm('input')\" />\n </h-button>\n @if (!auto()) {\n @if (!fileLabelTemplate() && !_fileLabelTemplate) {\n <span>\n {{ basicFileChosenLabel() }}\n </span>\n } @else {\n <ng-container *ngTemplateOutlet=\"fileLabelTemplate() || _fileLabelTemplate; context: { $implicit: files() }\"></ng-container>\n }\n }\n </div>\n </div>\n}\n" }]
1066
- }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], url: [{ type: i0.Input, args: [{ isSignal: true, alias: "url", required: false }] }], method: [{ type: i0.Input, args: [{ isSignal: true, alias: "method", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], auto: [{ type: i0.Input, args: [{ isSignal: true, alias: "auto", required: false }] }], withCredentials: [{ type: i0.Input, args: [{ isSignal: true, alias: "withCredentials", required: false }] }], maxFileSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxFileSize", required: false }] }], invalidFileSizeMessageSummary: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidFileSizeMessageSummary", required: false }] }], invalidFileSizeMessageDetail: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidFileSizeMessageDetail", required: false }] }], invalidFileTypeMessageSummary: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidFileTypeMessageSummary", required: false }] }], invalidFileTypeMessageDetail: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidFileTypeMessageDetail", required: false }] }], invalidFileLimitMessageDetail: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidFileLimitMessageDetail", required: false }] }], invalidFileLimitMessageSummary: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidFileLimitMessageSummary", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], previewWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "previewWidth", required: false }] }], chooseLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "chooseLabel", required: false }] }], uploadLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "uploadLabel", required: false }] }], cancelLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelLabel", required: false }] }], chooseIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "chooseIcon", required: false }] }], uploadIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "uploadIcon", required: false }] }], cancelIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelIcon", required: false }] }], showUploadButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showUploadButton", required: false }] }], showCancelButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCancelButton", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], headers: [{ type: i0.Input, args: [{ isSignal: true, alias: "headers", required: false }] }], customUpload: [{ type: i0.Input, args: [{ isSignal: true, alias: "customUpload", required: false }] }], fileLimit: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileLimit", required: false }] }], uploadStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "uploadStyleClass", required: false }] }], cancelStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelStyleClass", required: false }] }], removeStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeStyleClass", required: false }] }], chooseStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "chooseStyleClass", required: false }] }], chooseButtonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "chooseButtonProps", required: false }] }], uploadButtonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "uploadButtonProps", required: false }] }], cancelButtonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelButtonProps", required: false }] }], onBeforeUpload: [{ type: i0.Output, args: ["onBeforeUpload"] }], onSend: [{ type: i0.Output, args: ["onSend"] }], onUpload: [{ type: i0.Output, args: ["onUpload"] }], onError: [{ type: i0.Output, args: ["onError"] }], onClear: [{ type: i0.Output, args: ["onClear"] }], onRemove: [{ type: i0.Output, args: ["onRemove"] }], onSelect: [{ type: i0.Output, args: ["onSelect"] }], onProgress: [{ type: i0.Output, args: ["onProgress"] }], uploadHandler: [{ type: i0.Output, args: ["uploadHandler"] }], onImageError: [{ type: i0.Output, args: ["onImageError"] }], onRemoveUploadedFile: [{ type: i0.Output, args: ["onRemoveUploadedFile"] }], fileTemplate: [{ type: i0.ContentChild, args: ['file', { ...{ descendants: false }, isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], toolbarTemplate: [{ type: i0.ContentChild, args: ['toolbar', { ...{ descendants: false }, isSignal: true }] }], chooseIconTemplate: [{ type: i0.ContentChild, args: ['chooseicon', { ...{ descendants: false }, isSignal: true }] }], fileLabelTemplate: [{ type: i0.ContentChild, args: ['filelabel', { ...{ descendants: false }, isSignal: true }] }], uploadIconTemplate: [{ type: i0.ContentChild, args: ['uploadicon', { ...{ descendants: false }, isSignal: true }] }], cancelIconTemplate: [{ type: i0.ContentChild, args: ['cancelicon', { ...{ descendants: false }, isSignal: true }] }], emptyTemplate: [{ type: i0.ContentChild, args: ['empty', { ...{ descendants: false }, isSignal: true }] }], advancedFileInput: [{ type: i0.ViewChild, args: ['advancedfileinput', { isSignal: true }] }], basicFileInput: [{ type: i0.ViewChild, args: ['basicfileinput', { isSignal: true }] }], content: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], files: [{ type: i0.Input, args: [{ isSignal: true, alias: "files", required: false }] }, { type: i0.Output, args: ["filesChange"] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => HelixTemplate), { isSignal: true }] }] } });
1067
- class FileUploadModule {
1068
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1069
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.6", ngImport: i0, type: FileUploadModule, imports: [FileUpload, SharedModule], exports: [FileUpload, SharedModule] });
1070
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileUploadModule, imports: [FileUpload, SharedModule, SharedModule] });
1071
- }
1072
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: FileUploadModule, decorators: [{
1073
- type: NgModule,
1074
- args: [{
1075
- imports: [FileUpload, SharedModule],
1076
- exports: [FileUpload, SharedModule]
1077
- }]
1078
- }] });
1079
-
1080
- /**
1081
- * Generated bundle index. Do not edit.
1082
- */
1083
-
169
+ const FILEUPLOAD_INSTANCE = new InjectionToken("FILEUPLOAD_INSTANCE");
170
+ var FileContent = class FileContent extends BaseComponent {
171
+ _componentStyle = inject(FileUploadStyle);
172
+ $pcFileUpload = inject(FILEUPLOAD_INSTANCE);
173
+ onRemove = output();
174
+ files = input(...ngDevMode ? [void 0, { debugName: "files" }] : /* istanbul ignore next */ []);
175
+ badgeSeverity = input("warn", ...ngDevMode ? [{ debugName: "badgeSeverity" }] : /* istanbul ignore next */ []);
176
+ badgeValue = input(...ngDevMode ? [void 0, { debugName: "badgeValue" }] : /* istanbul ignore next */ []);
177
+ previewWidth = input(50, ...ngDevMode ? [{ debugName: "previewWidth" }] : /* istanbul ignore next */ []);
178
+ fileRemoveIconTemplate = input(...ngDevMode ? [void 0, { debugName: "fileRemoveIconTemplate" }] : /* istanbul ignore next */ []);
179
+ onRemoveClick(event, index) {
180
+ this.onRemove.emit({
181
+ event,
182
+ index
183
+ });
184
+ }
185
+ formatSize(bytes) {
186
+ const k = 1024;
187
+ const dm = 3;
188
+ const sizes = this.config.getTranslation(TranslationKeys.FILE_SIZE_TYPES);
189
+ if (bytes === 0) return `0 ${sizes[0]}`;
190
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
191
+ return `${(bytes / Math.pow(k, i)).toFixed(dm)} ${sizes[i]}`;
192
+ }
193
+ static ɵfac = i0.ɵɵngDeclareFactory({
194
+ minVersion: "12.0.0",
195
+ version: "22.2.1",
196
+ ngImport: i0,
197
+ type: FileContent,
198
+ deps: null,
199
+ target: i0.ɵɵFactoryTarget.Component
200
+ });
201
+ static ɵcmp = i0.ɵɵngDeclareComponent({
202
+ minVersion: "17.0.0",
203
+ version: "22.2.1",
204
+ type: FileContent,
205
+ isStandalone: true,
206
+ selector: "[hFileContent]",
207
+ inputs: {
208
+ files: {
209
+ classPropertyName: "files",
210
+ publicName: "files",
211
+ isSignal: true,
212
+ isRequired: false,
213
+ transformFunction: null
214
+ },
215
+ badgeSeverity: {
216
+ classPropertyName: "badgeSeverity",
217
+ publicName: "badgeSeverity",
218
+ isSignal: true,
219
+ isRequired: false,
220
+ transformFunction: null
221
+ },
222
+ badgeValue: {
223
+ classPropertyName: "badgeValue",
224
+ publicName: "badgeValue",
225
+ isSignal: true,
226
+ isRequired: false,
227
+ transformFunction: null
228
+ },
229
+ previewWidth: {
230
+ classPropertyName: "previewWidth",
231
+ publicName: "previewWidth",
232
+ isSignal: true,
233
+ isRequired: false,
234
+ transformFunction: null
235
+ },
236
+ fileRemoveIconTemplate: {
237
+ classPropertyName: "fileRemoveIconTemplate",
238
+ publicName: "fileRemoveIconTemplate",
239
+ isSignal: true,
240
+ isRequired: false,
241
+ transformFunction: null
242
+ }
243
+ },
244
+ outputs: { onRemove: "onRemove" },
245
+ providers: [FileUploadStyle],
246
+ usesInheritance: true,
247
+ ngImport: i0,
248
+ template: "@for (file of files(); track file?.name + '-' + $index; let index = $index) {\n <div [class]=\"cx('file')\" [hBind]=\"$pcFileUpload.ptm('file')\">\n <img role=\"presentation\" [class]=\"cx('fileThumbnail')\" [attr.alt]=\"file.name\" [src]=\"file.objectURL\" [width]=\"previewWidth()\" [hBind]=\"$pcFileUpload.ptm('fileThumbnail')\" />\n <div [class]=\"cx('fileInfo')\" [hBind]=\"$pcFileUpload.ptm('fileInfo')\">\n <div [class]=\"cx('fileName')\" [hBind]=\"$pcFileUpload.ptm('fileName')\">{{ file.name }}</div>\n <span [class]=\"cx('fileSize')\" [hBind]=\"$pcFileUpload.ptm('fileSize')\">{{ formatSize(file.size) }}</span>\n </div>\n <h-badge [value]=\"badgeValue()\" [severity]=\"badgeSeverity()\" [class]=\"cx('pcFileBadge')\" [pt]=\"$pcFileUpload.ptm('pcFileBadge')\" [unstyled]=\"unstyled()\" />\n <div [class]=\"cx('fileActions')\" [hBind]=\"$pcFileUpload.ptm('fileActions')\">\n <h-button (onClick)=\"onRemoveClick($event, index)\" [styleClass]=\"cx('pcFileRemoveButton')\" text rounded severity=\"danger\" [pt]=\"$pcFileUpload.ptm('pcFileRemoveButton')\" [unstyled]=\"unstyled()\">\n <ng-template #icon let-iconClass=\"class\">\n @if (fileRemoveIconTemplate()) {\n <ng-template *ngTemplateOutlet=\"fileRemoveIconTemplate(); context: { class: iconClass, file: file, index: index }\"></ng-template>\n } @else {\n <svg data-h-icon=\"times\" [class]=\"iconClass\" [attr.aria-hidden]=\"true\" />\n }\n </ng-template>\n </h-button>\n </div>\n </div>\n }\n",
249
+ dependencies: [
250
+ {
251
+ kind: "ngmodule",
252
+ type: CommonModule
253
+ },
254
+ {
255
+ kind: "directive",
256
+ type: i1.NgTemplateOutlet,
257
+ selector: "[ngTemplateOutlet]",
258
+ inputs: [
259
+ "ngTemplateOutletContext",
260
+ "ngTemplateOutlet",
261
+ "ngTemplateOutletInjector"
262
+ ]
263
+ },
264
+ {
265
+ kind: "component",
266
+ type: Badge,
267
+ selector: "h-badge",
268
+ inputs: [
269
+ "styleClass",
270
+ "badgeSize",
271
+ "size",
272
+ "severity",
273
+ "value",
274
+ "badgeDisabled"
275
+ ]
276
+ },
277
+ {
278
+ kind: "component",
279
+ type: Button,
280
+ selector: "h-button",
281
+ inputs: [
282
+ "hostName",
283
+ "type",
284
+ "badge",
285
+ "disabled",
286
+ "raised",
287
+ "rounded",
288
+ "text",
289
+ "plain",
290
+ "outlined",
291
+ "link",
292
+ "tabindex",
293
+ "size",
294
+ "variant",
295
+ "style",
296
+ "styleClass",
297
+ "badgeClass",
298
+ "badgeSeverity",
299
+ "ariaLabel",
300
+ "autofocus",
301
+ "iconPos",
302
+ "icon",
303
+ "label",
304
+ "loading",
305
+ "loadingIcon",
306
+ "severity",
307
+ "buttonProps",
308
+ "fluid"
309
+ ],
310
+ outputs: [
311
+ "onClick",
312
+ "onFocus",
313
+ "onBlur"
314
+ ]
315
+ },
316
+ {
317
+ kind: "component",
318
+ type: TimesIcon,
319
+ selector: "[data-h-icon=\"times\"]"
320
+ },
321
+ {
322
+ kind: "directive",
323
+ type: Bind,
324
+ selector: "[hBind]",
325
+ inputs: ["hBind"]
326
+ }
327
+ ],
328
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
329
+ });
330
+ };
331
+ i0.ɵɵngDeclareClassMetadata({
332
+ minVersion: "12.0.0",
333
+ version: "22.2.1",
334
+ ngImport: i0,
335
+ type: FileContent,
336
+ decorators: [{
337
+ type: Component,
338
+ args: [{
339
+ selector: "[hFileContent]",
340
+ standalone: true,
341
+ changeDetection: ChangeDetectionStrategy.OnPush,
342
+ providers: [FileUploadStyle],
343
+ imports: [
344
+ CommonModule,
345
+ Badge,
346
+ Button,
347
+ TimesIcon,
348
+ Bind
349
+ ],
350
+ template: "@for (file of files(); track file?.name + '-' + $index; let index = $index) {\n <div [class]=\"cx('file')\" [hBind]=\"$pcFileUpload.ptm('file')\">\n <img role=\"presentation\" [class]=\"cx('fileThumbnail')\" [attr.alt]=\"file.name\" [src]=\"file.objectURL\" [width]=\"previewWidth()\" [hBind]=\"$pcFileUpload.ptm('fileThumbnail')\" />\n <div [class]=\"cx('fileInfo')\" [hBind]=\"$pcFileUpload.ptm('fileInfo')\">\n <div [class]=\"cx('fileName')\" [hBind]=\"$pcFileUpload.ptm('fileName')\">{{ file.name }}</div>\n <span [class]=\"cx('fileSize')\" [hBind]=\"$pcFileUpload.ptm('fileSize')\">{{ formatSize(file.size) }}</span>\n </div>\n <h-badge [value]=\"badgeValue()\" [severity]=\"badgeSeverity()\" [class]=\"cx('pcFileBadge')\" [pt]=\"$pcFileUpload.ptm('pcFileBadge')\" [unstyled]=\"unstyled()\" />\n <div [class]=\"cx('fileActions')\" [hBind]=\"$pcFileUpload.ptm('fileActions')\">\n <h-button (onClick)=\"onRemoveClick($event, index)\" [styleClass]=\"cx('pcFileRemoveButton')\" text rounded severity=\"danger\" [pt]=\"$pcFileUpload.ptm('pcFileRemoveButton')\" [unstyled]=\"unstyled()\">\n <ng-template #icon let-iconClass=\"class\">\n @if (fileRemoveIconTemplate()) {\n <ng-template *ngTemplateOutlet=\"fileRemoveIconTemplate(); context: { class: iconClass, file: file, index: index }\"></ng-template>\n } @else {\n <svg data-h-icon=\"times\" [class]=\"iconClass\" [attr.aria-hidden]=\"true\" />\n }\n </ng-template>\n </h-button>\n </div>\n </div>\n }\n"
351
+ }]
352
+ }],
353
+ propDecorators: {
354
+ onRemove: [{
355
+ type: i0.Output,
356
+ args: ["onRemove"]
357
+ }],
358
+ files: [{
359
+ type: i0.Input,
360
+ args: [{
361
+ isSignal: true,
362
+ alias: "files",
363
+ required: false
364
+ }]
365
+ }],
366
+ badgeSeverity: [{
367
+ type: i0.Input,
368
+ args: [{
369
+ isSignal: true,
370
+ alias: "badgeSeverity",
371
+ required: false
372
+ }]
373
+ }],
374
+ badgeValue: [{
375
+ type: i0.Input,
376
+ args: [{
377
+ isSignal: true,
378
+ alias: "badgeValue",
379
+ required: false
380
+ }]
381
+ }],
382
+ previewWidth: [{
383
+ type: i0.Input,
384
+ args: [{
385
+ isSignal: true,
386
+ alias: "previewWidth",
387
+ required: false
388
+ }]
389
+ }],
390
+ fileRemoveIconTemplate: [{
391
+ type: i0.Input,
392
+ args: [{
393
+ isSignal: true,
394
+ alias: "fileRemoveIconTemplate",
395
+ required: false
396
+ }]
397
+ }]
398
+ }
399
+ });
400
+ var FileUpload = class FileUpload extends BaseComponent {
401
+ componentName = "FileUpload";
402
+ bindDirectiveInstance = inject(Bind, { self: true });
403
+ onAfterViewChecked() {
404
+ this.bindDirectiveInstance.setAttrs(this.ptm("host"));
405
+ }
406
+ name = input(...ngDevMode ? [void 0, { debugName: "name" }] : /* istanbul ignore next */ []);
407
+ url = input(...ngDevMode ? [void 0, { debugName: "url" }] : /* istanbul ignore next */ []);
408
+ method = input("post", ...ngDevMode ? [{ debugName: "method" }] : /* istanbul ignore next */ []);
409
+ multiple = input(void 0, {
410
+ ...ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {},
411
+ transform: booleanAttribute
412
+ });
413
+ accept = input(...ngDevMode ? [void 0, { debugName: "accept" }] : /* istanbul ignore next */ []);
414
+ disabled = input(void 0, {
415
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
416
+ transform: booleanAttribute
417
+ });
418
+ auto = input(void 0, {
419
+ ...ngDevMode ? { debugName: "auto" } : /* istanbul ignore next */ {},
420
+ transform: booleanAttribute
421
+ });
422
+ withCredentials = input(void 0, {
423
+ ...ngDevMode ? { debugName: "withCredentials" } : /* istanbul ignore next */ {},
424
+ transform: booleanAttribute
425
+ });
426
+ maxFileSize = input(void 0, {
427
+ ...ngDevMode ? { debugName: "maxFileSize" } : /* istanbul ignore next */ {},
428
+ transform: numberAttribute
429
+ });
430
+ invalidFileSizeMessageSummary = input("{0}: Invalid file size, ", ...ngDevMode ? [{ debugName: "invalidFileSizeMessageSummary" }] : /* istanbul ignore next */ []);
431
+ invalidFileSizeMessageDetail = input("maximum upload size is {0}.", ...ngDevMode ? [{ debugName: "invalidFileSizeMessageDetail" }] : /* istanbul ignore next */ []);
432
+ invalidFileTypeMessageSummary = input("{0}: Invalid file type, ", ...ngDevMode ? [{ debugName: "invalidFileTypeMessageSummary" }] : /* istanbul ignore next */ []);
433
+ invalidFileTypeMessageDetail = input("allowed file types: {0}.", ...ngDevMode ? [{ debugName: "invalidFileTypeMessageDetail" }] : /* istanbul ignore next */ []);
434
+ invalidFileLimitMessageDetail = input("limit is {0} at most.", ...ngDevMode ? [{ debugName: "invalidFileLimitMessageDetail" }] : /* istanbul ignore next */ []);
435
+ invalidFileLimitMessageSummary = input("Maximum number of files exceeded, ", ...ngDevMode ? [{ debugName: "invalidFileLimitMessageSummary" }] : /* istanbul ignore next */ []);
436
+ style = input(...ngDevMode ? [void 0, { debugName: "style" }] : /* istanbul ignore next */ []);
437
+ styleClass = input(...ngDevMode ? [void 0, { debugName: "styleClass" }] : /* istanbul ignore next */ []);
438
+ previewWidth = input(50, {
439
+ ...ngDevMode ? { debugName: "previewWidth" } : /* istanbul ignore next */ {},
440
+ transform: numberAttribute
441
+ });
442
+ chooseLabel = input(...ngDevMode ? [void 0, { debugName: "chooseLabel" }] : /* istanbul ignore next */ []);
443
+ uploadLabel = input(...ngDevMode ? [void 0, { debugName: "uploadLabel" }] : /* istanbul ignore next */ []);
444
+ cancelLabel = input(...ngDevMode ? [void 0, { debugName: "cancelLabel" }] : /* istanbul ignore next */ []);
445
+ chooseIcon = input(...ngDevMode ? [void 0, { debugName: "chooseIcon" }] : /* istanbul ignore next */ []);
446
+ uploadIcon = input(...ngDevMode ? [void 0, { debugName: "uploadIcon" }] : /* istanbul ignore next */ []);
447
+ cancelIcon = input(...ngDevMode ? [void 0, { debugName: "cancelIcon" }] : /* istanbul ignore next */ []);
448
+ showUploadButton = input(true, {
449
+ ...ngDevMode ? { debugName: "showUploadButton" } : /* istanbul ignore next */ {},
450
+ transform: booleanAttribute
451
+ });
452
+ showCancelButton = input(true, {
453
+ ...ngDevMode ? { debugName: "showCancelButton" } : /* istanbul ignore next */ {},
454
+ transform: booleanAttribute
455
+ });
456
+ mode = input("advanced", ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
457
+ headers = input(...ngDevMode ? [void 0, { debugName: "headers" }] : /* istanbul ignore next */ []);
458
+ customUpload = input(void 0, {
459
+ ...ngDevMode ? { debugName: "customUpload" } : /* istanbul ignore next */ {},
460
+ transform: booleanAttribute
461
+ });
462
+ fileLimit = input(void 0, {
463
+ ...ngDevMode ? { debugName: "fileLimit" } : /* istanbul ignore next */ {},
464
+ transform: (value) => numberAttribute(value, void 0)
465
+ });
466
+ uploadStyleClass = input(...ngDevMode ? [void 0, { debugName: "uploadStyleClass" }] : /* istanbul ignore next */ []);
467
+ cancelStyleClass = input(...ngDevMode ? [void 0, { debugName: "cancelStyleClass" }] : /* istanbul ignore next */ []);
468
+ removeStyleClass = input(...ngDevMode ? [void 0, { debugName: "removeStyleClass" }] : /* istanbul ignore next */ []);
469
+ chooseStyleClass = input(...ngDevMode ? [void 0, { debugName: "chooseStyleClass" }] : /* istanbul ignore next */ []);
470
+ chooseButtonProps = input(void 0, ...ngDevMode ? [{ debugName: "chooseButtonProps" }] : /* istanbul ignore next */ []);
471
+ uploadButtonProps = input({ severity: "secondary" }, ...ngDevMode ? [{ debugName: "uploadButtonProps" }] : /* istanbul ignore next */ []);
472
+ cancelButtonProps = input({ severity: "secondary" }, ...ngDevMode ? [{ debugName: "cancelButtonProps" }] : /* istanbul ignore next */ []);
473
+ onBeforeUpload = output();
474
+ onSend = output();
475
+ onUpload = output();
476
+ onError = output();
477
+ onClear = output();
478
+ onRemove = output();
479
+ onSelect = output();
480
+ onProgress = output();
481
+ uploadHandler = output();
482
+ onImageError = output();
483
+ onRemoveUploadedFile = output();
484
+ fileTemplate = contentChild("file", {
485
+ ...ngDevMode ? { debugName: "fileTemplate" } : /* istanbul ignore next */ {},
486
+ descendants: false
487
+ });
488
+ headerTemplate = contentChild("header", {
489
+ ...ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {},
490
+ descendants: false
491
+ });
492
+ contentTemplate = contentChild("content", {
493
+ ...ngDevMode ? { debugName: "contentTemplate" } : /* istanbul ignore next */ {},
494
+ descendants: false
495
+ });
496
+ toolbarTemplate = contentChild("toolbar", {
497
+ ...ngDevMode ? { debugName: "toolbarTemplate" } : /* istanbul ignore next */ {},
498
+ descendants: false
499
+ });
500
+ chooseIconTemplate = contentChild("chooseicon", {
501
+ ...ngDevMode ? { debugName: "chooseIconTemplate" } : /* istanbul ignore next */ {},
502
+ descendants: false
503
+ });
504
+ fileLabelTemplate = contentChild("filelabel", {
505
+ ...ngDevMode ? { debugName: "fileLabelTemplate" } : /* istanbul ignore next */ {},
506
+ descendants: false
507
+ });
508
+ uploadIconTemplate = contentChild("uploadicon", {
509
+ ...ngDevMode ? { debugName: "uploadIconTemplate" } : /* istanbul ignore next */ {},
510
+ descendants: false
511
+ });
512
+ cancelIconTemplate = contentChild("cancelicon", {
513
+ ...ngDevMode ? { debugName: "cancelIconTemplate" } : /* istanbul ignore next */ {},
514
+ descendants: false
515
+ });
516
+ emptyTemplate = contentChild("empty", {
517
+ ...ngDevMode ? { debugName: "emptyTemplate" } : /* istanbul ignore next */ {},
518
+ descendants: false
519
+ });
520
+ advancedFileInput = viewChild("advancedfileinput", ...ngDevMode ? [{ debugName: "advancedFileInput" }] : /* istanbul ignore next */ []);
521
+ basicFileInput = viewChild("basicfileinput", ...ngDevMode ? [{ debugName: "basicFileInput" }] : /* istanbul ignore next */ []);
522
+ content = viewChild("content", ...ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []);
523
+ files = model([], ...ngDevMode ? [{ debugName: "files" }] : /* istanbul ignore next */ []);
524
+ get basicButtonLabel() {
525
+ if (this.auto() || !this.hasFiles()) return this.chooseLabel();
526
+ return this.uploadLabel() ?? this.files()[0].name;
527
+ }
528
+ progress = 0;
529
+ dragHighlight;
530
+ msgs;
531
+ uploadedFileCount = 0;
532
+ focus;
533
+ uploading;
534
+ duplicateIEEvent;
535
+ translationSubscription;
536
+ dragOverListener;
537
+ uploadedFiles = [];
538
+ sanitizer = inject(DomSanitizer);
539
+ zone = inject(NgZone);
540
+ http = inject(HttpClient);
541
+ _componentStyle = inject(FileUploadStyle);
542
+ onInit() {
543
+ this.translationSubscription = this.config.translationObserver.subscribe(() => {
544
+ this.cd.markForCheck();
545
+ });
546
+ }
547
+ onAfterViewInit() {
548
+ if (isPlatformBrowser(this.platformId)) {
549
+ if (this.mode() === "advanced") this.zone.runOutsideAngular(() => {
550
+ const content = this.content();
551
+ if (content) this.dragOverListener = this.renderer.listen(content.nativeElement, "dragover", this.onDragOver.bind(this));
552
+ });
553
+ }
554
+ }
555
+ _headerTemplate;
556
+ _contentTemplate;
557
+ _toolbarTemplate;
558
+ _chooseIconTemplate;
559
+ _uploadIconTemplate;
560
+ _cancelIconTemplate;
561
+ _emptyTemplate;
562
+ _fileTemplate;
563
+ _fileLabelTemplate;
564
+ templates = contentChildren(HelixTemplate, ...ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []);
565
+ onAfterContentInit() {
566
+ this.templates()?.forEach((item) => {
567
+ switch (item.getType()) {
568
+ case "header":
569
+ this._headerTemplate = item.template;
570
+ break;
571
+ case "file":
572
+ this._fileTemplate = item.template;
573
+ break;
574
+ case "content":
575
+ this._contentTemplate = item.template;
576
+ break;
577
+ case "toolbar":
578
+ this._toolbarTemplate = item.template;
579
+ break;
580
+ case "chooseicon":
581
+ this._chooseIconTemplate = item.template;
582
+ break;
583
+ case "uploadicon":
584
+ this._uploadIconTemplate = item.template;
585
+ break;
586
+ case "cancelicon":
587
+ this._cancelIconTemplate = item.template;
588
+ break;
589
+ case "empty":
590
+ this._emptyTemplate = item.template;
591
+ break;
592
+ case "filelabel":
593
+ this._fileLabelTemplate = item.template;
594
+ break;
595
+ default:
596
+ this._fileTemplate = item.template;
597
+ break;
598
+ }
599
+ });
600
+ }
601
+ basicFileChosenLabel() {
602
+ if (this.auto()) return this.chooseButtonLabel;
603
+ else if (this.hasFiles()) {
604
+ if (this.files() && this.files().length === 1) return this.files()[0].name;
605
+ return this.config.getTranslation("fileChosenMessage")?.replace("{0}", this.files().length);
606
+ }
607
+ return this.config.getTranslation("noFileChosenMessage") || "";
608
+ }
609
+ completedLabel() {
610
+ return this.config.getTranslation("completed") || "";
611
+ }
612
+ getTranslation(option) {
613
+ return this.config.getTranslation(option);
614
+ }
615
+ choose() {
616
+ this.advancedFileInput()?.nativeElement.click();
617
+ }
618
+ onFileSelect(event) {
619
+ if (event.type !== "drop" && this.isIE11() && this.duplicateIEEvent) {
620
+ this.duplicateIEEvent = false;
621
+ return;
622
+ }
623
+ if (!this.multiple()) this.files.set([]);
624
+ this.msgs = [];
625
+ let files = event.dataTransfer ? event.dataTransfer.files : event.target.files;
626
+ for (let i = 0; i < files.length; i++) {
627
+ let file = files[i];
628
+ if (!this.isFileSelected(file)) {
629
+ if (this.validate(file)) {
630
+ if (this.isImage(file)) file.objectURL = this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(files[i]));
631
+ this.files().push(files[i]);
632
+ }
633
+ }
634
+ }
635
+ this.onSelect.emit({
636
+ originalEvent: event,
637
+ files,
638
+ currentFiles: this.files()
639
+ });
640
+ this.checkFileLimit(files);
641
+ if (this.hasFiles() && this.auto() && (this.mode() !== "advanced" || !this.isFileLimitExceeded())) this.upload();
642
+ if (event.type !== "drop" && this.isIE11()) this.clearIEInput();
643
+ else this.clearInputElement();
644
+ }
645
+ isFileSelected(file) {
646
+ for (let sFile of this.files()) if (sFile.name + sFile.type + sFile.size === file.name + file.type + file.size) return true;
647
+ return false;
648
+ }
649
+ isIE11() {
650
+ if (isPlatformBrowser(this.platformId)) return !!this.document.defaultView["MSInputMethodContext"] && !!this.document["documentMode"];
651
+ }
652
+ validate(file) {
653
+ this.msgs = this.msgs || [];
654
+ const accept = this.accept();
655
+ if (accept && !this.isFileTypeValid(file)) {
656
+ const text = `${this.invalidFileTypeMessageSummary().replace("{0}", file.name)} ${this.invalidFileTypeMessageDetail().replace("{0}", accept)}`;
657
+ this.msgs.push({
658
+ severity: "error",
659
+ text
660
+ });
661
+ return false;
662
+ }
663
+ const maxFileSize = this.maxFileSize();
664
+ if (maxFileSize && file.size > maxFileSize) {
665
+ const text = `${this.invalidFileSizeMessageSummary().replace("{0}", file.name)} ${this.invalidFileSizeMessageDetail().replace("{0}", this.formatSize(maxFileSize))}`;
666
+ this.msgs.push({
667
+ severity: "error",
668
+ text
669
+ });
670
+ return false;
671
+ }
672
+ return true;
673
+ }
674
+ isFileTypeValid(file) {
675
+ let acceptableTypes = this.accept()?.split(",").map((type) => type.trim());
676
+ for (let type of acceptableTypes) if (this.isWildcard(type) ? this.getTypeClass(file.type) === this.getTypeClass(type) : file.type == type || this.getFileExtension(file).toLowerCase() === type.toLowerCase()) return true;
677
+ return false;
678
+ }
679
+ getTypeClass(fileType) {
680
+ return fileType.substring(0, fileType.indexOf("/"));
681
+ }
682
+ isWildcard(fileType) {
683
+ return fileType.indexOf("*") !== -1;
684
+ }
685
+ getFileExtension(file) {
686
+ return "." + file.name.split(".").pop();
687
+ }
688
+ isImage(file) {
689
+ return /^image\//.test(file.type);
690
+ }
691
+ onImageLoad(img) {
692
+ window.URL.revokeObjectURL(img.src);
693
+ }
694
+ uploader() {
695
+ if (this.customUpload()) {
696
+ if (this.fileLimit()) this.uploadedFileCount += this.files().length;
697
+ this.uploadHandler.emit({ files: this.files() });
698
+ this.cd.markForCheck();
699
+ } else {
700
+ this.uploading = true;
701
+ this.msgs = [];
702
+ let formData = new FormData();
703
+ this.onBeforeUpload.emit({ formData });
704
+ for (let i = 0; i < this.files().length; i++) formData.append(this.name(), this.files()[i], this.files()[i].name);
705
+ this.http.request(this.method(), this.url(), {
706
+ body: formData,
707
+ headers: this.headers(),
708
+ reportProgress: true,
709
+ observe: "events",
710
+ withCredentials: this.withCredentials()
711
+ }).subscribe((event) => {
712
+ switch (event.type) {
713
+ case HttpEventType.Sent:
714
+ this.onSend.emit({
715
+ originalEvent: event,
716
+ formData
717
+ });
718
+ break;
719
+ case HttpEventType.Response:
720
+ this.uploading = false;
721
+ this.progress = 0;
722
+ if (event["status"] >= 200 && event["status"] < 300) {
723
+ if (this.fileLimit()) this.uploadedFileCount += this.files().length;
724
+ this.onUpload.emit({
725
+ originalEvent: event,
726
+ files: this.files()
727
+ });
728
+ } else this.onError.emit({ files: this.files() });
729
+ this.uploadedFiles = [...this.uploadedFiles, ...this.files()];
730
+ this.clear();
731
+ break;
732
+ case HttpEventType.UploadProgress:
733
+ if (event["loaded"]) this.progress = Math.round(event["loaded"] * 100 / event["total"]);
734
+ this.onProgress.emit({
735
+ originalEvent: event,
736
+ progress: this.progress
737
+ });
738
+ break;
739
+ }
740
+ this.cd.markForCheck();
741
+ }, (error) => {
742
+ this.uploading = false;
743
+ this.onError.emit({
744
+ files: this.files(),
745
+ error
746
+ });
747
+ });
748
+ }
749
+ }
750
+ onRemoveClick(e) {
751
+ const { event, index } = e;
752
+ if (this.hasFiles()) this.remove(event, index);
753
+ }
754
+ onRemoveUploadedFileClick(e) {
755
+ const { index } = e;
756
+ if (this.hasUploadedFiles()) this.removeUploadedFile(index);
757
+ }
758
+ clear() {
759
+ this.files.set([]);
760
+ this.onClear.emit();
761
+ this.clearInputElement();
762
+ this.msgs = [];
763
+ this.cd.markForCheck();
764
+ }
765
+ remove(event, index) {
766
+ this.clearInputElement();
767
+ this.onRemove.emit({
768
+ originalEvent: event,
769
+ file: this.files()[index]
770
+ });
771
+ this.files().splice(index, 1);
772
+ this.checkFileLimit(this.files());
773
+ }
774
+ removeUploadedFile(index) {
775
+ let removedFile = this.uploadedFiles.splice(index, 1)[0];
776
+ this.uploadedFiles = [...this.uploadedFiles];
777
+ this.onRemoveUploadedFile.emit({
778
+ file: removedFile,
779
+ files: this.uploadedFiles
780
+ });
781
+ }
782
+ isFileLimitExceeded() {
783
+ const totalFileCount = this.auto() ? this.files().length : this.files().length + this.uploadedFileCount;
784
+ const fileLimit = this.fileLimit();
785
+ if (fileLimit && fileLimit <= totalFileCount && this.focus) this.focus = false;
786
+ return fileLimit && fileLimit < totalFileCount;
787
+ }
788
+ isChooseDisabled() {
789
+ if (this.auto()) {
790
+ const fileLimit = this.fileLimit();
791
+ return fileLimit && fileLimit <= this.files().length;
792
+ } else {
793
+ const fileLimit = this.fileLimit();
794
+ return fileLimit && fileLimit <= this.files().length + this.uploadedFileCount;
795
+ }
796
+ }
797
+ checkFileLimit(files) {
798
+ this.msgs ??= [];
799
+ const fileLimit = this.fileLimit();
800
+ const hasExistingValidationMessages = this.msgs.length > 0 && fileLimit && fileLimit < files.length;
801
+ if (this.isFileLimitExceeded() || hasExistingValidationMessages) {
802
+ const text = `${this.invalidFileLimitMessageSummary().replace("{0}", this.fileLimit().toString())} ${this.invalidFileLimitMessageDetail().replace("{0}", this.fileLimit().toString())}`;
803
+ this.msgs.push({
804
+ severity: "error",
805
+ text
806
+ });
807
+ } else this.msgs = this.msgs.filter((msg) => !msg.text.includes(this.invalidFileLimitMessageSummary()));
808
+ }
809
+ clearInputElement() {
810
+ if (this.advancedFileInput() && this.advancedFileInput().nativeElement) this.advancedFileInput().nativeElement.value = "";
811
+ const basicFileInput = this.basicFileInput();
812
+ if (basicFileInput && basicFileInput.nativeElement) basicFileInput.nativeElement.value = "";
813
+ }
814
+ clearIEInput() {
815
+ if (this.advancedFileInput() && this.advancedFileInput().nativeElement) {
816
+ this.duplicateIEEvent = true;
817
+ this.advancedFileInput().nativeElement.value = "";
818
+ }
819
+ }
820
+ hasFiles() {
821
+ return this.files() && this.files().length > 0;
822
+ }
823
+ hasUploadedFiles() {
824
+ return this.uploadedFiles && this.uploadedFiles.length > 0;
825
+ }
826
+ onDragEnter(e) {
827
+ if (!this.disabled()) {
828
+ e.stopPropagation();
829
+ e.preventDefault();
830
+ }
831
+ }
832
+ onDragOver(e) {
833
+ if (!this.disabled()) {
834
+ !this.$unstyled() && addClass(this.content()?.nativeElement, "h-fileupload-highlight");
835
+ this.content()?.nativeElement.setAttribute("data-h-highlight", true);
836
+ this.dragHighlight = true;
837
+ e.stopPropagation();
838
+ e.preventDefault();
839
+ }
840
+ }
841
+ onDragLeave(event) {
842
+ if (!this.disabled()) {
843
+ !this.$unstyled() && removeClass(this.content()?.nativeElement, "h-fileupload-highlight");
844
+ this.content()?.nativeElement.setAttribute("data-h-highlight", false);
845
+ }
846
+ }
847
+ onDrop(event) {
848
+ if (!this.disabled()) {
849
+ !this.$unstyled() && removeClass(this.content()?.nativeElement, "h-fileupload-highlight");
850
+ this.content()?.nativeElement.setAttribute("data-h-highlight", false);
851
+ event.stopPropagation();
852
+ event.preventDefault();
853
+ let files = event.dataTransfer ? event.dataTransfer.files : event.target.files;
854
+ if (this.multiple() || files && files.length === 1) this.onFileSelect(event);
855
+ }
856
+ }
857
+ onFocus() {
858
+ this.focus = true;
859
+ }
860
+ onBlur() {
861
+ this.focus = false;
862
+ }
863
+ formatSize(bytes) {
864
+ const k = 1024;
865
+ const dm = 3;
866
+ const sizes = this.getTranslation(TranslationKeys.FILE_SIZE_TYPES);
867
+ if (bytes === 0) return `0 ${sizes[0]}`;
868
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
869
+ return `${(bytes / Math.pow(k, i)).toFixed(dm)} ${sizes[i]}`;
870
+ }
871
+ upload() {
872
+ if (this.hasFiles()) this.uploader();
873
+ }
874
+ onBasicUploaderClick() {
875
+ this.basicFileInput()?.nativeElement.click();
876
+ }
877
+ onBasicKeydown(event) {
878
+ switch (event.code) {
879
+ case "Space":
880
+ case "Enter":
881
+ this.onBasicUploaderClick();
882
+ event.preventDefault();
883
+ break;
884
+ }
885
+ }
886
+ imageError(event) {
887
+ this.onImageError.emit(event);
888
+ }
889
+ getBlockableElement() {
890
+ return this.el.nativeElement.children[0];
891
+ }
892
+ get chooseButtonLabel() {
893
+ return this.chooseLabel() || this.config.getTranslation(TranslationKeys.CHOOSE);
894
+ }
895
+ get uploadButtonLabel() {
896
+ return this.uploadLabel() || this.config.getTranslation(TranslationKeys.UPLOAD);
897
+ }
898
+ get cancelButtonLabel() {
899
+ return this.cancelLabel() || this.config.getTranslation(TranslationKeys.CANCEL);
900
+ }
901
+ get browseFilesLabel() {
902
+ return this.config.getTranslation(TranslationKeys.ARIA)[TranslationKeys.BROWSE_FILES];
903
+ }
904
+ get pendingLabel() {
905
+ return this.config.getTranslation(TranslationKeys.PENDING);
906
+ }
907
+ onDestroy() {
908
+ const content = this.content();
909
+ if (content && content.nativeElement) {
910
+ if (this.dragOverListener) {
911
+ this.dragOverListener();
912
+ this.dragOverListener = null;
913
+ }
914
+ }
915
+ if (this.translationSubscription) this.translationSubscription.unsubscribe();
916
+ }
917
+ static ɵfac = i0.ɵɵngDeclareFactory({
918
+ minVersion: "12.0.0",
919
+ version: "22.2.1",
920
+ ngImport: i0,
921
+ type: FileUpload,
922
+ deps: null,
923
+ target: i0.ɵɵFactoryTarget.Component
924
+ });
925
+ static ɵcmp = i0.ɵɵngDeclareComponent({
926
+ minVersion: "17.0.0",
927
+ version: "22.2.1",
928
+ type: FileUpload,
929
+ isStandalone: true,
930
+ selector: "h-fileupload, h-fileUpload",
931
+ inputs: {
932
+ name: {
933
+ classPropertyName: "name",
934
+ publicName: "name",
935
+ isSignal: true,
936
+ isRequired: false,
937
+ transformFunction: null
938
+ },
939
+ url: {
940
+ classPropertyName: "url",
941
+ publicName: "url",
942
+ isSignal: true,
943
+ isRequired: false,
944
+ transformFunction: null
945
+ },
946
+ method: {
947
+ classPropertyName: "method",
948
+ publicName: "method",
949
+ isSignal: true,
950
+ isRequired: false,
951
+ transformFunction: null
952
+ },
953
+ multiple: {
954
+ classPropertyName: "multiple",
955
+ publicName: "multiple",
956
+ isSignal: true,
957
+ isRequired: false,
958
+ transformFunction: null
959
+ },
960
+ accept: {
961
+ classPropertyName: "accept",
962
+ publicName: "accept",
963
+ isSignal: true,
964
+ isRequired: false,
965
+ transformFunction: null
966
+ },
967
+ disabled: {
968
+ classPropertyName: "disabled",
969
+ publicName: "disabled",
970
+ isSignal: true,
971
+ isRequired: false,
972
+ transformFunction: null
973
+ },
974
+ auto: {
975
+ classPropertyName: "auto",
976
+ publicName: "auto",
977
+ isSignal: true,
978
+ isRequired: false,
979
+ transformFunction: null
980
+ },
981
+ withCredentials: {
982
+ classPropertyName: "withCredentials",
983
+ publicName: "withCredentials",
984
+ isSignal: true,
985
+ isRequired: false,
986
+ transformFunction: null
987
+ },
988
+ maxFileSize: {
989
+ classPropertyName: "maxFileSize",
990
+ publicName: "maxFileSize",
991
+ isSignal: true,
992
+ isRequired: false,
993
+ transformFunction: null
994
+ },
995
+ invalidFileSizeMessageSummary: {
996
+ classPropertyName: "invalidFileSizeMessageSummary",
997
+ publicName: "invalidFileSizeMessageSummary",
998
+ isSignal: true,
999
+ isRequired: false,
1000
+ transformFunction: null
1001
+ },
1002
+ invalidFileSizeMessageDetail: {
1003
+ classPropertyName: "invalidFileSizeMessageDetail",
1004
+ publicName: "invalidFileSizeMessageDetail",
1005
+ isSignal: true,
1006
+ isRequired: false,
1007
+ transformFunction: null
1008
+ },
1009
+ invalidFileTypeMessageSummary: {
1010
+ classPropertyName: "invalidFileTypeMessageSummary",
1011
+ publicName: "invalidFileTypeMessageSummary",
1012
+ isSignal: true,
1013
+ isRequired: false,
1014
+ transformFunction: null
1015
+ },
1016
+ invalidFileTypeMessageDetail: {
1017
+ classPropertyName: "invalidFileTypeMessageDetail",
1018
+ publicName: "invalidFileTypeMessageDetail",
1019
+ isSignal: true,
1020
+ isRequired: false,
1021
+ transformFunction: null
1022
+ },
1023
+ invalidFileLimitMessageDetail: {
1024
+ classPropertyName: "invalidFileLimitMessageDetail",
1025
+ publicName: "invalidFileLimitMessageDetail",
1026
+ isSignal: true,
1027
+ isRequired: false,
1028
+ transformFunction: null
1029
+ },
1030
+ invalidFileLimitMessageSummary: {
1031
+ classPropertyName: "invalidFileLimitMessageSummary",
1032
+ publicName: "invalidFileLimitMessageSummary",
1033
+ isSignal: true,
1034
+ isRequired: false,
1035
+ transformFunction: null
1036
+ },
1037
+ style: {
1038
+ classPropertyName: "style",
1039
+ publicName: "style",
1040
+ isSignal: true,
1041
+ isRequired: false,
1042
+ transformFunction: null
1043
+ },
1044
+ styleClass: {
1045
+ classPropertyName: "styleClass",
1046
+ publicName: "styleClass",
1047
+ isSignal: true,
1048
+ isRequired: false,
1049
+ transformFunction: null
1050
+ },
1051
+ previewWidth: {
1052
+ classPropertyName: "previewWidth",
1053
+ publicName: "previewWidth",
1054
+ isSignal: true,
1055
+ isRequired: false,
1056
+ transformFunction: null
1057
+ },
1058
+ chooseLabel: {
1059
+ classPropertyName: "chooseLabel",
1060
+ publicName: "chooseLabel",
1061
+ isSignal: true,
1062
+ isRequired: false,
1063
+ transformFunction: null
1064
+ },
1065
+ uploadLabel: {
1066
+ classPropertyName: "uploadLabel",
1067
+ publicName: "uploadLabel",
1068
+ isSignal: true,
1069
+ isRequired: false,
1070
+ transformFunction: null
1071
+ },
1072
+ cancelLabel: {
1073
+ classPropertyName: "cancelLabel",
1074
+ publicName: "cancelLabel",
1075
+ isSignal: true,
1076
+ isRequired: false,
1077
+ transformFunction: null
1078
+ },
1079
+ chooseIcon: {
1080
+ classPropertyName: "chooseIcon",
1081
+ publicName: "chooseIcon",
1082
+ isSignal: true,
1083
+ isRequired: false,
1084
+ transformFunction: null
1085
+ },
1086
+ uploadIcon: {
1087
+ classPropertyName: "uploadIcon",
1088
+ publicName: "uploadIcon",
1089
+ isSignal: true,
1090
+ isRequired: false,
1091
+ transformFunction: null
1092
+ },
1093
+ cancelIcon: {
1094
+ classPropertyName: "cancelIcon",
1095
+ publicName: "cancelIcon",
1096
+ isSignal: true,
1097
+ isRequired: false,
1098
+ transformFunction: null
1099
+ },
1100
+ showUploadButton: {
1101
+ classPropertyName: "showUploadButton",
1102
+ publicName: "showUploadButton",
1103
+ isSignal: true,
1104
+ isRequired: false,
1105
+ transformFunction: null
1106
+ },
1107
+ showCancelButton: {
1108
+ classPropertyName: "showCancelButton",
1109
+ publicName: "showCancelButton",
1110
+ isSignal: true,
1111
+ isRequired: false,
1112
+ transformFunction: null
1113
+ },
1114
+ mode: {
1115
+ classPropertyName: "mode",
1116
+ publicName: "mode",
1117
+ isSignal: true,
1118
+ isRequired: false,
1119
+ transformFunction: null
1120
+ },
1121
+ headers: {
1122
+ classPropertyName: "headers",
1123
+ publicName: "headers",
1124
+ isSignal: true,
1125
+ isRequired: false,
1126
+ transformFunction: null
1127
+ },
1128
+ customUpload: {
1129
+ classPropertyName: "customUpload",
1130
+ publicName: "customUpload",
1131
+ isSignal: true,
1132
+ isRequired: false,
1133
+ transformFunction: null
1134
+ },
1135
+ fileLimit: {
1136
+ classPropertyName: "fileLimit",
1137
+ publicName: "fileLimit",
1138
+ isSignal: true,
1139
+ isRequired: false,
1140
+ transformFunction: null
1141
+ },
1142
+ uploadStyleClass: {
1143
+ classPropertyName: "uploadStyleClass",
1144
+ publicName: "uploadStyleClass",
1145
+ isSignal: true,
1146
+ isRequired: false,
1147
+ transformFunction: null
1148
+ },
1149
+ cancelStyleClass: {
1150
+ classPropertyName: "cancelStyleClass",
1151
+ publicName: "cancelStyleClass",
1152
+ isSignal: true,
1153
+ isRequired: false,
1154
+ transformFunction: null
1155
+ },
1156
+ removeStyleClass: {
1157
+ classPropertyName: "removeStyleClass",
1158
+ publicName: "removeStyleClass",
1159
+ isSignal: true,
1160
+ isRequired: false,
1161
+ transformFunction: null
1162
+ },
1163
+ chooseStyleClass: {
1164
+ classPropertyName: "chooseStyleClass",
1165
+ publicName: "chooseStyleClass",
1166
+ isSignal: true,
1167
+ isRequired: false,
1168
+ transformFunction: null
1169
+ },
1170
+ chooseButtonProps: {
1171
+ classPropertyName: "chooseButtonProps",
1172
+ publicName: "chooseButtonProps",
1173
+ isSignal: true,
1174
+ isRequired: false,
1175
+ transformFunction: null
1176
+ },
1177
+ uploadButtonProps: {
1178
+ classPropertyName: "uploadButtonProps",
1179
+ publicName: "uploadButtonProps",
1180
+ isSignal: true,
1181
+ isRequired: false,
1182
+ transformFunction: null
1183
+ },
1184
+ cancelButtonProps: {
1185
+ classPropertyName: "cancelButtonProps",
1186
+ publicName: "cancelButtonProps",
1187
+ isSignal: true,
1188
+ isRequired: false,
1189
+ transformFunction: null
1190
+ },
1191
+ files: {
1192
+ classPropertyName: "files",
1193
+ publicName: "files",
1194
+ isSignal: true,
1195
+ isRequired: false,
1196
+ transformFunction: null
1197
+ }
1198
+ },
1199
+ outputs: {
1200
+ onBeforeUpload: "onBeforeUpload",
1201
+ onSend: "onSend",
1202
+ onUpload: "onUpload",
1203
+ onError: "onError",
1204
+ onClear: "onClear",
1205
+ onRemove: "onRemove",
1206
+ onSelect: "onSelect",
1207
+ onProgress: "onProgress",
1208
+ uploadHandler: "uploadHandler",
1209
+ onImageError: "onImageError",
1210
+ onRemoveUploadedFile: "onRemoveUploadedFile",
1211
+ files: "filesChange"
1212
+ },
1213
+ providers: [
1214
+ FileUploadStyle,
1215
+ {
1216
+ provide: FILEUPLOAD_INSTANCE,
1217
+ useExisting: FileUpload
1218
+ },
1219
+ {
1220
+ provide: PARENT_INSTANCE,
1221
+ useExisting: FileUpload
1222
+ }
1223
+ ],
1224
+ queries: [
1225
+ {
1226
+ propertyName: "fileTemplate",
1227
+ first: true,
1228
+ predicate: ["file"],
1229
+ isSignal: true
1230
+ },
1231
+ {
1232
+ propertyName: "headerTemplate",
1233
+ first: true,
1234
+ predicate: ["header"],
1235
+ isSignal: true
1236
+ },
1237
+ {
1238
+ propertyName: "contentTemplate",
1239
+ first: true,
1240
+ predicate: ["content"],
1241
+ isSignal: true
1242
+ },
1243
+ {
1244
+ propertyName: "toolbarTemplate",
1245
+ first: true,
1246
+ predicate: ["toolbar"],
1247
+ isSignal: true
1248
+ },
1249
+ {
1250
+ propertyName: "chooseIconTemplate",
1251
+ first: true,
1252
+ predicate: ["chooseicon"],
1253
+ isSignal: true
1254
+ },
1255
+ {
1256
+ propertyName: "fileLabelTemplate",
1257
+ first: true,
1258
+ predicate: ["filelabel"],
1259
+ isSignal: true
1260
+ },
1261
+ {
1262
+ propertyName: "uploadIconTemplate",
1263
+ first: true,
1264
+ predicate: ["uploadicon"],
1265
+ isSignal: true
1266
+ },
1267
+ {
1268
+ propertyName: "cancelIconTemplate",
1269
+ first: true,
1270
+ predicate: ["cancelicon"],
1271
+ isSignal: true
1272
+ },
1273
+ {
1274
+ propertyName: "emptyTemplate",
1275
+ first: true,
1276
+ predicate: ["empty"],
1277
+ isSignal: true
1278
+ },
1279
+ {
1280
+ propertyName: "templates",
1281
+ predicate: HelixTemplate,
1282
+ isSignal: true
1283
+ }
1284
+ ],
1285
+ viewQueries: [
1286
+ {
1287
+ propertyName: "advancedFileInput",
1288
+ first: true,
1289
+ predicate: ["advancedfileinput"],
1290
+ descendants: true,
1291
+ isSignal: true
1292
+ },
1293
+ {
1294
+ propertyName: "basicFileInput",
1295
+ first: true,
1296
+ predicate: ["basicfileinput"],
1297
+ descendants: true,
1298
+ isSignal: true
1299
+ },
1300
+ {
1301
+ propertyName: "content",
1302
+ first: true,
1303
+ predicate: ["content"],
1304
+ descendants: true,
1305
+ isSignal: true
1306
+ }
1307
+ ],
1308
+ usesInheritance: true,
1309
+ hostDirectives: [{ directive: i2.Bind }],
1310
+ ngImport: i0,
1311
+ template: "@if (mode() === 'advanced') {\n <div [class]=\"cn(cx('root'), styleClass())\" [ngStyle]=\"style()\" [hBind]=\"ptm('root')\">\n <input [attr.aria-label]=\"browseFilesLabel\" #advancedfileinput type=\"file\" (change)=\"onFileSelect($event)\" [multiple]=\"multiple()\" [accept]=\"accept()\" [disabled]=\"disabled() || isChooseDisabled()\" [attr.title]=\"''\" [hBind]=\"ptm('input')\" />\n <div [class]=\"cx('header')\" [hBind]=\"ptm('header')\">\n @if (!headerTemplate() && !_headerTemplate) {\n <h-button\n [styleClass]=\"cn(cx('pcChooseButton'), chooseStyleClass())\"\n [disabled]=\"disabled() || isChooseDisabled()\"\n (focus)=\"onFocus()\"\n [label]=\"chooseButtonLabel\"\n (blur)=\"onBlur()\"\n (onClick)=\"choose()\"\n (keydown.enter)=\"choose()\"\n [buttonProps]=\"chooseButtonProps()\"\n [pt]=\"ptm('pcChooseButton')\"\n [unstyled]=\"unstyled()\"\n >\n <input\n [attr.aria-label]=\"browseFilesLabel\"\n #advancedfileinput\n type=\"file\"\n (change)=\"onFileSelect($event)\"\n [multiple]=\"multiple()\"\n [accept]=\"accept()\"\n [disabled]=\"disabled() || isChooseDisabled()\"\n [attr.title]=\"''\"\n [hBind]=\"ptm('input')\"\n />\n <ng-template #icon>\n @if (chooseIcon()) {\n <span [class]=\"chooseIcon()\" [attr.aria-label]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\"></span>\n }\n @if (!chooseIcon()) {\n @if (!chooseIconTemplate() && !_chooseIconTemplate) {\n <svg data-h-icon=\"plus\" [attr.aria-label]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\" />\n }\n @if (chooseIconTemplate() || _chooseIconTemplate) {\n <span [attr.aria-label]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\">\n <ng-template *ngTemplateOutlet=\"chooseIconTemplate() || _chooseIconTemplate\"></ng-template>\n </span>\n }\n }\n </ng-template>\n </h-button>\n @if (!auto() && showUploadButton()) {\n <h-button\n [label]=\"uploadButtonLabel\"\n (onClick)=\"upload()\"\n [disabled]=\"!hasFiles() || isFileLimitExceeded()\"\n [styleClass]=\"cn(cx('pcUploadButton'), uploadStyleClass())\"\n [buttonProps]=\"uploadButtonProps()\"\n [pt]=\"ptm('pcUploadButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (uploadIcon()) {\n <span [ngClass]=\"uploadIcon()\" [attr.aria-hidden]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcUploadButton')?.icon)\"></span>\n }\n @if (!uploadIcon()) {\n @if (!uploadIconTemplate() && !_uploadIconTemplate) {\n <svg data-h-icon=\"upload\" [hBind]=\"$safeNavigationMigration(ptm('pcUploadButton')?.icon)\" />\n }\n @if (uploadIconTemplate() || _uploadIconTemplate) {\n <span [attr.aria-hidden]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcUploadButton')?.icon)\">\n <ng-template *ngTemplateOutlet=\"uploadIconTemplate() || _uploadIconTemplate\"></ng-template>\n </span>\n }\n }\n </ng-template>\n </h-button>\n }\n @if (!auto() && showCancelButton()) {\n <h-button\n [label]=\"cancelButtonLabel\"\n (onClick)=\"clear()\"\n [disabled]=\"!hasFiles() || uploading\"\n [styleClass]=\"cn(cx('pcCancelButton'), cancelStyleClass())\"\n [buttonProps]=\"cancelButtonProps()\"\n [pt]=\"ptm('pcCancelButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (cancelIcon()) {\n <span [ngClass]=\"cancelIcon()\"></span>\n }\n @if (!cancelIcon()) {\n @if (!cancelIconTemplate() && !_cancelIconTemplate) {\n <svg data-h-icon=\"times\" [attr.aria-hidden]=\"true\" />\n }\n @if (cancelIconTemplate() || _cancelIconTemplate) {\n <span [attr.aria-hidden]=\"true\">\n <ng-template *ngTemplateOutlet=\"cancelIconTemplate() || _cancelIconTemplate\"></ng-template>\n </span>\n }\n }\n </ng-template>\n </h-button>\n }\n }\n <ng-container\n *ngTemplateOutlet=\"\n headerTemplate() || _headerTemplate;\n context: {\n $implicit: files(),\n uploadedFiles: uploadedFiles,\n chooseCallback: choose.bind(this),\n clearCallback: clear.bind(this),\n uploadCallback: upload.bind(this)\n }\n \"\n ></ng-container>\n <ng-container *ngTemplateOutlet=\"toolbarTemplate() || _toolbarTemplate\"></ng-container>\n </div>\n <div #content [class]=\"cx('content')\" (dragenter)=\"onDragEnter($event)\" (dragleave)=\"onDragLeave($event)\" (drop)=\"onDrop($event)\" [hBind]=\"ptm('content')\">\n @if (contentTemplate() || _contentTemplate) {\n <ng-container\n *ngTemplateOutlet=\"\n contentTemplate() || _contentTemplate;\n context: {\n $implicit: files(),\n uploadedFiles: uploadedFiles,\n chooseCallback: choose.bind(this),\n clearCallback: clear.bind(this),\n removeUploadedFileCallback: removeUploadedFile.bind(this),\n removeFileCallback: remove.bind(this),\n progress: progress,\n messages: msgs\n }\n \"\n ></ng-container>\n } @else {\n @if (hasFiles()) {\n <h-progressbar [value]=\"progress\" [showValue]=\"false\" [pt]=\"ptm('pcProgressBar')\"></h-progressbar>\n }\n @for (message of msgs; track message) {\n <h-message [severity]=\"message.severity\" [text]=\"message.text\" [pt]=\"ptm('pcMessage')\" [unstyled]=\"unstyled()\"></h-message>\n }\n @if (hasFiles()) {\n <div [class]=\"cx('fileList')\" [hBind]=\"ptm('fileList')\">\n @for (file of files(); track file; let i = $index) {\n <ng-container *ngTemplateOutlet=\"fileTemplate() || _fileTemplate; context: { $implicit: file, index: i }\"></ng-container>\n }\n @if (!fileTemplate() && !_fileTemplate) {\n <div\n hFileContent\n [unstyled]=\"unstyled()\"\n [files]=\"files()\"\n (onRemove)=\"onRemoveClick($event)\"\n [badgeValue]=\"pendingLabel\"\n [previewWidth]=\"previewWidth()\"\n [fileRemoveIconTemplate]=\"cancelIconTemplate() || _cancelIconTemplate\"\n ></div>\n }\n </div>\n }\n @if (hasUploadedFiles()) {\n <div [class]=\"cx('fileList')\" [hBind]=\"ptm('fileList')\">\n @for (file of uploadedFiles; track file; let i = $index) {\n <ng-container *ngTemplateOutlet=\"fileTemplate() || _fileTemplate; context: { $implicit: file, index: i }\"></ng-container>\n }\n @if (!fileTemplate() && !_fileTemplate) {\n <div\n hFileContent\n [unstyled]=\"unstyled()\"\n [files]=\"uploadedFiles\"\n (onRemove)=\"onRemoveUploadedFileClick($event)\"\n [badgeValue]=\"completedLabel()\"\n badgeSeverity=\"success\"\n [previewWidth]=\"previewWidth()\"\n [fileRemoveIconTemplate]=\"cancelIconTemplate() || _cancelIconTemplate\"\n ></div>\n }\n </div>\n }\n }\n @if ((emptyTemplate() || _emptyTemplate) && !hasFiles() && !hasUploadedFiles()) {\n <ng-container *ngTemplateOutlet=\"emptyTemplate() || _emptyTemplate\" [hBind]=\"ptm('empty')\"></ng-container>\n }\n</div>\n</div>\n}\n@if (mode() === 'basic') {\n <div [class]=\"cn(cx('root'), styleClass())\" [hBind]=\"ptm('root')\">\n @for (message of msgs; track message) {\n <h-message [severity]=\"message.severity\" [text]=\"message.text\" [pt]=\"ptm('pcMessage')\" [unstyled]=\"unstyled()\"></h-message>\n }\n <div [class]=\"cx('basicContent')\" [hBind]=\"ptm('basicContent')\">\n <h-button\n [styleClass]=\"cn(cx('pcChooseButton'), chooseStyleClass())\"\n [disabled]=\"disabled()\"\n [label]=\"chooseButtonLabel\"\n [style]=\"style()\"\n (onClick)=\"onBasicUploaderClick()\"\n (keydown)=\"onBasicKeydown($event)\"\n [buttonProps]=\"chooseButtonProps()\"\n [pt]=\"ptm('pcChooseButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (hasFiles() && !auto()) {\n @if (uploadIcon()) {\n <span class=\"h-button-icon h-button-icon-left\" [ngClass]=\"uploadIcon()\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\"></span>\n }\n @if (!uploadIcon()) {\n @if (!uploadIconTemplate() && !_uploadIconTemplate) {\n <svg data-h-icon=\"upload\" [class]=\"'h-button-icon h-button-icon-left'\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\" />\n }\n @if (_uploadIconTemplate || uploadIconTemplate()) {\n <span class=\"h-button-icon h-button-icon-left\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\">\n <ng-template *ngTemplateOutlet=\"_uploadIconTemplate || uploadIconTemplate()\"></ng-template>\n </span>\n }\n }\n } @else {\n @if (chooseIcon()) {\n <span class=\"h-button-icon h-button-icon-left pi\" [ngClass]=\"chooseIcon()\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\"></span>\n }\n @if (!chooseIcon()) {\n @if (!chooseIconTemplate() && !_chooseIconTemplate) {\n <svg data-h-icon=\"plus\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\" />\n }\n <ng-template *ngTemplateOutlet=\"chooseIconTemplate() || _chooseIconTemplate\"></ng-template>\n }\n }\n </ng-template>\n <input [attr.aria-label]=\"browseFilesLabel\" #basicfileinput type=\"file\" [accept]=\"accept()\" [multiple]=\"multiple()\" [disabled]=\"disabled()\" (change)=\"onFileSelect($event)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\" [hBind]=\"ptm('input')\" />\n </h-button>\n @if (!auto()) {\n @if (!fileLabelTemplate() && !_fileLabelTemplate) {\n <span>\n {{ basicFileChosenLabel() }}\n </span>\n } @else {\n <ng-container *ngTemplateOutlet=\"fileLabelTemplate() || _fileLabelTemplate; context: { $implicit: files() }\"></ng-container>\n }\n }\n </div>\n </div>\n}\n",
1312
+ dependencies: [
1313
+ {
1314
+ kind: "ngmodule",
1315
+ type: CommonModule
1316
+ },
1317
+ {
1318
+ kind: "directive",
1319
+ type: i1.NgClass,
1320
+ selector: "[ngClass]",
1321
+ inputs: ["class", "ngClass"]
1322
+ },
1323
+ {
1324
+ kind: "directive",
1325
+ type: i1.NgTemplateOutlet,
1326
+ selector: "[ngTemplateOutlet]",
1327
+ inputs: [
1328
+ "ngTemplateOutletContext",
1329
+ "ngTemplateOutlet",
1330
+ "ngTemplateOutletInjector"
1331
+ ]
1332
+ },
1333
+ {
1334
+ kind: "directive",
1335
+ type: i1.NgStyle,
1336
+ selector: "[ngStyle]",
1337
+ inputs: ["ngStyle"]
1338
+ },
1339
+ {
1340
+ kind: "component",
1341
+ type: Button,
1342
+ selector: "h-button",
1343
+ inputs: [
1344
+ "hostName",
1345
+ "type",
1346
+ "badge",
1347
+ "disabled",
1348
+ "raised",
1349
+ "rounded",
1350
+ "text",
1351
+ "plain",
1352
+ "outlined",
1353
+ "link",
1354
+ "tabindex",
1355
+ "size",
1356
+ "variant",
1357
+ "style",
1358
+ "styleClass",
1359
+ "badgeClass",
1360
+ "badgeSeverity",
1361
+ "ariaLabel",
1362
+ "autofocus",
1363
+ "iconPos",
1364
+ "icon",
1365
+ "label",
1366
+ "loading",
1367
+ "loadingIcon",
1368
+ "severity",
1369
+ "buttonProps",
1370
+ "fluid"
1371
+ ],
1372
+ outputs: [
1373
+ "onClick",
1374
+ "onFocus",
1375
+ "onBlur"
1376
+ ]
1377
+ },
1378
+ {
1379
+ kind: "component",
1380
+ type: ProgressBar,
1381
+ selector: "h-progressBar, h-progressbar, h-progress-bar",
1382
+ inputs: [
1383
+ "value",
1384
+ "showValue",
1385
+ "styleClass",
1386
+ "valueStyleClass",
1387
+ "unit",
1388
+ "mode",
1389
+ "color"
1390
+ ]
1391
+ },
1392
+ {
1393
+ kind: "component",
1394
+ type: Message,
1395
+ selector: "h-message",
1396
+ inputs: [
1397
+ "severity",
1398
+ "text",
1399
+ "escape",
1400
+ "style",
1401
+ "styleClass",
1402
+ "closable",
1403
+ "icon",
1404
+ "closeIcon",
1405
+ "life",
1406
+ "showTransitionOptions",
1407
+ "hideTransitionOptions",
1408
+ "size",
1409
+ "variant",
1410
+ "motionOptions"
1411
+ ],
1412
+ outputs: ["onClose"]
1413
+ },
1414
+ {
1415
+ kind: "component",
1416
+ type: PlusIcon,
1417
+ selector: "[data-h-icon=\"plus\"]"
1418
+ },
1419
+ {
1420
+ kind: "component",
1421
+ type: UploadIcon,
1422
+ selector: "[data-h-icon=\"upload\"]"
1423
+ },
1424
+ {
1425
+ kind: "component",
1426
+ type: TimesIcon,
1427
+ selector: "[data-h-icon=\"times\"]"
1428
+ },
1429
+ {
1430
+ kind: "ngmodule",
1431
+ type: SharedModule
1432
+ },
1433
+ {
1434
+ kind: "component",
1435
+ type: FileContent,
1436
+ selector: "[hFileContent]",
1437
+ inputs: [
1438
+ "files",
1439
+ "badgeSeverity",
1440
+ "badgeValue",
1441
+ "previewWidth",
1442
+ "fileRemoveIconTemplate"
1443
+ ],
1444
+ outputs: ["onRemove"]
1445
+ },
1446
+ {
1447
+ kind: "directive",
1448
+ type: Bind,
1449
+ selector: "[hBind]",
1450
+ inputs: ["hBind"]
1451
+ }
1452
+ ],
1453
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1454
+ encapsulation: i0.ViewEncapsulation.None
1455
+ });
1456
+ };
1457
+ i0.ɵɵngDeclareClassMetadata({
1458
+ minVersion: "12.0.0",
1459
+ version: "22.2.1",
1460
+ ngImport: i0,
1461
+ type: FileUpload,
1462
+ decorators: [{
1463
+ type: Component,
1464
+ args: [{
1465
+ selector: "h-fileupload, h-fileUpload",
1466
+ standalone: true,
1467
+ imports: [
1468
+ CommonModule,
1469
+ Button,
1470
+ ProgressBar,
1471
+ Message,
1472
+ PlusIcon,
1473
+ UploadIcon,
1474
+ TimesIcon,
1475
+ SharedModule,
1476
+ FileContent,
1477
+ Bind
1478
+ ],
1479
+ changeDetection: ChangeDetectionStrategy.OnPush,
1480
+ encapsulation: ViewEncapsulation.None,
1481
+ providers: [
1482
+ FileUploadStyle,
1483
+ {
1484
+ provide: FILEUPLOAD_INSTANCE,
1485
+ useExisting: FileUpload
1486
+ },
1487
+ {
1488
+ provide: PARENT_INSTANCE,
1489
+ useExisting: FileUpload
1490
+ }
1491
+ ],
1492
+ hostDirectives: [Bind],
1493
+ template: "@if (mode() === 'advanced') {\n <div [class]=\"cn(cx('root'), styleClass())\" [ngStyle]=\"style()\" [hBind]=\"ptm('root')\">\n <input [attr.aria-label]=\"browseFilesLabel\" #advancedfileinput type=\"file\" (change)=\"onFileSelect($event)\" [multiple]=\"multiple()\" [accept]=\"accept()\" [disabled]=\"disabled() || isChooseDisabled()\" [attr.title]=\"''\" [hBind]=\"ptm('input')\" />\n <div [class]=\"cx('header')\" [hBind]=\"ptm('header')\">\n @if (!headerTemplate() && !_headerTemplate) {\n <h-button\n [styleClass]=\"cn(cx('pcChooseButton'), chooseStyleClass())\"\n [disabled]=\"disabled() || isChooseDisabled()\"\n (focus)=\"onFocus()\"\n [label]=\"chooseButtonLabel\"\n (blur)=\"onBlur()\"\n (onClick)=\"choose()\"\n (keydown.enter)=\"choose()\"\n [buttonProps]=\"chooseButtonProps()\"\n [pt]=\"ptm('pcChooseButton')\"\n [unstyled]=\"unstyled()\"\n >\n <input\n [attr.aria-label]=\"browseFilesLabel\"\n #advancedfileinput\n type=\"file\"\n (change)=\"onFileSelect($event)\"\n [multiple]=\"multiple()\"\n [accept]=\"accept()\"\n [disabled]=\"disabled() || isChooseDisabled()\"\n [attr.title]=\"''\"\n [hBind]=\"ptm('input')\"\n />\n <ng-template #icon>\n @if (chooseIcon()) {\n <span [class]=\"chooseIcon()\" [attr.aria-label]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\"></span>\n }\n @if (!chooseIcon()) {\n @if (!chooseIconTemplate() && !_chooseIconTemplate) {\n <svg data-h-icon=\"plus\" [attr.aria-label]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\" />\n }\n @if (chooseIconTemplate() || _chooseIconTemplate) {\n <span [attr.aria-label]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\">\n <ng-template *ngTemplateOutlet=\"chooseIconTemplate() || _chooseIconTemplate\"></ng-template>\n </span>\n }\n }\n </ng-template>\n </h-button>\n @if (!auto() && showUploadButton()) {\n <h-button\n [label]=\"uploadButtonLabel\"\n (onClick)=\"upload()\"\n [disabled]=\"!hasFiles() || isFileLimitExceeded()\"\n [styleClass]=\"cn(cx('pcUploadButton'), uploadStyleClass())\"\n [buttonProps]=\"uploadButtonProps()\"\n [pt]=\"ptm('pcUploadButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (uploadIcon()) {\n <span [ngClass]=\"uploadIcon()\" [attr.aria-hidden]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcUploadButton')?.icon)\"></span>\n }\n @if (!uploadIcon()) {\n @if (!uploadIconTemplate() && !_uploadIconTemplate) {\n <svg data-h-icon=\"upload\" [hBind]=\"$safeNavigationMigration(ptm('pcUploadButton')?.icon)\" />\n }\n @if (uploadIconTemplate() || _uploadIconTemplate) {\n <span [attr.aria-hidden]=\"true\" [hBind]=\"$safeNavigationMigration(ptm('pcUploadButton')?.icon)\">\n <ng-template *ngTemplateOutlet=\"uploadIconTemplate() || _uploadIconTemplate\"></ng-template>\n </span>\n }\n }\n </ng-template>\n </h-button>\n }\n @if (!auto() && showCancelButton()) {\n <h-button\n [label]=\"cancelButtonLabel\"\n (onClick)=\"clear()\"\n [disabled]=\"!hasFiles() || uploading\"\n [styleClass]=\"cn(cx('pcCancelButton'), cancelStyleClass())\"\n [buttonProps]=\"cancelButtonProps()\"\n [pt]=\"ptm('pcCancelButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (cancelIcon()) {\n <span [ngClass]=\"cancelIcon()\"></span>\n }\n @if (!cancelIcon()) {\n @if (!cancelIconTemplate() && !_cancelIconTemplate) {\n <svg data-h-icon=\"times\" [attr.aria-hidden]=\"true\" />\n }\n @if (cancelIconTemplate() || _cancelIconTemplate) {\n <span [attr.aria-hidden]=\"true\">\n <ng-template *ngTemplateOutlet=\"cancelIconTemplate() || _cancelIconTemplate\"></ng-template>\n </span>\n }\n }\n </ng-template>\n </h-button>\n }\n }\n <ng-container\n *ngTemplateOutlet=\"\n headerTemplate() || _headerTemplate;\n context: {\n $implicit: files(),\n uploadedFiles: uploadedFiles,\n chooseCallback: choose.bind(this),\n clearCallback: clear.bind(this),\n uploadCallback: upload.bind(this)\n }\n \"\n ></ng-container>\n <ng-container *ngTemplateOutlet=\"toolbarTemplate() || _toolbarTemplate\"></ng-container>\n </div>\n <div #content [class]=\"cx('content')\" (dragenter)=\"onDragEnter($event)\" (dragleave)=\"onDragLeave($event)\" (drop)=\"onDrop($event)\" [hBind]=\"ptm('content')\">\n @if (contentTemplate() || _contentTemplate) {\n <ng-container\n *ngTemplateOutlet=\"\n contentTemplate() || _contentTemplate;\n context: {\n $implicit: files(),\n uploadedFiles: uploadedFiles,\n chooseCallback: choose.bind(this),\n clearCallback: clear.bind(this),\n removeUploadedFileCallback: removeUploadedFile.bind(this),\n removeFileCallback: remove.bind(this),\n progress: progress,\n messages: msgs\n }\n \"\n ></ng-container>\n } @else {\n @if (hasFiles()) {\n <h-progressbar [value]=\"progress\" [showValue]=\"false\" [pt]=\"ptm('pcProgressBar')\"></h-progressbar>\n }\n @for (message of msgs; track message) {\n <h-message [severity]=\"message.severity\" [text]=\"message.text\" [pt]=\"ptm('pcMessage')\" [unstyled]=\"unstyled()\"></h-message>\n }\n @if (hasFiles()) {\n <div [class]=\"cx('fileList')\" [hBind]=\"ptm('fileList')\">\n @for (file of files(); track file; let i = $index) {\n <ng-container *ngTemplateOutlet=\"fileTemplate() || _fileTemplate; context: { $implicit: file, index: i }\"></ng-container>\n }\n @if (!fileTemplate() && !_fileTemplate) {\n <div\n hFileContent\n [unstyled]=\"unstyled()\"\n [files]=\"files()\"\n (onRemove)=\"onRemoveClick($event)\"\n [badgeValue]=\"pendingLabel\"\n [previewWidth]=\"previewWidth()\"\n [fileRemoveIconTemplate]=\"cancelIconTemplate() || _cancelIconTemplate\"\n ></div>\n }\n </div>\n }\n @if (hasUploadedFiles()) {\n <div [class]=\"cx('fileList')\" [hBind]=\"ptm('fileList')\">\n @for (file of uploadedFiles; track file; let i = $index) {\n <ng-container *ngTemplateOutlet=\"fileTemplate() || _fileTemplate; context: { $implicit: file, index: i }\"></ng-container>\n }\n @if (!fileTemplate() && !_fileTemplate) {\n <div\n hFileContent\n [unstyled]=\"unstyled()\"\n [files]=\"uploadedFiles\"\n (onRemove)=\"onRemoveUploadedFileClick($event)\"\n [badgeValue]=\"completedLabel()\"\n badgeSeverity=\"success\"\n [previewWidth]=\"previewWidth()\"\n [fileRemoveIconTemplate]=\"cancelIconTemplate() || _cancelIconTemplate\"\n ></div>\n }\n </div>\n }\n }\n @if ((emptyTemplate() || _emptyTemplate) && !hasFiles() && !hasUploadedFiles()) {\n <ng-container *ngTemplateOutlet=\"emptyTemplate() || _emptyTemplate\" [hBind]=\"ptm('empty')\"></ng-container>\n }\n</div>\n</div>\n}\n@if (mode() === 'basic') {\n <div [class]=\"cn(cx('root'), styleClass())\" [hBind]=\"ptm('root')\">\n @for (message of msgs; track message) {\n <h-message [severity]=\"message.severity\" [text]=\"message.text\" [pt]=\"ptm('pcMessage')\" [unstyled]=\"unstyled()\"></h-message>\n }\n <div [class]=\"cx('basicContent')\" [hBind]=\"ptm('basicContent')\">\n <h-button\n [styleClass]=\"cn(cx('pcChooseButton'), chooseStyleClass())\"\n [disabled]=\"disabled()\"\n [label]=\"chooseButtonLabel\"\n [style]=\"style()\"\n (onClick)=\"onBasicUploaderClick()\"\n (keydown)=\"onBasicKeydown($event)\"\n [buttonProps]=\"chooseButtonProps()\"\n [pt]=\"ptm('pcChooseButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (hasFiles() && !auto()) {\n @if (uploadIcon()) {\n <span class=\"h-button-icon h-button-icon-left\" [ngClass]=\"uploadIcon()\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\"></span>\n }\n @if (!uploadIcon()) {\n @if (!uploadIconTemplate() && !_uploadIconTemplate) {\n <svg data-h-icon=\"upload\" [class]=\"'h-button-icon h-button-icon-left'\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\" />\n }\n @if (_uploadIconTemplate || uploadIconTemplate()) {\n <span class=\"h-button-icon h-button-icon-left\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\">\n <ng-template *ngTemplateOutlet=\"_uploadIconTemplate || uploadIconTemplate()\"></ng-template>\n </span>\n }\n }\n } @else {\n @if (chooseIcon()) {\n <span class=\"h-button-icon h-button-icon-left pi\" [ngClass]=\"chooseIcon()\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\"></span>\n }\n @if (!chooseIcon()) {\n @if (!chooseIconTemplate() && !_chooseIconTemplate) {\n <svg data-h-icon=\"plus\" [hBind]=\"$safeNavigationMigration(ptm('pcChooseButton')?.icon)\" />\n }\n <ng-template *ngTemplateOutlet=\"chooseIconTemplate() || _chooseIconTemplate\"></ng-template>\n }\n }\n </ng-template>\n <input [attr.aria-label]=\"browseFilesLabel\" #basicfileinput type=\"file\" [accept]=\"accept()\" [multiple]=\"multiple()\" [disabled]=\"disabled()\" (change)=\"onFileSelect($event)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\" [hBind]=\"ptm('input')\" />\n </h-button>\n @if (!auto()) {\n @if (!fileLabelTemplate() && !_fileLabelTemplate) {\n <span>\n {{ basicFileChosenLabel() }}\n </span>\n } @else {\n <ng-container *ngTemplateOutlet=\"fileLabelTemplate() || _fileLabelTemplate; context: { $implicit: files() }\"></ng-container>\n }\n }\n </div>\n </div>\n}\n"
1494
+ }]
1495
+ }],
1496
+ propDecorators: {
1497
+ name: [{
1498
+ type: i0.Input,
1499
+ args: [{
1500
+ isSignal: true,
1501
+ alias: "name",
1502
+ required: false
1503
+ }]
1504
+ }],
1505
+ url: [{
1506
+ type: i0.Input,
1507
+ args: [{
1508
+ isSignal: true,
1509
+ alias: "url",
1510
+ required: false
1511
+ }]
1512
+ }],
1513
+ method: [{
1514
+ type: i0.Input,
1515
+ args: [{
1516
+ isSignal: true,
1517
+ alias: "method",
1518
+ required: false
1519
+ }]
1520
+ }],
1521
+ multiple: [{
1522
+ type: i0.Input,
1523
+ args: [{
1524
+ isSignal: true,
1525
+ alias: "multiple",
1526
+ required: false
1527
+ }]
1528
+ }],
1529
+ accept: [{
1530
+ type: i0.Input,
1531
+ args: [{
1532
+ isSignal: true,
1533
+ alias: "accept",
1534
+ required: false
1535
+ }]
1536
+ }],
1537
+ disabled: [{
1538
+ type: i0.Input,
1539
+ args: [{
1540
+ isSignal: true,
1541
+ alias: "disabled",
1542
+ required: false
1543
+ }]
1544
+ }],
1545
+ auto: [{
1546
+ type: i0.Input,
1547
+ args: [{
1548
+ isSignal: true,
1549
+ alias: "auto",
1550
+ required: false
1551
+ }]
1552
+ }],
1553
+ withCredentials: [{
1554
+ type: i0.Input,
1555
+ args: [{
1556
+ isSignal: true,
1557
+ alias: "withCredentials",
1558
+ required: false
1559
+ }]
1560
+ }],
1561
+ maxFileSize: [{
1562
+ type: i0.Input,
1563
+ args: [{
1564
+ isSignal: true,
1565
+ alias: "maxFileSize",
1566
+ required: false
1567
+ }]
1568
+ }],
1569
+ invalidFileSizeMessageSummary: [{
1570
+ type: i0.Input,
1571
+ args: [{
1572
+ isSignal: true,
1573
+ alias: "invalidFileSizeMessageSummary",
1574
+ required: false
1575
+ }]
1576
+ }],
1577
+ invalidFileSizeMessageDetail: [{
1578
+ type: i0.Input,
1579
+ args: [{
1580
+ isSignal: true,
1581
+ alias: "invalidFileSizeMessageDetail",
1582
+ required: false
1583
+ }]
1584
+ }],
1585
+ invalidFileTypeMessageSummary: [{
1586
+ type: i0.Input,
1587
+ args: [{
1588
+ isSignal: true,
1589
+ alias: "invalidFileTypeMessageSummary",
1590
+ required: false
1591
+ }]
1592
+ }],
1593
+ invalidFileTypeMessageDetail: [{
1594
+ type: i0.Input,
1595
+ args: [{
1596
+ isSignal: true,
1597
+ alias: "invalidFileTypeMessageDetail",
1598
+ required: false
1599
+ }]
1600
+ }],
1601
+ invalidFileLimitMessageDetail: [{
1602
+ type: i0.Input,
1603
+ args: [{
1604
+ isSignal: true,
1605
+ alias: "invalidFileLimitMessageDetail",
1606
+ required: false
1607
+ }]
1608
+ }],
1609
+ invalidFileLimitMessageSummary: [{
1610
+ type: i0.Input,
1611
+ args: [{
1612
+ isSignal: true,
1613
+ alias: "invalidFileLimitMessageSummary",
1614
+ required: false
1615
+ }]
1616
+ }],
1617
+ style: [{
1618
+ type: i0.Input,
1619
+ args: [{
1620
+ isSignal: true,
1621
+ alias: "style",
1622
+ required: false
1623
+ }]
1624
+ }],
1625
+ styleClass: [{
1626
+ type: i0.Input,
1627
+ args: [{
1628
+ isSignal: true,
1629
+ alias: "styleClass",
1630
+ required: false
1631
+ }]
1632
+ }],
1633
+ previewWidth: [{
1634
+ type: i0.Input,
1635
+ args: [{
1636
+ isSignal: true,
1637
+ alias: "previewWidth",
1638
+ required: false
1639
+ }]
1640
+ }],
1641
+ chooseLabel: [{
1642
+ type: i0.Input,
1643
+ args: [{
1644
+ isSignal: true,
1645
+ alias: "chooseLabel",
1646
+ required: false
1647
+ }]
1648
+ }],
1649
+ uploadLabel: [{
1650
+ type: i0.Input,
1651
+ args: [{
1652
+ isSignal: true,
1653
+ alias: "uploadLabel",
1654
+ required: false
1655
+ }]
1656
+ }],
1657
+ cancelLabel: [{
1658
+ type: i0.Input,
1659
+ args: [{
1660
+ isSignal: true,
1661
+ alias: "cancelLabel",
1662
+ required: false
1663
+ }]
1664
+ }],
1665
+ chooseIcon: [{
1666
+ type: i0.Input,
1667
+ args: [{
1668
+ isSignal: true,
1669
+ alias: "chooseIcon",
1670
+ required: false
1671
+ }]
1672
+ }],
1673
+ uploadIcon: [{
1674
+ type: i0.Input,
1675
+ args: [{
1676
+ isSignal: true,
1677
+ alias: "uploadIcon",
1678
+ required: false
1679
+ }]
1680
+ }],
1681
+ cancelIcon: [{
1682
+ type: i0.Input,
1683
+ args: [{
1684
+ isSignal: true,
1685
+ alias: "cancelIcon",
1686
+ required: false
1687
+ }]
1688
+ }],
1689
+ showUploadButton: [{
1690
+ type: i0.Input,
1691
+ args: [{
1692
+ isSignal: true,
1693
+ alias: "showUploadButton",
1694
+ required: false
1695
+ }]
1696
+ }],
1697
+ showCancelButton: [{
1698
+ type: i0.Input,
1699
+ args: [{
1700
+ isSignal: true,
1701
+ alias: "showCancelButton",
1702
+ required: false
1703
+ }]
1704
+ }],
1705
+ mode: [{
1706
+ type: i0.Input,
1707
+ args: [{
1708
+ isSignal: true,
1709
+ alias: "mode",
1710
+ required: false
1711
+ }]
1712
+ }],
1713
+ headers: [{
1714
+ type: i0.Input,
1715
+ args: [{
1716
+ isSignal: true,
1717
+ alias: "headers",
1718
+ required: false
1719
+ }]
1720
+ }],
1721
+ customUpload: [{
1722
+ type: i0.Input,
1723
+ args: [{
1724
+ isSignal: true,
1725
+ alias: "customUpload",
1726
+ required: false
1727
+ }]
1728
+ }],
1729
+ fileLimit: [{
1730
+ type: i0.Input,
1731
+ args: [{
1732
+ isSignal: true,
1733
+ alias: "fileLimit",
1734
+ required: false
1735
+ }]
1736
+ }],
1737
+ uploadStyleClass: [{
1738
+ type: i0.Input,
1739
+ args: [{
1740
+ isSignal: true,
1741
+ alias: "uploadStyleClass",
1742
+ required: false
1743
+ }]
1744
+ }],
1745
+ cancelStyleClass: [{
1746
+ type: i0.Input,
1747
+ args: [{
1748
+ isSignal: true,
1749
+ alias: "cancelStyleClass",
1750
+ required: false
1751
+ }]
1752
+ }],
1753
+ removeStyleClass: [{
1754
+ type: i0.Input,
1755
+ args: [{
1756
+ isSignal: true,
1757
+ alias: "removeStyleClass",
1758
+ required: false
1759
+ }]
1760
+ }],
1761
+ chooseStyleClass: [{
1762
+ type: i0.Input,
1763
+ args: [{
1764
+ isSignal: true,
1765
+ alias: "chooseStyleClass",
1766
+ required: false
1767
+ }]
1768
+ }],
1769
+ chooseButtonProps: [{
1770
+ type: i0.Input,
1771
+ args: [{
1772
+ isSignal: true,
1773
+ alias: "chooseButtonProps",
1774
+ required: false
1775
+ }]
1776
+ }],
1777
+ uploadButtonProps: [{
1778
+ type: i0.Input,
1779
+ args: [{
1780
+ isSignal: true,
1781
+ alias: "uploadButtonProps",
1782
+ required: false
1783
+ }]
1784
+ }],
1785
+ cancelButtonProps: [{
1786
+ type: i0.Input,
1787
+ args: [{
1788
+ isSignal: true,
1789
+ alias: "cancelButtonProps",
1790
+ required: false
1791
+ }]
1792
+ }],
1793
+ onBeforeUpload: [{
1794
+ type: i0.Output,
1795
+ args: ["onBeforeUpload"]
1796
+ }],
1797
+ onSend: [{
1798
+ type: i0.Output,
1799
+ args: ["onSend"]
1800
+ }],
1801
+ onUpload: [{
1802
+ type: i0.Output,
1803
+ args: ["onUpload"]
1804
+ }],
1805
+ onError: [{
1806
+ type: i0.Output,
1807
+ args: ["onError"]
1808
+ }],
1809
+ onClear: [{
1810
+ type: i0.Output,
1811
+ args: ["onClear"]
1812
+ }],
1813
+ onRemove: [{
1814
+ type: i0.Output,
1815
+ args: ["onRemove"]
1816
+ }],
1817
+ onSelect: [{
1818
+ type: i0.Output,
1819
+ args: ["onSelect"]
1820
+ }],
1821
+ onProgress: [{
1822
+ type: i0.Output,
1823
+ args: ["onProgress"]
1824
+ }],
1825
+ uploadHandler: [{
1826
+ type: i0.Output,
1827
+ args: ["uploadHandler"]
1828
+ }],
1829
+ onImageError: [{
1830
+ type: i0.Output,
1831
+ args: ["onImageError"]
1832
+ }],
1833
+ onRemoveUploadedFile: [{
1834
+ type: i0.Output,
1835
+ args: ["onRemoveUploadedFile"]
1836
+ }],
1837
+ fileTemplate: [{
1838
+ type: i0.ContentChild,
1839
+ args: ["file", {
1840
+ descendants: false,
1841
+ isSignal: true
1842
+ }]
1843
+ }],
1844
+ headerTemplate: [{
1845
+ type: i0.ContentChild,
1846
+ args: ["header", {
1847
+ descendants: false,
1848
+ isSignal: true
1849
+ }]
1850
+ }],
1851
+ contentTemplate: [{
1852
+ type: i0.ContentChild,
1853
+ args: ["content", {
1854
+ descendants: false,
1855
+ isSignal: true
1856
+ }]
1857
+ }],
1858
+ toolbarTemplate: [{
1859
+ type: i0.ContentChild,
1860
+ args: ["toolbar", {
1861
+ descendants: false,
1862
+ isSignal: true
1863
+ }]
1864
+ }],
1865
+ chooseIconTemplate: [{
1866
+ type: i0.ContentChild,
1867
+ args: ["chooseicon", {
1868
+ descendants: false,
1869
+ isSignal: true
1870
+ }]
1871
+ }],
1872
+ fileLabelTemplate: [{
1873
+ type: i0.ContentChild,
1874
+ args: ["filelabel", {
1875
+ descendants: false,
1876
+ isSignal: true
1877
+ }]
1878
+ }],
1879
+ uploadIconTemplate: [{
1880
+ type: i0.ContentChild,
1881
+ args: ["uploadicon", {
1882
+ descendants: false,
1883
+ isSignal: true
1884
+ }]
1885
+ }],
1886
+ cancelIconTemplate: [{
1887
+ type: i0.ContentChild,
1888
+ args: ["cancelicon", {
1889
+ descendants: false,
1890
+ isSignal: true
1891
+ }]
1892
+ }],
1893
+ emptyTemplate: [{
1894
+ type: i0.ContentChild,
1895
+ args: ["empty", {
1896
+ descendants: false,
1897
+ isSignal: true
1898
+ }]
1899
+ }],
1900
+ advancedFileInput: [{
1901
+ type: i0.ViewChild,
1902
+ args: ["advancedfileinput", { isSignal: true }]
1903
+ }],
1904
+ basicFileInput: [{
1905
+ type: i0.ViewChild,
1906
+ args: ["basicfileinput", { isSignal: true }]
1907
+ }],
1908
+ content: [{
1909
+ type: i0.ViewChild,
1910
+ args: ["content", { isSignal: true }]
1911
+ }],
1912
+ files: [{
1913
+ type: i0.Input,
1914
+ args: [{
1915
+ isSignal: true,
1916
+ alias: "files",
1917
+ required: false
1918
+ }]
1919
+ }, {
1920
+ type: i0.Output,
1921
+ args: ["filesChange"]
1922
+ }],
1923
+ templates: [{
1924
+ type: i0.ContentChildren,
1925
+ args: [i0.forwardRef(() => HelixTemplate), { isSignal: true }]
1926
+ }]
1927
+ }
1928
+ });
1929
+ var FileUploadModule = class FileUploadModule {
1930
+ static ɵfac = i0.ɵɵngDeclareFactory({
1931
+ minVersion: "12.0.0",
1932
+ version: "22.2.1",
1933
+ ngImport: i0,
1934
+ type: FileUploadModule,
1935
+ deps: [],
1936
+ target: i0.ɵɵFactoryTarget.NgModule
1937
+ });
1938
+ static ɵmod = i0.ɵɵngDeclareNgModule({
1939
+ minVersion: "14.0.0",
1940
+ version: "22.2.1",
1941
+ ngImport: i0,
1942
+ type: FileUploadModule,
1943
+ imports: [FileUpload, SharedModule],
1944
+ exports: [FileUpload, SharedModule]
1945
+ });
1946
+ static ɵinj = i0.ɵɵngDeclareInjector({
1947
+ minVersion: "12.0.0",
1948
+ version: "22.2.1",
1949
+ ngImport: i0,
1950
+ type: FileUploadModule,
1951
+ imports: [
1952
+ FileUpload,
1953
+ SharedModule,
1954
+ SharedModule
1955
+ ]
1956
+ });
1957
+ };
1958
+ i0.ɵɵngDeclareClassMetadata({
1959
+ minVersion: "12.0.0",
1960
+ version: "22.2.1",
1961
+ ngImport: i0,
1962
+ type: FileUploadModule,
1963
+ decorators: [{
1964
+ type: NgModule,
1965
+ args: [{
1966
+ imports: [FileUpload, SharedModule],
1967
+ exports: [FileUpload, SharedModule]
1968
+ }]
1969
+ }]
1970
+ });
1084
1971
  export { FileContent, FileUpload, FileUploadClasses, FileUploadModule, FileUploadStyle };
1085
- //# sourceMappingURL=gravionlabs-helix-core-fileupload.mjs.map
1972
+
1973
+ //# sourceMappingURL=gravionlabs-helix-core-fileupload.mjs.map