@paperless/core 2.6.3 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (704) hide show
  1. package/CHANGELOG.md +23 -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/build/{p-84979460.entry.js → p-0e9d3d2f.entry.js} +2 -2
  7. package/dist/build/{p-542a718b.entry.js → p-0f438d6f.entry.js} +2 -2
  8. package/dist/{paperless/p-53b913b4.entry.js → build/p-112f1a9a.entry.js} +2 -2
  9. package/dist/build/{p-419077c3.entry.js → p-12c0b2c1.entry.js} +2 -2
  10. package/dist/build/{p-6581ce9c.entry.js → p-13317dea.entry.js} +2 -2
  11. package/dist/build/{p-21bb6e96.entry.js → p-146cdc9a.entry.js} +2 -2
  12. package/dist/build/{p-59ab69e0.entry.js → p-1687f809.entry.js} +2 -2
  13. package/dist/build/p-1e3a00fe.entry.js +2 -0
  14. package/dist/build/{p-9a5d6efb.entry.js → p-1f97d5ba.entry.js} +2 -2
  15. package/dist/build/{p-78403aa3.entry.js → p-2770aacd.entry.js} +2 -2
  16. package/dist/build/{p-00e39694.entry.js → p-318e4b82.entry.js} +2 -2
  17. package/dist/{paperless/p-4e7c1803.entry.js → build/p-34bd3730.entry.js} +2 -2
  18. package/dist/build/{p-a9ba2e62.entry.js → p-35338296.entry.js} +2 -2
  19. package/dist/{paperless/p-9ab2cb8d.entry.js → build/p-364d8401.entry.js} +2 -2
  20. package/dist/{paperless/p-fbd40be8.entry.js → build/p-3edcd351.entry.js} +2 -2
  21. package/dist/build/{p-0fe51ad0.entry.js → p-41567df7.entry.js} +2 -2
  22. package/dist/{paperless/p-fa78c45a.entry.js → build/p-4891bb38.entry.js} +2 -2
  23. package/dist/build/{p-1a551082.entry.js → p-491389e5.entry.js} +2 -2
  24. package/dist/build/{p-805bad94.entry.js → p-4a8ff191.entry.js} +2 -2
  25. package/dist/build/{p-37bdbb19.entry.js → p-4fcc39f7.entry.js} +2 -2
  26. package/dist/build/p-50010f40.entry.js +2 -0
  27. package/dist/build/p-50010f40.entry.js.map +1 -0
  28. package/dist/build/{p-20f5071b.entry.js → p-5268f0bc.entry.js} +2 -2
  29. package/dist/{paperless/p-993afcc3.entry.js → build/p-59fd0fa7.entry.js} +2 -2
  30. package/dist/{paperless/p-993afcc3.entry.js.map → build/p-59fd0fa7.entry.js.map} +1 -1
  31. package/dist/build/p-6b5f80a0.entry.js +2 -0
  32. package/dist/build/p-6b5f80a0.entry.js.map +1 -0
  33. package/dist/build/p-6c02bbb0.entry.js +2 -0
  34. package/dist/build/p-6c02bbb0.entry.js.map +1 -0
  35. package/dist/build/{p-3e2d2587.entry.js → p-718ba1f3.entry.js} +3 -3
  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/build/{p-f1f4ba5c.js → p-96dc9260.js} +1 -1
  46. package/dist/{paperless/p-97570c84.entry.js → build/p-9ea16d5d.entry.js} +2 -2
  47. package/dist/{paperless/p-7f1f62c2.entry.js → build/p-9ecab5af.entry.js} +2 -2
  48. package/dist/{paperless/p-DhGo7hbh.js → build/p-CNnSbQbk.js} +2 -2
  49. package/dist/{paperless/p-DhGo7hbh.js.map → build/p-CNnSbQbk.js.map} +1 -1
  50. package/dist/build/p-Cw3Hhv5N.js +2 -0
  51. package/dist/build/p-Cw3Hhv5N.js.map +1 -0
  52. package/dist/build/p-EKSDxqjG.js +2 -0
  53. package/dist/build/p-EKSDxqjG.js.map +1 -0
  54. package/dist/build/p-X28EVNq0.js +2 -0
  55. package/dist/build/p-X28EVNq0.js.map +1 -0
  56. package/dist/build/{p-cbd7870f.entry.js → p-a106f17c.entry.js} +2 -2
  57. package/dist/build/p-ae7b0672.entry.js +2 -0
  58. package/dist/build/{p-dc21ccd3.entry.js → p-b3dfeaaa.entry.js} +2 -2
  59. package/dist/build/p-b54d5ecf.css +1 -0
  60. package/dist/{paperless/p-c1d4c641.entry.js → build/p-bb77ae46.entry.js} +2 -2
  61. package/dist/build/{p-9c277029.entry.js → p-bcbcbffe.entry.js} +2 -2
  62. package/dist/{paperless/p-9c653182.entry.js → build/p-c5867976.entry.js} +2 -2
  63. package/dist/{paperless/p-54428a6a.entry.js → build/p-c9870068.entry.js} +2 -2
  64. package/dist/build/p-calendar.entry.esm.js.map +1 -1
  65. package/dist/build/p-card-container.entry.esm.js.map +1 -1
  66. package/dist/{paperless/p-d9a3295f.entry.js → build/p-cdeae6b0.entry.js} +2 -2
  67. package/dist/{paperless/p-eb66dfac.entry.js → build/p-d09bba4f.entry.js} +2 -2
  68. package/dist/{paperless/p-a3273e15.entry.js → build/p-d3fba507.entry.js} +2 -2
  69. package/dist/build/p-d7f0d02f.entry.js +2 -0
  70. package/dist/build/p-d7f0d02f.entry.js.map +1 -0
  71. package/dist/build/p-datepicker.entry.esm.js.map +1 -1
  72. package/dist/{paperless/p-6cb78d87.entry.js → build/p-e0c437fe.entry.js} +2 -2
  73. package/dist/build/{p-8325525f.entry.js → p-e20184ea.entry.js} +2 -2
  74. package/dist/{paperless/p-0b3af128.entry.js → build/p-e2cc514b.entry.js} +2 -2
  75. package/dist/build/{p-317e4698.entry.js → p-fbbe58f8.entry.js} +2 -2
  76. package/dist/build/{p-b8b570c4.entry.js → p-ff624855.entry.js} +2 -2
  77. package/dist/build/p-navbar.entry.esm.js.map +1 -1
  78. package/dist/build/p-table.entry.esm.js.map +1 -1
  79. package/dist/build/paperless.css +1 -1
  80. package/dist/build/paperless.esm.js +1 -1
  81. package/dist/cjs/{index-BDuPp9vl.js → index-BJGYQ0sK.js} +18 -2
  82. package/dist/cjs/{index-BDuPp9vl.js.map → index-BJGYQ0sK.js.map} +1 -1
  83. package/dist/cjs/{index-FAqASDWS.js → index-Dt9qqH1T.js} +405 -71
  84. package/dist/cjs/index-Dt9qqH1T.js.map +1 -0
  85. package/dist/cjs/index.cjs.js +26 -18
  86. package/dist/cjs/index.cjs.js.map +1 -1
  87. package/dist/cjs/loader.cjs.js +1 -1
  88. package/dist/cjs/p-accordion.cjs.entry.js +3 -3
  89. package/dist/cjs/p-attachment.cjs.entry.js +7 -7
  90. package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
  91. package/dist/cjs/p-avatar.cjs.entry.js +1 -1
  92. package/dist/cjs/p-backdrop.cjs.entry.js +1 -1
  93. package/dist/cjs/p-badge_3.cjs.entry.js +4 -4
  94. package/dist/cjs/p-button-group.cjs.entry.js +2 -2
  95. package/dist/cjs/p-button_3.cjs.entry.js +1 -1
  96. package/dist/cjs/p-calendar.cjs.entry.js +13 -6
  97. package/dist/cjs/p-calendar.cjs.entry.js.map +1 -1
  98. package/dist/cjs/p-calendar.entry.cjs.js.map +1 -1
  99. package/dist/cjs/p-card-body.cjs.entry.js +1 -1
  100. package/dist/cjs/p-card-container.cjs.entry.js +15 -5
  101. package/dist/cjs/p-card-container.cjs.entry.js.map +1 -1
  102. package/dist/cjs/p-card-container.entry.cjs.js.map +1 -1
  103. package/dist/cjs/p-card-header.cjs.entry.js +4 -4
  104. package/dist/cjs/p-checkbox_4.cjs.entry.js +13 -13
  105. package/dist/cjs/p-content-slider.cjs.entry.js +3 -3
  106. package/dist/cjs/p-cropper.cjs.entry.js +2 -2
  107. package/dist/cjs/p-datepicker.cjs.entry.js +23 -6
  108. package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
  109. package/dist/cjs/p-datepicker.entry.cjs.js.map +1 -1
  110. package/dist/cjs/p-divider.cjs.entry.js +4 -4
  111. package/dist/cjs/p-drawer-body_3.cjs.entry.js +5 -5
  112. package/dist/cjs/p-drawer.cjs.entry.js +1 -1
  113. package/dist/cjs/p-empty-state_8.cjs.entry.js +11 -11
  114. package/dist/cjs/p-field_2.cjs.entry.js +5 -5
  115. package/dist/cjs/p-floating-menu-item.cjs.entry.js +3 -3
  116. package/dist/cjs/p-helper_2.cjs.entry.js +4 -4
  117. package/dist/cjs/p-iban-icon.cjs.entry.js +1 -1
  118. package/dist/cjs/p-illustration-deprecated.cjs.entry.js +1 -1
  119. package/dist/cjs/p-illustration.cjs.entry.js +1 -1
  120. package/dist/cjs/p-info-panel.cjs.entry.js +2 -2
  121. package/dist/cjs/p-label.cjs.entry.js +4 -4
  122. package/dist/cjs/p-layout.cjs.entry.js +2 -2
  123. package/dist/cjs/p-listing-item.cjs.entry.js +2 -2
  124. package/dist/cjs/p-listing-line.cjs.entry.js +2 -2
  125. package/dist/cjs/p-listing.cjs.entry.js +3 -3
  126. package/dist/cjs/p-modal-body_4.cjs.entry.js +7 -7
  127. package/dist/cjs/p-modal.cjs.entry.js +1 -1
  128. package/dist/cjs/p-navbar.cjs.entry.js +8 -5
  129. package/dist/cjs/p-navbar.cjs.entry.js.map +1 -1
  130. package/dist/cjs/p-navbar.entry.cjs.js.map +1 -1
  131. package/dist/cjs/p-navigation-item.cjs.entry.js +3 -3
  132. package/dist/cjs/p-navigation-section.cjs.entry.js +2 -2
  133. package/dist/cjs/p-navigation-title.cjs.entry.js +2 -2
  134. package/dist/cjs/p-pagination-pages-item.cjs.entry.js +3 -3
  135. package/dist/cjs/p-pagination_3.cjs.entry.js +5 -5
  136. package/dist/cjs/p-profile.cjs.entry.js +1 -1
  137. package/dist/cjs/p-radio.cjs.entry.js +4 -4
  138. package/dist/cjs/p-range.cjs.entry.js +3 -3
  139. package/dist/cjs/p-select.cjs.entry.js +2 -2
  140. package/dist/cjs/p-smile.cjs.entry.js +2 -2
  141. package/dist/cjs/p-stepper-item_2.cjs.entry.js +6 -6
  142. package/dist/cjs/p-stepper.cjs.entry.js +1 -1
  143. package/dist/cjs/p-tab-container.cjs.entry.js +2 -2
  144. package/dist/cjs/p-tab-item.cjs.entry.js +2 -2
  145. package/dist/cjs/p-table-column.cjs.entry.js +1 -1
  146. package/dist/cjs/p-table-row-action.cjs.entry.js +1 -1
  147. package/dist/cjs/p-table.cjs.entry.js +2 -2
  148. package/dist/cjs/p-table.cjs.entry.js.map +1 -1
  149. package/dist/cjs/p-table.entry.cjs.js.map +1 -1
  150. package/dist/cjs/p-toast-container.cjs.entry.js +3 -3
  151. package/dist/cjs/p-toast.cjs.entry.js +2 -2
  152. package/dist/cjs/p-toggle.cjs.entry.js +4 -4
  153. package/dist/cjs/paperless.cjs.js +1 -1
  154. package/dist/cjs/state-9Y65F5kb.js +253 -0
  155. package/dist/cjs/state-9Y65F5kb.js.map +1 -0
  156. package/dist/cjs/themed-host.component-DFEbe48h.js +13 -0
  157. package/dist/cjs/themed-host.component-DFEbe48h.js.map +1 -0
  158. package/dist/collection/components/atoms/card/container/card-container.component.css +1 -1
  159. package/dist/collection/components/atoms/card/container/card-container.component.js +12 -3
  160. package/dist/collection/components/atoms/card/container/card-container.component.js.map +1 -1
  161. package/dist/collection/components/atoms/card/header/card-header.component.js +3 -3
  162. package/dist/collection/components/atoms/checkbox/checkbox.component.js +4 -4
  163. package/dist/collection/components/atoms/divider/divider.component.js +3 -3
  164. package/dist/collection/components/atoms/drawer/body/drawer-body.component.js +1 -1
  165. package/dist/collection/components/atoms/drawer/container/drawer-container.component.js +2 -2
  166. package/dist/collection/components/atoms/drawer/header/drawer-header.component.js +1 -1
  167. package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.js +3 -3
  168. package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +3 -3
  169. package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +2 -2
  170. package/dist/collection/components/atoms/helper/helper.component.js +1 -1
  171. package/dist/collection/components/atoms/info-panel/info-panel.component.js +1 -1
  172. package/dist/collection/components/atoms/layout/layout.component.js +1 -1
  173. package/dist/collection/components/atoms/listing/item/listing-item.component.js +1 -1
  174. package/dist/collection/components/atoms/listing/line/listing-line.component.js +1 -1
  175. package/dist/collection/components/atoms/modal/body/modal-body.component.js +2 -2
  176. package/dist/collection/components/atoms/modal/container/modal-container.component.js +2 -2
  177. package/dist/collection/components/atoms/modal/footer/modal-footer.component.js +1 -1
  178. package/dist/collection/components/atoms/modal/header/modal-header.component.js +1 -1
  179. package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
  180. package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.js +2 -2
  181. package/dist/collection/components/atoms/radio/radio.component.js +3 -3
  182. package/dist/collection/components/atoms/segment/container/segment-container.component.js +1 -1
  183. package/dist/collection/components/atoms/segment/item/segment-item.component.js +2 -2
  184. package/dist/collection/components/atoms/smile/smile.component.js +1 -1
  185. package/dist/collection/components/atoms/stepper/item/stepper-item.component.js +4 -4
  186. package/dist/collection/components/atoms/stepper/line/stepper-line.component.js +1 -1
  187. package/dist/collection/components/atoms/tab/container/tab-container.component.js +1 -1
  188. package/dist/collection/components/atoms/tab/item/tab-item.component.js +1 -1
  189. package/dist/collection/components/atoms/table/actions-container/table-container.component.js +1 -1
  190. package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +1 -1
  191. package/dist/collection/components/atoms/toast-container/toast-container.component.js +2 -2
  192. package/dist/collection/components/atoms/toggle/toggle.component.js +3 -3
  193. package/dist/collection/components/atoms/tooltip/tooltip.component.js +2 -2
  194. package/dist/collection/components/molecules/accordion/accordion.component.js +2 -2
  195. package/dist/collection/components/molecules/attachment/attachment.component.js +6 -6
  196. package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
  197. package/dist/collection/components/molecules/calendar/calendar.component.js +12 -4
  198. package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -1
  199. package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
  200. package/dist/collection/components/molecules/cropper/cropper.component.js +1 -1
  201. package/dist/collection/components/molecules/datepicker/datepicker.component.js +22 -4
  202. package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -1
  203. package/dist/collection/components/molecules/dropdown/dropdown.component.js +2 -2
  204. package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
  205. package/dist/collection/components/molecules/field/field/field.component.js +4 -4
  206. package/dist/collection/components/molecules/label/label.component.js +3 -3
  207. package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +2 -2
  208. package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
  209. package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +1 -1
  210. package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
  211. package/dist/collection/components/molecules/range/range.component.js +2 -2
  212. package/dist/collection/components/molecules/select/select.component.js +1 -1
  213. package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
  214. package/dist/collection/components/molecules/table/footer/table-footer.component.js +2 -2
  215. package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
  216. package/dist/collection/components/molecules/toast/toast.component.js +1 -1
  217. package/dist/collection/components/organisms/listing/listing.component.js +2 -2
  218. package/dist/collection/components/organisms/navbar/navbar.component.css +1 -1
  219. package/dist/collection/components/organisms/navbar/navbar.component.js +6 -4
  220. package/dist/collection/components/organisms/navbar/navbar.component.js.map +1 -1
  221. package/dist/collection/components/organisms/table/table.component.js +1 -1
  222. package/dist/collection/components/organisms/table/table.component.js.map +1 -1
  223. package/dist/collection/index.js +2 -1
  224. package/dist/collection/index.js.map +1 -1
  225. package/dist/collection/internal/themed-host.component.js +6 -0
  226. package/dist/collection/internal/themed-host.component.js.map +1 -0
  227. package/dist/collection/state.js +36 -0
  228. package/dist/collection/state.js.map +1 -0
  229. package/dist/collection/tailwind/theme/colors.js +1 -0
  230. package/dist/collection/tailwind/theme/colors.js.map +1 -1
  231. package/dist/collection/tailwind.config.js +1 -0
  232. package/dist/collection/tailwind.config.js.map +1 -1
  233. package/dist/components/index.js +12 -10
  234. package/dist/components/index.js.map +1 -1
  235. package/dist/components/{p-DWsW_D0V.js → p-4sqhIpUp.js} +3 -3
  236. package/dist/components/{p-DWsW_D0V.js.map → p-4sqhIpUp.js.map} +1 -1
  237. package/dist/components/{p-CDF0u5fl.js → p-6cqiSGZO.js} +14 -14
  238. package/dist/components/{p-CDF0u5fl.js.map → p-6cqiSGZO.js.map} +1 -1
  239. package/dist/components/{p-C-RgoZv4.js → p-B0skInOM.js} +5 -5
  240. package/dist/components/{p-C-RgoZv4.js.map → p-B0skInOM.js.map} +1 -1
  241. package/dist/components/{p-BRnY1zdf.js → p-B9bfyk_o.js} +5 -5
  242. package/dist/components/{p-BRnY1zdf.js.map → p-B9bfyk_o.js.map} +1 -1
  243. package/dist/components/{p-RuhxHrdY.js → p-BA2VuVYJ.js} +8 -8
  244. package/dist/components/{p-RuhxHrdY.js.map → p-BA2VuVYJ.js.map} +1 -1
  245. package/dist/components/p-BSL5cktm.js +11 -0
  246. package/dist/components/p-BSL5cktm.js.map +1 -0
  247. package/dist/components/{p-3Uu9SRMg.js → p-Bfmp3OPx.js} +8 -8
  248. package/dist/components/{p-3Uu9SRMg.js.map → p-Bfmp3OPx.js.map} +1 -1
  249. package/dist/components/{p-C6RWkimA.js → p-BiWMxBAJ.js} +6 -6
  250. package/dist/components/{p-C6RWkimA.js.map → p-BiWMxBAJ.js.map} +1 -1
  251. package/dist/components/{p-BUp9ElaY.js → p-BjzvlPmK.js} +13 -13
  252. package/dist/components/{p-BUp9ElaY.js.map → p-BjzvlPmK.js.map} +1 -1
  253. package/dist/components/{p-Da0Vk5zI.js → p-BxaMa-zX.js} +5 -5
  254. package/dist/components/{p-Da0Vk5zI.js.map → p-BxaMa-zX.js.map} +1 -1
  255. package/dist/components/{p-CR36e-YR.js → p-C2Em7CPU.js} +3 -3
  256. package/dist/components/{p-CR36e-YR.js.map → p-C2Em7CPU.js.map} +1 -1
  257. package/dist/components/{p-D30EqV3s.js → p-C3NM3TpX.js} +4 -4
  258. package/dist/components/{p-D30EqV3s.js.map → p-C3NM3TpX.js.map} +1 -1
  259. package/dist/components/{p-BJg6oRaH.js → p-C5ARltpo.js} +420 -80
  260. package/dist/components/p-C5ARltpo.js.map +1 -0
  261. package/dist/components/{p-Bn6Arg73.js → p-C6GU5tE5.js} +5 -5
  262. package/dist/components/{p-Bn6Arg73.js.map → p-C6GU5tE5.js.map} +1 -1
  263. package/dist/components/{p-DKYj0xlY.js → p-C6zgmyle.js} +8 -8
  264. package/dist/components/{p-DKYj0xlY.js.map → p-C6zgmyle.js.map} +1 -1
  265. package/dist/components/{p-CvfOjT_y.js → p-CEFg09mj.js} +3 -3
  266. package/dist/components/{p-CvfOjT_y.js.map → p-CEFg09mj.js.map} +1 -1
  267. package/dist/components/p-CNxD99na.js +247 -0
  268. package/dist/components/p-CNxD99na.js.map +1 -0
  269. package/dist/components/{p-DwtD7Wpi.js → p-CQD0GsAo.js} +7 -7
  270. package/dist/components/{p-DwtD7Wpi.js.map → p-CQD0GsAo.js.map} +1 -1
  271. package/dist/components/{p-tdjn65Lz.js → p-CRSKFTLB.js} +17 -3
  272. package/dist/components/p-CRSKFTLB.js.map +1 -0
  273. package/dist/components/{p-rlO7JrUU.js → p-CUIjth2u.js} +7 -7
  274. package/dist/components/{p-rlO7JrUU.js.map → p-CUIjth2u.js.map} +1 -1
  275. package/dist/components/{p-BBDZj5F5.js → p-C_G1K6W7.js} +5 -5
  276. package/dist/components/{p-BBDZj5F5.js.map → p-C_G1K6W7.js.map} +1 -1
  277. package/dist/components/{p-CSIFLNsS.js → p-Cd8bEp0e.js} +4 -4
  278. package/dist/components/{p-CSIFLNsS.js.map → p-Cd8bEp0e.js.map} +1 -1
  279. package/dist/components/{p-v8ShN4Lu.js → p-CeV3e9Ed.js} +15 -15
  280. package/dist/components/{p-v8ShN4Lu.js.map → p-CeV3e9Ed.js.map} +1 -1
  281. package/dist/components/{p-5F7i7JYI.js → p-CkEQyy75.js} +6 -6
  282. package/dist/components/{p-5F7i7JYI.js.map → p-CkEQyy75.js.map} +1 -1
  283. package/dist/components/{p-CI2j2oC1.js → p-CqCcGAN-.js} +8 -8
  284. package/dist/components/{p-CI2j2oC1.js.map → p-CqCcGAN-.js.map} +1 -1
  285. package/dist/components/{p-DUJkO2n3.js → p-CwI9SpGk.js} +6 -6
  286. package/dist/components/{p-DUJkO2n3.js.map → p-CwI9SpGk.js.map} +1 -1
  287. package/dist/components/{p-9uqRVS0-.js → p-CzlGgwa6.js} +6 -6
  288. package/dist/components/{p-9uqRVS0-.js.map → p-CzlGgwa6.js.map} +1 -1
  289. package/dist/components/{p-C3sIHSTA.js → p-DAPYNh1W.js} +4 -4
  290. package/dist/components/{p-C3sIHSTA.js.map → p-DAPYNh1W.js.map} +1 -1
  291. package/dist/components/{p-D_goLzIz.js → p-DCncXHn8.js} +4 -4
  292. package/dist/components/{p-D_goLzIz.js.map → p-DCncXHn8.js.map} +1 -1
  293. package/dist/components/{p-wXp3GFHo.js → p-DD9o0VSs.js} +4 -4
  294. package/dist/components/{p-wXp3GFHo.js.map → p-DD9o0VSs.js.map} +1 -1
  295. package/dist/components/{p-BBZqWGjs.js → p-DHpGjClN.js} +15 -15
  296. package/dist/components/{p-BBZqWGjs.js.map → p-DHpGjClN.js.map} +1 -1
  297. package/dist/components/{p-CK0zv8Hv.js → p-DKyqEQOI.js} +5 -5
  298. package/dist/components/{p-CK0zv8Hv.js.map → p-DKyqEQOI.js.map} +1 -1
  299. package/dist/components/{p-3V3jLJ40.js → p-DQTEQ5vY.js} +7 -7
  300. package/dist/components/{p-3V3jLJ40.js.map → p-DQTEQ5vY.js.map} +1 -1
  301. package/dist/components/{p-DxmvFiF3.js → p-DVuwVg4C.js} +3 -3
  302. package/dist/components/{p-DxmvFiF3.js.map → p-DVuwVg4C.js.map} +1 -1
  303. package/dist/components/{p-DRnTySb-.js → p-DbR2eHRM.js} +3 -3
  304. package/dist/components/{p-DRnTySb-.js.map → p-DbR2eHRM.js.map} +1 -1
  305. package/dist/components/{p-Fa6eP7ZQ.js → p-DeobaUTR.js} +6 -6
  306. package/dist/components/{p-Fa6eP7ZQ.js.map → p-DeobaUTR.js.map} +1 -1
  307. package/dist/components/{p-DC4qozte.js → p-DkDvtuHb.js} +9 -9
  308. package/dist/components/{p-DC4qozte.js.map → p-DkDvtuHb.js.map} +1 -1
  309. package/dist/components/{p-DI407tdD.js → p-DktGBJJX.js} +5 -5
  310. package/dist/components/{p-DI407tdD.js.map → p-DktGBJJX.js.map} +1 -1
  311. package/dist/components/{p-CVgaeLBB.js → p-DsH8IdGu.js} +6 -6
  312. package/dist/components/{p-CVgaeLBB.js.map → p-DsH8IdGu.js.map} +1 -1
  313. package/dist/components/{p-Cb7zGv2a.js → p-Dzc909RW.js} +5 -5
  314. package/dist/components/{p-Cb7zGv2a.js.map → p-Dzc909RW.js.map} +1 -1
  315. package/dist/components/{p-B8Ai2EJn.js → p-I8WvUr7g.js} +6 -6
  316. package/dist/components/{p-B8Ai2EJn.js.map → p-I8WvUr7g.js.map} +1 -1
  317. package/dist/components/{p-DcB4vo69.js → p-Kd4E5xHS.js} +4 -4
  318. package/dist/components/{p-DcB4vo69.js.map → p-Kd4E5xHS.js.map} +1 -1
  319. package/dist/components/{p-C4WDKcUV.js → p-QuG6bo9L.js} +4 -4
  320. package/dist/components/{p-C4WDKcUV.js.map → p-QuG6bo9L.js.map} +1 -1
  321. package/dist/components/{p-BfzApjOK.js → p-UHgjv8T6.js} +7 -7
  322. package/dist/components/{p-BfzApjOK.js.map → p-UHgjv8T6.js.map} +1 -1
  323. package/dist/components/p-accordion.js +5 -5
  324. package/dist/components/p-attachment.js +13 -13
  325. package/dist/components/p-avatar-group.js +1 -1
  326. package/dist/components/p-avatar.js +1 -1
  327. package/dist/components/p-backdrop.js +1 -1
  328. package/dist/components/p-badge.js +1 -1
  329. package/dist/components/p-button-group.js +2 -2
  330. package/dist/components/p-button.js +1 -1
  331. package/dist/components/p-calendar.js +1 -1
  332. package/dist/components/p-card-body.js +1 -1
  333. package/dist/components/p-card-container.js +14 -5
  334. package/dist/components/p-card-container.js.map +1 -1
  335. package/dist/components/p-card-header.js +7 -7
  336. package/dist/components/p-checkbox.js +1 -1
  337. package/dist/components/p-content-slider.js +3 -3
  338. package/dist/components/p-cropper.js +4 -4
  339. package/dist/components/p-datepicker.js +32 -15
  340. package/dist/components/p-datepicker.js.map +1 -1
  341. package/dist/components/p-divider.js +1 -1
  342. package/dist/components/p-drawer-body.js +1 -1
  343. package/dist/components/p-drawer-container.js +1 -1
  344. package/dist/components/p-drawer-header.js +1 -1
  345. package/dist/components/p-drawer.js +9 -9
  346. package/dist/components/p-dropdown-menu-container.js +1 -1
  347. package/dist/components/p-dropdown-menu-item.js +1 -1
  348. package/dist/components/p-dropdown.js +1 -1
  349. package/dist/components/{p-BjsPeqGD.js → p-e-mjdgYn.js} +3 -3
  350. package/dist/components/{p-BjsPeqGD.js.map → p-e-mjdgYn.js.map} +1 -1
  351. package/dist/components/p-empty-state.js +1 -1
  352. package/dist/components/p-field-container.js +1 -1
  353. package/dist/components/p-field.js +1 -1
  354. package/dist/components/p-floating-menu-container.js +1 -1
  355. package/dist/components/p-floating-menu-item.js +1 -1
  356. package/dist/components/p-helper.js +1 -1
  357. package/dist/components/p-iban-icon.js +1 -1
  358. package/dist/components/p-icon.js +1 -1
  359. package/dist/components/p-illustration-deprecated.js +1 -1
  360. package/dist/components/p-illustration.js +1 -1
  361. package/dist/components/p-info-panel.js +3 -3
  362. package/dist/components/p-label.js +5 -5
  363. package/dist/components/p-layout.js +2 -2
  364. package/dist/components/p-listing-item.js +3 -3
  365. package/dist/components/p-listing-line.js +1 -1
  366. package/dist/components/p-listing.js +4 -4
  367. package/dist/components/p-loader.js +1 -1
  368. package/dist/components/p-modal-body.js +1 -1
  369. package/dist/components/p-modal-container.js +1 -1
  370. package/dist/components/p-modal-footer.js +1 -1
  371. package/dist/components/p-modal-header.js +1 -1
  372. package/dist/components/p-modal.js +11 -11
  373. package/dist/components/p-navbar.js +11 -9
  374. package/dist/components/p-navbar.js.map +1 -1
  375. package/dist/components/p-navigation-item.js +6 -6
  376. package/dist/components/p-navigation-section.js +3 -3
  377. package/dist/components/p-navigation-title.js +1 -1
  378. package/dist/components/p-pagination-pages-item.js +1 -1
  379. package/dist/components/p-pagination-pages.js +1 -1
  380. package/dist/components/p-pagination-size.js +1 -1
  381. package/dist/components/p-pagination.js +1 -1
  382. package/dist/components/p-profile.js +6 -6
  383. package/dist/components/p-radio.js +4 -4
  384. package/dist/components/p-range.js +1 -1
  385. package/dist/components/{p-D3EM8Uiq.js → p-rlGdjFMT.js} +7 -7
  386. package/dist/components/{p-D3EM8Uiq.js.map → p-rlGdjFMT.js.map} +1 -1
  387. package/dist/components/p-segment-container.js +1 -1
  388. package/dist/components/p-segment-item.js +1 -1
  389. package/dist/components/p-select.js +14 -14
  390. package/dist/components/p-smile.js +1 -1
  391. package/dist/components/p-stepper-item.js +1 -1
  392. package/dist/components/p-stepper-line.js +1 -1
  393. package/dist/components/p-stepper.js +3 -3
  394. package/dist/components/p-tab-container.js +3 -3
  395. package/dist/components/p-tab-item.js +2 -2
  396. package/dist/components/p-table-cell.js +1 -1
  397. package/dist/components/p-table-column.js +1 -1
  398. package/dist/components/p-table-container.js +1 -1
  399. package/dist/components/p-table-footer.js +1 -1
  400. package/dist/components/p-table-header.js +1 -1
  401. package/dist/components/p-table-row-action.js +1 -1
  402. package/dist/components/p-table-row-actions-container.js +1 -1
  403. package/dist/components/p-table-row.js +1 -1
  404. package/dist/components/p-table.js +31 -31
  405. package/dist/components/p-table.js.map +1 -1
  406. package/dist/components/p-toast-container.js +3 -3
  407. package/dist/components/p-toast.js +3 -3
  408. package/dist/components/p-toggle.js +4 -4
  409. package/dist/components/p-tooltip.js +1 -1
  410. package/dist/components/{p-D6gMJJ_3.js → p-u3j0oh8O.js} +8 -8
  411. package/dist/components/{p-D6gMJJ_3.js.map → p-u3j0oh8O.js.map} +1 -1
  412. package/dist/components/{p-v_qRLJr8.js → p-u7w6ZHr0.js} +4 -4
  413. package/dist/components/{p-v_qRLJr8.js.map → p-u7w6ZHr0.js.map} +1 -1
  414. package/dist/esm/{index-DhGo7hbh.js → index-CNnSbQbk.js} +17 -3
  415. package/dist/esm/{index-DhGo7hbh.js.map → index-CNnSbQbk.js.map} +1 -1
  416. package/dist/esm/{index-K1xa0GD1.js → index-EKSDxqjG.js} +404 -71
  417. package/dist/esm/index-EKSDxqjG.js.map +1 -0
  418. package/dist/esm/index.js +12 -9
  419. package/dist/esm/index.js.map +1 -1
  420. package/dist/esm/loader.js +2 -2
  421. package/dist/esm/p-accordion.entry.js +3 -3
  422. package/dist/esm/p-attachment.entry.js +7 -7
  423. package/dist/esm/p-avatar-group.entry.js +1 -1
  424. package/dist/esm/p-avatar.entry.js +1 -1
  425. package/dist/esm/p-backdrop.entry.js +1 -1
  426. package/dist/esm/p-badge_3.entry.js +4 -4
  427. package/dist/esm/p-button-group.entry.js +2 -2
  428. package/dist/esm/p-button_3.entry.js +1 -1
  429. package/dist/esm/p-calendar.entry.js +13 -6
  430. package/dist/esm/p-calendar.entry.js.map +1 -1
  431. package/dist/esm/p-card-body.entry.js +1 -1
  432. package/dist/esm/p-card-container.entry.js +15 -5
  433. package/dist/esm/p-card-container.entry.js.map +1 -1
  434. package/dist/esm/p-card-header.entry.js +4 -4
  435. package/dist/esm/p-checkbox_4.entry.js +13 -13
  436. package/dist/esm/p-content-slider.entry.js +3 -3
  437. package/dist/esm/p-cropper.entry.js +2 -2
  438. package/dist/esm/p-datepicker.entry.js +23 -6
  439. package/dist/esm/p-datepicker.entry.js.map +1 -1
  440. package/dist/esm/p-divider.entry.js +4 -4
  441. package/dist/esm/p-drawer-body_3.entry.js +5 -5
  442. package/dist/esm/p-drawer.entry.js +1 -1
  443. package/dist/esm/p-empty-state_8.entry.js +11 -11
  444. package/dist/esm/p-field_2.entry.js +5 -5
  445. package/dist/esm/p-floating-menu-item.entry.js +3 -3
  446. package/dist/esm/p-helper_2.entry.js +4 -4
  447. package/dist/esm/p-iban-icon.entry.js +1 -1
  448. package/dist/esm/p-illustration-deprecated.entry.js +1 -1
  449. package/dist/esm/p-illustration.entry.js +1 -1
  450. package/dist/esm/p-info-panel.entry.js +2 -2
  451. package/dist/esm/p-label.entry.js +4 -4
  452. package/dist/esm/p-layout.entry.js +2 -2
  453. package/dist/esm/p-listing-item.entry.js +2 -2
  454. package/dist/esm/p-listing-line.entry.js +2 -2
  455. package/dist/esm/p-listing.entry.js +3 -3
  456. package/dist/esm/p-modal-body_4.entry.js +7 -7
  457. package/dist/esm/p-modal.entry.js +1 -1
  458. package/dist/esm/p-navbar.entry.js +8 -5
  459. package/dist/esm/p-navbar.entry.js.map +1 -1
  460. package/dist/esm/p-navigation-item.entry.js +3 -3
  461. package/dist/esm/p-navigation-section.entry.js +2 -2
  462. package/dist/esm/p-navigation-title.entry.js +2 -2
  463. package/dist/esm/p-pagination-pages-item.entry.js +3 -3
  464. package/dist/esm/p-pagination_3.entry.js +5 -5
  465. package/dist/esm/p-profile.entry.js +1 -1
  466. package/dist/esm/p-radio.entry.js +4 -4
  467. package/dist/esm/p-range.entry.js +3 -3
  468. package/dist/esm/p-select.entry.js +2 -2
  469. package/dist/esm/p-smile.entry.js +2 -2
  470. package/dist/esm/p-stepper-item_2.entry.js +6 -6
  471. package/dist/esm/p-stepper.entry.js +1 -1
  472. package/dist/esm/p-tab-container.entry.js +2 -2
  473. package/dist/esm/p-tab-item.entry.js +2 -2
  474. package/dist/esm/p-table-column.entry.js +1 -1
  475. package/dist/esm/p-table-row-action.entry.js +1 -1
  476. package/dist/esm/p-table.entry.js +2 -2
  477. package/dist/esm/p-table.entry.js.map +1 -1
  478. package/dist/esm/p-toast-container.entry.js +3 -3
  479. package/dist/esm/p-toast.entry.js +2 -2
  480. package/dist/esm/p-toggle.entry.js +4 -4
  481. package/dist/esm/paperless.js +2 -2
  482. package/dist/esm/state-BsTOa3w8.js +247 -0
  483. package/dist/esm/state-BsTOa3w8.js.map +1 -0
  484. package/dist/esm/themed-host.component-UpbDmgQR.js +11 -0
  485. package/dist/esm/themed-host.component-UpbDmgQR.js.map +1 -0
  486. package/dist/index.html +1 -1
  487. package/dist/paperless/index.esm.js +1 -1
  488. package/dist/paperless/index.esm.js.map +1 -1
  489. package/dist/paperless/{p-d8c60f3c.entry.js → p-02a5ba4c.entry.js} +2 -2
  490. package/dist/paperless/{p-1f45e45a.entry.js → p-0720742f.entry.js} +2 -2
  491. package/dist/paperless/{p-84979460.entry.js → p-0e9d3d2f.entry.js} +2 -2
  492. package/dist/paperless/{p-542a718b.entry.js → p-0f438d6f.entry.js} +2 -2
  493. package/dist/{build/p-53b913b4.entry.js → paperless/p-112f1a9a.entry.js} +2 -2
  494. package/dist/paperless/{p-419077c3.entry.js → p-12c0b2c1.entry.js} +2 -2
  495. package/dist/paperless/{p-6581ce9c.entry.js → p-13317dea.entry.js} +2 -2
  496. package/dist/paperless/{p-21bb6e96.entry.js → p-146cdc9a.entry.js} +2 -2
  497. package/dist/paperless/{p-59ab69e0.entry.js → p-1687f809.entry.js} +2 -2
  498. package/dist/paperless/p-1e3a00fe.entry.js +2 -0
  499. package/dist/paperless/{p-9a5d6efb.entry.js → p-1f97d5ba.entry.js} +2 -2
  500. package/dist/paperless/{p-78403aa3.entry.js → p-2770aacd.entry.js} +2 -2
  501. package/dist/paperless/{p-00e39694.entry.js → p-318e4b82.entry.js} +2 -2
  502. package/dist/{build/p-4e7c1803.entry.js → paperless/p-34bd3730.entry.js} +2 -2
  503. package/dist/paperless/{p-a9ba2e62.entry.js → p-35338296.entry.js} +2 -2
  504. package/dist/{build/p-9ab2cb8d.entry.js → paperless/p-364d8401.entry.js} +2 -2
  505. package/dist/{build/p-fbd40be8.entry.js → paperless/p-3edcd351.entry.js} +2 -2
  506. package/dist/paperless/{p-0fe51ad0.entry.js → p-41567df7.entry.js} +2 -2
  507. package/dist/{build/p-fa78c45a.entry.js → paperless/p-4891bb38.entry.js} +2 -2
  508. package/dist/paperless/{p-1a551082.entry.js → p-491389e5.entry.js} +2 -2
  509. package/dist/paperless/{p-805bad94.entry.js → p-4a8ff191.entry.js} +2 -2
  510. package/dist/paperless/{p-37bdbb19.entry.js → p-4fcc39f7.entry.js} +2 -2
  511. package/dist/paperless/p-50010f40.entry.js +2 -0
  512. package/dist/paperless/p-50010f40.entry.js.map +1 -0
  513. package/dist/paperless/{p-20f5071b.entry.js → p-5268f0bc.entry.js} +2 -2
  514. package/dist/{build/p-993afcc3.entry.js → paperless/p-59fd0fa7.entry.js} +2 -2
  515. package/dist/{build/p-993afcc3.entry.js.map → paperless/p-59fd0fa7.entry.js.map} +1 -1
  516. package/dist/paperless/p-6b5f80a0.entry.js +2 -0
  517. package/dist/paperless/p-6b5f80a0.entry.js.map +1 -0
  518. package/dist/paperless/p-6c02bbb0.entry.js +2 -0
  519. package/dist/paperless/p-6c02bbb0.entry.js.map +1 -0
  520. package/dist/paperless/{p-3e2d2587.entry.js → p-718ba1f3.entry.js} +3 -3
  521. package/dist/paperless/{p-827b1bd0.entry.js → p-775d1f94.entry.js} +2 -2
  522. package/dist/{build/p-925d7ffc.entry.js → paperless/p-7e13aa00.entry.js} +2 -2
  523. package/dist/paperless/{p-2366e61d.entry.js → p-80609f67.entry.js} +2 -2
  524. package/dist/{build/p-b176abc5.entry.js → paperless/p-8332b7f6.entry.js} +2 -2
  525. package/dist/paperless/{p-27b62457.entry.js → p-835abd94.entry.js} +2 -2
  526. package/dist/{build/p-6fdd90eb.entry.js → paperless/p-8c96207e.entry.js} +2 -2
  527. package/dist/paperless/{p-2acef846.entry.js → p-8cc2dc9f.entry.js} +2 -2
  528. package/dist/paperless/{p-81d7ca4b.entry.js → p-8ee8d5e6.entry.js} +2 -2
  529. package/dist/{build/p-918229ab.entry.js → paperless/p-95cacdf1.entry.js} +2 -2
  530. package/dist/{build/p-97570c84.entry.js → paperless/p-9ea16d5d.entry.js} +2 -2
  531. package/dist/{build/p-7f1f62c2.entry.js → paperless/p-9ecab5af.entry.js} +2 -2
  532. package/dist/{build/p-DhGo7hbh.js → paperless/p-CNnSbQbk.js} +2 -2
  533. package/dist/{build/p-DhGo7hbh.js.map → paperless/p-CNnSbQbk.js.map} +1 -1
  534. package/dist/paperless/p-Cw3Hhv5N.js +2 -0
  535. package/dist/paperless/p-Cw3Hhv5N.js.map +1 -0
  536. package/dist/paperless/p-EKSDxqjG.js +2 -0
  537. package/dist/paperless/p-EKSDxqjG.js.map +1 -0
  538. package/dist/paperless/p-X28EVNq0.js +2 -0
  539. package/dist/paperless/p-X28EVNq0.js.map +1 -0
  540. package/dist/paperless/{p-cbd7870f.entry.js → p-a106f17c.entry.js} +2 -2
  541. package/dist/paperless/p-ae7b0672.entry.js +2 -0
  542. package/dist/paperless/{p-dc21ccd3.entry.js → p-b3dfeaaa.entry.js} +2 -2
  543. package/dist/{build/p-c1d4c641.entry.js → paperless/p-bb77ae46.entry.js} +2 -2
  544. package/dist/paperless/{p-9c277029.entry.js → p-bcbcbffe.entry.js} +2 -2
  545. package/dist/{build/p-9c653182.entry.js → paperless/p-c5867976.entry.js} +2 -2
  546. package/dist/{build/p-54428a6a.entry.js → paperless/p-c9870068.entry.js} +2 -2
  547. package/dist/paperless/p-calendar.entry.esm.js.map +1 -1
  548. package/dist/paperless/p-card-container.entry.esm.js.map +1 -1
  549. package/dist/{build/p-d9a3295f.entry.js → paperless/p-cdeae6b0.entry.js} +2 -2
  550. package/dist/{build/p-eb66dfac.entry.js → paperless/p-d09bba4f.entry.js} +2 -2
  551. package/dist/{build/p-a3273e15.entry.js → paperless/p-d3fba507.entry.js} +2 -2
  552. package/dist/paperless/p-d7f0d02f.entry.js +2 -0
  553. package/dist/paperless/p-d7f0d02f.entry.js.map +1 -0
  554. package/dist/paperless/p-datepicker.entry.esm.js.map +1 -1
  555. package/dist/{build/p-6cb78d87.entry.js → paperless/p-e0c437fe.entry.js} +2 -2
  556. package/dist/paperless/{p-8325525f.entry.js → p-e20184ea.entry.js} +2 -2
  557. package/dist/{build/p-0b3af128.entry.js → paperless/p-e2cc514b.entry.js} +2 -2
  558. package/dist/paperless/{p-317e4698.entry.js → p-fbbe58f8.entry.js} +2 -2
  559. package/dist/paperless/{p-b8b570c4.entry.js → p-ff624855.entry.js} +2 -2
  560. package/dist/paperless/p-navbar.entry.esm.js.map +1 -1
  561. package/dist/paperless/p-table.entry.esm.js.map +1 -1
  562. package/dist/paperless/paperless.css +1 -1
  563. package/dist/paperless/paperless.esm.js +1 -1
  564. package/dist/style/_reset.scss +9 -2
  565. package/dist/style/_typograhpy.scss +26 -2
  566. package/dist/sw.js +1 -1
  567. package/dist/sw.js.map +1 -1
  568. package/dist/tailwind/theme/colors.ts +1 -0
  569. package/dist/tailwind.config.ts +1 -0
  570. package/dist/types/index.d.ts +2 -1
  571. package/dist/types/internal/themed-host.component.d.ts +2 -0
  572. package/dist/types/state.d.ts +11 -0
  573. package/dist/types/tailwind/theme/colors.d.ts +1 -0
  574. package/dist/types/tailwind.config.d.ts +1 -0
  575. package/package.json +2 -1
  576. package/dist/build/p-13746ec7.entry.js +0 -2
  577. package/dist/build/p-50b3268f.entry.js +0 -2
  578. package/dist/build/p-8817fc5d.entry.js +0 -2
  579. package/dist/build/p-8817fc5d.entry.js.map +0 -1
  580. package/dist/build/p-8a116c31.entry.js +0 -2
  581. package/dist/build/p-8a116c31.entry.js.map +0 -1
  582. package/dist/build/p-K1xa0GD1.js +0 -2
  583. package/dist/build/p-K1xa0GD1.js.map +0 -1
  584. package/dist/build/p-b96f8d26.entry.js +0 -2
  585. package/dist/build/p-b96f8d26.entry.js.map +0 -1
  586. package/dist/build/p-ba9ecfd6.entry.js +0 -2
  587. package/dist/build/p-ba9ecfd6.entry.js.map +0 -1
  588. package/dist/build/p-d2118b3c.css +0 -1
  589. package/dist/cjs/index-FAqASDWS.js.map +0 -1
  590. package/dist/components/p-BJg6oRaH.js.map +0 -1
  591. package/dist/components/p-tdjn65Lz.js.map +0 -1
  592. package/dist/esm/index-K1xa0GD1.js.map +0 -1
  593. package/dist/paperless/p-13746ec7.entry.js +0 -2
  594. package/dist/paperless/p-50b3268f.entry.js +0 -2
  595. package/dist/paperless/p-8817fc5d.entry.js +0 -2
  596. package/dist/paperless/p-8817fc5d.entry.js.map +0 -1
  597. package/dist/paperless/p-8a116c31.entry.js +0 -2
  598. package/dist/paperless/p-8a116c31.entry.js.map +0 -1
  599. package/dist/paperless/p-K1xa0GD1.js +0 -2
  600. package/dist/paperless/p-K1xa0GD1.js.map +0 -1
  601. package/dist/paperless/p-b96f8d26.entry.js +0 -2
  602. package/dist/paperless/p-b96f8d26.entry.js.map +0 -1
  603. package/dist/paperless/p-ba9ecfd6.entry.js +0 -2
  604. package/dist/paperless/p-ba9ecfd6.entry.js.map +0 -1
  605. /package/dist/build/{p-d8c60f3c.entry.js.map → p-02a5ba4c.entry.js.map} +0 -0
  606. /package/dist/build/{p-1f45e45a.entry.js.map → p-0720742f.entry.js.map} +0 -0
  607. /package/dist/build/{p-84979460.entry.js.map → p-0e9d3d2f.entry.js.map} +0 -0
  608. /package/dist/build/{p-542a718b.entry.js.map → p-0f438d6f.entry.js.map} +0 -0
  609. /package/dist/build/{p-53b913b4.entry.js.map → p-112f1a9a.entry.js.map} +0 -0
  610. /package/dist/build/{p-419077c3.entry.js.map → p-12c0b2c1.entry.js.map} +0 -0
  611. /package/dist/build/{p-6581ce9c.entry.js.map → p-13317dea.entry.js.map} +0 -0
  612. /package/dist/build/{p-21bb6e96.entry.js.map → p-146cdc9a.entry.js.map} +0 -0
  613. /package/dist/build/{p-59ab69e0.entry.js.map → p-1687f809.entry.js.map} +0 -0
  614. /package/dist/build/{p-13746ec7.entry.js.map → p-1e3a00fe.entry.js.map} +0 -0
  615. /package/dist/build/{p-9a5d6efb.entry.js.map → p-1f97d5ba.entry.js.map} +0 -0
  616. /package/dist/build/{p-78403aa3.entry.js.map → p-2770aacd.entry.js.map} +0 -0
  617. /package/dist/build/{p-00e39694.entry.js.map → p-318e4b82.entry.js.map} +0 -0
  618. /package/dist/build/{p-4e7c1803.entry.js.map → p-34bd3730.entry.js.map} +0 -0
  619. /package/dist/build/{p-a9ba2e62.entry.js.map → p-35338296.entry.js.map} +0 -0
  620. /package/dist/build/{p-9ab2cb8d.entry.js.map → p-364d8401.entry.js.map} +0 -0
  621. /package/dist/build/{p-fbd40be8.entry.js.map → p-3edcd351.entry.js.map} +0 -0
  622. /package/dist/build/{p-0fe51ad0.entry.js.map → p-41567df7.entry.js.map} +0 -0
  623. /package/dist/build/{p-fa78c45a.entry.js.map → p-4891bb38.entry.js.map} +0 -0
  624. /package/dist/build/{p-1a551082.entry.js.map → p-491389e5.entry.js.map} +0 -0
  625. /package/dist/build/{p-805bad94.entry.js.map → p-4a8ff191.entry.js.map} +0 -0
  626. /package/dist/build/{p-37bdbb19.entry.js.map → p-4fcc39f7.entry.js.map} +0 -0
  627. /package/dist/build/{p-20f5071b.entry.js.map → p-5268f0bc.entry.js.map} +0 -0
  628. /package/dist/build/{p-3e2d2587.entry.js.map → p-718ba1f3.entry.js.map} +0 -0
  629. /package/dist/build/{p-827b1bd0.entry.js.map → p-775d1f94.entry.js.map} +0 -0
  630. /package/dist/build/{p-925d7ffc.entry.js.map → p-7e13aa00.entry.js.map} +0 -0
  631. /package/dist/build/{p-2366e61d.entry.js.map → p-80609f67.entry.js.map} +0 -0
  632. /package/dist/build/{p-b176abc5.entry.js.map → p-8332b7f6.entry.js.map} +0 -0
  633. /package/dist/build/{p-27b62457.entry.js.map → p-835abd94.entry.js.map} +0 -0
  634. /package/dist/build/{p-6fdd90eb.entry.js.map → p-8c96207e.entry.js.map} +0 -0
  635. /package/dist/build/{p-2acef846.entry.js.map → p-8cc2dc9f.entry.js.map} +0 -0
  636. /package/dist/build/{p-81d7ca4b.entry.js.map → p-8ee8d5e6.entry.js.map} +0 -0
  637. /package/dist/build/{p-918229ab.entry.js.map → p-95cacdf1.entry.js.map} +0 -0
  638. /package/dist/build/{p-97570c84.entry.js.map → p-9ea16d5d.entry.js.map} +0 -0
  639. /package/dist/build/{p-7f1f62c2.entry.js.map → p-9ecab5af.entry.js.map} +0 -0
  640. /package/dist/build/{p-cbd7870f.entry.js.map → p-a106f17c.entry.js.map} +0 -0
  641. /package/dist/build/{p-50b3268f.entry.js.map → p-ae7b0672.entry.js.map} +0 -0
  642. /package/dist/build/{p-dc21ccd3.entry.js.map → p-b3dfeaaa.entry.js.map} +0 -0
  643. /package/dist/build/{p-c1d4c641.entry.js.map → p-bb77ae46.entry.js.map} +0 -0
  644. /package/dist/build/{p-9c277029.entry.js.map → p-bcbcbffe.entry.js.map} +0 -0
  645. /package/dist/build/{p-9c653182.entry.js.map → p-c5867976.entry.js.map} +0 -0
  646. /package/dist/build/{p-54428a6a.entry.js.map → p-c9870068.entry.js.map} +0 -0
  647. /package/dist/build/{p-d9a3295f.entry.js.map → p-cdeae6b0.entry.js.map} +0 -0
  648. /package/dist/build/{p-eb66dfac.entry.js.map → p-d09bba4f.entry.js.map} +0 -0
  649. /package/dist/build/{p-a3273e15.entry.js.map → p-d3fba507.entry.js.map} +0 -0
  650. /package/dist/build/{p-6cb78d87.entry.js.map → p-e0c437fe.entry.js.map} +0 -0
  651. /package/dist/build/{p-8325525f.entry.js.map → p-e20184ea.entry.js.map} +0 -0
  652. /package/dist/build/{p-0b3af128.entry.js.map → p-e2cc514b.entry.js.map} +0 -0
  653. /package/dist/build/{p-317e4698.entry.js.map → p-fbbe58f8.entry.js.map} +0 -0
  654. /package/dist/build/{p-b8b570c4.entry.js.map → p-ff624855.entry.js.map} +0 -0
  655. /package/dist/paperless/{p-d8c60f3c.entry.js.map → p-02a5ba4c.entry.js.map} +0 -0
  656. /package/dist/paperless/{p-1f45e45a.entry.js.map → p-0720742f.entry.js.map} +0 -0
  657. /package/dist/paperless/{p-84979460.entry.js.map → p-0e9d3d2f.entry.js.map} +0 -0
  658. /package/dist/paperless/{p-542a718b.entry.js.map → p-0f438d6f.entry.js.map} +0 -0
  659. /package/dist/paperless/{p-53b913b4.entry.js.map → p-112f1a9a.entry.js.map} +0 -0
  660. /package/dist/paperless/{p-419077c3.entry.js.map → p-12c0b2c1.entry.js.map} +0 -0
  661. /package/dist/paperless/{p-6581ce9c.entry.js.map → p-13317dea.entry.js.map} +0 -0
  662. /package/dist/paperless/{p-21bb6e96.entry.js.map → p-146cdc9a.entry.js.map} +0 -0
  663. /package/dist/paperless/{p-59ab69e0.entry.js.map → p-1687f809.entry.js.map} +0 -0
  664. /package/dist/paperless/{p-13746ec7.entry.js.map → p-1e3a00fe.entry.js.map} +0 -0
  665. /package/dist/paperless/{p-9a5d6efb.entry.js.map → p-1f97d5ba.entry.js.map} +0 -0
  666. /package/dist/paperless/{p-78403aa3.entry.js.map → p-2770aacd.entry.js.map} +0 -0
  667. /package/dist/paperless/{p-00e39694.entry.js.map → p-318e4b82.entry.js.map} +0 -0
  668. /package/dist/paperless/{p-4e7c1803.entry.js.map → p-34bd3730.entry.js.map} +0 -0
  669. /package/dist/paperless/{p-a9ba2e62.entry.js.map → p-35338296.entry.js.map} +0 -0
  670. /package/dist/paperless/{p-9ab2cb8d.entry.js.map → p-364d8401.entry.js.map} +0 -0
  671. /package/dist/paperless/{p-fbd40be8.entry.js.map → p-3edcd351.entry.js.map} +0 -0
  672. /package/dist/paperless/{p-0fe51ad0.entry.js.map → p-41567df7.entry.js.map} +0 -0
  673. /package/dist/paperless/{p-fa78c45a.entry.js.map → p-4891bb38.entry.js.map} +0 -0
  674. /package/dist/paperless/{p-1a551082.entry.js.map → p-491389e5.entry.js.map} +0 -0
  675. /package/dist/paperless/{p-805bad94.entry.js.map → p-4a8ff191.entry.js.map} +0 -0
  676. /package/dist/paperless/{p-37bdbb19.entry.js.map → p-4fcc39f7.entry.js.map} +0 -0
  677. /package/dist/paperless/{p-20f5071b.entry.js.map → p-5268f0bc.entry.js.map} +0 -0
  678. /package/dist/paperless/{p-3e2d2587.entry.js.map → p-718ba1f3.entry.js.map} +0 -0
  679. /package/dist/paperless/{p-827b1bd0.entry.js.map → p-775d1f94.entry.js.map} +0 -0
  680. /package/dist/paperless/{p-925d7ffc.entry.js.map → p-7e13aa00.entry.js.map} +0 -0
  681. /package/dist/paperless/{p-2366e61d.entry.js.map → p-80609f67.entry.js.map} +0 -0
  682. /package/dist/paperless/{p-b176abc5.entry.js.map → p-8332b7f6.entry.js.map} +0 -0
  683. /package/dist/paperless/{p-27b62457.entry.js.map → p-835abd94.entry.js.map} +0 -0
  684. /package/dist/paperless/{p-6fdd90eb.entry.js.map → p-8c96207e.entry.js.map} +0 -0
  685. /package/dist/paperless/{p-2acef846.entry.js.map → p-8cc2dc9f.entry.js.map} +0 -0
  686. /package/dist/paperless/{p-81d7ca4b.entry.js.map → p-8ee8d5e6.entry.js.map} +0 -0
  687. /package/dist/paperless/{p-918229ab.entry.js.map → p-95cacdf1.entry.js.map} +0 -0
  688. /package/dist/paperless/{p-97570c84.entry.js.map → p-9ea16d5d.entry.js.map} +0 -0
  689. /package/dist/paperless/{p-7f1f62c2.entry.js.map → p-9ecab5af.entry.js.map} +0 -0
  690. /package/dist/paperless/{p-cbd7870f.entry.js.map → p-a106f17c.entry.js.map} +0 -0
  691. /package/dist/paperless/{p-50b3268f.entry.js.map → p-ae7b0672.entry.js.map} +0 -0
  692. /package/dist/paperless/{p-dc21ccd3.entry.js.map → p-b3dfeaaa.entry.js.map} +0 -0
  693. /package/dist/paperless/{p-c1d4c641.entry.js.map → p-bb77ae46.entry.js.map} +0 -0
  694. /package/dist/paperless/{p-9c277029.entry.js.map → p-bcbcbffe.entry.js.map} +0 -0
  695. /package/dist/paperless/{p-9c653182.entry.js.map → p-c5867976.entry.js.map} +0 -0
  696. /package/dist/paperless/{p-54428a6a.entry.js.map → p-c9870068.entry.js.map} +0 -0
  697. /package/dist/paperless/{p-d9a3295f.entry.js.map → p-cdeae6b0.entry.js.map} +0 -0
  698. /package/dist/paperless/{p-eb66dfac.entry.js.map → p-d09bba4f.entry.js.map} +0 -0
  699. /package/dist/paperless/{p-a3273e15.entry.js.map → p-d3fba507.entry.js.map} +0 -0
  700. /package/dist/paperless/{p-6cb78d87.entry.js.map → p-e0c437fe.entry.js.map} +0 -0
  701. /package/dist/paperless/{p-8325525f.entry.js.map → p-e20184ea.entry.js.map} +0 -0
  702. /package/dist/paperless/{p-0b3af128.entry.js.map → p-e2cc514b.entry.js.map} +0 -0
  703. /package/dist/paperless/{p-317e4698.entry.js.map → p-fbbe58f8.entry.js.map} +0 -0
  704. /package/dist/paperless/{p-b8b570c4.entry.js.map → p-ff624855.entry.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, h } from './p-tdjn65Lz.js';
