@paperless/core 2.22.0-alpha.32 → 2.22.0-alpha.33

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 (241) hide show
  1. package/dist/build/{p-eb88330f.entry.js → p-0db34ade.entry.js} +1 -1
  2. package/dist/build/{p-dc7e3d2d.entry.js → p-114e0c9a.entry.js} +1 -1
  3. package/dist/build/{p-8527dffc.entry.js → p-1924cd9d.entry.js} +1 -1
  4. package/dist/build/{p-75c0d205.entry.js → p-1a17e046.entry.js} +1 -1
  5. package/dist/build/{p-a075f933.entry.js → p-1eed9342.entry.js} +1 -1
  6. package/dist/{paperless/p-a3c931c3.entry.js → build/p-1f260372.entry.js} +1 -1
  7. package/dist/build/{p-1bc013ea.entry.js → p-2695c4c1.entry.js} +1 -1
  8. package/dist/{paperless/p-88434ef8.entry.js → build/p-4752c1e2.entry.js} +1 -1
  9. package/dist/build/{p-ac64c055.entry.js → p-48862d6c.entry.js} +1 -1
  10. package/dist/build/{p-8d872235.entry.js → p-4ad6da03.entry.js} +1 -1
  11. package/dist/{paperless/p-d824b806.entry.js → build/p-4c1b92b5.entry.js} +1 -1
  12. package/dist/{paperless/p-f16b7c0e.entry.js → build/p-5c4efc42.entry.js} +1 -1
  13. package/dist/build/{p-96020614.entry.js → p-5e6e2031.entry.js} +1 -1
  14. package/dist/{paperless/p-cce41338.entry.js → build/p-608f6111.entry.js} +1 -1
  15. package/dist/build/p-6da67ab3.entry.js +1 -0
  16. package/dist/build/{p-3d4eed8c.entry.js → p-7e9886d6.entry.js} +1 -1
  17. package/dist/build/{p-26a84c2f.entry.js → p-84652e9e.entry.js} +1 -1
  18. package/dist/{paperless/p-8073ff56.entry.js → build/p-93542510.entry.js} +1 -1
  19. package/dist/{paperless/p-5abb4596.entry.js → build/p-94311485.entry.js} +1 -1
  20. package/dist/{paperless/p-443e1609.entry.js → build/p-a3f1e55c.entry.js} +1 -1
  21. package/dist/{paperless/p-d79097e9.entry.js → build/p-a6d1bac6.entry.js} +1 -1
  22. package/dist/build/{p-4c47faf5.entry.js → p-aa3c6754.entry.js} +1 -1
  23. package/dist/build/{p-39695802.js → p-bb93b60d.js} +1 -1
  24. package/dist/build/{p-7b05d594.entry.js → p-bf87972a.entry.js} +1 -1
  25. package/dist/build/{p-796ade92.entry.js → p-d15bb397.entry.js} +1 -1
  26. package/dist/build/{p-4ade4fd6.entry.js → p-d2de7714.entry.js} +1 -1
  27. package/dist/{paperless/p-16625524.entry.js → build/p-d388076a.entry.js} +1 -1
  28. package/dist/{paperless/p-2461cae0.entry.js → build/p-dafa1b62.entry.js} +1 -1
  29. package/dist/build/{p-3224460c.entry.js → p-e0b1116c.entry.js} +1 -1
  30. package/dist/build/p-f0405a75.entry.js +1 -0
  31. package/dist/build/{p-0595952f.entry.js → p-ff9f4b2b.entry.js} +1 -1
  32. package/dist/build/paperless.esm.js +1 -1
  33. package/dist/cjs/p-accordion.cjs.entry.js +1 -1
  34. package/dist/cjs/p-attachment.cjs.entry.js +5 -5
  35. package/dist/cjs/p-avatar.cjs.entry.js +1 -1
  36. package/dist/cjs/p-badge_3.cjs.entry.js +1 -1
  37. package/dist/cjs/p-button_3.cjs.entry.js +6 -6
  38. package/dist/cjs/p-calendar.cjs.entry.js +6 -6
  39. package/dist/cjs/p-card-header.cjs.entry.js +1 -1
  40. package/dist/cjs/p-checkbox_3.cjs.entry.js +4 -4
  41. package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
  42. package/dist/cjs/p-cropper.cjs.entry.js +1 -1
  43. package/dist/cjs/p-datepicker.cjs.entry.js +5 -5
  44. package/dist/cjs/p-drawer-body_3.cjs.entry.js +1 -1
  45. package/dist/cjs/p-drawer.cjs.entry.js +1 -1
  46. package/dist/cjs/p-empty-state_8.cjs.entry.js +8 -8
  47. package/dist/cjs/p-field_3.cjs.entry.js +15 -15
  48. package/dist/cjs/p-floating-menu-item.cjs.entry.js +1 -1
  49. package/dist/cjs/p-label.cjs.entry.js +1 -1
  50. package/dist/cjs/p-modal-body_4.cjs.entry.js +1 -1
  51. package/dist/cjs/p-modal.cjs.entry.js +1 -1
  52. package/dist/cjs/p-navbar.cjs.entry.js +1 -1
  53. package/dist/cjs/p-pagination_3.cjs.entry.js +9 -9
  54. package/dist/cjs/p-profile.cjs.entry.js +1 -1
  55. package/dist/cjs/p-radio.cjs.entry.js +2 -2
  56. package/dist/cjs/p-range.cjs.entry.js +1 -1
  57. package/dist/cjs/p-select.cjs.entry.js +8 -8
  58. package/dist/cjs/p-stepper.cjs.entry.js +1 -1
  59. package/dist/cjs/p-table.cjs.entry.js +20 -42
  60. package/dist/cjs/p-toast.cjs.entry.js +1 -1
  61. package/dist/cjs/p-toggle.cjs.entry.js +2 -2
  62. package/dist/cjs/p-tooltip.cjs.entry.js +1 -1
  63. package/dist/collection/components/atoms/avatar/avatar/avatar.component.js +1 -1
  64. package/dist/collection/components/atoms/card/header/card-header.component.js +1 -1
  65. package/dist/collection/components/atoms/checkbox/checkbox.component.js +2 -2
  66. package/dist/collection/components/atoms/drawer/header/drawer-header.component.js +1 -1
  67. package/dist/collection/components/atoms/floating-menu/container/floating-menu-container.component.js +1 -1
  68. package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +1 -1
  69. package/dist/collection/components/atoms/helper/helper.component.js +1 -1
  70. package/dist/collection/components/atoms/icon/icon.component.js +2 -2
  71. package/dist/collection/components/atoms/modal/header/modal-header.component.js +1 -1
  72. package/dist/collection/components/atoms/radio/radio.component.js +2 -2
  73. package/dist/collection/components/atoms/segment/item/segment-item.component.js +1 -1
  74. package/dist/collection/components/atoms/toggle/toggle.component.js +2 -2
  75. package/dist/collection/components/atoms/tooltip/tooltip.component.js +1 -1
  76. package/dist/collection/components/molecules/accordion/accordion.component.js +1 -1
  77. package/dist/collection/components/molecules/attachment/attachment.component.js +5 -5
  78. package/dist/collection/components/molecules/button/button.component.js +4 -4
  79. package/dist/collection/components/molecules/calendar/calendar.component.js +6 -6
  80. package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
  81. package/dist/collection/components/molecules/cropper/cropper.component.js +1 -1
  82. package/dist/collection/components/molecules/datepicker/datepicker.component.js +5 -5
  83. package/dist/collection/components/molecules/dropdown/dropdown.component.js +2 -2
  84. package/dist/collection/components/molecules/field/container/field-container.component.js +6 -6
  85. package/dist/collection/components/molecules/field/field/field.component.js +8 -8
  86. package/dist/collection/components/molecules/label/label.component.js +1 -1
  87. package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +6 -6
  88. package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +1 -1
  89. package/dist/collection/components/molecules/pagination/size/pagination-size.component.js +2 -2
  90. package/dist/collection/components/molecules/profile/profile.component.js +1 -1
  91. package/dist/collection/components/molecules/range/range.component.js +1 -1
  92. package/dist/collection/components/molecules/select/select.component.js +8 -8
  93. package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
  94. package/dist/collection/components/molecules/table/footer/table-footer.component.js +1 -1
  95. package/dist/collection/components/molecules/table/header/table-header.component.js +5 -5
  96. package/dist/collection/components/molecules/toast/toast.component.js +1 -1
  97. package/dist/collection/components/organisms/drawer/drawer.component.js +1 -1
  98. package/dist/collection/components/organisms/modal/modal.component.js +1 -1
  99. package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
  100. package/dist/collection/components/organisms/stepper/stepper.component.js +1 -1
  101. package/dist/collection/components/organisms/table/table.component.js +20 -42
  102. package/dist/components/index.js +1 -1
  103. package/dist/components/{p-Ch5U9kWZ.js → p-Bs4zUbgC.js} +1 -1
  104. package/dist/components/{p-OF_TU9VQ.js → p-Bsz5wpvX.js} +1 -1
  105. package/dist/components/{p-CCufTu-v.js → p-C4QFnooj.js} +1 -1
  106. package/dist/components/{p-nUd8Wpbr.js → p-C7oEohET.js} +1 -1
  107. package/dist/components/{p-BwD4wr14.js → p-CCdMFLeY.js} +1 -1
  108. package/dist/components/{p-DfBWP1bt.js → p-CCpo87pH.js} +1 -1
  109. package/dist/components/{p-PyPr6c8z.js → p-CGMb-Zik.js} +1 -1
  110. package/dist/components/{p-SggF_Jar.js → p-CGMitCrO.js} +1 -1
  111. package/dist/components/{p-DoDhkUVy.js → p-CJ7RtC-a.js} +1 -1
  112. package/dist/components/{p-CvE78NPe.js → p-CLQglqfD.js} +1 -1
  113. package/dist/components/{p-CkCQHYtH.js → p-CVCCA4eY.js} +1 -1
  114. package/dist/components/{p-ZcEew3GF.js → p-CWRAbDh-.js} +1 -1
  115. package/dist/components/{p-BBpjifjG.js → p-CzT4TxMT.js} +1 -1
  116. package/dist/components/{p-BQNrSoo9.js → p-D6xsDoHI.js} +1 -1
  117. package/dist/components/{p-BvUfWfx-.js → p-DCkiUXJN.js} +1 -1
  118. package/dist/components/{p-kAKe_qDq.js → p-DqtQfYz0.js} +1 -1
  119. package/dist/components/{p-D08B3cFE.js → p-DuNvWVbF.js} +1 -1
  120. package/dist/components/{p-CtHAbYCa.js → p-Dxh5RZDW.js} +1 -1
  121. package/dist/components/{p-h4mS749f.js → p-E_DVjH99.js} +1 -1
  122. package/dist/components/{p-BqgXqvox.js → p-KIL5rYXr.js} +1 -1
  123. package/dist/components/{p-2ng-Aose.js → p-Pk4ZTsZ4.js} +1 -1
  124. package/dist/components/{p-CGFPlslj.js → p-QVPuIpXI.js} +1 -1
  125. package/dist/components/{p-CNMa-_yN.js → p-TQjQ8aZG.js} +1 -1
  126. package/dist/components/p-accordion.js +1 -1
  127. package/dist/components/p-attachment.js +1 -1
  128. package/dist/components/p-avatar.js +1 -1
  129. package/dist/components/p-button.js +1 -1
  130. package/dist/components/p-calendar.js +1 -1
  131. package/dist/components/p-card-header.js +1 -1
  132. package/dist/components/p-checkbox.js +1 -1
  133. package/dist/components/p-content-slider.js +1 -1
  134. package/dist/components/p-cropper.js +2 -2
  135. package/dist/components/{p-CaN_dhnG.js → p-csyF2tkK.js} +1 -1
  136. package/dist/components/p-datepicker.js +1 -1
  137. package/dist/components/p-drawer-header.js +1 -1
  138. package/dist/components/p-drawer.js +1 -1
  139. package/dist/components/p-dropdown-menu-item.js +1 -1
  140. package/dist/components/p-dropdown.js +1 -1
  141. package/dist/components/p-empty-state.js +1 -1
  142. package/dist/components/p-field-container.js +1 -1
  143. package/dist/components/p-field.js +1 -1
  144. package/dist/components/p-floating-menu-container.js +1 -1
  145. package/dist/components/p-floating-menu-item.js +1 -1
  146. package/dist/components/p-helper.js +1 -1
  147. package/dist/components/p-icon.js +1 -1
  148. package/dist/components/p-info-panel.js +1 -1
  149. package/dist/components/p-label.js +1 -1
  150. package/dist/components/p-listing-item.js +1 -1
  151. package/dist/components/p-modal-header.js +1 -1
  152. package/dist/components/p-modal.js +1 -1
  153. package/dist/components/p-navbar.js +1 -1
  154. package/dist/components/p-navigation-item.js +1 -1
  155. package/dist/components/p-pagination-pages.js +1 -1
  156. package/dist/components/p-pagination-size.js +1 -1
  157. package/dist/components/p-pagination.js +1 -1
  158. package/dist/components/p-profile.js +1 -1
  159. package/dist/components/p-radio.js +1 -1
  160. package/dist/components/p-range.js +1 -1
  161. package/dist/components/p-segment-item.js +1 -1
  162. package/dist/components/p-select.js +1 -1
  163. package/dist/components/p-stepper.js +1 -1
  164. package/dist/components/p-table-cell.js +1 -1
  165. package/dist/components/p-table-footer.js +1 -1
  166. package/dist/components/p-table-header.js +1 -1
  167. package/dist/components/p-table.js +1 -1
  168. package/dist/components/p-toast.js +1 -1
  169. package/dist/components/p-toggle.js +1 -1
  170. package/dist/components/p-tooltip.js +1 -1
  171. package/dist/esm/p-accordion.entry.js +1 -1
  172. package/dist/esm/p-attachment.entry.js +5 -5
  173. package/dist/esm/p-avatar.entry.js +1 -1
  174. package/dist/esm/p-badge_3.entry.js +1 -1
  175. package/dist/esm/p-button_3.entry.js +6 -6
  176. package/dist/esm/p-calendar.entry.js +6 -6
  177. package/dist/esm/p-card-header.entry.js +1 -1
  178. package/dist/esm/p-checkbox_3.entry.js +4 -4
  179. package/dist/esm/p-content-slider.entry.js +2 -2
  180. package/dist/esm/p-cropper.entry.js +1 -1
  181. package/dist/esm/p-datepicker.entry.js +5 -5
  182. package/dist/esm/p-drawer-body_3.entry.js +1 -1
  183. package/dist/esm/p-drawer.entry.js +1 -1
  184. package/dist/esm/p-empty-state_8.entry.js +8 -8
  185. package/dist/esm/p-field_3.entry.js +15 -15
  186. package/dist/esm/p-floating-menu-item.entry.js +1 -1
  187. package/dist/esm/p-label.entry.js +1 -1
  188. package/dist/esm/p-modal-body_4.entry.js +1 -1
  189. package/dist/esm/p-modal.entry.js +1 -1
  190. package/dist/esm/p-navbar.entry.js +1 -1
  191. package/dist/esm/p-pagination_3.entry.js +9 -9
  192. package/dist/esm/p-profile.entry.js +1 -1
  193. package/dist/esm/p-radio.entry.js +2 -2
  194. package/dist/esm/p-range.entry.js +1 -1
  195. package/dist/esm/p-select.entry.js +8 -8
  196. package/dist/esm/p-stepper.entry.js +1 -1
  197. package/dist/esm/p-table.entry.js +20 -42
  198. package/dist/esm/p-toast.entry.js +1 -1
  199. package/dist/esm/p-toggle.entry.js +2 -2
  200. package/dist/esm/p-tooltip.entry.js +1 -1
  201. package/dist/index.html +1 -1
  202. package/dist/paperless/{p-eb88330f.entry.js → p-0db34ade.entry.js} +1 -1
  203. package/dist/paperless/{p-dc7e3d2d.entry.js → p-114e0c9a.entry.js} +1 -1
  204. package/dist/paperless/{p-8527dffc.entry.js → p-1924cd9d.entry.js} +1 -1
  205. package/dist/paperless/{p-75c0d205.entry.js → p-1a17e046.entry.js} +1 -1
  206. package/dist/paperless/{p-a075f933.entry.js → p-1eed9342.entry.js} +1 -1
  207. package/dist/{build/p-a3c931c3.entry.js → paperless/p-1f260372.entry.js} +1 -1
  208. package/dist/paperless/{p-1bc013ea.entry.js → p-2695c4c1.entry.js} +1 -1
  209. package/dist/{build/p-88434ef8.entry.js → paperless/p-4752c1e2.entry.js} +1 -1
  210. package/dist/paperless/{p-ac64c055.entry.js → p-48862d6c.entry.js} +1 -1
  211. package/dist/paperless/{p-8d872235.entry.js → p-4ad6da03.entry.js} +1 -1
  212. package/dist/{build/p-d824b806.entry.js → paperless/p-4c1b92b5.entry.js} +1 -1
  213. package/dist/{build/p-f16b7c0e.entry.js → paperless/p-5c4efc42.entry.js} +1 -1
  214. package/dist/paperless/{p-96020614.entry.js → p-5e6e2031.entry.js} +1 -1
  215. package/dist/{build/p-cce41338.entry.js → paperless/p-608f6111.entry.js} +1 -1
  216. package/dist/paperless/p-6da67ab3.entry.js +1 -0
  217. package/dist/paperless/{p-3d4eed8c.entry.js → p-7e9886d6.entry.js} +1 -1
  218. package/dist/paperless/{p-26a84c2f.entry.js → p-84652e9e.entry.js} +1 -1
  219. package/dist/{build/p-8073ff56.entry.js → paperless/p-93542510.entry.js} +1 -1
  220. package/dist/{build/p-5abb4596.entry.js → paperless/p-94311485.entry.js} +1 -1
  221. package/dist/{build/p-443e1609.entry.js → paperless/p-a3f1e55c.entry.js} +1 -1
  222. package/dist/{build/p-d79097e9.entry.js → paperless/p-a6d1bac6.entry.js} +1 -1
  223. package/dist/paperless/{p-4c47faf5.entry.js → p-aa3c6754.entry.js} +1 -1
  224. package/dist/paperless/{p-7b05d594.entry.js → p-bf87972a.entry.js} +1 -1
  225. package/dist/paperless/{p-796ade92.entry.js → p-d15bb397.entry.js} +1 -1
  226. package/dist/paperless/{p-4ade4fd6.entry.js → p-d2de7714.entry.js} +1 -1
  227. package/dist/{build/p-16625524.entry.js → paperless/p-d388076a.entry.js} +1 -1
  228. package/dist/{build/p-2461cae0.entry.js → paperless/p-dafa1b62.entry.js} +1 -1
  229. package/dist/paperless/{p-3224460c.entry.js → p-e0b1116c.entry.js} +1 -1
  230. package/dist/paperless/p-f0405a75.entry.js +1 -0
  231. package/dist/paperless/{p-0595952f.entry.js → p-ff9f4b2b.entry.js} +1 -1
  232. package/dist/paperless/paperless.esm.js +1 -1
  233. package/dist/sw.js +1 -1
  234. package/dist/sw.js.map +1 -1
  235. package/hydrate/index.js +109 -131
  236. package/hydrate/index.mjs +109 -131
  237. package/package.json +1 -1
  238. package/dist/build/p-4b03700c.entry.js +0 -1
  239. package/dist/build/p-fc461e09.entry.js +0 -1
  240. package/dist/paperless/p-4b03700c.entry.js +0 -1
  241. package/dist/paperless/p-fc461e09.entry.js +0 -1
