@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/galleria';
2
- import * as i2 from '@angular/common';
3
- import { isPlatformBrowser, CommonModule } from '@angular/common';
4
- import * as i0 from '@angular/core';
5
- import { Injectable, InjectionToken, inject, model, input, booleanAttribute, numberAttribute, computed, effect, signal, viewChild, contentChild, contentChildren, ViewEncapsulation, ChangeDetectionStrategy, Component, output, NgModule } from '@angular/core';
6
- import { findSingle, focus, removeClass, uuid, setAttribute, find, getAttribute, addClass } from '@gravionlabs/helix-core/uix/utils';
7
- import { HelixTemplate, SharedModule } from '@gravionlabs/helix-core/api';
8
- import { BaseComponent, PARENT_INSTANCE } from '@gravionlabs/helix-core/basecomponent';
9
- import * as i1 from '@gravionlabs/helix-core/bind';
10
- import { Bind, BindModule } from '@gravionlabs/helix-core/bind';
11
- import { blockBodyScroll, unblockBodyScroll } from '@gravionlabs/helix-core/dom';
12
- import { FocusTrap } from '@gravionlabs/helix-core/focustrap';
13
- import { TimesIcon, ChevronRightIcon, ChevronLeftIcon, ChevronUpIcon, ChevronDownIcon } from '@gravionlabs/helix-core/icons';
14
- import * as i3 from '@gravionlabs/helix-core/motion';
15
- import { MotionModule } from '@gravionlabs/helix-core/motion';
16
- import { Ripple } from '@gravionlabs/helix-core/ripple';
17
- import { ZIndexUtils } from '@gravionlabs/helix-core/utils';
18
- import { BaseStyle } from '@gravionlabs/helix-core/base';
19
-
20
- const style = /*css*/ `
1
+ import * as i2 from "@angular/common";
2
+ import { CommonModule, isPlatformBrowser } from "@angular/common";
3
+ import * as i0 from "@angular/core";
4
+ import { ChangeDetectionStrategy, Component, Injectable, InjectionToken, NgModule, ViewEncapsulation, booleanAttribute, computed, contentChild, contentChildren, effect, inject, input, model, numberAttribute, output, signal, viewChild } from "@angular/core";
5
+ import { addClass, find, findSingle, focus, getAttribute, removeClass, setAttribute, uuid } from "@gravionlabs/helix-core/uix/utils";
6
+ import { HelixTemplate, SharedModule } from "@gravionlabs/helix-core/api";
7
+ import { BaseComponent, PARENT_INSTANCE } from "@gravionlabs/helix-core/basecomponent";
8
+ import * as i1 from "@gravionlabs/helix-core/bind";
9
+ import { Bind, BindModule } from "@gravionlabs/helix-core/bind";
10
+ import { blockBodyScroll, unblockBodyScroll } from "@gravionlabs/helix-core/dom";
11
+ import { FocusTrap } from "@gravionlabs/helix-core/focustrap";
12
+ import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, TimesIcon } from "@gravionlabs/helix-core/icons";
13
+ import * as i3 from "@gravionlabs/helix-core/motion";
14
+ import { MotionModule } from "@gravionlabs/helix-core/motion";
15
+ import { Ripple } from "@gravionlabs/helix-core/ripple";
16
+ import { ZIndexUtils } from "@gravionlabs/helix-core/utils";
17
+ import { BaseStyle } from "@gravionlabs/helix-core/base";
18
+ export * from "@gravionlabs/helix-core/types/galleria";
19
+ const style = `
21
20
  .h-galleria {
22
21
  overflow: hidden;
23
22
  border-style: solid;
@@ -477,1454 +476,2806 @@ const style = /*css*/ `
477
476
  }
478
477
  }
479
478
  `;
480
-
481
479
  const classes = {
482
- mask: 'h-galleria-mask h-overlay-mask',
483
- root: ({ instance }) => {
484
- const thumbnailsPosClass = instance.galleria.showThumbnails && instance.getPositionClass('h-galleria-thumbnails', instance.galleria.thumbnailsPosition);
485
- const indicatorPosClass = instance.galleria.showIndicators && instance.getPositionClass('h-galleria-indicators', instance.galleria.indicatorsPosition);
486
- return [
487
- 'h-galleria h-component',
488
- {
489
- 'h-galleria-fullscreen': instance.galleria.fullScreen(),
490
- 'h-galleria-inset-indicators': instance.galleria.showIndicatorsOnItem,
491
- 'h-galleria-hover-navigators': instance.galleria.showItemNavigatorsOnHover && !instance.galleria.fullScreen()
492
- },
493
- thumbnailsPosClass,
494
- indicatorPosClass
495
- ];
496
- },
497
- closeButton: 'h-galleria-close-button',
498
- closeIcon: 'h-galleria-close-icon',
499
- header: 'h-galleria-header',
500
- content: 'h-galleria-content',
501
- footer: 'h-galleria-footer',
502
- itemsContainer: 'h-galleria-items-container',
503
- items: 'h-galleria-items',
504
- prevButton: ({ instance }) => [
505
- 'h-galleria-prev-button h-galleria-nav-button',
506
- {
507
- 'h-disabled': instance.isNavBackwardDisabled()
508
- }
509
- ],
510
- prevIcon: 'h-galleria-prev-icon',
511
- item: 'h-galleria-item',
512
- nextButton: ({ instance }) => [
513
- 'h-galleria-next-button h-galleria-nav-button',
514
- {
515
- 'h-disabled': instance.isNavForwardDisabled()
516
- }
517
- ],
518
- nextIcon: 'h-galleria-next-icon',
519
- caption: 'h-galleria-caption',
520
- indicatorList: 'h-galleria-indicator-list',
521
- indicator: ({ instance, index }) => [
522
- 'h-galleria-indicator',
523
- {
524
- 'h-galleria-indicator-active': instance.isIndicatorItemActive(index)
525
- }
526
- ],
527
- indicatorButton: 'h-galleria-indicator-button',
528
- thumbnails: 'h-galleria-thumbnails',
529
- thumbnailContent: 'h-galleria-thumbnails-content',
530
- thumbnailPrevButton: ({ instance }) => [
531
- 'h-galleria-thumbnail-prev-button h-galleria-thumbnail-nav-button',
532
- {
533
- 'h-disabled': instance.isNavBackwardDisabled()
534
- }
535
- ],
536
- thumbnailPrevIcon: 'h-galleria-thumbnail-prev-icon',
537
- thumbnailsViewport: 'h-galleria-thumbnails-viewport',
538
- thumbnailItems: 'h-galleria-thumbnail-items',
539
- thumbnailItem: ({ instance, index, activeIndex }) => [
540
- 'h-galleria-thumbnail-item',
541
- {
542
- 'h-galleria-thumbnail-item-current': activeIndex === index,
543
- 'h-galleria-thumbnail-item-active': instance.isItemActive(index),
544
- 'h-galleria-thumbnail-item-start': instance.firstItemAciveIndex() === index,
545
- 'h-galleria-thumbnail-item-end': instance.lastItemActiveIndex() === index
546
- }
547
- ],
548
- thumbnail: 'h-galleria-thumbnail',
549
- thumbnailNextButton: ({ instance }) => [
550
- 'h-galleria-thumbnail-next-button h-galleria-thumbnail-nav-button',
551
- {
552
- 'h-disabled': instance.isNavForwardDisabled()
553
- }
554
- ],
555
- thumbnailNextIcon: 'h-galleria-thumbnail-next-icon'
480
+ mask: "h-galleria-mask h-overlay-mask",
481
+ root: ({ instance }) => {
482
+ const thumbnailsPosClass = instance.galleria.showThumbnails && instance.getPositionClass("h-galleria-thumbnails", instance.galleria.thumbnailsPosition);
483
+ const indicatorPosClass = instance.galleria.showIndicators && instance.getPositionClass("h-galleria-indicators", instance.galleria.indicatorsPosition);
484
+ return [
485
+ "h-galleria h-component",
486
+ {
487
+ "h-galleria-fullscreen": instance.galleria.fullScreen(),
488
+ "h-galleria-inset-indicators": instance.galleria.showIndicatorsOnItem,
489
+ "h-galleria-hover-navigators": instance.galleria.showItemNavigatorsOnHover && !instance.galleria.fullScreen()
490
+ },
491
+ thumbnailsPosClass,
492
+ indicatorPosClass
493
+ ];
494
+ },
495
+ closeButton: "h-galleria-close-button",
496
+ closeIcon: "h-galleria-close-icon",
497
+ header: "h-galleria-header",
498
+ content: "h-galleria-content",
499
+ footer: "h-galleria-footer",
500
+ itemsContainer: "h-galleria-items-container",
501
+ items: "h-galleria-items",
502
+ prevButton: ({ instance }) => ["h-galleria-prev-button h-galleria-nav-button", { "h-disabled": instance.isNavBackwardDisabled() }],
503
+ prevIcon: "h-galleria-prev-icon",
504
+ item: "h-galleria-item",
505
+ nextButton: ({ instance }) => ["h-galleria-next-button h-galleria-nav-button", { "h-disabled": instance.isNavForwardDisabled() }],
506
+ nextIcon: "h-galleria-next-icon",
507
+ caption: "h-galleria-caption",
508
+ indicatorList: "h-galleria-indicator-list",
509
+ indicator: ({ instance, index }) => ["h-galleria-indicator", { "h-galleria-indicator-active": instance.isIndicatorItemActive(index) }],
510
+ indicatorButton: "h-galleria-indicator-button",
511
+ thumbnails: "h-galleria-thumbnails",
512
+ thumbnailContent: "h-galleria-thumbnails-content",
513
+ thumbnailPrevButton: ({ instance }) => ["h-galleria-thumbnail-prev-button h-galleria-thumbnail-nav-button", { "h-disabled": instance.isNavBackwardDisabled() }],
514
+ thumbnailPrevIcon: "h-galleria-thumbnail-prev-icon",
515
+ thumbnailsViewport: "h-galleria-thumbnails-viewport",
516
+ thumbnailItems: "h-galleria-thumbnail-items",
517
+ thumbnailItem: ({ instance, index, activeIndex }) => ["h-galleria-thumbnail-item", {
518
+ "h-galleria-thumbnail-item-current": activeIndex === index,
519
+ "h-galleria-thumbnail-item-active": instance.isItemActive(index),
520
+ "h-galleria-thumbnail-item-start": instance.firstItemAciveIndex() === index,
521
+ "h-galleria-thumbnail-item-end": instance.lastItemActiveIndex() === index
522
+ }],
523
+ thumbnail: "h-galleria-thumbnail",
524
+ thumbnailNextButton: ({ instance }) => ["h-galleria-thumbnail-next-button h-galleria-thumbnail-nav-button", { "h-disabled": instance.isNavForwardDisabled() }],
525
+ thumbnailNextIcon: "h-galleria-thumbnail-next-icon"
526
+ };
527
+ var GalleriaStyle = class GalleriaStyle extends BaseStyle {
528
+ name = "galleria";
529
+ style = style;
530
+ classes = classes;
531
+ static ɵfac = i0.ɵɵngDeclareFactory({
532
+ minVersion: "12.0.0",
533
+ version: "22.2.1",
534
+ ngImport: i0,
535
+ type: GalleriaStyle,
536
+ deps: null,
537
+ target: i0.ɵɵFactoryTarget.Injectable
538
+ });
539
+ static ɵprov = i0.ɵɵngDeclareInjectable({
540
+ minVersion: "12.0.0",
541
+ version: "22.2.1",
542
+ ngImport: i0,
543
+ type: GalleriaStyle
544
+ });
556
545
  };
557
- class GalleriaStyle extends BaseStyle {
558
- name = 'galleria';
559
- style = style;
560
- classes = classes;
561
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: GalleriaStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
562
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: GalleriaStyle });
563
- }
564
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: GalleriaStyle, decorators: [{
565
- type: Injectable
566
- }] });
567
- /**
568
- *
569
- * Galleria is an advanced content gallery component.
570
- *
571
- * [Live Demo](https://www.primeng.org/galleria/)
572
- *
573
- * @module galleriastyle
574
- *
575
- */
546
+ i0.ɵɵngDeclareClassMetadata({
547
+ minVersion: "12.0.0",
548
+ version: "22.2.1",
549
+ ngImport: i0,
550
+ type: GalleriaStyle,
551
+ decorators: [{ type: Injectable }]
552
+ });
576
553
  var GalleriaClasses;
