comand-component-library 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
|
|
1
|
-
import { defineComponent as Vn, h as Qt, resolveComponent as se, openBlock as s, createBlock as C, normalizeClass as b, createElementBlock as o, getCurrentInstance as bi, resolveDynamicComponent as xe, withModifiers as I, withCtx as P, withDirectives as ne, createElementVNode as h, createVNode as x, createCommentVNode as u, vShow as de, Fragment as _, toDisplayString as p, renderSlot as j, createTextVNode as F, renderList as B, mergeProps as A, resolveDirective as _i, normalizeProps as G, Transition as ue, toHandlers as ft, TransitionGroup as wt, createApp as ki, Teleport as xi,
|
2
|
-
const
|
1
|
+
import { defineComponent as Vn, h as Qt, resolveComponent as se, openBlock as s, createBlock as C, normalizeClass as b, createElementBlock as o, getCurrentInstance as bi, resolveDynamicComponent as xe, withModifiers as I, withCtx as P, withDirectives as ne, createElementVNode as h, createVNode as x, createCommentVNode as u, vShow as de, Fragment as _, toDisplayString as p, renderSlot as j, createTextVNode as F, renderList as B, mergeProps as A, resolveDirective as _i, normalizeProps as G, Transition as ue, toHandlers as ft, TransitionGroup as wt, createApp as ki, Teleport as xi, useCssVars as zn, normalizeStyle as De, vModelDynamic as vi, vModelText as wi, onBeforeUpdate as Ti } from "vue";
|
2
|
+
const we = /^[a-z0-9]+(-[a-z0-9]+)*$/, He = (e, n, t, a = "") => {
|
3
3
|
const l = e.split(":");
|
4
4
|
if (e.slice(0, 1) === "@") {
|
5
5
|
if (l.length < 2 || l.length > 3)
|
@@ -34,7 +34,7 @@ const Te = /^[a-z0-9]+(-[a-z0-9]+)*$/, He = (e, n, t, a = "") => {
|
|
34
34
|
return n && !Ne(r, t) ? null : r;
|
35
35
|
}
|
36
36
|
return null;
|
37
|
-
}, Ne = (e, n) => e ? !!((e.provider === "" || e.provider.match(
|
37
|
+
}, Ne = (e, n) => e ? !!((e.provider === "" || e.provider.match(we)) && (n && e.prefix === "" || e.prefix.match(we)) && e.name.match(we)) : !1, qn = Object.freeze(
|
38
38
|
{
|
39
39
|
left: 0,
|
40
40
|
top: 0,
|
@@ -125,7 +125,7 @@ function Un(e) {
|
|
125
125
|
const t = n.icons;
|
126
126
|
for (const l in t) {
|
127
127
|
const i = t[l];
|
128
|
-
if (!l.match(
|
128
|
+
if (!l.match(we) || typeof i.body != "string" || !Qe(
|
129
129
|
i,
|
130
130
|
gt
|
131
131
|
))
|
@@ -134,7 +134,7 @@ function Un(e) {
|
|
134
134
|
const a = n.aliases || {};
|
135
135
|
for (const l in a) {
|
136
136
|
const i = a[l], d = i.parent;
|
137
|
-
if (!l.match(
|
137
|
+
if (!l.match(we) || typeof d != "string" || !t[d] && !a[d] || !Qe(
|
138
138
|
i,
|
139
139
|
gt
|
140
140
|
))
|
@@ -168,19 +168,19 @@ function Di(e, n, t) {
|
|
168
168
|
}
|
169
169
|
return !1;
|
170
170
|
}
|
171
|
-
let
|
171
|
+
let Te = !1;
|
172
172
|
function Gn(e) {
|
173
|
-
return typeof e == "boolean" && (
|
173
|
+
return typeof e == "boolean" && (Te = e), Te;
|
174
174
|
}
|
175
175
|
function Ni(e) {
|
176
|
-
const n = typeof e == "string" ? He(e, !0,
|
176
|
+
const n = typeof e == "string" ? He(e, !0, Te) : e;
|
177
177
|
if (n) {
|
178
178
|
const t = me(n.provider, n.prefix), a = n.name;
|
179
179
|
return t.icons[a] || (t.missing.has(a) ? null : void 0);
|
180
180
|
}
|
181
181
|
}
|
182
182
|
function Pi(e, n) {
|
183
|
-
const t = He(e, !0,
|
183
|
+
const t = He(e, !0, Te);
|
184
184
|
if (!t)
|
185
185
|
return !1;
|
186
186
|
const a = me(t.provider, t.prefix);
|
@@ -189,7 +189,7 @@ function Pi(e, n) {
|
|
189
189
|
function Wn(e, n) {
|
190
190
|
if (typeof e != "object")
|
191
191
|
return !1;
|
192
|
-
if (typeof n != "string" && (n = e.provider || ""),
|
192
|
+
if (typeof n != "string" && (n = e.provider || ""), Te && !n && !e.prefix) {
|
193
193
|
let l = !1;
|
194
194
|
return Un(e) && (e.prefix = "", Rn(e, (i, d) => {
|
195
195
|
d && Pi(i, d) && (l = !0);
|
@@ -717,7 +717,7 @@ function ll(e, n, t) {
|
|
717
717
|
}
|
718
718
|
return !a || !l ? (t(void 0, 424), Xt) : a.query(n, l, t)().abort;
|
719
719
|
}
|
720
|
-
const $t = "iconify2",
|
720
|
+
const $t = "iconify2", Ie = "iconify", Kn = Ie + "-count", en = Ie + "-version", Xn = 36e5, sl = 168;
|
721
721
|
function Ct(e, n) {
|
722
722
|
try {
|
723
723
|
return e.getItem(n);
|
@@ -753,12 +753,12 @@ let Lt = !1;
|
|
753
753
|
function ol(e) {
|
754
754
|
Lt = e;
|
755
755
|
}
|
756
|
-
let
|
756
|
+
let Le = typeof window > "u" ? {} : window;
|
757
757
|
function ei(e) {
|
758
758
|
const n = e + "Storage";
|
759
759
|
try {
|
760
|
-
if (
|
761
|
-
return
|
760
|
+
if (Le && Le[n] && typeof Le[n].length == "number")
|
761
|
+
return Le[n];
|
762
762
|
} catch {
|
763
763
|
}
|
764
764
|
Ve[e] = !1;
|
@@ -772,13 +772,13 @@ function ti(e, n) {
|
|
772
772
|
if (a) {
|
773
773
|
const r = _t(t);
|
774
774
|
for (let c = 0; c < r; c++)
|
775
|
-
tn(t,
|
775
|
+
tn(t, Ie + c.toString());
|
776
776
|
}
|
777
777
|
Ot(t, en, $t), bt(t, 0);
|
778
778
|
return;
|
779
779
|
}
|
780
780
|
const l = Math.floor(Date.now() / Xn) - sl, i = (r) => {
|
781
|
-
const c =
|
781
|
+
const c = Ie + r.toString(), f = Ct(t, c);
|
782
782
|
if (typeof f == "string") {
|
783
783
|
try {
|
784
784
|
const g = JSON.parse(f);
|
@@ -840,7 +840,7 @@ function rl(e, n) {
|
|
840
840
|
};
|
841
841
|
return Ot(
|
842
842
|
l,
|
843
|
-
|
843
|
+
Ie + d.toString(),
|
844
844
|
JSON.stringify(r)
|
845
845
|
);
|
846
846
|
}
|
@@ -2334,7 +2334,7 @@ const Dt = /* @__PURE__ */ O(fs, [["render", gs]]), ps = {
|
|
2334
2334
|
}
|
2335
2335
|
}
|
2336
2336
|
};
|
2337
|
-
function
|
2337
|
+
function Se() {
|
2338
2338
|
let e = new Date().getTime();
|
2339
2339
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(n) {
|
2340
2340
|
const t = (e + Math.random() * 16) % 16 | 0;
|
@@ -2342,9 +2342,9 @@ function Me() {
|
|
2342
2342
|
});
|
2343
2343
|
}
|
2344
2344
|
function li() {
|
2345
|
-
return "cmd-" +
|
2345
|
+
return "cmd-" + Se();
|
2346
2346
|
}
|
2347
|
-
const
|
2347
|
+
const Me = {
|
2348
2348
|
props: {
|
2349
2349
|
id: {
|
2350
2350
|
type: String,
|
@@ -2391,7 +2391,7 @@ const bs = ["color", "date", "datetime-local", "file", "number", "range"], _s =
|
|
2391
2391
|
ie,
|
2392
2392
|
ps,
|
2393
2393
|
Nt,
|
2394
|
-
|
2394
|
+
Me,
|
2395
2395
|
Pt
|
2396
2396
|
],
|
2397
2397
|
data() {
|
@@ -3725,7 +3725,7 @@ const Xo = {
|
|
3725
3725
|
addHandlerProvider() {
|
3726
3726
|
const e = {
|
3727
3727
|
image: {
|
3728
|
-
id:
|
3728
|
+
id: Se(),
|
3729
3729
|
src: "media/images/demo-images/large/landscape-06.jpg",
|
3730
3730
|
srcImageLarge: "media/images/demo-images/large/landscape-06.jpg",
|
3731
3731
|
alt: "Alternative Text"
|
@@ -4031,7 +4031,7 @@ const ga = {
|
|
4031
4031
|
itemProvider() {
|
4032
4032
|
return {
|
4033
4033
|
image: {
|
4034
|
-
id:
|
4034
|
+
id: Se(),
|
4035
4035
|
src: "/media/images/demo-images/small/landscape-01.jpg",
|
4036
4036
|
srcImageLarge: "/media/images/demo-images/large/landscape-01.jpg",
|
4037
4037
|
alt: "Alternative Text",
|
@@ -4055,7 +4055,7 @@ const ga = {
|
|
4055
4055
|
return {
|
4056
4056
|
itemProviderOverwrite: () => ({
|
4057
4057
|
image: {
|
4058
|
-
id:
|
4058
|
+
id: Se(),
|
4059
4059
|
src: "/media/images/demo-images/small/landscape-01.jpg",
|
4060
4060
|
srcImageLarge: "/media/images/demo-images/large/landscape-01.jpg",
|
4061
4061
|
tooltip: "Tooltip DE"
|
@@ -4195,7 +4195,7 @@ const Bt = (e) => {
|
|
4195
4195
|
}, si = Vn({
|
4196
4196
|
name: "CmdFancyBox",
|
4197
4197
|
mixins: [
|
4198
|
-
|
4198
|
+
Me
|
4199
4199
|
],
|
4200
4200
|
emits: ["cancel", "confirm"],
|
4201
4201
|
data() {
|
@@ -4912,7 +4912,8 @@ const At = {
|
|
4912
4912
|
}
|
4913
4913
|
}, cn = () => {
|
4914
4914
|
zn((e) => ({
|
4915
|
-
|
4915
|
+
ea5fd23e: e.maxBoxBodyHeight,
|
4916
|
+
"203af1f4": e.cutoffTextLines
|
4916
4917
|
}));
|
4917
4918
|
}, un = At.setup;
|
4918
4919
|
At.setup = un ? (e, n) => (cn(), un(e, n)) : cn;
|
@@ -4979,8 +4980,7 @@ function Er(e, n, t, a, l, i) {
|
|
4979
4980
|
}, [
|
4980
4981
|
(w = t.useSlots) != null && w.includes("body") ? (s(), o("div", {
|
4981
4982
|
key: 0,
|
4982
|
-
class: b({ "default-padding": t.useDefaultPadding, "allow-scroll": t.allowContentToScroll })
|
4983
|
-
style: we(i.setMaxBoxBodyHeight)
|
4983
|
+
class: b({ "default-padding": t.useDefaultPadding, "allow-scroll": t.allowContentToScroll })
|
4984
4984
|
}, [
|
4985
4985
|
j(e.$slots, "body", {}, () => [
|
4986
4986
|
x(wt, { name: i.toggleTransition }, {
|
@@ -5001,7 +5001,7 @@ function Er(e, n, t, a, l, i) {
|
|
5001
5001
|
_: 1
|
5002
5002
|
}, 8, ["name"])
|
5003
5003
|
])
|
5004
|
-
],
|
5004
|
+
], 2)) : (s(), o(_, { key: 1 }, [
|
5005
5005
|
t.image ? (s(), o("img", {
|
5006
5006
|
key: 0,
|
5007
5007
|
src: t.image.src,
|
@@ -5767,7 +5767,7 @@ const Bd = {
|
|
5767
5767
|
ie,
|
5768
5768
|
Pd,
|
5769
5769
|
Nt,
|
5770
|
-
|
5770
|
+
Me,
|
5771
5771
|
Pt
|
5772
5772
|
],
|
5773
5773
|
data() {
|
@@ -6029,7 +6029,7 @@ function ec(e, n, t, a, l, i) {
|
|
6029
6029
|
class: b(["flag", i.optionCountry])
|
6030
6030
|
}, null, 10, qd)) : t.type === "color" ? (s(), o("span", {
|
6031
6031
|
key: 1,
|
6032
|
-
style:
|
6032
|
+
style: De("background: " + i.optionColor)
|
6033
6033
|
}, null, 4)) : u("", !0),
|
6034
6034
|
(g = i.optionIcon) != null && g.iconClass ? (s(), C(r, {
|
6035
6035
|
key: 2,
|
@@ -6039,7 +6039,7 @@ function ec(e, n, t, a, l, i) {
|
|
6039
6039
|
i.optionName ? (s(), o("span", {
|
6040
6040
|
key: 3,
|
6041
6041
|
class: "option-name",
|
6042
|
-
style:
|
6042
|
+
style: De(l.limitWidthStyle)
|
6043
6043
|
}, p(i.optionName), 5)) : u("", !0),
|
6044
6044
|
t.iconDropdown ? (s(), C(r, {
|
6045
6045
|
key: 4,
|
@@ -6124,7 +6124,7 @@ function ec(e, n, t, a, l, i) {
|
|
6124
6124
|
}, [
|
6125
6125
|
h("span", {
|
6126
6126
|
class: "color",
|
6127
|
-
style:
|
6127
|
+
style: De("background: " + y.value)
|
6128
6128
|
}, null, 4),
|
6129
6129
|
h("span", null, p(y.text), 1)
|
6130
6130
|
], 10, Xd)) : u("", !0)
|
@@ -6586,7 +6586,7 @@ const Ug = /* @__PURE__ */ O(Ic, [["render", Pc]]);
|
|
6586
6586
|
const Bc = {
|
6587
6587
|
mixins: [
|
6588
6588
|
Nt,
|
6589
|
-
|
6589
|
+
Me,
|
6590
6590
|
Pt
|
6591
6591
|
],
|
6592
6592
|
data() {
|
@@ -8930,7 +8930,7 @@ function Xm(e, n, t, a, l, i) {
|
|
8930
8930
|
t.useSlot ? (s(), o("div", {
|
8931
8931
|
class: "slot-wrapper",
|
8932
8932
|
key: l.index,
|
8933
|
-
style:
|
8933
|
+
style: De("background-image: url(" + i.currentItem.image.srcLarge + ")")
|
8934
8934
|
}, [
|
8935
8935
|
j(e.$slots, "item" + l.currentSlotItem)
|
8936
8936
|
], 4)) : (s(), o(_, { key: 0 }, [
|
@@ -9047,7 +9047,7 @@ const $m = {
|
|
9047
9047
|
});
|
9048
9048
|
},
|
9049
9049
|
updateHandlerProvider() {
|
9050
|
-
const e =
|
9050
|
+
const e = Se(), n = this.editablePath, t = this.editableTooltip, a = this.editableLinktext;
|
9051
9051
|
return K(this, {
|
9052
9052
|
update(l) {
|
9053
9053
|
l.id = e, l.path = n, l.tooltip = t, l.linkText = a;
|
@@ -9331,7 +9331,7 @@ function bh(e, n, t, a, l, i) {
|
|
9331
9331
|
const ip = /* @__PURE__ */ O(fh, [["render", bh]]);
|
9332
9332
|
const _h = {
|
9333
9333
|
name: "CmdSystemMessage",
|
9334
|
-
mixins: [
|
9334
|
+
mixins: [Me],
|
9335
9335
|
data() {
|
9336
9336
|
return {
|
9337
9337
|
showSystemMessage: !0
|
@@ -10713,13 +10713,13 @@ var Vf = {
|
|
10713
10713
|
assertOptions: Ef,
|
10714
10714
|
validators: Vt
|
10715
10715
|
}, pi = ee, zf = ci, Bn = kf, An = Ff, We = fi, yi = Vf, ye = yi.validators;
|
10716
|
-
function
|
10716
|
+
function Oe(e) {
|
10717
10717
|
this.defaults = e, this.interceptors = {
|
10718
10718
|
request: new Bn(),
|
10719
10719
|
response: new Bn()
|
10720
10720
|
};
|
10721
10721
|
}
|
10722
|
-
|
10722
|
+
Oe.prototype.request = function(n) {
|
10723
10723
|
typeof n == "string" ? (n = arguments[1] || {}, n.url = arguments[0]) : n = n || {}, n = We(this.defaults, n), n.method ? n.method = n.method.toLowerCase() : this.defaults.method ? n.method = this.defaults.method.toLowerCase() : n.method = "get";
|
10724
10724
|
var t = n.transitional;
|
10725
10725
|
t !== void 0 && yi.assertOptions(t, {
|
@@ -10760,11 +10760,11 @@ Le.prototype.request = function(n) {
|
|
10760
10760
|
d = d.then(i.shift(), i.shift());
|
10761
10761
|
return d;
|
10762
10762
|
};
|
10763
|
-
|
10763
|
+
Oe.prototype.getUri = function(n) {
|
10764
10764
|
return n = We(this.defaults, n), zf(n.url, n.params, n.paramsSerializer).replace(/^\?/, "");
|
10765
10765
|
};
|
10766
10766
|
pi.forEach(["delete", "get", "head", "options"], function(n) {
|
10767
|
-
|
10767
|
+
Oe.prototype[n] = function(t, a) {
|
10768
10768
|
return this.request(We(a || {}, {
|
10769
10769
|
method: n,
|
10770
10770
|
url: t,
|
@@ -10773,7 +10773,7 @@ pi.forEach(["delete", "get", "head", "options"], function(n) {
|
|
10773
10773
|
};
|
10774
10774
|
});
|
10775
10775
|
pi.forEach(["post", "put", "patch"], function(n) {
|
10776
|
-
|
10776
|
+
Oe.prototype[n] = function(t, a, l) {
|
10777
10777
|
return this.request(We(l || {}, {
|
10778
10778
|
method: n,
|
10779
10779
|
url: t,
|
@@ -10781,7 +10781,7 @@ pi.forEach(["post", "put", "patch"], function(n) {
|
|
10781
10781
|
}));
|
10782
10782
|
};
|
10783
10783
|
});
|
10784
|
-
var qf =
|
10784
|
+
var qf = Oe, ut, jn;
|
10785
10785
|
function Rf() {
|
10786
10786
|
if (jn)
|
10787
10787
|
return ut;
|
@@ -11766,7 +11766,7 @@ export {
|
|
11766
11766
|
cp as DirFocus,
|
11767
11767
|
up as DirTelephone,
|
11768
11768
|
li as createHtmlId,
|
11769
|
-
|
11769
|
+
Se as createUuid,
|
11770
11770
|
ve as getFileExtension,
|
11771
11771
|
Bt as openFancyBox,
|
11772
11772
|
mp as useSequence
|