@xdmp-open/ui-iot 0.1.0

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 (376) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE +201 -0
  3. package/README.md +40 -0
  4. package/dist/arrayForm-CmE1acqw.js +220 -0
  5. package/dist/arrayForm-Lwfbw7Va.js +221 -0
  6. package/dist/assets/0b852c48e2739460.png +0 -0
  7. package/dist/assets/0c1944076fc099c9.png +0 -0
  8. package/dist/assets/0d328e8ac16d310b.png +0 -0
  9. package/dist/assets/0e8c5ddf6083accd.png +0 -0
  10. package/dist/assets/0f024af7e73ecdaf.png +0 -0
  11. package/dist/assets/159360b5db986850.png +0 -0
  12. package/dist/assets/169271f65e2a438a.png +0 -0
  13. package/dist/assets/1d4b5cf3d01bbafe.png +0 -0
  14. package/dist/assets/24bb52ba08a98bee.png +0 -0
  15. package/dist/assets/2b8b8276db3b5173.png +0 -0
  16. package/dist/assets/3676ff005bdfe111.png +0 -0
  17. package/dist/assets/38cd9640e16758e7.png +0 -0
  18. package/dist/assets/44dace48d71328bc.png +0 -0
  19. package/dist/assets/54251611c79ad1c0.png +0 -0
  20. package/dist/assets/54f72c89e5ea1e49.png +0 -0
  21. package/dist/assets/553c8a302452b3b7.png +0 -0
  22. package/dist/assets/566a4c4da3ba3d77.ttf +0 -0
  23. package/dist/assets/567092ca4e2c1160.png +0 -0
  24. package/dist/assets/62595475997dd655.jpg +0 -0
  25. package/dist/assets/62db30a0d8c5a851.png +0 -0
  26. package/dist/assets/6657a28a5b132f0d.png +0 -0
  27. package/dist/assets/6b5ba13d17cb190c.png +0 -0
  28. package/dist/assets/71fd5ff154dd69ce.png +0 -0
  29. package/dist/assets/78097b273109dd05.png +0 -0
  30. package/dist/assets/7f73329f76131abd.png +0 -0
  31. package/dist/assets/86eadba83fa72535.png +0 -0
  32. package/dist/assets/8e2a275e69a13669.png +0 -0
  33. package/dist/assets/987f68aaa530ebb0.png +0 -0
  34. package/dist/assets/9daaa6bf7c8bf2ba.otf +0 -0
  35. package/dist/assets/a62dc049f9596b44.png +0 -0
  36. package/dist/assets/a7c81ebe3861a4d3.png +0 -0
  37. package/dist/assets/ab9ce4447aa875c1.png +0 -0
  38. package/dist/assets/b2b8f9386d8a459b.otf +0 -0
  39. package/dist/assets/b3e83896b2c78588.png +0 -0
  40. package/dist/assets/b40ebf6529d7c29d.png +0 -0
  41. package/dist/assets/b530ce466fcb2f8f.gif +0 -0
  42. package/dist/assets/b5e72b099ccaa999.png +0 -0
  43. package/dist/assets/c29e7c5bb480c017.png +0 -0
  44. package/dist/assets/c367bb2575c42e24.png +0 -0
  45. package/dist/assets/c837c63c6c22238c.ttf +0 -0
  46. package/dist/assets/d295338c52782525.png +0 -0
  47. package/dist/assets/d578ff07d06803be.otf +0 -0
  48. package/dist/assets/d9911f3c6bf4e20d.png +0 -0
  49. package/dist/assets/ee662c70b5a5ee3a.png +0 -0
  50. package/dist/assets/ef37c98e4bbff432.png +0 -0
  51. package/dist/assets/f322b90d006bfe85.png +0 -0
  52. package/dist/assets/f5cc663d5c933f04.png +0 -0
  53. package/dist/assets/f9e1c31cd7263b41.png +0 -0
  54. package/dist/assets/fc8630f27950d2c8.ttf +0 -0
  55. package/dist/bitMapForm-CVdiXzcr.js +195 -0
  56. package/dist/bitMapForm-K43vdw9W.js +195 -0
  57. package/dist/bitmapForm-DDq_3tGP.js +124 -0
  58. package/dist/boolForm-DdJPxRdN.js +113 -0
  59. package/dist/boolForm-gKNZpA9y.js +113 -0
  60. package/dist/components/JsonPreview.vue.d.ts +17 -0
  61. package/dist/context.d.ts +46 -0
  62. package/dist/doubleForm-C7cDC0i3.js +130 -0
  63. package/dist/doubleForm-VbvH0Dyj.js +135 -0
  64. package/dist/doubleForm-hWSA8otd.js +133 -0
  65. package/dist/enumForm-BI3a2EMa.js +100 -0
  66. package/dist/enumForm-CTomV6wg.js +83 -0
  67. package/dist/enumForm-DHJzmxwB.js +100 -0
  68. package/dist/index-fkzLLq7p.js +74833 -0
  69. package/dist/index.d.ts +20 -0
  70. package/dist/index.js +98 -0
  71. package/dist/inputForm-DLRVhjWc.js +118 -0
  72. package/dist/inputForm-DZk3yjqo.js +60 -0
  73. package/dist/inputForm-IfO2pQjl.js +118 -0
  74. package/dist/modules/application/detail.vue.d.ts +3 -0
  75. package/dist/modules/application/index.d.ts +2 -0
  76. package/dist/modules/application/index.vue.d.ts +3 -0
  77. package/dist/modules/cockpit/component/amap.vue.d.ts +3 -0
  78. package/dist/modules/cockpit/component/cameraComponent.vue.d.ts +3 -0
  79. package/dist/modules/cockpit/component/cockpit-barChart.vue.d.ts +3 -0
  80. package/dist/modules/cockpit/component/cockpit-lineChart.vue.d.ts +3 -0
  81. package/dist/modules/cockpit/component/cockpit-pieChart.vue.d.ts +3 -0
  82. package/dist/modules/cockpit/component/deviceStatic.vue.d.ts +3 -0
  83. package/dist/modules/cockpit/component/inspectionStatic.vue.d.ts +3 -0
  84. package/dist/modules/cockpit/component/main.vue.d.ts +3 -0
  85. package/dist/modules/cockpit/component/miniBlock.vue.d.ts +3 -0
  86. package/dist/modules/cockpit/component/robotStatic.vue.d.ts +3 -0
  87. package/dist/modules/cockpit/component/searchComponent.vue.d.ts +3 -0
  88. package/dist/modules/cockpit/component/warnMonth.vue.d.ts +3 -0
  89. package/dist/modules/cockpit/component/warning_list.vue.d.ts +3 -0
  90. package/dist/modules/cockpit/component/windowInfo.vue.d.ts +3 -0
  91. package/dist/modules/cockpit/index.d.ts +1 -0
  92. package/dist/modules/cockpit/index.vue.d.ts +3 -0
  93. package/dist/modules/cockpit/mixins/cockpit-resize.d.ts +17 -0
  94. package/dist/modules/industry/index.d.ts +1 -0
  95. package/dist/modules/industry/index.vue.d.ts +3 -0
  96. package/dist/modules/industry/modules/templateDrawer.vue.d.ts +3 -0
  97. package/dist/modules/legacy-monitor/apply.vue.d.ts +3 -0
  98. package/dist/modules/legacy-monitor/components/messageDrawer.vue.d.ts +411 -0
  99. package/dist/modules/legacy-monitor/components/process-result.vue.d.ts +73 -0
  100. package/dist/modules/legacy-monitor/device.vue.d.ts +3 -0
  101. package/dist/modules/legacy-monitor/index.d.ts +8 -0
  102. package/dist/modules/legacy-monitor/index.vue.d.ts +3 -0
  103. package/dist/modules/legacy-monitor/inspection.vue.d.ts +3 -0
  104. package/dist/modules/legacy-monitor/inspection_detail.vue.d.ts +3 -0
  105. package/dist/modules/legacy-monitor/platform.vue.d.ts +3 -0
  106. package/dist/modules/monitor/debug/debugModule/arrayForm.vue.d.ts +66 -0
  107. package/dist/modules/monitor/debug/debugModule/bitMapForm.vue.d.ts +71 -0
  108. package/dist/modules/monitor/debug/debugModule/boolForm.vue.d.ts +50 -0
  109. package/dist/modules/monitor/debug/debugModule/doubleForm.vue.d.ts +51 -0
  110. package/dist/modules/monitor/debug/debugModule/enumForm.vue.d.ts +50 -0
  111. package/dist/modules/monitor/debug/debugModule/inputForm.vue.d.ts +56 -0
  112. package/dist/modules/monitor/debug/debugModule/structForm.vue.d.ts +73 -0
  113. package/dist/modules/monitor/debug/device.vue.d.ts +654 -0
  114. package/dist/modules/monitor/debug/modules/simulator/debugLog.vue.d.ts +19 -0
  115. package/dist/modules/monitor/debug/modules/simulator/desiredGet.vue.d.ts +39 -0
  116. package/dist/modules/monitor/debug/modules/simulator/desiredSet.vue.d.ts +75 -0
  117. package/dist/modules/monitor/debug/modules/simulator/eventReport.vue.d.ts +34 -0
  118. package/dist/modules/monitor/debug/modules/simulator/propertiesSet.vue.d.ts +74 -0
  119. package/dist/modules/monitor/debug/modules/simulator/propertyReport.vue.d.ts +41 -0
  120. package/dist/modules/monitor/debug/modules/simulator/servicesReport.vue.d.ts +68 -0
  121. package/dist/modules/monitor/debug/platform.vue.d.ts +1180 -0
  122. package/dist/modules/monitor/index.d.ts +3 -0
  123. package/dist/modules/monitor/log/applyLog.vue.d.ts +429 -0
  124. package/dist/modules/monitor/log/deviceLog.vue.d.ts +443 -0
  125. package/dist/modules/monitor/log/index.vue.d.ts +926 -0
  126. package/dist/modules/monitor/log/modules/applyLogDrawer.vue.d.ts +403 -0
  127. package/dist/modules/monitor/log/modules/deviceLogDrawer.vue.d.ts +407 -0
  128. package/dist/modules/project/alert/index.vue.d.ts +3 -0
  129. package/dist/modules/project/cockpit/index.vue.d.ts +3 -0
  130. package/dist/modules/project/components/addProductDrawer.vue.d.ts +414 -0
  131. package/dist/modules/project/components/projectDrawer.vue.d.ts +3 -0
  132. package/dist/modules/project/components/setAlarm.vue.d.ts +3 -0
  133. package/dist/modules/project/detail.vue.d.ts +3 -0
  134. package/dist/modules/project/device/batches.vue.d.ts +430 -0
  135. package/dist/modules/project/device/components/debug/applySimulator.vue.d.ts +1503 -0
  136. package/dist/modules/project/device/components/debug/debugModule/arrayForm.vue.d.ts +66 -0
  137. package/dist/modules/project/device/components/debug/debugModule/bitMapForm.vue.d.ts +71 -0
  138. package/dist/modules/project/device/components/debug/debugModule/boolForm.vue.d.ts +50 -0
  139. package/dist/modules/project/device/components/debug/debugModule/doubleForm.vue.d.ts +51 -0
  140. package/dist/modules/project/device/components/debug/debugModule/enumForm.vue.d.ts +50 -0
  141. package/dist/modules/project/device/components/debug/debugModule/inputForm.vue.d.ts +56 -0
  142. package/dist/modules/project/device/components/debug/debugModule/structForm.vue.d.ts +73 -0
  143. package/dist/modules/project/device/components/debug/deviceDebug.vue.d.ts +3260 -0
  144. package/dist/modules/project/device/components/debug/deviceSimulator.vue.d.ts +1691 -0
  145. package/dist/modules/project/device/components/debug/modal/addSubDeviceDrawer.vue.d.ts +419 -0
  146. package/dist/modules/project/device/components/debug/modal/simulator/appDebugLog.vue.d.ts +29 -0
  147. package/dist/modules/project/device/components/debug/modal/simulator/debugLog.vue.d.ts +29 -0
  148. package/dist/modules/project/device/components/debug/modal/simulator/desiredGet.vue.d.ts +73 -0
  149. package/dist/modules/project/device/components/debug/modal/simulator/desiredSet.vue.d.ts +76 -0
  150. package/dist/modules/project/device/components/debug/modal/simulator/eventReport.vue.d.ts +68 -0
  151. package/dist/modules/project/device/components/debug/modal/simulator/propertyGet.vue.d.ts +73 -0
  152. package/dist/modules/project/device/components/debug/modal/simulator/propertyReport.vue.d.ts +75 -0
  153. package/dist/modules/project/device/components/debug/modal/simulator/propertySet.vue.d.ts +75 -0
  154. package/dist/modules/project/device/components/debug/modal/simulator/servicesReport.vue.d.ts +67 -0
  155. package/dist/modules/project/device/components/debug/modal/simulator/subDeviceTopology.vue.d.ts +500 -0
  156. package/dist/modules/project/device/components/debug/modal/simulator/telDesiredGet.vue.d.ts +72 -0
  157. package/dist/modules/project/device/components/debug/modal/simulator/telDesiredSet.vue.d.ts +76 -0
  158. package/dist/modules/project/device/components/debug/modal/simulator/telemetryGet.vue.d.ts +73 -0
  159. package/dist/modules/project/device/components/debug/modal/simulator/telemetryReport.vue.d.ts +75 -0
  160. package/dist/modules/project/device/components/debug/modal/simulator/telemetrySet.vue.d.ts +75 -0
  161. package/dist/modules/project/device/components/debug/modal/subSimulator/subEventsReport.vue.d.ts +92 -0
  162. package/dist/modules/project/device/components/debug/modal/subSimulator/subPropertiesGet.vue.d.ts +91 -0
  163. package/dist/modules/project/device/components/debug/modal/subSimulator/subPropertiesReport.vue.d.ts +98 -0
  164. package/dist/modules/project/device/components/debug/modal/subSimulator/subPropertiesSet.vue.d.ts +93 -0
  165. package/dist/modules/project/device/components/debug/modal/subSimulator/subServicesReport.vue.d.ts +85 -0
  166. package/dist/modules/project/device/components/debug/modal/subSimulator/subTelemetriesGet.vue.d.ts +91 -0
  167. package/dist/modules/project/device/components/debug/modal/subSimulator/subTelemetriesReport.vue.d.ts +98 -0
  168. package/dist/modules/project/device/components/debug/modal/subSimulator/subTelemetriesSet.vue.d.ts +93 -0
  169. package/dist/modules/project/device/components/deviceChild.vue.d.ts +476 -0
  170. package/dist/modules/project/device/components/deviceShadow.vue.d.ts +464 -0
  171. package/dist/modules/project/device/components/deviceUpload.vue.d.ts +78 -0
  172. package/dist/modules/project/device/components/event.vue.d.ts +87 -0
  173. package/dist/modules/project/device/components/jessibuca-player.vue.d.ts +69 -0
  174. package/dist/modules/project/device/components/modal/addDeviceDrawer.vue.d.ts +483 -0
  175. package/dist/modules/project/device/components/modal/batchesDrawer.vue.d.ts +399 -0
  176. package/dist/modules/project/device/components/modal/editDeviceDrawer.vue.d.ts +397 -0
  177. package/dist/modules/project/device/components/modal/editDeviceExDrawer.vue.d.ts +422 -0
  178. package/dist/modules/project/device/components/modal/editDevicepPositionDrawer.vue.d.ts +436 -0
  179. package/dist/modules/project/device/components/modal/editLabelDialog.vue.d.ts +56 -0
  180. package/dist/modules/project/device/components/modal/editVerifyModeDialog.vue.d.ts +12 -0
  181. package/dist/modules/project/device/components/modal/issueDeviceDrawer.vue.d.ts +455 -0
  182. package/dist/modules/project/device/components/modal/mapSearchDeviceDialog.vue.d.ts +45 -0
  183. package/dist/modules/project/device/components/modal/propertiesHistory.vue.d.ts +44 -0
  184. package/dist/modules/project/device/components/modal/relationSubDeviceDrawer.vue.d.ts +426 -0
  185. package/dist/modules/project/device/components/modal/setExpectations.vue.d.ts +387 -0
  186. package/dist/modules/project/device/components/modal/telemetiesHistory.vue.d.ts +45 -0
  187. package/dist/modules/project/device/components/modal/updateProperties.vue.d.ts +388 -0
  188. package/dist/modules/project/device/components/modal/updateTelemeties.vue.d.ts +388 -0
  189. package/dist/modules/project/device/components/modal/uploadDeviceFileDialog.vue.d.ts +35 -0
  190. package/dist/modules/project/device/components/operation.vue.d.ts +54 -0
  191. package/dist/modules/project/device/components/properties.vue.d.ts +549 -0
  192. package/dist/modules/project/device/components/service.vue.d.ts +204 -0
  193. package/dist/modules/project/device/components/tag.vue.d.ts +45 -0
  194. package/dist/modules/project/device/components/telemetry.vue.d.ts +544 -0
  195. package/dist/modules/project/device/components/video.vue.d.ts +122 -0
  196. package/dist/modules/project/device/detail.vue.d.ts +3 -0
  197. package/dist/modules/project/device/devices.vue.d.ts +1949 -0
  198. package/dist/modules/project/device/group/components/add.vue.d.ts +480 -0
  199. package/dist/modules/project/device/group/components/labelDialog.vue.d.ts +13 -0
  200. package/dist/modules/project/device/group/components/treeSelect.vue.d.ts +75 -0
  201. package/dist/modules/project/device/group/detail.vue.d.ts +3 -0
  202. package/dist/modules/project/device/group/index.vue.d.ts +3 -0
  203. package/dist/modules/project/device/index.vue.d.ts +3 -0
  204. package/dist/modules/project/deviceManagement.vue.d.ts +3 -0
  205. package/dist/modules/project/index.d.ts +37 -0
  206. package/dist/modules/project/index.vue.d.ts +3 -0
  207. package/dist/modules/project/module/addDeviceDrawer.vue.d.ts +384 -0
  208. package/dist/modules/project/module/addDeviceFromProductDrawer.vue.d.ts +440 -0
  209. package/dist/modules/project/module/addMemberDrawer.vue.d.ts +399 -0
  210. package/dist/modules/project/module/editDeviceDrawer.vue.d.ts +438 -0
  211. package/dist/modules/project/module/memberDetail.vue.d.ts +387 -0
  212. package/dist/modules/project/module/moveDeviceDrawer.vue.d.ts +444 -0
  213. package/dist/modules/project/product/components/modal/editLabelDialog.vue.d.ts +56 -0
  214. package/dist/modules/project/product/components/modal/editVerifyModeDialog.vue.d.ts +12 -0
  215. package/dist/modules/project/product/detail.vue.d.ts +3 -0
  216. package/dist/modules/project/product/index.vue.d.ts +3 -0
  217. package/dist/modules/project/product/mappingComponent/eventDrawer.vue.d.ts +61 -0
  218. package/dist/modules/project/product/mappingComponent/propertiesDrawer.vue.d.ts +62 -0
  219. package/dist/modules/project/product/mappingComponent/servicesDrawer.vue.d.ts +60 -0
  220. package/dist/modules/project/product/mappingComponent/telemetryDrawer.vue.d.ts +62 -0
  221. package/dist/modules/project/product/model/eventDrawer.vue.d.ts +506 -0
  222. package/dist/modules/project/product/model/propertiesDrawer.vue.d.ts +76 -0
  223. package/dist/modules/project/product/model/propsDrawer.vue.d.ts +440 -0
  224. package/dist/modules/project/product/model/servicesDrawer.vue.d.ts +508 -0
  225. package/dist/modules/project/product/model/telemetryDrawer.vue.d.ts +72 -0
  226. package/dist/modules/project/product/modules/codemirror.vue.d.ts +15 -0
  227. package/dist/modules/project/product/modules/custom-drawer.vue.d.ts +668 -0
  228. package/dist/modules/project/product/modules/detail-tsl-drawer.vue.d.ts +1547 -0
  229. package/dist/modules/project/product/modules/export-tsl-drawer.vue.d.ts +400 -0
  230. package/dist/modules/project/product/modules/formatDialog.vue.d.ts +10 -0
  231. package/dist/modules/project/product/modules/import-tsl-drawer.vue.d.ts +387 -0
  232. package/dist/modules/project/product/modules/product-drawer.vue.d.ts +1756 -0
  233. package/dist/modules/project/product/modules/settingDrawer.vue.d.ts +434 -0
  234. package/dist/modules/project/product/modules/standard-detail-tips.vue.d.ts +140 -0
  235. package/dist/modules/project/product/modules/standard-drawer.vue.d.ts +566 -0
  236. package/dist/modules/project/product/modules/tips.vue.d.ts +86 -0
  237. package/dist/modules/project/product/modules/tsl-drawer.vue.d.ts +398 -0
  238. package/dist/modules/project/product/modules/uiap-product-drawer.vue.d.ts +808 -0
  239. package/dist/modules/project/product/tabComponents/topicList.vue.d.ts +54 -0
  240. package/dist/modules/project/product/tabComponents/tslManage.vue.d.ts +3 -0
  241. package/dist/modules/project/product/tabComponents/tslOperation.vue.d.ts +466 -0
  242. package/dist/modules/project/product/unit/draftScript.d.ts +2 -0
  243. package/dist/modules/project/product/unit/index.d.ts +5 -0
  244. package/dist/modules/project/product/unit/topicData.d.ts +51 -0
  245. package/dist/modules/project/product/unit/topicFlatList.d.ts +4 -0
  246. package/dist/modules/project/productManagement.vue.d.ts +3 -0
  247. package/dist/modules/project/robot/components/alarm.vue.d.ts +63 -0
  248. package/dist/modules/project/robot/components/audio-player.vue.d.ts +25 -0
  249. package/dist/modules/project/robot/components/controlGroup.vue.d.ts +9 -0
  250. package/dist/modules/project/robot/components/debug/applySimulator.vue.d.ts +1503 -0
  251. package/dist/modules/project/robot/components/debug/debugModule/arrayForm.vue.d.ts +66 -0
  252. package/dist/modules/project/robot/components/debug/debugModule/bitMapForm.vue.d.ts +71 -0
  253. package/dist/modules/project/robot/components/debug/debugModule/boolForm.vue.d.ts +50 -0
  254. package/dist/modules/project/robot/components/debug/debugModule/doubleForm.vue.d.ts +51 -0
  255. package/dist/modules/project/robot/components/debug/debugModule/enumForm.vue.d.ts +50 -0
  256. package/dist/modules/project/robot/components/debug/debugModule/inputForm.vue.d.ts +56 -0
  257. package/dist/modules/project/robot/components/debug/debugModule/structForm.vue.d.ts +73 -0
  258. package/dist/modules/project/robot/components/debug/deviceDebug.vue.d.ts +3260 -0
  259. package/dist/modules/project/robot/components/debug/deviceSimulator.vue.d.ts +1691 -0
  260. package/dist/modules/project/robot/components/debug/modal/addSubDeviceDrawer.vue.d.ts +419 -0
  261. package/dist/modules/project/robot/components/debug/modal/simulator/appDebugLog.vue.d.ts +29 -0
  262. package/dist/modules/project/robot/components/debug/modal/simulator/debugLog.vue.d.ts +29 -0
  263. package/dist/modules/project/robot/components/debug/modal/simulator/desiredGet.vue.d.ts +73 -0
  264. package/dist/modules/project/robot/components/debug/modal/simulator/desiredSet.vue.d.ts +76 -0
  265. package/dist/modules/project/robot/components/debug/modal/simulator/eventReport.vue.d.ts +68 -0
  266. package/dist/modules/project/robot/components/debug/modal/simulator/propertyGet.vue.d.ts +73 -0
  267. package/dist/modules/project/robot/components/debug/modal/simulator/propertyReport.vue.d.ts +75 -0
  268. package/dist/modules/project/robot/components/debug/modal/simulator/propertySet.vue.d.ts +75 -0
  269. package/dist/modules/project/robot/components/debug/modal/simulator/servicesReport.vue.d.ts +67 -0
  270. package/dist/modules/project/robot/components/debug/modal/simulator/subDeviceTopology.vue.d.ts +500 -0
  271. package/dist/modules/project/robot/components/debug/modal/simulator/telDesiredGet.vue.d.ts +72 -0
  272. package/dist/modules/project/robot/components/debug/modal/simulator/telDesiredSet.vue.d.ts +76 -0
  273. package/dist/modules/project/robot/components/debug/modal/simulator/telemetryGet.vue.d.ts +73 -0
  274. package/dist/modules/project/robot/components/debug/modal/simulator/telemetryReport.vue.d.ts +75 -0
  275. package/dist/modules/project/robot/components/debug/modal/simulator/telemetrySet.vue.d.ts +75 -0
  276. package/dist/modules/project/robot/components/debug/modal/subSimulator/subEventsReport.vue.d.ts +92 -0
  277. package/dist/modules/project/robot/components/debug/modal/subSimulator/subPropertiesGet.vue.d.ts +91 -0
  278. package/dist/modules/project/robot/components/debug/modal/subSimulator/subPropertiesReport.vue.d.ts +98 -0
  279. package/dist/modules/project/robot/components/debug/modal/subSimulator/subPropertiesSet.vue.d.ts +93 -0
  280. package/dist/modules/project/robot/components/debug/modal/subSimulator/subServicesReport.vue.d.ts +85 -0
  281. package/dist/modules/project/robot/components/debug/modal/subSimulator/subTelemetriesGet.vue.d.ts +91 -0
  282. package/dist/modules/project/robot/components/debug/modal/subSimulator/subTelemetriesReport.vue.d.ts +98 -0
  283. package/dist/modules/project/robot/components/debug/modal/subSimulator/subTelemetriesSet.vue.d.ts +93 -0
  284. package/dist/modules/project/robot/components/deviceChild.vue.d.ts +476 -0
  285. package/dist/modules/project/robot/components/deviceShadow.vue.d.ts +464 -0
  286. package/dist/modules/project/robot/components/event.vue.d.ts +88 -0
  287. package/dist/modules/project/robot/components/jessibuca-player.vue.d.ts +87 -0
  288. package/dist/modules/project/robot/components/modal/addDeviceDrawer.vue.d.ts +474 -0
  289. package/dist/modules/project/robot/components/modal/batchesDrawer.vue.d.ts +399 -0
  290. package/dist/modules/project/robot/components/modal/editDeviceExDrawer.vue.d.ts +422 -0
  291. package/dist/modules/project/robot/components/modal/propertiesHistory.vue.d.ts +44 -0
  292. package/dist/modules/project/robot/components/modal/relationSubDeviceDrawer.vue.d.ts +426 -0
  293. package/dist/modules/project/robot/components/modal/remoteHandle.vue.d.ts +69 -0
  294. package/dist/modules/project/robot/components/modal/serviceHistory.vue.d.ts +45 -0
  295. package/dist/modules/project/robot/components/modal/setExpectations.vue.d.ts +387 -0
  296. package/dist/modules/project/robot/components/modal/telemetiesHistory.vue.d.ts +45 -0
  297. package/dist/modules/project/robot/components/modal/updateProperties.vue.d.ts +388 -0
  298. package/dist/modules/project/robot/components/modal/updateTelemeties.vue.d.ts +388 -0
  299. package/dist/modules/project/robot/components/operation.vue.d.ts +54 -0
  300. package/dist/modules/project/robot/components/pieChart.vue.d.ts +130 -0
  301. package/dist/modules/project/robot/components/properties.vue.d.ts +560 -0
  302. package/dist/modules/project/robot/components/service.vue.d.ts +225 -0
  303. package/dist/modules/project/robot/components/telemetry.vue.d.ts +555 -0
  304. package/dist/modules/project/robot/components/video.vue.d.ts +169 -0
  305. package/dist/modules/project/robot/components/videotape.vue.d.ts +173 -0
  306. package/dist/modules/project/robot/detail.vue.d.ts +3 -0
  307. package/dist/modules/project/robot/hooks/renderArray.vue.d.ts +51 -0
  308. package/dist/modules/project/robot/index.vue.d.ts +3 -0
  309. package/dist/modules/project/robot/module/dataBox.vue.d.ts +36 -0
  310. package/dist/modules/project/robot/module/dataset.vue.d.ts +48 -0
  311. package/dist/modules/project/robot/module/propertiesBox.vue.d.ts +32 -0
  312. package/dist/modules/project/robot/module/serviceRecordBox.vue.d.ts +153 -0
  313. package/dist/modules/project/robot/module/testDataInfo.vue.d.ts +23 -0
  314. package/dist/modules/project/robot/robotBatches.vue.d.ts +430 -0
  315. package/dist/modules/project/robot/robotList.vue.d.ts +565 -0
  316. package/dist/modules/project/topic/mapping/index.vue.d.ts +3 -0
  317. package/dist/modules/project/topic/modules/topicDrawer.vue.d.ts +428 -0
  318. package/dist/modules/project/warnManagement.vue.d.ts +3 -0
  319. package/dist/modules/sense/datapush/index.vue.d.ts +3 -0
  320. package/dist/modules/sense/datapush/instance/http.vue.d.ts +3 -0
  321. package/dist/modules/sense/datapush/instance/index.vue.d.ts +3 -0
  322. package/dist/modules/sense/datapush/instance/kafka.vue.d.ts +3 -0
  323. package/dist/modules/sense/datapush/instance/modules/httpDrawer.vue.d.ts +3 -0
  324. package/dist/modules/sense/datapush/instance/modules/kafkaDrawer.vue.d.ts +3 -0
  325. package/dist/modules/sense/datapush/instance/modules/mqDrawer.vue.d.ts +3 -0
  326. package/dist/modules/sense/datapush/instance/mq.vue.d.ts +3 -0
  327. package/dist/modules/sense/datapush/module/codemirror.vue.d.ts +3 -0
  328. package/dist/modules/sense/datapush/module/data-drawer.vue.d.ts +3 -0
  329. package/dist/modules/sense/datapush/module/deviceDialog.vue.d.ts +3 -0
  330. package/dist/modules/sense/datapush/module/messageDialog.vue.d.ts +3 -0
  331. package/dist/modules/sense/datapush/receipt/index.vue.d.ts +3 -0
  332. package/dist/modules/sense/datapush/target/index.vue.d.ts +3 -0
  333. package/dist/modules/sense/index.d.ts +7 -0
  334. package/dist/modules/sense/job/index.vue.d.ts +3 -0
  335. package/dist/modules/sense/rule/index.vue.d.ts +3 -0
  336. package/dist/modules/sense/rule/module/scence-device-dialog.vue.d.ts +3 -0
  337. package/dist/modules/sense/rule/module/scence-drawer.vue.d.ts +3 -0
  338. package/dist/modules/sense/rule/module/valueModule/bitmapForm.vue.d.ts +3 -0
  339. package/dist/modules/sense/rule/module/valueModule/doubleForm.vue.d.ts +3 -0
  340. package/dist/modules/sense/rule/module/valueModule/enumForm.vue.d.ts +3 -0
  341. package/dist/modules/sense/rule/module/valueModule/inputForm.vue.d.ts +3 -0
  342. package/dist/modules/sense/rule/receipt/index.vue.d.ts +3 -0
  343. package/dist/modules/sense/rule/utils/cron-generator.d.ts +69 -0
  344. package/dist/modules/thing/components/codemirror.vue.d.ts +3 -0
  345. package/dist/modules/thing/components/export-tsl-drawer.vue.d.ts +3 -0
  346. package/dist/modules/thing/components/protocolConfig.vue.d.ts +3 -0
  347. package/dist/modules/thing/components/setTagDrawer.vue.d.ts +3 -0
  348. package/dist/modules/thing/components/standardDetailTips.vue.d.ts +3 -0
  349. package/dist/modules/thing/components/standardDrawer.vue.d.ts +3 -0
  350. package/dist/modules/thing/components/tips.vue.d.ts +3 -0
  351. package/dist/modules/thing/detail.vue.d.ts +2 -0
  352. package/dist/modules/thing/index.d.ts +15 -0
  353. package/dist/modules/thing/index.vue.d.ts +3 -0
  354. package/dist/modules/thing/model/eventDrawer.vue.d.ts +3 -0
  355. package/dist/modules/thing/model/propertiesDrawer.vue.d.ts +3 -0
  356. package/dist/modules/thing/model/servicesDrawer.vue.d.ts +3 -0
  357. package/dist/modules/thing/model/telemetryDrawer.vue.d.ts +3 -0
  358. package/dist/modules/thing/module/arrayForm.vue.d.ts +3 -0
  359. package/dist/modules/thing/module/bitMapForm.vue.d.ts +3 -0
  360. package/dist/modules/thing/module/boolForm.vue.d.ts +3 -0
  361. package/dist/modules/thing/module/enumForm.vue.d.ts +3 -0
  362. package/dist/modules/thing/module/inputForm.vue.d.ts +3 -0
  363. package/dist/modules/thing/module/propsDrawer.vue.d.ts +3 -0
  364. package/dist/modules/thing/module/structForm.vue.d.ts +3 -0
  365. package/dist/modules/tsl-drawer/eventDrawer.vue.d.ts +3 -0
  366. package/dist/modules/tsl-drawer/index.d.ts +11 -0
  367. package/dist/modules/tsl-drawer/propertiesDrawer.vue.d.ts +3 -0
  368. package/dist/modules/tsl-drawer/servicesDrawer.vue.d.ts +3 -0
  369. package/dist/structForm-BfqnCWmN.js +185 -0
  370. package/dist/structForm-CNxEmS2m.js +185 -0
  371. package/dist/style.css +1 -0
  372. package/dist/utils/dayjs.d.ts +2 -0
  373. package/dist/utils/desensitize.d.ts +2 -0
  374. package/dist/utils/formatJson.d.ts +5 -0
  375. package/dist/utils/thingModel.d.ts +42 -0
  376. package/package.json +90 -0
