@aures5g/vue-component-library 3.75.0 → 3.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue-component-library.js +193 -174
- package/dist/vue-component-library.umd.cjs +14 -14
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, S as s, T as c, _ as l, a as u, b as d, c as f, d as p, f as m, g as
|
|
1
|
+
import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, S as s, T as c, _ as l, a as u, b as d, c as f, d as p, f as m, g as ee, h, i as g, j as _, k as v, l as y, m as te, n as b, o as x, p as ne, r as re, s as ie, t as ae, u as S, v as oe, w as se, x as ce, y as le } from "./UIMenu-BOUmpwbY.js";
|
|
2
2
|
import { n as ue, t as de } from "./UICheckbox-CO51kllT.js";
|
|
3
3
|
import { Fragment as C, Teleport as fe, Transition as pe, computed as w, createBlock as T, createCommentVNode as E, createElementBlock as D, createElementVNode as O, createSlots as me, createTextVNode as he, createVNode as k, defineAsyncComponent as ge, defineComponent as A, effectScope as _e, h as ve, isRef as ye, mergeDefaults as be, mergeModels as j, mergeProps as M, nextTick as xe, normalizeClass as N, normalizeStyle as Se, onActivated as Ce, onDeactivated as we, onUpdated as Te, onWatcherCleanup as Ee, openBlock as P, reactive as De, ref as F, renderList as I, renderSlot as L, resolveComponent as Oe, resolveDirective as ke, resolveDynamicComponent as Ae, shallowRef as je, toDisplayString as R, toRefs as Me, toValue as Ne, unref as z, useAttrs as Pe, useId as Fe, useModel as B, useSlots as Ie, useTemplateRef as Le, vModelDynamic as Re, vModelText as ze, vShow as Be, watch as V, withCtx as H, withDirectives as Ve, withKeys as He, withModifiers as Ue } from "vue";
|
|
4
4
|
import { FontAwesomeIcon as U } from "@fortawesome/vue-fontawesome";
|
|
@@ -57,17 +57,17 @@ var Wt = {
|
|
|
57
57
|
label: { default: "" },
|
|
58
58
|
leadingIcon: { default: void 0 },
|
|
59
59
|
trailingIcon: { default: void 0 },
|
|
60
|
-
placement: { default:
|
|
60
|
+
placement: { default: g.LIGHT }
|
|
61
61
|
},
|
|
62
62
|
setup(e) {
|
|
63
63
|
let t = e, n = w(() => ({
|
|
64
64
|
[Wt.FILLED]: {
|
|
65
|
-
root: [t.placement ===
|
|
66
|
-
state: [t.placement ===
|
|
65
|
+
root: [t.placement === g.LIGHT ? "bg-primary text-on-primary disabled:bg-on-surface/12 disabled:text-on-surface" : t.placement === g.PRIMARY ? "bg-on-primary text-primary disabled:bg-on-primary/12" : t.placement === g.ERROR ? "bg-on-error text-error disabled:bg-on-error/12" : "bg-surface-container-lowest text-on-surface-variant disabled:bg-surface-container-lowest/12 disabled:text-surface-container-lowest", "eh:shadow-1"],
|
|
66
|
+
state: [t.placement === g.LIGHT ? "group-hover/button:group-enabled/button:bg-on-primary/8" : "group-hover/button:group-enabled/button:bg-on-surface-variant/8"]
|
|
67
67
|
},
|
|
68
68
|
[Wt.OUTLINED]: {
|
|
69
|
-
root: ["border", t.placement ===
|
|
70
|
-
state: [t.placement ===
|
|
69
|
+
root: ["border", t.placement === g.LIGHT ? "border-outline text-primary disabled:border-on-surface/12 disabled:text-on-surface" : "border-surface-container-lowest/16 text-surface-container-lowest"],
|
|
70
|
+
state: [t.placement === g.LIGHT ? "group-hover/button:group-enabled/button:bg-primary/8" : "group-hover/button:group-enabled/button:bg-surface-container-lowest/8"]
|
|
71
71
|
},
|
|
72
72
|
[Wt.TEXT]: {
|
|
73
73
|
root: ["text-current disabled:text-on-surface"],
|
|
@@ -336,12 +336,12 @@ var ln = {
|
|
|
336
336
|
S.load(i?.css, W({ name: "primitive-variables" }, this.$styleOptions)), S.load(a?.css, W({ name: "semantic-variables" }, this.$styleOptions)), S.load(o?.css, W({ name: "global-variables" }, this.$styleOptions)), S.loadStyle(W({ name: "global-style" }, this.$styleOptions), s), m.setLoadedStyleName("common");
|
|
337
337
|
}
|
|
338
338
|
if (!m.isStyleNameLoaded(this.$style?.name) && (e = this.$style) != null && e.name) {
|
|
339
|
-
var c, l, u, d, f = ((c = this.$style) == null || (l = c.getComponentTheme) == null ? void 0 : l.call(c)) || {}, p = f.css,
|
|
340
|
-
(u = this.$style) == null || u.load(p, W({ name: `${this.$style.name}-variables` }, this.$styleOptions)), (d = this.$style) == null || d.loadStyle(W({ name: `${this.$style.name}-style` }, this.$styleOptions),
|
|
339
|
+
var c, l, u, d, f = ((c = this.$style) == null || (l = c.getComponentTheme) == null ? void 0 : l.call(c)) || {}, p = f.css, ee = f.style;
|
|
340
|
+
(u = this.$style) == null || u.load(p, W({ name: `${this.$style.name}-variables` }, this.$styleOptions)), (d = this.$style) == null || d.loadStyle(W({ name: `${this.$style.name}-style` }, this.$styleOptions), ee), m.setLoadedStyleName(this.$style.name);
|
|
341
341
|
}
|
|
342
342
|
if (!m.isStyleNameLoaded("layer-order")) {
|
|
343
|
-
var g, _
|
|
344
|
-
S.load(
|
|
343
|
+
var h, g, _ = (h = this.$style) == null || (g = h.getLayerOrderThemeCSS) == null ? void 0 : g.call(h);
|
|
344
|
+
S.load(_, W({
|
|
345
345
|
name: "layer-order",
|
|
346
346
|
first: !0
|
|
347
347
|
}, this.$styleOptions)), m.setLoadedStyleName("layer-order");
|
|
@@ -443,13 +443,13 @@ var ln = {
|
|
|
443
443
|
globalPT: function() {
|
|
444
444
|
var e = this;
|
|
445
445
|
return this._getPT(this.$primevueConfig?.pt, void 0, function(t) {
|
|
446
|
-
return
|
|
446
|
+
return _(t, { instance: e });
|
|
447
447
|
});
|
|
448
448
|
},
|
|
449
449
|
defaultPT: function() {
|
|
450
450
|
var e = this;
|
|
451
451
|
return this._getPT(this.$primevueConfig?.pt, void 0, function(t) {
|
|
452
|
-
return e._getOptionValue(t, e.$name, W({}, e.$params)) ||
|
|
452
|
+
return e._getOptionValue(t, e.$name, W({}, e.$params)) || _(t, W({}, e.$params));
|
|
453
453
|
});
|
|
454
454
|
},
|
|
455
455
|
isUnstyled: function() {
|
|
@@ -840,7 +840,7 @@ function Wn(e, t) {
|
|
|
840
840
|
}
|
|
841
841
|
var K = {
|
|
842
842
|
_getMeta: function() {
|
|
843
|
-
return [
|
|
843
|
+
return [v(arguments.length <= 0 ? void 0 : arguments[0]) || arguments.length <= 0 ? void 0 : arguments[0], _(v(arguments.length <= 0 ? void 0 : arguments[0]) ? arguments.length <= 0 ? void 0 : arguments[0] : arguments.length <= 1 ? void 0 : arguments[1])];
|
|
844
844
|
},
|
|
845
845
|
_getConfig: function(e, t) {
|
|
846
846
|
var n, r;
|
|
@@ -851,8 +851,8 @@ var K = {
|
|
|
851
851
|
var e, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "", a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = function() {
|
|
852
852
|
var e = K._getOptionValue.apply(K, arguments);
|
|
853
853
|
return r(e) || se(e) ? { class: e } : e;
|
|
854
|
-
}, c = ((e = t.binding) == null || (e = e.value) == null ? void 0 : e.ptOptions) || t.$primevueConfig?.ptOptions || {}, l = c.mergeSections, u = l === void 0 || l, d = c.mergeProps, f = d !== void 0 && d, p = o ? K._useDefaultPT(t, t.defaultPT(), s, i, a) : void 0, m = K._usePT(t, K._getPT(n, t.$name), s, i, G(G({}, a), {}, { global: p || {} })),
|
|
855
|
-
return u || !u && m ? f ? K._mergeProps(t, f, p, m,
|
|
854
|
+
}, c = ((e = t.binding) == null || (e = e.value) == null ? void 0 : e.ptOptions) || t.$primevueConfig?.ptOptions || {}, l = c.mergeSections, u = l === void 0 || l, d = c.mergeProps, f = d !== void 0 && d, p = o ? K._useDefaultPT(t, t.defaultPT(), s, i, a) : void 0, m = K._usePT(t, K._getPT(n, t.$name), s, i, G(G({}, a), {}, { global: p || {} })), ee = K._getPTDatasets(t, i);
|
|
855
|
+
return u || !u && m ? f ? K._mergeProps(t, f, p, m, ee) : G(G(G({}, p), m), ee) : G(G({}, m), ee);
|
|
856
856
|
},
|
|
857
857
|
_getPTDatasets: function() {
|
|
858
858
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", n = "data-pc-";
|
|
@@ -904,12 +904,12 @@ var K = {
|
|
|
904
904
|
S.load(s?.css, G({ name: "primitive-variables" }, r)), S.load(c?.css, G({ name: "semantic-variables" }, r)), S.load(l?.css, G({ name: "global-variables" }, r)), S.loadStyle(G({ name: "global-style" }, r), u), m.setLoadedStyleName("common");
|
|
905
905
|
}
|
|
906
906
|
if (!m.isStyleNameLoaded(n.$style?.name) && (t = n.$style) != null && t.name) {
|
|
907
|
-
var d, f, p,
|
|
908
|
-
(p = n.$style) == null || p.load(
|
|
907
|
+
var d, f, p, ee, h = ((d = n.$style) == null || (f = d.getDirectiveTheme) == null ? void 0 : f.call(d)) || {}, g = h.css, _ = h.style;
|
|
908
|
+
(p = n.$style) == null || p.load(g, G({ name: `${n.$style.name}-variables` }, r)), (ee = n.$style) == null || ee.loadStyle(G({ name: `${n.$style.name}-style` }, r), _), m.setLoadedStyleName(n.$style.name);
|
|
909
909
|
}
|
|
910
910
|
if (!m.isStyleNameLoaded("layer-order")) {
|
|
911
|
-
var
|
|
912
|
-
S.load(
|
|
911
|
+
var v, y, te = (v = n.$style) == null || (y = v.getLayerOrderThemeCSS) == null ? void 0 : y.call(v);
|
|
912
|
+
S.load(te, G({
|
|
913
913
|
name: "layer-order",
|
|
914
914
|
first: !0
|
|
915
915
|
}, r)), m.setLoadedStyleName("layer-order");
|
|
@@ -1014,10 +1014,10 @@ var K = {
|
|
|
1014
1014
|
a.$watchersCallback = {
|
|
1015
1015
|
config: s,
|
|
1016
1016
|
"config.ripple": c
|
|
1017
|
-
}, o == null || (n = o.config) == null || n.call(a, a?.$primevueConfig),
|
|
1017
|
+
}, o == null || (n = o.config) == null || n.call(a, a?.$primevueConfig), y.on("config:change", s), o == null || (r = o["config.ripple"]) == null || r.call(a, a == null || (i = a.$primevueConfig) == null ? void 0 : i.ripple), y.on("config:ripple:change", c);
|
|
1018
1018
|
}, a = function(e) {
|
|
1019
1019
|
var n = e._$instances[t].$watchersCallback;
|
|
1020
|
-
n && (
|
|
1020
|
+
n && (y.off("config:change", n.config), y.off("config:ripple:change", n["config.ripple"]), e._$instances[t].$watchersCallback = void 0);
|
|
1021
1021
|
};
|
|
1022
1022
|
return {
|
|
1023
1023
|
created: function(e, n, i, a) {
|
|
@@ -1146,22 +1146,22 @@ var rr = Kn.extend("ripple", {
|
|
|
1146
1146
|
onMouseDown: function(e) {
|
|
1147
1147
|
var t = this, n = e.currentTarget, r = this.getInk(n);
|
|
1148
1148
|
if (!(!r || getComputedStyle(r, null).display === "none")) {
|
|
1149
|
-
if (!this.isUnstyled() &&
|
|
1149
|
+
if (!this.isUnstyled() && h(r, "p-ink-active"), r.setAttribute("data-p-ink-active", "false"), !oe(r) && !l(r)) {
|
|
1150
1150
|
var i = Math.max(s(n), ne(n));
|
|
1151
1151
|
r.style.height = i + "px", r.style.width = i + "px";
|
|
1152
1152
|
}
|
|
1153
|
-
var a =
|
|
1153
|
+
var a = te(n), o = e.pageX - a.left + document.body.scrollTop - l(r) / 2, c = e.pageY - a.top + document.body.scrollLeft - oe(r) / 2;
|
|
1154
1154
|
r.style.top = c + "px", r.style.left = o + "px", !this.isUnstyled() && d(r, "p-ink-active"), r.setAttribute("data-p-ink-active", "true"), this.timeout = setTimeout(function() {
|
|
1155
|
-
r && (!t.isUnstyled() &&
|
|
1155
|
+
r && (!t.isUnstyled() && h(r, "p-ink-active"), r.setAttribute("data-p-ink-active", "false"));
|
|
1156
1156
|
}, 401);
|
|
1157
1157
|
}
|
|
1158
1158
|
},
|
|
1159
1159
|
onAnimationEnd: function(e) {
|
|
1160
|
-
this.timeout && clearTimeout(this.timeout), !this.isUnstyled() &&
|
|
1160
|
+
this.timeout && clearTimeout(this.timeout), !this.isUnstyled() && h(e.currentTarget, "p-ink-active"), e.currentTarget.setAttribute("data-p-ink-active", "false");
|
|
1161
1161
|
},
|
|
1162
1162
|
getInk: function(e) {
|
|
1163
1163
|
return e && e.children ? Jn(e.children).find(function(e) {
|
|
1164
|
-
return
|
|
1164
|
+
return ee(e, "data-pc-name") === "ripple";
|
|
1165
1165
|
}) : void 0;
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
@@ -1547,30 +1547,30 @@ function Sr(e, t) {
|
|
|
1547
1547
|
});
|
|
1548
1548
|
}
|
|
1549
1549
|
let m = w(p);
|
|
1550
|
-
function
|
|
1550
|
+
function ee() {
|
|
1551
1551
|
if (o.value === null || !a.value) return 0;
|
|
1552
1552
|
let e = m.value[o.value];
|
|
1553
1553
|
if (!e) return 0;
|
|
1554
1554
|
let { top: t } = e, n = t.value - u.value;
|
|
1555
1555
|
return n + f.value > d.value && (n = d.value - f.value), n;
|
|
1556
1556
|
}
|
|
1557
|
-
let
|
|
1558
|
-
function
|
|
1557
|
+
let h = w(ee);
|
|
1558
|
+
function g(e, n) {
|
|
1559
1559
|
t.value[n] || (o.value = e);
|
|
1560
1560
|
}
|
|
1561
|
-
async function
|
|
1561
|
+
async function _(e) {
|
|
1562
1562
|
await new Promise((e) => setTimeout(e, yr)), !(l.value || o.value !== e) && (o.value = null);
|
|
1563
1563
|
}
|
|
1564
|
-
async function
|
|
1564
|
+
async function v() {
|
|
1565
1565
|
o.value = null;
|
|
1566
1566
|
}
|
|
1567
|
-
async function
|
|
1567
|
+
async function y() {
|
|
1568
1568
|
l.value = !0;
|
|
1569
1569
|
}
|
|
1570
|
-
async function
|
|
1570
|
+
async function te() {
|
|
1571
1571
|
l.value = !1;
|
|
1572
1572
|
}
|
|
1573
|
-
return V(
|
|
1573
|
+
return V(h, (e) => {
|
|
1574
1574
|
a.value && (a.value.style.top = `${e}px`);
|
|
1575
1575
|
}), Te(function() {
|
|
1576
1576
|
i.forEach((e) => e());
|
|
@@ -1578,13 +1578,13 @@ function Sr(e, t) {
|
|
|
1578
1578
|
activeFloatingMenuIndex: o,
|
|
1579
1579
|
menuItemRefs: r,
|
|
1580
1580
|
navbarRef: n,
|
|
1581
|
-
enterFloatingTrigger:
|
|
1582
|
-
leaveFloatingTrigger:
|
|
1581
|
+
enterFloatingTrigger: g,
|
|
1582
|
+
leaveFloatingTrigger: _,
|
|
1583
1583
|
activeFloatingMenu: c,
|
|
1584
1584
|
floatingMenuWrapperRef: a,
|
|
1585
|
-
resetFloatingMenu:
|
|
1586
|
-
focusFloatingMenu:
|
|
1587
|
-
blurFloatingMenu:
|
|
1585
|
+
resetFloatingMenu: v,
|
|
1586
|
+
focusFloatingMenu: y,
|
|
1587
|
+
blurFloatingMenu: te
|
|
1588
1588
|
};
|
|
1589
1589
|
}
|
|
1590
1590
|
function Cr() {
|
|
@@ -1626,9 +1626,9 @@ var wr = { class: "h-[28px] min-w-[28px] p-[6px] box-content bg-surface-containe
|
|
|
1626
1626
|
expandedRoutes: { default: () => [] }
|
|
1627
1627
|
},
|
|
1628
1628
|
setup(e) {
|
|
1629
|
-
let t = ge(() => Promise.resolve().then(() => ni)), n = e, { isNavbarExpandedByDefault: r, isMenuOpen: i, onToggle: a, navbarClasses: o } = br(n.expandedRoutes), { menuCategories: s, onCategoryClick: c, menuCategoryClasses: l } = xr(n.mainMenuItems, n.landingRoute), { activeFloatingMenuIndex: u, menuItemRefs: d, navbarRef: f, enterFloatingTrigger: p, activeFloatingMenu: m, floatingMenuWrapperRef:
|
|
1630
|
-
return (n,
|
|
1631
|
-
let
|
|
1629
|
+
let t = ge(() => Promise.resolve().then(() => ni)), n = e, { isNavbarExpandedByDefault: r, isMenuOpen: i, onToggle: a, navbarClasses: o } = br(n.expandedRoutes), { menuCategories: s, onCategoryClick: c, menuCategoryClasses: l } = xr(n.mainMenuItems, n.landingRoute), { activeFloatingMenuIndex: u, menuItemRefs: d, navbarRef: f, enterFloatingTrigger: p, activeFloatingMenu: m, floatingMenuWrapperRef: ee, leaveFloatingTrigger: h, resetFloatingMenu: g, focusFloatingMenu: _, blurFloatingMenu: v } = Sr(n.mainMenuItems, s), { getCategoryLinkComponent: y, getCategoryLinkProps: te } = Cr();
|
|
1630
|
+
return (n, b) => {
|
|
1631
|
+
let x = ke("tooltip");
|
|
1632
1632
|
return P(), D("div", {
|
|
1633
1633
|
ref_key: "navbarRef",
|
|
1634
1634
|
ref: f,
|
|
@@ -1651,9 +1651,9 @@ var wr = { class: "h-[28px] min-w-[28px] p-[6px] box-content bg-surface-containe
|
|
|
1651
1651
|
ref: d,
|
|
1652
1652
|
class: N(z(l)[e.name]),
|
|
1653
1653
|
onMouseenter: (t) => z(p)(n, e.name),
|
|
1654
|
-
onMouseleave: (e) => z(
|
|
1655
|
-
onClick:
|
|
1656
|
-
}, [(P(), T(Ae(z(
|
|
1654
|
+
onMouseleave: (e) => z(h)(n),
|
|
1655
|
+
onClick: b[0] ||= (...e) => z(g) && z(g)(...e)
|
|
1656
|
+
}, [(P(), T(Ae(z(y)(e)), M({ ref_for: !0 }, z(te)(e), {
|
|
1657
1657
|
class: ["py-md px-lg h-[24px] box-content hover:bg-on-surface/16 text-on-surface-variant block", { "bg-on-surface/16": z(u) === n }],
|
|
1658
1658
|
"active-class": "bg-inverse-surface! text-inverse-on-surface!"
|
|
1659
1659
|
}), {
|
|
@@ -1688,7 +1688,7 @@ var wr = { class: "h-[28px] min-w-[28px] p-[6px] box-content bg-surface-containe
|
|
|
1688
1688
|
class: "absolute -bottom-[40%] left-[50%] -translate-x-1/2 -translate-y-1/2 py-[2px] px-[5px] text-[9px] leading-[9px] h-[unset]"
|
|
1689
1689
|
}, null, 8, ["value"])) : E("", !0)]), O("span", Ir, R(n.title), 1)])]),
|
|
1690
1690
|
_: 2
|
|
1691
|
-
}, 1032, ["to"])), [[
|
|
1691
|
+
}, 1032, ["to"])), [[x, {
|
|
1692
1692
|
value: n.title,
|
|
1693
1693
|
disabled: z(i) || !z(s)[e.name],
|
|
1694
1694
|
position: "right"
|
|
@@ -1696,11 +1696,11 @@ var wr = { class: "h-[28px] min-w-[28px] p-[6px] box-content bg-surface-containe
|
|
|
1696
1696
|
z(m) ? (P(), D("div", {
|
|
1697
1697
|
key: 0,
|
|
1698
1698
|
ref_key: "floatingMenuWrapperRef",
|
|
1699
|
-
ref:
|
|
1699
|
+
ref: ee,
|
|
1700
1700
|
class: "absolute left-full bg-surface-container-low py-sm z-99",
|
|
1701
|
-
onMouseenter:
|
|
1702
|
-
onMouseleave:
|
|
1703
|
-
onClick:
|
|
1701
|
+
onMouseenter: b[1] ||= (...e) => z(_) && z(_)(...e),
|
|
1702
|
+
onMouseleave: b[2] ||= (...e) => z(v) && z(v)(...e),
|
|
1703
|
+
onClick: b[3] ||= (...e) => z(v) && z(v)(...e)
|
|
1704
1704
|
}, [O("ul", { class: N({ "no-subcategory": (z(m).subMenuItems || []).length < 1 }) }, [
|
|
1705
1705
|
O("li", Lr, [O("div", Rr, [O("span", zr, R(z(m).title), 1)])]),
|
|
1706
1706
|
(z(m).subMenuItems || []).length > 0 ? (P(), D("hr", Br)) : E("", !0),
|
|
@@ -1722,7 +1722,7 @@ var wr = { class: "h-[28px] min-w-[28px] p-[6px] box-content bg-surface-containe
|
|
|
1722
1722
|
class: "absolute -bottom-[40%] left-[50%] -translate-x-1/2 -translate-y-1/2 py-[2px] px-[5px] text-[9px] leading-[9px] h-[unset]"
|
|
1723
1723
|
}, null, 8, ["value"])) : E("", !0)]), O("span", Ur, R(e.title), 1)])]),
|
|
1724
1724
|
_: 2
|
|
1725
|
-
}, 1032, ["to"])), [[
|
|
1725
|
+
}, 1032, ["to"])), [[x, {
|
|
1726
1726
|
value: e.title,
|
|
1727
1727
|
disabled: z(i) || !z(s)[z(m).name],
|
|
1728
1728
|
position: "right"
|
|
@@ -1991,7 +1991,7 @@ var ui = {
|
|
|
1991
1991
|
iconPosition: { default: ui.RIGHT }
|
|
1992
1992
|
},
|
|
1993
1993
|
setup(e) {
|
|
1994
|
-
let t = e, n =
|
|
1994
|
+
let t = e, n = x();
|
|
1995
1995
|
function r(e, r) {
|
|
1996
1996
|
let i = z(n.locale?.copied);
|
|
1997
1997
|
return {
|
|
@@ -2654,7 +2654,7 @@ var Hi = function() {
|
|
|
2654
2654
|
function d() {
|
|
2655
2655
|
a("focusInput");
|
|
2656
2656
|
}
|
|
2657
|
-
let f = { WRAPPER: `--field-wrapper-${o}` }, p =
|
|
2657
|
+
let f = { WRAPPER: `--field-wrapper-${o}` }, p = x();
|
|
2658
2658
|
return t({
|
|
2659
2659
|
inputId: o,
|
|
2660
2660
|
anchors: f
|
|
@@ -2936,7 +2936,7 @@ var Hi = function() {
|
|
|
2936
2936
|
setup(e, { emit: t }) {
|
|
2937
2937
|
let n = t, r = Ie();
|
|
2938
2938
|
return (t, i) => (P(), D("div", ro, [O("div", io, [L(t.$slots, "header", {}, () => [O("div", ao, [
|
|
2939
|
-
e.showBackIcon ? (P(), T(
|
|
2939
|
+
e.showBackIcon ? (P(), T(b, {
|
|
2940
2940
|
key: 0,
|
|
2941
2941
|
icon: z(We),
|
|
2942
2942
|
color: "standard",
|
|
@@ -2947,7 +2947,7 @@ var Hi = function() {
|
|
|
2947
2947
|
key: 0,
|
|
2948
2948
|
icon: e.infoIcon
|
|
2949
2949
|
}, null, 8, ["icon"])) : E("", !0)])])])) : E("", !0), O("div", uo, [O("span", fo, R(e.headline), 1), e.subHeadline ? (P(), D("span", po, R(e.subHeadline), 1)) : E("", !0)])]), r.tags ? (P(), D("div", mo, [L(t.$slots, "tags")])) : E("", !0)]),
|
|
2950
|
-
e.showCloseIcon ? (P(), T(
|
|
2950
|
+
e.showCloseIcon ? (P(), T(b, {
|
|
2951
2951
|
key: 1,
|
|
2952
2952
|
icon: z(tt),
|
|
2953
2953
|
color: "standard",
|
|
@@ -3322,41 +3322,41 @@ var Qo = { class: "size-[1.5rem]" }, $o = { class: "truncate" }, es = {
|
|
|
3322
3322
|
let n = o(e);
|
|
3323
3323
|
return l(n) ? n : t;
|
|
3324
3324
|
}
|
|
3325
|
-
let d = B(e, "modelValue"), f = F(""), p = F(!1), m = w(() => new Map(n.options.map((e) => [o(e), e]))),
|
|
3325
|
+
let d = B(e, "modelValue"), f = F(""), p = F(!1), m = w(() => new Map(n.options.map((e) => [o(e), e]))), ee = w(() => {
|
|
3326
3326
|
if (!d.value) return null;
|
|
3327
3327
|
let e = m.value.get(d.value);
|
|
3328
3328
|
return e ? a(e) : null;
|
|
3329
|
-
}),
|
|
3329
|
+
}), h = w({
|
|
3330
3330
|
get() {
|
|
3331
|
-
return p.value ? f.value :
|
|
3331
|
+
return p.value ? f.value : ee.value;
|
|
3332
3332
|
},
|
|
3333
3333
|
set(e) {
|
|
3334
3334
|
f.value = e?.toString() || "";
|
|
3335
3335
|
}
|
|
3336
|
-
}),
|
|
3337
|
-
function
|
|
3338
|
-
f.value = "", p.value = !0,
|
|
3336
|
+
}), g = Le("input");
|
|
3337
|
+
function _() {
|
|
3338
|
+
f.value = "", p.value = !0, g.value?.focus();
|
|
3339
3339
|
}
|
|
3340
|
-
function
|
|
3340
|
+
function v() {
|
|
3341
3341
|
p.value = !1;
|
|
3342
3342
|
}
|
|
3343
|
-
let
|
|
3343
|
+
let y = Ie(), te = Le("formFieldWrapper"), b = w(() => n.options.filter((e) => {
|
|
3344
3344
|
let t = a(e);
|
|
3345
3345
|
if (typeof t == "string") return Zo(t).startsWith(Zo(f.value));
|
|
3346
3346
|
}));
|
|
3347
|
-
function
|
|
3348
|
-
e.preventDefault(), d.value = o(t),
|
|
3347
|
+
function x(e, t) {
|
|
3348
|
+
e.preventDefault(), d.value = o(t), g.value?.blur();
|
|
3349
3349
|
}
|
|
3350
3350
|
let ne = F(-1);
|
|
3351
3351
|
function re(e) {
|
|
3352
3352
|
e.preventDefault(), e.stopPropagation();
|
|
3353
3353
|
let t = ne.value;
|
|
3354
|
-
e.code === "ArrowDown" ? t = t >=
|
|
3354
|
+
e.code === "ArrowDown" ? t = t >= b.value.length - 1 ? b.value.length - 1 : t + 1 : e.code === "ArrowUp" && (t = t <= 0 ? 0 : t - 1), ne.value = t;
|
|
3355
3355
|
}
|
|
3356
3356
|
function ie() {
|
|
3357
3357
|
if (ne.value < 0) return;
|
|
3358
|
-
let e =
|
|
3359
|
-
e && (d.value = o(e),
|
|
3358
|
+
let e = b.value[ne.value];
|
|
3359
|
+
e && (d.value = o(e), g.value?.blur(), ne.value = -1);
|
|
3360
3360
|
}
|
|
3361
3361
|
function ae(e) {
|
|
3362
3362
|
switch (e.code) {
|
|
@@ -3364,7 +3364,7 @@ var Qo = { class: "size-[1.5rem]" }, $o = { class: "truncate" }, es = {
|
|
|
3364
3364
|
ie();
|
|
3365
3365
|
break;
|
|
3366
3366
|
case "Escape":
|
|
3367
|
-
|
|
3367
|
+
g.value?.blur();
|
|
3368
3368
|
break;
|
|
3369
3369
|
case "ArrowDown":
|
|
3370
3370
|
case "ArrowUp":
|
|
@@ -3376,43 +3376,43 @@ var Qo = { class: "size-[1.5rem]" }, $o = { class: "truncate" }, es = {
|
|
|
3376
3376
|
let d = ke("tooltip");
|
|
3377
3377
|
return P(), D(C, null, [k(Fa, M({ ref: "formFieldWrapper" }, n, {
|
|
3378
3378
|
"trailing-icon": z(jt),
|
|
3379
|
-
onFocusInput:
|
|
3379
|
+
onFocusInput: _
|
|
3380
3380
|
}), me({
|
|
3381
3381
|
default: H((e) => [Ve(O("input", M({
|
|
3382
3382
|
ref: "input",
|
|
3383
|
-
"onUpdate:modelValue": l[0] ||= (e) =>
|
|
3383
|
+
"onUpdate:modelValue": l[0] ||= (e) => h.value = e
|
|
3384
3384
|
}, {
|
|
3385
3385
|
...e,
|
|
3386
3386
|
...z(i)
|
|
3387
3387
|
}, {
|
|
3388
|
-
onFocus:
|
|
3389
|
-
onBlur:
|
|
3388
|
+
onFocus: _,
|
|
3389
|
+
onBlur: v,
|
|
3390
3390
|
onKeydown: l[1] ||= (e) => ae(e)
|
|
3391
|
-
}), null, 16), [[Re,
|
|
3391
|
+
}), null, 16), [[Re, h.value]]), p.value && !f.value ? (P(), D("span", {
|
|
3392
3392
|
key: 0,
|
|
3393
|
-
style: Se({ "position-anchor":
|
|
3393
|
+
style: Se({ "position-anchor": te.value?.anchors.WRAPPER }),
|
|
3394
3394
|
class: "absolute top-[anchor(top)] left-[anchor(left)] text-on-surface-variant text-body-large"
|
|
3395
|
-
}, R(
|
|
3395
|
+
}, R(ee.value), 5)) : E("", !0)]),
|
|
3396
3396
|
_: 2
|
|
3397
3397
|
}, [
|
|
3398
|
-
|
|
3398
|
+
y.leadingIcon ? {
|
|
3399
3399
|
name: "leadingIcon",
|
|
3400
3400
|
fn: H(() => [L(t.$slots, "leadingIcon")]),
|
|
3401
3401
|
key: "0"
|
|
3402
3402
|
} : void 0,
|
|
3403
|
-
|
|
3403
|
+
y.trailingIcon ? {
|
|
3404
3404
|
name: "trailingIcon",
|
|
3405
3405
|
fn: H(() => [L(t.$slots, "trailingIcon")]),
|
|
3406
3406
|
key: "1"
|
|
3407
3407
|
} : void 0,
|
|
3408
|
-
|
|
3408
|
+
y.tags ? {
|
|
3409
3409
|
name: "tags",
|
|
3410
3410
|
fn: H(() => [L(t.$slots, "tags")]),
|
|
3411
3411
|
key: "2"
|
|
3412
3412
|
} : void 0
|
|
3413
3413
|
]), 1040, ["trailing-icon"]), (P(), T(fe, { to: "body" }, [p.value ? (P(), D("ul", {
|
|
3414
3414
|
key: 0,
|
|
3415
|
-
style: Se({ "position-anchor":
|
|
3415
|
+
style: Se({ "position-anchor": te.value?.anchors.WRAPPER }),
|
|
3416
3416
|
class: "absolute top-[calc(anchor(bottom)+0.25rem)] left-[anchor(left)] bg-surface-container-low py-[0.5rem] w-[anchor-size(width)] rounded-extra-small shadow-2 max-h-[15rem] overflow-auto z-10"
|
|
3417
3417
|
}, [L(t.$slots, "action", {}, () => [e.actionLabel ? (P(), D(C, { key: 0 }, [O("li", {
|
|
3418
3418
|
class: "p-[0.5rem] gap-[0.5rem] text-body-large flex cursor-pointer hover:bg-on-surface/8",
|
|
@@ -3428,12 +3428,12 @@ var Qo = { class: "size-[1.5rem]" }, $o = { class: "truncate" }, es = {
|
|
|
3428
3428
|
class: "text-[1rem]",
|
|
3429
3429
|
icon: e.actionTrailingIcon
|
|
3430
3430
|
}, null, 8, ["icon"])])) : E("", !0)
|
|
3431
|
-
], 32), l[3] ||= O("li", { class: "py-[0.5rem]" }, [O("div", { class: "bg-outline/16 w-full h-[0.0625rem]" })], -1)], 64)) : E("", !0)]), (P(!0), D(C, null, I(
|
|
3431
|
+
], 32), l[3] ||= O("li", { class: "py-[0.5rem]" }, [O("div", { class: "bg-outline/16 w-full h-[0.0625rem]" })], -1)], 64)) : E("", !0)]), (P(!0), D(C, null, I(b.value, (t, n) => (P(), D("li", {
|
|
3432
3432
|
key: u(t, n),
|
|
3433
3433
|
class: N(["p-[0.5rem] gap-[0.5rem] text-body-large flex cursor-pointer hover:bg-on-surface/8 h-[2.5rem]", { "bg-on-surface/8": ne.value === n }]),
|
|
3434
3434
|
"data-cy": `${e.cyPrefix}option_${o(t)}`,
|
|
3435
3435
|
"data-cy-text": `${e.cyPrefix}option_${a(t)}`,
|
|
3436
|
-
onMousedown: (e) =>
|
|
3436
|
+
onMousedown: (e) => x(e, t)
|
|
3437
3437
|
}, [
|
|
3438
3438
|
O("span", ns, [s(t) ? (P(), T(z(U), {
|
|
3439
3439
|
key: 0,
|
|
@@ -3836,7 +3836,7 @@ var Qo = { class: "size-[1.5rem]" }, $o = { class: "truncate" }, es = {
|
|
|
3836
3836
|
}),
|
|
3837
3837
|
emits: ["update:selection"],
|
|
3838
3838
|
setup(e) {
|
|
3839
|
-
let t = ge(() => import("./TableSelectionCheckbox-Bd72Q-xQ.js")), n = F(!1), r =
|
|
3839
|
+
let t = ge(() => import("./TableSelectionCheckbox-Bd72Q-xQ.js")), n = F(!1), r = x(), i = Ie(), a = B(e, "selection");
|
|
3840
3840
|
return (o, s) => (P(), D("div", Js, [
|
|
3841
3841
|
i.cardTitle || i.cardSubtitle ? (P(), D("div", Ys, [i.cardTitle ? (P(), D("div", Xs, [L(o.$slots, "cardTitle")])) : E("", !0), i.cardSubtitle ? (P(), D("div", Zs, [L(o.$slots, "cardSubtitle")])) : E("", !0)])) : E("", !0),
|
|
3842
3842
|
e.showSelection ? (P(), D("div", Qs, [k(z(t), {
|
|
@@ -3900,7 +3900,7 @@ var cc = {
|
|
|
3900
3900
|
},
|
|
3901
3901
|
emits: ["openFilterOverlay", "sort"],
|
|
3902
3902
|
setup(e, { emit: t }) {
|
|
3903
|
-
let n =
|
|
3903
|
+
let n = x(), r = w(() => z(n.locale?.tableSortColumn) || "tableSortColumn"), i = w(() => z(n.locale?.tableFilterColumn) || "tableFilterColumn"), a = t, o = Le("labelRef"), s = F(!1);
|
|
3904
3904
|
return wt(o, (e) => {
|
|
3905
3905
|
let t = e[0];
|
|
3906
3906
|
t && (t.target.clientWidth === 0 && t.target.scrollWidth === 0 || (s.value = ie(t.target)));
|
|
@@ -3932,7 +3932,7 @@ var cc = {
|
|
|
3932
3932
|
"@max-[6.5rem]:grow @max-[6.5rem]:flex-col": e.isSortable && e.hasHeaderFilter,
|
|
3933
3933
|
"@max-[4.5rem]:grow": !!e.isSortable ^ +!!e.hasHeaderFilter
|
|
3934
3934
|
}])
|
|
3935
|
-
}, [e.isSortable ? (P(), T(
|
|
3935
|
+
}, [e.isSortable ? (P(), T(b, {
|
|
3936
3936
|
key: 0,
|
|
3937
3937
|
icon: e.sort ? e.sort === z(Ks).ASC ? z(Ze) : z(Xe) : z(Nt),
|
|
3938
3938
|
class: N({
|
|
@@ -3949,7 +3949,7 @@ var cc = {
|
|
|
3949
3949
|
"class",
|
|
3950
3950
|
"title",
|
|
3951
3951
|
"data-cy"
|
|
3952
|
-
])) : E("", !0), e.hasHeaderFilter ? (P(), D("div", cc, [k(
|
|
3952
|
+
])) : E("", !0), e.hasHeaderFilter ? (P(), D("div", cc, [k(b, {
|
|
3953
3953
|
icon: z(Pt),
|
|
3954
3954
|
class: N({ "@max-[6.5rem]:size-[1.5rem] @max-[6.5rem]:text-[0.875rem]": e.isSortable }),
|
|
3955
3955
|
color: "standard",
|
|
@@ -4468,7 +4468,7 @@ var Nc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAA
|
|
|
4468
4468
|
let n = ge(() => import("./TableSelectionCheckbox-Bd72Q-xQ.js")), r = ge(() => import("./TableSelectionFilter-C8c6trKq.js")), i = e, a = t, o = Ie(), { headerFilterOverlayActive: s, handleOnClose: c, openFilterOverlay: l } = kc(Le("filterOverlay")), u = B(e, "sort"), d = Le("wrapper"), { handleMousedown: f, getColumnWidth: p } = Oc(() => i.fields, d, (e, t) => a("resize", {
|
|
4469
4469
|
fieldName: e,
|
|
4470
4470
|
width: t
|
|
4471
|
-
})), m = B(e, "activeRow"), { handleUpAndDownMovement:
|
|
4471
|
+
})), m = B(e, "activeRow"), { handleUpAndDownMovement: ee, focusActiveRow: h } = Ac(w(() => i.items.length), m), { isMobile: g, rowHeight: _ } = Mc(), { groupedFields: v, hasCollapsedFields: y } = Dc(() => i.fields), te = B(e, "selection"), { isSelectionNotEmptyOrAll: x, onRowSelect: ne, toggleSelection: re } = Ec(te, () => i.items, () => i.dataKey);
|
|
4472
4472
|
V([
|
|
4473
4473
|
() => i.showLoadMore,
|
|
4474
4474
|
Le("loadMore"),
|
|
@@ -4489,10 +4489,10 @@ var Nc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAA
|
|
|
4489
4489
|
}), Tc(d);
|
|
4490
4490
|
function ie() {
|
|
4491
4491
|
xe(() => {
|
|
4492
|
-
|
|
4492
|
+
h();
|
|
4493
4493
|
});
|
|
4494
4494
|
}
|
|
4495
|
-
return (t, i) => (P(), D("div", Pc, [z(
|
|
4495
|
+
return (t, i) => (P(), D("div", Pc, [z(g) ? E("", !0) : (P(), D("div", {
|
|
4496
4496
|
key: 0,
|
|
4497
4497
|
class: N(["flex flex-col basis-full gap-[0.25rem] sticky top-0 z-5 lg:p-[0.25rem]", {
|
|
4498
4498
|
"rounded-t-[1rem] rounded-b-extra-small": e.mode === "divider-only",
|
|
@@ -4503,8 +4503,8 @@ var Nc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAA
|
|
|
4503
4503
|
"rounded-[0.25rem]": e.mode === "divider-only",
|
|
4504
4504
|
"rounded-tl-[0.75rem]": e.mode === "divider-only"
|
|
4505
4505
|
}]) }, [k(z(U), {
|
|
4506
|
-
icon: z(
|
|
4507
|
-
class: N(["cursor-pointer", { "text-primary": z(
|
|
4506
|
+
icon: z(x) ? z(et) : z(It),
|
|
4507
|
+
class: N(["cursor-pointer", { "text-primary": z(x) }]),
|
|
4508
4508
|
onClick: z(re)
|
|
4509
4509
|
}, null, 8, [
|
|
4510
4510
|
"icon",
|
|
@@ -4531,8 +4531,8 @@ var Nc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAA
|
|
|
4531
4531
|
"show-selection"
|
|
4532
4532
|
])]),
|
|
4533
4533
|
O("div", Lc, [e.showSelection ? (P(), D("div", Rc, [k(z(r), {
|
|
4534
|
-
selection:
|
|
4535
|
-
"onUpdate:selection": i[1] ||= (e) =>
|
|
4534
|
+
selection: te.value,
|
|
4535
|
+
"onUpdate:selection": i[1] ||= (e) => te.value = e,
|
|
4536
4536
|
"data-key": e.dataKey,
|
|
4537
4537
|
items: e.items
|
|
4538
4538
|
}, null, 8, [
|
|
@@ -4551,7 +4551,7 @@ var Nc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAA
|
|
|
4551
4551
|
(P(), T(fe, { to: "body" }, [z(s) ? (P(), D("div", zc, [O("div", {
|
|
4552
4552
|
class: "after:absolute after:left-0 after:-bottom-[0.5rem] after:w-full after:h-[1rem] after:z-20 z-15 after:bg-surface-container-high absolute left-[anchor(left)] top-[anchor(top)] w-[anchor-size(width)] h-[anchor-size(height)] shadow-1 bg-surface-container-high rounded-t text-title-medium flex items-center gap-[0.625rem] py-[0.25rem] pr-[0.5rem] pl-[0.75rem] @container justify-center",
|
|
4553
4553
|
style: Se({ "position-anchor": `--header-cell-${z(s)}` })
|
|
4554
|
-
}, [O("span", Bc, R(e.fields.find((e) => e.name === z(s))?.header), 1), k(
|
|
4554
|
+
}, [O("span", Bc, R(e.fields.find((e) => e.name === z(s))?.header), 1), k(b, {
|
|
4555
4555
|
class: "shrink-0",
|
|
4556
4556
|
color: "tonal",
|
|
4557
4557
|
icon: z(tt),
|
|
@@ -4572,18 +4572,18 @@ var Nc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAA
|
|
|
4572
4572
|
}]),
|
|
4573
4573
|
style: Se({ "--fallback-feature-bg": `url('${z(Nc)}')` }),
|
|
4574
4574
|
items: e.items,
|
|
4575
|
-
"item-size": z(
|
|
4575
|
+
"item-size": z(_),
|
|
4576
4576
|
"key-field": e.dataKey,
|
|
4577
4577
|
"page-mode": "",
|
|
4578
4578
|
"flow-mode": "",
|
|
4579
4579
|
"emit-update": "",
|
|
4580
4580
|
"item-class": "static top-auto left-auto will-change-auto",
|
|
4581
4581
|
"list-class": ["flex flex-col gap-[0.75rem] lg:block", { "h-full": (!e.items || e.items.length < 1) && !e.isLoading }],
|
|
4582
|
-
onKeydown: i[5] ||= (e) => z(
|
|
4582
|
+
onKeydown: i[5] ||= (e) => z(ee)(e),
|
|
4583
4583
|
onVisible: ie
|
|
4584
4584
|
}, me({
|
|
4585
4585
|
default: H(({ item: r, index: s }) => [O("div", {
|
|
4586
|
-
class: N(["lg:h-[calc(2.5rem+0.0625rem)] lg:after:h-[0.0625rem] lg:after:w-[calc(100%-2rem)] lg:after:bg-outline/12 lg:after:mx-[1rem] lg:after:absolute lg:after:bottom-0 relative flex flex-col lg:gap-[0.25rem] lg:flex-row max-lg:bg-surface hover:bg-(--row-hover-color,var(--row-default-hover-color)) hover:after:content-none focus:bg-(--row-focus-color,var(--row-default-hover-color)) data-active-row:bg-(--row-focus-color,var(--row-default-hover-color)) focus:after:content-none data-active-row:after:content-none outline-hidden cursor-pointer focus:before focus:before:lg:absolute focus:before:lg:left-[-0.125rem] focus:before:lg:w-[0.125rem] focus:before:lg:h-[2.5rem] focus:before:lg:bg-primary data-active-row:before data-active-row:before:lg:absolute data-active-row:before:lg:left-[-0.125rem] data-active-row:before:lg:w-[0.125rem] data-active-row:before:lg:h-[2.5rem] data-active-row:before:lg:bg-primary", [{ "bg-secondary-container after:content-none [--row-default-hover-color:#C3D4EE]": Array.isArray(
|
|
4586
|
+
class: N(["lg:h-[calc(2.5rem+0.0625rem)] lg:after:h-[0.0625rem] lg:after:w-[calc(100%-2rem)] lg:after:bg-outline/12 lg:after:mx-[1rem] lg:after:absolute lg:after:bottom-0 relative flex flex-col lg:gap-[0.25rem] lg:flex-row max-lg:bg-surface hover:bg-(--row-hover-color,var(--row-default-hover-color)) hover:after:content-none focus:bg-(--row-focus-color,var(--row-default-hover-color)) data-active-row:bg-(--row-focus-color,var(--row-default-hover-color)) focus:after:content-none data-active-row:after:content-none outline-hidden cursor-pointer focus:before focus:before:lg:absolute focus:before:lg:left-[-0.125rem] focus:before:lg:w-[0.125rem] focus:before:lg:h-[2.5rem] focus:before:lg:bg-primary data-active-row:before data-active-row:before:lg:absolute data-active-row:before:lg:left-[-0.125rem] data-active-row:before:lg:w-[0.125rem] data-active-row:before:lg:h-[2.5rem] data-active-row:before:lg:bg-primary", [{ "bg-secondary-container after:content-none [--row-default-hover-color:#C3D4EE]": Array.isArray(te.value) && te.value.includes(r[e.dataKey]) }, e.getRowClass ? e.getRowClass(r) : null]]),
|
|
4587
4587
|
style: Se(e.getRowStyle ? e.getRowStyle(r) : null),
|
|
4588
4588
|
tabindex: "-1",
|
|
4589
4589
|
role: "row",
|
|
@@ -4611,16 +4611,16 @@ var Nc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAA
|
|
|
4611
4611
|
data: r,
|
|
4612
4612
|
index: s
|
|
4613
4613
|
})
|
|
4614
|
-
}, [z(
|
|
4614
|
+
}, [z(g) ? (P(), T(ic, {
|
|
4615
4615
|
key: 0,
|
|
4616
4616
|
id: r[e.dataKey],
|
|
4617
|
-
selection:
|
|
4618
|
-
"onUpdate:selection": i[2] ||= (e) =>
|
|
4619
|
-
"show-collapse-button": z(
|
|
4617
|
+
selection: te.value,
|
|
4618
|
+
"onUpdate:selection": i[2] ||= (e) => te.value = e,
|
|
4619
|
+
"show-collapse-button": z(y),
|
|
4620
4620
|
"show-selection": e.showSelection
|
|
4621
4621
|
}, me({
|
|
4622
4622
|
list: H(({ showCollapsed: n }) => [Ve(k(bc, null, {
|
|
4623
|
-
default: H(() => [(P(!0), D(C, null, I(z(
|
|
4623
|
+
default: H(() => [(P(!0), D(C, null, I(z(v).list, (n, i) => (P(), T(wc, {
|
|
4624
4624
|
key: `table-cell-${r[e.dataKey]}-${n.name}`,
|
|
4625
4625
|
label: n.header
|
|
4626
4626
|
}, {
|
|
@@ -4654,7 +4654,7 @@ var Nc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAA
|
|
|
4654
4654
|
} : void 0,
|
|
4655
4655
|
o.feature ? {
|
|
4656
4656
|
name: "feature",
|
|
4657
|
-
fn: H(() => [(P(!0), D(C, null, I(z(
|
|
4657
|
+
fn: H(() => [(P(!0), D(C, null, I(z(v).features, (n, i) => L(t.$slots, "feature", {
|
|
4658
4658
|
key: `table-feature-${r[e.dataKey]}-${n.name}`,
|
|
4659
4659
|
field: n.name,
|
|
4660
4660
|
rowIndex: s,
|
|
@@ -4665,7 +4665,7 @@ var Nc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAA
|
|
|
4665
4665
|
} : void 0,
|
|
4666
4666
|
o.cardMajor ? {
|
|
4667
4667
|
name: "major",
|
|
4668
|
-
fn: H(() => [(P(!0), D(C, null, I(z(
|
|
4668
|
+
fn: H(() => [(P(!0), D(C, null, I(z(v).majors, (n, i) => L(t.$slots, "cardMajor", {
|
|
4669
4669
|
key: `table-major-${r[e.dataKey]}-${n.name}`,
|
|
4670
4670
|
field: n.name,
|
|
4671
4671
|
rowIndex: s,
|
|
@@ -4688,8 +4688,8 @@ var Nc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAA
|
|
|
4688
4688
|
"show-collapse-button",
|
|
4689
4689
|
"show-selection"
|
|
4690
4690
|
])) : (P(), D(C, { key: 1 }, [e.showSelection ? (P(), D("div", Hc, [O("div", Uc, [k(z(n), {
|
|
4691
|
-
modelValue:
|
|
4692
|
-
"onUpdate:modelValue": i[3] ||= (e) =>
|
|
4691
|
+
modelValue: te.value,
|
|
4692
|
+
"onUpdate:modelValue": i[3] ||= (e) => te.value = e,
|
|
4693
4693
|
value: r[e.dataKey]
|
|
4694
4694
|
}, null, 8, ["modelValue", "value"])])])) : E("", !0), k(_c, {
|
|
4695
4695
|
"data-key": e.dataKey,
|
|
@@ -7722,22 +7722,22 @@ var Dm, Om = /* @__PURE__ */ new Map(), $ = class e {
|
|
|
7722
7722
|
let i = J.fromObject(n), a = Vd(t, Sm), { minDaysInFirstWeek: o, startOfWeek: s } = ld(a, i), c = Y.now(), l = X(n.specificOffset) ? r.offset(c) : n.specificOffset, u = !X(a.ordinal), d = !X(a.year), f = !X(a.month) || !X(a.day), p = d || f, m = a.weekYear || a.weekNumber;
|
|
7723
7723
|
if ((p || u) && m) throw new wl("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
|
|
7724
7724
|
if (f && u) throw new wl("Can't mix ordinal dates with month/day");
|
|
7725
|
-
let
|
|
7726
|
-
|
|
7727
|
-
let
|
|
7728
|
-
for (let e of
|
|
7725
|
+
let ee = m || a.weekday && !p, h, g, _ = cm(c, l);
|
|
7726
|
+
ee ? (h = ym, g = gm, _ = ad(_, o, s)) : u ? (h = bm, g = _m, _ = sd(_)) : (h = vm, g = hm);
|
|
7727
|
+
let v = !1;
|
|
7728
|
+
for (let e of h) {
|
|
7729
7729
|
let t = a[e];
|
|
7730
|
-
X(t) ?
|
|
7730
|
+
X(t) ? v ? a[e] = g[e] : a[e] = _[e] : v = !0;
|
|
7731
7731
|
}
|
|
7732
|
-
let
|
|
7733
|
-
if (
|
|
7734
|
-
let [
|
|
7735
|
-
ts:
|
|
7732
|
+
let y = (ee ? ud(a, o, s) : u ? dd(a) : fd(a)) || pd(a);
|
|
7733
|
+
if (y) return e.invalid(y);
|
|
7734
|
+
let [te, b] = lm(ee ? od(a, o, s) : u ? cd(a) : a, l, r), x = new e({
|
|
7735
|
+
ts: te,
|
|
7736
7736
|
zone: r,
|
|
7737
|
-
o:
|
|
7737
|
+
o: b,
|
|
7738
7738
|
loc: i
|
|
7739
7739
|
});
|
|
7740
|
-
return a.weekday && p && t.weekday !==
|
|
7740
|
+
return a.weekday && p && t.weekday !== x.weekday ? e.invalid("mismatched weekday", `you can't specify both a weekday of ${a.weekday} and a date of ${x.toISO()}`) : x.isValid ? x : e.invalid(x.invalid);
|
|
7741
7741
|
}
|
|
7742
7742
|
static fromISO(e, t = {}) {
|
|
7743
7743
|
let [n, r] = np(e);
|
|
@@ -8279,7 +8279,7 @@ var Am = { class: "text-body-large" }, jm = {
|
|
|
8279
8279
|
setup(e, { emit: t }) {
|
|
8280
8280
|
let n = t;
|
|
8281
8281
|
return (t, r) => (P(), D("div", { class: N(["flex items-center", { "opacity-38": e.disabled }]) }, [
|
|
8282
|
-
e.showArrows ? (P(), T(
|
|
8282
|
+
e.showArrows ? (P(), T(b, {
|
|
8283
8283
|
key: 0,
|
|
8284
8284
|
color: "standard",
|
|
8285
8285
|
size: "48x48",
|
|
@@ -8290,7 +8290,7 @@ var Am = { class: "text-body-large" }, jm = {
|
|
|
8290
8290
|
class: "flex gap-[0.5rem] items-center rounded-full h-[2.5rem] pr-[0.25rem] pl-[0.5rem] text-on-surface-variant hover:bg-on-surface-variant/8 cursor-pointer",
|
|
8291
8291
|
onClick: r[1] ||= (e) => n("open")
|
|
8292
8292
|
}, [O("span", Am, R(e.label), 1), e.showDropdown ? (P(), D("div", jm, [k(z(U), { icon: z(Ge) }, null, 8, ["icon"])])) : E("", !0)]),
|
|
8293
|
-
e.showArrows ? (P(), T(
|
|
8293
|
+
e.showArrows ? (P(), T(b, {
|
|
8294
8294
|
key: 1,
|
|
8295
8295
|
color: "standard",
|
|
8296
8296
|
size: "48x48",
|
|
@@ -8347,47 +8347,47 @@ var Am = { class: "text-body-large" }, jm = {
|
|
|
8347
8347
|
}),
|
|
8348
8348
|
emits: ["update:modelValue"],
|
|
8349
8349
|
setup(e) {
|
|
8350
|
-
let t = Pe(), n = B(e, "modelValue"), r = $.now().startOf("day"), i = w(() => $.fromISO(n.value)), a = F(i.value.isValid ? i.value.startOf("month") : $.now().startOf("month")),
|
|
8351
|
-
function s(e) {
|
|
8352
|
-
a.value = a.value.set({ month: e }), o.value = "calendar";
|
|
8353
|
-
}
|
|
8350
|
+
let t = Pe(), n = B(e, "modelValue"), r = $.now().startOf("day"), i = w(() => $.fromISO(n.value)), a = F(!1), o = F(i.value.isValid ? i.value.startOf("month") : $.now().startOf("month")), s = F("calendar");
|
|
8354
8351
|
function c(e) {
|
|
8355
|
-
|
|
8352
|
+
o.value = o.value.set({ month: e }), s.value = "calendar";
|
|
8356
8353
|
}
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8354
|
+
function l(e) {
|
|
8355
|
+
o.value = o.value.set({ year: e }), s.value = "calendar";
|
|
8356
|
+
}
|
|
8357
|
+
let u = w(() => ({
|
|
8358
|
+
month: o.value.month,
|
|
8359
|
+
year: o.value.year,
|
|
8360
|
+
interval: Dp.fromDateTimes(o.value.startOf("month").startOf("week"), o.value.endOf("month").endOf("week"))
|
|
8361
8361
|
}));
|
|
8362
|
-
function*
|
|
8362
|
+
function* d(e) {
|
|
8363
8363
|
if (!e.start || !e.end) return;
|
|
8364
8364
|
let t = e.start.startOf("day");
|
|
8365
8365
|
for (; t < e.end;) yield t, t = t.plus({ days: 1 });
|
|
8366
8366
|
}
|
|
8367
|
-
let
|
|
8367
|
+
let f = w(() => {
|
|
8368
8368
|
let e = /* @__PURE__ */ new Map();
|
|
8369
|
-
for (let t of u
|
|
8369
|
+
for (let t of d(u.value.interval)) {
|
|
8370
8370
|
let n = e.getOrInsert(t.weekNumber, []);
|
|
8371
8371
|
n[t.weekday - 1] = t;
|
|
8372
8372
|
}
|
|
8373
8373
|
return [...e.values()];
|
|
8374
|
-
}),
|
|
8374
|
+
}), p = Op.months("short"), m = w(() => {
|
|
8375
8375
|
let e = [];
|
|
8376
8376
|
for (let t = Km; t < qm; t++) e.push(t);
|
|
8377
8377
|
return e;
|
|
8378
|
-
}),
|
|
8378
|
+
}), ee = w(() => s.value === "month" ? Op.months().map((e, t) => ({
|
|
8379
8379
|
label: e,
|
|
8380
8380
|
value: t + 1
|
|
8381
|
-
})) :
|
|
8381
|
+
})) : m.value.map((e) => ({
|
|
8382
8382
|
label: `${e}`,
|
|
8383
8383
|
value: e
|
|
8384
8384
|
}))), h = w({
|
|
8385
8385
|
get() {
|
|
8386
|
-
return
|
|
8386
|
+
return s.value === "month" ? u.value.month : u.value.year;
|
|
8387
8387
|
},
|
|
8388
8388
|
set(e) {
|
|
8389
|
-
if (
|
|
8390
|
-
|
|
8389
|
+
if (s.value === "month") return c(e);
|
|
8390
|
+
l(e);
|
|
8391
8391
|
}
|
|
8392
8392
|
}), g = Le("pickerDialog"), _ = !1;
|
|
8393
8393
|
function v() {
|
|
@@ -8402,11 +8402,11 @@ var Am = { class: "text-body-large" }, jm = {
|
|
|
8402
8402
|
_ = !1;
|
|
8403
8403
|
});
|
|
8404
8404
|
}
|
|
8405
|
-
function
|
|
8405
|
+
function te() {
|
|
8406
8406
|
g.value?.open && y();
|
|
8407
8407
|
}
|
|
8408
8408
|
bt(document, "keydown", (e) => {
|
|
8409
|
-
e.key === "Escape" &&
|
|
8409
|
+
e.key === "Escape" && te();
|
|
8410
8410
|
});
|
|
8411
8411
|
function b() {
|
|
8412
8412
|
g.value?.open && y();
|
|
@@ -8415,12 +8415,28 @@ var Am = { class: "text-body-large" }, jm = {
|
|
|
8415
8415
|
ut(x, () => {
|
|
8416
8416
|
g.value?.open && y();
|
|
8417
8417
|
});
|
|
8418
|
-
function
|
|
8419
|
-
n.value = e
|
|
8418
|
+
function ne(e) {
|
|
8419
|
+
e && e.isValid && (n.value = e?.toISO() || ""), a.value = !(!e || e.isValid);
|
|
8420
8420
|
}
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8421
|
+
function re() {
|
|
8422
|
+
n.value = "";
|
|
8423
|
+
}
|
|
8424
|
+
function ie(e) {
|
|
8425
|
+
ne(e), y();
|
|
8426
|
+
}
|
|
8427
|
+
let ae = F("");
|
|
8428
|
+
V(ae, (e) => {
|
|
8429
|
+
if (typeof e == "string" && e.length < 1) {
|
|
8430
|
+
ne(), re();
|
|
8431
|
+
return;
|
|
8432
|
+
}
|
|
8433
|
+
let t = $.fromFormat(e, "D");
|
|
8434
|
+
t.isValid || (t = $.fromFormat(e, "d.L.yyyy")), ne(t);
|
|
8435
|
+
}), V(i, (e) => {
|
|
8436
|
+
ae.value = e.isValid ? e.toLocaleString() : "";
|
|
8437
|
+
}, { immediate: !0 });
|
|
8438
|
+
function S(e) {
|
|
8439
|
+
let t = e.hasSame(r, "day"), n = e.hasSame(i.value, "day"), a = e.month === u.value.month;
|
|
8424
8440
|
return {
|
|
8425
8441
|
"text-primary border border-primary hover:bg-primary/8": t && !n,
|
|
8426
8442
|
"bg-primary text-on-primary hover:bg-[color-mix(in_oklab,var(--color-primary),rgba(from_var(--color-on-primary)_r_g_b/8%))]": n,
|
|
@@ -8432,63 +8448,66 @@ var Am = { class: "text-body-large" }, jm = {
|
|
|
8432
8448
|
ref: x,
|
|
8433
8449
|
class: "relative"
|
|
8434
8450
|
}, [k(Ia, M({
|
|
8451
|
+
modelValue: ae.value,
|
|
8452
|
+
"onUpdate:modelValue": r[0] ||= (e) => ae.value = e,
|
|
8435
8453
|
color: e.color,
|
|
8436
8454
|
label: e.label,
|
|
8437
|
-
"
|
|
8438
|
-
|
|
8455
|
+
"trailing-icon": z(Dt),
|
|
8456
|
+
invalid: a.value
|
|
8439
8457
|
}, z(t), { onFocus: v }), null, 16, [
|
|
8458
|
+
"modelValue",
|
|
8440
8459
|
"color",
|
|
8441
8460
|
"label",
|
|
8442
|
-
"
|
|
8443
|
-
"
|
|
8461
|
+
"trailing-icon",
|
|
8462
|
+
"invalid"
|
|
8444
8463
|
]), O("dialog", {
|
|
8445
8464
|
ref: "pickerDialog",
|
|
8446
8465
|
class: "select-none absolute top-full left-0 bg-surface-container-high rounded-extra-large z-5 w-[22.5rem] min-h-[22.75rem]",
|
|
8447
8466
|
onClose: b
|
|
8448
|
-
}, [
|
|
8449
|
-
label: z(
|
|
8450
|
-
onMoveLeft: r[
|
|
8451
|
-
onMoveRight: r[
|
|
8452
|
-
onOpen: r[
|
|
8467
|
+
}, [s.value === "calendar" ? (P(), D("div", Rm, [O("div", zm, [k(Mm, {
|
|
8468
|
+
label: z(p)[u.value.month - 1] ?? "??",
|
|
8469
|
+
onMoveLeft: r[1] ||= (e) => c(u.value.month - 1),
|
|
8470
|
+
onMoveRight: r[2] ||= (e) => c(u.value.month + 1),
|
|
8471
|
+
onOpen: r[3] ||= (e) => s.value = "month"
|
|
8453
8472
|
}, null, 8, ["label"]), k(Mm, {
|
|
8454
|
-
label: `${
|
|
8455
|
-
onMoveLeft: r[
|
|
8456
|
-
onMoveRight: r[
|
|
8457
|
-
onOpen: r[
|
|
8473
|
+
label: `${u.value.year}`,
|
|
8474
|
+
onMoveLeft: r[4] ||= (e) => l(u.value.year - 1),
|
|
8475
|
+
onMoveRight: r[5] ||= (e) => l(u.value.year + 1),
|
|
8476
|
+
onOpen: r[6] ||= (e) => s.value = "year"
|
|
8458
8477
|
}, null, 8, ["label"])]), O("div", Bm, [O("div", Vm, [(P(!0), D(C, null, I(z(Op).weekdays("short"), (e) => (P(), D("div", {
|
|
8459
8478
|
key: e,
|
|
8460
8479
|
class: "p-[0.25rem] size-[3rem]"
|
|
8461
|
-
}, [O("div", Hm, R(e), 1)]))), 128)), (P(!0), D(C, null, I(
|
|
8480
|
+
}, [O("div", Hm, R(e), 1)]))), 128)), (P(!0), D(C, null, I(f.value, (e, t) => (P(), D(C, { key: t }, [(P(!0), D(C, null, I(e, (e) => (P(), D("div", {
|
|
8462
8481
|
key: `${t}-${e.day}`,
|
|
8463
|
-
class: N(["p-[0.25rem] size-[3rem] cursor-pointer", { "opacity-38 hover:opacity-100": e.month !==
|
|
8482
|
+
class: N(["p-[0.25rem] size-[3rem] cursor-pointer", { "opacity-38 hover:opacity-100": e.month !== u.value.month }])
|
|
8464
8483
|
}, [O("div", {
|
|
8465
|
-
class: N(["size-[2.5rem] inline-flex justify-center items-center rounded-full",
|
|
8466
|
-
onClick: (t) =>
|
|
8467
|
-
}, R(e.day), 11, Um)], 2))), 128))], 64))), 128))])])])) :
|
|
8468
|
-
label: z(
|
|
8484
|
+
class: N(["size-[2.5rem] inline-flex justify-center items-center rounded-full", S(e)]),
|
|
8485
|
+
onClick: (t) => ie(e)
|
|
8486
|
+
}, R(e.day), 11, Um)], 2))), 128))], 64))), 128))])])])) : s.value === "month" || s.value === "year" ? (P(), D("div", Wm, [O("div", Gm, [k(Mm, {
|
|
8487
|
+
label: z(p)[u.value.month - 1] ?? "??",
|
|
8469
8488
|
"show-arrows": !1,
|
|
8470
|
-
"show-dropdown":
|
|
8471
|
-
disabled:
|
|
8472
|
-
onOpen: r[
|
|
8489
|
+
"show-dropdown": s.value === "month",
|
|
8490
|
+
disabled: s.value === "year",
|
|
8491
|
+
onOpen: r[7] ||= (e) => s.value = "calendar"
|
|
8473
8492
|
}, null, 8, [
|
|
8474
8493
|
"label",
|
|
8475
8494
|
"show-dropdown",
|
|
8476
8495
|
"disabled"
|
|
8477
8496
|
]), k(Mm, {
|
|
8478
|
-
label: `${
|
|
8497
|
+
label: `${u.value.year}`,
|
|
8479
8498
|
"show-arrows": !1,
|
|
8480
|
-
"show-dropdown":
|
|
8481
|
-
disabled:
|
|
8482
|
-
onOpen: r[
|
|
8499
|
+
"show-dropdown": s.value === "year",
|
|
8500
|
+
disabled: s.value === "month",
|
|
8501
|
+
onOpen: r[8] ||= (e) => s.value = "calendar"
|
|
8483
8502
|
}, null, 8, [
|
|
8484
8503
|
"label",
|
|
8485
8504
|
"show-dropdown",
|
|
8486
8505
|
"disabled"
|
|
8487
8506
|
])]), k(Lm, {
|
|
8488
8507
|
modelValue: h.value,
|
|
8489
|
-
"onUpdate:modelValue": r[
|
|
8490
|
-
list:
|
|
8491
|
-
"big-row":
|
|
8508
|
+
"onUpdate:modelValue": r[9] ||= (e) => h.value = e,
|
|
8509
|
+
list: ee.value,
|
|
8510
|
+
"big-row": s.value === "month"
|
|
8492
8511
|
}, null, 8, [
|
|
8493
8512
|
"modelValue",
|
|
8494
8513
|
"list",
|
|
@@ -8497,4 +8516,4 @@ var Am = { class: "text-body-large" }, jm = {
|
|
|
8497
8516
|
}
|
|
8498
8517
|
});
|
|
8499
8518
|
//#endregion
|
|
8500
|
-
export { u as ACBSPlugin, f as OverflowTooltip, f as Tooltip, ri as UIBadge, zs as UIBrandLogo, Gt as UIButton, de as UICheckbox, _o as UIContextPanel, yi as UICopy, Jm as UIDatePicker, re as UIDivider, as as UIDropdown, Bs as UIFab, va as UIFilterChip,
|
|
8519
|
+
export { u as ACBSPlugin, f as OverflowTooltip, f as Tooltip, ri as UIBadge, zs as UIBrandLogo, Gt as UIButton, de as UICheckbox, _o as UIContextPanel, yi as UICopy, Jm as UIDatePicker, re as UIDivider, as as UIDropdown, Bs as UIFab, va as UIFilterChip, b as UIIconButton, ys as UIInfoStrip, Cs as UIInfoStripSecondaryBox, ha as UIInputChip, $c as UILabelSubValue, Yc as UILabelSubValueList, wc as UILabelValue, bc as UILabelValueList, Ao as UILanguagePicker, no as UIList, to as UIListItem, ae as UIMenu, Gr as UINavbar, ks as UIPersonList, pa as UIRadioButton, Ba as UIRichTooltip, fl as UISearchBar, Gs as UISegmentedButton, yl as UISlider, qa as UISnackbar, Xo as UISwitch, il as UITabButtons, qc as UITable, wi as UITabs, $r as UITag, La as UITextArea, Ia as UITextField, fa as UIToggleButton, bo as UIToolbar, ni as t, jc as useACBSBreakpoints, x as useACBSConfig };
|