iryx-ui 0.15.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/README.md +3 -1
  2. package/dist/component-names.d.ts +1 -1
  3. package/dist/component-names.js +1 -1
  4. package/dist/components/BarChart.vue.d.ts +8 -0
  5. package/dist/components/BarChart.vue_vue_type_script_setup_true_lang.js +169 -151
  6. package/dist/components/Calendar.js +5 -0
  7. package/dist/components/Calendar.vue.d.ts +69 -0
  8. package/dist/components/Calendar.vue_vue_type_script_setup_true_lang.js +168 -0
  9. package/dist/components/Combobox.vue.d.ts +9 -9
  10. package/dist/components/Combobox.vue_vue_type_script_setup_true_lang.js +180 -144
  11. package/dist/components/DateField.js +5 -0
  12. package/dist/components/DateField.vue.d.ts +38 -0
  13. package/dist/components/DateField.vue_vue_type_script_setup_true_lang.js +94 -0
  14. package/dist/components/DatePicker.vue.d.ts +7 -2
  15. package/dist/components/DatePicker.vue_vue_type_script_setup_true_lang.js +73 -124
  16. package/dist/components/DateRangePicker.vue.d.ts +2 -2
  17. package/dist/components/DateRangePicker.vue_vue_type_script_setup_true_lang.js +81 -78
  18. package/dist/components/DonutChart.js +5 -0
  19. package/dist/components/DonutChart.vue.d.ts +96 -0
  20. package/dist/components/DonutChart.vue_vue_type_script_setup_true_lang.js +234 -0
  21. package/dist/components/DropdownMenu.vue.d.ts +13 -6
  22. package/dist/components/DropdownMenu.vue_vue_type_script_setup_true_lang.js +28 -22
  23. package/dist/components/Editable.js +5 -0
  24. package/dist/components/Editable.vue.d.ts +81 -0
  25. package/dist/components/Editable.vue_vue_type_script_setup_true_lang.js +140 -0
  26. package/dist/components/HoverCard.js +5 -0
  27. package/dist/components/HoverCard.vue.d.ts +68 -0
  28. package/dist/components/HoverCard.vue_vue_type_script_setup_true_lang.js +79 -0
  29. package/dist/components/LineChart.vue.d.ts +8 -0
  30. package/dist/components/LineChart.vue_vue_type_script_setup_true_lang.js +160 -141
  31. package/dist/components/Sparkline.vue.d.ts +9 -0
  32. package/dist/components/Sparkline.vue_vue_type_script_setup_true_lang.js +90 -53
  33. package/dist/components/TagsInput.vue.d.ts +2 -2
  34. package/dist/components/TimeField.vue_vue_type_script_setup_true_lang.js +17 -14
  35. package/dist/components/index.d.ts +5 -0
  36. package/dist/components/index.js +124 -114
  37. package/dist/composables/cartesian.d.ts +10 -2
  38. package/dist/composables/chart-reveal.d.ts +45 -0
  39. package/dist/composables/chart-reveal.js +93 -0
  40. package/dist/index.d.ts +6 -0
  41. package/dist/index.js +142 -131
  42. package/dist/theme/accordion.d.ts +0 -15
  43. package/dist/theme/alert.d.ts +0 -3
  44. package/dist/theme/avatar.d.ts +0 -3
  45. package/dist/theme/banner.d.ts +0 -6
  46. package/dist/theme/bar-chart.d.ts +0 -18
  47. package/dist/theme/breadcrumb.d.ts +0 -3
  48. package/dist/theme/calendar.d.ts +62 -0
  49. package/dist/theme/calendar.js +29 -0
  50. package/dist/theme/card.d.ts +0 -6
  51. package/dist/theme/chart-legend.d.ts +0 -3
  52. package/dist/theme/checkbox.d.ts +0 -6
  53. package/dist/theme/color-picker.d.ts +0 -6
  54. package/dist/theme/combobox.js +4 -4
  55. package/dist/theme/command-palette.d.ts +0 -6
  56. package/dist/theme/container.d.ts +0 -3
  57. package/dist/theme/container.js +3 -3
  58. package/dist/theme/date-field.d.ts +65 -0
  59. package/dist/theme/date-field.js +21 -0
  60. package/dist/theme/date-picker.d.ts +0 -195
  61. package/dist/theme/date-picker.js +2 -24
  62. package/dist/theme/donut-chart.d.ts +86 -0
  63. package/dist/theme/donut-chart.js +17 -0
  64. package/dist/theme/dropdown-menu.d.ts +3 -0
  65. package/dist/theme/dropdown-menu.js +1 -0
  66. package/dist/theme/editable.d.ts +77 -0
  67. package/dist/theme/editable.js +26 -0
  68. package/dist/theme/empty-state.d.ts +0 -3
  69. package/dist/theme/file-upload.d.ts +0 -39
  70. package/dist/theme/hover-card.d.ts +92 -0
  71. package/dist/theme/hover-card.js +28 -0
  72. package/dist/theme/index.d.ts +5 -0
  73. package/dist/theme/input.d.ts +0 -18
  74. package/dist/theme/kbd.d.ts +0 -3
  75. package/dist/theme/line-chart.d.ts +0 -18
  76. package/dist/theme/navigation-menu.d.ts +0 -48
  77. package/dist/theme/number-input.d.ts +0 -3
  78. package/dist/theme/page-header.d.ts +0 -3
  79. package/dist/theme/password-input.d.ts +0 -23
  80. package/dist/theme/pin-input.d.ts +0 -3
  81. package/dist/theme/popover.d.ts +0 -6
  82. package/dist/theme/progress.d.ts +0 -51
  83. package/dist/theme/scroll-area.d.ts +0 -3
  84. package/dist/theme/separator.d.ts +0 -3
  85. package/dist/theme/sidebar.d.ts +0 -54
  86. package/dist/theme/skeleton.d.ts +0 -3
  87. package/dist/theme/skeleton.js +1 -1
  88. package/dist/theme/slider.d.ts +0 -6
  89. package/dist/theme/sparkline.d.ts +0 -11
  90. package/dist/theme/sparkline.js +1 -1
  91. package/dist/theme/splitter.d.ts +0 -3
  92. package/dist/theme/stat.d.ts +0 -12
  93. package/dist/theme/stat.js +2 -2
  94. package/dist/theme/switch.d.ts +0 -6
  95. package/dist/theme/table.d.ts +0 -39
  96. package/dist/theme/tabs.d.ts +0 -12
  97. package/dist/theme/time-field.d.ts +0 -3
  98. package/dist/theme/timeline.d.ts +0 -18
  99. package/dist/theme/toast.d.ts +0 -3
  100. package/dist/theme/toggle.d.ts +0 -23
  101. package/dist/theme/tree.d.ts +0 -3
  102. package/package.json +1 -1
