super-page-runtime 2.0.38 → 2.0.40-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/api/api-util.d.ts +5 -3
- package/dist/es/components/runtime/utils/api/api-util.js +2 -2
- package/dist/es/components/runtime/utils/events/event-util.js +2 -6
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/form/scan-util.js +0 -1
- package/dist/es/components/runtime/utils/page-init-util.js +18 -1
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +66 -0
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +11 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +5 -2
- package/dist/lib/_virtual/AttributeMap.js +4 -0
- package/dist/lib/_virtual/Barcode.js +4 -0
- package/dist/lib/_virtual/CODE128.js +4 -0
- package/dist/lib/_virtual/CODE128A.js +4 -0
- package/dist/lib/_virtual/CODE128B.js +4 -0
- package/dist/lib/_virtual/CODE128C.js +4 -0
- package/dist/lib/_virtual/CODE128_AUTO.js +4 -0
- package/dist/lib/_virtual/Delta.js +4 -0
- package/dist/lib/_virtual/EAN.js +4 -0
- package/dist/lib/_virtual/EAN13.js +4 -0
- package/dist/lib/_virtual/EAN2.js +4 -0
- package/dist/lib/_virtual/EAN5.js +4 -0
- package/dist/lib/_virtual/EAN8.js +4 -0
- package/dist/lib/_virtual/ErrorHandler.js +4 -0
- package/dist/lib/_virtual/ITF.js +4 -0
- package/dist/lib/_virtual/ITF14.js +4 -0
- package/dist/lib/_virtual/JsBarcode.js +6 -0
- package/dist/lib/_virtual/MSI.js +4 -0
- package/dist/lib/_virtual/MSI10.js +4 -0
- package/dist/lib/_virtual/MSI1010.js +4 -0
- package/dist/lib/_virtual/MSI11.js +4 -0
- package/dist/lib/_virtual/MSI1110.js +4 -0
- package/dist/lib/_virtual/Op.js +4 -0
- package/dist/lib/_virtual/OpIterator.js +4 -0
- package/dist/lib/_virtual/SVGPathData.js +4 -0
- package/dist/lib/_virtual/SVGPathData2.js +5 -0
- package/dist/lib/_virtual/UPC.js +4 -0
- package/dist/lib/_virtual/UPCE.js +4 -0
- package/dist/lib/_virtual/__vite-browser-external.js +3 -0
- package/dist/lib/_virtual/_commonjsHelpers.js +35 -0
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/lib/_virtual/alignment-pattern.js +4 -0
- package/dist/lib/_virtual/arrayLikeToArray.js +4 -0
- package/dist/lib/_virtual/arrayWithHoles.js +4 -0
- package/dist/lib/_virtual/arrayWithoutHoles.js +4 -0
- package/dist/lib/_virtual/assertThisInitialized.js +4 -0
- package/dist/lib/_virtual/asyncToGenerator.js +4 -0
- package/dist/lib/_virtual/asyncToGenerator2.js +6 -0
- package/dist/lib/_virtual/auto.js +4 -0
- package/dist/lib/_virtual/backo2.js +4 -0
- package/dist/lib/_virtual/base64-arraybuffer.js +4 -0
- package/dist/lib/_virtual/binary.js +4 -0
- package/dist/lib/_virtual/browser.js +4 -0
- package/dist/lib/_virtual/browser2.js +4 -0
- package/dist/lib/_virtual/canvas.js +4 -0
- package/dist/lib/_virtual/canvas2.js +4 -0
- package/dist/lib/_virtual/checksums.js +4 -0
- package/dist/lib/_virtual/classCallCheck.js +4 -0
- package/dist/lib/_virtual/commons.js +4 -0
- package/dist/lib/_virtual/constants.js +4 -0
- package/dist/lib/_virtual/constants2.js +4 -0
- package/dist/lib/_virtual/constants3.js +4 -0
- package/dist/lib/_virtual/createClass.js +4 -0
- package/dist/lib/_virtual/dayjs.min.js +4 -0
- package/dist/lib/_virtual/decodePacket.browser.js +4 -0
- package/dist/lib/_virtual/defaults.js +4 -0
- package/dist/lib/_virtual/defineProperty.js +4 -0
- package/dist/lib/_virtual/defineProperty2.js +6 -0
- package/dist/lib/_virtual/dijkstra.js +4 -0
- package/dist/lib/_virtual/encodePacket.browser.js +4 -0
- package/dist/lib/_virtual/encoder.js +4 -0
- package/dist/lib/_virtual/error-correction-code.js +4 -0
- package/dist/lib/_virtual/error-correction-level.js +4 -0
- package/dist/lib/_virtual/es.array.concat.js +4 -0
- package/dist/lib/_virtual/es.array.every.js +4 -0
- package/dist/lib/_virtual/es.array.fill.js +4 -0
- package/dist/lib/_virtual/es.array.for-each.js +4 -0
- package/dist/lib/_virtual/es.array.from.js +4 -0
- package/dist/lib/_virtual/es.array.includes.js +4 -0
- package/dist/lib/_virtual/es.array.index-of.js +4 -0
- package/dist/lib/_virtual/es.array.index-of2.js +3 -0
- package/dist/lib/_virtual/es.array.iterator.js +3 -0
- package/dist/lib/_virtual/es.array.join.js +4 -0
- package/dist/lib/_virtual/es.array.map.js +4 -0
- package/dist/lib/_virtual/es.array.reduce.js +4 -0
- package/dist/lib/_virtual/es.array.reduce2.js +3 -0
- package/dist/lib/_virtual/es.array.reverse.js +4 -0
- package/dist/lib/_virtual/es.array.reverse2.js +3 -0
- package/dist/lib/_virtual/es.array.some.js +4 -0
- package/dist/lib/_virtual/es.function.name.js +4 -0
- package/dist/lib/_virtual/es.map.constructor.js +4 -0
- package/dist/lib/_virtual/es.map.js +4 -0
- package/dist/lib/_virtual/es.number.constructor.js +4 -0
- package/dist/lib/_virtual/es.object.to-string.js +4 -0
- package/dist/lib/_virtual/es.parse-float.js +4 -0
- package/dist/lib/_virtual/es.promise.all.js +4 -0
- package/dist/lib/_virtual/es.promise.catch.js +4 -0
- package/dist/lib/_virtual/es.promise.constructor.js +4 -0
- package/dist/lib/_virtual/es.promise.js +4 -0
- package/dist/lib/_virtual/es.promise.race.js +4 -0
- package/dist/lib/_virtual/es.promise.reject.js +4 -0
- package/dist/lib/_virtual/es.promise.resolve.js +4 -0
- package/dist/lib/_virtual/es.promise2.js +3 -0
- package/dist/lib/_virtual/es.reflect.apply.js +4 -0
- package/dist/lib/_virtual/es.reflect.delete-property.js +4 -0
- package/dist/lib/_virtual/es.reflect.get-prototype-of.js +4 -0
- package/dist/lib/_virtual/es.regexp.exec.js +4 -0
- package/dist/lib/_virtual/es.regexp.to-string.js +4 -0
- package/dist/lib/_virtual/es.regexp.to-string2.js +3 -0
- package/dist/lib/_virtual/es.string.ends-with.js +4 -0
- package/dist/lib/_virtual/es.string.ends-with2.js +3 -0
- package/dist/lib/_virtual/es.string.includes.js +4 -0
- package/dist/lib/_virtual/es.string.includes2.js +3 -0
- package/dist/lib/_virtual/es.string.iterator.js +4 -0
- package/dist/lib/_virtual/es.string.match.js +4 -0
- package/dist/lib/_virtual/es.string.match2.js +3 -0
- package/dist/lib/_virtual/es.string.replace.js +4 -0
- package/dist/lib/_virtual/es.string.replace2.js +3 -0
- package/dist/lib/_virtual/es.string.split.js +4 -0
- package/dist/lib/_virtual/es.string.split2.js +3 -0
- package/dist/lib/_virtual/es.string.starts-with.js +4 -0
- package/dist/lib/_virtual/es.string.starts-with2.js +3 -0
- package/dist/lib/_virtual/es.string.trim.js +4 -0
- package/dist/lib/_virtual/es.string.trim2.js +3 -0
- package/dist/lib/_virtual/exceptions.js +4 -0
- package/dist/lib/_virtual/finder-pattern.js +4 -0
- package/dist/lib/_virtual/fixOptions.js +4 -0
- package/dist/lib/_virtual/format-info.js +4 -0
- package/dist/lib/_virtual/galois-field.js +4 -0
- package/dist/lib/_virtual/get.js +4 -0
- package/dist/lib/_virtual/getOptionsFromElement.js +4 -0
- package/dist/lib/_virtual/getPrototypeOf.js +4 -0
- package/dist/lib/_virtual/getRenderProperties.js +4 -0
- package/dist/lib/_virtual/globalThis.browser.js +4 -0
- package/dist/lib/_virtual/has-cors.js +4 -0
- package/dist/lib/_virtual/html2canvas.js +4 -0
- package/dist/lib/_virtual/index.js +4 -0
- package/dist/lib/_virtual/index10.js +4 -0
- package/dist/lib/_virtual/index11.js +4 -0
- package/dist/lib/_virtual/index12.js +4 -0
- package/dist/lib/_virtual/index13.js +4 -0
- package/dist/lib/_virtual/index14.js +4 -0
- package/dist/lib/_virtual/index15.js +4 -0
- package/dist/lib/_virtual/index16.js +4 -0
- package/dist/lib/_virtual/index17.js +4 -0
- package/dist/lib/_virtual/index18.js +4 -0
- package/dist/lib/_virtual/index19.js +4 -0
- package/dist/lib/_virtual/index2.js +4 -0
- package/dist/lib/_virtual/index20.js +4 -0
- package/dist/lib/_virtual/index21.js +4 -0
- package/dist/lib/_virtual/index22.js +4 -0
- package/dist/lib/_virtual/index23.js +4 -0
- package/dist/lib/_virtual/index3.js +4 -0
- package/dist/lib/_virtual/index4.js +5 -0
- package/dist/lib/_virtual/index5.js +4 -0
- package/dist/lib/_virtual/index6.js +4 -0
- package/dist/lib/_virtual/index7.js +6 -0
- package/dist/lib/_virtual/index8.js +6 -0
- package/dist/lib/_virtual/index9.js +4 -0
- package/dist/lib/_virtual/inherits.js +4 -0
- package/dist/lib/_virtual/internal-metadata.js +4 -0
- package/dist/lib/_virtual/is-binary.js +4 -0
- package/dist/lib/_virtual/iterableToArray.js +4 -0
- package/dist/lib/_virtual/iterableToArrayLimit.js +4 -0
- package/dist/lib/_virtual/jquery.js +4 -0
- package/dist/lib/_virtual/jspdf.es.min.js +5 -0
- package/dist/lib/_virtual/linearizeEncodings.js +4 -0
- package/dist/lib/_virtual/make-built-in.js +4 -0
- package/dist/lib/_virtual/manager.js +4 -0
- package/dist/lib/_virtual/mask-pattern.js +4 -0
- package/dist/lib/_virtual/merge.js +4 -0
- package/dist/lib/_virtual/mode.js +4 -0
- package/dist/lib/_virtual/new-promise-capability.js +4 -0
- package/dist/lib/_virtual/nonIterableRest.js +4 -0
- package/dist/lib/_virtual/nonIterableSpread.js +4 -0
- package/dist/lib/_virtual/object-define-properties.js +4 -0
- package/dist/lib/_virtual/object-define-property.js +4 -0
- package/dist/lib/_virtual/object-get-own-property-descriptor.js +4 -0
- package/dist/lib/_virtual/object-get-own-property-names-external.js +4 -0
- package/dist/lib/_virtual/object-get-own-property-names.js +4 -0
- package/dist/lib/_virtual/object-get-own-property-symbols.js +4 -0
- package/dist/lib/_virtual/object-property-is-enumerable.js +4 -0
- package/dist/lib/_virtual/object.js +4 -0
- package/dist/lib/_virtual/on.js +4 -0
- package/dist/lib/_virtual/optionsFromStrings.js +4 -0
- package/dist/lib/_virtual/parseqs.js +4 -0
- package/dist/lib/_virtual/parseuri.js +4 -0
- package/dist/lib/_virtual/performance-now.js +4 -0
- package/dist/lib/_virtual/polling.js +4 -0
- package/dist/lib/_virtual/polynomial.js +4 -0
- package/dist/lib/_virtual/possibleConstructorReturn.js +4 -0
- package/dist/lib/_virtual/qrcode.js +4 -0
- package/dist/lib/_virtual/regeneratorRuntime.js +4 -0
- package/dist/lib/_virtual/regex.js +4 -0
- package/dist/lib/_virtual/segments.js +4 -0
- package/dist/lib/_virtual/setPrototypeOf.js +4 -0
- package/dist/lib/_virtual/shared-store.js +4 -0
- package/dist/lib/_virtual/shared.js +4 -0
- package/dist/lib/_virtual/slicedToArray.js +4 -0
- package/dist/lib/_virtual/socket.js +4 -0
- package/dist/lib/_virtual/socket2.js +4 -0
- package/dist/lib/_virtual/stackblur-es.js +5 -0
- package/dist/lib/_virtual/superPropBase.js +4 -0
- package/dist/lib/_virtual/svg-tag.js +4 -0
- package/dist/lib/_virtual/svg.js +4 -0
- package/dist/lib/_virtual/toConsumableArray.js +4 -0
- package/dist/lib/_virtual/toPrimitive.js +4 -0
- package/dist/lib/_virtual/toPropertyKey.js +4 -0
- package/dist/lib/_virtual/transport.js +4 -0
- package/dist/lib/_virtual/typeof.js +4 -0
- package/dist/lib/_virtual/unsupportedIterableToArray.js +4 -0
- package/dist/lib/_virtual/url.js +4 -0
- package/dist/lib/_virtual/util.js +4 -0
- package/dist/lib/_virtual/utils.js +4 -0
- package/dist/lib/_virtual/utils2.js +4 -0
- package/dist/lib/_virtual/version-check.js +4 -0
- package/dist/lib/_virtual/version.js +4 -0
- package/dist/lib/_virtual/vue-plugin-hiprint.js +4 -0
- package/dist/lib/_virtual/web.dom-collections.for-each.js +4 -0
- package/dist/lib/_virtual/web.dom-collections.iterator.js +4 -0
- package/dist/lib/_virtual/web.dom-collections.iterator2.js +3 -0
- package/dist/lib/_virtual/websocket-constructor.browser.js +4 -0
- package/dist/lib/_virtual/websocket.js +4 -0
- package/dist/lib/_virtual/webtransport.js +4 -0
- package/dist/lib/_virtual/xmlhttprequest.browser.js +4 -0
- package/dist/lib/_virtual/yeast.js +4 -0
- package/dist/lib/assets/chart-themes/theme1.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme1.js +7 -0
- package/dist/lib/assets/chart-themes/theme2.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme2.js +7 -0
- package/dist/lib/assets/chart-themes/theme3.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme3.js +7 -0
- package/dist/lib/components/runtime/index.d.ts +4 -0
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +18 -0
- package/dist/lib/components/runtime/utils/api/api-util.js +298 -0
- package/dist/lib/components/runtime/utils/api/page-expose-util.d.ts +1 -0
- package/dist/lib/components/runtime/utils/api/page-expose-util.js +206 -0
- package/dist/lib/components/runtime/utils/assemblys-config.js +295 -0
- package/dist/lib/components/runtime/utils/barcode-util.d.ts +8 -0
- package/dist/lib/components/runtime/utils/barcode-util.js +36 -0
- package/dist/lib/components/runtime/utils/charts/chart-columnline-util.js +279 -0
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +74 -0
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +118 -0
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +100 -0
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +74 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +51 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.js +302 -0
- package/dist/lib/components/runtime/utils/common-util.d.ts +17 -0
- package/dist/lib/components/runtime/utils/common-util.js +108 -0
- package/dist/lib/components/runtime/utils/eventBus.d.ts +7 -0
- package/dist/lib/components/runtime/utils/eventBus.js +10 -0
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +68 -0
- package/dist/lib/components/runtime/utils/events/event-util.js +616 -0
- package/dist/lib/components/runtime/utils/events/print-label.d.ts +5 -0
- package/dist/lib/components/runtime/utils/events/print-label.js +153 -0
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +67 -0
- package/dist/lib/components/runtime/utils/events/standard-event.js +1817 -0
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +12 -0
- package/dist/lib/components/runtime/utils/events/validator-util.js +416 -0
- package/dist/lib/components/runtime/utils/form/date-shortcuts.d.ts +7 -0
- package/dist/lib/components/runtime/utils/form/date-shortcuts.js +96 -0
- package/dist/lib/components/runtime/utils/form/scan-util.js +194 -0
- package/dist/lib/components/runtime/utils/global-refs.d.ts +59 -0
- package/dist/lib/components/runtime/utils/global-refs.js +77 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +224 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +9 -0
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +134 -0
- package/dist/lib/components/runtime/utils/page-helper-util.js +668 -0
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +40 -0
- package/dist/lib/components/runtime/utils/page-init-util.js +266 -0
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +26 -0
- package/dist/lib/components/runtime/utils/page-permission-util.js +525 -0
- package/dist/lib/components/runtime/utils/store-util.d.ts +15 -0
- package/dist/lib/components/runtime/utils/store-util.js +17 -0
- package/dist/lib/components/runtime/utils/store.d.ts +2 -0
- package/dist/lib/components/runtime/utils/store.js +3 -0
- package/dist/lib/components/runtime/utils/table-utils.js +16 -0
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +54 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +35 -0
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +115 -0
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +95 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +144 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +43 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +61 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +127 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +106 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +141 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +115 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +117 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +24 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +147 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +35 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +127 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +26 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +104 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +72 -0
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +74 -0
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +79 -0
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +70 -0
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +50 -0
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +30 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +109 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +75 -0
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +183 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +673 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +455 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +88 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +22 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +22 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +120 -0
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +65 -0
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +149 -0
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +72 -0
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +42 -0
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +135 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +67 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +159 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +130 -0
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +78 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +29 -0
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +160 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +236 -0
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +204 -0
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +41 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +65 -0
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +66 -0
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +71 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +154 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +39 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +39 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +59 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +36 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +79 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +99 -0
- package/dist/lib/components/runtime/views/super-page.vue.js +525 -0
- package/dist/lib/components/runtime/views/super-page.vue2.js +3 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/i18n/langs/cn.js +53 -0
- package/dist/lib/i18n/langs/en.js +53 -0
- package/dist/lib/index.d.ts +13 -0
- package/dist/lib/index.js +22 -0
- package/package.json +1 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const pageHelperUtil = require("../page-helper-util.js");
|
|
4
|
+
const commonUtil = require("../common-util.js");
|
|
5
|
+
const chartUtil = require("./chart-util.js");
|
|
6
|
+
function updateChartOption(pageContext, configure, chartOption, resultData) {
|
|
7
|
+
if (!resultData || !resultData.result) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
const result = resultData && resultData.result ? resultData.result : {};
|
|
11
|
+
const groupValue = resultData && resultData.groupValue ? resultData.groupValue : [];
|
|
12
|
+
const dataSetField = configure.serviceDataField;
|
|
13
|
+
let datas = null;
|
|
14
|
+
if (dataSetField) {
|
|
15
|
+
datas = result[dataSetField];
|
|
16
|
+
} else {
|
|
17
|
+
if (result) {
|
|
18
|
+
if (Array.isArray(result)) {
|
|
19
|
+
datas = result;
|
|
20
|
+
} else {
|
|
21
|
+
datas = [result];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (!datas) {
|
|
26
|
+
datas = [];
|
|
27
|
+
}
|
|
28
|
+
let confGroups = configure.props ? configure.props.groups : null;
|
|
29
|
+
if (!confGroups) {
|
|
30
|
+
confGroups = [];
|
|
31
|
+
}
|
|
32
|
+
const groupMap = {};
|
|
33
|
+
const groupFields = [];
|
|
34
|
+
const realGroupFilds = [];
|
|
35
|
+
for (let g of confGroups) {
|
|
36
|
+
groupMap[g.group] = g.target;
|
|
37
|
+
if (g.target && !groupFields.includes(g.target)) {
|
|
38
|
+
groupFields.push(g.target);
|
|
39
|
+
if (groupValue.includes(g.group)) {
|
|
40
|
+
realGroupFilds.push(g.target);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
let mulGroupShow = configure.props ? configure.props.mulGroupShow : "";
|
|
45
|
+
mulGroupShow = mulGroupShow == "break" ? "\r\n" : " ";
|
|
46
|
+
for (let d of datas) {
|
|
47
|
+
if (!d) {
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
const xValues2 = [];
|
|
51
|
+
for (let g of groupValue) {
|
|
52
|
+
const fieldName = groupMap[g];
|
|
53
|
+
const value = pageHelperUtil.getValueFromSource(d, fieldName, void 0);
|
|
54
|
+
if (value) {
|
|
55
|
+
xValues2.push(value);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
const xValue = xValues2.join(mulGroupShow);
|
|
59
|
+
d[chartUtil.CommonName.X_FIELD_NAME] = xValue;
|
|
60
|
+
}
|
|
61
|
+
const itemConfs = configure.items ? configure.items : [];
|
|
62
|
+
if (itemConfs.length == 0) {
|
|
63
|
+
console.log("饼图的系列为空,操作失败!", configure);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
const valueField = configure.props ? configure.props.yaxisField : null;
|
|
67
|
+
console.log("valueField", valueField);
|
|
68
|
+
itemConfs[0].props.yaxisField = valueField;
|
|
69
|
+
chartUtil.sortDatas(pageContext, configure, datas);
|
|
70
|
+
datas = chartUtil.limitDatas(pageContext, configure, datas, groupFields, [valueField]);
|
|
71
|
+
const xValues = [];
|
|
72
|
+
const yValues = [];
|
|
73
|
+
for (let data of datas) {
|
|
74
|
+
if (!data) {
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
xValues.push(data[chartUtil.CommonName.X_FIELD_NAME]);
|
|
78
|
+
let value = pageHelperUtil.getValueFromSource(data, valueField, void 0);
|
|
79
|
+
yValues.push(value);
|
|
80
|
+
}
|
|
81
|
+
const defaultSeries = configure.defaultSeries;
|
|
82
|
+
let pieColors = defaultSeries[0].pieColors;
|
|
83
|
+
pieColors = pieColors ? pieColors : [];
|
|
84
|
+
let pieColorMap = defaultSeries[0].pieColorMap;
|
|
85
|
+
pieColorMap = pieColorMap ? pieColorMap : {};
|
|
86
|
+
const pieDatas = [];
|
|
87
|
+
for (let index = 0; index < xValues.length && index < yValues.length; index++) {
|
|
88
|
+
const data = {
|
|
89
|
+
value: yValues[index],
|
|
90
|
+
name: xValues[index]
|
|
91
|
+
};
|
|
92
|
+
if (index < pieColors.length || pieColorMap[data.name]) {
|
|
93
|
+
let color = pieColorMap[data.name];
|
|
94
|
+
if (!color) {
|
|
95
|
+
color = pieColors[index];
|
|
96
|
+
}
|
|
97
|
+
if (color) {
|
|
98
|
+
data.itemStyle = {
|
|
99
|
+
color
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
pieDatas.push(data);
|
|
104
|
+
}
|
|
105
|
+
const tempSeries = commonUtil.deepCopy(defaultSeries);
|
|
106
|
+
tempSeries[0].data = pieDatas;
|
|
107
|
+
chartOption.series = [tempSeries[0]];
|
|
108
|
+
const selGroupVariable = configure.props ? configure.props.selGroupVariable : null;
|
|
109
|
+
const enableDrill = configure.props ? configure.props.enableDrill : null;
|
|
110
|
+
if (!enableDrill && selGroupVariable) {
|
|
111
|
+
configure.highlightInfos = [];
|
|
112
|
+
pageHelperUtil.setValueForVariableName(pageContext.entity, selGroupVariable, null);
|
|
113
|
+
}
|
|
114
|
+
configure.groupFields = realGroupFilds;
|
|
115
|
+
configure.cacheDatas = datas;
|
|
116
|
+
configure.rawResult = resultData;
|
|
117
|
+
}
|
|
118
|
+
exports.updateChartOption = updateChartOption;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const pageHelperUtil = require("../page-helper-util.js");
|
|
4
|
+
const commonUtil = require("../common-util.js");
|
|
5
|
+
function updateChartOption(pageContext, configure, chartOption, resultData) {
|
|
6
|
+
if (!resultData || !resultData.result) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
const result = resultData && resultData.result ? resultData.result : {};
|
|
10
|
+
const dataSetField = configure.serviceDataField;
|
|
11
|
+
let datas = null;
|
|
12
|
+
if (dataSetField) {
|
|
13
|
+
datas = result[dataSetField];
|
|
14
|
+
} else {
|
|
15
|
+
if (result) {
|
|
16
|
+
if (Array.isArray(result)) {
|
|
17
|
+
datas = result;
|
|
18
|
+
} else {
|
|
19
|
+
datas = [result];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
if (!datas) {
|
|
24
|
+
datas = [];
|
|
25
|
+
}
|
|
26
|
+
const itemConfs = configure.items ? configure.items : [];
|
|
27
|
+
const dataConfs = [];
|
|
28
|
+
const dataValueMap = {};
|
|
29
|
+
for (let item of itemConfs) {
|
|
30
|
+
const itemProps = item.props ? item.props : {};
|
|
31
|
+
const sourceType = itemProps.yaxisSource;
|
|
32
|
+
const yaxisField = itemProps.yaxisField;
|
|
33
|
+
let dataConf = null;
|
|
34
|
+
if (yaxisField && (!sourceType || sourceType == "variable")) {
|
|
35
|
+
dataConf = {
|
|
36
|
+
uuid: item.uuid,
|
|
37
|
+
type: "variable",
|
|
38
|
+
field: yaxisField,
|
|
39
|
+
data: []
|
|
40
|
+
};
|
|
41
|
+
} else {
|
|
42
|
+
dataConf = {
|
|
43
|
+
uuid: item.uuid,
|
|
44
|
+
type: "fixed",
|
|
45
|
+
field: itemProps.yaxisFix,
|
|
46
|
+
data: []
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
if (dataConf) {
|
|
50
|
+
dataConfs.push(dataConf);
|
|
51
|
+
dataValueMap[dataConf.uuid] = dataConf;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const confProps = configure.props ? configure.props : {};
|
|
55
|
+
const nameField = confProps.nameField;
|
|
56
|
+
const maxSource = confProps.maxSource;
|
|
57
|
+
const maxField = confProps.maxField;
|
|
58
|
+
const maxFixed = confProps.maxFixed;
|
|
59
|
+
const indicators = [];
|
|
60
|
+
for (let d of datas) {
|
|
61
|
+
if (!d) {
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
const name = pageHelperUtil.getValueFromSource(d, nameField, void 0);
|
|
65
|
+
let maxValue = null;
|
|
66
|
+
if (!maxSource || maxSource == "variable") {
|
|
67
|
+
maxValue = pageHelperUtil.getValueFromSource(d, maxField, void 0);
|
|
68
|
+
} else {
|
|
69
|
+
maxValue = maxFixed;
|
|
70
|
+
}
|
|
71
|
+
indicators.push({
|
|
72
|
+
text: name,
|
|
73
|
+
max: maxValue
|
|
74
|
+
});
|
|
75
|
+
for (let item of dataConfs) {
|
|
76
|
+
let data = item.data;
|
|
77
|
+
if (item.type == "fixed") {
|
|
78
|
+
data.push(item.field);
|
|
79
|
+
} else if (item.type == "variable") {
|
|
80
|
+
let value = pageHelperUtil.getValueFromSource(d, item.field, void 0);
|
|
81
|
+
data.push(value);
|
|
82
|
+
} else {
|
|
83
|
+
data.push(void 0);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
chartOption.radar[0].indicator = indicators;
|
|
88
|
+
const defaultSeries = configure.defaultSeries;
|
|
89
|
+
console.log("defaultSeries", defaultSeries);
|
|
90
|
+
const tempSeries = commonUtil.deepCopy(defaultSeries);
|
|
91
|
+
const serieDatas = tempSeries[0].data;
|
|
92
|
+
for (let serieData of serieDatas) {
|
|
93
|
+
const dataValue = dataValueMap[serieData.uuid];
|
|
94
|
+
serieData.value = dataValue.data;
|
|
95
|
+
}
|
|
96
|
+
chartOption.series = tempSeries;
|
|
97
|
+
configure.cacheDatas = datas;
|
|
98
|
+
configure.rawResult = resultData;
|
|
99
|
+
}
|
|
100
|
+
exports.updateChartOption = updateChartOption;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const pageHelperUtil = require("../page-helper-util.js");
|
|
4
|
+
const commonUtil = require("../common-util.js");
|
|
5
|
+
function updateChartOption(pageContext, configure, chartOption, resultData) {
|
|
6
|
+
if (!resultData || !resultData.result) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
const result = resultData && resultData.result ? resultData.result : {};
|
|
10
|
+
const dataSetField = configure.serviceDataField;
|
|
11
|
+
let datas = null;
|
|
12
|
+
if (dataSetField) {
|
|
13
|
+
datas = result[dataSetField];
|
|
14
|
+
} else {
|
|
15
|
+
if (result) {
|
|
16
|
+
if (Array.isArray(result)) {
|
|
17
|
+
datas = result;
|
|
18
|
+
} else {
|
|
19
|
+
datas = [result];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
if (!datas) {
|
|
24
|
+
datas = [];
|
|
25
|
+
}
|
|
26
|
+
const itemConfs = configure.items ? configure.items : [];
|
|
27
|
+
const dataConfs = [];
|
|
28
|
+
const dataValueMap = {};
|
|
29
|
+
for (let item of itemConfs) {
|
|
30
|
+
const itemProps = item.props ? item.props : {};
|
|
31
|
+
const itemStyle = item.props ? item.style : {};
|
|
32
|
+
const xaxisField = itemProps.yaxisField;
|
|
33
|
+
const yaxisField = itemProps.yaxisField;
|
|
34
|
+
const sizeField = itemProps.sizeField;
|
|
35
|
+
let dataConf = {
|
|
36
|
+
uuid: item.uuid,
|
|
37
|
+
xaxisField,
|
|
38
|
+
yaxisField,
|
|
39
|
+
sizeField,
|
|
40
|
+
symbolSize: itemStyle.symbolSize,
|
|
41
|
+
data: []
|
|
42
|
+
};
|
|
43
|
+
dataConfs.push(dataConf);
|
|
44
|
+
dataValueMap[dataConf.uuid] = dataConf;
|
|
45
|
+
}
|
|
46
|
+
for (let d of datas) {
|
|
47
|
+
if (!d) {
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
for (let item of dataConfs) {
|
|
51
|
+
let data = item.data;
|
|
52
|
+
const values = [];
|
|
53
|
+
values.push(pageHelperUtil.getValueFromSource(d, item.xaxisField, void 0));
|
|
54
|
+
values.push(pageHelperUtil.getValueFromSource(d, item.yaxisField, void 0));
|
|
55
|
+
if (item.sizeField) {
|
|
56
|
+
values.push(pageHelperUtil.getValueFromSource(d, item.xaxisField, void 0));
|
|
57
|
+
} else {
|
|
58
|
+
values.push(item.symbolSize);
|
|
59
|
+
}
|
|
60
|
+
data.push(values);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
const defaultSeries = configure.defaultSeries;
|
|
64
|
+
console.log("defaultSeries", defaultSeries);
|
|
65
|
+
const tempSeries = commonUtil.deepCopy(defaultSeries);
|
|
66
|
+
for (let serie of tempSeries) {
|
|
67
|
+
const dataValue = dataValueMap[serie.uuid];
|
|
68
|
+
serie.data = dataValue.data;
|
|
69
|
+
}
|
|
70
|
+
chartOption.series = tempSeries;
|
|
71
|
+
configure.cacheDatas = datas;
|
|
72
|
+
configure.rawResult = resultData;
|
|
73
|
+
}
|
|
74
|
+
exports.updateChartOption = updateChartOption;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { PageContext, Component } from '../interfaces/page-design-types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 统计图通用字段名
|
|
5
|
+
*/
|
|
6
|
+
export declare enum CommonName {
|
|
7
|
+
X_FIELD_NAME = "__x"
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 获取主题对象
|
|
11
|
+
* @param themeName 获取自定义的主题名称
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export declare function getCustomTheme(themeName: string): any;
|
|
15
|
+
/**
|
|
16
|
+
* 获取所有主题对象
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
export declare function getCustomThemeOptions(): Array<any>;
|
|
20
|
+
/**
|
|
21
|
+
* 获取数据的格式化方法
|
|
22
|
+
* @param labelNumFormat
|
|
23
|
+
* @param labelNumPrecision
|
|
24
|
+
* @param isValueFormatter 是否值格式化,value: number | string, dataIndex: number
|
|
25
|
+
* @returns
|
|
26
|
+
*/
|
|
27
|
+
export declare function getNumFormatter(labelNumFormat: any, numPrecision: any, numPrefix: any, numAppend: any, isValueFormatter: any): (params: any) => any;
|
|
28
|
+
/**
|
|
29
|
+
* 初始化格式化方法
|
|
30
|
+
* @param pageContext
|
|
31
|
+
* @param configure
|
|
32
|
+
* @param chartOption
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
export declare function initChartOption(configure: Component, chartOption: any): void;
|
|
36
|
+
/**
|
|
37
|
+
* 统计图选中时把维度值设置到变量中
|
|
38
|
+
* @param pageContext
|
|
39
|
+
* @param configure
|
|
40
|
+
* @param chart
|
|
41
|
+
* @param variable
|
|
42
|
+
*/
|
|
43
|
+
export declare function monitorChartClickToVariable(pageContext: PageContext, configure: Component, chart: any, variable: string): void;
|
|
44
|
+
export declare function sortDatas(pageContext: PageContext, configure: Component, datas: Array<any>): void;
|
|
45
|
+
/**
|
|
46
|
+
* 限制显示数量
|
|
47
|
+
* @param datas
|
|
48
|
+
* @param groupFields
|
|
49
|
+
* @param limitNum
|
|
50
|
+
*/
|
|
51
|
+
export declare function limitDatas(pageContext: PageContext, configure: Component, datas: Array<any>, groupFields: Array<string>, numFields: Array<string>): Array<any>;
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const theme1 = require("../../../../assets/chart-themes/theme1.js");
|
|
4
|
+
const theme2 = require("../../../../assets/chart-themes/theme2.js");
|
|
5
|
+
const theme3 = require("../../../../assets/chart-themes/theme3.js");
|
|
6
|
+
const pageHelperUtil = require("../page-helper-util.js");
|
|
7
|
+
var CommonName = /* @__PURE__ */ ((CommonName2) => {
|
|
8
|
+
CommonName2["X_FIELD_NAME"] = "__x";
|
|
9
|
+
return CommonName2;
|
|
10
|
+
})(CommonName || {});
|
|
11
|
+
const themeMap = {
|
|
12
|
+
theme1,
|
|
13
|
+
theme2,
|
|
14
|
+
theme3
|
|
15
|
+
};
|
|
16
|
+
function getCustomTheme(themeName) {
|
|
17
|
+
console.log("getdd", themeName);
|
|
18
|
+
return themeMap[themeName];
|
|
19
|
+
}
|
|
20
|
+
function getCustomThemeOptions() {
|
|
21
|
+
return [
|
|
22
|
+
{
|
|
23
|
+
value: "theme1",
|
|
24
|
+
label: "主题1"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
value: "theme2",
|
|
28
|
+
label: "主题2"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
value: "theme3",
|
|
32
|
+
label: "主题3"
|
|
33
|
+
}
|
|
34
|
+
];
|
|
35
|
+
}
|
|
36
|
+
function getNumFormatter(labelNumFormat, numPrecision, numPrefix, numAppend, isValueFormatter) {
|
|
37
|
+
const func = function(params) {
|
|
38
|
+
let labelValue = params.value;
|
|
39
|
+
if (isValueFormatter) {
|
|
40
|
+
labelValue = params;
|
|
41
|
+
}
|
|
42
|
+
if (labelValue == void 0 || labelValue == null) {
|
|
43
|
+
return labelValue;
|
|
44
|
+
}
|
|
45
|
+
if (Array.isArray(labelValue)) {
|
|
46
|
+
console.log("numformatter is array", labelValue);
|
|
47
|
+
return labelValue;
|
|
48
|
+
}
|
|
49
|
+
if (isNaN(labelValue) || !labelNumFormat || !labelNumFormat.indexOf) {
|
|
50
|
+
return labelValue;
|
|
51
|
+
}
|
|
52
|
+
if (labelNumFormat.indexOf("precision") > -1) {
|
|
53
|
+
let precision = parseInt(numPrecision);
|
|
54
|
+
if (precision == null || isNaN(precision)) {
|
|
55
|
+
precision = 2;
|
|
56
|
+
}
|
|
57
|
+
labelValue = parseFloat(parseFloat(labelValue).toFixed(precision));
|
|
58
|
+
}
|
|
59
|
+
let prefix = "";
|
|
60
|
+
if (labelNumFormat.indexOf("prefix") > -1 && numPrefix) {
|
|
61
|
+
prefix = numPrefix;
|
|
62
|
+
}
|
|
63
|
+
let append = "";
|
|
64
|
+
if (labelNumFormat.indexOf("append") > -1 && numAppend) {
|
|
65
|
+
append = numAppend;
|
|
66
|
+
}
|
|
67
|
+
return prefix + labelValue.toLocaleString() + append;
|
|
68
|
+
};
|
|
69
|
+
return func;
|
|
70
|
+
}
|
|
71
|
+
function initChartOption(configure, chartOption) {
|
|
72
|
+
if (!chartOption) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
if (chartOption.tooltipFormatterArgs) {
|
|
76
|
+
if (!chartOption.tooltip) {
|
|
77
|
+
chartOption.tooltip = {};
|
|
78
|
+
}
|
|
79
|
+
chartOption.tooltip.valueFormatter = getNumFormatter.apply(
|
|
80
|
+
chartOption,
|
|
81
|
+
chartOption.tooltipFormatterArgs
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
if (chartOption.series) {
|
|
85
|
+
const enableDrill = configure.props ? configure.props.enableDrill : null;
|
|
86
|
+
const selGroupVariable = configure.props ? configure.props.selGroupVariable : null;
|
|
87
|
+
for (let s of chartOption.series) {
|
|
88
|
+
if (!chartOption.radar) {
|
|
89
|
+
s.data = [];
|
|
90
|
+
}
|
|
91
|
+
if (s.labelFormatterArgs) {
|
|
92
|
+
if (!s.label) {
|
|
93
|
+
s.label = {};
|
|
94
|
+
}
|
|
95
|
+
s.label.formatter = getNumFormatter.apply(s, s.labelFormatterArgs);
|
|
96
|
+
}
|
|
97
|
+
if (!enableDrill && selGroupVariable) {
|
|
98
|
+
if (s.emphasis) {
|
|
99
|
+
s.emphasis.disabled = false;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
if (chartOption.radar) {
|
|
105
|
+
for (let r of chartOption.radar) {
|
|
106
|
+
r.indicator = [];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
const defaultSeries = chartOption.series;
|
|
110
|
+
configure.defaultSeries = defaultSeries;
|
|
111
|
+
const defaultXaxis = chartOption.xAxis;
|
|
112
|
+
if (defaultXaxis && defaultXaxis.length > 0 && defaultXaxis[0].data) {
|
|
113
|
+
defaultXaxis[0].data = [];
|
|
114
|
+
}
|
|
115
|
+
configure.defaultXaxis = defaultXaxis;
|
|
116
|
+
const defaultYaxis = chartOption.yAxis;
|
|
117
|
+
if (defaultYaxis) {
|
|
118
|
+
for (let yAxis of defaultYaxis) {
|
|
119
|
+
if (yAxis.data) {
|
|
120
|
+
yAxis.data = [];
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
configure.defaultYaxis = defaultYaxis;
|
|
125
|
+
}
|
|
126
|
+
function monitorChartClickToVariable(pageContext, configure, chart, variable) {
|
|
127
|
+
if (!chart || !variable || !configure || !pageContext) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
chart.on("click", function(params) {
|
|
131
|
+
let highlightInfos = configure.highlightInfos;
|
|
132
|
+
let hasSelect = false;
|
|
133
|
+
let selGroupValue = null;
|
|
134
|
+
if (highlightInfos) {
|
|
135
|
+
for (let i = 0; i < highlightInfos.length; i++) {
|
|
136
|
+
let info = highlightInfos[i];
|
|
137
|
+
chart.dispatchAction({
|
|
138
|
+
type: "downplay",
|
|
139
|
+
seriesIndex: info.seriesIndex,
|
|
140
|
+
dataIndex: info.dataIndex
|
|
141
|
+
});
|
|
142
|
+
if (info.seriesIndex == params.seriesIndex && info.dataIndex == params.dataIndex) {
|
|
143
|
+
hasSelect = true;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
highlightInfos = [];
|
|
148
|
+
if (!hasSelect) {
|
|
149
|
+
chart.dispatchAction({
|
|
150
|
+
type: "highlight",
|
|
151
|
+
seriesIndex: params.seriesIndex,
|
|
152
|
+
dataIndex: params.dataIndex
|
|
153
|
+
});
|
|
154
|
+
highlightInfos.push({
|
|
155
|
+
seriesIndex: params.seriesIndex,
|
|
156
|
+
dataIndex: params.dataIndex
|
|
157
|
+
});
|
|
158
|
+
const caheDatas = configure.cacheDatas;
|
|
159
|
+
const groupFields = configure.groupFields;
|
|
160
|
+
console.log("selsssss", caheDatas, groupFields);
|
|
161
|
+
if (caheDatas && params.dataIndex < caheDatas.length && groupFields && configure.groupFields.length > 0) {
|
|
162
|
+
const data = caheDatas[params.dataIndex];
|
|
163
|
+
selGroupValue = pageHelperUtil.getValueFromSource(data, groupFields[0], void 0);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
configure.highlightInfos = highlightInfos;
|
|
167
|
+
pageHelperUtil.setValueForVariableName(pageContext.entity, variable, selGroupValue);
|
|
168
|
+
console.log("variable params", params);
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
function sortDatas(pageContext, configure, datas) {
|
|
172
|
+
const itemConfs = configure.items ? configure.items : [];
|
|
173
|
+
let orderByTarget = configure.props ? configure.props.orderByTarget : "";
|
|
174
|
+
let orderField = null;
|
|
175
|
+
if (orderByTarget == "x" || orderByTarget == "X") {
|
|
176
|
+
orderField = "__x";
|
|
177
|
+
} else if (orderByTarget) {
|
|
178
|
+
for (let item of itemConfs) {
|
|
179
|
+
if (item.uuid == orderByTarget) {
|
|
180
|
+
const itemProps = item.props ? item.props : {};
|
|
181
|
+
const sourceType = itemProps.yaxisSource;
|
|
182
|
+
const yaxisField = itemProps.yaxisField;
|
|
183
|
+
if (yaxisField && (!sourceType || sourceType == "variable")) {
|
|
184
|
+
orderField = yaxisField;
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
if (!orderField) {
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
let orderSource = configure.props ? configure.props.orderSource : "";
|
|
194
|
+
let orderValue = configure.props ? configure.props.orderFix : "";
|
|
195
|
+
if (orderSource == "variable") {
|
|
196
|
+
let orderVariable = configure.props ? configure.props.orderVariable : "";
|
|
197
|
+
orderValue = pageHelperUtil.formatVariableValue(pageContext, orderVariable);
|
|
198
|
+
}
|
|
199
|
+
orderValue = orderValue == "desc" || orderValue == "DESC" ? "desc" : "asc";
|
|
200
|
+
let maxLen = datas.length;
|
|
201
|
+
for (let i = 0; i < maxLen - 1; i++) {
|
|
202
|
+
let vali = pageHelperUtil.getValueFromSource(datas[i], orderField, void 0);
|
|
203
|
+
for (let j = i + 1; j < maxLen; j++) {
|
|
204
|
+
let valj = pageHelperUtil.getValueFromSource(datas[j], orderField, void 0);
|
|
205
|
+
let isSwap = false;
|
|
206
|
+
if ("desc" == orderValue) {
|
|
207
|
+
if (vali < valj) {
|
|
208
|
+
isSwap = true;
|
|
209
|
+
}
|
|
210
|
+
} else {
|
|
211
|
+
if (vali > valj) {
|
|
212
|
+
isSwap = true;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
if (isSwap) {
|
|
216
|
+
[datas[i], datas[j]] = [datas[j], datas[i]];
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
function limitDatas(pageContext, configure, datas, groupFields, numFields) {
|
|
222
|
+
if (!datas) {
|
|
223
|
+
return datas;
|
|
224
|
+
}
|
|
225
|
+
const confProps = configure.props ? configure.props : {};
|
|
226
|
+
if (!confProps.limitQuantity) {
|
|
227
|
+
return datas;
|
|
228
|
+
}
|
|
229
|
+
let limitNum = null;
|
|
230
|
+
if (confProps.itemNumVariable) {
|
|
231
|
+
limitNum = pageHelperUtil.formatVariableValue(pageContext, confProps.itemNumVariable);
|
|
232
|
+
limitNum = parseInt(limitNum);
|
|
233
|
+
} else {
|
|
234
|
+
limitNum = confProps.itemNumFix ? confProps.itemNumFix : 10;
|
|
235
|
+
}
|
|
236
|
+
if (limitNum == null || limitNum == void 0 || isNaN(limitNum)) {
|
|
237
|
+
return datas;
|
|
238
|
+
}
|
|
239
|
+
if (datas.length < limitNum) {
|
|
240
|
+
return datas;
|
|
241
|
+
}
|
|
242
|
+
const overItemAlias = confProps.overItemAlias;
|
|
243
|
+
const newDatas = [];
|
|
244
|
+
const otherData = {};
|
|
245
|
+
groupFields = groupFields ? groupFields : [];
|
|
246
|
+
numFields = numFields ? numFields : [];
|
|
247
|
+
for (let i = 0; i < datas.length; i++) {
|
|
248
|
+
const data = datas[i];
|
|
249
|
+
if (i < limitNum) {
|
|
250
|
+
newDatas.push(data);
|
|
251
|
+
continue;
|
|
252
|
+
}
|
|
253
|
+
if (!overItemAlias) {
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
for (let groupField of groupFields) {
|
|
257
|
+
if (!groupField) {
|
|
258
|
+
continue;
|
|
259
|
+
}
|
|
260
|
+
let value = pageHelperUtil.getValueFromSource(data, groupField, void 0);
|
|
261
|
+
value = value == null || value == void 0 ? "" : value;
|
|
262
|
+
if (!otherData[groupField]) {
|
|
263
|
+
otherData[groupField] = [];
|
|
264
|
+
}
|
|
265
|
+
const existValues = otherData[groupField];
|
|
266
|
+
if (!existValues.includes(value)) {
|
|
267
|
+
existValues.push(value);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
for (let numField of numFields) {
|
|
271
|
+
if (!numField) {
|
|
272
|
+
continue;
|
|
273
|
+
}
|
|
274
|
+
let value = pageHelperUtil.getValueFromSource(data, numField, void 0);
|
|
275
|
+
if (isNaN(value)) {
|
|
276
|
+
continue;
|
|
277
|
+
}
|
|
278
|
+
const hisValue = otherData[numField];
|
|
279
|
+
if (isNaN(hisValue)) {
|
|
280
|
+
otherData[numField] = value;
|
|
281
|
+
} else {
|
|
282
|
+
otherData[numField] = value + hisValue;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
if (overItemAlias) {
|
|
287
|
+
otherData[
|
|
288
|
+
"__x"
|
|
289
|
+
/* X_FIELD_NAME */
|
|
290
|
+
] = overItemAlias;
|
|
291
|
+
newDatas.push(otherData);
|
|
292
|
+
}
|
|
293
|
+
return newDatas;
|
|
294
|
+
}
|
|
295
|
+
exports.CommonName = CommonName;
|
|
296
|
+
exports.getCustomTheme = getCustomTheme;
|
|
297
|
+
exports.getCustomThemeOptions = getCustomThemeOptions;
|
|
298
|
+
exports.getNumFormatter = getNumFormatter;
|
|
299
|
+
exports.initChartOption = initChartOption;
|
|
300
|
+
exports.limitDatas = limitDatas;
|
|
301
|
+
exports.monitorChartClickToVariable = monitorChartClickToVariable;
|
|
302
|
+
exports.sortDatas = sortDatas;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare function isArrayFn(value: any): boolean;
|
|
2
|
+
export declare function getBaseUrl(backendUrl: any, isTest?: boolean): any;
|
|
3
|
+
export declare function getRealRestApiPath(orgRestApiPath: any, systemCode: any, backendUrl: any): any;
|
|
4
|
+
/**
|
|
5
|
+
* 封装模板文件列表
|
|
6
|
+
* @param templateFiles
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare function packageTemplateFiles(templateFiles: any): any;
|
|
10
|
+
export declare function upperFirstCase(str: any): any;
|
|
11
|
+
export declare function getListCode(pageCode: any, pageVersion: any, tableUuid: any): string;
|
|
12
|
+
/**
|
|
13
|
+
* 深度复制
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export declare function deepCopy(srcObj: any): any;
|
|
17
|
+
export declare function getWorkflowId(pageContext: any): any;
|