@vonage/vivid 5.4.0 → 5.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (351) hide show
  1. package/LICENSE.md +201 -0
  2. package/accordion/definition.cjs +5 -0
  3. package/accordion/definition.js +5 -0
  4. package/accordion/index.cjs +1 -1
  5. package/accordion/index.js +14 -3
  6. package/alert/definition.cjs +4 -12
  7. package/alert/definition.js +5 -13
  8. package/alert/index.cjs +11 -11
  9. package/alert/index.js +33 -37
  10. package/audio-player/definition.cjs +4 -0
  11. package/audio-player/definition.js +4 -0
  12. package/audio-player/index.cjs +1 -1
  13. package/audio-player/index.js +8 -2
  14. package/banner/definition.cjs +2 -4
  15. package/banner/definition.js +2 -4
  16. package/banner/index.cjs +2 -2
  17. package/banner/index.js +1 -1
  18. package/breadcrumb/definition.cjs +1 -0
  19. package/breadcrumb/definition.js +1 -0
  20. package/breadcrumb/index.cjs +1 -1
  21. package/breadcrumb/index.js +1 -0
  22. package/bundled/affix.js +1 -1
  23. package/bundled/anchored.cjs +1 -1
  24. package/bundled/anchored.js +6 -6
  25. package/bundled/attribute-binding-behaviour.cjs +1 -1
  26. package/bundled/attribute-binding-behaviour.js +3 -1
  27. package/bundled/base-color-picker.cjs +18 -13
  28. package/bundled/base-color-picker.js +107 -84
  29. package/bundled/base-progress.cjs +1 -1
  30. package/bundled/base-progress.js +3 -0
  31. package/bundled/button.cjs +1 -1
  32. package/bundled/button.js +14 -10
  33. package/bundled/calendar-picker.template.cjs +1 -1
  34. package/bundled/calendar-picker.template.js +4 -2
  35. package/bundled/char-count.cjs +1 -1
  36. package/bundled/char-count.js +1 -1
  37. package/bundled/definition10.cjs +7 -7
  38. package/bundled/definition10.js +29 -19
  39. package/bundled/definition11.cjs +12 -19
  40. package/bundled/definition11.js +73 -204
  41. package/bundled/definition12.cjs +19 -10
  42. package/bundled/definition12.js +218 -36
  43. package/bundled/definition13.cjs +10 -1
  44. package/bundled/definition13.js +38 -14
  45. package/bundled/definition14.cjs +1 -5
  46. package/bundled/definition14.js +15 -24
  47. package/bundled/definition15.cjs +5 -30
  48. package/bundled/definition15.js +22 -73
  49. package/bundled/definition16.cjs +30 -19
  50. package/bundled/definition16.js +74 -97
  51. package/bundled/definition17.cjs +19 -13
  52. package/bundled/definition17.js +86 -117
  53. package/bundled/definition18.cjs +13 -12
  54. package/bundled/definition18.js +125 -71
  55. package/bundled/definition19.cjs +16 -16
  56. package/bundled/definition19.js +132 -94
  57. package/bundled/definition2.cjs +8 -9
  58. package/bundled/definition2.js +89 -142
  59. package/bundled/definition22.cjs +1 -1
  60. package/bundled/definition22.js +1 -0
  61. package/bundled/definition3.cjs +1 -1
  62. package/bundled/definition3.js +2 -1
  63. package/bundled/definition5.cjs +1 -1
  64. package/bundled/definition5.js +9 -3
  65. package/bundled/definition6.cjs +1 -1
  66. package/bundled/definition6.js +1 -0
  67. package/bundled/definition7.cjs +1 -1
  68. package/bundled/definition7.js +7 -4
  69. package/bundled/definition8.cjs +1 -1
  70. package/bundled/definition8.js +1 -0
  71. package/bundled/definition9.cjs +6 -6
  72. package/bundled/definition9.js +545 -488
  73. package/bundled/delegates-aria.cjs +1 -1
  74. package/bundled/delegates-aria.js +3 -1
  75. package/bundled/form-associated.cjs +1 -1
  76. package/bundled/form-associated.js +11 -3
  77. package/bundled/host-semantics.js +4 -4
  78. package/bundled/listbox.cjs +1 -1
  79. package/bundled/listbox.js +22 -4
  80. package/bundled/localized.cjs +1 -1
  81. package/bundled/localized.js +149 -66
  82. package/bundled/mixins.cjs +4 -4
  83. package/bundled/mixins.js +11 -8
  84. package/bundled/picker-field.template.cjs +14 -14
  85. package/bundled/picker-field.template.js +36 -56
  86. package/bundled/scrollIntoView.cjs +1 -1
  87. package/bundled/scrollIntoView.js +4 -1
  88. package/bundled/text-field.cjs +1 -1
  89. package/bundled/text-field.js +1 -1
  90. package/bundled/time-selection-picker.template.cjs +12 -12
  91. package/bundled/time-selection-picker.template.js +16 -12
  92. package/bundled/trapped-focus.cjs +1 -0
  93. package/bundled/trapped-focus.js +26 -0
  94. package/bundled/vivid-element.cjs +4 -4
  95. package/bundled/vivid-element.js +529 -492
  96. package/calendar/definition.cjs +2 -0
  97. package/calendar/definition.js +2 -0
  98. package/calendar/index.cjs +13 -13
  99. package/calendar/index.js +174 -144
  100. package/checkbox/definition.cjs +1 -0
  101. package/checkbox/definition.js +1 -0
  102. package/color-picker/definition.cjs +213 -112
  103. package/color-picker/definition.js +213 -112
  104. package/color-picker/index.cjs +104 -75
  105. package/color-picker/index.js +417 -326
  106. package/combobox/definition.cjs +17 -6
  107. package/combobox/definition.js +17 -6
  108. package/combobox/index.cjs +14 -9
  109. package/combobox/index.js +54 -42
  110. package/contextual-help/index.cjs +1 -1
  111. package/contextual-help/index.js +1 -1
  112. package/custom-elements.json +6976 -484
  113. package/data-grid/definition.cjs +105 -7
  114. package/data-grid/definition.js +105 -7
  115. package/data-grid/index.cjs +52 -38
  116. package/data-grid/index.js +313 -242
  117. package/date-picker/index.cjs +1 -1
  118. package/date-picker/index.js +2 -2
  119. package/date-range-picker/definition.cjs +2 -0
  120. package/date-range-picker/definition.js +2 -0
  121. package/date-range-picker/index.cjs +1 -1
  122. package/date-range-picker/index.js +7 -3
  123. package/date-time-picker/index.cjs +1 -1
  124. package/date-time-picker/index.js +2 -2
  125. package/dial-pad/definition.cjs +148 -0
  126. package/dial-pad/definition.js +148 -0
  127. package/dial-pad/index.cjs +27 -20
  128. package/dial-pad/index.js +202 -101
  129. package/dialog/definition.cjs +1 -0
  130. package/dialog/definition.js +1 -0
  131. package/dialog/index.cjs +1 -1
  132. package/dialog/index.js +1 -0
  133. package/divider/index.cjs +1 -1
  134. package/divider/index.js +1 -1
  135. package/fab/definition.cjs +1 -0
  136. package/fab/definition.js +1 -0
  137. package/fab/index.cjs +1 -1
  138. package/fab/index.js +1 -0
  139. package/file-picker/definition.cjs +7 -2
  140. package/file-picker/definition.js +7 -2
  141. package/file-picker/index.cjs +6 -6
  142. package/file-picker/index.js +82 -73
  143. package/icon/definition.cjs +66 -41
  144. package/icon/definition.js +67 -42
  145. package/index.cjs +21 -0
  146. package/index.js +1 -1
  147. package/lib/color-picker/color-picker.d.ts +390 -12
  148. package/lib/color-picker/locale.d.ts +4 -0
  149. package/lib/data-grid/locale.d.ts +5 -0
  150. package/lib/date-picker/date-picker.d.ts +38 -38
  151. package/lib/date-range-picker/date-range-picker.d.ts +20 -20
  152. package/lib/date-time-picker/date-time-picker.d.ts +40 -40
  153. package/lib/dial-pad/dial-pad.d.ts +1 -0
  154. package/lib/icon/icon.d.ts +1 -1
  155. package/lib/menu/menu.d.ts +4 -4
  156. package/lib/rich-text-editor/definition.d.ts +3 -2
  157. package/lib/rich-text-editor/locale.d.ts +29 -3
  158. package/lib/rich-text-editor/popover.d.ts +19 -0
  159. package/lib/rich-text-editor/rich-text-editor.d.ts +16 -45
  160. package/lib/rich-text-editor/rich-text-editor.template.d.ts +2 -2
  161. package/lib/rich-text-editor/rte/config.d.ts +18 -0
  162. package/lib/rich-text-editor/rte/document.d.ts +28 -0
  163. package/lib/rich-text-editor/rte/exports.d.ts +23 -0
  164. package/lib/rich-text-editor/rte/feature.d.ts +46 -0
  165. package/lib/rich-text-editor/rte/features/internal/basic-text-blocks.d.ts +33 -0
  166. package/lib/rich-text-editor/rte/features/internal/foreign-html.d.ts +11 -0
  167. package/lib/rich-text-editor/rte/features/internal/history.d.ts +10 -0
  168. package/lib/rich-text-editor/rte/features/internal/text-style.d.ts +18 -0
  169. package/lib/rich-text-editor/rte/html-parser.d.ts +24 -0
  170. package/lib/rich-text-editor/rte/html-serializer.d.ts +30 -0
  171. package/lib/rich-text-editor/rte/instance.d.ts +57 -0
  172. package/lib/rich-text-editor/rte/utils/default-textblock.d.ts +2 -0
  173. package/lib/rich-text-editor/rte/utils/impl.d.ts +1 -0
  174. package/lib/rich-text-editor/rte/utils/textblock-attrs.d.ts +29 -0
  175. package/lib/rich-text-editor/rte/utils/textblock-marks.d.ts +10 -0
  176. package/lib/rich-text-editor/rte/utils/ui.d.ts +109 -0
  177. package/lib/simple-color-picker/simple-color-picker.d.ts +6 -5
  178. package/lib/text-area/text-area.d.ts +1 -1
  179. package/lib/text-field/text-field.d.ts +1 -1
  180. package/lib/time-picker/time-picker.d.ts +20 -20
  181. package/lib/toggletip/toggletip.d.ts +4 -4
  182. package/lib/tooltip/tooltip.d.ts +4 -4
  183. package/locales/de-DE.cjs +58 -7
  184. package/locales/de-DE.js +58 -7
  185. package/locales/en-GB.cjs +60 -9
  186. package/locales/en-GB.js +60 -9
  187. package/locales/en-US.cjs +60 -9
  188. package/locales/en-US.js +60 -9
  189. package/locales/ja-JP.cjs +59 -8
  190. package/locales/ja-JP.js +59 -8
  191. package/locales/zh-CN.cjs +58 -7
  192. package/locales/zh-CN.js +58 -7
  193. package/menu/definition.cjs +1 -0
  194. package/menu/definition.js +1 -0
  195. package/number-field/definition.cjs +5 -3
  196. package/number-field/definition.js +5 -3
  197. package/number-field/index.cjs +5 -3
  198. package/number-field/index.js +34 -32
  199. package/option/index.cjs +1 -1
  200. package/option/index.js +1 -1
  201. package/package.json +76 -62
  202. package/pagination/definition.cjs +2 -0
  203. package/pagination/definition.js +2 -0
  204. package/pagination/index.cjs +1 -1
  205. package/pagination/index.js +2 -0
  206. package/progress-ring/index.cjs +1 -1
  207. package/progress-ring/index.js +1 -1
  208. package/radio/definition.cjs +4 -0
  209. package/radio/definition.js +4 -0
  210. package/radio/index.cjs +1 -1
  211. package/radio/index.js +1 -1
  212. package/radio-group/index.cjs +1 -1
  213. package/radio-group/index.js +1 -1
  214. package/range-slider/definition.cjs +2 -1
  215. package/range-slider/definition.js +2 -1
  216. package/range-slider/index.cjs +1 -1
  217. package/range-slider/index.js +3 -1
  218. package/rich-text-editor/definition.cjs +17942 -1074
  219. package/rich-text-editor/definition.js +17926 -1079
  220. package/rich-text-editor/index.cjs +29 -130
  221. package/rich-text-editor/index.js +5565 -2474
  222. package/searchable-select/definition.cjs +6 -2
  223. package/searchable-select/definition.js +6 -2
  224. package/searchable-select/index.cjs +1 -1
  225. package/searchable-select/index.js +14 -10
  226. package/select/definition.cjs +22 -4
  227. package/select/definition.js +22 -4
  228. package/selectable-box/index.cjs +1 -1
  229. package/selectable-box/index.js +1 -1
  230. package/shared/color-picker/base-color-picker.d.ts +2 -1
  231. package/shared/patterns/anchored.d.ts +8 -8
  232. package/shared/patterns/char-count/char-count.d.ts +1 -1
  233. package/shared/patterns/localized.d.ts +386 -0
  234. package/shared/picker-field/mixins/calendar-picker.d.ts +10 -10
  235. package/shared/picker-field/mixins/calendar-picker.template.d.ts +10 -10
  236. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +20 -20
  237. package/shared/picker-field/mixins/single-date-picker.d.ts +28 -28
  238. package/shared/picker-field/mixins/single-value-picker.d.ts +8 -8
  239. package/shared/picker-field/mixins/time-selection-picker.d.ts +20 -20
  240. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +20 -20
  241. package/shared/utils/promise.d.ts +7 -0
  242. package/simple-color-picker/definition.cjs +11 -6
  243. package/simple-color-picker/definition.js +11 -6
  244. package/simple-color-picker/index.cjs +6 -6
  245. package/simple-color-picker/index.js +44 -39
  246. package/slider/definition.cjs +7 -1
  247. package/slider/definition.js +7 -1
  248. package/styles/core/all.css +5 -1
  249. package/styles/core/theme.css +5 -1
  250. package/styles/core/typography.css +1 -1
  251. package/styles/tokens/theme-dark.css +4 -4
  252. package/styles/tokens/theme-light.css +4 -4
  253. package/styles/tokens/vivid-2-compat.css +1 -1
  254. package/switch/definition.cjs +1 -0
  255. package/switch/definition.js +1 -0
  256. package/switch/index.cjs +1 -1
  257. package/switch/index.js +1 -0
  258. package/tabs/definition.cjs +2 -0
  259. package/tabs/definition.js +2 -0
  260. package/tabs/index.cjs +1 -1
  261. package/tabs/index.js +2 -0
  262. package/tag/definition.cjs +34 -14
  263. package/tag/definition.js +34 -14
  264. package/tag/index.cjs +25 -12
  265. package/tag/index.js +64 -47
  266. package/tag-group/definition.cjs +1 -2
  267. package/tag-group/definition.js +1 -2
  268. package/tag-group/index.cjs +1 -1
  269. package/tag-group/index.js +11 -12
  270. package/text-area/definition.cjs +13 -7
  271. package/text-area/definition.js +13 -7
  272. package/text-area/index.cjs +6 -6
  273. package/text-area/index.js +20 -14
  274. package/text-field/definition.cjs +16 -6
  275. package/text-field/definition.js +16 -6
  276. package/time-picker/index.cjs +1 -1
  277. package/time-picker/index.js +1 -1
  278. package/toggletip/definition.cjs +5 -1
  279. package/toggletip/definition.js +5 -1
  280. package/toggletip/index.cjs +1 -1
  281. package/toggletip/index.js +1 -1
  282. package/tooltip/definition.cjs +6 -3
  283. package/tooltip/definition.js +6 -3
  284. package/tooltip/index.cjs +1 -1
  285. package/tooltip/index.js +1 -1
  286. package/tree-view/definition.cjs +28 -6
  287. package/tree-view/definition.js +28 -6
  288. package/tree-view/index.cjs +1 -1
  289. package/tree-view/index.js +28 -6
  290. package/unbundled/_commonjsHelpers.cjs +0 -26
  291. package/unbundled/_commonjsHelpers.js +1 -26
  292. package/unbundled/attribute-binding-behaviour.cjs +1 -0
  293. package/unbundled/attribute-binding-behaviour.js +1 -0
  294. package/unbundled/base-color-picker.cjs +45 -21
  295. package/unbundled/base-color-picker.js +45 -21
  296. package/unbundled/base-progress.cjs +3 -0
  297. package/unbundled/base-progress.js +3 -0
  298. package/unbundled/button.cjs +14 -10
  299. package/unbundled/button.js +14 -10
  300. package/unbundled/calendar-picker.template.cjs +3 -1
  301. package/unbundled/calendar-picker.template.js +3 -1
  302. package/unbundled/definition.cjs +1 -0
  303. package/unbundled/definition.js +1 -0
  304. package/unbundled/definition2.cjs +4 -1
  305. package/unbundled/definition2.js +4 -1
  306. package/unbundled/definition3.cjs +1 -0
  307. package/unbundled/definition3.js +1 -0
  308. package/unbundled/definition4.cjs +1 -0
  309. package/unbundled/definition4.js +1 -0
  310. package/unbundled/definition5.cjs +3 -2
  311. package/unbundled/definition5.js +4 -3
  312. package/unbundled/delegates-aria.cjs +1 -0
  313. package/unbundled/delegates-aria.js +1 -0
  314. package/unbundled/form-associated.cjs +4 -0
  315. package/unbundled/form-associated.js +4 -0
  316. package/unbundled/listbox.cjs +16 -1
  317. package/unbundled/listbox.js +16 -1
  318. package/unbundled/localized.cjs +36 -0
  319. package/unbundled/localized.js +37 -2
  320. package/unbundled/mixins.cjs +2 -0
  321. package/unbundled/mixins.js +2 -0
  322. package/unbundled/picker-field.template.cjs +3 -35
  323. package/unbundled/picker-field.template.js +3 -34
  324. package/unbundled/scrollIntoView.cjs +1 -0
  325. package/unbundled/scrollIntoView.js +1 -0
  326. package/unbundled/text-field.cjs +1 -1
  327. package/unbundled/text-field.js +1 -1
  328. package/unbundled/time-selection-picker.template.cjs +5 -1
  329. package/unbundled/time-selection-picker.template.js +5 -1
  330. package/unbundled/trapped-focus.cjs +37 -0
  331. package/unbundled/trapped-focus.js +34 -0
  332. package/unbundled/vivid-element.cjs +1 -1
  333. package/unbundled/vivid-element.js +1 -1
  334. package/video-player/definition.cjs +54 -44
  335. package/video-player/definition.js +50 -40
  336. package/video-player/index.cjs +28 -28
  337. package/video-player/index.js +1448 -1442
  338. package/visually-hidden/index.cjs +1 -1
  339. package/visually-hidden/index.js +1 -1
  340. package/vivid.api.json +6463 -6099
  341. package/bundled/_has.cjs +0 -1
  342. package/bundled/_has.js +0 -34
  343. package/lib/rich-text-editor/facades/prose-mirror-vivid.schema.d.ts +0 -4
  344. package/lib/rich-text-editor/facades/vivid-prose-mirror.facade.d.ts +0 -18
  345. package/lib/rich-text-editor/image-placeholder/definition.d.ts +0 -2
  346. package/lib/rich-text-editor/image-placeholder/image-placeholder.d.ts +0 -7
  347. package/lib/rich-text-editor/image-placeholder/image-placeholder.template.d.ts +0 -4
  348. package/lib/rich-text-editor/menubar/consts.d.ts +0 -18
  349. package/lib/rich-text-editor/menubar/definition.d.ts +0 -2
  350. package/lib/rich-text-editor/menubar/menubar.d.ts +0 -386
  351. package/lib/rich-text-editor/menubar/menubar.template.d.ts +0 -4
