super-page-runtime 2.0.43 → 2.0.44

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 (426) hide show
  1. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +77 -39
  2. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +54 -8
  3. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +39 -7
  4. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +44 -10
  5. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +28 -2
  6. package/dist/es/components/runtime/utils/charts/chart-util.js +242 -46
  7. package/dist/es/components/runtime/utils/common-util.js +5 -5
  8. package/dist/es/components/runtime/utils/events/event-util.d.ts +15 -0
  9. package/dist/es/components/runtime/utils/events/event-util.js +71 -47
  10. package/dist/es/components/runtime/utils/events/standard-event.d.ts +3 -1
  11. package/dist/es/components/runtime/utils/events/standard-event.js +19 -12
  12. package/dist/es/components/runtime/utils/events/validator-util.js +8 -7
  13. package/dist/es/components/runtime/utils/page-helper-util.d.ts +6 -0
  14. package/dist/es/components/runtime/utils/page-helper-util.js +11 -1
  15. package/dist/es/components/runtime/utils/page-init-util.js +6 -4
  16. package/dist/es/components/runtime/utils/page-permission-util.js +3 -3
  17. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +35 -14
  18. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +48 -1
  19. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +33 -14
  20. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +16 -22
  21. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +16 -10
  22. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +2 -2
  23. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +38 -2
  24. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +57 -40
  25. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +14 -5
  26. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +2 -2
  27. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +15 -6
  28. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +15 -11
  29. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -3
  30. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
  31. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
  32. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +30 -20
  33. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +14 -5
  34. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +3 -3
  36. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +17 -8
  37. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +23 -9
  38. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +5 -4
  39. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +5 -4
  40. package/dist/es/components/runtime/views/super-page.vue.js +36 -37
  41. package/dist/es/i18n/langs/cn.js +2 -1
  42. package/dist/es/i18n/langs/en.js +2 -1
  43. package/package.json +2 -2
  44. package/dist/lib/_virtual/AttributeMap.js +0 -4
  45. package/dist/lib/_virtual/Barcode.js +0 -4
  46. package/dist/lib/_virtual/CODE128.js +0 -4
  47. package/dist/lib/_virtual/CODE128A.js +0 -4
  48. package/dist/lib/_virtual/CODE128B.js +0 -4
  49. package/dist/lib/_virtual/CODE128C.js +0 -4
  50. package/dist/lib/_virtual/CODE128_AUTO.js +0 -4
  51. package/dist/lib/_virtual/Delta.js +0 -4
  52. package/dist/lib/_virtual/EAN.js +0 -4
  53. package/dist/lib/_virtual/EAN13.js +0 -4
  54. package/dist/lib/_virtual/EAN2.js +0 -4
  55. package/dist/lib/_virtual/EAN5.js +0 -4
  56. package/dist/lib/_virtual/EAN8.js +0 -4
  57. package/dist/lib/_virtual/ErrorHandler.js +0 -4
  58. package/dist/lib/_virtual/ITF.js +0 -4
  59. package/dist/lib/_virtual/ITF14.js +0 -4
  60. package/dist/lib/_virtual/JsBarcode.js +0 -6
  61. package/dist/lib/_virtual/MSI.js +0 -4
  62. package/dist/lib/_virtual/MSI10.js +0 -4
  63. package/dist/lib/_virtual/MSI1010.js +0 -4
  64. package/dist/lib/_virtual/MSI11.js +0 -4
  65. package/dist/lib/_virtual/MSI1110.js +0 -4
  66. package/dist/lib/_virtual/Op.js +0 -4
  67. package/dist/lib/_virtual/OpIterator.js +0 -4
  68. package/dist/lib/_virtual/SVGPathData.js +0 -4
  69. package/dist/lib/_virtual/SVGPathData2.js +0 -5
  70. package/dist/lib/_virtual/UPC.js +0 -4
  71. package/dist/lib/_virtual/UPCE.js +0 -4
  72. package/dist/lib/_virtual/__vite-browser-external.js +0 -3
  73. package/dist/lib/_virtual/_commonjsHelpers.js +0 -35
  74. package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -9
  75. package/dist/lib/_virtual/alignment-pattern.js +0 -4
  76. package/dist/lib/_virtual/arrayLikeToArray.js +0 -4
  77. package/dist/lib/_virtual/arrayWithHoles.js +0 -4
  78. package/dist/lib/_virtual/arrayWithoutHoles.js +0 -4
  79. package/dist/lib/_virtual/assertThisInitialized.js +0 -4
  80. package/dist/lib/_virtual/asyncToGenerator.js +0 -4
  81. package/dist/lib/_virtual/asyncToGenerator2.js +0 -6
  82. package/dist/lib/_virtual/auto.js +0 -4
  83. package/dist/lib/_virtual/backo2.js +0 -4
  84. package/dist/lib/_virtual/base64-arraybuffer.js +0 -4
  85. package/dist/lib/_virtual/binary.js +0 -4
  86. package/dist/lib/_virtual/browser.js +0 -4
  87. package/dist/lib/_virtual/browser2.js +0 -4
  88. package/dist/lib/_virtual/canvas.js +0 -4
  89. package/dist/lib/_virtual/canvas2.js +0 -4
  90. package/dist/lib/_virtual/checksums.js +0 -4
  91. package/dist/lib/_virtual/classCallCheck.js +0 -4
  92. package/dist/lib/_virtual/commons.js +0 -4
  93. package/dist/lib/_virtual/constants.js +0 -4
  94. package/dist/lib/_virtual/constants2.js +0 -4
  95. package/dist/lib/_virtual/constants3.js +0 -4
  96. package/dist/lib/_virtual/createClass.js +0 -4
  97. package/dist/lib/_virtual/dayjs.min.js +0 -4
  98. package/dist/lib/_virtual/decodePacket.browser.js +0 -4
  99. package/dist/lib/_virtual/defaults.js +0 -4
  100. package/dist/lib/_virtual/defineProperty.js +0 -4
  101. package/dist/lib/_virtual/defineProperty2.js +0 -6
  102. package/dist/lib/_virtual/dijkstra.js +0 -4
  103. package/dist/lib/_virtual/encodePacket.browser.js +0 -4
  104. package/dist/lib/_virtual/encoder.js +0 -4
  105. package/dist/lib/_virtual/error-correction-code.js +0 -4
  106. package/dist/lib/_virtual/error-correction-level.js +0 -4
  107. package/dist/lib/_virtual/es.array.concat.js +0 -4
  108. package/dist/lib/_virtual/es.array.every.js +0 -4
  109. package/dist/lib/_virtual/es.array.fill.js +0 -4
  110. package/dist/lib/_virtual/es.array.for-each.js +0 -4
  111. package/dist/lib/_virtual/es.array.from.js +0 -4
  112. package/dist/lib/_virtual/es.array.includes.js +0 -4
  113. package/dist/lib/_virtual/es.array.index-of.js +0 -4
  114. package/dist/lib/_virtual/es.array.index-of2.js +0 -3
  115. package/dist/lib/_virtual/es.array.iterator.js +0 -3
  116. package/dist/lib/_virtual/es.array.join.js +0 -4
  117. package/dist/lib/_virtual/es.array.map.js +0 -4
  118. package/dist/lib/_virtual/es.array.reduce.js +0 -4
  119. package/dist/lib/_virtual/es.array.reduce2.js +0 -3
  120. package/dist/lib/_virtual/es.array.reverse.js +0 -4
  121. package/dist/lib/_virtual/es.array.reverse2.js +0 -3
  122. package/dist/lib/_virtual/es.array.some.js +0 -4
  123. package/dist/lib/_virtual/es.function.name.js +0 -4
  124. package/dist/lib/_virtual/es.map.constructor.js +0 -4
  125. package/dist/lib/_virtual/es.map.js +0 -4
  126. package/dist/lib/_virtual/es.number.constructor.js +0 -4
  127. package/dist/lib/_virtual/es.object.to-string.js +0 -4
  128. package/dist/lib/_virtual/es.parse-float.js +0 -4
  129. package/dist/lib/_virtual/es.promise.all.js +0 -4
  130. package/dist/lib/_virtual/es.promise.catch.js +0 -4
  131. package/dist/lib/_virtual/es.promise.constructor.js +0 -4
  132. package/dist/lib/_virtual/es.promise.js +0 -4
  133. package/dist/lib/_virtual/es.promise.race.js +0 -4
  134. package/dist/lib/_virtual/es.promise.reject.js +0 -4
  135. package/dist/lib/_virtual/es.promise.resolve.js +0 -4
  136. package/dist/lib/_virtual/es.promise2.js +0 -3
  137. package/dist/lib/_virtual/es.reflect.apply.js +0 -4
  138. package/dist/lib/_virtual/es.reflect.delete-property.js +0 -4
  139. package/dist/lib/_virtual/es.reflect.get-prototype-of.js +0 -4
  140. package/dist/lib/_virtual/es.regexp.exec.js +0 -4
  141. package/dist/lib/_virtual/es.regexp.to-string.js +0 -4
  142. package/dist/lib/_virtual/es.regexp.to-string2.js +0 -3
  143. package/dist/lib/_virtual/es.string.ends-with.js +0 -4
  144. package/dist/lib/_virtual/es.string.ends-with2.js +0 -3
  145. package/dist/lib/_virtual/es.string.includes.js +0 -4
  146. package/dist/lib/_virtual/es.string.includes2.js +0 -3
  147. package/dist/lib/_virtual/es.string.iterator.js +0 -4
  148. package/dist/lib/_virtual/es.string.match.js +0 -4
  149. package/dist/lib/_virtual/es.string.match2.js +0 -3
  150. package/dist/lib/_virtual/es.string.replace.js +0 -4
  151. package/dist/lib/_virtual/es.string.replace2.js +0 -3
  152. package/dist/lib/_virtual/es.string.split.js +0 -4
  153. package/dist/lib/_virtual/es.string.split2.js +0 -3
  154. package/dist/lib/_virtual/es.string.starts-with.js +0 -4
  155. package/dist/lib/_virtual/es.string.starts-with2.js +0 -3
  156. package/dist/lib/_virtual/es.string.trim.js +0 -4
  157. package/dist/lib/_virtual/es.string.trim2.js +0 -3
  158. package/dist/lib/_virtual/exceptions.js +0 -4
  159. package/dist/lib/_virtual/finder-pattern.js +0 -4
  160. package/dist/lib/_virtual/fixOptions.js +0 -4
  161. package/dist/lib/_virtual/format-info.js +0 -4
  162. package/dist/lib/_virtual/galois-field.js +0 -4
  163. package/dist/lib/_virtual/get.js +0 -4
  164. package/dist/lib/_virtual/getOptionsFromElement.js +0 -4
  165. package/dist/lib/_virtual/getPrototypeOf.js +0 -4
  166. package/dist/lib/_virtual/getRenderProperties.js +0 -4
  167. package/dist/lib/_virtual/globalThis.browser.js +0 -4
  168. package/dist/lib/_virtual/has-cors.js +0 -4
  169. package/dist/lib/_virtual/html2canvas.js +0 -4
  170. package/dist/lib/_virtual/index.js +0 -4
  171. package/dist/lib/_virtual/index10.js +0 -4
  172. package/dist/lib/_virtual/index11.js +0 -4
  173. package/dist/lib/_virtual/index12.js +0 -4
  174. package/dist/lib/_virtual/index13.js +0 -4
  175. package/dist/lib/_virtual/index14.js +0 -4
  176. package/dist/lib/_virtual/index15.js +0 -4
  177. package/dist/lib/_virtual/index16.js +0 -4
  178. package/dist/lib/_virtual/index17.js +0 -4
  179. package/dist/lib/_virtual/index18.js +0 -4
  180. package/dist/lib/_virtual/index19.js +0 -4
  181. package/dist/lib/_virtual/index2.js +0 -4
  182. package/dist/lib/_virtual/index20.js +0 -4
  183. package/dist/lib/_virtual/index21.js +0 -4
  184. package/dist/lib/_virtual/index22.js +0 -4
  185. package/dist/lib/_virtual/index23.js +0 -4
  186. package/dist/lib/_virtual/index3.js +0 -4
  187. package/dist/lib/_virtual/index4.js +0 -5
  188. package/dist/lib/_virtual/index5.js +0 -4
  189. package/dist/lib/_virtual/index6.js +0 -4
  190. package/dist/lib/_virtual/index7.js +0 -6
  191. package/dist/lib/_virtual/index8.js +0 -6
  192. package/dist/lib/_virtual/index9.js +0 -4
  193. package/dist/lib/_virtual/inherits.js +0 -4
  194. package/dist/lib/_virtual/internal-metadata.js +0 -4
  195. package/dist/lib/_virtual/is-binary.js +0 -4
  196. package/dist/lib/_virtual/iterableToArray.js +0 -4
  197. package/dist/lib/_virtual/iterableToArrayLimit.js +0 -4
  198. package/dist/lib/_virtual/jquery.js +0 -4
  199. package/dist/lib/_virtual/jspdf.es.min.js +0 -5
  200. package/dist/lib/_virtual/linearizeEncodings.js +0 -4
  201. package/dist/lib/_virtual/make-built-in.js +0 -4
  202. package/dist/lib/_virtual/manager.js +0 -4
  203. package/dist/lib/_virtual/mask-pattern.js +0 -4
  204. package/dist/lib/_virtual/merge.js +0 -4
  205. package/dist/lib/_virtual/mode.js +0 -4
  206. package/dist/lib/_virtual/new-promise-capability.js +0 -4
  207. package/dist/lib/_virtual/nonIterableRest.js +0 -4
  208. package/dist/lib/_virtual/nonIterableSpread.js +0 -4
  209. package/dist/lib/_virtual/object-define-properties.js +0 -4
  210. package/dist/lib/_virtual/object-define-property.js +0 -4
  211. package/dist/lib/_virtual/object-get-own-property-descriptor.js +0 -4
  212. package/dist/lib/_virtual/object-get-own-property-names-external.js +0 -4
  213. package/dist/lib/_virtual/object-get-own-property-names.js +0 -4
  214. package/dist/lib/_virtual/object-get-own-property-symbols.js +0 -4
  215. package/dist/lib/_virtual/object-property-is-enumerable.js +0 -4
  216. package/dist/lib/_virtual/object.js +0 -4
  217. package/dist/lib/_virtual/on.js +0 -4
  218. package/dist/lib/_virtual/optionsFromStrings.js +0 -4
  219. package/dist/lib/_virtual/parseqs.js +0 -4
  220. package/dist/lib/_virtual/parseuri.js +0 -4
  221. package/dist/lib/_virtual/performance-now.js +0 -4
  222. package/dist/lib/_virtual/polling.js +0 -4
  223. package/dist/lib/_virtual/polynomial.js +0 -4
  224. package/dist/lib/_virtual/possibleConstructorReturn.js +0 -4
  225. package/dist/lib/_virtual/qrcode.js +0 -4
  226. package/dist/lib/_virtual/regeneratorRuntime.js +0 -4
  227. package/dist/lib/_virtual/regex.js +0 -4
  228. package/dist/lib/_virtual/segments.js +0 -4
  229. package/dist/lib/_virtual/setPrototypeOf.js +0 -4
  230. package/dist/lib/_virtual/shared-store.js +0 -4
  231. package/dist/lib/_virtual/shared.js +0 -4
  232. package/dist/lib/_virtual/slicedToArray.js +0 -4
  233. package/dist/lib/_virtual/socket.js +0 -4
  234. package/dist/lib/_virtual/socket2.js +0 -4
  235. package/dist/lib/_virtual/stackblur-es.js +0 -5
  236. package/dist/lib/_virtual/superPropBase.js +0 -4
  237. package/dist/lib/_virtual/svg-tag.js +0 -4
  238. package/dist/lib/_virtual/svg.js +0 -4
  239. package/dist/lib/_virtual/toConsumableArray.js +0 -4
  240. package/dist/lib/_virtual/toPrimitive.js +0 -4
  241. package/dist/lib/_virtual/toPropertyKey.js +0 -4
  242. package/dist/lib/_virtual/transport.js +0 -4
  243. package/dist/lib/_virtual/typeof.js +0 -4
  244. package/dist/lib/_virtual/unsupportedIterableToArray.js +0 -4
  245. package/dist/lib/_virtual/url.js +0 -4
  246. package/dist/lib/_virtual/util.js +0 -4
  247. package/dist/lib/_virtual/utils.js +0 -4
  248. package/dist/lib/_virtual/utils2.js +0 -4
  249. package/dist/lib/_virtual/version-check.js +0 -4
  250. package/dist/lib/_virtual/version.js +0 -4
  251. package/dist/lib/_virtual/vue-plugin-hiprint.js +0 -4
  252. package/dist/lib/_virtual/web.dom-collections.for-each.js +0 -4
  253. package/dist/lib/_virtual/web.dom-collections.iterator.js +0 -4
  254. package/dist/lib/_virtual/web.dom-collections.iterator2.js +0 -3
  255. package/dist/lib/_virtual/websocket-constructor.browser.js +0 -4
  256. package/dist/lib/_virtual/websocket.js +0 -4
  257. package/dist/lib/_virtual/webtransport.js +0 -4
  258. package/dist/lib/_virtual/xmlhttprequest.browser.js +0 -4
  259. package/dist/lib/_virtual/yeast.js +0 -4
  260. package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
  261. package/dist/lib/assets/chart-themes/theme1.js +0 -7
  262. package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
  263. package/dist/lib/assets/chart-themes/theme2.js +0 -7
  264. package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
  265. package/dist/lib/assets/chart-themes/theme3.js +0 -7
  266. package/dist/lib/components/runtime/index.d.ts +0 -4
  267. package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -18
  268. package/dist/lib/components/runtime/utils/api/api-util.js +0 -298
  269. package/dist/lib/components/runtime/utils/api/page-expose-util.d.ts +0 -1
  270. package/dist/lib/components/runtime/utils/api/page-expose-util.js +0 -206
  271. package/dist/lib/components/runtime/utils/assemblys-config.js +0 -295
  272. package/dist/lib/components/runtime/utils/barcode-util.d.ts +0 -8
  273. package/dist/lib/components/runtime/utils/barcode-util.js +0 -36
  274. package/dist/lib/components/runtime/utils/charts/chart-columnline-util.js +0 -279
  275. package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +0 -74
  276. package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +0 -118
  277. package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +0 -100
  278. package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +0 -74
  279. package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -51
  280. package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -302
  281. package/dist/lib/components/runtime/utils/common-util.d.ts +0 -17
  282. package/dist/lib/components/runtime/utils/common-util.js +0 -108
  283. package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
  284. package/dist/lib/components/runtime/utils/eventBus.js +0 -10
  285. package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -68
  286. package/dist/lib/components/runtime/utils/events/event-util.js +0 -616
  287. package/dist/lib/components/runtime/utils/events/print-label.d.ts +0 -5
  288. package/dist/lib/components/runtime/utils/events/print-label.js +0 -153
  289. package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -67
  290. package/dist/lib/components/runtime/utils/events/standard-event.js +0 -1817
  291. package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -12
  292. package/dist/lib/components/runtime/utils/events/validator-util.js +0 -416
  293. package/dist/lib/components/runtime/utils/form/date-shortcuts.d.ts +0 -7
  294. package/dist/lib/components/runtime/utils/form/date-shortcuts.js +0 -96
  295. package/dist/lib/components/runtime/utils/form/scan-util.js +0 -194
  296. package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
  297. package/dist/lib/components/runtime/utils/global-refs.js +0 -77
  298. package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -224
  299. package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +0 -9
  300. package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -134
  301. package/dist/lib/components/runtime/utils/page-helper-util.js +0 -668
  302. package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -40
  303. package/dist/lib/components/runtime/utils/page-init-util.js +0 -266
  304. package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
  305. package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
  306. package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
  307. package/dist/lib/components/runtime/utils/store-util.js +0 -17
  308. package/dist/lib/components/runtime/utils/store.d.ts +0 -2
  309. package/dist/lib/components/runtime/utils/store.js +0 -3
  310. package/dist/lib/components/runtime/utils/table-utils.js +0 -16
  311. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
  312. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
  313. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
  314. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
  315. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
  316. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -115
  317. package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +0 -3
  318. package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +0 -95
  319. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
  320. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -144
  321. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
  322. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
  323. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
  324. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
  325. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -127
  326. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
  327. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
  328. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -106
  329. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
  330. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -141
  331. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
  332. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -115
  333. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
  334. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -117
  335. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
  336. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -147
  337. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
  338. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
  339. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
  340. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
  341. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
  342. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
  343. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
  344. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
  345. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
  346. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
  347. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
  348. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
  349. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
  350. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
  351. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -70
  352. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
  353. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -50
  354. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
  355. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
  356. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
  357. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -109
  358. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
  359. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
  360. package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +0 -3
  361. package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +0 -183
  362. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -673
  363. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
  364. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -455
  365. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
  366. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
  367. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
  368. package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
  369. package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +0 -22
  370. package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +0 -3
  371. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
  372. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -120
  373. package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +0 -65
  374. package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +0 -3
  375. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
  376. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -149
  377. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
  378. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -72
  379. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
  380. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -42
  381. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
  382. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -135
  383. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
  384. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -67
  385. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
  386. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -159
  387. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
  388. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -130
  389. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
  390. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -78
  391. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
  392. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
  393. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
  394. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -160
  395. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
  396. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -236
  397. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
  398. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -204
  399. package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +0 -3
  400. package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +0 -41
  401. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
  402. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -65
  403. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
  404. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -66
  405. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
  406. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -71
  407. package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
  408. package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +0 -154
  409. package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +0 -3
  410. package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +0 -3
  411. package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +0 -39
  412. package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +0 -3
  413. package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +0 -39
  414. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
  415. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -59
  416. package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -36
  417. package/dist/lib/components/runtime/views/super-page-dialog.vue.js +0 -79
  418. package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +0 -3
  419. package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -99
  420. package/dist/lib/components/runtime/views/super-page.vue.js +0 -525
  421. package/dist/lib/components/runtime/views/super-page.vue2.js +0 -3
  422. package/dist/lib/favicon.ico +0 -0
  423. package/dist/lib/i18n/langs/cn.js +0 -53
  424. package/dist/lib/i18n/langs/en.js +0 -53
  425. package/dist/lib/index.d.ts +0 -13
  426. package/dist/lib/index.js +0 -22
