vuesp-components 3.0.6 → 4.0.1
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/app/types.d.ts +6 -2
- package/dist/components/app/types.d.ts.map +1 -1
- package/dist/components/block/data/BlockDataSettings.vue.d.ts.map +1 -1
- package/dist/components/block/data/BlockMetricStyleDialog.vue.d.ts.map +1 -1
- package/dist/components/block/data/deviceStorage.d.ts.map +1 -1
- package/dist/components/block/data/metricStyles.d.ts +9 -9
- package/dist/components/block/data/metricStyles.d.ts.map +1 -1
- package/dist/components/block/data/types.d.ts +17 -17
- package/dist/components/block/data/types.d.ts.map +1 -1
- package/dist/components/block/data/useBlock.d.ts +20 -20
- package/dist/components/block/index.d.ts +1 -1
- package/dist/components/block/index.d.ts.map +1 -1
- package/dist/components/block/info/types.d.ts +9 -2
- package/dist/components/block/info/types.d.ts.map +1 -1
- package/dist/components/block/scan/BlockScan.vue.d.ts +3 -4
- package/dist/components/block/scan/BlockScan.vue.d.ts.map +1 -1
- package/dist/components/block/scan/types.d.ts +11 -3
- package/dist/components/block/scan/types.d.ts.map +1 -1
- package/dist/components/block/status/types.d.ts +9 -2
- package/dist/components/block/status/types.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardBase.vue.d.ts +36 -36
- package/dist/components/dashboard/cards/CardButton.vue.d.ts +4 -4
- package/dist/components/dashboard/cards/CardDate.vue.d.ts +4 -4
- package/dist/components/dashboard/cards/CardDimmer.vue.d.ts +4 -4
- package/dist/components/dashboard/cards/CardInfo.vue.d.ts +4 -4
- package/dist/components/dashboard/cards/CardInput.vue.d.ts +4 -4
- package/dist/components/dashboard/cards/CardList.vue.d.ts +4 -4
- package/dist/components/dashboard/edit/ItemEdit.vue.d.ts.map +1 -1
- package/dist/components/dashboard/edit/ItemOptions.vue.d.ts +3 -3
- package/dist/components/dashboard/edit/ItemOptions.vue.d.ts.map +1 -1
- package/dist/components/dashboard/edit/types.d.ts +2 -2
- package/dist/components/dashboard/edit/types.d.ts.map +1 -1
- package/dist/components/index.es.js +41 -42
- package/dist/components/ui/button/VButton.vue.d.ts.map +1 -1
- package/dist/components/ui/button/types.d.ts +4 -4
- package/dist/components/ui/button/types.d.ts.map +1 -1
- package/dist/components/ui/card/types.d.ts +6 -6
- package/dist/components/ui/card/types.d.ts.map +1 -1
- package/dist/components/ui/list/VListObject.vue.d.ts +2 -2
- package/dist/components/ui/list/types.d.ts +2 -2
- package/dist/components/ui/list/types.d.ts.map +1 -1
- package/dist/composables/types.d.ts +13 -13
- package/dist/composables/types.d.ts.map +1 -1
- package/dist/composables/useForms.d.ts +2 -2
- package/dist/composables/useForms.d.ts.map +1 -1
- package/dist/dashboard/index.d.ts +7 -5
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/index.es.js +30 -40
- package/dist/dashboard/types.d.ts +17 -8
- package/dist/dashboard/types.d.ts.map +1 -1
- package/dist/plugins/i18n/index.d.ts +2 -2
- package/dist/plugins/i18n/index.d.ts.map +1 -1
- package/dist/plugins/i18n/types.d.ts +10 -10
- package/dist/plugins/i18n/types.d.ts.map +1 -1
- package/dist/plugins/types.d.ts +4 -4
- package/dist/plugins/types.d.ts.map +1 -1
- package/dist/types/components.d.ts +1 -1
- package/dist/types/components.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/directives/index.d.ts +2 -2
- package/dist/utils/directives/index.d.ts.map +1 -1
- package/package.json +5 -4
- package/dist/types/messages.d.ts +0 -193
- package/dist/types/messages.d.ts.map +0 -1
|
@@ -4,19 +4,19 @@ declare function __VLS_template(): {
|
|
|
4
4
|
slots: {
|
|
5
5
|
icon?(_: {
|
|
6
6
|
size: "sm" | "md" | "lg" | "full";
|
|
7
|
-
icon: string;
|
|
8
|
-
value: string | number;
|
|
9
|
-
valueTo: string | number;
|
|
10
|
-
opts: import('../../../types').IDashboardItemOptions;
|
|
11
7
|
id: string;
|
|
12
8
|
name: string;
|
|
13
9
|
type: string;
|
|
14
10
|
entityType: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
opts: import('vuesp-dashboard-core').IDashboardItemOptions;
|
|
15
13
|
args: string[];
|
|
16
14
|
get: string;
|
|
17
15
|
getTo: string;
|
|
18
16
|
set: string;
|
|
19
17
|
meta: Record<string, unknown>;
|
|
18
|
+
value: string | number;
|
|
19
|
+
valueTo: string | number;
|
|
20
20
|
}): any;
|
|
21
21
|
dialog?(_: {}): any;
|
|
22
22
|
};
|
|
@@ -4,19 +4,19 @@ declare function __VLS_template(): {
|
|
|
4
4
|
slots: {
|
|
5
5
|
icon?(_: {
|
|
6
6
|
size: "sm" | "md" | "lg" | "full";
|
|
7
|
-
icon: string;
|
|
8
|
-
value: string | number;
|
|
9
|
-
valueTo: string | number;
|
|
10
|
-
opts: import('../../../types').IDashboardItemOptions;
|
|
11
7
|
id: string;
|
|
12
8
|
name: string;
|
|
13
9
|
type: string;
|
|
14
10
|
entityType: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
opts: import('vuesp-dashboard-core').IDashboardItemOptions;
|
|
15
13
|
args: string[];
|
|
16
14
|
get: string;
|
|
17
15
|
getTo: string;
|
|
18
16
|
set: string;
|
|
19
17
|
meta: Record<string, unknown>;
|
|
18
|
+
value: string | number;
|
|
19
|
+
valueTo: string | number;
|
|
20
20
|
}): any;
|
|
21
21
|
};
|
|
22
22
|
refs: {};
|
|
@@ -4,19 +4,19 @@ declare function __VLS_template(): {
|
|
|
4
4
|
slots: {
|
|
5
5
|
icon?(_: {
|
|
6
6
|
size: "sm" | "md" | "lg" | "full";
|
|
7
|
-
icon: string;
|
|
8
|
-
value: string | number;
|
|
9
|
-
valueTo: string | number;
|
|
10
|
-
opts: import('../../../types').IDashboardItemOptions;
|
|
11
7
|
id: string;
|
|
12
8
|
name: string;
|
|
13
9
|
type: string;
|
|
14
10
|
entityType: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
opts: import('vuesp-dashboard-core').IDashboardItemOptions;
|
|
15
13
|
args: string[];
|
|
16
14
|
get: string;
|
|
17
15
|
getTo: string;
|
|
18
16
|
set: string;
|
|
19
17
|
meta: Record<string, unknown>;
|
|
18
|
+
value: string | number;
|
|
19
|
+
valueTo: string | number;
|
|
20
20
|
}): any;
|
|
21
21
|
};
|
|
22
22
|
refs: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemEdit.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/edit/ItemEdit.vue"],"names":[],"mappings":"AA+GA;AA0OA,OAAO,KAAK,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"ItemEdit.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/edit/ItemEdit.vue"],"names":[],"mappings":"AA+GA;AA0OA,OAAO,KAAK,EAAE,cAAc,EAA4D,MAAM,SAAS,CAAC;AACxG,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,mCAAmC,CAAC;AAuHxF,iBAAS,cAAc;WA4eT,OAAO,IAA6B;;;;YAXvB,GAAG;;;YACA,GAAG;;;;EAehC;AAqCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;6FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IDashboardItemOptions, TValueDashboardItemOptions } from '../../../types';
|
|
2
2
|
import { IItemOptionsProps } from './types';
|
|
3
3
|
declare const _default: import('vue').DefineComponent<IItemOptionsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
4
|
-
update: (key: keyof
|
|
4
|
+
update: (key: keyof IDashboardItemOptions, value: TValueDashboardItemOptions) => any;
|
|
5
5
|
}, string, import('vue').PublicProps, Readonly<IItemOptionsProps> & Readonly<{
|
|
6
|
-
onUpdate?: ((key: keyof
|
|
6
|
+
onUpdate?: ((key: keyof IDashboardItemOptions, value: TValueDashboardItemOptions) => any) | undefined;
|
|
7
7
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
8
|
export default _default;
|
|
9
9
|
//# sourceMappingURL=ItemOptions.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemOptions.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/edit/ItemOptions.vue"],"names":[],"mappings":"AAyCA;AA+FA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ItemOptions.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/edit/ItemOptions.vue"],"names":[],"mappings":"AAyCA;AA+FA,OAAO,KAAK,EAAa,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,KAAK,EAAE,iBAAiB,EAAqB,MAAM,mCAAmC,CAAC;;;;;;AA4U9F,wBAQG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDashboardItem, IListItem, IDashboardItemOptions,
|
|
1
|
+
import { IDashboardItem, IListItem, IDashboardItemOptions, TValueDashboardItemOptions } from '../../../types';
|
|
2
2
|
export interface IItemEditProps {
|
|
3
3
|
items: IDashboardItem[];
|
|
4
4
|
item: IDashboardItem | null;
|
|
@@ -19,6 +19,6 @@ export interface IItemOptionsProps {
|
|
|
19
19
|
type: string;
|
|
20
20
|
}
|
|
21
21
|
export interface IItemOptionsEmits {
|
|
22
|
-
(e: 'update', key: keyof IDashboardItemOptions, value:
|
|
22
|
+
(e: 'update', key: keyof IDashboardItemOptions, value: TValueDashboardItemOptions): void;
|
|
23
23
|
}
|
|
24
24
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/edit/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/edit/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAE5G,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,IAAI,EAAE,cAAc,GAAG,IAAI,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;IACnC,SAAS,EAAE,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B,CAAC,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;CACzD;AAED,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;CACd;AACD,MAAM,WAAW,iBAAiB;IAChC,CAAC,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,qBAAqB,EAAE,KAAK,EAAE,0BAA0B,GAAG,IAAI,CAAC;CAC1F"}
|
|
@@ -424,12 +424,11 @@ const Pr = /* @__PURE__ */ ya(qa, [["render", Qa]]), es = { class: "mb-4 flex fl
|
|
|
424
424
|
}, ps = { class: "absolute left-36 top-1/2 -translate-1/2 text-sm font-bold text-black dark:text-white text-center leading-none" }, hs = { class: "absolute left-36 top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, Kr = /* @__PURE__ */ L({
|
|
425
425
|
__name: "AppProgress",
|
|
426
426
|
props: {
|
|
427
|
-
timeout: { default: 5e3 },
|
|
428
|
-
key: {},
|
|
429
427
|
status: { default: 0 },
|
|
430
428
|
empty: {},
|
|
431
429
|
size: { default: 0 },
|
|
432
|
-
length: { default: 0 }
|
|
430
|
+
length: { default: 0 },
|
|
431
|
+
timeout: { default: 5e3 }
|
|
433
432
|
},
|
|
434
433
|
setup(e) {
|
|
435
434
|
const s = F(!1), a = C(() => !!e.length), n = C(() => !!(a.value && t.value === 100 && !e.status)), t = C(() => e.status ? Math.ceil(e.size * 100 / e.length) : 100), o = $t(() => {
|
|
@@ -487,14 +486,14 @@ const Pr = /* @__PURE__ */ ya(qa, [["render", Qa]]), es = { class: "mb-4 flex fl
|
|
|
487
486
|
}), ys = { class: "my-4 text-gray-dark-30 dark:text-gray-main" }, bs = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" }, xs = { class: "flex gap-2" }, ks = { class: "text-gray-dark-30 dark:text-gray-main" }, $s = { class: "flex gap-2" }, ws = { class: "flex gap-2" }, Cs = { class: "text-gray-dark-30 dark:text-gray-main" }, _s = { class: "flex gap-2" }, Ss = { class: "text-gray-dark-30 dark:text-gray-main" }, Ts = { class: "flex flex-col gap-4 text-sm" }, zs = { class: "flex gap-4" }, Hr = /* @__PURE__ */ L({
|
|
488
487
|
__name: "BlockInfo",
|
|
489
488
|
props: {
|
|
490
|
-
pkg: {},
|
|
491
489
|
id: { default: 0 },
|
|
492
490
|
firmware: { default: () => [] },
|
|
493
491
|
totalBytes: {},
|
|
494
492
|
usedBytes: {},
|
|
495
493
|
uptime: {},
|
|
496
494
|
name: {},
|
|
497
|
-
board: {}
|
|
495
|
+
board: {},
|
|
496
|
+
pkg: {}
|
|
498
497
|
},
|
|
499
498
|
setup(e) {
|
|
500
499
|
const s = C(() => e.firmware.join(".")), a = C(() => {
|
|
@@ -645,14 +644,14 @@ const Pr = /* @__PURE__ */ ya(qa, [["render", Qa]]), es = { class: "mb-4 flex fl
|
|
|
645
644
|
}), Ps = { class: "grid grid-cols-1 gap-4 lg:max-w-90 min-w-64" }, Us = { class: "flex flex-col w-full items-center gap-2" }, Ks = ["title"], Hs = { class: "absolute left-28 top-1/2 -translate-1/2 text-center text-sm font-bold leading-none text-gray-dark-40 dark:text-white" }, Ws = { class: "absolute left-28 top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, Gs = { class: "flex justify-between w-full text-xs" }, Js = { class: "text-gray-dark-25 dark:text-white/50" }, Xs = { class: "text-sm" }, qs = { class: "text-gray-dark-25 dark:text-white/50 text-left" }, Ys = { class: "text-right text-xs" }, Jr = /* @__PURE__ */ L({
|
|
646
645
|
__name: "BlockStatus",
|
|
647
646
|
props: {
|
|
648
|
-
pkg: {},
|
|
649
647
|
id: { default: 0 },
|
|
650
648
|
firmware: { default: () => [] },
|
|
651
649
|
totalBytes: { default: 0 },
|
|
652
650
|
usedBytes: { default: 0 },
|
|
653
651
|
uptime: { default: 0 },
|
|
654
652
|
name: {},
|
|
655
|
-
board: {}
|
|
653
|
+
board: {},
|
|
654
|
+
pkg: {}
|
|
656
655
|
},
|
|
657
656
|
setup(e) {
|
|
658
657
|
const s = F(e.uptime);
|
|
@@ -2898,19 +2897,19 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2898
2897
|
__name: "CardBase",
|
|
2899
2898
|
props: {
|
|
2900
2899
|
size: {},
|
|
2901
|
-
icon: {},
|
|
2902
|
-
value: {},
|
|
2903
|
-
valueTo: {},
|
|
2904
|
-
opts: {},
|
|
2905
2900
|
id: {},
|
|
2906
2901
|
name: {},
|
|
2907
2902
|
type: {},
|
|
2908
2903
|
entityType: {},
|
|
2904
|
+
icon: {},
|
|
2905
|
+
opts: {},
|
|
2909
2906
|
args: {},
|
|
2910
2907
|
get: {},
|
|
2911
2908
|
getTo: {},
|
|
2912
2909
|
set: {},
|
|
2913
|
-
meta: {}
|
|
2910
|
+
meta: {},
|
|
2911
|
+
value: {},
|
|
2912
|
+
valueTo: {}
|
|
2914
2913
|
},
|
|
2915
2914
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
2916
2915
|
setup(e, { emit: s }) {
|
|
@@ -3012,19 +3011,19 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
3012
3011
|
__name: "CardButton",
|
|
3013
3012
|
props: {
|
|
3014
3013
|
size: {},
|
|
3015
|
-
icon: {},
|
|
3016
|
-
value: {},
|
|
3017
|
-
valueTo: {},
|
|
3018
|
-
opts: {},
|
|
3019
3014
|
id: {},
|
|
3020
3015
|
name: {},
|
|
3021
3016
|
type: {},
|
|
3022
3017
|
entityType: {},
|
|
3018
|
+
icon: {},
|
|
3019
|
+
opts: {},
|
|
3023
3020
|
args: {},
|
|
3024
3021
|
get: {},
|
|
3025
3022
|
getTo: {},
|
|
3026
3023
|
set: {},
|
|
3027
|
-
meta: {}
|
|
3024
|
+
meta: {},
|
|
3025
|
+
value: {},
|
|
3026
|
+
valueTo: {}
|
|
3028
3027
|
},
|
|
3029
3028
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
3030
3029
|
setup(e, { emit: s }) {
|
|
@@ -3081,19 +3080,19 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
3081
3080
|
__name: "CardDate",
|
|
3082
3081
|
props: {
|
|
3083
3082
|
size: {},
|
|
3084
|
-
icon: {},
|
|
3085
|
-
value: {},
|
|
3086
|
-
valueTo: {},
|
|
3087
|
-
opts: {},
|
|
3088
3083
|
id: {},
|
|
3089
3084
|
name: {},
|
|
3090
3085
|
type: {},
|
|
3091
3086
|
entityType: {},
|
|
3087
|
+
icon: {},
|
|
3088
|
+
opts: {},
|
|
3092
3089
|
args: {},
|
|
3093
3090
|
get: {},
|
|
3094
3091
|
getTo: {},
|
|
3095
3092
|
set: {},
|
|
3096
|
-
meta: {}
|
|
3093
|
+
meta: {},
|
|
3094
|
+
value: {},
|
|
3095
|
+
valueTo: {}
|
|
3097
3096
|
},
|
|
3098
3097
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
3099
3098
|
setup(e, { emit: s }) {
|
|
@@ -3166,19 +3165,19 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
3166
3165
|
__name: "CardDimmer",
|
|
3167
3166
|
props: {
|
|
3168
3167
|
size: {},
|
|
3169
|
-
icon: {},
|
|
3170
|
-
value: {},
|
|
3171
|
-
valueTo: {},
|
|
3172
|
-
opts: {},
|
|
3173
3168
|
id: {},
|
|
3174
3169
|
name: {},
|
|
3175
3170
|
type: {},
|
|
3176
3171
|
entityType: {},
|
|
3172
|
+
icon: {},
|
|
3173
|
+
opts: {},
|
|
3177
3174
|
args: {},
|
|
3178
3175
|
get: {},
|
|
3179
3176
|
getTo: {},
|
|
3180
3177
|
set: {},
|
|
3181
|
-
meta: {}
|
|
3178
|
+
meta: {},
|
|
3179
|
+
value: {},
|
|
3180
|
+
valueTo: {}
|
|
3182
3181
|
},
|
|
3183
3182
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
3184
3183
|
setup(e, { emit: s }) {
|
|
@@ -3256,19 +3255,19 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
3256
3255
|
__name: "CardInfo",
|
|
3257
3256
|
props: {
|
|
3258
3257
|
size: {},
|
|
3259
|
-
icon: {},
|
|
3260
|
-
value: {},
|
|
3261
|
-
valueTo: {},
|
|
3262
|
-
opts: {},
|
|
3263
3258
|
id: {},
|
|
3264
3259
|
name: {},
|
|
3265
3260
|
type: {},
|
|
3266
3261
|
entityType: {},
|
|
3262
|
+
icon: {},
|
|
3263
|
+
opts: {},
|
|
3267
3264
|
args: {},
|
|
3268
3265
|
get: {},
|
|
3269
3266
|
getTo: {},
|
|
3270
3267
|
set: {},
|
|
3271
|
-
meta: {}
|
|
3268
|
+
meta: {},
|
|
3269
|
+
value: {},
|
|
3270
|
+
valueTo: {}
|
|
3272
3271
|
},
|
|
3273
3272
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
3274
3273
|
setup(e, { emit: s }) {
|
|
@@ -3291,19 +3290,19 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
3291
3290
|
__name: "CardInput",
|
|
3292
3291
|
props: {
|
|
3293
3292
|
size: {},
|
|
3294
|
-
icon: {},
|
|
3295
|
-
value: {},
|
|
3296
|
-
valueTo: {},
|
|
3297
|
-
opts: {},
|
|
3298
3293
|
id: {},
|
|
3299
3294
|
name: {},
|
|
3300
3295
|
type: {},
|
|
3301
3296
|
entityType: {},
|
|
3297
|
+
icon: {},
|
|
3298
|
+
opts: {},
|
|
3302
3299
|
args: {},
|
|
3303
3300
|
get: {},
|
|
3304
3301
|
getTo: {},
|
|
3305
3302
|
set: {},
|
|
3306
|
-
meta: {}
|
|
3303
|
+
meta: {},
|
|
3304
|
+
value: {},
|
|
3305
|
+
valueTo: {}
|
|
3307
3306
|
},
|
|
3308
3307
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
3309
3308
|
setup(e, { emit: s }) {
|
|
@@ -3350,19 +3349,19 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
3350
3349
|
__name: "CardList",
|
|
3351
3350
|
props: {
|
|
3352
3351
|
size: {},
|
|
3353
|
-
icon: {},
|
|
3354
|
-
value: {},
|
|
3355
|
-
valueTo: {},
|
|
3356
|
-
opts: {},
|
|
3357
3352
|
id: {},
|
|
3358
3353
|
name: {},
|
|
3359
3354
|
type: {},
|
|
3360
3355
|
entityType: {},
|
|
3356
|
+
icon: {},
|
|
3357
|
+
opts: {},
|
|
3361
3358
|
args: {},
|
|
3362
3359
|
get: {},
|
|
3363
3360
|
getTo: {},
|
|
3364
3361
|
set: {},
|
|
3365
|
-
meta: {}
|
|
3362
|
+
meta: {},
|
|
3363
|
+
value: {},
|
|
3364
|
+
valueTo: {}
|
|
3366
3365
|
},
|
|
3367
3366
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
3368
3367
|
setup(e, { emit: s }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/button/VButton.vue"],"names":[],"mappings":"AAgMA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"VButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/button/VButton.vue"],"names":[],"mappings":"AAgMA,OAAO,KAAK,EAA+B,aAAa,EAAE,MAAM,8BAA8B,CAAC;AA0K/F,iBAAS,cAAc;WAgET,OAAO,IAA6B;;yBAXrB,GAAG;;;;EAgB/B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type
|
|
2
|
-
export type
|
|
1
|
+
export type TButtonColor = 'cyan' | 'blue' | 'indigo' | 'violet' | 'purple' | 'amber' | 'green' | 'red' | 'slate' | 'gray' | 'transparent';
|
|
2
|
+
export type TButtonVariant = 'default' | 'soft' | 'outline' | 'white';
|
|
3
3
|
export interface IVButtonProps {
|
|
4
|
-
color?:
|
|
5
|
-
variant?:
|
|
4
|
+
color?: TButtonColor;
|
|
5
|
+
variant?: TButtonVariant;
|
|
6
6
|
invert?: boolean;
|
|
7
7
|
size?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
8
8
|
type?: 'button' | 'icon' | 'submit' | 'reset';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/button/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/button/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,OAAO,GACP,KAAK,GACL,OAAO,GACP,MAAM,GACN,aAAa,CAAC;AAElB,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAEtE,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1C,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CAClC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type
|
|
2
|
-
export type
|
|
3
|
-
export type
|
|
1
|
+
export type TCardVariant = 'glass' | 'solid' | 'outline' | 'ghost';
|
|
2
|
+
export type TCardPadding = 'none' | 'lg';
|
|
3
|
+
export type TCardTone = 'default' | 'info' | 'success' | 'warning' | 'danger' | 'accent';
|
|
4
4
|
export interface ICardProps {
|
|
5
|
-
variant?:
|
|
6
|
-
padding?:
|
|
7
|
-
tone?:
|
|
5
|
+
variant?: TCardVariant;
|
|
6
|
+
padding?: TCardPadding;
|
|
7
|
+
tone?: TCardTone;
|
|
8
8
|
title?: string;
|
|
9
9
|
subtitle?: string;
|
|
10
10
|
hover?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/card/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/card/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AACnE,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,IAAI,CAAC;AACzC,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEzF,MAAM,WAAW,UAAU;IACzB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IVListObjectProps } from './types';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<IVListObjectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
-
click: (data: import('../../../types').
|
|
3
|
+
click: (data: import('../../../types').IVListObjectReturnData) => any;
|
|
4
4
|
}, string, import('vue').PublicProps, Readonly<IVListObjectProps> & Readonly<{
|
|
5
|
-
onClick?: ((data: import('../../../types').
|
|
5
|
+
onClick?: ((data: import('../../../types').IVListObjectReturnData) => any) | undefined;
|
|
6
6
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLUListElement>;
|
|
7
7
|
export default _default;
|
|
8
8
|
//# sourceMappingURL=VListObject.vue.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IVListObjectReturnData } from '../../../types/components';
|
|
2
2
|
export interface IVListProps<T> {
|
|
3
3
|
items: T[];
|
|
4
4
|
plain?: boolean;
|
|
@@ -12,6 +12,6 @@ export interface IVListObjectProps {
|
|
|
12
12
|
onlyValue?: boolean;
|
|
13
13
|
}
|
|
14
14
|
export interface IVListObjectEmits {
|
|
15
|
-
(e: 'click', data:
|
|
15
|
+
(e: 'click', data: IVListObjectReturnData): void;
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/list/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/list/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,KAAK,EAAE,CAAC,EAAE,CAAC;IAEX,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AACD,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CAC5C;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AACD,MAAM,WAAW,iBAAiB;IAChC,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,sBAAsB,GAAG,IAAI,CAAC;CAClD"}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { Ref, ComputedRef } from 'vue';
|
|
2
|
-
export type
|
|
3
|
-
export type
|
|
4
|
-
export type
|
|
5
|
-
export interface
|
|
2
|
+
export type TValidator = (value: string, values?: Record<string, unknown>) => true | string;
|
|
3
|
+
export type TValidationSchema = Record<string, TValidator[]>;
|
|
4
|
+
export type TValidationSchemaFn = (values: Record<string, unknown>) => TValidationSchema;
|
|
5
|
+
export interface IFieldState {
|
|
6
6
|
value: string | number;
|
|
7
7
|
errors: string[];
|
|
8
8
|
touched: boolean;
|
|
9
9
|
dirty: boolean;
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
11
|
+
export interface IFormState {
|
|
12
12
|
values: Record<string, unknown>;
|
|
13
13
|
errors: Record<string, string[]>;
|
|
14
14
|
touched: Record<string, boolean>;
|
|
15
15
|
dirty: Record<string, boolean>;
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
18
|
-
props?: (context:
|
|
17
|
+
export interface IDefineFieldOptions {
|
|
18
|
+
props?: (context: IFieldContext) => Record<string, unknown>;
|
|
19
19
|
}
|
|
20
|
-
export interface
|
|
20
|
+
export interface IFieldContext {
|
|
21
21
|
errors: string[];
|
|
22
22
|
touched: boolean;
|
|
23
23
|
dirty: boolean;
|
|
24
24
|
}
|
|
25
|
-
export interface
|
|
26
|
-
validationSchema:
|
|
25
|
+
export interface IUseFormOptions {
|
|
26
|
+
validationSchema: TValidationSchema | TValidationSchemaFn;
|
|
27
27
|
initialValues?: Record<string, unknown>;
|
|
28
28
|
}
|
|
29
|
-
export interface
|
|
29
|
+
export interface IUseFormReturn {
|
|
30
30
|
values: Record<string, unknown>;
|
|
31
31
|
errors: Record<string, string[]>;
|
|
32
32
|
isValid: Ref<boolean>;
|
|
33
|
-
defineField: <T = unknown>(name: string, options?:
|
|
33
|
+
defineField: <T = unknown>(name: string, options?: IDefineFieldOptions) => [Ref<T>, ComputedRef<Record<string, unknown>>];
|
|
34
34
|
handleSubmit: (callback: (values: Record<string, unknown>) => void | Promise<void>) => (event?: Event) => Promise<void>;
|
|
35
35
|
resetForm: () => void;
|
|
36
36
|
validate: () => boolean;
|
|
37
|
-
updateSchema: (newSchema:
|
|
37
|
+
updateSchema: (newSchema: TValidationSchema) => void;
|
|
38
38
|
}
|
|
39
39
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/composables/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAE5C,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/composables/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,GAAG,MAAM,CAAC;AAC5F,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;AAC7D,MAAM,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,iBAAiB,CAAC;AAEzF,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC7D;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;IAC1D,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACjC,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACtB,WAAW,EAAE,CAAC,CAAC,GAAG,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAC1H,YAAY,EAAE,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxH,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,OAAO,CAAC;IACxB,YAAY,EAAE,CAAC,SAAS,EAAE,iBAAiB,KAAK,IAAI,CAAC;CACtD"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function useForm(options:
|
|
1
|
+
import { IUseFormOptions, IUseFormReturn } from './types';
|
|
2
|
+
export declare function useForm(options: IUseFormOptions): IUseFormReturn;
|
|
3
3
|
//# sourceMappingURL=useForms.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useForms.d.ts","sourceRoot":"","sources":["../../src/composables/useForms.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"useForms.d.ts","sourceRoot":"","sources":["../../src/composables/useForms.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EAKf,MAAM,qBAAqB,CAAC;AAG7B,wBAAgB,OAAO,CAAC,OAAO,EAAE,eAAe,GAAG,cAAc,CAgPhE"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TGetDataValue, TGetParamsData, IDashboardItem } from '../types';
|
|
2
2
|
export declare const dashboardCards: string[];
|
|
3
|
-
export declare const getDataValue:
|
|
4
|
-
export declare const getParamsData:
|
|
3
|
+
export declare const getDataValue: TGetDataValue;
|
|
4
|
+
export declare const getParamsData: TGetParamsData;
|
|
5
5
|
export declare const getFunction: (body: string | undefined, params?: string[]) => Function | null;
|
|
6
|
-
|
|
7
|
-
export
|
|
6
|
+
/** Дополнительные переменные для `set`/`get`/`getTo`: `cmd`, `keys`, `flags`. */
|
|
7
|
+
export type TDashboardScope = Record<string, unknown>;
|
|
8
|
+
export declare const setStateItem: <T>(item: IDashboardItem, value: unknown, object: T, scope?: TDashboardScope) => unknown;
|
|
9
|
+
export declare const getStateItem: <T>(item: IDashboardItem, object: T, scope?: TDashboardScope) => IDashboardItem;
|
|
8
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dashboard/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dashboard/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAkB,MAAM,SAAS,CAAC;AAE7F,eAAO,MAAM,cAAc,UAAwD,CAAC;AAEpF,eAAO,MAAM,YAAY,EAAE,aAE1B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,cAE3B,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,GAAG,SAAS,EAAE,SAAQ,MAAM,EAA8B,oBAIjG,CAAC;AAQF,iFAAiF;AACjF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAQtD,eAAO,MAAM,YAAY,GAAI,CAAC,EAAE,MAAM,cAAc,EAAE,OAAO,OAAO,EAAE,QAAQ,CAAC,EAAE,QAAQ,eAAe,KAAG,OAO1G,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,CAAC,EAAE,MAAM,cAAc,EAAE,QAAQ,CAAC,EAAE,QAAQ,eAAe,KAAG,cAS1F,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
const
|
|
1
|
+
import { g as u, a as T } from "../paths-CbO4FuTv.js";
|
|
2
|
+
const f = {
|
|
3
3
|
button: "switch",
|
|
4
4
|
dimmer: "number",
|
|
5
5
|
info: "sensor",
|
|
@@ -7,60 +7,50 @@ const h = {
|
|
|
7
7
|
list: "select",
|
|
8
8
|
input: "text",
|
|
9
9
|
chart: "custom"
|
|
10
|
-
},
|
|
11
|
-
const e =
|
|
10
|
+
}, p = (t) => t.entityType || f[t.type] || "custom", i = (t) => t ? t.includes("return") ? t : `return ${t}` : null, a = (t, n, r) => {
|
|
11
|
+
const e = i(t);
|
|
12
12
|
return e ? n(e, r) : void 0;
|
|
13
|
-
},
|
|
13
|
+
}, d = (t) => ({
|
|
14
14
|
a: t[0],
|
|
15
15
|
b: t[1],
|
|
16
16
|
c: t[2],
|
|
17
17
|
d: t[3]
|
|
18
|
-
}),
|
|
19
|
-
const e =
|
|
18
|
+
}), m = (t, n, r) => {
|
|
19
|
+
const e = u(t, n), o = d(e), s = e[0] ?? "", c = t.get ? a(t.get, r, o) : s, v = t.getTo ? a(t.getTo, r, { v: c, ...o }) : c;
|
|
20
20
|
return {
|
|
21
21
|
...t,
|
|
22
|
-
value:
|
|
23
|
-
valueTo:
|
|
24
|
-
entityType:
|
|
22
|
+
value: c,
|
|
23
|
+
valueTo: v,
|
|
24
|
+
entityType: p(t)
|
|
25
25
|
};
|
|
26
|
-
},
|
|
26
|
+
}, y = (t, n, r, e) => {
|
|
27
27
|
if (!t.set)
|
|
28
28
|
return null;
|
|
29
|
-
const
|
|
30
|
-
return a(t.set, e, { v: n, ...
|
|
31
|
-
},
|
|
32
|
-
const r =
|
|
29
|
+
const o = u(t, r);
|
|
30
|
+
return a(t.set, e, { v: n, ...d(o) });
|
|
31
|
+
}, w = ["button", "info", "dimmer", "date", "input", "list"], D = (t, n) => T(t, n), b = (t, n) => u(t, n), E = (t, n = ["v", "a", "b", "c", "d"]) => {
|
|
32
|
+
const r = i(t);
|
|
33
33
|
return r ? new Function(...n, r) : null;
|
|
34
|
-
},
|
|
35
|
-
const e = l(n, r)[1];
|
|
36
|
-
if (!u(e) || !("key" in e)) return t;
|
|
37
|
-
const s = e, c = (o) => !u(o) || "key" in o ? o : { ...s, ...o };
|
|
38
|
-
return Array.isArray(t) ? t.map(c) : c(t);
|
|
39
|
-
}, k = (t, n, r) => {
|
|
34
|
+
}, l = (t, n) => new Function(...Object.keys(n), t)(...Object.values(n)), g = (t) => t ? (n, r) => l(n, { ...t, ...r }) : l, I = (t, n, r, e) => {
|
|
40
35
|
try {
|
|
41
|
-
return
|
|
42
|
-
} catch (
|
|
43
|
-
return console.warn(
|
|
36
|
+
return y(t, n, r, g(e));
|
|
37
|
+
} catch (o) {
|
|
38
|
+
return console.warn(o), null;
|
|
44
39
|
}
|
|
45
|
-
},
|
|
46
|
-
if (n.type !== "chart" || u(t.value)) return t;
|
|
47
|
-
const e = l(n, r)[1];
|
|
48
|
-
return u(e) ? { ...t, value: e } : t;
|
|
49
|
-
}, z = (t, n) => {
|
|
40
|
+
}, F = (t, n, r) => {
|
|
50
41
|
try {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const s = l(t, n)[0] ?? "";
|
|
42
|
+
return m(t, n, g(r));
|
|
43
|
+
} catch (e) {
|
|
44
|
+
console.warn(e);
|
|
45
|
+
const s = b(t, n)[0] ?? "";
|
|
56
46
|
return { ...t, value: s, valueTo: s };
|
|
57
47
|
}
|
|
58
48
|
};
|
|
59
49
|
export {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
50
|
+
w as dashboardCards,
|
|
51
|
+
D as getDataValue,
|
|
52
|
+
E as getFunction,
|
|
53
|
+
b as getParamsData,
|
|
54
|
+
F as getStateItem,
|
|
55
|
+
I as setStateItem
|
|
66
56
|
};
|