@paperless/core 2.22.0-alpha.27 → 2.22.0-alpha.29

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 (213) hide show
  1. package/dist/build/index.esm.js +1 -1
  2. package/dist/{paperless/p-84c43a3d.entry.js → build/p-1c17ee9b.entry.js} +1 -1
  3. package/dist/build/p-25961586.entry.js +1 -0
  4. package/dist/{paperless/p-9f51b9dc.entry.js → build/p-260a97c9.entry.js} +1 -1
  5. package/dist/build/{p-44da0b12.entry.js → p-2a37b400.entry.js} +1 -1
  6. package/dist/build/{p-fff6fa7a.entry.js → p-31399606.entry.js} +1 -1
  7. package/dist/build/{p-fa519af0.js → p-5f422b65.js} +1 -1
  8. package/dist/build/p-60923e39.entry.js +1 -0
  9. package/dist/{paperless/p-d24f045f.entry.js → build/p-6aa93bf9.entry.js} +1 -1
  10. package/dist/build/{p-e51c1cd6.entry.js → p-70974f53.entry.js} +1 -1
  11. package/dist/build/p-75ba802e.entry.js +3 -0
  12. package/dist/build/{p-b781e8db.entry.js → p-8c1bf7ea.entry.js} +1 -1
  13. package/dist/{paperless/p-7d018d4d.entry.js → build/p-9e06356b.entry.js} +1 -1
  14. package/dist/build/p-B_lDCj8j.js +1 -0
  15. package/dist/build/p-CeBIrPPx.js +1 -0
  16. package/dist/build/{p-78b15121.entry.js → p-a6369294.entry.js} +1 -1
  17. package/dist/build/p-a9c0aab3.entry.js +1 -0
  18. package/dist/build/p-b85ee4b7.entry.js +1 -0
  19. package/dist/build/{p-76f83633.entry.js → p-ba7ccf80.entry.js} +1 -1
  20. package/dist/build/{p-524eb1cb.entry.js → p-c16870f5.entry.js} +1 -1
  21. package/dist/build/{p-17e598ac.entry.js → p-cf436a7d.entry.js} +1 -1
  22. package/dist/build/{p-0d6f3aa3.entry.js → p-cfbd02e6.entry.js} +1 -1
  23. package/dist/build/{p-cbeb58ba.entry.js → p-e907c9d3.entry.js} +1 -1
  24. package/dist/build/{p-d9b3ace4.entry.js → p-ee7858e4.entry.js} +1 -1
  25. package/dist/build/{p-23cc6b6b.entry.js → p-f1c6f25b.entry.js} +1 -1
  26. package/dist/{paperless/p-5abcc8d2.entry.js → build/p-f5be155f.entry.js} +1 -1
  27. package/dist/build/p-xs4N_Y-0.js +1 -0
  28. package/dist/build/paperless.esm.js +1 -1
  29. package/dist/cjs/{cn-BGmLaIp8.js → cn-Cd68UVBT.js} +30 -274
  30. package/dist/cjs/{floating-ui.dom-33QlkSyu.js → floating-ui.dom-DEq7yeQK.js} +91 -50
  31. package/dist/cjs/index.cjs.js +1 -1
  32. package/dist/cjs/locale-BIZDGOk_.js +75117 -0
  33. package/dist/cjs/p-accordion.cjs.entry.js +1 -1
  34. package/dist/cjs/p-attachment.cjs.entry.js +1 -1
  35. package/dist/cjs/p-badge_3.cjs.entry.js +1 -1
  36. package/dist/cjs/p-button_3.cjs.entry.js +6 -6
  37. package/dist/cjs/p-calendar.cjs.entry.js +75 -302
  38. package/dist/cjs/p-card-container.cjs.entry.js +1 -1
  39. package/dist/cjs/p-checkbox_3.cjs.entry.js +2 -2
  40. package/dist/cjs/p-content-slider.cjs.entry.js +1 -1
  41. package/dist/cjs/p-cropper.cjs.entry.js +88 -32
  42. package/dist/cjs/p-datepicker.cjs.entry.js +41 -2891
  43. package/dist/cjs/p-divider.cjs.entry.js +1 -1
  44. package/dist/cjs/p-dropdown-menu-item_2.cjs.entry.js +1 -1
  45. package/dist/cjs/p-empty-state_8.cjs.entry.js +12 -18
  46. package/dist/cjs/p-field_3.cjs.entry.js +1 -1
  47. package/dist/cjs/p-illustration.cjs.entry.js +1 -1
  48. package/dist/cjs/p-label.cjs.entry.js +1 -1
  49. package/dist/cjs/p-listing.cjs.entry.js +1 -1
  50. package/dist/cjs/p-navigation-item.cjs.entry.js +1 -1
  51. package/dist/cjs/p-pagination_3.cjs.entry.js +2 -2
  52. package/dist/cjs/p-select.cjs.entry.js +1 -1
  53. package/dist/cjs/p-table.cjs.entry.js +1 -1
  54. package/dist/cjs/p-tooltip.cjs.entry.js +1 -1
  55. package/dist/collection/components/atoms/loader/loader.component.js +1 -1
  56. package/dist/collection/components/molecules/button/button.component.js +8 -7
  57. package/dist/collection/components/molecules/calendar/calendar.component.js +1 -2
  58. package/dist/collection/components/molecules/datepicker/datepicker.component.js +2 -2
  59. package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +1 -1
  60. package/dist/components/index.js +1 -1
  61. package/dist/components/{p-BtuWYjfq.js → p--JDhF4GL.js} +1 -1
  62. package/dist/components/{p-DW-MndqD.js → p-0y7dmBHx.js} +1 -1
  63. package/dist/components/{p-DxmwiGc9.js → p-B4tCVctO.js} +1 -1
  64. package/dist/components/{p-LfH4pSix.js → p-BA1QFuzs.js} +1 -1
  65. package/dist/components/{p-Bno5n2sV.js → p-BBmuctek.js} +1 -1
  66. package/dist/components/p-BE2DRulM.js +1 -0
  67. package/dist/components/{p-Dbt4VuQm.js → p-BPP8ZYwN.js} +1 -1
  68. package/dist/components/{p-BeiMfpUZ.js → p-BV-h5ALt.js} +1 -1
  69. package/dist/components/{p-C_dax2wr.js → p-BX8yg_1a.js} +1 -1
  70. package/dist/components/{p-CjI4hMLv.js → p-BaXKEl7X.js} +1 -1
  71. package/dist/components/{p-BfJQbKrn.js → p-CCvROjOe.js} +1 -1
  72. package/dist/components/p-CHydrUrt.js +1 -0
  73. package/dist/components/{p-Bi6PK1YV.js → p-CccN0jY7.js} +1 -1
  74. package/dist/components/p-CeBIrPPx.js +1 -0
  75. package/dist/components/{p-BMb-TnTI.js → p-Coxruux_.js} +1 -1
  76. package/dist/components/{p-B9n8mzrj.js → p-DAuzJ_qL.js} +1 -1
  77. package/dist/components/{p-BAIZ48ms.js → p-DZjr9R4d.js} +1 -1
  78. package/dist/components/{p-BBNOzE00.js → p-Djf2rBRX.js} +1 -1
  79. package/dist/components/p-Dl4hxOHI.js +1 -0
  80. package/dist/components/{p-BIQLsxW1.js → p-DuYGcgJi.js} +1 -1
  81. package/dist/components/{p-CFu8cH3m.js → p-DxNTB_Qq.js} +1 -1
  82. package/dist/components/{p-CgOKCXab.js → p-JhZXmipA.js} +1 -1
  83. package/dist/components/{p-ChfXIxTQ.js → p-KuL1SNit.js} +1 -1
  84. package/dist/components/p-accordion.js +1 -1
  85. package/dist/components/p-attachment.js +1 -1
  86. package/dist/components/p-button.js +1 -1
  87. package/dist/components/p-calendar.js +1 -1
  88. package/dist/components/p-card-container.js +1 -1
  89. package/dist/components/p-card-header.js +1 -1
  90. package/dist/components/p-content-slider.js +1 -1
  91. package/dist/components/p-cropper.js +2 -2
  92. package/dist/components/p-datepicker.js +1 -1
  93. package/dist/components/p-divider.js +1 -1
  94. package/dist/components/p-drawer-header.js +1 -1
  95. package/dist/components/p-drawer.js +1 -1
  96. package/dist/components/p-dropdown-menu-item.js +1 -1
  97. package/dist/components/p-dropdown.js +1 -1
  98. package/dist/components/p-empty-state.js +1 -1
  99. package/dist/components/p-field-container.js +1 -1
  100. package/dist/components/p-field.js +1 -1
  101. package/dist/components/p-floating-menu-container.js +1 -1
  102. package/dist/components/p-helper.js +1 -1
  103. package/dist/components/p-illustration.js +1 -1
  104. package/dist/components/p-label.js +1 -1
  105. package/dist/components/p-listing.js +1 -1
  106. package/dist/components/p-modal-footer.js +1 -1
  107. package/dist/components/p-modal-header.js +1 -1
  108. package/dist/components/p-modal.js +1 -1
  109. package/dist/components/p-navbar.js +1 -1
  110. package/dist/components/p-navigation-item.js +1 -1
  111. package/dist/components/p-pagination-pages.js +1 -1
  112. package/dist/components/p-pagination-size.js +1 -1
  113. package/dist/components/p-pagination.js +1 -1
  114. package/dist/components/{p-PFAC3Kay.js → p-prb4IQlb.js} +1 -1
  115. package/dist/components/p-profile.js +1 -1
  116. package/dist/components/p-segment-item.js +1 -1
  117. package/dist/components/p-select.js +1 -1
  118. package/dist/components/{p-CCOwunss.js → p-swqKzLDH.js} +1 -1
  119. package/dist/components/p-tab-container.js +1 -1
  120. package/dist/components/p-table-cell.js +1 -1
  121. package/dist/components/p-table-footer.js +1 -1
  122. package/dist/components/p-table-header.js +1 -1
  123. package/dist/components/p-table-row-actions-container.js +1 -1
  124. package/dist/components/p-table-row.js +1 -1
  125. package/dist/components/p-table.js +1 -1
  126. package/dist/components/p-tooltip.js +1 -1
  127. package/dist/components/p-xs4N_Y-0.js +1 -0
  128. package/dist/esm/{cn-BniKgfyU.js → cn-CsNqHcjL.js} +30 -274
  129. package/dist/esm/{floating-ui.dom-DGLCmOXW.js → floating-ui.dom-CeBIrPPx.js} +91 -50
  130. package/dist/esm/index.js +1 -1
  131. package/dist/esm/locale-B_lDCj8j.js +75114 -0
  132. package/dist/esm/p-accordion.entry.js +1 -1
  133. package/dist/esm/p-attachment.entry.js +1 -1
  134. package/dist/esm/p-badge_3.entry.js +1 -1
  135. package/dist/esm/p-button_3.entry.js +6 -6
  136. package/dist/esm/p-calendar.entry.js +63 -290
  137. package/dist/esm/p-card-container.entry.js +1 -1
  138. package/dist/esm/p-checkbox_3.entry.js +2 -2
  139. package/dist/esm/p-content-slider.entry.js +1 -1
  140. package/dist/esm/p-cropper.entry.js +88 -32
  141. package/dist/esm/p-datepicker.entry.js +37 -2887
  142. package/dist/esm/p-divider.entry.js +1 -1
  143. package/dist/esm/p-dropdown-menu-item_2.entry.js +1 -1
  144. package/dist/esm/p-empty-state_8.entry.js +12 -18
  145. package/dist/esm/p-field_3.entry.js +1 -1
  146. package/dist/esm/p-illustration.entry.js +1 -1
  147. package/dist/esm/p-label.entry.js +1 -1
  148. package/dist/esm/p-listing.entry.js +1 -1
  149. package/dist/esm/p-navigation-item.entry.js +1 -1
  150. package/dist/esm/p-pagination_3.entry.js +2 -2
  151. package/dist/esm/p-select.entry.js +1 -1
  152. package/dist/esm/p-table.entry.js +1 -1
  153. package/dist/esm/p-tooltip.entry.js +1 -1
  154. package/dist/index.html +1 -1
  155. package/dist/paperless/index.esm.js +1 -1
  156. package/dist/{build/p-84c43a3d.entry.js → paperless/p-1c17ee9b.entry.js} +1 -1
  157. package/dist/paperless/p-25961586.entry.js +1 -0
  158. package/dist/{build/p-9f51b9dc.entry.js → paperless/p-260a97c9.entry.js} +1 -1
  159. package/dist/paperless/{p-44da0b12.entry.js → p-2a37b400.entry.js} +1 -1
  160. package/dist/paperless/{p-fff6fa7a.entry.js → p-31399606.entry.js} +1 -1
  161. package/dist/paperless/p-60923e39.entry.js +1 -0
  162. package/dist/{build/p-d24f045f.entry.js → paperless/p-6aa93bf9.entry.js} +1 -1
  163. package/dist/paperless/{p-e51c1cd6.entry.js → p-70974f53.entry.js} +1 -1
  164. package/dist/paperless/p-75ba802e.entry.js +3 -0
  165. package/dist/paperless/{p-b781e8db.entry.js → p-8c1bf7ea.entry.js} +1 -1
  166. package/dist/{build/p-7d018d4d.entry.js → paperless/p-9e06356b.entry.js} +1 -1
  167. package/dist/paperless/p-B_lDCj8j.js +1 -0
  168. package/dist/paperless/p-CeBIrPPx.js +1 -0
  169. package/dist/paperless/{p-78b15121.entry.js → p-a6369294.entry.js} +1 -1
  170. package/dist/paperless/p-a9c0aab3.entry.js +1 -0
  171. package/dist/paperless/p-b85ee4b7.entry.js +1 -0
  172. package/dist/paperless/{p-76f83633.entry.js → p-ba7ccf80.entry.js} +1 -1
  173. package/dist/paperless/{p-524eb1cb.entry.js → p-c16870f5.entry.js} +1 -1
  174. package/dist/paperless/{p-17e598ac.entry.js → p-cf436a7d.entry.js} +1 -1
  175. package/dist/paperless/{p-0d6f3aa3.entry.js → p-cfbd02e6.entry.js} +1 -1
  176. package/dist/paperless/{p-cbeb58ba.entry.js → p-e907c9d3.entry.js} +1 -1
  177. package/dist/paperless/{p-d9b3ace4.entry.js → p-ee7858e4.entry.js} +1 -1
  178. package/dist/paperless/{p-23cc6b6b.entry.js → p-f1c6f25b.entry.js} +1 -1
  179. package/dist/{build/p-5abcc8d2.entry.js → paperless/p-f5be155f.entry.js} +1 -1
  180. package/dist/paperless/p-xs4N_Y-0.js +1 -0
  181. package/dist/paperless/paperless.esm.js +1 -1
  182. package/dist/sw.js +1 -1
  183. package/dist/sw.js.map +1 -1
  184. package/dist/types/components/molecules/button/button.component.d.ts +1 -1
  185. package/dist/types/components.d.ts +3 -1
  186. package/dist/workbox-d13932f0.js +1 -1
  187. package/dist/workbox-d13932f0.js.map +1 -1
  188. package/hydrate/index.js +75313 -6268
  189. package/hydrate/index.mjs +75313 -6268
  190. package/package.json +10 -11
  191. package/dist/build/p-1f7ab568.entry.js +0 -1
  192. package/dist/build/p-20077155.entry.js +0 -1
  193. package/dist/build/p-3452b2f5.entry.js +0 -3
  194. package/dist/build/p-CT54OXR2.js +0 -1
  195. package/dist/build/p-DGLCmOXW.js +0 -1
  196. package/dist/build/p-KEbntKvf.js +0 -1
  197. package/dist/build/p-b090e928.entry.js +0 -1
  198. package/dist/build/p-bafe9297.entry.js +0 -1
  199. package/dist/cjs/index-DG6V15XP.js +0 -2871
  200. package/dist/components/p-CPpl-J0y.js +0 -1
  201. package/dist/components/p-CT54OXR2.js +0 -1
  202. package/dist/components/p-D4bALv5t.js +0 -1
  203. package/dist/components/p-DGLCmOXW.js +0 -1
  204. package/dist/components/p-DeSgaQxj.js +0 -1
  205. package/dist/esm/index-KEbntKvf.js +0 -2839
  206. package/dist/paperless/p-1f7ab568.entry.js +0 -1
  207. package/dist/paperless/p-20077155.entry.js +0 -1
  208. package/dist/paperless/p-3452b2f5.entry.js +0 -3
  209. package/dist/paperless/p-CT54OXR2.js +0 -1
  210. package/dist/paperless/p-DGLCmOXW.js +0 -1
  211. package/dist/paperless/p-KEbntKvf.js +0 -1
  212. package/dist/paperless/p-b090e928.entry.js +0 -1
  213. package/dist/paperless/p-bafe9297.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, a as createEvent, h } from './index-BDccsg1s.js';
