@xdmp-open/ui-iot 0.1.17 → 0.1.19

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 (25) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{arrayForm-CoCRAQ3b.js → arrayForm-BJPCO_60.js} +1 -1
  3. package/dist/{arrayForm-BC3Y1Kz5.js → arrayForm-y4HPt_hh.js} +1 -1
  4. package/dist/{bitMapForm-DMHoY3lX.js → bitMapForm-DAnpl9t0.js} +1 -1
  5. package/dist/{bitMapForm-PbBblF45.js → bitMapForm-K1dA57fl.js} +1 -1
  6. package/dist/{bitmapForm-CXGExumI.js → bitmapForm-DH3wSC9u.js} +1 -1
  7. package/dist/{boolForm-DMkgYitO.js → boolForm-Ba0T8L0C.js} +1 -1
  8. package/dist/{boolForm-_JVwJls0.js → boolForm-CnZJa2aM.js} +1 -1
  9. package/dist/{doubleForm-Byj3U4fp.js → doubleForm-BmZ6xuYX.js} +1 -1
  10. package/dist/{doubleForm-C1zkiELg.js → doubleForm-HPRjmMen.js} +1 -1
  11. package/dist/{doubleForm-DocRt2LL.js → doubleForm-ZEqxtOcG.js} +1 -1
  12. package/dist/{enumForm-CzZpN8mo.js → enumForm-C-nckhb1.js} +1 -1
  13. package/dist/{enumForm-CkpWczH0.js → enumForm-CM3wuyTt.js} +1 -1
  14. package/dist/{enumForm-BGJGOS7R.js → enumForm-DpdjPGZd.js} +1 -1
  15. package/dist/{index-B2Q5vnUx.js → index-BcXImoLV.js} +3576 -3513
  16. package/dist/index.js +1 -1
  17. package/dist/{inputForm-B1V2KPhy.js → inputForm-C9v-ROCb.js} +1 -1
  18. package/dist/{inputForm-Cu10QoO-.js → inputForm-CxZVEu9_.js} +1 -1
  19. package/dist/{inputForm-b03C1epH.js → inputForm-cV4ixqK_.js} +1 -1
  20. package/dist/modules/project/device/components/deviceChild.vue.d.ts +18 -1
  21. package/dist/modules/project/device/deviceListNotify.d.ts +22 -6
  22. package/dist/{structForm-DWx0sQ6d.js → structForm-DSRfq0-J.js} +1 -1
  23. package/dist/{structForm-Bc7aFV6c.js → structForm-jRrtw3oa.js} +1 -1
  24. package/dist/style.css +1 -1
  25. 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-B2Q5vnUx.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-BcXImoLV.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-B2Q5vnUx.js";
