super-page-runtime 2.0.42 → 2.0.43-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 (398) hide show
  1. package/dist/es/components/runtime/utils/events/standard-event.js +2 -34
  2. package/dist/es/components/runtime/utils/events/validator-util.js +9 -39
  3. package/dist/es/components/runtime/utils/page-helper-util.js +1 -2
  4. package/dist/es/components/runtime/utils/page-init-util.js +1 -2
  5. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +13 -9
  6. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +38 -2
  7. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +45 -26
  8. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +11 -2
  9. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +11 -2
  10. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +28 -18
  11. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +11 -2
  12. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +11 -2
  13. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +23 -9
  14. package/dist/es/components/runtime/views/super-page.vue.js +37 -42
  15. package/package.json +1 -1
  16. package/dist/lib/_virtual/AttributeMap.js +0 -4
  17. package/dist/lib/_virtual/Barcode.js +0 -4
  18. package/dist/lib/_virtual/CODE128.js +0 -4
  19. package/dist/lib/_virtual/CODE128A.js +0 -4
  20. package/dist/lib/_virtual/CODE128B.js +0 -4
  21. package/dist/lib/_virtual/CODE128C.js +0 -4
  22. package/dist/lib/_virtual/CODE128_AUTO.js +0 -4
  23. package/dist/lib/_virtual/Delta.js +0 -4
  24. package/dist/lib/_virtual/EAN.js +0 -4
  25. package/dist/lib/_virtual/EAN13.js +0 -4
  26. package/dist/lib/_virtual/EAN2.js +0 -4
  27. package/dist/lib/_virtual/EAN5.js +0 -4
  28. package/dist/lib/_virtual/EAN8.js +0 -4
  29. package/dist/lib/_virtual/ErrorHandler.js +0 -4
  30. package/dist/lib/_virtual/ITF.js +0 -4
  31. package/dist/lib/_virtual/ITF14.js +0 -4
  32. package/dist/lib/_virtual/JsBarcode.js +0 -6
  33. package/dist/lib/_virtual/MSI.js +0 -4
  34. package/dist/lib/_virtual/MSI10.js +0 -4
  35. package/dist/lib/_virtual/MSI1010.js +0 -4
  36. package/dist/lib/_virtual/MSI11.js +0 -4
  37. package/dist/lib/_virtual/MSI1110.js +0 -4
  38. package/dist/lib/_virtual/Op.js +0 -4
  39. package/dist/lib/_virtual/OpIterator.js +0 -4
  40. package/dist/lib/_virtual/SVGPathData.js +0 -4
  41. package/dist/lib/_virtual/SVGPathData2.js +0 -5
  42. package/dist/lib/_virtual/UPC.js +0 -4
  43. package/dist/lib/_virtual/UPCE.js +0 -4
  44. package/dist/lib/_virtual/__vite-browser-external.js +0 -3
  45. package/dist/lib/_virtual/_commonjsHelpers.js +0 -35
  46. package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -9
  47. package/dist/lib/_virtual/alignment-pattern.js +0 -4
  48. package/dist/lib/_virtual/arrayLikeToArray.js +0 -4
  49. package/dist/lib/_virtual/arrayWithHoles.js +0 -4
  50. package/dist/lib/_virtual/arrayWithoutHoles.js +0 -4
  51. package/dist/lib/_virtual/assertThisInitialized.js +0 -4
  52. package/dist/lib/_virtual/asyncToGenerator.js +0 -4
  53. package/dist/lib/_virtual/asyncToGenerator2.js +0 -6
  54. package/dist/lib/_virtual/auto.js +0 -4
  55. package/dist/lib/_virtual/backo2.js +0 -4
  56. package/dist/lib/_virtual/base64-arraybuffer.js +0 -4
  57. package/dist/lib/_virtual/binary.js +0 -4
  58. package/dist/lib/_virtual/browser.js +0 -4
  59. package/dist/lib/_virtual/browser2.js +0 -4
  60. package/dist/lib/_virtual/canvas.js +0 -4
  61. package/dist/lib/_virtual/canvas2.js +0 -4
  62. package/dist/lib/_virtual/checksums.js +0 -4
  63. package/dist/lib/_virtual/classCallCheck.js +0 -4
  64. package/dist/lib/_virtual/commons.js +0 -4
  65. package/dist/lib/_virtual/constants.js +0 -4
  66. package/dist/lib/_virtual/constants2.js +0 -4
  67. package/dist/lib/_virtual/constants3.js +0 -4
  68. package/dist/lib/_virtual/createClass.js +0 -4
  69. package/dist/lib/_virtual/dayjs.min.js +0 -4
  70. package/dist/lib/_virtual/decodePacket.browser.js +0 -4
  71. package/dist/lib/_virtual/defaults.js +0 -4
  72. package/dist/lib/_virtual/defineProperty.js +0 -4
  73. package/dist/lib/_virtual/defineProperty2.js +0 -6
  74. package/dist/lib/_virtual/dijkstra.js +0 -4
  75. package/dist/lib/_virtual/encodePacket.browser.js +0 -4
  76. package/dist/lib/_virtual/encoder.js +0 -4
  77. package/dist/lib/_virtual/error-correction-code.js +0 -4
  78. package/dist/lib/_virtual/error-correction-level.js +0 -4
  79. package/dist/lib/_virtual/es.array.concat.js +0 -4
  80. package/dist/lib/_virtual/es.array.every.js +0 -4
  81. package/dist/lib/_virtual/es.array.fill.js +0 -4
  82. package/dist/lib/_virtual/es.array.for-each.js +0 -4
  83. package/dist/lib/_virtual/es.array.from.js +0 -4
  84. package/dist/lib/_virtual/es.array.includes.js +0 -4
  85. package/dist/lib/_virtual/es.array.index-of.js +0 -4
  86. package/dist/lib/_virtual/es.array.index-of2.js +0 -3
  87. package/dist/lib/_virtual/es.array.iterator.js +0 -3
  88. package/dist/lib/_virtual/es.array.join.js +0 -4
  89. package/dist/lib/_virtual/es.array.map.js +0 -4
  90. package/dist/lib/_virtual/es.array.reduce.js +0 -4
  91. package/dist/lib/_virtual/es.array.reduce2.js +0 -3
  92. package/dist/lib/_virtual/es.array.reverse.js +0 -4
  93. package/dist/lib/_virtual/es.array.reverse2.js +0 -3
  94. package/dist/lib/_virtual/es.array.some.js +0 -4
  95. package/dist/lib/_virtual/es.function.name.js +0 -4
  96. package/dist/lib/_virtual/es.map.constructor.js +0 -4
  97. package/dist/lib/_virtual/es.map.js +0 -4
  98. package/dist/lib/_virtual/es.number.constructor.js +0 -4
  99. package/dist/lib/_virtual/es.object.to-string.js +0 -4
  100. package/dist/lib/_virtual/es.parse-float.js +0 -4
  101. package/dist/lib/_virtual/es.promise.all.js +0 -4
  102. package/dist/lib/_virtual/es.promise.catch.js +0 -4
  103. package/dist/lib/_virtual/es.promise.constructor.js +0 -4
  104. package/dist/lib/_virtual/es.promise.js +0 -4
  105. package/dist/lib/_virtual/es.promise.race.js +0 -4
  106. package/dist/lib/_virtual/es.promise.reject.js +0 -4
  107. package/dist/lib/_virtual/es.promise.resolve.js +0 -4
  108. package/dist/lib/_virtual/es.promise2.js +0 -3
  109. package/dist/lib/_virtual/es.reflect.apply.js +0 -4
  110. package/dist/lib/_virtual/es.reflect.delete-property.js +0 -4
  111. package/dist/lib/_virtual/es.reflect.get-prototype-of.js +0 -4
  112. package/dist/lib/_virtual/es.regexp.exec.js +0 -4
  113. package/dist/lib/_virtual/es.regexp.to-string.js +0 -4
  114. package/dist/lib/_virtual/es.regexp.to-string2.js +0 -3
  115. package/dist/lib/_virtual/es.string.ends-with.js +0 -4
  116. package/dist/lib/_virtual/es.string.ends-with2.js +0 -3
  117. package/dist/lib/_virtual/es.string.includes.js +0 -4
  118. package/dist/lib/_virtual/es.string.includes2.js +0 -3
  119. package/dist/lib/_virtual/es.string.iterator.js +0 -4
  120. package/dist/lib/_virtual/es.string.match.js +0 -4
  121. package/dist/lib/_virtual/es.string.match2.js +0 -3
  122. package/dist/lib/_virtual/es.string.replace.js +0 -4
  123. package/dist/lib/_virtual/es.string.replace2.js +0 -3
  124. package/dist/lib/_virtual/es.string.split.js +0 -4
  125. package/dist/lib/_virtual/es.string.split2.js +0 -3
  126. package/dist/lib/_virtual/es.string.starts-with.js +0 -4
  127. package/dist/lib/_virtual/es.string.starts-with2.js +0 -3
  128. package/dist/lib/_virtual/es.string.trim.js +0 -4
  129. package/dist/lib/_virtual/es.string.trim2.js +0 -3
  130. package/dist/lib/_virtual/exceptions.js +0 -4
  131. package/dist/lib/_virtual/finder-pattern.js +0 -4
  132. package/dist/lib/_virtual/fixOptions.js +0 -4
  133. package/dist/lib/_virtual/format-info.js +0 -4
  134. package/dist/lib/_virtual/galois-field.js +0 -4
  135. package/dist/lib/_virtual/get.js +0 -4
  136. package/dist/lib/_virtual/getOptionsFromElement.js +0 -4
  137. package/dist/lib/_virtual/getPrototypeOf.js +0 -4
  138. package/dist/lib/_virtual/getRenderProperties.js +0 -4
  139. package/dist/lib/_virtual/globalThis.browser.js +0 -4
  140. package/dist/lib/_virtual/has-cors.js +0 -4
  141. package/dist/lib/_virtual/html2canvas.js +0 -4
  142. package/dist/lib/_virtual/index.js +0 -4
  143. package/dist/lib/_virtual/index10.js +0 -4
  144. package/dist/lib/_virtual/index11.js +0 -4
  145. package/dist/lib/_virtual/index12.js +0 -4
  146. package/dist/lib/_virtual/index13.js +0 -4
  147. package/dist/lib/_virtual/index14.js +0 -4
  148. package/dist/lib/_virtual/index15.js +0 -4
  149. package/dist/lib/_virtual/index16.js +0 -4
  150. package/dist/lib/_virtual/index17.js +0 -4
  151. package/dist/lib/_virtual/index18.js +0 -4
  152. package/dist/lib/_virtual/index19.js +0 -4
  153. package/dist/lib/_virtual/index2.js +0 -4
  154. package/dist/lib/_virtual/index20.js +0 -4
  155. package/dist/lib/_virtual/index21.js +0 -4
  156. package/dist/lib/_virtual/index22.js +0 -4
  157. package/dist/lib/_virtual/index23.js +0 -4
  158. package/dist/lib/_virtual/index3.js +0 -4
  159. package/dist/lib/_virtual/index4.js +0 -5
  160. package/dist/lib/_virtual/index5.js +0 -4
  161. package/dist/lib/_virtual/index6.js +0 -4
  162. package/dist/lib/_virtual/index7.js +0 -6
  163. package/dist/lib/_virtual/index8.js +0 -6
  164. package/dist/lib/_virtual/index9.js +0 -4
  165. package/dist/lib/_virtual/inherits.js +0 -4
  166. package/dist/lib/_virtual/internal-metadata.js +0 -4
  167. package/dist/lib/_virtual/is-binary.js +0 -4
  168. package/dist/lib/_virtual/iterableToArray.js +0 -4
  169. package/dist/lib/_virtual/iterableToArrayLimit.js +0 -4
  170. package/dist/lib/_virtual/jquery.js +0 -4
  171. package/dist/lib/_virtual/jspdf.es.min.js +0 -5
  172. package/dist/lib/_virtual/linearizeEncodings.js +0 -4
  173. package/dist/lib/_virtual/make-built-in.js +0 -4
  174. package/dist/lib/_virtual/manager.js +0 -4
  175. package/dist/lib/_virtual/mask-pattern.js +0 -4
  176. package/dist/lib/_virtual/merge.js +0 -4
  177. package/dist/lib/_virtual/mode.js +0 -4
  178. package/dist/lib/_virtual/new-promise-capability.js +0 -4
  179. package/dist/lib/_virtual/nonIterableRest.js +0 -4
  180. package/dist/lib/_virtual/nonIterableSpread.js +0 -4
  181. package/dist/lib/_virtual/object-define-properties.js +0 -4
  182. package/dist/lib/_virtual/object-define-property.js +0 -4
  183. package/dist/lib/_virtual/object-get-own-property-descriptor.js +0 -4
  184. package/dist/lib/_virtual/object-get-own-property-names-external.js +0 -4
  185. package/dist/lib/_virtual/object-get-own-property-names.js +0 -4
  186. package/dist/lib/_virtual/object-get-own-property-symbols.js +0 -4
  187. package/dist/lib/_virtual/object-property-is-enumerable.js +0 -4
  188. package/dist/lib/_virtual/object.js +0 -4
  189. package/dist/lib/_virtual/on.js +0 -4
  190. package/dist/lib/_virtual/optionsFromStrings.js +0 -4
  191. package/dist/lib/_virtual/parseqs.js +0 -4
  192. package/dist/lib/_virtual/parseuri.js +0 -4
  193. package/dist/lib/_virtual/performance-now.js +0 -4
  194. package/dist/lib/_virtual/polling.js +0 -4
  195. package/dist/lib/_virtual/polynomial.js +0 -4
  196. package/dist/lib/_virtual/possibleConstructorReturn.js +0 -4
  197. package/dist/lib/_virtual/qrcode.js +0 -4
  198. package/dist/lib/_virtual/regeneratorRuntime.js +0 -4
  199. package/dist/lib/_virtual/regex.js +0 -4
  200. package/dist/lib/_virtual/segments.js +0 -4
  201. package/dist/lib/_virtual/setPrototypeOf.js +0 -4
  202. package/dist/lib/_virtual/shared-store.js +0 -4
  203. package/dist/lib/_virtual/shared.js +0 -4
  204. package/dist/lib/_virtual/slicedToArray.js +0 -4
  205. package/dist/lib/_virtual/socket.js +0 -4
  206. package/dist/lib/_virtual/socket2.js +0 -4
  207. package/dist/lib/_virtual/stackblur-es.js +0 -5
  208. package/dist/lib/_virtual/superPropBase.js +0 -4
  209. package/dist/lib/_virtual/svg-tag.js +0 -4
  210. package/dist/lib/_virtual/svg.js +0 -4
  211. package/dist/lib/_virtual/toConsumableArray.js +0 -4
  212. package/dist/lib/_virtual/toPrimitive.js +0 -4
  213. package/dist/lib/_virtual/toPropertyKey.js +0 -4
  214. package/dist/lib/_virtual/transport.js +0 -4
  215. package/dist/lib/_virtual/typeof.js +0 -4
  216. package/dist/lib/_virtual/unsupportedIterableToArray.js +0 -4
  217. package/dist/lib/_virtual/url.js +0 -4
  218. package/dist/lib/_virtual/util.js +0 -4
  219. package/dist/lib/_virtual/utils.js +0 -4
  220. package/dist/lib/_virtual/utils2.js +0 -4
  221. package/dist/lib/_virtual/version-check.js +0 -4
  222. package/dist/lib/_virtual/version.js +0 -4
  223. package/dist/lib/_virtual/vue-plugin-hiprint.js +0 -4
  224. package/dist/lib/_virtual/web.dom-collections.for-each.js +0 -4
  225. package/dist/lib/_virtual/web.dom-collections.iterator.js +0 -4
  226. package/dist/lib/_virtual/web.dom-collections.iterator2.js +0 -3
  227. package/dist/lib/_virtual/websocket-constructor.browser.js +0 -4
  228. package/dist/lib/_virtual/websocket.js +0 -4
  229. package/dist/lib/_virtual/webtransport.js +0 -4
  230. package/dist/lib/_virtual/xmlhttprequest.browser.js +0 -4
  231. package/dist/lib/_virtual/yeast.js +0 -4
  232. package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
  233. package/dist/lib/assets/chart-themes/theme1.js +0 -7
  234. package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
  235. package/dist/lib/assets/chart-themes/theme2.js +0 -7
  236. package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
  237. package/dist/lib/assets/chart-themes/theme3.js +0 -7
  238. package/dist/lib/components/runtime/index.d.ts +0 -4
  239. package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -18
  240. package/dist/lib/components/runtime/utils/api/api-util.js +0 -298
  241. package/dist/lib/components/runtime/utils/api/page-expose-util.d.ts +0 -1
  242. package/dist/lib/components/runtime/utils/api/page-expose-util.js +0 -206
  243. package/dist/lib/components/runtime/utils/assemblys-config.js +0 -295
  244. package/dist/lib/components/runtime/utils/barcode-util.d.ts +0 -8
  245. package/dist/lib/components/runtime/utils/barcode-util.js +0 -36
  246. package/dist/lib/components/runtime/utils/charts/chart-columnline-util.js +0 -279
  247. package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +0 -74
  248. package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +0 -118
  249. package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +0 -100
  250. package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +0 -74
  251. package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -51
  252. package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -302
  253. package/dist/lib/components/runtime/utils/common-util.d.ts +0 -17
  254. package/dist/lib/components/runtime/utils/common-util.js +0 -108
  255. package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
  256. package/dist/lib/components/runtime/utils/eventBus.js +0 -10
  257. package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -68
  258. package/dist/lib/components/runtime/utils/events/event-util.js +0 -616
  259. package/dist/lib/components/runtime/utils/events/print-label.d.ts +0 -5
  260. package/dist/lib/components/runtime/utils/events/print-label.js +0 -153
  261. package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -67
  262. package/dist/lib/components/runtime/utils/events/standard-event.js +0 -1817
  263. package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -12
  264. package/dist/lib/components/runtime/utils/events/validator-util.js +0 -416
  265. package/dist/lib/components/runtime/utils/form/date-shortcuts.d.ts +0 -7
  266. package/dist/lib/components/runtime/utils/form/date-shortcuts.js +0 -96
  267. package/dist/lib/components/runtime/utils/form/scan-util.js +0 -194
  268. package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
  269. package/dist/lib/components/runtime/utils/global-refs.js +0 -77
  270. package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -224
  271. package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +0 -9
  272. package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -134
  273. package/dist/lib/components/runtime/utils/page-helper-util.js +0 -668
  274. package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -40
  275. package/dist/lib/components/runtime/utils/page-init-util.js +0 -266
  276. package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
  277. package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
  278. package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
  279. package/dist/lib/components/runtime/utils/store-util.js +0 -17
  280. package/dist/lib/components/runtime/utils/store.d.ts +0 -2
  281. package/dist/lib/components/runtime/utils/store.js +0 -3
  282. package/dist/lib/components/runtime/utils/table-utils.js +0 -16
  283. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
  284. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
  285. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
  286. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
  287. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
  288. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -115
  289. package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +0 -3
  290. package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +0 -95
  291. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
  292. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -144
  293. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
  294. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
  295. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
  296. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
  297. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -127
  298. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
  299. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
  300. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -106
  301. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
  302. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -141
  303. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
  304. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -115
  305. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
  306. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -117
  307. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
  308. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -147
  309. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
  310. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
  311. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
  312. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
  313. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
  314. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
  315. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
  316. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
  317. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
  318. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
  319. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
  320. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
  321. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
  322. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
  323. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -70
  324. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
  325. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -50
  326. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
  327. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
  328. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
  329. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -109
  330. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
  331. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
  332. package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +0 -3
  333. package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +0 -183
  334. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -673
  335. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
  336. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -455
  337. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
  338. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
  339. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
  340. package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
  341. package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +0 -22
  342. package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +0 -3
  343. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
  344. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -120
  345. package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +0 -65
  346. package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +0 -3
  347. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
  348. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -149
  349. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
  350. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -72
  351. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
  352. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -42
  353. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
  354. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -135
  355. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
  356. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -67
  357. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
  358. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -159
  359. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
  360. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -130
  361. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
  362. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -78
  363. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
  364. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
  365. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
  366. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -160
  367. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
  368. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -236
  369. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
  370. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -204
  371. package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +0 -3
  372. package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +0 -41
  373. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
  374. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -65
  375. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
  376. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -66
  377. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
  378. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -71
  379. package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
  380. package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +0 -154
  381. package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +0 -3
  382. package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +0 -3
  383. package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +0 -39
  384. package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +0 -3
  385. package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +0 -39
  386. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
  387. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -59
  388. package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -36
  389. package/dist/lib/components/runtime/views/super-page-dialog.vue.js +0 -79
  390. package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +0 -3
  391. package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -99
  392. package/dist/lib/components/runtime/views/super-page.vue.js +0 -525
  393. package/dist/lib/components/runtime/views/super-page.vue2.js +0 -3
  394. package/dist/lib/favicon.ico +0 -0
  395. package/dist/lib/i18n/langs/cn.js +0 -53
  396. package/dist/lib/i18n/langs/en.js +0 -53
  397. package/dist/lib/index.d.ts +0 -13
  398. package/dist/lib/index.js +0 -22
@@ -1,668 +0,0 @@
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;
@@ -1,40 +0,0 @@
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;