1
+ import { p as proxyCustomElement, H, h } from './p-CRSKFTLB.js';
2
2
  import { c as cva } from './p-CBWjHURv.js';
3
3
 
4
4
  const modalBodyComponentCss = "*{box-sizing:border-box}.static{position:static!important}.rounded{border-radius:.25rem!important}.rounded-b-none{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.rounded-t-lg{border-top-left-radius:.5rem!important;border-top-right-radius:.5rem!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.p-4{padding:1rem!important}.pb-4{padding-bottom:1rem!important}.pb-\\[calc\\(env\\(safe-area-inset-bottom\\)\\+1rem\\)\\]{padding-bottom:calc(env(safe-area-inset-bottom) + 1rem)!important}@media (min-width:64rem){.desktop-xs\\:rounded-b-2xl{border-bottom-left-radius:1rem!important;border-bottom-right-radius:1rem!important}.desktop-xs\\:rounded-t-2xl{border-top-left-radius:1rem!important;border-top-right-radius:1rem!important}}";
@@ -30,10 +30,10 @@ const ModalBody = /*@__PURE__*/ proxyCustomElement(class ModalBody extends H {
30
30
  */
31
31
  roundedTop = false;
32
32
  render() {
33
- return (h("div", { key: 'ac22d4bd09b38f0c32d4258b9c661fce6a91e075', class: body({
33
+ return (h("div", { key: 'c0eca972b2d8e5c6659512bd5feed96b1df75937', class: body({
34
34
  roundedBottom: this.roundedBottom,
35
35
  roundedTop: this.roundedTop,
36
- }) }, h("slot", { key: '68f716b9500ad749b4e397af57e88e483de0f74f' })));
36
+ }) }, h("slot", { key: '744910c334625e7a0fd89a8f3d6265490799345a' })));
37
37
  }
38
38
  static get style() { return modalBodyComponentCss; }
39
39
  }, [1, "p-modal-body", {
@@ -56,6 +56,6 @@ function defineCustomElement() {
56
56
  defineCustomElement();
57
57
 
58
58
  export { ModalBody as M, defineCustomElement as d };
59
- //# sourceMappingURL=p-Bn6Arg73.js.map
59
+ //# sourceMappingURL=p-C6GU5tE5.js.map
60
60
 
61
- //# sourceMappingURL=p-Bn6Arg73.js.map
61
+ //# sourceMappingURL=p-C6GU5tE5.js.map
@@ -1 +1 @@
1
- {"file":"p-Bn6Arg73.js","mappings":";;;AAAA,MAAM,qBAAqB,GAAG,szBAAszB;;ACGp1B,MAAM,IAAI,GAAG,GAAG,CAAC,cAAc,EAAE;AAChC,IAAA,QAAQ,EAAE;AACT,QAAA,aAAa,EAAE;AACd,YAAA,IAAI,EAAE,qFAAqF;AAC3F,YAAA,KAAK,EAAE,MAAM;AACb,SAAA;AACD,QAAA,UAAU,EAAE;AACX,YAAA,IAAI,EAAE,uCAAuC;AAC7C,YAAA,KAAK,EAAE,IAAI;AACX,SAAA;AACD,KAAA;AACD,CAAA,CAAC;MAOW,SAAS,iBAAAA,kBAAA,CAAA,MAAA,SAAA,SAAAC,CAAA,CAAA;;;;;;AACrB;;AAEG;IACK,aAAa,GAAY,KAAK;AAEtC;;AAEG;IACK,UAAU,GAAY,KAAK;IAEnC,MAAM,GAAA;AACL,QAAA,QACC,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACC,KAAK,EAAE,IAAI,CAAC;gBACX,aAAa,EAAE,IAAI,CAAC,aAAa;gBACjC,UAAU,EAAE,IAAI,CAAC,UAAU;AAC3B,aAAA,CAAC,EAAA,EAEF,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACH;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/atoms/modal/body/modal-body.component.css?tag=p-modal-body&encapsulation=shadow","src/components/atoms/modal/body/modal-body.component.tsx"],"sourcesContent":["","import { Component, h, Prop } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\nconst body = cva('bg-white p-4', {\n\tvariants: {\n\t\troundedBottom: {\n\t\t\ttrue: 'rounded-b-none desktop-xs:rounded-b-2xl pb-[calc(env(safe-area-inset-bottom)+1rem)]',\n\t\t\tfalse: 'pb-4',\n\t\t},\n\t\troundedTop: {\n\t\t\ttrue: 'rounded-t-lg desktop-xs:rounded-t-2xl',\n\t\t\tfalse: null,\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-modal-body',\n\tstyleUrl: 'modal-body.component.css',\n\tshadow: true,\n})\nexport class ModalBody {\n\t/**\n\t * Wether the modal body should be rounded at the bottom\n\t */\n\t@Prop() roundedBottom: boolean = false;\n\n\t/**\n\t * Wether the modal body should be rounded at the top\n\t */\n\t@Prop() roundedTop: boolean = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclass={body({\n\t\t\t\t\troundedBottom: this.roundedBottom,\n\t\t\t\t\troundedTop: this.roundedTop,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"p-C6GU5tE5.js","mappings":";;;AAAA,MAAM,qBAAqB,GAAG,szBAAszB;;ACGp1B,MAAM,IAAI,GAAG,GAAG,CAAC,cAAc,EAAE;AAChC,IAAA,QAAQ,EAAE;AACT,QAAA,aAAa,EAAE;AACd,YAAA,IAAI,EAAE,qFAAqF;AAC3F,YAAA,KAAK,EAAE,MAAM;AACb,SAAA;AACD,QAAA,UAAU,EAAE;AACX,YAAA,IAAI,EAAE,uCAAuC;AAC7C,YAAA,KAAK,EAAE,IAAI;AACX,SAAA;AACD,KAAA;AACD,CAAA,CAAC;MAOW,SAAS,iBAAAA,kBAAA,CAAA,MAAA,SAAA,SAAAC,CAAA,CAAA;;;;;;AACrB;;AAEG;IACK,aAAa,GAAY,KAAK;AAEtC;;AAEG;IACK,UAAU,GAAY,KAAK;IAEnC,MAAM,GAAA;AACL,QAAA,QACC,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACC,KAAK,EAAE,IAAI,CAAC;gBACX,aAAa,EAAE,IAAI,CAAC,aAAa;gBACjC,UAAU,EAAE,IAAI,CAAC,UAAU;AAC3B,aAAA,CAAC,EAAA,EAEF,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACH;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/atoms/modal/body/modal-body.component.css?tag=p-modal-body&encapsulation=shadow","src/components/atoms/modal/body/modal-body.component.tsx"],"sourcesContent":["","import { Component, h, Prop } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\nconst body = cva('bg-white p-4', {\n\tvariants: {\n\t\troundedBottom: {\n\t\t\ttrue: 'rounded-b-none desktop-xs:rounded-b-2xl pb-[calc(env(safe-area-inset-bottom)+1rem)]',\n\t\t\tfalse: 'pb-4',\n\t\t},\n\t\troundedTop: {\n\t\t\ttrue: 'rounded-t-lg desktop-xs:rounded-t-2xl',\n\t\t\tfalse: null,\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-modal-body',\n\tstyleUrl: 'modal-body.component.css',\n\tshadow: true,\n})\nexport class ModalBody {\n\t/**\n\t * Wether the modal body should be rounded at the bottom\n\t */\n\t@Prop() roundedBottom: boolean = false;\n\n\t/**\n\t * Wether the modal body should be rounded at the top\n\t */\n\t@Prop() roundedTop: boolean = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclass={body({\n\t\t\t\t\troundedBottom: this.roundedBottom,\n\t\t\t\t\troundedTop: this.roundedTop,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1,12 +1,12 @@
1
- import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-tdjn65Lz.js';
1
+ import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-CRSKFTLB.js';
2
2
  import { f as formatTranslation, g as getLocaleComponentStrings } from './p-DiJj8rmO.js';
3
3
  import { c as cva } from './p-CBWjHURv.js';
4
4
  import { a as asBoolean } from './p-C5CTp9IA.js';
5
- import { d as defineCustomElement$5 } from './p-RuhxHrdY.js';
6
- import { d as defineCustomElement$4 } from './p-B8Ai2EJn.js';
7
- import { d as defineCustomElement$3 } from './p-DUJkO2n3.js';
8
- import { d as defineCustomElement$2 } from './p-3Uu9SRMg.js';
9
- import { d as defineCustomElement$1 } from './p-DWsW_D0V.js';
5
+ import { d as defineCustomElement$5 } from './p-BA2VuVYJ.js';
6
+ import { d as defineCustomElement$4 } from './p-I8WvUr7g.js';
7
+ import { d as defineCustomElement$3 } from './p-CwI9SpGk.js';
8
+ import { d as defineCustomElement$2 } from './p-Bfmp3OPx.js';
9
+ import { d as defineCustomElement$1 } from './p-4sqhIpUp.js';
10
10
 
11
11
  const defaultSize = 12;
12
12
  const defaultSizeOptions = [12, 24, 68, 136];
@@ -144,6 +144,6 @@ function defineCustomElement() {
144
144
  defineCustomElement();
145
145
 
146
146
  export { PaginationSize as P, defaultSize as a, defaultSizeOptions as b, defineCustomElement as d };
147
- //# sourceMappingURL=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AO,EAAE,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAEtC,EAAA,IAAI,CAAC;AACL,cAAE,IAAI,CAAC,YAAY,CAAC,MAAM;AAC1B,cAAE,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,CACd,CACvB,CAAC,CACI,CACK,CACP;;AAKD,IAAA,MAAM,WAAW,GAAA;QACxB,IAAI,CAAC,QAAQ,GAAG,MAAM,yBAAyB,CAAC,IAAI,CAAC,GAAG,CAAC;;AAGlD,IAAA,WAAW,CAAC,CAAU,EAAA;QAC7B,IAAI,CAAC,CAAC,EAAE;YACP;;AAGD,QAAA,IAAI,CAAC,IAAI,GAAG,CAAC;QACb,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/molecules/pagination/size/constants.tsx","src/components/molecules/pagination/size/pagination-size.component.css?tag=p-pagination-size&encapsulation=shadow","src/components/molecules/pagination/size/pagination-size.component.tsx"],"sourcesContent":["export const defaultSize = 12;\nexport const defaultSizeOptions = [12, 24, 68, 136];\n","","import {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport {\n\tformatTranslation,\n\tgetLocaleComponentStrings,\n} from '../../../../utils/localization';\nimport { defaultSize, defaultSizeOptions } from './constants';\nimport { cva } from 'class-variance-authority';\nimport { asBoolean } from '../../../../utils/as-boolean';\n\nexport type templateFunc = (value: number) => string;\n\nconst paginationSize = cva('p-pagination-size', {\n\tvariants: {\n\t\thidden: {\n\t\t\tfalse: null,\n\t\t\ttrue: 'hidden',\n\t\t},\n\t},\n});\n\nconst trigger = cva(\n\t[\n\t\t'flex items-center gap-2',\n\t\t'px-2 h-6',\n\t\t'text-sm text-storm-500 font-medium ',\n\t\t'cursor-pointer rounded-full',\n\t\t'shadow-1 border border-solid',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tactive: {\n\t\t\t\tfalse: 'bg-white hover:bg-white-600 border-transparent',\n\t\t\t\ttrue: 'bg-white-600 border-indigo-600 ring ring-2 ring-indigo-100',\n\t\t\t},\n\t\t},\n\t}\n);\n\n@Component({\n\ttag: 'p-pagination-size',\n\tstyleUrl: 'pagination-size.component.css',\n\tshadow: true,\n})\nexport class PaginationSize {\n\tprivate _defaultItemTemplate: templateFunc = size =>\n\t\tformatTranslation(this._locales.item, { size });\n\t/**\n\t * The current page\n\t */\n\t@Prop({ mutable: true, reflect: true }) size: number = defaultSize;\n\n\t/**\n\t * The available sizes\n\t */\n\t@Prop() sizeOptions: number[] = defaultSizeOptions;\n\n\t/**\n\t * Event whenever the size changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tsizeChange: EventEmitter<number>;\n\n\t/**\n\t * The template for the data view\n\t */\n\t@Prop() itemTemplate: templateFunc = this._defaultItemTemplate;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t/**\n\t * Wether to hide when there is only 1 page available\n\t */\n\t@Prop() hidden: boolean = false;\n\n\t/**\n\t * Wether the dropdown is open\n\t */\n\t@State() dropdownIsOpen = false;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={paginationSize({ hidden: asBoolean(this.hidden) })}>\n\t\t\t\t<p-dropdown\n\t\t\t\t\tapplyFullWidth={true}\n\t\t\t\t\tapplyMaxWidth={false}\n\t\t\t\t\tplacement='top-start'\n\t\t\t\t\tchevronDirection='down'\n\t\t\t\t\tonIsOpen={({ detail }) => (this.dropdownIsOpen = detail)}\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={trigger({\n\t\t\t\t\t\t\tactive: this.dropdownIsOpen,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t>\n\t\t\t\t\t\t<p class='min-w-0 flex-1 overflow-hidden text-ellipsis text-nowrap'>\n\t\t\t\t\t\t\t{this.itemTemplate\n\t\t\t\t\t\t\t\t? this.itemTemplate(this.size)\n\t\t\t\t\t\t\t\t: this._defaultItemTemplate(this.size)}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\tclass='flex-shrink-0'\n\t\t\t\t\t\t\tvariant='double-caret'\n\t\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<slot slot='items'>\n\t\t\t\t\t\t{this.sizeOptions.map(option => (\n\t\t\t\t\t\t\t<p-dropdown-menu-item\n\t\t\t\t\t\t\t\tactive={option === this.size}\n\t\t\t\t\t\t\t\tonClick={() => this._changeSize(option)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.itemTemplate\n\t\t\t\t\t\t\t\t\t? this.itemTemplate(option)\n\t\t\t\t\t\t\t\t\t: this._defaultItemTemplate(option)}\n\t\t\t\t\t\t\t</p-dropdown-menu-item>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</slot>\n\t\t\t\t</p-dropdown>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('localeChanged', { target: 'body' })\n\tprivate async _setLocales(): Promise<void> {\n\t\tthis._locales = await getLocaleComponentStrings(this._el);\n\t}\n\n\tprivate _changeSize(s?: number) {\n\t\tif (!s) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.size = s;\n\t\tthis.sizeChange.emit(this.size);\n\t}\n}\n"],"version":3}
1
+ {"file":"p-C6zgmyle.js","mappings":";;;;;;;;;;AAAO,MAAM,WAAW,GAAG;AACpB,MAAM,kBAAkB,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG;;ACDlD,MAAM,0BAA0B,GAAG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lD,IAAA,WAAW,CAAC,CAAU,EAAA;QAC7B,IAAI,CAAC,CAAC,EAAE;YACP;;AAGD,QAAA,IAAI,CAAC,IAAI,GAAG,CAAC;QACb,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/molecules/pagination/size/constants.tsx","src/components/molecules/pagination/size/pagination-size.component.css?tag=p-pagination-size&encapsulation=shadow","src/components/molecules/pagination/size/pagination-size.component.tsx"],"sourcesContent":["export const defaultSize = 12;\nexport const defaultSizeOptions = [12, 24, 68, 136];\n","","import {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport {\n\tformatTranslation,\n\tgetLocaleComponentStrings,\n} from '../../../../utils/localization';\nimport { defaultSize, defaultSizeOptions } from './constants';\nimport { cva } from 'class-variance-authority';\nimport { asBoolean } from '../../../../utils/as-boolean';\n\nexport type templateFunc = (value: number) => string;\n\nconst paginationSize = cva('p-pagination-size', {\n\tvariants: {\n\t\thidden: {\n\t\t\tfalse: null,\n\t\t\ttrue: 'hidden',\n\t\t},\n\t},\n});\n\nconst trigger = cva(\n\t[\n\t\t'flex items-center gap-2',\n\t\t'px-2 h-6',\n\t\t'text-sm text-storm-500 font-medium ',\n\t\t'cursor-pointer rounded-full',\n\t\t'shadow-1 border border-solid',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tactive: {\n\t\t\t\tfalse: 'bg-white hover:bg-white-600 border-transparent',\n\t\t\t\ttrue: 'bg-white-600 border-indigo-600 ring ring-2 ring-indigo-100',\n\t\t\t},\n\t\t},\n\t}\n);\n\n@Component({\n\ttag: 'p-pagination-size',\n\tstyleUrl: 'pagination-size.component.css',\n\tshadow: true,\n})\nexport class PaginationSize {\n\tprivate _defaultItemTemplate: templateFunc = size =>\n\t\tformatTranslation(this._locales.item, { size });\n\t/**\n\t * The current page\n\t */\n\t@Prop({ mutable: true, reflect: true }) size: number = defaultSize;\n\n\t/**\n\t * The available sizes\n\t */\n\t@Prop() sizeOptions: number[] = defaultSizeOptions;\n\n\t/**\n\t * Event whenever the size changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tsizeChange: EventEmitter<number>;\n\n\t/**\n\t * The template for the data view\n\t */\n\t@Prop() itemTemplate: templateFunc = this._defaultItemTemplate;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t/**\n\t * Wether to hide when there is only 1 page available\n\t */\n\t@Prop() hidden: boolean = false;\n\n\t/**\n\t * Wether the dropdown is open\n\t */\n\t@State() dropdownIsOpen = false;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={paginationSize({ hidden: asBoolean(this.hidden) })}>\n\t\t\t\t<p-dropdown\n\t\t\t\t\tapplyFullWidth={true}\n\t\t\t\t\tapplyMaxWidth={false}\n\t\t\t\t\tplacement='top-start'\n\t\t\t\t\tchevronDirection='down'\n\t\t\t\t\tonIsOpen={({ detail }) => (this.dropdownIsOpen = detail)}\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={trigger({\n\t\t\t\t\t\t\tactive: this.dropdownIsOpen,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t>\n\t\t\t\t\t\t<p class='min-w-0 flex-1 overflow-hidden text-ellipsis text-nowrap'>\n\t\t\t\t\t\t\t{this.itemTemplate\n\t\t\t\t\t\t\t\t? this.itemTemplate(this.size)\n\t\t\t\t\t\t\t\t: this._defaultItemTemplate(this.size)}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\tclass='flex-shrink-0'\n\t\t\t\t\t\t\tvariant='double-caret'\n\t\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<slot slot='items'>\n\t\t\t\t\t\t{this.sizeOptions.map(option => (\n\t\t\t\t\t\t\t<p-dropdown-menu-item\n\t\t\t\t\t\t\t\tactive={option === this.size}\n\t\t\t\t\t\t\t\tonClick={() => this._changeSize(option)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.itemTemplate\n\t\t\t\t\t\t\t\t\t? this.itemTemplate(option)\n\t\t\t\t\t\t\t\t\t: this._defaultItemTemplate(option)}\n\t\t\t\t\t\t\t</p-dropdown-menu-item>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</slot>\n\t\t\t\t</p-dropdown>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('localeChanged', { target: 'body' })\n\tprivate async _setLocales(): Promise<void> {\n\t\tthis._locales = await getLocaleComponentStrings(this._el);\n\t}\n\n\tprivate _changeSize(s?: number) {\n\t\tif (!s) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.size = s;\n\t\tthis.sizeChange.emit(this.size);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, h, d as Host } from './p-tdjn65Lz.js';
1
+ import { p as proxyCustomElement, H, h, d as Host } from './p-CRSKFTLB.js';
2
2
 
3
3
  const loaderComponentCss = ".fixed{position:fixed!important}.left-0{left:0!important}.top-0{top:0!important}.box-border{box-sizing:border-box!important}.block{display:block!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.h-\\[1em\\]{height:1em!important}.w-\\[1em\\]{width:1em!important}.transform{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}.items-center{align-items:center!important}.border-2{border-width:2px!important}.border-off-white-600\\/40{border-color:hsla(43,16%,91%,.4)!important}.border-white\\/40{border-color:hsla(0,0%,100%,.4)!important}.border-r-indigo-500\\/40{border-right-color:rgba(142,179,251,.4)!important}.border-r-storm-400{--tw-border-opacity:1!important;border-right-color:rgb(70 75 84/var(--tw-border-opacity,1))!important}.border-t-indigo-500{--tw-border-opacity:1!important;border-top-color:rgb(142 179 251/var(--tw-border-opacity,1))!important}.border-t-off-white-800{--tw-border-opacity:1!important;border-top-color:rgb(213 208 195/var(--tw-border-opacity,1))!important}.border-t-storm-700{--tw-border-opacity:1!important;border-top-color:rgb(8 15 28/var(--tw-border-opacity,1))!important}.border-t-white{--tw-border-opacity:1!important;border-top-color:rgb(255 255 255/var(--tw-border-opacity,1))!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.h-screen-safe{height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}*{box-sizing:border-box}:host .loader{animation:spin .5s linear infinite;border-radius:9999px;border-style:solid;border-width:2px;display:inline-block;height:1em;width:1em;will-change:transform}:host .loader.color-indigo{--tw-border-opacity:1!important;border-right-color:rgba(142,179,251,.4)!important;border-top-color:rgb(142 179 251/var(--tw-border-opacity,1))!important}:host .loader.color-off-white{--tw-border-opacity:1!important;border-color:hsla(43,16%,91%,.4)!important;border-top-color:rgb(213 208 195/var(--tw-border-opacity,1))!important}:host .loader.color-white{--tw-border-opacity:1!important;border-color:hsla(0,0%,100%,.4)!important;border-top-color:rgb(255 255 255/var(--tw-border-opacity,1))!important}:host .loader.color-storm{--tw-border-opacity:1!important;border-right-color:rgb(70 75 84/var(--tw-border-opacity,1))!important;border-top-color:rgb(8 15 28/var(--tw-border-opacity,1))!important}:host .loading-screen{--tw-bg-opacity:1;align-items:center;background-color:rgb(250 249 248/var(--tw-bg-opacity,1));display:flex;height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));justify-content:center;left:0;position:fixed;top:0;width:calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right));z-index:1001}:host .loading-screen .content{max-width:20rem}:host(.variant-ghost){--loading-bg:#f7fafc;--loading-stripe:#fcfdfe;animation:loading 1s ease-in-out infinite;background-color:var(--loading-bg);background:linear-gradient(100deg,hsla(0,0%,100%,0) 40%,var(--loading-stripe) 50%,hsla(0,0%,100%,0) 60%) var(--loading-bg);background-position-x:180%;background-size:200% 100%;box-sizing:border-box;display:block;min-height:1em;min-width:1em;will-change:background,background-position-x,background-color}@keyframes loading{to{background-position-x:-20%}}@keyframes spin{to{transform:rotate(1turn)}}.static{position:static!important}.inline{display:inline!important}.min-h-4{min-height:1rem!important}.w-full{width:100%!important}.min-w-4{min-width:1rem!important}.justify-center{justify-content:center!important}.rounded-2xl{border-radius:1rem!important}.text-4xl{font-size:2.5rem!important;line-height:3rem!important}";
4
4
 
@@ -87,6 +87,6 @@ function defineCustomElement() {
87
87
  defineCustomElement();
88
88
 
89
89
  export { Loader as L, defineCustomElement as d };
90
- //# sourceMappingURL=p-CvfOjT_y.js.map
90
+ //# sourceMappingURL=p-CEFg09mj.js.map
91
91
 
92
- //# sourceMappingURL=p-CvfOjT_y.js.map
92
+ //# sourceMappingURL=p-CEFg09mj.js.map
@@ -1 +1 @@
1
- {"file":"p-CvfOjT_y.js","mappings":";;AAAA,MAAM,kBAAkB,GAAG,uqHAAuqH;;MCQrrH,MAAM,iBAAAA,kBAAA,CAAA,MAAA,MAAA,SAAAC,CAAA,CAAA;;;;;;AAClB;;AAEG;IACK,IAAI,GAAkC,IAAI;AAElD;;AAEG;IACK,OAAO,GACd,QAAQ;AAET;;AAEG;IACK,KAAK,GAA+C,QAAQ;AAEpE;;AAEG;AACK,IAAA,UAAU;AAElB;;AAEG;AACK,IAAA,gBAAgB;IAEhB,KAAK,GAAkC,KAAK;AAC5C,IAAA,eAAe;IAEvB,gBAAgB,GAAA;AACf,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI;;IAGvB,mBAAmB,GAAA;QAClB,IAAI,CAAC,UAAU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;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/atoms/loader/loader.component.scss?tag=p-loader&encapsulation=shadow","src/components/atoms/loader/loader.component.tsx"],"sourcesContent":[":host {\n\t.loader {\n\t\t@apply inline-block h-[1em] w-[1em] rounded-full;\n\t\t@apply border-2 border-solid;\n\t\tanimation: 500ms spin linear infinite;\n\n\t\twill-change: transform;\n\n\t\t&.color-indigo {\n\t\t\t@apply border-r-indigo-500/40 border-t-indigo-500 #{!important};\n\t\t}\n\n\t\t&.color-off-white {\n\t\t\t@apply border-off-white-600/40 border-t-off-white-800 #{!important};\n\t\t}\n\n\t\t&.color-white {\n\t\t\t@apply border-white/40 border-t-white #{!important};\n\t\t}\n\n\t\t&.color-storm {\n\t\t\t@apply border-r-storm-400 border-t-storm-700 #{!important};\n\t\t}\n\t}\n\n\t.loading-screen {\n\t\t@apply fixed left-0 top-0 h-screen-safe w-screen-safe;\n\t\t@apply flex items-center justify-center;\n\t\t@apply bg-off-white-200;\n\n\t\tz-index: 1001;\n\n\t\t.content {\n\t\t\t@apply max-w-xs;\n\t\t}\n\t}\n}\n\n:host(.variant-ghost) {\n\t@apply box-border block;\n\n\twill-change: background, background-position-x, background-color;\n\n\tmin-height: 1em;\n\tmin-width: 1em;\n\n\t--loading-bg: #f7fafc;\n\t--loading-stripe: rgba(252, 253, 254, 1);\n\n\tbackground-color: var(--loading-bg);\n\tbackground: linear-gradient(\n\t\t\t100deg,\n\t\t\trgba(255, 255, 255, 0) 40%,\n\t\t\tvar(--loading-stripe) 50%,\n\t\t\trgba(255, 255, 255, 0) 60%\n\t\t)\n\t\tvar(--loading-bg);\n\tbackground-size: 200% 100%;\n\tbackground-position-x: 180%;\n\tanimation: 1s loading ease-in-out infinite;\n}\n\n@keyframes loading {\n\tto {\n\t\tbackground-position-x: -20%;\n\t}\n}\n\n@keyframes spin {\n\t100% {\n\t\ttransform: rotate(1turn);\n\t}\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\nimport { Observable, Subscription } from 'rxjs';\n\n@Component({\n\ttag: 'p-loader',\n\tstyleUrl: 'loader.component.scss',\n\tshadow: true,\n})\nexport class Loader {\n\t/**\n\t * Wether to show or hide the loader\n\t */\n\t@Prop() show: boolean | Observable<boolean> = true;\n\n\t/**\n\t * Variant of loader\n\t */\n\t@Prop() variant: 'inline' | 'full-width' | 'full-screen' | 'modal' | 'ghost' =\n\t\t'inline';\n\n\t/**\n\t * Color of the loader\n\t */\n\t@Prop() color: 'indigo' | 'white' | 'off-white' | 'storm' = 'indigo';\n\n\t/**\n\t * !NOT IMPLEMENTED! Modal title for modal variant\n\t */\n\t@Prop() modalTitle: string;\n\n\t/**\n\t * !NOT IMPLEMENTED! Modal description for modal variant\n\t */\n\t@Prop() modalDescription: string;\n\n\tprivate _show: boolean | Observable<boolean> = false;\n\tprivate _showSubscriber: Subscription;\n\n\tcomponendDidLoad() {\n\t\tthis._show = this.show;\n\t}\n\n\tcomponentWillRender() {\n\t\tthis._checkShow();\n\t}\n\n\tcomponentShouldUpdate() {\n\t\tthis._checkShow();\n\t}\n\n\trender() {\n\t\tif (!this._show) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.variant === 'ghost') {\n\t\t\treturn <Host class='variant-ghost min-h-4 min-w-4 rounded-2xl'></Host>;\n\t\t}\n\n\t\tconst loader = <div class={`loader color-${this.color}`}></div>;\n\n\t\tif (this.variant === 'full-screen') {\n\t\t\treturn (\n\t\t\t\t<Host class='variant-full-screen'>\n\t\t\t\t\t<div class='loading-screen'>\n\t\t\t\t\t\t<div class='content'>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</Host>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`variant-default flex ${\n\t\t\t\t\tthis.variant === 'full-width' && 'flex w-full justify-center text-4xl'\n\t\t\t\t}`}\n\t\t\t>\n\t\t\t\t{loader}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _checkShow() {\n\t\tif (this._showSubscriber) {\n\t\t\tthis._showSubscriber.unsubscribe();\n\t\t\tthis._showSubscriber = null;\n\t\t}\n\n\t\tif (typeof this.show !== 'boolean') {\n\t\t\tthis._showSubscriber = this.show?.subscribe(show => (this._show = show));\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show = this.show;\n\t}\n}\n"],"version":3}
1
+ {"file":"p-CEFg09mj.js","mappings":";;AAAA,MAAM,kBAAkB,GAAG,uqHAAuqH;;MCQrrH,MAAM,iBAAAA,kBAAA,CAAA,MAAA,MAAA,SAAAC,CAAA,CAAA;;;;;;AAClB;;AAEG;IACK,IAAI,GAAkC,IAAI;AAElD;;AAEG;IACK,OAAO,GACd,QAAQ;AAET;;AAEG;IACK,KAAK,GAA+C,QAAQ;AAEpE;;AAEG;AACK,IAAA,UAAU;AAElB;;AAEG;AACK,IAAA,gBAAgB;IAEhB,KAAK,GAAkC,KAAK;AAC5C,IAAA,eAAe;IAEvB,gBAAgB,GAAA;AACf,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI;;IAGvB,mBAAmB,GAAA;QAClB,IAAI,CAAC,UAAU,EAAE;;IAGlB,qBAAqB,GAAA;QACpB,IAAI,CAAC,UAAU,EAAE;;IAGlB,MAAM,GAAA;AACL,QAAA,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YAChB;;AAGD,QAAA,IAAI,IAAI,CAAC,OAAO,KAAK,OAAO,EAAE;YAC7B,OAAO,EAAC,IAAI,EAAA,EAAC,KAAK,EAAC,2CAA2C,GAAQ;;AAGvE,QAAA,MAAM,MAAM,GAAG,CAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAE,CAAA,aAAA,EAAgB,IAAI,CAAC,KAAK,CAAE,CAAA,EAAA,CAAQ;AAE/D,QAAA,IAAI,IAAI,CAAC,OAAO,KAAK,aAAa,EAAE;AACnC,YAAA,QACC,CAAC,CAAA,IAAI,EAAC,EAAA,KAAK,EAAC,qBAAqB,EAAA,EAChC,CAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,gBAAgB,EAAA,EAC1B,CAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,SAAS,EAAA,EACnB,CAAA,CAAA,MAAA,EAAA,IAAA,CAAQ,CACH,CACD,CACA;;QAIT,QACC,CAAC,CAAA,IAAI,IACJ,KAAK,EAAE,CAAA,qBAAA,EACN,IAAI,CAAC,OAAO,KAAK,YAAY,IAAI,qCAClC,CAAA,CAAE,IAED,MAAM,CACD;;IAID,UAAU,GAAA;AACjB,QAAA,IAAI,IAAI,CAAC,eAAe,EAAE;AACzB,YAAA,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE;AAClC,YAAA,IAAI,CAAC,eAAe,GAAG,IAAI;;AAG5B,QAAA,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE;YACnC,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;YACxE;;AAGD,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/atoms/loader/loader.component.scss?tag=p-loader&encapsulation=shadow","src/components/atoms/loader/loader.component.tsx"],"sourcesContent":[":host {\n\t.loader {\n\t\t@apply inline-block h-[1em] w-[1em] rounded-full;\n\t\t@apply border-2 border-solid;\n\t\tanimation: 500ms spin linear infinite;\n\n\t\twill-change: transform;\n\n\t\t&.color-indigo {\n\t\t\t@apply border-r-indigo-500/40 border-t-indigo-500 #{!important};\n\t\t}\n\n\t\t&.color-off-white {\n\t\t\t@apply border-off-white-600/40 border-t-off-white-800 #{!important};\n\t\t}\n\n\t\t&.color-white {\n\t\t\t@apply border-white/40 border-t-white #{!important};\n\t\t}\n\n\t\t&.color-storm {\n\t\t\t@apply border-r-storm-400 border-t-storm-700 #{!important};\n\t\t}\n\t}\n\n\t.loading-screen {\n\t\t@apply fixed left-0 top-0 h-screen-safe w-screen-safe;\n\t\t@apply flex items-center justify-center;\n\t\t@apply bg-off-white-200;\n\n\t\tz-index: 1001;\n\n\t\t.content {\n\t\t\t@apply max-w-xs;\n\t\t}\n\t}\n}\n\n:host(.variant-ghost) {\n\t@apply box-border block;\n\n\twill-change: background, background-position-x, background-color;\n\n\tmin-height: 1em;\n\tmin-width: 1em;\n\n\t--loading-bg: #f7fafc;\n\t--loading-stripe: rgba(252, 253, 254, 1);\n\n\tbackground-color: var(--loading-bg);\n\tbackground: linear-gradient(\n\t\t\t100deg,\n\t\t\trgba(255, 255, 255, 0) 40%,\n\t\t\tvar(--loading-stripe) 50%,\n\t\t\trgba(255, 255, 255, 0) 60%\n\t\t)\n\t\tvar(--loading-bg);\n\tbackground-size: 200% 100%;\n\tbackground-position-x: 180%;\n\tanimation: 1s loading ease-in-out infinite;\n}\n\n@keyframes loading {\n\tto {\n\t\tbackground-position-x: -20%;\n\t}\n}\n\n@keyframes spin {\n\t100% {\n\t\ttransform: rotate(1turn);\n\t}\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\nimport { Observable, Subscription } from 'rxjs';\n\n@Component({\n\ttag: 'p-loader',\n\tstyleUrl: 'loader.component.scss',\n\tshadow: true,\n})\nexport class Loader {\n\t/**\n\t * Wether to show or hide the loader\n\t */\n\t@Prop() show: boolean | Observable<boolean> = true;\n\n\t/**\n\t * Variant of loader\n\t */\n\t@Prop() variant: 'inline' | 'full-width' | 'full-screen' | 'modal' | 'ghost' =\n\t\t'inline';\n\n\t/**\n\t * Color of the loader\n\t */\n\t@Prop() color: 'indigo' | 'white' | 'off-white' | 'storm' = 'indigo';\n\n\t/**\n\t * !NOT IMPLEMENTED! Modal title for modal variant\n\t */\n\t@Prop() modalTitle: string;\n\n\t/**\n\t * !NOT IMPLEMENTED! Modal description for modal variant\n\t */\n\t@Prop() modalDescription: string;\n\n\tprivate _show: boolean | Observable<boolean> = false;\n\tprivate _showSubscriber: Subscription;\n\n\tcomponendDidLoad() {\n\t\tthis._show = this.show;\n\t}\n\n\tcomponentWillRender() {\n\t\tthis._checkShow();\n\t}\n\n\tcomponentShouldUpdate() {\n\t\tthis._checkShow();\n\t}\n\n\trender() {\n\t\tif (!this._show) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.variant === 'ghost') {\n\t\t\treturn <Host class='variant-ghost min-h-4 min-w-4 rounded-2xl'></Host>;\n\t\t}\n\n\t\tconst loader = <div class={`loader color-${this.color}`}></div>;\n\n\t\tif (this.variant === 'full-screen') {\n\t\t\treturn (\n\t\t\t\t<Host class='variant-full-screen'>\n\t\t\t\t\t<div class='loading-screen'>\n\t\t\t\t\t\t<div class='content'>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</Host>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`variant-default flex ${\n\t\t\t\t\tthis.variant === 'full-width' && 'flex w-full justify-center text-4xl'\n\t\t\t\t}`}\n\t\t\t>\n\t\t\t\t{loader}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _checkShow() {\n\t\tif (this._showSubscriber) {\n\t\t\tthis._showSubscriber.unsubscribe();\n\t\t\tthis._showSubscriber = null;\n\t\t}\n\n\t\tif (typeof this.show !== 'boolean') {\n\t\t\tthis._showSubscriber = this.show?.subscribe(show => (this._show = show));\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show = this.show;\n\t}\n}\n"],"version":3}
@@ -0,0 +1,247 @@
1
+ import { e as getRenderingRef, f as forceUpdate } from './p-CRSKFTLB.js';
2
+
3
+ const appendToMap = (map, propName, value) => {
4
+ const items = map.get(propName);
5
+ if (!items) {
6
+ map.set(propName, [value]);
7
+ }
8
+ else if (!items.includes(value)) {
9
+ items.push(value);
10
+ }
11
+ };
12
+ const debounce = (fn, ms) => {
13
+ let timeoutId;
14
+ return (...args) => {
15
+ if (timeoutId) {
16
+ clearTimeout(timeoutId);
17
+ }
18
+ timeoutId = setTimeout(() => {
19
+ timeoutId = 0;
20
+ fn(...args);
21
+ }, ms);
22
+ };
23
+ };
24
+
25
+ /**
26
+ * Check if a possible element isConnected.
27
+ * The property might not be there, so we check for it.
28
+ *
29
+ * We want it to return true if isConnected is not a property,
30
+ * otherwise we would remove these elements and would not update.
31
+ *
32
+ * Better leak in Edge than to be useless.
33
+ */
34
+ const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
35
+ const cleanupElements = debounce((map) => {
36
+ for (let key of map.keys()) {
37
+ map.set(key, map.get(key).filter(isConnected));
38
+ }
39
+ }, 2_000);
40
+ const stencilSubscription = () => {
41
+ if (typeof getRenderingRef !== 'function') {
42
+ // If we are not in a stencil project, we do nothing.
43
+ // This function is not really exported by @stencil/core.
44
+ return {};
45
+ }
46
+ const elmsToUpdate = new Map();
47
+ return {
48
+ dispose: () => elmsToUpdate.clear(),
49
+ get: (propName) => {
50
+ const elm = getRenderingRef();
51
+ if (elm) {
52
+ appendToMap(elmsToUpdate, propName, elm);
53
+ }
54
+ },
55
+ set: (propName) => {
56
+ const elements = elmsToUpdate.get(propName);
57
+ if (elements) {
58
+ elmsToUpdate.set(propName, elements.filter(forceUpdate));
59
+ }
60
+ cleanupElements(elmsToUpdate);
61
+ },
62
+ reset: () => {
63
+ elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));
64
+ cleanupElements(elmsToUpdate);
65
+ },
66
+ };
67
+ };
68
+
69
+ const unwrap = (val) => (typeof val === 'function' ? val() : val);
70
+ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
71
+ const unwrappedState = unwrap(defaultState);
72
+ let states = new Map(Object.entries(unwrappedState ?? {}));
73
+ const handlers = {
74
+ dispose: [],
75
+ get: [],
76
+ set: [],
77
+ reset: [],
78
+ };
79
+ // Track onChange listeners to enable removeListener functionality
80
+ const changeListeners = new Map();
81
+ const reset = () => {
82
+ // When resetting the state, the default state may be a function - unwrap it to invoke it.
83
+ // otherwise, the state won't be properly reset
84
+ states = new Map(Object.entries(unwrap(defaultState) ?? {}));
85
+ handlers.reset.forEach((cb) => cb());
86
+ };
87
+ const dispose = () => {
88
+ // Call first dispose as resetting the state would
89
+ // cause less updates ;)
90
+ handlers.dispose.forEach((cb) => cb());
91
+ reset();
92
+ };
93
+ const get = (propName) => {
94
+ handlers.get.forEach((cb) => cb(propName));
95
+ return states.get(propName);
96
+ };
97
+ const set = (propName, value) => {
98
+ const oldValue = states.get(propName);
99
+ if (shouldUpdate(value, oldValue, propName)) {
100
+ states.set(propName, value);
101
+ handlers.set.forEach((cb) => cb(propName, value, oldValue));
102
+ }
103
+ };
104
+ const state = (typeof Proxy === 'undefined'
105
+ ? {}
106
+ : new Proxy(unwrappedState, {
107
+ get(_, propName) {
108
+ return get(propName);
109
+ },
110
+ ownKeys(_) {
111
+ return Array.from(states.keys());
112
+ },
113
+ getOwnPropertyDescriptor() {
114
+ return {
115
+ enumerable: true,
116
+ configurable: true,
117
+ };
118
+ },
119
+ has(_, propName) {
120
+ return states.has(propName);
121
+ },
122
+ set(_, propName, value) {
123
+ set(propName, value);
124
+ return true;
125
+ },
126
+ }));
127
+ const on = (eventName, callback) => {
128
+ handlers[eventName].push(callback);
129
+ return () => {
130
+ removeFromArray(handlers[eventName], callback);
131
+ };
132
+ };
133
+ const onChange = (propName, cb) => {
134
+ const setHandler = (key, newValue) => {
135
+ if (key === propName) {
136
+ cb(newValue);
137
+ }
138
+ };
139
+ const resetHandler = () => cb(unwrap(defaultState)[propName]);
140
+ // Register the handlers
141
+ const unSet = on('set', setHandler);
142
+ const unReset = on('reset', resetHandler);
143
+ // Track the relationship between the user callback and internal handlers
144
+ changeListeners.set(cb, { setHandler, resetHandler, propName });
145
+ return () => {
146
+ unSet();
147
+ unReset();
148
+ changeListeners.delete(cb);
149
+ };
150
+ };
151
+ const use = (...subscriptions) => {
152
+ const unsubs = subscriptions.reduce((unsubs, subscription) => {
153
+ if (subscription.set) {
154
+ unsubs.push(on('set', subscription.set));
155
+ }
156
+ if (subscription.get) {
157
+ unsubs.push(on('get', subscription.get));
158
+ }
159
+ if (subscription.reset) {
160
+ unsubs.push(on('reset', subscription.reset));
161
+ }
162
+ if (subscription.dispose) {
163
+ unsubs.push(on('dispose', subscription.dispose));
164
+ }
165
+ return unsubs;
166
+ }, []);
167
+ return () => unsubs.forEach((unsub) => unsub());
168
+ };
169
+ const forceUpdate = (key) => {
170
+ const oldValue = states.get(key);
171
+ handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
172
+ };
173
+ const removeListener = (propName, listener) => {
174
+ const listenerInfo = changeListeners.get(listener);
175
+ if (listenerInfo && listenerInfo.propName === propName) {
176
+ // Remove the specific handlers that were created for this listener
177
+ removeFromArray(handlers.set, listenerInfo.setHandler);
178
+ removeFromArray(handlers.reset, listenerInfo.resetHandler);
179
+ changeListeners.delete(listener);
180
+ }
181
+ };
182
+ return {
183
+ state,
184
+ get,
185
+ set,
186
+ on,
187
+ onChange,
188
+ use,
189
+ dispose,
190
+ reset,
191
+ forceUpdate,
192
+ removeListener,
193
+ };
194
+ };
195
+ const removeFromArray = (array, item) => {
196
+ const index = array.indexOf(item);
197
+ if (index >= 0) {
198
+ array[index] = array[array.length - 1];
199
+ array.length--;
200
+ }
201
+ };
202
+
203
+ const createStore = (defaultState, shouldUpdate) => {
204
+ const map = createObservableMap(defaultState, shouldUpdate);
205
+ map.use(stencilSubscription());
206
+ return map;
207
+ };
208
+
209
+ const stateThemeOptions = ['light', 'dark'];
210
+ const stateLocaleOptions = ['nl', 'en'];
211
+ const { state: localState, onChange } = createStore({
212
+ theme: stateThemeOptions[0],
213
+ locale: stateLocaleOptions[0],
214
+ });
215
+ const initTheme = (usePreferColorScheme = true, localStorageKey = false) => {
216
+ let themeKey = localStorageKey;
217
+ if (themeKey === true || themeKey === false) {
218
+ themeKey = 'paperless-theme';
219
+ }
220
+ let theme = localStorage.getItem(themeKey);
221
+ if (window.matchMedia && !theme && usePreferColorScheme) {
222
+ theme = window.matchMedia('prefers-color-scheme: dark') ? 'dark' : 'light';
223
+ }
224
+ if (!theme) {
225
+ theme = localState.theme;
226
+ }
227
+ if (theme !== localState.theme) {
228
+ localState.theme = theme;
229
+ if (!!localStorageKey) {
230
+ localStorage.setItem(themeKey, theme);
231
+ }
232
+ }
233
+ document.body.dataset.theme = theme;
234
+ onChange('theme', newValue => {
235
+ document.body.dataset.theme = newValue;
236
+ if (!!localStorageKey) {
237
+ localStorage.setItem(themeKey, newValue);
238
+ }
239
+ });
240
+ };
241
+ const state = localState;
242
+ const onStateChange = onChange;
243
+
244
+ export { stateLocaleOptions as a, state as b, initTheme as i, onStateChange as o, stateThemeOptions as s };
245
+ //# sourceMappingURL=p-CNxD99na.js.map
246
+
247
+ //# sourceMappingURL=p-CNxD99na.js.map
@@ -0,0 +1 @@
1
+ {"file":"p-CNxD99na.js","mappings":";;AAEA,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,KAAK;AAC9C,IAAI,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC;AACnC,IAAI,IAAI,CAAC,KAAK,EAAE;AAChB,QAAQ,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC;AAClC;AACA,SAAS,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AACrC,QAAQ,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;AACzB;AACA,CAAC;AACD,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK;AAC7B,IAAI,IAAI,SAAS;AACjB,IAAI,OAAO,CAAC,GAAG,IAAI,KAAK;AACxB,QAAQ,IAAI,SAAS,EAAE;AACvB,YAAY,YAAY,CAAC,SAAS,CAAC;AAC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AM,EAAE,kBAAkB,CAAC,CAAC,CAAC;AAC7B,CAAA,CAAC;AAEK,MAAM,SAAS,GAAG,CACxB,oBAAoB,GAAG,IAAI,EAC3B,eAAA,GAAoC,KAAK,KACtC;IACH,IAAI,QAAQ,GAAG,eAAe;IAC9B,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,KAAK,EAAE;QAC5C,QAAQ,GAAG,iBAAiB;;IAG7B,IAAI,KAAK,GAAqB,YAAY,CAAC,OAAO,CACjD,QAAQ,CACY;IAErB,IAAI,MAAM,CAAC,UAAU,IAAI,CAAC,KAAK,IAAI,oBAAoB,EAAE;AACxD,QAAA,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,4BAA4B,CAAC,GAAG,MAAM,GAAG,OAAO;;IAG3E,IAAI,CAAC,KAAK,EAAE;AACX,QAAA,KAAK,GAAG,UAAU,CAAC,KAAK;;AAGzB,IAAA,IAAI,KAAK,KAAK,UAAU,CAAC,KAAK,EAAE;AAC/B,QAAA,UAAU,CAAC,KAAK,GAAG,KAAK;AAExB,QAAA,IAAI,CAAC,CAAC,eAAe,EAAE;AACtB,YAAA,YAAY,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,CAAC;;;IAIvC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,KAAK;AACnC,IAAA,QAAQ,CAAC,OAAO,EAAE,QAAQ,IAAG;QAC5B,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,QAAQ;AAEtC,QAAA,IAAI,CAAC,CAAC,eAAe,EAAE;AACtB,YAAA,YAAY,CAAC,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC;;AAE1C,KAAC,CAAC;AACH;AAEO,MAAM,KAAK,GAAG;AACd,MAAM,aAAa,GAAG;;;;","names":[],"sources":["../../node_modules/@stencil/store/dist/index.js","src/state.ts"],"sourcesContent":["import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2_000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst unwrap = (val) => (typeof val === 'function' ? val() : val);\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n const unwrappedState = unwrap(defaultState);\n let states = new Map(Object.entries(unwrappedState ?? {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n // Track onChange listeners to enable removeListener functionality\n const changeListeners = new Map();\n const reset = () => {\n // When resetting the state, the default state may be a function - unwrap it to invoke it.\n // otherwise, the state won't be properly reset\n states = new Map(Object.entries(unwrap(defaultState) ?? {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(unwrappedState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const setHandler = (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n };\n const resetHandler = () => cb(unwrap(defaultState)[propName]);\n // Register the handlers\n const unSet = on('set', setHandler);\n const unReset = on('reset', resetHandler);\n // Track the relationship between the user callback and internal handlers\n changeListeners.set(cb, { setHandler, resetHandler, propName });\n return () => {\n unSet();\n unReset();\n changeListeners.delete(cb);\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n const removeListener = (propName, listener) => {\n const listenerInfo = changeListeners.get(listener);\n if (listenerInfo && listenerInfo.propName === propName) {\n // Remove the specific handlers that were created for this listener\n removeFromArray(handlers.set, listenerInfo.setHandler);\n removeFromArray(handlers.reset, listenerInfo.resetHandler);\n changeListeners.delete(listener);\n }\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n removeListener,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n","import { createStore } from '@stencil/store';\n\nexport type StateThemeOption = 'light' | 'dark';\nexport type StateLocaleOption = 'en' | 'nl';\n\nexport const stateThemeOptions: StateThemeOption[] = ['light', 'dark'];\nexport const stateLocaleOptions: StateLocaleOption[] = ['nl', 'en'];\n\nexport interface PaperlessState {\n\ttheme: StateThemeOption;\n\tlocale: StateLocaleOption;\n}\n\nconst { state: localState, onChange } = createStore<PaperlessState>({\n\ttheme: stateThemeOptions[0],\n\tlocale: stateLocaleOptions[0],\n});\n\nexport const initTheme = (\n\tusePreferColorScheme = true,\n\tlocalStorageKey: string | boolean = false\n) => {\n\tlet themeKey = localStorageKey;\n\tif (themeKey === true || themeKey === false) {\n\t\tthemeKey = 'paperless-theme';\n\t}\n\n\tlet theme: StateThemeOption = localStorage.getItem(\n\t\tthemeKey\n\t) as StateThemeOption;\n\n\tif (window.matchMedia && !theme && usePreferColorScheme) {\n\t\ttheme = window.matchMedia('prefers-color-scheme: dark') ? 'dark' : 'light';\n\t}\n\n\tif (!theme) {\n\t\ttheme = localState.theme;\n\t}\n\n\tif (theme !== localState.theme) {\n\t\tlocalState.theme = theme;\n\n\t\tif (!!localStorageKey) {\n\t\t\tlocalStorage.setItem(themeKey, theme);\n\t\t}\n\t}\n\n\tdocument.body.dataset.theme = theme;\n\tonChange('theme', newValue => {\n\t\tdocument.body.dataset.theme = newValue;\n\n\t\tif (!!localStorageKey) {\n\t\t\tlocalStorage.setItem(themeKey, newValue);\n\t\t}\n\t});\n};\n\nexport const state = localState;\nexport const onStateChange = onChange;\n"],"version":3}
@@ -1,12 +1,12 @@
1
- import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment } from './p-tdjn65Lz.js';
1
+ import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment } from './p-CRSKFTLB.js';
2
2
  import { c as cva } from './p-CBWjHURv.js';
3
3
  import { f as formatTranslation, g as getLocaleComponentStrings } from './p-DiJj8rmO.js';
4
4
  import { c as cn } from './p-CT54OXR2.js';
5
5
  import { a as asBoolean } from './p-C5CTp9IA.js';
6
- import { d as defineCustomElement$4 } from './p-C6RWkimA.js';
7
- import { d as defineCustomElement$3 } from './p-DWsW_D0V.js';
8
- import { d as defineCustomElement$2 } from './p-CvfOjT_y.js';
9
- import { d as defineCustomElement$1 } from './p-BRnY1zdf.js';
6
+ import { d as defineCustomElement$4 } from './p-BiWMxBAJ.js';
7
+ import { d as defineCustomElement$3 } from './p-4sqhIpUp.js';
8
+ import { d as defineCustomElement$2 } from './p-CEFg09mj.js';
9
+ import { d as defineCustomElement$1 } from './p-B9bfyk_o.js';
10
10
 
11
11
  const fieldContainerComponentCss = "*{box-sizing:border-box}.ml-2{margin-left:.5rem!important}.ml-auto{margin-left:auto!important}.flex{display:flex!important}.h-4{height:1rem!important}.h-5{height:1.25rem!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.w-full{width:100%!important}.w-inherit{width:inherit!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-col{flex-direction:column!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}.gap-1{gap:.25rem!important}.rounded-lg{border-radius:.5rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-medium{font-weight:500!important}.font-normal{font-weight:400!important}.text-storm-200{--tw-text-opacity:1!important;color:rgb(163 165 169/var(--tw-text-opacity,1))!important}.text-storm-300{--tw-text-opacity:1!important;color:rgb(116 120 127/var(--tw-text-opacity,1))!important}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.empty\\:hidden:empty{display:none!important}";
12
12
 
@@ -206,6 +206,6 @@ function defineCustomElement() {
206
206
  defineCustomElement();
207
207
 
208
208
  export { FieldContainer as F, defineCustomElement as d };
209
- //# sourceMappingURL=p-DwtD7Wpi.js.map
209
+ //# sourceMappingURL=p-CQD0GsAo.js.map
210
210
 
211
- //# sourceMappingURL=p-DwtD7Wpi.js.map
211
+ //# sourceMappingURL=p-CQD0GsAo.js.map
@@ -1 +1 @@
1
- {"file":"p-DwtD7Wpi.js","mappings":";;;;;;;;;;AAAA,MAAM,0BAA0B,GAAG,6vDAA6vD;;ACoBhyD,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,mBAAmB,CAAC,EAAE;AACzC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,KAAK,EAAE,IAAI;AACX,SAAA;AACD,QAAA,IAAI,EAAE;AACL,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,EAAE,EAAE,IAAI;AACR,SAAA;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE;AACjB,QAAA;AACC,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,KAAK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,EAEA,WAAW,CACD,CACL;;AAKF,IAAA,MAAM,WAAW,GAAA;QACxB,IAAI,CAAC,QAAQ,GAAG,MAAM,yBAAyB,CAAC,IAAI,CAAC,GAAG,CAAC;;IAGlD,YAAY,GAAA;AACnB,QAAA,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,0BAA0B,CAAC;AAC1E,QAAA,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,yBAAyB,CAAC;AACxE,QAAA,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,0BAA0B,CAAC;AAC1E,QAAA,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,yBAAyB,CAAC;QAExE,MAAM,MAAM,GAAG,aAAa,GAAG,CAAM,CAAA,MAAA,EAAA,EAAA,IAAI,EAAC,QAAQ,GAAG,GAAG,IAAI,CAAC,MAAM;QACnE,MAAM,KAAK,GAAG,YAAY,GAAG,CAAM,CAAA,MAAA,EAAA,EAAA,IAAI,EAAC,OAAO,GAAG,GAAG,IAAI,CAAC,KAAK;QAE/D,MAAM,yBAAyB,GAC9B,YAAY;AACZ,aAAC,IAAI,CAAC,KAAK,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,KAAK,MAAM,CAAC;QAExE,OAAO;YACN,aAAa;YACb,YAAY;YACZ,aAAa;YACb,YAAY;YACZ,MAAM;YACN,KAAK;YACL,yBAAyB;SACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/molecules/field/container/field-container.component.css?tag=p-field-container&encapsulation=shadow","src/components/molecules/field/container/field-container.component.tsx"],"sourcesContent":["","import { Placement } from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\tFragment,\n\th,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport {\n\tcn,\n\tformatTranslation,\n\tgetLocaleComponentStrings,\n} from '../../../../utils';\nimport { asBoolean } from '../../../../utils/as-boolean';\n\nconst loader = cva(['rounded-lg w-full'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tread: null,\n\t\t\twrite: null,\n\t\t},\n\t\tsize: {\n\t\t\tbase: null,\n\t\t\tsm: null,\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-5',\n\t\t},\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-4',\n\t\t},\n\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-8',\n\t\t},\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-6',\n\t\t},\n\t],\n});\n\nexport type templateFunc = () => string;\n\n@Component({\n\ttag: 'p-field-container',\n\tstyleUrl: 'field-container.component.css',\n\tshadow: true,\n})\nexport class FieldContainer {\n\tprivate _defaultOptionalTemplate: templateFunc = () =>\n\t\tformatTranslation(this._locales.optional);\n\t/**\n\t * The id for the label\n\t */\n\t@Prop() id: string;\n\n\t/**\n\t * Align content to the start or end\n\t */\n\t@Prop() align: 'start' | 'end' = 'start';\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field container is in loading state\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The size of the loader\n\t */\n\t@Prop() loadingSize: 'base' | 'sm' = 'base';\n\n\t/**\n\t * The variant of the field container\n\t */\n\t@Prop() variant: 'read' | 'write';\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string | HTMLSlotElement;\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\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc = this._defaultOptionalTemplate;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@Event() focus: EventEmitter<void>;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t} = this._getSlotInfo();\n\n\t\tlet contentSlot = (\n\t\t\t<slot\n\t\t\t\tslot='trigger'\n\t\t\t\tname='content'\n\t\t\t/>\n\t\t);\n\n\t\tif (this.loading) {\n\t\t\tcontentSlot = (\n\t\t\t\t<p-loader\n\t\t\t\t\tvariant='ghost'\n\t\t\t\t\tclass={loader({ variant: this.variant, size: this.loadingSize })}\n\t\t\t\t\tslot='trigger'\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<label\n\t\t\t\thtmlFor={this.id}\n\t\t\t\tclass='flex w-inherit flex-col gap-1'\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclass={cn('flex items-end justify-between gap-1 empty:hidden', {\n\t\t\t\t\t\t'flex-row-reverse': this.align === 'end',\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{!!label?.length && (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass='text-xs font-medium text-storm-300'\n\t\t\t\t\t\t\tonClick={() => this.focus.emit()}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{((!asBoolean(this.required) && asBoolean(this.showOptional)) ||\n\t\t\t\t\t\thelper ||\n\t\t\t\t\t\thasHeaderSlot) && (\n\t\t\t\t\t\t<div class='flex items-center gap-1'>\n\t\t\t\t\t\t\t{!asBoolean(this.required) &&\n\t\t\t\t\t\t\t\tasBoolean(this.showOptional) &&\n\t\t\t\t\t\t\t\tthis.variant === 'write' && (\n\t\t\t\t\t\t\t\t\t<span class='text-xs font-medium text-storm-200'>\n\t\t\t\t\t\t\t\t\t\t{this.optionalTemplate()}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t{(helper || hasHeaderSlot) && (\n\t\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t\t{hasHeaderSlot && <slot name='header' />}\n\t\t\t\t\t\t\t\t\t{helper && (\n\t\t\t\t\t\t\t\t\t\t<p-helper\n\t\t\t\t\t\t\t\t\t\t\tclass={`flex ${hasHeaderSlot ? 'ml-2' : ''}`}\n\t\t\t\t\t\t\t\t\t\t\tplacement='top-end'\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{helper}\n\t\t\t\t\t\t\t\t\t\t</p-helper>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\n\t\t\t\t<p-tooltip\n\t\t\t\t\tclass={cn({\n\t\t\t\t\t\t'w-full': this.variant === 'write' || this.loading,\n\t\t\t\t\t\t'ml-auto': this.align === 'end',\n\t\t\t\t\t\t'font-normal': this.variant === 'read',\n\t\t\t\t\t})}\n\t\t\t\t\tvariant='error'\n\t\t\t\t\tcontent={this.error}\n\t\t\t\t\tshow={\n\t\t\t\t\t\terrorAndErrorIsNotBoolean && asBoolean(this.forceShowTooltip, false)\n\t\t\t\t\t}\n\t\t\t\t\tenableUserInput={false}\n\t\t\t\t\tplacement={this.errorPlacement}\n\t\t\t\t>\n\t\t\t\t\t{hasErrorSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='error'\n\t\t\t\t\t\t\tslot='content'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{contentSlot}\n\t\t\t\t</p-tooltip>\n\t\t\t</label>\n\t\t);\n\t}\n\n\t@Listen('localeChanged', { target: 'body' })\n\tprivate async _setLocales(): Promise<void> {\n\t\tthis._locales = await getLocaleComponentStrings(this._el);\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst helper = hasHelperSlot ? <slot name='helper' /> : this.helper;\n\t\tconst label = hasLabelSlot ? <slot name='label' /> : this.label;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\thasErrorSlot ||\n\t\t\t(this.error && typeof this.error === 'string' && this.error !== 'true');\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n}\n"],"version":3}
1
+ {"file":"p-CQD0GsAo.js","mappings":";;;;;;;;;;AAAA,MAAM,0BAA0B,GAAG,6vDAA6vD;;ACoBhyD,MAAM,MAAM,GAAG,GAAG,CAAC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CAAC,KAAK,KAAK,MAAM,CAAC;QAExE,OAAO;YACN,aAAa;YACb,YAAY;YACZ,aAAa;YACb,YAAY;YACZ,MAAM;YACN,KAAK;YACL,yBAAyB;SACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/molecules/field/container/field-container.component.css?tag=p-field-container&encapsulation=shadow","src/components/molecules/field/container/field-container.component.tsx"],"sourcesContent":["","import { Placement } from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\tFragment,\n\th,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport {\n\tcn,\n\tformatTranslation,\n\tgetLocaleComponentStrings,\n} from '../../../../utils';\nimport { asBoolean } from '../../../../utils/as-boolean';\n\nconst loader = cva(['rounded-lg w-full'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tread: null,\n\t\t\twrite: null,\n\t\t},\n\t\tsize: {\n\t\t\tbase: null,\n\t\t\tsm: null,\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-5',\n\t\t},\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-4',\n\t\t},\n\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-8',\n\t\t},\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-6',\n\t\t},\n\t],\n});\n\nexport type templateFunc = () => string;\n\n@Component({\n\ttag: 'p-field-container',\n\tstyleUrl: 'field-container.component.css',\n\tshadow: true,\n})\nexport class FieldContainer {\n\tprivate _defaultOptionalTemplate: templateFunc = () =>\n\t\tformatTranslation(this._locales.optional);\n\t/**\n\t * The id for the label\n\t */\n\t@Prop() id: string;\n\n\t/**\n\t * Align content to the start or end\n\t */\n\t@Prop() align: 'start' | 'end' = 'start';\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field container is in loading state\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The size of the loader\n\t */\n\t@Prop() loadingSize: 'base' | 'sm' = 'base';\n\n\t/**\n\t * The variant of the field container\n\t */\n\t@Prop() variant: 'read' | 'write';\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string | HTMLSlotElement;\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\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc = this._defaultOptionalTemplate;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@Event() focus: EventEmitter<void>;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t} = this._getSlotInfo();\n\n\t\tlet contentSlot = (\n\t\t\t<slot\n\t\t\t\tslot='trigger'\n\t\t\t\tname='content'\n\t\t\t/>\n\t\t);\n\n\t\tif (this.loading) {\n\t\t\tcontentSlot = (\n\t\t\t\t<p-loader\n\t\t\t\t\tvariant='ghost'\n\t\t\t\t\tclass={loader({ variant: this.variant, size: this.loadingSize })}\n\t\t\t\t\tslot='trigger'\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<label\n\t\t\t\thtmlFor={this.id}\n\t\t\t\tclass='flex w-inherit flex-col gap-1'\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclass={cn('flex items-end justify-between gap-1 empty:hidden', {\n\t\t\t\t\t\t'flex-row-reverse': this.align === 'end',\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{!!label?.length && (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass='text-xs font-medium text-storm-300'\n\t\t\t\t\t\t\tonClick={() => this.focus.emit()}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{((!asBoolean(this.required) && asBoolean(this.showOptional)) ||\n\t\t\t\t\t\thelper ||\n\t\t\t\t\t\thasHeaderSlot) && (\n\t\t\t\t\t\t<div class='flex items-center gap-1'>\n\t\t\t\t\t\t\t{!asBoolean(this.required) &&\n\t\t\t\t\t\t\t\tasBoolean(this.showOptional) &&\n\t\t\t\t\t\t\t\tthis.variant === 'write' && (\n\t\t\t\t\t\t\t\t\t<span class='text-xs font-medium text-storm-200'>\n\t\t\t\t\t\t\t\t\t\t{this.optionalTemplate()}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t{(helper || hasHeaderSlot) && (\n\t\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t\t{hasHeaderSlot && <slot name='header' />}\n\t\t\t\t\t\t\t\t\t{helper && (\n\t\t\t\t\t\t\t\t\t\t<p-helper\n\t\t\t\t\t\t\t\t\t\t\tclass={`flex ${hasHeaderSlot ? 'ml-2' : ''}`}\n\t\t\t\t\t\t\t\t\t\t\tplacement='top-end'\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{helper}\n\t\t\t\t\t\t\t\t\t\t</p-helper>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\n\t\t\t\t<p-tooltip\n\t\t\t\t\tclass={cn({\n\t\t\t\t\t\t'w-full': this.variant === 'write' || this.loading,\n\t\t\t\t\t\t'ml-auto': this.align === 'end',\n\t\t\t\t\t\t'font-normal': this.variant === 'read',\n\t\t\t\t\t})}\n\t\t\t\t\tvariant='error'\n\t\t\t\t\tcontent={this.error}\n\t\t\t\t\tshow={\n\t\t\t\t\t\terrorAndErrorIsNotBoolean && asBoolean(this.forceShowTooltip, false)\n\t\t\t\t\t}\n\t\t\t\t\tenableUserInput={false}\n\t\t\t\t\tplacement={this.errorPlacement}\n\t\t\t\t>\n\t\t\t\t\t{hasErrorSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='error'\n\t\t\t\t\t\t\tslot='content'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{contentSlot}\n\t\t\t\t</p-tooltip>\n\t\t\t</label>\n\t\t);\n\t}\n\n\t@Listen('localeChanged', { target: 'body' })\n\tprivate async _setLocales(): Promise<void> {\n\t\tthis._locales = await getLocaleComponentStrings(this._el);\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst helper = hasHelperSlot ? <slot name='helper' /> : this.helper;\n\t\tconst label = hasLabelSlot ? <slot name='label' /> : this.label;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\thasErrorSlot ||\n\t\t\t(this.error && typeof this.error === 'string' && this.error !== 'true');\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n}\n"],"version":3}
@@ -1245,8 +1245,10 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
1245
1245
  }
1246
1246
  }
1247
1247
  };
1248
+ var renderingRef = null;
1248
1249
  var callRender = (hostRef, instance, elm, isInitialLoad) => {
1249
1250
  try {
1251
+ renderingRef = instance;
1250
1252
  instance = instance.render() ;
1251
1253
  {
1252
1254
  hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
@@ -1264,8 +1266,10 @@ var callRender = (hostRef, instance, elm, isInitialLoad) => {
1264
1266
  } catch (e) {
1265
1267
  consoleError(e, hostRef.$hostElement$);
1266
1268
  }
1269
+ renderingRef = null;
1267
1270
  return null;
1268
1271
  };
1272
+ var getRenderingRef = () => renderingRef;
1269
1273
  var postUpdateComponent = (hostRef) => {
1270
1274
  const tagName = hostRef.$cmpMeta$.$tagName$;
1271
1275
  const elm = hostRef.$hostElement$;
@@ -1301,6 +1305,16 @@ var postUpdateComponent = (hostRef) => {
1301
1305
  hostRef.$flags$ &= -517;
1302
1306
  }
1303
1307
  };
1308
+ var forceUpdate = (ref) => {
1309
+ {
1310
+ const hostRef = getHostRef(ref);
1311
+ const isConnected = hostRef.$hostElement$.isConnected;
1312
+ if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1313
+ scheduleUpdate(hostRef, false);
1314
+ }
1315
+ return isConnected;
1316
+ }
1317
+ };
1304
1318
  var appDidLoad = (who) => {
1305
1319
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1306
1320
  };
@@ -1688,7 +1702,7 @@ var setNonce = (nonce) => plt.$nonce$ = nonce;
1688
1702
  // src/runtime/platform-options.ts
1689
1703
  var setPlatformOptions = (opts) => Object.assign(plt, opts);
1690
1704
 
1691
- export { Fragment as F, H, setNonce as a, setPlatformOptions as b, createEvent as c, Host as d, getAssetPath as g, h, proxyCustomElement as p, setAssetPath as s };
1692
- //# sourceMappingURL=p-tdjn65Lz.js.map
1705
+ export { Fragment as F, H, setNonce as a, setPlatformOptions as b, createEvent as c, Host as d, getRenderingRef as e, forceUpdate as f, getAssetPath as g, h, proxyCustomElement as p, setAssetPath as s };
1706
+ //# sourceMappingURL=p-CRSKFTLB.js.map
1693
1707
 
1694
- //# sourceMappingURL=p-tdjn65Lz.js.map
1708
+ //# sourceMappingURL=p-CRSKFTLB.js.map