@@ -0,0 +1,113 @@
1
+ import { resolveComponent as u, openBlock as p, createElementBlock as h, createVNode as a, withCtx as r, createTextVNode as d, toDisplayString as s } from "vue";
2
+ import { _ as g } from "./index-fkzLLq7p.js";
3
+ const v = {
4
+ props: {
5
+ identifier: {
6
+ type: String,
7
+ default: ""
8
+ },
9
+ dataType: {
10
+ type: Object,
11
+ default: () => {
12
+ }
13
+ },
14
+ arrayIndex: {
15
+ type: Number,
16
+ default: 0
17
+ }
18
+ },
19
+ data() {
20
+ return {
21
+ valueForm: {
22
+ key: this.identifier,
23
+ value: null
24
+ },
25
+ getIndex: "",
26
+ rulesBool: [{ required: !0, validator: this.checkBool, trigger: "change" }]
27
+ };
28
+ },
29
+ watch: {
30
+ arrayIndex: {
31
+ handler(e, l) {
32
+ this.getIndex = e;
33
+ },
34
+ immediate: !0,
35
+ deep: !0
36
+ }
37
+ },
38
+ methods: {
39
+ handleChange(e) {
40
+ this.getArrayValue(e), this.getStructValue(e);
41
+ },
42
+ getArrayValue(e) {
43
+ this.$emit("getArrayValue", e, this.getIndex);
44
+ },
45
+ getStructValue(e) {
46
+ this.$emit("getStructValue", e, this.valueForm.key);
47
+ },
48
+ reset() {
49
+ this.valueForm.value = null;
50
+ },
51
+ checkBool(e, l, t) {
52
+ return this.valueForm.value == null ? t("请选择") : t();
53
+ },
54
+ async validate() {
55
+ return new Promise((e) => {
56
+ this.$refs.debugForm.validate((l) => {
57
+ e(l ? this.valueForm : !1);
58
+ });
59
+ });
60
+ }
61
+ }
62
+ };
63
+ function y(e, l, t, V, o, i) {
64
+ const n = u("el-radio-button"), m = u("el-radio-group"), c = u("el-form-item"), _ = u("el-form");
65
+ return p(), h("div", null, [
66
+ a(_, {
67
+ ref: "debugForm",
68
+ model: o.valueForm
69
+ }, {
70
+ default: r(() => [
71
+ a(c, {
72
+ class: "bool_radio",
73
+ prop: "bool",
74
+ rules: o.rulesBool
75
+ }, {
76
+ default: r(() => [
77
+ a(m, {
78
+ modelValue: o.valueForm.value,
79
+ "onUpdate:modelValue": l[0] || (l[0] = (f) => o.valueForm.value = f),
80
+ onChange: i.handleChange
81
+ }, {
82
+ default: r(() => [
83
+ a(n, {
84
+ value: t.dataType.specs.true
85
+ }, {
86
+ default: r(() => [
87
+ d("true-" + s(t.dataType.specs.true), 1)
88
+ ]),
89
+ _: 1
90
+ }, 8, ["value"]),
91
+ a(n, {
92
+ value: t.dataType.specs.false
93
+ }, {
94
+ default: r(() => [
95
+ d("false-" + s(t.dataType.specs.false), 1)
96
+ ]),
97
+ _: 1
98
+ }, 8, ["value"])
99
+ ]),
100
+ _: 1
101
+ }, 8, ["modelValue", "onChange"])
102
+ ]),
103
+ _: 1
104
+ }, 8, ["rules"])
105
+ ]),
106
+ _: 1
107
+ }, 8, ["model"])
108
+ ]);
109
+ }
110
+ const b = /* @__PURE__ */ g(v, [["render", y], ["__scopeId", "data-v-279a8b06"]]);
111
+ export {
112
+ b as default
113
+ };
@@ -0,0 +1,113 @@
1
+ import { resolveComponent as u, openBlock as p, createElementBlock as h, createVNode as a, withCtx as r, createTextVNode as d, toDisplayString as s } from "vue";
2
+ import { _ as g } from "./index-fkzLLq7p.js";
3
+ const v = {
4
+ props: {
5
+ identifier: {
6
+ type: String,
7
+ default: ""
8
+ },
9
+ dataType: {
10
+ type: Object,
11
+ default: () => {
12
+ }
13
+ },
14
+ arrayIndex: {
15
+ type: Number,
16
+ default: 0
17
+ }
18
+ },
19
+ data() {
20
+ return {
21
+ valueForm: {
22
+ key: this.identifier,
23
+ value: null
24
+ },
25
+ getIndex: "",
26
+ rulesBool: [{ required: !0, validator: this.checkBool, trigger: "change" }]
27
+ };
28
+ },
29
+ watch: {
30
+ arrayIndex: {
31
+ handler(e, l) {
32
+ this.getIndex = e;
33
+ },
34
+ immediate: !0,
35
+ deep: !0
36
+ }
37
+ },
38
+ methods: {
39
+ handleChange(e) {
40
+ this.getArrayValue(e), this.getStructValue(e);
41
+ },
42
+ getArrayValue(e) {
43
+ this.$emit("getArrayValue", e, this.getIndex);
44
+ },
45
+ getStructValue(e) {
46
+ this.$emit("getStructValue", e, this.valueForm.key);
47
+ },
48
+ reset() {
49
+ this.valueForm.value = null;
50
+ },
51
+ checkBool(e, l, t) {
52
+ return this.valueForm.value == null ? t("请选择") : t();
53
+ },
54
+ async validate() {
55
+ return new Promise((e) => {
56
+ this.$refs.debugForm.validate((l) => {
57
+ e(l ? this.valueForm : !1);
58
+ });
59
+ });
60
+ }
61
+ }
62
+ };
63
+ function y(e, l, t, V, o, i) {
64
+ const n = u("el-radio-button"), m = u("el-radio-group"), c = u("el-form-item"), _ = u("el-form");
65
+ return p(), h("div", null, [
66
+ a(_, {
67
+ ref: "debugForm",
68
+ model: o.valueForm
69
+ }, {
70
+ default: r(() => [
71
+ a(c, {
72
+ class: "bool_radio",
73
+ prop: "bool",
74
+ rules: o.rulesBool
75
+ }, {
76
+ default: r(() => [
77
+ a(m, {
78
+ modelValue: o.valueForm.value,
79
+ "onUpdate:modelValue": l[0] || (l[0] = (f) => o.valueForm.value = f),
80
+ onChange: i.handleChange
81
+ }, {
82
+ default: r(() => [
83
+ a(n, {
84
+ value: t.dataType.specs.true
85
+ }, {
86
+ default: r(() => [
87
+ d("true-" + s(t.dataType.specs.true), 1)
88
+ ]),
89
+ _: 1
90
+ }, 8, ["value"]),
91
+ a(n, {
92
+ value: t.dataType.specs.false
93
+ }, {
94
+ default: r(() => [
95
+ d("false-" + s(t.dataType.specs.false), 1)
96
+ ]),
97
+ _: 1
98
+ }, 8, ["value"])
99
+ ]),
100
+ _: 1
101
+ }, 8, ["modelValue", "onChange"])
102
+ ]),
103
+ _: 1
104
+ }, 8, ["rules"])
105
+ ]),
106
+ _: 1
107
+ }, 8, ["model"])
108
+ ]);
109
+ }
110
+ const b = /* @__PURE__ */ g(v, [["render", y], ["__scopeId", "data-v-4c746644"]]);
111
+ export {
112
+ b as default
113
+ };
@@ -0,0 +1,17 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ value: {
3
+ type: null;
4
+ default: string;
5
+ };
6
+ }>, {}, {}, {
7
+ formatted(): string;
8
+ html(): string;
9
+ }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ value: {
11
+ type: null;
12
+ default: string;
13
+ };
14
+ }>> & Readonly<{}>, {
15
+ value: any;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
17
+ export default _default;
@@ -0,0 +1,46 @@
1
+ import { SdkClient } from '@xdmp-open/sdk-core';
2
+ import { AdminClient } from '@xdmp-open/sdk-admin';
3
+ import { IotClient } from '@xdmp-open/sdk-iot';
4
+ import { NotifyClient } from '@xdmp-open/sdk-notify';
5
+ /** 宿主需要提供的用户态/权限/会话能力(语义与 ui-admin 的 AdminUiHost 一致) */
6
+ export interface IotUiHost {
7
+ /** 当前用户信息(对应 store.state.user.userInfo),未登录返回 {} */
8
+ getUserInfo?: () => Record<string, any>;
9
+ /** 当前角色/权限码列表(对应 store.state.user.roles) */
10
+ getRoles?: () => string[];
11
+ /** 权限判定(任一角色命中即 true) */
12
+ hasPermission?: (roles: string[]) => boolean;
13
+ /** 登出(清 token 并跳登录页) */
14
+ logout?: () => Promise<void> | void;
15
+ /** 刷新当前用户信息 */
16
+ refreshUserInfo?: (account: string) => Promise<void> | void;
17
+ }
18
+ /** setupIotUi 配置 */
19
+ export interface IotUiOptions extends IotUiHost {
20
+ /** SDK 请求引擎(传 sdkClient 则包内自建 iotSdk/adminSdk,共享同一请求引擎) */
21
+ sdkClient?: SdkClient;
22
+ /** 已创建的 IoT 域客户端(优先于 sdkClient 自建) */
23
+ iotSdk?: IotClient;
24
+ /** 已创建的 admin 域客户端(个别页面查系统配置用;优先于 sdkClient 自建) */
25
+ adminSdk?: AdminClient;
26
+ /** 实时推送客户端(设备状态/遥测订阅;monitor、project 域页面需要) */
27
+ notifyClient?: NotifyClient;
28
+ }
29
+ /** 宿主启动时一次性注入(重复调用以后者覆盖,便于测试重置) */
30
+ export declare function setupIotUi(options: IotUiOptions): void;
31
+ /** IoT 域 SDK 客户端 */
32
+ export declare function useIotSdk(): IotClient;
33
+ /** admin 域 SDK 客户端(未提供时抛错——仅个别页面需要) */
34
+ export declare function useAdminSdk(): AdminClient;
35
+ /** 实时推送客户端(未提供时抛错——仅设备状态/遥测订阅页面需要) */
36
+ export declare function useNotifyClient(): NotifyClient;
37
+ /** 当前用户信息(未注入 getUserInfo 时返回 {}) */
38
+ export declare function getCurrentUser(): Record<string, any>;
39
+ /** 当前角色/权限码列表(未注入时返回空数组) */
40
+ export declare function getCurrentRoles(): string[];
41
+ /** 权限判定(任一角色命中;未注入时返回 true 不阻断展示) */
42
+ export declare function checkPermission(roles: string[]): boolean;
43
+ /** 登出 */
44
+ export declare function logout(): Promise<void> | void;
45
+ /** 刷新当前用户信息 */
46
+ export declare function refreshUserInfo(account: string): Promise<void> | void;
@@ -0,0 +1,130 @@
1
+ import { resolveComponent as d, openBlock as b, createElementBlock as V, createVNode as c, withCtx as y } from "vue";
2
+ import { _ as x } from "./index-fkzLLq7p.js";
3
+ const $ = {
4
+ props: {
5
+ identifier: {
6
+ type: String,
7
+ default: ""
8
+ },
9
+ dataType: {
10
+ type: Object,
11
+ default: () => {
12
+ }
13
+ },
14
+ arrayIndex: {
15
+ type: Number,
16
+ default: 0
17
+ }
18
+ },
19
+ data() {
20
+ return {
21
+ valueForm: {
22
+ key: this.identifier,
23
+ value: ""
24
+ },
25
+ getIndex: "",
26
+ rulesDouble: [{ required: !0, validator: this.checkDouble, trigger: "blur" }]
27
+ };
28
+ },
29
+ watch: {
30
+ arrayIndex: {
31
+ handler(e, u) {
32
+ this.getIndex = e;
33
+ },
34
+ immediate: !0,
35
+ deep: !0
36
+ }
37
+ },
38
+ methods: {
39
+ inputChange(e) {
40
+ this.getArrayValue(e), this.getStructValue(e);
41
+ },
42
+ getArrayValue(e) {
43
+ this.$emit("getArrayValue", e, this.getIndex);
44
+ },
45
+ getStructValue(e) {
46
+ this.$emit("getStructValue", e, this.valueForm.key);
47
+ },
48
+ getPlaceholder() {
49
+ var r, l, t, o;
50
+ const e = this.dataType;
51
+ return `${((r = e.specs) == null ? void 0 : r.min) || ""}—${((l = e.specs) == null ? void 0 : l.max) || ""};步长:${((t = e.specs) == null ? void 0 : t.step) || "无"};单位:${((o = e.specs) == null ? void 0 : o.unitName) || "无"}`;
52
+ },
53
+ reset() {
54
+ this.valueForm.value = "";
55
+ },
56
+ checkDouble(e, u, r) {
57
+ var m, p, h;
58
+ const l = (m = this.dataType.specs) == null ? void 0 : m.step, t = (p = this.dataType.specs) == null ? void 0 : p.min, o = (h = this.dataType.specs) == null ? void 0 : h.max, s = this.valueForm.value, n = this.dataType.type, a = {
59
+ int32: /^[1-9]+[0-9]*$/,
60
+ // 正整数
61
+ int64: /^[1-9]+[0-9]*$/,
62
+ // 正整数
63
+ float: /^[+]?(\d|([1-9]\d+))(\.\d{1,6})?$/,
64
+ // 浮点
65
+ double: /^[+]?(\d|([1-9]\d+))(\.\d{1,16})?$/
66
+ // Double
67
+ }, i = {
68
+ int32: "值应为整型",
69
+ // 正整数
70
+ int64: "值应为整型",
71
+ // 正整数
72
+ float: "值应为float型, 最多输入6位小数",
73
+ // 浮点
74
+ double: "值应为double型, 最多输入16位小数"
75
+ // Double
76
+ };
77
+ if (s === "")
78
+ return r("请输入");
79
+ if (a[n].test(s))
80
+ if (Number(s) >= Number(t) && Number(s) <= Number(o))
81
+ if (l) {
82
+ const _ = Number(s) - Number(t), f = Number(l), v = (f.toString().split(".")[1] || "").length, g = Math.pow(10, v);
83
+ return Math.round(_ * g) % Math.round(f * g) === 0 ? r() : r(`步长值为${l}`);
84
+ } else
85
+ return r();
86
+ else
87
+ return r(`取值范围应为${t}—${o}`);
88
+ else
89
+ return r(i[n]);
90
+ },
91
+ async validate() {
92
+ return new Promise((e) => {
93
+ this.$refs.debugForm.validate((u) => {
94
+ e(u ? this.valueForm : !1);
95
+ });
96
+ });
97
+ }
98
+ }
99
+ };
100
+ function F(e, u, r, l, t, o) {
101
+ const s = d("el-input"), n = d("el-form-item"), a = d("el-form");
102
+ return b(), V("div", null, [
103
+ c(a, {
104
+ ref: "debugForm",
105
+ model: t.valueForm
106
+ }, {
107
+ default: y(() => [
108
+ c(n, {
109
+ rules: t.rulesDouble,
110
+ prop: "double"
111
+ }, {
112
+ default: y(() => [
113
+ c(s, {
114
+ modelValue: t.valueForm.value,
115
+ "onUpdate:modelValue": u[0] || (u[0] = (i) => t.valueForm.value = i),
116
+ placeholder: o.getPlaceholder(),
117
+ onInput: o.inputChange
118
+ }, null, 8, ["modelValue", "placeholder", "onInput"])
119
+ ]),
120
+ _: 1
121
+ }, 8, ["rules"])
122
+ ]),
123
+ _: 1
124
+ }, 8, ["model"])
125
+ ]);
126
+ }
127
+ const T = /* @__PURE__ */ x($, [["render", F]]);
128
+ export {
129
+ T as default
130
+ };
@@ -0,0 +1,135 @@
1
+ import { resolveComponent as d, openBlock as v, createElementBlock as V, createVNode as c, withCtx as y } from "vue";
2
+ import { _ as N } from "./index-fkzLLq7p.js";
3
+ const x = {
4
+ props: {
5
+ identifier: {
6
+ type: String,
7
+ default: ""
8
+ },
9
+ dataType: {
10
+ type: Object,
11
+ default: () => {
12
+ }
13
+ },
14
+ arrayIndex: {
15
+ type: Number,
16
+ default: 0
17
+ }
18
+ },
19
+ data() {
20
+ return {
21
+ valueForm: {
22
+ key: this.identifier,
23
+ value: ""
24
+ },
25
+ getIndex: "",
26
+ rulesDouble: [{ required: !0, validator: this.checkDouble, trigger: "blur" }]
27
+ };
28
+ },
29
+ watch: {
30
+ arrayIndex: {
31
+ handler(e, u) {
32
+ this.getIndex = e;
33
+ },
34
+ immediate: !0,
35
+ deep: !0
36
+ }
37
+ },
38
+ methods: {
39
+ inputChange(e) {
40
+ this.getArrayValue(e), this.getStructValue(e);
41
+ },
42
+ getArrayValue(e) {
43
+ this.$emit("getArrayValue", e, this.getIndex);
44
+ },
45
+ getStructValue(e) {
46
+ this.$emit("getStructValue", e, this.valueForm.key);
47
+ },
48
+ getPlaceholder() {
49
+ var r, s, t, o;
50
+ const e = this.dataType;
51
+ return `${((r = e.specs) == null ? void 0 : r.min) || ""}—${((s = e.specs) == null ? void 0 : s.max) || ""};步长:${((t = e.specs) == null ? void 0 : t.step) || "无"};单位:${((o = e.specs) == null ? void 0 : o.unitName) || "无"}`;
52
+ },
53
+ reset() {
54
+ this.valueForm.value = "";
55
+ },
56
+ checkDouble(e, u, r) {
57
+ var m, p, h;
58
+ const s = (m = this.dataType.specs) == null ? void 0 : m.step, t = ((p = this.dataType.specs) == null ? void 0 : p.min) || "", o = ((h = this.dataType.specs) == null ? void 0 : h.max) || "", l = this.valueForm.value, n = this.dataType.type;
59
+ console.log(Number(t), Number(o));
60
+ const a = {
61
+ int32: /^[1-9]+[0-9]*$/,
62
+ // 正整数
63
+ int64: /^[1-9]+[0-9]*$/,
64
+ // 正整数
65
+ float: /^[+]?(\d|([1-9]\d+))(\.\d{1,6})?$/,
66
+ // 浮点
67
+ double: /^[+]?(\d|([1-9]\d+))(\.\d{1,16})?$/
68
+ // Double
69
+ }, i = {
70
+ int32: "值应为整型",
71
+ // 正整数
72
+ int64: "值应为整型",
73
+ // 正整数
74
+ float: "值应为float型, 最多输入6位小数",
75
+ // 浮点
76
+ double: "值应为double型, 最多输入16位小数"
77
+ // Double
78
+ };
79
+ if (l === "")
80
+ return r("请输入");
81
+ if (a[n].test(l))
82
+ if (t !== "" && o !== "")
83
+ if (console.log("有取值范围"), Number(l) >= Number(t) && Number(l) <= Number(o))
84
+ if (console.log(Number(l)), s) {
85
+ const _ = Number(l) - Number(t), f = Number(s), b = (f.toString().split(".")[1] || "").length, g = Math.pow(10, b);
86
+ return Math.round(_ * g) % Math.round(f * g) === 0 ? r() : r(`步长值为${s}`);
87
+ } else
88
+ return r();
89
+ else
90
+ return r(`取值范围应为${t}—${o}`);
91
+ else
92
+ return console.log("无取值范围"), r();
93
+ else
94
+ return r(i[n]);
95
+ },
96
+ async validate() {
97
+ return new Promise((e) => {
98
+ this.$refs.debugForm.validate((u) => {
99
+ e(u ? this.valueForm : !1);
100
+ });
101
+ });
102
+ }
103
+ }
104
+ };
105
+ function $(e, u, r, s, t, o) {
106
+ const l = d("el-input"), n = d("el-form-item"), a = d("el-form");
107
+ return v(), V("div", null, [
108
+ c(a, {
109
+ ref: "debugForm",
110
+ model: t.valueForm
111
+ }, {
112
+ default: y(() => [
113
+ c(n, {
114
+ rules: t.rulesDouble,
115
+ prop: "double"
116
+ }, {
117
+ default: y(() => [
118
+ c(l, {
119
+ modelValue: t.valueForm.value,
120
+ "onUpdate:modelValue": u[0] || (u[0] = (i) => t.valueForm.value = i),
121
+ placeholder: o.getPlaceholder(),
122
+ onInput: o.inputChange
123
+ }, null, 8, ["modelValue", "placeholder", "onInput"])
124
+ ]),
125
+ _: 1
126
+ }, 8, ["rules"])
127
+ ]),
128
+ _: 1
129
+ }, 8, ["model"])
130
+ ]);
131
+ }
132
+ const T = /* @__PURE__ */ N(x, [["render", $]]);
133
+ export {
134
+ T as default
135
+ };
@@ -0,0 +1,133 @@
1
+ import { defineComponent as p, resolveComponent as h, openBlock as f, createElementBlock as g, createVNode as b } from "vue";
2
+ import { _ as $ } from "./index-fkzLLq7p.js";
3
+ const c = Object.freeze({
4
+ int: { kind: "int", min: -2147483648, max: 2147483647, precision: 0, maxLength: 11 },
5
+ int32: { kind: "int", min: -2147483648, max: 2147483647, precision: 0, maxLength: 11 },
6
+ int64: { kind: "int64", min: "-9223372036854775808", max: "9223372036854775807", maxLength: 20 },
7
+ long: { kind: "int64", min: "-9223372036854775808", max: "9223372036854775807", maxLength: 20 },
8
+ float: { kind: "float", precision: 7, maxLength: 15 },
9
+ double: { kind: "double", precision: 15, maxLength: 25 }
10
+ });
11
+ function m(e, t) {
12
+ const n = e.startsWith("-"), i = t.startsWith("-");
13
+ if (n !== i) return n ? -1 : 1;
14
+ const r = n ? e.slice(1) : e, a = i ? t.slice(1) : t;
15
+ return r.length !== a.length ? r.length < a.length ? -1 : 1 : r < a ? -1 : r > a ? 1 : 0;
16
+ }
17
+ const N = p({
18
+ props: {
19
+ value: { type: [String, Number], default: null },
20
+ identifier: { type: String, default: "" },
21
+ dataType: { type: Object, default: () => ({}) },
22
+ placeholder: { type: String, default: "" },
23
+ disabled: { type: Boolean, default: !1 },
24
+ /**
25
+ * 运算符号,驱动是否允许多值输入
26
+ * eq / neq / gt / ge / lt / le:单值,不允许逗号
27
+ * in / between:多值,逗号作为段分隔符
28
+ */
29
+ operator: {
30
+ type: String,
31
+ default: "",
32
+ validator: (e) => ["", "eq", "neq", "gt", "ge", "lt", "le", "in", "between"].includes(e)
33
+ }
34
+ },
35
+ emits: ["update:value", "blur", "change"],
36
+ created() {
37
+ this.dispatch = function(e, t, n) {
38
+ let i = this.$parent;
39
+ for (; i; ) {
40
+ if ((i.$options.componentName || i.$options.name) === e) {
41
+ i.$emit(t, ...n);
42
+ break;
43
+ }
44
+ i = i.$parent;
45
+ }
46
+ };
47
+ },
48
+ computed: {
49
+ config() {
50
+ return c[this.dataType.type] || c.int;
51
+ },
52
+ isInteger() {
53
+ return this.config.kind === "int" || this.config.kind === "int64";
54
+ },
55
+ /**
56
+ * 是否允许多值(决定输入和失焦时是否保留逗号)
57
+ */
58
+ isMultiValue() {
59
+ return this.operator === "in" || this.operator === "between";
60
+ },
61
+ computedPlaceholder() {
62
+ if (this.placeholder) return this.placeholder;
63
+ const { min: e, max: t, kind: n } = this.config;
64
+ return n === "int64" ? `请输入整数(${e} ~ ${t})` : n === "int" ? "请输入整数" : n === "float" ? "请输入单精度浮点" : n === "double" ? "请输入双精度浮点" : "请输入数字";
65
+ }
66
+ },
67
+ methods: {
68
+ /**
69
+ * 实时输入:只做字符清洗,不做精度截断
70
+ * 避免输入 "3.14" 时被截成 "3.1"
71
+ *
72
+ * 逗号策略:
73
+ * - operator 为 in / between:保留逗号(多值),负号和小数点按"段"独立约束
74
+ * - 其他:实时剥掉逗号(单值),负号只能在开头、小数点只能一个
75
+ */
76
+ handleModelUpdate(e) {
77
+ let t = String(e ?? "").replace(/[^\d.,-]/g, "");
78
+ this.isMultiValue ? t = t.split(",").map(
79
+ (n) => n.replace(/(?!^)-/g, "").replace(/(\..*)\./g, "$1")
80
+ // 小数点每段只能一个
81
+ ).join(",") : t = t.replace(/,/g, "").replace(/(?!^)-/g, "").replace(/(\..*)\./g, "$1"), this.isInteger && (t = t.replace(/\./g, "")), this.$emit("update:value", t);
82
+ },
83
+ /**
84
+ * 失焦:做最终处理
85
+ * - 多值(in / between):按逗号切分,每段独立校验,保留为字符串
86
+ * - 单值:
87
+ * · 整数:转 number + 范围兜底
88
+ * · 浮点:toPrecision 截断 + 转 number
89
+ * · int64:保持 string + 字符串大数比较兜底
90
+ */
91
+ handleBlur() {
92
+ const e = this.toFinalValue(this.value);
93
+ this.$emit("update:value", e), this.$emit("change", e), this.$emit("blur", e), this.dispatch("ElFormItem", "el.form.blur", [e]);
94
+ },
95
+ toFinalValue(e) {
96
+ if (e === "" || e === null || e === void 0) return null;
97
+ const t = String(e), { kind: n, min: i, max: r, precision: a } = this.config, o = (l) => {
98
+ if (l = String(l).trim(), l === "" || l === "-") return null;
99
+ if (n === "int") {
100
+ const d = Math.trunc(Number(l));
101
+ return Number.isNaN(d) ? null : Math.max(i, Math.min(r, d));
102
+ }
103
+ if (n === "int64")
104
+ return m(l, i) < 0 ? i : m(l, r) > 0 ? r : l;
105
+ const u = Number(l);
106
+ return Number.isNaN(u) ? null : parseFloat(u.toPrecision(a));
107
+ };
108
+ if (this.isMultiValue && t.includes(",")) {
109
+ const l = t.split(",").map(o).filter((u) => u !== null).join(",");
110
+ return l === "" ? null : l;
111
+ }
112
+ const s = t.replace(/,/g, "");
113
+ return s === "" || s === "-" ? null : o(s);
114
+ }
115
+ }
116
+ });
117
+ function k(e, t, n, i, r, a) {
118
+ const o = h("el-input");
119
+ return f(), g("div", null, [
120
+ b(o, {
121
+ modelValue: e.value,
122
+ placeholder: e.computedPlaceholder,
123
+ disabled: e.disabled,
124
+ maxlength: e.config.maxLength,
125
+ "onUpdate:modelValue": e.handleModelUpdate,
126
+ onBlur: e.handleBlur
127
+ }, null, 8, ["modelValue", "placeholder", "disabled", "maxlength", "onUpdate:modelValue", "onBlur"])
128
+ ]);
129
+ }
130
+ const y = /* @__PURE__ */ $(N, [["render", k]]);
131
+ export {
132
+ y as default
133
+ };