@@ -1,4 +1,4 @@
1
- import { getBaseUrl, getRealRestApiPath, upperFirstCase, packageTemplateFiles, isArrayFn } from "../common-util.js";
1
+ import { getBaseUrl, getRealRestApiPath, upperFirstCase, packageTemplateFiles, deepCopy, isArrayFn } from "../common-util.js";
2
2
  import http from "agilebuilder-ui/src/utils/request";
3
3
  import { getI18n } from "agilebuilder-ui/src/utils/util";
4
4
  import { ElMessage, ElMessageBox } from "element-plus";
@@ -240,8 +240,8 @@ const standardEvents = {
240
240
  }
241
241
  };
242
242
  function exportFormReport(pageContext, configureObj, templateFile, isPdf) {
243
- const templateUUID = templateFile.templateUUID;
244
- const fileName = templateFile.templateShowPath;
243
+ const templateUUID = templateFile.templateUuid;
244
+ const fileName = templateFile.templateName;
245
245
  const systemCode = pageContext.systemCode;
246
246
  const logSetting = configureObj.props.logSetting;
247
247
  const isWorkflowForm = pageContext.workflowCode ? true : false;
@@ -292,9 +292,9 @@ function exportFormReportSuccess(fileName, backendUrl, param) {
292
292
  const path = baseUrl + "/dsc/commons/export-reports";
293
293
  axios.defaults.headers.common.Authorization = getToken();
294
294
  const request = axios.post(path, param, {
295
- headers: {
296
- "content-type": "application/x-www-form-urlencoded"
297
- },
295
+ // headers: {
296
+ // 'content-type': 'application/x-www-form-urlencoded'
297
+ // },
298
298
  responseType: "blob"
299
299
  });
300
300
  request.then((response) => {
@@ -445,7 +445,7 @@ function getCommonFormRequestParam(pageContext, configureObj, isUnControlVersion
445
445
  }
446
446
  return param;
447
447
  }
448
- function getSaveFormRequestWithRow(pageContext, configureObj, url, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo, row) {
448
+ function getSaveFormRequestWithRow(pageContext, configureObj, url, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo, row, otherParams) {
449
449
  const systemCode = pageContext.systemCode;
450
450
  const backendUrl = pageContext.backendUrl;
451
451
  const param = getCommonFormRequestParam(
@@ -457,6 +457,11 @@ function getSaveFormRequestWithRow(pageContext, configureObj, url, isUnControlVe
457
457
  null,
458
458
  row
459
459
  );
460
+ if (otherParams) {
461
+ if (otherParams.tableName) {
462
+ param.tableName = otherParams.tableName;
463
+ }
464
+ }
460
465
  return getSaveFormRequestByParam(systemCode, backendUrl, param, url, pageContext.entity.data);
461
466
  }
462
467
  function getSaveFormRequest(pageContext, configureObj, url, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo) {
@@ -467,6 +472,7 @@ function getSaveFormRequest(pageContext, configureObj, url, isUnControlVersion,
467
472
  isUnControlVersion,
468
473
  mainDefaultValueColumns,
469
474
  dynamicColumnInfo,
475
+ null,
470
476
  null
471
477
  );
472
478
  }
@@ -512,7 +518,6 @@ function dealAfterWithForm(pageContext, configureObj, data, successTip) {
512
518
  if (commonEntity.formNo) {
513
519
  pageContext.initFormNo = commonEntity.formNo;
514
520
  }
515
- debugger;
516
521
  const totalModel = { ...dataModel, ...pageContext.entity.page };
517
522
  afterSuccessOperateInForm(pageContext, configureObj, totalModel);
518
523
  }
@@ -577,7 +582,6 @@ function updateValuesWhenCloseDialog(parentPageContext, parentConfigureObj, sour
577
582
  });
578
583
  }
579
584
  function updateWithPageValue(sourceModel, valueMappings, parentPageContext) {
580
- debugger;
581
585
  const entity = parentPageContext.entity.data;
582
586
  if (sourceModel && sourceModel !== null && entity && entity !== null && valueMappings) {
583
587
  let sourceEntity = sourceModel;
@@ -624,10 +628,13 @@ function dealAfterWithList(pageContext, configureObj, row, successTip) {
624
628
  }
625
629
  function refreshFormOrListPage(pageContext, configureObj) {
626
630
  let successOperation = configureObj.props.base.successOperation;
627
- const buttonForPageType = getPageType(pageContext, configureObj, false);
631
+ console.log("refreshFormOrListPage22=====successOperation=", successOperation);
632
+ const buttonForPageType = getPageType(pageContext, configureObj);
633
+ console.log("refreshFormOrListPage22=====buttonForPageType=", buttonForPageType);
628
634
  if (buttonForPageType && buttonForPageType === "list" && !successOperation) {
629
635
  successOperation = "refresh";
630
636
  }
637
+ console.log("refreshFormOrListPage33=====successOperation=", successOperation);
631
638
  if (successOperation === "refresh") {
632
639
  if (buttonForPageType && buttonForPageType === "list") {
633
640
  const tableUuid = getTableUuid(pageContext, configureObj);
@@ -1310,7 +1317,7 @@ function getTransactTaskParam(params) {
1310
1317
  }
1311
1318
  function getAdditionalParamMap(pageContext) {
1312
1319
  if (pageContext.entity) {
1313
- let additionalParamMap = pageContext.entity.page;
1320
+ let additionalParamMap = deepCopy(pageContext.entity.page);
1314
1321
  if (!additionalParamMap) {
1315
1322
  additionalParamMap = {};
1316
1323
  }
@@ -1609,7 +1616,7 @@ function printLabel(params) {
1609
1616
  printLabelUtil.printLabel(params, templateUuid);
1610
1617
  }
1611
1618
  function isVisibleWorkflowButton(standardEventName, buttonInfo, completeTaskParam) {
1612
- let isVisible = true;
1619
+ let isVisible = false;
1613
1620
  if (standardEventName && buttonInfo) {
1614
1621
  if (standardEventName === "workflowSave") {
1615
1622
  isVisible = isVisibleWorkflowSave(buttonInfo);
@@ -169,11 +169,12 @@ function validateDataModelFunc(pageContext, configureObj, isEnableRequired) {
169
169
  const pageModel = pageContext.entity.page;
170
170
  const data = { ...pageModel, ...dataModel };
171
171
  const rules = pageContext.rules;
172
- if (isEnableRequired === void 0 || isEnableRequired === null) {
173
- isEnableRequired = configureObj.props.verification ? configureObj.props.verification.required : false;
174
- if (typeof isEnableRequired === "undefined") {
175
- isEnableRequired = false;
176
- }
172
+ const isEnableRequiredSetting = configureObj.props.base ? configureObj.props.base.isEnableRequired : null;
173
+ if (isEnableRequiredSetting !== void 0 && isEnableRequiredSetting !== null) {
174
+ isEnableRequired = isEnableRequiredSetting;
175
+ }
176
+ if (typeof isEnableRequired === "undefined" || isEnableRequired === null) {
177
+ isEnableRequired = false;
177
178
  }
178
179
  return validateDataModel(isEnableRequired, data, rules, pageContext);
179
180
  }
@@ -320,11 +321,11 @@ function packageCustomRules(orgCustomRules, orgRules) {
320
321
  }
321
322
  function validateSubTables(pageContext) {
322
323
  if (!pageContext) {
323
- return;
324
+ return true;
324
325
  }
325
326
  const tableUuidArr = pageContext.tableUuids;
326
327
  if (!tableUuidArr) {
327
- return;
328
+ return true;
328
329
  }
329
330
  for (let i = 0; i < tableUuidArr.length; i++) {
330
331
  const tableUuid = tableUuidArr[i];
@@ -91,6 +91,12 @@ export declare function setVariableValueWithProp(entity: any, prop: string, newV
91
91
  * @param variable
92
92
  */
93
93
  export declare function formatVariableValue(pageContext: PageContext, variable: string): any;
94
+ /**
95
+ * 获取参数名
96
+ * @param variable
97
+ * @returns
98
+ */
99
+ export declare function getParamNames(variable: string): any[] | RegExpMatchArray;
94
100
  /**
95
101
  * 根据类型格式化对象
96
102
  * @param value
@@ -356,6 +356,13 @@ function setVariableValue(entity, fields, newValue) {
356
356
  }
357
357
  }
358
358
  }
359
+ function setVariableValueWithProp(entity, prop, newValue) {
360
+ if (!entity || !prop) {
361
+ return;
362
+ }
363
+ const fields = prop.split(".");
364
+ setVariableValue(entity, fields, newValue);
365
+ }
359
366
  function formatVariableValue(pageContext2, variable) {
360
367
  if (!pageContext2 || variable == "" || variable == null || variable == void 0) {
361
368
  return variable;
@@ -377,7 +384,8 @@ function getParamNames(variable) {
377
384
  return [];
378
385
  }
379
386
  const reg = /\$\{[^\{|\}]+\}/g;
380
- return variable.match(reg);
387
+ const paramNames = variable.match(reg);
388
+ return paramNames ? paramNames : [];
381
389
  }
382
390
  function formatValueByType(value, formatType, formatInfo) {
383
391
  if (!formatType || value == "" || value == null || value == void 0) {
@@ -655,6 +663,7 @@ export {
655
663
  getComponentOptionConfigs,
656
664
  getFormPropName,
657
665
  getOptionDatasFromPage,
666
+ getParamNames,
658
667
  getValueFromSource,
659
668
  getValueFromVariable,
660
669
  getVariableValue,
@@ -663,6 +672,7 @@ export {
663
672
  queryOptions,
664
673
  setValueForVariableName,
665
674
  setVariableValue,
675
+ setVariableValueWithProp,
666
676
  updateChartDatasources,
667
677
  updateOptionDatasources
668
678
  };
@@ -170,7 +170,7 @@ function getFormModelFields(pageContext, formItemConfigure, prop) {
170
170
  return fields;
171
171
  }
172
172
  function getPermissionCodes(configure, pageContext) {
173
- if (!pageContext || !configure) {
173
+ if (!pageContext || !configure || pageContext.isTest) {
174
174
  return "true";
175
175
  }
176
176
  const codes = [];
@@ -239,10 +239,12 @@ function packageFormRules(pageContext, configure) {
239
239
  if (!pageContext.rules) {
240
240
  pageContext.rules = {};
241
241
  }
242
- if (!pageContext.rules[propName]) {
243
- pageContext.rules[propName] = [];
242
+ if (configure.props.rules && configure.props.rules.length > 0) {
243
+ if (!pageContext.rules[propName]) {
244
+ pageContext.rules[propName] = [];
245
+ }
246
+ pageContext.rules[propName] = configure.props.rules;
244
247
  }
245
- pageContext.rules[propName] = configure.props.rules;
246
248
  if (configure.name !== "button-detail" && pageContext.fieldPermissionMap) {
247
249
  const propEditPermission = pageContext.fieldPermissionMap.get(propName);
248
250
  if (propEditPermission) {
@@ -416,7 +416,7 @@ const standardFuncUrlMap = {
416
416
  label: "导出",
417
417
  functions: [
418
418
  {
419
- path: "/commons/export-list-data$POST /commons/export-reports$POST"
419
+ path: "/commons/export-list-data$POST"
420
420
  }
421
421
  ]
422
422
  },
@@ -498,12 +498,12 @@ function getFunctionInfo(simpleCode) {
498
498
  }
499
499
  let funcInfo = functionMap[simpleCode];
500
500
  if (funcInfo == void 0) {
501
- for (let eventName in standardFuncUrlMap) {
501
+ for (const eventName in standardFuncUrlMap) {
502
502
  const functions = standardFuncUrlMap[eventName].functions;
503
503
  if (!functions) {
504
504
  continue;
505
505
  }
506
- for (let f of functions) {
506
+ for (const f of functions) {
507
507
  const tempCode = f.code ? f.code : eventName;
508
508
  if (simpleCode === tempCode) {
509
509
  funcInfo = f;
@@ -1,7 +1,8 @@
1
1
  import { defineComponent, ref, onMounted, watch, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, withDirectives, createVNode, vShow } from "vue";
2
- import { getCustomTheme, initChartOption, monitorChartClickToVariable } from "../../../../utils/charts/chart-util.js";
2
+ import { getCustomTheme, initChartOption, monitorChartClickToVariable, clearChartSelected } from "../../../../utils/charts/chart-util.js";
3
3
  import { getChartDatasFromPage, updateChartDatasources, monitorFieldChange } from "../../../../utils/page-helper-util.js";
4
4
  import { updateChartOption } from "../../../../utils/charts/chart-columnline-util.js";
5
+ import { doClickJumpPageEvent } from "../../../../utils/events/event-util.js";
5
6
  import _sfc_main$1 from "../common/common-chart-header.vue.js";
6
7
  import { use } from "echarts/core";
7
8
  import { CanvasRenderer } from "echarts/renderers";
@@ -32,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
33
  const headerRef = ref(null);
33
34
  const enableDrill = props.configure.props ? props.configure.props.enableDrill : null;
34
35
  const drillEndTrigger = props.configure.props ? props.configure.props.drillEndTrigger : null;
35
- const selGroupVariable = props.configure.props ? props.configure.props.selGroupVariable : null;
36
+ const linkPage = props.configure.props ? props.configure.props.linkPage : null;
36
37
  const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
37
38
  const runtimeStyle = runtimeInfo.style;
38
39
  const runtimeClass = runtimeInfo.class;
@@ -47,20 +48,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
47
48
  if (resultData) {
48
49
  updateChartDatas(resultData);
49
50
  }
50
- if (enableDrill && chartRef.value) {
51
+ if (chartRef.value && (enableDrill || linkPage && linkPage.jumpPageUrl)) {
51
52
  chartRef.value.chart.on("click", function(params) {
52
- if (headerRef.value && headerRef.value.drill) {
53
- headerRef.value.drill(params, props.configure.cacheDatas);
53
+ if (enableDrill) {
54
+ if (headerRef.value && headerRef.value.drill) {
55
+ headerRef.value.drill(params, props.configure.cacheDatas);
56
+ }
57
+ } else {
58
+ clickToLink();
54
59
  }
55
60
  });
56
61
  }
57
- if (!enableDrill && selGroupVariable && chartRef.value) {
58
- monitorChartClickToVariable(
59
- props.pageContext,
60
- props.configure,
61
- chartRef.value.chart,
62
- selGroupVariable
63
- );
62
+ if (!enableDrill && props.configure.clickSet && chartRef.value) {
63
+ monitorChartClickToVariable(props.pageContext, props.configure, chartRef.value.chart);
64
64
  }
65
65
  });
66
66
  function onDrillEnd(params) {
@@ -68,8 +68,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
68
68
  if (headerRef.value && headerRef.value.closeDrill) {
69
69
  headerRef.value.closeDrill(0);
70
70
  }
71
+ } else if (drillEndTrigger === "clickEvent") {
72
+ clickToLink();
71
73
  }
72
74
  }
75
+ function clickToLink() {
76
+ if (!linkPage || !linkPage.jumpPageUrl) {
77
+ return;
78
+ }
79
+ doClickJumpPageEvent(props.pageContext, props.configure, void 0);
80
+ }
73
81
  let hisGroupValue = headerInfo.groupValue;
74
82
  watch(headerInfo, () => {
75
83
  if (hisGroupValue == headerInfo.groupValue) {
@@ -84,6 +92,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
84
92
  return;
85
93
  }
86
94
  dataConfig.services[0].groupValue = headerInfo.groupValue;
95
+ dataConfig.isRefresh = true;
87
96
  updateChartDatasources(props.pageContext, [dataConfig], headerInfo.drillParams);
88
97
  }
89
98
  const monitorFields = headerInfo.monitorFields;
@@ -102,8 +111,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
102
111
  return;
103
112
  }
104
113
  resultData.hasRender = true;
114
+ if (!dataConfig.isRefresh) {
115
+ hisGroupValue = resultData.groupValue;
116
+ if (hisGroupValue && headerInfo.groupComponent !== "checkbox") {
117
+ hisGroupValue = hisGroupValue.join(",");
118
+ }
119
+ headerInfo.groupValue = hisGroupValue;
120
+ }
121
+ if (!dataConfig.isRefresh || !enableDrill) {
122
+ clearChartSelected(props.pageContext, props.configure, chartRef.value.chart);
123
+ }
124
+ dataConfig.isRefresh = false;
105
125
  updateChartOption(props.pageContext, props.configure, chartOption, resultData);
106
- console.log("chartOption", chartOption);
107
126
  }
108
127
  __expose({
109
128
  updateChartDatas
@@ -119,8 +138,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
119
138
  ref_key: "headerRef",
120
139
  ref: headerRef,
121
140
  headerInfo: unref(headerInfo),
141
+ configure: _ctx.configure,
142
+ pageContext: _ctx.pageContext,
122
143
  onDrillEnd
123
- }, null, 8, ["headerInfo"]), [
144
+ }, null, 8, ["headerInfo", "configure", "pageContext"]), [
124
145
  [vShow, unref(headerInfo).showHeader]
125
146
  ]),
126
147
  createVNode(unref(VChart), {
@@ -1,6 +1,7 @@
1
1
  import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, withDirectives, normalizeStyle, toDisplayString, vShow, createBlock, createCommentVNode } from "vue";
2
2
  import _sfc_main$2 from "./common-chart-header-group.vue.js";
3
3
  import _sfc_main$1 from "./common-chart-header-breadcrumb.vue.js";
4
+ import { setVariableValueWithProp, getValueFromSource, setValueForVariableName } from "../../../../utils/page-helper-util.js";
4
5
  const _hoisted_1 = { class: "amb-widget-chart-header" };
5
6
  const _hoisted_2 = { class: "amb-widget-chart-header-item" };
6
7
  const _hoisted_3 = { class: "amb-widget-chart-header-item amb-widget-chart-header-center" };
@@ -11,6 +12,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
12
  headerInfo: {
12
13
  type: Object,
13
14
  required: true
15
+ },
16
+ configure: {
17
+ type: Object,
18
+ required: true
19
+ },
20
+ pageContext: {
21
+ type: Object,
22
+ required: true
14
23
  }
15
24
  },
16
25
  emits: ["drill-end"],
@@ -35,16 +44,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
44
  function drill(params, datas) {
36
45
  const currentIndex = props.headerInfo.drillOptions.length;
37
46
  if (currentIndex + 1 >= props.headerInfo.options.length) {
47
+ const data2 = datas && params.dataIndex < datas.length ? datas[params.dataIndex] : void 0;
48
+ updateClickVariables(data2);
38
49
  console.log("钻取到最底层了!");
39
50
  $emits("drill-end", params);
40
51
  return;
41
52
  }
42
53
  console.log("props.headerInfo.options", currentIndex, props.headerInfo.options);
43
54
  const targetGroup = props.headerInfo.options[currentIndex];
55
+ const data = datas && params.dataIndex < datas.length ? datas[params.dataIndex] : null;
44
56
  const drillOption = {
45
57
  fieldName: targetGroup.target ? targetGroup.target.replace(".", "_") : "",
58
+ rawFieldName: targetGroup.target ? targetGroup.target : "",
46
59
  label: params.name,
47
- value: params.name
60
+ value: params.name,
61
+ data
48
62
  };
49
63
  props.headerInfo.drillOptions.push(drillOption);
50
64
  toDrillLevel(currentIndex + 1);
@@ -58,6 +72,39 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
72
  }
59
73
  props.headerInfo.drillParams = drillParams;
60
74
  props.headerInfo.groupValue = props.headerInfo.options[drillIndex].value;
75
+ updateClickVariables();
76
+ }
77
+ function updateClickVariables(endData) {
78
+ const clickSet = props.configure.clickSet;
79
+ if (!clickSet || !clickSet.variables || clickSet.variables.length === 0) {
80
+ return;
81
+ }
82
+ const data = {};
83
+ if (endData) {
84
+ Object.assign(data, endData);
85
+ }
86
+ const drillOptions = props.headerInfo.drillOptions;
87
+ if (drillOptions.length > 0) {
88
+ if (!endData) {
89
+ const endOption = drillOptions[drillOptions.length - 1];
90
+ if (endOption.data) {
91
+ Object.assign(data, endOption.data);
92
+ }
93
+ }
94
+ for (let o of drillOptions) {
95
+ if (!o.rawFieldName) {
96
+ continue;
97
+ }
98
+ setVariableValueWithProp(data, o.rawFieldName, o.value);
99
+ }
100
+ }
101
+ for (let v of clickSet.variables) {
102
+ if (!v.fieldName || !v.variable) {
103
+ continue;
104
+ }
105
+ const value = getValueFromSource(data, v.fieldName, void 0);
106
+ setValueForVariableName(props.pageContext.entity, v.variable, value);
107
+ }
61
108
  }
62
109
  __expose({
63
110
  drill,
@@ -1,6 +1,7 @@
1
1
  import { defineComponent, ref, onMounted, watch, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, withDirectives, createVNode, vShow } from "vue";
2
- import { getCustomTheme, initChartOption, monitorChartClickToVariable } from "../../../../utils/charts/chart-util.js";
2
+ import { getCustomTheme, initChartOption, monitorChartClickToVariable, clearChartSelected } from "../../../../utils/charts/chart-util.js";
3
3
  import { updateChartOption } from "../../../../utils/charts/chart-pie-util.js";
4
+ import { doClickJumpPageEvent } from "../../../../utils/events/event-util.js";
4
5
  import { getChartDatasFromPage, updateChartDatasources, monitorFieldChange } from "../../../../utils/page-helper-util.js";
5
6
  import _sfc_main$1 from "../common/common-chart-header.vue.js";
6
7
  import { use } from "echarts/core";
@@ -30,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
31
  const headerRef = ref(null);
31
32
  const enableDrill = props.configure.props ? props.configure.props.enableDrill : null;
32
33
  const drillEndTrigger = props.configure.props ? props.configure.props.drillEndTrigger : null;
33
- const selGroupVariable = props.configure.props ? props.configure.props.selGroupVariable : null;
34
+ const linkPage = props.configure.props ? props.configure.props.linkPage : null;
34
35
  const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
35
36
  const runtimeStyle = runtimeInfo.style;
36
37
  const runtimeClass = runtimeInfo.class;
@@ -45,20 +46,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
46
  if (resultData) {
46
47
  updateChartDatas(resultData);
47
48
  }
48
- if (enableDrill && chartRef.value) {
49
+ if (chartRef.value && (enableDrill || linkPage && linkPage.jumpPageUrl)) {
49
50
  chartRef.value.chart.on("click", function(params) {
50
- if (headerRef.value && headerRef.value.drill) {
51
- headerRef.value.drill(params, props.configure.cacheDatas);
51
+ if (enableDrill) {
52
+ if (headerRef.value && headerRef.value.drill) {
53
+ headerRef.value.drill(params, props.configure.cacheDatas);
54
+ }
55
+ } else {
56
+ clickToLink();
52
57
  }
53
58
  });
54
59
  }
55
- if (!enableDrill && selGroupVariable && chartRef.value) {
56
- monitorChartClickToVariable(
57
- props.pageContext,
58
- props.configure,
59
- chartRef.value.chart,
60
- selGroupVariable
61
- );
60
+ if (!enableDrill && props.configure.clickSet && chartRef.value) {
61
+ monitorChartClickToVariable(props.pageContext, props.configure, chartRef.value.chart);
62
62
  }
63
63
  });
64
64
  function onDrillEnd(params) {
@@ -66,8 +66,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
66
66
  if (headerRef.value && headerRef.value.closeDrill) {
67
67
  headerRef.value.closeDrill(0);
68
68
  }
69
+ } else if (drillEndTrigger == "clickEvent") {
70
+ clickToLink();
69
71
  }
70
72
  }
73
+ function clickToLink() {
74
+ if (!linkPage || !linkPage.jumpPageUrl) {
75
+ return;
76
+ }
77
+ doClickJumpPageEvent(props.pageContext, props.configure, void 0);
78
+ }
71
79
  let hisGroupValue = headerInfo.groupValue;
72
80
  watch(headerInfo, () => {
73
81
  if (hisGroupValue == headerInfo.groupValue) {
@@ -82,6 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
82
90
  return;
83
91
  }
84
92
  dataConfig.services[0].groupValue = headerInfo.groupValue;
93
+ dataConfig.isRefresh = true;
85
94
  updateChartDatasources(props.pageContext, [dataConfig], headerInfo.drillParams);
86
95
  }
87
96
  const monitorFields = headerInfo.monitorFields;
@@ -100,9 +109,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
100
109
  return;
101
110
  }
102
111
  resultData.hasRender = true;
103
- console.log("pie resultData", resultData);
112
+ if (!dataConfig.isRefresh) {
113
+ hisGroupValue = resultData.groupValue;
114
+ if (hisGroupValue && headerInfo.groupComponent !== "checkbox") {
115
+ hisGroupValue = hisGroupValue.join(",");
116
+ }
117
+ headerInfo.groupValue = hisGroupValue;
118
+ }
119
+ if (!dataConfig.isRefresh || !enableDrill) {
120
+ clearChartSelected(props.pageContext, props.configure, chartRef.value.chart);
121
+ }
122
+ dataConfig.isRefresh = false;
104
123
  updateChartOption(props.pageContext, props.configure, chartOption, resultData);
105
- console.log("chartOption", chartOption);
124
+ console.log("chartOption--pie", chartOption);
106
125
  }
107
126
  __expose({
108
127
  updateChartDatas
@@ -24,23 +24,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  onMounted(() => {
25
25
  if (configureBase.templateFiles && configureBase.templateFiles.length > 0) {
26
26
  templateFiles.value = packageTemplateFiles(configureBase.templateFiles);
27
- } else if (configureBase.templateUUID && configureBase.templateShowPath) {
27
+ } else if (configureBase.templateUuid && configureBase.templateName) {
28
28
  templateFiles.value.push({
29
- templateUUID: configureBase.templateUUID,
30
- templateShowPath: configureBase.templateShowPath
29
+ templateUuid: configureBase.templateUuid,
30
+ templateName: configureBase.templateName
31
31
  });
32
32
  }
33
33
  templateFiles.value.forEach((item) => {
34
- if (item && item.templateShowPath) {
35
- item.templateShowPath = formatTemplateShowPath(item.templateShowPath);
34
+ if (item && item.templateName) {
35
+ item.templateName = formatTemplateShowName(item.templateName);
36
36
  }
37
37
  });
38
38
  });
39
- function getFileds(templateShowPath) {
40
- console.log("templateShowPath", templateShowPath);
39
+ function getFileds(templateShowName) {
40
+ console.log("templateShowName", templateShowName);
41
41
  let field;
42
42
  let formatStr;
43
- let newValue = templateShowPath;
43
+ let newValue = templateShowName;
44
44
  const prefixIndex = newValue.indexOf(prefix);
45
45
  const suffixIndex = newValue.indexOf(suffix);
46
46
  console.log("prefixIndex", prefixIndex);
@@ -50,14 +50,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
50
50
  newValue = newValue.substring(0, suffixIndex) + newValue.substring(suffixIndex + suffix.length);
51
51
  console.log("non replacement value === newValue", newValue);
52
52
  } else {
53
- field = newValue.substring(
54
- prefixIndex + prefix.length,
55
- suffixIndex
56
- );
57
- formatStr = newValue.substring(
58
- prefixIndex,
59
- suffixIndex + suffix.length
60
- );
53
+ field = newValue.substring(prefixIndex + prefix.length, suffixIndex);
54
+ formatStr = newValue.substring(prefixIndex, suffixIndex + suffix.length);
61
55
  console.log("field", field);
62
56
  console.log("formatStr", formatStr);
63
57
  fields.value.push(field);
@@ -69,18 +63,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
69
63
  }
70
64
  return fields.value;
71
65
  }
72
- function formatTemplateShowPath(templateShowPath) {
73
- const fields2 = getFileds(templateShowPath);
66
+ function formatTemplateShowName(templateShowName) {
67
+ const fields2 = getFileds(templateShowName);
74
68
  console.log("fields", fields2);
75
69
  fields2.forEach((field) => {
76
70
  const formatStr = prefix + field + suffix;
77
71
  let formatValue;
78
- if (templateShowPath.indexOf(formatStr) !== -1 && dataModel.hasOwnProperty(field)) {
72
+ if (templateShowName.indexOf(formatStr) !== -1 && dataModel.hasOwnProperty(field)) {
79
73
  formatValue = dataModel[field] ? dataModel[field] : "";
80
- templateShowPath = templateShowPath.replace(formatStr, formatValue);
74
+ templateShowName = templateShowName.replace(formatStr, formatValue);
81
75
  }
82
76
  });
83
- return templateShowPath;
77
+ return templateShowName;
84
78
  }
85
79
  function exportForm(row) {
86
80
  emits("export", row);
@@ -111,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
111
105
  prop: "templateShowPath"
112
106
  }, {
113
107
  default: withCtx((scope) => [
114
- createTextVNode(toDisplayString(scope.row.templateShowPath), 1)
108
+ createTextVNode(toDisplayString(scope.row.templateName), 1)
115
109
  ]),
116
110
  _: 1
117
111
  }, 8, ["label"]),
@@ -16,10 +16,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  setup(__props, { expose: __expose }) {
17
17
  const props = __props;
18
18
  const pageContext = props.pageContext;
19
- const configure = props.configure;
20
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
21
- const runtimeStyle = runtimeInfo.style;
22
- const runtimeClass = runtimeInfo.class;
19
+ let configure = props.configure;
20
+ const runtimeInfo = ref({});
21
+ if (pageContext.isTest) {
22
+ runtimeInfo.value = props.configure.runtime ? props.configure.runtime : {};
23
+ } else {
24
+ if (pageContext.tableRuntimes && pageContext.tableRuntimes[configure.uuid]) {
25
+ configure = JSON.parse(pageContext.tableRuntimes[configure.uuid].configure);
26
+ runtimeInfo.value = configure.runtime ? configure.runtime : {};
27
+ }
28
+ }
29
+ const runtimeStyle = runtimeInfo.value.style;
30
+ const runtimeClass = runtimeInfo.value.class;
23
31
  const systemCode = pageContext.systemCode;
24
32
  const backendUrl = pageContext.backendUrl;
25
33
  const tableName = configure.props && configure.props.dataOrigin && configure.props.dataOrigin.tableName;
@@ -285,11 +293,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
285
293
  }
286
294
  return onClick;
287
295
  }
288
- function beforeSaveRow({
289
- row,
290
- columns,
291
- additionalParamMap
292
- }) {
296
+ function beforeSaveRow({ row, columns, additionalParamMap }) {
293
297
  const buttonConfigure = operationButtonObj.value["lineEditSave"];
294
298
  const tableConfigure = configure;
295
299
  buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
@@ -311,6 +315,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
311
315
  const tableConfigure = configure;
312
316
  buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
313
317
  return new Promise((resolve, reject) => {
318
+ const otherParams = { tableName: tableConfigure.props.dataOrigin.tableName };
314
319
  getSaveFormRequestWithRow(
315
320
  pageContext,
316
321
  buttonConfigure,
@@ -318,7 +323,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
318
323
  false,
319
324
  mainDefaultValueColumns,
320
325
  dynamicColumnInfo,
321
- row
326
+ row,
327
+ otherParams
322
328
  ).then((commonEntity) => {
323
329
  if (commonEntity) {
324
330
  resolve(commonEntity.entity);