@@ -0,0 +1,168 @@
1
+ import { useIryxUiConfig as e } from "../config.js";
2
+ import t from "./Icon.js";
3
+ import { isoToday as n, toCalendarDate as r, toIsoDate as i } from "../composables/date.js";
4
+ import { calendarTheme as a } from "../theme/calendar.js";
5
+ import { Fragment as o, computed as s, createBlock as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, mergeModels as m, normalizeClass as h, openBlock as g, renderList as _, toDisplayString as v, unref as y, useModel as b, withCtx as x } from "vue";
6
+ import { ArrowLeft01Icon as S, ArrowRight01Icon as C } from "@hugeicons/core-free-icons";
7
+ import { CalendarCell as w, CalendarCellTrigger as T, CalendarGrid as E, CalendarGridBody as D, CalendarGridHead as O, CalendarGridRow as k, CalendarHeadCell as A, CalendarHeader as j, CalendarHeading as M, CalendarNext as N, CalendarPrev as P, CalendarRoot as F } from "reka-ui";
8
+ //#region src/components/Calendar.vue?vue&type=script&setup=true&lang.ts
9
+ var I = /*@__PURE__*/ p({
10
+ __name: "Calendar",
11
+ props: /*@__PURE__*/ m({
12
+ min: {},
13
+ max: {},
14
+ locale: {},
15
+ weekStartsOn: {},
16
+ weekdayFormat: {},
17
+ months: {},
18
+ pagedNavigation: { type: Boolean },
19
+ fixedWeeks: {
20
+ type: Boolean,
21
+ default: !0
22
+ },
23
+ disableDaysOutsideCurrentView: { type: Boolean },
24
+ disabled: { type: Boolean },
25
+ readonly: { type: Boolean },
26
+ initialFocus: { type: Boolean },
27
+ isUnavailable: {},
28
+ preventDeselect: { type: Boolean },
29
+ label: {},
30
+ previousLabel: { default: "Previous month" },
31
+ nextLabel: { default: "Next month" },
32
+ unstyled: {
33
+ type: Boolean,
34
+ default: void 0
35
+ },
36
+ class: {},
37
+ ui: {}
38
+ }, {
39
+ modelValue: { default: null },
40
+ modelModifiers: {}
41
+ }),
42
+ emits: ["update:modelValue"],
43
+ setup(p) {
44
+ let m = p, I = b(p, "modelValue"), L = e(), R = s(() => m.unstyled ?? L.unstyled), z = s({
45
+ get: () => r(I.value),
46
+ set: (e) => {
47
+ I.value = i(e);
48
+ }
49
+ }), B = s(() => r(m.min)), V = s(() => r(m.max)), H = s(() => {
50
+ let e = n();
51
+ if (m.min && e < m.min) return r(m.min);
52
+ if (m.max && e > m.max) return r(m.max);
53
+ }), U = s(() => {
54
+ let e = m.isUnavailable;
55
+ if (e) return (t) => {
56
+ let n = i(t);
57
+ return n ? e(n) : !1;
58
+ };
59
+ }), W = s(() => a());
60
+ function G(e, t) {
61
+ let n = m.ui?.[e];
62
+ return R.value ? [n, t] : W.value[e]({ class: [n, t] });
63
+ }
64
+ return (e, n) => (g(), c(y(F), {
65
+ modelValue: z.value,
66
+ "onUpdate:modelValue": n[0] ||= (e) => z.value = e,
67
+ "min-value": B.value,
68
+ "max-value": V.value,
69
+ locale: m.locale,
70
+ "week-starts-on": m.weekStartsOn,
71
+ "weekday-format": m.weekdayFormat,
72
+ "number-of-months": m.months,
73
+ "paged-navigation": m.pagedNavigation,
74
+ "fixed-weeks": m.fixedWeeks,
75
+ "disable-days-outside-current-view": m.disableDaysOutsideCurrentView,
76
+ disabled: m.disabled,
77
+ readonly: m.readonly,
78
+ "initial-focus": m.initialFocus,
79
+ "default-placeholder": H.value,
80
+ "is-date-unavailable": U.value,
81
+ "prevent-deselect": m.preventDeselect,
82
+ "calendar-label": m.label,
83
+ class: h(G("root", m.class))
84
+ }, {
85
+ default: x(({ grid: e, weekDays: n }) => [f(y(j), { class: h(G("header")) }, {
86
+ default: x(() => [
87
+ f(y(P), {
88
+ "aria-label": m.previousLabel,
89
+ class: h(G("nav"))
90
+ }, {
91
+ default: x(() => [f(t, { icon: y(S) }, null, 8, ["icon"])]),
92
+ _: 1
93
+ }, 8, ["aria-label", "class"]),
94
+ f(y(M), { class: h(G("heading")) }, null, 8, ["class"]),
95
+ f(y(N), {
96
+ "aria-label": m.nextLabel,
97
+ class: h(G("nav"))
98
+ }, {
99
+ default: x(() => [f(t, { icon: y(C) }, null, 8, ["icon"])]),
100
+ _: 1
101
+ }, 8, ["aria-label", "class"])
102
+ ]),
103
+ _: 1
104
+ }, 8, ["class"]), u("div", { class: h(G("months")) }, [(g(!0), l(o, null, _(e, (e) => (g(), c(y(E), {
105
+ key: e.value.toString(),
106
+ class: h(G("grid"))
107
+ }, {
108
+ default: x(() => [f(y(O), null, {
109
+ default: x(() => [f(y(k), null, {
110
+ default: x(() => [(g(!0), l(o, null, _(n, (e) => (g(), c(y(A), {
111
+ key: e,
112
+ class: h(G("headCell"))
113
+ }, {
114
+ default: x(() => [d(v(e), 1)]),
115
+ _: 2
116
+ }, 1032, ["class"]))), 128))]),
117
+ _: 2
118
+ }, 1024)]),
119
+ _: 2
120
+ }, 1024), f(y(D), null, {
121
+ default: x(() => [(g(!0), l(o, null, _(e.rows, (t, n) => (g(), c(y(k), { key: `week-${n}` }, {
122
+ default: x(() => [(g(!0), l(o, null, _(t, (t) => (g(), c(y(w), {
123
+ key: t.toString(),
124
+ date: t,
125
+ class: h(G("cell"))
126
+ }, {
127
+ default: x(() => [f(y(T), {
128
+ day: t,
129
+ month: e.value,
130
+ class: h(G("cellTrigger"))
131
+ }, null, 8, [
132
+ "day",
133
+ "month",
134
+ "class"
135
+ ])]),
136
+ _: 2
137
+ }, 1032, ["date", "class"]))), 128))]),
138
+ _: 2
139
+ }, 1024))), 128))]),
140
+ _: 2
141
+ }, 1024)]),
142
+ _: 2
143
+ }, 1032, ["class"]))), 128))], 2)]),
144
+ _: 1
145
+ }, 8, [
146
+ "modelValue",
147
+ "min-value",
148
+ "max-value",
149
+ "locale",
150
+ "week-starts-on",
151
+ "weekday-format",
152
+ "number-of-months",
153
+ "paged-navigation",
154
+ "fixed-weeks",
155
+ "disable-days-outside-current-view",
156
+ "disabled",
157
+ "readonly",
158
+ "initial-focus",
159
+ "default-placeholder",
160
+ "is-date-unavailable",
161
+ "prevent-deselect",
162
+ "calendar-label",
163
+ "class"
164
+ ]));
165
+ }
166
+ });
167
+ //#endregion
168
+ export { I as default };
@@ -75,26 +75,26 @@ export interface ComboboxProps extends ComboboxRootProps {
75
75
  groupLabel?: string;
76
76
  };
