@paperless/core 2.6.3 → 2.7.0

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 (696) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/build/index.esm.js +1 -1
  3. package/dist/build/index.esm.js.map +1 -1
  4. package/dist/build/{p-d8c60f3c.entry.js → p-02a5ba4c.entry.js} +2 -2
  5. package/dist/build/{p-1f45e45a.entry.js → p-0720742f.entry.js} +2 -2
  6. package/dist/{paperless/p-993afcc3.entry.js → build/p-07e3e30d.entry.js} +2 -2
  7. package/dist/build/{p-84979460.entry.js → p-0e9d3d2f.entry.js} +2 -2
  8. package/dist/build/{p-542a718b.entry.js → p-0f438d6f.entry.js} +2 -2
  9. package/dist/{paperless/p-53b913b4.entry.js → build/p-112f1a9a.entry.js} +2 -2
  10. package/dist/build/{p-419077c3.entry.js → p-12c0b2c1.entry.js} +2 -2
  11. package/dist/build/{p-6581ce9c.entry.js → p-13317dea.entry.js} +2 -2
  12. package/dist/build/{p-21bb6e96.entry.js → p-146cdc9a.entry.js} +2 -2
  13. package/dist/build/{p-59ab69e0.entry.js → p-1687f809.entry.js} +2 -2
  14. package/dist/build/p-1e3a00fe.entry.js +2 -0
  15. package/dist/build/{p-9a5d6efb.entry.js → p-1f97d5ba.entry.js} +2 -2
  16. package/dist/build/{p-78403aa3.entry.js → p-2770aacd.entry.js} +2 -2
  17. package/dist/build/{p-00e39694.entry.js → p-318e4b82.entry.js} +2 -2
  18. package/dist/{paperless/p-4e7c1803.entry.js → build/p-34bd3730.entry.js} +2 -2
  19. package/dist/build/{p-a9ba2e62.entry.js → p-35338296.entry.js} +2 -2
  20. package/dist/{paperless/p-9ab2cb8d.entry.js → build/p-364d8401.entry.js} +2 -2
  21. package/dist/{paperless/p-fbd40be8.entry.js → build/p-3edcd351.entry.js} +2 -2
  22. package/dist/build/{p-0fe51ad0.entry.js → p-41567df7.entry.js} +2 -2
  23. package/dist/{paperless/p-fa78c45a.entry.js → build/p-4891bb38.entry.js} +2 -2
  24. package/dist/build/{p-1a551082.entry.js → p-491389e5.entry.js} +2 -2
  25. package/dist/build/{p-805bad94.entry.js → p-4a8ff191.entry.js} +2 -2
  26. package/dist/build/{p-37bdbb19.entry.js → p-4fcc39f7.entry.js} +2 -2
  27. package/dist/build/p-50010f40.entry.js +2 -0
  28. package/dist/build/p-50010f40.entry.js.map +1 -0
  29. package/dist/build/{p-20f5071b.entry.js → p-5268f0bc.entry.js} +2 -2
  30. package/dist/build/p-6b5f80a0.entry.js +2 -0
  31. package/dist/build/p-6b5f80a0.entry.js.map +1 -0
  32. package/dist/build/p-6c02bbb0.entry.js +2 -0
  33. package/dist/build/p-6c02bbb0.entry.js.map +1 -0
  34. package/dist/build/{p-3e2d2587.entry.js → p-718ba1f3.entry.js} +3 -3
  35. package/dist/build/{p-f1f4ba5c.js → p-73bdbb8b.js} +1 -1
  36. package/dist/build/{p-827b1bd0.entry.js → p-775d1f94.entry.js} +2 -2
  37. package/dist/{paperless/p-925d7ffc.entry.js → build/p-7e13aa00.entry.js} +2 -2
  38. package/dist/build/{p-2366e61d.entry.js → p-80609f67.entry.js} +2 -2
  39. package/dist/{paperless/p-b176abc5.entry.js → build/p-8332b7f6.entry.js} +2 -2
  40. package/dist/build/{p-27b62457.entry.js → p-835abd94.entry.js} +2 -2
  41. package/dist/{paperless/p-6fdd90eb.entry.js → build/p-8c96207e.entry.js} +2 -2
  42. package/dist/build/{p-2acef846.entry.js → p-8cc2dc9f.entry.js} +2 -2
  43. package/dist/build/{p-81d7ca4b.entry.js → p-8ee8d5e6.entry.js} +2 -2
  44. package/dist/{paperless/p-918229ab.entry.js → build/p-95cacdf1.entry.js} +2 -2
  45. package/dist/{paperless/p-97570c84.entry.js → build/p-9ea16d5d.entry.js} +2 -2
  46. package/dist/{paperless/p-7f1f62c2.entry.js → build/p-9ecab5af.entry.js} +2 -2
  47. package/dist/{paperless/p-DhGo7hbh.js → build/p-CNnSbQbk.js} +2 -2
  48. package/dist/{paperless/p-DhGo7hbh.js.map → build/p-CNnSbQbk.js.map} +1 -1
  49. package/dist/build/p-Cw3Hhv5N.js +2 -0
  50. package/dist/build/p-Cw3Hhv5N.js.map +1 -0
  51. package/dist/build/p-EKSDxqjG.js +2 -0
  52. package/dist/build/p-EKSDxqjG.js.map +1 -0
  53. package/dist/build/p-X28EVNq0.js +2 -0
  54. package/dist/build/p-X28EVNq0.js.map +1 -0
  55. package/dist/build/{p-cbd7870f.entry.js → p-a106f17c.entry.js} +2 -2
  56. package/dist/build/p-ae7b0672.entry.js +2 -0
  57. package/dist/build/{p-dc21ccd3.entry.js → p-b3dfeaaa.entry.js} +2 -2
  58. package/dist/build/p-b54d5ecf.css +1 -0
  59. package/dist/{paperless/p-c1d4c641.entry.js → build/p-bb77ae46.entry.js} +2 -2
  60. package/dist/build/{p-9c277029.entry.js → p-bcbcbffe.entry.js} +2 -2
  61. package/dist/{paperless/p-9c653182.entry.js → build/p-c5867976.entry.js} +2 -2
  62. package/dist/{paperless/p-54428a6a.entry.js → build/p-c9870068.entry.js} +2 -2
  63. package/dist/build/p-calendar.entry.esm.js.map +1 -1
  64. package/dist/build/p-card-container.entry.esm.js.map +1 -1
  65. package/dist/{paperless/p-d9a3295f.entry.js → build/p-cdeae6b0.entry.js} +2 -2
  66. package/dist/{paperless/p-eb66dfac.entry.js → build/p-d09bba4f.entry.js} +2 -2
  67. package/dist/{paperless/p-a3273e15.entry.js → build/p-d3fba507.entry.js} +2 -2
  68. package/dist/build/p-d7f0d02f.entry.js +2 -0
  69. package/dist/build/p-d7f0d02f.entry.js.map +1 -0
  70. package/dist/build/p-datepicker.entry.esm.js.map +1 -1
  71. package/dist/{paperless/p-6cb78d87.entry.js → build/p-e0c437fe.entry.js} +2 -2
  72. package/dist/build/{p-8325525f.entry.js → p-e20184ea.entry.js} +2 -2
  73. package/dist/{paperless/p-0b3af128.entry.js → build/p-e2cc514b.entry.js} +2 -2
  74. package/dist/build/{p-317e4698.entry.js → p-fbbe58f8.entry.js} +2 -2
  75. package/dist/build/{p-b8b570c4.entry.js → p-ff624855.entry.js} +2 -2
  76. package/dist/build/p-navbar.entry.esm.js.map +1 -1
  77. package/dist/build/paperless.css +1 -1
  78. package/dist/build/paperless.esm.js +1 -1
  79. package/dist/cjs/{index-BDuPp9vl.js → index-BJGYQ0sK.js} +18 -2
  80. package/dist/cjs/{index-BDuPp9vl.js.map → index-BJGYQ0sK.js.map} +1 -1
  81. package/dist/cjs/{index-FAqASDWS.js → index-Dt9qqH1T.js} +405 -71
  82. package/dist/cjs/index-Dt9qqH1T.js.map +1 -0
  83. package/dist/cjs/index.cjs.js +26 -18
  84. package/dist/cjs/index.cjs.js.map +1 -1
  85. package/dist/cjs/loader.cjs.js +1 -1
  86. package/dist/cjs/p-accordion.cjs.entry.js +3 -3
  87. package/dist/cjs/p-attachment.cjs.entry.js +7 -7
  88. package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
  89. package/dist/cjs/p-avatar.cjs.entry.js +1 -1
  90. package/dist/cjs/p-backdrop.cjs.entry.js +1 -1
  91. package/dist/cjs/p-badge_3.cjs.entry.js +4 -4
  92. package/dist/cjs/p-button-group.cjs.entry.js +2 -2
  93. package/dist/cjs/p-button_3.cjs.entry.js +1 -1
  94. package/dist/cjs/p-calendar.cjs.entry.js +13 -6
  95. package/dist/cjs/p-calendar.cjs.entry.js.map +1 -1
  96. package/dist/cjs/p-calendar.entry.cjs.js.map +1 -1
  97. package/dist/cjs/p-card-body.cjs.entry.js +1 -1
  98. package/dist/cjs/p-card-container.cjs.entry.js +15 -5
  99. package/dist/cjs/p-card-container.cjs.entry.js.map +1 -1
  100. package/dist/cjs/p-card-container.entry.cjs.js.map +1 -1
  101. package/dist/cjs/p-card-header.cjs.entry.js +4 -4
  102. package/dist/cjs/p-checkbox_4.cjs.entry.js +13 -13
  103. package/dist/cjs/p-content-slider.cjs.entry.js +3 -3
  104. package/dist/cjs/p-cropper.cjs.entry.js +2 -2
  105. package/dist/cjs/p-datepicker.cjs.entry.js +23 -6
  106. package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
  107. package/dist/cjs/p-datepicker.entry.cjs.js.map +1 -1
  108. package/dist/cjs/p-divider.cjs.entry.js +4 -4
  109. package/dist/cjs/p-drawer-body_3.cjs.entry.js +5 -5
  110. package/dist/cjs/p-drawer.cjs.entry.js +1 -1
  111. package/dist/cjs/p-empty-state_8.cjs.entry.js +11 -11
  112. package/dist/cjs/p-field_2.cjs.entry.js +5 -5
  113. package/dist/cjs/p-floating-menu-item.cjs.entry.js +3 -3
  114. package/dist/cjs/p-helper_2.cjs.entry.js +4 -4
  115. package/dist/cjs/p-iban-icon.cjs.entry.js +1 -1
  116. package/dist/cjs/p-illustration-deprecated.cjs.entry.js +1 -1
  117. package/dist/cjs/p-illustration.cjs.entry.js +1 -1
  118. package/dist/cjs/p-info-panel.cjs.entry.js +2 -2
  119. package/dist/cjs/p-label.cjs.entry.js +4 -4
  120. package/dist/cjs/p-layout.cjs.entry.js +2 -2
  121. package/dist/cjs/p-listing-item.cjs.entry.js +2 -2
  122. package/dist/cjs/p-listing-line.cjs.entry.js +2 -2
  123. package/dist/cjs/p-listing.cjs.entry.js +3 -3
  124. package/dist/cjs/p-modal-body_4.cjs.entry.js +7 -7
  125. package/dist/cjs/p-modal.cjs.entry.js +1 -1
  126. package/dist/cjs/p-navbar.cjs.entry.js +8 -5
  127. package/dist/cjs/p-navbar.cjs.entry.js.map +1 -1
  128. package/dist/cjs/p-navbar.entry.cjs.js.map +1 -1
  129. package/dist/cjs/p-navigation-item.cjs.entry.js +3 -3
  130. package/dist/cjs/p-navigation-section.cjs.entry.js +2 -2
  131. package/dist/cjs/p-navigation-title.cjs.entry.js +2 -2
  132. package/dist/cjs/p-pagination-pages-item.cjs.entry.js +3 -3
  133. package/dist/cjs/p-pagination_3.cjs.entry.js +5 -5
  134. package/dist/cjs/p-profile.cjs.entry.js +1 -1
  135. package/dist/cjs/p-radio.cjs.entry.js +4 -4
  136. package/dist/cjs/p-range.cjs.entry.js +3 -3
  137. package/dist/cjs/p-select.cjs.entry.js +2 -2
  138. package/dist/cjs/p-smile.cjs.entry.js +2 -2
  139. package/dist/cjs/p-stepper-item_2.cjs.entry.js +6 -6
  140. package/dist/cjs/p-stepper.cjs.entry.js +1 -1
  141. package/dist/cjs/p-tab-container.cjs.entry.js +2 -2
  142. package/dist/cjs/p-tab-item.cjs.entry.js +2 -2
  143. package/dist/cjs/p-table-column.cjs.entry.js +1 -1
  144. package/dist/cjs/p-table-row-action.cjs.entry.js +1 -1
  145. package/dist/cjs/p-table.cjs.entry.js +1 -1
  146. package/dist/cjs/p-toast-container.cjs.entry.js +3 -3
  147. package/dist/cjs/p-toast.cjs.entry.js +2 -2
  148. package/dist/cjs/p-toggle.cjs.entry.js +4 -4
  149. package/dist/cjs/paperless.cjs.js +1 -1
  150. package/dist/cjs/state-9Y65F5kb.js +253 -0
  151. package/dist/cjs/state-9Y65F5kb.js.map +1 -0
  152. package/dist/cjs/themed-host.component-DFEbe48h.js +13 -0
  153. package/dist/cjs/themed-host.component-DFEbe48h.js.map +1 -0
  154. package/dist/collection/components/atoms/card/container/card-container.component.css +1 -1
  155. package/dist/collection/components/atoms/card/container/card-container.component.js +12 -3
  156. package/dist/collection/components/atoms/card/container/card-container.component.js.map +1 -1
  157. package/dist/collection/components/atoms/card/header/card-header.component.js +3 -3
  158. package/dist/collection/components/atoms/checkbox/checkbox.component.js +4 -4
  159. package/dist/collection/components/atoms/divider/divider.component.js +3 -3
  160. package/dist/collection/components/atoms/drawer/body/drawer-body.component.js +1 -1
  161. package/dist/collection/components/atoms/drawer/container/drawer-container.component.js +2 -2
  162. package/dist/collection/components/atoms/drawer/header/drawer-header.component.js +1 -1
  163. package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.js +3 -3
  164. package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +3 -3
  165. package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +2 -2
  166. package/dist/collection/components/atoms/helper/helper.component.js +1 -1
  167. package/dist/collection/components/atoms/info-panel/info-panel.component.js +1 -1
  168. package/dist/collection/components/atoms/layout/layout.component.js +1 -1
  169. package/dist/collection/components/atoms/listing/item/listing-item.component.js +1 -1
  170. package/dist/collection/components/atoms/listing/line/listing-line.component.js +1 -1
  171. package/dist/collection/components/atoms/modal/body/modal-body.component.js +2 -2
  172. package/dist/collection/components/atoms/modal/container/modal-container.component.js +2 -2
  173. package/dist/collection/components/atoms/modal/footer/modal-footer.component.js +1 -1
  174. package/dist/collection/components/atoms/modal/header/modal-header.component.js +1 -1
  175. package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
  176. package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.js +2 -2
  177. package/dist/collection/components/atoms/radio/radio.component.js +3 -3
  178. package/dist/collection/components/atoms/segment/container/segment-container.component.js +1 -1
  179. package/dist/collection/components/atoms/segment/item/segment-item.component.js +2 -2
  180. package/dist/collection/components/atoms/smile/smile.component.js +1 -1
  181. package/dist/collection/components/atoms/stepper/item/stepper-item.component.js +4 -4
  182. package/dist/collection/components/atoms/stepper/line/stepper-line.component.js +1 -1
  183. package/dist/collection/components/atoms/tab/container/tab-container.component.js +1 -1
  184. package/dist/collection/components/atoms/tab/item/tab-item.component.js +1 -1
  185. package/dist/collection/components/atoms/table/actions-container/table-container.component.js +1 -1
  186. package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +1 -1
  187. package/dist/collection/components/atoms/toast-container/toast-container.component.js +2 -2
  188. package/dist/collection/components/atoms/toggle/toggle.component.js +3 -3
  189. package/dist/collection/components/atoms/tooltip/tooltip.component.js +2 -2
  190. package/dist/collection/components/molecules/accordion/accordion.component.js +2 -2
  191. package/dist/collection/components/molecules/attachment/attachment.component.js +6 -6
  192. package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
  193. package/dist/collection/components/molecules/calendar/calendar.component.js +12 -4
  194. package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -1
  195. package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
  196. package/dist/collection/components/molecules/cropper/cropper.component.js +1 -1
  197. package/dist/collection/components/molecules/datepicker/datepicker.component.js +22 -4
  198. package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -1
  199. package/dist/collection/components/molecules/dropdown/dropdown.component.js +2 -2
  200. package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
  201. package/dist/collection/components/molecules/field/field/field.component.js +4 -4
  202. package/dist/collection/components/molecules/label/label.component.js +3 -3
  203. package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +2 -2
  204. package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
  205. package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +1 -1
  206. package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
  207. package/dist/collection/components/molecules/range/range.component.js +2 -2
  208. package/dist/collection/components/molecules/select/select.component.js +1 -1
  209. package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
  210. package/dist/collection/components/molecules/table/footer/table-footer.component.js +2 -2
  211. package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
  212. package/dist/collection/components/molecules/toast/toast.component.js +1 -1
  213. package/dist/collection/components/organisms/listing/listing.component.js +2 -2
  214. package/dist/collection/components/organisms/navbar/navbar.component.css +1 -1
  215. package/dist/collection/components/organisms/navbar/navbar.component.js +6 -4
  216. package/dist/collection/components/organisms/navbar/navbar.component.js.map +1 -1
  217. package/dist/collection/index.js +2 -1
  218. package/dist/collection/index.js.map +1 -1
  219. package/dist/collection/internal/themed-host.component.js +6 -0
  220. package/dist/collection/internal/themed-host.component.js.map +1 -0
  221. package/dist/collection/state.js +36 -0
  222. package/dist/collection/state.js.map +1 -0
  223. package/dist/collection/tailwind/theme/colors.js +1 -0
  224. package/dist/collection/tailwind/theme/colors.js.map +1 -1
  225. package/dist/collection/tailwind.config.js +1 -0
  226. package/dist/collection/tailwind.config.js.map +1 -1
  227. package/dist/components/index.js +12 -10
  228. package/dist/components/index.js.map +1 -1
  229. package/dist/components/{p-DWsW_D0V.js → p-4sqhIpUp.js} +3 -3
  230. package/dist/components/{p-DWsW_D0V.js.map → p-4sqhIpUp.js.map} +1 -1
  231. package/dist/components/{p-CDF0u5fl.js → p-6cqiSGZO.js} +14 -14
  232. package/dist/components/{p-CDF0u5fl.js.map → p-6cqiSGZO.js.map} +1 -1
  233. package/dist/components/{p-C-RgoZv4.js → p-B0skInOM.js} +5 -5
  234. package/dist/components/{p-C-RgoZv4.js.map → p-B0skInOM.js.map} +1 -1
  235. package/dist/components/{p-BRnY1zdf.js → p-B9bfyk_o.js} +5 -5
  236. package/dist/components/{p-BRnY1zdf.js.map → p-B9bfyk_o.js.map} +1 -1
  237. package/dist/components/{p-RuhxHrdY.js → p-BA2VuVYJ.js} +8 -8
  238. package/dist/components/{p-RuhxHrdY.js.map → p-BA2VuVYJ.js.map} +1 -1
  239. package/dist/components/p-BSL5cktm.js +11 -0
  240. package/dist/components/p-BSL5cktm.js.map +1 -0
  241. package/dist/components/{p-3Uu9SRMg.js → p-Bfmp3OPx.js} +8 -8
  242. package/dist/components/{p-3Uu9SRMg.js.map → p-Bfmp3OPx.js.map} +1 -1
  243. package/dist/components/{p-C6RWkimA.js → p-BiWMxBAJ.js} +6 -6
  244. package/dist/components/{p-C6RWkimA.js.map → p-BiWMxBAJ.js.map} +1 -1
  245. package/dist/components/{p-BUp9ElaY.js → p-BjzvlPmK.js} +13 -13
  246. package/dist/components/{p-BUp9ElaY.js.map → p-BjzvlPmK.js.map} +1 -1
  247. package/dist/components/{p-Da0Vk5zI.js → p-BxaMa-zX.js} +5 -5
  248. package/dist/components/{p-Da0Vk5zI.js.map → p-BxaMa-zX.js.map} +1 -1
  249. package/dist/components/{p-CR36e-YR.js → p-C2Em7CPU.js} +3 -3
  250. package/dist/components/{p-CR36e-YR.js.map → p-C2Em7CPU.js.map} +1 -1
  251. package/dist/components/{p-D30EqV3s.js → p-C3NM3TpX.js} +4 -4
  252. package/dist/components/{p-D30EqV3s.js.map → p-C3NM3TpX.js.map} +1 -1
  253. package/dist/components/{p-BJg6oRaH.js → p-C5ARltpo.js} +420 -80
  254. package/dist/components/p-C5ARltpo.js.map +1 -0
  255. package/dist/components/{p-Bn6Arg73.js → p-C6GU5tE5.js} +5 -5
  256. package/dist/components/{p-Bn6Arg73.js.map → p-C6GU5tE5.js.map} +1 -1
  257. package/dist/components/{p-DKYj0xlY.js → p-C6zgmyle.js} +8 -8
  258. package/dist/components/{p-DKYj0xlY.js.map → p-C6zgmyle.js.map} +1 -1
  259. package/dist/components/{p-CvfOjT_y.js → p-CEFg09mj.js} +3 -3
  260. package/dist/components/{p-CvfOjT_y.js.map → p-CEFg09mj.js.map} +1 -1
  261. package/dist/components/p-CNxD99na.js +247 -0
  262. package/dist/components/p-CNxD99na.js.map +1 -0
  263. package/dist/components/{p-DwtD7Wpi.js → p-CQD0GsAo.js} +7 -7
  264. package/dist/components/{p-DwtD7Wpi.js.map → p-CQD0GsAo.js.map} +1 -1
  265. package/dist/components/{p-tdjn65Lz.js → p-CRSKFTLB.js} +17 -3
  266. package/dist/components/p-CRSKFTLB.js.map +1 -0
  267. package/dist/components/{p-rlO7JrUU.js → p-CUIjth2u.js} +7 -7
  268. package/dist/components/{p-rlO7JrUU.js.map → p-CUIjth2u.js.map} +1 -1
  269. package/dist/components/{p-BBDZj5F5.js → p-C_G1K6W7.js} +5 -5
  270. package/dist/components/{p-BBDZj5F5.js.map → p-C_G1K6W7.js.map} +1 -1
  271. package/dist/components/{p-CSIFLNsS.js → p-Cd8bEp0e.js} +4 -4
  272. package/dist/components/{p-CSIFLNsS.js.map → p-Cd8bEp0e.js.map} +1 -1
  273. package/dist/components/{p-v8ShN4Lu.js → p-CeV3e9Ed.js} +15 -15
  274. package/dist/components/{p-v8ShN4Lu.js.map → p-CeV3e9Ed.js.map} +1 -1
  275. package/dist/components/{p-5F7i7JYI.js → p-CkEQyy75.js} +6 -6
  276. package/dist/components/{p-5F7i7JYI.js.map → p-CkEQyy75.js.map} +1 -1
  277. package/dist/components/{p-CI2j2oC1.js → p-CqCcGAN-.js} +8 -8
  278. package/dist/components/{p-CI2j2oC1.js.map → p-CqCcGAN-.js.map} +1 -1
  279. package/dist/components/{p-DUJkO2n3.js → p-CwI9SpGk.js} +6 -6
  280. package/dist/components/{p-DUJkO2n3.js.map → p-CwI9SpGk.js.map} +1 -1
  281. package/dist/components/{p-9uqRVS0-.js → p-CzlGgwa6.js} +6 -6
  282. package/dist/components/{p-9uqRVS0-.js.map → p-CzlGgwa6.js.map} +1 -1
  283. package/dist/components/{p-C3sIHSTA.js → p-DAPYNh1W.js} +4 -4
  284. package/dist/components/{p-C3sIHSTA.js.map → p-DAPYNh1W.js.map} +1 -1
  285. package/dist/components/{p-D_goLzIz.js → p-DCncXHn8.js} +4 -4
  286. package/dist/components/{p-D_goLzIz.js.map → p-DCncXHn8.js.map} +1 -1
  287. package/dist/components/{p-wXp3GFHo.js → p-DD9o0VSs.js} +4 -4
  288. package/dist/components/{p-wXp3GFHo.js.map → p-DD9o0VSs.js.map} +1 -1
  289. package/dist/components/{p-BBZqWGjs.js → p-DHpGjClN.js} +15 -15
  290. package/dist/components/{p-BBZqWGjs.js.map → p-DHpGjClN.js.map} +1 -1
  291. package/dist/components/{p-CK0zv8Hv.js → p-DKyqEQOI.js} +5 -5
  292. package/dist/components/{p-CK0zv8Hv.js.map → p-DKyqEQOI.js.map} +1 -1
  293. package/dist/components/{p-3V3jLJ40.js → p-DQTEQ5vY.js} +7 -7
  294. package/dist/components/{p-3V3jLJ40.js.map → p-DQTEQ5vY.js.map} +1 -1
  295. package/dist/components/{p-DxmvFiF3.js → p-DVuwVg4C.js} +3 -3
  296. package/dist/components/{p-DxmvFiF3.js.map → p-DVuwVg4C.js.map} +1 -1
  297. package/dist/components/{p-DRnTySb-.js → p-DbR2eHRM.js} +3 -3
  298. package/dist/components/{p-DRnTySb-.js.map → p-DbR2eHRM.js.map} +1 -1
  299. package/dist/components/{p-Fa6eP7ZQ.js → p-DeobaUTR.js} +6 -6
  300. package/dist/components/{p-Fa6eP7ZQ.js.map → p-DeobaUTR.js.map} +1 -1
  301. package/dist/components/{p-DC4qozte.js → p-DkDvtuHb.js} +9 -9
  302. package/dist/components/{p-DC4qozte.js.map → p-DkDvtuHb.js.map} +1 -1
  303. package/dist/components/{p-DI407tdD.js → p-DktGBJJX.js} +5 -5
  304. package/dist/components/{p-DI407tdD.js.map → p-DktGBJJX.js.map} +1 -1
  305. package/dist/components/{p-CVgaeLBB.js → p-DsH8IdGu.js} +6 -6
  306. package/dist/components/{p-CVgaeLBB.js.map → p-DsH8IdGu.js.map} +1 -1
  307. package/dist/components/{p-Cb7zGv2a.js → p-Dzc909RW.js} +5 -5
  308. package/dist/components/{p-Cb7zGv2a.js.map → p-Dzc909RW.js.map} +1 -1
  309. package/dist/components/{p-B8Ai2EJn.js → p-I8WvUr7g.js} +6 -6
  310. package/dist/components/{p-B8Ai2EJn.js.map → p-I8WvUr7g.js.map} +1 -1
  311. package/dist/components/{p-DcB4vo69.js → p-Kd4E5xHS.js} +4 -4
  312. package/dist/components/{p-DcB4vo69.js.map → p-Kd4E5xHS.js.map} +1 -1
  313. package/dist/components/{p-C4WDKcUV.js → p-QuG6bo9L.js} +4 -4
  314. package/dist/components/{p-C4WDKcUV.js.map → p-QuG6bo9L.js.map} +1 -1
  315. package/dist/components/{p-BfzApjOK.js → p-UHgjv8T6.js} +7 -7
  316. package/dist/components/{p-BfzApjOK.js.map → p-UHgjv8T6.js.map} +1 -1
  317. package/dist/components/p-accordion.js +5 -5
  318. package/dist/components/p-attachment.js +13 -13
  319. package/dist/components/p-avatar-group.js +1 -1
  320. package/dist/components/p-avatar.js +1 -1
  321. package/dist/components/p-backdrop.js +1 -1
  322. package/dist/components/p-badge.js +1 -1
  323. package/dist/components/p-button-group.js +2 -2
  324. package/dist/components/p-button.js +1 -1
  325. package/dist/components/p-calendar.js +1 -1
  326. package/dist/components/p-card-body.js +1 -1
  327. package/dist/components/p-card-container.js +14 -5
  328. package/dist/components/p-card-container.js.map +1 -1
  329. package/dist/components/p-card-header.js +7 -7
  330. package/dist/components/p-checkbox.js +1 -1
  331. package/dist/components/p-content-slider.js +3 -3
  332. package/dist/components/p-cropper.js +4 -4
  333. package/dist/components/p-datepicker.js +32 -15
  334. package/dist/components/p-datepicker.js.map +1 -1
  335. package/dist/components/p-divider.js +1 -1
  336. package/dist/components/p-drawer-body.js +1 -1
  337. package/dist/components/p-drawer-container.js +1 -1
  338. package/dist/components/p-drawer-header.js +1 -1
  339. package/dist/components/p-drawer.js +9 -9
  340. package/dist/components/p-dropdown-menu-container.js +1 -1
  341. package/dist/components/p-dropdown-menu-item.js +1 -1
  342. package/dist/components/p-dropdown.js +1 -1
  343. package/dist/components/{p-BjsPeqGD.js → p-e-mjdgYn.js} +3 -3
  344. package/dist/components/{p-BjsPeqGD.js.map → p-e-mjdgYn.js.map} +1 -1
  345. package/dist/components/p-empty-state.js +1 -1
  346. package/dist/components/p-field-container.js +1 -1
  347. package/dist/components/p-field.js +1 -1
  348. package/dist/components/p-floating-menu-container.js +1 -1
  349. package/dist/components/p-floating-menu-item.js +1 -1
  350. package/dist/components/p-helper.js +1 -1
  351. package/dist/components/p-iban-icon.js +1 -1
  352. package/dist/components/p-icon.js +1 -1
  353. package/dist/components/p-illustration-deprecated.js +1 -1
  354. package/dist/components/p-illustration.js +1 -1
  355. package/dist/components/p-info-panel.js +3 -3
  356. package/dist/components/p-label.js +5 -5
  357. package/dist/components/p-layout.js +2 -2
  358. package/dist/components/p-listing-item.js +3 -3
  359. package/dist/components/p-listing-line.js +1 -1
  360. package/dist/components/p-listing.js +4 -4
  361. package/dist/components/p-loader.js +1 -1
  362. package/dist/components/p-modal-body.js +1 -1
  363. package/dist/components/p-modal-container.js +1 -1
  364. package/dist/components/p-modal-footer.js +1 -1
  365. package/dist/components/p-modal-header.js +1 -1
  366. package/dist/components/p-modal.js +11 -11
  367. package/dist/components/p-navbar.js +11 -9
  368. package/dist/components/p-navbar.js.map +1 -1
  369. package/dist/components/p-navigation-item.js +6 -6
  370. package/dist/components/p-navigation-section.js +3 -3
  371. package/dist/components/p-navigation-title.js +1 -1
  372. package/dist/components/p-pagination-pages-item.js +1 -1
  373. package/dist/components/p-pagination-pages.js +1 -1
  374. package/dist/components/p-pagination-size.js +1 -1
  375. package/dist/components/p-pagination.js +1 -1
  376. package/dist/components/p-profile.js +6 -6
  377. package/dist/components/p-radio.js +4 -4
  378. package/dist/components/p-range.js +1 -1
  379. package/dist/components/{p-D3EM8Uiq.js → p-rlGdjFMT.js} +7 -7
  380. package/dist/components/{p-D3EM8Uiq.js.map → p-rlGdjFMT.js.map} +1 -1
  381. package/dist/components/p-segment-container.js +1 -1
  382. package/dist/components/p-segment-item.js +1 -1
  383. package/dist/components/p-select.js +14 -14
  384. package/dist/components/p-smile.js +1 -1
  385. package/dist/components/p-stepper-item.js +1 -1
  386. package/dist/components/p-stepper-line.js +1 -1
  387. package/dist/components/p-stepper.js +3 -3
  388. package/dist/components/p-tab-container.js +3 -3
  389. package/dist/components/p-tab-item.js +2 -2
  390. package/dist/components/p-table-cell.js +1 -1
  391. package/dist/components/p-table-column.js +1 -1
  392. package/dist/components/p-table-container.js +1 -1
  393. package/dist/components/p-table-footer.js +1 -1
  394. package/dist/components/p-table-header.js +1 -1
  395. package/dist/components/p-table-row-action.js +1 -1
  396. package/dist/components/p-table-row-actions-container.js +1 -1
  397. package/dist/components/p-table-row.js +1 -1
  398. package/dist/components/p-table.js +30 -30
  399. package/dist/components/p-toast-container.js +3 -3
  400. package/dist/components/p-toast.js +3 -3
  401. package/dist/components/p-toggle.js +4 -4
  402. package/dist/components/p-tooltip.js +1 -1
  403. package/dist/components/{p-D6gMJJ_3.js → p-u3j0oh8O.js} +8 -8
  404. package/dist/components/{p-D6gMJJ_3.js.map → p-u3j0oh8O.js.map} +1 -1
  405. package/dist/components/{p-v_qRLJr8.js → p-u7w6ZHr0.js} +4 -4
  406. package/dist/components/{p-v_qRLJr8.js.map → p-u7w6ZHr0.js.map} +1 -1
  407. package/dist/esm/{index-DhGo7hbh.js → index-CNnSbQbk.js} +17 -3
  408. package/dist/esm/{index-DhGo7hbh.js.map → index-CNnSbQbk.js.map} +1 -1
  409. package/dist/esm/{index-K1xa0GD1.js → index-EKSDxqjG.js} +404 -71
  410. package/dist/esm/index-EKSDxqjG.js.map +1 -0
  411. package/dist/esm/index.js +12 -9
  412. package/dist/esm/index.js.map +1 -1
  413. package/dist/esm/loader.js +2 -2
  414. package/dist/esm/p-accordion.entry.js +3 -3
  415. package/dist/esm/p-attachment.entry.js +7 -7
  416. package/dist/esm/p-avatar-group.entry.js +1 -1
  417. package/dist/esm/p-avatar.entry.js +1 -1
  418. package/dist/esm/p-backdrop.entry.js +1 -1
  419. package/dist/esm/p-badge_3.entry.js +4 -4
  420. package/dist/esm/p-button-group.entry.js +2 -2
  421. package/dist/esm/p-button_3.entry.js +1 -1
  422. package/dist/esm/p-calendar.entry.js +13 -6
  423. package/dist/esm/p-calendar.entry.js.map +1 -1
  424. package/dist/esm/p-card-body.entry.js +1 -1
  425. package/dist/esm/p-card-container.entry.js +15 -5
  426. package/dist/esm/p-card-container.entry.js.map +1 -1
  427. package/dist/esm/p-card-header.entry.js +4 -4
  428. package/dist/esm/p-checkbox_4.entry.js +13 -13
  429. package/dist/esm/p-content-slider.entry.js +3 -3
  430. package/dist/esm/p-cropper.entry.js +2 -2
  431. package/dist/esm/p-datepicker.entry.js +23 -6
  432. package/dist/esm/p-datepicker.entry.js.map +1 -1
  433. package/dist/esm/p-divider.entry.js +4 -4
  434. package/dist/esm/p-drawer-body_3.entry.js +5 -5
  435. package/dist/esm/p-drawer.entry.js +1 -1
  436. package/dist/esm/p-empty-state_8.entry.js +11 -11
  437. package/dist/esm/p-field_2.entry.js +5 -5
  438. package/dist/esm/p-floating-menu-item.entry.js +3 -3
  439. package/dist/esm/p-helper_2.entry.js +4 -4
  440. package/dist/esm/p-iban-icon.entry.js +1 -1
  441. package/dist/esm/p-illustration-deprecated.entry.js +1 -1
  442. package/dist/esm/p-illustration.entry.js +1 -1
  443. package/dist/esm/p-info-panel.entry.js +2 -2
  444. package/dist/esm/p-label.entry.js +4 -4
  445. package/dist/esm/p-layout.entry.js +2 -2
  446. package/dist/esm/p-listing-item.entry.js +2 -2
  447. package/dist/esm/p-listing-line.entry.js +2 -2
  448. package/dist/esm/p-listing.entry.js +3 -3
  449. package/dist/esm/p-modal-body_4.entry.js +7 -7
  450. package/dist/esm/p-modal.entry.js +1 -1
  451. package/dist/esm/p-navbar.entry.js +8 -5
  452. package/dist/esm/p-navbar.entry.js.map +1 -1
  453. package/dist/esm/p-navigation-item.entry.js +3 -3
  454. package/dist/esm/p-navigation-section.entry.js +2 -2
  455. package/dist/esm/p-navigation-title.entry.js +2 -2
  456. package/dist/esm/p-pagination-pages-item.entry.js +3 -3
  457. package/dist/esm/p-pagination_3.entry.js +5 -5
  458. package/dist/esm/p-profile.entry.js +1 -1
  459. package/dist/esm/p-radio.entry.js +4 -4
  460. package/dist/esm/p-range.entry.js +3 -3
  461. package/dist/esm/p-select.entry.js +2 -2
  462. package/dist/esm/p-smile.entry.js +2 -2
  463. package/dist/esm/p-stepper-item_2.entry.js +6 -6
  464. package/dist/esm/p-stepper.entry.js +1 -1
  465. package/dist/esm/p-tab-container.entry.js +2 -2
  466. package/dist/esm/p-tab-item.entry.js +2 -2
  467. package/dist/esm/p-table-column.entry.js +1 -1
  468. package/dist/esm/p-table-row-action.entry.js +1 -1
  469. package/dist/esm/p-table.entry.js +1 -1
  470. package/dist/esm/p-toast-container.entry.js +3 -3
  471. package/dist/esm/p-toast.entry.js +2 -2
  472. package/dist/esm/p-toggle.entry.js +4 -4
  473. package/dist/esm/paperless.js +2 -2
  474. package/dist/esm/state-BsTOa3w8.js +247 -0
  475. package/dist/esm/state-BsTOa3w8.js.map +1 -0
  476. package/dist/esm/themed-host.component-UpbDmgQR.js +11 -0
  477. package/dist/esm/themed-host.component-UpbDmgQR.js.map +1 -0
  478. package/dist/index.html +1 -1
  479. package/dist/paperless/index.esm.js +1 -1
  480. package/dist/paperless/index.esm.js.map +1 -1
  481. package/dist/paperless/{p-d8c60f3c.entry.js → p-02a5ba4c.entry.js} +2 -2
  482. package/dist/paperless/{p-1f45e45a.entry.js → p-0720742f.entry.js} +2 -2
  483. package/dist/{build/p-993afcc3.entry.js → paperless/p-07e3e30d.entry.js} +2 -2
  484. package/dist/paperless/{p-84979460.entry.js → p-0e9d3d2f.entry.js} +2 -2
  485. package/dist/paperless/{p-542a718b.entry.js → p-0f438d6f.entry.js} +2 -2
  486. package/dist/{build/p-53b913b4.entry.js → paperless/p-112f1a9a.entry.js} +2 -2
  487. package/dist/paperless/{p-419077c3.entry.js → p-12c0b2c1.entry.js} +2 -2
  488. package/dist/paperless/{p-6581ce9c.entry.js → p-13317dea.entry.js} +2 -2
  489. package/dist/paperless/{p-21bb6e96.entry.js → p-146cdc9a.entry.js} +2 -2
  490. package/dist/paperless/{p-59ab69e0.entry.js → p-1687f809.entry.js} +2 -2
  491. package/dist/paperless/p-1e3a00fe.entry.js +2 -0
  492. package/dist/paperless/{p-9a5d6efb.entry.js → p-1f97d5ba.entry.js} +2 -2
  493. package/dist/paperless/{p-78403aa3.entry.js → p-2770aacd.entry.js} +2 -2
  494. package/dist/paperless/{p-00e39694.entry.js → p-318e4b82.entry.js} +2 -2
  495. package/dist/{build/p-4e7c1803.entry.js → paperless/p-34bd3730.entry.js} +2 -2
  496. package/dist/paperless/{p-a9ba2e62.entry.js → p-35338296.entry.js} +2 -2
  497. package/dist/{build/p-9ab2cb8d.entry.js → paperless/p-364d8401.entry.js} +2 -2
  498. package/dist/{build/p-fbd40be8.entry.js → paperless/p-3edcd351.entry.js} +2 -2
  499. package/dist/paperless/{p-0fe51ad0.entry.js → p-41567df7.entry.js} +2 -2
  500. package/dist/{build/p-fa78c45a.entry.js → paperless/p-4891bb38.entry.js} +2 -2
  501. package/dist/paperless/{p-1a551082.entry.js → p-491389e5.entry.js} +2 -2
  502. package/dist/paperless/{p-805bad94.entry.js → p-4a8ff191.entry.js} +2 -2
  503. package/dist/paperless/{p-37bdbb19.entry.js → p-4fcc39f7.entry.js} +2 -2
  504. package/dist/paperless/p-50010f40.entry.js +2 -0
  505. package/dist/paperless/p-50010f40.entry.js.map +1 -0
  506. package/dist/paperless/{p-20f5071b.entry.js → p-5268f0bc.entry.js} +2 -2
  507. package/dist/paperless/p-6b5f80a0.entry.js +2 -0
  508. package/dist/paperless/p-6b5f80a0.entry.js.map +1 -0
  509. package/dist/paperless/p-6c02bbb0.entry.js +2 -0
  510. package/dist/paperless/p-6c02bbb0.entry.js.map +1 -0
  511. package/dist/paperless/{p-3e2d2587.entry.js → p-718ba1f3.entry.js} +3 -3
  512. package/dist/paperless/{p-827b1bd0.entry.js → p-775d1f94.entry.js} +2 -2
  513. package/dist/{build/p-925d7ffc.entry.js → paperless/p-7e13aa00.entry.js} +2 -2
  514. package/dist/paperless/{p-2366e61d.entry.js → p-80609f67.entry.js} +2 -2
  515. package/dist/{build/p-b176abc5.entry.js → paperless/p-8332b7f6.entry.js} +2 -2
  516. package/dist/paperless/{p-27b62457.entry.js → p-835abd94.entry.js} +2 -2
  517. package/dist/{build/p-6fdd90eb.entry.js → paperless/p-8c96207e.entry.js} +2 -2
  518. package/dist/paperless/{p-2acef846.entry.js → p-8cc2dc9f.entry.js} +2 -2
  519. package/dist/paperless/{p-81d7ca4b.entry.js → p-8ee8d5e6.entry.js} +2 -2
  520. package/dist/{build/p-918229ab.entry.js → paperless/p-95cacdf1.entry.js} +2 -2
  521. package/dist/{build/p-97570c84.entry.js → paperless/p-9ea16d5d.entry.js} +2 -2
  522. package/dist/{build/p-7f1f62c2.entry.js → paperless/p-9ecab5af.entry.js} +2 -2
  523. package/dist/{build/p-DhGo7hbh.js → paperless/p-CNnSbQbk.js} +2 -2
  524. package/dist/{build/p-DhGo7hbh.js.map → paperless/p-CNnSbQbk.js.map} +1 -1
  525. package/dist/paperless/p-Cw3Hhv5N.js +2 -0
  526. package/dist/paperless/p-Cw3Hhv5N.js.map +1 -0
  527. package/dist/paperless/p-EKSDxqjG.js +2 -0
  528. package/dist/paperless/p-EKSDxqjG.js.map +1 -0
  529. package/dist/paperless/p-X28EVNq0.js +2 -0
  530. package/dist/paperless/p-X28EVNq0.js.map +1 -0
  531. package/dist/paperless/{p-cbd7870f.entry.js → p-a106f17c.entry.js} +2 -2
  532. package/dist/paperless/p-ae7b0672.entry.js +2 -0
  533. package/dist/paperless/{p-dc21ccd3.entry.js → p-b3dfeaaa.entry.js} +2 -2
  534. package/dist/{build/p-c1d4c641.entry.js → paperless/p-bb77ae46.entry.js} +2 -2
  535. package/dist/paperless/{p-9c277029.entry.js → p-bcbcbffe.entry.js} +2 -2
  536. package/dist/{build/p-9c653182.entry.js → paperless/p-c5867976.entry.js} +2 -2
  537. package/dist/{build/p-54428a6a.entry.js → paperless/p-c9870068.entry.js} +2 -2
  538. package/dist/paperless/p-calendar.entry.esm.js.map +1 -1
  539. package/dist/paperless/p-card-container.entry.esm.js.map +1 -1
  540. package/dist/{build/p-d9a3295f.entry.js → paperless/p-cdeae6b0.entry.js} +2 -2
  541. package/dist/{build/p-eb66dfac.entry.js → paperless/p-d09bba4f.entry.js} +2 -2
  542. package/dist/{build/p-a3273e15.entry.js → paperless/p-d3fba507.entry.js} +2 -2
  543. package/dist/paperless/p-d7f0d02f.entry.js +2 -0
  544. package/dist/paperless/p-d7f0d02f.entry.js.map +1 -0
  545. package/dist/paperless/p-datepicker.entry.esm.js.map +1 -1
  546. package/dist/{build/p-6cb78d87.entry.js → paperless/p-e0c437fe.entry.js} +2 -2
  547. package/dist/paperless/{p-8325525f.entry.js → p-e20184ea.entry.js} +2 -2
  548. package/dist/{build/p-0b3af128.entry.js → paperless/p-e2cc514b.entry.js} +2 -2
  549. package/dist/paperless/{p-317e4698.entry.js → p-fbbe58f8.entry.js} +2 -2
  550. package/dist/paperless/{p-b8b570c4.entry.js → p-ff624855.entry.js} +2 -2
  551. package/dist/paperless/p-navbar.entry.esm.js.map +1 -1
  552. package/dist/paperless/paperless.css +1 -1
  553. package/dist/paperless/paperless.esm.js +1 -1
  554. package/dist/style/_reset.scss +9 -2
  555. package/dist/style/_typograhpy.scss +26 -2
  556. package/dist/sw.js +1 -1
  557. package/dist/sw.js.map +1 -1
  558. package/dist/tailwind/theme/colors.ts +1 -0
  559. package/dist/tailwind.config.ts +1 -0
  560. package/dist/types/index.d.ts +2 -1
  561. package/dist/types/internal/themed-host.component.d.ts +2 -0
  562. package/dist/types/state.d.ts +11 -0
  563. package/dist/types/tailwind/theme/colors.d.ts +1 -0
  564. package/dist/types/tailwind.config.d.ts +1 -0
  565. package/package.json +2 -1
  566. package/dist/build/p-13746ec7.entry.js +0 -2
  567. package/dist/build/p-50b3268f.entry.js +0 -2
  568. package/dist/build/p-8817fc5d.entry.js +0 -2
  569. package/dist/build/p-8817fc5d.entry.js.map +0 -1
  570. package/dist/build/p-8a116c31.entry.js +0 -2
  571. package/dist/build/p-8a116c31.entry.js.map +0 -1
  572. package/dist/build/p-K1xa0GD1.js +0 -2
  573. package/dist/build/p-K1xa0GD1.js.map +0 -1
  574. package/dist/build/p-b96f8d26.entry.js +0 -2
  575. package/dist/build/p-b96f8d26.entry.js.map +0 -1
  576. package/dist/build/p-ba9ecfd6.entry.js +0 -2
  577. package/dist/build/p-ba9ecfd6.entry.js.map +0 -1
  578. package/dist/build/p-d2118b3c.css +0 -1
  579. package/dist/cjs/index-FAqASDWS.js.map +0 -1
  580. package/dist/components/p-BJg6oRaH.js.map +0 -1
  581. package/dist/components/p-tdjn65Lz.js.map +0 -1
  582. package/dist/esm/index-K1xa0GD1.js.map +0 -1
  583. package/dist/paperless/p-13746ec7.entry.js +0 -2
  584. package/dist/paperless/p-50b3268f.entry.js +0 -2
  585. package/dist/paperless/p-8817fc5d.entry.js +0 -2
  586. package/dist/paperless/p-8817fc5d.entry.js.map +0 -1
  587. package/dist/paperless/p-8a116c31.entry.js +0 -2
  588. package/dist/paperless/p-8a116c31.entry.js.map +0 -1
  589. package/dist/paperless/p-K1xa0GD1.js +0 -2
  590. package/dist/paperless/p-K1xa0GD1.js.map +0 -1
  591. package/dist/paperless/p-b96f8d26.entry.js +0 -2
  592. package/dist/paperless/p-b96f8d26.entry.js.map +0 -1
  593. package/dist/paperless/p-ba9ecfd6.entry.js +0 -2
  594. package/dist/paperless/p-ba9ecfd6.entry.js.map +0 -1
  595. /package/dist/build/{p-d8c60f3c.entry.js.map → p-02a5ba4c.entry.js.map} +0 -0
  596. /package/dist/build/{p-1f45e45a.entry.js.map → p-0720742f.entry.js.map} +0 -0
  597. /package/dist/build/{p-993afcc3.entry.js.map → p-07e3e30d.entry.js.map} +0 -0
  598. /package/dist/build/{p-84979460.entry.js.map → p-0e9d3d2f.entry.js.map} +0 -0
  599. /package/dist/build/{p-542a718b.entry.js.map → p-0f438d6f.entry.js.map} +0 -0
  600. /package/dist/build/{p-53b913b4.entry.js.map → p-112f1a9a.entry.js.map} +0 -0
  601. /package/dist/build/{p-419077c3.entry.js.map → p-12c0b2c1.entry.js.map} +0 -0
  602. /package/dist/build/{p-6581ce9c.entry.js.map → p-13317dea.entry.js.map} +0 -0
  603. /package/dist/build/{p-21bb6e96.entry.js.map → p-146cdc9a.entry.js.map} +0 -0
  604. /package/dist/build/{p-59ab69e0.entry.js.map → p-1687f809.entry.js.map} +0 -0
  605. /package/dist/build/{p-13746ec7.entry.js.map → p-1e3a00fe.entry.js.map} +0 -0
  606. /package/dist/build/{p-9a5d6efb.entry.js.map → p-1f97d5ba.entry.js.map} +0 -0
  607. /package/dist/build/{p-78403aa3.entry.js.map → p-2770aacd.entry.js.map} +0 -0
  608. /package/dist/build/{p-00e39694.entry.js.map → p-318e4b82.entry.js.map} +0 -0
  609. /package/dist/build/{p-4e7c1803.entry.js.map → p-34bd3730.entry.js.map} +0 -0
  610. /package/dist/build/{p-a9ba2e62.entry.js.map → p-35338296.entry.js.map} +0 -0
  611. /package/dist/build/{p-9ab2cb8d.entry.js.map → p-364d8401.entry.js.map} +0 -0
  612. /package/dist/build/{p-fbd40be8.entry.js.map → p-3edcd351.entry.js.map} +0 -0
  613. /package/dist/build/{p-0fe51ad0.entry.js.map → p-41567df7.entry.js.map} +0 -0
  614. /package/dist/build/{p-fa78c45a.entry.js.map → p-4891bb38.entry.js.map} +0 -0
  615. /package/dist/build/{p-1a551082.entry.js.map → p-491389e5.entry.js.map} +0 -0
  616. /package/dist/build/{p-805bad94.entry.js.map → p-4a8ff191.entry.js.map} +0 -0
  617. /package/dist/build/{p-37bdbb19.entry.js.map → p-4fcc39f7.entry.js.map} +0 -0
  618. /package/dist/build/{p-20f5071b.entry.js.map → p-5268f0bc.entry.js.map} +0 -0
  619. /package/dist/build/{p-3e2d2587.entry.js.map → p-718ba1f3.entry.js.map} +0 -0
  620. /package/dist/build/{p-827b1bd0.entry.js.map → p-775d1f94.entry.js.map} +0 -0
  621. /package/dist/build/{p-925d7ffc.entry.js.map → p-7e13aa00.entry.js.map} +0 -0
  622. /package/dist/build/{p-2366e61d.entry.js.map → p-80609f67.entry.js.map} +0 -0
  623. /package/dist/build/{p-b176abc5.entry.js.map → p-8332b7f6.entry.js.map} +0 -0
  624. /package/dist/build/{p-27b62457.entry.js.map → p-835abd94.entry.js.map} +0 -0
  625. /package/dist/build/{p-6fdd90eb.entry.js.map → p-8c96207e.entry.js.map} +0 -0
  626. /package/dist/build/{p-2acef846.entry.js.map → p-8cc2dc9f.entry.js.map} +0 -0
  627. /package/dist/build/{p-81d7ca4b.entry.js.map → p-8ee8d5e6.entry.js.map} +0 -0
  628. /package/dist/build/{p-918229ab.entry.js.map → p-95cacdf1.entry.js.map} +0 -0
  629. /package/dist/build/{p-97570c84.entry.js.map → p-9ea16d5d.entry.js.map} +0 -0
  630. /package/dist/build/{p-7f1f62c2.entry.js.map → p-9ecab5af.entry.js.map} +0 -0
  631. /package/dist/build/{p-cbd7870f.entry.js.map → p-a106f17c.entry.js.map} +0 -0
  632. /package/dist/build/{p-50b3268f.entry.js.map → p-ae7b0672.entry.js.map} +0 -0
  633. /package/dist/build/{p-dc21ccd3.entry.js.map → p-b3dfeaaa.entry.js.map} +0 -0
  634. /package/dist/build/{p-c1d4c641.entry.js.map → p-bb77ae46.entry.js.map} +0 -0
  635. /package/dist/build/{p-9c277029.entry.js.map → p-bcbcbffe.entry.js.map} +0 -0
  636. /package/dist/build/{p-9c653182.entry.js.map → p-c5867976.entry.js.map} +0 -0
  637. /package/dist/build/{p-54428a6a.entry.js.map → p-c9870068.entry.js.map} +0 -0
  638. /package/dist/build/{p-d9a3295f.entry.js.map → p-cdeae6b0.entry.js.map} +0 -0
  639. /package/dist/build/{p-eb66dfac.entry.js.map → p-d09bba4f.entry.js.map} +0 -0
  640. /package/dist/build/{p-a3273e15.entry.js.map → p-d3fba507.entry.js.map} +0 -0
  641. /package/dist/build/{p-6cb78d87.entry.js.map → p-e0c437fe.entry.js.map} +0 -0
  642. /package/dist/build/{p-8325525f.entry.js.map → p-e20184ea.entry.js.map} +0 -0
  643. /package/dist/build/{p-0b3af128.entry.js.map → p-e2cc514b.entry.js.map} +0 -0
  644. /package/dist/build/{p-317e4698.entry.js.map → p-fbbe58f8.entry.js.map} +0 -0
  645. /package/dist/build/{p-b8b570c4.entry.js.map → p-ff624855.entry.js.map} +0 -0
  646. /package/dist/paperless/{p-d8c60f3c.entry.js.map → p-02a5ba4c.entry.js.map} +0 -0
  647. /package/dist/paperless/{p-1f45e45a.entry.js.map → p-0720742f.entry.js.map} +0 -0
  648. /package/dist/paperless/{p-993afcc3.entry.js.map → p-07e3e30d.entry.js.map} +0 -0
  649. /package/dist/paperless/{p-84979460.entry.js.map → p-0e9d3d2f.entry.js.map} +0 -0
  650. /package/dist/paperless/{p-542a718b.entry.js.map → p-0f438d6f.entry.js.map} +0 -0
  651. /package/dist/paperless/{p-53b913b4.entry.js.map → p-112f1a9a.entry.js.map} +0 -0
  652. /package/dist/paperless/{p-419077c3.entry.js.map → p-12c0b2c1.entry.js.map} +0 -0
  653. /package/dist/paperless/{p-6581ce9c.entry.js.map → p-13317dea.entry.js.map} +0 -0
  654. /package/dist/paperless/{p-21bb6e96.entry.js.map → p-146cdc9a.entry.js.map} +0 -0
  655. /package/dist/paperless/{p-59ab69e0.entry.js.map → p-1687f809.entry.js.map} +0 -0
  656. /package/dist/paperless/{p-13746ec7.entry.js.map → p-1e3a00fe.entry.js.map} +0 -0
  657. /package/dist/paperless/{p-9a5d6efb.entry.js.map → p-1f97d5ba.entry.js.map} +0 -0
  658. /package/dist/paperless/{p-78403aa3.entry.js.map → p-2770aacd.entry.js.map} +0 -0
  659. /package/dist/paperless/{p-00e39694.entry.js.map → p-318e4b82.entry.js.map} +0 -0
  660. /package/dist/paperless/{p-4e7c1803.entry.js.map → p-34bd3730.entry.js.map} +0 -0
  661. /package/dist/paperless/{p-a9ba2e62.entry.js.map → p-35338296.entry.js.map} +0 -0
  662. /package/dist/paperless/{p-9ab2cb8d.entry.js.map → p-364d8401.entry.js.map} +0 -0
  663. /package/dist/paperless/{p-fbd40be8.entry.js.map → p-3edcd351.entry.js.map} +0 -0
  664. /package/dist/paperless/{p-0fe51ad0.entry.js.map → p-41567df7.entry.js.map} +0 -0
  665. /package/dist/paperless/{p-fa78c45a.entry.js.map → p-4891bb38.entry.js.map} +0 -0
  666. /package/dist/paperless/{p-1a551082.entry.js.map → p-491389e5.entry.js.map} +0 -0
  667. /package/dist/paperless/{p-805bad94.entry.js.map → p-4a8ff191.entry.js.map} +0 -0
  668. /package/dist/paperless/{p-37bdbb19.entry.js.map → p-4fcc39f7.entry.js.map} +0 -0
  669. /package/dist/paperless/{p-20f5071b.entry.js.map → p-5268f0bc.entry.js.map} +0 -0
  670. /package/dist/paperless/{p-3e2d2587.entry.js.map → p-718ba1f3.entry.js.map} +0 -0
  671. /package/dist/paperless/{p-827b1bd0.entry.js.map → p-775d1f94.entry.js.map} +0 -0
  672. /package/dist/paperless/{p-925d7ffc.entry.js.map → p-7e13aa00.entry.js.map} +0 -0
  673. /package/dist/paperless/{p-2366e61d.entry.js.map → p-80609f67.entry.js.map} +0 -0
  674. /package/dist/paperless/{p-b176abc5.entry.js.map → p-8332b7f6.entry.js.map} +0 -0
  675. /package/dist/paperless/{p-27b62457.entry.js.map → p-835abd94.entry.js.map} +0 -0
  676. /package/dist/paperless/{p-6fdd90eb.entry.js.map → p-8c96207e.entry.js.map} +0 -0
  677. /package/dist/paperless/{p-2acef846.entry.js.map → p-8cc2dc9f.entry.js.map} +0 -0
  678. /package/dist/paperless/{p-81d7ca4b.entry.js.map → p-8ee8d5e6.entry.js.map} +0 -0
  679. /package/dist/paperless/{p-918229ab.entry.js.map → p-95cacdf1.entry.js.map} +0 -0
  680. /package/dist/paperless/{p-97570c84.entry.js.map → p-9ea16d5d.entry.js.map} +0 -0
  681. /package/dist/paperless/{p-7f1f62c2.entry.js.map → p-9ecab5af.entry.js.map} +0 -0
  682. /package/dist/paperless/{p-cbd7870f.entry.js.map → p-a106f17c.entry.js.map} +0 -0
  683. /package/dist/paperless/{p-50b3268f.entry.js.map → p-ae7b0672.entry.js.map} +0 -0
  684. /package/dist/paperless/{p-dc21ccd3.entry.js.map → p-b3dfeaaa.entry.js.map} +0 -0
  685. /package/dist/paperless/{p-c1d4c641.entry.js.map → p-bb77ae46.entry.js.map} +0 -0
  686. /package/dist/paperless/{p-9c277029.entry.js.map → p-bcbcbffe.entry.js.map} +0 -0
  687. /package/dist/paperless/{p-9c653182.entry.js.map → p-c5867976.entry.js.map} +0 -0
  688. /package/dist/paperless/{p-54428a6a.entry.js.map → p-c9870068.entry.js.map} +0 -0
  689. /package/dist/paperless/{p-d9a3295f.entry.js.map → p-cdeae6b0.entry.js.map} +0 -0
  690. /package/dist/paperless/{p-eb66dfac.entry.js.map → p-d09bba4f.entry.js.map} +0 -0
  691. /package/dist/paperless/{p-a3273e15.entry.js.map → p-d3fba507.entry.js.map} +0 -0
  692. /package/dist/paperless/{p-6cb78d87.entry.js.map → p-e0c437fe.entry.js.map} +0 -0
  693. /package/dist/paperless/{p-8325525f.entry.js.map → p-e20184ea.entry.js.map} +0 -0
  694. /package/dist/paperless/{p-0b3af128.entry.js.map → p-e2cc514b.entry.js.map} +0 -0
  695. /package/dist/paperless/{p-317e4698.entry.js.map → p-fbbe58f8.entry.js.map} +0 -0
  696. /package/dist/paperless/{p-b8b570c4.entry.js.map → p-ff624855.entry.js.map} +0 -0
