@xdmp-open/ui-iot 0.1.9 → 0.1.10

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.
Files changed (27) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{arrayForm-A_-VuuMo.js → arrayForm-BRWgEabt.js} +1 -1
  3. package/dist/{arrayForm-DPzbUbHm.js → arrayForm-BUqemWIl.js} +1 -1
  4. package/dist/{bitMapForm-CMIm64Hu.js → bitMapForm-B457KFBh.js} +1 -1
  5. package/dist/{bitMapForm-DdQur4xN.js → bitMapForm-jQJdcw1g.js} +1 -1
  6. package/dist/{bitmapForm-D3OFREp1.js → bitmapForm-CzglZmHv.js} +1 -1
  7. package/dist/{boolForm-D7_3TtHf.js → boolForm-BxB7l3e9.js} +1 -1
  8. package/dist/{boolForm-DD6CPYNJ.js → boolForm-CRlY0kSx.js} +1 -1
  9. package/dist/{doubleForm-CBTPP9xX.js → doubleForm-CdvhtRO_.js} +1 -1
  10. package/dist/{doubleForm-DwMfU3uc.js → doubleForm-DQRWjId4.js} +1 -1
  11. package/dist/{doubleForm-BAoo3VZG.js → doubleForm-DSJBDDGA.js} +1 -1
  12. package/dist/{enumForm-BA9AVPXZ.js → enumForm-BK2m_x8M.js} +1 -1
  13. package/dist/{enumForm-DEiuQ_R3.js → enumForm-Brj8aYd4.js} +1 -1
  14. package/dist/{enumForm-fi1U1l5K.js → enumForm-Cnra9fgm.js} +1 -1
  15. package/dist/{index-DjcfhNER.js → index-xuXwRCg4.js} +3311 -3281
  16. package/dist/index.js +1 -1
  17. package/dist/{inputForm-Jv5KiDHq.js → inputForm-BtQo8uLl.js} +1 -1
  18. package/dist/{inputForm-GX0LVUaM.js → inputForm-ByzMtPPa.js} +1 -1
  19. package/dist/{inputForm-CpevXi1s.js → inputForm-DyBnbCkZ.js} +1 -1
  20. package/dist/modules/project/device/components/service.vue.d.ts +4 -3
  21. package/dist/modules/project/device/components/servicePanels.d.ts +51 -0
  22. package/dist/modules/project/robot/components/service.vue.d.ts +1 -0
  23. package/dist/modules/project/robot/module/serviceRecordBox.vue.d.ts +1 -0
  24. package/dist/{structForm-B9XGZUym.js → structForm-BQMSnbzu.js} +1 -1
  25. package/dist/{structForm-DoDkrf1J.js → structForm-Ci6pjDxs.js} +1 -1
  26. package/dist/style.css +1 -1
  27. package/package.json +1 -1
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-DjcfhNER.js";
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-xuXwRCg4.js";
2
2
  export {
3
3
  s as AddDeviceDrawer,
4
4
  r as AddDeviceFromProductDrawer,
@@ -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-DjcfhNER.js";
2
+ import { _ as m } from "./index-xuXwRCg4.js";
3
3
  const h = u({
4
4
  props: {
5
5
  value: { type: [String, Number], default: "" },
@@ -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-DjcfhNER.js";
2
+ import { _ as g } from "./index-xuXwRCg4.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-DjcfhNER.js";
2
+ import { _ as g } from "./index-xuXwRCg4.js";
3
3
  const y = {
4
4
  props: {
5
5
  identifier: {
@@ -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: () => void;
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: () => void;
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
  }, {}, {
@@ -0,0 +1,51 @@
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>;
@@ -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
  }, {}, {
@@ -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
  }, {}, {
@@ -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-DjcfhNER.js";
2
+ import { _ as L } from "./index-xuXwRCg4.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-DjcfhNER.js";
2
+ import { _ as L } from "./index-xuXwRCg4.js";
3
3
  const E = {
4
4
  props: {
5
5
  identifier: {