77
77
  }
78
- declare var __VLS_16: {
78
+ declare var __VLS_28: {
79
79
  option: ComboboxItemOption;
80
80
  remove: () => void;
81
- }, __VLS_70: {
81
+ }, __VLS_107: {
82
82
  query: string;
83
- }, __VLS_78: {
83
+ }, __VLS_115: {
84
84
  query: string;
85
- }, __VLS_80: {}, __VLS_159: {
85
+ }, __VLS_117: {}, __VLS_196: {
86
86
  query: string;
87
87
  };
88
88
  type __VLS_Slots = {} & {
89
- tag?: (props: typeof __VLS_16) => any;
89
+ tag?: (props: typeof __VLS_28) => any;
90
90
  } & {
91
- empty?: (props: typeof __VLS_70) => any;
91
+ empty?: (props: typeof __VLS_107) => any;
92
92
  } & {
93
- empty?: (props: typeof __VLS_78) => any;
93
+ empty?: (props: typeof __VLS_115) => any;
94
94
  } & {
95
- default?: (props: typeof __VLS_80) => any;
95
+ default?: (props: typeof __VLS_117) => any;
96
96
  } & {
97
- create?: (props: typeof __VLS_159) => any;
97
+ create?: (props: typeof __VLS_196) => any;
98
98
  };
99
99
  declare const __VLS_base: import("vue").DefineComponent<ComboboxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
100
100
  "update:modelValue": (value: AcceptableValue) => any;
@@ -2,11 +2,11 @@ import { useIryxUiConfig as e } from "../config.js";
2
2
  import t from "./Icon.js";
3
3
  import { useFormField as n } from "../composables/form.js";
4
4
  import { comboboxTheme as ee } from "../theme/combobox.js";
5
- import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeProps as f, normalizeClass as p, openBlock as m, ref as h, renderList as g, renderSlot as _, toDisplayString as v, unref as y, vShow as b, watch as x, withCtx as S, withDirectives as te, withModifiers as ne } from "vue";
6
- import { ArrowDown01Icon as re, Cancel01Icon as C, Tick02Icon as w } from "@hugeicons/core-free-icons";
7
- import { ComboboxAnchor as T, ComboboxCancel as ie, ComboboxContent as ae, ComboboxEmpty as oe, ComboboxGroup as se, ComboboxInput as ce, ComboboxItem as E, ComboboxItemIndicator as D, ComboboxLabel as le, ComboboxPortal as ue, ComboboxRoot as de, ComboboxTrigger as fe, ComboboxViewport as pe, ComboboxVirtualizer as me, useFilter as he, useForwardPropsEmits as ge } from "reka-ui";
5
+ import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, openBlock as p, ref as m, renderList as h, renderSlot as g, toDisplayString as _, unref as v, vShow as te, watch as ne, withCtx as y, withDirectives as re, withKeys as ie, withModifiers as ae } from "vue";
6
+ import { ArrowDown01Icon as oe, Cancel01Icon as b, Tick02Icon as x } from "@hugeicons/core-free-icons";
7
+ import { ComboboxAnchor as se, ComboboxCancel as ce, ComboboxContent as le, ComboboxEmpty as ue, ComboboxGroup as de, ComboboxInput as S, ComboboxItem as C, ComboboxItemIndicator as w, ComboboxLabel as T, ComboboxPortal as fe, ComboboxRoot as pe, ComboboxTrigger as me, ComboboxViewport as he, ComboboxVirtualizer as ge, TagsInputInput as _e, TagsInputItem as ve, TagsInputItemDelete as ye, TagsInputItemText as be, TagsInputRoot as xe, useFilter as Se, useForwardPropsEmits as Ce } from "reka-ui";
8
8
  //#region src/components/Combobox.vue?vue&type=script&setup=true&lang.ts
