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.
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +77 -39
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +54 -8
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +39 -7
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +44 -10
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +28 -2
- package/dist/es/components/runtime/utils/charts/chart-util.js +242 -46
- package/dist/es/components/runtime/utils/common-util.js +5 -5
- package/dist/es/components/runtime/utils/events/event-util.d.ts +15 -0
- package/dist/es/components/runtime/utils/events/event-util.js +71 -47
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +3 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +19 -12
- package/dist/es/components/runtime/utils/events/validator-util.js +8 -7
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +6 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +11 -1
- package/dist/es/components/runtime/utils/page-init-util.js +6 -4
- package/dist/es/components/runtime/utils/page-permission-util.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +35 -14
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +48 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +33 -14
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +16 -22
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +16 -10
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +38 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +57 -40
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +14 -5
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +15 -6
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +15 -11
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +30 -20
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +14 -5
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +17 -8
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +23 -9
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +5 -4
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +5 -4
- package/dist/es/components/runtime/views/super-page.vue.js +36 -37
- package/dist/es/i18n/langs/cn.js +2 -1
- package/dist/es/i18n/langs/en.js +2 -1
- package/package.json +2 -2
- package/dist/lib/_virtual/AttributeMap.js +0 -4
- package/dist/lib/_virtual/Barcode.js +0 -4
- package/dist/lib/_virtual/CODE128.js +0 -4
- package/dist/lib/_virtual/CODE128A.js +0 -4
- package/dist/lib/_virtual/CODE128B.js +0 -4
- package/dist/lib/_virtual/CODE128C.js +0 -4
- package/dist/lib/_virtual/CODE128_AUTO.js +0 -4
- package/dist/lib/_virtual/Delta.js +0 -4
- package/dist/lib/_virtual/EAN.js +0 -4
- package/dist/lib/_virtual/EAN13.js +0 -4
- package/dist/lib/_virtual/EAN2.js +0 -4
- package/dist/lib/_virtual/EAN5.js +0 -4
- package/dist/lib/_virtual/EAN8.js +0 -4
- package/dist/lib/_virtual/ErrorHandler.js +0 -4
- package/dist/lib/_virtual/ITF.js +0 -4
- package/dist/lib/_virtual/ITF14.js +0 -4
- package/dist/lib/_virtual/JsBarcode.js +0 -6
- package/dist/lib/_virtual/MSI.js +0 -4
- package/dist/lib/_virtual/MSI10.js +0 -4
- package/dist/lib/_virtual/MSI1010.js +0 -4
- package/dist/lib/_virtual/MSI11.js +0 -4
- package/dist/lib/_virtual/MSI1110.js +0 -4
- package/dist/lib/_virtual/Op.js +0 -4
- package/dist/lib/_virtual/OpIterator.js +0 -4
- package/dist/lib/_virtual/SVGPathData.js +0 -4
- package/dist/lib/_virtual/SVGPathData2.js +0 -5
- package/dist/lib/_virtual/UPC.js +0 -4
- package/dist/lib/_virtual/UPCE.js +0 -4
- package/dist/lib/_virtual/__vite-browser-external.js +0 -3
- package/dist/lib/_virtual/_commonjsHelpers.js +0 -35
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/lib/_virtual/alignment-pattern.js +0 -4
- package/dist/lib/_virtual/arrayLikeToArray.js +0 -4
- package/dist/lib/_virtual/arrayWithHoles.js +0 -4
- package/dist/lib/_virtual/arrayWithoutHoles.js +0 -4
- package/dist/lib/_virtual/assertThisInitialized.js +0 -4
- package/dist/lib/_virtual/asyncToGenerator.js +0 -4
- package/dist/lib/_virtual/asyncToGenerator2.js +0 -6
- package/dist/lib/_virtual/auto.js +0 -4
- package/dist/lib/_virtual/backo2.js +0 -4
- package/dist/lib/_virtual/base64-arraybuffer.js +0 -4
- package/dist/lib/_virtual/binary.js +0 -4
- package/dist/lib/_virtual/browser.js +0 -4
- package/dist/lib/_virtual/browser2.js +0 -4
- package/dist/lib/_virtual/canvas.js +0 -4
- package/dist/lib/_virtual/canvas2.js +0 -4
- package/dist/lib/_virtual/checksums.js +0 -4
- package/dist/lib/_virtual/classCallCheck.js +0 -4
- package/dist/lib/_virtual/commons.js +0 -4
- package/dist/lib/_virtual/constants.js +0 -4
- package/dist/lib/_virtual/constants2.js +0 -4
- package/dist/lib/_virtual/constants3.js +0 -4
- package/dist/lib/_virtual/createClass.js +0 -4
- package/dist/lib/_virtual/dayjs.min.js +0 -4
- package/dist/lib/_virtual/decodePacket.browser.js +0 -4
- package/dist/lib/_virtual/defaults.js +0 -4
- package/dist/lib/_virtual/defineProperty.js +0 -4
- package/dist/lib/_virtual/defineProperty2.js +0 -6
- package/dist/lib/_virtual/dijkstra.js +0 -4
- package/dist/lib/_virtual/encodePacket.browser.js +0 -4
- package/dist/lib/_virtual/encoder.js +0 -4
- package/dist/lib/_virtual/error-correction-code.js +0 -4
- package/dist/lib/_virtual/error-correction-level.js +0 -4
- package/dist/lib/_virtual/es.array.concat.js +0 -4
- package/dist/lib/_virtual/es.array.every.js +0 -4
- package/dist/lib/_virtual/es.array.fill.js +0 -4
- package/dist/lib/_virtual/es.array.for-each.js +0 -4
- package/dist/lib/_virtual/es.array.from.js +0 -4
- package/dist/lib/_virtual/es.array.includes.js +0 -4
- package/dist/lib/_virtual/es.array.index-of.js +0 -4
- package/dist/lib/_virtual/es.array.index-of2.js +0 -3
- package/dist/lib/_virtual/es.array.iterator.js +0 -3
- package/dist/lib/_virtual/es.array.join.js +0 -4
- package/dist/lib/_virtual/es.array.map.js +0 -4
- package/dist/lib/_virtual/es.array.reduce.js +0 -4
- package/dist/lib/_virtual/es.array.reduce2.js +0 -3
- package/dist/lib/_virtual/es.array.reverse.js +0 -4
- package/dist/lib/_virtual/es.array.reverse2.js +0 -3
- package/dist/lib/_virtual/es.array.some.js +0 -4
- package/dist/lib/_virtual/es.function.name.js +0 -4
- package/dist/lib/_virtual/es.map.constructor.js +0 -4
- package/dist/lib/_virtual/es.map.js +0 -4
- package/dist/lib/_virtual/es.number.constructor.js +0 -4
- package/dist/lib/_virtual/es.object.to-string.js +0 -4
- package/dist/lib/_virtual/es.parse-float.js +0 -4
- package/dist/lib/_virtual/es.promise.all.js +0 -4
- package/dist/lib/_virtual/es.promise.catch.js +0 -4
- package/dist/lib/_virtual/es.promise.constructor.js +0 -4
- package/dist/lib/_virtual/es.promise.js +0 -4
- package/dist/lib/_virtual/es.promise.race.js +0 -4
- package/dist/lib/_virtual/es.promise.reject.js +0 -4
- package/dist/lib/_virtual/es.promise.resolve.js +0 -4
- package/dist/lib/_virtual/es.promise2.js +0 -3
- package/dist/lib/_virtual/es.reflect.apply.js +0 -4
- package/dist/lib/_virtual/es.reflect.delete-property.js +0 -4
- package/dist/lib/_virtual/es.reflect.get-prototype-of.js +0 -4
- package/dist/lib/_virtual/es.regexp.exec.js +0 -4
- package/dist/lib/_virtual/es.regexp.to-string.js +0 -4
- package/dist/lib/_virtual/es.regexp.to-string2.js +0 -3
- package/dist/lib/_virtual/es.string.ends-with.js +0 -4
- package/dist/lib/_virtual/es.string.ends-with2.js +0 -3
- package/dist/lib/_virtual/es.string.includes.js +0 -4
- package/dist/lib/_virtual/es.string.includes2.js +0 -3
- package/dist/lib/_virtual/es.string.iterator.js +0 -4
- package/dist/lib/_virtual/es.string.match.js +0 -4
- package/dist/lib/_virtual/es.string.match2.js +0 -3
- package/dist/lib/_virtual/es.string.replace.js +0 -4
- package/dist/lib/_virtual/es.string.replace2.js +0 -3
- package/dist/lib/_virtual/es.string.split.js +0 -4
- package/dist/lib/_virtual/es.string.split2.js +0 -3
- package/dist/lib/_virtual/es.string.starts-with.js +0 -4
- package/dist/lib/_virtual/es.string.starts-with2.js +0 -3
- package/dist/lib/_virtual/es.string.trim.js +0 -4
- package/dist/lib/_virtual/es.string.trim2.js +0 -3
- package/dist/lib/_virtual/exceptions.js +0 -4
- package/dist/lib/_virtual/finder-pattern.js +0 -4
- package/dist/lib/_virtual/fixOptions.js +0 -4
- package/dist/lib/_virtual/format-info.js +0 -4
- package/dist/lib/_virtual/galois-field.js +0 -4
- package/dist/lib/_virtual/get.js +0 -4
- package/dist/lib/_virtual/getOptionsFromElement.js +0 -4
- package/dist/lib/_virtual/getPrototypeOf.js +0 -4
- package/dist/lib/_virtual/getRenderProperties.js +0 -4
- package/dist/lib/_virtual/globalThis.browser.js +0 -4
- package/dist/lib/_virtual/has-cors.js +0 -4
- package/dist/lib/_virtual/html2canvas.js +0 -4
- package/dist/lib/_virtual/index.js +0 -4
- package/dist/lib/_virtual/index10.js +0 -4
- package/dist/lib/_virtual/index11.js +0 -4
- package/dist/lib/_virtual/index12.js +0 -4
- package/dist/lib/_virtual/index13.js +0 -4
- package/dist/lib/_virtual/index14.js +0 -4
- package/dist/lib/_virtual/index15.js +0 -4
- package/dist/lib/_virtual/index16.js +0 -4
- package/dist/lib/_virtual/index17.js +0 -4
- package/dist/lib/_virtual/index18.js +0 -4
- package/dist/lib/_virtual/index19.js +0 -4
- package/dist/lib/_virtual/index2.js +0 -4
- package/dist/lib/_virtual/index20.js +0 -4
- package/dist/lib/_virtual/index21.js +0 -4
- package/dist/lib/_virtual/index22.js +0 -4
- package/dist/lib/_virtual/index23.js +0 -4
- package/dist/lib/_virtual/index3.js +0 -4
- package/dist/lib/_virtual/index4.js +0 -5
- package/dist/lib/_virtual/index5.js +0 -4
- package/dist/lib/_virtual/index6.js +0 -4
- package/dist/lib/_virtual/index7.js +0 -6
- package/dist/lib/_virtual/index8.js +0 -6
- package/dist/lib/_virtual/index9.js +0 -4
- package/dist/lib/_virtual/inherits.js +0 -4
- package/dist/lib/_virtual/internal-metadata.js +0 -4
- package/dist/lib/_virtual/is-binary.js +0 -4
- package/dist/lib/_virtual/iterableToArray.js +0 -4
- package/dist/lib/_virtual/iterableToArrayLimit.js +0 -4
- package/dist/lib/_virtual/jquery.js +0 -4
- package/dist/lib/_virtual/jspdf.es.min.js +0 -5
- package/dist/lib/_virtual/linearizeEncodings.js +0 -4
- package/dist/lib/_virtual/make-built-in.js +0 -4
- package/dist/lib/_virtual/manager.js +0 -4
- package/dist/lib/_virtual/mask-pattern.js +0 -4
- package/dist/lib/_virtual/merge.js +0 -4
- package/dist/lib/_virtual/mode.js +0 -4
- package/dist/lib/_virtual/new-promise-capability.js +0 -4
- package/dist/lib/_virtual/nonIterableRest.js +0 -4
- package/dist/lib/_virtual/nonIterableSpread.js +0 -4
- package/dist/lib/_virtual/object-define-properties.js +0 -4
- package/dist/lib/_virtual/object-define-property.js +0 -4
- package/dist/lib/_virtual/object-get-own-property-descriptor.js +0 -4
- package/dist/lib/_virtual/object-get-own-property-names-external.js +0 -4
- package/dist/lib/_virtual/object-get-own-property-names.js +0 -4
- package/dist/lib/_virtual/object-get-own-property-symbols.js +0 -4
- package/dist/lib/_virtual/object-property-is-enumerable.js +0 -4
- package/dist/lib/_virtual/object.js +0 -4
- package/dist/lib/_virtual/on.js +0 -4
- package/dist/lib/_virtual/optionsFromStrings.js +0 -4
- package/dist/lib/_virtual/parseqs.js +0 -4
- package/dist/lib/_virtual/parseuri.js +0 -4
- package/dist/lib/_virtual/performance-now.js +0 -4
- package/dist/lib/_virtual/polling.js +0 -4
- package/dist/lib/_virtual/polynomial.js +0 -4
- package/dist/lib/_virtual/possibleConstructorReturn.js +0 -4
- package/dist/lib/_virtual/qrcode.js +0 -4
- package/dist/lib/_virtual/regeneratorRuntime.js +0 -4
- package/dist/lib/_virtual/regex.js +0 -4
- package/dist/lib/_virtual/segments.js +0 -4
- package/dist/lib/_virtual/setPrototypeOf.js +0 -4
- package/dist/lib/_virtual/shared-store.js +0 -4
- package/dist/lib/_virtual/shared.js +0 -4
- package/dist/lib/_virtual/slicedToArray.js +0 -4
- package/dist/lib/_virtual/socket.js +0 -4
- package/dist/lib/_virtual/socket2.js +0 -4
- package/dist/lib/_virtual/stackblur-es.js +0 -5
- package/dist/lib/_virtual/superPropBase.js +0 -4
- package/dist/lib/_virtual/svg-tag.js +0 -4
- package/dist/lib/_virtual/svg.js +0 -4
- package/dist/lib/_virtual/toConsumableArray.js +0 -4
- package/dist/lib/_virtual/toPrimitive.js +0 -4
- package/dist/lib/_virtual/toPropertyKey.js +0 -4
- package/dist/lib/_virtual/transport.js +0 -4
- package/dist/lib/_virtual/typeof.js +0 -4
- package/dist/lib/_virtual/unsupportedIterableToArray.js +0 -4
- package/dist/lib/_virtual/url.js +0 -4
- package/dist/lib/_virtual/util.js +0 -4
- package/dist/lib/_virtual/utils.js +0 -4
- package/dist/lib/_virtual/utils2.js +0 -4
- package/dist/lib/_virtual/version-check.js +0 -4
- package/dist/lib/_virtual/version.js +0 -4
- package/dist/lib/_virtual/vue-plugin-hiprint.js +0 -4
- package/dist/lib/_virtual/web.dom-collections.for-each.js +0 -4
- package/dist/lib/_virtual/web.dom-collections.iterator.js +0 -4
- package/dist/lib/_virtual/web.dom-collections.iterator2.js +0 -3
- package/dist/lib/_virtual/websocket-constructor.browser.js +0 -4
- package/dist/lib/_virtual/websocket.js +0 -4
- package/dist/lib/_virtual/webtransport.js +0 -4
- package/dist/lib/_virtual/xmlhttprequest.browser.js +0 -4
- package/dist/lib/_virtual/yeast.js +0 -4
- package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme1.js +0 -7
- package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme2.js +0 -7
- package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme3.js +0 -7
- package/dist/lib/components/runtime/index.d.ts +0 -4
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -18
- package/dist/lib/components/runtime/utils/api/api-util.js +0 -298
- package/dist/lib/components/runtime/utils/api/page-expose-util.d.ts +0 -1
- package/dist/lib/components/runtime/utils/api/page-expose-util.js +0 -206
- package/dist/lib/components/runtime/utils/assemblys-config.js +0 -295
- package/dist/lib/components/runtime/utils/barcode-util.d.ts +0 -8
- package/dist/lib/components/runtime/utils/barcode-util.js +0 -36
- package/dist/lib/components/runtime/utils/charts/chart-columnline-util.js +0 -279
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +0 -74
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +0 -118
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +0 -100
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +0 -74
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -51
- package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -302
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -17
- package/dist/lib/components/runtime/utils/common-util.js +0 -108
- package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
- package/dist/lib/components/runtime/utils/eventBus.js +0 -10
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -68
- package/dist/lib/components/runtime/utils/events/event-util.js +0 -616
- package/dist/lib/components/runtime/utils/events/print-label.d.ts +0 -5
- package/dist/lib/components/runtime/utils/events/print-label.js +0 -153
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -67
- package/dist/lib/components/runtime/utils/events/standard-event.js +0 -1817
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -12
- package/dist/lib/components/runtime/utils/events/validator-util.js +0 -416
- package/dist/lib/components/runtime/utils/form/date-shortcuts.d.ts +0 -7
- package/dist/lib/components/runtime/utils/form/date-shortcuts.js +0 -96
- package/dist/lib/components/runtime/utils/form/scan-util.js +0 -194
- package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
- package/dist/lib/components/runtime/utils/global-refs.js +0 -77
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -224
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +0 -9
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -134
- package/dist/lib/components/runtime/utils/page-helper-util.js +0 -668
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -40
- package/dist/lib/components/runtime/utils/page-init-util.js +0 -266
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
- package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
- package/dist/lib/components/runtime/utils/store-util.js +0 -17
- package/dist/lib/components/runtime/utils/store.d.ts +0 -2
- package/dist/lib/components/runtime/utils/store.js +0 -3
- package/dist/lib/components/runtime/utils/table-utils.js +0 -16
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -115
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +0 -95
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -144
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -106
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -141
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -115
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -117
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -147
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -70
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -50
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -109
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +0 -183
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -673
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -455
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -120
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +0 -65
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -149
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -72
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -42
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -135
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -67
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -159
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -130
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -78
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -160
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -236
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -204
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +0 -41
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -65
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -66
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -71
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +0 -154
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +0 -39
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +0 -39
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -59
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -36
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +0 -79
- package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -99
- package/dist/lib/components/runtime/views/super-page.vue.js +0 -525
- package/dist/lib/components/runtime/views/super-page.vue2.js +0 -3
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/i18n/langs/cn.js +0 -53
- package/dist/lib/i18n/langs/en.js +0 -53
- package/dist/lib/index.d.ts +0 -13
- package/dist/lib/index.js +0 -22
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import theme1 from "../../../../assets/chart-themes/theme1.js";
|
|
2
2
|
import theme2 from "../../../../assets/chart-themes/theme2.js";
|
|
3
3
|
import theme3 from "../../../../assets/chart-themes/theme3.js";
|
|
4
|
-
import { getValueFromSource, setValueForVariableName, formatVariableValue } from "../page-helper-util.js";
|
|
4
|
+
import { getValueFromSource, setValueForVariableName, formatVariableValue, getParamNames, getValueFromVariable } from "../page-helper-util.js";
|
|
5
|
+
import { appendDefaultMethods } from "../events/event-util.js";
|
|
5
6
|
var CommonName = /* @__PURE__ */ ((CommonName2) => {
|
|
6
7
|
CommonName2["X_FIELD_NAME"] = "__x";
|
|
8
|
+
CommonName2["Y_TEMP_NAME"] = "__y";
|
|
7
9
|
return CommonName2;
|
|
8
10
|
})(CommonName || {});
|
|
9
11
|
const themeMap = {
|
|
@@ -81,8 +83,7 @@ function initChartOption(configure, chartOption) {
|
|
|
81
83
|
}
|
|
82
84
|
if (chartOption.series) {
|
|
83
85
|
const enableDrill = configure.props ? configure.props.enableDrill : null;
|
|
84
|
-
const
|
|
85
|
-
for (let s of chartOption.series) {
|
|
86
|
+
for (const s of chartOption.series) {
|
|
86
87
|
if (!chartOption.radar) {
|
|
87
88
|
s.data = [];
|
|
88
89
|
}
|
|
@@ -92,15 +93,24 @@ function initChartOption(configure, chartOption) {
|
|
|
92
93
|
}
|
|
93
94
|
s.label.formatter = getNumFormatter.apply(s, s.labelFormatterArgs);
|
|
94
95
|
}
|
|
95
|
-
if (!enableDrill &&
|
|
96
|
+
if (!enableDrill && configure.clickSet && configure.clickSet.selected) {
|
|
96
97
|
if (s.emphasis) {
|
|
97
98
|
s.emphasis.disabled = false;
|
|
98
99
|
}
|
|
99
100
|
}
|
|
101
|
+
if (s.type === "pie" && configure.clickSet) {
|
|
102
|
+
if (configure.clickSet.selected) {
|
|
103
|
+
if (configure.clickSet.multiple) {
|
|
104
|
+
s.selectedMode = "multiple";
|
|
105
|
+
} else {
|
|
106
|
+
s.selectedMode = "single";
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
100
110
|
}
|
|
101
111
|
}
|
|
102
112
|
if (chartOption.radar) {
|
|
103
|
-
for (
|
|
113
|
+
for (const r of chartOption.radar) {
|
|
104
114
|
r.indicator = [];
|
|
105
115
|
}
|
|
106
116
|
}
|
|
@@ -113,7 +123,7 @@ function initChartOption(configure, chartOption) {
|
|
|
113
123
|
configure.defaultXaxis = defaultXaxis;
|
|
114
124
|
const defaultYaxis = chartOption.yAxis;
|
|
115
125
|
if (defaultYaxis) {
|
|
116
|
-
for (
|
|
126
|
+
for (const yAxis of defaultYaxis) {
|
|
117
127
|
if (yAxis.data) {
|
|
118
128
|
yAxis.data = [];
|
|
119
129
|
}
|
|
@@ -121,59 +131,126 @@ function initChartOption(configure, chartOption) {
|
|
|
121
131
|
}
|
|
122
132
|
configure.defaultYaxis = defaultYaxis;
|
|
123
133
|
}
|
|
124
|
-
function monitorChartClickToVariable(pageContext, configure, chart
|
|
125
|
-
if (!chart || !
|
|
134
|
+
function monitorChartClickToVariable(pageContext, configure, chart) {
|
|
135
|
+
if (!chart || !configure || !configure.clickSet || !pageContext) {
|
|
126
136
|
return;
|
|
127
137
|
}
|
|
138
|
+
const clickSet = configure.clickSet;
|
|
128
139
|
chart.on("click", function(params) {
|
|
129
|
-
let highlightInfos = configure.highlightInfos;
|
|
130
|
-
|
|
131
|
-
let
|
|
140
|
+
let highlightInfos = configure.highlightInfos ? configure.highlightInfos : [];
|
|
141
|
+
console.log("highlightInfos", highlightInfos, params);
|
|
142
|
+
let hisSelectIndex = -1;
|
|
132
143
|
if (highlightInfos) {
|
|
144
|
+
const newInfos = [];
|
|
133
145
|
for (let i = 0; i < highlightInfos.length; i++) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
146
|
+
const info = highlightInfos[i];
|
|
147
|
+
const hisSelected = info.seriesIndex === params.seriesIndex && info.dataIndex === params.dataIndex;
|
|
148
|
+
if (hisSelected || !clickSet.multiple) {
|
|
149
|
+
if (clickSet.selected) {
|
|
150
|
+
const typeName = configure.name === "chart-pie" ? "unselect" : "downplay";
|
|
151
|
+
chart.dispatchAction({
|
|
152
|
+
type: typeName,
|
|
153
|
+
seriesIndex: info.seriesIndex,
|
|
154
|
+
dataIndex: info.dataIndex
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
} else {
|
|
158
|
+
newInfos.push(info);
|
|
159
|
+
}
|
|
160
|
+
if (hisSelected) {
|
|
161
|
+
hisSelectIndex = i;
|
|
142
162
|
}
|
|
143
163
|
}
|
|
164
|
+
highlightInfos = newInfos;
|
|
144
165
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
166
|
+
if (hisSelectIndex === -1) {
|
|
167
|
+
if (clickSet.selected) {
|
|
168
|
+
const typeName = configure.name === "chart-pie" ? "select" : "highlight";
|
|
169
|
+
chart.dispatchAction({
|
|
170
|
+
type: typeName,
|
|
171
|
+
seriesIndex: params.seriesIndex,
|
|
172
|
+
dataIndex: params.dataIndex
|
|
173
|
+
});
|
|
174
|
+
}
|
|
152
175
|
highlightInfos.push({
|
|
153
176
|
seriesIndex: params.seriesIndex,
|
|
154
177
|
dataIndex: params.dataIndex
|
|
155
178
|
});
|
|
156
|
-
const caheDatas = configure.cacheDatas;
|
|
157
|
-
const groupFields = configure.groupFields;
|
|
158
|
-
console.log("selsssss", caheDatas, groupFields);
|
|
159
|
-
if (caheDatas && params.dataIndex < caheDatas.length && groupFields && configure.groupFields.length > 0) {
|
|
160
|
-
const data = caheDatas[params.dataIndex];
|
|
161
|
-
selGroupValue = getValueFromSource(data, groupFields[0], void 0);
|
|
162
|
-
}
|
|
163
179
|
}
|
|
164
180
|
configure.highlightInfos = highlightInfos;
|
|
165
|
-
|
|
166
|
-
console.log("variable params", params);
|
|
181
|
+
updateClickVariablesForSelected(pageContext, configure);
|
|
167
182
|
});
|
|
168
183
|
}
|
|
184
|
+
function clearChartSelected(pageContext, configure, chart) {
|
|
185
|
+
if (!chart || !configure || !pageContext) {
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
const highlightInfos = configure.highlightInfos ? configure.highlightInfos : [];
|
|
189
|
+
for (let i = 0; i < highlightInfos.length; i++) {
|
|
190
|
+
const info = highlightInfos[i];
|
|
191
|
+
const typeName = configure.name === "chart-pie" ? "unselect" : "downplay";
|
|
192
|
+
chart.dispatchAction({
|
|
193
|
+
type: typeName,
|
|
194
|
+
seriesIndex: info.seriesIndex,
|
|
195
|
+
dataIndex: info.dataIndex
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
configure.highlightInfos = [];
|
|
199
|
+
updateClickVariablesForSelected(pageContext, configure);
|
|
200
|
+
}
|
|
201
|
+
function updateClickVariablesForSelected(pageContext, configure) {
|
|
202
|
+
if (!configure.clickSet) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
const clickSet = configure.clickSet;
|
|
206
|
+
const variables = clickSet.variables;
|
|
207
|
+
if (!variables || variables.length == 0) {
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
const highlightInfos = configure.highlightInfos ? configure.highlightInfos : [];
|
|
211
|
+
const caheDatas = configure.cacheDatas ? configure.cacheDatas : [];
|
|
212
|
+
const selDatas = [];
|
|
213
|
+
const existIndexs = [];
|
|
214
|
+
for (const highlightInfo of highlightInfos) {
|
|
215
|
+
if (existIndexs.includes(highlightInfo.dataIndex)) {
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
existIndexs.push(highlightInfo.dataIndex);
|
|
219
|
+
if (highlightInfo.dataIndex < caheDatas.length) {
|
|
220
|
+
selDatas.push(caheDatas[highlightInfo.dataIndex]);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
for (const v of variables) {
|
|
224
|
+
if (!v.fieldName || !v.variable) {
|
|
225
|
+
continue;
|
|
226
|
+
}
|
|
227
|
+
const values = [];
|
|
228
|
+
for (const data of selDatas) {
|
|
229
|
+
const value = getValueFromSource(data, v.fieldName, void 0);
|
|
230
|
+
if (value == void 0) {
|
|
231
|
+
continue;
|
|
232
|
+
}
|
|
233
|
+
values.push(value);
|
|
234
|
+
}
|
|
235
|
+
if (clickSet.multiple) {
|
|
236
|
+
setValueForVariableName(pageContext.entity, v.variable, values);
|
|
237
|
+
} else {
|
|
238
|
+
setValueForVariableName(
|
|
239
|
+
pageContext.entity,
|
|
240
|
+
v.variable,
|
|
241
|
+
values.length > 0 ? values[0] : void 0
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
169
246
|
function sortDatas(pageContext, configure, datas) {
|
|
170
247
|
const itemConfs = configure.items ? configure.items : [];
|
|
171
|
-
|
|
248
|
+
const orderByTarget = configure.props ? configure.props.orderByTarget : "";
|
|
172
249
|
let orderField = null;
|
|
173
250
|
if (orderByTarget == "x" || orderByTarget == "X") {
|
|
174
251
|
orderField = "__x";
|
|
175
252
|
} else if (orderByTarget) {
|
|
176
|
-
for (
|
|
253
|
+
for (const item of itemConfs) {
|
|
177
254
|
if (item.uuid == orderByTarget) {
|
|
178
255
|
const itemProps = item.props ? item.props : {};
|
|
179
256
|
const sourceType = itemProps.yaxisSource;
|
|
@@ -188,18 +265,18 @@ function sortDatas(pageContext, configure, datas) {
|
|
|
188
265
|
if (!orderField) {
|
|
189
266
|
return;
|
|
190
267
|
}
|
|
191
|
-
|
|
268
|
+
const orderSource = configure.props ? configure.props.orderSource : "";
|
|
192
269
|
let orderValue = configure.props ? configure.props.orderFix : "";
|
|
193
270
|
if (orderSource == "variable") {
|
|
194
|
-
|
|
271
|
+
const orderVariable = configure.props ? configure.props.orderVariable : "";
|
|
195
272
|
orderValue = formatVariableValue(pageContext, orderVariable);
|
|
196
273
|
}
|
|
197
274
|
orderValue = orderValue == "desc" || orderValue == "DESC" ? "desc" : "asc";
|
|
198
|
-
|
|
275
|
+
const maxLen = datas.length;
|
|
199
276
|
for (let i = 0; i < maxLen - 1; i++) {
|
|
200
|
-
|
|
277
|
+
const vali = getValueFromSource(datas[i], orderField, void 0);
|
|
201
278
|
for (let j = i + 1; j < maxLen; j++) {
|
|
202
|
-
|
|
279
|
+
const valj = getValueFromSource(datas[j], orderField, void 0);
|
|
203
280
|
let isSwap = false;
|
|
204
281
|
if ("desc" == orderValue) {
|
|
205
282
|
if (vali < valj) {
|
|
@@ -251,7 +328,7 @@ function limitDatas(pageContext, configure, datas, groupFields, numFields) {
|
|
|
251
328
|
if (!overItemAlias) {
|
|
252
329
|
break;
|
|
253
330
|
}
|
|
254
|
-
for (
|
|
331
|
+
for (const groupField of groupFields) {
|
|
255
332
|
if (!groupField) {
|
|
256
333
|
continue;
|
|
257
334
|
}
|
|
@@ -265,11 +342,11 @@ function limitDatas(pageContext, configure, datas, groupFields, numFields) {
|
|
|
265
342
|
existValues.push(value);
|
|
266
343
|
}
|
|
267
344
|
}
|
|
268
|
-
for (
|
|
345
|
+
for (const numField of numFields) {
|
|
269
346
|
if (!numField) {
|
|
270
347
|
continue;
|
|
271
348
|
}
|
|
272
|
-
|
|
349
|
+
const value = getValueFromSource(data, numField, void 0);
|
|
273
350
|
if (isNaN(value)) {
|
|
274
351
|
continue;
|
|
275
352
|
}
|
|
@@ -290,13 +367,132 @@ function limitDatas(pageContext, configure, datas, groupFields, numFields) {
|
|
|
290
367
|
}
|
|
291
368
|
return newDatas;
|
|
292
369
|
}
|
|
370
|
+
function caculateFormulaValue(itemConfs, datas, accumulateFields) {
|
|
371
|
+
const totalValueMap = {};
|
|
372
|
+
for (const item of itemConfs) {
|
|
373
|
+
const itemProps = item.props ? item.props : {};
|
|
374
|
+
const sourceType = itemProps.yaxisSource;
|
|
375
|
+
if (sourceType === "formula") {
|
|
376
|
+
const paramNames = getParamNames(itemProps.formula);
|
|
377
|
+
for (const paramName of paramNames) {
|
|
378
|
+
if (paramName in totalValueMap) {
|
|
379
|
+
continue;
|
|
380
|
+
}
|
|
381
|
+
if (paramName.startsWith("${min.")) {
|
|
382
|
+
totalValueMap[paramName] = getMinValue(
|
|
383
|
+
datas,
|
|
384
|
+
paramName.substring(6, paramName.length - 1)
|
|
385
|
+
);
|
|
386
|
+
} else if (paramName.startsWith("${max.")) {
|
|
387
|
+
totalValueMap[paramName] = getMaxValue(
|
|
388
|
+
datas,
|
|
389
|
+
paramName.substring(6, paramName.length - 1)
|
|
390
|
+
);
|
|
391
|
+
} else if (paramName.startsWith("${sum.")) {
|
|
392
|
+
totalValueMap[paramName] = getSumValue(
|
|
393
|
+
datas,
|
|
394
|
+
paramName.substring(6, paramName.length - 1)
|
|
395
|
+
);
|
|
396
|
+
} else if (paramName.startsWith("${avg.")) {
|
|
397
|
+
totalValueMap[paramName] = getAvgValue(
|
|
398
|
+
datas,
|
|
399
|
+
paramName.substring(6, paramName.length - 1)
|
|
400
|
+
);
|
|
401
|
+
} else if (paramName.startsWith("${add.")) {
|
|
402
|
+
const fieldName = paramName.substring(6, paramName.length - 1);
|
|
403
|
+
accumulateFields.push(fieldName);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
return totalValueMap;
|
|
409
|
+
}
|
|
410
|
+
function getMinValue(datas, fieldName) {
|
|
411
|
+
let minValue = void 0;
|
|
412
|
+
for (const d of datas) {
|
|
413
|
+
const value = parseFloat(getValueFromSource(d, fieldName, null));
|
|
414
|
+
if (minValue === void 0) {
|
|
415
|
+
minValue = value;
|
|
416
|
+
} else if (!isNaN(value) && value < minValue) {
|
|
417
|
+
minValue = value;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
return minValue;
|
|
421
|
+
}
|
|
422
|
+
function getMaxValue(datas, fieldName) {
|
|
423
|
+
let maxValue = void 0;
|
|
424
|
+
for (const d of datas) {
|
|
425
|
+
const value = parseFloat(getValueFromSource(d, fieldName, null));
|
|
426
|
+
if (maxValue === void 0) {
|
|
427
|
+
maxValue = value;
|
|
428
|
+
} else if (!isNaN(value) && value > maxValue) {
|
|
429
|
+
maxValue = value;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
return maxValue;
|
|
433
|
+
}
|
|
434
|
+
function getSumValue(datas, fieldName) {
|
|
435
|
+
let sumValue = void 0;
|
|
436
|
+
for (const d of datas) {
|
|
437
|
+
const value = parseFloat(getValueFromSource(d, fieldName, null));
|
|
438
|
+
if (sumValue === void 0) {
|
|
439
|
+
sumValue = value;
|
|
440
|
+
} else if (!isNaN(value)) {
|
|
441
|
+
sumValue += value;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
return sumValue;
|
|
445
|
+
}
|
|
446
|
+
function getAvgValue(datas, fieldName) {
|
|
447
|
+
const sumValue = getSumValue(datas, fieldName);
|
|
448
|
+
if (sumValue === void 0 || datas.length === 0) {
|
|
449
|
+
return sumValue;
|
|
450
|
+
}
|
|
451
|
+
return parseFloat((sumValue / datas.length).toFixed(5));
|
|
452
|
+
}
|
|
453
|
+
function executeChartFormula(formulaStr, accumulateMap, rowData, pageContext) {
|
|
454
|
+
if (!formulaStr) {
|
|
455
|
+
return void 0;
|
|
456
|
+
}
|
|
457
|
+
if (accumulateMap) {
|
|
458
|
+
for (const accumulateField in accumulateMap) {
|
|
459
|
+
formulaStr = formulaStr.replace(
|
|
460
|
+
new RegExp("\\${add." + accumulateField + "}", "g"),
|
|
461
|
+
accumulateMap[accumulateField]
|
|
462
|
+
);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
const paramNames = getParamNames(formulaStr);
|
|
466
|
+
for (const paramName of paramNames) {
|
|
467
|
+
let value = null;
|
|
468
|
+
if (paramName.startsWith("${row.")) {
|
|
469
|
+
value = getValueFromSource(rowData, paramName.substring(6, paramName.length - 1), null);
|
|
470
|
+
} else {
|
|
471
|
+
value = getValueFromVariable(pageContext.entity, paramName);
|
|
472
|
+
}
|
|
473
|
+
formulaStr = formulaStr.replace(new RegExp(paramName.replace("$", "\\$"), "g"), value);
|
|
474
|
+
}
|
|
475
|
+
if (!formulaStr.includes("return ")) {
|
|
476
|
+
formulaStr = "return " + formulaStr;
|
|
477
|
+
}
|
|
478
|
+
const newFunc = new Function("params", formulaStr);
|
|
479
|
+
appendDefaultMethods(newFunc, pageContext);
|
|
480
|
+
return newFunc({
|
|
481
|
+
pageContext,
|
|
482
|
+
row: rowData
|
|
483
|
+
});
|
|
484
|
+
}
|
|
293
485
|
export {
|
|
294
486
|
CommonName,
|
|
487
|
+
caculateFormulaValue,
|
|
488
|
+
clearChartSelected,
|
|
489
|
+
executeChartFormula,
|
|
295
490
|
getCustomTheme,
|
|
296
491
|
getCustomThemeOptions,
|
|
297
492
|
getNumFormatter,
|
|
298
493
|
initChartOption,
|
|
299
494
|
limitDatas,
|
|
300
495
|
monitorChartClickToVariable,
|
|
301
|
-
sortDatas
|
|
496
|
+
sortDatas,
|
|
497
|
+
updateClickVariablesForSelected
|
|
302
498
|
};
|
|
@@ -37,11 +37,11 @@ function packageTemplateFiles(templateFiles) {
|
|
|
37
37
|
}
|
|
38
38
|
const currentLocale = getLanguageWithLocale();
|
|
39
39
|
if (Array.isArray(templateFiles)) {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
const templateFilesResult = [];
|
|
41
|
+
const fileCodes = [];
|
|
42
42
|
const fileSeperate = "~-~-";
|
|
43
43
|
templateFiles.forEach((template) => {
|
|
44
|
-
|
|
44
|
+
const showName = template.templateName;
|
|
45
45
|
if (showName.indexOf(fileSeperate) > 0) {
|
|
46
46
|
const fileCode = showName.substring(0, showName.indexOf(fileSeperate));
|
|
47
47
|
const fileLanguage = showName.substring(
|
|
@@ -53,8 +53,8 @@ function packageTemplateFiles(templateFiles) {
|
|
|
53
53
|
);
|
|
54
54
|
if (currentLocale === fileLanguage && fileCodes.indexOf(fileCode) < 0) {
|
|
55
55
|
templateFilesResult.push({
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
templateUuid: template.templateUuid,
|
|
57
|
+
templateName: fileName
|
|
58
58
|
});
|
|
59
59
|
fileCodes.push(fileCode);
|
|
60
60
|
}
|
|
@@ -12,16 +12,31 @@ export declare function initPageEvents(pageDesign: PageDesign, pageContext: Page
|
|
|
12
12
|
* @returns
|
|
13
13
|
*/
|
|
14
14
|
export declare function getCustomFunc(pageContext: PageContext, funcName: any): any;
|
|
15
|
+
/**
|
|
16
|
+
* 为功能添加默认的方法
|
|
17
|
+
* @param func 函数
|
|
18
|
+
* @param pageContext
|
|
19
|
+
*/
|
|
20
|
+
export declare function appendDefaultMethods(func: any, pageContext: PageContext): void;
|
|
15
21
|
/**
|
|
16
22
|
* 页面销毁时,将window上注册的函数移除掉
|
|
17
23
|
* @param pageDesign
|
|
18
24
|
*/
|
|
19
25
|
export declare function removeCustomFuncFromWindow(pageDesign: PageDesign): void;
|
|
20
26
|
export declare function handleEvent($event: any, pageContext: PageContext, configure: Component, eventType: string, otherParams?: object): any;
|
|
27
|
+
export declare function handleFormEvent($event: any, pageContext: PageContext, configure: Component, eventType: string, otherParams?: object): any;
|
|
21
28
|
export declare function getHandleEvent($event: any, pageContext: PageContext, configure: Component, eventType: string, otherParams?: object): any;
|
|
22
29
|
export declare function getTableUuid(pageContext: PageContext, configure: Component): any;
|
|
23
30
|
export declare function handleEventByEventName(pageContext: PageContext, configure: Component, eventName: string, otherParams?: object): any;
|
|
24
31
|
export declare function doBeforeClickEvent(pageContext: PageContext, configure: Component, otherParams?: object): any;
|
|
32
|
+
/**
|
|
33
|
+
* TODO: 跳转页面功能
|
|
34
|
+
* 跳转页面功能
|
|
35
|
+
* @param $event
|
|
36
|
+
* @param pageContext
|
|
37
|
+
* @param configure
|
|
38
|
+
*/
|
|
39
|
+
export declare function doClickJumpPageEvent(pageContext: PageContext, configure: Component, eventParams: object): void;
|
|
25
40
|
export declare function doAfterClickEvent(pageContext: PageContext, configure: Component, otherParams?: object): void;
|
|
26
41
|
/**
|
|
27
42
|
* 获得事件Function对象
|
|
@@ -7,6 +7,14 @@ import { analysisCondition } from "agilebuilder-ui/src/utils/util";
|
|
|
7
7
|
import { getListCode } from "../common-util.js";
|
|
8
8
|
import eventBus from "../eventBus.js";
|
|
9
9
|
import { getValueFromSource } from "../page-helper-util.js";
|
|
10
|
+
const skipValidateEvents = [
|
|
11
|
+
"downloadTemplate",
|
|
12
|
+
"back",
|
|
13
|
+
"exportForm",
|
|
14
|
+
"exportPDF",
|
|
15
|
+
"lineEditCreate",
|
|
16
|
+
"workflowSave"
|
|
17
|
+
];
|
|
10
18
|
function initPageEvents(pageDesign, pageContext) {
|
|
11
19
|
if (pageDesign && pageDesign.customEvents) {
|
|
12
20
|
const customEvents = transferToFunction(pageDesign.customEvents);
|
|
@@ -26,48 +34,51 @@ function appendDefaultMethod(pageContext, customEvents) {
|
|
|
26
34
|
}
|
|
27
35
|
for (const pro in customEvents) {
|
|
28
36
|
const func = customEvents[pro];
|
|
29
|
-
func
|
|
30
|
-
if (code) {
|
|
31
|
-
return getComponentRefByCode(pageContext, code);
|
|
32
|
-
} else {
|
|
33
|
-
return void 0;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
func.getByUuid = function(uuid) {
|
|
37
|
-
if (uuid) {
|
|
38
|
-
return getComponentRef(pageContext, uuid);
|
|
39
|
-
} else {
|
|
40
|
-
return void 0;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
func.getPageContext = function() {
|
|
44
|
-
return pageContext;
|
|
45
|
-
};
|
|
46
|
-
func.getContextValue = function(fieldName) {
|
|
47
|
-
let contextData = pageContext && pageContext.entity ? pageContext.entity.context : null;
|
|
48
|
-
contextData = contextData ? contextData : {};
|
|
49
|
-
return getValueFromSource(contextData, fieldName, "context");
|
|
50
|
-
};
|
|
51
|
-
func.getContext = function() {
|
|
52
|
-
return pageContext && pageContext.entity ? pageContext.entity.context : {};
|
|
53
|
-
};
|
|
54
|
-
func.getSystem = function() {
|
|
55
|
-
return pageContext && pageContext.entity ? pageContext.entity.system : {};
|
|
56
|
-
};
|
|
57
|
-
func.getTask = function() {
|
|
58
|
-
return pageContext && pageContext.entity ? pageContext.entity.task : {};
|
|
59
|
-
};
|
|
60
|
-
func.getRequest = function() {
|
|
61
|
-
return pageContext && pageContext.entity ? pageContext.entity.request : {};
|
|
62
|
-
};
|
|
63
|
-
func.getPage = function() {
|
|
64
|
-
return pageContext && pageContext.entity ? pageContext.entity.page : {};
|
|
65
|
-
};
|
|
66
|
-
func.getCustomFunc = function(funcName) {
|
|
67
|
-
return getCustomFunc(pageContext, funcName);
|
|
68
|
-
};
|
|
37
|
+
appendDefaultMethods(func, pageContext);
|
|
69
38
|
}
|
|
70
39
|
}
|
|
40
|
+
function appendDefaultMethods(func, pageContext) {
|
|
41
|
+
func.get = function(code) {
|
|
42
|
+
if (code) {
|
|
43
|
+
return getComponentRefByCode(pageContext, code);
|
|
44
|
+
} else {
|
|
45
|
+
return void 0;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
func.getByUuid = function(uuid) {
|
|
49
|
+
if (uuid) {
|
|
50
|
+
return getComponentRef(pageContext, uuid);
|
|
51
|
+
} else {
|
|
52
|
+
return void 0;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
func.getPageContext = function() {
|
|
56
|
+
return pageContext;
|
|
57
|
+
};
|
|
58
|
+
func.getContextValue = function(fieldName) {
|
|
59
|
+
let contextData = pageContext && pageContext.entity ? pageContext.entity.context : null;
|
|
60
|
+
contextData = contextData ? contextData : {};
|
|
61
|
+
return getValueFromSource(contextData, fieldName, "context");
|
|
62
|
+
};
|
|
63
|
+
func.getContext = function() {
|
|
64
|
+
return pageContext && pageContext.entity ? pageContext.entity.context : {};
|
|
65
|
+
};
|
|
66
|
+
func.getSystem = function() {
|
|
67
|
+
return pageContext && pageContext.entity ? pageContext.entity.system : {};
|
|
68
|
+
};
|
|
69
|
+
func.getTask = function() {
|
|
70
|
+
return pageContext && pageContext.entity ? pageContext.entity.task : {};
|
|
71
|
+
};
|
|
72
|
+
func.getRequest = function() {
|
|
73
|
+
return pageContext && pageContext.entity ? pageContext.entity.request : {};
|
|
74
|
+
};
|
|
75
|
+
func.getPage = function() {
|
|
76
|
+
return pageContext && pageContext.entity ? pageContext.entity.page : {};
|
|
77
|
+
};
|
|
78
|
+
func.getCustomFunc = function(funcName) {
|
|
79
|
+
return getCustomFunc(pageContext, funcName);
|
|
80
|
+
};
|
|
81
|
+
}
|
|
71
82
|
function removeCustomFuncFromWindow(pageDesign) {
|
|
72
83
|
if (pageDesign && pageDesign.customEvents) {
|
|
73
84
|
const customEvents = pageDesign.customEvents;
|
|
@@ -80,17 +91,20 @@ function removeCustomFuncFromWindow(pageDesign) {
|
|
|
80
91
|
}
|
|
81
92
|
}
|
|
82
93
|
function handleEvent($event, pageContext, configure, eventType, otherParams) {
|
|
83
|
-
return handleEventUtil($event, pageContext, configure, eventType, true, otherParams);
|
|
94
|
+
return handleEventUtil($event, pageContext, configure, eventType, true, otherParams, false);
|
|
95
|
+
}
|
|
96
|
+
function handleFormEvent($event, pageContext, configure, eventType, otherParams) {
|
|
97
|
+
return handleEventUtil($event, pageContext, configure, eventType, true, otherParams, true);
|
|
84
98
|
}
|
|
85
99
|
function getHandleEvent($event, pageContext, configure, eventType, otherParams) {
|
|
86
|
-
return handleEventUtil($event, pageContext, configure, eventType, false, otherParams);
|
|
100
|
+
return handleEventUtil($event, pageContext, configure, eventType, false, otherParams, false);
|
|
87
101
|
}
|
|
88
|
-
function handleEventUtil($event, pageContext, configure, eventType, isExecute, otherParams) {
|
|
102
|
+
function handleEventUtil($event, pageContext, configure, eventType, isExecute, otherParams, skipValidate) {
|
|
89
103
|
const pageCode = pageContext.code;
|
|
90
104
|
const pageVersion = pageContext.version;
|
|
91
105
|
const events = configure.runtime && configure.runtime.events ? configure.runtime.events : [];
|
|
92
106
|
let eventFun;
|
|
93
|
-
if (eventType && eventType === "click") {
|
|
107
|
+
if (!skipValidate && eventType && eventType === "click") {
|
|
94
108
|
const tableUuid = getTableUuid(pageContext, configure);
|
|
95
109
|
if (tableUuid) {
|
|
96
110
|
const gridRef = getComponentRef(pageContext, tableUuid);
|
|
@@ -181,13 +195,20 @@ function buttonClickEvent(pageContext, configure, eventParams) {
|
|
|
181
195
|
}
|
|
182
196
|
function doValidateForm(pageContext, configure, eventParams) {
|
|
183
197
|
const events = configure.runtime && configure.runtime.events ? configure.runtime.events : [];
|
|
198
|
+
let isEnableRequired = true;
|
|
184
199
|
const clickEventFunObj = getClickEventFuncByType(pageContext, events, "click");
|
|
185
200
|
if (clickEventFunObj) {
|
|
186
201
|
const isStandardEvent = clickEventFunObj.isStandard;
|
|
187
202
|
const event = clickEventFunObj.event;
|
|
188
|
-
isNotNeedValidateRequired(isStandardEvent, event);
|
|
203
|
+
const isNotNeedValidate = isNotNeedValidateRequired(isStandardEvent, event);
|
|
204
|
+
if (isNotNeedValidate) {
|
|
205
|
+
isEnableRequired = false;
|
|
206
|
+
}
|
|
189
207
|
}
|
|
190
|
-
validateDataModelFunc(pageContext, configure,
|
|
208
|
+
validateDataModelFunc(pageContext, configure, isEnableRequired).then((validateReslut) => {
|
|
209
|
+
if (!validateReslut) {
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
191
212
|
const beforeClickResult = doBeforeClickEvent(pageContext, configure, eventParams);
|
|
192
213
|
if (!beforeClickResult) {
|
|
193
214
|
return;
|
|
@@ -268,7 +289,7 @@ function isNotDoAfterClick(isStandardEvent, clickEvent) {
|
|
|
268
289
|
return isStandardEvent && (clickEvent.eventName === "exportForm" || clickEvent.eventName === "exportPDF" || clickEvent.eventName === "import" || clickEvent.eventName === "assign" || clickEvent.eventName === "copyTask" || clickEvent.eventName === "addSigner" || clickEvent.eventName === "returnTaskTo" || clickEvent.eventName === "removeSigner");
|
|
269
290
|
}
|
|
270
291
|
function isNotNeedValidateRequired(isStandardEvent, clickEvent) {
|
|
271
|
-
return isStandardEvent && (clickEvent.eventName
|
|
292
|
+
return isStandardEvent && skipValidateEvents.includes(clickEvent.eventName);
|
|
272
293
|
}
|
|
273
294
|
function doAfterClickEvent(pageContext, configure, otherParams) {
|
|
274
295
|
const events = configure.runtime && configure.runtime.events ? configure.runtime.events : [];
|
|
@@ -591,11 +612,13 @@ function fileUploadBeforeUpload(params) {
|
|
|
591
612
|
return getHandleEvent(null, params.pageContext, params.configureObj, "before-upload", params);
|
|
592
613
|
}
|
|
593
614
|
export {
|
|
615
|
+
appendDefaultMethods,
|
|
594
616
|
canExecuteButton,
|
|
595
617
|
cellClick,
|
|
596
618
|
cellDblClick,
|
|
597
619
|
doAfterClickEvent,
|
|
598
620
|
doBeforeClickEvent,
|
|
621
|
+
doClickJumpPageEvent,
|
|
599
622
|
fileUploadBeforeUpload,
|
|
600
623
|
getClickEventFuncByType,
|
|
601
624
|
getCustomFunc,
|
|
@@ -607,6 +630,7 @@ export {
|
|
|
607
630
|
gridSelectRecord,
|
|
608
631
|
gridSelectionChange,
|
|
609
632
|
handleEvent,
|
|
633
|
+
handleFormEvent,
|
|
610
634
|
headerClick,
|
|
611
635
|
initPageEvents,
|
|
612
636
|
removeCustomFuncFromWindow,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PageContext } from '../interfaces/page-design-types';
|
|
2
|
+
|
|
1
3
|
export declare const standardEvents: {
|
|
2
4
|
save: (params: any) => Promise<unknown>;
|
|
3
5
|
saveList: (params: any) => Promise<unknown>;
|
|
@@ -40,7 +42,7 @@ export declare const standardEvents: {
|
|
|
40
42
|
queryCharts: (params: any) => void;
|
|
41
43
|
};
|
|
42
44
|
export declare function exportFormReport(pageContext: any, configureObj: any, templateFile: any, isPdf: any): void;
|
|
43
|
-
export declare function getSaveFormRequestWithRow(pageContext:
|
|
45
|
+
export declare function getSaveFormRequestWithRow(pageContext: PageContext, configureObj: any, url: string, isUnControlVersion: boolean, mainDefaultValueColumns: any, dynamicColumnInfo: any, row: any, otherParams: any): any;
|
|
44
46
|
export declare function getSaveFormRequest(pageContext: any, configureObj: any, url: any, isUnControlVersion: any, mainDefaultValueColumns: any, dynamicColumnInfo: any): any;
|
|
45
47
|
/**
|
|
46
48
|
* 按钮执行后页面处理方式:刷新、关闭弹框等等
|