@xdmp-open/ui-iot 0.1.15 → 0.1.17

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 (43) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{arrayForm-CrgY1ZTY.js → arrayForm-BC3Y1Kz5.js} +1 -1
  3. package/dist/{arrayForm-CYKbOnCH.js → arrayForm-CoCRAQ3b.js} +1 -1
  4. package/dist/{bitMapForm-CztqYl_a.js → bitMapForm-DMHoY3lX.js} +1 -1
  5. package/dist/{bitMapForm-w59F8pvT.js → bitMapForm-PbBblF45.js} +1 -1
  6. package/dist/{bitmapForm-Dr_2h2U2.js → bitmapForm-CXGExumI.js} +1 -1
  7. package/dist/{boolForm-DkI4Tc-9.js → boolForm-DMkgYitO.js} +1 -1
  8. package/dist/{boolForm-CAovAeL8.js → boolForm-_JVwJls0.js} +1 -1
  9. package/dist/{doubleForm-HC0c7kWs.js → doubleForm-Byj3U4fp.js} +1 -1
  10. package/dist/{doubleForm-h8PD_MZq.js → doubleForm-C1zkiELg.js} +1 -1
  11. package/dist/{doubleForm-BVZTb5DB.js → doubleForm-DocRt2LL.js} +1 -1
  12. package/dist/{enumForm-CbmhOM-p.js → enumForm-BGJGOS7R.js} +1 -1
  13. package/dist/{enumForm-Df0mw4qB.js → enumForm-CkpWczH0.js} +1 -1
  14. package/dist/{enumForm-DdnmTjgc.js → enumForm-CzZpN8mo.js} +1 -1
  15. package/dist/{index-B5zmaweJ.js → index-B2Q5vnUx.js} +8921 -8471
  16. package/dist/index.js +1 -1
  17. package/dist/{inputForm-DI6JtF0K.js → inputForm-B1V2KPhy.js} +1 -1
  18. package/dist/{inputForm-Dyh08sK2.js → inputForm-Cu10QoO-.js} +1 -1
  19. package/dist/{inputForm-B2tnE1gh.js → inputForm-b03C1epH.js} +1 -1
  20. package/dist/modules/project/device/components/deviceChild.vue.d.ts +3 -0
  21. package/dist/modules/project/device/components/modal/updateProperties.vue.d.ts +2 -0
  22. package/dist/modules/project/device/components/modal/updateTelemeties.vue.d.ts +6 -2
  23. package/dist/modules/project/device/components/properties.vue.d.ts +3 -1
  24. package/dist/modules/project/device/components/service.vue.d.ts +17 -2
  25. package/dist/modules/project/device/components/servicePanels.d.ts +19 -3
  26. package/dist/modules/project/device/components/telemetry.vue.d.ts +3 -1
  27. package/dist/modules/project/device/deviceDetailTab.d.ts +10 -0
  28. package/dist/modules/project/device/deviceListTree.d.ts +29 -0
  29. package/dist/modules/project/device/devices.vue.d.ts +5 -0
  30. package/dist/modules/project/product/tabComponents/tslOperation.vue.d.ts +3 -0
  31. package/dist/modules/project/robot/components/modal/remoteHandle.vue.d.ts +17 -2
  32. package/dist/modules/project/robot/components/modal/updateProperties.vue.d.ts +2 -0
  33. package/dist/modules/project/robot/components/modal/updateTelemeties.vue.d.ts +6 -2
  34. package/dist/modules/project/robot/components/properties.vue.d.ts +3 -1
  35. package/dist/modules/project/robot/components/service.vue.d.ts +17 -3
  36. package/dist/modules/project/robot/components/telemetry.vue.d.ts +3 -1
  37. package/dist/modules/project/robot/module/propertiesBox.vue.d.ts +1 -1
  38. package/dist/modules/project/robot/module/serviceRecordBox.vue.d.ts +17 -2
  39. package/dist/{structForm-BKvKPyWQ.js → structForm-Bc7aFV6c.js} +1 -1
  40. package/dist/{structForm-Ce14Ppt_.js → structForm-DWx0sQ6d.js} +1 -1
  41. package/dist/style.css +1 -1
  42. package/dist/utils/thingModel.d.ts +25 -0
  43. package/package.json +4 -4
@@ -18,6 +18,18 @@
18
18
  * - array → Array(递归)
19
19
  * - struct → Object(递归)
20
20
  */
21
+ type TslDataType = {
22
+ type?: string;
23
+ specs?: unknown;
24
+ };
25
+ type TslField = {
26
+ identifier?: string;
27
+ name?: string;
28
+ required?: boolean;
29
+ accessMode?: unknown;
30
+ dataType?: TslDataType;
31
+ [key: string]: unknown;
32
+ };
21
33
  /**
22
34
  * 按物模型 dataType 将表单原始值转换为对应的 JS 类型
23
35
  *
@@ -40,3 +52,16 @@ export declare function buildPropertyItem(dataType: any, key: string, rawValue:
40
52
  key: string;
41
53
  value: any;
42
54
  };
55
+ export declare function parseThingModel(tsl: unknown): Record<string, any>;
56
+ export declare function accessModeOf(mode: unknown): string;
57
+ /** TSL accessMode:rw / wo 可下发设置;ro / r 只读。缺省按只读。 */
58
+ export declare function isWritableAccessMode(mode: unknown): boolean;
59
+ export declare function writableTslItems<T extends TslField>(items: T[] | null | undefined): T[];
60
+ export declare function structFields(specs: unknown): TslField[];
61
+ export declare function isAbsentInput(value: unknown): boolean;
62
+ export declare function initTslInputValue(item: TslField | null | undefined): unknown;
63
+ export declare function initServiceInputForm(inputData: TslField[] | null | undefined): Record<string, unknown>;
64
+ export declare function coerceServiceInputs(inputData: TslField[] | null | undefined, form: Record<string, unknown>): Record<string, unknown>;
65
+ export declare function coerceWritablePayload(items: TslField[] | null | undefined, form: Record<string, unknown>): Record<string, unknown>;
66
+ export declare function accessModeLabel(mode: unknown): string;
67
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xdmp-open/ui-iot",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "XDMP platform IoT business page components: project/thing/sense/monitor/cockpit (Vue 3 + Element Plus)",
5
5
  "license": "Apache-2.0",
6
6
  "author": "China Mobile IoT",
@@ -78,10 +78,10 @@
78
78
  "file-saver": "^2.0.1",
79
79
  "vue": "^3.5.0",
80
80
  "vue-router": "^4.6.4",
81
- "@xdmp-open/sdk-admin": "0.1.3",
82
- "@xdmp-open/sdk-iot": "0.1.1",
83
81
  "@xdmp-open/sdk-notify": "0.1.0",
84
- "@xdmp-open/ui-shared": "0.1.4"
82
+ "@xdmp-open/sdk-admin": "0.1.3",
83
+ "@xdmp-open/ui-shared": "0.1.4",
84
+ "@xdmp-open/sdk-iot": "0.1.1"
85
85
  },
86
86
  "scripts": {
87
87
  "build": "vite build",