@well-insight/ui 0.1.3 → 0.1.5
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/CHANGELOG.md +17 -1
- package/README.md +7 -7
- package/README.zh-CN.md +7 -7
- package/dist/components/Accordion/index.d.ts +1 -1
- package/dist/components/AutoComplete/index.d.ts +1 -1
- package/dist/components/AutoComplete/types.d.ts +4 -4
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Avatar/types.d.ts +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Badge/types.d.ts +3 -3
- package/dist/components/BlockUI/index.d.ts +1 -1
- package/dist/components/Breadcrumb/index.d.ts +1 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/types.d.ts +1 -1
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/Carousel/index.d.ts +1 -1
- package/dist/components/CascadeSelect/index.d.ts +1 -1
- package/dist/components/CascadeSelect/types.d.ts +4 -4
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/Chip/index.d.ts +1 -1
- package/dist/components/Chip/types.d.ts +1 -1
- package/dist/components/CommandMenu/index.d.ts +1 -1
- package/dist/components/CommandMenu/types.d.ts +2 -2
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +8 -8
- package/dist/components/ConfigProvider/index.d.ts +2 -2
- package/dist/components/ConfigProvider/types.d.ts +1 -1
- package/dist/components/ConfirmDialog/index.d.ts +1 -1
- package/dist/components/ConfirmDialog/types.d.ts +2 -2
- package/dist/components/ConfirmPopup/index.d.ts +1 -1
- package/dist/components/ConfirmPopup/types.d.ts +2 -2
- package/dist/components/ContextMenu/index.d.ts +1 -1
- package/dist/components/ContextMenu/types.d.ts +2 -2
- package/dist/components/DataView/index.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts +1 -1
- package/dist/components/DatePicker/types.d.ts +4 -4
- package/dist/components/Dialog/index.d.ts +1 -1
- package/dist/components/Dialog/types.d.ts +2 -2
- package/dist/components/Divider/index.d.ts +1 -1
- package/dist/components/Dock/index.d.ts +1 -1
- package/dist/components/Drawer/index.d.ts +1 -1
- package/dist/components/Drawer/types.d.ts +2 -2
- package/dist/components/Dropdown/index.d.ts +1 -1
- package/dist/components/Dropdown/types.d.ts +2 -2
- package/dist/components/Fieldset/index.d.ts +1 -1
- package/dist/components/FileUpload/index.d.ts +1 -1
- package/dist/components/FloatLabel/index.d.ts +1 -1
- package/dist/components/Fluid/index.d.ts +1 -1
- package/dist/components/Form/context.d.ts +5 -5
- package/dist/components/Form/index.d.ts +4 -4
- package/dist/components/Form/types.d.ts +2 -2
- package/dist/components/Gallery/index.d.ts +1 -1
- package/dist/components/Icon/index.d.ts +1 -1
- package/dist/components/Icon/types.d.ts +2 -2
- package/dist/components/IconField/index.d.ts +1 -1
- package/dist/components/Inplace/index.d.ts +1 -1
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Input/types.d.ts +3 -3
- package/dist/components/InputColor/index.d.ts +1 -1
- package/dist/components/InputGroup/index.d.ts +2 -2
- package/dist/components/InputNumber/index.d.ts +1 -1
- package/dist/components/InputNumber/types.d.ts +2 -2
- package/dist/components/InputOtp/index.d.ts +1 -1
- package/dist/components/InputPassword/index.d.ts +1 -1
- package/dist/components/InputPassword/types.d.ts +4 -4
- package/dist/components/InputTags/index.d.ts +1 -1
- package/dist/components/Knob/index.d.ts +1 -1
- package/dist/components/Label/index.d.ts +1 -1
- package/dist/components/Listbox/index.d.ts +1 -1
- package/dist/components/MegaMenu/index.d.ts +1 -1
- package/dist/components/MegaMenu/types.d.ts +2 -2
- package/dist/components/Menu/index.d.ts +1 -1
- package/dist/components/Menu/types.d.ts +2 -2
- package/dist/components/Menubar/index.d.ts +1 -1
- package/dist/components/Menubar/types.d.ts +2 -2
- package/dist/components/Message/index.d.ts +2 -2
- package/dist/components/Message/types.d.ts +10 -10
- package/dist/components/MeterGroup/index.d.ts +1 -1
- package/dist/components/OrderList/index.d.ts +1 -1
- package/dist/components/Pagination/index.d.ts +1 -1
- package/dist/components/Panel/index.d.ts +1 -1
- package/dist/components/PickList/index.d.ts +1 -1
- package/dist/components/Popover/index.d.ts +1 -1
- package/dist/components/Popover/types.d.ts +2 -2
- package/dist/components/ProgressBar/index.d.ts +1 -1
- package/dist/components/ProgressSpinner/index.d.ts +1 -1
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Rating/index.d.ts +1 -1
- package/dist/components/ScrollTop/index.d.ts +1 -1
- package/dist/components/ScrollTop/types.d.ts +2 -2
- package/dist/components/Scrollbar/index.d.ts +1 -1
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Select/types.d.ts +4 -4
- package/dist/components/SelectButton/index.d.ts +1 -1
- package/dist/components/SelectButton/types.d.ts +2 -2
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/SpeedDial/index.d.ts +1 -1
- package/dist/components/SpeedDial/types.d.ts +2 -2
- package/dist/components/SplitButton/index.d.ts +1 -1
- package/dist/components/SplitButton/types.d.ts +2 -2
- package/dist/components/Splitter/index.d.ts +1 -1
- package/dist/components/Stepper/index.d.ts +1 -1
- package/dist/components/Switch/index.d.ts +1 -1
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Table/types.d.ts +2 -2
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/Tag/index.d.ts +1 -1
- package/dist/components/Tag/types.d.ts +3 -3
- package/dist/components/Terminal/index.d.ts +1 -1
- package/dist/components/Textarea/index.d.ts +1 -1
- package/dist/components/Textarea/types.d.ts +3 -3
- package/dist/components/TieredMenu/index.d.ts +1 -1
- package/dist/components/TieredMenu/types.d.ts +2 -2
- package/dist/components/Timeline/index.d.ts +1 -1
- package/dist/components/Timeline/types.d.ts +2 -2
- package/dist/components/Toast/index.d.ts +2 -2
- package/dist/components/Toast/types.d.ts +10 -10
- package/dist/components/ToggleButton/index.d.ts +1 -1
- package/dist/components/ToggleButton/types.d.ts +2 -2
- package/dist/components/Toolbar/index.d.ts +1 -1
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/types.d.ts +2 -2
- package/dist/components/Tree/context.d.ts +2 -2
- package/dist/components/Tree/index.d.ts +1 -1
- package/dist/components/TreeSelect/index.d.ts +1 -1
- package/dist/components/TreeSelect/types.d.ts +4 -4
- package/dist/components/TreeTable/index.d.ts +1 -1
- package/dist/components/VirtualScroller/index.d.ts +1 -1
- package/dist/index.d.ts +95 -95
- package/dist/index.js +664 -664
- package/dist/locale/en-US.d.ts +2 -2
- package/dist/locale/index.d.ts +4 -4
- package/dist/locale/types.d.ts +4 -4
- package/dist/locale/zh-CN.d.ts +2 -2
- package/dist/shared/Renderable.d.ts +4 -4
- package/dist/shared/config.d.ts +19 -19
- package/dist/shared/content.d.ts +5 -5
- package/dist/shared/overlay.d.ts +6 -6
- package/dist/shared/overlayHost.d.ts +2 -2
- package/dist/shared/types.d.ts +7 -7
- package/dist/styles.css +1 -1
- package/package.json +3 -7
package/dist/index.js
CHANGED
|
@@ -188,7 +188,7 @@ var oe = "well-insight-motion", se = [
|
|
|
188
188
|
"none"
|
|
189
189
|
];
|
|
190
190
|
function ce(e, t = document.documentElement) {
|
|
191
|
-
t.dataset.
|
|
191
|
+
t.dataset.wiMotion = e;
|
|
192
192
|
}
|
|
193
193
|
function le() {
|
|
194
194
|
return typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ? "reduced" : "full";
|
|
@@ -222,7 +222,7 @@ var fe = "well-insight-density", pe = [
|
|
|
222
222
|
"spacious"
|
|
223
223
|
];
|
|
224
224
|
function me(e, t = document.documentElement) {
|
|
225
|
-
t.dataset.
|
|
225
|
+
t.dataset.wiDensity = e;
|
|
226
226
|
}
|
|
227
227
|
function he() {
|
|
228
228
|
let e = k(ge());
|
|
@@ -272,7 +272,7 @@ function Se(e, t) {
|
|
|
272
272
|
}
|
|
273
273
|
//#endregion
|
|
274
274
|
//#region src/shared/config.ts
|
|
275
|
-
var Ce = Symbol("
|
|
275
|
+
var Ce = Symbol("wiConfig"), we = {
|
|
276
276
|
appendTo: "body",
|
|
277
277
|
zIndex: 1e3,
|
|
278
278
|
density: "comfortable",
|
|
@@ -310,7 +310,7 @@ function De(e, t) {
|
|
|
310
310
|
}
|
|
311
311
|
function Oe(e = {}) {
|
|
312
312
|
return { install(t) {
|
|
313
|
-
t.provide(Ce, e), t.config.globalProperties.$wd = e, xe(t._context), typeof document < "u" && (e.density && me(e.density), e.zIndex != null && document.documentElement.style.setProperty("--
|
|
313
|
+
t.provide(Ce, e), t.config.globalProperties.$wd = e, xe(t._context), typeof document < "u" && (e.density && me(e.density), e.zIndex != null && document.documentElement.style.setProperty("--wi-z-base", String(e.zIndex)));
|
|
314
314
|
} };
|
|
315
315
|
}
|
|
316
316
|
//#endregion
|
|
@@ -732,9 +732,9 @@ var Fe = ["aria-label", "aria-hidden"], Ie = {
|
|
|
732
732
|
let n = e, r = B(), i = o(() => ke(n.size)), a = o(() => {
|
|
733
733
|
if (!(!n.name || !Ne(n.name))) return Pe(n.name);
|
|
734
734
|
}), s = o(() => !!r.default), u = o(() => s.value || !!a.value), d = o(() => [
|
|
735
|
-
"
|
|
736
|
-
`
|
|
737
|
-
{ "
|
|
735
|
+
"wi-icon",
|
|
736
|
+
`wi-icon--${i.value}`,
|
|
737
|
+
{ "wi-icon--spin": a.value?.spin }
|
|
738
738
|
]);
|
|
739
739
|
return (n, r) => u.value ? (E(), l("span", {
|
|
740
740
|
key: 0,
|
|
@@ -777,7 +777,7 @@ var Fe = ["aria-label", "aria-hidden"], Ie = {
|
|
|
777
777
|
"aria-label"
|
|
778
778
|
], Ue = {
|
|
779
779
|
key: 1,
|
|
780
|
-
class: "
|
|
780
|
+
class: "wi-button__label"
|
|
781
781
|
}, We = /* @__PURE__ */ p({
|
|
782
782
|
__name: "Button",
|
|
783
783
|
props: {
|
|
@@ -843,22 +843,22 @@ var Fe = ["aria-label", "aria-hidden"], Ie = {
|
|
|
843
843
|
emits: ["click"],
|
|
844
844
|
setup(n, { expose: i, emit: a }) {
|
|
845
845
|
let f = n, p = a, m = Y(), h = B(), g = k(null), _ = o(() => !!h.default?.().some((e) => I(e))), v = o(() => _.value || !!f.label?.trim()), b = o(() => f.outlined || f.variant === "outlined"), x = o(() => f.text || f.variant === "text"), S = o(() => f.link || f.variant === "link"), C = o(() => f.fluid || f.block), w = o(() => ke(f.size ?? m.value.size)), T = o(() => f.iconOnly || !v.value && !!(f.icon || h.icon || f.loading)), D = o(() => f.severity ?? "primary"), O = o(() => typeof f.icon == "string" ? f.icon : void 0), A = o(() => typeof f.icon == "string" || !f.icon ? void 0 : f.icon), j = o(() => [
|
|
846
|
-
"
|
|
847
|
-
`
|
|
848
|
-
`
|
|
849
|
-
`
|
|
846
|
+
"wi-button",
|
|
847
|
+
`wi-button--${D.value}`,
|
|
848
|
+
`wi-button--${w.value}`,
|
|
849
|
+
`wi-button--icon-${f.iconPos}`,
|
|
850
850
|
{
|
|
851
|
-
"
|
|
852
|
-
"
|
|
853
|
-
"
|
|
854
|
-
"
|
|
855
|
-
"
|
|
856
|
-
"
|
|
857
|
-
"
|
|
858
|
-
"
|
|
859
|
-
"
|
|
851
|
+
"wi-button--raised": f.raised,
|
|
852
|
+
"wi-button--rounded": f.rounded,
|
|
853
|
+
"wi-button--text": x.value,
|
|
854
|
+
"wi-button--outlined": b.value,
|
|
855
|
+
"wi-button--link": S.value,
|
|
856
|
+
"wi-button--plain": f.plain,
|
|
857
|
+
"wi-button--fluid": C.value,
|
|
858
|
+
"wi-button--loading": f.loading,
|
|
859
|
+
"wi-button--icon-only": T.value
|
|
860
860
|
}
|
|
861
|
-
]), F = o(() => ["
|
|
861
|
+
]), F = o(() => ["wi-button__badge", f.badgeSeverity ? `wi-button__badge--${f.badgeSeverity}` : "wi-button__badge--contrast"]);
|
|
862
862
|
function I(n) {
|
|
863
863
|
if (n == null || typeof n == "boolean") return !1;
|
|
864
864
|
if (typeof n == "string" || typeof n == "number") return String(n).trim().length > 0;
|
|
@@ -891,9 +891,9 @@ var Fe = ["aria-label", "aria-hidden"], Ie = {
|
|
|
891
891
|
}, [
|
|
892
892
|
n.loading || n.icon || e.$slots.icon ? (E(), l("span", {
|
|
893
893
|
key: 0,
|
|
894
|
-
class: y(["
|
|
894
|
+
class: y(["wi-button__icon", { "wi-button__icon--loading": n.loading }]),
|
|
895
895
|
"aria-hidden": "true"
|
|
896
|
-
}, [n.loading ? M(e.$slots, "loadingicon", {}, () => [t[0] ||= u("span", { class: "
|
|
896
|
+
}, [n.loading ? M(e.$slots, "loadingicon", {}, () => [t[0] ||= u("span", { class: "wi-button__spinner" }, null, -1)], void 0, 0) : M(e.$slots, "icon", { class: y("wi-button__icon-slot") }, () => [O.value ? (E(), s(X, {
|
|
897
897
|
key: 0,
|
|
898
898
|
name: O.value,
|
|
899
899
|
size: "sm"
|
|
@@ -907,16 +907,16 @@ var Fe = ["aria-label", "aria-hidden"], Ie = {
|
|
|
907
907
|
}
|
|
908
908
|
}), Ge = ["aria-label"], Ke = {
|
|
909
909
|
key: 0,
|
|
910
|
-
class: "
|
|
910
|
+
class: "wi-card__header"
|
|
911
911
|
}, qe = {
|
|
912
912
|
key: 0,
|
|
913
|
-
class: "
|
|
913
|
+
class: "wi-card__title"
|
|
914
914
|
}, Je = {
|
|
915
915
|
key: 1,
|
|
916
|
-
class: "
|
|
917
|
-
}, Ye = { class: "
|
|
916
|
+
class: "wi-card__subtitle"
|
|
917
|
+
}, Ye = { class: "wi-card__body" }, Xe = {
|
|
918
918
|
key: 1,
|
|
919
|
-
class: "
|
|
919
|
+
class: "wi-card__footer"
|
|
920
920
|
}, Ze = /* @__PURE__ */ p({
|
|
921
921
|
__name: "Card",
|
|
922
922
|
props: {
|
|
@@ -926,7 +926,7 @@ var Fe = ["aria-label", "aria-hidden"], Ie = {
|
|
|
926
926
|
},
|
|
927
927
|
setup(e) {
|
|
928
928
|
return (t, n) => (E(), l("section", {
|
|
929
|
-
class: "
|
|
929
|
+
class: "wi-card",
|
|
930
930
|
"aria-label": e.ariaLabel ?? e.title
|
|
931
931
|
}, [
|
|
932
932
|
t.$slots.header || e.title || e.subtitle ? (E(), l("div", Ke, [M(t.$slots, "header", {}, () => [e.title ? (E(), l("h2", qe, P(e.title), 1)) : c("", !0), e.subtitle ? (E(), l("p", Je, P(e.subtitle), 1)) : c("", !0)])])) : c("", !0),
|
|
@@ -1152,13 +1152,13 @@ function ct(e) {
|
|
|
1152
1152
|
//#region src/components/Dialog/Dialog.vue?vue&type=script&setup=true&lang.ts
|
|
1153
1153
|
var lt = ["aria-modal", "aria-label"], ut = {
|
|
1154
1154
|
key: 0,
|
|
1155
|
-
class: "
|
|
1155
|
+
class: "wi-dialog__header"
|
|
1156
1156
|
}, dt = { key: 0 }, ft = {
|
|
1157
1157
|
key: 0,
|
|
1158
|
-
class: "
|
|
1159
|
-
}, pt = ["aria-label"], mt = ["aria-label"], ht = { class: "
|
|
1158
|
+
class: "wi-dialog__actions"
|
|
1159
|
+
}, pt = ["aria-label"], mt = ["aria-label"], ht = { class: "wi-dialog__body" }, gt = {
|
|
1160
1160
|
key: 1,
|
|
1161
|
-
class: "
|
|
1161
|
+
class: "wi-dialog__footer"
|
|
1162
1162
|
}, _t = /* @__PURE__ */ p({
|
|
1163
1163
|
__name: "Dialog",
|
|
1164
1164
|
props: {
|
|
@@ -1209,8 +1209,8 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1209
1209
|
setup(e, { emit: t }) {
|
|
1210
1210
|
let r = e, a = t, d = Y(), p = Z(), m = k(null), h = k(!1), g = k(at()), _ = o(() => r.header ?? r.title), v = o(() => Q(r, d.value.appendTo)), x = o(() => ({
|
|
1211
1211
|
zIndex: String(d.value.zIndex ?? 1e3),
|
|
1212
|
-
"--
|
|
1213
|
-
"--
|
|
1212
|
+
"--wi-dialog-origin-x": `${g.value.x}px`,
|
|
1213
|
+
"--wi-dialog-origin-y": `${g.value.y}px`
|
|
1214
1214
|
})), S = o(() => r.dismissableMask === void 0 ? r.closeOnOutsideClick === void 0 || r.closeOnOutsideClick : r.dismissableMask);
|
|
1215
1215
|
function C() {
|
|
1216
1216
|
h.value = !1, a("update:modelValue", !1), a("close");
|
|
@@ -1236,21 +1236,21 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1236
1236
|
}), (t, r) => (E(), s(n, {
|
|
1237
1237
|
to: v.value.to,
|
|
1238
1238
|
disabled: v.value.disabled
|
|
1239
|
-
}, [f(i, { name: "
|
|
1239
|
+
}, [f(i, { name: "wi-dialog" }, {
|
|
1240
1240
|
default: W(() => [e.modelValue ? (E(), l("div", {
|
|
1241
1241
|
key: 0,
|
|
1242
|
-
class: y(["
|
|
1243
|
-
"
|
|
1244
|
-
"
|
|
1242
|
+
class: y(["wi-dialog-backdrop", [`wi-dialog-backdrop--${e.position}`, {
|
|
1243
|
+
"wi-dialog-backdrop--modal": e.modal,
|
|
1244
|
+
"wi-dialog-backdrop--maximized": h.value
|
|
1245
1245
|
}]]),
|
|
1246
1246
|
style: b(x.value)
|
|
1247
1247
|
}, [u("div", {
|
|
1248
|
-
class: "
|
|
1248
|
+
class: "wi-dialog-zoom",
|
|
1249
1249
|
onClick: K(T, ["self"])
|
|
1250
1250
|
}, [u("section", {
|
|
1251
1251
|
ref_key: "dialogElement",
|
|
1252
1252
|
ref: m,
|
|
1253
|
-
class: y(["
|
|
1253
|
+
class: y(["wi-dialog", { "wi-dialog--maximized": h.value }]),
|
|
1254
1254
|
style: b(e.width && !h.value ? { width: e.width } : void 0),
|
|
1255
1255
|
role: "dialog",
|
|
1256
1256
|
"aria-modal": e.modal || void 0,
|
|
@@ -1260,13 +1260,13 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1260
1260
|
t.$slots.header || _.value || e.closable || e.maximizable ? (E(), l("header", ut, [M(t.$slots, "header", {}, () => [_.value ? (E(), l("h2", dt, P(_.value), 1)) : c("", !0)]), e.maximizable || e.closable ? (E(), l("div", ft, [e.maximizable ? (E(), l("button", {
|
|
1261
1261
|
key: 0,
|
|
1262
1262
|
type: "button",
|
|
1263
|
-
class: "
|
|
1263
|
+
class: "wi-dialog__action",
|
|
1264
1264
|
"aria-label": h.value ? L(p).restore : L(p).maximize,
|
|
1265
1265
|
onClick: w
|
|
1266
1266
|
}, P(h.value ? "❐" : "▢"), 9, pt)) : c("", !0), e.closable ? (E(), l("button", {
|
|
1267
1267
|
key: 1,
|
|
1268
1268
|
type: "button",
|
|
1269
|
-
class: "
|
|
1269
|
+
class: "wi-dialog__action",
|
|
1270
1270
|
"aria-label": L(p).close,
|
|
1271
1271
|
onClick: C
|
|
1272
1272
|
}, " × ", 8, mt)) : c("", !0)])) : c("", !0)])) : c("", !0),
|
|
@@ -1359,11 +1359,11 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1359
1359
|
}), (r, a) => (E(), l("div", {
|
|
1360
1360
|
ref_key: "root",
|
|
1361
1361
|
ref: g,
|
|
1362
|
-
class: "
|
|
1362
|
+
class: "wi-dropdown"
|
|
1363
1363
|
}, [u("span", {
|
|
1364
1364
|
ref_key: "trigger",
|
|
1365
1365
|
ref: _,
|
|
1366
|
-
class: "
|
|
1366
|
+
class: "wi-dropdown__trigger",
|
|
1367
1367
|
role: "button",
|
|
1368
1368
|
tabindex: "0",
|
|
1369
1369
|
"aria-expanded": e.modelValue,
|
|
@@ -1373,12 +1373,12 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1373
1373
|
}, [M(r.$slots, "trigger", {}, () => [d(P(L(h).openMenu), 1)])], 40, vt), (E(), s(n, {
|
|
1374
1374
|
to: D.value.to,
|
|
1375
1375
|
disabled: D.value.disabled
|
|
1376
|
-
}, [f(i, { name: "
|
|
1376
|
+
}, [f(i, { name: "wi-scale-fade" }, {
|
|
1377
1377
|
default: W(() => [e.modelValue ? (E(), l("div", {
|
|
1378
1378
|
key: 0,
|
|
1379
1379
|
ref_key: "menu",
|
|
1380
1380
|
ref: x,
|
|
1381
|
-
class: y(["
|
|
1381
|
+
class: y(["wi-dropdown__menu", [`wi-dropdown__menu--${e.placement}`, { "wi-dropdown__menu--teleported": O.value }]]),
|
|
1382
1382
|
style: b(O.value ? C.value : void 0),
|
|
1383
1383
|
role: "menu",
|
|
1384
1384
|
tabindex: "-1",
|
|
@@ -1386,7 +1386,7 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1386
1386
|
}, [(E(!0), l(t, null, j(e.items, (e) => (E(), l("button", {
|
|
1387
1387
|
key: e.value,
|
|
1388
1388
|
type: "button",
|
|
1389
|
-
class: y(["
|
|
1389
|
+
class: y(["wi-dropdown__item", { "wi-dropdown__item--highlighted": T.value[w.value]?.value === e.value }]),
|
|
1390
1390
|
role: "menuitem",
|
|
1391
1391
|
disabled: e.disabled,
|
|
1392
1392
|
onMouseenter: (t) => !e.disabled && (w.value = T.value.findIndex((t) => t.value === e.value)),
|
|
@@ -1397,7 +1397,7 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
}), xt = ["for"], St = {
|
|
1399
1399
|
key: 0,
|
|
1400
|
-
class: "
|
|
1400
|
+
class: "wi-input__prefix"
|
|
1401
1401
|
}, Ct = [
|
|
1402
1402
|
"id",
|
|
1403
1403
|
"type",
|
|
@@ -1409,10 +1409,10 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1409
1409
|
"aria-describedby"
|
|
1410
1410
|
], wt = {
|
|
1411
1411
|
key: 1,
|
|
1412
|
-
class: "
|
|
1412
|
+
class: "wi-input__suffix"
|
|
1413
1413
|
}, Tt = ["aria-label", "disabled"], Et = {
|
|
1414
1414
|
key: 1,
|
|
1415
|
-
class: "
|
|
1415
|
+
class: "wi-input-field__meta"
|
|
1416
1416
|
}, Dt = ["id", "role"], Ot = ["id"], kt = /* @__PURE__ */ p({
|
|
1417
1417
|
inheritAttrs: !1,
|
|
1418
1418
|
__name: "Input",
|
|
@@ -1457,19 +1457,19 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1457
1457
|
},
|
|
1458
1458
|
emits: ["update:modelValue", "clear"],
|
|
1459
1459
|
setup(e, { expose: t, emit: n }) {
|
|
1460
|
-
let r = R(), i = B(), a = e, s = n, d = Y(), f = Z(), p = k(null), m = o(() => a.id ?? `
|
|
1460
|
+
let r = R(), i = B(), a = e, s = n, d = Y(), f = Z(), p = k(null), m = o(() => a.id ?? `wi-input-${Math.random().toString(36).slice(2, 8)}`), h = o(() => a.invalid || a.error || !!a.errorMessage), g = o(() => ke(a.size ?? d.value.size)), v = o(() => a.variant ?? d.value.inputVariant ?? "outlined"), b = o(() => a.modelValue.length), x = o(() => a.maxlength == null ? String(b.value) : `${b.value} / ${a.maxlength}`), S = o(() => a.errorMessage || a.helpText), C = o(() => !!a.errorMessage || h.value && !!a.helpText), w = o(() => !!i.prefix), T = o(() => !!i.suffix || a.clearable && !!a.modelValue), D = o(() => {
|
|
1461
1461
|
let e = [];
|
|
1462
1462
|
return S.value && e.push(`${m.value}-help`), a.showCount && e.push(`${m.value}-count`), e.length ? e.join(" ") : void 0;
|
|
1463
1463
|
}), O = o(() => [
|
|
1464
|
-
"
|
|
1465
|
-
`
|
|
1464
|
+
"wi-input",
|
|
1465
|
+
`wi-input--${g.value}`,
|
|
1466
1466
|
{
|
|
1467
|
-
"
|
|
1468
|
-
"
|
|
1469
|
-
"
|
|
1470
|
-
"
|
|
1471
|
-
"
|
|
1472
|
-
"
|
|
1467
|
+
"wi-input--filled": v.value === "filled",
|
|
1468
|
+
"wi-input--fluid": a.fluid,
|
|
1469
|
+
"wi-input--invalid": h.value,
|
|
1470
|
+
"wi-input--error": h.value,
|
|
1471
|
+
"wi-input--has-prefix": w.value,
|
|
1472
|
+
"wi-input--has-suffix": T.value
|
|
1473
1473
|
}
|
|
1474
1474
|
]);
|
|
1475
1475
|
function A(e) {
|
|
@@ -1481,17 +1481,17 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1481
1481
|
function N() {
|
|
1482
1482
|
p.value?.focus();
|
|
1483
1483
|
}
|
|
1484
|
-
return t({ focus: N }), (t, n) => (E(), l("div", { class: y(["
|
|
1484
|
+
return t({ focus: N }), (t, n) => (E(), l("div", { class: y(["wi-input-field", { "wi-input-field--fluid": e.fluid }]) }, [
|
|
1485
1485
|
e.label ? (E(), l("label", {
|
|
1486
1486
|
key: 0,
|
|
1487
|
-
class: "
|
|
1487
|
+
class: "wi-input-field__label",
|
|
1488
1488
|
for: m.value
|
|
1489
1489
|
}, P(e.label), 9, xt)) : c("", !0),
|
|
1490
|
-
u("div", { class: y(["
|
|
1491
|
-
"
|
|
1492
|
-
"
|
|
1493
|
-
"
|
|
1494
|
-
"
|
|
1490
|
+
u("div", { class: y(["wi-input-field__control", {
|
|
1491
|
+
"wi-input-field__control--clearable": e.clearable && e.modelValue,
|
|
1492
|
+
"wi-input-field__control--counted": e.showCount,
|
|
1493
|
+
"wi-input-field__control--prefixed": w.value,
|
|
1494
|
+
"wi-input-field__control--suffixed": t.$slots.suffix || e.clearable && e.modelValue
|
|
1495
1495
|
}]) }, [
|
|
1496
1496
|
t.$slots.prefix ? (E(), l("span", St, [M(t.$slots, "prefix")])) : c("", !0),
|
|
1497
1497
|
u("input", _({
|
|
@@ -1512,7 +1512,7 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1512
1512
|
t.$slots.suffix ? (E(), l("span", wt, [M(t.$slots, "suffix")])) : c("", !0),
|
|
1513
1513
|
e.clearable && e.modelValue ? (E(), l("button", {
|
|
1514
1514
|
key: 2,
|
|
1515
|
-
class: "
|
|
1515
|
+
class: "wi-input__clear",
|
|
1516
1516
|
type: "button",
|
|
1517
1517
|
"aria-label": L(f).clearInput,
|
|
1518
1518
|
disabled: e.disabled || e.readonly,
|
|
@@ -1522,12 +1522,12 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1522
1522
|
S.value || e.showCount ? (E(), l("div", Et, [S.value ? (E(), l("span", {
|
|
1523
1523
|
key: 0,
|
|
1524
1524
|
id: `${m.value}-help`,
|
|
1525
|
-
class: y(["
|
|
1525
|
+
class: y(["wi-input-field__help", { "wi-input-field__help--error": C.value }]),
|
|
1526
1526
|
role: C.value ? "alert" : void 0
|
|
1527
1527
|
}, P(S.value), 11, Dt)) : c("", !0), e.showCount ? (E(), l("span", {
|
|
1528
1528
|
key: 1,
|
|
1529
1529
|
id: `${m.value}-count`,
|
|
1530
|
-
class: "
|
|
1530
|
+
class: "wi-input-field__count",
|
|
1531
1531
|
"aria-live": "polite"
|
|
1532
1532
|
}, P(x.value), 9, Ot)) : c("", !0)])) : c("", !0)
|
|
1533
1533
|
], 2));
|
|
@@ -1542,7 +1542,7 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1542
1542
|
"aria-invalid"
|
|
1543
1543
|
], Mt = {
|
|
1544
1544
|
key: 0,
|
|
1545
|
-
class: "
|
|
1545
|
+
class: "wi-checkbox__label"
|
|
1546
1546
|
}, Nt = /* @__PURE__ */ p({
|
|
1547
1547
|
inheritAttrs: !1,
|
|
1548
1548
|
__name: "Checkbox",
|
|
@@ -1570,20 +1570,20 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1570
1570
|
},
|
|
1571
1571
|
emits: ["update:modelValue"],
|
|
1572
1572
|
setup(e, { emit: t }) {
|
|
1573
|
-
let n = R(), r = e, i = t, a = o(() => r.id ?? `
|
|
1573
|
+
let n = R(), r = e, i = t, a = o(() => r.id ?? `wi-checkbox-${Math.random().toString(36).slice(2, 8)}`);
|
|
1574
1574
|
function s(e) {
|
|
1575
1575
|
r.disabled || i("update:modelValue", e.target.checked);
|
|
1576
1576
|
}
|
|
1577
1577
|
return (t, r) => (E(), l("label", {
|
|
1578
|
-
class: y(["
|
|
1579
|
-
"
|
|
1580
|
-
"
|
|
1578
|
+
class: y(["wi-checkbox", {
|
|
1579
|
+
"wi-checkbox--disabled": e.disabled,
|
|
1580
|
+
"wi-checkbox--invalid": e.invalid
|
|
1581
1581
|
}]),
|
|
1582
1582
|
for: a.value
|
|
1583
1583
|
}, [
|
|
1584
1584
|
u("input", _(L(n), {
|
|
1585
1585
|
id: a.value,
|
|
1586
|
-
class: "
|
|
1586
|
+
class: "wi-checkbox__input",
|
|
1587
1587
|
type: "checkbox",
|
|
1588
1588
|
name: e.name,
|
|
1589
1589
|
value: e.value,
|
|
@@ -1594,7 +1594,7 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1594
1594
|
onChange: s
|
|
1595
1595
|
}), null, 16, jt),
|
|
1596
1596
|
r[0] ||= u("span", {
|
|
1597
|
-
class: "
|
|
1597
|
+
class: "wi-checkbox__control",
|
|
1598
1598
|
"aria-hidden": "true"
|
|
1599
1599
|
}, [u("svg", {
|
|
1600
1600
|
viewBox: "0 0 16 16",
|
|
@@ -1613,7 +1613,7 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1613
1613
|
"aria-invalid"
|
|
1614
1614
|
], It = {
|
|
1615
1615
|
key: 0,
|
|
1616
|
-
class: "
|
|
1616
|
+
class: "wi-radio__label"
|
|
1617
1617
|
}, Lt = /* @__PURE__ */ p({
|
|
1618
1618
|
inheritAttrs: !1,
|
|
1619
1619
|
__name: "Radio",
|
|
@@ -1646,20 +1646,20 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1646
1646
|
},
|
|
1647
1647
|
emits: ["update:modelValue"],
|
|
1648
1648
|
setup(e, { emit: t }) {
|
|
1649
|
-
let n = R(), r = e, i = t, a = o(() => r.id ?? `
|
|
1649
|
+
let n = R(), r = e, i = t, a = o(() => r.id ?? `wi-radio-${Math.random().toString(36).slice(2, 8)}`), s = o(() => r.modelValue === r.value);
|
|
1650
1650
|
function f(e) {
|
|
1651
1651
|
!r.disabled && e.target.checked && i("update:modelValue", r.value);
|
|
1652
1652
|
}
|
|
1653
1653
|
return (t, r) => (E(), l("label", {
|
|
1654
|
-
class: y(["
|
|
1655
|
-
"
|
|
1656
|
-
"
|
|
1654
|
+
class: y(["wi-radio", {
|
|
1655
|
+
"wi-radio--disabled": e.disabled,
|
|
1656
|
+
"wi-radio--invalid": e.invalid
|
|
1657
1657
|
}]),
|
|
1658
1658
|
for: a.value
|
|
1659
1659
|
}, [
|
|
1660
1660
|
u("input", _(L(n), {
|
|
1661
1661
|
id: a.value,
|
|
1662
|
-
class: "
|
|
1662
|
+
class: "wi-radio__input",
|
|
1663
1663
|
type: "radio",
|
|
1664
1664
|
name: e.name,
|
|
1665
1665
|
value: String(e.value),
|
|
@@ -1670,7 +1670,7 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1670
1670
|
onChange: f
|
|
1671
1671
|
}), null, 16, Ft),
|
|
1672
1672
|
r[0] ||= u("span", {
|
|
1673
|
-
class: "
|
|
1673
|
+
class: "wi-radio__control",
|
|
1674
1674
|
"aria-hidden": "true"
|
|
1675
1675
|
}, null, -1),
|
|
1676
1676
|
e.label || t.$slots.default ? (E(), l("span", It, [M(t.$slots, "default", {}, () => [d(P(e.label), 1)])])) : c("", !0)
|
|
@@ -1687,7 +1687,7 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1687
1687
|
"aria-checked"
|
|
1688
1688
|
], Bt = {
|
|
1689
1689
|
key: 0,
|
|
1690
|
-
class: "
|
|
1690
|
+
class: "wi-switch__label"
|
|
1691
1691
|
}, Vt = /* @__PURE__ */ p({
|
|
1692
1692
|
inheritAttrs: !1,
|
|
1693
1693
|
__name: "Switch",
|
|
@@ -1716,20 +1716,20 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1716
1716
|
},
|
|
1717
1717
|
emits: ["update:modelValue"],
|
|
1718
1718
|
setup(e, { emit: t }) {
|
|
1719
|
-
let n = R(), r = e, i = t, a = o(() => r.inputId ?? r.id ?? `
|
|
1719
|
+
let n = R(), r = e, i = t, a = o(() => r.inputId ?? r.id ?? `wi-switch-${Math.random().toString(36).slice(2, 8)}`);
|
|
1720
1720
|
function s(e) {
|
|
1721
1721
|
r.disabled || i("update:modelValue", e.target.checked);
|
|
1722
1722
|
}
|
|
1723
1723
|
return (t, r) => (E(), l("label", {
|
|
1724
|
-
class: y(["
|
|
1725
|
-
"
|
|
1726
|
-
"
|
|
1724
|
+
class: y(["wi-switch", {
|
|
1725
|
+
"wi-switch--disabled": e.disabled,
|
|
1726
|
+
"wi-switch--invalid": e.invalid
|
|
1727
1727
|
}]),
|
|
1728
1728
|
for: a.value
|
|
1729
1729
|
}, [
|
|
1730
1730
|
u("input", _(L(n), {
|
|
1731
1731
|
id: a.value,
|
|
1732
|
-
class: "
|
|
1732
|
+
class: "wi-switch__input",
|
|
1733
1733
|
type: "checkbox",
|
|
1734
1734
|
role: "switch",
|
|
1735
1735
|
name: e.name,
|
|
@@ -1742,9 +1742,9 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1742
1742
|
onChange: s
|
|
1743
1743
|
}), null, 16, zt),
|
|
1744
1744
|
r[0] ||= u("span", {
|
|
1745
|
-
class: "
|
|
1745
|
+
class: "wi-switch__track",
|
|
1746
1746
|
"aria-hidden": "true"
|
|
1747
|
-
}, [u("span", { class: "
|
|
1747
|
+
}, [u("span", { class: "wi-switch__thumb" })], -1),
|
|
1748
1748
|
e.label || t.$slots.default ? (E(), l("span", Bt, [M(t.$slots, "default", {}, () => [d(P(e.label), 1)])])) : c("", !0)
|
|
1749
1749
|
], 10, Rt));
|
|
1750
1750
|
}
|
|
@@ -1796,15 +1796,15 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1796
1796
|
},
|
|
1797
1797
|
emits: ["update:modelValue"],
|
|
1798
1798
|
setup(e, { emit: t }) {
|
|
1799
|
-
let n = R(), r = e, i = t, a = Y(), s = k(null), d = o(() => r.id ?? `
|
|
1800
|
-
"
|
|
1801
|
-
`
|
|
1799
|
+
let n = R(), r = e, i = t, a = Y(), s = k(null), d = o(() => r.id ?? `wi-textarea-${Math.random().toString(36).slice(2, 8)}`), f = o(() => r.invalid || r.error || !!r.errorMessage), p = o(() => ke(r.size ?? a.value.size)), m = o(() => r.variant ?? a.value.inputVariant ?? "outlined"), h = o(() => r.autoResize ? "none" : r.resize), g = o(() => r.errorMessage || r.helpText), b = o(() => !!r.errorMessage || f.value && !!r.helpText), x = o(() => [
|
|
1800
|
+
"wi-textarea",
|
|
1801
|
+
`wi-textarea--${p.value}`,
|
|
1802
1802
|
{
|
|
1803
|
-
"
|
|
1804
|
-
"
|
|
1805
|
-
"
|
|
1806
|
-
"
|
|
1807
|
-
"
|
|
1803
|
+
"wi-textarea--filled": m.value === "filled",
|
|
1804
|
+
"wi-textarea--fluid": r.fluid,
|
|
1805
|
+
"wi-textarea--invalid": f.value,
|
|
1806
|
+
"wi-textarea--error": f.value,
|
|
1807
|
+
"wi-textarea--auto-resize": r.autoResize
|
|
1808
1808
|
}
|
|
1809
1809
|
]);
|
|
1810
1810
|
function S() {
|
|
@@ -1816,10 +1816,10 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1816
1816
|
}
|
|
1817
1817
|
return U(() => r.modelValue, async () => {
|
|
1818
1818
|
r.autoResize && (await v(), S());
|
|
1819
|
-
}), (t, r) => (E(), l("div", { class: y(["
|
|
1819
|
+
}), (t, r) => (E(), l("div", { class: y(["wi-textarea-field", { "wi-textarea-field--fluid": e.fluid }]) }, [
|
|
1820
1820
|
e.label ? (E(), l("label", {
|
|
1821
1821
|
key: 0,
|
|
1822
|
-
class: "
|
|
1822
|
+
class: "wi-textarea-field__label",
|
|
1823
1823
|
for: d.value
|
|
1824
1824
|
}, P(e.label), 9, Ht)) : c("", !0),
|
|
1825
1825
|
u("textarea", _({
|
|
@@ -1840,7 +1840,7 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1840
1840
|
g.value ? (E(), l("span", {
|
|
1841
1841
|
key: 1,
|
|
1842
1842
|
id: `${d.value}-help`,
|
|
1843
|
-
class: y(["
|
|
1843
|
+
class: y(["wi-textarea-field__help", { "wi-textarea-field__help--error": b.value }]),
|
|
1844
1844
|
role: b.value ? "alert" : void 0
|
|
1845
1845
|
}, P(g.value), 11, Wt)) : c("", !0)
|
|
1846
1846
|
], 2));
|
|
@@ -1852,18 +1852,18 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1852
1852
|
"aria-invalid",
|
|
1853
1853
|
"aria-describedby",
|
|
1854
1854
|
"disabled"
|
|
1855
|
-
], Jt = { class: "
|
|
1855
|
+
], Jt = { class: "wi-select__value" }, Yt = ["aria-label"], Xt = ["id", "aria-label"], Zt = ["placeholder", "aria-label"], Qt = [
|
|
1856
1856
|
"aria-selected",
|
|
1857
1857
|
"disabled",
|
|
1858
1858
|
"onMouseenter",
|
|
1859
1859
|
"onClick"
|
|
1860
1860
|
], $t = {
|
|
1861
1861
|
key: 0,
|
|
1862
|
-
class: "
|
|
1862
|
+
class: "wi-select__check",
|
|
1863
1863
|
"aria-hidden": "true"
|
|
1864
1864
|
}, en = {
|
|
1865
1865
|
key: 1,
|
|
1866
|
-
class: "
|
|
1866
|
+
class: "wi-select__empty",
|
|
1867
1867
|
role: "status"
|
|
1868
1868
|
}, tn = ["required", "value"], nn = ["id", "role"], rn = /* @__PURE__ */ p({
|
|
1869
1869
|
__name: "Select",
|
|
@@ -1920,7 +1920,7 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1920
1920
|
"hide"
|
|
1921
1921
|
],
|
|
1922
1922
|
setup(e, { emit: r }) {
|
|
1923
|
-
let a = e, d = r, p = Y(), m = Z(), h = k(null), g = k(null), _ = k(null), x = k(null), C = k(!1), w = k(""), T = k(-1), D = k({}), O = o(() => a.id ?? `
|
|
1923
|
+
let a = e, d = r, p = Y(), m = Z(), h = k(null), g = k(null), _ = k(null), x = k(null), C = k(!1), w = k(""), T = k(-1), D = k({}), O = o(() => a.id ?? `wi-select-${Math.random().toString(36).slice(2, 8)}`), A = o(() => a.emptyMessage ?? m.value.emptyOptions), M = o(() => {
|
|
1924
1924
|
let e = w.value.trim().toLowerCase();
|
|
1925
1925
|
return e ? a.options.filter((t) => t.label.toLowerCase().includes(e)) : a.options;
|
|
1926
1926
|
}), N = o(() => M.value.filter((e) => !e.disabled)), F = o(() => a.options.find((e) => e.value === a.modelValue)), I = o(() => F.value?.label ?? a.placeholder ?? m.value.selectPlaceholder), R = o(() => a.error || a.invalid || !!a.errorMessage), z = o(() => ke(a.size ?? p.value.size)), B = o(() => Q(a, p.value.appendTo)), H = o(() => $(a, p.value.appendTo)), ee = o(() => a.showClear && F.value != null && !a.disabled), G = o(() => a.errorMessage || a.helpText), ne = o(() => !!a.errorMessage || R.value && !!a.helpText);
|
|
@@ -1980,22 +1980,22 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
1980
1980
|
}), (r, a) => (E(), l("div", {
|
|
1981
1981
|
ref_key: "root",
|
|
1982
1982
|
ref: h,
|
|
1983
|
-
class: y(["
|
|
1983
|
+
class: y(["wi-select-field", { "wi-select-field--fluid": e.fluid }])
|
|
1984
1984
|
}, [
|
|
1985
1985
|
e.label ? (E(), l("label", {
|
|
1986
1986
|
key: 0,
|
|
1987
|
-
class: "
|
|
1987
|
+
class: "wi-select-field__label",
|
|
1988
1988
|
for: O.value
|
|
1989
1989
|
}, P(e.label), 9, Kt)) : c("", !0),
|
|
1990
|
-
u("div", { class: y(["
|
|
1990
|
+
u("div", { class: y(["wi-select__control", { "wi-select__control--clearable": ee.value }]) }, [u("button", {
|
|
1991
1991
|
id: O.value,
|
|
1992
1992
|
ref_key: "trigger",
|
|
1993
1993
|
ref: g,
|
|
1994
|
-
class: y(["
|
|
1995
|
-
"
|
|
1996
|
-
"
|
|
1997
|
-
"
|
|
1998
|
-
"
|
|
1994
|
+
class: y(["wi-select", [`wi-select--${z.value}`, {
|
|
1995
|
+
"wi-select--error": R.value,
|
|
1996
|
+
"wi-select--open": C.value,
|
|
1997
|
+
"wi-select--placeholder": !F.value,
|
|
1998
|
+
"wi-select--fluid": e.fluid
|
|
1999
1999
|
}]]),
|
|
2000
2000
|
type: "button",
|
|
2001
2001
|
role: "combobox",
|
|
@@ -2008,11 +2008,11 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
2008
2008
|
onClick: a[0] ||= (e) => re(!C.value),
|
|
2009
2009
|
onKeydown: ae
|
|
2010
2010
|
}, [u("span", Jt, P(I.value), 1), a[3] ||= u("span", {
|
|
2011
|
-
class: "
|
|
2011
|
+
class: "wi-select__indicator",
|
|
2012
2012
|
"aria-hidden": "true"
|
|
2013
2013
|
}, null, -1)], 42, qt), ee.value ? (E(), l("button", {
|
|
2014
2014
|
key: 0,
|
|
2015
|
-
class: "
|
|
2015
|
+
class: "wi-select__clear",
|
|
2016
2016
|
type: "button",
|
|
2017
2017
|
"aria-label": L(m).clear,
|
|
2018
2018
|
onClick: J
|
|
@@ -2020,13 +2020,13 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
2020
2020
|
(E(), s(n, {
|
|
2021
2021
|
to: B.value.to,
|
|
2022
2022
|
disabled: B.value.disabled
|
|
2023
|
-
}, [f(i, { name: "
|
|
2023
|
+
}, [f(i, { name: "wi-scale-fade" }, {
|
|
2024
2024
|
default: W(() => [C.value ? (E(), l("div", {
|
|
2025
2025
|
key: 0,
|
|
2026
2026
|
id: `${O.value}-listbox`,
|
|
2027
2027
|
ref_key: "menu",
|
|
2028
2028
|
ref: _,
|
|
2029
|
-
class: y(["
|
|
2029
|
+
class: y(["wi-select__menu", [`wi-select__menu--${e.placement}`, { "wi-select__menu--teleported": H.value }]]),
|
|
2030
2030
|
style: b(H.value ? D.value : void 0),
|
|
2031
2031
|
role: "listbox",
|
|
2032
2032
|
tabindex: "-1",
|
|
@@ -2038,7 +2038,7 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
2038
2038
|
ref_key: "filterInput",
|
|
2039
2039
|
ref: x,
|
|
2040
2040
|
"onUpdate:modelValue": a[1] ||= (e) => w.value = e,
|
|
2041
|
-
class: "
|
|
2041
|
+
class: "wi-select__filter",
|
|
2042
2042
|
type: "search",
|
|
2043
2043
|
placeholder: L(m).searchPlaceholder,
|
|
2044
2044
|
"aria-label": L(m).filterOptions,
|
|
@@ -2047,9 +2047,9 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
2047
2047
|
}, null, 40, Zt)), [[V, w.value]]) : c("", !0),
|
|
2048
2048
|
(E(!0), l(t, null, j(M.value, (t) => (E(), l("button", {
|
|
2049
2049
|
key: String(t.value),
|
|
2050
|
-
class: y(["
|
|
2051
|
-
"
|
|
2052
|
-
"
|
|
2050
|
+
class: y(["wi-select__option", {
|
|
2051
|
+
"wi-select__option--selected": t.value === e.modelValue,
|
|
2052
|
+
"wi-select__option--highlighted": N.value[T.value]?.value === t.value
|
|
2053
2053
|
}]),
|
|
2054
2054
|
type: "button",
|
|
2055
2055
|
role: "option",
|
|
@@ -2064,7 +2064,7 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
2064
2064
|
})], 8, ["to", "disabled"])),
|
|
2065
2065
|
e.required ? (E(), l("input", {
|
|
2066
2066
|
key: 1,
|
|
2067
|
-
class: "
|
|
2067
|
+
class: "wi-select__required-input",
|
|
2068
2068
|
tabindex: "-1",
|
|
2069
2069
|
"aria-hidden": "true",
|
|
2070
2070
|
required: !F.value,
|
|
@@ -2073,13 +2073,13 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
2073
2073
|
G.value ? (E(), l("span", {
|
|
2074
2074
|
key: 2,
|
|
2075
2075
|
id: `${O.value}-help`,
|
|
2076
|
-
class: y(["
|
|
2076
|
+
class: y(["wi-select-field__help", { "wi-select-field__help--error": ne.value }]),
|
|
2077
2077
|
role: ne.value ? "alert" : void 0
|
|
2078
2078
|
}, P(G.value), 11, nn)) : c("", !0)
|
|
2079
2079
|
], 2));
|
|
2080
2080
|
}
|
|
2081
|
-
}), an = { class: "
|
|
2082
|
-
class: "
|
|
2081
|
+
}), an = { class: "wi-tabs" }, on = {
|
|
2082
|
+
class: "wi-tabs__list",
|
|
2083
2083
|
role: "tablist",
|
|
2084
2084
|
"aria-label": "Tabs"
|
|
2085
2085
|
}, sn = [
|
|
@@ -2089,7 +2089,7 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
2089
2089
|
"onClick",
|
|
2090
2090
|
"onKeydown"
|
|
2091
2091
|
], cn = {
|
|
2092
|
-
class: "
|
|
2092
|
+
class: "wi-tabs__panel",
|
|
2093
2093
|
role: "tabpanel"
|
|
2094
2094
|
}, ln = /* @__PURE__ */ p({
|
|
2095
2095
|
__name: "Tabs",
|
|
@@ -2112,12 +2112,12 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
2112
2112
|
].includes(e.key)) return;
|
|
2113
2113
|
e.preventDefault();
|
|
2114
2114
|
let n = r.tabs.filter((e) => !e.disabled), i = n.findIndex((e) => e.value === r.tabs[t]?.value), a = n[e.key === "Home" ? 0 : e.key === "End" ? n.length - 1 : (i + (e.key === "ArrowRight" ? 1 : -1) + n.length) % n.length];
|
|
2115
|
-
a && (s(a.value), requestAnimationFrame(() => document.getElementById(`
|
|
2115
|
+
a && (s(a.value), requestAnimationFrame(() => document.getElementById(`wi-tab-${a.value}`)?.focus({ preventScroll: !0 })));
|
|
2116
2116
|
}
|
|
2117
2117
|
return (n, r) => (E(), l("div", an, [u("div", on, [(E(!0), l(t, null, j(e.tabs, (e, t) => (E(), l("button", {
|
|
2118
|
-
id: `
|
|
2118
|
+
id: `wi-tab-${e.value}`,
|
|
2119
2119
|
key: e.value,
|
|
2120
|
-
class: y(["
|
|
2120
|
+
class: y(["wi-tabs__tab", { "wi-tabs__tab--active": a.value === e.value }]),
|
|
2121
2121
|
type: "button",
|
|
2122
2122
|
role: "tab",
|
|
2123
2123
|
"aria-selected": a.value === e.value,
|
|
@@ -2128,10 +2128,10 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
2128
2128
|
}
|
|
2129
2129
|
}), un = ["role", "aria-orientation"], dn = {
|
|
2130
2130
|
key: 0,
|
|
2131
|
-
class: "
|
|
2131
|
+
class: "wi-divider__label"
|
|
2132
2132
|
}, fn = {
|
|
2133
2133
|
key: 1,
|
|
2134
|
-
class: "
|
|
2134
|
+
class: "wi-divider__line"
|
|
2135
2135
|
}, pn = /* @__PURE__ */ p({
|
|
2136
2136
|
__name: "Divider",
|
|
2137
2137
|
props: {
|
|
@@ -2143,17 +2143,17 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
2143
2143
|
},
|
|
2144
2144
|
setup(e) {
|
|
2145
2145
|
let t = e, n = B(), r = o(() => t.layout ?? t.orientation ?? "horizontal"), i = o(() => !!(t.label || n.default)), a = o(() => [
|
|
2146
|
-
"
|
|
2147
|
-
`
|
|
2148
|
-
`
|
|
2149
|
-
{ [`
|
|
2146
|
+
"wi-divider",
|
|
2147
|
+
`wi-divider--${r.value}`,
|
|
2148
|
+
`wi-divider--${t.type}`,
|
|
2149
|
+
{ [`wi-divider--align-${t.align}`]: i.value && r.value === "horizontal" && t.align !== "center" }
|
|
2150
2150
|
]);
|
|
2151
2151
|
return (t, n) => (E(), l("div", {
|
|
2152
2152
|
class: y(a.value),
|
|
2153
2153
|
role: i.value ? "separator" : void 0,
|
|
2154
2154
|
"aria-orientation": r.value
|
|
2155
2155
|
}, [
|
|
2156
|
-
n[0] ||= u("span", { class: "
|
|
2156
|
+
n[0] ||= u("span", { class: "wi-divider__line" }, null, -1),
|
|
2157
2157
|
i.value ? (E(), l("span", dn, [M(t.$slots, "default", {}, () => [d(P(e.label), 1)])])) : c("", !0),
|
|
2158
2158
|
i.value ? (E(), l("span", fn)) : c("", !0)
|
|
2159
2159
|
], 10, un));
|
|
@@ -2171,9 +2171,9 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
2171
2171
|
},
|
|
2172
2172
|
setup(e) {
|
|
2173
2173
|
let t = e, n = o(() => Ae(t.severity) ?? "primary");
|
|
2174
|
-
return (t, r) => (E(), l("span", { class: y(["
|
|
2174
|
+
return (t, r) => (E(), l("span", { class: y(["wi-tag", [`wi-tag--${n.value}`, { "wi-tag--rounded": e.rounded }]]) }, [e.icon ? (E(), s(X, {
|
|
2175
2175
|
key: 0,
|
|
2176
|
-
class: "
|
|
2176
|
+
class: "wi-tag__icon",
|
|
2177
2177
|
name: e.icon,
|
|
2178
2178
|
size: "sm"
|
|
2179
2179
|
}, null, 8, ["name"])) : c("", !0), M(t.$slots, "default", {}, () => [d(P(e.value), 1)])], 2));
|
|
@@ -2247,7 +2247,7 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
2247
2247
|
}), (t, r) => (E(), l("span", {
|
|
2248
2248
|
ref_key: "root",
|
|
2249
2249
|
ref: a,
|
|
2250
|
-
class: "
|
|
2250
|
+
class: "wi-tooltip",
|
|
2251
2251
|
onMouseenter: x,
|
|
2252
2252
|
onMouseleave: C,
|
|
2253
2253
|
onFocusin: x,
|
|
@@ -2255,10 +2255,10 @@ var lt = ["aria-modal", "aria-label"], ut = {
|
|
|
2255
2255
|
}, [M(t.$slots, "default"), (E(), s(n, {
|
|
2256
2256
|
to: p.value.to,
|
|
2257
2257
|
disabled: p.value.disabled
|
|
2258
|
-
}, [f(i, { name: "
|
|
2258
|
+
}, [f(i, { name: "wi-fade" }, {
|
|
2259
2259
|
default: W(() => [u.value ? (E(), l("span", {
|
|
2260
2260
|
key: 0,
|
|
2261
|
-
class: y(["
|
|
2261
|
+
class: y(["wi-tooltip__content", [`wi-tooltip__content--${e.placement}`, { "wi-tooltip__content--teleported": m.value }]]),
|
|
2262
2262
|
style: b(m.value ? d.value : void 0),
|
|
2263
2263
|
role: "tooltip"
|
|
2264
2264
|
}, P(e.content), 7)) : c("", !0)]),
|
|
@@ -2295,7 +2295,7 @@ function bn(e) {
|
|
|
2295
2295
|
//#endregion
|
|
2296
2296
|
//#region src/shared/Renderable.ts
|
|
2297
2297
|
var xn = p({
|
|
2298
|
-
name: "
|
|
2298
|
+
name: "WiRenderable",
|
|
2299
2299
|
props: { value: {
|
|
2300
2300
|
type: [
|
|
2301
2301
|
String,
|
|
@@ -2343,7 +2343,7 @@ function Mn() {
|
|
|
2343
2343
|
}
|
|
2344
2344
|
//#endregion
|
|
2345
2345
|
//#region src/components/Toast/Toast.vue?vue&type=script&setup=true&lang.ts
|
|
2346
|
-
var Nn = { class: "
|
|
2346
|
+
var Nn = { class: "wi-toast__content" }, Pn = { key: 0 }, Fn = ["aria-label", "onClick"], In = /* @__PURE__ */ p({
|
|
2347
2347
|
__name: "Toast",
|
|
2348
2348
|
props: {
|
|
2349
2349
|
messages: {},
|
|
@@ -2367,7 +2367,7 @@ var Nn = { class: "wd-toast__content" }, Pn = { key: 0 }, Fn = ["aria-label", "o
|
|
|
2367
2367
|
g.value && !i.auto && On();
|
|
2368
2368
|
});
|
|
2369
2369
|
function b(e) {
|
|
2370
|
-
return `
|
|
2370
|
+
return `wi-toast__message--${Ae(e) ?? "info"}`;
|
|
2371
2371
|
}
|
|
2372
2372
|
function x(e) {
|
|
2373
2373
|
return $e(m.value.closeNamed, { summary: vn(e.summary) || "toast" });
|
|
@@ -2379,18 +2379,18 @@ var Nn = { class: "wd-toast__content" }, Pn = { key: 0 }, Fn = ["aria-label", "o
|
|
|
2379
2379
|
to: h.value.to,
|
|
2380
2380
|
disabled: h.value.disabled
|
|
2381
2381
|
}, [u("div", {
|
|
2382
|
-
class: y(["
|
|
2382
|
+
class: y(["wi-toast", `wi-toast--${v.value}`]),
|
|
2383
2383
|
"aria-live": "polite",
|
|
2384
2384
|
"aria-atomic": "true"
|
|
2385
|
-
}, [f(a, { name: "
|
|
2385
|
+
}, [f(a, { name: "wi-slide-fade" }, {
|
|
2386
2386
|
default: W(() => [(E(!0), l(t, null, j(_.value, (e) => (E(), l("article", {
|
|
2387
2387
|
key: e.id,
|
|
2388
|
-
class: y(["
|
|
2388
|
+
class: y(["wi-toast__message", b(e.severity)]),
|
|
2389
2389
|
role: "status"
|
|
2390
2390
|
}, [u("div", Nn, [u("strong", null, [f(L(xn), { value: e.summary }, null, 8, ["value"])]), e.detail != null && e.detail !== "" ? (E(), l("p", Pn, [f(L(xn), { value: e.detail }, null, 8, ["value"])])) : c("", !0)]), e.closable === !1 ? c("", !0) : (E(), l("button", {
|
|
2391
2391
|
key: 0,
|
|
2392
2392
|
type: "button",
|
|
2393
|
-
class: "
|
|
2393
|
+
class: "wi-toast__close",
|
|
2394
2394
|
"aria-label": x(e),
|
|
2395
2395
|
onClick: (t) => w(e)
|
|
2396
2396
|
}, " × ", 8, Fn))], 2))), 128))]),
|
|
@@ -2398,18 +2398,18 @@ var Nn = { class: "wd-toast__content" }, Pn = { key: 0 }, Fn = ["aria-label", "o
|
|
|
2398
2398
|
})], 2)], 8, ["to", "disabled"]));
|
|
2399
2399
|
}
|
|
2400
2400
|
}), Ln = 3e3, Rn = 0, zn = p({
|
|
2401
|
-
name: "
|
|
2401
|
+
name: "WiToastAutoHost",
|
|
2402
2402
|
setup() {
|
|
2403
2403
|
return () => m(In, { auto: !0 });
|
|
2404
2404
|
}
|
|
2405
2405
|
});
|
|
2406
2406
|
function Bn() {
|
|
2407
|
-
typeof document > "u" || wn > 0 || Cn || En(Se(zn, "
|
|
2407
|
+
typeof document > "u" || wn > 0 || Cn || En(Se(zn, "wi-toast-host-root"));
|
|
2408
2408
|
}
|
|
2409
2409
|
function Vn(e, t) {
|
|
2410
2410
|
let n = bn(e) ? e : { summary: e };
|
|
2411
2411
|
return n.position && (Sn.position = n.position), {
|
|
2412
|
-
id: n.id ?? `
|
|
2412
|
+
id: n.id ?? `wi-toast-${Date.now()}-${++Rn}`,
|
|
2413
2413
|
summary: n.summary,
|
|
2414
2414
|
detail: n.detail,
|
|
2415
2415
|
severity: t ?? n.severity ?? "info",
|
|
@@ -2479,12 +2479,12 @@ var Gn = ["aria-label"], Kn = ["disabled", "aria-label"], qn = [
|
|
|
2479
2479
|
first: f,
|
|
2480
2480
|
pageCount: c
|
|
2481
2481
|
}), (n, r) => (E(), l("nav", {
|
|
2482
|
-
class: "
|
|
2482
|
+
class: "wi-pagination",
|
|
2483
2483
|
"aria-label": L(s).pagination
|
|
2484
2484
|
}, [
|
|
2485
2485
|
u("button", {
|
|
2486
2486
|
type: "button",
|
|
2487
|
-
class: "
|
|
2487
|
+
class: "wi-pagination__button",
|
|
2488
2488
|
disabled: e.disabled || d.value === 1,
|
|
2489
2489
|
"aria-label": L(s).prevPage,
|
|
2490
2490
|
onClick: r[0] ||= (e) => m(d.value - 1)
|
|
@@ -2492,7 +2492,7 @@ var Gn = ["aria-label"], Kn = ["disabled", "aria-label"], qn = [
|
|
|
2492
2492
|
(E(!0), l(t, null, j(p.value, (t) => (E(), l("button", {
|
|
2493
2493
|
key: t,
|
|
2494
2494
|
type: "button",
|
|
2495
|
-
class: y(["
|
|
2495
|
+
class: y(["wi-pagination__button", { "wi-pagination__button--active": t === d.value }]),
|
|
2496
2496
|
disabled: e.disabled,
|
|
2497
2497
|
"aria-label": h(t),
|
|
2498
2498
|
"aria-current": t === d.value ? "page" : void 0,
|
|
@@ -2500,7 +2500,7 @@ var Gn = ["aria-label"], Kn = ["disabled", "aria-label"], qn = [
|
|
|
2500
2500
|
}, P(t), 11, qn))), 128)),
|
|
2501
2501
|
u("button", {
|
|
2502
2502
|
type: "button",
|
|
2503
|
-
class: "
|
|
2503
|
+
class: "wi-pagination__button",
|
|
2504
2504
|
disabled: e.disabled || d.value === c.value,
|
|
2505
2505
|
"aria-label": L(s).nextPage,
|
|
2506
2506
|
onClick: r[1] ||= (e) => m(d.value + 1)
|
|
@@ -2517,13 +2517,13 @@ var Gn = ["aria-label"], Kn = ["disabled", "aria-label"], qn = [
|
|
|
2517
2517
|
setup(e) {
|
|
2518
2518
|
let t = e, n = Z(), r = o(() => t.ariaLabel ?? n.value.loading), i = o(() => ({ animationDuration: t.animationDuration }));
|
|
2519
2519
|
return (t, n) => (E(), l("svg", {
|
|
2520
|
-
class: "
|
|
2520
|
+
class: "wi-progress-spinner",
|
|
2521
2521
|
viewBox: "0 0 50 50",
|
|
2522
2522
|
role: "status",
|
|
2523
2523
|
"aria-label": r.value,
|
|
2524
2524
|
style: b(i.value)
|
|
2525
2525
|
}, [u("circle", {
|
|
2526
|
-
class: "
|
|
2526
|
+
class: "wi-progress-spinner__circle",
|
|
2527
2527
|
cx: "25",
|
|
2528
2528
|
cy: "25",
|
|
2529
2529
|
r: "20",
|
|
@@ -2610,12 +2610,12 @@ function tr(e) {
|
|
|
2610
2610
|
}
|
|
2611
2611
|
//#endregion
|
|
2612
2612
|
//#region src/components/Table/Table.vue?vue&type=script&setup=true&lang.ts
|
|
2613
|
-
var nr = ["aria-sort"], rr = { class: "
|
|
2614
|
-
class: "
|
|
2613
|
+
var nr = ["aria-sort"], rr = { class: "wi-table__th-inner" }, ir = ["onClick"], ar = {
|
|
2614
|
+
class: "wi-table__sort-icon",
|
|
2615
2615
|
"aria-hidden": "true"
|
|
2616
2616
|
}, or = { key: 1 }, sr = {
|
|
2617
2617
|
key: 2,
|
|
2618
|
-
class: "
|
|
2618
|
+
class: "wi-table__filter"
|
|
2619
2619
|
}, cr = [
|
|
2620
2620
|
"aria-expanded",
|
|
2621
2621
|
"aria-label",
|
|
@@ -2624,13 +2624,13 @@ var nr = ["aria-sort"], rr = { class: "wd-table__th-inner" }, ir = ["onClick"],
|
|
|
2624
2624
|
"value",
|
|
2625
2625
|
"placeholder",
|
|
2626
2626
|
"onInput"
|
|
2627
|
-
], pr = ["onClick"], mr = { key: 0 }, hr = ["colspan"], gr = { class: "
|
|
2627
|
+
], pr = ["onClick"], mr = { key: 0 }, hr = ["colspan"], gr = { class: "wi-table__empty-content" }, _r = { class: "wi-table__empty-title" }, vr = {
|
|
2628
2628
|
key: 0,
|
|
2629
|
-
class: "
|
|
2629
|
+
class: "wi-table__empty-desc"
|
|
2630
2630
|
}, yr = {
|
|
2631
2631
|
key: 0,
|
|
2632
|
-
class: "
|
|
2633
|
-
}, br = ["aria-label"], xr = { class: "
|
|
2632
|
+
class: "wi-table__paginator"
|
|
2633
|
+
}, br = ["aria-label"], xr = { class: "wi-table__loading-text" }, Sr = /* @__PURE__ */ p({
|
|
2634
2634
|
__name: "Table",
|
|
2635
2635
|
props: {
|
|
2636
2636
|
columns: {},
|
|
@@ -2819,20 +2819,20 @@ var nr = ["aria-sort"], rr = { class: "wd-table__th-inner" }, ir = ["onClick"],
|
|
|
2819
2819
|
}), r.highlightCurrent && (T.value = N(e, t), i("current-change", e));
|
|
2820
2820
|
}
|
|
2821
2821
|
function me(e) {
|
|
2822
|
-
if (e.fixed) return `
|
|
2822
|
+
if (e.fixed) return `wi-table__cell--fixed-${e.fixed}`;
|
|
2823
2823
|
}
|
|
2824
|
-
return (n, r) => (E(), l("div", { class: y(["
|
|
2825
|
-
"
|
|
2826
|
-
"
|
|
2827
|
-
"
|
|
2828
|
-
"
|
|
2824
|
+
return (n, r) => (E(), l("div", { class: y(["wi-table-wrapper", [{
|
|
2825
|
+
"wi-table-wrapper--loading": e.loading,
|
|
2826
|
+
"wi-table-wrapper--bordered": e.bordered,
|
|
2827
|
+
"wi-table-wrapper--striped": e.striped,
|
|
2828
|
+
"wi-table-wrapper--row-hover": e.rowHover
|
|
2829
2829
|
}]]) }, [
|
|
2830
2830
|
u("div", {
|
|
2831
2831
|
ref_key: "scrollRef",
|
|
2832
2832
|
ref: F,
|
|
2833
|
-
class: y(["
|
|
2833
|
+
class: y(["wi-table-scroll", { "wi-table-scroll--x": z.value.scrollX }])
|
|
2834
2834
|
}, [u("table", {
|
|
2835
|
-
class: y(["
|
|
2835
|
+
class: y(["wi-table", `wi-table--${m.value}`]),
|
|
2836
2836
|
style: b(H.value)
|
|
2837
2837
|
}, [
|
|
2838
2838
|
u("colgroup", null, [(E(!0), l(t, null, j(z.value.columns, (e) => (E(), l("col", {
|
|
@@ -2841,7 +2841,7 @@ var nr = ["aria-sort"], rr = { class: "wd-table__th-inner" }, ir = ["onClick"],
|
|
|
2841
2841
|
}, null, 4))), 128))]),
|
|
2842
2842
|
u("thead", null, [u("tr", null, [e.selectionMode ? (E(), l("th", {
|
|
2843
2843
|
key: 0,
|
|
2844
|
-
class: "
|
|
2844
|
+
class: "wi-table__selection wi-table__cell--fixed-left",
|
|
2845
2845
|
scope: "col",
|
|
2846
2846
|
style: b(W())
|
|
2847
2847
|
}, [e.selectionMode === "multiple" ? (E(), s(Nt, {
|
|
@@ -2853,20 +2853,20 @@ var nr = ["aria-sort"], rr = { class: "wd-table__th-inner" }, ir = ["onClick"],
|
|
|
2853
2853
|
key: e.key,
|
|
2854
2854
|
scope: "col",
|
|
2855
2855
|
class: y([
|
|
2856
|
-
`
|
|
2856
|
+
`wi-table__cell--${e.align ?? "start"}`,
|
|
2857
2857
|
me(e),
|
|
2858
|
-
{ "
|
|
2858
|
+
{ "wi-table__th--sortable": e.sortable }
|
|
2859
2859
|
]),
|
|
2860
2860
|
style: b(ee(e)),
|
|
2861
2861
|
"aria-sort": e.sortable && _.value === e.key ? v.value === "asc" ? "ascending" : v.value === "desc" ? "descending" : "none" : e.sortable ? "none" : void 0
|
|
2862
2862
|
}, [u("div", rr, [e.sortable ? (E(), l("button", {
|
|
2863
2863
|
key: 0,
|
|
2864
2864
|
type: "button",
|
|
2865
|
-
class: "
|
|
2865
|
+
class: "wi-table__sort",
|
|
2866
2866
|
onClick: (t) => le(e.key, !0)
|
|
2867
2867
|
}, [u("span", null, P(e.label), 1), u("span", ar, P(ue(e.key)), 1)], 8, ir)) : (E(), l("span", or, P(e.label), 1)), e.filterable ? (E(), l("div", sr, [u("button", {
|
|
2868
2868
|
type: "button",
|
|
2869
|
-
class: "
|
|
2869
|
+
class: "wi-table__filter-btn",
|
|
2870
2870
|
"aria-expanded": D.value === e.key,
|
|
2871
2871
|
"aria-label": L($e)(L(p).filterColumn, { label: e.label }),
|
|
2872
2872
|
onClick: K((t) => D.value = D.value === e.key ? null : e.key, ["stop"])
|
|
@@ -2875,11 +2875,11 @@ var nr = ["aria-sort"], rr = { class: "wd-table__th-inner" }, ir = ["onClick"],
|
|
|
2875
2875
|
size: "sm"
|
|
2876
2876
|
})], 8, cr), D.value === e.key ? (E(), l("div", {
|
|
2877
2877
|
key: 0,
|
|
2878
|
-
class: "
|
|
2878
|
+
class: "wi-table__filter-panel",
|
|
2879
2879
|
onClick: r[0] ||= K(() => {}, ["stop"])
|
|
2880
2880
|
}, [e.filters?.length ? (E(), l("select", {
|
|
2881
2881
|
key: 0,
|
|
2882
|
-
class: "
|
|
2882
|
+
class: "wi-table__filter-control",
|
|
2883
2883
|
value: String(x.value[e.key] ?? ""),
|
|
2884
2884
|
onChange: (t) => de(e.key, t.target.value || null)
|
|
2885
2885
|
}, [u("option", ur, P(L(p).filterAll), 1), (E(!0), l(t, null, j(e.filters, (e) => (E(), l("option", {
|
|
@@ -2887,7 +2887,7 @@ var nr = ["aria-sort"], rr = { class: "wd-table__th-inner" }, ir = ["onClick"],
|
|
|
2887
2887
|
value: String(e.value ?? "")
|
|
2888
2888
|
}, P(e.label), 9, dr))), 128))], 40, lr)) : (E(), l("input", {
|
|
2889
2889
|
key: 1,
|
|
2890
|
-
class: "
|
|
2890
|
+
class: "wi-table__filter-control",
|
|
2891
2891
|
type: "search",
|
|
2892
2892
|
value: String(x.value[e.key] ?? ""),
|
|
2893
2893
|
placeholder: L(p).filterOptions,
|
|
@@ -2896,13 +2896,13 @@ var nr = ["aria-sort"], rr = { class: "wd-table__th-inner" }, ir = ["onClick"],
|
|
|
2896
2896
|
u("tbody", null, [(E(!0), l(t, null, j(q.value, (i, a) => (E(), l("tr", {
|
|
2897
2897
|
key: String(N(i, a)),
|
|
2898
2898
|
class: y({
|
|
2899
|
-
"
|
|
2900
|
-
"
|
|
2899
|
+
"wi-table__row--selected": oe(i, a),
|
|
2900
|
+
"wi-table__row--current": e.highlightCurrent && T.value === N(i, a)
|
|
2901
2901
|
}),
|
|
2902
2902
|
onClick: (e) => pe(i, a)
|
|
2903
2903
|
}, [e.selectionMode ? (E(), l("td", {
|
|
2904
2904
|
key: 0,
|
|
2905
|
-
class: "
|
|
2905
|
+
class: "wi-table__selection wi-table__cell--fixed-left",
|
|
2906
2906
|
style: b(W()),
|
|
2907
2907
|
onClick: r[1] ||= K(() => {}, ["stop"])
|
|
2908
2908
|
}, [f(Nt, {
|
|
@@ -2915,17 +2915,17 @@ var nr = ["aria-sort"], rr = { class: "wd-table__th-inner" }, ir = ["onClick"],
|
|
|
2915
2915
|
"onUpdate:modelValue"
|
|
2916
2916
|
])], 4)) : c("", !0), (E(!0), l(t, null, j(e.columns, (e) => (E(), l("td", {
|
|
2917
2917
|
key: e.key,
|
|
2918
|
-
class: y([`
|
|
2918
|
+
class: y([`wi-table__cell--${e.align ?? "start"}`, me(e)]),
|
|
2919
2919
|
style: b(ee(e))
|
|
2920
2920
|
}, [M(n.$slots, `cell-${e.key}`, {
|
|
2921
2921
|
row: i,
|
|
2922
2922
|
value: i[e.key]
|
|
2923
2923
|
}, () => [d(P(i[e.key]), 1)])], 6))), 128))], 10, pr))), 128)), re.value ? (E(), l("tr", mr, [u("td", {
|
|
2924
|
-
class: "
|
|
2924
|
+
class: "wi-table__empty",
|
|
2925
2925
|
colspan: ie.value
|
|
2926
2926
|
}, [M(n.$slots, "empty", {}, () => [u("div", gr, [
|
|
2927
2927
|
r[2] ||= u("div", {
|
|
2928
|
-
class: "
|
|
2928
|
+
class: "wi-table__empty-glyph",
|
|
2929
2929
|
"aria-hidden": "true"
|
|
2930
2930
|
}, "∅", -1),
|
|
2931
2931
|
u("p", _r, P(h.value), 1),
|
|
@@ -2944,13 +2944,13 @@ var nr = ["aria-sort"], rr = { class: "wd-table__th-inner" }, ir = ["onClick"],
|
|
|
2944
2944
|
])])) : c("", !0),
|
|
2945
2945
|
e.loading ? (E(), l("div", {
|
|
2946
2946
|
key: 1,
|
|
2947
|
-
class: "
|
|
2947
|
+
class: "wi-table__loading",
|
|
2948
2948
|
role: "status",
|
|
2949
2949
|
"aria-label": g.value
|
|
2950
2950
|
}, [M(n.$slots, "loading", {}, () => [f(Qn), u("span", xr, P(g.value), 1)])], 8, br)) : c("", !0)
|
|
2951
2951
|
], 2));
|
|
2952
2952
|
}
|
|
2953
|
-
}), Cr = Symbol("
|
|
2953
|
+
}), Cr = Symbol("wiScrollbar"), wr = {
|
|
2954
2954
|
vertical: {
|
|
2955
2955
|
offset: "offsetHeight",
|
|
2956
2956
|
scroll: "scrollTop",
|
|
@@ -3003,7 +3003,7 @@ var kr = ["aria-orientation", "aria-controls"], Ar = /* @__PURE__ */ p({
|
|
|
3003
3003
|
},
|
|
3004
3004
|
setup(e) {
|
|
3005
3005
|
let t = e, n = h(Cr);
|
|
3006
|
-
if (!n) throw Error("[
|
|
3006
|
+
if (!n) throw Error("[WiScrollbar] Thumb must be used inside WiScrollbar");
|
|
3007
3007
|
let r = n, a = k(), c = k(), l = k(!1), d = k({}), f = !1, p = !0, m = 0, g = 0, _ = null, v, x, w = o(() => t.vertical ? "vertical" : "horizontal"), T = o(() => wr[w.value]), D = o(() => Er({
|
|
3008
3008
|
size: t.size,
|
|
3009
3009
|
move: t.move,
|
|
@@ -3097,11 +3097,11 @@ var kr = ["aria-orientation", "aria-controls"], Ar = /* @__PURE__ */ p({
|
|
|
3097
3097
|
V();
|
|
3098
3098
|
}), S(() => {
|
|
3099
3099
|
j(), document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", N), v?.(), x?.();
|
|
3100
|
-
}), (t, n) => (E(), s(i, { name: "
|
|
3100
|
+
}), (t, n) => (E(), s(i, { name: "wi-scrollbar-fade" }, {
|
|
3101
3101
|
default: W(() => [te(u("div", {
|
|
3102
3102
|
ref_key: "trackRef",
|
|
3103
3103
|
ref: a,
|
|
3104
|
-
class: y(["
|
|
3104
|
+
class: y(["wi-scrollbar__bar", e.vertical ? "wi-scrollbar__bar--vertical" : "wi-scrollbar__bar--horizontal"]),
|
|
3105
3105
|
role: "scrollbar",
|
|
3106
3106
|
"aria-orientation": e.vertical ? "vertical" : "horizontal",
|
|
3107
3107
|
"aria-controls": L(r).contentId,
|
|
@@ -3111,7 +3111,7 @@ var kr = ["aria-orientation", "aria-controls"], Ar = /* @__PURE__ */ p({
|
|
|
3111
3111
|
}, [u("div", {
|
|
3112
3112
|
ref_key: "thumbRef",
|
|
3113
3113
|
ref: c,
|
|
3114
|
-
class: "
|
|
3114
|
+
class: "wi-scrollbar__thumb",
|
|
3115
3115
|
style: b(D.value),
|
|
3116
3116
|
onMousedown: F
|
|
3117
3117
|
}, null, 36)], 42, kr), [[H, e.size && O.value]])]),
|
|
@@ -3119,7 +3119,7 @@ var kr = ["aria-orientation", "aria-controls"], Ar = /* @__PURE__ */ p({
|
|
|
3119
3119
|
}));
|
|
3120
3120
|
}
|
|
3121
3121
|
}), jr = ["tabindex"], Mr = /* @__PURE__ */ p({
|
|
3122
|
-
name: "
|
|
3122
|
+
name: "WiScrollbar",
|
|
3123
3123
|
__name: "Scrollbar",
|
|
3124
3124
|
props: {
|
|
3125
3125
|
height: { default: "" },
|
|
@@ -3160,7 +3160,7 @@ var kr = ["aria-orientation", "aria-controls"], Ar = /* @__PURE__ */ p({
|
|
|
3160
3160
|
},
|
|
3161
3161
|
emits: ["scroll", "end-reached"],
|
|
3162
3162
|
setup(e, { expose: n, emit: r }) {
|
|
3163
|
-
let i = e, a = r, d = k(), p = k(), m = k(), h = k(0), g = k(0), _ = k(""), w = k(""), A = k(1), j = k(1), P = `
|
|
3163
|
+
let i = e, a = r, d = k(), p = k(), m = k(), h = k(0), g = k(0), _ = k(""), w = k(""), A = k(1), j = k(1), P = `wi-scrollbar-view-${Math.random().toString(36).slice(2, 9)}`, F = o(() => i.id ?? P), I = 0, L = 0, R = "", z = 0, B, V = {
|
|
3164
3164
|
bottom: !1,
|
|
3165
3165
|
top: !1,
|
|
3166
3166
|
right: !1,
|
|
@@ -3174,10 +3174,10 @@ var kr = ["aria-orientation", "aria-controls"], Ar = /* @__PURE__ */ p({
|
|
|
3174
3174
|
let e = {}, t = Tr(i.height), n = Tr(i.maxHeight);
|
|
3175
3175
|
return t && (e.height = t), n && (e.maxHeight = n), [i.wrapStyle, e];
|
|
3176
3176
|
}), te = o(() => [
|
|
3177
|
-
"
|
|
3177
|
+
"wi-scrollbar__wrap",
|
|
3178
3178
|
i.wrapClass,
|
|
3179
|
-
{ "
|
|
3180
|
-
]), G = o(() => ["
|
|
3179
|
+
{ "wi-scrollbar__wrap--hidden-default": !i.native }
|
|
3180
|
+
]), G = o(() => ["wi-scrollbar__view", i.viewClass]);
|
|
3181
3181
|
D(Cr, O({
|
|
3182
3182
|
scrollbarElement: d,
|
|
3183
3183
|
wrapElement: p,
|
|
@@ -3276,7 +3276,7 @@ var kr = ["aria-orientation", "aria-controls"], Ar = /* @__PURE__ */ p({
|
|
|
3276
3276
|
}), (n, r) => (E(), l("div", {
|
|
3277
3277
|
ref_key: "scrollbarRef",
|
|
3278
3278
|
ref: d,
|
|
3279
|
-
class: "
|
|
3279
|
+
class: "wi-scrollbar"
|
|
3280
3280
|
}, [u("div", {
|
|
3281
3281
|
ref_key: "wrapRef",
|
|
3282
3282
|
ref: p,
|
|
@@ -3328,8 +3328,8 @@ var kr = ["aria-orientation", "aria-controls"], Ar = /* @__PURE__ */ p({
|
|
|
3328
3328
|
}
|
|
3329
3329
|
}), Nr = ["aria-modal", "aria-label"], Pr = {
|
|
3330
3330
|
key: 0,
|
|
3331
|
-
class: "
|
|
3332
|
-
}, Fr = { key: 0 }, Ir = ["aria-label"], Lr = { class: "
|
|
3331
|
+
class: "wi-drawer__header"
|
|
3332
|
+
}, Fr = { key: 0 }, Ir = ["aria-label"], Lr = { class: "wi-drawer__body" }, Rr = /* @__PURE__ */ p({
|
|
3333
3333
|
__name: "Drawer",
|
|
3334
3334
|
props: {
|
|
3335
3335
|
modelValue: {
|
|
@@ -3383,15 +3383,15 @@ var kr = ["aria-orientation", "aria-controls"], Ar = /* @__PURE__ */ p({
|
|
|
3383
3383
|
}), (t, r) => (E(), s(n, {
|
|
3384
3384
|
to: h.value.to,
|
|
3385
3385
|
disabled: h.value.disabled
|
|
3386
|
-
}, [f(i, { name: "
|
|
3386
|
+
}, [f(i, { name: "wi-drawer" }, {
|
|
3387
3387
|
default: W(() => [e.modelValue ? (E(), l("div", {
|
|
3388
3388
|
key: 0,
|
|
3389
|
-
class: y(["
|
|
3389
|
+
class: y(["wi-drawer-backdrop", { "wi-drawer-backdrop--modal": e.modal }]),
|
|
3390
3390
|
onClick: K(_, ["self"])
|
|
3391
3391
|
}, [u("aside", {
|
|
3392
3392
|
ref_key: "drawerElement",
|
|
3393
3393
|
ref: m,
|
|
3394
|
-
class: y(["
|
|
3394
|
+
class: y(["wi-drawer", `wi-drawer--${e.position}`]),
|
|
3395
3395
|
role: "dialog",
|
|
3396
3396
|
"aria-modal": e.modal || void 0,
|
|
3397
3397
|
"aria-label": e.header,
|
|
@@ -3399,7 +3399,7 @@ var kr = ["aria-orientation", "aria-controls"], Ar = /* @__PURE__ */ p({
|
|
|
3399
3399
|
}, [t.$slots.header || e.header || e.showCloseIcon ? (E(), l("header", Pr, [M(t.$slots, "header", {}, () => [e.header ? (E(), l("h2", Fr, P(e.header), 1)) : c("", !0)]), e.showCloseIcon ? (E(), l("button", {
|
|
3400
3400
|
key: 0,
|
|
3401
3401
|
type: "button",
|
|
3402
|
-
class: "
|
|
3402
|
+
class: "wi-drawer__close",
|
|
3403
3403
|
"aria-label": L(p).close,
|
|
3404
3404
|
onClick: g
|
|
3405
3405
|
}, " × ", 8, Ir)) : c("", !0)])) : c("", !0), u("div", Lr, [M(t.$slots, "default")])], 10, Nr)], 2)) : c("", !0)]),
|
|
@@ -3475,27 +3475,27 @@ var kr = ["aria-orientation", "aria-controls"], Ar = /* @__PURE__ */ p({
|
|
|
3475
3475
|
}), (t, r) => (E(), l("span", {
|
|
3476
3476
|
ref_key: "root",
|
|
3477
3477
|
ref: p,
|
|
3478
|
-
class: "
|
|
3478
|
+
class: "wi-popover"
|
|
3479
3479
|
}, [u("span", {
|
|
3480
3480
|
ref_key: "trigger",
|
|
3481
3481
|
ref: m,
|
|
3482
|
-
class: "
|
|
3482
|
+
class: "wi-popover__trigger"
|
|
3483
3483
|
}, [M(t.$slots, "default")], 512), (E(), s(n, {
|
|
3484
3484
|
to: _.value.to,
|
|
3485
3485
|
disabled: _.value.disabled
|
|
3486
|
-
}, [f(i, { name: "
|
|
3486
|
+
}, [f(i, { name: "wi-fade" }, {
|
|
3487
3487
|
default: W(() => [e.modelValue ? (E(), l("div", {
|
|
3488
3488
|
key: 0,
|
|
3489
3489
|
ref_key: "panel",
|
|
3490
3490
|
ref: h,
|
|
3491
|
-
class: y(["
|
|
3491
|
+
class: y(["wi-popover__content", [`wi-popover__content--${e.placement}`, { "wi-popover__content--teleported": x.value }]]),
|
|
3492
3492
|
style: b(x.value ? g.value : void 0),
|
|
3493
3493
|
role: "dialog"
|
|
3494
3494
|
}, [M(t.$slots, "content")], 6)) : c("", !0)]),
|
|
3495
3495
|
_: 3
|
|
3496
3496
|
})], 8, ["to", "disabled"]))], 512));
|
|
3497
3497
|
}
|
|
3498
|
-
}), Br = { class: "
|
|
3498
|
+
}), Br = { class: "wi-accordion" }, Vr = [
|
|
3499
3499
|
"id",
|
|
3500
3500
|
"aria-expanded",
|
|
3501
3501
|
"aria-controls",
|
|
@@ -3518,10 +3518,10 @@ var kr = ["aria-orientation", "aria-controls"], Ar = /* @__PURE__ */ p({
|
|
|
3518
3518
|
return a.value.includes(e);
|
|
3519
3519
|
}
|
|
3520
3520
|
function c(e) {
|
|
3521
|
-
return `
|
|
3521
|
+
return `wi-accordion-panel-${e}`;
|
|
3522
3522
|
}
|
|
3523
3523
|
function d(e) {
|
|
3524
|
-
return `
|
|
3524
|
+
return `wi-accordion-header-${e}`;
|
|
3525
3525
|
}
|
|
3526
3526
|
function f(e, t) {
|
|
3527
3527
|
if (!t) {
|
|
@@ -3535,18 +3535,18 @@ var kr = ["aria-orientation", "aria-controls"], Ar = /* @__PURE__ */ p({
|
|
|
3535
3535
|
}
|
|
3536
3536
|
return (n, r) => (E(), l("div", Br, [(E(!0), l(t, null, j(e.tabs, (e) => (E(), l("div", {
|
|
3537
3537
|
key: e.value,
|
|
3538
|
-
class: "
|
|
3538
|
+
class: "wi-accordion__tab"
|
|
3539
3539
|
}, [u("button", {
|
|
3540
3540
|
id: d(e.value),
|
|
3541
3541
|
type: "button",
|
|
3542
|
-
class: y(["
|
|
3542
|
+
class: y(["wi-accordion__header", { "wi-accordion__header--active": s(e.value) }]),
|
|
3543
3543
|
"aria-expanded": s(e.value),
|
|
3544
3544
|
"aria-controls": c(e.value),
|
|
3545
3545
|
disabled: e.disabled,
|
|
3546
3546
|
onClick: (t) => f(e.value, e.disabled)
|
|
3547
3547
|
}, P(e.header), 11, Vr), te(u("div", {
|
|
3548
3548
|
id: c(e.value),
|
|
3549
|
-
class: "
|
|
3549
|
+
class: "wi-accordion__content",
|
|
3550
3550
|
role: "region",
|
|
3551
3551
|
"aria-labelledby": d(e.value)
|
|
3552
3552
|
}, [M(n.$slots, e.value)], 8, Hr), [[H, s(e.value)]])]))), 128))]));
|
|
@@ -3560,12 +3560,12 @@ var kr = ["aria-orientation", "aria-controls"], Ar = /* @__PURE__ */ p({
|
|
|
3560
3560
|
},
|
|
3561
3561
|
setup(e) {
|
|
3562
3562
|
let n = e, r = o(() => Ae(n.severity) ?? "primary"), i = o(() => ke(n.size)), a = o(() => n.value == null || n.value === ""), s = o(() => [
|
|
3563
|
-
"
|
|
3564
|
-
`
|
|
3563
|
+
"wi-badge",
|
|
3564
|
+
`wi-badge--${r.value}`,
|
|
3565
3565
|
{
|
|
3566
|
-
"
|
|
3567
|
-
"
|
|
3568
|
-
"
|
|
3566
|
+
"wi-badge--dot": a.value,
|
|
3567
|
+
"wi-badge--small": i.value === "small",
|
|
3568
|
+
"wi-badge--large": i.value === "large"
|
|
3569
3569
|
}
|
|
3570
3570
|
]);
|
|
3571
3571
|
return (n, r) => (E(), l("span", { class: y(s.value) }, [a.value ? c("", !0) : (E(), l(t, { key: 0 }, [d(P(e.value), 1)], 64))], 2));
|
|
@@ -3603,14 +3603,14 @@ function ti() {
|
|
|
3603
3603
|
//#endregion
|
|
3604
3604
|
//#region src/components/Message/Message.vue?vue&type=script&setup=true&lang.ts
|
|
3605
3605
|
var ni = {
|
|
3606
|
-
class: "
|
|
3606
|
+
class: "wi-message-host",
|
|
3607
3607
|
"aria-live": "polite",
|
|
3608
3608
|
"aria-atomic": "false"
|
|
3609
3609
|
}, ri = {
|
|
3610
3610
|
key: 0,
|
|
3611
|
-
class: "
|
|
3611
|
+
class: "wi-message__icon",
|
|
3612
3612
|
"aria-hidden": "true"
|
|
3613
|
-
}, ii = { class: "
|
|
3613
|
+
}, ii = { class: "wi-message__content" }, ai = ["aria-label", "onClick"], oi = /* @__PURE__ */ p({
|
|
3614
3614
|
__name: "Message",
|
|
3615
3615
|
props: {
|
|
3616
3616
|
teleport: {
|
|
@@ -3639,7 +3639,7 @@ var ni = {
|
|
|
3639
3639
|
}
|
|
3640
3640
|
}
|
|
3641
3641
|
function h(e) {
|
|
3642
|
-
return `
|
|
3642
|
+
return `wi-message--${Ae(e) ?? "info"}`;
|
|
3643
3643
|
}
|
|
3644
3644
|
function g(e) {
|
|
3645
3645
|
ei(e.id);
|
|
@@ -3647,10 +3647,10 @@ var ni = {
|
|
|
3647
3647
|
return (e, r) => (E(), s(n, {
|
|
3648
3648
|
to: p.value.to,
|
|
3649
3649
|
disabled: p.value.disabled
|
|
3650
|
-
}, [u("div", ni, [f(a, { name: "
|
|
3650
|
+
}, [u("div", ni, [f(a, { name: "wi-message-slide" }, {
|
|
3651
3651
|
default: W(() => [(E(!0), l(t, null, j(L(Gr).items, (e) => (E(), l("div", {
|
|
3652
3652
|
key: e.id,
|
|
3653
|
-
class: y(["
|
|
3653
|
+
class: y(["wi-message", h(e.severity)]),
|
|
3654
3654
|
role: "status"
|
|
3655
3655
|
}, [
|
|
3656
3656
|
e.icon === !1 ? c("", !0) : (E(), l("span", ri, [f(X, {
|
|
@@ -3661,7 +3661,7 @@ var ni = {
|
|
|
3661
3661
|
e.closable ? (E(), l("button", {
|
|
3662
3662
|
key: 1,
|
|
3663
3663
|
type: "button",
|
|
3664
|
-
class: "
|
|
3664
|
+
class: "wi-message__close",
|
|
3665
3665
|
"aria-label": L(d).close,
|
|
3666
3666
|
onClick: (t) => g(e)
|
|
3667
3667
|
}, [f(X, {
|
|
@@ -3673,18 +3673,18 @@ var ni = {
|
|
|
3673
3673
|
})])], 8, ["to", "disabled"]));
|
|
3674
3674
|
}
|
|
3675
3675
|
}), si = 3e3, ci = 0, li = p({
|
|
3676
|
-
name: "
|
|
3676
|
+
name: "WiMessageAutoHost",
|
|
3677
3677
|
setup() {
|
|
3678
3678
|
return () => m(oi, { auto: !0 });
|
|
3679
3679
|
}
|
|
3680
3680
|
});
|
|
3681
3681
|
function ui() {
|
|
3682
|
-
typeof document > "u" || qr > 0 || Kr || Yr(Se(li, "
|
|
3682
|
+
typeof document > "u" || qr > 0 || Kr || Yr(Se(li, "wi-message-host-root"));
|
|
3683
3683
|
}
|
|
3684
3684
|
function di(e, t) {
|
|
3685
3685
|
let n = yn(e) ? e : { content: e };
|
|
3686
3686
|
return {
|
|
3687
|
-
id: n.id ?? `
|
|
3687
|
+
id: n.id ?? `wi-message-${Date.now()}-${++ci}`,
|
|
3688
3688
|
content: n.content,
|
|
3689
3689
|
severity: t ?? n.severity ?? "info",
|
|
3690
3690
|
closable: n.closable ?? !1,
|
|
@@ -3725,9 +3725,9 @@ var hi = /* @__PURE__ */ p({
|
|
|
3725
3725
|
animation: { default: "wave" }
|
|
3726
3726
|
},
|
|
3727
3727
|
setup(e) {
|
|
3728
|
-
let t = e, n = o(() => ["
|
|
3729
|
-
"
|
|
3730
|
-
"
|
|
3728
|
+
let t = e, n = o(() => ["wi-skeleton", {
|
|
3729
|
+
"wi-skeleton--circle": t.shape === "circle",
|
|
3730
|
+
"wi-skeleton--wave": t.animation === "wave"
|
|
3731
3731
|
}]), r = o(() => ({
|
|
3732
3732
|
width: t.width,
|
|
3733
3733
|
height: t.height,
|
|
@@ -3741,7 +3741,7 @@ var hi = /* @__PURE__ */ p({
|
|
|
3741
3741
|
}
|
|
3742
3742
|
}), gi = ["aria-label"], _i = ["src", "alt"], vi = {
|
|
3743
3743
|
key: 2,
|
|
3744
|
-
class: "
|
|
3744
|
+
class: "wi-avatar__label"
|
|
3745
3745
|
}, yi = /* @__PURE__ */ p({
|
|
3746
3746
|
__name: "Avatar",
|
|
3747
3747
|
props: {
|
|
@@ -3753,11 +3753,11 @@ var hi = /* @__PURE__ */ p({
|
|
|
3753
3753
|
},
|
|
3754
3754
|
setup(e) {
|
|
3755
3755
|
let t = e, n = o(() => t.size === "sm" ? "normal" : t.size === "lg" || t.size === "large" ? "large" : t.size === "xlarge" ? "xlarge" : "normal"), r = o(() => [
|
|
3756
|
-
"
|
|
3757
|
-
`
|
|
3756
|
+
"wi-avatar",
|
|
3757
|
+
`wi-avatar--${t.shape}`,
|
|
3758
3758
|
{
|
|
3759
|
-
"
|
|
3760
|
-
"
|
|
3759
|
+
"wi-avatar--large": n.value === "large",
|
|
3760
|
+
"wi-avatar--xlarge": n.value === "xlarge"
|
|
3761
3761
|
}
|
|
3762
3762
|
]), i = o(() => t.image ? "image" : t.icon ? "icon" : "label");
|
|
3763
3763
|
return (t, n) => (E(), l("span", {
|
|
@@ -3766,19 +3766,19 @@ var hi = /* @__PURE__ */ p({
|
|
|
3766
3766
|
"aria-label": e.label || void 0
|
|
3767
3767
|
}, [i.value === "image" ? (E(), l("img", {
|
|
3768
3768
|
key: 0,
|
|
3769
|
-
class: "
|
|
3769
|
+
class: "wi-avatar__image",
|
|
3770
3770
|
src: e.image,
|
|
3771
3771
|
alt: e.label || ""
|
|
3772
3772
|
}, null, 8, _i)) : i.value === "icon" ? (E(), s(X, {
|
|
3773
3773
|
key: 1,
|
|
3774
|
-
class: "
|
|
3774
|
+
class: "wi-avatar__icon",
|
|
3775
3775
|
name: e.icon,
|
|
3776
3776
|
size: "sm"
|
|
3777
3777
|
}, null, 8, ["name"])) : e.label ? (E(), l("span", vi, P(e.label), 1)) : c("", !0)], 10, gi));
|
|
3778
3778
|
}
|
|
3779
3779
|
}), bi = ["aria-disabled"], xi = ["src"], Si = {
|
|
3780
3780
|
key: 2,
|
|
3781
|
-
class: "
|
|
3781
|
+
class: "wi-chip__label"
|
|
3782
3782
|
}, Ci = ["disabled", "aria-label"], wi = /* @__PURE__ */ p({
|
|
3783
3783
|
__name: "Chip",
|
|
3784
3784
|
props: {
|
|
@@ -3796,9 +3796,9 @@ var hi = /* @__PURE__ */ p({
|
|
|
3796
3796
|
},
|
|
3797
3797
|
emits: ["remove"],
|
|
3798
3798
|
setup(e, { emit: t }) {
|
|
3799
|
-
let n = e, r = t, i = Z(), a = o(() => ["
|
|
3800
|
-
"
|
|
3801
|
-
"
|
|
3799
|
+
let n = e, r = t, i = Z(), a = o(() => ["wi-chip", {
|
|
3800
|
+
"wi-chip--disabled": n.disabled,
|
|
3801
|
+
"wi-chip--removable": n.removable
|
|
3802
3802
|
}]);
|
|
3803
3803
|
function u(e) {
|
|
3804
3804
|
n.disabled || r("remove", e);
|
|
@@ -3809,12 +3809,12 @@ var hi = /* @__PURE__ */ p({
|
|
|
3809
3809
|
}, [
|
|
3810
3810
|
e.image ? (E(), l("img", {
|
|
3811
3811
|
key: 0,
|
|
3812
|
-
class: "
|
|
3812
|
+
class: "wi-chip__image",
|
|
3813
3813
|
src: e.image,
|
|
3814
3814
|
alt: ""
|
|
3815
3815
|
}, null, 8, xi)) : e.icon ? (E(), s(X, {
|
|
3816
3816
|
key: 1,
|
|
3817
|
-
class: "
|
|
3817
|
+
class: "wi-chip__icon",
|
|
3818
3818
|
name: e.icon,
|
|
3819
3819
|
size: "sm"
|
|
3820
3820
|
}, null, 8, ["name"])) : c("", !0),
|
|
@@ -3822,7 +3822,7 @@ var hi = /* @__PURE__ */ p({
|
|
|
3822
3822
|
e.removable ? (E(), l("button", {
|
|
3823
3823
|
key: 3,
|
|
3824
3824
|
type: "button",
|
|
3825
|
-
class: "
|
|
3825
|
+
class: "wi-chip__remove",
|
|
3826
3826
|
disabled: e.disabled,
|
|
3827
3827
|
"aria-label": L(i).remove,
|
|
3828
3828
|
onClick: u
|
|
@@ -3835,7 +3835,7 @@ var hi = /* @__PURE__ */ p({
|
|
|
3835
3835
|
"aria-valuenow"
|
|
3836
3836
|
], Ei = {
|
|
3837
3837
|
key: 0,
|
|
3838
|
-
class: "
|
|
3838
|
+
class: "wi-progressbar__label"
|
|
3839
3839
|
}, Di = /* @__PURE__ */ p({
|
|
3840
3840
|
__name: "ProgressBar",
|
|
3841
3841
|
props: {
|
|
@@ -3847,7 +3847,7 @@ var hi = /* @__PURE__ */ p({
|
|
|
3847
3847
|
}
|
|
3848
3848
|
},
|
|
3849
3849
|
setup(e) {
|
|
3850
|
-
let t = e, n = o(() => Math.min(100, Math.max(0, t.value))), r = o(() => t.mode === "indeterminate"), i = o(() => ["
|
|
3850
|
+
let t = e, n = o(() => Math.min(100, Math.max(0, t.value))), r = o(() => t.mode === "indeterminate"), i = o(() => ["wi-progressbar", { "wi-progressbar--indeterminate": r.value }]), a = o(() => r.value ? void 0 : { width: `${n.value}%` }), s = o(() => `${Math.round(n.value)}%`);
|
|
3851
3851
|
return (t, o) => (E(), l("div", {
|
|
3852
3852
|
class: y(i.value),
|
|
3853
3853
|
role: "progressbar",
|
|
@@ -3855,7 +3855,7 @@ var hi = /* @__PURE__ */ p({
|
|
|
3855
3855
|
"aria-valuemax": r.value ? void 0 : 100,
|
|
3856
3856
|
"aria-valuenow": r.value ? void 0 : n.value
|
|
3857
3857
|
}, [u("div", {
|
|
3858
|
-
class: "
|
|
3858
|
+
class: "wi-progressbar__value",
|
|
3859
3859
|
style: b(a.value)
|
|
3860
3860
|
}, [e.showValue && !r.value ? (E(), l("span", Ei, P(s.value), 1)) : c("", !0)], 4)], 10, Ti));
|
|
3861
3861
|
}
|
|
@@ -3897,14 +3897,14 @@ var hi = /* @__PURE__ */ p({
|
|
|
3897
3897
|
},
|
|
3898
3898
|
emits: ["update:modelValue"],
|
|
3899
3899
|
setup(e, { emit: t }) {
|
|
3900
|
-
let n = R(), r = e, i = t, a = Y(), s = Z(), d = o(() => r.id ?? `
|
|
3901
|
-
"
|
|
3902
|
-
`
|
|
3900
|
+
let n = R(), r = e, i = t, a = Y(), s = Z(), d = o(() => r.id ?? `wi-inputnumber-${Math.random().toString(36).slice(2, 8)}`), f = o(() => ke(r.size ?? a.value.size)), p = o(() => [
|
|
3901
|
+
"wi-inputnumber",
|
|
3902
|
+
`wi-inputnumber--${f.value}`,
|
|
3903
3903
|
{
|
|
3904
|
-
"
|
|
3905
|
-
"
|
|
3906
|
-
"
|
|
3907
|
-
"
|
|
3904
|
+
"wi-inputnumber--fluid": r.fluid,
|
|
3905
|
+
"wi-inputnumber--invalid": r.invalid,
|
|
3906
|
+
"wi-inputnumber--disabled": r.disabled,
|
|
3907
|
+
"wi-inputnumber--buttons": r.showButtons
|
|
3908
3908
|
}
|
|
3909
3909
|
]);
|
|
3910
3910
|
function m(e) {
|
|
@@ -3925,14 +3925,14 @@ var hi = /* @__PURE__ */ p({
|
|
|
3925
3925
|
let t = r.modelValue ?? r.min ?? 0;
|
|
3926
3926
|
i("update:modelValue", m(t + e * r.step));
|
|
3927
3927
|
}
|
|
3928
|
-
return (t, r) => (E(), l("div", { class: y(["
|
|
3928
|
+
return (t, r) => (E(), l("div", { class: y(["wi-inputnumber-field", { "wi-inputnumber-field--fluid": e.fluid }]) }, [e.label ? (E(), l("label", {
|
|
3929
3929
|
key: 0,
|
|
3930
|
-
class: "
|
|
3930
|
+
class: "wi-inputnumber-field__label",
|
|
3931
3931
|
for: d.value
|
|
3932
3932
|
}, P(e.label), 9, Oi)) : c("", !0), u("div", { class: y(p.value) }, [
|
|
3933
3933
|
e.showButtons ? (E(), l("button", {
|
|
3934
3934
|
key: 0,
|
|
3935
|
-
class: "
|
|
3935
|
+
class: "wi-inputnumber__button wi-inputnumber__button--decrement",
|
|
3936
3936
|
type: "button",
|
|
3937
3937
|
"aria-label": L(s).decrease,
|
|
3938
3938
|
disabled: e.disabled || e.min != null && e.modelValue != null && e.modelValue <= e.min,
|
|
@@ -3940,7 +3940,7 @@ var hi = /* @__PURE__ */ p({
|
|
|
3940
3940
|
}, " − ", 8, ki)) : c("", !0),
|
|
3941
3941
|
u("input", _(L(n), {
|
|
3942
3942
|
id: d.value,
|
|
3943
|
-
class: "
|
|
3943
|
+
class: "wi-inputnumber__input",
|
|
3944
3944
|
type: "number",
|
|
3945
3945
|
value: e.modelValue ?? "",
|
|
3946
3946
|
min: e.min,
|
|
@@ -3952,7 +3952,7 @@ var hi = /* @__PURE__ */ p({
|
|
|
3952
3952
|
}), null, 16, Ai),
|
|
3953
3953
|
e.showButtons ? (E(), l("button", {
|
|
3954
3954
|
key: 1,
|
|
3955
|
-
class: "
|
|
3955
|
+
class: "wi-inputnumber__button wi-inputnumber__button--increment",
|
|
3956
3956
|
type: "button",
|
|
3957
3957
|
"aria-label": L(s).increase,
|
|
3958
3958
|
disabled: e.disabled || e.max != null && e.modelValue != null && e.modelValue >= e.max,
|
|
@@ -4003,33 +4003,33 @@ var hi = /* @__PURE__ */ p({
|
|
|
4003
4003
|
},
|
|
4004
4004
|
emits: ["update:modelValue"],
|
|
4005
4005
|
setup(e, { emit: t }) {
|
|
4006
|
-
let n = R(), r = e, i = t, a = Y(), d = Z(), f = k(!1), p = o(() => r.id ?? `
|
|
4006
|
+
let n = R(), r = e, i = t, a = Y(), d = Z(), f = k(!1), p = o(() => r.id ?? `wi-password-${Math.random().toString(36).slice(2, 8)}`), m = o(() => ke(r.size ?? a.value.size)), h = o(() => typeof r.showIcon == "string" ? r.showIcon : void 0), g = o(() => typeof r.showIcon == "string" || !r.showIcon ? void 0 : r.showIcon), v = o(() => typeof r.hideIcon == "string" ? r.hideIcon : void 0), b = o(() => typeof r.hideIcon == "string" || !r.hideIcon ? void 0 : r.hideIcon), x = o(() => {
|
|
4007
4007
|
let e = r.modelValue ?? "";
|
|
4008
4008
|
if (!e) return "empty";
|
|
4009
4009
|
let t = 0;
|
|
4010
4010
|
return e.length >= 8 && (t += 1), /[A-Z]/.test(e) && /[a-z]/.test(e) && (t += 1), /\d/.test(e) && (t += 1), /[^A-Za-z0-9]/.test(e) && (t += 1), t <= 1 ? "weak" : t <= 3 ? "medium" : "strong";
|
|
4011
4011
|
}), S = o(() => x.value === "weak" ? d.value.passwordWeak : x.value === "medium" ? d.value.passwordMedium : x.value === "strong" ? d.value.passwordStrong : ""), C = o(() => [
|
|
4012
|
-
"
|
|
4013
|
-
`
|
|
4012
|
+
"wi-password",
|
|
4013
|
+
`wi-password--${m.value}`,
|
|
4014
4014
|
{
|
|
4015
|
-
"
|
|
4016
|
-
"
|
|
4017
|
-
"
|
|
4018
|
-
"
|
|
4015
|
+
"wi-password--fluid": r.fluid,
|
|
4016
|
+
"wi-password--invalid": r.invalid,
|
|
4017
|
+
"wi-password--disabled": r.disabled,
|
|
4018
|
+
"wi-password--toggle": r.toggleMask
|
|
4019
4019
|
}
|
|
4020
4020
|
]);
|
|
4021
4021
|
function w(e) {
|
|
4022
4022
|
r.disabled || i("update:modelValue", e.target.value);
|
|
4023
4023
|
}
|
|
4024
|
-
return (t, r) => (E(), l("div", { class: y(["
|
|
4024
|
+
return (t, r) => (E(), l("div", { class: y(["wi-password-field", { "wi-password-field--fluid": e.fluid }]) }, [
|
|
4025
4025
|
e.label ? (E(), l("label", {
|
|
4026
4026
|
key: 0,
|
|
4027
|
-
class: "
|
|
4027
|
+
class: "wi-password-field__label",
|
|
4028
4028
|
for: p.value
|
|
4029
4029
|
}, P(e.label), 9, Ni)) : c("", !0),
|
|
4030
4030
|
u("div", { class: y(C.value) }, [u("input", _(L(n), {
|
|
4031
4031
|
id: p.value,
|
|
4032
|
-
class: "
|
|
4032
|
+
class: "wi-password__input",
|
|
4033
4033
|
type: f.value ? "text" : "password",
|
|
4034
4034
|
value: e.modelValue,
|
|
4035
4035
|
disabled: e.disabled,
|
|
@@ -4038,7 +4038,7 @@ var hi = /* @__PURE__ */ p({
|
|
|
4038
4038
|
onInput: w
|
|
4039
4039
|
}), null, 16, Pi), e.toggleMask ? (E(), l("button", {
|
|
4040
4040
|
key: 0,
|
|
4041
|
-
class: "
|
|
4041
|
+
class: "wi-password__toggle",
|
|
4042
4042
|
type: "button",
|
|
4043
4043
|
"aria-label": f.value ? L(d).hidePassword : L(d).showPassword,
|
|
4044
4044
|
"aria-pressed": f.value,
|
|
@@ -4055,11 +4055,11 @@ var hi = /* @__PURE__ */ p({
|
|
|
4055
4055
|
}, null, 8, ["name"])) : g.value ? (E(), s(N(g.value), { key: 1 })) : c("", !0)], void 0, 1)], 8, Fi)) : c("", !0)], 2),
|
|
4056
4056
|
e.feedback && x.value !== "empty" ? (E(), l("span", {
|
|
4057
4057
|
key: 1,
|
|
4058
|
-
class: y(["
|
|
4058
|
+
class: y(["wi-password__feedback", `wi-password__feedback--${x.value}`])
|
|
4059
4059
|
}, P(L($e)(L(d).passwordStrength, { value: S.value })), 3)) : c("", !0)
|
|
4060
4060
|
], 2));
|
|
4061
4061
|
}
|
|
4062
|
-
}), Li = { class: "
|
|
4062
|
+
}), Li = { class: "wi-float-label" }, Ri = { key: 0 }, zi = /* @__PURE__ */ p({
|
|
4063
4063
|
__name: "FloatLabel",
|
|
4064
4064
|
props: { label: {} },
|
|
4065
4065
|
setup(e) {
|
|
@@ -4067,21 +4067,21 @@ var hi = /* @__PURE__ */ p({
|
|
|
4067
4067
|
}
|
|
4068
4068
|
}), Bi = {
|
|
4069
4069
|
key: 0,
|
|
4070
|
-
class: "
|
|
4070
|
+
class: "wi-icon-field__icon",
|
|
4071
4071
|
"aria-hidden": "true"
|
|
4072
4072
|
}, Vi = /* @__PURE__ */ p({
|
|
4073
4073
|
__name: "IconField",
|
|
4074
4074
|
props: { iconPosition: { default: "left" } },
|
|
4075
4075
|
setup(e) {
|
|
4076
|
-
let t = e, n = o(() => ["
|
|
4076
|
+
let t = e, n = o(() => ["wi-icon-field", t.iconPosition === "right" ? "wi-icon-field--right" : "wi-icon-field--left"]);
|
|
4077
4077
|
return (e, t) => (E(), l("div", { class: y(n.value) }, [e.$slots.icon ? (E(), l("span", Bi, [M(e.$slots, "icon")])) : c("", !0), M(e.$slots, "default")], 2));
|
|
4078
4078
|
}
|
|
4079
|
-
}), Hi = { class: "
|
|
4079
|
+
}), Hi = { class: "wi-inputgroup" }, Ui = /* @__PURE__ */ p({
|
|
4080
4080
|
__name: "InputGroup",
|
|
4081
4081
|
setup(e) {
|
|
4082
4082
|
return (e, t) => (E(), l("div", Hi, [M(e.$slots, "default")]));
|
|
4083
4083
|
}
|
|
4084
|
-
}), Wi = { class: "
|
|
4084
|
+
}), Wi = { class: "wi-inputgroup-addon" }, Gi = /* @__PURE__ */ p({
|
|
4085
4085
|
__name: "InputGroupAddon",
|
|
4086
4086
|
setup(e) {
|
|
4087
4087
|
return (e, t) => (E(), l("span", Wi, [M(e.$slots, "default")]));
|
|
@@ -4117,11 +4117,11 @@ var hi = /* @__PURE__ */ p({
|
|
|
4117
4117
|
emits: ["update:modelValue"],
|
|
4118
4118
|
setup(e, { emit: n }) {
|
|
4119
4119
|
let r = e, i = n, a = Y(), s = o(() => ke(r.size ?? a.value.size)), c = o(() => [
|
|
4120
|
-
"
|
|
4121
|
-
`
|
|
4120
|
+
"wi-selectbutton",
|
|
4121
|
+
`wi-selectbutton--${s.value}`,
|
|
4122
4122
|
{
|
|
4123
|
-
"
|
|
4124
|
-
"
|
|
4123
|
+
"wi-selectbutton--disabled": r.disabled,
|
|
4124
|
+
"wi-selectbutton--invalid": r.invalid
|
|
4125
4125
|
}
|
|
4126
4126
|
]);
|
|
4127
4127
|
function u(e) {
|
|
@@ -4143,7 +4143,7 @@ var hi = /* @__PURE__ */ p({
|
|
|
4143
4143
|
}, [(E(!0), l(t, null, j(e.options, (t) => (E(), l("button", {
|
|
4144
4144
|
key: String(t.value),
|
|
4145
4145
|
type: "button",
|
|
4146
|
-
class: y(["
|
|
4146
|
+
class: y(["wi-selectbutton__button", { "wi-selectbutton__button--active": u(t) }]),
|
|
4147
4147
|
disabled: e.disabled || t.disabled,
|
|
4148
4148
|
"aria-pressed": u(t),
|
|
4149
4149
|
onClick: (e) => d(t)
|
|
@@ -4187,9 +4187,9 @@ var hi = /* @__PURE__ */ p({
|
|
|
4187
4187
|
},
|
|
4188
4188
|
emits: ["update:modelValue"],
|
|
4189
4189
|
setup(e, { emit: n }) {
|
|
4190
|
-
let r = e, i = n, a = Z(), s = o(() => Array.isArray(r.modelValue) ? r.modelValue[0] ?? r.min : r.modelValue ?? r.min), c = o(() => Array.isArray(r.modelValue) && r.modelValue.length >= 2 ? [r.modelValue[0], r.modelValue[1]] : [r.min, r.max]), d = o(() => ["
|
|
4191
|
-
"
|
|
4192
|
-
"
|
|
4190
|
+
let r = e, i = n, a = Z(), s = o(() => Array.isArray(r.modelValue) ? r.modelValue[0] ?? r.min : r.modelValue ?? r.min), c = o(() => Array.isArray(r.modelValue) && r.modelValue.length >= 2 ? [r.modelValue[0], r.modelValue[1]] : [r.min, r.max]), d = o(() => ["wi-slider", {
|
|
4191
|
+
"wi-slider--disabled": r.disabled,
|
|
4192
|
+
"wi-slider--range": r.range
|
|
4193
4193
|
}]);
|
|
4194
4194
|
function f(e) {
|
|
4195
4195
|
r.disabled || i("update:modelValue", Number(e.target.value));
|
|
@@ -4200,7 +4200,7 @@ var hi = /* @__PURE__ */ p({
|
|
|
4200
4200
|
n[e] = Number(t.target.value), n[0] > n[1] && (e === 0 ? n[1] = n[0] : n[0] = n[1]), i("update:modelValue", n);
|
|
4201
4201
|
}
|
|
4202
4202
|
return (n, r) => (E(), l("div", { class: y(d.value) }, [e.range ? (E(), l(t, { key: 0 }, [u("input", {
|
|
4203
|
-
class: "
|
|
4203
|
+
class: "wi-slider__input wi-slider__input--start",
|
|
4204
4204
|
type: "range",
|
|
4205
4205
|
min: e.min,
|
|
4206
4206
|
max: e.max,
|
|
@@ -4210,7 +4210,7 @@ var hi = /* @__PURE__ */ p({
|
|
|
4210
4210
|
"aria-label": L(a).rangeStart,
|
|
4211
4211
|
onInput: r[0] ||= (e) => p(0, e)
|
|
4212
4212
|
}, null, 40, Ji), u("input", {
|
|
4213
|
-
class: "
|
|
4213
|
+
class: "wi-slider__input wi-slider__input--end",
|
|
4214
4214
|
type: "range",
|
|
4215
4215
|
min: e.min,
|
|
4216
4216
|
max: e.max,
|
|
@@ -4221,7 +4221,7 @@ var hi = /* @__PURE__ */ p({
|
|
|
4221
4221
|
onInput: r[1] ||= (e) => p(1, e)
|
|
4222
4222
|
}, null, 40, Yi)], 64)) : (E(), l("input", {
|
|
4223
4223
|
key: 1,
|
|
4224
|
-
class: "
|
|
4224
|
+
class: "wi-slider__input",
|
|
4225
4225
|
type: "range",
|
|
4226
4226
|
min: e.min,
|
|
4227
4227
|
max: e.max,
|
|
@@ -4255,9 +4255,9 @@ var hi = /* @__PURE__ */ p({
|
|
|
4255
4255
|
},
|
|
4256
4256
|
emits: ["update:modelValue"],
|
|
4257
4257
|
setup(e, { emit: n }) {
|
|
4258
|
-
let r = e, i = n, a = Z(), s = o(() => Array.from({ length: Math.max(1, r.stars) }, (e, t) => t + 1)), u = o(() => ["
|
|
4259
|
-
"
|
|
4260
|
-
"
|
|
4258
|
+
let r = e, i = n, a = Z(), s = o(() => Array.from({ length: Math.max(1, r.stars) }, (e, t) => t + 1)), u = o(() => ["wi-rating", {
|
|
4259
|
+
"wi-rating--disabled": r.disabled,
|
|
4260
|
+
"wi-rating--readonly": r.readonly
|
|
4261
4261
|
}]);
|
|
4262
4262
|
function d(e) {
|
|
4263
4263
|
r.disabled || r.readonly || i("update:modelValue", e);
|
|
@@ -4274,22 +4274,22 @@ var hi = /* @__PURE__ */ p({
|
|
|
4274
4274
|
}, [e.cancel ? (E(), l("button", {
|
|
4275
4275
|
key: 0,
|
|
4276
4276
|
type: "button",
|
|
4277
|
-
class: "
|
|
4277
|
+
class: "wi-rating__cancel",
|
|
4278
4278
|
"aria-label": L(a).clearRating,
|
|
4279
4279
|
disabled: e.disabled || e.readonly,
|
|
4280
4280
|
onClick: f
|
|
4281
4281
|
}, " × ", 8, $i)) : c("", !0), (E(!0), l(t, null, j(s.value, (t) => (E(), l("button", {
|
|
4282
4282
|
key: t,
|
|
4283
4283
|
type: "button",
|
|
4284
|
-
class: y(["
|
|
4284
|
+
class: y(["wi-rating__star", { "wi-rating__star--on": t <= e.modelValue }]),
|
|
4285
4285
|
"aria-label": L($e)(L(a).star, { value: t }),
|
|
4286
4286
|
disabled: e.disabled || e.readonly,
|
|
4287
4287
|
onClick: (e) => d(t)
|
|
4288
4288
|
}, P(t <= e.modelValue ? "★" : "☆"), 11, ea))), 128))], 10, Qi));
|
|
4289
4289
|
}
|
|
4290
|
-
}), na = ["aria-label"], ra = { class: "
|
|
4290
|
+
}), na = ["aria-label"], ra = { class: "wi-breadcrumb__list" }, ia = ["href"], aa = ["aria-current"], oa = {
|
|
4291
4291
|
key: 2,
|
|
4292
|
-
class: "
|
|
4292
|
+
class: "wi-breadcrumb__separator",
|
|
4293
4293
|
"aria-hidden": "true"
|
|
4294
4294
|
}, sa = /* @__PURE__ */ p({
|
|
4295
4295
|
__name: "Breadcrumb",
|
|
@@ -4306,28 +4306,28 @@ var hi = /* @__PURE__ */ p({
|
|
|
4306
4306
|
}), e.push(...n.model), e;
|
|
4307
4307
|
});
|
|
4308
4308
|
return (e, n) => (E(), l("nav", {
|
|
4309
|
-
class: "
|
|
4309
|
+
class: "wi-breadcrumb",
|
|
4310
4310
|
"aria-label": L(r).breadcrumb
|
|
4311
4311
|
}, [u("ol", ra, [(E(!0), l(t, null, j(i.value, (e, t) => (E(), l("li", {
|
|
4312
4312
|
key: `${e.label}-${t}`,
|
|
4313
|
-
class: "
|
|
4313
|
+
class: "wi-breadcrumb__item"
|
|
4314
4314
|
}, [e.to && !e.disabled ? (E(), l("a", {
|
|
4315
4315
|
key: 0,
|
|
4316
|
-
class: "
|
|
4316
|
+
class: "wi-breadcrumb__link",
|
|
4317
4317
|
href: e.to
|
|
4318
4318
|
}, P(e.label), 9, ia)) : (E(), l("span", {
|
|
4319
4319
|
key: 1,
|
|
4320
|
-
class: y(["
|
|
4321
|
-
"
|
|
4322
|
-
"
|
|
4320
|
+
class: y(["wi-breadcrumb__link", {
|
|
4321
|
+
"wi-breadcrumb__link--current": t === i.value.length - 1,
|
|
4322
|
+
"wi-breadcrumb__link--disabled": e.disabled
|
|
4323
4323
|
}]),
|
|
4324
4324
|
"aria-current": t === i.value.length - 1 ? "page" : void 0
|
|
4325
4325
|
}, P(e.label), 11, aa)), t < i.value.length - 1 ? (E(), l("span", oa, "/")) : c("", !0)]))), 128))])], 8, na));
|
|
4326
4326
|
}
|
|
4327
4327
|
}), ca = {
|
|
4328
4328
|
key: 0,
|
|
4329
|
-
class: "
|
|
4330
|
-
}, la = { class: "
|
|
4329
|
+
class: "wi-panel__header"
|
|
4330
|
+
}, la = { class: "wi-panel__title" }, ua = ["aria-expanded", "aria-label"], da = { "aria-hidden": "true" }, fa = { class: "wi-panel__content" }, pa = /* @__PURE__ */ p({
|
|
4331
4331
|
__name: "Panel",
|
|
4332
4332
|
props: {
|
|
4333
4333
|
header: {},
|
|
@@ -4346,10 +4346,10 @@ var hi = /* @__PURE__ */ p({
|
|
|
4346
4346
|
let e = !a.value;
|
|
4347
4347
|
r("update:collapsed", e), r("update:modelValue", e);
|
|
4348
4348
|
}
|
|
4349
|
-
return (t, n) => (E(), l("section", { class: y(["
|
|
4349
|
+
return (t, n) => (E(), l("section", { class: y(["wi-panel", { "wi-panel--collapsed": a.value }]) }, [t.$slots.header || e.header || e.toggleable ? (E(), l("header", ca, [u("div", la, [M(t.$slots, "header", {}, () => [d(P(e.header), 1)])]), e.toggleable ? (E(), l("button", {
|
|
4350
4350
|
key: 0,
|
|
4351
4351
|
type: "button",
|
|
4352
|
-
class: "
|
|
4352
|
+
class: "wi-panel__toggler",
|
|
4353
4353
|
"aria-expanded": !a.value,
|
|
4354
4354
|
"aria-label": a.value ? L(i).expand : L(i).collapse,
|
|
4355
4355
|
onClick: s
|
|
@@ -4357,8 +4357,8 @@ var hi = /* @__PURE__ */ p({
|
|
|
4357
4357
|
}
|
|
4358
4358
|
}), ma = {
|
|
4359
4359
|
key: 0,
|
|
4360
|
-
class: "
|
|
4361
|
-
}, ha = ["aria-expanded"], ga = { "aria-hidden": "true" }, _a = { class: "
|
|
4360
|
+
class: "wi-fieldset__legend"
|
|
4361
|
+
}, ha = ["aria-expanded"], ga = { "aria-hidden": "true" }, _a = { class: "wi-fieldset__content" }, va = /* @__PURE__ */ p({
|
|
4362
4362
|
__name: "Fieldset",
|
|
4363
4363
|
props: {
|
|
4364
4364
|
legend: {},
|
|
@@ -4377,10 +4377,10 @@ var hi = /* @__PURE__ */ p({
|
|
|
4377
4377
|
function a() {
|
|
4378
4378
|
n.toggleable && r("update:collapsed", !i.value);
|
|
4379
4379
|
}
|
|
4380
|
-
return (t, n) => (E(), l("fieldset", { class: y(["
|
|
4380
|
+
return (t, n) => (E(), l("fieldset", { class: y(["wi-fieldset", { "wi-fieldset--collapsed": i.value }]) }, [t.$slots.legend || e.legend || e.toggleable ? (E(), l("legend", ma, [e.toggleable ? (E(), l("button", {
|
|
4381
4381
|
key: 0,
|
|
4382
4382
|
type: "button",
|
|
4383
|
-
class: "
|
|
4383
|
+
class: "wi-fieldset__toggler",
|
|
4384
4384
|
"aria-expanded": !i.value,
|
|
4385
4385
|
onClick: a
|
|
4386
4386
|
}, [u("span", ga, P(i.value ? "▸" : "▾"), 1), M(t.$slots, "legend", {}, () => [d(P(e.legend), 1)])], 8, ha)) : M(t.$slots, "legend", {}, () => [d(P(e.legend), 1)], void 0, 1)])) : c("", !0), te(u("div", _a, [M(t.$slots, "default")], 512), [[H, !i.value]])], 2));
|
|
@@ -4391,7 +4391,7 @@ var hi = /* @__PURE__ */ p({
|
|
|
4391
4391
|
"aria-valuemin",
|
|
4392
4392
|
"aria-valuemax",
|
|
4393
4393
|
"aria-label"
|
|
4394
|
-
], xa = { class: "
|
|
4394
|
+
], xa = { class: "wi-splitter__panel wi-splitter__panel--fill" }, Sa = /* @__PURE__ */ p({
|
|
4395
4395
|
__name: "Splitter",
|
|
4396
4396
|
props: {
|
|
4397
4397
|
layout: { default: "horizontal" },
|
|
@@ -4456,15 +4456,15 @@ var hi = /* @__PURE__ */ p({
|
|
|
4456
4456
|
}), (e, t) => (E(), l("div", {
|
|
4457
4457
|
ref_key: "root",
|
|
4458
4458
|
ref: m,
|
|
4459
|
-
class: y(["
|
|
4459
|
+
class: y(["wi-splitter", [`wi-splitter--${n.layout}`, { "wi-splitter--dragging": h.value }]]),
|
|
4460
4460
|
"aria-orientation": O.value ? "vertical" : "horizontal"
|
|
4461
4461
|
}, [
|
|
4462
4462
|
u("div", {
|
|
4463
|
-
class: "
|
|
4463
|
+
class: "wi-splitter__panel",
|
|
4464
4464
|
style: b(A.value)
|
|
4465
4465
|
}, [T.value ? M(e.$slots, "panel1", {}, void 0, void 0, 0) : D.value[0] ? (E(), s(N(D.value[0]), { key: 1 })) : c("", !0)], 4),
|
|
4466
4466
|
u("div", {
|
|
4467
|
-
class: "
|
|
4467
|
+
class: "wi-splitter__gutter",
|
|
4468
4468
|
role: "separator",
|
|
4469
4469
|
tabindex: "0",
|
|
4470
4470
|
"aria-orientation": O.value ? "horizontal" : "vertical",
|
|
@@ -4480,18 +4480,18 @@ var hi = /* @__PURE__ */ p({
|
|
|
4480
4480
|
], 10, ya));
|
|
4481
4481
|
}
|
|
4482
4482
|
}), Ca = {
|
|
4483
|
-
class: "
|
|
4483
|
+
class: "wi-stepper",
|
|
4484
4484
|
role: "tablist"
|
|
4485
4485
|
}, wa = [
|
|
4486
4486
|
"aria-selected",
|
|
4487
4487
|
"disabled",
|
|
4488
4488
|
"onClick"
|
|
4489
4489
|
], Ta = {
|
|
4490
|
-
class: "
|
|
4490
|
+
class: "wi-stepper__marker",
|
|
4491
4491
|
"aria-hidden": "true"
|
|
4492
|
-
}, Ea = { class: "
|
|
4492
|
+
}, Ea = { class: "wi-stepper__label" }, Da = {
|
|
4493
4493
|
key: 0,
|
|
4494
|
-
class: "
|
|
4494
|
+
class: "wi-stepper__content"
|
|
4495
4495
|
}, Oa = /* @__PURE__ */ p({
|
|
4496
4496
|
__name: "Stepper",
|
|
4497
4497
|
props: {
|
|
@@ -4514,10 +4514,10 @@ var hi = /* @__PURE__ */ p({
|
|
|
4514
4514
|
return (n, r) => (E(), l(t, null, [u("div", Ca, [(E(!0), l(t, null, j(e.steps, (e, t) => (E(), l("button", {
|
|
4515
4515
|
key: `${e.label}-${t}`,
|
|
4516
4516
|
type: "button",
|
|
4517
|
-
class: y(["
|
|
4518
|
-
"
|
|
4519
|
-
"
|
|
4520
|
-
"
|
|
4517
|
+
class: y(["wi-stepper__step", {
|
|
4518
|
+
"wi-stepper__step--active": t === a.value,
|
|
4519
|
+
"wi-stepper__step--completed": t < a.value,
|
|
4520
|
+
"wi-stepper__step--disabled": !s(t, e.disabled)
|
|
4521
4521
|
}]),
|
|
4522
4522
|
role: "tab",
|
|
4523
4523
|
"aria-selected": t === a.value,
|
|
@@ -4530,17 +4530,17 @@ var hi = /* @__PURE__ */ p({
|
|
|
4530
4530
|
for (let [e, r] of t) n[e] = r;
|
|
4531
4531
|
return n;
|
|
4532
4532
|
}, Aa = {}, ja = {
|
|
4533
|
-
class: "
|
|
4533
|
+
class: "wi-toolbar",
|
|
4534
4534
|
role: "toolbar"
|
|
4535
4535
|
}, Ma = {
|
|
4536
4536
|
key: 0,
|
|
4537
|
-
class: "
|
|
4537
|
+
class: "wi-toolbar__start"
|
|
4538
4538
|
}, Na = {
|
|
4539
4539
|
key: 1,
|
|
4540
|
-
class: "
|
|
4540
|
+
class: "wi-toolbar__center"
|
|
4541
4541
|
}, Pa = {
|
|
4542
4542
|
key: 2,
|
|
4543
|
-
class: "
|
|
4543
|
+
class: "wi-toolbar__end"
|
|
4544
4544
|
};
|
|
4545
4545
|
function Fa(e, t) {
|
|
4546
4546
|
return E(), l("div", ja, [
|
|
@@ -4551,11 +4551,11 @@ function Fa(e, t) {
|
|
|
4551
4551
|
}
|
|
4552
4552
|
var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
4553
4553
|
key: 0,
|
|
4554
|
-
class: "
|
|
4554
|
+
class: "wi-menu__separator",
|
|
4555
4555
|
role: "separator"
|
|
4556
4556
|
}, Ra = ["disabled", "onClick"], za = {
|
|
4557
4557
|
key: 0,
|
|
4558
|
-
class: "
|
|
4558
|
+
class: "wi-menu__separator",
|
|
4559
4559
|
role: "separator"
|
|
4560
4560
|
}, Ba = ["disabled", "onClick"], Va = /* @__PURE__ */ p({
|
|
4561
4561
|
__name: "Menu",
|
|
@@ -4590,17 +4590,17 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
4590
4590
|
key: 1,
|
|
4591
4591
|
to: m.value.to,
|
|
4592
4592
|
disabled: m.value.disabled
|
|
4593
|
-
}, [f(i, { name: "
|
|
4593
|
+
}, [f(i, { name: "wi-scale-fade" }, {
|
|
4594
4594
|
default: W(() => [e.modelValue ? (E(), l("div", {
|
|
4595
4595
|
key: 0,
|
|
4596
4596
|
ref_key: "root",
|
|
4597
4597
|
ref: p,
|
|
4598
|
-
class: y(["
|
|
4598
|
+
class: y(["wi-menu wi-menu--popup", { "wi-menu--teleported": h.value }]),
|
|
4599
4599
|
role: "menu"
|
|
4600
4600
|
}, [(E(!0), l(t, null, j(e.model, (e, n) => (E(), l(t, { key: `${e.label ?? "sep"}-${n}` }, [e.separator ? (E(), l("div", za)) : (E(), l("button", {
|
|
4601
4601
|
key: 1,
|
|
4602
4602
|
type: "button",
|
|
4603
|
-
class: "
|
|
4603
|
+
class: "wi-menu__item",
|
|
4604
4604
|
role: "menuitem",
|
|
4605
4605
|
disabled: e.disabled,
|
|
4606
4606
|
onClick: (t) => g(e)
|
|
@@ -4610,12 +4610,12 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
4610
4610
|
key: 0,
|
|
4611
4611
|
ref_key: "root",
|
|
4612
4612
|
ref: p,
|
|
4613
|
-
class: "
|
|
4613
|
+
class: "wi-menu",
|
|
4614
4614
|
role: "menu"
|
|
4615
4615
|
}, [(E(!0), l(t, null, j(e.model, (e, n) => (E(), l(t, { key: `${e.label ?? "sep"}-${n}` }, [e.separator ? (E(), l("div", La)) : (E(), l("button", {
|
|
4616
4616
|
key: 1,
|
|
4617
4617
|
type: "button",
|
|
4618
|
-
class: "
|
|
4618
|
+
class: "wi-menu__item",
|
|
4619
4619
|
role: "menuitem",
|
|
4620
4620
|
disabled: e.disabled,
|
|
4621
4621
|
onClick: (t) => g(e)
|
|
@@ -4628,7 +4628,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
4628
4628
|
"onClick"
|
|
4629
4629
|
], Wa = {
|
|
4630
4630
|
key: 0,
|
|
4631
|
-
class: "
|
|
4631
|
+
class: "wi-menubar__caret",
|
|
4632
4632
|
"aria-hidden": "true"
|
|
4633
4633
|
}, Ga = ["disabled", "onClick"], Ka = /* @__PURE__ */ p({
|
|
4634
4634
|
__name: "Menubar",
|
|
@@ -4669,7 +4669,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
4669
4669
|
}
|
|
4670
4670
|
function M(e) {
|
|
4671
4671
|
let t = e.target;
|
|
4672
|
-
h.value?.contains(t) || document.querySelector(".
|
|
4672
|
+
h.value?.contains(t) || document.querySelector(".wi-menubar__submenu--teleported")?.contains(t) || (m.value = null);
|
|
4673
4673
|
}
|
|
4674
4674
|
function N() {
|
|
4675
4675
|
m.value != null && D();
|
|
@@ -4681,16 +4681,16 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
4681
4681
|
}), (r, a) => (E(), l("nav", {
|
|
4682
4682
|
ref_key: "root",
|
|
4683
4683
|
ref: h,
|
|
4684
|
-
class: "
|
|
4684
|
+
class: "wi-menubar",
|
|
4685
4685
|
"aria-label": L(p).menubar
|
|
4686
4686
|
}, [(E(!0), l(t, null, j(e.model, (e, r) => (E(), l("div", {
|
|
4687
4687
|
key: `${e.label}-${r}`,
|
|
4688
|
-
class: y(["
|
|
4688
|
+
class: y(["wi-menubar__item", { "wi-menubar__item--open": m.value === r }])
|
|
4689
4689
|
}, [u("button", {
|
|
4690
4690
|
ref_for: !0,
|
|
4691
4691
|
ref: (e) => T(e, r),
|
|
4692
4692
|
type: "button",
|
|
4693
|
-
class: "
|
|
4693
|
+
class: "wi-menubar__trigger",
|
|
4694
4694
|
disabled: e.disabled,
|
|
4695
4695
|
"aria-expanded": e.items?.length ? m.value === r : void 0,
|
|
4696
4696
|
"aria-haspopup": e.items?.length ? "menu" : void 0,
|
|
@@ -4698,16 +4698,16 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
4698
4698
|
}, [d(P(e.label) + " ", 1), e.items?.length ? (E(), l("span", Wa, "▾")) : c("", !0)], 8, Ua), (E(), s(n, {
|
|
4699
4699
|
to: x.value.to,
|
|
4700
4700
|
disabled: x.value.disabled
|
|
4701
|
-
}, [f(i, { name: "
|
|
4701
|
+
}, [f(i, { name: "wi-scale-fade" }, {
|
|
4702
4702
|
default: W(() => [e.items?.length && m.value === r ? (E(), l("div", {
|
|
4703
4703
|
key: 0,
|
|
4704
|
-
class: y(["
|
|
4704
|
+
class: y(["wi-menubar__submenu", { "wi-menubar__submenu--teleported": w.value }]),
|
|
4705
4705
|
style: b(w.value ? _.value : void 0),
|
|
4706
4706
|
role: "menu"
|
|
4707
4707
|
}, [(E(!0), l(t, null, j(e.items, (e, t) => (E(), l("button", {
|
|
4708
4708
|
key: `${e.label}-${t}`,
|
|
4709
4709
|
type: "button",
|
|
4710
|
-
class: "
|
|
4710
|
+
class: "wi-menubar__subitem",
|
|
4711
4711
|
role: "menuitem",
|
|
4712
4712
|
disabled: e.disabled,
|
|
4713
4713
|
onClick: K((t) => A(e), ["stop"])
|
|
@@ -4717,7 +4717,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
4717
4717
|
}
|
|
4718
4718
|
}), qa = {
|
|
4719
4719
|
key: 0,
|
|
4720
|
-
class: "
|
|
4720
|
+
class: "wi-contextmenu__separator",
|
|
4721
4721
|
role: "separator"
|
|
4722
4722
|
}, Ja = ["disabled", "onClick"], Ya = /* @__PURE__ */ p({
|
|
4723
4723
|
__name: "ContextMenu",
|
|
@@ -4778,19 +4778,19 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
4778
4778
|
}), (r, a) => (E(), s(n, {
|
|
4779
4779
|
to: g.value.to,
|
|
4780
4780
|
disabled: g.value.disabled
|
|
4781
|
-
}, [f(i, { name: "
|
|
4781
|
+
}, [f(i, { name: "wi-scale-fade" }, {
|
|
4782
4782
|
default: W(() => [e.modelValue ? (E(), l("div", {
|
|
4783
4783
|
key: 0,
|
|
4784
4784
|
ref_key: "root",
|
|
4785
4785
|
ref: m,
|
|
4786
|
-
class: y(["
|
|
4786
|
+
class: y(["wi-contextmenu", { "wi-contextmenu--teleported": _.value }]),
|
|
4787
4787
|
role: "menu",
|
|
4788
4788
|
style: b(v.value),
|
|
4789
4789
|
onClick: a[0] ||= K(() => {}, ["stop"])
|
|
4790
4790
|
}, [(E(!0), l(t, null, j(e.model, (e, n) => (E(), l(t, { key: `${e.label ?? "sep"}-${n}` }, [e.separator ? (E(), l("div", qa)) : (E(), l("button", {
|
|
4791
4791
|
key: 1,
|
|
4792
4792
|
type: "button",
|
|
4793
|
-
class: "
|
|
4793
|
+
class: "wi-contextmenu__item",
|
|
4794
4794
|
role: "menuitem",
|
|
4795
4795
|
disabled: e.disabled,
|
|
4796
4796
|
onClick: (t) => w(e)
|
|
@@ -4800,7 +4800,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
4800
4800
|
}
|
|
4801
4801
|
}), Xa = ["onMouseenter"], Za = {
|
|
4802
4802
|
key: 0,
|
|
4803
|
-
class: "
|
|
4803
|
+
class: "wi-tieredmenu__separator",
|
|
4804
4804
|
role: "separator"
|
|
4805
4805
|
}, Qa = [
|
|
4806
4806
|
"disabled",
|
|
@@ -4809,19 +4809,19 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
4809
4809
|
"onClick"
|
|
4810
4810
|
], $a = {
|
|
4811
4811
|
key: 0,
|
|
4812
|
-
class: "
|
|
4812
|
+
class: "wi-tieredmenu__caret",
|
|
4813
4813
|
"aria-hidden": "true"
|
|
4814
4814
|
}, eo = {
|
|
4815
4815
|
key: 2,
|
|
4816
|
-
class: "
|
|
4816
|
+
class: "wi-tieredmenu__submenu",
|
|
4817
4817
|
role: "menu"
|
|
4818
4818
|
}, to = {
|
|
4819
4819
|
key: 0,
|
|
4820
|
-
class: "
|
|
4820
|
+
class: "wi-tieredmenu__separator",
|
|
4821
4821
|
role: "separator"
|
|
4822
4822
|
}, no = ["disabled", "onClick"], ro = ["onMouseenter"], io = {
|
|
4823
4823
|
key: 0,
|
|
4824
|
-
class: "
|
|
4824
|
+
class: "wi-tieredmenu__separator",
|
|
4825
4825
|
role: "separator"
|
|
4826
4826
|
}, ao = [
|
|
4827
4827
|
"disabled",
|
|
@@ -4830,15 +4830,15 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
4830
4830
|
"onClick"
|
|
4831
4831
|
], oo = {
|
|
4832
4832
|
key: 0,
|
|
4833
|
-
class: "
|
|
4833
|
+
class: "wi-tieredmenu__caret",
|
|
4834
4834
|
"aria-hidden": "true"
|
|
4835
4835
|
}, so = {
|
|
4836
4836
|
key: 2,
|
|
4837
|
-
class: "
|
|
4837
|
+
class: "wi-tieredmenu__submenu",
|
|
4838
4838
|
role: "menu"
|
|
4839
4839
|
}, co = {
|
|
4840
4840
|
key: 0,
|
|
4841
|
-
class: "
|
|
4841
|
+
class: "wi-tieredmenu__separator",
|
|
4842
4842
|
role: "separator"
|
|
4843
4843
|
}, lo = ["disabled", "onClick"], uo = /* @__PURE__ */ p({
|
|
4844
4844
|
__name: "TieredMenu",
|
|
@@ -4883,21 +4883,21 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
4883
4883
|
key: 1,
|
|
4884
4884
|
to: g.value.to,
|
|
4885
4885
|
disabled: g.value.disabled
|
|
4886
|
-
}, [f(i, { name: "
|
|
4886
|
+
}, [f(i, { name: "wi-scale-fade" }, {
|
|
4887
4887
|
default: W(() => [e.modelValue ? (E(), l("div", {
|
|
4888
4888
|
key: 0,
|
|
4889
4889
|
ref_key: "root",
|
|
4890
4890
|
ref: m,
|
|
4891
|
-
class: y(["
|
|
4891
|
+
class: y(["wi-tieredmenu wi-tieredmenu--popup", { "wi-tieredmenu--teleported": _.value }]),
|
|
4892
4892
|
role: "menu"
|
|
4893
4893
|
}, [(E(!0), l(t, null, j(e.model, (e, n) => (E(), l("div", {
|
|
4894
4894
|
key: `${e.label ?? "sep"}-${n}`,
|
|
4895
|
-
class: "
|
|
4895
|
+
class: "wi-tieredmenu__row",
|
|
4896
4896
|
onMouseenter: (t) => x(n, e)
|
|
4897
4897
|
}, [e.separator ? (E(), l("div", io)) : (E(), l("button", {
|
|
4898
4898
|
key: 1,
|
|
4899
4899
|
type: "button",
|
|
4900
|
-
class: "
|
|
4900
|
+
class: "wi-tieredmenu__item",
|
|
4901
4901
|
role: "menuitem",
|
|
4902
4902
|
disabled: e.disabled,
|
|
4903
4903
|
"aria-haspopup": e.items?.length ? "menu" : void 0,
|
|
@@ -4906,7 +4906,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
4906
4906
|
}, [u("span", null, P(e.label), 1), e.items?.length ? (E(), l("span", oo, "▸")) : c("", !0)], 8, ao)), e.items?.length && h.value === n ? (E(), l("div", so, [(E(!0), l(t, null, j(e.items, (e, n) => (E(), l(t, { key: `${e.label ?? "sep"}-${n}` }, [e.separator ? (E(), l("div", co)) : (E(), l("button", {
|
|
4907
4907
|
key: 1,
|
|
4908
4908
|
type: "button",
|
|
4909
|
-
class: "
|
|
4909
|
+
class: "wi-tieredmenu__item",
|
|
4910
4910
|
role: "menuitem",
|
|
4911
4911
|
disabled: e.disabled,
|
|
4912
4912
|
onClick: (t) => b(e)
|
|
@@ -4916,16 +4916,16 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
4916
4916
|
key: 0,
|
|
4917
4917
|
ref_key: "root",
|
|
4918
4918
|
ref: m,
|
|
4919
|
-
class: "
|
|
4919
|
+
class: "wi-tieredmenu",
|
|
4920
4920
|
role: "menu"
|
|
4921
4921
|
}, [(E(!0), l(t, null, j(e.model, (e, n) => (E(), l("div", {
|
|
4922
4922
|
key: `${e.label ?? "sep"}-${n}`,
|
|
4923
|
-
class: "
|
|
4923
|
+
class: "wi-tieredmenu__row",
|
|
4924
4924
|
onMouseenter: (t) => x(n, e)
|
|
4925
4925
|
}, [e.separator ? (E(), l("div", Za)) : (E(), l("button", {
|
|
4926
4926
|
key: 1,
|
|
4927
4927
|
type: "button",
|
|
4928
|
-
class: "
|
|
4928
|
+
class: "wi-tieredmenu__item",
|
|
4929
4929
|
role: "menuitem",
|
|
4930
4930
|
disabled: e.disabled,
|
|
4931
4931
|
"aria-haspopup": e.items?.length ? "menu" : void 0,
|
|
@@ -4934,13 +4934,13 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
4934
4934
|
}, [u("span", null, P(e.label), 1), e.items?.length ? (E(), l("span", $a, "▸")) : c("", !0)], 8, Qa)), e.items?.length && h.value === n ? (E(), l("div", eo, [(E(!0), l(t, null, j(e.items, (e, n) => (E(), l(t, { key: `${e.label ?? "sep"}-${n}` }, [e.separator ? (E(), l("div", to)) : (E(), l("button", {
|
|
4935
4935
|
key: 1,
|
|
4936
4936
|
type: "button",
|
|
4937
|
-
class: "
|
|
4937
|
+
class: "wi-tieredmenu__item",
|
|
4938
4938
|
role: "menuitem",
|
|
4939
4939
|
disabled: e.disabled,
|
|
4940
4940
|
onClick: (t) => b(e)
|
|
4941
4941
|
}, P(e.label), 9, no))], 64))), 128))])) : c("", !0)], 40, Xa))), 128))], 512));
|
|
4942
4942
|
}
|
|
4943
|
-
}), fo = ["aria-label"], po = { class: "
|
|
4943
|
+
}), fo = ["aria-label"], po = { class: "wi-dialog__header wi-confirmdialog__header" }, mo = { class: "wi-dialog__body wi-confirmdialog__message" }, ho = { class: "wi-dialog__footer wi-confirmdialog__footer" }, go = /* @__PURE__ */ p({
|
|
4944
4944
|
__name: "ConfirmDialog",
|
|
4945
4945
|
props: {
|
|
4946
4946
|
modelValue: {
|
|
@@ -4965,8 +4965,8 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
4965
4965
|
],
|
|
4966
4966
|
setup(e, { emit: t }) {
|
|
4967
4967
|
let r = e, a = t, p = Y(), m = Z(), h = k(null), g = o(() => Q(r, p.value.appendTo)), _ = o(() => r.header ?? m.value.confirm), v = o(() => r.acceptLabel ?? m.value.accept), y = o(() => r.rejectLabel ?? m.value.reject), x = k(at()), S = o(() => ({
|
|
4968
|
-
"--
|
|
4969
|
-
"--
|
|
4968
|
+
"--wi-dialog-origin-x": `${x.value.x}px`,
|
|
4969
|
+
"--wi-dialog-origin-y": `${x.value.y}px`
|
|
4970
4970
|
}));
|
|
4971
4971
|
function C() {
|
|
4972
4972
|
a("update:modelValue", !1);
|
|
@@ -4987,18 +4987,18 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
4987
4987
|
}), (t, r) => (E(), s(n, {
|
|
4988
4988
|
to: g.value.to,
|
|
4989
4989
|
disabled: g.value.disabled
|
|
4990
|
-
}, [f(i, { name: "
|
|
4990
|
+
}, [f(i, { name: "wi-dialog" }, {
|
|
4991
4991
|
default: W(() => [e.modelValue ? (E(), l("div", {
|
|
4992
4992
|
key: 0,
|
|
4993
|
-
class: "
|
|
4993
|
+
class: "wi-dialog-backdrop wi-dialog-backdrop--center wi-dialog-backdrop--modal wi-confirmdialog-backdrop",
|
|
4994
4994
|
style: b(S.value)
|
|
4995
4995
|
}, [u("div", {
|
|
4996
|
-
class: "
|
|
4996
|
+
class: "wi-dialog-zoom",
|
|
4997
4997
|
onClick: K(T, ["self"])
|
|
4998
4998
|
}, [u("section", {
|
|
4999
4999
|
ref_key: "dialogElement",
|
|
5000
5000
|
ref: h,
|
|
5001
|
-
class: "
|
|
5001
|
+
class: "wi-dialog wi-confirmdialog",
|
|
5002
5002
|
role: "alertdialog",
|
|
5003
5003
|
"aria-modal": "true",
|
|
5004
5004
|
"aria-label": _.value,
|
|
@@ -5021,7 +5021,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5021
5021
|
}
|
|
5022
5022
|
}), _o = {
|
|
5023
5023
|
key: 0,
|
|
5024
|
-
class: "
|
|
5024
|
+
class: "wi-datepicker__label"
|
|
5025
5025
|
}, vo = [
|
|
5026
5026
|
"value",
|
|
5027
5027
|
"placeholder",
|
|
@@ -5029,7 +5029,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5029
5029
|
"aria-invalid",
|
|
5030
5030
|
"aria-expanded",
|
|
5031
5031
|
"onKeydown"
|
|
5032
|
-
], yo = ["aria-label", "disabled"], bo = ["aria-label"], xo = { class: "
|
|
5032
|
+
], yo = ["aria-label", "disabled"], bo = ["aria-label"], xo = { class: "wi-datepicker__header" }, So = ["aria-label"], Co = { class: "wi-datepicker__month" }, wo = ["aria-label"], To = { class: "wi-datepicker__weekdays" }, Eo = { class: "wi-datepicker__grid" }, Do = ["disabled", "onClick"], Oo = /* @__PURE__ */ p({
|
|
5033
5033
|
__name: "DatePicker",
|
|
5034
5034
|
props: {
|
|
5035
5035
|
modelValue: { default: null },
|
|
@@ -5102,13 +5102,13 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5102
5102
|
};
|
|
5103
5103
|
}
|
|
5104
5104
|
let te = o(() => [
|
|
5105
|
-
"
|
|
5106
|
-
`
|
|
5105
|
+
"wi-datepicker",
|
|
5106
|
+
`wi-datepicker--${h.value}`,
|
|
5107
5107
|
{
|
|
5108
|
-
"
|
|
5109
|
-
"
|
|
5110
|
-
"
|
|
5111
|
-
"
|
|
5108
|
+
"wi-datepicker--fluid": a.fluid,
|
|
5109
|
+
"wi-datepicker--disabled": a.disabled,
|
|
5110
|
+
"wi-datepicker--invalid": a.invalid,
|
|
5111
|
+
"wi-datepicker--open": g.value
|
|
5112
5112
|
}
|
|
5113
5113
|
]);
|
|
5114
5114
|
function ne() {
|
|
@@ -5165,9 +5165,9 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5165
5165
|
u("div", {
|
|
5166
5166
|
ref_key: "trigger",
|
|
5167
5167
|
ref: x,
|
|
5168
|
-
class: "
|
|
5168
|
+
class: "wi-datepicker__control"
|
|
5169
5169
|
}, [u("input", {
|
|
5170
|
-
class: "
|
|
5170
|
+
class: "wi-datepicker__input",
|
|
5171
5171
|
type: "text",
|
|
5172
5172
|
readonly: "",
|
|
5173
5173
|
value: B.value,
|
|
@@ -5181,7 +5181,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5181
5181
|
}, null, 40, vo), B.value ? (E(), l("button", {
|
|
5182
5182
|
key: 0,
|
|
5183
5183
|
type: "button",
|
|
5184
|
-
class: "
|
|
5184
|
+
class: "wi-datepicker__clear",
|
|
5185
5185
|
"aria-label": L(m).clearDate,
|
|
5186
5186
|
disabled: e.disabled,
|
|
5187
5187
|
onClick: se
|
|
@@ -5189,12 +5189,12 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5189
5189
|
(E(), s(n, {
|
|
5190
5190
|
to: O.value.to,
|
|
5191
5191
|
disabled: O.value.disabled
|
|
5192
|
-
}, [f(i, { name: "
|
|
5192
|
+
}, [f(i, { name: "wi-scale-fade" }, {
|
|
5193
5193
|
default: W(() => [g.value ? (E(), l("div", {
|
|
5194
5194
|
key: 0,
|
|
5195
5195
|
ref_key: "panel",
|
|
5196
5196
|
ref: C,
|
|
5197
|
-
class: y(["
|
|
5197
|
+
class: y(["wi-datepicker__panel", { "wi-datepicker__panel--teleported": A.value }]),
|
|
5198
5198
|
style: b(A.value ? w.value : void 0),
|
|
5199
5199
|
role: "dialog",
|
|
5200
5200
|
"aria-label": L(m).datePicker
|
|
@@ -5202,14 +5202,14 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5202
5202
|
u("div", xo, [
|
|
5203
5203
|
u("button", {
|
|
5204
5204
|
type: "button",
|
|
5205
|
-
class: "
|
|
5205
|
+
class: "wi-datepicker__nav",
|
|
5206
5206
|
"aria-label": L(m).prevMonth,
|
|
5207
5207
|
onClick: J
|
|
5208
5208
|
}, "‹", 8, So),
|
|
5209
5209
|
u("span", Co, P(V.value), 1),
|
|
5210
5210
|
u("button", {
|
|
5211
5211
|
type: "button",
|
|
5212
|
-
class: "
|
|
5212
|
+
class: "wi-datepicker__nav",
|
|
5213
5213
|
"aria-label": L(m).nextMonth,
|
|
5214
5214
|
onClick: ae
|
|
5215
5215
|
}, "›", 8, wo)
|
|
@@ -5218,9 +5218,9 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5218
5218
|
u("div", Eo, [(E(!0), l(t, null, j(H.value, (e) => (E(), l("button", {
|
|
5219
5219
|
key: e.date.toISOString(),
|
|
5220
5220
|
type: "button",
|
|
5221
|
-
class: y(["
|
|
5222
|
-
"
|
|
5223
|
-
"
|
|
5221
|
+
class: y(["wi-datepicker__day", {
|
|
5222
|
+
"wi-datepicker__day--other": !e.inMonth,
|
|
5223
|
+
"wi-datepicker__day--selected": e.selected
|
|
5224
5224
|
}]),
|
|
5225
5225
|
disabled: e.disabled,
|
|
5226
5226
|
onClick: (t) => oe(e.date, e.disabled)
|
|
@@ -5240,7 +5240,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5240
5240
|
"onClick"
|
|
5241
5241
|
], Mo = {
|
|
5242
5242
|
key: 0,
|
|
5243
|
-
class: "
|
|
5243
|
+
class: "wi-listbox__empty"
|
|
5244
5244
|
}, No = /* @__PURE__ */ p({
|
|
5245
5245
|
__name: "Listbox",
|
|
5246
5246
|
props: {
|
|
@@ -5265,9 +5265,9 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5265
5265
|
let r = e, i = n, a = k(""), s = Z(), d = o(() => {
|
|
5266
5266
|
let e = a.value.trim().toLowerCase();
|
|
5267
5267
|
return e ? r.options.filter((t) => t.label.toLowerCase().includes(e)) : r.options;
|
|
5268
|
-
}), f = o(() => ["
|
|
5269
|
-
"
|
|
5270
|
-
"
|
|
5268
|
+
}), f = o(() => ["wi-listbox", {
|
|
5269
|
+
"wi-listbox--disabled": r.disabled,
|
|
5270
|
+
"wi-listbox--multiple": r.multiple
|
|
5271
5271
|
}]);
|
|
5272
5272
|
function p(e) {
|
|
5273
5273
|
return r.multiple ? (Array.isArray(r.modelValue) ? r.modelValue : []).includes(e) : r.modelValue === e;
|
|
@@ -5285,13 +5285,13 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5285
5285
|
return (n, r) => (E(), l("div", { class: y(f.value) }, [e.filter ? te((E(), l("input", {
|
|
5286
5286
|
key: 0,
|
|
5287
5287
|
"onUpdate:modelValue": r[0] ||= (e) => a.value = e,
|
|
5288
|
-
class: "
|
|
5288
|
+
class: "wi-listbox__filter",
|
|
5289
5289
|
type: "search",
|
|
5290
5290
|
placeholder: L(s).filterOptions,
|
|
5291
5291
|
disabled: e.disabled,
|
|
5292
5292
|
"aria-label": L(s).filterOptions
|
|
5293
5293
|
}, null, 8, ko)), [[V, a.value]]) : c("", !0), u("ul", {
|
|
5294
|
-
class: "
|
|
5294
|
+
class: "wi-listbox__list",
|
|
5295
5295
|
role: "listbox",
|
|
5296
5296
|
"aria-multiselectable": e.multiple || void 0,
|
|
5297
5297
|
style: b(e.listStyle)
|
|
@@ -5300,7 +5300,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5300
5300
|
role: "presentation"
|
|
5301
5301
|
}, [u("button", {
|
|
5302
5302
|
type: "button",
|
|
5303
|
-
class: y(["
|
|
5303
|
+
class: y(["wi-listbox__option", { "wi-listbox__option--selected": p(t.value) }]),
|
|
5304
5304
|
role: "option",
|
|
5305
5305
|
"aria-selected": p(t.value),
|
|
5306
5306
|
disabled: e.disabled || t.disabled,
|
|
@@ -5309,9 +5309,9 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5309
5309
|
}
|
|
5310
5310
|
}), Po = ["disabled", "aria-pressed"], Fo = {
|
|
5311
5311
|
key: 0,
|
|
5312
|
-
class: "
|
|
5312
|
+
class: "wi-togglebutton__icon",
|
|
5313
5313
|
"aria-hidden": "true"
|
|
5314
|
-
}, Io = { class: "
|
|
5314
|
+
}, Io = { class: "wi-togglebutton__label" }, Lo = /* @__PURE__ */ p({
|
|
5315
5315
|
__name: "ToggleButton",
|
|
5316
5316
|
props: {
|
|
5317
5317
|
modelValue: {
|
|
@@ -5331,11 +5331,11 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5331
5331
|
emits: ["update:modelValue"],
|
|
5332
5332
|
setup(e, { emit: t }) {
|
|
5333
5333
|
let n = e, r = t, i = Y(), a = o(() => ke(n.size ?? i.value.size)), s = o(() => [
|
|
5334
|
-
"
|
|
5335
|
-
`
|
|
5334
|
+
"wi-togglebutton",
|
|
5335
|
+
`wi-togglebutton--${a.value}`,
|
|
5336
5336
|
{
|
|
5337
|
-
"
|
|
5338
|
-
"
|
|
5337
|
+
"wi-togglebutton--checked": n.modelValue,
|
|
5338
|
+
"wi-togglebutton--disabled": n.disabled
|
|
5339
5339
|
}
|
|
5340
5340
|
]), d = o(() => n.modelValue ? n.onLabel : n.offLabel), f = o(() => n.modelValue ? n.onIcon : n.offIcon);
|
|
5341
5341
|
function p() {
|
|
@@ -5374,7 +5374,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5374
5374
|
let r = e, i = n, a = Z(), s = k([]), c = o(() => {
|
|
5375
5375
|
let e = r.modelValue ?? "";
|
|
5376
5376
|
return Array.from({ length: r.length }, (t, n) => e[n] ?? "");
|
|
5377
|
-
}), u = o(() => ["
|
|
5377
|
+
}), u = o(() => ["wi-inputotp", { "wi-inputotp--disabled": r.disabled }]);
|
|
5378
5378
|
function d(e, t) {
|
|
5379
5379
|
s.value[t] = e instanceof HTMLInputElement ? e : null;
|
|
5380
5380
|
}
|
|
@@ -5422,7 +5422,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5422
5422
|
key: n,
|
|
5423
5423
|
ref_for: !0,
|
|
5424
5424
|
ref: (e) => d(e, n),
|
|
5425
|
-
class: "
|
|
5425
|
+
class: "wi-inputotp__input",
|
|
5426
5426
|
type: "text",
|
|
5427
5427
|
inputmode: "text",
|
|
5428
5428
|
maxlength: "1",
|
|
@@ -5455,7 +5455,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5455
5455
|
"stroke-dasharray",
|
|
5456
5456
|
"stroke-dashoffset",
|
|
5457
5457
|
"transform"
|
|
5458
|
-
], Wo = { class: "
|
|
5458
|
+
], Wo = { class: "wi-knob__label" }, Go = /* @__PURE__ */ p({
|
|
5459
5459
|
__name: "Knob",
|
|
5460
5460
|
props: {
|
|
5461
5461
|
modelValue: { default: 0 },
|
|
@@ -5477,7 +5477,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5477
5477
|
}), c = o(() => {
|
|
5478
5478
|
let e = n.max - n.min;
|
|
5479
5479
|
return e <= 0 ? 0 : (s.value - n.min) / e;
|
|
5480
|
-
}), d = o(() => n.size / 2 - 8), f = o(() => 2 * Math.PI * d.value), p = o(() => f.value * (1 - c.value)), m = o(() => n.valueTemplate.replace(/\{value\}/g, String(s.value))), h = o(() => ["
|
|
5480
|
+
}), d = o(() => n.size / 2 - 8), f = o(() => 2 * Math.PI * d.value), p = o(() => f.value * (1 - c.value)), m = o(() => n.valueTemplate.replace(/\{value\}/g, String(s.value))), h = o(() => ["wi-knob", { "wi-knob--disabled": n.disabled }]);
|
|
5481
5481
|
function g(e) {
|
|
5482
5482
|
let t = Math.round((e - n.min) / n.step) * n.step + n.min;
|
|
5483
5483
|
return Math.min(n.max, Math.max(n.min, Number(t.toFixed(6))));
|
|
@@ -5514,20 +5514,20 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5514
5514
|
}, [(E(), l("svg", {
|
|
5515
5515
|
ref_key: "svgRef",
|
|
5516
5516
|
ref: i,
|
|
5517
|
-
class: "
|
|
5517
|
+
class: "wi-knob__svg",
|
|
5518
5518
|
width: e.size,
|
|
5519
5519
|
height: e.size,
|
|
5520
5520
|
viewBox: `0 0 ${e.size} ${e.size}`,
|
|
5521
5521
|
onPointerdown: v
|
|
5522
5522
|
}, [u("circle", {
|
|
5523
|
-
class: "
|
|
5523
|
+
class: "wi-knob__track",
|
|
5524
5524
|
cx: e.size / 2,
|
|
5525
5525
|
cy: e.size / 2,
|
|
5526
5526
|
r: d.value,
|
|
5527
5527
|
fill: "none",
|
|
5528
5528
|
"stroke-width": "8"
|
|
5529
5529
|
}, null, 8, Ho), u("circle", {
|
|
5530
|
-
class: "
|
|
5530
|
+
class: "wi-knob__value",
|
|
5531
5531
|
cx: e.size / 2,
|
|
5532
5532
|
cy: e.size / 2,
|
|
5533
5533
|
r: d.value,
|
|
@@ -5570,11 +5570,11 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5570
5570
|
let e = (a.modelValue ?? "").trim().toLowerCase();
|
|
5571
5571
|
return e ? a.suggestions.filter((t) => t.toLowerCase().includes(e)) : a.suggestions;
|
|
5572
5572
|
}), M = o(() => [
|
|
5573
|
-
"
|
|
5574
|
-
`
|
|
5573
|
+
"wi-autocomplete",
|
|
5574
|
+
`wi-autocomplete--${h.value}`,
|
|
5575
5575
|
{
|
|
5576
|
-
"
|
|
5577
|
-
"
|
|
5576
|
+
"wi-autocomplete--disabled": a.disabled,
|
|
5577
|
+
"wi-autocomplete--open": g.value
|
|
5578
5578
|
}
|
|
5579
5579
|
]);
|
|
5580
5580
|
function N() {
|
|
@@ -5650,9 +5650,9 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5650
5650
|
}, [u("div", {
|
|
5651
5651
|
ref_key: "trigger",
|
|
5652
5652
|
ref: x,
|
|
5653
|
-
class: "
|
|
5653
|
+
class: "wi-autocomplete__control"
|
|
5654
5654
|
}, [u("input", {
|
|
5655
|
-
class: "
|
|
5655
|
+
class: "wi-autocomplete__input",
|
|
5656
5656
|
type: "text",
|
|
5657
5657
|
role: "combobox",
|
|
5658
5658
|
value: e.modelValue,
|
|
@@ -5666,7 +5666,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5666
5666
|
}, null, 40, Ko), e.dropdown ? (E(), l("button", {
|
|
5667
5667
|
key: 0,
|
|
5668
5668
|
type: "button",
|
|
5669
|
-
class: "
|
|
5669
|
+
class: "wi-autocomplete__dropdown",
|
|
5670
5670
|
"aria-label": L(m).showSuggestions,
|
|
5671
5671
|
disabled: e.disabled,
|
|
5672
5672
|
onClick: z
|
|
@@ -5676,17 +5676,17 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5676
5676
|
})], 8, qo)) : c("", !0)], 512), (E(), s(n, {
|
|
5677
5677
|
to: D.value.to,
|
|
5678
5678
|
disabled: D.value.disabled
|
|
5679
|
-
}, [f(i, { name: "
|
|
5679
|
+
}, [f(i, { name: "wi-scale-fade" }, {
|
|
5680
5680
|
default: W(() => [g.value && A.value.length ? (E(), l("ul", {
|
|
5681
5681
|
key: 0,
|
|
5682
5682
|
ref_key: "panel",
|
|
5683
5683
|
ref: C,
|
|
5684
|
-
class: y(["
|
|
5684
|
+
class: y(["wi-autocomplete__panel", { "wi-autocomplete__panel--teleported": O.value }]),
|
|
5685
5685
|
style: b(O.value ? w.value : void 0),
|
|
5686
5686
|
role: "listbox"
|
|
5687
5687
|
}, [(E(!0), l(t, null, j(A.value, (e, t) => (E(), l("li", {
|
|
5688
5688
|
key: `${e}-${t}`,
|
|
5689
|
-
class: y(["
|
|
5689
|
+
class: y(["wi-autocomplete__item", { "wi-autocomplete__item--active": t === T.value }]),
|
|
5690
5690
|
role: "option",
|
|
5691
5691
|
"aria-selected": t === T.value,
|
|
5692
5692
|
onMousedown: K((t) => R(e), ["prevent"])
|
|
@@ -5696,7 +5696,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5696
5696
|
}
|
|
5697
5697
|
}), Xo = ["disabled"], Zo = {
|
|
5698
5698
|
key: 0,
|
|
5699
|
-
class: "
|
|
5699
|
+
class: "wi-splitbutton__icon",
|
|
5700
5700
|
"aria-hidden": "true"
|
|
5701
5701
|
}, Qo = { key: 1 }, $o = [
|
|
5702
5702
|
"aria-label",
|
|
@@ -5727,13 +5727,13 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5727
5727
|
emits: ["click", "command"],
|
|
5728
5728
|
setup(e, { emit: r }) {
|
|
5729
5729
|
let a = e, d = r, p = Y(), m = Z(), h = k(!1), g = k(null), _ = k(null), x = k({}), C = o(() => ke(a.size ?? p.value.size)), w = o(() => Q(a, p.value.appendTo)), T = o(() => $(a, p.value.appendTo)), D = o(() => [
|
|
5730
|
-
"
|
|
5731
|
-
`
|
|
5730
|
+
"wi-splitbutton",
|
|
5731
|
+
`wi-splitbutton--${C.value}`,
|
|
5732
5732
|
{
|
|
5733
|
-
"
|
|
5734
|
-
"
|
|
5735
|
-
[`
|
|
5736
|
-
"
|
|
5733
|
+
"wi-splitbutton--disabled": a.disabled,
|
|
5734
|
+
"wi-splitbutton--outlined": a.outlined,
|
|
5735
|
+
[`wi-splitbutton--${a.severity}`]: !!a.severity,
|
|
5736
|
+
"wi-splitbutton--open": h.value
|
|
5737
5737
|
}
|
|
5738
5738
|
]);
|
|
5739
5739
|
function O() {
|
|
@@ -5773,13 +5773,13 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5773
5773
|
}, [
|
|
5774
5774
|
u("button", {
|
|
5775
5775
|
type: "button",
|
|
5776
|
-
class: "
|
|
5776
|
+
class: "wi-splitbutton__main",
|
|
5777
5777
|
disabled: e.disabled,
|
|
5778
5778
|
onClick: M
|
|
5779
5779
|
}, [e.icon ? (E(), l("span", Zo, P(e.icon), 1)) : c("", !0), e.label ? (E(), l("span", Qo, P(e.label), 1)) : c("", !0)], 8, Xo),
|
|
5780
5780
|
u("button", {
|
|
5781
5781
|
type: "button",
|
|
5782
|
-
class: "
|
|
5782
|
+
class: "wi-splitbutton__trigger",
|
|
5783
5783
|
"aria-label": L(m).moreActions,
|
|
5784
5784
|
"aria-expanded": h.value,
|
|
5785
5785
|
"aria-haspopup": "menu",
|
|
@@ -5789,12 +5789,12 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5789
5789
|
(E(), s(n, {
|
|
5790
5790
|
to: w.value.to,
|
|
5791
5791
|
disabled: w.value.disabled
|
|
5792
|
-
}, [f(i, { name: "
|
|
5792
|
+
}, [f(i, { name: "wi-scale-fade" }, {
|
|
5793
5793
|
default: W(() => [h.value ? (E(), l("ul", {
|
|
5794
5794
|
key: 0,
|
|
5795
5795
|
ref_key: "menu",
|
|
5796
5796
|
ref: _,
|
|
5797
|
-
class: y(["
|
|
5797
|
+
class: y(["wi-splitbutton__menu", { "wi-splitbutton__menu--teleported": T.value }]),
|
|
5798
5798
|
style: b(T.value ? x.value : void 0),
|
|
5799
5799
|
role: "menu"
|
|
5800
5800
|
}, [(E(!0), l(t, null, j(e.model, (e, t) => (E(), l("li", {
|
|
@@ -5802,7 +5802,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5802
5802
|
role: "presentation"
|
|
5803
5803
|
}, [u("button", {
|
|
5804
5804
|
type: "button",
|
|
5805
|
-
class: "
|
|
5805
|
+
class: "wi-splitbutton__item",
|
|
5806
5806
|
role: "menuitem",
|
|
5807
5807
|
disabled: e.disabled,
|
|
5808
5808
|
onClick: (t) => F(e)
|
|
@@ -5811,17 +5811,17 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5811
5811
|
})], 8, ["to", "disabled"]))
|
|
5812
5812
|
], 2));
|
|
5813
5813
|
}
|
|
5814
|
-
}), ns = Symbol("
|
|
5814
|
+
}), ns = Symbol("wi-tree"), rs = Symbol("wi-tree-node-slot"), is = ["aria-expanded", "aria-disabled"], as = ["draggable"], os = ["aria-label", "disabled"], ss = {
|
|
5815
5815
|
key: 1,
|
|
5816
|
-
class: "
|
|
5816
|
+
class: "wi-tree__toggler wi-tree__toggler--leaf",
|
|
5817
5817
|
"aria-hidden": "true"
|
|
5818
5818
|
}, cs = {
|
|
5819
5819
|
key: 3,
|
|
5820
|
-
class: "
|
|
5820
|
+
class: "wi-tree__icon",
|
|
5821
5821
|
"aria-hidden": "true"
|
|
5822
5822
|
}, ls = ["disabled"], us = {
|
|
5823
5823
|
key: 0,
|
|
5824
|
-
class: "
|
|
5824
|
+
class: "wi-tree__children",
|
|
5825
5825
|
role: "group"
|
|
5826
5826
|
}, ds = /* @__PURE__ */ p({
|
|
5827
5827
|
__name: "TreeNodeItem",
|
|
@@ -5834,16 +5834,16 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5834
5834
|
data: n.node
|
|
5835
5835
|
}));
|
|
5836
5836
|
return (n, i) => (E(), l("li", {
|
|
5837
|
-
class: "
|
|
5837
|
+
class: "wi-tree__node",
|
|
5838
5838
|
role: "treeitem",
|
|
5839
5839
|
"aria-expanded": x.value ? f.value : void 0,
|
|
5840
5840
|
"aria-disabled": _.value || void 0
|
|
5841
5841
|
}, [u("div", {
|
|
5842
|
-
class: y(["
|
|
5843
|
-
"
|
|
5844
|
-
"
|
|
5845
|
-
"
|
|
5846
|
-
"
|
|
5842
|
+
class: y(["wi-tree__row", {
|
|
5843
|
+
"wi-tree__row--selected": p.value,
|
|
5844
|
+
"wi-tree__row--disabled": _.value,
|
|
5845
|
+
"wi-tree__row--matched": v.value,
|
|
5846
|
+
"wi-tree__row--indeterminate": g.value
|
|
5847
5847
|
}]),
|
|
5848
5848
|
draggable: L(r).draggable && !_.value,
|
|
5849
5849
|
onDragstart: i[4] ||= (t) => L(r).onDragStart(e.node, t),
|
|
@@ -5853,7 +5853,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5853
5853
|
x.value ? (E(), l("button", {
|
|
5854
5854
|
key: 0,
|
|
5855
5855
|
type: "button",
|
|
5856
|
-
class: "
|
|
5856
|
+
class: "wi-tree__toggler",
|
|
5857
5857
|
"aria-label": f.value ? L(a).collapse : L(a).expand,
|
|
5858
5858
|
disabled: _.value,
|
|
5859
5859
|
onClick: i[0] ||= (t) => L(r).toggleExpand(e.node)
|
|
@@ -5868,7 +5868,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5868
5868
|
}, null, 8, ["name"]))], 8, os)) : (E(), l("span", ss)),
|
|
5869
5869
|
L(r).showCheckbox ? (E(), s(Nt, {
|
|
5870
5870
|
key: 2,
|
|
5871
|
-
class: "
|
|
5871
|
+
class: "wi-tree__checkbox",
|
|
5872
5872
|
"model-value": m.value || g.value,
|
|
5873
5873
|
disabled: _.value,
|
|
5874
5874
|
"onUpdate:modelValue": i[1] ||= (t) => L(r).toggleCheck(e.node),
|
|
@@ -5881,7 +5881,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5881
5881
|
}, null, 8, ["name"])) : (E(), l(t, { key: 1 }, [d(P(e.node.icon), 1)], 64))])) : c("", !0),
|
|
5882
5882
|
u("button", {
|
|
5883
5883
|
type: "button",
|
|
5884
|
-
class: "
|
|
5884
|
+
class: "wi-tree__label",
|
|
5885
5885
|
disabled: _.value,
|
|
5886
5886
|
onClick: i[3] ||= (t) => L(r).select(e.node)
|
|
5887
5887
|
}, [w.value ? (E(), s(N({ render: () => w.value }), { key: 0 })) : (E(), l(t, { key: 1 }, [d(P(e.node.label), 1)], 64))], 8, ls)
|
|
@@ -5891,7 +5891,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
5891
5891
|
}, null, 8, ["node"]))), 128))])) : c("", !0)], 8, is));
|
|
5892
5892
|
}
|
|
5893
5893
|
}), fs = {
|
|
5894
|
-
class: "
|
|
5894
|
+
class: "wi-tree",
|
|
5895
5895
|
role: "tree"
|
|
5896
5896
|
}, ps = /* @__PURE__ */ p({
|
|
5897
5897
|
__name: "Tree",
|
|
@@ -6121,12 +6121,12 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6121
6121
|
node: e
|
|
6122
6122
|
}, null, 8, ["node"]))), 128))]));
|
|
6123
6123
|
}
|
|
6124
|
-
}), ms = { class: "
|
|
6124
|
+
}), ms = { class: "wi-timeline__opposite" }, hs = { class: "wi-timeline__separator" }, gs = {
|
|
6125
6125
|
key: 1,
|
|
6126
6126
|
"aria-hidden": "true"
|
|
6127
|
-
}, _s = { class: "
|
|
6127
|
+
}, _s = { class: "wi-timeline__content" }, vs = {
|
|
6128
6128
|
key: 0,
|
|
6129
|
-
class: "
|
|
6129
|
+
class: "wi-timeline__status"
|
|
6130
6130
|
}, ys = /* @__PURE__ */ p({
|
|
6131
6131
|
__name: "Timeline",
|
|
6132
6132
|
props: {
|
|
@@ -6136,9 +6136,9 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6136
6136
|
},
|
|
6137
6137
|
setup(e) {
|
|
6138
6138
|
let n = e, r = o(() => [
|
|
6139
|
-
"
|
|
6140
|
-
`
|
|
6141
|
-
`
|
|
6139
|
+
"wi-timeline",
|
|
6140
|
+
`wi-timeline--${n.layout}`,
|
|
6141
|
+
`wi-timeline--${n.align}`
|
|
6142
6142
|
]);
|
|
6143
6143
|
function i(e) {
|
|
6144
6144
|
return n.align === "right" ? "right" : n.align === "alternate" ? e % 2 == 0 ? "left" : "right" : "left";
|
|
@@ -6155,14 +6155,14 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6155
6155
|
}
|
|
6156
6156
|
function p(e) {
|
|
6157
6157
|
let t = a(e.severity);
|
|
6158
|
-
return t ? `
|
|
6158
|
+
return t ? `wi-timeline__marker--${t}` : void 0;
|
|
6159
6159
|
}
|
|
6160
6160
|
function m(e) {
|
|
6161
6161
|
if (e.icon && Ne(String(e.icon))) return e.icon;
|
|
6162
6162
|
}
|
|
6163
6163
|
return (n, a) => (E(), l("ul", { class: y(r.value) }, [(E(!0), l(t, null, j(e.value, (e, t) => (E(), l("li", {
|
|
6164
6164
|
key: t,
|
|
6165
|
-
class: y(["
|
|
6165
|
+
class: y(["wi-timeline__event", `wi-timeline__event--${i(t)}`])
|
|
6166
6166
|
}, [
|
|
6167
6167
|
u("div", ms, [M(n.$slots, "opposite", {
|
|
6168
6168
|
item: e,
|
|
@@ -6172,7 +6172,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6172
6172
|
item: e,
|
|
6173
6173
|
index: t
|
|
6174
6174
|
}, () => [u("span", {
|
|
6175
|
-
class: y(["
|
|
6175
|
+
class: y(["wi-timeline__marker", p(e)]),
|
|
6176
6176
|
style: b(f(e))
|
|
6177
6177
|
}, [m(e) ? (E(), s(X, {
|
|
6178
6178
|
key: 0,
|
|
@@ -6181,14 +6181,14 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6181
6181
|
}, null, 8, ["name"])) : e.icon ? (E(), l("span", gs, P(e.icon), 1)) : c("", !0)], 6)]), M(n.$slots, "connector", {
|
|
6182
6182
|
item: e,
|
|
6183
6183
|
index: t
|
|
6184
|
-
}, () => [a[0] ||= u("span", { class: "
|
|
6184
|
+
}, () => [a[0] ||= u("span", { class: "wi-timeline__connector" }, null, -1)])]),
|
|
6185
6185
|
u("div", _s, [M(n.$slots, "content", {
|
|
6186
6186
|
item: e,
|
|
6187
6187
|
index: t
|
|
6188
6188
|
}, () => [e.status ? (E(), l("div", vs, P(e.status), 1)) : c("", !0), u("div", null, P(e.content), 1)])])
|
|
6189
6189
|
], 2))), 128))], 2));
|
|
6190
6190
|
}
|
|
6191
|
-
}), bs = { class: "
|
|
6191
|
+
}), bs = { class: "wi-dataview__content" }, xs = { class: "wi-dataview__list" }, Ss = { class: "wi-dataview__grid" }, Cs = /* @__PURE__ */ p({
|
|
6192
6192
|
__name: "DataView",
|
|
6193
6193
|
props: {
|
|
6194
6194
|
value: { default: () => [] },
|
|
@@ -6204,7 +6204,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6204
6204
|
if (!n.paginator) return n.value;
|
|
6205
6205
|
let e = (r.value - 1) * n.rows;
|
|
6206
6206
|
return n.value.slice(e, e + n.rows);
|
|
6207
|
-
}), a = o(() => ["
|
|
6207
|
+
}), a = o(() => ["wi-dataview", `wi-dataview--${n.layout}`]);
|
|
6208
6208
|
return U(() => [
|
|
6209
6209
|
n.value.length,
|
|
6210
6210
|
n.rows,
|
|
@@ -6213,15 +6213,15 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6213
6213
|
r.value = 1;
|
|
6214
6214
|
}), (n, o) => (E(), l("div", { class: y(a.value) }, [u("div", bs, [e.layout === "list" ? M(n.$slots, "list", { items: i.value }, () => [u("ul", xs, [(E(!0), l(t, null, j(i.value, (e, t) => (E(), l("li", {
|
|
6215
6215
|
key: t,
|
|
6216
|
-
class: "
|
|
6216
|
+
class: "wi-dataview__list-item"
|
|
6217
6217
|
}, P(e), 1))), 128))])], void 0, 0) : M(n.$slots, "grid", { items: i.value }, () => [u("div", Ss, [(E(!0), l(t, null, j(i.value, (e, t) => (E(), l("div", {
|
|
6218
6218
|
key: t,
|
|
6219
|
-
class: "
|
|
6219
|
+
class: "wi-dataview__grid-item"
|
|
6220
6220
|
}, P(e), 1))), 128))])], void 0, 1)]), e.paginator ? (E(), s(Yn, {
|
|
6221
6221
|
key: 0,
|
|
6222
6222
|
modelValue: r.value,
|
|
6223
6223
|
"onUpdate:modelValue": o[0] ||= (e) => r.value = e,
|
|
6224
|
-
class: "
|
|
6224
|
+
class: "wi-dataview__paginator",
|
|
6225
6225
|
"total-records": e.value.length,
|
|
6226
6226
|
rows: e.rows
|
|
6227
6227
|
}, null, 8, [
|
|
@@ -6230,7 +6230,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6230
6230
|
"rows"
|
|
6231
6231
|
])) : c("", !0)], 2));
|
|
6232
6232
|
}
|
|
6233
|
-
}), ws = { class: "
|
|
6233
|
+
}), ws = { class: "wi-confirmpopup__message" }, Ts = { class: "wi-confirmpopup__footer" }, Es = /* @__PURE__ */ p({
|
|
6234
6234
|
__name: "ConfirmPopup",
|
|
6235
6235
|
props: {
|
|
6236
6236
|
modelValue: {
|
|
@@ -6304,12 +6304,12 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6304
6304
|
return (t, r) => (E(), s(n, {
|
|
6305
6305
|
to: _.value.to,
|
|
6306
6306
|
disabled: _.value.disabled
|
|
6307
|
-
}, [f(i, { name: "
|
|
6307
|
+
}, [f(i, { name: "wi-scale-fade" }, {
|
|
6308
6308
|
default: W(() => [j.value ? (E(), l("div", {
|
|
6309
6309
|
key: 0,
|
|
6310
6310
|
ref_key: "panel",
|
|
6311
6311
|
ref: h,
|
|
6312
|
-
class: y(["
|
|
6312
|
+
class: y(["wi-confirmpopup", { "wi-confirmpopup--teleported": x.value }]),
|
|
6313
6313
|
role: "alertdialog",
|
|
6314
6314
|
"aria-modal": "true",
|
|
6315
6315
|
tabindex: "-1",
|
|
@@ -6339,10 +6339,10 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6339
6339
|
appendTo: {}
|
|
6340
6340
|
},
|
|
6341
6341
|
setup(e) {
|
|
6342
|
-
let t = e, r = Y(), i = Z(), a = k(null), c = k(null), f = k(!1), p = o(() => Q(t, r.value.appendTo)), m = o(() => $(t, r.value.appendTo)), h = o(() => ["
|
|
6343
|
-
"
|
|
6344
|
-
"
|
|
6345
|
-
"
|
|
6342
|
+
let t = e, r = Y(), i = Z(), a = k(null), c = k(null), f = k(!1), p = o(() => Q(t, r.value.appendTo)), m = o(() => $(t, r.value.appendTo)), h = o(() => ["wi-scrolltop", {
|
|
6343
|
+
"wi-scrolltop--visible": f.value,
|
|
6344
|
+
"wi-scrolltop--parent": t.target === "parent",
|
|
6345
|
+
"wi-scrolltop--teleported": m.value
|
|
6346
6346
|
}]);
|
|
6347
6347
|
function g() {
|
|
6348
6348
|
return t.target === "window" ? window : a.value?.parentElement ?? window;
|
|
@@ -6379,7 +6379,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6379
6379
|
}), (e, t) => (E(), l("span", {
|
|
6380
6380
|
ref_key: "anchor",
|
|
6381
6381
|
ref: a,
|
|
6382
|
-
class: "
|
|
6382
|
+
class: "wi-scrolltop-anchor",
|
|
6383
6383
|
"aria-hidden": "true"
|
|
6384
6384
|
}, [(E(), s(n, {
|
|
6385
6385
|
to: p.value.to,
|
|
@@ -6396,7 +6396,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6396
6396
|
}
|
|
6397
6397
|
}), ks = ["aria-busy"], As = {
|
|
6398
6398
|
key: 0,
|
|
6399
|
-
class: "
|
|
6399
|
+
class: "wi-blockui__overlay",
|
|
6400
6400
|
role: "presentation",
|
|
6401
6401
|
"aria-hidden": "true"
|
|
6402
6402
|
}, js = /* @__PURE__ */ p({
|
|
@@ -6406,15 +6406,15 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6406
6406
|
default: !1
|
|
6407
6407
|
} },
|
|
6408
6408
|
setup(e) {
|
|
6409
|
-
let t = e, n = o(() => ["
|
|
6409
|
+
let t = e, n = o(() => ["wi-blockui", { "wi-blockui--blocked": t.blocked }]);
|
|
6410
6410
|
return (t, r) => (E(), l("div", { class: y(n.value) }, [u("div", {
|
|
6411
|
-
class: "
|
|
6411
|
+
class: "wi-blockui__content",
|
|
6412
6412
|
"aria-busy": e.blocked || void 0
|
|
6413
6413
|
}, [M(t.$slots, "default")], 8, ks), e.blocked ? (E(), l("div", As)) : c("", !0)], 2));
|
|
6414
6414
|
}
|
|
6415
6415
|
}), Ms = ["tabindex", "onKeydown"], Ns = {
|
|
6416
6416
|
key: 1,
|
|
6417
|
-
class: "
|
|
6417
|
+
class: "wi-inplace__content"
|
|
6418
6418
|
}, Ps = /* @__PURE__ */ p({
|
|
6419
6419
|
__name: "Inplace",
|
|
6420
6420
|
props: {
|
|
@@ -6429,9 +6429,9 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6429
6429
|
},
|
|
6430
6430
|
emits: ["update:modelValue"],
|
|
6431
6431
|
setup(e, { expose: t, emit: n }) {
|
|
6432
|
-
let r = e, i = n, a = o(() => ["
|
|
6433
|
-
"
|
|
6434
|
-
"
|
|
6432
|
+
let r = e, i = n, a = o(() => ["wi-inplace", {
|
|
6433
|
+
"wi-inplace--active": r.modelValue,
|
|
6434
|
+
"wi-inplace--disabled": r.disabled
|
|
6435
6435
|
}]);
|
|
6436
6436
|
function s() {
|
|
6437
6437
|
r.disabled || r.modelValue || i("update:modelValue", !0);
|
|
@@ -6444,14 +6444,14 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6444
6444
|
deactivate: c
|
|
6445
6445
|
}), (t, n) => (E(), l("div", { class: y(a.value) }, [e.modelValue ? (E(), l("div", Ns, [M(t.$slots, "content", { close: c })])) : (E(), l("div", {
|
|
6446
6446
|
key: 0,
|
|
6447
|
-
class: "
|
|
6447
|
+
class: "wi-inplace__display",
|
|
6448
6448
|
role: "button",
|
|
6449
6449
|
tabindex: e.disabled ? -1 : 0,
|
|
6450
6450
|
onClick: s,
|
|
6451
6451
|
onKeydown: [G(K(s, ["prevent"]), ["enter"]), G(K(s, ["prevent"]), ["space"])]
|
|
6452
6452
|
}, [M(t.$slots, "display")], 40, Ms))], 2));
|
|
6453
6453
|
}
|
|
6454
|
-
}), Fs = ["disabled", "aria-expanded"], Is = { class: "
|
|
6454
|
+
}), Fs = ["disabled", "aria-expanded"], Is = { class: "wi-cascadeselect__label" }, Ls = [
|
|
6455
6455
|
"disabled",
|
|
6456
6456
|
"aria-selected",
|
|
6457
6457
|
"onClick"
|
|
@@ -6527,41 +6527,41 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6527
6527
|
}), (r, a) => (E(), l("div", {
|
|
6528
6528
|
ref_key: "root",
|
|
6529
6529
|
ref: _,
|
|
6530
|
-
class: y(["
|
|
6531
|
-
"
|
|
6532
|
-
"
|
|
6530
|
+
class: y(["wi-cascadeselect", [`wi-cascadeselect--${h.value}`, {
|
|
6531
|
+
"wi-cascadeselect--disabled": e.disabled,
|
|
6532
|
+
"wi-cascadeselect--open": g.value
|
|
6533
6533
|
}]])
|
|
6534
6534
|
}, [u("button", {
|
|
6535
6535
|
ref_key: "trigger",
|
|
6536
6536
|
ref: x,
|
|
6537
6537
|
type: "button",
|
|
6538
|
-
class: "
|
|
6538
|
+
class: "wi-cascadeselect__trigger",
|
|
6539
6539
|
disabled: e.disabled,
|
|
6540
6540
|
"aria-expanded": g.value,
|
|
6541
6541
|
"aria-haspopup": "listbox",
|
|
6542
6542
|
onClick: F
|
|
6543
6543
|
}, [u("span", Is, P(A.value), 1), a[0] ||= u("span", {
|
|
6544
|
-
class: "
|
|
6544
|
+
class: "wi-cascadeselect__caret",
|
|
6545
6545
|
"aria-hidden": "true"
|
|
6546
6546
|
}, "▾", -1)], 8, Fs), (E(), s(n, {
|
|
6547
6547
|
to: D.value.to,
|
|
6548
6548
|
disabled: D.value.disabled
|
|
6549
|
-
}, [f(i, { name: "
|
|
6549
|
+
}, [f(i, { name: "wi-scale-fade" }, {
|
|
6550
6550
|
default: W(() => [g.value ? (E(), l("div", {
|
|
6551
6551
|
key: 0,
|
|
6552
6552
|
ref_key: "panel",
|
|
6553
6553
|
ref: C,
|
|
6554
|
-
class: y(["
|
|
6554
|
+
class: y(["wi-cascadeselect__panel", { "wi-cascadeselect__panel--teleported": O.value }]),
|
|
6555
6555
|
style: b(w.value),
|
|
6556
6556
|
role: "listbox"
|
|
6557
6557
|
}, [(E(!0), l(t, null, j(T.value, (n, r) => (E(), l("ul", {
|
|
6558
6558
|
key: r,
|
|
6559
|
-
class: "
|
|
6559
|
+
class: "wi-cascadeselect__column"
|
|
6560
6560
|
}, [(E(!0), l(t, null, j(n, (t) => (E(), l("li", { key: String(t.value) }, [u("button", {
|
|
6561
6561
|
type: "button",
|
|
6562
|
-
class: y(["
|
|
6563
|
-
"
|
|
6564
|
-
"
|
|
6562
|
+
class: y(["wi-cascadeselect__option", {
|
|
6563
|
+
"wi-cascadeselect__option--selected": t.value === e.modelValue,
|
|
6564
|
+
"wi-cascadeselect__option--parent": !!t.children?.length
|
|
6565
6565
|
}]),
|
|
6566
6566
|
disabled: t.disabled,
|
|
6567
6567
|
role: "option",
|
|
@@ -6573,7 +6573,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6573
6573
|
}
|
|
6574
6574
|
}), Bs = ["aria-expanded"], Vs = ["aria-label"], Hs = {
|
|
6575
6575
|
key: 1,
|
|
6576
|
-
class: "
|
|
6576
|
+
class: "wi-treeselect__toggler-spacer"
|
|
6577
6577
|
}, Us = ["disabled"], Ws = {
|
|
6578
6578
|
key: 0,
|
|
6579
6579
|
role: "group"
|
|
@@ -6589,21 +6589,21 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6589
6589
|
setup(e) {
|
|
6590
6590
|
let n = Z();
|
|
6591
6591
|
return (r, i) => (E(), l("li", {
|
|
6592
|
-
class: "
|
|
6592
|
+
class: "wi-treeselect__node",
|
|
6593
6593
|
role: "treeitem",
|
|
6594
6594
|
"aria-expanded": e.node.children?.length ? !!e.expanded[e.node.key] : void 0
|
|
6595
6595
|
}, [u("div", {
|
|
6596
|
-
class: "
|
|
6596
|
+
class: "wi-treeselect__row",
|
|
6597
6597
|
style: b({ paddingLeft: `${e.depth * .75}rem` })
|
|
6598
6598
|
}, [e.node.children?.length ? (E(), l("button", {
|
|
6599
6599
|
key: 0,
|
|
6600
6600
|
type: "button",
|
|
6601
|
-
class: "
|
|
6601
|
+
class: "wi-treeselect__toggler",
|
|
6602
6602
|
"aria-label": e.expanded[e.node.key] ? L(n).collapse : L(n).expand,
|
|
6603
6603
|
onClick: i[0] ||= K((t) => r.$emit("toggle", e.node.key), ["stop"])
|
|
6604
6604
|
}, P(e.expanded[e.node.key] ? "▾" : "▸"), 9, Vs)) : (E(), l("span", Hs)), u("button", {
|
|
6605
6605
|
type: "button",
|
|
6606
|
-
class: y(["
|
|
6606
|
+
class: y(["wi-treeselect__option", { "wi-treeselect__option--selected": e.selectedKey === e.node.key }]),
|
|
6607
6607
|
disabled: e.node.disabled,
|
|
6608
6608
|
onClick: i[1] ||= (t) => r.$emit("select", e.node)
|
|
6609
6609
|
}, P(e.node.label), 11, Us)], 4), e.node.children?.length && e.expanded[e.node.key] ? (E(), l("ul", Ws, [(E(!0), l(t, null, j(e.node.children, (t) => (E(), s(Gs, {
|
|
@@ -6621,8 +6621,8 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6621
6621
|
"expanded"
|
|
6622
6622
|
]))), 128))])) : c("", !0)], 8, Bs));
|
|
6623
6623
|
}
|
|
6624
|
-
}), Ks = ["disabled", "aria-expanded"], qs = { class: "
|
|
6625
|
-
class: "
|
|
6624
|
+
}), Ks = ["disabled", "aria-expanded"], qs = { class: "wi-treeselect__label" }, Js = {
|
|
6625
|
+
class: "wi-treeselect__tree",
|
|
6626
6626
|
role: "tree"
|
|
6627
6627
|
}, Ys = /* @__PURE__ */ p({
|
|
6628
6628
|
__name: "TreeSelect",
|
|
@@ -6691,31 +6691,31 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6691
6691
|
}), (r, a) => (E(), l("div", {
|
|
6692
6692
|
ref_key: "root",
|
|
6693
6693
|
ref: _,
|
|
6694
|
-
class: y(["
|
|
6695
|
-
"
|
|
6696
|
-
"
|
|
6694
|
+
class: y(["wi-treeselect", [`wi-treeselect--${h.value}`, {
|
|
6695
|
+
"wi-treeselect--disabled": e.disabled,
|
|
6696
|
+
"wi-treeselect--open": g.value
|
|
6697
6697
|
}]])
|
|
6698
6698
|
}, [u("button", {
|
|
6699
6699
|
ref_key: "trigger",
|
|
6700
6700
|
ref: x,
|
|
6701
6701
|
type: "button",
|
|
6702
|
-
class: "
|
|
6702
|
+
class: "wi-treeselect__trigger",
|
|
6703
6703
|
disabled: e.disabled,
|
|
6704
6704
|
"aria-expanded": g.value,
|
|
6705
6705
|
"aria-haspopup": "tree",
|
|
6706
6706
|
onClick: F
|
|
6707
6707
|
}, [u("span", qs, P(A.value), 1), a[0] ||= u("span", {
|
|
6708
|
-
class: "
|
|
6708
|
+
class: "wi-treeselect__caret",
|
|
6709
6709
|
"aria-hidden": "true"
|
|
6710
6710
|
}, "▾", -1)], 8, Ks), (E(), s(n, {
|
|
6711
6711
|
to: D.value.to,
|
|
6712
6712
|
disabled: D.value.disabled
|
|
6713
|
-
}, [f(i, { name: "
|
|
6713
|
+
}, [f(i, { name: "wi-scale-fade" }, {
|
|
6714
6714
|
default: W(() => [g.value ? (E(), l("div", {
|
|
6715
6715
|
key: 0,
|
|
6716
6716
|
ref_key: "panel",
|
|
6717
6717
|
ref: C,
|
|
6718
|
-
class: y(["
|
|
6718
|
+
class: y(["wi-treeselect__panel", { "wi-treeselect__panel--teleported": O.value }]),
|
|
6719
6719
|
style: b(O.value ? w.value : void 0)
|
|
6720
6720
|
}, [u("ul", Js, [(E(!0), l(t, null, j(e.options, (t) => (E(), s(Gs, {
|
|
6721
6721
|
key: t.key,
|
|
@@ -6762,8 +6762,8 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6762
6762
|
let t = e.target;
|
|
6763
6763
|
r("update:modelValue", t.value);
|
|
6764
6764
|
}
|
|
6765
|
-
return (t, n) => (E(), l("div", { class: y(["
|
|
6766
|
-
class: "
|
|
6765
|
+
return (t, n) => (E(), l("div", { class: y(["wi-inputcolor", { "wi-inputcolor--disabled": e.disabled }]) }, [u("input", {
|
|
6766
|
+
class: "wi-inputcolor__swatch",
|
|
6767
6767
|
type: "color",
|
|
6768
6768
|
id: e.id,
|
|
6769
6769
|
value: a.value,
|
|
@@ -6771,7 +6771,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6771
6771
|
"aria-label": L(i).selectColor,
|
|
6772
6772
|
onInput: s
|
|
6773
6773
|
}, null, 40, Xs), u("input", {
|
|
6774
|
-
class: "
|
|
6774
|
+
class: "wi-inputcolor__text",
|
|
6775
6775
|
type: "text",
|
|
6776
6776
|
value: e.modelValue,
|
|
6777
6777
|
disabled: e.disabled,
|
|
@@ -6827,18 +6827,18 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6827
6827
|
function h() {
|
|
6828
6828
|
r.addOnBlur && f();
|
|
6829
6829
|
}
|
|
6830
|
-
return (n, r) => (E(), l("div", { class: y(["
|
|
6830
|
+
return (n, r) => (E(), l("div", { class: y(["wi-inputtags", { "wi-inputtags--disabled": e.disabled }]) }, [(E(!0), l(t, null, j(e.modelValue, (t, n) => (E(), l("span", {
|
|
6831
6831
|
key: `${t}-${n}`,
|
|
6832
|
-
class: "
|
|
6832
|
+
class: "wi-inputtags__chip"
|
|
6833
6833
|
}, [d(P(t) + " ", 1), u("button", {
|
|
6834
6834
|
type: "button",
|
|
6835
|
-
class: "
|
|
6835
|
+
class: "wi-inputtags__remove",
|
|
6836
6836
|
disabled: e.disabled,
|
|
6837
6837
|
"aria-label": L(a).removeTag,
|
|
6838
6838
|
onClick: (e) => p(n)
|
|
6839
6839
|
}, " × ", 8, $s)]))), 128)), te(u("input", {
|
|
6840
6840
|
"onUpdate:modelValue": r[0] ||= (e) => s.value = e,
|
|
6841
|
-
class: "
|
|
6841
|
+
class: "wi-inputtags__input",
|
|
6842
6842
|
type: "text",
|
|
6843
6843
|
placeholder: e.modelValue.length ? "" : c.value,
|
|
6844
6844
|
disabled: e.disabled,
|
|
@@ -6856,7 +6856,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6856
6856
|
setup(e) {
|
|
6857
6857
|
let t = e, n = R(), r = o(() => t.htmlFor ?? t.for);
|
|
6858
6858
|
return (e, t) => (E(), l("label", _({
|
|
6859
|
-
class: "
|
|
6859
|
+
class: "wi-label",
|
|
6860
6860
|
for: r.value
|
|
6861
6861
|
}, L(n)), [M(e.$slots, "default")], 16, nc));
|
|
6862
6862
|
}
|
|
@@ -6868,7 +6868,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6868
6868
|
], ac = {
|
|
6869
6869
|
key: 0,
|
|
6870
6870
|
"aria-hidden": "true"
|
|
6871
|
-
}, oc = { class: "
|
|
6871
|
+
}, oc = { class: "wi-speeddial__action-label" }, sc = [
|
|
6872
6872
|
"aria-label",
|
|
6873
6873
|
"aria-expanded",
|
|
6874
6874
|
"disabled"
|
|
@@ -6895,11 +6895,11 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6895
6895
|
emits: ["update:modelValue"],
|
|
6896
6896
|
setup(e, { emit: r }) {
|
|
6897
6897
|
let a = e, p = r, m = Y(), h = Z(), g = o(() => a.ariaLabel ?? h.value.speedDial), _ = k(null), x = k(null), C = k(null), w = k({}), T = o(() => Q(a, m.value.appendTo)), D = o(() => $(a, m.value.appendTo)), O = o(() => [
|
|
6898
|
-
"
|
|
6899
|
-
`
|
|
6898
|
+
"wi-speeddial",
|
|
6899
|
+
`wi-speeddial--${a.direction}`,
|
|
6900
6900
|
{
|
|
6901
|
-
"
|
|
6902
|
-
"
|
|
6901
|
+
"wi-speeddial--open": a.modelValue,
|
|
6902
|
+
"wi-speeddial--disabled": a.disabled
|
|
6903
6903
|
}
|
|
6904
6904
|
]);
|
|
6905
6905
|
function A() {
|
|
@@ -6943,12 +6943,12 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6943
6943
|
}, [(E(), s(n, {
|
|
6944
6944
|
to: T.value.to,
|
|
6945
6945
|
disabled: T.value.disabled
|
|
6946
|
-
}, [f(i, { name: "
|
|
6946
|
+
}, [f(i, { name: "wi-scale-fade" }, {
|
|
6947
6947
|
default: W(() => [e.modelValue ? (E(), l("ul", {
|
|
6948
6948
|
key: 0,
|
|
6949
6949
|
ref_key: "list",
|
|
6950
6950
|
ref: C,
|
|
6951
|
-
class: y(["
|
|
6951
|
+
class: y(["wi-speeddial__list", { "wi-speeddial__list--teleported": D.value }]),
|
|
6952
6952
|
style: b(D.value ? w.value : void 0),
|
|
6953
6953
|
role: "menu"
|
|
6954
6954
|
}, [(E(!0), l(t, null, j(e.model, (e, t) => (E(), l("li", {
|
|
@@ -6956,7 +6956,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6956
6956
|
role: "none"
|
|
6957
6957
|
}, [u("button", {
|
|
6958
6958
|
type: "button",
|
|
6959
|
-
class: "
|
|
6959
|
+
class: "wi-speeddial__action",
|
|
6960
6960
|
role: "menuitem",
|
|
6961
6961
|
title: e.label,
|
|
6962
6962
|
"aria-label": e.label,
|
|
@@ -6968,21 +6968,21 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
6968
6968
|
ref_key: "button",
|
|
6969
6969
|
ref: x,
|
|
6970
6970
|
type: "button",
|
|
6971
|
-
class: "
|
|
6971
|
+
class: "wi-speeddial__button",
|
|
6972
6972
|
"aria-label": g.value,
|
|
6973
6973
|
"aria-expanded": e.modelValue,
|
|
6974
6974
|
disabled: e.disabled,
|
|
6975
6975
|
onClick: N
|
|
6976
6976
|
}, [M(r.$slots, "icon", {}, () => [a[0] ||= d("+", -1)])], 8, sc)], 2));
|
|
6977
6977
|
}
|
|
6978
|
-
}), lc = { class: "
|
|
6978
|
+
}), lc = { class: "wi-orderlist" }, uc = { class: "wi-orderlist__controls" }, dc = ["aria-label"], fc = ["aria-label"], pc = [
|
|
6979
6979
|
"aria-selected",
|
|
6980
6980
|
"draggable",
|
|
6981
6981
|
"onClick",
|
|
6982
6982
|
"onDragstart",
|
|
6983
6983
|
"onDragover",
|
|
6984
6984
|
"onDrop"
|
|
6985
|
-
], mc = ["aria-label"], hc = { class: "
|
|
6985
|
+
], mc = ["aria-label"], hc = { class: "wi-orderlist__label" }, gc = /* @__PURE__ */ p({
|
|
6986
6986
|
__name: "OrderList",
|
|
6987
6987
|
props: {
|
|
6988
6988
|
modelValue: { default: () => [] },
|
|
@@ -7044,7 +7044,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7044
7044
|
}
|
|
7045
7045
|
return (n, r) => (E(), l("div", lc, [u("div", uc, [u("button", {
|
|
7046
7046
|
type: "button",
|
|
7047
|
-
class: "
|
|
7047
|
+
class: "wi-orderlist__btn",
|
|
7048
7048
|
"aria-label": L(a).moveUp,
|
|
7049
7049
|
onClick: r[0] ||= (e) => v(-1)
|
|
7050
7050
|
}, [f(X, {
|
|
@@ -7052,22 +7052,22 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7052
7052
|
size: "sm"
|
|
7053
7053
|
})], 8, dc), u("button", {
|
|
7054
7054
|
type: "button",
|
|
7055
|
-
class: "
|
|
7055
|
+
class: "wi-orderlist__btn",
|
|
7056
7056
|
"aria-label": L(a).moveDown,
|
|
7057
7057
|
onClick: r[1] ||= (e) => v(1)
|
|
7058
7058
|
}, [f(X, {
|
|
7059
7059
|
name: "chevron-down",
|
|
7060
7060
|
size: "sm"
|
|
7061
7061
|
})], 8, fc)]), u("ul", {
|
|
7062
|
-
class: "
|
|
7062
|
+
class: "wi-orderlist__list",
|
|
7063
7063
|
style: b(e.listStyle),
|
|
7064
7064
|
role: "listbox"
|
|
7065
7065
|
}, [(E(!0), l(t, null, j(e.modelValue, (t, i) => (E(), l("li", {
|
|
7066
7066
|
key: h(t, i),
|
|
7067
|
-
class: y(["
|
|
7068
|
-
"
|
|
7069
|
-
"
|
|
7070
|
-
"
|
|
7067
|
+
class: y(["wi-orderlist__item", {
|
|
7068
|
+
"wi-orderlist__item--selected": o.value === i,
|
|
7069
|
+
"wi-orderlist__ghost": e.dragdrop && s.value === i,
|
|
7070
|
+
"wi-orderlist__drop-target": e.dragdrop && p.value === i && s.value !== i
|
|
7071
7071
|
}]),
|
|
7072
7072
|
role: "option",
|
|
7073
7073
|
"aria-selected": o.value === i,
|
|
@@ -7080,7 +7080,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7080
7080
|
}, [e.dragdrop ? (E(), l("button", {
|
|
7081
7081
|
key: 0,
|
|
7082
7082
|
type: "button",
|
|
7083
|
-
class: "
|
|
7083
|
+
class: "wi-orderlist__handle",
|
|
7084
7084
|
"aria-label": L(a).dragToReorder,
|
|
7085
7085
|
onClick: r[2] ||= K(() => {}, ["stop"]),
|
|
7086
7086
|
onPointerdown: x
|
|
@@ -7092,8 +7092,8 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7092
7092
|
index: i
|
|
7093
7093
|
}, () => [d(P(t), 1)])])], 42, pc))), 128))], 4)]));
|
|
7094
7094
|
}
|
|
7095
|
-
}), _c = { class: "
|
|
7096
|
-
class: "
|
|
7095
|
+
}), _c = { class: "wi-picklist" }, vc = { class: "wi-picklist__listbox" }, yc = { class: "wi-picklist__header" }, bc = {
|
|
7096
|
+
class: "wi-picklist__list",
|
|
7097
7097
|
role: "listbox",
|
|
7098
7098
|
"aria-multiselectable": "true",
|
|
7099
7099
|
tabindex: "0"
|
|
@@ -7101,8 +7101,8 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7101
7101
|
"aria-selected",
|
|
7102
7102
|
"onClick",
|
|
7103
7103
|
"onKeydown"
|
|
7104
|
-
], Sc = { class: "
|
|
7105
|
-
class: "
|
|
7104
|
+
], Sc = { class: "wi-picklist__controls" }, Cc = ["aria-label"], wc = ["aria-label"], Tc = ["aria-label"], Ec = ["aria-label"], Dc = { class: "wi-picklist__listbox" }, Oc = { class: "wi-picklist__header" }, kc = {
|
|
7105
|
+
class: "wi-picklist__list",
|
|
7106
7106
|
role: "listbox",
|
|
7107
7107
|
"aria-multiselectable": "true",
|
|
7108
7108
|
tabindex: "0"
|
|
@@ -7148,7 +7148,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7148
7148
|
return (n, r) => (E(), l("div", _c, [
|
|
7149
7149
|
u("div", vc, [u("div", yc, P(p.value), 1), u("ul", bc, [(E(!0), l(t, null, j(e.source, (e, t) => (E(), l("li", {
|
|
7150
7150
|
key: h(e, t),
|
|
7151
|
-
class: y(["
|
|
7151
|
+
class: y(["wi-picklist__item", { "wi-picklist__item--selected": a.value.includes(t) }]),
|
|
7152
7152
|
role: "option",
|
|
7153
7153
|
"aria-selected": a.value.includes(t),
|
|
7154
7154
|
tabindex: "0",
|
|
@@ -7161,7 +7161,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7161
7161
|
u("div", Sc, [
|
|
7162
7162
|
u("button", {
|
|
7163
7163
|
type: "button",
|
|
7164
|
-
class: "
|
|
7164
|
+
class: "wi-picklist__btn",
|
|
7165
7165
|
"aria-label": L(c).moveAllToTarget,
|
|
7166
7166
|
onClick: b
|
|
7167
7167
|
}, [f(X, {
|
|
@@ -7173,7 +7173,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7173
7173
|
})], 8, Cc),
|
|
7174
7174
|
u("button", {
|
|
7175
7175
|
type: "button",
|
|
7176
|
-
class: "
|
|
7176
|
+
class: "wi-picklist__btn",
|
|
7177
7177
|
"aria-label": L(c).moveToTarget,
|
|
7178
7178
|
onClick: _
|
|
7179
7179
|
}, [f(X, {
|
|
@@ -7182,7 +7182,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7182
7182
|
})], 8, wc),
|
|
7183
7183
|
u("button", {
|
|
7184
7184
|
type: "button",
|
|
7185
|
-
class: "
|
|
7185
|
+
class: "wi-picklist__btn",
|
|
7186
7186
|
"aria-label": L(c).moveToSource,
|
|
7187
7187
|
onClick: v
|
|
7188
7188
|
}, [f(X, {
|
|
@@ -7191,7 +7191,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7191
7191
|
})], 8, Tc),
|
|
7192
7192
|
u("button", {
|
|
7193
7193
|
type: "button",
|
|
7194
|
-
class: "
|
|
7194
|
+
class: "wi-picklist__btn",
|
|
7195
7195
|
"aria-label": L(c).moveAllToSource,
|
|
7196
7196
|
onClick: x
|
|
7197
7197
|
}, [f(X, {
|
|
@@ -7204,7 +7204,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7204
7204
|
]),
|
|
7205
7205
|
u("div", Dc, [u("div", Oc, P(m.value), 1), u("ul", kc, [(E(!0), l(t, null, j(e.target, (e, t) => (E(), l("li", {
|
|
7206
7206
|
key: h(e, t),
|
|
7207
|
-
class: y(["
|
|
7207
|
+
class: y(["wi-picklist__item", { "wi-picklist__item--selected": s.value.includes(t) }]),
|
|
7208
7208
|
role: "option",
|
|
7209
7209
|
"aria-selected": s.value.includes(t),
|
|
7210
7210
|
tabindex: "0",
|
|
@@ -7241,27 +7241,27 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7241
7241
|
r.value = t.scrollTop;
|
|
7242
7242
|
}
|
|
7243
7243
|
return (n, r) => (E(), l("div", {
|
|
7244
|
-
class: "
|
|
7244
|
+
class: "wi-virtualscroller",
|
|
7245
7245
|
style: b({ height: typeof e.height == "number" ? `${e.height}px` : e.height }),
|
|
7246
7246
|
onScroll: m
|
|
7247
7247
|
}, [u("div", {
|
|
7248
|
-
class: "
|
|
7248
|
+
class: "wi-virtualscroller__spacer",
|
|
7249
7249
|
style: b({ height: `${a.value}px` })
|
|
7250
7250
|
}, [u("div", {
|
|
7251
|
-
class: "
|
|
7251
|
+
class: "wi-virtualscroller__content",
|
|
7252
7252
|
style: b({ transform: `translateY(${p.value}px)` })
|
|
7253
7253
|
}, [(E(!0), l(t, null, j(f.value, (t) => (E(), l("div", {
|
|
7254
7254
|
key: t.index,
|
|
7255
|
-
class: "
|
|
7255
|
+
class: "wi-virtualscroller__item",
|
|
7256
7256
|
style: b({ height: `${e.itemSize}px` })
|
|
7257
7257
|
}, [M(n.$slots, "item", {
|
|
7258
7258
|
item: t.item,
|
|
7259
7259
|
index: t.index
|
|
7260
7260
|
}, () => [d(P(t.item), 1)])], 4))), 128))], 4)], 4)], 36));
|
|
7261
7261
|
}
|
|
7262
|
-
}), Nc = { class: "
|
|
7262
|
+
}), Nc = { class: "wi-treetable__row" }, Pc = ["aria-label"], Fc = {
|
|
7263
7263
|
key: 1,
|
|
7264
|
-
class: "
|
|
7264
|
+
class: "wi-treetable__toggler-spacer"
|
|
7265
7265
|
}, Ic = /* @__PURE__ */ p({
|
|
7266
7266
|
__name: "TreeTableRow",
|
|
7267
7267
|
props: {
|
|
@@ -7275,15 +7275,15 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7275
7275
|
let n = Z();
|
|
7276
7276
|
return (r, i) => (E(), l(t, null, [u("tr", Nc, [(E(!0), l(t, null, j(e.columns, (a, o) => (E(), l("td", {
|
|
7277
7277
|
key: a.field,
|
|
7278
|
-
class: "
|
|
7278
|
+
class: "wi-treetable__cell"
|
|
7279
7279
|
}, [o === 0 ? (E(), l("div", {
|
|
7280
7280
|
key: 0,
|
|
7281
|
-
class: "
|
|
7281
|
+
class: "wi-treetable__tree-cell",
|
|
7282
7282
|
style: b({ paddingLeft: `${e.depth * 1}rem` })
|
|
7283
7283
|
}, [e.node.children?.length ? (E(), l("button", {
|
|
7284
7284
|
key: 0,
|
|
7285
7285
|
type: "button",
|
|
7286
|
-
class: "
|
|
7286
|
+
class: "wi-treetable__toggler",
|
|
7287
7287
|
"aria-label": e.isExpanded(e.node.key) ? L(n).collapse : L(n).expand,
|
|
7288
7288
|
onClick: i[0] ||= (t) => r.$emit("toggle", e.node)
|
|
7289
7289
|
}, P(e.isExpanded(e.node.key) ? "▾" : "▸"), 9, Pc)) : (E(), l("span", Fc)), u("span", null, P(e.node.data[a.field]), 1)], 4)) : (E(), l(t, { key: 1 }, [d(P(e.node.data[a.field]), 1)], 64))]))), 128))]), e.node.children?.length && e.isExpanded(e.node.key) ? (E(!0), l(t, { key: 0 }, j(e.node.children, (t) => (E(), s(Ic, {
|
|
@@ -7300,7 +7300,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7300
7300
|
"is-expanded"
|
|
7301
7301
|
]))), 128)) : c("", !0)], 64));
|
|
7302
7302
|
}
|
|
7303
|
-
}), Lc = { class: "
|
|
7303
|
+
}), Lc = { class: "wi-treetable" }, Rc = { class: "wi-treetable__table" }, zc = /* @__PURE__ */ p({
|
|
7304
7304
|
__name: "TreeTable",
|
|
7305
7305
|
props: {
|
|
7306
7306
|
value: {},
|
|
@@ -7378,7 +7378,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7378
7378
|
}
|
|
7379
7379
|
function A(e) {
|
|
7380
7380
|
let t = e.target;
|
|
7381
|
-
m.value?.contains(t) || document.querySelector(".
|
|
7381
|
+
m.value?.contains(t) || document.querySelector(".wi-megamenu__panel--teleported")?.contains(t) || (p.value = null);
|
|
7382
7382
|
}
|
|
7383
7383
|
function M() {
|
|
7384
7384
|
p.value != null && T();
|
|
@@ -7390,16 +7390,16 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7390
7390
|
}), (r, a) => (E(), l("nav", {
|
|
7391
7391
|
ref_key: "root",
|
|
7392
7392
|
ref: m,
|
|
7393
|
-
class: "
|
|
7393
|
+
class: "wi-megamenu",
|
|
7394
7394
|
"aria-label": "Mega menu"
|
|
7395
7395
|
}, [(E(!0), l(t, null, j(e.model, (e, r) => (E(), l("div", {
|
|
7396
7396
|
key: `${e.label}-${r}`,
|
|
7397
|
-
class: y(["
|
|
7397
|
+
class: y(["wi-megamenu__item", { "wi-megamenu__item--open": p.value === r }])
|
|
7398
7398
|
}, [u("button", {
|
|
7399
7399
|
ref_for: !0,
|
|
7400
7400
|
ref: (e) => w(e, r),
|
|
7401
7401
|
type: "button",
|
|
7402
|
-
class: "
|
|
7402
|
+
class: "wi-megamenu__trigger",
|
|
7403
7403
|
disabled: e.disabled,
|
|
7404
7404
|
"aria-expanded": e.items?.length ? p.value === r : void 0,
|
|
7405
7405
|
"aria-haspopup": e.items?.length ? "true" : void 0,
|
|
@@ -7407,19 +7407,19 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7407
7407
|
}, [e.icon ? (E(), l("span", Vc, P(e.icon), 1)) : c("", !0), d(" " + P(e.label), 1)], 8, Bc), (E(), s(n, {
|
|
7408
7408
|
to: _.value.to,
|
|
7409
7409
|
disabled: _.value.disabled
|
|
7410
|
-
}, [f(i, { name: "
|
|
7410
|
+
}, [f(i, { name: "wi-scale-fade" }, {
|
|
7411
7411
|
default: W(() => [e.items?.length && p.value === r ? (E(), l("div", {
|
|
7412
7412
|
key: 0,
|
|
7413
|
-
class: y(["
|
|
7413
|
+
class: y(["wi-megamenu__panel", { "wi-megamenu__panel--teleported": x.value }]),
|
|
7414
7414
|
style: b(x.value ? g.value : void 0),
|
|
7415
7415
|
role: "menu"
|
|
7416
7416
|
}, [(E(!0), l(t, null, j(e.items, (e, n) => (E(), l("div", {
|
|
7417
7417
|
key: n,
|
|
7418
|
-
class: "
|
|
7418
|
+
class: "wi-megamenu__column"
|
|
7419
7419
|
}, [(E(!0), l(t, null, j(e, (e, t) => (E(), l("button", {
|
|
7420
7420
|
key: `${e.label}-${t}`,
|
|
7421
7421
|
type: "button",
|
|
7422
|
-
class: "
|
|
7422
|
+
class: "wi-megamenu__link",
|
|
7423
7423
|
role: "menuitem",
|
|
7424
7424
|
disabled: e.disabled,
|
|
7425
7425
|
onClick: K((t) => O(e), ["stop"])
|
|
@@ -7427,13 +7427,13 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7427
7427
|
_: 2
|
|
7428
7428
|
}, 1024)], 8, ["to", "disabled"]))], 2))), 128))], 512));
|
|
7429
7429
|
}
|
|
7430
|
-
}), Wc = { class: "
|
|
7430
|
+
}), Wc = { class: "wi-dock__list" }, Gc = [
|
|
7431
7431
|
"title",
|
|
7432
7432
|
"aria-label",
|
|
7433
7433
|
"disabled",
|
|
7434
7434
|
"onClick"
|
|
7435
7435
|
], Kc = {
|
|
7436
|
-
class: "
|
|
7436
|
+
class: "wi-dock__icon",
|
|
7437
7437
|
"aria-hidden": "true"
|
|
7438
7438
|
}, qc = /* @__PURE__ */ p({
|
|
7439
7439
|
__name: "Dock",
|
|
@@ -7442,7 +7442,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7442
7442
|
position: { default: "bottom" }
|
|
7443
7443
|
},
|
|
7444
7444
|
setup(e) {
|
|
7445
|
-
let n = e, r = o(() => ["
|
|
7445
|
+
let n = e, r = o(() => ["wi-dock", `wi-dock--${n.position}`]);
|
|
7446
7446
|
function i(e) {
|
|
7447
7447
|
e.disabled || e.command?.();
|
|
7448
7448
|
}
|
|
@@ -7451,35 +7451,35 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7451
7451
|
"aria-label": "Dock"
|
|
7452
7452
|
}, [u("ul", Wc, [(E(!0), l(t, null, j(e.model, (e, t) => (E(), l("li", {
|
|
7453
7453
|
key: `${e.label}-${t}`,
|
|
7454
|
-
class: "
|
|
7454
|
+
class: "wi-dock__item"
|
|
7455
7455
|
}, [u("button", {
|
|
7456
7456
|
type: "button",
|
|
7457
|
-
class: "
|
|
7457
|
+
class: "wi-dock__button",
|
|
7458
7458
|
title: e.label,
|
|
7459
7459
|
"aria-label": e.label,
|
|
7460
7460
|
disabled: e.disabled,
|
|
7461
7461
|
onClick: (t) => i(e)
|
|
7462
7462
|
}, [u("span", Kc, P(e.icon ?? e.label.slice(0, 1)), 1)], 8, Gc)]))), 128))])], 2));
|
|
7463
7463
|
}
|
|
7464
|
-
}), Jc = ["aria-label"], Yc = { class: "
|
|
7464
|
+
}), Jc = ["aria-label"], Yc = { class: "wi-sidebar__list" }, Xc = [
|
|
7465
7465
|
"disabled",
|
|
7466
7466
|
"title",
|
|
7467
7467
|
"onClick"
|
|
7468
7468
|
], Zc = {
|
|
7469
7469
|
key: 0,
|
|
7470
|
-
class: "
|
|
7470
|
+
class: "wi-sidebar__icon",
|
|
7471
7471
|
"aria-hidden": "true"
|
|
7472
7472
|
}, Qc = {
|
|
7473
7473
|
key: 1,
|
|
7474
|
-
class: "
|
|
7474
|
+
class: "wi-sidebar__label"
|
|
7475
7475
|
}, $c = {
|
|
7476
7476
|
key: 0,
|
|
7477
|
-
class: "
|
|
7477
|
+
class: "wi-sidebar__children"
|
|
7478
7478
|
}, el = ["disabled", "onClick"], tl = {
|
|
7479
7479
|
key: 0,
|
|
7480
|
-
class: "
|
|
7480
|
+
class: "wi-sidebar__icon",
|
|
7481
7481
|
"aria-hidden": "true"
|
|
7482
|
-
}, nl = { class: "
|
|
7482
|
+
}, nl = { class: "wi-sidebar__label" }, rl = /* @__PURE__ */ p({
|
|
7483
7483
|
__name: "Sidebar",
|
|
7484
7484
|
props: {
|
|
7485
7485
|
model: { default: () => [] },
|
|
@@ -7489,7 +7489,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7489
7489
|
}
|
|
7490
7490
|
},
|
|
7491
7491
|
setup(e) {
|
|
7492
|
-
let n = e, r = Z(), i = o(() => ["
|
|
7492
|
+
let n = e, r = Z(), i = o(() => ["wi-sidebar", { "wi-sidebar--collapsed": n.collapsed }]);
|
|
7493
7493
|
function a(e) {
|
|
7494
7494
|
e.disabled || e.command?.();
|
|
7495
7495
|
}
|
|
@@ -7498,22 +7498,22 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7498
7498
|
"aria-label": L(r).sidebar
|
|
7499
7499
|
}, [u("ul", Yc, [(E(!0), l(t, null, j(e.model, (n, r) => (E(), l("li", {
|
|
7500
7500
|
key: `${n.label}-${r}`,
|
|
7501
|
-
class: "
|
|
7501
|
+
class: "wi-sidebar__item"
|
|
7502
7502
|
}, [u("button", {
|
|
7503
7503
|
type: "button",
|
|
7504
|
-
class: "
|
|
7504
|
+
class: "wi-sidebar__link",
|
|
7505
7505
|
disabled: n.disabled,
|
|
7506
7506
|
title: e.collapsed ? n.label : void 0,
|
|
7507
7507
|
onClick: (e) => a(n)
|
|
7508
7508
|
}, [n.icon ? (E(), l("span", Zc, P(n.icon), 1)) : c("", !0), e.collapsed ? c("", !0) : (E(), l("span", Qc, P(n.label), 1))], 8, Xc), !e.collapsed && n.items?.length ? (E(), l("ul", $c, [(E(!0), l(t, null, j(n.items, (e, t) => (E(), l("li", { key: `${e.label}-${t}` }, [u("button", {
|
|
7509
7509
|
type: "button",
|
|
7510
|
-
class: "
|
|
7510
|
+
class: "wi-sidebar__link wi-sidebar__link--child",
|
|
7511
7511
|
disabled: e.disabled,
|
|
7512
7512
|
onClick: (t) => a(e)
|
|
7513
7513
|
}, [e.icon ? (E(), l("span", tl, P(e.icon), 1)) : c("", !0), u("span", nl, P(e.label), 1)], 8, el)]))), 128))])) : c("", !0)]))), 128))])], 10, Jc));
|
|
7514
7514
|
}
|
|
7515
7515
|
}), il = ["aria-label"], al = ["placeholder", "aria-label"], ol = {
|
|
7516
|
-
class: "
|
|
7516
|
+
class: "wi-commandmenu__list",
|
|
7517
7517
|
role: "listbox"
|
|
7518
7518
|
}, sl = [
|
|
7519
7519
|
"aria-selected",
|
|
@@ -7522,14 +7522,14 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7522
7522
|
"onMouseenter"
|
|
7523
7523
|
], cl = {
|
|
7524
7524
|
key: 0,
|
|
7525
|
-
class: "
|
|
7525
|
+
class: "wi-commandmenu__icon",
|
|
7526
7526
|
"aria-hidden": "true"
|
|
7527
|
-
}, ll = { class: "
|
|
7527
|
+
}, ll = { class: "wi-commandmenu__label" }, ul = {
|
|
7528
7528
|
key: 1,
|
|
7529
|
-
class: "
|
|
7529
|
+
class: "wi-commandmenu__shortcut"
|
|
7530
7530
|
}, dl = {
|
|
7531
7531
|
key: 0,
|
|
7532
|
-
class: "
|
|
7532
|
+
class: "wi-commandmenu__empty"
|
|
7533
7533
|
}, fl = /* @__PURE__ */ p({
|
|
7534
7534
|
__name: "CommandMenu",
|
|
7535
7535
|
props: {
|
|
@@ -7579,15 +7579,15 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7579
7579
|
}), (r, a) => (E(), s(n, {
|
|
7580
7580
|
to: S.value.to,
|
|
7581
7581
|
disabled: S.value.disabled
|
|
7582
|
-
}, [f(i, { name: "
|
|
7582
|
+
}, [f(i, { name: "wi-fade" }, {
|
|
7583
7583
|
default: W(() => [e.modelValue ? (E(), l("div", {
|
|
7584
7584
|
key: 0,
|
|
7585
|
-
class: "
|
|
7585
|
+
class: "wi-commandmenu-backdrop",
|
|
7586
7586
|
onClick: K(w, ["self"])
|
|
7587
7587
|
}, [u("div", {
|
|
7588
7588
|
ref_key: "panelRef",
|
|
7589
7589
|
ref: _,
|
|
7590
|
-
class: "
|
|
7590
|
+
class: "wi-commandmenu",
|
|
7591
7591
|
role: "dialog",
|
|
7592
7592
|
"aria-modal": "true",
|
|
7593
7593
|
"aria-label": L(m).commandPalette,
|
|
@@ -7597,7 +7597,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7597
7597
|
ref_key: "inputRef",
|
|
7598
7598
|
ref: b,
|
|
7599
7599
|
"onUpdate:modelValue": a[0] ||= (e) => g.value = e,
|
|
7600
|
-
class: "
|
|
7600
|
+
class: "wi-commandmenu__input",
|
|
7601
7601
|
type: "search",
|
|
7602
7602
|
placeholder: h.value,
|
|
7603
7603
|
"aria-label": L(m).searchCommands
|
|
@@ -7606,7 +7606,7 @@ var Ia = /*#__PURE__*/ ka(Aa, [["render", Fa]]), La = {
|
|
|
7606
7606
|
role: "presentation"
|
|
7607
7607
|
}, [u("button", {
|
|
7608
7608
|
type: "button",
|
|
7609
|
-
class: y(["
|
|
7609
|
+
class: y(["wi-commandmenu__item", { "wi-commandmenu__item--active": t === x.value }]),
|
|
7610
7610
|
role: "option",
|
|
7611
7611
|
"aria-selected": t === x.value,
|
|
7612
7612
|
disabled: e.disabled,
|
|
@@ -7649,23 +7649,23 @@ var ml = [
|
|
|
7649
7649
|
"multiple",
|
|
7650
7650
|
"accept",
|
|
7651
7651
|
"disabled"
|
|
7652
|
-
], hl = ["aria-disabled", "aria-label"], gl = { class: "
|
|
7652
|
+
], hl = ["aria-disabled", "aria-label"], gl = { class: "wi-fileupload__text" }, _l = ["disabled"], vl = ["disabled"], yl = {
|
|
7653
7653
|
key: 3,
|
|
7654
|
-
class: "
|
|
7654
|
+
class: "wi-fileupload__tip"
|
|
7655
7655
|
}, bl = {
|
|
7656
7656
|
key: 4,
|
|
7657
|
-
class: "
|
|
7658
|
-
}, xl = { class: "
|
|
7657
|
+
class: "wi-fileupload__list"
|
|
7658
|
+
}, xl = { class: "wi-fileupload__file-body" }, Sl = [
|
|
7659
7659
|
"src",
|
|
7660
7660
|
"alt",
|
|
7661
7661
|
"onClick"
|
|
7662
|
-
], Cl = { class: "
|
|
7662
|
+
], Cl = { class: "wi-fileupload__name" }, wl = {
|
|
7663
7663
|
key: 1,
|
|
7664
|
-
class: "
|
|
7664
|
+
class: "wi-fileupload__size"
|
|
7665
7665
|
}, Tl = {
|
|
7666
7666
|
key: 2,
|
|
7667
|
-
class: "
|
|
7668
|
-
}, El = { class: "
|
|
7667
|
+
class: "wi-fileupload__status"
|
|
7668
|
+
}, El = { class: "wi-fileupload__actions" }, Dl = ["aria-label", "onClick"], Ol = ["aria-label", "onClick"], kl = [
|
|
7669
7669
|
"aria-label",
|
|
7670
7670
|
"disabled",
|
|
7671
7671
|
"onClick"
|
|
@@ -7675,20 +7675,20 @@ var ml = [
|
|
|
7675
7675
|
"onClick"
|
|
7676
7676
|
], Ml = {
|
|
7677
7677
|
key: 1,
|
|
7678
|
-
class: "
|
|
7678
|
+
class: "wi-fileupload__card-name"
|
|
7679
7679
|
}, Nl = {
|
|
7680
7680
|
key: 2,
|
|
7681
|
-
class: "
|
|
7681
|
+
class: "wi-fileupload__card-progress"
|
|
7682
7682
|
}, Pl = {
|
|
7683
7683
|
key: 3,
|
|
7684
|
-
class: "
|
|
7684
|
+
class: "wi-fileupload__card-mask"
|
|
7685
7685
|
}, Fl = ["aria-label", "onClick"], Il = ["aria-label", "onClick"], Ll = [
|
|
7686
7686
|
"aria-label",
|
|
7687
7687
|
"disabled",
|
|
7688
7688
|
"onClick"
|
|
7689
7689
|
], Rl = ["aria-label"], zl = {
|
|
7690
7690
|
key: 6,
|
|
7691
|
-
class: "
|
|
7691
|
+
class: "wi-fileupload__toolbar"
|
|
7692
7692
|
}, Bl = /* @__PURE__ */ p({
|
|
7693
7693
|
__name: "FileUpload",
|
|
7694
7694
|
props: {
|
|
@@ -7745,12 +7745,12 @@ var ml = [
|
|
|
7745
7745
|
],
|
|
7746
7746
|
setup(e, { expose: n, emit: r }) {
|
|
7747
7747
|
let i = e, a = r, s = 0, p = k(null), m = k([]), h = k(!1), g = /* @__PURE__ */ new Map(), _ = Z(), v = o(() => i.chooseLabel ?? _.value.chooseFile), x = o(() => i.listType === "picture-card"), C = o(() => i.listType === "picture" || x.value), w = o(() => !!(i.action || i.httpRequest)), T = o(() => i.autoUpload && w.value), D = o(() => i.showFileList && m.value.length > 0 && !x.value), O = o(() => !x.value), A = o(() => !i.disabled && (i.limit == null || m.value.length < i.limit)), N = o(() => w.value && !i.autoUpload && m.value.some((e) => e.status === "ready" || e.status === "fail")), F = o(() => m.value.length > 0 && i.showFileList), I = o(() => [
|
|
7748
|
-
"
|
|
7749
|
-
`
|
|
7750
|
-
`
|
|
7748
|
+
"wi-fileupload",
|
|
7749
|
+
`wi-fileupload--${i.mode}`,
|
|
7750
|
+
`wi-fileupload--${i.listType}`,
|
|
7751
7751
|
{
|
|
7752
|
-
"
|
|
7753
|
-
"
|
|
7752
|
+
"wi-fileupload--disabled": i.disabled,
|
|
7753
|
+
"wi-fileupload--drag": i.drag
|
|
7754
7754
|
}
|
|
7755
7755
|
]);
|
|
7756
7756
|
U(() => i.fileList, (e) => {
|
|
@@ -7762,7 +7762,7 @@ var ml = [
|
|
|
7762
7762
|
})));
|
|
7763
7763
|
}, { immediate: !0 });
|
|
7764
7764
|
function R() {
|
|
7765
|
-
return s += 1, `
|
|
7765
|
+
return s += 1, `wi-upload-${Date.now()}-${s}`;
|
|
7766
7766
|
}
|
|
7767
7767
|
function z(e, t) {
|
|
7768
7768
|
m.value = e, a("update:fileList", e), t && a("change", t, e);
|
|
@@ -7943,7 +7943,7 @@ var ml = [
|
|
|
7943
7943
|
u("input", {
|
|
7944
7944
|
ref_key: "inputRef",
|
|
7945
7945
|
ref: p,
|
|
7946
|
-
class: "
|
|
7946
|
+
class: "wi-fileupload__input",
|
|
7947
7947
|
type: "file",
|
|
7948
7948
|
multiple: e.multiple,
|
|
7949
7949
|
accept: e.accept,
|
|
@@ -7952,7 +7952,7 @@ var ml = [
|
|
|
7952
7952
|
}, null, 40, ml),
|
|
7953
7953
|
e.drag && O.value ? (E(), l("div", {
|
|
7954
7954
|
key: 0,
|
|
7955
|
-
class: y(["
|
|
7955
|
+
class: y(["wi-fileupload__dragger", { "wi-fileupload__dragger--over": h.value }]),
|
|
7956
7956
|
role: "button",
|
|
7957
7957
|
tabindex: "0",
|
|
7958
7958
|
"aria-disabled": e.disabled || void 0,
|
|
@@ -7964,29 +7964,29 @@ var ml = [
|
|
|
7964
7964
|
onDragleave: q,
|
|
7965
7965
|
onDrop: re
|
|
7966
7966
|
}, [M(n.$slots, "default", {}, () => [f(X, {
|
|
7967
|
-
class: "
|
|
7967
|
+
class: "wi-fileupload__icon",
|
|
7968
7968
|
name: "upload"
|
|
7969
7969
|
}), u("p", gl, [d(P(L(_).dropFileHere) + " ", 1), u("em", null, P(L(_).clickToUpload), 1)])])], 42, hl)) : O.value && n.$slots.trigger ? (E(), l("button", {
|
|
7970
7970
|
key: 1,
|
|
7971
7971
|
type: "button",
|
|
7972
|
-
class: "
|
|
7972
|
+
class: "wi-fileupload__choose wi-fileupload__choose--slot",
|
|
7973
7973
|
disabled: e.disabled || !A.value,
|
|
7974
7974
|
onClick: G
|
|
7975
7975
|
}, [M(n.$slots, "trigger")], 8, _l)) : O.value ? (E(), l("button", {
|
|
7976
7976
|
key: 2,
|
|
7977
7977
|
type: "button",
|
|
7978
|
-
class: "
|
|
7978
|
+
class: "wi-fileupload__choose",
|
|
7979
7979
|
disabled: e.disabled || !A.value,
|
|
7980
7980
|
onClick: G
|
|
7981
7981
|
}, P(v.value), 9, vl)) : c("", !0),
|
|
7982
7982
|
n.$slots.tip ? (E(), l("div", yl, [M(n.$slots, "tip")])) : c("", !0),
|
|
7983
7983
|
D.value && !x.value ? (E(), l("ul", bl, [(E(!0), l(t, null, j(m.value, (t) => (E(), l("li", {
|
|
7984
7984
|
key: t.uid,
|
|
7985
|
-
class: y(["
|
|
7985
|
+
class: y(["wi-fileupload__file", [`wi-fileupload__file--${t.status}`, { "wi-fileupload__file--picture": C.value }]])
|
|
7986
7986
|
}, [M(n.$slots, "file", { file: t }, () => [u("div", xl, [
|
|
7987
7987
|
C.value && t.url && V(t) ? (E(), l("img", {
|
|
7988
7988
|
key: 0,
|
|
7989
|
-
class: "
|
|
7989
|
+
class: "wi-fileupload__thumb",
|
|
7990
7990
|
src: t.url,
|
|
7991
7991
|
alt: t.name,
|
|
7992
7992
|
onClick: (e) => ue(t)
|
|
@@ -7998,7 +7998,7 @@ var ml = [
|
|
|
7998
7998
|
t.url && V(t) ? (E(), l("button", {
|
|
7999
7999
|
key: 0,
|
|
8000
8000
|
type: "button",
|
|
8001
|
-
class: "
|
|
8001
|
+
class: "wi-fileupload__action",
|
|
8002
8002
|
"aria-label": L(_).previewFile,
|
|
8003
8003
|
onClick: (e) => ue(t)
|
|
8004
8004
|
}, [f(X, {
|
|
@@ -8008,7 +8008,7 @@ var ml = [
|
|
|
8008
8008
|
t.status === "fail" ? (E(), l("button", {
|
|
8009
8009
|
key: 1,
|
|
8010
8010
|
type: "button",
|
|
8011
|
-
class: "
|
|
8011
|
+
class: "wi-fileupload__action",
|
|
8012
8012
|
"aria-label": L(_).retryUpload,
|
|
8013
8013
|
onClick: (e) => oe(t)
|
|
8014
8014
|
}, [f(X, {
|
|
@@ -8017,7 +8017,7 @@ var ml = [
|
|
|
8017
8017
|
})], 8, Ol)) : c("", !0),
|
|
8018
8018
|
u("button", {
|
|
8019
8019
|
type: "button",
|
|
8020
|
-
class: "
|
|
8020
|
+
class: "wi-fileupload__action",
|
|
8021
8021
|
"aria-label": L(_).removeFile,
|
|
8022
8022
|
disabled: e.disabled,
|
|
8023
8023
|
onClick: (e) => le(t)
|
|
@@ -8028,7 +8028,7 @@ var ml = [
|
|
|
8028
8028
|
])
|
|
8029
8029
|
]), t.status === "uploading" ? (E(), l("div", {
|
|
8030
8030
|
key: 0,
|
|
8031
|
-
class: "
|
|
8031
|
+
class: "wi-fileupload__progress",
|
|
8032
8032
|
role: "progressbar",
|
|
8033
8033
|
"aria-valuemin": 0,
|
|
8034
8034
|
"aria-valuemax": 100,
|
|
@@ -8037,17 +8037,17 @@ var ml = [
|
|
|
8037
8037
|
}, null, 12, Al)) : c("", !0)])], 2))), 128))])) : c("", !0),
|
|
8038
8038
|
x.value ? (E(), l("div", {
|
|
8039
8039
|
key: 5,
|
|
8040
|
-
class: y(["
|
|
8040
|
+
class: y(["wi-fileupload__cards", { "wi-fileupload__cards--over": h.value }]),
|
|
8041
8041
|
onDragenter: ne,
|
|
8042
8042
|
onDragover: ne,
|
|
8043
8043
|
onDragleave: q,
|
|
8044
8044
|
onDrop: re
|
|
8045
8045
|
}, [(E(!0), l(t, null, j(e.showFileList ? m.value : [], (t) => (E(), l("div", {
|
|
8046
8046
|
key: t.uid,
|
|
8047
|
-
class: y(["
|
|
8047
|
+
class: y(["wi-fileupload__card", `wi-fileupload__card--${t.status}`])
|
|
8048
8048
|
}, [M(n.$slots, "file", { file: t }, () => [t.url && V(t) ? (E(), l("img", {
|
|
8049
8049
|
key: 0,
|
|
8050
|
-
class: "
|
|
8050
|
+
class: "wi-fileupload__card-image",
|
|
8051
8051
|
src: t.url,
|
|
8052
8052
|
alt: t.name,
|
|
8053
8053
|
onClick: (e) => ue(t)
|
|
@@ -8055,7 +8055,7 @@ var ml = [
|
|
|
8055
8055
|
t.url && V(t) ? (E(), l("button", {
|
|
8056
8056
|
key: 0,
|
|
8057
8057
|
type: "button",
|
|
8058
|
-
class: "
|
|
8058
|
+
class: "wi-fileupload__action",
|
|
8059
8059
|
"aria-label": L(_).previewFile,
|
|
8060
8060
|
onClick: (e) => ue(t)
|
|
8061
8061
|
}, [f(X, {
|
|
@@ -8065,7 +8065,7 @@ var ml = [
|
|
|
8065
8065
|
t.status === "fail" ? (E(), l("button", {
|
|
8066
8066
|
key: 1,
|
|
8067
8067
|
type: "button",
|
|
8068
|
-
class: "
|
|
8068
|
+
class: "wi-fileupload__action",
|
|
8069
8069
|
"aria-label": L(_).retryUpload,
|
|
8070
8070
|
onClick: (e) => oe(t)
|
|
8071
8071
|
}, [f(X, {
|
|
@@ -8074,7 +8074,7 @@ var ml = [
|
|
|
8074
8074
|
})], 8, Il)) : c("", !0),
|
|
8075
8075
|
u("button", {
|
|
8076
8076
|
type: "button",
|
|
8077
|
-
class: "
|
|
8077
|
+
class: "wi-fileupload__action",
|
|
8078
8078
|
"aria-label": L(_).removeFile,
|
|
8079
8079
|
disabled: e.disabled,
|
|
8080
8080
|
onClick: (e) => le(t)
|
|
@@ -8085,23 +8085,23 @@ var ml = [
|
|
|
8085
8085
|
]))])], 2))), 128)), A.value ? (E(), l("button", {
|
|
8086
8086
|
key: 0,
|
|
8087
8087
|
type: "button",
|
|
8088
|
-
class: "
|
|
8088
|
+
class: "wi-fileupload__card wi-fileupload__card--add",
|
|
8089
8089
|
"aria-label": L(_).addFile,
|
|
8090
8090
|
onClick: G
|
|
8091
8091
|
}, [f(X, { name: "plus" })], 8, Rl)) : c("", !0)], 34)) : c("", !0),
|
|
8092
8092
|
F.value ? (E(), l("div", zl, [N.value ? (E(), l("button", {
|
|
8093
8093
|
key: 0,
|
|
8094
8094
|
type: "button",
|
|
8095
|
-
class: "
|
|
8095
|
+
class: "wi-fileupload__choose",
|
|
8096
8096
|
onClick: se
|
|
8097
8097
|
}, P(L(_).uploadFile), 1)) : c("", !0), u("button", {
|
|
8098
8098
|
type: "button",
|
|
8099
|
-
class: "
|
|
8099
|
+
class: "wi-fileupload__clear",
|
|
8100
8100
|
onClick: de
|
|
8101
8101
|
}, P(L(_).clear), 1)])) : c("", !0)
|
|
8102
8102
|
], 2));
|
|
8103
8103
|
}
|
|
8104
|
-
}), Vl = { class: "
|
|
8104
|
+
}), Vl = { class: "wi-carousel" }, Hl = ["aria-label", "disabled"], Ul = { class: "wi-carousel__viewport" }, Wl = ["aria-label", "disabled"], Gl = /* @__PURE__ */ p({
|
|
8105
8105
|
__name: "Carousel",
|
|
8106
8106
|
props: {
|
|
8107
8107
|
value: {},
|
|
@@ -8137,14 +8137,14 @@ var ml = [
|
|
|
8137
8137
|
return (n, r) => (E(), l("div", Vl, [
|
|
8138
8138
|
u("button", {
|
|
8139
8139
|
type: "button",
|
|
8140
|
-
class: "
|
|
8140
|
+
class: "wi-carousel__nav wi-carousel__nav--prev",
|
|
8141
8141
|
"aria-label": L(s).prev,
|
|
8142
8142
|
disabled: !e.circular && a.value <= 0,
|
|
8143
8143
|
onClick: m
|
|
8144
8144
|
}, " ‹ ", 8, Hl),
|
|
8145
8145
|
u("div", Ul, [(E(!0), l(t, null, j(f.value, (t) => (E(), l("div", {
|
|
8146
8146
|
key: t.index,
|
|
8147
|
-
class: "
|
|
8147
|
+
class: "wi-carousel__item",
|
|
8148
8148
|
style: b({ flex: `0 0 ${100 / e.numVisible}%` })
|
|
8149
8149
|
}, [M(n.$slots, "item", {
|
|
8150
8150
|
item: t.item,
|
|
@@ -8152,14 +8152,14 @@ var ml = [
|
|
|
8152
8152
|
}, () => [d(P(t.item), 1)])], 4))), 128))]),
|
|
8153
8153
|
u("button", {
|
|
8154
8154
|
type: "button",
|
|
8155
|
-
class: "
|
|
8155
|
+
class: "wi-carousel__nav wi-carousel__nav--next",
|
|
8156
8156
|
"aria-label": L(s).next,
|
|
8157
8157
|
disabled: !e.circular && a.value >= c.value,
|
|
8158
8158
|
onClick: h
|
|
8159
8159
|
}, " › ", 8, Wl)
|
|
8160
8160
|
]));
|
|
8161
8161
|
}
|
|
8162
|
-
}), Kl = { class: "
|
|
8162
|
+
}), Kl = { class: "wi-gallery" }, ql = { class: "wi-gallery__main" }, Jl = ["aria-label", "disabled"], Yl = ["src"], Xl = ["aria-label", "disabled"], Zl = ["aria-label"], Ql = ["aria-selected", "onClick"], $l = ["src"], eu = /* @__PURE__ */ p({
|
|
8163
8163
|
__name: "Gallery",
|
|
8164
8164
|
props: {
|
|
8165
8165
|
images: {},
|
|
@@ -8180,31 +8180,31 @@ var ml = [
|
|
|
8180
8180
|
return (n, r) => (E(), l("div", Kl, [u("div", ql, [
|
|
8181
8181
|
u("button", {
|
|
8182
8182
|
type: "button",
|
|
8183
|
-
class: "
|
|
8183
|
+
class: "wi-gallery__nav wi-gallery__nav--prev",
|
|
8184
8184
|
"aria-label": L(a).prevImage,
|
|
8185
8185
|
disabled: e.activeIndex <= 0,
|
|
8186
8186
|
onClick: f
|
|
8187
8187
|
}, " ‹ ", 8, Jl),
|
|
8188
8188
|
s.value ? (E(), l("img", {
|
|
8189
8189
|
key: 0,
|
|
8190
|
-
class: "
|
|
8190
|
+
class: "wi-gallery__image",
|
|
8191
8191
|
src: s.value,
|
|
8192
8192
|
alt: ""
|
|
8193
8193
|
}, null, 8, Yl)) : c("", !0),
|
|
8194
8194
|
u("button", {
|
|
8195
8195
|
type: "button",
|
|
8196
|
-
class: "
|
|
8196
|
+
class: "wi-gallery__nav wi-gallery__nav--next",
|
|
8197
8197
|
"aria-label": L(a).nextImage,
|
|
8198
8198
|
disabled: e.activeIndex >= e.images.length - 1,
|
|
8199
8199
|
onClick: p
|
|
8200
8200
|
}, " › ", 8, Xl)
|
|
8201
8201
|
]), u("ul", {
|
|
8202
|
-
class: "
|
|
8202
|
+
class: "wi-gallery__thumbs",
|
|
8203
8203
|
role: "listbox",
|
|
8204
8204
|
"aria-label": L(a).thumbnails
|
|
8205
8205
|
}, [(E(!0), l(t, null, j(e.images, (t, n) => (E(), l("li", { key: `${t}-${n}` }, [u("button", {
|
|
8206
8206
|
type: "button",
|
|
8207
|
-
class: y(["
|
|
8207
|
+
class: y(["wi-gallery__thumb", { "wi-gallery__thumb--active": n === e.activeIndex }]),
|
|
8208
8208
|
role: "option",
|
|
8209
8209
|
"aria-selected": n === e.activeIndex,
|
|
8210
8210
|
onClick: (e) => d(n)
|
|
@@ -8213,7 +8213,7 @@ var ml = [
|
|
|
8213
8213
|
alt: ""
|
|
8214
8214
|
}, null, 8, $l)], 10, Ql)]))), 128))], 8, Zl)]));
|
|
8215
8215
|
}
|
|
8216
|
-
}), tu = { class: "
|
|
8216
|
+
}), tu = { class: "wi-metergroup" }, nu = ["aria-valuemax"], ru = ["title"], iu = { class: "wi-metergroup__legend" }, au = { class: "wi-metergroup__value" }, ou = /* @__PURE__ */ p({
|
|
8217
8217
|
__name: "MeterGroup",
|
|
8218
8218
|
props: {
|
|
8219
8219
|
value: {},
|
|
@@ -8229,13 +8229,13 @@ var ml = [
|
|
|
8229
8229
|
width: `${Math.max(0, e.value / r.value * 100)}%`
|
|
8230
8230
|
})));
|
|
8231
8231
|
return (n, a) => (E(), l("div", tu, [u("div", {
|
|
8232
|
-
class: "
|
|
8232
|
+
class: "wi-metergroup__meter",
|
|
8233
8233
|
role: "meter",
|
|
8234
8234
|
"aria-valuemin": 0,
|
|
8235
8235
|
"aria-valuemax": r.value
|
|
8236
8236
|
}, [(E(!0), l(t, null, j(i.value, (e, t) => (E(), l("div", {
|
|
8237
8237
|
key: `${e.label}-${t}`,
|
|
8238
|
-
class: "
|
|
8238
|
+
class: "wi-metergroup__segment",
|
|
8239
8239
|
style: b({
|
|
8240
8240
|
width: e.width,
|
|
8241
8241
|
background: e.color
|
|
@@ -8243,11 +8243,11 @@ var ml = [
|
|
|
8243
8243
|
title: `${e.label}: ${e.value}`
|
|
8244
8244
|
}, null, 12, ru))), 128))], 8, nu), u("ul", iu, [(E(!0), l(t, null, j(e.value, (e, t) => (E(), l("li", {
|
|
8245
8245
|
key: `${e.label}-${t}`,
|
|
8246
|
-
class: "
|
|
8246
|
+
class: "wi-metergroup__legend-item"
|
|
8247
8247
|
}, [
|
|
8248
8248
|
u("span", {
|
|
8249
|
-
class: "
|
|
8250
|
-
style: b({ background: e.color ?? "var(--
|
|
8249
|
+
class: "wi-metergroup__swatch",
|
|
8250
|
+
style: b({ background: e.color ?? "var(--wi-color-primary)" }),
|
|
8251
8251
|
"aria-hidden": "true"
|
|
8252
8252
|
}, null, 4),
|
|
8253
8253
|
u("span", null, P(e.label), 1),
|
|
@@ -8258,19 +8258,19 @@ var ml = [
|
|
|
8258
8258
|
__name: "Fluid",
|
|
8259
8259
|
props: { as: { default: "div" } },
|
|
8260
8260
|
setup(e) {
|
|
8261
|
-
return (t, n) => (E(), s(N(e.as), { class: "
|
|
8261
|
+
return (t, n) => (E(), s(N(e.as), { class: "wi-fluid" }, {
|
|
8262
8262
|
default: W(() => [M(t.$slots, "default")]),
|
|
8263
8263
|
_: 3
|
|
8264
8264
|
}));
|
|
8265
8265
|
}
|
|
8266
8266
|
}), cu = ["aria-label"], lu = {
|
|
8267
8267
|
key: 0,
|
|
8268
|
-
class: "
|
|
8268
|
+
class: "wi-terminal__welcome"
|
|
8269
8269
|
}, uu = {
|
|
8270
|
-
class: "
|
|
8270
|
+
class: "wi-terminal__prompt",
|
|
8271
8271
|
"aria-hidden": "true"
|
|
8272
8272
|
}, du = {
|
|
8273
|
-
class: "
|
|
8273
|
+
class: "wi-terminal__prompt",
|
|
8274
8274
|
"aria-hidden": "true"
|
|
8275
8275
|
}, fu = ["aria-label"], pu = /* @__PURE__ */ p({
|
|
8276
8276
|
__name: "Terminal",
|
|
@@ -8286,29 +8286,29 @@ var ml = [
|
|
|
8286
8286
|
e && (o.value = [...o.value, e], r("command", e), a.value = "", await v(), s.value && (s.value.scrollTop = s.value.scrollHeight));
|
|
8287
8287
|
}
|
|
8288
8288
|
return (n, r) => (E(), l("div", {
|
|
8289
|
-
class: "
|
|
8289
|
+
class: "wi-terminal",
|
|
8290
8290
|
role: "application",
|
|
8291
8291
|
"aria-label": L(i).terminal
|
|
8292
8292
|
}, [u("div", {
|
|
8293
8293
|
ref_key: "bodyRef",
|
|
8294
8294
|
ref: s,
|
|
8295
|
-
class: "
|
|
8295
|
+
class: "wi-terminal__body"
|
|
8296
8296
|
}, [e.welcomeMessage ? (E(), l("div", lu, P(e.welcomeMessage), 1)) : c("", !0), (E(!0), l(t, null, j(o.value, (t, n) => (E(), l("div", {
|
|
8297
8297
|
key: `${t}-${n}`,
|
|
8298
|
-
class: "
|
|
8298
|
+
class: "wi-terminal__line"
|
|
8299
8299
|
}, [u("span", uu, P(e.prompt), 1), u("span", null, P(t), 1)]))), 128))], 512), u("form", {
|
|
8300
|
-
class: "
|
|
8300
|
+
class: "wi-terminal__form",
|
|
8301
8301
|
onSubmit: K(d, ["prevent"])
|
|
8302
8302
|
}, [u("span", du, P(e.prompt), 1), te(u("input", {
|
|
8303
8303
|
"onUpdate:modelValue": r[0] ||= (e) => a.value = e,
|
|
8304
|
-
class: "
|
|
8304
|
+
class: "wi-terminal__input",
|
|
8305
8305
|
type: "text",
|
|
8306
8306
|
"aria-label": L(i).commandInput,
|
|
8307
8307
|
autocomplete: "off",
|
|
8308
8308
|
spellcheck: "false"
|
|
8309
8309
|
}, null, 8, fu), [[V, a.value]])], 32)], 8, cu));
|
|
8310
8310
|
}
|
|
8311
|
-
}), mu = Symbol("
|
|
8311
|
+
}), mu = Symbol("wiForm"), hu = Symbol("wiFormErrors"), gu = /* @__PURE__ */ p({
|
|
8312
8312
|
__name: "Form",
|
|
8313
8313
|
props: {
|
|
8314
8314
|
labelPosition: { default: "top" },
|
|
@@ -8398,11 +8398,11 @@ var ml = [
|
|
|
8398
8398
|
clearValidate: p,
|
|
8399
8399
|
errors: s
|
|
8400
8400
|
}), (t, n) => (E(), l("form", {
|
|
8401
|
-
class: y(["
|
|
8401
|
+
class: y(["wi-form", [`wi-form--label-${e.labelPosition}`, { "wi-form--disabled": e.disabled }]]),
|
|
8402
8402
|
onSubmit: K(b, ["prevent"])
|
|
8403
8403
|
}, [M(t.$slots, "default")], 34));
|
|
8404
8404
|
}
|
|
8405
|
-
}), _u = ["for"], vu = ["aria-label"], yu = { class: "
|
|
8405
|
+
}), _u = ["for"], vu = ["aria-label"], yu = { class: "wi-form-item__body" }, bu = { class: "wi-form-item__control" }, xu = ["id"], Su = ["id"], Cu = /* @__PURE__ */ p({
|
|
8406
8406
|
__name: "FormItem",
|
|
8407
8407
|
props: {
|
|
8408
8408
|
label: {},
|
|
@@ -8426,12 +8426,12 @@ var ml = [
|
|
|
8426
8426
|
let t = e, n = h(mu, null), r = h(hu, null), i = Z(), a = z(), s = o(() => t.labelPosition ?? n?.value.labelPosition ?? "top"), f = o(() => t.labelWidth ?? n?.value.labelWidth), p = o(() => !!(t.required && (n?.value.requireMark ?? !0))), m = o(() => t.name ?? t.for), g = o(() => {
|
|
8427
8427
|
let e = m.value;
|
|
8428
8428
|
if (!(!e || !r)) return r[e];
|
|
8429
|
-
}), _ = o(() => t.error ?? g.value), v = o(() => t.invalid || !!_.value), x = o(() => t.for ?? `
|
|
8430
|
-
"
|
|
8431
|
-
`
|
|
8429
|
+
}), _ = o(() => t.error ?? g.value), v = o(() => t.invalid || !!_.value), x = o(() => t.for ?? `wi-form-item-${a}`), C = o(() => `${x.value}-message`), w = o(() => i.value.required), T = o(() => [
|
|
8430
|
+
"wi-form-item",
|
|
8431
|
+
`wi-form-item--label-${s.value}`,
|
|
8432
8432
|
{
|
|
8433
|
-
"
|
|
8434
|
-
"
|
|
8433
|
+
"wi-form-item--invalid": v.value,
|
|
8434
|
+
"wi-form-item--required": t.required
|
|
8435
8435
|
}
|
|
8436
8436
|
]), D = o(() => s.value === "left" && f.value ? { width: f.value } : void 0);
|
|
8437
8437
|
U(() => [m.value, t.validate], ([e, t]) => {
|
|
@@ -8457,12 +8457,12 @@ var ml = [
|
|
|
8457
8457
|
onChange: k
|
|
8458
8458
|
}, [e.label ? (E(), l("label", {
|
|
8459
8459
|
key: 0,
|
|
8460
|
-
class: "
|
|
8460
|
+
class: "wi-form-item__label",
|
|
8461
8461
|
for: x.value,
|
|
8462
8462
|
style: b(D.value)
|
|
8463
8463
|
}, [p.value ? (E(), l("span", {
|
|
8464
8464
|
key: 0,
|
|
8465
|
-
class: "
|
|
8465
|
+
class: "wi-form-item__required",
|
|
8466
8466
|
"aria-label": w.value
|
|
8467
8467
|
}, "*", 8, vu)) : c("", !0), d(" " + P(e.label), 1)], 12, _u)) : c("", !0), u("div", yu, [u("div", bu, [M(t.$slots, "default", {
|
|
8468
8468
|
id: x.value,
|
|
@@ -8472,15 +8472,15 @@ var ml = [
|
|
|
8472
8472
|
})]), _.value ? (E(), l("p", {
|
|
8473
8473
|
key: 0,
|
|
8474
8474
|
id: C.value,
|
|
8475
|
-
class: "
|
|
8475
|
+
class: "wi-form-item__error",
|
|
8476
8476
|
role: "alert"
|
|
8477
8477
|
}, P(_.value), 9, xu)) : e.help ? (E(), l("p", {
|
|
8478
8478
|
key: 1,
|
|
8479
8479
|
id: C.value,
|
|
8480
|
-
class: "
|
|
8480
|
+
class: "wi-form-item__help"
|
|
8481
8481
|
}, P(e.help), 9, Su)) : c("", !0)])], 34));
|
|
8482
8482
|
}
|
|
8483
|
-
}), wu = ["data-
|
|
8483
|
+
}), wu = ["data-wi-density"], Tu = /* @__PURE__ */ p({
|
|
8484
8484
|
__name: "ConfigProvider",
|
|
8485
8485
|
props: {
|
|
8486
8486
|
config: {},
|
|
@@ -8505,16 +8505,16 @@ var ml = [
|
|
|
8505
8505
|
Ee(n);
|
|
8506
8506
|
let r = o(() => n.value.density ?? "comfortable"), i = o(() => t.globalDensity !== !1), a = o(() => {
|
|
8507
8507
|
let e = n.value.zIndex;
|
|
8508
|
-
if (e != null) return { "--
|
|
8508
|
+
if (e != null) return { "--wi-z-base": String(e) };
|
|
8509
8509
|
});
|
|
8510
8510
|
return ee(() => {
|
|
8511
|
-
!i.value || typeof document > "u" || (n.value.density && me(n.value.density), n.value.zIndex != null && document.documentElement.style.setProperty("--
|
|
8511
|
+
!i.value || typeof document > "u" || (n.value.density && me(n.value.density), n.value.zIndex != null && document.documentElement.style.setProperty("--wi-z-base", String(n.value.zIndex)));
|
|
8512
8512
|
}), (e, t) => (E(), l("div", {
|
|
8513
|
-
class: "
|
|
8514
|
-
"data-
|
|
8513
|
+
class: "wi-config-provider",
|
|
8514
|
+
"data-wi-density": r.value,
|
|
8515
8515
|
style: b(a.value)
|
|
8516
8516
|
}, [M(e.$slots, "default")], 12, wu));
|
|
8517
8517
|
}
|
|
8518
8518
|
});
|
|
8519
8519
|
//#endregion
|
|
8520
|
-
export { Ce as
|
|
8520
|
+
export { Ce as WI_CONFIG_KEY, hu as WI_FORM_ERRORS_KEY, mu as WI_FORM_KEY, Ur as WiAccordion, Yo as WiAutoComplete, yi as WiAvatar, Wr as WiBadge, js as WiBlockUI, sa as WiBreadcrumb, We as WiButton, Ze as WiCard, Gl as WiCarousel, zs as WiCascadeSelect, Nt as WiCheckbox, wi as WiChip, fl as WiCommandMenu, Tu as WiConfigProvider, go as WiConfirmDialog, Es as WiConfirmPopup, Ya as WiContextMenu, Cs as WiDataView, Oo as WiDatePicker, _t as WiDialog, pn as WiDivider, qc as WiDock, Rr as WiDrawer, bt as WiDropdown, va as WiFieldset, Bl as WiFileUpload, zi as WiFloatLabel, su as WiFluid, gu as WiForm, Cu as WiFormItem, eu as WiGallery, X as WiIcon, Vi as WiIconField, Ps as WiInplace, kt as WiInput, Qs as WiInputColor, Ui as WiInputGroup, Gi as WiInputGroupAddon, Mi as WiInputNumber, zo as WiInputOtp, Ii as WiInputPassword, tc as WiInputTags, Go as WiKnob, rc as WiLabel, No as WiListbox, Uc as WiMegaMenu, Va as WiMenu, Ka as WiMenubar, oi as WiMessage, ou as WiMeterGroup, gc as WiOrderList, Yn as WiPagination, pa as WiPanel, jc as WiPickList, zr as WiPopover, Di as WiProgressBar, Qn as WiProgressSpinner, Lt as WiRadio, ta as WiRating, Os as WiScrollTop, Mr as WiScrollbar, rn as WiSelect, qi as WiSelectButton, rl as WiSidebar, hi as WiSkeleton, Zi as WiSlider, cc as WiSpeedDial, ts as WiSplitButton, Sa as WiSplitter, Oa as WiStepper, Vt as WiSwitch, Sr as WiTable, ln as WiTabs, mn as WiTag, pu as WiTerminal, Gt as WiTextarea, uo as WiTieredMenu, ys as WiTimeline, In as WiToast, Lo as WiToggleButton, Ia as WiToolbar, hn as WiTooltip, ps as WiTree, Ys as WiTreeSelect, zc as WiTreeTable, Mc as WiVirtualScroller, me as applyDensity, ce as applyMotion, ye as applyTheme, Oe as createWellInsight, re as darkTokens, Qe as enUS, $e as formatLocale, Te as getDefaultWiConfig, Pe as getIconDefinition, le as getPreferredMotion, ve as getPreferredTheme, Me as iconNames, je as iconRegistry, Ne as isIconName, $ as isOverlayTeleported, q as lightTokens, et as mergeLocale, pi as message, Ae as normalizeSeverity, Ee as provideWiConfig, De as resolveConfiguredAppendTo, Q as resolveOverlayTeleport, ke as resolveSizeClass, _e as themeNames, Un as toast, he as useDensity, mi as useMessage, ct as useModalOverlay, ue as useMotion, J as useTheme, Wn as useToast, Y as useWiConfig, Z as useWiLocale, ne as zhCN };
|