2
+ import { _ as m } from "./index-BcXImoLV.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-B2Q5vnUx.js";
2
+ import { _ as g } from "./index-BcXImoLV.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-B2Q5vnUx.js";
2
+ import { _ as g } from "./index-BcXImoLV.js";
3
3
  const y = {
4
4
  props: {
5
5
  identifier: {
@@ -4,6 +4,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
4
4
  type: BooleanConstructor;
5
5
  default: boolean;
6
6
  };
7
+ projectId: {
8
+ type: (StringConstructor | NumberConstructor)[];
9
+ default: string;
10
+ };
7
11
  }>, {}, {
8
12
  total: number;
9
13
  loading: boolean;
@@ -30,7 +34,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
30
34
  }, {}, {
31
35
  dayjs: typeof dayjs;
32
36
  bindParentQuery(): void;
33
- getList(): void;
37
+ subscribeMqtt(): void;
38
+ unsubscribeMqtt(): void;
39
+ handleDeviceStatusMessage(topic: any, payload: any): void;
40
+ getList(silent: any): Promise<{
41
+ list?: import('@xdmp-open/sdk-iot').IotComponents["schemas"]["DeviceVO"][];
42
+ pageNo?: number;
43
+ total?: number;
44
+ }>;
45
+ refreshLoadedChildren(parentIds: any): Promise<void> | Promise<any[]>;
34
46
  loadChildren(row: any, _treeNode: any, resolve: any): void;
35
47
  isRelation(): void;
36
48
  handleClick(item: any): void;
@@ -46,7 +58,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
46
58
  type: BooleanConstructor;
47
59
  default: boolean;
48
60
  };
61
+ projectId: {
62
+ type: (StringConstructor | NumberConstructor)[];
63
+ default: string;
64
+ };
49
65
  }>> & Readonly<{}>, {
66
+ projectId: string | number;
50
67
  isActive: boolean;
51
68
  }, {}, {
52
69
  searchForm: import('vue').DefineComponent<any, any, any>;
@@ -1,23 +1,39 @@
1
1
  /**
2
2
  * 设备/机器人列表页的 notify 订阅。
3
3
  *
4
- * 两条通道职责不同:
5
- * - `platform/notify/device`:创删改(含 batchUpdate)。主题里没有项目,
6
- * 全平台共享,只能靠载荷里的 projectId 过滤;没有 ID 时刷新当前页。
7
- * - `platform/notify/device/{projectId}/+/+/status`:在离线。
8
- * projectId 编进主题,Broker 只推本项目,和全站 `+/+/+/status` 或裸 CUD 不是一回事。
4
+ * 三条通道职责不同:
5
+ * - `platform/notify/device`:创删改。设备树/子设备 Tab 只处理 created/deleted;
6
+ * CUD updated 是级联 batchPut,会打爆 page,status 改走 children 主题。
7
+ * - `platform/notify/device/{projectId}/+/+/status`:单设备在离线(机器人列表、详情)。
8
+ * - `platform/notify/device/{projectId}/{parentId}/children/status`:子设备分页,
9
+ * 后端按父节点最多 1 秒一条;设备树订 `+/children`,子设备 Tab 订当前网关。
9
10
  */
10
11
  export declare const DEVICE_CUD_NOTIFY_TOPIC = "platform/notify/device";
12
+ export declare const DEVICE_CHILDREN_TOPIC_SEGMENT = "children";
11
13
  type NotifyIds = {
12
14
  projectId?: unknown;
13
15
  productId?: unknown;
16
+ eventType?: unknown;
14
17
  };
15
18
  /**
16
- * 当前项目应订阅的主题:共享 CUD + 本项目 status(无 projectId 时 status 段退化为 +)。
19
+ * 机器人列表:共享 CUD + 本项目单设备 status。
17
20
  */
18
21
  export declare function deviceListNotifyTopics(projectId: unknown): string[];
22
+ /**
23
+ * 设备管理树:共享 CUD + 本项目所有父节点的 children status。
24
+ */
25
+ export declare function deviceTreeNotifyTopics(projectId: unknown): string[];
26
+ /**
27
+ * 网关详情子设备 Tab:共享 CUD + 当前网关的 children status。
28
+ */
29
+ export declare function deviceChildTabNotifyTopics(projectId: unknown, parentId: unknown): string[];
19
30
  /**
20
31
  * 当前项目(及可选的产品筛选)是否应对这条推送刷新概览/列表。
21
32
  */
22
33
  export declare function shouldRefreshDeviceOverview(subjectId: unknown, selectedProductId: unknown, payload: NotifyIds | null | undefined, topic?: string): boolean;
34
+ /**
35
+ * 设备树 / 子设备 Tab:status 只走 children 主题。
36
+ * CUD `updated` 来自级联 batchPut,每条都会立刻 page;created/deleted 才刷新结构。
37
+ */
38
+ export declare function shouldRefreshDeviceTreePage(subjectId: unknown, selectedProductId: unknown, payload: NotifyIds | null | undefined, topic?: string): boolean;
23
39
  export {};
@@ -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-B2Q5vnUx.js";
2
+ import { _ as L } from "./index-BcXImoLV.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 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-B2Q5vnUx.js";
2
+ import { _ as L } from "./index-BcXImoLV.js";
3
3
  const E = {
4
4
  props: {
5
5
  identifier: {