@wirekyt/vue 0.0.1 → 0.0.2

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 (291) hide show
  1. package/dist/accordion.cjs +273 -0
  2. package/dist/accordion.d.cts +195 -0
  3. package/dist/accordion.d.ts +195 -0
  4. package/dist/accordion.js +250 -0
  5. package/dist/angle-slider.cjs +268 -0
  6. package/dist/angle-slider.d.cts +228 -0
  7. package/dist/angle-slider.d.ts +228 -0
  8. package/dist/angle-slider.js +244 -0
  9. package/dist/avatar.cjs +145 -0
  10. package/dist/avatar.d.cts +114 -0
  11. package/dist/avatar.d.ts +114 -0
  12. package/dist/avatar.js +126 -0
  13. package/dist/boolean-BCaEpMxQ.js +6 -0
  14. package/dist/boolean-Dyu9-5Wp.cjs +11 -0
  15. package/dist/carousel.cjs +342 -0
  16. package/dist/carousel.d.cts +303 -0
  17. package/dist/carousel.d.ts +303 -0
  18. package/dist/carousel.js +320 -0
  19. package/dist/checkbox.cjs +345 -0
  20. package/dist/checkbox.d.cts +272 -0
  21. package/dist/checkbox.d.ts +272 -0
  22. package/dist/checkbox.js +324 -0
  23. package/dist/clean-props--1kqQE0Y.js +8 -0
  24. package/dist/clean-props-MyKqus13.cjs +13 -0
  25. package/dist/client-only.cjs +17 -0
  26. package/dist/client-only.d.cts +18 -0
  27. package/dist/client-only.d.ts +18 -0
  28. package/dist/client-only.js +16 -0
  29. package/dist/clipboard.cjs +229 -0
  30. package/dist/clipboard.d.cts +203 -0
  31. package/dist/clipboard.d.ts +203 -0
  32. package/dist/clipboard.js +206 -0
  33. package/dist/collapsible-CEjnJlpm.js +179 -0
  34. package/dist/collapsible-aSz4kYqo.cjs +232 -0
  35. package/dist/collapsible.cjs +23 -0
  36. package/dist/collapsible.d.cts +161 -0
  37. package/dist/collapsible.d.ts +161 -0
  38. package/dist/collapsible.js +2 -0
  39. package/dist/collection-1IjtyI-g.cjs +254 -0
  40. package/dist/collection-Ea6ZCZKK.js +211 -0
  41. package/dist/collection.cjs +9 -0
  42. package/dist/collection.d.cts +2 -0
  43. package/dist/collection.d.ts +2 -0
  44. package/dist/collection.js +2 -0
  45. package/dist/color-picker.cjs +804 -0
  46. package/dist/color-picker.d.cts +605 -0
  47. package/dist/color-picker.d.ts +605 -0
  48. package/dist/color-picker.js +759 -0
  49. package/dist/combobox.cjs +552 -0
  50. package/dist/combobox.d.cts +442 -0
  51. package/dist/combobox.d.ts +442 -0
  52. package/dist/combobox.js +521 -0
  53. package/dist/create-split-props-BBxrD7TV.js +10 -0
  54. package/dist/create-split-props-Jx-IEwdk.cjs +15 -0
  55. package/dist/date-input.cjs +293 -0
  56. package/dist/date-input.d.cts +212 -0
  57. package/dist/date-input.d.ts +212 -0
  58. package/dist/date-input.js +270 -0
  59. package/dist/date-picker.cjs +821 -0
  60. package/dist/date-picker.d.cts +637 -0
  61. package/dist/date-picker.d.ts +637 -0
  62. package/dist/date-picker.js +776 -0
  63. package/dist/dialog.cjs +333 -0
  64. package/dist/dialog.d.cts +272 -0
  65. package/dist/dialog.d.ts +272 -0
  66. package/dist/dialog.js +308 -0
  67. package/dist/download-trigger.cjs +65 -0
  68. package/dist/download-trigger.d.cts +34 -0
  69. package/dist/download-trigger.d.ts +34 -0
  70. package/dist/download-trigger.js +63 -0
  71. package/dist/drawer.cjs +448 -0
  72. package/dist/drawer.d.cts +346 -0
  73. package/dist/drawer.d.ts +346 -0
  74. package/dist/drawer.js +415 -0
  75. package/dist/editable.cjs +331 -0
  76. package/dist/editable.d.cts +285 -0
  77. package/dist/editable.d.ts +285 -0
  78. package/dist/editable.js +306 -0
  79. package/dist/factory-8Ao0DEy3.js +34 -0
  80. package/dist/factory-BNwuanv4.d.cts +21 -0
  81. package/dist/factory-BNwuanv4.d.ts +21 -0
  82. package/dist/factory-JL7MPjkk.cjs +45 -0
  83. package/dist/field-C3pLqz1S.js +435 -0
  84. package/dist/field-DRz-v4rB.cjs +524 -0
  85. package/dist/field.cjs +22 -0
  86. package/dist/field.d.cts +344 -0
  87. package/dist/field.d.ts +344 -0
  88. package/dist/field.js +2 -0
  89. package/dist/fieldset-ByP_r1Uq.js +216 -0
  90. package/dist/fieldset-C5aj6Ims.cjs +275 -0
  91. package/dist/fieldset.cjs +17 -0
  92. package/dist/fieldset.d.cts +159 -0
  93. package/dist/fieldset.d.ts +159 -0
  94. package/dist/fieldset.js +2 -0
  95. package/dist/file-upload.cjs +421 -0
  96. package/dist/file-upload.d.cts +327 -0
  97. package/dist/file-upload.d.ts +327 -0
  98. package/dist/file-upload.js +392 -0
  99. package/dist/floating-panel.cjs +412 -0
  100. package/dist/floating-panel.d.cts +337 -0
  101. package/dist/floating-panel.d.ts +337 -0
  102. package/dist/floating-panel.js +383 -0
  103. package/dist/focus-trap.cjs +79 -0
  104. package/dist/focus-trap.d.cts +46 -0
  105. package/dist/focus-trap.d.ts +46 -0
  106. package/dist/focus-trap.js +78 -0
  107. package/dist/format.cjs +116 -0
  108. package/dist/format.d.cts +46 -0
  109. package/dist/format.d.ts +46 -0
  110. package/dist/format.js +106 -0
  111. package/dist/frame.cjs +93 -0
  112. package/dist/frame.d.cts +37 -0
  113. package/dist/frame.d.ts +37 -0
  114. package/dist/frame.js +92 -0
  115. package/dist/highlight.cjs +44 -0
  116. package/dist/highlight.d.cts +32 -0
  117. package/dist/highlight.d.ts +32 -0
  118. package/dist/highlight.js +42 -0
  119. package/dist/hover-card.cjs +269 -0
  120. package/dist/hover-card.d.cts +202 -0
  121. package/dist/hover-card.d.ts +202 -0
  122. package/dist/hover-card.js +246 -0
  123. package/dist/image-cropper.cjs +252 -0
  124. package/dist/image-cropper.d.cts +207 -0
  125. package/dist/image-cropper.d.ts +207 -0
  126. package/dist/image-cropper.js +235 -0
  127. package/dist/index-B-o8jLyV.d.cts +31 -0
  128. package/dist/index-BSoF1D-v.d.ts +31 -0
  129. package/dist/index-BTNfeIXf.d.ts +104 -0
  130. package/dist/index-C6Q2DqG6.d.ts +37 -0
  131. package/dist/index-CG9mpPgL.d.cts +444 -0
  132. package/dist/index-Cc4qS0rQ.d.cts +38 -0
  133. package/dist/index-Cc4qS0rQ.d.ts +38 -0
  134. package/dist/index-DB2uALlJ.d.cts +74 -0
  135. package/dist/index-DXb0W_NP.d.cts +37 -0
  136. package/dist/index-Zc9P69Ka.d.cts +104 -0
  137. package/dist/index-aMWdJRGL.d.ts +444 -0
  138. package/dist/index-uLE-tXSk.d.ts +74 -0
  139. package/dist/index.cjs +43 -0
  140. package/dist/index.d.cts +5 -0
  141. package/dist/index.d.ts +5 -0
  142. package/dist/index.js +7 -0
  143. package/dist/json-tree-view.cjs +346 -0
  144. package/dist/json-tree-view.d.cts +86 -0
  145. package/dist/json-tree-view.d.ts +86 -0
  146. package/dist/json-tree-view.js +336 -0
  147. package/dist/listbox.cjs +386 -0
  148. package/dist/listbox.d.cts +323 -0
  149. package/dist/listbox.d.ts +323 -0
  150. package/dist/listbox.js +361 -0
  151. package/dist/marquee.cjs +256 -0
  152. package/dist/marquee.d.cts +208 -0
  153. package/dist/marquee.d.ts +208 -0
  154. package/dist/marquee.js +235 -0
  155. package/dist/menu.cjs +650 -0
  156. package/dist/menu.d.cts +501 -0
  157. package/dist/menu.d.ts +501 -0
  158. package/dist/menu.js +613 -0
  159. package/dist/navigation-menu.cjs +408 -0
  160. package/dist/navigation-menu.d.cts +271 -0
  161. package/dist/navigation-menu.d.ts +271 -0
  162. package/dist/navigation-menu.js +380 -0
  163. package/dist/number-input.cjs +298 -0
  164. package/dist/number-input.d.cts +253 -0
  165. package/dist/number-input.d.ts +253 -0
  166. package/dist/number-input.js +274 -0
  167. package/dist/pagination.cjs +249 -0
  168. package/dist/pagination.d.cts +209 -0
  169. package/dist/pagination.d.ts +209 -0
  170. package/dist/pagination.js +226 -0
  171. package/dist/password-input.cjs +232 -0
  172. package/dist/password-input.d.cts +208 -0
  173. package/dist/password-input.d.ts +208 -0
  174. package/dist/password-input.js +210 -0
  175. package/dist/pin-input.cjs +245 -0
  176. package/dist/pin-input.d.cts +199 -0
  177. package/dist/pin-input.d.ts +199 -0
  178. package/dist/pin-input.js +224 -0
  179. package/dist/popover.cjs +377 -0
  180. package/dist/popover.d.cts +324 -0
  181. package/dist/popover.d.ts +324 -0
  182. package/dist/popover.js +349 -0
  183. package/dist/presence-DD3l4Tgb.cjs +60 -0
  184. package/dist/presence-jaHZaD_O.js +43 -0
  185. package/dist/presence.cjs +7 -0
  186. package/dist/presence.d.cts +3 -0
  187. package/dist/presence.d.ts +3 -0
  188. package/dist/presence.js +3 -0
  189. package/dist/progress.cjs +270 -0
  190. package/dist/progress.d.cts +229 -0
  191. package/dist/progress.d.ts +229 -0
  192. package/dist/progress.js +245 -0
  193. package/dist/providers-5QhcwgSd.cjs +190 -0
  194. package/dist/providers-C3XQH-uu.js +119 -0
  195. package/dist/qr-code.cjs +195 -0
  196. package/dist/qr-code.d.cts +157 -0
  197. package/dist/qr-code.d.ts +157 -0
  198. package/dist/qr-code.js +174 -0
  199. package/dist/radio-group.cjs +274 -0
  200. package/dist/radio-group.d.cts +230 -0
  201. package/dist/radio-group.d.ts +230 -0
  202. package/dist/radio-group.js +249 -0
  203. package/dist/rating-group.cjs +243 -0
  204. package/dist/rating-group.d.cts +200 -0
  205. package/dist/rating-group.d.ts +200 -0
  206. package/dist/rating-group.js +220 -0
  207. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  208. package/dist/rolldown-runtime-DakpK96I.cjs +43 -0
  209. package/dist/scroll-area.cjs +206 -0
  210. package/dist/scroll-area.d.cts +169 -0
  211. package/dist/scroll-area.d.ts +169 -0
  212. package/dist/scroll-area.js +184 -0
  213. package/dist/segment-group.cjs +318 -0
  214. package/dist/segment-group.d.cts +229 -0
  215. package/dist/segment-group.d.ts +229 -0
  216. package/dist/segment-group.js +298 -0
  217. package/dist/select.cjs +560 -0
  218. package/dist/select.d.cts +430 -0
  219. package/dist/select.d.ts +430 -0
  220. package/dist/select.js +523 -0
  221. package/dist/signature-pad.cjs +260 -0
  222. package/dist/signature-pad.d.cts +200 -0
  223. package/dist/signature-pad.d.ts +200 -0
  224. package/dist/signature-pad.js +237 -0
  225. package/dist/slider.cjs +350 -0
  226. package/dist/slider.d.cts +299 -0
  227. package/dist/slider.d.ts +299 -0
  228. package/dist/slider.js +323 -0
  229. package/dist/splitter.cjs +225 -0
  230. package/dist/splitter.d.cts +166 -0
  231. package/dist/splitter.d.ts +166 -0
  232. package/dist/splitter.js +198 -0
  233. package/dist/steps.cjs +348 -0
  234. package/dist/steps.d.cts +289 -0
  235. package/dist/steps.d.ts +289 -0
  236. package/dist/steps.js +319 -0
  237. package/dist/swap.cjs +154 -0
  238. package/dist/swap.d.cts +98 -0
  239. package/dist/swap.d.ts +98 -0
  240. package/dist/swap.js +141 -0
  241. package/dist/switch.cjs +213 -0
  242. package/dist/switch.d.cts +177 -0
  243. package/dist/switch.d.ts +177 -0
  244. package/dist/switch.js +192 -0
  245. package/dist/tabs.cjs +240 -0
  246. package/dist/tabs.d.cts +179 -0
  247. package/dist/tabs.d.ts +179 -0
  248. package/dist/tabs.js +218 -0
  249. package/dist/tags-input.cjs +405 -0
  250. package/dist/tags-input.d.cts +340 -0
  251. package/dist/tags-input.d.ts +340 -0
  252. package/dist/tags-input.js +376 -0
  253. package/dist/timer.cjs +221 -0
  254. package/dist/timer.d.cts +176 -0
  255. package/dist/timer.d.ts +176 -0
  256. package/dist/timer.js +199 -0
  257. package/dist/toast.cjs +211 -0
  258. package/dist/toast.d.cts +157 -0
  259. package/dist/toast.d.ts +157 -0
  260. package/dist/toast.js +189 -0
  261. package/dist/toggle-group.cjs +150 -0
  262. package/dist/toggle-group.d.cts +122 -0
  263. package/dist/toggle-group.d.ts +122 -0
  264. package/dist/toggle-group.js +132 -0
  265. package/dist/toggle.cjs +107 -0
  266. package/dist/toggle.d.cts +98 -0
  267. package/dist/toggle.d.ts +98 -0
  268. package/dist/toggle.js +94 -0
  269. package/dist/tooltip.cjs +265 -0
  270. package/dist/tooltip.d.cts +204 -0
  271. package/dist/tooltip.d.ts +204 -0
  272. package/dist/tooltip.js +242 -0
  273. package/dist/tour.cjs +418 -0
  274. package/dist/tour.d.cts +304 -0
  275. package/dist/tour.d.ts +304 -0
  276. package/dist/tour.js +374 -0
  277. package/dist/tree-view-CWH9tv7s.cjs +651 -0
  278. package/dist/tree-view-CZcXMwi6.js +508 -0
  279. package/dist/tree-view.cjs +41 -0
  280. package/dist/tree-view.d.cts +3 -0
  281. package/dist/tree-view.d.ts +3 -0
  282. package/dist/tree-view.js +3 -0
  283. package/dist/types-rSRkzyd6.d.cts +13 -0
  284. package/dist/types-rSRkzyd6.d.ts +13 -0
  285. package/dist/use-presence-BSp_dR-C.d.cts +22 -0
  286. package/dist/use-presence-CtEY6ZT8.cjs +49 -0
  287. package/dist/use-presence-DkGU_j9h.d.ts +22 -0
  288. package/dist/use-presence-oNdFU2c2.js +42 -0
  289. package/dist/utils-D95V66v9.js +548 -0
  290. package/dist/utils-XrBZd2Yk.cjs +625 -0
  291. package/package.json +278 -6
