@wirecore/wirelayer-vue 0.14.0 → 0.15.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/dist/Field-xVx6PoU7.js +109 -0
- package/dist/{Input-CH-ntEjv.js → Input-DqFiLzOR.js} +1 -1
- package/dist/InputStatus-BdHg-ibH.js +123 -0
- package/dist/{RecipesProvider-DzlYvZ-I.js → RecipesProvider-z4RUE-Pk.js} +402 -359
- package/dist/{Tree-C8vsEA6K.js → Tree-BD13Var1.js} +9 -9
- package/dist/components/Confirm/confirm.d.ts +10 -2
- package/dist/components/Confirm/confirm.d.ts.map +1 -1
- package/dist/components/Countdown/Countdown.vue.d.ts +2 -0
- package/dist/components/Countdown/Countdown.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePickerBase.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePickerTimes.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/announcements.d.ts +3 -0
- package/dist/components/DatePicker/announcements.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.vue.d.ts +4 -1
- package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/components/DialogService/dialogs.d.ts +4 -1
- package/dist/components/DialogService/dialogs.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.vue.d.ts +4 -1
- package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
- package/dist/components/LocaleProvider/LocaleProvider.vue.d.ts +1 -0
- package/dist/components/LocaleProvider/LocaleProvider.vue.d.ts.map +1 -1
- package/dist/components/Sortable/Sortable.vue.d.ts.map +1 -1
- package/dist/components/TagsInput/TagsInput.vue.d.ts +4 -0
- package/dist/components/TagsInput/TagsInput.vue.d.ts.map +1 -1
- package/dist/components/TimePicker/TimePicker.vue.d.ts.map +1 -1
- package/dist/components/TimeRangePicker/TimeRangePicker.vue.d.ts.map +1 -1
- package/dist/data-table/DataTable.vue.d.ts +10 -1
- package/dist/data-table/DataTable.vue.d.ts.map +1 -1
- package/dist/data-table/ValueInput.vue.d.ts +6 -4
- package/dist/data-table/ValueInput.vue.d.ts.map +1 -1
- package/dist/data-table/index.d.ts +1 -1
- package/dist/data-table/index.d.ts.map +1 -1
- package/dist/data-table/types.d.ts +43 -2
- package/dist/data-table/types.d.ts.map +1 -1
- package/dist/data-table.js +1859 -1785
- package/dist/form.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2896 -2850
- package/dist/pdf.js +2 -2
- package/dist/sources/DataTable.css +1 -0
- package/dist/sources/Dialog.css +1 -1
- package/dist/sources/Drawer.css +1 -1
- package/llms-full.txt +27 -10
- package/package.json +2 -2
- package/dist/Field-DuZfFNFT.js +0 -155
- package/dist/InputStatus-Cgarj-yu.js +0 -71
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { a as e, n as t, o as n, t as r } from "./recipes-CD2Ibsv9.js";
|
|
2
2
|
import { t as i } from "./attrs-KNjeRUCf.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as c } from "./Input-
|
|
3
|
+
import { a, n as o, t as s } from "./InputStatus-BdHg-ibH.js";
|
|
4
|
+
import { t as c } from "./Input-DqFiLzOR.js";
|
|
5
5
|
import { t as l } from "./label-for-eQvYjsM5.js";
|
|
6
6
|
import { n as u, t as d } from "./Select-B5c6Y3mf.js";
|
|
7
7
|
import { a as f, n as p, r as m } from "./Highlight-BM-J3Jj0.js";
|
|
8
8
|
import { Fragment as h, Teleport as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, defineComponent as T, guardReactiveProps as E, inject as D, mergeModels as O, mergeProps as k, nextTick as A, normalizeClass as j, normalizeProps as M, normalizeStyle as ee, 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 V, resolveDynamicComponent as H, shallowRef as te, toDisplayString as U, unref as W, useAttrs as ne, useId as re, useModel as ie, useTemplateRef as G, vModelText as K, watch as q, withCtx as J, withDirectives as Y, withKeys as ae } from "vue";
|
|
9
|
-
import { CalendarDays as oe, Check as se, ChevronDown as ce, ChevronLeft as le, ChevronRight as ue, ChevronUp as de, ChevronsLeft as fe, ChevronsRight as
|
|
10
|
-
import { SUBMENU_GUTTER as
|
|
11
|
-
import { Menu as
|
|
12
|
-
import { useFilter as
|
|
13
|
-
import { Field as
|
|
14
|
-
import { Pagination as
|
|
15
|
-
import { createListCollection as
|
|
16
|
-
import { Select as
|
|
17
|
-
import { DateInput as
|
|
18
|
-
import { DatePicker as $, useDatePickerContext as
|
|
19
|
-
import { CalendarDateTime as
|
|
20
|
-
import { NumberInput as
|
|
9
|
+
import { CalendarDays as oe, Check as se, ChevronDown as ce, ChevronLeft as le, ChevronRight as ue, ChevronUp as de, ChevronsLeft as fe, ChevronsRight as X, 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 Te, defaultNumberFormat as Ee, filterMenuEntries as De, fromWallIso as Oe, highlightFirstMenuItem as ke, insertIntoTextControl as Ae, isoWeekday as je, linkTarget as Me, localeWeekInfo as Ne, menu as Pe, menuSearchKey as Fe, multiSelect as Ie, numberInput as Le, numberInputKey as Re, pageForSize as ze, pagination as Be, parseLocaleNumber as Ve, parsePastedDate as He, parsePastedRange as Ue, partialDateIndex as We, pluralText as Ge, presetDateRange as Ke, rowWeekNumber as qe, setTextControlValue as Je, skeleton as Ye, textarea as Xe, textareaParts as Ze, timeSlots as Qe, timeZoneLabel as $e, timeZoneLongLabel as et, toNumberInputValue as tt, toOverlayAnchor as nt, toWallIso as rt, todayIso as it, toggleAllListOptions as at, translateDateAnnouncements as ot, zonedToInstant as st } from "@wirecore/wirelayer-recipes";
|
|
11
|
+
import { Menu as Z } from "@ark-ui/vue/menu";
|
|
12
|
+
import { useFilter as ct } from "@ark-ui/vue/locale";
|
|
13
|
+
import { Field as lt, useFieldContext as ut } from "@ark-ui/vue/field";
|
|
14
|
+
import { Pagination as dt, usePagination as ft } from "@ark-ui/vue/pagination";
|
|
15
|
+
import { createListCollection as pt } from "@ark-ui/vue/collection";
|
|
16
|
+
import { Select as Q } from "@ark-ui/vue/select";
|
|
17
|
+
import { DateInput as mt } from "@ark-ui/vue/date-input";
|
|
18
|
+
import { DatePicker as $, useDatePickerContext as ht } from "@ark-ui/vue/date-picker";
|
|
19
|
+
import { CalendarDateTime as gt, DateFormatter as _t, Time as vt, parseDate as yt, parseDateTime as bt, toCalendarDate as xt, toCalendarDateTime as St } from "@internationalized/date";
|
|
20
|
+
import { NumberInput as Ct, useNumberInput as wt } from "@ark-ui/vue/number-input";
|
|
21
21
|
//#region src/components/Menu/state.ts
|
|
22
|
-
var
|
|
23
|
-
function
|
|
22
|
+
var Tt = Symbol("wirecore-menu-state");
|
|
23
|
+
function Et(e) {
|
|
24
24
|
let t = L({
|
|
25
25
|
checked: {},
|
|
26
26
|
radio: {}
|
|
@@ -39,17 +39,17 @@ function wt(e) {
|
|
|
39
39
|
},
|
|
40
40
|
linkAs: () => e.linkAs() ?? "a"
|
|
41
41
|
};
|
|
42
|
-
return I(
|
|
42
|
+
return I(Tt, n), n;
|
|
43
43
|
}
|
|
44
|
-
var
|
|
45
|
-
function
|
|
44
|
+
var Dt = () => D(Tt, null);
|
|
45
|
+
function Ot(e) {
|
|
46
46
|
q([
|
|
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
|
|
@@ -59,7 +59,7 @@ function Et(e) {
|
|
|
59
59
|
return q(e.open, async (n) => {
|
|
60
60
|
t.value = null, n && e.highlightFirst() && (await A(), requestAnimationFrame(() => {
|
|
61
61
|
let n = e.content();
|
|
62
|
-
n && t.value === null &&
|
|
62
|
+
n && t.value === null && ke(n, { setHighlightedValue: (e) => t.value = e });
|
|
63
63
|
}));
|
|
64
64
|
}), _(() => e.highlightFirst() ? {
|
|
65
65
|
highlightedValue: t.value,
|
|
@@ -68,23 +68,23 @@ function Et(e) {
|
|
|
68
68
|
}
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region src/components/Menu/MenuEntries.vue
|
|
71
|
-
var
|
|
71
|
+
var kt = /* @__PURE__ */ T({
|
|
72
72
|
name: "MenuEntries",
|
|
73
73
|
__name: "MenuEntries",
|
|
74
74
|
props: { entries: {} },
|
|
75
75
|
emits: ["select"],
|
|
76
76
|
setup(e, { emit: n }) {
|
|
77
|
-
let r = t("menu",
|
|
77
|
+
let r = t("menu", Pe), i = n, a = r(), o = {
|
|
78
78
|
placement: "right-start",
|
|
79
|
-
offset: { mainAxis:
|
|
80
|
-
}, s =
|
|
79
|
+
offset: { mainAxis: ve }
|
|
80
|
+
}, s = Dt(), 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
82
|
let l = V("MenuEntries", !0);
|
|
83
|
-
return F(!0), b(h, null, z(e.entries, (e, u) => (F(), b(h, { key: c(e, u) }, ["type" in e && e.type === "separator" ? (F(), v(W(
|
|
83
|
+
return F(!0), b(h, null, z(e.entries, (e, u) => (F(), b(h, { key: c(e, u) }, ["type" in e && e.type === "separator" ? (F(), v(W(Z).Separator, {
|
|
84
84
|
key: 0,
|
|
85
85
|
class: j(W(a).separator())
|
|
86
|
-
}, null, 8, ["class"])) : "type" in e && e.type === "group" ? (F(), v(W(
|
|
87
|
-
default: J(() => [w(W(
|
|
86
|
+
}, null, 8, ["class"])) : "type" in e && e.type === "group" ? (F(), v(W(Z).ItemGroup, { key: 1 }, {
|
|
87
|
+
default: J(() => [w(W(Z).ItemGroupLabel, { class: j(W(a).groupLabel()) }, {
|
|
88
88
|
default: J(() => [C(U(e.label), 1)]),
|
|
89
89
|
_: 2
|
|
90
90
|
}, 1032, ["class"]), w(l, {
|
|
@@ -96,26 +96,26 @@ var Dt = /* @__PURE__ */ T({
|
|
|
96
96
|
key: "0"
|
|
97
97
|
} : void 0]), 1032, ["entries"])]),
|
|
98
98
|
_: 2
|
|
99
|
-
}, 1024)) : "type" in e && e.type === "radio" ? (F(), v(W(
|
|
99
|
+
}, 1024)) : "type" in e && e.type === "radio" ? (F(), v(W(Z).RadioItemGroup, {
|
|
100
100
|
key: 2,
|
|
101
101
|
"model-value": W(s)?.radio(e),
|
|
102
102
|
"onUpdate:modelValue": (t) => W(s)?.setRadio(e, t)
|
|
103
103
|
}, {
|
|
104
|
-
default: J(() => [e.label ? (F(), v(W(
|
|
104
|
+
default: J(() => [e.label ? (F(), v(W(Z).ItemGroupLabel, {
|
|
105
105
|
key: 0,
|
|
106
106
|
class: j(W(a).groupLabel())
|
|
107
107
|
}, {
|
|
108
108
|
default: J(() => [C(U(e.label), 1)]),
|
|
109
109
|
_: 2
|
|
110
|
-
}, 1032, ["class"])) : y("", !0), (F(!0), b(h, null, z(e.items, (e) => (F(), v(W(
|
|
110
|
+
}, 1032, ["class"])) : y("", !0), (F(!0), b(h, null, z(e.items, (e) => (F(), v(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
115
|
class: j(W(a).item())
|
|
116
116
|
}, {
|
|
117
|
-
default: J(() => [x("span", { class: j(W(a).indicator()) }, [w(W(
|
|
118
|
-
default: J(() => [w(W(
|
|
117
|
+
default: J(() => [x("span", { class: j(W(a).indicator()) }, [w(W(Z).ItemIndicator, null, {
|
|
118
|
+
default: J(() => [w(W(pe), {
|
|
119
119
|
class: j(W(a).indicatorDot()),
|
|
120
120
|
"aria-hidden": "true"
|
|
121
121
|
}, null, 8, ["class"])]),
|
|
@@ -133,7 +133,7 @@ var Dt = /* @__PURE__ */ T({
|
|
|
133
133
|
"class"
|
|
134
134
|
]))), 128))]),
|
|
135
135
|
_: 2
|
|
136
|
-
}, 1032, ["model-value", "onUpdate:modelValue"])) : "type" in e && e.type === "checkbox" ? (F(), v(W(
|
|
136
|
+
}, 1032, ["model-value", "onUpdate:modelValue"])) : "type" in e && e.type === "checkbox" ? (F(), v(W(Z).CheckboxItem, {
|
|
137
137
|
key: 3,
|
|
138
138
|
value: e.value,
|
|
139
139
|
checked: W(s)?.checked(e) ?? !!e.checked,
|
|
@@ -142,7 +142,7 @@ var Dt = /* @__PURE__ */ T({
|
|
|
142
142
|
class: j(W(a).item()),
|
|
143
143
|
"onUpdate:checked": (t) => W(s)?.setChecked(e, t)
|
|
144
144
|
}, {
|
|
145
|
-
default: J(() => [x("span", { class: j(W(a).indicator()) }, [w(W(
|
|
145
|
+
default: J(() => [x("span", { class: j(W(a).indicator()) }, [w(W(Z).ItemIndicator, null, {
|
|
146
146
|
default: J(() => [w(W(se), {
|
|
147
147
|
class: j(W(a).indicatorIcon()),
|
|
148
148
|
"aria-hidden": "true"
|
|
@@ -161,12 +161,12 @@ var Dt = /* @__PURE__ */ T({
|
|
|
161
161
|
"close-on-select",
|
|
162
162
|
"class",
|
|
163
163
|
"onUpdate:checked"
|
|
164
|
-
])) : !("type" in e) && e.children ? (F(), v(W(
|
|
164
|
+
])) : !("type" in e) && e.children ? (F(), v(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: J(() => [w(W(
|
|
169
|
+
default: J(() => [w(W(Z).TriggerItem, { class: j(W(a).item()) }, {
|
|
170
170
|
default: J(() => [
|
|
171
171
|
e.icon ? (F(), v(H(e.icon), {
|
|
172
172
|
key: 0,
|
|
@@ -180,8 +180,8 @@ var Dt = /* @__PURE__ */ T({
|
|
|
180
180
|
}, null, 8, ["class"])
|
|
181
181
|
]),
|
|
182
182
|
_: 2
|
|
183
|
-
}, 1032, ["class"]), (F(), v(g, { to: "body" }, [w(W(
|
|
184
|
-
default: J(() => [w(W(
|
|
183
|
+
}, 1032, ["class"]), (F(), v(g, { to: "body" }, [w(W(Z).Positioner, null, {
|
|
184
|
+
default: J(() => [w(W(Z).Content, { class: j(W(a).content()) }, {
|
|
185
185
|
default: J(() => [w(l, {
|
|
186
186
|
entries: e.children,
|
|
187
187
|
onSelect: n[1] ||= (e) => i("select", e)
|
|
@@ -195,14 +195,14 @@ var Dt = /* @__PURE__ */ T({
|
|
|
195
195
|
_: 2
|
|
196
196
|
}, 1024)]))]),
|
|
197
197
|
_: 2
|
|
198
|
-
}, 1024)) : !("type" in e) && (e.href || e.to) ? (F(), v(W(
|
|
198
|
+
}, 1024)) : !("type" in e) && (e.href || e.to) ? (F(), v(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: J(() => [(F(), v(H(W(s)?.linkAs() ?? "a"), k({ ref_for: !0 }, W(
|
|
205
|
+
default: J(() => [(F(), v(H(W(s)?.linkAs() ?? "a"), k({ ref_for: !0 }, W(Me)(e.href, e.to), { class: W(r)({ danger: e.danger }).item() }), {
|
|
206
206
|
default: J(() => [B(t.$slots, "item", { item: e }, () => [
|
|
207
207
|
e.icon ? (F(), v(H(e.icon), {
|
|
208
208
|
key: 0,
|
|
@@ -223,7 +223,7 @@ var Dt = /* @__PURE__ */ T({
|
|
|
223
223
|
"value",
|
|
224
224
|
"disabled",
|
|
225
225
|
"close-on-select"
|
|
226
|
-
])) : "type" in e ? y("", !0) : (F(), v(W(
|
|
226
|
+
])) : "type" in e ? y("", !0) : (F(), v(W(Z).Item, {
|
|
227
227
|
key: 6,
|
|
228
228
|
value: e.value,
|
|
229
229
|
disabled: e.disabled,
|
|
@@ -255,7 +255,7 @@ var Dt = /* @__PURE__ */ T({
|
|
|
255
255
|
});
|
|
256
256
|
//#endregion
|
|
257
257
|
//#region src/overlay.ts
|
|
258
|
-
function
|
|
258
|
+
function At(e) {
|
|
259
259
|
let t = R(e.defaultOpen?.() ?? !1), n = te(null), r = null, i = _(() => e.open() ?? t.value), a = _(() => n.value ?? e.anchor() ?? null);
|
|
260
260
|
q(i, (t) => {
|
|
261
261
|
if (typeof document < "u") {
|
|
@@ -298,7 +298,7 @@ function Ot(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 Ot(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 jt = ["aria-label"], Mt = [
|
|
310
310
|
"placeholder",
|
|
311
311
|
"aria-label",
|
|
312
312
|
"aria-activedescendant",
|
|
313
313
|
"onKeydown",
|
|
314
314
|
"onInput"
|
|
315
|
-
],
|
|
315
|
+
], Nt = { role: "status" }, Pt = /* @__PURE__ */ T({
|
|
316
316
|
__name: "Menu",
|
|
317
317
|
props: {
|
|
318
318
|
items: {},
|
|
@@ -343,14 +343,14 @@ var kt = ["aria-label"], At = [
|
|
|
343
343
|
"update:open"
|
|
344
344
|
],
|
|
345
345
|
setup(e, { expose: r, emit: i }) {
|
|
346
|
-
let a = e, o = t("menu",
|
|
347
|
-
|
|
346
|
+
let a = e, o = t("menu", Pe, () => a.classes), s = i, c = o(), l = n();
|
|
347
|
+
Et({
|
|
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 = At({
|
|
354
354
|
open: () => a.open,
|
|
355
355
|
defaultOpen: () => a.defaultOpen,
|
|
356
356
|
anchor: () => a.anchor,
|
|
@@ -358,7 +358,7 @@ var kt = ["aria-label"], At = [
|
|
|
358
358
|
restoreFocus: !0
|
|
359
359
|
});
|
|
360
360
|
r(u.handle);
|
|
361
|
-
let d = G("content"), f =
|
|
361
|
+
let d = G("content"), f = Ot({
|
|
362
362
|
open: () => u.isOpen.value,
|
|
363
363
|
close: u.handle.close,
|
|
364
364
|
content: () => d.value?.$el,
|
|
@@ -366,13 +366,13 @@ var kt = ["aria-label"], At = [
|
|
|
366
366
|
closeOnResize: () => a.closeOnResize,
|
|
367
367
|
closeOnBlur: () => a.closeOnBlur,
|
|
368
368
|
highlightFirst: () => a.highlightFirst
|
|
369
|
-
}), p = R(""), m = R(), h =
|
|
369
|
+
}), p = R(""), m = R(), h = ct({
|
|
370
370
|
sensitivity: "base",
|
|
371
371
|
usage: "sort"
|
|
372
|
-
}), C = _(() => a.searchable && p.value ?
|
|
372
|
+
}), C = _(() => a.searchable && p.value ? De(a.items, (e) => h.value.contains(e, p.value)) : a.items), T = R(null);
|
|
373
373
|
async function D(e, t) {
|
|
374
374
|
let n = e.target;
|
|
375
|
-
await A(), m.value =
|
|
375
|
+
await A(), m.value = ke(n, t);
|
|
376
376
|
}
|
|
377
377
|
q(u.isOpen, async (e) => {
|
|
378
378
|
p.value = "", m.value = void 0, e && a.searchable && (await A(), requestAnimationFrame(() => requestAnimationFrame(() => T.value?.focus())));
|
|
@@ -381,7 +381,7 @@ var kt = ["aria-label"], At = [
|
|
|
381
381
|
placement: a.placement,
|
|
382
382
|
gutter: a.arrow ? 10 : 8
|
|
383
383
|
}));
|
|
384
|
-
return (t, n) => (F(), v(W(
|
|
384
|
+
return (t, n) => (F(), v(W(Z).Root, k({
|
|
385
385
|
open: W(u).isOpen.value,
|
|
386
386
|
positioning: O.value,
|
|
387
387
|
"anchor-point": W(u).anchorPoint.value
|
|
@@ -391,27 +391,27 @@ var kt = ["aria-label"], At = [
|
|
|
391
391
|
"onUpdate:open": n[2] ||= (e) => W(u).onOpenChange(e),
|
|
392
392
|
onSelect: n[3] ||= (e) => s("select", e.value)
|
|
393
393
|
}), {
|
|
394
|
-
default: J(() => [t.$slots.default ? (F(), v(W(
|
|
394
|
+
default: J(() => [t.$slots.default ? (F(), v(W(Z).Trigger, {
|
|
395
395
|
key: 0,
|
|
396
396
|
"as-child": ""
|
|
397
397
|
}, {
|
|
398
398
|
default: J(() => [B(t.$slots, "default")]),
|
|
399
399
|
_: 3
|
|
400
|
-
})) : y("", !0), (F(), v(g, { to: "body" }, [w(W(
|
|
401
|
-
default: J(() => [w(W(
|
|
400
|
+
})) : y("", !0), (F(), v(g, { to: "body" }, [w(W(Z).Positioner, null, {
|
|
401
|
+
default: J(() => [w(W(Z).Content, {
|
|
402
402
|
ref_key: "content",
|
|
403
403
|
ref: d,
|
|
404
404
|
class: j(W(c).content())
|
|
405
405
|
}, {
|
|
406
406
|
default: J(() => [
|
|
407
|
-
e.arrow ? (F(), v(W(
|
|
407
|
+
e.arrow ? (F(), v(W(Z).Arrow, {
|
|
408
408
|
key: 0,
|
|
409
409
|
class: j(W(c).arrow())
|
|
410
410
|
}, {
|
|
411
|
-
default: J(() => [w(W(
|
|
411
|
+
default: J(() => [w(W(Z).ArrowTip, { class: j(W(c).arrowTip()) }, null, 8, ["class"])]),
|
|
412
412
|
_: 1
|
|
413
413
|
}, 8, ["class"])) : y("", !0),
|
|
414
|
-
e.searchable ? (F(), v(W(
|
|
414
|
+
e.searchable ? (F(), v(W(Z).Context, { key: 1 }, {
|
|
415
415
|
default: J((t) => [x("div", {
|
|
416
416
|
role: "group",
|
|
417
417
|
"aria-label": e.searchLabel ?? W(l).menu.search,
|
|
@@ -426,12 +426,12 @@ var kt = ["aria-label"], At = [
|
|
|
426
426
|
placeholder: e.searchLabel ?? W(l).menu.search,
|
|
427
427
|
"aria-label": e.searchLabel ?? W(l).menu.search,
|
|
428
428
|
"aria-activedescendant": m.value,
|
|
429
|
-
onKeydown: (e) => m.value = W(
|
|
429
|
+
onKeydown: (e) => m.value = W(Fe)(e, t) ?? m.value,
|
|
430
430
|
onInput: (e) => D(e, t)
|
|
431
|
-
}, null, 42,
|
|
431
|
+
}, null, 42, Mt), [[K, p.value]])], 10, jt)]),
|
|
432
432
|
_: 1
|
|
433
433
|
})) : y("", !0),
|
|
434
|
-
w(
|
|
434
|
+
w(kt, {
|
|
435
435
|
entries: C.value,
|
|
436
436
|
onSelect: n[1] ||= (e) => s("select", e)
|
|
437
437
|
}, S({ _: 2 }, [t.$slots.item ? {
|
|
@@ -443,7 +443,7 @@ var kt = ["aria-label"], At = [
|
|
|
443
443
|
key: 2,
|
|
444
444
|
role: "group",
|
|
445
445
|
class: j(W(c).empty())
|
|
446
|
-
}, [x("span",
|
|
446
|
+
}, [x("span", Nt, U(W(l).common.noResults), 1)], 2)) : y("", !0)
|
|
447
447
|
]),
|
|
448
448
|
_: 3
|
|
449
449
|
}, 8, ["class"])]),
|
|
@@ -456,7 +456,7 @@ var kt = ["aria-label"], At = [
|
|
|
456
456
|
"anchor-point"
|
|
457
457
|
]));
|
|
458
458
|
}
|
|
459
|
-
}),
|
|
459
|
+
}), Ft = ["id"], It = /* @__PURE__ */ T({
|
|
460
460
|
inheritAttrs: !1,
|
|
461
461
|
__name: "Textarea",
|
|
462
462
|
props: /*@__PURE__*/ O({
|
|
@@ -480,7 +480,7 @@ var kt = ["aria-label"], At = [
|
|
|
480
480
|
}),
|
|
481
481
|
emits: ["update:modelValue"],
|
|
482
482
|
setup(e, { expose: r }) {
|
|
483
|
-
let i = e, c = t("textarea", Xe, () => i.classes), l = t("textareaParts", Ze, () => i.classes), u = n(), d = ie(e, "modelValue"), f = ne(), p =
|
|
483
|
+
let i = e, c = t("textarea", Xe, () => i.classes), l = t("textareaParts", Ze, () => i.classes), u = n(), d = ie(e, "modelValue"), f = ne(), p = ut(), m = a(), g = _(() => i.invalid || !!p?.value.invalid), S = _(() => !g.value && (i.success || m.value.success)), C = _(() => i.disabled || !!p?.value.disabled), T = _(() => f.readonly !== void 0 && f.readonly !== !1), E = _(() => {
|
|
484
484
|
let e = Number(f.maxlength ?? f.maxLength);
|
|
485
485
|
return Number.isFinite(e) && e > 0 ? e : void 0;
|
|
486
486
|
}), D = _(() => i.showCount && E.value !== void 0), O = _(() => i.loading || i.clearable || S.value), M = _(() => D.value || i.loading || i.clearable), I = _(() => l()), L = R(i.defaultValue ?? ""), z = _(() => (d.value ?? L.value).length), B = _({
|
|
@@ -522,7 +522,7 @@ var kt = ["aria-label"], At = [
|
|
|
522
522
|
class: j(I.value.base({ class: j(W(f).class) })),
|
|
523
523
|
style: ee(W(f).style)
|
|
524
524
|
}, [
|
|
525
|
-
w(W(
|
|
525
|
+
w(W(lt).Textarea, k({
|
|
526
526
|
ref_key: "element",
|
|
527
527
|
ref: V,
|
|
528
528
|
modelValue: B.value,
|
|
@@ -582,11 +582,11 @@ var kt = ["aria-label"], At = [
|
|
|
582
582
|
id: W(te),
|
|
583
583
|
class: j(I.value.counter()),
|
|
584
584
|
"aria-hidden": "true"
|
|
585
|
-
}, U(W(u).textarea.counter(z.value, E.value)), 11,
|
|
585
|
+
}, U(W(u).textarea.counter(z.value, E.value)), 11, Ft), x("span", {
|
|
586
586
|
class: j(I.value.status()),
|
|
587
587
|
role: "status"
|
|
588
588
|
}, U(K.value), 3)], 64)) : y("", !0)
|
|
589
|
-
], 6)) : (F(), v(W(
|
|
589
|
+
], 6)) : (F(), v(W(lt).Textarea, k({
|
|
590
590
|
key: 0,
|
|
591
591
|
ref_key: "element",
|
|
592
592
|
ref: V,
|
|
@@ -615,7 +615,7 @@ var kt = ["aria-label"], At = [
|
|
|
615
615
|
"aria-invalid"
|
|
616
616
|
]));
|
|
617
617
|
}
|
|
618
|
-
}),
|
|
618
|
+
}), Lt = { "aria-hidden": "true" }, Rt = { "aria-hidden": "true" }, zt = /* @__PURE__ */ T({
|
|
619
619
|
inheritAttrs: !1,
|
|
620
620
|
__name: "Pagination",
|
|
621
621
|
props: {
|
|
@@ -641,7 +641,7 @@ var kt = ["aria-label"], At = [
|
|
|
641
641
|
},
|
|
642
642
|
emits: ["update:page", "update:pageSize"],
|
|
643
643
|
setup(e, { emit: r }) {
|
|
644
|
-
let i = e, a = t("pagination",
|
|
644
|
+
let i = e, a = t("pagination", Be, () => i.classes), o = r, s = ne(), l = _(() => a({ responsive: i.variant === "auto" })), u = n(), f = _(() => ({
|
|
645
645
|
...u.pagination,
|
|
646
646
|
...i.translations
|
|
647
647
|
})), p = R(i.pageSize);
|
|
@@ -656,7 +656,7 @@ var kt = ["aria-label"], At = [
|
|
|
656
656
|
} : {}, E = _(() => (i.pageSizes ?? []).map((e) => ({
|
|
657
657
|
value: e,
|
|
658
658
|
label: String(e)
|
|
659
|
-
}))), D =
|
|
659
|
+
}))), D = ft(_(() => ({
|
|
660
660
|
count: i.count,
|
|
661
661
|
pageSize: p.value,
|
|
662
662
|
page: i.page,
|
|
@@ -670,18 +670,18 @@ var kt = ["aria-label"], At = [
|
|
|
670
670
|
})));
|
|
671
671
|
async function O(e, t) {
|
|
672
672
|
if (!t || t === p.value) return;
|
|
673
|
-
let n =
|
|
673
|
+
let n = ze(e.page, p.value, t);
|
|
674
674
|
p.value = t, o("update:pageSize", t), await A(), e.setPage(n);
|
|
675
675
|
}
|
|
676
676
|
function M(e, t) {
|
|
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 (t, n) => g.value ? y("", !0) : (F(), v(W(
|
|
680
|
+
return (t, n) => g.value ? y("", !0) : (F(), v(W(dt).RootProvider, k({ key: 0 }, {
|
|
681
681
|
...W(s),
|
|
682
682
|
class: l.value.base({ class: j(W(s).class) })
|
|
683
683
|
}, { value: W(D) }), {
|
|
684
|
-
default: J(() => [w(W(
|
|
684
|
+
default: J(() => [w(W(dt).Context, null, {
|
|
685
685
|
default: J((t) => [
|
|
686
686
|
e.showSummary ? (F(), b("span", {
|
|
687
687
|
key: 0,
|
|
@@ -691,7 +691,7 @@ var kt = ["aria-label"], At = [
|
|
|
691
691
|
e.pageSizes?.length ? (F(), b("div", {
|
|
692
692
|
key: 1,
|
|
693
693
|
class: j(l.value.pageSize())
|
|
694
|
-
}, [x("span",
|
|
694
|
+
}, [x("span", Lt, U(W(u).pagination.pageSize), 1), w(d, {
|
|
695
695
|
class: j(l.value.pageSizeSelect()),
|
|
696
696
|
size: "sm",
|
|
697
697
|
items: E.value,
|
|
@@ -706,7 +706,7 @@ var kt = ["aria-label"], At = [
|
|
|
706
706
|
"onUpdate:modelValue"
|
|
707
707
|
])], 2)) : y("", !0),
|
|
708
708
|
x("div", { class: j(l.value.list()) }, [
|
|
709
|
-
e.withEdges ? (F(), v(W(
|
|
709
|
+
e.withEdges ? (F(), v(W(dt).FirstTrigger, {
|
|
710
710
|
key: 0,
|
|
711
711
|
"as-child": ""
|
|
712
712
|
}, {
|
|
@@ -719,7 +719,7 @@ var kt = ["aria-label"], At = [
|
|
|
719
719
|
}, 16, ["class"]))]),
|
|
720
720
|
_: 2
|
|
721
721
|
}, 1024)) : y("", !0),
|
|
722
|
-
w(W(
|
|
722
|
+
w(W(dt).PrevTrigger, { "as-child": "" }, {
|
|
723
723
|
default: J(() => [(F(), v(H(S.value), k({ class: l.value.trigger() }, T(t.page === 1)), {
|
|
724
724
|
default: J(() => [w(W(le), {
|
|
725
725
|
class: j(l.value.triggerIcon()),
|
|
@@ -733,7 +733,7 @@ var kt = ["aria-label"], At = [
|
|
|
733
733
|
key: 1,
|
|
734
734
|
class: j(l.value.compact())
|
|
735
735
|
}, U(W(u).pagination.compact(t.page, t.totalPages)), 3)),
|
|
736
|
-
e.variant === "compact" ? y("", !0) : (F(!0), b(h, { key: 2 }, z(t.pages, (e, t) => (F(), b(h, { key: t }, [e.type === "page" ? (F(), v(W(
|
|
736
|
+
e.variant === "compact" ? y("", !0) : (F(!0), b(h, { key: 2 }, z(t.pages, (e, t) => (F(), b(h, { key: t }, [e.type === "page" ? (F(), v(W(dt).Item, k({
|
|
737
737
|
key: 0,
|
|
738
738
|
ref_for: !0
|
|
739
739
|
}, e, { "as-child": "" }), {
|
|
@@ -742,7 +742,7 @@ var kt = ["aria-label"], At = [
|
|
|
742
742
|
_: 2
|
|
743
743
|
}, 1032, ["class"]))]),
|
|
744
744
|
_: 2
|
|
745
|
-
}, 1040)) : (F(), v(W(
|
|
745
|
+
}, 1040)) : (F(), v(W(dt).Ellipsis, {
|
|
746
746
|
key: 1,
|
|
747
747
|
index: t,
|
|
748
748
|
class: j(l.value.ellipsis()),
|
|
@@ -751,7 +751,7 @@ var kt = ["aria-label"], At = [
|
|
|
751
751
|
default: J(() => [...n[0] ||= [C(" … ", -1)]]),
|
|
752
752
|
_: 1
|
|
753
753
|
}, 8, ["index", "class"]))], 64))), 128)),
|
|
754
|
-
w(W(
|
|
754
|
+
w(W(dt).NextTrigger, { "as-child": "" }, {
|
|
755
755
|
default: J(() => [(F(), v(H(S.value), k({ class: l.value.trigger() }, T(t.page === t.totalPages)), {
|
|
756
756
|
default: J(() => [w(W(ue), {
|
|
757
757
|
class: j(l.value.triggerIcon()),
|
|
@@ -761,12 +761,12 @@ var kt = ["aria-label"], At = [
|
|
|
761
761
|
}, 16, ["class"]))]),
|
|
762
762
|
_: 2
|
|
763
763
|
}, 1024),
|
|
764
|
-
e.withEdges ? (F(), v(W(
|
|
764
|
+
e.withEdges ? (F(), v(W(dt).LastTrigger, {
|
|
765
765
|
key: 3,
|
|
766
766
|
"as-child": ""
|
|
767
767
|
}, {
|
|
768
768
|
default: J(() => [(F(), v(H(S.value), k({ class: l.value.trigger() }, T(t.page === t.totalPages)), {
|
|
769
|
-
default: J(() => [w(W(
|
|
769
|
+
default: J(() => [w(W(X), {
|
|
770
770
|
class: j(l.value.triggerIcon()),
|
|
771
771
|
"aria-hidden": "true"
|
|
772
772
|
}, null, 8, ["class"])]),
|
|
@@ -778,7 +778,7 @@ var kt = ["aria-label"], At = [
|
|
|
778
778
|
e.jumper ? (F(), b("div", {
|
|
779
779
|
key: 2,
|
|
780
780
|
class: j(l.value.jumper())
|
|
781
|
-
}, [x("span",
|
|
781
|
+
}, [x("span", Rt, U(W(u).pagination.jumper), 1), w(c, {
|
|
782
782
|
class: j(l.value.jumperInput()),
|
|
783
783
|
size: "sm",
|
|
784
784
|
inputmode: "numeric",
|
|
@@ -796,7 +796,7 @@ var kt = ["aria-label"], At = [
|
|
|
796
796
|
_: 1
|
|
797
797
|
}, 16, ["value"]));
|
|
798
798
|
}
|
|
799
|
-
}),
|
|
799
|
+
}), Bt = /* @__PURE__ */ T({
|
|
800
800
|
inheritAttrs: !1,
|
|
801
801
|
__name: "Skeleton",
|
|
802
802
|
props: {
|
|
@@ -819,7 +819,7 @@ var kt = ["aria-label"], At = [
|
|
|
819
819
|
style: o.value
|
|
820
820
|
}), null, 16));
|
|
821
821
|
}
|
|
822
|
-
}),
|
|
822
|
+
}), Vt = ["title"], Ht = ["title"], Ut = ["aria-label"], Wt = /* @__PURE__ */ T({
|
|
823
823
|
__name: "DatePickerDayTable",
|
|
824
824
|
props: {
|
|
825
825
|
weeks: {},
|
|
@@ -831,10 +831,10 @@ var kt = ["aria-label"], At = [
|
|
|
831
831
|
allowDeselect: { type: Boolean }
|
|
832
832
|
},
|
|
833
833
|
setup(e) {
|
|
834
|
-
let r = n(), i = e, a = t("datePicker",
|
|
834
|
+
let r = n(), i = e, a = t("datePicker", Te), o = _(() => a({
|
|
835
835
|
plainToday: i.plainToday,
|
|
836
836
|
hideOutsideDays: i.hideOutsideDays
|
|
837
|
-
})), s =
|
|
837
|
+
})), s = ht(), 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) => qe(e.map(c));
|
|
838
838
|
function d(e) {
|
|
839
839
|
let t = s.value.getDayTableCellState({
|
|
840
840
|
value: e,
|
|
@@ -846,7 +846,7 @@ var kt = ["aria-label"], At = [
|
|
|
846
846
|
selected: t.selected,
|
|
847
847
|
outside: t.outsideRange,
|
|
848
848
|
unavailable: t.unavailable || !!t.disabled,
|
|
849
|
-
weekend: i.weekendDays ? i.weekendDays.includes(
|
|
849
|
+
weekend: i.weekendDays ? i.weekendDays.includes(je(c(e))) : t.weekend
|
|
850
850
|
};
|
|
851
851
|
}
|
|
852
852
|
let f = (e) => s.value.selectionMode === "single" && s.value.getDayTableCellState({
|
|
@@ -858,7 +858,7 @@ var kt = ["aria-label"], At = [
|
|
|
858
858
|
}
|
|
859
859
|
function m(e) {
|
|
860
860
|
let t = {};
|
|
861
|
-
return i.weekendDays?.includes(
|
|
861
|
+
return i.weekendDays?.includes(je(c(e))) && (t["data-weekend"] = ""), i.allowDeselect && (t.onClickCapture = (t) => p(t, e), t.onKeydownCapture = (t) => p(t, e)), t;
|
|
862
862
|
}
|
|
863
863
|
return (t, n) => (F(), v(W($).Table, { class: j(o.value.table()) }, {
|
|
864
864
|
default: J(() => [w(W($).TableHead, null, {
|
|
@@ -867,11 +867,11 @@ var kt = ["aria-label"], At = [
|
|
|
867
867
|
key: 0,
|
|
868
868
|
scope: "col",
|
|
869
869
|
class: j(o.value.weekNumberHeader())
|
|
870
|
-
}, [x("abbr", { title: W(r).datePicker.weekColumnHeader }, U(W(r).datePicker.weekColumnShort), 9,
|
|
870
|
+
}, [x("abbr", { title: W(r).datePicker.weekColumnHeader }, U(W(r).datePicker.weekColumnShort), 9, Vt)], 2)) : y("", !0), (F(!0), b(h, null, z(W(s).weekDays, (e) => (F(), v(W($).TableHeader, {
|
|
871
871
|
key: e.long,
|
|
872
872
|
class: j(o.value.columnHeader())
|
|
873
873
|
}, {
|
|
874
|
-
default: J(() => [x("abbr", { title: e.long }, U(e.short), 9,
|
|
874
|
+
default: J(() => [x("abbr", { title: e.long }, U(e.short), 9, Ht)]),
|
|
875
875
|
_: 2
|
|
876
876
|
}, 1032, ["class"]))), 128))]),
|
|
877
877
|
_: 1
|
|
@@ -884,7 +884,7 @@ var kt = ["aria-label"], At = [
|
|
|
884
884
|
scope: "row",
|
|
885
885
|
class: j(o.value.weekNumber()),
|
|
886
886
|
"aria-label": W(r).datePicker.weekNumberCell(u(n))
|
|
887
|
-
}, U(u(n)), 11,
|
|
887
|
+
}, U(u(n)), 11, Ut)) : y("", !0), (F(!0), b(h, null, z(n, (n) => (F(), b(h, { key: n.toString() }, [l(n) ? (F(), b("td", {
|
|
888
888
|
key: 0,
|
|
889
889
|
class: j(o.value.cell())
|
|
890
890
|
}, null, 2)) : (F(), v(W($).TableCell, k({
|
|
@@ -913,10 +913,10 @@ var kt = ["aria-label"], At = [
|
|
|
913
913
|
_: 3
|
|
914
914
|
}, 8, ["class"]));
|
|
915
915
|
}
|
|
916
|
-
}),
|
|
916
|
+
}), Gt = /* @__PURE__ */ T({
|
|
917
917
|
__name: "DatePickerHeader",
|
|
918
918
|
setup(e) {
|
|
919
|
-
let r = t("datePicker",
|
|
919
|
+
let r = t("datePicker", Te), i = n(), a = r(), o = {
|
|
920
920
|
day: "month",
|
|
921
921
|
month: "year",
|
|
922
922
|
year: void 0
|
|
@@ -951,7 +951,7 @@ var kt = ["aria-label"], At = [
|
|
|
951
951
|
_: 1
|
|
952
952
|
}, 8, ["class"]));
|
|
953
953
|
}
|
|
954
|
-
}),
|
|
954
|
+
}), Kt = ["onClick"], qt = ["disabled", "onClick"], Jt = /* @__PURE__ */ T({
|
|
955
955
|
__name: "DatePickerViews",
|
|
956
956
|
props: {
|
|
957
957
|
presets: {},
|
|
@@ -965,7 +965,7 @@ var kt = ["aria-label"], At = [
|
|
|
965
965
|
timeZone: {}
|
|
966
966
|
},
|
|
967
967
|
setup(e) {
|
|
968
|
-
let r = n(), i = e, a = t("datePicker",
|
|
968
|
+
let r = n(), i = e, a = t("datePicker", Te)(), o = (e) => typeof e == "string" ? r.rangePresets[e] ?? e : e.label, s = _(() => Math.max(1, Math.floor(i.numberOfMonths ?? 1))), c = _(() => ({
|
|
969
969
|
showWeekNumbers: i.showWeekNumbers,
|
|
970
970
|
plainToday: i.plainToday,
|
|
971
971
|
hideOutsideDays: i.hideOutsideDays || s.value > 1,
|
|
@@ -997,20 +997,20 @@ var kt = ["aria-label"], At = [
|
|
|
997
997
|
return (t, n) => (F(), b(h, null, [
|
|
998
998
|
w(W($).View, { view: "day" }, {
|
|
999
999
|
default: J(() => [w(W($).Context, null, {
|
|
1000
|
-
default: J((e) => [w(
|
|
1000
|
+
default: J((e) => [w(Gt), s.value > 1 ? (F(), b("div", {
|
|
1001
1001
|
key: 0,
|
|
1002
1002
|
class: j(W(a).months())
|
|
1003
1003
|
}, [(F(!0), b(h, null, z(l(e), (e) => (F(), b("div", {
|
|
1004
1004
|
key: e.title,
|
|
1005
1005
|
class: j(W(a).month())
|
|
1006
|
-
}, [x("div", { class: j(W(a).monthTitle()) }, U(e.title), 3), w(
|
|
1006
|
+
}, [x("div", { class: j(W(a).monthTitle()) }, U(e.title), 3), w(Wt, k({
|
|
1007
1007
|
weeks: e.weeks,
|
|
1008
1008
|
"visible-range": e.visibleRange
|
|
1009
1009
|
}, { ref_for: !0 }, c.value), S({ _: 2 }, [t.$slots.day ? {
|
|
1010
1010
|
name: "day",
|
|
1011
1011
|
fn: J((e) => [B(t.$slots, "day", k({ ref_for: !0 }, e))]),
|
|
1012
1012
|
key: "0"
|
|
1013
|
-
} : void 0]), 1040, ["weeks", "visible-range"])], 2))), 128))], 2)) : (F(), v(
|
|
1013
|
+
} : void 0]), 1040, ["weeks", "visible-range"])], 2))), 128))], 2)) : (F(), v(Wt, k({
|
|
1014
1014
|
key: 1,
|
|
1015
1015
|
weeks: e.weeks
|
|
1016
1016
|
}, c.value), S({ _: 2 }, [t.$slots.day ? {
|
|
@@ -1024,7 +1024,7 @@ var kt = ["aria-label"], At = [
|
|
|
1024
1024
|
}),
|
|
1025
1025
|
w(W($).View, { view: "month" }, {
|
|
1026
1026
|
default: J(() => [w(W($).Context, null, {
|
|
1027
|
-
default: J((e) => [w(
|
|
1027
|
+
default: J((e) => [w(Gt), w(W($).Table, { class: j(W(a).table()) }, {
|
|
1028
1028
|
default: J(() => [w(W($).TableBody, null, {
|
|
1029
1029
|
default: J(() => [(F(!0), b(h, null, z(e.getMonthsGrid({
|
|
1030
1030
|
columns: 4,
|
|
@@ -1053,7 +1053,7 @@ var kt = ["aria-label"], At = [
|
|
|
1053
1053
|
}),
|
|
1054
1054
|
w(W($).View, { view: "year" }, {
|
|
1055
1055
|
default: J(() => [w(W($).Context, null, {
|
|
1056
|
-
default: J((e) => [w(
|
|
1056
|
+
default: J((e) => [w(Gt), w(W($).Table, { class: j(W(a).table()) }, {
|
|
1057
1057
|
default: J(() => [w(W($).TableBody, null, {
|
|
1058
1058
|
default: J(() => [(F(!0), b(h, null, z(e.getYearsGrid({ columns: 4 }), (e) => (F(), v(W($).TableRow, { key: e[0]?.value }, {
|
|
1059
1059
|
default: J(() => [(F(!0), b(h, null, z(e, (e) => (F(), v(W($).TableCell, {
|
|
@@ -1098,17 +1098,17 @@ var kt = ["aria-label"], At = [
|
|
|
1098
1098
|
type: "button",
|
|
1099
1099
|
class: j(W(a).buttonBarButton()),
|
|
1100
1100
|
onClick: (t) => u(e)
|
|
1101
|
-
}, U(W(r).calendar.today), 11,
|
|
1101
|
+
}, U(W(r).calendar.today), 11, Kt), x("button", {
|
|
1102
1102
|
type: "button",
|
|
1103
1103
|
class: j(W(a).buttonBarButton()),
|
|
1104
1104
|
disabled: !e.value.length,
|
|
1105
1105
|
onClick: (t) => e.clearValue({ focus: !1 })
|
|
1106
|
-
}, U(W(r).calendar.clear), 11,
|
|
1106
|
+
}, U(W(r).calendar.clear), 11, qt)], 2)]),
|
|
1107
1107
|
_: 1
|
|
1108
1108
|
})) : y("", !0)
|
|
1109
1109
|
], 64));
|
|
1110
1110
|
}
|
|
1111
|
-
}),
|
|
1111
|
+
}), Yt = /* @__PURE__ */ T({
|
|
1112
1112
|
__name: "DatePickerCalendar",
|
|
1113
1113
|
props: {
|
|
1114
1114
|
presets: {},
|
|
@@ -1123,7 +1123,7 @@ var kt = ["aria-label"], At = [
|
|
|
1123
1123
|
timeZone: {}
|
|
1124
1124
|
},
|
|
1125
1125
|
setup(e) {
|
|
1126
|
-
let n = e, r = t("datePicker",
|
|
1126
|
+
let n = e, r = t("datePicker", Te), i = r(), a = _(() => ({
|
|
1127
1127
|
presets: n.presets,
|
|
1128
1128
|
showWeekNumbers: n.showWeekNumbers,
|
|
1129
1129
|
numberOfMonths: n.numberOfMonths,
|
|
@@ -1147,7 +1147,7 @@ var kt = ["aria-label"], At = [
|
|
|
1147
1147
|
multiMonth: o.value,
|
|
1148
1148
|
bottomSheet: !0
|
|
1149
1149
|
}).content()) }, {
|
|
1150
|
-
default: J(() => [w(
|
|
1150
|
+
default: J(() => [w(Jt, M(E(a.value)), S({ _: 2 }, [e.$slots.day ? {
|
|
1151
1151
|
name: "day",
|
|
1152
1152
|
fn: J((t) => [B(e.$slots, "day", M(E(t)))]),
|
|
1153
1153
|
key: "0"
|
|
@@ -1155,7 +1155,7 @@ var kt = ["aria-label"], At = [
|
|
|
1155
1155
|
_: 3
|
|
1156
1156
|
}, 8, ["class"])], 2)], 64)) : (F(), v(W($).Positioner, { key: 1 }, {
|
|
1157
1157
|
default: J(() => [w(W($).Content, { class: j(o.value ? W(r)({ multiMonth: o.value }).content() : W(i).content()) }, {
|
|
1158
|
-
default: J(() => [w(
|
|
1158
|
+
default: J(() => [w(Jt, M(E(a.value)), S({ _: 2 }, [e.$slots.day ? {
|
|
1159
1159
|
name: "day",
|
|
1160
1160
|
fn: J((t) => [B(e.$slots, "day", M(E(t)))]),
|
|
1161
1161
|
key: "0"
|
|
@@ -1165,7 +1165,7 @@ var kt = ["aria-label"], At = [
|
|
|
1165
1165
|
_: 3
|
|
1166
1166
|
}))]));
|
|
1167
1167
|
}
|
|
1168
|
-
}),
|
|
1168
|
+
}), Xt = /* @__PURE__ */ T({
|
|
1169
1169
|
__name: "DateSegments",
|
|
1170
1170
|
props: {
|
|
1171
1171
|
index: {},
|
|
@@ -1180,15 +1180,15 @@ var kt = ["aria-label"], At = [
|
|
|
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 = t("datePicker",
|
|
1184
|
-
return (t, n) => (F(), v(W(
|
|
1183
|
+
let o = t("datePicker", Te), s = _(() => o({ size: i.size }));
|
|
1184
|
+
return (t, n) => (F(), v(W(mt).SegmentGroup, k({
|
|
1185
1185
|
index: e.index,
|
|
1186
1186
|
class: s.value.segments(),
|
|
1187
1187
|
"aria-label": e.label,
|
|
1188
1188
|
"aria-describedby": e.describedby
|
|
1189
1189
|
}, e.paste ? { onPasteCapture: a } : {}), {
|
|
1190
|
-
default: J(() => [w(W(
|
|
1191
|
-
default: J((t) => [(F(!0), b(h, null, z(t.getSegments({ index: e.index }), (e, t) => (F(), v(W(
|
|
1190
|
+
default: J(() => [w(W(mt).Context, null, {
|
|
1191
|
+
default: J((t) => [(F(!0), b(h, null, z(t.getSegments({ index: e.index }), (e, t) => (F(), v(W(mt).Segment, {
|
|
1192
1192
|
key: t,
|
|
1193
1193
|
segment: e,
|
|
1194
1194
|
class: j(s.value.segment()),
|
|
@@ -1208,46 +1208,60 @@ var kt = ["aria-label"], At = [
|
|
|
1208
1208
|
"aria-describedby"
|
|
1209
1209
|
]));
|
|
1210
1210
|
}
|
|
1211
|
-
})
|
|
1212
|
-
|
|
1213
|
-
|
|
1211
|
+
});
|
|
1212
|
+
//#endregion
|
|
1213
|
+
//#region src/components/DatePicker/announcements.ts
|
|
1214
|
+
function Zt(e) {
|
|
1215
|
+
let t = n(), r = () => {};
|
|
1216
|
+
P(() => {
|
|
1217
|
+
r = ot(() => e() ?? null, () => ({
|
|
1218
|
+
segments: t.dateSegments,
|
|
1219
|
+
empty: t.dateInput.empty
|
|
1220
|
+
}));
|
|
1221
|
+
}), N(() => r());
|
|
1214
1222
|
}
|
|
1215
|
-
|
|
1223
|
+
//#endregion
|
|
1224
|
+
//#region src/components/DatePicker/dates.ts
|
|
1225
|
+
var Qt = (e, t) => e ? e.toString().slice(0, t ? 16 : 10) : null;
|
|
1226
|
+
function $t(e, t, n) {
|
|
1227
|
+
return t ? e.includes("T") ? bt(e.slice(0, 16)) : bt(`${e}T${n === "max" ? "23:59" : "00:00"}`) : yt(e.slice(0, 10));
|
|
1228
|
+
}
|
|
1229
|
+
function en(e, t, n, r) {
|
|
1216
1230
|
let i = typeof e == "string" && !e.includes("T"), a = rt(e, t && !i, n);
|
|
1217
|
-
return a ?
|
|
1231
|
+
return a ? $t(a, t, r) : void 0;
|
|
1218
1232
|
}
|
|
1219
|
-
var
|
|
1233
|
+
var tn = (e, t, n, r) => Oe(Qt(e, t), {
|
|
1220
1234
|
valueType: n,
|
|
1221
1235
|
timeZone: r,
|
|
1222
1236
|
withTime: t
|
|
1223
|
-
}),
|
|
1224
|
-
function
|
|
1237
|
+
}), nn = (e, t, n) => rt(e, t, n);
|
|
1238
|
+
function rn(e, t) {
|
|
1225
1239
|
if (!e && !t?.length) return;
|
|
1226
1240
|
let n = new Set(t?.map((e) => rt(e, !1)));
|
|
1227
1241
|
return (t) => {
|
|
1228
|
-
let r =
|
|
1242
|
+
let r = Qt(t, !1);
|
|
1229
1243
|
return n.has(r) || !!e?.(r);
|
|
1230
1244
|
};
|
|
1231
1245
|
}
|
|
1232
|
-
function
|
|
1246
|
+
function an(e, t) {
|
|
1233
1247
|
if ("hour" in e) return e;
|
|
1234
|
-
let n = t && "hour" in t ? new
|
|
1235
|
-
return
|
|
1248
|
+
let n = t && "hour" in t ? new vt(t.hour, t.minute) : new vt();
|
|
1249
|
+
return St(e, n);
|
|
1236
1250
|
}
|
|
1237
|
-
function
|
|
1251
|
+
function on(e, t) {
|
|
1238
1252
|
let [n = 0, r = 0] = t.split(":").map(Number);
|
|
1239
|
-
return
|
|
1253
|
+
return St(xt(e), new vt(n, r));
|
|
1240
1254
|
}
|
|
1241
|
-
var
|
|
1255
|
+
var sn = {
|
|
1242
1256
|
year: 2e3,
|
|
1243
1257
|
month: 1,
|
|
1244
1258
|
day: 1
|
|
1245
1259
|
};
|
|
1246
|
-
function
|
|
1260
|
+
function cn(e) {
|
|
1247
1261
|
let [t = 0, n = 0, r = 0] = e.split(":").map(Number);
|
|
1248
|
-
return new
|
|
1262
|
+
return new gt(sn.year, sn.month, sn.day, t, n, r);
|
|
1249
1263
|
}
|
|
1250
|
-
var
|
|
1264
|
+
var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e ? `${ln(e.hour)}:${ln(e.minute)}${t ? `:${ln(e.second)}` : ""}` : null, dn = (e, t, n, r = !1) => Qe(e, t, n, r), fn = ["id", "aria-hidden"], pn = ["onClick"], mn = /* @__PURE__ */ T({
|
|
1251
1265
|
__name: "DatePickerTimes",
|
|
1252
1266
|
props: {
|
|
1253
1267
|
count: {},
|
|
@@ -1260,54 +1274,60 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
1260
1274
|
},
|
|
1261
1275
|
emits: ["time"],
|
|
1262
1276
|
setup(e, { emit: r }) {
|
|
1263
|
-
let i = n(), a = e, o = r, s = t("datePicker",
|
|
1277
|
+
let i = n(), a = e, o = r, s = t("datePicker", Te), c = s(), l = s({ size: "sm" }), u = re(), d = G("root");
|
|
1278
|
+
Zt(() => d.value);
|
|
1279
|
+
let f = _(() => a.count > 1), p = [i.dateRange.start, i.dateRange.end], m = _(() => Array.from({ length: a.count }, (e, t) => t)), g = _(() => new _t(a.locale, {
|
|
1264
1280
|
hour: "2-digit",
|
|
1265
1281
|
minute: "2-digit"
|
|
1266
|
-
})),
|
|
1267
|
-
function
|
|
1268
|
-
let n =
|
|
1269
|
-
return n ?
|
|
1282
|
+
})), v = (e) => e?.toString().slice(0, 10);
|
|
1283
|
+
function S(e, t) {
|
|
1284
|
+
let n = v(e) === v(a.dates[t]) ? un(e) : null;
|
|
1285
|
+
return n ? cn(n) : void 0;
|
|
1270
1286
|
}
|
|
1271
|
-
let
|
|
1272
|
-
min:
|
|
1273
|
-
max:
|
|
1287
|
+
let C = _(() => m.value.map((e) => [cn(a.timeOf(e))])), T = _(() => m.value.map((e) => ({
|
|
1288
|
+
min: S(a.min, e),
|
|
1289
|
+
max: S(a.max, e)
|
|
1274
1290
|
})));
|
|
1275
|
-
function
|
|
1276
|
-
let n =
|
|
1291
|
+
function E(e, t) {
|
|
1292
|
+
let n = un(t[0]);
|
|
1277
1293
|
n && n !== a.timeOf(e) && o("time", e, n);
|
|
1278
1294
|
}
|
|
1279
|
-
return (t, n) => (F(), b("div", k({
|
|
1295
|
+
return (t, n) => (F(), b("div", k({
|
|
1296
|
+
ref_key: "root",
|
|
1297
|
+
ref: d,
|
|
1298
|
+
class: W(c).timeSection()
|
|
1299
|
+
}, f.value ? {
|
|
1280
1300
|
role: "group",
|
|
1281
1301
|
"aria-labelledby": `${W(u)}h`
|
|
1282
1302
|
} : {}), [
|
|
1283
1303
|
x("span", {
|
|
1284
1304
|
id: `${W(u)}h`,
|
|
1285
1305
|
class: j(W(c).timeHeading()),
|
|
1286
|
-
"aria-hidden":
|
|
1287
|
-
}, U(W(i).calendar.time), 11,
|
|
1288
|
-
(F(!0), b(h, null, z(
|
|
1306
|
+
"aria-hidden": f.value ? void 0 : "true"
|
|
1307
|
+
}, U(W(i).calendar.time), 11, fn),
|
|
1308
|
+
(F(!0), b(h, null, z(m.value, (t) => (F(), b("div", {
|
|
1289
1309
|
key: t,
|
|
1290
1310
|
class: j(W(c).timeField())
|
|
1291
|
-
}, [
|
|
1311
|
+
}, [f.value ? (F(), b("span", {
|
|
1292
1312
|
key: 0,
|
|
1293
1313
|
class: j(W(c).timeFieldLabel()),
|
|
1294
1314
|
"aria-hidden": "true"
|
|
1295
|
-
}, U(
|
|
1315
|
+
}, U(p[t]), 3)) : y("", !0), x("div", { class: j(W(l).control()) }, [w(W(mt).Root, {
|
|
1296
1316
|
class: j(W(l).dateInput()),
|
|
1297
|
-
"model-value":
|
|
1317
|
+
"model-value": C.value[t],
|
|
1298
1318
|
granularity: "minute",
|
|
1299
|
-
formatter:
|
|
1300
|
-
min:
|
|
1301
|
-
max:
|
|
1319
|
+
formatter: g.value,
|
|
1320
|
+
min: T.value[t].min,
|
|
1321
|
+
max: T.value[t].max,
|
|
1302
1322
|
locale: e.locale,
|
|
1303
1323
|
"should-force-leading-zeros": "",
|
|
1304
1324
|
translations: W(i).dateInput,
|
|
1305
|
-
onValueChange: (e) =>
|
|
1325
|
+
onValueChange: (e) => E(t, e.value)
|
|
1306
1326
|
}, {
|
|
1307
|
-
default: J(() => [w(W(
|
|
1308
|
-
default: J(() => [w(
|
|
1327
|
+
default: J(() => [w(W(mt).Control, { class: j(W(l).dateControl()) }, {
|
|
1328
|
+
default: J(() => [w(Xt, {
|
|
1309
1329
|
index: 0,
|
|
1310
|
-
label:
|
|
1330
|
+
label: f.value ? p[t] : W(i).calendar.time,
|
|
1311
1331
|
describedby: e.zone?.describedby,
|
|
1312
1332
|
size: "sm"
|
|
1313
1333
|
}, null, 8, ["label", "describedby"])]),
|
|
@@ -1334,16 +1354,16 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
1334
1354
|
type: "button",
|
|
1335
1355
|
class: j(W(c).buttonBarButton({ class: W(c).timeDone() })),
|
|
1336
1356
|
onClick: (t) => e.setOpen(!1)
|
|
1337
|
-
}, U(W(i).calendar.done), 11,
|
|
1357
|
+
}, U(W(i).calendar.done), 11, pn)]),
|
|
1338
1358
|
_: 1
|
|
1339
1359
|
})
|
|
1340
1360
|
], 16));
|
|
1341
1361
|
}
|
|
1342
|
-
}),
|
|
1362
|
+
}), hn = ["id", "data-placeholder"], gn = ["name", "value"], _n = ["id"], vn = [
|
|
1343
1363
|
"id",
|
|
1344
1364
|
"data-hidden",
|
|
1345
1365
|
"onClick"
|
|
1346
|
-
],
|
|
1366
|
+
], yn = ["id"], bn = /* @__PURE__ */ T({
|
|
1347
1367
|
__name: "DatePickerBase",
|
|
1348
1368
|
props: {
|
|
1349
1369
|
mode: {},
|
|
@@ -1382,41 +1402,60 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
1382
1402
|
},
|
|
1383
1403
|
emits: ["change"],
|
|
1384
1404
|
setup(e, { emit: r }) {
|
|
1385
|
-
let i = n(), a = e, o = t("datePicker",
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
})
|
|
1391
|
-
|
|
1392
|
-
|
|
1405
|
+
let i = n(), a = e, o = t("datePicker", Te, () => a.classes), s = r, c = _(() => o({ size: a.size })), l = re(), u = G("root");
|
|
1406
|
+
Zt(() => u.value?.$el);
|
|
1407
|
+
let d = te(null), f = [], p = (e, t) => e.length === t.length && e.every((e, n) => e.toString() === t[n]?.toString());
|
|
1408
|
+
q(() => a.dates, (e) => {
|
|
1409
|
+
d.value && !p(e, f) && (d.value = null);
|
|
1410
|
+
});
|
|
1411
|
+
function m(e) {
|
|
1412
|
+
d.value = null, s("change", e);
|
|
1413
|
+
}
|
|
1414
|
+
function g(e) {
|
|
1415
|
+
let t = We(e);
|
|
1416
|
+
if (t >= 0) {
|
|
1417
|
+
if (a.dates.length <= t) return;
|
|
1418
|
+
d.value = d.value ?? a.dates, f = a.dates.slice(0, t), s("change", f);
|
|
1419
|
+
} else d.value && m(d.value);
|
|
1420
|
+
}
|
|
1421
|
+
let C = (e) => {
|
|
1422
|
+
let t = e.currentTarget;
|
|
1423
|
+
setTimeout(() => g(t));
|
|
1424
|
+
}, T = ut(), D = _(() => ({
|
|
1425
|
+
disabled: a.disabled ?? T?.value.disabled,
|
|
1426
|
+
readOnly: a.readOnly ?? T?.value.readOnly,
|
|
1427
|
+
invalid: a.invalid ?? T?.value.invalid,
|
|
1428
|
+
required: a.required ?? T?.value.required
|
|
1429
|
+
})), O = a.mode === "range", A = a.mode === "multiple", ee = O ? "range" : "single", I = O ? [0, 1] : [0], L = [i.dateRange.start, i.dateRange.end], V = _(() => {
|
|
1430
|
+
let e = a.ownId, t = T?.value ? { label: (e) => O ? `${T.value.ids.label} ${l}r${e}` : T.value.ids.label } : {}, n = e ? { segmentGroup: (t) => t === 0 ? e : void 0 } : {};
|
|
1431
|
+
return T?.value || e ? {
|
|
1393
1432
|
...t,
|
|
1394
1433
|
...n
|
|
1395
1434
|
} : void 0;
|
|
1396
|
-
}),
|
|
1435
|
+
}), H = (e) => T?.value ? void 0 : O ? [a.label, L[e]].filter(Boolean).join(", ") : a.label, ne = O ? {
|
|
1397
1436
|
...i.datePicker,
|
|
1398
1437
|
clearTrigger: i.dateRange.clearTrigger
|
|
1399
|
-
} : i.datePicker,
|
|
1438
|
+
} : i.datePicker, ie = _(() => a.period ? new _t(a.locale, a.period === "month" ? {
|
|
1400
1439
|
month: "2-digit",
|
|
1401
1440
|
year: "numeric"
|
|
1402
|
-
} : { year: "numeric" }) : void 0),
|
|
1441
|
+
} : { year: "numeric" }) : void 0), K = _(() => a.firstDayOfWeek ?? Ne(a.locale).firstDay), Y = _(() => {
|
|
1403
1442
|
if (!a.showTimeZone || !a.timeZone) return;
|
|
1404
|
-
let e = a.dates[0], t = e ?
|
|
1443
|
+
let e = a.dates[0], t = e ? st(e.toString().slice(0, 16), a.timeZone) : /* @__PURE__ */ new Date();
|
|
1405
1444
|
return {
|
|
1406
1445
|
short: $e(a.timeZone, a.locale, t),
|
|
1407
1446
|
long: i.calendar.timeZone(et(a.timeZone, a.locale, t))
|
|
1408
1447
|
};
|
|
1409
|
-
}),
|
|
1448
|
+
}), ae = _(() => [T?.value.ariaDescribedby, Y.value ? `${l}tz` : void 0].filter(Boolean).join(" ") || void 0), se = (e) => I.every((t) => e.getSegments({ index: t }).every((e) => e.type === "literal" || e.isPlaceholder)), ce = (e) => !!a.placeholder && se(e) && !e.focused, le = (e) => a.placeholder && se(e) ? [ae.value, `${l}ph`].filter(Boolean).join(" ") : ae.value, ue = _(() => {
|
|
1410
1449
|
if (!a.dates.length) return a.placeholder ?? i.calendar.noDates;
|
|
1411
1450
|
if (a.dates.length > 3) return Ge(i.calendar.datesSelected, a.dates.length, a.locale);
|
|
1412
|
-
let e = new
|
|
1451
|
+
let e = new _t(a.locale, {
|
|
1413
1452
|
day: "2-digit",
|
|
1414
1453
|
month: "2-digit",
|
|
1415
1454
|
year: "numeric",
|
|
1416
1455
|
timeZone: "UTC"
|
|
1417
1456
|
});
|
|
1418
1457
|
return a.dates.map((t) => e.format(t.toDate("UTC"))).join(", ");
|
|
1419
|
-
}),
|
|
1458
|
+
}), de = _(() => ({
|
|
1420
1459
|
presets: a.presets,
|
|
1421
1460
|
showWeekNumbers: a.showWeekNumbers,
|
|
1422
1461
|
numberOfMonths: a.numberOfMonths,
|
|
@@ -1427,54 +1466,56 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
1427
1466
|
allowDeselect: a.allowDeselect,
|
|
1428
1467
|
timeZone: a.timeZone,
|
|
1429
1468
|
responsive: a.responsive
|
|
1430
|
-
})),
|
|
1469
|
+
})), fe = _(() => a.withTime && !!a.timeInPopup && !A && !a.period), X = R([]);
|
|
1431
1470
|
q(() => a.dates, (e) => e.forEach((e, t) => {
|
|
1432
|
-
let n =
|
|
1433
|
-
n && (
|
|
1471
|
+
let n = un(e);
|
|
1472
|
+
n && (X.value[t] = n);
|
|
1434
1473
|
}), { immediate: !0 });
|
|
1435
|
-
let
|
|
1436
|
-
function
|
|
1437
|
-
if (!a.withTime) return
|
|
1438
|
-
if (
|
|
1439
|
-
|
|
1474
|
+
let pe = (e) => X.value[e] ?? (O && e === 1 ? "23:59" : "00:00");
|
|
1475
|
+
function me(e) {
|
|
1476
|
+
if (!a.withTime) return m(e);
|
|
1477
|
+
if (A) return m(e.map((e, t) => an(e, a.dates[t])));
|
|
1478
|
+
m(e.map((e, t) => on(e, pe(t))));
|
|
1440
1479
|
}
|
|
1441
|
-
function
|
|
1442
|
-
|
|
1480
|
+
function he(e, t) {
|
|
1481
|
+
X.value[e] = t;
|
|
1443
1482
|
let n = a.dates[e];
|
|
1444
1483
|
if (!n) return;
|
|
1445
1484
|
let r = [...a.dates];
|
|
1446
|
-
r[e] =
|
|
1485
|
+
r[e] = on(n, t), m(r);
|
|
1447
1486
|
}
|
|
1448
|
-
let
|
|
1449
|
-
short:
|
|
1487
|
+
let ge = _(() => Y.value ? {
|
|
1488
|
+
short: Y.value.short,
|
|
1450
1489
|
describedby: `${l}tz`
|
|
1451
|
-
} : void 0),
|
|
1452
|
-
function
|
|
1453
|
-
|
|
1490
|
+
} : void 0), ve = null;
|
|
1491
|
+
function ye(e) {
|
|
1492
|
+
ve = e ? {
|
|
1454
1493
|
dates: a.dates,
|
|
1455
|
-
times: [...
|
|
1494
|
+
times: [...X.value]
|
|
1456
1495
|
} : null;
|
|
1457
1496
|
}
|
|
1458
|
-
function
|
|
1459
|
-
e.key === "Escape" &&
|
|
1497
|
+
function be(e) {
|
|
1498
|
+
e.key === "Escape" && fe.value && ve && (X.value = [...ve.times], m(ve.dates));
|
|
1460
1499
|
}
|
|
1461
|
-
P(() => document.addEventListener("keydown",
|
|
1462
|
-
function
|
|
1500
|
+
P(() => document.addEventListener("keydown", be, !0)), N(() => document.removeEventListener("keydown", be, !0));
|
|
1501
|
+
function xe(e, t) {
|
|
1463
1502
|
if (a.period) return !1;
|
|
1464
|
-
if (
|
|
1465
|
-
let t =
|
|
1466
|
-
if (t) return
|
|
1503
|
+
if (O) {
|
|
1504
|
+
let t = Ue(e, a.locale, a.withTime);
|
|
1505
|
+
if (t) return m([$t(t.start, a.withTime), $t(t.end, a.withTime)]), !0;
|
|
1467
1506
|
}
|
|
1468
|
-
let n =
|
|
1507
|
+
let n = He(e, a.locale, a.withTime);
|
|
1469
1508
|
if (!n) return !1;
|
|
1470
1509
|
let r = [...a.dates];
|
|
1471
|
-
return r[t] =
|
|
1510
|
+
return r[t] = $t(n, a.withTime), m(r.filter(Boolean)), !0;
|
|
1472
1511
|
}
|
|
1473
|
-
let
|
|
1512
|
+
let Se = {
|
|
1474
1513
|
placement: "bottom-start",
|
|
1475
1514
|
gutter: 4
|
|
1476
1515
|
};
|
|
1477
1516
|
return (t, n) => (F(), v(W($).Root, k({
|
|
1517
|
+
ref_key: "root",
|
|
1518
|
+
ref: u,
|
|
1478
1519
|
class: c.value.base({ class: e.className }),
|
|
1479
1520
|
"model-value": e.dates,
|
|
1480
1521
|
"selection-mode": e.mode,
|
|
@@ -1482,70 +1523,72 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
1482
1523
|
max: e.max,
|
|
1483
1524
|
"is-date-unavailable": e.isDateUnavailable,
|
|
1484
1525
|
locale: e.locale,
|
|
1485
|
-
"start-of-week":
|
|
1526
|
+
"start-of-week": K.value,
|
|
1486
1527
|
"min-view": e.period,
|
|
1487
1528
|
"default-view": e.period,
|
|
1488
1529
|
"num-of-months": e.numberOfMonths,
|
|
1489
1530
|
"time-zone": e.timeZone
|
|
1490
|
-
},
|
|
1491
|
-
positioning:
|
|
1492
|
-
translations: W(
|
|
1493
|
-
"close-on-select": !
|
|
1531
|
+
}, D.value, {
|
|
1532
|
+
positioning: Se,
|
|
1533
|
+
translations: W(ne),
|
|
1534
|
+
"close-on-select": !fe.value,
|
|
1494
1535
|
"lazy-mount": "",
|
|
1495
1536
|
"unmount-on-exit": "",
|
|
1496
|
-
onValueChange: n[1] ||= (e) =>
|
|
1497
|
-
onOpenChange: n[2] ||= (e) =>
|
|
1537
|
+
onValueChange: n[1] ||= (e) => me(e.value),
|
|
1538
|
+
onOpenChange: n[2] ||= (e) => ye(e.open)
|
|
1498
1539
|
}), {
|
|
1499
1540
|
default: J(() => [w(W($).Control, { class: j(c.value.control()) }, {
|
|
1500
1541
|
default: J(() => [
|
|
1501
|
-
|
|
1542
|
+
A ? (F(), b(h, { key: 0 }, [x("span", {
|
|
1502
1543
|
id: `${W(l)}v`,
|
|
1503
1544
|
class: j(c.value.multiValue()),
|
|
1504
1545
|
"data-placeholder": e.dates.length ? void 0 : ""
|
|
1505
|
-
}, U(
|
|
1546
|
+
}, U(ue.value), 11, hn), e.name ? (F(!0), b(h, { key: 0 }, z(e.dates, (t, n) => (F(), b("input", {
|
|
1506
1547
|
key: t.toString(),
|
|
1507
1548
|
type: "hidden",
|
|
1508
1549
|
name: `${e.name}[${n}]`,
|
|
1509
1550
|
value: t.toString()
|
|
1510
|
-
}, null, 8,
|
|
1551
|
+
}, null, 8, gn))), 128)) : y("", !0)], 64)) : (F(), v(W(mt).Root, k({
|
|
1511
1552
|
key: 1,
|
|
1512
1553
|
class: c.value.dateInput(),
|
|
1513
|
-
ids:
|
|
1514
|
-
"model-value": e.dates,
|
|
1515
|
-
"selection-mode": W(
|
|
1554
|
+
ids: V.value,
|
|
1555
|
+
"model-value": d.value ?? e.dates,
|
|
1556
|
+
"selection-mode": W(ee),
|
|
1516
1557
|
granularity: e.withTime ? "minute" : "day",
|
|
1517
|
-
formatter:
|
|
1558
|
+
formatter: ie.value,
|
|
1518
1559
|
min: e.min,
|
|
1519
1560
|
max: e.max,
|
|
1520
1561
|
"is-date-unavailable": e.isDateUnavailable,
|
|
1521
1562
|
locale: e.locale,
|
|
1522
1563
|
"should-force-leading-zeros": "",
|
|
1523
1564
|
name: e.name
|
|
1524
|
-
},
|
|
1565
|
+
}, D.value, {
|
|
1525
1566
|
translations: W(i).dateInput,
|
|
1526
|
-
onValueChange: n[0] ||= (e) =>
|
|
1567
|
+
onValueChange: n[0] ||= (e) => m(e.value),
|
|
1568
|
+
onKeyup: C,
|
|
1569
|
+
onFocusout: C
|
|
1527
1570
|
}), {
|
|
1528
|
-
default: J(() => [w(W(
|
|
1529
|
-
default: J((t) => [w(W(
|
|
1571
|
+
default: J(() => [w(W(mt).Context, null, {
|
|
1572
|
+
default: J((t) => [w(W(mt).Control, {
|
|
1530
1573
|
class: j(c.value.dateControl()),
|
|
1531
|
-
"data-placeholder-shown":
|
|
1574
|
+
"data-placeholder-shown": ce(t) || void 0
|
|
1532
1575
|
}, {
|
|
1533
|
-
default: J(() => [(F(!0), b(h, null, z(W(
|
|
1576
|
+
default: J(() => [(F(!0), b(h, null, z(W(I), (n) => (F(), b(h, { key: n }, [
|
|
1534
1577
|
n === 1 ? (F(), b("span", {
|
|
1535
1578
|
key: 0,
|
|
1536
1579
|
class: j(c.value.rangeSeparator()),
|
|
1537
1580
|
"aria-hidden": "true"
|
|
1538
1581
|
}, "–", 2)) : y("", !0),
|
|
1539
|
-
|
|
1582
|
+
O && W(T) ? (F(), b("span", {
|
|
1540
1583
|
key: 1,
|
|
1541
1584
|
id: `${W(l)}r${n}`,
|
|
1542
1585
|
class: j(c.value.rangeLabel())
|
|
1543
|
-
}, U(
|
|
1544
|
-
w(
|
|
1586
|
+
}, U(L[n]), 11, _n)) : y("", !0),
|
|
1587
|
+
w(Xt, {
|
|
1545
1588
|
index: n,
|
|
1546
|
-
label:
|
|
1547
|
-
describedby:
|
|
1548
|
-
paste: e.period ? void 0 :
|
|
1589
|
+
label: H(n),
|
|
1590
|
+
describedby: le(t),
|
|
1591
|
+
paste: e.period ? void 0 : xe,
|
|
1549
1592
|
size: e.size
|
|
1550
1593
|
}, null, 8, [
|
|
1551
1594
|
"index",
|
|
@@ -1556,15 +1599,15 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
1556
1599
|
])
|
|
1557
1600
|
], 64))), 128))]),
|
|
1558
1601
|
_: 2
|
|
1559
|
-
}, 1032, ["class", "data-placeholder-shown"]), e.placeholder &&
|
|
1602
|
+
}, 1032, ["class", "data-placeholder-shown"]), e.placeholder && se(t) ? (F(), b("span", {
|
|
1560
1603
|
key: 0,
|
|
1561
1604
|
id: `${W(l)}ph`,
|
|
1562
1605
|
class: j(c.value.placeholder()),
|
|
1563
|
-
"data-hidden":
|
|
1606
|
+
"data-hidden": ce(t) ? void 0 : "",
|
|
1564
1607
|
onClick: (e) => t.focus()
|
|
1565
|
-
}, U(e.placeholder), 11,
|
|
1608
|
+
}, U(e.placeholder), 11, vn)) : y("", !0)]),
|
|
1566
1609
|
_: 1
|
|
1567
|
-
}), (F(!0), b(h, null, z(W(
|
|
1610
|
+
}), (F(!0), b(h, null, z(W(I), (e) => (F(), v(W(mt).HiddenInput, {
|
|
1568
1611
|
key: e,
|
|
1569
1612
|
index: e
|
|
1570
1613
|
}, null, 8, ["index"]))), 128))]),
|
|
@@ -1583,24 +1626,24 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
1583
1626
|
"name",
|
|
1584
1627
|
"translations"
|
|
1585
1628
|
])),
|
|
1586
|
-
|
|
1629
|
+
Y.value ? (F(), b(h, { key: 2 }, [x("span", {
|
|
1587
1630
|
class: j(c.value.timeZone()),
|
|
1588
1631
|
"aria-hidden": "true"
|
|
1589
|
-
}, U(
|
|
1632
|
+
}, U(Y.value.short), 3), x("span", {
|
|
1590
1633
|
id: `${W(l)}tz`,
|
|
1591
1634
|
hidden: ""
|
|
1592
|
-
}, U(
|
|
1635
|
+
}, U(Y.value.long), 9, yn)], 64)) : y("", !0),
|
|
1593
1636
|
e.hideClear ? y("", !0) : (F(), v(W($).ClearTrigger, {
|
|
1594
1637
|
key: 3,
|
|
1595
1638
|
class: j(c.value.clear())
|
|
1596
1639
|
}, {
|
|
1597
|
-
default: J(() => [w(W(
|
|
1640
|
+
default: J(() => [w(W(_e), {
|
|
1598
1641
|
class: j(c.value.clearIcon()),
|
|
1599
1642
|
"aria-hidden": "true"
|
|
1600
1643
|
}, null, 8, ["class"])]),
|
|
1601
1644
|
_: 1
|
|
1602
1645
|
}, 8, ["class"])),
|
|
1603
|
-
w(W($).Trigger, k({ class: c.value.trigger() },
|
|
1646
|
+
w(W($).Trigger, k({ class: c.value.trigger() }, A ? { "aria-describedby": `${W(l)}v` } : {}), {
|
|
1604
1647
|
default: J(() => [w(W(oe), {
|
|
1605
1648
|
class: j(c.value.triggerIcon()),
|
|
1606
1649
|
"aria-hidden": "true"
|
|
@@ -1609,21 +1652,21 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
1609
1652
|
}, 16, ["class"])
|
|
1610
1653
|
]),
|
|
1611
1654
|
_: 1
|
|
1612
|
-
}, 8, ["class"]), w(
|
|
1655
|
+
}, 8, ["class"]), w(Yt, M(E(de.value)), S({ _: 2 }, [t.$slots.day ? {
|
|
1613
1656
|
name: "day",
|
|
1614
1657
|
fn: J((e) => [B(t.$slots, "day", M(E(e)))]),
|
|
1615
1658
|
key: "0"
|
|
1616
|
-
} : void 0,
|
|
1659
|
+
} : void 0, fe.value ? {
|
|
1617
1660
|
name: "default",
|
|
1618
|
-
fn: J(() => [w(
|
|
1619
|
-
count: W(
|
|
1620
|
-
"time-of":
|
|
1661
|
+
fn: J(() => [w(mn, {
|
|
1662
|
+
count: W(I).length,
|
|
1663
|
+
"time-of": pe,
|
|
1621
1664
|
dates: e.dates,
|
|
1622
1665
|
min: e.min,
|
|
1623
1666
|
max: e.max,
|
|
1624
1667
|
locale: e.locale,
|
|
1625
|
-
zone:
|
|
1626
|
-
onTime:
|
|
1668
|
+
zone: ge.value,
|
|
1669
|
+
onTime: he
|
|
1627
1670
|
}, null, 8, [
|
|
1628
1671
|
"count",
|
|
1629
1672
|
"dates",
|
|
@@ -1652,7 +1695,7 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
1652
1695
|
"close-on-select"
|
|
1653
1696
|
]));
|
|
1654
1697
|
}
|
|
1655
|
-
}),
|
|
1698
|
+
}), xn = /* @__PURE__ */ T({
|
|
1656
1699
|
inheritAttrs: !1,
|
|
1657
1700
|
__name: "DatePicker",
|
|
1658
1701
|
props: {
|
|
@@ -1717,18 +1760,18 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
1717
1760
|
setup(t, { emit: n }) {
|
|
1718
1761
|
let r = e(), a = t, o = _(() => a.locale ?? r.value.locale), s = n, c = ne(), u = _(() => i(c)), d = _(() => u.value.rest["aria-label"]);
|
|
1719
1762
|
l("DatePicker", () => a.id);
|
|
1720
|
-
let f = R(a.defaultValue ?? null), p = _(() => a.modelValue === void 0 ? f.value : a.modelValue), m = _(() => Array.isArray(p.value) ? p.value : p.value ? [p.value] : []), h = _(() => m.value.map((e) =>
|
|
1763
|
+
let f = R(a.defaultValue ?? null), p = _(() => a.modelValue === void 0 ? f.value : a.modelValue), m = _(() => Array.isArray(p.value) ? p.value : p.value ? [p.value] : []), h = _(() => m.value.map((e) => en(e, a.withTime, a.timeZone)).filter((e) => !!e)), g = (e) => e.map((e) => nn(e, a.withTime, a.timeZone)).join();
|
|
1721
1764
|
function y(e) {
|
|
1722
|
-
let t = e.map((e) =>
|
|
1765
|
+
let t = e.map((e) => tn(e, a.withTime, a.valueType, a.timeZone));
|
|
1723
1766
|
if (g(t) === g(m.value)) return;
|
|
1724
1767
|
let n = a.selectionMode === "multiple" ? t : t[0] ?? null;
|
|
1725
1768
|
f.value = n, s("update:modelValue", n);
|
|
1726
1769
|
}
|
|
1727
1770
|
let b = _(() => ({
|
|
1728
|
-
min:
|
|
1729
|
-
max:
|
|
1730
|
-
})), x = _(() =>
|
|
1731
|
-
return (e, n) => (F(), v(
|
|
1771
|
+
min: en(a.min, a.withTime, a.timeZone, "min"),
|
|
1772
|
+
max: en(a.max, a.withTime, a.timeZone, "max")
|
|
1773
|
+
})), x = _(() => rn(a.isDateUnavailable, a.excludeDates));
|
|
1774
|
+
return (e, n) => (F(), v(bn, k({
|
|
1732
1775
|
mode: t.selectionMode,
|
|
1733
1776
|
dates: h.value,
|
|
1734
1777
|
"with-time": t.withTime,
|
|
@@ -1767,14 +1810,14 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
1767
1810
|
key: "0"
|
|
1768
1811
|
} : void 0]), 1040, /* @__PURE__ */ "mode.dates.with-time.time-in-popup.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(".")));
|
|
1769
1812
|
}
|
|
1770
|
-
}),
|
|
1813
|
+
}), Sn = ["aria-label", "onClick"], Cn = ["data-placeholder-shown"], wn = ["data-placeholder-shown"], Tn = ["aria-label", "onClick"], En = [
|
|
1771
1814
|
"aria-controls",
|
|
1772
1815
|
"aria-activedescendant",
|
|
1773
1816
|
"aria-label",
|
|
1774
1817
|
"placeholder",
|
|
1775
1818
|
"value",
|
|
1776
1819
|
"onInput"
|
|
1777
|
-
],
|
|
1820
|
+
], Dn = ["aria-checked"], On = ["data-state"], kn = /* @__PURE__ */ T({
|
|
1778
1821
|
inheritAttrs: !1,
|
|
1779
1822
|
__name: "MultiSelect",
|
|
1780
1823
|
props: {
|
|
@@ -1830,7 +1873,7 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
1830
1873
|
"loadMore"
|
|
1831
1874
|
],
|
|
1832
1875
|
setup(e, { emit: r }) {
|
|
1833
|
-
let a = n(), o = e, s = t("multiSelect",
|
|
1876
|
+
let a = n(), o = e, s = t("multiSelect", Ie, () => o.classes), c = r, l = ne(), d = _(() => i(l)), T = _(() => o.display === "chips"), D = _(() => s({
|
|
1834
1877
|
size: o.size,
|
|
1835
1878
|
clearable: o.clearable && !T.value
|
|
1836
1879
|
})), O = a.select, ee = _(() => ({
|
|
@@ -1865,13 +1908,13 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
1865
1908
|
}
|
|
1866
1909
|
let de = _(() => o.max !== void 0 && G.value.length >= o.max), fe = _(() => {
|
|
1867
1910
|
let e = new Set(K.value);
|
|
1868
|
-
return
|
|
1911
|
+
return pt({
|
|
1869
1912
|
items: te.value,
|
|
1870
1913
|
itemToString: (e) => e.label,
|
|
1871
1914
|
itemToValue: (e) => e.key,
|
|
1872
1915
|
isItemDisabled: (t) => t.disabled || de.value && !e.has(t.key)
|
|
1873
1916
|
});
|
|
1874
|
-
}),
|
|
1917
|
+
}), X = _(() => o.filter || o.selectAll), pe = re(), ge = _(() => o.emptyText ?? I.emptyText.value ?? (N.value ? a.common.noResults : a.common.empty)), ve = _(() => ({
|
|
1875
1918
|
item: D.value.item(),
|
|
1876
1919
|
itemText: D.value.itemText(),
|
|
1877
1920
|
icon: D.value.icon(),
|
|
@@ -1886,48 +1929,48 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
1886
1929
|
empty: D.value.empty(),
|
|
1887
1930
|
check: D.value.check(),
|
|
1888
1931
|
checkIcon: D.value.checkIcon()
|
|
1889
|
-
})),
|
|
1890
|
-
function
|
|
1932
|
+
})), be = _(() => 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), xe = _(() => V.value.filter((e) => !e.disabled)), Ce = _(() => ye(G.value, xe.value)), we = R("");
|
|
1933
|
+
function Te(e) {
|
|
1891
1934
|
let t = o.max !== void 0 && e.length >= o.max && G.value.length < o.max;
|
|
1892
|
-
Y(e), t && (
|
|
1935
|
+
Y(e), t && (we.value = O.maxReached(o.max));
|
|
1893
1936
|
}
|
|
1894
|
-
function
|
|
1937
|
+
function Ee(e, t) {
|
|
1895
1938
|
let n = o.max !== void 0 && e.length >= o.max && G.value.length < o.max;
|
|
1896
|
-
ae(e, t), n && (
|
|
1939
|
+
ae(e, t), n && (we.value = O.maxReached(o.max));
|
|
1897
1940
|
}
|
|
1898
|
-
function
|
|
1899
|
-
Y(G.value.filter((t) => t.key !== e.key)),
|
|
1941
|
+
function De(e) {
|
|
1942
|
+
Y(G.value.filter((t) => t.key !== e.key)), we.value = O.removed(e.label);
|
|
1900
1943
|
}
|
|
1901
|
-
function
|
|
1944
|
+
function Oe(e) {
|
|
1902
1945
|
let t = G.value.at(-1);
|
|
1903
|
-
t && (T.value && e.key === "Backspace" ? (e.preventDefault(),
|
|
1946
|
+
t && (T.value && e.key === "Backspace" ? (e.preventDefault(), De(t)) : o.clearable && (e.key === "Delete" || e.key === "Backspace") && (e.preventDefault(), Y([])));
|
|
1904
1947
|
}
|
|
1905
|
-
function
|
|
1948
|
+
function ke(e) {
|
|
1906
1949
|
Y([]), e.focus();
|
|
1907
1950
|
}
|
|
1908
|
-
function
|
|
1951
|
+
function Ae(e, t) {
|
|
1909
1952
|
N.value = t.target.value, c("filterChange", N.value), o.dataSource && I.search(N.value), !(o.manualFilter || o.dataSource) && A(() => {
|
|
1910
1953
|
let t = te.value.find((e) => !e.disabled);
|
|
1911
1954
|
t && e.setHighlightValue(t.key);
|
|
1912
1955
|
});
|
|
1913
1956
|
}
|
|
1914
|
-
function
|
|
1957
|
+
function je(e) {
|
|
1915
1958
|
(e.key === " " || e.key === "Home" || e.key === "End") && e.stopPropagation();
|
|
1916
1959
|
}
|
|
1917
|
-
function
|
|
1960
|
+
function Me(e) {
|
|
1918
1961
|
(e.key === " " || e.key === "Enter") && e.stopPropagation();
|
|
1919
1962
|
}
|
|
1920
|
-
function
|
|
1963
|
+
function Ne(e) {
|
|
1921
1964
|
e && I.open(), !e && N.value && (N.value = "", c("filterChange", ""), o.dataSource && I.search(""));
|
|
1922
1965
|
}
|
|
1923
|
-
let
|
|
1966
|
+
let Pe = (e) => e.highlightedItem ? e.getItemProps({ item: e.highlightedItem }).id : void 0, Fe = {
|
|
1924
1967
|
sameWidth: !0,
|
|
1925
1968
|
gutter: 4
|
|
1926
|
-
},
|
|
1927
|
-
label:
|
|
1928
|
-
hiddenSelect:
|
|
1969
|
+
}, Le = ut(), Re = _(() => Se(o.id, "trigger", {
|
|
1970
|
+
label: Le?.value.ids.label,
|
|
1971
|
+
hiddenSelect: Le?.value.ids.control
|
|
1929
1972
|
}));
|
|
1930
|
-
return (t, n) => (F(), v(W(
|
|
1973
|
+
return (t, n) => (F(), v(W(Q).Root, k({
|
|
1931
1974
|
class: D.value.base({ class: d.value.className }),
|
|
1932
1975
|
style: d.value.style,
|
|
1933
1976
|
collection: fe.value,
|
|
@@ -1938,17 +1981,17 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
1938
1981
|
invalid: e.invalid,
|
|
1939
1982
|
required: e.required,
|
|
1940
1983
|
name: e.name,
|
|
1941
|
-
positioning:
|
|
1942
|
-
composite: !
|
|
1943
|
-
},
|
|
1984
|
+
positioning: Fe,
|
|
1985
|
+
composite: !X.value
|
|
1986
|
+
}, Re.value, {
|
|
1944
1987
|
"lazy-mount": "",
|
|
1945
1988
|
"unmount-on-exit": "",
|
|
1946
|
-
onValueChange: n[1] ||= (e) =>
|
|
1947
|
-
onOpenChange: n[2] ||= (e) =>
|
|
1989
|
+
onValueChange: n[1] ||= (e) => Ee(e.value, e.items),
|
|
1990
|
+
onOpenChange: n[2] ||= (e) => Ne(e.open)
|
|
1948
1991
|
}), {
|
|
1949
1992
|
default: J(() => [
|
|
1950
|
-
w(W(
|
|
1951
|
-
default: J((n) => [w(W(
|
|
1993
|
+
w(W(Q).Context, null, {
|
|
1994
|
+
default: J((n) => [w(W(Q).Control, M(E(T.value || e.clearable ? { class: T.value ? D.value.chipsControl() : D.value.control() } : {})), {
|
|
1952
1995
|
default: J(() => [
|
|
1953
1996
|
T.value ? (F(!0), b(h, { key: 0 }, z(W(G), (e) => (F(), b("span", {
|
|
1954
1997
|
key: e.key,
|
|
@@ -1959,15 +2002,15 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
1959
2002
|
tabindex: "-1",
|
|
1960
2003
|
class: j(D.value.chipRemove()),
|
|
1961
2004
|
"aria-label": W(O).removeItem(e.label),
|
|
1962
|
-
onClick: (t) =>
|
|
1963
|
-
}, [w(W(
|
|
2005
|
+
onClick: (t) => De(e)
|
|
2006
|
+
}, [w(W(_e), {
|
|
1964
2007
|
class: j(D.value.chipRemoveIcon()),
|
|
1965
2008
|
"aria-hidden": "true"
|
|
1966
|
-
}, null, 8, ["class"])], 10,
|
|
1967
|
-
w(W(
|
|
2009
|
+
}, null, 8, ["class"])], 10, Sn))], 2))), 128)) : y("", !0),
|
|
2010
|
+
w(W(Q).Trigger, k(d.value.rest, {
|
|
1968
2011
|
class: T.value ? D.value.chipsTrigger() : D.value.trigger(),
|
|
1969
2012
|
"aria-busy": e.loading || void 0,
|
|
1970
|
-
onKeydown:
|
|
2013
|
+
onKeydown: Oe
|
|
1971
2014
|
}), {
|
|
1972
2015
|
default: J(() => [T.value ? (F(), b("span", {
|
|
1973
2016
|
key: 0,
|
|
@@ -1976,12 +2019,12 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
1976
2019
|
}, [W(G).length ? (F(), b("span", {
|
|
1977
2020
|
key: 0,
|
|
1978
2021
|
class: j(D.value.hiddenValue())
|
|
1979
|
-
}, U(W(G).map((e) => e.label).join(", ")), 3)) : (F(), b(h, { key: 1 }, [C(U(e.placeholder ?? W(a).common.placeholder), 1)], 64))], 10,
|
|
2022
|
+
}, U(W(G).map((e) => e.label).join(", ")), 3)) : (F(), b(h, { key: 1 }, [C(U(e.placeholder ?? W(a).common.placeholder), 1)], 64))], 10, Cn)) : (F(), b("span", {
|
|
1980
2023
|
key: 1,
|
|
1981
2024
|
class: j(D.value.value()),
|
|
1982
2025
|
"data-placeholder-shown": !W(G).length || void 0
|
|
1983
|
-
}, [t.$slots.value && W(G).length ? B(t.$slots, "value", { items: W(G).map((e) => e.item) }, void 0, void 0, 0) : (F(), b(h, { key: 1 }, [C(U(
|
|
1984
|
-
default: J(() => [e.loading ? (F(), v(W(
|
|
2026
|
+
}, [t.$slots.value && W(G).length ? B(t.$slots, "value", { items: W(G).map((e) => e.item) }, void 0, void 0, 0) : (F(), b(h, { key: 1 }, [C(U(be.value), 1)], 64))], 10, wn)), w(W(Q).Indicator, { class: j(D.value.indicator()) }, {
|
|
2027
|
+
default: J(() => [e.loading ? (F(), v(W(me), {
|
|
1985
2028
|
key: 0,
|
|
1986
2029
|
class: j(D.value.spinner()),
|
|
1987
2030
|
"aria-hidden": "true"
|
|
@@ -2000,11 +2043,11 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2000
2043
|
tabindex: "-1",
|
|
2001
2044
|
class: j(T.value ? D.value.chipsClear() : D.value.clear()),
|
|
2002
2045
|
"aria-label": W(O).clear,
|
|
2003
|
-
onClick: (e) =>
|
|
2004
|
-
}, [w(W(
|
|
2046
|
+
onClick: (e) => ke(n)
|
|
2047
|
+
}, [w(W(_e), {
|
|
2005
2048
|
class: j(D.value.clearIcon()),
|
|
2006
2049
|
"aria-hidden": "true"
|
|
2007
|
-
}, null, 8, ["class"])], 10,
|
|
2050
|
+
}, null, 8, ["class"])], 10, Tn)) : y("", !0)
|
|
2008
2051
|
]),
|
|
2009
2052
|
_: 2
|
|
2010
2053
|
}, 1040)]),
|
|
@@ -2014,14 +2057,14 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2014
2057
|
key: 0,
|
|
2015
2058
|
role: "status",
|
|
2016
2059
|
class: j(D.value.status())
|
|
2017
|
-
}, U(
|
|
2018
|
-
(F(), v(g, { to: "body" }, [w(W(
|
|
2019
|
-
default: J(() => [w(W(
|
|
2060
|
+
}, U(we.value || W(I).announcement.value), 3)) : y("", !0),
|
|
2061
|
+
(F(), v(g, { to: "body" }, [w(W(Q).Positioner, null, {
|
|
2062
|
+
default: J(() => [w(W(Q).Content, {
|
|
2020
2063
|
class: j(D.value.content()),
|
|
2021
2064
|
"aria-busy": oe.value || void 0,
|
|
2022
|
-
"aria-label":
|
|
2065
|
+
"aria-label": X.value ? d.value.rest["aria-label"] : void 0
|
|
2023
2066
|
}, {
|
|
2024
|
-
default: J(() => [
|
|
2067
|
+
default: J(() => [X.value ? (F(), b(h, { key: 0 }, [x("div", { class: j(D.value.header()) }, [w(W(Q).Context, null, {
|
|
2025
2068
|
default: J((t) => [e.filter ? (F(), b("input", {
|
|
2026
2069
|
key: 0,
|
|
2027
2070
|
type: "text",
|
|
@@ -2030,48 +2073,48 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2030
2073
|
"aria-autocomplete": "list",
|
|
2031
2074
|
"aria-expanded": "true",
|
|
2032
2075
|
"data-autofocus": "",
|
|
2033
|
-
"aria-controls": W(
|
|
2034
|
-
"aria-activedescendant":
|
|
2076
|
+
"aria-controls": W(pe),
|
|
2077
|
+
"aria-activedescendant": Pe(t),
|
|
2035
2078
|
"aria-label": W(O).filter,
|
|
2036
2079
|
placeholder: W(a).combobox.search,
|
|
2037
2080
|
value: N.value,
|
|
2038
2081
|
class: j(D.value.search()),
|
|
2039
|
-
onInput: (e) =>
|
|
2040
|
-
onKeydown:
|
|
2041
|
-
}, null, 42,
|
|
2082
|
+
onInput: (e) => Ae(t, e),
|
|
2083
|
+
onKeydown: je
|
|
2084
|
+
}, null, 42, En)) : y("", !0)]),
|
|
2042
2085
|
_: 1
|
|
2043
|
-
}), e.selectAll &&
|
|
2086
|
+
}), e.selectAll && xe.value.length ? (F(), b("button", {
|
|
2044
2087
|
key: 0,
|
|
2045
2088
|
type: "button",
|
|
2046
2089
|
role: "checkbox",
|
|
2047
|
-
"aria-checked":
|
|
2090
|
+
"aria-checked": Ce.value,
|
|
2048
2091
|
class: j(D.value.selectAll()),
|
|
2049
|
-
onClick: n[0] ||= (t) =>
|
|
2050
|
-
onKeydown:
|
|
2092
|
+
onClick: n[0] ||= (t) => Te(W(at)(W(G), W(V), e.max)),
|
|
2093
|
+
onKeydown: Me
|
|
2051
2094
|
}, [x("span", {
|
|
2052
2095
|
class: j(D.value.check()),
|
|
2053
|
-
"data-state":
|
|
2096
|
+
"data-state": Ce.value === "mixed" ? "indeterminate" : Ce.value ? "checked" : "unchecked",
|
|
2054
2097
|
"aria-hidden": "true"
|
|
2055
|
-
}, [
|
|
2098
|
+
}, [Ce.value === "mixed" ? (F(), v(W(he), {
|
|
2056
2099
|
key: 0,
|
|
2057
2100
|
class: j(D.value.checkIcon())
|
|
2058
|
-
}, null, 8, ["class"])) :
|
|
2101
|
+
}, null, 8, ["class"])) : Ce.value ? (F(), v(W(se), {
|
|
2059
2102
|
key: 1,
|
|
2060
2103
|
class: j(D.value.checkIcon())
|
|
2061
|
-
}, null, 8, ["class"])) : y("", !0)], 10,
|
|
2062
|
-
id: W(
|
|
2104
|
+
}, null, 8, ["class"])) : y("", !0)], 10, On), C(" " + U(W(O).selectAll), 1)], 42, Dn)) : y("", !0)], 2), w(W(Q).List, {
|
|
2105
|
+
id: W(pe),
|
|
2063
2106
|
class: j(D.value.list()),
|
|
2064
2107
|
"data-autofocus": e.filter ? void 0 : ""
|
|
2065
2108
|
}, {
|
|
2066
2109
|
default: J(() => [w(u, {
|
|
2067
|
-
parts: W(
|
|
2110
|
+
parts: W(Q),
|
|
2068
2111
|
groups: W(H),
|
|
2069
|
-
classes:
|
|
2112
|
+
classes: ve.value,
|
|
2070
2113
|
checkbox: e.checkboxes,
|
|
2071
2114
|
loading: oe.value,
|
|
2072
2115
|
"loading-text": e.loadingText ?? W(a).common.loading,
|
|
2073
2116
|
"has-more": le.value,
|
|
2074
|
-
"empty-text":
|
|
2117
|
+
"empty-text": ge.value,
|
|
2075
2118
|
onLoadMore: ue
|
|
2076
2119
|
}, S({ _: 2 }, [t.$slots.item ? {
|
|
2077
2120
|
name: "item",
|
|
@@ -2094,14 +2137,14 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2094
2137
|
"data-autofocus"
|
|
2095
2138
|
])], 64)) : (F(), v(u, {
|
|
2096
2139
|
key: 1,
|
|
2097
|
-
parts: W(
|
|
2140
|
+
parts: W(Q),
|
|
2098
2141
|
groups: W(H),
|
|
2099
|
-
classes:
|
|
2142
|
+
classes: ve.value,
|
|
2100
2143
|
checkbox: e.checkboxes,
|
|
2101
2144
|
loading: oe.value,
|
|
2102
2145
|
"loading-text": e.loadingText ?? W(a).common.loading,
|
|
2103
2146
|
"has-more": le.value,
|
|
2104
|
-
"empty-text":
|
|
2147
|
+
"empty-text": ge.value,
|
|
2105
2148
|
onLoadMore: ue
|
|
2106
2149
|
}, S({ _: 2 }, [t.$slots.item ? {
|
|
2107
2150
|
name: "item",
|
|
@@ -2125,7 +2168,7 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2125
2168
|
])]),
|
|
2126
2169
|
_: 3
|
|
2127
2170
|
})])),
|
|
2128
|
-
w(W(
|
|
2171
|
+
w(W(Q).HiddenSelect)
|
|
2129
2172
|
]),
|
|
2130
2173
|
_: 3
|
|
2131
2174
|
}, 16, [
|
|
@@ -2140,7 +2183,7 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2140
2183
|
"composite"
|
|
2141
2184
|
]));
|
|
2142
2185
|
}
|
|
2143
|
-
}),
|
|
2186
|
+
}), An = ["id"], jn = ["id"], Mn = /* @__PURE__ */ T({
|
|
2144
2187
|
inheritAttrs: !1,
|
|
2145
2188
|
__name: "NumberInput",
|
|
2146
2189
|
props: {
|
|
@@ -2149,7 +2192,7 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2149
2192
|
min: {},
|
|
2150
2193
|
max: {},
|
|
2151
2194
|
step: {},
|
|
2152
|
-
formatOptions: { default: () =>
|
|
2195
|
+
formatOptions: { default: () => Ee },
|
|
2153
2196
|
locale: {},
|
|
2154
2197
|
size: {},
|
|
2155
2198
|
invalid: {
|
|
@@ -2200,7 +2243,7 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2200
2243
|
},
|
|
2201
2244
|
emits: ["update:modelValue"],
|
|
2202
2245
|
setup(r, { expose: c, emit: l }) {
|
|
2203
|
-
let u = e(), d = n(), f = r, p = t("numberInput",
|
|
2246
|
+
let u = e(), d = n(), f = r, p = t("numberInput", Le, () => f.classes), m = _(() => f.locale ?? u.value.locale), g = l, x = ne(), S = _(() => i(x)), C = ut(), T = a(), E = _(() => !!f.invalid || !!C?.value.invalid), D = _(() => !E.value && (!!f.success || T.value.success)), O = _(() => p({
|
|
2204
2247
|
size: f.size,
|
|
2205
2248
|
stacked: f.stepperLayout === "stacked",
|
|
2206
2249
|
success: D.value
|
|
@@ -2211,7 +2254,7 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2211
2254
|
...f.formatOptions,
|
|
2212
2255
|
minimumFractionDigits: f.decimals,
|
|
2213
2256
|
maximumFractionDigits: f.decimals
|
|
2214
|
-
}), M = _(() => f.allowNegative ? f.min : Math.max(f.min ?? 0, 0)), N, P = f.modelValue ?? f.defaultValue ?? null, I = tt(f.modelValue ?? f.defaultValue, m.value, A.value), L = R(I ?? ""), z =
|
|
2257
|
+
}), M = _(() => f.allowNegative ? f.min : Math.max(f.min ?? 0, 0)), N, P = f.modelValue ?? f.defaultValue ?? null, I = tt(f.modelValue ?? f.defaultValue, m.value, A.value), L = R(I ?? ""), z = wt(_(() => ({
|
|
2215
2258
|
defaultValue: I,
|
|
2216
2259
|
min: M.value,
|
|
2217
2260
|
max: f.max,
|
|
@@ -2226,7 +2269,7 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2226
2269
|
clampValueOnBlur: f.clampBehavior !== "none",
|
|
2227
2270
|
allowOverflow: f.clampBehavior !== "strict",
|
|
2228
2271
|
translations: d.numberInput,
|
|
2229
|
-
...
|
|
2272
|
+
...Se(f.id, "input", {
|
|
2230
2273
|
label: C?.value.ids.label,
|
|
2231
2274
|
input: C?.value.ids.control
|
|
2232
2275
|
}),
|
|
@@ -2244,14 +2287,14 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2244
2287
|
});
|
|
2245
2288
|
function B(e) {
|
|
2246
2289
|
if (e.ctrlKey || e.metaKey || e.altKey) return;
|
|
2247
|
-
let t = e.currentTarget, n = t.selectionStart ?? t.value.length, r = t.value.slice(0, n) + t.value.slice(t.selectionEnd ?? n), i =
|
|
2290
|
+
let t = e.currentTarget, n = t.selectionStart ?? t.value.length, r = t.value.slice(0, n) + t.value.slice(t.selectionEnd ?? n), i = Re(e.key, r, m.value, {
|
|
2248
2291
|
allowDecimal: f.allowDecimal && f.decimals !== 0,
|
|
2249
2292
|
allowNegative: f.allowNegative
|
|
2250
2293
|
});
|
|
2251
|
-
i && (e.preventDefault(), i !== "block" &&
|
|
2294
|
+
i && (e.preventDefault(), i !== "block" && Ae(t, i.insert));
|
|
2252
2295
|
}
|
|
2253
2296
|
function V(e) {
|
|
2254
|
-
let t = e.currentTarget, n = (t.selectionStart ?? 0) === 0 && (t.selectionEnd ?? 0) === t.value.length, r =
|
|
2297
|
+
let t = e.currentTarget, n = (t.selectionStart ?? 0) === 0 && (t.selectionEnd ?? 0) === t.value.length, r = Ve(e.clipboardData?.getData("text") ?? "", m.value);
|
|
2255
2298
|
n && r !== null && (e.preventDefault(), Je(t, tt(r, m.value, A.value)));
|
|
2256
2299
|
}
|
|
2257
2300
|
function H(e) {
|
|
@@ -2269,12 +2312,12 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2269
2312
|
let e = ae.value?.$el.querySelector("input");
|
|
2270
2313
|
e && (Je(e), e.focus());
|
|
2271
2314
|
}
|
|
2272
|
-
return c(o(() => ae.value?.$el.querySelector("input"))), (e, t) => (F(), v(W(
|
|
2315
|
+
return c(o(() => ae.value?.$el.querySelector("input"))), (e, t) => (F(), v(W(Ct).RootProvider, {
|
|
2273
2316
|
value: W(z),
|
|
2274
2317
|
class: j(O.value.base({ class: S.value.className })),
|
|
2275
2318
|
style: ee(S.value.style)
|
|
2276
2319
|
}, {
|
|
2277
|
-
default: J(() => [w(W(
|
|
2320
|
+
default: J(() => [w(W(Ct).Control, {
|
|
2278
2321
|
ref_key: "control",
|
|
2279
2322
|
ref: ae,
|
|
2280
2323
|
class: j(O.value.control())
|
|
@@ -2284,8 +2327,8 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2284
2327
|
key: 0,
|
|
2285
2328
|
id: W(te),
|
|
2286
2329
|
class: j(O.value.prefix())
|
|
2287
|
-
}, U(r.prefix), 11,
|
|
2288
|
-
w(W(
|
|
2330
|
+
}, U(r.prefix), 11, An)) : y("", !0),
|
|
2331
|
+
w(W(Ct).Input, k({
|
|
2289
2332
|
...S.value.rest,
|
|
2290
2333
|
...K.value ? { "aria-describedby": K.value } : {}
|
|
2291
2334
|
}, {
|
|
@@ -2324,30 +2367,30 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2324
2367
|
key: 2,
|
|
2325
2368
|
id: W(ie),
|
|
2326
2369
|
class: j(O.value.suffix())
|
|
2327
|
-
}, U(r.suffix), 11,
|
|
2370
|
+
}, U(r.suffix), 11, jn)) : y("", !0),
|
|
2328
2371
|
r.stepper && r.stepperLayout === "stacked" ? (F(), b("div", {
|
|
2329
2372
|
key: 3,
|
|
2330
2373
|
class: j(O.value.stepper())
|
|
2331
|
-
}, [w(W(
|
|
2374
|
+
}, [w(W(Ct).IncrementTrigger, { class: j(O.value.button()) }, {
|
|
2332
2375
|
default: J(() => [w(W(de), {
|
|
2333
2376
|
class: j(O.value.buttonIcon()),
|
|
2334
2377
|
"aria-hidden": "true"
|
|
2335
2378
|
}, null, 8, ["class"])]),
|
|
2336
2379
|
_: 1
|
|
2337
|
-
}, 8, ["class"]), w(W(
|
|
2380
|
+
}, 8, ["class"]), w(W(Ct).DecrementTrigger, { class: j(O.value.button()) }, {
|
|
2338
2381
|
default: J(() => [w(W(ce), {
|
|
2339
2382
|
class: j(O.value.buttonIcon()),
|
|
2340
2383
|
"aria-hidden": "true"
|
|
2341
2384
|
}, null, 8, ["class"])]),
|
|
2342
2385
|
_: 1
|
|
2343
|
-
}, 8, ["class"])], 2)) : r.stepper ? (F(), b(h, { key: 4 }, [w(W(
|
|
2344
|
-
default: J(() => [w(W(
|
|
2386
|
+
}, 8, ["class"])], 2)) : r.stepper ? (F(), b(h, { key: 4 }, [w(W(Ct).DecrementTrigger, { class: j(O.value.button()) }, {
|
|
2387
|
+
default: J(() => [w(W(he), {
|
|
2345
2388
|
class: j(O.value.buttonIcon()),
|
|
2346
2389
|
"aria-hidden": "true"
|
|
2347
2390
|
}, null, 8, ["class"])]),
|
|
2348
2391
|
_: 1
|
|
2349
|
-
}, 8, ["class"]), w(W(
|
|
2350
|
-
default: J(() => [w(W(
|
|
2392
|
+
}, 8, ["class"]), w(W(Ct).IncrementTrigger, { class: j(O.value.button()) }, {
|
|
2393
|
+
default: J(() => [w(W(ge), {
|
|
2351
2394
|
class: j(O.value.buttonIcon()),
|
|
2352
2395
|
"aria-hidden": "true"
|
|
2353
2396
|
}, null, 8, ["class"])]),
|
|
@@ -2363,7 +2406,7 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2363
2406
|
"style"
|
|
2364
2407
|
]));
|
|
2365
2408
|
}
|
|
2366
|
-
}),
|
|
2409
|
+
}), Nn = /* @__PURE__ */ T({
|
|
2367
2410
|
inheritAttrs: !1,
|
|
2368
2411
|
__name: "DateRangePicker",
|
|
2369
2412
|
props: {
|
|
@@ -2427,17 +2470,17 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2427
2470
|
setup(t, { emit: r }) {
|
|
2428
2471
|
let a = e(), o = n(), s = t, c = _(() => s.locale ?? a.value.locale), u = r, d = ne(), f = _(() => i(d)), p = _(() => f.value.rest["aria-label"]);
|
|
2429
2472
|
l("DateRangePicker", () => s.id);
|
|
2430
|
-
let m = R(s.defaultValue ?? null), h = _(() => s.modelValue === void 0 ? m.value : s.modelValue), g = (e) => [e?.start, e?.end].map((e) =>
|
|
2473
|
+
let m = R(s.defaultValue ?? null), h = _(() => s.modelValue === void 0 ? m.value : s.modelValue), g = (e) => [e?.start, e?.end].map((e) => en(e, s.withTime, s.timeZone)).filter((e) => !!e), y = _(() => g(h.value)), b = (e) => nn(e, s.withTime, s.timeZone);
|
|
2431
2474
|
function x(e) {
|
|
2432
2475
|
let t = e.length ? {
|
|
2433
|
-
start:
|
|
2434
|
-
end:
|
|
2476
|
+
start: tn(e[0], s.withTime, s.valueType, s.timeZone),
|
|
2477
|
+
end: tn(e[1], s.withTime, s.valueType, s.timeZone)
|
|
2435
2478
|
} : null;
|
|
2436
2479
|
(b(t?.start) !== b(h.value?.start) || b(t?.end) !== b(h.value?.end)) && (m.value = t, u("update:modelValue", t));
|
|
2437
2480
|
}
|
|
2438
2481
|
let C = _(() => ({
|
|
2439
|
-
min:
|
|
2440
|
-
max:
|
|
2482
|
+
min: en(s.min, s.withTime, s.timeZone, "min"),
|
|
2483
|
+
max: en(s.max, s.withTime, s.timeZone, "max")
|
|
2441
2484
|
})), w = _(() => s.presets?.map((e) => {
|
|
2442
2485
|
if (typeof e != "string") return {
|
|
2443
2486
|
label: e.label,
|
|
@@ -2446,10 +2489,10 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2446
2489
|
let t = Ke(e);
|
|
2447
2490
|
return t ? {
|
|
2448
2491
|
label: o.rangePresets[e] ?? e,
|
|
2449
|
-
value: [
|
|
2492
|
+
value: [$t(t.start, s.withTime), $t(t.end, s.withTime, "max")]
|
|
2450
2493
|
} : e;
|
|
2451
|
-
})), T = _(() =>
|
|
2452
|
-
return (e, n) => (F(), v(
|
|
2494
|
+
})), T = _(() => rn(s.isDateUnavailable, s.excludeDates));
|
|
2495
|
+
return (e, n) => (F(), v(bn, k({
|
|
2453
2496
|
mode: "range",
|
|
2454
2497
|
dates: y.value,
|
|
2455
2498
|
"with-time": t.withTime,
|
|
@@ -2488,7 +2531,7 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2488
2531
|
key: "0"
|
|
2489
2532
|
} : void 0]), 1040, /* @__PURE__ */ "dates.with-time.time-in-popup.is-date-unavailable.locale.disabled.read-only.invalid.required.name.presets.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.time-zone.show-time-zone.responsive".split(".")));
|
|
2490
2533
|
}
|
|
2491
|
-
}),
|
|
2534
|
+
}), Pn = /* @__PURE__ */ T({
|
|
2492
2535
|
__name: "ContextMenu",
|
|
2493
2536
|
props: {
|
|
2494
2537
|
items: {},
|
|
@@ -2512,21 +2555,21 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2512
2555
|
"before-open"
|
|
2513
2556
|
],
|
|
2514
2557
|
setup(e, { expose: n, emit: r }) {
|
|
2515
|
-
let i = e, a = t("menu",
|
|
2516
|
-
|
|
2558
|
+
let i = e, a = t("menu", Pe, () => i.classes), o = r, s = a();
|
|
2559
|
+
Et({
|
|
2517
2560
|
items: () => i.items,
|
|
2518
2561
|
linkAs: () => i.linkAs,
|
|
2519
2562
|
onCheckedChange: (e, t) => o("checked-change", e, t),
|
|
2520
2563
|
onValueChange: (e, t) => o("value-change", e, t)
|
|
2521
2564
|
});
|
|
2522
|
-
let c =
|
|
2565
|
+
let c = At({
|
|
2523
2566
|
open: () => i.open,
|
|
2524
2567
|
anchor: () => void 0,
|
|
2525
2568
|
onOpenChange: (e) => o("update:open", e),
|
|
2526
2569
|
restoreFocus: !0
|
|
2527
2570
|
});
|
|
2528
2571
|
n(c.handle);
|
|
2529
|
-
let l = G("content"), u =
|
|
2572
|
+
let l = G("content"), u = Ot({
|
|
2530
2573
|
open: () => c.isOpen.value,
|
|
2531
2574
|
close: c.handle.close,
|
|
2532
2575
|
content: () => l.value?.$el,
|
|
@@ -2534,18 +2577,18 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2534
2577
|
closeOnResize: () => i.closeOnResize,
|
|
2535
2578
|
closeOnBlur: () => i.closeOnBlur,
|
|
2536
2579
|
highlightFirst: () => i.highlightFirst
|
|
2537
|
-
}), d = null, f =
|
|
2580
|
+
}), d = null, f = we((e) => {
|
|
2538
2581
|
d && o("before-open", d, {
|
|
2539
2582
|
source: "pointer",
|
|
2540
2583
|
focused: null
|
|
2541
2584
|
}), c.handle.open(e);
|
|
2542
|
-
}), p =
|
|
2585
|
+
}), p = Ce();
|
|
2543
2586
|
function m(e) {
|
|
2544
2587
|
d = e.target, p.pointerdown(), f.down(e);
|
|
2545
2588
|
}
|
|
2546
2589
|
N(f.cancel);
|
|
2547
2590
|
let h = _(() => c.positioning({}));
|
|
2548
|
-
return (t, n) => (F(), v(W(
|
|
2591
|
+
return (t, n) => (F(), v(W(Z).Root, k({
|
|
2549
2592
|
open: W(c).isOpen.value,
|
|
2550
2593
|
positioning: h.value,
|
|
2551
2594
|
"anchor-point": W(c).anchorPoint.value
|
|
@@ -2555,7 +2598,7 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2555
2598
|
"onUpdate:open": n[6] ||= (e) => W(c).onOpenChange(e),
|
|
2556
2599
|
onSelect: n[7] ||= (e) => o("select", e.value)
|
|
2557
2600
|
}), {
|
|
2558
|
-
default: J(() => [w(W(
|
|
2601
|
+
default: J(() => [w(W(Z).ContextTrigger, {
|
|
2559
2602
|
"as-child": "",
|
|
2560
2603
|
onPointerdown: m,
|
|
2561
2604
|
onKeydown: n[0] ||= (e) => W(p).keydown(e),
|
|
@@ -2566,8 +2609,8 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2566
2609
|
}, {
|
|
2567
2610
|
default: J(() => [B(t.$slots, "default")]),
|
|
2568
2611
|
_: 3
|
|
2569
|
-
}), (F(), v(g, { to: "body" }, [w(W(
|
|
2570
|
-
default: J(() => [w(W(
|
|
2612
|
+
}), (F(), v(g, { to: "body" }, [w(W(Z).Positioner, null, {
|
|
2613
|
+
default: J(() => [w(W(Z).Content, k({
|
|
2571
2614
|
ref_key: "content",
|
|
2572
2615
|
ref: l,
|
|
2573
2616
|
class: W(s).content()
|
|
@@ -2575,7 +2618,7 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2575
2618
|
"aria-label": e.label,
|
|
2576
2619
|
"aria-labelledby": void 0
|
|
2577
2620
|
} : {}), {
|
|
2578
|
-
default: J(() => [w(
|
|
2621
|
+
default: J(() => [w(kt, {
|
|
2579
2622
|
entries: e.items,
|
|
2580
2623
|
onSelect: n[5] ||= (e) => o("select", e)
|
|
2581
2624
|
}, S({ _: 2 }, [t.$slots.item ? {
|
|
@@ -2594,7 +2637,7 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2594
2637
|
"anchor-point"
|
|
2595
2638
|
]));
|
|
2596
2639
|
}
|
|
2597
|
-
}),
|
|
2640
|
+
}), Fn = /* @__PURE__ */ T({
|
|
2598
2641
|
__name: "RecipesProvider",
|
|
2599
2642
|
props: { recipes: {} },
|
|
2600
2643
|
setup(e) {
|
|
@@ -2603,4 +2646,4 @@ var on = (e) => String(e).padStart(2, "0"), sn = (e, t = !1) => e && "hour" in e
|
|
|
2603
2646
|
}
|
|
2604
2647
|
});
|
|
2605
2648
|
//#endregion
|
|
2606
|
-
export {
|
|
2649
|
+
export { kt as C, At as S, Jt as _, kn as a, It as b, en as c, tn as d, un as f, Xt as g, Zt as h, Mn as i, cn as l, nn as m, Pn as n, xn as o, rn as p, Nn as r, bn as s, Fn as t, dn as u, Bt as v, Et as w, Pt as x, zt as y };
|