9
- var _e = ["aria-label", "onClick"], O = /*@__PURE__*/ d({
9
+ var E = /*@__PURE__*/ u({
10
10
  inheritAttrs: !1,
11
11
  __name: "Combobox",
12
12
  props: {
@@ -86,185 +86,221 @@ var _e = ["aria-label", "onClick"], O = /*@__PURE__*/ d({
86
86
  "update:open",
87
87
  "create"
88
88
  ],
89
- setup(d, { emit: O }) {
90
- let k = d, A = O, j = h(k.modelValue ?? k.defaultValue);
91
- x(() => k.modelValue, (e) => {
92
- e !== void 0 && (j.value = e);
89
+ setup(u, { emit: E }) {
90
+ let D = u, O = E, k = m(D.modelValue ?? D.defaultValue);
91
+ ne(() => D.modelValue, (e) => {
92
+ e !== void 0 && (k.value = e);
93
93
  });
94
- function M(e) {
95
- j.value = e, A("update:modelValue", e);
94
+ function A(e) {
95
+ k.value = e, O("update:modelValue", e);
96
96
  }
97
- let N = i(() => {
98
- if (!k.clearable || k.disabled) return !1;
99
- let e = j.value;
97
+ let we = i(() => {
98
+ if (!D.clearable || D.disabled) return !1;
99
+ let e = k.value;
100
100
  return Array.isArray(e) ? e.length > 0 : e != null && e !== "";
101
- }), P = ge(i(() => {
102
- let { items: e, placeholder: t, size: n, invalid: ee, id: r, emptyText: i, clearable: a, clearLabel: o, removeLabel: s, create: c, createLabel: l, virtual: u, estimateSize: d, overscan: f, unstyled: p, class: m, ui: h, defaultValue: g, modelValue: _, ...v } = k;
101
+ }), j = Ce(i(() => {
102
+ let { items: e, placeholder: t, size: n, invalid: ee, id: r, emptyText: i, clearable: a, clearLabel: o, removeLabel: s, create: c, createLabel: l, virtual: u, estimateSize: d, overscan: f, unstyled: p, class: m, ui: h, defaultValue: g, modelValue: _, ...v } = D;
103
103
  return {
104
104
  ...v,
105
- modelValue: j.value
105
+ modelValue: k.value
106
106
  };
107
- }), A);
108
- function F(e) {
107
+ }), O);
108
+ function M(e) {
109
109
  return typeof e == "string" ? {
110
110
  label: e,
111
111
  value: e
112
112
  } : e;
113
113
  }
114
- function I(e) {
114
+ function N(e) {
115
115
  return typeof e != "string" && "items" in e;
116
116
  }
117
- let L = i(() => {
118
- let e = k.items ?? [];
119
- return e.some(I) ? e.map((e) => I(e) ? e : {
117
+ let P = i(() => {
118
+ let e = D.items ?? [];
119
+ return e.some(N) ? e.map((e) => N(e) ? e : {
120
120
  label: "",
121
121
  items: [e]
122
122
  }) : void 0;
123
- }), R = i(() => (k.items ?? []).flatMap((e) => I(e) ? e.items.map(F) : [F(e)])), z = i(() => !!k.virtual), B = h(""), V = h("");
124
- function ve(e) {
125
- V.value = e.target.value;
123
+ }), F = i(() => (D.items ?? []).flatMap((e) => N(e) ? e.items.map(M) : [M(e)])), I = i(() => !!D.virtual), L = m(""), R = m("");
124
+ function z(e) {
125
+ R.value = e.target.value;
126
126
  }
127
- let { contains: ye } = he({ sensitivity: "base" }), H = i(() => {
128
- let e = V.value.trim();
129
- return e ? R.value.filter((t) => ye(t.label, e)) : R.value;
130
- }), U = i(() => {
131
- let e = j.value;
132
- return Array.isArray(e) ? e.map((e) => R.value.find((t) => t.value === e) ?? {
127
+ let { contains: Te } = Se({ sensitivity: "base" }), B = i(() => {
128
+ let e = R.value.trim();
129
+ return e ? F.value.filter((t) => Te(t.label, e)) : F.value;
130
+ }), V = i(() => {
131
+ let e = k.value;
132
+ return Array.isArray(e) ? e.map((e) => F.value.find((t) => t.value === e) ?? {
133
133
  label: String(e),
134
134
  value: String(e)
135
135
  }) : [];
136
- }), W = i(() => !!k.multiple && U.value.length > 0);
137
- function G(e) {
138
- let t = j.value;
139
- Array.isArray(t) && M(t.filter((t) => t !== e));
136
+ }), H = i(() => !!D.multiple && V.value.length > 0);
137
+ function Ee(e) {
138
+ let t = k.value;
139
+ Array.isArray(t) && A(t.filter((t) => t !== e));
140
140
  }
141
- function be(e) {
142
- e.key !== "Backspace" || !W.value || e.target.value === "" && (e.preventDefault(), G(U.value[U.value.length - 1].value));
143
- }
144
- function xe(e) {
145
- let t = (e) => R.value.find((t) => t.value === e)?.label ?? String(e ?? "");
146
- return Array.isArray(e) ? W.value ? "" : e.map(t).join(", ") : e == null || e === "" ? "" : t(e);
141
+ let U = i({
142
+ get: () => V.value,
143
+ set: (e) => A(e.map((e) => e.value))
144
+ });
145
+ function W(e) {
146
+ let t = (e) => F.value.find((t) => t.value === e)?.label ?? String(e ?? "");
147
+ return Array.isArray(e) ? H.value ? "" : e.map(t).join(", ") : e == null || e === "" ? "" : t(e);
147
148
  }
148
- function Se(e) {
149
+ function G(e) {
149
150
  let t = e.target;
150
151
  requestAnimationFrame(() => {
151
152
  document.activeElement === t && t.select();
152
- }), V.value = "";
153
+ }), R.value = "";
153
154
  }
154
155
  let K = i(() => {
155
- let e = V.value.trim();
156
- return !!k.create && e.length > 0 && !R.value.some((t) => t.label.toLowerCase() === e.toLowerCase());
156
+ let e = R.value.trim();
157
+ return !!D.create && e.length > 0 && !F.value.some((t) => t.label.toLowerCase() === e.toLowerCase());
157
158
  });
158
- function q(e) {
159
- e.preventDefault(), A("create", V.value.trim()), e.target?.dispatchEvent(new KeyboardEvent("keydown", {
159
+ function De(e) {
160
+ e.preventDefault(), O("create", R.value.trim()), e.target?.dispatchEvent(new KeyboardEvent("keydown", {
160
161
  key: "Escape",
161
162
  bubbles: !0
162
163
  }));
163
164
  }
164
- let J = n(), Ce = i(() => k.id ?? J?.id.value), Y = i(() => k.invalid ?? J?.invalid.value ?? !1), we = e(), X = i(() => k.unstyled ?? we.unstyled), Z = i(() => ee({
165
- size: k.size,
166
- chips: W.value,
165
+ let q = n(), J = i(() => D.id ?? q?.id.value), Y = i(() => D.invalid ?? q?.invalid.value ?? !1), Oe = e(), X = i(() => D.unstyled ?? Oe.unstyled), Z = i(() => ee({
166
+ size: D.size,
167
+ chips: H.value,
167
168
  invalid: Y.value,
168
- disabled: k.disabled
169
+ disabled: D.disabled
169
170
  }));
170
171
  function Q(e, t) {
171
- let n = k.ui?.[e];
172
+ let n = D.ui?.[e];
172
173
  return X.value ? [n, t] : Z.value[e]({ class: [n, t] });
173
174
  }
174
175
  let $ = i(() => X.value ? void 0 : Z.value.itemIndicator());
175
- return (e, n) => (m(), a(y(de), f(y(P), {
176
+ return (e, n) => (p(), a(v(pe), d(v(j), {
176
177
  "open-on-click": "",
177
- "reset-model-value-on-clear": k.clearable || k.resetModelValueOnClear,
178
+ "reset-model-value-on-clear": D.clearable || D.resetModelValueOnClear,
178
179
  class: "contents",
179
- "onUpdate:modelValue": n[1] ||= (e) => j.value = e
180
+ "onUpdate:modelValue": n[4] ||= (e) => k.value = e
180
181
  }), {
181
- default: S(() => [u(y(T), { class: p(Q("anchor", k.class)) }, {
182
- default: S(() => [
183
- (m(!0), s(r, null, g(U.value, (n) => (m(), s("span", {
182
+ default: y(() => [l(v(se), { class: f(Q("anchor", D.class)) }, {
183
+ default: y(() => [D.multiple ? (p(), a(v(xe), {
184
+ key: 0,
185
+ modelValue: U.value,
186
+ "onUpdate:modelValue": n[2] ||= (e) => U.value = e,
187
+ delimiter: "",
188
+ disabled: D.disabled,
189
+ class: "contents"
190
+ }, {
191
+ default: y(() => [(p(!0), s(r, null, h(V.value, (n) => (p(), a(v(ve), {
184
192
  key: String(n.value),
185
- class: p(Q("tag"))
186
- }, [_(e.$slots, "tag", {
187
- option: n,
188
- remove: () => G(n.value)
189
- }, () => [c("span", { class: p(Q("tagText")) }, v(n.label), 3), c("button", {
190
- type: "button",
191
- tabindex: "-1",
192
- "aria-label": k.removeLabel(n.label),
193
- class: p(Q("tagDelete")),
194
- onClick: ne((e) => G(n.value), ["stop"])
195
- }, [u(t, { icon: y(C) }, null, 8, ["icon"])], 10, _e)])], 2))), 128)),
196
- u(y(ce), f({
197
- id: Ce.value,
198
- modelValue: B.value,
199
- "onUpdate:modelValue": n[0] ||= (e) => B.value = e
200
- }, e.$attrs, {
201
- placeholder: k.placeholder,
202
- "display-value": xe,
203
- "aria-invalid": Y.value || void 0,
204
- "aria-describedby": y(J)?.describedBy.value,
205
- class: Q("input"),
206
- onFocus: Se,
207
- onInput: ve,
208
- onKeydown: be
209
- }), null, 16, [
210
- "id",
211
- "modelValue",
212
- "placeholder",
213
- "aria-invalid",
214
- "aria-describedby",
215
- "class"
216
- ]),
217
- N.value ? (m(), a(y(ie), {
218
- key: 0,
219
- "aria-label": k.clearLabel,
220
- class: p(Q("clear"))
193
+ value: n,
194
+ class: f(Q("tag"))
221
195
  }, {
222
- default: S(() => [u(t, { icon: y(C) }, null, 8, ["icon"])]),
223
- _: 1
224
- }, 8, ["aria-label", "class"])) : (m(), a(y(fe), {
225
- key: 1,
226
- class: p(Q("trigger"))
196
+ default: y(() => [g(e.$slots, "tag", {
197
+ option: n,
198
+ remove: () => Ee(n.value)
199
+ }, () => [l(v(be), { class: f(Q("tagText")) }, {
200
+ default: y(() => [c(_(n.label), 1)]),
201
+ _: 2
202
+ }, 1032, ["class"]), l(v(ye), {
203
+ "aria-label": D.removeLabel(n.label),
204
+ class: f(Q("tagDelete"))
205
+ }, {
206
+ default: y(() => [l(t, { icon: v(b) }, null, 8, ["icon"])]),
207
+ _: 1
208
+ }, 8, ["aria-label", "class"])])]),
209
+ _: 2
210
+ }, 1032, ["value", "class"]))), 128)), l(v(S), {
211
+ id: J.value,
212
+ modelValue: L.value,
213
+ "onUpdate:modelValue": n[1] ||= (e) => L.value = e,
214
+ "as-child": "",
215
+ "display-value": W
227
216
  }, {
228
- default: S(() => [u(t, { icon: y(re) }, null, 8, ["icon"])]),
217
+ default: y(() => [l(v(_e), d(e.$attrs, {
218
+ placeholder: D.placeholder,
219
+ "aria-invalid": Y.value || void 0,
220
+ "aria-describedby": v(q)?.describedBy.value,
221
+ class: Q("input"),
222
+ onKeydown: n[0] ||= ie(ae(() => {}, ["prevent"]), ["enter"]),
223
+ onFocus: G,
224
+ onInput: z
225
+ }), null, 16, [
226
+ "placeholder",
227
+ "aria-invalid",
228
+ "aria-describedby",
229
+ "class"
230
+ ])]),
229
231
  _: 1
230
- }, 8, ["class"]))
231
- ]),
232
+ }, 8, ["id", "modelValue"])]),
233
+ _: 3
234
+ }, 8, ["modelValue", "disabled"])) : (p(), a(v(S), d({
235
+ key: 1,
236
+ id: J.value,
237
+ modelValue: L.value,
238
+ "onUpdate:modelValue": n[3] ||= (e) => L.value = e
239
+ }, e.$attrs, {
240
+ placeholder: D.placeholder,
241
+ "display-value": W,
242
+ "aria-invalid": Y.value || void 0,
243
+ "aria-describedby": v(q)?.describedBy.value,
244
+ class: Q("input"),
245
+ onFocus: G,
246
+ onInput: z
247
+ }), null, 16, [
248
+ "id",
249
+ "modelValue",
250
+ "placeholder",
251
+ "aria-invalid",
252
+ "aria-describedby",
253
+ "class"
254
+ ])), we.value ? (p(), a(v(ce), {
255
+ key: 2,
256
+ "aria-label": D.clearLabel,
257
+ class: f(Q("clear"))
258
+ }, {
259
+ default: y(() => [l(t, { icon: v(b) }, null, 8, ["icon"])]),
260
+ _: 1
261
+ }, 8, ["aria-label", "class"])) : (p(), a(v(me), {
262
+ key: 3,
263
+ class: f(Q("trigger"))
264
+ }, {
265
+ default: y(() => [l(t, { icon: v(oe) }, null, 8, ["icon"])]),
266
+ _: 1
267
+ }, 8, ["class"]))]),
232
268
  _: 3
233
- }, 8, ["class"]), u(y(ue), null, {
234
- default: S(() => [u(y(ae), {
235
- class: p(Q("content")),
269
+ }, 8, ["class"]), l(v(fe), null, {
270
+ default: y(() => [l(v(le), {
271
+ class: f(Q("content")),
236
272
  position: "popper",
237
273
  "side-offset": 4
238
274
  }, {
239
- default: S(() => [u(y(pe), { class: p(Q("viewport")) }, {
240
- default: S(() => [
241
- z.value ? te((m(), s("div", {
275
+ default: y(() => [l(v(he), { class: f(Q("viewport")) }, {
276
+ default: y(() => [
277
+ I.value ? re((p(), s("div", {
242
278
  key: 0,
243
- class: p(Q("empty"))
244
- }, [_(e.$slots, "empty", { query: V.value }, () => [l(v(k.emptyText), 1)])], 2)), [[b, !K.value && H.value.length === 0]]) : K.value ? o("", !0) : (m(), a(y(oe), {
279
+ class: f(Q("empty"))
280
+ }, [g(e.$slots, "empty", { query: R.value }, () => [c(_(D.emptyText), 1)])], 2)), [[te, !K.value && B.value.length === 0]]) : K.value ? o("", !0) : (p(), a(v(ue), {
245
281
  key: 1,
246
- class: p(Q("empty"))
282
+ class: f(Q("empty"))
247
283
  }, {
248
- default: S(() => [_(e.$slots, "empty", { query: V.value }, () => [l(v(k.emptyText), 1)])]),
284
+ default: y(() => [g(e.$slots, "empty", { query: R.value }, () => [c(_(D.emptyText), 1)])]),
249
285
  _: 3
250
286
  }, 8, ["class"])),
251
- _(e.$slots, "default", {}, () => [z.value ? (m(), a(y(me), {
287
+ g(e.$slots, "default", {}, () => [I.value ? (p(), a(v(ge), {
252
288
  key: 0,
253
- options: H.value,
254
- "estimate-size": k.estimateSize,
255
- overscan: k.overscan,
289
+ options: B.value,
290
+ "estimate-size": D.estimateSize,
291
+ overscan: D.overscan,
256
292
  "text-content": (e) => e.label
257
293
  }, {
258
- default: S(({ option: e }) => [u(y(E), {
294
+ default: y(({ option: e }) => [l(v(C), {
259
295
  value: e.value,
260
296
  "text-value": e.label,
261
297
  disabled: e.disabled,
262
- class: p(Q("item"))
298
+ class: f(Q("item"))
263
299
  }, {
264
- default: S(() => [u(y(D), { class: p($.value) }, {
265
- default: S(() => [u(t, { icon: y(w) }, null, 8, ["icon"])]),
300
+ default: y(() => [l(v(w), { class: f($.value) }, {
301
+ default: y(() => [l(t, { icon: v(x) }, null, 8, ["icon"])]),
266
302
  _: 1
267
- }, 8, ["class"]), l(" " + v(e.label), 1)]),
303
+ }, 8, ["class"]), c(" " + _(e.label), 1)]),
268
304
  _: 2
269
305
  }, 1032, [
270
306
  "value",
@@ -278,27 +314,27 @@ var _e = ["aria-label", "onClick"], O = /*@__PURE__*/ d({
278
314
  "estimate-size",
279
315
  "overscan",
280
316
  "text-content"
281
- ])) : L.value ? (m(!0), s(r, { key: 1 }, g(L.value, (e, n) => (m(), a(y(se), {
317
+ ])) : P.value ? (p(!0), s(r, { key: 1 }, h(P.value, (e, n) => (p(), a(v(de), {
282
318
  key: e.label || n,
283
- class: p(Q("group"))
319
+ class: f(Q("group"))
284
320
  }, {
285
- default: S(() => [e.label ? (m(), a(y(le), {
321
+ default: y(() => [e.label ? (p(), a(v(T), {
286
322
  key: 0,
287
- class: p(Q("groupLabel"))
323
+ class: f(Q("groupLabel"))
288
324
  }, {
289
- default: S(() => [l(v(e.label), 1)]),
325
+ default: y(() => [c(_(e.label), 1)]),
290
326
  _: 2
291
- }, 1032, ["class"])) : o("", !0), (m(!0), s(r, null, g(e.items, (e) => (m(), a(y(E), {
327
+ }, 1032, ["class"])) : o("", !0), (p(!0), s(r, null, h(e.items, (e) => (p(), a(v(C), {
292
328
  key: typeof e == "string" ? e : e.value,
293
329
  value: typeof e == "string" ? e : e.value,
294
330
  "text-value": typeof e == "string" ? e : e.label,
295
331
  disabled: typeof e == "string" ? void 0 : e.disabled,
296
- class: p(Q("item"))
332
+ class: f(Q("item"))
297
333
  }, {
298
- default: S(() => [u(y(D), { class: p($.value) }, {
299
- default: S(() => [u(t, { icon: y(w) }, null, 8, ["icon"])]),
334
+ default: y(() => [l(v(w), { class: f($.value) }, {
335
+ default: y(() => [l(t, { icon: v(x) }, null, 8, ["icon"])]),
300
336
  _: 1
301
- }, 8, ["class"]), l(" " + v(typeof e == "string" ? e : e.label), 1)]),
337
+ }, 8, ["class"]), c(" " + _(typeof e == "string" ? e : e.label), 1)]),
302
338
  _: 2
303
339
  }, 1032, [
304
340
  "value",
@@ -307,17 +343,17 @@ var _e = ["aria-label", "onClick"], O = /*@__PURE__*/ d({
307
343
  "class"
308
344
  ]))), 128))]),
309
345
  _: 2
310
- }, 1032, ["class"]))), 128)) : (m(!0), s(r, { key: 2 }, g(R.value, (e) => (m(), a(y(E), {
346
+ }, 1032, ["class"]))), 128)) : (p(!0), s(r, { key: 2 }, h(F.value, (e) => (p(), a(v(C), {
311
347
  key: e.value,
312
348
  value: e.value,
313
349
  "text-value": e.label,
314
350
  disabled: e.disabled,
315
- class: p(Q("item"))
351
+ class: f(Q("item"))
316
352
  }, {
317
- default: S(() => [u(y(D), { class: p($.value) }, {
318
- default: S(() => [u(t, { icon: y(w) }, null, 8, ["icon"])]),
353
+ default: y(() => [l(v(w), { class: f($.value) }, {
354
+ default: y(() => [l(t, { icon: v(x) }, null, 8, ["icon"])]),
319
355
  _: 1
320
- }, 8, ["class"]), l(" " + v(e.label), 1)]),
356
+ }, 8, ["class"]), c(" " + _(e.label), 1)]),
321
357
  _: 2
322
358
  }, 1032, [
323
359
  "value",
@@ -325,15 +361,15 @@ var _e = ["aria-label", "onClick"], O = /*@__PURE__*/ d({
325
361
  "disabled",
326
362
  "class"
327
363
  ]))), 128))]),
328
- K.value ? (m(), a(y(E), {
329
- key: V.value,
330
- value: V.value,
364
+ K.value ? (p(), a(v(C), {
365
+ key: R.value,
366
+ value: R.value,
331
367
  "data-create": "",
332
- "text-value": V.value,
333
- class: p(Q("item")),
334
- onSelect: q
368
+ "text-value": R.value,
369
+ class: f(Q("item")),
370
+ onSelect: De
335
371
  }, {
336
- default: S(() => [_(e.$slots, "create", { query: V.value }, () => [l(v(k.createLabel(V.value.trim())), 1)])]),
372
+ default: y(() => [g(e.$slots, "create", { query: R.value }, () => [c(_(D.createLabel(R.value.trim())), 1)])]),
337
373
  _: 3
338
374
  }, 8, [
339
375
  "value",
@@ -352,4 +388,4 @@ var _e = ["aria-label", "onClick"], O = /*@__PURE__*/ d({
352
388
  }
353
389
  });
354
390
  //#endregion
355
- export { O as default };
391
+ export { E as default };
@@ -0,0 +1,5 @@
1
+ import e from "./DateField.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/components/DateField.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };