@vc-shell/framework 2.9.0-pr400.2a5fffb → 2.9.0-pr400.d8c33e5
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/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-D7CJzbVq.js → VcScheduler.vue_vue_type_script_setup_true_lang-D5OjZPfC.js} +10 -10
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-D5OjZPfC.js.map +1 -0
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-BzPg7VnG.js.map +1 -1
- package/dist/core/services/widget-service.d.ts +7 -7
- package/dist/core/services/widget-service.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +3 -3
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +5 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/organisms/vc-blade/utils.d.ts +5 -5
- package/dist/ui/components/organisms/vc-blade/utils.d.ts.map +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-D7CJzbVq.js.map +0 -1
|
@@ -1535,10 +1535,10 @@ const wu = Cs, Cu = /* @__PURE__ */ ee({
|
|
|
1535
1535
|
zh: "cn",
|
|
1536
1536
|
zu: "za"
|
|
1537
1537
|
};
|
|
1538
|
-
function ra(e, a = {}
|
|
1538
|
+
function ra(e, a, t = {}) {
|
|
1539
1539
|
return e === void 0 ? !0 : typeof e == "function" ? !!e(a, t) : yt(e) ? !!Ie(e) : !!e;
|
|
1540
1540
|
}
|
|
1541
|
-
function rl(e, a = {}
|
|
1541
|
+
function rl(e, a, t = {}) {
|
|
1542
1542
|
return e === void 0 ? !1 : typeof e == "function" ? !!e(a, t) : yt(e) ? !!Ie(e) : !!e;
|
|
1543
1543
|
}
|
|
1544
1544
|
const Pl = /* @__PURE__ */ new Map();
|
|
@@ -1580,7 +1580,7 @@ function Wu(e) {
|
|
|
1580
1580
|
c.preventDefault();
|
|
1581
1581
|
const m = e.getBladeContext(i);
|
|
1582
1582
|
if (!e.isEnabled(u, m, o)) return;
|
|
1583
|
-
await t(`${i}::${u.id ?? "item"}`, () => u.clickHandler?.(
|
|
1583
|
+
await t(`${i}::${u.id ?? "item"}`, () => u.clickHandler?.(o, m));
|
|
1584
1584
|
return;
|
|
1585
1585
|
}
|
|
1586
1586
|
if (Tn(Fu, c, e.isMac)) {
|
|
@@ -1631,7 +1631,7 @@ const qu = ["aria-label"], Ku = {
|
|
|
1631
1631
|
isMobile: () => m.value,
|
|
1632
1632
|
getBladeContext: Uu,
|
|
1633
1633
|
// The blade goes to isVisible as the toolbar passes it, or a `(blade) => …` check fails here
|
|
1634
|
-
isEnabled: (E, T, x) => _(E.permissions) && ra(E.isVisible,
|
|
1634
|
+
isEnabled: (E, T, x) => _(E.permissions) && ra(E.isVisible, x, T) && !rl(E.disabled, x, T),
|
|
1635
1635
|
closeBlade: (E) => t.closeBlade(E),
|
|
1636
1636
|
toggleMaximized: (E) => t.toggleMaximized(E),
|
|
1637
1637
|
isModalOpen: () => typeof document < "u" && document.querySelector('[aria-modal="true"]') !== null
|
|
@@ -3102,9 +3102,9 @@ function Sv(e) {
|
|
|
3102
3102
|
const { clickHandler: x } = E;
|
|
3103
3103
|
T = {
|
|
3104
3104
|
...E,
|
|
3105
|
-
disabled: h(() => rl(E.disabled,
|
|
3105
|
+
disabled: h(() => rl(E.disabled, d?.value, m.value)),
|
|
3106
3106
|
// The handler may be async; return its promise so the button can show it is busy
|
|
3107
|
-
clickHandler: x ? () => x.call(E,
|
|
3107
|
+
clickHandler: x ? () => x.call(E, d?.value, m.value) : void 0
|
|
3108
3108
|
}, S.set(E, T);
|
|
3109
3109
|
}
|
|
3110
3110
|
return T;
|
|
@@ -3112,7 +3112,7 @@ function Sv(e) {
|
|
|
3112
3112
|
const N = h(() => {
|
|
3113
3113
|
const E = m.value;
|
|
3114
3114
|
return c(y.value, u.value).filter(
|
|
3115
|
-
(T) => a(T.permissions) && ra(T.isVisible,
|
|
3115
|
+
(T) => a(T.permissions) && ra(T.isVisible, d?.value, E) && (g.value ? !rl(T.disabled, d?.value, E) : !0)
|
|
3116
3116
|
).sort((T, x) => {
|
|
3117
3117
|
const k = T.priority ?? 0;
|
|
3118
3118
|
return (x.priority ?? 0) - k;
|
|
@@ -3659,14 +3659,14 @@ function ua() {
|
|
|
3659
3659
|
}
|
|
3660
3660
|
function i(u) {
|
|
3661
3661
|
const v = u.headless?.disabled;
|
|
3662
|
-
return v === void 0 ? !1 : typeof v == "function" ? !!v(
|
|
3662
|
+
return v === void 0 ? !1 : typeof v == "function" ? !!v(l?.value, t()) : typeof v == "boolean" ? v : Ie(v);
|
|
3663
3663
|
}
|
|
3664
3664
|
function r(u) {
|
|
3665
3665
|
const v = u.title ?? "";
|
|
3666
3666
|
return u.headless ? e(v) : v;
|
|
3667
3667
|
}
|
|
3668
3668
|
function d(u) {
|
|
3669
|
-
u.headless?.onClick?.(
|
|
3669
|
+
u.headless?.onClick?.(l?.value, t());
|
|
3670
3670
|
}
|
|
3671
3671
|
return { resolveBadge: c, resolveLoading: o, resolveDisabled: i, resolveTitle: r, handleHeadlessClick: d };
|
|
3672
3672
|
}
|
|
@@ -4815,7 +4815,7 @@ const ff = { class: "vc-widget-container-desktop" }, mf = { class: "vc-widget-co
|
|
|
4815
4815
|
), kt(g);
|
|
4816
4816
|
const p = h(() => o.getWidgets(c.value)), y = h(
|
|
4817
4817
|
() => p.value.filter(
|
|
4818
|
-
(b) => ra(b.isVisible,
|
|
4818
|
+
(b) => ra(b.isVisible, i?.value, r?.value)
|
|
4819
4819
|
)
|
|
4820
4820
|
);
|
|
4821
4821
|
return (b, C) => y.value.length > 0 && n(t) ? (s(), V(am, {
|