super-page-runtime 2.0.39 → 2.0.40-beta1

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 (384) hide show
  1. package/dist/lib/_virtual/AttributeMap.js +4 -0
  2. package/dist/lib/_virtual/Barcode.js +4 -0
  3. package/dist/lib/_virtual/CODE128.js +4 -0
  4. package/dist/lib/_virtual/CODE128A.js +4 -0
  5. package/dist/lib/_virtual/CODE128B.js +4 -0
  6. package/dist/lib/_virtual/CODE128C.js +4 -0
  7. package/dist/lib/_virtual/CODE128_AUTO.js +4 -0
  8. package/dist/lib/_virtual/Delta.js +4 -0
  9. package/dist/lib/_virtual/EAN.js +4 -0
  10. package/dist/lib/_virtual/EAN13.js +4 -0
  11. package/dist/lib/_virtual/EAN2.js +4 -0
  12. package/dist/lib/_virtual/EAN5.js +4 -0
  13. package/dist/lib/_virtual/EAN8.js +4 -0
  14. package/dist/lib/_virtual/ErrorHandler.js +4 -0
  15. package/dist/lib/_virtual/ITF.js +4 -0
  16. package/dist/lib/_virtual/ITF14.js +4 -0
  17. package/dist/lib/_virtual/JsBarcode.js +6 -0
  18. package/dist/lib/_virtual/MSI.js +4 -0
  19. package/dist/lib/_virtual/MSI10.js +4 -0
  20. package/dist/lib/_virtual/MSI1010.js +4 -0
  21. package/dist/lib/_virtual/MSI11.js +4 -0
  22. package/dist/lib/_virtual/MSI1110.js +4 -0
  23. package/dist/lib/_virtual/Op.js +4 -0
  24. package/dist/lib/_virtual/OpIterator.js +4 -0
  25. package/dist/lib/_virtual/SVGPathData.js +4 -0
  26. package/dist/lib/_virtual/SVGPathData2.js +5 -0
  27. package/dist/lib/_virtual/UPC.js +4 -0
  28. package/dist/lib/_virtual/UPCE.js +4 -0
  29. package/dist/lib/_virtual/__vite-browser-external.js +3 -0
  30. package/dist/lib/_virtual/_commonjsHelpers.js +35 -0
  31. package/dist/lib/_virtual/_plugin-vue_export-helper.js +9 -0
  32. package/dist/lib/_virtual/alignment-pattern.js +4 -0
  33. package/dist/lib/_virtual/arrayLikeToArray.js +4 -0
  34. package/dist/lib/_virtual/arrayWithHoles.js +4 -0
  35. package/dist/lib/_virtual/arrayWithoutHoles.js +4 -0
  36. package/dist/lib/_virtual/assertThisInitialized.js +4 -0
  37. package/dist/lib/_virtual/asyncToGenerator.js +4 -0
  38. package/dist/lib/_virtual/asyncToGenerator2.js +6 -0
  39. package/dist/lib/_virtual/auto.js +4 -0
  40. package/dist/lib/_virtual/backo2.js +4 -0
  41. package/dist/lib/_virtual/base64-arraybuffer.js +4 -0
  42. package/dist/lib/_virtual/binary.js +4 -0
  43. package/dist/lib/_virtual/browser.js +4 -0
  44. package/dist/lib/_virtual/browser2.js +4 -0
  45. package/dist/lib/_virtual/canvas.js +4 -0
  46. package/dist/lib/_virtual/canvas2.js +4 -0
  47. package/dist/lib/_virtual/checksums.js +4 -0
  48. package/dist/lib/_virtual/classCallCheck.js +4 -0
  49. package/dist/lib/_virtual/commons.js +4 -0
  50. package/dist/lib/_virtual/constants.js +4 -0
  51. package/dist/lib/_virtual/constants2.js +4 -0
  52. package/dist/lib/_virtual/constants3.js +4 -0
  53. package/dist/lib/_virtual/createClass.js +4 -0
  54. package/dist/lib/_virtual/dayjs.min.js +4 -0
  55. package/dist/lib/_virtual/decodePacket.browser.js +4 -0
  56. package/dist/lib/_virtual/defaults.js +4 -0
  57. package/dist/lib/_virtual/defineProperty.js +4 -0
  58. package/dist/lib/_virtual/defineProperty2.js +6 -0
  59. package/dist/lib/_virtual/dijkstra.js +4 -0
  60. package/dist/lib/_virtual/encodePacket.browser.js +4 -0
  61. package/dist/lib/_virtual/encoder.js +4 -0
  62. package/dist/lib/_virtual/error-correction-code.js +4 -0
  63. package/dist/lib/_virtual/error-correction-level.js +4 -0
  64. package/dist/lib/_virtual/es.array.concat.js +4 -0
  65. package/dist/lib/_virtual/es.array.every.js +4 -0
  66. package/dist/lib/_virtual/es.array.fill.js +4 -0
  67. package/dist/lib/_virtual/es.array.for-each.js +4 -0
  68. package/dist/lib/_virtual/es.array.from.js +4 -0
  69. package/dist/lib/_virtual/es.array.includes.js +4 -0
  70. package/dist/lib/_virtual/es.array.index-of.js +4 -0
  71. package/dist/lib/_virtual/es.array.index-of2.js +3 -0
  72. package/dist/lib/_virtual/es.array.iterator.js +3 -0
  73. package/dist/lib/_virtual/es.array.join.js +4 -0
  74. package/dist/lib/_virtual/es.array.map.js +4 -0
  75. package/dist/lib/_virtual/es.array.reduce.js +4 -0
  76. package/dist/lib/_virtual/es.array.reduce2.js +3 -0
  77. package/dist/lib/_virtual/es.array.reverse.js +4 -0
  78. package/dist/lib/_virtual/es.array.reverse2.js +3 -0
  79. package/dist/lib/_virtual/es.array.some.js +4 -0
  80. package/dist/lib/_virtual/es.function.name.js +4 -0
  81. package/dist/lib/_virtual/es.map.constructor.js +4 -0
  82. package/dist/lib/_virtual/es.map.js +4 -0
  83. package/dist/lib/_virtual/es.number.constructor.js +4 -0
  84. package/dist/lib/_virtual/es.object.to-string.js +4 -0
  85. package/dist/lib/_virtual/es.parse-float.js +4 -0
  86. package/dist/lib/_virtual/es.promise.all.js +4 -0
  87. package/dist/lib/_virtual/es.promise.catch.js +4 -0
  88. package/dist/lib/_virtual/es.promise.constructor.js +4 -0
  89. package/dist/lib/_virtual/es.promise.js +4 -0
  90. package/dist/lib/_virtual/es.promise.race.js +4 -0
  91. package/dist/lib/_virtual/es.promise.reject.js +4 -0
  92. package/dist/lib/_virtual/es.promise.resolve.js +4 -0
  93. package/dist/lib/_virtual/es.promise2.js +3 -0
  94. package/dist/lib/_virtual/es.reflect.apply.js +4 -0
  95. package/dist/lib/_virtual/es.reflect.delete-property.js +4 -0
  96. package/dist/lib/_virtual/es.reflect.get-prototype-of.js +4 -0
  97. package/dist/lib/_virtual/es.regexp.exec.js +4 -0
  98. package/dist/lib/_virtual/es.regexp.to-string.js +4 -0
  99. package/dist/lib/_virtual/es.regexp.to-string2.js +3 -0
  100. package/dist/lib/_virtual/es.string.ends-with.js +4 -0
  101. package/dist/lib/_virtual/es.string.ends-with2.js +3 -0
  102. package/dist/lib/_virtual/es.string.includes.js +4 -0
  103. package/dist/lib/_virtual/es.string.includes2.js +3 -0
  104. package/dist/lib/_virtual/es.string.iterator.js +4 -0
  105. package/dist/lib/_virtual/es.string.match.js +4 -0
  106. package/dist/lib/_virtual/es.string.match2.js +3 -0
  107. package/dist/lib/_virtual/es.string.replace.js +4 -0
  108. package/dist/lib/_virtual/es.string.replace2.js +3 -0
  109. package/dist/lib/_virtual/es.string.split.js +4 -0
  110. package/dist/lib/_virtual/es.string.split2.js +3 -0
  111. package/dist/lib/_virtual/es.string.starts-with.js +4 -0
  112. package/dist/lib/_virtual/es.string.starts-with2.js +3 -0
  113. package/dist/lib/_virtual/es.string.trim.js +4 -0
  114. package/dist/lib/_virtual/es.string.trim2.js +3 -0
  115. package/dist/lib/_virtual/exceptions.js +4 -0
  116. package/dist/lib/_virtual/finder-pattern.js +4 -0
  117. package/dist/lib/_virtual/fixOptions.js +4 -0
  118. package/dist/lib/_virtual/format-info.js +4 -0
  119. package/dist/lib/_virtual/galois-field.js +4 -0
  120. package/dist/lib/_virtual/get.js +4 -0
  121. package/dist/lib/_virtual/getOptionsFromElement.js +4 -0
  122. package/dist/lib/_virtual/getPrototypeOf.js +4 -0
  123. package/dist/lib/_virtual/getRenderProperties.js +4 -0
  124. package/dist/lib/_virtual/globalThis.browser.js +4 -0
  125. package/dist/lib/_virtual/has-cors.js +4 -0
  126. package/dist/lib/_virtual/html2canvas.js +4 -0
  127. package/dist/lib/_virtual/index.js +4 -0
  128. package/dist/lib/_virtual/index10.js +4 -0
  129. package/dist/lib/_virtual/index11.js +4 -0
  130. package/dist/lib/_virtual/index12.js +4 -0
  131. package/dist/lib/_virtual/index13.js +4 -0
  132. package/dist/lib/_virtual/index14.js +4 -0
  133. package/dist/lib/_virtual/index15.js +4 -0
  134. package/dist/lib/_virtual/index16.js +4 -0
  135. package/dist/lib/_virtual/index17.js +4 -0
  136. package/dist/lib/_virtual/index18.js +4 -0
  137. package/dist/lib/_virtual/index19.js +4 -0
  138. package/dist/lib/_virtual/index2.js +4 -0
  139. package/dist/lib/_virtual/index20.js +4 -0
  140. package/dist/lib/_virtual/index21.js +4 -0
  141. package/dist/lib/_virtual/index22.js +4 -0
  142. package/dist/lib/_virtual/index23.js +4 -0
  143. package/dist/lib/_virtual/index3.js +4 -0
  144. package/dist/lib/_virtual/index4.js +5 -0
  145. package/dist/lib/_virtual/index5.js +4 -0
  146. package/dist/lib/_virtual/index6.js +4 -0
  147. package/dist/lib/_virtual/index7.js +6 -0
  148. package/dist/lib/_virtual/index8.js +6 -0
  149. package/dist/lib/_virtual/index9.js +4 -0
  150. package/dist/lib/_virtual/inherits.js +4 -0
  151. package/dist/lib/_virtual/internal-metadata.js +4 -0
  152. package/dist/lib/_virtual/is-binary.js +4 -0
  153. package/dist/lib/_virtual/iterableToArray.js +4 -0
  154. package/dist/lib/_virtual/iterableToArrayLimit.js +4 -0
  155. package/dist/lib/_virtual/jquery.js +4 -0
  156. package/dist/lib/_virtual/jspdf.es.min.js +5 -0
  157. package/dist/lib/_virtual/linearizeEncodings.js +4 -0
  158. package/dist/lib/_virtual/make-built-in.js +4 -0
  159. package/dist/lib/_virtual/manager.js +4 -0
  160. package/dist/lib/_virtual/mask-pattern.js +4 -0
  161. package/dist/lib/_virtual/merge.js +4 -0
  162. package/dist/lib/_virtual/mode.js +4 -0
  163. package/dist/lib/_virtual/new-promise-capability.js +4 -0
  164. package/dist/lib/_virtual/nonIterableRest.js +4 -0
  165. package/dist/lib/_virtual/nonIterableSpread.js +4 -0
  166. package/dist/lib/_virtual/object-define-properties.js +4 -0
  167. package/dist/lib/_virtual/object-define-property.js +4 -0
  168. package/dist/lib/_virtual/object-get-own-property-descriptor.js +4 -0
  169. package/dist/lib/_virtual/object-get-own-property-names-external.js +4 -0
  170. package/dist/lib/_virtual/object-get-own-property-names.js +4 -0
  171. package/dist/lib/_virtual/object-get-own-property-symbols.js +4 -0
  172. package/dist/lib/_virtual/object-property-is-enumerable.js +4 -0
  173. package/dist/lib/_virtual/object.js +4 -0
  174. package/dist/lib/_virtual/on.js +4 -0
  175. package/dist/lib/_virtual/optionsFromStrings.js +4 -0
  176. package/dist/lib/_virtual/parseqs.js +4 -0
  177. package/dist/lib/_virtual/parseuri.js +4 -0
  178. package/dist/lib/_virtual/performance-now.js +4 -0
  179. package/dist/lib/_virtual/polling.js +4 -0
  180. package/dist/lib/_virtual/polynomial.js +4 -0
  181. package/dist/lib/_virtual/possibleConstructorReturn.js +4 -0
  182. package/dist/lib/_virtual/qrcode.js +4 -0
  183. package/dist/lib/_virtual/regeneratorRuntime.js +4 -0
  184. package/dist/lib/_virtual/regex.js +4 -0
  185. package/dist/lib/_virtual/segments.js +4 -0
  186. package/dist/lib/_virtual/setPrototypeOf.js +4 -0
  187. package/dist/lib/_virtual/shared-store.js +4 -0
  188. package/dist/lib/_virtual/shared.js +4 -0
  189. package/dist/lib/_virtual/slicedToArray.js +4 -0
  190. package/dist/lib/_virtual/socket.js +4 -0
  191. package/dist/lib/_virtual/socket2.js +4 -0
  192. package/dist/lib/_virtual/stackblur-es.js +5 -0
  193. package/dist/lib/_virtual/superPropBase.js +4 -0
  194. package/dist/lib/_virtual/svg-tag.js +4 -0
  195. package/dist/lib/_virtual/svg.js +4 -0
  196. package/dist/lib/_virtual/toConsumableArray.js +4 -0
  197. package/dist/lib/_virtual/toPrimitive.js +4 -0
  198. package/dist/lib/_virtual/toPropertyKey.js +4 -0
  199. package/dist/lib/_virtual/transport.js +4 -0
  200. package/dist/lib/_virtual/typeof.js +4 -0
  201. package/dist/lib/_virtual/unsupportedIterableToArray.js +4 -0
  202. package/dist/lib/_virtual/url.js +4 -0
  203. package/dist/lib/_virtual/util.js +4 -0
  204. package/dist/lib/_virtual/utils.js +4 -0
  205. package/dist/lib/_virtual/utils2.js +4 -0
  206. package/dist/lib/_virtual/version-check.js +4 -0
  207. package/dist/lib/_virtual/version.js +4 -0
  208. package/dist/lib/_virtual/vue-plugin-hiprint.js +4 -0
  209. package/dist/lib/_virtual/web.dom-collections.for-each.js +4 -0
  210. package/dist/lib/_virtual/web.dom-collections.iterator.js +4 -0
  211. package/dist/lib/_virtual/web.dom-collections.iterator2.js +3 -0
  212. package/dist/lib/_virtual/websocket-constructor.browser.js +4 -0
  213. package/dist/lib/_virtual/websocket.js +4 -0
  214. package/dist/lib/_virtual/webtransport.js +4 -0
  215. package/dist/lib/_virtual/xmlhttprequest.browser.js +4 -0
  216. package/dist/lib/_virtual/yeast.js +4 -0
  217. package/dist/lib/assets/chart-themes/theme1.d.ts +4 -0
  218. package/dist/lib/assets/chart-themes/theme1.js +7 -0
  219. package/dist/lib/assets/chart-themes/theme2.d.ts +4 -0
  220. package/dist/lib/assets/chart-themes/theme2.js +7 -0
  221. package/dist/lib/assets/chart-themes/theme3.d.ts +4 -0
  222. package/dist/lib/assets/chart-themes/theme3.js +7 -0
  223. package/dist/lib/components/runtime/index.d.ts +4 -0
  224. package/dist/lib/components/runtime/utils/api/api-util.d.ts +18 -0
  225. package/dist/lib/components/runtime/utils/api/api-util.js +298 -0
  226. package/dist/lib/components/runtime/utils/api/page-expose-util.d.ts +1 -0
  227. package/dist/lib/components/runtime/utils/api/page-expose-util.js +206 -0
  228. package/dist/lib/components/runtime/utils/assemblys-config.js +295 -0
  229. package/dist/lib/components/runtime/utils/barcode-util.d.ts +8 -0
  230. package/dist/lib/components/runtime/utils/barcode-util.js +36 -0
  231. package/dist/lib/components/runtime/utils/charts/chart-columnline-util.js +279 -0
  232. package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +74 -0
  233. package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +118 -0
  234. package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +100 -0
  235. package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +74 -0
  236. package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +51 -0
  237. package/dist/lib/components/runtime/utils/charts/chart-util.js +302 -0
  238. package/dist/lib/components/runtime/utils/common-util.d.ts +17 -0
  239. package/dist/lib/components/runtime/utils/common-util.js +108 -0
  240. package/dist/lib/components/runtime/utils/eventBus.d.ts +7 -0
  241. package/dist/lib/components/runtime/utils/eventBus.js +10 -0
  242. package/dist/lib/components/runtime/utils/events/event-util.d.ts +68 -0
  243. package/dist/lib/components/runtime/utils/events/event-util.js +616 -0
  244. package/dist/lib/components/runtime/utils/events/print-label.d.ts +5 -0
  245. package/dist/lib/components/runtime/utils/events/print-label.js +153 -0
  246. package/dist/lib/components/runtime/utils/events/standard-event.d.ts +67 -0
  247. package/dist/lib/components/runtime/utils/events/standard-event.js +1817 -0
  248. package/dist/lib/components/runtime/utils/events/validator-util.d.ts +12 -0
  249. package/dist/lib/components/runtime/utils/events/validator-util.js +416 -0
  250. package/dist/lib/components/runtime/utils/form/date-shortcuts.d.ts +7 -0
  251. package/dist/lib/components/runtime/utils/form/date-shortcuts.js +96 -0
  252. package/dist/lib/components/runtime/utils/form/scan-util.js +194 -0
  253. package/dist/lib/components/runtime/utils/global-refs.d.ts +59 -0
  254. package/dist/lib/components/runtime/utils/global-refs.js +77 -0
  255. package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +224 -0
  256. package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +9 -0
  257. package/dist/lib/components/runtime/utils/page-helper-util.d.ts +134 -0
  258. package/dist/lib/components/runtime/utils/page-helper-util.js +668 -0
  259. package/dist/lib/components/runtime/utils/page-init-util.d.ts +40 -0
  260. package/dist/lib/components/runtime/utils/page-init-util.js +266 -0
  261. package/dist/lib/components/runtime/utils/page-permission-util.d.ts +26 -0
  262. package/dist/lib/components/runtime/utils/page-permission-util.js +525 -0
  263. package/dist/lib/components/runtime/utils/store-util.d.ts +15 -0
  264. package/dist/lib/components/runtime/utils/store-util.js +17 -0
  265. package/dist/lib/components/runtime/utils/store.d.ts +2 -0
  266. package/dist/lib/components/runtime/utils/store.js +3 -0
  267. package/dist/lib/components/runtime/utils/table-utils.js +16 -0
  268. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +3 -0
  269. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +54 -0
  270. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +3 -0
  271. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +35 -0
  272. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +3 -0
  273. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +115 -0
  274. package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +3 -0
  275. package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +95 -0
  276. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +3 -0
  277. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +144 -0
  278. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +43 -0
  279. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +3 -0
  280. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +61 -0
  281. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +3 -0
  282. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +127 -0
  283. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +3 -0
  284. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +3 -0
  285. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +106 -0
  286. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +3 -0
  287. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +141 -0
  288. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +3 -0
  289. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +115 -0
  290. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +3 -0
  291. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +117 -0
  292. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +24 -0
  293. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +147 -0
  294. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +3 -0
  295. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +35 -0
  296. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +127 -0
  297. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +3 -0
  298. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +26 -0
  299. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +104 -0
  300. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +3 -0
  301. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +3 -0
  302. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +72 -0
  303. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +3 -0
  304. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +74 -0
  305. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +3 -0
  306. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +79 -0
  307. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +3 -0
  308. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +70 -0
  309. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +3 -0
  310. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +50 -0
  311. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +3 -0
  312. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +30 -0
  313. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +3 -0
  314. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +109 -0
  315. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +3 -0
  316. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +75 -0
  317. package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +3 -0
  318. package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +183 -0
  319. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +673 -0
  320. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +3 -0
  321. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +455 -0
  322. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +3 -0
  323. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +3 -0
  324. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +88 -0
  325. package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +22 -0
  326. package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +22 -0
  327. package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +3 -0
  328. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +3 -0
  329. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +120 -0
  330. package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +65 -0
  331. package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +3 -0
  332. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +3 -0
  333. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +149 -0
  334. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +3 -0
  335. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +72 -0
  336. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +3 -0
  337. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +42 -0
  338. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +3 -0
  339. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +135 -0
  340. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +3 -0
  341. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +67 -0
  342. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +3 -0
  343. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +159 -0
  344. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +3 -0
  345. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +130 -0
  346. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +3 -0
  347. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +78 -0
  348. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +3 -0
  349. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +29 -0
  350. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +3 -0
  351. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +160 -0
  352. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +3 -0
  353. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +236 -0
  354. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +3 -0
  355. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +204 -0
  356. package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +3 -0
  357. package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +41 -0
  358. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +3 -0
  359. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +65 -0
  360. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +3 -0
  361. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +66 -0
  362. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +3 -0
  363. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +71 -0
  364. package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
  365. package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +154 -0
  366. package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +3 -0
  367. package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +3 -0
  368. package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +39 -0
  369. package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +3 -0
  370. package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +39 -0
  371. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +3 -0
  372. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +59 -0
  373. package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +36 -0
  374. package/dist/lib/components/runtime/views/super-page-dialog.vue.js +79 -0
  375. package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +3 -0
  376. package/dist/lib/components/runtime/views/super-page.vue.d.ts +99 -0
  377. package/dist/lib/components/runtime/views/super-page.vue.js +525 -0
  378. package/dist/lib/components/runtime/views/super-page.vue2.js +3 -0
  379. package/dist/lib/favicon.ico +0 -0
  380. package/dist/lib/i18n/langs/cn.js +53 -0
  381. package/dist/lib/i18n/langs/en.js +53 -0
  382. package/dist/lib/index.d.ts +13 -0
  383. package/dist/lib/index.js +22 -0
  384. package/package.json +1 -1
