tttb 0.0.20
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.
Potentially problematic release.
This version of tttb might be problematic. Click here for more details.
- package/LICENSE +21 -0
- package/README.md +38 -0
- package/dist/es/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/es/components.js +32 -0
- package/dist/es/directives.js +14 -0
- package/dist/es/hooks.js +4 -0
- package/dist/es/index.js +80 -0
- package/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +389 -0
- package/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +399 -0
- package/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +129 -0
- package/dist/es/node_modules/@fortawesome/fontawesome-svg-core/index.js +3074 -0
- package/dist/es/node_modules/@fortawesome/free-brands-svg-icons/index.js +3155 -0
- package/dist/es/node_modules/@fortawesome/free-regular-svg-icons/index.js +1227 -0
- package/dist/es/node_modules/@fortawesome/free-solid-svg-icons/index.js +9601 -0
- package/dist/es/node_modules/@fortawesome/vue-fontawesome/index.es.js +487 -0
- package/dist/es/src/components/Button/index.js +6 -0
- package/dist/es/src/components/Button/index.vue.js +73 -0
- package/dist/es/src/components/Checkbox/index.js +6 -0
- package/dist/es/src/components/Checkbox/index.vue.js +60 -0
- package/dist/es/src/components/Dialog/DialogItem.vue.js +73 -0
- package/dist/es/src/components/Dialog/DialogPrompt.vue.js +56 -0
- package/dist/es/src/components/Dialog/index.js +6 -0
- package/dist/es/src/components/Dialog/index.vue.js +84 -0
- package/dist/es/src/components/Icon/index.js +6 -0
- package/dist/es/src/components/Icon/index.vue.js +21 -0
- package/dist/es/src/components/Icon/props.js +31 -0
- package/dist/es/src/components/Loading/index.js +6 -0
- package/dist/es/src/components/Loading/index.vue.js +45 -0
- package/dist/es/src/components/Message/index.js +6 -0
- package/dist/es/src/components/Message/index.vue.js +41 -0
- package/dist/es/src/components/Modal/index.js +6 -0
- package/dist/es/src/components/Modal/index.vue.js +67 -0
- package/dist/es/src/components/Nav/index.js +6 -0
- package/dist/es/src/components/Nav/index.vue.js +83 -0
- package/dist/es/src/components/Pagination/index.js +6 -0
- package/dist/es/src/components/Pagination/index.vue.js +151 -0
- package/dist/es/src/components/Switch/index.js +6 -0
- package/dist/es/src/components/Switch/index.vue.js +80 -0
- package/dist/es/src/components/Table/index.js +6 -0
- package/dist/es/src/components/Table/index.vue.js +42 -0
- package/dist/es/src/components/Timer/index.js +6 -0
- package/dist/es/src/components/Timer/index.vue.js +30 -0
- package/dist/es/src/components/Tooltip/index.js +6 -0
- package/dist/es/src/components/Tooltip/index.vue.js +123 -0
- package/dist/es/src/components/Tooltip/props.js +47 -0
- package/dist/es/src/components/Warn/index.js +6 -0
- package/dist/es/src/components/Warn/index.vue.js +23 -0
- package/dist/es/src/components/Watermark/index.js +6 -0
- package/dist/es/src/components/Watermark/index.vue.js +69 -0
- package/dist/es/src/components/Watermark/useWatermarkBg.js +11 -0
- package/dist/es/src/directives/vDelayIn.js +86 -0
- package/dist/es/src/directives/vLazy.js +63 -0
- package/dist/es/src/directives/vLoading.js +39 -0
- package/dist/es/src/directives/vSlideIn.js +39 -0
- package/dist/es/src/directives/vTextJump.js +36 -0
- package/dist/es/src/directives/vTooltip.js +41 -0
- package/dist/es/src/helpers.js +7 -0
- package/dist/es/src/hooks/useScrollControl.js +83 -0
- package/dist/es/src/utils/dialog.js +34 -0
- package/dist/es/src/utils/localStorage.js +25 -0
- package/dist/es/src/utils/msg.js +27 -0
- package/dist/es/src/utils/tools.js +70 -0
- package/dist/es/tttb.css +1 -0
- package/dist/es/utils.js +22 -0
- package/dist/umd/tb-ui.css +1 -0
- package/dist/umd/tb-ui.umd.cjs +563 -0
- package/package.json +61 -0
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
import { defineComponent as _, computed as d, watch as $, h as k } from "vue";
|
|
2
|
+
import { parse as O, icon as E, config as T, text as R } from "../fontawesome-svg-core/index.js";
|
|
3
|
+
function A(e, t) {
|
|
4
|
+
(t == null || t > e.length) && (t = e.length);
|
|
5
|
+
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
6
|
+
return n;
|
|
7
|
+
}
|
|
8
|
+
function U(e) {
|
|
9
|
+
if (Array.isArray(e)) return A(e);
|
|
10
|
+
}
|
|
11
|
+
function i(e, t, r) {
|
|
12
|
+
return (t = Z(t)) in e ? Object.defineProperty(e, t, {
|
|
13
|
+
value: r,
|
|
14
|
+
enumerable: !0,
|
|
15
|
+
configurable: !0,
|
|
16
|
+
writable: !0
|
|
17
|
+
}) : e[t] = r, e;
|
|
18
|
+
}
|
|
19
|
+
function q(e) {
|
|
20
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
21
|
+
}
|
|
22
|
+
function G() {
|
|
23
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
24
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
25
|
+
}
|
|
26
|
+
function I(e, t) {
|
|
27
|
+
var r = Object.keys(e);
|
|
28
|
+
if (Object.getOwnPropertySymbols) {
|
|
29
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
30
|
+
t && (n = n.filter(function(o) {
|
|
31
|
+
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
32
|
+
})), r.push.apply(r, n);
|
|
33
|
+
}
|
|
34
|
+
return r;
|
|
35
|
+
}
|
|
36
|
+
function m(e) {
|
|
37
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
38
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
39
|
+
t % 2 ? I(Object(r), !0).forEach(function(n) {
|
|
40
|
+
i(e, n, r[n]);
|
|
41
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : I(Object(r)).forEach(function(n) {
|
|
42
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
return e;
|
|
46
|
+
}
|
|
47
|
+
function H(e, t) {
|
|
48
|
+
if (e == null) return {};
|
|
49
|
+
var r, n, o = M(e, t);
|
|
50
|
+
if (Object.getOwnPropertySymbols) {
|
|
51
|
+
var u = Object.getOwnPropertySymbols(e);
|
|
52
|
+
for (n = 0; n < u.length; n++) r = u[n], t.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
53
|
+
}
|
|
54
|
+
return o;
|
|
55
|
+
}
|
|
56
|
+
function M(e, t) {
|
|
57
|
+
if (e == null) return {};
|
|
58
|
+
var r = {};
|
|
59
|
+
for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
|
|
60
|
+
if (t.indexOf(n) !== -1) continue;
|
|
61
|
+
r[n] = e[n];
|
|
62
|
+
}
|
|
63
|
+
return r;
|
|
64
|
+
}
|
|
65
|
+
function P(e) {
|
|
66
|
+
return U(e) || q(e) || J(e) || G();
|
|
67
|
+
}
|
|
68
|
+
function V(e, t) {
|
|
69
|
+
if (typeof e != "object" || !e) return e;
|
|
70
|
+
var r = e[Symbol.toPrimitive];
|
|
71
|
+
if (r !== void 0) {
|
|
72
|
+
var n = r.call(e, t);
|
|
73
|
+
if (typeof n != "object") return n;
|
|
74
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
75
|
+
}
|
|
76
|
+
return (t === "string" ? String : Number)(e);
|
|
77
|
+
}
|
|
78
|
+
function Z(e) {
|
|
79
|
+
var t = V(e, "string");
|
|
80
|
+
return typeof t == "symbol" ? t : t + "";
|
|
81
|
+
}
|
|
82
|
+
function x(e) {
|
|
83
|
+
"@babel/helpers - typeof";
|
|
84
|
+
return x = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
85
|
+
return typeof t;
|
|
86
|
+
} : function(t) {
|
|
87
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
88
|
+
}, x(e);
|
|
89
|
+
}
|
|
90
|
+
function J(e, t) {
|
|
91
|
+
if (e) {
|
|
92
|
+
if (typeof e == "string") return A(e, t);
|
|
93
|
+
var r = {}.toString.call(e).slice(8, -1);
|
|
94
|
+
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? A(e, t) : void 0;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function h(e, t) {
|
|
98
|
+
return Array.isArray(t) && t.length > 0 || !Array.isArray(t) && t ? i({}, e, t) : {};
|
|
99
|
+
}
|
|
100
|
+
function Q(e) {
|
|
101
|
+
var t, r = (t = {
|
|
102
|
+
"fa-spin": e.spin,
|
|
103
|
+
"fa-pulse": e.pulse,
|
|
104
|
+
// the fixedWidth property has been deprecated as of version 7.0.0
|
|
105
|
+
"fa-fw": e.fixedWidth,
|
|
106
|
+
"fa-border": e.border,
|
|
107
|
+
"fa-li": e.listItem,
|
|
108
|
+
"fa-inverse": e.inverse,
|
|
109
|
+
"fa-flip": e.flip === !0,
|
|
110
|
+
"fa-flip-horizontal": e.flip === "horizontal" || e.flip === "both",
|
|
111
|
+
"fa-flip-vertical": e.flip === "vertical" || e.flip === "both"
|
|
112
|
+
}, i(i(i(i(i(i(i(i(i(i(t, "fa-".concat(e.size), e.size !== null), "fa-rotate-".concat(e.rotation), e.rotation !== null), "fa-rotate-by", e.rotateBy), "fa-pull-".concat(e.pull), e.pull !== null), "fa-swap-opacity", e.swapOpacity), "fa-bounce", e.bounce), "fa-shake", e.shake), "fa-beat", e.beat), "fa-fade", e.fade), "fa-beat-fade", e.beatFade), i(i(i(i(t, "fa-flash", e.flash), "fa-spin-pulse", e.spinPulse), "fa-spin-reverse", e.spinReverse), "fa-width-auto", e.widthAuto));
|
|
113
|
+
return Object.keys(r).map(function(n) {
|
|
114
|
+
return r[n] ? n : null;
|
|
115
|
+
}).filter(function(n) {
|
|
116
|
+
return n;
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, C = { exports: {} };
|
|
120
|
+
(function(e) {
|
|
121
|
+
(function(t) {
|
|
122
|
+
var r = function(a, l, y) {
|
|
123
|
+
if (!p(l) || W(l) || D(l) || F(l) || s(l))
|
|
124
|
+
return l;
|
|
125
|
+
var b, g = 0, z = 0;
|
|
126
|
+
if (f(l))
|
|
127
|
+
for (b = [], z = l.length; g < z; g++)
|
|
128
|
+
b.push(r(a, l[g], y));
|
|
129
|
+
else {
|
|
130
|
+
b = {};
|
|
131
|
+
for (var S in l)
|
|
132
|
+
Object.prototype.hasOwnProperty.call(l, S) && (b[a(S, y)] = r(a, l[S], y));
|
|
133
|
+
}
|
|
134
|
+
return b;
|
|
135
|
+
}, n = function(a, l) {
|
|
136
|
+
l = l || {};
|
|
137
|
+
var y = l.separator || "_", b = l.split || /(?=[A-Z])/;
|
|
138
|
+
return a.split(b).join(y);
|
|
139
|
+
}, o = function(a) {
|
|
140
|
+
return L(a) ? a : (a = a.replace(/[\-_\s]+(.)?/g, function(l, y) {
|
|
141
|
+
return y ? y.toUpperCase() : "";
|
|
142
|
+
}), a.substr(0, 1).toLowerCase() + a.substr(1));
|
|
143
|
+
}, u = function(a) {
|
|
144
|
+
var l = o(a);
|
|
145
|
+
return l.substr(0, 1).toUpperCase() + l.substr(1);
|
|
146
|
+
}, v = function(a, l) {
|
|
147
|
+
return n(a, l).toLowerCase();
|
|
148
|
+
}, c = Object.prototype.toString, s = function(a) {
|
|
149
|
+
return typeof a == "function";
|
|
150
|
+
}, p = function(a) {
|
|
151
|
+
return a === Object(a);
|
|
152
|
+
}, f = function(a) {
|
|
153
|
+
return c.call(a) == "[object Array]";
|
|
154
|
+
}, W = function(a) {
|
|
155
|
+
return c.call(a) == "[object Date]";
|
|
156
|
+
}, D = function(a) {
|
|
157
|
+
return c.call(a) == "[object RegExp]";
|
|
158
|
+
}, F = function(a) {
|
|
159
|
+
return c.call(a) == "[object Boolean]";
|
|
160
|
+
}, L = function(a) {
|
|
161
|
+
return a = a - 0, a === a;
|
|
162
|
+
}, w = function(a, l) {
|
|
163
|
+
var y = l && "process" in l ? l.process : l;
|
|
164
|
+
return typeof y != "function" ? a : function(b, g) {
|
|
165
|
+
return y(b, a, g);
|
|
166
|
+
};
|
|
167
|
+
}, B = {
|
|
168
|
+
camelize: o,
|
|
169
|
+
decamelize: v,
|
|
170
|
+
pascalize: u,
|
|
171
|
+
depascalize: v,
|
|
172
|
+
camelizeKeys: function(a, l) {
|
|
173
|
+
return r(w(o, l), a);
|
|
174
|
+
},
|
|
175
|
+
decamelizeKeys: function(a, l) {
|
|
176
|
+
return r(w(v, l), a, l);
|
|
177
|
+
},
|
|
178
|
+
pascalizeKeys: function(a, l) {
|
|
179
|
+
return r(w(u, l), a);
|
|
180
|
+
},
|
|
181
|
+
depascalizeKeys: function() {
|
|
182
|
+
return this.decamelizeKeys.apply(this, arguments);
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
e.exports ? e.exports = B : t.humps = B;
|
|
186
|
+
})(X);
|
|
187
|
+
})(C);
|
|
188
|
+
var Y = C.exports, ee = ["class", "style"];
|
|
189
|
+
function te(e) {
|
|
190
|
+
return e.split(";").map(function(t) {
|
|
191
|
+
return t.trim();
|
|
192
|
+
}).filter(function(t) {
|
|
193
|
+
return t;
|
|
194
|
+
}).reduce(function(t, r) {
|
|
195
|
+
var n = r.indexOf(":"), o = Y.camelize(r.slice(0, n)), u = r.slice(n + 1).trim();
|
|
196
|
+
return t[o] = u, t;
|
|
197
|
+
}, {});
|
|
198
|
+
}
|
|
199
|
+
function re(e) {
|
|
200
|
+
return e.split(/\s+/).reduce(function(t, r) {
|
|
201
|
+
return t[r] = !0, t;
|
|
202
|
+
}, {});
|
|
203
|
+
}
|
|
204
|
+
function j(e) {
|
|
205
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
206
|
+
if (typeof e == "string")
|
|
207
|
+
return e;
|
|
208
|
+
var n = (e.children || []).map(function(s) {
|
|
209
|
+
return j(s);
|
|
210
|
+
}), o = Object.keys(e.attributes || {}).reduce(function(s, p) {
|
|
211
|
+
var f = e.attributes[p];
|
|
212
|
+
switch (p) {
|
|
213
|
+
case "class":
|
|
214
|
+
s.class = re(f);
|
|
215
|
+
break;
|
|
216
|
+
case "style":
|
|
217
|
+
s.style = te(f);
|
|
218
|
+
break;
|
|
219
|
+
default:
|
|
220
|
+
s.attrs[p] = f;
|
|
221
|
+
}
|
|
222
|
+
return s;
|
|
223
|
+
}, {
|
|
224
|
+
attrs: {},
|
|
225
|
+
class: {},
|
|
226
|
+
style: {}
|
|
227
|
+
});
|
|
228
|
+
r.class;
|
|
229
|
+
var u = r.style, v = u === void 0 ? {} : u, c = H(r, ee);
|
|
230
|
+
return k(e.tag, m(m(m({}, t), {}, {
|
|
231
|
+
class: o.class,
|
|
232
|
+
style: m(m({}, o.style), v)
|
|
233
|
+
}, o.attrs), c), n);
|
|
234
|
+
}
|
|
235
|
+
var K = !1;
|
|
236
|
+
try {
|
|
237
|
+
K = process.env.NODE_ENV === "production";
|
|
238
|
+
} catch {
|
|
239
|
+
}
|
|
240
|
+
function ne() {
|
|
241
|
+
if (!K && console && typeof console.error == "function") {
|
|
242
|
+
var e;
|
|
243
|
+
(e = console).error.apply(e, arguments);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
function N(e) {
|
|
247
|
+
if (e && x(e) === "object" && e.prefix && e.iconName && e.icon)
|
|
248
|
+
return e;
|
|
249
|
+
if (O.icon)
|
|
250
|
+
return O.icon(e);
|
|
251
|
+
if (e === null)
|
|
252
|
+
return null;
|
|
253
|
+
if (x(e) === "object" && e.prefix && e.iconName)
|
|
254
|
+
return e;
|
|
255
|
+
if (Array.isArray(e) && e.length === 2)
|
|
256
|
+
return {
|
|
257
|
+
prefix: e[0],
|
|
258
|
+
iconName: e[1]
|
|
259
|
+
};
|
|
260
|
+
if (typeof e == "string")
|
|
261
|
+
return {
|
|
262
|
+
prefix: "fas",
|
|
263
|
+
iconName: e
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
var oe = _({
|
|
267
|
+
name: "FontAwesomeIcon",
|
|
268
|
+
props: {
|
|
269
|
+
border: {
|
|
270
|
+
type: Boolean,
|
|
271
|
+
default: !1
|
|
272
|
+
},
|
|
273
|
+
// the fixedWidth property has been deprecated as of version 7
|
|
274
|
+
fixedWidth: {
|
|
275
|
+
type: Boolean,
|
|
276
|
+
default: !1
|
|
277
|
+
},
|
|
278
|
+
flip: {
|
|
279
|
+
type: [Boolean, String],
|
|
280
|
+
default: !1,
|
|
281
|
+
validator: function(t) {
|
|
282
|
+
return [!0, !1, "horizontal", "vertical", "both"].indexOf(t) > -1;
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
icon: {
|
|
286
|
+
type: [Object, Array, String],
|
|
287
|
+
required: !0
|
|
288
|
+
},
|
|
289
|
+
mask: {
|
|
290
|
+
type: [Object, Array, String],
|
|
291
|
+
default: null
|
|
292
|
+
},
|
|
293
|
+
maskId: {
|
|
294
|
+
type: String,
|
|
295
|
+
default: null
|
|
296
|
+
},
|
|
297
|
+
listItem: {
|
|
298
|
+
type: Boolean,
|
|
299
|
+
default: !1
|
|
300
|
+
},
|
|
301
|
+
pull: {
|
|
302
|
+
type: String,
|
|
303
|
+
default: null,
|
|
304
|
+
validator: function(t) {
|
|
305
|
+
return ["right", "left"].indexOf(t) > -1;
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
pulse: {
|
|
309
|
+
type: Boolean,
|
|
310
|
+
default: !1
|
|
311
|
+
},
|
|
312
|
+
rotation: {
|
|
313
|
+
type: [String, Number],
|
|
314
|
+
default: null,
|
|
315
|
+
validator: function(t) {
|
|
316
|
+
return [90, 180, 270].indexOf(Number.parseInt(t, 10)) > -1;
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
// the rotateBy property is only supported in version 7.0.0 and later
|
|
320
|
+
rotateBy: {
|
|
321
|
+
type: Boolean,
|
|
322
|
+
default: !1
|
|
323
|
+
},
|
|
324
|
+
swapOpacity: {
|
|
325
|
+
type: Boolean,
|
|
326
|
+
default: !1
|
|
327
|
+
},
|
|
328
|
+
size: {
|
|
329
|
+
type: String,
|
|
330
|
+
default: null,
|
|
331
|
+
validator: function(t) {
|
|
332
|
+
return ["2xs", "xs", "sm", "lg", "xl", "2xl", "1x", "2x", "3x", "4x", "5x", "6x", "7x", "8x", "9x", "10x"].indexOf(t) > -1;
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
spin: {
|
|
336
|
+
type: Boolean,
|
|
337
|
+
default: !1
|
|
338
|
+
},
|
|
339
|
+
transform: {
|
|
340
|
+
type: [String, Object],
|
|
341
|
+
default: null
|
|
342
|
+
},
|
|
343
|
+
symbol: {
|
|
344
|
+
type: [Boolean, String],
|
|
345
|
+
default: !1
|
|
346
|
+
},
|
|
347
|
+
title: {
|
|
348
|
+
type: String,
|
|
349
|
+
default: null
|
|
350
|
+
},
|
|
351
|
+
titleId: {
|
|
352
|
+
type: String,
|
|
353
|
+
default: null
|
|
354
|
+
},
|
|
355
|
+
inverse: {
|
|
356
|
+
type: Boolean,
|
|
357
|
+
default: !1
|
|
358
|
+
},
|
|
359
|
+
bounce: {
|
|
360
|
+
type: Boolean,
|
|
361
|
+
default: !1
|
|
362
|
+
},
|
|
363
|
+
shake: {
|
|
364
|
+
type: Boolean,
|
|
365
|
+
default: !1
|
|
366
|
+
},
|
|
367
|
+
beat: {
|
|
368
|
+
type: Boolean,
|
|
369
|
+
default: !1
|
|
370
|
+
},
|
|
371
|
+
fade: {
|
|
372
|
+
type: Boolean,
|
|
373
|
+
default: !1
|
|
374
|
+
},
|
|
375
|
+
beatFade: {
|
|
376
|
+
type: Boolean,
|
|
377
|
+
default: !1
|
|
378
|
+
},
|
|
379
|
+
flash: {
|
|
380
|
+
type: Boolean,
|
|
381
|
+
default: !1
|
|
382
|
+
},
|
|
383
|
+
spinPulse: {
|
|
384
|
+
type: Boolean,
|
|
385
|
+
default: !1
|
|
386
|
+
},
|
|
387
|
+
spinReverse: {
|
|
388
|
+
type: Boolean,
|
|
389
|
+
default: !1
|
|
390
|
+
},
|
|
391
|
+
// the widthAuto property is only supported in version 7.0.0 and later
|
|
392
|
+
widthAuto: {
|
|
393
|
+
type: Boolean,
|
|
394
|
+
default: !1
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
setup: function(t, r) {
|
|
398
|
+
var n = r.attrs, o = d(function() {
|
|
399
|
+
return N(t.icon);
|
|
400
|
+
}), u = d(function() {
|
|
401
|
+
return h("classes", Q(t));
|
|
402
|
+
}), v = d(function() {
|
|
403
|
+
return h("transform", typeof t.transform == "string" ? O.transform(t.transform) : t.transform);
|
|
404
|
+
}), c = d(function() {
|
|
405
|
+
return h("mask", N(t.mask));
|
|
406
|
+
}), s = d(function() {
|
|
407
|
+
var f = m(m(m(m({}, u.value), v.value), c.value), {}, {
|
|
408
|
+
symbol: t.symbol,
|
|
409
|
+
maskId: t.maskId
|
|
410
|
+
});
|
|
411
|
+
return f.title = t.title, f.titleId = t.titleId, E(o.value, f);
|
|
412
|
+
});
|
|
413
|
+
$(s, function(f) {
|
|
414
|
+
if (!f)
|
|
415
|
+
return ne("Could not find one or more icon(s)", o.value, c.value);
|
|
416
|
+
}, {
|
|
417
|
+
immediate: !0
|
|
418
|
+
});
|
|
419
|
+
var p = d(function() {
|
|
420
|
+
return s.value ? j(s.value.abstract[0], {}, n) : null;
|
|
421
|
+
});
|
|
422
|
+
return function() {
|
|
423
|
+
return p.value;
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
});
|
|
427
|
+
_({
|
|
428
|
+
name: "FontAwesomeLayers",
|
|
429
|
+
props: {
|
|
430
|
+
fixedWidth: {
|
|
431
|
+
type: Boolean,
|
|
432
|
+
default: !1
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
setup: function(t, r) {
|
|
436
|
+
var n = r.slots, o = T.familyPrefix, u = d(function() {
|
|
437
|
+
return ["".concat(o, "-layers")].concat(P(t.fixedWidth ? ["".concat(o, "-fw")] : []));
|
|
438
|
+
});
|
|
439
|
+
return function() {
|
|
440
|
+
return k("div", {
|
|
441
|
+
class: u.value
|
|
442
|
+
}, n.default ? n.default() : []);
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
_({
|
|
447
|
+
name: "FontAwesomeLayersText",
|
|
448
|
+
props: {
|
|
449
|
+
value: {
|
|
450
|
+
type: [String, Number],
|
|
451
|
+
default: ""
|
|
452
|
+
},
|
|
453
|
+
transform: {
|
|
454
|
+
type: [String, Object],
|
|
455
|
+
default: null
|
|
456
|
+
},
|
|
457
|
+
counter: {
|
|
458
|
+
type: Boolean,
|
|
459
|
+
default: !1
|
|
460
|
+
},
|
|
461
|
+
position: {
|
|
462
|
+
type: String,
|
|
463
|
+
default: null,
|
|
464
|
+
validator: function(t) {
|
|
465
|
+
return ["bottom-left", "bottom-right", "top-left", "top-right"].indexOf(t) > -1;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
setup: function(t, r) {
|
|
470
|
+
var n = r.attrs, o = T.familyPrefix, u = d(function() {
|
|
471
|
+
return h("classes", [].concat(P(t.counter ? ["".concat(o, "-layers-counter")] : []), P(t.position ? ["".concat(o, "-layers-").concat(t.position)] : [])));
|
|
472
|
+
}), v = d(function() {
|
|
473
|
+
return h("transform", typeof t.transform == "string" ? O.transform(t.transform) : t.transform);
|
|
474
|
+
}), c = d(function() {
|
|
475
|
+
var p = R(t.value.toString(), m(m({}, v.value), u.value)), f = p.abstract;
|
|
476
|
+
return t.counter && (f[0].attributes.class = f[0].attributes.class.replace("fa-layers-text", "")), f[0];
|
|
477
|
+
}), s = d(function() {
|
|
478
|
+
return j(c.value, {}, n);
|
|
479
|
+
});
|
|
480
|
+
return function() {
|
|
481
|
+
return s.value;
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
});
|
|
485
|
+
export {
|
|
486
|
+
oe as FontAwesomeIcon
|
|
487
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ref as i, watchEffect as d, createElementBlock as f, openBlock as l, normalizeClass as m, createBlock as r, createCommentVNode as c, createElementVNode as p, unref as s, renderSlot as y } from "vue";
|
|
2
|
+
import v from "../Loading/index.js";
|
|
3
|
+
import k from "../Icon/index.js";
|
|
4
|
+
import "../../utils/dialog.js";
|
|
5
|
+
import "../../utils/localStorage.js";
|
|
6
|
+
import "../../utils/msg.js";
|
|
7
|
+
import { isPromise as g } from "../../utils/tools.js";
|
|
8
|
+
/* empty css */
|
|
9
|
+
import b from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
10
|
+
const B = ["disabled"], C = /* @__PURE__ */ Object.assign({
|
|
11
|
+
name: "Button"
|
|
12
|
+
}, {
|
|
13
|
+
__name: "index",
|
|
14
|
+
props: {
|
|
15
|
+
disabled: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
},
|
|
19
|
+
loading: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: !1
|
|
22
|
+
},
|
|
23
|
+
icon: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: ""
|
|
26
|
+
},
|
|
27
|
+
type: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "default",
|
|
30
|
+
validator: (e) => ["default", "primary", "warning", "danger", "success"].includes(e)
|
|
31
|
+
},
|
|
32
|
+
onClick: {
|
|
33
|
+
type: Function,
|
|
34
|
+
default: null
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
setup(e) {
|
|
38
|
+
const n = e, t = i(!1), o = i(!1), u = async () => {
|
|
39
|
+
if (t.value || o.value || !n.onClick) return;
|
|
40
|
+
const a = n.onClick();
|
|
41
|
+
if (g(a)) {
|
|
42
|
+
t.value = !0;
|
|
43
|
+
try {
|
|
44
|
+
await a;
|
|
45
|
+
} finally {
|
|
46
|
+
t.value = !1;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
return d(() => {
|
|
51
|
+
o.value = n.disabled, t.value = n.loading;
|
|
52
|
+
}), (a, _) => (l(), f("button", {
|
|
53
|
+
class: m(["button-container", e.type]),
|
|
54
|
+
disabled: o.value || t.value,
|
|
55
|
+
onClick: u
|
|
56
|
+
}, [
|
|
57
|
+
t.value ? (l(), r(s(v), {
|
|
58
|
+
key: 0,
|
|
59
|
+
size: 16
|
|
60
|
+
})) : c("", !0),
|
|
61
|
+
e.icon ? (l(), r(s(k), {
|
|
62
|
+
key: 1,
|
|
63
|
+
icon: e.icon
|
|
64
|
+
}, null, 8, ["icon"])) : c("", !0),
|
|
65
|
+
p("span", null, [
|
|
66
|
+
y(a.$slots, "default", {}, void 0, !0)
|
|
67
|
+
])
|
|
68
|
+
], 10, B));
|
|
69
|
+
}
|
|
70
|
+
}), V = /* @__PURE__ */ b(C, [["__scopeId", "data-v-719c19ce"]]);
|
|
71
|
+
export {
|
|
72
|
+
V as default
|
|
73
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { mergeModels as i, useModel as a, createElementBlock as r, openBlock as d, createElementVNode as e, withDirectives as c, vModelCheckbox as n, toDisplayString as u } from "vue";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import m from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = { class: "checkbox-container" }, h = { class: "label" }, v = ["value"], x = { class: "desc" }, b = /* @__PURE__ */ Object.assign({ name: "Checkbox" }, {
|
|
5
|
+
__name: "index",
|
|
6
|
+
props: /* @__PURE__ */ i({
|
|
7
|
+
value: {
|
|
8
|
+
required: !0
|
|
9
|
+
},
|
|
10
|
+
title: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: !0
|
|
13
|
+
}
|
|
14
|
+
}, {
|
|
15
|
+
modelValue: {},
|
|
16
|
+
modelModifiers: {}
|
|
17
|
+
}),
|
|
18
|
+
emits: ["update:modelValue"],
|
|
19
|
+
setup(o) {
|
|
20
|
+
const l = a(o, "modelValue");
|
|
21
|
+
return (g, t) => (d(), r("div", p, [
|
|
22
|
+
e("label", h, [
|
|
23
|
+
c(e("input", {
|
|
24
|
+
type: "checkbox",
|
|
25
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => l.value = s),
|
|
26
|
+
value: o.value
|
|
27
|
+
}, null, 8, v), [
|
|
28
|
+
[n, l.value]
|
|
29
|
+
]),
|
|
30
|
+
t[1] || (t[1] = e("svg", {
|
|
31
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
32
|
+
fill: "none",
|
|
33
|
+
viewBox: "0 0 200 200",
|
|
34
|
+
class: "svg"
|
|
35
|
+
}, [
|
|
36
|
+
e("rect", {
|
|
37
|
+
x: "0",
|
|
38
|
+
y: "0",
|
|
39
|
+
width: "200",
|
|
40
|
+
height: "200",
|
|
41
|
+
"stroke-width": "40",
|
|
42
|
+
class: "box",
|
|
43
|
+
fill: "rgba(207,205,205,0.425)",
|
|
44
|
+
rx: "30",
|
|
45
|
+
ry: "30"
|
|
46
|
+
}),
|
|
47
|
+
e("path", {
|
|
48
|
+
"stroke-width": "15",
|
|
49
|
+
d: "M52 111.018L76.9867 136L149 64",
|
|
50
|
+
class: "tick"
|
|
51
|
+
})
|
|
52
|
+
], -1)),
|
|
53
|
+
e("span", x, u(o.title), 1)
|
|
54
|
+
])
|
|
55
|
+
]));
|
|
56
|
+
}
|
|
57
|
+
}), w = /* @__PURE__ */ m(b, [["__scopeId", "data-v-e1e8e55f"]]);
|
|
58
|
+
export {
|
|
59
|
+
w as default
|
|
60
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ref as b, computed as v, createElementBlock as i, openBlock as e, normalizeStyle as g, createCommentVNode as c, createBlock as p, createElementVNode as f, withModifiers as T, Fragment as C, toDisplayString as u, normalizeClass as M } from "vue";
|
|
2
|
+
import x from "./DialogPrompt.vue.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import H from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const L = ["innerHTML"], D = ["innerHTML"], E = ["innerHTML"], h = { class: "btns" }, R = ["disabled"], B = {
|
|
6
|
+
__name: "DialogItem",
|
|
7
|
+
props: {
|
|
8
|
+
item: Object
|
|
9
|
+
},
|
|
10
|
+
emits: ["confirm", "cancel", "scrollRef"],
|
|
11
|
+
setup(t, { expose: d, emit: y }) {
|
|
12
|
+
const o = t, r = y, m = b(null);
|
|
13
|
+
d({ contentRef: m });
|
|
14
|
+
const k = v(() => o.item.type !== "prompt" ? !1 : o.item.content.some((l) => l.msg) || !!o.item.totalErr), a = () => {
|
|
15
|
+
if (o.item.type !== "prompt") {
|
|
16
|
+
r("confirm", !0);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
if (m.value.validateAll()) {
|
|
20
|
+
const l = o.item.content.map((n) => n.value);
|
|
21
|
+
r("confirm", l);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
return (l, n) => (e(), i("div", {
|
|
25
|
+
class: "area",
|
|
26
|
+
style: g({ color: t.item.textColor })
|
|
27
|
+
}, [
|
|
28
|
+
t.item.title ? (e(), i("p", {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: "title",
|
|
31
|
+
innerHTML: t.item.title
|
|
32
|
+
}, null, 8, L)) : c("", !0),
|
|
33
|
+
t.item.type === "prompt" ? (e(), p(x, {
|
|
34
|
+
key: 1,
|
|
35
|
+
class: "content",
|
|
36
|
+
ref_key: "contentRef",
|
|
37
|
+
ref: m,
|
|
38
|
+
content: t.item.content,
|
|
39
|
+
options: t.item,
|
|
40
|
+
"onUpdate:totalErr": n[0] || (n[0] = (s) => t.item.totalErr = s),
|
|
41
|
+
onSubmit: T(a, ["prevent"])
|
|
42
|
+
}, null, 8, ["content", "options"])) : (e(), i(C, { key: 2 }, [
|
|
43
|
+
t.item.content ? (e(), i("p", {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: "content",
|
|
46
|
+
ref_key: "contentRef",
|
|
47
|
+
ref: m,
|
|
48
|
+
innerHTML: t.item.content
|
|
49
|
+
}, null, 8, D)) : c("", !0)
|
|
50
|
+
], 64)),
|
|
51
|
+
t.item.tip ? (e(), i("p", {
|
|
52
|
+
key: 3,
|
|
53
|
+
class: "tip",
|
|
54
|
+
innerHTML: t.item.tip
|
|
55
|
+
}, null, 8, E)) : c("", !0),
|
|
56
|
+
f("div", h, [
|
|
57
|
+
t.item.type !== "alert" ? (e(), i("button", {
|
|
58
|
+
key: 0,
|
|
59
|
+
class: "btn cancel",
|
|
60
|
+
onClick: n[1] || (n[1] = (s) => l.$emit("cancel"))
|
|
61
|
+
}, u(t.item.cancelText), 1)) : c("", !0),
|
|
62
|
+
f("button", {
|
|
63
|
+
class: M(["btn confirm", { danger: t.item.danger }]),
|
|
64
|
+
disabled: k.value,
|
|
65
|
+
onClick: a
|
|
66
|
+
}, u(t.item.confirmText), 11, R)
|
|
67
|
+
])
|
|
68
|
+
], 4));
|
|
69
|
+
}
|
|
70
|
+
}, V = /* @__PURE__ */ H(B, [["__scopeId", "data-v-85b344bc"]]);
|
|
71
|
+
export {
|
|
72
|
+
V as default
|
|
73
|
+
};
|