2
2
  import { T as ThemedHost } from './themed-host.component-CLTQ6QFZ.js';
3
- import { c as cn } from './cn-BniKgfyU.js';
3
+ import { c as cn } from './cn-CsNqHcjL.js';
4
4
  import './state-xB9Jw2TG.js';
5
5
  import './clsx-ChV9xqsO.js';
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, a as createEvent, h, F as Fragment } from './index-BDccsg1s.js';
2
2
  import { c as cva } from './index-CO0T2jO4.js';
3
3
  import { h as isTablet, f as isMobile } from './screens-CWO2YJCh.js';
4
- import { c as cn } from './cn-BniKgfyU.js';
4
+ import { c as cn } from './cn-CsNqHcjL.js';
5
5
  import './clsx-ChV9xqsO.js';
6
6
 
7
7
  const attachmentComponentCss = () => `.block{display:block}*{box-sizing:border-box}:host{display:block;width:100%}.static{position:static}.flex{display:flex}.hidden{display:none}.h-8{height:2rem}.w-8{width:2rem}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-negative-red-500{--tw-border-opacity:1;border-color:rgb(230 30 30/var(--tw-border-opacity,1))}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.px-2{padding-left:.5rem;padding-right:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-negative-red-500{--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.empty\\:hidden:empty{display:none}.peer:empty~.peer-empty\\:block{display:block}@media (min-width:64rem){.desktop-xs\\:hidden{display:none}}.dark\\:border-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(255 92 92/var(--tw-border-opacity,1))}.dark\\:border-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(255 92 92/var(--tw-border-opacity,1))}.dark\\:border-white\\/15:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}`;
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h } from './index-BDccsg1s.js';
2
2
  import { c as cva } from './index-CO0T2jO4.js';