@@ -0,0 +1,668 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const request = require("../../../node_modules/.pnpm/agilebuilder-ui@1.0.28_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js");
4
+ const dayjs_min = require("../../../node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/dayjs.min.js");
5
+ const calculatorUtil = require("../../../node_modules/.pnpm/agilebuilder-ui@1.0.28_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/calculator/calculator-util.js");
6
+ const globalRefs = require("./global-refs.js");
7
+ const Vue = require("vue");
8
+ function getComponentOptionConfigs(component, pageContext2) {
9
+ if (!component.props || !component.props.dataOrigin) {
10
+ return;
11
+ }
12
+ const dataOriginInfo = component.props.dataOrigin;
13
+ const infoObj = {
14
+ uuid: component.uuid
15
+ };
16
+ if (dataOriginInfo.optionValueSetType == "optionGroup") {
17
+ infoObj.type = "optionGroup";
18
+ infoObj.props = {
19
+ code: dataOriginInfo.optionGroup
20
+ };
21
+ } else if (dataOriginInfo.optionValueSetType == "dynamicData") {
22
+ infoObj.type = "dynamicData";
23
+ infoObj.filterType = dataOriginInfo.filterType;
24
+ infoObj.props = {
25
+ code: dataOriginInfo.dynamicDataSourceCode
26
+ };
27
+ } else if (dataOriginInfo.optionValueSetType == "dataTable") {
28
+ infoObj.filterType = dataOriginInfo.filterType;
29
+ const tempObj = getTableQueryInfo(dataOriginInfo, pageContext2);
30
+ Object.assign(infoObj, tempObj);
31
+ } else if (dataOriginInfo.optionValueSetType == "service") {
32
+ infoObj.filterType = dataOriginInfo.filterType;
33
+ const tempObj = getServiceQueryInfo(dataOriginInfo, pageContext2);
34
+ Object.assign(infoObj, tempObj);
35
+ }
36
+ if (infoObj.type) {
37
+ return infoObj;
38
+ } else {
39
+ return void 0;
40
+ }
41
+ }
42
+ function getTableQueryInfo(dataOriginInfo, pageContext2) {
43
+ const infoObj = {};
44
+ infoObj.type = "dataTable";
45
+ infoObj.props = {
46
+ tableName: dataOriginInfo.tableName,
47
+ systemCode: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : pageContext2.systemCode,
48
+ systemVersion: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysVersion : pageContext2.systemVersion
49
+ };
50
+ if (dataOriginInfo.sortFields) {
51
+ const sortFields = [];
52
+ for (const field of dataOriginInfo.sortFields) {
53
+ if (field.name) {
54
+ sortFields.push({
55
+ prop: field.name,
56
+ order: field.type ? field.type : "asc"
57
+ });
58
+ }
59
+ }
60
+ infoObj.props.sorts = sortFields;
61
+ }
62
+ const autoMonitorFields = [];
63
+ if (dataOriginInfo.filterList) {
64
+ const searchForm = [];
65
+ for (const f of dataOriginInfo.filterList) {
66
+ if (!f.propName) {
67
+ continue;
68
+ }
69
+ if (!f.propDbName) {
70
+ f.propDbName = f.propName;
71
+ }
72
+ const tempObj = {};
73
+ Object.assign(tempObj, f);
74
+ const paramsNames = getParamNames(f.propValue);
75
+ for (const p of paramsNames) {
76
+ if (p && (p.startsWith("${data.") || p.startsWith("${task.") || p.startsWith("${page."))) {
77
+ if (!autoMonitorFields.includes(p)) {
78
+ autoMonitorFields.push(p);
79
+ }
80
+ }
81
+ }
82
+ if (f.propValue)
83
+ ;
84
+ searchForm.push(tempObj);
85
+ }
86
+ infoObj.props.searchForm = searchForm;
87
+ }
88
+ infoObj.props.monitorFields = autoMonitorFields;
89
+ const queryFields = [];
90
+ if (dataOriginInfo.tableValueField) {
91
+ infoObj.props.valueField = dataOriginInfo.tableValueField;
92
+ }
93
+ if (dataOriginInfo.tableLableField && queryFields.indexOf(dataOriginInfo.tableLableField) == -1) {
94
+ infoObj.props.lableField = dataOriginInfo.tableLableField;
95
+ }
96
+ if (dataOriginInfo.autoSets) {
97
+ for (const field of dataOriginInfo.autoSets) {
98
+ if (field.source && queryFields.indexOf(field.source) == -1) {
99
+ queryFields.push(field.source);
100
+ }
101
+ }
102
+ }
103
+ infoObj.props.queryFields = queryFields;
104
+ infoObj.props.pageSize = dataOriginInfo.displayQuantity;
105
+ return infoObj;
106
+ }
107
+ function getServiceQueryInfo(dataOriginInfo, pageContext2) {
108
+ const infoObj = {};
109
+ infoObj.type = "service";
110
+ infoObj.props = {
111
+ serivceCode: dataOriginInfo.serviceCode,
112
+ systemCode: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : pageContext2.systemCode,
113
+ systemVersion: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : pageContext2.systemCode
114
+ };
115
+ if (dataOriginInfo.serviceInputs) {
116
+ const searchForm = [];
117
+ for (const f of dataOriginInfo.serviceInputs) {
118
+ if (!f.name || f.value) {
119
+ continue;
120
+ }
121
+ const tempObj = {};
122
+ Object.assign(tempObj, f);
123
+ searchForm.push(tempObj);
124
+ }
125
+ infoObj.props.inputs = searchForm;
126
+ }
127
+ infoObj.props.dataSetField = dataOriginInfo.serviceDataSetField;
128
+ infoObj.props.valueField = dataOriginInfo.serviceValueField;
129
+ infoObj.props.labelField = dataOriginInfo.serviceLabelField;
130
+ return infoObj;
131
+ }
132
+ function updateChartDatasources(pageContext2, dataSourceConfs, appendParams) {
133
+ return new Promise((resolve, reject) => {
134
+ if (!dataSourceConfs || dataSourceConfs.length == 0) {
135
+ reject(new Error("无需查询的统计图配置!"));
136
+ return;
137
+ }
138
+ const entityData2 = pageContext2.entity ? pageContext2.entity : {};
139
+ const additionalParamMap = {};
140
+ if (entityData2.request) {
141
+ Object.assign(additionalParamMap, entityData2.request);
142
+ }
143
+ if (entityData2.page) {
144
+ Object.assign(additionalParamMap, entityData2.page);
145
+ }
146
+ if (appendParams) {
147
+ Object.assign(additionalParamMap, appendParams);
148
+ }
149
+ const taskMap = {};
150
+ if (entityData2.task) {
151
+ Object.assign(taskMap, entityData2.task);
152
+ }
153
+ const param = {
154
+ entityMap: entityData2.data,
155
+ additionalParamMap,
156
+ taskMap,
157
+ dataSourceList: dataSourceConfs,
158
+ systemCode: pageContext2.systemCode,
159
+ pageCode: pageContext2.code
160
+ };
161
+ let baseUrl = pageContext2.backendUrl;
162
+ if (!baseUrl) {
163
+ baseUrl = window["$vueApp"].config.globalProperties.baseURL;
164
+ }
165
+ const url = baseUrl + "/common/common-data/find-chart-datas";
166
+ request.post(url, param).then((result) => {
167
+ if (!pageContext2.chartDataSourceMap) {
168
+ pageContext2.chartDataSourceMap = {};
169
+ }
170
+ for (const uuid in result) {
171
+ pageContext2.chartDataSourceMap[uuid] = result[uuid];
172
+ const componentObj = globalRefs.getComponentRef(pageContext2, uuid);
173
+ if (componentObj && componentObj.updateChartDatas) {
174
+ componentObj.updateChartDatas(result[uuid]);
175
+ }
176
+ }
177
+ console.log("查询统计图数据完成", result);
178
+ resolve(result);
179
+ }).catch((error) => {
180
+ console.log("查询统计图数据失败", error);
181
+ reject(error);
182
+ });
183
+ });
184
+ }
185
+ function updateOptionDatasources(pageContext2, dataSourceConfs, query) {
186
+ return new Promise((resolve, reject) => {
187
+ if (!dataSourceConfs || dataSourceConfs.length == 0) {
188
+ reject(new Error("无需查询的配置!"));
189
+ return;
190
+ }
191
+ const entityData2 = pageContext2.entity ? pageContext2.entity : {};
192
+ const additionalParamMap = {};
193
+ if (entityData2.request) {
194
+ Object.assign(additionalParamMap, entityData2.request);
195
+ }
196
+ if (entityData2.page) {
197
+ Object.assign(additionalParamMap, entityData2.page);
198
+ }
199
+ additionalParamMap.query = query;
200
+ const param = {
201
+ entityMap: entityData2.data,
202
+ additionalParamMap,
203
+ dataSourceList: dataSourceConfs,
204
+ systemCode: pageContext2.systemCode,
205
+ query
206
+ };
207
+ let baseUrl = pageContext2.backendUrl;
208
+ if (!baseUrl) {
209
+ baseUrl = window["$vueApp"].config.globalProperties.baseURL;
210
+ }
211
+ const url = baseUrl + "/common/common-data/find-datas";
212
+ request.post(url, param).then((result) => {
213
+ if (!pageContext2.optionSourceMap) {
214
+ pageContext2.optionSourceMap = {};
215
+ }
216
+ for (const uuid in result) {
217
+ pageContext2.optionSourceMap[uuid] = result[uuid];
218
+ const componentObj = globalRefs.getComponentRef(pageContext2, uuid);
219
+ if (componentObj && componentObj.updateOptions) {
220
+ componentObj.updateOptions(result[uuid]);
221
+ }
222
+ }
223
+ console.log("查询选项数据完成", result);
224
+ resolve(result);
225
+ }).catch((error) => {
226
+ console.log("查询选项数据失败", error);
227
+ reject(error);
228
+ });
229
+ });
230
+ }
231
+ function getOptionDatasFromPage(pageContext2, configure2) {
232
+ if (!pageContext2 || !pageContext2.optionSourceMap || !configure2) {
233
+ return [];
234
+ }
235
+ const cacheOptions = pageContext2.optionSourceMap[configure2.uuid];
236
+ return cacheOptions ? cacheOptions : [];
237
+ }
238
+ function getChartDatasFromPage(pageContext2, configure2) {
239
+ if (!pageContext2 || !pageContext2.chartDataSourceMap || !configure2) {
240
+ return null;
241
+ }
242
+ const cacheDatas = pageContext2.chartDataSourceMap[configure2.uuid];
243
+ return cacheDatas;
244
+ }
245
+ function queryOptionDatasources(pageContext2, dataSourceConf, query) {
246
+ return updateOptionDatasources(pageContext2, dataSourceConf ? [dataSourceConf] : [], query);
247
+ }
248
+ function queryOptions(component, pageContext2, query) {
249
+ if (!component.props || !component.props.dataOrigin) {
250
+ return new Promise(function(resolve, reject) {
251
+ resolve([]);
252
+ });
253
+ }
254
+ const dataOriginInfo = component.props.dataOrigin;
255
+ if (dataOriginInfo.optionValueSetType == "dynamicData") {
256
+ if (!dataOriginInfo.dynamicDataSourceCode) {
257
+ return new Promise(function(resolve, reject) {
258
+ throw new Error("未指定动态数据源!");
259
+ });
260
+ }
261
+ return queryByDynamicCode(dataOriginInfo.dynamicDataSourceCode, query);
262
+ } else if (dataOriginInfo.optionValueSetType == "dataTable") {
263
+ if (!dataOriginInfo.tableName) {
264
+ return new Promise(function(resolve, reject) {
265
+ throw new Error("未指定查询的数据表!");
266
+ });
267
+ }
268
+ const tempObj = getTableQueryInfo(dataOriginInfo, pageContext2);
269
+ return queryByTable(tempObj);
270
+ } else {
271
+ return new Promise(function(resolve, reject) {
272
+ throw new Error("无有效的查询设置!");
273
+ });
274
+ }
275
+ }
276
+ function queryByDynamicCode(dynamicCode, query) {
277
+ const param = {
278
+ code: dynamicCode,
279
+ query
280
+ };
281
+ return request.post("", param);
282
+ }
283
+ function queryByTable(tableQueryInfo) {
284
+ const param = tableQueryInfo.props;
285
+ return request.post("", param);
286
+ }
287
+ function autoSetAfterSelect(component, pageContext2, autoSets, selItems) {
288
+ if (!autoSets || autoSets.length == 0) {
289
+ return;
290
+ }
291
+ const entity = pageContext2.entity ? pageContext2.entity : {};
292
+ for (const as of autoSets) {
293
+ if (!as.source || !as.target) {
294
+ continue;
295
+ }
296
+ const values = getValuesByField(selItems, as.source);
297
+ let targetField = as.target;
298
+ if (!targetField || !targetField.startsWith("${")) {
299
+ continue;
300
+ }
301
+ targetField = targetField.substring(2, targetField.length - 1);
302
+ const fields = targetField.split(".");
303
+ setVariableValue(entity, fields, values.join(","));
304
+ }
305
+ }
306
+ function getValuesByField(items, fieldName) {
307
+ if (!items) {
308
+ return [""];
309
+ } else {
310
+ const values = [];
311
+ for (const i of items) {
312
+ let val = i[fieldName];
313
+ if (val == void 0 || val == null) {
314
+ val = "";
315
+ }
316
+ values.push(val);
317
+ }
318
+ return values;
319
+ }
320
+ }
321
+ function getVariableValue(entity, fields) {
322
+ if (!entity || !fields || fields.length == 0) {
323
+ return;
324
+ }
325
+ let tempObj = entity;
326
+ for (let i = 0; i < fields.length; i++) {
327
+ if (tempObj == void 0) {
328
+ return tempObj;
329
+ }
330
+ const fieldName = fields[i];
331
+ tempObj = tempObj[fieldName];
332
+ }
333
+ return tempObj;
334
+ }
335
+ function setValueForVariableName(entity, variableName, newValue) {
336
+ if (!variableName || !variableName.startsWith("${")) {
337
+ return;
338
+ }
339
+ variableName = variableName.substring(2, variableName.length - 1);
340
+ const fields = variableName.split(".");
341
+ setVariableValue(entity, fields, newValue);
342
+ }
343
+ function setVariableValue(entity, fields, newValue) {
344
+ if (!entity || !fields || fields.length == 0) {
345
+ return;
346
+ }
347
+ let tempObj = entity;
348
+ for (let i = 0; i < fields.length; i++) {
349
+ const fieldName = fields[i];
350
+ if (i + 1 == fields.length) {
351
+ tempObj[fieldName] = newValue;
352
+ } else {
353
+ tempObj = tempObj[fieldName];
354
+ if (tempObj == void 0) {
355
+ tempObj[fieldName] = {};
356
+ tempObj = tempObj[fieldName];
357
+ }
358
+ }
359
+ }
360
+ }
361
+ function formatVariableValue(pageContext2, variable) {
362
+ if (!pageContext2 || variable == "" || variable == null || variable == void 0) {
363
+ return variable;
364
+ }
365
+ const entity = pageContext2.entity ? pageContext2.entity : {};
366
+ const t = getParamNames(variable);
367
+ for (const c in t) {
368
+ const param = t[c];
369
+ const paramValue = getValueFromVariable(entity, param);
370
+ variable = variable.replace(
371
+ param,
372
+ paramValue == void 0 || paramValue == null ? "" : paramValue
373
+ );
374
+ }
375
+ return variable;
376
+ }
377
+ function getParamNames(variable) {
378
+ if (!variable) {
379
+ return [];
380
+ }
381
+ const reg = /\$\{[^\{|\}]+\}/g;
382
+ return variable.match(reg);
383
+ }
384
+ function formatValueByType(value, formatType, formatInfo) {
385
+ if (!formatType || value == "" || value == null || value == void 0) {
386
+ return value;
387
+ }
388
+ console.log("aaa", value, formatType, formatInfo);
389
+ formatInfo = formatInfo ? formatInfo : {};
390
+ if (formatType == "number" || formatType == "percent") {
391
+ if (isNaN(value)) {
392
+ return value;
393
+ }
394
+ let precision = parseInt(formatInfo.decimalDigit);
395
+ if (precision == null || isNaN(precision)) {
396
+ precision = -1;
397
+ }
398
+ value = parseFloat(value);
399
+ if (formatType == "percent") {
400
+ value = value * 100;
401
+ }
402
+ if (precision > -1) {
403
+ value = parseFloat(value.toFixed(precision));
404
+ }
405
+ if (formatType == "percent") {
406
+ value = value + "%";
407
+ } else {
408
+ if (formatInfo.thousandsSeparator) {
409
+ const parts = value.toString().split(".");
410
+ parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
411
+ value = parts.length > 1 ? parts.join(".") : parts[0];
412
+ }
413
+ if (formatInfo.symbol) {
414
+ value = formatInfo.symbol + "" + value;
415
+ }
416
+ }
417
+ return value;
418
+ } else if (formatType == "date" || formatType == "time") {
419
+ let formatStr = "";
420
+ if (formatType == "date") {
421
+ formatStr = formatInfo.dateFormat;
422
+ if (!formatStr) {
423
+ formatStr = "YYYY-MM-DD";
424
+ }
425
+ } else {
426
+ formatStr = formatInfo.timeFormat;
427
+ if (!formatStr) {
428
+ formatStr = "HH:mm:ss";
429
+ }
430
+ }
431
+ return dayjs_min(value).format(formatStr);
432
+ } else if (formatType == "custom" && formatInfo.formatEventUuid) {
433
+ console.log("自定义方法", formatInfo);
434
+ }
435
+ return value;
436
+ }
437
+ function getValueFromVariable(entity, variable) {
438
+ if (variable == null || variable == void 0) {
439
+ return variable;
440
+ }
441
+ if (variable.startsWith("${") && variable.endsWith("}")) {
442
+ let paramName = variable.substring(2, variable.length - 1);
443
+ let paramType = null;
444
+ let valueSource = null;
445
+ if (paramName.startsWith("data.")) {
446
+ paramName = paramName.substring(5);
447
+ valueSource = entity.data;
448
+ paramType = "data";
449
+ } else if (paramName.startsWith("page.")) {
450
+ paramName = paramName.substring(5);
451
+ paramType = "page";
452
+ valueSource = entity.page;
453
+ } else if (paramName.startsWith("task.")) {
454
+ paramName = paramName.substring(5);
455
+ paramType = "task";
456
+ valueSource = entity.task;
457
+ } else if (paramName.startsWith("request.")) {
458
+ paramName = paramName.substring(8);
459
+ paramType = "request";
460
+ valueSource = entity.request;
461
+ } else if (paramName.startsWith("context.")) {
462
+ paramName = paramName.substring(8);
463
+ paramType = "context";
464
+ valueSource = entity.context;
465
+ } else if (paramName.startsWith("system.")) {
466
+ paramName = paramName.substring(7);
467
+ paramType = "system";
468
+ valueSource = entity.system;
469
+ } else if (paramName.startsWith("fixed.")) {
470
+ return paramName.substring(6);
471
+ }
472
+ if (!paramName || !paramName) {
473
+ console.log("获取变量失败", variable, entity);
474
+ return "";
475
+ }
476
+ return getValueFromSource(valueSource, paramName, paramType);
477
+ } else {
478
+ return variable;
479
+ }
480
+ }
481
+ function getValueFromSource(valueSource, paramName, paramType) {
482
+ if (paramType != "context" && !valueSource || !paramName) {
483
+ return void 0;
484
+ }
485
+ const firstIndex = paramName.indexOf(".");
486
+ if (firstIndex > -1) {
487
+ const tempParamName = paramName.substring(0, firstIndex);
488
+ const newParamName = paramName.substring(firstIndex + 1);
489
+ let childValue = valueSource[tempParamName];
490
+ if (childValue && Array.isArray(childValue) && childValue.length > 0) {
491
+ childValue = childValue[0];
492
+ }
493
+ return getValueFromSource(childValue, newParamName, paramType);
494
+ } else {
495
+ if (paramType == "context") {
496
+ console.log("newDate", paramName);
497
+ if (paramName == "currentDate" || paramName == "currentTime") {
498
+ return /* @__PURE__ */ new Date();
499
+ } else if (paramName.startsWith("currentDate") && paramName.length > 11) {
500
+ const str = paramName.substring(11);
501
+ const symbol = str.substring(0, 1);
502
+ let num = parseInt(str.substring(1, str.length - 1), 10);
503
+ const unit = str.substring(str.length - 1);
504
+ const date = /* @__PURE__ */ new Date();
505
+ num = "+" === symbol ? num : -num;
506
+ if (unit === "d" || unit === "w") {
507
+ num = unit === "w" ? num * 7 : num;
508
+ date.setDate(date.getDate() + num);
509
+ } else if (unit === "m") {
510
+ date.setMonth(date.getMonth() + num);
511
+ } else if (unit === "y") {
512
+ date.setFullYear(date.getFullYear() + num);
513
+ }
514
+ return date;
515
+ }
516
+ if (!valueSource) {
517
+ return void 0;
518
+ }
519
+ }
520
+ return valueSource[paramName];
521
+ }
522
+ }
523
+ function caculateShowCondition(pageContext, configure, showConditions) {
524
+ if (!showConditions || showConditions.length == 0 || !pageContext || !pageContext.entity) {
525
+ return true;
526
+ }
527
+ const entityData = pageContext.entity;
528
+ let conditions = "";
529
+ const maxLen = showConditions.length;
530
+ for (let i = 0; i < maxLen; i++) {
531
+ const condition = showConditions[i];
532
+ const propName = condition.propName;
533
+ let operator = condition.operator;
534
+ if (!propName || propName === "") {
535
+ continue;
536
+ }
537
+ if (!operator) {
538
+ operator = "EQ";
539
+ }
540
+ const leftValue = getValueFromVariable(entityData, propName);
541
+ let propValue = getValueFromVariable(entityData, condition.propValue);
542
+ const dataType = condition.dataType;
543
+ if (operator == "CONTAIN" || operator == "NOT_CONTAIN") {
544
+ if (leftValue && !leftValue.includes) {
545
+ operator = operator == "CONTAIN" ? "EQ" : "NET";
546
+ }
547
+ }
548
+ let variableIsNullStr = condition.variableIsNull;
549
+ if (!variableIsNullStr) {
550
+ variableIsNullStr = "null";
551
+ }
552
+ let conditionResult = void 0;
553
+ if (propValue === void 0 || propValue === "") {
554
+ propValue = null;
555
+ if (variableIsNullStr === "null") {
556
+ operator = "IS_NULL";
557
+ } else if (variableIsNullStr === "notequal") {
558
+ operator = "IS_NOT_NULL";
559
+ } else {
560
+ conditionResult = true;
561
+ }
562
+ }
563
+ if (conditionResult == void 0) {
564
+ try {
565
+ conditionResult = calculatorUtil.executeExpression(leftValue, operator, propValue, dataType);
566
+ } catch (e) {
567
+ console.log("executeExpression error", e);
568
+ conditionResult = false;
569
+ }
570
+ }
571
+ const leftBracket = condition.leftBracket;
572
+ const rightBracket = condition.rightBracket;
573
+ let joinSign = condition.joinSign;
574
+ if (leftBracket && leftBracket !== null && leftBracket !== "") {
575
+ conditions = conditions + leftBracket;
576
+ conditions = conditions + " ";
577
+ }
578
+ conditions += conditionResult + " ";
579
+ if (rightBracket && rightBracket !== null && rightBracket !== "") {
580
+ conditions = conditions + rightBracket;
581
+ conditions = conditions + " ";
582
+ }
583
+ if (i < maxLen - 1) {
584
+ if (joinSign && joinSign !== null && joinSign !== "") {
585
+ const joinSignIgnoreCase = joinSign.toLowerCase();
586
+ if (joinSignIgnoreCase === "and") {
587
+ joinSign = joinSignIgnoreCase.replace("and", "&&");
588
+ } else if (joinSignIgnoreCase === "or") {
589
+ joinSign = joinSignIgnoreCase.replace("or", "||");
590
+ }
591
+ conditions += joinSign + " ";
592
+ }
593
+ }
594
+ }
595
+ if (conditions) {
596
+ return eval("(" + conditions + ")");
597
+ } else {
598
+ return true;
599
+ }
600
+ }
601
+ function monitorFieldChange(pageContext2, monitorFields, triggerFunc) {
602
+ if (!triggerFunc || !pageContext2 || !monitorFields || monitorFields.length == 0) {
603
+ return;
604
+ }
605
+ const monitorFieldInfos = [];
606
+ const preFields = [];
607
+ for (let propName of monitorFields) {
608
+ if (propName.startsWith("${")) {
609
+ propName = propName.substring(2, propName.length - 1);
610
+ const fields = propName.split(".");
611
+ if (fields[0] === "page" || fields[0] === "task" || fields[0] === "data") {
612
+ monitorFieldInfos.push(fields);
613
+ if (!preFields.includes(fields[0])) {
614
+ preFields.push(fields[0]);
615
+ }
616
+ }
617
+ }
618
+ }
619
+ const entity = pageContext2.entity;
620
+ let firstValue = getMonitorFieldValues(monitorFieldInfos, entity);
621
+ let monitorTimeout = false;
622
+ for (const preField of preFields) {
623
+ Vue.watch(entity[preField], () => {
624
+ if (monitorTimeout) {
625
+ clearTimeout(monitorTimeout);
626
+ }
627
+ monitorTimeout = setTimeout(function() {
628
+ const newValue = getMonitorFieldValues(monitorFieldInfos, entity);
629
+ if (firstValue != newValue) {
630
+ firstValue = newValue;
631
+ triggerFunc();
632
+ }
633
+ }, 200);
634
+ });
635
+ }
636
+ }
637
+ function getMonitorFieldValues(monitorFieldInfos, entity) {
638
+ let values = "";
639
+ for (const fieldInfo of monitorFieldInfos) {
640
+ values += "_" + getVariableValue(entity, fieldInfo);
641
+ }
642
+ return values;
643
+ }
644
+ function getFormPropName(prop) {
645
+ if (prop && prop.indexOf("${") >= 0) {
646
+ return prop.substring(prop.indexOf(".") + 1, prop.lastIndexOf("}"));
647
+ } else {
648
+ return prop;
649
+ }
650
+ }
651
+ exports.autoSetAfterSelect = autoSetAfterSelect;
652
+ exports.caculateShowCondition = caculateShowCondition;
653
+ exports.formatValueByType = formatValueByType;
654
+ exports.formatVariableValue = formatVariableValue;
655
+ exports.getChartDatasFromPage = getChartDatasFromPage;
656
+ exports.getComponentOptionConfigs = getComponentOptionConfigs;
657
+ exports.getFormPropName = getFormPropName;
658
+ exports.getOptionDatasFromPage = getOptionDatasFromPage;
659
+ exports.getValueFromSource = getValueFromSource;
660
+ exports.getValueFromVariable = getValueFromVariable;
661
+ exports.getVariableValue = getVariableValue;
662
+ exports.monitorFieldChange = monitorFieldChange;
663
+ exports.queryOptionDatasources = queryOptionDatasources;
664
+ exports.queryOptions = queryOptions;
665
+ exports.setValueForVariableName = setValueForVariableName;
666
+ exports.setVariableValue = setVariableValue;
667
+ exports.updateChartDatasources = updateChartDatasources;
668
+ exports.updateOptionDatasources = updateOptionDatasources;
@@ -0,0 +1,40 @@
1
+ import { Component, PageContext, PageDesign } from './interfaces/page-design-types';
2
+
3
+ /**
4
+ * 查询页面设计对象
5
+ * @param pageId
6
+ * @returns
7
+ */
8
+ export declare function queryPageDesign(pageId: number): Promise<any>;
9
+ /**
10
+ * 查询页面设计对象
11
+ * @param pageCode
12
+ * @returns
13
+ */
14
+ export declare function queryPageDesignByCode(pageCode: string): Promise<any>;
15
+ /**
16
+ * 转换页面设计对象为运行时对象
17
+ * @param pageDesign 页面设计对象
18
+ */
19
+ export declare function convertToPageContext(pageDesign: PageDesign, pageRequest: object): PageContext | null;
20
+ export declare function getModelFields(pageContext: PageContext, formItemConfigure: Component, prop?: string): string[];
21
+ /**
22
+ * 获取表单元素模型名称
23
+ * @param pageContext 页面对象
24
+ * @param formItemConfigure 表单元素配置参数
25
+ */
26
+ export declare function getFormModelFields(pageContext: PageContext, formItemConfigure: any, prop?: string): string[];
27
+ /**
28
+ * 获取组件的权限编码
29
+ * @param configure
30
+ * @param pageContext
31
+ * @returns
32
+ */
33
+ export declare function getPermissionCodes(configure: Component, pageContext: PageContext): string;
34
+ /**
35
+ * 查询页面中所有列表配置
36
+ * @param pageCode
37
+ * @returns
38
+ */
39
+ export declare function queryPageSuperGrids(pageDesign: any, pageContext: any, publishVersion: any): Promise<any>;
40
+ export declare function packageFormRules(pageContext: PageContext, configure: any): void;