@xdmp-open/ui-iot 0.1.11 → 0.1.13

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 (36) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{arrayForm-DJCG9VvX.js → arrayForm-CbVtXmTX.js} +1 -1
  3. package/dist/{arrayForm-BBQMsEX4.js → arrayForm-D3PzrS64.js} +1 -1
  4. package/dist/{bitMapForm-CMNGmvKr.js → bitMapForm-B0_5FAQJ.js} +1 -1
  5. package/dist/{bitMapForm-cMO0XWI8.js → bitMapForm-Ctm4ntk5.js} +1 -1
  6. package/dist/{bitmapForm-DljOLXAG.js → bitmapForm-THpZ2smY.js} +1 -1
  7. package/dist/{boolForm-DmQFYMQT.js → boolForm-C9ENaKcE.js} +1 -1
  8. package/dist/{boolForm-D2t6Cx9K.js → boolForm-oB7ypsWH.js} +1 -1
  9. package/dist/{doubleForm-DJOUIii-.js → doubleForm-BHH_3kyY.js} +1 -1
  10. package/dist/{doubleForm-D9BIKs9j.js → doubleForm-CS3s-2fD.js} +1 -1
  11. package/dist/{doubleForm-BnRkZgm8.js → doubleForm-DasYdkpy.js} +1 -1
  12. package/dist/{enumForm-BUicyv4j.js → enumForm-B4U7kHiP.js} +1 -1
  13. package/dist/{enumForm-BJPaGHfL.js → enumForm-D7gOEMCi.js} +1 -1
  14. package/dist/{enumForm-DqpPPA-j.js → enumForm-ul_jHOld.js} +1 -1
  15. package/dist/{index-Dt8dqoF6.js → index-lwSKvSJG.js} +7980 -7787
  16. package/dist/index.js +1 -1
  17. package/dist/{inputForm-0FUNys_c.js → inputForm-CFG9uC5O.js} +1 -1
  18. package/dist/{inputForm-vjtO-RgY.js → inputForm-DGxR-Fvd.js} +1 -1
  19. package/dist/{inputForm-CE9pJN_F.js → inputForm-DMtiW7HU.js} +1 -1
  20. package/dist/modules/project/device/components/deviceShadow.vue.d.ts +9 -2
  21. package/dist/modules/project/device/components/event.vue.d.ts +2 -1
  22. package/dist/modules/project/device/components/properties.vue.d.ts +2 -1
  23. package/dist/modules/project/device/components/service.vue.d.ts +0 -1
  24. package/dist/modules/project/device/components/telemetry.vue.d.ts +2 -1
  25. package/dist/modules/project/device/deviceDetailTab.d.ts +37 -0
  26. package/dist/modules/project/product/tabComponents/productTslImport.d.ts +14 -0
  27. package/dist/modules/project/product/tabComponents/topicList.vue.d.ts +1 -0
  28. package/dist/modules/project/robot/components/deviceShadow.vue.d.ts +9 -2
  29. package/dist/modules/project/robot/components/event.vue.d.ts +4 -2
  30. package/dist/modules/project/robot/components/properties.vue.d.ts +3 -1
  31. package/dist/modules/project/robot/components/service.vue.d.ts +1 -1
  32. package/dist/modules/project/robot/components/telemetry.vue.d.ts +4 -2
  33. package/dist/{structForm-CO3fBZbH.js → structForm-BpovzeD0.js} +1 -1
  34. package/dist/{structForm-o-XyHiQH.js → structForm-CUyaTxtG.js} +1 -1
  35. package/dist/style.css +1 -1
  36. package/package.json +3 -3
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-Dt8dqoF6.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-lwSKvSJG.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-Dt8dqoF6.js";
2
+ import { _ as g } from "./index-lwSKvSJG.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-Dt8dqoF6.js";
2
+ import { _ as m } from "./index-lwSKvSJG.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-Dt8dqoF6.js";
2
+ import { _ as g } from "./index-lwSKvSJG.js";
3
3
  const y = {
4
4
  props: {
5
5
  identifier: {
@@ -21,7 +21,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
21
21
  column: string;
22
22
  }[];
23
23
  };
24
- hasInitialized: boolean;
24
+ mqttTimer: null;
25
25
  editData: {};
26
26
  isEdit: boolean;
27
27
  isHistoey: boolean;
@@ -50,8 +50,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
50
50
  format: string;
51
51
  options?: undefined;
52
52
  })[];