@@ -47,9 +47,9 @@ export class ContentSlider {
47
47
  }
48
48
  }
49
49
  render() {
50
- return (h(Host, { key: 'b9e349c61110dedeaa3e94a8c1683808b071c8ae', class: 'p-content-slider' }, h("div", { key: '77818e653b59c0167c062479eb17f4aa1b45f23c', class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, style: {
50
+ return (h(Host, { key: '32426c4f29dd63b539228e39de7c47428d2bc027', class: 'p-content-slider' }, h("div", { key: 'f166f833e43c980d1eb637d89ea6a010f84ad912', 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: 'a8fa7d20d93d3bbec00e630549d942b5bc8fbd36', class: 'inner-slider', ref: ref => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", { key: '67599e1078d4f63e31271a27feb31895cc34c441', onSlotchange: () => this._slotChange() }))), h("div", { key: '4d0d9c52dbcc4bc5139e447b7f625ac204b4fba8', 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: '396c0e72e1c6b9e3890628307c97c844506a652f', class: 'inner-slider', ref: ref => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", { key: 'b6d30dc27f978ab0cb1f5f05eed08e917ccf4311', onSlotchange: () => this._slotChange() }))), h("div", { key: 'a0e588e831230e4672ef15e8b448cb05760d6218', 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
  }) })))))));
