@vc-shell/framework 2.0.0-alpha.31 → 2.0.0-alpha.32
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 +6 -0
- package/dist/ai-agent/index.js +2 -2
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-CL6FKSZv.js +4255 -0
- package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-CLNfbXjd.js +21113 -0
- package/dist/chunks/{index-COv5_72w.js → index-D2HGw9DC.js} +5 -7
- package/dist/chunks/{vendor-lodash-es-BwHYzZ39.js → vendor-lodash-es-BB-IQCna.js} +4 -4
- package/dist/chunks/{vendor-vueuse-core-DaNNrqjn.js → vendor-vueuse-core-D4-2M4AW.js} +5 -5
- package/dist/core/blade-navigation/singletons.d.ts +21 -0
- package/dist/core/blade-navigation/singletons.d.ts.map +1 -0
- package/dist/core/blade-navigation/types/index.d.ts +1 -1
- package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/core/composables/useBreadcrumbs/index.d.ts +1 -1
- package/dist/core/composables/useBreadcrumbs/index.d.ts.map +1 -1
- package/dist/core/composables/useDynamicProperties/types.d.ts +30 -30
- package/dist/core/composables/useDynamicProperties/types.d.ts.map +1 -1
- package/dist/core/composables/useExternalProvider/index.d.ts +12 -0
- package/dist/core/composables/useExternalProvider/index.d.ts.map +1 -0
- package/dist/core/composables/usePopup/index.d.ts +3 -5
- package/dist/core/composables/usePopup/index.d.ts.map +1 -1
- package/dist/core/composables/usePopup/keys.d.ts +4 -0
- package/dist/core/composables/usePopup/keys.d.ts.map +1 -0
- package/dist/core/composables/usePopup/preset-registry.d.ts +7 -0
- package/dist/core/composables/usePopup/preset-registry.d.ts.map +1 -0
- package/dist/core/composables/usePopup/singleton.d.ts +6 -0
- package/dist/core/composables/usePopup/singleton.d.ts.map +1 -0
- package/dist/core/composables/usePopup/types.d.ts +22 -0
- package/dist/core/composables/usePopup/types.d.ts.map +1 -0
- package/dist/core/notifications/notification.d.ts +19 -0
- package/dist/core/notifications/notification.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentIframe.vue.d.ts.map +1 -1
- package/dist/core/types/breadcrumbs.d.ts +8 -0
- package/dist/core/types/breadcrumbs.d.ts.map +1 -0
- package/dist/core/types/index.d.ts +1 -12
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +3613 -2504
- package/dist/index.css +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +0 -2
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/shell/_internal/blade-navigation/plugin-v2.d.ts +1 -12
- package/dist/shell/_internal/blade-navigation/plugin-v2.d.ts.map +1 -1
- package/dist/shell/_internal/notifications/components/notification-container/index.d.ts +4 -4
- package/dist/shell/_internal/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shell/_internal/notifications/register-backend.d.ts +6 -0
- package/dist/shell/_internal/notifications/register-backend.d.ts.map +1 -0
- package/dist/shell/_internal/popup/keys.d.ts +1 -3
- package/dist/shell/_internal/popup/keys.d.ts.map +1 -1
- package/dist/shell/_internal/popup/plugin.d.ts +1 -2
- package/dist/shell/_internal/popup/plugin.d.ts.map +1 -1
- package/dist/shell/_internal/popup/register-presets.d.ts +6 -0
- package/dist/shell/_internal/popup/register-presets.d.ts.map +1 -0
- package/dist/shell/_internal/popup/types/index.d.ts +1 -21
- package/dist/shell/_internal/popup/types/index.d.ts.map +1 -1
- package/dist/shell/auth/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts.map +1 -0
- package/dist/shell/auth/ChangePasswordPage/components/change-password/index.d.ts +3 -0
- package/dist/shell/auth/ChangePasswordPage/components/change-password/index.d.ts.map +1 -0
- package/dist/shell/auth/ChangePasswordPage/components/index.d.ts +2 -0
- package/dist/shell/auth/ChangePasswordPage/components/index.d.ts.map +1 -0
- package/dist/shell/auth/ChangePasswordPage/index.d.ts +2 -0
- package/dist/shell/auth/ChangePasswordPage/index.d.ts.map +1 -0
- package/dist/shell/auth/index.d.ts +1 -0
- package/dist/shell/auth/index.d.ts.map +1 -1
- package/dist/shell/auth/sign-in/useExternalProvider.d.ts +2 -11
- package/dist/shell/auth/sign-in/useExternalProvider.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-multivalue/_internal/MultivalueTrigger.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/TableCheckbox.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-data-table/components/VcColumn.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellDefault.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellDefault.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellMoney.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellMoney.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellNumber.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellNumber.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/DynamicCellRenderer.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-data-table/components/cells/DynamicCellRenderer.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/mobile/MobileActionSheet.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-data-table/components/mobile/MobileCellRenderer.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-data-table/components/mobile/MobileCellRenderer.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
- package/dist/ui/index.js +136 -138
- package/dist/ui/types/index.d.ts +1 -7
- package/dist/ui/types/index.d.ts.map +1 -1
- package/dist/ui/utilities/index.d.ts +1 -1
- package/dist/ui/utilities/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-CEHpWiBV.js +0 -6552
- package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-ByeZ_FRv.js +0 -19548
- package/dist/chunks/index-B0X7STCw.js +0 -181
- package/dist/chunks/vc-toast.vue_vue_type_style_index_0_lang-8VHs_4Pe.js +0 -175
- package/dist/shell/pages/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts.map +0 -1
- package/dist/shell/pages/ChangePasswordPage/components/change-password/index.d.ts +0 -3
- package/dist/shell/pages/ChangePasswordPage/components/change-password/index.d.ts.map +0 -1
- package/dist/shell/pages/ChangePasswordPage/components/index.d.ts +0 -2
- package/dist/shell/pages/ChangePasswordPage/components/index.d.ts.map +0 -1
- package/dist/shell/pages/ChangePasswordPage/index.d.ts +0 -2
- package/dist/shell/pages/ChangePasswordPage/index.d.ts.map +0 -1
- package/dist/shell/pages/index.d.ts +0 -2
- package/dist/shell/pages/index.d.ts.map +0 -1
- package/dist/ui/utilities/vueUtils.d.ts +0 -34
- package/dist/ui/utilities/vueUtils.d.ts.map +0 -1
- /package/dist/shell/{pages → auth}/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts +0 -0
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { _ } from "./vc-toast.vue_vue_type_style_index_0_lang-8VHs_4Pe.js";
|
|
2
|
-
import { N as E, d as F } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-CEHpWiBV.js";
|
|
3
|
-
import { defineComponent as L, inject as G, computed as T, ref as w, reactive as K, h as a, toRaw as V } from "vue";
|
|
4
|
-
const f = 14, H = 3, Q = L({
|
|
5
|
-
name: "NotificationContainer",
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
props: {
|
|
8
|
-
pauseOnHover: {
|
|
9
|
-
type: Boolean,
|
|
10
|
-
required: !1,
|
|
11
|
-
default: !0
|
|
12
|
-
},
|
|
13
|
-
timeout: {
|
|
14
|
-
type: [Number, Boolean],
|
|
15
|
-
required: !1,
|
|
16
|
-
default: 3e3
|
|
17
|
-
},
|
|
18
|
-
content: {
|
|
19
|
-
type: [String, Object],
|
|
20
|
-
required: !1,
|
|
21
|
-
default: ""
|
|
22
|
-
},
|
|
23
|
-
notificationId: {
|
|
24
|
-
type: [String, Number],
|
|
25
|
-
required: !1,
|
|
26
|
-
default: ""
|
|
27
|
-
},
|
|
28
|
-
updateId: {
|
|
29
|
-
type: [String, Number],
|
|
30
|
-
required: !1,
|
|
31
|
-
default: ""
|
|
32
|
-
},
|
|
33
|
-
type: {
|
|
34
|
-
type: String,
|
|
35
|
-
required: !1,
|
|
36
|
-
default: "default"
|
|
37
|
-
},
|
|
38
|
-
onOpen: {
|
|
39
|
-
type: Function,
|
|
40
|
-
required: !1,
|
|
41
|
-
default: void 0
|
|
42
|
-
},
|
|
43
|
-
onClose: {
|
|
44
|
-
type: Function,
|
|
45
|
-
required: !1,
|
|
46
|
-
default: void 0
|
|
47
|
-
},
|
|
48
|
-
payload: {
|
|
49
|
-
type: [String, Object],
|
|
50
|
-
required: !1,
|
|
51
|
-
default: () => ({})
|
|
52
|
-
},
|
|
53
|
-
position: {
|
|
54
|
-
type: String,
|
|
55
|
-
required: !1,
|
|
56
|
-
default: "top-center"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
setup(p) {
|
|
60
|
-
const { notificationContainers: N, actions: y } = G(E), A = T(() => N[p.position].value || []), h = w(!1), g = w(!1);
|
|
61
|
-
let l = null;
|
|
62
|
-
function M() {
|
|
63
|
-
l && (clearTimeout(l), l = null), h.value = !0;
|
|
64
|
-
}
|
|
65
|
-
function O() {
|
|
66
|
-
g.value || (l = setTimeout(() => {
|
|
67
|
-
h.value = !1, l = null;
|
|
68
|
-
}, 200));
|
|
69
|
-
}
|
|
70
|
-
const o = K(/* @__PURE__ */ new Map());
|
|
71
|
-
function $(t, e) {
|
|
72
|
-
const i = Math.round(e);
|
|
73
|
-
o.get(t) !== i && o.set(t, i);
|
|
74
|
-
}
|
|
75
|
-
function j(t) {
|
|
76
|
-
return typeof t == "object" && (!!t?.render || !!t?.setup);
|
|
77
|
-
}
|
|
78
|
-
function k(t) {
|
|
79
|
-
t && (o.delete(t), y.remove(t));
|
|
80
|
-
}
|
|
81
|
-
function B() {
|
|
82
|
-
y.clear(), o.clear();
|
|
83
|
-
}
|
|
84
|
-
const x = T(() => (p.position || "top-center").startsWith("top"));
|
|
85
|
-
return () => {
|
|
86
|
-
const t = A.value, e = t.length, i = h.value || e <= 1, P = e > 1, S = e > 0 ? t[e - 1].notificationId : void 0, C = S !== void 0 && o.get(S) || 0, R = t.map((n, r) => {
|
|
87
|
-
const s = e - 1 - r;
|
|
88
|
-
let d = 0;
|
|
89
|
-
for (let m = r + 1; m < e; m++) {
|
|
90
|
-
const q = t[m].notificationId;
|
|
91
|
-
q !== void 0 && (d += o.get(q) || 0);
|
|
92
|
-
}
|
|
93
|
-
const c = s * f + d, u = n.notificationId !== void 0 && o.get(n.notificationId) || 0, z = {
|
|
94
|
-
"--toasts-before": s,
|
|
95
|
-
"--z-index": e - s,
|
|
96
|
-
"--offset": `${c}px`,
|
|
97
|
-
"--initial-height": u ? `${u}px` : "auto"
|
|
98
|
-
}, b = {
|
|
99
|
-
...n,
|
|
100
|
-
key: n.notificationId,
|
|
101
|
-
onClose: k,
|
|
102
|
-
onReportHeight: $,
|
|
103
|
-
toastIndex: s,
|
|
104
|
-
toastsCount: e,
|
|
105
|
-
expanded: i,
|
|
106
|
-
visibleToasts: H,
|
|
107
|
-
style: z
|
|
108
|
-
};
|
|
109
|
-
return n.content && j(n.content) ? a(_, {
|
|
110
|
-
...b,
|
|
111
|
-
content: a(V(n.content))
|
|
112
|
-
}) : a(_, b);
|
|
113
|
-
});
|
|
114
|
-
let I = null;
|
|
115
|
-
P && (I = a(
|
|
116
|
-
"div",
|
|
117
|
-
{
|
|
118
|
-
class: "notification__clear-all",
|
|
119
|
-
style: {
|
|
120
|
-
position: "absolute",
|
|
121
|
-
[x.value ? "top" : "bottom"]: "0",
|
|
122
|
-
left: "var(--width, 356px)",
|
|
123
|
-
"margin-left": "8px",
|
|
124
|
-
opacity: i ? "1" : "0",
|
|
125
|
-
"pointer-events": i ? "auto" : "none",
|
|
126
|
-
transition: "opacity 200ms ease"
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
[
|
|
130
|
-
a(
|
|
131
|
-
"button",
|
|
132
|
-
{
|
|
133
|
-
type: "button",
|
|
134
|
-
onClick: B
|
|
135
|
-
},
|
|
136
|
-
[a(F, { icon: "lucide-x", size: "xs", "aria-hidden": "true" }), "Clear all"]
|
|
137
|
-
)
|
|
138
|
-
]
|
|
139
|
-
));
|
|
140
|
-
let v;
|
|
141
|
-
if (i && e > 1) {
|
|
142
|
-
const n = e - 1;
|
|
143
|
-
let r = 0;
|
|
144
|
-
for (let c = 1; c < e; c++) {
|
|
145
|
-
const u = t[c].notificationId;
|
|
146
|
-
r += u !== void 0 && o.get(u) || 0;
|
|
147
|
-
}
|
|
148
|
-
const s = n * f + r, d = t[0].notificationId !== void 0 && o.get(t[0].notificationId) || 0;
|
|
149
|
-
v = s + d;
|
|
150
|
-
} else
|
|
151
|
-
v = C + Math.min(e - 1, H - 1) * f;
|
|
152
|
-
return a(
|
|
153
|
-
"ol",
|
|
154
|
-
{
|
|
155
|
-
class: "notification__toast-group",
|
|
156
|
-
"data-expanded": String(i),
|
|
157
|
-
"data-position": p.position || "top-center",
|
|
158
|
-
"data-y-position": x.value ? "top" : "bottom",
|
|
159
|
-
style: {
|
|
160
|
-
"--front-toast-height": `${C}px`,
|
|
161
|
-
"--gap": `${f}px`,
|
|
162
|
-
width: "var(--width, 356px)",
|
|
163
|
-
height: `${v}px`
|
|
164
|
-
},
|
|
165
|
-
onMouseenter: M,
|
|
166
|
-
onMouseleave: O,
|
|
167
|
-
onPointerdown: () => {
|
|
168
|
-
g.value = !0;
|
|
169
|
-
},
|
|
170
|
-
onPointerup: () => {
|
|
171
|
-
g.value = !1;
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
[...R, I]
|
|
175
|
-
);
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
export {
|
|
180
|
-
Q as default
|
|
181
|
-
};
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { defineComponent as q, toRefs as K, ref as s, computed as g, watch as B, onMounted as L, onBeforeUnmount as j, openBlock as y, createElementBlock as b, normalizeClass as G, createElementVNode as C, createVNode as O, unref as S, normalizeStyle as J, toDisplayString as Q, createBlock as Z, resolveDynamicComponent as ee, withKeys as te, withModifiers as oe } from "vue";
|
|
2
|
-
import { d as k } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-CEHpWiBV.js";
|
|
3
|
-
const ne = ["id", "data-mounted", "data-removed", "data-y-position", "data-front", "data-expanded", "data-visible", "data-swiping", "data-swiped-out", "role"], ie = { class: "vc-notification__content-wrapper" }, ae = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "vc-notification__content"
|
|
6
|
-
}, se = { key: 1 }, D = 200, le = 45, ce = /* @__PURE__ */ q({
|
|
7
|
-
__name: "vc-toast",
|
|
8
|
-
props: {
|
|
9
|
-
content: { type: [String, Object, Function] },
|
|
10
|
-
notificationId: {},
|
|
11
|
-
updateId: {},
|
|
12
|
-
type: {},
|
|
13
|
-
timeout: { type: [Number, Boolean] },
|
|
14
|
-
pauseOnHover: { type: Boolean },
|
|
15
|
-
limit: {},
|
|
16
|
-
position: {},
|
|
17
|
-
dismissing: { type: Boolean },
|
|
18
|
-
toastIndex: {},
|
|
19
|
-
toastsCount: {},
|
|
20
|
-
expanded: { type: Boolean },
|
|
21
|
-
visibleToasts: {},
|
|
22
|
-
onReportHeight: { type: Function }
|
|
23
|
-
},
|
|
24
|
-
emits: ["close"],
|
|
25
|
-
setup(a, { emit: H }) {
|
|
26
|
-
const x = H, t = a, I = {
|
|
27
|
-
default: { icon: "lucide-info", color: "var(--notification-info)" },
|
|
28
|
-
success: { icon: "lucide-check-circle", color: "var(--notification-success)" },
|
|
29
|
-
error: { icon: "lucide-alert-circle", color: "var(--notification-error)" },
|
|
30
|
-
warning: { icon: "lucide-alert-triangle", color: "var(--notification-warning)" }
|
|
31
|
-
}, { timeout: R } = K(t), i = s(null), P = s(!1), u = s(!1), E = g(() => (t.position || "top-center").startsWith("top") ? "top" : "bottom"), F = g(() => (t.toastIndex ?? 0) === 0), z = g(() => (t.toastIndex ?? 0) < (t.visibleToasts ?? 3)), l = s(null);
|
|
32
|
-
function f() {
|
|
33
|
-
u.value || (u.value = !0, l.value?.clear(), setTimeout(() => {
|
|
34
|
-
x("close", t.notificationId);
|
|
35
|
-
}, D));
|
|
36
|
-
}
|
|
37
|
-
B(
|
|
38
|
-
() => t.dismissing,
|
|
39
|
-
(e) => {
|
|
40
|
-
e && f();
|
|
41
|
-
}
|
|
42
|
-
), B(
|
|
43
|
-
R,
|
|
44
|
-
(e) => {
|
|
45
|
-
e && (l.value = N(() => f(), t.timeout), l.value.start());
|
|
46
|
-
},
|
|
47
|
-
{ immediate: !0 }
|
|
48
|
-
);
|
|
49
|
-
const w = s(null);
|
|
50
|
-
function M() {
|
|
51
|
-
if (i.value && t.notificationId !== void 0 && !u.value) {
|
|
52
|
-
const e = i.value, o = e.style.height;
|
|
53
|
-
e.style.height = "auto";
|
|
54
|
-
const n = e.getBoundingClientRect().height;
|
|
55
|
-
e.style.height = o, t.onReportHeight?.(t.notificationId, n);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
L(() => {
|
|
59
|
-
requestAnimationFrame(() => {
|
|
60
|
-
requestAnimationFrame(() => {
|
|
61
|
-
P.value = !0, M();
|
|
62
|
-
});
|
|
63
|
-
}), i.value && (w.value = new ResizeObserver(() => M()), w.value.observe(i.value));
|
|
64
|
-
});
|
|
65
|
-
function N(e, o) {
|
|
66
|
-
let n, m, v = o;
|
|
67
|
-
function h() {
|
|
68
|
-
window.clearTimeout(n), v -= Date.now() - m;
|
|
69
|
-
}
|
|
70
|
-
function _() {
|
|
71
|
-
m = Date.now(), window.clearTimeout(n), n = window.setTimeout(e, v);
|
|
72
|
-
}
|
|
73
|
-
function A() {
|
|
74
|
-
v = o, _();
|
|
75
|
-
}
|
|
76
|
-
function W() {
|
|
77
|
-
window.clearTimeout(n);
|
|
78
|
-
}
|
|
79
|
-
return { pause: h, resume: _, start: A, clear: W };
|
|
80
|
-
}
|
|
81
|
-
j(() => {
|
|
82
|
-
l.value?.clear(), w.value?.disconnect();
|
|
83
|
-
});
|
|
84
|
-
function X() {
|
|
85
|
-
t.timeout && t.pauseOnHover !== !1 && l.value?.pause();
|
|
86
|
-
}
|
|
87
|
-
function U() {
|
|
88
|
-
t.timeout && t.pauseOnHover !== !1 && l.value?.resume();
|
|
89
|
-
}
|
|
90
|
-
const r = s(0), c = s(0), d = s(!1), p = s(!1), T = s(0);
|
|
91
|
-
function V(e) {
|
|
92
|
-
if (u.value || p.value || e.target?.closest(".vc-notification__dismiss-button")) return;
|
|
93
|
-
r.value = e.clientX, c.value = e.clientY, T.value = Date.now(), d.value = !1;
|
|
94
|
-
const o = i.value;
|
|
95
|
-
o && o.setPointerCapture(e.pointerId);
|
|
96
|
-
}
|
|
97
|
-
function Y(e) {
|
|
98
|
-
if (u.value || p.value || r.value === 0 && c.value === 0) return;
|
|
99
|
-
const o = e.clientX - r.value, n = e.clientY - c.value;
|
|
100
|
-
if (!d.value)
|
|
101
|
-
if (Math.abs(o) > 1 && Math.abs(o) > Math.abs(n))
|
|
102
|
-
d.value = !0, l.value?.pause();
|
|
103
|
-
else if (Math.abs(n) > 1) {
|
|
104
|
-
r.value = 0, c.value = 0;
|
|
105
|
-
return;
|
|
106
|
-
} else
|
|
107
|
-
return;
|
|
108
|
-
i.value?.style.setProperty("--swipe-amount-x", `${o}px`);
|
|
109
|
-
}
|
|
110
|
-
function $(e) {
|
|
111
|
-
const o = i.value;
|
|
112
|
-
if (o && o.hasPointerCapture(e.pointerId) && o.releasePointerCapture(e.pointerId), !d.value) {
|
|
113
|
-
i.value?.style.setProperty("--swipe-amount-x", "0px"), r.value = 0, c.value = 0;
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
const n = parseFloat(i.value?.style.getPropertyValue("--swipe-amount-x")?.replace("px", "") || "0"), m = Date.now() - T.value, v = Math.abs(n) / m;
|
|
117
|
-
if (Math.abs(n) >= le || v > 0.11) {
|
|
118
|
-
u.value = !0, l.value?.clear(), p.value = !0;
|
|
119
|
-
const h = n > 0 ? 1 : -1;
|
|
120
|
-
i.value?.style.setProperty("--swipe-amount-x", `${h * window.innerWidth}px`), setTimeout(() => x("close", t.notificationId), D);
|
|
121
|
-
} else
|
|
122
|
-
i.value?.style.setProperty("--swipe-amount-x", "0px"), l.value?.resume();
|
|
123
|
-
d.value = !1, r.value = 0, c.value = 0;
|
|
124
|
-
}
|
|
125
|
-
return (e, o) => (y(), b("div", {
|
|
126
|
-
id: String(a.notificationId),
|
|
127
|
-
ref_key: "toastRef",
|
|
128
|
-
ref: i,
|
|
129
|
-
class: G(["vc-notification", [`vc-notification--${a.type || "default"}`]]),
|
|
130
|
-
"data-mounted": P.value,
|
|
131
|
-
"data-removed": u.value,
|
|
132
|
-
"data-y-position": E.value,
|
|
133
|
-
"data-front": F.value,
|
|
134
|
-
"data-expanded": a.expanded ?? !0,
|
|
135
|
-
"data-visible": z.value,
|
|
136
|
-
"data-swiping": d.value,
|
|
137
|
-
"data-swiped-out": p.value,
|
|
138
|
-
role: a.type === "error" ? "alert" : "status",
|
|
139
|
-
onMouseenter: X,
|
|
140
|
-
onMouseleave: U,
|
|
141
|
-
onPointerdown: V,
|
|
142
|
-
onPointermove: Y,
|
|
143
|
-
onPointerup: $
|
|
144
|
-
}, [
|
|
145
|
-
C("div", ie, [
|
|
146
|
-
O(S(k), {
|
|
147
|
-
icon: I[a.type ?? "default"]?.icon,
|
|
148
|
-
style: J({ color: I[a.type ?? "default"]?.color }),
|
|
149
|
-
size: "l",
|
|
150
|
-
class: "vc-notification__icon",
|
|
151
|
-
"aria-hidden": "true"
|
|
152
|
-
}, null, 8, ["icon", "style"]),
|
|
153
|
-
typeof a.content == "string" ? (y(), b("div", ae, Q(a.content), 1)) : (y(), b("div", se, [
|
|
154
|
-
(y(), Z(ee(a.content)))
|
|
155
|
-
]))
|
|
156
|
-
]),
|
|
157
|
-
C("button", {
|
|
158
|
-
type: "button",
|
|
159
|
-
class: "vc-notification__dismiss-button",
|
|
160
|
-
"aria-label": "Dismiss notification",
|
|
161
|
-
onClick: oe(f, ["stop"]),
|
|
162
|
-
onKeydown: te(f, ["escape"])
|
|
163
|
-
}, [
|
|
164
|
-
O(S(k), {
|
|
165
|
-
icon: "lucide-x",
|
|
166
|
-
size: "s",
|
|
167
|
-
"aria-hidden": "true"
|
|
168
|
-
})
|
|
169
|
-
], 32)
|
|
170
|
-
], 42, ne));
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
export {
|
|
174
|
-
ce as _
|
|
175
|
-
};
|
package/dist/shell/pages/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChangePassword.vue.d.ts","sourceRoot":"","sources":["../../../../../../shell/pages/ChangePasswordPage/components/change-password/ChangePassword.vue"],"names":[],"mappings":"AAsNA,MAAM,WAAW,KAAK;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAoaD,QAAA,MAAM,YAAY,sRAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../shell/pages/ChangePasswordPage/components/change-password/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,+EAA+E,CAAC;AAE5G,eAAO,MAAM,kBAAkB,EAAsB,OAAO,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../shell/pages/ChangePasswordPage/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,4DAA4D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../shell/pages/ChangePasswordPage/index.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../shell/pages/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ComponentPublicInstance, ComputedOptions, MethodOptions } from "vue";
|
|
2
|
-
type RemoveOnVnodePrefix<T> = {
|
|
3
|
-
[K in keyof T as K extends `onVnode${string}` ? never : K extends `on${infer Event}` ? Uncapitalize<`on${Event}`> : K]: T[K];
|
|
4
|
-
};
|
|
5
|
-
type EmitsExtractor<T> = RemoveOnVnodePrefix<Pick<T, Extract<keyof T, `on${string}`>>>;
|
|
6
|
-
export type ComponentProps<T> = T extends new () => {
|
|
7
|
-
$props: infer P;
|
|
8
|
-
} ? NonNullable<P> : T extends (props: infer P, ...args: any) => any ? P : {};
|
|
9
|
-
export type ComponentSlots<T> = T extends (...args: any) => any ? ReturnType<T> extends {
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
__ctx?: {
|
|
12
|
-
[x: string]: any;
|
|
13
|
-
slots: infer Slots;
|
|
14
|
-
};
|
|
15
|
-
} ? NonNullable<Slots> : {} : T extends new () => {
|
|
16
|
-
$slots: infer S;
|
|
17
|
-
} ? NonNullable<S> : {};
|
|
18
|
-
export type ComponentEmit<T> = T extends (...args: any) => any ? ReturnType<T> extends {
|
|
19
|
-
[x: string]: any;
|
|
20
|
-
__ctx?: {
|
|
21
|
-
[x: string]: any;
|
|
22
|
-
props: infer Props;
|
|
23
|
-
};
|
|
24
|
-
} ? EmitsExtractor<Props> : {} : T extends new () => {
|
|
25
|
-
$props: infer Props;
|
|
26
|
-
} ? EmitsExtractor<Props> : never;
|
|
27
|
-
export type ComponentPublicInstanceConstructor<T extends ComponentPublicInstance<Props, RawBindings, D, C, M> = ComponentPublicInstance<any>, Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = {
|
|
28
|
-
__isFragment?: never;
|
|
29
|
-
__isTeleport?: never;
|
|
30
|
-
__isSuspense?: never;
|
|
31
|
-
new (...args: any[]): T;
|
|
32
|
-
};
|
|
33
|
-
export {};
|
|
34
|
-
//# sourceMappingURL=vueUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":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