@enos5/enos-vue-default 1.6.10 → 1.7.1

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.
@@ -2,13 +2,13 @@ import { ref, computed, watch, openBlock, createElementBlock, createElementVNode
2
2
  import { LockClosedIcon, ChevronDownIcon, PhotoIcon, ExclamationCircleIcon, ExclamationTriangleIcon, ChevronUpIcon, MagnifyingGlassIcon, CheckIcon, PencilSquareIcon } from "@heroicons/vue/24/outline";
3
3
  import Editor from "@tinymce/tinymce-vue";
4
4
  import { Link } from "@inertiajs/vue3";
5
- const _hoisted_1$C = { class: "border-b border-neutral-200 bg-neutral-50/80 p-2 dark:border-neutral-800 dark:bg-neutral-900/80" };
6
- const _hoisted_2$m = {
5
+ const _hoisted_1$D = { class: "border-b border-neutral-200 bg-neutral-50/80 p-2 dark:border-neutral-800 dark:bg-neutral-900/80" };
6
+ const _hoisted_2$n = {
7
7
  role: "tablist",
8
8
  class: "flex overflow-hidden rounded-lg bg-white shadow-sm ring-1 ring-neutral-200 dark:bg-neutral-950 dark:ring-neutral-800"
9
9
  };
10
- const _hoisted_3$f = ["aria-selected", "tabindex", "onClick", "onKeydown"];
11
- const _sfc_main$R = {
10
+ const _hoisted_3$g = ["aria-selected", "tabindex", "onClick", "onKeydown"];
11
+ const _sfc_main$S = {
12
12
  __name: "CardTabs",
13
13
  props: {
14
14
  tabs: {
@@ -77,8 +77,8 @@ const _sfc_main$R = {
77
77
  focusTabAtIndex(targetIndex);
78
78
  };
79
79
  return (_ctx, _cache) => {
80
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
81
- createElementVNode("div", _hoisted_2$m, [
80
+ return openBlock(), createElementBlock("div", _hoisted_1$D, [
81
+ createElementVNode("div", _hoisted_2$n, [
82
82
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabs, (tab, index) => {
83
83
  return openBlock(), createElementBlock("button", {
84
84
  key: tab.value,
@@ -98,22 +98,22 @@ const _sfc_main$R = {
98
98
  ]),
99
99
  onClick: ($event) => activateTab(tab.value),
100
100
  onKeydown: ($event) => onTabKeydown($event, index)
101
- }, toDisplayString(tab.label), 47, _hoisted_3$f);
101
+ }, toDisplayString(tab.label), 47, _hoisted_3$g);
102
102
  }), 128))
103
103
  ])
104
104
  ]);
105
105
  };
106
106
  }
107
107
  };
