@editora/ui-core 0.1.20 → 0.1.22

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 (290) hide show
  1. package/dist/accordion.cjs.js +3 -3
  2. package/dist/accordion.esm.js +3 -3
  3. package/dist/alert-dialog.cjs.js +32 -32
  4. package/dist/alert-dialog.esm.js +95 -75
  5. package/dist/alert.cjs.js +6 -6
  6. package/dist/alert.esm.js +6 -6
  7. package/dist/animated-list.cjs.js +4 -4
  8. package/dist/animated-list.esm.js +4 -4
  9. package/dist/animated-text.cjs.js +4 -4
  10. package/dist/animated-text.esm.js +4 -4
  11. package/dist/app-header.cjs.js +3 -3
  12. package/dist/app-header.esm.js +3 -3
  13. package/dist/aspect-ratio.cjs.js +3 -3
  14. package/dist/aspect-ratio.esm.js +3 -3
  15. package/dist/avatar.cjs.js +14 -14
  16. package/dist/avatar.esm.js +31 -29
  17. package/dist/badge.cjs.js +4 -4
  18. package/dist/badge.esm.js +4 -4
  19. package/dist/block-controls.cjs.js +4 -4
  20. package/dist/block-controls.esm.js +4 -4
  21. package/dist/box.cjs.js +2 -2
  22. package/dist/box.esm.js +2 -2
  23. package/dist/breadcrumb.cjs.js +5 -5
  24. package/dist/breadcrumb.esm.js +5 -5
  25. package/dist/button.cjs.js +1 -1
  26. package/dist/button.esm.js +1 -1
  27. package/dist/{calendar-DLY4acgn.mjs → calendar-DbxYRdlv.mjs} +227 -183
  28. package/dist/{calendar-Dkof-FTK.js → calendar-Qa-cFOp3.js} +74 -35
  29. package/dist/calendar.cjs.js +1 -1
  30. package/dist/calendar.esm.js +1 -1
  31. package/dist/card.cjs.js +8 -8
  32. package/dist/card.esm.js +63 -20
  33. package/dist/chart.cjs.js +4 -4
  34. package/dist/chart.esm.js +6 -6
  35. package/dist/checkbox.cjs.js +2 -2
  36. package/dist/checkbox.esm.js +2 -2
  37. package/dist/collapsible.cjs.js +7 -7
  38. package/dist/collapsible.esm.js +7 -7
  39. package/dist/collection.cjs.js +1 -1
  40. package/dist/collection.esm.js +27 -23
  41. package/dist/color-picker.cjs.js +34 -14
  42. package/dist/color-picker.esm.js +89 -67
  43. package/dist/combobox.cjs.js +29 -27
  44. package/dist/combobox.esm.js +51 -45
  45. package/dist/command.cjs.js +2 -2
  46. package/dist/command.esm.js +2 -2
  47. package/dist/components/ui-alert-dialog.d.ts +1 -0
  48. package/dist/components/ui-alert-dialog.d.ts.map +1 -1
  49. package/dist/components/ui-avatar.d.ts +1 -0
  50. package/dist/components/ui-avatar.d.ts.map +1 -1
  51. package/dist/components/ui-button.d.ts +1 -0
  52. package/dist/components/ui-button.d.ts.map +1 -1
  53. package/dist/components/ui-calendar.d.ts.map +1 -1
  54. package/dist/components/ui-card.d.ts +3 -0
  55. package/dist/components/ui-card.d.ts.map +1 -1
  56. package/dist/components/ui-checkbox.d.ts.map +1 -1
  57. package/dist/components/ui-collection.d.ts.map +1 -1
  58. package/dist/components/ui-color-picker.d.ts.map +1 -1
  59. package/dist/components/ui-combobox.d.ts.map +1 -1
  60. package/dist/components/ui-data-table.d.ts.map +1 -1
  61. package/dist/components/ui-date-field.d.ts.map +1 -1
  62. package/dist/components/ui-date-picker.d.ts.map +1 -1
  63. package/dist/components/ui-date-range-picker.d.ts.map +1 -1
  64. package/dist/components/ui-date-range-time-picker.d.ts.map +1 -1
  65. package/dist/components/ui-date-time-picker.d.ts.map +1 -1
  66. package/dist/components/ui-dock.d.ts +1 -0
  67. package/dist/components/ui-dock.d.ts.map +1 -1
  68. package/dist/components/ui-drawer.d.ts.map +1 -1
  69. package/dist/components/ui-dropdown.d.ts.map +1 -1
  70. package/dist/components/ui-field.d.ts.map +1 -1
  71. package/dist/components/ui-file-upload.d.ts.map +1 -1
  72. package/dist/components/ui-gantt.d.ts.map +1 -1
  73. package/dist/components/ui-input.d.ts.map +1 -1
  74. package/dist/components/ui-menu.d.ts.map +1 -1
  75. package/dist/components/ui-multi-select.d.ts.map +1 -1
  76. package/dist/components/ui-number-field.d.ts.map +1 -1
  77. package/dist/components/ui-password-field.d.ts.map +1 -1
  78. package/dist/components/ui-pin-input.d.ts +1 -0
  79. package/dist/components/ui-pin-input.d.ts.map +1 -1
  80. package/dist/components/ui-placement-grid.d.ts.map +1 -1
  81. package/dist/components/ui-portal.d.ts.map +1 -1
  82. package/dist/components/ui-positioner.d.ts.map +1 -1
  83. package/dist/components/ui-progress.d.ts.map +1 -1
  84. package/dist/components/ui-radio.d.ts.map +1 -1
  85. package/dist/components/ui-rating.d.ts +1 -0
  86. package/dist/components/ui-rating.d.ts.map +1 -1
  87. package/dist/components/ui-select.d.ts.map +1 -1
  88. package/dist/components/ui-sortable.d.ts +8 -0
  89. package/dist/components/ui-sortable.d.ts.map +1 -1
  90. package/dist/components/ui-switch.d.ts.map +1 -1
  91. package/dist/components/ui-table.d.ts.map +1 -1
  92. package/dist/components/ui-tabs.d.ts +1 -0
  93. package/dist/components/ui-tabs.d.ts.map +1 -1
  94. package/dist/components/ui-tags-input.d.ts +1 -0
  95. package/dist/components/ui-tags-input.d.ts.map +1 -1
  96. package/dist/components/ui-textarea.d.ts.map +1 -1
  97. package/dist/components/ui-time-field.d.ts.map +1 -1
  98. package/dist/components/ui-toggle-group.d.ts.map +1 -1
  99. package/dist/components/ui-toggle.d.ts.map +1 -1
  100. package/dist/components/ui-tree.d.ts.map +1 -1
  101. package/dist/components/ui-wizard.d.ts.map +1 -1
  102. package/dist/context-menu.cjs.js +3 -3
  103. package/dist/context-menu.esm.js +4 -4
  104. package/dist/control-name-BmoI1m3a.js +1 -0
  105. package/dist/control-name-Bpj7F34X.mjs +48 -0
  106. package/dist/data-table.cjs.js +5 -2
  107. package/dist/data-table.esm.js +145 -142
  108. package/dist/date-field.cjs.js +5 -5
  109. package/dist/date-field.esm.js +34 -31
  110. package/dist/date-picker.cjs.js +16 -16
  111. package/dist/date-picker.esm.js +48 -44
  112. package/dist/date-range-picker.cjs.js +5 -5
  113. package/dist/date-range-picker.esm.js +120 -118
  114. package/dist/date-range-time-picker.cjs.js +22 -22
  115. package/dist/date-range-time-picker.esm.js +88 -84
  116. package/dist/date-time-picker.cjs.js +26 -26
  117. package/dist/date-time-picker.esm.js +105 -101
  118. package/dist/{date-time-utils-Dmost5Ee.js → date-time-utils-BzfTpeU-.js} +1 -1
  119. package/dist/{date-time-utils-y1N2gvG2.mjs → date-time-utils-Cps2aSu2.mjs} +1 -1
  120. package/dist/description.cjs.js +3 -3
  121. package/dist/description.esm.js +3 -3
  122. package/dist/dialog.cjs.js +2 -2
  123. package/dist/dialog.esm.js +2 -2
  124. package/dist/dock.cjs.js +12 -12
  125. package/dist/dock.esm.js +72 -74
  126. package/dist/drawer.cjs.js +19 -19
  127. package/dist/drawer.esm.js +58 -58
  128. package/dist/dropdown.cjs.js +13 -13
  129. package/dist/dropdown.esm.js +49 -48
  130. package/dist/empty-state.cjs.js +3 -3
  131. package/dist/empty-state.esm.js +3 -3
  132. package/dist/field-error.cjs.js +1 -1
  133. package/dist/field-error.esm.js +1 -1
  134. package/dist/field.cjs.js +12 -12
  135. package/dist/field.esm.js +84 -75
  136. package/dist/fieldset.cjs.js +4 -4
  137. package/dist/fieldset.esm.js +4 -4
  138. package/dist/file-upload.cjs.js +3 -3
  139. package/dist/file-upload.esm.js +5 -3
  140. package/dist/floating-toolbar.cjs.js +8 -8
  141. package/dist/floating-toolbar.esm.js +9 -9
  142. package/dist/form.cjs.js +11 -11
  143. package/dist/form.esm.js +11 -11
  144. package/dist/gantt.cjs.js +43 -32
  145. package/dist/gantt.esm.js +99 -88
  146. package/dist/icon-cloud.cjs.js +3 -3
  147. package/dist/icon-cloud.esm.js +3 -3
  148. package/dist/icon.cjs.js +1 -1
  149. package/dist/icon.esm.js +1 -1
  150. package/dist/index.cjs.js +1 -1
  151. package/dist/index.esm.js +121 -118
  152. package/dist/inline-edit.cjs.js +1 -1
  153. package/dist/inline-edit.esm.js +1 -1
  154. package/dist/input.cjs.js +14 -14
  155. package/dist/input.esm.js +39 -32
  156. package/dist/label.cjs.js +3 -3
  157. package/dist/label.esm.js +3 -3
  158. package/dist/{listbox-B6QgECax.js → listbox-CTpRpuF7.js} +1 -1
  159. package/dist/{listbox-DJamVeFj.mjs → listbox-hMVOhKHC.mjs} +1 -1
  160. package/dist/listbox.cjs.js +1 -1
  161. package/dist/listbox.esm.js +1 -1
  162. package/dist/marquee.cjs.js +3 -3
  163. package/dist/marquee.esm.js +3 -3
  164. package/dist/{menu-item-styles-CbNUEwP2.js → menu-item-styles-B4onAr4C.js} +3 -3
  165. package/dist/{menu-item-styles-CZiPwPwl.mjs → menu-item-styles-IGSFLAHu.mjs} +3 -3
  166. package/dist/menu.cjs.js +7 -7
  167. package/dist/menu.esm.js +29 -28
  168. package/dist/menubar.cjs.js +1 -1
  169. package/dist/menubar.esm.js +2 -2
  170. package/dist/meter.cjs.js +1 -1
  171. package/dist/meter.esm.js +1 -1
  172. package/dist/multi-select.cjs.js +18 -18
  173. package/dist/multi-select.esm.js +82 -66
  174. package/dist/navigation-menu.cjs.js +1 -1
  175. package/dist/navigation-menu.esm.js +1 -1
  176. package/dist/number-field.cjs.js +11 -13
  177. package/dist/number-field.esm.js +29 -27
  178. package/dist/number-ticker.cjs.js +4 -4
  179. package/dist/number-ticker.esm.js +4 -4
  180. package/dist/odometer.cjs.js +2 -2
  181. package/dist/odometer.esm.js +2 -2
  182. package/dist/orbiter.cjs.js +3 -3
  183. package/dist/orbiter.esm.js +3 -3
  184. package/dist/pagination.cjs.js +1 -1
  185. package/dist/pagination.esm.js +1 -1
  186. package/dist/password-field.cjs.js +23 -23
  187. package/dist/password-field.esm.js +48 -47
  188. package/dist/pin-input.cjs.js +8 -6
  189. package/dist/pin-input.esm.js +21 -15
  190. package/dist/placement-grid.cjs.js +4 -4
  191. package/dist/placement-grid.esm.js +58 -58
  192. package/dist/plugin-panel.cjs.js +1 -1
  193. package/dist/plugin-panel.esm.js +1 -1
  194. package/dist/popover.cjs.js +5 -5
  195. package/dist/popover.esm.js +4 -4
  196. package/dist/portal.cjs.js +3 -3
  197. package/dist/portal.esm.js +11 -10
  198. package/dist/positioner.cjs.js +2 -2
  199. package/dist/positioner.esm.js +15 -14
  200. package/dist/primitives/auto-scroll.d.ts +9 -0
  201. package/dist/primitives/auto-scroll.d.ts.map +1 -0
  202. package/dist/primitives/control-name.d.ts +30 -0
  203. package/dist/primitives/control-name.d.ts.map +1 -0
  204. package/dist/primitives/selector.d.ts +4 -0
  205. package/dist/primitives/selector.d.ts.map +1 -0
  206. package/dist/primitives/trigger.d.ts +2 -0
  207. package/dist/primitives/trigger.d.ts.map +1 -0
  208. package/dist/progress.cjs.js +4 -4
  209. package/dist/progress.esm.js +20 -18
  210. package/dist/quick-actions.cjs.js +3 -3
  211. package/dist/quick-actions.esm.js +3 -3
  212. package/dist/radio-group.cjs.js +1 -1
  213. package/dist/radio-group.esm.js +1 -1
  214. package/dist/radio.cjs.js +2 -2
  215. package/dist/radio.esm.js +2 -2
  216. package/dist/rating.cjs.js +17 -16
  217. package/dist/rating.esm.js +91 -92
  218. package/dist/{runtime-D1gFh1fS.mjs → runtime-CFnK53iC.mjs} +133 -94
  219. package/dist/runtime-DwE-tizc.js +1 -0
  220. package/dist/runtime.cjs.js +1 -1
  221. package/dist/runtime.d.ts +1 -1
  222. package/dist/runtime.d.ts.map +1 -1
  223. package/dist/runtime.esm.js +29 -26
  224. package/dist/select.cjs.js +20 -19
  225. package/dist/select.esm.js +36 -32
  226. package/dist/selection-popup.cjs.js +2 -2
  227. package/dist/selection-popup.esm.js +2 -2
  228. package/dist/selector-BvAh35ve.js +1 -0
  229. package/dist/selector-WI8pD7YO.mjs +18 -0
  230. package/dist/separator.cjs.js +7 -7
  231. package/dist/separator.esm.js +7 -7
  232. package/dist/sidebar.cjs.js +7 -7
  233. package/dist/sidebar.esm.js +7 -7
  234. package/dist/skeleton.cjs.js +7 -7
  235. package/dist/skeleton.esm.js +7 -7
  236. package/dist/slider.cjs.js +3 -3
  237. package/dist/slider.esm.js +3 -3
  238. package/dist/slot.cjs.js +3 -3
  239. package/dist/slot.esm.js +3 -3
  240. package/dist/sortable.cjs.js +61 -48
  241. package/dist/sortable.esm.js +636 -554
  242. package/dist/spinning-text.cjs.js +3 -3
  243. package/dist/spinning-text.esm.js +3 -3
  244. package/dist/split-button.cjs.js +1 -1
  245. package/dist/split-button.esm.js +1 -1
  246. package/dist/stepper.cjs.js +1 -1
  247. package/dist/stepper.esm.js +1 -1
  248. package/dist/switch.cjs.js +10 -12
  249. package/dist/switch.esm.js +10 -12
  250. package/dist/table.cjs.js +9 -6
  251. package/dist/table.esm.js +46 -43
  252. package/dist/tabs.cjs.js +22 -23
  253. package/dist/tabs.esm.js +116 -112
  254. package/dist/tags-input.cjs.js +9 -9
  255. package/dist/tags-input.esm.js +32 -25
  256. package/dist/textarea.cjs.js +13 -13
  257. package/dist/textarea.esm.js +46 -31
  258. package/dist/theme.d.ts +18 -0
  259. package/dist/theme.d.ts.map +1 -1
  260. package/dist/time-field.cjs.js +5 -5
  261. package/dist/time-field.esm.js +21 -18
  262. package/dist/time-picker.cjs.js +4 -4
  263. package/dist/time-picker.esm.js +5 -5
  264. package/dist/timeline.cjs.js +2 -2
  265. package/dist/timeline.esm.js +4 -4
  266. package/dist/toast.cjs.js +6 -6
  267. package/dist/toast.esm.js +13 -13
  268. package/dist/toggle-group.cjs.js +5 -6
  269. package/dist/toggle-group.esm.js +63 -60
  270. package/dist/toggle.cjs.js +18 -18
  271. package/dist/toggle.esm.js +32 -31
  272. package/dist/tooltip.cjs.js +4 -4
  273. package/dist/tooltip.esm.js +4 -4
  274. package/dist/transfer-list.cjs.js +32 -32
  275. package/dist/transfer-list.esm.js +57 -57
  276. package/dist/tree-7qbVnpGp.js +39 -0
  277. package/dist/{tree-B3kE8ESs.mjs → tree-Deoft-kO.mjs} +34 -33
  278. package/dist/tree.cjs.js +1 -1
  279. package/dist/tree.esm.js +1 -1
  280. package/dist/trigger-BjnxLCeQ.mjs +9 -0
  281. package/dist/trigger-DkPsKxsP.js +1 -0
  282. package/dist/{ui-button-rXQOS9QJ.js → ui-button-BInsgSbr.js} +27 -26
  283. package/dist/{ui-button-Q0GNNWKC.mjs → ui-button-rfiuUnUD.mjs} +65 -48
  284. package/dist/{ui-icon-YI6lyuqU.mjs → ui-icon-BSi_GtqO.mjs} +2 -2
  285. package/dist/{ui-icon-BzVNC_lr.js → ui-icon-Bvt9oIIR.js} +5 -5
  286. package/dist/wizard.cjs.js +12 -13
  287. package/dist/wizard.esm.js +17 -15
  288. package/package.json +1 -1
  289. package/dist/runtime-CTaOSmBj.js +0 -1
  290. package/dist/tree-Dx_kv_ih.js +0 -39
