sm-click-library-ui 0.0.10 → 0.0.12
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 +109 -167
- package/dist/sm-click-library-ui.umd.js +1 -1
- package/dist/styleSmClick.css +12 -29
- package/package.json +2 -1
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
import { getCurrentScope as
|
|
1
|
+
import { getCurrentScope as P, onScopeDispose as V, unref as j, watch as L, ref as S, computed as b, openBlock as v, createElementBlock as g, createElementVNode as f, toDisplayString as A, normalizeClass as C, renderSlot as F, createCommentVNode as w, pushScopeId as W, popScopeId as B } from "vue";
|
|
2
2
|
function H(e) {
|
|
3
|
-
return
|
|
3
|
+
return P() ? (V(e), !0) : !1;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
return typeof e == "function" ? e() :
|
|
5
|
+
function O(e) {
|
|
6
|
+
return typeof e == "function" ? e() : j(e);
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const I = 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 M = Object.prototype.toString, D = (e) => M.call(e) === "[object Object]", y = () => {
|
|
11
|
+
}, N = /* @__PURE__ */ T();
|
|
12
|
+
function T() {
|
|
13
|
+
var e, l;
|
|
14
|
+
return I && ((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
|
|
19
|
-
return (
|
|
16
|
+
function _(e) {
|
|
17
|
+
var l;
|
|
18
|
+
const s = O(e);
|
|
19
|
+
return (l = s == null ? void 0 : s.$el) != null ? l : s;
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
function
|
|
23
|
-
let
|
|
24
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([
|
|
21
|
+
const z = I ? window : void 0;
|
|
22
|
+
function k(...e) {
|
|
23
|
+
let l, s, n, r;
|
|
24
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([s, n, r] = e, l = z) : [l, s, n, r] = e, !l)
|
|
25
25
|
return y;
|
|
26
|
-
Array.isArray(
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
() => [
|
|
31
|
-
([
|
|
32
|
-
if (p(), !
|
|
26
|
+
Array.isArray(s) || (s = [s]), Array.isArray(n) || (n = [n]);
|
|
27
|
+
const a = [], p = () => {
|
|
28
|
+
a.forEach((c) => c()), a.length = 0;
|
|
29
|
+
}, d = (c, u, o, t) => (c.addEventListener(u, o, t), () => c.removeEventListener(u, o, t)), m = L(
|
|
30
|
+
() => [_(l), O(r)],
|
|
31
|
+
([c, u]) => {
|
|
32
|
+
if (p(), !c)
|
|
33
33
|
return;
|
|
34
|
-
const o =
|
|
35
|
-
|
|
36
|
-
...
|
|
34
|
+
const o = D(u) ? { ...u } : u;
|
|
35
|
+
a.push(
|
|
36
|
+
...s.flatMap((t) => n.map((i) => d(c, t, i, o)))
|
|
37
37
|
);
|
|
38
38
|
},
|
|
39
39
|
{ immediate: !0, flush: "post" }
|
|
40
40
|
), h = () => {
|
|
41
|
-
|
|
41
|
+
m(), p();
|
|
42
42
|
};
|
|
43
43
|
return H(h), h;
|
|
44
44
|
}
|
|
45
|
-
let
|
|
46
|
-
function
|
|
47
|
-
const { window:
|
|
48
|
-
if (!
|
|
45
|
+
let E = !1;
|
|
46
|
+
function G(e, l, s = {}) {
|
|
47
|
+
const { window: n = z, ignore: r = [], capture: a = !0, detectIframe: p = !1 } = s;
|
|
48
|
+
if (!n)
|
|
49
49
|
return y;
|
|
50
|
-
|
|
51
|
-
let
|
|
52
|
-
const
|
|
50
|
+
N && !E && (E = !0, Array.from(n.document.body.children).forEach((o) => o.addEventListener("click", y)), n.document.documentElement.addEventListener("click", y));
|
|
51
|
+
let d = !0;
|
|
52
|
+
const m = (o) => r.some((t) => {
|
|
53
53
|
if (typeof t == "string")
|
|
54
|
-
return Array.from(
|
|
54
|
+
return Array.from(n.document.querySelectorAll(t)).some((i) => i === o.target || o.composedPath().includes(i));
|
|
55
55
|
{
|
|
56
|
-
const
|
|
57
|
-
return
|
|
56
|
+
const i = _(t);
|
|
57
|
+
return i && (o.target === i || o.composedPath().includes(i));
|
|
58
58
|
}
|
|
59
|
-
}),
|
|
60
|
-
|
|
61
|
-
const t =
|
|
59
|
+
}), c = [
|
|
60
|
+
k(n, "click", (o) => {
|
|
61
|
+
const t = _(e);
|
|
62
62
|
if (!(!t || t === o.target || o.composedPath().includes(t))) {
|
|
63
|
-
if (o.detail === 0 && (
|
|
64
|
-
|
|
63
|
+
if (o.detail === 0 && (d = !m(o)), !d) {
|
|
64
|
+
d = !0;
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
l(o);
|
|
68
68
|
}
|
|
69
|
-
}, { passive: !0, capture:
|
|
70
|
-
|
|
71
|
-
const t =
|
|
72
|
-
|
|
69
|
+
}, { passive: !0, capture: a }),
|
|
70
|
+
k(n, "pointerdown", (o) => {
|
|
71
|
+
const t = _(e);
|
|
72
|
+
d = !m(o) && !!(t && !o.composedPath().includes(t));
|
|
73
73
|
}, { passive: !0 }),
|
|
74
|
-
p &&
|
|
74
|
+
p && k(n, "blur", (o) => {
|
|
75
75
|
setTimeout(() => {
|
|
76
76
|
var t;
|
|
77
|
-
const
|
|
78
|
-
((t =
|
|
77
|
+
const i = _(e);
|
|
78
|
+
((t = n.document.activeElement) == null ? void 0 : t.tagName) === "IFRAME" && !(i != null && i.contains(n.document.activeElement)) && l(o);
|
|
79
79
|
}, 0);
|
|
80
80
|
})
|
|
81
81
|
].filter(Boolean);
|
|
82
|
-
return () =>
|
|
82
|
+
return () => c.forEach((o) => o());
|
|
83
83
|
}
|
|
84
|
-
const
|
|
85
|
-
const
|
|
86
|
-
for (const [
|
|
87
|
-
n
|
|
88
|
-
return
|
|
89
|
-
},
|
|
84
|
+
const $ = (e, l) => {
|
|
85
|
+
const s = e.__vccOpts || e;
|
|
86
|
+
for (const [n, r] of l)
|
|
87
|
+
s[n] = r;
|
|
88
|
+
return s;
|
|
89
|
+
}, x = (e) => (W("data-v-66a625cd"), e = e(), B(), e), q = {
|
|
90
90
|
key: 0,
|
|
91
91
|
class: "line-clamp-2 uppercase text-xs truncate text-white"
|
|
92
|
-
},
|
|
92
|
+
}, R = {
|
|
93
93
|
key: 1,
|
|
94
94
|
class: "line-clamp-2 uppercase text-xs truncate text-white"
|
|
95
|
-
}, Z = /* @__PURE__ */
|
|
95
|
+
}, Z = /* @__PURE__ */ x(() => /* @__PURE__ */ f("path", {
|
|
96
96
|
"fill-rule": "evenodd",
|
|
97
97
|
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
98
|
"clip-rule": "evenodd"
|
|
@@ -101,14 +101,14 @@ const j = (e, i) => {
|
|
|
101
101
|
], K = {
|
|
102
102
|
key: 0,
|
|
103
103
|
class: "select_widget_lib"
|
|
104
|
-
}, Q = { key: 0 },
|
|
104
|
+
}, Q = { key: 0 }, U = {
|
|
105
105
|
key: 1,
|
|
106
|
-
class: "space-y-2
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
],
|
|
110
|
-
|
|
111
|
-
],
|
|
106
|
+
class: "space-y-2"
|
|
107
|
+
}, X = /* @__PURE__ */ x(() => /* @__PURE__ */ f("p", { class: "line-clamp-2 uppercase text-xs truncate" }, "Vertical", -1)), Y = [
|
|
108
|
+
X
|
|
109
|
+
], ee = /* @__PURE__ */ x(() => /* @__PURE__ */ f("p", { class: "line-clamp-2 uppercase text-xs truncate" }, "Horizontal", -1)), te = [
|
|
110
|
+
ee
|
|
111
|
+
], oe = {
|
|
112
112
|
__name: "primary_select",
|
|
113
113
|
props: {
|
|
114
114
|
titleFreeSlot: {
|
|
@@ -124,121 +124,63 @@ const j = (e, i) => {
|
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
emits: ["closeSelect"],
|
|
127
|
-
setup(e, { emit:
|
|
128
|
-
const
|
|
129
|
-
() =>
|
|
130
|
-
), h =
|
|
131
|
-
() =>
|
|
132
|
-
),
|
|
133
|
-
|
|
127
|
+
setup(e, { emit: l }) {
|
|
128
|
+
const s = e, n = l, r = S(!1), a = S("Horizontal"), p = S(null), d = b(() => s.selectConfig.length > 0), m = b(
|
|
129
|
+
() => s.selectConfig.some((t) => t.chartsConfig)
|
|
130
|
+
), h = b(
|
|
131
|
+
() => s.selectConfig.some((t) => t.freeSlot)
|
|
132
|
+
), c = () => {
|
|
133
|
+
r.value = !r.value;
|
|
134
134
|
}, u = (t) => {
|
|
135
|
-
|
|
135
|
+
r.value = !1, a.value = t === "horizontal" ? "Vertical" : "Horizontal", n("closeSelect", t);
|
|
136
136
|
};
|
|
137
|
-
return
|
|
138
|
-
|
|
139
|
-
}), (t,
|
|
137
|
+
return G(p, () => {
|
|
138
|
+
r.value && (r.value = !1);
|
|
139
|
+
}), (t, i) => d.value ? (v(), g("div", {
|
|
140
140
|
key: 0,
|
|
141
141
|
ref_key: "target",
|
|
142
142
|
ref: p,
|
|
143
143
|
class: "relative w-full"
|
|
144
144
|
}, [
|
|
145
|
-
|
|
146
|
-
onClick:
|
|
147
|
-
class: "bg-
|
|
145
|
+
f("button", {
|
|
146
|
+
onClick: c,
|
|
147
|
+
class: "bg-base-200 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
148
|
}, [
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
f("div", null, [
|
|
150
|
+
m.value ? (v(), g("p", q, A(a.value), 1)) : (v(), g("p", R, A(e.titleFreeSlot), 1))
|
|
151
151
|
]),
|
|
152
|
-
|
|
153
|
-
(
|
|
154
|
-
class: C([
|
|
152
|
+
f("div", null, [
|
|
153
|
+
(v(), g("svg", {
|
|
154
|
+
class: C([r.value ? "rotate-180 transition-transform ease-in-out" : "", "w-3 h-3 text-white"]),
|
|
155
155
|
xmlns: "http://www.w3.org/2000/svg",
|
|
156
156
|
fill: "currentColor",
|
|
157
157
|
viewBox: "0 0 24 24"
|
|
158
158
|
}, J, 2))
|
|
159
159
|
])
|
|
160
160
|
]),
|
|
161
|
-
|
|
162
|
-
h.value ? (
|
|
163
|
-
|
|
164
|
-
])) :
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
class: C([
|
|
168
|
-
onClick:
|
|
169
|
-
},
|
|
170
|
-
|
|
171
|
-
class: C([
|
|
172
|
-
onClick:
|
|
173
|
-
},
|
|
174
|
-
])) :
|
|
175
|
-
])) :
|
|
176
|
-
], 512)) :
|
|
161
|
+
r.value ? (v(), g("section", K, [
|
|
162
|
+
h.value ? (v(), g("div", Q, [
|
|
163
|
+
F(t.$slots, "free-slot", {}, void 0, !0)
|
|
164
|
+
])) : w("", !0),
|
|
165
|
+
m.value ? (v(), g("div", U, [
|
|
166
|
+
f("button", {
|
|
167
|
+
class: C([a.value === "Vertical" ? "bg-green-500" : "", "btn_select_widget_lib"]),
|
|
168
|
+
onClick: i[0] || (i[0] = () => u("horizontal"))
|
|
169
|
+
}, Y, 2),
|
|
170
|
+
f("button", {
|
|
171
|
+
class: C([a.value !== "Vertical" ? "bg-green-500" : "", "btn_select_widget_lib"]),
|
|
172
|
+
onClick: i[1] || (i[1] = () => u("vertical"))
|
|
173
|
+
}, te, 2)
|
|
174
|
+
])) : w("", !0)
|
|
175
|
+
])) : w("", !0)
|
|
176
|
+
], 512)) : w("", !0);
|
|
177
177
|
}
|
|
178
|
-
}, ne = /* @__PURE__ */
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}, ie = /* @__PURE__ */ P(() => /* @__PURE__ */ l("div", { class: "modal-overlay_lib absolute h-full bg-gray-600 w-full opacity-70" }, null, -1)), ce = { class: "modal_responsive_lib" }, ae = { class: "flex min-h-full items-center justify-center text-center lib-sm:p-0" }, re = { class: "modal_size_lib lg:w-2/6" }, de = { class: "modal_background_lib" }, ue = { class: "modal_tittle_lib text-current" }, pe = /* @__PURE__ */ P(() => /* @__PURE__ */ l("svg", {
|
|
182
|
-
class: "h-5 w-5",
|
|
183
|
-
fill: "currentColor",
|
|
184
|
-
viewBox: "0 0 20 20",
|
|
185
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
186
|
-
}, [
|
|
187
|
-
/* @__PURE__ */ l("path", {
|
|
188
|
-
"fill-rule": "evenodd",
|
|
189
|
-
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
|
-
"clip-rule": "evenodd"
|
|
191
|
-
})
|
|
192
|
-
], -1)), fe = [
|
|
193
|
-
pe
|
|
194
|
-
], _e = { class: "p-4" }, me = { class: "w-full" }, ve = { class: "block" }, he = { class: "modal_end_button_lib lib-sm" }, ge = {
|
|
195
|
-
__name: "simple_modal",
|
|
196
|
-
props: {
|
|
197
|
-
isOpen: Boolean,
|
|
198
|
-
default: !1
|
|
199
|
-
},
|
|
200
|
-
emits: ["update:isOpen"],
|
|
201
|
-
setup(e, { emit: i }) {
|
|
202
|
-
const n = e, s = i, c = () => {
|
|
203
|
-
s("update:isOpen", !n.isOpen);
|
|
204
|
-
};
|
|
205
|
-
return (r, p) => e.isOpen ? (_(), m("div", le, [
|
|
206
|
-
ie,
|
|
207
|
-
l("div", ce, [
|
|
208
|
-
l("div", ae, [
|
|
209
|
-
l("div", re, [
|
|
210
|
-
l("div", de, [
|
|
211
|
-
l("div", ue, [
|
|
212
|
-
w(r.$slots, "header", {}, void 0, !0),
|
|
213
|
-
l("button", {
|
|
214
|
-
onClick: c,
|
|
215
|
-
class: "modal_close_button_lib",
|
|
216
|
-
"data-modal-toggle": "editUserModal"
|
|
217
|
-
}, fe)
|
|
218
|
-
]),
|
|
219
|
-
l("div", _e, [
|
|
220
|
-
l("div", me, [
|
|
221
|
-
l("label", ve, [
|
|
222
|
-
w(r.$slots, "body", {}, void 0, !0)
|
|
223
|
-
])
|
|
224
|
-
])
|
|
225
|
-
]),
|
|
226
|
-
l("div", he, [
|
|
227
|
-
w(r.$slots, "footer", {}, void 0, !0)
|
|
228
|
-
])
|
|
229
|
-
])
|
|
230
|
-
])
|
|
231
|
-
])
|
|
232
|
-
])
|
|
233
|
-
])) : g("", !0);
|
|
234
|
-
}
|
|
235
|
-
}, be = /* @__PURE__ */ j(ge, [["__scopeId", "data-v-606bbd6b"]]);
|
|
236
|
-
function we(e) {
|
|
237
|
-
e.component("primarySelect", ne), e.component("simpleModal", be);
|
|
178
|
+
}, ne = /* @__PURE__ */ $(oe, [["__scopeId", "data-v-66a625cd"]]);
|
|
179
|
+
function se(e) {
|
|
180
|
+
e.component("primarySelect", ne);
|
|
238
181
|
}
|
|
239
|
-
const
|
|
182
|
+
const ie = { install: se };
|
|
240
183
|
export {
|
|
241
|
-
|
|
242
|
-
ne as primarySelect
|
|
243
|
-
be as simpleModal
|
|
184
|
+
ie as default,
|
|
185
|
+
ne as primarySelect
|
|
244
186
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(f,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(f=typeof globalThis<"u"?globalThis:f||self,e(f["sm-click-library-ui"]={},f.Vue))})(this,function(f,e){"use strict";function V(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function k(t){return typeof t=="function"?t():e.unref(t)}const b=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const B=Object.prototype.toString,A=t=>B.call(t)==="[object Object]",w=()=>{},O=N();function N(){var t,c;return b&&((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=k(t);return(c=s==null?void 0:s.$el)!=null?c:s}const E=b?window:void 0;function y(...t){let c,s,l,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([s,l,r]=t,c=E):[c,s,l,r]=t,!c)return w;Array.isArray(s)||(s=[s]),Array.isArray(l)||(l=[l]);const d=[],m=()=>{d.forEach(a=>a()),d.length=0},p=(a,u,n,o)=>(a.addEventListener(u,n,o),()=>a.removeEventListener(u,n,o)),_=e.watch(()=>[h(c),k(r)],([a,u])=>{if(m(),!a)return;const n=A(u)?{...u}:u;d.push(...s.flatMap(o=>l.map(i=>p(a,o,i,n))))},{immediate:!0,flush:"post"}),g=()=>{_(),m()};return V(g),g}let C=!1;function v(t,c,s={}){const{window:l=E,ignore:r=[],capture:d=!0,detectIframe:m=!1}=s;if(!l)return w;O&&!C&&(C=!0,Array.from(l.document.body.children).forEach(n=>n.addEventListener("click",w)),l.document.documentElement.addEventListener("click",w));let p=!0;const _=n=>r.some(o=>{if(typeof o=="string")return Array.from(l.document.querySelectorAll(o)).some(i=>i===n.target||n.composedPath().includes(i));{const i=h(o);return i&&(n.target===i||n.composedPath().includes(i))}}),a=[y(l,"click",n=>{const o=h(t);if(!(!o||o===n.target||n.composedPath().includes(o))){if(n.detail===0&&(p=!_(n)),!p){p=!0;return}c(n)}},{passive:!0,capture:d}),y(l,"pointerdown",n=>{const o=h(t);p=!_(n)&&!!(o&&!n.composedPath().includes(o))},{passive:!0}),m&&y(l,"blur",n=>{setTimeout(()=>{var o;const i=h(t);((o=l.document.activeElement)==null?void 0:o.tagName)==="IFRAME"&&!(i!=null&&i.contains(l.document.activeElement))&&c(n)},0)})].filter(Boolean);return()=>a.forEach(n=>n())}const I=(t,c)=>{const s=t.__vccOpts||t;for(const[l,r]of c)s[l]=r;return s},S=t=>(e.pushScopeId("data-v-66a625cd"),t=t(),e.popScopeId(),t),z={key:0,class:"line-clamp-2 uppercase text-xs truncate text-white"},j={key:1,class:"line-clamp-2 uppercase text-xs truncate text-white"},P=[S(()=>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))],L={key:0,class:"select_widget_lib"},M={key:0},T={key:1,class:"space-y-2"},F=[S(()=>e.createElementVNode("p",{class:"line-clamp-2 uppercase text-xs truncate"},"Vertical",-1))],W=[S(()=>e.createElementVNode("p",{class:"line-clamp-2 uppercase text-xs truncate"},"Horizontal",-1))],x=I({__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,r=e.ref(!1),d=e.ref("Horizontal"),m=e.ref(null),p=e.computed(()=>s.selectConfig.length>0),_=e.computed(()=>s.selectConfig.some(o=>o.chartsConfig)),g=e.computed(()=>s.selectConfig.some(o=>o.freeSlot)),a=()=>{r.value=!r.value},u=o=>{r.value=!1,d.value=o==="horizontal"?"Vertical":"Horizontal",l("closeSelect",o)};return v(m,()=>{r.value&&(r.value=!1)}),(o,i)=>p.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"target",ref:m,class:"relative w-full"},[e.createElementVNode("button",{onClick:a,class:"bg-base-200 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,[_.value?(e.openBlock(),e.createElementBlock("p",z,e.toDisplayString(d.value),1)):(e.openBlock(),e.createElementBlock("p",j,e.toDisplayString(t.titleFreeSlot),1))]),e.createElementVNode("div",null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([r.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"},P,2))])]),r.value?(e.openBlock(),e.createElementBlock("section",L,[g.value?(e.openBlock(),e.createElementBlock("div",M,[e.renderSlot(o.$slots,"free-slot",{},void 0,!0)])):e.createCommentVNode("",!0),_.value?(e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("button",{class:e.normalizeClass([d.value==="Vertical"?"bg-green-500":"","btn_select_widget_lib"]),onClick:i[0]||(i[0]=()=>u("horizontal"))},F,2),e.createElementVNode("button",{class:e.normalizeClass([d.value!=="Vertical"?"bg-green-500":"","btn_select_widget_lib"]),onClick:i[1]||(i[1]=()=>u("vertical"))},W,2)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],512)):e.createCommentVNode("",!0)}},[["__scopeId","data-v-66a625cd"]]);function D(t){t.component("primarySelect",x)}const H={install:D};f.default=H,f.primarySelect=x,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/styleSmClick.css
CHANGED
|
@@ -635,9 +635,13 @@ video {
|
|
|
635
635
|
border-top-left-radius: 1rem;
|
|
636
636
|
border-top-right-radius: 1rem;
|
|
637
637
|
}
|
|
638
|
-
.
|
|
639
|
-
--tw-
|
|
640
|
-
|
|
638
|
+
.bg-base-100 {
|
|
639
|
+
--tw-bg-opacity: 1;
|
|
640
|
+
background-color: rgb(75 99 116 / var(--tw-bg-opacity));
|
|
641
|
+
}
|
|
642
|
+
.bg-base-200 {
|
|
643
|
+
--tw-bg-opacity: 1;
|
|
644
|
+
background-color: rgb(38 52 61 / var(--tw-bg-opacity));
|
|
641
645
|
}
|
|
642
646
|
.bg-black {
|
|
643
647
|
--tw-bg-opacity: 1;
|
|
@@ -655,21 +659,6 @@ video {
|
|
|
655
659
|
--tw-bg-opacity: 1;
|
|
656
660
|
background-color: rgb(34 197 94 / var(--tw-bg-opacity));
|
|
657
661
|
}
|
|
658
|
-
.bg-lib-base-100 {
|
|
659
|
-
--tw-bg-opacity: 1;
|
|
660
|
-
background-color: rgb(75 99 116 / var(--tw-bg-opacity));
|
|
661
|
-
}
|
|
662
|
-
.bg-lib-base-200 {
|
|
663
|
-
--tw-bg-opacity: 1;
|
|
664
|
-
background-color: rgb(38 52 61 / var(--tw-bg-opacity));
|
|
665
|
-
}
|
|
666
|
-
.bg-lib-base-200\/40 {
|
|
667
|
-
background-color: rgb(38 52 61 / 0.4);
|
|
668
|
-
}
|
|
669
|
-
.bg-lib-base-300 {
|
|
670
|
-
--tw-bg-opacity: 1;
|
|
671
|
-
background-color: rgb(17 27 33 / var(--tw-bg-opacity));
|
|
672
|
-
}
|
|
673
662
|
.p-1 {
|
|
674
663
|
padding: 0.25rem;
|
|
675
664
|
}
|
|
@@ -726,7 +715,7 @@ video {
|
|
|
726
715
|
--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
|
|
727
716
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
728
717
|
}
|
|
729
|
-
.shadow-
|
|
718
|
+
.shadow-base-300 {
|
|
730
719
|
--tw-shadow-color: #111B21;
|
|
731
720
|
--tw-shadow: var(--tw-shadow-colored);
|
|
732
721
|
}
|
|
@@ -803,19 +792,13 @@ video {
|
|
|
803
792
|
--tw-scale-y: 1.05;
|
|
804
793
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
805
794
|
}
|
|
806
|
-
|
|
807
|
-
--tw-bg-opacity: 1;
|
|
808
|
-
background-color: rgb(75 99 116 / var(--tw-bg-opacity));
|
|
809
|
-
}
|
|
810
|
-
@media (min-width: 864px) {
|
|
795
|
+
@media (min-width: 1280px) {
|
|
811
796
|
|
|
812
|
-
.
|
|
813
|
-
|
|
797
|
+
.lg\:mt-0 {
|
|
798
|
+
margin-top: 0px;
|
|
814
799
|
}
|
|
815
|
-
}
|
|
816
|
-
@media (min-width: 1512px) {
|
|
817
800
|
|
|
818
|
-
.
|
|
801
|
+
.lg\:w-2\/6 {
|
|
819
802
|
width: 33.333333%;
|
|
820
803
|
}
|
|
821
804
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sm-click-library-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"main": "dist/sm-click-library-ui.es.js",
|
|
5
5
|
"module": "dist/sm-click-library-ui.umd.js",
|
|
6
6
|
"private": false,
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@tailwindcss/typography": "^0.5.13",
|
|
13
13
|
"@vueuse/core": "^10.11.0",
|
|
14
|
+
"daisyui": "^4.12.10",
|
|
14
15
|
"tailwind-scrollbar": "^3.1.0",
|
|
15
16
|
"vue": "^3.4.29"
|
|
16
17
|
},
|