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,302 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const theme1 = require("../../../../assets/chart-themes/theme1.js");
|
|
4
|
-
const theme2 = require("../../../../assets/chart-themes/theme2.js");
|
|
5
|
-
const theme3 = require("../../../../assets/chart-themes/theme3.js");
|
|
6
|
-
const pageHelperUtil = require("../page-helper-util.js");
|
|
7
|
-
var CommonName = /* @__PURE__ */ ((CommonName2) => {
|
|
8
|
-
CommonName2["X_FIELD_NAME"] = "__x";
|
|
9
|
-
return CommonName2;
|
|
10
|
-
})(CommonName || {});
|
|
11
|
-
const themeMap = {
|
|
12
|
-
theme1,
|
|
13
|
-
theme2,
|
|
14
|
-
theme3
|
|
15
|
-
};
|
|
16
|
-
function getCustomTheme(themeName) {
|
|
17
|
-
console.log("getdd", themeName);
|
|
18
|
-
return themeMap[themeName];
|
|
19
|
-
}
|
|
20
|
-
function getCustomThemeOptions() {
|
|
21
|
-
return [
|
|
22
|
-
{
|
|
23
|
-
value: "theme1",
|
|
24
|
-
label: "主题1"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
value: "theme2",
|
|
28
|
-
label: "主题2"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
value: "theme3",
|
|
32
|
-
label: "主题3"
|
|
33
|
-
}
|
|
34
|
-
];
|
|
35
|
-
}
|
|
36
|
-
function getNumFormatter(labelNumFormat, numPrecision, numPrefix, numAppend, isValueFormatter) {
|
|
37
|
-
const func = function(params) {
|
|
38
|
-
let labelValue = params.value;
|
|
39
|
-
if (isValueFormatter) {
|
|
40
|
-
labelValue = params;
|
|
41
|
-
}
|
|
42
|
-
if (labelValue == void 0 || labelValue == null) {
|
|
43
|
-
return labelValue;
|
|
44
|
-
}
|
|
45
|
-
if (Array.isArray(labelValue)) {
|
|
46
|
-
console.log("numformatter is array", labelValue);
|
|
47
|
-
return labelValue;
|
|
48
|
-
}
|
|
49
|
-
if (isNaN(labelValue) || !labelNumFormat || !labelNumFormat.indexOf) {
|
|
50
|
-
return labelValue;
|
|
51
|
-
}
|
|
52
|
-
if (labelNumFormat.indexOf("precision") > -1) {
|
|
53
|
-
let precision = parseInt(numPrecision);
|
|
54
|
-
if (precision == null || isNaN(precision)) {
|
|
55
|
-
precision = 2;
|
|
56
|
-
}
|
|
57
|
-
labelValue = parseFloat(parseFloat(labelValue).toFixed(precision));
|
|
58
|
-
}
|
|
59
|
-
let prefix = "";
|
|
60
|
-
if (labelNumFormat.indexOf("prefix") > -1 && numPrefix) {
|
|
61
|
-
prefix = numPrefix;
|
|
62
|
-
}
|
|
63
|
-
let append = "";
|
|
64
|
-
if (labelNumFormat.indexOf("append") > -1 && numAppend) {
|
|
65
|
-
append = numAppend;
|
|
66
|
-
}
|
|
67
|
-
return prefix + labelValue.toLocaleString() + append;
|
|
68
|
-
};
|
|
69
|
-
return func;
|
|
70
|
-
}
|
|
71
|
-
function initChartOption(configure, chartOption) {
|
|
72
|
-
if (!chartOption) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
if (chartOption.tooltipFormatterArgs) {
|
|
76
|
-
if (!chartOption.tooltip) {
|
|
77
|
-
chartOption.tooltip = {};
|
|
78
|
-
}
|
|
79
|
-
chartOption.tooltip.valueFormatter = getNumFormatter.apply(
|
|
80
|
-
chartOption,
|
|
81
|
-
chartOption.tooltipFormatterArgs
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
if (chartOption.series) {
|
|
85
|
-
const enableDrill = configure.props ? configure.props.enableDrill : null;
|
|
86
|
-
const selGroupVariable = configure.props ? configure.props.selGroupVariable : null;
|
|
87
|
-
for (let s of chartOption.series) {
|
|
88
|
-
if (!chartOption.radar) {
|
|
89
|
-
s.data = [];
|
|
90
|
-
}
|
|
91
|
-
if (s.labelFormatterArgs) {
|
|
92
|
-
if (!s.label) {
|
|
93
|
-
s.label = {};
|
|
94
|
-
}
|
|
95
|
-
s.label.formatter = getNumFormatter.apply(s, s.labelFormatterArgs);
|
|
96
|
-
}
|
|
97
|
-
if (!enableDrill && selGroupVariable) {
|
|
98
|
-
if (s.emphasis) {
|
|
99
|
-
s.emphasis.disabled = false;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
if (chartOption.radar) {
|
|
105
|
-
for (let r of chartOption.radar) {
|
|
106
|
-
r.indicator = [];
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
const defaultSeries = chartOption.series;
|
|
110
|
-
configure.defaultSeries = defaultSeries;
|
|
111
|
-
const defaultXaxis = chartOption.xAxis;
|
|
112
|
-
if (defaultXaxis && defaultXaxis.length > 0 && defaultXaxis[0].data) {
|
|
113
|
-
defaultXaxis[0].data = [];
|
|
114
|
-
}
|
|
115
|
-
configure.defaultXaxis = defaultXaxis;
|
|
116
|
-
const defaultYaxis = chartOption.yAxis;
|
|
117
|
-
if (defaultYaxis) {
|
|
118
|
-
for (let yAxis of defaultYaxis) {
|
|
119
|
-
if (yAxis.data) {
|
|
120
|
-
yAxis.data = [];
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
configure.defaultYaxis = defaultYaxis;
|
|
125
|
-
}
|
|
126
|
-
function monitorChartClickToVariable(pageContext, configure, chart, variable) {
|
|
127
|
-
if (!chart || !variable || !configure || !pageContext) {
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
chart.on("click", function(params) {
|
|
131
|
-
let highlightInfos = configure.highlightInfos;
|
|
132
|
-
let hasSelect = false;
|
|
133
|
-
let selGroupValue = null;
|
|
134
|
-
if (highlightInfos) {
|
|
135
|
-
for (let i = 0; i < highlightInfos.length; i++) {
|
|
136
|
-
let info = highlightInfos[i];
|
|
137
|
-
chart.dispatchAction({
|
|
138
|
-
type: "downplay",
|
|
139
|
-
seriesIndex: info.seriesIndex,
|
|
140
|
-
dataIndex: info.dataIndex
|
|
141
|
-
});
|
|
142
|
-
if (info.seriesIndex == params.seriesIndex && info.dataIndex == params.dataIndex) {
|
|
143
|
-
hasSelect = true;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
highlightInfos = [];
|
|
148
|
-
if (!hasSelect) {
|
|
149
|
-
chart.dispatchAction({
|
|
150
|
-
type: "highlight",
|
|
151
|
-
seriesIndex: params.seriesIndex,
|
|
152
|
-
dataIndex: params.dataIndex
|
|
153
|
-
});
|
|
154
|
-
highlightInfos.push({
|
|
155
|
-
seriesIndex: params.seriesIndex,
|
|
156
|
-
dataIndex: params.dataIndex
|
|
157
|
-
});
|
|
158
|
-
const caheDatas = configure.cacheDatas;
|
|
159
|
-
const groupFields = configure.groupFields;
|
|
160
|
-
console.log("selsssss", caheDatas, groupFields);
|
|
161
|
-
if (caheDatas && params.dataIndex < caheDatas.length && groupFields && configure.groupFields.length > 0) {
|
|
162
|
-
const data = caheDatas[params.dataIndex];
|
|
163
|
-
selGroupValue = pageHelperUtil.getValueFromSource(data, groupFields[0], void 0);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
configure.highlightInfos = highlightInfos;
|
|
167
|
-
pageHelperUtil.setValueForVariableName(pageContext.entity, variable, selGroupValue);
|
|
168
|
-
console.log("variable params", params);
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
function sortDatas(pageContext, configure, datas) {
|
|
172
|
-
const itemConfs = configure.items ? configure.items : [];
|
|
173
|
-
let orderByTarget = configure.props ? configure.props.orderByTarget : "";
|
|
174
|
-
let orderField = null;
|
|
175
|
-
if (orderByTarget == "x" || orderByTarget == "X") {
|
|
176
|
-
orderField = "__x";
|
|
177
|
-
} else if (orderByTarget) {
|
|
178
|
-
for (let item of itemConfs) {
|
|
179
|
-
if (item.uuid == orderByTarget) {
|
|
180
|
-
const itemProps = item.props ? item.props : {};
|
|
181
|
-
const sourceType = itemProps.yaxisSource;
|
|
182
|
-
const yaxisField = itemProps.yaxisField;
|
|
183
|
-
if (yaxisField && (!sourceType || sourceType == "variable")) {
|
|
184
|
-
orderField = yaxisField;
|
|
185
|
-
break;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
if (!orderField) {
|
|
191
|
-
return;
|
|
192
|
-
}
|
|
193
|
-
let orderSource = configure.props ? configure.props.orderSource : "";
|
|
194
|
-
let orderValue = configure.props ? configure.props.orderFix : "";
|
|
195
|
-
if (orderSource == "variable") {
|
|
196
|
-
let orderVariable = configure.props ? configure.props.orderVariable : "";
|
|
197
|
-
orderValue = pageHelperUtil.formatVariableValue(pageContext, orderVariable);
|
|
198
|
-
}
|
|
199
|
-
orderValue = orderValue == "desc" || orderValue == "DESC" ? "desc" : "asc";
|
|
200
|
-
let maxLen = datas.length;
|
|
201
|
-
for (let i = 0; i < maxLen - 1; i++) {
|
|
202
|
-
let vali = pageHelperUtil.getValueFromSource(datas[i], orderField, void 0);
|
|
203
|
-
for (let j = i + 1; j < maxLen; j++) {
|
|
204
|
-
let valj = pageHelperUtil.getValueFromSource(datas[j], orderField, void 0);
|
|
205
|
-
let isSwap = false;
|
|
206
|
-
if ("desc" == orderValue) {
|
|
207
|
-
if (vali < valj) {
|
|
208
|
-
isSwap = true;
|
|
209
|
-
}
|
|
210
|
-
} else {
|
|
211
|
-
if (vali > valj) {
|
|
212
|
-
isSwap = true;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
if (isSwap) {
|
|
216
|
-
[datas[i], datas[j]] = [datas[j], datas[i]];
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
function limitDatas(pageContext, configure, datas, groupFields, numFields) {
|
|
222
|
-
if (!datas) {
|
|
223
|
-
return datas;
|
|
224
|
-
}
|
|
225
|
-
const confProps = configure.props ? configure.props : {};
|
|
226
|
-
if (!confProps.limitQuantity) {
|
|
227
|
-
return datas;
|
|
228
|
-
}
|
|
229
|
-
let limitNum = null;
|
|
230
|
-
if (confProps.itemNumVariable) {
|
|
231
|
-
limitNum = pageHelperUtil.formatVariableValue(pageContext, confProps.itemNumVariable);
|
|
232
|
-
limitNum = parseInt(limitNum);
|
|
233
|
-
} else {
|
|
234
|
-
limitNum = confProps.itemNumFix ? confProps.itemNumFix : 10;
|
|
235
|
-
}
|
|
236
|
-
if (limitNum == null || limitNum == void 0 || isNaN(limitNum)) {
|
|
237
|
-
return datas;
|
|
238
|
-
}
|
|
239
|
-
if (datas.length < limitNum) {
|
|
240
|
-
return datas;
|
|
241
|
-
}
|
|
242
|
-
const overItemAlias = confProps.overItemAlias;
|
|
243
|
-
const newDatas = [];
|
|
244
|
-
const otherData = {};
|
|
245
|
-
groupFields = groupFields ? groupFields : [];
|
|
246
|
-
numFields = numFields ? numFields : [];
|
|
247
|
-
for (let i = 0; i < datas.length; i++) {
|
|
248
|
-
const data = datas[i];
|
|
249
|
-
if (i < limitNum) {
|
|
250
|
-
newDatas.push(data);
|
|
251
|
-
continue;
|
|
252
|
-
}
|
|
253
|
-
if (!overItemAlias) {
|
|
254
|
-
break;
|
|
255
|
-
}
|
|
256
|
-
for (let groupField of groupFields) {
|
|
257
|
-
if (!groupField) {
|
|
258
|
-
continue;
|
|
259
|
-
}
|
|
260
|
-
let value = pageHelperUtil.getValueFromSource(data, groupField, void 0);
|
|
261
|
-
value = value == null || value == void 0 ? "" : value;
|
|
262
|
-
if (!otherData[groupField]) {
|
|
263
|
-
otherData[groupField] = [];
|
|
264
|
-
}
|
|
265
|
-
const existValues = otherData[groupField];
|
|
266
|
-
if (!existValues.includes(value)) {
|
|
267
|
-
existValues.push(value);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
for (let numField of numFields) {
|
|
271
|
-
if (!numField) {
|
|
272
|
-
continue;
|
|
273
|
-
}
|
|
274
|
-
let value = pageHelperUtil.getValueFromSource(data, numField, void 0);
|
|
275
|
-
if (isNaN(value)) {
|
|
276
|
-
continue;
|
|
277
|
-
}
|
|
278
|
-
const hisValue = otherData[numField];
|
|
279
|
-
if (isNaN(hisValue)) {
|
|
280
|
-
otherData[numField] = value;
|
|
281
|
-
} else {
|
|
282
|
-
otherData[numField] = value + hisValue;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
if (overItemAlias) {
|
|
287
|
-
otherData[
|
|
288
|
-
"__x"
|
|
289
|
-
/* X_FIELD_NAME */
|
|
290
|
-
] = overItemAlias;
|
|
291
|
-
newDatas.push(otherData);
|
|
292
|
-
}
|
|
293
|
-
return newDatas;
|
|
294
|
-
}
|
|
295
|
-
exports.CommonName = CommonName;
|
|
296
|
-
exports.getCustomTheme = getCustomTheme;
|
|
297
|
-
exports.getCustomThemeOptions = getCustomThemeOptions;
|
|
298
|
-
exports.getNumFormatter = getNumFormatter;
|
|
299
|
-
exports.initChartOption = initChartOption;
|
|
300
|
-
exports.limitDatas = limitDatas;
|
|
301
|
-
exports.monitorChartClickToVariable = monitorChartClickToVariable;
|
|
302
|
-
exports.sortDatas = sortDatas;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare function isArrayFn(value: any): boolean;
|
|
2
|
-
export declare function getBaseUrl(backendUrl: any, isTest?: boolean): any;
|
|
3
|
-
export declare function getRealRestApiPath(orgRestApiPath: any, systemCode: any, backendUrl: any): any;
|
|
4
|
-
/**
|
|
5
|
-
* 封装模板文件列表
|
|
6
|
-
* @param templateFiles
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
export declare function packageTemplateFiles(templateFiles: any): any;
|
|
10
|
-
export declare function upperFirstCase(str: any): any;
|
|
11
|
-
export declare function getListCode(pageCode: any, pageVersion: any, tableUuid: any): string;
|
|
12
|
-
/**
|
|
13
|
-
* 深度复制
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
export declare function deepCopy(srcObj: any): any;
|
|
17
|
-
export declare function getWorkflowId(pageContext: any): any;
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const commonUtil = require("../../../node_modules/.pnpm/agilebuilder-ui@1.0.28_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/common-util.js");
|
|
4
|
-
const util = require("../../../node_modules/.pnpm/agilebuilder-ui@1.0.28_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/util.js");
|
|
5
|
-
function isArrayFn(value) {
|
|
6
|
-
if (typeof Array.isArray === "function") {
|
|
7
|
-
return Array.isArray(value);
|
|
8
|
-
} else {
|
|
9
|
-
return Object.prototype.toString.call(value) === "[object Array]";
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
function getBaseUrl(backendUrl, isTest) {
|
|
13
|
-
if (isTest) {
|
|
14
|
-
return backendUrl;
|
|
15
|
-
} else {
|
|
16
|
-
let baseUrl = window["$vueApp"].config.globalProperties.baseURL;
|
|
17
|
-
if (backendUrl) {
|
|
18
|
-
baseUrl = commonUtil.getSystemBackendUrl(backendUrl);
|
|
19
|
-
}
|
|
20
|
-
return baseUrl;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function getRealRestApiPath(orgRestApiPath, systemCode, backendUrl) {
|
|
24
|
-
let path = orgRestApiPath;
|
|
25
|
-
if (orgRestApiPath) {
|
|
26
|
-
if (backendUrl && !isFullPath(orgRestApiPath)) {
|
|
27
|
-
const baseUrl = getBaseUrl(backendUrl);
|
|
28
|
-
path = baseUrl + "/" + systemCode + orgRestApiPath;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return path;
|
|
32
|
-
}
|
|
33
|
-
function isFullPath(path) {
|
|
34
|
-
return path.indexOf("http:") === 0 || path.indexOf("https:") === 0;
|
|
35
|
-
}
|
|
36
|
-
function packageTemplateFiles(templateFiles) {
|
|
37
|
-
if (!templateFiles) {
|
|
38
|
-
return templateFiles;
|
|
39
|
-
}
|
|
40
|
-
const currentLocale = util.getLanguageWithLocale();
|
|
41
|
-
if (Array.isArray(templateFiles)) {
|
|
42
|
-
let templateFilesResult = [];
|
|
43
|
-
let fileCodes = [];
|
|
44
|
-
const fileSeperate = "~-~-";
|
|
45
|
-
templateFiles.forEach((template) => {
|
|
46
|
-
let showName = template.templateShowPath;
|
|
47
|
-
if (showName.indexOf(fileSeperate) > 0) {
|
|
48
|
-
const fileCode = showName.substring(0, showName.indexOf(fileSeperate));
|
|
49
|
-
const fileLanguage = showName.substring(
|
|
50
|
-
showName.indexOf(fileSeperate) + fileSeperate.length,
|
|
51
|
-
showName.lastIndexOf(fileSeperate)
|
|
52
|
-
);
|
|
53
|
-
const fileName = showName.substring(
|
|
54
|
-
showName.lastIndexOf(fileSeperate) + fileSeperate.length
|
|
55
|
-
);
|
|
56
|
-
if (currentLocale === fileLanguage && fileCodes.indexOf(fileCode) < 0) {
|
|
57
|
-
templateFilesResult.push({
|
|
58
|
-
templateUUID: template.templateUUID,
|
|
59
|
-
templateShowPath: fileName
|
|
60
|
-
});
|
|
61
|
-
fileCodes.push(fileCode);
|
|
62
|
-
}
|
|
63
|
-
} else {
|
|
64
|
-
templateFilesResult.push(template);
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
return templateFilesResult;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
function upperFirstCase(str) {
|
|
71
|
-
return str.toLowerCase().replace(/( |^)[a-z]/g, (L) => L.toUpperCase());
|
|
72
|
-
}
|
|
73
|
-
function getListCode(pageCode, pageVersion, tableUuid) {
|
|
74
|
-
return "V" + pageVersion + "__" + pageCode + "__" + tableUuid;
|
|
75
|
-
}
|
|
76
|
-
function deepCopy(srcObj) {
|
|
77
|
-
if (typeof srcObj !== "object" || srcObj === null) {
|
|
78
|
-
return srcObj;
|
|
79
|
-
}
|
|
80
|
-
const copyObj = Array.isArray(srcObj) ? [] : {};
|
|
81
|
-
for (const key in srcObj) {
|
|
82
|
-
if (srcObj.hasOwnProperty(key)) {
|
|
83
|
-
copyObj[key] = deepCopy(srcObj[key]);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
return copyObj;
|
|
87
|
-
}
|
|
88
|
-
function getWorkflowId(pageContext) {
|
|
89
|
-
let workflowId;
|
|
90
|
-
if (pageContext.entity && pageContext.entity.data) {
|
|
91
|
-
workflowId = pageContext.entity.data["WORKFLOW_ID"];
|
|
92
|
-
if (!workflowId) {
|
|
93
|
-
workflowId = pageContext.entity.data["workflow_id"];
|
|
94
|
-
}
|
|
95
|
-
if (!workflowId) {
|
|
96
|
-
workflowId = pageContext.entity.data["workflowId"];
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return workflowId;
|
|
100
|
-
}
|
|
101
|
-
exports.deepCopy = deepCopy;
|
|
102
|
-
exports.getBaseUrl = getBaseUrl;
|
|
103
|
-
exports.getListCode = getListCode;
|
|
104
|
-
exports.getRealRestApiPath = getRealRestApiPath;
|
|
105
|
-
exports.getWorkflowId = getWorkflowId;
|
|
106
|
-
exports.isArrayFn = isArrayFn;
|
|
107
|
-
exports.packageTemplateFiles = packageTemplateFiles;
|
|
108
|
-
exports.upperFirstCase = upperFirstCase;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const mitt = require("../../../node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/dist/mitt.js");
|
|
3
|
-
const emitter = mitt();
|
|
4
|
-
const bus = {
|
|
5
|
-
$on: emitter.on,
|
|
6
|
-
$emit: emitter.emit,
|
|
7
|
-
$off: emitter.off
|
|
8
|
-
};
|
|
9
|
-
const eventBus = bus;
|
|
10
|
-
module.exports = eventBus;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { PageDesign, Component, PageContext } from '../interfaces/page-design-types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 缓存页面事件,并转为Function对象,并绑定自定义方法到window对象上
|
|
5
|
-
* @param pageDesign
|
|
6
|
-
*/
|
|
7
|
-
export declare function initPageEvents(pageDesign: PageDesign, pageContext: PageContext): void;
|
|
8
|
-
/**
|
|
9
|
-
* 获取自定义方法
|
|
10
|
-
* @param pageContext
|
|
11
|
-
* @param funcName
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
14
|
-
export declare function getCustomFunc(pageContext: PageContext, funcName: any): any;
|
|
15
|
-
/**
|
|
16
|
-
* 页面销毁时,将window上注册的函数移除掉
|
|
17
|
-
* @param pageDesign
|
|
18
|
-
*/
|
|
19
|
-
export declare function removeCustomFuncFromWindow(pageDesign: PageDesign): void;
|
|
20
|
-
export declare function handleEvent($event: any, pageContext: PageContext, configure: Component, eventType: string, otherParams?: object): any;
|
|
21
|
-
export declare function getHandleEvent($event: any, pageContext: PageContext, configure: Component, eventType: string, otherParams?: object): any;
|
|
22
|
-
export declare function getTableUuid(pageContext: PageContext, configure: Component): any;
|
|
23
|
-
export declare function handleEventByEventName(pageContext: PageContext, configure: Component, eventName: string, otherParams?: object): any;
|
|
24
|
-
export declare function doBeforeClickEvent(pageContext: PageContext, configure: Component, otherParams?: object): any;
|
|
25
|
-
export declare function doAfterClickEvent(pageContext: PageContext, configure: Component, otherParams?: object): void;
|
|
26
|
-
/**
|
|
27
|
-
* 获得事件Function对象
|
|
28
|
-
* @param events 该组件所有事件集合
|
|
29
|
-
* @param eventType change、click等事件类型
|
|
30
|
-
*/
|
|
31
|
-
export declare function getEventFuncByType(pageContext: PageContext, events: Array<any>, eventType: string): any;
|
|
32
|
-
/**
|
|
33
|
-
* 根据事件类型,获得事件名称
|
|
34
|
-
* @param events
|
|
35
|
-
* @param eventType
|
|
36
|
-
* @returns
|
|
37
|
-
*/
|
|
38
|
-
export declare function getEventNameByType(events: Array<any>, eventType: string): any;
|
|
39
|
-
/**
|
|
40
|
-
* 获得事件Function对象
|
|
41
|
-
* @param events 该组件所有事件集合
|
|
42
|
-
* @param eventType change、click等事件类型
|
|
43
|
-
*/
|
|
44
|
-
export declare function getClickEventFuncByType(pageContext: PageContext, events: Array<any>, eventType: string): {
|
|
45
|
-
func: any;
|
|
46
|
-
isStandard: boolean;
|
|
47
|
-
event: any;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* 按钮是否可执行条件解析
|
|
51
|
-
* @param params
|
|
52
|
-
* @returns
|
|
53
|
-
*/
|
|
54
|
-
export declare function canExecuteButton(params: any): Promise<unknown>;
|
|
55
|
-
export declare function canVisibleComponent(params: any): Promise<unknown>;
|
|
56
|
-
export declare function setTableEvents(options: any, tableEvents: any, pageContext: any, configureObj: any): void;
|
|
57
|
-
export declare function gridSelectRecord(pageContext: any, configureObj: any, params: any): any;
|
|
58
|
-
export declare function gridSelectAllRecords(pageContext: any, configureObj: any, params: any): any;
|
|
59
|
-
export declare function gridSelectionChange(pageContext: any, configureObj: any, params: any): any;
|
|
60
|
-
export declare function cellClick(pageContext: any, configureObj: any, params: any): any;
|
|
61
|
-
export declare function cellDblClick(pageContext: any, configureObj: any, params: any): any;
|
|
62
|
-
export declare function rowClick(pageContext: any, configureObj: any, params: any): any;
|
|
63
|
-
export declare function rowDblClick(pageContext: any, configureObj: any, params: any): any;
|
|
64
|
-
export declare function headerClick(pageContext: any, configureObj: any, params: any): any;
|
|
65
|
-
export declare function fileUploadBeforeUpload(params: any): any;
|
|
66
|
-
export declare function fileUploadUploaded(pageContext: any, configureObj: any, params: any): any;
|
|
67
|
-
export declare function fileUploadBeforeDelete(pageContext: any, configureObj: any, params: any): any;
|
|
68
|
-
export declare function fileUploadDeleted(pageContext: any, configureObj: any, params: any): any;
|