golden-logic-ui 1.3.2 → 1.3.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.
@@ -1,10 +1,10 @@
1
- import { ref as t, resolveComponent as B, createElementBlock as L, createCommentVNode as N, openBlock as u, createElementVNode as e, toDisplayString as i, createBlock as h, createVNode as V, withCtx as c, createTextVNode as m, resolveDynamicComponent as j, normalizeClass as D } from "vue";
2
- const M = {
1
+ import { ref as t, resolveComponent as L, createElementBlock as N, createCommentVNode as V, openBlock as u, createElementVNode as e, toDisplayString as i, createBlock as _, createVNode as j, withCtx as c, createTextVNode as m, resolveDynamicComponent as D, normalizeClass as M } from "vue";
2
+ const P = {
3
3
  key: 0,
4
4
  class: "fixed inset-0 z-99999 overflow-y-auto",
5
5
  role: "dialog",
6
6
  "aria-modal": "true"
7
- }, P = { 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-left 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:ml-4 sm:text-left" }, F = { class: "text-lg font-medium leading-6" }, O = { class: "mt-2" }, S = { class: "text-sm" }, T = { 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" }, H = {
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 = {
8
8
  __name: "DynamicConfirmation",
9
9
  props: {
10
10
  is_open: {
@@ -12,35 +12,35 @@ const M = {
12
12
  default: !1
13
13
  }
14
14
  },
15
- setup(q, { expose: x }) {
16
- const f = t(""), v = t(""), g = t(""), p = t("Cancel"), o = t(!1), r = t(!1), d = t(!1), l = t(void 0), C = t(void 0), _ = (s = {}) => (f.value = s.title, v.value = s.message, g.value = s.okButton, s.cancelButton && (p.value = s.cancelButton), s.hasLoading && (d.value = s.hasLoading), o.value = !0, new Promise((n, a) => {
17
- l.value = n, C.value = a;
18
- })), b = () => {
15
+ setup(G, { expose: x }) {
16
+ const f = t(""), v = t(""), p = t(""), g = t("red"), C = t("Cancel"), n = t(!1), r = t(!1), d = t(!1), a = t(void 0), h = t(void 0), b = (o = {}) => (f.value = o.title, v.value = o.message, p.value = o.okButton, g.value = o.okButtonType || "red", C.value = o.cancelButton || "Cancel", d.value = !!o.hasLoading, n.value = !0, new Promise((s, l) => {
17
+ a.value = s, h.value = l;
18
+ })), y = () => {
19
19
  r.value = !0;
20
20
  }, w = () => {
21
- r.value = !1, o.value = !1, d.value = !1, l.value(!1);
22
- }, y = () => {
21
+ r.value = !1, n.value = !1, d.value = !1, a.value(!1);
22
+ }, k = () => {
23
23
  if (d.value === !0) {
24
- l.value(!0);
24
+ a.value(!0);
25
25
  return;
26
26
  }
27
- o.value = !1, l.value(!0);
28
- }, k = () => {
29
- o.value = !1, l.value(!1);
27
+ n.value = !1, a.value(!0);
28
+ }, B = () => {
29
+ n.value = !1, a.value(!1);
30
30
  };
31
31
  return x({
32
- show: _,
33
- showLoading: b,
32
+ show: b,
33
+ showLoading: y,
34
34
  hideLoading: w
35
- }), (s, n) => {
36
- const a = B("gl-button");
37
- return o.value ? (u(), L("div", M, [
38
- e("div", P, [
39
- n[1] || (n[1] = e("div", {
35
+ }), (o, s) => {
36
+ const l = L("gl-button");
37
+ return n.value ? (u(), N("div", P, [
38
+ e("div", T, [
39
+ s[1] || (s[1] = e("div", {
40
40
  class: "fixed inset-0 transition-opacity bg-gray-500/75",
41
41
  "aria-hidden": "true"
42
42
  }, null, -1)),
43
- n[2] || (n[2] = e("span", {
43
+ s[2] || (s[2] = e("span", {
44
44
  class: "hidden sm:inline-block sm:align-middle sm:h-screen",
45
45
  "aria-hidden": "true"
46
46
  }, "​", -1)),
@@ -55,13 +55,13 @@ const M = {
55
55
  ])
56
56
  ])
57
57
  ]),
58
- e("div", T, [
59
- r.value ? (u(), h(j("button"), {
58
+ e("div", q, [
59
+ r.value ? (u(), _(D("button"), {
60
60
  key: 1,
61
61
  disabled: "",
62
- class: D("inline-flex justify-center w-full px-4 py-2 text-base font-medium text-white bg-red-600 border border-transparent rounded-md shadow-xs hover:bg-red-700 focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm")
62
+ class: M("inline-flex justify-center w-full px-4 py-2 text-base font-medium text-white bg-red-600 border border-transparent rounded-md shadow-xs hover:bg-red-700 focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm")
63
63
  }, {
64
- default: c(() => n[0] || (n[0] = [
64
+ default: c(() => s[0] || (s[0] = [
65
65
  e("svg", {
66
66
  "aria-hidden": "true",
67
67
  role: "status",
@@ -82,34 +82,34 @@ const M = {
82
82
  m(" Loading... ")
83
83
  ])),
84
84
  _: 1
85
- })) : (u(), h(a, {
85
+ })) : (u(), _(l, {
86
86
  key: 0,
87
- onClick: y,
87
+ onClick: k,
88
88
  tag: "button",
89
- button_type: "red"
89
+ button_type: g.value
90
90
  }, {
91
91
  default: c(() => [
92
- m(i(g.value), 1)
92
+ m(i(p.value), 1)
93
93
  ]),
94
94
  _: 1
95
- })),
96
- V(a, {
97
- onClick: k,
95
+ }, 8, ["button_type"])),
96
+ j(l, {
97
+ onClick: B,
98
98
  tag: "button",
99
99
  button_type: "light"
100
100
  }, {
101
101
  default: c(() => [
102
- m(i(p.value), 1)
102
+ m(i(C.value), 1)
103
103
  ]),
104
104
  _: 1
105
105
  })
106
106
  ])
107
107
  ])
108
108
  ])
109
- ])) : N("", !0);
109
+ ])) : V("", !0);
110
110
  };
111
111
  }
112
112
  };
113
113
  export {
114
- H as default
114
+ I as default
115
115
  };
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.2",
6
+ "version": "1.3.3",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/mrgiant/GoldenLogicUi.git"