577
- (function (GalleriaClasses) {
578
- /**
579
- * Class name of the mask element
580
- */
581
- GalleriaClasses["mask"] = "h-galleria-mask";
582
- /**
583
- * Class name of the root element
584
- */
585
- GalleriaClasses["root"] = "h-galleria";
586
- /**
587
- * Class name of the close button element
588
- */
589
- GalleriaClasses["closeButton"] = "h-galleria-close-button";
590
- /**
591
- * Class name of the close icon element
592
- */
593
- GalleriaClasses["closeIcon"] = "h-galleria-close-icon";
594
- /**
595
- * Class name of the header element
596
- */
597
- GalleriaClasses["header"] = "h-galleria-header";
598
- /**
599
- * Class name of the content element
600
- */
601
- GalleriaClasses["content"] = "h-galleria-content";
602
- /**
603
- * Class name of the footer element
604
- */
605
- GalleriaClasses["footer"] = "h-galleria-footer";
606
- /**
607
- * Class name of the items container element
608
- */
609
- GalleriaClasses["itemsContainer"] = "h-galleria-items-container";
610
- /**
611
- * Class name of the items element
612
- */
613
- GalleriaClasses["items"] = "h-galleria-items";
614
- /**
615
- * Class name of the previous item button element
616
- */
617
- GalleriaClasses["prevButton"] = "h-galleria-prev-button";
618
- /**
619
- * Class name of the previous item icon element
620
- */
621
- GalleriaClasses["prevIcon"] = "h-galleria-prev-icon";
622
- /**
623
- * Class name of the item element
624
- */
625
- GalleriaClasses["item"] = "h-galleria-item";
626
- /**
627
- * Class name of the next item button element
628
- */
629
- GalleriaClasses["nextButton"] = "h-galleria-next-button";
630
- /**
631
- * Class name of the next item icon element
632
- */
633
- GalleriaClasses["nextIcon"] = "h-galleria-next-icon";
634
- /**
635
- * Class name of the caption element
636
- */
637
- GalleriaClasses["caption"] = "h-galleria-caption";
638
- /**
639
- * Class name of the indicator list element
640
- */
641
- GalleriaClasses["indicatorList"] = "h-galleria-indicator-list";
642
- /**
643
- * Class name of the indicator element
644
- */
645
- GalleriaClasses["indicator"] = "h-galleria-indicator";
646
- /**
647
- * Class name of the indicator button element
648
- */
649
- GalleriaClasses["indicatorButton"] = "h-galleria-indicator-button";
650
- /**
651
- * Class name of the thumbnails element
652
- */
653
- GalleriaClasses["thumbnails"] = "h-galleria-thumbnails";
654
- /**
655
- * Class name of the thumbnail content element
656
- */
657
- GalleriaClasses["thumbnailContent"] = "h-galleria-thumbnails-content";
658
- /**
659
- * Class name of the previous thumbnail button element
660
- */
661
- GalleriaClasses["previousThumbnailButton"] = "h-galleria-thumbnail-prev-button";
662
- /**
663
- * Class name of the previous thumbnail icon element
664
- */
665
- GalleriaClasses["previousThumbnailIcon"] = "h-galleria-thumbnail-prev-icon";
666
- /**
667
- * Class name of the thumbnails viewport element
668
- */
669
- GalleriaClasses["thumbnailsViewport"] = "h-galleria-thumbnails-viewport";
670
- /**
671
- * Class name of the thumbnail items element
672
- */
673
- GalleriaClasses["thumbnailItems"] = "h-galleria-thumbnail-items";
674
- /**
675
- * Class name of the thumbnail item element
676
- */
677
- GalleriaClasses["thumbnailItem"] = "h-galleria-thumbnail-item";
678
- /**
679
- * Class name of the thumbnail element
680
- */
681
- GalleriaClasses["thumbnail"] = "h-galleria-thumbnail";
682
- /**
683
- * Class name of the next thumbnail button element
684
- */
685
- GalleriaClasses["nextThumbnailButton"] = "h-galleria-thumbnail-next-button";
686
- /**
687
- * Class name of the next thumbnail icon element
688
- */
689
- GalleriaClasses["nextThumbnailIcon"] = "h-galleria-thumbnail-next-icon";
554
+ (function(GalleriaClasses) {
555
+ GalleriaClasses["mask"] = "h-galleria-mask";
556
+ GalleriaClasses["root"] = "h-galleria";
557
+ GalleriaClasses["closeButton"] = "h-galleria-close-button";
558
+ GalleriaClasses["closeIcon"] = "h-galleria-close-icon";
559
+ GalleriaClasses["header"] = "h-galleria-header";
560
+ GalleriaClasses["content"] = "h-galleria-content";
561
+ GalleriaClasses["footer"] = "h-galleria-footer";
562
+ GalleriaClasses["itemsContainer"] = "h-galleria-items-container";
563
+ GalleriaClasses["items"] = "h-galleria-items";
564
+ GalleriaClasses["prevButton"] = "h-galleria-prev-button";
565
+ GalleriaClasses["prevIcon"] = "h-galleria-prev-icon";
566
+ GalleriaClasses["item"] = "h-galleria-item";
567
+ GalleriaClasses["nextButton"] = "h-galleria-next-button";
568
+ GalleriaClasses["nextIcon"] = "h-galleria-next-icon";
569
+ GalleriaClasses["caption"] = "h-galleria-caption";
570
+ GalleriaClasses["indicatorList"] = "h-galleria-indicator-list";
571
+ GalleriaClasses["indicator"] = "h-galleria-indicator";
572
+ GalleriaClasses["indicatorButton"] = "h-galleria-indicator-button";
573
+ GalleriaClasses["thumbnails"] = "h-galleria-thumbnails";
574
+ GalleriaClasses["thumbnailContent"] = "h-galleria-thumbnails-content";
575
+ GalleriaClasses["previousThumbnailButton"] = "h-galleria-thumbnail-prev-button";
576
+ GalleriaClasses["previousThumbnailIcon"] = "h-galleria-thumbnail-prev-icon";
577
+ GalleriaClasses["thumbnailsViewport"] = "h-galleria-thumbnails-viewport";
578
+ GalleriaClasses["thumbnailItems"] = "h-galleria-thumbnail-items";
579
+ GalleriaClasses["thumbnailItem"] = "h-galleria-thumbnail-item";
580
+ GalleriaClasses["thumbnail"] = "h-galleria-thumbnail";
581
+ GalleriaClasses["nextThumbnailButton"] = "h-galleria-thumbnail-next-button";
582
+ GalleriaClasses["nextThumbnailIcon"] = "h-galleria-thumbnail-next-icon";
690
583
  })(GalleriaClasses || (GalleriaClasses = {}));
691
-
692
- const GALLERIA_INSTANCE = new InjectionToken('GALLERIA_INSTANCE');
693
- /**
694
- * Galleria is an advanced content gallery component.
695
- * @group Components
696
- */
697
- class Galleria extends BaseComponent {
698
- element;
699
- componentName = 'Galleria';
700
- bindDirectiveInstance = inject(Bind, { self: true });
701
- $pcGalleria = inject(GALLERIA_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
702
- onAfterViewChecked() {
703
- this.bindDirectiveInstance.setAttrs(this.ptm('host'));
704
- }
705
- /**
706
- * Index of the first item.
707
- * @group Props
708
- */
709
- activeIndex = model(0, /* @ts-ignore */
710
- ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
711
- /**
712
- * Whether to display the component on fullscreen.
713
- * @group Props
714
- */
715
- fullScreen = input(false, { ...(ngDevMode ? { debugName: "fullScreen" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
716
- /**
717
- * Unique identifier of the element.
718
- * @group Props
719
- */
720
- id = input(/* @ts-ignore */
721
- ...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
722
- /**
723
- * An array of objects to display.
724
- * @group Props
725
- */
726
- value = input(/* @ts-ignore */
727
- ...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
728
- /**
729
- * Number of items per page.
730
- * @group Props
731
- */
732
- numVisible = input(3, { ...(ngDevMode ? { debugName: "numVisible" } : /* istanbul ignore next */ {}), transform: numberAttribute });
733
- /**
734
- * An array of options for responsive design.
735
- * @see {GalleriaResponsiveOptions}
736
- * @group Props
737
- */
738
- responsiveOptions = input(/* @ts-ignore */
739
- ...(ngDevMode ? [undefined, { debugName: "responsiveOptions" }] : /* istanbul ignore next */ []));
740
- /**
741
- * Whether to display navigation buttons in item section.
742
- * @group Props
743
- */
744
- showItemNavigators = input(false, { ...(ngDevMode ? { debugName: "showItemNavigators" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
745
- /**
746
- * Whether to display navigation buttons in thumbnail container.
747
- * @group Props
748
- */
749
- showThumbnailNavigators = input(true, { ...(ngDevMode ? { debugName: "showThumbnailNavigators" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
750
- /**
751
- * Whether to display navigation buttons on item hover.
752
- * @group Props
753
- */
754
- showItemNavigatorsOnHover = input(false, { ...(ngDevMode ? { debugName: "showItemNavigatorsOnHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
755
- /**
756
- * When enabled, item is changed on indicator hover.
757
- * @group Props
758
- */
759
- changeItemOnIndicatorHover = input(false, { ...(ngDevMode ? { debugName: "changeItemOnIndicatorHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
760
- /**
761
- * Defines if scrolling would be infinite.
762
- * @group Props
763
- */
764
- circular = input(false, { ...(ngDevMode ? { debugName: "circular" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
765
- /**
766
- * Items are displayed with a slideshow in autoPlay mode.
767
- * @group Props
768
- */
769
- autoPlay = input(false, { ...(ngDevMode ? { debugName: "autoPlay" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
770
- /**
771
- * When enabled, autorun should stop by click.
772
- * @group Props
773
- */
774
- shouldStopAutoplayByClick = input(true, { ...(ngDevMode ? { debugName: "shouldStopAutoplayByClick" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
775
- /**
776
- * Time in milliseconds to scroll items.
777
- * @group Props
778
- */
779
- transitionInterval = input(4000, { ...(ngDevMode ? { debugName: "transitionInterval" } : /* istanbul ignore next */ {}), transform: numberAttribute });
780
- /**
781
- * Whether to display thumbnail container.
782
- * @group Props
783
- */
784
- showThumbnails = input(true, { ...(ngDevMode ? { debugName: "showThumbnails" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
785
- /**
786
- * Position of thumbnails.
787
- * @group Props
788
- */
789
- thumbnailsPosition = input('bottom', /* @ts-ignore */
790
- ...(ngDevMode ? [{ debugName: "thumbnailsPosition" }] : /* istanbul ignore next */ []));
791
- /**
792
- * Height of the viewport in vertical thumbnail.
793
- * @group Props
794
- */
795
- verticalThumbnailViewPortHeight = input('300px', /* @ts-ignore */
796
- ...(ngDevMode ? [{ debugName: "verticalThumbnailViewPortHeight" }] : /* istanbul ignore next */ []));
797
- /**
798
- * Whether to display indicator container.
799
- * @group Props
800
- */
801
- showIndicators = input(false, { ...(ngDevMode ? { debugName: "showIndicators" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
802
- /**
803
- * When enabled, indicator container is displayed on item container.
804
- * @group Props
805
- */
806
- showIndicatorsOnItem = input(false, { ...(ngDevMode ? { debugName: "showIndicatorsOnItem" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
807
- /**
808
- * Position of indicators.
809
- * @group Props
810
- */
811
- indicatorsPosition = input('bottom', /* @ts-ignore */
812
- ...(ngDevMode ? [{ debugName: "indicatorsPosition" }] : /* istanbul ignore next */ []));
813
- /**
814
- * Base zIndex value to use in layering.
815
- * @group Props
816
- */
817
- baseZIndex = input(0, { ...(ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
818
- /**
819
- * Style class of the mask on fullscreen mode.
820
- * @group Props
821
- */
822
- maskClass = input(/* @ts-ignore */
823
- ...(ngDevMode ? [undefined, { debugName: "maskClass" }] : /* istanbul ignore next */ []));
824
- /**
825
- * Style class of the component on fullscreen mode. Otherwise, the 'class' property can be used.
826
- * @group Props
827
- */
828
- containerClass = input(/* @ts-ignore */
829
- ...(ngDevMode ? [undefined, { debugName: "containerClass" }] : /* istanbul ignore next */ []));
830
- /**
831
- * Inline style of the component on fullscreen mode. Otherwise, the 'style' property can be used.
832
- * @group Props
833
- */
834
- containerStyle = input(/* @ts-ignore */
835
- ...(ngDevMode ? [undefined, { debugName: "containerStyle" }] : /* istanbul ignore next */ []));
836
- /**
837
- * Transition options of the show animation.
838
- * @deprecated since v21.0.0. Use `motionOptions` instead.
839
- * @group Props
840
- */
841
- showTransitionOptions = input('150ms cubic-bezier(0, 0, 0.2, 1)', /* @ts-ignore */
842
- ...(ngDevMode ? [{ debugName: "showTransitionOptions" }] : /* istanbul ignore next */ []));
843
- /**
844
- * Transition options of the hide animation.
845
- * @deprecated since v21.0.0. Use `motionOptions` instead.
846
- * @group Props
847
- */
848
- hideTransitionOptions = input('150ms cubic-bezier(0, 0, 0.2, 1)', /* @ts-ignore */
849
- ...(ngDevMode ? [{ debugName: "hideTransitionOptions" }] : /* istanbul ignore next */ []));
850
- /**
851
- * The motion options.
852
- * @group Props
853
- */
854
- motionOptions = input(undefined, /* @ts-ignore */
855
- ...(ngDevMode ? [{ debugName: "motionOptions" }] : /* istanbul ignore next */ []));
856
- computedMotionOptions = computed(() => {
857
- return {
858
- ...this.ptm('motion'),
859
- ...this.motionOptions()
860
- };
861
- }, /* @ts-ignore */
862
- ...(ngDevMode ? [{ debugName: "computedMotionOptions" }] : /* istanbul ignore next */ []));
863
- /**
864
- * The mask motion options.
865
- * @group Props
866
- */
867
- maskMotionOptions = input(undefined, /* @ts-ignore */
868
- ...(ngDevMode ? [{ debugName: "maskMotionOptions" }] : /* istanbul ignore next */ []));
869
- computedMaskMotionOptions = computed(() => {
870
- return {
871
- ...this.ptm('maskMotion'),
872
- ...this.maskMotionOptions()
873
- };
874
- }, /* @ts-ignore */
875
- ...(ngDevMode ? [{ debugName: "computedMaskMotionOptions" }] : /* istanbul ignore next */ []));
876
- /**
877
- * Specifies the visibility of the mask on fullscreen mode.
878
- * @group Props
879
- */
880
- visible = model(false, /* @ts-ignore */
881
- ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
882
- _visibleEffect = effect(() => {
883
- if (this.visible() && !this.maskVisible) {
884
- this.maskVisible = true;
885
- this.renderMask.set(true);
886
- this.renderContent.set(true);
887
- }
888
- else if (!this.visible() && this.maskVisible) {
889
- this.maskVisible = false;
890
- }
891
- }, /* @ts-ignore */
892
- ...(ngDevMode ? [{ debugName: "_visibleEffect" }] : /* istanbul ignore next */ []));
893
- renderMask = signal(false, /* @ts-ignore */
894
- ...(ngDevMode ? [{ debugName: "renderMask" }] : /* istanbul ignore next */ []));
895
- renderContent = signal(false, /* @ts-ignore */
896
- ...(ngDevMode ? [{ debugName: "renderContent" }] : /* istanbul ignore next */ []));
897
- container = viewChild('container', /* @ts-ignore */
898
- ...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
899
- /**
900
- * Custom header template.
901
- * @group Templates
902
- */
903
- headerTemplate = contentChild('header', { ...(ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
904
- headerFacet;
905
- /**
906
- * Custom footer template.
907
- * @group Templates
908
- */
909
- footerTemplate = contentChild('footer', { ...(ngDevMode ? { debugName: "footerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
910
- footerFacet;
911
- /**
912
- * Custom indicator template.
913
- * @group Templates
914
- */
915
- indicatorTemplate = contentChild('indicator', { ...(ngDevMode ? { debugName: "indicatorTemplate" } : /* istanbul ignore next */ {}), descendants: false });
916
- indicatorFacet;
917
- /**
918
- * Custom caption template.
919
- * @group Templates
920
- */
921
- captionTemplate = contentChild('caption', { ...(ngDevMode ? { debugName: "captionTemplate" } : /* istanbul ignore next */ {}), descendants: false });
922
- captionFacet;
923
- /**
924
- * Custom close icon template.
925
- * @group Templates
926
- */
927
- _closeIconTemplate = contentChild('closeicon', { ...(ngDevMode ? { debugName: "_closeIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
928
- closeIconTemplate;
929
- /**
930
- * Custom previous thumbnail icon template.
931
- * @group Templates
932
- */
933
- _previousThumbnailIconTemplate = contentChild('previousthumbnailicon', { ...(ngDevMode ? { debugName: "_previousThumbnailIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
934
- previousThumbnailIconTemplate;
935
- /**
936
- * Custom next thumbnail icon template.
937
- * @group Templates
938
- */
939
- _nextThumbnailIconTemplate = contentChild('nextthumbnailicon', { ...(ngDevMode ? { debugName: "_nextThumbnailIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
940
- nextThumbnailIconTemplate;
941
- /**
942
- * Custom item previous icon template.
943
- * @group Templates
944
- */
945
- _itemPreviousIconTemplate = contentChild('itempreviousicon', { ...(ngDevMode ? { debugName: "_itemPreviousIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
946
- itemPreviousIconTemplate;
947
- /**
948
- * Custom item next icon template.
949
- * @group Templates
950
- */
951
- _itemNextIconTemplate = contentChild('itemnexticon', { ...(ngDevMode ? { debugName: "_itemNextIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
952
- itemNextIconTemplate;
953
- /**
954
- * Custom item template.
955
- * @group Templates
956
- */
957
- _itemTemplate = contentChild('item', { ...(ngDevMode ? { debugName: "_itemTemplate" } : /* istanbul ignore next */ {}), descendants: false });
958
- itemTemplate;
959
- /**
960
- * Custom thumbnail template.
961
- * @group Templates
962
- */
963
- _thumbnailTemplate = contentChild('thumbnail', { ...(ngDevMode ? { debugName: "_thumbnailTemplate" } : /* istanbul ignore next */ {}), descendants: false });
964
- thumbnailTemplate;
965
- maskVisible = false;
966
- numVisibleLimit = 0;
967
- _componentStyle = inject(GalleriaStyle);
968
- mask;
969
- templates = contentChildren(HelixTemplate, /* @ts-ignore */
970
- ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
971
- constructor(element) {
972
- super();
973
- this.element = element;
974
- }
975
- onAfterContentInit() {
976
- this.templates().forEach((item) => {
977
- switch (item.getType()) {
978
- case 'header':
979
- this.headerFacet = item.template;
980
- break;
981
- case 'footer':
982
- this.footerFacet = item.template;
983
- break;
984
- case 'indicator':
985
- this.indicatorFacet = item.template;
986
- break;
987
- case 'closeicon':
988
- this.closeIconTemplate = item.template;
989
- break;
990
- case 'itemnexticon':
991
- this.itemNextIconTemplate = item.template;
992
- break;
993
- case 'itempreviousicon':
994
- this.itemPreviousIconTemplate = item.template;
995
- break;
996
- case 'previousthumbnailicon':
997
- this.previousThumbnailIconTemplate = item.template;
998
- break;
999
- case 'nextthumbnailicon':
1000
- this.nextThumbnailIconTemplate = item.template;
1001
- break;
1002
- case 'caption':
1003
- this.captionFacet = item.template;
1004
- break;
1005
- case 'item':
1006
- this.itemTemplate = item.template;
1007
- break;
1008
- case 'thumbnail':
1009
- this.thumbnailTemplate = item.template;
1010
- break;
1011
- }
1012
- });
1013
- }
1014
- onChanges(simpleChanges) {
1015
- if (simpleChanges.value && simpleChanges.value.currentValue?.length < this.numVisible()) {
1016
- this.numVisibleLimit = simpleChanges.value.currentValue.length;
1017
- }
1018
- else {
1019
- this.numVisibleLimit = 0;
1020
- }
1021
- }
1022
- onMaskHide(event) {
1023
- if (!event || event.target === event.currentTarget) {
1024
- this.visible.set(false);
1025
- }
1026
- }
1027
- onActiveItemChange(index) {
1028
- if (this.activeIndex() !== index) {
1029
- this.activeIndex.set(index);
1030
- }
1031
- }
1032
- onBeforeEnter(event) {
1033
- this.mask = event.element?.parentElement;
1034
- this.enableModality();
1035
- setTimeout(() => {
1036
- const focusTarget = findSingle(this.container()?.nativeElement, '[data-pc-section="closebutton"]');
1037
- if (focusTarget)
1038
- focus(focusTarget);
1039
- }, 25);
1040
- }
1041
- onBeforeLeave() {
1042
- if (this.mask) {
1043
- this.maskVisible = false;
1044
- }
1045
- }
1046
- onAfterLeave() {
1047
- this.disableModality();
1048
- this.renderContent.set(false);
1049
- }
1050
- onMaskAfterLeave() {
1051
- if (!this.renderContent()) {
1052
- this.renderMask.set(false);
1053
- }
1054
- }
1055
- enableModality() {
1056
- //@ts-ignore
1057
- blockBodyScroll();
1058
- this.cd.markForCheck();
1059
- if (this.mask) {
1060
- ZIndexUtils.set('modal', this.mask, this.baseZIndex() || this.config.zIndex.modal);
1061
- }
1062
- }
1063
- disableModality() {
1064
- //@ts-ignore
1065
- unblockBodyScroll();
1066
- this.cd.markForCheck();
1067
- if (this.mask) {
1068
- ZIndexUtils.clear(this.mask);
1069
- }
1070
- }
1071
- onDestroy() {
1072
- if (this.fullScreen()) {
1073
- removeClass(this.document.body, 'h-overflow-hidden');
1074
- }
1075
- if (this.mask) {
1076
- this.disableModality();
1077
- }
1078
- }
1079
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: Galleria, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
1080
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: Galleria, isStandalone: false, selector: "h-galleria", inputs: { activeIndex: { classPropertyName: "activeIndex", publicName: "activeIndex", isSignal: true, isRequired: false, transformFunction: null }, fullScreen: { classPropertyName: "fullScreen", publicName: "fullScreen", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, numVisible: { classPropertyName: "numVisible", publicName: "numVisible", isSignal: true, isRequired: false, transformFunction: null }, responsiveOptions: { classPropertyName: "responsiveOptions", publicName: "responsiveOptions", isSignal: true, isRequired: false, transformFunction: null }, showItemNavigators: { classPropertyName: "showItemNavigators", publicName: "showItemNavigators", isSignal: true, isRequired: false, transformFunction: null }, showThumbnailNavigators: { classPropertyName: "showThumbnailNavigators", publicName: "showThumbnailNavigators", isSignal: true, isRequired: false, transformFunction: null }, showItemNavigatorsOnHover: { classPropertyName: "showItemNavigatorsOnHover", publicName: "showItemNavigatorsOnHover", isSignal: true, isRequired: false, transformFunction: null }, changeItemOnIndicatorHover: { classPropertyName: "changeItemOnIndicatorHover", publicName: "changeItemOnIndicatorHover", isSignal: true, isRequired: false, transformFunction: null }, circular: { classPropertyName: "circular", publicName: "circular", isSignal: true, isRequired: false, transformFunction: null }, autoPlay: { classPropertyName: "autoPlay", publicName: "autoPlay", isSignal: true, isRequired: false, transformFunction: null }, shouldStopAutoplayByClick: { classPropertyName: "shouldStopAutoplayByClick", publicName: "shouldStopAutoplayByClick", isSignal: true, isRequired: false, transformFunction: null }, transitionInterval: { classPropertyName: "transitionInterval", publicName: "transitionInterval", isSignal: true, isRequired: false, transformFunction: null }, showThumbnails: { classPropertyName: "showThumbnails", publicName: "showThumbnails", isSignal: true, isRequired: false, transformFunction: null }, thumbnailsPosition: { classPropertyName: "thumbnailsPosition", publicName: "thumbnailsPosition", isSignal: true, isRequired: false, transformFunction: null }, verticalThumbnailViewPortHeight: { classPropertyName: "verticalThumbnailViewPortHeight", publicName: "verticalThumbnailViewPortHeight", isSignal: true, isRequired: false, transformFunction: null }, showIndicators: { classPropertyName: "showIndicators", publicName: "showIndicators", isSignal: true, isRequired: false, transformFunction: null }, showIndicatorsOnItem: { classPropertyName: "showIndicatorsOnItem", publicName: "showIndicatorsOnItem", isSignal: true, isRequired: false, transformFunction: null }, indicatorsPosition: { classPropertyName: "indicatorsPosition", publicName: "indicatorsPosition", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null }, maskClass: { classPropertyName: "maskClass", publicName: "maskClass", isSignal: true, isRequired: false, transformFunction: null }, containerClass: { classPropertyName: "containerClass", publicName: "containerClass", isSignal: true, isRequired: false, transformFunction: null }, containerStyle: { classPropertyName: "containerStyle", publicName: "containerStyle", isSignal: true, isRequired: false, transformFunction: null }, showTransitionOptions: { classPropertyName: "showTransitionOptions", publicName: "showTransitionOptions", isSignal: true, isRequired: false, transformFunction: null }, hideTransitionOptions: { classPropertyName: "hideTransitionOptions", publicName: "hideTransitionOptions", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, maskMotionOptions: { classPropertyName: "maskMotionOptions", publicName: "maskMotionOptions", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeIndex: "activeIndexChange", visible: "visibleChange" }, providers: [GalleriaStyle, { provide: GALLERIA_INSTANCE, useExisting: Galleria }, { provide: PARENT_INSTANCE, useExisting: Galleria }], queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "indicatorTemplate", first: true, predicate: ["indicator"], isSignal: true }, { propertyName: "captionTemplate", first: true, predicate: ["caption"], isSignal: true }, { propertyName: "_closeIconTemplate", first: true, predicate: ["closeicon"], isSignal: true }, { propertyName: "_previousThumbnailIconTemplate", first: true, predicate: ["previousthumbnailicon"], isSignal: true }, { propertyName: "_nextThumbnailIconTemplate", first: true, predicate: ["nextthumbnailicon"], isSignal: true }, { propertyName: "_itemPreviousIconTemplate", first: true, predicate: ["itempreviousicon"], isSignal: true }, { propertyName: "_itemNextIconTemplate", first: true, predicate: ["itemnexticon"], isSignal: true }, { propertyName: "_itemTemplate", first: true, predicate: ["item"], isSignal: true }, { propertyName: "_thumbnailTemplate", first: true, predicate: ["thumbnail"], isSignal: true }, { propertyName: "templates", predicate: HelixTemplate, isSignal: true }], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: "@if (fullScreen()) {\n <div #container>\n @if (renderMask()) {\n <div\n [hBind]=\"ptm('mask')\"\n [hMotion]=\"maskVisible\"\n [pMotionAppear]=\"true\"\n [pMotionEnterActiveClass]=\"fullScreen() ? 'h-overlay-mask-enter-active' : ''\"\n [pMotionLeaveActiveClass]=\"fullScreen() ? 'h-overlay-mask-leave-active' : ''\"\n [pMotionOptions]=\"computedMaskMotionOptions()\"\n (pMotionOnAfterLeave)=\"onMaskAfterLeave()\"\n [ngClass]=\"cx('mask')\"\n [class]=\"maskClass()\"\n [attr.role]=\"fullScreen() ? 'dialog' : 'region'\"\n [attr.aria-modal]=\"fullScreen() ? 'true' : undefined\"\n (click)=\"onMaskHide($event)\"\n >\n @if (renderContent()) {\n <div\n hGalleriaContent\n [hMotion]=\"visible()\"\n [pMotionAppear]=\"true\"\n [pMotionName]=\"'h-galleria'\"\n [pMotionOptions]=\"computedMotionOptions()\"\n (pMotionOnBeforeEnter)=\"onBeforeEnter($event)\"\n (pMotionOnBeforeLeave)=\"onBeforeLeave()\"\n (pMotionOnAfterLeave)=\"onAfterLeave()\"\n [value]=\"value()\"\n [activeIndex]=\"activeIndex()\"\n [numVisible]=\"numVisibleLimit || numVisible()\"\n (maskHide)=\"onMaskHide()\"\n (activeItemChange)=\"onActiveItemChange($event)\"\n [ngStyle]=\"containerStyle()\"\n [fullScreen]=\"fullScreen()\"\n [pt]=\"pt()\"\n hFocusTrap\n [pFocusTrapDisabled]=\"!fullScreen()\"\n [unstyled]=\"unstyled()\"\n ></div>\n }\n </div>\n }\n </div>\n} @else {\n <div hGalleriaContent [pt]=\"pt()\" [unstyled]=\"unstyled()\" [value]=\"value()\" [activeIndex]=\"activeIndex()\" [numVisible]=\"numVisibleLimit || numVisible()\" (activeItemChange)=\"onActiveItemChange($event)\"></div>\n}\n", dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i0.forwardRef(() => FocusTrap), selector: "[hFocusTrap]", inputs: ["pFocusTrapDisabled"] }, { kind: "directive", type: i0.forwardRef(() => i1.Bind), selector: "[hBind]", inputs: ["hBind"] }, { kind: "directive", type: i0.forwardRef(() => i3.MotionDirective), selector: "[hMotion]", inputs: ["hMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }, { kind: "component", type: i0.forwardRef(() => GalleriaContent), selector: "div[hGalleriaContent]", inputs: ["activeIndex", "value", "numVisible", "fullScreen"], outputs: ["maskHide", "activeItemChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1081
- }
1082
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: Galleria, decorators: [{
1083
- type: Component,
1084
- args: [{ selector: 'h-galleria', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [GalleriaStyle, { provide: GALLERIA_INSTANCE, useExisting: Galleria }, { provide: PARENT_INSTANCE, useExisting: Galleria }], hostDirectives: [Bind], template: "@if (fullScreen()) {\n <div #container>\n @if (renderMask()) {\n <div\n [hBind]=\"ptm('mask')\"\n [hMotion]=\"maskVisible\"\n [pMotionAppear]=\"true\"\n [pMotionEnterActiveClass]=\"fullScreen() ? 'h-overlay-mask-enter-active' : ''\"\n [pMotionLeaveActiveClass]=\"fullScreen() ? 'h-overlay-mask-leave-active' : ''\"\n [pMotionOptions]=\"computedMaskMotionOptions()\"\n (pMotionOnAfterLeave)=\"onMaskAfterLeave()\"\n [ngClass]=\"cx('mask')\"\n [class]=\"maskClass()\"\n [attr.role]=\"fullScreen() ? 'dialog' : 'region'\"\n [attr.aria-modal]=\"fullScreen() ? 'true' : undefined\"\n (click)=\"onMaskHide($event)\"\n >\n @if (renderContent()) {\n <div\n hGalleriaContent\n [hMotion]=\"visible()\"\n [pMotionAppear]=\"true\"\n [pMotionName]=\"'h-galleria'\"\n [pMotionOptions]=\"computedMotionOptions()\"\n (pMotionOnBeforeEnter)=\"onBeforeEnter($event)\"\n (pMotionOnBeforeLeave)=\"onBeforeLeave()\"\n (pMotionOnAfterLeave)=\"onAfterLeave()\"\n [value]=\"value()\"\n [activeIndex]=\"activeIndex()\"\n [numVisible]=\"numVisibleLimit || numVisible()\"\n (maskHide)=\"onMaskHide()\"\n (activeItemChange)=\"onActiveItemChange($event)\"\n [ngStyle]=\"containerStyle()\"\n [fullScreen]=\"fullScreen()\"\n [pt]=\"pt()\"\n hFocusTrap\n [pFocusTrapDisabled]=\"!fullScreen()\"\n [unstyled]=\"unstyled()\"\n ></div>\n }\n </div>\n }\n </div>\n} @else {\n <div hGalleriaContent [pt]=\"pt()\" [unstyled]=\"unstyled()\" [value]=\"value()\" [activeIndex]=\"activeIndex()\" [numVisible]=\"numVisibleLimit || numVisible()\" (activeItemChange)=\"onActiveItemChange($event)\"></div>\n}\n" }]
1085
- }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { activeIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIndex", required: false }] }, { type: i0.Output, args: ["activeIndexChange"] }], fullScreen: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullScreen", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], numVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "numVisible", required: false }] }], responsiveOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsiveOptions", required: false }] }], showItemNavigators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showItemNavigators", required: false }] }], showThumbnailNavigators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showThumbnailNavigators", required: false }] }], showItemNavigatorsOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "showItemNavigatorsOnHover", required: false }] }], changeItemOnIndicatorHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "changeItemOnIndicatorHover", required: false }] }], circular: [{ type: i0.Input, args: [{ isSignal: true, alias: "circular", required: false }] }], autoPlay: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoPlay", required: false }] }], shouldStopAutoplayByClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "shouldStopAutoplayByClick", required: false }] }], transitionInterval: [{ type: i0.Input, args: [{ isSignal: true, alias: "transitionInterval", required: false }] }], showThumbnails: [{ type: i0.Input, args: [{ isSignal: true, alias: "showThumbnails", required: false }] }], thumbnailsPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "thumbnailsPosition", required: false }] }], verticalThumbnailViewPortHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "verticalThumbnailViewPortHeight", required: false }] }], showIndicators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIndicators", required: false }] }], showIndicatorsOnItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIndicatorsOnItem", required: false }] }], indicatorsPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "indicatorsPosition", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], maskClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskClass", required: false }] }], containerClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "containerClass", required: false }] }], containerStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "containerStyle", required: false }] }], showTransitionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTransitionOptions", required: false }] }], hideTransitionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideTransitionOptions", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], maskMotionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskMotionOptions", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], container: [{ type: i0.ViewChild, args: ['container', { isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], indicatorTemplate: [{ type: i0.ContentChild, args: ['indicator', { ...{ descendants: false }, isSignal: true }] }], captionTemplate: [{ type: i0.ContentChild, args: ['caption', { ...{ descendants: false }, isSignal: true }] }], _closeIconTemplate: [{ type: i0.ContentChild, args: ['closeicon', { ...{ descendants: false }, isSignal: true }] }], _previousThumbnailIconTemplate: [{ type: i0.ContentChild, args: ['previousthumbnailicon', { ...{ descendants: false }, isSignal: true }] }], _nextThumbnailIconTemplate: [{ type: i0.ContentChild, args: ['nextthumbnailicon', { ...{ descendants: false }, isSignal: true }] }], _itemPreviousIconTemplate: [{ type: i0.ContentChild, args: ['itempreviousicon', { ...{ descendants: false }, isSignal: true }] }], _itemNextIconTemplate: [{ type: i0.ContentChild, args: ['itemnexticon', { ...{ descendants: false }, isSignal: true }] }], _itemTemplate: [{ type: i0.ContentChild, args: ['item', { ...{ descendants: false }, isSignal: true }] }], _thumbnailTemplate: [{ type: i0.ContentChild, args: ['thumbnail', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => HelixTemplate), { isSignal: true }] }] } });
1086
- class GalleriaContent extends BaseComponent {
1087
- galleria;
1088
- differs;
1089
- hostName = 'Galleria';
1090
- bindDirectiveInstance = inject(Bind, { self: true });
1091
- onAfterViewChecked() {
1092
- this.bindDirectiveInstance.setAttrs(this.getPTOptions('root'));
1093
- }
1094
- activeIndex = input(0, /* @ts-ignore */
1095
- ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
1096
- _activeIndex = 0;
1097
- value = input([], /* @ts-ignore */
1098
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
1099
- numVisible = input(undefined, { ...(ngDevMode ? { debugName: "numVisible" } : /* istanbul ignore next */ {}), transform: numberAttribute });
1100
- fullScreen = input(false, { ...(ngDevMode ? { debugName: "fullScreen" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1101
- _fullScreen = false;
1102
- maskHide = output();
1103
- activeItemChange = output();
1104
- closeButton = viewChild('closeButton', /* @ts-ignore */
1105
- ...(ngDevMode ? [{ debugName: "closeButton" }] : /* istanbul ignore next */ []));
1106
- _componentStyle = inject(GalleriaStyle);
1107
- $pcGalleria = inject(GALLERIA_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
1108
- id;
1109
- slideShowActive = true;
1110
- interval;
1111
- styleClass;
1112
- differ;
1113
- constructor(galleria, differs) {
1114
- super();
1115
- this.galleria = galleria;
1116
- this.differs = differs;
1117
- this.id = this.galleria.id() || uuid('pn_id_');
1118
- this.differ = this.differs.find(this.galleria).create();
1119
- effect(() => {
1120
- this._activeIndex = this.activeIndex();
1121
- });
1122
- effect(() => {
1123
- this._fullScreen = this.fullScreen();
1124
- });
1125
- }
1126
- // For custom fullscreen
1127
- handleFullscreenChange(event) {
1128
- if (document?.fullscreenElement === this.el.nativeElement?.children[0]) {
1129
- this._fullScreen = true;
1130
- }
1131
- else {
1132
- this._fullScreen = false;
1133
- }
1134
- }
1135
- onDoCheck() {
1136
- if (isPlatformBrowser(this.galleria.platformId)) {
1137
- const changes = this.differ.diff(this.galleria);
1138
- if (changes && changes.forEachItem.length > 0) {
1139
- // Because we change the properties of the parent component,
1140
- // and the children take our entity from the injector.
1141
- // We can tell the children to redraw themselves when we change the properties of the parent component.
1142
- // Since we have an onPush strategy
1143
- this.cd.markForCheck();
1144
- }
1145
- }
1146
- }
1147
- shouldRenderFooter() {
1148
- return (this.galleria.footerFacet && this.galleria.templates().length > 0) || this.galleria.footerTemplate();
1149
- }
1150
- startSlideShow() {
1151
- if (isPlatformBrowser(this.galleria.platformId)) {
1152
- this.interval = setInterval(() => {
1153
- let activeIndex = this.galleria.circular() && this.value().length - 1 === this._activeIndex ? 0 : this._activeIndex + 1;
1154
- this.onActiveIndexChange(activeIndex);
1155
- this._activeIndex = activeIndex;
1156
- }, this.galleria.transitionInterval());
1157
- this.slideShowActive = true;
1158
- }
1159
- }
1160
- stopSlideShow() {
1161
- if (this.galleria.autoPlay() && !this.galleria.shouldStopAutoplayByClick()) {
1162
- return;
1163
- }
1164
- if (this.interval) {
1165
- clearInterval(this.interval);
1166
- }
1167
- this.slideShowActive = false;
1168
- }
1169
- getPositionClass(preClassName, position) {
1170
- const positions = ['top', 'left', 'bottom', 'right'];
1171
- const pos = positions.find((item) => item === position);
1172
- return pos ? `${preClassName}-${pos}` : '';
1173
- }
1174
- isVertical() {
1175
- const thumbnailsPosition = this.galleria.thumbnailsPosition();
1176
- return thumbnailsPosition === 'left' || thumbnailsPosition === 'right';
1177
- }
1178
- onActiveIndexChange(index) {
1179
- if (this._activeIndex !== index) {
1180
- this._activeIndex = index;
1181
- this.activeItemChange.emit(this._activeIndex);
1182
- }
1183
- }
1184
- closeAriaLabel() {
1185
- return this.config.translation.aria ? this.config.translation.aria.close : undefined;
1186
- }
1187
- getPTOptions(key) {
1188
- return this.ptm(key, {
1189
- context: {
1190
- pt: this.pt(),
1191
- unstyled: this.unstyled()
1192
- }
1193
- });
1194
- }
1195
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: GalleriaContent, deps: [{ token: Galleria }, { token: i0.KeyValueDiffers }], target: i0.ɵɵFactoryTarget.Component });
1196
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: GalleriaContent, isStandalone: false, selector: "div[hGalleriaContent]", inputs: { activeIndex: { classPropertyName: "activeIndex", publicName: "activeIndex", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, numVisible: { classPropertyName: "numVisible", publicName: "numVisible", isSignal: true, isRequired: false, transformFunction: null }, fullScreen: { classPropertyName: "fullScreen", publicName: "fullScreen", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { maskHide: "maskHide", activeItemChange: "activeItemChange" }, host: { listeners: { "document:fullscreenchange": "handleFullscreenChange($event)" }, properties: { "attr.id": "id", "attr.role": "\"region\"", "style": "!galleria.fullScreen() ? galleria.containerStyle() : {}", "class": "cn(cx('root'))" } }, providers: [GalleriaStyle], viewQueries: [{ propertyName: "closeButton", first: true, predicate: ["closeButton"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: "@if (value() && value().length > 0) {\n @if (galleria.fullScreen()) {\n <button type=\"button\" [hBind]=\"getPTOptions('closeButton')\" [class]=\"cx('closeButton')\" (click)=\"maskHide.emit()\" [attr.aria-label]=\"closeAriaLabel()\">\n @if (!galleria.closeIconTemplate && !galleria._closeIconTemplate()) {\n <svg data-h-icon=\"times\" [hBind]=\"getPTOptions('closeIcon')\" [class]=\"cx('closeIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"galleria.closeIconTemplate || galleria._closeIconTemplate()\"></ng-template>\n </button>\n }\n @if (galleria.templates() && (galleria.headerFacet || galleria.headerTemplate())) {\n <div hGalleriaItemSlot [unstyled]=\"unstyled()\" type=\"header\" [templates]=\"galleria.templates()\" [hBind]=\"getPTOptions('header')\" [class]=\"cx('header')\"></div>\n }\n <div [hBind]=\"getPTOptions('content')\" [class]=\"cx('content')\" [attr.aria-live]=\"galleria.autoPlay() ? 'polite' : 'off'\">\n <div\n hGalleriaItem\n [id]=\"id\"\n [value]=\"value()\"\n [activeIndex]=\"_activeIndex\"\n [circular]=\"galleria.circular()\"\n [templates]=\"galleria.templates()\"\n (onActiveIndexChange)=\"onActiveIndexChange($event)\"\n [showIndicators]=\"galleria.showIndicators()\"\n [changeItemOnIndicatorHover]=\"galleria.changeItemOnIndicatorHover()\"\n [indicatorFacet]=\"galleria.indicatorFacet\"\n [captionFacet]=\"galleria.captionFacet\"\n [showItemNavigators]=\"galleria.showItemNavigators()\"\n [autoPlay]=\"galleria.autoPlay()\"\n [slideShowActive]=\"slideShowActive\"\n (startSlideShow)=\"startSlideShow()\"\n (stopSlideShow)=\"stopSlideShow()\"\n [pt]=\"pt()\"\n [unstyled]=\"unstyled()\"\n [class]=\"cx('itemsContainer')\"\n ></div>\n @if (galleria.showThumbnails()) {\n <div\n hGalleriaThumbnails\n [containerId]=\"id\"\n [value]=\"value()\"\n (onActiveIndexChange)=\"onActiveIndexChange($event)\"\n [activeIndex]=\"_activeIndex\"\n [templates]=\"galleria.templates()\"\n [numVisible]=\"numVisible()\"\n [responsiveOptions]=\"galleria.responsiveOptions()\"\n [circular]=\"galleria.circular()\"\n [isVertical]=\"isVertical()\"\n [contentHeight]=\"galleria.verticalThumbnailViewPortHeight()\"\n [showThumbnailNavigators]=\"galleria.showThumbnailNavigators()\"\n [slideShowActive]=\"slideShowActive\"\n (stopSlideShow)=\"stopSlideShow()\"\n [pt]=\"pt()\"\n [unstyled]=\"unstyled()\"\n ></div>\n }\n </div>\n @if (shouldRenderFooter()) {\n <div hGalleriaItemSlot [hBind]=\"getPTOptions('footer')\" [class]=\"cx('footer')\" type=\"footer\" [templates]=\"galleria.templates()\" [unstyled]=\"unstyled()\"></div>\n }\n}\n", dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => TimesIcon), selector: "[data-h-icon=\"times\"]" }, { kind: "directive", type: i0.forwardRef(() => i1.Bind), selector: "[hBind]", inputs: ["hBind"] }, { kind: "component", type: i0.forwardRef(() => GalleriaItemSlot), selector: "div[hGalleriaItemSlot]", inputs: ["templates", "index", "item", "type"] }, { kind: "component", type: i0.forwardRef(() => GalleriaItem), selector: "div[hGalleriaItem]", inputs: ["id", "circular", "value", "showItemNavigators", "showIndicators", "slideShowActive", "changeItemOnIndicatorHover", "autoPlay", "templates", "indicatorFacet", "captionFacet", "activeIndex"], outputs: ["startSlideShow", "stopSlideShow", "onActiveIndexChange"] }, { kind: "component", type: i0.forwardRef(() => GalleriaThumbnails), selector: "div[hGalleriaThumbnails]", inputs: ["containerId", "value", "isVertical", "slideShowActive", "circular", "responsiveOptions", "contentHeight", "showThumbnailNavigators", "templates", "numVisible", "activeIndex"], outputs: ["onActiveIndexChange", "stopSlideShow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1197
- }
1198
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: GalleriaContent, decorators: [{
1199
- type: Component,
1200
- args: [{ selector: 'div[hGalleriaContent]', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, providers: [GalleriaStyle], host: {
1201
- '[attr.id]': 'id',
1202
- '[attr.role]': '"region"',
1203
- '[style]': '!galleria.fullScreen() ? galleria.containerStyle() : {}',
1204
- '[class]': "cn(cx('root'))",
1205
- '(document:fullscreenchange)': 'handleFullscreenChange($event)'
1206
- }, hostDirectives: [Bind], template: "@if (value() && value().length > 0) {\n @if (galleria.fullScreen()) {\n <button type=\"button\" [hBind]=\"getPTOptions('closeButton')\" [class]=\"cx('closeButton')\" (click)=\"maskHide.emit()\" [attr.aria-label]=\"closeAriaLabel()\">\n @if (!galleria.closeIconTemplate && !galleria._closeIconTemplate()) {\n <svg data-h-icon=\"times\" [hBind]=\"getPTOptions('closeIcon')\" [class]=\"cx('closeIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"galleria.closeIconTemplate || galleria._closeIconTemplate()\"></ng-template>\n </button>\n }\n @if (galleria.templates() && (galleria.headerFacet || galleria.headerTemplate())) {\n <div hGalleriaItemSlot [unstyled]=\"unstyled()\" type=\"header\" [templates]=\"galleria.templates()\" [hBind]=\"getPTOptions('header')\" [class]=\"cx('header')\"></div>\n }\n <div [hBind]=\"getPTOptions('content')\" [class]=\"cx('content')\" [attr.aria-live]=\"galleria.autoPlay() ? 'polite' : 'off'\">\n <div\n hGalleriaItem\n [id]=\"id\"\n [value]=\"value()\"\n [activeIndex]=\"_activeIndex\"\n [circular]=\"galleria.circular()\"\n [templates]=\"galleria.templates()\"\n (onActiveIndexChange)=\"onActiveIndexChange($event)\"\n [showIndicators]=\"galleria.showIndicators()\"\n [changeItemOnIndicatorHover]=\"galleria.changeItemOnIndicatorHover()\"\n [indicatorFacet]=\"galleria.indicatorFacet\"\n [captionFacet]=\"galleria.captionFacet\"\n [showItemNavigators]=\"galleria.showItemNavigators()\"\n [autoPlay]=\"galleria.autoPlay()\"\n [slideShowActive]=\"slideShowActive\"\n (startSlideShow)=\"startSlideShow()\"\n (stopSlideShow)=\"stopSlideShow()\"\n [pt]=\"pt()\"\n [unstyled]=\"unstyled()\"\n [class]=\"cx('itemsContainer')\"\n ></div>\n @if (galleria.showThumbnails()) {\n <div\n hGalleriaThumbnails\n [containerId]=\"id\"\n [value]=\"value()\"\n (onActiveIndexChange)=\"onActiveIndexChange($event)\"\n [activeIndex]=\"_activeIndex\"\n [templates]=\"galleria.templates()\"\n [numVisible]=\"numVisible()\"\n [responsiveOptions]=\"galleria.responsiveOptions()\"\n [circular]=\"galleria.circular()\"\n [isVertical]=\"isVertical()\"\n [contentHeight]=\"galleria.verticalThumbnailViewPortHeight()\"\n [showThumbnailNavigators]=\"galleria.showThumbnailNavigators()\"\n [slideShowActive]=\"slideShowActive\"\n (stopSlideShow)=\"stopSlideShow()\"\n [pt]=\"pt()\"\n [unstyled]=\"unstyled()\"\n ></div>\n }\n </div>\n @if (shouldRenderFooter()) {\n <div hGalleriaItemSlot [hBind]=\"getPTOptions('footer')\" [class]=\"cx('footer')\" type=\"footer\" [templates]=\"galleria.templates()\" [unstyled]=\"unstyled()\"></div>\n }\n}\n" }]
1207
- }], ctorParameters: () => [{ type: Galleria }, { type: i0.KeyValueDiffers }], propDecorators: { activeIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIndex", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], numVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "numVisible", required: false }] }], fullScreen: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullScreen", required: false }] }], maskHide: [{ type: i0.Output, args: ["maskHide"] }], activeItemChange: [{ type: i0.Output, args: ["activeItemChange"] }], closeButton: [{ type: i0.ViewChild, args: ['closeButton', { isSignal: true }] }] } });
1208
- class GalleriaItemSlot extends BaseComponent {
1209
- hostName = 'Galleria';
1210
- templates = input(/* @ts-ignore */
1211
- ...(ngDevMode ? [undefined, { debugName: "templates" }] : /* istanbul ignore next */ []));
1212
- index = input(undefined, { ...(ngDevMode ? { debugName: "index" } : /* istanbul ignore next */ {}), transform: numberAttribute });
1213
- item = input(/* @ts-ignore */
1214
- ...(ngDevMode ? [undefined, { debugName: "item" }] : /* istanbul ignore next */ []));
1215
- _itemEffect = effect(() => {
1216
- const item = this.item();
1217
- const templates = this.templates();
1218
- if (templates && templates.length > 0) {
1219
- templates.forEach((tmpl) => {
1220
- const type = this.type();
1221
- if (tmpl.getType() === type) {
1222
- switch (type) {
1223
- case 'item':
1224
- case 'caption':
1225
- case 'thumbnail':
1226
- this.context = { $implicit: item };
1227
- this.contentTemplate = tmpl.template;
1228
- break;
1229
- case 'footer':
1230
- this.context = { $implicit: item };
1231
- this.contentTemplate = tmpl.template;
1232
- break;
1233
- }
1234
- }
1235
- });
1236
- }
1237
- else {
1238
- this.getContentTemplate();
1239
- }
1240
- }, /* @ts-ignore */
1241
- ...(ngDevMode ? [{ debugName: "_itemEffect" }] : /* istanbul ignore next */ []));
1242
- shouldRender() {
1243
- return (this.contentTemplate ||
1244
- this.galleria._itemTemplate() ||
1245
- this.galleria.itemTemplate ||
1246
- this.galleria.captionTemplate() ||
1247
- this.galleria.captionTemplate() ||
1248
- this.galleria.captionFacet ||
1249
- this.galleria.thumbnailTemplate ||
1250
- this.galleria._thumbnailTemplate() ||
1251
- this.galleria.footerTemplate());
1252
- }
1253
- galleria = inject(Galleria);
1254
- $pcGalleria = inject(GALLERIA_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
1255
- getTemplateFromQueryList(type) {
1256
- return this.galleria.templates().find((item) => item.getType() === type)?.template;
1257
- }
1258
- getContentTemplate() {
1259
- switch (this.type()) {
1260
- case 'item':
1261
- this.context = { $implicit: this.item() };
1262
- this.contentTemplate = this.galleria._itemTemplate() || this.getTemplateFromQueryList('item');
1263
- break;
1264
- case 'caption':
1265
- this.context = { $implicit: this.item() };
1266
- this.contentTemplate = this.galleria.captionTemplate() || this.getTemplateFromQueryList('caption');
1267
- break;
1268
- case 'thumbnail':
1269
- this.context = { $implicit: this.item() };
1270
- this.contentTemplate = this.galleria._thumbnailTemplate() || this.getTemplateFromQueryList('thumbnail');
1271
- break;
1272
- case 'indicator':
1273
- this.context = { $implicit: this.index() };
1274
- this.contentTemplate = this.galleria.indicatorTemplate() || this.getTemplateFromQueryList('indicator');
1275
- break;
1276
- case 'footer':
1277
- this.context = { $implicit: this.item() };
1278
- this.contentTemplate = this.galleria.footerTemplate() || this.getTemplateFromQueryList('footer');
1279
- break;
1280
- default:
1281
- this.context = { $implicit: this.item() };
1282
- this.contentTemplate = this.galleria._itemTemplate() || this.getTemplateFromQueryList('item');
1283
- }
1284
- }
1285
- type = input(/* @ts-ignore */
1286
- ...(ngDevMode ? [undefined, { debugName: "type" }] : /* istanbul ignore next */ []));
1287
- contentTemplate;
1288
- context;
1289
- onAfterContentInit() {
1290
- const templates = this.templates();
1291
- if (templates && templates.length > 0) {
1292
- templates?.forEach((item) => {
1293
- const type = this.type();
1294
- if (item.getType() === type) {
1295
- switch (type) {
1296
- case 'item':
1297
- case 'caption':
1298
- case 'thumbnail':
1299
- this.context = { $implicit: this.item() };
1300
- this.contentTemplate = item.template;
1301
- break;
1302
- case 'indicator':
1303
- this.context = { $implicit: this.index() };
1304
- this.contentTemplate = item.template;
1305
- break;
1306
- case 'footer':
1307
- this.context = { $implicit: this.item() };
1308
- this.contentTemplate = item.template;
1309
- break;
1310
- default:
1311
- this.context = { $implicit: this.item() };
1312
- this.contentTemplate = item.template;
1313
- break;
1314
- }
1315
- }
1316
- });
1317
- }
1318
- else {
1319
- this.getContentTemplate();
1320
- }
1321
- }
1322
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: GalleriaItemSlot, deps: null, target: i0.ɵɵFactoryTarget.Component });
1323
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: GalleriaItemSlot, isStandalone: false, selector: "div[hGalleriaItemSlot]", inputs: { templates: { classPropertyName: "templates", publicName: "templates", isSignal: true, isRequired: false, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: false, transformFunction: null }, item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
584
+ const GALLERIA_INSTANCE = new InjectionToken("GALLERIA_INSTANCE");
585
+ var Galleria = class Galleria extends BaseComponent {
586
+ element;
587
+ componentName = "Galleria";
588
+ bindDirectiveInstance = inject(Bind, { self: true });
589
+ $pcGalleria = inject(GALLERIA_INSTANCE, {
590
+ optional: true,
591
+ skipSelf: true
592
+ }) ?? void 0;
593
+ onAfterViewChecked() {
594
+ this.bindDirectiveInstance.setAttrs(this.ptm("host"));
595
+ }
596
+ activeIndex = model(0, ...ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []);
597
+ fullScreen = input(false, {
598
+ ...ngDevMode ? { debugName: "fullScreen" } : /* istanbul ignore next */ {},
599
+ transform: booleanAttribute
600
+ });
601
+ id = input(...ngDevMode ? [void 0, { debugName: "id" }] : /* istanbul ignore next */ []);
602
+ value = input(...ngDevMode ? [void 0, { debugName: "value" }] : /* istanbul ignore next */ []);
603
+ numVisible = input(3, {
604
+ ...ngDevMode ? { debugName: "numVisible" } : /* istanbul ignore next */ {},
605
+ transform: numberAttribute
606
+ });
607
+ responsiveOptions = input(...ngDevMode ? [void 0, { debugName: "responsiveOptions" }] : /* istanbul ignore next */ []);
608
+ showItemNavigators = input(false, {
609
+ ...ngDevMode ? { debugName: "showItemNavigators" } : /* istanbul ignore next */ {},
610
+ transform: booleanAttribute
611
+ });
612
+ showThumbnailNavigators = input(true, {
613
+ ...ngDevMode ? { debugName: "showThumbnailNavigators" } : /* istanbul ignore next */ {},
614
+ transform: booleanAttribute
615
+ });
616
+ showItemNavigatorsOnHover = input(false, {
617
+ ...ngDevMode ? { debugName: "showItemNavigatorsOnHover" } : /* istanbul ignore next */ {},
618
+ transform: booleanAttribute
619
+ });
620
+ changeItemOnIndicatorHover = input(false, {
621
+ ...ngDevMode ? { debugName: "changeItemOnIndicatorHover" } : /* istanbul ignore next */ {},
622
+ transform: booleanAttribute
623
+ });
624
+ circular = input(false, {
625
+ ...ngDevMode ? { debugName: "circular" } : /* istanbul ignore next */ {},
626
+ transform: booleanAttribute
627
+ });
628
+ autoPlay = input(false, {
629
+ ...ngDevMode ? { debugName: "autoPlay" } : /* istanbul ignore next */ {},
630
+ transform: booleanAttribute
631
+ });
632
+ shouldStopAutoplayByClick = input(true, {
633
+ ...ngDevMode ? { debugName: "shouldStopAutoplayByClick" } : /* istanbul ignore next */ {},
634
+ transform: booleanAttribute
635
+ });
636
+ transitionInterval = input(4e3, {
637
+ ...ngDevMode ? { debugName: "transitionInterval" } : /* istanbul ignore next */ {},
638
+ transform: numberAttribute
639
+ });
640
+ showThumbnails = input(true, {
641
+ ...ngDevMode ? { debugName: "showThumbnails" } : /* istanbul ignore next */ {},
642
+ transform: booleanAttribute
643
+ });
644
+ thumbnailsPosition = input("bottom", ...ngDevMode ? [{ debugName: "thumbnailsPosition" }] : /* istanbul ignore next */ []);
645
+ verticalThumbnailViewPortHeight = input("300px", ...ngDevMode ? [{ debugName: "verticalThumbnailViewPortHeight" }] : /* istanbul ignore next */ []);
646
+ showIndicators = input(false, {
647
+ ...ngDevMode ? { debugName: "showIndicators" } : /* istanbul ignore next */ {},
648
+ transform: booleanAttribute
649
+ });
650
+ showIndicatorsOnItem = input(false, {
651
+ ...ngDevMode ? { debugName: "showIndicatorsOnItem" } : /* istanbul ignore next */ {},
652
+ transform: booleanAttribute
653
+ });
654
+ indicatorsPosition = input("bottom", ...ngDevMode ? [{ debugName: "indicatorsPosition" }] : /* istanbul ignore next */ []);
655
+ baseZIndex = input(0, {
656
+ ...ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {},
657
+ transform: numberAttribute
658
+ });
659
+ maskClass = input(...ngDevMode ? [void 0, { debugName: "maskClass" }] : /* istanbul ignore next */ []);
660
+ containerClass = input(...ngDevMode ? [void 0, { debugName: "containerClass" }] : /* istanbul ignore next */ []);
661
+ containerStyle = input(...ngDevMode ? [void 0, { debugName: "containerStyle" }] : /* istanbul ignore next */ []);
662
+ showTransitionOptions = input("150ms cubic-bezier(0, 0, 0.2, 1)", ...ngDevMode ? [{ debugName: "showTransitionOptions" }] : /* istanbul ignore next */ []);
663
+ hideTransitionOptions = input("150ms cubic-bezier(0, 0, 0.2, 1)", ...ngDevMode ? [{ debugName: "hideTransitionOptions" }] : /* istanbul ignore next */ []);
664
+ motionOptions = input(void 0, ...ngDevMode ? [{ debugName: "motionOptions" }] : /* istanbul ignore next */ []);
665
+ computedMotionOptions = computed(() => {
666
+ return {
667
+ ...this.ptm("motion"),
668
+ ...this.motionOptions()
669
+ };
670
+ }, ...ngDevMode ? [{ debugName: "computedMotionOptions" }] : /* istanbul ignore next */ []);
671
+ maskMotionOptions = input(void 0, ...ngDevMode ? [{ debugName: "maskMotionOptions" }] : /* istanbul ignore next */ []);
672
+ computedMaskMotionOptions = computed(() => {
673
+ return {
674
+ ...this.ptm("maskMotion"),
675
+ ...this.maskMotionOptions()
676
+ };
677
+ }, ...ngDevMode ? [{ debugName: "computedMaskMotionOptions" }] : /* istanbul ignore next */ []);
678
+ visible = model(false, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
679
+ _visibleEffect = effect(() => {
680
+ if (this.visible() && !this.maskVisible) {
681
+ this.maskVisible = true;
682
+ this.renderMask.set(true);
683
+ this.renderContent.set(true);
684
+ } else if (!this.visible() && this.maskVisible) this.maskVisible = false;
685
+ }, ...ngDevMode ? [{ debugName: "_visibleEffect" }] : /* istanbul ignore next */ []);
686
+ renderMask = signal(false, ...ngDevMode ? [{ debugName: "renderMask" }] : /* istanbul ignore next */ []);
687
+ renderContent = signal(false, ...ngDevMode ? [{ debugName: "renderContent" }] : /* istanbul ignore next */ []);
688
+ container = viewChild("container", ...ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []);
689
+ headerTemplate = contentChild("header", {
690
+ ...ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {},
691
+ descendants: false
692
+ });
693
+ headerFacet;
694
+ footerTemplate = contentChild("footer", {
695
+ ...ngDevMode ? { debugName: "footerTemplate" } : /* istanbul ignore next */ {},
696
+ descendants: false
697
+ });
698
+ footerFacet;
699
+ indicatorTemplate = contentChild("indicator", {
700
+ ...ngDevMode ? { debugName: "indicatorTemplate" } : /* istanbul ignore next */ {},
701
+ descendants: false
702
+ });
703
+ indicatorFacet;
704
+ captionTemplate = contentChild("caption", {
705
+ ...ngDevMode ? { debugName: "captionTemplate" } : /* istanbul ignore next */ {},
706
+ descendants: false
707
+ });
708
+ captionFacet;
709
+ _closeIconTemplate = contentChild("closeicon", {
710
+ ...ngDevMode ? { debugName: "_closeIconTemplate" } : /* istanbul ignore next */ {},
711
+ descendants: false
712
+ });
713
+ closeIconTemplate;
714
+ _previousThumbnailIconTemplate = contentChild("previousthumbnailicon", {
715
+ ...ngDevMode ? { debugName: "_previousThumbnailIconTemplate" } : /* istanbul ignore next */ {},
716
+ descendants: false
717
+ });
718
+ previousThumbnailIconTemplate;
719
+ _nextThumbnailIconTemplate = contentChild("nextthumbnailicon", {
720
+ ...ngDevMode ? { debugName: "_nextThumbnailIconTemplate" } : /* istanbul ignore next */ {},
721
+ descendants: false
722
+ });
723
+ nextThumbnailIconTemplate;
724
+ _itemPreviousIconTemplate = contentChild("itempreviousicon", {
725
+ ...ngDevMode ? { debugName: "_itemPreviousIconTemplate" } : /* istanbul ignore next */ {},
726
+ descendants: false
727
+ });
728
+ itemPreviousIconTemplate;
729
+ _itemNextIconTemplate = contentChild("itemnexticon", {
730
+ ...ngDevMode ? { debugName: "_itemNextIconTemplate" } : /* istanbul ignore next */ {},
731
+ descendants: false
732
+ });
733
+ itemNextIconTemplate;
734
+ _itemTemplate = contentChild("item", {
735
+ ...ngDevMode ? { debugName: "_itemTemplate" } : /* istanbul ignore next */ {},
736
+ descendants: false
737
+ });
738
+ itemTemplate;
739
+ _thumbnailTemplate = contentChild("thumbnail", {
740
+ ...ngDevMode ? { debugName: "_thumbnailTemplate" } : /* istanbul ignore next */ {},
741
+ descendants: false
742
+ });
743
+ thumbnailTemplate;
744
+ maskVisible = false;
745
+ numVisibleLimit = 0;
746
+ _componentStyle = inject(GalleriaStyle);
747
+ mask;
748
+ templates = contentChildren(HelixTemplate, ...ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []);
749
+ constructor(element) {
750
+ super();
751
+ this.element = element;
752
+ }
753
+ onAfterContentInit() {
754
+ this.templates().forEach((item) => {
755
+ switch (item.getType()) {
756
+ case "header":
757
+ this.headerFacet = item.template;
758
+ break;
759
+ case "footer":
760
+ this.footerFacet = item.template;
761
+ break;
762
+ case "indicator":
763
+ this.indicatorFacet = item.template;
764
+ break;
765
+ case "closeicon":
766
+ this.closeIconTemplate = item.template;
767
+ break;
768
+ case "itemnexticon":
769
+ this.itemNextIconTemplate = item.template;
770
+ break;
771
+ case "itempreviousicon":
772
+ this.itemPreviousIconTemplate = item.template;
773
+ break;
774
+ case "previousthumbnailicon":
775
+ this.previousThumbnailIconTemplate = item.template;
776
+ break;
777
+ case "nextthumbnailicon":
778
+ this.nextThumbnailIconTemplate = item.template;
779
+ break;
780
+ case "caption":
781
+ this.captionFacet = item.template;
782
+ break;
783
+ case "item":
784
+ this.itemTemplate = item.template;
785
+ break;
786
+ case "thumbnail":
787
+ this.thumbnailTemplate = item.template;
788
+ break;
789
+ }
790
+ });
791
+ }
792
+ onChanges(simpleChanges) {
793
+ if (simpleChanges.value && simpleChanges.value.currentValue?.length < this.numVisible()) this.numVisibleLimit = simpleChanges.value.currentValue.length;
794
+ else this.numVisibleLimit = 0;
795
+ }
796
+ onMaskHide(event) {
797
+ if (!event || event.target === event.currentTarget) this.visible.set(false);
798
+ }
799
+ onActiveItemChange(index) {
800
+ if (this.activeIndex() !== index) this.activeIndex.set(index);
801
+ }
802
+ onBeforeEnter(event) {
803
+ this.mask = event.element?.parentElement;
804
+ this.enableModality();
805
+ setTimeout(() => {
806
+ const focusTarget = findSingle(this.container()?.nativeElement, "[data-pc-section=\"closebutton\"]");
807
+ if (focusTarget) focus(focusTarget);
808
+ }, 25);
809
+ }
810
+ onBeforeLeave() {
811
+ if (this.mask) this.maskVisible = false;
812
+ }
813
+ onAfterLeave() {
814
+ this.disableModality();
815
+ this.renderContent.set(false);
816
+ }
817
+ onMaskAfterLeave() {
818
+ if (!this.renderContent()) this.renderMask.set(false);
819
+ }
820
+ enableModality() {
821
+ blockBodyScroll();
822
+ this.cd.markForCheck();
823
+ if (this.mask) ZIndexUtils.set("modal", this.mask, this.baseZIndex() || this.config.zIndex.modal);
824
+ }
825
+ disableModality() {
826
+ unblockBodyScroll();
827
+ this.cd.markForCheck();
828
+ if (this.mask) ZIndexUtils.clear(this.mask);
829
+ }
830
+ onDestroy() {
831
+ if (this.fullScreen()) removeClass(this.document.body, "h-overflow-hidden");
832
+ if (this.mask) this.disableModality();
833
+ }
834
+ static ɵfac = i0.ɵɵngDeclareFactory({
835
+ minVersion: "12.0.0",
836
+ version: "22.2.1",
837
+ ngImport: i0,
838
+ type: Galleria,
839
+ deps: [{ token: i0.ElementRef }],
840
+ target: i0.ɵɵFactoryTarget.Component
841
+ });
842
+ static ɵcmp = i0.ɵɵngDeclareComponent({
843
+ minVersion: "17.0.0",
844
+ version: "22.2.1",
845
+ type: Galleria,
846
+ isStandalone: false,
847
+ selector: "h-galleria",
848
+ inputs: {
849
+ activeIndex: {
850
+ classPropertyName: "activeIndex",
851
+ publicName: "activeIndex",
852
+ isSignal: true,
853
+ isRequired: false,
854
+ transformFunction: null
855
+ },
856
+ fullScreen: {
857
+ classPropertyName: "fullScreen",
858
+ publicName: "fullScreen",
859
+ isSignal: true,
860
+ isRequired: false,
861
+ transformFunction: null
862
+ },
863
+ id: {
864
+ classPropertyName: "id",
865
+ publicName: "id",
866
+ isSignal: true,
867
+ isRequired: false,
868
+ transformFunction: null
869
+ },
870
+ value: {
871
+ classPropertyName: "value",
872
+ publicName: "value",
873
+ isSignal: true,
874
+ isRequired: false,
875
+ transformFunction: null
876
+ },
877
+ numVisible: {
878
+ classPropertyName: "numVisible",
879
+ publicName: "numVisible",
880
+ isSignal: true,
881
+ isRequired: false,
882
+ transformFunction: null
883
+ },
884
+ responsiveOptions: {
885
+ classPropertyName: "responsiveOptions",
886
+ publicName: "responsiveOptions",
887
+ isSignal: true,
888
+ isRequired: false,
889
+ transformFunction: null
890
+ },
891
+ showItemNavigators: {
892
+ classPropertyName: "showItemNavigators",
893
+ publicName: "showItemNavigators",
894
+ isSignal: true,
895
+ isRequired: false,
896
+ transformFunction: null
897
+ },
898
+ showThumbnailNavigators: {
899
+ classPropertyName: "showThumbnailNavigators",
900
+ publicName: "showThumbnailNavigators",
901
+ isSignal: true,
902
+ isRequired: false,
903
+ transformFunction: null
904
+ },
905
+ showItemNavigatorsOnHover: {
906
+ classPropertyName: "showItemNavigatorsOnHover",
907
+ publicName: "showItemNavigatorsOnHover",
908
+ isSignal: true,
909
+ isRequired: false,
910
+ transformFunction: null
911
+ },
912
+ changeItemOnIndicatorHover: {
913
+ classPropertyName: "changeItemOnIndicatorHover",
914
+ publicName: "changeItemOnIndicatorHover",
915
+ isSignal: true,
916
+ isRequired: false,
917
+ transformFunction: null
918
+ },
919
+ circular: {
920
+ classPropertyName: "circular",
921
+ publicName: "circular",
922
+ isSignal: true,
923
+ isRequired: false,
924
+ transformFunction: null
925
+ },
926
+ autoPlay: {
927
+ classPropertyName: "autoPlay",
928
+ publicName: "autoPlay",
929
+ isSignal: true,
930
+ isRequired: false,
931
+ transformFunction: null
932
+ },
933
+ shouldStopAutoplayByClick: {
934
+ classPropertyName: "shouldStopAutoplayByClick",
935
+ publicName: "shouldStopAutoplayByClick",
936
+ isSignal: true,
937
+ isRequired: false,
938
+ transformFunction: null
939
+ },
940
+ transitionInterval: {
941
+ classPropertyName: "transitionInterval",
942
+ publicName: "transitionInterval",
943
+ isSignal: true,
944
+ isRequired: false,
945
+ transformFunction: null
946
+ },
947
+ showThumbnails: {
948
+ classPropertyName: "showThumbnails",
949
+ publicName: "showThumbnails",
950
+ isSignal: true,
951
+ isRequired: false,
952
+ transformFunction: null
953
+ },
954
+ thumbnailsPosition: {
955
+ classPropertyName: "thumbnailsPosition",
956
+ publicName: "thumbnailsPosition",
957
+ isSignal: true,
958
+ isRequired: false,
959
+ transformFunction: null
960
+ },
961
+ verticalThumbnailViewPortHeight: {
962
+ classPropertyName: "verticalThumbnailViewPortHeight",
963
+ publicName: "verticalThumbnailViewPortHeight",
964
+ isSignal: true,
965
+ isRequired: false,
966
+ transformFunction: null
967
+ },
968
+ showIndicators: {
969
+ classPropertyName: "showIndicators",
970
+ publicName: "showIndicators",
971
+ isSignal: true,
972
+ isRequired: false,
973
+ transformFunction: null
974
+ },
975
+ showIndicatorsOnItem: {
976
+ classPropertyName: "showIndicatorsOnItem",
977
+ publicName: "showIndicatorsOnItem",
978
+ isSignal: true,
979
+ isRequired: false,
980
+ transformFunction: null
981
+ },
982
+ indicatorsPosition: {
983
+ classPropertyName: "indicatorsPosition",
984
+ publicName: "indicatorsPosition",
985
+ isSignal: true,
986
+ isRequired: false,
987
+ transformFunction: null
988
+ },
989
+ baseZIndex: {
990
+ classPropertyName: "baseZIndex",
991
+ publicName: "baseZIndex",
992
+ isSignal: true,
993
+ isRequired: false,
994
+ transformFunction: null
995
+ },
996
+ maskClass: {
997
+ classPropertyName: "maskClass",
998
+ publicName: "maskClass",
999
+ isSignal: true,
1000
+ isRequired: false,
1001
+ transformFunction: null
1002
+ },
1003
+ containerClass: {
1004
+ classPropertyName: "containerClass",
1005
+ publicName: "containerClass",
1006
+ isSignal: true,
1007
+ isRequired: false,
1008
+ transformFunction: null
1009
+ },
1010
+ containerStyle: {
1011
+ classPropertyName: "containerStyle",
1012
+ publicName: "containerStyle",
1013
+ isSignal: true,
1014
+ isRequired: false,
1015
+ transformFunction: null
1016
+ },
1017
+ showTransitionOptions: {
1018
+ classPropertyName: "showTransitionOptions",
1019
+ publicName: "showTransitionOptions",
1020
+ isSignal: true,
1021
+ isRequired: false,
1022
+ transformFunction: null
1023
+ },
1024
+ hideTransitionOptions: {
1025
+ classPropertyName: "hideTransitionOptions",
1026
+ publicName: "hideTransitionOptions",
1027
+ isSignal: true,
1028
+ isRequired: false,
1029
+ transformFunction: null
1030
+ },
1031
+ motionOptions: {
1032
+ classPropertyName: "motionOptions",
1033
+ publicName: "motionOptions",
1034
+ isSignal: true,
1035
+ isRequired: false,
1036
+ transformFunction: null
1037
+ },
1038
+ maskMotionOptions: {
1039
+ classPropertyName: "maskMotionOptions",
1040
+ publicName: "maskMotionOptions",
1041
+ isSignal: true,
1042
+ isRequired: false,
1043
+ transformFunction: null
1044
+ },
1045
+ visible: {
1046
+ classPropertyName: "visible",
1047
+ publicName: "visible",
1048
+ isSignal: true,
1049
+ isRequired: false,
1050
+ transformFunction: null
1051
+ }
1052
+ },
1053
+ outputs: {
1054
+ activeIndex: "activeIndexChange",
1055
+ visible: "visibleChange"
1056
+ },
1057
+ providers: [
1058
+ GalleriaStyle,
1059
+ {
1060
+ provide: GALLERIA_INSTANCE,
1061
+ useExisting: Galleria
1062
+ },
1063
+ {
1064
+ provide: PARENT_INSTANCE,
1065
+ useExisting: Galleria
1066
+ }
1067
+ ],
1068
+ queries: [
1069
+ {
1070
+ propertyName: "headerTemplate",
1071
+ first: true,
1072
+ predicate: ["header"],
1073
+ isSignal: true
1074
+ },
1075
+ {
1076
+ propertyName: "footerTemplate",
1077
+ first: true,
1078
+ predicate: ["footer"],
1079
+ isSignal: true
1080
+ },
1081
+ {
1082
+ propertyName: "indicatorTemplate",
1083
+ first: true,
1084
+ predicate: ["indicator"],
1085
+ isSignal: true
1086
+ },
1087
+ {
1088
+ propertyName: "captionTemplate",
1089
+ first: true,
1090
+ predicate: ["caption"],
1091
+ isSignal: true
1092
+ },
1093
+ {
1094
+ propertyName: "_closeIconTemplate",
1095
+ first: true,
1096
+ predicate: ["closeicon"],
1097
+ isSignal: true
1098
+ },
1099
+ {
1100
+ propertyName: "_previousThumbnailIconTemplate",
1101
+ first: true,
1102
+ predicate: ["previousthumbnailicon"],
1103
+ isSignal: true
1104
+ },
1105
+ {
1106
+ propertyName: "_nextThumbnailIconTemplate",
1107
+ first: true,
1108
+ predicate: ["nextthumbnailicon"],
1109
+ isSignal: true
1110
+ },
1111
+ {
1112
+ propertyName: "_itemPreviousIconTemplate",
1113
+ first: true,
1114
+ predicate: ["itempreviousicon"],
1115
+ isSignal: true
1116
+ },
1117
+ {
1118
+ propertyName: "_itemNextIconTemplate",
1119
+ first: true,
1120
+ predicate: ["itemnexticon"],
1121
+ isSignal: true
1122
+ },
1123
+ {
1124
+ propertyName: "_itemTemplate",
1125
+ first: true,
1126
+ predicate: ["item"],
1127
+ isSignal: true
1128
+ },
1129
+ {
1130
+ propertyName: "_thumbnailTemplate",
1131
+ first: true,
1132
+ predicate: ["thumbnail"],
1133
+ isSignal: true
1134
+ },
1135
+ {
1136
+ propertyName: "templates",
1137
+ predicate: HelixTemplate,
1138
+ isSignal: true
1139
+ }
1140
+ ],
1141
+ viewQueries: [{
1142
+ propertyName: "container",
1143
+ first: true,
1144
+ predicate: ["container"],
1145
+ descendants: true,
1146
+ isSignal: true
1147
+ }],
1148
+ usesInheritance: true,
1149
+ hostDirectives: [{ directive: i1.Bind }],
1150
+ ngImport: i0,
1151
+ template: "@if (fullScreen()) {\n <div #container>\n @if (renderMask()) {\n <div\n [hBind]=\"ptm('mask')\"\n [hMotion]=\"maskVisible\"\n [pMotionAppear]=\"true\"\n [pMotionEnterActiveClass]=\"fullScreen() ? 'h-overlay-mask-enter-active' : ''\"\n [pMotionLeaveActiveClass]=\"fullScreen() ? 'h-overlay-mask-leave-active' : ''\"\n [pMotionOptions]=\"computedMaskMotionOptions()\"\n (pMotionOnAfterLeave)=\"onMaskAfterLeave()\"\n [ngClass]=\"cx('mask')\"\n [class]=\"maskClass()\"\n [attr.role]=\"fullScreen() ? 'dialog' : 'region'\"\n [attr.aria-modal]=\"fullScreen() ? 'true' : undefined\"\n (click)=\"onMaskHide($event)\"\n >\n @if (renderContent()) {\n <div\n hGalleriaContent\n [hMotion]=\"visible()\"\n [pMotionAppear]=\"true\"\n [pMotionName]=\"'h-galleria'\"\n [pMotionOptions]=\"computedMotionOptions()\"\n (pMotionOnBeforeEnter)=\"onBeforeEnter($event)\"\n (pMotionOnBeforeLeave)=\"onBeforeLeave()\"\n (pMotionOnAfterLeave)=\"onAfterLeave()\"\n [value]=\"value()\"\n [activeIndex]=\"activeIndex()\"\n [numVisible]=\"numVisibleLimit || numVisible()\"\n (maskHide)=\"onMaskHide()\"\n (activeItemChange)=\"onActiveItemChange($event)\"\n [ngStyle]=\"containerStyle()\"\n [fullScreen]=\"fullScreen()\"\n [pt]=\"pt()\"\n hFocusTrap\n [pFocusTrapDisabled]=\"!fullScreen()\"\n [unstyled]=\"unstyled()\"\n ></div>\n }\n </div>\n }\n </div>\n} @else {\n <div hGalleriaContent [pt]=\"pt()\" [unstyled]=\"unstyled()\" [value]=\"value()\" [activeIndex]=\"activeIndex()\" [numVisible]=\"numVisibleLimit || numVisible()\" (activeItemChange)=\"onActiveItemChange($event)\"></div>\n}\n",
1152
+ dependencies: [
1153
+ {
1154
+ kind: "directive",
1155
+ type: i0.forwardRef(() => i2.NgClass),
1156
+ selector: "[ngClass]",
1157
+ inputs: ["class", "ngClass"]
1158
+ },
1159
+ {
1160
+ kind: "directive",
1161
+ type: i0.forwardRef(() => i2.NgStyle),
1162
+ selector: "[ngStyle]",
1163
+ inputs: ["ngStyle"]
1164
+ },
1165
+ {
1166
+ kind: "directive",
1167
+ type: i0.forwardRef(() => FocusTrap),
1168
+ selector: "[hFocusTrap]",
1169
+ inputs: ["pFocusTrapDisabled"]
1170
+ },
1171
+ {
1172
+ kind: "directive",
1173
+ type: i0.forwardRef(() => i1.Bind),
1174
+ selector: "[hBind]",
1175
+ inputs: ["hBind"]
1176
+ },
1177
+ {
1178
+ kind: "directive",
1179
+ type: i0.forwardRef(() => i3.MotionDirective),
1180
+ selector: "[hMotion]",
1181
+ inputs: [
1182
+ "hMotion",
1183
+ "pMotionName",
1184
+ "pMotionType",
1185
+ "pMotionSafe",
1186
+ "pMotionDisabled",
1187
+ "pMotionAppear",
1188
+ "pMotionEnter",
1189
+ "pMotionLeave",
1190
+ "pMotionDuration",
1191
+ "pMotionHideStrategy",
1192
+ "pMotionEnterFromClass",
1193
+ "pMotionEnterToClass",
1194
+ "pMotionEnterActiveClass",
1195
+ "pMotionLeaveFromClass",
1196
+ "pMotionLeaveToClass",
1197
+ "pMotionLeaveActiveClass",
1198
+ "pMotionOptions"
1199
+ ],
1200
+ outputs: [
1201
+ "pMotionOnBeforeEnter",
1202
+ "pMotionOnEnter",
1203
+ "pMotionOnAfterEnter",
1204
+ "pMotionOnEnterCancelled",
1205
+ "pMotionOnBeforeLeave",
1206
+ "pMotionOnLeave",
1207
+ "pMotionOnAfterLeave",
1208
+ "pMotionOnLeaveCancelled"
1209
+ ]
1210
+ },
1211
+ {
1212
+ kind: "component",
1213
+ type: i0.forwardRef(() => GalleriaContent),
1214
+ selector: "div[hGalleriaContent]",
1215
+ inputs: [
1216
+ "activeIndex",
1217
+ "value",
1218
+ "numVisible",
1219
+ "fullScreen"
1220
+ ],
1221
+ outputs: ["maskHide", "activeItemChange"]
1222
+ }
1223
+ ],
1224
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1225
+ encapsulation: i0.ViewEncapsulation.None
1226
+ });
1227
+ };
1228
+ i0.ɵɵngDeclareClassMetadata({
1229
+ minVersion: "12.0.0",
1230
+ version: "22.2.1",
1231
+ ngImport: i0,
1232
+ type: Galleria,
1233
+ decorators: [{
1234
+ type: Component,
1235
+ args: [{
1236
+ selector: "h-galleria",
1237
+ standalone: false,
1238
+ changeDetection: ChangeDetectionStrategy.OnPush,
1239
+ encapsulation: ViewEncapsulation.None,
1240
+ providers: [
1241
+ GalleriaStyle,
1242
+ {
1243
+ provide: GALLERIA_INSTANCE,
1244
+ useExisting: Galleria
1245
+ },
1246
+ {
1247
+ provide: PARENT_INSTANCE,
1248
+ useExisting: Galleria
1249
+ }
1250
+ ],
1251
+ hostDirectives: [Bind],
1252
+ template: "@if (fullScreen()) {\n <div #container>\n @if (renderMask()) {\n <div\n [hBind]=\"ptm('mask')\"\n [hMotion]=\"maskVisible\"\n [pMotionAppear]=\"true\"\n [pMotionEnterActiveClass]=\"fullScreen() ? 'h-overlay-mask-enter-active' : ''\"\n [pMotionLeaveActiveClass]=\"fullScreen() ? 'h-overlay-mask-leave-active' : ''\"\n [pMotionOptions]=\"computedMaskMotionOptions()\"\n (pMotionOnAfterLeave)=\"onMaskAfterLeave()\"\n [ngClass]=\"cx('mask')\"\n [class]=\"maskClass()\"\n [attr.role]=\"fullScreen() ? 'dialog' : 'region'\"\n [attr.aria-modal]=\"fullScreen() ? 'true' : undefined\"\n (click)=\"onMaskHide($event)\"\n >\n @if (renderContent()) {\n <div\n hGalleriaContent\n [hMotion]=\"visible()\"\n [pMotionAppear]=\"true\"\n [pMotionName]=\"'h-galleria'\"\n [pMotionOptions]=\"computedMotionOptions()\"\n (pMotionOnBeforeEnter)=\"onBeforeEnter($event)\"\n (pMotionOnBeforeLeave)=\"onBeforeLeave()\"\n (pMotionOnAfterLeave)=\"onAfterLeave()\"\n [value]=\"value()\"\n [activeIndex]=\"activeIndex()\"\n [numVisible]=\"numVisibleLimit || numVisible()\"\n (maskHide)=\"onMaskHide()\"\n (activeItemChange)=\"onActiveItemChange($event)\"\n [ngStyle]=\"containerStyle()\"\n [fullScreen]=\"fullScreen()\"\n [pt]=\"pt()\"\n hFocusTrap\n [pFocusTrapDisabled]=\"!fullScreen()\"\n [unstyled]=\"unstyled()\"\n ></div>\n }\n </div>\n }\n </div>\n} @else {\n <div hGalleriaContent [pt]=\"pt()\" [unstyled]=\"unstyled()\" [value]=\"value()\" [activeIndex]=\"activeIndex()\" [numVisible]=\"numVisibleLimit || numVisible()\" (activeItemChange)=\"onActiveItemChange($event)\"></div>\n}\n"
1253
+ }]
1254
+ }],
1255
+ ctorParameters: () => [{ type: i0.ElementRef }],
1256
+ propDecorators: {
1257
+ activeIndex: [{
1258
+ type: i0.Input,
1259
+ args: [{
1260
+ isSignal: true,
1261
+ alias: "activeIndex",
1262
+ required: false
1263
+ }]
1264
+ }, {
1265
+ type: i0.Output,
1266
+ args: ["activeIndexChange"]
1267
+ }],
1268
+ fullScreen: [{
1269
+ type: i0.Input,
1270
+ args: [{
1271
+ isSignal: true,
1272
+ alias: "fullScreen",
1273
+ required: false
1274
+ }]
1275
+ }],
1276
+ id: [{
1277
+ type: i0.Input,
1278
+ args: [{
1279
+ isSignal: true,
1280
+ alias: "id",
1281
+ required: false
1282
+ }]
1283
+ }],
1284
+ value: [{
1285
+ type: i0.Input,
1286
+ args: [{
1287
+ isSignal: true,
1288
+ alias: "value",
1289
+ required: false
1290
+ }]
1291
+ }],
1292
+ numVisible: [{
1293
+ type: i0.Input,
1294
+ args: [{
1295
+ isSignal: true,
1296
+ alias: "numVisible",
1297
+ required: false
1298
+ }]
1299
+ }],
1300
+ responsiveOptions: [{
1301
+ type: i0.Input,
1302
+ args: [{
1303
+ isSignal: true,
1304
+ alias: "responsiveOptions",
1305
+ required: false
1306
+ }]
1307
+ }],
1308
+ showItemNavigators: [{
1309
+ type: i0.Input,
1310
+ args: [{
1311
+ isSignal: true,
1312
+ alias: "showItemNavigators",
1313
+ required: false
1314
+ }]
1315
+ }],
1316
+ showThumbnailNavigators: [{
1317
+ type: i0.Input,
1318
+ args: [{
1319
+ isSignal: true,
1320
+ alias: "showThumbnailNavigators",
1321
+ required: false
1322
+ }]
1323
+ }],
1324
+ showItemNavigatorsOnHover: [{
1325
+ type: i0.Input,
1326
+ args: [{
1327
+ isSignal: true,
1328
+ alias: "showItemNavigatorsOnHover",
1329
+ required: false
1330
+ }]
1331
+ }],
1332
+ changeItemOnIndicatorHover: [{
1333
+ type: i0.Input,
1334
+ args: [{
1335
+ isSignal: true,
1336
+ alias: "changeItemOnIndicatorHover",
1337
+ required: false
1338
+ }]
1339
+ }],
1340
+ circular: [{
1341
+ type: i0.Input,
1342
+ args: [{
1343
+ isSignal: true,
1344
+ alias: "circular",
1345
+ required: false
1346
+ }]
1347
+ }],
1348
+ autoPlay: [{
1349
+ type: i0.Input,
1350
+ args: [{
1351
+ isSignal: true,
1352
+ alias: "autoPlay",
1353
+ required: false
1354
+ }]
1355
+ }],
1356
+ shouldStopAutoplayByClick: [{
1357
+ type: i0.Input,
1358
+ args: [{
1359
+ isSignal: true,
1360
+ alias: "shouldStopAutoplayByClick",
1361
+ required: false
1362
+ }]
1363
+ }],
1364
+ transitionInterval: [{
1365
+ type: i0.Input,
1366
+ args: [{
1367
+ isSignal: true,
1368
+ alias: "transitionInterval",
1369
+ required: false
1370
+ }]
1371
+ }],
1372
+ showThumbnails: [{
1373
+ type: i0.Input,
1374
+ args: [{
1375
+ isSignal: true,
1376
+ alias: "showThumbnails",
1377
+ required: false
1378
+ }]
1379
+ }],
1380
+ thumbnailsPosition: [{
1381
+ type: i0.Input,
1382
+ args: [{
1383
+ isSignal: true,
1384
+ alias: "thumbnailsPosition",
1385
+ required: false
1386
+ }]
1387
+ }],
1388
+ verticalThumbnailViewPortHeight: [{
1389
+ type: i0.Input,
1390
+ args: [{
1391
+ isSignal: true,
1392
+ alias: "verticalThumbnailViewPortHeight",
1393
+ required: false
1394
+ }]
1395
+ }],
1396
+ showIndicators: [{
1397
+ type: i0.Input,
1398
+ args: [{
1399
+ isSignal: true,
1400
+ alias: "showIndicators",
1401
+ required: false
1402
+ }]
1403
+ }],
1404
+ showIndicatorsOnItem: [{
1405
+ type: i0.Input,
1406
+ args: [{
1407
+ isSignal: true,
1408
+ alias: "showIndicatorsOnItem",
1409
+ required: false
1410
+ }]
1411
+ }],
1412
+ indicatorsPosition: [{
1413
+ type: i0.Input,
1414
+ args: [{
1415
+ isSignal: true,
1416
+ alias: "indicatorsPosition",
1417
+ required: false
1418
+ }]
1419
+ }],
1420
+ baseZIndex: [{
1421
+ type: i0.Input,
1422
+ args: [{
1423
+ isSignal: true,
1424
+ alias: "baseZIndex",
1425
+ required: false
1426
+ }]
1427
+ }],
1428
+ maskClass: [{
1429
+ type: i0.Input,
1430
+ args: [{
1431
+ isSignal: true,
1432
+ alias: "maskClass",
1433
+ required: false
1434
+ }]
1435
+ }],
1436
+ containerClass: [{
1437
+ type: i0.Input,
1438
+ args: [{
1439
+ isSignal: true,
1440
+ alias: "containerClass",
1441
+ required: false
1442
+ }]
1443
+ }],
1444
+ containerStyle: [{
1445
+ type: i0.Input,
1446
+ args: [{
1447
+ isSignal: true,
1448
+ alias: "containerStyle",
1449
+ required: false
1450
+ }]
1451
+ }],
1452
+ showTransitionOptions: [{
1453
+ type: i0.Input,
1454
+ args: [{
1455
+ isSignal: true,
1456
+ alias: "showTransitionOptions",
1457
+ required: false
1458
+ }]
1459
+ }],
1460
+ hideTransitionOptions: [{
1461
+ type: i0.Input,
1462
+ args: [{
1463
+ isSignal: true,
1464
+ alias: "hideTransitionOptions",
1465
+ required: false
1466
+ }]
1467
+ }],
1468
+ motionOptions: [{
1469
+ type: i0.Input,
1470
+ args: [{
1471
+ isSignal: true,
1472
+ alias: "motionOptions",
1473
+ required: false
1474
+ }]
1475
+ }],
1476
+ maskMotionOptions: [{
1477
+ type: i0.Input,
1478
+ args: [{
1479
+ isSignal: true,
1480
+ alias: "maskMotionOptions",
1481
+ required: false
1482
+ }]
1483
+ }],
1484
+ visible: [{
1485
+ type: i0.Input,
1486
+ args: [{
1487
+ isSignal: true,
1488
+ alias: "visible",
1489
+ required: false
1490
+ }]
1491
+ }, {
1492
+ type: i0.Output,
1493
+ args: ["visibleChange"]
1494
+ }],
1495
+ container: [{
1496
+ type: i0.ViewChild,
1497
+ args: ["container", { isSignal: true }]
1498
+ }],
1499
+ headerTemplate: [{
1500
+ type: i0.ContentChild,
1501
+ args: ["header", {
1502
+ descendants: false,
1503
+ isSignal: true
1504
+ }]
1505
+ }],
1506
+ footerTemplate: [{
1507
+ type: i0.ContentChild,
1508
+ args: ["footer", {
1509
+ descendants: false,
1510
+ isSignal: true
1511
+ }]
1512
+ }],
1513
+ indicatorTemplate: [{
1514
+ type: i0.ContentChild,
1515
+ args: ["indicator", {
1516
+ descendants: false,
1517
+ isSignal: true
1518
+ }]
1519
+ }],
1520
+ captionTemplate: [{
1521
+ type: i0.ContentChild,
1522
+ args: ["caption", {
1523
+ descendants: false,
1524
+ isSignal: true
1525
+ }]
1526
+ }],
1527
+ _closeIconTemplate: [{
1528
+ type: i0.ContentChild,
1529
+ args: ["closeicon", {
1530
+ descendants: false,
1531
+ isSignal: true
1532
+ }]
1533
+ }],
1534
+ _previousThumbnailIconTemplate: [{
1535
+ type: i0.ContentChild,
1536
+ args: ["previousthumbnailicon", {
1537
+ descendants: false,
1538
+ isSignal: true
1539
+ }]
1540
+ }],
1541
+ _nextThumbnailIconTemplate: [{
1542
+ type: i0.ContentChild,
1543
+ args: ["nextthumbnailicon", {
1544
+ descendants: false,
1545
+ isSignal: true
1546
+ }]
1547
+ }],
1548
+ _itemPreviousIconTemplate: [{
1549
+ type: i0.ContentChild,
1550
+ args: ["itempreviousicon", {
1551
+ descendants: false,
1552
+ isSignal: true
1553
+ }]
1554
+ }],
1555
+ _itemNextIconTemplate: [{
1556
+ type: i0.ContentChild,
1557
+ args: ["itemnexticon", {
1558
+ descendants: false,
1559
+ isSignal: true
1560
+ }]
1561
+ }],
1562
+ _itemTemplate: [{
1563
+ type: i0.ContentChild,
1564
+ args: ["item", {
1565
+ descendants: false,
1566
+ isSignal: true
1567
+ }]
1568
+ }],
1569
+ _thumbnailTemplate: [{
1570
+ type: i0.ContentChild,
1571
+ args: ["thumbnail", {
1572
+ descendants: false,
1573
+ isSignal: true
1574
+ }]
1575
+ }],
1576
+ templates: [{
1577
+ type: i0.ContentChildren,
1578
+ args: [i0.forwardRef(() => HelixTemplate), { isSignal: true }]
1579
+ }]
1580
+ }
1581
+ });
1582
+ var GalleriaContent = class GalleriaContent extends BaseComponent {
1583
+ galleria;
1584
+ differs;
1585
+ hostName = "Galleria";
1586
+ bindDirectiveInstance = inject(Bind, { self: true });
1587
+ onAfterViewChecked() {
1588
+ this.bindDirectiveInstance.setAttrs(this.getPTOptions("root"));
1589
+ }
1590
+ activeIndex = input(0, ...ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []);
1591
+ _activeIndex = 0;
1592
+ value = input([], ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
1593
+ numVisible = input(void 0, {
1594
+ ...ngDevMode ? { debugName: "numVisible" } : /* istanbul ignore next */ {},
1595
+ transform: numberAttribute
1596
+ });
1597
+ fullScreen = input(false, {
1598
+ ...ngDevMode ? { debugName: "fullScreen" } : /* istanbul ignore next */ {},
1599
+ transform: booleanAttribute
1600
+ });
1601
+ _fullScreen = false;
1602
+ maskHide = output();
1603
+ activeItemChange = output();
1604
+ closeButton = viewChild("closeButton", ...ngDevMode ? [{ debugName: "closeButton" }] : /* istanbul ignore next */ []);
1605
+ _componentStyle = inject(GalleriaStyle);
1606
+ $pcGalleria = inject(GALLERIA_INSTANCE, {
1607
+ optional: true,
1608
+ skipSelf: true
1609
+ }) ?? void 0;
1610
+ id;
1611
+ slideShowActive = true;
1612
+ interval;
1613
+ styleClass;
1614
+ differ;
1615
+ constructor(galleria, differs) {
1616
+ super();
1617
+ this.galleria = galleria;
1618
+ this.differs = differs;
1619
+ this.id = this.galleria.id() || uuid("pn_id_");
1620
+ this.differ = this.differs.find(this.galleria).create();
1621
+ effect(() => {
1622
+ this._activeIndex = this.activeIndex();
1623
+ });
1624
+ effect(() => {
1625
+ this._fullScreen = this.fullScreen();
1626
+ });
1627
+ }
1628
+ handleFullscreenChange(event) {
1629
+ if (document?.fullscreenElement === this.el.nativeElement?.children[0]) this._fullScreen = true;
1630
+ else this._fullScreen = false;
1631
+ }
1632
+ onDoCheck() {
1633
+ if (isPlatformBrowser(this.galleria.platformId)) {
1634
+ const changes = this.differ.diff(this.galleria);
1635
+ if (changes && changes.forEachItem.length > 0) this.cd.markForCheck();
1636
+ }
1637
+ }
1638
+ shouldRenderFooter() {
1639
+ return this.galleria.footerFacet && this.galleria.templates().length > 0 || this.galleria.footerTemplate();
1640
+ }
1641
+ startSlideShow() {
1642
+ if (isPlatformBrowser(this.galleria.platformId)) {
1643
+ this.interval = setInterval(() => {
1644
+ let activeIndex = this.galleria.circular() && this.value().length - 1 === this._activeIndex ? 0 : this._activeIndex + 1;
1645
+ this.onActiveIndexChange(activeIndex);
1646
+ this._activeIndex = activeIndex;
1647
+ }, this.galleria.transitionInterval());
1648
+ this.slideShowActive = true;
1649
+ }
1650
+ }
1651
+ stopSlideShow() {
1652
+ if (this.galleria.autoPlay() && !this.galleria.shouldStopAutoplayByClick()) return;
1653
+ if (this.interval) clearInterval(this.interval);
1654
+ this.slideShowActive = false;
1655
+ }
1656
+ getPositionClass(preClassName, position) {
1657
+ const pos = [
1658
+ "top",
1659
+ "left",
1660
+ "bottom",
1661
+ "right"
1662
+ ].find((item) => item === position);
1663
+ return pos ? `${preClassName}-${pos}` : "";
1664
+ }
1665
+ isVertical() {
1666
+ const thumbnailsPosition = this.galleria.thumbnailsPosition();
1667
+ return thumbnailsPosition === "left" || thumbnailsPosition === "right";
1668
+ }
1669
+ onActiveIndexChange(index) {
1670
+ if (this._activeIndex !== index) {
1671
+ this._activeIndex = index;
1672
+ this.activeItemChange.emit(this._activeIndex);
1673
+ }
1674
+ }
1675
+ closeAriaLabel() {
1676
+ return this.config.translation.aria ? this.config.translation.aria.close : void 0;
1677
+ }
1678
+ getPTOptions(key) {
1679
+ return this.ptm(key, { context: {
1680
+ pt: this.pt(),
1681
+ unstyled: this.unstyled()
1682
+ } });
1683
+ }
1684
+ static ɵfac = i0.ɵɵngDeclareFactory({
1685
+ minVersion: "12.0.0",
1686
+ version: "22.2.1",
1687
+ ngImport: i0,
1688
+ type: GalleriaContent,
1689
+ deps: [{ token: Galleria }, { token: i0.KeyValueDiffers }],
1690
+ target: i0.ɵɵFactoryTarget.Component
1691
+ });
1692
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1693
+ minVersion: "17.0.0",
1694
+ version: "22.2.1",
1695
+ type: GalleriaContent,
1696
+ isStandalone: false,
1697
+ selector: "div[hGalleriaContent]",
1698
+ inputs: {
1699
+ activeIndex: {
1700
+ classPropertyName: "activeIndex",
1701
+ publicName: "activeIndex",
1702
+ isSignal: true,
1703
+ isRequired: false,
1704
+ transformFunction: null
1705
+ },
1706
+ value: {
1707
+ classPropertyName: "value",
1708
+ publicName: "value",
1709
+ isSignal: true,
1710
+ isRequired: false,
1711
+ transformFunction: null
1712
+ },
1713
+ numVisible: {
1714
+ classPropertyName: "numVisible",
1715
+ publicName: "numVisible",
1716
+ isSignal: true,
1717
+ isRequired: false,
1718
+ transformFunction: null
1719
+ },
1720
+ fullScreen: {
1721
+ classPropertyName: "fullScreen",
1722
+ publicName: "fullScreen",
1723
+ isSignal: true,
1724
+ isRequired: false,
1725
+ transformFunction: null
1726
+ }
1727
+ },
1728
+ outputs: {
1729
+ maskHide: "maskHide",
1730
+ activeItemChange: "activeItemChange"
1731
+ },
1732
+ host: {
1733
+ listeners: { "document:fullscreenchange": "handleFullscreenChange($event)" },
1734
+ properties: {
1735
+ "attr.id": "id",
1736
+ "attr.role": "\"region\"",
1737
+ "style": "!galleria.fullScreen() ? galleria.containerStyle() : {}",
1738
+ "class": "cn(cx('root'))"
1739
+ }
1740
+ },
1741
+ providers: [GalleriaStyle],
1742
+ viewQueries: [{
1743
+ propertyName: "closeButton",
1744
+ first: true,
1745
+ predicate: ["closeButton"],
1746
+ descendants: true,
1747
+ isSignal: true
1748
+ }],
1749
+ usesInheritance: true,
1750
+ hostDirectives: [{ directive: i1.Bind }],
1751
+ ngImport: i0,
1752
+ template: "@if (value() && value().length > 0) {\n @if (galleria.fullScreen()) {\n <button type=\"button\" [hBind]=\"getPTOptions('closeButton')\" [class]=\"cx('closeButton')\" (click)=\"maskHide.emit()\" [attr.aria-label]=\"closeAriaLabel()\">\n @if (!galleria.closeIconTemplate && !galleria._closeIconTemplate()) {\n <svg data-h-icon=\"times\" [hBind]=\"getPTOptions('closeIcon')\" [class]=\"cx('closeIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"galleria.closeIconTemplate || galleria._closeIconTemplate()\"></ng-template>\n </button>\n }\n @if (galleria.templates() && (galleria.headerFacet || galleria.headerTemplate())) {\n <div hGalleriaItemSlot [unstyled]=\"unstyled()\" type=\"header\" [templates]=\"galleria.templates()\" [hBind]=\"getPTOptions('header')\" [class]=\"cx('header')\"></div>\n }\n <div [hBind]=\"getPTOptions('content')\" [class]=\"cx('content')\" [attr.aria-live]=\"galleria.autoPlay() ? 'polite' : 'off'\">\n <div\n hGalleriaItem\n [id]=\"id\"\n [value]=\"value()\"\n [activeIndex]=\"_activeIndex\"\n [circular]=\"galleria.circular()\"\n [templates]=\"galleria.templates()\"\n (onActiveIndexChange)=\"onActiveIndexChange($event)\"\n [showIndicators]=\"galleria.showIndicators()\"\n [changeItemOnIndicatorHover]=\"galleria.changeItemOnIndicatorHover()\"\n [indicatorFacet]=\"galleria.indicatorFacet\"\n [captionFacet]=\"galleria.captionFacet\"\n [showItemNavigators]=\"galleria.showItemNavigators()\"\n [autoPlay]=\"galleria.autoPlay()\"\n [slideShowActive]=\"slideShowActive\"\n (startSlideShow)=\"startSlideShow()\"\n (stopSlideShow)=\"stopSlideShow()\"\n [pt]=\"pt()\"\n [unstyled]=\"unstyled()\"\n [class]=\"cx('itemsContainer')\"\n ></div>\n @if (galleria.showThumbnails()) {\n <div\n hGalleriaThumbnails\n [containerId]=\"id\"\n [value]=\"value()\"\n (onActiveIndexChange)=\"onActiveIndexChange($event)\"\n [activeIndex]=\"_activeIndex\"\n [templates]=\"galleria.templates()\"\n [numVisible]=\"numVisible()\"\n [responsiveOptions]=\"galleria.responsiveOptions()\"\n [circular]=\"galleria.circular()\"\n [isVertical]=\"isVertical()\"\n [contentHeight]=\"galleria.verticalThumbnailViewPortHeight()\"\n [showThumbnailNavigators]=\"galleria.showThumbnailNavigators()\"\n [slideShowActive]=\"slideShowActive\"\n (stopSlideShow)=\"stopSlideShow()\"\n [pt]=\"pt()\"\n [unstyled]=\"unstyled()\"\n ></div>\n }\n </div>\n @if (shouldRenderFooter()) {\n <div hGalleriaItemSlot [hBind]=\"getPTOptions('footer')\" [class]=\"cx('footer')\" type=\"footer\" [templates]=\"galleria.templates()\" [unstyled]=\"unstyled()\"></div>\n }\n}\n",
1753
+ dependencies: [
1754
+ {
1755
+ kind: "directive",
1756
+ type: i0.forwardRef(() => i2.NgTemplateOutlet),
1757
+ selector: "[ngTemplateOutlet]",
1758
+ inputs: [
1759
+ "ngTemplateOutletContext",
1760
+ "ngTemplateOutlet",
1761
+ "ngTemplateOutletInjector"
1762
+ ]
1763
+ },
1764
+ {
1765
+ kind: "component",
1766
+ type: i0.forwardRef(() => TimesIcon),
1767
+ selector: "[data-h-icon=\"times\"]"
1768
+ },
1769
+ {
1770
+ kind: "directive",
1771
+ type: i0.forwardRef(() => i1.Bind),
1772
+ selector: "[hBind]",
1773
+ inputs: ["hBind"]
1774
+ },
1775
+ {
1776
+ kind: "component",
1777
+ type: i0.forwardRef(() => GalleriaItemSlot),
1778
+ selector: "div[hGalleriaItemSlot]",
1779
+ inputs: [
1780
+ "templates",
1781
+ "index",
1782
+ "item",
1783
+ "type"
1784
+ ]
1785
+ },
1786
+ {
1787
+ kind: "component",
1788
+ type: i0.forwardRef(() => GalleriaItem),
1789
+ selector: "div[hGalleriaItem]",
1790
+ inputs: [
1791
+ "id",
1792
+ "circular",
1793
+ "value",
1794
+ "showItemNavigators",
1795
+ "showIndicators",
1796
+ "slideShowActive",
1797
+ "changeItemOnIndicatorHover",
1798
+ "autoPlay",
1799
+ "templates",
1800
+ "indicatorFacet",
1801
+ "captionFacet",
1802
+ "activeIndex"
1803
+ ],
1804
+ outputs: [
1805
+ "startSlideShow",
1806
+ "stopSlideShow",
1807
+ "onActiveIndexChange"
1808
+ ]
1809
+ },
1810
+ {
1811
+ kind: "component",
1812
+ type: i0.forwardRef(() => GalleriaThumbnails),
1813
+ selector: "div[hGalleriaThumbnails]",
1814
+ inputs: [
1815
+ "containerId",
1816
+ "value",
1817
+ "isVertical",
1818
+ "slideShowActive",
1819
+ "circular",
1820
+ "responsiveOptions",
1821
+ "contentHeight",
1822
+ "showThumbnailNavigators",
1823
+ "templates",
1824
+ "numVisible",
1825
+ "activeIndex"
1826
+ ],
1827
+ outputs: ["onActiveIndexChange", "stopSlideShow"]
1828
+ }
1829
+ ],
1830
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1831
+ });
1832
+ };
1833
+ i0.ɵɵngDeclareClassMetadata({
1834
+ minVersion: "12.0.0",
1835
+ version: "22.2.1",
1836
+ ngImport: i0,
1837
+ type: GalleriaContent,
1838
+ decorators: [{
1839
+ type: Component,
1840
+ args: [{
1841
+ selector: "div[hGalleriaContent]",
1842
+ standalone: false,
1843
+ changeDetection: ChangeDetectionStrategy.OnPush,
1844
+ providers: [GalleriaStyle],
1845
+ host: {
1846
+ "[attr.id]": "id",
1847
+ "[attr.role]": "\"region\"",
1848
+ "[style]": "!galleria.fullScreen() ? galleria.containerStyle() : {}",
1849
+ "[class]": "cn(cx('root'))",
1850
+ "(document:fullscreenchange)": "handleFullscreenChange($event)"
1851
+ },
1852
+ hostDirectives: [Bind],
1853
+ template: "@if (value() && value().length > 0) {\n @if (galleria.fullScreen()) {\n <button type=\"button\" [hBind]=\"getPTOptions('closeButton')\" [class]=\"cx('closeButton')\" (click)=\"maskHide.emit()\" [attr.aria-label]=\"closeAriaLabel()\">\n @if (!galleria.closeIconTemplate && !galleria._closeIconTemplate()) {\n <svg data-h-icon=\"times\" [hBind]=\"getPTOptions('closeIcon')\" [class]=\"cx('closeIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"galleria.closeIconTemplate || galleria._closeIconTemplate()\"></ng-template>\n </button>\n }\n @if (galleria.templates() && (galleria.headerFacet || galleria.headerTemplate())) {\n <div hGalleriaItemSlot [unstyled]=\"unstyled()\" type=\"header\" [templates]=\"galleria.templates()\" [hBind]=\"getPTOptions('header')\" [class]=\"cx('header')\"></div>\n }\n <div [hBind]=\"getPTOptions('content')\" [class]=\"cx('content')\" [attr.aria-live]=\"galleria.autoPlay() ? 'polite' : 'off'\">\n <div\n hGalleriaItem\n [id]=\"id\"\n [value]=\"value()\"\n [activeIndex]=\"_activeIndex\"\n [circular]=\"galleria.circular()\"\n [templates]=\"galleria.templates()\"\n (onActiveIndexChange)=\"onActiveIndexChange($event)\"\n [showIndicators]=\"galleria.showIndicators()\"\n [changeItemOnIndicatorHover]=\"galleria.changeItemOnIndicatorHover()\"\n [indicatorFacet]=\"galleria.indicatorFacet\"\n [captionFacet]=\"galleria.captionFacet\"\n [showItemNavigators]=\"galleria.showItemNavigators()\"\n [autoPlay]=\"galleria.autoPlay()\"\n [slideShowActive]=\"slideShowActive\"\n (startSlideShow)=\"startSlideShow()\"\n (stopSlideShow)=\"stopSlideShow()\"\n [pt]=\"pt()\"\n [unstyled]=\"unstyled()\"\n [class]=\"cx('itemsContainer')\"\n ></div>\n @if (galleria.showThumbnails()) {\n <div\n hGalleriaThumbnails\n [containerId]=\"id\"\n [value]=\"value()\"\n (onActiveIndexChange)=\"onActiveIndexChange($event)\"\n [activeIndex]=\"_activeIndex\"\n [templates]=\"galleria.templates()\"\n [numVisible]=\"numVisible()\"\n [responsiveOptions]=\"galleria.responsiveOptions()\"\n [circular]=\"galleria.circular()\"\n [isVertical]=\"isVertical()\"\n [contentHeight]=\"galleria.verticalThumbnailViewPortHeight()\"\n [showThumbnailNavigators]=\"galleria.showThumbnailNavigators()\"\n [slideShowActive]=\"slideShowActive\"\n (stopSlideShow)=\"stopSlideShow()\"\n [pt]=\"pt()\"\n [unstyled]=\"unstyled()\"\n ></div>\n }\n </div>\n @if (shouldRenderFooter()) {\n <div hGalleriaItemSlot [hBind]=\"getPTOptions('footer')\" [class]=\"cx('footer')\" type=\"footer\" [templates]=\"galleria.templates()\" [unstyled]=\"unstyled()\"></div>\n }\n}\n"
1854
+ }]
1855
+ }],
1856
+ ctorParameters: () => [{ type: Galleria }, { type: i0.KeyValueDiffers }],
1857
+ propDecorators: {
1858
+ activeIndex: [{
1859
+ type: i0.Input,
1860
+ args: [{
1861
+ isSignal: true,
1862
+ alias: "activeIndex",
1863
+ required: false
1864
+ }]
1865
+ }],
1866
+ value: [{
1867
+ type: i0.Input,
1868
+ args: [{
1869
+ isSignal: true,
1870
+ alias: "value",
1871
+ required: false
1872
+ }]
1873
+ }],
1874
+ numVisible: [{
1875
+ type: i0.Input,
1876
+ args: [{
1877
+ isSignal: true,
1878
+ alias: "numVisible",
1879
+ required: false
1880
+ }]
1881
+ }],
1882
+ fullScreen: [{
1883
+ type: i0.Input,
1884
+ args: [{
1885
+ isSignal: true,
1886
+ alias: "fullScreen",
1887
+ required: false
1888
+ }]
1889
+ }],
1890
+ maskHide: [{
1891
+ type: i0.Output,
1892
+ args: ["maskHide"]
1893
+ }],
1894
+ activeItemChange: [{
1895
+ type: i0.Output,
1896
+ args: ["activeItemChange"]
1897
+ }],
1898
+ closeButton: [{
1899
+ type: i0.ViewChild,
1900
+ args: ["closeButton", { isSignal: true }]
1901
+ }]
1902
+ }
1903
+ });
1904
+ var GalleriaItemSlot = class GalleriaItemSlot extends BaseComponent {
1905
+ hostName = "Galleria";
1906
+ templates = input(...ngDevMode ? [void 0, { debugName: "templates" }] : /* istanbul ignore next */ []);
1907
+ index = input(void 0, {
1908
+ ...ngDevMode ? { debugName: "index" } : /* istanbul ignore next */ {},
1909
+ transform: numberAttribute
1910
+ });
1911
+ item = input(...ngDevMode ? [void 0, { debugName: "item" }] : /* istanbul ignore next */ []);
1912
+ _itemEffect = effect(() => {
1913
+ const item = this.item();
1914
+ const templates = this.templates();
1915
+ if (templates && templates.length > 0) templates.forEach((tmpl) => {
1916
+ const type = this.type();
1917
+ if (tmpl.getType() === type) switch (type) {
1918
+ case "item":
1919
+ case "caption":
1920
+ case "thumbnail":
1921
+ this.context = { $implicit: item };
1922
+ this.contentTemplate = tmpl.template;
1923
+ break;
1924
+ case "footer":
1925
+ this.context = { $implicit: item };
1926
+ this.contentTemplate = tmpl.template;
1927
+ break;
1928
+ }
1929
+ });
1930
+ else this.getContentTemplate();
1931
+ }, ...ngDevMode ? [{ debugName: "_itemEffect" }] : /* istanbul ignore next */ []);
1932
+ shouldRender() {
1933
+ return this.contentTemplate || this.galleria._itemTemplate() || this.galleria.itemTemplate || this.galleria.captionTemplate() || this.galleria.captionTemplate() || this.galleria.captionFacet || this.galleria.thumbnailTemplate || this.galleria._thumbnailTemplate() || this.galleria.footerTemplate();
1934
+ }
1935
+ galleria = inject(Galleria);
1936
+ $pcGalleria = inject(GALLERIA_INSTANCE, {
1937
+ optional: true,
1938
+ skipSelf: true
1939
+ }) ?? void 0;
1940
+ getTemplateFromQueryList(type) {
1941
+ return this.galleria.templates().find((item) => item.getType() === type)?.template;
1942
+ }
1943
+ getContentTemplate() {
1944
+ switch (this.type()) {
1945
+ case "item":
1946
+ this.context = { $implicit: this.item() };
1947
+ this.contentTemplate = this.galleria._itemTemplate() || this.getTemplateFromQueryList("item");
1948
+ break;
1949
+ case "caption":
1950
+ this.context = { $implicit: this.item() };
1951
+ this.contentTemplate = this.galleria.captionTemplate() || this.getTemplateFromQueryList("caption");
1952
+ break;
1953
+ case "thumbnail":
1954
+ this.context = { $implicit: this.item() };
1955
+ this.contentTemplate = this.galleria._thumbnailTemplate() || this.getTemplateFromQueryList("thumbnail");
1956
+ break;
1957
+ case "indicator":
1958
+ this.context = { $implicit: this.index() };
1959
+ this.contentTemplate = this.galleria.indicatorTemplate() || this.getTemplateFromQueryList("indicator");
1960
+ break;
1961
+ case "footer":
1962
+ this.context = { $implicit: this.item() };
1963
+ this.contentTemplate = this.galleria.footerTemplate() || this.getTemplateFromQueryList("footer");
1964
+ break;
1965
+ default:
1966
+ this.context = { $implicit: this.item() };
1967
+ this.contentTemplate = this.galleria._itemTemplate() || this.getTemplateFromQueryList("item");
1968
+ }
1969
+ }
1970
+ type = input(...ngDevMode ? [void 0, { debugName: "type" }] : /* istanbul ignore next */ []);
1971
+ contentTemplate;
1972
+ context;
1973
+ onAfterContentInit() {
1974
+ const templates = this.templates();
1975
+ if (templates && templates.length > 0) templates?.forEach((item) => {
1976
+ const type = this.type();
1977
+ if (item.getType() === type) switch (type) {
1978
+ case "item":
1979
+ case "caption":
1980
+ case "thumbnail":
1981
+ this.context = { $implicit: this.item() };
1982
+ this.contentTemplate = item.template;
1983
+ break;
1984
+ case "indicator":
1985
+ this.context = { $implicit: this.index() };
1986
+ this.contentTemplate = item.template;
1987
+ break;
1988
+ case "footer":
1989
+ this.context = { $implicit: this.item() };
1990
+ this.contentTemplate = item.template;
1991
+ break;
1992
+ default:
1993
+ this.context = { $implicit: this.item() };
1994
+ this.contentTemplate = item.template;
1995
+ break;
1996
+ }
1997
+ });
1998
+ else this.getContentTemplate();
1999
+ }
2000
+ static ɵfac = i0.ɵɵngDeclareFactory({
2001
+ minVersion: "12.0.0",
2002
+ version: "22.2.1",
2003
+ ngImport: i0,
2004
+ type: GalleriaItemSlot,
2005
+ deps: null,
2006
+ target: i0.ɵɵFactoryTarget.Component
2007
+ });
2008
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2009
+ minVersion: "17.0.0",
2010
+ version: "22.2.1",
2011
+ type: GalleriaItemSlot,
2012
+ isStandalone: false,
2013
+ selector: "div[hGalleriaItemSlot]",
2014
+ inputs: {
2015
+ templates: {
2016
+ classPropertyName: "templates",
2017
+ publicName: "templates",
2018
+ isSignal: true,
2019
+ isRequired: false,
2020
+ transformFunction: null
2021
+ },
2022
+ index: {
2023
+ classPropertyName: "index",
2024
+ publicName: "index",
2025
+ isSignal: true,
2026
+ isRequired: false,
2027
+ transformFunction: null
2028
+ },
2029
+ item: {
2030
+ classPropertyName: "item",
2031
+ publicName: "item",
2032
+ isSignal: true,
2033
+ isRequired: false,
2034
+ transformFunction: null
2035
+ },
2036
+ type: {
2037
+ classPropertyName: "type",
2038
+ publicName: "type",
2039
+ isSignal: true,
2040
+ isRequired: false,
2041
+ transformFunction: null
2042
+ }
2043
+ },
2044
+ usesInheritance: true,
2045
+ ngImport: i0,
2046
+ template: `
1324
2047
  @if (shouldRender()) {
1325
2048
  <ng-container *ngTemplateOutlet="contentTemplate; context: context"></ng-container>
1326
2049
  }
1327
- `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1328
- }
1329
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: GalleriaItemSlot, decorators: [{
1330
- type: Component,
1331
- args: [{
1332
- selector: 'div[hGalleriaItemSlot]',
1333
- standalone: false,
1334
- template: `
2050
+ `,
2051
+ isInline: true,
2052
+ dependencies: [{
2053
+ kind: "directive",
2054
+ type: i2.NgTemplateOutlet,
2055
+ selector: "[ngTemplateOutlet]",
2056
+ inputs: [
2057
+ "ngTemplateOutletContext",
2058
+ "ngTemplateOutlet",
2059
+ "ngTemplateOutletInjector"
2060
+ ]
2061
+ }],
2062
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2063
+ });
2064
+ };
2065
+ i0.ɵɵngDeclareClassMetadata({
2066
+ minVersion: "12.0.0",
2067
+ version: "22.2.1",
2068
+ ngImport: i0,
2069
+ type: GalleriaItemSlot,
2070
+ decorators: [{
2071
+ type: Component,
2072
+ args: [{
2073
+ selector: "div[hGalleriaItemSlot]",
2074
+ standalone: false,
2075
+ template: `
1335
2076
  @if (shouldRender()) {
1336
2077
  <ng-container *ngTemplateOutlet="contentTemplate; context: context"></ng-container>
1337
2078
  }
1338
2079
  `,
1339
- changeDetection: ChangeDetectionStrategy.OnPush
1340
- }]
1341
- }], propDecorators: { templates: [{ type: i0.Input, args: [{ isSignal: true, alias: "templates", required: false }] }], index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: false }] }], item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
1342
- class GalleriaItem extends BaseComponent {
1343
- galleria;
1344
- hostName = 'Galleria';
1345
- bindDirectiveInstance = inject(Bind, { self: true });
1346
- onAfterViewChecked() {
1347
- this.bindDirectiveInstance.setAttrs(this.ptm('itemsContainer'));
1348
- }
1349
- id = input(/* @ts-ignore */
1350
- ...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
1351
- circular = input(false, { ...(ngDevMode ? { debugName: "circular" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1352
- value = input(/* @ts-ignore */
1353
- ...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
1354
- showItemNavigators = input(false, { ...(ngDevMode ? { debugName: "showItemNavigators" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1355
- showIndicators = input(true, { ...(ngDevMode ? { debugName: "showIndicators" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1356
- slideShowActive = input(true, { ...(ngDevMode ? { debugName: "slideShowActive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1357
- changeItemOnIndicatorHover = input(true, { ...(ngDevMode ? { debugName: "changeItemOnIndicatorHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1358
- autoPlay = input(false, { ...(ngDevMode ? { debugName: "autoPlay" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1359
- templates = input(/* @ts-ignore */
1360
- ...(ngDevMode ? [undefined, { debugName: "templates" }] : /* istanbul ignore next */ []));
1361
- indicatorFacet = input(/* @ts-ignore */
1362
- ...(ngDevMode ? [undefined, { debugName: "indicatorFacet" }] : /* istanbul ignore next */ []));
1363
- captionFacet = input(/* @ts-ignore */
1364
- ...(ngDevMode ? [undefined, { debugName: "captionFacet" }] : /* istanbul ignore next */ []));
1365
- startSlideShow = output();
1366
- stopSlideShow = output();
1367
- onActiveIndexChange = output();
1368
- _componentStyle = inject(GalleriaStyle);
1369
- activeIndex = input(0, /* @ts-ignore */
1370
- ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
1371
- get activeItem() {
1372
- const value = this.value();
1373
- return value && value[this.activeIndex()];
1374
- }
1375
- leftButtonFocused = false;
1376
- rightButtonFocused = false;
1377
- constructor(galleria) {
1378
- super();
1379
- this.galleria = galleria;
1380
- }
1381
- getIndicatorPTOptions(index) {
1382
- return this.ptm('indicator', {
1383
- context: {
1384
- highlighted: this.activeIndex() === index
1385
- }
1386
- });
1387
- }
1388
- onChanges({ autoPlay }) {
1389
- if (autoPlay?.currentValue) {
1390
- this.startSlideShow.emit();
1391
- }
1392
- if (autoPlay && autoPlay.currentValue === false) {
1393
- this.stopTheSlideShow();
1394
- }
1395
- }
1396
- next() {
1397
- let nextItemIndex = this.activeIndex() + 1;
1398
- let activeIndex = this.circular() && this.value().length - 1 === this.activeIndex() ? 0 : nextItemIndex;
1399
- this.onActiveIndexChange.emit(activeIndex);
1400
- }
1401
- prev() {
1402
- let prevItemIndex = this.activeIndex() !== 0 ? this.activeIndex() - 1 : 0;
1403
- let activeIndex = this.circular() && this.activeIndex() === 0 ? this.value().length - 1 : prevItemIndex;
1404
- this.onActiveIndexChange.emit(activeIndex);
1405
- }
1406
- onButtonFocus(pos) {
1407
- if (pos === 'left') {
1408
- this.leftButtonFocused = true;
1409
- }
1410
- else
1411
- this.rightButtonFocused = true;
1412
- }
1413
- onButtonBlur(pos) {
1414
- if (pos === 'left') {
1415
- this.leftButtonFocused = false;
1416
- }
1417
- else
1418
- this.rightButtonFocused = false;
1419
- }
1420
- stopTheSlideShow() {
1421
- if (this.slideShowActive() && this.stopSlideShow) {
1422
- this.stopSlideShow.emit();
1423
- }
1424
- }
1425
- navForward(e) {
1426
- this.stopTheSlideShow();
1427
- this.next();
1428
- if (e && e.cancelable) {
1429
- e.stopPropagation();
1430
- e.preventDefault();
1431
- }
1432
- }
1433
- navBackward(e) {
1434
- this.stopTheSlideShow();
1435
- this.prev();
1436
- if (e && e.cancelable) {
1437
- e.stopPropagation();
1438
- e.preventDefault();
1439
- }
1440
- }
1441
- onIndicatorClick(index) {
1442
- this.stopTheSlideShow();
1443
- this.onActiveIndexChange.emit(index);
1444
- }
1445
- onIndicatorMouseEnter(index) {
1446
- if (this.changeItemOnIndicatorHover()) {
1447
- this.stopTheSlideShow();
1448
- this.onActiveIndexChange.emit(index);
1449
- }
1450
- }
1451
- onIndicatorKeyDown(event, index) {
1452
- switch (event.code) {
1453
- case 'Enter':
1454
- case 'Space':
1455
- this.stopTheSlideShow();
1456
- this.onActiveIndexChange.emit(index);
1457
- event.preventDefault();
1458
- break;
1459
- case 'ArrowDown':
1460
- case 'ArrowUp':
1461
- event.preventDefault();
1462
- break;
1463
- default:
1464
- break;
1465
- }
1466
- }
1467
- isNavForwardDisabled() {
1468
- return !this.circular() && this.activeIndex() === this.value().length - 1;
1469
- }
1470
- isNavBackwardDisabled() {
1471
- return !this.circular() && this.activeIndex() === 0;
1472
- }
1473
- isIndicatorItemActive(index) {
1474
- return this.activeIndex() === index;
1475
- }
1476
- ariaSlideLabel() {
1477
- return this.galleria.config.translation.aria ? this.galleria.config.translation.aria.slide : undefined;
1478
- }
1479
- ariaSlideNumber(value) {
1480
- return this.galleria.config.translation.aria ? this.galleria.config.translation.aria.slideNumber?.replace(/{slideNumber}/g, value) : undefined;
1481
- }
1482
- ariaPageLabel(value) {
1483
- return this.galleria.config.translation.aria ? this.galleria.config.translation.aria.pageLabel?.replace(/{page}/g, value) : undefined;
1484
- }
1485
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: GalleriaItem, deps: [{ token: Galleria }], target: i0.ɵɵFactoryTarget.Component });
1486
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: GalleriaItem, isStandalone: false, selector: "div[hGalleriaItem]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, circular: { classPropertyName: "circular", publicName: "circular", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, showItemNavigators: { classPropertyName: "showItemNavigators", publicName: "showItemNavigators", isSignal: true, isRequired: false, transformFunction: null }, showIndicators: { classPropertyName: "showIndicators", publicName: "showIndicators", isSignal: true, isRequired: false, transformFunction: null }, slideShowActive: { classPropertyName: "slideShowActive", publicName: "slideShowActive", isSignal: true, isRequired: false, transformFunction: null }, changeItemOnIndicatorHover: { classPropertyName: "changeItemOnIndicatorHover", publicName: "changeItemOnIndicatorHover", isSignal: true, isRequired: false, transformFunction: null }, autoPlay: { classPropertyName: "autoPlay", publicName: "autoPlay", isSignal: true, isRequired: false, transformFunction: null }, templates: { classPropertyName: "templates", publicName: "templates", isSignal: true, isRequired: false, transformFunction: null }, indicatorFacet: { classPropertyName: "indicatorFacet", publicName: "indicatorFacet", isSignal: true, isRequired: false, transformFunction: null }, captionFacet: { classPropertyName: "captionFacet", publicName: "captionFacet", isSignal: true, isRequired: false, transformFunction: null }, activeIndex: { classPropertyName: "activeIndex", publicName: "activeIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { startSlideShow: "startSlideShow", stopSlideShow: "stopSlideShow", onActiveIndexChange: "onActiveIndexChange" }, providers: [GalleriaStyle], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: "<div [hBind]=\"ptm('items')\" [class]=\"cx('items')\">\n @if (showItemNavigators()) {\n <button\n type=\"button\"\n role=\"navigation\"\n [hBind]=\"ptm('prevButton')\"\n [class]=\"cx('prevButton')\"\n (click)=\"navBackward($event)\"\n (focus)=\"onButtonFocus('left')\"\n (blur)=\"onButtonBlur('left')\"\n data-pc-group-section=\"itemnavigator\"\n >\n @if (!galleria.itemPreviousIconTemplate && !galleria._itemPreviousIconTemplate()) {\n <svg data-h-icon=\"chevron-left\" [hBind]=\"ptm('prevIcon')\" [class]=\"cx('prevIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"galleria.itemPreviousIconTemplate || galleria._itemPreviousIconTemplate()\"></ng-template>\n </button>\n }\n <div\n hGalleriaItemSlot\n [hBind]=\"ptm('item')\"\n [unstyled]=\"unstyled()\"\n [class]=\"cx('item')\"\n [item]=\"activeItem\"\n [templates]=\"templates()\"\n [id]=\"id() + '_item_' + activeIndex()\"\n role=\"group\"\n [class]=\"cx('item')\"\n [attr.aria-label]=\"ariaSlideNumber(activeIndex() + 1)\"\n [attr.aria-roledescription]=\"ariaSlideLabel()\"\n ></div>\n @if (showItemNavigators()) {\n <button\n type=\"button\"\n [hBind]=\"ptm('nextButton')\"\n [class]=\"cx('nextButton')\"\n (click)=\"navForward($event)\"\n role=\"navigation\"\n (focus)=\"onButtonFocus('right')\"\n (blur)=\"onButtonBlur('right')\"\n data-pc-group-section=\"itemnavigator\"\n >\n @if (!galleria.itemNextIconTemplate && !galleria._itemNextIconTemplate()) {\n <svg data-h-icon=\"chevron-right\" [hBind]=\"ptm('nextIcon')\" [class]=\"cx('nextIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"galleria.itemNextIconTemplate || galleria._itemNextIconTemplate()\"></ng-template>\n </button>\n }\n @if (captionFacet() || galleria.captionTemplate()) {\n <div hGalleriaItemSlot [hBind]=\"ptm('caption')\" [unstyled]=\"unstyled()\" [class]=\"cx('caption')\" type=\"caption\" [item]=\"activeItem\" [templates]=\"templates()\"></div>\n }\n</div>\n@if (showIndicators()) {\n <ul [hBind]=\"ptm('indicatorList')\" [class]=\"cx('indicatorList')\">\n @for (item of value(); track item; let index = $index) {\n <li\n [hBind]=\"getIndicatorPTOptions(index)\"\n tabindex=\"0\"\n (click)=\"onIndicatorClick(index)\"\n (mouseenter)=\"onIndicatorMouseEnter(index)\"\n (keydown)=\"onIndicatorKeyDown($event, index)\"\n [class]=\"cx('indicator', { index })\"\n [attr.aria-label]=\"ariaPageLabel(index + 1)\"\n [attr.aria-selected]=\"activeIndex() === index\"\n [attr.aria-controls]=\"id() + '_item_' + index\"\n [hBind]=\"ptm('indicator', getIndicatorPTOptions(index))\"\n [attr.data-h-active]=\"isIndicatorItemActive(index)\"\n >\n @if (!indicatorFacet() && !galleria.indicatorTemplate()) {\n <button type=\"button\" tabIndex=\"-1\" [hBind]=\"ptm('indicatorButton', getIndicatorPTOptions(index))\" [class]=\"cx('indicatorButton')\"></button>\n }\n @if (indicatorFacet() || galleria.indicatorTemplate()) {\n <div hGalleriaItemSlot type=\"indicator\" [index]=\"index\" [templates]=\"templates()\" [hBind]=\"ptm('item')\" [unstyled]=\"unstyled()\"></div>\n }\n </li>\n }\n </ul>\n}\n", dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => ChevronRightIcon), selector: "[data-h-icon=\"chevron-right\"]" }, { kind: "component", type: i0.forwardRef(() => ChevronLeftIcon), selector: "[data-h-icon=\"chevron-left\"]" }, { kind: "directive", type: i0.forwardRef(() => i1.Bind), selector: "[hBind]", inputs: ["hBind"] }, { kind: "component", type: i0.forwardRef(() => GalleriaItemSlot), selector: "div[hGalleriaItemSlot]", inputs: ["templates", "index", "item", "type"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1487
- }
1488
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: GalleriaItem, decorators: [{
1489
- type: Component,
1490
- args: [{ selector: 'div[hGalleriaItem]', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, providers: [GalleriaStyle], hostDirectives: [Bind], template: "<div [hBind]=\"ptm('items')\" [class]=\"cx('items')\">\n @if (showItemNavigators()) {\n <button\n type=\"button\"\n role=\"navigation\"\n [hBind]=\"ptm('prevButton')\"\n [class]=\"cx('prevButton')\"\n (click)=\"navBackward($event)\"\n (focus)=\"onButtonFocus('left')\"\n (blur)=\"onButtonBlur('left')\"\n data-pc-group-section=\"itemnavigator\"\n >\n @if (!galleria.itemPreviousIconTemplate && !galleria._itemPreviousIconTemplate()) {\n <svg data-h-icon=\"chevron-left\" [hBind]=\"ptm('prevIcon')\" [class]=\"cx('prevIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"galleria.itemPreviousIconTemplate || galleria._itemPreviousIconTemplate()\"></ng-template>\n </button>\n }\n <div\n hGalleriaItemSlot\n [hBind]=\"ptm('item')\"\n [unstyled]=\"unstyled()\"\n [class]=\"cx('item')\"\n [item]=\"activeItem\"\n [templates]=\"templates()\"\n [id]=\"id() + '_item_' + activeIndex()\"\n role=\"group\"\n [class]=\"cx('item')\"\n [attr.aria-label]=\"ariaSlideNumber(activeIndex() + 1)\"\n [attr.aria-roledescription]=\"ariaSlideLabel()\"\n ></div>\n @if (showItemNavigators()) {\n <button\n type=\"button\"\n [hBind]=\"ptm('nextButton')\"\n [class]=\"cx('nextButton')\"\n (click)=\"navForward($event)\"\n role=\"navigation\"\n (focus)=\"onButtonFocus('right')\"\n (blur)=\"onButtonBlur('right')\"\n data-pc-group-section=\"itemnavigator\"\n >\n @if (!galleria.itemNextIconTemplate && !galleria._itemNextIconTemplate()) {\n <svg data-h-icon=\"chevron-right\" [hBind]=\"ptm('nextIcon')\" [class]=\"cx('nextIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"galleria.itemNextIconTemplate || galleria._itemNextIconTemplate()\"></ng-template>\n </button>\n }\n @if (captionFacet() || galleria.captionTemplate()) {\n <div hGalleriaItemSlot [hBind]=\"ptm('caption')\" [unstyled]=\"unstyled()\" [class]=\"cx('caption')\" type=\"caption\" [item]=\"activeItem\" [templates]=\"templates()\"></div>\n }\n</div>\n@if (showIndicators()) {\n <ul [hBind]=\"ptm('indicatorList')\" [class]=\"cx('indicatorList')\">\n @for (item of value(); track item; let index = $index) {\n <li\n [hBind]=\"getIndicatorPTOptions(index)\"\n tabindex=\"0\"\n (click)=\"onIndicatorClick(index)\"\n (mouseenter)=\"onIndicatorMouseEnter(index)\"\n (keydown)=\"onIndicatorKeyDown($event, index)\"\n [class]=\"cx('indicator', { index })\"\n [attr.aria-label]=\"ariaPageLabel(index + 1)\"\n [attr.aria-selected]=\"activeIndex() === index\"\n [attr.aria-controls]=\"id() + '_item_' + index\"\n [hBind]=\"ptm('indicator', getIndicatorPTOptions(index))\"\n [attr.data-h-active]=\"isIndicatorItemActive(index)\"\n >\n @if (!indicatorFacet() && !galleria.indicatorTemplate()) {\n <button type=\"button\" tabIndex=\"-1\" [hBind]=\"ptm('indicatorButton', getIndicatorPTOptions(index))\" [class]=\"cx('indicatorButton')\"></button>\n }\n @if (indicatorFacet() || galleria.indicatorTemplate()) {\n <div hGalleriaItemSlot type=\"indicator\" [index]=\"index\" [templates]=\"templates()\" [hBind]=\"ptm('item')\" [unstyled]=\"unstyled()\"></div>\n }\n </li>\n }\n </ul>\n}\n" }]
1491
- }], ctorParameters: () => [{ type: Galleria }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], circular: [{ type: i0.Input, args: [{ isSignal: true, alias: "circular", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], showItemNavigators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showItemNavigators", required: false }] }], showIndicators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIndicators", required: false }] }], slideShowActive: [{ type: i0.Input, args: [{ isSignal: true, alias: "slideShowActive", required: false }] }], changeItemOnIndicatorHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "changeItemOnIndicatorHover", required: false }] }], autoPlay: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoPlay", required: false }] }], templates: [{ type: i0.Input, args: [{ isSignal: true, alias: "templates", required: false }] }], indicatorFacet: [{ type: i0.Input, args: [{ isSignal: true, alias: "indicatorFacet", required: false }] }], captionFacet: [{ type: i0.Input, args: [{ isSignal: true, alias: "captionFacet", required: false }] }], startSlideShow: [{ type: i0.Output, args: ["startSlideShow"] }], stopSlideShow: [{ type: i0.Output, args: ["stopSlideShow"] }], onActiveIndexChange: [{ type: i0.Output, args: ["onActiveIndexChange"] }], activeIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIndex", required: false }] }] } });
1492
- class GalleriaThumbnails extends BaseComponent {
1493
- galleria;
1494
- hostName = 'Galleria';
1495
- bindDirectiveInstance = inject(Bind, { self: true });
1496
- onAfterViewChecked() {
1497
- this.bindDirectiveInstance.setAttrs(this.ptm('thumbnails'));
1498
- }
1499
- containerId = input(/* @ts-ignore */
1500
- ...(ngDevMode ? [undefined, { debugName: "containerId" }] : /* istanbul ignore next */ []));
1501
- value = input(/* @ts-ignore */
1502
- ...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
1503
- isVertical = input(false, { ...(ngDevMode ? { debugName: "isVertical" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1504
- slideShowActive = input(false, { ...(ngDevMode ? { debugName: "slideShowActive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1505
- circular = input(false, { ...(ngDevMode ? { debugName: "circular" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1506
- responsiveOptions = input(/* @ts-ignore */
1507
- ...(ngDevMode ? [undefined, { debugName: "responsiveOptions" }] : /* istanbul ignore next */ []));
1508
- contentHeight = input('300px', /* @ts-ignore */
1509
- ...(ngDevMode ? [{ debugName: "contentHeight" }] : /* istanbul ignore next */ []));
1510
- showThumbnailNavigators = input(true, /* @ts-ignore */
1511
- ...(ngDevMode ? [{ debugName: "showThumbnailNavigators" }] : /* istanbul ignore next */ []));
1512
- templates = input(/* @ts-ignore */
1513
- ...(ngDevMode ? [undefined, { debugName: "templates" }] : /* istanbul ignore next */ []));
1514
- onActiveIndexChange = output();
1515
- stopSlideShow = output();
1516
- itemsContainer = viewChild('itemsContainer', /* @ts-ignore */
1517
- ...(ngDevMode ? [{ debugName: "itemsContainer" }] : /* istanbul ignore next */ []));
1518
- numVisible = input(0, /* @ts-ignore */
1519
- ...(ngDevMode ? [{ debugName: "numVisible" }] : /* istanbul ignore next */ []));
1520
- activeIndex = input(0, /* @ts-ignore */
1521
- ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
1522
- index;
1523
- startPos = null;
1524
- thumbnailsStyle = null;
1525
- sortedResponsiveOptions = null;
1526
- totalShiftedItems = 0;
1527
- page = 0;
1528
- documentResizeListener;
1529
- _numVisible = 0;
1530
- d_numVisible = 0;
1531
- _oldNumVisible = 0;
1532
- _activeIndex = 0;
1533
- _oldactiveIndex = 0;
1534
- _componentStyle = inject(GalleriaStyle);
1535
- constructor(galleria) {
1536
- super();
1537
- this.galleria = galleria;
1538
- effect(() => {
1539
- const numVisible = this.numVisible();
1540
- this._numVisible = numVisible;
1541
- this._oldNumVisible = this.d_numVisible;
1542
- this.d_numVisible = numVisible;
1543
- });
1544
- effect(() => {
1545
- this._oldactiveIndex = this._activeIndex;
1546
- this._activeIndex = this.activeIndex();
1547
- });
1548
- }
1549
- onInit() {
1550
- if (isPlatformBrowser(this.platformId)) {
1551
- this.createStyle();
1552
- if (this.responsiveOptions()) {
1553
- this.bindDocumentListeners();
1554
- }
1555
- }
1556
- }
1557
- onAfterContentChecked() {
1558
- let totalShiftedItems = this.totalShiftedItems;
1559
- const itemsContainer = this.itemsContainer();
1560
- if ((this._oldNumVisible !== this.d_numVisible || this._oldactiveIndex !== this._activeIndex) && itemsContainer) {
1561
- if (this._activeIndex <= this.getMedianItemIndex()) {
1562
- totalShiftedItems = 0;
1563
- }
1564
- else if (this.value().length - this.d_numVisible + this.getMedianItemIndex() < this._activeIndex) {
1565
- totalShiftedItems = this.d_numVisible - this.value().length;
1566
- }
1567
- else if (this.value().length - this.d_numVisible < this._activeIndex && this.d_numVisible % 2 === 0) {
1568
- totalShiftedItems = this._activeIndex * -1 + this.getMedianItemIndex() + 1;
1569
- }
1570
- else {
1571
- totalShiftedItems = this._activeIndex * -1 + this.getMedianItemIndex();
1572
- }
1573
- if (totalShiftedItems !== this.totalShiftedItems) {
1574
- this.totalShiftedItems = totalShiftedItems;
1575
- }
1576
- if (itemsContainer && itemsContainer.nativeElement) {
1577
- itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / this.d_numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this.d_numVisible)}%, 0, 0)`;
1578
- }
1579
- if (this._oldactiveIndex !== this._activeIndex) {
1580
- this.document.body.setAttribute('data-h-items-hidden', 'false');
1581
- !this.$unstyled() && removeClass(itemsContainer.nativeElement, 'h-items-hidden');
1582
- itemsContainer.nativeElement.style.transition = 'transform 500ms ease 0s';
1583
- }
1584
- this._oldactiveIndex = this._activeIndex;
1585
- this._oldNumVisible = this.d_numVisible;
1586
- }
1587
- }
1588
- onAfterViewInit() {
1589
- if (isPlatformBrowser(this.platformId)) {
1590
- this.calculatePosition();
1591
- }
1592
- }
1593
- createStyle() {
1594
- if (!this.thumbnailsStyle) {
1595
- this.thumbnailsStyle = this.document.createElement('style');
1596
- setAttribute(this.thumbnailsStyle, 'nonce', this.galleria.config?.csp()?.nonce);
1597
- this.document.body.appendChild(this.thumbnailsStyle);
1598
- }
1599
- let innerHTML = `
2080
+ changeDetection: ChangeDetectionStrategy.OnPush
2081
+ }]
2082
+ }],
2083
+ propDecorators: {
2084
+ templates: [{
2085
+ type: i0.Input,
2086
+ args: [{
2087
+ isSignal: true,
2088
+ alias: "templates",
2089
+ required: false
2090
+ }]
2091
+ }],
2092
+ index: [{
2093
+ type: i0.Input,
2094
+ args: [{
2095
+ isSignal: true,
2096
+ alias: "index",
2097
+ required: false
2098
+ }]
2099
+ }],
2100
+ item: [{
2101
+ type: i0.Input,
2102
+ args: [{
2103
+ isSignal: true,
2104
+ alias: "item",
2105
+ required: false
2106
+ }]
2107
+ }],
2108
+ type: [{
2109
+ type: i0.Input,
2110
+ args: [{
2111
+ isSignal: true,
2112
+ alias: "type",
2113
+ required: false
2114
+ }]
2115
+ }]
2116
+ }
2117
+ });
2118
+ var GalleriaItem = class GalleriaItem extends BaseComponent {
2119
+ galleria;
2120
+ hostName = "Galleria";
2121
+ bindDirectiveInstance = inject(Bind, { self: true });
2122
+ onAfterViewChecked() {
2123
+ this.bindDirectiveInstance.setAttrs(this.ptm("itemsContainer"));
2124
+ }
2125
+ id = input(...ngDevMode ? [void 0, { debugName: "id" }] : /* istanbul ignore next */ []);
2126
+ circular = input(false, {
2127
+ ...ngDevMode ? { debugName: "circular" } : /* istanbul ignore next */ {},
2128
+ transform: booleanAttribute
2129
+ });
2130
+ value = input(...ngDevMode ? [void 0, { debugName: "value" }] : /* istanbul ignore next */ []);
2131
+ showItemNavigators = input(false, {
2132
+ ...ngDevMode ? { debugName: "showItemNavigators" } : /* istanbul ignore next */ {},
2133
+ transform: booleanAttribute
2134
+ });
2135
+ showIndicators = input(true, {
2136
+ ...ngDevMode ? { debugName: "showIndicators" } : /* istanbul ignore next */ {},
2137
+ transform: booleanAttribute
2138
+ });
2139
+ slideShowActive = input(true, {
2140
+ ...ngDevMode ? { debugName: "slideShowActive" } : /* istanbul ignore next */ {},
2141
+ transform: booleanAttribute
2142
+ });
2143
+ changeItemOnIndicatorHover = input(true, {
2144
+ ...ngDevMode ? { debugName: "changeItemOnIndicatorHover" } : /* istanbul ignore next */ {},
2145
+ transform: booleanAttribute
2146
+ });
2147
+ autoPlay = input(false, {
2148
+ ...ngDevMode ? { debugName: "autoPlay" } : /* istanbul ignore next */ {},
2149
+ transform: booleanAttribute
2150
+ });
2151
+ templates = input(...ngDevMode ? [void 0, { debugName: "templates" }] : /* istanbul ignore next */ []);
2152
+ indicatorFacet = input(...ngDevMode ? [void 0, { debugName: "indicatorFacet" }] : /* istanbul ignore next */ []);
2153
+ captionFacet = input(...ngDevMode ? [void 0, { debugName: "captionFacet" }] : /* istanbul ignore next */ []);
2154
+ startSlideShow = output();
2155
+ stopSlideShow = output();
2156
+ onActiveIndexChange = output();
2157
+ _componentStyle = inject(GalleriaStyle);
2158
+ activeIndex = input(0, ...ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []);
2159
+ get activeItem() {
2160
+ const value = this.value();
2161
+ return value && value[this.activeIndex()];
2162
+ }
2163
+ leftButtonFocused = false;
2164
+ rightButtonFocused = false;
2165
+ constructor(galleria) {
2166
+ super();
2167
+ this.galleria = galleria;
2168
+ }
2169
+ getIndicatorPTOptions(index) {
2170
+ return this.ptm("indicator", { context: { highlighted: this.activeIndex() === index } });
2171
+ }
2172
+ onChanges({ autoPlay }) {
2173
+ if (autoPlay?.currentValue) this.startSlideShow.emit();
2174
+ if (autoPlay && autoPlay.currentValue === false) this.stopTheSlideShow();
2175
+ }
2176
+ next() {
2177
+ let nextItemIndex = this.activeIndex() + 1;
2178
+ let activeIndex = this.circular() && this.value().length - 1 === this.activeIndex() ? 0 : nextItemIndex;
2179
+ this.onActiveIndexChange.emit(activeIndex);
2180
+ }
2181
+ prev() {
2182
+ let prevItemIndex = this.activeIndex() !== 0 ? this.activeIndex() - 1 : 0;
2183
+ let activeIndex = this.circular() && this.activeIndex() === 0 ? this.value().length - 1 : prevItemIndex;
2184
+ this.onActiveIndexChange.emit(activeIndex);
2185
+ }
2186
+ onButtonFocus(pos) {
2187
+ if (pos === "left") this.leftButtonFocused = true;
2188
+ else this.rightButtonFocused = true;
2189
+ }
2190
+ onButtonBlur(pos) {
2191
+ if (pos === "left") this.leftButtonFocused = false;
2192
+ else this.rightButtonFocused = false;
2193
+ }
2194
+ stopTheSlideShow() {
2195
+ if (this.slideShowActive() && this.stopSlideShow) this.stopSlideShow.emit();
2196
+ }
2197
+ navForward(e) {
2198
+ this.stopTheSlideShow();
2199
+ this.next();
2200
+ if (e && e.cancelable) {
2201
+ e.stopPropagation();
2202
+ e.preventDefault();
2203
+ }
2204
+ }
2205
+ navBackward(e) {
2206
+ this.stopTheSlideShow();
2207
+ this.prev();
2208
+ if (e && e.cancelable) {
2209
+ e.stopPropagation();
2210
+ e.preventDefault();
2211
+ }
2212
+ }
2213
+ onIndicatorClick(index) {
2214
+ this.stopTheSlideShow();
2215
+ this.onActiveIndexChange.emit(index);
2216
+ }
2217
+ onIndicatorMouseEnter(index) {
2218
+ if (this.changeItemOnIndicatorHover()) {
2219
+ this.stopTheSlideShow();
2220
+ this.onActiveIndexChange.emit(index);
2221
+ }
2222
+ }
2223
+ onIndicatorKeyDown(event, index) {
2224
+ switch (event.code) {
2225
+ case "Enter":
2226
+ case "Space":
2227
+ this.stopTheSlideShow();
2228
+ this.onActiveIndexChange.emit(index);
2229
+ event.preventDefault();
2230
+ break;
2231
+ case "ArrowDown":
2232
+ case "ArrowUp":
2233
+ event.preventDefault();
2234
+ break;
2235
+ default: break;
2236
+ }
2237
+ }
2238
+ isNavForwardDisabled() {
2239
+ return !this.circular() && this.activeIndex() === this.value().length - 1;
2240
+ }
2241
+ isNavBackwardDisabled() {
2242
+ return !this.circular() && this.activeIndex() === 0;
2243
+ }
2244
+ isIndicatorItemActive(index) {
2245
+ return this.activeIndex() === index;
2246
+ }
2247
+ ariaSlideLabel() {
2248
+ return this.galleria.config.translation.aria ? this.galleria.config.translation.aria.slide : void 0;
2249
+ }
2250
+ ariaSlideNumber(value) {
2251
+ return this.galleria.config.translation.aria ? this.galleria.config.translation.aria.slideNumber?.replace(/{slideNumber}/g, value) : void 0;
2252
+ }
2253
+ ariaPageLabel(value) {
2254
+ return this.galleria.config.translation.aria ? this.galleria.config.translation.aria.pageLabel?.replace(/{page}/g, value) : void 0;
2255
+ }
2256
+ static ɵfac = i0.ɵɵngDeclareFactory({
2257
+ minVersion: "12.0.0",
2258
+ version: "22.2.1",
2259
+ ngImport: i0,
2260
+ type: GalleriaItem,
2261
+ deps: [{ token: Galleria }],
2262
+ target: i0.ɵɵFactoryTarget.Component
2263
+ });
2264
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2265
+ minVersion: "17.0.0",
2266
+ version: "22.2.1",
2267
+ type: GalleriaItem,
2268
+ isStandalone: false,
2269
+ selector: "div[hGalleriaItem]",
2270
+ inputs: {
2271
+ id: {
2272
+ classPropertyName: "id",
2273
+ publicName: "id",
2274
+ isSignal: true,
2275
+ isRequired: false,
2276
+ transformFunction: null
2277
+ },
2278
+ circular: {
2279
+ classPropertyName: "circular",
2280
+ publicName: "circular",
2281
+ isSignal: true,
2282
+ isRequired: false,
2283
+ transformFunction: null
2284
+ },
2285
+ value: {
2286
+ classPropertyName: "value",
2287
+ publicName: "value",
2288
+ isSignal: true,
2289
+ isRequired: false,
2290
+ transformFunction: null
2291
+ },
2292
+ showItemNavigators: {
2293
+ classPropertyName: "showItemNavigators",
2294
+ publicName: "showItemNavigators",
2295
+ isSignal: true,
2296
+ isRequired: false,
2297
+ transformFunction: null
2298
+ },
2299
+ showIndicators: {
2300
+ classPropertyName: "showIndicators",
2301
+ publicName: "showIndicators",
2302
+ isSignal: true,
2303
+ isRequired: false,
2304
+ transformFunction: null
2305
+ },
2306
+ slideShowActive: {
2307
+ classPropertyName: "slideShowActive",
2308
+ publicName: "slideShowActive",
2309
+ isSignal: true,
2310
+ isRequired: false,
2311
+ transformFunction: null
2312
+ },
2313
+ changeItemOnIndicatorHover: {
2314
+ classPropertyName: "changeItemOnIndicatorHover",
2315
+ publicName: "changeItemOnIndicatorHover",
2316
+ isSignal: true,
2317
+ isRequired: false,
2318
+ transformFunction: null
2319
+ },
2320
+ autoPlay: {
2321
+ classPropertyName: "autoPlay",
2322
+ publicName: "autoPlay",
2323
+ isSignal: true,
2324
+ isRequired: false,
2325
+ transformFunction: null
2326
+ },
2327
+ templates: {
2328
+ classPropertyName: "templates",
2329
+ publicName: "templates",
2330
+ isSignal: true,
2331
+ isRequired: false,
2332
+ transformFunction: null
2333
+ },
2334
+ indicatorFacet: {
2335
+ classPropertyName: "indicatorFacet",
2336
+ publicName: "indicatorFacet",
2337
+ isSignal: true,
2338
+ isRequired: false,
2339
+ transformFunction: null
2340
+ },
2341
+ captionFacet: {
2342
+ classPropertyName: "captionFacet",
2343
+ publicName: "captionFacet",
2344
+ isSignal: true,
2345
+ isRequired: false,
2346
+ transformFunction: null
2347
+ },
2348
+ activeIndex: {
2349
+ classPropertyName: "activeIndex",
2350
+ publicName: "activeIndex",
2351
+ isSignal: true,
2352
+ isRequired: false,
2353
+ transformFunction: null
2354
+ }
2355
+ },
2356
+ outputs: {
2357
+ startSlideShow: "startSlideShow",
2358
+ stopSlideShow: "stopSlideShow",
2359
+ onActiveIndexChange: "onActiveIndexChange"
2360
+ },
2361
+ providers: [GalleriaStyle],
2362
+ usesInheritance: true,
2363
+ hostDirectives: [{ directive: i1.Bind }],
2364
+ ngImport: i0,
2365
+ template: "<div [hBind]=\"ptm('items')\" [class]=\"cx('items')\">\n @if (showItemNavigators()) {\n <button\n type=\"button\"\n role=\"navigation\"\n [hBind]=\"ptm('prevButton')\"\n [class]=\"cx('prevButton')\"\n (click)=\"navBackward($event)\"\n (focus)=\"onButtonFocus('left')\"\n (blur)=\"onButtonBlur('left')\"\n data-pc-group-section=\"itemnavigator\"\n >\n @if (!galleria.itemPreviousIconTemplate && !galleria._itemPreviousIconTemplate()) {\n <svg data-h-icon=\"chevron-left\" [hBind]=\"ptm('prevIcon')\" [class]=\"cx('prevIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"galleria.itemPreviousIconTemplate || galleria._itemPreviousIconTemplate()\"></ng-template>\n </button>\n }\n <div\n hGalleriaItemSlot\n [hBind]=\"ptm('item')\"\n [unstyled]=\"unstyled()\"\n [class]=\"cx('item')\"\n [item]=\"activeItem\"\n [templates]=\"templates()\"\n [id]=\"id() + '_item_' + activeIndex()\"\n role=\"group\"\n [class]=\"cx('item')\"\n [attr.aria-label]=\"ariaSlideNumber(activeIndex() + 1)\"\n [attr.aria-roledescription]=\"ariaSlideLabel()\"\n ></div>\n @if (showItemNavigators()) {\n <button\n type=\"button\"\n [hBind]=\"ptm('nextButton')\"\n [class]=\"cx('nextButton')\"\n (click)=\"navForward($event)\"\n role=\"navigation\"\n (focus)=\"onButtonFocus('right')\"\n (blur)=\"onButtonBlur('right')\"\n data-pc-group-section=\"itemnavigator\"\n >\n @if (!galleria.itemNextIconTemplate && !galleria._itemNextIconTemplate()) {\n <svg data-h-icon=\"chevron-right\" [hBind]=\"ptm('nextIcon')\" [class]=\"cx('nextIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"galleria.itemNextIconTemplate || galleria._itemNextIconTemplate()\"></ng-template>\n </button>\n }\n @if (captionFacet() || galleria.captionTemplate()) {\n <div hGalleriaItemSlot [hBind]=\"ptm('caption')\" [unstyled]=\"unstyled()\" [class]=\"cx('caption')\" type=\"caption\" [item]=\"activeItem\" [templates]=\"templates()\"></div>\n }\n</div>\n@if (showIndicators()) {\n <ul [hBind]=\"ptm('indicatorList')\" [class]=\"cx('indicatorList')\">\n @for (item of value(); track item; let index = $index) {\n <li\n [hBind]=\"getIndicatorPTOptions(index)\"\n tabindex=\"0\"\n (click)=\"onIndicatorClick(index)\"\n (mouseenter)=\"onIndicatorMouseEnter(index)\"\n (keydown)=\"onIndicatorKeyDown($event, index)\"\n [class]=\"cx('indicator', { index })\"\n [attr.aria-label]=\"ariaPageLabel(index + 1)\"\n [attr.aria-selected]=\"activeIndex() === index\"\n [attr.aria-controls]=\"id() + '_item_' + index\"\n [hBind]=\"ptm('indicator', getIndicatorPTOptions(index))\"\n [attr.data-h-active]=\"isIndicatorItemActive(index)\"\n >\n @if (!indicatorFacet() && !galleria.indicatorTemplate()) {\n <button type=\"button\" tabIndex=\"-1\" [hBind]=\"ptm('indicatorButton', getIndicatorPTOptions(index))\" [class]=\"cx('indicatorButton')\"></button>\n }\n @if (indicatorFacet() || galleria.indicatorTemplate()) {\n <div hGalleriaItemSlot type=\"indicator\" [index]=\"index\" [templates]=\"templates()\" [hBind]=\"ptm('item')\" [unstyled]=\"unstyled()\"></div>\n }\n </li>\n }\n </ul>\n}\n",
2366
+ dependencies: [
2367
+ {
2368
+ kind: "directive",
2369
+ type: i0.forwardRef(() => i2.NgTemplateOutlet),
2370
+ selector: "[ngTemplateOutlet]",
2371
+ inputs: [
2372
+ "ngTemplateOutletContext",
2373
+ "ngTemplateOutlet",
2374
+ "ngTemplateOutletInjector"
2375
+ ]
2376
+ },
2377
+ {
2378
+ kind: "component",
2379
+ type: i0.forwardRef(() => ChevronRightIcon),
2380
+ selector: "[data-h-icon=\"chevron-right\"]"
2381
+ },
2382
+ {
2383
+ kind: "component",
2384
+ type: i0.forwardRef(() => ChevronLeftIcon),
2385
+ selector: "[data-h-icon=\"chevron-left\"]"
2386
+ },
2387
+ {
2388
+ kind: "directive",
2389
+ type: i0.forwardRef(() => i1.Bind),
2390
+ selector: "[hBind]",
2391
+ inputs: ["hBind"]
2392
+ },
2393
+ {
2394
+ kind: "component",
2395
+ type: i0.forwardRef(() => GalleriaItemSlot),
2396
+ selector: "div[hGalleriaItemSlot]",
2397
+ inputs: [
2398
+ "templates",
2399
+ "index",
2400
+ "item",
2401
+ "type"
2402
+ ]
2403
+ }
2404
+ ],
2405
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2406
+ });
2407
+ };
2408
+ i0.ɵɵngDeclareClassMetadata({
2409
+ minVersion: "12.0.0",
2410
+ version: "22.2.1",
2411
+ ngImport: i0,
2412
+ type: GalleriaItem,
2413
+ decorators: [{
2414
+ type: Component,
2415
+ args: [{
2416
+ selector: "div[hGalleriaItem]",
2417
+ standalone: false,
2418
+ changeDetection: ChangeDetectionStrategy.OnPush,
2419
+ providers: [GalleriaStyle],
2420
+ hostDirectives: [Bind],
2421
+ template: "<div [hBind]=\"ptm('items')\" [class]=\"cx('items')\">\n @if (showItemNavigators()) {\n <button\n type=\"button\"\n role=\"navigation\"\n [hBind]=\"ptm('prevButton')\"\n [class]=\"cx('prevButton')\"\n (click)=\"navBackward($event)\"\n (focus)=\"onButtonFocus('left')\"\n (blur)=\"onButtonBlur('left')\"\n data-pc-group-section=\"itemnavigator\"\n >\n @if (!galleria.itemPreviousIconTemplate && !galleria._itemPreviousIconTemplate()) {\n <svg data-h-icon=\"chevron-left\" [hBind]=\"ptm('prevIcon')\" [class]=\"cx('prevIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"galleria.itemPreviousIconTemplate || galleria._itemPreviousIconTemplate()\"></ng-template>\n </button>\n }\n <div\n hGalleriaItemSlot\n [hBind]=\"ptm('item')\"\n [unstyled]=\"unstyled()\"\n [class]=\"cx('item')\"\n [item]=\"activeItem\"\n [templates]=\"templates()\"\n [id]=\"id() + '_item_' + activeIndex()\"\n role=\"group\"\n [class]=\"cx('item')\"\n [attr.aria-label]=\"ariaSlideNumber(activeIndex() + 1)\"\n [attr.aria-roledescription]=\"ariaSlideLabel()\"\n ></div>\n @if (showItemNavigators()) {\n <button\n type=\"button\"\n [hBind]=\"ptm('nextButton')\"\n [class]=\"cx('nextButton')\"\n (click)=\"navForward($event)\"\n role=\"navigation\"\n (focus)=\"onButtonFocus('right')\"\n (blur)=\"onButtonBlur('right')\"\n data-pc-group-section=\"itemnavigator\"\n >\n @if (!galleria.itemNextIconTemplate && !galleria._itemNextIconTemplate()) {\n <svg data-h-icon=\"chevron-right\" [hBind]=\"ptm('nextIcon')\" [class]=\"cx('nextIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"galleria.itemNextIconTemplate || galleria._itemNextIconTemplate()\"></ng-template>\n </button>\n }\n @if (captionFacet() || galleria.captionTemplate()) {\n <div hGalleriaItemSlot [hBind]=\"ptm('caption')\" [unstyled]=\"unstyled()\" [class]=\"cx('caption')\" type=\"caption\" [item]=\"activeItem\" [templates]=\"templates()\"></div>\n }\n</div>\n@if (showIndicators()) {\n <ul [hBind]=\"ptm('indicatorList')\" [class]=\"cx('indicatorList')\">\n @for (item of value(); track item; let index = $index) {\n <li\n [hBind]=\"getIndicatorPTOptions(index)\"\n tabindex=\"0\"\n (click)=\"onIndicatorClick(index)\"\n (mouseenter)=\"onIndicatorMouseEnter(index)\"\n (keydown)=\"onIndicatorKeyDown($event, index)\"\n [class]=\"cx('indicator', { index })\"\n [attr.aria-label]=\"ariaPageLabel(index + 1)\"\n [attr.aria-selected]=\"activeIndex() === index\"\n [attr.aria-controls]=\"id() + '_item_' + index\"\n [hBind]=\"ptm('indicator', getIndicatorPTOptions(index))\"\n [attr.data-h-active]=\"isIndicatorItemActive(index)\"\n >\n @if (!indicatorFacet() && !galleria.indicatorTemplate()) {\n <button type=\"button\" tabIndex=\"-1\" [hBind]=\"ptm('indicatorButton', getIndicatorPTOptions(index))\" [class]=\"cx('indicatorButton')\"></button>\n }\n @if (indicatorFacet() || galleria.indicatorTemplate()) {\n <div hGalleriaItemSlot type=\"indicator\" [index]=\"index\" [templates]=\"templates()\" [hBind]=\"ptm('item')\" [unstyled]=\"unstyled()\"></div>\n }\n </li>\n }\n </ul>\n}\n"
2422
+ }]
2423
+ }],
2424
+ ctorParameters: () => [{ type: Galleria }],
2425
+ propDecorators: {
2426
+ id: [{
2427
+ type: i0.Input,
2428
+ args: [{
2429
+ isSignal: true,
2430
+ alias: "id",
2431
+ required: false
2432
+ }]
2433
+ }],
2434
+ circular: [{
2435
+ type: i0.Input,
2436
+ args: [{
2437
+ isSignal: true,
2438
+ alias: "circular",
2439
+ required: false
2440
+ }]
2441
+ }],
2442
+ value: [{
2443
+ type: i0.Input,
2444
+ args: [{
2445
+ isSignal: true,
2446
+ alias: "value",
2447
+ required: false
2448
+ }]
2449
+ }],
2450
+ showItemNavigators: [{
2451
+ type: i0.Input,
2452
+ args: [{
2453
+ isSignal: true,
2454
+ alias: "showItemNavigators",
2455
+ required: false
2456
+ }]
2457
+ }],
2458
+ showIndicators: [{
2459
+ type: i0.Input,
2460
+ args: [{
2461
+ isSignal: true,
2462
+ alias: "showIndicators",
2463
+ required: false
2464
+ }]
2465
+ }],
2466
+ slideShowActive: [{
2467
+ type: i0.Input,
2468
+ args: [{
2469
+ isSignal: true,
2470
+ alias: "slideShowActive",
2471
+ required: false
2472
+ }]
2473
+ }],
2474
+ changeItemOnIndicatorHover: [{
2475
+ type: i0.Input,
2476
+ args: [{
2477
+ isSignal: true,
2478
+ alias: "changeItemOnIndicatorHover",
2479
+ required: false
2480
+ }]
2481
+ }],
2482
+ autoPlay: [{
2483
+ type: i0.Input,
2484
+ args: [{
2485
+ isSignal: true,
2486
+ alias: "autoPlay",
2487
+ required: false
2488
+ }]
2489
+ }],
2490
+ templates: [{
2491
+ type: i0.Input,
2492
+ args: [{
2493
+ isSignal: true,
2494
+ alias: "templates",
2495
+ required: false
2496
+ }]
2497
+ }],
2498
+ indicatorFacet: [{
2499
+ type: i0.Input,
2500
+ args: [{
2501
+ isSignal: true,
2502
+ alias: "indicatorFacet",
2503
+ required: false
2504
+ }]
2505
+ }],
2506
+ captionFacet: [{
2507
+ type: i0.Input,
2508
+ args: [{
2509
+ isSignal: true,
2510
+ alias: "captionFacet",
2511
+ required: false
2512
+ }]
2513
+ }],
2514
+ startSlideShow: [{
2515
+ type: i0.Output,
2516
+ args: ["startSlideShow"]
2517
+ }],
2518
+ stopSlideShow: [{
2519
+ type: i0.Output,
2520
+ args: ["stopSlideShow"]
2521
+ }],
2522
+ onActiveIndexChange: [{
2523
+ type: i0.Output,
2524
+ args: ["onActiveIndexChange"]
2525
+ }],
2526
+ activeIndex: [{
2527
+ type: i0.Input,
2528
+ args: [{
2529
+ isSignal: true,
2530
+ alias: "activeIndex",
2531
+ required: false
2532
+ }]
2533
+ }]
2534
+ }
2535
+ });
2536
+ var GalleriaThumbnails = class GalleriaThumbnails extends BaseComponent {
2537
+ galleria;
2538
+ hostName = "Galleria";
2539
+ bindDirectiveInstance = inject(Bind, { self: true });
2540
+ onAfterViewChecked() {
2541
+ this.bindDirectiveInstance.setAttrs(this.ptm("thumbnails"));
2542
+ }
2543
+ containerId = input(...ngDevMode ? [void 0, { debugName: "containerId" }] : /* istanbul ignore next */ []);
2544
+ value = input(...ngDevMode ? [void 0, { debugName: "value" }] : /* istanbul ignore next */ []);
2545
+ isVertical = input(false, {
2546
+ ...ngDevMode ? { debugName: "isVertical" } : /* istanbul ignore next */ {},
2547
+ transform: booleanAttribute
2548
+ });
2549
+ slideShowActive = input(false, {
2550
+ ...ngDevMode ? { debugName: "slideShowActive" } : /* istanbul ignore next */ {},
2551
+ transform: booleanAttribute
2552
+ });
2553
+ circular = input(false, {
2554
+ ...ngDevMode ? { debugName: "circular" } : /* istanbul ignore next */ {},
2555
+ transform: booleanAttribute
2556
+ });
2557
+ responsiveOptions = input(...ngDevMode ? [void 0, { debugName: "responsiveOptions" }] : /* istanbul ignore next */ []);
2558
+ contentHeight = input("300px", ...ngDevMode ? [{ debugName: "contentHeight" }] : /* istanbul ignore next */ []);
2559
+ showThumbnailNavigators = input(true, ...ngDevMode ? [{ debugName: "showThumbnailNavigators" }] : /* istanbul ignore next */ []);
2560
+ templates = input(...ngDevMode ? [void 0, { debugName: "templates" }] : /* istanbul ignore next */ []);
2561
+ onActiveIndexChange = output();
2562
+ stopSlideShow = output();
2563
+ itemsContainer = viewChild("itemsContainer", ...ngDevMode ? [{ debugName: "itemsContainer" }] : /* istanbul ignore next */ []);
2564
+ numVisible = input(0, ...ngDevMode ? [{ debugName: "numVisible" }] : /* istanbul ignore next */ []);
2565
+ activeIndex = input(0, ...ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []);
2566
+ index;
2567
+ startPos = null;
2568
+ thumbnailsStyle = null;
2569
+ sortedResponsiveOptions = null;
2570
+ totalShiftedItems = 0;
2571
+ page = 0;
2572
+ documentResizeListener;
2573
+ _numVisible = 0;
2574
+ d_numVisible = 0;
2575
+ _oldNumVisible = 0;
2576
+ _activeIndex = 0;
2577
+ _oldactiveIndex = 0;
2578
+ _componentStyle = inject(GalleriaStyle);
2579
+ constructor(galleria) {
2580
+ super();
2581
+ this.galleria = galleria;
2582
+ effect(() => {
2583
+ const numVisible = this.numVisible();
2584
+ this._numVisible = numVisible;
2585
+ this._oldNumVisible = this.d_numVisible;
2586
+ this.d_numVisible = numVisible;
2587
+ });
2588
+ effect(() => {
2589
+ this._oldactiveIndex = this._activeIndex;
2590
+ this._activeIndex = this.activeIndex();
2591
+ });
2592
+ }
2593
+ onInit() {
2594
+ if (isPlatformBrowser(this.platformId)) {
2595
+ this.createStyle();
2596
+ if (this.responsiveOptions()) this.bindDocumentListeners();
2597
+ }
2598
+ }
2599
+ onAfterContentChecked() {
2600
+ let totalShiftedItems = this.totalShiftedItems;
2601
+ const itemsContainer = this.itemsContainer();
2602
+ if ((this._oldNumVisible !== this.d_numVisible || this._oldactiveIndex !== this._activeIndex) && itemsContainer) {
2603
+ if (this._activeIndex <= this.getMedianItemIndex()) totalShiftedItems = 0;
2604
+ else if (this.value().length - this.d_numVisible + this.getMedianItemIndex() < this._activeIndex) totalShiftedItems = this.d_numVisible - this.value().length;
2605
+ else if (this.value().length - this.d_numVisible < this._activeIndex && this.d_numVisible % 2 === 0) totalShiftedItems = this._activeIndex * -1 + this.getMedianItemIndex() + 1;
2606
+ else totalShiftedItems = this._activeIndex * -1 + this.getMedianItemIndex();
2607
+ if (totalShiftedItems !== this.totalShiftedItems) this.totalShiftedItems = totalShiftedItems;
2608
+ if (itemsContainer && itemsContainer.nativeElement) itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / this.d_numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this.d_numVisible)}%, 0, 0)`;
2609
+ if (this._oldactiveIndex !== this._activeIndex) {
2610
+ this.document.body.setAttribute("data-h-items-hidden", "false");
2611
+ !this.$unstyled() && removeClass(itemsContainer.nativeElement, "h-items-hidden");
2612
+ itemsContainer.nativeElement.style.transition = "transform 500ms ease 0s";
2613
+ }
2614
+ this._oldactiveIndex = this._activeIndex;
2615
+ this._oldNumVisible = this.d_numVisible;
2616
+ }
2617
+ }
2618
+ onAfterViewInit() {
2619
+ if (isPlatformBrowser(this.platformId)) this.calculatePosition();
2620
+ }
2621
+ createStyle() {
2622
+ if (!this.thumbnailsStyle) {
2623
+ this.thumbnailsStyle = this.document.createElement("style");
2624
+ setAttribute(this.thumbnailsStyle, "nonce", this.galleria.config?.csp()?.nonce);
2625
+ this.document.body.appendChild(this.thumbnailsStyle);
2626
+ }
2627
+ let innerHTML = `
1600
2628
  #${this.containerId()} .h-galleria-thumbnail-item {
1601
2629
  flex: 1 0 ${100 / this.d_numVisible}%
1602
2630
  }
1603
2631
  `;
1604
- const responsiveOptions = this.responsiveOptions();
1605
- if (responsiveOptions && !this.$unstyled()) {
1606
- this.sortedResponsiveOptions = [...responsiveOptions];
1607
- this.sortedResponsiveOptions.sort((data1, data2) => {
1608
- const value1 = data1.breakpoint;
1609
- const value2 = data2.breakpoint;
1610
- let result;
1611
- if (value1 == null && value2 != null)
1612
- result = -1;
1613
- else if (value1 != null && value2 == null)
1614
- result = 1;
1615
- else if (value1 == null && value2 == null)
1616
- result = 0;
1617
- else if (typeof value1 === 'string' && typeof value2 === 'string')
1618
- result = value1.localeCompare(value2, undefined, { numeric: true });
1619
- else
1620
- result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
1621
- return -1 * result;
1622
- });
1623
- for (let i = 0; i < this.sortedResponsiveOptions.length; i++) {
1624
- let res = this.sortedResponsiveOptions[i];
1625
- innerHTML += `
2632
+ const responsiveOptions = this.responsiveOptions();
2633
+ if (responsiveOptions && !this.$unstyled()) {
2634
+ this.sortedResponsiveOptions = [...responsiveOptions];
2635
+ this.sortedResponsiveOptions.sort((data1, data2) => {
2636
+ const value1 = data1.breakpoint;
2637
+ const value2 = data2.breakpoint;
2638
+ let result;
2639
+ if (value1 == null && value2 != null) result = -1;
2640
+ else if (value1 != null && value2 == null) result = 1;
2641
+ else if (value1 == null && value2 == null) result = 0;
2642
+ else if (typeof value1 === "string" && typeof value2 === "string") result = value1.localeCompare(value2, void 0, { numeric: true });
2643
+ else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
2644
+ return -1 * result;
2645
+ });
2646
+ for (let i = 0; i < this.sortedResponsiveOptions.length; i++) {
2647
+ let res = this.sortedResponsiveOptions[i];
2648
+ innerHTML += `
1626
2649
  @media screen and (max-width: ${res.breakpoint}) {
1627
2650
  #${this.containerId()} .h-galleria-thumbnail-item {
1628
2651
  flex: 1 0 ${100 / res.numVisible}%
1629
2652
  }
1630
2653
  }
1631
2654
  `;
1632
- }
1633
- }
1634
- this.thumbnailsStyle.innerHTML = innerHTML;
1635
- setAttribute(this.thumbnailsStyle, 'nonce', this.galleria.config?.csp()?.nonce);
1636
- }
1637
- calculatePosition() {
1638
- if (isPlatformBrowser(this.platformId)) {
1639
- if (this.itemsContainer() && this.sortedResponsiveOptions) {
1640
- let windowWidth = window.innerWidth;
1641
- let matchedResponsiveData = {
1642
- numVisible: this._numVisible
1643
- };
1644
- for (let i = 0; i < this.sortedResponsiveOptions.length; i++) {
1645
- let res = this.sortedResponsiveOptions[i];
1646
- if (parseInt(res.breakpoint, 10) >= windowWidth) {
1647
- matchedResponsiveData = res;
1648
- }
1649
- }
1650
- if (this.d_numVisible !== matchedResponsiveData.numVisible) {
1651
- this.d_numVisible = matchedResponsiveData.numVisible;
1652
- this.cd.markForCheck();
1653
- }
1654
- }
1655
- }
1656
- }
1657
- getTabIndex(index) {
1658
- return this.isItemActive(index) ? 0 : null;
1659
- }
1660
- navForward(e) {
1661
- this.stopTheSlideShow();
1662
- let nextItemIndex = this._activeIndex + 1;
1663
- const circular = this.circular();
1664
- if (nextItemIndex + this.totalShiftedItems > this.getMedianItemIndex() && (-1 * this.totalShiftedItems < this.getTotalPageNumber() - 1 || circular)) {
1665
- this.step(-1);
1666
- }
1667
- let activeIndex = circular && this.value().length - 1 === this._activeIndex ? 0 : nextItemIndex;
1668
- this.onActiveIndexChange.emit(activeIndex);
1669
- if (e.cancelable) {
1670
- e.preventDefault();
1671
- }
1672
- }
1673
- navBackward(e) {
1674
- this.stopTheSlideShow();
1675
- let prevItemIndex = this._activeIndex !== 0 ? this._activeIndex - 1 : 0;
1676
- let diff = prevItemIndex + this.totalShiftedItems;
1677
- const circular = this.circular();
1678
- if (this.d_numVisible - diff - 1 > this.getMedianItemIndex() && (-1 * this.totalShiftedItems !== 0 || circular)) {
1679
- this.step(1);
1680
- }
1681
- let activeIndex = circular && this._activeIndex === 0 ? this.value().length - 1 : prevItemIndex;
1682
- this.onActiveIndexChange.emit(activeIndex);
1683
- if (e.cancelable) {
1684
- e.preventDefault();
1685
- }
1686
- }
1687
- onItemClick(index) {
1688
- this.stopTheSlideShow();
1689
- let selectedItemIndex = index;
1690
- if (selectedItemIndex !== this._activeIndex) {
1691
- const diff = selectedItemIndex + this.totalShiftedItems;
1692
- let dir = 0;
1693
- if (selectedItemIndex < this._activeIndex) {
1694
- dir = this.d_numVisible - diff - 1 - this.getMedianItemIndex();
1695
- if (dir > 0 && -1 * this.totalShiftedItems !== 0) {
1696
- this.step(dir);
1697
- }
1698
- }
1699
- else {
1700
- dir = this.getMedianItemIndex() - diff;
1701
- if (dir < 0 && -1 * this.totalShiftedItems < this.getTotalPageNumber() - 1) {
1702
- this.step(dir);
1703
- }
1704
- }
1705
- this._oldactiveIndex = this._activeIndex;
1706
- this._activeIndex = selectedItemIndex;
1707
- this.onActiveIndexChange.emit(this._activeIndex);
1708
- }
1709
- }
1710
- onThumbnailKeydown(event, index) {
1711
- if (event.code === 'Enter' || event.code === 'Space') {
1712
- this.onItemClick(index);
1713
- event.preventDefault();
1714
- }
1715
- switch (event.code) {
1716
- case 'ArrowRight':
1717
- this.onRightKey();
1718
- break;
1719
- case 'ArrowLeft':
1720
- this.onLeftKey();
1721
- break;
1722
- case 'Home':
1723
- this.onHomeKey();
1724
- event.preventDefault();
1725
- break;
1726
- case 'End':
1727
- this.onEndKey();
1728
- event.preventDefault();
1729
- break;
1730
- case 'ArrowUp':
1731
- case 'ArrowDown':
1732
- event.preventDefault();
1733
- break;
1734
- case 'Tab':
1735
- this.onTabKey();
1736
- break;
1737
- default:
1738
- break;
1739
- }
1740
- }
1741
- onRightKey() {
1742
- const indicators = find(this.itemsContainer()?.nativeElement, '[data-pc-section="thumbnailitem"]');
1743
- const activeIndex = this.findFocusedIndicatorIndex();
1744
- this.changedFocusedIndicator(activeIndex, activeIndex + 1 === indicators.length ? indicators.length - 1 : activeIndex + 1);
1745
- }
1746
- onLeftKey() {
1747
- const activeIndex = this.findFocusedIndicatorIndex();
1748
- this.changedFocusedIndicator(activeIndex, activeIndex - 1 <= 0 ? 0 : activeIndex - 1);
1749
- }
1750
- onHomeKey() {
1751
- const activeIndex = this.findFocusedIndicatorIndex();
1752
- this.changedFocusedIndicator(activeIndex, 0);
1753
- }
1754
- onEndKey() {
1755
- const indicators = find(this.itemsContainer()?.nativeElement, '[data-pc-section="thumbnailitem"]');
1756
- const activeIndex = this.findFocusedIndicatorIndex();
1757
- this.changedFocusedIndicator(activeIndex, indicators.length - 1);
1758
- }
1759
- onTabKey() {
1760
- const indicators = [...find(this.itemsContainer()?.nativeElement, '[data-pc-section="thumbnailitem"]')];
1761
- const highlightedIndex = indicators.findIndex((ind) => getAttribute(ind, 'data-h-active') === true);
1762
- const activeIndicator = findSingle(this.itemsContainer()?.nativeElement, '[tabindex="0"]');
1763
- const activeIndex = indicators.findIndex((ind) => ind === activeIndicator?.parentElement);
1764
- indicators[activeIndex].children[0].tabIndex = '-1';
1765
- indicators[highlightedIndex].children[0].tabIndex = '0';
1766
- }
1767
- findFocusedIndicatorIndex() {
1768
- const indicators = [...find(this.itemsContainer()?.nativeElement, '[data-pc-section="thumbnailitem"]')];
1769
- const activeIndicator = findSingle(this.itemsContainer()?.nativeElement, '[data-pc-section="thumbnailitem"] > [tabindex="0"]');
1770
- return indicators.findIndex((ind) => ind === activeIndicator?.parentElement);
1771
- }
1772
- changedFocusedIndicator(prevInd, nextInd) {
1773
- const indicators = find(this.itemsContainer()?.nativeElement, '[data-pc-section="thumbnailitem"]');
1774
- indicators[prevInd].children[0].tabIndex = '-1';
1775
- indicators[nextInd].children[0].tabIndex = '0';
1776
- indicators[nextInd].children[0].focus();
1777
- }
1778
- step(dir) {
1779
- let totalShiftedItems = this.totalShiftedItems + dir;
1780
- if (dir < 0 && -1 * totalShiftedItems + this.d_numVisible > this.value().length - 1) {
1781
- totalShiftedItems = this.d_numVisible - this.value().length;
1782
- }
1783
- else if (dir > 0 && totalShiftedItems > 0) {
1784
- totalShiftedItems = 0;
1785
- }
1786
- if (this.circular()) {
1787
- const value = this.value();
1788
- if (dir < 0 && value.length - 1 === this._activeIndex) {
1789
- totalShiftedItems = 0;
1790
- }
1791
- else if (dir > 0 && this._activeIndex === 0) {
1792
- totalShiftedItems = this.d_numVisible - value.length;
1793
- }
1794
- }
1795
- const itemsContainer = this.itemsContainer();
1796
- if (itemsContainer) {
1797
- this.document.body.setAttribute('data-h-items-hidden', 'false');
1798
- !this.$unstyled() && removeClass(itemsContainer.nativeElement, 'h-items-hidden');
1799
- itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / this.d_numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this.d_numVisible)}%, 0, 0)`;
1800
- itemsContainer.nativeElement.style.transition = 'transform 500ms ease 0s';
1801
- }
1802
- this.totalShiftedItems = totalShiftedItems;
1803
- }
1804
- stopTheSlideShow() {
1805
- if (this.slideShowActive() && this.stopSlideShow) {
1806
- this.stopSlideShow.emit();
1807
- }
1808
- }
1809
- changePageOnTouch(e, diff) {
1810
- if (diff < 0) {
1811
- // left
1812
- this.navForward(e);
1813
- }
1814
- else {
1815
- // right
1816
- this.navBackward(e);
1817
- }
1818
- }
1819
- getTotalPageNumber() {
1820
- return this.value().length > this.d_numVisible ? this.value().length - this.d_numVisible + 1 : 0;
1821
- }
1822
- getMedianItemIndex() {
1823
- let index = Math.floor(this.d_numVisible / 2);
1824
- return this.d_numVisible % 2 ? index : index - 1;
1825
- }
1826
- onTransitionEnd() {
1827
- const itemsContainer = this.itemsContainer();
1828
- if (itemsContainer && itemsContainer.nativeElement) {
1829
- this.document.body.setAttribute('data-h-items-hidden', 'true');
1830
- !this.$unstyled() && addClass(itemsContainer.nativeElement, 'h-items-hidden');
1831
- itemsContainer.nativeElement.style.transition = '';
1832
- }
1833
- }
1834
- onTouchEnd(e) {
1835
- let touchobj = e.changedTouches[0];
1836
- if (this.isVertical()) {
1837
- this.changePageOnTouch(e, touchobj.pageY - this.startPos.y);
1838
- }
1839
- else {
1840
- this.changePageOnTouch(e, touchobj.pageX - this.startPos.x);
1841
- }
1842
- }
1843
- onTouchMove(e) {
1844
- if (e.cancelable) {
1845
- e.preventDefault();
1846
- }
1847
- }
1848
- onTouchStart(e) {
1849
- let touchobj = e.changedTouches[0];
1850
- this.startPos = {
1851
- x: touchobj.pageX,
1852
- y: touchobj.pageY
1853
- };
1854
- }
1855
- isNavBackwardDisabled() {
1856
- return (!this.circular() && this._activeIndex === 0) || this.value().length <= this.d_numVisible;
1857
- }
1858
- isNavForwardDisabled() {
1859
- const value = this.value();
1860
- return (!this.circular() && this._activeIndex === value.length - 1) || value.length <= this.d_numVisible;
1861
- }
1862
- firstItemAciveIndex() {
1863
- return this.totalShiftedItems * -1;
1864
- }
1865
- lastItemActiveIndex() {
1866
- return this.firstItemAciveIndex() + this.d_numVisible - 1;
1867
- }
1868
- isItemActive(index) {
1869
- return this.firstItemAciveIndex() <= index && this.lastItemActiveIndex() >= index;
1870
- }
1871
- bindDocumentListeners() {
1872
- if (isPlatformBrowser(this.platformId)) {
1873
- const window = this.document.defaultView || 'window';
1874
- this.documentResizeListener = this.renderer.listen(window, 'resize', () => {
1875
- this.calculatePosition();
1876
- });
1877
- }
1878
- }
1879
- unbindDocumentListeners() {
1880
- if (this.documentResizeListener) {
1881
- this.documentResizeListener();
1882
- this.documentResizeListener = null;
1883
- }
1884
- }
1885
- onDestroy() {
1886
- if (this.responsiveOptions()) {
1887
- this.unbindDocumentListeners();
1888
- }
1889
- if (this.thumbnailsStyle) {
1890
- this.thumbnailsStyle.parentNode?.removeChild(this.thumbnailsStyle);
1891
- }
1892
- }
1893
- ariaPrevButtonLabel() {
1894
- return this.galleria.config.translation.aria ? this.galleria.config.translation.aria.prevPageLabel : undefined;
1895
- }
1896
- ariaNextButtonLabel() {
1897
- return this.galleria.config.translation.aria ? this.galleria.config.translation.aria.nextPageLabel : undefined;
1898
- }
1899
- ariaPageLabel(value) {
1900
- return this.galleria.config.translation.aria ? this.galleria.config.translation.aria.pageLabel?.replace(/{page}/g, value) : undefined;
1901
- }
1902
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: GalleriaThumbnails, deps: [{ token: Galleria }], target: i0.ɵɵFactoryTarget.Component });
1903
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: GalleriaThumbnails, isStandalone: false, selector: "div[hGalleriaThumbnails]", inputs: { containerId: { classPropertyName: "containerId", publicName: "containerId", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, isVertical: { classPropertyName: "isVertical", publicName: "isVertical", isSignal: true, isRequired: false, transformFunction: null }, slideShowActive: { classPropertyName: "slideShowActive", publicName: "slideShowActive", isSignal: true, isRequired: false, transformFunction: null }, circular: { classPropertyName: "circular", publicName: "circular", isSignal: true, isRequired: false, transformFunction: null }, responsiveOptions: { classPropertyName: "responsiveOptions", publicName: "responsiveOptions", isSignal: true, isRequired: false, transformFunction: null }, contentHeight: { classPropertyName: "contentHeight", publicName: "contentHeight", isSignal: true, isRequired: false, transformFunction: null }, showThumbnailNavigators: { classPropertyName: "showThumbnailNavigators", publicName: "showThumbnailNavigators", isSignal: true, isRequired: false, transformFunction: null }, templates: { classPropertyName: "templates", publicName: "templates", isSignal: true, isRequired: false, transformFunction: null }, numVisible: { classPropertyName: "numVisible", publicName: "numVisible", isSignal: true, isRequired: false, transformFunction: null }, activeIndex: { classPropertyName: "activeIndex", publicName: "activeIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onActiveIndexChange: "onActiveIndexChange", stopSlideShow: "stopSlideShow" }, host: { properties: { "class": "cx(\"thumbnails\")" } }, providers: [GalleriaStyle], viewQueries: [{ propertyName: "itemsContainer", first: true, predicate: ["itemsContainer"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: "<div [hBind]=\"ptm('thumbnailContent')\" [class]=\"cx('thumbnailContent')\">\n @if (showThumbnailNavigators()) {\n <button\n type=\"button\"\n [hBind]=\"ptm('thumbnailPrevButton')\"\n [class]=\"cx('thumbnailPrevButton')\"\n (click)=\"navBackward($event)\"\n hRipple\n [attr.aria-label]=\"ariaPrevButtonLabel()\"\n data-pc-group-section=\"thumbnailnavigator\"\n >\n @if (!galleria.previousThumbnailIconTemplate && !galleria._previousThumbnailIconTemplate()) {\n @if (!isVertical()) {\n <svg data-h-icon=\"chevron-left\" [hBind]=\"ptm('thumbnailPrevIcon')\" [class]=\"cx('thumbnailPrevIcon')\" />\n }\n @if (isVertical()) {\n <svg data-h-icon=\"chevron-up\" [hBind]=\"ptm('thumbnailPrevIcon')\" [class]=\"cx('thumbnailPrevIcon')\" />\n }\n }\n <ng-template *ngTemplateOutlet=\"galleria.previousThumbnailIconTemplate || galleria._previousThumbnailIconTemplate()\"></ng-template>\n </button>\n }\n <div [hBind]=\"ptm('thumbnailsViewport')\" [class]=\"cx('thumbnailsViewport')\" [ngStyle]=\"{ height: isVertical() ? contentHeight() : '' }\">\n <div #itemsContainer [hBind]=\"ptm('thumbnailItems')\" [class]=\"cx('thumbnailItems')\" (transitionend)=\"onTransitionEnd()\" (touchstart)=\"onTouchStart($event)\" (touchmove)=\"onTouchMove($event)\" role=\"tablist\">\n @for (item of value(); track item; let index = $index) {\n <div\n [hBind]=\"ptm('thumbnailItem')\"\n [class]=\"cx('thumbnailItem', { index, activeIndex: _activeIndex })\"\n [attr.aria-selected]=\"_activeIndex === index\"\n [attr.aria-controls]=\"containerId() + '_item_' + index\"\n (keydown)=\"onThumbnailKeydown($event, index)\"\n [attr.data-h-active]=\"_activeIndex === index\"\n >\n <div\n [hBind]=\"ptm('thumbnail')\"\n [class]=\"cx('thumbnail')\"\n [attr.tabindex]=\"_activeIndex === index ? 0 : -1\"\n [attr.aria-current]=\"_activeIndex === index ? 'page' : undefined\"\n [attr.aria-label]=\"ariaPageLabel(index + 1)\"\n (click)=\"onItemClick(index)\"\n (touchend)=\"onItemClick(index)\"\n (keydown.enter)=\"onItemClick(index)\"\n >\n <div hGalleriaItemSlot type=\"thumbnail\" [hBind]=\"ptm('thumbnailItem')\" [item]=\"item\" [templates]=\"templates()\" [unstyled]=\"unstyled()\"></div>\n </div>\n </div>\n }\n </div>\n </div>\n @if (showThumbnailNavigators()) {\n <button\n type=\"button\"\n [hBind]=\"ptm('thumbnailNextButton')\"\n [class]=\"cx('thumbnailNextButton')\"\n (click)=\"navForward($event)\"\n hRipple\n [attr.aria-label]=\"ariaNextButtonLabel()\"\n data-pc-group-section=\"thumbnailnavigator\"\n >\n @if (!galleria.nextThumbnailIconTemplate && !galleria._nextThumbnailIconTemplate()) {\n @if (!isVertical()) {\n <svg data-h-icon=\"chevron-right\" [hBind]=\"ptm('thumbnailNextIcon')\" [class]=\"cx('thumbnailNextIcon')\" />\n }\n @if (isVertical()) {\n <svg data-h-icon=\"chevron-down\" [hBind]=\"ptm('thumbnailNextIcon')\" [class]=\"cx('thumbnailNextIcon')\" />\n }\n }\n <ng-template *ngTemplateOutlet=\"galleria.nextThumbnailIconTemplate || galleria._nextThumbnailIconTemplate()\"></ng-template>\n </button>\n }\n</div>\n", dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i0.forwardRef(() => Ripple), selector: "[hRipple]" }, { kind: "component", type: i0.forwardRef(() => ChevronRightIcon), selector: "[data-h-icon=\"chevron-right\"]" }, { kind: "component", type: i0.forwardRef(() => ChevronUpIcon), selector: "[data-h-icon=\"chevron-up\"]" }, { kind: "component", type: i0.forwardRef(() => ChevronDownIcon), selector: "[data-h-icon=\"chevron-down\"]" }, { kind: "component", type: i0.forwardRef(() => ChevronLeftIcon), selector: "[data-h-icon=\"chevron-left\"]" }, { kind: "directive", type: i0.forwardRef(() => i1.Bind), selector: "[hBind]", inputs: ["hBind"] }, { kind: "component", type: i0.forwardRef(() => GalleriaItemSlot), selector: "div[hGalleriaItemSlot]", inputs: ["templates", "index", "item", "type"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1904
- }
1905
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: GalleriaThumbnails, decorators: [{
1906
- type: Component,
1907
- args: [{ selector: 'div[hGalleriaThumbnails]', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, providers: [GalleriaStyle], host: {
1908
- '[class]': 'cx("thumbnails")'
1909
- }, hostDirectives: [Bind], template: "<div [hBind]=\"ptm('thumbnailContent')\" [class]=\"cx('thumbnailContent')\">\n @if (showThumbnailNavigators()) {\n <button\n type=\"button\"\n [hBind]=\"ptm('thumbnailPrevButton')\"\n [class]=\"cx('thumbnailPrevButton')\"\n (click)=\"navBackward($event)\"\n hRipple\n [attr.aria-label]=\"ariaPrevButtonLabel()\"\n data-pc-group-section=\"thumbnailnavigator\"\n >\n @if (!galleria.previousThumbnailIconTemplate && !galleria._previousThumbnailIconTemplate()) {\n @if (!isVertical()) {\n <svg data-h-icon=\"chevron-left\" [hBind]=\"ptm('thumbnailPrevIcon')\" [class]=\"cx('thumbnailPrevIcon')\" />\n }\n @if (isVertical()) {\n <svg data-h-icon=\"chevron-up\" [hBind]=\"ptm('thumbnailPrevIcon')\" [class]=\"cx('thumbnailPrevIcon')\" />\n }\n }\n <ng-template *ngTemplateOutlet=\"galleria.previousThumbnailIconTemplate || galleria._previousThumbnailIconTemplate()\"></ng-template>\n </button>\n }\n <div [hBind]=\"ptm('thumbnailsViewport')\" [class]=\"cx('thumbnailsViewport')\" [ngStyle]=\"{ height: isVertical() ? contentHeight() : '' }\">\n <div #itemsContainer [hBind]=\"ptm('thumbnailItems')\" [class]=\"cx('thumbnailItems')\" (transitionend)=\"onTransitionEnd()\" (touchstart)=\"onTouchStart($event)\" (touchmove)=\"onTouchMove($event)\" role=\"tablist\">\n @for (item of value(); track item; let index = $index) {\n <div\n [hBind]=\"ptm('thumbnailItem')\"\n [class]=\"cx('thumbnailItem', { index, activeIndex: _activeIndex })\"\n [attr.aria-selected]=\"_activeIndex === index\"\n [attr.aria-controls]=\"containerId() + '_item_' + index\"\n (keydown)=\"onThumbnailKeydown($event, index)\"\n [attr.data-h-active]=\"_activeIndex === index\"\n >\n <div\n [hBind]=\"ptm('thumbnail')\"\n [class]=\"cx('thumbnail')\"\n [attr.tabindex]=\"_activeIndex === index ? 0 : -1\"\n [attr.aria-current]=\"_activeIndex === index ? 'page' : undefined\"\n [attr.aria-label]=\"ariaPageLabel(index + 1)\"\n (click)=\"onItemClick(index)\"\n (touchend)=\"onItemClick(index)\"\n (keydown.enter)=\"onItemClick(index)\"\n >\n <div hGalleriaItemSlot type=\"thumbnail\" [hBind]=\"ptm('thumbnailItem')\" [item]=\"item\" [templates]=\"templates()\" [unstyled]=\"unstyled()\"></div>\n </div>\n </div>\n }\n </div>\n </div>\n @if (showThumbnailNavigators()) {\n <button\n type=\"button\"\n [hBind]=\"ptm('thumbnailNextButton')\"\n [class]=\"cx('thumbnailNextButton')\"\n (click)=\"navForward($event)\"\n hRipple\n [attr.aria-label]=\"ariaNextButtonLabel()\"\n data-pc-group-section=\"thumbnailnavigator\"\n >\n @if (!galleria.nextThumbnailIconTemplate && !galleria._nextThumbnailIconTemplate()) {\n @if (!isVertical()) {\n <svg data-h-icon=\"chevron-right\" [hBind]=\"ptm('thumbnailNextIcon')\" [class]=\"cx('thumbnailNextIcon')\" />\n }\n @if (isVertical()) {\n <svg data-h-icon=\"chevron-down\" [hBind]=\"ptm('thumbnailNextIcon')\" [class]=\"cx('thumbnailNextIcon')\" />\n }\n }\n <ng-template *ngTemplateOutlet=\"galleria.nextThumbnailIconTemplate || galleria._nextThumbnailIconTemplate()\"></ng-template>\n </button>\n }\n</div>\n" }]
1910
- }], ctorParameters: () => [{ type: Galleria }], propDecorators: { containerId: [{ type: i0.Input, args: [{ isSignal: true, alias: "containerId", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], isVertical: [{ type: i0.Input, args: [{ isSignal: true, alias: "isVertical", required: false }] }], slideShowActive: [{ type: i0.Input, args: [{ isSignal: true, alias: "slideShowActive", required: false }] }], circular: [{ type: i0.Input, args: [{ isSignal: true, alias: "circular", required: false }] }], responsiveOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsiveOptions", required: false }] }], contentHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentHeight", required: false }] }], showThumbnailNavigators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showThumbnailNavigators", required: false }] }], templates: [{ type: i0.Input, args: [{ isSignal: true, alias: "templates", required: false }] }], onActiveIndexChange: [{ type: i0.Output, args: ["onActiveIndexChange"] }], stopSlideShow: [{ type: i0.Output, args: ["stopSlideShow"] }], itemsContainer: [{ type: i0.ViewChild, args: ['itemsContainer', { isSignal: true }] }], numVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "numVisible", required: false }] }], activeIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIndex", required: false }] }] } });
1911
- class GalleriaModule {
1912
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: GalleriaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1913
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.6", ngImport: i0, type: GalleriaModule, declarations: [Galleria, GalleriaContent, GalleriaItemSlot, GalleriaItem, GalleriaThumbnails], imports: [CommonModule, SharedModule, Ripple, TimesIcon, ChevronRightIcon, ChevronUpIcon, ChevronDownIcon, ChevronLeftIcon, FocusTrap, BindModule, MotionModule], exports: [CommonModule, Galleria, GalleriaContent, GalleriaItemSlot, GalleriaItem, GalleriaThumbnails, SharedModule] });
1914
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: GalleriaModule, imports: [CommonModule, SharedModule, TimesIcon, ChevronRightIcon, ChevronUpIcon, ChevronDownIcon, ChevronLeftIcon, BindModule, MotionModule, CommonModule, SharedModule] });
1915
- }
1916
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: GalleriaModule, decorators: [{
1917
- type: NgModule,
1918
- args: [{
1919
- imports: [CommonModule, SharedModule, Ripple, TimesIcon, ChevronRightIcon, ChevronUpIcon, ChevronDownIcon, ChevronLeftIcon, FocusTrap, BindModule, MotionModule],
1920
- exports: [CommonModule, Galleria, GalleriaContent, GalleriaItemSlot, GalleriaItem, GalleriaThumbnails, SharedModule],
1921
- declarations: [Galleria, GalleriaContent, GalleriaItemSlot, GalleriaItem, GalleriaThumbnails]
1922
- }]
1923
- }] });
1924
-
1925
- /**
1926
- * Generated bundle index. Do not edit.
1927
- */
1928
-
2655
+ }
2656
+ }
2657
+ this.thumbnailsStyle.innerHTML = innerHTML;
2658
+ setAttribute(this.thumbnailsStyle, "nonce", this.galleria.config?.csp()?.nonce);
2659
+ }
2660
+ calculatePosition() {
2661
+ if (isPlatformBrowser(this.platformId)) {
2662
+ if (this.itemsContainer() && this.sortedResponsiveOptions) {
2663
+ let windowWidth = window.innerWidth;
2664
+ let matchedResponsiveData = { numVisible: this._numVisible };
2665
+ for (let i = 0; i < this.sortedResponsiveOptions.length; i++) {
2666
+ let res = this.sortedResponsiveOptions[i];
2667
+ if (parseInt(res.breakpoint, 10) >= windowWidth) matchedResponsiveData = res;
2668
+ }
2669
+ if (this.d_numVisible !== matchedResponsiveData.numVisible) {
2670
+ this.d_numVisible = matchedResponsiveData.numVisible;
2671
+ this.cd.markForCheck();
2672
+ }
2673
+ }
2674
+ }
2675
+ }
2676
+ getTabIndex(index) {
2677
+ return this.isItemActive(index) ? 0 : null;
2678
+ }
2679
+ navForward(e) {
2680
+ this.stopTheSlideShow();
2681
+ let nextItemIndex = this._activeIndex + 1;
2682
+ const circular = this.circular();
2683
+ if (nextItemIndex + this.totalShiftedItems > this.getMedianItemIndex() && (-1 * this.totalShiftedItems < this.getTotalPageNumber() - 1 || circular)) this.step(-1);
2684
+ let activeIndex = circular && this.value().length - 1 === this._activeIndex ? 0 : nextItemIndex;
2685
+ this.onActiveIndexChange.emit(activeIndex);
2686
+ if (e.cancelable) e.preventDefault();
2687
+ }
2688
+ navBackward(e) {
2689
+ this.stopTheSlideShow();
2690
+ let prevItemIndex = this._activeIndex !== 0 ? this._activeIndex - 1 : 0;
2691
+ let diff = prevItemIndex + this.totalShiftedItems;
2692
+ const circular = this.circular();
2693
+ if (this.d_numVisible - diff - 1 > this.getMedianItemIndex() && (-1 * this.totalShiftedItems !== 0 || circular)) this.step(1);
2694
+ let activeIndex = circular && this._activeIndex === 0 ? this.value().length - 1 : prevItemIndex;
2695
+ this.onActiveIndexChange.emit(activeIndex);
2696
+ if (e.cancelable) e.preventDefault();
2697
+ }
2698
+ onItemClick(index) {
2699
+ this.stopTheSlideShow();
2700
+ let selectedItemIndex = index;
2701
+ if (selectedItemIndex !== this._activeIndex) {
2702
+ const diff = selectedItemIndex + this.totalShiftedItems;
2703
+ let dir = 0;
2704
+ if (selectedItemIndex < this._activeIndex) {
2705
+ dir = this.d_numVisible - diff - 1 - this.getMedianItemIndex();
2706
+ if (dir > 0 && -1 * this.totalShiftedItems !== 0) this.step(dir);
2707
+ } else {
2708
+ dir = this.getMedianItemIndex() - diff;
2709
+ if (dir < 0 && -1 * this.totalShiftedItems < this.getTotalPageNumber() - 1) this.step(dir);
2710
+ }
2711
+ this._oldactiveIndex = this._activeIndex;
2712
+ this._activeIndex = selectedItemIndex;
2713
+ this.onActiveIndexChange.emit(this._activeIndex);
2714
+ }
2715
+ }
2716
+ onThumbnailKeydown(event, index) {
2717
+ if (event.code === "Enter" || event.code === "Space") {
2718
+ this.onItemClick(index);
2719
+ event.preventDefault();
2720
+ }
2721
+ switch (event.code) {
2722
+ case "ArrowRight":
2723
+ this.onRightKey();
2724
+ break;
2725
+ case "ArrowLeft":
2726
+ this.onLeftKey();
2727
+ break;
2728
+ case "Home":
2729
+ this.onHomeKey();
2730
+ event.preventDefault();
2731
+ break;
2732
+ case "End":
2733
+ this.onEndKey();
2734
+ event.preventDefault();
2735
+ break;
2736
+ case "ArrowUp":
2737
+ case "ArrowDown":
2738
+ event.preventDefault();
2739
+ break;
2740
+ case "Tab":
2741
+ this.onTabKey();
2742
+ break;
2743
+ default: break;
2744
+ }
2745
+ }
2746
+ onRightKey() {
2747
+ const indicators = find(this.itemsContainer()?.nativeElement, "[data-pc-section=\"thumbnailitem\"]");
2748
+ const activeIndex = this.findFocusedIndicatorIndex();
2749
+ this.changedFocusedIndicator(activeIndex, activeIndex + 1 === indicators.length ? indicators.length - 1 : activeIndex + 1);
2750
+ }
2751
+ onLeftKey() {
2752
+ const activeIndex = this.findFocusedIndicatorIndex();
2753
+ this.changedFocusedIndicator(activeIndex, activeIndex - 1 <= 0 ? 0 : activeIndex - 1);
2754
+ }
2755
+ onHomeKey() {
2756
+ const activeIndex = this.findFocusedIndicatorIndex();
2757
+ this.changedFocusedIndicator(activeIndex, 0);
2758
+ }
2759
+ onEndKey() {
2760
+ const indicators = find(this.itemsContainer()?.nativeElement, "[data-pc-section=\"thumbnailitem\"]");
2761
+ const activeIndex = this.findFocusedIndicatorIndex();
2762
+ this.changedFocusedIndicator(activeIndex, indicators.length - 1);
2763
+ }
2764
+ onTabKey() {
2765
+ const indicators = [...find(this.itemsContainer()?.nativeElement, "[data-pc-section=\"thumbnailitem\"]")];
2766
+ const highlightedIndex = indicators.findIndex((ind) => getAttribute(ind, "data-h-active") === true);
2767
+ const activeIndicator = findSingle(this.itemsContainer()?.nativeElement, "[tabindex=\"0\"]");
2768
+ const activeIndex = indicators.findIndex((ind) => ind === activeIndicator?.parentElement);
2769
+ indicators[activeIndex].children[0].tabIndex = "-1";
2770
+ indicators[highlightedIndex].children[0].tabIndex = "0";
2771
+ }
2772
+ findFocusedIndicatorIndex() {
2773
+ const indicators = [...find(this.itemsContainer()?.nativeElement, "[data-pc-section=\"thumbnailitem\"]")];
2774
+ const activeIndicator = findSingle(this.itemsContainer()?.nativeElement, "[data-pc-section=\"thumbnailitem\"] > [tabindex=\"0\"]");
2775
+ return indicators.findIndex((ind) => ind === activeIndicator?.parentElement);
2776
+ }
2777
+ changedFocusedIndicator(prevInd, nextInd) {
2778
+ const indicators = find(this.itemsContainer()?.nativeElement, "[data-pc-section=\"thumbnailitem\"]");
2779
+ indicators[prevInd].children[0].tabIndex = "-1";
2780
+ indicators[nextInd].children[0].tabIndex = "0";
2781
+ indicators[nextInd].children[0].focus();
2782
+ }
2783
+ step(dir) {
2784
+ let totalShiftedItems = this.totalShiftedItems + dir;
2785
+ if (dir < 0 && -1 * totalShiftedItems + this.d_numVisible > this.value().length - 1) totalShiftedItems = this.d_numVisible - this.value().length;
2786
+ else if (dir > 0 && totalShiftedItems > 0) totalShiftedItems = 0;
2787
+ if (this.circular()) {
2788
+ const value = this.value();
2789
+ if (dir < 0 && value.length - 1 === this._activeIndex) totalShiftedItems = 0;
2790
+ else if (dir > 0 && this._activeIndex === 0) totalShiftedItems = this.d_numVisible - value.length;
2791
+ }
2792
+ const itemsContainer = this.itemsContainer();
2793
+ if (itemsContainer) {
2794
+ this.document.body.setAttribute("data-h-items-hidden", "false");
2795
+ !this.$unstyled() && removeClass(itemsContainer.nativeElement, "h-items-hidden");
2796
+ itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / this.d_numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this.d_numVisible)}%, 0, 0)`;
2797
+ itemsContainer.nativeElement.style.transition = "transform 500ms ease 0s";
2798
+ }
2799
+ this.totalShiftedItems = totalShiftedItems;
2800
+ }
2801
+ stopTheSlideShow() {
2802
+ if (this.slideShowActive() && this.stopSlideShow) this.stopSlideShow.emit();
2803
+ }
2804
+ changePageOnTouch(e, diff) {
2805
+ if (diff < 0) this.navForward(e);
2806
+ else this.navBackward(e);
2807
+ }
2808
+ getTotalPageNumber() {
2809
+ return this.value().length > this.d_numVisible ? this.value().length - this.d_numVisible + 1 : 0;
2810
+ }
2811
+ getMedianItemIndex() {
2812
+ let index = Math.floor(this.d_numVisible / 2);
2813
+ return this.d_numVisible % 2 ? index : index - 1;
2814
+ }
2815
+ onTransitionEnd() {
2816
+ const itemsContainer = this.itemsContainer();
2817
+ if (itemsContainer && itemsContainer.nativeElement) {
2818
+ this.document.body.setAttribute("data-h-items-hidden", "true");
2819
+ !this.$unstyled() && addClass(itemsContainer.nativeElement, "h-items-hidden");
2820
+ itemsContainer.nativeElement.style.transition = "";
2821
+ }
2822
+ }
2823
+ onTouchEnd(e) {
2824
+ let touchobj = e.changedTouches[0];
2825
+ if (this.isVertical()) this.changePageOnTouch(e, touchobj.pageY - this.startPos.y);
2826
+ else this.changePageOnTouch(e, touchobj.pageX - this.startPos.x);
2827
+ }
2828
+ onTouchMove(e) {
2829
+ if (e.cancelable) e.preventDefault();
2830
+ }
2831
+ onTouchStart(e) {
2832
+ let touchobj = e.changedTouches[0];
2833
+ this.startPos = {
2834
+ x: touchobj.pageX,
2835
+ y: touchobj.pageY
2836
+ };
2837
+ }
2838
+ isNavBackwardDisabled() {
2839
+ return !this.circular() && this._activeIndex === 0 || this.value().length <= this.d_numVisible;
2840
+ }
2841
+ isNavForwardDisabled() {
2842
+ const value = this.value();
2843
+ return !this.circular() && this._activeIndex === value.length - 1 || value.length <= this.d_numVisible;
2844
+ }
2845
+ firstItemAciveIndex() {
2846
+ return this.totalShiftedItems * -1;
2847
+ }
2848
+ lastItemActiveIndex() {
2849
+ return this.firstItemAciveIndex() + this.d_numVisible - 1;
2850
+ }
2851
+ isItemActive(index) {
2852
+ return this.firstItemAciveIndex() <= index && this.lastItemActiveIndex() >= index;
2853
+ }
2854
+ bindDocumentListeners() {
2855
+ if (isPlatformBrowser(this.platformId)) {
2856
+ const window = this.document.defaultView || "window";
2857
+ this.documentResizeListener = this.renderer.listen(window, "resize", () => {
2858
+ this.calculatePosition();
2859
+ });
2860
+ }
2861
+ }
2862
+ unbindDocumentListeners() {
2863
+ if (this.documentResizeListener) {
2864
+ this.documentResizeListener();
2865
+ this.documentResizeListener = null;
2866
+ }
2867
+ }
2868
+ onDestroy() {
2869
+ if (this.responsiveOptions()) this.unbindDocumentListeners();
2870
+ if (this.thumbnailsStyle) this.thumbnailsStyle.parentNode?.removeChild(this.thumbnailsStyle);
2871
+ }
2872
+ ariaPrevButtonLabel() {
2873
+ return this.galleria.config.translation.aria ? this.galleria.config.translation.aria.prevPageLabel : void 0;
2874
+ }
2875
+ ariaNextButtonLabel() {
2876
+ return this.galleria.config.translation.aria ? this.galleria.config.translation.aria.nextPageLabel : void 0;
2877
+ }
2878
+ ariaPageLabel(value) {
2879
+ return this.galleria.config.translation.aria ? this.galleria.config.translation.aria.pageLabel?.replace(/{page}/g, value) : void 0;
2880
+ }
2881
+ static ɵfac = i0.ɵɵngDeclareFactory({
2882
+ minVersion: "12.0.0",
2883
+ version: "22.2.1",
2884
+ ngImport: i0,
2885
+ type: GalleriaThumbnails,
2886
+ deps: [{ token: Galleria }],
2887
+ target: i0.ɵɵFactoryTarget.Component
2888
+ });
2889
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2890
+ minVersion: "17.0.0",
2891
+ version: "22.2.1",
2892
+ type: GalleriaThumbnails,
2893
+ isStandalone: false,
2894
+ selector: "div[hGalleriaThumbnails]",
2895
+ inputs: {
2896
+ containerId: {
2897
+ classPropertyName: "containerId",
2898
+ publicName: "containerId",
2899
+ isSignal: true,
2900
+ isRequired: false,
2901
+ transformFunction: null
2902
+ },
2903
+ value: {
2904
+ classPropertyName: "value",
2905
+ publicName: "value",
2906
+ isSignal: true,
2907
+ isRequired: false,
2908
+ transformFunction: null
2909
+ },
2910
+ isVertical: {
2911
+ classPropertyName: "isVertical",
2912
+ publicName: "isVertical",
2913
+ isSignal: true,
2914
+ isRequired: false,
2915
+ transformFunction: null
2916
+ },
2917
+ slideShowActive: {
2918
+ classPropertyName: "slideShowActive",
2919
+ publicName: "slideShowActive",
2920
+ isSignal: true,
2921
+ isRequired: false,
2922
+ transformFunction: null
2923
+ },
2924
+ circular: {
2925
+ classPropertyName: "circular",
2926
+ publicName: "circular",
2927
+ isSignal: true,
2928
+ isRequired: false,
2929
+ transformFunction: null
2930
+ },
2931
+ responsiveOptions: {
2932
+ classPropertyName: "responsiveOptions",
2933
+ publicName: "responsiveOptions",
2934
+ isSignal: true,
2935
+ isRequired: false,
2936
+ transformFunction: null
2937
+ },
2938
+ contentHeight: {
2939
+ classPropertyName: "contentHeight",
2940
+ publicName: "contentHeight",
2941
+ isSignal: true,
2942
+ isRequired: false,
2943
+ transformFunction: null
2944
+ },
2945
+ showThumbnailNavigators: {
2946
+ classPropertyName: "showThumbnailNavigators",
2947
+ publicName: "showThumbnailNavigators",
2948
+ isSignal: true,
2949
+ isRequired: false,
2950
+ transformFunction: null
2951
+ },
2952
+ templates: {
2953
+ classPropertyName: "templates",
2954
+ publicName: "templates",
2955
+ isSignal: true,
2956
+ isRequired: false,
2957
+ transformFunction: null
2958
+ },
2959
+ numVisible: {
2960
+ classPropertyName: "numVisible",
2961
+ publicName: "numVisible",
2962
+ isSignal: true,
2963
+ isRequired: false,
2964
+ transformFunction: null
2965
+ },
2966
+ activeIndex: {
2967
+ classPropertyName: "activeIndex",
2968
+ publicName: "activeIndex",
2969
+ isSignal: true,
2970
+ isRequired: false,
2971
+ transformFunction: null
2972
+ }
2973
+ },
2974
+ outputs: {
2975
+ onActiveIndexChange: "onActiveIndexChange",
2976
+ stopSlideShow: "stopSlideShow"
2977
+ },
2978
+ host: { properties: { "class": "cx(\"thumbnails\")" } },
2979
+ providers: [GalleriaStyle],
2980
+ viewQueries: [{
2981
+ propertyName: "itemsContainer",
2982
+ first: true,
2983
+ predicate: ["itemsContainer"],
2984
+ descendants: true,
2985
+ isSignal: true
2986
+ }],
2987
+ usesInheritance: true,
2988
+ hostDirectives: [{ directive: i1.Bind }],
2989
+ ngImport: i0,
2990
+ template: "<div [hBind]=\"ptm('thumbnailContent')\" [class]=\"cx('thumbnailContent')\">\n @if (showThumbnailNavigators()) {\n <button\n type=\"button\"\n [hBind]=\"ptm('thumbnailPrevButton')\"\n [class]=\"cx('thumbnailPrevButton')\"\n (click)=\"navBackward($event)\"\n hRipple\n [attr.aria-label]=\"ariaPrevButtonLabel()\"\n data-pc-group-section=\"thumbnailnavigator\"\n >\n @if (!galleria.previousThumbnailIconTemplate && !galleria._previousThumbnailIconTemplate()) {\n @if (!isVertical()) {\n <svg data-h-icon=\"chevron-left\" [hBind]=\"ptm('thumbnailPrevIcon')\" [class]=\"cx('thumbnailPrevIcon')\" />\n }\n @if (isVertical()) {\n <svg data-h-icon=\"chevron-up\" [hBind]=\"ptm('thumbnailPrevIcon')\" [class]=\"cx('thumbnailPrevIcon')\" />\n }\n }\n <ng-template *ngTemplateOutlet=\"galleria.previousThumbnailIconTemplate || galleria._previousThumbnailIconTemplate()\"></ng-template>\n </button>\n }\n <div [hBind]=\"ptm('thumbnailsViewport')\" [class]=\"cx('thumbnailsViewport')\" [ngStyle]=\"{ height: isVertical() ? contentHeight() : '' }\">\n <div #itemsContainer [hBind]=\"ptm('thumbnailItems')\" [class]=\"cx('thumbnailItems')\" (transitionend)=\"onTransitionEnd()\" (touchstart)=\"onTouchStart($event)\" (touchmove)=\"onTouchMove($event)\" role=\"tablist\">\n @for (item of value(); track item; let index = $index) {\n <div\n [hBind]=\"ptm('thumbnailItem')\"\n [class]=\"cx('thumbnailItem', { index, activeIndex: _activeIndex })\"\n [attr.aria-selected]=\"_activeIndex === index\"\n [attr.aria-controls]=\"containerId() + '_item_' + index\"\n (keydown)=\"onThumbnailKeydown($event, index)\"\n [attr.data-h-active]=\"_activeIndex === index\"\n >\n <div\n [hBind]=\"ptm('thumbnail')\"\n [class]=\"cx('thumbnail')\"\n [attr.tabindex]=\"_activeIndex === index ? 0 : -1\"\n [attr.aria-current]=\"_activeIndex === index ? 'page' : undefined\"\n [attr.aria-label]=\"ariaPageLabel(index + 1)\"\n (click)=\"onItemClick(index)\"\n (touchend)=\"onItemClick(index)\"\n (keydown.enter)=\"onItemClick(index)\"\n >\n <div hGalleriaItemSlot type=\"thumbnail\" [hBind]=\"ptm('thumbnailItem')\" [item]=\"item\" [templates]=\"templates()\" [unstyled]=\"unstyled()\"></div>\n </div>\n </div>\n }\n </div>\n </div>\n @if (showThumbnailNavigators()) {\n <button\n type=\"button\"\n [hBind]=\"ptm('thumbnailNextButton')\"\n [class]=\"cx('thumbnailNextButton')\"\n (click)=\"navForward($event)\"\n hRipple\n [attr.aria-label]=\"ariaNextButtonLabel()\"\n data-pc-group-section=\"thumbnailnavigator\"\n >\n @if (!galleria.nextThumbnailIconTemplate && !galleria._nextThumbnailIconTemplate()) {\n @if (!isVertical()) {\n <svg data-h-icon=\"chevron-right\" [hBind]=\"ptm('thumbnailNextIcon')\" [class]=\"cx('thumbnailNextIcon')\" />\n }\n @if (isVertical()) {\n <svg data-h-icon=\"chevron-down\" [hBind]=\"ptm('thumbnailNextIcon')\" [class]=\"cx('thumbnailNextIcon')\" />\n }\n }\n <ng-template *ngTemplateOutlet=\"galleria.nextThumbnailIconTemplate || galleria._nextThumbnailIconTemplate()\"></ng-template>\n </button>\n }\n</div>\n",
2991
+ dependencies: [
2992
+ {
2993
+ kind: "directive",
2994
+ type: i0.forwardRef(() => i2.NgTemplateOutlet),
2995
+ selector: "[ngTemplateOutlet]",
2996
+ inputs: [
2997
+ "ngTemplateOutletContext",
2998
+ "ngTemplateOutlet",
2999
+ "ngTemplateOutletInjector"
3000
+ ]
3001
+ },
3002
+ {
3003
+ kind: "directive",
3004
+ type: i0.forwardRef(() => i2.NgStyle),
3005
+ selector: "[ngStyle]",
3006
+ inputs: ["ngStyle"]
3007
+ },
3008
+ {
3009
+ kind: "directive",
3010
+ type: i0.forwardRef(() => Ripple),
3011
+ selector: "[hRipple]"
3012
+ },
3013
+ {
3014
+ kind: "component",
3015
+ type: i0.forwardRef(() => ChevronRightIcon),
3016
+ selector: "[data-h-icon=\"chevron-right\"]"
3017
+ },
3018
+ {
3019
+ kind: "component",
3020
+ type: i0.forwardRef(() => ChevronUpIcon),
3021
+ selector: "[data-h-icon=\"chevron-up\"]"
3022
+ },
3023
+ {
3024
+ kind: "component",
3025
+ type: i0.forwardRef(() => ChevronDownIcon),
3026
+ selector: "[data-h-icon=\"chevron-down\"]"
3027
+ },
3028
+ {
3029
+ kind: "component",
3030
+ type: i0.forwardRef(() => ChevronLeftIcon),
3031
+ selector: "[data-h-icon=\"chevron-left\"]"
3032
+ },
3033
+ {
3034
+ kind: "directive",
3035
+ type: i0.forwardRef(() => i1.Bind),
3036
+ selector: "[hBind]",
3037
+ inputs: ["hBind"]
3038
+ },
3039
+ {
3040
+ kind: "component",
3041
+ type: i0.forwardRef(() => GalleriaItemSlot),
3042
+ selector: "div[hGalleriaItemSlot]",
3043
+ inputs: [
3044
+ "templates",
3045
+ "index",
3046
+ "item",
3047
+ "type"
3048
+ ]
3049
+ }
3050
+ ],
3051
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
3052
+ });
3053
+ };
3054
+ i0.ɵɵngDeclareClassMetadata({
3055
+ minVersion: "12.0.0",
3056
+ version: "22.2.1",
3057
+ ngImport: i0,
3058
+ type: GalleriaThumbnails,
3059
+ decorators: [{
3060
+ type: Component,
3061
+ args: [{
3062
+ selector: "div[hGalleriaThumbnails]",
3063
+ standalone: false,
3064
+ changeDetection: ChangeDetectionStrategy.OnPush,
3065
+ providers: [GalleriaStyle],
3066
+ host: { "[class]": "cx(\"thumbnails\")" },
3067
+ hostDirectives: [Bind],
3068
+ template: "<div [hBind]=\"ptm('thumbnailContent')\" [class]=\"cx('thumbnailContent')\">\n @if (showThumbnailNavigators()) {\n <button\n type=\"button\"\n [hBind]=\"ptm('thumbnailPrevButton')\"\n [class]=\"cx('thumbnailPrevButton')\"\n (click)=\"navBackward($event)\"\n hRipple\n [attr.aria-label]=\"ariaPrevButtonLabel()\"\n data-pc-group-section=\"thumbnailnavigator\"\n >\n @if (!galleria.previousThumbnailIconTemplate && !galleria._previousThumbnailIconTemplate()) {\n @if (!isVertical()) {\n <svg data-h-icon=\"chevron-left\" [hBind]=\"ptm('thumbnailPrevIcon')\" [class]=\"cx('thumbnailPrevIcon')\" />\n }\n @if (isVertical()) {\n <svg data-h-icon=\"chevron-up\" [hBind]=\"ptm('thumbnailPrevIcon')\" [class]=\"cx('thumbnailPrevIcon')\" />\n }\n }\n <ng-template *ngTemplateOutlet=\"galleria.previousThumbnailIconTemplate || galleria._previousThumbnailIconTemplate()\"></ng-template>\n </button>\n }\n <div [hBind]=\"ptm('thumbnailsViewport')\" [class]=\"cx('thumbnailsViewport')\" [ngStyle]=\"{ height: isVertical() ? contentHeight() : '' }\">\n <div #itemsContainer [hBind]=\"ptm('thumbnailItems')\" [class]=\"cx('thumbnailItems')\" (transitionend)=\"onTransitionEnd()\" (touchstart)=\"onTouchStart($event)\" (touchmove)=\"onTouchMove($event)\" role=\"tablist\">\n @for (item of value(); track item; let index = $index) {\n <div\n [hBind]=\"ptm('thumbnailItem')\"\n [class]=\"cx('thumbnailItem', { index, activeIndex: _activeIndex })\"\n [attr.aria-selected]=\"_activeIndex === index\"\n [attr.aria-controls]=\"containerId() + '_item_' + index\"\n (keydown)=\"onThumbnailKeydown($event, index)\"\n [attr.data-h-active]=\"_activeIndex === index\"\n >\n <div\n [hBind]=\"ptm('thumbnail')\"\n [class]=\"cx('thumbnail')\"\n [attr.tabindex]=\"_activeIndex === index ? 0 : -1\"\n [attr.aria-current]=\"_activeIndex === index ? 'page' : undefined\"\n [attr.aria-label]=\"ariaPageLabel(index + 1)\"\n (click)=\"onItemClick(index)\"\n (touchend)=\"onItemClick(index)\"\n (keydown.enter)=\"onItemClick(index)\"\n >\n <div hGalleriaItemSlot type=\"thumbnail\" [hBind]=\"ptm('thumbnailItem')\" [item]=\"item\" [templates]=\"templates()\" [unstyled]=\"unstyled()\"></div>\n </div>\n </div>\n }\n </div>\n </div>\n @if (showThumbnailNavigators()) {\n <button\n type=\"button\"\n [hBind]=\"ptm('thumbnailNextButton')\"\n [class]=\"cx('thumbnailNextButton')\"\n (click)=\"navForward($event)\"\n hRipple\n [attr.aria-label]=\"ariaNextButtonLabel()\"\n data-pc-group-section=\"thumbnailnavigator\"\n >\n @if (!galleria.nextThumbnailIconTemplate && !galleria._nextThumbnailIconTemplate()) {\n @if (!isVertical()) {\n <svg data-h-icon=\"chevron-right\" [hBind]=\"ptm('thumbnailNextIcon')\" [class]=\"cx('thumbnailNextIcon')\" />\n }\n @if (isVertical()) {\n <svg data-h-icon=\"chevron-down\" [hBind]=\"ptm('thumbnailNextIcon')\" [class]=\"cx('thumbnailNextIcon')\" />\n }\n }\n <ng-template *ngTemplateOutlet=\"galleria.nextThumbnailIconTemplate || galleria._nextThumbnailIconTemplate()\"></ng-template>\n </button>\n }\n</div>\n"
3069
+ }]
3070
+ }],
3071
+ ctorParameters: () => [{ type: Galleria }],
3072
+ propDecorators: {
3073
+ containerId: [{
3074
+ type: i0.Input,
3075
+ args: [{
3076
+ isSignal: true,
3077
+ alias: "containerId",
3078
+ required: false
3079
+ }]
3080
+ }],
3081
+ value: [{
3082
+ type: i0.Input,
3083
+ args: [{
3084
+ isSignal: true,
3085
+ alias: "value",
3086
+ required: false
3087
+ }]
3088
+ }],
3089
+ isVertical: [{
3090
+ type: i0.Input,
3091
+ args: [{
3092
+ isSignal: true,
3093
+ alias: "isVertical",
3094
+ required: false
3095
+ }]
3096
+ }],
3097
+ slideShowActive: [{
3098
+ type: i0.Input,
3099
+ args: [{
3100
+ isSignal: true,
3101
+ alias: "slideShowActive",
3102
+ required: false
3103
+ }]
3104
+ }],
3105
+ circular: [{
3106
+ type: i0.Input,
3107
+ args: [{
3108
+ isSignal: true,
3109
+ alias: "circular",
3110
+ required: false
3111
+ }]
3112
+ }],
3113
+ responsiveOptions: [{
3114
+ type: i0.Input,
3115
+ args: [{
3116
+ isSignal: true,
3117
+ alias: "responsiveOptions",
3118
+ required: false
3119
+ }]
3120
+ }],
3121
+ contentHeight: [{
3122
+ type: i0.Input,
3123
+ args: [{
3124
+ isSignal: true,
3125
+ alias: "contentHeight",
3126
+ required: false
3127
+ }]
3128
+ }],
3129
+ showThumbnailNavigators: [{
3130
+ type: i0.Input,
3131
+ args: [{
3132
+ isSignal: true,
3133
+ alias: "showThumbnailNavigators",
3134
+ required: false
3135
+ }]
3136
+ }],
3137
+ templates: [{
3138
+ type: i0.Input,
3139
+ args: [{
3140
+ isSignal: true,
3141
+ alias: "templates",
3142
+ required: false
3143
+ }]
3144
+ }],
3145
+ onActiveIndexChange: [{
3146
+ type: i0.Output,
3147
+ args: ["onActiveIndexChange"]
3148
+ }],
3149
+ stopSlideShow: [{
3150
+ type: i0.Output,
3151
+ args: ["stopSlideShow"]
3152
+ }],
3153
+ itemsContainer: [{
3154
+ type: i0.ViewChild,
3155
+ args: ["itemsContainer", { isSignal: true }]
3156
+ }],
3157
+ numVisible: [{
3158
+ type: i0.Input,
3159
+ args: [{
3160
+ isSignal: true,
3161
+ alias: "numVisible",
3162
+ required: false
3163
+ }]
3164
+ }],
3165
+ activeIndex: [{
3166
+ type: i0.Input,
3167
+ args: [{
3168
+ isSignal: true,
3169
+ alias: "activeIndex",
3170
+ required: false
3171
+ }]
3172
+ }]
3173
+ }
3174
+ });
3175
+ var GalleriaModule = class GalleriaModule {
3176
+ static ɵfac = i0.ɵɵngDeclareFactory({
3177
+ minVersion: "12.0.0",
3178
+ version: "22.2.1",
3179
+ ngImport: i0,
3180
+ type: GalleriaModule,
3181
+ deps: [],
3182
+ target: i0.ɵɵFactoryTarget.NgModule
3183
+ });
3184
+ static ɵmod = i0.ɵɵngDeclareNgModule({
3185
+ minVersion: "14.0.0",
3186
+ version: "22.2.1",
3187
+ ngImport: i0,
3188
+ type: GalleriaModule,
3189
+ declarations: [
3190
+ Galleria,
3191
+ GalleriaContent,
3192
+ GalleriaItemSlot,
3193
+ GalleriaItem,
3194
+ GalleriaThumbnails
3195
+ ],
3196
+ imports: [
3197
+ CommonModule,
3198
+ SharedModule,
3199
+ Ripple,
3200
+ TimesIcon,
3201
+ ChevronRightIcon,
3202
+ ChevronUpIcon,
3203
+ ChevronDownIcon,
3204
+ ChevronLeftIcon,
3205
+ FocusTrap,
3206
+ BindModule,
3207
+ MotionModule
3208
+ ],
3209
+ exports: [
3210
+ CommonModule,
3211
+ Galleria,
3212
+ GalleriaContent,
3213
+ GalleriaItemSlot,
3214
+ GalleriaItem,
3215
+ GalleriaThumbnails,
3216
+ SharedModule
3217
+ ]
3218
+ });
3219
+ static ɵinj = i0.ɵɵngDeclareInjector({
3220
+ minVersion: "12.0.0",
3221
+ version: "22.2.1",
3222
+ ngImport: i0,
3223
+ type: GalleriaModule,
3224
+ imports: [
3225
+ CommonModule,
3226
+ SharedModule,
3227
+ TimesIcon,
3228
+ ChevronRightIcon,
3229
+ ChevronUpIcon,
3230
+ ChevronDownIcon,
3231
+ ChevronLeftIcon,
3232
+ BindModule,
3233
+ MotionModule,
3234
+ CommonModule,
3235
+ SharedModule
3236
+ ]
3237
+ });
3238
+ };
3239
+ i0.ɵɵngDeclareClassMetadata({
3240
+ minVersion: "12.0.0",
3241
+ version: "22.2.1",
3242
+ ngImport: i0,
3243
+ type: GalleriaModule,
3244
+ decorators: [{
3245
+ type: NgModule,
3246
+ args: [{
3247
+ imports: [
3248
+ CommonModule,
3249
+ SharedModule,
3250
+ Ripple,
3251
+ TimesIcon,
3252
+ ChevronRightIcon,
3253
+ ChevronUpIcon,
3254
+ ChevronDownIcon,
3255
+ ChevronLeftIcon,
3256
+ FocusTrap,
3257
+ BindModule,
3258
+ MotionModule
3259
+ ],
3260
+ exports: [
3261
+ CommonModule,
3262
+ Galleria,
3263
+ GalleriaContent,
3264
+ GalleriaItemSlot,
3265
+ GalleriaItem,
3266
+ GalleriaThumbnails,
3267
+ SharedModule
3268
+ ],
3269
+ declarations: [
3270
+ Galleria,
3271
+ GalleriaContent,
3272
+ GalleriaItemSlot,
3273
+ GalleriaItem,
3274
+ GalleriaThumbnails
3275
+ ]
3276
+ }]
3277
+ }]
3278
+ });
1929
3279
  export { Galleria, GalleriaClasses, GalleriaContent, GalleriaItem, GalleriaItemSlot, GalleriaModule, GalleriaStyle, GalleriaThumbnails };
1930
- //# sourceMappingURL=gravionlabs-helix-core-galleria.mjs.map
3280
+
3281
+ //# sourceMappingURL=gravionlabs-helix-core-galleria.mjs.map