@xdmp-open/ui-iot 0.1.9 → 0.1.11
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/CHANGELOG.md +12 -0
- package/dist/{arrayForm-A_-VuuMo.js → arrayForm-BBQMsEX4.js} +1 -1
- package/dist/{arrayForm-DPzbUbHm.js → arrayForm-DJCG9VvX.js} +1 -1
- package/dist/{bitMapForm-CMIm64Hu.js → bitMapForm-CMNGmvKr.js} +1 -1
- package/dist/{bitMapForm-DdQur4xN.js → bitMapForm-cMO0XWI8.js} +1 -1
- package/dist/{bitmapForm-D3OFREp1.js → bitmapForm-DljOLXAG.js} +1 -1
- package/dist/{boolForm-D7_3TtHf.js → boolForm-D2t6Cx9K.js} +1 -1
- package/dist/{boolForm-DD6CPYNJ.js → boolForm-DmQFYMQT.js} +1 -1
- package/dist/{doubleForm-BAoo3VZG.js → doubleForm-BnRkZgm8.js} +1 -1
- package/dist/{doubleForm-CBTPP9xX.js → doubleForm-D9BIKs9j.js} +1 -1
- package/dist/{doubleForm-DwMfU3uc.js → doubleForm-DJOUIii-.js} +1 -1
- package/dist/{enumForm-DEiuQ_R3.js → enumForm-BJPaGHfL.js} +1 -1
- package/dist/{enumForm-BA9AVPXZ.js → enumForm-BUicyv4j.js} +1 -1
- package/dist/{enumForm-fi1U1l5K.js → enumForm-DqpPPA-j.js} +1 -1
- package/dist/{index-DjcfhNER.js → index-Dt8dqoF6.js} +3839 -3764
- package/dist/index.js +1 -1
- package/dist/{inputForm-GX0LVUaM.js → inputForm-0FUNys_c.js} +1 -1
- package/dist/{inputForm-CpevXi1s.js → inputForm-CE9pJN_F.js} +1 -1
- package/dist/{inputForm-Jv5KiDHq.js → inputForm-vjtO-RgY.js} +1 -1
- package/dist/modules/project/device/components/service.vue.d.ts +7 -4
- package/dist/modules/project/device/components/servicePanels.d.ts +60 -0
- package/dist/modules/project/robot/components/modal/serviceHistory.vue.d.ts +4 -1
- package/dist/modules/project/robot/components/service.vue.d.ts +4 -1
- package/dist/modules/project/robot/module/serviceRecordBox.vue.d.ts +4 -1
- package/dist/{structForm-B9XGZUym.js → structForm-CO3fBZbH.js} +1 -1
- package/dist/{structForm-DoDkrf1J.js → structForm-o-XyHiQH.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as s, b as r, c as i, d as o, i as t, e as g, f as n, g as D, h as P, j as c, k as u, l, m, n as p, s as T, o as d, p as v, q as M, r as h, t as F, u as b, v as w, w as L, x as S, y as A, z as I, A as y, B as f, C as E, D as R, E as k, F as B, G as C, H as j, I as U, P as x, J as G, K as J, L as q, M as N, N as V, O as W, Q as z, R as H, S as K, T as O, U as Q, V as X, W as Y, X as Z, Y as $, Z as _, $ as aa, a0 as ea, a1 as sa, a2 as ra, a3 as ia, a4 as oa, a5 as ta, a6 as ga, a7 as na, a8 as Da, a9 as Pa, aa as ca, ab as ua, ac as la, ad as ma, ae as pa, af as Ta, ag as da, ah as va, a3 as Ma, a4 as ha, a5 as Fa, a7 as ba, a8 as wa, ai as La, aa as Sa, aj as Aa, ad as Ia, ak as ya, af as fa, al as Ea, am as Ra, an as ka, ao as Ba, ap as Ca, aq as ja, ar as Ua, as as xa, at as Ga, au as Ja, av as qa, aw as Na, ax as Va } from "./index-
|
|
1
|
+
import { a as s, b as r, c as i, d as o, i as t, e as g, f as n, g as D, h as P, j as c, k as u, l, m, n as p, s as T, o as d, p as v, q as M, r as h, t as F, u as b, v as w, w as L, x as S, y as A, z as I, A as y, B as f, C as E, D as R, E as k, F as B, G as C, H as j, I as U, P as x, J as G, K as J, L as q, M as N, N as V, O as W, Q as z, R as H, S as K, T as O, U as Q, V as X, W as Y, X as Z, Y as $, Z as _, $ as aa, a0 as ea, a1 as sa, a2 as ra, a3 as ia, a4 as oa, a5 as ta, a6 as ga, a7 as na, a8 as Da, a9 as Pa, aa as ca, ab as ua, ac as la, ad as ma, ae as pa, af as Ta, ag as da, ah as va, a3 as Ma, a4 as ha, a5 as Fa, a7 as ba, a8 as wa, ai as La, aa as Sa, aj as Aa, ad as Ia, ak as ya, af as fa, al as Ea, am as Ra, an as ka, ao as Ba, ap as Ca, aq as ja, ar as Ua, as as xa, at as Ga, au as Ja, av as qa, aw as Na, ax as Va } from "./index-Dt8dqoF6.js";
|
|
2
2
|
export {
|
|
3
3
|
s as AddDeviceDrawer,
|
|
4
4
|
r as AddDeviceFromProductDrawer,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as a, openBlock as o, createElementBlock as f, createVNode as n, withCtx as i, createBlock as h, createCommentVNode as c } from "vue";
|
|
2
|
-
import { _ as g } from "./index-
|
|
2
|
+
import { _ as g } from "./index-Dt8dqoF6.js";
|
|
3
3
|
const y = {
|
|
4
4
|
props: {
|
|
5
5
|
identifier: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as a, openBlock as o, createElementBlock as f, createVNode as n, withCtx as i, createBlock as h, createCommentVNode as c } from "vue";
|
|
2
|
-
import { _ as g } from "./index-
|
|
2
|
+
import { _ as g } from "./index-Dt8dqoF6.js";
|
|
3
3
|
const y = {
|
|
4
4
|
props: {
|
|
5
5
|
identifier: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, resolveComponent as i, openBlock as a, createElementBlock as s, createBlock as n, createCommentVNode as p } from "vue";
|
|
2
|
-
import { _ as m } from "./index-
|
|
2
|
+
import { _ as m } from "./index-Dt8dqoF6.js";
|
|
3
3
|
const h = u({
|
|
4
4
|
props: {
|
|
5
5
|
value: { type: [String, Number], default: "" },
|
|
@@ -2,7 +2,7 @@ import { default as dayjs } from '../../../../utils/dayjs';
|
|
|
2
2
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
3
|
idsObj: {
|
|
4
4
|
type: ObjectConstructor;
|
|
5
|
-
default: () =>
|
|
5
|
+
default: () => {};
|
|
6
6
|
};
|
|
7
7
|
isActive: {
|
|
8
8
|
type: BooleanConstructor;
|
|
@@ -27,8 +27,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
27
27
|
hasInitialized: boolean;
|
|
28
28
|
}, {}, {
|
|
29
29
|
dayjs: typeof dayjs;
|
|
30
|
+
tryInit(): void;
|
|
30
31
|
getList(): Promise<void>;
|
|
31
|
-
getTsl(): Promise<any>;
|
|
32
32
|
handleHistory(item: any): void;
|
|
33
33
|
onSearch(val: any): void;
|
|
34
34
|
onReset(): void;
|
|
@@ -38,7 +38,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
38
38
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
39
39
|
idsObj: {
|
|
40
40
|
type: ObjectConstructor;
|
|
41
|
-
default: () =>
|
|
41
|
+
default: () => {};
|
|
42
42
|
};
|
|
43
43
|
isActive: {
|
|
44
44
|
type: BooleanConstructor;
|
|
@@ -63,6 +63,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
63
63
|
default: () => never[];
|
|
64
64
|
};
|
|
65
65
|
}>, {}, {
|
|
66
|
+
propertiesImg: string;
|
|
66
67
|
selectCMDID: string;
|
|
67
68
|
deviceId: string;
|
|
68
69
|
}, {}, {
|
|
@@ -173,6 +174,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
173
174
|
};
|
|
174
175
|
queryParam: {
|
|
175
176
|
pageNo: number;
|
|
177
|
+
total: number;
|
|
176
178
|
query: {
|
|
177
179
|
deviceId: string;
|
|
178
180
|
identifiers: never[];
|
|
@@ -189,7 +191,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
189
191
|
dayjs: typeof dayjs;
|
|
190
192
|
init(item: any): void;
|
|
191
193
|
getCmds(data: any): any;
|
|
192
|
-
|
|
194
|
+
formatCommandPayload: typeof import('./servicePanels').formatCommandPayload;
|
|
195
|
+
commandStatusLabel: typeof import('./servicePanels').commandStatusLabel;
|
|
193
196
|
getList(): void;
|
|
194
197
|
reSetTime(): void;
|
|
195
198
|
handleCancle(): void;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 设备详情「服务」页操作面板数据:优先产品操作管理(extend.config),
|
|
3
|
+
* 否则按物模型 TSL services 生成一张服务一张卡。
|
|
4
|
+
*/
|
|
5
|
+
export type TslService = {
|
|
6
|
+
identifier?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
partType?: string;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
export type ServicePanelCmd = {
|
|
12
|
+
id: string | number;
|
|
13
|
+
identifier: string;
|
|
14
|
+
buttonName: string;
|
|
15
|
+
};
|
|
16
|
+
export type ServicePanel = {
|
|
17
|
+
id: string | number;
|
|
18
|
+
operateName: string;
|
|
19
|
+
type: number;
|
|
20
|
+
enable: number;
|
|
21
|
+
partType?: string;
|
|
22
|
+
cmds: ServicePanelCmd[];
|
|
23
|
+
};
|
|
24
|
+
export declare function parseTslServices(tsl: unknown): TslService[];
|
|
25
|
+
export declare function parseOperationConfig(extend: unknown): ServicePanel[];
|
|
26
|
+
export declare function servicesToPanels(services: TslService[]): ServicePanel[];
|
|
27
|
+
export declare function buildServicePanels(product: {
|
|
28
|
+
tsl?: unknown;
|
|
29
|
+
extend?: unknown;
|
|
30
|
+
} | null | undefined): {
|
|
31
|
+
serviceList: TslService[];
|
|
32
|
+
panels: ServicePanel[];
|
|
33
|
+
};
|
|
34
|
+
export declare function serviceHasInputs(service: {
|
|
35
|
+
inputData?: unknown;
|
|
36
|
+
} | null | undefined): boolean;
|
|
37
|
+
export type DeviceServiceApi = {
|
|
38
|
+
invoke: (deviceId: string, body: {
|
|
39
|
+
identifier: string;
|
|
40
|
+
inputData: Record<string, unknown>;
|
|
41
|
+
}) => Promise<unknown>;
|
|
42
|
+
invokeSync: (deviceId: string, body: {
|
|
43
|
+
identifier: string;
|
|
44
|
+
inputData: Record<string, unknown>;
|
|
45
|
+
}) => Promise<unknown>;
|
|
46
|
+
};
|
|
47
|
+
/** 必须在 resource 上调用,不能把 invoke 拆出来当函数(会丢掉 this,请求发不出去)。 */
|
|
48
|
+
export declare function invokeThingService(deviceService: DeviceServiceApi, deviceId: string, service: {
|
|
49
|
+
identifier: string;
|
|
50
|
+
callType?: string;
|
|
51
|
+
}, inputData?: Record<string, unknown>): Promise<unknown>;
|
|
52
|
+
export type CommandHistoryPage = {
|
|
53
|
+
list: unknown[];
|
|
54
|
+
pageNo: number;
|
|
55
|
+
total: number;
|
|
56
|
+
};
|
|
57
|
+
/** SDK 已拆包 PageData;旧页仍可能拿到完整 CommonResponse。 */
|
|
58
|
+
export declare function unwrapCommandHistoryPage(res: unknown): CommandHistoryPage | null;
|
|
59
|
+
export declare function formatCommandPayload(value: unknown): string;
|
|
60
|
+
export declare function commandStatusLabel(status: unknown): string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as dayjs } from '../../../../../utils/dayjs';
|
|
2
|
+
import { formatCommandPayload, commandStatusLabel } from '../../../device/components/servicePanels';
|
|
2
3
|
declare const _default: import('vue').DefineComponent<{}, {}, {
|
|
3
4
|
deviceId: string;
|
|
4
5
|
dialogFormVisible: boolean;
|
|
@@ -16,6 +17,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {
|
|
|
16
17
|
};
|
|
17
18
|
queryParam: {
|
|
18
19
|
pageNo: number;
|
|
20
|
+
total: number;
|
|
19
21
|
query: {
|
|
20
22
|
deviceId: string;
|
|
21
23
|
identifiers: never[];
|
|
@@ -32,7 +34,8 @@ declare const _default: import('vue').DefineComponent<{}, {}, {
|
|
|
32
34
|
dayjs: typeof dayjs;
|
|
33
35
|
init(item: any): void;
|
|
34
36
|
getCmds(data: any): any;
|
|
35
|
-
|
|
37
|
+
formatCommandPayload: typeof formatCommandPayload;
|
|
38
|
+
commandStatusLabel: typeof commandStatusLabel;
|
|
36
39
|
getList(): void;
|
|
37
40
|
reSetTime(): void;
|
|
38
41
|
handleCancle(): void;
|
|
@@ -84,6 +84,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
84
84
|
default: () => never[];
|
|
85
85
|
};
|
|
86
86
|
}>, {}, {
|
|
87
|
+
propertiesImg: string;
|
|
87
88
|
selectCMDID: string;
|
|
88
89
|
deviceId: string;
|
|
89
90
|
}, {}, {
|
|
@@ -194,6 +195,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
194
195
|
};
|
|
195
196
|
queryParam: {
|
|
196
197
|
pageNo: number;
|
|
198
|
+
total: number;
|
|
197
199
|
query: {
|
|
198
200
|
deviceId: string;
|
|
199
201
|
identifiers: never[];
|
|
@@ -210,7 +212,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
210
212
|
dayjs: typeof dayjs;
|
|
211
213
|
init(item: any): void;
|
|
212
214
|
getCmds(data: any): any;
|
|
213
|
-
|
|
215
|
+
formatCommandPayload: typeof import('../../device/components/servicePanels').formatCommandPayload;
|
|
216
|
+
commandStatusLabel: typeof import('../../device/components/servicePanels').commandStatusLabel;
|
|
214
217
|
getList(): void;
|
|
215
218
|
reSetTime(): void;
|
|
216
219
|
handleCancle(): void;
|
|
@@ -13,6 +13,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
13
13
|
default: () => never[];
|
|
14
14
|
};
|
|
15
15
|
}>, {}, {
|
|
16
|
+
propertiesImg: string;
|
|
16
17
|
selectCMDID: string;
|
|
17
18
|
deviceId: string;
|
|
18
19
|
}, {}, {
|
|
@@ -123,6 +124,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
123
124
|
};
|
|
124
125
|
queryParam: {
|
|
125
126
|
pageNo: number;
|
|
127
|
+
total: number;
|
|
126
128
|
query: {
|
|
127
129
|
deviceId: string;
|
|
128
130
|
identifiers: never[];
|
|
@@ -139,7 +141,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
139
141
|
dayjs: typeof dayjs;
|
|
140
142
|
init(item: any): void;
|
|
141
143
|
getCmds(data: any): any;
|
|
142
|
-
|
|
144
|
+
formatCommandPayload: typeof import('../../device/components/servicePanels').formatCommandPayload;
|
|
145
|
+
commandStatusLabel: typeof import('../../device/components/servicePanels').commandStatusLabel;
|
|
143
146
|
getList(): void;
|
|
144
147
|
reSetTime(): void;
|
|
145
148
|
handleCancle(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { markRaw as b, resolveComponent as r, openBlock as s, createElementBlock as f, createVNode as d, withCtx as a, Fragment as F, renderList as N, createBlock as u, createElementVNode as p, toDisplayString as i, createTextVNode as y, resolveDynamicComponent as I, withModifiers as S, createCommentVNode as C } from "vue";
|
|
2
|
-
import { _ as L } from "./index-
|
|
2
|
+
import { _ as L } from "./index-Dt8dqoF6.js";
|
|
3
3
|
const E = {
|
|
4
4
|
props: {
|
|
5
5
|
identifier: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { markRaw as b, resolveComponent as r, openBlock as d, createElementBlock as u, createVNode as s, withCtx as a, Fragment as F, renderList as N, createBlock as f, createElementVNode as p, toDisplayString as i, createTextVNode as y, resolveDynamicComponent as I, withModifiers as S, createCommentVNode as C } from "vue";
|
|
2
|
-
import { _ as L } from "./index-
|
|
2
|
+
import { _ as L } from "./index-Dt8dqoF6.js";
|
|
3
3
|
const E = {
|
|
4
4
|
props: {
|
|
5
5
|
identifier: {
|