@@ -109,9 +109,9 @@ const Radio = class {
109
109
  }
110
110
  render() {
111
111
  const id = this.id?.length ? this.id : this._nonce;
112
- return (index.h(themedHost_component.ThemedHost, { key: '6c93ef349dcabcef38658f27359a441fd4cd3813' }, index.h("label", { key: '291d100b75f53e0b26ed7684329ab8b47c67d89d', htmlFor: id, class: 'flex items-center justify-start gap-2' }, index.h("div", { key: '0db6d40c88eb7e38d49a7b00c51a9527bcb07919', class: 'relative flex flex-shrink-0 items-center' }, index.h("input", { key: 'c37a2ca4f67b57fb6fe4c5db31f047928eed1e70', class: radio({
112
+ return (index.h(themedHost_component.ThemedHost, { key: '6c93ef349dcabcef38658f27359a441fd4cd3813' }, index.h("label", { key: '291d100b75f53e0b26ed7684329ab8b47c67d89d', class: 'flex items-center justify-start gap-2', htmlFor: id }, index.h("div", { key: '0db6d40c88eb7e38d49a7b00c51a9527bcb07919', class: 'relative flex flex-shrink-0 items-center' }, index.h("input", { key: 'c37a2ca4f67b57fb6fe4c5db31f047928eed1e70', checked: this.checked, class: radio({
113
113
  disabled: asBoolean.asBoolean(this.disabled),
114
- }), type: 'radio', id: id, name: this.name, required: this.required, value: this.value, checked: this.checked, disabled: asBoolean.asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), index.h("div", { key: 'f062fa8dba4c876a5cce25d5777bf11ae936764a', class: circle({
114
+ }), disabled: asBoolean.asBoolean(this.disabled), id: id, name: this.name, required: this.required, type: 'radio', value: this.value, onChange: ev => this._onChange(ev) }), index.h("div", { key: 'f062fa8dba4c876a5cce25d5777bf11ae936764a', class: circle({
115
115
  disabled: asBoolean.asBoolean(this.disabled),
116
116
  }) })), index.h("div", { key: '90340477396fd987eabbe4cc7aeebb38a548ec68', class: 'flex-1 overflow-hidden text-ellipsis empty:hidden dark:text-white' }, index.h("slot", { key: 'b66d366cac0e5c99903edc18f4256c045d3a5b10' })))));
117
117
  }
@@ -33,7 +33,7 @@ const Range = class {
33
33
  valueChange;
34
34
  render() {
35
35
  const percentage = Math.round((this.value / (this.max - this.min)) * 100);
36
- return (index.h(themedHost_component.ThemedHost, { key: 'cb6a6b717940ba17aa7a6df5cc36577a991d3831' }, index.h("div", { key: '86f3c5cfa6b35bab44279382db58fc28cbfb864d', class: 'flex w-inherit items-center gap-2 text-storm-300 dark:text-hurricane-200' }, index.h("p-icon", { key: 'c39ee42a23403c618cf6980ee68610b0d2210f59', variant: 'minus' }), index.h("div", { key: 'ea69ab86a1006f763f2306cc5a644b12ebd68540', class: 'relative h-6 flex-1' }, index.h("input", { key: '36594b239d75623d5494a27ac44fffab83f2c51d', type: 'range', min: this.min, max: this.max, step: this.step, value: this.value, onInput: ev => {
36
+ return (index.h(themedHost_component.ThemedHost, { key: 'cb6a6b717940ba17aa7a6df5cc36577a991d3831' }, index.h("div", { key: '86f3c5cfa6b35bab44279382db58fc28cbfb864d', class: 'flex w-inherit items-center gap-2 text-storm-300 dark:text-hurricane-200' }, index.h("p-icon", { key: 'c39ee42a23403c618cf6980ee68610b0d2210f59', variant: 'minus' }), index.h("div", { key: 'ea69ab86a1006f763f2306cc5a644b12ebd68540', class: 'relative h-6 flex-1' }, index.h("input", { key: '36594b239d75623d5494a27ac44fffab83f2c51d', max: this.max, min: this.min, step: this.step, type: 'range', value: this.value, onInput: ev => {
37
37
  const value = ev.target.value;
38
38
  this.value = Number.parseFloat(value);
39
39
  this.valueChange.emit(value);
@@ -342,8 +342,8 @@ const Select = class {
342
342
  if (this.error?.length) {
343
343
  buttonIcon = 'warning';
344
344
  }
345
- return (index.h(themedHost_component.ThemedHost, { key: '617063ca6cf31255928f6f6856cb1902b1d225a2' }, index.h("p-field-container", { key: '4a6d95f7bfbc79b886044f2fe31695990b4e210d', variant: 'write', prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, showOptional: this.showOptional, error: this.error, forceShowTooltip: !!this.error?.length && !this._showDropdown }, index.h("p-dropdown", { key: 'a505febe8197f86f5e43ffa71f99c4b72cd2d8aa', applyFullWidth: true, applyMaxWidth: false, slot: 'content', insideClick: true, manual: true, scrollable: this.enableAutocomplete ? 'large' : true, "disable-trigger-click": this.disabled, show: this._showDropdown, onIsOpen: ev => this._onDropdownOpen(ev), strategy: this.strategy }, index.h("p-button", { key: 'fd28bc0407580787fdb73d87dc3f282c78db0cd4', slot: 'trigger', class: 'w-full', variant: 'secondary', size: this.size, chevron: this.showChevron ? (this._showDropdown ? 'up' : 'down') : false, active: this._showDropdown, error: !!this.error?.length, icon: buttonIcon, iconClass: this.applyClassOnSelectedItem &&
346
- this._selectedItem?.[this.iconClassKey], onClick: ev => this._onClick(ev) }, index.h("div", { key: 'bd68cd902b3b2c09c7f0810aab598fb12b06e84f', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue)), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem()))));
345
+ return (index.h(themedHost_component.ThemedHost, { key: '617063ca6cf31255928f6f6856cb1902b1d225a2' }, index.h("p-field-container", { key: '4a6d95f7bfbc79b886044f2fe31695990b4e210d', error: this.error, forceShowTooltip: !!this.error?.length && !this._showDropdown, helper: this.helper, label: this.label, prefix: this.prefix, required: this.required, showOptional: this.showOptional, variant: 'write' }, index.h("p-dropdown", { key: '85f6409928f327efcfc78cef1dddb9c30178e6ed', applyChevron: false, applyFullWidth: true, applyMaxWidth: false, "disable-trigger-click": this.disabled, insideClick: true, manual: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, slot: 'content', strategy: this.strategy, onIsOpen: ev => this._onDropdownOpen(ev) }, index.h("p-button", { key: '9c892e4edc472af73e0c2cbba419012d08302adc', active: this._showDropdown, chevron: this.showChevron ? (this._showDropdown ? 'up' : 'down') : false, class: 'w-full', error: !!this.error?.length, icon: buttonIcon, iconClass: this.applyClassOnSelectedItem &&
346
+ this._selectedItem?.[this.iconClassKey], size: this.size, slot: 'trigger', variant: 'secondary', onClick: ev => this._onClick(ev) }, index.h("div", { key: '6fa19bac84f26dbc0c3aa97985c6deb40c4eb641', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue)), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem()))));
347
347
  }
348
348
  documentClickHandler(event) {
349
349
  if (!this._showDropdown || childOf.childOfComposed(event, this._el)) {
@@ -500,7 +500,7 @@ const Select = class {
500
500
  ? this._selectedItem.some(i => i[this._identifierKey] === item[this._identifierKey])
501
501
  : item[this._identifierKey] ===
502
502
  this._selectedItem?.[this._identifierKey];
503
- return (index.h("p-dropdown-menu-item", { enableTextWrap: this.enableTextWrap, useContainer: false, onClick: () => this._selectValue(item), active: isSelected, checkbox: this.multi ? true : false, slot: 'items' }, this._getDisplay(item, false, isSelected)));
503
+ return (index.h("p-dropdown-menu-item", { active: isSelected, checkbox: this.multi ? true : false, enableTextWrap: this.enableTextWrap, slot: 'items', useContainer: false, onClick: () => this._selectValue(item) }, this._getDisplay(item, false, isSelected)));
504
504
  });
505
505
  if (this._items.length === 0) {
506
506
  items = [
@@ -508,7 +508,7 @@ const Select = class {
508
508
  ];
509
509
  }
510
510
  if (this.enableSelectAll && this._items.length > 0) {
511
- items.unshift(index.h("p-dropdown-menu-item", { slot: 'items', useContainer: false, checkbox: true, onClick: () => this._selectAllChange(), active: this._allSelected }, this.selectAllIcon?.length ? (index.h("span", { class: 'flex items-center gap-2' }, index.h("div", { class: 'flex w-6 justify-center text-lg' }, index.h("p-icon", { variant: this.selectAllIcon })), ' ', this.selectAllText)) : (this.selectAllText)));
511
+ items.unshift(index.h("p-dropdown-menu-item", { active: this._allSelected, slot: 'items', useContainer: false, checkbox: true, onClick: () => this._selectAllChange() }, this.selectAllIcon?.length ? (index.h("span", { class: 'flex items-center gap-2' }, index.h("div", { class: 'flex w-6 justify-center text-lg' }, index.h("p-icon", { variant: this.selectAllIcon })), ' ', this.selectAllText)) : (this.selectAllText)));
512
512
  }
513
513
  if (this.enableAutocomplete) {
514
514
  items.unshift(this._getAutoCompleteItem());
@@ -516,17 +516,17 @@ const Select = class {
516
516
  return items;
517
517
  }
518
518
  _getAddItem() {
519
- return (index.h("p-dropdown-menu-item", { onClick: () => this.add.emit(), useContainer: false, slot: 'items' }, index.h("span", { class: 'flex items-center gap-1 font-semibold text-indigo-600' }, this.addItemText, index.h("p-icon", { variant: 'plus' }))));
519
+ return (index.h("p-dropdown-menu-item", { slot: 'items', useContainer: false, onClick: () => this.add.emit() }, index.h("span", { class: 'flex items-center gap-1 font-semibold text-indigo-600' }, this.addItemText, index.h("p-icon", { variant: 'plus' }))));
520
520
  }
521
521
  _getLoadingItems() {
522
- const items = [0, 0, 0].map(() => (index.h("p-dropdown-menu-item", { enableHover: false, slot: 'items' }, index.h("p-loader", { variant: 'ghost', class: 'h-6 w-full rounded' }))));
522
+ const items = [0, 0, 0].map(() => (index.h("p-dropdown-menu-item", { enableHover: false, slot: 'items' }, index.h("p-loader", { class: 'h-6 w-full rounded', variant: 'ghost' }))));
523
523
  if (this.enableAutocomplete) {
524
524
  items.unshift(this._getAutoCompleteItem());
525
525
  }
526
526
  return items;
527
527
  }
528
528
  _getAutoCompleteItem() {
529
- return (index.h("div", { class: 'sticky top-0 z-10 mb-3 h-8', slot: 'items' }, index.h("p-field", { class: 'block', placeholder: this.autocompletePlaceholder, onValueChange: ev => this._onAutoComplete(ev), onInputRefChange: ev => (this.autocompleteInputRef = ev.detail), value: this.query })));
529
+ return (index.h("div", { class: 'sticky top-0 z-10 mb-3 h-8', slot: 'items' }, index.h("p-field", { class: 'block', placeholder: this.autocompletePlaceholder, value: this.query, onInputRefChange: ev => (this.autocompleteInputRef = ev.detail), onValueChange: ev => this._onAutoComplete(ev) })));
530
530
  }
531
531
  _setMultiContainerMaxWidth() {
532
532
  if (!this._inputRef || !this._multiContainerRef) {
@@ -590,7 +590,7 @@ const Select = class {
590
590
  ? (this.selectionDisplayKey ?? this.displayKey)
591
591
  : this.displayKey]));
592
592
  if (this.avatarKey) {
593
- content = (index.h("span", { class: 'flex items-center gap-2' }, index.h("p-avatar", { size: 'sm', src: item[this.avatarKey], letters: item[this.avatarLettersKey] }), index.h("div", { class: textContainer({
593
+ content = (index.h("span", { class: 'flex items-center gap-2' }, index.h("p-avatar", { letters: item[this.avatarLettersKey], size: 'sm', src: item[this.avatarKey] }), index.h("div", { class: textContainer({
594
594
  variant: 'default',
595
595
  error: !!this.error?.length,
596
596
  enableTextWrap: this.enableTextWrap && !isSelection,
@@ -110,7 +110,7 @@ const Stepper = class {
110
110
  }
111
111
  _getItem(data, i) {
112
112
  const activeStep = this.activeStep - 1 || 0;
113
- return (index.h("p-stepper-item", { active: this.enableAutoStatus ? i === activeStep : data.active, finished: this.enableAutoStatus ? i < activeStep : data.finished, number: i + 1, align: this.direction === 'vertical' ? this.align : 'start', contentPosition: this.contentPosition }, data.content));
113
+ return (index.h("p-stepper-item", { active: this.enableAutoStatus ? i === activeStep : data.active, align: this.direction === 'vertical' ? this.align : 'start', contentPosition: this.contentPosition, finished: this.enableAutoStatus ? i < activeStep : data.finished, number: i + 1 }, data.content));
114
114
  }
115
115
  _getLine(i) {
116
116
  const activeStep = this.activeStep - 1 || 0;
@@ -278,41 +278,19 @@ const Table = class {
278
278
  this.hasRendered.emit();
279
279
  }
280
280
  render() {
281
- return (index.h(index.Host, { key: '7ece1479d7c90b408fa55f045feba734f9e27b28', class: 'z-0 flex flex-col' }, index.h("p-table-container", { key: '290cf20abdacab6257ebef5479b834df529bccbd' }, this.enableHeader && (index.h("p-table-header", { key: '9d49ef03a1b0c8b47e8292f36ade24a2eb0b3f7d', class: 'mb-8',
282
- // quick filters
283
- quickFilters: this.quickFilters, activeQuickFilterIdentifier: this.activeQuickFilterIdentifier, onQuickFilter: ({ detail }) => this.quickFilter.emit(detail),
284
- // search
285
- enableSearch: this.enableSearch, query: this.query, onQueryChange: ({ detail }) => this.queryChange.emit(detail),
286
- // filter button
287
- enableFilter: this.enableFilter, enableFilterDesktop: this.enableFilterDesktop, selectedFiltersAmount: this.selectedFiltersAmount, filterButtonTemplate: this.filterButtonTemplate, onFilter: () => this.filter.emit(),
288
- // action button
289
- enableAction: this.enableAction, actionIcon: this.actionButtonIcon, actionText: this.actionButtonText, actionLoading: this.actionButtonLoading, canUseAction: this.actionButtonEnabled, actionButtonTemplate: this.actionButtonTemplate, onAction: () => this.action.emit(), itemsSelectedAmount: this.selectedRows?.length,
290
- //export
291
- enableExport: this.enableExport, onExport: () => this.export.emit(),
292
- //loading
293
- loading: this.headerLoading }, this._hasCustomFilterSlot && (index.h("slot", { key: '555237f446a654201d12321505062d4c4e06210c', name: 'custom-filter', slot: 'custom-filter' })), this._hasCustomActionsSlot && (index.h("slot", { key: '4e935caf48c9cf1b0516a61ca9076a3755f98546', name: 'custom-actions', slot: 'custom-actions' })))), this._getExtraHeader(), this._getHeader(), index.h("div", { key: '23816ab229344ba5a7c5cc02a358b277e5ff8da1', class: 'flex flex-1 flex-col' }, this._getRows(), index.h("slot", { key: 'd3012e94582c06ca536db0ab83d1bd0df4d80c48', name: 'custom-rows' })), this.enableFloatingMenu && this._enableRowSelection ? (index.h("p-floating-menu-container", { usedInTable: true, class: tableHelpers.floatingMenuContainerClass({
281
+ return (index.h(index.Host, { key: '7ece1479d7c90b408fa55f045feba734f9e27b28', class: 'z-0 flex flex-col' }, index.h("p-table-container", { key: '290cf20abdacab6257ebef5479b834df529bccbd' }, this.enableHeader && (index.h("p-table-header", { key: '6a1af71c86b2b23d26d8d344b1528b1356d7bd7b', actionButtonTemplate: this.actionButtonTemplate, actionIcon: this.actionButtonIcon, actionLoading: this.actionButtonLoading, actionText: this.actionButtonText, activeQuickFilterIdentifier: this.activeQuickFilterIdentifier, canUseAction: this.actionButtonEnabled, class: 'mb-8', enableAction: this.enableAction, enableExport: this.enableExport, enableFilter: this.enableFilter, enableFilterDesktop: this.enableFilterDesktop, enableSearch: this.enableSearch, filterButtonTemplate: this.filterButtonTemplate, itemsSelectedAmount: this.selectedRows?.length, loading: this.headerLoading, query: this.query, quickFilters: this.quickFilters, selectedFiltersAmount: this.selectedFiltersAmount, onAction: () => this.action.emit(), onExport: () => this.export.emit(), onFilter: () => this.filter.emit(), onQueryChange: ({ detail }) => this.queryChange.emit(detail), onQuickFilter: ({ detail }) => this.quickFilter.emit(detail) }, this._hasCustomFilterSlot && (index.h("slot", { key: '6bfe4727050ba7d6a3e6e280cc1c467259b9166b', name: 'custom-filter', slot: 'custom-filter' })), this._hasCustomActionsSlot && (index.h("slot", { key: 'da4f2aea31f0daa62749393a0390219fa4342b20', name: 'custom-actions', slot: 'custom-actions' })))), this._getExtraHeader(), this._getHeader(), index.h("div", { key: '799d65d57bf36a924ff40e6cb9416c4be0da4eaf', class: 'flex flex-1 flex-col' }, this._getRows(), index.h("slot", { key: 'b0060fa16edf49898787df195c86a35adf397798', name: 'custom-rows' })), this.enableFloatingMenu && this._enableRowSelection ? (index.h("p-floating-menu-container", { amount: this.selectedRows?.length, amountSelectedTemplate: this.floatingMenuAmountSelectedTemplate, class: tableHelpers.floatingMenuContainerClass({
294
282
  hasFooter: this.enableFooter && !this._footerHidden,
295
283
  active: !!this.selectedRows?.length,
296
284
  shown: this._floatingMenuShown,
297
- }), amountSelectedTemplate: this.floatingMenuAmountSelectedTemplate, amount: this.selectedRows?.length, enableAmountSelected: !!this._rowActionsFloating?.length, onClose: () => this._selectAllChange(null, false) }, this._rowActionsFloating?.length &&
298
- this._rowActionsFloating.map(a => (index.h("p-floating-menu-item", { slot: 'floating-menu-item', disabled: a.disabled, loading: a.loading, icon: a.icon, iconRotate: a.iconRotate, iconFlip: a.iconFlip, onClick: () => !a.disabled &&
285
+ }), enableAmountSelected: !!this._rowActionsFloating?.length, usedInTable: true, onClose: () => this._selectAllChange(null, false) }, this._rowActionsFloating?.length &&
286
+ this._rowActionsFloating.map(a => (index.h("p-floating-menu-item", { disabled: a.disabled, icon: a.icon, iconFlip: a.iconFlip, iconRotate: a.iconRotate, loading: a.loading, slot: 'floating-menu-item', onClick: () => !a.disabled &&
299
287
  !a.loading &&
300
288
  !!a.action &&
301
289
  a.type === 'single'
302
290
  ? a.action(this.selectedRows[0], false)
303
- : a.action(this.selectedRows, true) }, a.label))))) : (''), this.enableFooter && (index.h("p-table-footer", { key: '3c5138a3af7594642a8e750d40524bc13f138892',
304
- // overall
305
- hideOnSinglePage: this.hideOnSinglePage,
306
- // page size select
307
- enablePaginationSize: this.enablePaginationSize, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, onPageSizeChange: ({ detail }) => this.pageSizeChange.emit(detail),
308
- // pagination
309
- enablePaginationPages: this.enablePaginationPages, page: this.page, total: this.total, onPageChange: ({ detail }) => this.pageChange.emit(detail),
310
- //loading
311
- loading: this.footerLoading, onHiddenChange: ({ detail }) => (this._footerHidden = detail),
312
- // header adjustment
313
- tableHeaderHasAction: this.enableHeader &&
291
+ : a.action(this.selectedRows, true) }, a.label))))) : (''), this.enableFooter && (index.h("p-table-footer", { key: '57d24f1f3803e58053eba3da5fad1ab6474eccc6', enablePaginationPages: this.enablePaginationPages, enablePaginationSize: this.enablePaginationSize, hideOnSinglePage: this.hideOnSinglePage, loading: this.footerLoading, page: this.page, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, tableHeaderHasAction: this.enableHeader &&
314
292
  this.enableAction &&
315
- this.actionButtonEnabled })))));
293
+ this.actionButtonEnabled, total: this.total, onHiddenChange: ({ detail }) => (this._footerHidden = detail), onPageChange: ({ detail }) => this.pageChange.emit(detail), onPageSizeChange: ({ detail }) => this.pageSizeChange.emit(detail) })))));
316
294
  }
317
295
  async _setLocales() {
318
296
  this._locales = await localization.getLocaleComponentStrings(this._el);
@@ -408,12 +386,12 @@ const Table = class {
408
386
  if (!this._extraHeaders?.length) {
409
387
  return null;
410
388
  }
411
- return (index.h("p-table-row", { variant: 'header-secondary', isLast: true }, this._extraHeaders.map((col, index$1) => (index.h("p-table-cell", { definition: col, variant: 'header-secondary', checkboxOffset: index$1 === 0 && this._enableRowSelection, index: index$1 }, index.h("b", null, col.name))))));
389
+ return (index.h("p-table-row", { isLast: true, variant: 'header-secondary' }, this._extraHeaders.map((col, index$1) => (index.h("p-table-cell", { checkboxOffset: index$1 === 0 && this._enableRowSelection, definition: col, index: index$1, variant: 'header-secondary' }, index.h("b", null, col.name))))));
412
390
  }
413
391
  _getHeader() {
414
- return (index.h("p-table-row", { variant: 'header' }, this._columns.map((col, index$1) => (index.h("p-table-cell", { definition: col, value: col.name, variant: 'header', checkbox: index$1 === 0 || col.hasCheckbox
392
+ return (index.h("p-table-row", { variant: 'header' }, this._columns.map((col, index$1) => (index.h("p-table-cell", { checkbox: index$1 === 0 || col.hasCheckbox
415
393
  ? this._getCheckbox(null, this.loading ? 'loading' : 'header')
416
- : null, index: index$1 })))));
394
+ : null, definition: col, index: index$1, value: col.name, variant: 'header' })))));
417
395
  }
418
396
  _getRows() {
419
397
  if (this.loading) {
@@ -424,22 +402,22 @@ const Table = class {
424
402
  if (this._items.length === 0) {
425
403
  return this._getEmptyState();
426
404
  }
427
- return this._items.map((item, index$1) => (index.h("p-table-row", { enableHover: this._enableRowSelection || this.enableRowClick, checked: this._selectionContains(index$1), onClick: ev => this._rowClick(ev, index$1), isLast: index$1 === this._items.length - 1 }, this._getRowColumns(item, index$1), this._getActions(item, index$1))));
405
+ return this._items.map((item, index$1) => (index.h("p-table-row", { checked: this._selectionContains(index$1), enableHover: this._enableRowSelection || this.enableRowClick, isLast: index$1 === this._items.length - 1, onClick: ev => this._rowClick(ev, index$1) }, this._getRowColumns(item, index$1), this._getActions(item, index$1))));
428
406
  }
429
407
  _getActions(item, index$1) {
430
408
  const actions = this._rowActionsRow.filter(a => a.showFunction ? a.showFunction(item) : true);
431
409
  if (actions?.length && !screens.isMobile()) {
432
- return (index.h("p-table-row-actions-container", { slot: 'actions', checked: this._selectionContains(index$1) }, actions.map(a => (index.h("p-tooltip", { strategy: 'fixed', content: a.label }, index.h("p-button", { "data-is-action": true, variant: 'secondary', slot: 'trigger', icon: a.icon, iconRotate: a.iconRotate, iconFlip: a.iconFlip, iconOnly: true, size: 'sm', onClick: () => typeof a.action === 'function' && a.action?.(item, false) }))))));
410
+ return (index.h("p-table-row-actions-container", { checked: this._selectionContains(index$1), slot: 'actions' }, actions.map(a => (index.h("p-tooltip", { content: a.label, strategy: 'fixed' }, index.h("p-button", { icon: a.icon, iconFlip: a.iconFlip, iconOnly: true, iconRotate: a.iconRotate, size: 'sm', slot: 'trigger', variant: 'secondary', "data-is-action": true, onClick: () => typeof a.action === 'function' && a.action?.(item, false) }))))));
433
411
  }
434
412
  return null;
435
413
  }
436
414
  _getRowColumns(item, index$1) {
437
- return this._columns.map((col, colIndex) => (index.h("p-table-cell", { definition: col, item: item, checkbox: colIndex === 0 || col.hasCheckbox ? this._getCheckbox(index$1) : null, index: colIndex, rowIndex: index$1 })));
415
+ return this._columns.map((col, colIndex) => (index.h("p-table-cell", { checkbox: colIndex === 0 || col.hasCheckbox ? this._getCheckbox(index$1) : null, definition: col, index: colIndex, item: item, rowIndex: index$1 })));
438
416
  }
439
417
  _getLoadingColumns(index$1) {
440
- return this._columns.map((col, colIndex) => (index.h("p-table-cell", { definition: col, variant: 'loading', checkbox: colIndex === 0 || col.hasCheckbox
418
+ return this._columns.map((col, colIndex) => (index.h("p-table-cell", { checkbox: colIndex === 0 || col.hasCheckbox
441
419
  ? this._getCheckbox(index$1, 'loading')
442
- : null, index: colIndex, rowIndex: index$1 })));
420
+ : null, definition: col, index: colIndex, rowIndex: index$1, variant: 'loading' })));
443
421
  }
444
422
  _getCheckbox(rowIndex, variant = 'default') {
445
423
  if (!this._enableRowSelection ||
@@ -447,25 +425,25 @@ const Table = class {
447
425
  return;
448
426
  }
449
427
  if (variant === 'loading') {
450
- return (index.h("p-loader", { variant: 'ghost', class: 'h-6 w-6 rounded' }));
428
+ return (index.h("p-loader", { class: 'h-6 w-6 rounded', variant: 'ghost' }));
451
429
  }
452
430
  if (variant === 'header') {
453
- return (index.h("p-checkbox", { class: cn.cn({
431
+ return (index.h("p-checkbox", { checked: this._selectionContainsAll(), class: cn.cn({
454
432
  'opacity-0': this._rowSelectionLimit !== undefined,
455
- }), checked: this._selectionContainsAll(), indeterminate: this._selectionIndeterminate(), disabled: this._rowSelectionLimit !== undefined, onCheckedChange: ev => this._selectAllChange(ev) }));
433
+ }), disabled: this._rowSelectionLimit !== undefined, indeterminate: this._selectionIndeterminate(), onCheckedChange: ev => this._selectAllChange(ev) }));
456
434
  }
457
435
  const item = this._items[rowIndex];
458
436
  const selectionContains = this._selectionContains(rowIndex);
459
- return (index.h("p-checkbox", { class: 'flex-shrink-0', disabled: (this.canSelectKey && !item[this.canSelectKey]) ||
437
+ return (index.h("p-checkbox", { checked: selectionContains, class: 'flex-shrink-0', disabled: (this.canSelectKey && !item[this.canSelectKey]) ||
460
438
  (this._rowSelectionLimit !== undefined &&
461
439
  !selectionContains &&
462
- this.selectedRows.length === this._rowSelectionLimit), checked: selectionContains, onCheckedChange: ev => this._checkboxChange(ev, rowIndex) }));
440
+ this.selectedRows.length === this._rowSelectionLimit), onCheckedChange: ev => this._checkboxChange(ev, rowIndex) }));
463
441
  }
464
442
  _getEmptyState() {
465
443
  if (this.query?.length || this.selectedFiltersAmount) {
466
- return (index.h("p-empty-state", { class: 'my-16 self-center', illustration: 'search', header: this.emptyStateFilteredHeader(), content: this.emptyStateFilteredContent() }));
444
+ return (index.h("p-empty-state", { class: 'my-16 self-center', content: this.emptyStateFilteredContent(), header: this.emptyStateFilteredHeader(), illustration: 'search' }));
467
445
  }
468
- return (index.h("p-empty-state", { class: 'my-16 self-center', illustration: 'table', header: this.emptyStateHeader(), content: this.emptyStateContent(), enableAction: this.enableEmptyStateAction, actionIcon: 'plus', actionText: this.emptyStateAction(), onAction: () => this.enableAction && this.action.emit() }));
446
+ return (index.h("p-empty-state", { actionIcon: 'plus', actionText: this.emptyStateAction(), class: 'my-16 self-center', content: this.emptyStateContent(), enableAction: this.enableEmptyStateAction, header: this.emptyStateHeader(), illustration: 'table', onAction: () => this.enableAction && this.action.emit() }));
469
447
  }
470
448
  _selectAllChange(ev, forceValue) {
471
449
  if (!this._enableRowSelection) {
@@ -60,7 +60,7 @@ const Toast = class {
60
60
  */
61
61
  action;
62
62
  render() {
63
- return (index.h(themedHost_component.ThemedHost, { key: '6fd875b74af13f4a1c7dd6e924d7044ff06c944f' }, index.h("div", { key: 'f908fa3fc32e0818e5b7ccd64adf925678719072', class: 'flex gap-2 rounded-lg border border-solid border-storm-100 bg-white p-2 shadow-2 dark:border-hurricane-800 dark:bg-hurricane-800', onClick: () => this._onClick() }, index.h("div", { key: '7f2788fde508ad480ffaaf544f6815f87e520499', class: indicator({ variant: this.variant }) }), index.h("div", { key: '99bde4f91347f270375852e62b573cba43d570d2', class: content() }, index.h("div", { key: '2ea0b73745021b483607c52166204f3e00b33d38', class: 'flex w-full min-w-0 flex-col' }, index.h("p", { key: 'd9cf48a043d897e211da6ce6d389ee65c59d7560', class: 'm-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-storm-500 dark:text-white' }, this.header?.length ? this.header : index.h("slot", { name: 'header' })), index.h("p", { key: 'cbae153aafab6f54d0af33ab3a99f1c03a44cd78', class: 'm-0 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs text-storm-300 dark:text-hurricane-200' }, this.content?.length ? this.content : index.h("slot", { name: 'content' }))), this.enableAction && (index.h("div", { key: '300ae00c2e2e30c87c32f78bf05a3bb3a65e2a97', class: 'flex-shrink-0 cursor-pointer p-2 text-storm-200 hover:text-storm-500 hover:text-white dark:text-hurricane-200' }, index.h("p-icon", { key: 'a7849a36ec22b1a300c0d788c0e41ea1e8e76340', variant: this.actionIcon, flip: this.actionIconFlip, rotate: this.actionIconRotate })))))));
63
+ return (index.h(themedHost_component.ThemedHost, { key: '6fd875b74af13f4a1c7dd6e924d7044ff06c944f' }, index.h("div", { key: 'f908fa3fc32e0818e5b7ccd64adf925678719072', class: 'flex gap-2 rounded-lg border border-solid border-storm-100 bg-white p-2 shadow-2 dark:border-hurricane-800 dark:bg-hurricane-800', onClick: () => this._onClick() }, index.h("div", { key: '7f2788fde508ad480ffaaf544f6815f87e520499', class: indicator({ variant: this.variant }) }), index.h("div", { key: '99bde4f91347f270375852e62b573cba43d570d2', class: content() }, index.h("div", { key: '2ea0b73745021b483607c52166204f3e00b33d38', class: 'flex w-full min-w-0 flex-col' }, index.h("p", { key: 'd9cf48a043d897e211da6ce6d389ee65c59d7560', class: 'm-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-storm-500 dark:text-white' }, this.header?.length ? this.header : index.h("slot", { name: 'header' })), index.h("p", { key: 'cbae153aafab6f54d0af33ab3a99f1c03a44cd78', class: 'm-0 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs text-storm-300 dark:text-hurricane-200' }, this.content?.length ? this.content : index.h("slot", { name: 'content' }))), this.enableAction && (index.h("div", { key: '300ae00c2e2e30c87c32f78bf05a3bb3a65e2a97', class: 'flex-shrink-0 cursor-pointer p-2 text-storm-200 hover:text-storm-500 hover:text-white dark:text-hurricane-200' }, index.h("p-icon", { key: 'a7849a36ec22b1a300c0d788c0e41ea1e8e76340', flip: this.actionIconFlip, rotate: this.actionIconRotate, variant: this.actionIcon })))))));
64
64
  }
65
65
  _onClick() {
66
66
  if (this.enableAction) {
@@ -107,9 +107,9 @@ const Toggle = class {
107
107
  }
108
108
  render() {
109
109
  const id = this.id?.length ? this.id : this._nonce;
110
- return (index.h(themedHost_component.ThemedHost, { key: '71d4bd767b20adf62204be57f4aab791062b5e3d' }, index.h("label", { key: '9a5152398ccfe931d48135fd2185dc1d04e0ae0a', htmlFor: id, class: 'flex items-center justify-start gap-2' }, index.h("div", { key: '1fd1d1c6e8b35354c9f91442b88ee7aca4297c22', class: 'group/p-toggle relative flex flex-shrink-0 items-center' }, index.h("input", { key: 'f487829bc32e0865446f006ef8de74a4fd3059cd', class: toggle({
110
+ return (index.h(themedHost_component.ThemedHost, { key: '71d4bd767b20adf62204be57f4aab791062b5e3d' }, index.h("label", { key: '9a5152398ccfe931d48135fd2185dc1d04e0ae0a', class: 'flex items-center justify-start gap-2', htmlFor: id }, index.h("div", { key: '1fd1d1c6e8b35354c9f91442b88ee7aca4297c22', class: 'group/p-toggle relative flex flex-shrink-0 items-center' }, index.h("input", { key: 'f487829bc32e0865446f006ef8de74a4fd3059cd', checked: !!this.checked, class: toggle({
111
111
  disabled: asBoolean.asBoolean(this.disabled),
112
- }), type: 'checkbox', id: id, name: this.name, required: this.required, checked: !!this.checked, disabled: asBoolean.asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), index.h("div", { key: '8c1664a5b9eadf6c454636aca5e044e233a8a8ab', class: circle({
112
+ }), disabled: asBoolean.asBoolean(this.disabled), id: id, name: this.name, required: this.required, type: 'checkbox', onChange: ev => this._onChange(ev) }), index.h("div", { key: '8c1664a5b9eadf6c454636aca5e044e233a8a8ab', class: circle({
113
113
  disabled: asBoolean.asBoolean(this.disabled),
114
114
  }) })), index.h("div", { key: '90f8606523d6d4b131bf039717d9c436ae36d782', class: 'flex-1 overflow-hidden text-ellipsis empty:hidden dark:text-white' }, index.h("slot", { key: 'cf7f5ed84d5b1cda9b6372209242415d4dd67024' })))));
115
115
  }
@@ -101,7 +101,7 @@ const Tooltip = class {
101
101
  return (index.h(themedHost_component.ThemedHost, { key: 'ef3333212b88389556fa76159040a9dd6e0c2e17', "data-filled": this.content?.length > 0 || this._hasContentSlot }, index.h("slot", { key: '095bf08cf3d45b3baaf9921796392b6b51e13719', name: 'trigger' }), index.h("div", { key: '46dcc7888a6c2e66e1e5e7d5a9492f117775be30', class: popover({
102
102
  variant: this.variant,
103
103
  strategy: this.strategy,
104
- }), role: 'popover', "data-placement": this.placement, ref: el => this._load(el) }, index.h("div", { key: '5651334a58293cf9a6adc96b2d8cb1991691404a', class: 'flex gap-2 whitespace-normal' }, this.variant === 'error' && (index.h("div", { key: '9db76dfaf31d1acbb72eedd0d90744bf913bb21f', class: 'w-[2px] bg-negative-red-500 dark:bg-negative-red-alternative' })), this.content ?? index.h("slot", { key: '0bbaa654220dd3b99c26dd787c540a1ca85bd8af', name: 'content' })))));
104
+ }), "data-placement": this.placement, ref: el => this._load(el), role: 'popover' }, index.h("div", { key: '5651334a58293cf9a6adc96b2d8cb1991691404a', class: 'flex gap-2 whitespace-normal' }, this.variant === 'error' && (index.h("div", { key: '9db76dfaf31d1acbb72eedd0d90744bf913bb21f', class: 'w-[2px] bg-negative-red-500 dark:bg-negative-red-alternative' })), this.content ?? index.h("slot", { key: '0bbaa654220dd3b99c26dd787c540a1ca85bd8af', name: 'content' })))));
105
105
  }
106
106
  clickHandler() {
107
107
  if (this.variant === 'hover' || !this.enableUserInput) {
@@ -57,7 +57,7 @@ export class Avatar {
57
57
  return (h(Host, { key: '796c5d3f656f05a0fb841dc24ba3ffd443a690da', class: avatar({
58
58
  size: this.size,
59
59
  variant: this.variant,
60
- }) }, this._failed ? (h("span", null, this.letters?.[0] ?? ' ')) : (h("img", { src: this._src, class: 'z-0 aspect-branding h-full rounded-full object-cover', onError: () => this._setFailed() }))));
60
+ }) }, this._failed ? (h("span", null, this.letters?.[0] ?? ' ')) : (h("img", { class: 'z-0 aspect-branding h-full rounded-full object-cover', src: this._src, onError: () => this._setFailed() }))));
61
61
  }
62
62
  _setFailed() {
63
63
  this._failed = true;
@@ -49,7 +49,7 @@ export class CardHeader {
49
49
  variant: this.variant,
50
50
  }) }, h("div", { key: '3d56078ea79fdcb81461437dd3b8c66f712a5cef', class: content({
51
51
  variant: this.variant,
52
- }) }, this.icon ? (h("p-icon", { class: 'text-storm-300 dark:text-hurricane-200', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })) : (h("slot", { name: 'prefix' })), h("div", { key: 'e22fd58249b94c1824bfa82cb367bf780a5b99b7', class: title() }, h("span", { key: '5de7e320dd84436f9de735f503cae3cbab37b1d7', class: 'max-w-full overflow-hidden text-ellipsis' }, this.header?.length ? this.header : h("slot", null)), h("slot", { key: 'eb9e59d3d09f5e7488128d2ddb33d40f3724252e', name: 'content-suffix' })), h("div", { key: '934928145118a42aeef1008317c88a503bd58fe8', class: 'ml-auto flex items-center justify-end gap-4 empty:hidden' }, h("slot", { key: '915ac41cb6bf6e56bde59d61b8a9601e2c402094', name: 'suffix' }))), this.variant === 'default' ? (asBoolean(this.divider) && (h("p-divider", { class: 'text-off-white-700 dark:text-white/15' }))) : (h("div", { class: 'pointer-events-none absolute left-0 top-0 z-[-1] h-full w-full overflow-hidden rounded-t-2xl' }, h("p-smile", { class: 'dark:text-hurricane-400', variant: 'card' }))))));
52
+ }) }, this.icon ? (h("p-icon", { class: 'text-storm-300 dark:text-hurricane-200', flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })) : (h("slot", { name: 'prefix' })), h("div", { key: 'e22fd58249b94c1824bfa82cb367bf780a5b99b7', class: title() }, h("span", { key: '5de7e320dd84436f9de735f503cae3cbab37b1d7', class: 'max-w-full overflow-hidden text-ellipsis' }, this.header?.length ? this.header : h("slot", null)), h("slot", { key: 'eb9e59d3d09f5e7488128d2ddb33d40f3724252e', name: 'content-suffix' })), h("div", { key: '934928145118a42aeef1008317c88a503bd58fe8', class: 'ml-auto flex items-center justify-end gap-4 empty:hidden' }, h("slot", { key: '915ac41cb6bf6e56bde59d61b8a9601e2c402094', name: 'suffix' }))), this.variant === 'default' ? (asBoolean(this.divider) && (h("p-divider", { class: 'text-off-white-700 dark:text-white/15' }))) : (h("div", { class: 'pointer-events-none absolute left-0 top-0 z-[-1] h-full w-full overflow-hidden rounded-t-2xl' }, h("p-smile", { class: 'dark:text-hurricane-400', variant: 'card' }))))));
53
53
  }
54
54
  static get is() { return "p-card-header"; }
55
55
  static get encapsulation() { return "shadow"; }
@@ -94,9 +94,9 @@ export class Checkbox {
94
94
  }
95
95
  render() {
96
96
  const id = this.id?.length ? this.id : this._nonce;
97
- return (h(ThemedHost, { key: '03c9bf5aa440371b96bec78c7485c3e6269e3912' }, h("label", { key: '2b6622d4b6fa53b9b655408f6f5f309437ac0a51', htmlFor: id, class: 'group/p-checkbox flex items-center justify-start gap-2' }, h("div", { key: '0302b3c44cef3973eba59676a4fbafc8ffe7ec30', class: 'relative flex flex-shrink-0 items-center' }, h("input", { key: 'ce840a43c8406e09930e5b64d9c7953f2e6834d6', class: checkbox({
97
+ return (h(ThemedHost, { key: '03c9bf5aa440371b96bec78c7485c3e6269e3912' }, h("label", { key: '2b6622d4b6fa53b9b655408f6f5f309437ac0a51', class: 'group/p-checkbox flex items-center justify-start gap-2', htmlFor: id }, h("div", { key: '0302b3c44cef3973eba59676a4fbafc8ffe7ec30', class: 'relative flex flex-shrink-0 items-center' }, h("input", { key: 'ce840a43c8406e09930e5b64d9c7953f2e6834d6', checked: asBoolean(this.checked), class: checkbox({
98
98
  disabled: asBoolean(this.disabled),
99
- }), type: 'checkbox', id: id, name: this.name, required: asBoolean(this.required), checked: asBoolean(this.checked), indeterminate: asBoolean(this.indeterminate), disabled: asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), h("div", { key: '85129e843c23d91173f748031191e33f96c08491', class: iconContainer({
99
+ }), disabled: asBoolean(this.disabled), id: id, indeterminate: asBoolean(this.indeterminate), name: this.name, required: asBoolean(this.required), type: 'checkbox', onChange: ev => this._onChange(ev) }), h("div", { key: '85129e843c23d91173f748031191e33f96c08491', class: iconContainer({
100
100
  disabled: asBoolean(this.disabled),
101
101
  }) }, h("p-icon", { key: 'c649d245d7184a33c235b65aaa2cc282cb5d3b56', class: icon({
102
102
  disabled: asBoolean(this.disabled),
@@ -21,7 +21,7 @@ export class DrawerHeader {
21
21
  */
22
22
  close;
23
23
  render() {
24
- return (h(ThemedHost, { key: '22b70fd5ecc48cca0e7889bf5fa8167f6063b471' }, h("div", { key: 'b19d3cce208759e68446ade1baa02a95286aaf51', class: header() }, h("div", { key: 'b5a28ec7d297cb8d9c71ebfb5bf7f652434a438b', class: content() }, this.showClose && (h("p-button", { key: '9e1d4d71e3f1c4efd65d5639d388f72e628ec81c', variant: 'secondary', icon: 'negative', iconOnly: true, onClick: ev => this.close.emit(ev) })), h("div", { key: '6906eb28f9fd9f63b49921da0f3b49c20b9ab665', class: title() }, h("slot", { key: '62d673dae21712e3e2919618e518869172f82db2' })), this.showClose && h("div", { key: '451411cc086c5b6c366313d38bfb277cafebe138', class: 'size-8' })), h("p-smile", { key: 'd1d4ae0aa65e5d9d91819da89bbaf7598d145ca3', class: 'dark:text-hurricane-400' }))));
24
+ return (h(ThemedHost, { key: '22b70fd5ecc48cca0e7889bf5fa8167f6063b471' }, h("div", { key: 'b19d3cce208759e68446ade1baa02a95286aaf51', class: header() }, h("div", { key: 'b5a28ec7d297cb8d9c71ebfb5bf7f652434a438b', class: content() }, this.showClose && (h("p-button", { key: '9e1d4d71e3f1c4efd65d5639d388f72e628ec81c', icon: 'negative', iconOnly: true, variant: 'secondary', onClick: ev => this.close.emit(ev) })), h("div", { key: '6906eb28f9fd9f63b49921da0f3b49c20b9ab665', class: title() }, h("slot", { key: '62d673dae21712e3e2919618e518869172f82db2' })), this.showClose && h("div", { key: '451411cc086c5b6c366313d38bfb277cafebe138', class: 'size-8' })), h("p-smile", { key: 'd1d4ae0aa65e5d9d91819da89bbaf7598d145ca3', class: 'dark:text-hurricane-400' }))));
25
25
  }
26
26
  static get is() { return "p-drawer-header"; }
27
27
  static get encapsulation() { return "shadow"; }
@@ -65,7 +65,7 @@ export class FloatingMenuContainer {
65
65
  render() {
66
66
  return (h(ThemedHost, { key: 'b68d74e35de85f5b14b30d1c6649f4a2449c7b04' }, h("div", { key: '1cdae9d4705acc85650b593a8f200e8b6e791261', class: container({
67
67
  enableAmountSelected: this.enableAmountSelected,
68
- }) }, this.enableAmountSelected && (h(Fragment, { key: '4fb6df02b5af8b38ce42f6af67846f88de9ea47b' }, h("p", { key: 'faf5b2587318c74afaa210f845f5e171323bb56d', class: amountSelected() }, this.amountSelectedTemplate(this.amount)), h("p-divider", { key: '1c0ecb274c5ff16476be4422f3bc90f9b26e1a22', class: 'mx-0 h-4 text-storm-400', variant: 'vertical' }))), h("div", { key: 'ca40fbbbf5cb4b0293f06e9dcb75680474009cf5', class: 'flex items-center' }, this.usedInTable ? h("slot", { name: 'floating-menu-item' }) : h("slot", null), this.enableClose && (h("p-floating-menu-item", { key: 'c8716fd6671726b5afe2b9d045c65495ae22e01b', onClick: ev => this.close.emit(ev), icon: 'negative' }))))));
68
+ }) }, this.enableAmountSelected && (h(Fragment, { key: '4fb6df02b5af8b38ce42f6af67846f88de9ea47b' }, h("p", { key: 'faf5b2587318c74afaa210f845f5e171323bb56d', class: amountSelected() }, this.amountSelectedTemplate(this.amount)), h("p-divider", { key: '1c0ecb274c5ff16476be4422f3bc90f9b26e1a22', class: 'mx-0 h-4 text-storm-400', variant: 'vertical' }))), h("div", { key: 'ca40fbbbf5cb4b0293f06e9dcb75680474009cf5', class: 'flex items-center' }, this.usedInTable ? h("slot", { name: 'floating-menu-item' }) : h("slot", null), this.enableClose && (h("p-floating-menu-item", { key: 'c8716fd6671726b5afe2b9d045c65495ae22e01b', icon: 'negative', onClick: ev => this.close.emit(ev) }))))));
69
69
  }
70
70
  async _setLocales() {
71
71
  this._locales = await getLocaleComponentStrings(this._el);
@@ -96,7 +96,7 @@ export class FloatingMenuItem {
96
96
  return (h("p-icon", { class: icon({
97
97
  hover: asBoolean(this.hover),
98
98
  disabled: asBoolean(this.disabled),
99
- }), variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate }));
99
+ }), flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon }));
100
100
  }
101
101
  static get is() { return "p-floating-menu-item"; }
102
102
  static get originalStyleUrls() {
@@ -10,7 +10,7 @@ export class Helper {
10
10
  */
11
11
  placement = 'top';
12
12
  render() {
13
- return (h(ThemedHost, { key: 'd7f07b4f232bb43ce0988ea8533353a8d193e7bf' }, h("p-tooltip", { key: 'df76c8696c9621a6ea5431c5d256eded55de0b57', class: 'flex', placement: this.placement, strategy: this.strategy }, h("p-icon", { key: 'e7c4d59174ec46413381af510485a890fcab91f8', size: 'sm', class: 'cursor-pointer text-storm-300 hover:text-storm-500 dark:text-hurricane-300 dark:hover:text-hurricane-200', variant: 'question-circle', slot: 'trigger' }), h("div", { key: '1173d658220d127af6982fb2939f7493a84cf52d', slot: 'content' }, h("slot", { key: '53d7d9c9c9c919ba312dc57f92d68fdc5f6b385c' })))));
13
+ return (h(ThemedHost, { key: 'd7f07b4f232bb43ce0988ea8533353a8d193e7bf' }, h("p-tooltip", { key: 'df76c8696c9621a6ea5431c5d256eded55de0b57', class: 'flex', placement: this.placement, strategy: this.strategy }, h("p-icon", { key: 'e7c4d59174ec46413381af510485a890fcab91f8', class: 'cursor-pointer text-storm-300 hover:text-storm-500 dark:text-hurricane-300 dark:hover:text-hurricane-200', size: 'sm', slot: 'trigger', variant: 'question-circle' }), h("div", { key: '1173d658220d127af6982fb2939f7493a84cf52d', slot: 'content' }, h("slot", { key: '53d7d9c9c9c919ba312dc57f92d68fdc5f6b385c' })))));
14
14
  }
15
15
  static get is() { return "p-helper"; }
16
16
  static get encapsulation() { return "shadow"; }
@@ -60,9 +60,9 @@ export class Icon {
60
60
  flip: this.flip,
61
61
  size: hasTextSizeClass ? 'auto' : this.size,
62
62
  transform: this.flip !== 'none' || this.rotate > 0 || this.rotate < 0,
63
- }), style: {
63
+ }), innerHTML: svg, style: {
64
64
  '--tw-rotate': `${this.rotate}deg`,
65
- }, title: this.variant, innerHTML: svg }));
65
+ }, title: this.variant }));
66
66
  }
67
67
  static get is() { return "p-icon"; }
68
68
  static get encapsulation() { return "shadow"; }
@@ -22,7 +22,7 @@ export class ModalHeader {
22
22
  */
23
23
  close;
24
24
  render() {
25
- return (h(ThemedHost, { key: '61310ca15062863fa75788e8621c845829835a83' }, h("div", { key: '45d347c0906fb178470a22ee073f78d2c83a625d', class: header() }, h("div", { key: 'cd7903f26712a92149166a9016f397701c216ee3', class: content() }, h("div", { key: 'e1aa409159b2c19f97682ba5de0ebcdbca799e7a', class: title() }, h("slot", { key: '605016d68fa57dde900543c0cee048f078613fa7' })), this.showClose && (h("p-button", { key: '885ebd89b2f63609e658debad4137df0dfb03b8c', variant: 'secondary', icon: 'negative', iconOnly: true, onClick: ev => this.close.emit(ev) }))), h("p-smile", { key: 'f461107c6a15c7c58e5944b0b19e54ff0ce88305', class: 'dark:text-hurricane-400' }))));
25
+ return (h(ThemedHost, { key: '61310ca15062863fa75788e8621c845829835a83' }, h("div", { key: '45d347c0906fb178470a22ee073f78d2c83a625d', class: header() }, h("div", { key: 'cd7903f26712a92149166a9016f397701c216ee3', class: content() }, h("div", { key: 'e1aa409159b2c19f97682ba5de0ebcdbca799e7a', class: title() }, h("slot", { key: '605016d68fa57dde900543c0cee048f078613fa7' })), this.showClose && (h("p-button", { key: '885ebd89b2f63609e658debad4137df0dfb03b8c', icon: 'negative', iconOnly: true, variant: 'secondary', onClick: ev => this.close.emit(ev) }))), h("p-smile", { key: 'f461107c6a15c7c58e5944b0b19e54ff0ce88305', class: 'dark:text-hurricane-400' }))));
26
26
  }
27
27
  static get is() { return "p-modal-header"; }
28
28
  static get encapsulation() { return "shadow"; }
@@ -91,9 +91,9 @@ export class Radio {
91
91
  }
92
92
  render() {
93
93
  const id = this.id?.length ? this.id : this._nonce;
94
- return (h(ThemedHost, { key: '6c93ef349dcabcef38658f27359a441fd4cd3813' }, h("label", { key: '291d100b75f53e0b26ed7684329ab8b47c67d89d', htmlFor: id, class: 'flex items-center justify-start gap-2' }, h("div", { key: '0db6d40c88eb7e38d49a7b00c51a9527bcb07919', class: 'relative flex flex-shrink-0 items-center' }, h("input", { key: 'c37a2ca4f67b57fb6fe4c5db31f047928eed1e70', class: radio({
94
+ return (h(ThemedHost, { key: '6c93ef349dcabcef38658f27359a441fd4cd3813' }, h("label", { key: '291d100b75f53e0b26ed7684329ab8b47c67d89d', class: 'flex items-center justify-start gap-2', htmlFor: id }, h("div", { key: '0db6d40c88eb7e38d49a7b00c51a9527bcb07919', class: 'relative flex flex-shrink-0 items-center' }, h("input", { key: 'c37a2ca4f67b57fb6fe4c5db31f047928eed1e70', checked: this.checked, class: radio({
95
95
  disabled: asBoolean(this.disabled),
96
- }), type: 'radio', id: id, name: this.name, required: this.required, value: this.value, checked: this.checked, disabled: asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), h("div", { key: 'f062fa8dba4c876a5cce25d5777bf11ae936764a', class: circle({
96
+ }), disabled: asBoolean(this.disabled), id: id, name: this.name, required: this.required, type: 'radio', value: this.value, onChange: ev => this._onChange(ev) }), h("div", { key: 'f062fa8dba4c876a5cce25d5777bf11ae936764a', class: circle({
97
97
  disabled: asBoolean(this.disabled),
98
98
  }) })), h("div", { key: '90340477396fd987eabbe4cc7aeebb38a548ec68', class: 'flex-1 overflow-hidden text-ellipsis empty:hidden dark:text-white' }, h("slot", { key: 'b66d366cac0e5c99903edc18f4256c045d3a5b10' })))));
99
99
  }
@@ -69,7 +69,7 @@ export class SegmentItem {
69
69
  }) }, this.icon && (h("p-icon", { key: '63323d0681027b5a1215c342113d1ffb5c3924b4', class: cn('mb-1', {
70
70
  'text-storm-300 dark:text-hurricane-200': !asBoolean(this.active),
71
71
  'text-indigo-200': asBoolean(this.active),
72
- }), variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), this.variant === 'default' ? (h("slot", null)) : (h("div", { class: 'flex flex-col items-center' }, h("p", { class: cn('my-0 font-medium empty:hidden', {}) }, h("slot", { name: 'title' })), descriptionSlot && (h("p", { class: cn('my-0 text-xs font-medium', {
72
+ }), flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })), this.variant === 'default' ? (h("slot", null)) : (h("div", { class: 'flex flex-col items-center' }, h("p", { class: cn('my-0 font-medium empty:hidden', {}) }, h("slot", { name: 'title' })), descriptionSlot && (h("p", { class: cn('my-0 text-xs font-medium', {
73
73
  'text-storm-300 dark:text-hurricane-200': !asBoolean(this.active),
74
74
  'text-indigo-200': asBoolean(this.active),
75
75
  }) }, descriptionSlot)))))));
@@ -88,9 +88,9 @@ export class Toggle {
88
88
  }
89
89
  render() {
90
90
  const id = this.id?.length ? this.id : this._nonce;
91
- return (h(ThemedHost, { key: '71d4bd767b20adf62204be57f4aab791062b5e3d' }, h("label", { key: '9a5152398ccfe931d48135fd2185dc1d04e0ae0a', htmlFor: id, class: 'flex items-center justify-start gap-2' }, h("div", { key: '1fd1d1c6e8b35354c9f91442b88ee7aca4297c22', class: 'group/p-toggle relative flex flex-shrink-0 items-center' }, h("input", { key: 'f487829bc32e0865446f006ef8de74a4fd3059cd', class: toggle({
91
+ return (h(ThemedHost, { key: '71d4bd767b20adf62204be57f4aab791062b5e3d' }, h("label", { key: '9a5152398ccfe931d48135fd2185dc1d04e0ae0a', class: 'flex items-center justify-start gap-2', htmlFor: id }, h("div", { key: '1fd1d1c6e8b35354c9f91442b88ee7aca4297c22', class: 'group/p-toggle relative flex flex-shrink-0 items-center' }, h("input", { key: 'f487829bc32e0865446f006ef8de74a4fd3059cd', checked: !!this.checked, class: toggle({
92
92
  disabled: asBoolean(this.disabled),
93
- }), type: 'checkbox', id: id, name: this.name, required: this.required, checked: !!this.checked, disabled: asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), h("div", { key: '8c1664a5b9eadf6c454636aca5e044e233a8a8ab', class: circle({
93
+ }), disabled: asBoolean(this.disabled), id: id, name: this.name, required: this.required, type: 'checkbox', onChange: ev => this._onChange(ev) }), h("div", { key: '8c1664a5b9eadf6c454636aca5e044e233a8a8ab', class: circle({
94
94
  disabled: asBoolean(this.disabled),
95
95
  }) })), h("div", { key: '90f8606523d6d4b131bf039717d9c436ae36d782', class: 'flex-1 overflow-hidden text-ellipsis empty:hidden dark:text-white' }, h("slot", { key: 'cf7f5ed84d5b1cda9b6372209242415d4dd67024' })))));
96
96
  }
@@ -93,7 +93,7 @@ export class Tooltip {
93
93
  return (h(ThemedHost, { key: 'ef3333212b88389556fa76159040a9dd6e0c2e17', "data-filled": this.content?.length > 0 || this._hasContentSlot }, h("slot", { key: '095bf08cf3d45b3baaf9921796392b6b51e13719', name: 'trigger' }), h("div", { key: '46dcc7888a6c2e66e1e5e7d5a9492f117775be30', class: popover({
94
94
  variant: this.variant,
95
95
  strategy: this.strategy,
96
- }), role: 'popover', "data-placement": this.placement, ref: el => this._load(el) }, h("div", { key: '5651334a58293cf9a6adc96b2d8cb1991691404a', class: 'flex gap-2 whitespace-normal' }, this.variant === 'error' && (h("div", { key: '9db76dfaf31d1acbb72eedd0d90744bf913bb21f', class: 'w-[2px] bg-negative-red-500 dark:bg-negative-red-alternative' })), this.content ?? h("slot", { key: '0bbaa654220dd3b99c26dd787c540a1ca85bd8af', name: 'content' })))));
96
+ }), "data-placement": this.placement, ref: el => this._load(el), role: 'popover' }, h("div", { key: '5651334a58293cf9a6adc96b2d8cb1991691404a', class: 'flex gap-2 whitespace-normal' }, this.variant === 'error' && (h("div", { key: '9db76dfaf31d1acbb72eedd0d90744bf913bb21f', class: 'w-[2px] bg-negative-red-500 dark:bg-negative-red-alternative' })), this.content ?? h("slot", { key: '0bbaa654220dd3b99c26dd787c540a1ca85bd8af', name: 'content' })))));
97
97
  }
98
98
  clickHandler() {
99
99
  if (this.variant === 'hover' || !this.enableUserInput) {
@@ -30,7 +30,7 @@ export class Accordion {
30
30
  return (h(ThemedHost, { key: '36d39106bf27e5005cfdd96f062e89d3be88dbef' }, h("div", { key: '55912f6dbbd9f44f9d86e0e1500d425d2d5fd16e', class: cn('flex cursor-pointer items-center gap-2', {
31
31
  'text-storm-500 dark:text-white': this.variant === 'primary',
32
32
  'text-storm-300 dark:text-hurricane-200': this.variant === 'secondary',
33
- }), onClick: () => this._onClick() }, h("p-icon", { key: '73e31ff40f08654d9911562b67565a6494184460', class: 'flex shrink-0', variant: 'caret', rotate: this.open ? 0 : -90 }), h("p", { key: '2a118c3e7bf94a59350c4cc6feeb2756217f4852', class: 'my-0 shrink-0 whitespace-nowrap text-base font-medium' }, this.header), h("p-divider", { key: 'd6632e38605ee499d559bd40b48a735cbea9f160', class: 'flex-1' })), this.open && (h("div", { key: '2707a0e53b0470485f3f05abf919b8c22199199e', class: 'mt-4' }, h("slot", { key: '2686aa25fa66c990ec52d5f1f58eca7dd707d8f4' })))));
33
+ }), onClick: () => this._onClick() }, h("p-icon", { key: '73e31ff40f08654d9911562b67565a6494184460', class: 'flex shrink-0', rotate: this.open ? 0 : -90, variant: 'caret' }), h("p", { key: '2a118c3e7bf94a59350c4cc6feeb2756217f4852', class: 'my-0 shrink-0 whitespace-nowrap text-base font-medium' }, this.header), h("p-divider", { key: 'd6632e38605ee499d559bd40b48a735cbea9f160', class: 'flex-1' })), this.open && (h("div", { key: '2707a0e53b0470485f3f05abf919b8c22199199e', class: 'mt-4' }, h("slot", { key: '2686aa25fa66c990ec52d5f1f58eca7dd707d8f4' })))));
34
34
  }
35
35
  _onClick() {
36
36
  if (!this.closeable && this.open) {
@@ -97,30 +97,30 @@ export class Attachment {
97
97
  render() {
98
98
  let prefix = (h("p-icon", { key: 'c32bd5160f16b5fe66dd6bdddc7abab643ecac69', class: 'text-storm-300', variant: 'attachment' }));
99
99
  if (this.error) {
100
- prefix = (h("p-icon", { key: '258cc04fd6a6ca24cc99fd4402740c600c845641', variant: 'warning', class: 'text-negative-red-500' }));
100
+ prefix = (h("p-icon", { key: '258cc04fd6a6ca24cc99fd4402740c600c845641', class: 'text-negative-red-500', variant: 'warning' }));
101
101
  }
102
102
  // const isMobileDevice = isMobile();
103
103
  const isMobileDevice = isTablet();
104
104
  const baseText = 'min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm';
105
- return (h(Fragment, { key: '2d4812f3d31f3cd0816628933c7f430526db82d6' }, h("p-field-container", { key: '349206b933ad13c0f37cd07d2a8da5b7be1a5c06', variant: 'write', label: this.label, helper: this.helper, error: this.error, required: this.required, forceShowTooltip: !!this.error?.length }, h("div", { key: '59d1189891173772085e25882c3fcb474e459e0a', slot: 'content', class: 'flex w-full items-start gap-2' }, h("div", { key: '41b8af0f2636db293df1e503effbd1ec7f97685b', class: attachment({
105
+ return (h(Fragment, { key: '2d4812f3d31f3cd0816628933c7f430526db82d6' }, h("p-field-container", { key: '349206b933ad13c0f37cd07d2a8da5b7be1a5c06', error: this.error, forceShowTooltip: !!this.error?.length, helper: this.helper, label: this.label, required: this.required, variant: 'write' }, h("div", { key: '59d1189891173772085e25882c3fcb474e459e0a', class: 'flex w-full items-start gap-2', slot: 'content' }, h("div", { key: '41b8af0f2636db293df1e503effbd1ec7f97685b', class: attachment({
106
106
  click: this.mode === 'write' && !this.value?.length,
107
107
  error: !!this.error?.length,
108
108
  }), onClick: () => this._uploadClick() }, prefix, h("span", { key: 'd53642b51ad59ff0b5ccf497085ba81f4111bebf', class: cn(baseText, 'peer empty:hidden dark:text-white') }, this.value), h("span", { key: '285839432a117ed07ad59c5d66e5784109ac5f79', class: cn(baseText, 'hidden peer-empty:block') }, this.placeholder)), h("p-tooltip", { key: '1e5cd8b15e61316f678fb7b66af77969a3cb403a', class: 'w-8', content: this.mode === 'read'
109
109
  ? this.downloadTooltip
110
110
  : this.value?.length
111
111
  ? this.deleteTooltip
112
- : this.uploadTooltip }, h("p-button", { key: 'a0f090e19e177cff757ebae1fc2f5d1f4df8db68', slot: 'trigger', variant: 'secondary', iconOnly: true, icon: this.mode === 'read'
112
+ : this.uploadTooltip }, h("p-button", { key: 'a0f090e19e177cff757ebae1fc2f5d1f4df8db68', disabled: this.loading, icon: this.mode === 'read'
113
113
  ? 'download'
114
114
  : this.value?.length
115
115
  ? 'trash'
116
- : 'upload', disabled: this.loading, loading: this.loading, onOnClick: () => this.mode === 'write' && !this.value?.length
116
+ : 'upload', iconOnly: true, loading: this.loading, slot: 'trigger', variant: 'secondary', onOnClick: () => this.mode === 'write' && !this.value?.length
117
117
  ? this._uploadClick()
118
118
  : (this.mode === 'read'
119
119
  ? this.download
120
120
  : this.delete).emit() })), this.enableCameraOnMobile &&
121
121
  this.mode === 'write' &&
122
122
  isMobileDevice &&
123
- !this.value?.length && (h("p-tooltip", { key: '2b41ef669b3fc1e58a394d847a30b1316f0e3a0d', content: this.cameraTooltip, class: 'w-8 desktop-xs:hidden' }, h("p-button", { key: 'b3ddba24285c00e05397221a77f73a08164c6953', slot: 'trigger', variant: 'secondary', iconOnly: true, icon: 'camera', onOnClick: () => this._cameraClick() }))))), h("input", { key: '5eec66f53142eb76391fbd626a01556470ce395a', class: 'hidden', type: 'file', accept: Array.isArray(this.accept) ? this.accept?.join(',') : this.accept, ref: el => (this._fileRef = el), onChange: ev => this._onFileChange(ev) }), h("input", { key: '288987b14646880b3fbe960514e0b5915b421270', class: 'hidden', type: 'file', accept: 'image/*', capture: 'true', ref: el => (this._cameraFileRef = el), onChange: ev => this._onFileChange(ev) })));
123
+ !this.value?.length && (h("p-tooltip", { key: '2b41ef669b3fc1e58a394d847a30b1316f0e3a0d', class: 'w-8 desktop-xs:hidden', content: this.cameraTooltip }, h("p-button", { key: 'b3ddba24285c00e05397221a77f73a08164c6953', icon: 'camera', iconOnly: true, slot: 'trigger', variant: 'secondary', onOnClick: () => this._cameraClick() }))))), h("input", { key: '5eec66f53142eb76391fbd626a01556470ce395a', accept: Array.isArray(this.accept) ? this.accept?.join(',') : this.accept, class: 'hidden', ref: el => (this._fileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) }), h("input", { key: '288987b14646880b3fbe960514e0b5915b421270', accept: 'image/*', capture: 'true', class: 'hidden', ref: el => (this._cameraFileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) })));
124
124
  }
125
125
  _uploadClick() {
126
126
  if (!this._fileRef || this.mode !== 'write' || this.value?.length) {
@@ -513,7 +513,7 @@ export class Button {
513
513
  : 'button';
514
514
  const hostClass = cn('p-button inline-block', this.class);
515
515
  const active = asBoolean(this.active) || hostClass?.includes('active');
516
- return (h(ThemedHost, { key: '7452fa765b24901c77a8ed76278994150ba11acf', class: hostClass }, h(VariableTag, { key: '9f0d18fb8068bb01f0dd5d844aa322c1effccb9b', disabled: asBoolean(this.disabled), href: this.href, type: this.variant === 'text' ? undefined : this.type, target: this.target, tabIndex: this.tabIndex, class: button({
516
+ return (h(ThemedHost, { key: '7452fa765b24901c77a8ed76278994150ba11acf', class: hostClass }, h(VariableTag, { key: '9f0d18fb8068bb01f0dd5d844aa322c1effccb9b', class: button({
517
517
  variant: this.variant,
518
518
  size: this.size,
519
519
  loading: asBoolean(this.loading),
@@ -523,14 +523,14 @@ export class Button {
523
523
  active,
524
524
  error: asBoolean(this.error),
525
525
  underline: asBoolean(this.underline) && VariableTag === 'a',
526
- }) }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: 'c838235c3411be17231b10e8fcca992f62d89afe', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.icon &&
526
+ }), disabled: asBoolean(this.disabled), href: this.href, tabIndex: this.tabIndex, target: this.target, type: this.variant === 'text' ? undefined : this.type }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: 'c838235c3411be17231b10e8fcca992f62d89afe', rotate: this.chevron === 'up' ? 180 : 0, variant: 'caret' })), this.icon &&
527
527
  this.iconPosition === 'start' &&
528
528
  !(this.iconOnly && this.loading) &&
529
529
  this._getIcon(), this.label ?? h("slot", { key: '96401595325aecdfb14c77b5dce103a67d4d8da8' }), this.icon &&
530
530
  this.iconPosition === 'end' &&
531
531
  !this.loading &&
532
532
  !this.chevron &&
533
- this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: 'b543d3ca7e0253c71e93d6736a1a99a69d156fe0', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.loading && h("p-loader", { key: 'f655d54d167b02f7e546962f182e61b3cec77ccc', color: loaderColor }))));
533
+ this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: 'b543d3ca7e0253c71e93d6736a1a99a69d156fe0', rotate: this.chevron === 'up' ? 180 : 0, variant: 'caret' })), this.loading && h("p-loader", { key: 'f655d54d167b02f7e546962f182e61b3cec77ccc', color: loaderColor }))));
534
534
  }
535
535
  handleClick(ev) {
536
536
  if (this.loading || this.disabled) {
@@ -553,7 +553,7 @@ export class Button {
553
553
  active: asBoolean(this.active),
554
554
  error: asBoolean(this.error),
555
555
  iconOnly: asBoolean(this.iconOnly),
556
- }), this.iconClass ?? ''), variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate }));
556
+ }), this.iconClass ?? ''), flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon }));
557
557
  }
558
558
  static get is() { return "p-button"; }
559
559
  static get encapsulation() { return "shadow"; }