3
3
  import { T as ThemedHost } from './themed-host.component-CLTQ6QFZ.js';
4
- import { c as cn } from './cn-BniKgfyU.js';
4
+ import { c as cn } from './cn-CsNqHcjL.js';
5
5
  import { a as asBoolean } from './as-boolean-C5CTp9IA.js';
6
6
  import './clsx-ChV9xqsO.js';
7
7
  import './state-xB9Jw2TG.js';
@@ -2,7 +2,7 @@ import { r as registerInstance, a as createEvent, d as getElement, h } from './i
2
2
  import { c as cva } from './index-CO0T2jO4.js';
3
3
  import { T as ThemedHost } from './themed-host.component-CLTQ6QFZ.js';
4
4
  import { a as asBoolean } from './as-boolean-C5CTp9IA.js';
5
- import { c as cn } from './cn-BniKgfyU.js';
5
+ import { c as cn } from './cn-CsNqHcjL.js';
6
6
  import { i as icons } from './icons-CXVK8SLW.js';
7
7
  import './clsx-ChV9xqsO.js';
8
8
  import './state-xB9Jw2TG.js';
@@ -417,7 +417,7 @@ const Button = class {
417
417
  /**
418
418
  * The tab index to apply to the button
419
419
  */
420
- tabIndex;
420
+ tabIndex = 0;
421
421
  /**
422
422
  * The variant of the button
423
423
  */
@@ -522,7 +522,7 @@ const Button = class {
522
522
  : 'button';
523
523
  const hostClass = cn('p-button inline-block', this.class);
524
524
  const active = asBoolean(this.active) || hostClass?.includes('active');
525
- return (h(ThemedHost, { key: '60d256cfefe040641ad82e5e13a84918995b7575', class: hostClass }, h(VariableTag, { key: '325301c1c4bb3837f9b767326a240abfe57df9d3', disabled: asBoolean(this.disabled), href: this.href, type: this.variant === 'text' ? undefined : this.type, target: this.target, tabIndex: this.tabIndex, class: button({
525
+ return (h(ThemedHost, { key: 'd722dc2f4a1b6890f9237e71576a69281869819e', class: hostClass }, h(VariableTag, { key: 'f7ee981aac94d3119ee53113f905eeebee85d949', disabled: asBoolean(this.disabled), href: this.href, type: this.variant === 'text' ? undefined : this.type, target: this.target, tabIndex: this.tabIndex, class: button({
526
526
  variant: this.variant,
527
527
  size: this.size,
528
528
  loading: asBoolean(this.loading),
@@ -532,14 +532,14 @@ const Button = class {
532
532
  active,
533
533
  error: asBoolean(this.error),
534
534
  underline: asBoolean(this.underline) && VariableTag === 'a',
535
- }) }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: 'bca146628e8b245ed68217572897783b5a2785b1', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.icon &&
535
+ }) }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: '5d728f9ef5694564af375260b2fcf61a1f343aa1', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.icon &&
536
536
  this.iconPosition === 'start' &&
537
537
  !(this.iconOnly && this.loading) &&
538
- this._getIcon(), this.label ?? h("slot", { key: '8062e043413803fb5a66f5c99cb0c19575984429' }), this.icon &&
538
+ this._getIcon(), this.label ?? h("slot", { key: '4b41bfdddcb1285ab343146b5270a02eda0e057d' }), this.icon &&
539
539
  this.iconPosition === 'end' &&
540
540
  !this.loading &&
541
541
  !this.chevron &&
542
- this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: '793e26b051f81801a735d5f643f55ce10f16d9c5', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.loading && h("p-loader", { key: '081b781cc329b17859a538a4dbd8dd711dbed3d1', color: loaderColor }))));
542
+ this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: '618b44895af1a66a0a881476aa18d2b523fb5f61', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.loading && h("p-loader", { key: '3908ba3e9dac14da37e6d028a1022b0cb8be4dec', color: loaderColor }))));
543
543
  }
544
544
  handleClick(ev) {
545
545
  if (this.loading || this.disabled) {
@@ -1,238 +1,11 @@
1
1
  import { r as registerInstance, a as createEvent, h } from './index-BDccsg1s.js';
2
2
  import { c as cva } from './index-CO0T2jO4.js';
3
+ import { d as dateFnsExports, l as localeExports } from './locale-B_lDCj8j.js';
3
4
  import { T as ThemedHost } from './themed-host.component-CLTQ6QFZ.js';
4
5
  import { s as state } from './state-xB9Jw2TG.js';
5
- import { c as cn } from './cn-BniKgfyU.js';
6
- import { r as requiredArgs, t as toDate, c as toInteger, q as isBefore, u as isAfter, p as isValid, z as isSameDay, n as getYear, o as subYears, A as isWeekend, v as format, w as locale, l as locale$1, C as setYear, D as addMonths, B as addYears, x as startOfDay, y as startOfMonth } from './index-KEbntKvf.js';
6
+ import { c as cn } from './cn-CsNqHcjL.js';
7
7
  import './clsx-ChV9xqsO.js';
8
8
 
9
- /**
10
- * @name addDays
11
- * @category Day Helpers
12
- * @summary Add the specified number of days to the given date.
13
- *
14
- * @description
15
- * Add the specified number of days to the given date.
16
- *
17
- * @param {Date|Number} date - the date to be changed
18
- * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
19
- * @returns {Date} - the new date with the days added
20
- * @throws {TypeError} - 2 arguments required
21
- *
22
- * @example
23
- * // Add 10 days to 1 September 2014:
24
- * const result = addDays(new Date(2014, 8, 1), 10)
25
- * //=> Thu Sep 11 2014 00:00:00
26
- */
27
- function addDays(dirtyDate, dirtyAmount) {
28
- requiredArgs(2, arguments);
29
- var date = toDate(dirtyDate);
30
- var amount = toInteger(dirtyAmount);
31
- if (isNaN(amount)) {
32
- return new Date(NaN);
33
- }
34
- if (!amount) {
35
- // If 0 days, no-op to avoid changing times in the hour before end of DST
36
- return date;
37
- }
38
- date.setDate(date.getDate() + amount);
39
- return date;
40
- }
41
-
42
- /**
43
- * @name endOfMonth
44
- * @category Month Helpers
45
- * @summary Return the end of a month for the given date.
46
- *
47
- * @description
48
- * Return the end of a month for the given date.
49
- * The result will be in the local timezone.
50
- *
51
- * @param {Date|Number} date - the original date
52
- * @returns {Date} the end of a month
53
- * @throws {TypeError} 1 argument required
54
- *
55
- * @example
56
- * // The end of a month for 2 September 2014 11:55:00:
57
- * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
58
- * //=> Tue Sep 30 2014 23:59:59.999
59
- */
60
- function endOfMonth(dirtyDate) {
61
- requiredArgs(1, arguments);
62
- var date = toDate(dirtyDate);
63
- var month = date.getMonth();
64
- date.setFullYear(date.getFullYear(), month + 1, 0);
65
- date.setHours(23, 59, 59, 999);
66
- return date;
67
- }
68
-
69
- /**
70
- * @name getDay
71
- * @category Weekday Helpers
72
- * @summary Get the day of the week of the given date.
73
- *
74
- * @description
75
- * Get the day of the week of the given date.
76
- *
77
- * @param {Date|Number} date - the given date
78
- * @returns {0|1|2|3|4|5|6} the day of week, 0 represents Sunday
79
- * @throws {TypeError} 1 argument required
80
- *
81
- * @example
82
- * // Which day of the week is 29 February 2012?
83
- * const result = getDay(new Date(2012, 1, 29))
84
- * //=> 3
85
- */
86
- function getDay(dirtyDate) {
87
- requiredArgs(1, arguments);
88
- var date = toDate(dirtyDate);
89
- var day = date.getDay();
90
- return day;
91
- }
92
-
93
- /**
94
- * @name getDaysInMonth
95
- * @category Month Helpers
96
- * @summary Get the number of days in a month of the given date.
97
- *
98
- * @description
99
- * Get the number of days in a month of the given date.
100
- *
101
- * @param {Date|Number} date - the given date
102
- * @returns {Number} the number of days in a month
103
- * @throws {TypeError} 1 argument required
104
- *
105
- * @example
106
- * // How many days are in February 2000?
107
- * const result = getDaysInMonth(new Date(2000, 1))
108
- * //=> 29
109
- */
110
- function getDaysInMonth(dirtyDate) {
111
- requiredArgs(1, arguments);
112
- var date = toDate(dirtyDate);
113
- var year = date.getFullYear();
114
- var monthIndex = date.getMonth();
115
- var lastDayOfMonth = new Date(0);
116
- lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);
117
- lastDayOfMonth.setHours(0, 0, 0, 0);
118
- return lastDayOfMonth.getDate();
119
- }
120
-
121
- /**
122
- * @name isSameMonth
123
- * @category Month Helpers
124
- * @summary Are the given dates in the same month (and year)?
125
- *
126
- * @description
127
- * Are the given dates in the same month (and year)?
128
- *
129
- * @param {Date|Number} dateLeft - the first date to check
130
- * @param {Date|Number} dateRight - the second date to check
131
- * @returns {Boolean} the dates are in the same month (and year)
132
- * @throws {TypeError} 2 arguments required
133
- *
134
- * @example
135
- * // Are 2 September 2014 and 25 September 2014 in the same month?
136
- * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))
137
- * //=> true
138
- *
139
- * @example
140
- * // Are 2 September 2014 and 25 September 2015 in the same month?
141
- * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))
142
- * //=> false
143
- */
144
- function isSameMonth(dirtyDateLeft, dirtyDateRight) {
145
- requiredArgs(2, arguments);
146
- var dateLeft = toDate(dirtyDateLeft);
147
- var dateRight = toDate(dirtyDateRight);
148
- return dateLeft.getFullYear() === dateRight.getFullYear() && dateLeft.getMonth() === dateRight.getMonth();
149
- }
150
-
151
- /**
152
- * @name isSameYear
153
- * @category Year Helpers
154
- * @summary Are the given dates in the same year?
155
- *
156
- * @description
157
- * Are the given dates in the same year?
158
- *
159
- * @param {Date|Number} dateLeft - the first date to check
160
- * @param {Date|Number} dateRight - the second date to check
161
- * @returns {Boolean} the dates are in the same year
162
- * @throws {TypeError} 2 arguments required
163
- *
164
- * @example
165
- * // Are 2 September 2014 and 25 September 2014 in the same year?
166
- * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25))
167
- * //=> true
168
- */
169
- function isSameYear(dirtyDateLeft, dirtyDateRight) {
170
- requiredArgs(2, arguments);
171
- var dateLeft = toDate(dirtyDateLeft);
172
- var dateRight = toDate(dirtyDateRight);
173
- return dateLeft.getFullYear() === dateRight.getFullYear();
174
- }
175
-
176
- /**
177
- * @name setMonth
178
- * @category Month Helpers
179
- * @summary Set the month to the given date.
180
- *
181
- * @description
182
- * Set the month to the given date.
183
- *
184
- * @param {Date|Number} date - the date to be changed
185
- * @param {Number} month - the month of the new date
186
- * @returns {Date} the new date with the month set
187
- * @throws {TypeError} 2 arguments required
188
- *
189
- * @example
190
- * // Set February to 1 September 2014:
191
- * const result = setMonth(new Date(2014, 8, 1), 1)
192
- * //=> Sat Feb 01 2014 00:00:00
193
- */
194
- function setMonth(dirtyDate, dirtyMonth) {
195
- requiredArgs(2, arguments);
196
- var date = toDate(dirtyDate);
197
- var month = toInteger(dirtyMonth);
198
- var year = date.getFullYear();
199
- var day = date.getDate();
200
- var dateWithDesiredMonth = new Date(0);
201
- dateWithDesiredMonth.setFullYear(year, month, 15);
202
- dateWithDesiredMonth.setHours(0, 0, 0, 0);
203
- var daysInMonth = getDaysInMonth(dateWithDesiredMonth);
204
- // Set the last day of the new month
205
- // if the original date was the last day of the longer month
206
- date.setMonth(month, Math.min(day, daysInMonth));
207
- return date;
208
- }
209
-
210
- /**
211
- * @name setDate
212
- * @category Day Helpers
213
- * @summary Set the day of the month to the given date.
214
- *
215
- * @description
216
- * Set the day of the month to the given date.
217
- *
218
- * @param {Date|Number} date - the date to be changed
219
- * @param {Number} dayOfMonth - the day of the month of the new date
220
- * @returns {Date} the new date with the day of the month set
221
- * @throws {TypeError} 2 arguments required
222
- *
223
- * @example
224
- * // Set the 30th day of the month to 1 September 2014:
225
- * const result = setDate(new Date(2014, 8, 1), 30)
226
- * //=> Tue Sep 30 2014 00:00:00
227
- */
228
- function setDate(dirtyDate, dirtyDayOfMonth) {
229
- requiredArgs(2, arguments);
230
- var date = toDate(dirtyDate);
231
- var dayOfMonth = toInteger(dirtyDayOfMonth);
232
- date.setDate(dayOfMonth);
233
- return date;
234
- }
235
-
236
9
  const calendarComponentCss = () => `*{box-sizing:border-box}.static{position:static}.col-start-1{grid-column-start:1}.col-start-2{grid-column-start:2}.col-start-3{grid-column-start:3}.col-start-4{grid-column-start:4}.col-start-5{grid-column-start:5}.col-start-6{grid-column-start:6}.col-start-7{grid-column-start:7}.ml-auto{margin-left:auto}.flex{display:flex}.grid{display:grid}.h-8{height:2rem}.h-auto{height:auto}.h-full{height:100%}.max-h-\\[15rem\\]{max-height:15rem}.min-h-\\[12rem\\]{min-height:12rem}.min-h-\\[15rem\\]{min-height:15rem}.w-8{width:2rem}.w-\\[17\\.5rem\\]{width:17.5rem}.w-full{width:100%}.flex-1{flex:1 1 0%}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.overflow-scroll{overflow:scroll}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.p-1{padding:.25rem}.p-2{padding:.5rem}.text-center{text-align:center}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-hurricane-200,.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-60{opacity:.6}.drop-shadow-2{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.04)) drop-shadow(0 2px 2px rgba(0,2,2,.04)) drop-shadow(0 4px 4px rgba(0,2,2,.04))}.drop-shadow-2,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:bg-white-600:hover{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.hover\\:text-storm-500:hover{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:border-none:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-style:none}.dark\\:bg-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(163 165 169/var(--tw-bg-opacity,1))}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-hurricane-300:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(116 120 127/var(--tw-bg-opacity,1))}.dark\\:hover\\:text-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-none:where([data-theme=dark],[data-theme=dark] *){border-style:none}.dark\\:bg-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(163 165 169/var(--tw-bg-opacity,1))}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-hurricane-300:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(116 120 127/var(--tw-bg-opacity,1))}.dark\\:hover\\:text-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}`;
237
10
 
238
11
  const calendar = cva(['w-[17.5rem] flex flex-col gap-4'], {
@@ -334,10 +107,10 @@ const Calendar = class {
334
107
  if (this._value) {
335
108
  this._viewDate = this._value;
336
109
  }
337
- if (isBefore(this._viewDate, this._minDate)) {
110
+ if (dateFnsExports.isBefore(this._viewDate, this._minDate)) {
338
111
  this._viewDate = this._minDate;
339
112
  }
340
- if (isAfter(this._viewDate, this._maxDate)) {
113
+ if (dateFnsExports.isAfter(this._viewDate, this._maxDate)) {
341
114
  this._viewDate = this._maxDate;
342
115
  }
343
116
  this._modeChange(this.mode);
@@ -357,24 +130,24 @@ const Calendar = class {
357
130
  if (typeof value === 'string') {
358
131
  value = new Date(value);
359
132
  }
360
- if (isValid(value) && !isSameDay(value, this._viewDate)) {
133
+ if (dateFnsExports.isValid(value) && !dateFnsExports.isSameDay(value, this._viewDate)) {
361
134
  this._viewDate = value;
362
135
  }
363
136
  this._setValue(value);
364
137
  }
365
138
  _parseMinDate(minDate) {
366
139
  if (minDate === null || minDate === '') {
367
- this.minDate = new Date(getYear(subYears(new Date(), 100)), 0, 1);
140
+ this.minDate = new Date(dateFnsExports.getYear(dateFnsExports.subYears(new Date(), 100)), 0, 1);
368
141
  return;
369
142
  }
370
143
  if (typeof minDate === 'string') {
371
144
  minDate = new Date(minDate);
372
145
  }
373
- if (!isValid(minDate)) {
146
+ if (!dateFnsExports.isValid(minDate)) {
374
147
  return;
375
148
  }
376
149
  this._minDate = minDate;
377
- if (isBefore(this._viewDate, this._minDate)) {
150
+ if (dateFnsExports.isBefore(this._viewDate, this._minDate)) {
378
151
  this._viewDate = this._minDate;
379
152
  }
380
153
  }
@@ -386,11 +159,11 @@ const Calendar = class {
386
159
  if (typeof maxDate === 'string') {
387
160
  maxDate = new Date(maxDate);
388
161
  }
389
- if (!isValid(maxDate)) {
162
+ if (!dateFnsExports.isValid(maxDate)) {
390
163
  return;
391
164
  }
392
165
  this._maxDate = maxDate;
393
- if (isAfter(this._viewDate, this._maxDate)) {
166
+ if (dateFnsExports.isAfter(this._viewDate, this._maxDate)) {
394
167
  this._viewDate = this._maxDate;
395
168
  }
396
169
  }
@@ -409,7 +182,7 @@ const Calendar = class {
409
182
  }
410
183
  return date;
411
184
  })
412
- .filter(date => isValid(date));
185
+ .filter(date => dateFnsExports.isValid(date));
413
186
  }
414
187
  _modeChange(mode) {
415
188
  if (mode === 'year' && this._view !== 'year') {
@@ -420,16 +193,16 @@ const Calendar = class {
420
193
  }
421
194
  }
422
195
  render() {
423
- return (h(ThemedHost, { key: 'cb86d89f72df18561c48f1e3f6190e145b82a9f7' }, h("div", { key: '1f3db7e6503b1a3591b0be7877d0e912fe5c4ac2', class: calendar({ variant: this.variant }) }, this._getView())));
196
+ return (h(ThemedHost, { key: '579b8140d5697bdc7fb1dd76017773d313e466eb' }, h("div", { key: 'e642635da9ec396325e0f1829860bc14e6231463', class: calendar({ variant: this.variant }) }, this._getView())));
424
197
  }
425
198
  _checkTodayButton() {
426
- if (this._maxDate && isAfter(this._today, this._maxDate)) {
199
+ if (this._maxDate && dateFnsExports.isAfter(this._today, this._maxDate)) {
427
200
  return false;
428
201
  }
429
- if (this._minDate && isBefore(this._today, this._minDate)) {
202
+ if (this._minDate && dateFnsExports.isBefore(this._today, this._minDate)) {
430
203
  return false;
431
204
  }
432
- if (this.disableWeekends && isWeekend(this._today)) {
205
+ if (this.disableWeekends && dateFnsExports.isWeekend(this._today)) {
433
206
  return false;
434
207
  }
435
208
  if (this.mode !== 'day') {
@@ -451,19 +224,19 @@ const Calendar = class {
451
224
  */
452
225
  _getDayView() {
453
226
  const daysInMonth = this._generateDaysInMonth();
454
- return (h("div", { class: view({ view: 'day' }) }, this._getHeader('day'), h("div", { class: 'grid grid-cols-7 justify-between gap-1' }, this._weekDays.map(weekday => (h("span", { class: 'w-8 text-center text-xs text-storm-200' }, format(addDays(new Date(2022, 7, 1), weekday), state.locale === 'nl' ? 'EEEEEE' : 'eee', {
455
- locale: state.locale === 'nl' ? locale : locale$1,
227
+ return (h("div", { class: view({ view: 'day' }) }, this._getHeader('day'), h("div", { class: 'grid grid-cols-7 justify-between gap-1' }, this._weekDays.map(weekday => (h("span", { class: 'w-8 text-center text-xs text-storm-200' }, dateFnsExports.format(dateFnsExports.addDays(new Date(2022, 7, 1), weekday), state.locale === 'nl' ? 'EEEEEE' : 'eee', {
228
+ locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
456
229
  })))), daysInMonth.map(day => day.active ? (h("p-button", { variant: 'primary', tabIndex: -1, class: cn('w-8', `col-start-${day.offset}`), onClick: () => this._setValue(day.date) }, day.day)) : (h("time", { class: cn('normal flex items-center justify-center rounded-lg', 'h-8 w-8 text-sm font-semibold', 'text-storm-300', 'dark:bg-white/15', {
457
230
  'cursor-pointer hover:bg-white-600 hover:text-storm-500 dark:text-white dark:hover:bg-hurricane-300 dark:hover:text-white': !day.disabled,
458
231
  'dark:text-hurricane-200': day.disabled,
459
232
  }, `col-start-${day.offset}`, { 'cursor-not-allowed opacity-60': day.disabled }, {
460
- 'border border-solid border-off-white-700 bg-off-white-300 text-storm-500 dark:border-none dark:bg-hurricane-200 dark:text-white': !day.disabled && isSameDay(day.date, new Date()),
233
+ 'border border-solid border-off-white-700 bg-off-white-300 text-storm-500 dark:border-none dark:bg-hurricane-200 dark:text-white': !day.disabled && dateFnsExports.isSameDay(day.date, new Date()),
461
234
  }), onClick: () => this._setValue(day.date) }, day.day))))));
462
235
  }
463
236
  _getMonthView() {
464
237
  const months = this._generateMonths();
465
- return (h("div", { class: view({ view: 'month' }) }, this._getHeader('month'), h("div", { class: 'flex flex-wrap items-start gap-2' }, months.map(month => (h("p-button", { variant: month.active ? 'primary' : 'secondary', tabIndex: -1, disabled: month.disabled, onClick: () => this._setMonth(month.month) }, format(setMonth(new Date(), month.month), 'MMMM', {
466
- locale: state.locale === 'nl' ? locale : locale$1,
238
+ return (h("div", { class: view({ view: 'month' }) }, this._getHeader('month'), h("div", { class: 'flex flex-wrap items-start gap-2' }, months.map(month => (h("p-button", { variant: month.active ? 'primary' : 'secondary', tabIndex: -1, disabled: month.disabled, onClick: () => this._setMonth(month.month) }, dateFnsExports.format(dateFnsExports.setMonth(new Date(), month.month), 'MMMM', {
239
+ locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
467
240
  })))))));
468
241
  }
469
242
  _getYearView() {
@@ -479,29 +252,29 @@ const Calendar = class {
479
252
  }
480
253
  return (h("div", { class: header({ type: this.mode }) }, this.mode !== 'year' && (h("p-button", { variant: 'secondary', iconOnly: true, icon: 'caret', iconRotate: 90, tabIndex: -1, size: 'sm', onClick: () => nextFn(-1), disabled: !this._canSetAmount(nextType, -1) || this._view === 'year' })), h("div", { class: cn('flex gap-2', {
481
254
  'flex-1': this._enableToday,
482
- }) }, this.mode !== 'year' && (h("p-button", { variant: 'secondary', size: 'sm', tabIndex: -1, onClick: () => this._changeView('month'), disabled: !this._canChangeView('month'), active: this._view === 'month' && this.mode !== 'month' }, format(this._viewDate, 'MMMM', {
483
- locale: state.locale === 'nl' ? locale : locale$1,
484
- }))), h("p-button", { variant: 'secondary', size: 'sm', tabIndex: -1, onClick: () => this._changeView('year'), disabled: !this._canChangeView('year'), active: this._view === 'year' && this.mode !== 'year' }, getYear(this._viewDate)), this._enableToday && (h("p-tooltip", { class: 'ml-auto', content: this.todayText }, h("p-button", { variant: 'secondary', size: 'sm', icon: 'calendar', slot: 'trigger', tabIndex: -1, iconOnly: true, onClick: () => this._setToday() })))), this.mode !== 'year' && (h("p-button", { variant: 'secondary', iconOnly: true, icon: 'caret', iconRotate: -90, tabIndex: -1, size: 'sm', onClick: () => nextFn(1), disabled: !this._canSetAmount(nextType, 1) || this._view == 'year' }))));
255
+ }) }, this.mode !== 'year' && (h("p-button", { variant: 'secondary', size: 'sm', tabIndex: -1, onClick: () => this._changeView('month'), disabled: !this._canChangeView('month'), active: this._view === 'month' && this.mode !== 'month' }, dateFnsExports.format(this._viewDate, 'MMMM', {
256
+ locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
257
+ }))), h("p-button", { variant: 'secondary', size: 'sm', tabIndex: -1, onClick: () => this._changeView('year'), disabled: !this._canChangeView('year'), active: this._view === 'year' && this.mode !== 'year' }, dateFnsExports.getYear(this._viewDate)), this._enableToday && (h("p-tooltip", { class: 'ml-auto', content: this.todayText }, h("p-button", { variant: 'secondary', size: 'sm', icon: 'calendar', slot: 'trigger', tabIndex: -1, iconOnly: true, onClick: () => this._setToday() })))), this.mode !== 'year' && (h("p-button", { variant: 'secondary', iconOnly: true, icon: 'caret', iconRotate: -90, tabIndex: -1, size: 'sm', onClick: () => nextFn(1), disabled: !this._canSetAmount(nextType, 1) || this._view == 'year' }))));
485
258
  }
486
259
  _setYear(year) {
487
- const date = setYear(this._viewDate, year);
260
+ const date = dateFnsExports.setYear(this._viewDate, year);
488
261
  if (this.mode !== 'year') {
489
262
  this._viewDate = date;
490
263
  this._view = 'month';
491
264
  return;
492
265
  }
493
266
  this._viewDate = date;
494
- this._setValue(setMonth(setDate(date, 1), 0));
267
+ this._setValue(dateFnsExports.setMonth(dateFnsExports.setDate(date, 1), 0));
495
268
  }
496
269
  _setMonth(month) {
497
- const date = setMonth(this._viewDate, month);
270
+ const date = dateFnsExports.setMonth(this._viewDate, month);
498
271
  if (this.mode === 'day') {
499
272
  this._viewDate = date;
500
273
  this._view = 'day';
501
274
  return;
502
275
  }
503
276
  this._viewDate = date;
504
- this._setValue(setDate(date, 1));
277
+ this._setValue(dateFnsExports.setDate(date, 1));
505
278
  }
506
279
  _setToday() {
507
280
  this._viewDate = this._today;
@@ -513,7 +286,7 @@ const Calendar = class {
513
286
  if (!allowed) {
514
287
  return;
515
288
  }
516
- const newDate = addMonths(this._viewDate, amount);
289
+ const newDate = dateFnsExports.addMonths(this._viewDate, amount);
517
290
  this._viewDate = newDate;
518
291
  }
519
292
  _changeYear(amount = 1) {
@@ -521,7 +294,7 @@ const Calendar = class {
521
294
  if (!allowed) {
522
295
  return;
523
296
  }
524
- let newDate = addYears(this._viewDate, amount);
297
+ let newDate = dateFnsExports.addYears(this._viewDate, amount);
525
298
  this._viewDate = newDate;
526
299
  }
527
300
  _setValue(value) {
@@ -530,14 +303,14 @@ const Calendar = class {
530
303
  this.valueChange.emit(null);
531
304
  return;
532
305
  }
533
- if (!isValid(value)) {
306
+ if (!dateFnsExports.isValid(value)) {
534
307
  return;
535
308
  }
536
309
  if (this._isDisabledDay(value)) {
537
310
  return;
538
311
  }
539
- value = startOfDay(value);
540
- const isSameValue = isSameDay(value, this._value);
312
+ value = dateFnsExports.startOfDay(value);
313
+ const isSameValue = dateFnsExports.isSameDay(value, this._value);
541
314
  if (isSameValue) {
542
315
  return;
543
316
  }
@@ -546,51 +319,51 @@ const Calendar = class {
546
319
  }
547
320
  _generateDaysInMonth() {
548
321
  // eslint-disable-next-line unicorn/no-new-array
549
- const days = [...new Array(getDaysInMonth(this._viewDate)).keys()];
322
+ const days = [...new Array(dateFnsExports.getDaysInMonth(this._viewDate)).keys()];
550
323
  return days.map(day => {
551
324
  day = day + 1;
552
- const date = startOfDay(setDate(this._viewDate, day));
553
- const dayOfWeek = getDay(date);
325
+ const date = dateFnsExports.startOfDay(dateFnsExports.setDate(this._viewDate, day));
326
+ const dayOfWeek = dateFnsExports.getDay(date);
554
327
  return {
555
328
  day,
556
329
  date,
557
330
  offset: day === 1 ? (dayOfWeek === 0 ? 7 : dayOfWeek) : false,
558
- current: isSameDay(date, this._today),
559
- active: isSameDay(date, this._value),
331
+ current: dateFnsExports.isSameDay(date, this._today),
332
+ active: dateFnsExports.isSameDay(date, this._value),
560
333
  disabled: this._isDisabledDay(date),
561
334
  };
562
335
  });
563
336
  }
564
337
  _isDisabledDay(day) {
565
- return ((isBefore(day, this._minDate) && !isSameDay(day, this._maxDate)) ||
566
- (isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||
567
- ((getDay(day) === 0 || getDay(day) === 6) && this.disableWeekends) ||
568
- this._disabledDates.some(date => isSameDay(date, day)));
338
+ return ((dateFnsExports.isBefore(day, this._minDate) && !dateFnsExports.isSameDay(day, this._maxDate)) ||
339
+ (dateFnsExports.isAfter(day, this._maxDate) && !dateFnsExports.isSameDay(day, this._maxDate)) ||
340
+ ((dateFnsExports.getDay(day) === 0 || dateFnsExports.getDay(day) === 6) && this.disableWeekends) ||
341
+ this._disabledDates.some(date => dateFnsExports.isSameDay(date, day)));
569
342
  }
570
343
  _generateMonths() {
571
- const year = getYear(this._viewDate);
344
+ const year = dateFnsExports.getYear(this._viewDate);
572
345
  const months = [...Array.from({ length: 12 }).keys()];
573
346
  return months.map(month => {
574
347
  const date = new Date(year, month, 1);
575
348
  return {
576
349
  month,
577
- current: isSameMonth(this._today, date),
578
- active: isSameMonth(this._value, date),
579
- disabled: isAfter(date, this._maxDate) ||
580
- isBefore(endOfMonth(date), this._minDate),
350
+ current: dateFnsExports.isSameMonth(this._today, date),
351
+ active: dateFnsExports.isSameMonth(this._value, date),
352
+ disabled: dateFnsExports.isAfter(date, this._maxDate) ||
353
+ dateFnsExports.isBefore(dateFnsExports.endOfMonth(date), this._minDate),
581
354
  };
582
355
  });
583
356
  }
584
357
  _generateYears() {
585
- const maxYear = getYear(this._maxDate) + 1;
586
- const minYear = getYear(this._minDate);
358
+ const maxYear = dateFnsExports.getYear(this._maxDate) + 1;
359
+ const minYear = dateFnsExports.getYear(this._minDate);
587
360
  // eslint-disable-next-line unicorn/no-new-array
588
361
  return [...new Array(maxYear - minYear).keys()].map(index => {
589
362
  const year = minYear + index;
590
363
  return {
591
364
  year,
592
- current: getYear(this._today) === year,
593
- active: getYear(this._value) === year,
365
+ current: dateFnsExports.getYear(this._today) === year,
366
+ active: dateFnsExports.getYear(this._value) === year,
594
367
  };
595
368
  });
596
369
  }
@@ -620,40 +393,40 @@ const Calendar = class {
620
393
  }
621
394
  _canChangeView(view) {
622
395
  if (view === 'year') {
623
- if (isSameYear(this._minDate, this._maxDate)) {
396
+ if (dateFnsExports.isSameYear(this._minDate, this._maxDate)) {
624
397
  return false;
625
398
  }
626
399
  return true;
627
400
  }
628
- if (isSameMonth(this._minDate, this._maxDate)) {
401
+ if (dateFnsExports.isSameMonth(this._minDate, this._maxDate)) {
629
402
  return false;
630
403
  }
631
404
  return true;
632
405
  }
633
406
  _canSetAmount(type, amount = 1) {
634
407
  if (type === 'month') {
635
- const newDate = addMonths(this._viewDate, amount);
636
- const startNewDate = startOfMonth(newDate);
637
- if ((isBefore(startNewDate, startOfMonth(this._minDate)) &&
638
- !isSameDay(startNewDate, this._minDate)) ||
639
- isAfter(startNewDate, endOfMonth(this._maxDate))) {
408
+ const newDate = dateFnsExports.addMonths(this._viewDate, amount);
409
+ const startNewDate = dateFnsExports.startOfMonth(newDate);
410
+ if ((dateFnsExports.isBefore(startNewDate, dateFnsExports.startOfMonth(this._minDate)) &&
411
+ !dateFnsExports.isSameDay(startNewDate, this._minDate)) ||
412
+ dateFnsExports.isAfter(startNewDate, dateFnsExports.endOfMonth(this._maxDate))) {
640
413
  return false;
641
414
  }
642
415
  }
643
416
  if (type === 'year') {
644
- let newDate = addYears(this._viewDate, amount);
645
- const year = getYear(newDate);
646
- if (year < getYear(this._minDate) || year > getYear(this._maxDate)) {
417
+ let newDate = dateFnsExports.addYears(this._viewDate, amount);
418
+ const year = dateFnsExports.getYear(newDate);
419
+ if (year < dateFnsExports.getYear(this._minDate) || year > dateFnsExports.getYear(this._maxDate)) {
647
420
  return false;
648
421
  }
649
422
  }
650
423
  return true;
651
424
  }
652
425
  _getAutomaticMax() {
653
- const date = addYears(new Date(), 50);
654
- let year = getYear(date);
426
+ const date = dateFnsExports.addYears(new Date(), 50);
427
+ let year = dateFnsExports.getYear(date);
655
428
  year = Math.ceil(year / 10) * 10;
656
- return setYear(date, year);
429
+ return dateFnsExports.setYear(date, year);
657
430
  }
658
431
  static get watchers() { return {
659
432
  "value": [{
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h } from './index-BDccsg1s.js';
2
2
  import { c as cva } from './index-CO0T2jO4.js';
3
3
  import { T as ThemedHost } from './themed-host.component-CLTQ6QFZ.js';
4
- import { c as cn } from './cn-BniKgfyU.js';
4
+ import { c as cn } from './cn-CsNqHcjL.js';
5
5
  import { a as asBoolean } from './as-boolean-C5CTp9IA.js';
6
6
  import './clsx-ChV9xqsO.js';
7
7
  import './state-xB9Jw2TG.js';
@@ -3,9 +3,9 @@ import { c as cva } from './index-CO0T2jO4.js';
3
3
  import { T as ThemedHost } from './themed-host.component-CLTQ6QFZ.js';
4
4
  import { a as asBoolean } from './as-boolean-C5CTp9IA.js';
5
5
  import { n as nonce } from './nonce-D9kEjsvZ.js';
6
- import { a as autoUpdate, c as computePosition, o as offset, f as flip, s as shift } from './floating-ui.dom-DGLCmOXW.js';
6
+ import { a as autoUpdate, c as computePosition, o as offset, f as flip, s as shift } from './floating-ui.dom-CeBIrPPx.js';
7
7
  import { a as childOfComposed } from './child-of-TyZ7uPES.js';
8
- import { c as cn } from './cn-BniKgfyU.js';
8
+ import { c as cn } from './cn-CsNqHcjL.js';
9
9
  import './clsx-ChV9xqsO.js';
10
10
  import './state-xB9Jw2TG.js';
11
11