@@ -1,5 +1,5 @@
1
- import { E as Ae } from "./ElementBase-YlTLMsGk.mjs";
2
- const Te = {
1
+ import { E as Te } from "./ElementBase-YlTLMsGk.mjs";
2
+ const Re = {
3
3
  calendarLabel: "Calendar",
4
4
  today: "Today",
5
5
  clear: "Clear",
@@ -45,7 +45,7 @@ const Te = {
45
45
  timePlaceholderSeconds: "HH:mm:ss",
46
46
  dateTimePlaceholder: "YYYY-MM-DD HH:mm",
47
47
  dateRangeTimePlaceholder: "Start — End"
48
- }, Re = {
48
+ }, ze = {
49
49
  calendarLabel: "日历",
50
50
  today: "今天",
51
51
  clear: "清除",
@@ -91,7 +91,7 @@ const Te = {
91
91
  timePlaceholderSeconds: "HH:mm:ss",
92
92
  dateTimePlaceholder: "YYYY-MM-DD HH:mm",
93
93
  dateRangeTimePlaceholder: "开始 — 结束"
94
- }, ze = {
94
+ }, $e = {
95
95
  calendarLabel: "Calendrier",
96
96
  today: "Aujourd'hui",
97
97
  clear: "Effacer",
@@ -138,15 +138,15 @@ const Te = {
138
138
  dateTimePlaceholder: "YYYY-MM-DD HH:mm",
139
139
  dateRangeTimePlaceholder: "Debut — Fin"
140
140
  }, Ee = {
141
- en: Te,
142
- zh: Re,
143
- fr: ze
141
+ en: Re,
142
+ zh: ze,
143
+ fr: $e
144
144
  }, se = /* @__PURE__ */ new Map();
145
- function $e(r) {
145
+ function Oe(r) {
146
146
  return r.trim().toLowerCase().replace(/_/g, "-");
147
147
  }
148
- function Oe(r) {
149
- const e = r || (typeof navigator < "u" && navigator.language ? navigator.language : "en"), t = $e(e || "");
148
+ function Pe(r) {
149
+ const e = r || (typeof navigator < "u" && navigator.language ? navigator.language : "en"), t = Oe(e || "");
150
150
  return t === "zh" || t.startsWith("zh-") || t === "cn" || t === "chinese" || t === "zh-cn" || t === "zh-hans" || t === "zh-hant" ? "zh" : t === "fr" || t.startsWith("fr-") || t === "french" ? "fr" : "en";
151
151
  }
152
152
  function oe(r) {
@@ -156,7 +156,7 @@ function oe(r) {
156
156
  typeof n == "string" && (e[t] = n);
157
157
  }), e;
158
158
  }
159
- function Pe(r, e) {
159
+ function Le(r, e) {
160
160
  if (!r) return {};
161
161
  try {
162
162
  const t = JSON.parse(r);
@@ -167,18 +167,18 @@ function Pe(r, e) {
167
167
  return {};
168
168
  }
169
169
  }
170
- function Le(r, e) {
171
- const t = Oe(r), n = `${t}::${e || ""}`, a = se.get(n);
170
+ function Be(r, e) {
171
+ const t = Pe(r), n = `${t}::${e || ""}`, a = se.get(n);
172
172
  if (a) return a;
173
- const i = Ee[t], s = Pe(e, t), l = { ...i, ...s };
174
- return se.set(n, l), l;
173
+ const i = Ee[t], s = Le(e, t), d = { ...i, ...s };
174
+ return se.set(n, d), d;
175
175
  }
176
- const Be = `
176
+ const Fe = `
177
177
  :host {
178
178
  --ui-calendar-bg: color-mix(in srgb, var(--ui-color-surface, #ffffff) 95%, transparent);
179
179
  --ui-calendar-border: color-mix(in srgb, var(--ui-color-border, #cbd5e1) 74%, transparent);
180
180
  --ui-calendar-text: var(--ui-color-text, #0f172a);
181
- --ui-calendar-muted: var(--ui-color-muted, #64748b);
181
+ --ui-calendar-muted: var(--ui-color-muted, #526175);
182
182
  --ui-calendar-accent: var(--ui-color-primary, #2563eb);
183
183
 
184
184
  --ui-calendar-radius: 14px;
@@ -211,7 +211,7 @@ const Be = `
211
211
  }
212
212
 
213
213
  :host([tone="neutral"]) {
214
- --ui-calendar-accent: color-mix(in srgb, var(--ui-color-muted, #64748b) 76%, var(--ui-color-text, #0f172a) 24%);
214
+ --ui-calendar-accent: color-mix(in srgb, var(--ui-color-muted, #526175) 76%, var(--ui-color-text, #0f172a) 24%);
215
215
  }
216
216
 
217
217
  :host([tone="info"]) {
@@ -219,11 +219,11 @@ const Be = `
219
219
  }
220
220
 
221
221
  :host([tone="success"]) {
222
- --ui-calendar-accent: var(--ui-color-success, #16a34a);
222
+ --ui-calendar-accent: var(--ui-color-success, #15803d);
223
223
  }
224
224
 
225
225
  :host([tone="warning"]) {
226
- --ui-calendar-accent: var(--ui-color-warning, #d97706);
226
+ --ui-calendar-accent: var(--ui-color-warning, #b45309);
227
227
  }
228
228
 
229
229
  :host([tone="danger"]) {
@@ -235,7 +235,7 @@ const Be = `
235
235
  }
236
236
 
237
237
  :host([state="success"]) {
238
- --ui-calendar-accent: var(--ui-color-success, #16a34a);
238
+ --ui-calendar-accent: var(--ui-color-success, #15803d);
239
239
  }
240
240
 
241
241
  :host([size="sm"]) {
@@ -505,6 +505,26 @@ const Be = `
505
505
  padding: 4px 2px;
506
506
  }
507
507
 
508
+ /* One cell per day: the button, plus the event marks and tooltip drawn over and beside it. */
509
+ .day-cell {
510
+ position: relative;
511
+ display: grid;
512
+ min-inline-size: 0;
513
+ --ui-calendar-events-h: 10px;
514
+ }
515
+
516
+ .day-cell[data-events="badges"] { --ui-calendar-events-h: 15px; }
517
+ .day-cell[data-events="count"] { --ui-calendar-events-h: 16px; }
518
+
519
+ .day-cell > .day {
520
+ grid-area: 1 / 1;
521
+ }
522
+
523
+ /* Room under the number for the event marks, so the number sits where it did when they were inside. */
524
+ .day-cell[data-events] > .day {
525
+ padding-block-end: calc(var(--ui-calendar-day-padding-block) + var(--ui-calendar-events-h) + 4px);
526
+ }
527
+
508
528
  .day {
509
529
  border: 1px solid color-mix(in srgb, var(--ui-calendar-border) 78%, transparent);
510
530
  border-radius: var(--ui-calendar-day-radius);
@@ -587,13 +607,16 @@ const Be = `
587
607
  }
588
608
 
589
609
  .events {
590
- min-block-size: 10px;
591
- display: inline-flex;
610
+ position: absolute;
611
+ inset-inline: var(--ui-calendar-day-padding-inline);
612
+ inset-block-start: calc(50% + (var(--ui-calendar-day-font-size) + 4px - var(--ui-calendar-events-h)) / 2);
613
+ block-size: var(--ui-calendar-events-h);
614
+ display: flex;
592
615
  align-items: center;
593
616
  justify-content: center;
594
617
  gap: 4px;
595
- max-inline-size: 100%;
596
618
  overflow: hidden;
619
+ pointer-events: none;
597
620
  }
598
621
 
599
622
  .event-dot {
@@ -647,6 +670,8 @@ const Be = `
647
670
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
648
671
  color: var(--ui-calendar-text);
649
672
  font: 500 11px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
673
+ /* Not drawn at all until its day is hovered or focused, so a hidden tooltip near an edge cannot widen the page. */
674
+ display: none;
650
675
  opacity: 0;
651
676
  pointer-events: none;
652
677
  z-index: 5;
@@ -656,12 +681,24 @@ const Be = `
656
681
  display: none;
657
682
  }
658
683
 
659
- .day:hover .tooltip,
660
- .day:focus-visible .tooltip,
661
- .day:focus-within .tooltip {
684
+ .day:hover ~ .tooltip,
685
+ .day:focus-visible ~ .tooltip {
686
+ display: block;
662
687
  opacity: 1;
663
688
  }
664
689
 
690
+ /* The outer columns open inward, so the tooltip stays inside the calendar (and the viewport). */
691
+ .week > .day-cell:nth-child(-n + 2) .tooltip {
692
+ inset-inline-start: 0;
693
+ transform: none;
694
+ }
695
+
696
+ .week > .day-cell:nth-child(n + 6) .tooltip {
697
+ inset-inline-start: auto;
698
+ inset-inline-end: 0;
699
+ transform: none;
700
+ }
701
+
665
702
  .live-region {
666
703
  position: absolute;
667
704
  inline-size: 1px;
@@ -697,7 +734,7 @@ const Be = `
697
734
  }
698
735
 
699
736
  :host([state="success"]) .frame {
700
- box-shadow: 0 0 0 1px color-mix(in srgb, var(--ui-color-success, #16a34a) 28%, transparent), var(--ui-calendar-shadow);
737
+ box-shadow: 0 0 0 1px color-mix(in srgb, var(--ui-color-success, #15803d) 28%, transparent), var(--ui-calendar-shadow);
701
738
  }
702
739
 
703
740
  @media (max-width: 420px) {
@@ -815,11 +852,11 @@ const Be = `
815
852
  from { background-position: 120% 0; }
816
853
  to { background-position: -120% 0; }
817
854
  }
818
- `, V = {
855
+ `, q = {
819
856
  default: "var(--ui-color-primary, #2563eb)",
820
- info: "var(--ui-color-info, #0891b2)",
821
- success: "var(--ui-color-success, #16a34a)",
822
- warning: "var(--ui-color-warning, #d97706)",
857
+ info: "var(--ui-color-info, #0e7490)",
858
+ success: "var(--ui-color-success, #15803d)",
859
+ warning: "var(--ui-color-warning, #b45309)",
823
860
  danger: "var(--ui-color-danger, #dc2626)"
824
861
  };
825
862
  function O(r, e, t) {
@@ -828,7 +865,7 @@ function O(r, e, t) {
828
865
  function L(r) {
829
866
  return String(r).padStart(2, "0");
830
867
  }
831
- function v(r) {
868
+ function b(r) {
832
869
  return `${r.y}-${L(r.m)}-${L(r.d)}`;
833
870
  }
834
871
  function c(r) {
@@ -856,11 +893,11 @@ function w(r, e) {
856
893
  const t = c(r), n = c(e);
857
894
  return !t || !n ? r.localeCompare(e) : t.y !== n.y ? t.y - n.y : t.m !== n.m ? t.m - n.m : t.d - n.d;
858
895
  }
859
- function Fe(r, e) {
896
+ function Ue(r, e) {
860
897
  const t = c(r);
861
898
  if (!t) return r;
862
899
  const n = B(t);
863
- return n.setUTCDate(n.getUTCDate() + e), v(fe(n));
900
+ return n.setUTCDate(n.getUTCDate() + e), b(fe(n));
864
901
  }
865
902
  function P(r, e) {
866
903
  const t = new Date(Date.UTC(r.y, r.m - 1, 1));
@@ -870,28 +907,28 @@ function P(r, e) {
870
907
  }
871
908
  function He(r, e) {
872
909
  const t = c(r);
873
- return t ? v(P(t, e)) : r;
910
+ return t ? b(P(t, e)) : r;
874
911
  }
875
- function le(r, e) {
912
+ function de(r, e) {
876
913
  return { y: r, m: e, d: 1 };
877
914
  }
878
- function Ue(r, e) {
915
+ function Ne(r, e) {
879
916
  return { y: r, m: e, d: F(r, e) };
880
917
  }
881
- function de(r) {
918
+ function le(r) {
882
919
  const e = c(r);
883
920
  return e ? B(e).getUTCDay() : 0;
884
921
  }
885
- function K(r, e) {
922
+ function W(r, e) {
886
923
  if (r == null || r === "") return e;
887
924
  const t = Number(r);
888
925
  return Number.isFinite(t) ? Math.trunc(t) : e;
889
926
  }
890
927
  function ce(r, e) {
891
- const t = K(r, e);
928
+ const t = W(r, e);
892
929
  return t < 1 ? e : t;
893
930
  }
894
- function Ne(r, e) {
931
+ function Ye(r, e) {
895
932
  if (r == null) return e;
896
933
  const t = String(r).toLowerCase();
897
934
  return t !== "false" && t !== "0" && t !== "off";
@@ -899,10 +936,10 @@ function Ne(r, e) {
899
936
  function m(r) {
900
937
  return r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
901
938
  }
902
- function q(r, e, t) {
939
+ function K(r, e, t) {
903
940
  return w(r, e) >= 0 && w(r, t) <= 0;
904
941
  }
905
- function E(r, e) {
942
+ function $(r, e) {
906
943
  return w(r, e) <= 0 ? { start: r, end: e } : { start: e, end: r };
907
944
  }
908
945
  function ue(r, e) {
@@ -916,19 +953,19 @@ function ue(r, e) {
916
953
  }
917
954
  return 0;
918
955
  }
919
- function Ye(r) {
956
+ function je(r) {
920
957
  return r === "range" || r === "multiple" ? r : "single";
921
958
  }
922
- function je(r) {
959
+ function Ve(r) {
923
960
  return r === "none" || r === "select" ? r : "navigate";
924
961
  }
925
- function Ve(r) {
962
+ function qe(r) {
926
963
  return r === "badges" || r === "count" ? r : "dots";
927
964
  }
928
- function qe(r) {
965
+ function Ke(r) {
929
966
  return r === "sm" || r === "lg" ? r : "md";
930
967
  }
931
- function Ke(r) {
968
+ function We(r) {
932
969
  return r === "neutral" || r === "info" || r === "success" || r === "warning" || r === "danger" ? r : null;
933
970
  }
934
971
  function he(r) {
@@ -939,14 +976,14 @@ function pe(r) {
939
976
  return r.forEach((n) => {
940
977
  const a = c(n);
941
978
  if (!a) return;
942
- const i = v(a);
979
+ const i = b(a);
943
980
  t.has(i) || (t.add(i), e.push(i));
944
981
  }), e.sort(w), e;
945
982
  }
946
- function $(r) {
983
+ function E(r) {
947
984
  return r.mode === "single" ? { mode: "single", value: r.value } : r.mode === "range" ? { mode: "range", start: r.start, end: r.end } : { mode: "multiple", values: [...r.values] };
948
985
  }
949
- class We extends Ae {
986
+ class Je extends Te {
950
987
  constructor() {
951
988
  super(), this._eventsRawCache = null, this._eventsParsedCache = [], this._eventsByDateCache = /* @__PURE__ */ new Map(), this._valueRawCache = null, this._valueModeCache = null, this._valueParsedCache = { mode: "single", value: null }, this._focusedIso = "", this._hoverIso = null, this._pickerOpen = !1, this._syncingValueAttribute = !1, this._rangeKeyboardAnchor = null, this._shouldRefocus = !1, this._docPointerDownBound = (e) => this._onDocumentPointerDown(e), this._onClick = this._onClick.bind(this), this._onKeyDown = this._onKeyDown.bind(this), this._onPointerOver = this._onPointerOver.bind(this), this._onMouseLeave = this._onMouseLeave.bind(this), this._onFocusIn = this._onFocusIn.bind(this);
952
989
  }
@@ -990,7 +1027,7 @@ class We extends Ae {
990
1027
  }
991
1028
  focusDate(e) {
992
1029
  const t = c(e);
993
- t && (this.goToMonth(t.y, t.m), this._focusedIso = v(t), this._shouldRefocus = !0, this.requestRender());
1030
+ t && (this.goToMonth(t.y, t.m), this._focusedIso = b(t), this._shouldRefocus = !0, this.requestRender());
994
1031
  }
995
1032
  goToMonth(e, t, n = "api") {
996
1033
  if (!Number.isFinite(e) || !Number.isFinite(t)) return;
@@ -1001,16 +1038,16 @@ class We extends Ae {
1001
1038
  i -= 12, a += 1;
1002
1039
  let s = !1;
1003
1040
  if (String(a) !== (this.getAttribute("year") || "") && (this.setAttribute("year", String(a)), s = !0), String(i) !== (this.getAttribute("month") || "") && (this.setAttribute("month", String(i)), s = !0), s) {
1004
- const l = { year: a, month: i, source: n };
1041
+ const d = { year: a, month: i, source: n };
1005
1042
  this.dispatchEvent(
1006
1043
  new CustomEvent("month-change", {
1007
- detail: l,
1044
+ detail: d,
1008
1045
  bubbles: !0,
1009
1046
  composed: !0
1010
1047
  })
1011
1048
  ), this.dispatchEvent(
1012
1049
  new CustomEvent("ui-month-change", {
1013
- detail: l,
1050
+ detail: d,
1014
1051
  bubbles: !0,
1015
1052
  composed: !0
1016
1053
  })
@@ -1020,7 +1057,7 @@ class We extends Ae {
1020
1057
  selectDate(e) {
1021
1058
  const t = c(e);
1022
1059
  if (!t) return;
1023
- const n = v(t);
1060
+ const n = b(t);
1024
1061
  this._shouldRefocus = !0, this._applySelection(n, !1, "api");
1025
1062
  }
1026
1063
  _syncDocumentListener() {
@@ -1030,10 +1067,15 @@ class We extends Ae {
1030
1067
  !this._pickerOpen || e.composedPath().includes(this) || (this._pickerOpen = !1, this.requestRender());
1031
1068
  }
1032
1069
  _resolveLocale() {
1033
- return (this.getAttribute("locale") || "").trim() || (typeof navigator < "u" ? navigator.language : "en-US");
1070
+ const t = (this.getAttribute("locale") || "").trim() || (typeof navigator < "u" ? navigator.language : "en-US");
1071
+ try {
1072
+ return new Intl.DateTimeFormat(t), t;
1073
+ } catch {
1074
+ return "en-US";
1075
+ }
1034
1076
  }
1035
1077
  _resolvedView() {
1036
- const e = /* @__PURE__ */ new Date(), t = K(this.getAttribute("year"), e.getFullYear()), n = K(this.getAttribute("month"), e.getMonth() + 1);
1078
+ const e = /* @__PURE__ */ new Date(), t = W(this.getAttribute("year"), e.getFullYear()), n = W(this.getAttribute("month"), e.getMonth() + 1);
1037
1079
  return {
1038
1080
  year: t,
1039
1081
  month: O(n, 1, 12)
@@ -1045,30 +1087,30 @@ class We extends Ae {
1045
1087
  }
1046
1088
  _resolveMinIso() {
1047
1089
  const e = c(this.getAttribute("min") || "");
1048
- return e ? v(e) : null;
1090
+ return e ? b(e) : null;
1049
1091
  }
1050
1092
  _resolveMaxIso() {
1051
1093
  const e = c(this.getAttribute("max") || "");
1052
- return e ? v(e) : null;
1094
+ return e ? b(e) : null;
1053
1095
  }
1054
1096
  _monthHasAllowedDay(e, t, n, a) {
1055
- const i = v(le(e, t)), s = v(Ue(e, t));
1097
+ const i = b(de(e, t)), s = b(Ne(e, t));
1056
1098
  return !(n && w(s, n) < 0 || a && w(i, a) > 0);
1057
1099
  }
1058
1100
  _resolveSelectionMode() {
1059
- return Ye(this.getAttribute("selection"));
1101
+ return je(this.getAttribute("selection"));
1060
1102
  }
1061
1103
  _resolveEventsDisplay() {
1062
- return Ve(this.getAttribute("events-display"));
1104
+ return qe(this.getAttribute("events-display"));
1063
1105
  }
1064
1106
  _resolveOutsideClickMode() {
1065
- return je(this.getAttribute("outside-click"));
1107
+ return Ve(this.getAttribute("outside-click"));
1066
1108
  }
1067
1109
  _resolveCalendarSize() {
1068
- return qe(this.getAttribute("size"));
1110
+ return Ke(this.getAttribute("size"));
1069
1111
  }
1070
1112
  _resolveTone() {
1071
- return Ke(this.getAttribute("tone"));
1113
+ return We(this.getAttribute("tone"));
1072
1114
  }
1073
1115
  _resolveState() {
1074
1116
  return he(this.getAttribute("state"));
@@ -1078,7 +1120,7 @@ class We extends Ae {
1078
1120
  return e || this._translations().calendarLabel;
1079
1121
  }
1080
1122
  _translations() {
1081
- return Le(
1123
+ return Be(
1082
1124
  this.getAttribute("locale"),
1083
1125
  this.getAttribute("translations")
1084
1126
  );
@@ -1104,7 +1146,7 @@ class We extends Ae {
1104
1146
  return O(ce(this.getAttribute("events-max"), 3), 1, 9);
1105
1147
  }
1106
1148
  _showTodayButton() {
1107
- return this.hasAttribute("hide-today") ? !1 : Ne(this.getAttribute("show-today"), !0);
1149
+ return this.hasAttribute("hide-today") ? !1 : Ye(this.getAttribute("show-today"), !0);
1108
1150
  }
1109
1151
  _isDisabled() {
1110
1152
  return this.hasAttribute("disabled");
@@ -1124,7 +1166,7 @@ class We extends Ae {
1124
1166
  _normalizeValueForMode(e) {
1125
1167
  const t = this.getAttribute("value") || "";
1126
1168
  if (this._valueRawCache === t && this._valueModeCache === e)
1127
- return $(this._valueParsedCache);
1169
+ return E(this._valueParsedCache);
1128
1170
  let n;
1129
1171
  if (e === "multiple") {
1130
1172
  try {
@@ -1132,29 +1174,29 @@ class We extends Ae {
1132
1174
  if (!Array.isArray(i))
1133
1175
  n = { mode: e, values: [] };
1134
1176
  else {
1135
- const s = pe(i.map((l) => String(l || "")));
1177
+ const s = pe(i.map((d) => String(d || "")));
1136
1178
  n = { mode: e, values: s };
1137
1179
  }
1138
1180
  } catch {
1139
1181
  n = { mode: e, values: [] };
1140
1182
  }
1141
- return this._valueRawCache = t, this._valueModeCache = e, this._valueParsedCache = $(n), n;
1183
+ return this._valueRawCache = t, this._valueModeCache = e, this._valueParsedCache = E(n), n;
1142
1184
  }
1143
1185
  if (e === "range") {
1144
1186
  try {
1145
- const i = JSON.parse(t), s = i && typeof i == "object" ? String(i.start || "") : "", l = i && typeof i == "object" ? String(i.end || "") : "", o = c(s), p = c(l), h = o ? v(o) : null, u = p ? v(p) : null;
1146
- if (h && u) {
1147
- const f = E(h, u);
1187
+ const i = JSON.parse(t), s = i && typeof i == "object" ? String(i.start || "") : "", d = i && typeof i == "object" ? String(i.end || "") : "", o = c(s), p = c(d), u = o ? b(o) : null, h = p ? b(p) : null;
1188
+ if (u && h) {
1189
+ const f = $(u, h);
1148
1190
  n = { mode: e, start: f.start, end: f.end };
1149
1191
  } else
1150
- n = { mode: e, start: h, end: null };
1192
+ n = { mode: e, start: u, end: null };
1151
1193
  } catch {
1152
1194
  n = { mode: e, start: null, end: null };
1153
1195
  }
1154
- return this._valueRawCache = t, this._valueModeCache = e, this._valueParsedCache = $(n), n;
1196
+ return this._valueRawCache = t, this._valueModeCache = e, this._valueParsedCache = E(n), n;
1155
1197
  }
1156
1198
  const a = c(t);
1157
- return n = { mode: e, value: a ? v(a) : null }, this._valueRawCache = t, this._valueModeCache = e, this._valueParsedCache = $(n), n;
1199
+ return n = { mode: e, value: a ? b(a) : null }, this._valueRawCache = t, this._valueModeCache = e, this._valueParsedCache = E(n), n;
1158
1200
  }
1159
1201
  _serializeSelection(e) {
1160
1202
  if (e.mode === "single")
@@ -1205,33 +1247,33 @@ class We extends Ae {
1205
1247
  if (!c(e)) return;
1206
1248
  const a = this._resolveSelectionMode(), { minIso: i, maxIso: s } = this._resolveBounds();
1207
1249
  if (this._isDateOutOfBounds(e, i, s)) return;
1208
- const l = this._isReadonly();
1209
- if (this._isInteractionDisabled() || l) return;
1250
+ const d = this._isReadonly();
1251
+ if (this._isInteractionDisabled() || d) return;
1210
1252
  let o = this._normalizeValueForMode(a);
1211
1253
  if (a === "single")
1212
1254
  o = { mode: a, value: e };
1213
1255
  else if (a === "multiple") {
1214
- const u = this._normalizeValueForMode("multiple"), f = new Set(u.values);
1256
+ const h = this._normalizeValueForMode("multiple"), f = new Set(h.values);
1215
1257
  f.has(e) ? f.delete(e) : f.size < this._maxSelections() && f.add(e), o = { mode: a, values: pe(Array.from(f)) };
1216
1258
  } else {
1217
- const u = this._normalizeValueForMode("range"), f = u.start, _ = u.end;
1259
+ const h = this._normalizeValueForMode("range"), f = h.start, _ = h.end;
1218
1260
  if (t) {
1219
- const d = this._rangeKeyboardAnchor || f || this._focusedIso || e;
1220
- if (!c(d))
1261
+ const l = this._rangeKeyboardAnchor || f || this._focusedIso || e;
1262
+ if (!c(l))
1221
1263
  this._rangeKeyboardAnchor = e, o = { mode: a, start: e, end: null };
1222
1264
  else {
1223
- const b = E(d, e);
1224
- o = { mode: a, start: b.start, end: b.end };
1265
+ const v = $(l, e);
1266
+ o = { mode: a, start: v.start, end: v.end };
1225
1267
  }
1226
1268
  } else if (!f || f && _)
1227
1269
  this._rangeKeyboardAnchor = e, o = { mode: a, start: e, end: null };
1228
1270
  else if (f && !_) {
1229
- const d = E(f, e);
1230
- o = { mode: a, start: d.start, end: d.end };
1271
+ const l = $(f, e);
1272
+ o = { mode: a, start: l.start, end: l.end };
1231
1273
  }
1232
1274
  }
1233
- const p = this.getAttribute("value"), h = this._serializeSelection(o);
1234
- p !== h ? (this._setValueAttribute(h), this._emitSelectionEvents(o, a === "single" ? e : null, n)) : a === "single" && this._emitSelectionEvents(o, e, n), this._focusedIso = e, this._hoverIso = null, this._shouldRefocus = !0, n !== "api" && this.requestRender();
1275
+ const p = this.getAttribute("value"), u = this._serializeSelection(o);
1276
+ p !== u ? (this._setValueAttribute(u), this._emitSelectionEvents(o, a === "single" ? e : null, n)) : a === "single" && this._emitSelectionEvents(o, e, n), this._focusedIso = e, this._hoverIso = null, this._shouldRefocus = !0, n !== "api" && this.requestRender();
1235
1277
  }
1236
1278
  _monthLabel(e, t, n) {
1237
1279
  try {
@@ -1258,8 +1300,8 @@ class We extends Ae {
1258
1300
  _weekdayLabels(e, t) {
1259
1301
  const n = [], a = new Intl.DateTimeFormat(e, { weekday: "short", timeZone: "UTC" });
1260
1302
  for (let i = 0; i < 7; i += 1) {
1261
- const s = (t + i) % 7, l = new Date(Date.UTC(2024, 0, 7 + s));
1262
- n.push(a.format(l));
1303
+ const s = (t + i) % 7, d = new Date(Date.UTC(2024, 0, 7 + s));
1304
+ n.push(a.format(d));
1263
1305
  }
1264
1306
  return n;
1265
1307
  }
@@ -1287,10 +1329,10 @@ class We extends Ae {
1287
1329
  const n = [];
1288
1330
  t.forEach((a) => {
1289
1331
  if (!a || typeof a != "object") return;
1290
- const i = String(a.date || "").trim(), s = c(i), l = s ? v(s) : "";
1291
- if (!l) return;
1292
- const o = String(a.tone || "default"), p = o === "success" || o === "warning" || o === "danger" || o === "info" ? o : "default", h = a.title != null ? String(a.title) : void 0;
1293
- n.push({ date: l, title: h, tone: p });
1332
+ const i = String(a.date || "").trim(), s = c(i), d = s ? b(s) : "";
1333
+ if (!d) return;
1334
+ const o = String(a.tone || "default"), p = o === "success" || o === "warning" || o === "danger" || o === "info" ? o : "default", u = a.title != null ? String(a.title) : void 0;
1335
+ n.push({ date: d, title: u, tone: p });
1294
1336
  }), this._eventsParsedCache = n, n.forEach((a) => {
1295
1337
  this._eventsByDateCache.has(a.date) || this._eventsByDateCache.set(a.date, []), this._eventsByDateCache.get(a.date).push(a);
1296
1338
  });
@@ -1298,20 +1340,20 @@ class We extends Ae {
1298
1340
  }
1299
1341
  }
1300
1342
  _buildCells(e, t, n, a, i, s) {
1301
- const l = v(le(e, t)), p = (de(l) - n + 7) % 7, h = c(l);
1302
- if (!h) return [];
1303
- const u = B(h);
1304
- u.setUTCDate(u.getUTCDate() - p);
1343
+ const d = b(de(e, t)), p = (le(d) - n + 7) % 7, u = c(d);
1344
+ if (!u) return [];
1345
+ const h = B(u);
1346
+ h.setUTCDate(h.getUTCDate() - p);
1305
1347
  const f = [];
1306
1348
  for (let _ = 0; _ < 42; _ += 1) {
1307
- _ > 0 && u.setUTCDate(u.getUTCDate() + 1);
1308
- const d = fe(u), b = v(d), D = d.y !== e || d.m !== t, y = this._isDateBlocked(b, D, a, i);
1349
+ _ > 0 && h.setUTCDate(h.getUTCDate() + 1);
1350
+ const l = fe(h), v = b(l), D = l.y !== e || l.m !== t, y = this._isDateBlocked(v, D, a, i);
1309
1351
  f.push({
1310
- iso: b,
1311
- parts: d,
1352
+ iso: v,
1353
+ parts: l,
1312
1354
  outside: D,
1313
1355
  disabled: y,
1314
- today: b === s
1356
+ today: v === s
1315
1357
  });
1316
1358
  }
1317
1359
  return f;
@@ -1326,8 +1368,8 @@ class We extends Ae {
1326
1368
  };
1327
1369
  let s = i(this._focusedIso);
1328
1370
  if (s || (t.mode === "single" && (s = i(t.value)), !s && t.mode === "range" && (s = i(t.end || t.start)), !s && t.mode === "multiple" && (s = i(t.values[0])), s || (s = i(n)), s)) return s;
1329
- const l = e.find((o) => !o.disabled);
1330
- return l ? l.iso : e[0]?.iso || "";
1371
+ const d = e.find((o) => !o.disabled);
1372
+ return d ? d.iso : e[0]?.iso || "";
1331
1373
  }
1332
1374
  _focusDateButton(e) {
1333
1375
  if (!e || this.root.activeElement?.getAttribute("data-date") === e) return;
@@ -1340,7 +1382,7 @@ class We extends Ae {
1340
1382
  }
1341
1383
  }
1342
1384
  _moveFocusByDays(e, t, n) {
1343
- const a = Fe(e, t), i = c(a);
1385
+ const a = Ue(e, t), i = c(a);
1344
1386
  i && (this.goToMonth(i.y, i.m, "keyboard"), this._focusedIso = a, this._shouldRefocus = !0, n && this._resolveSelectionMode() === "range" && !this._isReadonly() && !this._isInteractionDisabled() ? this._applySelection(a, !0, "keyboard") : this.requestRender());
1345
1387
  }
1346
1388
  _moveFocusByMonths(e, t) {
@@ -1348,7 +1390,7 @@ class We extends Ae {
1348
1390
  a && (this.goToMonth(a.y, a.m, "keyboard"), this._focusedIso = n, this._shouldRefocus = !0, this.requestRender());
1349
1391
  }
1350
1392
  _focusWeekBoundary(e, t, n) {
1351
- const i = (de(e) - n + 7) % 7, s = t === "start" ? -i : 6 - i;
1393
+ const i = (le(e) - n + 7) % 7, s = t === "start" ? -i : 6 - i;
1352
1394
  this._moveFocusByDays(e, s, !1);
1353
1395
  }
1354
1396
  _onPointerOver(e) {
@@ -1359,8 +1401,8 @@ class We extends Ae {
1359
1401
  if (!a) return;
1360
1402
  const i = a.getAttribute("data-date") || "";
1361
1403
  if (!c(i)) return;
1362
- const s = a.getAttribute("data-outside") === "true", { minIso: l, maxIso: o } = this._resolveBounds();
1363
- this._isDateBlocked(i, s, l, o) || this._hoverIso !== i && (this._hoverIso = i, this.requestRender());
1404
+ const s = a.getAttribute("data-outside") === "true", { minIso: d, maxIso: o } = this._resolveBounds();
1405
+ this._isDateBlocked(i, s, d, o) || this._hoverIso !== i && (this._hoverIso = i, this.requestRender());
1364
1406
  }
1365
1407
  _onMouseLeave() {
1366
1408
  this._hoverIso != null && (this._hoverIso = null, this.requestRender());
@@ -1380,16 +1422,16 @@ class We extends Ae {
1380
1422
  _onClick(e) {
1381
1423
  const t = e.target;
1382
1424
  if (!t) return;
1383
- const n = t.closest("[data-action]"), a = n?.getAttribute("data-action") || "", { year: i, month: s } = this._resolvedView(), l = this._todayIso(), o = c(l);
1425
+ const n = t.closest("[data-action]"), a = n?.getAttribute("data-action") || "", { year: i, month: s } = this._resolvedView(), d = this._todayIso(), o = c(d);
1384
1426
  if (a === "prev-month" || a === "next-month") {
1385
1427
  if (this._isInteractionDisabled()) return;
1386
- const d = a === "prev-month" ? -1 : 1, D = (this._focusedIso ? c(this._focusedIso) : null) || { y: i, m: s, d: 1 }, y = P(D, d);
1387
- this.goToMonth(y.y, y.m, "pointer"), this._focusedIso = v({ y: y.y, m: y.m, d: O(D.d, 1, F(y.y, y.m)) }), this._shouldRefocus = !0, this.requestRender();
1428
+ const l = a === "prev-month" ? -1 : 1, D = (this._focusedIso ? c(this._focusedIso) : null) || { y: i, m: s, d: 1 }, y = P(D, l);
1429
+ this.goToMonth(y.y, y.m, "pointer"), this._focusedIso = b({ y: y.y, m: y.m, d: O(D.d, 1, F(y.y, y.m)) }), this._shouldRefocus = !0, this.requestRender();
1388
1430
  return;
1389
1431
  }
1390
1432
  if (a === "today") {
1391
1433
  if (this._isInteractionDisabled()) return;
1392
- this.goToMonth(o.y, o.m, "pointer"), this._focusedIso = l, this._shouldRefocus = !0, this._isReadonly() ? this.requestRender() : this._applySelection(l, !1, "pointer");
1434
+ this.goToMonth(o.y, o.m, "pointer"), this._focusedIso = d, this._shouldRefocus = !0, this._isReadonly() ? this.requestRender() : this._applySelection(d, !1, "pointer");
1393
1435
  return;
1394
1436
  }
1395
1437
  if (a === "toggle-monthyear") {
@@ -1398,36 +1440,36 @@ class We extends Ae {
1398
1440
  }
1399
1441
  if (a === "picker-prev-year" || a === "picker-next-year") {
1400
1442
  if (this._isInteractionDisabled()) return;
1401
- const d = a === "picker-prev-year" ? -1 : 1;
1402
- this.goToMonth(i + d, s, "pointer"), this._pickerOpen = !0, this._shouldRefocus = !0, this.requestRender();
1443
+ const l = a === "picker-prev-year" ? -1 : 1;
1444
+ this.goToMonth(i + l, s, "pointer"), this._pickerOpen = !0, this._shouldRefocus = !0, this.requestRender();
1403
1445
  return;
1404
1446
  }
1405
1447
  if (a === "pick-month") {
1406
1448
  if (this._isInteractionDisabled()) return;
1407
- const d = Number(n?.getAttribute("data-month") || "");
1408
- if (!Number.isInteger(d) || d < 1 || d > 12) return;
1409
- this.goToMonth(i, d, "pointer"), this._pickerOpen = !1, this._shouldRefocus = !0, this.requestRender();
1449
+ const l = Number(n?.getAttribute("data-month") || "");
1450
+ if (!Number.isInteger(l) || l < 1 || l > 12) return;
1451
+ this.goToMonth(i, l, "pointer"), this._pickerOpen = !1, this._shouldRefocus = !0, this.requestRender();
1410
1452
  return;
1411
1453
  }
1412
1454
  const p = t.closest(".day");
1413
1455
  if (!p) return;
1414
- const h = p.getAttribute("data-date") || "";
1415
- if (!c(h)) return;
1416
- const u = p.getAttribute("data-outside") === "true", { minIso: f, maxIso: _ } = this._resolveBounds();
1417
- if (!this._isDateBlocked(h, u, f, _)) {
1418
- if (u) {
1419
- const d = this._resolveOutsideClickMode();
1420
- if (d === "none") return;
1421
- if (d === "navigate") {
1422
- const b = c(h);
1423
- this.goToMonth(b.y, b.m, "pointer");
1456
+ const u = p.getAttribute("data-date") || "";
1457
+ if (!c(u)) return;
1458
+ const h = p.getAttribute("data-outside") === "true", { minIso: f, maxIso: _ } = this._resolveBounds();
1459
+ if (!this._isDateBlocked(u, h, f, _)) {
1460
+ if (h) {
1461
+ const l = this._resolveOutsideClickMode();
1462
+ if (l === "none") return;
1463
+ if (l === "navigate") {
1464
+ const v = c(u);
1465
+ this.goToMonth(v.y, v.m, "pointer");
1424
1466
  }
1425
1467
  }
1426
1468
  if (this._isReadonly()) {
1427
- this._focusedIso = h, this._shouldRefocus = !0, this.requestRender();
1469
+ this._focusedIso = u, this._shouldRefocus = !0, this.requestRender();
1428
1470
  return;
1429
1471
  }
1430
- this._applySelection(h, !1, "pointer");
1472
+ this._applySelection(u, !1, "pointer");
1431
1473
  }
1432
1474
  }
1433
1475
  _onKeyDown(e) {
@@ -1439,21 +1481,21 @@ class We extends Ae {
1439
1481
  if (!n) return;
1440
1482
  const a = n.getAttribute("data-date") || "";
1441
1483
  if (!c(a)) return;
1442
- const i = ue(this.getAttribute("week-start"), this._resolveLocale()), s = this._direction() === "rtl", l = e.shiftKey;
1484
+ const i = ue(this.getAttribute("week-start"), this._resolveLocale()), s = this._direction() === "rtl", d = e.shiftKey;
1443
1485
  if (e.key === "ArrowRight") {
1444
- e.preventDefault(), this._moveFocusByDays(a, s ? -1 : 1, l);
1486
+ e.preventDefault(), this._moveFocusByDays(a, s ? -1 : 1, d);
1445
1487
  return;
1446
1488
  }
1447
1489
  if (e.key === "ArrowLeft") {
1448
- e.preventDefault(), this._moveFocusByDays(a, s ? 1 : -1, l);
1490
+ e.preventDefault(), this._moveFocusByDays(a, s ? 1 : -1, d);
1449
1491
  return;
1450
1492
  }
1451
1493
  if (e.key === "ArrowDown") {
1452
- e.preventDefault(), this._moveFocusByDays(a, 7, l);
1494
+ e.preventDefault(), this._moveFocusByDays(a, 7, d);
1453
1495
  return;
1454
1496
  }
1455
1497
  if (e.key === "ArrowUp") {
1456
- e.preventDefault(), this._moveFocusByDays(a, -7, l);
1498
+ e.preventDefault(), this._moveFocusByDays(a, -7, d);
1457
1499
  return;
1458
1500
  }
1459
1501
  if (e.key === "Home") {
@@ -1474,44 +1516,45 @@ class We extends Ae {
1474
1516
  }
1475
1517
  if (e.key === "Enter" || e.key === " ") {
1476
1518
  e.preventDefault();
1477
- const o = n.getAttribute("data-outside") === "true", { minIso: p, maxIso: h } = this._resolveBounds();
1478
- if (this._isDateBlocked(a, o, p, h)) return;
1519
+ const o = n.getAttribute("data-outside") === "true", { minIso: p, maxIso: u } = this._resolveBounds();
1520
+ if (this._isDateBlocked(a, o, p, u)) return;
1479
1521
  if (o && this._resolveOutsideClickMode() === "navigate") {
1480
- const u = c(a);
1481
- this.goToMonth(u.y, u.m, "keyboard");
1522
+ const h = c(a);
1523
+ this.goToMonth(h.y, h.m, "keyboard");
1482
1524
  }
1483
1525
  this._isReadonly() || this._applySelection(a, !1, "keyboard");
1484
1526
  }
1485
1527
  }
1486
1528
  render() {
1487
- const e = this._resolveLocale(), t = this._translations(), n = ue(this.getAttribute("week-start"), e), { year: a, month: i } = this._resolvedView(), s = this._resolveSelectionMode(), { minIso: l, maxIso: o } = this._resolveBounds(), p = this._todayIso(), h = this._resolveEventsDisplay(), u = this._eventsMax(), f = this._resolveCalendarSize(), _ = this._resolveTone(), d = this._resolveState(), b = this._isInteractionDisabled(), D = this._resolveLabel();
1488
- _ ? this.setAttribute("tone", _) : this.removeAttribute("tone"), d !== "idle" ? this.setAttribute("state", d) : this.removeAttribute("state"), d === "loading" ? this.setAttribute("aria-busy", "true") : this.removeAttribute("aria-busy"), this._ensureEventsCache();
1489
- const y = this._normalizeValueForMode(s), W = this._buildCells(a, i, n, l, o, p);
1490
- this._focusedIso = this._resolveFocusIso(W, y, p);
1491
- const J = this._monthLabel(a, i, e), Z = P({ y: a, m: i, d: 1 }, -1), X = P({ y: a, m: i, d: 1 }, 1), ge = this._monthHasAllowedDay(Z.y, Z.m, l, o), be = this._monthHasAllowedDay(X.y, X.m, l, o), ve = this._weekdayLabels(e, n), G = s === "range" ? y : null, S = G?.start || null, M = G?.end || null, me = s === "multiple" ? new Set(y.values) : null;
1492
- let H = null, U = null;
1529
+ const e = this._resolveLocale(), t = this._translations(), n = ue(this.getAttribute("week-start"), e), { year: a, month: i } = this._resolvedView(), s = this._resolveSelectionMode(), { minIso: d, maxIso: o } = this._resolveBounds(), p = this._todayIso(), u = this._resolveEventsDisplay(), h = this._eventsMax(), f = this._resolveCalendarSize(), _ = this._resolveTone(), l = this._resolveState(), v = this._isInteractionDisabled(), D = this._resolveLabel();
1530
+ _ ? this.setAttribute("tone", _) : this.removeAttribute("tone"), l !== "idle" ? this.setAttribute("state", l) : this.removeAttribute("state"), l === "loading" ? this.setAttribute("aria-busy", "true") : this.removeAttribute("aria-busy"), this._ensureEventsCache();
1531
+ const y = this._normalizeValueForMode(s), J = this._buildCells(a, i, n, d, o, p);
1532
+ this._focusedIso = this._resolveFocusIso(J, y, p);
1533
+ const U = this._monthLabel(a, i, e), Z = P({ y: a, m: i, d: 1 }, -1), X = P({ y: a, m: i, d: 1 }, 1), ge = this._monthHasAllowedDay(Z.y, Z.m, d, o), ve = this._monthHasAllowedDay(X.y, X.m, d, o), be = this._weekdayLabels(e, n), G = s === "range" ? y : null, S = G?.start || null, M = G?.end || null, me = s === "multiple" ? new Set(y.values) : null;
1534
+ let H = null, N = null;
1493
1535
  if (s === "range" && S && !M && this._hoverIso && c(this._hoverIso)) {
1494
- const x = E(S, this._hoverIso);
1495
- H = x.start, U = x.end;
1536
+ const x = $(S, this._hoverIso);
1537
+ H = x.start, N = x.end;
1496
1538
  }
1497
1539
  const Q = [];
1498
1540
  for (let x = 0; x < 6; x += 1) {
1499
- const I = W.slice(x * 7, x * 7 + 7).map((g) => {
1541
+ const I = J.slice(x * 7, x * 7 + 7).map((g) => {
1500
1542
  const k = this._eventsByDateCache.get(g.iso) || [], De = this._dayAriaLabel(g.iso, e);
1501
1543
  let A = !1;
1502
- s === "single" ? A = y.value === g.iso : s === "multiple" ? A = me?.has(g.iso) || !1 : S && M && (A = q(g.iso, S, M));
1503
- const T = !!(S && M && q(g.iso, S, M)), N = !!(S && g.iso === S), Y = !!(M && g.iso === M), Se = !!(H && U && q(g.iso, H, U)), Me = !g.disabled && g.iso === this._focusedIso ? 0 : -1;
1544
+ s === "single" ? A = y.value === g.iso : s === "multiple" ? A = me?.has(g.iso) || !1 : S && M && (A = K(g.iso, S, M));
1545
+ const T = !!(S && M && K(g.iso, S, M)), Y = !!(S && g.iso === S), j = !!(M && g.iso === M), Se = !!(H && N && K(g.iso, H, N)), Me = !g.disabled && g.iso === this._focusedIso ? 0 : -1;
1504
1546
  let C = "";
1505
- k.length > 0 && (h === "count" ? C = `<span class="event-count" part="event-more" style="--event-tone:${V[k[0].tone || "default"]}">${k.length}</span>` : h === "badges" ? C = k.slice(0, u).map((z) => {
1506
- const j = m(z.title || t.event);
1507
- return `<span class="event-badge" part="event-dot" style="--event-tone:${V[z.tone || "default"]}" title="${j}">${j}</span>`;
1508
- }).join("") : C = k.slice(0, u).map((z) => `<span class="event-dot" part="event-dot" style="--event-tone:${V[z.tone || "default"]}"></span>`).join(""), k.length > u && h !== "count" && (C += `<span class="event-more" part="event-more">+${k.length - u}</span>`));
1509
- const ae = `ui-calendar-tip-${g.iso}`, ne = k.length ? k.map((R) => m(R.title || t.event)).join("<br/>") : "", re = ne.length > 0, Ce = C ? `<span class="events" part="events">${C}</span>` : "", Ie = re ? `<span class="tooltip" part="tooltip" id="${ae}">${ne}</span>` : "", ie = A || T || N || Y;
1547
+ k.length > 0 && (u === "count" ? C = `<span class="event-count" part="event-more" style="--event-tone:${q[k[0].tone || "default"]}">${k.length}</span>` : u === "badges" ? C = k.slice(0, h).map((z) => {
1548
+ const V = m(z.title || t.event);
1549
+ return `<span class="event-badge" part="event-dot" style="--event-tone:${q[z.tone || "default"]}" title="${V}">${V}</span>`;
1550
+ }).join("") : C = k.slice(0, h).map((z) => `<span class="event-dot" part="event-dot" style="--event-tone:${q[z.tone || "default"]}"></span>`).join(""), k.length > h && u !== "count" && (C += `<span class="event-more" part="event-more">+${k.length - h}</span>`));
1551
+ const ae = `ui-calendar-tip-${g.iso}`, ne = k.length ? k.map((R) => m(R.title || t.event)).join("<br/>") : "", re = ne.length > 0, Ce = C ? `<span class="events" part="events" aria-hidden="true">${C}</span>` : "", Ie = re ? `<span class="tooltip" part="tooltip" id="${ae}">${ne}</span>` : "", ie = A || T || Y || j, Ae = T || Y || j ? "day range" : "day";
1510
1552
  return `
1553
+ <div class="day-cell" part="day-cell"${C ? ` data-events="${u}"` : ""}>
1511
1554
  <button
1512
1555
  type="button"
1513
1556
  class="day"
1514
- part="${T || N || Y ? "day range" : "day"}"
1557
+ part="${Ae}"
1515
1558
  role="gridcell"
1516
1559
  data-date="${g.iso}"
1517
1560
  data-outside="${g.outside ? "true" : "false"}"
@@ -1519,8 +1562,8 @@ class We extends Ae {
1519
1562
  data-today="${g.today ? "true" : "false"}"
1520
1563
  data-selected="${ie ? "true" : "false"}"
1521
1564
  data-range="${T ? "true" : "false"}"
1522
- data-range-start="${N ? "true" : "false"}"
1523
- data-range-end="${Y ? "true" : "false"}"
1565
+ data-range-start="${Y ? "true" : "false"}"
1566
+ data-range-end="${j ? "true" : "false"}"
1524
1567
  data-range-preview="${!T && Se ? "true" : "false"}"
1525
1568
  aria-selected="${ie ? "true" : "false"}"
1526
1569
  aria-disabled="${g.disabled ? "true" : "false"}"
@@ -1530,9 +1573,10 @@ class We extends Ae {
1530
1573
  tabindex="${Me}"
1531
1574
  >
1532
1575
  <span class="day-number" part="day-number">${g.parts.d}</span>
1533
- ${Ce}
1534
- ${Ie}
1535
1576
  </button>
1577
+ ${Ce}
1578
+ ${Ie}
1579
+ </div>
1536
1580
  `;
1537
1581
  }).join("");
1538
1582
  Q.push(`<div class="week" role="row">${I}</div>`);
@@ -1547,30 +1591,30 @@ class We extends Ae {
1547
1591
  data-action="pick-month"
1548
1592
  data-month="${I}"
1549
1593
  data-active="${I === i ? "true" : "false"}"
1550
- ${b ? "disabled" : ""}
1594
+ ${v ? "disabled" : ""}
1551
1595
  >
1552
1596
  ${x}
1553
1597
  </button>
1554
1598
  `;
1555
- }).join(""), _e = ve.map((x) => `<span class="weekday" part="weekday" role="columnheader">${m(x)}</span>`).join(""), xe = this._showTodayButton() ? `<button type="button" class="today-btn" part="today" data-action="today" ${b ? "disabled" : ""}>${m(t.today)}</button>` : "", ee = d === "loading" ? t.syncingSchedule : d === "error" ? t.unableToSyncEvents : d === "success" ? t.scheduleSynced : "";
1599
+ }).join(""), _e = be.map((x) => `<span class="weekday" part="weekday" role="columnheader">${m(x)}</span>`).join(""), xe = this._showTodayButton() ? `<button type="button" class="today-btn" part="today" data-action="today" ${v ? "disabled" : ""}>${m(t.today)}</button>` : "", ee = l === "loading" ? t.syncingSchedule : l === "error" ? t.unableToSyncEvents : l === "success" ? t.scheduleSynced : "";
1556
1600
  this.setContent(`
1557
- <style>${Be}</style>
1601
+ <style>${Fe}</style>
1558
1602
  <section
1559
1603
  class="frame"
1560
1604
  part="frame"
1561
1605
  data-size="${f}"
1562
- data-state="${d}"
1563
- aria-disabled="${b ? "true" : "false"}"
1606
+ data-state="${l}"
1607
+ aria-disabled="${v ? "true" : "false"}"
1564
1608
  aria-label="${m(D)}"
1565
1609
  >
1566
- <div class="live-region" aria-live="polite" aria-atomic="true">${m(J)}</div>
1610
+ <div class="live-region" aria-live="polite" aria-atomic="true">${m(U)}</div>
1567
1611
 
1568
1612
  <header class="header" part="header">
1569
1613
  <div class="nav" part="nav">
1570
- <button type="button" class="nav-btn" part="prev" data-action="prev-month" ${!ge || b ? "disabled" : ""} aria-label="${m(t.previousMonth)}">
1614
+ <button type="button" class="nav-btn" part="prev" data-action="prev-month" ${!ge || v ? "disabled" : ""} aria-label="${m(t.previousMonth)}">
1571
1615
  <svg viewBox="0 0 24 24" width="14" height="14" aria-hidden="true" focusable="false"><path d="M14.7 6.3a1 1 0 0 1 0 1.4L10.41 12l4.29 4.3a1 1 0 1 1-1.42 1.4l-5-5a1 1 0 0 1 0-1.4l5-5a1 1 0 0 1 1.42 0Z" fill="currentColor"/></svg>
1572
1616
  </button>
1573
- <button type="button" class="nav-btn" part="next" data-action="next-month" ${!be || b ? "disabled" : ""} aria-label="${m(t.nextMonth)}">
1617
+ <button type="button" class="nav-btn" part="next" data-action="next-month" ${!ve || v ? "disabled" : ""} aria-label="${m(t.nextMonth)}">
1574
1618
  <svg viewBox="0 0 24 24" width="14" height="14" aria-hidden="true" focusable="false"><path d="M9.3 17.7a1 1 0 0 1 0-1.4L13.59 12 9.3 7.7a1 1 0 0 1 1.4-1.4l5 5a1 1 0 0 1 0 1.4l-5 5a1 1 0 0 1-1.4 0Z" fill="currentColor"/></svg>
1575
1619
  </button>
1576
1620
  </div>
@@ -1581,18 +1625,18 @@ class We extends Ae {
1581
1625
  class="title-btn"
1582
1626
  part="title monthyear"
1583
1627
  data-action="toggle-monthyear"
1584
- ${b ? "disabled" : ""}
1628
+ ${v ? "disabled" : ""}
1585
1629
  aria-expanded="${this._pickerOpen ? "true" : "false"}"
1586
- aria-label="${m(t.chooseMonthYear)}"
1630
+ aria-label="${m(`${U}, ${t.chooseMonthYear}`)}"
1587
1631
  >
1588
- <span>${m(J)}</span>
1632
+ <span>${m(U)}</span>
1589
1633
  <svg viewBox="0 0 24 24" width="14" height="14" aria-hidden="true" focusable="false"><path d="M6.7 9.7a1 1 0 0 1 1.4 0L12 13.59l3.9-3.9a1 1 0 1 1 1.4 1.42l-4.6 4.6a1 1 0 0 1-1.4 0l-4.6-4.6a1 1 0 0 1 0-1.42Z" fill="currentColor"/></svg>
1590
1634
  </button>
1591
1635
  <section class="monthyear-pop" part="monthyear" ${this._pickerOpen ? "" : "hidden"}>
1592
1636
  <div class="picker-header">
1593
- <button type="button" class="picker-year-btn" part="prev" data-action="picker-prev-year" ${b ? "disabled" : ""} aria-label="${m(t.previousYear)}">-</button>
1637
+ <button type="button" class="picker-year-btn" part="prev" data-action="picker-prev-year" ${v ? "disabled" : ""} aria-label="${m(t.previousYear)}">-</button>
1594
1638
  <span class="picker-year">${a}</span>
1595
- <button type="button" class="picker-year-btn" part="next" data-action="picker-next-year" ${b ? "disabled" : ""} aria-label="${m(t.nextYear)}">+</button>
1639
+ <button type="button" class="picker-year-btn" part="next" data-action="picker-next-year" ${v ? "disabled" : ""} aria-label="${m(t.nextYear)}">+</button>
1596
1640
  </div>
1597
1641
  <div class="picker-months">${ye}</div>
1598
1642
  </section>
@@ -1608,10 +1652,10 @@ class We extends Ae {
1608
1652
  <span>${m(ee)}</span>
1609
1653
  </div>
1610
1654
 
1611
- <section class="grid-wrap" part="grid" role="grid" aria-label="${m(D)}">
1655
+ <div class="grid-wrap" part="grid" role="grid" aria-label="${m(D)}">
1612
1656
  <div class="weekdays" role="row">${_e}</div>
1613
1657
  ${Q.join("")}
1614
- </section>
1658
+ </div>
1615
1659
  </section>
1616
1660
  `);
1617
1661
  const ke = this._focusedIso, we = this._shouldRefocus;
@@ -1623,14 +1667,14 @@ class We extends Ae {
1623
1667
  return !1;
1624
1668
  }
1625
1669
  }
1626
- typeof customElements < "u" && !customElements.get("ui-calendar") && customElements.define("ui-calendar", We);
1670
+ typeof customElements < "u" && !customElements.get("ui-calendar") && customElements.define("ui-calendar", Je);
1627
1671
  export {
1628
- We as U,
1629
- Fe as a,
1672
+ Je as U,
1673
+ Ue as a,
1630
1674
  He as b,
1631
1675
  w as c,
1632
- Ue as e,
1676
+ Ne as e,
1633
1677
  c as p,
1634
- Le as r,
1635
- le as s
1678
+ Be as r,
1679
+ de as s
1636
1680
  };