super-page-runtime 2.3.17-sit4 → 2.3.18-tmp1
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/page-expose-util.js +70 -70
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +26 -25
- package/dist/es/components/runtime/utils/events/standard-event.js +10 -10
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.d.ts +2 -1
- package/dist/es/components/runtime/utils/page-init-util.js +87 -66
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -93
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +8 -8
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +35 -35
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +35 -34
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -3
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +13 -11
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
- package/dist/es/components/runtime/views/super-page.vue.d.ts +9 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +141 -132
- package/dist/es/style.css +76 -76
- 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/CODE93.js +4 -0
- package/dist/lib/_virtual/CODE93FullASCII.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/OverloadYield.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/_commonjsHelpers.js +33 -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/clipboard.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/constants4.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/globals.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/index24.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 +4 -0
- package/dist/lib/_virtual/index8.js +6 -0
- package/dist/lib/_virtual/index9.js +6 -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-fetch.js +4 -0
- package/dist/lib/_virtual/polling-xhr.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/regenerator.js +4 -0
- package/dist/lib/_virtual/regeneratorAsync.js +4 -0
- package/dist/lib/_virtual/regeneratorAsyncGen.js +4 -0
- package/dist/lib/_virtual/regeneratorAsyncIterator.js +4 -0
- package/dist/lib/_virtual/regeneratorDefine.js +4 -0
- package/dist/lib/_virtual/regeneratorKeys.js +4 -0
- package/dist/lib/_virtual/regeneratorRuntime.js +4 -0
- package/dist/lib/_virtual/regeneratorValues.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.js +4 -0
- package/dist/lib/_virtual/webtransport.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/assets/file.png.js +3 -0
- package/dist/lib/assets/folder.png.js +3 -0
- package/dist/lib/components/runtime/index.d.ts +5 -0
- package/dist/lib/components/runtime/utils/ai-chat-util.js +38 -0
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +1 -0
- package/dist/lib/components/runtime/utils/api/api-util.js +9 -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 +494 -0
- package/dist/lib/components/runtime/utils/assemblys-config.js +384 -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 +327 -0
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +77 -0
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +162 -0
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +130 -0
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +106 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +113 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.js +550 -0
- package/dist/lib/components/runtime/utils/common-util.d.ts +33 -0
- package/dist/lib/components/runtime/utils/common-util.js +219 -0
- package/dist/lib/components/runtime/utils/eventBus.d.ts +7 -0
- package/dist/lib/components/runtime/utils/eventBus.js +9 -0
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +92 -0
- package/dist/lib/components/runtime/utils/events/event-util.js +752 -0
- package/dist/lib/components/runtime/utils/events/print-label.d.ts +5 -0
- package/dist/lib/components/runtime/utils/events/print-label.js +174 -0
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +96 -0
- package/dist/lib/components/runtime/utils/events/standard-event.js +2837 -0
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +25 -0
- package/dist/lib/components/runtime/utils/events/validator-util.js +730 -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 +65 -0
- package/dist/lib/components/runtime/utils/global-refs.js +88 -0
- package/dist/lib/components/runtime/utils/i18n-util.d.ts +1 -0
- package/dist/lib/components/runtime/utils/i18n-util.js +23 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +247 -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 +174 -0
- package/dist/lib/components/runtime/utils/page-helper-util.js +767 -0
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +48 -0
- package/dist/lib/components/runtime/utils/page-init-util.js +502 -0
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +26 -0
- package/dist/lib/components/runtime/utils/page-permission-util.js +717 -0
- package/dist/lib/components/runtime/utils/page-store.d.ts +46 -0
- package/dist/lib/components/runtime/utils/page-store.js +71 -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.d.ts +34 -0
- package/dist/lib/components/runtime/utils/table-utils.js +126 -0
- package/dist/lib/components/runtime/utils/tree-utils.js +121 -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 +118 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +55 -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 +135 -0
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +19 -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 +110 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +213 -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 +208 -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/common/common-homepage-search.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +179 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +121 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +171 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +122 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +132 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +121 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.js +786 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +43 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.js +63 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.js +169 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +63 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +631 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +28 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +163 -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 +90 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.d.ts +26 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.js +76 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.d.ts +35 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +114 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts +31 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +181 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-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 +122 -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 +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +106 -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 +85 -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 +89 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +99 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +94 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +224 -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 +82 -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 +69 -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 +40 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +272 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +144 -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 +184 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +943 -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 +718 -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 +187 -0
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +531 -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 +163 -0
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +101 -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/custom/custom-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +212 -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 +290 -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 +176 -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 +61 -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 +225 -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 +116 -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 +310 -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 +176 -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 +109 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +52 -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 +208 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +287 -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 +364 -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 +54 -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 +168 -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 +132 -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 +116 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.js +169 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue2.js +3 -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 +265 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +209 -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 +47 -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 +50 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +64 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +58 -0
- package/dist/lib/components/runtime/views/home-chart.vue.d.ts +23 -0
- package/dist/lib/components/runtime/views/home-chart.vue.js +168 -0
- package/dist/lib/components/runtime/views/home-chart.vue2.js +3 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +40 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +154 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue3.js +4 -0
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +126 -0
- package/dist/lib/components/runtime/views/super-page.vue.js +6 -0
- package/dist/lib/components/runtime/views/super-page.vue2.js +856 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/i18n/langs/cn.js +78 -0
- package/dist/lib/i18n/langs/en.js +78 -0
- package/dist/lib/index.d.ts +16 -0
- package/dist/lib/index.js +30 -0
- package/dist/lib/style.css +1169 -0
- package/package.json +2 -2
|
@@ -0,0 +1,767 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const request = require("../../../node_modules/.pnpm/agilebuilder-ui@1.1.58_@vue_29e6d749740d5c0a82211de8e577b320/node_modules/agilebuilder-ui/src/utils/request.js");
|
|
4
|
+
const dayjs_min = require("../../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js");
|
|
5
|
+
const calculatorUtil = require("../../../node_modules/.pnpm/agilebuilder-ui@1.1.58_@vue_29e6d749740d5c0a82211de8e577b320/node_modules/agilebuilder-ui/src/utils/calculator/calculator-util.js");
|
|
6
|
+
const globalRefs = require("./global-refs.js");
|
|
7
|
+
const Vue = require("vue");
|
|
8
|
+
const commonUtil = require("./common-util.js");
|
|
9
|
+
function getComponentOptionConfigs(component, pageContext2, systemCode, systemVersion) {
|
|
10
|
+
return getComponentOptionConfigsBase(
|
|
11
|
+
component,
|
|
12
|
+
(pageContext2 == null ? void 0 : pageContext2.systemCode) ? pageContext2.systemCode : systemCode,
|
|
13
|
+
(pageContext2 == null ? void 0 : pageContext2.systemVersion) ? pageContext2 == null ? void 0 : pageContext2.systemVersion : systemVersion
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
function getComponentOptionConfigsBase(component, systemCode, systemVersion) {
|
|
17
|
+
if (!component.props || !component.props.dataOrigin) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (component.name && component.name === "table") {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const dataOriginInfo = component.props.dataOrigin;
|
|
24
|
+
const infoObj = {
|
|
25
|
+
uuid: component.uuid
|
|
26
|
+
};
|
|
27
|
+
if (dataOriginInfo.optionValueSetType == "optionGroup") {
|
|
28
|
+
infoObj.type = "optionGroup";
|
|
29
|
+
infoObj.props = {
|
|
30
|
+
code: dataOriginInfo.optionGroup
|
|
31
|
+
};
|
|
32
|
+
} else if (dataOriginInfo.optionValueSetType == "dynamicData") {
|
|
33
|
+
infoObj.type = "dynamicData";
|
|
34
|
+
infoObj.filterType = dataOriginInfo.filterType;
|
|
35
|
+
infoObj.props = {
|
|
36
|
+
code: dataOriginInfo.dynamicDataSourceCode
|
|
37
|
+
};
|
|
38
|
+
} else if (dataOriginInfo.optionValueSetType == "dataTable") {
|
|
39
|
+
infoObj.filterType = dataOriginInfo.filterType;
|
|
40
|
+
const tempObj = getTableQueryInfo(dataOriginInfo, systemCode, systemVersion);
|
|
41
|
+
Object.assign(infoObj, tempObj);
|
|
42
|
+
} else if (dataOriginInfo.optionValueSetType == "service") {
|
|
43
|
+
infoObj.filterType = dataOriginInfo.filterType;
|
|
44
|
+
const tempObj = getServiceQueryInfo(dataOriginInfo, systemCode, systemVersion);
|
|
45
|
+
Object.assign(infoObj, tempObj);
|
|
46
|
+
}
|
|
47
|
+
if (infoObj.type) {
|
|
48
|
+
return infoObj;
|
|
49
|
+
} else {
|
|
50
|
+
return void 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function getTableQueryInfo(dataOriginInfo, systemCode, systemVersion) {
|
|
54
|
+
const infoObj = {};
|
|
55
|
+
infoObj.type = "dataTable";
|
|
56
|
+
infoObj.valueLabelSwitch = dataOriginInfo.valueLabelSwitch ? true : false;
|
|
57
|
+
infoObj.props = {
|
|
58
|
+
tableName: dataOriginInfo.tableName,
|
|
59
|
+
systemCode: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : systemCode,
|
|
60
|
+
systemVersion: dataOriginInfo.tableSysVersion ? dataOriginInfo.tableSysVersion : systemVersion
|
|
61
|
+
};
|
|
62
|
+
if (dataOriginInfo.sortFields) {
|
|
63
|
+
const sortFields = [];
|
|
64
|
+
for (const field of dataOriginInfo.sortFields) {
|
|
65
|
+
if (field.name) {
|
|
66
|
+
sortFields.push({
|
|
67
|
+
prop: field.name,
|
|
68
|
+
order: field.type ? field.type : "asc"
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
infoObj.props.sorts = sortFields;
|
|
73
|
+
}
|
|
74
|
+
const autoMonitorFields = [];
|
|
75
|
+
if (dataOriginInfo.filterList) {
|
|
76
|
+
const searchForm = [];
|
|
77
|
+
for (const f of dataOriginInfo.filterList) {
|
|
78
|
+
if (!f.propName) {
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
if (!f.propDbName) {
|
|
82
|
+
f.propDbName = f.propName;
|
|
83
|
+
}
|
|
84
|
+
const tempObj = {};
|
|
85
|
+
Object.assign(tempObj, f);
|
|
86
|
+
const paramsNames = getParamNames(f.propValue);
|
|
87
|
+
for (const p of paramsNames) {
|
|
88
|
+
if (p && (p.startsWith("${data.") || p.startsWith("${task.") || p.startsWith("${page."))) {
|
|
89
|
+
if (!autoMonitorFields.includes(p)) {
|
|
90
|
+
autoMonitorFields.push(p);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
if (f.propValue) ;
|
|
95
|
+
searchForm.push(tempObj);
|
|
96
|
+
}
|
|
97
|
+
infoObj.props.searchForm = searchForm;
|
|
98
|
+
}
|
|
99
|
+
infoObj.props.monitorFields = autoMonitorFields;
|
|
100
|
+
const queryFields = [];
|
|
101
|
+
if (dataOriginInfo.tableValueField) {
|
|
102
|
+
infoObj.props.valueField = dataOriginInfo.tableValueField;
|
|
103
|
+
}
|
|
104
|
+
if (dataOriginInfo.tableLableField && queryFields.indexOf(dataOriginInfo.tableLableField) == -1) {
|
|
105
|
+
infoObj.props.lableField = dataOriginInfo.tableLableField;
|
|
106
|
+
}
|
|
107
|
+
if (dataOriginInfo.autoSets) {
|
|
108
|
+
for (const field of dataOriginInfo.autoSets) {
|
|
109
|
+
if (field.source && queryFields.indexOf(field.source) == -1) {
|
|
110
|
+
queryFields.push(field.source);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
infoObj.props.queryFields = queryFields;
|
|
115
|
+
infoObj.props.pageSize = dataOriginInfo.displayQuantity;
|
|
116
|
+
return infoObj;
|
|
117
|
+
}
|
|
118
|
+
function getServiceQueryInfo(dataOriginInfo, systemCode, systemVersion) {
|
|
119
|
+
const infoObj = {};
|
|
120
|
+
infoObj.type = "service";
|
|
121
|
+
infoObj.valueLabelSwitch = dataOriginInfo.valueLabelSwitch ? true : false;
|
|
122
|
+
infoObj.props = {
|
|
123
|
+
serivceCode: dataOriginInfo.serviceCode,
|
|
124
|
+
systemCode: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : systemCode,
|
|
125
|
+
systemVersion: dataOriginInfo.tableSysVersion ? dataOriginInfo.tableSysVersion : systemVersion
|
|
126
|
+
};
|
|
127
|
+
if (dataOriginInfo.serviceInputs) {
|
|
128
|
+
const searchForm = [];
|
|
129
|
+
for (const f of dataOriginInfo.serviceInputs) {
|
|
130
|
+
if (!f.name || f.value) {
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
const tempObj = {};
|
|
134
|
+
Object.assign(tempObj, f);
|
|
135
|
+
searchForm.push(tempObj);
|
|
136
|
+
}
|
|
137
|
+
infoObj.props.inputs = searchForm;
|
|
138
|
+
}
|
|
139
|
+
infoObj.props.dataSetField = dataOriginInfo.serviceDataSetField;
|
|
140
|
+
infoObj.props.valueField = dataOriginInfo.serviceValueField;
|
|
141
|
+
infoObj.props.labelField = dataOriginInfo.serviceLabelField;
|
|
142
|
+
return infoObj;
|
|
143
|
+
}
|
|
144
|
+
function updateChartDatasources(pageContext2, dataSourceConfs, appendParams, isInit) {
|
|
145
|
+
return new Promise((resolve, reject) => {
|
|
146
|
+
if (!dataSourceConfs || dataSourceConfs.length == 0) {
|
|
147
|
+
reject(new Error("无需查询的统计图配置!"));
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
const dataSourceConfsCopy = commonUtil.deepCopy(dataSourceConfs);
|
|
151
|
+
dataSourceConfsCopy.forEach((item) => {
|
|
152
|
+
const services = item.services;
|
|
153
|
+
if (services && services.length > 0) {
|
|
154
|
+
const serviceInputs = services[0].serviceInputs;
|
|
155
|
+
if (serviceInputs) {
|
|
156
|
+
services[0].serviceInParams = {};
|
|
157
|
+
serviceInputs.forEach((inParam) => {
|
|
158
|
+
const paramName = inParam.name;
|
|
159
|
+
const paramValue = inParam.value;
|
|
160
|
+
services[0].serviceInParams[paramName] = getValueFromVariable(pageContext2.entity, paramValue);
|
|
161
|
+
});
|
|
162
|
+
delete services[0].serviceInputs;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
const entityData2 = pageContext2.entity ? pageContext2.entity : {};
|
|
167
|
+
const additionalParamMap = {};
|
|
168
|
+
if (entityData2.request) {
|
|
169
|
+
Object.assign(additionalParamMap, entityData2.request);
|
|
170
|
+
}
|
|
171
|
+
if (entityData2.page) {
|
|
172
|
+
Object.assign(additionalParamMap, entityData2.page);
|
|
173
|
+
}
|
|
174
|
+
if (appendParams) {
|
|
175
|
+
Object.assign(additionalParamMap, appendParams);
|
|
176
|
+
}
|
|
177
|
+
const taskMap = {};
|
|
178
|
+
if (entityData2.task) {
|
|
179
|
+
Object.assign(taskMap, entityData2.task);
|
|
180
|
+
}
|
|
181
|
+
const param = {
|
|
182
|
+
entityMap: entityData2.data,
|
|
183
|
+
additionalParamMap,
|
|
184
|
+
taskMap,
|
|
185
|
+
dataSourceList: dataSourceConfsCopy,
|
|
186
|
+
systemCode: pageContext2.systemCode,
|
|
187
|
+
pageCode: pageContext2.code
|
|
188
|
+
};
|
|
189
|
+
const backendUrl = pageContext2.backendUrl;
|
|
190
|
+
const baseUrl = commonUtil.getBaseUrl(backendUrl, pageContext2.isTest);
|
|
191
|
+
const url = baseUrl + "/common/common-data/find-chart-datas";
|
|
192
|
+
request.post(url, param, {
|
|
193
|
+
headers: { customSystem: pageContext2.systemCode }
|
|
194
|
+
}).then((result) => {
|
|
195
|
+
var _a, _b;
|
|
196
|
+
if (!pageContext2.chartDataSourceMap) {
|
|
197
|
+
pageContext2.chartDataSourceMap = {};
|
|
198
|
+
}
|
|
199
|
+
for (const uuid in result) {
|
|
200
|
+
pageContext2.chartDataSourceMap[uuid] = result[uuid];
|
|
201
|
+
const componentObj = globalRefs.getComponentRef(pageContext2, uuid);
|
|
202
|
+
if (componentObj) {
|
|
203
|
+
const chartConfig = componentObj.getConfigure();
|
|
204
|
+
if (!isInit || chartConfig && (chartConfig.initializationQuery === void 0 || chartConfig.initializationQuery)) {
|
|
205
|
+
if (componentObj.updateChartDatas) {
|
|
206
|
+
componentObj.updateChartDatas(result[uuid]);
|
|
207
|
+
if ((_b = (_a = chartConfig.runtime) == null ? void 0 : _a.dataConfig) == null ? void 0 : _b.resultSet) {
|
|
208
|
+
const serviceData = result[uuid] && result[uuid].length > 0 ? result[uuid][0] : {};
|
|
209
|
+
const chartData = serviceData && serviceData.result ? serviceData.result : {};
|
|
210
|
+
let datas = null;
|
|
211
|
+
if (chartConfig.serviceDataField) {
|
|
212
|
+
datas = chartData[chartConfig.serviceDataField];
|
|
213
|
+
} else {
|
|
214
|
+
if (chartData) {
|
|
215
|
+
if (Array.isArray(chartData)) {
|
|
216
|
+
datas = chartData;
|
|
217
|
+
} else {
|
|
218
|
+
datas = [chartData];
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
if (!datas) {
|
|
223
|
+
datas = [];
|
|
224
|
+
}
|
|
225
|
+
setValueForVariableName(pageContext2.entity, chartConfig.runtime.dataConfig.resultSet, datas);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
console.log("查询统计图数据完成", result);
|
|
232
|
+
resolve(result);
|
|
233
|
+
}).catch((error) => {
|
|
234
|
+
console.log("查询统计图数据失败", error);
|
|
235
|
+
reject(error);
|
|
236
|
+
});
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
function updateChartDatasourcesByComponent(pageContext2, componentUuid) {
|
|
240
|
+
const chartDataSource = pageContext2.initChartServiceConfigs.find((item) => item.uuid === componentUuid);
|
|
241
|
+
if (chartDataSource) {
|
|
242
|
+
updateChartDatasources(pageContext2, [chartDataSource], null, false);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
function updateOptionDatasources(pageContext2, dataSourceConfs, query) {
|
|
246
|
+
return new Promise((resolve, reject) => {
|
|
247
|
+
if (!dataSourceConfs || dataSourceConfs.length == 0) {
|
|
248
|
+
reject(new Error("无需查询的配置!"));
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
const entityData2 = pageContext2.entity ? pageContext2.entity : {};
|
|
252
|
+
const additionalParamMap = {};
|
|
253
|
+
if (entityData2.request) {
|
|
254
|
+
Object.assign(additionalParamMap, entityData2.request);
|
|
255
|
+
}
|
|
256
|
+
if (entityData2.page) {
|
|
257
|
+
Object.assign(additionalParamMap, entityData2.page);
|
|
258
|
+
}
|
|
259
|
+
additionalParamMap.query = query;
|
|
260
|
+
const param = {
|
|
261
|
+
entityMap: entityData2.data,
|
|
262
|
+
additionalParamMap,
|
|
263
|
+
dataSourceList: dataSourceConfs,
|
|
264
|
+
systemCode: pageContext2.systemCode,
|
|
265
|
+
query
|
|
266
|
+
};
|
|
267
|
+
const backendUrl = pageContext2.backendUrl;
|
|
268
|
+
const baseUrl = commonUtil.getBaseUrl(backendUrl, pageContext2.isTest);
|
|
269
|
+
const url = baseUrl + "/common/common-data/find-datas";
|
|
270
|
+
request.post(url, param).then((result) => {
|
|
271
|
+
if (!pageContext2.optionSourceMap) {
|
|
272
|
+
pageContext2.optionSourceMap = {};
|
|
273
|
+
}
|
|
274
|
+
for (const uuid in result) {
|
|
275
|
+
pageContext2.optionSourceMap[uuid] = result[uuid];
|
|
276
|
+
const componentObj = globalRefs.getComponentRef(pageContext2, uuid);
|
|
277
|
+
if (componentObj && componentObj.updateOptions) {
|
|
278
|
+
componentObj.updateOptions(result[uuid]);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
console.log("查询选项数据完成", result);
|
|
282
|
+
resolve(result);
|
|
283
|
+
}).catch((error) => {
|
|
284
|
+
console.log("查询选项数据失败", error);
|
|
285
|
+
reject(error);
|
|
286
|
+
});
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
function getOptionDatasFromPage(pageContext2, configure) {
|
|
290
|
+
return getComponentOptionDatasFromPage(pageContext2, configure.uuid);
|
|
291
|
+
}
|
|
292
|
+
function getComponentOptionDatasFromPage(pageContext2, configureUuid) {
|
|
293
|
+
const optionSourceMap = getOptionDatasSourceMap(pageContext2);
|
|
294
|
+
const cacheOptions = optionSourceMap[configureUuid];
|
|
295
|
+
return cacheOptions ? cacheOptions : [];
|
|
296
|
+
}
|
|
297
|
+
function getOptionDatasSourceMap(pageContext2) {
|
|
298
|
+
if (!pageContext2 || !pageContext2.optionSourceMap) {
|
|
299
|
+
return {};
|
|
300
|
+
}
|
|
301
|
+
const cacheOptions = pageContext2.optionSourceMap;
|
|
302
|
+
return cacheOptions ? cacheOptions : {};
|
|
303
|
+
}
|
|
304
|
+
function getChartDatasFromPage(pageContext2, configure) {
|
|
305
|
+
if (!pageContext2 || !pageContext2.chartDataSourceMap || !configure) {
|
|
306
|
+
return null;
|
|
307
|
+
}
|
|
308
|
+
const cacheDatas = pageContext2.chartDataSourceMap[configure.uuid];
|
|
309
|
+
return cacheDatas;
|
|
310
|
+
}
|
|
311
|
+
function queryOptionDatasources(pageContext2, dataSourceConf, query) {
|
|
312
|
+
return updateOptionDatasources(pageContext2, dataSourceConf ? [dataSourceConf] : [], query);
|
|
313
|
+
}
|
|
314
|
+
function autoSetAfterSelect(component, pageContext2, autoSets, selItems, skipProps = []) {
|
|
315
|
+
if (!autoSets || autoSets.length == 0) {
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
const entity = pageContext2.entity ? pageContext2.entity : {};
|
|
319
|
+
for (const as of autoSets) {
|
|
320
|
+
if (!as.source || !as.target || skipProps.includes(as.target)) {
|
|
321
|
+
continue;
|
|
322
|
+
}
|
|
323
|
+
const values = getValuesByField(selItems, as.source);
|
|
324
|
+
let targetField = as.target;
|
|
325
|
+
if (!targetField || !targetField.startsWith("${")) {
|
|
326
|
+
continue;
|
|
327
|
+
}
|
|
328
|
+
targetField = targetField.substring(2, targetField.length - 1);
|
|
329
|
+
const fields = targetField.split(".");
|
|
330
|
+
setVariableValue(entity, fields, values.join(","));
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
function getValuesByField(items, fieldName) {
|
|
334
|
+
if (!items) {
|
|
335
|
+
return [""];
|
|
336
|
+
} else {
|
|
337
|
+
const values = [];
|
|
338
|
+
for (const i of items) {
|
|
339
|
+
let val = i[fieldName];
|
|
340
|
+
if (val == void 0 || val == null) {
|
|
341
|
+
val = "";
|
|
342
|
+
}
|
|
343
|
+
values.push(val);
|
|
344
|
+
}
|
|
345
|
+
return values;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
function getVariableValue(entity, fields) {
|
|
349
|
+
if (!entity || !fields || fields.length == 0) {
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
let tempObj = entity;
|
|
353
|
+
for (let i = 0; i < fields.length; i++) {
|
|
354
|
+
if (tempObj == void 0) {
|
|
355
|
+
return tempObj;
|
|
356
|
+
}
|
|
357
|
+
const fieldName = fields[i];
|
|
358
|
+
tempObj = tempObj[fieldName];
|
|
359
|
+
}
|
|
360
|
+
return tempObj;
|
|
361
|
+
}
|
|
362
|
+
function setValueForVariableName(entity, variableName, newValue) {
|
|
363
|
+
if (!variableName || !variableName.startsWith("${")) {
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
366
|
+
variableName = variableName.substring(2, variableName.length - 1);
|
|
367
|
+
const fields = variableName.split(".");
|
|
368
|
+
setVariableValue(entity, fields, newValue);
|
|
369
|
+
}
|
|
370
|
+
function setVariableValue(entity, fields, newValue) {
|
|
371
|
+
if (!entity || !fields || fields.length == 0) {
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
let tempObj = entity;
|
|
375
|
+
for (let i = 0; i < fields.length; i++) {
|
|
376
|
+
const fieldName = fields[i];
|
|
377
|
+
if (i + 1 === fields.length) {
|
|
378
|
+
tempObj[fieldName] = newValue;
|
|
379
|
+
} else {
|
|
380
|
+
if (tempObj[fieldName] === void 0) {
|
|
381
|
+
tempObj[fieldName] = {};
|
|
382
|
+
}
|
|
383
|
+
tempObj = tempObj[fieldName];
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
function setVariableValueWithProp(entity, prop, newValue) {
|
|
388
|
+
if (!entity || !prop) {
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
const fields = prop.split(".");
|
|
392
|
+
setVariableValue(entity, fields, newValue);
|
|
393
|
+
}
|
|
394
|
+
function formatVariableValue(pageContext2, variable) {
|
|
395
|
+
if (!pageContext2 || variable == "" || variable == null || variable == void 0) {
|
|
396
|
+
return variable;
|
|
397
|
+
}
|
|
398
|
+
const entity = pageContext2.entity ? pageContext2.entity : {};
|
|
399
|
+
const t = getParamNames(variable);
|
|
400
|
+
for (const c in t) {
|
|
401
|
+
const param = t[c];
|
|
402
|
+
const paramValue = getValueFromVariable(entity, param);
|
|
403
|
+
if (paramValue && Object.prototype.toString.call(paramValue) === "[object Date]") {
|
|
404
|
+
return dayjs_min(paramValue).format("YYYY-MM-DD HH:mm:ss");
|
|
405
|
+
} else if (paramValue && typeof paramValue === "number") {
|
|
406
|
+
return paramValue;
|
|
407
|
+
}
|
|
408
|
+
variable = variable.replace(param, paramValue === void 0 || paramValue === null ? "" : paramValue);
|
|
409
|
+
}
|
|
410
|
+
return variable;
|
|
411
|
+
}
|
|
412
|
+
function getParamNames(variable) {
|
|
413
|
+
if (!variable) {
|
|
414
|
+
return [];
|
|
415
|
+
}
|
|
416
|
+
const reg = /\$\{[^\{|\}]+\}/g;
|
|
417
|
+
const paramNames = variable.match(reg);
|
|
418
|
+
return paramNames ? paramNames : [];
|
|
419
|
+
}
|
|
420
|
+
function formatValueByType(value, formatType, formatInfo) {
|
|
421
|
+
if (!formatType || value == "" || value == null || value == void 0) {
|
|
422
|
+
return value;
|
|
423
|
+
}
|
|
424
|
+
console.log("aaa", value, formatType, formatInfo);
|
|
425
|
+
formatInfo = formatInfo ? formatInfo : {};
|
|
426
|
+
if (formatType == "number" || formatType == "percent") {
|
|
427
|
+
if (isNaN(value)) {
|
|
428
|
+
return value;
|
|
429
|
+
}
|
|
430
|
+
let precision = parseInt(formatInfo.decimalDigit);
|
|
431
|
+
if (precision == null || isNaN(precision)) {
|
|
432
|
+
precision = -1;
|
|
433
|
+
}
|
|
434
|
+
value = parseFloat(value);
|
|
435
|
+
if (formatType == "percent") {
|
|
436
|
+
value = value * 100;
|
|
437
|
+
}
|
|
438
|
+
if (precision > -1) {
|
|
439
|
+
value = parseFloat(value.toFixed(precision));
|
|
440
|
+
}
|
|
441
|
+
if (formatType == "percent") {
|
|
442
|
+
value = value + "%";
|
|
443
|
+
} else {
|
|
444
|
+
if (formatInfo.thousandsSeparator) {
|
|
445
|
+
const parts = value.toString().split(".");
|
|
446
|
+
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
447
|
+
value = parts.length > 1 ? parts.join(".") : parts[0];
|
|
448
|
+
}
|
|
449
|
+
if (formatInfo.symbol) {
|
|
450
|
+
value = formatInfo.symbol + "" + value;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
return value;
|
|
454
|
+
} else if (formatType == "date" || formatType == "time") {
|
|
455
|
+
let formatStr = "";
|
|
456
|
+
if (formatType == "date") {
|
|
457
|
+
formatStr = formatInfo.dateFormat;
|
|
458
|
+
if (!formatStr) {
|
|
459
|
+
formatStr = "YYYY-MM-DD";
|
|
460
|
+
}
|
|
461
|
+
} else {
|
|
462
|
+
formatStr = formatInfo.timeFormat;
|
|
463
|
+
if (!formatStr) {
|
|
464
|
+
formatStr = "HH:mm:ss";
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
return dayjs_min(value).format(formatStr);
|
|
468
|
+
} else if (formatType == "custom" && formatInfo.formatEventUuid) {
|
|
469
|
+
console.log("自定义方法", formatInfo);
|
|
470
|
+
}
|
|
471
|
+
return value;
|
|
472
|
+
}
|
|
473
|
+
function getValueFromVariable(entity, variable, row2) {
|
|
474
|
+
if (variable == null || variable == void 0) {
|
|
475
|
+
return variable;
|
|
476
|
+
}
|
|
477
|
+
if (variable.startsWith("${") && variable.endsWith("}")) {
|
|
478
|
+
let paramName = variable.substring(2, variable.length - 1);
|
|
479
|
+
let paramType = null;
|
|
480
|
+
let valueSource = null;
|
|
481
|
+
if (paramName.startsWith("data.")) {
|
|
482
|
+
paramName = paramName.substring(5);
|
|
483
|
+
valueSource = entity.data;
|
|
484
|
+
paramType = "data";
|
|
485
|
+
} else if (paramName.startsWith("page.")) {
|
|
486
|
+
paramName = paramName.substring(5);
|
|
487
|
+
paramType = "page";
|
|
488
|
+
valueSource = entity.page;
|
|
489
|
+
} else if (paramName.startsWith("task.")) {
|
|
490
|
+
paramName = paramName.substring(5);
|
|
491
|
+
paramType = "task";
|
|
492
|
+
valueSource = entity.task;
|
|
493
|
+
} else if (paramName.startsWith("request.")) {
|
|
494
|
+
paramName = paramName.substring(8);
|
|
495
|
+
paramType = "request";
|
|
496
|
+
valueSource = entity.request;
|
|
497
|
+
} else if (paramName.startsWith("context.")) {
|
|
498
|
+
paramName = paramName.substring(8);
|
|
499
|
+
paramType = "context";
|
|
500
|
+
valueSource = entity.context;
|
|
501
|
+
} else if (paramName.startsWith("system.")) {
|
|
502
|
+
paramName = paramName.substring(7);
|
|
503
|
+
paramType = "system";
|
|
504
|
+
valueSource = entity.system;
|
|
505
|
+
} else if (paramName.startsWith("fixed.")) {
|
|
506
|
+
return paramName.substring(6);
|
|
507
|
+
} else if (paramName.startsWith("row.")) {
|
|
508
|
+
paramName = paramName.substring(4);
|
|
509
|
+
valueSource = row2;
|
|
510
|
+
paramType = "row";
|
|
511
|
+
}
|
|
512
|
+
if (!paramName) {
|
|
513
|
+
console.log("获取变量失败", variable, entity);
|
|
514
|
+
return "";
|
|
515
|
+
}
|
|
516
|
+
return getValueFromSource(valueSource, paramName, paramType);
|
|
517
|
+
} else {
|
|
518
|
+
return variable;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
function getValueFromSource(valueSource, paramName, paramType) {
|
|
522
|
+
if (paramType != "context" && !valueSource || !paramName) {
|
|
523
|
+
return void 0;
|
|
524
|
+
}
|
|
525
|
+
const firstIndex = paramName.indexOf(".");
|
|
526
|
+
if (firstIndex > -1) {
|
|
527
|
+
const tempParamName = paramName.substring(0, firstIndex);
|
|
528
|
+
const newParamName = paramName.substring(firstIndex + 1);
|
|
529
|
+
let childValue = valueSource[tempParamName];
|
|
530
|
+
if (childValue && Array.isArray(childValue) && childValue.length > 0) {
|
|
531
|
+
childValue = childValue[0];
|
|
532
|
+
}
|
|
533
|
+
return getValueFromSource(childValue, newParamName, paramType);
|
|
534
|
+
} else {
|
|
535
|
+
if (paramType == "context") {
|
|
536
|
+
if (paramName == "currentDate" || paramName == "currentTime") {
|
|
537
|
+
return /* @__PURE__ */ new Date();
|
|
538
|
+
} else if (paramName.startsWith("currentDate") && paramName.length > 11) {
|
|
539
|
+
const str = paramName.substring(11);
|
|
540
|
+
const symbol = str.substring(0, 1);
|
|
541
|
+
let num = parseInt(str.substring(1, str.length - 1), 10);
|
|
542
|
+
const unit = str.substring(str.length - 1);
|
|
543
|
+
const date = /* @__PURE__ */ new Date();
|
|
544
|
+
num = "+" === symbol ? num : -num;
|
|
545
|
+
if (unit === "d" || unit === "w") {
|
|
546
|
+
num = unit === "w" ? num * 7 : num;
|
|
547
|
+
date.setDate(date.getDate() + num);
|
|
548
|
+
} else if (unit === "m") {
|
|
549
|
+
date.setMonth(date.getMonth() + num);
|
|
550
|
+
} else if (unit === "y") {
|
|
551
|
+
date.setFullYear(date.getFullYear() + num);
|
|
552
|
+
}
|
|
553
|
+
return date;
|
|
554
|
+
}
|
|
555
|
+
if (!valueSource) {
|
|
556
|
+
return void 0;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
return valueSource[paramName];
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
function caculateShowCondition(pageContext, showConditions, row) {
|
|
563
|
+
if (!showConditions || showConditions.length == 0 || !pageContext || !pageContext.entity) {
|
|
564
|
+
return true;
|
|
565
|
+
}
|
|
566
|
+
const entityData = pageContext.entity;
|
|
567
|
+
let conditions = "";
|
|
568
|
+
const maxLen = showConditions.length;
|
|
569
|
+
for (let i = 0; i < maxLen; i++) {
|
|
570
|
+
const condition = showConditions[i];
|
|
571
|
+
const propName = condition.propName;
|
|
572
|
+
let operator = condition.operator;
|
|
573
|
+
if (!propName || propName === "") {
|
|
574
|
+
continue;
|
|
575
|
+
}
|
|
576
|
+
if (!operator) {
|
|
577
|
+
operator = "EQ";
|
|
578
|
+
}
|
|
579
|
+
const leftValue = getValueFromVariable(entityData, propName, row);
|
|
580
|
+
let propValue = getValueFromVariable(entityData, condition.propValue, row);
|
|
581
|
+
const dataType = condition.dataType;
|
|
582
|
+
if (operator == "CONTAIN" || operator == "NOT_CONTAIN") {
|
|
583
|
+
if (leftValue && !leftValue.includes) {
|
|
584
|
+
operator = operator == "CONTAIN" ? "EQ" : "NET";
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
let variableIsNullStr = condition.variableIsNull;
|
|
588
|
+
if (!variableIsNullStr) {
|
|
589
|
+
variableIsNullStr = "null";
|
|
590
|
+
}
|
|
591
|
+
let conditionResult = void 0;
|
|
592
|
+
if (operator !== "IS_NULL" && operator !== "IS_NOT_NULL") {
|
|
593
|
+
if (propValue === void 0 || propValue === "") {
|
|
594
|
+
propValue = null;
|
|
595
|
+
if (variableIsNullStr === "null") {
|
|
596
|
+
operator = "IS_NULL";
|
|
597
|
+
} else if (variableIsNullStr === "notequal") {
|
|
598
|
+
operator = "IS_NOT_NULL";
|
|
599
|
+
} else {
|
|
600
|
+
conditionResult = true;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
if (conditionResult == void 0) {
|
|
605
|
+
try {
|
|
606
|
+
conditionResult = calculatorUtil.executeExpression(leftValue, operator, propValue, dataType);
|
|
607
|
+
} catch (e) {
|
|
608
|
+
console.log("executeExpression error", e);
|
|
609
|
+
conditionResult = false;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
const leftBracket = condition.leftBracket;
|
|
613
|
+
const rightBracket = condition.rightBracket;
|
|
614
|
+
let joinSign = condition.joinSign;
|
|
615
|
+
if (leftBracket && leftBracket !== null && leftBracket !== "") {
|
|
616
|
+
conditions = conditions + leftBracket;
|
|
617
|
+
conditions = conditions + " ";
|
|
618
|
+
}
|
|
619
|
+
conditions += conditionResult + " ";
|
|
620
|
+
if (rightBracket && rightBracket !== null && rightBracket !== "") {
|
|
621
|
+
conditions = conditions + rightBracket;
|
|
622
|
+
conditions = conditions + " ";
|
|
623
|
+
}
|
|
624
|
+
if (i < maxLen - 1) {
|
|
625
|
+
if (joinSign && joinSign !== null && joinSign !== "") {
|
|
626
|
+
const joinSignIgnoreCase = joinSign.toLowerCase();
|
|
627
|
+
if (joinSignIgnoreCase === "and") {
|
|
628
|
+
joinSign = joinSignIgnoreCase.replace("and", "&&");
|
|
629
|
+
} else if (joinSignIgnoreCase === "or") {
|
|
630
|
+
joinSign = joinSignIgnoreCase.replace("or", "||");
|
|
631
|
+
}
|
|
632
|
+
conditions += joinSign + " ";
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
if (conditions) {
|
|
637
|
+
return eval("(" + conditions + ")");
|
|
638
|
+
} else {
|
|
639
|
+
return true;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
function monitorFieldChange(pageContext2, monitorFields, triggerFunc) {
|
|
643
|
+
if (!triggerFunc || !pageContext2 || !monitorFields || monitorFields.length == 0) {
|
|
644
|
+
return;
|
|
645
|
+
}
|
|
646
|
+
const monitorFieldInfos = [];
|
|
647
|
+
const preFields = [];
|
|
648
|
+
for (let propName of monitorFields) {
|
|
649
|
+
if (propName.startsWith("${")) {
|
|
650
|
+
propName = propName.substring(2, propName.length - 1);
|
|
651
|
+
const fields = propName.split(".");
|
|
652
|
+
if (fields[0] === "page" || fields[0] === "task" || fields[0] === "data") {
|
|
653
|
+
monitorFieldInfos.push(fields);
|
|
654
|
+
if (!preFields.includes(fields[0])) {
|
|
655
|
+
preFields.push(fields[0]);
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
let firstValue = getMonitorFieldValues(monitorFieldInfos, pageContext2.entity);
|
|
661
|
+
let monitorTimeout = false;
|
|
662
|
+
for (const preField of preFields) {
|
|
663
|
+
Vue.watch(pageContext2.entity[preField], () => {
|
|
664
|
+
if (monitorTimeout) {
|
|
665
|
+
clearTimeout(monitorTimeout);
|
|
666
|
+
}
|
|
667
|
+
monitorTimeout = setTimeout(function() {
|
|
668
|
+
const newValue = getMonitorFieldValues(monitorFieldInfos, pageContext2.entity);
|
|
669
|
+
if (firstValue != newValue) {
|
|
670
|
+
firstValue = newValue;
|
|
671
|
+
triggerFunc();
|
|
672
|
+
}
|
|
673
|
+
}, 200);
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
function getMonitorFieldValues(monitorFieldInfos, entity) {
|
|
678
|
+
let values = "";
|
|
679
|
+
for (const fieldInfo of monitorFieldInfos) {
|
|
680
|
+
values += "_" + getVariableValue(entity, fieldInfo);
|
|
681
|
+
}
|
|
682
|
+
return values;
|
|
683
|
+
}
|
|
684
|
+
function getFormPropName(prop) {
|
|
685
|
+
if (prop && prop.indexOf("${") >= 0) {
|
|
686
|
+
return prop.substring(prop.indexOf(".") + 1, prop.lastIndexOf("}"));
|
|
687
|
+
} else {
|
|
688
|
+
return prop;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
function getSizeConfig(pageContext2, configure) {
|
|
692
|
+
const pageModeType = getPageModeType(pageContext2);
|
|
693
|
+
let sizeConfig;
|
|
694
|
+
if (configure.props && configure.props.size && configure.props.size[pageModeType]) {
|
|
695
|
+
sizeConfig = configure.props.size[pageModeType];
|
|
696
|
+
}
|
|
697
|
+
if (!sizeConfig && configure.props && configure.props.size) {
|
|
698
|
+
sizeConfig = configure.props.size["pc"];
|
|
699
|
+
}
|
|
700
|
+
return sizeConfig;
|
|
701
|
+
}
|
|
702
|
+
function getPageModeType(pageContext2) {
|
|
703
|
+
let dimensions = pageContext2.dimensions;
|
|
704
|
+
if (!dimensions) {
|
|
705
|
+
dimensions = "pc";
|
|
706
|
+
}
|
|
707
|
+
return dimensions;
|
|
708
|
+
}
|
|
709
|
+
function isPromise(p) {
|
|
710
|
+
return p && Object.prototype.toString.call(p) === "[object Promise]";
|
|
711
|
+
}
|
|
712
|
+
function decomposeVariable(variable) {
|
|
713
|
+
if (!variable) {
|
|
714
|
+
return [];
|
|
715
|
+
}
|
|
716
|
+
const paramNames = variable.match(/\${(.*?)}/);
|
|
717
|
+
return paramNames ? paramNames[1].split(".") : [];
|
|
718
|
+
}
|
|
719
|
+
function getModelFieldFromPageContext(fields, pageContext2) {
|
|
720
|
+
if (!pageContext2.modelFieldsMap) {
|
|
721
|
+
return;
|
|
722
|
+
}
|
|
723
|
+
let modelField = null;
|
|
724
|
+
for (let i = 0; i < fields.length; i++) {
|
|
725
|
+
const fieldName = fields[i];
|
|
726
|
+
if (i + 1 === fields.length) {
|
|
727
|
+
modelField = pageContext2.modelFieldsMap[fieldName];
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
return modelField;
|
|
731
|
+
}
|
|
732
|
+
function isNumberDataType(dataType) {
|
|
733
|
+
return dataType === "INTEGER" || dataType === "LONG" || dataType === "DOUBLE" || dataType === "FLOAT_COM";
|
|
734
|
+
}
|
|
735
|
+
function isDateDataType(dataType) {
|
|
736
|
+
dataType = dataType ? dataType.toUpperCase() : "";
|
|
737
|
+
return dataType === "DATE" || dataType === "TIME" || dataType === "DATETIME" || dataType === "TIMESTAMP";
|
|
738
|
+
}
|
|
739
|
+
exports.autoSetAfterSelect = autoSetAfterSelect;
|
|
740
|
+
exports.caculateShowCondition = caculateShowCondition;
|
|
741
|
+
exports.decomposeVariable = decomposeVariable;
|
|
742
|
+
exports.formatValueByType = formatValueByType;
|
|
743
|
+
exports.formatVariableValue = formatVariableValue;
|
|
744
|
+
exports.getChartDatasFromPage = getChartDatasFromPage;
|
|
745
|
+
exports.getComponentOptionConfigs = getComponentOptionConfigs;
|
|
746
|
+
exports.getComponentOptionConfigsBase = getComponentOptionConfigsBase;
|
|
747
|
+
exports.getComponentOptionDatasFromPage = getComponentOptionDatasFromPage;
|
|
748
|
+
exports.getFormPropName = getFormPropName;
|
|
749
|
+
exports.getModelFieldFromPageContext = getModelFieldFromPageContext;
|
|
750
|
+
exports.getOptionDatasFromPage = getOptionDatasFromPage;
|
|
751
|
+
exports.getOptionDatasSourceMap = getOptionDatasSourceMap;
|
|
752
|
+
exports.getParamNames = getParamNames;
|
|
753
|
+
exports.getSizeConfig = getSizeConfig;
|
|
754
|
+
exports.getValueFromSource = getValueFromSource;
|
|
755
|
+
exports.getValueFromVariable = getValueFromVariable;
|
|
756
|
+
exports.getVariableValue = getVariableValue;
|
|
757
|
+
exports.isDateDataType = isDateDataType;
|
|
758
|
+
exports.isNumberDataType = isNumberDataType;
|
|
759
|
+
exports.isPromise = isPromise;
|
|
760
|
+
exports.monitorFieldChange = monitorFieldChange;
|
|
761
|
+
exports.queryOptionDatasources = queryOptionDatasources;
|
|
762
|
+
exports.setValueForVariableName = setValueForVariableName;
|
|
763
|
+
exports.setVariableValue = setVariableValue;
|
|
764
|
+
exports.setVariableValueWithProp = setVariableValueWithProp;
|
|
765
|
+
exports.updateChartDatasources = updateChartDatasources;
|
|
766
|
+
exports.updateChartDatasourcesByComponent = updateChartDatasourcesByComponent;
|
|
767
|
+
exports.updateOptionDatasources = updateOptionDatasources;
|