53
- }, {}, {
53
+ }, {
54
+ topic(): string;
55
+ }, {
54
56
  dayjs: typeof dayjs;
57
+ syncActiveTab(): void;
58
+ teardownNotify(): void;
59
+ unsubscribeMqtt(): void;
60
+ subscribeMqtt(): void;
61
+ handleMqttMessage(_topic: any, payload: any): void;
55
62
  formatCashDate(row: any, column: any): any;
56
63
  getList(): void;
57
64
  onSearch(val: any): void;
@@ -26,7 +26,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
26
26
  editData: {};
27
27
  isEdit: boolean;
28
28
  isHistoey: boolean;
29
- hasInitialized: boolean;
30
29
  formOptions: ({
31
30
  label: string;
32
31
  prop: string;
@@ -61,6 +60,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
61
60
  topic(): string;
62
61
  }, {
63
62
  dayjs: typeof dayjs;
63
+ syncActiveTab(): void;
64
+ teardownNotify(): void;
64
65
  unsubscribeMqtt(): void;
65
66
  subscribeMqtt(): void;
66
67
  handleMqttMessage(topic: any, payload: any): void;
@@ -49,11 +49,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
49
49
  type: string;
50
50
  format: string;
51
51
  })[];
52
- hasInitialized: boolean;
53
52
  }, {
54
53
  topic(): string;
55
54
  }, {
56
55
  dayjs: typeof dayjs;
56
+ syncActiveTab(): void;
57
+ teardownNotify(): void;
57
58
  unsubscribeMqtt(): void;
58
59
  subscribeMqtt(): void;
59
60
  handleMqttMessage(topic: any, payload: any): void;
@@ -24,7 +24,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
24
24
  prop: string;
25
25
  element: string;
26
26
  }[];
27
- hasInitialized: boolean;
28
27
  }, {}, {
29
28
  dayjs: typeof dayjs;
30
29
  tryInit(): void;
@@ -44,11 +44,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
44
44
  type: string;
45
45
  format: string;
46
46
  })[];
47
- hasInitialized: boolean;
48
47
  }, {
49
48
  topic(): string;
50
49
  }, {
51
50
  dayjs: typeof dayjs;
51
+ syncActiveTab(): void;
52
+ teardownNotify(): void;
52
53
  unsubscribeMqtt(): void;
53
54
  subscribeMqtt(): void;
54
55
  handleMqttMessage(topic: any, payload: any): void;
@@ -0,0 +1,37 @@
1
+ export type DeviceNotifyIds = {
2
+ projectId?: unknown;
3
+ productId?: unknown;
4
+ deviceId?: unknown;
5
+ };
6
+ export declare function hasDeviceNotifyIds(ids: DeviceNotifyIds | null | undefined): boolean;
7
+ /** 主题:platform/notify/device/{projectId}/{productId}/{deviceId}/{suffix} */
8
+ export declare function deviceNotifyTopic(ids: DeviceNotifyIds, suffix: string): string;
9
+ /** 影子上报值来自属性/遥测上报(同一 /property 主题,靠 dataType 区分)。 */
10
+ export declare function shouldRefreshShadowOnNotify(payload: {
11
+ dataType?: unknown;
12
+ } | null | undefined): boolean;
13
+ export type DeviceTabNotifySyncInput = {
14
+ isActive: boolean;
15
+ hasIds: boolean;
16
+ currentTopic: string;
17
+ subscribedTopic: string;
18
+ };
19
+ export type DeviceTabNotifySyncAction = 'teardown' | 'subscribe-reload' | 'keep';
20
+ /**
21
+ * idsObj / isActive 两路 watch 都会进 sync。主题没变时 keep,避免和 notify 回调叠成两次刷新。
22
+ */
23
+ export declare function planDeviceTabNotifySync(input: DeviceTabNotifySyncInput): DeviceTabNotifySyncAction;
24
+ export type StaticDetailTabInput = {
25
+ isActive: boolean;
26
+ currentKey: string;
27
+ loadedKey: string;
28
+ };
29
+ /** 服务等非准实时 Tab:首次切入(或产品变化)才加载,再切入不刷新。 */
30
+ export declare function shouldInitStaticDetailTab(input: StaticDetailTabInput): boolean;
31
+ export declare function topicListSourceKey(page: {
32
+ nodeType?: unknown;
33
+ productKey?: unknown;
34
+ deviceKey?: unknown;
35
+ } | null | undefined): string;
36
+ /** Topic 列表是模板数据,key 不变时不要跟着 pageData 重置表格。 */
37
+ export declare function shouldReplaceTopicList(boundKey: string, nextKey: string): boolean;
@@ -0,0 +1,14 @@
1
+ export type ProductTsl = {
2
+ properties: unknown[];
3
+ telemetries: unknown[];
4
+ events: unknown[];
5
+ services: unknown[];
6
+ [key: string]: unknown;
7
+ };
8
+ export type ProductTslImportApply = {
9
+ tsl: ProductTsl;
10
+ showSetting: false;
11
+ reloadList: true;
12
+ };
13
+ /** 产品详情导入 TSL 已由接口落库:解析结果并退出设置态、刷新功能点列表。 */
14
+ export declare function applyPersistedProductTslImport(tslJson: string): ProductTslImportApply;
@@ -16,6 +16,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
16
16
  }, {
17
17
  allTopicList(): unknown[];
18
18
  }, {
19
+ syncTopicList(): void;
19
20
  spanMethod({ row, column, rowIndex, columnIndex }: {
20
21
  row: any;
21
22
  column: any;
@@ -21,7 +21,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
21
21
  column: string;
22
22
  }[];
23
23
  };
24
- hasInitialized: boolean;
24
+ mqttTimer: null;
25
25
  editData: {};
26
26
  isEdit: boolean;
27
27
  isHistoey: boolean;
@@ -50,8 +50,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
50
50
  format: string;
51
51
  options?: undefined;
52
52
  })[];