108
- const _hoisted_1$B = {
108
+ const _hoisted_1$C = {
109
109
  key: 0,
110
110
  class: "mb-4"
111
111
  };
112
- const _hoisted_2$l = {
112
+ const _hoisted_2$m = {
113
113
  key: 1,
114
114
  class: "mb-4 text-xl font-semibold tracking-tight text-neutral-950 dark:text-neutral-50"
115
115
  };
116
- const _sfc_main$Q = {
116
+ const _sfc_main$R = {
117
117
  __name: "Card",
118
118
  props: {
119
119
  title: {
@@ -174,7 +174,7 @@ const _sfc_main$Q = {
174
174
  return openBlock(), createElementBlock("div", {
175
175
  class: normalizeClass(["rounded-2xl border border-neutral-200 bg-white text-neutral-950 shadow-sm dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50", __props.overflowClass, { "sticky top-6 self-start": __props.sticky }, __props.cardClass])
176
176
  }, [
177
- __props.tabs.length > 0 ? (openBlock(), createBlock(_sfc_main$R, {
177
+ __props.tabs.length > 0 ? (openBlock(), createBlock(_sfc_main$S, {
178
178
  key: 0,
179
179
  tabs: __props.tabs,
180
180
  "active-tab": __props.activeTab,
@@ -184,9 +184,9 @@ const _sfc_main$Q = {
184
184
  createElementVNode("div", {
185
185
  class: normalizeClass(__props.paddingClass)
186
186
  }, [
187
- _ctx.$slots.customTitle ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
187
+ _ctx.$slots.customTitle ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
188
188
  renderSlot(_ctx.$slots, "customTitle")
189
- ])) : __props.title ? (openBlock(), createElementBlock("h3", _hoisted_2$l, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
189
+ ])) : __props.title ? (openBlock(), createElementBlock("h3", _hoisted_2$m, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
190
190
  createElementVNode("div", {
191
191
  class: normalizeClass(["relative", __props.tabs.length > 0 ? "overflow-hidden" : "overflow-visible"])
192
192
  }, [
@@ -219,7 +219,7 @@ const _sfc_main$Q = {
219
219
  };
220
220
  }
221
221
  };
222
- const _sfc_main$P = /* @__PURE__ */ Object.assign({
222
+ const _sfc_main$Q = /* @__PURE__ */ Object.assign({
223
223
  inheritAttrs: false
224
224
  }, {
225
225
  __name: "Divider",
@@ -231,7 +231,7 @@ const _sfc_main$P = /* @__PURE__ */ Object.assign({
231
231
  };
232
232
  }
233
233
  });
234
- const _sfc_main$O = {
234
+ const _sfc_main$P = {
235
235
  __name: "ActionCard",
236
236
  props: {
237
237
  title: {
@@ -246,13 +246,13 @@ const _sfc_main$O = {
246
246
  setup(__props) {
247
247
  const slots = useSlots();
248
248
  return (_ctx, _cache) => {
249
- return openBlock(), createBlock(_sfc_main$Q, {
249
+ return openBlock(), createBlock(_sfc_main$R, {
250
250
  title: __props.title,
251
251
  "content-class": __props.actionsClass
252
252
  }, {
253
253
  default: withCtx(() => [
254
254
  renderSlot(_ctx.$slots, "default"),
255
- unref(slots).danger ? (openBlock(), createBlock(_sfc_main$P, {
255
+ unref(slots).danger ? (openBlock(), createBlock(_sfc_main$Q, {
256
256
  key: 0,
257
257
  class: "mt-6 pt-4"
258
258
  }, {
@@ -267,8 +267,8 @@ const _sfc_main$O = {
267
267
  };
268
268
  }
269
269
  };
270
- const _hoisted_1$A = { class: "text-sm text-gray-600" };
271
- const _sfc_main$N = {
270
+ const _hoisted_1$B = { class: "text-sm text-gray-600" };
271
+ const _sfc_main$O = {
272
272
  __name: "ActionMessage",
273
273
  props: {
274
274
  on: Boolean
@@ -282,7 +282,7 @@ const _sfc_main$N = {
282
282
  "leave-to-class": "opacity-0"
283
283
  }, {
284
284
  default: withCtx(() => [
285
- withDirectives(createElementVNode("div", _hoisted_1$A, [
285
+ withDirectives(createElementVNode("div", _hoisted_1$B, [
286
286
  renderSlot(_ctx.$slots, "default")
287
287
  ], 512), [
288
288
  [vShow, __props.on]
@@ -301,36 +301,36 @@ const _export_sfc = (sfc, props) => {
301
301
  }
302
302
  return target;
303
303
  };
304
- const _sfc_main$M = {};
305
- const _hoisted_1$z = { class: "md:col-span-1 flex justify-between" };
306
- const _hoisted_2$k = { class: "px-4 sm:px-0" };
307
- const _hoisted_3$e = { class: "text-xl font-semibold tracking-tight text-neutral-950 dark:text-neutral-50" };
308
- const _hoisted_4$9 = { class: "mt-1 max-w-2xl text-sm text-neutral-600 dark:text-neutral-200" };
309
- const _hoisted_5$7 = { class: "px-4 sm:px-0" };
304
+ const _sfc_main$N = {};
305
+ const _hoisted_1$A = { class: "md:col-span-1 flex justify-between" };
306
+ const _hoisted_2$l = { class: "px-4 sm:px-0" };
307
+ const _hoisted_3$f = { class: "text-xl font-semibold tracking-tight text-neutral-950 dark:text-neutral-50" };
308
+ const _hoisted_4$a = { class: "mt-1 max-w-2xl text-sm text-neutral-600 dark:text-neutral-200" };
309
+ const _hoisted_5$8 = { class: "px-4 sm:px-0" };
310
310
  function _sfc_render(_ctx, _cache) {
311
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
312
- createElementVNode("div", _hoisted_2$k, [
313
- createElementVNode("h3", _hoisted_3$e, [
311
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
312
+ createElementVNode("div", _hoisted_2$l, [
313
+ createElementVNode("h3", _hoisted_3$f, [
314
314
  renderSlot(_ctx.$slots, "title")
315
315
  ]),
316
- createElementVNode("p", _hoisted_4$9, [
316
+ createElementVNode("p", _hoisted_4$a, [
317
317
  renderSlot(_ctx.$slots, "description")
318
318
  ])
319
319
  ]),
320
- createElementVNode("div", _hoisted_5$7, [
320
+ createElementVNode("div", _hoisted_5$8, [
321
321
  renderSlot(_ctx.$slots, "aside")
322
322
  ])
323
323
  ]);
324
324
  }
325
- const SectionTitle = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render]]);
326
- const _hoisted_1$y = { class: "md:grid md:grid-cols-3 md:gap-6" };
327
- const _hoisted_2$j = { class: "mt-5 md:mt-0 md:col-span-2" };
328
- const _hoisted_3$d = { class: "rounded-lg border border-neutral-200 bg-white px-4 py-5 shadow-sm dark:border-neutral-800 dark:bg-neutral-950 sm:p-6" };
329
- const _sfc_main$L = {
325
+ const SectionTitle = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render]]);
326
+ const _hoisted_1$z = { class: "md:grid md:grid-cols-3 md:gap-6" };
327
+ const _hoisted_2$k = { class: "mt-5 md:mt-0 md:col-span-2" };
328
+ const _hoisted_3$e = { class: "rounded-lg border border-neutral-200 bg-white px-4 py-5 shadow-sm dark:border-neutral-800 dark:bg-neutral-950 sm:p-6" };
329
+ const _sfc_main$M = {
330
330
  __name: "ActionSection",
331
331
  setup(__props) {
332
332
  return (_ctx, _cache) => {
333
- return openBlock(), createElementBlock("div", _hoisted_1$y, [
333
+ return openBlock(), createElementBlock("div", _hoisted_1$z, [
334
334
  createVNode(SectionTitle, null, {
335
335
  title: withCtx(() => [
336
336
  renderSlot(_ctx.$slots, "title")
@@ -340,8 +340,8 @@ const _sfc_main$L = {
340
340
  ]),
341
341
  _: 3
342
342
  }),
343
- createElementVNode("div", _hoisted_2$j, [
344
- createElementVNode("div", _hoisted_3$d, [
343
+ createElementVNode("div", _hoisted_2$k, [
344
+ createElementVNode("div", _hoisted_3$e, [
345
345
  renderSlot(_ctx.$slots, "content")
346
346
  ])
347
347
  ])
@@ -349,8 +349,8 @@ const _sfc_main$L = {
349
349
  };
350
350
  }
351
351
  };
352
- const _hoisted_1$x = { class: "sr-only" };
353
- const _sfc_main$K = {
352
+ const _hoisted_1$y = { class: "sr-only" };
353
+ const _sfc_main$L = {
354
354
  __name: "Badge",
355
355
  props: {
356
356
  type: {
@@ -415,7 +415,7 @@ const _sfc_main$K = {
415
415
  createElementVNode("span", {
416
416
  class: normalizeClass(["w-2 h-2 rounded-full", colorClasses[__props.color].dot])
417
417
  }, null, 2),
418
- createElementVNode("span", _hoisted_1$x, [
418
+ createElementVNode("span", _hoisted_1$y, [
419
419
  renderSlot(_ctx.$slots, "default")
420
420
  ])
421
421
  ], 2)) : (openBlock(), createElementBlock("span", {
@@ -432,8 +432,8 @@ const _sfc_main$K = {
432
432
  };
433
433
  }
434
434
  };
435
- const _hoisted_1$w = ["type", "disabled"];
436
- const _sfc_main$J = /* @__PURE__ */ Object.assign({
435
+ const _hoisted_1$x = ["type", "disabled"];
436
+ const _sfc_main$K = /* @__PURE__ */ Object.assign({
437
437
  inheritAttrs: false
438
438
  }, {
439
439
  __name: "Button",
@@ -500,12 +500,12 @@ const _sfc_main$J = /* @__PURE__ */ Object.assign({
500
500
  class: buttonClasses.value
501
501
  }), [
502
502
  renderSlot(_ctx.$slots, "default")
503
- ], 16, _hoisted_1$w);
503
+ ], 16, _hoisted_1$x);
504
504
  };
505
505
  }
506
506
  });
507
- const _hoisted_1$v = ["value"];
508
- const _sfc_main$I = {
507
+ const _hoisted_1$w = ["value"];
508
+ const _sfc_main$J = {
509
509
  __name: "Checkbox",
510
510
  props: {
511
511
  checked: {
@@ -535,14 +535,14 @@ const _sfc_main$I = {
535
535
  type: "checkbox",
536
536
  value: __props.value,
537
537
  class: "rounded border-neutral-300 text-neutral-900 shadow-sm focus:ring-neutral-900 dark:border-neutral-700 dark:bg-neutral-950 dark:text-neutral-100 dark:focus:ring-neutral-100"
538
- }, null, 8, _hoisted_1$v)), [
538
+ }, null, 8, _hoisted_1$w)), [
539
539
  [vModelCheckbox, proxyChecked.value]
540
540
  ]);
541
541
  };
542
542
  }
543
543
  };
544
- const _hoisted_1$u = ["name", "checked", "disabled"];
545
- const _sfc_main$H = {
544
+ const _hoisted_1$v = ["name", "checked", "disabled"];
545
+ const _sfc_main$I = {
546
546
  __name: "CheckboxInput",
547
547
  props: {
548
548
  modelValue: {
@@ -602,7 +602,7 @@ const _sfc_main$H = {
602
602
  onChange,
603
603
  onFocus: handleFocus,
604
604
  onBlur: handleBlur
605
- }, null, 40, _hoisted_1$u),
605
+ }, null, 40, _hoisted_1$v),
606
606
  createElementVNode("span", {
607
607
  class: normalizeClass(["inline-flex h-4 w-4 items-center justify-center border text-[10px] font-bold leading-none", [
608
608
  isChecked.value ? "border-current bg-white/15 text-current dark:bg-neutral-900/15" : "border-current/70 text-transparent",
@@ -614,21 +614,21 @@ const _sfc_main$H = {
614
614
  };
615
615
  }
616
616
  };
617
- const _hoisted_1$t = { class: "relative flex items-center" };
618
- const _hoisted_2$i = {
617
+ const _hoisted_1$u = { class: "relative flex items-center" };
618
+ const _hoisted_2$j = {
619
619
  key: 0,
620
620
  class: "absolute inset-y-0 left-0 flex items-center pointer-events-none pl-3"
621
621
  };
622
- const _hoisted_3$c = ["type", "value", "disabled"];
623
- const _hoisted_4$8 = ["aria-label"];
624
- const _hoisted_5$6 = {
622
+ const _hoisted_3$d = ["type", "value", "disabled"];
623
+ const _hoisted_4$9 = ["aria-label"];
624
+ const _hoisted_5$7 = {
625
625
  key: 0,
626
626
  class: "h-5 w-5",
627
627
  fill: "none",
628
628
  stroke: "currentColor",
629
629
  viewBox: "0 0 24 24"
630
630
  };
631
- const _hoisted_6$6 = {
631
+ const _hoisted_6$7 = {
632
632
  key: 1,
633
633
  class: "h-5 w-5",
634
634
  fill: "none",
@@ -636,7 +636,7 @@ const _hoisted_6$6 = {
636
636
  viewBox: "0 0 24 24"
637
637
  };
638
638
  const DEFAULT_MAX_LENGTH$1 = 254;
639
- const _sfc_main$G = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
639
+ const _sfc_main$H = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
640
640
  __name: "TextInput",
641
641
  props: {
642
642
  modelValue: {
@@ -695,8 +695,8 @@ const _sfc_main$G = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
695
695
  });
696
696
  __expose({ focus: () => input.value?.focus() });
697
697
  return (_ctx, _cache) => {
698
- return openBlock(), createElementBlock("div", _hoisted_1$t, [
699
- isPasswordField.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, [
698
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
699
+ isPasswordField.value ? (openBlock(), createElementBlock("div", _hoisted_2$j, [
700
700
  createVNode(unref(LockClosedIcon), { class: "h-5 w-5 text-neutral-400 dark:text-neutral-200" })
701
701
  ])) : createCommentVNode("", true),
702
702
  createElementVNode("input", mergeProps({
@@ -710,7 +710,7 @@ const _sfc_main$G = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
710
710
  onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value)),
711
711
  onBlur: _cache[1] || (_cache[1] = ($event) => emit("blur", $event)),
712
712
  onWheel: handleWheel
713
- }), null, 16, _hoisted_3$c),
713
+ }), null, 16, _hoisted_3$d),
714
714
  isPasswordField.value ? (openBlock(), createElementBlock("button", {
715
715
  key: 1,
716
716
  type: "button",
@@ -718,14 +718,14 @@ const _sfc_main$G = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
718
718
  "aria-label": revealed.value ? "Hide password" : "Show password",
719
719
  onClick: toggleVisibility
720
720
  }, [
721
- revealed.value ? (openBlock(), createElementBlock("svg", _hoisted_5$6, [..._cache[2] || (_cache[2] = [
721
+ revealed.value ? (openBlock(), createElementBlock("svg", _hoisted_5$7, [..._cache[2] || (_cache[2] = [
722
722
  createElementVNode("path", {
723
723
  "stroke-linecap": "round",
724
724
  "stroke-linejoin": "round",
725
725
  "stroke-width": "2",
726
726
  d: "M13.875 18.825A10.05 10.05 0 0112 19c-5 0-9.27-3.11-11-7 1.01-2.27 2.78-4.1 5-5.32m3.08-1.3A9.96 9.96 0 0112 5c5 0 9.27 3.11 11 7a11.03 11.03 0 01-4.16 4.91M15 12a3 3 0 00-3-3m0 0a3 3 0 00-2.94 3.59M3 3l18 18"
727
727
  }, null, -1)
728
- ])])) : (openBlock(), createElementBlock("svg", _hoisted_6$6, [..._cache[3] || (_cache[3] = [
728
+ ])])) : (openBlock(), createElementBlock("svg", _hoisted_6$7, [..._cache[3] || (_cache[3] = [
729
729
  createElementVNode("path", {
730
730
  "stroke-linecap": "round",
731
731
  "stroke-linejoin": "round",
@@ -739,14 +739,14 @@ const _sfc_main$G = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
739
739
  d: "M2.458 12C3.732 7.943 7.523 5 12 5s8.268 2.943 9.542 7c-1.274 4.057-5.065 7-9.542 7S3.732 16.057 2.458 12z"
740
740
  }, null, -1)
741
741
  ])]))
742
- ], 8, _hoisted_4$8)) : createCommentVNode("", true)
742
+ ], 8, _hoisted_4$9)) : createCommentVNode("", true)
743
743
  ]);
744
744
  };
745
745
  }
746
746
  });
747
- const _hoisted_1$s = ["value", "disabled"];
747
+ const _hoisted_1$t = ["value", "disabled"];
748
748
  const DEFAULT_MAX_LENGTH = 1e3;
749
- const _sfc_main$F = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
749
+ const _sfc_main$G = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
750
750
  __name: "TextArea",
751
751
  props: {
752
752
  modelValue: String,
@@ -816,18 +816,18 @@ const _sfc_main$F = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
816
816
  value: props.modelValue,
817
817
  disabled: props.disabled,
818
818
  onInput: updateValue
819
- }), null, 16, _hoisted_1$s)
819
+ }), null, 16, _hoisted_1$t)
820
820
  ]);
821
821
  };
822
822
  }
823
823
  });
824
- const _hoisted_1$r = ["onClick"];
825
- const _hoisted_2$h = {
824
+ const _hoisted_1$s = ["onClick"];
825
+ const _hoisted_2$i = {
826
826
  key: 0,
827
827
  class: "flex items-center gap-3"
828
828
  };
829
- const _hoisted_3$b = ["checked", "disabled", "onChange"];
830
- const _sfc_main$E = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
829
+ const _hoisted_3$c = ["checked", "disabled", "onChange"];
830
+ const _sfc_main$F = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
831
831
  __name: "CustomSelect",
832
832
  props: {
833
833
  modelValue: {
@@ -1185,7 +1185,7 @@ const _sfc_main$E = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1185
1185
  ]),
1186
1186
  onClick: withModifiers(($event) => __props.multiple ? toggleMultipleOption(option) : selectOption(option), ["stop"])
1187
1187
  }, [
1188
- __props.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$h, [
1188
+ __props.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$i, [
1189
1189
  createElementVNode("input", {
1190
1190
  type: "checkbox",
1191
1191
  class: "h-4 w-4 rounded border-neutral-300 text-neutral-900 focus:ring-neutral-900",
@@ -1195,7 +1195,7 @@ const _sfc_main$E = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1195
1195
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
1196
1196
  }, ["stop"])),
1197
1197
  onChange: withModifiers(($event) => toggleMultipleOption(option), ["stop"])
1198
- }, null, 40, _hoisted_3$b),
1198
+ }, null, 40, _hoisted_3$c),
1199
1199
  createElementVNode("span", {
1200
1200
  style: normalizeStyle(darkTextStyle.value)
1201
1201
  }, toDisplayString(optionText(option)), 5)
@@ -1203,7 +1203,7 @@ const _sfc_main$E = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1203
1203
  key: 1,
1204
1204
  style: normalizeStyle(darkTextStyle.value)
1205
1205
  }, toDisplayString(optionText(option)), 5))
1206
- ], 10, _hoisted_1$r);
1206
+ ], 10, _hoisted_1$s);
1207
1207
  }), 128))
1208
1208
  ], 2)
1209
1209
  ], 6)) : createCommentVNode("", true)
@@ -1215,7 +1215,7 @@ const _sfc_main$E = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1215
1215
  };
1216
1216
  }
1217
1217
  });
1218
- const _sfc_main$D = {
1218
+ const _sfc_main$E = {
1219
1219
  __name: "SelectInput",
1220
1220
  props: {
1221
1221
  modelValue: {
@@ -1307,7 +1307,7 @@ const _sfc_main$D = {
1307
1307
  setup(__props, { emit: __emit }) {
1308
1308
  const emit = __emit;
1309
1309
  return (_ctx, _cache) => {
1310
- return openBlock(), createBlock(_sfc_main$E, mergeProps({
1310
+ return openBlock(), createBlock(_sfc_main$F, mergeProps({
1311
1311
  "model-value": __props.modelValue,
1312
1312
  "model-modifiers": __props.modelModifiers,
1313
1313
  options: __props.options,
@@ -1334,8 +1334,8 @@ const _sfc_main$D = {
1334
1334
  };
1335
1335
  }
1336
1336
  };
1337
- const _hoisted_1$q = ["type", "max", "value", "disabled"];
1338
- const _sfc_main$C = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1337
+ const _hoisted_1$r = ["type", "max", "value", "disabled"];
1338
+ const _sfc_main$D = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1339
1339
  __name: "DateInput",
1340
1340
  props: {
1341
1341
  modelValue: {
@@ -1415,11 +1415,363 @@ const _sfc_main$C = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1415
1415
  disabled: props.disabled,
1416
1416
  onInput: handleDateInput,
1417
1417
  onChange: handleDateInput
1418
- }), null, 16, _hoisted_1$q);
1418
+ }), null, 16, _hoisted_1$r);
1419
1419
  };
1420
1420
  }
1421
1421
  });
1422
- const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-35dd480a"]]);
1422
+ const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-35dd480a"]]);
1423
+ const _hoisted_1$q = { class: "relative" };
1424
+ const _hoisted_2$h = {
1425
+ key: 0,
1426
+ class: "text-sm font-medium text-neutral-700 dark:text-neutral-300 mb-1 block"
1427
+ };
1428
+ const _hoisted_3$b = ["value", "disabled"];
1429
+ const _hoisted_4$8 = { class: "p-4" };
1430
+ const _hoisted_5$6 = { class: "mb-4 flex items-center justify-between" };
1431
+ const _hoisted_6$6 = { class: "text-sm font-medium text-neutral-900 dark:text-neutral-50" };
1432
+ const _hoisted_7$6 = { class: "grid grid-cols-7 gap-1 mb-2" };
1433
+ const _hoisted_8$4 = { class: "grid grid-cols-7 gap-1" };
1434
+ const _hoisted_9$3 = ["disabled", "onClick", "onMouseenter"];
1435
+ const _hoisted_10$3 = { class: "mt-4 pt-4 border-t border-neutral-200 dark:border-neutral-800" };
1436
+ const _hoisted_11$3 = { class: "text-xs text-neutral-500 dark:text-neutral-400" };
1437
+ const _hoisted_12$2 = { key: 0 };
1438
+ const _hoisted_13$2 = { key: 1 };
1439
+ const _hoisted_14$2 = { key: 2 };
1440
+ const _sfc_main$C = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1441
+ __name: "DateRangeInput",
1442
+ props: {
1443
+ modelValue: {
1444
+ type: Object,
1445
+ default: () => ({ start: "", end: "" })
1446
+ },
1447
+ disabled: {
1448
+ type: Boolean,
1449
+ default: false
1450
+ },
1451
+ disabledClass: {
1452
+ type: String,
1453
+ default: "!border-neutral-200 !bg-neutral-100 !text-neutral-500 dark:!border-neutral-800 dark:!bg-neutral-900 dark:!text-neutral-500"
1454
+ },
1455
+ min: {
1456
+ type: String,
1457
+ default: ""
1458
+ },
1459
+ max: {
1460
+ type: String,
1461
+ default: ""
1462
+ },
1463
+ minDays: {
1464
+ type: Number,
1465
+ default: 0
1466
+ },
1467
+ maxDays: {
1468
+ type: Number,
1469
+ default: null
1470
+ },
1471
+ label: {
1472
+ type: String,
1473
+ default: "Date Range"
1474
+ },
1475
+ placeholder: {
1476
+ type: String,
1477
+ default: "Select date range"
1478
+ }
1479
+ },
1480
+ emits: ["update:modelValue"],
1481
+ setup(__props, { emit: __emit }) {
1482
+ const props = __props;
1483
+ const emit = __emit;
1484
+ const attrs = useAttrs();
1485
+ const isOpen = ref(false);
1486
+ const calendarRef = ref(null);
1487
+ const inputRef = ref(null);
1488
+ const hoveredDate = ref(null);
1489
+ const currentMonth = ref((/* @__PURE__ */ new Date()).getMonth());
1490
+ const currentYear = ref((/* @__PURE__ */ new Date()).getFullYear());
1491
+ const startDate = computed(() => props.modelValue?.start ?? "");
1492
+ const endDate = computed(() => props.modelValue?.end ?? "");
1493
+ const displayText = computed(() => {
1494
+ if (!startDate.value && !endDate.value) return props.placeholder;
1495
+ if (startDate.value && !endDate.value) return startDate.value;
1496
+ if (!startDate.value && endDate.value) return endDate.value;
1497
+ return `${startDate.value} - ${endDate.value}`;
1498
+ });
1499
+ const daysBetween = computed(() => {
1500
+ if (!startDate.value || !endDate.value) return 0;
1501
+ const start = new Date(startDate.value);
1502
+ const end = new Date(endDate.value);
1503
+ const diffTime = end - start;
1504
+ return Math.ceil(diffTime / (1e3 * 60 * 60 * 24));
1505
+ });
1506
+ const calendarDays = computed(() => {
1507
+ const firstDay = new Date(currentYear.value, currentMonth.value, 1);
1508
+ const lastDay = new Date(currentYear.value, currentMonth.value + 1, 0);
1509
+ const startDate2 = new Date(firstDay);
1510
+ startDate2.setDate(startDate2.getDate() - firstDay.getDay());
1511
+ const days = [];
1512
+ const current = new Date(startDate2);
1513
+ while (current <= lastDay || current.getDay() !== 0) {
1514
+ const currentDate = new Date(current);
1515
+ days.push({
1516
+ date: currentDate,
1517
+ isCurrentMonth: current.getMonth() === currentMonth.value,
1518
+ isToday: current.toDateString() === (/* @__PURE__ */ new Date()).toDateString(),
1519
+ isSelected: isDateSelected(current),
1520
+ isInRange: isDateInRange(current),
1521
+ isStartDate: isDateStart(current),
1522
+ isEndDate: isDateEnd(current),
1523
+ isHoveredInRange: isDateInHoveredRange(current),
1524
+ isDisabled: !isDateAllowed(currentDate)
1525
+ });
1526
+ current.setDate(current.getDate() + 1);
1527
+ if (current.getMonth() > currentMonth.value && current.getDay() === 0) break;
1528
+ }
1529
+ return days;
1530
+ });
1531
+ const isDateSelected = (date) => {
1532
+ if (!startDate.value && !endDate.value) return false;
1533
+ const dateStr = date.toISOString().split("T")[0];
1534
+ return dateStr === startDate.value || dateStr === endDate.value;
1535
+ };
1536
+ const isDateInRange = (date) => {
1537
+ if (!startDate.value || !endDate.value) return false;
1538
+ const dateStr = date.toISOString().split("T")[0];
1539
+ return dateStr > startDate.value && dateStr < endDate.value;
1540
+ };
1541
+ const isDateStart = (date) => {
1542
+ if (!startDate.value) return false;
1543
+ const dateStr = date.toISOString().split("T")[0];
1544
+ return dateStr === startDate.value;
1545
+ };
1546
+ const isDateEnd = (date) => {
1547
+ if (!endDate.value) return false;
1548
+ const dateStr = date.toISOString().split("T")[0];
1549
+ return dateStr === endDate.value;
1550
+ };
1551
+ const isDateInHoveredRange = (date) => {
1552
+ if (!startDate.value || endDate.value || !hoveredDate.value) return false;
1553
+ const dateStr = date.toISOString().split("T")[0];
1554
+ const startStr = startDate.value;
1555
+ const hoveredStr = hoveredDate.value.toISOString().split("T")[0];
1556
+ if (dateStr === startStr || dateStr === hoveredStr) return false;
1557
+ return dateStr > startStr && dateStr < hoveredStr || dateStr < startStr && dateStr > hoveredStr;
1558
+ };
1559
+ const isDateInValidRange = (date) => {
1560
+ if (!startDate.value || endDate.value) return false;
1561
+ const dateStr = date.toISOString().split("T")[0];
1562
+ const startStr = startDate.value;
1563
+ if (dateStr <= startStr) return false;
1564
+ const start = new Date(startStr);
1565
+ const selected = new Date(dateStr);
1566
+ const daysDiff = Math.ceil((selected - start) / (1e3 * 60 * 60 * 24));
1567
+ return daysDiff >= props.minDays && (props.maxDays === null || daysDiff <= props.maxDays);
1568
+ };
1569
+ const inputClasses = computed(() => [
1570
+ "date-range-input w-full rounded-lg border border-neutral-200 bg-white px-4 py-3 text-sm text-neutral-950 shadow-sm outline-none transition-colors focus:border-neutral-900 focus:ring-2 focus:ring-neutral-950/10 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50 dark:focus:border-neutral-100 dark:focus:ring-neutral-100/10 cursor-pointer",
1571
+ attrs.class
1572
+ ]);
1573
+ const toggleCalendar = () => {
1574
+ if (!props.disabled) {
1575
+ if (isOpen.value) {
1576
+ if (startDate.value && !endDate.value) {
1577
+ emit("update:modelValue", { start: "", end: "" });
1578
+ }
1579
+ isOpen.value = false;
1580
+ } else {
1581
+ isOpen.value = true;
1582
+ }
1583
+ }
1584
+ };
1585
+ const isDateAllowed = (date) => {
1586
+ const dateStr = date.toISOString().split("T")[0];
1587
+ if (props.min && dateStr < props.min) {
1588
+ return false;
1589
+ }
1590
+ if (props.max && dateStr > props.max) {
1591
+ return false;
1592
+ }
1593
+ if (startDate.value && !endDate.value) {
1594
+ return isDateInValidRange(date);
1595
+ }
1596
+ if (!startDate.value || startDate.value && endDate.value) {
1597
+ const selected = new Date(dateStr);
1598
+ if (props.minDays > 0 && props.max) {
1599
+ const minEndDate = new Date(selected);
1600
+ minEndDate.setDate(minEndDate.getDate() + props.minDays);
1601
+ const minEndStr = minEndDate.toISOString().split("T")[0];
1602
+ if (minEndStr > props.max) {
1603
+ return false;
1604
+ }
1605
+ }
1606
+ }
1607
+ return true;
1608
+ };
1609
+ const selectDate = (date) => {
1610
+ const dateStr = date.toISOString().split("T")[0];
1611
+ if (!isDateAllowed(date)) {
1612
+ return;
1613
+ }
1614
+ if (!startDate.value || startDate.value && endDate.value) {
1615
+ emit("update:modelValue", { start: dateStr, end: "" });
1616
+ } else if (!endDate.value) {
1617
+ const start = new Date(startDate.value);
1618
+ const selected = new Date(dateStr);
1619
+ if (selected < start) {
1620
+ const daysDiff = Math.ceil((start - selected) / (1e3 * 60 * 60 * 24));
1621
+ if (daysDiff >= props.minDays && (props.maxDays === null || daysDiff <= props.maxDays)) {
1622
+ emit("update:modelValue", { start: dateStr, end: startDate.value });
1623
+ isOpen.value = false;
1624
+ } else {
1625
+ return;
1626
+ }
1627
+ } else {
1628
+ const daysDiff = Math.ceil((selected - start) / (1e3 * 60 * 60 * 24));
1629
+ if (daysDiff >= props.minDays && (props.maxDays === null || daysDiff <= props.maxDays)) {
1630
+ emit("update:modelValue", { start: startDate.value, end: dateStr });
1631
+ isOpen.value = false;
1632
+ } else {
1633
+ return;
1634
+ }
1635
+ }
1636
+ }
1637
+ };
1638
+ const handleDateHover = (date) => {
1639
+ if (startDate.value && !endDate.value) {
1640
+ hoveredDate.value = date;
1641
+ }
1642
+ };
1643
+ const handleDateLeave = () => {
1644
+ hoveredDate.value = null;
1645
+ };
1646
+ const previousMonth = () => {
1647
+ if (currentMonth.value === 0) {
1648
+ currentMonth.value = 11;
1649
+ currentYear.value--;
1650
+ } else {
1651
+ currentMonth.value--;
1652
+ }
1653
+ };
1654
+ const nextMonth = () => {
1655
+ if (currentMonth.value === 11) {
1656
+ currentMonth.value = 0;
1657
+ currentYear.value++;
1658
+ } else {
1659
+ currentMonth.value++;
1660
+ }
1661
+ };
1662
+ const monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
1663
+ const dayNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
1664
+ return (_ctx, _cache) => {
1665
+ return openBlock(), createElementBlock("div", _hoisted_1$q, [
1666
+ __props.label ? (openBlock(), createElementBlock("label", _hoisted_2$h, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
1667
+ createElementVNode("input", {
1668
+ ref_key: "inputRef",
1669
+ ref: inputRef,
1670
+ readonly: "",
1671
+ class: normalizeClass([inputClasses.value, props.disabled ? props.disabledClass : null]),
1672
+ value: displayText.value,
1673
+ disabled: props.disabled,
1674
+ onClick: toggleCalendar
1675
+ }, null, 10, _hoisted_3$b),
1676
+ isOpen.value ? (openBlock(), createElementBlock("div", {
1677
+ key: 1,
1678
+ ref_key: "calendarRef",
1679
+ ref: calendarRef,
1680
+ class: "absolute top-full left-0 z-50 mt-1 w-80 rounded-lg border border-neutral-200 bg-white shadow-xl dark:border-neutral-800 dark:bg-neutral-950",
1681
+ onClick: _cache[0] || (_cache[0] = withModifiers(() => {
1682
+ }, ["stop"]))
1683
+ }, [
1684
+ createElementVNode("div", _hoisted_4$8, [
1685
+ createElementVNode("div", _hoisted_5$6, [
1686
+ createElementVNode("button", {
1687
+ type: "button",
1688
+ class: "p-1 rounded hover:bg-neutral-100 dark:hover:bg-neutral-800 transition-colors",
1689
+ onClick: previousMonth
1690
+ }, [..._cache[1] || (_cache[1] = [
1691
+ createElementVNode("svg", {
1692
+ class: "w-4 h-4 text-neutral-600 dark:text-neutral-400",
1693
+ fill: "none",
1694
+ stroke: "currentColor",
1695
+ viewBox: "0 0 24 24"
1696
+ }, [
1697
+ createElementVNode("path", {
1698
+ "stroke-linecap": "round",
1699
+ "stroke-linejoin": "round",
1700
+ "stroke-width": "2",
1701
+ d: "M15 19l-7-7 7-7"
1702
+ })
1703
+ ], -1)
1704
+ ])]),
1705
+ createElementVNode("div", _hoisted_6$6, toDisplayString(monthNames[currentMonth.value]) + " " + toDisplayString(currentYear.value), 1),
1706
+ createElementVNode("button", {
1707
+ type: "button",
1708
+ class: "p-1 rounded hover:bg-neutral-100 dark:hover:bg-neutral-800 transition-colors",
1709
+ onClick: nextMonth
1710
+ }, [..._cache[2] || (_cache[2] = [
1711
+ createElementVNode("svg", {
1712
+ class: "w-4 h-4 text-neutral-600 dark:text-neutral-400",
1713
+ fill: "none",
1714
+ stroke: "currentColor",
1715
+ viewBox: "0 0 24 24"
1716
+ }, [
1717
+ createElementVNode("path", {
1718
+ "stroke-linecap": "round",
1719
+ "stroke-linejoin": "round",
1720
+ "stroke-width": "2",
1721
+ d: "M9 5l7 7-7 7"
1722
+ })
1723
+ ], -1)
1724
+ ])])
1725
+ ]),
1726
+ createElementVNode("div", _hoisted_7$6, [
1727
+ (openBlock(), createElementBlock(Fragment, null, renderList(dayNames, (day) => {
1728
+ return createElementVNode("div", {
1729
+ key: day,
1730
+ class: "text-xs font-medium text-neutral-500 dark:text-neutral-400 text-center py-1"
1731
+ }, toDisplayString(day), 1);
1732
+ }), 64))
1733
+ ]),
1734
+ createElementVNode("div", _hoisted_8$4, [
1735
+ (openBlock(true), createElementBlock(Fragment, null, renderList(calendarDays.value, (day) => {
1736
+ return openBlock(), createElementBlock("div", {
1737
+ key: day.date.toISOString(),
1738
+ class: "relative"
1739
+ }, [
1740
+ createElementVNode("button", {
1741
+ type: "button",
1742
+ class: normalizeClass(["w-8 h-8 text-xs rounded transition-colors", {
1743
+ "text-neutral-400 dark:text-neutral-600": !day.isCurrentMonth,
1744
+ "text-neutral-900 dark:text-neutral-50": day.isCurrentMonth && !day.isDisabled,
1745
+ "text-neutral-300 dark:text-neutral-500 cursor-not-allowed": day.isDisabled,
1746
+ "bg-neutral-200 dark:bg-neutral-700": day.isToday && !day.isSelected,
1747
+ "bg-blue-500 text-white hover:bg-blue-600": day.isSelected,
1748
+ "bg-blue-100 dark:bg-blue-900": day.isInRange,
1749
+ "bg-blue-50 dark:bg-blue-950": day.isHoveredInRange,
1750
+ "hover:bg-neutral-100 dark:hover:bg-neutral-800": !day.isDisabled,
1751
+ "rounded-l-full": day.isStartDate && !day.isEndDate,
1752
+ "rounded-r-full": day.isEndDate && !day.isStartDate,
1753
+ "rounded-full": day.isStartDate && day.isEndDate
1754
+ }]),
1755
+ disabled: !day.isCurrentMonth || day.isDisabled,
1756
+ onClick: ($event) => selectDate(day.date),
1757
+ onMouseenter: ($event) => handleDateHover(day.date),
1758
+ onMouseleave: handleDateLeave
1759
+ }, toDisplayString(day.date.getDate()), 43, _hoisted_9$3)
1760
+ ]);
1761
+ }), 128))
1762
+ ]),
1763
+ createElementVNode("div", _hoisted_10$3, [
1764
+ createElementVNode("div", _hoisted_11$3, [
1765
+ startDate.value && endDate.value ? (openBlock(), createElementBlock("div", _hoisted_12$2, " Range: " + toDisplayString(daysBetween.value) + " days ", 1)) : startDate.value ? (openBlock(), createElementBlock("div", _hoisted_13$2, " Select end date ")) : (openBlock(), createElementBlock("div", _hoisted_14$2, " Select start date "))
1766
+ ])
1767
+ ])
1768
+ ])
1769
+ ], 512)) : createCommentVNode("", true)
1770
+ ]);
1771
+ };
1772
+ }
1773
+ });
1774
+ const DateRangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-36446810"]]);
1423
1775
  const _hoisted_1$p = { class: "relative" };
1424
1776
  const _hoisted_2$g = { class: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none" };
1425
1777
  const _hoisted_3$a = ["accept"];
@@ -1864,7 +2216,7 @@ const _hoisted_2$d = {
1864
2216
  class: "text-xs text-gray-500 mb-1 block break-all"
1865
2217
  };
1866
2218
  const _hoisted_3$9 = {
1867
- key: 16,
2219
+ key: 17,
1868
2220
  class: "flex items-center mt-2 text-sm text-red-600"
1869
2221
  };
1870
2222
  const defaultFieldClass = "block w-full rounded-lg border border-neutral-200 bg-white px-4 py-3 text-sm text-neutral-950 placeholder:text-neutral-400 shadow-sm transition-all duration-200 focus:border-neutral-900 focus:outline-none focus:ring-2 focus:ring-neutral-950/10 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50 dark:placeholder:text-neutral-500 dark:focus:border-neutral-100 dark:focus:ring-neutral-100/10";
@@ -2014,6 +2366,30 @@ const _sfc_main$v = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
2014
2366
  outputFormat: {
2015
2367
  type: String,
2016
2368
  default: "html"
2369
+ },
2370
+ min: {
2371
+ type: String,
2372
+ default: ""
2373
+ },
2374
+ max: {
2375
+ type: String,
2376
+ default: ""
2377
+ },
2378
+ minDays: {
2379
+ type: Number,
2380
+ default: 0
2381
+ },
2382
+ maxDays: {
2383
+ type: Number,
2384
+ default: null
2385
+ },
2386
+ startLabel: {
2387
+ type: String,
2388
+ default: "Start Date"
2389
+ },
2390
+ endLabel: {
2391
+ type: String,
2392
+ default: "End Date"
2017
2393
  }
2018
2394
  },
2019
2395
  emits: ["update:modelValue", "blur"],
@@ -2054,6 +2430,7 @@ const _sfc_main$v = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
2054
2430
  const isDateType = computed(
2055
2431
  () => props.type === "date" || props.type === "datetime-local"
2056
2432
  );
2433
+ const isDateRangeType = computed(() => props.type === "daterange");
2057
2434
  const isTextareaType = computed(() => props.type === "textarea");
2058
2435
  const isTinyEditorType = computed(() => props.type === "tiny-editor");
2059
2436
  const isSelectType = computed(() => props.type === "select");
@@ -2183,6 +2560,20 @@ const _sfc_main$v = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
2183
2560
  if (props.init !== void 0) inputProps.init = props.init;
2184
2561
  return inputProps;
2185
2562
  });
2563
+ const dateRangeBindings = computed(() => ({
2564
+ ...attrs,
2565
+ class: [attrs.class],
2566
+ name: props.name,
2567
+ modelValue: props.modelValue,
2568
+ min: props.min,
2569
+ max: props.max,
2570
+ minDays: props.minDays,
2571
+ maxDays: props.maxDays,
2572
+ startLabel: props.startLabel,
2573
+ endLabel: props.endLabel,
2574
+ disabled: props.disabled,
2575
+ disabledClass: props.disabledClass
2576
+ }));
2186
2577
  return (_ctx, _cache) => {
2187
2578
  return openBlock(), createElementBlock("div", null, [
2188
2579
  __props.label && !showsInlineChoiceControl.value ? (openBlock(), createElementBlock("label", {
@@ -2191,50 +2582,53 @@ const _sfc_main$v = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
2191
2582
  class: "text-base font-semibold text-gray-900 dark:text-gray-50 mb-1 block"
2192
2583
  }, toDisplayString(__props.label), 9, _hoisted_1$j)) : createCommentVNode("", true),
2193
2584
  __props.helperText && !showsInlineChoiceControl.value ? (openBlock(), createElementBlock("span", _hoisted_2$d, toDisplayString(__props.helperText), 1)) : createCommentVNode("", true),
2194
- isTextareaType.value ? (openBlock(), createBlock(_sfc_main$F, mergeProps({ key: 2 }, textAreaBindings.value, {
2585
+ isTextareaType.value ? (openBlock(), createBlock(_sfc_main$G, mergeProps({ key: 2 }, textAreaBindings.value, {
2195
2586
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event)),
2196
2587
  onBlur: _cache[1] || (_cache[1] = ($event) => emit("blur", $event))
2197
2588
  }), null, 16)) : isTinyEditorType.value ? (openBlock(), createBlock(_sfc_main$w, mergeProps({ key: 3 }, tinyEditorBindings.value, {
2198
2589
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => emit("update:modelValue", $event)),
2199
2590
  onBlur: _cache[3] || (_cache[3] = ($event) => emit("blur", $event))
2200
- }), null, 16)) : isSelectType.value ? (openBlock(), createBlock(_sfc_main$D, mergeProps({ key: 4 }, selectBindings.value, {
2591
+ }), null, 16)) : isSelectType.value ? (openBlock(), createBlock(_sfc_main$E, mergeProps({ key: 4 }, selectBindings.value, {
2201
2592
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => emit("update:modelValue", $event)),
2202
2593
  onBlur: _cache[5] || (_cache[5] = ($event) => emit("blur", $event))
2203
2594
  }), null, 16)) : isDateType.value ? (openBlock(), createBlock(DateInput, mergeProps({ key: 5 }, dateBindings.value, {
2204
2595
  "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => emit("update:modelValue", $event)),
2205
2596
  onBlur: _cache[7] || (_cache[7] = ($event) => emit("blur", $event))
2206
- }), null, 16)) : isTextLikeType.value ? (openBlock(), createBlock(_sfc_main$G, mergeProps({ key: 6 }, textInputBindings.value, {
2597
+ }), null, 16)) : isDateRangeType.value ? (openBlock(), createBlock(DateRangeInput, mergeProps({ key: 6 }, dateRangeBindings.value, {
2207
2598
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => emit("update:modelValue", $event)),
2208
2599
  onBlur: _cache[9] || (_cache[9] = ($event) => emit("blur", $event))
2209
- }), null, 16)) : isImageType.value ? (openBlock(), createBlock(_sfc_main$B, mergeProps({ key: 7 }, imageBindings.value, {
2600
+ }), null, 16)) : isTextLikeType.value ? (openBlock(), createBlock(_sfc_main$H, mergeProps({ key: 7 }, textInputBindings.value, {
2210
2601
  "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => emit("update:modelValue", $event)),
2211
2602
  onBlur: _cache[11] || (_cache[11] = ($event) => emit("blur", $event))
2212
- }), null, 16)) : isCheckboxSingleType.value ? (openBlock(), createBlock(_sfc_main$H, mergeProps({ key: 8 }, checkboxSingleBindings.value, {
2603
+ }), null, 16)) : isImageType.value ? (openBlock(), createBlock(_sfc_main$B, mergeProps({ key: 8 }, imageBindings.value, {
2213
2604
  "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => emit("update:modelValue", $event)),
2214
2605
  onBlur: _cache[13] || (_cache[13] = ($event) => emit("blur", $event))
2215
- }), null, 16)) : isRadioSingleType.value ? (openBlock(), createBlock(_sfc_main$z, mergeProps({ key: 9 }, radioSingleBindings.value, {
2606
+ }), null, 16)) : isCheckboxSingleType.value ? (openBlock(), createBlock(_sfc_main$I, mergeProps({ key: 9 }, checkboxSingleBindings.value, {
2216
2607
  "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => emit("update:modelValue", $event)),
2217
2608
  onBlur: _cache[15] || (_cache[15] = ($event) => emit("blur", $event))
2218
- }), null, 16)) : isToggleSingleType.value ? (openBlock(), createBlock(_sfc_main$y, mergeProps({ key: 10 }, toggleSingleBindings.value, {
2609
+ }), null, 16)) : isRadioSingleType.value ? (openBlock(), createBlock(_sfc_main$z, mergeProps({ key: 10 }, radioSingleBindings.value, {
2219
2610
  "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => emit("update:modelValue", $event)),
2220
2611
  onBlur: _cache[17] || (_cache[17] = ($event) => emit("blur", $event))
2221
- }), null, 16)) : isNotationType.value ? (openBlock(), createBlock(_sfc_main$A, mergeProps({ key: 11 }, notationBindings.value, {
2612
+ }), null, 16)) : isToggleSingleType.value ? (openBlock(), createBlock(_sfc_main$y, mergeProps({ key: 11 }, toggleSingleBindings.value, {
2222
2613
  "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => emit("update:modelValue", $event)),
2223
2614
  onBlur: _cache[19] || (_cache[19] = ($event) => emit("blur", $event))
2224
- }), null, 16)) : isCheckboxType.value ? (openBlock(), createBlock(_sfc_main$u, mergeProps({ key: 12 }, checkboxBindings.value, {
2615
+ }), null, 16)) : isNotationType.value ? (openBlock(), createBlock(_sfc_main$A, mergeProps({ key: 12 }, notationBindings.value, {
2225
2616
  "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => emit("update:modelValue", $event)),
2226
2617
  onBlur: _cache[21] || (_cache[21] = ($event) => emit("blur", $event))
2227
- }), null, 16)) : isRadioType.value ? (openBlock(), createBlock(_sfc_main$x, mergeProps({ key: 13 }, radioBindings.value, {
2618
+ }), null, 16)) : isCheckboxType.value ? (openBlock(), createBlock(_sfc_main$u, mergeProps({ key: 13 }, checkboxBindings.value, {
2228
2619
  "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => emit("update:modelValue", $event)),
2229
2620
  onBlur: _cache[23] || (_cache[23] = ($event) => emit("blur", $event))
2621
+ }), null, 16)) : isRadioType.value ? (openBlock(), createBlock(_sfc_main$x, mergeProps({ key: 14 }, radioBindings.value, {
2622
+ "onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => emit("update:modelValue", $event)),
2623
+ onBlur: _cache[25] || (_cache[25] = ($event) => emit("blur", $event))
2230
2624
  }), null, 16)) : isNoComponentType.value ? renderSlot(_ctx.$slots, "unsupported-type", {
2231
- key: 14,
2625
+ key: 15,
2232
2626
  type: __props.type,
2233
2627
  modelValue: __props.modelValue,
2234
2628
  updateValue,
2235
2629
  attrs: unref(attrs)
2236
2630
  }) : renderSlot(_ctx.$slots, "unsupported-type", {
2237
- key: 15,
2631
+ key: 16,
2238
2632
  type: __props.type,
2239
2633
  modelValue: __props.modelValue,
2240
2634
  updateValue,
@@ -2945,7 +3339,7 @@ const _sfc_main$k = {
2945
3339
  return (_ctx, _cache) => {
2946
3340
  return openBlock(), createElementBlock("div", _hoisted_1$9, [
2947
3341
  createElementVNode("div", _hoisted_2$7, [
2948
- createVNode(_sfc_main$P)
3342
+ createVNode(_sfc_main$Q)
2949
3343
  ])
2950
3344
  ]);
2951
3345
  };
@@ -3471,7 +3865,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3471
3865
  const props = __props;
3472
3866
  const { state, toggleSidebar } = useSidebar();
3473
3867
  return (_ctx, _cache) => {
3474
- return openBlock(), createBlock(_sfc_main$J, {
3868
+ return openBlock(), createBlock(_sfc_main$K, {
3475
3869
  "data-sidebar": "trigger",
3476
3870
  "data-slot": "sidebar-trigger",
3477
3871
  variant: "ghost",
@@ -4573,7 +4967,7 @@ const _sfc_main$2 = {
4573
4967
  key: 0,
4574
4968
  ref_for: true
4575
4969
  }, getSlotBindings(item, null, index))) : createCommentVNode("", true),
4576
- __props.rowEditing && isEditingRow(item, index) ? (openBlock(), createBlock(_sfc_main$J, {
4970
+ __props.rowEditing && isEditingRow(item, index) ? (openBlock(), createBlock(_sfc_main$K, {
4577
4971
  key: 1,
4578
4972
  type: "button",
4579
4973
  variant: "outline",
@@ -4586,7 +4980,7 @@ const _sfc_main$2 = {
4586
4980
  createVNode(unref(CheckIcon), { class: "size-4" })
4587
4981
  ]),
4588
4982
  _: 1
4589
- }, 8, ["title", "aria-label", "onClick"])) : __props.rowEditing ? (openBlock(), createBlock(_sfc_main$J, {
4983
+ }, 8, ["title", "aria-label", "onClick"])) : __props.rowEditing ? (openBlock(), createBlock(_sfc_main$K, {
4590
4984
  key: 2,
4591
4985
  type: "button",
4592
4986
  variant: "secondary",
@@ -4759,21 +5153,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4759
5153
  });
4760
5154
  const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4761
5155
  __proto__: null,
4762
- ActionCard: _sfc_main$O,
4763
- ActionMessage: _sfc_main$N,
4764
- ActionSection: _sfc_main$L,
4765
- Badge: _sfc_main$K,
4766
- Button: _sfc_main$J,
4767
- Card: _sfc_main$Q,
4768
- CardTabs: _sfc_main$R,
4769
- Checkbox: _sfc_main$I,
4770
- CheckboxInput: _sfc_main$H,
5156
+ ActionCard: _sfc_main$P,
5157
+ ActionMessage: _sfc_main$O,
5158
+ ActionSection: _sfc_main$M,
5159
+ Badge: _sfc_main$L,
5160
+ Button: _sfc_main$K,
5161
+ Card: _sfc_main$R,
5162
+ CardTabs: _sfc_main$S,
5163
+ Checkbox: _sfc_main$J,
5164
+ CheckboxInput: _sfc_main$I,
4771
5165
  CheckboxMultipleInput: _sfc_main$u,
4772
5166
  ConfirmationModal: _sfc_main$s,
4773
- CustomSelect: _sfc_main$E,
5167
+ CustomSelect: _sfc_main$F,
4774
5168
  DateInput,
5169
+ DateRangeInput,
4775
5170
  DialogModal: _sfc_main$r,
4776
- Divider: _sfc_main$P,
5171
+ Divider: _sfc_main$Q,
4777
5172
  Dropdown: _sfc_main$q,
4778
5173
  DropdownLink: _sfc_main$p,
4779
5174
  FormSection: _sfc_main$o,
@@ -4788,7 +5183,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
4788
5183
  RadioMultipleInput: _sfc_main$x,
4789
5184
  SectionBorder: _sfc_main$k,
4790
5185
  SectionTitle,
4791
- SelectInput: _sfc_main$D,
5186
+ SelectInput: _sfc_main$E,
4792
5187
  Sidebar: _sfc_main$j,
4793
5188
  SidebarContent: _sfc_main$i,
4794
5189
  SidebarFooter: _sfc_main$h,
@@ -4806,8 +5201,8 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
4806
5201
  TableList: _sfc_main$3,
4807
5202
  TableListForm: _sfc_main$2,
4808
5203
  TableSearch: _sfc_main$4,
4809
- TextArea: _sfc_main$F,
4810
- TextInput: _sfc_main$G,
5204
+ TextArea: _sfc_main$G,
5205
+ TextInput: _sfc_main$H,
4811
5206
  ThSortable: _sfc_main$5,
4812
5207
  TinyEditor: _sfc_main$w,
4813
5208
  Toast: _sfc_main$1,
@@ -4823,61 +5218,62 @@ const plugin = {
4823
5218
  }
4824
5219
  };
4825
5220
  export {
4826
- _sfc_main as $,
4827
- _sfc_main$k as A,
4828
- _sfc_main$D as B,
4829
- _sfc_main$j as C,
5221
+ _sfc_main$1 as $,
5222
+ _sfc_main$x as A,
5223
+ _sfc_main$k as B,
5224
+ _sfc_main$E as C,
4830
5225
  DateInput as D,
4831
- _sfc_main$i as E,
4832
- _sfc_main$h as F,
4833
- _sfc_main$g as G,
4834
- _sfc_main$f as H,
4835
- _sfc_main$e as I,
4836
- _sfc_main$d as J,
4837
- _sfc_main$c as K,
4838
- _sfc_main$b as L,
4839
- _sfc_main$a as M,
4840
- _sfc_main$9 as N,
4841
- _sfc_main$8 as O,
4842
- _sfc_main$7 as P,
4843
- _sfc_main$6 as Q,
4844
- _sfc_main$3 as R,
5226
+ _sfc_main$j as E,
5227
+ _sfc_main$i as F,
5228
+ _sfc_main$h as G,
5229
+ _sfc_main$g as H,
5230
+ _sfc_main$f as I,
5231
+ _sfc_main$e as J,
5232
+ _sfc_main$d as K,
5233
+ _sfc_main$c as L,
5234
+ _sfc_main$b as M,
5235
+ _sfc_main$a as N,
5236
+ _sfc_main$9 as O,
5237
+ _sfc_main$8 as P,
5238
+ _sfc_main$7 as Q,
5239
+ _sfc_main$6 as R,
4845
5240
  SectionTitle as S,
4846
- _sfc_main$2 as T,
4847
- _sfc_main$4 as U,
4848
- _sfc_main$F as V,
5241
+ _sfc_main$3 as T,
5242
+ _sfc_main$2 as U,
5243
+ _sfc_main$4 as V,
4849
5244
  _sfc_main$G as W,
4850
- _sfc_main$5 as X,
4851
- _sfc_main$w as Y,
4852
- _sfc_main$1 as Z,
4853
- _sfc_main$O as _,
4854
- _sfc_main$N as a,
4855
- _sfc_main$y as a0,
4856
- useSidebar as a1,
4857
- _sfc_main$L as b,
4858
- _sfc_main$K as c,
4859
- _sfc_main$J as d,
4860
- _sfc_main$Q as e,
4861
- _sfc_main$R as f,
4862
- _sfc_main$I as g,
4863
- _sfc_main$H as h,
5245
+ _sfc_main$H as X,
5246
+ _sfc_main$5 as Y,
5247
+ _sfc_main$w as Z,
5248
+ _sfc_main$P as _,
5249
+ _sfc_main$O as a,
5250
+ _sfc_main as a0,
5251
+ _sfc_main$y as a1,
5252
+ useSidebar as a2,
5253
+ _sfc_main$M as b,
5254
+ _sfc_main$L as c,
5255
+ _sfc_main$K as d,
5256
+ _sfc_main$R as e,
5257
+ _sfc_main$S as f,
5258
+ _sfc_main$J as g,
5259
+ _sfc_main$I as h,
4864
5260
  _sfc_main$u as i,
4865
5261
  _sfc_main$s as j,
4866
- _sfc_main$E as k,
4867
- _sfc_main$r as l,
4868
- _sfc_main$P as m,
4869
- _sfc_main$q as n,
4870
- _sfc_main$p as o,
4871
- plugin as p,
4872
- _sfc_main$o as q,
4873
- _sfc_main$B as r,
4874
- _sfc_main$n as s,
4875
- _sfc_main$v as t,
4876
- _sfc_main$m as u,
4877
- _sfc_main$l as v,
4878
- _sfc_main$t as w,
4879
- _sfc_main$A as x,
4880
- _sfc_main$z as y,
4881
- _sfc_main$x as z
5262
+ _sfc_main$F as k,
5263
+ DateRangeInput as l,
5264
+ _sfc_main$r as m,
5265
+ _sfc_main$Q as n,
5266
+ _sfc_main$q as o,
5267
+ _sfc_main$p as p,
5268
+ plugin as q,
5269
+ _sfc_main$o as r,
5270
+ _sfc_main$B as s,
5271
+ _sfc_main$n as t,
5272
+ _sfc_main$v as u,
5273
+ _sfc_main$m as v,
5274
+ _sfc_main$l as w,
5275
+ _sfc_main$t as x,
5276
+ _sfc_main$A as y,
5277
+ _sfc_main$z as z
4882
5278
  };
4883
- //# sourceMappingURL=plugin-CrvKxhz1.js.map
5279
+ //# sourceMappingURL=plugin-qr9N0w3u.js.map