morya-ui 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/dist/{Button-B5X_R4Md.js → Button-smoDleh0.js} +1 -1
- package/dist/Icon-od9Ob-Ay.js +393 -0
- package/dist/Loading-BSsRs6v9.js +420 -0
- package/dist/{Pagination-CVrH8Ypi.js → Pagination-DrXmzcEy.js} +1 -1
- package/dist/accordion/style.css +4 -0
- package/dist/auto-complete/index.js +1 -1
- package/dist/auto-complete/style.css +18 -6
- package/dist/avatar/index.js +1 -1
- package/dist/avatar/style.css +4 -0
- package/dist/badge/style.css +4 -0
- package/dist/block-ui/style.css +4 -0
- package/dist/breadcrumb/style.css +4 -0
- package/dist/button/index.js +1 -1
- package/dist/button/style.css +4 -0
- package/dist/card/style.css +4 -0
- package/dist/carousel/index.js +72 -64
- package/dist/carousel/style.css +31 -10
- package/dist/cascade-select/index.js +1 -1
- package/dist/cascade-select/style.css +18 -6
- package/dist/checkbox/style.css +4 -0
- package/dist/chip/index.js +1 -1
- package/dist/chip/style.css +4 -0
- package/dist/command-menu/index.js +2 -2
- package/dist/command-menu/style.css +4 -0
- package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
- package/dist/components/Carousel/styles.css +27 -10
- package/dist/components/DataView/DataView.vue.d.ts +7 -7
- package/dist/components/DataView/DataView.vue.d.ts.map +1 -1
- package/dist/components/DataView/styles.css +0 -20
- package/dist/components/Dropdown/Dropdown.vue.d.ts +2 -2
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts +8 -9
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/styles.css +24 -5
- package/dist/components/Icon/Icon.vue.d.ts.map +1 -1
- package/dist/components/Icon/icon-categories.d.ts.map +1 -1
- package/dist/components/Icon/icons-types.d.ts +4 -2
- package/dist/components/Icon/icons-types.d.ts.map +1 -1
- package/dist/components/Icon/icons.d.ts +250 -561
- package/dist/components/Icon/icons.d.ts.map +1 -1
- package/dist/components/Icon/index.d.ts +2 -2
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Layout/styles.css +5 -2
- package/dist/components/Menu/styles.css +6 -0
- package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
- package/dist/components/Menubar/styles.css +4 -0
- package/dist/components/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/dist/components/Select/Select.vue.d.ts +9 -5
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Select/styles.css +30 -1
- package/dist/components/Select/types.d.ts +11 -1
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/Slider/styles.css +9 -0
- package/dist/components/SplitButton/styles.css +5 -0
- package/dist/components/Table/Table.vue.d.ts +26 -26
- package/dist/components/Table/Table.vue.d.ts.map +1 -1
- package/dist/components/Table/TableLoadingLine.vue.d.ts.map +1 -1
- package/dist/components/Table/styles.css +58 -38
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/styles.css +1 -1
- package/dist/config-provider/style.css +4 -0
- package/dist/confirm-dialog/index.js +2 -2
- package/dist/confirm-dialog/style.css +4 -0
- package/dist/confirm-popup/index.js +2 -2
- package/dist/confirm-popup/style.css +4 -0
- package/dist/context-menu/index.js +2 -2
- package/dist/context-menu/style.css +4 -0
- package/dist/data-view/index.js +47 -47
- package/dist/data-view/style.css +399 -106
- package/dist/data-view/style.js +1 -1
- package/dist/date-picker/index.js +1 -1
- package/dist/date-picker/style.css +4 -0
- package/dist/dialog/index.js +2 -2
- package/dist/dialog/style.css +4 -0
- package/dist/divider/style.css +4 -0
- package/dist/dock/index.js +2 -2
- package/dist/dock/style.css +4 -0
- package/dist/drawer/index.js +1 -1
- package/dist/drawer/style.css +4 -0
- package/dist/dropdown/index.js +110 -91
- package/dist/dropdown/style.css +28 -5
- package/dist/empty/index.js +1 -1
- package/dist/empty/style.css +4 -0
- package/dist/fieldset/index.js +1 -1
- package/dist/fieldset/style.css +4 -0
- package/dist/file-upload/index.js +1 -1
- package/dist/file-upload/style.css +4 -0
- package/dist/flex/style.css +4 -0
- package/dist/float-label/style.css +4 -0
- package/dist/fluid/style.css +4 -0
- package/dist/form/style.css +4 -0
- package/dist/gallery/index.js +1 -1
- package/dist/gallery/style.css +4 -0
- package/dist/grid/style.css +4 -0
- package/dist/icon/index.js +93 -39
- package/dist/icon/style.css +4 -0
- package/dist/icon-COrt_N8A.js +18 -0
- package/dist/icon-field/style.css +4 -0
- package/dist/index.js +2733 -2801
- package/dist/inplace/style.css +4 -0
- package/dist/input/index.js +1 -1
- package/dist/input/style.css +4 -0
- package/dist/input-color/style.css +4 -0
- package/dist/input-group/style.css +4 -0
- package/dist/input-number/index.js +1 -1
- package/dist/input-number/style.css +4 -0
- package/dist/input-otp/style.css +4 -0
- package/dist/input-password/index.js +1 -1
- package/dist/input-password/style.css +4 -0
- package/dist/input-tags/index.js +1 -1
- package/dist/input-tags/style.css +4 -0
- package/dist/knob/style.css +4 -0
- package/dist/label/style.css +4 -0
- package/dist/layout/index.js +1 -1
- package/dist/layout/style.css +9 -2
- package/dist/listbox/style.css +4 -0
- package/dist/loading/index.js +32 -446
- package/dist/loading/style.css +4 -0
- package/dist/mega-menu/index.js +2 -2
- package/dist/mega-menu/style.css +4 -0
- package/dist/menu/index.js +2 -2
- package/dist/menu/style.css +10 -0
- package/dist/menubar/index.js +6 -3
- package/dist/menubar/style.css +8 -0
- package/dist/message/index.js +1 -1
- package/dist/message/style.css +4 -0
- package/dist/meter-group/style.css +4 -0
- package/dist/order-list/index.js +1 -1
- package/dist/order-list/style.css +4 -0
- package/dist/page/index.js +1 -1
- package/dist/page/style.css +4 -0
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +4 -0
- package/dist/panel/index.js +1 -1
- package/dist/panel/style.css +4 -0
- package/dist/pick-list/index.js +1 -1
- package/dist/pick-list/style.css +4 -0
- package/dist/popover/style.css +4 -0
- package/dist/progress-bar/style.css +4 -0
- package/dist/progress-spinner/index.js +105 -2
- package/dist/progress-spinner/style.css +4 -0
- package/dist/radio/style.css +4 -0
- package/dist/rating/index.js +1 -1
- package/dist/rating/style.css +4 -0
- package/dist/result/index.js +1 -1
- package/dist/result/style.css +4 -0
- package/dist/scroll-top/index.js +1 -1
- package/dist/scroll-top/style.css +4 -0
- package/dist/scrollbar/style.css +4 -0
- package/dist/select/index.js +284 -217
- package/dist/select/style.css +48 -7
- package/dist/select-button/style.css +4 -0
- package/dist/shared/menu/icon.d.ts.map +1 -1
- package/dist/shared/styles/select-overlay.css +14 -6
- package/dist/sidebar/index.js +2 -2
- package/dist/sidebar/style.css +4 -0
- package/dist/skeleton/style.css +4 -0
- package/dist/slider/style.css +13 -0
- package/dist/space/style.css +4 -0
- package/dist/speed-dial/index.js +2 -2
- package/dist/speed-dial/style.css +4 -0
- package/dist/split-button/index.js +1 -1
- package/dist/split-button/style.css +9 -0
- package/dist/splitter/style.css +4 -0
- package/dist/status/index.js +1 -1
- package/dist/status/style.css +4 -0
- package/dist/stepper/index.js +1 -1
- package/dist/stepper/style.css +4 -0
- package/dist/styles/base.css +4 -0
- package/dist/styles.css +1 -1
- package/dist/switch/style.css +4 -0
- package/dist/table/index.js +344 -338
- package/dist/table/style.css +457 -124
- package/dist/table/style.js +1 -1
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/style.css +4 -0
- package/dist/tag/index.js +1 -1
- package/dist/tag/style.css +4 -0
- package/dist/terminal/style.css +4 -0
- package/dist/textarea/index.js +1 -1
- package/dist/textarea/style.css +4 -0
- package/dist/tiered-menu/index.js +1 -1
- package/dist/tiered-menu/style.css +4 -0
- package/dist/timeline/index.js +1 -1
- package/dist/timeline/style.css +4 -0
- package/dist/toast/index.js +1 -1
- package/dist/toast/style.css +4 -0
- package/dist/toggle-button/index.js +2 -2
- package/dist/toggle-button/style.css +4 -0
- package/dist/toolbar/style.css +4 -0
- package/dist/tooltip/style.css +4 -0
- package/dist/tree/index.js +1 -1
- package/dist/tree/style.css +4 -0
- package/dist/tree-select/index.js +2 -1
- package/dist/tree-select/style.css +19 -7
- package/dist/tree-table/index.js +1 -1
- package/dist/tree-table/style.css +4 -0
- package/dist/virtual-scroller/style.css +4 -0
- package/package.json +1 -1
- package/dist/Icon-lcN1rS87.js +0 -610
- package/dist/ProgressSpinner-BeWVF6Jv.js +0 -105
- package/dist/components/Icon/icons-tabler.d.ts +0 -77
- package/dist/components/Icon/icons-tabler.d.ts.map +0 -1
- package/dist/icon-DWXkh-RM.js +0 -27
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
|
|
2
|
+
import { i as t } from "./types-DGuu4Eg4.js";
|
|
3
|
+
import { t as n } from "./usePauseOffscreen-BIikV_gj.js";
|
|
4
|
+
import { n as r, t as i } from "./useMotionTransition-Bxnnb_9u.js";
|
|
5
|
+
import { n as a } from "./overlay-oR-5MDuE.js";
|
|
6
|
+
import { i as o } from "./content-h8POj44-.js";
|
|
7
|
+
import { t as s } from "./overlayHost-78CGtMgR.js";
|
|
8
|
+
import { c, i as l, l as u, t as d } from "./config-CapALqt3.js";
|
|
9
|
+
import { n as f } from "./locale-Bzm2nbEp.js";
|
|
10
|
+
import { Fragment as p, Teleport as m, Transition as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createStaticVNode as x, createVNode as S, defineComponent as C, h as w, mergeProps as T, normalizeClass as E, normalizeStyle as D, onBeforeUnmount as O, openBlock as k, reactive as A, ref as j, render as M, renderList as N, renderSlot as P, toDisplayString as F, toValue as I, unref as L, useAttrs as ee, useSlots as te, watch as R, withCtx as z } from "vue";
|
|
11
|
+
//#region src/components/Loading/types.ts
|
|
12
|
+
var B = [
|
|
13
|
+
"circular",
|
|
14
|
+
"aurora",
|
|
15
|
+
"bounce",
|
|
16
|
+
"wave",
|
|
17
|
+
"pulse",
|
|
18
|
+
"stardust"
|
|
19
|
+
], V = new Set(B);
|
|
20
|
+
function H(e) {
|
|
21
|
+
return typeof e == "string" && V.has(e);
|
|
22
|
+
}
|
|
23
|
+
function U(e) {
|
|
24
|
+
return H(e) ? e : "circular";
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/Loading/LoadingIndicator.vue?vue&type=script&setup=true&lang.ts
|
|
28
|
+
var W = ["aria-label"], G = {
|
|
29
|
+
class: "m-loading-indicator__graphic",
|
|
30
|
+
"aria-hidden": "true"
|
|
31
|
+
}, ne = {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: "m-loading-aurora"
|
|
34
|
+
}, re = {
|
|
35
|
+
key: 1,
|
|
36
|
+
class: "m-loading-bounce"
|
|
37
|
+
}, ie = {
|
|
38
|
+
key: 2,
|
|
39
|
+
class: "m-loading-wave"
|
|
40
|
+
}, ae = {
|
|
41
|
+
key: 3,
|
|
42
|
+
class: "m-loading-pulse"
|
|
43
|
+
}, oe = {
|
|
44
|
+
key: 4,
|
|
45
|
+
class: "m-loading-stardust"
|
|
46
|
+
}, se = {
|
|
47
|
+
key: 5,
|
|
48
|
+
class: "m-loading-circular"
|
|
49
|
+
}, ce = {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: "m-loading-indicator__tip"
|
|
52
|
+
}, K = /* @__PURE__ */ C({
|
|
53
|
+
name: "MLoadingIndicator",
|
|
54
|
+
__name: "LoadingIndicator",
|
|
55
|
+
props: {
|
|
56
|
+
effect: {},
|
|
57
|
+
text: {},
|
|
58
|
+
ariaLabel: {},
|
|
59
|
+
size: {}
|
|
60
|
+
},
|
|
61
|
+
setup(e) {
|
|
62
|
+
let r = e, i = f(), a = j(null), { pauseAttrs: o } = n(a, !0), s = l("Loading"), c = g(() => U(r.effect ?? s.value.effect)), u = g(() => r.size ?? s.value.size), d = g(() => {
|
|
63
|
+
let e = t(u.value);
|
|
64
|
+
return {
|
|
65
|
+
"m-loading-indicator--small": e === "small",
|
|
66
|
+
"m-loading-indicator--large": e === "large"
|
|
67
|
+
};
|
|
68
|
+
}), m = g(() => r.ariaLabel ?? (r.text ? void 0 : i.value.loading));
|
|
69
|
+
return (t, n) => (k(), y("div", T({
|
|
70
|
+
ref_key: "rootRef",
|
|
71
|
+
ref: a
|
|
72
|
+
}, L(o), {
|
|
73
|
+
class: ["m-loading-indicator", d.value],
|
|
74
|
+
role: "status",
|
|
75
|
+
"aria-live": "polite",
|
|
76
|
+
"aria-label": m.value
|
|
77
|
+
}), [b("div", G, [c.value === "aurora" ? (k(), y("div", ne, [...n[0] ||= [b("div", { class: "m-loading-aurora__ring" }, null, -1), b("div", { class: "m-loading-aurora__glow" }, null, -1)]])) : c.value === "bounce" ? (k(), y("div", re, [...n[1] ||= [
|
|
78
|
+
b("span", { class: "m-loading-bounce__ball" }, null, -1),
|
|
79
|
+
b("span", { class: "m-loading-bounce__ball" }, null, -1),
|
|
80
|
+
b("span", { class: "m-loading-bounce__ball" }, null, -1)
|
|
81
|
+
]])) : c.value === "wave" ? (k(), y("div", ie, [...n[2] ||= [x("<span class=\"m-loading-wave__bar\"></span><span class=\"m-loading-wave__bar\"></span><span class=\"m-loading-wave__bar\"></span><span class=\"m-loading-wave__bar\"></span><span class=\"m-loading-wave__bar\"></span>", 5)]])) : c.value === "pulse" ? (k(), y("div", ae, [...n[3] ||= [
|
|
82
|
+
b("span", { class: "m-loading-pulse__ring" }, null, -1),
|
|
83
|
+
b("span", { class: "m-loading-pulse__ring" }, null, -1),
|
|
84
|
+
b("span", { class: "m-loading-pulse__ring" }, null, -1),
|
|
85
|
+
b("span", { class: "m-loading-pulse__ring" }, null, -1)
|
|
86
|
+
]])) : c.value === "stardust" ? (k(), y("div", oe, [(k(), y(p, null, N(8, (e) => b("span", {
|
|
87
|
+
key: e,
|
|
88
|
+
class: "m-loading-stardust__dot",
|
|
89
|
+
style: D({ "--i": String(e - 1) })
|
|
90
|
+
}, null, 4)), 64))])) : (k(), y("div", se, [...n[4] ||= [b("svg", {
|
|
91
|
+
class: "m-loading-circular__svg",
|
|
92
|
+
viewBox: "0 0 50 50"
|
|
93
|
+
}, [b("circle", {
|
|
94
|
+
class: "m-loading-circular__path",
|
|
95
|
+
cx: "25",
|
|
96
|
+
cy: "25",
|
|
97
|
+
r: "20",
|
|
98
|
+
fill: "none"
|
|
99
|
+
})], -1)]]))]), e.text ? (k(), y("p", ce, F(e.text), 1)) : v("", !0)], 16, W));
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region src/components/Loading/loading.ts
|
|
104
|
+
function le(e) {
|
|
105
|
+
let t = e ?? s();
|
|
106
|
+
if (!t) return;
|
|
107
|
+
let n = t.provides?.[d];
|
|
108
|
+
return n == null ? t.config.globalProperties.$m : I(n);
|
|
109
|
+
}
|
|
110
|
+
function ue(e) {
|
|
111
|
+
let t = le(e);
|
|
112
|
+
return r({
|
|
113
|
+
rolePreset: t?.motion?.transitions?.overlay,
|
|
114
|
+
componentDefault: u(t?.componentDefaults, "Loading", "transition"),
|
|
115
|
+
fallback: "loading"
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
var q = /* @__PURE__ */ new Set(), J = null, Y = 0, X = "";
|
|
119
|
+
function Z() {
|
|
120
|
+
typeof document > "u" || (Y === 0 && (X = document.body.style.overflow), Y += 1, document.body.style.overflow = "hidden");
|
|
121
|
+
}
|
|
122
|
+
function Q() {
|
|
123
|
+
typeof document > "u" || (Y = Math.max(0, Y - 1), Y === 0 && (document.body.style.overflow = X));
|
|
124
|
+
}
|
|
125
|
+
function de(e) {
|
|
126
|
+
if (typeof document > "u") throw Error("[MLoading] service is only available in the browser");
|
|
127
|
+
if (!e || e === document.body) return document.body;
|
|
128
|
+
if (typeof e == "string") {
|
|
129
|
+
let t = document.querySelector(e);
|
|
130
|
+
if (!(t instanceof HTMLElement)) throw TypeError(`[MLoading] target not found: ${e}`);
|
|
131
|
+
return t;
|
|
132
|
+
}
|
|
133
|
+
return e;
|
|
134
|
+
}
|
|
135
|
+
function fe(e) {
|
|
136
|
+
let t = 0;
|
|
137
|
+
return () => {
|
|
138
|
+
t ||= requestAnimationFrame(() => {
|
|
139
|
+
t = 0, e();
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function $(e) {
|
|
144
|
+
let t = A({
|
|
145
|
+
visible: !e.delay,
|
|
146
|
+
text: e.text ?? "",
|
|
147
|
+
effect: e.effect,
|
|
148
|
+
background: e.background,
|
|
149
|
+
customClass: e.customClass,
|
|
150
|
+
size: e.size,
|
|
151
|
+
fullscreen: !!e.fullscreen,
|
|
152
|
+
body: !!e.body && !e.fullscreen,
|
|
153
|
+
spinner: e.spinner,
|
|
154
|
+
top: 0,
|
|
155
|
+
left: 0,
|
|
156
|
+
width: 0,
|
|
157
|
+
height: 0
|
|
158
|
+
});
|
|
159
|
+
t.fullscreen && J && J.destroy();
|
|
160
|
+
let n = document.createElement("div");
|
|
161
|
+
(t.fullscreen || t.body ? document.body : e.target).appendChild(n);
|
|
162
|
+
let r = !1;
|
|
163
|
+
if (!t.fullscreen && !t.body) {
|
|
164
|
+
let t = getComputedStyle(e.target).position;
|
|
165
|
+
(!t || t === "static") && (e.target.classList.add("m-loading-parent--relative"), r = !0);
|
|
166
|
+
}
|
|
167
|
+
e.target.setAttribute("aria-busy", "true");
|
|
168
|
+
let i = !1;
|
|
169
|
+
function a(e) {
|
|
170
|
+
if (e && !i) {
|
|
171
|
+
Z(), i = !0;
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
!e && i && (Q(), i = !1);
|
|
175
|
+
}
|
|
176
|
+
t.visible && a(!!e.lock);
|
|
177
|
+
function c() {
|
|
178
|
+
if (!t.body) return;
|
|
179
|
+
let n = e.target.getBoundingClientRect();
|
|
180
|
+
t.top = n.top, t.left = n.left, t.width = n.width, t.height = n.height;
|
|
181
|
+
}
|
|
182
|
+
let l = fe(c), u = null;
|
|
183
|
+
t.body && (c(), window.addEventListener("scroll", l, !0), window.addEventListener("resize", l), typeof ResizeObserver < "u" && (u = new ResizeObserver(l), u.observe(e.target)));
|
|
184
|
+
let d = null;
|
|
185
|
+
e.delay && e.delay > 0 && (d = setTimeout(() => {
|
|
186
|
+
d = null, t.visible = !0, a(!!e.lock);
|
|
187
|
+
}, e.delay));
|
|
188
|
+
let f = null, p = !1, m = !1, g = null;
|
|
189
|
+
function _() {
|
|
190
|
+
m || (m = !0, p = !0, d !== null && (clearTimeout(d), d = null), f !== null && (clearTimeout(f), f = null), a(!1), t.body && (window.removeEventListener("scroll", l, !0), window.removeEventListener("resize", l), u?.disconnect(), u = null), r && e.target.classList.remove("m-loading-parent--relative"), e.target.getAttribute("aria-busy") === "true" && e.target.removeAttribute("aria-busy"), M(null, n), n.remove(), g && (q.delete(g), J === g && (J = null)));
|
|
191
|
+
}
|
|
192
|
+
let v = C({
|
|
193
|
+
name: "MLoadingMask",
|
|
194
|
+
setup() {
|
|
195
|
+
let n = ue(e.appContext);
|
|
196
|
+
return () => w(h, {
|
|
197
|
+
name: n,
|
|
198
|
+
css: n !== void 0,
|
|
199
|
+
appear: !0,
|
|
200
|
+
duration: {
|
|
201
|
+
enter: 180,
|
|
202
|
+
leave: 130
|
|
203
|
+
},
|
|
204
|
+
onAfterLeave: () => _()
|
|
205
|
+
}, { default: () => {
|
|
206
|
+
if (!t.visible) return null;
|
|
207
|
+
let e = [
|
|
208
|
+
"m-loading-mask",
|
|
209
|
+
t.fullscreen ? "m-loading-mask--fullscreen" : void 0,
|
|
210
|
+
t.body ? "m-loading-mask--body" : void 0,
|
|
211
|
+
t.customClass || void 0
|
|
212
|
+
].filter((e) => !!e), n = {};
|
|
213
|
+
t.background && (n.background = t.background), t.body && (n.top = `${t.top}px`, n.left = `${t.left}px`, n.width = `${t.width}px`, n.height = `${t.height}px`);
|
|
214
|
+
let r = t.spinner ? o(t.spinner) : w(K, {
|
|
215
|
+
effect: t.effect,
|
|
216
|
+
size: t.size,
|
|
217
|
+
text: t.text || void 0
|
|
218
|
+
});
|
|
219
|
+
return w("div", {
|
|
220
|
+
class: e,
|
|
221
|
+
style: n
|
|
222
|
+
}, [r]);
|
|
223
|
+
} });
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
g = {
|
|
227
|
+
fullscreen: t.fullscreen,
|
|
228
|
+
destroy: _,
|
|
229
|
+
close() {
|
|
230
|
+
if (!p) {
|
|
231
|
+
if (p = !0, d !== null) {
|
|
232
|
+
clearTimeout(d), d = null, _();
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
if (!t.visible) {
|
|
236
|
+
_();
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
t.visible = !1, f = setTimeout(_, 200);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}, q.add(g), t.fullscreen && (J = g);
|
|
243
|
+
let y = w(v);
|
|
244
|
+
return y.appContext = e.appContext ?? s(), M(y, n), {
|
|
245
|
+
close: () => g.close(),
|
|
246
|
+
destroy: () => _(),
|
|
247
|
+
setText(e) {
|
|
248
|
+
m || (t.text = e);
|
|
249
|
+
},
|
|
250
|
+
update(e) {
|
|
251
|
+
m || (e.text !== void 0 && (t.text = e.text), e.effect !== void 0 && (t.effect = e.effect), e.background !== void 0 && (t.background = e.background), e.customClass !== void 0 && (t.customClass = e.customClass), e.size !== void 0 && (t.size = e.size), e.spinner !== void 0 && (t.spinner = e.spinner), e.lock !== void 0 && t.visible && a(e.lock));
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
function pe() {
|
|
256
|
+
return {
|
|
257
|
+
close() {},
|
|
258
|
+
setText() {},
|
|
259
|
+
destroy() {}
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
function me(e = {}) {
|
|
263
|
+
if (typeof document > "u") return pe();
|
|
264
|
+
let t = e.fullscreen ?? (e.target == null && !e.body), n = $({
|
|
265
|
+
target: t ? document.body : de(e.target ?? document.body),
|
|
266
|
+
fullscreen: t,
|
|
267
|
+
body: !!e.body && !t,
|
|
268
|
+
lock: e.lock,
|
|
269
|
+
text: e.text,
|
|
270
|
+
effect: e.effect,
|
|
271
|
+
background: e.background,
|
|
272
|
+
customClass: e.customClass,
|
|
273
|
+
size: e.size,
|
|
274
|
+
delay: e.delay,
|
|
275
|
+
spinner: e.spinner
|
|
276
|
+
});
|
|
277
|
+
return {
|
|
278
|
+
close: () => n.close(),
|
|
279
|
+
setText: (e) => n.setText(e),
|
|
280
|
+
destroy: () => n.destroy()
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
var he = { service: me }, ge = ["aria-busy"], _e = ["inert"], ve = /* @__PURE__ */ C({
|
|
284
|
+
name: "MLoading",
|
|
285
|
+
inheritAttrs: !1,
|
|
286
|
+
__name: "Loading",
|
|
287
|
+
props: {
|
|
288
|
+
pt: {},
|
|
289
|
+
loading: {
|
|
290
|
+
type: Boolean,
|
|
291
|
+
default: !0
|
|
292
|
+
},
|
|
293
|
+
effect: {},
|
|
294
|
+
text: {},
|
|
295
|
+
ariaLabel: {},
|
|
296
|
+
size: {},
|
|
297
|
+
background: {},
|
|
298
|
+
customClass: {},
|
|
299
|
+
fullscreen: {
|
|
300
|
+
type: Boolean,
|
|
301
|
+
default: !1
|
|
302
|
+
},
|
|
303
|
+
lock: {
|
|
304
|
+
type: Boolean,
|
|
305
|
+
default: !1
|
|
306
|
+
},
|
|
307
|
+
delay: { default: 0 },
|
|
308
|
+
transition: {
|
|
309
|
+
type: [String, Boolean],
|
|
310
|
+
default: void 0
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
setup(t) {
|
|
314
|
+
let n = t, r = ee(), o = te(), { rootAttrs: s } = e(r, () => n.pt), u = l("Loading"), d = c(), { transitionName: f, transitionCss: x } = i({
|
|
315
|
+
role: "overlay",
|
|
316
|
+
local: () => n.transition,
|
|
317
|
+
componentName: "Loading",
|
|
318
|
+
fallback: "loading"
|
|
319
|
+
}), C = g(() => !!o.default), w = g(() => C.value || n.fullscreen), A = g(() => U(n.effect ?? u.value.effect)), M = g(() => n.size ?? u.value.size), N = g(() => n.delay ?? u.value.delay ?? 0), F = g(() => n.background ? { background: n.background } : void 0), I = g(() => a(n.fullscreen ? {
|
|
320
|
+
teleport: !0,
|
|
321
|
+
appendTo: "body"
|
|
322
|
+
} : { teleport: !1 }, d.value.appendTo)), B = j(n.loading && N.value <= 0), V = null;
|
|
323
|
+
function H() {
|
|
324
|
+
V !== null && (clearTimeout(V), V = null);
|
|
325
|
+
}
|
|
326
|
+
R(() => [
|
|
327
|
+
n.loading,
|
|
328
|
+
N.value,
|
|
329
|
+
w.value
|
|
330
|
+
], ([e, t]) => {
|
|
331
|
+
if (H(), !e || !w.value) {
|
|
332
|
+
B.value = !1;
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
335
|
+
if (!t) {
|
|
336
|
+
B.value = !0;
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
339
|
+
B.value = !1, V = setTimeout(() => {
|
|
340
|
+
B.value = !0, V = null;
|
|
341
|
+
}, t);
|
|
342
|
+
}, { immediate: !0 });
|
|
343
|
+
let W = g(() => n.lock && B.value && w.value), G = !1;
|
|
344
|
+
return R(W, (e) => {
|
|
345
|
+
if (e && !G) {
|
|
346
|
+
Z(), G = !0;
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
!e && G && (Q(), G = !1);
|
|
350
|
+
}, { immediate: !0 }), O(() => {
|
|
351
|
+
H(), G &&= (Q(), !1);
|
|
352
|
+
}), (e, n) => w.value ? (k(), y(p, { key: 0 }, [C.value ? (k(), y("div", T({ key: 0 }, L(s), {
|
|
353
|
+
class: ["m-loading", { "m-loading--active": B.value }],
|
|
354
|
+
"aria-busy": B.value || void 0
|
|
355
|
+
}), [b("div", {
|
|
356
|
+
class: "m-loading__content",
|
|
357
|
+
inert: B.value || void 0
|
|
358
|
+
}, [P(e.$slots, "default")], 8, _e), (k(), _(m, {
|
|
359
|
+
to: I.value.to,
|
|
360
|
+
disabled: I.value.disabled
|
|
361
|
+
}, [S(h, {
|
|
362
|
+
name: L(f),
|
|
363
|
+
css: L(x)
|
|
364
|
+
}, {
|
|
365
|
+
default: z(() => [B.value ? (k(), y("div", {
|
|
366
|
+
key: 0,
|
|
367
|
+
class: E(["m-loading-mask", [{ "m-loading-mask--fullscreen": t.fullscreen }, t.customClass]]),
|
|
368
|
+
style: D(F.value)
|
|
369
|
+
}, [P(e.$slots, "indicator", {}, () => [S(K, {
|
|
370
|
+
effect: A.value,
|
|
371
|
+
size: M.value,
|
|
372
|
+
text: t.text,
|
|
373
|
+
"aria-label": t.ariaLabel
|
|
374
|
+
}, null, 8, [
|
|
375
|
+
"effect",
|
|
376
|
+
"size",
|
|
377
|
+
"text",
|
|
378
|
+
"aria-label"
|
|
379
|
+
])])], 6)) : v("", !0)]),
|
|
380
|
+
_: 3
|
|
381
|
+
}, 8, ["name", "css"])], 8, ["to", "disabled"]))], 16, ge)) : (k(), _(m, {
|
|
382
|
+
key: 1,
|
|
383
|
+
to: I.value.to,
|
|
384
|
+
disabled: I.value.disabled
|
|
385
|
+
}, [S(h, {
|
|
386
|
+
name: L(f),
|
|
387
|
+
css: L(x)
|
|
388
|
+
}, {
|
|
389
|
+
default: z(() => [B.value ? (k(), y("div", T({ key: 0 }, L(s), {
|
|
390
|
+
class: ["m-loading-mask m-loading-mask--fullscreen", t.customClass],
|
|
391
|
+
style: F.value,
|
|
392
|
+
role: "presentation",
|
|
393
|
+
"aria-busy": "true"
|
|
394
|
+
}), [P(e.$slots, "indicator", {}, () => [S(K, {
|
|
395
|
+
effect: A.value,
|
|
396
|
+
size: M.value,
|
|
397
|
+
text: t.text,
|
|
398
|
+
"aria-label": t.ariaLabel
|
|
399
|
+
}, null, 8, [
|
|
400
|
+
"effect",
|
|
401
|
+
"size",
|
|
402
|
+
"text",
|
|
403
|
+
"aria-label"
|
|
404
|
+
])])], 16)) : v("", !0)]),
|
|
405
|
+
_: 3
|
|
406
|
+
}, 8, ["name", "css"])], 8, ["to", "disabled"]))], 64)) : (k(), _(K, T({ key: 1 }, L(s), {
|
|
407
|
+
effect: A.value,
|
|
408
|
+
size: M.value,
|
|
409
|
+
text: t.text,
|
|
410
|
+
"aria-label": t.ariaLabel
|
|
411
|
+
}), null, 16, [
|
|
412
|
+
"effect",
|
|
413
|
+
"size",
|
|
414
|
+
"text",
|
|
415
|
+
"aria-label"
|
|
416
|
+
]));
|
|
417
|
+
}
|
|
418
|
+
});
|
|
419
|
+
//#endregion
|
|
420
|
+
export { H as a, B as i, he as n, U as o, $ as r, ve as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
|
|
2
|
-
import { t } from "./Icon-
|
|
2
|
+
import { t } from "./Icon-od9Ob-Ay.js";
|
|
3
3
|
import { n, t as r } from "./locale-Bzm2nbEp.js";
|
|
4
4
|
import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, unref as _, useAttrs as v, withKeys as y, withModifiers as b } from "vue";
|
|
5
5
|
//#region src/components/Pagination/Pagination.vue?vue&type=script&setup=true&lang.ts
|
package/dist/accordion/style.css
CHANGED
|
@@ -529,9 +529,13 @@
|
|
|
529
529
|
border-radius: var(--m-radius-md);
|
|
530
530
|
box-shadow: var(--m-shadow-md);
|
|
531
531
|
max-height: var(--m-dropdown-submenu-max-height);
|
|
532
|
+
max-width: calc(100vw - 2 * var(--m-space-4));
|
|
532
533
|
min-width: 10rem;
|
|
533
534
|
overflow: hidden;
|
|
534
535
|
padding: var(--m-space-1);
|
|
536
|
+
/* Same as .m-dropdown__menu: size to content instead of being clamped
|
|
537
|
+
by the space left of the anchor in the viewport. */
|
|
538
|
+
width: max-content;
|
|
535
539
|
}
|
|
536
540
|
|
|
537
541
|
.m-dropdown__submenu--teleported {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
|
-
import { t } from "../Icon-
|
|
2
|
+
import { t } from "../Icon-od9Ob-Ay.js";
|
|
3
3
|
import { t as n } from "../useMotionTransition-Bxnnb_9u.js";
|
|
4
4
|
import { n as ee, t as te } from "../overlay-oR-5MDuE.js";
|
|
5
5
|
import { t as ne } from "../overlayPlacement-Cd20JTD_.js";
|
|
@@ -529,9 +529,13 @@
|
|
|
529
529
|
border-radius: var(--m-radius-md);
|
|
530
530
|
box-shadow: var(--m-shadow-md);
|
|
531
531
|
max-height: var(--m-dropdown-submenu-max-height);
|
|
532
|
+
max-width: calc(100vw - 2 * var(--m-space-4));
|
|
532
533
|
min-width: 10rem;
|
|
533
534
|
overflow: hidden;
|
|
534
535
|
padding: var(--m-space-1);
|
|
536
|
+
/* Same as .m-dropdown__menu: size to content instead of being clamped
|
|
537
|
+
by the space left of the anchor in the viewport. */
|
|
538
|
+
width: max-content;
|
|
535
539
|
}
|
|
536
540
|
|
|
537
541
|
.m-dropdown__submenu--teleported {
|
|
@@ -1348,21 +1352,29 @@
|
|
|
1348
1352
|
|
|
1349
1353
|
.m-select__filter,
|
|
1350
1354
|
.m-treeselect__filter {
|
|
1355
|
+
/* size="1" + min-width:0 keep intrinsic width from inflating width:max-content menus */
|
|
1356
|
+
align-self: stretch;
|
|
1351
1357
|
background: var(--m-color-surface);
|
|
1352
|
-
border:
|
|
1353
|
-
border-bottom: var(--m-border-width) solid var(--m-color-border);
|
|
1358
|
+
border: var(--m-border-width) solid var(--m-color-border);
|
|
1354
1359
|
border-radius: var(--m-radius-sm);
|
|
1355
1360
|
box-sizing: border-box;
|
|
1356
1361
|
color: var(--m-color-text);
|
|
1357
1362
|
flex: 0 0 auto;
|
|
1358
|
-
font:
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1363
|
+
font-family: var(--m-font-sans);
|
|
1364
|
+
font-size: var(--m-control-font-small);
|
|
1365
|
+
height: var(--m-control-height-small);
|
|
1366
|
+
line-height: calc(var(--m-control-height-small) - 2 * var(--m-border-width));
|
|
1367
|
+
margin: var(--m-space-2);
|
|
1368
|
+
max-width: calc(100% - 2 * var(--m-space-2));
|
|
1369
|
+
min-width: 0;
|
|
1370
|
+
outline: none;
|
|
1371
|
+
padding: 0 var(--m-control-padding-x-small);
|
|
1372
|
+
width: auto;
|
|
1362
1373
|
}
|
|
1363
1374
|
|
|
1364
1375
|
.m-select__filter:focus-visible,
|
|
1365
1376
|
.m-treeselect__filter:focus-visible {
|
|
1377
|
+
border-color: var(--m-color-primary-hover);
|
|
1366
1378
|
box-shadow: var(--m-focus-shadow);
|
|
1367
1379
|
outline: none;
|
|
1368
1380
|
}
|
package/dist/avatar/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
|
-
import { t } from "../Icon-
|
|
2
|
+
import { t } from "../Icon-od9Ob-Ay.js";
|
|
3
3
|
import "./style.js";
|
|
4
4
|
import { Comment as n, Fragment as r, Text as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, openBlock as p, ref as m, renderList as h, resolveDynamicComponent as g, toDisplayString as _, unref as v, useAttrs as y, useSlots as b, watch as x } from "vue";
|
|
5
5
|
//#region src/components/Avatar/Avatar.vue?vue&type=script&setup=true&lang.ts
|
package/dist/avatar/style.css
CHANGED
|
@@ -529,9 +529,13 @@
|
|
|
529
529
|
border-radius: var(--m-radius-md);
|
|
530
530
|
box-shadow: var(--m-shadow-md);
|
|
531
531
|
max-height: var(--m-dropdown-submenu-max-height);
|
|
532
|
+
max-width: calc(100vw - 2 * var(--m-space-4));
|
|
532
533
|
min-width: 10rem;
|
|
533
534
|
overflow: hidden;
|
|
534
535
|
padding: var(--m-space-1);
|
|
536
|
+
/* Same as .m-dropdown__menu: size to content instead of being clamped
|
|
537
|
+
by the space left of the anchor in the viewport. */
|
|
538
|
+
width: max-content;
|
|
535
539
|
}
|
|
536
540
|
|
|
537
541
|
.m-dropdown__submenu--teleported {
|
package/dist/badge/style.css
CHANGED
|
@@ -529,9 +529,13 @@
|
|
|
529
529
|
border-radius: var(--m-radius-md);
|
|
530
530
|
box-shadow: var(--m-shadow-md);
|
|
531
531
|
max-height: var(--m-dropdown-submenu-max-height);
|
|
532
|
+
max-width: calc(100vw - 2 * var(--m-space-4));
|
|
532
533
|
min-width: 10rem;
|
|
533
534
|
overflow: hidden;
|
|
534
535
|
padding: var(--m-space-1);
|
|
536
|
+
/* Same as .m-dropdown__menu: size to content instead of being clamped
|
|
537
|
+
by the space left of the anchor in the viewport. */
|
|
538
|
+
width: max-content;
|
|
535
539
|
}
|
|
536
540
|
|
|
537
541
|
.m-dropdown__submenu--teleported {
|
package/dist/block-ui/style.css
CHANGED
|
@@ -529,9 +529,13 @@
|
|
|
529
529
|
border-radius: var(--m-radius-md);
|
|
530
530
|
box-shadow: var(--m-shadow-md);
|
|
531
531
|
max-height: var(--m-dropdown-submenu-max-height);
|
|
532
|
+
max-width: calc(100vw - 2 * var(--m-space-4));
|
|
532
533
|
min-width: 10rem;
|
|
533
534
|
overflow: hidden;
|
|
534
535
|
padding: var(--m-space-1);
|
|
536
|
+
/* Same as .m-dropdown__menu: size to content instead of being clamped
|
|
537
|
+
by the space left of the anchor in the viewport. */
|
|
538
|
+
width: max-content;
|
|
535
539
|
}
|
|
536
540
|
|
|
537
541
|
.m-dropdown__submenu--teleported {
|
|
@@ -529,9 +529,13 @@
|
|
|
529
529
|
border-radius: var(--m-radius-md);
|
|
530
530
|
box-shadow: var(--m-shadow-md);
|
|
531
531
|
max-height: var(--m-dropdown-submenu-max-height);
|
|
532
|
+
max-width: calc(100vw - 2 * var(--m-space-4));
|
|
532
533
|
min-width: 10rem;
|
|
533
534
|
overflow: hidden;
|
|
534
535
|
padding: var(--m-space-1);
|
|
536
|
+
/* Same as .m-dropdown__menu: size to content instead of being clamped
|
|
537
|
+
by the space left of the anchor in the viewport. */
|
|
538
|
+
width: max-content;
|
|
535
539
|
}
|
|
536
540
|
|
|
537
541
|
.m-dropdown__submenu--teleported {
|
package/dist/button/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
|
-
import { t } from "../Button-
|
|
2
|
+
import { t } from "../Button-smoDleh0.js";
|
|
3
3
|
import "./style.js";
|
|
4
4
|
import { computed as n, createElementBlock as r, defineComponent as i, mergeProps as a, openBlock as o, renderSlot as s, unref as c, useAttrs as l } from "vue";
|
|
5
5
|
//#region src/components/Button/ButtonGroup.vue?vue&type=script&setup=true&lang.ts
|
package/dist/button/style.css
CHANGED
|
@@ -529,9 +529,13 @@
|
|
|
529
529
|
border-radius: var(--m-radius-md);
|
|
530
530
|
box-shadow: var(--m-shadow-md);
|
|
531
531
|
max-height: var(--m-dropdown-submenu-max-height);
|
|
532
|
+
max-width: calc(100vw - 2 * var(--m-space-4));
|
|
532
533
|
min-width: 10rem;
|
|
533
534
|
overflow: hidden;
|
|
534
535
|
padding: var(--m-space-1);
|
|
536
|
+
/* Same as .m-dropdown__menu: size to content instead of being clamped
|
|
537
|
+
by the space left of the anchor in the viewport. */
|
|
538
|
+
width: max-content;
|
|
535
539
|
}
|
|
536
540
|
|
|
537
541
|
.m-dropdown__submenu--teleported {
|
package/dist/card/style.css
CHANGED
|
@@ -529,9 +529,13 @@
|
|
|
529
529
|
border-radius: var(--m-radius-md);
|
|
530
530
|
box-shadow: var(--m-shadow-md);
|
|
531
531
|
max-height: var(--m-dropdown-submenu-max-height);
|
|
532
|
+
max-width: calc(100vw - 2 * var(--m-space-4));
|
|
532
533
|
min-width: 10rem;
|
|
533
534
|
overflow: hidden;
|
|
534
535
|
padding: var(--m-space-1);
|
|
536
|
+
/* Same as .m-dropdown__menu: size to content instead of being clamped
|
|
537
|
+
by the space left of the anchor in the viewport. */
|
|
538
|
+
width: max-content;
|
|
535
539
|
}
|
|
536
540
|
|
|
537
541
|
.m-dropdown__submenu--teleported {
|