sm-click-library-ui 0.0.22 → 0.0.23
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/dist/sm-click-library-ui.es.js +234 -160
- package/dist/sm-click-library-ui.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/tailwind.css +73 -8
- package/package.json +1 -1
|
@@ -1,98 +1,92 @@
|
|
|
1
|
-
import { getCurrentScope as
|
|
2
|
-
function
|
|
3
|
-
return
|
|
1
|
+
import { getCurrentScope as T, onScopeDispose as V, unref as z, watch as D, ref as S, computed as k, openBlock as f, createElementBlock as p, createElementVNode as o, toDisplayString as x, normalizeClass as L, renderSlot as g, createCommentVNode as m, pushScopeId as M, popScopeId as O } from "vue";
|
|
2
|
+
function G(e) {
|
|
3
|
+
return T() ? (V(e), !0) : !1;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
return typeof e == "function" ? e() :
|
|
5
|
+
function E(e) {
|
|
6
|
+
return typeof e == "function" ? e() : z(e);
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const A = typeof window < "u" && typeof document < "u";
|
|
9
9
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
10
|
-
const
|
|
11
|
-
},
|
|
12
|
-
function
|
|
13
|
-
var e,
|
|
14
|
-
return
|
|
10
|
+
const N = Object.prototype.toString, q = (e) => N.call(e) === "[object Object]", b = () => {
|
|
11
|
+
}, H = /* @__PURE__ */ F();
|
|
12
|
+
function F() {
|
|
13
|
+
var e, l;
|
|
14
|
+
return A && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((l = window == null ? void 0 : window.navigator) == null ? void 0 : l.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
var
|
|
18
|
-
const n =
|
|
19
|
-
return (
|
|
16
|
+
function v(e) {
|
|
17
|
+
var l;
|
|
18
|
+
const n = E(e);
|
|
19
|
+
return (l = n == null ? void 0 : n.$el) != null ? l : n;
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
function
|
|
23
|
-
let
|
|
24
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n,
|
|
25
|
-
return
|
|
26
|
-
Array.isArray(n) || (n = [n]), Array.isArray(
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
() => [
|
|
31
|
-
([
|
|
32
|
-
if (
|
|
21
|
+
const B = A ? window : void 0;
|
|
22
|
+
function y(...e) {
|
|
23
|
+
let l, n, t, r;
|
|
24
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, t, r] = e, l = B) : [l, n, t, r] = e, !l)
|
|
25
|
+
return b;
|
|
26
|
+
Array.isArray(n) || (n = [n]), Array.isArray(t) || (t = [t]);
|
|
27
|
+
const c = [], _ = () => {
|
|
28
|
+
c.forEach((u) => u()), c.length = 0;
|
|
29
|
+
}, d = (u, h, s, i) => (u.addEventListener(h, s, i), () => u.removeEventListener(h, s, i)), w = D(
|
|
30
|
+
() => [v(l), E(r)],
|
|
31
|
+
([u, h]) => {
|
|
32
|
+
if (_(), !u)
|
|
33
33
|
return;
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
...n.flatMap((
|
|
34
|
+
const s = q(h) ? { ...h } : h;
|
|
35
|
+
c.push(
|
|
36
|
+
...n.flatMap((i) => t.map((a) => d(u, i, a, s)))
|
|
37
37
|
);
|
|
38
38
|
},
|
|
39
39
|
{ immediate: !0, flush: "post" }
|
|
40
|
-
),
|
|
41
|
-
|
|
40
|
+
), C = () => {
|
|
41
|
+
w(), _();
|
|
42
42
|
};
|
|
43
|
-
return
|
|
43
|
+
return G(C), C;
|
|
44
44
|
}
|
|
45
|
-
let
|
|
46
|
-
function
|
|
47
|
-
const { window:
|
|
48
|
-
if (!
|
|
49
|
-
return
|
|
50
|
-
|
|
51
|
-
let
|
|
52
|
-
const
|
|
53
|
-
if (typeof
|
|
54
|
-
return Array.from(
|
|
45
|
+
let $ = !1;
|
|
46
|
+
function R(e, l, n = {}) {
|
|
47
|
+
const { window: t = B, ignore: r = [], capture: c = !0, detectIframe: _ = !1 } = n;
|
|
48
|
+
if (!t)
|
|
49
|
+
return b;
|
|
50
|
+
H && !$ && ($ = !0, Array.from(t.document.body.children).forEach((s) => s.addEventListener("click", b)), t.document.documentElement.addEventListener("click", b));
|
|
51
|
+
let d = !0;
|
|
52
|
+
const w = (s) => r.some((i) => {
|
|
53
|
+
if (typeof i == "string")
|
|
54
|
+
return Array.from(t.document.querySelectorAll(i)).some((a) => a === s.target || s.composedPath().includes(a));
|
|
55
55
|
{
|
|
56
|
-
const a =
|
|
57
|
-
return a && (
|
|
56
|
+
const a = v(i);
|
|
57
|
+
return a && (s.target === a || s.composedPath().includes(a));
|
|
58
58
|
}
|
|
59
|
-
}),
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
if (!(!
|
|
63
|
-
if (
|
|
64
|
-
|
|
59
|
+
}), u = [
|
|
60
|
+
y(t, "click", (s) => {
|
|
61
|
+
const i = v(e);
|
|
62
|
+
if (!(!i || i === s.target || s.composedPath().includes(i))) {
|
|
63
|
+
if (s.detail === 0 && (d = !w(s)), !d) {
|
|
64
|
+
d = !0;
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
l(s);
|
|
68
68
|
}
|
|
69
|
-
}, { passive: !0, capture:
|
|
70
|
-
|
|
71
|
-
const
|
|
72
|
-
|
|
69
|
+
}, { passive: !0, capture: c }),
|
|
70
|
+
y(t, "pointerdown", (s) => {
|
|
71
|
+
const i = v(e);
|
|
72
|
+
d = !w(s) && !!(i && !s.composedPath().includes(i));
|
|
73
73
|
}, { passive: !0 }),
|
|
74
|
-
|
|
74
|
+
_ && y(t, "blur", (s) => {
|
|
75
75
|
setTimeout(() => {
|
|
76
|
-
var
|
|
77
|
-
const a =
|
|
78
|
-
((
|
|
76
|
+
var i;
|
|
77
|
+
const a = v(e);
|
|
78
|
+
((i = t.document.activeElement) == null ? void 0 : i.tagName) === "IFRAME" && !(a != null && a.contains(t.document.activeElement)) && l(s);
|
|
79
79
|
}, 0);
|
|
80
80
|
})
|
|
81
81
|
].filter(Boolean);
|
|
82
|
-
return () =>
|
|
82
|
+
return () => u.forEach((s) => s());
|
|
83
83
|
}
|
|
84
|
-
const
|
|
84
|
+
const I = (e, l) => {
|
|
85
85
|
const n = e.__vccOpts || e;
|
|
86
|
-
for (const [
|
|
87
|
-
n[
|
|
86
|
+
for (const [t, r] of l)
|
|
87
|
+
n[t] = r;
|
|
88
88
|
return n;
|
|
89
|
-
},
|
|
90
|
-
key: 0,
|
|
91
|
-
class: "line-clamp-2 uppercase text-xs truncate text-white"
|
|
92
|
-
}, J = {
|
|
93
|
-
key: 1,
|
|
94
|
-
class: "line-clamp-2 uppercase text-xs truncate text-white"
|
|
95
|
-
}, K = /* @__PURE__ */ O(() => /* @__PURE__ */ l("path", {
|
|
89
|
+
}, U = (e) => (M("data-v-af0111a4"), e = e(), O(), e), J = { class: "line-clamp-2 uppercase text-xs truncate text-white" }, K = /* @__PURE__ */ U(() => /* @__PURE__ */ o("path", {
|
|
96
90
|
"fill-rule": "evenodd",
|
|
97
91
|
d: "M18.4 10.3A2 2 0 0 0 17 7H7a2 2 0 0 0-1.5 3.3l4.9 5.9a2 2 0 0 0 3 0l5-6Z",
|
|
98
92
|
"clip-rule": "evenodd"
|
|
@@ -101,146 +95,226 @@ const j = (e, i) => {
|
|
|
101
95
|
], X = {
|
|
102
96
|
key: 0,
|
|
103
97
|
class: "select_widget_lib"
|
|
104
|
-
}, Y = {
|
|
105
|
-
key: 1,
|
|
106
|
-
class: "space-y-2"
|
|
107
|
-
}, te = /* @__PURE__ */ O(() => /* @__PURE__ */ l("p", { class: "line-clamp-2 uppercase text-xs truncate" }, "Vertical", -1)), oe = [
|
|
108
|
-
te
|
|
109
|
-
], se = /* @__PURE__ */ O(() => /* @__PURE__ */ l("p", { class: "line-clamp-2 uppercase text-xs truncate" }, "Horizontal", -1)), ne = [
|
|
110
|
-
se
|
|
111
|
-
], le = {
|
|
98
|
+
}, Y = {
|
|
112
99
|
__name: "primary_select",
|
|
113
100
|
props: {
|
|
114
|
-
|
|
115
|
-
type: String,
|
|
116
|
-
default: "Free Slot"
|
|
117
|
-
},
|
|
118
|
-
selectConfig: {
|
|
101
|
+
config: {
|
|
119
102
|
type: Object,
|
|
120
|
-
default:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
})
|
|
103
|
+
default: {
|
|
104
|
+
title: "select_primary"
|
|
105
|
+
}
|
|
124
106
|
}
|
|
125
107
|
},
|
|
126
108
|
emits: ["closeSelect"],
|
|
127
|
-
setup(e, { emit:
|
|
128
|
-
const n = e,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}, u = (t) => {
|
|
135
|
-
c.value = !1, r.value = t === "horizontal" ? "Vertical" : "Horizontal", s("closeSelect", t);
|
|
109
|
+
setup(e, { emit: l }) {
|
|
110
|
+
const n = e, t = S(!1), r = S(null);
|
|
111
|
+
k(
|
|
112
|
+
() => n.selectConfig.some((d) => d.freeSlot)
|
|
113
|
+
);
|
|
114
|
+
const c = () => {
|
|
115
|
+
t.value = !t.value;
|
|
136
116
|
};
|
|
137
|
-
return
|
|
138
|
-
|
|
139
|
-
}), (
|
|
140
|
-
key: 0,
|
|
117
|
+
return R(r, () => {
|
|
118
|
+
t.value && (t.value = !1);
|
|
119
|
+
}), (d, w) => (f(), p("div", {
|
|
141
120
|
ref_key: "target",
|
|
142
|
-
ref:
|
|
121
|
+
ref: r,
|
|
143
122
|
class: "relative w-full"
|
|
144
123
|
}, [
|
|
145
|
-
|
|
146
|
-
onClick:
|
|
124
|
+
o("button", {
|
|
125
|
+
onClick: c,
|
|
147
126
|
class: "bg-base-100 z-10 truncate flex items-center justify-between gap-6 p-2 rounded-md lg:mt-0 w-full shadow-md shadow-base-300"
|
|
148
127
|
}, [
|
|
149
|
-
|
|
150
|
-
|
|
128
|
+
o("div", null, [
|
|
129
|
+
o("p", J, x(e.config.title), 1)
|
|
151
130
|
]),
|
|
152
|
-
|
|
153
|
-
(
|
|
154
|
-
class:
|
|
131
|
+
o("div", null, [
|
|
132
|
+
(f(), p("svg", {
|
|
133
|
+
class: L([t.value ? "rotate-180 transition-transform ease-in-out" : "", "w-3 h-3 text-white"]),
|
|
155
134
|
xmlns: "http://www.w3.org/2000/svg",
|
|
156
135
|
fill: "currentColor",
|
|
157
136
|
viewBox: "0 0 24 24"
|
|
158
137
|
}, Q, 2))
|
|
159
138
|
])
|
|
160
139
|
]),
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
])
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
class: C([r.value === "Vertical" ? "bg-green-500" : "", "btn_select_widget_lib"]),
|
|
168
|
-
onClick: a[0] || (a[0] = () => u("horizontal"))
|
|
169
|
-
}, oe, 2),
|
|
170
|
-
l("button", {
|
|
171
|
-
class: C([r.value !== "Vertical" ? "bg-green-500" : "", "btn_select_widget_lib"]),
|
|
172
|
-
onClick: a[1] || (a[1] = () => u("vertical"))
|
|
173
|
-
}, ne, 2)
|
|
174
|
-
])) : g("", !0)
|
|
175
|
-
])) : g("", !0)
|
|
176
|
-
], 512)) : g("", !0);
|
|
140
|
+
t.value ? (f(), p("section", X, [
|
|
141
|
+
o("div", null, [
|
|
142
|
+
g(d.$slots, "free-slot", {}, void 0, !0)
|
|
143
|
+
])
|
|
144
|
+
])) : m("", !0)
|
|
145
|
+
], 512));
|
|
177
146
|
}
|
|
178
|
-
},
|
|
147
|
+
}, Z = /* @__PURE__ */ I(Y, [["__scopeId", "data-v-af0111a4"]]), j = (e) => (M("data-v-4c81a5bf"), e = e(), O(), e), ee = {
|
|
179
148
|
key: 0,
|
|
180
149
|
class: "modal_head_lib"
|
|
181
|
-
},
|
|
150
|
+
}, te = /* @__PURE__ */ j(() => /* @__PURE__ */ o("div", { class: "modal-overlay_lib absolute h-full bg-gray-600 w-full opacity-70" }, null, -1)), oe = { class: "modal_responsive_lib" }, se = { class: "flex min-h-full items-center justify-center text-center sm:p-0" }, le = { class: "modal_size_lib lg:w-2/6" }, ne = { class: "modal_background_lib" }, ie = { class: "modal_tittle_lib text-current" }, re = /* @__PURE__ */ j(() => /* @__PURE__ */ o("svg", {
|
|
182
151
|
class: "h-5 w-5",
|
|
183
152
|
fill: "currentColor",
|
|
184
153
|
viewBox: "0 0 20 20",
|
|
185
154
|
xmlns: "http://www.w3.org/2000/svg"
|
|
186
155
|
}, [
|
|
187
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ o("path", {
|
|
188
157
|
"fill-rule": "evenodd",
|
|
189
158
|
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
190
159
|
"clip-rule": "evenodd"
|
|
191
160
|
})
|
|
192
|
-
], -1)),
|
|
193
|
-
|
|
194
|
-
],
|
|
161
|
+
], -1)), ce = [
|
|
162
|
+
re
|
|
163
|
+
], ae = { class: "p-4" }, de = { class: "w-full" }, ue = { class: "block" }, fe = { class: "modal_end_button_lib sm" }, pe = {
|
|
195
164
|
__name: "simple_modal",
|
|
196
165
|
props: {
|
|
197
166
|
isOpen: Boolean,
|
|
198
167
|
default: !1
|
|
199
168
|
},
|
|
200
169
|
emits: ["update:isOpen"],
|
|
201
|
-
setup(e, { emit:
|
|
202
|
-
const n = e,
|
|
203
|
-
|
|
170
|
+
setup(e, { emit: l }) {
|
|
171
|
+
const n = e, t = l, r = () => {
|
|
172
|
+
t("update:isOpen", !n.isOpen);
|
|
204
173
|
};
|
|
205
|
-
return (
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
onClick:
|
|
174
|
+
return (c, _) => e.isOpen ? (f(), p("div", ee, [
|
|
175
|
+
te,
|
|
176
|
+
o("div", oe, [
|
|
177
|
+
o("div", se, [
|
|
178
|
+
o("div", le, [
|
|
179
|
+
o("div", ne, [
|
|
180
|
+
o("div", ie, [
|
|
181
|
+
g(c.$slots, "header", {}, void 0, !0),
|
|
182
|
+
o("button", {
|
|
183
|
+
onClick: r,
|
|
215
184
|
class: "modal_close_button_lib",
|
|
216
185
|
"data-modal-toggle": "editUserModal"
|
|
217
|
-
},
|
|
186
|
+
}, ce)
|
|
218
187
|
]),
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
188
|
+
o("div", ae, [
|
|
189
|
+
o("div", de, [
|
|
190
|
+
o("label", ue, [
|
|
191
|
+
g(c.$slots, "body", {}, void 0, !0)
|
|
223
192
|
])
|
|
224
193
|
])
|
|
225
194
|
]),
|
|
226
|
-
|
|
227
|
-
|
|
195
|
+
o("div", fe, [
|
|
196
|
+
g(c.$slots, "footer", {}, void 0, !0)
|
|
228
197
|
])
|
|
229
198
|
])
|
|
230
199
|
])
|
|
231
200
|
])
|
|
232
201
|
])
|
|
233
|
-
])) :
|
|
202
|
+
])) : m("", !0);
|
|
203
|
+
}
|
|
204
|
+
}, P = /* @__PURE__ */ I(pe, [["__scopeId", "data-v-4c81a5bf"]]), he = { class: "flex items-center gap-3 mb-2" }, _e = {
|
|
205
|
+
key: 0,
|
|
206
|
+
class: "text-green-500",
|
|
207
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
208
|
+
width: "20",
|
|
209
|
+
height: "20",
|
|
210
|
+
viewBox: "0 0 20 20",
|
|
211
|
+
fill: "none"
|
|
212
|
+
}, me = /* @__PURE__ */ o("path", {
|
|
213
|
+
"fill-rule": "evenodd",
|
|
214
|
+
"clip-rule": "evenodd",
|
|
215
|
+
d: "M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM13.6103 8.18593C13.8511 7.84887 13.773 7.38046 13.4359 7.1397C13.0989 6.89894 12.6305 6.97701 12.3897 7.31407L9.1543 11.8436L7.53033 10.2197C7.23744 9.92678 6.76256 9.92678 6.46967 10.2197C6.17678 10.5126 6.17678 10.9874 6.46967 11.2803L8.71967 13.5303C8.87556 13.6862 9.09215 13.7656 9.31186 13.7474C9.53157 13.7293 9.73216 13.6153 9.8603 13.4359L13.6103 8.18593Z",
|
|
216
|
+
fill: "currentColor"
|
|
217
|
+
}, null, -1), we = [
|
|
218
|
+
me
|
|
219
|
+
], ve = {
|
|
220
|
+
key: 1,
|
|
221
|
+
class: "text-blue-400",
|
|
222
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
223
|
+
width: "20",
|
|
224
|
+
height: "20",
|
|
225
|
+
viewBox: "0 0 20 20",
|
|
226
|
+
fill: "none"
|
|
227
|
+
}, ge = /* @__PURE__ */ o("path", {
|
|
228
|
+
"fill-rule": "evenodd",
|
|
229
|
+
"clip-rule": "evenodd",
|
|
230
|
+
d: "M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM10 6.25C10.4142 6.25 10.75 6.58579 10.75 7V10.75C10.75 11.1642 10.4142 11.5 10 11.5C9.58579 11.5 9.25 11.1642 9.25 10.75V7C9.25 6.58579 9.58579 6.25 10 6.25ZM10 14.5C10.4142 14.5 10.75 14.1642 10.75 13.75C10.75 13.3358 10.4142 13 10 13C9.58579 13 9.25 13.3358 9.25 13.75C9.25 14.1642 9.58579 14.5 10 14.5Z",
|
|
231
|
+
fill: "currentColor"
|
|
232
|
+
}, null, -1), be = [
|
|
233
|
+
ge
|
|
234
|
+
], Ce = {
|
|
235
|
+
key: 2,
|
|
236
|
+
class: "text-yellow-400",
|
|
237
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
238
|
+
width: "22",
|
|
239
|
+
height: "20",
|
|
240
|
+
viewBox: "0 0 22 20",
|
|
241
|
+
fill: "none"
|
|
242
|
+
}, ye = /* @__PURE__ */ o("path", {
|
|
243
|
+
"fill-rule": "evenodd",
|
|
244
|
+
"clip-rule": "evenodd",
|
|
245
|
+
d: "M8.40123 2.0034C9.55572 0.0022862 12.4439 0.0022856 13.5983 2.0034L20.9527 14.7509C22.1065 16.7509 20.6631 19.2501 18.3541 19.2501H3.64546C1.33649 19.2501 -0.106939 16.7509 1.04691 14.7509L8.40123 2.0034ZM11 7.25C11.4142 7.25 11.75 7.58579 11.75 8V11.75C11.75 12.1642 11.4142 12.5 11 12.5C10.5858 12.5 10.25 12.1642 10.25 11.75V8C10.25 7.58579 10.5858 7.25 11 7.25ZM11 15.5C11.4142 15.5 11.75 15.1642 11.75 14.75C11.75 14.3358 11.4142 14 11 14C10.5858 14 10.25 14.3358 10.25 14.75C10.25 15.1642 10.5858 15.5 11 15.5Z",
|
|
246
|
+
fill: "currentColor"
|
|
247
|
+
}, null, -1), xe = [
|
|
248
|
+
ye
|
|
249
|
+
], Se = {
|
|
250
|
+
key: 3,
|
|
251
|
+
class: "w-6 h-6 text-red-500",
|
|
252
|
+
"aria-hidden": "true",
|
|
253
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
254
|
+
width: "24",
|
|
255
|
+
height: "24",
|
|
256
|
+
fill: "currentColor",
|
|
257
|
+
viewBox: "0 0 24 24"
|
|
258
|
+
}, $e = /* @__PURE__ */ o("path", {
|
|
259
|
+
"fill-rule": "evenodd",
|
|
260
|
+
d: "M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm7.707-3.707a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586 9.707 8.293Z",
|
|
261
|
+
"clip-rule": "evenodd"
|
|
262
|
+
}, null, -1), ke = [
|
|
263
|
+
$e
|
|
264
|
+
], Le = { class: "font-bold" }, Me = { class: "text-white flex text-left" }, W = {
|
|
265
|
+
__name: "simple_card",
|
|
266
|
+
props: {
|
|
267
|
+
content: {
|
|
268
|
+
type: Object,
|
|
269
|
+
default: {
|
|
270
|
+
title: "Title",
|
|
271
|
+
description: "Garanta que essas informações acima esteja configuradas no Webhook do seu aplicativo META."
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
success: {
|
|
275
|
+
type: Boolean,
|
|
276
|
+
default: !1
|
|
277
|
+
},
|
|
278
|
+
info: {
|
|
279
|
+
type: Boolean,
|
|
280
|
+
default: !1
|
|
281
|
+
},
|
|
282
|
+
alert: {
|
|
283
|
+
type: Boolean,
|
|
284
|
+
default: !1
|
|
285
|
+
},
|
|
286
|
+
error: {
|
|
287
|
+
type: Boolean,
|
|
288
|
+
default: !1
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
setup(e) {
|
|
292
|
+
const l = e, n = k(() => l.success ? "border-green-500 text-green-500 shadow-md shadow-green-700" : l.info ? "border-blue-400 text-blue-400 shadow-md shadow-blue-700" : l.alert ? "border-yellow-400 text-yellow-400 shadow-md shadow-yellow-700" : l.error ? "border-red-500 text-red-500 shadow-md shadow-red-700" : "border-white text-white");
|
|
293
|
+
return (t, r) => (f(), p("div", {
|
|
294
|
+
class: L([n.value, "bg-base-300 border-2 p-2 rounded-lg flex-col items-center"])
|
|
295
|
+
}, [
|
|
296
|
+
o("div", he, [
|
|
297
|
+
e.success ? (f(), p("svg", _e, we)) : m("", !0),
|
|
298
|
+
e.info ? (f(), p("svg", ve, be)) : m("", !0),
|
|
299
|
+
e.alert ? (f(), p("svg", Ce, xe)) : m("", !0),
|
|
300
|
+
e.error ? (f(), p("svg", Se, ke)) : m("", !0),
|
|
301
|
+
o("span", null, [
|
|
302
|
+
o("p", Le, x(e.content.title), 1)
|
|
303
|
+
])
|
|
304
|
+
]),
|
|
305
|
+
o("section", Me, x(e.content.description), 1)
|
|
306
|
+
], 2));
|
|
234
307
|
}
|
|
235
|
-
}
|
|
236
|
-
function
|
|
237
|
-
e.component("primarySelect",
|
|
308
|
+
};
|
|
309
|
+
function Oe(e) {
|
|
310
|
+
e.component("primarySelect", Z), e.component("simpleModal", P), e.component("simpleCard", W);
|
|
238
311
|
}
|
|
239
|
-
const
|
|
240
|
-
install:
|
|
241
|
-
primarySelect:
|
|
242
|
-
simpleModal:
|
|
312
|
+
const Ae = {
|
|
313
|
+
install: Oe,
|
|
314
|
+
primarySelect: Z,
|
|
315
|
+
simpleModal: P,
|
|
316
|
+
simpleCard: W
|
|
243
317
|
};
|
|
244
318
|
export {
|
|
245
|
-
|
|
319
|
+
Ae as default
|
|
246
320
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,_){typeof exports=="object"&&typeof module<"u"?module.exports=_(require("vue")):typeof define=="function"&&define.amd?define(["vue"],_):(e=typeof globalThis<"u"?globalThis:e||self,e["sm-click-library-ui"]=_(e.Vue))})(this,function(e){"use strict";function _(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function E(t){return typeof t=="function"?t():e.unref(t)}const k=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const B=Object.prototype.toString,O=t=>B.call(t)==="[object Object]",w=()=>{},A=I();function I(){var t,c;return k&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((c=window==null?void 0:window.navigator)==null?void 0:c.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function h(t){var c;const s=E(t);return(c=s==null?void 0:s.$el)!=null?c:s}const S=k?window:void 0;function b(...t){let c,s,l,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([s,l,i]=t,c=S):[c,s,l,i]=t,!c)return w;Array.isArray(s)||(s=[s]),Array.isArray(l)||(l=[l]);const a=[],p=()=>{a.forEach(d=>d()),a.length=0},f=(d,m,n,o)=>(d.addEventListener(m,n,o),()=>d.removeEventListener(m,n,o)),u=e.watch(()=>[h(c),E(i)],([d,m])=>{if(p(),!d)return;const n=O(m)?{...m}:m;a.push(...s.flatMap(o=>l.map(r=>f(d,o,r,n))))},{immediate:!0,flush:"post"}),g=()=>{u(),p()};return _(g),g}let V=!1;function z(t,c,s={}){const{window:l=S,ignore:i=[],capture:a=!0,detectIframe:p=!1}=s;if(!l)return w;A&&!V&&(V=!0,Array.from(l.document.body.children).forEach(n=>n.addEventListener("click",w)),l.document.documentElement.addEventListener("click",w));let f=!0;const u=n=>i.some(o=>{if(typeof o=="string")return Array.from(l.document.querySelectorAll(o)).some(r=>r===n.target||n.composedPath().includes(r));{const r=h(o);return r&&(n.target===r||n.composedPath().includes(r))}}),d=[b(l,"click",n=>{const o=h(t);if(!(!o||o===n.target||n.composedPath().includes(o))){if(n.detail===0&&(f=!u(n)),!f){f=!0;return}c(n)}},{passive:!0,capture:a}),b(l,"pointerdown",n=>{const o=h(t);f=!u(n)&&!!(o&&!n.composedPath().includes(o))},{passive:!0}),p&&b(l,"blur",n=>{setTimeout(()=>{var o;const r=h(t);((o=l.document.activeElement)==null?void 0:o.tagName)==="IFRAME"&&!(r!=null&&r.contains(l.document.activeElement))&&c(n)},0)})].filter(Boolean);return()=>d.forEach(n=>n())}const C=(t,c)=>{const s=t.__vccOpts||t;for(const[l,i]of c)s[l]=i;return s},y=t=>(e.pushScopeId("data-v-a8f8c201"),t=t(),e.popScopeId(),t),L={key:0,class:"line-clamp-2 uppercase text-xs truncate text-white"},M={key:1,class:"line-clamp-2 uppercase text-xs truncate text-white"},j=[y(()=>e.createElementVNode("path",{"fill-rule":"evenodd",d:"M18.4 10.3A2 2 0 0 0 17 7H7a2 2 0 0 0-1.5 3.3l4.9 5.9a2 2 0 0 0 3 0l5-6Z","clip-rule":"evenodd"},null,-1))],v={key:0,class:"select_widget_lib"},P={key:0},F={key:1,class:"space-y-2"},T=[y(()=>e.createElementVNode("p",{class:"line-clamp-2 uppercase text-xs truncate"},"Vertical",-1))],W=[y(()=>e.createElementVNode("p",{class:"line-clamp-2 uppercase text-xs truncate"},"Horizontal",-1))],N=C({__name:"primary_select",props:{titleFreeSlot:{type:String,default:"Free Slot"},selectConfig:{type:Object,default:()=>({chartsConfig:!1,freeSlot:!1})}},emits:["closeSelect"],setup(t,{emit:c}){const s=t,l=c,i=e.ref(!1),a=e.ref("Horizontal"),p=e.ref(null),f=e.computed(()=>s.selectConfig.length>0),u=e.computed(()=>s.selectConfig.some(o=>o.chartsConfig)),g=e.computed(()=>s.selectConfig.some(o=>o.freeSlot)),d=()=>{i.value=!i.value},m=o=>{i.value=!1,a.value=o==="horizontal"?"Vertical":"Horizontal",l("closeSelect",o)};return z(p,()=>{i.value&&(i.value=!1)}),(o,r)=>f.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"target",ref:p,class:"relative w-full"},[e.createElementVNode("button",{onClick:d,class:"bg-base-100 z-10 truncate flex items-center justify-between gap-6 p-2 rounded-md lg:mt-0 w-full shadow-md shadow-base-300"},[e.createElementVNode("div",null,[u.value?(e.openBlock(),e.createElementBlock("p",L,e.toDisplayString(a.value),1)):(e.openBlock(),e.createElementBlock("p",M,e.toDisplayString(t.titleFreeSlot),1))]),e.createElementVNode("div",null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([i.value?"rotate-180 transition-transform ease-in-out":"","w-3 h-3 text-white"]),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},j,2))])]),i.value?(e.openBlock(),e.createElementBlock("section",v,[g.value?(e.openBlock(),e.createElementBlock("div",P,[e.renderSlot(o.$slots,"free-slot",{},void 0,!0)])):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("button",{class:e.normalizeClass([a.value==="Vertical"?"bg-green-500":"","btn_select_widget_lib"]),onClick:r[0]||(r[0]=()=>m("horizontal"))},T,2),e.createElementVNode("button",{class:e.normalizeClass([a.value!=="Vertical"?"bg-green-500":"","btn_select_widget_lib"]),onClick:r[1]||(r[1]=()=>m("vertical"))},W,2)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],512)):e.createCommentVNode("",!0)}},[["__scopeId","data-v-a8f8c201"]]),x=t=>(e.pushScopeId("data-v-4c81a5bf"),t=t(),e.popScopeId(),t),D={key:0,class:"modal_head_lib"},H=x(()=>e.createElementVNode("div",{class:"modal-overlay_lib absolute h-full bg-gray-600 w-full opacity-70"},null,-1)),q={class:"modal_responsive_lib"},G={class:"flex min-h-full items-center justify-center text-center sm:p-0"},R={class:"modal_size_lib lg:w-2/6"},U={class:"modal_background_lib"},Z={class:"modal_tittle_lib text-current"},J=[x(()=>e.createElementVNode("svg",{class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1))],K={class:"p-4"},Q={class:"w-full"},X={class:"block"},Y={class:"modal_end_button_lib sm"},$=C({__name:"simple_modal",props:{isOpen:Boolean,default:!1},emits:["update:isOpen"],setup(t,{emit:c}){const s=t,l=c,i=()=>{l("update:isOpen",!s.isOpen)};return(a,p)=>t.isOpen?(e.openBlock(),e.createElementBlock("div",D,[H,e.createElementVNode("div",q,[e.createElementVNode("div",G,[e.createElementVNode("div",R,[e.createElementVNode("div",U,[e.createElementVNode("div",Z,[e.renderSlot(a.$slots,"header",{},void 0,!0),e.createElementVNode("button",{onClick:i,class:"modal_close_button_lib","data-modal-toggle":"editUserModal"},J)]),e.createElementVNode("div",K,[e.createElementVNode("div",Q,[e.createElementVNode("label",X,[e.renderSlot(a.$slots,"body",{},void 0,!0)])])]),e.createElementVNode("div",Y,[e.renderSlot(a.$slots,"footer",{},void 0,!0)])])])])])])):e.createCommentVNode("",!0)}},[["__scopeId","data-v-4c81a5bf"]]);function ee(t){t.component("primarySelect",N),t.component("simpleModal",$)}return{install:ee,primarySelect:N,simpleModal:$}});
|
|
1
|
+
(function(e,u){typeof exports=="object"&&typeof module<"u"?module.exports=u(require("vue")):typeof define=="function"&&define.amd?define(["vue"],u):(e=typeof globalThis<"u"?globalThis:e||self,e["sm-click-library-ui"]=u(e.Vue))})(this,function(e){"use strict";function u(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function b(t){return typeof t=="function"?t():e.unref(t)}const y=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const $=Object.prototype.toString,L=t=>$.call(t)==="[object Object]",w=()=>{},M=O();function O(){var t,l;return y&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((l=window==null?void 0:window.navigator)==null?void 0:l.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function _(t){var l;const s=b(t);return(l=s==null?void 0:s.$el)!=null?l:s}const E=y?window:void 0;function g(...t){let l,s,o,c;if(typeof t[0]=="string"||Array.isArray(t[0])?([s,o,c]=t,l=E):[l,s,o,c]=t,!l)return w;Array.isArray(s)||(s=[s]),Array.isArray(o)||(o=[o]);const i=[],p=()=>{i.forEach(m=>m()),i.length=0},a=(m,f,n,r)=>(m.addEventListener(f,n,r),()=>m.removeEventListener(f,n,r)),h=e.watch(()=>[_(l),b(c)],([m,f])=>{if(p(),!m)return;const n=L(f)?{...f}:f;i.push(...s.flatMap(r=>o.map(d=>a(m,r,d,n))))},{immediate:!0,flush:"post"}),C=()=>{h(),p()};return u(C),C}let k=!1;function A(t,l,s={}){const{window:o=E,ignore:c=[],capture:i=!0,detectIframe:p=!1}=s;if(!o)return w;M&&!k&&(k=!0,Array.from(o.document.body.children).forEach(n=>n.addEventListener("click",w)),o.document.documentElement.addEventListener("click",w));let a=!0;const h=n=>c.some(r=>{if(typeof r=="string")return Array.from(o.document.querySelectorAll(r)).some(d=>d===n.target||n.composedPath().includes(d));{const d=_(r);return d&&(n.target===d||n.composedPath().includes(d))}}),m=[g(o,"click",n=>{const r=_(t);if(!(!r||r===n.target||n.composedPath().includes(r))){if(n.detail===0&&(a=!h(n)),!a){a=!0;return}l(n)}},{passive:!0,capture:i}),g(o,"pointerdown",n=>{const r=_(t);a=!h(n)&&!!(r&&!n.composedPath().includes(r))},{passive:!0}),p&&g(o,"blur",n=>{setTimeout(()=>{var r;const d=_(t);((r=o.document.activeElement)==null?void 0:r.tagName)==="IFRAME"&&!(d!=null&&d.contains(o.document.activeElement))&&l(n)},0)})].filter(Boolean);return()=>m.forEach(n=>n())}const x=(t,l)=>{const s=t.__vccOpts||t;for(const[o,c]of l)s[o]=c;return s},I=t=>(e.pushScopeId("data-v-af0111a4"),t=t(),e.popScopeId(),t),v={class:"line-clamp-2 uppercase text-xs truncate text-white"},Z=[I(()=>e.createElementVNode("path",{"fill-rule":"evenodd",d:"M18.4 10.3A2 2 0 0 0 17 7H7a2 2 0 0 0-1.5 3.3l4.9 5.9a2 2 0 0 0 3 0l5-6Z","clip-rule":"evenodd"},null,-1))],j={key:0,class:"select_widget_lib"},V=x({__name:"primary_select",props:{config:{type:Object,default:{title:"select_primary"}}},emits:["closeSelect"],setup(t,{emit:l}){const s=t,o=e.ref(!1),c=e.ref(null);e.computed(()=>s.selectConfig.some(a=>a.freeSlot));const i=()=>{o.value=!o.value};return A(c,()=>{o.value&&(o.value=!1)}),(a,h)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"target",ref:c,class:"relative w-full"},[e.createElementVNode("button",{onClick:i,class:"bg-base-100 z-10 truncate flex items-center justify-between gap-6 p-2 rounded-md lg:mt-0 w-full shadow-md shadow-base-300"},[e.createElementVNode("div",null,[e.createElementVNode("p",v,e.toDisplayString(t.config.title),1)]),e.createElementVNode("div",null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([o.value?"rotate-180 transition-transform ease-in-out":"","w-3 h-3 text-white"]),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},Z,2))])]),o.value?(e.openBlock(),e.createElementBlock("section",j,[e.createElementVNode("div",null,[e.renderSlot(a.$slots,"free-slot",{},void 0,!0)])])):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-af0111a4"]]),N=t=>(e.pushScopeId("data-v-4c81a5bf"),t=t(),e.popScopeId(),t),P={key:0,class:"modal_head_lib"},T=N(()=>e.createElementVNode("div",{class:"modal-overlay_lib absolute h-full bg-gray-600 w-full opacity-70"},null,-1)),W={class:"modal_responsive_lib"},z={class:"flex min-h-full items-center justify-center text-center sm:p-0"},D={class:"modal_size_lib lg:w-2/6"},q={class:"modal_background_lib"},G={class:"modal_tittle_lib text-current"},H=[N(()=>e.createElementVNode("svg",{class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1))],F={class:"p-4"},R={class:"w-full"},U={class:"block"},J={class:"modal_end_button_lib sm"},S=x({__name:"simple_modal",props:{isOpen:Boolean,default:!1},emits:["update:isOpen"],setup(t,{emit:l}){const s=t,o=l,c=()=>{o("update:isOpen",!s.isOpen)};return(i,p)=>t.isOpen?(e.openBlock(),e.createElementBlock("div",P,[T,e.createElementVNode("div",W,[e.createElementVNode("div",z,[e.createElementVNode("div",D,[e.createElementVNode("div",q,[e.createElementVNode("div",G,[e.renderSlot(i.$slots,"header",{},void 0,!0),e.createElementVNode("button",{onClick:c,class:"modal_close_button_lib","data-modal-toggle":"editUserModal"},H)]),e.createElementVNode("div",F,[e.createElementVNode("div",R,[e.createElementVNode("label",U,[e.renderSlot(i.$slots,"body",{},void 0,!0)])])]),e.createElementVNode("div",J,[e.renderSlot(i.$slots,"footer",{},void 0,!0)])])])])])])):e.createCommentVNode("",!0)}},[["__scopeId","data-v-4c81a5bf"]]),K={class:"flex items-center gap-3 mb-2"},Q={key:0,class:"text-green-500",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},X=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM13.6103 8.18593C13.8511 7.84887 13.773 7.38046 13.4359 7.1397C13.0989 6.89894 12.6305 6.97701 12.3897 7.31407L9.1543 11.8436L7.53033 10.2197C7.23744 9.92678 6.76256 9.92678 6.46967 10.2197C6.17678 10.5126 6.17678 10.9874 6.46967 11.2803L8.71967 13.5303C8.87556 13.6862 9.09215 13.7656 9.31186 13.7474C9.53157 13.7293 9.73216 13.6153 9.8603 13.4359L13.6103 8.18593Z",fill:"currentColor"},null,-1)],Y={key:1,class:"text-blue-400",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},ee=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM10 6.25C10.4142 6.25 10.75 6.58579 10.75 7V10.75C10.75 11.1642 10.4142 11.5 10 11.5C9.58579 11.5 9.25 11.1642 9.25 10.75V7C9.25 6.58579 9.58579 6.25 10 6.25ZM10 14.5C10.4142 14.5 10.75 14.1642 10.75 13.75C10.75 13.3358 10.4142 13 10 13C9.58579 13 9.25 13.3358 9.25 13.75C9.25 14.1642 9.58579 14.5 10 14.5Z",fill:"currentColor"},null,-1)],te={key:2,class:"text-yellow-400",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20",fill:"none"},oe=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.40123 2.0034C9.55572 0.0022862 12.4439 0.0022856 13.5983 2.0034L20.9527 14.7509C22.1065 16.7509 20.6631 19.2501 18.3541 19.2501H3.64546C1.33649 19.2501 -0.106939 16.7509 1.04691 14.7509L8.40123 2.0034ZM11 7.25C11.4142 7.25 11.75 7.58579 11.75 8V11.75C11.75 12.1642 11.4142 12.5 11 12.5C10.5858 12.5 10.25 12.1642 10.25 11.75V8C10.25 7.58579 10.5858 7.25 11 7.25ZM11 15.5C11.4142 15.5 11.75 15.1642 11.75 14.75C11.75 14.3358 11.4142 14 11 14C10.5858 14 10.25 14.3358 10.25 14.75C10.25 15.1642 10.5858 15.5 11 15.5Z",fill:"currentColor"},null,-1)],ne={key:3,class:"w-6 h-6 text-red-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},le=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm7.707-3.707a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586 9.707 8.293Z","clip-rule":"evenodd"},null,-1)],se={class:"font-bold"},re={class:"text-white flex text-left"},B={__name:"simple_card",props:{content:{type:Object,default:{title:"Title",description:"Garanta que essas informações acima esteja configuradas no Webhook do seu aplicativo META."}},success:{type:Boolean,default:!1},info:{type:Boolean,default:!1},alert:{type:Boolean,default:!1},error:{type:Boolean,default:!1}},setup(t){const l=t,s=e.computed(()=>l.success?"border-green-500 text-green-500 shadow-md shadow-green-700":l.info?"border-blue-400 text-blue-400 shadow-md shadow-blue-700":l.alert?"border-yellow-400 text-yellow-400 shadow-md shadow-yellow-700":l.error?"border-red-500 text-red-500 shadow-md shadow-red-700":"border-white text-white");return(o,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([s.value,"bg-base-300 border-2 p-2 rounded-lg flex-col items-center"])},[e.createElementVNode("div",K,[t.success?(e.openBlock(),e.createElementBlock("svg",Q,X)):e.createCommentVNode("",!0),t.info?(e.openBlock(),e.createElementBlock("svg",Y,ee)):e.createCommentVNode("",!0),t.alert?(e.openBlock(),e.createElementBlock("svg",te,oe)):e.createCommentVNode("",!0),t.error?(e.openBlock(),e.createElementBlock("svg",ne,le)):e.createCommentVNode("",!0),e.createElementVNode("span",null,[e.createElementVNode("p",se,e.toDisplayString(t.content.title),1)])]),e.createElementVNode("section",re,e.toDisplayString(t.content.description),1)],2))}};function ce(t){t.component("primarySelect",V),t.component("simpleModal",S),t.component("simpleCard",B)}return{install:ce,primarySelect:V,simpleModal:S,simpleCard:B}});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.select_widget_lib[data-v-af0111a4]{position:absolute;z-index:30;margin-top:.5rem;width:100%;border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(75 99 116 / var(--tw-bg-opacity));padding:.375rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: #111B21;--tw-shadow: var(--tw-shadow-colored) }.modal_head_lib[data-v-4c81a5bf]{position:fixed;top:0;left:0;z-index:50;display:flex;height:100%;width:100%;align-items:center;justify-content:center;--tw-backdrop-blur: blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);animation:.1s ease-out 0s 1 modalani;transition:opacity .2s ease-in-out}.my_modal_lib[data-v-4c81a5bf]{animation:.1s ease-out 0s 1 modalani;transition:opacity .2s ease-in-out}.modal-overlay_lib[data-v-4c81a5bf]{position:absolute;height:100%;width:100%;--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity));opacity:.2}.modal_responsive_lib[data-v-4c81a5bf]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;overflow-y:auto}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.modal_responsive_lib[data-v-4c81a5bf]{scrollbar-width:auto;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar{display:block;width:var(--scrollbar-width, 16px);height:var(--scrollbar-height, 16px)}.modal_responsive_lib[data-v-4c81a5bf]{--scrollbar-track: #d1d5db;--scrollbar-thumb: #111827}.modal_size_lib[data-v-4c81a5bf]{z-index:50;width:100%;border-radius:1rem;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: #000;--tw-shadow: var(--tw-shadow-colored)}@media (min-width: 864px){.modal_size_lib[data-v-4c81a5bf]{width:50%}}@media (min-width: 1512px){.modal_size_lib[data-v-4c81a5bf]{width:33.333333%}}.modal_background_lib[data-v-4c81a5bf]{position:relative;border-radius:1rem;--tw-bg-opacity: 1;background-color:rgb(38 52 61 / var(--tw-bg-opacity));--tw-backdrop-blur: blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal_tittle_lib[data-v-4c81a5bf]{display:flex;align-items:center;justify-content:space-between;border-top-left-radius:1rem;border-top-right-radius:1rem;--tw-border-opacity: 1;border-color:rgb(17 27 33 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(17 27 33 / var(--tw-bg-opacity));padding:.75rem;text-transform:uppercase;color:currentColor}.modal_end_button_lib[data-v-4c81a5bf]{display:flex;justify-content:flex-end}.modal_end_button_lib[data-v-4c81a5bf]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.modal_end_button_lib[data-v-4c81a5bf]{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem;--tw-border-opacity: 1;border-color:rgb(17 27 33 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(17 27 33 / var(--tw-bg-opacity));padding:.5rem}.modal_close_button_lib[data-v-4c81a5bf]{margin-left:auto;display:inline-flex;align-items:center;border-radius:.5rem;background-color:#26343d66;padding:.375rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));transition-duration:.3s}.modal_close_button_lib[data-v-4c81a5bf]:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-bg-opacity: 1;background-color:rgb(75 99 116 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}
|
package/dist/tailwind.css
CHANGED
|
@@ -533,6 +533,9 @@ video {
|
|
|
533
533
|
.z-50 {
|
|
534
534
|
z-index: 50;
|
|
535
535
|
}
|
|
536
|
+
.mb-2 {
|
|
537
|
+
margin-bottom: 0.5rem;
|
|
538
|
+
}
|
|
536
539
|
.ml-auto {
|
|
537
540
|
margin-left: auto;
|
|
538
541
|
}
|
|
@@ -560,6 +563,9 @@ video {
|
|
|
560
563
|
.h-5 {
|
|
561
564
|
height: 1.25rem;
|
|
562
565
|
}
|
|
566
|
+
.h-6 {
|
|
567
|
+
height: 1.5rem;
|
|
568
|
+
}
|
|
563
569
|
.h-full {
|
|
564
570
|
height: 100%;
|
|
565
571
|
}
|
|
@@ -575,6 +581,9 @@ video {
|
|
|
575
581
|
.w-5 {
|
|
576
582
|
width: 1.25rem;
|
|
577
583
|
}
|
|
584
|
+
.w-6 {
|
|
585
|
+
width: 1.5rem;
|
|
586
|
+
}
|
|
578
587
|
.w-full {
|
|
579
588
|
width: 100%;
|
|
580
589
|
}
|
|
@@ -597,6 +606,9 @@ video {
|
|
|
597
606
|
.justify-between {
|
|
598
607
|
justify-content: space-between;
|
|
599
608
|
}
|
|
609
|
+
.gap-3 {
|
|
610
|
+
gap: 0.75rem;
|
|
611
|
+
}
|
|
600
612
|
.gap-6 {
|
|
601
613
|
gap: 1.5rem;
|
|
602
614
|
}
|
|
@@ -635,10 +647,33 @@ video {
|
|
|
635
647
|
border-top-left-radius: 1rem;
|
|
636
648
|
border-top-right-radius: 1rem;
|
|
637
649
|
}
|
|
650
|
+
.border-2 {
|
|
651
|
+
border-width: 2px;
|
|
652
|
+
}
|
|
638
653
|
.border-base-300 {
|
|
639
654
|
--tw-border-opacity: 1;
|
|
640
655
|
border-color: rgb(17 27 33 / var(--tw-border-opacity));
|
|
641
656
|
}
|
|
657
|
+
.border-blue-400 {
|
|
658
|
+
--tw-border-opacity: 1;
|
|
659
|
+
border-color: rgb(96 165 250 / var(--tw-border-opacity));
|
|
660
|
+
}
|
|
661
|
+
.border-green-500 {
|
|
662
|
+
--tw-border-opacity: 1;
|
|
663
|
+
border-color: rgb(34 197 94 / var(--tw-border-opacity));
|
|
664
|
+
}
|
|
665
|
+
.border-red-500 {
|
|
666
|
+
--tw-border-opacity: 1;
|
|
667
|
+
border-color: rgb(239 68 68 / var(--tw-border-opacity));
|
|
668
|
+
}
|
|
669
|
+
.border-white {
|
|
670
|
+
--tw-border-opacity: 1;
|
|
671
|
+
border-color: rgb(255 255 255 / var(--tw-border-opacity));
|
|
672
|
+
}
|
|
673
|
+
.border-yellow-400 {
|
|
674
|
+
--tw-border-opacity: 1;
|
|
675
|
+
border-color: rgb(250 204 21 / var(--tw-border-opacity));
|
|
676
|
+
}
|
|
642
677
|
.bg-base-100 {
|
|
643
678
|
--tw-bg-opacity: 1;
|
|
644
679
|
background-color: rgb(75 99 116 / var(--tw-bg-opacity));
|
|
@@ -658,10 +693,6 @@ video {
|
|
|
658
693
|
--tw-bg-opacity: 1;
|
|
659
694
|
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
|
|
660
695
|
}
|
|
661
|
-
.bg-blue-900 {
|
|
662
|
-
--tw-bg-opacity: 1;
|
|
663
|
-
background-color: rgb(30 58 138 / var(--tw-bg-opacity));
|
|
664
|
-
}
|
|
665
696
|
.bg-gray-600 {
|
|
666
697
|
--tw-bg-opacity: 1;
|
|
667
698
|
background-color: rgb(75 85 99 / var(--tw-bg-opacity));
|
|
@@ -670,10 +701,6 @@ video {
|
|
|
670
701
|
--tw-bg-opacity: 1;
|
|
671
702
|
background-color: rgb(34 197 94 / var(--tw-bg-opacity));
|
|
672
703
|
}
|
|
673
|
-
.bg-red-200 {
|
|
674
|
-
--tw-bg-opacity: 1;
|
|
675
|
-
background-color: rgb(254 202 202 / var(--tw-bg-opacity));
|
|
676
|
-
}
|
|
677
704
|
.p-1 {
|
|
678
705
|
padding: 0.25rem;
|
|
679
706
|
}
|
|
@@ -693,6 +720,9 @@ video {
|
|
|
693
720
|
padding-top: 0.75rem;
|
|
694
721
|
padding-bottom: 0.75rem;
|
|
695
722
|
}
|
|
723
|
+
.text-left {
|
|
724
|
+
text-align: left;
|
|
725
|
+
}
|
|
696
726
|
.text-center {
|
|
697
727
|
text-align: center;
|
|
698
728
|
}
|
|
@@ -704,16 +734,35 @@ video {
|
|
|
704
734
|
font-size: 0.75rem;
|
|
705
735
|
line-height: 1rem;
|
|
706
736
|
}
|
|
737
|
+
.font-bold {
|
|
738
|
+
font-weight: 700;
|
|
739
|
+
}
|
|
707
740
|
.uppercase {
|
|
708
741
|
text-transform: uppercase;
|
|
709
742
|
}
|
|
743
|
+
.text-blue-400 {
|
|
744
|
+
--tw-text-opacity: 1;
|
|
745
|
+
color: rgb(96 165 250 / var(--tw-text-opacity));
|
|
746
|
+
}
|
|
710
747
|
.text-current {
|
|
711
748
|
color: currentColor;
|
|
712
749
|
}
|
|
750
|
+
.text-green-500 {
|
|
751
|
+
--tw-text-opacity: 1;
|
|
752
|
+
color: rgb(34 197 94 / var(--tw-text-opacity));
|
|
753
|
+
}
|
|
754
|
+
.text-red-500 {
|
|
755
|
+
--tw-text-opacity: 1;
|
|
756
|
+
color: rgb(239 68 68 / var(--tw-text-opacity));
|
|
757
|
+
}
|
|
713
758
|
.text-white {
|
|
714
759
|
--tw-text-opacity: 1;
|
|
715
760
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
716
761
|
}
|
|
762
|
+
.text-yellow-400 {
|
|
763
|
+
--tw-text-opacity: 1;
|
|
764
|
+
color: rgb(250 204 21 / var(--tw-text-opacity));
|
|
765
|
+
}
|
|
717
766
|
.opacity-70 {
|
|
718
767
|
opacity: 0.7;
|
|
719
768
|
}
|
|
@@ -734,6 +783,22 @@ video {
|
|
|
734
783
|
--tw-shadow-color: #111B21;
|
|
735
784
|
--tw-shadow: var(--tw-shadow-colored);
|
|
736
785
|
}
|
|
786
|
+
.shadow-blue-700 {
|
|
787
|
+
--tw-shadow-color: #1d4ed8;
|
|
788
|
+
--tw-shadow: var(--tw-shadow-colored);
|
|
789
|
+
}
|
|
790
|
+
.shadow-green-700 {
|
|
791
|
+
--tw-shadow-color: #15803d;
|
|
792
|
+
--tw-shadow: var(--tw-shadow-colored);
|
|
793
|
+
}
|
|
794
|
+
.shadow-red-700 {
|
|
795
|
+
--tw-shadow-color: #b91c1c;
|
|
796
|
+
--tw-shadow: var(--tw-shadow-colored);
|
|
797
|
+
}
|
|
798
|
+
.shadow-yellow-700 {
|
|
799
|
+
--tw-shadow-color: #a16207;
|
|
800
|
+
--tw-shadow: var(--tw-shadow-colored);
|
|
801
|
+
}
|
|
737
802
|
.backdrop-blur-\[2px\] {
|
|
738
803
|
--tw-backdrop-blur: blur(2px);
|
|
739
804
|
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|