@paperless/core 2.22.0-alpha.24 → 2.22.0-alpha.25

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 (569) hide show
  1. package/dist/build/index.esm.js +1 -1
  2. package/dist/build/p-0305046c.entry.js +1 -0
  3. package/dist/build/{p-37b27bb1.entry.js → p-0898e57b.entry.js} +1 -1
  4. package/dist/build/p-099a4c60.entry.js +1 -0
  5. package/dist/build/{p-4fde72a3.entry.js → p-0c094c99.entry.js} +1 -1
  6. package/dist/build/{p-3cea628d.entry.js → p-0eb7a6e4.entry.js} +1 -1
  7. package/dist/build/p-14a2caa3.entry.js +1 -0
  8. package/dist/build/{p-1b31b10f.entry.js → p-1ce28114.entry.js} +1 -1
  9. package/dist/build/p-2509308d.entry.js +1 -0
  10. package/dist/{paperless/p-0cd95c45.entry.js → build/p-389f92f8.entry.js} +1 -1
  11. package/dist/{paperless/p-71991854.entry.js → build/p-400ae3ad.entry.js} +1 -1
  12. package/dist/{paperless/p-63846f0b.entry.js → build/p-4793863e.entry.js} +1 -1
  13. package/dist/build/{p-8679628b.entry.js → p-4ad6dd58.entry.js} +1 -1
  14. package/dist/build/p-4d456377.entry.js +1 -0
  15. package/dist/build/{p-6084ee30.entry.js → p-4f068009.entry.js} +1 -1
  16. package/dist/build/p-6115ce1e.js +1 -0
  17. package/dist/{paperless/p-39e82216.entry.js → build/p-62c4c7d7.entry.js} +1 -1
  18. package/dist/build/p-6ff8d21c.entry.js +1 -0
  19. package/dist/build/{p-e9b9b751.entry.js → p-7ae963de.entry.js} +1 -1
  20. package/dist/build/p-846f47bd.entry.js +1 -0
  21. package/dist/build/{p-85fa7375.entry.js → p-870a63fb.entry.js} +1 -1
  22. package/dist/build/p-8bd7c93a.entry.js +1 -0
  23. package/dist/build/{p-0ff1c650.entry.js → p-8d0c1f36.entry.js} +1 -1
  24. package/dist/build/{p-c0cec615.entry.js → p-8ed529ba.entry.js} +1 -1
  25. package/dist/build/{p-f71f2778.entry.js → p-92bbdecc.entry.js} +1 -1
  26. package/dist/build/{p-ffcdc88a.entry.js → p-93bbde98.entry.js} +1 -1
  27. package/dist/{paperless/p-a5abda38.entry.js → build/p-958c8a2c.entry.js} +1 -1
  28. package/dist/build/{p-90cd1752.entry.js → p-9a49375d.entry.js} +1 -1
  29. package/dist/build/{p-CrdJDtHg.js → p-CLLU0oUD.js} +1 -1
  30. package/dist/build/p-CWO2YJCh.js +1 -0
  31. package/dist/build/p-CXVK8SLW.js +1 -0
  32. package/dist/build/p-CwQG70_4.js +1 -0
  33. package/dist/build/{p-BTx_Jfhh.js → p-DE-sstf_.js} +1 -1
  34. package/dist/build/p-DPc49L2n.js +1 -0
  35. package/dist/{paperless/p-42d1ea4a.entry.js → build/p-a23a90d6.entry.js} +1 -1
  36. package/dist/build/{p-73bf8fe0.entry.js → p-a4109895.entry.js} +1 -1
  37. package/dist/build/p-ad468b70.entry.js +1 -0
  38. package/dist/build/p-af320255.entry.js +1 -0
  39. package/dist/build/p-b2248597.entry.js +1 -0
  40. package/dist/build/{p-27b9a71a.entry.js → p-b37d0053.entry.js} +1 -1
  41. package/dist/{paperless/p-50ce7b68.entry.js → build/p-bfb06294.entry.js} +1 -1
  42. package/dist/{paperless/p-da8d3052.entry.js → build/p-c7835f10.entry.js} +1 -1
  43. package/dist/build/{p-588360e0.entry.js → p-cfe81f27.entry.js} +1 -1
  44. package/dist/{paperless/p-4874c70c.entry.js → build/p-d0d0a314.entry.js} +1 -1
  45. package/dist/build/p-d38642c4.entry.js +1 -0
  46. package/dist/build/p-e30abf73.entry.js +1 -0
  47. package/dist/build/{p-cacd9fe0.entry.js → p-e6222abf.entry.js} +1 -1
  48. package/dist/build/p-e9d2bdd6.entry.js +1 -0
  49. package/dist/build/{p-fe72512a.entry.js → p-f1f160c0.entry.js} +1 -1
  50. package/dist/build/{p-0302637f.entry.js → p-f3daeb8f.entry.js} +1 -1
  51. package/dist/build/{p-fc0df371.entry.js → p-f8d8d142.entry.js} +1 -1
  52. package/dist/build/p-f9c9004b.entry.js +1 -0
  53. package/dist/build/paperless.esm.js +1 -1
  54. package/dist/cjs/{child-of-CdM-uMiH.js → child-of-CvEcBEYZ.js} +1 -3
  55. package/dist/cjs/index-CEv7WAQX.js +0 -4
  56. package/dist/cjs/index.cjs.js +486 -491
  57. package/dist/cjs/is-mobile-browser-CscfWENw.js +17 -0
  58. package/dist/cjs/loader.cjs.js +1 -1
  59. package/dist/cjs/{localization-CGd_fklS.js → localization-CTvpcGDo.js} +15 -20
  60. package/dist/cjs/object-get-by-path-CxU4WbZu.js +14 -0
  61. package/dist/cjs/p-accordion.cjs.entry.js +3 -3
  62. package/dist/cjs/p-attachment.cjs.entry.js +8 -8
  63. package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
  64. package/dist/cjs/p-avatar.cjs.entry.js +1 -1
  65. package/dist/cjs/p-backdrop.cjs.entry.js +4 -4
  66. package/dist/cjs/p-badge_3.cjs.entry.js +6 -6
  67. package/dist/cjs/p-button-group.cjs.entry.js +4 -2
  68. package/dist/cjs/p-button_3.cjs.entry.js +11 -9
  69. package/dist/cjs/p-calendar.cjs.entry.js +16 -16
  70. package/dist/cjs/p-card-body.cjs.entry.js +2 -2
  71. package/dist/cjs/p-card-container.cjs.entry.js +3 -3
  72. package/dist/cjs/p-card-header.cjs.entry.js +4 -4
  73. package/dist/cjs/p-checkbox_3.cjs.entry.js +28 -28
  74. package/dist/cjs/p-content-slider.cjs.entry.js +7 -7
  75. package/dist/cjs/p-cropper.cjs.entry.js +2 -2801
  76. package/dist/cjs/p-datepicker.cjs.entry.js +7 -7
  77. package/dist/cjs/p-divider.cjs.entry.js +3 -3
  78. package/dist/cjs/p-drawer-body_3.cjs.entry.js +5 -5
  79. package/dist/cjs/p-drawer.cjs.entry.js +4 -6
  80. package/dist/cjs/p-dropdown-menu-item_2.cjs.entry.js +7 -7
  81. package/dist/cjs/p-empty-state_8.cjs.entry.js +56 -57
  82. package/dist/cjs/p-field_3.cjs.entry.js +15 -15
  83. package/dist/cjs/p-floating-menu-item.cjs.entry.js +3 -3
  84. package/dist/cjs/p-iban-icon.cjs.entry.js +16 -8
  85. package/dist/cjs/p-illustration.cjs.entry.js +19 -19
  86. package/dist/cjs/p-info-panel.cjs.entry.js +3 -3
  87. package/dist/cjs/p-label.cjs.entry.js +4 -4
  88. package/dist/cjs/p-listing-item.cjs.entry.js +2 -2
  89. package/dist/cjs/p-listing-line.cjs.entry.js +2 -2
  90. package/dist/cjs/p-listing.cjs.entry.js +2 -2
  91. package/dist/cjs/p-modal-body_4.cjs.entry.js +7 -7
  92. package/dist/cjs/p-navbar.cjs.entry.js +2 -2
  93. package/dist/cjs/p-navigation-item.cjs.entry.js +4 -4
  94. package/dist/cjs/p-navigation-section.cjs.entry.js +2 -2
  95. package/dist/cjs/p-navigation-title.cjs.entry.js +2 -2
  96. package/dist/cjs/p-pagination_3.cjs.entry.js +22 -22
  97. package/dist/cjs/p-profile.cjs.entry.js +2 -2
  98. package/dist/cjs/p-radio.cjs.entry.js +4 -4
  99. package/dist/cjs/p-range.cjs.entry.js +5 -5
  100. package/dist/cjs/p-select.cjs.entry.js +12 -12
  101. package/dist/cjs/p-stepper-item_2.cjs.entry.js +6 -6
  102. package/dist/cjs/p-tab-item.cjs.entry.js +2 -2
  103. package/dist/cjs/p-table-extra-header.cjs.entry.js +2 -2
  104. package/dist/cjs/p-table.cjs.entry.js +20 -25
  105. package/dist/cjs/p-toast.cjs.entry.js +2 -2
  106. package/dist/cjs/p-toggle.cjs.entry.js +1 -1
  107. package/dist/cjs/p-tooltip.cjs.entry.js +10 -10
  108. package/dist/cjs/paperless.cjs.js +1 -1
  109. package/dist/cjs/{screens-h1MTJhCu.js → screens-AithmFZ8.js} +3 -5
  110. package/dist/cjs/{table-helpers-DlLLYa6C.js → table-helpers-CWMTGgj6.js} +3 -2
  111. package/dist/cjs/{themed-host.component-_iELkx_M.js → themed-host.component-3UWKsF6_.js} +1 -3
  112. package/dist/collection/collection-manifest.json +2 -3
  113. package/dist/collection/components/atoms/avatar/avatar/avatar.component.js +1 -1
  114. package/dist/collection/components/atoms/avatar/avatar-group/avatar-group.component.js +1 -1
  115. package/dist/collection/components/atoms/backdrop/backdrop.component.js +4 -4
  116. package/dist/collection/components/atoms/badge/badge.component.js +1 -1
  117. package/dist/collection/components/atoms/card/body/card-body.component.js +1 -1
  118. package/dist/collection/components/atoms/card/container/card-container.component.js +3 -3
  119. package/dist/collection/components/atoms/card/header/card-header.component.js +8 -8
  120. package/dist/collection/components/atoms/checkbox/checkbox.component.js +5 -5
  121. package/dist/collection/components/atoms/divider/divider.component.js +2 -2
  122. package/dist/collection/components/atoms/drawer/body/drawer-body.component.js +1 -1
  123. package/dist/collection/components/atoms/drawer/container/drawer-container.component.js +3 -3
  124. package/dist/collection/components/atoms/drawer/header/drawer-header.component.js +1 -1
  125. package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.js +4 -4
  126. package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +7 -7
  127. package/dist/collection/components/atoms/floating-menu/container/floating-menu-container.component.js +2 -2
  128. package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +6 -6
  129. package/dist/collection/components/atoms/helper/helper.component.js +1 -1
  130. package/dist/collection/components/atoms/iban-icon/iban-icon.component.js +16 -8
  131. package/dist/collection/components/atoms/icon/icon.component.js +9 -7
  132. package/dist/collection/components/atoms/illustration/illustration.component.js +7 -6
  133. package/dist/collection/components/atoms/info-panel/info-panel.component.js +2 -2
  134. package/dist/collection/components/atoms/listing/item/listing-item.component.js +3 -3
  135. package/dist/collection/components/atoms/listing/line/listing-line.component.js +1 -1
  136. package/dist/collection/components/atoms/modal/body/modal-body.component.js +2 -2
  137. package/dist/collection/components/atoms/modal/container/modal-container.component.js +3 -3
  138. package/dist/collection/components/atoms/modal/footer/modal-footer.component.js +1 -1
  139. package/dist/collection/components/atoms/modal/header/modal-header.component.js +1 -1
  140. package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
  141. package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.js +3 -3
  142. package/dist/collection/components/atoms/radio/radio.component.js +4 -4
  143. package/dist/collection/components/atoms/segment/container/segment-container.component.js +1 -1
  144. package/dist/collection/components/atoms/segment/item/segment-item.component.js +8 -8
  145. package/dist/collection/components/atoms/stepper/item/stepper-item.component.js +5 -5
  146. package/dist/collection/components/atoms/stepper/line/stepper-line.component.js +1 -1
  147. package/dist/collection/components/atoms/tab/item/tab-item.component.js +1 -1
  148. package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +3 -3
  149. package/dist/collection/components/atoms/tooltip/tooltip.component.js +9 -9
  150. package/dist/collection/components/helpers/table/extra-header/table-extra-header.component.js +7 -7
  151. package/dist/collection/components/helpers/table/row-action/table-row-action.component.js +4 -4
  152. package/dist/collection/components/molecules/accordion/accordion.component.js +2 -2
  153. package/dist/collection/components/molecules/attachment/attachment.component.js +8 -8
  154. package/dist/collection/components/molecules/button/button.component.js +12 -10
  155. package/dist/collection/components/molecules/button-group/button-group.component.js +4 -2
  156. package/dist/collection/components/molecules/calendar/calendar.component.js +19 -19
  157. package/dist/collection/components/molecules/content-slider/content-slider.component.js +7 -7
  158. package/dist/collection/components/molecules/cropper/cropper.component.js +1 -2
  159. package/dist/collection/components/molecules/datepicker/datepicker.component.js +7 -11
  160. package/dist/collection/components/molecules/dropdown/dropdown.component.js +20 -20
  161. package/dist/collection/components/molecules/empty-state/empty-state.component.js +9 -9
  162. package/dist/collection/components/molecules/field/container/field-container.component.js +9 -9
  163. package/dist/collection/components/molecules/field/field/field.component.js +8 -8
  164. package/dist/collection/components/molecules/label/label.component.js +8 -8
  165. package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +5 -5
  166. package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
  167. package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +12 -12
  168. package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
  169. package/dist/collection/components/molecules/pagination/size/pagination-size.component.js +4 -4
  170. package/dist/collection/components/molecules/profile/profile.component.js +1 -1
  171. package/dist/collection/components/molecules/range/range.component.js +4 -4
  172. package/dist/collection/components/molecules/select/select.component.js +15 -15
  173. package/dist/collection/components/molecules/table/cell/table-cell.component.js +4 -4
  174. package/dist/collection/components/molecules/table/footer/table-footer.component.js +4 -4
  175. package/dist/collection/components/molecules/table/header/table-header.component.js +9 -10
  176. package/dist/collection/components/molecules/table/row/table-row.component.js +35 -35
  177. package/dist/collection/components/molecules/toast/toast.component.js +5 -5
  178. package/dist/collection/components/organisms/drawer/drawer.component.js +5 -7
  179. package/dist/collection/components/organisms/listing/listing.component.js +2 -2
  180. package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
  181. package/dist/collection/components/organisms/table/table.component.js +19 -24
  182. package/dist/collection/internal/themed-host.component.js +1 -3
  183. package/dist/collection/tailwind/paperless.js +5 -10
  184. package/dist/collection/tailwind/plugins/safe-area.js +0 -1
  185. package/dist/collection/tailwind.config.js +3 -1
  186. package/dist/collection/types/icon.js +1 -0
  187. package/dist/collection/types/illustration.js +1 -0
  188. package/dist/collection/types/index.js +2 -0
  189. package/dist/collection/utils/child-of.js +1 -3
  190. package/dist/collection/utils/icons.js +10 -10
  191. package/dist/collection/utils/illustrations.js +1 -1
  192. package/dist/collection/utils/index.js +0 -1
  193. package/dist/collection/utils/is-mobile-browser.js +2 -2
  194. package/dist/collection/utils/localization.js +15 -20
  195. package/dist/collection/utils/object-get-by-path.js +6 -4
  196. package/dist/collection/utils/screens.js +3 -5
  197. package/dist/collection/utils/table-helpers.js +3 -2
  198. package/dist/collection/utils/transformers.js +4 -4
  199. package/dist/components/index.js +1 -1
  200. package/dist/components/{p-DkVPZZHO.js → p-7Qldd8fE.js} +1 -1
  201. package/dist/components/{p-B_IuCmIa.js → p-B1MbDi-e.js} +1 -1
  202. package/dist/components/{p--Ty9opX6.js → p-BB7bmhRo.js} +1 -1
  203. package/dist/components/{p-CXQve1d1.js → p-BDDlblTI.js} +1 -1
  204. package/dist/components/{p-BFhNsUf5.js → p-BQIf6SbI.js} +1 -1
  205. package/dist/components/{p-Dg1-sR-k.js → p-BhnSWAm_.js} +1 -1
  206. package/dist/components/{p-Cu1DdpL1.js → p-BnyCseIX.js} +1 -1
  207. package/dist/components/{p-dcQaxaLO.js → p-BpnNRSNN.js} +1 -1
  208. package/dist/components/{p-DimI4bGI.js → p-BtLNLU5M.js} +1 -1
  209. package/dist/components/{p-DxO1Iohr.js → p-Bte1XwqA.js} +1 -1
  210. package/dist/components/p-BtiXtaPx.js +1 -0
  211. package/dist/components/{p-Ci6dVRRb.js → p-Bylx-B13.js} +1 -1
  212. package/dist/components/{p-ClEzqSGY.js → p-Bzccvp_O.js} +1 -1
  213. package/dist/components/p-C8Vq1N_0.js +1 -0
  214. package/dist/components/{p-twaFgOgz.js → p-C9Qej_kA.js} +1 -1
  215. package/dist/components/p-CEFaN18s.js +1 -0
  216. package/dist/components/{p-BkR7Q669.js → p-CJKObZ8L.js} +1 -1
  217. package/dist/components/{p-CC9NuAjl.js → p-CLXB3_-L.js} +1 -1
  218. package/dist/components/{p-C12vK-lE.js → p-CUmhErgX.js} +1 -1
  219. package/dist/components/p-CUqoOemU.js +1 -0
  220. package/dist/components/p-CWO2YJCh.js +1 -0
  221. package/dist/components/{p-CXK3XHq7.js → p-CX1ewbW4.js} +1 -1
  222. package/dist/components/p-CXVK8SLW.js +1 -0
  223. package/dist/components/{p-CQmBWqSs.js → p-CZlpdpMV.js} +1 -1
  224. package/dist/components/{p-YgJHDU9e.js → p-C_DONK31.js} +1 -1
  225. package/dist/components/{p-BM-q6wR6.js → p-CdNBlyaj.js} +1 -1
  226. package/dist/components/{p-Dkpzyp0v.js → p-ChrB-4co.js} +1 -1
  227. package/dist/components/{p-IEo0WRRo.js → p-Cop5m_ZM.js} +1 -1
  228. package/dist/components/p-Cq9Ck17A.js +1 -0
  229. package/dist/components/{p-cCrFaGl7.js → p-Ctox8Lg6.js} +1 -1
  230. package/dist/components/p-CwQG70_4.js +1 -0
  231. package/dist/components/p-D25uRUSS.js +1 -0
  232. package/dist/components/{p-DhdQKtm3.js → p-D29Sbsl9.js} +1 -1
  233. package/dist/components/p-D5wfsq08.js +1 -0
  234. package/dist/components/{p-ogrtZyO_.js → p-DAKk3DP1.js} +1 -1
  235. package/dist/components/{p-DxjOeZfz.js → p-DAb-3URQ.js} +1 -1
  236. package/dist/components/p-DPc49L2n.js +1 -0
  237. package/dist/components/{p-IaMFQebP.js → p-DfnFrfyL.js} +1 -1
  238. package/dist/components/p-DmzXDHw8.js +1 -0
  239. package/dist/components/{p-t3N4bS8X.js → p-Dolot2T0.js} +1 -1
  240. package/dist/components/{p-Cokzwe6N.js → p-Dw6QWvDh.js} +1 -1
  241. package/dist/components/{p-DNqCEr-g.js → p-I0RMpdxn.js} +1 -1
  242. package/dist/components/p-LNjvz3Yz.js +1 -0
  243. package/dist/components/p-YBYXO3s0.js +1 -0
  244. package/dist/components/p-accordion.js +1 -1
  245. package/dist/components/p-attachment.js +1 -1
  246. package/dist/components/p-avatar-group.js +1 -1
  247. package/dist/components/p-avatar.js +1 -1
  248. package/dist/components/p-backdrop.js +1 -1
  249. package/dist/components/p-badge.js +1 -1
  250. package/dist/components/p-button-group.js +1 -1
  251. package/dist/components/p-button.js +1 -1
  252. package/dist/components/p-calendar.js +1 -1
  253. package/dist/components/p-card-body.js +1 -1
  254. package/dist/components/p-card-container.js +1 -1
  255. package/dist/components/p-card-header.js +1 -1
  256. package/dist/components/p-checkbox.js +1 -1
  257. package/dist/components/p-content-slider.js +1 -1
  258. package/dist/components/p-cropper.js +1 -3
  259. package/dist/components/p-datepicker.js +1 -1
  260. package/dist/components/p-divider.js +1 -1
  261. package/dist/components/p-drawer-body.js +1 -1
  262. package/dist/components/p-drawer-container.js +1 -1
  263. package/dist/components/p-drawer-header.js +1 -1
  264. package/dist/components/p-drawer.js +1 -1
  265. package/dist/components/p-dropdown-menu-container.js +1 -1
  266. package/dist/components/p-dropdown-menu-item.js +1 -1
  267. package/dist/components/p-dropdown.js +1 -1
  268. package/dist/components/p-empty-state.js +1 -1
  269. package/dist/components/{p-DQ6XnmSU.js → p-f2XeK6vS.js} +1 -1
  270. package/dist/components/p-field-container.js +1 -1
  271. package/dist/components/p-field.js +1 -1
  272. package/dist/components/p-floating-menu-container.js +1 -1
  273. package/dist/components/p-floating-menu-item.js +1 -1
  274. package/dist/components/p-helper.js +1 -1
  275. package/dist/components/p-icon.js +1 -1
  276. package/dist/components/p-illustration.js +1 -1
  277. package/dist/components/p-info-panel.js +1 -1
  278. package/dist/components/{p-BI0xWHkS.js → p-jz4pgX_D.js} +1 -1
  279. package/dist/components/p-label.js +1 -1
  280. package/dist/components/p-listing-item.js +1 -1
  281. package/dist/components/p-listing-line.js +1 -1
  282. package/dist/components/p-listing.js +1 -1
  283. package/dist/components/p-loader.js +1 -1
  284. package/dist/components/p-modal-body.js +1 -1
  285. package/dist/components/p-modal-container.js +1 -1
  286. package/dist/components/p-modal-footer.js +1 -1
  287. package/dist/components/p-modal-header.js +1 -1
  288. package/dist/components/p-modal.js +1 -1
  289. package/dist/components/p-navbar.js +1 -1
  290. package/dist/components/p-navigation-item.js +1 -1
  291. package/dist/components/p-navigation-section.js +1 -1
  292. package/dist/components/p-navigation-title.js +1 -1
  293. package/dist/components/p-pagination-pages-item.js +1 -1
  294. package/dist/components/p-pagination-pages.js +1 -1
  295. package/dist/components/p-pagination-size.js +1 -1
  296. package/dist/components/p-pagination.js +1 -1
  297. package/dist/components/p-profile.js +1 -1
  298. package/dist/components/p-radio.js +1 -1
  299. package/dist/components/p-range.js +1 -1
  300. package/dist/components/p-segment-container.js +1 -1
  301. package/dist/components/p-segment-item.js +1 -1
  302. package/dist/components/p-select.js +1 -1
  303. package/dist/components/p-stepper-item.js +1 -1
  304. package/dist/components/p-stepper-line.js +1 -1
  305. package/dist/components/p-stepper.js +1 -1
  306. package/dist/components/p-tab-container.js +1 -1
  307. package/dist/components/p-tab-item.js +1 -1
  308. package/dist/components/p-table-cell.js +1 -1
  309. package/dist/components/p-table-footer.js +1 -1
  310. package/dist/components/p-table-header.js +1 -1
  311. package/dist/components/p-table-row-actions-container.js +1 -1
  312. package/dist/components/p-table-row.js +1 -1
  313. package/dist/components/p-table.js +1 -1
  314. package/dist/components/p-toast.js +1 -1
  315. package/dist/components/p-toggle.js +1 -1
  316. package/dist/components/p-tooltip.js +1 -1
  317. package/dist/components/{p-CyGCrWD3.js → p-u1RuzYH-.js} +1 -1
  318. package/dist/components/p-xlO2hePk.js +1 -0
  319. package/dist/esm/{child-of-BFSNj6hu.js → child-of-TyZ7uPES.js} +1 -3
  320. package/dist/esm/index-PW1zQoNr.js +0 -4
  321. package/dist/esm/index.js +487 -492
  322. package/dist/esm/is-mobile-browser-DPc49L2n.js +15 -0
  323. package/dist/esm/loader.js +1 -1
  324. package/dist/esm/{localization-DiJj8rmO.js → localization-CwQG70_4.js} +15 -20
  325. package/dist/esm/object-get-by-path-CLLU0oUD.js +12 -0
  326. package/dist/esm/p-accordion.entry.js +3 -3
  327. package/dist/esm/p-attachment.entry.js +8 -8
  328. package/dist/esm/p-avatar-group.entry.js +1 -1
  329. package/dist/esm/p-avatar.entry.js +1 -1
  330. package/dist/esm/p-backdrop.entry.js +4 -4
  331. package/dist/esm/p-badge_3.entry.js +6 -6
  332. package/dist/esm/p-button-group.entry.js +4 -2
  333. package/dist/esm/p-button_3.entry.js +11 -9
  334. package/dist/esm/p-calendar.entry.js +16 -16
  335. package/dist/esm/p-card-body.entry.js +2 -2
  336. package/dist/esm/p-card-container.entry.js +3 -3
  337. package/dist/esm/p-card-header.entry.js +4 -4
  338. package/dist/esm/p-checkbox_3.entry.js +28 -28
  339. package/dist/esm/p-content-slider.entry.js +7 -7
  340. package/dist/esm/p-cropper.entry.js +2 -2801
  341. package/dist/esm/p-datepicker.entry.js +7 -7
  342. package/dist/esm/p-divider.entry.js +3 -3
  343. package/dist/esm/p-drawer-body_3.entry.js +5 -5
  344. package/dist/esm/p-drawer.entry.js +4 -6
  345. package/dist/esm/p-dropdown-menu-item_2.entry.js +7 -7
  346. package/dist/esm/p-empty-state_8.entry.js +56 -57
  347. package/dist/esm/p-field_3.entry.js +15 -15
  348. package/dist/esm/p-floating-menu-item.entry.js +3 -3
  349. package/dist/esm/p-iban-icon.entry.js +16 -8
  350. package/dist/esm/p-illustration.entry.js +19 -19
  351. package/dist/esm/p-info-panel.entry.js +3 -3
  352. package/dist/esm/p-label.entry.js +4 -4
  353. package/dist/esm/p-listing-item.entry.js +2 -2
  354. package/dist/esm/p-listing-line.entry.js +2 -2
  355. package/dist/esm/p-listing.entry.js +2 -2
  356. package/dist/esm/p-modal-body_4.entry.js +7 -7
  357. package/dist/esm/p-navbar.entry.js +2 -2
  358. package/dist/esm/p-navigation-item.entry.js +4 -4
  359. package/dist/esm/p-navigation-section.entry.js +2 -2
  360. package/dist/esm/p-navigation-title.entry.js +2 -2
  361. package/dist/esm/p-pagination_3.entry.js +22 -22
  362. package/dist/esm/p-profile.entry.js +2 -2
  363. package/dist/esm/p-radio.entry.js +4 -4
  364. package/dist/esm/p-range.entry.js +5 -5
  365. package/dist/esm/p-select.entry.js +12 -12
  366. package/dist/esm/p-stepper-item_2.entry.js +6 -6
  367. package/dist/esm/p-tab-item.entry.js +2 -2
  368. package/dist/esm/p-table-extra-header.entry.js +2 -2
  369. package/dist/esm/p-table.entry.js +20 -25
  370. package/dist/esm/p-toast.entry.js +2 -2
  371. package/dist/esm/p-toggle.entry.js +1 -1
  372. package/dist/esm/p-tooltip.entry.js +10 -10
  373. package/dist/esm/paperless.js +1 -1
  374. package/dist/esm/{screens-B3sNjfzc.js → screens-CWO2YJCh.js} +3 -5
  375. package/dist/esm/{table-helpers-ChunMu-S.js → table-helpers-CfQnOr9V.js} +3 -2
  376. package/dist/esm/{themed-host.component-CIh9URD4.js → themed-host.component-Bc5wHkoH.js} +1 -3
  377. package/dist/index.html +1 -1
  378. package/dist/paperless/index.esm.js +1 -1
  379. package/dist/paperless/p-0305046c.entry.js +1 -0
  380. package/dist/paperless/{p-37b27bb1.entry.js → p-0898e57b.entry.js} +1 -1
  381. package/dist/paperless/p-099a4c60.entry.js +1 -0
  382. package/dist/paperless/{p-4fde72a3.entry.js → p-0c094c99.entry.js} +1 -1
  383. package/dist/paperless/{p-3cea628d.entry.js → p-0eb7a6e4.entry.js} +1 -1
  384. package/dist/paperless/p-14a2caa3.entry.js +1 -0
  385. package/dist/paperless/{p-1b31b10f.entry.js → p-1ce28114.entry.js} +1 -1
  386. package/dist/paperless/p-2509308d.entry.js +1 -0
  387. package/dist/{build/p-0cd95c45.entry.js → paperless/p-389f92f8.entry.js} +1 -1
  388. package/dist/{build/p-71991854.entry.js → paperless/p-400ae3ad.entry.js} +1 -1
  389. package/dist/{build/p-63846f0b.entry.js → paperless/p-4793863e.entry.js} +1 -1
  390. package/dist/paperless/{p-8679628b.entry.js → p-4ad6dd58.entry.js} +1 -1
  391. package/dist/paperless/p-4d456377.entry.js +1 -0
  392. package/dist/paperless/{p-6084ee30.entry.js → p-4f068009.entry.js} +1 -1
  393. package/dist/{build/p-39e82216.entry.js → paperless/p-62c4c7d7.entry.js} +1 -1
  394. package/dist/paperless/p-6ff8d21c.entry.js +1 -0
  395. package/dist/paperless/{p-e9b9b751.entry.js → p-7ae963de.entry.js} +1 -1
  396. package/dist/paperless/p-846f47bd.entry.js +1 -0
  397. package/dist/paperless/{p-85fa7375.entry.js → p-870a63fb.entry.js} +1 -1
  398. package/dist/paperless/p-8bd7c93a.entry.js +1 -0
  399. package/dist/paperless/{p-0ff1c650.entry.js → p-8d0c1f36.entry.js} +1 -1
  400. package/dist/paperless/{p-c0cec615.entry.js → p-8ed529ba.entry.js} +1 -1
  401. package/dist/paperless/{p-f71f2778.entry.js → p-92bbdecc.entry.js} +1 -1
  402. package/dist/paperless/{p-ffcdc88a.entry.js → p-93bbde98.entry.js} +1 -1
  403. package/dist/{build/p-a5abda38.entry.js → paperless/p-958c8a2c.entry.js} +1 -1
  404. package/dist/paperless/{p-90cd1752.entry.js → p-9a49375d.entry.js} +1 -1
  405. package/dist/paperless/{p-CrdJDtHg.js → p-CLLU0oUD.js} +1 -1
  406. package/dist/paperless/p-CWO2YJCh.js +1 -0
  407. package/dist/paperless/p-CXVK8SLW.js +1 -0
  408. package/dist/paperless/p-CwQG70_4.js +1 -0
  409. package/dist/paperless/{p-BTx_Jfhh.js → p-DE-sstf_.js} +1 -1
  410. package/dist/paperless/p-DPc49L2n.js +1 -0
  411. package/dist/{build/p-42d1ea4a.entry.js → paperless/p-a23a90d6.entry.js} +1 -1
  412. package/dist/paperless/{p-73bf8fe0.entry.js → p-a4109895.entry.js} +1 -1
  413. package/dist/paperless/p-ad468b70.entry.js +1 -0
  414. package/dist/paperless/p-af320255.entry.js +1 -0
  415. package/dist/paperless/p-b2248597.entry.js +1 -0
  416. package/dist/paperless/{p-27b9a71a.entry.js → p-b37d0053.entry.js} +1 -1
  417. package/dist/{build/p-50ce7b68.entry.js → paperless/p-bfb06294.entry.js} +1 -1
  418. package/dist/{build/p-da8d3052.entry.js → paperless/p-c7835f10.entry.js} +1 -1
  419. package/dist/paperless/{p-588360e0.entry.js → p-cfe81f27.entry.js} +1 -1
  420. package/dist/{build/p-4874c70c.entry.js → paperless/p-d0d0a314.entry.js} +1 -1
  421. package/dist/paperless/p-d38642c4.entry.js +1 -0
  422. package/dist/paperless/p-e30abf73.entry.js +1 -0
  423. package/dist/paperless/{p-cacd9fe0.entry.js → p-e6222abf.entry.js} +1 -1
  424. package/dist/paperless/p-e9d2bdd6.entry.js +1 -0
  425. package/dist/paperless/{p-fe72512a.entry.js → p-f1f160c0.entry.js} +1 -1
  426. package/dist/paperless/{p-0302637f.entry.js → p-f3daeb8f.entry.js} +1 -1
  427. package/dist/paperless/{p-fc0df371.entry.js → p-f8d8d142.entry.js} +1 -1
  428. package/dist/paperless/p-f9c9004b.entry.js +1 -0
  429. package/dist/paperless/paperless.esm.js +1 -1
  430. package/dist/sw.js +1 -1
  431. package/dist/sw.js.map +1 -1
  432. package/dist/tailwind/paperless.ts +5 -12
  433. package/dist/tailwind/plugins/safe-area.ts +0 -1
  434. package/dist/tailwind.config.ts +4 -1
  435. package/dist/types/components/atoms/card/header/card-header.component.d.ts +1 -1
  436. package/dist/types/components/atoms/dropdown-menu/item/dropdown-menu-item.component.d.ts +1 -1
  437. package/dist/types/components/atoms/floating-menu/item/floating-menu-item.component.d.ts +1 -2
  438. package/dist/types/components/atoms/icon/icon.component.d.ts +1 -3
  439. package/dist/types/components/atoms/illustration/illustration.component.d.ts +1 -2
  440. package/dist/types/components/atoms/listing/item/listing-item.component.d.ts +1 -1
  441. package/dist/types/components/atoms/segment/item/segment-item.component.d.ts +1 -1
  442. package/dist/types/components/helpers/table/extra-header/table-extra-header.component.d.ts +5 -5
  443. package/dist/types/components/helpers/table/row-action/table-row-action.component.d.ts +2 -1
  444. package/dist/types/components/molecules/button/button.component.d.ts +1 -1
  445. package/dist/types/components/molecules/cropper/cropper.component.d.ts +0 -1
  446. package/dist/types/components/molecules/empty-state/empty-state.component.d.ts +3 -1
  447. package/dist/types/components/molecules/field/field/field.component.d.ts +1 -1
  448. package/dist/types/components/molecules/label/label.component.d.ts +1 -2
  449. package/dist/types/components/molecules/navigation/item/navigation-item.component.d.ts +1 -1
  450. package/dist/types/components/molecules/select/select.component.d.ts +1 -1
  451. package/dist/types/components/molecules/table/header/table-header.component.d.ts +1 -1
  452. package/dist/types/components/molecules/table/row/table-row.component.d.ts +1 -1
  453. package/dist/types/components/molecules/toast/toast.component.d.ts +1 -2
  454. package/dist/types/components/organisms/table/table.component.d.ts +1 -1
  455. package/dist/types/components.d.ts +58 -83
  456. package/dist/types/types/icon.d.ts +3 -0
  457. package/dist/types/types/illustration.d.ts +2 -0
  458. package/dist/types/types/index.d.ts +2 -0
  459. package/dist/types/utils/index.d.ts +0 -1
  460. package/dist/types/utils/table-helpers.d.ts +1 -1
  461. package/hydrate/index.js +401 -4857
  462. package/hydrate/index.mjs +401 -4857
  463. package/package.json +3 -2
  464. package/dist/assets/illustrations-old/default-empty-state.svg +0 -186
  465. package/dist/assets/illustrations-old/departments.svg +0 -31
  466. package/dist/assets/illustrations-old/e-mail.svg +0 -1
  467. package/dist/assets/illustrations-old/empty-state-add.svg +0 -65
  468. package/dist/assets/illustrations-old/empty-state-overview.svg +0 -58
  469. package/dist/assets/illustrations-old/empty-state-search.svg +0 -88
  470. package/dist/assets/illustrations-old/expenses.svg +0 -397
  471. package/dist/assets/illustrations-old/functions.svg +0 -58
  472. package/dist/assets/illustrations-old/questions.svg +0 -30
  473. package/dist/assets/illustrations-old/sick-leave.svg +0 -353
  474. package/dist/assets/illustrations-old/time-off.svg +0 -271
  475. package/dist/assets/illustrations-old/upgrade-to-hr.svg +0 -56
  476. package/dist/build/p--Uc_OJAV.js +0 -1
  477. package/dist/build/p-0ace3259.entry.js +0 -1
  478. package/dist/build/p-1204b8ec.entry.js +0 -1
  479. package/dist/build/p-12f9e8fd.entry.js +0 -1
  480. package/dist/build/p-2af31a3d.entry.js +0 -1
  481. package/dist/build/p-387cdb34.entry.js +0 -1
  482. package/dist/build/p-47aa5fcc.js +0 -1
  483. package/dist/build/p-623e756e.entry.js +0 -1
  484. package/dist/build/p-6995f239.entry.js +0 -1
  485. package/dist/build/p-6e0cdef0.entry.js +0 -1
  486. package/dist/build/p-81ce830d.entry.js +0 -1
  487. package/dist/build/p-B3sNjfzc.js +0 -1
  488. package/dist/build/p-DVCJlilm.js +0 -1
  489. package/dist/build/p-DiJj8rmO.js +0 -1
  490. package/dist/build/p-a2e9ea67.entry.js +0 -1
  491. package/dist/build/p-b9c70c1e.entry.js +0 -1
  492. package/dist/build/p-bc2ffc30.entry.js +0 -1
  493. package/dist/build/p-d8d7d211.entry.js +0 -1
  494. package/dist/build/p-d966a625.entry.js +0 -1
  495. package/dist/build/p-e145d906.entry.js +0 -3
  496. package/dist/build/p-f06b0222.entry.js +0 -1
  497. package/dist/cjs/is-mobile-browser-B0H5zume.js +0 -17
  498. package/dist/cjs/object-get-by-path-D9RiabwP.js +0 -12
  499. package/dist/cjs/p-illustration-deprecated.cjs.entry.js +0 -1648
  500. package/dist/collection/assets/illustrations-old/default-empty-state.svg +0 -186
  501. package/dist/collection/assets/illustrations-old/departments.svg +0 -31
  502. package/dist/collection/assets/illustrations-old/e-mail.svg +0 -1
  503. package/dist/collection/assets/illustrations-old/empty-state-add.svg +0 -65
  504. package/dist/collection/assets/illustrations-old/empty-state-overview.svg +0 -58
  505. package/dist/collection/assets/illustrations-old/empty-state-search.svg +0 -88
  506. package/dist/collection/assets/illustrations-old/expenses.svg +0 -397
  507. package/dist/collection/assets/illustrations-old/functions.svg +0 -58
  508. package/dist/collection/assets/illustrations-old/questions.svg +0 -30
  509. package/dist/collection/assets/illustrations-old/sick-leave.svg +0 -353
  510. package/dist/collection/assets/illustrations-old/time-off.svg +0 -271
  511. package/dist/collection/assets/illustrations-old/upgrade-to-hr.svg +0 -56
  512. package/dist/collection/components/deprecated/atoms/illustration-deprecated/illustration-deprecated.component.js +0 -45
  513. package/dist/collection/utils/illustrations-deprecated.js +0 -26
  514. package/dist/components/p--Uc_OJAV.js +0 -1
  515. package/dist/components/p-B3sNjfzc.js +0 -1
  516. package/dist/components/p-BEg0OIem.js +0 -1
  517. package/dist/components/p-BjTqIvvg.js +0 -1
  518. package/dist/components/p-BrUYoWaH.js +0 -1
  519. package/dist/components/p-C17XD-H9.js +0 -1
  520. package/dist/components/p-CKsghdpb.js +0 -1
  521. package/dist/components/p-CnrqNb4n.js +0 -1
  522. package/dist/components/p-DVCJlilm.js +0 -1
  523. package/dist/components/p-DYye99bH.js +0 -1
  524. package/dist/components/p-DiJj8rmO.js +0 -1
  525. package/dist/components/p-a5kQoWAV.js +0 -1
  526. package/dist/components/p-illustration-deprecated.d.ts +0 -11
  527. package/dist/components/p-illustration-deprecated.js +0 -1
  528. package/dist/components/p-qiEuZx_b.js +0 -1
  529. package/dist/components/p-v_LjXNk5.js +0 -1
  530. package/dist/components/p-zR_ED6Ps.js +0 -1
  531. package/dist/esm/is-mobile-browser-DVCJlilm.js +0 -15
  532. package/dist/esm/object-get-by-path-CrdJDtHg.js +0 -10
  533. package/dist/esm/p-illustration-deprecated.entry.js +0 -1646
  534. package/dist/paperless/p--Uc_OJAV.js +0 -1
  535. package/dist/paperless/p-0ace3259.entry.js +0 -1
  536. package/dist/paperless/p-1204b8ec.entry.js +0 -1
  537. package/dist/paperless/p-12f9e8fd.entry.js +0 -1
  538. package/dist/paperless/p-2af31a3d.entry.js +0 -1
  539. package/dist/paperless/p-387cdb34.entry.js +0 -1
  540. package/dist/paperless/p-623e756e.entry.js +0 -1
  541. package/dist/paperless/p-6995f239.entry.js +0 -1
  542. package/dist/paperless/p-6e0cdef0.entry.js +0 -1
  543. package/dist/paperless/p-81ce830d.entry.js +0 -1
  544. package/dist/paperless/p-B3sNjfzc.js +0 -1
  545. package/dist/paperless/p-DVCJlilm.js +0 -1
  546. package/dist/paperless/p-DiJj8rmO.js +0 -1
  547. package/dist/paperless/p-a2e9ea67.entry.js +0 -1
  548. package/dist/paperless/p-b9c70c1e.entry.js +0 -1
  549. package/dist/paperless/p-bc2ffc30.entry.js +0 -1
  550. package/dist/paperless/p-d8d7d211.entry.js +0 -1
  551. package/dist/paperless/p-d966a625.entry.js +0 -1
  552. package/dist/paperless/p-e145d906.entry.js +0 -3
  553. package/dist/paperless/p-f06b0222.entry.js +0 -1
  554. package/dist/types/components/deprecated/atoms/illustration-deprecated/illustration-deprecated.component.d.ts +0 -10
  555. package/dist/types/utils/illustrations-deprecated.d.ts +0 -15
  556. package/dist/build/{p-BFSNj6hu.js → p-TyZ7uPES.js} +0 -0
  557. package/dist/build/{p-BO6McqNQ.js → p-V194S7Dm.js} +0 -0
  558. package/dist/build/{p-49063862.entry.js → p-a096e5b9.entry.js} +0 -0
  559. package/dist/build/{p-10e45aa0.entry.js → p-a91d2d7d.entry.js} +0 -0
  560. package/dist/build/{p-ce739b80.entry.js → p-ea4df80c.entry.js} +0 -0
  561. package/dist/cjs/{icons-DoJUuFS5.js → icons-C2jYPq9N.js} +58 -58
  562. package/dist/components/{p-dOw_mqvY.js → p-BdmdNQNa.js} +0 -0
  563. package/dist/components/{p-BFSNj6hu.js → p-TyZ7uPES.js} +0 -0
  564. package/dist/esm/{icons--Uc_OJAV.js → icons-CXVK8SLW.js} +58 -58
  565. /package/dist/paperless/{p-BFSNj6hu.js → p-TyZ7uPES.js} +0 -0
  566. /package/dist/paperless/{p-BO6McqNQ.js → p-V194S7Dm.js} +0 -0
  567. /package/dist/paperless/{p-49063862.entry.js → p-a096e5b9.entry.js} +0 -0
  568. /package/dist/paperless/{p-10e45aa0.entry.js → p-a91d2d7d.entry.js} +0 -0
  569. /package/dist/paperless/{p-ce739b80.entry.js → p-ea4df80c.entry.js} +0 -0
