vuesp-components 2.1.5 → 2.1.7
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/components/block/service/BlockService.vue.d.ts +2 -2
- package/dist/components/block/service/types.d.ts +2 -2
- package/dist/components/block/service/types.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardBase.vue.d.ts +2 -0
- package/dist/components/dashboard/cards/CardBase.vue.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardButton.vue.d.ts +2 -0
- package/dist/components/dashboard/cards/CardButton.vue.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardDate.vue.d.ts +2 -0
- package/dist/components/dashboard/cards/CardDate.vue.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardDimmer.vue.d.ts +2 -0
- package/dist/components/dashboard/cards/CardDimmer.vue.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardInfo.vue.d.ts +2 -0
- package/dist/components/dashboard/cards/CardInfo.vue.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardInput.vue.d.ts +2 -0
- package/dist/components/dashboard/cards/CardInput.vue.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardList.vue.d.ts +2 -0
- package/dist/components/dashboard/cards/CardList.vue.d.ts.map +1 -1
- package/dist/components/dashboard/cards/types.d.ts +1 -1
- package/dist/components/dashboard/cards/types.d.ts.map +1 -1
- package/dist/components/dashboard/edit/ItemEdit.vue.d.ts +1 -1
- package/dist/components/dashboard/edit/ItemEdit.vue.d.ts.map +1 -1
- package/dist/components/dashboard/edit/types.d.ts +5 -4
- package/dist/components/dashboard/edit/types.d.ts.map +1 -1
- package/dist/components/script/editor/ScriptEditor.vue.d.ts +2 -0
- package/dist/components/script/editor/ScriptEditor.vue.d.ts.map +1 -1
- package/dist/components/script/editor/types.d.ts +2 -1
- package/dist/components/script/editor/types.d.ts.map +1 -1
- package/dist/components/ui/autocomplete/VAutocomplete.vue.d.ts +17 -20
- package/dist/components/ui/autocomplete/VAutocomplete.vue.d.ts.map +1 -1
- package/dist/components/ui/autocomplete/types.d.ts +4 -4
- package/dist/components/ui/autocomplete/types.d.ts.map +1 -1
- package/dist/components/ui/dialog/VDialog.vue.d.ts.map +1 -1
- package/dist/components/ui/drag-drop/VDragDrop.vue.d.ts.map +1 -1
- package/dist/components/ui/list/VListObject.vue.d.ts.map +1 -1
- package/dist/components/ui/select/VSelect.vue.d.ts +0 -1
- package/dist/components/ui/select/VSelect.vue.d.ts.map +1 -1
- package/dist/components/ui/text-field/VTextField.vue.d.ts.map +1 -1
- package/dist/composables/index.es.js +50 -49
- package/dist/composables/types.d.ts +1 -0
- package/dist/composables/types.d.ts.map +1 -1
- package/dist/composables/useForms.d.ts.map +1 -1
- package/dist/dashboard/types.d.ts +1 -1
- package/dist/dashboard/types.d.ts.map +1 -1
- package/dist/helpers/general.d.ts +1 -0
- package/dist/helpers/general.d.ts.map +1 -1
- package/dist/helpers/index.es.js +17 -16
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +1354 -1328
- package/dist/style.css +1 -1
- package/dist/types/components.d.ts +2 -2
- package/dist/types/components.d.ts.map +1 -1
- package/dist/useSwipeDown-BctVX4c1.js +561 -0
- package/package.json +3 -3
- package/dist/useSwipeDown-DCYgiAUA.js +0 -448
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useForms.d.ts","sourceRoot":"","sources":["../../src/composables/useForms.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EAKd,MAAM,qBAAqB,CAAC;AAG7B,wBAAgB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"useForms.d.ts","sourceRoot":"","sources":["../../src/composables/useForms.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EAKd,MAAM,qBAAqB,CAAC;AAG7B,wBAAgB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,aAAa,CAgP9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/dashboard/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/dashboard/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,EAAE,IAAI,SAAS,MAAM,IAAI,IAAI,SAAS,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,SAAS,MAAM,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,KAAK,CAAC;AAEzL,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC;AAEzG,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC,EAAE,CAAC;AAE/G,MAAM,MAAM,6BAA6B,GAAG,qBAAqB,CAAC,MAAM,qBAAqB,CAAC,CAAC"}
|
|
@@ -8,4 +8,5 @@ export declare const addZero: (value: number) => string | number;
|
|
|
8
8
|
export declare const secToTime: (seconds: number) => string;
|
|
9
9
|
export declare const arrToStr: (v: number[]) => string;
|
|
10
10
|
export declare const strToArr: (v: string) => number[];
|
|
11
|
+
export declare const randomString: (l?: number) => string;
|
|
11
12
|
//# sourceMappingURL=general.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../src/helpers/general.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,GAAG,IAAI,QAO5C,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM,OAAO,KAAG,MAA8E,CAAC;AAE1H,eAAO,MAAM,KAAK,GAAI,KAAK,MAAM,QAA+B,CAAC;AAEjE,eAAO,MAAM,MAAM,G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AAM,EAAE,WAAgB,CAAC;AACrD,eAAO,MAAM,QAAQ,GAAI,GAAG,MAAM,aAAgC,CAAC;AAEnE,eAAO,MAAM,YAAY,GAAI,UAAK,WAAiI,CAAC"}
|
package/dist/helpers/index.es.js
CHANGED
|
@@ -10,9 +10,9 @@ const c = (t) => {
|
|
|
10
10
|
let o = Math.floor(Math.log(t) / Math.log(1024));
|
|
11
11
|
return o > 1 && (o = 1), Math.round(t / Math.pow(1024, o)) + " " + e[o];
|
|
12
12
|
}, S = (t, e = { year: "numeric", month: "numeric", day: "numeric" }, o = []) => new Date(t).toLocaleDateString(o, e), p = (t, e = { minute: "2-digit", hour: "2-digit" }, o = []) => new Date(t).toLocaleTimeString(o, e), s = (t) => t >= 10 ? t : `0${t}`, w = (t) => {
|
|
13
|
-
const e = Math.floor(t % 31536e3 % 2628e3 / 86400), o = Math.floor(t % (3600 * 24) / 3600), n = Math.floor(t % 3600 / 60),
|
|
14
|
-
return `${e ? e + " days " : ""} ${s(o)}:${s(n)}:${s(
|
|
15
|
-
}, y = (t) => t.join("."), M = (t) => t.split(".").map((e) => +e), T = (t, e = "file") => {
|
|
13
|
+
const e = Math.floor(t % 31536e3 % 2628e3 / 86400), o = Math.floor(t % (3600 * 24) / 3600), n = Math.floor(t % 3600 / 60), u = Math.floor(t % 60);
|
|
14
|
+
return `${e ? e + " days " : ""} ${s(o)}:${s(n)}:${s(u)}`;
|
|
15
|
+
}, y = (t) => t.join("."), M = (t) => t.split(".").map((e) => +e), T = (t = 6) => [...Array(t)].map(() => "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"[Math.random() * 62 | 0]).join(""), j = (t, e = "file") => {
|
|
16
16
|
const o = document.createElement("a");
|
|
17
17
|
o.setAttribute("download", e), o.href = t, document.body.appendChild(o), o.click(), o.remove();
|
|
18
18
|
}, E = (t) => new Promise((e, o) => {
|
|
@@ -20,38 +20,39 @@ const c = (t) => {
|
|
|
20
20
|
n.src = t, n.type = "text/javascript", n.async = !0, n.onload = () => e(n), n.onerror = () => o(new Error(`Ошибка загрузки скрипта: ${t}`)), document.head.appendChild(n);
|
|
21
21
|
}), r = typeof window < "u", l = (t) => (e, o) => o ? c(t.getItem(e)) : t.getItem(e), a = (t) => (e, o) => {
|
|
22
22
|
t.setItem(e, typeof o == "string" ? o : i(o));
|
|
23
|
-
}, d = r ? l(localStorage) : () => null,
|
|
24
|
-
}, L = r ? l(sessionStorage) : () => null,
|
|
25
|
-
},
|
|
23
|
+
}, d = r ? l(localStorage) : () => null, m = r ? a(localStorage) : () => {
|
|
24
|
+
}, L = r ? l(sessionStorage) : () => null, B = r ? a(sessionStorage) : () => {
|
|
25
|
+
}, $ = (t = "isShow") => {
|
|
26
26
|
const e = d(t);
|
|
27
|
-
return e ||
|
|
28
|
-
},
|
|
29
|
-
|
|
27
|
+
return e || m(t, "true"), !e;
|
|
28
|
+
}, k = (t) => {
|
|
29
|
+
m("theme", t), document.documentElement.classList.remove("dark"), document.documentElement.classList.remove("light"), document.documentElement.classList.add(t);
|
|
30
30
|
}, g = (t, e) => {
|
|
31
31
|
if (!t) return null;
|
|
32
32
|
for (const o of t)
|
|
33
33
|
if (!(e === "/" || o.path === "/") && (o.path === e || e.includes(o.path)))
|
|
34
34
|
return o;
|
|
35
35
|
return null;
|
|
36
|
-
},
|
|
36
|
+
}, D = (t, e) => g(t, e);
|
|
37
37
|
export {
|
|
38
38
|
s as addZero,
|
|
39
39
|
y as arrToStr,
|
|
40
|
-
|
|
40
|
+
k as changeTheme,
|
|
41
41
|
h as clone,
|
|
42
|
-
|
|
42
|
+
j as createDownloadLink,
|
|
43
43
|
S as dateUtcToString,
|
|
44
44
|
g as findMenuItem,
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
D as getPageTitle,
|
|
46
|
+
$ as isNewVersion,
|
|
47
47
|
c as jsonParse,
|
|
48
48
|
i as jsonString,
|
|
49
49
|
E as loadScript,
|
|
50
50
|
d as localGet,
|
|
51
|
-
|
|
51
|
+
m as localSet,
|
|
52
|
+
T as randomString,
|
|
52
53
|
w as secToTime,
|
|
53
54
|
L as sessionGet,
|
|
54
|
-
|
|
55
|
+
B as sessionSet,
|
|
55
56
|
M as strToArr,
|
|
56
57
|
p as timeUtcToString,
|
|
57
58
|
f as toByte
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,MAAM,EAAa,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,MAAM,EAAa,MAAM,KAAK,CAAC;AAO7C,OAAO,uBAAuB,CAAC;AAgB/B,cAAc,eAAe,CAAC;AAE9B,QAAA,MAAM,KAAK,EAAE,MAOZ,CAAC;AAEF,eAAe,KAAK,CAAC;AAErB,cAAc,aAAa,CAAC"}
|