@@ -36,7 +36,7 @@ export class Cropper {
36
36
  }, 200);
37
37
  }
38
38
  render() {
39
- return (h(Host, { key: '73891600139dada5b090e2ce5ec0cd58a6304313', class: 'p-cropper' }, this._loaded && (h("cropper-canvas", { key: '9145012f667644418f424ce5b26fac90b811ce12', class: 'h-[17.5rem] w-full border-0 border-b border-solid border-off-white-700 bg-white', onAction: () => this._onAction() }, h("cropper-image", { key: 'c34f7487ec31ef8d687cc533b332ddb900ccd277', src: this.value, alt: 'Picture', ref: ref => this._setImageRef(ref), scalable: true, translatable: true, crossorigin: 'anonymous' }), h("cropper-shade", { key: 'c7a376a8b8d39735dd2fb1bf9253d442f9c25cd2', class: 'aspect-branding rounded-full', "theme-color": 'rgba(255, 255, 255, 0.5)', hidden: true }), h("cropper-selection", { key: '0425f0a5bffc8c154a2e73891ca990b3835f7217', "initial-coverage": '0.7', "aspect-ratio": '1', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: '53c33637e98e98c05cceb4b1c796b5bcfacba2ad', action: 'move', plain: true }))), h("p-range", { key: '35bbdec7f1b54c49691c086cec05a0c6608365f5', class: 'w-full px-14 tablet:max-w-xs tablet:px-1', value: this._currentScale, onValueChange: ev => this._onInput(ev.detail) })));
39
+ return (h(Host, { key: 'fc809d1abe217a100c72a8b3da7384fd5f476360', class: 'p-cropper' }, this._loaded && (h("cropper-canvas", { key: '3322de03183d30895f3f2ae1fac08f119e473e25', class: 'h-[17.5rem] w-full border-0 border-b border-solid border-off-white-700 bg-white', onAction: () => this._onAction() }, h("cropper-image", { key: '7f151fc75c0ceec9644be12e721168ddc8cfc48e', src: this.value, alt: 'Picture', ref: ref => this._setImageRef(ref), scalable: true, translatable: true, crossorigin: 'anonymous' }), h("cropper-shade", { key: '41a00d9f4c44763607b219a87f0a12a4fca1a1ad', class: 'aspect-branding rounded-full', "theme-color": 'rgba(255, 255, 255, 0.5)', hidden: true }), h("cropper-selection", { key: 'fee1b499454ebb2dcb291bf3de6145feaefbf5a8', "initial-coverage": '0.7', "aspect-ratio": '1', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: 'd5742c9d642384269aaa9543436d4861fd3e2ad8', action: 'move', plain: true }))), h("p-range", { key: '03557f843e14263a2a0c6547c510de4dda5abeb2', class: 'w-full px-14 tablet:max-w-xs tablet:px-1', value: this._currentScale, onValueChange: ev => this._onInput(ev.detail) })));
40
40
  }