53
- }, {}, {
53
+ }, {
54
+ topic(): string;
55
+ }, {
54
56
  dayjs: typeof dayjs;
57
+ syncActiveTab(): void;
58
+ teardownNotify(): void;
59
+ unsubscribeMqtt(): void;
60
+ subscribeMqtt(): void;
61
+ handleMqttMessage(_topic: any, payload: any): void;
55
62
  formatCashDate(row: any, column: any): any;
56
63
  getList(): void;
57
64
  onSearch(val: any): void;
@@ -26,7 +26,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
26
26
  editData: {};
27
27
  isEdit: boolean;
28
28
  isHistoey: boolean;
29
- hasInitialized: boolean;
30
29
  mqttTimer: null;
31
30
  formOptions: ({
32
31
  label: string;
@@ -62,8 +61,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
62
61
  topic(): string;
63
62
  }, {
64
63
  dayjs: typeof dayjs;
65
- getDictList(): Promise<void>;
64
+ syncActiveTab(): void;
65
+ teardownNotify(): void;
66
+ unsubscribeMqtt(): void;
66
67
  subscribeMqtt(): void;
68
+ getDictList(): Promise<void>;
67
69
  handleMqttMessage(topic: any, payload: any): void;
68
70
  getList(silent: any): void;
69
71
  onSearch(val: any): void;
@@ -38,7 +38,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
38
38
  };
39
39
  editData: {};
40
40
  property: {};
41
- hasInitialized: boolean;
42
41
  formOptions: ({
43
42
  label: string;
44
43
  prop: string;
@@ -65,6 +64,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
65
64
  topic(): string;
66
65
  }, {
67
66
  dayjs: typeof dayjs;
67
+ syncActiveTab(): void;
68
+ teardownNotify(): void;
69
+ unsubscribeMqtt(): void;
68
70
  getDictList(): Promise<void>;
69
71
  subscribeMqtt(): void;
70
72
  handleMqttMessage(topic: any, payload: any): void;
@@ -42,9 +42,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
42
42
  element: string;
43
43
  options: never[];
44
44
  })[];
45
- hasInitialized: boolean;
46
45
  }, {}, {
47
46
  dayjs: typeof dayjs;
47
+ syncActiveTab(): void;
48
48
  getDictList(): Promise<void>;
49
49
  getList(): Promise<void>;
50
50
  getTsl(): Promise<void>;
@@ -55,13 +55,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
55
55
  format: string;
56
56
  options?: undefined;
57
57
  })[];
58
- hasInitialized: boolean;
59
58
  }, {
60
59
  topic(): string;
61
60
  }, {
62
61
  dayjs: typeof dayjs;
63
- getDictList(): Promise<void>;
62
+ syncActiveTab(): void;
63
+ teardownNotify(): void;
64
+ unsubscribeMqtt(): void;
64
65
  subscribeMqtt(): void;
66
+ getDictList(): Promise<void>;
65
67
  handleMqttMessage(topic: any, payload: any): void;
66
68
  getList(silent: any): Promise<void>;
67
69
  getProduct(): Promise<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-Dt8dqoF6.js";
2
+ import { _ as L } from "./index-lwSKvSJG.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-Dt8dqoF6.js";
2
+ import { _ as L } from "./index-lwSKvSJG.js";
3
3
  const E = {
4
4
  props: {
5
5
  identifier: {