package/calendar/index.js CHANGED
@@ -1,18 +1,75 @@
1
- import { V as $, U as q, a as h, h as s, c as z, d as H } from "../bundled/vivid-element.js";
2
- import { S as R } from "../bundled/enums.js";
3
- import { C as T } from "../bundled/calendar-event.js";
4
- import { _ as f, a as c, b as M } from "../bundled/_has.js";
1
+ import { V as q, U as z, a as m, h as c, c as H, d as R } from "../bundled/vivid-element.js";
2
+ import { S as T } from "../bundled/enums.js";
3
+ import { C as M } from "../bundled/calendar-event.js";
5
4
  import { r as g } from "../bundled/repeat.js";
6
5
  import { c as F } from "../bundled/class-names.js";
7
- const N = Array.isArray || function(e) {
6
+ const N = ':host{display:block;overflow:auto;block-size:inherit;max-block-size:inherit}ol{padding:0;margin:0;list-style:none}[role=grid i]{position:relative;z-index:0;display:grid;margin:auto;grid-template-areas:"filler column-headers" "row-headers calendar";grid-template-columns:min-content auto;inline-size:max(100%,500px);min-inline-size:880px}.row-headers{display:grid;grid-area:row-headers;grid-template-rows:repeat(24,1fr);margin-inline-end:2px}.row-headers>[role=rowheader i]{display:flex;align-items:flex-end;justify-content:flex-end}.row-headers>[role=rowheader i]>time{font:var(--vvd-typography-base-condensed);font-size:small;line-height:1;text-transform:uppercase;white-space:nowrap}.sticky-column .row-headers,.sticky-all .row-headers{position:sticky;z-index:1;background-color:var(--calendar-column-background-color, var(--vvd-color-canvas));inset-inline-start:0;margin-inline-end:3px}.calendar-row{display:contents}.calendar-grid-presentation{display:grid;overflow:hidden;border-radius:8px;background:var(--vvd-color-surface-2dp);counter-reset:listing;filter:var(--vvd-shadow-surface-2dp);gap:1px;grid-area:calendar;grid-auto-flow:column;grid-template:repeat(24,1fr)/repeat(7,1fr)}.hours{display:contents}.hours>[role=listitem i]{position:relative;grid-column:1/8;grid-row:var(--row);min-block-size:calc(1px*(48 + 4*clamp(-1,var(--vvd-size-density, 0),2)));pointer-events:none}.hours>[role=listitem i]:not(:first-child):after{position:absolute;border-block-end:var(--vvd-color-neutral-100) 1px solid;content:"";inline-size:100%;margin-block-start:-1px}.hours>[role=listitem i]:nth-child(24n+1){--row: 1}.hours>[role=listitem i]:nth-child(24n+2){--row: 2}.hours>[role=listitem i]:nth-child(24n+3){--row: 3}.hours>[role=listitem i]:nth-child(24n+4){--row: 4}.hours>[role=listitem i]:nth-child(24n+5){--row: 5}.hours>[role=listitem i]:nth-child(24n+6){--row: 6}.hours>[role=listitem i]:nth-child(24n+7){--row: 7}.hours>[role=listitem i]:nth-child(24n+8){--row: 8}.hours>[role=listitem i]:nth-child(24n+9){--row: 9}.hours>[role=listitem i]:nth-child(24n+10){--row: 10}.hours>[role=listitem i]:nth-child(24n+11){--row: 11}.hours>[role=listitem i]:nth-child(24n+12){--row: 12}.hours>[role=listitem i]:nth-child(24n+13){--row: 13}.hours>[role=listitem i]:nth-child(24n+14){--row: 14}.hours>[role=listitem i]:nth-child(24n+15){--row: 15}.hours>[role=listitem i]:nth-child(24n+16){--row: 16}.hours>[role=listitem i]:nth-child(24n+17){--row: 17}.hours>[role=listitem i]:nth-child(24n+18){--row: 18}.hours>[role=listitem i]:nth-child(24n+19){--row: 19}.hours>[role=listitem i]:nth-child(24n+20){--row: 20}.hours>[role=listitem i]:nth-child(24n+21){--row: 21}.hours>[role=listitem i]:nth-child(24n+22){--row: 22}.hours>[role=listitem i]:nth-child(24n+23){--row: 23}.hours>[role=listitem i]:nth-child(24n+24){--row: 24}[role=gridcell i]{display:grid;gap:1px;grid-auto-flow:column}[role=gridcell i],[role=columnheader i],[role=columnheader i] [role=button i]{position:relative}[role=gridcell i]:before,[role=columnheader i]:before,[role=columnheader i] [role=button i]:before{position:absolute;z-index:-1;background-color:var(--vvd-color-information-400);content:"";inset:0}[role=gridcell i]:focus,[role=columnheader i]:focus,[role=columnheader i] [role=button i]:focus{outline:none}[role=gridcell i]:not(:focus-visible):before,[role=columnheader i]:not(:focus-visible):before,[role=columnheader i] [role=button i]:not(:focus-visible):before{display:none}.columns{display:contents}.columns>[role=gridcell i]{position:relative;grid-column:var(--column);grid-row:1/25}.columns>[role=gridcell i]:nth-child(1){--column: 1}.columns>[role=gridcell i]:nth-child(2){--column: 2}.columns>[role=gridcell i]:nth-child(3){--column: 3}.columns>[role=gridcell i]:nth-child(4){--column: 4}.columns>[role=gridcell i]:nth-child(5){--column: 5}.columns>[role=gridcell i]:nth-child(6){--column: 6}.columns>[role=gridcell i]:nth-child(7){--column: 7}.columns>[role=gridcell i]:not(:first-child):after{position:absolute;block-size:100%;border-inline-end:var(--vvd-color-neutral-100) 1px solid;content:"";margin-inline-start:-1px}.column-headers{display:grid;grid-area:column-headers;grid-template-columns:repeat(7,1fr)}.column-headers [role=columnheader i] h2{display:grid;align-items:baseline;margin:0;font:var(--vvd-typography-heading-4);grid-template-columns:1fr auto 1fr}.column-headers [role=columnheader i] h2>em{font:inherit;inline-size:min-content;inset-inline-start:0}.column-headers [role=columnheader i] h2>small{font:var(--vvd-typography-base-condensed);text-transform:uppercase}.sticky-header .column-headers,.sticky-all .column-headers{position:sticky;z-index:1;background-color:var(--calendar-header-background-color, var(--vvd-color-canvas));inset-block-start:0;margin-block-end:3px}.filler{background-color:transparent;grid-area:filler}.sticky-header .filler,.sticky-all .filler,.sticky-column .filler{position:sticky;z-index:2;background-color:var(--calendar-header-background-color, var(--vvd-color-canvas));margin-block-end:3px}.sticky-column .filler{inset-inline-start:0}.sticky-header .filler{inset-block-start:0}.sticky-all .filler{inset-block-start:0;inset-inline-start:0}', j = "ArrowUp", x = "ArrowRight", w = "ArrowDown", I = "ArrowLeft";
7
+ function P(t) {
8
+ return t instanceof HTMLElement && (t.matches('[role="gridcell"i]') || t.matches('[role="columnheader"i]'));
9
+ }
10
+ const U = (t) => t.matches('[role="columnheader"i]') ? '[role="gridcell"i]' : '[role="columnheader"i]';
11
+ function L(t, e) {
12
+ /* v8 ignore else -- @preserve */
13
+ if (e.parentNode instanceof HTMLElement)
14
+ switch (t) {
15
+ case x:
16
+ return e.nextElementSibling || e.parentNode.firstElementChild;
17
+ case I:
18
+ return e.previousElementSibling || e.parentNode.lastElementChild;
19
+ case j:
20
+ case w: {
21
+ const { children: r } = e.parentNode, n = Array.from(r).indexOf(e);
22
+ return this.shadowRoot.querySelector(
23
+ `${U(e)}:nth-child(${n + 1})`
24
+ );
25
+ }
26
+ }
27
+ }
28
+ function W(t, e) {
29
+ if (t !== w)
30
+ return;
31
+ const r = e.closest('[role="columnheader"i]'), n = this.shadowRoot.querySelectorAll(
32
+ '[role="columnheader"i]'
33
+ ), o = Array.from(n).indexOf(r);
34
+ return this.shadowRoot.querySelector(
35
+ `[role="gridcell"i]:nth-child(${o + 1})`
36
+ );
37
+ }
38
+ function u(t) {
39
+ return t != null && typeof t == "object" && t["@@functional/placeholder"] === !0;
40
+ }
41
+ function a(t) {
42
+ return function e(r) {
43
+ return arguments.length === 0 || u(r) ? e : t.apply(this, arguments);
44
+ };
45
+ }
46
+ function B(t) {
47
+ return function e(r, n) {
48
+ switch (arguments.length) {
49
+ case 0:
50
+ return e;
51
+ case 1:
52
+ return u(r) ? e : a(function(o) {
53
+ return t(r, o);
54
+ });
55
+ default:
56
+ return u(r) && u(n) ? e : u(r) ? a(function(o) {
57
+ return t(o, n);
58
+ }) : u(n) ? a(function(o) {
59
+ return t(r, o);
60
+ }) : t(r, n);
61
+ }
62
+ };
63
+ }
64
+ const K = Array.isArray || function(e) {
8
65
  return e != null && e.length >= 0 && Object.prototype.toString.call(e) === "[object Array]";
9
66
  };
10
- function b(t) {
67
+ function A(t) {
11
68
  for (var e = [], r; !(r = t.next()).done; )
12
69
  e.push(r.value);
13
70
  return e;
14
71
  }
15
- function A(t, e, r) {
72
+ function k(t, e, r) {
16
73
  for (var n = 0, o = r.length; n < o; ) {
17
74
  if (t(e, r[n]))
18
75
  return !0;
@@ -20,60 +77,63 @@ function A(t, e, r) {
20
77
  }
21
78
  return !1;
22
79
  }
23
- function U(t) {
80
+ function V(t) {
24
81
  var e = String(t).match(/^function (\w*)/);
25
82
  return e == null ? "" : e[1];
26
83
  }
27
- function P(t, e) {
84
+ function p(t, e) {
85
+ return Object.prototype.hasOwnProperty.call(e, t);
86
+ }
87
+ function Y(t, e) {
28
88
  return t === e ? t !== 0 || 1 / t === 1 / e : t !== t && e !== e;
29
89
  }
30
- const y = typeof Object.is == "function" ? Object.is : P;
31
- var k = Object.prototype.toString, C = /* @__PURE__ */ function() {
32
- return k.call(arguments) === "[object Arguments]" ? function(e) {
33
- return k.call(e) === "[object Arguments]";
90
+ const v = typeof Object.is == "function" ? Object.is : Y;
91
+ var O = Object.prototype.toString, $ = /* @__PURE__ */ function() {
92
+ return O.call(arguments) === "[object Arguments]" ? function(e) {
93
+ return O.call(e) === "[object Arguments]";
34
94
  } : function(e) {
35
- return f("callee", e);
95
+ return p("callee", e);
36
96
  };
37
- }(), L = !/* @__PURE__ */ {
97
+ }(), G = !/* @__PURE__ */ {
38
98
  toString: null
39
- }.propertyIsEnumerable("toString"), O = ["constructor", "valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"], S = /* @__PURE__ */ function() {
99
+ }.propertyIsEnumerable("toString"), S = ["constructor", "valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"], D = /* @__PURE__ */ function() {
40
100
  return arguments.propertyIsEnumerable("length");
41
- }(), W = function(e, r) {
101
+ }(), X = function(e, r) {
42
102
  for (var n = 0; n < e.length; ) {
43
103
  if (e[n] === r)
44
104
  return !0;
45
105
  n += 1;
46
106
  }
47
107
  return !1;
48
- }, D = typeof Object.keys == "function" && !S ? /* @__PURE__ */ c(function(e) {
108
+ }, E = /* @__PURE__ */ a(typeof Object.keys == "function" && !D ? function(e) {
49
109
  return Object(e) !== e ? [] : Object.keys(e);
50
- }) : /* @__PURE__ */ c(function(e) {
110
+ } : function(e) {
51
111
  if (Object(e) !== e)
52
112
  return [];
53
- var r, n, o = [], i = S && C(e);
113
+ var r, n, o = [], i = D && $(e);
54
114
  for (r in e)
55
- f(r, e) && (!i || r !== "length") && (o[o.length] = r);
56
- if (L)
57
- for (n = O.length - 1; n >= 0; )
58
- r = O[n], f(r, e) && !W(o, r) && (o[o.length] = r), n -= 1;
115
+ p(r, e) && (!i || r !== "length") && (o[o.length] = r);
116
+ if (G)
117
+ for (n = S.length - 1; n >= 0; )
118
+ r = S[n], p(r, e) && !X(o, r) && (o[o.length] = r), n -= 1;
59
119
  return o;
60
- }), E = /* @__PURE__ */ c(function(e) {
120
+ }), _ = /* @__PURE__ */ a(function(e) {
61
121
  return e === null ? "Null" : e === void 0 ? "Undefined" : Object.prototype.toString.call(e).slice(8, -1);
62
122
  });
63
- function _(t, e, r, n) {
64
- var o = b(t), i = b(e);
65
- function l(a, d) {
66
- return v(a, d, r.slice(), n.slice());
123
+ function C(t, e, r, n) {
124
+ var o = A(t), i = A(e);
125
+ function l(s, h) {
126
+ return b(s, h, r.slice(), n.slice());
67
127
  }
68
- return !A(function(a, d) {
69
- return !A(l, d, a);
128
+ return !k(function(s, h) {
129
+ return !k(l, h, s);
70
130
  }, i, o);
71
131
  }
72
- function v(t, e, r, n) {
73
- if (y(t, e))
132
+ function b(t, e, r, n) {
133
+ if (v(t, e))
74
134
  return !0;
75
- var o = E(t);
76
- if (o !== E(e))
135
+ var o = _(t);
136
+ if (o !== _(e))
77
137
  return !1;
78
138
  if (typeof t["fantasy-land/equals"] == "function" || typeof e["fantasy-land/equals"] == "function")
79
139
  return typeof t["fantasy-land/equals"] == "function" && t["fantasy-land/equals"](e) && typeof e["fantasy-land/equals"] == "function" && e["fantasy-land/equals"](t);
@@ -83,17 +143,17 @@ function v(t, e, r, n) {
83
143
  case "Arguments":
84
144
  case "Array":
85
145
  case "Object":
86
- if (typeof t.constructor == "function" && U(t.constructor) === "Promise")
146
+ if (typeof t.constructor == "function" && V(t.constructor) === "Promise")
87
147
  return t === e;
88
148
  break;
89
149
  case "Boolean":
90
150
  case "Number":
91
151
  case "String":
92
- if (!(typeof t == typeof e && y(t.valueOf(), e.valueOf())))
152
+ if (!(typeof t == typeof e && v(t.valueOf(), e.valueOf())))
93
153
  return !1;
94
154
  break;
95
155
  case "Date":
96
- if (!y(t.valueOf(), e.valueOf()))
156
+ if (!v(t.valueOf(), e.valueOf()))
97
157
  return !1;
98
158
  break;
99
159
  case "Error":
@@ -110,9 +170,9 @@ function v(t, e, r, n) {
110
170
  }
111
171
  switch (o) {
112
172
  case "Map":
113
- return t.size !== e.size ? !1 : _(t.entries(), e.entries(), r.concat([t]), n.concat([e]));
173
+ return t.size !== e.size ? !1 : C(t.entries(), e.entries(), r.concat([t]), n.concat([e]));
114
174
  case "Set":
115
- return t.size !== e.size ? !1 : _(t.values(), e.values(), r.concat([t]), n.concat([e]));
175
+ return t.size !== e.size ? !1 : C(t.values(), e.values(), r.concat([t]), n.concat([e]));
116
176
  case "Arguments":
117
177
  case "Array":
118
178
  case "Object":
@@ -136,90 +196,60 @@ function v(t, e, r, n) {
136
196
  default:
137
197
  return !1;
138
198
  }
139
- var l = D(t);
140
- if (l.length !== D(e).length)
199
+ var l = E(t);
200
+ if (l.length !== E(e).length)
141
201
  return !1;
142
- var a = r.concat([t]), d = n.concat([e]);
202
+ var s = r.concat([t]), h = n.concat([e]);
143
203
  for (i = l.length - 1; i >= 0; ) {
144
- var p = l[i];
145
- if (!(f(p, e) && v(e[p], t[p], a, d)))
204
+ var y = l[i];
205
+ if (!(p(y, e) && b(e[y], t[y], s, h)))
146
206
  return !1;
147
207
  i -= 1;
148
208
  }
149
209
  return !0;
150
210
  }
151
- var B = /* @__PURE__ */ M(function(e, r) {
152
- return v(e, r, [], []);
211
+ var J = /* @__PURE__ */ B(function(e, r) {
212
+ return b(e, r, [], []);
153
213
  });
154
- function K(t) {
214
+ function Q(t) {
155
215
  return Object.prototype.toString.call(t) === "[object Object]";
156
216
  }
157
- function V(t) {
217
+ function Z(t) {
158
218
  return Object.prototype.toString.call(t) === "[object String]";
159
219
  }
160
- var Y = /* @__PURE__ */ c(function(e) {
220
+ var ee = /* @__PURE__ */ a(function(e) {
161
221
  return !e;
162
222
  });
163
- function G(t) {
223
+ function te(t) {
164
224
  var e = Object.prototype.toString.call(t);
165
225
  return e === "[object Uint8ClampedArray]" || e === "[object Int8Array]" || e === "[object Uint8Array]" || e === "[object Int16Array]" || e === "[object Uint16Array]" || e === "[object Int32Array]" || e === "[object Uint32Array]" || e === "[object Float32Array]" || e === "[object Float64Array]" || e === "[object BigInt64Array]" || e === "[object BigUint64Array]";
166
226
  }
167
- var X = /* @__PURE__ */ c(function(e) {
168
- return e != null && typeof e["fantasy-land/empty"] == "function" ? e["fantasy-land/empty"]() : e != null && e.constructor != null && typeof e.constructor["fantasy-land/empty"] == "function" ? e.constructor["fantasy-land/empty"]() : e != null && typeof e.empty == "function" ? e.empty() : e != null && e.constructor != null && typeof e.constructor.empty == "function" ? e.constructor.empty() : e == Set || e instanceof Set ? /* @__PURE__ */ new Set() : e == Map || e instanceof Map ? /* @__PURE__ */ new Map() : N(e) ? [] : V(e) ? "" : K(e) ? {} : C(e) ? /* @__PURE__ */ function() {
227
+ var re = /* @__PURE__ */ a(function(e) {
228
+ return e != null && typeof e["fantasy-land/empty"] == "function" ? e["fantasy-land/empty"]() : e != null && e.constructor != null && typeof e.constructor["fantasy-land/empty"] == "function" ? e.constructor["fantasy-land/empty"]() : e != null && typeof e.empty == "function" ? e.empty() : e != null && e.constructor != null && typeof e.constructor.empty == "function" ? e.constructor.empty() : e == Set || e instanceof Set ? /* @__PURE__ */ new Set() : e == Map || e instanceof Map ? /* @__PURE__ */ new Map() : K(e) ? [] : Z(e) ? "" : Q(e) ? {} : $(e) ? /* @__PURE__ */ function() {
169
229
  return arguments;
170
- }() : G(e) ? e.constructor.from("") : void 0;
171
- }), J = /* @__PURE__ */ c(function(e) {
172
- return e != null && B(e, X(e));
230
+ }() : te(e) ? e.constructor.from("") : void 0;
231
+ }), ne = /* @__PURE__ */ a(function(e) {
232
+ return e != null && J(e, re(e));
173
233
  });
174
- const Q = ':host{display:block;overflow:auto;block-size:inherit;max-block-size:inherit}ol{padding:0;margin:0;list-style:none}[role=grid i]{position:relative;z-index:0;display:grid;margin:auto;grid-template-areas:"filler column-headers" "row-headers calendar";grid-template-columns:min-content auto;inline-size:max(100%,500px);min-inline-size:880px}.row-headers{display:grid;grid-area:row-headers;grid-template-rows:repeat(24,1fr);margin-inline-end:2px}.row-headers>[role=rowheader i]{display:flex;align-items:flex-end;justify-content:flex-end}.row-headers>[role=rowheader i]>time{font:var(--vvd-typography-base-condensed);font-size:small;line-height:1;text-transform:uppercase;white-space:nowrap}.sticky-column .row-headers,.sticky-all .row-headers{position:sticky;z-index:1;background-color:var(--calendar-column-background-color, var(--vvd-color-canvas));inset-inline-start:0;margin-inline-end:3px}.calendar-row{display:contents}.calendar-grid-presentation{display:grid;overflow:hidden;border-radius:8px;background:var(--vvd-color-surface-2dp);counter-reset:listing;filter:var(--vvd-shadow-surface-2dp);gap:1px;grid-area:calendar;grid-auto-flow:column;grid-template:repeat(24,1fr)/repeat(7,1fr)}.hours{display:contents}.hours>[role=listitem i]{position:relative;grid-column:1/8;grid-row:var(--row);min-block-size:calc(1px*(48 + 4*clamp(-1,var(--vvd-size-density, 0),2)));pointer-events:none}.hours>[role=listitem i]:not(:first-child):after{position:absolute;border-block-end:var(--vvd-color-neutral-100) 1px solid;content:"";inline-size:100%;margin-block-start:-1px}.hours>[role=listitem i]:nth-child(24n+1){--row: 1}.hours>[role=listitem i]:nth-child(24n+2){--row: 2}.hours>[role=listitem i]:nth-child(24n+3){--row: 3}.hours>[role=listitem i]:nth-child(24n+4){--row: 4}.hours>[role=listitem i]:nth-child(24n+5){--row: 5}.hours>[role=listitem i]:nth-child(24n+6){--row: 6}.hours>[role=listitem i]:nth-child(24n+7){--row: 7}.hours>[role=listitem i]:nth-child(24n+8){--row: 8}.hours>[role=listitem i]:nth-child(24n+9){--row: 9}.hours>[role=listitem i]:nth-child(24n+10){--row: 10}.hours>[role=listitem i]:nth-child(24n+11){--row: 11}.hours>[role=listitem i]:nth-child(24n+12){--row: 12}.hours>[role=listitem i]:nth-child(24n+13){--row: 13}.hours>[role=listitem i]:nth-child(24n+14){--row: 14}.hours>[role=listitem i]:nth-child(24n+15){--row: 15}.hours>[role=listitem i]:nth-child(24n+16){--row: 16}.hours>[role=listitem i]:nth-child(24n+17){--row: 17}.hours>[role=listitem i]:nth-child(24n+18){--row: 18}.hours>[role=listitem i]:nth-child(24n+19){--row: 19}.hours>[role=listitem i]:nth-child(24n+20){--row: 20}.hours>[role=listitem i]:nth-child(24n+21){--row: 21}.hours>[role=listitem i]:nth-child(24n+22){--row: 22}.hours>[role=listitem i]:nth-child(24n+23){--row: 23}.hours>[role=listitem i]:nth-child(24n+24){--row: 24}[role=gridcell i]{display:grid;gap:1px;grid-auto-flow:column}[role=gridcell i],[role=columnheader i],[role=columnheader i] [role=button i]{position:relative}[role=gridcell i]:before,[role=columnheader i]:before,[role=columnheader i] [role=button i]:before{position:absolute;z-index:-1;background-color:var(--vvd-color-information-400);content:"";inset:0}[role=gridcell i]:focus,[role=columnheader i]:focus,[role=columnheader i] [role=button i]:focus{outline:none}[role=gridcell i]:not(:focus-visible):before,[role=columnheader i]:not(:focus-visible):before,[role=columnheader i] [role=button i]:not(:focus-visible):before{display:none}.columns{display:contents}.columns>[role=gridcell i]{position:relative;grid-column:var(--column);grid-row:1/25}.columns>[role=gridcell i]:nth-child(1){--column: 1}.columns>[role=gridcell i]:nth-child(2){--column: 2}.columns>[role=gridcell i]:nth-child(3){--column: 3}.columns>[role=gridcell i]:nth-child(4){--column: 4}.columns>[role=gridcell i]:nth-child(5){--column: 5}.columns>[role=gridcell i]:nth-child(6){--column: 6}.columns>[role=gridcell i]:nth-child(7){--column: 7}.columns>[role=gridcell i]:not(:first-child):after{position:absolute;block-size:100%;border-inline-end:var(--vvd-color-neutral-100) 1px solid;content:"";margin-inline-start:-1px}.column-headers{display:grid;grid-area:column-headers;grid-template-columns:repeat(7,1fr)}.column-headers [role=columnheader i] h2{display:grid;align-items:baseline;margin:0;font:var(--vvd-typography-heading-4);grid-template-columns:1fr auto 1fr}.column-headers [role=columnheader i] h2>em{font:inherit;inline-size:min-content;inset-inline-start:0}.column-headers [role=columnheader i] h2>small{font:var(--vvd-typography-base-condensed);text-transform:uppercase}.sticky-header .column-headers,.sticky-all .column-headers{position:sticky;z-index:1;background-color:var(--calendar-header-background-color, var(--vvd-color-canvas));inset-block-start:0;margin-block-end:3px}.filler{background-color:transparent;grid-area:filler}.sticky-header .filler,.sticky-all .filler,.sticky-column .filler{position:sticky;z-index:2;background-color:var(--calendar-header-background-color, var(--vvd-color-canvas));margin-block-end:3px}.sticky-column .filler{inset-inline-start:0}.sticky-header .filler{inset-block-start:0}.sticky-all .filler{inset-block-start:0;inset-inline-start:0}', j = "ArrowUp", x = "ArrowRight", w = "ArrowDown", I = "ArrowLeft";
175
- function Z(t) {
176
- return t instanceof HTMLElement && (t.matches('[role="gridcell"i]') || t.matches('[role="columnheader"i]'));
177
- }
178
- const ee = (t) => t.matches('[role="columnheader"i]') ? '[role="gridcell"i]' : '[role="columnheader"i]';
179
- function te(t, e) {
180
- if (e.parentNode instanceof HTMLElement)
181
- switch (t) {
182
- case x:
183
- return e.nextElementSibling || e.parentNode.firstElementChild;
184
- case I:
185
- return e.previousElementSibling || e.parentNode.lastElementChild;
186
- case j:
187
- case w: {
188
- const { children: r } = e.parentNode, n = Array.from(r).indexOf(e);
189
- return this.shadowRoot.querySelector(
190
- `${ee(e)}:nth-child(${n + 1})`
191
- );
192
- }
193
- }
194
- }
195
- function re(t, e) {
196
- if (t !== w)
197
- return;
198
- const r = e.closest('[role="columnheader"i]'), n = this.shadowRoot.querySelectorAll(
199
- '[role="columnheader"i]'
200
- ), o = Array.from(n).indexOf(r);
201
- return this.shadowRoot.querySelector(
202
- `[role="gridcell"i]:nth-child(${o + 1})`
203
- );
204
- }
205
- function ne(t) {
234
+ function oe(t) {
206
235
  const e = t.closest('[role="gridcell"i], [role="columnheader"i]');
207
236
  if (e) {
208
237
  const { parentElement: r } = e;
238
+ /* v8 ignore else -- @preserve */
209
239
  if (r)
210
240
  return r.children && Array.from(r.children).indexOf(e);
211
241
  }
212
242
  }
213
- function oe(t, e, r) {
243
+ function ie(t, e, r) {
214
244
  const n = e.closest(
215
245
  '[role="rowheader"], [role="gridcell"i]'
216
246
  );
217
247
  if (n) {
218
- const o = n.getBoundingClientRect(), i = t.clientY - o.y, l = o.height / r, a = i / l;
219
- return Math.round((a + Number.EPSILON) * 100) / 100;
248
+ const o = n.getBoundingClientRect(), i = t.clientY - o.y, l = o.height / r, s = i / l;
249
+ return Math.round((s + Number.EPSILON) * 100) / 100;
220
250
  }
221
251
  }
222
- const ie = function(t) {
252
+ const le = function(t) {
223
253
  if (!(t instanceof KeyboardEvent || t instanceof MouseEvent))
224
254
  throw new Error(
225
255
  "Invalid event. Event must be instance of KeyboardEvent or MouseEvent"
@@ -229,39 +259,39 @@ const ie = function(t) {
229
259
  throw new Error(
230
260
  "Invalid event. Event must contain a target object which is a direct descendant of calendar"
231
261
  );
232
- const r = ne(e);
262
+ const r = oe(e);
233
263
  let n;
234
- t instanceof MouseEvent && (n = oe(t, e, this._hours));
264
+ t instanceof MouseEvent && (n = ie(t, e, this._hours));
235
265
  const o = {
236
266
  ...r != null && { day: r },
237
267
  ...n != null && { hour: n }
238
268
  };
239
- return Y(J(o)) ? o : null;
269
+ return ee(ne(o)) ? o : null;
240
270
  };
241
- var le = Object.defineProperty, m = (t, e, r, n) => {
271
+ var ae = Object.defineProperty, f = (t, e, r, n) => {
242
272
  for (var o = void 0, i = t.length - 1, l; i >= 0; i--)
243
273
  (l = t[i]) && (o = l(e, r, o) || o);
244
- return o && le(e, r, o), o;
274
+ return o && ae(e, r, o), o;
245
275
  };
246
- const ae = (t) => {
276
+ const se = (t) => {
247
277
  const e = window.getComputedStyle(t).overflowY, r = window.getComputedStyle(t).overflowX;
248
278
  return {
249
279
  vertical: (e === "auto" || e === "scroll") && t.scrollHeight > t.clientHeight,
250
280
  horizontal: (r === "auto" || r === "scroll") && t.scrollWidth > t.clientWidth
251
281
  };
252
282
  };
253
- class u extends $ {
283
+ class d extends q {
254
284
  constructor() {
255
- super(...arguments), this.hour12 = !1, this.stickyMode = R.All, this._hours = 24, this._days = 7, this.hoursAsDatetime = Array.from({ length: this._hours - 1 }).fill(new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0))).map((e, r) => new Date(e.setHours(++r))), this._generateDaysArr = (e) => {
285
+ super(...arguments), this.hour12 = !1, this.stickyMode = T.All, this._hours = 24, this._days = 7, this.hoursAsDatetime = Array.from({ length: this._hours - 1 }).fill(new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0))).map((e, r) => new Date(e.setHours(++r))), this._generateDaysArr = (e) => {
256
286
  if (e.length == this._days)
257
287
  return e;
258
288
  const r = new Date(e[e.length - 1]);
259
289
  return r.setDate(r.getDate() + 1), this._generateDaysArr([...e, r]);
260
- }, this.getEventContext = ie;
290
+ }, this.getEventContext = le;
261
291
  }
262
292
  get #e() {
263
293
  const { activeElement: e } = document;
264
- return e instanceof T ? e : null;
294
+ return e instanceof M ? e : null;
265
295
  }
266
296
  getCalendarEventContainingCell(e) {
267
297
  const r = e.getAttribute("slot");
@@ -272,9 +302,9 @@ class u extends $ {
272
302
  arrowKeysInteractions(e) {
273
303
  const { activeElement: r } = this.shadowRoot;
274
304
  let n;
275
- Z(r) ? n = te.call(this, e, r) : this.#e ? n = this.getCalendarEventContainingCell(
305
+ P(r) ? n = L.call(this, e, r) : this.#e ? n = this.getCalendarEventContainingCell(
276
306
  this.#e
277
- ) : r?.matches('em[role="button"i]') ? n = re.call(
307
+ ) : r?.matches('em[role="button"i]') ? n = W.call(
278
308
  this,
279
309
  e,
280
310
  r
@@ -296,52 +326,52 @@ class u extends $ {
296
326
  super.connectedCallback(), this.initializeScrollPosition();
297
327
  }
298
328
  initializeScrollPosition() {
299
- if (!ae(this).vertical)
329
+ if (!se(this).vertical)
300
330
  return;
301
331
  const n = this.scrollHeight / this._hours * (8 - 1);
302
- q.enqueue(() => {
332
+ z.enqueue(() => {
303
333
  this.scrollTo({
304
334
  top: n
305
335
  });
306
336
  });
307
337
  }
308
338
  }
309
- m([
310
- h
311
- ], u.prototype, "datetime");
312
- m([
313
- h({ attribute: "start-day" })
314
- ], u.prototype, "startDay");
315
- m([
316
- h
317
- ], u.prototype, "locales");
318
- m([
319
- h({ mode: "boolean" })
320
- ], u.prototype, "hour12");
321
- m([
322
- h({ attribute: "sticky-mode", mode: "fromView" })
323
- ], u.prototype, "stickyMode");
324
- function se(t) {
339
+ f([
340
+ m
341
+ ], d.prototype, "datetime");
342
+ f([
343
+ m({ attribute: "start-day" })
344
+ ], d.prototype, "startDay");
345
+ f([
346
+ m
347
+ ], d.prototype, "locales");
348
+ f([
349
+ m({ mode: "boolean" })
350
+ ], d.prototype, "hour12");
351
+ f([
352
+ m({ attribute: "sticky-mode", mode: "fromView" })
353
+ ], d.prototype, "stickyMode");
354
+ function ce(t) {
325
355
  const e = (r) => `0${r}`.slice(-2);
326
356
  return `${t.getFullYear()}-${e(t.getMonth() + 1)}-${e(
327
357
  t.getDate()
328
358
  )}`;
329
359
  }
330
- const ce = /* @__PURE__ */ new Map([
360
+ const ue = /* @__PURE__ */ new Map([
331
361
  ["sunday", 0],
332
362
  ["monday", 1]
333
363
  ]);
334
- function ue(t = /* @__PURE__ */ new Date(), e) {
364
+ function de(t = /* @__PURE__ */ new Date(), e) {
335
365
  t = new Date(t);
336
- let r = ce.get(e);
366
+ let r = ue.get(e);
337
367
  r ??= 1;
338
368
  const n = t.getDate() - (t.getDay() + 7 - r) % 7;
339
369
  return new Date(t.setDate(n));
340
370
  }
341
- const de = ({ stickyMode: t }) => F([`sticky-${t}`, !!t]), he = () => s` <div class="row-headers" role="row">
371
+ const he = ({ stickyMode: t }) => F([`sticky-${t}`, !!t]), me = () => c` <div class="row-headers" role="row">
342
372
  ${g(
343
373
  (t) => t.hoursAsDatetime,
344
- s`<span role="rowheader">
374
+ c`<span role="rowheader">
345
375
  <time
346
376
  datetime="${(t, e) => new Intl.DateTimeFormat(e.parent.locales, {
347
377
  hour: "numeric",
@@ -356,11 +386,11 @@ const de = ({ stickyMode: t }) => F([`sticky-${t}`, !!t]), he = () => s` <div cl
356
386
  </time>
357
387
  </span>`
358
388
  )}
359
- </div>`, me = () => s` <div class="column-headers" role="row">
389
+ </div>`, fe = () => c` <div class="column-headers" role="row">
360
390
  ${g(
361
- (t) => t._generateDaysArr([ue(t.datetime, t.startDay)]),
362
- s` <div role="columnheader" tabindex="-1">
363
- <time datetime=${(t) => se(t)}>
391
+ (t) => t._generateDaysArr([de(t.datetime, t.startDay)]),
392
+ c` <div role="columnheader" tabindex="-1">
393
+ <time datetime=${(t) => ce(t)}>
364
394
  <h2>
365
395
  <!-- TODO add to column aria-labelledby or describedby to count
366
396
  events and related day e.g. "3 events, Sunday, March 8" -->
@@ -386,29 +416,29 @@ const de = ({ stickyMode: t }) => F([`sticky-${t}`, !!t]), he = () => s` <div cl
386
416
  </time>
387
417
  </div>`
388
418
  )}
389
- </div>`, fe = s`
419
+ </div>`, ge = c`
390
420
  <div role="gridcell" tabindex="-1">
391
421
  <slot name="day-${(t, e) => e.index}"></slot>
392
422
  </div>
393
- `, ge = s`
423
+ `, pe = c`
394
424
  <div
395
425
  role="grid"
396
- class="${de}"
426
+ class="${he}"
397
427
  @keydown=${(t, e) => t.onKeydown(e.event)}
398
428
  >
399
429
  <div class="filler"></div>
400
- ${me}
430
+ ${fe}
401
431
  <div class="calendar-row" role="rowgroup">
402
- ${he}
432
+ ${me}
403
433
  <div class="calendar-grid-presentation" role="presentation">
404
434
  <div class="hours" role="list">
405
435
  ${g(
406
436
  (t) => Array.from({ length: t.hoursAsDatetime.length + 1 }),
407
- s` <div role="listitem"></div>`
437
+ c` <div role="listitem"></div>`
408
438
  )}
409
439
  </div>
410
440
  <div class="columns" role="row">
411
- ${g((t) => Array.from(Array(t._days)), fe, {
441
+ ${g((t) => Array.from(Array(t._days)), ge, {
412
442
  positioning: !0
413
443
  })}
414
444
  </div>
@@ -416,16 +446,16 @@ const de = ({ stickyMode: t }) => F([`sticky-${t}`, !!t]), he = () => s` <div cl
416
446
  </div>
417
447
  </div>
418
448
  </div>
419
- `, pe = H(
449
+ `, ye = R(
420
450
  "calendar",
421
- u,
422
- ge,
451
+ d,
452
+ pe,
423
453
  [],
424
454
  {
425
- styles: Q,
455
+ styles: N,
426
456
  shadowOptions: {
427
457
  delegatesFocus: !0
428
458
  }
429
459
  }
430
- ), ye = z(pe);
431
- ye();
460
+ ), ve = H(ye);
461
+ ve();
@@ -89,6 +89,7 @@ class Checkbox extends delegatesAria.DelegatesAria(
89
89
  * @internal
90
90
  */
91
91
  readOnlyChanged() {
92
+ /* v8 ignore if -- @preserve */
92
93
  if (this.proxy instanceof HTMLInputElement) {
93
94
  this.proxy.readOnly = this.readOnly;
94
95
  }
@@ -85,6 +85,7 @@ class Checkbox extends DelegatesAria(
85
85
  * @internal
86
86
  */
87
87
  readOnlyChanged() {
88
+ /* v8 ignore if -- @preserve */
88
89
  if (this.proxy instanceof HTMLInputElement) {
89
90
  this.proxy.readOnly = this.readOnly;
90
91
  }