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,616 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const commonUtil$1 = require("../../../../node_modules/.pnpm/agilebuilder-ui@1.0.28_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/common-util.js");
|
|
4
|
-
const standardEvent = require("./standard-event.js");
|
|
5
|
-
const validatorUtil = require("./validator-util.js");
|
|
6
|
-
const globalRefs = require("../global-refs.js");
|
|
7
|
-
const util = require("../../../../node_modules/.pnpm/agilebuilder-ui@1.0.28_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/util.js");
|
|
8
|
-
const commonUtil = require("../common-util.js");
|
|
9
|
-
const eventBus = require("../eventBus.js");
|
|
10
|
-
const pageHelperUtil = require("../page-helper-util.js");
|
|
11
|
-
const index = require("../../../../node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/components/message/index.js");
|
|
12
|
-
function initPageEvents(pageDesign, pageContext) {
|
|
13
|
-
if (pageDesign && pageDesign.customEvents) {
|
|
14
|
-
const customEvents = transferToFunction(pageDesign.customEvents);
|
|
15
|
-
appendDefaultMethod(pageContext, customEvents);
|
|
16
|
-
console.log("initPage customEvents", customEvents);
|
|
17
|
-
pageContext.customEvents = customEvents;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
function getCustomFunc(pageContext, funcName) {
|
|
21
|
-
if (pageContext.customEvents) {
|
|
22
|
-
return pageContext.customEvents[funcName];
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function appendDefaultMethod(pageContext, customEvents) {
|
|
26
|
-
if (!customEvents) {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
for (const pro in customEvents) {
|
|
30
|
-
const func = customEvents[pro];
|
|
31
|
-
func.get = function(code) {
|
|
32
|
-
if (code) {
|
|
33
|
-
return globalRefs.getComponentRefByCode(pageContext, code);
|
|
34
|
-
} else {
|
|
35
|
-
return void 0;
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
func.getByUuid = function(uuid) {
|
|
39
|
-
if (uuid) {
|
|
40
|
-
return globalRefs.getComponentRef(pageContext, uuid);
|
|
41
|
-
} else {
|
|
42
|
-
return void 0;
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
func.getPageContext = function() {
|
|
46
|
-
return pageContext;
|
|
47
|
-
};
|
|
48
|
-
func.getContextValue = function(fieldName) {
|
|
49
|
-
let contextData = pageContext && pageContext.entity ? pageContext.entity.context : null;
|
|
50
|
-
contextData = contextData ? contextData : {};
|
|
51
|
-
return pageHelperUtil.getValueFromSource(contextData, fieldName, "context");
|
|
52
|
-
};
|
|
53
|
-
func.getContext = function() {
|
|
54
|
-
return pageContext && pageContext.entity ? pageContext.entity.context : {};
|
|
55
|
-
};
|
|
56
|
-
func.getSystem = function() {
|
|
57
|
-
return pageContext && pageContext.entity ? pageContext.entity.system : {};
|
|
58
|
-
};
|
|
59
|
-
func.getTask = function() {
|
|
60
|
-
return pageContext && pageContext.entity ? pageContext.entity.task : {};
|
|
61
|
-
};
|
|
62
|
-
func.getRequest = function() {
|
|
63
|
-
return pageContext && pageContext.entity ? pageContext.entity.request : {};
|
|
64
|
-
};
|
|
65
|
-
func.getPage = function() {
|
|
66
|
-
return pageContext && pageContext.entity ? pageContext.entity.page : {};
|
|
67
|
-
};
|
|
68
|
-
func.getCustomFunc = function(funcName) {
|
|
69
|
-
return getCustomFunc(pageContext, funcName);
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
function removeCustomFuncFromWindow(pageDesign) {
|
|
74
|
-
if (pageDesign && pageDesign.customEvents) {
|
|
75
|
-
const customEvents = pageDesign.customEvents;
|
|
76
|
-
const customFuncs = customEvents.filter((item) => item.name === "customFunc" && item.jsContent);
|
|
77
|
-
if (customFuncs && customFuncs.length > 0) {
|
|
78
|
-
customFuncs.forEach((event) => {
|
|
79
|
-
delete window["$page_" + event.eventName];
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
function handleEvent($event, pageContext, configure, eventType, otherParams) {
|
|
85
|
-
return handleEventUtil($event, pageContext, configure, eventType, true, otherParams);
|
|
86
|
-
}
|
|
87
|
-
function getHandleEvent($event, pageContext, configure, eventType, otherParams) {
|
|
88
|
-
return handleEventUtil($event, pageContext, configure, eventType, false, otherParams);
|
|
89
|
-
}
|
|
90
|
-
function handleEventUtil($event, pageContext, configure, eventType, isExecute, otherParams) {
|
|
91
|
-
const pageCode = pageContext.code;
|
|
92
|
-
const pageVersion = pageContext.version;
|
|
93
|
-
const events = configure.runtime && configure.runtime.events ? configure.runtime.events : [];
|
|
94
|
-
let eventFun;
|
|
95
|
-
if (eventType && eventType === "click") {
|
|
96
|
-
const tableUuid = getTableUuid(pageContext, configure);
|
|
97
|
-
if (tableUuid) {
|
|
98
|
-
const gridRef = globalRefs.getComponentRef(pageContext, tableUuid);
|
|
99
|
-
const selections = gridRef.getSelections();
|
|
100
|
-
const selectionIds = gridRef.getSelectionIds();
|
|
101
|
-
if (!otherParams) {
|
|
102
|
-
otherParams = {};
|
|
103
|
-
}
|
|
104
|
-
otherParams["tableUuid"] = tableUuid;
|
|
105
|
-
otherParams["listCode"] = commonUtil.getListCode(pageCode, pageVersion, tableUuid);
|
|
106
|
-
const isListButton = isListPage(pageContext);
|
|
107
|
-
if (isListButton) {
|
|
108
|
-
otherParams["selections"] = selections;
|
|
109
|
-
otherParams["id"] = selectionIds && selectionIds.length > 0 ? selectionIds[0] : null;
|
|
110
|
-
otherParams["ids"] = selectionIds;
|
|
111
|
-
}
|
|
112
|
-
const tableConfigure = gridRef.getTableConfigure();
|
|
113
|
-
otherParams["tableConfigure"] = tableConfigure;
|
|
114
|
-
}
|
|
115
|
-
const eventParams = packageEventParams(pageContext, configure, $event, otherParams);
|
|
116
|
-
buttonClickEvent(pageContext, configure, eventParams);
|
|
117
|
-
} else {
|
|
118
|
-
eventFun = getEventFuncByType(pageContext, events, eventType);
|
|
119
|
-
if (isExecute) {
|
|
120
|
-
const eventParams = packageEventParams(pageContext, configure, $event, otherParams);
|
|
121
|
-
return callItemEvent(pageContext, configure, eventFun, eventParams);
|
|
122
|
-
} else {
|
|
123
|
-
return eventFun;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
function getTableUuid(pageContext, configure) {
|
|
128
|
-
return configure.props.base.tableUuid ? configure.props.base.tableUuid : pageContext.tableUuids && pageContext.tableUuids.length > 0 ? pageContext.tableUuids[0] : null;
|
|
129
|
-
}
|
|
130
|
-
function packageEventParams(pageContext, configureObj, $event, otherParams) {
|
|
131
|
-
const params = {};
|
|
132
|
-
if (otherParams) {
|
|
133
|
-
for (const key in otherParams) {
|
|
134
|
-
params[key] = otherParams[key];
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
if ($event !== void 0 && $event !== null) {
|
|
138
|
-
params["_value"] = $event;
|
|
139
|
-
}
|
|
140
|
-
if (pageContext) {
|
|
141
|
-
params["pageContext"] = pageContext;
|
|
142
|
-
}
|
|
143
|
-
if (configureObj) {
|
|
144
|
-
params["configureObj"] = configureObj;
|
|
145
|
-
}
|
|
146
|
-
return params;
|
|
147
|
-
}
|
|
148
|
-
function buttonClickEvent(pageContext, configure, eventParams) {
|
|
149
|
-
const judgeFlag = standardEvent.judgeDataNumber(configure, eventParams["ids"]);
|
|
150
|
-
if (!judgeFlag) {
|
|
151
|
-
return;
|
|
152
|
-
}
|
|
153
|
-
canExecuteButton(eventParams).then((result) => {
|
|
154
|
-
if (result["canExecute"] === true) {
|
|
155
|
-
const events = configure.runtime && configure.runtime.events ? configure.runtime.events : [];
|
|
156
|
-
const beforeValidateFormFunc = getEventFuncByType(pageContext, events, "beforeValidateForm");
|
|
157
|
-
let beforeValidateFormResult;
|
|
158
|
-
if (beforeValidateFormFunc) {
|
|
159
|
-
beforeValidateFormResult = callItemEvent(
|
|
160
|
-
pageContext,
|
|
161
|
-
configure,
|
|
162
|
-
beforeValidateFormFunc,
|
|
163
|
-
eventParams
|
|
164
|
-
);
|
|
165
|
-
}
|
|
166
|
-
if (beforeValidateFormResult === void 0) {
|
|
167
|
-
beforeValidateFormResult = true;
|
|
168
|
-
}
|
|
169
|
-
if (!beforeValidateFormResult) {
|
|
170
|
-
return;
|
|
171
|
-
}
|
|
172
|
-
if (commonUtil$1.isPromise(beforeValidateFormResult)) {
|
|
173
|
-
beforeValidateFormResult.then((result2) => {
|
|
174
|
-
if (result2 && result2 === true) {
|
|
175
|
-
doValidateForm(pageContext, configure, eventParams);
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
} else {
|
|
179
|
-
doValidateForm(pageContext, configure, eventParams);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
function doValidateForm(pageContext, configure, eventParams) {
|
|
185
|
-
const events = configure.runtime && configure.runtime.events ? configure.runtime.events : [];
|
|
186
|
-
const clickEventFunObj = getClickEventFuncByType(pageContext, events, "click");
|
|
187
|
-
if (clickEventFunObj) {
|
|
188
|
-
const isStandardEvent = clickEventFunObj.isStandard;
|
|
189
|
-
const event = clickEventFunObj.event;
|
|
190
|
-
isNotNeedValidateRequired(isStandardEvent, event);
|
|
191
|
-
}
|
|
192
|
-
validatorUtil.validateDataModelFunc(pageContext, configure, true).then(() => {
|
|
193
|
-
const beforeClickResult = doBeforeClickEvent(pageContext, configure, eventParams);
|
|
194
|
-
if (!beforeClickResult) {
|
|
195
|
-
return;
|
|
196
|
-
}
|
|
197
|
-
if (commonUtil$1.isPromise(beforeClickResult)) {
|
|
198
|
-
beforeClickResult.then((result) => {
|
|
199
|
-
if (result) {
|
|
200
|
-
doClickEvent(pageContext, configure, clickEventFunObj, eventParams);
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
} else {
|
|
204
|
-
doClickEvent(pageContext, configure, clickEventFunObj, eventParams);
|
|
205
|
-
}
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
function doBeforeClickEvent(pageContext, configure, otherParams) {
|
|
209
|
-
let result = true;
|
|
210
|
-
const events = configure.runtime && configure.runtime.events ? configure.runtime.events : [];
|
|
211
|
-
const beforeClickFunc = getEventFuncByType(pageContext, events, "beforeClick");
|
|
212
|
-
let beforeClickResult;
|
|
213
|
-
if (beforeClickFunc) {
|
|
214
|
-
beforeClickResult = callItemEvent(pageContext, configure, beforeClickFunc, null, otherParams);
|
|
215
|
-
}
|
|
216
|
-
if (beforeClickResult === void 0) {
|
|
217
|
-
result = true;
|
|
218
|
-
}
|
|
219
|
-
return result;
|
|
220
|
-
}
|
|
221
|
-
function doClickJumpPageEvent(pageContext, configure, eventParams) {
|
|
222
|
-
const myPageCode = pageContext.code;
|
|
223
|
-
const eventPageInfo = myPageCode + "_";
|
|
224
|
-
eventBus.$emit(eventPageInfo + "open-dialog", {
|
|
225
|
-
pageContext,
|
|
226
|
-
configureObj: configure,
|
|
227
|
-
eventParams
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
function isListPage(pageContext, configure) {
|
|
231
|
-
return pageContext.pageType && pageContext.pageType === "list" ? true : false;
|
|
232
|
-
}
|
|
233
|
-
function doClickCustomEvent(pageContext, configure, clickEventFuncObj, eventParams) {
|
|
234
|
-
const eventFunObj = clickEventFuncObj;
|
|
235
|
-
if (eventFunObj) {
|
|
236
|
-
const eventFun = eventFunObj["func"];
|
|
237
|
-
const isStandardEvent = eventFunObj["isStandard"];
|
|
238
|
-
const event = eventFunObj["event"];
|
|
239
|
-
const clickResult = callItemEvent(pageContext, configure, eventFun, eventParams);
|
|
240
|
-
const isListButton = isListPage(pageContext);
|
|
241
|
-
if (isNotDoAfterClick(isStandardEvent, event)) {
|
|
242
|
-
return;
|
|
243
|
-
}
|
|
244
|
-
if (commonUtil$1.isPromise(clickResult)) {
|
|
245
|
-
clickResult.then((result) => {
|
|
246
|
-
if (result) {
|
|
247
|
-
doAfterClickFunc(
|
|
248
|
-
pageContext,
|
|
249
|
-
configure,
|
|
250
|
-
eventParams,
|
|
251
|
-
isStandardEvent,
|
|
252
|
-
result,
|
|
253
|
-
isListButton
|
|
254
|
-
);
|
|
255
|
-
}
|
|
256
|
-
});
|
|
257
|
-
} else {
|
|
258
|
-
doAfterClickFunc(
|
|
259
|
-
pageContext,
|
|
260
|
-
configure,
|
|
261
|
-
eventParams,
|
|
262
|
-
isStandardEvent,
|
|
263
|
-
clickResult,
|
|
264
|
-
isListButton
|
|
265
|
-
);
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
function isNotDoAfterClick(isStandardEvent, clickEvent) {
|
|
270
|
-
return isStandardEvent && (clickEvent.eventName === "exportForm" || clickEvent.eventName === "exportPDF" || clickEvent.eventName === "import" || clickEvent.eventName === "assign" || clickEvent.eventName === "copyTask" || clickEvent.eventName === "addSigner" || clickEvent.eventName === "returnTaskTo" || clickEvent.eventName === "removeSigner");
|
|
271
|
-
}
|
|
272
|
-
function isNotNeedValidateRequired(isStandardEvent, clickEvent) {
|
|
273
|
-
return isStandardEvent && (clickEvent.eventName === "downloadTemplate" || clickEvent.eventName === "back" || clickEvent.eventName === "exportForm" || clickEvent.eventName === "exportPDF" || clickEvent.eventName === "lineEditCreate");
|
|
274
|
-
}
|
|
275
|
-
function doAfterClickEvent(pageContext, configure, otherParams) {
|
|
276
|
-
const events = configure.runtime && configure.runtime.events ? configure.runtime.events : [];
|
|
277
|
-
const afterClickFunc = getEventFuncByType(pageContext, events, "afterClick");
|
|
278
|
-
if (afterClickFunc) {
|
|
279
|
-
callItemEvent(pageContext, configure, afterClickFunc, null, otherParams);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
function doAfterClickFunc(pageContext, configure, eventParams, isStandardEvent, result, isListButton) {
|
|
283
|
-
if (!isStandardEvent) {
|
|
284
|
-
standardEvent.dealAfterOperate(
|
|
285
|
-
pageContext,
|
|
286
|
-
configure,
|
|
287
|
-
result,
|
|
288
|
-
"",
|
|
289
|
-
// superPageRuntimeMessage.successfulOperation 开发人员自己加事件
|
|
290
|
-
isListButton
|
|
291
|
-
);
|
|
292
|
-
} else {
|
|
293
|
-
pageContext.result = result;
|
|
294
|
-
}
|
|
295
|
-
const events = configure.runtime && configure.runtime.events ? configure.runtime.events : [];
|
|
296
|
-
const afterClickFunc = getEventFuncByType(pageContext, events, "afterClick");
|
|
297
|
-
if (afterClickFunc) {
|
|
298
|
-
callItemEvent(pageContext, configure, afterClickFunc, eventParams);
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
function doClickEvent(pageContext, configure, clickEventFunObj, eventParams) {
|
|
302
|
-
const linkPage = configure.props.linkPage;
|
|
303
|
-
if (linkPage && linkPage.jumpPageUrl) {
|
|
304
|
-
doClickJumpPageEvent(pageContext, configure, eventParams);
|
|
305
|
-
} else {
|
|
306
|
-
doClickCustomEvent(pageContext, configure, clickEventFunObj, eventParams);
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
function getEventByEventName(pageContext, eventObj) {
|
|
310
|
-
const eventsObj = pageContext.customEvents;
|
|
311
|
-
if (eventsObj && eventObj) {
|
|
312
|
-
let key = "";
|
|
313
|
-
if (typeof eventObj === "object") {
|
|
314
|
-
key = eventObj.componentUuid + "_" + eventObj.name;
|
|
315
|
-
} else {
|
|
316
|
-
key = eventObj;
|
|
317
|
-
}
|
|
318
|
-
return eventsObj[key];
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
function getEventFuncByType(pageContext, events, eventType) {
|
|
322
|
-
if (events && eventType) {
|
|
323
|
-
const eventArr = events.filter((item) => item.name === eventType);
|
|
324
|
-
if (eventArr && eventArr.length > 0) {
|
|
325
|
-
const event = eventArr[0];
|
|
326
|
-
if (event.isStandard) {
|
|
327
|
-
return standardEvent.standardEvents[event.eventName];
|
|
328
|
-
} else {
|
|
329
|
-
return getEventByEventName(pageContext, event);
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
function getEventNameByType(events, eventType) {
|
|
335
|
-
if (events && eventType) {
|
|
336
|
-
const eventArr = events.filter((item) => item.name === eventType);
|
|
337
|
-
if (eventArr && eventArr.length > 0) {
|
|
338
|
-
const event = eventArr[0];
|
|
339
|
-
return event.eventName;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
function getClickEventFuncByType(pageContext, events, eventType) {
|
|
344
|
-
if (events && eventType) {
|
|
345
|
-
const eventArr = events.filter((item) => item.name === eventType);
|
|
346
|
-
if (eventArr && eventArr.length > 0) {
|
|
347
|
-
const event = eventArr[0];
|
|
348
|
-
if (event.isStandard) {
|
|
349
|
-
return { func: standardEvent.standardEvents[event.eventName], isStandard: true, event };
|
|
350
|
-
} else {
|
|
351
|
-
return {
|
|
352
|
-
func: getEventByEventName(pageContext, event),
|
|
353
|
-
isStandard: false,
|
|
354
|
-
event
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
function callItemEvent(pageContext, configureObj, eventFun, eventParams, otherParams) {
|
|
361
|
-
if (!eventFun) {
|
|
362
|
-
return;
|
|
363
|
-
}
|
|
364
|
-
if (!eventParams) {
|
|
365
|
-
eventParams = {
|
|
366
|
-
pageContext,
|
|
367
|
-
configureObj
|
|
368
|
-
// 组件配置信息,包含如:跳转页面配置、判重配置等
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
if (otherParams && eventParams) {
|
|
372
|
-
for (const key in otherParams) {
|
|
373
|
-
eventParams[key] = otherParams[key];
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
return eventFun.apply(eventFun, [eventParams]);
|
|
377
|
-
}
|
|
378
|
-
function transferToFunction(customEvents) {
|
|
379
|
-
const eventsObj = {};
|
|
380
|
-
customEvents.forEach((event) => {
|
|
381
|
-
if (!event.isStandard && event.jsContent) {
|
|
382
|
-
if (event.name === "customFunc") {
|
|
383
|
-
let newFunc = null;
|
|
384
|
-
if (event.funcParam) {
|
|
385
|
-
const args = event.funcParam.split(",");
|
|
386
|
-
newFunc = new Function(args, event.jsContent);
|
|
387
|
-
} else {
|
|
388
|
-
newFunc = new Function(event.jsContent);
|
|
389
|
-
}
|
|
390
|
-
eventsObj[event.eventName] = newFunc;
|
|
391
|
-
} else {
|
|
392
|
-
let key = event.componentUuid + "_";
|
|
393
|
-
key += event.name;
|
|
394
|
-
eventsObj[key] = new Function("params", event.jsContent);
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
});
|
|
398
|
-
return eventsObj;
|
|
399
|
-
}
|
|
400
|
-
function canExecuteButton(params) {
|
|
401
|
-
const pageContext = params.pageContext;
|
|
402
|
-
const configureObj = params.configureObj;
|
|
403
|
-
const isListButton = isListPage(pageContext);
|
|
404
|
-
let entities = [];
|
|
405
|
-
if (isListButton) {
|
|
406
|
-
if (pageContext.editData) {
|
|
407
|
-
entities.push(pageContext.editData);
|
|
408
|
-
} else {
|
|
409
|
-
entities = params.selections;
|
|
410
|
-
}
|
|
411
|
-
} else {
|
|
412
|
-
const dataModel = pageContext.entity.data;
|
|
413
|
-
entities.push(dataModel);
|
|
414
|
-
}
|
|
415
|
-
const executableDataSetting = configureObj.props.base.condition;
|
|
416
|
-
return new Promise((resolve, reject) => {
|
|
417
|
-
if (executableDataSetting === void 0 || executableDataSetting === "" || entities === void 0 || entities.length === 0) {
|
|
418
|
-
resolve({
|
|
419
|
-
canExecute: true
|
|
420
|
-
});
|
|
421
|
-
} else {
|
|
422
|
-
const contextParameter = pageContext.entity.context;
|
|
423
|
-
const additionalParamMap = standardEvent.getAdditionalParamMap(pageContext);
|
|
424
|
-
const isSql = true;
|
|
425
|
-
const tableName = pageContext.tableName;
|
|
426
|
-
let isCanExecute = true;
|
|
427
|
-
let failMessage;
|
|
428
|
-
let failEntity;
|
|
429
|
-
for (let i = 0; i < entities.length; i++) {
|
|
430
|
-
const entity = entities[i];
|
|
431
|
-
for (let n = 0; n < executableDataSetting.length; n++) {
|
|
432
|
-
const conditionSetting = executableDataSetting[n];
|
|
433
|
-
const message = conditionSetting.toolTips;
|
|
434
|
-
const conditionList = conditionSetting.conditionList;
|
|
435
|
-
const canExecute = util.analysisCondition(
|
|
436
|
-
conditionList,
|
|
437
|
-
entity,
|
|
438
|
-
additionalParamMap,
|
|
439
|
-
contextParameter,
|
|
440
|
-
isSql,
|
|
441
|
-
tableName,
|
|
442
|
-
null,
|
|
443
|
-
pageContext
|
|
444
|
-
);
|
|
445
|
-
if (!canExecute) {
|
|
446
|
-
isCanExecute = false;
|
|
447
|
-
failMessage = message;
|
|
448
|
-
failEntity = entity;
|
|
449
|
-
break;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
if (!isCanExecute) {
|
|
454
|
-
if (failMessage) {
|
|
455
|
-
index.ElMessage({
|
|
456
|
-
showClose: true,
|
|
457
|
-
type: "warning",
|
|
458
|
-
message: failMessage
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
resolve({
|
|
462
|
-
canExecute: false,
|
|
463
|
-
message: failMessage,
|
|
464
|
-
failEntity
|
|
465
|
-
});
|
|
466
|
-
} else {
|
|
467
|
-
resolve({
|
|
468
|
-
canExecute: true
|
|
469
|
-
});
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
function setTableEvents(options, tableEvents, pageContext, configureObj) {
|
|
475
|
-
if (tableEvents) {
|
|
476
|
-
addTableEvent("loadBeforeSend", loadBeforeSend({ pageContext, configureObj }), options);
|
|
477
|
-
addTableEvent("beforeRequest", beforeRequest({ pageContext, configureObj }), options);
|
|
478
|
-
addTableEvent("gridDataLoaded", gridDataLoaded({ pageContext, configureObj }), options);
|
|
479
|
-
addTableEvent("gridComplete", gridComplete({ pageContext, configureObj }), options);
|
|
480
|
-
addTableEvent("resizeHeight", resizeTableHeight({ pageContext, configureObj }), options);
|
|
481
|
-
if (!options["lineEditOptions"]) {
|
|
482
|
-
options["lineEditOptions"] = {};
|
|
483
|
-
}
|
|
484
|
-
addTableEvent(
|
|
485
|
-
"beforeInsertRow",
|
|
486
|
-
gridBeforeInsertRow({ pageContext, configureObj }),
|
|
487
|
-
options["lineEditOptions"]
|
|
488
|
-
);
|
|
489
|
-
addTableEvent(
|
|
490
|
-
"afterInsertRow",
|
|
491
|
-
gridAfterInsertRow({ pageContext, configureObj }),
|
|
492
|
-
options["lineEditOptions"]
|
|
493
|
-
);
|
|
494
|
-
addTableEvent(
|
|
495
|
-
"beforeDelete",
|
|
496
|
-
gridBeforeRemoveRow({ pageContext, configureObj }),
|
|
497
|
-
options["lineEditOptions"]
|
|
498
|
-
);
|
|
499
|
-
addTableEvent(
|
|
500
|
-
"afterDelete",
|
|
501
|
-
gridAfterRemoveRow({ pageContext, configureObj }),
|
|
502
|
-
options["lineEditOptions"]
|
|
503
|
-
);
|
|
504
|
-
addTableEvent(
|
|
505
|
-
"beforeEdit",
|
|
506
|
-
gridBeforeEdit({ pageContext, configureObj }),
|
|
507
|
-
options["lineEditOptions"]
|
|
508
|
-
);
|
|
509
|
-
addTableEvent(
|
|
510
|
-
"beforeRestore",
|
|
511
|
-
beforeRestore({ pageContext, configureObj }),
|
|
512
|
-
options["lineEditOptions"]
|
|
513
|
-
);
|
|
514
|
-
addTableEvent(
|
|
515
|
-
"beforeRestoreValidate",
|
|
516
|
-
beforeRestoreValidate({ pageContext, configureObj }),
|
|
517
|
-
options["lineEditOptions"]
|
|
518
|
-
);
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
function addTableEvent(gridEventType, eventFunc, options) {
|
|
522
|
-
if (eventFunc) {
|
|
523
|
-
options[gridEventType] = eventFunc;
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
function loadBeforeSend(params) {
|
|
527
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "beforeListLoad", params);
|
|
528
|
-
}
|
|
529
|
-
function beforeRequest(params) {
|
|
530
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "beforeRequest", params);
|
|
531
|
-
}
|
|
532
|
-
function gridDataLoaded(params) {
|
|
533
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "onListLoad", params);
|
|
534
|
-
}
|
|
535
|
-
function gridComplete(params) {
|
|
536
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "afterListLoad", params);
|
|
537
|
-
}
|
|
538
|
-
function resizeTableHeight(params) {
|
|
539
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "resizeTableHeight", params);
|
|
540
|
-
}
|
|
541
|
-
function beforeRestoreValidate(params) {
|
|
542
|
-
return getHandleEvent(
|
|
543
|
-
null,
|
|
544
|
-
params.pageContext,
|
|
545
|
-
params.configureObj,
|
|
546
|
-
"beforeRestoreValidate",
|
|
547
|
-
params
|
|
548
|
-
);
|
|
549
|
-
}
|
|
550
|
-
function beforeRestore(params) {
|
|
551
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "beforeRestore", params);
|
|
552
|
-
}
|
|
553
|
-
function gridBeforeEdit(params) {
|
|
554
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "beforeEdit", params);
|
|
555
|
-
}
|
|
556
|
-
function gridBeforeInsertRow(params) {
|
|
557
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "beforeAddRow", params);
|
|
558
|
-
}
|
|
559
|
-
function gridAfterInsertRow(params) {
|
|
560
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "afterAddRow", params);
|
|
561
|
-
}
|
|
562
|
-
function gridBeforeRemoveRow(params) {
|
|
563
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "beforeRemoveRow", params);
|
|
564
|
-
}
|
|
565
|
-
function gridAfterRemoveRow(params) {
|
|
566
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "afterRemoveRow", params);
|
|
567
|
-
}
|
|
568
|
-
function gridSelectRecord(pageContext, configureObj, params) {
|
|
569
|
-
return handleEvent(null, pageContext, configureObj, "select", params);
|
|
570
|
-
}
|
|
571
|
-
function gridSelectAllRecords(pageContext, configureObj, params) {
|
|
572
|
-
return handleEvent(null, pageContext, configureObj, "select-all", params);
|
|
573
|
-
}
|
|
574
|
-
function gridSelectionChange(pageContext, configureObj, params) {
|
|
575
|
-
return handleEvent(null, pageContext, configureObj, "selection-change", params);
|
|
576
|
-
}
|
|
577
|
-
function cellClick(pageContext, configureObj, params) {
|
|
578
|
-
return handleEvent(null, pageContext, configureObj, "cell-click", params);
|
|
579
|
-
}
|
|
580
|
-
function cellDblClick(pageContext, configureObj, params) {
|
|
581
|
-
return handleEvent(null, pageContext, configureObj, "cell-dblclick", params);
|
|
582
|
-
}
|
|
583
|
-
function rowClick(pageContext, configureObj, params) {
|
|
584
|
-
return handleEvent(null, pageContext, configureObj, "row-click", params);
|
|
585
|
-
}
|
|
586
|
-
function rowDblClick(pageContext, configureObj, params) {
|
|
587
|
-
return handleEvent(null, pageContext, configureObj, "row-dblclick", params);
|
|
588
|
-
}
|
|
589
|
-
function headerClick(pageContext, configureObj, params) {
|
|
590
|
-
return handleEvent(null, pageContext, configureObj, "header-click", params);
|
|
591
|
-
}
|
|
592
|
-
function fileUploadBeforeUpload(params) {
|
|
593
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "before-upload", params);
|
|
594
|
-
}
|
|
595
|
-
exports.canExecuteButton = canExecuteButton;
|
|
596
|
-
exports.cellClick = cellClick;
|
|
597
|
-
exports.cellDblClick = cellDblClick;
|
|
598
|
-
exports.doAfterClickEvent = doAfterClickEvent;
|
|
599
|
-
exports.doBeforeClickEvent = doBeforeClickEvent;
|
|
600
|
-
exports.fileUploadBeforeUpload = fileUploadBeforeUpload;
|
|
601
|
-
exports.getClickEventFuncByType = getClickEventFuncByType;
|
|
602
|
-
exports.getCustomFunc = getCustomFunc;
|
|
603
|
-
exports.getEventFuncByType = getEventFuncByType;
|
|
604
|
-
exports.getEventNameByType = getEventNameByType;
|
|
605
|
-
exports.getHandleEvent = getHandleEvent;
|
|
606
|
-
exports.getTableUuid = getTableUuid;
|
|
607
|
-
exports.gridSelectAllRecords = gridSelectAllRecords;
|
|
608
|
-
exports.gridSelectRecord = gridSelectRecord;
|
|
609
|
-
exports.gridSelectionChange = gridSelectionChange;
|
|
610
|
-
exports.handleEvent = handleEvent;
|
|
611
|
-
exports.headerClick = headerClick;
|
|
612
|
-
exports.initPageEvents = initPageEvents;
|
|
613
|
-
exports.removeCustomFuncFromWindow = removeCustomFuncFromWindow;
|
|
614
|
-
exports.rowClick = rowClick;
|
|
615
|
-
exports.rowDblClick = rowDblClick;
|
|
616
|
-
exports.setTableEvents = setTableEvents;
|