golden-logic-ui 1.3.3 → 1.3.5
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.
|
@@ -4,7 +4,7 @@ const P = {
|
|
|
4
4
|
class: "fixed inset-0 z-99999 overflow-y-auto",
|
|
5
5
|
role: "dialog",
|
|
6
6
|
"aria-modal": "true"
|
|
7
|
-
}, T = { class: "flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:p-0" }, Z = { class: "inline-block relative overflow-hidden text-start align-bottom transition-all transform bg-white rounded-lg shadow-xl dark:bg-gray-800 sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, z = { class: "px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, A = { class: "sm:flex sm:items-start" }, E = { class: "mt-3 text-center sm:mt-0 sm:ms-4 sm:text-start" }, F = { class: "text-lg font-medium leading-6" }, O = { class: "mt-2" }, S = { class: "text-sm" }, q = { class: "flex gap-1 px-4 py-3 border-t border-gray-200 rounded-b dark:border-gray-600 sm:px-6 sm:flex-row-reverse" }, I = {
|
|
7
|
+
}, T = { class: "flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:p-0" }, Z = { class: "inline-block relative overflow-hidden text-start align-bottom transition-all transform bg-white rounded-lg shadow-xl dark:bg-gray-800 sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, z = { class: "px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, A = { class: "sm:flex sm:items-start" }, E = { class: "mt-3 text-center sm:mt-0 sm:ms-4 sm:text-start" }, F = { class: "text-lg font-medium leading-6" }, O = { class: "mt-2" }, S = { class: "text-sm whitespace-pre-line" }, q = { class: "flex gap-1 px-4 py-3 border-t border-gray-200 rounded-b dark:border-gray-600 sm:px-6 sm:flex-row-reverse" }, I = {
|
|
8
8
|
__name: "DynamicConfirmation",
|
|
9
9
|
props: {
|
|
10
10
|
is_open: {
|
|
@@ -12,29 +12,29 @@ const P = {
|
|
|
12
12
|
default: !1
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
-
setup(G, { expose:
|
|
16
|
-
const f = t(""), v = t(""), p = t(""), g = t("red"), C = t("Cancel"),
|
|
17
|
-
a.value = s,
|
|
15
|
+
setup(G, { expose: h }) {
|
|
16
|
+
const f = t(""), v = t(""), p = t(""), g = t("red"), C = t("Cancel"), o = t(!1), r = t(!1), d = t(!1), a = t(void 0), x = t(void 0), b = (n = {}) => (f.value = n.title, v.value = n.message, p.value = n.okButton, g.value = n.okButtonType || "red", C.value = n.cancelButton || "Cancel", d.value = !!n.hasLoading, o.value = !0, new Promise((s, l) => {
|
|
17
|
+
a.value = s, x.value = l;
|
|
18
18
|
})), y = () => {
|
|
19
19
|
r.value = !0;
|
|
20
20
|
}, w = () => {
|
|
21
|
-
r.value = !1,
|
|
21
|
+
r.value = !1, o.value = !1, d.value = !1, a.value(!1);
|
|
22
22
|
}, k = () => {
|
|
23
23
|
if (d.value === !0) {
|
|
24
24
|
a.value(!0);
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
o.value = !1, a.value(!0);
|
|
28
28
|
}, B = () => {
|
|
29
|
-
|
|
29
|
+
o.value = !1, a.value(!1);
|
|
30
30
|
};
|
|
31
|
-
return
|
|
31
|
+
return h({
|
|
32
32
|
show: b,
|
|
33
33
|
showLoading: y,
|
|
34
34
|
hideLoading: w
|
|
35
|
-
}), (
|
|
35
|
+
}), (n, s) => {
|
|
36
36
|
const l = L("gl-button");
|
|
37
|
-
return
|
|
37
|
+
return o.value ? (u(), N("div", P, [
|
|
38
38
|
e("div", T, [
|
|
39
39
|
s[1] || (s[1] = e("div", {
|
|
40
40
|
class: "fixed inset-0 transition-opacity bg-gray-500/75",
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "The most popular library of interactive components built with Vuejs && Tailwind CSS",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "1.3.
|
|
6
|
+
"version": "1.3.5",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/mrgiant/GoldenLogicUi.git"
|