@@ -0,0 +1,776 @@
1
+ import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
2
+ import { a as mergeProps$1, c as normalizeProps$1, d as useForwardExpose, m as createContext, n as RenderStrategyPropsProvider, s as useMachine } from "./utils-D95V66v9.js";
3
+ import { a as DEFAULT_LOCALE, d as useEnvironmentContext, o as useLocaleContext, u as DEFAULT_ENVIRONMENT } from "./providers-C3XQH-uu.js";
4
+ import { t as cleanProps } from "./clean-props--1kqQE0Y.js";
5
+ import { n as wire } from "./factory-8Ao0DEy3.js";
6
+ import { n as PresenceProvider, r as usePresenceContext } from "./presence-jaHZaD_O.js";
7
+ import { t as usePresence } from "./use-presence-oNdFU2c2.js";
8
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, defineComponent, guardReactiveProps, mergeDefaults, mergeProps, normalizeProps, openBlock, renderList, renderSlot, toDisplayString, toValue, unref, useId, withCtx } from "vue";
9
+ import { uniq } from "@wirekyt/dom/utils";
10
+ import * as datePicker from "@wirekyt/dom/machines/date-picker";
11
+ import { anatomy, parse as parseDate } from "@wirekyt/dom/machines/date-picker";
12
+ //#region src/components/date-picker/use-context.ts
13
+ const [DatePickerProvider, useDatePickerContext] = createContext("DatePickerContext");
14
+ //#endregion
15
+ //#region src/components/date-picker/clear-trigger.vue
16
+ const _sfc_main = /*@__PURE__*/ defineComponent({
17
+ __name: "clear-trigger",
18
+ props: { asChild: { type: Boolean } },
19
+ setup(__props) {
20
+ const datePicker = useDatePickerContext();
21
+ useForwardExpose();
22
+ return (_ctx, _cache) => {
23
+ return openBlock(), createBlock(unref(wire).button, mergeProps(unref(datePicker).getClearTriggerProps(), { "as-child": __props.asChild }), {
24
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
25
+ _: 3
26
+ }, 16, ["as-child"]);
27
+ };
28
+ }
29
+ });
30
+ //#endregion
31
+ //#region src/components/date-picker/content.vue
32
+ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
33
+ __name: "content",
34
+ props: { asChild: { type: Boolean } },
35
+ setup(__props) {
36
+ const datePicker = useDatePickerContext();
37
+ const presence = usePresenceContext();
38
+ const mergedProps = computed(() => mergeProps$1(datePicker.value.getContentProps(), presence.value.presenceProps));
39
+ useForwardExpose();
40
+ return (_ctx, _cache) => {
41
+ return !unref(presence).unmounted ? (openBlock(), createBlock(unref(wire).div, mergeProps({ key: 0 }, mergedProps.value, { "as-child": __props.asChild }), {
42
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
43
+ _: 3
44
+ }, 16, ["as-child"])) : createCommentVNode("v-if", true);
45
+ };
46
+ }
47
+ });
48
+ //#endregion
49
+ //#region src/components/date-picker/context.vue
50
+ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
51
+ __name: "context",
52
+ setup(__props) {
53
+ const datePicker = useDatePickerContext();
54
+ return (_ctx, _cache) => {
55
+ return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(datePicker))));
56
+ };
57
+ }
58
+ });
59
+ //#endregion
60
+ //#region src/components/date-picker/control.vue
61
+ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
62
+ __name: "control",
63
+ props: { asChild: { type: Boolean } },
64
+ setup(__props) {
65
+ const datePicker = useDatePickerContext();
66
+ useForwardExpose();
67
+ return (_ctx, _cache) => {
68
+ return openBlock(), createBlock(unref(wire).div, mergeProps(unref(datePicker).getControlProps(), { "as-child": __props.asChild }), {
69
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
70
+ _: 3
71
+ }, 16, ["as-child"]);
72
+ };
73
+ }
74
+ });
75
+ //#endregion
76
+ //#region src/components/date-picker/input.vue
77
+ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
78
+ __name: "input",
79
+ props: {
80
+ index: {},
81
+ fixOnBlur: { type: Boolean },
82
+ asChild: { type: Boolean }
83
+ },
84
+ setup(__props) {
85
+ const props = __props;
86
+ const datePicker = useDatePickerContext();
87
+ useForwardExpose();
88
+ return (_ctx, _cache) => {
89
+ return openBlock(), createBlock(unref(wire).input, mergeProps(unref(datePicker).getInputProps(props), { "as-child": __props.asChild }), {
90
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
91
+ _: 3
92
+ }, 16, ["as-child"]);
93
+ };
94
+ }
95
+ });
96
+ //#endregion
97
+ //#region src/components/date-picker/label.vue
98
+ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
99
+ __name: "label",
100
+ props: { asChild: { type: Boolean } },
101
+ setup(__props) {
102
+ const datePicker = useDatePickerContext();
103
+ useForwardExpose();
104
+ return (_ctx, _cache) => {
105
+ return openBlock(), createBlock(unref(wire).label, mergeProps(unref(datePicker).getLabelProps(), { "as-child": __props.asChild }), {
106
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
107
+ _: 3
108
+ }, 16, ["as-child"]);
109
+ };
110
+ }
111
+ });
112
+ //#endregion
113
+ //#region src/components/date-picker/month-select.vue
114
+ const _hoisted_1$1 = ["value"];
115
+ const _sfc_main$6 = /*@__PURE__*/ defineComponent({
116
+ __name: "month-select",
117
+ props: { asChild: { type: Boolean } },
118
+ setup(__props) {
119
+ const datePicker = useDatePickerContext();
120
+ useForwardExpose();
121
+ return (_ctx, _cache) => {
122
+ return openBlock(), createBlock(unref(wire).select, mergeProps(unref(datePicker).getMonthSelectProps(), { "as-child": __props.asChild }), {
123
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(datePicker).getMonths(), (month) => {
124
+ return openBlock(), createElementBlock("option", {
125
+ key: month.value,
126
+ value: month.value
127
+ }, toDisplayString(month.label), 9, _hoisted_1$1);
128
+ }), 128))]),
129
+ _: 1
130
+ }, 16, ["as-child"]);
131
+ };
132
+ }
133
+ });
134
+ //#endregion
135
+ //#region src/components/date-picker/use-view-props-context.ts
136
+ const DEFAULT_VIEW_PROPS_CONTEXT = { view: "day" };
137
+ const [DatePickerViewPropsProvider, useDatePickerViewPropsContext] = createContext("DatePickerViewPropsContext");
138
+ //#endregion
139
+ //#region src/components/date-picker/next-trigger.vue
140
+ const _sfc_main$7 = /*@__PURE__*/ defineComponent({
141
+ __name: "next-trigger",
142
+ props: { asChild: { type: Boolean } },
143
+ setup(__props) {
144
+ const datePicker = useDatePickerContext();
145
+ const viewProps = useDatePickerViewPropsContext(DEFAULT_VIEW_PROPS_CONTEXT);
146
+ useForwardExpose();
147
+ return (_ctx, _cache) => {
148
+ return openBlock(), createBlock(unref(wire).button, mergeProps(unref(datePicker).getNextTriggerProps(unref(viewProps)), { "as-child": __props.asChild }), {
149
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
150
+ _: 3
151
+ }, 16, ["as-child"]);
152
+ };
153
+ }
154
+ });
155
+ //#endregion
156
+ //#region src/components/date-picker/positioner.vue
157
+ const _sfc_main$8 = /*@__PURE__*/ defineComponent({
158
+ __name: "positioner",
159
+ props: { asChild: { type: Boolean } },
160
+ setup(__props) {
161
+ const datePicker = useDatePickerContext();
162
+ const presence = usePresenceContext();
163
+ useForwardExpose();
164
+ return (_ctx, _cache) => {
165
+ return !unref(presence).unmounted ? (openBlock(), createBlock(unref(wire).div, mergeProps({ key: 0 }, unref(datePicker).getPositionerProps(), { "as-child": __props.asChild }), {
166
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
167
+ _: 3
168
+ }, 16, ["as-child"])) : createCommentVNode("v-if", true);
169
+ };
170
+ }
171
+ });
172
+ //#endregion
173
+ //#region src/components/date-picker/preset-trigger.vue
174
+ const _sfc_main$9 = /*@__PURE__*/ defineComponent({
175
+ __name: "preset-trigger",
176
+ props: {
177
+ value: {},
178
+ asChild: { type: Boolean }
179
+ },
180
+ setup(__props) {
181
+ const props = __props;
182
+ const datePicker = useDatePickerContext();
183
+ useForwardExpose();
184
+ return (_ctx, _cache) => {
185
+ return openBlock(), createBlock(unref(wire).button, mergeProps(unref(datePicker).getPresetTriggerProps(props), { "as-child": __props.asChild }), {
186
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
187
+ _: 3
188
+ }, 16, ["as-child"]);
189
+ };
190
+ }
191
+ });
192
+ //#endregion
193
+ //#region src/components/date-picker/prev-trigger.vue
194
+ const _sfc_main$10 = /*@__PURE__*/ defineComponent({
195
+ __name: "prev-trigger",
196
+ props: { asChild: { type: Boolean } },
197
+ setup(__props) {
198
+ const datePicker = useDatePickerContext();
199
+ const viewProps = useDatePickerViewPropsContext(DEFAULT_VIEW_PROPS_CONTEXT);
200
+ useForwardExpose();
201
+ return (_ctx, _cache) => {
202
+ return openBlock(), createBlock(unref(wire).button, mergeProps(unref(datePicker).getPrevTriggerProps(unref(viewProps)), { "as-child": __props.asChild }), {
203
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
204
+ _: 3
205
+ }, 16, ["as-child"]);
206
+ };
207
+ }
208
+ });
209
+ //#endregion
210
+ //#region src/components/date-picker/range-text.vue
211
+ const _sfc_main$11 = /*@__PURE__*/ defineComponent({
212
+ __name: "range-text",
213
+ props: { asChild: { type: Boolean } },
214
+ setup(__props) {
215
+ const datePicker = useDatePickerContext();
216
+ const visibleRangeText = computed(() => {
217
+ const { start, end } = datePicker.value.visibleRangeText;
218
+ return uniq([start, end]).filter(Boolean).join(" - ");
219
+ });
220
+ useForwardExpose();
221
+ return (_ctx, _cache) => {
222
+ return openBlock(), createBlock(unref(wire).div, mergeProps(unref(datePicker).getRangeTextProps(), { "as-child": __props.asChild }), {
223
+ default: withCtx(() => [createTextVNode(toDisplayString(visibleRangeText.value), 1)]),
224
+ _: 1
225
+ }, 16, ["as-child"]);
226
+ };
227
+ }
228
+ });
229
+ //#endregion
230
+ //#region src/components/date-picker/anatomy.ts
231
+ const datePickerAnatomy = anatomy.extendWith("view", "valueText");
232
+ //#endregion
233
+ //#region src/components/date-picker/value-text.vue
234
+ const _sfc_main$22 = /*@__PURE__*/ defineComponent({
235
+ __name: "value-text",
236
+ props: {
237
+ placeholder: {},
238
+ separator: { default: ", " },
239
+ asChild: { type: Boolean }
240
+ },
241
+ setup(__props) {
242
+ const props = __props;
243
+ const datePicker = useDatePickerContext();
244
+ const hasValue = computed(() => datePicker.value.value.length > 0);
245
+ const displayValue = computed(() => {
246
+ if (!hasValue.value) return props.placeholder;
247
+ return datePicker.value.valueAsString.join(props.separator);
248
+ });
249
+ const getRenderProps = (value, index) => ({
250
+ value,
251
+ index,
252
+ valueAsString: datePicker.value.valueAsString[index],
253
+ remove: () => {
254
+ datePicker.value.setValue(datePicker.value.value.filter((_, i) => i !== index));
255
+ }
256
+ });
257
+ useForwardExpose();
258
+ return (_ctx, _cache) => {
259
+ return _ctx.$slots.default ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [hasValue.value ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(datePicker).value, (value, index) => {
260
+ return renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, getRenderProps(value, index)), void 0, void 0, index);
261
+ }), 128)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(__props.placeholder), 1)], 64))], 64)) : (openBlock(), createBlock(unref(wire).span, mergeProps({ key: 1 }, unref(datePickerAnatomy).build().valueText.attrs, { "as-child": __props.asChild }), {
262
+ default: withCtx(() => [createTextVNode(toDisplayString(displayValue.value), 1)]),
263
+ _: 1
264
+ }, 16, ["as-child"]));
265
+ };
266
+ }
267
+ });
268
+ //#endregion
269
+ //#region src/components/date-picker/root-provider.vue
270
+ const _sfc_main$13 = /*@__PURE__*/ defineComponent({
271
+ __name: "root-provider",
272
+ props: {
273
+ value: {},
274
+ lazyMount: { type: Boolean },
275
+ unmountOnExit: { type: Boolean },
276
+ asChild: { type: Boolean }
277
+ },
278
+ emits: ["exitComplete"],
279
+ setup(__props, { emit: __emit }) {
280
+ const props = __props;
281
+ const emits = __emit;
282
+ const datePicker = computed(() => props.value);
283
+ const presence = usePresence(computed(() => ({
284
+ present: datePicker.value.open,
285
+ lazyMount: props.lazyMount,
286
+ unmountOnExit: props.unmountOnExit
287
+ })), emits);
288
+ DatePickerProvider(datePicker);
289
+ PresenceProvider(presence);
290
+ RenderStrategyPropsProvider(computed(() => ({
291
+ lazyMount: props.lazyMount,
292
+ unmountOnExit: props.unmountOnExit
293
+ })));
294
+ useForwardExpose();
295
+ return (_ctx, _cache) => {
296
+ return openBlock(), createBlock(unref(wire).div, mergeProps(datePicker.value.getRootProps(), { "as-child": __props.asChild }), {
297
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
298
+ _: 3
299
+ }, 16, ["as-child"]);
300
+ };
301
+ }
302
+ });
303
+ //#endregion
304
+ //#region src/components/date-picker/use-date-picker.ts
305
+ const useDatePicker = (props = {}, emit) => {
306
+ const id = useId();
307
+ const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
308
+ const locale = useLocaleContext(DEFAULT_LOCALE);
309
+ const context = computed(() => {
310
+ const localeProps = toValue(props);
311
+ return {
312
+ id,
313
+ dir: locale.value.dir,
314
+ locale: locale.value.locale,
315
+ value: localeProps.modelValue,
316
+ getRootNode: env?.value.getRootNode,
317
+ ...cleanProps(localeProps),
318
+ onFocusChange: (details) => {
319
+ emit?.("focusChange", details);
320
+ emit?.("update:focusedValue", details.focusedValue);
321
+ localeProps.onFocusChange?.(details);
322
+ },
323
+ onViewChange: (details) => {
324
+ emit?.("viewChange", details);
325
+ emit?.("update:view", details.view);
326
+ localeProps.onViewChange?.(details);
327
+ },
328
+ onOpenChange: (details) => {
329
+ emit?.("openChange", details);
330
+ emit?.("update:open", details.open);
331
+ localeProps.onOpenChange?.(details);
332
+ },
333
+ onValueChange: (details) => {
334
+ emit?.("valueChange", details);
335
+ emit?.("update:modelValue", details.value);
336
+ localeProps.onValueChange?.(details);
337
+ },
338
+ onVisibleRangeChange: (details) => {
339
+ emit?.("visibleRangeChange", details);
340
+ localeProps.onVisibleRangeChange?.(details);
341
+ }
342
+ };
343
+ });
344
+ const service = useMachine(datePicker.machine, context);
345
+ return computed(() => datePicker.connect(service, normalizeProps$1));
346
+ };
347
+ //#endregion
348
+ //#region src/components/date-picker/root.vue
349
+ const _sfc_main$12 = /*@__PURE__*/ defineComponent({
350
+ __name: "root",
351
+ props: /*@__PURE__*/ mergeDefaults({
352
+ closeOnSelect: { type: Boolean },
353
+ createCalendar: { type: Function },
354
+ defaultFocusedValue: {},
355
+ defaultOpen: { type: Boolean },
356
+ defaultValue: {},
357
+ defaultView: {},
358
+ disabled: { type: Boolean },
359
+ fixedWeeks: { type: Boolean },
360
+ focusedValue: {},
361
+ format: { type: Function },
362
+ id: {},
363
+ ids: {},
364
+ isDateUnavailable: { type: Function },
365
+ locale: {},
366
+ max: {},
367
+ maxSelectedDates: {},
368
+ maxView: {},
369
+ min: {},
370
+ minView: {},
371
+ modelValue: {},
372
+ name: {},
373
+ numOfMonths: {},
374
+ open: { type: Boolean },
375
+ openOnClick: { type: Boolean },
376
+ outsideDaySelectable: { type: Boolean },
377
+ parse: { type: Function },
378
+ placeholder: {},
379
+ positioning: {},
380
+ readOnly: { type: Boolean },
381
+ selectionMode: {},
382
+ showWeekNumbers: { type: Boolean },
383
+ startOfWeek: {},
384
+ timeZone: {},
385
+ translations: {},
386
+ view: {},
387
+ inline: { type: Boolean },
388
+ invalid: { type: Boolean },
389
+ required: { type: Boolean },
390
+ lazyMount: { type: Boolean },
391
+ unmountOnExit: { type: Boolean },
392
+ asChild: { type: Boolean }
393
+ }, {
394
+ closeOnSelect: void 0,
395
+ defaultOpen: void 0,
396
+ disabled: void 0,
397
+ fixedWeeks: void 0,
398
+ inline: void 0,
399
+ invalid: void 0,
400
+ open: void 0,
401
+ openOnClick: void 0,
402
+ outsideDaySelectable: void 0,
403
+ readOnly: void 0,
404
+ required: void 0,
405
+ showWeekNumbers: void 0
406
+ }),
407
+ emits: [
408
+ "exitComplete",
409
+ "focusChange",
410
+ "openChange",
411
+ "valueChange",
412
+ "viewChange",
413
+ "visibleRangeChange",
414
+ "update:modelValue",
415
+ "update:open",
416
+ "update:view",
417
+ "update:focusedValue"
418
+ ],
419
+ setup(__props, { emit: __emit }) {
420
+ const props = __props;
421
+ const emits = __emit;
422
+ const datePicker = useDatePicker(props, emits);
423
+ const presence = usePresence(computed(() => ({
424
+ present: datePicker.value.open,
425
+ lazyMount: props.lazyMount,
426
+ unmountOnExit: props.unmountOnExit
427
+ })), emits);
428
+ DatePickerProvider(datePicker);
429
+ PresenceProvider(presence);
430
+ RenderStrategyPropsProvider(computed(() => ({
431
+ lazyMount: props.lazyMount,
432
+ unmountOnExit: props.unmountOnExit
433
+ })));
434
+ useForwardExpose();
435
+ return (_ctx, _cache) => {
436
+ return openBlock(), createBlock(unref(wire).div, mergeProps(unref(datePicker).getRootProps(), { "as-child": __props.asChild }), {
437
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
438
+ _: 3
439
+ }, 16, ["as-child"]);
440
+ };
441
+ }
442
+ });
443
+ //#endregion
444
+ //#region src/components/date-picker/use-table-props-context.ts
445
+ const [DatePickerTablePropsProvider, useDatePickerTablePropsContext] = createContext("DatePickerTablePropsContext");
446
+ //#endregion
447
+ //#region src/components/date-picker/table-body.vue
448
+ const _sfc_main$15 = /*@__PURE__*/ defineComponent({
449
+ __name: "table-body",
450
+ props: { asChild: { type: Boolean } },
451
+ setup(__props) {
452
+ const datePicker = useDatePickerContext();
453
+ const tableProps = useDatePickerTablePropsContext();
454
+ useForwardExpose();
455
+ return (_ctx, _cache) => {
456
+ return openBlock(), createBlock(unref(wire).tbody, mergeProps(unref(datePicker).getTableBodyProps(unref(tableProps)), { "as-child": __props.asChild }), {
457
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
458
+ _: 3
459
+ }, 16, ["as-child"]);
460
+ };
461
+ }
462
+ });
463
+ //#endregion
464
+ //#region src/components/date-picker/use-table-cell-props-context.ts
465
+ const [DatePickerTableCellPropsProvider, useDatePickerTableCellPropsContext] = createContext("DatePickerTableCellPropsContext");
466
+ //#endregion
467
+ //#region src/components/date-picker/table-cell-trigger.vue
468
+ const _sfc_main$17 = /*@__PURE__*/ defineComponent({
469
+ __name: "table-cell-trigger",
470
+ props: { asChild: { type: Boolean } },
471
+ setup(__props) {
472
+ const datePicker = useDatePickerContext();
473
+ const cellProps = useDatePickerTableCellPropsContext();
474
+ const viewProps = useDatePickerViewPropsContext(DEFAULT_VIEW_PROPS_CONTEXT);
475
+ const triggerProps = computed(() => {
476
+ const viewFn = {
477
+ day: datePicker.value.getDayTableCellTriggerProps,
478
+ month: datePicker.value.getMonthTableCellTriggerProps,
479
+ year: datePicker.value.getYearTableCellTriggerProps
480
+ }[viewProps.view];
481
+ return viewFn(cellProps);
482
+ });
483
+ useForwardExpose();
484
+ return (_ctx, _cache) => {
485
+ return openBlock(), createBlock(unref(wire).div, mergeProps(triggerProps.value, { "as-child": __props.asChild }), {
486
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
487
+ _: 3
488
+ }, 16, ["as-child"]);
489
+ };
490
+ }
491
+ });
492
+ //#endregion
493
+ //#region src/components/date-picker/table-cell.vue
494
+ const _sfc_main$16 = /*@__PURE__*/ defineComponent({
495
+ __name: "table-cell",
496
+ props: {
497
+ value: {},
498
+ disabled: { type: Boolean },
499
+ columns: {},
500
+ visibleRange: {},
501
+ asChild: { type: Boolean }
502
+ },
503
+ setup(__props) {
504
+ const props = __props;
505
+ const datePicker = useDatePickerContext();
506
+ const viewProps = useDatePickerViewPropsContext(DEFAULT_VIEW_PROPS_CONTEXT);
507
+ DatePickerTableCellPropsProvider(props);
508
+ const tableCellProps = computed(() => {
509
+ return {
510
+ day: datePicker.value.getDayTableCellProps,
511
+ month: datePicker.value.getMonthTableCellProps,
512
+ year: datePicker.value.getYearTableCellProps
513
+ }[viewProps.view ?? "day"](props);
514
+ });
515
+ useForwardExpose();
516
+ return (_ctx, _cache) => {
517
+ return openBlock(), createBlock(unref(wire).td, mergeProps(tableCellProps.value, { "as-child": __props.asChild }), {
518
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
519
+ _: 3
520
+ }, 16, ["as-child"]);
521
+ };
522
+ }
523
+ });
524
+ //#endregion
525
+ //#region src/components/date-picker/table-head.vue
526
+ const _sfc_main$18 = /*@__PURE__*/ defineComponent({
527
+ __name: "table-head",
528
+ props: { asChild: { type: Boolean } },
529
+ setup(__props) {
530
+ const datePicker = useDatePickerContext();
531
+ const tableProps = useDatePickerTablePropsContext();
532
+ useForwardExpose();
533
+ return (_ctx, _cache) => {
534
+ return openBlock(), createBlock(unref(wire).thead, mergeProps(unref(datePicker).getTableHeadProps(unref(tableProps)), { "as-child": __props.asChild }), {
535
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
536
+ _: 3
537
+ }, 16, ["as-child"]);
538
+ };
539
+ }
540
+ });
541
+ //#endregion
542
+ //#region src/components/date-picker/table-header.vue
543
+ const _sfc_main$19 = /*@__PURE__*/ defineComponent({
544
+ __name: "table-header",
545
+ props: { asChild: { type: Boolean } },
546
+ setup(__props) {
547
+ const datePicker = useDatePickerContext();
548
+ const tableProps = useDatePickerTablePropsContext();
549
+ useForwardExpose();
550
+ return (_ctx, _cache) => {
551
+ return openBlock(), createBlock(unref(wire).th, mergeProps(unref(datePicker).getTableHeaderProps(unref(tableProps)), { "as-child": __props.asChild }), {
552
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
553
+ _: 3
554
+ }, 16, ["as-child"]);
555
+ };
556
+ }
557
+ });
558
+ //#endregion
559
+ //#region src/components/date-picker/table-row.vue
560
+ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
561
+ __name: "table-row",
562
+ props: { asChild: { type: Boolean } },
563
+ setup(__props) {
564
+ const datePicker = useDatePickerContext();
565
+ const tableProps = useDatePickerTablePropsContext();
566
+ useForwardExpose();
567
+ return (_ctx, _cache) => {
568
+ return openBlock(), createBlock(unref(wire).tr, mergeProps(unref(datePicker).getTableRowProps(unref(tableProps)), { "as-child": __props.asChild }), {
569
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
570
+ _: 3
571
+ }, 16, ["as-child"]);
572
+ };
573
+ }
574
+ });
575
+ //#endregion
576
+ //#region src/components/date-picker/table.vue
577
+ const _sfc_main$14 = /*@__PURE__*/ defineComponent({
578
+ __name: "table",
579
+ props: {
580
+ view: {},
581
+ columns: {},
582
+ id: {},
583
+ asChild: { type: Boolean }
584
+ },
585
+ setup(__props) {
586
+ const props = __props;
587
+ const datePicker = useDatePickerContext();
588
+ const viewProps = useDatePickerViewPropsContext(DEFAULT_VIEW_PROPS_CONTEXT);
589
+ const uid = useId();
590
+ const tableProps = computed(() => ({
591
+ ...props,
592
+ id: props.id ?? uid,
593
+ ...viewProps
594
+ }));
595
+ DatePickerTablePropsProvider(tableProps);
596
+ useForwardExpose();
597
+ return (_ctx, _cache) => {
598
+ return openBlock(), createBlock(unref(wire).table, mergeProps(unref(datePicker).getTableProps(tableProps.value), { "as-child": __props.asChild }), {
599
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
600
+ _: 3
601
+ }, 16, ["as-child"]);
602
+ };
603
+ }
604
+ });
605
+ //#endregion
606
+ //#region src/components/date-picker/trigger.vue
607
+ const _sfc_main$21 = /*@__PURE__*/ defineComponent({
608
+ __name: "trigger",
609
+ props: { asChild: { type: Boolean } },
610
+ setup(__props) {
611
+ const datePicker = useDatePickerContext();
612
+ useForwardExpose();
613
+ return (_ctx, _cache) => {
614
+ return openBlock(), createBlock(unref(wire).button, mergeProps(unref(datePicker).getTriggerProps(), { "as-child": __props.asChild }), {
615
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
616
+ _: 3
617
+ }, 16, ["as-child"]);
618
+ };
619
+ }
620
+ });
621
+ //#endregion
622
+ //#region src/components/date-picker/view-control.vue
623
+ const _sfc_main$24 = /*@__PURE__*/ defineComponent({
624
+ __name: "view-control",
625
+ props: { asChild: { type: Boolean } },
626
+ setup(__props) {
627
+ const datePicker = useDatePickerContext();
628
+ const viewProps = useDatePickerViewPropsContext(DEFAULT_VIEW_PROPS_CONTEXT);
629
+ useForwardExpose();
630
+ return (_ctx, _cache) => {
631
+ return openBlock(), createBlock(unref(wire).div, mergeProps(unref(datePicker).getViewControlProps(unref(viewProps)), { "as-child": __props.asChild }), {
632
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
633
+ _: 3
634
+ }, 16, ["as-child"]);
635
+ };
636
+ }
637
+ });
638
+ //#endregion
639
+ //#region src/components/date-picker/view-trigger.vue
640
+ const _sfc_main$25 = /*@__PURE__*/ defineComponent({
641
+ __name: "view-trigger",
642
+ props: { asChild: { type: Boolean } },
643
+ setup(__props) {
644
+ const datePicker = useDatePickerContext();
645
+ const viewProps = useDatePickerViewPropsContext(DEFAULT_VIEW_PROPS_CONTEXT);
646
+ useForwardExpose();
647
+ return (_ctx, _cache) => {
648
+ return openBlock(), createBlock(unref(wire).button, mergeProps(unref(datePicker).getViewTriggerProps(unref(viewProps)), { "as-child": __props.asChild }), {
649
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
650
+ _: 3
651
+ }, 16, ["as-child"]);
652
+ };
653
+ }
654
+ });
655
+ //#endregion
656
+ //#region src/components/date-picker/view.vue
657
+ const _sfc_main$23 = /*@__PURE__*/ defineComponent({
658
+ __name: "view",
659
+ props: {
660
+ view: {},
661
+ asChild: { type: Boolean }
662
+ },
663
+ setup(__props) {
664
+ const props = __props;
665
+ const datePicker = useDatePickerContext();
666
+ DatePickerViewPropsProvider(props);
667
+ useForwardExpose();
668
+ return (_ctx, _cache) => {
669
+ return openBlock(), createBlock(unref(wire).div, mergeProps(unref(datePickerAnatomy).build().view.attrs, {
670
+ hidden: unref(datePicker).view !== __props.view,
671
+ "as-child": __props.asChild
672
+ }), {
673
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
674
+ _: 3
675
+ }, 16, ["hidden", "as-child"]);
676
+ };
677
+ }
678
+ });
679
+ //#endregion
680
+ //#region src/components/date-picker/week-number-header-cell.vue
681
+ const _sfc_main$27 = /*@__PURE__*/ defineComponent({
682
+ __name: "week-number-header-cell",
683
+ props: { asChild: { type: Boolean } },
684
+ setup(__props) {
685
+ const datePicker = useDatePickerContext();
686
+ const tableProps = useDatePickerTablePropsContext();
687
+ useForwardExpose();
688
+ return (_ctx, _cache) => {
689
+ return openBlock(), createBlock(unref(wire).th, mergeProps(unref(datePicker).getWeekNumberHeaderCellProps(unref(tableProps)), { "as-child": __props.asChild }), {
690
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
691
+ _: 3
692
+ }, 16, ["as-child"]);
693
+ };
694
+ }
695
+ });
696
+ //#endregion
697
+ //#region src/components/date-picker/week-number-cell.vue
698
+ const _sfc_main$26 = /*@__PURE__*/ defineComponent({
699
+ __name: "week-number-cell",
700
+ props: {
701
+ weekIndex: {},
702
+ week: {},
703
+ asChild: { type: Boolean }
704
+ },
705
+ setup(__props) {
706
+ const props = __props;
707
+ const datePicker = useDatePickerContext();
708
+ useForwardExpose();
709
+ return (_ctx, _cache) => {
710
+ return openBlock(), createBlock(unref(wire).td, mergeProps(unref(datePicker).getWeekNumberCellProps({
711
+ weekIndex: props.weekIndex,
712
+ week: props.week
713
+ }), { "as-child": __props.asChild }), {
714
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
715
+ _: 3
716
+ }, 16, ["as-child"]);
717
+ };
718
+ }
719
+ });
720
+ //#endregion
721
+ //#region src/components/date-picker/year-select.vue
722
+ const _hoisted_1 = ["value"];
723
+ const _sfc_main$28 = /*@__PURE__*/ defineComponent({
724
+ __name: "year-select",
725
+ props: { asChild: { type: Boolean } },
726
+ setup(__props) {
727
+ const datePicker = useDatePickerContext();
728
+ useForwardExpose();
729
+ return (_ctx, _cache) => {
730
+ return openBlock(), createBlock(unref(wire).select, mergeProps(unref(datePicker).getYearSelectProps(), { "as-child": __props.asChild }), {
731
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(datePicker).getYears(), (year) => {
732
+ return openBlock(), createElementBlock("option", {
733
+ key: year.value,
734
+ value: year.value
735
+ }, toDisplayString(year.label), 9, _hoisted_1);
736
+ }), 128))]),
737
+ _: 1
738
+ }, 16, ["as-child"]);
739
+ };
740
+ }
741
+ });
742
+ //#endregion
743
+ //#region src/components/date-picker/date-picker.ts
744
+ var date_picker_exports = /* @__PURE__ */ __exportAll({
745
+ ClearTrigger: () => _sfc_main,
746
+ Content: () => _sfc_main$1,
747
+ Context: () => _sfc_main$2,
748
+ Control: () => _sfc_main$3,
749
+ Input: () => _sfc_main$4,
750
+ Label: () => _sfc_main$5,
751
+ MonthSelect: () => _sfc_main$6,
752
+ NextTrigger: () => _sfc_main$7,
753
+ Positioner: () => _sfc_main$8,
754
+ PresetTrigger: () => _sfc_main$9,
755
+ PrevTrigger: () => _sfc_main$10,
756
+ RangeText: () => _sfc_main$11,
757
+ Root: () => _sfc_main$12,
758
+ RootProvider: () => _sfc_main$13,
759
+ Table: () => _sfc_main$14,
760
+ TableBody: () => _sfc_main$15,
761
+ TableCell: () => _sfc_main$16,
762
+ TableCellTrigger: () => _sfc_main$17,
763
+ TableHead: () => _sfc_main$18,
764
+ TableHeader: () => _sfc_main$19,
765
+ TableRow: () => _sfc_main$20,
766
+ Trigger: () => _sfc_main$21,
767
+ ValueText: () => _sfc_main$22,
768
+ View: () => _sfc_main$23,
769
+ ViewControl: () => _sfc_main$24,
770
+ ViewTrigger: () => _sfc_main$25,
771
+ WeekNumberCell: () => _sfc_main$26,
772
+ WeekNumberHeaderCell: () => _sfc_main$27,
773
+ YearSelect: () => _sfc_main$28
774
+ });
775
+ //#endregion
776
+ export { date_picker_exports as DatePicker, _sfc_main as DatePickerClearTrigger, _sfc_main$1 as DatePickerContent, _sfc_main$2 as DatePickerContext, _sfc_main$3 as DatePickerControl, _sfc_main$4 as DatePickerInput, _sfc_main$5 as DatePickerLabel, _sfc_main$6 as DatePickerMonthSelect, _sfc_main$7 as DatePickerNextTrigger, _sfc_main$8 as DatePickerPositioner, _sfc_main$9 as DatePickerPresetTrigger, _sfc_main$10 as DatePickerPrevTrigger, _sfc_main$11 as DatePickerRangeText, _sfc_main$12 as DatePickerRoot, _sfc_main$13 as DatePickerRootProvider, _sfc_main$14 as DatePickerTable, _sfc_main$15 as DatePickerTableBody, _sfc_main$16 as DatePickerTableCell, _sfc_main$17 as DatePickerTableCellTrigger, _sfc_main$18 as DatePickerTableHead, _sfc_main$19 as DatePickerTableHeader, _sfc_main$20 as DatePickerTableRow, _sfc_main$21 as DatePickerTrigger, _sfc_main$22 as DatePickerValueText, _sfc_main$23 as DatePickerView, _sfc_main$24 as DatePickerViewControl, _sfc_main$25 as DatePickerViewTrigger, _sfc_main$26 as DatePickerWeekNumberCell, _sfc_main$27 as DatePickerWeekNumberHeaderCell, _sfc_main$28 as DatePickerYearSelect, datePickerAnatomy, parseDate, useDatePicker, useDatePickerContext };