@paperless/core 3.26.4 → 3.27.1

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 (388) hide show
  1. package/dist/build/p-014ef0e1.entry.js +1 -0
  2. package/dist/build/{p-57c5bf0c.entry.js → p-017b3759.entry.js} +1 -1
  3. package/dist/build/{p-d2ff359e.entry.js → p-02a54f77.entry.js} +1 -1
  4. package/dist/{paperless/p-4cd8035a.entry.js → build/p-055b6209.entry.js} +1 -1
  5. package/dist/{paperless/p-6ed7ef6a.entry.js → build/p-1a26edba.entry.js} +1 -1
  6. package/dist/{paperless/p-34ec6b9b.entry.js → build/p-1a424b04.entry.js} +1 -1
  7. package/dist/build/{p-0cf2c5f5.entry.js → p-2248e489.entry.js} +1 -1
  8. package/dist/{paperless/p-e922cb1f.entry.js → build/p-2361ad53.entry.js} +1 -1
  9. package/dist/build/{p-e20e6aa3.entry.js → p-24db0c8f.entry.js} +1 -1
  10. package/dist/build/{p-48be5f53.entry.js → p-2efedc3d.entry.js} +1 -1
  11. package/dist/{paperless/p-9079dcb7.entry.js → build/p-31cf13c6.entry.js} +1 -1
  12. package/dist/build/p-3915cbd5.entry.js +1 -0
  13. package/dist/build/p-3eb1d7d5.entry.js +1 -0
  14. package/dist/build/{p-b1e6c746.entry.js → p-45176955.entry.js} +1 -1
  15. package/dist/build/{p-2e53d921.entry.js → p-51312a8f.entry.js} +1 -1
  16. package/dist/{paperless/p-2ebc600b.entry.js → build/p-555cb497.entry.js} +1 -1
  17. package/dist/build/p-571575d2.entry.js +1 -0
  18. package/dist/build/{p-38056598.entry.js → p-65466ef3.entry.js} +1 -1
  19. package/dist/build/{p-d5365ce3.entry.js → p-6a23ff2f.entry.js} +1 -1
  20. package/dist/{paperless/p-45b9a446.entry.js → build/p-6ac8c0c1.entry.js} +1 -1
  21. package/dist/build/{p-2aa8ae3e.js → p-7b1535af.js} +1 -1
  22. package/dist/{paperless/p-b8caedf6.entry.js → build/p-7c8ec514.entry.js} +1 -1
  23. package/dist/build/{p-2ce0c175.entry.js → p-7cd7bc8b.entry.js} +1 -1
  24. package/dist/{paperless/p-1b50f01d.entry.js → build/p-8c141cb8.entry.js} +1 -1
  25. package/dist/{paperless/p-b316ecff.entry.js → build/p-92910dad.entry.js} +1 -1
  26. package/dist/build/{p-020124fe.entry.js → p-9f684244.entry.js} +1 -1
  27. package/dist/build/{p-b1a372fc.entry.js → p-a035467d.entry.js} +1 -1
  28. package/dist/build/p-a395e9e0.entry.js +1 -0
  29. package/dist/{paperless/p-4851ac96.entry.js → build/p-b190b534.entry.js} +1 -1
  30. package/dist/build/{p-25842006.entry.js → p-b75ded13.entry.js} +1 -1
  31. package/dist/{paperless/p-477801df.entry.js → build/p-bdab91d9.entry.js} +1 -1
  32. package/dist/build/{p-561a4d56.entry.js → p-ce56d534.entry.js} +1 -1
  33. package/dist/{paperless/p-f18a511c.entry.js → build/p-d21a8908.entry.js} +1 -1
  34. package/dist/build/{p-749752fa.entry.js → p-d37faeaf.entry.js} +1 -1
  35. package/dist/build/{p-280c1727.entry.js → p-d5dfbaee.entry.js} +1 -1
  36. package/dist/build/{p-b005f182.entry.js → p-d7d2411e.entry.js} +1 -1
  37. package/dist/build/p-ea2deb46.entry.js +1 -0
  38. package/dist/build/{p-5c08054f.entry.js → p-ec0a6d22.entry.js} +1 -1
  39. package/dist/build/{p-44d6468b.entry.js → p-ec3752dc.entry.js} +1 -1
  40. package/dist/build/{p-af9fc40a.entry.js → p-f6ca0e6b.entry.js} +1 -1
  41. package/dist/build/p-fa06ff98.entry.js +1 -0
  42. package/dist/{paperless/p-1a373297.entry.js → build/p-fa13f317.entry.js} +1 -1
  43. package/dist/{paperless/p-501f2f7c.entry.js → build/p-fadcfc9f.entry.js} +1 -1
  44. package/dist/build/{p-272721bf.entry.js → p-fccb23e5.entry.js} +1 -1
  45. package/dist/build/{p-3b34c822.entry.js → p-fccf3bf9.entry.js} +1 -1
  46. package/dist/build/paperless.esm.js +1 -1
  47. package/dist/cjs/p-accordion.cjs.entry.js +2 -2
  48. package/dist/cjs/p-attachment.cjs.entry.js +8 -8
  49. package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
  50. package/dist/cjs/p-avatar.cjs.entry.js +1 -1
  51. package/dist/cjs/p-backdrop.cjs.entry.js +3 -3
  52. package/dist/cjs/p-badge_3.cjs.entry.js +4 -4
  53. package/dist/cjs/p-button-group.cjs.entry.js +1 -1
  54. package/dist/cjs/p-button_3.cjs.entry.js +1 -1
  55. package/dist/cjs/p-calendar.cjs.entry.js +1 -1
  56. package/dist/cjs/p-card-body.cjs.entry.js +1 -1
  57. package/dist/cjs/p-card-container.cjs.entry.js +2 -2
  58. package/dist/cjs/p-card-header.cjs.entry.js +3 -3
  59. package/dist/cjs/p-checkbox_3.cjs.entry.js +12 -10
  60. package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
  61. package/dist/cjs/p-cropper.cjs.entry.js +1 -1
  62. package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
  63. package/dist/cjs/p-divider.cjs.entry.js +2 -2
  64. package/dist/cjs/p-drawer-body_3.cjs.entry.js +4 -4
  65. package/dist/cjs/p-dropdown-menu-item_2.cjs.entry.js +18 -7
  66. package/dist/cjs/p-empty-state_8.cjs.entry.js +10 -10
  67. package/dist/cjs/p-field_3.cjs.entry.js +5 -5
  68. package/dist/cjs/p-floating-menu-item.cjs.entry.js +2 -2
  69. package/dist/cjs/p-illustration.cjs.entry.js +1 -1
  70. package/dist/cjs/p-info-panel.cjs.entry.js +2 -2
  71. package/dist/cjs/p-layout.cjs.entry.js +1 -1
  72. package/dist/cjs/p-listing-item.cjs.entry.js +1 -1
  73. package/dist/cjs/p-listing-line.cjs.entry.js +1 -1
  74. package/dist/cjs/p-modal-body_4.cjs.entry.js +6 -6
  75. package/dist/cjs/p-navigation-item.cjs.entry.js +3 -3
  76. package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
  77. package/dist/cjs/p-navigation-title.cjs.entry.js +1 -1
  78. package/dist/cjs/p-pagination_3.cjs.entry.js +3 -3
  79. package/dist/cjs/p-profile.cjs.entry.js +1 -1
  80. package/dist/cjs/p-radio.cjs.entry.js +3 -3
  81. package/dist/cjs/p-range.cjs.entry.js +3 -3
  82. package/dist/cjs/p-select.cjs.entry.js +50 -8
  83. package/dist/cjs/p-smile.cjs.entry.js +1 -1
  84. package/dist/cjs/p-stepper-item_2.cjs.entry.js +5 -5
  85. package/dist/cjs/p-tab-container.cjs.entry.js +1 -1
  86. package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
  87. package/dist/cjs/p-table.cjs.entry.js +2 -2
  88. package/dist/cjs/p-toast-container.cjs.entry.js +2 -2
  89. package/dist/cjs/p-toggle.cjs.entry.js +3 -3
  90. package/dist/cjs/p-tooltip.cjs.entry.js +2 -2
  91. package/dist/collection/collection-manifest.json +1 -1
  92. package/dist/collection/components/atoms/avatar/avatar/avatar.component.js +1 -1
  93. package/dist/collection/components/atoms/avatar/avatar-group/avatar-group.component.js +1 -1
  94. package/dist/collection/components/atoms/backdrop/backdrop.component.js +3 -3
  95. package/dist/collection/components/atoms/badge/badge.component.js +1 -1
  96. package/dist/collection/components/atoms/card/body/card-body.component.js +1 -1
  97. package/dist/collection/components/atoms/card/container/card-container.component.js +2 -2
  98. package/dist/collection/components/atoms/card/header/card-header.component.js +3 -3
  99. package/dist/collection/components/atoms/checkbox/checkbox.component.js +4 -4
  100. package/dist/collection/components/atoms/divider/divider.component.js +2 -2
  101. package/dist/collection/components/atoms/drawer/body/drawer-body.component.js +1 -1
  102. package/dist/collection/components/atoms/drawer/container/drawer-container.component.js +2 -2
  103. package/dist/collection/components/atoms/drawer/header/drawer-header.component.js +1 -1
  104. package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.js +3 -3
  105. package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.css +1 -1
  106. package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +17 -6
  107. package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +2 -2
  108. package/dist/collection/components/atoms/helper/helper.component.js +1 -1
  109. package/dist/collection/components/atoms/icon/icon.component.js +1 -1
  110. package/dist/collection/components/atoms/illustration/illustration.component.js +1 -1
  111. package/dist/collection/components/atoms/info-panel/info-panel.component.js +2 -2
  112. package/dist/collection/components/atoms/layout/layout.component.js +1 -1
  113. package/dist/collection/components/atoms/listing/item/listing-item.component.js +1 -1
  114. package/dist/collection/components/atoms/listing/line/listing-line.component.js +1 -1
  115. package/dist/collection/components/atoms/modal/body/modal-body.component.js +2 -2
  116. package/dist/collection/components/atoms/modal/container/modal-container.component.js +2 -2
  117. package/dist/collection/components/atoms/modal/footer/modal-footer.component.js +1 -1
  118. package/dist/collection/components/atoms/modal/header/modal-header.component.js +1 -1
  119. package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
  120. package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.js +2 -2
  121. package/dist/collection/components/atoms/radio/radio.component.js +3 -3
  122. package/dist/collection/components/atoms/segment/container/segment-container.component.js +1 -1
  123. package/dist/collection/components/atoms/segment/item/segment-item.component.js +2 -2
  124. package/dist/collection/components/atoms/smile/smile.component.js +1 -1
  125. package/dist/collection/components/atoms/stepper/item/stepper-item.component.js +4 -4
  126. package/dist/collection/components/atoms/stepper/line/stepper-line.component.js +1 -1
  127. package/dist/collection/components/atoms/tab/container/tab-container.component.js +1 -1
  128. package/dist/collection/components/atoms/tab/item/tab-item.component.js +1 -1
  129. package/dist/collection/components/atoms/table/actions-container/table-container.component.js +1 -1
  130. package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +3 -3
  131. package/dist/collection/components/atoms/toast-container/toast-container.component.js +2 -2
  132. package/dist/collection/components/atoms/toggle/toggle.component.js +3 -3
  133. package/dist/collection/components/atoms/tooltip/tooltip.component.js +2 -2
  134. package/dist/collection/components/molecules/accordion/accordion.component.js +2 -2
  135. package/dist/collection/components/molecules/attachment/attachment.component.js +8 -8
  136. package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
  137. package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
  138. package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
  139. package/dist/collection/components/molecules/cropper/cropper.component.js +1 -1
  140. package/dist/collection/components/molecules/datepicker/datepicker.component.js +2 -2
  141. package/dist/collection/components/molecules/dropdown/dropdown.component.js +5 -3
  142. package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
  143. package/dist/collection/components/molecules/field/field/field.component.js +4 -4
  144. package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +3 -3
  145. package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
  146. package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
  147. package/dist/collection/components/molecules/profile/profile.component.js +1 -1
  148. package/dist/collection/components/molecules/range/range.component.js +3 -3
  149. package/dist/collection/components/molecules/select/select.component.js +72 -10
  150. package/dist/collection/components/molecules/select/select.stories.js +121 -18
  151. package/dist/collection/components/molecules/table/header/table-header.component.js +4 -4
  152. package/dist/collection/components/organisms/table/table.component.js +2 -2
  153. package/dist/components/{p-eGnIeQsr.js → p-1gDAZ8pd.js} +1 -1
  154. package/dist/components/{p-CjxC_h_X.js → p-4-PxF11o.js} +1 -1
  155. package/dist/components/{p-DIuIGoBt.js → p-9XjFw7wO.js} +1 -1
  156. package/dist/components/{p-ZSDx-Rn0.js → p-B0KMsqdv.js} +1 -1
  157. package/dist/components/{p-FK08Vr2S.js → p-B2Wcsz4j.js} +1 -1
  158. package/dist/components/{p-yYRVYWXO.js → p-B47sjbpK.js} +1 -1
  159. package/dist/components/{p--_gjJpd8.js → p-B9klDtR-.js} +1 -1
  160. package/dist/components/{p-BPCXcEQD.js → p-BDWOQXx7.js} +1 -1
  161. package/dist/components/p-BG1plx2A.js +1 -0
  162. package/dist/components/{p-BFTj4F6O.js → p-BJyXdiHc.js} +1 -1
  163. package/dist/components/{p-VqccwN4a.js → p-Bh3wcvje.js} +1 -1
  164. package/dist/components/{p-Co4UMOn6.js → p-BmsR-djQ.js} +1 -1
  165. package/dist/components/{p-Cm3IhOw8.js → p-BobrXbRh.js} +1 -1
  166. package/dist/components/{p-DS7XBqIp.js → p-BskFLFSo.js} +1 -1
  167. package/dist/components/{p-CAt4316p.js → p-BvfezQkY.js} +1 -1
  168. package/dist/components/{p-BswRuxmk.js → p-ByJPQrlL.js} +1 -1
  169. package/dist/components/{p-CJ7I5BCS.js → p-CPSiExRl.js} +1 -1
  170. package/dist/components/{p-CUQydYt5.js → p-CQnWpHIs.js} +1 -1
  171. package/dist/components/{p-CN4ZWAkb.js → p-CSnOLBSV.js} +1 -1
  172. package/dist/components/{p-CMfdl_TW.js → p-CVR1NJF5.js} +1 -1
  173. package/dist/components/{p-TtrclAAz.js → p-CZ8afGMO.js} +1 -1
  174. package/dist/components/p-CZEHKnpM.js +1 -0
  175. package/dist/components/{p-BksolHpY.js → p-C_ImoJA8.js} +1 -1
  176. package/dist/components/{p-CTC-N56p.js → p-Cgqav9mX.js} +1 -1
  177. package/dist/components/{p-1jNdZTKN.js → p-Cmltn24W.js} +1 -1
  178. package/dist/components/{p-B6PqwbBc.js → p-CpRKUhuF.js} +1 -1
  179. package/dist/components/{p-D0uXSAIf.js → p-CxrxqKhq.js} +1 -1
  180. package/dist/components/{p-kdBBVGjg.js → p-D5BA_qF7.js} +1 -1
  181. package/dist/components/{p-DGoOsLEr.js → p-DHJIvL0U.js} +1 -1
  182. package/dist/components/{p-D5OXFgvY.js → p-DHKJDm0J.js} +1 -1
  183. package/dist/components/{p-DixhvrFt.js → p-DaPWhcRy.js} +1 -1
  184. package/dist/components/{p-B-yfQWzc.js → p-DxuTDs4a.js} +1 -1
  185. package/dist/components/{p-DfVHhJmL.js → p-HVaovLkY.js} +1 -1
  186. package/dist/components/{p-BBlYsP5p.js → p-L0a3qALZ.js} +1 -1
  187. package/dist/components/{p-1qs8jjR4.js → p-V1uzM_gT.js} +1 -1
  188. package/dist/components/{p-B8iFUPO5.js → p-aAebGiQ0.js} +1 -1
  189. package/dist/components/p-accordion.js +1 -1
  190. package/dist/components/p-attachment.js +1 -1
  191. package/dist/components/p-avatar-group.js +1 -1
  192. package/dist/components/p-avatar.js +1 -1
  193. package/dist/components/{p-B3Q_nqZE.js → p-bZ3k4UvK.js} +1 -1
  194. package/dist/components/p-backdrop.js +1 -1
  195. package/dist/components/p-badge.js +1 -1
  196. package/dist/components/p-button-group.js +1 -1
  197. package/dist/components/p-button.js +1 -1
  198. package/dist/components/{p-DZjtEarb.js → p-c4v-m6AC.js} +1 -1
  199. package/dist/components/{p-COscyt8q.js → p-c6u4OYf0.js} +1 -1
  200. package/dist/components/p-calendar.js +1 -1
  201. package/dist/components/p-card-body.js +1 -1
  202. package/dist/components/p-card-container.js +1 -1
  203. package/dist/components/p-card-header.js +1 -1
  204. package/dist/components/p-checkbox.js +1 -1
  205. package/dist/components/p-content-slider.js +1 -1
  206. package/dist/components/p-cropper.js +2 -2
  207. package/dist/components/p-datepicker.js +1 -1
  208. package/dist/components/p-divider.js +1 -1
  209. package/dist/components/p-drawer-body.js +1 -1
  210. package/dist/components/p-drawer-container.js +1 -1
  211. package/dist/components/p-drawer-header.js +1 -1
  212. package/dist/components/p-drawer.js +1 -1
  213. package/dist/components/p-dropdown-menu-container.js +1 -1
  214. package/dist/components/p-dropdown-menu-item.js +1 -1
  215. package/dist/components/p-dropdown.js +1 -1
  216. package/dist/components/p-dropzone.js +1 -1
  217. package/dist/components/{p-BJFfno38.js → p-eLIgN9FF.js} +1 -1
  218. package/dist/components/p-empty-state.js +1 -1
  219. package/dist/components/p-field-container.js +1 -1
  220. package/dist/components/p-field.js +1 -1
  221. package/dist/components/p-floating-menu-container.js +1 -1
  222. package/dist/components/p-floating-menu-item.js +1 -1
  223. package/dist/components/{p-BmhVEljv.js → p-gEaqH36V.js} +1 -1
  224. package/dist/components/p-helper.js +1 -1
  225. package/dist/components/p-icon.js +1 -1
  226. package/dist/components/p-illustration.js +1 -1
  227. package/dist/components/p-info-panel.js +1 -1
  228. package/dist/components/p-label.js +1 -1
  229. package/dist/components/p-layout.js +1 -1
  230. package/dist/components/p-listing-item.js +1 -1
  231. package/dist/components/p-listing-line.js +1 -1
  232. package/dist/components/p-listing.js +1 -1
  233. package/dist/components/p-modal-body.js +1 -1
  234. package/dist/components/p-modal-container.js +1 -1
  235. package/dist/components/p-modal-footer.js +1 -1
  236. package/dist/components/p-modal-header.js +1 -1
  237. package/dist/components/p-modal.js +1 -1
  238. package/dist/components/p-navbar.js +1 -1
  239. package/dist/components/p-navigation-item.js +1 -1
  240. package/dist/components/p-navigation-section.js +1 -1
  241. package/dist/components/p-navigation-title.js +1 -1
  242. package/dist/components/p-pagination-pages-item.js +1 -1
  243. package/dist/components/p-pagination-pages.js +1 -1
  244. package/dist/components/p-pagination-size.js +1 -1
  245. package/dist/components/p-pagination.js +1 -1
  246. package/dist/components/p-profile.js +1 -1
  247. package/dist/components/p-q5vnW4We.js +1 -0
  248. package/dist/components/p-radio.js +1 -1
  249. package/dist/components/p-range.js +1 -1
  250. package/dist/components/p-segment-container.js +1 -1
  251. package/dist/components/p-segment-item.js +1 -1
  252. package/dist/components/p-select.js +1 -1
  253. package/dist/components/p-smile.js +1 -1
  254. package/dist/components/p-stepper-item.js +1 -1
  255. package/dist/components/p-stepper-line.js +1 -1
  256. package/dist/components/p-stepper.js +1 -1
  257. package/dist/components/p-submenu-item.js +1 -1
  258. package/dist/components/p-submenu.js +1 -1
  259. package/dist/components/p-tab-container.js +1 -1
  260. package/dist/components/p-tab-item.js +1 -1
  261. package/dist/components/p-table-container.js +1 -1
  262. package/dist/components/p-table-footer.js +1 -1
  263. package/dist/components/p-table-header.js +1 -1
  264. package/dist/components/p-table-row-actions-container.js +1 -1
  265. package/dist/components/p-table-row.js +1 -1
  266. package/dist/components/p-table.js +1 -1
  267. package/dist/components/p-toast-container.js +1 -1
  268. package/dist/components/p-toast.js +1 -1
  269. package/dist/components/p-toggle.js +1 -1
  270. package/dist/components/p-tooltip.js +1 -1
  271. package/dist/components/{p-CQo1Di0o.js → p-yaD47mvt.js} +1 -1
  272. package/dist/components/{p-Dn13oSNs.js → p-zBwPEKhI.js} +1 -1
  273. package/dist/esm/p-accordion.entry.js +2 -2
  274. package/dist/esm/p-attachment.entry.js +8 -8
  275. package/dist/esm/p-avatar-group.entry.js +1 -1
  276. package/dist/esm/p-avatar.entry.js +1 -1
  277. package/dist/esm/p-backdrop.entry.js +3 -3
  278. package/dist/esm/p-badge_3.entry.js +4 -4
  279. package/dist/esm/p-button-group.entry.js +1 -1
  280. package/dist/esm/p-button_3.entry.js +1 -1
  281. package/dist/esm/p-calendar.entry.js +1 -1
  282. package/dist/esm/p-card-body.entry.js +1 -1
  283. package/dist/esm/p-card-container.entry.js +2 -2
  284. package/dist/esm/p-card-header.entry.js +3 -3
  285. package/dist/esm/p-checkbox_3.entry.js +12 -10
  286. package/dist/esm/p-content-slider.entry.js +2 -2
  287. package/dist/esm/p-cropper.entry.js +1 -1
  288. package/dist/esm/p-datepicker.entry.js +2 -2
  289. package/dist/esm/p-divider.entry.js +2 -2
  290. package/dist/esm/p-drawer-body_3.entry.js +4 -4
  291. package/dist/esm/p-dropdown-menu-item_2.entry.js +18 -7
  292. package/dist/esm/p-empty-state_8.entry.js +10 -10
  293. package/dist/esm/p-field_3.entry.js +5 -5
  294. package/dist/esm/p-floating-menu-item.entry.js +2 -2
  295. package/dist/esm/p-illustration.entry.js +1 -1
  296. package/dist/esm/p-info-panel.entry.js +2 -2
  297. package/dist/esm/p-layout.entry.js +1 -1
  298. package/dist/esm/p-listing-item.entry.js +1 -1
  299. package/dist/esm/p-listing-line.entry.js +1 -1
  300. package/dist/esm/p-modal-body_4.entry.js +6 -6
  301. package/dist/esm/p-navigation-item.entry.js +3 -3
  302. package/dist/esm/p-navigation-section.entry.js +1 -1
  303. package/dist/esm/p-navigation-title.entry.js +1 -1
  304. package/dist/esm/p-pagination_3.entry.js +3 -3
  305. package/dist/esm/p-profile.entry.js +1 -1
  306. package/dist/esm/p-radio.entry.js +3 -3
  307. package/dist/esm/p-range.entry.js +3 -3
  308. package/dist/esm/p-select.entry.js +50 -8
  309. package/dist/esm/p-smile.entry.js +1 -1
  310. package/dist/esm/p-stepper-item_2.entry.js +5 -5
  311. package/dist/esm/p-tab-container.entry.js +1 -1
  312. package/dist/esm/p-tab-item.entry.js +1 -1
  313. package/dist/esm/p-table.entry.js +2 -2
  314. package/dist/esm/p-toast-container.entry.js +2 -2
  315. package/dist/esm/p-toggle.entry.js +3 -3
  316. package/dist/esm/p-tooltip.entry.js +2 -2
  317. package/dist/index.html +1 -1
  318. package/dist/paperless/p-014ef0e1.entry.js +1 -0
  319. package/dist/paperless/{p-57c5bf0c.entry.js → p-017b3759.entry.js} +1 -1
  320. package/dist/paperless/{p-d2ff359e.entry.js → p-02a54f77.entry.js} +1 -1
  321. package/dist/{build/p-4cd8035a.entry.js → paperless/p-055b6209.entry.js} +1 -1
  322. package/dist/{build/p-6ed7ef6a.entry.js → paperless/p-1a26edba.entry.js} +1 -1
  323. package/dist/{build/p-34ec6b9b.entry.js → paperless/p-1a424b04.entry.js} +1 -1
  324. package/dist/paperless/{p-0cf2c5f5.entry.js → p-2248e489.entry.js} +1 -1
  325. package/dist/{build/p-e922cb1f.entry.js → paperless/p-2361ad53.entry.js} +1 -1
  326. package/dist/paperless/{p-e20e6aa3.entry.js → p-24db0c8f.entry.js} +1 -1
  327. package/dist/paperless/{p-48be5f53.entry.js → p-2efedc3d.entry.js} +1 -1
  328. package/dist/{build/p-9079dcb7.entry.js → paperless/p-31cf13c6.entry.js} +1 -1
  329. package/dist/paperless/p-3915cbd5.entry.js +1 -0
  330. package/dist/paperless/p-3eb1d7d5.entry.js +1 -0
  331. package/dist/paperless/{p-b1e6c746.entry.js → p-45176955.entry.js} +1 -1
  332. package/dist/paperless/{p-2e53d921.entry.js → p-51312a8f.entry.js} +1 -1
  333. package/dist/{build/p-2ebc600b.entry.js → paperless/p-555cb497.entry.js} +1 -1
  334. package/dist/paperless/p-571575d2.entry.js +1 -0
  335. package/dist/paperless/{p-38056598.entry.js → p-65466ef3.entry.js} +1 -1
  336. package/dist/paperless/{p-d5365ce3.entry.js → p-6a23ff2f.entry.js} +1 -1
  337. package/dist/{build/p-45b9a446.entry.js → paperless/p-6ac8c0c1.entry.js} +1 -1
  338. package/dist/{build/p-b8caedf6.entry.js → paperless/p-7c8ec514.entry.js} +1 -1
  339. package/dist/paperless/{p-2ce0c175.entry.js → p-7cd7bc8b.entry.js} +1 -1
  340. package/dist/{build/p-1b50f01d.entry.js → paperless/p-8c141cb8.entry.js} +1 -1
  341. package/dist/{build/p-b316ecff.entry.js → paperless/p-92910dad.entry.js} +1 -1
  342. package/dist/paperless/{p-020124fe.entry.js → p-9f684244.entry.js} +1 -1
  343. package/dist/paperless/{p-b1a372fc.entry.js → p-a035467d.entry.js} +1 -1
  344. package/dist/paperless/p-a395e9e0.entry.js +1 -0
  345. package/dist/{build/p-4851ac96.entry.js → paperless/p-b190b534.entry.js} +1 -1
  346. package/dist/paperless/{p-25842006.entry.js → p-b75ded13.entry.js} +1 -1
  347. package/dist/{build/p-477801df.entry.js → paperless/p-bdab91d9.entry.js} +1 -1
  348. package/dist/paperless/{p-561a4d56.entry.js → p-ce56d534.entry.js} +1 -1
  349. package/dist/{build/p-f18a511c.entry.js → paperless/p-d21a8908.entry.js} +1 -1
  350. package/dist/paperless/{p-749752fa.entry.js → p-d37faeaf.entry.js} +1 -1
  351. package/dist/paperless/{p-280c1727.entry.js → p-d5dfbaee.entry.js} +1 -1
  352. package/dist/paperless/{p-b005f182.entry.js → p-d7d2411e.entry.js} +1 -1
  353. package/dist/paperless/p-ea2deb46.entry.js +1 -0
  354. package/dist/paperless/{p-5c08054f.entry.js → p-ec0a6d22.entry.js} +1 -1
  355. package/dist/paperless/{p-44d6468b.entry.js → p-ec3752dc.entry.js} +1 -1
  356. package/dist/paperless/{p-af9fc40a.entry.js → p-f6ca0e6b.entry.js} +1 -1
  357. package/dist/paperless/p-fa06ff98.entry.js +1 -0
  358. package/dist/{build/p-1a373297.entry.js → paperless/p-fa13f317.entry.js} +1 -1
  359. package/dist/{build/p-501f2f7c.entry.js → paperless/p-fadcfc9f.entry.js} +1 -1
  360. package/dist/paperless/{p-272721bf.entry.js → p-fccb23e5.entry.js} +1 -1
  361. package/dist/paperless/{p-3b34c822.entry.js → p-fccf3bf9.entry.js} +1 -1
  362. package/dist/paperless/paperless.esm.js +1 -1
  363. package/dist/sw.js +1 -1
  364. package/dist/sw.js.map +1 -1
  365. package/dist/types/components/atoms/dropdown-menu/item/dropdown-menu-item.component.d.ts +1 -1
  366. package/dist/types/components/molecules/select/select.component.d.ts +14 -2
  367. package/dist/types/components/molecules/select/select.stories.d.ts +45 -3
  368. package/dist/types/components.d.ts +27 -4
  369. package/hydrate/index.js +180 -125
  370. package/hydrate/index.mjs +180 -125
  371. package/package.json +1 -1
  372. package/dist/build/p-4b7ac676.entry.js +0 -1
  373. package/dist/build/p-5d58a880.entry.js +0 -1
  374. package/dist/build/p-70071176.entry.js +0 -1
  375. package/dist/build/p-73102cbf.entry.js +0 -1
  376. package/dist/build/p-92259edb.entry.js +0 -1
  377. package/dist/build/p-9ac5f80b.entry.js +0 -1
  378. package/dist/build/p-ce15940f.entry.js +0 -1
  379. package/dist/components/p-4-EYCe-6.js +0 -1
  380. package/dist/components/p-CUMk7xBX.js +0 -1
  381. package/dist/components/p-bTOCGgU2.js +0 -1
  382. package/dist/paperless/p-4b7ac676.entry.js +0 -1
  383. package/dist/paperless/p-5d58a880.entry.js +0 -1
  384. package/dist/paperless/p-70071176.entry.js +0 -1
  385. package/dist/paperless/p-73102cbf.entry.js +0 -1
  386. package/dist/paperless/p-92259edb.entry.js +0 -1
  387. package/dist/paperless/p-9ac5f80b.entry.js +0 -1
  388. package/dist/paperless/p-ce15940f.entry.js +0 -1
@@ -371,8 +371,8 @@ export class Field {
371
371
  }
372
372
  render() {
373
373
  const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
374
- return (h(ThemedHost, { key: '537b14741e48d7aa20121d9d4e0cb4f04fcf7eab' }, h("p-field-container", { key: 'ddb458b4fda84393779f1c2668541b09baf008a3', align: this.align, error: this.error, forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
375
- (!!this.error?.length && this.forceShowTooltip), helper: this.helper, id: id, label: this.label, loading: this.loading, loadingSize: this.size, required: this.required, showOptional: this.showOptional, variant: this.variant }, hasLabelSlot && (h("slot", { key: '22e0fad26aa04bc18833eeb6b86822ad22a10586', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '2c451ce3554067b83effa28e7fb3afc350c07838', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '5a7b1748f39fa6716d6ea84dc822f8a91a38a255', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: 'b02b47a5fa9768792a1de132beccfcb94637194d', name: 'error', slot: 'error' })), h("div", { key: '1beb78cff29f30c5adad7e3cec93961caaf34b08', class: field({
374
+ return (h(ThemedHost, { key: 'b251e9ed78735fc141963abe577696100e973d37' }, h("p-field-container", { key: '7f9e06a6e2904f43404fb93b886e4e0918b5a862', align: this.align, error: this.error, forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
375
+ (!!this.error?.length && this.forceShowTooltip), helper: this.helper, id: id, label: this.label, loading: this.loading, loadingSize: this.size, required: this.required, showOptional: this.showOptional, variant: this.variant }, hasLabelSlot && (h("slot", { key: 'bc559fcf5b77ff3b87120eb52fd0e3dd14e1b912', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '1b87bb5d34f429f9319632f14c12b28f8e76cf1a', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: 'a6a461f45d58d76b1ef0f6b3e013d699e72dbf49', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: 'b3947ba2b86f3b776178288e4946eb11e3efe3f2', name: 'error', slot: 'error' })), h("div", { key: 'aaed5d10a79306e400128254b9ca4c132cd06088', class: field({
376
376
  error: !!this.error?.length,
377
377
  disabled: asBoolean(this.disabled),
378
378
  focused: asBoolean(this.focused) || this._focused,
@@ -383,7 +383,7 @@ export class Field {
383
383
  ? `${this.value}`
384
384
  : undefined }, (this.error?.length ||
385
385
  prefix ||
386
- (this.icon && this.iconPosition === 'start')) && (h("div", { key: '5c157f96f660ae83468219a63f08abc279dfc5cc', class: prefixAndSuffix({
386
+ (this.icon && this.iconPosition === 'start')) && (h("div", { key: 'e516c3533d88e87a601d9c97504100687d6f30da', class: prefixAndSuffix({
387
387
  variant: this.variant,
388
388
  error: !!this.error?.length,
389
389
  disabled: asBoolean(this.disabled),
@@ -395,7 +395,7 @@ export class Field {
395
395
  'mt-1': this.variant === 'read' && this.size === 'base',
396
396
  }), flip: this.iconFlip, rotate: this.iconRotate, variant: this.error?.length ? 'warning' : this.icon })) : (prefix))), this._getContent(hasValueSlot, id), (suffix ||
397
397
  (this.type === 'password' && this.enablePasswordEye) ||
398
- (this.icon && this.iconPosition === 'end')) && (h("div", { key: '470f92267fb2a7a44a52b58259539b2940943221', class: cn(prefixAndSuffix({
398
+ (this.icon && this.iconPosition === 'end')) && (h("div", { key: '62fcd0427be492bd46faeafd2a35b0df447bebac', class: cn(prefixAndSuffix({
399
399
  variant: this.variant,
400
400
  error: !!this.error?.length,
401
401
  disabled: asBoolean(this.disabled),
@@ -88,13 +88,13 @@ export class NavigationItem {
88
88
  render() {
89
89
  const TagType = this.as;
90
90
  const active = asBoolean(this.active) || this.class?.includes('active');
91
- return (h(ThemedHost, { key: 'ae16c9de7454fc81eabe1007ddacadc0910c30df', class: cn('inline-block', this.class) }, h(TagType, { key: '5762e034f8994b2b545254e74bda83648051f7b4', class: navigationItem({
91
+ return (h(ThemedHost, { key: '9dbc90d066c5c8af033baeadfd56b0d6fc97b8e8', class: cn('inline-block', this.class) }, h(TagType, { key: '54794c49462a1695aa7ab2aac1798ebd7e659775', class: navigationItem({
92
92
  icon: !!this.icon,
93
93
  active,
94
- }), href: this.href, target: this.target }, h("div", { key: '3f8f23069bc9bb4e74f21bdaf84a5799c94c1923', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: '35a783b85c8ecd4817c2d956f2146af0023ab103', variant: this.icon })), h("span", { key: '850af9f755f29426abbc6c9aec0049b2c60bc6ae', class: cn({
94
+ }), href: this.href, target: this.target }, h("div", { key: 'a64642008da3eb90fabef41ff4f7849bd5990769', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: '5717e6bab1ccaff30409cdc470a5e26c0453abc3', variant: this.icon })), h("span", { key: '10724de271347188676041a4d3d34abda19570fe', class: cn({
95
95
  'has-counter': !!this.counter,
96
96
  'w-full': this.applyFullWidth,
97
- }) }, h("slot", { key: '9ad7ed612cba22fd9e9586b2f7abb982edb7b472' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: 'd5a732b8445a36b876835863bb5a3e01d42ad0f8' }, this.counter)), !!this.loading && h("p-loader", { key: 'd3590283a8e0bb1ed5247146fff810c841577588', class: 'ml-auto' }))));
97
+ }) }, h("slot", { key: 'c28eb7ba26a618dcd80cfb53a9b6e99f202be44c' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: '3c75ef84bea0f90c136544c30aa32bc3bb5de311' }, this.counter)), !!this.loading && h("p-loader", { key: '0039f85358dcdd014ba98415256dc49be0daf366', class: 'ml-auto' }))));
98
98
  }
99
99
  static get is() { return "p-navigation-item"; }
100
100
  static get encapsulation() { return "scoped"; }
@@ -6,7 +6,7 @@ export class NavigationSection {
6
6
  */
7
7
  header;
8
8
  render() {
9
- return (h(ThemedHost, { key: 'aabfc291e288f02dcd4968f03899077fb318abf0', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '507af087c66bdb236bb54af09819fbda57180bf7' }, this.header)), h("div", { key: 'a6206f28cc39183855440bc575404817c9de5e3e', class: 'flex flex-col' }, h("slot", { key: '56bbabeb6a8884aaa667055ffb082753733d0c6f' }))));
9
+ return (h(ThemedHost, { key: 'a0ca4e59eecc786d21f19b5cf19109ff2ecff9c2', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '2c01baaaff7f298d2589c62571cc765c885c7c21' }, this.header)), h("div", { key: 'e92d1f46d8fb376f93097bb29d47983055d0657d', class: 'flex flex-col' }, h("slot", { key: '6e68b9723d5ae4f738c3f56d6c8c73fbb824e497' }))));
10
10
  }
11
11
  static get is() { return "p-navigation-section"; }
12
12
  static get originalStyleUrls() {
@@ -60,12 +60,12 @@ export class Pagination {
60
60
  _hasPaginationPages = true;
61
61
  render() {
62
62
  const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
63
- return (h(ThemedHost, { key: '9a30d6c7d566a90f8ac44f77fab07d2a2446c72f' }, h("div", { key: '85f2dcfc61804d63b84ad255652d446543c5c839', class: pagination({
63
+ return (h(ThemedHost, { key: 'a5a07358c2ab6751f4d101c6001765984338c0f5' }, h("div", { key: 'f56d13ec01851b1342129c1f815b85d5ee2ca536', class: pagination({
64
64
  hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
65
65
  (!this.enablePaginationSize && !this.enablePaginationPages),
66
- }) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '1c51b9320c6a18d1acbb540f0728ea3ce79e02d6' }, h("p-pagination-size", { key: '08c020039f055c1205adac0ba4f9f32922781ebf', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
66
+ }) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '76d975d6c125a8f396a02f09fae593693fa2beda' }, h("p-pagination-size", { key: 'ded600f766ad55ad0c191bf1e87796176c6dd395', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
67
67
  this.hideOnSinglePage &&
68
- this._hasPaginationPages && (h("p-divider", { key: '0587d352bea9161f7b708221a35cc9ccec2d81ff', class: '\n mx-0 h-4 text-off-white-700\n dark:text-hurricane-400\n ', variant: 'vertical' })))), this.enablePaginationPages && (h("p-pagination-pages", { key: 'c0642155df14ece17ac84ea8a285a01b62f2bc28', hideOnSinglePage: this.hideOnSinglePage, page: this.page, pageSize: this.pageSize, total: this.total, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
68
+ this._hasPaginationPages && (h("p-divider", { key: '624f38b4cab761accfca28f4ced270449c6f0a7d', class: '\n mx-0 h-4 text-off-white-700\n dark:text-hurricane-400\n ', variant: 'vertical' })))), this.enablePaginationPages && (h("p-pagination-pages", { key: 'cd4a6b794c6a2ff43904b1f718555a3a9752b843', hideOnSinglePage: this.hideOnSinglePage, page: this.page, pageSize: this.pageSize, total: this.total, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
69
69
  this._hasPaginationPages = detail > 1;
70
70
  this.pagesChange.emit(detail);
71
71
  } })))));
@@ -28,7 +28,7 @@ export class Profile {
28
28
  }
29
29
  render() {
30
30
  const content = this._getContent();
31
- return (h(ThemedHost, { key: '6d75fe9ed4ac33cfc764d9fab67484d6a9f07721' }, this._hasDropdownSlot ? (h("p-dropdown", { applyChevron: false, applyFullWidth: true, applyMaxWidth: false, manualChevron: true, placement: this.dropdownLocation, strategy: 'absolute', onIsOpen: ev => (this._dropdownOpen = ev.detail) }, h("p-button", { active: this._dropdownOpen, chevron: this._dropdownOpen ? 'up' : 'down', class: 'w-full', size: 'lg', slot: 'trigger', variant: 'dropdown' }, content), h("div", { slot: 'items' }, h("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
31
+ return (h(ThemedHost, { key: 'acfcfd3ddb3bae8247f1df99884ac155be45aa86' }, this._hasDropdownSlot ? (h("p-dropdown", { applyChevron: false, applyFullWidth: true, applyMaxWidth: false, manualChevron: true, placement: this.dropdownLocation, strategy: 'absolute', onIsOpen: ev => (this._dropdownOpen = ev.detail) }, h("p-button", { active: this._dropdownOpen, chevron: this._dropdownOpen ? 'up' : 'down', class: 'w-full', size: 'lg', slot: 'trigger', variant: 'dropdown' }, content), h("div", { slot: 'items' }, h("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
32
32
  }
33
33
  slotchange() {
34
34
  this._checkDropdownSlot();
@@ -23,13 +23,13 @@ export class Range {
23
23
  valueChange;
24
24
  render() {
25
25
  const percentage = Math.round((this.value / (this.max - this.min)) * 100);
26
- return (h(ThemedHost, { key: '2d2460d0c69169794ca7f22f80bfe29eee2c6e72' }, h("div", { key: '7441a9994ebd42f91d0b592ab1d4345ff0da9817', class: '\n flex w-inherit items-center gap-2 text-storm-300\n dark:text-hurricane-200\n ' }, h("p-icon", { key: '2dfd00d0e7042aa63223fbdb2f537f55ec5d624c', variant: 'minus' }), h("div", { key: '77dc1faecfdccf7692af8276043fa851e3febfdf', class: 'relative h-6 flex-1' }, h("input", { key: 'da4efbb82a44ee8f7924b9447abfbdb1cbebf10f', max: this.max, min: this.min, step: this.step, type: 'range', value: this.value, onInput: ev => {
26
+ return (h(ThemedHost, { key: 'fd0a731e7d20e593d1065248f50db452b17ee1cb' }, h("div", { key: 'ff11a123161008ab1df2ecd6409d36930a2caeac', class: '\n flex w-inherit items-center gap-2 text-storm-300\n dark:text-hurricane-200\n ' }, h("p-icon", { key: '1728a242b890cd3396f46b1dbfe4b91293e0e11d', variant: 'minus' }), h("div", { key: 'cfb6620df8ad9b2dfe66334ebd931d3384b7523a', class: 'relative h-6 flex-1' }, h("input", { key: '0ac09cea4ef3f55a96f19216e2826620bdbc33d4', max: this.max, min: this.min, step: this.step, type: 'range', value: this.value, onInput: ev => {
27
27
  const value = ev.target.value;
28
28
  this.value = Number.parseFloat(value);
29
29
  this.valueChange.emit(value);
30
- } }), h("div", { key: '19677761561399e485961a92cdf6167d8334f439', class: '\n absolute left-0 top-1/2 z-[1] h-[2px] -translate-y-1/2 transform\n bg-indigo-600\n ', style: {
30
+ } }), h("div", { key: '9e5bc94ed20c00fcb15f1d973828feb910e0bbfc', class: '\n absolute left-0 top-1/2 z-[1] h-[2px] -translate-y-1/2 transform\n bg-indigo-600\n ', style: {
31
31
  width: `calc(${percentage}% - (1rem * ${percentage} / 100))`,
32
- } })), h("p-icon", { key: '96ecdaa05a4a710a980fab7f77a3d845f837ce5c', variant: 'plus' }))));
32
+ } })), h("p-icon", { key: 'df9f96eb46d92d02777bbb0bc9e58f6cf0d21ca7', variant: 'plus' }))));
33
33
  }
34
34
  static get is() { return "p-range"; }
35
35
  static get encapsulation() { return "shadow"; }
@@ -195,6 +195,10 @@ export class Select {
195
195
  * Event when the dropdown shows
196
196
  */
197
197
  dropdownShown;
198
+ /**
199
+ * Event when hovering an item
200
+ */
201
+ itemHover;
198
202
  /**
199
203
  * The size of the input group used by the select
200
204
  */
@@ -341,8 +345,8 @@ export class Select {
341
345
  if (this.error?.length) {
342
346
  buttonIcon = 'warning';
343
347
  }
344
- return (h(ThemedHost, { key: 'e558118df2ca323c56ce1af9ca940f9ab3064bf5' }, h("p-field-container", { key: '8c59c91d1962edee3ee06ca33f93e670aaf471d2', 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' }, h("p-dropdown", { key: '81ce03dc69685e18a92090628818e0ea902b9f3b', applyChevron: false, applyFullWidth: true, applyMaxWidth: false, "disable-trigger-click": this.disabled, insideClick: true, manual: true, manualChevron: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, slot: 'content', strategy: this.strategy, onIsOpen: ev => this._onDropdownOpen(ev) }, h("p-button", { key: '71a818c2ee268b8c169cc65bcd405ab8153bacb9', active: this._showDropdown, chevron: this.showChevron ? (this._showDropdown ? 'up' : 'down') : false, class: 'w-full', error: !!this.error?.length, icon: buttonIcon, iconClass: this.applyClassOnSelectedItem &&
345
- this._selectedItem?.[this.iconClassKey], size: this.size, slot: 'trigger', variant: 'secondary', onClick: ev => this._onClick(ev) }, h("div", { key: '53f5fc2d15c94e96f629c6bd53e2456078f47dd3', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue)), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem()))));
348
+ return (h(ThemedHost, { key: 'b23bf53949366811ec68b34250ddd36d3d86efc0' }, h("p-field-container", { key: '1429705940cd1ec6f88d28be966273731f6e4f4e', 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' }, h("p-dropdown", { key: 'd006fc242b99db8979509be0eaf2aba96d6a5051', applyChevron: false, applyFullWidth: true, applyMaxWidth: false, "disable-trigger-click": this.disabled, insideClick: true, manual: true, manualChevron: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, slot: 'content', strategy: this.strategy, onIsOpen: ev => this._onDropdownOpen(ev) }, h("p-button", { key: '6bf30b07753477e8ce4ff9f60d739c71f1ab3388', active: this._showDropdown, chevron: this.showChevron ? (this._showDropdown ? 'up' : 'down') : false, class: 'w-full', error: !!this.error?.length, icon: buttonIcon, iconClass: this.applyClassOnSelectedItem &&
349
+ this._selectedItem?.[this.iconClassKey], size: this.size, slot: 'trigger', variant: 'secondary', onClick: ev => this._onClick(ev) }, h("div", { key: 'b940d807179e88c328366bcc671eaf467736ed38', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue)), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem()))));
346
350
  }
347
351
  documentClickHandler(event) {
348
352
  if (!this._showDropdown || childOfComposed(event, this._el)) {
@@ -393,6 +397,9 @@ export class Select {
393
397
  }
394
398
  if (!this._selectedItem && !value && this.autoSelectFirst) {
395
399
  value = this._items[0];
400
+ if (value?.type === 'category') {
401
+ value = this._items[1];
402
+ }
396
403
  }
397
404
  const identifier = typeof value === 'object' && value !== null
398
405
  ? value[this._identifierKey]
@@ -494,12 +501,20 @@ export class Select {
494
501
  .indexOf(this.query?.toLowerCase()) >= 0);
495
502
  }
496
503
  _getItems() {
497
- let items = this._items.map(item => {
504
+ let items = this._items.map((item, index) => {
505
+ if (item.type === 'category') {
506
+ return (h("p-dropdown-menu-item", { slot: 'items', useContainer: false, variant: 'category' }, item.text));
507
+ }
498
508
  const isSelected = this.multi && !!this._selectedItem && Array.isArray(this._selectedItem)
499
509
  ? this._selectedItem.some(i => i[this._identifierKey] === item[this._identifierKey])
500
510
  : item[this._identifierKey] ===
501
511
  this._selectedItem?.[this._identifierKey];
502
- return (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)));
512
+ return (h("p-dropdown-menu-item", { active: isSelected, checkbox: this.multi ? true : false, enableTextWrap: this.enableTextWrap, slot: 'items', useContainer: false, onClick: () => this._selectValue(item), onMouseEnter: event => this.itemHover.emit({
513
+ event,
514
+ ref: event.target,
515
+ item,
516
+ index,
517
+ }) }, this._getDisplay(item, false, isSelected)));
503
518
  });
504
519
  if (this._items.length === 0 && !this.showAddItem) {
505
520
  items = [
@@ -619,7 +634,29 @@ export class Select {
619
634
  if (!this.items || this.loading) {
620
635
  return [];
621
636
  }
622
- let items = typeof this.items === 'string' ? JSON.parse(this.items) : this.items;
637
+ let items = this.items;
638
+ if (typeof this.items === 'string') {
639
+ items = JSON.parse(this.items);
640
+ }
641
+ if (typeof items === 'object' && !Array.isArray(items)) {
642
+ const categorizedItems = [];
643
+ for (const key in items) {
644
+ let itemsInCat = items[key];
645
+ if (typeof items[key]?.[0] === 'string') {
646
+ this.displayKey = 'text';
647
+ this.valueKey = 'value';
648
+ itemsInCat = items[key].map(str => ({
649
+ value: str,
650
+ text: str,
651
+ }));
652
+ }
653
+ categorizedItems.push({
654
+ type: 'category',
655
+ text: key,
656
+ }, ...itemsInCat);
657
+ }
658
+ items = categorizedItems;
659
+ }
623
660
  if (typeof items?.[0] === 'string') {
624
661
  this.displayKey = 'text';
625
662
  this.valueKey = 'value';
@@ -628,8 +665,12 @@ export class Select {
628
665
  text: str,
629
666
  }));
630
667
  }
668
+ let parsedItems = items;
631
669
  if (this.query?.length && !this.asyncFilter) {
632
- items = items.filter(item => {
670
+ parsedItems = parsedItems.filter(item => {
671
+ if (item.type === 'category') {
672
+ return true;
673
+ }
633
674
  if (this.queryKey) {
634
675
  return this._checkvalue(this.queryKey, item);
635
676
  }
@@ -638,9 +679,9 @@ export class Select {
638
679
  });
639
680
  }
640
681
  if (!applyPagination) {
641
- return items;
682
+ return parsedItems;
642
683
  }
643
- return items?.slice(0, this.maxDisplayedItems);
684
+ return parsedItems?.slice(0, this.maxDisplayedItems);
644
685
  }
645
686
  static get is() { return "p-select"; }
646
687
  static get formAssociated() { return true; }
@@ -660,8 +701,8 @@ export class Select {
660
701
  "type": "string",
661
702
  "mutable": false,
662
703
  "complexType": {
663
- "original": "string | any[]",
664
- "resolved": "any[] | string",
704
+ "original": "| string\n\t\t| any[]\n\t\t| {\n\t\t\t\t[key: string]: string | any[];\n\t\t }",
705
+ "resolved": "any[] | string | { [key: string]: string | any[]; }",
665
706
  "references": {}
666
707
  },
667
708
  "required": false,
@@ -1587,6 +1628,27 @@ export class Select {
1587
1628
  "resolved": "any",
1588
1629
  "references": {}
1589
1630
  }
1631
+ }, {
1632
+ "method": "itemHover",
1633
+ "name": "itemHover",
1634
+ "bubbles": false,
1635
+ "cancelable": true,
1636
+ "composed": true,
1637
+ "docs": {
1638
+ "tags": [],
1639
+ "text": "Event when hovering an item"
1640
+ },
1641
+ "complexType": {
1642
+ "original": "SelectItemHoverEvent",
1643
+ "resolved": "SelectItemHoverEvent",
1644
+ "references": {
1645
+ "SelectItemHoverEvent": {
1646
+ "location": "local",
1647
+ "path": "/home/runner/work/Paperless/Paperless/packages/core/src/components/molecules/select/select.component.tsx",
1648
+ "id": "src/components/molecules/select/select.component.tsx::SelectItemHoverEvent"
1649
+ }
1650
+ }
1651
+ }
1590
1652
  }, {
1591
1653
  "method": "add",
1592
1654
  "name": "add",
@@ -5,7 +5,120 @@ const meta = {
5
5
  component: 'p-select',
6
6
  args: {
7
7
  label: 'Label',
8
- items: JSON.stringify([
8
+ 'identifier-key': 'value',
9
+ },
10
+ parameters: {
11
+ docs: {
12
+ iframeHeight: 300,
13
+ story: {
14
+ height: '350px',
15
+ },
16
+ },
17
+ },
18
+ };
19
+ export default meta;
20
+ export const Default = {
21
+ render: ({ multi, strategy, icon, query, placeholder, 'autocomplete-placeholder': autocompletePlaceholder, value, 'display-key': displayKey, 'dropdown-display-key': dropdownDisplayKey, 'selection-display-key': selectionDisplayKey, 'value-key': valueKey, 'avatar-key': avatarKey, 'icon-key': iconKey, 'show-icon-in-selected-item': showIconInSelectedItem, 'class-key': classKey, 'apply-class-on-selected-item': applyClassOnSelectedItem, 'avatar-letters-key': avatarLettersKey, 'identifier-key': identifierKey, 'query-key': queryKey, 'auto-select-first': autoSelectFirst, 'show-chevron': showChevron, 'max-displayed-items': maxDisplayedItems, 'enable-autocomplete': enableAutocomplete, 'enable-text-wrap': enableTextWrap, 'async-filter': asyncFilter, loading, 'enable-select-all': enableSelectAll, 'select-all-text': selectAllText, 'select-all-icon': selectAllIcon, size, prefix, label, helper, required, 'show-optional': showOptional, error, disabled, 'show-add-item': showAddItem, 'add-item-text': addItemText, 'empty-state-text': emptyStateText, }) => html `
22
+ <p-select
23
+ items=${JSON.stringify([
24
+ {
25
+ value: 'value',
26
+ text: 'Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 ',
27
+ class: 'text-negative-red-500',
28
+ iconClass: 'text-negative-red-500 group-hover/button:text-negative-red-800',
29
+ icon: 'user',
30
+ },
31
+ {
32
+ value: 'value2',
33
+ text: 'Option 2',
34
+ },
35
+ {
36
+ value: 'value3',
37
+ text: 'Option 3',
38
+ },
39
+ {
40
+ value: 'value4',
41
+ text: 'Option 4',
42
+ },
43
+ {
44
+ value: 'value5',
45
+ text: 'Option 5',
46
+ },
47
+ {
48
+ value: 'value6',
49
+ text: 'Option 6',
50
+ },
51
+ {
52
+ value: 'value7',
53
+ text: 'Option 7',
54
+ },
55
+ {
56
+ value: 'value8',
57
+ text: 'Option 8',
58
+ },
59
+ {
60
+ value: 'value9',
61
+ text: 'Option 9',
62
+ },
63
+ {
64
+ value: 'value10',
65
+ text: 'Option 10',
66
+ },
67
+ ])}
68
+ multi=${multi ?? nothing}
69
+ strategy=${strategy ?? nothing}
70
+ icon=${icon ?? nothing}
71
+ query=${query ?? nothing}
72
+ placeholder=${placeholder ?? nothing}
73
+ autocomplete-placeholder=${autocompletePlaceholder ?? nothing}
74
+ value=${value ?? nothing}
75
+ display-key=${displayKey ?? nothing}
76
+ dropdown-display-key=${dropdownDisplayKey ?? nothing}
77
+ selection-display-key=${selectionDisplayKey ?? nothing}
78
+ value-key=${valueKey ?? nothing}
79
+ avatar-key=${avatarKey ?? nothing}
80
+ icon-key=${iconKey ?? nothing}
81
+ show-icon-in-selected-item=${showIconInSelectedItem ?? nothing}
82
+ class-key=${classKey ?? nothing}
83
+ apply-class-on-selected-item=${applyClassOnSelectedItem ?? nothing}
84
+ avatar-letters-key=${avatarLettersKey ?? nothing}
85
+ identifier-key=${identifierKey ?? nothing}
86
+ query-key=${queryKey ?? nothing}
87
+ auto-select-first=${autoSelectFirst ?? nothing}
88
+ show-chevron=${showChevron ?? nothing}
89
+ max-displayed-items=${maxDisplayedItems ?? nothing}
90
+ enable-autocomplete=${enableAutocomplete ?? nothing}
91
+ enable-text-wrap=${enableTextWrap ?? nothing}
92
+ async-filter=${asyncFilter ?? nothing}
93
+ loading=${loading ?? nothing}
94
+ enable-select-all=${enableSelectAll ?? nothing}
95
+ select-all-text=${selectAllText ?? nothing}
96
+ select-all-icon=${selectAllIcon ?? nothing}
97
+ size=${size ?? nothing}
98
+ prefix=${prefix ?? nothing}
99
+ label=${label ?? nothing}
100
+ helper=${helper ?? nothing}
101
+ required=${required ?? nothing}
102
+ show-optional=${showOptional ?? nothing}
103
+ error=${error ?? nothing}
104
+ disabled=${disabled ?? nothing}
105
+ show-add-item=${showAddItem ?? nothing}
106
+ add-item-text=${addItemText ?? nothing}
107
+ empty-state-text=${emptyStateText ?? nothing}
108
+ @queryChange=${action('queryChange')}
109
+ @valueChange=${action('valueChange')}
110
+ @selectAllChange=${action('selectAllChange')}
111
+ @dropdownShown=${action('dropdownShown')}
112
+ @add=${action('add')}
113
+ @itemHover=${action('itemHover')}
114
+ />
115
+ `,
116
+ };
117
+ export const Categorized = {
118
+ render: ({ multi, strategy, icon, query, placeholder, 'autocomplete-placeholder': autocompletePlaceholder, value, 'display-key': displayKey, 'dropdown-display-key': dropdownDisplayKey, 'selection-display-key': selectionDisplayKey, 'value-key': valueKey, 'avatar-key': avatarKey, 'icon-key': iconKey, 'show-icon-in-selected-item': showIconInSelectedItem, 'class-key': classKey, 'apply-class-on-selected-item': applyClassOnSelectedItem, 'avatar-letters-key': avatarLettersKey, 'identifier-key': identifierKey, 'query-key': queryKey, 'auto-select-first': autoSelectFirst, 'show-chevron': showChevron, 'max-displayed-items': maxDisplayedItems, 'enable-autocomplete': enableAutocomplete, 'enable-text-wrap': enableTextWrap, 'async-filter': asyncFilter, loading, 'enable-select-all': enableSelectAll, 'select-all-text': selectAllText, 'select-all-icon': selectAllIcon, size, prefix, label, helper, required, 'show-optional': showOptional, error, disabled, 'show-add-item': showAddItem, 'add-item-text': addItemText, 'empty-state-text': emptyStateText, }) => html `
119
+ <p-select
120
+ items=${JSON.stringify({
121
+ 'category 1': [
9
122
  {
10
123
  value: 'value',
11
124
  text: 'Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 ',
@@ -21,6 +134,8 @@ const meta = {
21
134
  value: 'value3',
22
135
  text: 'Option 3',
23
136
  },
137
+ ],
138
+ 'category 2': [
24
139
  {
25
140
  value: 'value4',
26
141
  text: 'Option 4',
@@ -33,6 +148,8 @@ const meta = {
33
148
  value: 'value6',
34
149
  text: 'Option 6',
35
150
  },
151
+ ],
152
+ 'category 3': [
36
153
  {
37
154
  value: 'value7',
38
155
  text: 'Option 7',
@@ -49,23 +166,8 @@ const meta = {
49
166
  value: 'value10',
50
167
  text: 'Option 10',
51
168
  },
52
- ]),
53
- 'identifier-key': 'value',
54
- },
55
- parameters: {
56
- docs: {
57
- iframeHeight: 300,
58
- story: {
59
- height: '350px',
60
- },
61
- },
62
- },
63
- };
64
- export default meta;
65
- export const Default = {
66
- render: ({ items, multi, strategy, icon, query, placeholder, 'autocomplete-placeholder': autocompletePlaceholder, value, 'display-key': displayKey, 'dropdown-display-key': dropdownDisplayKey, 'selection-display-key': selectionDisplayKey, 'value-key': valueKey, 'avatar-key': avatarKey, 'icon-key': iconKey, 'show-icon-in-selected-item': showIconInSelectedItem, 'class-key': classKey, 'apply-class-on-selected-item': applyClassOnSelectedItem, 'avatar-letters-key': avatarLettersKey, 'identifier-key': identifierKey, 'query-key': queryKey, 'auto-select-first': autoSelectFirst, 'show-chevron': showChevron, 'max-displayed-items': maxDisplayedItems, 'enable-autocomplete': enableAutocomplete, 'enable-text-wrap': enableTextWrap, 'async-filter': asyncFilter, loading, 'enable-select-all': enableSelectAll, 'select-all-text': selectAllText, 'select-all-icon': selectAllIcon, size, prefix, label, helper, required, 'show-optional': showOptional, error, disabled, 'show-add-item': showAddItem, 'add-item-text': addItemText, 'empty-state-text': emptyStateText, }) => html `
67
- <p-select
68
- items=${items ?? nothing}
169
+ ]
170
+ })}
69
171
  multi=${multi ?? nothing}
70
172
  strategy=${strategy ?? nothing}
71
173
  icon=${icon ?? nothing}
@@ -111,6 +213,7 @@ export const Default = {
111
213
  @selectAllChange=${action('selectAllChange')}
112
214
  @dropdownShown=${action('dropdownShown')}
113
215
  @add=${action('add')}
216
+ @itemHover=${action('itemHover')}
114
217
  />
115
218
  `,
116
219
  };
@@ -138,13 +138,13 @@ export class TableHeader {
138
138
  const mobileTotal = (this.selectedFiltersAmount || 0) + (activeQuickFilter?.default ? 0 : 1);
139
139
  const hasCustomFilterSlot = !!this._el.querySelector(':scope > [slot="custom-filter"]');
140
140
  const hasCustomActionsSlot = !!this._el.querySelector(':scope > [slot="custom-actions"]');
141
- return (h(ThemedHost, { key: '919f2d6962e03484eebc67c1212d7b79281a869d' }, h("div", { key: '34903f732f855e8762525313a48690933920065a', class: header() }, this.loading && (h("p-loader", { key: '0bf68e8fa2ebaf85095a0ac8eadfe49553085890', class: '\n hidden h-8 w-3/4 rounded\n desktop-xs:flex\n ', variant: 'ghost' })), !this.loading &&
142
- (hasCustomFilterSlot || quickFilters.length > 0) && (h("div", { key: '3aea08d692a98401fb5d2460678f12203f7fd9f4', class: '\n flex flex-col justify-start gap-4 justify-self-start\n desktop-xs:flex-row\n ' }, hasCustomFilterSlot && h("slot", { key: '3135fb1229c2bc761d369c61883c162ca3b9c7a3', name: 'custom-filter' }), quickFilters.length > 0 && (h("p-segment-container", { key: '64bb908d67d4c476ef03823cf80708142662a5a3', class: cn({
141
+ return (h(ThemedHost, { key: '06a91f32ec37d93fcc345d1ffce3d32546085e84' }, h("div", { key: '527d621bb567945dc57716480245847f4045bb02', class: header() }, this.loading && (h("p-loader", { key: '48ddfce44e02e54cba2d5fa11f3195caefa6238d', class: '\n hidden h-8 w-3/4 rounded\n desktop-xs:flex\n ', variant: 'ghost' })), !this.loading &&
142
+ (hasCustomFilterSlot || quickFilters.length > 0) && (h("div", { key: '594afb205bb8acbfcfe9a6090bbdf3b3feada9d7', class: '\n flex flex-col justify-start gap-4 justify-self-start\n desktop-xs:flex-row\n ' }, hasCustomFilterSlot && h("slot", { key: '31db5507e955eb9fcc954b8a4df5a46c93f30569', name: 'custom-filter' }), quickFilters.length > 0 && (h("p-segment-container", { key: 'c2ba9983ea0869a9bc9a7d6ed1fe37a2a7dc8bec', class: cn({
143
143
  'hidden desktop-xs:flex': this.hideQuickFiltersOnMobile,
144
144
  flex: !this.hideQuickFiltersOnMobile,
145
145
  }) }, quickFilters.map(item => (h("p-segment-item", { active: item.identifier === this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) }, typeof item.text === 'string'
146
146
  ? item.text
147
- : item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), h("div", { key: 'e3633eb69ed3f3ddb0442209918f26797f093405', class: '\n flex flex-col justify-end gap-2\n desktop-xs:ml-auto desktop-xs:flex-row desktop-xs:items-center\n ' }, this.enableSearch && (h("p-field", { key: '15fe7cbc8b837be49b44091a44feff333c0d58cb', class: 'desktop-xs:max-w-60', icon: 'search', placeholder: 'Zoeken...', value: this.query, onValueChange: ev => this._queryObserver.next(ev.detail) })), h("div", { key: 'e9cbe54fe98be68ee685724becab9c84ab08f30c', class: 'flex items-center gap-2' }, this.enableFilter && (h("p-button", { key: '0d896bb251a90f28c78544e9cd1c4f05e92d0ddd', class: `
147
+ : item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), h("div", { key: '5f2ef9e242bca379a09467f7efd2c4266d8366ba', class: '\n flex flex-col justify-end gap-2\n desktop-xs:ml-auto desktop-xs:flex-row desktop-xs:items-center\n ' }, this.enableSearch && (h("p-field", { key: '10d8e0955ee7e875f3b117b31e4e904ab68a0a6c', class: 'desktop-xs:max-w-60', icon: 'search', placeholder: 'Zoeken...', value: this.query, onValueChange: ev => this._queryObserver.next(ev.detail) })), h("div", { key: 'd199785614619a10681df3c823dd45a10c1245b5', class: 'flex items-center gap-2' }, this.enableFilter && (h("p-button", { key: 'ec3008c046c8d164027ca4ae6aaa9365cd815b1a', class: `
148
148
  w-full
149
149
  ${this.enableFilterDesktop
150
150
  ? 'desktop-xs:w-auto'
@@ -152,7 +152,7 @@ export class TableHeader {
152
152
  `, icon: 'filter', variant: 'secondary', onOnClick: () => this.filter.emit() }, this.filterButtonTemplate
153
153
  ? this.filterButtonTemplate()
154
154
  : this._defaultFilterButtonTemplate(), this.selectedFiltersAmount &&
155
- this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (h("p-divider", { key: '21491e18e3c1b9815b7f90762e04287dedc33c7d', class: '\n hidden h-4\n tablet:flex\n dark:text-white/15\n ', variant: 'vertical' })), !this.loading && this.enableExport && (h("p-button", { key: 'ec8f8fb78379982d84f07518fb932cb0e1aabd50', class: '\n w-full\n desktop-xs:w-auto\n ', icon: 'upload', variant: 'secondary', onOnClick: () => this.export.emit() }, formatTranslation(this._locales.export)))), this.enableAction && this._buttonTemplate(), hasCustomActionsSlot && h("slot", { key: '6418703af4de32e78bbfb0bfc1c2714db1c235d7', name: 'custom-actions' })), this.enableAction && this.canUseAction && (h("div", { key: 'c8018e5ac7ce13b11f9e83af0b0de60ce5057def', class: '\n fixed bottom-0 left-0 z-[2] block w-full border border-solid\n border-transparent bg-white p-4\n desktop-xs:hidden\n dark:border-t-hurricane-400 dark:bg-hurricane-500\n ' }, this._buttonTemplate(true))))));
155
+ this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (h("p-divider", { key: '9a063d3dbf6a9baf405c56d12cdbfc599ea77bd7', class: '\n hidden h-4\n tablet:flex\n dark:text-white/15\n ', variant: 'vertical' })), !this.loading && this.enableExport && (h("p-button", { key: '95628448d5455954bd31c42b81fd64278de30ba9', class: '\n w-full\n desktop-xs:w-auto\n ', icon: 'upload', variant: 'secondary', onOnClick: () => this.export.emit() }, formatTranslation(this._locales.export)))), this.enableAction && this._buttonTemplate(), hasCustomActionsSlot && h("slot", { key: 'd0355fc9a41a71f5de380b2c5c948ca7f43afd06', name: 'custom-actions' })), this.enableAction && this.canUseAction && (h("div", { key: '6ca4d73e0c62937a8084c1862ba102e1027b026d', class: '\n fixed bottom-0 left-0 z-[2] block w-full border border-solid\n border-transparent bg-white p-4\n desktop-xs:hidden\n dark:border-t-hurricane-400 dark:bg-hurricane-500\n ' }, this._buttonTemplate(true))))));
156
156
  }
157
157
  async _setLocales() {
158
158
  this._locales = await getLocaleComponentStrings(this._el);
@@ -257,7 +257,7 @@ export class Table {
257
257
  this.hasRendered.emit();
258
258
  }
259
259
  render() {
260
- return (h(Host, { key: 'ae904712e08489474afdc5845533f6e9ac95301b', class: 'z-0 flex flex-col' }, h("p-table-container", { key: 'dda70ad29ac9043645d12913365af8f6e4afdffb' }, this.enableHeader && (h("p-table-header", { key: '701ccce426272567e11263f305a76684306fac37', 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 && (h("slot", { key: 'adc6c02c1b89d0acef5ab2837f9e5fb3864fa7d4', name: 'custom-filter', slot: 'custom-filter' })), this._hasCustomActionsSlot && (h("slot", { key: '230b0b3960c58402ed66c4a94ec06c6296900ba6', name: 'custom-actions', slot: 'custom-actions' })))), this._getExtraHeader(), this._getHeader(), h("div", { key: '1295202d7cedd4513e1d28caebadc95e85831885', class: 'flex flex-1 flex-col' }, this._getRows(), h("slot", { key: '419e887ff55242fab18a8606abd736a0fc9f46bf', name: 'custom-rows' })), this.enableFloatingMenu && this._enableRowSelection ? (h("p-floating-menu-container", { amount: this.selectedRows?.length, amountSelectedTemplate: this.floatingMenuAmountSelectedTemplate, class: floatingMenuContainerClass({
260
+ return (h(Host, { key: 'd479eadd465ca89cb946b49a57baa2a9b59662f3', class: 'z-0 flex flex-col' }, h("p-table-container", { key: '4561faab83f090f8b2a93b2020851d8bdca654bf' }, this.enableHeader && (h("p-table-header", { key: '42f64f4650998137028ac3364842dd4637682ca1', 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 && (h("slot", { key: '4330a128ee1880c45651cce01c455043ab3d9358', name: 'custom-filter', slot: 'custom-filter' })), this._hasCustomActionsSlot && (h("slot", { key: '5842f3baaf1c0b5a1731412b3867b4aa3e75f473', name: 'custom-actions', slot: 'custom-actions' })))), this._getExtraHeader(), this._getHeader(), h("div", { key: '4ebfe041d95457578b879604ffc42edd5ebf109d', class: 'flex flex-1 flex-col' }, this._getRows(), h("slot", { key: '86102819a49542a813f5ab19d5f028b144547096', name: 'custom-rows' })), this.enableFloatingMenu && this._enableRowSelection ? (h("p-floating-menu-container", { amount: this.selectedRows?.length, amountSelectedTemplate: this.floatingMenuAmountSelectedTemplate, class: floatingMenuContainerClass({
261
261
  hasFooter: this.enableFooter && !this._footerHidden,
262
262
  active: !!this.selectedRows?.length,
263
263
  shown: this._floatingMenuShown,
@@ -267,7 +267,7 @@ export class Table {
267
267
  !!a.action &&
268
268
  a.type === 'single'
269
269
  ? a.action(this.selectedRows[0], false)
270
- : a.action(this.selectedRows, true) }, a.label))))) : (''), this.enableFooter && (h("p-table-footer", { key: '34eca9c12bcd8eac4a0f9b7c56660858e481f897', enablePaginationPages: this.enablePaginationPages, enablePaginationSize: this.enablePaginationSize, hideOnSinglePage: this.hideOnSinglePage, loading: this.footerLoading, page: this.page, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, tableHeaderHasAction: this.enableHeader &&
270
+ : a.action(this.selectedRows, true) }, a.label))))) : (''), this.enableFooter && (h("p-table-footer", { key: '5134a20cac241a36ec3c9e63af654e8c911379c4', enablePaginationPages: this.enablePaginationPages, enablePaginationSize: this.enablePaginationSize, hideOnSinglePage: this.hideOnSinglePage, loading: this.footerLoading, page: this.page, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, tableHeaderHasAction: this.enableHeader &&
271
271
  this.enableAction &&
272
272
  this.actionButtonEnabled, total: this.total, onHiddenChange: ({ detail }) => (this._footerHidden = detail), onPageChange: ({ detail }) => this.pageChange.emit(detail), onPageSizeChange: ({ detail }) => this.pageSizeChange.emit(detail) })))));
273
273
  }
@@ -1 +1 @@
1
- import{t,p as e,H as i,h as a}from"./p-CySg37XO.js";import{c as r}from"./p-CBWjHURv.js";import{T as o}from"./p-Au2WuEGF.js";import{a as n}from"./p-C5CTp9IA.js";import{d as s}from"./p-BmhVEljv.js";const c=r("flex gap-2",{variants:{align:{start:"items-start",center:"items-center",end:"items-end"},contentPosition:{start:"flex-row-reverse",end:null}}}),d=r(["flex items-center justify-center","text-center text-sm font-medium","rounded-full"],{variants:{align:{start:null,center:null,end:null},direction:{horizontal:null,vertical:null},finished:{true:null,false:null},active:{true:null,false:null},variant:{default:["size-6","border border-solid"],icon:"size-8"}},compoundVariants:[{finished:!1,active:!1,variant:"default",class:["border-indigo-600 bg-indigo-50 text-indigo-600","dark:border-white/15 dark:bg-white/15 dark:text-hurricane-200"]},{active:!0,finished:!1,variant:"default",class:"border-indigo-600 bg-indigo-600 text-white"},{active:!1,finished:!0,variant:"default",class:"border-indigo-600 bg-indigo-600 text-white"},{finished:!1,active:!1,variant:"icon",class:["bg-indigo-100 text-storm-200","dark:bg-white/15 dark:text-hurricane-200"]},{active:!0,finished:!1,variant:"icon",class:"bg-indigo-500 text-storm-500"},{active:!1,finished:!0,variant:"icon",class:"bg-indigo-100 text-indigo-600"},{direction:"vertical",align:"start",class:"mt-5"},{direction:"vertical",align:"end",class:"mb-5"}]}),l=r("mt-[1px] flex-1 text-sm",{variants:{finished:{true:null,false:null},active:{true:null,false:null},direction:{horizontal:null,vertical:null},variant:{default:"font-medium",icon:"font-semibold"}},compoundVariants:[{finished:!1,active:!1,variant:"default",class:"\n text-storm-400\n dark:text-hurricane-200\n "},{active:!0,finished:!1,variant:"default",class:"\n text-storm-500\n dark:text-white\n "},{active:!1,finished:!0,variant:"default",class:"\n text-storm-500\n dark:text-white\n "},{active:!1,variant:"icon",class:"\n text-storm-300\n dark:text-hurricane-200\n "},{active:!0,variant:"icon",class:"\n text-storm-500\n dark:text-white\n "},{direction:"horizontal",active:!1,class:"\n hidden\n desktop-xs:inline-block\n "}]}),h=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}number=1;icon;direction="horizontal";variant="default";align="center";contentPosition="end";finished=!1;active=!1;render(){return a(o,{key:"367d59656e6767f50c1c7aefab806f15c024e296"},a("div",{key:"622a892f8241c64d1b38bad2c5850d3cf24e1c33",class:c({align:"default"===this.variant?this.align:"center",contentPosition:this.contentPosition})},a("div",{key:"199eb6369e37094d21e6bc5f74facee3a8d5b6ac",class:d({align:this.align,direction:this.direction,active:n(this.active),finished:n(this.finished),variant:this.variant})},"icon"===this.variant&&(this.icon||this.finished)?a("p-icon",{variant:this.finished?"checkmark":this.icon}):this.number),a("div",{key:"7b5349a6e9719c14f57834909912587202c6725b",class:l({active:n(this.active),finished:n(this.finished),direction:this.direction,variant:this.variant})},a("slot",{key:"5a7ed0fa8acc0af1bf53f0c935c2b114a8efefc7"}))))}static get style(){return"*{box-sizing:border-box}.static{position:static}.mb-5{margin-bottom:1.25rem}.mt-5{margin-top:1.25rem}.mt-\\[1px\\]{margin-top:1px}.flex{display:flex}.hidden{display:none}.size-6{height:1.5rem;width:1.5rem}.size-8{height:2rem;width:2rem}.flex-1{flex:1 1 0%}.flex-row-reverse{flex-direction:row-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-solid{border-style:solid}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(82 138 250/var(--tw-border-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.text-center{text-align:center}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}@media (min-width:64rem){.desktop-xs\\:inline-block{display:inline-block}}.dark\\:border-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-white\\/15:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[769,"p-stepper-item",{number:[2],icon:[1],direction:[1],variant:[1],align:[1],contentPosition:[1,"content-position"],finished:[4],active:[4]}]);function m(){"undefined"!=typeof customElements&&["p-stepper-item","p-icon"].forEach((e=>{switch(e){case"p-stepper-item":customElements.get(t(e))||customElements.define(t(e),h);break;case"p-icon":customElements.get(t(e))||s()}}))}m();export{h as S,m as d}
1
+ import{t,p as e,H as i,h as a}from"./p-CySg37XO.js";import{c as r}from"./p-CBWjHURv.js";import{T as o}from"./p-Au2WuEGF.js";import{a as n}from"./p-C5CTp9IA.js";import{d as s}from"./p-gEaqH36V.js";const d=r("flex gap-2",{variants:{align:{start:"items-start",center:"items-center",end:"items-end"},contentPosition:{start:"flex-row-reverse",end:null}}}),c=r(["flex items-center justify-center","text-center text-sm font-medium","rounded-full"],{variants:{align:{start:null,center:null,end:null},direction:{horizontal:null,vertical:null},finished:{true:null,false:null},active:{true:null,false:null},variant:{default:["size-6","border border-solid"],icon:"size-8"}},compoundVariants:[{finished:!1,active:!1,variant:"default",class:["border-indigo-600 bg-indigo-50 text-indigo-600","dark:border-white/15 dark:bg-white/15 dark:text-hurricane-200"]},{active:!0,finished:!1,variant:"default",class:"border-indigo-600 bg-indigo-600 text-white"},{active:!1,finished:!0,variant:"default",class:"border-indigo-600 bg-indigo-600 text-white"},{finished:!1,active:!1,variant:"icon",class:["bg-indigo-100 text-storm-200","dark:bg-white/15 dark:text-hurricane-200"]},{active:!0,finished:!1,variant:"icon",class:"bg-indigo-500 text-storm-500"},{active:!1,finished:!0,variant:"icon",class:"bg-indigo-100 text-indigo-600"},{direction:"vertical",align:"start",class:"mt-5"},{direction:"vertical",align:"end",class:"mb-5"}]}),l=r("mt-[1px] flex-1 text-sm",{variants:{finished:{true:null,false:null},active:{true:null,false:null},direction:{horizontal:null,vertical:null},variant:{default:"font-medium",icon:"font-semibold"}},compoundVariants:[{finished:!1,active:!1,variant:"default",class:"\n text-storm-400\n dark:text-hurricane-200\n "},{active:!0,finished:!1,variant:"default",class:"\n text-storm-500\n dark:text-white\n "},{active:!1,finished:!0,variant:"default",class:"\n text-storm-500\n dark:text-white\n "},{active:!1,variant:"icon",class:"\n text-storm-300\n dark:text-hurricane-200\n "},{active:!0,variant:"icon",class:"\n text-storm-500\n dark:text-white\n "},{direction:"horizontal",active:!1,class:"\n hidden\n desktop-xs:inline-block\n "}]}),h=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}number=1;icon;direction="horizontal";variant="default";align="center";contentPosition="end";finished=!1;active=!1;render(){return a(o,{key:"f6e0975e555482bb9d7084a04a1d3543a14506c0"},a("div",{key:"83a55a58b2e4cd7654e548a83ee460022076fadd",class:d({align:"default"===this.variant?this.align:"center",contentPosition:this.contentPosition})},a("div",{key:"c4ed8f04cc1543139095c8b5d8df396a4d574be9",class:c({align:this.align,direction:this.direction,active:n(this.active),finished:n(this.finished),variant:this.variant})},"icon"===this.variant&&(this.icon||this.finished)?a("p-icon",{variant:this.finished?"checkmark":this.icon}):this.number),a("div",{key:"6836d3a6900c78d9e398cf54cc90ec9c55e97fa3",class:l({active:n(this.active),finished:n(this.finished),direction:this.direction,variant:this.variant})},a("slot",{key:"34598e124bef3de28a393513adb936e0fc1aba84"}))))}static get style(){return"*{box-sizing:border-box}.static{position:static}.mb-5{margin-bottom:1.25rem}.mt-5{margin-top:1.25rem}.mt-\\[1px\\]{margin-top:1px}.flex{display:flex}.hidden{display:none}.size-6{height:1.5rem;width:1.5rem}.size-8{height:2rem;width:2rem}.flex-1{flex:1 1 0%}.flex-row-reverse{flex-direction:row-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-solid{border-style:solid}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(82 138 250/var(--tw-border-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.text-center{text-align:center}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}@media (min-width:64rem){.desktop-xs\\:inline-block{display:inline-block}}.dark\\:border-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-white\\/15:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[769,"p-stepper-item",{number:[2],icon:[1],direction:[1],variant:[1],align:[1],contentPosition:[1,"content-position"],finished:[4],active:[4]}]);function m(){"undefined"!=typeof customElements&&["p-stepper-item","p-icon"].forEach((e=>{switch(e){case"p-stepper-item":customElements.get(t(e))||customElements.define(t(e),h);break;case"p-icon":customElements.get(t(e))||s()}}))}m();export{h as S,m as d}
@@ -1 +1 @@
1
- import{t,p as e,H as o,c as a,h as i}from"./p-CySg37XO.js";import{c as n}from"./p-CBWjHURv.js";import{T as s}from"./p-Au2WuEGF.js";import{a as r}from"./p-C5CTp9IA.js";import{d as c}from"./p-D5OXFgvY.js";import{d as m}from"./p-BmhVEljv.js";import{d as l}from"./p-1qs8jjR4.js";import{d as p}from"./p-D8faiybE.js";const d=n(["flex w-full max-w-[20rem] flex-col items-center justify-start"],{variants:{enableAction:{true:"cursor-pointer",false:null}}}),h=e(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.action=a(this,"action",3)}illustration;header;content;enableAction=!0;actionText;actionVariant="secondary";actionIcon;actionIconPosition="start";actionLoading=!1;action;get _el(){return this}render(){const t=!!this._el.querySelector(':scope > [slot="header"]'),e=!!this._el.querySelector(':scope > [slot="content"]'),o=!!this._el.querySelector(':scope > [slot="action"]');return i(s,{key:"1ee5241659e6ee9a39f0d3f641374b3fa9d7d713"},i("div",{key:"2a170cfa8265e140da60465554908925a9a7b30c",class:d({enableAction:r(this.enableAction,!0)}),onClick:t=>this.enableAction&&!this.actionLoading?this.action.emit(t):void 0},this.illustration&&i("p-illustration",{key:"d843ed25df3ad3aee82b568419b553272df82155",class:"mb-8 text-5xl text-indigo-600",variant:this.illustration}),t?i("slot",{name:"header"}):this.header?.length&&i("p",{class:"\n my-0 text-center font-ambit text-sm font-bold text-storm-500\n dark:text-white\n "},this.header),e?i("slot",{name:"content"}):this.content?.length&&i("p",{class:"\n my-0 text-center text-sm font-normal text-storm-300\n dark:text-hurricane-200\n "},this.content),this.enableAction&&(o?i("slot",{name:"action"}):i("p-button",{class:"mt-4",icon:this.actionIcon,iconPosition:this.actionIconPosition,loading:this.actionLoading,variant:this.actionVariant},this.actionText))))}static get style(){return'*{box-sizing:border-box}p-divider{--tw-content:""}.static{position:static}.my-0{margin-bottom:0;margin-top:0}.mb-8{margin-bottom:2rem}.mt-4{margin-top:1rem}.flex{display:flex}.w-full{width:100%}.max-w-\\[20rem\\]{max-width:20rem}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.text-center{text-align:center}.font-ambit{font-family:Ambit,sans-serif}.text-5xl{font-size:3rem;line-height:1}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}'}},[769,"p-empty-state",{illustration:[1],header:[1],content:[1],enableAction:[4,"enable-action"],actionText:[1,"action-text"],actionVariant:[1,"action-variant"],actionIcon:[1,"action-icon"],actionIconPosition:[1,"action-icon-position"],actionLoading:[4,"action-loading"]}]);function x(){"undefined"!=typeof customElements&&["p-empty-state","p-button","p-icon","p-illustration","p-loader"].forEach((e=>{switch(e){case"p-empty-state":customElements.get(t(e))||customElements.define(t(e),h);break;case"p-button":customElements.get(t(e))||c();break;case"p-icon":customElements.get(t(e))||m();break;case"p-illustration":customElements.get(t(e))||l();break;case"p-loader":customElements.get(t(e))||p()}}))}x();export{h as E,x as d}
1
+ import{t,p as e,H as o,c as a,h as i}from"./p-CySg37XO.js";import{c as n}from"./p-CBWjHURv.js";import{T as s}from"./p-Au2WuEGF.js";import{a as r}from"./p-C5CTp9IA.js";import{d as c}from"./p-DHKJDm0J.js";import{d as m}from"./p-gEaqH36V.js";import{d as l}from"./p-V1uzM_gT.js";import{d as p}from"./p-D8faiybE.js";const d=n(["flex w-full max-w-[20rem] flex-col items-center justify-start"],{variants:{enableAction:{true:"cursor-pointer",false:null}}}),h=e(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.action=a(this,"action",3)}illustration;header;content;enableAction=!0;actionText;actionVariant="secondary";actionIcon;actionIconPosition="start";actionLoading=!1;action;get _el(){return this}render(){const t=!!this._el.querySelector(':scope > [slot="header"]'),e=!!this._el.querySelector(':scope > [slot="content"]'),o=!!this._el.querySelector(':scope > [slot="action"]');return i(s,{key:"d84ee5a8579403223bb5cfe7bdec07866b47f8ff"},i("div",{key:"d973a6e27f7e87f162b01f5f8762fd5a3e421f7b",class:d({enableAction:r(this.enableAction,!0)}),onClick:t=>this.enableAction&&!this.actionLoading?this.action.emit(t):void 0},this.illustration&&i("p-illustration",{key:"1fabcdf5a64f7162d0485665c273b3bacc6a7a4e",class:"mb-8 text-5xl text-indigo-600",variant:this.illustration}),t?i("slot",{name:"header"}):this.header?.length&&i("p",{class:"\n my-0 text-center font-ambit text-sm font-bold text-storm-500\n dark:text-white\n "},this.header),e?i("slot",{name:"content"}):this.content?.length&&i("p",{class:"\n my-0 text-center text-sm font-normal text-storm-300\n dark:text-hurricane-200\n "},this.content),this.enableAction&&(o?i("slot",{name:"action"}):i("p-button",{class:"mt-4",icon:this.actionIcon,iconPosition:this.actionIconPosition,loading:this.actionLoading,variant:this.actionVariant},this.actionText))))}static get style(){return'*{box-sizing:border-box}p-divider{--tw-content:""}.static{position:static}.my-0{margin-bottom:0;margin-top:0}.mb-8{margin-bottom:2rem}.mt-4{margin-top:1rem}.flex{display:flex}.w-full{width:100%}.max-w-\\[20rem\\]{max-width:20rem}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.text-center{text-align:center}.font-ambit{font-family:Ambit,sans-serif}.text-5xl{font-size:3rem;line-height:1}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}'}},[769,"p-empty-state",{illustration:[1],header:[1],content:[1],enableAction:[4,"enable-action"],actionText:[1,"action-text"],actionVariant:[1,"action-variant"],actionIcon:[1,"action-icon"],actionIconPosition:[1,"action-icon-position"],actionLoading:[4,"action-loading"]}]);function x(){"undefined"!=typeof customElements&&["p-empty-state","p-button","p-icon","p-illustration","p-loader"].forEach((e=>{switch(e){case"p-empty-state":customElements.get(t(e))||customElements.define(t(e),h);break;case"p-button":customElements.get(t(e))||c();break;case"p-icon":customElements.get(t(e))||m();break;case"p-illustration":customElements.get(t(e))||l();break;case"p-loader":customElements.get(t(e))||p()}}))}x();export{h as E,x as d}