super-page-runtime 2.0.42 → 2.0.43-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/events/standard-event.js +2 -34
- package/dist/es/components/runtime/utils/events/validator-util.js +9 -39
- package/dist/es/components/runtime/utils/page-helper-util.js +1 -2
- package/dist/es/components/runtime/utils/page-init-util.js +1 -2
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +13 -9
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +38 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +45 -26
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +11 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +11 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +28 -18
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +11 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +11 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +23 -9
- package/dist/es/components/runtime/views/super-page.vue.js +37 -42
- package/package.json +1 -1
- package/dist/lib/_virtual/AttributeMap.js +0 -4
- package/dist/lib/_virtual/Barcode.js +0 -4
- package/dist/lib/_virtual/CODE128.js +0 -4
- package/dist/lib/_virtual/CODE128A.js +0 -4
- package/dist/lib/_virtual/CODE128B.js +0 -4
- package/dist/lib/_virtual/CODE128C.js +0 -4
- package/dist/lib/_virtual/CODE128_AUTO.js +0 -4
- package/dist/lib/_virtual/Delta.js +0 -4
- package/dist/lib/_virtual/EAN.js +0 -4
- package/dist/lib/_virtual/EAN13.js +0 -4
- package/dist/lib/_virtual/EAN2.js +0 -4
- package/dist/lib/_virtual/EAN5.js +0 -4
- package/dist/lib/_virtual/EAN8.js +0 -4
- package/dist/lib/_virtual/ErrorHandler.js +0 -4
- package/dist/lib/_virtual/ITF.js +0 -4
- package/dist/lib/_virtual/ITF14.js +0 -4
- package/dist/lib/_virtual/JsBarcode.js +0 -6
- package/dist/lib/_virtual/MSI.js +0 -4
- package/dist/lib/_virtual/MSI10.js +0 -4
- package/dist/lib/_virtual/MSI1010.js +0 -4
- package/dist/lib/_virtual/MSI11.js +0 -4
- package/dist/lib/_virtual/MSI1110.js +0 -4
- package/dist/lib/_virtual/Op.js +0 -4
- package/dist/lib/_virtual/OpIterator.js +0 -4
- package/dist/lib/_virtual/SVGPathData.js +0 -4
- package/dist/lib/_virtual/SVGPathData2.js +0 -5
- package/dist/lib/_virtual/UPC.js +0 -4
- package/dist/lib/_virtual/UPCE.js +0 -4
- package/dist/lib/_virtual/__vite-browser-external.js +0 -3
- package/dist/lib/_virtual/_commonjsHelpers.js +0 -35
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/lib/_virtual/alignment-pattern.js +0 -4
- package/dist/lib/_virtual/arrayLikeToArray.js +0 -4
- package/dist/lib/_virtual/arrayWithHoles.js +0 -4
- package/dist/lib/_virtual/arrayWithoutHoles.js +0 -4
- package/dist/lib/_virtual/assertThisInitialized.js +0 -4
- package/dist/lib/_virtual/asyncToGenerator.js +0 -4
- package/dist/lib/_virtual/asyncToGenerator2.js +0 -6
- package/dist/lib/_virtual/auto.js +0 -4
- package/dist/lib/_virtual/backo2.js +0 -4
- package/dist/lib/_virtual/base64-arraybuffer.js +0 -4
- package/dist/lib/_virtual/binary.js +0 -4
- package/dist/lib/_virtual/browser.js +0 -4
- package/dist/lib/_virtual/browser2.js +0 -4
- package/dist/lib/_virtual/canvas.js +0 -4
- package/dist/lib/_virtual/canvas2.js +0 -4
- package/dist/lib/_virtual/checksums.js +0 -4
- package/dist/lib/_virtual/classCallCheck.js +0 -4
- package/dist/lib/_virtual/commons.js +0 -4
- package/dist/lib/_virtual/constants.js +0 -4
- package/dist/lib/_virtual/constants2.js +0 -4
- package/dist/lib/_virtual/constants3.js +0 -4
- package/dist/lib/_virtual/createClass.js +0 -4
- package/dist/lib/_virtual/dayjs.min.js +0 -4
- package/dist/lib/_virtual/decodePacket.browser.js +0 -4
- package/dist/lib/_virtual/defaults.js +0 -4
- package/dist/lib/_virtual/defineProperty.js +0 -4
- package/dist/lib/_virtual/defineProperty2.js +0 -6
- package/dist/lib/_virtual/dijkstra.js +0 -4
- package/dist/lib/_virtual/encodePacket.browser.js +0 -4
- package/dist/lib/_virtual/encoder.js +0 -4
- package/dist/lib/_virtual/error-correction-code.js +0 -4
- package/dist/lib/_virtual/error-correction-level.js +0 -4
- package/dist/lib/_virtual/es.array.concat.js +0 -4
- package/dist/lib/_virtual/es.array.every.js +0 -4
- package/dist/lib/_virtual/es.array.fill.js +0 -4
- package/dist/lib/_virtual/es.array.for-each.js +0 -4
- package/dist/lib/_virtual/es.array.from.js +0 -4
- package/dist/lib/_virtual/es.array.includes.js +0 -4
- package/dist/lib/_virtual/es.array.index-of.js +0 -4
- package/dist/lib/_virtual/es.array.index-of2.js +0 -3
- package/dist/lib/_virtual/es.array.iterator.js +0 -3
- package/dist/lib/_virtual/es.array.join.js +0 -4
- package/dist/lib/_virtual/es.array.map.js +0 -4
- package/dist/lib/_virtual/es.array.reduce.js +0 -4
- package/dist/lib/_virtual/es.array.reduce2.js +0 -3
- package/dist/lib/_virtual/es.array.reverse.js +0 -4
- package/dist/lib/_virtual/es.array.reverse2.js +0 -3
- package/dist/lib/_virtual/es.array.some.js +0 -4
- package/dist/lib/_virtual/es.function.name.js +0 -4
- package/dist/lib/_virtual/es.map.constructor.js +0 -4
- package/dist/lib/_virtual/es.map.js +0 -4
- package/dist/lib/_virtual/es.number.constructor.js +0 -4
- package/dist/lib/_virtual/es.object.to-string.js +0 -4
- package/dist/lib/_virtual/es.parse-float.js +0 -4
- package/dist/lib/_virtual/es.promise.all.js +0 -4
- package/dist/lib/_virtual/es.promise.catch.js +0 -4
- package/dist/lib/_virtual/es.promise.constructor.js +0 -4
- package/dist/lib/_virtual/es.promise.js +0 -4
- package/dist/lib/_virtual/es.promise.race.js +0 -4
- package/dist/lib/_virtual/es.promise.reject.js +0 -4
- package/dist/lib/_virtual/es.promise.resolve.js +0 -4
- package/dist/lib/_virtual/es.promise2.js +0 -3
- package/dist/lib/_virtual/es.reflect.apply.js +0 -4
- package/dist/lib/_virtual/es.reflect.delete-property.js +0 -4
- package/dist/lib/_virtual/es.reflect.get-prototype-of.js +0 -4
- package/dist/lib/_virtual/es.regexp.exec.js +0 -4
- package/dist/lib/_virtual/es.regexp.to-string.js +0 -4
- package/dist/lib/_virtual/es.regexp.to-string2.js +0 -3
- package/dist/lib/_virtual/es.string.ends-with.js +0 -4
- package/dist/lib/_virtual/es.string.ends-with2.js +0 -3
- package/dist/lib/_virtual/es.string.includes.js +0 -4
- package/dist/lib/_virtual/es.string.includes2.js +0 -3
- package/dist/lib/_virtual/es.string.iterator.js +0 -4
- package/dist/lib/_virtual/es.string.match.js +0 -4
- package/dist/lib/_virtual/es.string.match2.js +0 -3
- package/dist/lib/_virtual/es.string.replace.js +0 -4
- package/dist/lib/_virtual/es.string.replace2.js +0 -3
- package/dist/lib/_virtual/es.string.split.js +0 -4
- package/dist/lib/_virtual/es.string.split2.js +0 -3
- package/dist/lib/_virtual/es.string.starts-with.js +0 -4
- package/dist/lib/_virtual/es.string.starts-with2.js +0 -3
- package/dist/lib/_virtual/es.string.trim.js +0 -4
- package/dist/lib/_virtual/es.string.trim2.js +0 -3
- package/dist/lib/_virtual/exceptions.js +0 -4
- package/dist/lib/_virtual/finder-pattern.js +0 -4
- package/dist/lib/_virtual/fixOptions.js +0 -4
- package/dist/lib/_virtual/format-info.js +0 -4
- package/dist/lib/_virtual/galois-field.js +0 -4
- package/dist/lib/_virtual/get.js +0 -4
- package/dist/lib/_virtual/getOptionsFromElement.js +0 -4
- package/dist/lib/_virtual/getPrototypeOf.js +0 -4
- package/dist/lib/_virtual/getRenderProperties.js +0 -4
- package/dist/lib/_virtual/globalThis.browser.js +0 -4
- package/dist/lib/_virtual/has-cors.js +0 -4
- package/dist/lib/_virtual/html2canvas.js +0 -4
- package/dist/lib/_virtual/index.js +0 -4
- package/dist/lib/_virtual/index10.js +0 -4
- package/dist/lib/_virtual/index11.js +0 -4
- package/dist/lib/_virtual/index12.js +0 -4
- package/dist/lib/_virtual/index13.js +0 -4
- package/dist/lib/_virtual/index14.js +0 -4
- package/dist/lib/_virtual/index15.js +0 -4
- package/dist/lib/_virtual/index16.js +0 -4
- package/dist/lib/_virtual/index17.js +0 -4
- package/dist/lib/_virtual/index18.js +0 -4
- package/dist/lib/_virtual/index19.js +0 -4
- package/dist/lib/_virtual/index2.js +0 -4
- package/dist/lib/_virtual/index20.js +0 -4
- package/dist/lib/_virtual/index21.js +0 -4
- package/dist/lib/_virtual/index22.js +0 -4
- package/dist/lib/_virtual/index23.js +0 -4
- package/dist/lib/_virtual/index3.js +0 -4
- package/dist/lib/_virtual/index4.js +0 -5
- package/dist/lib/_virtual/index5.js +0 -4
- package/dist/lib/_virtual/index6.js +0 -4
- package/dist/lib/_virtual/index7.js +0 -6
- package/dist/lib/_virtual/index8.js +0 -6
- package/dist/lib/_virtual/index9.js +0 -4
- package/dist/lib/_virtual/inherits.js +0 -4
- package/dist/lib/_virtual/internal-metadata.js +0 -4
- package/dist/lib/_virtual/is-binary.js +0 -4
- package/dist/lib/_virtual/iterableToArray.js +0 -4
- package/dist/lib/_virtual/iterableToArrayLimit.js +0 -4
- package/dist/lib/_virtual/jquery.js +0 -4
- package/dist/lib/_virtual/jspdf.es.min.js +0 -5
- package/dist/lib/_virtual/linearizeEncodings.js +0 -4
- package/dist/lib/_virtual/make-built-in.js +0 -4
- package/dist/lib/_virtual/manager.js +0 -4
- package/dist/lib/_virtual/mask-pattern.js +0 -4
- package/dist/lib/_virtual/merge.js +0 -4
- package/dist/lib/_virtual/mode.js +0 -4
- package/dist/lib/_virtual/new-promise-capability.js +0 -4
- package/dist/lib/_virtual/nonIterableRest.js +0 -4
- package/dist/lib/_virtual/nonIterableSpread.js +0 -4
- package/dist/lib/_virtual/object-define-properties.js +0 -4
- package/dist/lib/_virtual/object-define-property.js +0 -4
- package/dist/lib/_virtual/object-get-own-property-descriptor.js +0 -4
- package/dist/lib/_virtual/object-get-own-property-names-external.js +0 -4
- package/dist/lib/_virtual/object-get-own-property-names.js +0 -4
- package/dist/lib/_virtual/object-get-own-property-symbols.js +0 -4
- package/dist/lib/_virtual/object-property-is-enumerable.js +0 -4
- package/dist/lib/_virtual/object.js +0 -4
- package/dist/lib/_virtual/on.js +0 -4
- package/dist/lib/_virtual/optionsFromStrings.js +0 -4
- package/dist/lib/_virtual/parseqs.js +0 -4
- package/dist/lib/_virtual/parseuri.js +0 -4
- package/dist/lib/_virtual/performance-now.js +0 -4
- package/dist/lib/_virtual/polling.js +0 -4
- package/dist/lib/_virtual/polynomial.js +0 -4
- package/dist/lib/_virtual/possibleConstructorReturn.js +0 -4
- package/dist/lib/_virtual/qrcode.js +0 -4
- package/dist/lib/_virtual/regeneratorRuntime.js +0 -4
- package/dist/lib/_virtual/regex.js +0 -4
- package/dist/lib/_virtual/segments.js +0 -4
- package/dist/lib/_virtual/setPrototypeOf.js +0 -4
- package/dist/lib/_virtual/shared-store.js +0 -4
- package/dist/lib/_virtual/shared.js +0 -4
- package/dist/lib/_virtual/slicedToArray.js +0 -4
- package/dist/lib/_virtual/socket.js +0 -4
- package/dist/lib/_virtual/socket2.js +0 -4
- package/dist/lib/_virtual/stackblur-es.js +0 -5
- package/dist/lib/_virtual/superPropBase.js +0 -4
- package/dist/lib/_virtual/svg-tag.js +0 -4
- package/dist/lib/_virtual/svg.js +0 -4
- package/dist/lib/_virtual/toConsumableArray.js +0 -4
- package/dist/lib/_virtual/toPrimitive.js +0 -4
- package/dist/lib/_virtual/toPropertyKey.js +0 -4
- package/dist/lib/_virtual/transport.js +0 -4
- package/dist/lib/_virtual/typeof.js +0 -4
- package/dist/lib/_virtual/unsupportedIterableToArray.js +0 -4
- package/dist/lib/_virtual/url.js +0 -4
- package/dist/lib/_virtual/util.js +0 -4
- package/dist/lib/_virtual/utils.js +0 -4
- package/dist/lib/_virtual/utils2.js +0 -4
- package/dist/lib/_virtual/version-check.js +0 -4
- package/dist/lib/_virtual/version.js +0 -4
- package/dist/lib/_virtual/vue-plugin-hiprint.js +0 -4
- package/dist/lib/_virtual/web.dom-collections.for-each.js +0 -4
- package/dist/lib/_virtual/web.dom-collections.iterator.js +0 -4
- package/dist/lib/_virtual/web.dom-collections.iterator2.js +0 -3
- package/dist/lib/_virtual/websocket-constructor.browser.js +0 -4
- package/dist/lib/_virtual/websocket.js +0 -4
- package/dist/lib/_virtual/webtransport.js +0 -4
- package/dist/lib/_virtual/xmlhttprequest.browser.js +0 -4
- package/dist/lib/_virtual/yeast.js +0 -4
- package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme1.js +0 -7
- package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme2.js +0 -7
- package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme3.js +0 -7
- package/dist/lib/components/runtime/index.d.ts +0 -4
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -18
- package/dist/lib/components/runtime/utils/api/api-util.js +0 -298
- package/dist/lib/components/runtime/utils/api/page-expose-util.d.ts +0 -1
- package/dist/lib/components/runtime/utils/api/page-expose-util.js +0 -206
- package/dist/lib/components/runtime/utils/assemblys-config.js +0 -295
- package/dist/lib/components/runtime/utils/barcode-util.d.ts +0 -8
- package/dist/lib/components/runtime/utils/barcode-util.js +0 -36
- package/dist/lib/components/runtime/utils/charts/chart-columnline-util.js +0 -279
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +0 -74
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +0 -118
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +0 -100
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +0 -74
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -51
- package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -302
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -17
- package/dist/lib/components/runtime/utils/common-util.js +0 -108
- package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
- package/dist/lib/components/runtime/utils/eventBus.js +0 -10
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -68
- package/dist/lib/components/runtime/utils/events/event-util.js +0 -616
- package/dist/lib/components/runtime/utils/events/print-label.d.ts +0 -5
- package/dist/lib/components/runtime/utils/events/print-label.js +0 -153
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -67
- package/dist/lib/components/runtime/utils/events/standard-event.js +0 -1817
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -12
- package/dist/lib/components/runtime/utils/events/validator-util.js +0 -416
- package/dist/lib/components/runtime/utils/form/date-shortcuts.d.ts +0 -7
- package/dist/lib/components/runtime/utils/form/date-shortcuts.js +0 -96
- package/dist/lib/components/runtime/utils/form/scan-util.js +0 -194
- package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
- package/dist/lib/components/runtime/utils/global-refs.js +0 -77
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -224
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +0 -9
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -134
- package/dist/lib/components/runtime/utils/page-helper-util.js +0 -668
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -40
- package/dist/lib/components/runtime/utils/page-init-util.js +0 -266
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
- package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
- package/dist/lib/components/runtime/utils/store-util.js +0 -17
- package/dist/lib/components/runtime/utils/store.d.ts +0 -2
- package/dist/lib/components/runtime/utils/store.js +0 -3
- package/dist/lib/components/runtime/utils/table-utils.js +0 -16
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -115
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +0 -95
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -144
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -106
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -141
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -115
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -117
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -147
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -70
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -50
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -109
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +0 -183
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -673
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -455
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -120
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +0 -65
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -149
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -72
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -42
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -135
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -67
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -159
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -130
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -78
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -160
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -236
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -204
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +0 -41
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -65
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -66
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -71
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +0 -154
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +0 -39
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +0 -39
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -59
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -36
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +0 -79
- package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -99
- package/dist/lib/components/runtime/views/super-page.vue.js +0 -525
- package/dist/lib/components/runtime/views/super-page.vue2.js +0 -3
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/i18n/langs/cn.js +0 -53
- package/dist/lib/i18n/langs/en.js +0 -53
- package/dist/lib/index.d.ts +0 -13
- package/dist/lib/index.js +0 -22
|
@@ -1,668 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const request = require("../../../node_modules/.pnpm/agilebuilder-ui@1.0.28_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js");
|
|
4
|
-
const dayjs_min = require("../../../node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/dayjs.min.js");
|
|
5
|
-
const calculatorUtil = require("../../../node_modules/.pnpm/agilebuilder-ui@1.0.28_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/calculator/calculator-util.js");
|
|
6
|
-
const globalRefs = require("./global-refs.js");
|
|
7
|
-
const Vue = require("vue");
|
|
8
|
-
function getComponentOptionConfigs(component, pageContext2) {
|
|
9
|
-
if (!component.props || !component.props.dataOrigin) {
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
const dataOriginInfo = component.props.dataOrigin;
|
|
13
|
-
const infoObj = {
|
|
14
|
-
uuid: component.uuid
|
|
15
|
-
};
|
|
16
|
-
if (dataOriginInfo.optionValueSetType == "optionGroup") {
|
|
17
|
-
infoObj.type = "optionGroup";
|
|
18
|
-
infoObj.props = {
|
|
19
|
-
code: dataOriginInfo.optionGroup
|
|
20
|
-
};
|
|
21
|
-
} else if (dataOriginInfo.optionValueSetType == "dynamicData") {
|
|
22
|
-
infoObj.type = "dynamicData";
|
|
23
|
-
infoObj.filterType = dataOriginInfo.filterType;
|
|
24
|
-
infoObj.props = {
|
|
25
|
-
code: dataOriginInfo.dynamicDataSourceCode
|
|
26
|
-
};
|
|
27
|
-
} else if (dataOriginInfo.optionValueSetType == "dataTable") {
|
|
28
|
-
infoObj.filterType = dataOriginInfo.filterType;
|
|
29
|
-
const tempObj = getTableQueryInfo(dataOriginInfo, pageContext2);
|
|
30
|
-
Object.assign(infoObj, tempObj);
|
|
31
|
-
} else if (dataOriginInfo.optionValueSetType == "service") {
|
|
32
|
-
infoObj.filterType = dataOriginInfo.filterType;
|
|
33
|
-
const tempObj = getServiceQueryInfo(dataOriginInfo, pageContext2);
|
|
34
|
-
Object.assign(infoObj, tempObj);
|
|
35
|
-
}
|
|
36
|
-
if (infoObj.type) {
|
|
37
|
-
return infoObj;
|
|
38
|
-
} else {
|
|
39
|
-
return void 0;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
function getTableQueryInfo(dataOriginInfo, pageContext2) {
|
|
43
|
-
const infoObj = {};
|
|
44
|
-
infoObj.type = "dataTable";
|
|
45
|
-
infoObj.props = {
|
|
46
|
-
tableName: dataOriginInfo.tableName,
|
|
47
|
-
systemCode: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : pageContext2.systemCode,
|
|
48
|
-
systemVersion: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysVersion : pageContext2.systemVersion
|
|
49
|
-
};
|
|
50
|
-
if (dataOriginInfo.sortFields) {
|
|
51
|
-
const sortFields = [];
|
|
52
|
-
for (const field of dataOriginInfo.sortFields) {
|
|
53
|
-
if (field.name) {
|
|
54
|
-
sortFields.push({
|
|
55
|
-
prop: field.name,
|
|
56
|
-
order: field.type ? field.type : "asc"
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
infoObj.props.sorts = sortFields;
|
|
61
|
-
}
|
|
62
|
-
const autoMonitorFields = [];
|
|
63
|
-
if (dataOriginInfo.filterList) {
|
|
64
|
-
const searchForm = [];
|
|
65
|
-
for (const f of dataOriginInfo.filterList) {
|
|
66
|
-
if (!f.propName) {
|
|
67
|
-
continue;
|
|
68
|
-
}
|
|
69
|
-
if (!f.propDbName) {
|
|
70
|
-
f.propDbName = f.propName;
|
|
71
|
-
}
|
|
72
|
-
const tempObj = {};
|
|
73
|
-
Object.assign(tempObj, f);
|
|
74
|
-
const paramsNames = getParamNames(f.propValue);
|
|
75
|
-
for (const p of paramsNames) {
|
|
76
|
-
if (p && (p.startsWith("${data.") || p.startsWith("${task.") || p.startsWith("${page."))) {
|
|
77
|
-
if (!autoMonitorFields.includes(p)) {
|
|
78
|
-
autoMonitorFields.push(p);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
if (f.propValue)
|
|
83
|
-
;
|
|
84
|
-
searchForm.push(tempObj);
|
|
85
|
-
}
|
|
86
|
-
infoObj.props.searchForm = searchForm;
|
|
87
|
-
}
|
|
88
|
-
infoObj.props.monitorFields = autoMonitorFields;
|
|
89
|
-
const queryFields = [];
|
|
90
|
-
if (dataOriginInfo.tableValueField) {
|
|
91
|
-
infoObj.props.valueField = dataOriginInfo.tableValueField;
|
|
92
|
-
}
|
|
93
|
-
if (dataOriginInfo.tableLableField && queryFields.indexOf(dataOriginInfo.tableLableField) == -1) {
|
|
94
|
-
infoObj.props.lableField = dataOriginInfo.tableLableField;
|
|
95
|
-
}
|
|
96
|
-
if (dataOriginInfo.autoSets) {
|
|
97
|
-
for (const field of dataOriginInfo.autoSets) {
|
|
98
|
-
if (field.source && queryFields.indexOf(field.source) == -1) {
|
|
99
|
-
queryFields.push(field.source);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
infoObj.props.queryFields = queryFields;
|
|
104
|
-
infoObj.props.pageSize = dataOriginInfo.displayQuantity;
|
|
105
|
-
return infoObj;
|
|
106
|
-
}
|
|
107
|
-
function getServiceQueryInfo(dataOriginInfo, pageContext2) {
|
|
108
|
-
const infoObj = {};
|
|
109
|
-
infoObj.type = "service";
|
|
110
|
-
infoObj.props = {
|
|
111
|
-
serivceCode: dataOriginInfo.serviceCode,
|
|
112
|
-
systemCode: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : pageContext2.systemCode,
|
|
113
|
-
systemVersion: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : pageContext2.systemCode
|
|
114
|
-
};
|
|
115
|
-
if (dataOriginInfo.serviceInputs) {
|
|
116
|
-
const searchForm = [];
|
|
117
|
-
for (const f of dataOriginInfo.serviceInputs) {
|
|
118
|
-
if (!f.name || f.value) {
|
|
119
|
-
continue;
|
|
120
|
-
}
|
|
121
|
-
const tempObj = {};
|
|
122
|
-
Object.assign(tempObj, f);
|
|
123
|
-
searchForm.push(tempObj);
|
|
124
|
-
}
|
|
125
|
-
infoObj.props.inputs = searchForm;
|
|
126
|
-
}
|
|
127
|
-
infoObj.props.dataSetField = dataOriginInfo.serviceDataSetField;
|
|
128
|
-
infoObj.props.valueField = dataOriginInfo.serviceValueField;
|
|
129
|
-
infoObj.props.labelField = dataOriginInfo.serviceLabelField;
|
|
130
|
-
return infoObj;
|
|
131
|
-
}
|
|
132
|
-
function updateChartDatasources(pageContext2, dataSourceConfs, appendParams) {
|
|
133
|
-
return new Promise((resolve, reject) => {
|
|
134
|
-
if (!dataSourceConfs || dataSourceConfs.length == 0) {
|
|
135
|
-
reject(new Error("无需查询的统计图配置!"));
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
const entityData2 = pageContext2.entity ? pageContext2.entity : {};
|
|
139
|
-
const additionalParamMap = {};
|
|
140
|
-
if (entityData2.request) {
|
|
141
|
-
Object.assign(additionalParamMap, entityData2.request);
|
|
142
|
-
}
|
|
143
|
-
if (entityData2.page) {
|
|
144
|
-
Object.assign(additionalParamMap, entityData2.page);
|
|
145
|
-
}
|
|
146
|
-
if (appendParams) {
|
|
147
|
-
Object.assign(additionalParamMap, appendParams);
|
|
148
|
-
}
|
|
149
|
-
const taskMap = {};
|
|
150
|
-
if (entityData2.task) {
|
|
151
|
-
Object.assign(taskMap, entityData2.task);
|
|
152
|
-
}
|
|
153
|
-
const param = {
|
|
154
|
-
entityMap: entityData2.data,
|
|
155
|
-
additionalParamMap,
|
|
156
|
-
taskMap,
|
|
157
|
-
dataSourceList: dataSourceConfs,
|
|
158
|
-
systemCode: pageContext2.systemCode,
|
|
159
|
-
pageCode: pageContext2.code
|
|
160
|
-
};
|
|
161
|
-
let baseUrl = pageContext2.backendUrl;
|
|
162
|
-
if (!baseUrl) {
|
|
163
|
-
baseUrl = window["$vueApp"].config.globalProperties.baseURL;
|
|
164
|
-
}
|
|
165
|
-
const url = baseUrl + "/common/common-data/find-chart-datas";
|
|
166
|
-
request.post(url, param).then((result) => {
|
|
167
|
-
if (!pageContext2.chartDataSourceMap) {
|
|
168
|
-
pageContext2.chartDataSourceMap = {};
|
|
169
|
-
}
|
|
170
|
-
for (const uuid in result) {
|
|
171
|
-
pageContext2.chartDataSourceMap[uuid] = result[uuid];
|
|
172
|
-
const componentObj = globalRefs.getComponentRef(pageContext2, uuid);
|
|
173
|
-
if (componentObj && componentObj.updateChartDatas) {
|
|
174
|
-
componentObj.updateChartDatas(result[uuid]);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
console.log("查询统计图数据完成", result);
|
|
178
|
-
resolve(result);
|
|
179
|
-
}).catch((error) => {
|
|
180
|
-
console.log("查询统计图数据失败", error);
|
|
181
|
-
reject(error);
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
function updateOptionDatasources(pageContext2, dataSourceConfs, query) {
|
|
186
|
-
return new Promise((resolve, reject) => {
|
|
187
|
-
if (!dataSourceConfs || dataSourceConfs.length == 0) {
|
|
188
|
-
reject(new Error("无需查询的配置!"));
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
const entityData2 = pageContext2.entity ? pageContext2.entity : {};
|
|
192
|
-
const additionalParamMap = {};
|
|
193
|
-
if (entityData2.request) {
|
|
194
|
-
Object.assign(additionalParamMap, entityData2.request);
|
|
195
|
-
}
|
|
196
|
-
if (entityData2.page) {
|
|
197
|
-
Object.assign(additionalParamMap, entityData2.page);
|
|
198
|
-
}
|
|
199
|
-
additionalParamMap.query = query;
|
|
200
|
-
const param = {
|
|
201
|
-
entityMap: entityData2.data,
|
|
202
|
-
additionalParamMap,
|
|
203
|
-
dataSourceList: dataSourceConfs,
|
|
204
|
-
systemCode: pageContext2.systemCode,
|
|
205
|
-
query
|
|
206
|
-
};
|
|
207
|
-
let baseUrl = pageContext2.backendUrl;
|
|
208
|
-
if (!baseUrl) {
|
|
209
|
-
baseUrl = window["$vueApp"].config.globalProperties.baseURL;
|
|
210
|
-
}
|
|
211
|
-
const url = baseUrl + "/common/common-data/find-datas";
|
|
212
|
-
request.post(url, param).then((result) => {
|
|
213
|
-
if (!pageContext2.optionSourceMap) {
|
|
214
|
-
pageContext2.optionSourceMap = {};
|
|
215
|
-
}
|
|
216
|
-
for (const uuid in result) {
|
|
217
|
-
pageContext2.optionSourceMap[uuid] = result[uuid];
|
|
218
|
-
const componentObj = globalRefs.getComponentRef(pageContext2, uuid);
|
|
219
|
-
if (componentObj && componentObj.updateOptions) {
|
|
220
|
-
componentObj.updateOptions(result[uuid]);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
console.log("查询选项数据完成", result);
|
|
224
|
-
resolve(result);
|
|
225
|
-
}).catch((error) => {
|
|
226
|
-
console.log("查询选项数据失败", error);
|
|
227
|
-
reject(error);
|
|
228
|
-
});
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
function getOptionDatasFromPage(pageContext2, configure2) {
|
|
232
|
-
if (!pageContext2 || !pageContext2.optionSourceMap || !configure2) {
|
|
233
|
-
return [];
|
|
234
|
-
}
|
|
235
|
-
const cacheOptions = pageContext2.optionSourceMap[configure2.uuid];
|
|
236
|
-
return cacheOptions ? cacheOptions : [];
|
|
237
|
-
}
|
|
238
|
-
function getChartDatasFromPage(pageContext2, configure2) {
|
|
239
|
-
if (!pageContext2 || !pageContext2.chartDataSourceMap || !configure2) {
|
|
240
|
-
return null;
|
|
241
|
-
}
|
|
242
|
-
const cacheDatas = pageContext2.chartDataSourceMap[configure2.uuid];
|
|
243
|
-
return cacheDatas;
|
|
244
|
-
}
|
|
245
|
-
function queryOptionDatasources(pageContext2, dataSourceConf, query) {
|
|
246
|
-
return updateOptionDatasources(pageContext2, dataSourceConf ? [dataSourceConf] : [], query);
|
|
247
|
-
}
|
|
248
|
-
function queryOptions(component, pageContext2, query) {
|
|
249
|
-
if (!component.props || !component.props.dataOrigin) {
|
|
250
|
-
return new Promise(function(resolve, reject) {
|
|
251
|
-
resolve([]);
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
const dataOriginInfo = component.props.dataOrigin;
|
|
255
|
-
if (dataOriginInfo.optionValueSetType == "dynamicData") {
|
|
256
|
-
if (!dataOriginInfo.dynamicDataSourceCode) {
|
|
257
|
-
return new Promise(function(resolve, reject) {
|
|
258
|
-
throw new Error("未指定动态数据源!");
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
return queryByDynamicCode(dataOriginInfo.dynamicDataSourceCode, query);
|
|
262
|
-
} else if (dataOriginInfo.optionValueSetType == "dataTable") {
|
|
263
|
-
if (!dataOriginInfo.tableName) {
|
|
264
|
-
return new Promise(function(resolve, reject) {
|
|
265
|
-
throw new Error("未指定查询的数据表!");
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
const tempObj = getTableQueryInfo(dataOriginInfo, pageContext2);
|
|
269
|
-
return queryByTable(tempObj);
|
|
270
|
-
} else {
|
|
271
|
-
return new Promise(function(resolve, reject) {
|
|
272
|
-
throw new Error("无有效的查询设置!");
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
function queryByDynamicCode(dynamicCode, query) {
|
|
277
|
-
const param = {
|
|
278
|
-
code: dynamicCode,
|
|
279
|
-
query
|
|
280
|
-
};
|
|
281
|
-
return request.post("", param);
|
|
282
|
-
}
|
|
283
|
-
function queryByTable(tableQueryInfo) {
|
|
284
|
-
const param = tableQueryInfo.props;
|
|
285
|
-
return request.post("", param);
|
|
286
|
-
}
|
|
287
|
-
function autoSetAfterSelect(component, pageContext2, autoSets, selItems) {
|
|
288
|
-
if (!autoSets || autoSets.length == 0) {
|
|
289
|
-
return;
|
|
290
|
-
}
|
|
291
|
-
const entity = pageContext2.entity ? pageContext2.entity : {};
|
|
292
|
-
for (const as of autoSets) {
|
|
293
|
-
if (!as.source || !as.target) {
|
|
294
|
-
continue;
|
|
295
|
-
}
|
|
296
|
-
const values = getValuesByField(selItems, as.source);
|
|
297
|
-
let targetField = as.target;
|
|
298
|
-
if (!targetField || !targetField.startsWith("${")) {
|
|
299
|
-
continue;
|
|
300
|
-
}
|
|
301
|
-
targetField = targetField.substring(2, targetField.length - 1);
|
|
302
|
-
const fields = targetField.split(".");
|
|
303
|
-
setVariableValue(entity, fields, values.join(","));
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
function getValuesByField(items, fieldName) {
|
|
307
|
-
if (!items) {
|
|
308
|
-
return [""];
|
|
309
|
-
} else {
|
|
310
|
-
const values = [];
|
|
311
|
-
for (const i of items) {
|
|
312
|
-
let val = i[fieldName];
|
|
313
|
-
if (val == void 0 || val == null) {
|
|
314
|
-
val = "";
|
|
315
|
-
}
|
|
316
|
-
values.push(val);
|
|
317
|
-
}
|
|
318
|
-
return values;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
function getVariableValue(entity, fields) {
|
|
322
|
-
if (!entity || !fields || fields.length == 0) {
|
|
323
|
-
return;
|
|
324
|
-
}
|
|
325
|
-
let tempObj = entity;
|
|
326
|
-
for (let i = 0; i < fields.length; i++) {
|
|
327
|
-
if (tempObj == void 0) {
|
|
328
|
-
return tempObj;
|
|
329
|
-
}
|
|
330
|
-
const fieldName = fields[i];
|
|
331
|
-
tempObj = tempObj[fieldName];
|
|
332
|
-
}
|
|
333
|
-
return tempObj;
|
|
334
|
-
}
|
|
335
|
-
function setValueForVariableName(entity, variableName, newValue) {
|
|
336
|
-
if (!variableName || !variableName.startsWith("${")) {
|
|
337
|
-
return;
|
|
338
|
-
}
|
|
339
|
-
variableName = variableName.substring(2, variableName.length - 1);
|
|
340
|
-
const fields = variableName.split(".");
|
|
341
|
-
setVariableValue(entity, fields, newValue);
|
|
342
|
-
}
|
|
343
|
-
function setVariableValue(entity, fields, newValue) {
|
|
344
|
-
if (!entity || !fields || fields.length == 0) {
|
|
345
|
-
return;
|
|
346
|
-
}
|
|
347
|
-
let tempObj = entity;
|
|
348
|
-
for (let i = 0; i < fields.length; i++) {
|
|
349
|
-
const fieldName = fields[i];
|
|
350
|
-
if (i + 1 == fields.length) {
|
|
351
|
-
tempObj[fieldName] = newValue;
|
|
352
|
-
} else {
|
|
353
|
-
tempObj = tempObj[fieldName];
|
|
354
|
-
if (tempObj == void 0) {
|
|
355
|
-
tempObj[fieldName] = {};
|
|
356
|
-
tempObj = tempObj[fieldName];
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
function formatVariableValue(pageContext2, variable) {
|
|
362
|
-
if (!pageContext2 || variable == "" || variable == null || variable == void 0) {
|
|
363
|
-
return variable;
|
|
364
|
-
}
|
|
365
|
-
const entity = pageContext2.entity ? pageContext2.entity : {};
|
|
366
|
-
const t = getParamNames(variable);
|
|
367
|
-
for (const c in t) {
|
|
368
|
-
const param = t[c];
|
|
369
|
-
const paramValue = getValueFromVariable(entity, param);
|
|
370
|
-
variable = variable.replace(
|
|
371
|
-
param,
|
|
372
|
-
paramValue == void 0 || paramValue == null ? "" : paramValue
|
|
373
|
-
);
|
|
374
|
-
}
|
|
375
|
-
return variable;
|
|
376
|
-
}
|
|
377
|
-
function getParamNames(variable) {
|
|
378
|
-
if (!variable) {
|
|
379
|
-
return [];
|
|
380
|
-
}
|
|
381
|
-
const reg = /\$\{[^\{|\}]+\}/g;
|
|
382
|
-
return variable.match(reg);
|
|
383
|
-
}
|
|
384
|
-
function formatValueByType(value, formatType, formatInfo) {
|
|
385
|
-
if (!formatType || value == "" || value == null || value == void 0) {
|
|
386
|
-
return value;
|
|
387
|
-
}
|
|
388
|
-
console.log("aaa", value, formatType, formatInfo);
|
|
389
|
-
formatInfo = formatInfo ? formatInfo : {};
|
|
390
|
-
if (formatType == "number" || formatType == "percent") {
|
|
391
|
-
if (isNaN(value)) {
|
|
392
|
-
return value;
|
|
393
|
-
}
|
|
394
|
-
let precision = parseInt(formatInfo.decimalDigit);
|
|
395
|
-
if (precision == null || isNaN(precision)) {
|
|
396
|
-
precision = -1;
|
|
397
|
-
}
|
|
398
|
-
value = parseFloat(value);
|
|
399
|
-
if (formatType == "percent") {
|
|
400
|
-
value = value * 100;
|
|
401
|
-
}
|
|
402
|
-
if (precision > -1) {
|
|
403
|
-
value = parseFloat(value.toFixed(precision));
|
|
404
|
-
}
|
|
405
|
-
if (formatType == "percent") {
|
|
406
|
-
value = value + "%";
|
|
407
|
-
} else {
|
|
408
|
-
if (formatInfo.thousandsSeparator) {
|
|
409
|
-
const parts = value.toString().split(".");
|
|
410
|
-
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
411
|
-
value = parts.length > 1 ? parts.join(".") : parts[0];
|
|
412
|
-
}
|
|
413
|
-
if (formatInfo.symbol) {
|
|
414
|
-
value = formatInfo.symbol + "" + value;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
return value;
|
|
418
|
-
} else if (formatType == "date" || formatType == "time") {
|
|
419
|
-
let formatStr = "";
|
|
420
|
-
if (formatType == "date") {
|
|
421
|
-
formatStr = formatInfo.dateFormat;
|
|
422
|
-
if (!formatStr) {
|
|
423
|
-
formatStr = "YYYY-MM-DD";
|
|
424
|
-
}
|
|
425
|
-
} else {
|
|
426
|
-
formatStr = formatInfo.timeFormat;
|
|
427
|
-
if (!formatStr) {
|
|
428
|
-
formatStr = "HH:mm:ss";
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
return dayjs_min(value).format(formatStr);
|
|
432
|
-
} else if (formatType == "custom" && formatInfo.formatEventUuid) {
|
|
433
|
-
console.log("自定义方法", formatInfo);
|
|
434
|
-
}
|
|
435
|
-
return value;
|
|
436
|
-
}
|
|
437
|
-
function getValueFromVariable(entity, variable) {
|
|
438
|
-
if (variable == null || variable == void 0) {
|
|
439
|
-
return variable;
|
|
440
|
-
}
|
|
441
|
-
if (variable.startsWith("${") && variable.endsWith("}")) {
|
|
442
|
-
let paramName = variable.substring(2, variable.length - 1);
|
|
443
|
-
let paramType = null;
|
|
444
|
-
let valueSource = null;
|
|
445
|
-
if (paramName.startsWith("data.")) {
|
|
446
|
-
paramName = paramName.substring(5);
|
|
447
|
-
valueSource = entity.data;
|
|
448
|
-
paramType = "data";
|
|
449
|
-
} else if (paramName.startsWith("page.")) {
|
|
450
|
-
paramName = paramName.substring(5);
|
|
451
|
-
paramType = "page";
|
|
452
|
-
valueSource = entity.page;
|
|
453
|
-
} else if (paramName.startsWith("task.")) {
|
|
454
|
-
paramName = paramName.substring(5);
|
|
455
|
-
paramType = "task";
|
|
456
|
-
valueSource = entity.task;
|
|
457
|
-
} else if (paramName.startsWith("request.")) {
|
|
458
|
-
paramName = paramName.substring(8);
|
|
459
|
-
paramType = "request";
|
|
460
|
-
valueSource = entity.request;
|
|
461
|
-
} else if (paramName.startsWith("context.")) {
|
|
462
|
-
paramName = paramName.substring(8);
|
|
463
|
-
paramType = "context";
|
|
464
|
-
valueSource = entity.context;
|
|
465
|
-
} else if (paramName.startsWith("system.")) {
|
|
466
|
-
paramName = paramName.substring(7);
|
|
467
|
-
paramType = "system";
|
|
468
|
-
valueSource = entity.system;
|
|
469
|
-
} else if (paramName.startsWith("fixed.")) {
|
|
470
|
-
return paramName.substring(6);
|
|
471
|
-
}
|
|
472
|
-
if (!paramName || !paramName) {
|
|
473
|
-
console.log("获取变量失败", variable, entity);
|
|
474
|
-
return "";
|
|
475
|
-
}
|
|
476
|
-
return getValueFromSource(valueSource, paramName, paramType);
|
|
477
|
-
} else {
|
|
478
|
-
return variable;
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
function getValueFromSource(valueSource, paramName, paramType) {
|
|
482
|
-
if (paramType != "context" && !valueSource || !paramName) {
|
|
483
|
-
return void 0;
|
|
484
|
-
}
|
|
485
|
-
const firstIndex = paramName.indexOf(".");
|
|
486
|
-
if (firstIndex > -1) {
|
|
487
|
-
const tempParamName = paramName.substring(0, firstIndex);
|
|
488
|
-
const newParamName = paramName.substring(firstIndex + 1);
|
|
489
|
-
let childValue = valueSource[tempParamName];
|
|
490
|
-
if (childValue && Array.isArray(childValue) && childValue.length > 0) {
|
|
491
|
-
childValue = childValue[0];
|
|
492
|
-
}
|
|
493
|
-
return getValueFromSource(childValue, newParamName, paramType);
|
|
494
|
-
} else {
|
|
495
|
-
if (paramType == "context") {
|
|
496
|
-
console.log("newDate", paramName);
|
|
497
|
-
if (paramName == "currentDate" || paramName == "currentTime") {
|
|
498
|
-
return /* @__PURE__ */ new Date();
|
|
499
|
-
} else if (paramName.startsWith("currentDate") && paramName.length > 11) {
|
|
500
|
-
const str = paramName.substring(11);
|
|
501
|
-
const symbol = str.substring(0, 1);
|
|
502
|
-
let num = parseInt(str.substring(1, str.length - 1), 10);
|
|
503
|
-
const unit = str.substring(str.length - 1);
|
|
504
|
-
const date = /* @__PURE__ */ new Date();
|
|
505
|
-
num = "+" === symbol ? num : -num;
|
|
506
|
-
if (unit === "d" || unit === "w") {
|
|
507
|
-
num = unit === "w" ? num * 7 : num;
|
|
508
|
-
date.setDate(date.getDate() + num);
|
|
509
|
-
} else if (unit === "m") {
|
|
510
|
-
date.setMonth(date.getMonth() + num);
|
|
511
|
-
} else if (unit === "y") {
|
|
512
|
-
date.setFullYear(date.getFullYear() + num);
|
|
513
|
-
}
|
|
514
|
-
return date;
|
|
515
|
-
}
|
|
516
|
-
if (!valueSource) {
|
|
517
|
-
return void 0;
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
return valueSource[paramName];
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
function caculateShowCondition(pageContext, configure, showConditions) {
|
|
524
|
-
if (!showConditions || showConditions.length == 0 || !pageContext || !pageContext.entity) {
|
|
525
|
-
return true;
|
|
526
|
-
}
|
|
527
|
-
const entityData = pageContext.entity;
|
|
528
|
-
let conditions = "";
|
|
529
|
-
const maxLen = showConditions.length;
|
|
530
|
-
for (let i = 0; i < maxLen; i++) {
|
|
531
|
-
const condition = showConditions[i];
|
|
532
|
-
const propName = condition.propName;
|
|
533
|
-
let operator = condition.operator;
|
|
534
|
-
if (!propName || propName === "") {
|
|
535
|
-
continue;
|
|
536
|
-
}
|
|
537
|
-
if (!operator) {
|
|
538
|
-
operator = "EQ";
|
|
539
|
-
}
|
|
540
|
-
const leftValue = getValueFromVariable(entityData, propName);
|
|
541
|
-
let propValue = getValueFromVariable(entityData, condition.propValue);
|
|
542
|
-
const dataType = condition.dataType;
|
|
543
|
-
if (operator == "CONTAIN" || operator == "NOT_CONTAIN") {
|
|
544
|
-
if (leftValue && !leftValue.includes) {
|
|
545
|
-
operator = operator == "CONTAIN" ? "EQ" : "NET";
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
let variableIsNullStr = condition.variableIsNull;
|
|
549
|
-
if (!variableIsNullStr) {
|
|
550
|
-
variableIsNullStr = "null";
|
|
551
|
-
}
|
|
552
|
-
let conditionResult = void 0;
|
|
553
|
-
if (propValue === void 0 || propValue === "") {
|
|
554
|
-
propValue = null;
|
|
555
|
-
if (variableIsNullStr === "null") {
|
|
556
|
-
operator = "IS_NULL";
|
|
557
|
-
} else if (variableIsNullStr === "notequal") {
|
|
558
|
-
operator = "IS_NOT_NULL";
|
|
559
|
-
} else {
|
|
560
|
-
conditionResult = true;
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
if (conditionResult == void 0) {
|
|
564
|
-
try {
|
|
565
|
-
conditionResult = calculatorUtil.executeExpression(leftValue, operator, propValue, dataType);
|
|
566
|
-
} catch (e) {
|
|
567
|
-
console.log("executeExpression error", e);
|
|
568
|
-
conditionResult = false;
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
const leftBracket = condition.leftBracket;
|
|
572
|
-
const rightBracket = condition.rightBracket;
|
|
573
|
-
let joinSign = condition.joinSign;
|
|
574
|
-
if (leftBracket && leftBracket !== null && leftBracket !== "") {
|
|
575
|
-
conditions = conditions + leftBracket;
|
|
576
|
-
conditions = conditions + " ";
|
|
577
|
-
}
|
|
578
|
-
conditions += conditionResult + " ";
|
|
579
|
-
if (rightBracket && rightBracket !== null && rightBracket !== "") {
|
|
580
|
-
conditions = conditions + rightBracket;
|
|
581
|
-
conditions = conditions + " ";
|
|
582
|
-
}
|
|
583
|
-
if (i < maxLen - 1) {
|
|
584
|
-
if (joinSign && joinSign !== null && joinSign !== "") {
|
|
585
|
-
const joinSignIgnoreCase = joinSign.toLowerCase();
|
|
586
|
-
if (joinSignIgnoreCase === "and") {
|
|
587
|
-
joinSign = joinSignIgnoreCase.replace("and", "&&");
|
|
588
|
-
} else if (joinSignIgnoreCase === "or") {
|
|
589
|
-
joinSign = joinSignIgnoreCase.replace("or", "||");
|
|
590
|
-
}
|
|
591
|
-
conditions += joinSign + " ";
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
if (conditions) {
|
|
596
|
-
return eval("(" + conditions + ")");
|
|
597
|
-
} else {
|
|
598
|
-
return true;
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
function monitorFieldChange(pageContext2, monitorFields, triggerFunc) {
|
|
602
|
-
if (!triggerFunc || !pageContext2 || !monitorFields || monitorFields.length == 0) {
|
|
603
|
-
return;
|
|
604
|
-
}
|
|
605
|
-
const monitorFieldInfos = [];
|
|
606
|
-
const preFields = [];
|
|
607
|
-
for (let propName of monitorFields) {
|
|
608
|
-
if (propName.startsWith("${")) {
|
|
609
|
-
propName = propName.substring(2, propName.length - 1);
|
|
610
|
-
const fields = propName.split(".");
|
|
611
|
-
if (fields[0] === "page" || fields[0] === "task" || fields[0] === "data") {
|
|
612
|
-
monitorFieldInfos.push(fields);
|
|
613
|
-
if (!preFields.includes(fields[0])) {
|
|
614
|
-
preFields.push(fields[0]);
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
const entity = pageContext2.entity;
|
|
620
|
-
let firstValue = getMonitorFieldValues(monitorFieldInfos, entity);
|
|
621
|
-
let monitorTimeout = false;
|
|
622
|
-
for (const preField of preFields) {
|
|
623
|
-
Vue.watch(entity[preField], () => {
|
|
624
|
-
if (monitorTimeout) {
|
|
625
|
-
clearTimeout(monitorTimeout);
|
|
626
|
-
}
|
|
627
|
-
monitorTimeout = setTimeout(function() {
|
|
628
|
-
const newValue = getMonitorFieldValues(monitorFieldInfos, entity);
|
|
629
|
-
if (firstValue != newValue) {
|
|
630
|
-
firstValue = newValue;
|
|
631
|
-
triggerFunc();
|
|
632
|
-
}
|
|
633
|
-
}, 200);
|
|
634
|
-
});
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
function getMonitorFieldValues(monitorFieldInfos, entity) {
|
|
638
|
-
let values = "";
|
|
639
|
-
for (const fieldInfo of monitorFieldInfos) {
|
|
640
|
-
values += "_" + getVariableValue(entity, fieldInfo);
|
|
641
|
-
}
|
|
642
|
-
return values;
|
|
643
|
-
}
|
|
644
|
-
function getFormPropName(prop) {
|
|
645
|
-
if (prop && prop.indexOf("${") >= 0) {
|
|
646
|
-
return prop.substring(prop.indexOf(".") + 1, prop.lastIndexOf("}"));
|
|
647
|
-
} else {
|
|
648
|
-
return prop;
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
exports.autoSetAfterSelect = autoSetAfterSelect;
|
|
652
|
-
exports.caculateShowCondition = caculateShowCondition;
|
|
653
|
-
exports.formatValueByType = formatValueByType;
|
|
654
|
-
exports.formatVariableValue = formatVariableValue;
|
|
655
|
-
exports.getChartDatasFromPage = getChartDatasFromPage;
|
|
656
|
-
exports.getComponentOptionConfigs = getComponentOptionConfigs;
|
|
657
|
-
exports.getFormPropName = getFormPropName;
|
|
658
|
-
exports.getOptionDatasFromPage = getOptionDatasFromPage;
|
|
659
|
-
exports.getValueFromSource = getValueFromSource;
|
|
660
|
-
exports.getValueFromVariable = getValueFromVariable;
|
|
661
|
-
exports.getVariableValue = getVariableValue;
|
|
662
|
-
exports.monitorFieldChange = monitorFieldChange;
|
|
663
|
-
exports.queryOptionDatasources = queryOptionDatasources;
|
|
664
|
-
exports.queryOptions = queryOptions;
|
|
665
|
-
exports.setValueForVariableName = setValueForVariableName;
|
|
666
|
-
exports.setVariableValue = setVariableValue;
|
|
667
|
-
exports.updateChartDatasources = updateChartDatasources;
|
|
668
|
-
exports.updateOptionDatasources = updateOptionDatasources;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Component, PageContext, PageDesign } from './interfaces/page-design-types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 查询页面设计对象
|
|
5
|
-
* @param pageId
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
export declare function queryPageDesign(pageId: number): Promise<any>;
|
|
9
|
-
/**
|
|
10
|
-
* 查询页面设计对象
|
|
11
|
-
* @param pageCode
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
14
|
-
export declare function queryPageDesignByCode(pageCode: string): Promise<any>;
|
|
15
|
-
/**
|
|
16
|
-
* 转换页面设计对象为运行时对象
|
|
17
|
-
* @param pageDesign 页面设计对象
|
|
18
|
-
*/
|
|
19
|
-
export declare function convertToPageContext(pageDesign: PageDesign, pageRequest: object): PageContext | null;
|
|
20
|
-
export declare function getModelFields(pageContext: PageContext, formItemConfigure: Component, prop?: string): string[];
|
|
21
|
-
/**
|
|
22
|
-
* 获取表单元素模型名称
|
|
23
|
-
* @param pageContext 页面对象
|
|
24
|
-
* @param formItemConfigure 表单元素配置参数
|
|
25
|
-
*/
|
|
26
|
-
export declare function getFormModelFields(pageContext: PageContext, formItemConfigure: any, prop?: string): string[];
|
|
27
|
-
/**
|
|
28
|
-
* 获取组件的权限编码
|
|
29
|
-
* @param configure
|
|
30
|
-
* @param pageContext
|
|
31
|
-
* @returns
|
|
32
|
-
*/
|
|
33
|
-
export declare function getPermissionCodes(configure: Component, pageContext: PageContext): string;
|
|
34
|
-
/**
|
|
35
|
-
* 查询页面中所有列表配置
|
|
36
|
-
* @param pageCode
|
|
37
|
-
* @returns
|
|
38
|
-
*/
|
|
39
|
-
export declare function queryPageSuperGrids(pageDesign: any, pageContext: any, publishVersion: any): Promise<any>;
|
|
40
|
-
export declare function packageFormRules(pageContext: PageContext, configure: any): void;
|