morya-ui 0.2.5 → 0.2.7
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 +36 -0
- package/README.md +2 -2
- package/README.zh-CN.md +2 -2
- package/dist/{Button-lNErA-7h.js → Button--RkQybU-.js} +1 -1
- package/dist/{Checkbox-B758a_iB.js → Checkbox-CL05RRUD.js} +1 -1
- package/dist/{FlyoutSubmenu-kymVjXLs.js → FlyoutSubmenu-B_bkgKag.js} +1 -1
- package/dist/{Pagination-Dm2-MBnC.js → Pagination-BKvR-RUW.js} +1 -1
- package/dist/{Popover-flzjtjqD.js → Popover-Dq_p0vib.js} +1 -1
- package/dist/{ProgressSpinner-BXHLx4Lg.js → ProgressSpinner-DuBpPkna.js} +1 -1
- package/dist/{Radio-Bb21-Vk4.js → Radio-DsaKvbhk.js} +1 -1
- package/dist/{Tooltip-CeGxjP-L.js → Tooltip-CU1xFt_N.js} +1 -1
- package/dist/activity-low-CgK9kHWr.js +4 -0
- package/dist/auto-complete/index.js +2 -2
- package/dist/breadcrumb/index.js +1 -1
- package/dist/building-DYLdXiQg.js +4 -0
- package/dist/button/index.js +1 -1
- package/dist/carousel/index.js +1 -1
- package/dist/cascade-select/index.js +2 -2
- package/dist/checkbox/index.js +1 -1
- package/dist/chip/index.js +1 -1
- package/dist/churn-high-D1ELpZzW.js +4 -0
- package/dist/command-menu/index.js +2 -2
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/components/Empty/Empty.vue.d.ts +5 -6
- package/dist/components/Empty/Empty.vue.d.ts.map +1 -1
- package/dist/components/Empty/illustrations/catalog.d.ts +5 -0
- package/dist/components/Empty/illustrations/catalog.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/defaultEmptyIcon.d.ts +3 -0
- package/dist/components/Empty/illustrations/defaultEmptyIcon.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/index.d.ts +15 -0
- package/dist/components/Empty/illustrations/index.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/loaders.d.ts +4 -0
- package/dist/components/Empty/illustrations/loaders.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/activity-low.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/activity-low.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/building.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/building.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/churn-high.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/churn-high.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/conversion-low.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/conversion-low.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/input-irregular.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/input-irregular.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/network-error.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/network-error.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/no-content.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/no-content.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/no-issue.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/no-issue.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/no-message.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/no-message.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/no-result.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/no-result.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/no-schedule.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/no-schedule.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/payment-cycle-long.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/payment-cycle-long.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/profile-unclear.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/profile-unclear.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/server-error.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/server-error.d.ts.map +1 -0
- package/dist/components/Empty/index.d.ts +3 -1
- package/dist/components/Empty/index.d.ts.map +1 -1
- package/dist/components/Empty/styles.css +104 -30
- package/dist/components/Empty/types.d.ts +25 -4
- package/dist/components/Empty/types.d.ts.map +1 -1
- package/dist/components/Form/types.d.ts +1 -1
- package/dist/components/Form/types.d.ts.map +1 -1
- package/dist/components/Layout/styles.css +5 -0
- package/dist/components/Layout/types.d.ts +1 -1
- package/dist/components/Layout/types.d.ts.map +1 -1
- package/dist/components/Menu/styles.css +19 -0
- package/dist/components/Message/types.d.ts +1 -1
- package/dist/components/Message/types.d.ts.map +1 -1
- package/dist/components/Pagination/types.d.ts +4 -4
- package/dist/components/Pagination/types.d.ts.map +1 -1
- package/dist/components/Result/Result.vue.d.ts +2 -2
- package/dist/components/Result/Result.vue.d.ts.map +1 -1
- package/dist/components/Result/index.d.ts +1 -1
- package/dist/components/Result/index.d.ts.map +1 -1
- package/dist/components/Result/statusIcons.d.ts +4 -0
- package/dist/components/Result/statusIcons.d.ts.map +1 -0
- package/dist/components/Result/styles.css +89 -23
- package/dist/components/Result/types.d.ts +10 -4
- package/dist/components/Result/types.d.ts.map +1 -1
- package/dist/components/Splitter/types.d.ts +4 -4
- package/dist/components/Splitter/types.d.ts.map +1 -1
- package/dist/components/Status/Status.vue.d.ts +7 -3
- package/dist/components/Status/Status.vue.d.ts.map +1 -1
- package/dist/components/Status/index.d.ts +1 -1
- package/dist/components/Status/index.d.ts.map +1 -1
- package/dist/components/Status/styles.css +116 -26
- package/dist/components/Status/types.d.ts +16 -2
- package/dist/components/Status/types.d.ts.map +1 -1
- package/dist/components/Tree/TreeNodeItem.vue.d.ts.map +1 -1
- package/dist/components/Tree/types.d.ts +1 -1
- package/dist/components/Tree/types.d.ts.map +1 -1
- package/dist/{config-Dln2-u_v.js → config-BdK5ccNT.js} +1 -0
- package/dist/config-provider/index.js +28 -15
- package/dist/confirm-dialog/index.js +3 -3
- package/dist/confirm-popup/index.js +3 -3
- package/dist/context-menu/index.js +2 -2
- package/dist/conversion-low-CwZiQc2k.js +4 -0
- package/dist/data-view/index.js +3 -3
- package/dist/date-picker/index.js +2 -2
- package/dist/dialog/index.js +77 -61
- package/dist/drawer/index.js +2 -2
- package/dist/dropdown/index.js +3 -3
- package/dist/empty/index.js +141 -26
- package/dist/empty/style.css +104 -30
- package/dist/file-upload/index.js +1 -1
- package/dist/flex/index.js +1 -1
- package/dist/form/index.js +1 -1
- package/dist/gallery/index.js +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1384 -1160
- package/dist/input/index.js +2 -2
- package/dist/input-color/index.js +2 -2
- package/dist/input-irregular-xSLDoNTS.js +4 -0
- package/dist/input-number/index.js +2 -2
- package/dist/input-otp/index.js +2 -2
- package/dist/input-password/index.js +2 -2
- package/dist/input-tags/index.js +2 -2
- package/dist/layout/index.js +1 -1
- package/dist/layout/style.css +5 -0
- package/dist/listbox/index.js +2 -2
- package/dist/locale/en-US.d.ts.map +1 -1
- package/dist/locale/types.d.ts +1 -0
- package/dist/locale/types.d.ts.map +1 -1
- package/dist/locale/zh-CN.d.ts.map +1 -1
- package/dist/{locale-DNYpTg5K.js → locale-B36KH7c3.js} +1 -1
- package/dist/mega-menu/index.js +2 -2
- package/dist/menu/index.js +52 -40
- package/dist/menu/style.css +19 -0
- package/dist/menubar/index.js +2 -2
- package/dist/message/index.js +2 -2
- package/dist/network-error-C6vl5a7S.js +4 -0
- package/dist/no-content-CwbqVPoN.js +4 -0
- package/dist/no-issue-DMkU-Pnw.js +4 -0
- package/dist/no-message-DnIEpMiO.js +4 -0
- package/dist/no-result-pGce34BV.js +4 -0
- package/dist/no-schedule-Cl9Frt1Q.js +4 -0
- package/dist/order-list/index.js +1 -1
- package/dist/pagination/index.js +1 -1
- package/dist/panel/index.js +1 -1
- package/dist/payment-cycle-long-Ba9FNStl.js +4 -0
- package/dist/pick-list/index.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/profile-unclear-CGs4PCfw.js +4 -0
- package/dist/progress-spinner/index.js +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/rating/index.js +2 -2
- package/dist/result/index.js +72 -36
- package/dist/result/style.css +89 -23
- package/dist/scroll-top/index.js +2 -2
- package/dist/select/index.js +2 -2
- package/dist/select-button/index.js +1 -1
- package/dist/server-error-D8zGMe5r.js +4 -0
- package/dist/shared/optionalRouter.d.ts +5 -0
- package/dist/shared/optionalRouter.d.ts.map +1 -1
- package/dist/shared/responsive.d.ts +1 -1
- package/dist/shared/responsive.d.ts.map +1 -1
- package/dist/sidebar/index.js +1 -1
- package/dist/slider/index.js +2 -2
- package/dist/space/index.js +1 -1
- package/dist/speed-dial/index.js +2 -2
- package/dist/split-button/index.js +2 -2
- package/dist/splitter/index.js +1 -1
- package/dist/status/index.js +46 -19
- package/dist/status/style.css +171 -26
- package/dist/status/style.js +1 -0
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/index.js +7 -7
- package/dist/tabs/index.js +1 -1
- package/dist/tag/index.js +2 -2
- package/dist/terminal/index.js +1 -1
- package/dist/textarea/index.js +2 -2
- package/dist/tiered-menu/index.js +2 -2
- package/dist/toast/index.js +2 -2
- package/dist/toggle-button/index.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/tree/index.js +9 -4
- package/dist/tree-select/index.js +3 -3
- package/dist/tree-table/index.js +1 -1
- package/package.json +6 -5
|
@@ -11,7 +11,7 @@ export type TreeSelectionKeys = Record<string, boolean>;
|
|
|
11
11
|
export type TreeCheckedKeys = Record<string, boolean>;
|
|
12
12
|
export type TreeExpandedKeys = Record<string, boolean>;
|
|
13
13
|
export type TreeSelectionMode = 'single' | 'multiple';
|
|
14
|
-
/**
|
|
14
|
+
/** Check strategy for cascade selection. Ignored when `checkStrictly`. */
|
|
15
15
|
export type TreeCheckStrategy = 'all' | 'parent' | 'child';
|
|
16
16
|
export interface TreeProps {
|
|
17
17
|
pt?: RootPassThrough;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC/D,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AACvD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AACrD,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AACtD,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,UAAU,CAAA;AACrD,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC/D,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AACvD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AACrD,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AACtD,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,UAAU,CAAA;AACrD,0EAA0E;AAC1E,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE1D,MAAM,WAAW,SAAS;IACxB,EAAE,CAAC,EAAE,eAAe,CAAA;IACpB,KAAK,EAAE,QAAQ,EAAE,CAAA;IACjB,aAAa,CAAC,EAAE,iBAAiB,CAAA;IACjC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,aAAa,CAAC,EAAE,iBAAiB,CAAA;IACjC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,WAAW,CAAC,EAAE,eAAe,CAAA;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,wDAAwD;IACxD,aAAa,CAAC,EAAE,iBAAiB,CAAA;IACjC,YAAY,CAAC,EAAE,gBAAgB,CAAA;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAA;IACvD,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAC,QAAQ,EAAE,CAAC,GAAG,QAAQ,EAAE,CAAA;IAC3D,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,4FAA4F;IAC5F,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,SAAS;IACxB,CAAC,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC/D,CAAC,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IACxD,CAAC,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,eAAe,GAAG,IAAI,CAAA;IAC3D,CAAC,KAAK,EAAE,qBAAqB,EAAE,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAA;IAC7D,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAA;IAC5C,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAA;IAC9C,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE;QAAE,IAAI,EAAE,QAAQ,CAAC;QAAC,WAAW,EAAE,eAAe,CAAA;KAAE,GAAG,IAAI,CAAA;IACjF,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;KAAE,GAAG,IAAI,CAAA;CACnH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
2
|
-
import { n as t, r as n, t as r } from "../config-
|
|
2
|
+
import { n as t, r as n, t as r } from "../config-BdK5ccNT.js";
|
|
3
3
|
import "./style.js";
|
|
4
4
|
import { computed as i, createElementBlock as a, defineComponent as o, inject as s, mergeProps as c, onBeforeUnmount as l, openBlock as u, ref as d, renderSlot as f, toValue as p, unref as m, useAttrs as h, watch as g } from "vue";
|
|
5
5
|
//#region src/theme/storage.ts
|
|
@@ -72,7 +72,7 @@ function P(e, t) {
|
|
|
72
72
|
}
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region src/components/ConfigProvider/ConfigProvider.vue?vue&type=script&setup=true&lang.ts
|
|
75
|
-
var F = ["data-m-density"], I = /* @__PURE__ */ o({
|
|
75
|
+
var F = ["data-m-density", "data-theme"], I = /* @__PURE__ */ o({
|
|
76
76
|
inheritAttrs: !1,
|
|
77
77
|
__name: "ConfigProvider",
|
|
78
78
|
props: {
|
|
@@ -106,32 +106,45 @@ var F = ["data-m-density"], I = /* @__PURE__ */ o({
|
|
|
106
106
|
return t(e, b.value);
|
|
107
107
|
});
|
|
108
108
|
n(x);
|
|
109
|
-
let S = i(() => x.value.density ?? "comfortable"), w = i(() =>
|
|
109
|
+
let S = i(() => x.value.density ?? "comfortable"), w = i(() => {
|
|
110
|
+
let e = x.value.theme;
|
|
111
|
+
if (e !== void 0) return e === "system" ? N() : e;
|
|
112
|
+
}), T = i(() => d.globalDensity !== !1), E = i(() => {
|
|
110
113
|
let e = x.value.zIndex;
|
|
111
114
|
if (e != null) return { "--m-z-base": String(e) };
|
|
112
|
-
}),
|
|
113
|
-
function M() {
|
|
114
|
-
x.value.theme === "system" && P(N());
|
|
115
|
-
}
|
|
115
|
+
}), D, O, k, j, M = null;
|
|
116
116
|
function I() {
|
|
117
|
-
|
|
117
|
+
M?.removeEventListener("change", L), M = null;
|
|
118
118
|
}
|
|
119
119
|
function L() {
|
|
120
|
-
|
|
120
|
+
x.value.theme === "system" && P(N());
|
|
121
|
+
}
|
|
122
|
+
function R() {
|
|
123
|
+
typeof document > "u" || (j = document.documentElement.dataset.mIgnoreReducedMotion, A(x.value.respectReducedMotion));
|
|
124
|
+
}
|
|
125
|
+
function z() {
|
|
126
|
+
if (!T.value || typeof document > "u") return;
|
|
121
127
|
let { density: e, zIndex: t, theme: n } = x.value;
|
|
122
|
-
e && (
|
|
128
|
+
e && (D = document.documentElement.dataset.mDensity, C(e)), t != null && (O = document.documentElement.style.getPropertyValue("--m-z-base"), document.documentElement.style.setProperty("--m-z-base", String(t))), n !== void 0 && (k = document.documentElement.dataset.theme, P(n === "system" ? N() : n)), n === "system" && typeof window < "u" ? (I(), M = window.matchMedia("(prefers-color-scheme: dark)"), M.addEventListener("change", L)) : I();
|
|
123
129
|
}
|
|
124
|
-
return g(() => x.value.respectReducedMotion,
|
|
125
|
-
|
|
130
|
+
return g(() => x.value.respectReducedMotion, R, { immediate: !0 }), g(() => [
|
|
131
|
+
T.value,
|
|
126
132
|
x.value.density,
|
|
127
133
|
x.value.zIndex,
|
|
128
134
|
x.value.theme
|
|
129
|
-
],
|
|
130
|
-
typeof document > "u"
|
|
135
|
+
], z, { immediate: !0 }), l(() => {
|
|
136
|
+
if (!(typeof document > "u")) {
|
|
137
|
+
if (j !== void 0 && (j ? document.documentElement.dataset.mIgnoreReducedMotion = j : delete document.documentElement.dataset.mIgnoreReducedMotion), !T.value) {
|
|
138
|
+
I();
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
D !== void 0 && (D ? document.documentElement.dataset.mDensity = D : delete document.documentElement.dataset.mDensity), O !== void 0 && (O ? document.documentElement.style.setProperty("--m-z-base", O) : document.documentElement.style.removeProperty("--m-z-base")), k !== void 0 && (k ? document.documentElement.dataset.theme = k : delete document.documentElement.dataset.theme), I();
|
|
142
|
+
}
|
|
131
143
|
}), (e, t) => (u(), a("div", c(m(v), {
|
|
132
144
|
class: "m-config-provider",
|
|
133
145
|
"data-m-density": S.value,
|
|
134
|
-
|
|
146
|
+
"data-theme": w.value,
|
|
147
|
+
style: E.value
|
|
135
148
|
}), [f(e.$slots, "default")], 16, F));
|
|
136
149
|
}
|
|
137
150
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
2
2
|
import { t } from "../Icon-DfpIfo2L.js";
|
|
3
|
-
import { t as n } from "../Button
|
|
3
|
+
import { t as n } from "../Button--RkQybU-.js";
|
|
4
4
|
import { n as r } from "../overlay-oR-5MDuE.js";
|
|
5
5
|
import { t as i } from "../useModalOverlay-Beo3CEAt.js";
|
|
6
6
|
import { t as a } from "../asyncGuard-CPGT_TKu.js";
|
|
7
7
|
import { t as o } from "../lastPointer-CRxcUqdd.js";
|
|
8
|
-
import { c as s } from "../config-
|
|
8
|
+
import { c as s } from "../config-BdK5ccNT.js";
|
|
9
9
|
import { t as c } from "../overlayHost-78CGtMgR.js";
|
|
10
|
-
import { n as l } from "../locale-
|
|
10
|
+
import { n as l } from "../locale-B36KH7c3.js";
|
|
11
11
|
import "./style.js";
|
|
12
12
|
import { Teleport as u, Transition as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, mergeProps as b, normalizeClass as x, openBlock as S, ref as C, render as w, renderSlot as T, toDisplayString as E, toRef as D, unref as O, useAttrs as k, watch as A, withCtx as ee, withModifiers as te } from "vue";
|
|
13
13
|
//#region src/components/ConfirmDialog/ConfirmDialog.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
2
2
|
import { t } from "../Icon-DfpIfo2L.js";
|
|
3
|
-
import { t as n } from "../Button
|
|
3
|
+
import { t as n } from "../Button--RkQybU-.js";
|
|
4
4
|
import { n as r, t as i } from "../overlay-oR-5MDuE.js";
|
|
5
5
|
import { t as a } from "../overlayPlacement-Cd20JTD_.js";
|
|
6
6
|
import { t as o } from "../asyncGuard-CPGT_TKu.js";
|
|
7
|
-
import { c as s } from "../config-
|
|
8
|
-
import { n as c } from "../locale-
|
|
7
|
+
import { c as s } from "../config-BdK5ccNT.js";
|
|
8
|
+
import { n as c } from "../locale-B36KH7c3.js";
|
|
9
9
|
import "./style.js";
|
|
10
10
|
import { Teleport as l, Transition as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, defineComponent as v, mergeProps as y, nextTick as b, onBeforeUnmount as x, openBlock as S, ref as C, renderSlot as w, toDisplayString as T, unref as E, useAttrs as D, watch as O, withCtx as k } from "vue";
|
|
11
11
|
//#region src/components/ConfirmPopup/ConfirmPopup.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -4,8 +4,8 @@ import { n, t as r } from "../overlay-oR-5MDuE.js";
|
|
|
4
4
|
import { t as i } from "../Scrollbar-BYnCO8fv.js";
|
|
5
5
|
import { t as a } from "../icon-xUOyawgJ.js";
|
|
6
6
|
import { t as o } from "../key-CaQYVkjh.js";
|
|
7
|
-
import { t as s } from "../FlyoutSubmenu-
|
|
8
|
-
import { c } from "../config-
|
|
7
|
+
import { t as s } from "../FlyoutSubmenu-B_bkgKag.js";
|
|
8
|
+
import { c } from "../config-BdK5ccNT.js";
|
|
9
9
|
import "./style.js";
|
|
10
10
|
import { Fragment as l, Teleport as u, Transition as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as _, defineComponent as v, mergeModels as y, mergeProps as b, nextTick as x, normalizeClass as S, normalizeStyle as C, onBeforeUnmount as w, openBlock as T, ref as E, renderList as D, renderSlot as O, toDisplayString as k, unref as A, useAttrs as j, useModel as M, watch as N, withCtx as P, withModifiers as F } from "vue";
|
|
11
11
|
//#region src/components/ContextMenu/ContextMenuNodes.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/components/Empty/illustrations/markup/conversion-low.ts
|
|
2
|
+
var e = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 250 122\" fill=\"none\" aria-hidden=\"true\" focusable=\"false\"><defs><linearGradient gradientUnits=\"objectBoundingBox\" id=\"__MID_0__\" spreadMethod=\"pad\" x1=\"0.5\" x2=\"0.5\" y1=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#c1dbfe\"></stop><stop offset=\"1\" stop-color=\"#ffffff\"></stop></linearGradient><linearGradient gradientUnits=\"objectBoundingBox\" id=\"__MID_1__\" spreadMethod=\"pad\" x1=\"0.67829025\" x2=\"0.04206121\" y1=\"0.3701418\" y2=\"0.6480241\"><stop offset=\"0\" stop-color=\"#f6f6f6\"></stop><stop offset=\"1\" stop-color=\"#7aa1f8\"></stop></linearGradient><linearGradient gradientUnits=\"objectBoundingBox\" id=\"__MID_2__\" spreadMethod=\"pad\" x1=\"0.5\" x2=\"0.5\" y1=\"0\" y2=\"0.9891786\"><stop offset=\"0\" stop-color=\"#83aef5\"></stop><stop offset=\"1\" stop-color=\"#9dbafd\"></stop></linearGradient></defs><g><g><path d=\"M 249.28 122.00 C 219.86 85.49 172.80 64.00 122.26 64.00 C 73.29 64.00 29.44 85.93 0.00 120.52 C 0.00 120.52 249.28 122.00 249.28 122.00 Z\" fill=\"url(#__MID_0__)\" fill-rule=\"evenodd\" stroke=\"none\"></path><path d=\"M 114.00 0.00 L 163.00 0.00 C 167.42 0.00 171.00 3.58 171.00 8.00 L 171.00 71.00 C 171.00 75.42 167.42 79.00 163.00 79.00 L 114.00 79.00 C 109.58 79.00 106.00 75.42 106.00 71.00 L 106.00 8.00 C 106.00 3.58 109.58 0.00 114.00 0.00 Z\" fill=\"#b3c6f5\" fill-rule=\"evenodd\" stroke=\"none\"></path><g><g><g><path d=\"M 48.75 94.60 L 45.76 94.60 L 45.76 84.48 C 45.76 83.67 46.43 83.02 47.25 83.02 L 47.26 83.02 C 48.09 83.02 48.75 83.67 48.75 84.48 L 48.75 94.60 Z\" fill=\"#bae637\" fill-rule=\"evenodd\" stroke=\"none\"></path></g><path d=\"M 50.24 97.08 L 47.24 97.08 L 47.24 91.79 C 47.24 91.01 47.89 90.37 48.70 90.37 L 48.79 90.37 C 49.59 90.37 50.24 91.01 50.24 91.79 L 50.24 97.08 Z\" fill=\"#389e0d\" fill-rule=\"evenodd\" id=\"__MID_3__\" stroke=\"none\"></path><path d=\"M 46.20 94.59 L 43.18 94.59 L 43.18 88.85 C 43.18 88.06 43.83 87.42 44.64 87.42 L 44.74 87.42 C 45.55 87.42 46.20 88.06 46.20 88.85 L 46.20 94.59 Z\" fill=\"#7cb305\" fill-rule=\"evenodd\" id=\"__MID_4__\" stroke=\"none\"></path><g><path d=\"M 50.42 102.99 L 42.56 102.99 C 42.25 102.99 42.00 102.74 42.00 102.44 L 42.00 94.81 C 42.00 94.50 42.25 94.26 42.56 94.26 L 50.42 94.26 C 50.73 94.26 50.98 94.50 50.98 94.81 L 50.98 102.44 C 50.98 102.74 50.73 102.99 50.42 102.99\" fill=\"#3b68b8\" fill-rule=\"evenodd\" stroke=\"none\"></path></g></g></g><g><g><g><path d=\"M 190.18 75.89 L 187.37 75.89 L 187.37 66.39 C 187.37 65.63 188.00 65.02 188.77 65.02 L 188.78 65.02 C 189.55 65.02 190.18 65.63 190.18 66.39 L 190.18 75.89 Z\" fill=\"#bae637\" fill-rule=\"evenodd\" stroke=\"none\"></path></g><path d=\"M 191.57 78.22 L 188.76 78.22 L 188.76 73.26 C 188.76 72.52 189.37 71.92 190.13 71.92 L 190.21 71.92 C 190.96 71.92 191.57 72.52 191.57 73.26 L 191.57 78.22 Z\" fill=\"#389e0d\" fill-rule=\"evenodd\" id=\"__MID_3__\" stroke=\"none\"></path><path d=\"M 187.79 75.89 L 184.95 75.89 L 184.95 70.49 C 184.95 69.75 185.57 69.15 186.32 69.15 L 186.42 69.15 C 187.17 69.15 187.79 69.75 187.79 70.49 L 187.79 75.89 Z\" fill=\"#7cb305\" fill-rule=\"evenodd\" id=\"__MID_4__\" stroke=\"none\"></path><g><path d=\"M 191.74 83.78 L 184.38 83.78 C 184.08 83.78 183.85 83.54 183.85 83.26 L 183.85 76.09 C 183.85 75.80 184.08 75.57 184.38 75.57 L 191.74 75.57 C 192.03 75.57 192.27 75.80 192.27 76.09 L 192.27 83.26 C 192.27 83.54 192.03 83.78 191.74 83.78\" fill=\"#3b68b8\" fill-rule=\"evenodd\" stroke=\"none\"></path></g></g></g><g><g><g><path d=\"M 173.53 100.98 L 170.11 100.98 L 170.11 90.53 C 170.11 89.69 170.87 89.02 171.81 89.02 L 171.83 89.02 C 172.77 89.02 173.53 89.69 173.53 90.53 L 173.53 100.98 Z\" fill=\"#bae637\" fill-rule=\"evenodd\" stroke=\"none\"></path></g><path d=\"M 175.24 103.54 L 171.80 103.54 L 171.80 98.08 C 171.80 97.27 172.55 96.62 173.47 96.62 L 173.57 96.62 C 174.49 96.62 175.24 97.27 175.24 98.08 L 175.24 103.54 Z\" fill=\"#389e0d\" fill-rule=\"evenodd\" id=\"__MID_3__\" stroke=\"none\"></path><path d=\"M 170.61 100.98 L 167.15 100.98 L 167.15 95.04 C 167.15 94.23 167.90 93.57 168.82 93.57 L 168.94 93.57 C 169.86 93.57 170.61 94.23 170.61 95.04 L 170.61 100.98 Z\" fill=\"#7cb305\" fill-rule=\"evenodd\" id=\"__MID_4__\" stroke=\"none\"></path><g><path d=\"M 175.44 109.65 L 166.44 109.65 C 166.08 109.65 165.80 109.40 165.80 109.09 L 165.80 101.20 C 165.80 100.89 166.08 100.63 166.44 100.63 L 175.44 100.63 C 175.80 100.63 176.09 100.89 176.09 101.20 L 176.09 109.09 C 176.09 109.40 175.80 109.65 175.44 109.65\" fill=\"#3b68b8\" fill-rule=\"evenodd\" stroke=\"none\"></path></g></g></g><g><path d=\"M 97.17 89.00 L 79.45 73.19 L 72.02 81.01 L 75.92 85.20 L 60.00 87.54 L 61.50 71.75 L 66.70 75.97 L 79.45 62.00 L 102.00 83.42 Z\" fill=\"url(#__MID_1__)\" fill-rule=\"evenodd\" stroke=\"none\"></path></g><path d=\"M 94.00 9.00 L 155.00 9.00 C 159.42 9.00 163.00 12.58 163.00 17.00 L 163.00 87.00 C 163.00 91.42 159.42 95.00 155.00 95.00 L 94.00 95.00 C 89.58 95.00 86.00 91.42 86.00 87.00 L 86.00 17.00 C 86.00 12.58 89.58 9.00 94.00 9.00 Z\" fill=\"url(#__MID_2__)\" fill-rule=\"evenodd\" stroke=\"none\"></path><path d=\"M 114.00 34.00 L 139.00 34.00 L 139.00 39.00 L 114.00 39.00 Z\" fill=\"#ffffff\" fill-rule=\"evenodd\" stroke=\"none\"></path><path d=\"M 114.00 61.00 L 139.00 61.00 L 139.00 66.00 L 114.00 66.00 Z\" fill=\"#ffffff\" fill-rule=\"evenodd\" stroke=\"none\"></path><path d=\"M 114.00 42.00 L 156.00 42.00 L 156.00 47.00 L 114.00 47.00 Z\" fill=\"#ffffff\" fill-rule=\"evenodd\" stroke=\"none\"></path><path d=\"M 114.00 68.00 L 156.00 68.00 L 156.00 73.00 L 114.00 73.00 Z\" fill=\"#ffffff\" fill-rule=\"evenodd\" stroke=\"none\"></path><path d=\"M 108.00 39.50 C 108.00 43.64 104.64 47.00 100.50 47.00 C 96.36 47.00 93.00 43.64 93.00 39.50 C 93.00 35.36 96.36 32.00 100.50 32.00 C 104.64 32.00 108.00 35.36 108.00 39.50 Z\" fill=\"#ffffff\" fill-rule=\"evenodd\" stroke=\"none\"></path><path d=\"M 108.00 65.50 C 108.00 69.64 104.64 73.00 100.50 73.00 C 96.36 73.00 93.00 69.64 93.00 65.50 C 93.00 61.36 96.36 58.00 100.50 58.00 C 104.64 58.00 108.00 61.36 108.00 65.50 Z\" fill=\"#ffffff\" fill-rule=\"evenodd\" stroke=\"none\"></path><g><path d=\"M 98.68 36.26 L 98.68 36.26 C 98.68 37.51 99.72 38.53 101.00 38.53 C 102.28 38.53 103.32 37.51 103.32 36.26 L 103.32 36.26 C 103.32 35.01 102.28 34.00 101.00 34.00 C 99.72 34.00 98.68 35.01 98.68 36.26 L 98.68 36.26 Z M 101.00 39.66 C 99.12 39.66 97.44 40.53 96.38 41.89 L 96.38 43.00 L 105.62 43.00 L 105.62 41.89 C 104.56 40.53 102.88 39.66 101.00 39.66 L 101.00 39.66 Z\" fill=\"#91b4f9\" fill-rule=\"nonzero\" stroke=\"none\"></path></g><g><path d=\"M 98.68 63.26 L 98.68 63.26 C 98.68 64.51 99.72 65.53 101.00 65.53 C 102.28 65.53 103.32 64.51 103.32 63.26 L 103.32 63.26 C 103.32 62.01 102.28 61.00 101.00 61.00 C 99.72 61.00 98.68 62.01 98.68 63.26 L 98.68 63.26 Z M 101.00 66.66 C 99.12 66.66 97.44 67.53 96.38 68.89 L 96.38 70.00 L 105.62 70.00 L 105.62 68.89 C 104.56 67.53 102.88 66.66 101.00 66.66 L 101.00 66.66 Z\" fill=\"#91b4f9\" fill-rule=\"nonzero\" stroke=\"none\"></path></g><path d=\"M 94.00 9.00 L 155.00 9.00 C 159.42 9.00 163.00 12.58 163.00 17.00 L 163.00 23.00 L 163.00 23.00 L 86.00 23.00 L 86.00 17.00 C 86.00 12.58 89.58 9.00 94.00 9.00 Z\" fill=\"#7aa1f8\" fill-rule=\"evenodd\" stroke=\"none\"></path><path d=\"M 96.00 16.50 C 96.00 17.88 94.88 19.00 93.50 19.00 C 92.12 19.00 91.00 17.88 91.00 16.50 C 91.00 15.12 92.12 14.00 93.50 14.00 C 94.88 14.00 96.00 15.12 96.00 16.50 Z\" fill=\"#ffffff\" fill-rule=\"evenodd\" stroke=\"none\"></path><path d=\"M 103.00 16.50 C 103.00 17.88 101.88 19.00 100.50 19.00 C 99.12 19.00 98.00 17.88 98.00 16.50 C 98.00 15.12 99.12 14.00 100.50 14.00 C 101.88 14.00 103.00 15.12 103.00 16.50 Z\" fill=\"#ffffff\" fill-rule=\"evenodd\" stroke=\"none\"></path><path d=\"M 110.00 16.50 C 110.00 17.88 108.88 19.00 107.50 19.00 C 106.12 19.00 105.00 17.88 105.00 16.50 C 105.00 15.12 106.12 14.00 107.50 14.00 C 108.88 14.00 110.00 15.12 110.00 16.50 Z\" fill=\"#ffffff\" fill-rule=\"evenodd\" stroke=\"none\"></path></g></g></svg>";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as default };
|
package/dist/data-view/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
2
|
-
import { t } from "../Pagination-
|
|
3
|
-
import { t as n } from "../ProgressSpinner-
|
|
4
|
-
import { n as r } from "../locale-
|
|
2
|
+
import { t } from "../Pagination-BKvR-RUW.js";
|
|
3
|
+
import { t as n } from "../ProgressSpinner-DuBpPkna.js";
|
|
4
|
+
import { n as r } from "../locale-B36KH7c3.js";
|
|
5
5
|
import "./style.js";
|
|
6
6
|
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, defineComponent as u, mergeProps as d, openBlock as f, ref as p, renderList as m, renderSlot as h, toDisplayString as g, unref as _, useAttrs as v, useSlots as y, watch as b } from "vue";
|
|
7
7
|
//#region src/components/DataView/DataView.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -3,8 +3,8 @@ import { t } from "../Icon-DfpIfo2L.js";
|
|
|
3
3
|
import { n, t as r } from "../overlay-oR-5MDuE.js";
|
|
4
4
|
import { t as i } from "../overlayPlacement-Cd20JTD_.js";
|
|
5
5
|
import { t as a } from "../useMId-BXFYayPP.js";
|
|
6
|
-
import { c as o, o as s } from "../config-
|
|
7
|
-
import { n as ee, t as te } from "../locale-
|
|
6
|
+
import { c as o, o as s } from "../config-BdK5ccNT.js";
|
|
7
|
+
import { n as ee, t as te } from "../locale-B36KH7c3.js";
|
|
8
8
|
import "./style.js";
|
|
9
9
|
import { Fragment as c, Teleport as ne, Transition as re, computed as l, createBlock as ie, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, mergeProps as ae, nextTick as h, normalizeClass as g, normalizeStyle as oe, onBeforeUnmount as se, openBlock as _, ref as v, renderList as y, renderSlot as ce, toDisplayString as b, unref as x, useAttrs as le, watch as ue, withCtx as de, withKeys as fe, withModifiers as S } from "vue";
|
|
10
10
|
//#region src/components/DatePicker/DatePicker.vue?vue&type=script&setup=true&lang.ts
|
package/dist/dialog/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { r as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
2
2
|
import { t } from "../Icon-DfpIfo2L.js";
|
|
3
|
-
import { t as n } from "../Button
|
|
3
|
+
import { t as n } from "../Button--RkQybU-.js";
|
|
4
4
|
import { n as r } from "../overlay-oR-5MDuE.js";
|
|
5
5
|
import { t as i } from "../useModalOverlay-Beo3CEAt.js";
|
|
6
6
|
import { t as a } from "../asyncGuard-CPGT_TKu.js";
|
|
7
7
|
import { t as o } from "../lastPointer-CRxcUqdd.js";
|
|
8
|
-
import { c as s } from "../config-
|
|
9
|
-
import { n as
|
|
8
|
+
import { c as s } from "../config-BdK5ccNT.js";
|
|
9
|
+
import { n as ee } from "../locale-B36KH7c3.js";
|
|
10
10
|
import "./style.js";
|
|
11
|
-
import { Teleport as
|
|
11
|
+
import { Teleport as c, Transition as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, mergeProps as _, normalizeClass as v, normalizeStyle as y, openBlock as b, ref as x, renderSlot as S, toDisplayString as C, toRef as w, unref as T, useAttrs as E, useSlots as D, watch as O, withCtx as te, withModifiers as ne } from "vue";
|
|
12
12
|
//#region src/components/Dialog/Dialog.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
13
|
+
var re = ["aria-modal", "aria-label"], ie = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "m-dialog__header"
|
|
16
|
-
},
|
|
16
|
+
}, ae = { class: "m-dialog__heading" }, oe = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "m-dialog__type-icon",
|
|
19
19
|
"aria-hidden": "true"
|
|
20
|
-
},
|
|
20
|
+
}, se = { key: 0 }, ce = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "m-dialog__actions"
|
|
23
|
-
},
|
|
23
|
+
}, le = ["aria-label", "disabled"], ue = ["aria-label", "disabled"], k = { class: "m-dialog__body" }, A = /* @__PURE__ */ g({
|
|
24
24
|
inheritAttrs: !1,
|
|
25
25
|
__name: "Dialog",
|
|
26
26
|
props: {
|
|
@@ -77,11 +77,23 @@ var ae = ["aria-modal", "aria-label"], oe = {
|
|
|
77
77
|
"maximize",
|
|
78
78
|
"unmaximize"
|
|
79
79
|
],
|
|
80
|
-
setup(
|
|
81
|
-
let
|
|
82
|
-
let e =
|
|
80
|
+
setup(g, { expose: A, emit: j }) {
|
|
81
|
+
let M = g, N = j, P = E(), { rootAttrs: F } = e(P, () => M.pt), I = u(() => {
|
|
82
|
+
let e = F.value.style;
|
|
83
|
+
if (e) return typeof e == "string" ? e.match(/(?:^|;)\s*width\s*:\s*([^;]+)/i)?.[1]?.trim() : typeof e.width == "string" ? e.width : void 0;
|
|
84
|
+
}), L = u(() => {
|
|
85
|
+
let e = { ...F.value }, t = e.style;
|
|
86
|
+
if (!t || !I.value) return e;
|
|
87
|
+
if (typeof t == "string") {
|
|
88
|
+
let n = t.replace(/(?:^|;)\s*width\s*:\s*[^;]+/i, "").replace(/^;|;$/g, "").trim();
|
|
89
|
+
return n ? e.style = n : delete e.style, e;
|
|
90
|
+
}
|
|
91
|
+
let { width: n, ...r } = t;
|
|
92
|
+
return Object.keys(r).length ? e.style = r : delete e.style, e;
|
|
93
|
+
}), R = D(), z = s(), B = ee(), V = x(null), H = x(!1), U = x(o()), W = x(null), G = u(() => M.header ?? M.title), K = u(() => r(M, z.value.appendTo)), q = u(() => {
|
|
94
|
+
let e = M.type;
|
|
83
95
|
return e === "warning" || e === "warn" ? "warn" : e;
|
|
84
|
-
}), J =
|
|
96
|
+
}), J = u(() => {
|
|
85
97
|
switch (q.value) {
|
|
86
98
|
case "success": return "check-circle";
|
|
87
99
|
case "warn": return "warning";
|
|
@@ -89,44 +101,48 @@ var ae = ["aria-modal", "aria-label"], oe = {
|
|
|
89
101
|
case "info": return "info";
|
|
90
102
|
default: return;
|
|
91
103
|
}
|
|
92
|
-
}), Y =
|
|
104
|
+
}), Y = u(() => !R.footer && !!(M.positiveText || M.negativeText)), de = u(() => !!(R.footer || Y.value)), X = u(() => W.value != null), fe = u(() => M.ariaLabel ?? G.value), pe = u(() => ({
|
|
93
105
|
"--m-dialog-origin-x": `${U.value.x}px`,
|
|
94
106
|
"--m-dialog-origin-y": `${U.value.y}px`
|
|
95
|
-
})),
|
|
107
|
+
})), me = u(() => {
|
|
108
|
+
if (H.value) return;
|
|
109
|
+
let e = M.width ?? I.value;
|
|
110
|
+
return e ? { width: e } : void 0;
|
|
111
|
+
}), he = u(() => M.dismissableMask === void 0 ? M.closeOnOutsideClick === void 0 || M.closeOnOutsideClick : M.dismissableMask);
|
|
96
112
|
function Z() {
|
|
97
|
-
H.value = !1, W.value = null,
|
|
113
|
+
H.value = !1, W.value = null, N("update:modelValue", !1), N("close");
|
|
98
114
|
}
|
|
99
115
|
async function Q() {
|
|
100
116
|
if (!W.value) {
|
|
101
|
-
if (!
|
|
117
|
+
if (!M.beforeClose) {
|
|
102
118
|
Z();
|
|
103
119
|
return;
|
|
104
120
|
}
|
|
105
121
|
W.value = "close";
|
|
106
122
|
try {
|
|
107
|
-
if (!await a(
|
|
123
|
+
if (!await a(M.beforeClose)) return;
|
|
108
124
|
Z();
|
|
109
125
|
} finally {
|
|
110
126
|
W.value === "close" && (W.value = null);
|
|
111
127
|
}
|
|
112
128
|
}
|
|
113
129
|
}
|
|
114
|
-
async function
|
|
130
|
+
async function ge(e) {
|
|
115
131
|
if (!W.value) {
|
|
116
132
|
W.value = "positive";
|
|
117
133
|
try {
|
|
118
|
-
if (!await a(
|
|
134
|
+
if (!await a(M.onPositiveClick, e)) return;
|
|
119
135
|
Z();
|
|
120
136
|
} finally {
|
|
121
137
|
W.value === "positive" && (W.value = null);
|
|
122
138
|
}
|
|
123
139
|
}
|
|
124
140
|
}
|
|
125
|
-
async function
|
|
141
|
+
async function _e(e) {
|
|
126
142
|
if (!W.value) {
|
|
127
143
|
W.value = "negative";
|
|
128
144
|
try {
|
|
129
|
-
if (!await a(
|
|
145
|
+
if (!await a(M.onNegativeClick, e)) return;
|
|
130
146
|
Z();
|
|
131
147
|
} finally {
|
|
132
148
|
W.value === "negative" && (W.value = null);
|
|
@@ -134,26 +150,26 @@ var ae = ["aria-modal", "aria-label"], oe = {
|
|
|
134
150
|
}
|
|
135
151
|
}
|
|
136
152
|
function $() {
|
|
137
|
-
H.value = !H.value, H.value ?
|
|
153
|
+
H.value = !H.value, H.value ? N("maximize") : N("unmaximize");
|
|
138
154
|
}
|
|
139
|
-
function
|
|
140
|
-
|
|
155
|
+
function ve() {
|
|
156
|
+
he.value && Q();
|
|
141
157
|
}
|
|
142
|
-
return
|
|
158
|
+
return O(() => M.modelValue, (e) => {
|
|
143
159
|
e && (U.value = o());
|
|
144
160
|
}), i({
|
|
145
|
-
open: w(
|
|
161
|
+
open: w(M, "modelValue"),
|
|
146
162
|
container: V,
|
|
147
|
-
closeOnEsc: w(
|
|
148
|
-
blockScroll: () =>
|
|
163
|
+
closeOnEsc: w(M, "closeOnEsc"),
|
|
164
|
+
blockScroll: () => M.blockScroll && M.modal,
|
|
149
165
|
onEscape: () => {
|
|
150
166
|
Q();
|
|
151
167
|
},
|
|
152
|
-
onOpen: () =>
|
|
168
|
+
onOpen: () => N("show"),
|
|
153
169
|
onClose: () => {
|
|
154
|
-
H.value = !1,
|
|
170
|
+
H.value = !1, N("hide");
|
|
155
171
|
}
|
|
156
|
-
}),
|
|
172
|
+
}), A({
|
|
157
173
|
close: Q,
|
|
158
174
|
maximize: () => {
|
|
159
175
|
H.value || $();
|
|
@@ -161,88 +177,88 @@ var ae = ["aria-modal", "aria-label"], oe = {
|
|
|
161
177
|
unmaximize: () => {
|
|
162
178
|
H.value && $();
|
|
163
179
|
}
|
|
164
|
-
}), (e, r) => (b(),
|
|
180
|
+
}), (e, r) => (b(), d(c, {
|
|
165
181
|
to: K.value.to,
|
|
166
182
|
disabled: K.value.disabled
|
|
167
|
-
}, [
|
|
168
|
-
default:
|
|
169
|
-
class: ["m-dialog-backdrop", [`m-dialog-backdrop--${
|
|
170
|
-
"m-dialog-backdrop--modal":
|
|
183
|
+
}, [h(l, { name: "m-dialog" }, {
|
|
184
|
+
default: te(() => [g.modelValue ? (b(), p("div", _({ key: 0 }, L.value, {
|
|
185
|
+
class: ["m-dialog-backdrop", [`m-dialog-backdrop--${g.position}`, {
|
|
186
|
+
"m-dialog-backdrop--modal": g.modal,
|
|
171
187
|
"m-dialog-backdrop--maximized": H.value
|
|
172
188
|
}]],
|
|
173
|
-
style:
|
|
174
|
-
}), [
|
|
189
|
+
style: pe.value
|
|
190
|
+
}), [m("div", {
|
|
175
191
|
class: "m-dialog-zoom",
|
|
176
|
-
onClick:
|
|
177
|
-
}, [
|
|
192
|
+
onClick: ne(ve, ["self"])
|
|
193
|
+
}, [m("section", {
|
|
178
194
|
ref_key: "dialogElement",
|
|
179
195
|
ref: V,
|
|
180
196
|
class: v(["m-dialog", {
|
|
181
197
|
"m-dialog--maximized": H.value,
|
|
182
198
|
[`m-dialog--${q.value}`]: q.value
|
|
183
199
|
}]),
|
|
184
|
-
style: y(
|
|
200
|
+
style: y(me.value),
|
|
185
201
|
role: "dialog",
|
|
186
|
-
"aria-modal":
|
|
187
|
-
"aria-label":
|
|
202
|
+
"aria-modal": g.modal || void 0,
|
|
203
|
+
"aria-label": fe.value,
|
|
188
204
|
tabindex: "-1"
|
|
189
205
|
}, [
|
|
190
|
-
e.$slots.header || G.value || J.value ||
|
|
206
|
+
e.$slots.header || G.value || J.value || g.closable || g.maximizable ? (b(), p("header", ie, [m("div", ae, [J.value ? (b(), p("span", oe, [h(t, {
|
|
191
207
|
name: J.value,
|
|
192
208
|
size: "sm"
|
|
193
|
-
}, null, 8, ["name"])])) :
|
|
209
|
+
}, null, 8, ["name"])])) : f("", !0), S(e.$slots, "header", {}, () => [G.value ? (b(), p("h2", se, C(G.value), 1)) : f("", !0)])]), g.maximizable || g.closable ? (b(), p("div", ce, [g.maximizable ? (b(), p("button", {
|
|
194
210
|
key: 0,
|
|
195
211
|
type: "button",
|
|
196
212
|
class: "m-dialog__action",
|
|
197
213
|
"aria-label": H.value ? T(B).restore : T(B).maximize,
|
|
198
214
|
disabled: X.value,
|
|
199
215
|
onClick: $
|
|
200
|
-
}, [
|
|
216
|
+
}, [h(t, {
|
|
201
217
|
name: H.value ? "restore" : "maximize",
|
|
202
218
|
size: "sm"
|
|
203
|
-
}, null, 8, ["name"])], 8,
|
|
219
|
+
}, null, 8, ["name"])], 8, le)) : f("", !0), g.closable ? (b(), p("button", {
|
|
204
220
|
key: 1,
|
|
205
221
|
type: "button",
|
|
206
222
|
class: "m-dialog__action",
|
|
207
223
|
"aria-label": T(B).close,
|
|
208
224
|
disabled: X.value,
|
|
209
225
|
onClick: Q
|
|
210
|
-
}, [
|
|
226
|
+
}, [h(t, {
|
|
211
227
|
name: "close",
|
|
212
228
|
size: "sm"
|
|
213
|
-
})], 8,
|
|
214
|
-
|
|
215
|
-
|
|
229
|
+
})], 8, ue)) : f("", !0)])) : f("", !0)])) : f("", !0),
|
|
230
|
+
m("div", k, [S(e.$slots, "default")]),
|
|
231
|
+
de.value ? (b(), p("footer", {
|
|
216
232
|
key: 1,
|
|
217
233
|
class: v(["m-dialog__footer", { "m-dialog__footer--preset": Y.value }])
|
|
218
|
-
}, [S(e.$slots, "footer", {}, () => [
|
|
234
|
+
}, [S(e.$slots, "footer", {}, () => [g.negativeText ? (b(), d(n, {
|
|
219
235
|
key: 0,
|
|
220
|
-
label:
|
|
236
|
+
label: g.negativeText,
|
|
221
237
|
severity: "secondary",
|
|
222
238
|
disabled: X.value,
|
|
223
239
|
loading: W.value === "negative",
|
|
224
|
-
onClick:
|
|
240
|
+
onClick: _e
|
|
225
241
|
}, null, 8, [
|
|
226
242
|
"label",
|
|
227
243
|
"disabled",
|
|
228
244
|
"loading"
|
|
229
|
-
])) :
|
|
245
|
+
])) : f("", !0), g.positiveText ? (b(), d(n, {
|
|
230
246
|
key: 1,
|
|
231
|
-
label:
|
|
232
|
-
severity:
|
|
247
|
+
label: g.positiveText,
|
|
248
|
+
severity: g.positiveSeverity,
|
|
233
249
|
disabled: X.value && W.value !== "positive",
|
|
234
250
|
loading: W.value === "positive",
|
|
235
|
-
onClick:
|
|
251
|
+
onClick: ge
|
|
236
252
|
}, null, 8, [
|
|
237
253
|
"label",
|
|
238
254
|
"severity",
|
|
239
255
|
"disabled",
|
|
240
256
|
"loading"
|
|
241
|
-
])) :
|
|
242
|
-
], 14,
|
|
257
|
+
])) : f("", !0)])], 2)) : f("", !0)
|
|
258
|
+
], 14, re)])], 16)) : f("", !0)]),
|
|
243
259
|
_: 3
|
|
244
260
|
})], 8, ["to", "disabled"]));
|
|
245
261
|
}
|
|
246
262
|
});
|
|
247
263
|
//#endregion
|
|
248
|
-
export {
|
|
264
|
+
export { A as MDialog };
|
package/dist/drawer/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import { t } from "../Icon-DfpIfo2L.js";
|
|
|
3
3
|
import { n } from "../overlay-oR-5MDuE.js";
|
|
4
4
|
import { t as r } from "../useModalOverlay-Beo3CEAt.js";
|
|
5
5
|
import { t as i } from "../asyncGuard-CPGT_TKu.js";
|
|
6
|
-
import { c as a } from "../config-
|
|
7
|
-
import { n as o } from "../locale-
|
|
6
|
+
import { c as a } from "../config-BdK5ccNT.js";
|
|
7
|
+
import { n as o } from "../locale-B36KH7c3.js";
|
|
8
8
|
import "./style.js";
|
|
9
9
|
import { Teleport as s, Transition as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, mergeProps as g, normalizeClass as _, normalizeStyle as v, openBlock as y, ref as b, renderSlot as x, toDisplayString as S, toRef as C, unref as w, useAttrs as T, withCtx as E, withModifiers as D } from "vue";
|
|
10
10
|
//#region src/components/Drawer/Drawer.vue?vue&type=script&setup=true&lang.ts
|
package/dist/dropdown/index.js
CHANGED
|
@@ -5,9 +5,9 @@ import { t as i } from "../overlayPlacement-Cd20JTD_.js";
|
|
|
5
5
|
import { t as a } from "../Scrollbar-BYnCO8fv.js";
|
|
6
6
|
import { t as o } from "../icon-xUOyawgJ.js";
|
|
7
7
|
import { t as s } from "../key-CaQYVkjh.js";
|
|
8
|
-
import { t as c } from "../FlyoutSubmenu-
|
|
9
|
-
import { c as l } from "../config-
|
|
10
|
-
import { n as u } from "../locale-
|
|
8
|
+
import { t as c } from "../FlyoutSubmenu-B_bkgKag.js";
|
|
9
|
+
import { c as l } from "../config-BdK5ccNT.js";
|
|
10
|
+
import { n as u } from "../locale-B36KH7c3.js";
|
|
11
11
|
import "./style.js";
|
|
12
12
|
import { Fragment as d, Teleport as f, Transition as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as y, createTextVNode as b, createVNode as x, defineComponent as S, mergeProps as C, nextTick as w, normalizeClass as T, normalizeStyle as E, onBeforeUnmount as D, openBlock as O, ref as k, renderList as A, renderSlot as j, toDisplayString as M, unref as N, useAttrs as ee, watch as te, withCtx as P } from "vue";
|
|
13
13
|
//#region src/components/Dropdown/DropdownNodes.vue?vue&type=script&setup=true&lang.ts
|