@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,243 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var index$1 = require('./index-CcocepA-.js');
4
- var index$2 = require('./index-mudu9vpz.js');
3
+ var index = require('./index-CcocepA-.js');
4
+ var index$1 = require('./index-mudu9vpz.js');
5
+ var locale = require('./locale-BIZDGOk_.js');
5
6
  var themedHost_component = require('./themed-host.component-BSIZm-L8.js');
6
7
  var state = require('./state-BseAB3i4.js');
7
- var cn = require('./cn-BGmLaIp8.js');
8
- var index = require('./index-DG6V15XP.js');
8
+ var cn = require('./cn-Cd68UVBT.js');
9
9
  require('./clsx-BtxeOLZW.js');
10
10
 
11
- /**
12
- * @name addDays
13
- * @category Day Helpers
14
- * @summary Add the specified number of days to the given date.
15
- *
16
- * @description
17
- * Add the specified number of days to the given date.
18
- *
19
- * @param {Date|Number} date - the date to be changed
20
- * @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`.
21
- * @returns {Date} - the new date with the days added
22
- * @throws {TypeError} - 2 arguments required
23
- *
24
- * @example
25
- * // Add 10 days to 1 September 2014:
26
- * const result = addDays(new Date(2014, 8, 1), 10)
27
- * //=> Thu Sep 11 2014 00:00:00
28
- */
29
- function addDays(dirtyDate, dirtyAmount) {
30
- index.requiredArgs(2, arguments);
31
- var date = index.toDate(dirtyDate);
32
- var amount = index.toInteger(dirtyAmount);
33
- if (isNaN(amount)) {
34
- return new Date(NaN);
35
- }
36
- if (!amount) {
37
- // If 0 days, no-op to avoid changing times in the hour before end of DST
38
- return date;
39
- }
40
- date.setDate(date.getDate() + amount);
41
- return date;
42
- }
43
-
44
- /**
45
- * @name endOfMonth
46
- * @category Month Helpers
47
- * @summary Return the end of a month for the given date.
48
- *
49
- * @description
50
- * Return the end of a month for the given date.
51
- * The result will be in the local timezone.
52
- *
53
- * @param {Date|Number} date - the original date
54
- * @returns {Date} the end of a month
55
- * @throws {TypeError} 1 argument required
56
- *
57
- * @example
58
- * // The end of a month for 2 September 2014 11:55:00:
59
- * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
60
- * //=> Tue Sep 30 2014 23:59:59.999
61
- */
62
- function endOfMonth(dirtyDate) {
63
- index.requiredArgs(1, arguments);
64
- var date = index.toDate(dirtyDate);
65
- var month = date.getMonth();
66
- date.setFullYear(date.getFullYear(), month + 1, 0);
67
- date.setHours(23, 59, 59, 999);
68
- return date;
69
- }
70
-
71
- /**
72
- * @name getDay
73
- * @category Weekday Helpers
74
- * @summary Get the day of the week of the given date.
75
- *
76
- * @description
77
- * Get the day of the week of the given date.
78
- *
79
- * @param {Date|Number} date - the given date
80
- * @returns {0|1|2|3|4|5|6} the day of week, 0 represents Sunday
81
- * @throws {TypeError} 1 argument required
82
- *
83
- * @example
84
- * // Which day of the week is 29 February 2012?
85
- * const result = getDay(new Date(2012, 1, 29))
86
- * //=> 3
87
- */
88
- function getDay(dirtyDate) {
89
- index.requiredArgs(1, arguments);
90
- var date = index.toDate(dirtyDate);
91
- var day = date.getDay();
92
- return day;
93
- }
94
-
95
- /**
96
- * @name getDaysInMonth
97
- * @category Month Helpers
98
- * @summary Get the number of days in a month of the given date.
99
- *
100
- * @description
101
- * Get the number of days in a month of the given date.
102
- *
103
- * @param {Date|Number} date - the given date
104
- * @returns {Number} the number of days in a month
105
- * @throws {TypeError} 1 argument required
106
- *
107
- * @example
108
- * // How many days are in February 2000?
109
- * const result = getDaysInMonth(new Date(2000, 1))
110
- * //=> 29
111
- */
112
- function getDaysInMonth(dirtyDate) {
113
- index.requiredArgs(1, arguments);
114
- var date = index.toDate(dirtyDate);
115
- var year = date.getFullYear();
116
- var monthIndex = date.getMonth();
117
- var lastDayOfMonth = new Date(0);
118
- lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);
119
- lastDayOfMonth.setHours(0, 0, 0, 0);
120
- return lastDayOfMonth.getDate();
121
- }
122
-
123
- /**
124
- * @name isSameMonth
125
- * @category Month Helpers
126
- * @summary Are the given dates in the same month (and year)?
127
- *
128
- * @description
129
- * Are the given dates in the same month (and year)?
130
- *
131
- * @param {Date|Number} dateLeft - the first date to check
132
- * @param {Date|Number} dateRight - the second date to check
133
- * @returns {Boolean} the dates are in the same month (and year)
134
- * @throws {TypeError} 2 arguments required
135
- *
136
- * @example
137
- * // Are 2 September 2014 and 25 September 2014 in the same month?
138
- * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))
139
- * //=> true
140
- *
141
- * @example
142
- * // Are 2 September 2014 and 25 September 2015 in the same month?
143
- * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))
144
- * //=> false
145
- */
146
- function isSameMonth(dirtyDateLeft, dirtyDateRight) {
147
- index.requiredArgs(2, arguments);
148
- var dateLeft = index.toDate(dirtyDateLeft);
149
- var dateRight = index.toDate(dirtyDateRight);
150
- return dateLeft.getFullYear() === dateRight.getFullYear() && dateLeft.getMonth() === dateRight.getMonth();
151
- }
152
-
153
- /**
154
- * @name isSameYear
155
- * @category Year Helpers
156
- * @summary Are the given dates in the same year?
157
- *
158
- * @description
159
- * Are the given dates in the same year?
160
- *
161
- * @param {Date|Number} dateLeft - the first date to check
162
- * @param {Date|Number} dateRight - the second date to check
163
- * @returns {Boolean} the dates are in the same year
164
- * @throws {TypeError} 2 arguments required
165
- *
166
- * @example
167
- * // Are 2 September 2014 and 25 September 2014 in the same year?
168
- * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25))
169
- * //=> true
170
- */
171
- function isSameYear(dirtyDateLeft, dirtyDateRight) {
172
- index.requiredArgs(2, arguments);
173
- var dateLeft = index.toDate(dirtyDateLeft);
174
- var dateRight = index.toDate(dirtyDateRight);
175
- return dateLeft.getFullYear() === dateRight.getFullYear();
176
- }
177
-
178
- /**
179
- * @name setMonth
180
- * @category Month Helpers
181
- * @summary Set the month to the given date.
182
- *
183
- * @description
184
- * Set the month to the given date.
185
- *
186
- * @param {Date|Number} date - the date to be changed
187
- * @param {Number} month - the month of the new date
188
- * @returns {Date} the new date with the month set
189
- * @throws {TypeError} 2 arguments required
190
- *
191
- * @example
192
- * // Set February to 1 September 2014:
193
- * const result = setMonth(new Date(2014, 8, 1), 1)
194
- * //=> Sat Feb 01 2014 00:00:00
195
- */
196
- function setMonth(dirtyDate, dirtyMonth) {
197
- index.requiredArgs(2, arguments);
198
- var date = index.toDate(dirtyDate);
199
- var month = index.toInteger(dirtyMonth);
200
- var year = date.getFullYear();
201
- var day = date.getDate();
202
- var dateWithDesiredMonth = new Date(0);
203
- dateWithDesiredMonth.setFullYear(year, month, 15);
204
- dateWithDesiredMonth.setHours(0, 0, 0, 0);
205
- var daysInMonth = getDaysInMonth(dateWithDesiredMonth);
206
- // Set the last day of the new month
207
- // if the original date was the last day of the longer month
208
- date.setMonth(month, Math.min(day, daysInMonth));
209
- return date;
210
- }
211
-
212
- /**
213
- * @name setDate
214
- * @category Day Helpers
215
- * @summary Set the day of the month to the given date.
216
- *
217
- * @description
218
- * Set the day of the month to the given date.
219
- *
220
- * @param {Date|Number} date - the date to be changed
221
- * @param {Number} dayOfMonth - the day of the month of the new date
222
- * @returns {Date} the new date with the day of the month set
223
- * @throws {TypeError} 2 arguments required
224
- *
225
- * @example
226
- * // Set the 30th day of the month to 1 September 2014:
227
- * const result = setDate(new Date(2014, 8, 1), 30)
228
- * //=> Tue Sep 30 2014 00:00:00
229
- */
230
- function setDate(dirtyDate, dirtyDayOfMonth) {
231
- index.requiredArgs(2, arguments);
232
- var date = index.toDate(dirtyDate);
233
- var dayOfMonth = index.toInteger(dirtyDayOfMonth);
234
- date.setDate(dayOfMonth);
235
- return date;
236
- }
237
-
238
11
  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))}`;
239
12
 
240
- const calendar = index$2.cva(['w-[17.5rem] flex flex-col gap-4'], {
13
+ const calendar = index$1.cva(['w-[17.5rem] flex flex-col gap-4'], {
241
14
  variants: {
242
15
  variant: {
243
16
  default: ['p-2 rounded-lg drop-shadow-2', 'border border-storm-100'],
@@ -245,7 +18,7 @@ const calendar = index$2.cva(['w-[17.5rem] flex flex-col gap-4'], {
245
18
  },
246
19
  },
247
20
  });
248
- const header = index$2.cva([
21
+ const header = index$1.cva([
249
22
  'flex items-center gap-2',
250
23
  'w-full p-2 rounded-lg',
251
24
  'bg-off-white-300 dark:bg-white/15',
@@ -258,7 +31,7 @@ const header = index$2.cva([
258
31
  },
259
32
  },
260
33
  });
261
- const view = index$2.cva(['flex flex-col gap-2', 'w-full'], {
34
+ const view = index$1.cva(['flex flex-col gap-2', 'w-full'], {
262
35
  variants: {
263
36
  view: {
264
37
  day: 'h-auto min-h-[12rem]',
@@ -269,8 +42,8 @@ const view = index$2.cva(['flex flex-col gap-2', 'w-full'], {
269
42
  });
270
43
  const Calendar = class {
271
44
  constructor(hostRef) {
272
- index$1.registerInstance(this, hostRef);
273
- this.valueChange = index$1.createEvent(this, "valueChange", 3);
45
+ index.registerInstance(this, hostRef);
46
+ this.valueChange = index.createEvent(this, "valueChange", 3);
274
47
  }
275
48
  /**
276
49
  * The variant of the button
@@ -336,10 +109,10 @@ const Calendar = class {
336
109
  if (this._value) {
337
110
  this._viewDate = this._value;
338
111
  }
339
- if (index.isBefore(this._viewDate, this._minDate)) {
112
+ if (locale.dateFnsExports.isBefore(this._viewDate, this._minDate)) {
340
113
  this._viewDate = this._minDate;
341
114
  }
342
- if (index.isAfter(this._viewDate, this._maxDate)) {
115
+ if (locale.dateFnsExports.isAfter(this._viewDate, this._maxDate)) {
343
116
  this._viewDate = this._maxDate;
344
117
  }
345
118
  this._modeChange(this.mode);
@@ -359,24 +132,24 @@ const Calendar = class {
359
132
  if (typeof value === 'string') {
360
133
  value = new Date(value);
361
134
  }
362
- if (index.isValid(value) && !index.isSameDay(value, this._viewDate)) {
135
+ if (locale.dateFnsExports.isValid(value) && !locale.dateFnsExports.isSameDay(value, this._viewDate)) {
363
136
  this._viewDate = value;
364
137
  }
365
138
  this._setValue(value);
366
139
  }
367
140
  _parseMinDate(minDate) {
368
141
  if (minDate === null || minDate === '') {
369
- this.minDate = new Date(index.getYear(index.subYears(new Date(), 100)), 0, 1);
142
+ this.minDate = new Date(locale.dateFnsExports.getYear(locale.dateFnsExports.subYears(new Date(), 100)), 0, 1);
370
143
  return;
371
144
  }
372
145
  if (typeof minDate === 'string') {
373
146
  minDate = new Date(minDate);
374
147
  }
375
- if (!index.isValid(minDate)) {
148
+ if (!locale.dateFnsExports.isValid(minDate)) {
376
149
  return;
377
150
  }
378
151
  this._minDate = minDate;
379
- if (index.isBefore(this._viewDate, this._minDate)) {
152
+ if (locale.dateFnsExports.isBefore(this._viewDate, this._minDate)) {
380
153
  this._viewDate = this._minDate;
381
154
  }
382
155
  }
@@ -388,11 +161,11 @@ const Calendar = class {
388
161
  if (typeof maxDate === 'string') {
389
162
  maxDate = new Date(maxDate);
390
163
  }
391
- if (!index.isValid(maxDate)) {
164
+ if (!locale.dateFnsExports.isValid(maxDate)) {
392
165
  return;
393
166
  }
394
167
  this._maxDate = maxDate;
395
- if (index.isAfter(this._viewDate, this._maxDate)) {
168
+ if (locale.dateFnsExports.isAfter(this._viewDate, this._maxDate)) {
396
169
  this._viewDate = this._maxDate;
397
170
  }
398
171
  }
@@ -411,7 +184,7 @@ const Calendar = class {
411
184
  }
412
185
  return date;
413
186
  })
414
- .filter(date => index.isValid(date));
187
+ .filter(date => locale.dateFnsExports.isValid(date));
415
188
  }
416
189
  _modeChange(mode) {
417
190
  if (mode === 'year' && this._view !== 'year') {
@@ -422,16 +195,16 @@ const Calendar = class {
422
195
  }
423
196
  }
424
197
  render() {
425
- return (index$1.h(themedHost_component.ThemedHost, { key: 'cb86d89f72df18561c48f1e3f6190e145b82a9f7' }, index$1.h("div", { key: '1f3db7e6503b1a3591b0be7877d0e912fe5c4ac2', class: calendar({ variant: this.variant }) }, this._getView())));
198
+ return (index.h(themedHost_component.ThemedHost, { key: '579b8140d5697bdc7fb1dd76017773d313e466eb' }, index.h("div", { key: 'e642635da9ec396325e0f1829860bc14e6231463', class: calendar({ variant: this.variant }) }, this._getView())));
426
199
  }
427
200
  _checkTodayButton() {
428
- if (this._maxDate && index.isAfter(this._today, this._maxDate)) {
201
+ if (this._maxDate && locale.dateFnsExports.isAfter(this._today, this._maxDate)) {
429
202
  return false;
430
203
  }
431
- if (this._minDate && index.isBefore(this._today, this._minDate)) {
204
+ if (this._minDate && locale.dateFnsExports.isBefore(this._today, this._minDate)) {
432
205
  return false;
433
206
  }
434
- if (this.disableWeekends && index.isWeekend(this._today)) {
207
+ if (this.disableWeekends && locale.dateFnsExports.isWeekend(this._today)) {
435
208
  return false;
436
209
  }
437
210
  if (this.mode !== 'day') {
@@ -453,24 +226,24 @@ const Calendar = class {
453
226
  */
454
227
  _getDayView() {
455
228
  const daysInMonth = this._generateDaysInMonth();
456
- return (index$1.h("div", { class: view({ view: 'day' }) }, this._getHeader('day'), index$1.h("div", { class: 'grid grid-cols-7 justify-between gap-1' }, this._weekDays.map(weekday => (index$1.h("span", { class: 'w-8 text-center text-xs text-storm-200' }, index.format(addDays(new Date(2022, 7, 1), weekday), state.state.locale === 'nl' ? 'EEEEEE' : 'eee', {
457
- locale: state.state.locale === 'nl' ? index.locale$1 : index.locale,
458
- })))), daysInMonth.map(day => day.active ? (index$1.h("p-button", { variant: 'primary', tabIndex: -1, class: cn.cn('w-8', `col-start-${day.offset}`), onClick: () => this._setValue(day.date) }, day.day)) : (index$1.h("time", { class: cn.cn('normal flex items-center justify-center rounded-lg', 'h-8 w-8 text-sm font-semibold', 'text-storm-300', 'dark:bg-white/15', {
229
+ return (index.h("div", { class: view({ view: 'day' }) }, this._getHeader('day'), index.h("div", { class: 'grid grid-cols-7 justify-between gap-1' }, this._weekDays.map(weekday => (index.h("span", { class: 'w-8 text-center text-xs text-storm-200' }, locale.dateFnsExports.format(locale.dateFnsExports.addDays(new Date(2022, 7, 1), weekday), state.state.locale === 'nl' ? 'EEEEEE' : 'eee', {
230
+ locale: state.state.locale === 'nl' ? locale.localeExports.nl : locale.localeExports.enUS,
231
+ })))), daysInMonth.map(day => day.active ? (index.h("p-button", { variant: 'primary', tabIndex: -1, class: cn.cn('w-8', `col-start-${day.offset}`), onClick: () => this._setValue(day.date) }, day.day)) : (index.h("time", { class: cn.cn('normal flex items-center justify-center rounded-lg', 'h-8 w-8 text-sm font-semibold', 'text-storm-300', 'dark:bg-white/15', {
459
232
  'cursor-pointer hover:bg-white-600 hover:text-storm-500 dark:text-white dark:hover:bg-hurricane-300 dark:hover:text-white': !day.disabled,
460
233
  'dark:text-hurricane-200': day.disabled,
461
234
  }, `col-start-${day.offset}`, { 'cursor-not-allowed opacity-60': day.disabled }, {
462
- '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 && index.isSameDay(day.date, new Date()),
235
+ '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 && locale.dateFnsExports.isSameDay(day.date, new Date()),
463
236
  }), onClick: () => this._setValue(day.date) }, day.day))))));
464
237
  }
465
238
  _getMonthView() {
466
239
  const months = this._generateMonths();
467
- return (index$1.h("div", { class: view({ view: 'month' }) }, this._getHeader('month'), index$1.h("div", { class: 'flex flex-wrap items-start gap-2' }, months.map(month => (index$1.h("p-button", { variant: month.active ? 'primary' : 'secondary', tabIndex: -1, disabled: month.disabled, onClick: () => this._setMonth(month.month) }, index.format(setMonth(new Date(), month.month), 'MMMM', {
468
- locale: state.state.locale === 'nl' ? index.locale$1 : index.locale,
240
+ return (index.h("div", { class: view({ view: 'month' }) }, this._getHeader('month'), index.h("div", { class: 'flex flex-wrap items-start gap-2' }, months.map(month => (index.h("p-button", { variant: month.active ? 'primary' : 'secondary', tabIndex: -1, disabled: month.disabled, onClick: () => this._setMonth(month.month) }, locale.dateFnsExports.format(locale.dateFnsExports.setMonth(new Date(), month.month), 'MMMM', {
241
+ locale: state.state.locale === 'nl' ? locale.localeExports.nl : locale.localeExports.enUS,
469
242
  })))))));
470
243
  }
471
244
  _getYearView() {
472
245
  const years = this._generateYears();
473
- return (index$1.h("div", { class: view({ view: 'year' }) }, this._getHeader('year'), index$1.h("div", { class: 'grid h-full grid-cols-4 gap-2 overflow-scroll', ref: ref => (this._yearItemsRef = ref) }, years.map(year => (index$1.h("p-button", { class: 'w-full', variant: year.active ? 'primary' : 'secondary', tabIndex: -1, onClick: () => this._setYear(year.year), "data-active": year.active, "data-current": year.current }, year.year))))));
246
+ return (index.h("div", { class: view({ view: 'year' }) }, this._getHeader('year'), index.h("div", { class: 'grid h-full grid-cols-4 gap-2 overflow-scroll', ref: ref => (this._yearItemsRef = ref) }, years.map(year => (index.h("p-button", { class: 'w-full', variant: year.active ? 'primary' : 'secondary', tabIndex: -1, onClick: () => this._setYear(year.year), "data-active": year.active, "data-current": year.current }, year.year))))));
474
247
  }
475
248
  _getHeader(type = 'day') {
476
249
  let nextFn = num => this._changeMonth(num);
@@ -479,31 +252,31 @@ const Calendar = class {
479
252
  nextFn = num => this._changeYear(num);
480
253
  nextType = 'year';
481
254
  }
482
- return (index$1.h("div", { class: header({ type: this.mode }) }, this.mode !== 'year' && (index$1.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' })), index$1.h("div", { class: cn.cn('flex gap-2', {
255
+ return (index.h("div", { class: header({ type: this.mode }) }, this.mode !== 'year' && (index.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' })), index.h("div", { class: cn.cn('flex gap-2', {
483
256
  'flex-1': this._enableToday,
484
- }) }, this.mode !== 'year' && (index$1.h("p-button", { variant: 'secondary', size: 'sm', tabIndex: -1, onClick: () => this._changeView('month'), disabled: !this._canChangeView('month'), active: this._view === 'month' && this.mode !== 'month' }, index.format(this._viewDate, 'MMMM', {
485
- locale: state.state.locale === 'nl' ? index.locale$1 : index.locale,
486
- }))), index$1.h("p-button", { variant: 'secondary', size: 'sm', tabIndex: -1, onClick: () => this._changeView('year'), disabled: !this._canChangeView('year'), active: this._view === 'year' && this.mode !== 'year' }, index.getYear(this._viewDate)), this._enableToday && (index$1.h("p-tooltip", { class: 'ml-auto', content: this.todayText }, index$1.h("p-button", { variant: 'secondary', size: 'sm', icon: 'calendar', slot: 'trigger', tabIndex: -1, iconOnly: true, onClick: () => this._setToday() })))), this.mode !== 'year' && (index$1.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' }))));
257
+ }) }, this.mode !== 'year' && (index.h("p-button", { variant: 'secondary', size: 'sm', tabIndex: -1, onClick: () => this._changeView('month'), disabled: !this._canChangeView('month'), active: this._view === 'month' && this.mode !== 'month' }, locale.dateFnsExports.format(this._viewDate, 'MMMM', {
258
+ locale: state.state.locale === 'nl' ? locale.localeExports.nl : locale.localeExports.enUS,
259
+ }))), index.h("p-button", { variant: 'secondary', size: 'sm', tabIndex: -1, onClick: () => this._changeView('year'), disabled: !this._canChangeView('year'), active: this._view === 'year' && this.mode !== 'year' }, locale.dateFnsExports.getYear(this._viewDate)), this._enableToday && (index.h("p-tooltip", { class: 'ml-auto', content: this.todayText }, index.h("p-button", { variant: 'secondary', size: 'sm', icon: 'calendar', slot: 'trigger', tabIndex: -1, iconOnly: true, onClick: () => this._setToday() })))), this.mode !== 'year' && (index.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' }))));
487
260
  }
488
261
  _setYear(year) {
489
- const date = index.setYear(this._viewDate, year);
262
+ const date = locale.dateFnsExports.setYear(this._viewDate, year);
490
263
  if (this.mode !== 'year') {
491
264
  this._viewDate = date;
492
265
  this._view = 'month';
493
266
  return;
494
267
  }
495
268
  this._viewDate = date;
496
- this._setValue(setMonth(setDate(date, 1), 0));
269
+ this._setValue(locale.dateFnsExports.setMonth(locale.dateFnsExports.setDate(date, 1), 0));
497
270
  }
498
271
  _setMonth(month) {
499
- const date = setMonth(this._viewDate, month);
272
+ const date = locale.dateFnsExports.setMonth(this._viewDate, month);
500
273
  if (this.mode === 'day') {
501
274
  this._viewDate = date;
502
275
  this._view = 'day';
503
276
  return;
504
277
  }
505
278
  this._viewDate = date;
506
- this._setValue(setDate(date, 1));
279
+ this._setValue(locale.dateFnsExports.setDate(date, 1));
507
280
  }
508
281
  _setToday() {
509
282
  this._viewDate = this._today;
@@ -515,7 +288,7 @@ const Calendar = class {
515
288
  if (!allowed) {
516
289
  return;
517
290
  }
518
- const newDate = index.addMonths(this._viewDate, amount);
291
+ const newDate = locale.dateFnsExports.addMonths(this._viewDate, amount);
519
292
  this._viewDate = newDate;
520
293
  }
521
294
  _changeYear(amount = 1) {
@@ -523,7 +296,7 @@ const Calendar = class {
523
296
  if (!allowed) {
524
297
  return;
525
298
  }
526
- let newDate = index.addYears(this._viewDate, amount);
299
+ let newDate = locale.dateFnsExports.addYears(this._viewDate, amount);
527
300
  this._viewDate = newDate;
528
301
  }
529
302
  _setValue(value) {
@@ -532,14 +305,14 @@ const Calendar = class {
532
305
  this.valueChange.emit(null);
533
306
  return;
534
307
  }
535
- if (!index.isValid(value)) {
308
+ if (!locale.dateFnsExports.isValid(value)) {
536
309
  return;
537
310
  }
538
311
  if (this._isDisabledDay(value)) {
539
312
  return;
540
313
  }
541
- value = index.startOfDay(value);
542
- const isSameValue = index.isSameDay(value, this._value);
314
+ value = locale.dateFnsExports.startOfDay(value);
315
+ const isSameValue = locale.dateFnsExports.isSameDay(value, this._value);
543
316
  if (isSameValue) {
544
317
  return;
545
318
  }
@@ -548,51 +321,51 @@ const Calendar = class {
548
321
  }
549
322
  _generateDaysInMonth() {
550
323
  // eslint-disable-next-line unicorn/no-new-array
551
- const days = [...new Array(getDaysInMonth(this._viewDate)).keys()];
324
+ const days = [...new Array(locale.dateFnsExports.getDaysInMonth(this._viewDate)).keys()];
552
325
  return days.map(day => {
553
326
  day = day + 1;
554
- const date = index.startOfDay(setDate(this._viewDate, day));
555
- const dayOfWeek = getDay(date);
327
+ const date = locale.dateFnsExports.startOfDay(locale.dateFnsExports.setDate(this._viewDate, day));
328
+ const dayOfWeek = locale.dateFnsExports.getDay(date);
556
329
  return {
557
330
  day,
558
331
  date,
559
332
  offset: day === 1 ? (dayOfWeek === 0 ? 7 : dayOfWeek) : false,
560
- current: index.isSameDay(date, this._today),
561
- active: index.isSameDay(date, this._value),
333
+ current: locale.dateFnsExports.isSameDay(date, this._today),
334
+ active: locale.dateFnsExports.isSameDay(date, this._value),
562
335
  disabled: this._isDisabledDay(date),
563
336
  };
564
337
  });
565
338
  }
566
339
  _isDisabledDay(day) {
567
- return ((index.isBefore(day, this._minDate) && !index.isSameDay(day, this._maxDate)) ||
568
- (index.isAfter(day, this._maxDate) && !index.isSameDay(day, this._maxDate)) ||
569
- ((getDay(day) === 0 || getDay(day) === 6) && this.disableWeekends) ||
570
- this._disabledDates.some(date => index.isSameDay(date, day)));
340
+ return ((locale.dateFnsExports.isBefore(day, this._minDate) && !locale.dateFnsExports.isSameDay(day, this._maxDate)) ||
341
+ (locale.dateFnsExports.isAfter(day, this._maxDate) && !locale.dateFnsExports.isSameDay(day, this._maxDate)) ||
342
+ ((locale.dateFnsExports.getDay(day) === 0 || locale.dateFnsExports.getDay(day) === 6) && this.disableWeekends) ||
343
+ this._disabledDates.some(date => locale.dateFnsExports.isSameDay(date, day)));
571
344
  }
572
345
  _generateMonths() {
573
- const year = index.getYear(this._viewDate);
346
+ const year = locale.dateFnsExports.getYear(this._viewDate);
574
347
  const months = [...Array.from({ length: 12 }).keys()];
575
348
  return months.map(month => {
576
349
  const date = new Date(year, month, 1);
577
350
  return {
578
351
  month,
579
- current: isSameMonth(this._today, date),
580
- active: isSameMonth(this._value, date),
581
- disabled: index.isAfter(date, this._maxDate) ||
582
- index.isBefore(endOfMonth(date), this._minDate),
352
+ current: locale.dateFnsExports.isSameMonth(this._today, date),
353
+ active: locale.dateFnsExports.isSameMonth(this._value, date),
354
+ disabled: locale.dateFnsExports.isAfter(date, this._maxDate) ||
355
+ locale.dateFnsExports.isBefore(locale.dateFnsExports.endOfMonth(date), this._minDate),
583
356
  };
584
357
  });
585
358
  }
586
359
  _generateYears() {
587
- const maxYear = index.getYear(this._maxDate) + 1;
588
- const minYear = index.getYear(this._minDate);
360
+ const maxYear = locale.dateFnsExports.getYear(this._maxDate) + 1;
361
+ const minYear = locale.dateFnsExports.getYear(this._minDate);
589
362
  // eslint-disable-next-line unicorn/no-new-array
590
- return [...new Array(maxYear - minYear).keys()].map(index$1 => {
591
- const year = minYear + index$1;
363
+ return [...new Array(maxYear - minYear).keys()].map(index => {
364
+ const year = minYear + index;
592
365
  return {
593
366
  year,
594
- current: index.getYear(this._today) === year,
595
- active: index.getYear(this._value) === year,
367
+ current: locale.dateFnsExports.getYear(this._today) === year,
368
+ active: locale.dateFnsExports.getYear(this._value) === year,
596
369
  };
597
370
  });
598
371
  }
@@ -622,40 +395,40 @@ const Calendar = class {
622
395
  }
623
396
  _canChangeView(view) {
624
397
  if (view === 'year') {
625
- if (isSameYear(this._minDate, this._maxDate)) {
398
+ if (locale.dateFnsExports.isSameYear(this._minDate, this._maxDate)) {
626
399
  return false;
627
400
  }
628
401
  return true;
629
402
  }
630
- if (isSameMonth(this._minDate, this._maxDate)) {
403
+ if (locale.dateFnsExports.isSameMonth(this._minDate, this._maxDate)) {
631
404
  return false;
632
405
  }
633
406
  return true;
634
407
  }
635
408
  _canSetAmount(type, amount = 1) {
636
409
  if (type === 'month') {
637
- const newDate = index.addMonths(this._viewDate, amount);
638
- const startNewDate = index.startOfMonth(newDate);
639
- if ((index.isBefore(startNewDate, index.startOfMonth(this._minDate)) &&
640
- !index.isSameDay(startNewDate, this._minDate)) ||
641
- index.isAfter(startNewDate, endOfMonth(this._maxDate))) {
410
+ const newDate = locale.dateFnsExports.addMonths(this._viewDate, amount);
411
+ const startNewDate = locale.dateFnsExports.startOfMonth(newDate);
412
+ if ((locale.dateFnsExports.isBefore(startNewDate, locale.dateFnsExports.startOfMonth(this._minDate)) &&
413
+ !locale.dateFnsExports.isSameDay(startNewDate, this._minDate)) ||
414
+ locale.dateFnsExports.isAfter(startNewDate, locale.dateFnsExports.endOfMonth(this._maxDate))) {
642
415
  return false;
643
416
  }
644
417
  }
645
418
  if (type === 'year') {
646
- let newDate = index.addYears(this._viewDate, amount);
647
- const year = index.getYear(newDate);
648
- if (year < index.getYear(this._minDate) || year > index.getYear(this._maxDate)) {
419
+ let newDate = locale.dateFnsExports.addYears(this._viewDate, amount);
420
+ const year = locale.dateFnsExports.getYear(newDate);
421
+ if (year < locale.dateFnsExports.getYear(this._minDate) || year > locale.dateFnsExports.getYear(this._maxDate)) {
649
422
  return false;
650
423
  }
651
424
  }
652
425
  return true;
653
426
  }
654
427
  _getAutomaticMax() {
655
- const date = index.addYears(new Date(), 50);
656
- let year = index.getYear(date);
428
+ const date = locale.dateFnsExports.addYears(new Date(), 50);
429
+ let year = locale.dateFnsExports.getYear(date);
657
430
  year = Math.ceil(year / 10) * 10;
658
- return index.setYear(date, year);
431
+ return locale.dateFnsExports.setYear(date, year);
659
432
  }
660
433
  static get watchers() { return {
661
434
  "value": [{
@@ -3,7 +3,7 @@
3
3
  var index = require('./index-CcocepA-.js');
4
4
  var index$1 = require('./index-mudu9vpz.js');
5
5
  var themedHost_component = require('./themed-host.component-BSIZm-L8.js');
6
- var cn = require('./cn-BGmLaIp8.js');
6
+ var cn = require('./cn-Cd68UVBT.js');
7
7
  var asBoolean = require('./as-boolean-C1PzA22I.js');
8
8
  require('./clsx-BtxeOLZW.js');
9
9
  require('./state-BseAB3i4.js');
@@ -5,9 +5,9 @@ var index$1 = require('./index-mudu9vpz.js');
5
5
  var themedHost_component = require('./themed-host.component-BSIZm-L8.js');
6
6
  var asBoolean = require('./as-boolean-C1PzA22I.js');
7
7
  var nonce = require('./nonce-D6kacMR6.js');
8
- var floatingUi_dom = require('./floating-ui.dom-33QlkSyu.js');
8
+ var floatingUi_dom = require('./floating-ui.dom-DEq7yeQK.js');
9
9
  var childOf = require('./child-of-CvEcBEYZ.js');
10
- var cn = require('./cn-BGmLaIp8.js');
10
+ var cn = require('./cn-Cd68UVBT.js');
11
11
  require('./clsx-BtxeOLZW.js');
12
12
  require('./state-BseAB3i4.js');
13
13
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-CcocepA-.js');
4
- var cn = require('./cn-BGmLaIp8.js');
4
+ var cn = require('./cn-Cd68UVBT.js');
5
5
  require('./clsx-BtxeOLZW.js');
6
6
 
7
7
  const contentSliderComponentCss = () => `.absolute{position:absolute}.relative{position:relative}.z-10{z-index:10}.-mx-16{margin-left:-4rem;margin-right:-4rem}.-my-4{margin-bottom:-1rem;margin-top:-1rem}.mt-3{margin-top:.75rem}.box-content{box-sizing:content-box}.flex{display:flex}.w-0{width:0}.w-full{width:100%}.translate-x-0{--tw-translate-x:0px;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))}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.px-1{padding-left:.25rem;padding-right:.25rem}.px-16{padding-left:4rem;padding-right:4rem}*{box-sizing:border-box}:host{display:flex;flex-direction:column;margin:-1rem -4rem;overflow:hidden;padding:1rem 4rem}:host .slider{box-sizing:content-box;overflow:visible;position:relative}:host .slider.draggable{cursor:grab}@media (min-width:64rem){:host .slider.draggable{cursor:auto}}:host .slider.draggable.dragging{cursor:grabbing}@media (min-width:64rem){:host .slider.draggable.dragging{cursor:auto}}:host .slider.draggable.dragging .inner-slider{transition-property:none}:host .slider .inner-slider{--tw-translate-x:0px;align-items:stretch;display:flex;flex-wrap:nowrap;gap:.5rem;position:absolute;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));transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-duration:.15s;transition-duration:.5s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);width:100%;will-change:transform}@media (min-width:64rem){:host .slider .inner-slider{flex-wrap:wrap;gap:1rem}}:host .slider .inner-slider>::slotted(*){flex-shrink:0;position:relative;width:100%;z-index:10}@media (min-width:40rem){:host .slider .inner-slider>::slotted(*){width:calc(50% - .5rem)}}@media (min-width:64rem){:host .slider .inner-slider>::slotted(*){flex:1 1 0%;width:0}}:host .indicator{align-items:center;display:flex;justify-content:center}@media (min-width:64rem){:host .indicator{display:none}}:host .indicator .item{margin-top:.75rem;padding-left:.25rem;padding-right:.25rem;padding-top:.25rem}@media (min-width:64rem){.desktop-xs\\:hidden{display:none}.desktop-xs\\:flex-wrap{flex-wrap:wrap}}.visible{visibility:visible}.static{position:static}.block{display:block}.hidden{display:none}.h-2{height:.5rem}.w-2{width:.5rem}.cursor-pointer{cursor:pointer}.resize{resize:both}.rounded-full{border-radius:9999px}.bg-indigo-300{--tw-bg-opacity:1;background-color:rgb(187 209 253/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.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)}`;