41
41
  _setImageRef(ref) {
42
42
  if (this._imageRef) {
@@ -2,6 +2,8 @@ import { h, } from "@stencil/core";
2
2
  import { format, isAfter, isBefore, isSameDay, isValid, isWeekend, parse, startOfDay, startOfMonth, startOfYear, } from "date-fns";
3
3
  import { childOf, isMobileBrowser } from "../../../utils";
4
4
  import { asBoolean } from "../../../utils/as-boolean";
5
+ import { state } from "../../../state";
6
+ import { enUS, nl } from "date-fns/locale";
5
7
  export class Datepicker {
6
8
  /**
7
9
  * The placeholder of the input
@@ -202,7 +204,16 @@ export class Datepicker {
202
204
  this.parseValue(this.value);
203
205
  }
204
206
  render() {
205
- return (h("p-dropdown", { key: '54a35d8bda73faf87404ee0b87f83300b5f305d8', allowOverflow: true, strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, h("p-field", { key: 'a6fc03db14b583980b0c572754d899660fc4605e', 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: () => this._onBlur(), onValueChange: ev => this._onValueChange(ev.detail), onInputRefChange: ev => (this._inputRef = ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: '95697b3388b5e6544d68053880431f82555b20dd', 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 && format(this._value, 'yyyy-MM-dd'), min: this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd'), max: this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd') })), h("div", { key: 'd947ce85476dd585b3c8ab09645848c4672ae863', slot: 'items' }, h("p-calendar", { key: '7ab3704f928147b8f4f6dd9c19e4b50c61b1437b', 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 }))));
207
+ return (h("p-dropdown", { key: 'f9b5fcea0da5d1a356a874b4aa6add2e673c992c', allowOverflow: true, strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, h("p-field", { key: 'f3b177d0236500d6fa18fa02b9b939044ef22ed8', 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: () => this._onBlur(), onValueChange: ev => this._onValueChange(ev.detail), onInputRefChange: ev => (this._inputRef = ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: '3c53e63ae786daa75969909639598f8718076350', 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 &&
208
+ format(this._value, 'yyyy-MM-dd', {
209
+ locale: state.locale === 'nl' ? nl : enUS,
210
+ }), min: this.minDate &&
211
+ format(new Date(this.minDate), 'yyyy-MM-dd', {
212
+ locale: state.locale === 'nl' ? nl : enUS,
213
+ }), max: this.maxDate &&
214
+ format(new Date(this.maxDate), 'yyyy-MM-dd', {
215
+ locale: state.locale === 'nl' ? nl : enUS,
216
+ }) })), h("div", { key: 'af00ad4e2155e2ef287276324ac63432f5506b10', slot: 'items' }, h("p-calendar", { key: '270d7b3ec4e049b2dcd4b43a41f1ae81e3293117', 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 }))));
206
217
  }
207
218
  documentClickHandler({ target }) {
208
219
  if (!this._showDropdown || childOf(target, this._el)) {
@@ -255,7 +266,10 @@ export class Datepicker {
255
266
  return;
256
267
  }
257
268
  const parsedValue = parse(value, parseFormat, new Date());
258
- if (!isValid(parsedValue) || format(parsedValue, parseFormat) !== value) {
269
+ if (!isValid(parsedValue) ||
270
+ format(parsedValue, parseFormat, {
271
+ locale: state.locale === 'nl' ? nl : enUS,
272
+ }) !== value) {
259
273
  if (this.mode === 'day') {
260
274
  this._onValueChange(value, this._defaultFormats['dayNoDashes']);
261
275
  }
@@ -288,7 +302,9 @@ export class Datepicker {
288
302
  if (this._isDisabledDay(value)) {
289
303
  if (!!this._dateInputRef?.value) {
290
304
  this._dateInputRef.value = this._value
291
- ? format(this._value, 'yyyy-MM-dd')
305
+ ? format(this._value, 'yyyy-MM-dd', {
306
+ locale: state.locale === 'nl' ? nl : enUS,
307
+ })
292
308
  : null;
293
309
  }
294
310
  return;
@@ -319,7 +335,9 @@ export class Datepicker {
319
335
  if (!this._value) {
320
336
  return '';
321
337
  }
322
- return format(this._value, this.format);
338
+ return format(this._value, this.format, {
339
+ locale: state.locale === 'nl' ? nl : enUS,
340
+ });
323
341
  }
324
342
  static get is() { return "p-datepicker"; }
325
343
  static get formAssociated() { return true; }
@@ -1 +1 @@
1
- {"version":3,"file":"datepicker.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/datepicker/datepicker.component.tsx"],"names":[],"mappings":"AACA,OAAO,EACN,eAAe,EACf,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EACN,MAAM,EACN,OAAO,EACP,QAAQ,EACR,SAAS,EACT,OAAO,EACP,SAAS,EACT,KAAK,EACL,UAAU,EACV,YAAY,EACZ,WAAW,GACX,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAQtD,MAA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tAttachInternals,\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tListen,\n\tProp,\n\tState,\n\tWatch,\n} from '@stencil/core';\nimport {\n\tformat,\n\tisAfter,\n\tisBefore,\n\tisSameDay,\n\tisValid,\n\tisWeekend,\n\tparse,\n\tstartOfDay,\n\tstartOfMonth,\n\tstartOfYear,\n} from 'date-fns';\nimport { childOf, isMobileBrowser } from '../../../utils';\nimport { asBoolean } from '../../../utils/as-boolean';\n\n@Component({\n\ttag: 'p-datepicker',\n\tstyleUrl: 'datepicker.component.css',\n\tshadow: false,\n\tformAssociated: true,\n})\nexport class Datepicker {\n\t/**\n\t * The placeholder of the input\n\t */\n\t@Prop() placeholder: string;\n\n\t/**\n\t * The current value\n\t */\n\t@Prop() value: Date | string | null | undefined;\n\n\t/**\n\t * Wethter to automatically preselect today\n\t */\n\t@Prop() preselectToday: boolean = false;\n\n\t/**\n\t * Enable native picker for mobile devices\n\t */\n\t@Prop() enableNativePicker: boolean = true;\n\n\t/**\n\t * Disabled dates\n\t */\n\t@Prop() disabledDates?: Array<Date | string> | string;\n\n\t/**\n\t * Min date\n\t */\n\t@Prop() minDate?: Date | string;\n\n\t/**\n\t * Max date\n\t */\n\t@Prop() maxDate?: Date | string;\n\n\t/**\n\t * Wether to disable the weekends\n\t */\n\t@Prop() disableWeekends: boolean = false;\n\n\t/**\n\t * Wether to enable the today button\n\t */\n\t@Prop() enableToday: boolean = true;\n\n\t/**\n\t * The text to display on the today tooltip\n\t */\n\t@Prop() todayText: string = 'today';\n\n\t/**\n\t * The mode of the datepicker\n\t */\n\t@Prop() mode: 'year' | 'month' | 'day' = 'day';\n\n\t/**\n\t * Event when the value changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tvalueChange: EventEmitter<any>;\n\n\t/**\n\t * The display & parse format to use\n\t */\n\t@Prop() format: string = 'dd-MM-yyyy';\n\n\t/**\n\t * Hides the icon when filled\n\t */\n\t@Prop() hideIconWhenFilled: boolean = false;\n\n\t/**\n\t * The size of the input group used by the datepicker\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * The prefix of the input group used by the datepicker\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The label of the input group used by the datepicker\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * Wether the field is loading\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The helper of the input group used by the datepicker\n\t */\n\t@Prop() helper: string;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * Wether to show optional when not required\n\t */\n\t@Prop({ reflect: true }) showOptional: boolean = true;\n\n\t/**\n\t * The helper of the input group used by the datepicker\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * Wether the input group is disabled used by the datepicker\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * The strategy of the dropdown placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * The placement of the dropdown\n\t */\n\t@Prop({ reflect: true }) placement: Placement = 'bottom-start';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _showDropdown: any = false;\n\t@State() private _value: Date;\n\t@State() private _minDate: Date;\n\t@State() private _maxDate: Date;\n\t@State() private _disabledDates: Date[] = [];\n\t@State() private _isMobileBrowser: boolean = false;\n\n\t@AttachInternals() _internals: ElementInternals;\n\n\tprivate _onInputTimeout: NodeJS.Timeout;\n\tprivate _inputRef: HTMLInputElement | HTMLTextAreaElement;\n\tprivate _dateInputRef: HTMLInputElement;\n\n\tprivate _defaultFormats = {\n\t\tyear: 'yyyy',\n\t\tmonth: 'LLLL, yyyy',\n\t\tday: 'dd-MM-yyyy',\n\t\tdayNoDashes: 'ddMMyyyy',\n\t};\n\n\t@Watch('value')\n\tprotected parseValue(value: string | Date) {\n\t\tif (!value && this.preselectToday) {\n\t\t\tvalue = new Date();\n\t\t}\n\n\t\tif (typeof value === 'string') {\n\t\t\tvalue = new Date(value);\n\t\t}\n\n\t\tthis._setValue(value);\n\t}\n\n\t@Watch('minDate')\n\tprotected parseMinDate(minDate: string | Date) {\n\t\tif (typeof minDate === 'string') {\n\t\t\tminDate = new Date(minDate);\n\t\t}\n\n\t\tif (!isValid(minDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._minDate = minDate;\n\n\t\tif (isBefore(this._value, this._minDate)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\t@Watch('maxDate')\n\tprotected parseMaxDate(maxDate: string | Date) {\n\t\tif (typeof maxDate === 'string') {\n\t\t\tmaxDate = new Date(maxDate);\n\t\t}\n\n\t\tif (!isValid(maxDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._maxDate = maxDate;\n\n\t\tif (isAfter(this._value, this._maxDate)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\t@Watch('disabledDates')\n\tprotected parseDisabledDates(disabledDates: Array<string | Date> | string) {\n\t\tif (typeof disabledDates === 'string') {\n\t\t\tdisabledDates = JSON.parse(disabledDates);\n\t\t}\n\n\t\tif (!disabledDates || !Array.isArray(disabledDates)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// normalize all to date\n\t\tthis._disabledDates = disabledDates\n\t\t\t.map(date => {\n\t\t\t\tif (typeof date === 'string') {\n\t\t\t\t\treturn new Date(date);\n\t\t\t\t}\n\n\t\t\t\treturn date;\n\t\t\t})\n\t\t\t.filter(date => isValid(date));\n\n\t\tif (this._isDisabledDay(this._value)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\tformResetCallback() {\n\t\tthis._setValue(null);\n\t}\n\n\tformDisabledCallback(disabled: boolean) {\n\t\tif (!this._internals.form) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.disabled = disabled;\n\t}\n\n\tcomponentWillLoad() {\n\t\tif (this.disabledDates) {\n\t\t\tthis.parseDisabledDates(this.disabledDates);\n\t\t}\n\n\t\tif (this.minDate) {\n\t\t\tthis.parseMinDate(this.minDate);\n\t\t}\n\n\t\tif (this.maxDate) {\n\t\t\tthis.parseMaxDate(this.maxDate);\n\t\t}\n\n\t\tif (this.mode !== 'day' && this.format === this._defaultFormats['day']) {\n\t\t\tthis.format = this._defaultFormats[this.mode];\n\t\t}\n\n\t\tthis._isMobileBrowser = isMobileBrowser();\n\n\t\tthis.parseValue(this.value);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<p-dropdown\n\t\t\t\tallowOverflow={true}\n\t\t\t\tstrategy={this.strategy}\n\t\t\t\tplacement={this.placement}\n\t\t\t\tdisableTriggerClick={true}\n\t\t\t\tapplyMaxWidth={false}\n\t\t\t\tapplyFullWidth={false}\n\t\t\t\tinsideClick={true}\n\t\t\t\tshow={this._showDropdown}\n\t\t\t>\n\t\t\t\t<p-field\n\t\t\t\t\tslot='trigger'\n\t\t\t\t\ticon={\n\t\t\t\t\t\tthis.hideIconWhenFilled && !!this._value ? null : 'calendar-multi'\n\t\t\t\t\t}\n\t\t\t\t\ticonPosition='start'\n\t\t\t\t\tsize={this.size}\n\t\t\t\t\tprefix={this.prefix}\n\t\t\t\t\tlabel={this.label}\n\t\t\t\t\tloading={this.loading}\n\t\t\t\t\thelper={this.helper}\n\t\t\t\t\trequired={asBoolean(this.required)}\n\t\t\t\t\tshowOptional={asBoolean(this.showOptional)}\n\t\t\t\t\terror={this.error}\n\t\t\t\t\tforceShowTooltip={!!this.error?.length && !this._showDropdown}\n\t\t\t\t\tautoShowError={false}\n\t\t\t\t\tdisabled={asBoolean(this.disabled)}\n\t\t\t\t\tfocused={this._showDropdown}\n\t\t\t\t\tvalue={this._getFormattedDate()}\n\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\tonFocus={() => this._onFocus()}\n\t\t\t\t\tonBlur={() => this._onBlur()}\n\t\t\t\t\tonValueChange={ev => this._onValueChange(ev.detail as string)}\n\t\t\t\t\tonInputRefChange={ev => (this._inputRef = ev.detail)}\n\t\t\t\t></p-field>\n\n\t\t\t\t{this.enableNativePicker && this._isMobileBrowser && (\n\t\t\t\t\t<input\n\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\ttype={this.mode === 'day' ? 'date' : 'month'}\n\t\t\t\t\t\tclass='pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden opacity-0'\n\t\t\t\t\t\tonInput={ev => this._onNativeInput(ev)}\n\t\t\t\t\t\tref={ref => (this._dateInputRef = ref)}\n\t\t\t\t\t\tvalue={this._value && format(this._value, 'yyyy-MM-dd')}\n\t\t\t\t\t\tmin={this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd')}\n\t\t\t\t\t\tmax={this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd')}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t<div slot='items'>\n\t\t\t\t\t<p-calendar\n\t\t\t\t\t\tvariant='embedded'\n\t\t\t\t\t\tvalue={this._value}\n\t\t\t\t\t\tonValueChange={({ detail }) => (this.value = detail)}\n\t\t\t\t\t\tpreselectToday={this.preselectToday}\n\t\t\t\t\t\tdisabledDates={this.disabledDates}\n\t\t\t\t\t\tminDate={this.minDate}\n\t\t\t\t\t\tmaxDate={this.maxDate}\n\t\t\t\t\t\tdisableWeekends={this.disableWeekends}\n\t\t\t\t\t\tenableToday={this.enableToday}\n\t\t\t\t\t\ttodayText={this.todayText}\n\t\t\t\t\t\tmode={this.mode}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</p-dropdown>\n\t\t);\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler({ target }) {\n\t\tif (!this._showDropdown || childOf(target, this._el)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._showDropdown = false;\n\t}\n\n\tprivate _onFocus() {\n\t\tif (this._isMobileBrowser && this._dateInputRef) {\n\t\t\tthis._dateInputRef.focus();\n\t\t\tthis._dateInputRef.showPicker();\n\t\t\tthis._inputRef.blur();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._showDropdown = true;\n\t}\n\n\tprivate _onBlur(parseFormat = this.format) {\n\t\tif (this._isMobileBrowser && this._dateInputRef) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst target = this._inputRef;\n\n\t\tif (target.value === null) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst value = parse(target.value, parseFormat, new Date());\n\n\t\tif (value === this._value) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst valid = isValid(value);\n\t\tif (!valid && parseFormat === this.format && this.mode === 'day') {\n\t\t\treturn this._onBlur(this._defaultFormats['dayNoDashes']);\n\t\t}\n\n\t\tif (!valid || this._isDisabledDay(value)) {\n\t\t\ttarget.value = this._getFormattedDate();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._setValue(value, false);\n\t}\n\n\tprivate _onValueChange(value: string, parseFormat = this.format) {\n\t\tif (this._onInputTimeout) {\n\t\t\tclearTimeout(this._onInputTimeout);\n\t\t\tthis._onInputTimeout = null;\n\t\t}\n\n\t\tthis._onInputTimeout = setTimeout(() => {\n\t\t\tif (value.length === 0) {\n\t\t\t\tif (this._value === null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis._setValue(null);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst parsedValue = parse(value, parseFormat, new Date());\n\n\t\t\tif (!isValid(parsedValue) || format(parsedValue, parseFormat) !== value) {\n\t\t\t\tif (this.mode === 'day') {\n\t\t\t\t\tthis._onValueChange(value, this._defaultFormats['dayNoDashes']);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._setValue(parsedValue, false);\n\t\t}, 300);\n\t}\n\n\tprivate _onNativeInput(ev) {\n\t\tif (!ev.target) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._onInputTimeout) {\n\t\t\tclearTimeout(this._onInputTimeout);\n\t\t\tthis._onInputTimeout = null;\n\t\t}\n\n\t\tthis._onInputTimeout = setTimeout(() => {\n\t\t\tthis._setValue(\n\t\t\t\tev.target.value === '' ? null : new Date(ev.target.value),\n\t\t\t\tfalse\n\t\t\t);\n\t\t});\n\t}\n\n\tprivate _setValue(value: Date | null, hideDropdown = true) {\n\t\tif (value === null) {\n\t\t\tthis._value = null;\n\t\t\tthis.valueChange.emit(null);\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isValid(value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._isDisabledDay(value)) {\n\t\t\tif (!!this._dateInputRef?.value) {\n\t\t\t\tthis._dateInputRef.value = this._value\n\t\t\t\t\t? format(this._value, 'yyyy-MM-dd')\n\t\t\t\t\t: null;\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tvalue =\n\t\t\tthis.mode === 'day'\n\t\t\t\t? startOfDay(value)\n\t\t\t\t: this.mode === 'month'\n\t\t\t\t? startOfMonth(value)\n\t\t\t\t: startOfYear(value);\n\t\tconst isSameValue = isSameDay(value, this._value);\n\n\t\tif (isSameValue) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (hideDropdown) {\n\t\t\tthis._showDropdown = false;\n\t\t}\n\n\t\tthis._value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n\n\tprivate _isDisabledDay(day: Date) {\n\t\treturn (\n\t\t\t(this.disableWeekends && isWeekend(day)) ||\n\t\t\t(isBefore(day, this._minDate) && !isSameDay(day, this._minDate)) ||\n\t\t\t(isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||\n\t\t\tthis._disabledDates.findIndex(date => isSameDay(date, day)) >= 0\n\t\t);\n\t}\n\n\tprivate _getFormattedDate() {\n\t\tif (!this._value) {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn format(this._value, this.format);\n\t}\n}\n"]}
1
+ {"version":3,"file":"datepicker.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/datepicker/datepicker.component.tsx"],"names":[],"mappings":"AACA,OAAO,EACN,eAAe,EACf,SAAS,EACT,OAAO,EACP,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S,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAChE,CAAC;IACH,CAAC;IAEO,iBAAiB;QACxB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YAClB,OAAO,EAAE,CAAC;QACX,CAAC;QAED,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;YACvC,MAAM,EAAE,KAAK,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;SACzC,CAAC,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Placement, Strategy } from '@floating-ui/dom';\nimport {\n\tAttachInternals,\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tListen,\n\tProp,\n\tState,\n\tWatch,\n} from '@stencil/core';\nimport {\n\tformat,\n\tisAfter,\n\tisBefore,\n\tisSameDay,\n\tisValid,\n\tisWeekend,\n\tparse,\n\tstartOfDay,\n\tstartOfMonth,\n\tstartOfYear,\n} from 'date-fns';\nimport { childOf, isMobileBrowser } from '../../../utils';\nimport { asBoolean } from '../../../utils/as-boolean';\nimport { state } from '../../../state';\nimport { enUS, nl } from 'date-fns/locale';\n\n@Component({\n\ttag: 'p-datepicker',\n\tstyleUrl: 'datepicker.component.css',\n\tshadow: false,\n\tformAssociated: true,\n})\nexport class Datepicker {\n\t/**\n\t * The placeholder of the input\n\t */\n\t@Prop() placeholder: string;\n\n\t/**\n\t * The current value\n\t */\n\t@Prop() value: Date | string | null | undefined;\n\n\t/**\n\t * Wethter to automatically preselect today\n\t */\n\t@Prop() preselectToday: boolean = false;\n\n\t/**\n\t * Enable native picker for mobile devices\n\t */\n\t@Prop() enableNativePicker: boolean = true;\n\n\t/**\n\t * Disabled dates\n\t */\n\t@Prop() disabledDates?: Array<Date | string> | string;\n\n\t/**\n\t * Min date\n\t */\n\t@Prop() minDate?: Date | string;\n\n\t/**\n\t * Max date\n\t */\n\t@Prop() maxDate?: Date | string;\n\n\t/**\n\t * Wether to disable the weekends\n\t */\n\t@Prop() disableWeekends: boolean = false;\n\n\t/**\n\t * Wether to enable the today button\n\t */\n\t@Prop() enableToday: boolean = true;\n\n\t/**\n\t * The text to display on the today tooltip\n\t */\n\t@Prop() todayText: string = 'today';\n\n\t/**\n\t * The mode of the datepicker\n\t */\n\t@Prop() mode: 'year' | 'month' | 'day' = 'day';\n\n\t/**\n\t * Event when the value changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tvalueChange: EventEmitter<any>;\n\n\t/**\n\t * The display & parse format to use\n\t */\n\t@Prop() format: string = 'dd-MM-yyyy';\n\n\t/**\n\t * Hides the icon when filled\n\t */\n\t@Prop() hideIconWhenFilled: boolean = false;\n\n\t/**\n\t * The size of the input group used by the datepicker\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * The prefix of the input group used by the datepicker\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The label of the input group used by the datepicker\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * Wether the field is loading\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The helper of the input group used by the datepicker\n\t */\n\t@Prop() helper: string;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * Wether to show optional when not required\n\t */\n\t@Prop({ reflect: true }) showOptional: boolean = true;\n\n\t/**\n\t * The helper of the input group used by the datepicker\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * Wether the input group is disabled used by the datepicker\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * The strategy of the dropdown placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * The placement of the dropdown\n\t */\n\t@Prop({ reflect: true }) placement: Placement = 'bottom-start';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _showDropdown: any = false;\n\t@State() private _value: Date;\n\t@State() private _minDate: Date;\n\t@State() private _maxDate: Date;\n\t@State() private _disabledDates: Date[] = [];\n\t@State() private _isMobileBrowser: boolean = false;\n\n\t@AttachInternals() _internals: ElementInternals;\n\n\tprivate _onInputTimeout: NodeJS.Timeout;\n\tprivate _inputRef: HTMLInputElement | HTMLTextAreaElement;\n\tprivate _dateInputRef: HTMLInputElement;\n\n\tprivate _defaultFormats = {\n\t\tyear: 'yyyy',\n\t\tmonth: 'LLLL, yyyy',\n\t\tday: 'dd-MM-yyyy',\n\t\tdayNoDashes: 'ddMMyyyy',\n\t};\n\n\t@Watch('value')\n\tprotected parseValue(value: string | Date) {\n\t\tif (!value && this.preselectToday) {\n\t\t\tvalue = new Date();\n\t\t}\n\n\t\tif (typeof value === 'string') {\n\t\t\tvalue = new Date(value);\n\t\t}\n\n\t\tthis._setValue(value);\n\t}\n\n\t@Watch('minDate')\n\tprotected parseMinDate(minDate: string | Date) {\n\t\tif (typeof minDate === 'string') {\n\t\t\tminDate = new Date(minDate);\n\t\t}\n\n\t\tif (!isValid(minDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._minDate = minDate;\n\n\t\tif (isBefore(this._value, this._minDate)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\t@Watch('maxDate')\n\tprotected parseMaxDate(maxDate: string | Date) {\n\t\tif (typeof maxDate === 'string') {\n\t\t\tmaxDate = new Date(maxDate);\n\t\t}\n\n\t\tif (!isValid(maxDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._maxDate = maxDate;\n\n\t\tif (isAfter(this._value, this._maxDate)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\t@Watch('disabledDates')\n\tprotected parseDisabledDates(disabledDates: Array<string | Date> | string) {\n\t\tif (typeof disabledDates === 'string') {\n\t\t\tdisabledDates = JSON.parse(disabledDates);\n\t\t}\n\n\t\tif (!disabledDates || !Array.isArray(disabledDates)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// normalize all to date\n\t\tthis._disabledDates = disabledDates\n\t\t\t.map(date => {\n\t\t\t\tif (typeof date === 'string') {\n\t\t\t\t\treturn new Date(date);\n\t\t\t\t}\n\n\t\t\t\treturn date;\n\t\t\t})\n\t\t\t.filter(date => isValid(date));\n\n\t\tif (this._isDisabledDay(this._value)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\tformResetCallback() {\n\t\tthis._setValue(null);\n\t}\n\n\tformDisabledCallback(disabled: boolean) {\n\t\tif (!this._internals.form) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.disabled = disabled;\n\t}\n\n\tcomponentWillLoad() {\n\t\tif (this.disabledDates) {\n\t\t\tthis.parseDisabledDates(this.disabledDates);\n\t\t}\n\n\t\tif (this.minDate) {\n\t\t\tthis.parseMinDate(this.minDate);\n\t\t}\n\n\t\tif (this.maxDate) {\n\t\t\tthis.parseMaxDate(this.maxDate);\n\t\t}\n\n\t\tif (this.mode !== 'day' && this.format === this._defaultFormats['day']) {\n\t\t\tthis.format = this._defaultFormats[this.mode];\n\t\t}\n\n\t\tthis._isMobileBrowser = isMobileBrowser();\n\n\t\tthis.parseValue(this.value);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<p-dropdown\n\t\t\t\tallowOverflow={true}\n\t\t\t\tstrategy={this.strategy}\n\t\t\t\tplacement={this.placement}\n\t\t\t\tdisableTriggerClick={true}\n\t\t\t\tapplyMaxWidth={false}\n\t\t\t\tapplyFullWidth={false}\n\t\t\t\tinsideClick={true}\n\t\t\t\tshow={this._showDropdown}\n\t\t\t>\n\t\t\t\t<p-field\n\t\t\t\t\tslot='trigger'\n\t\t\t\t\ticon={\n\t\t\t\t\t\tthis.hideIconWhenFilled && !!this._value ? null : 'calendar-multi'\n\t\t\t\t\t}\n\t\t\t\t\ticonPosition='start'\n\t\t\t\t\tsize={this.size}\n\t\t\t\t\tprefix={this.prefix}\n\t\t\t\t\tlabel={this.label}\n\t\t\t\t\tloading={this.loading}\n\t\t\t\t\thelper={this.helper}\n\t\t\t\t\trequired={asBoolean(this.required)}\n\t\t\t\t\tshowOptional={asBoolean(this.showOptional)}\n\t\t\t\t\terror={this.error}\n\t\t\t\t\tforceShowTooltip={!!this.error?.length && !this._showDropdown}\n\t\t\t\t\tautoShowError={false}\n\t\t\t\t\tdisabled={asBoolean(this.disabled)}\n\t\t\t\t\tfocused={this._showDropdown}\n\t\t\t\t\tvalue={this._getFormattedDate()}\n\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\tonFocus={() => this._onFocus()}\n\t\t\t\t\tonBlur={() => this._onBlur()}\n\t\t\t\t\tonValueChange={ev => this._onValueChange(ev.detail as string)}\n\t\t\t\t\tonInputRefChange={ev => (this._inputRef = ev.detail)}\n\t\t\t\t></p-field>\n\n\t\t\t\t{this.enableNativePicker && this._isMobileBrowser && (\n\t\t\t\t\t<input\n\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\ttype={this.mode === 'day' ? 'date' : 'month'}\n\t\t\t\t\t\tclass='pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden opacity-0'\n\t\t\t\t\t\tonInput={ev => this._onNativeInput(ev)}\n\t\t\t\t\t\tref={ref => (this._dateInputRef = ref)}\n\t\t\t\t\t\tvalue={\n\t\t\t\t\t\t\tthis._value &&\n\t\t\t\t\t\t\tformat(this._value, 'yyyy-MM-dd', {\n\t\t\t\t\t\t\t\tlocale: state.locale === 'nl' ? nl : enUS,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmin={\n\t\t\t\t\t\t\tthis.minDate &&\n\t\t\t\t\t\t\tformat(new Date(this.minDate), 'yyyy-MM-dd', {\n\t\t\t\t\t\t\t\tlocale: state.locale === 'nl' ? nl : enUS,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmax={\n\t\t\t\t\t\t\tthis.maxDate &&\n\t\t\t\t\t\t\tformat(new Date(this.maxDate), 'yyyy-MM-dd', {\n\t\t\t\t\t\t\t\tlocale: state.locale === 'nl' ? nl : enUS,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t<div slot='items'>\n\t\t\t\t\t<p-calendar\n\t\t\t\t\t\tvariant='embedded'\n\t\t\t\t\t\tvalue={this._value}\n\t\t\t\t\t\tonValueChange={({ detail }) => (this.value = detail)}\n\t\t\t\t\t\tpreselectToday={this.preselectToday}\n\t\t\t\t\t\tdisabledDates={this.disabledDates}\n\t\t\t\t\t\tminDate={this.minDate}\n\t\t\t\t\t\tmaxDate={this.maxDate}\n\t\t\t\t\t\tdisableWeekends={this.disableWeekends}\n\t\t\t\t\t\tenableToday={this.enableToday}\n\t\t\t\t\t\ttodayText={this.todayText}\n\t\t\t\t\t\tmode={this.mode}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</p-dropdown>\n\t\t);\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler({ target }) {\n\t\tif (!this._showDropdown || childOf(target, this._el)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._showDropdown = false;\n\t}\n\n\tprivate _onFocus() {\n\t\tif (this._isMobileBrowser && this._dateInputRef) {\n\t\t\tthis._dateInputRef.focus();\n\t\t\tthis._dateInputRef.showPicker();\n\t\t\tthis._inputRef.blur();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._showDropdown = true;\n\t}\n\n\tprivate _onBlur(parseFormat = this.format) {\n\t\tif (this._isMobileBrowser && this._dateInputRef) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst target = this._inputRef;\n\n\t\tif (target.value === null) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst value = parse(target.value, parseFormat, new Date());\n\n\t\tif (value === this._value) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst valid = isValid(value);\n\t\tif (!valid && parseFormat === this.format && this.mode === 'day') {\n\t\t\treturn this._onBlur(this._defaultFormats['dayNoDashes']);\n\t\t}\n\n\t\tif (!valid || this._isDisabledDay(value)) {\n\t\t\ttarget.value = this._getFormattedDate();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._setValue(value, false);\n\t}\n\n\tprivate _onValueChange(value: string, parseFormat = this.format) {\n\t\tif (this._onInputTimeout) {\n\t\t\tclearTimeout(this._onInputTimeout);\n\t\t\tthis._onInputTimeout = null;\n\t\t}\n\n\t\tthis._onInputTimeout = setTimeout(() => {\n\t\t\tif (value.length === 0) {\n\t\t\t\tif (this._value === null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis._setValue(null);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst parsedValue = parse(value, parseFormat, new Date());\n\n\t\t\tif (\n\t\t\t\t!isValid(parsedValue) ||\n\t\t\t\tformat(parsedValue, parseFormat, {\n\t\t\t\t\tlocale: state.locale === 'nl' ? nl : enUS,\n\t\t\t\t}) !== value\n\t\t\t) {\n\t\t\t\tif (this.mode === 'day') {\n\t\t\t\t\tthis._onValueChange(value, this._defaultFormats['dayNoDashes']);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._setValue(parsedValue, false);\n\t\t}, 300);\n\t}\n\n\tprivate _onNativeInput(ev) {\n\t\tif (!ev.target) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._onInputTimeout) {\n\t\t\tclearTimeout(this._onInputTimeout);\n\t\t\tthis._onInputTimeout = null;\n\t\t}\n\n\t\tthis._onInputTimeout = setTimeout(() => {\n\t\t\tthis._setValue(\n\t\t\t\tev.target.value === '' ? null : new Date(ev.target.value),\n\t\t\t\tfalse\n\t\t\t);\n\t\t});\n\t}\n\n\tprivate _setValue(value: Date | null, hideDropdown = true) {\n\t\tif (value === null) {\n\t\t\tthis._value = null;\n\t\t\tthis.valueChange.emit(null);\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isValid(value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._isDisabledDay(value)) {\n\t\t\tif (!!this._dateInputRef?.value) {\n\t\t\t\tthis._dateInputRef.value = this._value\n\t\t\t\t\t? format(this._value, 'yyyy-MM-dd', {\n\t\t\t\t\t\t\tlocale: state.locale === 'nl' ? nl : enUS,\n\t\t\t\t\t })\n\t\t\t\t\t: null;\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tvalue =\n\t\t\tthis.mode === 'day'\n\t\t\t\t? startOfDay(value)\n\t\t\t\t: this.mode === 'month'\n\t\t\t\t? startOfMonth(value)\n\t\t\t\t: startOfYear(value);\n\t\tconst isSameValue = isSameDay(value, this._value);\n\n\t\tif (isSameValue) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (hideDropdown) {\n\t\t\tthis._showDropdown = false;\n\t\t}\n\n\t\tthis._value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n\n\tprivate _isDisabledDay(day: Date) {\n\t\treturn (\n\t\t\t(this.disableWeekends && isWeekend(day)) ||\n\t\t\t(isBefore(day, this._minDate) && !isSameDay(day, this._minDate)) ||\n\t\t\t(isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||\n\t\t\tthis._disabledDates.findIndex(date => isSameDay(date, day)) >= 0\n\t\t);\n\t}\n\n\tprivate _getFormattedDate() {\n\t\tif (!this._value) {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn format(this._value, this.format, {\n\t\t\tlocale: state.locale === 'nl' ? nl : enUS,\n\t\t});\n\t}\n}\n"]}
@@ -115,11 +115,11 @@ export class Dropdown {
115
115
  this._checkItems();
116
116
  }
117
117
  render() {
118
- return (h(Host, { key: '6da309650d75bc405bf08bff879ae2a99bc49118', class: 'relative' }, h("div", { key: 'dbc9d10a612d8af79516006c404d32a1d950ebea', class: 'trigger', onClick: () => this._triggerClickHandler() }, h("slot", { key: '2185a9119d34299ec4766126f97b12744c4cefda', name: 'trigger' })), h("div", { key: '90a256c8b8432d2154e0bdb818b0740a4fb0a641', class: 'relative w-full' }, h("p-dropdown-menu-container", { key: 'de4317aca95820d31801c29694e1c39510385439', variant: this.variant, maxWidth: this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, class: dropdownContainerClass({
118
+ return (h(Host, { key: '092dc9facc7fc955edf6191226f14553c5080539', class: 'relative' }, h("div", { key: '86dd0817d231e9ab5d803998440feef8ae790edc', class: 'trigger', onClick: () => this._triggerClickHandler() }, h("slot", { key: '507d26c971e7db2c1b95d1b9e4efe90139594fe7', name: 'trigger' })), h("div", { key: '6ebfa048d755e1a0206eacf3581be668747fba3f', class: 'relative w-full' }, h("p-dropdown-menu-container", { key: '887cd58d5febe6b51492d18f286f7984092dff6d', variant: this.variant, maxWidth: this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, class: dropdownContainerClass({
119
119
  strategy: this.strategy,
120
120
  maxWidth: this.applyMaxWidth,
121
121
  fullWidth: this.applyFullWidth && !this.applyMaxWidth,
122
- }), ref: el => this._load(el), onClick: () => this._containerClickHandler(), role: 'popover', "data-placement": this.placement, "data-strategy": this.strategy }, h("slot", { key: 'e210733f18c7794bbe012996a4402a24b5fd1735', name: 'items' })))));
122
+ }), ref: el => this._load(el), onClick: () => this._containerClickHandler(), role: 'popover', "data-placement": this.placement, "data-strategy": this.strategy }, h("slot", { key: 'bda9b61fb5dbd1a486cbd61e6a76683bdf06aa3c', name: 'items' })))));
123
123
  }
124
124
  _checkButtons(active = false) {
125
125
  if (!this.applyChevron) {
@@ -58,11 +58,11 @@ export class EmptyState {
58
58
  const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
59
59
  const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
60
60
  const hasActionSlot = !!this._el.querySelector(':scope > [slot="action"]');
61
- return (h("div", { key: '59abb78f94d26bfdd9973425bea0b4001a27a929', class: emptyState({
61
+ return (h("div", { key: '183f2cbc5de8b5284e0755cdca055e90e767d377', class: emptyState({
62
62
  enableAction: asBoolean(this.enableAction, true),
63
63
  }), onClick: ev => this.enableAction && !this.actionLoading
64
64
  ? this.action.emit(ev)
65
- : undefined }, this.illustration && (h("p-illustration", { key: 'cf16ff181ceee0b52e3cf043f6207798ad6ed73f', 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' }, this.header))), hasContentSlot ? (h("slot", { name: 'content' })) : (this.content?.length && (h("p", { class: 'my-0 text-center text-sm font-normal text-storm-300' }, this.content))), this.enableAction &&
65
+ : undefined }, this.illustration && (h("p-illustration", { key: '65f98af26c32d5316bf0b00f71649009c07f2dc3', 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' }, this.header))), hasContentSlot ? (h("slot", { name: 'content' })) : (this.content?.length && (h("p", { class: 'my-0 text-center text-sm font-normal text-storm-300' }, this.content))), this.enableAction &&
66
66
  (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)))));
67
67
  }
68
68
  static get is() { return "p-empty-state"; }
@@ -320,8 +320,8 @@ export class Field {
320
320
  }
321
321
  render() {
322
322
  const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
323
- return (h("p-field-container", { key: 'f1d4c4009a0d8e5752fc2bac976368b104452f1d', forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
324
- (!!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: '7456a6d32410fb4b815f0e0c6d9cf0d5a7181f07', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: 'fb9d7ce730ee32d851f7316b6a5bd9c6832030a9', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '2678aa150fc000fd0f5e9e226c1e0534516e1b33', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: '0718442d94dc655551cce640685d3708f00a9501', name: 'error', slot: 'error' })), h("div", { key: '2f479dcd9c41b0516967d5d451d54bc5b708d23f', class: field({
323
+ return (h("p-field-container", { key: '54aa72ff66f26588f246942e72cdecbf259c6a7f', forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
324
+ (!!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: 'cc2a9dbcf3c349cb867ef6e9dadd183db64a3179', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '29ce5f567a7a11e5c47ca4a22f9fe05a0a55a044', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: 'f6a3a07bcf5e3b5f8ecda2198725121f1a8ba00e', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: '7a96983f65277a29ccfb9dbfdc3b731832e2dccc', name: 'error', slot: 'error' })), h("div", { key: '63357bd3f9a061518406f6d739eea15a004e59b5', class: field({
325
325
  error: !!this.error?.length,
326
326
  disabled: asBoolean(this.disabled),
327
327
  focused: asBoolean(this.focused) || this._focused,
@@ -332,7 +332,7 @@ export class Field {
332
332
  ? `${this.value}`
333
333
  : undefined, slot: 'content' }, (this.error?.length ||
334
334
  prefix ||
335
- (this.icon && this.iconPosition === 'start')) && (h("div", { key: '293a93912c668dfa04062824a9f08bdc1cc8c24c', class: prefixAndSuffix({
335
+ (this.icon && this.iconPosition === 'start')) && (h("div", { key: '06fadf2bac5cc52891aba2852f2b04d82ec2907f', class: prefixAndSuffix({
336
336
  variant: this.variant,
337
337
  error: !!this.error?.length,
338
338
  disabled: asBoolean(this.disabled),
@@ -342,7 +342,7 @@ export class Field {
342
342
  }), onClick: () => this._focusInput() }, (this.icon && this.iconPosition === 'start') ||
343
343
  this.error?.length ? (h("p-icon", { class: cn('flex', {
344
344
  'mt-1': this.variant === 'read' && this.size === 'base',
345
- }), 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: '1b0cd7d732d22e103eb226cf6ae6ba83e9165e2b', class: prefixAndSuffix({
345
+ }), 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: 'cfc0d9fe009ae4637f607e67fc1a43f271c7f40c', class: prefixAndSuffix({
346
346
  variant: this.variant,
347
347
  error: !!this.error?.length,
348
348
  disabled: asBoolean(this.disabled),
@@ -53,14 +53,14 @@ export class Label {
53
53
  */
54
54
  keepMobileContent = false;
55
55
  render() {
56
- return (h("div", { key: 'd2e807018525657070d427e0abcd37fecadca6d1', class: label({
56
+ return (h("div", { key: 'cb17abfdcda58a1d6921fe8f46fe214e9459f6d5', class: label({
57
57
  variant: this.variant,
58
58
  iconOnly: this.iconOnly,
59
59
  keepMobileContent: this.keepMobileContent,
60
- }) }, this.icon && (h("p-icon", { key: '1f4fae69fcf5af6ee6e1b43b7dae6a2d75018744', class: 'flex-shrink-0', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), !this.iconOnly && (h("div", { key: '1afaf699ff7a08cc3373fd6fa7edcb62f5522cff', class: cn('flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium', {
60
+ }) }, this.icon && (h("p-icon", { key: 'f342bcc2e82f494a39fd58cfe27e316e898cf025', class: 'flex-shrink-0', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), !this.iconOnly && (h("div", { key: '0a47d894da504a9af5f9279552b4bfdcc20b560a', class: cn('flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium', {
61
61
  hidden: !this.keepMobileContent,
62
62
  'desktop-xs:block': !this.keepMobileContent,
63
- }) }, h("slot", { key: 'a07a3e60802525a6bd2ff80b769a7156f51990f1' })))));
63
+ }) }, h("slot", { key: '765b0593839bc6cb08ed6ab73b281aa4c9afbea6' })))));
64
64
  }
65
65
  static get is() { return "p-label"; }
66
66
  static get encapsulation() { return "shadow"; }
@@ -66,10 +66,10 @@ export class NavigationItem {
66
66
  render() {
67
67
  const TagType = this.as;
68
68
  const active = asBoolean(this.active) || this.class?.includes('active');
69
- return (h(Host, { key: 'eb6b10ba66dba8fac446fe04d32508364e88f48f', class: cn('p-navigation-item inline-block', this.class) }, h(TagType, { key: 'e3bddc31268778ff0047606b0d5a041344eacfcf', class: navigationItem({
69
+ return (h(Host, { key: '62cde0844ab0d22e79a1df5fe489a45bd1e5cb84', class: cn('p-navigation-item inline-block', this.class) }, h(TagType, { key: '85e35452625a1a7ef9c0a0cdd031873356aef3d4', class: navigationItem({
70
70
  icon: !!this.icon,
71
71
  active,
72
- }), href: this.href, target: this.target }, h("div", { key: '7a4847681f1b1891caa3516a7300bb67f86573f8', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: 'd15ad1cdffa02057a0f54ffa294bcd464ff9ce59', variant: this.icon })), h("span", { key: '3f85e45d6a1de30cd9eb2a9d78ef07a55735e437', class: this.counter && 'has-counter' }, h("slot", { key: 'fd5979b6f1a79e972b26b59bd2cb09ff325a4bfa' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: '942167259e3775c65702bf3caf3540632e6366d6' }, this.counter)), !!this.loading && h("p-loader", { key: '34e5a62bef8b27bd9796096749b63836f5fb802a', class: 'ml-auto' }))));
72
+ }), href: this.href, target: this.target }, h("div", { key: '655dfef5b95eb271a800a4260cc9a674c2153aff', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: 'c6d09cf32e4fe22f750c402d94a5aaee694ae9e2', variant: this.icon })), h("span", { key: 'ed507c7bedfc400ae4342d99492169316fd6397d', class: this.counter && 'has-counter' }, h("slot", { key: 'd829493c3f4d23cc9b50a2b45d6e906145881ef5' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: '6e8d376f77b1054672207457bece0626c84bf42d' }, this.counter)), !!this.loading && h("p-loader", { key: 'c55cc5ba84291c5edd0bedb9244ddd9783128c96', class: 'ml-auto' }))));
73
73
  }
74
74
  static get is() { return "p-navigation-item"; }
75
75
  static get originalStyleUrls() {
@@ -5,7 +5,7 @@ export class NavigationSection {
5
5
  */
6
6
  header;
7
7
  render() {
8
- return (h(Host, { key: 'b5fd5eb8c323213f8f4e8a35356e3f02dc5274bb', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '8ef7d0eae599dcedc193888175226be9776cf5f6' }, this.header)), h("div", { key: '08fcb13e77b81da664133a11fa92833095e2c4ff', class: 'flex flex-col' }, h("slot", { key: 'f23a88ffd3b1a9c7c9811433f211b3f74c98baa2' }))));
8
+ return (h(Host, { key: 'c920ffe6368d46683c51d8c4373c0301aa0ac027', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '991a80ba24eda3957f8b01bdc81e8737d2c088ec' }, this.header)), h("div", { key: 'b2292d857ff1651fe34dcf96bba1601d03ee753c', class: 'flex flex-col' }, h("slot", { key: 'bf2d997ea801ebe5c7dd075734b44083ffaf735a' }))));
9
9
  }
10
10
  static get is() { return "p-navigation-section"; }
11
11
  static get originalStyleUrls() {
@@ -39,7 +39,7 @@ export class PaginationPages {
39
39
  this._generate();
40
40
  }
41
41
  render() {
42
- return (h("div", { key: 'd57a07032260d58bac44e4107a29d9e1935925c8', class: pagination({
42
+ return (h("div", { key: '9059f6aa4e17968f81d3f33ea23834ce98b2a2d0', class: pagination({
43
43
  hidden: this.hideOnSinglePage && this._set?.length === 3,
44
44
  }) }, this._set?.map(p => {
45
45
  if (p.type === 'previous' || p.type === 'next') {
@@ -59,12 +59,12 @@ export class Pagination {
59
59
  _hasPaginationPages = true;
60
60
  render() {
61
61
  const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
62
- return (h("div", { key: '1d6fa4eee108d6fb429fbd222880278e504fe5bd', class: pagination({
62
+ return (h("div", { key: '6b2d9e69e664b960a2e7f60a2b501852499113d5', class: pagination({
63
63
  hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
64
64
  (!this.enablePaginationSize && !this.enablePaginationPages),
65
- }) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '6e6bcd8f70f0ab34b8373c4b7664061bd6b04e59' }, h("p-pagination-size", { key: '5c56ec9b539bde62cdaac2524713f2c7c1eb1254', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
65
+ }) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '2c0529124bdca7e0da5bedc0e94289b7ecd5864f' }, h("p-pagination-size", { key: 'e022a3d44702b01a419372c209a6acc8b1f5303f', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
66
66
  this.hideOnSinglePage &&
67
- this._hasPaginationPages && (h("p-divider", { key: '5d088202768ee9b0c14cedd97c75d06aa75b9f60', variant: 'vertical', class: 'mx-0 h-4 text-off-white-700' })))), this.enablePaginationPages && (h("p-pagination-pages", { key: '6c6a67c1f6e46d1cd2c56efad2ba6e5cab36cefd', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
67
+ this._hasPaginationPages && (h("p-divider", { key: 'd8f399c6ac9168b827e6f25679d14e6d2e0b00f0', variant: 'vertical', class: 'mx-0 h-4 text-off-white-700' })))), this.enablePaginationPages && (h("p-pagination-pages", { key: '56fc93ebffacdb2d93ac505e5978db2ace3cf8e8', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
68
68
  this._hasPaginationPages = detail > 1;
69
69
  this.pagesChange.emit(detail);
70
70
  } }))));
@@ -22,9 +22,9 @@ export class Range {
22
22
  valueChange;
23
23
  render() {
24
24
  const percentage = Math.round((this.value / (this.max - this.min)) * 100);
25
- return (h("div", { key: 'd752a36ccbbd0f58e037efd7930f1383e990fdf1', class: 'flex w-inherit items-center gap-2 text-storm-300' }, h("p-icon", { key: '073a9283d49be1186521f2523ef34951d661e639', variant: 'minus' }), h("div", { key: 'ad06185fd986cbd65e12158ffba7be707a5f1dcb', class: 'relative h-6 flex-1' }, h("input", { key: '4077fb3587f98508dea3d0447d2ac965c7bcdcf8', type: 'range', min: this.min, max: this.max, step: this.step, value: this.value, onInput: ev => this.valueChange.emit(ev.target.value) }), h("div", { key: '6c7e786746ba2feec543d2aa53bdc67afd2cfc6e', class: 'z-1 absolute left-0 top-1/2 h-[2px] -translate-y-1/2 transform bg-indigo-600', style: {
25
+ return (h("div", { key: '665d7d214edd46e505e11223deae1f5f93a34dac', class: 'flex w-inherit items-center gap-2 text-storm-300' }, h("p-icon", { key: 'af3d4bf3b1f010d1ca248f29da15faa332af5d66', variant: 'minus' }), h("div", { key: '932d2ced7ca676081c30c53219947a0898ca34da', class: 'relative h-6 flex-1' }, h("input", { key: '0fd57e001cd6a5f02ad8dda0be38c7fa5bd84d9c', type: 'range', min: this.min, max: this.max, step: this.step, value: this.value, onInput: ev => this.valueChange.emit(ev.target.value) }), h("div", { key: '429f86eb2f5c9828107789c44f7b87e9b8c2c8b5', class: 'z-1 absolute left-0 top-1/2 h-[2px] -translate-y-1/2 transform bg-indigo-600', style: {
26
26
  width: `calc(${percentage}% - (1rem * ${percentage} / 100))`,
27
- } })), h("p-icon", { key: '74abe8e6c7bd8c75fa6813d0b02df8a589b3f0e3', variant: 'plus' })));
27
+ } })), h("p-icon", { key: 'cad8969106e3f1923f99ccd988c0000438619a15', variant: 'plus' })));
28
28
  }
29
29
  static get is() { return "p-range"; }
30
30
  static get encapsulation() { return "shadow"; }
@@ -305,7 +305,7 @@ export class Select {
305
305
  if (this.error?.length) {
306
306
  buttonIcon = 'warning';
307
307
  }
308
- return (h("p-field-container", { key: 'ade8bf1d8ba4064793820482327dff8906a35eb3', variant: 'write', prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, showOptional: this.showOptional, error: this.error, forceShowTooltip: !!this.error?.length && !this._showDropdown }, h("p-dropdown", { key: '015b145c15f659b318af58f193ffea092f4557ce', applyFullWidth: true, applyMaxWidth: false, slot: 'content', insideClick: true, manual: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, onIsOpen: ev => this._onDropdownOpen(ev), strategy: this.strategy }, h("p-button", { key: 'c07fe8d349a7bbbc8b33dcdd14b2231b5d4595d9', slot: 'trigger', class: 'w-full', variant: 'secondary', size: this.size, chevron: this.showChevron ? (this._showDropdown ? 'up' : 'down') : false, disabled: this.disabled, active: this._showDropdown, error: !!this.error?.length, icon: buttonIcon, onClick: ev => this._onClick(ev) }, h("div", { key: '83f16d864b540b3ae9cf59c17b2159a3d965b777', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue)), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem())));
308
+ return (h("p-field-container", { key: '0593d8681c5fca6db76a5f270c6cc285f193151a', variant: 'write', prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, showOptional: this.showOptional, error: this.error, forceShowTooltip: !!this.error?.length && !this._showDropdown }, h("p-dropdown", { key: 'e329c4f8f7d10f7ef92139e4710bd98ccec126d3', applyFullWidth: true, applyMaxWidth: false, slot: 'content', insideClick: true, manual: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, onIsOpen: ev => this._onDropdownOpen(ev), strategy: this.strategy }, h("p-button", { key: '4c18a3f300b8588b708f9083f2a1730166619684', slot: 'trigger', class: 'w-full', variant: 'secondary', size: this.size, chevron: this.showChevron ? (this._showDropdown ? 'up' : 'down') : false, disabled: this.disabled, active: this._showDropdown, error: !!this.error?.length, icon: buttonIcon, onClick: ev => this._onClick(ev) }, h("div", { key: 'fe051c35cf21df3f255f346687a1daa1b99be813', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue)), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem())));
309
309
  }
310
310
  documentClickHandler(event) {
311
311
  if (!this._showDropdown || childOfComposed(event, this._el)) {
@@ -107,7 +107,7 @@ export class TableCell {
107
107
  };
108
108
  }
109
109
  render() {
110
- return (h(Host, { key: 'e5b3e2d4b4d84b3ed8ecf70600138e5adb681e78', class: this._getColumnClasses() }, this.checkbox, this._getContent()));
110
+ return (h(Host, { key: '9d8c8cf2d313f6235a2f09e1b836dcac3fcf4ec7', class: this._getColumnClasses() }, this.checkbox, this._getContent()));
111
111
  }
112
112
  _getContent() {
113
113
  if (this.variant === 'loading') {
@@ -91,11 +91,11 @@ export class TableFooter {
91
91
  this._renderCheckTimeout = setTimeout(() => this._checkStuck(), 100);
92
92
  }
93
93
  render() {
94
- return (h("div", { key: 'fb6580374d0dcdc950a169e0ceba8273e831cbe5', class: footer({
94
+ return (h("div", { key: '27a3f8bbc0ae7366ba50ee78ea20c6a7af2b5093', class: footer({
95
95
  pinned: this._isPinned,
96
96
  hidden: this._hidden,
97
97
  }) }, (this.enablePaginationPages || this.enablePaginationSize) &&
98
- this.total > 0 && (h("p-pagination", { key: '4f03e1e1a784bc6e20cf26c9403331ea28f80583', class: 'z-[2]', enablePaginationSize: this.enablePaginationSize, enablePaginationPages: this.enablePaginationPages, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, onPageSizeChange: ({ detail }) => this._changePageSize(detail), page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), total: this.total, onPagesChange: ({ detail }) => (this._hasPaginationPages = detail > 1) }))));
98
+ this.total > 0 && (h("p-pagination", { key: '87d31a10b64cf0d39bd3e534b9780ba3af3f94f7', class: 'z-[2]', enablePaginationSize: this.enablePaginationSize, enablePaginationPages: this.enablePaginationPages, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, onPageSizeChange: ({ detail }) => this._changePageSize(detail), page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), total: this.total, onPagesChange: ({ detail }) => (this._hasPaginationPages = detail > 1) }))));
99
99
  }
100
100
  _changePageSize(s) {
101
101
  if (!s) {
@@ -76,13 +76,13 @@ export class TableRow {
76
76
  */
77
77
  isLast = false;
78
78
  render() {
79
- return (h("div", { key: '985691009aeff5ddf3e69f14d2c7685606797fb1', class: 'flex flex-col' }, h("div", { key: '732c2f064f545aafd33f08864ca39a42cf6dc2b4', class: row({
79
+ return (h("div", { key: '4b89cf24267961efd0d38e6423c9444e1ca489fa', class: 'flex flex-col' }, h("div", { key: '365e4fe40c62ffb32f3c64d8a182f5d1eaf5aaf1', class: row({
80
80
  variant: this.variant,
81
81
  enableHover: this.enableHover,
82
82
  checked: this.checked,
83
- }) }, h("div", { key: 'be166244cd460d36fc6c870eb7c83b23794b78b5', class: content({
83
+ }) }, h("div", { key: 'a041be6661c714b7dacb80b044f52335619bc22a', class: content({
84
84
  variant: this.variant,
85
- }) }, h("slot", { key: '9fb6e76c65783db433c76aede4397652bd5946c9' }), h("div", { key: '56ac8f117c8e6cf28ff2f00ea2937ff299b2402e', class: actions() }, h("slot", { key: '0d4f8e470fc2044552211913aee86f358b3fbdd4', name: 'actions' })))), !asBoolean(this.isLast) && this.variant !== 'secondary' && (h("p-divider", { key: '089ed4e540e8c883be26c28148905e697d1c1926' }))));
85
+ }) }, h("slot", { key: '3d120865ccce25575511a20f0c44044cfbba1da3' }), h("div", { key: '09cd3ebe181f2a7f4fb9859befc74433e8e4879c', class: actions() }, h("slot", { key: '04f33ef0c5f4b229906be0aa77372d39b33ba3a7', name: 'actions' })))), !asBoolean(this.isLast) && this.variant !== 'secondary' && (h("p-divider", { key: 'c07ddbcbff2249dff40d222a6f4c9cfa9e8b9cb9' }))));
86
86
  }
87
87
  static get is() { return "p-table-row"; }
88
88
  static get encapsulation() { return "shadow"; }
@@ -48,7 +48,7 @@ export class Toast {
48
48
  */
49
49
  action;
50
50
  render() {
51
- return (h("div", { key: '85632e290cceb8e44c1d846a542b4be4ae710b52', class: 'flex gap-2 rounded-lg border border-solid border-storm-100 bg-white p-2 shadow-2', onClick: () => this._onClick() }, h("div", { key: '976492254a92d129114b39cc715a7ba4d284fb90', class: indicator({ variant: this.variant }) }), h("div", { key: '9eb4d859239ea6adead3ab1afdec23653643211c', class: content() }, h("div", { key: 'baae5161ccc1bd0f455b23dbf1388787cc32e4b0', class: 'flex w-full min-w-0 flex-col' }, h("p", { key: '3dc2c0e3c03ab3c037031dae236cdbeaa754eb6b', class: 'm-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-storm-500' }, this.header?.length ? this.header : h("slot", { name: 'header' })), h("p", { key: '8f54e9d6f8c8cc59278e943676cc2396e3ea79ca', class: 'm-0 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs text-storm-300' }, this.content?.length ? this.content : h("slot", { name: 'content' }))), this.enableAction && (h("div", { key: '27583758fc5639866d3195d9d2b1eacaa7111401', class: 'flex-shrink-0 cursor-pointer p-2 text-storm-200 hover:text-storm-500' }, h("p-icon", { key: '0916610b404ea9ce90d61ec203bcbbff43e01761', variant: this.actionIcon, flip: this.actionIconFlip, rotate: this.actionIconRotate }))))));
51
+ return (h("div", { key: 'dec92ca36c76ee7938dbe44b4d236624df3d6aee', class: 'flex gap-2 rounded-lg border border-solid border-storm-100 bg-white p-2 shadow-2', onClick: () => this._onClick() }, h("div", { key: '837cc10986ba0c04c5149e28fbda5c4958494b65', class: indicator({ variant: this.variant }) }), h("div", { key: 'c490afc0f09e384d1e68dc5c498f3a0da307ae3a', class: content() }, h("div", { key: '2faa5e08e40b78e948fdc45459cdc1ad0e2a3168', class: 'flex w-full min-w-0 flex-col' }, h("p", { key: '85325fb200b241fe6b8cddf1cad3f69f5dcb945f', class: 'm-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-storm-500' }, this.header?.length ? this.header : h("slot", { name: 'header' })), h("p", { key: '79b2d9eee8be0b7b94c5d24f47cb15ed0ac3a2f4', class: 'm-0 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs text-storm-300' }, this.content?.length ? this.content : h("slot", { name: 'content' }))), this.enableAction && (h("div", { key: 'fe67011d04ce72e9cdd46abc682122a439bcc7c2', class: 'flex-shrink-0 cursor-pointer p-2 text-storm-200 hover:text-storm-500' }, h("p-icon", { key: '12c0dfd8939fecd1c39440a81b57b0a02879df0e', variant: this.actionIcon, flip: this.actionIconFlip, rotate: this.actionIconRotate }))))));
52
52
  }
53
53
  _onClick() {
54
54
  if (this.enableAction) {
@@ -18,10 +18,10 @@ export class Listing {
18
18
  }
19
19
  }
20
20
  render() {
21
- return (h("div", { key: '756a9669e83dcea5fd61cbfa8cead90e6c13d030', class: cn('flex w-full flex-col flex-wrap items-start gap-1', {
21
+ return (h("div", { key: 'e92572ff3c10939cfc788becd323e6b0f1524c05', class: cn('flex w-full flex-col flex-wrap items-start gap-1', {
22
22
  'opacity-100': this._generatedOnce,
23
23
  'opacity-0': !this._generatedOnce,
24
- }) }, h("slot", { key: '24ebcbc78316d665ee8b93d66eed96c810cc2e82', onSlotchange: () => this._generateLinesOnce() })));
24
+ }) }, h("slot", { key: 'cb8849ac7ee0ea82f1616e84276b0b27485c6017', onSlotchange: () => this._generateLinesOnce() })));
25
25
  }
26
26
  _generateLinesOnce() {
27
27
  if (this._generateTimeout) {
@@ -1 +1 @@
1
- .w-full{width:100%!important}.max-h-screen-safe{max-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}*{box-sizing:border-box}:host{max-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));width:100%;.safe-sidebar{padding-top:calc(env(safe-area-inset-top, 0) + 1rem)!important;&.show{--tw-translate-x:env(safe-area-inset-left,0)!important}}.safe-topbar{height:calc(env(safe-area-inset-top, 0) + 4rem);padding-top:calc(env(safe-area-inset-top, 0) + 1rem)!important}}@media (min-width:80rem){:host{width:15rem}}@media (min-width:105rem){:host{width:18rem}}@media (min-width:80rem){.layout-1280\:w-60{width:15rem!important}}.pointer-events-none{pointer-events:none!important}.static{position:static!important}.fixed{position:fixed!important}.relative{position:relative!important}.left-0{left:0!important}.top-0{top:0!important}.z-navbar{z-index:300!important}.z-navbar-backdrop{z-index:290!important}.z-navbar-topbar{z-index:280!important}.mt-auto{margin-top:auto!important}.flex{display:flex!important}.hidden{display:none!important}.h-screen{height:100vh!important}.w-60{width:15rem!important}.max-w-\[16\.5rem\]{max-width:16.5rem!important}.-translate-x-full{--tw-translate-x:-100%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.items-stretch{align-items:stretch!important}.justify-end{justify-content:flex-end!important}.justify-between{justify-content:space-between!important}.gap-6{gap:1.5rem!important}.overflow-y-auto{overflow-y:auto!important}.border-0{border-width:0!important}.border-b{border-bottom-width:1px!important}.border-r{border-right-width:1px!important}.border-solid{border-style:solid!important}.border-off-white-700{--tw-border-opacity:1!important;border-color:rgb(222 219 213/var(--tw-border-opacity,1))!important}.bg-off-white-300{--tw-bg-opacity:1!important;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))!important}.p-4{padding:1rem!important}.opacity-0{opacity:0!important}.opacity-100{opacity:1!important}.transition-all{transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.will-change-transform{will-change:transform!important}@media (min-width:80rem){.layout-1280\:relative{position:relative!important}.layout-1280\:z-0{z-index:0!important}.layout-1280\:flex{display:flex!important}.layout-1280\:hidden{display:none!important}.layout-1280\:h-full{height:100%!important}.layout-1280\:max-w-none{max-width:none!important}.layout-1280\:translate-x-0{--tw-translate-x:0px!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}}
1
+ .w-full{width:100%!important}.max-h-screen-safe{max-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}*{box-sizing:border-box}:host{max-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));width:100%;.safe-sidebar{padding-top:calc(env(safe-area-inset-top, 0) + 1rem)!important;&.show{--tw-translate-x:env(safe-area-inset-left,0)!important}}.safe-topbar{height:calc(env(safe-area-inset-top, 0) + 4rem);padding-top:calc(env(safe-area-inset-top, 0) + 1rem)!important}}@media (min-width:80rem){:host{width:15rem}}@media (min-width:105rem){:host{width:18rem}}@media (min-width:80rem){.layout-1280\:w-60{width:15rem!important}}.pointer-events-none{pointer-events:none!important}.static{position:static!important}.fixed{position:fixed!important}.relative{position:relative!important}.left-0{left:0!important}.top-0{top:0!important}.z-navbar{z-index:300!important}.z-navbar-backdrop{z-index:290!important}.z-navbar-topbar{z-index:280!important}.mt-auto{margin-top:auto!important}.flex{display:flex!important}.hidden{display:none!important}.h-screen{height:100vh!important}.w-60{width:15rem!important}.max-w-\[16\.5rem\]{max-width:16.5rem!important}.-translate-x-full{--tw-translate-x:-100%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.items-stretch{align-items:stretch!important}.justify-end{justify-content:flex-end!important}.justify-between{justify-content:space-between!important}.gap-6{gap:1.5rem!important}.overflow-y-auto{overflow-y:auto!important}.border-0{border-width:0!important}.border-b{border-bottom-width:1px!important}.border-r{border-right-width:1px!important}.border-solid{border-style:solid!important}.border-off-white-700{--tw-border-opacity:1!important;border-color:rgb(222 219 213/var(--tw-border-opacity,1))!important}.bg-off-white-300{--tw-bg-opacity:1!important;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))!important}.p-4{padding:1rem!important}.opacity-0{opacity:0!important}.opacity-100{opacity:1!important}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.transition,.transition-all{transition-duration:.15s!important}.transition-all{transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.will-change-transform{will-change:transform!important}@media (min-width:80rem){.layout-1280\:relative{position:relative!important}.layout-1280\:z-0{z-index:0!important}.layout-1280\:flex{display:flex!important}.layout-1280\:hidden{display:none!important}.layout-1280\:h-full{height:100%!important}.layout-1280\:max-w-none{max-width:none!important}.layout-1280\:translate-x-0{--tw-translate-x:0px!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}}.dark\:border-black\/10:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:rgba(0,0,0,.1)!important}.dark\:bg-storm-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1!important;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))!important}
@@ -1,8 +1,10 @@
1
- import { h, Host } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { cva } from "class-variance-authority";
3
+ import { ThemedHost } from "../../../internal/themed-host.component";
3
4
  const sidebarAndTopbar = cva([
4
- 'bg-off-white-300',
5
- 'border-0 border-solid border-off-white-700',
5
+ 'transition',
6
+ 'bg-off-white-300 dark:bg-storm-500',
7
+ 'border-0 border-solid border-off-white-700 dark:border-black/10',
6
8
  'p-4',
7
9
  ]);
8
10
  const sidebar = cva([
@@ -42,7 +44,7 @@ const backdrop = cva(['z-navbar-backdrop layout-1280:hidden transition-opacity r
42
44
  export class Navbar {
43
45
  _show = false;
44
46
  render() {
45
- return (h(Host, { key: '18b587d46cf90a64839a92b384c0c846956ab719' }, h("p-backdrop", { key: '8fa1fc15cd2a3d73e184be1d8b05b00a2250a817', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: 'a86a6d8cb844535089dc0cfdd9e61be37f7a8aeb', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: 'c62d1a5e5b384ece436f73b5095bfcc32d2aa9a9', class: 'flex w-full items-center justify-end layout-1280:hidden' }, h("p-button", { key: '5d4344ea9d35b208e00a0a7c1d57653ab49ae869', variant: 'secondary', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, onClick: () => (this._show = false) })), h("div", { key: '1884206f5a1a5252b13134c6bed820ff754c8e94', class: 'flex w-full flex-col items-stretch' }, h("slot", { key: '3083671a2ce65ad3996d564852e605ccb3c8f3fd', name: 'company' })), h("div", { key: 'e1108ffe12ff5c29583133687ad4a03de9fdd422', class: 'flex w-full flex-col gap-6 overflow-y-auto' }, h("slot", { key: '671825c57316a77c44bcfb7c9cf4cf0c3e139471', name: 'content' })), h("div", { key: 'c9b380a6bebe537ee52ef72f0575d9e0629a07ef', class: 'mt-auto hidden w-full flex-col layout-1280:flex' }, h("slot", { key: '863e5eca2a9e9dff830eece5f3e5a5d665767200', name: 'user' }))), h("div", { key: 'b505928cfbb0cbacf0821882b69d9bb28eff2d71', class: topbar({ class: sidebarAndTopbar() }) }, h("p-button", { key: 'b01c8a60d3d5877ba959254093b252c5d7e0ad7b', variant: 'secondary', iconOnly: true, icon: 'menu-arrow', onClick: () => (this._show = true) }), h("slot", { key: '4bccc7e1aa006b962fc13b117ec3a2657f2c81ca', name: 'topbar' }))));
47
+ return (h(ThemedHost, { key: '31eedc2ef9d78900837d49562d5e8d7c2ab33973' }, h("p-backdrop", { key: '80d8d0888d7e8cf54173a7cf1b41c50c84851d9a', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: 'a2b8770005c01a99042cbc6513262af338723957', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: 'e0a51d697263d4c0b193fa3ab187ced1f4afeefd', class: 'flex w-full items-center justify-end layout-1280:hidden' }, h("p-button", { key: '4316beceefc3bde7e6ec47739c9e06050f6c601a', variant: 'secondary', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, onClick: () => (this._show = false) })), h("div", { key: '7927d4643057229bf904deb5dff66f8bc2519077', class: 'flex w-full flex-col items-stretch' }, h("slot", { key: '0c4b1c3dcfaa40452dfb1115d00b8d4bd3195cc0', name: 'company' })), h("div", { key: 'a20b137d65de574f5ba72557e6fe19fa9537e98e', class: 'flex w-full flex-col gap-6 overflow-y-auto' }, h("slot", { key: 'b281b1f8860b3aaab60cbb171db679ed0ee10305', name: 'content' })), h("div", { key: '4fe33e97ecb7f4f34589e95014e611b3c317f9e0', class: 'mt-auto hidden w-full flex-col layout-1280:flex' }, h("slot", { key: '37ac77d592aa11dab7ae02ff590f0c4a30e74f85', name: 'user' }))), h("div", { key: '23455107ac0a7c9a755871445a5ae23023670f7c', class: topbar({ class: sidebarAndTopbar() }) }, h("p-button", { key: 'df45fc9cbdc497027579a83cb7e227900f4572cf', variant: 'secondary', iconOnly: true, icon: 'menu-arrow', onClick: () => (this._show = true) }), h("slot", { key: '29c03781bd36629b4f5e27adb8e7122103c15206', name: 'topbar' }))));
46
48
  }
47
49
  handleCloseNavbar() {
48
50
  this._show = false;
@@ -1 +1 @@
1
- {"version":3,"file":"navbar.component.js","sourceRoot":"","sources":["../../../../src/components/organisms/navbar/navbar.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,gBAAgB,GAAG,GAAG,CAAC;IAC5B,kBAAkB;IAClB,4CAA4C;IAC5C,KAAK;CACL,CAAC,CAAC;AAEH,MAAM,OAAO,GAAG,GAAG,CAClB;IACC,eAAe;IAEf,2CAA2C;IAC3C,wBAAwB;IACxB,gFAAgF;IAChF,OAAO;IAEP,gBAAgB;IAChB,uBAAuB;IACvB,2DAA2D;IAE3D,UAAU;IAEV,cAAc;CACd,EACD;IACC,QAAQ,EAAE;QACT,IAAI,EAAE;YACL,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,MAAM;SACZ;KACD;CACD,CACD,CAAC;AAEF,MAAM,MAAM,GAAG,GAAG,CAAC;IAClB,0CAA0C;IAC1C,0BAA0B;IAC1B,UAAU;IACV,oBAAoB;IACpB,aAAa;CACb,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAG,GAAG,CACnB,CAAC,kEAAkE,CAAC,EACpE;IACC,QAAQ,EAAE;QACT,IAAI,EAAE;YACL,KAAK,EAAE,+BAA+B;YACtC,IAAI,EAAE,aAAa;SACnB;KACD;CACD,CACD,CAAC;AAOF,MAAM,OAAO,MAAM;IACD,KAAK,GAAG,KAAK,CAAC;IAE/B,MAAM;QACL,OAAO,CACN,EAAC,IAAI;YACJ,mEACC,KAAK,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,EACrC,UAAU,EAAE,IAAI,CAAC,KAAK,EACtB,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,GACxB;YACd,4DAAK,KAAK,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;gBACnE,4DAAK,KAAK,EAAC,yDAAyD;oBACnE,iEACC,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,YAAY,EACjB,QAAQ,EAAC,YAAY,EACrB,QAAQ,EAAE,IAAI,EACd,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,GACxB,CACP;gBACN,4DAAK,KAAK,EAAC,oCAAoC;oBAC9C,6DAAM,IAAI,EAAC,SAAS,GAAG,CAClB;gBACN,4DAAK,KAAK,EAAC,4CAA4C;oBACtD,6DAAM,IAAI,EAAC,SAAS,GAAG,CAClB;gBAEN,4DAAK,KAAK,EAAC,iDAAiD;oBAC3D,6DAAM,IAAI,EAAC,MAAM,GAAG,CACf,CACD;YACN,4DAAK,KAAK,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,EAAE,CAAC;gBAChD,iEACC,OAAO,EAAC,WAAW,EACnB,QAAQ,EAAE,IAAI,EACd,IAAI,EAAC,YAAY,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,GACvB;gBAEZ,6DAAM,IAAI,EAAC,QAAQ,GAAG,CACjB,CACA,CACP,CAAC;IACH,CAAC;IAGD,iBAAiB;QAChB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACpB,CAAC;IAGD,gBAAgB;QACf,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACnB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Host, Listen, State } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\nconst sidebarAndTopbar = cva([\n\t'bg-off-white-300',\n\t'border-0 border-solid border-off-white-700',\n\t'p-4',\n]);\n\nconst sidebar = cva(\n\t[\n\t\t'flex flex-col',\n\n\t\t'fixed left-0 top-0 z-navbar h-screen w-60',\n\t\t'w-full max-w-[16.5rem]',\n\t\t'layout-1280:relative layout-1280:z-0 layout-1280:max-w-none layout-1280:h-full',\n\t\t'gap-6',\n\n\t\t'transition-all',\n\t\t'will-change-transform',\n\t\t'-translate-x-full transform-gpu layout-1280:translate-x-0',\n\n\t\t'border-r',\n\n\t\t'safe-sidebar',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tshow: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'show',\n\t\t\t},\n\t\t},\n\t}\n);\n\nconst topbar = cva([\n\t'flex w-full justify-between items-center',\n\t'relative z-navbar-topbar',\n\t'border-b',\n\t'layout-1280:hidden',\n\t'safe-topbar',\n]);\n\nconst backdrop = cva(\n\t['z-navbar-backdrop layout-1280:hidden transition-opacity relative'],\n\t{\n\t\tvariants: {\n\t\t\tshow: {\n\t\t\t\tfalse: 'opacity-0 pointer-events-none',\n\t\t\t\ttrue: 'opacity-100',\n\t\t\t},\n\t\t},\n\t}\n);\n\n@Component({\n\ttag: 'p-navbar',\n\tstyleUrl: 'navbar.component.css',\n\tshadow: true,\n})\nexport class Navbar {\n\t@State() private _show = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<p-backdrop\n\t\t\t\t\tclass={backdrop({ show: this._show })}\n\t\t\t\t\tscrollLock={this._show}\n\t\t\t\t\tonClicked={() => (this._show = false)}\n\t\t\t\t></p-backdrop>\n\t\t\t\t<div class={sidebar({ class: sidebarAndTopbar(), show: this._show })}>\n\t\t\t\t\t<div class='flex w-full items-center justify-end layout-1280:hidden'>\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\t\ticon='menu-arrow'\n\t\t\t\t\t\t\ticonFlip='horizontal'\n\t\t\t\t\t\t\ticonOnly={true}\n\t\t\t\t\t\t\tonClick={() => (this._show = false)}\n\t\t\t\t\t\t></p-button>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='flex w-full flex-col items-stretch'>\n\t\t\t\t\t\t<slot name='company' />\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='flex w-full flex-col gap-6 overflow-y-auto'>\n\t\t\t\t\t\t<slot name='content' />\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class='mt-auto hidden w-full flex-col layout-1280:flex'>\n\t\t\t\t\t\t<slot name='user' />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class={topbar({ class: sidebarAndTopbar() })}>\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\ticonOnly={true}\n\t\t\t\t\t\ticon='menu-arrow'\n\t\t\t\t\t\tonClick={() => (this._show = true)}\n\t\t\t\t\t></p-button>\n\n\t\t\t\t\t<slot name='topbar' />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('closeNavbar', { target: 'window' })\n\thandleCloseNavbar() {\n\t\tthis._show = false;\n\t}\n\n\t@Listen('openNavbar', { target: 'window' })\n\thandleOpenNavbar() {\n\t\tthis._show = true;\n\t}\n}\n"]}
1
+ {"version":3,"file":"navbar.component.js","sourceRoot":"","sources":["../../../../src/components/organisms/navbar/navbar.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAErE,MAAM,gBAAgB,GAAG,GAAG,CAAC;IAC5B,YAAY;IACZ,oCAAoC;IACpC,iEAAiE;IACjE,KAAK;CACL,CAAC,CAAC;AAEH,MAAM,OAAO,GAAG,GAAG,CAClB;IACC,eAAe;IAEf,2CAA2C;IAC3C,wBAAwB;IACxB,gFAAgF;IAChF,OAAO;IAEP,gBAAgB;IAChB,uBAAuB;IACv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SAAS,GAAG,CAClB;gBAEN,4DAAK,KAAK,EAAC,iDAAiD;oBAC3D,6DAAM,IAAI,EAAC,MAAM,GAAG,CACf,CACD;YACN,4DAAK,KAAK,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,EAAE,CAAC;gBAChD,iEACC,OAAO,EAAC,WAAW,EACnB,QAAQ,EAAE,IAAI,EACd,IAAI,EAAC,YAAY,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,GACvB;gBAEZ,6DAAM,IAAI,EAAC,QAAQ,GAAG,CACjB,CACM,CACb,CAAC;IACH,CAAC;IAGD,iBAAiB;QAChB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACpB,CAAC;IAGD,gBAAgB;QACf,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACnB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Listen, State } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { ThemedHost } from '../../../internal/themed-host.component';\n\nconst sidebarAndTopbar = cva([\n\t'transition',\n\t'bg-off-white-300 dark:bg-storm-500',\n\t'border-0 border-solid border-off-white-700 dark:border-black/10',\n\t'p-4',\n]);\n\nconst sidebar = cva(\n\t[\n\t\t'flex flex-col',\n\n\t\t'fixed left-0 top-0 z-navbar h-screen w-60',\n\t\t'w-full max-w-[16.5rem]',\n\t\t'layout-1280:relative layout-1280:z-0 layout-1280:max-w-none layout-1280:h-full',\n\t\t'gap-6',\n\n\t\t'transition-all',\n\t\t'will-change-transform',\n\t\t'-translate-x-full transform-gpu layout-1280:translate-x-0',\n\n\t\t'border-r',\n\n\t\t'safe-sidebar',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tshow: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'show',\n\t\t\t},\n\t\t},\n\t}\n);\n\nconst topbar = cva([\n\t'flex w-full justify-between items-center',\n\t'relative z-navbar-topbar',\n\t'border-b',\n\t'layout-1280:hidden',\n\t'safe-topbar',\n]);\n\nconst backdrop = cva(\n\t['z-navbar-backdrop layout-1280:hidden transition-opacity relative'],\n\t{\n\t\tvariants: {\n\t\t\tshow: {\n\t\t\t\tfalse: 'opacity-0 pointer-events-none',\n\t\t\t\ttrue: 'opacity-100',\n\t\t\t},\n\t\t},\n\t}\n);\n\n@Component({\n\ttag: 'p-navbar',\n\tstyleUrl: 'navbar.component.css',\n\tshadow: true,\n})\nexport class Navbar {\n\t@State() private _show = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<ThemedHost>\n\t\t\t\t<p-backdrop\n\t\t\t\t\tclass={backdrop({ show: this._show })}\n\t\t\t\t\tscrollLock={this._show}\n\t\t\t\t\tonClicked={() => (this._show = false)}\n\t\t\t\t></p-backdrop>\n\t\t\t\t<div class={sidebar({ class: sidebarAndTopbar(), show: this._show })}>\n\t\t\t\t\t<div class='flex w-full items-center justify-end layout-1280:hidden'>\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\t\ticon='menu-arrow'\n\t\t\t\t\t\t\ticonFlip='horizontal'\n\t\t\t\t\t\t\ticonOnly={true}\n\t\t\t\t\t\t\tonClick={() => (this._show = false)}\n\t\t\t\t\t\t></p-button>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='flex w-full flex-col items-stretch'>\n\t\t\t\t\t\t<slot name='company' />\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='flex w-full flex-col gap-6 overflow-y-auto'>\n\t\t\t\t\t\t<slot name='content' />\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class='mt-auto hidden w-full flex-col layout-1280:flex'>\n\t\t\t\t\t\t<slot name='user' />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class={topbar({ class: sidebarAndTopbar() })}>\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\ticonOnly={true}\n\t\t\t\t\t\ticon='menu-arrow'\n\t\t\t\t\t\tonClick={() => (this._show = true)}\n\t\t\t\t\t></p-button>\n\n\t\t\t\t\t<slot name='topbar' />\n\t\t\t\t</div>\n\t\t\t</ThemedHost>\n\t\t);\n\t}\n\n\t@Listen('closeNavbar', { target: 'window' })\n\thandleCloseNavbar() {\n\t\tthis._show = false;\n\t}\n\n\t@Listen('openNavbar', { target: 'window' })\n\thandleOpenNavbar() {\n\t\tthis._show = true;\n\t}\n}\n"]}
@@ -1,4 +1,5 @@
1
+ export * from './state';
2
+ export * from './tailwind';
1
3
  export * from './types';
2
4
  export * from './utils';
3
- export * from './tailwind';
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC","sourcesContent":["export { Components, JSX } from './components';\nexport * from './types';\nexport * from './utils';\nexport * from './tailwind';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,SAAS,CAAC;AAExB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC","sourcesContent":["export { Components, JSX } from './components';\n\nexport * from './state';\n\nexport * from './tailwind';\nexport * from './types';\nexport * from './utils';\n"]}
@@ -0,0 +1,6 @@
1
+ import { h, Host } from "@stencil/core";
2
+ import { state } from "../state";
3
+ export const ThemedHost = (props, children) => {
4
+ return (h(Host, { ...props, "data-theme": state.theme }, children));
5
+ };
6
+ //# sourceMappingURL=themed-host.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"themed-host.component.js","sourceRoot":"","sources":["../../src/internal/themed-host.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,CAAC,MAAM,UAAU,GAAwB,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;IAClE,OAAO,CACN,EAAC,IAAI,OACA,KAAK,gBACG,KAAK,CAAC,KAAK,IAEtB,QAAQ,CACH,CACP,CAAC;AACH,CAAC,CAAC","sourcesContent":["import { FunctionalComponent, h, Host } from '@stencil/core';\nimport { state } from '../state';\n\nexport const ThemedHost: FunctionalComponent = (props, children) => {\n\treturn (\n\t\t<Host\n\t\t\t{...props}\n\t\t\tdata-theme={state.theme}\n\t\t>\n\t\t\t{children}\n\t\t</Host>\n\t);\n};\n"]}