morya-ui 0.4.2 → 0.4.3
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 +14 -0
- package/dist/{Button-BaYLh91a.js → Button-Bjsth0ct.js} +3 -3
- package/dist/{Card-B1CB9Trm.js → Card-Ct5vJmoV.js} +1 -1
- package/dist/{Checkbox-LxCFF19I.js → Checkbox-Bo26OGHP.js} +1 -1
- package/dist/{DatePicker-DGPNukEW.js → DatePicker-CsMGzCqY.js} +4 -4
- package/dist/{Empty-2_f_FgyK.js → Empty-rMhOPi79.js} +2 -2
- package/dist/{FlyoutSubmenu-Da6AcoM4.js → FlyoutSubmenu-C0id6-Sb.js} +1 -1
- package/dist/{Icon-od9Ob-Ay.js → Icon-CmHjx7W8.js} +1 -1
- package/dist/{Input-NspPDc2R.js → Input-CxSTVp9E.js} +3 -3
- package/dist/{Loading-BK4dQPCS.js → Loading-D_qRwfKv.js} +4 -4
- package/dist/{Pagination-tdrlaZ3u.js → Pagination-CnGOpp0m.js} +3 -3
- package/dist/{Popover-BumMfUpV.js → Popover-D1uZ1N9Z.js} +2 -2
- package/dist/{ProgressSpinner-BQ1tLioO.js → ProgressSpinner-hmR23xpi.js} +2 -2
- package/dist/{Radio-BCn2OVCF.js → Radio-CZAyelC_.js} +1 -1
- package/dist/{Segmented-ppmDmku5.js → Segmented-BpdO7arR.js} +2 -2
- package/dist/{Select-CN1tM76U.js → Select-CySmusHs.js} +4 -4
- package/dist/{Textarea-Ch1KCXEv.js → Textarea-DskjTCcz.js} +3 -3
- package/dist/{Tooltip-DKsXxU_B.js → Tooltip-DSfkflHp.js} +2 -2
- package/dist/alert/index.js +15 -15
- package/dist/alert/style.css +1 -1
- package/dist/auto-complete/index.js +4 -4
- package/dist/avatar/index.js +1 -1
- package/dist/badge/index.js +24 -24
- package/dist/badge/style.css +0 -1
- package/dist/block-ui/index.js +1 -1
- package/dist/breadcrumb/index.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/calendar/index.js +3 -3
- package/dist/card/index.js +1 -1
- package/dist/carousel/index.js +2 -2
- package/dist/cascade-select/index.js +4 -4
- package/dist/checkbox/index.js +1 -1
- package/dist/chip/index.js +35 -35
- package/dist/chip/style.css +1 -1
- package/dist/command-menu/index.js +5 -5
- package/dist/components/Alert/Alert.vue.d.ts +2 -2
- package/dist/components/Alert/Alert.vue.d.ts.map +1 -1
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/Alert/index.d.ts.map +1 -1
- package/dist/components/Alert/styles.css +1 -1
- package/dist/components/Alert/types.d.ts +3 -3
- package/dist/components/Alert/types.d.ts.map +1 -1
- package/dist/components/Badge/Badge.vue.d.ts +2 -2
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/styles.css +0 -1
- package/dist/components/Badge/types.d.ts +3 -4
- package/dist/components/Badge/types.d.ts.map +1 -1
- package/dist/components/Button/types.d.ts +1 -5
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Chip/index.d.ts +1 -1
- package/dist/components/Chip/index.d.ts.map +1 -1
- package/dist/components/Chip/styles.css +1 -1
- package/dist/components/Chip/types.d.ts +3 -3
- package/dist/components/Chip/types.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/types.d.ts +1 -1
- package/dist/components/ConfirmDialog/types.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/components/Dialog/styles.css +2 -3
- package/dist/components/Dialog/types.d.ts +1 -2
- package/dist/components/Dialog/types.d.ts.map +1 -1
- package/dist/components/Message/Message.vue.d.ts.map +1 -1
- package/dist/components/Message/index.d.ts +1 -1
- package/dist/components/Message/index.d.ts.map +1 -1
- package/dist/components/Message/message.d.ts +4 -0
- package/dist/components/Message/message.d.ts.map +1 -1
- package/dist/components/Message/styles.css +3 -7
- package/dist/components/Message/types.d.ts +4 -4
- package/dist/components/Message/types.d.ts.map +1 -1
- package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
- package/dist/components/Page/PageStat.vue.d.ts +2 -2
- package/dist/components/Page/index.d.ts +1 -1
- package/dist/components/Page/index.d.ts.map +1 -1
- package/dist/components/Page/styles.css +2 -2
- package/dist/components/Page/types.d.ts +2 -2
- package/dist/components/Page/types.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -1
- package/dist/components/ProgressBar/styles.css +1 -1
- package/dist/components/ProgressBar/types.d.ts +2 -7
- package/dist/components/ProgressBar/types.d.ts.map +1 -1
- package/dist/components/Status/Status.vue.d.ts +2 -2
- 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 +0 -1
- package/dist/components/Status/types.d.ts +4 -5
- package/dist/components/Status/types.d.ts.map +1 -1
- package/dist/components/Tag/Tag.vue.d.ts +2 -2
- package/dist/components/Tag/index.d.ts +1 -1
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/styles.css +0 -1
- package/dist/components/Tag/types.d.ts +4 -5
- package/dist/components/Tag/types.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.vue.d.ts.map +1 -1
- package/dist/components/Timeline/index.d.ts +1 -1
- package/dist/components/Timeline/index.d.ts.map +1 -1
- package/dist/components/Timeline/styles.css +2 -4
- package/dist/components/Timeline/types.d.ts +3 -3
- package/dist/components/Timeline/types.d.ts.map +1 -1
- package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/components/Toast/index.d.ts +1 -1
- package/dist/components/Toast/index.d.ts.map +1 -1
- package/dist/components/Toast/styles.css +1 -3
- package/dist/components/Toast/toast.d.ts +4 -0
- package/dist/components/Toast/toast.d.ts.map +1 -1
- package/dist/components/Toast/types.d.ts +5 -5
- package/dist/components/Toast/types.d.ts.map +1 -1
- package/dist/components/Toast/useNotification.d.ts +3 -2
- package/dist/components/Toast/useNotification.d.ts.map +1 -1
- package/dist/{config-CB_TiIvg.js → config-BEpyhJi3.js} +1 -1
- package/dist/config-provider/index.js +1 -1
- package/dist/confirm-dialog/index.js +54 -57
- package/dist/confirm-dialog/style.css +2 -3
- package/dist/confirm-popup/index.js +5 -5
- package/dist/context-menu/index.js +5 -5
- package/dist/data-view/index.js +3 -3
- package/dist/date-picker/index.js +1 -1
- package/dist/descriptions/index.js +1 -1
- package/dist/dialog/index.js +95 -98
- package/dist/dialog/style.css +2 -3
- package/dist/dock/index.js +2 -2
- package/dist/drawer/index.js +4 -4
- package/dist/dropdown/index.js +6 -6
- package/dist/empty/index.js +1 -1
- package/dist/fieldset/index.js +1 -1
- package/dist/file-upload/index.js +2 -2
- package/dist/flex/index.js +1 -1
- package/dist/form/index.js +2 -2
- package/dist/gallery/index.js +2 -2
- package/dist/icon/index.js +1 -1
- package/dist/{icon-COrt_N8A.js → icon-H8prbteT.js} +1 -1
- package/dist/image/index.js +2 -2
- package/dist/index.d.ts +11 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3013 -3025
- package/dist/input/index.js +1 -1
- package/dist/input-color/index.js +2 -2
- package/dist/input-number/index.js +3 -3
- package/dist/input-otp/index.js +2 -2
- package/dist/input-password/index.js +4 -4
- package/dist/input-tags/index.js +3 -3
- package/dist/layout/index.js +2 -2
- package/dist/list/index.js +4 -4
- package/dist/listbox/index.js +2 -2
- package/dist/loading/index.js +1 -1
- package/dist/{locale-CR2PIaxt.js → locale-CZddM-tH.js} +1 -1
- package/dist/mega-menu/index.js +5 -5
- package/dist/mentions/index.js +4 -4
- package/dist/menu/index.js +6 -6
- package/dist/menubar/index.js +5 -5
- package/dist/message/index.js +116 -117
- package/dist/message/style.css +3 -7
- package/dist/order-list/index.js +2 -2
- package/dist/page/index.js +8 -7
- package/dist/page/style.css +2 -2
- package/dist/pagination/index.js +1 -1
- package/dist/panel/index.js +3 -3
- package/dist/pick-list/index.js +2 -2
- package/dist/popover/index.js +1 -1
- package/dist/progress-bar/index.js +33 -34
- package/dist/progress-bar/style.css +1 -1
- package/dist/progress-spinner/index.js +1 -1
- package/dist/qr-code/index.js +4 -4
- package/dist/radio/index.js +1 -1
- package/dist/rating/index.js +3 -3
- package/dist/result/index.js +2 -2
- package/dist/scroll-top/index.js +3 -3
- package/dist/segmented/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select-button/index.js +1 -1
- package/dist/shared/types.d.ts +7 -20
- package/dist/shared/types.d.ts.map +1 -1
- package/dist/sidebar/index.js +3 -3
- package/dist/slider/index.js +2 -2
- package/dist/space/index.js +1 -1
- package/dist/speed-dial/index.js +5 -5
- package/dist/split-button/index.js +5 -5
- package/dist/splitter/index.js +1 -1
- package/dist/status/index.js +30 -31
- package/dist/status/style.css +0 -1
- package/dist/stepper/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/index.js +11 -11
- package/dist/tabs/index.js +2 -2
- package/dist/tag/index.js +52 -52
- package/dist/tag/style.css +0 -1
- package/dist/terminal/index.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/tiered-menu/index.js +4 -4
- package/dist/time-picker/index.js +1 -1
- package/dist/timeline/index.js +67 -72
- package/dist/timeline/style.css +2 -4
- package/dist/toast/index.js +135 -136
- package/dist/toast/style.css +1 -3
- package/dist/toggle-button/index.js +3 -3
- package/dist/tooltip/index.js +1 -1
- package/dist/tour/index.js +4 -4
- package/dist/tree/index.js +3 -3
- package/dist/tree-select/index.js +5 -5
- package/dist/{types-DGuu4Eg4.js → types-DBQfGctj.js} +1 -4
- package/dist/typography/index.js +3 -3
- package/dist/{useMotionTransition-D8JOR3ih.js → useMotionTransition-DqL_SEML.js} +1 -1
- package/package.json +1 -1
package/dist/toast/index.js
CHANGED
|
@@ -1,101 +1,100 @@
|
|
|
1
1
|
import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
2
|
import { n as t } from "../overlay-oR-5MDuE.js";
|
|
3
|
-
import { t as n } from "../useMotionTransition-
|
|
4
|
-
import { t as r } from "../
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { l } from "../
|
|
10
|
-
import { n as u, t as ee } from "../locale-CR2PIaxt.js";
|
|
3
|
+
import { t as n } from "../useMotionTransition-DqL_SEML.js";
|
|
4
|
+
import { t as r } from "../Icon-CmHjx7W8.js";
|
|
5
|
+
import { n as i, r as a } from "../content-h8POj44-.js";
|
|
6
|
+
import { t as o } from "../Renderable-DHU4Jcfw.js";
|
|
7
|
+
import { n as s } from "../overlayHost-78CGtMgR.js";
|
|
8
|
+
import { l as c } from "../config-BEpyhJi3.js";
|
|
9
|
+
import { n as l, t as u } from "../locale-CZddM-tH.js";
|
|
11
10
|
import "./style.js";
|
|
12
|
-
import { Fragment as
|
|
11
|
+
import { Fragment as ee, Teleport as d, TransitionGroup as te, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as _, defineComponent as v, h as y, mergeProps as b, normalizeClass as x, onBeforeUnmount as S, onMounted as ne, openBlock as C, reactive as w, renderList as re, unref as T, useAttrs as E, watch as D, withCtx as O } from "vue";
|
|
13
12
|
//#region src/components/Toast/toastState.ts
|
|
14
|
-
var
|
|
13
|
+
var k = w({
|
|
15
14
|
messages: [],
|
|
16
15
|
position: "top-right",
|
|
17
16
|
max: void 0,
|
|
18
17
|
dedupe: !0
|
|
19
|
-
}),
|
|
20
|
-
function
|
|
21
|
-
|
|
18
|
+
}), A = null, j = 0, M = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map();
|
|
19
|
+
function F(e) {
|
|
20
|
+
A = e;
|
|
22
21
|
}
|
|
23
22
|
function ie() {
|
|
24
|
-
|
|
23
|
+
j += 1, A &&= (A.unmount(), null);
|
|
25
24
|
}
|
|
26
25
|
function ae() {
|
|
27
|
-
|
|
26
|
+
j = Math.max(0, j - 1);
|
|
28
27
|
}
|
|
29
|
-
function
|
|
30
|
-
return `${
|
|
28
|
+
function I(e, t) {
|
|
29
|
+
return `${a(e)}::${a(t ?? "")}`;
|
|
31
30
|
}
|
|
32
|
-
function
|
|
33
|
-
let t =
|
|
34
|
-
t != null && clearTimeout(t),
|
|
31
|
+
function L(e) {
|
|
32
|
+
let t = M.get(e);
|
|
33
|
+
t != null && clearTimeout(t), M.delete(e), N.delete(e), P.delete(e);
|
|
35
34
|
}
|
|
36
|
-
function
|
|
37
|
-
let t =
|
|
35
|
+
function R(e) {
|
|
36
|
+
let t = M.get(e);
|
|
38
37
|
if (t == null) return;
|
|
39
|
-
clearTimeout(t),
|
|
40
|
-
let n =
|
|
41
|
-
n != null && r != null &&
|
|
38
|
+
clearTimeout(t), M.delete(e);
|
|
39
|
+
let n = P.get(e), r = N.get(e);
|
|
40
|
+
n != null && r != null && N.set(e, Math.max(0, r - (Date.now() - n)));
|
|
42
41
|
}
|
|
43
|
-
function
|
|
44
|
-
let n =
|
|
45
|
-
n == null || n <= 0 || (
|
|
42
|
+
function z(e, t) {
|
|
43
|
+
let n = N.get(e);
|
|
44
|
+
n == null || n <= 0 || (P.set(e, Date.now()), M.set(e, setTimeout(() => {
|
|
46
45
|
t(e);
|
|
47
46
|
}, n)));
|
|
48
47
|
}
|
|
49
|
-
function
|
|
50
|
-
|
|
48
|
+
function B(e, t) {
|
|
49
|
+
L(e.id), !(e.life == null || e.life <= 0) && (N.set(e.id, e.life), P.set(e.id, Date.now()), M.set(e.id, setTimeout(() => {
|
|
51
50
|
t(e.id);
|
|
52
51
|
}, e.life)));
|
|
53
52
|
}
|
|
54
|
-
function
|
|
53
|
+
function V(e) {
|
|
55
54
|
if (e == null) {
|
|
56
|
-
|
|
55
|
+
H();
|
|
57
56
|
return;
|
|
58
57
|
}
|
|
59
|
-
|
|
58
|
+
L(e), k.messages = k.messages.filter((t) => t.id !== e), G(e);
|
|
60
59
|
}
|
|
61
|
-
function
|
|
62
|
-
for (let e of [...
|
|
63
|
-
let e =
|
|
64
|
-
|
|
65
|
-
for (let t of e)
|
|
60
|
+
function H() {
|
|
61
|
+
for (let e of [...M.keys()]) L(e);
|
|
62
|
+
let e = k.messages.map((e) => e.id);
|
|
63
|
+
k.messages = [];
|
|
64
|
+
for (let t of e) G(t);
|
|
66
65
|
}
|
|
67
|
-
var
|
|
68
|
-
function
|
|
69
|
-
|
|
66
|
+
var U = /* @__PURE__ */ new Map();
|
|
67
|
+
function W(e, t) {
|
|
68
|
+
U.set(e, t);
|
|
70
69
|
}
|
|
71
|
-
function
|
|
72
|
-
let t =
|
|
73
|
-
t && (
|
|
70
|
+
function G(e) {
|
|
71
|
+
let t = U.get(e);
|
|
72
|
+
t && (U.delete(e), t());
|
|
74
73
|
}
|
|
75
|
-
function
|
|
76
|
-
if (!(e == null || e <= 0)) for (;
|
|
77
|
-
let e =
|
|
74
|
+
function K(e) {
|
|
75
|
+
if (!(e == null || e <= 0)) for (; k.messages.length >= e;) {
|
|
76
|
+
let e = k.messages[0];
|
|
78
77
|
if (!e) break;
|
|
79
|
-
|
|
78
|
+
V(e.id);
|
|
80
79
|
}
|
|
81
80
|
}
|
|
82
|
-
function
|
|
83
|
-
if (!(e == null || e <= 0)) for (;
|
|
84
|
-
let e =
|
|
81
|
+
function q(e) {
|
|
82
|
+
if (!(e == null || e <= 0)) for (; k.messages.length > e;) {
|
|
83
|
+
let e = k.messages[0];
|
|
85
84
|
if (!e) break;
|
|
86
|
-
|
|
85
|
+
V(e.id);
|
|
87
86
|
}
|
|
88
87
|
}
|
|
89
|
-
function
|
|
90
|
-
let t =
|
|
91
|
-
return
|
|
88
|
+
function J(e) {
|
|
89
|
+
let t = I(e.summary, e.detail);
|
|
90
|
+
return k.messages.find((e) => I(e.summary, e.detail) === t);
|
|
92
91
|
}
|
|
93
92
|
//#endregion
|
|
94
93
|
//#region src/components/Toast/Toast.vue?vue&type=script&setup=true&lang.ts
|
|
95
|
-
var
|
|
94
|
+
var oe = ["onMouseenter", "onMouseleave"], se = { class: "m-toast__content" }, ce = { class: "m-toast__heading" }, le = { key: 0 }, ue = {
|
|
96
95
|
key: 1,
|
|
97
96
|
class: "m-toast__actions"
|
|
98
|
-
},
|
|
97
|
+
}, de = ["aria-label", "onClick"], Y = /* @__PURE__ */ v({
|
|
99
98
|
inheritAttrs: !1,
|
|
100
99
|
__name: "Toast",
|
|
101
100
|
props: {
|
|
@@ -118,150 +117,150 @@ var se = ["onMouseenter", "onMouseleave"], ce = { class: "m-toast__content" }, l
|
|
|
118
117
|
}
|
|
119
118
|
},
|
|
120
119
|
emits: ["close"],
|
|
121
|
-
setup(
|
|
122
|
-
let
|
|
120
|
+
setup(i, { emit: s }) {
|
|
121
|
+
let v = i, y = s, w = E(), { rootAttrs: A } = e(w, () => v.pt), j = c(), M = l(), N = f(() => t(v, j.value.appendTo)), P = f(() => v.messages === void 0), F = f(() => v.messages ?? k.messages), I = f(() => v.position ?? (P.value ? k.position : "top-right")), { transitionName: L, transitionCss: B } = n({
|
|
123
122
|
role: "toast",
|
|
124
|
-
local: () =>
|
|
123
|
+
local: () => v.transition,
|
|
125
124
|
componentName: "Toast",
|
|
126
125
|
fallback: "slide-fade"
|
|
127
126
|
});
|
|
128
127
|
ne(() => {
|
|
129
|
-
|
|
130
|
-
}),
|
|
131
|
-
|
|
132
|
-
}),
|
|
133
|
-
!
|
|
128
|
+
P.value && !v.auto && ie();
|
|
129
|
+
}), S(() => {
|
|
130
|
+
P.value && !v.auto && ae();
|
|
131
|
+
}), D(() => v.max, (e) => {
|
|
132
|
+
!P.value || e === void 0 || (k.max = e, q(e));
|
|
134
133
|
}, { immediate: !0 });
|
|
134
|
+
function H(e) {
|
|
135
|
+
return `m-toast__message--${e ?? "info"}`;
|
|
136
|
+
}
|
|
135
137
|
function U(e) {
|
|
136
|
-
return
|
|
138
|
+
return u(M.value.closeNamed, { summary: a(e.summary) || "toast" });
|
|
137
139
|
}
|
|
138
140
|
function W(e) {
|
|
139
|
-
|
|
141
|
+
P.value && V(e.id), y("close", e);
|
|
140
142
|
}
|
|
141
143
|
function G(e) {
|
|
142
|
-
|
|
144
|
+
P.value && R(e.id);
|
|
143
145
|
}
|
|
144
146
|
function K(e) {
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
function q(e) {
|
|
148
|
-
F.value && B(e.id, H);
|
|
147
|
+
P.value && z(e.id, V);
|
|
149
148
|
}
|
|
150
|
-
return (e, t) => (
|
|
151
|
-
to:
|
|
152
|
-
disabled:
|
|
153
|
-
}, [
|
|
154
|
-
class: ["m-toast", `m-toast--${
|
|
149
|
+
return (e, t) => (C(), p(d, {
|
|
150
|
+
to: N.value.to,
|
|
151
|
+
disabled: N.value.disabled
|
|
152
|
+
}, [g("div", b(T(A), {
|
|
153
|
+
class: ["m-toast", `m-toast--${I.value}`],
|
|
155
154
|
"aria-live": "polite",
|
|
156
155
|
"aria-atomic": "true"
|
|
157
|
-
}), [
|
|
158
|
-
name:
|
|
159
|
-
css:
|
|
156
|
+
}), [_(te, {
|
|
157
|
+
name: T(L),
|
|
158
|
+
css: T(B)
|
|
160
159
|
}, {
|
|
161
|
-
default:
|
|
160
|
+
default: O(() => [(C(!0), h(ee, null, re(F.value, (e) => (C(), h("article", {
|
|
162
161
|
key: e.id,
|
|
163
|
-
class:
|
|
162
|
+
class: x(["m-toast__message", H(e.type)]),
|
|
164
163
|
role: "status",
|
|
165
|
-
onMouseenter: (t) =>
|
|
166
|
-
onMouseleave: (t) =>
|
|
167
|
-
}, [
|
|
168
|
-
|
|
164
|
+
onMouseenter: (t) => G(e),
|
|
165
|
+
onMouseleave: (t) => K(e)
|
|
166
|
+
}, [g("div", se, [
|
|
167
|
+
g("div", ce, [e.icon ? (C(), p(r, {
|
|
169
168
|
key: 0,
|
|
170
169
|
class: "m-toast__icon",
|
|
171
170
|
name: e.icon,
|
|
172
171
|
size: "sm"
|
|
173
|
-
}, null, 8, ["name"])) :
|
|
174
|
-
e.detail != null && e.detail !== "" ? (
|
|
175
|
-
e.actions != null && e.actions !== "" ? (
|
|
176
|
-
]), e.closable === !1 ?
|
|
172
|
+
}, null, 8, ["name"])) : m("", !0), g("strong", null, [_(T(o), { value: e.summary }, null, 8, ["value"])])]),
|
|
173
|
+
e.detail != null && e.detail !== "" ? (C(), h("p", le, [_(T(o), { value: e.detail }, null, 8, ["value"])])) : m("", !0),
|
|
174
|
+
e.actions != null && e.actions !== "" ? (C(), h("div", ue, [_(T(o), { value: e.actions }, null, 8, ["value"])])) : m("", !0)
|
|
175
|
+
]), e.closable === !1 ? m("", !0) : (C(), h("button", {
|
|
177
176
|
key: 0,
|
|
178
177
|
type: "button",
|
|
179
178
|
class: "m-toast__close",
|
|
180
|
-
"aria-label":
|
|
181
|
-
onClick: (t) =>
|
|
182
|
-
}, [
|
|
179
|
+
"aria-label": U(e),
|
|
180
|
+
onClick: (t) => W(e)
|
|
181
|
+
}, [_(r, {
|
|
183
182
|
name: "close",
|
|
184
183
|
size: "sm"
|
|
185
|
-
})], 8,
|
|
184
|
+
})], 8, de))], 42, oe))), 128))]),
|
|
186
185
|
_: 1
|
|
187
186
|
}, 8, ["name", "css"])], 16)], 8, ["to", "disabled"]));
|
|
188
187
|
}
|
|
189
|
-
}),
|
|
188
|
+
}), fe = 3e3, pe = 0, me = v({
|
|
190
189
|
name: "MToastAutoHost",
|
|
191
190
|
setup() {
|
|
192
|
-
return () =>
|
|
191
|
+
return () => y(Y, { auto: !0 });
|
|
193
192
|
}
|
|
194
193
|
});
|
|
195
|
-
function
|
|
196
|
-
typeof document > "u" ||
|
|
194
|
+
function he() {
|
|
195
|
+
typeof document > "u" || j > 0 || A || F(s(me, "m-toast-host-root"));
|
|
197
196
|
}
|
|
198
|
-
function
|
|
199
|
-
let n =
|
|
200
|
-
return n.position && (
|
|
201
|
-
id: n.id ?? `m-toast-${Date.now()}-${++
|
|
197
|
+
function ge(e, t) {
|
|
198
|
+
let n = i(e) ? e : { summary: e };
|
|
199
|
+
return n.position && (k.position = n.position), {
|
|
200
|
+
id: n.id ?? `m-toast-${Date.now()}-${++pe}`,
|
|
202
201
|
summary: n.summary,
|
|
203
202
|
detail: n.detail,
|
|
204
|
-
|
|
203
|
+
type: t ?? n.type ?? "info",
|
|
205
204
|
closable: n.closable ?? !0,
|
|
206
205
|
icon: n.icon,
|
|
207
206
|
actions: n.actions,
|
|
208
|
-
life: n.life === void 0 ?
|
|
207
|
+
life: n.life === void 0 ? fe : n.life
|
|
209
208
|
};
|
|
210
209
|
}
|
|
211
210
|
function X(e, t) {
|
|
212
|
-
|
|
213
|
-
let n =
|
|
214
|
-
if (n?.onClose &&
|
|
215
|
-
let e =
|
|
211
|
+
he(), K(k.max);
|
|
212
|
+
let n = i(e) ? e : void 0, r = ge(e, t);
|
|
213
|
+
if (n?.onClose && W(r.id, n.onClose), n?.id != null) {
|
|
214
|
+
let e = k.messages.find((e) => e.id === r.id);
|
|
216
215
|
if (e) return Object.assign(e, {
|
|
217
216
|
...r,
|
|
218
217
|
id: e.id
|
|
219
|
-
}), r.life !== void 0 &&
|
|
218
|
+
}), r.life !== void 0 && B(e, V), {
|
|
220
219
|
id: e.id,
|
|
221
|
-
close: () =>
|
|
220
|
+
close: () => V(e.id)
|
|
222
221
|
};
|
|
223
222
|
}
|
|
224
|
-
if (n?.dedupe ??
|
|
225
|
-
let e =
|
|
226
|
-
if (e) return r.life !== void 0 && (e.life = r.life), r.
|
|
223
|
+
if (n?.dedupe ?? k.dedupe ?? !0) {
|
|
224
|
+
let e = J(r);
|
|
225
|
+
if (e) return r.life !== void 0 && (e.life = r.life), r.type !== void 0 && (e.type = r.type), B(e, V), {
|
|
227
226
|
id: e.id,
|
|
228
|
-
close: () =>
|
|
227
|
+
close: () => V(e.id)
|
|
229
228
|
};
|
|
230
229
|
}
|
|
231
|
-
return
|
|
230
|
+
return k.messages = [...k.messages, r], B(r, V), {
|
|
232
231
|
id: r.id,
|
|
233
|
-
close: () =>
|
|
232
|
+
close: () => V(r.id)
|
|
234
233
|
};
|
|
235
234
|
}
|
|
236
235
|
var Z = {
|
|
237
236
|
add: (e) => X(e),
|
|
238
237
|
success: (e) => X(e, "success"),
|
|
239
238
|
info: (e) => X(e, "info"),
|
|
240
|
-
warn: (e) => X(e, "
|
|
241
|
-
warning: (e) => X(e, "
|
|
242
|
-
error: (e) => X(e, "
|
|
239
|
+
warn: (e) => X(e, "warning"),
|
|
240
|
+
warning: (e) => X(e, "warning"),
|
|
241
|
+
error: (e) => X(e, "danger"),
|
|
243
242
|
update(e, t) {
|
|
244
|
-
let n =
|
|
245
|
-
if (n) return Object.assign(n, t), t.life !== void 0 &&
|
|
243
|
+
let n = k.messages.find((t) => t.id === e);
|
|
244
|
+
if (n) return Object.assign(n, t), t.life !== void 0 && B(n, V), {
|
|
246
245
|
id: e,
|
|
247
|
-
close: () =>
|
|
246
|
+
close: () => V(e)
|
|
248
247
|
};
|
|
249
248
|
},
|
|
250
|
-
remove:
|
|
251
|
-
clear:
|
|
252
|
-
close:
|
|
253
|
-
closeAll:
|
|
254
|
-
destroyAll:
|
|
249
|
+
remove: V,
|
|
250
|
+
clear: H,
|
|
251
|
+
close: V,
|
|
252
|
+
closeAll: H,
|
|
253
|
+
destroyAll: H,
|
|
255
254
|
setDefaults(e) {
|
|
256
|
-
e.position && (
|
|
255
|
+
e.position && (k.position = e.position), e.max !== void 0 && (k.max = e.max), e.dedupe !== void 0 && (k.dedupe = e.dedupe);
|
|
257
256
|
}
|
|
258
257
|
};
|
|
259
|
-
function
|
|
258
|
+
function _e() {
|
|
260
259
|
return Z;
|
|
261
260
|
}
|
|
262
261
|
//#endregion
|
|
263
262
|
//#region src/components/Toast/useNotification.ts
|
|
264
|
-
var
|
|
263
|
+
var ve = 4.5, ye = {
|
|
265
264
|
topLeft: "top-left",
|
|
266
265
|
topRight: "top-right",
|
|
267
266
|
bottomLeft: "bottom-left",
|
|
@@ -277,10 +276,10 @@ function Q(e, t) {
|
|
|
277
276
|
detail: e.description,
|
|
278
277
|
actions: e.btn,
|
|
279
278
|
icon: e.icon,
|
|
280
|
-
|
|
279
|
+
type: n,
|
|
281
280
|
closable: e.closable ?? !0,
|
|
282
|
-
life: (e.duration ??
|
|
283
|
-
position: e.placement ?
|
|
281
|
+
life: (e.duration ?? ve) * 1e3,
|
|
282
|
+
position: e.placement ? ye[e.placement] : void 0,
|
|
284
283
|
dedupe: e.key == null,
|
|
285
284
|
onClose: e.onClose
|
|
286
285
|
});
|
|
@@ -291,11 +290,11 @@ function $() {
|
|
|
291
290
|
success: (e) => Q(e, "success"),
|
|
292
291
|
info: (e) => Q(e, "info"),
|
|
293
292
|
warning: (e) => Q(e, "warning"),
|
|
294
|
-
error: (e) => Q(e, "
|
|
293
|
+
error: (e) => Q(e, "danger"),
|
|
295
294
|
close: (e) => Z.close(e),
|
|
296
295
|
destroy: () => Z.clear()
|
|
297
296
|
};
|
|
298
297
|
}
|
|
299
|
-
var
|
|
298
|
+
var be = $();
|
|
300
299
|
//#endregion
|
|
301
|
-
export { Y as MToast,
|
|
300
|
+
export { Y as MToast, be as notification, Z as toast, $ as useNotification, _e as useToast };
|
package/dist/toast/style.css
CHANGED
|
@@ -2016,12 +2016,10 @@
|
|
|
2016
2016
|
border-left-color: var(--m-color-success);
|
|
2017
2017
|
}
|
|
2018
2018
|
|
|
2019
|
-
.m-toast__message--warn,
|
|
2020
2019
|
.m-toast__message--warning {
|
|
2021
|
-
border-left-color: var(--m-color-
|
|
2020
|
+
border-left-color: var(--m-color-warning);
|
|
2022
2021
|
}
|
|
2023
2022
|
|
|
2024
|
-
.m-toast__message--error,
|
|
2025
2023
|
.m-toast__message--danger {
|
|
2026
2024
|
border-left-color: var(--m-color-danger);
|
|
2027
2025
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../Icon-
|
|
2
|
-
import { t } from "../icon-
|
|
3
|
-
import { o as n } from "../config-
|
|
1
|
+
import { t as e } from "../Icon-CmHjx7W8.js";
|
|
2
|
+
import { t } from "../icon-H8prbteT.js";
|
|
3
|
+
import { o as n } from "../config-BEpyhJi3.js";
|
|
4
4
|
import "./style.js";
|
|
5
5
|
import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, renderSlot as d, toDisplayString as f } from "vue";
|
|
6
6
|
//#region src/components/ToggleButton/ToggleButton.vue?vue&type=script&setup=true&lang.ts
|
package/dist/tooltip/index.js
CHANGED
package/dist/tour/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
2
|
import { n as t } from "../overlay-oR-5MDuE.js";
|
|
3
3
|
import { t as ee } from "../overlayPlacement-qwEJPVS4.js";
|
|
4
|
-
import { t as n } from "../Icon-
|
|
5
|
-
import { t as r } from "../Button-
|
|
6
|
-
import { l as te } from "../config-
|
|
7
|
-
import { n as ne } from "../locale-
|
|
4
|
+
import { t as n } from "../Icon-CmHjx7W8.js";
|
|
5
|
+
import { t as r } from "../Button-Bjsth0ct.js";
|
|
6
|
+
import { l as te } from "../config-BEpyhJi3.js";
|
|
7
|
+
import { n as ne } from "../locale-CZddM-tH.js";
|
|
8
8
|
import "./style.js";
|
|
9
9
|
import { Teleport as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as re, openBlock as _, ref as v, toDisplayString as y, unref as b, useAttrs as x, watch as S, withCtx as C } from "vue";
|
|
10
10
|
//#region src/components/Tour/Tour.vue?vue&type=script&setup=true&lang.ts
|
package/dist/tree/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
|
-
import { a as t, t as n } from "../Icon-
|
|
2
|
+
import { a as t, t as n } from "../Icon-CmHjx7W8.js";
|
|
3
3
|
import { t as r } from "../useMenuKeyboard-BedmYE4W.js";
|
|
4
|
-
import { t as i } from "../Checkbox-
|
|
4
|
+
import { t as i } from "../Checkbox-Bo26OGHP.js";
|
|
5
5
|
import { a, c as ee, d as o, f as s, i as c, l, o as u, p as d, r as te, s as ne, t as f } from "../treeQuery-CnHkyYOA.js";
|
|
6
|
-
import { n as re } from "../locale-
|
|
6
|
+
import { n as re } from "../locale-CZddM-tH.js";
|
|
7
7
|
import "./style.js";
|
|
8
8
|
import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createTextVNode as y, defineComponent as b, inject as x, mergeProps as S, nextTick as C, normalizeClass as w, openBlock as T, provide as E, reactive as D, ref as O, renderList as ie, renderSlot as ae, resolveDynamicComponent as oe, toDisplayString as k, unref as A, useAttrs as se, useSlots as ce, watch as j, withModifiers as M } from "vue";
|
|
9
9
|
//#region src/components/Tree/context.ts
|
|
@@ -4,14 +4,14 @@ import { t as r } from "../overlayPlacement-qwEJPVS4.js";
|
|
|
4
4
|
import { t as i } from "../useFieldFeedback-C5qIqYMK.js";
|
|
5
5
|
import { t as ee } from "../useFloatingViewportSync-wLLKIGUA.js";
|
|
6
6
|
import { t as te } from "../useMId-BXFYayPP.js";
|
|
7
|
-
import { t as ne } from "../useMotionTransition-
|
|
8
|
-
import { t as a } from "../Icon-
|
|
7
|
+
import { t as ne } from "../useMotionTransition-DqL_SEML.js";
|
|
8
|
+
import { t as a } from "../Icon-CmHjx7W8.js";
|
|
9
9
|
import { t as re } from "../Scrollbar-DTeJ8P5b.js";
|
|
10
10
|
import { t as ie } from "../useMenuKeyboard-BedmYE4W.js";
|
|
11
|
-
import { t as o } from "../Checkbox-
|
|
11
|
+
import { t as o } from "../Checkbox-Bo26OGHP.js";
|
|
12
12
|
import { a as ae, c as oe, d as se, f as ce, l as s, n as le, p as ue, u as c } from "../treeQuery-CnHkyYOA.js";
|
|
13
|
-
import { l as de, o as fe } from "../config-
|
|
14
|
-
import { n as l } from "../locale-
|
|
13
|
+
import { l as de, o as fe } from "../config-BEpyhJi3.js";
|
|
14
|
+
import { n as l } from "../locale-CZddM-tH.js";
|
|
15
15
|
import "./style.js";
|
|
16
16
|
import { Fragment as u, Teleport as pe, Transition as me, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as he, createVNode as g, defineComponent as _, mergeProps as ge, nextTick as _e, normalizeClass as v, normalizeStyle as ve, onBeforeUnmount as ye, openBlock as y, ref as b, renderList as x, renderSlot as be, resolveDynamicComponent as S, toDisplayString as C, unref as w, useAttrs as xe, useSlots as Se, vModelText as Ce, watch as we, withCtx as T, withDirectives as Te, withModifiers as E } from "vue";
|
|
17
17
|
//#region src/components/TreeSelect/TreeSelectNodeItem.vue?vue&type=script&setup=true&lang.ts
|
package/dist/typography/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
|
-
import { t } from "../Icon-
|
|
2
|
+
import { t } from "../Icon-CmHjx7W8.js";
|
|
3
3
|
import { t as n } from "../vnode-PJWBO7_h.js";
|
|
4
|
-
import { t as r } from "../Textarea-
|
|
5
|
-
import { n as i } from "../locale-
|
|
4
|
+
import { t as r } from "../Textarea-DskjTCcz.js";
|
|
5
|
+
import { n as i } from "../locale-CZddM-tH.js";
|
|
6
6
|
import "./style.js";
|
|
7
7
|
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as _, openBlock as v, ref as y, renderSlot as b, resolveDynamicComponent as x, toDisplayString as S, unref as C, useAttrs as w, useSlots as T, watch as E, withCtx as D, withKeys as O, withModifiers as k } from "vue";
|
|
8
8
|
//#region src/components/Typography/decoration.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "morya-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.3",
|
|
5
5
|
"description": "Open-source Vue 3 component library with design tokens, themes, and interactive docs.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://morya-space.github.io/morya-ui/",
|