super-page-runtime 2.0.42 → 2.0.43-beta2
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/common-util.js +5 -5
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +3 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +9 -35
- package/dist/es/components/runtime/utils/events/validator-util.js +11 -41
- 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/common/export-form-report-dialog.vue.js +16 -22
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +16 -10
- 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 +2 -2
- 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
|
@@ -37,11 +37,11 @@ function packageTemplateFiles(templateFiles) {
|
|
|
37
37
|
}
|
|
38
38
|
const currentLocale = getLanguageWithLocale();
|
|
39
39
|
if (Array.isArray(templateFiles)) {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
const templateFilesResult = [];
|
|
41
|
+
const fileCodes = [];
|
|
42
42
|
const fileSeperate = "~-~-";
|
|
43
43
|
templateFiles.forEach((template) => {
|
|
44
|
-
|
|
44
|
+
const showName = template.templateName;
|
|
45
45
|
if (showName.indexOf(fileSeperate) > 0) {
|
|
46
46
|
const fileCode = showName.substring(0, showName.indexOf(fileSeperate));
|
|
47
47
|
const fileLanguage = showName.substring(
|
|
@@ -53,8 +53,8 @@ function packageTemplateFiles(templateFiles) {
|
|
|
53
53
|
);
|
|
54
54
|
if (currentLocale === fileLanguage && fileCodes.indexOf(fileCode) < 0) {
|
|
55
55
|
templateFilesResult.push({
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
templateUuid: template.templateUuid,
|
|
57
|
+
templateName: fileName
|
|
58
58
|
});
|
|
59
59
|
fileCodes.push(fileCode);
|
|
60
60
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PageContext } from '../interfaces/page-design-types';
|
|
2
|
+
|
|
1
3
|
export declare const standardEvents: {
|
|
2
4
|
save: (params: any) => Promise<unknown>;
|
|
3
5
|
saveList: (params: any) => Promise<unknown>;
|
|
@@ -40,7 +42,7 @@ export declare const standardEvents: {
|
|
|
40
42
|
queryCharts: (params: any) => void;
|
|
41
43
|
};
|
|
42
44
|
export declare function exportFormReport(pageContext: any, configureObj: any, templateFile: any, isPdf: any): void;
|
|
43
|
-
export declare function getSaveFormRequestWithRow(pageContext:
|
|
45
|
+
export declare function getSaveFormRequestWithRow(pageContext: PageContext, configureObj: any, url: string, isUnControlVersion: boolean, mainDefaultValueColumns: any, dynamicColumnInfo: any, row: any, commonParams: any): any;
|
|
44
46
|
export declare function getSaveFormRequest(pageContext: any, configureObj: any, url: any, isUnControlVersion: any, mainDefaultValueColumns: any, dynamicColumnInfo: any): any;
|
|
45
47
|
/**
|
|
46
48
|
* 按钮执行后页面处理方式:刷新、关闭弹框等等
|
|
@@ -275,9 +275,7 @@ function exportFormReport(pageContext, configureObj, templateFile, isPdf) {
|
|
|
275
275
|
const additionalParamMap = getAdditionalParamMap(pageContext);
|
|
276
276
|
param["additionalParamMap"] = additionalParamMap;
|
|
277
277
|
let exportResult;
|
|
278
|
-
|
|
279
|
-
exportResult = exportFormPdf(fileName, backendUrl, param);
|
|
280
|
-
} else {
|
|
278
|
+
{
|
|
281
279
|
exportResult = exportFormReportSuccess(fileName, backendUrl, param);
|
|
282
280
|
}
|
|
283
281
|
if (exportResult) {
|
|
@@ -318,34 +316,6 @@ function exportFormReportSuccess(fileName, backendUrl, param) {
|
|
|
318
316
|
});
|
|
319
317
|
});
|
|
320
318
|
}
|
|
321
|
-
function exportFormPdf(fileName, backendUrl, param) {
|
|
322
|
-
return new Promise((resolve, reject) => {
|
|
323
|
-
const baseUrl = getBaseUrl(backendUrl);
|
|
324
|
-
const path = baseUrl + "/dsc/commons/export-pdf";
|
|
325
|
-
axios.defaults.headers.common.Authorization = getToken();
|
|
326
|
-
const request = axios.post(path, param, {
|
|
327
|
-
headers: {
|
|
328
|
-
"content-type": "application/x-www-form-urlencoded"
|
|
329
|
-
},
|
|
330
|
-
responseType: "blob"
|
|
331
|
-
});
|
|
332
|
-
request.then((response) => {
|
|
333
|
-
const blob = new Blob([response.data]);
|
|
334
|
-
const elink = document.createElement("a");
|
|
335
|
-
elink.download = fileName.substring(0, fileName.lastIndexOf(".")) + ".pdf";
|
|
336
|
-
elink.style.display = "none";
|
|
337
|
-
elink.target = "_blank";
|
|
338
|
-
elink.href = URL.createObjectURL(blob);
|
|
339
|
-
document.body.appendChild(elink);
|
|
340
|
-
elink.click();
|
|
341
|
-
URL.revokeObjectURL(elink.href);
|
|
342
|
-
document.body.removeChild(elink);
|
|
343
|
-
resolve(true);
|
|
344
|
-
}).catch((error) => {
|
|
345
|
-
reject(error);
|
|
346
|
-
});
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
319
|
function saveFunc(params, isListButton) {
|
|
350
320
|
return new Promise((resolve, reject) => {
|
|
351
321
|
const pageContext = params.pageContext;
|
|
@@ -445,7 +415,7 @@ function getCommonFormRequestParam(pageContext, configureObj, isUnControlVersion
|
|
|
445
415
|
}
|
|
446
416
|
return param;
|
|
447
417
|
}
|
|
448
|
-
function getSaveFormRequestWithRow(pageContext, configureObj, url, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo, row) {
|
|
418
|
+
function getSaveFormRequestWithRow(pageContext, configureObj, url, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo, row, commonParams) {
|
|
449
419
|
const systemCode = pageContext.systemCode;
|
|
450
420
|
const backendUrl = pageContext.backendUrl;
|
|
451
421
|
const param = getCommonFormRequestParam(
|
|
@@ -457,6 +427,11 @@ function getSaveFormRequestWithRow(pageContext, configureObj, url, isUnControlVe
|
|
|
457
427
|
null,
|
|
458
428
|
row
|
|
459
429
|
);
|
|
430
|
+
if (commonParams) {
|
|
431
|
+
if (commonParams.tableName) {
|
|
432
|
+
param.tableName = commonParams.tableName;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
460
435
|
return getSaveFormRequestByParam(systemCode, backendUrl, param, url, pageContext.entity.data);
|
|
461
436
|
}
|
|
462
437
|
function getSaveFormRequest(pageContext, configureObj, url, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo) {
|
|
@@ -467,6 +442,7 @@ function getSaveFormRequest(pageContext, configureObj, url, isUnControlVersion,
|
|
|
467
442
|
isUnControlVersion,
|
|
468
443
|
mainDefaultValueColumns,
|
|
469
444
|
dynamicColumnInfo,
|
|
445
|
+
null,
|
|
470
446
|
null
|
|
471
447
|
);
|
|
472
448
|
}
|
|
@@ -512,7 +488,6 @@ function dealAfterWithForm(pageContext, configureObj, data, successTip) {
|
|
|
512
488
|
if (commonEntity.formNo) {
|
|
513
489
|
pageContext.initFormNo = commonEntity.formNo;
|
|
514
490
|
}
|
|
515
|
-
debugger;
|
|
516
491
|
const totalModel = { ...dataModel, ...pageContext.entity.page };
|
|
517
492
|
afterSuccessOperateInForm(pageContext, configureObj, totalModel);
|
|
518
493
|
}
|
|
@@ -577,7 +552,6 @@ function updateValuesWhenCloseDialog(parentPageContext, parentConfigureObj, sour
|
|
|
577
552
|
});
|
|
578
553
|
}
|
|
579
554
|
function updateWithPageValue(sourceModel, valueMappings, parentPageContext) {
|
|
580
|
-
debugger;
|
|
581
555
|
const entity = parentPageContext.entity.data;
|
|
582
556
|
if (sourceModel && sourceModel !== null && entity && entity !== null && valueMappings) {
|
|
583
557
|
let sourceEntity = sourceModel;
|
|
@@ -1609,7 +1583,7 @@ function printLabel(params) {
|
|
|
1609
1583
|
printLabelUtil.printLabel(params, templateUuid);
|
|
1610
1584
|
}
|
|
1611
1585
|
function isVisibleWorkflowButton(standardEventName, buttonInfo, completeTaskParam) {
|
|
1612
|
-
let isVisible =
|
|
1586
|
+
let isVisible = false;
|
|
1613
1587
|
if (standardEventName && buttonInfo) {
|
|
1614
1588
|
if (standardEventName === "workflowSave") {
|
|
1615
1589
|
isVisible = isVisibleWorkflowSave(buttonInfo);
|
|
@@ -74,25 +74,10 @@ function getEndObjectRule(rule, props, currentProp) {
|
|
|
74
74
|
}
|
|
75
75
|
function getValidator(columns) {
|
|
76
76
|
const rules = {};
|
|
77
|
-
if (columns) {
|
|
78
|
-
columns.forEach((editField) => {
|
|
79
|
-
const prop = editField.model;
|
|
80
|
-
if (prop && editField.validations) {
|
|
81
|
-
const validations = editField.validations;
|
|
82
|
-
if (prop.indexOf(".") > 0) {
|
|
83
|
-
setObjectPropRule(editField.prop, rules, validations);
|
|
84
|
-
} else {
|
|
85
|
-
if (validations && validations.length > 0) {
|
|
86
|
-
rules[prop] = [...validations];
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
77
|
return rules;
|
|
93
78
|
}
|
|
94
79
|
function validator(entity, rules, columns, rowIndex, isSql) {
|
|
95
|
-
return validatorEntity(entity, rules, columns, rowIndex, true
|
|
80
|
+
return validatorEntity(entity, rules, columns, rowIndex, true);
|
|
96
81
|
}
|
|
97
82
|
function sublistVerify(rules) {
|
|
98
83
|
if (!rules) {
|
|
@@ -118,7 +103,7 @@ function sublistVerify(rules) {
|
|
|
118
103
|
function validatorEntity(entity, rules, columns, rowIndex, isShouldRepeateValdate, isSql) {
|
|
119
104
|
let validateRules = sublistVerify(rules);
|
|
120
105
|
if ((!rules || rules === null) && columns) {
|
|
121
|
-
validateRules = getValidator(
|
|
106
|
+
validateRules = getValidator();
|
|
122
107
|
}
|
|
123
108
|
if (!validateRules || Object.keys(validateRules).length === 0) {
|
|
124
109
|
entity["validateErrorField"] = "";
|
|
@@ -136,11 +121,6 @@ function validatorEntity(entity, rules, columns, rowIndex, isShouldRepeateValdat
|
|
|
136
121
|
if (errors) {
|
|
137
122
|
result = errors[0].message;
|
|
138
123
|
fieldName = errors[0]["field"];
|
|
139
|
-
if (typeof rowIndex !== "undefined" && rowIndex !== null) {
|
|
140
|
-
result = getI18n().t("superPageRuntimeMessage.recordLine", {
|
|
141
|
-
row: rowIndex + 1
|
|
142
|
-
}) + "," + result;
|
|
143
|
-
}
|
|
144
124
|
ElMessage({
|
|
145
125
|
message: result,
|
|
146
126
|
showClose: true,
|
|
@@ -153,11 +133,11 @@ function validatorEntity(entity, rules, columns, rowIndex, isShouldRepeateValdat
|
|
|
153
133
|
}
|
|
154
134
|
if (fieldName && isShouldRepeateValdate === true) {
|
|
155
135
|
const reg1 = /[A-Z]+/;
|
|
156
|
-
if (
|
|
136
|
+
if (reg1.test(fieldName) && entity[fieldName.toLowerCase()] !== void 0) {
|
|
157
137
|
const copyEntity = JSON.parse(JSON.stringify(entity));
|
|
158
138
|
copyEntity[fieldName.toUpperCase()] = entity[fieldName.toLowerCase()];
|
|
159
139
|
delete copyEntity[fieldName.toLowerCase()];
|
|
160
|
-
result = validatorEntity(copyEntity, rules, columns, rowIndex, false
|
|
140
|
+
result = validatorEntity(copyEntity, rules, columns, rowIndex, false);
|
|
161
141
|
}
|
|
162
142
|
}
|
|
163
143
|
}
|
|
@@ -169,26 +149,16 @@ function validateDataModelFunc(pageContext, configureObj, isEnableRequired) {
|
|
|
169
149
|
const pageModel = pageContext.entity.page;
|
|
170
150
|
const data = { ...pageModel, ...dataModel };
|
|
171
151
|
const rules = pageContext.rules;
|
|
172
|
-
if (isEnableRequired === void 0 || isEnableRequired === null) {
|
|
173
|
-
isEnableRequired = configureObj.props.verification ? configureObj.props.verification.required : false;
|
|
174
|
-
if (typeof isEnableRequired === "undefined") {
|
|
175
|
-
isEnableRequired = false;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
152
|
return validateDataModel(isEnableRequired, data, rules, pageContext);
|
|
179
153
|
}
|
|
180
154
|
function validateDataModel(isEnableRequired, dataModel, rules, pageContext) {
|
|
181
|
-
|
|
155
|
+
{
|
|
182
156
|
const isWorkflow = pageContext.workflowCode ? true : false;
|
|
183
157
|
if (isWorkflow) {
|
|
184
158
|
return validateWorkflowFormDataModel(dataModel, pageContext);
|
|
185
159
|
} else {
|
|
186
160
|
return validateCommonFormDataModel(dataModel, pageContext, rules);
|
|
187
161
|
}
|
|
188
|
-
} else {
|
|
189
|
-
return new Promise((resolve, reject) => {
|
|
190
|
-
resolve(true);
|
|
191
|
-
});
|
|
192
162
|
}
|
|
193
163
|
}
|
|
194
164
|
function validateWorkflowFormDataModel(dataModel, pageContext) {
|
|
@@ -201,10 +171,10 @@ function validateWorkflowFormDataModel(dataModel, pageContext) {
|
|
|
201
171
|
let result = false;
|
|
202
172
|
const handleModels = JSON.parse(JSON.stringify(dataModel));
|
|
203
173
|
const rules = pageContext.rules;
|
|
204
|
-
if (!rules) {
|
|
174
|
+
if (!rules || Object.keys(rules).length === 0) {
|
|
205
175
|
result = true;
|
|
206
176
|
} else {
|
|
207
|
-
result = validator(handleModels, rules, null, null
|
|
177
|
+
result = validator(handleModels, rules, null, null);
|
|
208
178
|
}
|
|
209
179
|
if (result === true) {
|
|
210
180
|
const workflowFieldPermissionRules = pageContext.workflowRules;
|
|
@@ -265,10 +235,10 @@ function validateWorkflowFormDataModel(dataModel, pageContext) {
|
|
|
265
235
|
function validateCommonFormDataModel(dataModel, pageContext, rules) {
|
|
266
236
|
return new Promise((resolve, reject) => {
|
|
267
237
|
const handleModels = JSON.parse(JSON.stringify(dataModel));
|
|
268
|
-
if (!rules
|
|
238
|
+
if (!rules || Object.keys(rules).length === 0) {
|
|
269
239
|
resolve(handleModels);
|
|
270
240
|
} else {
|
|
271
|
-
const validateEntityResult = validator(handleModels, rules, null, null
|
|
241
|
+
const validateEntityResult = validator(handleModels, rules, null, null);
|
|
272
242
|
if (validateEntityResult === true) {
|
|
273
243
|
const validateResult = validateSubTables(pageContext);
|
|
274
244
|
if (validateResult === true) {
|
|
@@ -320,11 +290,11 @@ function packageCustomRules(orgCustomRules, orgRules) {
|
|
|
320
290
|
}
|
|
321
291
|
function validateSubTables(pageContext) {
|
|
322
292
|
if (!pageContext) {
|
|
323
|
-
return;
|
|
293
|
+
return true;
|
|
324
294
|
}
|
|
325
295
|
const tableUuidArr = pageContext.tableUuids;
|
|
326
296
|
if (!tableUuidArr) {
|
|
327
|
-
return;
|
|
297
|
+
return true;
|
|
328
298
|
}
|
|
329
299
|
for (let i = 0; i < tableUuidArr.length; i++) {
|
|
330
300
|
const tableUuid = tableUuidArr[i];
|
|
@@ -109,8 +109,7 @@ function getRequestObject(pageRequest) {
|
|
|
109
109
|
Object.assign(requestObj, route.query);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
if (requestObj["_t_"])
|
|
113
|
-
;
|
|
112
|
+
if (requestObj["_t_"]) ;
|
|
114
113
|
return requestObj;
|
|
115
114
|
}
|
|
116
115
|
function getModelFields(pageContext, formItemConfigure, prop) {
|
|
@@ -24,23 +24,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
onMounted(() => {
|
|
25
25
|
if (configureBase.templateFiles && configureBase.templateFiles.length > 0) {
|
|
26
26
|
templateFiles.value = packageTemplateFiles(configureBase.templateFiles);
|
|
27
|
-
} else if (configureBase.
|
|
27
|
+
} else if (configureBase.templateUuid && configureBase.templateName) {
|
|
28
28
|
templateFiles.value.push({
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
templateUuid: configureBase.templateUuid,
|
|
30
|
+
templateName: configureBase.templateName
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
templateFiles.value.forEach((item) => {
|
|
34
|
-
if (item && item.
|
|
35
|
-
item.
|
|
34
|
+
if (item && item.templateName) {
|
|
35
|
+
item.templateName = formatTemplateShowName(item.templateName);
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
|
-
function getFileds(
|
|
40
|
-
console.log("
|
|
39
|
+
function getFileds(templateShowName) {
|
|
40
|
+
console.log("templateShowName", templateShowName);
|
|
41
41
|
let field;
|
|
42
42
|
let formatStr;
|
|
43
|
-
let newValue =
|
|
43
|
+
let newValue = templateShowName;
|
|
44
44
|
const prefixIndex = newValue.indexOf(prefix);
|
|
45
45
|
const suffixIndex = newValue.indexOf(suffix);
|
|
46
46
|
console.log("prefixIndex", prefixIndex);
|
|
@@ -50,14 +50,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
50
|
newValue = newValue.substring(0, suffixIndex) + newValue.substring(suffixIndex + suffix.length);
|
|
51
51
|
console.log("non replacement value === newValue", newValue);
|
|
52
52
|
} else {
|
|
53
|
-
field = newValue.substring(
|
|
54
|
-
|
|
55
|
-
suffixIndex
|
|
56
|
-
);
|
|
57
|
-
formatStr = newValue.substring(
|
|
58
|
-
prefixIndex,
|
|
59
|
-
suffixIndex + suffix.length
|
|
60
|
-
);
|
|
53
|
+
field = newValue.substring(prefixIndex + prefix.length, suffixIndex);
|
|
54
|
+
formatStr = newValue.substring(prefixIndex, suffixIndex + suffix.length);
|
|
61
55
|
console.log("field", field);
|
|
62
56
|
console.log("formatStr", formatStr);
|
|
63
57
|
fields.value.push(field);
|
|
@@ -69,18 +63,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
69
63
|
}
|
|
70
64
|
return fields.value;
|
|
71
65
|
}
|
|
72
|
-
function
|
|
73
|
-
const fields2 = getFileds(
|
|
66
|
+
function formatTemplateShowName(templateShowName) {
|
|
67
|
+
const fields2 = getFileds(templateShowName);
|
|
74
68
|
console.log("fields", fields2);
|
|
75
69
|
fields2.forEach((field) => {
|
|
76
70
|
const formatStr = prefix + field + suffix;
|
|
77
71
|
let formatValue;
|
|
78
|
-
if (
|
|
72
|
+
if (templateShowName.indexOf(formatStr) !== -1 && dataModel.hasOwnProperty(field)) {
|
|
79
73
|
formatValue = dataModel[field] ? dataModel[field] : "";
|
|
80
|
-
|
|
74
|
+
templateShowName = templateShowName.replace(formatStr, formatValue);
|
|
81
75
|
}
|
|
82
76
|
});
|
|
83
|
-
return
|
|
77
|
+
return templateShowName;
|
|
84
78
|
}
|
|
85
79
|
function exportForm(row) {
|
|
86
80
|
emits("export", row);
|
|
@@ -111,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
111
105
|
prop: "templateShowPath"
|
|
112
106
|
}, {
|
|
113
107
|
default: withCtx((scope) => [
|
|
114
|
-
createTextVNode(toDisplayString(scope.row.
|
|
108
|
+
createTextVNode(toDisplayString(scope.row.templateName), 1)
|
|
115
109
|
]),
|
|
116
110
|
_: 1
|
|
117
111
|
}, 8, ["label"]),
|
|
@@ -16,10 +16,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
setup(__props, { expose: __expose }) {
|
|
17
17
|
const props = __props;
|
|
18
18
|
const pageContext = props.pageContext;
|
|
19
|
-
|
|
20
|
-
const runtimeInfo =
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
let configure = props.configure;
|
|
20
|
+
const runtimeInfo = ref({});
|
|
21
|
+
if (pageContext.isTest) {
|
|
22
|
+
runtimeInfo.value = props.configure.runtime ? props.configure.runtime : {};
|
|
23
|
+
} else {
|
|
24
|
+
if (pageContext.tableRuntimes && pageContext.tableRuntimes[configure.uuid]) {
|
|
25
|
+
configure = JSON.parse(pageContext.tableRuntimes[configure.uuid].configure);
|
|
26
|
+
runtimeInfo.value = configure.runtime ? configure.runtime : {};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
const runtimeStyle = runtimeInfo.value.style;
|
|
30
|
+
const runtimeClass = runtimeInfo.value.class;
|
|
23
31
|
const systemCode = pageContext.systemCode;
|
|
24
32
|
const backendUrl = pageContext.backendUrl;
|
|
25
33
|
const tableName = configure.props && configure.props.dataOrigin && configure.props.dataOrigin.tableName;
|
|
@@ -285,11 +293,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
285
293
|
}
|
|
286
294
|
return onClick;
|
|
287
295
|
}
|
|
288
|
-
function beforeSaveRow({
|
|
289
|
-
row,
|
|
290
|
-
columns,
|
|
291
|
-
additionalParamMap
|
|
292
|
-
}) {
|
|
296
|
+
function beforeSaveRow({ row, columns, additionalParamMap }) {
|
|
293
297
|
const buttonConfigure = operationButtonObj.value["lineEditSave"];
|
|
294
298
|
const tableConfigure = configure;
|
|
295
299
|
buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
|
|
@@ -311,6 +315,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
311
315
|
const tableConfigure = configure;
|
|
312
316
|
buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
|
|
313
317
|
return new Promise((resolve, reject) => {
|
|
318
|
+
const commonParams = { tableName: tableConfigure.props.dataOrigin.tableName };
|
|
314
319
|
getSaveFormRequestWithRow(
|
|
315
320
|
pageContext,
|
|
316
321
|
buttonConfigure,
|
|
@@ -318,7 +323,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
318
323
|
false,
|
|
319
324
|
mainDefaultValueColumns,
|
|
320
325
|
dynamicColumnInfo,
|
|
321
|
-
row
|
|
326
|
+
row,
|
|
327
|
+
commonParams
|
|
322
328
|
).then((commonEntity) => {
|
|
323
329
|
if (commonEntity) {
|
|
324
330
|
resolve(commonEntity.entity);
|
|
@@ -28,14 +28,50 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
setVariableValue(entity, fields, defaultValue);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
+
const prefixType = props.property.prefixType;
|
|
32
|
+
let prefixValue = props.property.prefixValue;
|
|
33
|
+
prefixValue = prefixValue == void 0 || prefixValue == null ? "" : prefixValue;
|
|
31
34
|
let dynamicModelMethod = null;
|
|
32
35
|
if (fields.length > 0) {
|
|
33
36
|
dynamicModelMethod = computed({
|
|
34
37
|
get() {
|
|
35
|
-
|
|
38
|
+
const value = getVariableValue(entity, fields);
|
|
39
|
+
if (prefixType === "checkbox") {
|
|
40
|
+
if (value === null || value === void 0) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
if (Array.isArray(value)) {
|
|
44
|
+
return value.includes(prefixValue);
|
|
45
|
+
} else {
|
|
46
|
+
return value === prefixValue;
|
|
47
|
+
}
|
|
48
|
+
} else {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
36
51
|
},
|
|
37
52
|
set(value) {
|
|
38
|
-
|
|
53
|
+
if (prefixType === "checkbox") {
|
|
54
|
+
let newValues = getVariableValue(entity, fields);
|
|
55
|
+
if (!newValues) {
|
|
56
|
+
newValues = [];
|
|
57
|
+
}
|
|
58
|
+
if (!Array.isArray(newValues)) {
|
|
59
|
+
newValues = [newValues];
|
|
60
|
+
}
|
|
61
|
+
const index = newValues.indexOf(prefixValue);
|
|
62
|
+
if (value) {
|
|
63
|
+
if (index == -1) {
|
|
64
|
+
newValues.push(prefixValue);
|
|
65
|
+
}
|
|
66
|
+
} else {
|
|
67
|
+
if (index > -1) {
|
|
68
|
+
newValues.splice(index, 1);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
setVariableValue(entity, fields, newValues);
|
|
72
|
+
} else {
|
|
73
|
+
setVariableValue(entity, fields, value);
|
|
74
|
+
}
|
|
39
75
|
}
|
|
40
76
|
});
|
|
41
77
|
}
|
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getDateShortCuts } from "../../../../utils/form/date-shortcuts.js";
|
|
4
|
-
import {
|
|
4
|
+
import { getValueFromVariable, setVariableValue, getVariableValue } from "../../../../utils/page-helper-util.js";
|
|
5
5
|
import { getCustomFunc, handleEvent } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import _sfc_main$1 from "../common/title-suffix-element.vue.js";
|
|
6
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
8
|
__name: "datepicker-runtime",
|
|
8
9
|
props: {
|
|
@@ -12,41 +13,52 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
13
|
setup(__props) {
|
|
13
14
|
const props = __props;
|
|
14
15
|
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
15
|
-
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
16
|
-
const dynamicModelMethod = computed({
|
|
17
|
-
get() {
|
|
18
|
-
return getVariableValue(entity, dynamicFields);
|
|
19
|
-
},
|
|
20
|
-
set(value) {
|
|
21
|
-
setVariableValue(entity, dynamicFields, value);
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
16
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
25
17
|
const runtimeStyle = runtimeInfo.style;
|
|
26
18
|
const runtimeClass = runtimeInfo.class;
|
|
27
19
|
const headerStyle = runtimeInfo.headerStyle;
|
|
28
20
|
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
21
|
+
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
22
|
+
let dynamicFields2 = null;
|
|
23
|
+
let isRange = false;
|
|
29
24
|
if (designProperty.value.dateType && designProperty.value.dateType.includes("range")) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
isRange = true;
|
|
26
|
+
let propName = designProperty.value.prop2;
|
|
27
|
+
if (!propName || !propName.startsWith("${")) {
|
|
28
|
+
propName = "${page." + props.configure.uuid + "-2}";
|
|
33
29
|
}
|
|
30
|
+
propName = propName.substring(2, propName.length - 1);
|
|
31
|
+
dynamicFields2 = propName.split(".");
|
|
34
32
|
if (!entity.data || !entity.data.id && !entity.data.ID) {
|
|
35
33
|
if (designProperty.value.defaultValue2) {
|
|
36
34
|
const defaultValue2 = getValueFromVariable(entity, designProperty.value.defaultValue2);
|
|
37
|
-
|
|
38
|
-
if (hisValue.length == 0) {
|
|
39
|
-
hisValue.push(void 0);
|
|
40
|
-
}
|
|
41
|
-
if (hisValue.length > 1) {
|
|
42
|
-
hisValue[1] = defaultValue2;
|
|
43
|
-
} else {
|
|
44
|
-
hisValue.push(defaultValue2);
|
|
45
|
-
}
|
|
35
|
+
setVariableValue(entity, dynamicFields2, defaultValue2);
|
|
46
36
|
}
|
|
47
37
|
}
|
|
48
|
-
setVariableValue(entity, dynamicFields, hisValue);
|
|
49
38
|
}
|
|
39
|
+
const dynamicModelMethod = computed({
|
|
40
|
+
get() {
|
|
41
|
+
if (isRange) {
|
|
42
|
+
const values = [];
|
|
43
|
+
values.push(getVariableValue(entity, dynamicFields));
|
|
44
|
+
values.push(getVariableValue(entity, dynamicFields2));
|
|
45
|
+
return values;
|
|
46
|
+
} else {
|
|
47
|
+
return getVariableValue(entity, dynamicFields);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
set(value) {
|
|
51
|
+
if (isRange) {
|
|
52
|
+
if (Array.isArray(value)) {
|
|
53
|
+
setVariableValue(entity, dynamicFields, value[0]);
|
|
54
|
+
setVariableValue(entity, dynamicFields2, value[1]);
|
|
55
|
+
}
|
|
56
|
+
} else {
|
|
57
|
+
setVariableValue(entity, dynamicFields, value);
|
|
58
|
+
}
|
|
59
|
+
console.log("entity", entity);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
50
62
|
const shortcuts = ref(
|
|
51
63
|
getDateShortCuts(
|
|
52
64
|
designProperty.value.dateScopeDetails,
|
|
@@ -76,7 +88,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
88
|
}
|
|
77
89
|
}
|
|
78
90
|
}
|
|
79
|
-
console.log("shortcuts", shortcuts.value);
|
|
80
91
|
}
|
|
81
92
|
}
|
|
82
93
|
return (_ctx, _cache) => {
|
|
@@ -93,7 +104,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
93
104
|
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
94
105
|
key: 0,
|
|
95
106
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
96
|
-
},
|
|
107
|
+
}, [
|
|
108
|
+
designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
|
|
109
|
+
key: 0,
|
|
110
|
+
pageContext: _ctx.pageContext,
|
|
111
|
+
property: designProperty.value
|
|
112
|
+
}, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
113
|
+
createTextVNode(toDisplayString(designProperty.value.title), 1)
|
|
114
|
+
], 64))
|
|
115
|
+
], 4)) : createCommentVNode("", true)
|
|
97
116
|
]),
|
|
98
117
|
default: withCtx(() => [
|
|
99
118
|
designProperty.value.dateType == "time" || designProperty.value.dateType == "timerange" ? (openBlock(), createBlock(_component_el_time_picker, {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import "agilebuilder-ui/src/utils/request";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
6
6
|
import "../../../../utils/global-refs.js";
|
|
7
7
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
8
|
+
import _sfc_main$1 from "../common/title-suffix-element.vue.js";
|
|
8
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
10
|
__name: "depttree-runtime",
|
|
10
11
|
props: {
|
|
@@ -45,7 +46,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
46
|
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
46
47
|
key: 0,
|
|
47
48
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
48
|
-
},
|
|
49
|
+
}, [
|
|
50
|
+
designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
|
|
51
|
+
key: 0,
|
|
52
|
+
pageContext: _ctx.pageContext,
|
|
53
|
+
property: designProperty.value
|
|
54
|
+
}, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
55
|
+
createTextVNode(toDisplayString(designProperty.value.title), 1)
|
|
56
|
+
], 64))
|
|
57
|
+
], 4)) : createCommentVNode("", true)
|
|
49
58
|
]),
|
|
50
59
|
default: withCtx(() => [
|
|
51
60
|
createVNode(_component_OrganizationInput, {
|
package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import _sfc_main$1 from "../common/title-suffix-element.vue.js";
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
7
|
__name: "input-number-runtime",
|
|
7
8
|
props: {
|
|
@@ -38,7 +39,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
39
|
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
39
40
|
key: 0,
|
|
40
41
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
41
|
-
},
|
|
42
|
+
}, [
|
|
43
|
+
designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
|
|
44
|
+
key: 0,
|
|
45
|
+
pageContext: _ctx.pageContext,
|
|
46
|
+
property: designProperty.value
|
|
47
|
+
}, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
48
|
+
createTextVNode(toDisplayString(designProperty.value.title), 1)
|
|
49
|
+
], 64))
|
|
50
|
+
], 4)) : createCommentVNode("", true)
|
|
42
51
|
]),
|
|
43
52
|
default: withCtx(() => [
|
|
44
53
|
createVNode(_component_el_input_number, {
|