@wirecore/wirelayer-vue 0.8.0 → 0.9.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.
- package/README.md +5 -0
- package/dist/{ContextMenu-B6agwyf_.js → ContextMenu-CBE9YnDW.js} +607 -597
- package/dist/{Select-CeZbSy6K.js → Select-q8FUIWLi.js} +46 -45
- package/dist/Tree-B-0NXpUq.js +839 -0
- package/dist/components/Avatar/Avatar.vue.d.ts +2 -0
- package/dist/components/Avatar/Avatar.vue.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.d.ts +2 -0
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Code/Code.vue.d.ts +21 -0
- package/dist/components/Code/Code.vue.d.ts.map +1 -0
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts +3 -3
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/components/Dialog/DialogContent.vue.d.ts +7 -1
- package/dist/components/Dialog/DialogContent.vue.d.ts.map +1 -1
- package/dist/components/Dialog/context.d.ts +3 -1
- package/dist/components/Dialog/context.d.ts.map +1 -1
- package/dist/components/NativeSelect/NativeSelect.vue.d.ts +13 -10
- package/dist/components/NativeSelect/NativeSelect.vue.d.ts.map +1 -1
- package/dist/components/NumberInput/NumberInput.vue.d.ts +27 -20
- package/dist/components/NumberInput/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/Progress/Progress.vue.d.ts +5 -2
- package/dist/components/Progress/Progress.vue.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.vue.d.ts +14 -7
- package/dist/components/RadioGroup/RadioGroup.vue.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +14 -6
- package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts.map +1 -1
- package/dist/components/Select/Select.vue.d.ts +13 -7
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.vue.d.ts +2 -0
- package/dist/components/Stepper/Stepper.vue.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.vue.d.ts +6 -3
- package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/TabsTrigger.vue.d.ts +6 -0
- package/dist/components/Tabs/TabsTrigger.vue.d.ts.map +1 -1
- package/dist/components/Tabs/context.d.ts +4 -0
- package/dist/components/Tabs/context.d.ts.map +1 -0
- package/dist/components/Wizard/Wizard.vue.d.ts +10 -2
- package/dist/components/Wizard/Wizard.vue.d.ts.map +1 -1
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.d.ts.map +1 -1
- package/dist/composables/media.d.ts +8 -1
- package/dist/composables/media.d.ts.map +1 -1
- package/dist/data-table.js +2 -2
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1765 -1718
- package/dist/pdf.js +2 -2
- package/dist/sources/Code.css +2 -0
- package/llms-full.txt +63 -16
- package/llms.txt +1 -0
- package/package.json +3 -3
- package/dist/Tree-DgHt0P5P.js +0 -807
|
@@ -3,29 +3,29 @@ import { t as r } from "./attrs-KNjeRUCf.js";
|
|
|
3
3
|
import { i, n as a, t as o } from "./InputStatus-Cgarj-yu.js";
|
|
4
4
|
import { t as s } from "./Input-C5dyvZfJ.js";
|
|
5
5
|
import { t as c } from "./label-for-eQvYjsM5.js";
|
|
6
|
-
import { n as l, t as u } from "./Select-
|
|
6
|
+
import { n as l, t as u } from "./Select-q8FUIWLi.js";
|
|
7
7
|
import { a as d, n as f, r as p } from "./Highlight-uwptdaUw.js";
|
|
8
|
-
import { Fragment as m, Teleport as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, defineComponent as w, guardReactiveProps as T, inject as E, mergeModels as D, mergeProps as O, nextTick as k, normalizeClass as A, normalizeProps as j, normalizeStyle as M, onBeforeUnmount as
|
|
9
|
-
import { CalendarDays as
|
|
10
|
-
import { SUBMENU_GUTTER as
|
|
11
|
-
import { Menu as
|
|
8
|
+
import { Fragment as m, Teleport as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, defineComponent as w, guardReactiveProps as T, inject as E, mergeModels as D, mergeProps as O, nextTick as k, normalizeClass as A, normalizeProps as j, normalizeStyle as M, onBeforeUnmount as N, onMounted as P, openBlock as F, provide as I, reactive as L, ref as R, renderList as z, renderSlot as B, resolveComponent as ee, resolveDynamicComponent as V, shallowRef as H, toDisplayString as U, unref as W, useAttrs as te, useId as ne, useModel as re, useTemplateRef as ie, vModelText as G, watch as K, withCtx as q, withDirectives as J, withKeys as Y } from "vue";
|
|
9
|
+
import { CalendarDays as ae, Check as oe, ChevronDown as se, ChevronLeft as ce, ChevronRight as le, ChevronUp as ue, ChevronsLeft as de, ChevronsRight as fe, Circle as pe, LoaderCircle as me, Minus as he, Plus as ge, X as _e } from "@lucide/vue";
|
|
10
|
+
import { SUBMENU_GUTTER as ve, allListOptionsState as ye, anchorBox as be, closeMenuOnPageEvents as xe, controlIds as Se, createContextMenuSource as Ce, createLongPress as we, datePicker as X, defaultNumberFormat as Te, filterMenuEntries as Ee, fromWallIso as De, highlightFirstMenuItem as Oe, insertIntoTextControl as ke, isoWeekday as Ae, linkTarget as je, localeWeekInfo as Me, menu as Ne, menuSearchKey as Pe, multiSelect as Fe, numberInput as Ie, numberInputKey as Le, pageForSize as Re, pagination as ze, parseLocaleNumber as Be, parsePastedDate as Ve, parsePastedRange as He, pluralText as Ue, rowWeekNumber as We, setTextControlValue as Ge, skeleton as Ke, textarea as qe, textareaParts as Je, timeSlots as Ye, timeZoneLabel as Xe, timeZoneLongLabel as Ze, toNumberInputValue as Qe, toOverlayAnchor as $e, toWallIso as et, todayIso as tt, toggleAllListOptions as nt, zonedToInstant as rt } from "@wirecore/wirelayer-recipes";
|
|
11
|
+
import { Menu as Z } from "@ark-ui/vue/menu";
|
|
12
12
|
import { useFilter as it } from "@ark-ui/vue/locale";
|
|
13
13
|
import { Field as at, useFieldContext as ot } from "@ark-ui/vue/field";
|
|
14
|
-
import { Pagination as
|
|
15
|
-
import { createListCollection as
|
|
14
|
+
import { Pagination as st, usePagination as ct } from "@ark-ui/vue/pagination";
|
|
15
|
+
import { createListCollection as lt } from "@ark-ui/vue/collection";
|
|
16
16
|
import { Select as Q } from "@ark-ui/vue/select";
|
|
17
|
-
import { DateInput as
|
|
18
|
-
import { DatePicker as $, useDatePickerContext as
|
|
19
|
-
import { CalendarDateTime as
|
|
20
|
-
import { NumberInput as
|
|
17
|
+
import { DateInput as ut } from "@ark-ui/vue/date-input";
|
|
18
|
+
import { DatePicker as $, useDatePickerContext as dt } from "@ark-ui/vue/date-picker";
|
|
19
|
+
import { CalendarDateTime as ft, DateFormatter as pt, Time as mt, parseDate as ht, parseDateTime as gt, toCalendarDateTime as _t } from "@internationalized/date";
|
|
20
|
+
import { NumberInput as vt, useNumberInput as yt } from "@ark-ui/vue/number-input";
|
|
21
21
|
//#region src/components/Menu/state.ts
|
|
22
|
-
var
|
|
23
|
-
function
|
|
24
|
-
let t =
|
|
22
|
+
var bt = Symbol("wirecore-menu-state");
|
|
23
|
+
function xt(e) {
|
|
24
|
+
let t = L({
|
|
25
25
|
checked: {},
|
|
26
26
|
radio: {}
|
|
27
27
|
});
|
|
28
|
-
|
|
28
|
+
K(e.items, () => {
|
|
29
29
|
t.checked = {}, t.radio = {};
|
|
30
30
|
});
|
|
31
31
|
let n = {
|
|
@@ -39,24 +39,24 @@ function bt(e) {
|
|
|
39
39
|
},
|
|
40
40
|
linkAs: () => e.linkAs() ?? "a"
|
|
41
41
|
};
|
|
42
|
-
return
|
|
42
|
+
return I(bt, n), n;
|
|
43
43
|
}
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
|
|
44
|
+
var St = () => E(bt, null);
|
|
45
|
+
function Ct(e) {
|
|
46
|
+
K([
|
|
47
47
|
e.open,
|
|
48
48
|
e.closeOnScroll,
|
|
49
49
|
e.closeOnResize,
|
|
50
50
|
e.closeOnBlur
|
|
51
51
|
], ([t, n, r, i], a, o) => {
|
|
52
|
-
t && (n || r || i) && typeof window < "u" && o(
|
|
52
|
+
t && (n || r || i) && typeof window < "u" && o(xe(e.close, {
|
|
53
53
|
scroll: n,
|
|
54
54
|
resize: r,
|
|
55
55
|
blur: i
|
|
56
56
|
}));
|
|
57
57
|
}, { immediate: !0 });
|
|
58
|
-
let t =
|
|
59
|
-
return
|
|
58
|
+
let t = R(null);
|
|
59
|
+
return K(e.open, async (n) => {
|
|
60
60
|
t.value = null, n && e.highlightFirst() && (await k(), requestAnimationFrame(() => {
|
|
61
61
|
let n = e.content();
|
|
62
62
|
n && t.value === null && Oe(n, { setHighlightedValue: (e) => t.value = e });
|
|
@@ -68,7 +68,7 @@ function St(e) {
|
|
|
68
68
|
}
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region src/components/Menu/MenuEntries.vue
|
|
71
|
-
var
|
|
71
|
+
var wt = /* @__PURE__ */ w({
|
|
72
72
|
name: "MenuEntries",
|
|
73
73
|
__name: "MenuEntries",
|
|
74
74
|
props: { entries: {} },
|
|
@@ -76,55 +76,55 @@ var Ct = /* @__PURE__ */ w({
|
|
|
76
76
|
setup(e, { emit: t }) {
|
|
77
77
|
let r = n("menu", Ne), i = t, a = r(), o = {
|
|
78
78
|
placement: "right-start",
|
|
79
|
-
offset: { mainAxis:
|
|
80
|
-
}, s =
|
|
79
|
+
offset: { mainAxis: ve }
|
|
80
|
+
}, s = St(), c = (e, t) => !("type" in e) || e.type === "checkbox" ? e.value : e.type === "radio" ? `radio-${e.name}` : `${e.type}-${t}`;
|
|
81
81
|
return (t, n) => {
|
|
82
|
-
let l =
|
|
83
|
-
return
|
|
82
|
+
let l = ee("MenuEntries", !0);
|
|
83
|
+
return F(!0), y(m, null, z(e.entries, (e, u) => (F(), y(m, { key: c(e, u) }, ["type" in e && e.type === "separator" ? (F(), _(W(Z).Separator, {
|
|
84
84
|
key: 0,
|
|
85
|
-
class: A(
|
|
86
|
-
}, null, 8, ["class"])) : "type" in e && e.type === "group" ? (
|
|
87
|
-
default:
|
|
88
|
-
default:
|
|
85
|
+
class: A(W(a).separator())
|
|
86
|
+
}, null, 8, ["class"])) : "type" in e && e.type === "group" ? (F(), _(W(Z).ItemGroup, { key: 1 }, {
|
|
87
|
+
default: q(() => [C(W(Z).ItemGroupLabel, { class: A(W(a).groupLabel()) }, {
|
|
88
|
+
default: q(() => [S(U(e.label), 1)]),
|
|
89
89
|
_: 2
|
|
90
90
|
}, 1032, ["class"]), C(l, {
|
|
91
91
|
entries: e.items,
|
|
92
92
|
onSelect: n[0] ||= (e) => i("select", e)
|
|
93
93
|
}, x({ _: 2 }, [t.$slots.item ? {
|
|
94
94
|
name: "item",
|
|
95
|
-
fn:
|
|
95
|
+
fn: q((e) => [B(t.$slots, "item", O({ ref_for: !0 }, e))]),
|
|
96
96
|
key: "0"
|
|
97
97
|
} : void 0]), 1032, ["entries"])]),
|
|
98
98
|
_: 2
|
|
99
|
-
}, 1024)) : "type" in e && e.type === "radio" ? (
|
|
99
|
+
}, 1024)) : "type" in e && e.type === "radio" ? (F(), _(W(Z).RadioItemGroup, {
|
|
100
100
|
key: 2,
|
|
101
|
-
"model-value":
|
|
102
|
-
"onUpdate:modelValue": (t) =>
|
|
101
|
+
"model-value": W(s)?.radio(e),
|
|
102
|
+
"onUpdate:modelValue": (t) => W(s)?.setRadio(e, t)
|
|
103
103
|
}, {
|
|
104
|
-
default:
|
|
104
|
+
default: q(() => [e.label ? (F(), _(W(Z).ItemGroupLabel, {
|
|
105
105
|
key: 0,
|
|
106
|
-
class: A(
|
|
106
|
+
class: A(W(a).groupLabel())
|
|
107
107
|
}, {
|
|
108
|
-
default:
|
|
108
|
+
default: q(() => [S(U(e.label), 1)]),
|
|
109
109
|
_: 2
|
|
110
|
-
}, 1032, ["class"])) : v("", !0), (
|
|
110
|
+
}, 1032, ["class"])) : v("", !0), (F(!0), y(m, null, z(e.items, (e) => (F(), _(W(Z).RadioItem, {
|
|
111
111
|
key: e.value,
|
|
112
112
|
value: e.value,
|
|
113
113
|
disabled: e.disabled,
|
|
114
114
|
"close-on-select": e.closeOnSelect ?? !1,
|
|
115
|
-
class: A(
|
|
115
|
+
class: A(W(a).item())
|
|
116
116
|
}, {
|
|
117
|
-
default:
|
|
118
|
-
default:
|
|
119
|
-
class: A(
|
|
117
|
+
default: q(() => [b("span", { class: A(W(a).indicator()) }, [C(W(Z).ItemIndicator, null, {
|
|
118
|
+
default: q(() => [C(W(pe), {
|
|
119
|
+
class: A(W(a).indicatorDot()),
|
|
120
120
|
"aria-hidden": "true"
|
|
121
121
|
}, null, 8, ["class"])]),
|
|
122
122
|
_: 1
|
|
123
|
-
})], 2),
|
|
123
|
+
})], 2), B(t.$slots, "item", { item: e }, () => [e.icon ? (F(), _(V(e.icon), {
|
|
124
124
|
key: 0,
|
|
125
|
-
class: A(
|
|
125
|
+
class: A(W(a).icon()),
|
|
126
126
|
"aria-hidden": "true"
|
|
127
|
-
}, null, 8, ["class"])) : v("", !0), b("span", { class: A(
|
|
127
|
+
}, null, 8, ["class"])) : v("", !0), b("span", { class: A(W(a).label()) }, U(e.label), 3)])]),
|
|
128
128
|
_: 2
|
|
129
129
|
}, 1032, [
|
|
130
130
|
"value",
|
|
@@ -133,26 +133,26 @@ var Ct = /* @__PURE__ */ w({
|
|
|
133
133
|
"class"
|
|
134
134
|
]))), 128))]),
|
|
135
135
|
_: 2
|
|
136
|
-
}, 1032, ["model-value", "onUpdate:modelValue"])) : "type" in e && e.type === "checkbox" ? (
|
|
136
|
+
}, 1032, ["model-value", "onUpdate:modelValue"])) : "type" in e && e.type === "checkbox" ? (F(), _(W(Z).CheckboxItem, {
|
|
137
137
|
key: 3,
|
|
138
138
|
value: e.value,
|
|
139
|
-
checked:
|
|
139
|
+
checked: W(s)?.checked(e) ?? !!e.checked,
|
|
140
140
|
disabled: e.disabled,
|
|
141
141
|
"close-on-select": e.closeOnSelect ?? !1,
|
|
142
|
-
class: A(
|
|
143
|
-
"onUpdate:checked": (t) =>
|
|
142
|
+
class: A(W(a).item()),
|
|
143
|
+
"onUpdate:checked": (t) => W(s)?.setChecked(e, t)
|
|
144
144
|
}, {
|
|
145
|
-
default:
|
|
146
|
-
default:
|
|
147
|
-
class: A(
|
|
145
|
+
default: q(() => [b("span", { class: A(W(a).indicator()) }, [C(W(Z).ItemIndicator, null, {
|
|
146
|
+
default: q(() => [C(W(oe), {
|
|
147
|
+
class: A(W(a).indicatorIcon()),
|
|
148
148
|
"aria-hidden": "true"
|
|
149
149
|
}, null, 8, ["class"])]),
|
|
150
150
|
_: 1
|
|
151
|
-
})], 2),
|
|
151
|
+
})], 2), B(t.$slots, "item", { item: e }, () => [e.icon ? (F(), _(V(e.icon), {
|
|
152
152
|
key: 0,
|
|
153
|
-
class: A(
|
|
153
|
+
class: A(W(a).icon()),
|
|
154
154
|
"aria-hidden": "true"
|
|
155
|
-
}, null, 8, ["class"])) : v("", !0), b("span", { class: A(
|
|
155
|
+
}, null, 8, ["class"])) : v("", !0), b("span", { class: A(W(a).label()) }, U(e.label), 3)])]),
|
|
156
156
|
_: 2
|
|
157
157
|
}, 1032, [
|
|
158
158
|
"value",
|
|
@@ -161,33 +161,33 @@ var Ct = /* @__PURE__ */ w({
|
|
|
161
161
|
"close-on-select",
|
|
162
162
|
"class",
|
|
163
163
|
"onUpdate:checked"
|
|
164
|
-
])) : !("type" in e) && e.children ? (
|
|
164
|
+
])) : !("type" in e) && e.children ? (F(), _(W(Z).Root, {
|
|
165
165
|
key: 4,
|
|
166
166
|
positioning: o,
|
|
167
167
|
onSelect: n[2] ||= (e) => i("select", e.value)
|
|
168
168
|
}, {
|
|
169
|
-
default:
|
|
170
|
-
default:
|
|
171
|
-
e.icon ? (
|
|
169
|
+
default: q(() => [C(W(Z).TriggerItem, { class: A(W(a).item()) }, {
|
|
170
|
+
default: q(() => [
|
|
171
|
+
e.icon ? (F(), _(V(e.icon), {
|
|
172
172
|
key: 0,
|
|
173
|
-
class: A(
|
|
173
|
+
class: A(W(a).icon()),
|
|
174
174
|
"aria-hidden": "true"
|
|
175
175
|
}, null, 8, ["class"])) : v("", !0),
|
|
176
|
-
b("span", { class: A(
|
|
177
|
-
C(
|
|
178
|
-
class: A(
|
|
176
|
+
b("span", { class: A(W(a).label()) }, U(e.label), 3),
|
|
177
|
+
C(W(le), {
|
|
178
|
+
class: A(W(a).submenuIcon()),
|
|
179
179
|
"aria-hidden": "true"
|
|
180
180
|
}, null, 8, ["class"])
|
|
181
181
|
]),
|
|
182
182
|
_: 2
|
|
183
|
-
}, 1032, ["class"]), (
|
|
184
|
-
default:
|
|
185
|
-
default:
|
|
183
|
+
}, 1032, ["class"]), (F(), _(h, { to: "body" }, [C(W(Z).Positioner, null, {
|
|
184
|
+
default: q(() => [C(W(Z).Content, { class: A(W(a).content()) }, {
|
|
185
|
+
default: q(() => [C(l, {
|
|
186
186
|
entries: e.children,
|
|
187
187
|
onSelect: n[1] ||= (e) => i("select", e)
|
|
188
188
|
}, x({ _: 2 }, [t.$slots.item ? {
|
|
189
189
|
name: "item",
|
|
190
|
-
fn:
|
|
190
|
+
fn: q((e) => [B(t.$slots, "item", O({ ref_for: !0 }, e))]),
|
|
191
191
|
key: "0"
|
|
192
192
|
} : void 0]), 1032, ["entries"])]),
|
|
193
193
|
_: 2
|
|
@@ -195,26 +195,26 @@ var Ct = /* @__PURE__ */ w({
|
|
|
195
195
|
_: 2
|
|
196
196
|
}, 1024)]))]),
|
|
197
197
|
_: 2
|
|
198
|
-
}, 1024)) : !("type" in e) && (e.href || e.to) ? (
|
|
198
|
+
}, 1024)) : !("type" in e) && (e.href || e.to) ? (F(), _(W(Z).Item, {
|
|
199
199
|
key: 5,
|
|
200
200
|
value: e.value,
|
|
201
201
|
disabled: e.disabled,
|
|
202
202
|
"close-on-select": e.closeOnSelect,
|
|
203
203
|
"as-child": ""
|
|
204
204
|
}, {
|
|
205
|
-
default:
|
|
206
|
-
default:
|
|
207
|
-
e.icon ? (
|
|
205
|
+
default: q(() => [(F(), _(V(W(s)?.linkAs() ?? "a"), O({ ref_for: !0 }, W(je)(e.href, e.to), { class: W(r)({ danger: e.danger }).item() }), {
|
|
206
|
+
default: q(() => [B(t.$slots, "item", { item: e }, () => [
|
|
207
|
+
e.icon ? (F(), _(V(e.icon), {
|
|
208
208
|
key: 0,
|
|
209
|
-
class: A(
|
|
209
|
+
class: A(W(a).icon()),
|
|
210
210
|
"aria-hidden": "true"
|
|
211
211
|
}, null, 8, ["class"])) : v("", !0),
|
|
212
|
-
b("span", { class: A(
|
|
213
|
-
e.shortcut ? (
|
|
212
|
+
b("span", { class: A(W(a).label()) }, U(e.label), 3),
|
|
213
|
+
e.shortcut ? (F(), y("span", {
|
|
214
214
|
key: 1,
|
|
215
|
-
class: A(
|
|
215
|
+
class: A(W(a).shortcut()),
|
|
216
216
|
"aria-hidden": "true"
|
|
217
|
-
},
|
|
217
|
+
}, U(e.shortcut), 3)) : v("", !0)
|
|
218
218
|
])]),
|
|
219
219
|
_: 2
|
|
220
220
|
}, 1040, ["class"]))]),
|
|
@@ -223,25 +223,25 @@ var Ct = /* @__PURE__ */ w({
|
|
|
223
223
|
"value",
|
|
224
224
|
"disabled",
|
|
225
225
|
"close-on-select"
|
|
226
|
-
])) : "type" in e ? v("", !0) : (
|
|
226
|
+
])) : "type" in e ? v("", !0) : (F(), _(W(Z).Item, {
|
|
227
227
|
key: 6,
|
|
228
228
|
value: e.value,
|
|
229
229
|
disabled: e.disabled,
|
|
230
230
|
"close-on-select": e.closeOnSelect,
|
|
231
|
-
class: A(
|
|
231
|
+
class: A(W(r)({ danger: e.danger }).item())
|
|
232
232
|
}, {
|
|
233
|
-
default:
|
|
234
|
-
e.icon ? (
|
|
233
|
+
default: q(() => [B(t.$slots, "item", { item: e }, () => [
|
|
234
|
+
e.icon ? (F(), _(V(e.icon), {
|
|
235
235
|
key: 0,
|
|
236
|
-
class: A(
|
|
236
|
+
class: A(W(a).icon()),
|
|
237
237
|
"aria-hidden": "true"
|
|
238
238
|
}, null, 8, ["class"])) : v("", !0),
|
|
239
|
-
b("span", { class: A(
|
|
240
|
-
e.shortcut ? (
|
|
239
|
+
b("span", { class: A(W(a).label()) }, U(e.label), 3),
|
|
240
|
+
e.shortcut ? (F(), y("span", {
|
|
241
241
|
key: 1,
|
|
242
|
-
class: A(
|
|
242
|
+
class: A(W(a).shortcut()),
|
|
243
243
|
"aria-hidden": "true"
|
|
244
|
-
},
|
|
244
|
+
}, U(e.shortcut), 3)) : v("", !0)
|
|
245
245
|
])]),
|
|
246
246
|
_: 2
|
|
247
247
|
}, 1032, [
|
|
@@ -255,9 +255,9 @@ var Ct = /* @__PURE__ */ w({
|
|
|
255
255
|
});
|
|
256
256
|
//#endregion
|
|
257
257
|
//#region src/overlay.ts
|
|
258
|
-
function
|
|
259
|
-
let t =
|
|
260
|
-
|
|
258
|
+
function Tt(e) {
|
|
259
|
+
let t = R(e.defaultOpen?.() ?? !1), n = H(null), r = null, i = g(() => e.open() ?? t.value), a = g(() => n.value ?? e.anchor() ?? null);
|
|
260
|
+
K(i, (t) => {
|
|
261
261
|
if (typeof document < "u") {
|
|
262
262
|
if (t) r = document.activeElement;
|
|
263
263
|
else if (e.restoreFocus) {
|
|
@@ -298,7 +298,7 @@ function wt(e) {
|
|
|
298
298
|
getAnchorElement: () => t
|
|
299
299
|
} : {
|
|
300
300
|
...e,
|
|
301
|
-
getAnchorRect: () =>
|
|
301
|
+
getAnchorRect: () => be(t)
|
|
302
302
|
} : e;
|
|
303
303
|
},
|
|
304
304
|
finalFocusEl: () => a.value ? r : null
|
|
@@ -306,13 +306,13 @@ function wt(e) {
|
|
|
306
306
|
}
|
|
307
307
|
//#endregion
|
|
308
308
|
//#region src/components/Menu/Menu.vue?vue&type=script&setup=true&lang.ts
|
|
309
|
-
var
|
|
309
|
+
var Et = ["aria-label"], Dt = [
|
|
310
310
|
"placeholder",
|
|
311
311
|
"aria-label",
|
|
312
312
|
"aria-activedescendant",
|
|
313
313
|
"onKeydown",
|
|
314
314
|
"onInput"
|
|
315
|
-
],
|
|
315
|
+
], Ot = { role: "status" }, kt = /* @__PURE__ */ w({
|
|
316
316
|
__name: "Menu",
|
|
317
317
|
props: {
|
|
318
318
|
items: {},
|
|
@@ -344,13 +344,13 @@ var Tt = ["aria-label"], Et = [
|
|
|
344
344
|
],
|
|
345
345
|
setup(t, { expose: r, emit: i }) {
|
|
346
346
|
let a = t, o = n("menu", Ne, () => a.classes), s = i, c = o(), l = e();
|
|
347
|
-
|
|
347
|
+
xt({
|
|
348
348
|
items: () => a.items,
|
|
349
349
|
linkAs: () => a.linkAs,
|
|
350
350
|
onCheckedChange: (e, t) => s("checked-change", e, t),
|
|
351
351
|
onValueChange: (e, t) => s("value-change", e, t)
|
|
352
352
|
});
|
|
353
|
-
let u =
|
|
353
|
+
let u = Tt({
|
|
354
354
|
open: () => a.open,
|
|
355
355
|
defaultOpen: () => a.defaultOpen,
|
|
356
356
|
anchor: () => a.anchor,
|
|
@@ -358,7 +358,7 @@ var Tt = ["aria-label"], Et = [
|
|
|
358
358
|
restoreFocus: !0
|
|
359
359
|
});
|
|
360
360
|
r(u.handle);
|
|
361
|
-
let d =
|
|
361
|
+
let d = ie("content"), f = Ct({
|
|
362
362
|
open: () => u.isOpen.value,
|
|
363
363
|
close: u.handle.close,
|
|
364
364
|
content: () => d.value?.$el,
|
|
@@ -366,84 +366,84 @@ var Tt = ["aria-label"], Et = [
|
|
|
366
366
|
closeOnResize: () => a.closeOnResize,
|
|
367
367
|
closeOnBlur: () => a.closeOnBlur,
|
|
368
368
|
highlightFirst: () => a.highlightFirst
|
|
369
|
-
}), p =
|
|
369
|
+
}), p = R(""), m = R(), S = it({
|
|
370
370
|
sensitivity: "base",
|
|
371
371
|
usage: "sort"
|
|
372
|
-
}), w = g(() => a.searchable && p.value ? Ee(a.items, (e) => S.value.contains(e, p.value)) : a.items), E =
|
|
372
|
+
}), w = g(() => a.searchable && p.value ? Ee(a.items, (e) => S.value.contains(e, p.value)) : a.items), E = R(null);
|
|
373
373
|
async function D(e, t) {
|
|
374
374
|
let n = e.target;
|
|
375
375
|
await k(), m.value = Oe(n, t);
|
|
376
376
|
}
|
|
377
|
-
|
|
377
|
+
K(u.isOpen, async (e) => {
|
|
378
378
|
p.value = "", m.value = void 0, e && a.searchable && (await k(), requestAnimationFrame(() => requestAnimationFrame(() => E.value?.focus())));
|
|
379
379
|
});
|
|
380
380
|
let M = g(() => u.positioning({
|
|
381
381
|
placement: a.placement,
|
|
382
382
|
gutter: a.arrow ? 10 : 8
|
|
383
383
|
}));
|
|
384
|
-
return (e, n) => (
|
|
385
|
-
open:
|
|
384
|
+
return (e, n) => (F(), _(W(Z).Root, O({
|
|
385
|
+
open: W(u).isOpen.value,
|
|
386
386
|
positioning: M.value,
|
|
387
|
-
"anchor-point":
|
|
388
|
-
},
|
|
387
|
+
"anchor-point": W(u).anchorPoint.value
|
|
388
|
+
}, W(f), {
|
|
389
389
|
"lazy-mount": "",
|
|
390
390
|
"unmount-on-exit": "",
|
|
391
|
-
"onUpdate:open": n[2] ||= (e) =>
|
|
391
|
+
"onUpdate:open": n[2] ||= (e) => W(u).onOpenChange(e),
|
|
392
392
|
onSelect: n[3] ||= (e) => s("select", e.value)
|
|
393
393
|
}), {
|
|
394
|
-
default:
|
|
394
|
+
default: q(() => [e.$slots.default ? (F(), _(W(Z).Trigger, {
|
|
395
395
|
key: 0,
|
|
396
396
|
"as-child": ""
|
|
397
397
|
}, {
|
|
398
|
-
default:
|
|
398
|
+
default: q(() => [B(e.$slots, "default")]),
|
|
399
399
|
_: 3
|
|
400
|
-
})) : v("", !0), (
|
|
401
|
-
default:
|
|
400
|
+
})) : v("", !0), (F(), _(h, { to: "body" }, [C(W(Z).Positioner, null, {
|
|
401
|
+
default: q(() => [C(W(Z).Content, {
|
|
402
402
|
ref_key: "content",
|
|
403
403
|
ref: d,
|
|
404
|
-
class: A(
|
|
404
|
+
class: A(W(c).content())
|
|
405
405
|
}, {
|
|
406
|
-
default:
|
|
407
|
-
t.arrow ? (
|
|
406
|
+
default: q(() => [
|
|
407
|
+
t.arrow ? (F(), _(W(Z).Arrow, {
|
|
408
408
|
key: 0,
|
|
409
|
-
class: A(
|
|
409
|
+
class: A(W(c).arrow())
|
|
410
410
|
}, {
|
|
411
|
-
default:
|
|
411
|
+
default: q(() => [C(W(Z).ArrowTip, { class: A(W(c).arrowTip()) }, null, 8, ["class"])]),
|
|
412
412
|
_: 1
|
|
413
413
|
}, 8, ["class"])) : v("", !0),
|
|
414
|
-
t.searchable ? (
|
|
415
|
-
default:
|
|
414
|
+
t.searchable ? (F(), _(W(Z).Context, { key: 1 }, {
|
|
415
|
+
default: q((e) => [b("div", {
|
|
416
416
|
role: "group",
|
|
417
|
-
"aria-label": t.searchLabel ??
|
|
418
|
-
class: A(
|
|
419
|
-
}, [
|
|
417
|
+
"aria-label": t.searchLabel ?? W(l).menu.search,
|
|
418
|
+
class: A(W(c).search())
|
|
419
|
+
}, [J(b("input", {
|
|
420
420
|
ref_key: "search",
|
|
421
421
|
ref: E,
|
|
422
422
|
"onUpdate:modelValue": n[0] ||= (e) => p.value = e,
|
|
423
423
|
type: "text",
|
|
424
424
|
autocomplete: "off",
|
|
425
|
-
class: A(
|
|
426
|
-
placeholder: t.searchLabel ??
|
|
427
|
-
"aria-label": t.searchLabel ??
|
|
425
|
+
class: A(W(c).searchInput()),
|
|
426
|
+
placeholder: t.searchLabel ?? W(l).menu.search,
|
|
427
|
+
"aria-label": t.searchLabel ?? W(l).menu.search,
|
|
428
428
|
"aria-activedescendant": m.value,
|
|
429
|
-
onKeydown: (t) => m.value =
|
|
429
|
+
onKeydown: (t) => m.value = W(Pe)(t, e) ?? m.value,
|
|
430
430
|
onInput: (t) => D(t, e)
|
|
431
|
-
}, null, 42,
|
|
431
|
+
}, null, 42, Dt), [[G, p.value]])], 10, Et)]),
|
|
432
432
|
_: 1
|
|
433
433
|
})) : v("", !0),
|
|
434
|
-
C(
|
|
434
|
+
C(wt, {
|
|
435
435
|
entries: w.value,
|
|
436
436
|
onSelect: n[1] ||= (e) => s("select", e)
|
|
437
437
|
}, x({ _: 2 }, [e.$slots.item ? {
|
|
438
438
|
name: "item",
|
|
439
|
-
fn:
|
|
439
|
+
fn: q((t) => [B(e.$slots, "item", j(T(t)))]),
|
|
440
440
|
key: "0"
|
|
441
441
|
} : void 0]), 1032, ["entries"]),
|
|
442
|
-
t.searchable && !w.value.length ? (
|
|
442
|
+
t.searchable && !w.value.length ? (F(), y("div", {
|
|
443
443
|
key: 2,
|
|
444
444
|
role: "group",
|
|
445
|
-
class: A(
|
|
446
|
-
}, [b("span",
|
|
445
|
+
class: A(W(c).empty())
|
|
446
|
+
}, [b("span", Ot, U(W(l).common.noResults), 1)], 2)) : v("", !0)
|
|
447
447
|
]),
|
|
448
448
|
_: 3
|
|
449
449
|
}, 8, ["class"])]),
|
|
@@ -456,7 +456,7 @@ var Tt = ["aria-label"], Et = [
|
|
|
456
456
|
"anchor-point"
|
|
457
457
|
]));
|
|
458
458
|
}
|
|
459
|
-
}),
|
|
459
|
+
}), At = ["id"], jt = /* @__PURE__ */ w({
|
|
460
460
|
inheritAttrs: !1,
|
|
461
461
|
__name: "Textarea",
|
|
462
462
|
props: /*@__PURE__*/ D({
|
|
@@ -480,17 +480,17 @@ var Tt = ["aria-label"], Et = [
|
|
|
480
480
|
}),
|
|
481
481
|
emits: ["update:modelValue"],
|
|
482
482
|
setup(t, { expose: r }) {
|
|
483
|
-
let s = t, c = n("textarea", qe, () => s.classes), l = n("textareaParts", Je, () => s.classes), u = e(), d =
|
|
483
|
+
let s = t, c = n("textarea", qe, () => s.classes), l = n("textareaParts", Je, () => s.classes), u = e(), d = re(t, "modelValue"), f = te(), p = ot(), h = i(), x = g(() => s.invalid || !!p?.value.invalid), S = g(() => !x.value && (s.success || h.value.success)), w = g(() => s.disabled || !!p?.value.disabled), T = g(() => f.readonly !== void 0 && f.readonly !== !1), E = g(() => {
|
|
484
484
|
let e = Number(f.maxlength ?? f.maxLength);
|
|
485
485
|
return Number.isFinite(e) && e > 0 ? e : void 0;
|
|
486
|
-
}), D = g(() => s.showCount && E.value !== void 0), j = g(() => s.loading || s.clearable || S.value),
|
|
487
|
-
get: () => d.value ??
|
|
486
|
+
}), D = g(() => s.showCount && E.value !== void 0), j = g(() => s.loading || s.clearable || S.value), I = g(() => D.value || s.loading || s.clearable), L = g(() => l()), z = R(s.defaultValue ?? ""), B = g(() => (d.value ?? z.value).length), ee = g({
|
|
487
|
+
get: () => d.value ?? z.value,
|
|
488
488
|
set: (e) => {
|
|
489
|
-
|
|
489
|
+
z.value = e, d.value = e;
|
|
490
490
|
}
|
|
491
|
-
}),
|
|
492
|
-
function
|
|
493
|
-
let e =
|
|
491
|
+
}), V = ie("element");
|
|
492
|
+
function H() {
|
|
493
|
+
let e = V.value?.$el;
|
|
494
494
|
if (!s.autoResize || !e) return;
|
|
495
495
|
e.style.height = "auto";
|
|
496
496
|
let t = e.offsetHeight - e.clientHeight, n = e.scrollHeight + t;
|
|
@@ -500,39 +500,39 @@ var Tt = ["aria-label"], Et = [
|
|
|
500
500
|
}
|
|
501
501
|
e.style.height = `${n}px`;
|
|
502
502
|
}
|
|
503
|
-
|
|
504
|
-
let
|
|
505
|
-
function
|
|
506
|
-
|
|
507
|
-
|
|
503
|
+
P(H), K(d, () => k(H));
|
|
504
|
+
let G = ne(), q = R(""), J;
|
|
505
|
+
function Y(e) {
|
|
506
|
+
z.value = e.target.value, H(), D.value && (clearTimeout(J), J = setTimeout(() => {
|
|
507
|
+
q.value = u.textarea.remaining(E.value - B.value, E.value);
|
|
508
508
|
}, 1e3));
|
|
509
509
|
}
|
|
510
|
-
|
|
511
|
-
let
|
|
510
|
+
N(() => clearTimeout(J));
|
|
511
|
+
let ae = g(() => [
|
|
512
512
|
p?.value.ariaDescribedby,
|
|
513
|
-
D.value &&
|
|
513
|
+
D.value && G,
|
|
514
514
|
f["aria-describedby"]
|
|
515
515
|
].filter(Boolean).join(" ") || void 0);
|
|
516
|
-
function
|
|
517
|
-
let e =
|
|
516
|
+
function oe() {
|
|
517
|
+
let e = V.value?.$el;
|
|
518
518
|
e && (Ge(e), e.focus());
|
|
519
519
|
}
|
|
520
|
-
return r(a(() =>
|
|
520
|
+
return r(a(() => V.value?.$el)), (e, n) => I.value ? (F(), y("div", {
|
|
521
521
|
key: 1,
|
|
522
|
-
class: A(
|
|
523
|
-
style: M(
|
|
522
|
+
class: A(L.value.base({ class: A(W(f).class) })),
|
|
523
|
+
style: M(W(f).style)
|
|
524
524
|
}, [
|
|
525
|
-
C(
|
|
525
|
+
C(W(at).Textarea, O({
|
|
526
526
|
ref_key: "element",
|
|
527
|
-
ref:
|
|
528
|
-
modelValue:
|
|
529
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
527
|
+
ref: V,
|
|
528
|
+
modelValue: ee.value,
|
|
529
|
+
"onUpdate:modelValue": n[1] ||= (e) => ee.value = e
|
|
530
530
|
}, {
|
|
531
|
-
...
|
|
531
|
+
...W(f),
|
|
532
532
|
class: void 0,
|
|
533
533
|
style: void 0
|
|
534
534
|
}, {
|
|
535
|
-
class:
|
|
535
|
+
class: W(c)({
|
|
536
536
|
size: t.size,
|
|
537
537
|
invalid: x.value,
|
|
538
538
|
success: S.value,
|
|
@@ -541,12 +541,12 @@ var Tt = ["aria-label"], Et = [
|
|
|
541
541
|
hasTrailing: j.value,
|
|
542
542
|
mono: t.mono
|
|
543
543
|
}),
|
|
544
|
-
rows:
|
|
544
|
+
rows: W(f).rows ?? t.minRows,
|
|
545
545
|
disabled: w.value || void 0,
|
|
546
546
|
"aria-invalid": x.value || void 0,
|
|
547
|
-
"aria-describedby":
|
|
547
|
+
"aria-describedby": ae.value,
|
|
548
548
|
"aria-busy": t.loading || void 0,
|
|
549
|
-
onInput:
|
|
549
|
+
onInput: Y
|
|
550
550
|
}), null, 16, [
|
|
551
551
|
"modelValue",
|
|
552
552
|
"class",
|
|
@@ -556,21 +556,21 @@ var Tt = ["aria-label"], Et = [
|
|
|
556
556
|
"aria-describedby",
|
|
557
557
|
"aria-busy"
|
|
558
558
|
]),
|
|
559
|
-
j.value ? (
|
|
559
|
+
j.value ? (F(), y("div", {
|
|
560
560
|
key: 0,
|
|
561
|
-
class: A(
|
|
561
|
+
class: A(L.value.trailing())
|
|
562
562
|
}, [C(o, {
|
|
563
563
|
loading: t.loading,
|
|
564
|
-
clear: t.clearable &&
|
|
565
|
-
"clear-label": t.clearLabel ??
|
|
564
|
+
clear: t.clearable && B.value > 0 && !w.value && !T.value,
|
|
565
|
+
"clear-label": t.clearLabel ?? W(u).field.clear,
|
|
566
566
|
success: S.value,
|
|
567
567
|
classes: {
|
|
568
|
-
spinner:
|
|
569
|
-
clear:
|
|
570
|
-
clearIcon:
|
|
571
|
-
statusIcon:
|
|
568
|
+
spinner: L.value.spinner(),
|
|
569
|
+
clear: L.value.clear(),
|
|
570
|
+
clearIcon: L.value.clearIcon(),
|
|
571
|
+
statusIcon: L.value.statusIcon()
|
|
572
572
|
},
|
|
573
|
-
onClear:
|
|
573
|
+
onClear: oe
|
|
574
574
|
}, null, 8, [
|
|
575
575
|
"loading",
|
|
576
576
|
"clear",
|
|
@@ -578,36 +578,36 @@ var Tt = ["aria-label"], Et = [
|
|
|
578
578
|
"success",
|
|
579
579
|
"classes"
|
|
580
580
|
])], 2)) : v("", !0),
|
|
581
|
-
D.value ? (
|
|
582
|
-
id:
|
|
583
|
-
class: A(
|
|
581
|
+
D.value ? (F(), y(m, { key: 1 }, [b("span", {
|
|
582
|
+
id: W(G),
|
|
583
|
+
class: A(L.value.counter()),
|
|
584
584
|
"aria-hidden": "true"
|
|
585
|
-
},
|
|
586
|
-
class: A(
|
|
585
|
+
}, U(W(u).textarea.counter(B.value, E.value)), 11, At), b("span", {
|
|
586
|
+
class: A(L.value.status()),
|
|
587
587
|
role: "status"
|
|
588
|
-
},
|
|
589
|
-
], 6)) : (
|
|
588
|
+
}, U(q.value), 3)], 64)) : v("", !0)
|
|
589
|
+
], 6)) : (F(), _(W(at).Textarea, O({
|
|
590
590
|
key: 0,
|
|
591
591
|
ref_key: "element",
|
|
592
|
-
ref:
|
|
593
|
-
modelValue:
|
|
594
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
592
|
+
ref: V,
|
|
593
|
+
modelValue: ee.value,
|
|
594
|
+
"onUpdate:modelValue": n[0] ||= (e) => ee.value = e
|
|
595
595
|
}, {
|
|
596
|
-
...
|
|
597
|
-
class:
|
|
596
|
+
...W(f),
|
|
597
|
+
class: W(c)({
|
|
598
598
|
size: t.size,
|
|
599
599
|
invalid: x.value,
|
|
600
600
|
success: S.value,
|
|
601
601
|
disabled: w.value,
|
|
602
602
|
autoResize: t.autoResize,
|
|
603
603
|
mono: t.mono,
|
|
604
|
-
class: A(
|
|
604
|
+
class: A(W(f).class)
|
|
605
605
|
})
|
|
606
606
|
}, {
|
|
607
|
-
rows:
|
|
607
|
+
rows: W(f).rows ?? t.minRows,
|
|
608
608
|
disabled: w.value || void 0,
|
|
609
609
|
"aria-invalid": x.value || void 0,
|
|
610
|
-
onInput:
|
|
610
|
+
onInput: Y
|
|
611
611
|
}), null, 16, [
|
|
612
612
|
"modelValue",
|
|
613
613
|
"rows",
|
|
@@ -615,7 +615,7 @@ var Tt = ["aria-label"], Et = [
|
|
|
615
615
|
"aria-invalid"
|
|
616
616
|
]));
|
|
617
617
|
}
|
|
618
|
-
}),
|
|
618
|
+
}), Mt = { "aria-hidden": "true" }, Nt = { "aria-hidden": "true" }, Pt = /* @__PURE__ */ w({
|
|
619
619
|
inheritAttrs: !1,
|
|
620
620
|
__name: "Pagination",
|
|
621
621
|
props: {
|
|
@@ -641,11 +641,11 @@ var Tt = ["aria-label"], Et = [
|
|
|
641
641
|
},
|
|
642
642
|
emits: ["update:page", "update:pageSize"],
|
|
643
643
|
setup(t, { emit: r }) {
|
|
644
|
-
let i = t, a = n("pagination", ze, () => i.classes), o = r, c =
|
|
644
|
+
let i = t, a = n("pagination", ze, () => i.classes), o = r, c = te(), l = g(() => a({ responsive: i.variant === "auto" })), d = e(), f = g(() => ({
|
|
645
645
|
...d.pagination,
|
|
646
646
|
...i.translations
|
|
647
|
-
})), p =
|
|
648
|
-
|
|
647
|
+
})), p = R(i.pageSize);
|
|
648
|
+
K(() => i.pageSize, (e) => p.value = e);
|
|
649
649
|
let h = (e) => ({
|
|
650
650
|
start: Math.min((e - 1) * p.value + 1, i.count),
|
|
651
651
|
end: Math.min(e * p.value, i.count),
|
|
@@ -656,7 +656,7 @@ var Tt = ["aria-label"], Et = [
|
|
|
656
656
|
} : {}, E = g(() => (i.pageSizes ?? []).map((e) => ({
|
|
657
657
|
value: e,
|
|
658
658
|
label: String(e)
|
|
659
|
-
}))), D =
|
|
659
|
+
}))), D = ct(g(() => ({
|
|
660
660
|
count: i.count,
|
|
661
661
|
pageSize: p.value,
|
|
662
662
|
page: i.page,
|
|
@@ -677,26 +677,26 @@ var Tt = ["aria-label"], Et = [
|
|
|
677
677
|
let n = e.target, r = Number.parseInt(n.value, 10);
|
|
678
678
|
Number.isNaN(r) || (e.preventDefault(), t.setPage(Math.min(Math.max(r, 1), t.totalPages)), n.value = "");
|
|
679
679
|
}
|
|
680
|
-
return (e, n) => x.value ? v("", !0) : (
|
|
681
|
-
...
|
|
682
|
-
class: l.value.base({ class: A(
|
|
683
|
-
}, { value:
|
|
684
|
-
default:
|
|
685
|
-
default:
|
|
686
|
-
t.showSummary ? (
|
|
680
|
+
return (e, n) => x.value ? v("", !0) : (F(), _(W(st).RootProvider, O({ key: 0 }, {
|
|
681
|
+
...W(c),
|
|
682
|
+
class: l.value.base({ class: A(W(c).class) })
|
|
683
|
+
}, { value: W(D) }), {
|
|
684
|
+
default: q(() => [C(W(st).Context, null, {
|
|
685
|
+
default: q((e) => [
|
|
686
|
+
t.showSummary ? (F(), y("span", {
|
|
687
687
|
key: 0,
|
|
688
688
|
class: A(l.value.summary()),
|
|
689
689
|
"aria-live": "polite"
|
|
690
|
-
},
|
|
691
|
-
t.pageSizes?.length ? (
|
|
690
|
+
}, U((t.summary ?? W(d).pagination.summary)(h(e.page))), 3)) : v("", !0),
|
|
691
|
+
t.pageSizes?.length ? (F(), y("div", {
|
|
692
692
|
key: 1,
|
|
693
693
|
class: A(l.value.pageSize())
|
|
694
|
-
}, [b("span",
|
|
694
|
+
}, [b("span", Mt, U(W(d).pagination.pageSize), 1), C(u, {
|
|
695
695
|
class: A(l.value.pageSizeSelect()),
|
|
696
696
|
size: "sm",
|
|
697
697
|
items: E.value,
|
|
698
698
|
"model-value": p.value,
|
|
699
|
-
"aria-label":
|
|
699
|
+
"aria-label": W(d).pagination.pageSize,
|
|
700
700
|
"onUpdate:modelValue": (t) => j(e, t)
|
|
701
701
|
}, null, 8, [
|
|
702
702
|
"class",
|
|
@@ -706,12 +706,12 @@ var Tt = ["aria-label"], Et = [
|
|
|
706
706
|
"onUpdate:modelValue"
|
|
707
707
|
])], 2)) : v("", !0),
|
|
708
708
|
b("div", { class: A(l.value.list()) }, [
|
|
709
|
-
t.withEdges ? (
|
|
709
|
+
t.withEdges ? (F(), _(W(st).FirstTrigger, {
|
|
710
710
|
key: 0,
|
|
711
711
|
"as-child": ""
|
|
712
712
|
}, {
|
|
713
|
-
default:
|
|
714
|
-
default:
|
|
713
|
+
default: q(() => [(F(), _(V(w.value), O({ class: l.value.trigger() }, T(e.page === 1)), {
|
|
714
|
+
default: q(() => [C(W(de), {
|
|
715
715
|
class: A(l.value.triggerIcon()),
|
|
716
716
|
"aria-hidden": "true"
|
|
717
717
|
}, null, 8, ["class"])]),
|
|
@@ -719,9 +719,9 @@ var Tt = ["aria-label"], Et = [
|
|
|
719
719
|
}, 16, ["class"]))]),
|
|
720
720
|
_: 2
|
|
721
721
|
}, 1024)) : v("", !0),
|
|
722
|
-
C(
|
|
723
|
-
default:
|
|
724
|
-
default:
|
|
722
|
+
C(W(st).PrevTrigger, { "as-child": "" }, {
|
|
723
|
+
default: q(() => [(F(), _(V(w.value), O({ class: l.value.trigger() }, T(e.page === 1)), {
|
|
724
|
+
default: q(() => [C(W(ce), {
|
|
725
725
|
class: A(l.value.triggerIcon()),
|
|
726
726
|
"aria-hidden": "true"
|
|
727
727
|
}, null, 8, ["class"])]),
|
|
@@ -729,31 +729,31 @@ var Tt = ["aria-label"], Et = [
|
|
|
729
729
|
}, 16, ["class"]))]),
|
|
730
730
|
_: 2
|
|
731
731
|
}, 1024),
|
|
732
|
-
t.variant === "full" ? v("", !0) : (
|
|
732
|
+
t.variant === "full" ? v("", !0) : (F(), y("span", {
|
|
733
733
|
key: 1,
|
|
734
734
|
class: A(l.value.compact())
|
|
735
|
-
},
|
|
736
|
-
t.variant === "compact" ? v("", !0) : (
|
|
735
|
+
}, U(W(d).pagination.compact(e.page, e.totalPages)), 3)),
|
|
736
|
+
t.variant === "compact" ? v("", !0) : (F(!0), y(m, { key: 2 }, z(e.pages, (e, t) => (F(), y(m, { key: t }, [e.type === "page" ? (F(), _(W(st).Item, O({
|
|
737
737
|
key: 0,
|
|
738
738
|
ref_for: !0
|
|
739
739
|
}, e, { "as-child": "" }), {
|
|
740
|
-
default:
|
|
741
|
-
default:
|
|
740
|
+
default: q(() => [(F(), _(V(w.value), { class: A(l.value.item()) }, {
|
|
741
|
+
default: q(() => [S(U(e.value), 1)]),
|
|
742
742
|
_: 2
|
|
743
743
|
}, 1032, ["class"]))]),
|
|
744
744
|
_: 2
|
|
745
|
-
}, 1040)) : (
|
|
745
|
+
}, 1040)) : (F(), _(W(st).Ellipsis, {
|
|
746
746
|
key: 1,
|
|
747
747
|
index: t,
|
|
748
748
|
class: A(l.value.ellipsis()),
|
|
749
749
|
"aria-hidden": "true"
|
|
750
750
|
}, {
|
|
751
|
-
default:
|
|
751
|
+
default: q(() => [...n[0] ||= [S(" … ", -1)]]),
|
|
752
752
|
_: 1
|
|
753
753
|
}, 8, ["index", "class"]))], 64))), 128)),
|
|
754
|
-
C(
|
|
755
|
-
default:
|
|
756
|
-
default:
|
|
754
|
+
C(W(st).NextTrigger, { "as-child": "" }, {
|
|
755
|
+
default: q(() => [(F(), _(V(w.value), O({ class: l.value.trigger() }, T(e.page === e.totalPages)), {
|
|
756
|
+
default: q(() => [C(W(le), {
|
|
757
757
|
class: A(l.value.triggerIcon()),
|
|
758
758
|
"aria-hidden": "true"
|
|
759
759
|
}, null, 8, ["class"])]),
|
|
@@ -761,12 +761,12 @@ var Tt = ["aria-label"], Et = [
|
|
|
761
761
|
}, 16, ["class"]))]),
|
|
762
762
|
_: 2
|
|
763
763
|
}, 1024),
|
|
764
|
-
t.withEdges ? (
|
|
764
|
+
t.withEdges ? (F(), _(W(st).LastTrigger, {
|
|
765
765
|
key: 3,
|
|
766
766
|
"as-child": ""
|
|
767
767
|
}, {
|
|
768
|
-
default:
|
|
769
|
-
default:
|
|
768
|
+
default: q(() => [(F(), _(V(w.value), O({ class: l.value.trigger() }, T(e.page === e.totalPages)), {
|
|
769
|
+
default: q(() => [C(W(fe), {
|
|
770
770
|
class: A(l.value.triggerIcon()),
|
|
771
771
|
"aria-hidden": "true"
|
|
772
772
|
}, null, 8, ["class"])]),
|
|
@@ -775,16 +775,16 @@ var Tt = ["aria-label"], Et = [
|
|
|
775
775
|
_: 2
|
|
776
776
|
}, 1024)) : v("", !0)
|
|
777
777
|
], 2),
|
|
778
|
-
t.jumper ? (
|
|
778
|
+
t.jumper ? (F(), y("div", {
|
|
779
779
|
key: 2,
|
|
780
780
|
class: A(l.value.jumper())
|
|
781
|
-
}, [b("span",
|
|
781
|
+
}, [b("span", Nt, U(W(d).pagination.jumper), 1), C(s, {
|
|
782
782
|
class: A(l.value.jumperInput()),
|
|
783
783
|
size: "sm",
|
|
784
784
|
inputmode: "numeric",
|
|
785
785
|
autocomplete: "off",
|
|
786
|
-
"aria-label":
|
|
787
|
-
onKeydown:
|
|
786
|
+
"aria-label": W(d).pagination.jumper,
|
|
787
|
+
onKeydown: Y((t) => M(t, e), ["enter"])
|
|
788
788
|
}, null, 8, [
|
|
789
789
|
"class",
|
|
790
790
|
"aria-label",
|
|
@@ -796,7 +796,7 @@ var Tt = ["aria-label"], Et = [
|
|
|
796
796
|
_: 1
|
|
797
797
|
}, 16, ["value"]));
|
|
798
798
|
}
|
|
799
|
-
}),
|
|
799
|
+
}), Ft = /* @__PURE__ */ w({
|
|
800
800
|
inheritAttrs: !1,
|
|
801
801
|
__name: "Skeleton",
|
|
802
802
|
props: {
|
|
@@ -806,20 +806,20 @@ var Tt = ["aria-label"], Et = [
|
|
|
806
806
|
classes: {}
|
|
807
807
|
},
|
|
808
808
|
setup(e) {
|
|
809
|
-
let t = e, r = n("skeleton", Ke, () => t.classes), i =
|
|
809
|
+
let t = e, r = n("skeleton", Ke, () => t.classes), i = te(), a = (e) => typeof e == "number" ? `${e}px` : e, o = g(() => [{
|
|
810
810
|
width: a(t.width),
|
|
811
811
|
height: a(t.height)
|
|
812
812
|
}, M(i.style)]);
|
|
813
|
-
return (t, n) => (
|
|
814
|
-
...
|
|
815
|
-
class:
|
|
813
|
+
return (t, n) => (F(), y("span", O({ "aria-hidden": "true" }, {
|
|
814
|
+
...W(i),
|
|
815
|
+
class: W(r)({
|
|
816
816
|
shape: e.shape,
|
|
817
|
-
class: A(
|
|
817
|
+
class: A(W(i).class)
|
|
818
818
|
}),
|
|
819
819
|
style: o.value
|
|
820
820
|
}), null, 16));
|
|
821
821
|
}
|
|
822
|
-
}),
|
|
822
|
+
}), It = ["title"], Lt = ["title"], Rt = ["aria-label"], zt = /* @__PURE__ */ w({
|
|
823
823
|
__name: "DatePickerDayTable",
|
|
824
824
|
props: {
|
|
825
825
|
weeks: {},
|
|
@@ -831,10 +831,10 @@ var Tt = ["aria-label"], Et = [
|
|
|
831
831
|
allowDeselect: { type: Boolean }
|
|
832
832
|
},
|
|
833
833
|
setup(t) {
|
|
834
|
-
let r = e(), i = t, a = n("datePicker",
|
|
834
|
+
let r = e(), i = t, a = n("datePicker", X), o = g(() => a({
|
|
835
835
|
plainToday: i.plainToday,
|
|
836
836
|
hideOutsideDays: i.hideOutsideDays
|
|
837
|
-
})), s =
|
|
837
|
+
})), s = dt(), c = (e) => e.toString().slice(0, 10), l = (e) => !!i.visibleRange && (e.month !== i.visibleRange.start.month || e.year !== i.visibleRange.start.year), u = (e) => We(e.map(c));
|
|
838
838
|
function d(e) {
|
|
839
839
|
let t = s.value.getDayTableCellState({
|
|
840
840
|
value: e,
|
|
@@ -860,44 +860,44 @@ var Tt = ["aria-label"], Et = [
|
|
|
860
860
|
let t = {};
|
|
861
861
|
return i.weekendDays?.includes(Ae(c(e))) && (t["data-weekend"] = ""), i.allowDeselect && (t.onClickCapture = (t) => p(t, e), t.onKeydownCapture = (t) => p(t, e)), t;
|
|
862
862
|
}
|
|
863
|
-
return (e, n) => (
|
|
864
|
-
default:
|
|
865
|
-
default:
|
|
866
|
-
default:
|
|
863
|
+
return (e, n) => (F(), _(W($).Table, { class: A(o.value.table()) }, {
|
|
864
|
+
default: q(() => [C(W($).TableHead, null, {
|
|
865
|
+
default: q(() => [C(W($).TableRow, null, {
|
|
866
|
+
default: q(() => [t.showWeekNumbers ? (F(), y("th", {
|
|
867
867
|
key: 0,
|
|
868
868
|
scope: "col",
|
|
869
869
|
class: A(o.value.weekNumberHeader())
|
|
870
|
-
}, [b("abbr", { title:
|
|
870
|
+
}, [b("abbr", { title: W(r).datePicker.weekColumnHeader }, U(W(r).datePicker.weekColumnShort), 9, It)], 2)) : v("", !0), (F(!0), y(m, null, z(W(s).weekDays, (e) => (F(), _(W($).TableHeader, {
|
|
871
871
|
key: e.long,
|
|
872
872
|
class: A(o.value.columnHeader())
|
|
873
873
|
}, {
|
|
874
|
-
default:
|
|
874
|
+
default: q(() => [b("abbr", { title: e.long }, U(e.short), 9, Lt)]),
|
|
875
875
|
_: 2
|
|
876
876
|
}, 1032, ["class"]))), 128))]),
|
|
877
877
|
_: 1
|
|
878
878
|
})]),
|
|
879
879
|
_: 1
|
|
880
|
-
}), C(
|
|
881
|
-
default:
|
|
882
|
-
default:
|
|
880
|
+
}), C(W($).TableBody, null, {
|
|
881
|
+
default: q(() => [(F(!0), y(m, null, z(t.weeks, (n) => (F(), _(W($).TableRow, { key: n[0]?.toString() }, {
|
|
882
|
+
default: q(() => [t.showWeekNumbers ? (F(), y("th", {
|
|
883
883
|
key: 0,
|
|
884
884
|
scope: "row",
|
|
885
885
|
class: A(o.value.weekNumber()),
|
|
886
|
-
"aria-label":
|
|
887
|
-
},
|
|
886
|
+
"aria-label": W(r).datePicker.weekNumberCell(u(n))
|
|
887
|
+
}, U(u(n)), 11, Rt)) : v("", !0), (F(!0), y(m, null, z(n, (n) => (F(), y(m, { key: n.toString() }, [l(n) ? (F(), y("td", {
|
|
888
888
|
key: 0,
|
|
889
889
|
class: A(o.value.cell())
|
|
890
|
-
}, null, 2)) : (
|
|
890
|
+
}, null, 2)) : (F(), _(W($).TableCell, O({
|
|
891
891
|
key: 1,
|
|
892
892
|
value: n,
|
|
893
893
|
"visible-range": t.visibleRange,
|
|
894
894
|
class: o.value.cell()
|
|
895
895
|
}, { ref_for: !0 }, h(n)), {
|
|
896
|
-
default:
|
|
897
|
-
default:
|
|
896
|
+
default: q(() => [C(W($).TableCellTrigger, { class: A(o.value.day()) }, {
|
|
897
|
+
default: q(() => [e.$slots.day ? (F(), y("span", {
|
|
898
898
|
key: 0,
|
|
899
899
|
class: A(o.value.dayContent())
|
|
900
|
-
}, [
|
|
900
|
+
}, [B(e.$slots, "day", O({ date: c(n) }, { ref_for: !0 }, d(n)))], 2)) : (F(), y(m, { key: 1 }, [S(U(n.day), 1)], 64))]),
|
|
901
901
|
_: 2
|
|
902
902
|
}, 1032, ["class"])]),
|
|
903
903
|
_: 2
|
|
@@ -913,36 +913,36 @@ var Tt = ["aria-label"], Et = [
|
|
|
913
913
|
_: 3
|
|
914
914
|
}, 8, ["class"]));
|
|
915
915
|
}
|
|
916
|
-
}),
|
|
916
|
+
}), Bt = /* @__PURE__ */ w({
|
|
917
917
|
__name: "DatePickerHeader",
|
|
918
918
|
setup(t) {
|
|
919
|
-
let r = n("datePicker",
|
|
919
|
+
let r = n("datePicker", X), i = e(), a = r(), o = {
|
|
920
920
|
day: "month",
|
|
921
921
|
month: "year",
|
|
922
922
|
year: void 0
|
|
923
923
|
}, s = (e, t) => `${e}, ${i.datePicker.viewTrigger(t, o[t])}`;
|
|
924
|
-
return (e, t) => (
|
|
925
|
-
default:
|
|
926
|
-
C(
|
|
927
|
-
default:
|
|
928
|
-
class: A(
|
|
924
|
+
return (e, t) => (F(), _(W($).ViewControl, { class: A(W(a).header()) }, {
|
|
925
|
+
default: q(() => [
|
|
926
|
+
C(W($).PrevTrigger, { class: A(W(a).nav()) }, {
|
|
927
|
+
default: q(() => [C(W(ce), {
|
|
928
|
+
class: A(W(a).navIcon()),
|
|
929
929
|
"aria-hidden": "true"
|
|
930
930
|
}, null, 8, ["class"])]),
|
|
931
931
|
_: 1
|
|
932
932
|
}, 8, ["class"]),
|
|
933
|
-
C(
|
|
934
|
-
default:
|
|
935
|
-
class: A(
|
|
933
|
+
C(W($).Context, null, {
|
|
934
|
+
default: q((e) => [C(W($).ViewTrigger, {
|
|
935
|
+
class: A(W(a).viewTrigger()),
|
|
936
936
|
"aria-label": s(e.numOfMonths > 1 && e.view === "day" ? e.visibleRangeText.formatted : e.visibleRangeText.start, e.view)
|
|
937
937
|
}, {
|
|
938
|
-
default:
|
|
938
|
+
default: q(() => [C(W($).RangeText)]),
|
|
939
939
|
_: 1
|
|
940
940
|
}, 8, ["class", "aria-label"])]),
|
|
941
941
|
_: 1
|
|
942
942
|
}),
|
|
943
|
-
C(
|
|
944
|
-
default:
|
|
945
|
-
class: A(
|
|
943
|
+
C(W($).NextTrigger, { class: A(W(a).nav()) }, {
|
|
944
|
+
default: q(() => [C(W(le), {
|
|
945
|
+
class: A(W(a).navIcon()),
|
|
946
946
|
"aria-hidden": "true"
|
|
947
947
|
}, null, 8, ["class"])]),
|
|
948
948
|
_: 1
|
|
@@ -951,7 +951,7 @@ var Tt = ["aria-label"], Et = [
|
|
|
951
951
|
_: 1
|
|
952
952
|
}, 8, ["class"]));
|
|
953
953
|
}
|
|
954
|
-
}),
|
|
954
|
+
}), Vt = ["onClick"], Ht = ["disabled", "onClick"], Ut = /* @__PURE__ */ w({
|
|
955
955
|
__name: "DatePickerViews",
|
|
956
956
|
props: {
|
|
957
957
|
presets: {},
|
|
@@ -965,7 +965,7 @@ var Tt = ["aria-label"], Et = [
|
|
|
965
965
|
timeZone: {}
|
|
966
966
|
},
|
|
967
967
|
setup(t) {
|
|
968
|
-
let r = e(), i = t, a = n("datePicker",
|
|
968
|
+
let r = e(), i = t, a = n("datePicker", X)(), o = (e) => typeof e == "string" ? r.rangePresets[e] ?? e : e.label, s = g(() => Math.max(1, Math.floor(i.numberOfMonths ?? 1))), c = g(() => ({
|
|
969
969
|
showWeekNumbers: i.showWeekNumbers,
|
|
970
970
|
plainToday: i.plainToday,
|
|
971
971
|
hideOutsideDays: i.hideOutsideDays || s.value > 1,
|
|
@@ -994,49 +994,49 @@ var Tt = ["aria-label"], Et = [
|
|
|
994
994
|
day: r
|
|
995
995
|
}));
|
|
996
996
|
}
|
|
997
|
-
return (e, n) => (
|
|
998
|
-
C(
|
|
999
|
-
default:
|
|
1000
|
-
default:
|
|
997
|
+
return (e, n) => (F(), y(m, null, [
|
|
998
|
+
C(W($).View, { view: "day" }, {
|
|
999
|
+
default: q(() => [C(W($).Context, null, {
|
|
1000
|
+
default: q((t) => [C(Bt), s.value > 1 ? (F(), y("div", {
|
|
1001
1001
|
key: 0,
|
|
1002
|
-
class: A(
|
|
1003
|
-
}, [(
|
|
1002
|
+
class: A(W(a).months())
|
|
1003
|
+
}, [(F(!0), y(m, null, z(l(t), (t) => (F(), y("div", {
|
|
1004
1004
|
key: t.title,
|
|
1005
|
-
class: A(
|
|
1006
|
-
}, [b("div", { class: A(
|
|
1005
|
+
class: A(W(a).month())
|
|
1006
|
+
}, [b("div", { class: A(W(a).monthTitle()) }, U(t.title), 3), C(zt, O({
|
|
1007
1007
|
weeks: t.weeks,
|
|
1008
1008
|
"visible-range": t.visibleRange
|
|
1009
1009
|
}, { ref_for: !0 }, c.value), x({ _: 2 }, [e.$slots.day ? {
|
|
1010
1010
|
name: "day",
|
|
1011
|
-
fn:
|
|
1011
|
+
fn: q((t) => [B(e.$slots, "day", O({ ref_for: !0 }, t))]),
|
|
1012
1012
|
key: "0"
|
|
1013
|
-
} : void 0]), 1040, ["weeks", "visible-range"])], 2))), 128))], 2)) : (
|
|
1013
|
+
} : void 0]), 1040, ["weeks", "visible-range"])], 2))), 128))], 2)) : (F(), _(zt, O({
|
|
1014
1014
|
key: 1,
|
|
1015
1015
|
weeks: t.weeks
|
|
1016
1016
|
}, c.value), x({ _: 2 }, [e.$slots.day ? {
|
|
1017
1017
|
name: "day",
|
|
1018
|
-
fn:
|
|
1018
|
+
fn: q((t) => [B(e.$slots, "day", j(T(t)))]),
|
|
1019
1019
|
key: "0"
|
|
1020
1020
|
} : void 0]), 1040, ["weeks"]))]),
|
|
1021
1021
|
_: 3
|
|
1022
1022
|
})]),
|
|
1023
1023
|
_: 3
|
|
1024
1024
|
}),
|
|
1025
|
-
C(
|
|
1026
|
-
default:
|
|
1027
|
-
default:
|
|
1028
|
-
default:
|
|
1029
|
-
default:
|
|
1025
|
+
C(W($).View, { view: "month" }, {
|
|
1026
|
+
default: q(() => [C(W($).Context, null, {
|
|
1027
|
+
default: q((e) => [C(Bt), C(W($).Table, { class: A(W(a).table()) }, {
|
|
1028
|
+
default: q(() => [C(W($).TableBody, null, {
|
|
1029
|
+
default: q(() => [(F(!0), y(m, null, z(e.getMonthsGrid({
|
|
1030
1030
|
columns: 4,
|
|
1031
1031
|
format: "short"
|
|
1032
|
-
}), (e) => (
|
|
1033
|
-
default:
|
|
1032
|
+
}), (e) => (F(), _(W($).TableRow, { key: e[0]?.value }, {
|
|
1033
|
+
default: q(() => [(F(!0), y(m, null, z(e, (e) => (F(), _(W($).TableCell, {
|
|
1034
1034
|
key: e.value,
|
|
1035
1035
|
value: e.value,
|
|
1036
|
-
class: A(
|
|
1036
|
+
class: A(W(a).cell())
|
|
1037
1037
|
}, {
|
|
1038
|
-
default:
|
|
1039
|
-
default:
|
|
1038
|
+
default: q(() => [C(W($).TableCellTrigger, { class: A(W(a).period()) }, {
|
|
1039
|
+
default: q(() => [S(U(e.label), 1)]),
|
|
1040
1040
|
_: 2
|
|
1041
1041
|
}, 1032, ["class"])]),
|
|
1042
1042
|
_: 2
|
|
@@ -1051,18 +1051,18 @@ var Tt = ["aria-label"], Et = [
|
|
|
1051
1051
|
})]),
|
|
1052
1052
|
_: 1
|
|
1053
1053
|
}),
|
|
1054
|
-
C(
|
|
1055
|
-
default:
|
|
1056
|
-
default:
|
|
1057
|
-
default:
|
|
1058
|
-
default:
|
|
1059
|
-
default:
|
|
1054
|
+
C(W($).View, { view: "year" }, {
|
|
1055
|
+
default: q(() => [C(W($).Context, null, {
|
|
1056
|
+
default: q((e) => [C(Bt), C(W($).Table, { class: A(W(a).table()) }, {
|
|
1057
|
+
default: q(() => [C(W($).TableBody, null, {
|
|
1058
|
+
default: q(() => [(F(!0), y(m, null, z(e.getYearsGrid({ columns: 4 }), (e) => (F(), _(W($).TableRow, { key: e[0]?.value }, {
|
|
1059
|
+
default: q(() => [(F(!0), y(m, null, z(e, (e) => (F(), _(W($).TableCell, {
|
|
1060
1060
|
key: e.value,
|
|
1061
1061
|
value: e.value,
|
|
1062
|
-
class: A(
|
|
1062
|
+
class: A(W(a).cell())
|
|
1063
1063
|
}, {
|
|
1064
|
-
default:
|
|
1065
|
-
default:
|
|
1064
|
+
default: q(() => [C(W($).TableCellTrigger, { class: A(W(a).period()) }, {
|
|
1065
|
+
default: q(() => [S(U(e.label), 1)]),
|
|
1066
1066
|
_: 2
|
|
1067
1067
|
}, 1032, ["class"])]),
|
|
1068
1068
|
_: 2
|
|
@@ -1077,38 +1077,38 @@ var Tt = ["aria-label"], Et = [
|
|
|
1077
1077
|
})]),
|
|
1078
1078
|
_: 1
|
|
1079
1079
|
}),
|
|
1080
|
-
t.presets?.length ? (
|
|
1080
|
+
t.presets?.length ? (F(), y("div", {
|
|
1081
1081
|
key: 0,
|
|
1082
|
-
class: A(
|
|
1083
|
-
}, [(
|
|
1082
|
+
class: A(W(a).presets())
|
|
1083
|
+
}, [(F(!0), y(m, null, z(t.presets, (e) => (F(), _(W($).PresetTrigger, {
|
|
1084
1084
|
key: o(e),
|
|
1085
1085
|
value: typeof e == "string" ? e : e.value,
|
|
1086
|
-
class: A(
|
|
1086
|
+
class: A(W(a).preset()),
|
|
1087
1087
|
"aria-label": o(e)
|
|
1088
1088
|
}, {
|
|
1089
|
-
default:
|
|
1089
|
+
default: q(() => [S(U(o(e)), 1)]),
|
|
1090
1090
|
_: 2
|
|
1091
1091
|
}, 1032, [
|
|
1092
1092
|
"value",
|
|
1093
1093
|
"class",
|
|
1094
1094
|
"aria-label"
|
|
1095
1095
|
]))), 128))], 2)) : v("", !0),
|
|
1096
|
-
t.showButtonBar ? (
|
|
1097
|
-
default:
|
|
1096
|
+
t.showButtonBar ? (F(), _(W($).Context, { key: 1 }, {
|
|
1097
|
+
default: q((e) => [b("div", { class: A(W(a).buttonBar()) }, [b("button", {
|
|
1098
1098
|
type: "button",
|
|
1099
|
-
class: A(
|
|
1099
|
+
class: A(W(a).buttonBarButton()),
|
|
1100
1100
|
onClick: (t) => u(e)
|
|
1101
|
-
},
|
|
1101
|
+
}, U(W(r).calendar.today), 11, Vt), b("button", {
|
|
1102
1102
|
type: "button",
|
|
1103
|
-
class: A(
|
|
1103
|
+
class: A(W(a).buttonBarButton()),
|
|
1104
1104
|
disabled: !e.value.length,
|
|
1105
1105
|
onClick: (t) => e.clearValue({ focus: !1 })
|
|
1106
|
-
},
|
|
1106
|
+
}, U(W(r).calendar.clear), 11, Ht)], 2)]),
|
|
1107
1107
|
_: 1
|
|
1108
1108
|
})) : v("", !0)
|
|
1109
1109
|
], 64));
|
|
1110
1110
|
}
|
|
1111
|
-
}),
|
|
1111
|
+
}), Wt = /* @__PURE__ */ w({
|
|
1112
1112
|
__name: "DatePickerCalendar",
|
|
1113
1113
|
props: {
|
|
1114
1114
|
presets: {},
|
|
@@ -1123,7 +1123,7 @@ var Tt = ["aria-label"], Et = [
|
|
|
1123
1123
|
timeZone: {}
|
|
1124
1124
|
},
|
|
1125
1125
|
setup(e) {
|
|
1126
|
-
let t = e, r = n("datePicker",
|
|
1126
|
+
let t = e, r = n("datePicker", X), i = r(), a = g(() => ({
|
|
1127
1127
|
presets: t.presets,
|
|
1128
1128
|
showWeekNumbers: t.showWeekNumbers,
|
|
1129
1129
|
numberOfMonths: t.numberOfMonths,
|
|
@@ -1133,31 +1133,31 @@ var Tt = ["aria-label"], Et = [
|
|
|
1133
1133
|
weekendDays: t.weekendDays,
|
|
1134
1134
|
allowDeselect: t.allowDeselect,
|
|
1135
1135
|
timeZone: t.timeZone
|
|
1136
|
-
})), o = g(() => (t.numberOfMonths ?? 1) > 1), s =
|
|
1137
|
-
return
|
|
1136
|
+
})), o = g(() => (t.numberOfMonths ?? 1) > 1), s = R(!1), c, l = () => s.value = !!c?.matches;
|
|
1137
|
+
return P(() => {
|
|
1138
1138
|
t.responsive && typeof window.matchMedia == "function" && (c = window.matchMedia("(max-width: 639.98px)"), l(), c.addEventListener("change", l));
|
|
1139
|
-
}),
|
|
1140
|
-
default:
|
|
1139
|
+
}), N(() => c?.removeEventListener("change", l)), (e, t) => (F(), _(h, { to: "body" }, [s.value ? (F(), y(m, { key: 0 }, [C(W($).Context, null, {
|
|
1140
|
+
default: q((e) => [e.open ? (F(), y("div", {
|
|
1141
1141
|
key: 0,
|
|
1142
|
-
class: A(
|
|
1142
|
+
class: A(W(i).backdrop()),
|
|
1143
1143
|
"aria-hidden": "true"
|
|
1144
1144
|
}, null, 2)) : v("", !0)]),
|
|
1145
1145
|
_: 1
|
|
1146
|
-
}), b("div", { class: A(
|
|
1146
|
+
}), b("div", { class: A(W(i).sheet()) }, [C(W($).Content, { class: A(W(r)({
|
|
1147
1147
|
multiMonth: o.value,
|
|
1148
1148
|
bottomSheet: !0
|
|
1149
1149
|
}).content()) }, {
|
|
1150
|
-
default:
|
|
1150
|
+
default: q(() => [C(Ut, j(T(a.value)), x({ _: 2 }, [e.$slots.day ? {
|
|
1151
1151
|
name: "day",
|
|
1152
|
-
fn:
|
|
1152
|
+
fn: q((t) => [B(e.$slots, "day", j(T(t)))]),
|
|
1153
1153
|
key: "0"
|
|
1154
1154
|
} : void 0]), 1040)]),
|
|
1155
1155
|
_: 3
|
|
1156
|
-
}, 8, ["class"])], 2)], 64)) : (
|
|
1157
|
-
default:
|
|
1158
|
-
default:
|
|
1156
|
+
}, 8, ["class"])], 2)], 64)) : (F(), _(W($).Positioner, { key: 1 }, {
|
|
1157
|
+
default: q(() => [C(W($).Content, { class: A(o.value ? W(r)({ multiMonth: o.value }).content() : W(i).content()) }, {
|
|
1158
|
+
default: q(() => [C(Ut, j(T(a.value)), x({ _: 2 }, [e.$slots.day ? {
|
|
1159
1159
|
name: "day",
|
|
1160
|
-
fn:
|
|
1160
|
+
fn: q((t) => [B(e.$slots, "day", j(T(t)))]),
|
|
1161
1161
|
key: "0"
|
|
1162
1162
|
} : void 0]), 1040)]),
|
|
1163
1163
|
_: 3
|
|
@@ -1165,7 +1165,7 @@ var Tt = ["aria-label"], Et = [
|
|
|
1165
1165
|
_: 3
|
|
1166
1166
|
}))]));
|
|
1167
1167
|
}
|
|
1168
|
-
}),
|
|
1168
|
+
}), Gt = /* @__PURE__ */ w({
|
|
1169
1169
|
__name: "DateSegments",
|
|
1170
1170
|
props: {
|
|
1171
1171
|
index: {},
|
|
@@ -1180,19 +1180,19 @@ var Tt = ["aria-label"], Et = [
|
|
|
1180
1180
|
let t = e.clipboardData?.getData("text/plain") ?? "";
|
|
1181
1181
|
i.paste?.(t, i.index) && (e.preventDefault(), e.stopPropagation());
|
|
1182
1182
|
}
|
|
1183
|
-
let o = n("datePicker",
|
|
1184
|
-
return (e, n) => (
|
|
1183
|
+
let o = n("datePicker", X), s = g(() => o({ size: i.size }));
|
|
1184
|
+
return (e, n) => (F(), _(W(ut).SegmentGroup, O({
|
|
1185
1185
|
index: t.index,
|
|
1186
1186
|
class: s.value.segments(),
|
|
1187
1187
|
"aria-label": t.label,
|
|
1188
1188
|
"aria-describedby": t.describedby
|
|
1189
1189
|
}, t.paste ? { onPasteCapture: a } : {}), {
|
|
1190
|
-
default:
|
|
1191
|
-
default:
|
|
1190
|
+
default: q(() => [C(W(ut).Context, null, {
|
|
1191
|
+
default: q((e) => [(F(!0), y(m, null, z(e.getSegments({ index: t.index }), (e, t) => (F(), _(W(ut).Segment, {
|
|
1192
1192
|
key: t,
|
|
1193
1193
|
segment: e,
|
|
1194
1194
|
class: A(s.value.segment()),
|
|
1195
|
-
"aria-label":
|
|
1195
|
+
"aria-label": W(r).dateSegments[e.type]
|
|
1196
1196
|
}, null, 8, [
|
|
1197
1197
|
"segment",
|
|
1198
1198
|
"class",
|
|
@@ -1208,46 +1208,46 @@ var Tt = ["aria-label"], Et = [
|
|
|
1208
1208
|
"aria-describedby"
|
|
1209
1209
|
]));
|
|
1210
1210
|
}
|
|
1211
|
-
}),
|
|
1212
|
-
function
|
|
1213
|
-
return t ? e.includes("T") ?
|
|
1211
|
+
}), Kt = (e, t) => e ? e.toString().slice(0, t ? 16 : 10) : null;
|
|
1212
|
+
function qt(e, t, n) {
|
|
1213
|
+
return t ? e.includes("T") ? gt(e.slice(0, 16)) : gt(`${e}T${n === "max" ? "23:59" : "00:00"}`) : ht(e.slice(0, 10));
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function Jt(e, t, n, r) {
|
|
1216
1216
|
let i = typeof e == "string" && !e.includes("T"), a = et(e, t && !i, n);
|
|
1217
|
-
return a ?
|
|
1217
|
+
return a ? qt(a, t, r) : void 0;
|
|
1218
1218
|
}
|
|
1219
|
-
var
|
|
1219
|
+
var Yt = (e, t, n, r) => De(Kt(e, t), {
|
|
1220
1220
|
valueType: n,
|
|
1221
1221
|
timeZone: r,
|
|
1222
1222
|
withTime: t
|
|
1223
|
-
}),
|
|
1224
|
-
function
|
|
1223
|
+
}), Xt = (e, t, n) => et(e, t, n);
|
|
1224
|
+
function Zt(e, t) {
|
|
1225
1225
|
if (!e && !t?.length) return;
|
|
1226
1226
|
let n = new Set(t?.map((e) => et(e, !1)));
|
|
1227
1227
|
return (t) => {
|
|
1228
|
-
let r =
|
|
1228
|
+
let r = Kt(t, !1);
|
|
1229
1229
|
return n.has(r) || !!e?.(r);
|
|
1230
1230
|
};
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1232
|
+
function Qt(e, t) {
|
|
1233
1233
|
if ("hour" in e) return e;
|
|
1234
|
-
let n = t && "hour" in t ? new
|
|
1235
|
-
return
|
|
1234
|
+
let n = t && "hour" in t ? new mt(t.hour, t.minute) : new mt();
|
|
1235
|
+
return _t(e, n);
|
|
1236
1236
|
}
|
|
1237
|
-
var
|
|
1237
|
+
var $t = {
|
|
1238
1238
|
year: 2e3,
|
|
1239
1239
|
month: 1,
|
|
1240
1240
|
day: 1
|
|
1241
1241
|
};
|
|
1242
|
-
function
|
|
1242
|
+
function en(e) {
|
|
1243
1243
|
let [t = 0, n = 0, r = 0] = e.split(":").map(Number);
|
|
1244
|
-
return new
|
|
1244
|
+
return new ft($t.year, $t.month, $t.day, t, n, r);
|
|
1245
1245
|
}
|
|
1246
|
-
var
|
|
1246
|
+
var tn = (e) => String(e).padStart(2, "0"), nn = (e, t = !1) => e && "hour" in e ? `${tn(e.hour)}:${tn(e.minute)}${t ? `:${tn(e.second)}` : ""}` : null, rn = (e, t, n, r = !1) => Ye(e, t, n, r), an = ["id", "data-placeholder"], on = ["name", "value"], sn = ["id"], cn = [
|
|
1247
1247
|
"id",
|
|
1248
1248
|
"data-hidden",
|
|
1249
1249
|
"onClick"
|
|
1250
|
-
],
|
|
1250
|
+
], ln = ["id"], un = /* @__PURE__ */ w({
|
|
1251
1251
|
__name: "DatePickerBase",
|
|
1252
1252
|
props: {
|
|
1253
1253
|
mode: {},
|
|
@@ -1285,7 +1285,7 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
1285
1285
|
},
|
|
1286
1286
|
emits: ["change"],
|
|
1287
1287
|
setup(t, { emit: r }) {
|
|
1288
|
-
let i = e(), a = t, o = n("datePicker",
|
|
1288
|
+
let i = e(), a = t, o = n("datePicker", X, () => a.classes), s = r, c = g(() => o({ size: a.size })), l = ne(), u = ot(), d = g(() => ({
|
|
1289
1289
|
disabled: a.disabled ?? u?.value.disabled,
|
|
1290
1290
|
readOnly: a.readOnly ?? u?.value.readOnly,
|
|
1291
1291
|
invalid: a.invalid ?? u?.value.invalid,
|
|
@@ -1299,27 +1299,27 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
1299
1299
|
}), D = (e) => u?.value ? void 0 : f ? [a.label, w[e]].filter(Boolean).join(", ") : a.label, k = f ? {
|
|
1300
1300
|
...i.datePicker,
|
|
1301
1301
|
clearTrigger: i.dateRange.clearTrigger
|
|
1302
|
-
} : i.datePicker, M = g(() => a.period ? new
|
|
1302
|
+
} : i.datePicker, M = g(() => a.period ? new pt(a.locale, a.period === "month" ? {
|
|
1303
1303
|
month: "2-digit",
|
|
1304
1304
|
year: "numeric"
|
|
1305
|
-
} : { year: "numeric" }) : void 0),
|
|
1305
|
+
} : { year: "numeric" }) : void 0), N = g(() => a.firstDayOfWeek ?? Me(a.locale).firstDay), P = g(() => {
|
|
1306
1306
|
if (!a.showTimeZone || !a.timeZone) return;
|
|
1307
1307
|
let e = a.dates[0], t = e ? rt(e.toString().slice(0, 16), a.timeZone) : /* @__PURE__ */ new Date();
|
|
1308
1308
|
return {
|
|
1309
1309
|
short: Xe(a.timeZone, a.locale, t),
|
|
1310
1310
|
long: i.calendar.timeZone(Ze(a.timeZone, a.locale, t))
|
|
1311
1311
|
};
|
|
1312
|
-
}),
|
|
1312
|
+
}), I = g(() => [u?.value.ariaDescribedby, P.value ? `${l}tz` : void 0].filter(Boolean).join(" ") || void 0), L = (e) => S.every((t) => e.getSegments({ index: t }).every((e) => e.type === "literal" || e.isPlaceholder)), R = (e) => !!a.placeholder && L(e) && !e.focused, ee = (e) => a.placeholder && L(e) ? [I.value, `${l}ph`].filter(Boolean).join(" ") : I.value, V = g(() => {
|
|
1313
1313
|
if (!a.dates.length) return a.placeholder ?? i.calendar.noDates;
|
|
1314
1314
|
if (a.dates.length > 3) return Ue(i.calendar.datesSelected, a.dates.length, a.locale);
|
|
1315
|
-
let e = new
|
|
1315
|
+
let e = new pt(a.locale, {
|
|
1316
1316
|
day: "2-digit",
|
|
1317
1317
|
month: "2-digit",
|
|
1318
1318
|
year: "numeric",
|
|
1319
1319
|
timeZone: "UTC"
|
|
1320
1320
|
});
|
|
1321
1321
|
return a.dates.map((t) => e.format(t.toDate("UTC"))).join(", ");
|
|
1322
|
-
}),
|
|
1322
|
+
}), H = g(() => ({
|
|
1323
1323
|
presets: a.presets,
|
|
1324
1324
|
showWeekNumbers: a.showWeekNumbers,
|
|
1325
1325
|
numberOfMonths: a.numberOfMonths,
|
|
@@ -1331,25 +1331,25 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
1331
1331
|
timeZone: a.timeZone,
|
|
1332
1332
|
responsive: a.responsive
|
|
1333
1333
|
}));
|
|
1334
|
-
function
|
|
1335
|
-
s("change", a.withTime ? e.map((e, t) =>
|
|
1334
|
+
function te(e) {
|
|
1335
|
+
s("change", a.withTime ? e.map((e, t) => Qt(e, a.dates[t])) : e);
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1337
|
+
function re(e, t) {
|
|
1338
1338
|
if (a.period) return !1;
|
|
1339
1339
|
if (f) {
|
|
1340
1340
|
let t = He(e, a.locale, a.withTime);
|
|
1341
|
-
if (t) return s("change", [
|
|
1341
|
+
if (t) return s("change", [qt(t.start, a.withTime), qt(t.end, a.withTime)]), !0;
|
|
1342
1342
|
}
|
|
1343
1343
|
let n = Ve(e, a.locale, a.withTime);
|
|
1344
1344
|
if (!n) return !1;
|
|
1345
1345
|
let r = [...a.dates];
|
|
1346
|
-
return r[t] =
|
|
1346
|
+
return r[t] = qt(n, a.withTime), s("change", r.filter(Boolean)), !0;
|
|
1347
1347
|
}
|
|
1348
|
-
let
|
|
1348
|
+
let ie = {
|
|
1349
1349
|
placement: "bottom-start",
|
|
1350
1350
|
gutter: 4
|
|
1351
1351
|
};
|
|
1352
|
-
return (e, n) => (
|
|
1352
|
+
return (e, n) => (F(), _(W($).Root, O({
|
|
1353
1353
|
class: c.value.base({ class: t.className }),
|
|
1354
1354
|
"model-value": t.dates,
|
|
1355
1355
|
"selection-mode": t.mode,
|
|
@@ -1357,35 +1357,35 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
1357
1357
|
max: t.max,
|
|
1358
1358
|
"is-date-unavailable": t.isDateUnavailable,
|
|
1359
1359
|
locale: t.locale,
|
|
1360
|
-
"start-of-week":
|
|
1360
|
+
"start-of-week": N.value,
|
|
1361
1361
|
"min-view": t.period,
|
|
1362
1362
|
"default-view": t.period,
|
|
1363
1363
|
"num-of-months": t.numberOfMonths,
|
|
1364
1364
|
"time-zone": t.timeZone
|
|
1365
1365
|
}, d.value, {
|
|
1366
|
-
positioning:
|
|
1367
|
-
translations:
|
|
1366
|
+
positioning: ie,
|
|
1367
|
+
translations: W(k),
|
|
1368
1368
|
"lazy-mount": "",
|
|
1369
1369
|
"unmount-on-exit": "",
|
|
1370
|
-
onValueChange: n[1] ||= (e) =>
|
|
1370
|
+
onValueChange: n[1] ||= (e) => te(e.value)
|
|
1371
1371
|
}), {
|
|
1372
|
-
default:
|
|
1373
|
-
default:
|
|
1374
|
-
p ? (
|
|
1375
|
-
id: `${
|
|
1372
|
+
default: q(() => [C(W($).Control, { class: A(c.value.control()) }, {
|
|
1373
|
+
default: q(() => [
|
|
1374
|
+
p ? (F(), y(m, { key: 0 }, [b("span", {
|
|
1375
|
+
id: `${W(l)}v`,
|
|
1376
1376
|
class: A(c.value.multiValue()),
|
|
1377
1377
|
"data-placeholder": t.dates.length ? void 0 : ""
|
|
1378
|
-
},
|
|
1378
|
+
}, U(V.value), 11, an), t.name ? (F(!0), y(m, { key: 0 }, z(t.dates, (e, n) => (F(), y("input", {
|
|
1379
1379
|
key: e.toString(),
|
|
1380
1380
|
type: "hidden",
|
|
1381
1381
|
name: `${t.name}[${n}]`,
|
|
1382
1382
|
value: e.toString()
|
|
1383
|
-
}, null, 8,
|
|
1383
|
+
}, null, 8, on))), 128)) : v("", !0)], 64)) : (F(), _(W(ut).Root, O({
|
|
1384
1384
|
key: 1,
|
|
1385
1385
|
class: c.value.dateInput(),
|
|
1386
1386
|
ids: E.value,
|
|
1387
1387
|
"model-value": t.dates,
|
|
1388
|
-
"selection-mode":
|
|
1388
|
+
"selection-mode": W(h),
|
|
1389
1389
|
granularity: t.withTime ? "minute" : "day",
|
|
1390
1390
|
formatter: M.value,
|
|
1391
1391
|
min: t.min,
|
|
@@ -1395,30 +1395,30 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
1395
1395
|
"should-force-leading-zeros": "",
|
|
1396
1396
|
name: t.name
|
|
1397
1397
|
}, d.value, {
|
|
1398
|
-
translations:
|
|
1398
|
+
translations: W(i).dateInput,
|
|
1399
1399
|
onValueChange: n[0] ||= (e) => s("change", e.value)
|
|
1400
1400
|
}), {
|
|
1401
|
-
default:
|
|
1402
|
-
default:
|
|
1401
|
+
default: q(() => [C(W(ut).Context, null, {
|
|
1402
|
+
default: q((e) => [C(W(ut).Control, {
|
|
1403
1403
|
class: A(c.value.dateControl()),
|
|
1404
|
-
"data-placeholder-shown":
|
|
1404
|
+
"data-placeholder-shown": R(e) || void 0
|
|
1405
1405
|
}, {
|
|
1406
|
-
default:
|
|
1407
|
-
n === 1 ? (
|
|
1406
|
+
default: q(() => [(F(!0), y(m, null, z(W(S), (n) => (F(), y(m, { key: n }, [
|
|
1407
|
+
n === 1 ? (F(), y("span", {
|
|
1408
1408
|
key: 0,
|
|
1409
1409
|
class: A(c.value.rangeSeparator()),
|
|
1410
1410
|
"aria-hidden": "true"
|
|
1411
1411
|
}, "–", 2)) : v("", !0),
|
|
1412
|
-
f &&
|
|
1412
|
+
f && W(u) ? (F(), y("span", {
|
|
1413
1413
|
key: 1,
|
|
1414
|
-
id: `${
|
|
1414
|
+
id: `${W(l)}r${n}`,
|
|
1415
1415
|
class: A(c.value.rangeLabel())
|
|
1416
|
-
},
|
|
1417
|
-
C(
|
|
1416
|
+
}, U(w[n]), 11, sn)) : v("", !0),
|
|
1417
|
+
C(Gt, {
|
|
1418
1418
|
index: n,
|
|
1419
1419
|
label: D(n),
|
|
1420
|
-
describedby:
|
|
1421
|
-
paste: t.period ? void 0 :
|
|
1420
|
+
describedby: ee(e),
|
|
1421
|
+
paste: t.period ? void 0 : re,
|
|
1422
1422
|
size: t.size
|
|
1423
1423
|
}, null, 8, [
|
|
1424
1424
|
"index",
|
|
@@ -1429,15 +1429,15 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
1429
1429
|
])
|
|
1430
1430
|
], 64))), 128))]),
|
|
1431
1431
|
_: 2
|
|
1432
|
-
}, 1032, ["class", "data-placeholder-shown"]), t.placeholder &&
|
|
1432
|
+
}, 1032, ["class", "data-placeholder-shown"]), t.placeholder && L(e) ? (F(), y("span", {
|
|
1433
1433
|
key: 0,
|
|
1434
|
-
id: `${
|
|
1434
|
+
id: `${W(l)}ph`,
|
|
1435
1435
|
class: A(c.value.placeholder()),
|
|
1436
|
-
"data-hidden":
|
|
1436
|
+
"data-hidden": R(e) ? void 0 : "",
|
|
1437
1437
|
onClick: (t) => e.focus()
|
|
1438
|
-
},
|
|
1438
|
+
}, U(t.placeholder), 11, cn)) : v("", !0)]),
|
|
1439
1439
|
_: 1
|
|
1440
|
-
}), (
|
|
1440
|
+
}), (F(!0), y(m, null, z(W(S), (e) => (F(), _(W(ut).HiddenInput, {
|
|
1441
1441
|
key: e,
|
|
1442
1442
|
index: e
|
|
1443
1443
|
}, null, 8, ["index"]))), 128))]),
|
|
@@ -1456,25 +1456,25 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
1456
1456
|
"name",
|
|
1457
1457
|
"translations"
|
|
1458
1458
|
])),
|
|
1459
|
-
|
|
1459
|
+
P.value ? (F(), y(m, { key: 2 }, [b("span", {
|
|
1460
1460
|
class: A(c.value.timeZone()),
|
|
1461
1461
|
"aria-hidden": "true"
|
|
1462
|
-
},
|
|
1463
|
-
id: `${
|
|
1462
|
+
}, U(P.value.short), 3), b("span", {
|
|
1463
|
+
id: `${W(l)}tz`,
|
|
1464
1464
|
hidden: ""
|
|
1465
|
-
},
|
|
1466
|
-
t.hideClear ? v("", !0) : (
|
|
1465
|
+
}, U(P.value.long), 9, ln)], 64)) : v("", !0),
|
|
1466
|
+
t.hideClear ? v("", !0) : (F(), _(W($).ClearTrigger, {
|
|
1467
1467
|
key: 3,
|
|
1468
1468
|
class: A(c.value.clear())
|
|
1469
1469
|
}, {
|
|
1470
|
-
default:
|
|
1470
|
+
default: q(() => [C(W(_e), {
|
|
1471
1471
|
class: A(c.value.clearIcon()),
|
|
1472
1472
|
"aria-hidden": "true"
|
|
1473
1473
|
}, null, 8, ["class"])]),
|
|
1474
1474
|
_: 1
|
|
1475
1475
|
}, 8, ["class"])),
|
|
1476
|
-
C(
|
|
1477
|
-
default:
|
|
1476
|
+
C(W($).Trigger, O({ class: c.value.trigger() }, p ? { "aria-describedby": `${W(l)}v` } : {}), {
|
|
1477
|
+
default: q(() => [C(W(ae), {
|
|
1478
1478
|
class: A(c.value.triggerIcon()),
|
|
1479
1479
|
"aria-hidden": "true"
|
|
1480
1480
|
}, null, 8, ["class"])]),
|
|
@@ -1482,9 +1482,9 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
1482
1482
|
}, 16, ["class"])
|
|
1483
1483
|
]),
|
|
1484
1484
|
_: 1
|
|
1485
|
-
}, 8, ["class"]), C(
|
|
1485
|
+
}, 8, ["class"]), C(Wt, j(T(H.value)), x({ _: 2 }, [e.$slots.day ? {
|
|
1486
1486
|
name: "day",
|
|
1487
|
-
fn:
|
|
1487
|
+
fn: q((t) => [B(e.$slots, "day", j(T(t)))]),
|
|
1488
1488
|
key: "0"
|
|
1489
1489
|
} : void 0]), 1040)]),
|
|
1490
1490
|
_: 3
|
|
@@ -1504,7 +1504,7 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
1504
1504
|
"translations"
|
|
1505
1505
|
]));
|
|
1506
1506
|
}
|
|
1507
|
-
}),
|
|
1507
|
+
}), dn = /* @__PURE__ */ w({
|
|
1508
1508
|
inheritAttrs: !1,
|
|
1509
1509
|
__name: "DatePicker",
|
|
1510
1510
|
props: {
|
|
@@ -1563,20 +1563,20 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
1563
1563
|
},
|
|
1564
1564
|
emits: ["update:modelValue"],
|
|
1565
1565
|
setup(e, { emit: n }) {
|
|
1566
|
-
let i = t(), a = e, o = g(() => a.locale ?? i.value.locale), s = n, l =
|
|
1566
|
+
let i = t(), a = e, o = g(() => a.locale ?? i.value.locale), s = n, l = te(), u = g(() => r(l)), d = g(() => u.value.rest["aria-label"]);
|
|
1567
1567
|
c("DatePicker", () => a.id);
|
|
1568
|
-
let f =
|
|
1568
|
+
let f = R(a.defaultValue ?? null), p = g(() => a.modelValue === void 0 ? f.value : a.modelValue), m = g(() => Array.isArray(p.value) ? p.value : p.value ? [p.value] : []), h = g(() => m.value.map((e) => Jt(e, a.withTime, a.timeZone)).filter((e) => !!e)), v = (e) => e.map((e) => Xt(e, a.withTime, a.timeZone)).join();
|
|
1569
1569
|
function y(e) {
|
|
1570
|
-
let t = e.map((e) =>
|
|
1570
|
+
let t = e.map((e) => Yt(e, a.withTime, a.valueType, a.timeZone));
|
|
1571
1571
|
if (v(t) === v(m.value)) return;
|
|
1572
1572
|
let n = a.selectionMode === "multiple" ? t : t[0] ?? null;
|
|
1573
1573
|
f.value = n, s("update:modelValue", n);
|
|
1574
1574
|
}
|
|
1575
1575
|
let b = g(() => ({
|
|
1576
|
-
min:
|
|
1577
|
-
max:
|
|
1578
|
-
})), S = g(() =>
|
|
1579
|
-
return (t, n) => (
|
|
1576
|
+
min: Jt(a.min, a.withTime, a.timeZone, "min"),
|
|
1577
|
+
max: Jt(a.max, a.withTime, a.timeZone, "max")
|
|
1578
|
+
})), S = g(() => Zt(a.isDateUnavailable, a.excludeDates));
|
|
1579
|
+
return (t, n) => (F(), _(un, O({
|
|
1580
1580
|
mode: e.selectionMode,
|
|
1581
1581
|
dates: h.value,
|
|
1582
1582
|
"with-time": e.withTime
|
|
@@ -1610,18 +1610,18 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
1610
1610
|
onChange: y
|
|
1611
1611
|
}), x({ _: 2 }, [t.$slots.day ? {
|
|
1612
1612
|
name: "day",
|
|
1613
|
-
fn:
|
|
1613
|
+
fn: q((e) => [B(t.$slots, "day", j(T(e)))]),
|
|
1614
1614
|
key: "0"
|
|
1615
1615
|
} : void 0]), 1040, /* @__PURE__ */ "mode.dates.with-time.is-date-unavailable.locale.disabled.read-only.invalid.required.name.label.own-id.placeholder.classes.class-name.style.size.hide-clear.show-button-bar.show-week-numbers.number-of-months.plain-today.hide-outside-days.first-day-of-week.weekend-days.allow-deselect.time-zone.show-time-zone.responsive".split(".")));
|
|
1616
1616
|
}
|
|
1617
|
-
}),
|
|
1617
|
+
}), fn = ["aria-label", "onClick"], pn = ["data-placeholder-shown"], mn = ["data-placeholder-shown"], hn = ["aria-label", "onClick"], gn = [
|
|
1618
1618
|
"aria-controls",
|
|
1619
1619
|
"aria-activedescendant",
|
|
1620
1620
|
"aria-label",
|
|
1621
1621
|
"placeholder",
|
|
1622
1622
|
"value",
|
|
1623
1623
|
"onInput"
|
|
1624
|
-
],
|
|
1624
|
+
], _n = ["aria-checked"], vn = ["data-state"], yn = /* @__PURE__ */ w({
|
|
1625
1625
|
inheritAttrs: !1,
|
|
1626
1626
|
__name: "MultiSelect",
|
|
1627
1627
|
props: {
|
|
@@ -1677,48 +1677,48 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
1677
1677
|
"loadMore"
|
|
1678
1678
|
],
|
|
1679
1679
|
setup(t, { emit: i }) {
|
|
1680
|
-
let a = e(), o = t, s = n("multiSelect", Fe, () => o.classes), c = i, u =
|
|
1680
|
+
let a = e(), o = t, s = n("multiSelect", Fe, () => o.classes), c = i, u = te(), w = g(() => r(u)), E = g(() => o.display === "chips"), D = g(() => s({
|
|
1681
1681
|
size: o.size,
|
|
1682
1682
|
clearable: o.clearable && !E.value
|
|
1683
|
-
})), M = a.select,
|
|
1683
|
+
})), M = a.select, N = g(() => ({
|
|
1684
1684
|
itemValue: o.itemValue,
|
|
1685
1685
|
itemLabel: o.itemLabel,
|
|
1686
1686
|
itemDisabled: o.itemDisabled,
|
|
1687
1687
|
itemGroup: o.itemGroup,
|
|
1688
1688
|
itemKeywords: o.itemKeywords,
|
|
1689
1689
|
valueKey: o.valueKey
|
|
1690
|
-
})),
|
|
1690
|
+
})), I = R(""), L = d({
|
|
1691
1691
|
items: () => o.items,
|
|
1692
1692
|
source: () => o.dataSource,
|
|
1693
|
-
accessors: () =>
|
|
1693
|
+
accessors: () => N.value,
|
|
1694
1694
|
pageSize: () => o.pageSize,
|
|
1695
1695
|
minSearchLength: () => o.minSearchLength
|
|
1696
|
-
}), { options:
|
|
1696
|
+
}), { options: ee, visible: V, groups: H, ordered: re } = f(() => L.items.value, () => N.value, () => o.filter && !o.manualFilter && !o.dataSource ? I.value : ""), ie = g(() => [...ee.value, ...L.resolvedOptions.value]), { selected: G, keys: J, commit: Y, commitKeys: ae } = p({
|
|
1697
1697
|
multiple: !0,
|
|
1698
1698
|
model: () => o.modelValue,
|
|
1699
1699
|
defaultValue: o.defaultValue,
|
|
1700
|
-
accessors: () =>
|
|
1701
|
-
items:
|
|
1700
|
+
accessors: () => N.value,
|
|
1701
|
+
items: ie,
|
|
1702
1702
|
emit: (e) => c("update:modelValue", e),
|
|
1703
1703
|
check: {
|
|
1704
1704
|
component: "MultiSelect",
|
|
1705
1705
|
ready: () => !o.dataSource && !o.loading && o.items.length > 0
|
|
1706
1706
|
}
|
|
1707
1707
|
});
|
|
1708
|
-
|
|
1709
|
-
let
|
|
1710
|
-
function
|
|
1711
|
-
o.dataSource ?
|
|
1708
|
+
P(() => L.resolve(J.value, ie.value)), K(J, (e) => L.resolve(e, ie.value));
|
|
1709
|
+
let ce = g(() => o.loading || L.loading.value), le = g(() => o.hasMore || L.hasMore.value);
|
|
1710
|
+
function ue() {
|
|
1711
|
+
o.dataSource ? L.loadMore() : c("loadMore");
|
|
1712
1712
|
}
|
|
1713
|
-
let
|
|
1714
|
-
let e = new Set(
|
|
1715
|
-
return
|
|
1716
|
-
items:
|
|
1713
|
+
let de = g(() => o.max !== void 0 && G.value.length >= o.max), fe = g(() => {
|
|
1714
|
+
let e = new Set(J.value);
|
|
1715
|
+
return lt({
|
|
1716
|
+
items: re.value,
|
|
1717
1717
|
itemToString: (e) => e.label,
|
|
1718
1718
|
itemToValue: (e) => e.key,
|
|
1719
|
-
isItemDisabled: (t) => t.disabled ||
|
|
1719
|
+
isItemDisabled: (t) => t.disabled || de.value && !e.has(t.key)
|
|
1720
1720
|
});
|
|
1721
|
-
}),
|
|
1721
|
+
}), pe = g(() => o.filter || o.selectAll), ge = ne(), ve = g(() => o.emptyText ?? L.emptyText.value ?? (I.value ? a.common.noResults : a.common.empty)), be = g(() => ({
|
|
1722
1722
|
item: D.value.item(),
|
|
1723
1723
|
itemText: D.value.itemText(),
|
|
1724
1724
|
icon: D.value.icon(),
|
|
@@ -1733,106 +1733,106 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
1733
1733
|
empty: D.value.empty(),
|
|
1734
1734
|
check: D.value.check(),
|
|
1735
1735
|
checkIcon: D.value.checkIcon()
|
|
1736
|
-
})),
|
|
1737
|
-
function
|
|
1738
|
-
let t = o.max !== void 0 && e.length >= o.max &&
|
|
1739
|
-
|
|
1736
|
+
})), xe = g(() => G.value.length ? G.value.length > o.maxShown ? (o.summary ?? a.common.selectedCount)(G.value.length) : G.value.map((e) => e.label).join(", ") : o.placeholder ?? a.common.placeholder), Ce = g(() => V.value.filter((e) => !e.disabled)), we = g(() => ye(G.value, Ce.value)), X = R("");
|
|
1737
|
+
function Te(e) {
|
|
1738
|
+
let t = o.max !== void 0 && e.length >= o.max && G.value.length < o.max;
|
|
1739
|
+
Y(e), t && (X.value = M.maxReached(o.max));
|
|
1740
|
+
}
|
|
1741
|
+
function Ee(e, t) {
|
|
1742
|
+
let n = o.max !== void 0 && e.length >= o.max && G.value.length < o.max;
|
|
1743
|
+
ae(e, t), n && (X.value = M.maxReached(o.max));
|
|
1740
1744
|
}
|
|
1741
|
-
function De(e
|
|
1742
|
-
|
|
1743
|
-
oe(e, t), n && (Te.value = M.maxReached(o.max));
|
|
1745
|
+
function De(e) {
|
|
1746
|
+
Y(G.value.filter((t) => t.key !== e.key)), X.value = M.removed(e.label);
|
|
1744
1747
|
}
|
|
1745
1748
|
function Oe(e) {
|
|
1746
|
-
|
|
1749
|
+
let t = G.value.at(-1);
|
|
1750
|
+
t && (E.value && e.key === "Backspace" ? (e.preventDefault(), De(t)) : o.clearable && (e.key === "Delete" || e.key === "Backspace") && (e.preventDefault(), Y([])));
|
|
1747
1751
|
}
|
|
1748
1752
|
function ke(e) {
|
|
1749
|
-
|
|
1750
|
-
t && (E.value && e.key === "Backspace" ? (e.preventDefault(), Oe(t)) : o.clearable && (e.key === "Delete" || e.key === "Backspace") && (e.preventDefault(), J([])));
|
|
1753
|
+
Y([]), e.focus();
|
|
1751
1754
|
}
|
|
1752
|
-
function Ae(e) {
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
function je(e, t) {
|
|
1756
|
-
F.value = t.target.value, c("filterChange", F.value), o.dataSource && I.search(F.value), !(o.manualFilter || o.dataSource) && k(() => {
|
|
1757
|
-
let t = ie.value.find((e) => !e.disabled);
|
|
1755
|
+
function Ae(e, t) {
|
|
1756
|
+
I.value = t.target.value, c("filterChange", I.value), o.dataSource && L.search(I.value), !(o.manualFilter || o.dataSource) && k(() => {
|
|
1757
|
+
let t = re.value.find((e) => !e.disabled);
|
|
1758
1758
|
t && e.setHighlightValue(t.key);
|
|
1759
1759
|
});
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1761
|
+
function je(e) {
|
|
1762
1762
|
(e.key === " " || e.key === "Home" || e.key === "End") && e.stopPropagation();
|
|
1763
1763
|
}
|
|
1764
|
-
function
|
|
1764
|
+
function Me(e) {
|
|
1765
1765
|
(e.key === " " || e.key === "Enter") && e.stopPropagation();
|
|
1766
1766
|
}
|
|
1767
|
-
function
|
|
1768
|
-
e &&
|
|
1767
|
+
function Ne(e) {
|
|
1768
|
+
e && L.open(), !e && I.value && (I.value = "", c("filterChange", ""), o.dataSource && L.search(""));
|
|
1769
1769
|
}
|
|
1770
|
-
let
|
|
1770
|
+
let Pe = (e) => e.highlightedItem ? e.getItemProps({ item: e.highlightedItem }).id : void 0, Ie = {
|
|
1771
1771
|
sameWidth: !0,
|
|
1772
1772
|
gutter: 4
|
|
1773
|
-
},
|
|
1774
|
-
label:
|
|
1775
|
-
hiddenSelect:
|
|
1773
|
+
}, Le = ot(), Re = g(() => Se(o.id, "trigger", {
|
|
1774
|
+
label: Le?.value.ids.label,
|
|
1775
|
+
hiddenSelect: Le?.value.ids.control
|
|
1776
1776
|
}));
|
|
1777
|
-
return (e, n) => (
|
|
1777
|
+
return (e, n) => (F(), _(W(Q).Root, O({
|
|
1778
1778
|
class: D.value.base({ class: w.value.className }),
|
|
1779
1779
|
style: w.value.style,
|
|
1780
|
-
collection:
|
|
1780
|
+
collection: fe.value,
|
|
1781
1781
|
multiple: "",
|
|
1782
1782
|
"close-on-select": !1,
|
|
1783
|
-
"model-value":
|
|
1783
|
+
"model-value": W(J),
|
|
1784
1784
|
disabled: t.disabled,
|
|
1785
1785
|
invalid: t.invalid,
|
|
1786
1786
|
required: t.required,
|
|
1787
1787
|
name: t.name,
|
|
1788
|
-
positioning:
|
|
1789
|
-
composite: !
|
|
1790
|
-
},
|
|
1788
|
+
positioning: Ie,
|
|
1789
|
+
composite: !pe.value
|
|
1790
|
+
}, Re.value, {
|
|
1791
1791
|
"lazy-mount": "",
|
|
1792
1792
|
"unmount-on-exit": "",
|
|
1793
|
-
onValueChange: n[1] ||= (e) =>
|
|
1794
|
-
onOpenChange: n[2] ||= (e) =>
|
|
1793
|
+
onValueChange: n[1] ||= (e) => Ee(e.value, e.items),
|
|
1794
|
+
onOpenChange: n[2] ||= (e) => Ne(e.open)
|
|
1795
1795
|
}), {
|
|
1796
|
-
default:
|
|
1797
|
-
C(
|
|
1798
|
-
default:
|
|
1799
|
-
default:
|
|
1800
|
-
E.value ? (
|
|
1796
|
+
default: q(() => [
|
|
1797
|
+
C(W(Q).Context, null, {
|
|
1798
|
+
default: q((n) => [C(W(Q).Control, j(T(E.value || t.clearable ? { class: E.value ? D.value.chipsControl() : D.value.control() } : {})), {
|
|
1799
|
+
default: q(() => [
|
|
1800
|
+
E.value ? (F(!0), y(m, { key: 0 }, z(W(G), (e) => (F(), y("span", {
|
|
1801
1801
|
key: e.key,
|
|
1802
1802
|
class: A(D.value.chip())
|
|
1803
|
-
}, [b("span", { class: A(D.value.chipText()) },
|
|
1803
|
+
}, [b("span", { class: A(D.value.chipText()) }, U(e.label), 3), n.disabled ? v("", !0) : (F(), y("button", {
|
|
1804
1804
|
key: 0,
|
|
1805
1805
|
type: "button",
|
|
1806
1806
|
tabindex: "-1",
|
|
1807
1807
|
class: A(D.value.chipRemove()),
|
|
1808
|
-
"aria-label":
|
|
1809
|
-
onClick: (t) =>
|
|
1810
|
-
}, [C(
|
|
1808
|
+
"aria-label": W(M).removeItem(e.label),
|
|
1809
|
+
onClick: (t) => De(e)
|
|
1810
|
+
}, [C(W(_e), {
|
|
1811
1811
|
class: A(D.value.chipRemoveIcon()),
|
|
1812
1812
|
"aria-hidden": "true"
|
|
1813
|
-
}, null, 8, ["class"])], 10,
|
|
1814
|
-
C(
|
|
1813
|
+
}, null, 8, ["class"])], 10, fn))], 2))), 128)) : v("", !0),
|
|
1814
|
+
C(W(Q).Trigger, O(w.value.rest, {
|
|
1815
1815
|
class: E.value ? D.value.chipsTrigger() : D.value.trigger(),
|
|
1816
1816
|
"aria-busy": t.loading || void 0,
|
|
1817
|
-
onKeydown:
|
|
1817
|
+
onKeydown: Oe
|
|
1818
1818
|
}), {
|
|
1819
|
-
default:
|
|
1819
|
+
default: q(() => [E.value ? (F(), y("span", {
|
|
1820
1820
|
key: 0,
|
|
1821
1821
|
class: A(D.value.value()),
|
|
1822
|
-
"data-placeholder-shown": !
|
|
1823
|
-
}, [
|
|
1822
|
+
"data-placeholder-shown": !W(G).length || void 0
|
|
1823
|
+
}, [W(G).length ? (F(), y("span", {
|
|
1824
1824
|
key: 0,
|
|
1825
1825
|
class: A(D.value.hiddenValue())
|
|
1826
|
-
},
|
|
1826
|
+
}, U(W(G).map((e) => e.label).join(", ")), 3)) : (F(), y(m, { key: 1 }, [S(U(t.placeholder ?? W(a).common.placeholder), 1)], 64))], 10, pn)) : (F(), y("span", {
|
|
1827
1827
|
key: 1,
|
|
1828
1828
|
class: A(D.value.value()),
|
|
1829
|
-
"data-placeholder-shown": !
|
|
1830
|
-
}, [e.$slots.value &&
|
|
1831
|
-
default:
|
|
1829
|
+
"data-placeholder-shown": !W(G).length || void 0
|
|
1830
|
+
}, [e.$slots.value && W(G).length ? B(e.$slots, "value", { items: W(G).map((e) => e.item) }, void 0, void 0, 0) : (F(), y(m, { key: 1 }, [S(U(xe.value), 1)], 64))], 10, mn)), C(W(Q).Indicator, { class: A(D.value.indicator()) }, {
|
|
1831
|
+
default: q(() => [t.loading ? (F(), _(W(me), {
|
|
1832
1832
|
key: 0,
|
|
1833
1833
|
class: A(D.value.spinner()),
|
|
1834
1834
|
"aria-hidden": "true"
|
|
1835
|
-
}, null, 8, ["class"])) : (
|
|
1835
|
+
}, null, 8, ["class"])) : (F(), _(W(se), {
|
|
1836
1836
|
key: 1,
|
|
1837
1837
|
class: A(D.value.indicatorIcon()),
|
|
1838
1838
|
"aria-hidden": "true"
|
|
@@ -1841,35 +1841,35 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
1841
1841
|
}, 8, ["class"])]),
|
|
1842
1842
|
_: 3
|
|
1843
1843
|
}, 16, ["class", "aria-busy"]),
|
|
1844
|
-
t.clearable &&
|
|
1844
|
+
t.clearable && W(G).length && !n.disabled ? (F(), y("button", {
|
|
1845
1845
|
key: 1,
|
|
1846
1846
|
type: "button",
|
|
1847
1847
|
tabindex: "-1",
|
|
1848
1848
|
class: A(E.value ? D.value.chipsClear() : D.value.clear()),
|
|
1849
|
-
"aria-label":
|
|
1850
|
-
onClick: (e) =>
|
|
1851
|
-
}, [C(
|
|
1849
|
+
"aria-label": W(M).clear,
|
|
1850
|
+
onClick: (e) => ke(n)
|
|
1851
|
+
}, [C(W(_e), {
|
|
1852
1852
|
class: A(D.value.clearIcon()),
|
|
1853
1853
|
"aria-hidden": "true"
|
|
1854
|
-
}, null, 8, ["class"])], 10,
|
|
1854
|
+
}, null, 8, ["class"])], 10, hn)) : v("", !0)
|
|
1855
1855
|
]),
|
|
1856
1856
|
_: 2
|
|
1857
1857
|
}, 1040)]),
|
|
1858
1858
|
_: 3
|
|
1859
1859
|
}),
|
|
1860
|
-
E.value || t.max !== void 0 || t.dataSource ? (
|
|
1860
|
+
E.value || t.max !== void 0 || t.dataSource ? (F(), y("span", {
|
|
1861
1861
|
key: 0,
|
|
1862
1862
|
role: "status",
|
|
1863
1863
|
class: A(D.value.status())
|
|
1864
|
-
},
|
|
1865
|
-
(
|
|
1866
|
-
default:
|
|
1864
|
+
}, U(X.value || W(L).announcement.value), 3)) : v("", !0),
|
|
1865
|
+
(F(), _(h, { to: "body" }, [C(W(Q).Positioner, null, {
|
|
1866
|
+
default: q(() => [C(W(Q).Content, {
|
|
1867
1867
|
class: A(D.value.content()),
|
|
1868
|
-
"aria-busy":
|
|
1869
|
-
"aria-label":
|
|
1868
|
+
"aria-busy": ce.value || void 0,
|
|
1869
|
+
"aria-label": pe.value ? w.value.rest["aria-label"] : void 0
|
|
1870
1870
|
}, {
|
|
1871
|
-
default:
|
|
1872
|
-
default:
|
|
1871
|
+
default: q(() => [pe.value ? (F(), y(m, { key: 0 }, [b("div", { class: A(D.value.header()) }, [C(W(Q).Context, null, {
|
|
1872
|
+
default: q((e) => [t.filter ? (F(), y("input", {
|
|
1873
1873
|
key: 0,
|
|
1874
1874
|
type: "text",
|
|
1875
1875
|
role: "combobox",
|
|
@@ -1877,52 +1877,52 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
1877
1877
|
"aria-autocomplete": "list",
|
|
1878
1878
|
"aria-expanded": "true",
|
|
1879
1879
|
"data-autofocus": "",
|
|
1880
|
-
"aria-controls":
|
|
1881
|
-
"aria-activedescendant":
|
|
1882
|
-
"aria-label":
|
|
1883
|
-
placeholder:
|
|
1884
|
-
value:
|
|
1880
|
+
"aria-controls": W(ge),
|
|
1881
|
+
"aria-activedescendant": Pe(e),
|
|
1882
|
+
"aria-label": W(M).filter,
|
|
1883
|
+
placeholder: W(a).combobox.search,
|
|
1884
|
+
value: I.value,
|
|
1885
1885
|
class: A(D.value.search()),
|
|
1886
|
-
onInput: (t) =>
|
|
1887
|
-
onKeydown:
|
|
1888
|
-
}, null, 42,
|
|
1886
|
+
onInput: (t) => Ae(e, t),
|
|
1887
|
+
onKeydown: je
|
|
1888
|
+
}, null, 42, gn)) : v("", !0)]),
|
|
1889
1889
|
_: 1
|
|
1890
|
-
}), t.selectAll &&
|
|
1890
|
+
}), t.selectAll && Ce.value.length ? (F(), y("button", {
|
|
1891
1891
|
key: 0,
|
|
1892
1892
|
type: "button",
|
|
1893
1893
|
role: "checkbox",
|
|
1894
|
-
"aria-checked":
|
|
1894
|
+
"aria-checked": we.value,
|
|
1895
1895
|
class: A(D.value.selectAll()),
|
|
1896
|
-
onClick: n[0] ||= (e) =>
|
|
1897
|
-
onKeydown:
|
|
1896
|
+
onClick: n[0] ||= (e) => Te(W(nt)(W(G), W(V), t.max)),
|
|
1897
|
+
onKeydown: Me
|
|
1898
1898
|
}, [b("span", {
|
|
1899
1899
|
class: A(D.value.check()),
|
|
1900
|
-
"data-state":
|
|
1900
|
+
"data-state": we.value === "mixed" ? "indeterminate" : we.value ? "checked" : "unchecked",
|
|
1901
1901
|
"aria-hidden": "true"
|
|
1902
|
-
}, [
|
|
1902
|
+
}, [we.value === "mixed" ? (F(), _(W(he), {
|
|
1903
1903
|
key: 0,
|
|
1904
1904
|
class: A(D.value.checkIcon())
|
|
1905
|
-
}, null, 8, ["class"])) :
|
|
1905
|
+
}, null, 8, ["class"])) : we.value ? (F(), _(W(oe), {
|
|
1906
1906
|
key: 1,
|
|
1907
1907
|
class: A(D.value.checkIcon())
|
|
1908
|
-
}, null, 8, ["class"])) : v("", !0)], 10,
|
|
1909
|
-
id:
|
|
1908
|
+
}, null, 8, ["class"])) : v("", !0)], 10, vn), S(" " + U(W(M).selectAll), 1)], 42, _n)) : v("", !0)], 2), C(W(Q).List, {
|
|
1909
|
+
id: W(ge),
|
|
1910
1910
|
class: A(D.value.list()),
|
|
1911
1911
|
"data-autofocus": t.filter ? void 0 : ""
|
|
1912
1912
|
}, {
|
|
1913
|
-
default:
|
|
1914
|
-
parts:
|
|
1915
|
-
groups:
|
|
1916
|
-
classes:
|
|
1913
|
+
default: q(() => [C(l, {
|
|
1914
|
+
parts: W(Q),
|
|
1915
|
+
groups: W(H),
|
|
1916
|
+
classes: be.value,
|
|
1917
1917
|
checkbox: t.checkboxes,
|
|
1918
|
-
loading:
|
|
1919
|
-
"loading-text": t.loadingText ??
|
|
1920
|
-
"has-more":
|
|
1921
|
-
"empty-text":
|
|
1922
|
-
onLoadMore:
|
|
1918
|
+
loading: ce.value,
|
|
1919
|
+
"loading-text": t.loadingText ?? W(a).common.loading,
|
|
1920
|
+
"has-more": le.value,
|
|
1921
|
+
"empty-text": ve.value,
|
|
1922
|
+
onLoadMore: ue
|
|
1923
1923
|
}, x({ _: 2 }, [e.$slots.item ? {
|
|
1924
1924
|
name: "item",
|
|
1925
|
-
fn:
|
|
1925
|
+
fn: q((t) => [B(e.$slots, "item", j(T(t)))]),
|
|
1926
1926
|
key: "0"
|
|
1927
1927
|
} : void 0]), 1032, [
|
|
1928
1928
|
"parts",
|
|
@@ -1939,20 +1939,20 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
1939
1939
|
"id",
|
|
1940
1940
|
"class",
|
|
1941
1941
|
"data-autofocus"
|
|
1942
|
-
])], 64)) : (
|
|
1942
|
+
])], 64)) : (F(), _(l, {
|
|
1943
1943
|
key: 1,
|
|
1944
|
-
parts:
|
|
1945
|
-
groups:
|
|
1946
|
-
classes:
|
|
1944
|
+
parts: W(Q),
|
|
1945
|
+
groups: W(H),
|
|
1946
|
+
classes: be.value,
|
|
1947
1947
|
checkbox: t.checkboxes,
|
|
1948
|
-
loading:
|
|
1949
|
-
"loading-text": t.loadingText ??
|
|
1950
|
-
"has-more":
|
|
1951
|
-
"empty-text":
|
|
1952
|
-
onLoadMore:
|
|
1948
|
+
loading: ce.value,
|
|
1949
|
+
"loading-text": t.loadingText ?? W(a).common.loading,
|
|
1950
|
+
"has-more": le.value,
|
|
1951
|
+
"empty-text": ve.value,
|
|
1952
|
+
onLoadMore: ue
|
|
1953
1953
|
}, x({ _: 2 }, [e.$slots.item ? {
|
|
1954
1954
|
name: "item",
|
|
1955
|
-
fn:
|
|
1955
|
+
fn: q((t) => [B(e.$slots, "item", j(T(t)))]),
|
|
1956
1956
|
key: "0"
|
|
1957
1957
|
} : void 0]), 1032, [
|
|
1958
1958
|
"parts",
|
|
@@ -1972,7 +1972,7 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
1972
1972
|
])]),
|
|
1973
1973
|
_: 3
|
|
1974
1974
|
})])),
|
|
1975
|
-
C(
|
|
1975
|
+
C(W(Q).HiddenSelect)
|
|
1976
1976
|
]),
|
|
1977
1977
|
_: 3
|
|
1978
1978
|
}, 16, [
|
|
@@ -1987,7 +1987,7 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
1987
1987
|
"composite"
|
|
1988
1988
|
]));
|
|
1989
1989
|
}
|
|
1990
|
-
}),
|
|
1990
|
+
}), bn = ["id"], xn = ["id"], Sn = /* @__PURE__ */ w({
|
|
1991
1991
|
inheritAttrs: !1,
|
|
1992
1992
|
__name: "NumberInput",
|
|
1993
1993
|
props: {
|
|
@@ -2037,6 +2037,7 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
2037
2037
|
},
|
|
2038
2038
|
decimals: {},
|
|
2039
2039
|
clampBehavior: { default: "blur" },
|
|
2040
|
+
emptyFallback: {},
|
|
2040
2041
|
selectOnFocus: { type: Boolean },
|
|
2041
2042
|
loading: { type: Boolean },
|
|
2042
2043
|
clearable: { type: Boolean },
|
|
@@ -2046,7 +2047,7 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
2046
2047
|
},
|
|
2047
2048
|
emits: ["update:modelValue"],
|
|
2048
2049
|
setup(s, { expose: c, emit: l }) {
|
|
2049
|
-
let u = t(), d = e(), f = s, p = n("numberInput", Ie, () => f.classes), h = g(() => f.locale ?? u.value.locale), b = l, x =
|
|
2050
|
+
let u = t(), d = e(), f = s, p = n("numberInput", Ie, () => f.classes), h = g(() => f.locale ?? u.value.locale), b = l, x = te(), S = g(() => r(x)), w = ot(), T = i(), E = g(() => !!f.invalid || !!w?.value.invalid), D = g(() => !E.value && (!!f.success || T.value.success)), k = g(() => p({
|
|
2050
2051
|
size: f.size,
|
|
2051
2052
|
stacked: f.stepperLayout === "stacked",
|
|
2052
2053
|
success: D.value
|
|
@@ -2057,9 +2058,9 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
2057
2058
|
...f.formatOptions,
|
|
2058
2059
|
minimumFractionDigits: f.decimals,
|
|
2059
2060
|
maximumFractionDigits: f.decimals
|
|
2060
|
-
}),
|
|
2061
|
-
defaultValue:
|
|
2062
|
-
min:
|
|
2061
|
+
}), N = g(() => f.allowNegative ? f.min : Math.max(f.min ?? 0, 0)), P, I = f.modelValue ?? f.defaultValue ?? null, L = Qe(f.modelValue ?? f.defaultValue, h.value, j.value), z = R(L ?? ""), B = yt(g(() => ({
|
|
2062
|
+
defaultValue: L,
|
|
2063
|
+
min: N.value,
|
|
2063
2064
|
max: f.max,
|
|
2064
2065
|
step: f.step,
|
|
2065
2066
|
formatOptions: j.value,
|
|
@@ -2072,18 +2073,23 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
2072
2073
|
clampValueOnBlur: f.clampBehavior !== "none",
|
|
2073
2074
|
allowOverflow: f.clampBehavior !== "strict",
|
|
2074
2075
|
translations: d.numberInput,
|
|
2075
|
-
...
|
|
2076
|
+
...Se(f.id, "input", {
|
|
2076
2077
|
label: w?.value.ids.label,
|
|
2077
2078
|
input: w?.value.ids.control
|
|
2078
2079
|
}),
|
|
2079
2080
|
onValueChange: (e) => {
|
|
2080
|
-
|
|
2081
|
+
z.value = e.value;
|
|
2082
|
+
let t = Number.isNaN(e.valueAsNumber) ? null : e.valueAsNumber;
|
|
2083
|
+
t === null && f.emptyFallback || (t !== null && (I = t), P = t, b("update:modelValue", t));
|
|
2084
|
+
},
|
|
2085
|
+
onValueCommit: (e) => {
|
|
2086
|
+
f.emptyFallback && Number.isNaN(e.valueAsNumber) && B.value.setValue(f.emptyFallback === "previous" && I !== null ? I : N.value ?? 0);
|
|
2081
2087
|
}
|
|
2082
2088
|
})));
|
|
2083
|
-
|
|
2084
|
-
e !== void 0 && e !==
|
|
2089
|
+
K(() => f.modelValue, (e) => {
|
|
2090
|
+
e !== void 0 && e !== P && (e !== null && (I = e), e === null ? B.value.clearValue() : B.value.setValue(e));
|
|
2085
2091
|
});
|
|
2086
|
-
function
|
|
2092
|
+
function ee(e) {
|
|
2087
2093
|
if (e.ctrlKey || e.metaKey || e.altKey) return;
|
|
2088
2094
|
let t = e.currentTarget, n = t.selectionStart ?? t.value.length, r = t.value.slice(0, n) + t.value.slice(t.selectionEnd ?? n), i = Le(e.key, r, h.value, {
|
|
2089
2095
|
allowDecimal: f.allowDecimal && f.decimals !== 0,
|
|
@@ -2091,61 +2097,61 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
2091
2097
|
});
|
|
2092
2098
|
i && (e.preventDefault(), i !== "block" && ke(t, i.insert));
|
|
2093
2099
|
}
|
|
2094
|
-
function
|
|
2100
|
+
function V(e) {
|
|
2095
2101
|
let t = e.currentTarget, n = (t.selectionStart ?? 0) === 0 && (t.selectionEnd ?? 0) === t.value.length, r = Be(e.clipboardData?.getData("text") ?? "", h.value);
|
|
2096
2102
|
n && r !== null && (e.preventDefault(), Ge(t, Qe(r, h.value, j.value)));
|
|
2097
2103
|
}
|
|
2098
|
-
function
|
|
2104
|
+
function H(e) {
|
|
2099
2105
|
if (!f.selectOnFocus) return;
|
|
2100
2106
|
let t = e.currentTarget;
|
|
2101
2107
|
requestAnimationFrame(() => t.select());
|
|
2102
2108
|
}
|
|
2103
|
-
let
|
|
2109
|
+
let re = ne(), G = ne(), J = g(() => f.prefix || f.suffix ? [
|
|
2104
2110
|
w?.value.ariaDescribedby,
|
|
2105
|
-
f.prefix &&
|
|
2106
|
-
f.suffix &&
|
|
2111
|
+
f.prefix && re,
|
|
2112
|
+
f.suffix && G,
|
|
2107
2113
|
S.value.rest["aria-describedby"]
|
|
2108
|
-
].filter(Boolean).join(" ") : void 0),
|
|
2114
|
+
].filter(Boolean).join(" ") : void 0), Y = g(() => !!f.disabled || !!f.readOnly || !!w?.value.disabled || !!w?.value.readOnly), ae = ie("control");
|
|
2109
2115
|
function oe() {
|
|
2110
|
-
let e =
|
|
2116
|
+
let e = ae.value?.$el.querySelector("input");
|
|
2111
2117
|
e && (Ge(e), e.focus());
|
|
2112
2118
|
}
|
|
2113
|
-
return c(a(() =>
|
|
2114
|
-
value:
|
|
2119
|
+
return c(a(() => ae.value?.$el.querySelector("input"))), (e, t) => (F(), _(W(vt).RootProvider, {
|
|
2120
|
+
value: W(B),
|
|
2115
2121
|
class: A(k.value.base({ class: S.value.className })),
|
|
2116
2122
|
style: M(S.value.style)
|
|
2117
2123
|
}, {
|
|
2118
|
-
default:
|
|
2124
|
+
default: q(() => [C(W(vt).Control, {
|
|
2119
2125
|
ref_key: "control",
|
|
2120
|
-
ref:
|
|
2126
|
+
ref: ae,
|
|
2121
2127
|
class: A(k.value.control())
|
|
2122
2128
|
}, {
|
|
2123
|
-
default:
|
|
2124
|
-
s.prefix ? (
|
|
2129
|
+
default: q(() => [
|
|
2130
|
+
s.prefix ? (F(), y("span", {
|
|
2125
2131
|
key: 0,
|
|
2126
|
-
id:
|
|
2132
|
+
id: W(re),
|
|
2127
2133
|
class: A(k.value.prefix())
|
|
2128
|
-
},
|
|
2129
|
-
C(
|
|
2134
|
+
}, U(s.prefix), 11, bn)) : v("", !0),
|
|
2135
|
+
C(W(vt).Input, O({
|
|
2130
2136
|
...S.value.rest,
|
|
2131
|
-
...
|
|
2137
|
+
...J.value ? { "aria-describedby": J.value } : {}
|
|
2132
2138
|
}, {
|
|
2133
|
-
value:
|
|
2139
|
+
value: z.value,
|
|
2134
2140
|
class: k.value.input(),
|
|
2135
2141
|
"aria-busy": s.loading || void 0,
|
|
2136
|
-
onKeydown:
|
|
2137
|
-
onPaste:
|
|
2138
|
-
onFocus:
|
|
2142
|
+
onKeydown: ee,
|
|
2143
|
+
onPaste: V,
|
|
2144
|
+
onFocus: H
|
|
2139
2145
|
}), null, 16, [
|
|
2140
2146
|
"value",
|
|
2141
2147
|
"class",
|
|
2142
2148
|
"aria-busy"
|
|
2143
2149
|
]),
|
|
2144
|
-
s.loading || s.clearable || D.value ? (
|
|
2150
|
+
s.loading || s.clearable || D.value ? (F(), _(o, {
|
|
2145
2151
|
key: 1,
|
|
2146
2152
|
loading: s.loading,
|
|
2147
|
-
clear: s.clearable && !!
|
|
2148
|
-
"clear-label": s.clearLabel ??
|
|
2153
|
+
clear: s.clearable && !!z.value && !Y.value,
|
|
2154
|
+
"clear-label": s.clearLabel ?? W(d).field.clear,
|
|
2149
2155
|
success: D.value,
|
|
2150
2156
|
classes: {
|
|
2151
2157
|
spinner: k.value.spinner(),
|
|
@@ -2161,34 +2167,34 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
2161
2167
|
"success",
|
|
2162
2168
|
"classes"
|
|
2163
2169
|
])) : v("", !0),
|
|
2164
|
-
s.suffix ? (
|
|
2170
|
+
s.suffix ? (F(), y("span", {
|
|
2165
2171
|
key: 2,
|
|
2166
|
-
id:
|
|
2172
|
+
id: W(G),
|
|
2167
2173
|
class: A(k.value.suffix())
|
|
2168
|
-
},
|
|
2169
|
-
s.stepper && s.stepperLayout === "stacked" ? (
|
|
2174
|
+
}, U(s.suffix), 11, xn)) : v("", !0),
|
|
2175
|
+
s.stepper && s.stepperLayout === "stacked" ? (F(), y("div", {
|
|
2170
2176
|
key: 3,
|
|
2171
2177
|
class: A(k.value.stepper())
|
|
2172
|
-
}, [C(
|
|
2173
|
-
default:
|
|
2178
|
+
}, [C(W(vt).IncrementTrigger, { class: A(k.value.button()) }, {
|
|
2179
|
+
default: q(() => [C(W(ue), {
|
|
2174
2180
|
class: A(k.value.buttonIcon()),
|
|
2175
2181
|
"aria-hidden": "true"
|
|
2176
2182
|
}, null, 8, ["class"])]),
|
|
2177
2183
|
_: 1
|
|
2178
|
-
}, 8, ["class"]), C(
|
|
2179
|
-
default:
|
|
2184
|
+
}, 8, ["class"]), C(W(vt).DecrementTrigger, { class: A(k.value.button()) }, {
|
|
2185
|
+
default: q(() => [C(W(se), {
|
|
2180
2186
|
class: A(k.value.buttonIcon()),
|
|
2181
2187
|
"aria-hidden": "true"
|
|
2182
2188
|
}, null, 8, ["class"])]),
|
|
2183
2189
|
_: 1
|
|
2184
|
-
}, 8, ["class"])], 2)) : s.stepper ? (
|
|
2185
|
-
default:
|
|
2190
|
+
}, 8, ["class"])], 2)) : s.stepper ? (F(), y(m, { key: 4 }, [C(W(vt).DecrementTrigger, { class: A(k.value.button()) }, {
|
|
2191
|
+
default: q(() => [C(W(he), {
|
|
2186
2192
|
class: A(k.value.buttonIcon()),
|
|
2187
2193
|
"aria-hidden": "true"
|
|
2188
2194
|
}, null, 8, ["class"])]),
|
|
2189
2195
|
_: 1
|
|
2190
|
-
}, 8, ["class"]), C(
|
|
2191
|
-
default:
|
|
2196
|
+
}, 8, ["class"]), C(W(vt).IncrementTrigger, { class: A(k.value.button()) }, {
|
|
2197
|
+
default: q(() => [C(W(ge), {
|
|
2192
2198
|
class: A(k.value.buttonIcon()),
|
|
2193
2199
|
"aria-hidden": "true"
|
|
2194
2200
|
}, null, 8, ["class"])]),
|
|
@@ -2204,7 +2210,7 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
2204
2210
|
"style"
|
|
2205
2211
|
]));
|
|
2206
2212
|
}
|
|
2207
|
-
}),
|
|
2213
|
+
}), Cn = /* @__PURE__ */ w({
|
|
2208
2214
|
__name: "ContextMenu",
|
|
2209
2215
|
props: {
|
|
2210
2216
|
items: {},
|
|
@@ -2229,20 +2235,20 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
2229
2235
|
],
|
|
2230
2236
|
setup(e, { expose: t, emit: r }) {
|
|
2231
2237
|
let i = e, a = n("menu", Ne, () => i.classes), o = r, s = a();
|
|
2232
|
-
|
|
2238
|
+
xt({
|
|
2233
2239
|
items: () => i.items,
|
|
2234
2240
|
linkAs: () => i.linkAs,
|
|
2235
2241
|
onCheckedChange: (e, t) => o("checked-change", e, t),
|
|
2236
2242
|
onValueChange: (e, t) => o("value-change", e, t)
|
|
2237
2243
|
});
|
|
2238
|
-
let c =
|
|
2244
|
+
let c = Tt({
|
|
2239
2245
|
open: () => i.open,
|
|
2240
2246
|
anchor: () => void 0,
|
|
2241
2247
|
onOpenChange: (e) => o("update:open", e),
|
|
2242
2248
|
restoreFocus: !0
|
|
2243
2249
|
});
|
|
2244
2250
|
t(c.handle);
|
|
2245
|
-
let l =
|
|
2251
|
+
let l = ie("content"), u = Ct({
|
|
2246
2252
|
open: () => c.isOpen.value,
|
|
2247
2253
|
close: c.handle.close,
|
|
2248
2254
|
content: () => l.value?.$el,
|
|
@@ -2251,48 +2257,52 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
2251
2257
|
closeOnBlur: () => i.closeOnBlur,
|
|
2252
2258
|
highlightFirst: () => i.highlightFirst
|
|
2253
2259
|
}), d = null, f = we((e) => {
|
|
2254
|
-
d && o("before-open", d
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2260
|
+
d && o("before-open", d, {
|
|
2261
|
+
source: "pointer",
|
|
2262
|
+
focused: null
|
|
2263
|
+
}), c.handle.open(e);
|
|
2264
|
+
}), p = Ce();
|
|
2265
|
+
function m(e) {
|
|
2266
|
+
d = e.target, p.pointerdown(), f.down(e);
|
|
2258
2267
|
}
|
|
2259
|
-
|
|
2260
|
-
let
|
|
2261
|
-
return (t, n) => (
|
|
2262
|
-
open:
|
|
2263
|
-
positioning:
|
|
2264
|
-
"anchor-point":
|
|
2265
|
-
},
|
|
2268
|
+
N(f.cancel);
|
|
2269
|
+
let v = g(() => c.positioning({}));
|
|
2270
|
+
return (t, n) => (F(), _(W(Z).Root, O({
|
|
2271
|
+
open: W(c).isOpen.value,
|
|
2272
|
+
positioning: v.value,
|
|
2273
|
+
"anchor-point": W(c).anchorPoint.value
|
|
2274
|
+
}, W(u), {
|
|
2266
2275
|
"lazy-mount": "",
|
|
2267
2276
|
"unmount-on-exit": "",
|
|
2268
|
-
"onUpdate:open": n[
|
|
2269
|
-
onSelect: n[
|
|
2277
|
+
"onUpdate:open": n[6] ||= (e) => W(c).onOpenChange(e),
|
|
2278
|
+
onSelect: n[7] ||= (e) => o("select", e.value)
|
|
2270
2279
|
}), {
|
|
2271
|
-
default:
|
|
2280
|
+
default: q(() => [C(W(Z).ContextTrigger, {
|
|
2272
2281
|
"as-child": "",
|
|
2273
|
-
onPointerdown:
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2282
|
+
onPointerdown: m,
|
|
2283
|
+
onKeydown: n[0] ||= (e) => W(p).keydown(e),
|
|
2284
|
+
onContextmenu: n[1] ||= (e) => o("before-open", e.target, W(p).contextmenu()),
|
|
2285
|
+
onPointermove: n[2] ||= (e) => W(f).move(e),
|
|
2286
|
+
onPointerup: n[3] ||= (e) => W(f).cancel(),
|
|
2287
|
+
onPointercancel: n[4] ||= (e) => W(f).cancel()
|
|
2278
2288
|
}, {
|
|
2279
|
-
default:
|
|
2289
|
+
default: q(() => [B(t.$slots, "default")]),
|
|
2280
2290
|
_: 3
|
|
2281
|
-
}), (
|
|
2282
|
-
default:
|
|
2291
|
+
}), (F(), _(h, { to: "body" }, [C(W(Z).Positioner, null, {
|
|
2292
|
+
default: q(() => [C(W(Z).Content, O({
|
|
2283
2293
|
ref_key: "content",
|
|
2284
2294
|
ref: l,
|
|
2285
|
-
class:
|
|
2295
|
+
class: W(s).content()
|
|
2286
2296
|
}, e.label ? {
|
|
2287
2297
|
"aria-label": e.label,
|
|
2288
2298
|
"aria-labelledby": void 0
|
|
2289
2299
|
} : {}), {
|
|
2290
|
-
default:
|
|
2300
|
+
default: q(() => [C(wt, {
|
|
2291
2301
|
entries: e.items,
|
|
2292
|
-
onSelect: n[
|
|
2302
|
+
onSelect: n[5] ||= (e) => o("select", e)
|
|
2293
2303
|
}, x({ _: 2 }, [t.$slots.item ? {
|
|
2294
2304
|
name: "item",
|
|
2295
|
-
fn:
|
|
2305
|
+
fn: q((e) => [B(t.$slots, "item", j(T(e)))]),
|
|
2296
2306
|
key: "0"
|
|
2297
2307
|
} : void 0]), 1032, ["entries"])]),
|
|
2298
2308
|
_: 3
|
|
@@ -2308,4 +2318,4 @@ var en = (e) => String(e).padStart(2, "0"), tn = (e, t = !1) => e && "hour" in e
|
|
|
2308
2318
|
}
|
|
2309
2319
|
});
|
|
2310
2320
|
//#endregion
|
|
2311
|
-
export {
|
|
2321
|
+
export { xt as S, Pt as _, un as a, Tt as b, en as c, nn as d, Zt as f, Ft as g, Ut as h, dn as i, rn as l, Gt as m, Sn as n, Jt as o, Xt as p, yn as r, qt as s, Cn as t, Yt as u, jt as v, wt as x, kt as y };
|