@@ -1,11 +1,11 @@
1
+ /* eslint-disable import/no-duplicates */
1
2
  import { h, } from "@stencil/core";
2
3
  import { cva } from "class-variance-authority";
3
- import { addDays, addMonths, addYears, endOfMonth, format, getDay, getDaysInMonth, getYear, isAfter, isBefore, isSameDay, isSameMonth, isSameYear, isValid, isWeekend, setDate, setMonth, setYear, startOfDay, startOfMonth, } from "date-fns";
4
- import { nl, enUS } from "date-fns/locale";
5
- import { cn } from "../../../utils/cn";
6
- import { state } from "../../../state";
4
+ import { addDays, addMonths, addYears, endOfMonth, format, getDay, getDaysInMonth, getYear, isAfter, isBefore, isSameDay, isSameMonth, isSameYear, isValid, isWeekend, setDate, setMonth, setYear, startOfDay, startOfMonth, subYears, } from "date-fns";
5
+ import { enUS, nl } from "date-fns/locale";
7
6
  import { ThemedHost } from "../../../internal/themed-host.component";
8
- import { subYears } from "date-fns";
7
+ import { state } from "../../../state";
8
+ import { cn } from "../../../utils/cn";
9
9
  const calendar = cva(['w-[17.5rem] flex flex-col gap-4'], {
10
10
  variants: {
11
11
  variant: {
@@ -89,7 +89,7 @@ export class Calendar {
89
89
  _maxDate;
90
90
  _disabledDates = [];
91
91
  _enableToday = true;
92
- _weekDays = Array.from(Array(7).keys());
92
+ _weekDays = [...Array.from({ length: 7 }).keys()];
93
93
  _yearItemsRef;
94
94
  componentWillLoad() {
95
95
  if (this.disabledDates) {
@@ -187,7 +187,7 @@ export class Calendar {
187
187
  }
188
188
  }
189
189
  render() {
190
- return (h(ThemedHost, { key: '4925bab37200125bfd80d9ec100d41cdf9362543' }, h("div", { key: 'a682e633885b7b9078af95a948baee0f54353f00', class: calendar({ variant: this.variant }) }, this._getView())));
190
+ return (h(ThemedHost, { key: 'cb86d89f72df18561c48f1e3f6190e145b82a9f7' }, h("div", { key: '1f3db7e6503b1a3591b0be7877d0e912fe5c4ac2', class: calendar({ variant: this.variant }) }, this._getView())));
191
191
  }
192
192
  _checkTodayButton() {
193
193
  if (this._maxDate && isAfter(this._today, this._maxDate)) {
@@ -220,14 +220,12 @@ export class Calendar {
220
220
  const daysInMonth = this._generateDaysInMonth();
221
221
  return (h("div", { class: view({ view: 'day' }) }, this._getHeader('day'), h("div", { class: 'grid grid-cols-7 justify-between gap-1' }, this._weekDays.map(weekday => (h("span", { class: 'w-8 text-center text-xs text-storm-200' }, format(addDays(new Date(2022, 7, 1), weekday), state.locale === 'nl' ? 'EEEEEE' : 'eee', {
222
222
  locale: state.locale === 'nl' ? nl : enUS,
223
- })))), daysInMonth.map(day => {
224
- return day.active ? (h("p-button", { variant: 'primary', tabIndex: -1, class: cn('w-8', `col-start-${day.offset}`), onClick: () => this._setValue(day.date) }, day.day)) : (h("time", { class: cn('normal flex items-center justify-center rounded-lg', 'h-8 w-8 text-sm font-semibold', 'text-storm-300', 'dark:bg-white/15', {
225
- 'cursor-pointer hover:bg-white-600 hover:text-storm-500 dark:text-white dark:hover:bg-hurricane-300 dark:hover:text-white': !day.disabled,
226
- 'dark:text-hurricane-200': day.disabled,
227
- }, `col-start-${day.offset}`, { 'cursor-not-allowed opacity-60': day.disabled }, {
228
- 'border border-solid border-off-white-700 bg-off-white-300 text-storm-500 dark:border-none dark:bg-hurricane-200 dark:text-white': !day.disabled && isSameDay(day.date, new Date()),
229
- }), onClick: () => this._setValue(day.date) }, day.day));
230
- }))));
223
+ })))), daysInMonth.map(day => day.active ? (h("p-button", { variant: 'primary', tabIndex: -1, class: cn('w-8', `col-start-${day.offset}`), onClick: () => this._setValue(day.date) }, day.day)) : (h("time", { class: cn('normal flex items-center justify-center rounded-lg', 'h-8 w-8 text-sm font-semibold', 'text-storm-300', 'dark:bg-white/15', {
224
+ 'cursor-pointer hover:bg-white-600 hover:text-storm-500 dark:text-white dark:hover:bg-hurricane-300 dark:hover:text-white': !day.disabled,
225
+ 'dark:text-hurricane-200': day.disabled,
226
+ }, `col-start-${day.offset}`, { 'cursor-not-allowed opacity-60': day.disabled }, {
227
+ 'border border-solid border-off-white-700 bg-off-white-300 text-storm-500 dark:border-none dark:bg-hurricane-200 dark:text-white': !day.disabled && isSameDay(day.date, new Date()),
228
+ }), onClick: () => this._setValue(day.date) }, day.day))))));
231
229
  }
232
230
  _getMonthView() {
233
231
  const months = this._generateMonths();
@@ -314,7 +312,8 @@ export class Calendar {
314
312
  this.valueChange.emit(value);
315
313
  }
316
314
  _generateDaysInMonth() {
317
- const days = Array.from(Array(getDaysInMonth(this._viewDate)).keys());
315
+ // eslint-disable-next-line unicorn/no-new-array
316
+ const days = [...new Array(getDaysInMonth(this._viewDate)).keys()];
318
317
  return days.map(day => {
319
318
  day = day + 1;
320
319
  const date = startOfDay(setDate(this._viewDate, day));
@@ -333,11 +332,11 @@ export class Calendar {
333
332
  return ((isBefore(day, this._minDate) && !isSameDay(day, this._maxDate)) ||
334
333
  (isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||
335
334
  ((getDay(day) === 0 || getDay(day) === 6) && this.disableWeekends) ||
336
- this._disabledDates.findIndex(date => isSameDay(date, day)) >= 0);
335
+ this._disabledDates.some(date => isSameDay(date, day)));
337
336
  }
338
337
  _generateMonths() {
339
338
  const year = getYear(this._viewDate);
340
- const months = Array.from(Array(12).keys());
339
+ const months = [...Array.from({ length: 12 }).keys()];
341
340
  return months.map(month => {
342
341
  const date = new Date(year, month, 1);
343
342
  return {
@@ -352,7 +351,8 @@ export class Calendar {
352
351
  _generateYears() {
353
352
  const maxYear = getYear(this._maxDate) + 1;
354
353
  const minYear = getYear(this._minDate);
355
- return Array.from(Array(maxYear - minYear).keys()).map(index => {
354
+ // eslint-disable-next-line unicorn/no-new-array
355
+ return [...new Array(maxYear - minYear).keys()].map(index => {
356
356
  const year = minYear + index;
357
357
  return {
358
358
  year,
@@ -47,9 +47,9 @@ export class ContentSlider {
47
47
  }
48
48
  }
49
49
  render() {
50
- return (h(Host, { key: '1b6d2c6557af171239da3937779392ca6c9251aa', class: 'p-content-slider' }, h("div", { key: 'a1499532e194a55b7faa00f5c8d3741c53622ab5', class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, style: {
50
+ return (h(Host, { key: '82853208f8862b3485a5a00b0c9c4f6986ea92ea', class: 'p-content-slider' }, h("div", { key: '3250c367ac25464a769c43d4093df28dbff8085d', class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, style: {
51
51
  height: `${this._outerHeight}px`,
52
- }, ref: el => (this._sliderRef = el), onMouseDown: e => this._mouseDownHandler(e), onTouchStart: e => this._mouseDownHandler(e), onMouseMove: e => this._mouseMoveHandler(e), onTouchMove: e => this._mouseMoveHandler(e) }, h("div", { key: '06d7498e0e2db76f78a45cb3aabcfd7327652e91', class: 'inner-slider', ref: ref => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", { key: '0a9c430dc04fdec25f086ca7f1c386554e94d40f', onSlotchange: () => this._slotChange() }))), h("div", { key: '1f3e452dcbe68425d55ebe5efa0fb0bc48cc9531', class: `indicator ${this.hideMobileIndicator && 'hidden'}` }, this._filteredItems.map((_, i) => (h("div", { onClick: () => this._scrollTo(i, true), class: `item ${!this.disableIndicatorClick && 'cursor-pointer'}` }, h("div", { class: cn('block h-2 w-2 rounded-full', {
52
+ }, ref: el => (this._sliderRef = el), onMouseDown: e => this._mouseDownHandler(e), onTouchStart: e => this._mouseDownHandler(e), onMouseMove: e => this._mouseMoveHandler(e), onTouchMove: e => this._mouseMoveHandler(e) }, h("div", { key: 'cb82eacdfc02898e9eeaff865b5e7fa7da69a2f9', class: 'inner-slider', ref: ref => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", { key: 'e6e5636ba8ed11665e0d623bcffb8a53bba03908', onSlotchange: () => this._slotChange() }))), h("div", { key: '9d596407cda3aaa5cbae5c0a0a19209623627edd', class: `indicator ${this.hideMobileIndicator && 'hidden'}` }, this._filteredItems.map((_, i) => (h("div", { onClick: () => this._scrollTo(i, true), class: `item ${!this.disableIndicatorClick && 'cursor-pointer'}` }, h("div", { class: cn('block h-2 w-2 rounded-full', {
53
53
  'bg-indigo-600': i === this._visibleIndex,
54
54
  'bg-indigo-300': i !== this._visibleIndex,
55
55
  }) })))))));
@@ -98,7 +98,7 @@ export class ContentSlider {
98
98
  }
99
99
  _slotChange() {
100
100
  const items = this._el.querySelectorAll(':scope > *');
101
- this._items = Array.from(items);
101
+ this._items = [...items];
102
102
  setTimeout(() => {
103
103
  this._innerSliderRef.style.setProperty('--tw-translate-x', '0px');
104
104
  this._calculateWidth();
@@ -142,7 +142,7 @@ export class ContentSlider {
142
142
  }
143
143
  _checkBoundary() {
144
144
  let outer = this._sliderRef.getBoundingClientRect();
145
- const left = parseInt(this._innerSliderRef.style.getPropertyValue('--tw-translate-x'));
145
+ const left = Number.parseInt(this._innerSliderRef.style.getPropertyValue('--tw-translate-x'));
146
146
  if (left > 0) {
147
147
  this._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);
148
148
  }
@@ -203,15 +203,15 @@ export class ContentSlider {
203
203
  totalWidth += rect.width;
204
204
  }
205
205
  const sliderStyle = getComputedStyle(this._sliderRef);
206
- const padding = parseInt(sliderStyle.padding) * 2;
206
+ const padding = Number.parseInt(sliderStyle.padding) * 2;
207
207
  const innerSliderStyle = getComputedStyle(this._innerSliderRef);
208
- const gap = parseInt(innerSliderStyle.gap) * (this._filteredItems.length - 1);
208
+ const gap = Number.parseInt(innerSliderStyle.gap) * (this._filteredItems.length - 1);
209
209
  totalWidth += padding + gap;
210
210
  this._totalWidth = totalWidth;
211
211
  }
212
212
  _calculateHeight() {
213
213
  const items = this._filteredItems;
214
- if (!items.length) {
214
+ if (items.length === 0) {
215
215
  return;
216
216
  }
217
217
  const outerHeight = this._filteredItems
@@ -1,5 +1,4 @@
1
1
  import { h, } from "@stencil/core";
2
- import "cropperjs";
3
2
  import { ThemedHost } from "../../../internal/themed-host.component";
4
3
  import { state } from "../../../state";
5
4
  export class Cropper {
@@ -41,7 +40,7 @@ export class Cropper {
41
40
  const themeColor = state.theme === 'dark'
42
41
  ? 'rgba(70, 75, 84, 0.5)'
43
42
  : 'rgba(255, 255, 255, 0.5)';
44
- return (h(ThemedHost, { key: '3b353db13602263b101450c6a57637e3369273a8' }, this._loaded && (h("cropper-canvas", { key: '028d136a13857f99d3ee6847f7cedf94f26ee150', class: 'h-[17.5rem] w-full border-0 border-b border-solid border-off-white-700 bg-white dark:border-hurricane-200', onAction: () => this._onAction() }, h("cropper-image", { key: '680fbd3b0d5b7231b8bafec0af30859619cb5b58', src: this.value, alt: 'Picture', ref: ref => this._setImageRef(ref), scalable: true, translatable: true, crossorigin: 'anonymous' }), h("cropper-shade", { key: 'ef618b557fe0d7d6bb383a28b448da102c1c9c4e', class: 'aspect-branding rounded-full', "theme-color": themeColor, hidden: true }), h("cropper-selection", { key: 'e2d9c2efa1b2ad549a29ccad80a28467138cd9aa', "initial-coverage": '0.7', "aspect-ratio": '1', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: '138289e12ad4741750b6599e472734c049ecf30f', action: 'move', plain: true }))), h("p-range", { key: '010ccb2dec0cf21aca4c6569d2f64662d85f7c60', class: 'w-full px-14 tablet:max-w-xs tablet:px-1', value: this._currentScale, onValueChange: ev => this._onInput(ev.detail) })));
43
+ return (h(ThemedHost, { key: 'e400f992f259019b11e1be419a1272cc1a0dc829' }, this._loaded && (h("cropper-canvas", { key: '237161476c456cef513d709111e0571b34296ef7', class: 'h-[17.5rem] w-full border-0 border-b border-solid border-off-white-700 bg-white dark:border-hurricane-200', onAction: () => this._onAction() }, h("cropper-image", { key: '3d0693f76a4447b38025193f3f7f73f1b6286c50', src: this.value, alt: 'Picture', ref: ref => this._setImageRef(ref), scalable: true, translatable: true, crossorigin: 'anonymous' }), h("cropper-shade", { key: '4d1dcd3666bda9336ea96e4e1618661280298f75', class: 'aspect-branding rounded-full', "theme-color": themeColor, hidden: true }), h("cropper-selection", { key: '1029c31b3221664bfc2892e54620e28d6ed352a4', "initial-coverage": '0.7', "aspect-ratio": '1', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: 'c886a8f4453f540988daa792e7a388464219045b', action: 'move', plain: true }))), h("p-range", { key: '2281ee5a960b9fd4f924c394a095ae8531956a23', class: 'w-full px-14 tablet:max-w-xs tablet:px-1', value: this._currentScale, onValueChange: ev => this._onInput(ev.detail) })));
45
44
  }
46
45
  _setImageRef(ref) {
47
46
  if (this._imageRef) {
@@ -1,13 +1,9 @@
1
1
  import { h, } from "@stencil/core";
2
- import { format, isAfter, isBefore, isSameDay, isValid, isWeekend, parse, startOfDay, startOfMonth, startOfYear, } from "date-fns";
2
+ import { format, isAfter, isBefore, isSameDay, isValid, isWeekend, parse, startOfDay, startOfMonth, startOfYear, addYears, getYear, setYear, subYears, } from "date-fns";
3
+ import { enUS, nl } from "date-fns/locale";
4
+ import { state } from "../../../state";
3
5
  import { childOf, isMobileBrowser } from "../../../utils";
4
6
  import { asBoolean } from "../../../utils/as-boolean";
5
- import { state } from "../../../state";
6
- import { enUS, nl } from "date-fns/locale";
7
- import { addYears } from "date-fns";
8
- import { getYear } from "date-fns";
9
- import { setYear } from "date-fns";
10
- import { subYears } from "date-fns";
11
7
  export class Datepicker {
12
8
  /**
13
9
  * The placeholder of the input
@@ -212,7 +208,7 @@ export class Datepicker {
212
208
  this.parseValue(this.value);
213
209
  }
214
210
  render() {
215
- return (h("p-dropdown", { key: 'a3b7ea1be56aac9497229a7d642a0ad76aaaadd0', allowOverflow: true, strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown, isDatepicker: true }, h("p-field", { key: '06cc4e91f8d9ce1f317e8a0e689de5018c685717', slot: 'trigger', icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', size: this.size, prefix: this.prefix, label: this.label, loading: this.loading, helper: this.helper, required: asBoolean(this.required), showOptional: asBoolean(this.showOptional), error: this.error, forceShowTooltip: !!this.error?.length && !this._showDropdown, autoShowError: false, disabled: asBoolean(this.disabled), focused: this._showDropdown, value: this._getFormattedDate(), placeholder: this.placeholder, onFocus: () => this._onFocus(), onBlur: (ev) => this._onBlur(ev), onValueChange: ev => this._onValueChange(ev.detail), onInputRefChange: ev => (this._inputRef = ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: 'f8cbd5f6ec8bd87bce5b13cfee550a072830b1d1', slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', class: 'pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden opacity-0', onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value &&
211
+ return (h("p-dropdown", { key: 'a01a3bf86a26c0b909a777941c002f8db1963210', allowOverflow: true, strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown, isDatepicker: true }, h("p-field", { key: '66141e393236efcc4ce8deb36ea3083eb8f1cbe8', slot: 'trigger', icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', size: this.size, prefix: this.prefix, label: this.label, loading: this.loading, helper: this.helper, required: asBoolean(this.required), showOptional: asBoolean(this.showOptional), error: this.error, forceShowTooltip: !!this.error?.length && !this._showDropdown, autoShowError: false, disabled: asBoolean(this.disabled), focused: this._showDropdown, value: this._getFormattedDate(), placeholder: this.placeholder, onFocus: () => this._onFocus(), onBlur: (ev) => this._onBlur(ev), onValueChange: ev => this._onValueChange(ev.detail), onInputRefChange: ev => (this._inputRef = ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: '6c7d01a5c298b42d089ae18d06c6acb2659031cb', slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', class: 'pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden opacity-0', onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value &&
216
212
  format(this._value, 'yyyy-MM-dd', {
217
213
  locale: state.locale === 'nl' ? nl : enUS,
218
214
  }), min: this._minDate &&
@@ -221,7 +217,7 @@ export class Datepicker {
221
217
  }), max: this.maxDate &&
222
218
  format(new Date(this.maxDate), 'yyyy-MM-dd', {
223
219
  locale: state.locale === 'nl' ? nl : enUS,
224
- }) })), h("div", { key: 'a3caba7fad60ba5e8d3b31b2f4f075960d2801cd', tabIndex: -1, slot: 'items' }, h("p-calendar", { key: '83fe68ab2ba2903043e0785a38b4acca26f14dad', variant: 'embedded', value: this._value, onValueChange: ({ detail }) => (this.value = detail), preselectToday: this.preselectToday, disabledDates: this.disabledDates, minDate: this.minDate, maxDate: this.maxDate, disableWeekends: this.disableWeekends, enableToday: this.enableToday, todayText: this.todayText, mode: this.mode }))));
220
+ }) })), h("div", { key: 'd5a32388cee9bb272905deb090816da8217e9a41', tabIndex: -1, slot: 'items' }, h("p-calendar", { key: 'dce8bdd282632e2c38ebf13b3b07db561b27dffb', variant: 'embedded', value: this._value, onValueChange: ({ detail }) => (this.value = detail), preselectToday: this.preselectToday, disabledDates: this.disabledDates, minDate: this.minDate, maxDate: this.maxDate, disableWeekends: this.disableWeekends, enableToday: this.enableToday, todayText: this.todayText, mode: this.mode }))));
225
221
  }
226
222
  documentClickHandler({ target }) {
227
223
  if (!this._showDropdown || childOf(target, this._el)) {
@@ -311,7 +307,7 @@ export class Datepicker {
311
307
  return;
312
308
  }
313
309
  if (this._isDisabledDay(value)) {
314
- if (!!this._dateInputRef?.value) {
310
+ if (this._dateInputRef?.value) {
315
311
  this._dateInputRef.value = this._value
316
312
  ? format(this._value, 'yyyy-MM-dd', {
317
313
  locale: state.locale === 'nl' ? nl : enUS,
@@ -340,7 +336,7 @@ export class Datepicker {
340
336
  return ((this.disableWeekends && isWeekend(day)) ||
341
337
  (isBefore(day, this._minDate) && !isSameDay(day, this._minDate)) ||
342
338
  (isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||
343
- this._disabledDates.findIndex(date => isSameDay(date, day)) >= 0);
339
+ this._disabledDates.some(date => isSameDay(date, day)));
344
340
  }
345
341
  _getFormattedDate() {
346
342
  if (!this._value) {
@@ -1,8 +1,8 @@
1
1
  import { autoUpdate, computePosition, flip, offset, shift, } from "@floating-ui/dom";
2
2
  import { h, Host, } from "@stencil/core";
3
3
  import { cva } from "class-variance-authority";
4
- import { childOfComposed } from "../../../utils/child-of";
5
4
  import { cn } from "../../../utils";
5
+ import { childOfComposed } from "../../../utils/child-of";
6
6
  const dropdownContainerClass = cva(['hidden'], {
7
7
  variants: {
8
8
  strategy: {
@@ -127,40 +127,40 @@ export class Dropdown {
127
127
  this._checkItems();
128
128
  }
129
129
  render() {
130
- return (h(Host, { key: '8ad204f73d619abe866f76cc921e0f1851c5f2e0', class: 'relative' }, h("div", { key: 'b52b8b42e2a6f8b783eaa35ed973aa7990c4d132', class: 'trigger', onClick: () => this._triggerClickHandler() }, h("slot", { key: '5765df266ae120a17547f88fab87da8ba45340ae', name: 'trigger' })), h("div", { key: 'e52b31973018cc81eacfa116663d14ce2e754f30', class: 'relative w-full' }, h("p-dropdown-menu-container", { key: 'ede5c3fce3a17a119547ba25ea3eb3ca46eb9b4f', variant: this.variant, maxWidth: this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, class: cn(dropdownContainerClass({
130
+ return (h(Host, { key: 'a4b635c184cc8a58c74f1ba5dbb5f455df1a7b86', class: 'relative' }, h("div", { key: 'd0d1a3f05d117bb2b3a28022e8737fae2f25fcb3', class: 'trigger', onClick: () => this._triggerClickHandler() }, h("slot", { key: '5697825e61fb1c07139663c6c5ac400c48da998a', name: 'trigger' })), h("div", { key: '815b60a51d6b074e878eab047cac77cce5a3e337', class: 'relative w-full' }, h("p-dropdown-menu-container", { key: '60bf00e8beb6e42e7629b57283d317bfe0a2b40a', variant: this.variant, maxWidth: this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, class: cn(dropdownContainerClass({
131
131
  strategy: this.strategy,
132
132
  maxWidth: this.applyMaxWidth,
133
133
  fullWidth: this.applyFullWidth && !this.applyMaxWidth,
134
134
  isDatepicker: this.isDatepicker,
135
- }), this.containerClass), ref: el => this._load(el), onClick: () => this._containerClickHandler(), role: 'popover', "data-placement": this.placement, "data-strategy": this.strategy }, h("slot", { key: 'fffd997b0fe4df65536079b7977ccf88f0efe1b7', name: 'items' })))));
135
+ }), this.containerClass), ref: el => this._load(el), onClick: () => this._containerClickHandler(), role: 'popover', "data-placement": this.placement, "data-strategy": this.strategy }, h("slot", { key: '34a4da54cb7e3949a494b028b6188b9655b294c2', name: 'items' })))));
136
136
  }
137
137
  _checkButtons(active = false) {
138
138
  if (!this.applyChevron) {
139
139
  return;
140
140
  }
141
141
  const buttons = this._el.querySelectorAll('p-button[slot="trigger"]');
142
- const isOpen = this._menu.getAttribute('data-show') !== null;
143
- for (let button of [...buttons]) {
142
+ const isOpen = this._menu.dataset.show !== null;
143
+ for (let button of buttons) {
144
144
  button.disabled = this.disableTriggerClick;
145
145
  button.active = active;
146
146
  if (button.iconOnly) {
147
147
  continue;
148
148
  }
149
149
  button.chevronPosition = this.chevronPosition;
150
- button.chevron = this.chevronDirection
151
- ? this.chevronDirection
152
- : this.placement.indexOf('top') >= 0
153
- ? isOpen
154
- ? 'down'
155
- : 'up'
156
- : isOpen
157
- ? 'up'
158
- : 'down';
150
+ button.chevron =
151
+ this.chevronDirection ??
152
+ (this.placement.includes('top')
153
+ ? isOpen
154
+ ? 'down'
155
+ : 'up'
156
+ : isOpen
157
+ ? 'up'
158
+ : 'down');
159
159
  }
160
160
  }
161
161
  _checkItems() {
162
162
  const items = this._el.querySelectorAll('p-dropdown-menu-item');
163
- for (let item of [...items]) {
163
+ for (let item of items) {
164
164
  if (item.variant === 'pagination' || item.variant === 'negative') {
165
165
  continue;
166
166
  }
@@ -178,7 +178,7 @@ export class Dropdown {
178
178
  this._show();
179
179
  }
180
180
  documentClickHandler(event) {
181
- if (!this._menu.hasAttribute('data-show') ||
181
+ if (!Object.hasOwn(this._menu.dataset, 'show') ||
182
182
  childOfComposed(event, this._menu)) {
183
183
  return;
184
184
  }
@@ -188,7 +188,7 @@ export class Dropdown {
188
188
  if (this.insideClick) {
189
189
  return;
190
190
  }
191
- if (this._menu.hasAttribute('data-show')) {
191
+ if (Object.hasOwn(this._menu.dataset, 'show')) {
192
192
  this._hide();
193
193
  }
194
194
  }
@@ -199,7 +199,7 @@ export class Dropdown {
199
199
  if (this.manual) {
200
200
  return;
201
201
  }
202
- if (this._menu.hasAttribute('data-show')) {
202
+ if (Object.hasOwn(this._menu.dataset, 'show')) {
203
203
  this._hide();
204
204
  return;
205
205
  }
@@ -220,7 +220,7 @@ export class Dropdown {
220
220
  return;
221
221
  }
222
222
  this._cleanup = autoUpdate(this._el, this._menu, () => this._update());
223
- this._menu.setAttribute('data-show', '');
223
+ this._menu.dataset.show = '';
224
224
  this._menu.classList.remove('hidden');
225
225
  this._menu.classList.add('block');
226
226
  this.isOpen.emit(true);
@@ -235,7 +235,7 @@ export class Dropdown {
235
235
  this._cleanup = null;
236
236
  }
237
237
  // Hide the popover
238
- this._menu.removeAttribute('data-show');
238
+ delete this._menu.dataset.show;
239
239
  this._menu.classList.remove('block');
240
240
  this._menu.classList.add('hidden');
241
241
  this.isOpen.emit(false);
@@ -1,7 +1,7 @@
1
1
  import { h, } from "@stencil/core";
2
2
  import { cva } from "class-variance-authority";
3
- import { asBoolean } from "../../../utils/as-boolean";
4
3
  import { ThemedHost } from "../../../internal/themed-host.component";
4
+ import { asBoolean } from "../../../utils/as-boolean";
5
5
  const emptyState = cva(['flex flex-col w-full items-center justify-start max-w-[20rem]'], {
6
6
  variants: {
7
7
  enableAction: {
@@ -59,11 +59,11 @@ export class EmptyState {
59
59
  const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
60
60
  const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
61
61
  const hasActionSlot = !!this._el.querySelector(':scope > [slot="action"]');
62
- return (h(ThemedHost, { key: 'a5b216f02c7086b814e8e234e8182141145a4f3e' }, h("div", { key: '9e24d079bc3250ed127d265708e4c20053202cbc', class: emptyState({
62
+ return (h(ThemedHost, { key: '580edaeaa7a1429f07840b25d2062f9e6ae9763d' }, h("div", { key: 'c08807d745ee8f4bebae2d7aec92bf110824269e', class: emptyState({
63
63
  enableAction: asBoolean(this.enableAction, true),
64
64
  }), onClick: ev => this.enableAction && !this.actionLoading
65
65
  ? this.action.emit(ev)
66
- : undefined }, this.illustration && (h("p-illustration", { key: '31ab436e26a4b6253b0f650524f8cecd7ee12a55', class: 'mb-8 text-5xl text-indigo-600', variant: this.illustration })), hasHeaderSlot ? (h("slot", { name: 'header' })) : (this.header?.length && (h("p", { class: 'my-0 text-center font-ambit text-sm font-bold text-storm-500 dark:text-white' }, this.header))), hasContentSlot ? (h("slot", { name: 'content' })) : (this.content?.length && (h("p", { class: 'my-0 text-center text-sm font-normal text-storm-300 dark:text-hurricane-200' }, this.content))), this.enableAction &&
66
+ : undefined }, this.illustration && (h("p-illustration", { key: '3434e243bb9a41e7f56982fff2450cc92013b25f', class: 'mb-8 text-5xl text-indigo-600', variant: this.illustration })), hasHeaderSlot ? (h("slot", { name: 'header' })) : (this.header?.length && (h("p", { class: 'my-0 text-center font-ambit text-sm font-bold text-storm-500 dark:text-white' }, this.header))), hasContentSlot ? (h("slot", { name: 'content' })) : (this.content?.length && (h("p", { class: 'my-0 text-center text-sm font-normal text-storm-300 dark:text-hurricane-200' }, this.content))), this.enableAction &&
67
67
  (hasActionSlot ? (h("slot", { name: 'action' })) : (h("p-button", { class: 'mt-4', icon: this.actionIcon, iconPosition: this.actionIconPosition, loading: this.actionLoading, variant: this.actionVariant }, this.actionText))))));
68
68
  }
69
69
  static get is() { return "p-empty-state"; }
@@ -81,16 +81,16 @@ export class EmptyState {
81
81
  static get properties() {
82
82
  return {
83
83
  "illustration": {
84
- "type": "any",
84
+ "type": "string",
85
85
  "mutable": false,
86
86
  "complexType": {
87
87
  "original": "IllustrationVariant",
88
- "resolved": "IllustrationVariant",
88
+ "resolved": "\"calculator\" | \"calendar\" | \"clock\" | \"coins\" | \"file\" | \"file-invoice\" | \"file-notes\" | \"folder\" | \"payment\" | \"search\" | \"sick-leave\" | \"table\" | \"tag\" | \"task\" | \"user\"",
89
89
  "references": {
90
90
  "IllustrationVariant": {
91
91
  "location": "import",
92
- "path": "../../../components",
93
- "id": "src/components.d.ts::unknown",
92
+ "path": "../../../types/illustration",
93
+ "id": "src/types/illustration.ts::IllustrationVariant",
94
94
  "referenceLocation": "IllustrationVariant"
95
95
  }
96
96
  }
@@ -219,8 +219,8 @@ export class EmptyState {
219
219
  "references": {
220
220
  "IconVariant": {
221
221
  "location": "import",
222
- "path": "../../../components",
223
- "id": "src/components.d.ts::IconVariant",
222
+ "path": "../../../types/icon",
223
+ "id": "src/types/icon.ts::IconVariant",
224
224
  "referenceLocation": "IconVariant"
225
225
  }
226
226
  }
@@ -1,8 +1,8 @@
1
1
  import { h, } from "@stencil/core";
2
2
  import { cva } from "class-variance-authority";
3
+ import { ThemedHost } from "../../../../internal/themed-host.component";
3
4
  import { cn, formatTranslation, getLocaleComponentStrings, } from "../../../../utils";
4
5
  import { asBoolean } from "../../../../utils/as-boolean";
5
- import { ThemedHost } from "../../../../internal/themed-host.component";
6
6
  const loader = cva(['rounded-lg w-full'], {
7
7
  variants: {
8
8
  variant: {
@@ -105,24 +105,24 @@ export class FieldContainer {
105
105
  }
106
106
  render() {
107
107
  const { hasHeaderSlot, hasErrorSlot, helper, label, errorAndErrorIsNotBoolean, } = this._getSlotInfo();
108
- let contentSlot = (h("slot", { key: '6db4734d0a8f69e4952904880813ec931c45e877', slot: 'trigger', name: 'content' }));
108
+ let contentSlot = (h("slot", { key: 'e795f4695850003f41a5bfb815893affee00e8de', slot: 'trigger', name: 'content' }));
109
109
  if (this.loading) {
110
- contentSlot = (h("p-loader", { key: '07f963ba944d8eb1c0e751fed55898dbd7c77ae2', variant: 'ghost', class: loader({ variant: this.variant, size: this.loadingSize }), slot: 'trigger' }));
110
+ contentSlot = (h("p-loader", { key: '1f65c3ca60cefbf0740c9d7235a18a3e69f1c788', variant: 'ghost', class: loader({ variant: this.variant, size: this.loadingSize }), slot: 'trigger' }));
111
111
  }
112
- return (h(ThemedHost, { key: '0c01066b6835e30c5e5076486cbb43039f05eb8c' }, h("label", { key: 'b54558388e3bb77517bd4d5c73cf5d222c50e3c3', htmlFor: this.id, class: cn('flex w-inherit flex-col gap-1', {
112
+ return (h(ThemedHost, { key: '9b4ab7a1d59cead07a2065b0d6bc72be41d24287' }, h("label", { key: 'ac31d16bdd75b4b236479638efd367f4771627d1', htmlFor: this.id, class: cn('flex w-inherit flex-col gap-1', {
113
113
  'cursor-auto': this.variant === 'read',
114
- }) }, h("div", { key: '68f1096a9b8f0e815e4771b9e40bcb4c9f4d8c96', class: cn('flex items-end justify-between gap-1 empty:hidden', {
114
+ }) }, h("div", { key: '06a0c419582c71df7323bc3b0deb2d8a98541ca7', class: cn('flex items-end justify-between gap-1 empty:hidden', {
115
115
  'flex-row-reverse': this.align === 'end',
116
- }) }, (!!label?.length || !!helper?.length) && (h("div", { key: '4cfbcdea3f80c568d141112f305231c5313e3ddc', class: 'flex min-w-0 gap-2', onClick: () => this.focus.emit() }, h("span", { key: 'abd3f6c3f88a561e88cbc5bf146710dc634dd811', class: 'min-w-0 overflow-hidden text-ellipsis text-xs font-medium text-storm-300 dark:text-hurricane-200' }, label), helper && (h("p-helper", { key: '2c451541c089dbff670c04f1d383c7afef7a76e6', class: 'flex flex-shrink-0', placement: 'top' }, helper)))), ((!asBoolean(this.required) && asBoolean(this.showOptional)) ||
117
- hasHeaderSlot) && (h("div", { key: '0f63624491b2b81997c5954c98ad8009b10837fb', class: 'flex items-center gap-1' }, !asBoolean(this.required) &&
116
+ }) }, (!!label?.length || !!helper?.length) && (h("div", { key: '97d2b33bb04145650b000dde1859015361855fa3', class: 'flex min-w-0 gap-2', onClick: () => this.focus.emit() }, h("span", { key: '4a2fc2b62dba4fc7d4a5f816944996333cff2ca3', class: 'min-w-0 overflow-hidden text-ellipsis text-xs font-medium text-storm-300 dark:text-hurricane-200' }, label), helper && (h("p-helper", { key: '1638bb0c6c3683bd2bd0836b9f4fd0ca07561baf', class: 'flex flex-shrink-0', placement: 'top' }, helper)))), ((!asBoolean(this.required) && asBoolean(this.showOptional)) ||
117
+ hasHeaderSlot) && (h("div", { key: '4f9f56fc0951dab62bd75c4cc7ea724e17ec05aa', class: 'flex items-center gap-1' }, !asBoolean(this.required) &&
118
118
  asBoolean(this.showOptional) &&
119
- this.variant === 'write' && (h("span", { key: '438271d7bed566b2c5b26e91d1cfe1101937cef4', class: 'text-xs font-medium text-storm-200 dark:text-hurricane-300' }, this.optionalTemplate())), hasHeaderSlot && h("slot", { key: 'd7be494f035a0e15b97d368a2f08934775446608', name: 'header' })))), h("p-tooltip", { key: '733c671023a88cef98e3f957f02acb7368147c83', class: cn({
119
+ this.variant === 'write' && (h("span", { key: '5a86b8751d683868f5c6f001571c184684014741', class: 'text-xs font-medium text-storm-200 dark:text-hurricane-300' }, this.optionalTemplate())), hasHeaderSlot && h("slot", { key: '2bb4125dfcf6a346259a64f5a92000413fcd13ab', name: 'header' })))), h("p-tooltip", { key: '9ddda9fc48a0d3e95ba9953c1787728692b04b27', class: cn({
120
120
  'w-full': this.variant === 'write' || this.loading,
121
121
  'ml-auto': this.align === 'end',
122
122
  'font-normal': this.variant === 'read',
123
123
  'text-storm-500 dark:text-white': this.variant === 'read',
124
124
  }), variant: 'error', content: this.error, show: errorAndErrorIsNotBoolean &&
125
- asBoolean(this.forceShowTooltip, false), enableUserInput: false, placement: this.errorPlacement }, hasErrorSlot && (h("slot", { key: '6440f0359c94e69cc632a85087008439be6ad5c9', name: 'error', slot: 'content' })), contentSlot))));
125
+ asBoolean(this.forceShowTooltip, false), enableUserInput: false, placement: this.errorPlacement }, hasErrorSlot && (h("slot", { key: '3670780d5e0907d655e282fbea6c43dcceea7e00', name: 'error', slot: 'content' })), contentSlot))));
126
126
  }
127
127
  async _setLocales() {
128
128
  this._locales = await getLocaleComponentStrings(this._el);
@@ -329,8 +329,8 @@ export class Field {
329
329
  }
330
330
  render() {
331
331
  const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
332
- return (h(ThemedHost, { key: 'cd6719555f83fdb25f1d0e5cca3e80f87bcfda5f' }, h("p-field-container", { key: '802af3d1027dcec188abf0c29fc357debcd6d626', forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
333
- (!!this.error?.length && this.forceShowTooltip), id: id, label: this.label, align: this.align, loading: this.loading, loadingSize: this.size, helper: this.helper, error: this.error, required: this.required, showOptional: this.showOptional, variant: this.variant }, hasLabelSlot && (h("slot", { key: '4366e85887325f5f50045c94c70bffcb5f059ca2', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '1e2afa26586e93ae7a1097e1140633b8aecd2ab8', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '3dbf99d7d5f82f4ab2709eeda67a8f6196068af8', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: '885e7c74abd3566de386c4c8437d0e5778bc270d', name: 'error', slot: 'error' })), h("div", { key: '8fa79d544162ccc63b28552edd33331352aceca4', class: field({
332
+ return (h(ThemedHost, { key: '09b8254690a1603271faac4d9653c90a582a4766' }, h("p-field-container", { key: '776ed3812a980004c1cdc1b6c5b79df5908b383e', forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
333
+ (!!this.error?.length && this.forceShowTooltip), id: id, label: this.label, align: this.align, loading: this.loading, loadingSize: this.size, helper: this.helper, error: this.error, required: this.required, showOptional: this.showOptional, variant: this.variant }, hasLabelSlot && (h("slot", { key: '597e07f1227421eb34575f2c35a5f752f60a66a3', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '0ec1fd3a079f51c605b593e90d8514119ae0ffa3', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: 'c71b52f8f6f8fc374e9d7e0c2ed4f838c9f9cb86', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: 'd62e1c5f5592540dacbb2e18cf5cc560efbbc5a4', name: 'error', slot: 'error' })), h("div", { key: '7d30604708a80bd509b5d739e46d82b5fa23b464', class: field({
334
334
  error: !!this.error?.length,
335
335
  disabled: asBoolean(this.disabled),
336
336
  focused: asBoolean(this.focused) || this._focused,
@@ -341,7 +341,7 @@ export class Field {
341
341
  ? `${this.value}`
342
342
  : undefined, slot: 'content' }, (this.error?.length ||
343
343
  prefix ||
344
- (this.icon && this.iconPosition === 'start')) && (h("div", { key: '5ab24c6ec8006d44135e82ea3cf46bc27c098591', class: prefixAndSuffix({
344
+ (this.icon && this.iconPosition === 'start')) && (h("div", { key: 'b4b203ba8f20620b2d7f368d2c6367bdadea9878', class: prefixAndSuffix({
345
345
  variant: this.variant,
346
346
  error: !!this.error?.length,
347
347
  disabled: asBoolean(this.disabled),
@@ -351,7 +351,7 @@ export class Field {
351
351
  }), onClick: () => this._focusInput() }, (this.icon && this.iconPosition === 'start') ||
352
352
  this.error?.length ? (h("p-icon", { class: cn('flex', {
353
353
  'mt-1': this.variant === 'read' && this.size === 'base',
354
- }), variant: this.error?.length ? 'warning' : this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '7c073526b37f4c300e6906b2b934435e5d5482ad', class: prefixAndSuffix({
354
+ }), variant: this.error?.length ? 'warning' : this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '5fe27dcdc61d7ba5646ecd6e062ad51f808dc4dd', class: prefixAndSuffix({
355
355
  variant: this.variant,
356
356
  error: !!this.error?.length,
357
357
  disabled: asBoolean(this.disabled),
@@ -686,8 +686,8 @@ export class Field {
686
686
  "references": {
687
687
  "IconVariant": {
688
688
  "location": "import",
689
- "path": "../../../atoms/icon/icon.component",
690
- "id": "src/components/atoms/icon/icon.component.tsx::IconVariant",
689
+ "path": "../../../../types",
690
+ "id": "src/types/index.ts::IconVariant",
691
691
  "referenceLocation": "IconVariant"
692
692
  }
693
693
  }
@@ -712,8 +712,8 @@ export class Field {
712
712
  "references": {
713
713
  "IconFlipOptions": {
714
714
  "location": "import",
715
- "path": "../../../atoms/icon/icon.component",
716
- "id": "src/components/atoms/icon/icon.component.tsx::IconFlipOptions",
715
+ "path": "../../../../types",
716
+ "id": "src/types/index.ts::IconFlipOptions",
717
717
  "referenceLocation": "IconFlipOptions"
718
718
  }
719
719
  }
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { cva } from "class-variance-authority";
3
- import { cn } from "../../../utils/cn";
4
3
  import { ThemedHost } from "../../../internal/themed-host.component";
4
+ import { cn } from "../../../utils/cn";
5
5
  const label = cva(['flex items-center justify-center gap-2', 'h-6 rounded-full'], {
6
6
  variants: {
7
7
  variant: {
@@ -69,14 +69,14 @@ export class Label {
69
69
  */
70
70
  keepMobileContent = false;
71
71
  render() {
72
- return (h(ThemedHost, { key: '352339f0b1a3d84538d720ee440fe05ff217309e' }, h("div", { key: '16a586bd9ea9c03071c7bc24701a32dc860b7672', class: label({
72
+ return (h(ThemedHost, { key: '53d97bb000a19617372b807e32bc9902758de3b2' }, h("div", { key: '4f1c2e4b9dd25972a2ab5146234a6166ee71bc27', class: label({
73
73
  variant: this.variant,
74
74
  iconOnly: this.iconOnly,
75
75
  keepMobileContent: this.keepMobileContent,
76
- }) }, this.icon && (h("p-icon", { key: '739795aac5c2b21760322c3a19313d97721a28e4', class: 'flex-shrink-0', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), !this.iconOnly && (h("div", { key: 'b1beb3792b5184f2a790214037176ca9fbbf51d1', class: cn('flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium', {
76
+ }) }, this.icon && (h("p-icon", { key: '24ec81f74dfeea24990a76edac38ccdc79490e88', class: 'flex-shrink-0', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), !this.iconOnly && (h("div", { key: 'd0b89fc24b7304a8e61e5157bcf4bdae3bdb26ca', class: cn('flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium', {
77
77
  hidden: !this.keepMobileContent,
78
78
  'desktop-xs:block': !this.keepMobileContent,
79
- }) }, h("slot", { key: 'c0f471b10e4129a27128f296615809bf0a50fe26' }))))));
79
+ }) }, h("slot", { key: 'ad87aa170cc6f7980678a1cfc25f5dbdf510127e' }))))));
80
80
  }
81
81
  static get is() { return "p-label"; }
82
82
  static get encapsulation() { return "shadow"; }
@@ -141,8 +141,8 @@ export class Label {
141
141
  "references": {
142
142
  "IconVariant": {
143
143
  "location": "import",
144
- "path": "../../atoms/icon/icon.component",
145
- "id": "src/components/atoms/icon/icon.component.tsx::IconVariant",
144
+ "path": "../../../types",
145
+ "id": "src/types/index.ts::IconVariant",
146
146
  "referenceLocation": "IconVariant"
147
147
  }
148
148
  }
@@ -167,8 +167,8 @@ export class Label {
167
167
  "references": {
168
168
  "IconFlipOptions": {
169
169
  "location": "import",
170
- "path": "../../atoms/icon/icon.component",
171
- "id": "src/components/atoms/icon/icon.component.tsx::IconFlipOptions",
170
+ "path": "../../../types",
171
+ "id": "src/types/index.ts::IconFlipOptions",
172
172
  "referenceLocation": "IconFlipOptions"
173
173
  }
174
174
  }
@@ -76,13 +76,13 @@ export class NavigationItem {
76
76
  render() {
77
77
  const TagType = this.as;
78
78
  const active = asBoolean(this.active) || this.class?.includes('active');
79
- return (h(ThemedHost, { key: '2e7066aee617a177b242666fcadcfea3cb65df16', class: cn('p-navigation-item inline-block', this.class) }, h(TagType, { key: '47710972a16343313540ede4722810b80cf85f47', class: navigationItem({
79
+ return (h(ThemedHost, { key: 'bbbc6fe9a5cbb86e272b031619120aa4de22dd1d', class: cn('p-navigation-item inline-block', this.class) }, h(TagType, { key: '0bd8377b3e5a0d0a5ad987ecc039364935093b60', class: navigationItem({
80
80
  icon: !!this.icon,
81
81
  active,
82
- }), href: this.href, target: this.target }, h("div", { key: '1a7b0bd626a8948a8a1d05af95997b6d45d93060', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: 'b5103612d94f7bbc5f03e3d56c636ed3739eaedc', variant: this.icon })), h("span", { key: '363a060ce7b0e6a5f3f1d3754a88f7a72d578f61', class: cn({
82
+ }), href: this.href, target: this.target }, h("div", { key: '4be9bc173eaa742240660646fb01f98ba9ccb063', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: '011712d489f21e6f339e89319c6fda9582e50b7b', variant: this.icon })), h("span", { key: '5074414a36d7c7a6662ccdd49c1486a868952d0c', class: cn({
83
83
  'has-counter': !!this.counter,
84
84
  'w-full': this.applyFullWidth,
85
- }) }, h("slot", { key: '3d05c31d3077f3f702448180d7e1343b1764222c' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: '06449bc05229257d58924f3046363c766555264f' }, this.counter)), !!this.loading && h("p-loader", { key: '117bc20bee87dc9798261f8937b20a36cb18ce61', class: 'ml-auto' }))));
85
+ }) }, h("slot", { key: '32ffee98ef6e055203ab5b10f1c87fc06a0afc5d' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: '5579ff2571fbabae627e34df722ee0a641b59516' }, this.counter)), !!this.loading && h("p-loader", { key: '3fbd06bbe36c9110c0707d07389e4d75d98f5b92', class: 'ml-auto' }))));
86
86
  }
87
87
  static get is() { return "p-navigation-item"; }
88
88
  static get encapsulation() { return "scoped"; }
@@ -107,8 +107,8 @@ export class NavigationItem {
107
107
  "references": {
108
108
  "IconVariant": {
109
109
  "location": "import",
110
- "path": "../../../atoms/icon/icon.component",
111
- "id": "src/components/atoms/icon/icon.component.tsx::IconVariant",
110
+ "path": "../../../../types/icon",
111
+ "id": "src/types/icon.ts::IconVariant",
112
112
  "referenceLocation": "IconVariant"
113
113
  }
114
114
  }
@@ -6,7 +6,7 @@ export class NavigationSection {
6
6
  */
7
7
  header;
8
8
  render() {
9
- return (h(ThemedHost, { key: '0f14e413b11565881c5c7c2797656346584072a2', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '3bfe95db110fe759949aebfb7f2eca1dbe3c6449' }, this.header)), h("div", { key: '22dd51802172cbd455913411d60e8dfd77332028', class: 'flex flex-col' }, h("slot", { key: '2b3a6468891d734102fb31a5f7f3a93fd1b15493' }))));
9
+ return (h(ThemedHost, { key: '48a3739b23a5667754b5ce508a4ec8d51aa279ad', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '90d471c5dc92baf8a061e4b97704420eb7a38220' }, this.header)), h("div", { key: '2f69adac8e2c4ae37d1c5199445d577d5fcfa0e9', class: 'flex flex-col' }, h("slot", { key: '427d96574e5bdbfc4db3a0c2ff86470a6672868a' }))));
10
10
  }
11
11
  static get is() { return "p-navigation-section"; }
12
12
  static get originalStyleUrls() {