super-page-runtime 2.0.38 → 2.0.40-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/api/api-util.d.ts +5 -3
- package/dist/es/components/runtime/utils/api/api-util.js +2 -2
- package/dist/es/components/runtime/utils/events/event-util.js +2 -6
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/form/scan-util.js +0 -1
- package/dist/es/components/runtime/utils/page-init-util.js +18 -1
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +66 -0
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +11 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +5 -2
- package/dist/lib/_virtual/AttributeMap.js +4 -0
- package/dist/lib/_virtual/Barcode.js +4 -0
- package/dist/lib/_virtual/CODE128.js +4 -0
- package/dist/lib/_virtual/CODE128A.js +4 -0
- package/dist/lib/_virtual/CODE128B.js +4 -0
- package/dist/lib/_virtual/CODE128C.js +4 -0
- package/dist/lib/_virtual/CODE128_AUTO.js +4 -0
- package/dist/lib/_virtual/Delta.js +4 -0
- package/dist/lib/_virtual/EAN.js +4 -0
- package/dist/lib/_virtual/EAN13.js +4 -0
- package/dist/lib/_virtual/EAN2.js +4 -0
- package/dist/lib/_virtual/EAN5.js +4 -0
- package/dist/lib/_virtual/EAN8.js +4 -0
- package/dist/lib/_virtual/ErrorHandler.js +4 -0
- package/dist/lib/_virtual/ITF.js +4 -0
- package/dist/lib/_virtual/ITF14.js +4 -0
- package/dist/lib/_virtual/JsBarcode.js +6 -0
- package/dist/lib/_virtual/MSI.js +4 -0
- package/dist/lib/_virtual/MSI10.js +4 -0
- package/dist/lib/_virtual/MSI1010.js +4 -0
- package/dist/lib/_virtual/MSI11.js +4 -0
- package/dist/lib/_virtual/MSI1110.js +4 -0
- package/dist/lib/_virtual/Op.js +4 -0
- package/dist/lib/_virtual/OpIterator.js +4 -0
- package/dist/lib/_virtual/SVGPathData.js +4 -0
- package/dist/lib/_virtual/SVGPathData2.js +5 -0
- package/dist/lib/_virtual/UPC.js +4 -0
- package/dist/lib/_virtual/UPCE.js +4 -0
- package/dist/lib/_virtual/__vite-browser-external.js +3 -0
- package/dist/lib/_virtual/_commonjsHelpers.js +35 -0
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/lib/_virtual/alignment-pattern.js +4 -0
- package/dist/lib/_virtual/arrayLikeToArray.js +4 -0
- package/dist/lib/_virtual/arrayWithHoles.js +4 -0
- package/dist/lib/_virtual/arrayWithoutHoles.js +4 -0
- package/dist/lib/_virtual/assertThisInitialized.js +4 -0
- package/dist/lib/_virtual/asyncToGenerator.js +4 -0
- package/dist/lib/_virtual/asyncToGenerator2.js +6 -0
- package/dist/lib/_virtual/auto.js +4 -0
- package/dist/lib/_virtual/backo2.js +4 -0
- package/dist/lib/_virtual/base64-arraybuffer.js +4 -0
- package/dist/lib/_virtual/binary.js +4 -0
- package/dist/lib/_virtual/browser.js +4 -0
- package/dist/lib/_virtual/browser2.js +4 -0
- package/dist/lib/_virtual/canvas.js +4 -0
- package/dist/lib/_virtual/canvas2.js +4 -0
- package/dist/lib/_virtual/checksums.js +4 -0
- package/dist/lib/_virtual/classCallCheck.js +4 -0
- package/dist/lib/_virtual/commons.js +4 -0
- package/dist/lib/_virtual/constants.js +4 -0
- package/dist/lib/_virtual/constants2.js +4 -0
- package/dist/lib/_virtual/constants3.js +4 -0
- package/dist/lib/_virtual/createClass.js +4 -0
- package/dist/lib/_virtual/dayjs.min.js +4 -0
- package/dist/lib/_virtual/decodePacket.browser.js +4 -0
- package/dist/lib/_virtual/defaults.js +4 -0
- package/dist/lib/_virtual/defineProperty.js +4 -0
- package/dist/lib/_virtual/defineProperty2.js +6 -0
- package/dist/lib/_virtual/dijkstra.js +4 -0
- package/dist/lib/_virtual/encodePacket.browser.js +4 -0
- package/dist/lib/_virtual/encoder.js +4 -0
- package/dist/lib/_virtual/error-correction-code.js +4 -0
- package/dist/lib/_virtual/error-correction-level.js +4 -0
- package/dist/lib/_virtual/es.array.concat.js +4 -0
- package/dist/lib/_virtual/es.array.every.js +4 -0
- package/dist/lib/_virtual/es.array.fill.js +4 -0
- package/dist/lib/_virtual/es.array.for-each.js +4 -0
- package/dist/lib/_virtual/es.array.from.js +4 -0
- package/dist/lib/_virtual/es.array.includes.js +4 -0
- package/dist/lib/_virtual/es.array.index-of.js +4 -0
- package/dist/lib/_virtual/es.array.index-of2.js +3 -0
- package/dist/lib/_virtual/es.array.iterator.js +3 -0
- package/dist/lib/_virtual/es.array.join.js +4 -0
- package/dist/lib/_virtual/es.array.map.js +4 -0
- package/dist/lib/_virtual/es.array.reduce.js +4 -0
- package/dist/lib/_virtual/es.array.reduce2.js +3 -0
- package/dist/lib/_virtual/es.array.reverse.js +4 -0
- package/dist/lib/_virtual/es.array.reverse2.js +3 -0
- package/dist/lib/_virtual/es.array.some.js +4 -0
- package/dist/lib/_virtual/es.function.name.js +4 -0
- package/dist/lib/_virtual/es.map.constructor.js +4 -0
- package/dist/lib/_virtual/es.map.js +4 -0
- package/dist/lib/_virtual/es.number.constructor.js +4 -0
- package/dist/lib/_virtual/es.object.to-string.js +4 -0
- package/dist/lib/_virtual/es.parse-float.js +4 -0
- package/dist/lib/_virtual/es.promise.all.js +4 -0
- package/dist/lib/_virtual/es.promise.catch.js +4 -0
- package/dist/lib/_virtual/es.promise.constructor.js +4 -0
- package/dist/lib/_virtual/es.promise.js +4 -0
- package/dist/lib/_virtual/es.promise.race.js +4 -0
- package/dist/lib/_virtual/es.promise.reject.js +4 -0
- package/dist/lib/_virtual/es.promise.resolve.js +4 -0
- package/dist/lib/_virtual/es.promise2.js +3 -0
- package/dist/lib/_virtual/es.reflect.apply.js +4 -0
- package/dist/lib/_virtual/es.reflect.delete-property.js +4 -0
- package/dist/lib/_virtual/es.reflect.get-prototype-of.js +4 -0
- package/dist/lib/_virtual/es.regexp.exec.js +4 -0
- package/dist/lib/_virtual/es.regexp.to-string.js +4 -0
- package/dist/lib/_virtual/es.regexp.to-string2.js +3 -0
- package/dist/lib/_virtual/es.string.ends-with.js +4 -0
- package/dist/lib/_virtual/es.string.ends-with2.js +3 -0
- package/dist/lib/_virtual/es.string.includes.js +4 -0
- package/dist/lib/_virtual/es.string.includes2.js +3 -0
- package/dist/lib/_virtual/es.string.iterator.js +4 -0
- package/dist/lib/_virtual/es.string.match.js +4 -0
- package/dist/lib/_virtual/es.string.match2.js +3 -0
- package/dist/lib/_virtual/es.string.replace.js +4 -0
- package/dist/lib/_virtual/es.string.replace2.js +3 -0
- package/dist/lib/_virtual/es.string.split.js +4 -0
- package/dist/lib/_virtual/es.string.split2.js +3 -0
- package/dist/lib/_virtual/es.string.starts-with.js +4 -0
- package/dist/lib/_virtual/es.string.starts-with2.js +3 -0
- package/dist/lib/_virtual/es.string.trim.js +4 -0
- package/dist/lib/_virtual/es.string.trim2.js +3 -0
- package/dist/lib/_virtual/exceptions.js +4 -0
- package/dist/lib/_virtual/finder-pattern.js +4 -0
- package/dist/lib/_virtual/fixOptions.js +4 -0
- package/dist/lib/_virtual/format-info.js +4 -0
- package/dist/lib/_virtual/galois-field.js +4 -0
- package/dist/lib/_virtual/get.js +4 -0
- package/dist/lib/_virtual/getOptionsFromElement.js +4 -0
- package/dist/lib/_virtual/getPrototypeOf.js +4 -0
- package/dist/lib/_virtual/getRenderProperties.js +4 -0
- package/dist/lib/_virtual/globalThis.browser.js +4 -0
- package/dist/lib/_virtual/has-cors.js +4 -0
- package/dist/lib/_virtual/html2canvas.js +4 -0
- package/dist/lib/_virtual/index.js +4 -0
- package/dist/lib/_virtual/index10.js +4 -0
- package/dist/lib/_virtual/index11.js +4 -0
- package/dist/lib/_virtual/index12.js +4 -0
- package/dist/lib/_virtual/index13.js +4 -0
- package/dist/lib/_virtual/index14.js +4 -0
- package/dist/lib/_virtual/index15.js +4 -0
- package/dist/lib/_virtual/index16.js +4 -0
- package/dist/lib/_virtual/index17.js +4 -0
- package/dist/lib/_virtual/index18.js +4 -0
- package/dist/lib/_virtual/index19.js +4 -0
- package/dist/lib/_virtual/index2.js +4 -0
- package/dist/lib/_virtual/index20.js +4 -0
- package/dist/lib/_virtual/index21.js +4 -0
- package/dist/lib/_virtual/index22.js +4 -0
- package/dist/lib/_virtual/index23.js +4 -0
- package/dist/lib/_virtual/index3.js +4 -0
- package/dist/lib/_virtual/index4.js +5 -0
- package/dist/lib/_virtual/index5.js +4 -0
- package/dist/lib/_virtual/index6.js +4 -0
- package/dist/lib/_virtual/index7.js +6 -0
- package/dist/lib/_virtual/index8.js +6 -0
- package/dist/lib/_virtual/index9.js +4 -0
- package/dist/lib/_virtual/inherits.js +4 -0
- package/dist/lib/_virtual/internal-metadata.js +4 -0
- package/dist/lib/_virtual/is-binary.js +4 -0
- package/dist/lib/_virtual/iterableToArray.js +4 -0
- package/dist/lib/_virtual/iterableToArrayLimit.js +4 -0
- package/dist/lib/_virtual/jquery.js +4 -0
- package/dist/lib/_virtual/jspdf.es.min.js +5 -0
- package/dist/lib/_virtual/linearizeEncodings.js +4 -0
- package/dist/lib/_virtual/make-built-in.js +4 -0
- package/dist/lib/_virtual/manager.js +4 -0
- package/dist/lib/_virtual/mask-pattern.js +4 -0
- package/dist/lib/_virtual/merge.js +4 -0
- package/dist/lib/_virtual/mode.js +4 -0
- package/dist/lib/_virtual/new-promise-capability.js +4 -0
- package/dist/lib/_virtual/nonIterableRest.js +4 -0
- package/dist/lib/_virtual/nonIterableSpread.js +4 -0
- package/dist/lib/_virtual/object-define-properties.js +4 -0
- package/dist/lib/_virtual/object-define-property.js +4 -0
- package/dist/lib/_virtual/object-get-own-property-descriptor.js +4 -0
- package/dist/lib/_virtual/object-get-own-property-names-external.js +4 -0
- package/dist/lib/_virtual/object-get-own-property-names.js +4 -0
- package/dist/lib/_virtual/object-get-own-property-symbols.js +4 -0
- package/dist/lib/_virtual/object-property-is-enumerable.js +4 -0
- package/dist/lib/_virtual/object.js +4 -0
- package/dist/lib/_virtual/on.js +4 -0
- package/dist/lib/_virtual/optionsFromStrings.js +4 -0
- package/dist/lib/_virtual/parseqs.js +4 -0
- package/dist/lib/_virtual/parseuri.js +4 -0
- package/dist/lib/_virtual/performance-now.js +4 -0
- package/dist/lib/_virtual/polling.js +4 -0
- package/dist/lib/_virtual/polynomial.js +4 -0
- package/dist/lib/_virtual/possibleConstructorReturn.js +4 -0
- package/dist/lib/_virtual/qrcode.js +4 -0
- package/dist/lib/_virtual/regeneratorRuntime.js +4 -0
- package/dist/lib/_virtual/regex.js +4 -0
- package/dist/lib/_virtual/segments.js +4 -0
- package/dist/lib/_virtual/setPrototypeOf.js +4 -0
- package/dist/lib/_virtual/shared-store.js +4 -0
- package/dist/lib/_virtual/shared.js +4 -0
- package/dist/lib/_virtual/slicedToArray.js +4 -0
- package/dist/lib/_virtual/socket.js +4 -0
- package/dist/lib/_virtual/socket2.js +4 -0
- package/dist/lib/_virtual/stackblur-es.js +5 -0
- package/dist/lib/_virtual/superPropBase.js +4 -0
- package/dist/lib/_virtual/svg-tag.js +4 -0
- package/dist/lib/_virtual/svg.js +4 -0
- package/dist/lib/_virtual/toConsumableArray.js +4 -0
- package/dist/lib/_virtual/toPrimitive.js +4 -0
- package/dist/lib/_virtual/toPropertyKey.js +4 -0
- package/dist/lib/_virtual/transport.js +4 -0
- package/dist/lib/_virtual/typeof.js +4 -0
- package/dist/lib/_virtual/unsupportedIterableToArray.js +4 -0
- package/dist/lib/_virtual/url.js +4 -0
- package/dist/lib/_virtual/util.js +4 -0
- package/dist/lib/_virtual/utils.js +4 -0
- package/dist/lib/_virtual/utils2.js +4 -0
- package/dist/lib/_virtual/version-check.js +4 -0
- package/dist/lib/_virtual/version.js +4 -0
- package/dist/lib/_virtual/vue-plugin-hiprint.js +4 -0
- package/dist/lib/_virtual/web.dom-collections.for-each.js +4 -0
- package/dist/lib/_virtual/web.dom-collections.iterator.js +4 -0
- package/dist/lib/_virtual/web.dom-collections.iterator2.js +3 -0
- package/dist/lib/_virtual/websocket-constructor.browser.js +4 -0
- package/dist/lib/_virtual/websocket.js +4 -0
- package/dist/lib/_virtual/webtransport.js +4 -0
- package/dist/lib/_virtual/xmlhttprequest.browser.js +4 -0
- package/dist/lib/_virtual/yeast.js +4 -0
- package/dist/lib/assets/chart-themes/theme1.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme1.js +7 -0
- package/dist/lib/assets/chart-themes/theme2.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme2.js +7 -0
- package/dist/lib/assets/chart-themes/theme3.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme3.js +7 -0
- package/dist/lib/components/runtime/index.d.ts +4 -0
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +18 -0
- package/dist/lib/components/runtime/utils/api/api-util.js +298 -0
- package/dist/lib/components/runtime/utils/api/page-expose-util.d.ts +1 -0
- package/dist/lib/components/runtime/utils/api/page-expose-util.js +206 -0
- package/dist/lib/components/runtime/utils/assemblys-config.js +295 -0
- package/dist/lib/components/runtime/utils/barcode-util.d.ts +8 -0
- package/dist/lib/components/runtime/utils/barcode-util.js +36 -0
- package/dist/lib/components/runtime/utils/charts/chart-columnline-util.js +279 -0
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +74 -0
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +118 -0
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +100 -0
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +74 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +51 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.js +302 -0
- package/dist/lib/components/runtime/utils/common-util.d.ts +17 -0
- package/dist/lib/components/runtime/utils/common-util.js +108 -0
- package/dist/lib/components/runtime/utils/eventBus.d.ts +7 -0
- package/dist/lib/components/runtime/utils/eventBus.js +10 -0
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +68 -0
- package/dist/lib/components/runtime/utils/events/event-util.js +616 -0
- package/dist/lib/components/runtime/utils/events/print-label.d.ts +5 -0
- package/dist/lib/components/runtime/utils/events/print-label.js +153 -0
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +67 -0
- package/dist/lib/components/runtime/utils/events/standard-event.js +1817 -0
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +12 -0
- package/dist/lib/components/runtime/utils/events/validator-util.js +416 -0
- package/dist/lib/components/runtime/utils/form/date-shortcuts.d.ts +7 -0
- package/dist/lib/components/runtime/utils/form/date-shortcuts.js +96 -0
- package/dist/lib/components/runtime/utils/form/scan-util.js +194 -0
- package/dist/lib/components/runtime/utils/global-refs.d.ts +59 -0
- package/dist/lib/components/runtime/utils/global-refs.js +77 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +224 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +9 -0
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +134 -0
- package/dist/lib/components/runtime/utils/page-helper-util.js +668 -0
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +40 -0
- package/dist/lib/components/runtime/utils/page-init-util.js +266 -0
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +26 -0
- package/dist/lib/components/runtime/utils/page-permission-util.js +525 -0
- package/dist/lib/components/runtime/utils/store-util.d.ts +15 -0
- package/dist/lib/components/runtime/utils/store-util.js +17 -0
- package/dist/lib/components/runtime/utils/store.d.ts +2 -0
- package/dist/lib/components/runtime/utils/store.js +3 -0
- package/dist/lib/components/runtime/utils/table-utils.js +16 -0
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +54 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +35 -0
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +115 -0
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +95 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +144 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +43 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +61 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +127 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +106 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +141 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +115 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +117 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +24 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +147 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +35 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +127 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +26 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +104 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +72 -0
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +74 -0
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +79 -0
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +70 -0
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +50 -0
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +30 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +109 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +75 -0
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +183 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +673 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +455 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +88 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +22 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +22 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +120 -0
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +65 -0
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +149 -0
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +72 -0
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +42 -0
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +135 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +67 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +159 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +130 -0
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +78 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +29 -0
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +160 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +236 -0
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +204 -0
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +41 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +65 -0
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +66 -0
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +71 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +154 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +39 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +39 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +59 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +36 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +79 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +99 -0
- package/dist/lib/components/runtime/views/super-page.vue.js +525 -0
- package/dist/lib/components/runtime/views/super-page.vue2.js +3 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/i18n/langs/cn.js +53 -0
- package/dist/lib/i18n/langs/en.js +53 -0
- package/dist/lib/index.d.ts +13 -0
- package/dist/lib/index.js +22 -0
- package/package.json +1 -1
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Vue = require("vue");
|
|
3
|
+
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
4
|
+
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
5
|
+
require("../../../../../../node_modules/.pnpm/quill@2.0.2/node_modules/quill/quill.js");
|
|
6
|
+
;/* empty css */
|
|
7
|
+
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
8
|
+
const request = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.28_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js");
|
|
9
|
+
require("../../../../../../node_modules/.pnpm/quill@2.0.2/node_modules/quill/core.js");
|
|
10
|
+
const quill = require("../../../../../../node_modules/.pnpm/quill@2.0.2/node_modules/quill/core/quill.js");
|
|
11
|
+
const _hoisted_1 = { style: { "width": "100%", "height": "100%" } };
|
|
12
|
+
const _hoisted_2 = {
|
|
13
|
+
key: 1,
|
|
14
|
+
style: { "width": "100%", "height": "100%" },
|
|
15
|
+
class: "amb-widget-richtext-single"
|
|
16
|
+
};
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
18
|
+
__name: "richtext-runtime",
|
|
19
|
+
props: {
|
|
20
|
+
pageContext: {},
|
|
21
|
+
configure: {}
|
|
22
|
+
},
|
|
23
|
+
setup(__props) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
26
|
+
const dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
27
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
28
|
+
const runtimeStyle = runtimeInfo.style;
|
|
29
|
+
const runtimeClass = runtimeInfo.class;
|
|
30
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
31
|
+
const designProperty = Vue.ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
32
|
+
let contentVariable = designProperty.value.value;
|
|
33
|
+
const initValue = pageHelperUtil.formatVariableValue(props.pageContext, contentVariable);
|
|
34
|
+
const quillEditorRef = Vue.ref(null);
|
|
35
|
+
const quill$1 = Vue.ref(null);
|
|
36
|
+
const fileBtn = Vue.ref(null);
|
|
37
|
+
const fontSize = [
|
|
38
|
+
"12px",
|
|
39
|
+
"13px",
|
|
40
|
+
"14px",
|
|
41
|
+
"15px",
|
|
42
|
+
"16px",
|
|
43
|
+
"18px",
|
|
44
|
+
"20px",
|
|
45
|
+
"24px",
|
|
46
|
+
"28px",
|
|
47
|
+
"32px",
|
|
48
|
+
"36px"
|
|
49
|
+
];
|
|
50
|
+
const option = Vue.ref({
|
|
51
|
+
modules: {
|
|
52
|
+
toolbar: [
|
|
53
|
+
["bold", "italic", "underline", "strike"],
|
|
54
|
+
// 加粗 斜体 下划线 删除线
|
|
55
|
+
["blockquote", "code-block"],
|
|
56
|
+
// 引用
|
|
57
|
+
[{ list: "ordered" }, { list: "bullet" }],
|
|
58
|
+
// 有序、无序列表
|
|
59
|
+
[{ script: "sub" }, { script: "super" }],
|
|
60
|
+
// 上标/下标
|
|
61
|
+
[{ indent: "-1" }, { indent: "+1" }],
|
|
62
|
+
// 缩进
|
|
63
|
+
[{ direction: "rtl" }],
|
|
64
|
+
// 文本方向
|
|
65
|
+
[{ size: fontSize }],
|
|
66
|
+
// 字体大小
|
|
67
|
+
[{ header: [1, 2, 3, 4, 5, 6, false] }],
|
|
68
|
+
// 标题
|
|
69
|
+
[{ color: [] }, { background: [] }],
|
|
70
|
+
// 字体颜色、字体背景颜色
|
|
71
|
+
[{ font: [] }],
|
|
72
|
+
// 字体种类
|
|
73
|
+
[{ align: [] }],
|
|
74
|
+
// 对齐方式
|
|
75
|
+
["clean"],
|
|
76
|
+
// 清除文本格式
|
|
77
|
+
["link", "image"]
|
|
78
|
+
// 链接、图片、视频
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
theme: "snow",
|
|
82
|
+
placeholder: designProperty.value.placeholder,
|
|
83
|
+
readOnly: designProperty.value.state == "readonly"
|
|
84
|
+
});
|
|
85
|
+
function updateEditorHeight() {
|
|
86
|
+
if (quill$1.value && quill$1.value) {
|
|
87
|
+
if (quill$1.value.container) {
|
|
88
|
+
const parentNode = quill$1.value.container.parentNode;
|
|
89
|
+
const parentRect = parentNode.getBoundingClientRect();
|
|
90
|
+
const thisRect = quill$1.value.container.getBoundingClientRect();
|
|
91
|
+
let newHeight = parentRect.height - (thisRect.top - parentRect.top);
|
|
92
|
+
if (newHeight < 100) {
|
|
93
|
+
newHeight = 100;
|
|
94
|
+
}
|
|
95
|
+
quill$1.value.container.style.height = newHeight + "px";
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
const handleUpload = (e) => {
|
|
100
|
+
const files = Array.prototype.slice.call(e.target.files);
|
|
101
|
+
if (!files) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
const formdata = new FormData();
|
|
105
|
+
formdata.append("file", files[0]);
|
|
106
|
+
alert("TODO:上传图片");
|
|
107
|
+
};
|
|
108
|
+
Vue.onMounted(() => {
|
|
109
|
+
var _a;
|
|
110
|
+
quill$1.value = new quill.default(quillEditorRef.value, option.value);
|
|
111
|
+
(_a = quillEditorRef.value) == null ? void 0 : _a.addEventListener("focusout", handleFocusOut);
|
|
112
|
+
quill$1.value.on("text-change", async function(delta, oldDelta, source) {
|
|
113
|
+
if (delta.ops && delta.ops.length > 0) {
|
|
114
|
+
for (let i = 0; i < delta.ops.length; i++) {
|
|
115
|
+
const ops = delta.ops[i];
|
|
116
|
+
if (ops.insert && ops.insert.image) {
|
|
117
|
+
const dataurl = ops.insert.image;
|
|
118
|
+
if (!dataurl.startsWith("data:image")) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
const file = dataURLtoFile(dataurl, "image.png");
|
|
122
|
+
await uploadImage(file).then((res) => {
|
|
123
|
+
if (!quill$1.value) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const images = quill$1.value.root.getElementsByTagName("img");
|
|
127
|
+
if (images && images.length > 0) {
|
|
128
|
+
for (let i2 = 0; i2 < images.length; i2++) {
|
|
129
|
+
const img = images[i2];
|
|
130
|
+
if (img.src === dataurl) {
|
|
131
|
+
img.src = res.url;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}).catch((err) => {
|
|
136
|
+
console.error(err, "上传图片失败");
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
pageHelperUtil.setVariableValue(entity, dynamicFields, quill$1.value.root.innerHTML);
|
|
142
|
+
});
|
|
143
|
+
updateEditorHeight();
|
|
144
|
+
});
|
|
145
|
+
Vue.onBeforeUnmount(() => {
|
|
146
|
+
if (quillEditorRef.value) {
|
|
147
|
+
quillEditorRef.value.removeEventListener("focusout", handleFocusOut);
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
function handleFocusOut(event) {
|
|
151
|
+
var _a;
|
|
152
|
+
if (event.relatedTarget === null || !((_a = quillEditorRef.value) == null ? void 0 : _a.contains(event.relatedTarget))) {
|
|
153
|
+
eventUtil.handleEvent(quill$1.value.root.innerHTML, props.pageContext, props.configure, "change", {
|
|
154
|
+
entity
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
function uploadImage(blob) {
|
|
159
|
+
const params = new FormData();
|
|
160
|
+
params.append("file", blob);
|
|
161
|
+
const config = {
|
|
162
|
+
headers: {
|
|
163
|
+
"Content-Type": "multipart/form-data"
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
let baseUrl = props.pageContext.backendUrl;
|
|
167
|
+
if (!baseUrl) {
|
|
168
|
+
baseUrl = window["$vueApp"].config.globalProperties.baseURL;
|
|
169
|
+
}
|
|
170
|
+
return request.post(
|
|
171
|
+
baseUrl + "/common/fs-upload/rich-editor-image",
|
|
172
|
+
params,
|
|
173
|
+
config
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
function dataURLtoFile(dataurl, filename) {
|
|
177
|
+
let arr = dataurl.split(",");
|
|
178
|
+
let mime = arr[0].match(/:(.*?);/)[1];
|
|
179
|
+
let bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n);
|
|
180
|
+
while (n--) {
|
|
181
|
+
u8arr[n] = bstr.charCodeAt(n);
|
|
182
|
+
}
|
|
183
|
+
return new File([u8arr], filename, { type: mime });
|
|
184
|
+
}
|
|
185
|
+
return (_ctx, _cache) => {
|
|
186
|
+
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
187
|
+
return designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
188
|
+
key: 0,
|
|
189
|
+
required: designProperty.value.required,
|
|
190
|
+
class: Vue.normalizeClass(Vue.unref(runtimeClass)),
|
|
191
|
+
"label-width": designProperty.value.labelWidth,
|
|
192
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
193
|
+
}, {
|
|
194
|
+
label: Vue.withCtx(() => [
|
|
195
|
+
designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
196
|
+
key: 0,
|
|
197
|
+
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
|
|
198
|
+
}, Vue.toDisplayString(designProperty.value.title), 5)) : Vue.createCommentVNode("", true)
|
|
199
|
+
]),
|
|
200
|
+
default: Vue.withCtx(() => [
|
|
201
|
+
Vue.createElementVNode("div", _hoisted_1, [
|
|
202
|
+
Vue.createElementVNode("div", {
|
|
203
|
+
ref_key: "quillEditorRef",
|
|
204
|
+
ref: quillEditorRef,
|
|
205
|
+
style: { "width": "100%" }
|
|
206
|
+
}, Vue.toDisplayString(Vue.unref(initValue)), 513),
|
|
207
|
+
Vue.createElementVNode("input", {
|
|
208
|
+
type: "file",
|
|
209
|
+
hidden: "",
|
|
210
|
+
accept: ".jpg,.png",
|
|
211
|
+
ref_key: "fileBtn",
|
|
212
|
+
ref: fileBtn,
|
|
213
|
+
onChange: handleUpload
|
|
214
|
+
}, null, 544)
|
|
215
|
+
])
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
}, 8, ["required", "class", "label-width", "style"])) : (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_2, [
|
|
219
|
+
Vue.createElementVNode("div", {
|
|
220
|
+
ref_key: "quillEditorRef",
|
|
221
|
+
ref: quillEditorRef,
|
|
222
|
+
style: { "width": "100%" }
|
|
223
|
+
}, Vue.toDisplayString(Vue.unref(initValue)), 513),
|
|
224
|
+
Vue.createElementVNode("input", {
|
|
225
|
+
type: "file",
|
|
226
|
+
hidden: "",
|
|
227
|
+
accept: ".jpg,.png",
|
|
228
|
+
ref_key: "fileBtn",
|
|
229
|
+
ref: fileBtn,
|
|
230
|
+
onChange: handleUpload
|
|
231
|
+
}, null, 544)
|
|
232
|
+
]));
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Vue = require("vue");
|
|
3
|
+
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
4
|
+
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
5
|
+
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
6
|
+
const _hoisted_1 = { style: { "float": "left" } };
|
|
7
|
+
const _hoisted_2 = { style: { "float": "right", "color": "var(--el-text-color-secondary)", "font-size": "13px" } };
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
9
|
+
__name: "select-runtime",
|
|
10
|
+
props: {
|
|
11
|
+
pageContext: {},
|
|
12
|
+
configure: {}
|
|
13
|
+
},
|
|
14
|
+
setup(__props, { expose: __expose }) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
17
|
+
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
18
|
+
const dynamicModelMethod = Vue.computed({
|
|
19
|
+
get() {
|
|
20
|
+
return pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
21
|
+
},
|
|
22
|
+
set(value) {
|
|
23
|
+
pageHelperUtil.setVariableValue(entity, dynamicFields, value);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
27
|
+
const runtimeStyle = runtimeInfo.style;
|
|
28
|
+
const runtimeClass = runtimeInfo.class;
|
|
29
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
30
|
+
const designProperty = Vue.ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
31
|
+
const listOptions = Vue.ref(designProperty.value.options ? designProperty.value.options : []);
|
|
32
|
+
const cacheOptions = pageHelperUtil.getOptionDatasFromPage(props.pageContext, props.configure);
|
|
33
|
+
if (cacheOptions.length > 0) {
|
|
34
|
+
listOptions.value = cacheOptions;
|
|
35
|
+
}
|
|
36
|
+
const queryLoadingFlag = Vue.ref(false);
|
|
37
|
+
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
38
|
+
const valueType = dataOrigin.optionValueSetType;
|
|
39
|
+
let autoSets = [];
|
|
40
|
+
const optionconfigInfo = designProperty.value.optionconfigInfo ? designProperty.value.optionconfigInfo : {};
|
|
41
|
+
if (valueType == "dynamicData" || valueType == "dataTable" || valueType == "service") {
|
|
42
|
+
if (dataOrigin.filterType == "remote") {
|
|
43
|
+
designProperty.value.filterable = true;
|
|
44
|
+
designProperty.value.remote = true;
|
|
45
|
+
designProperty.value.remoteShowSuffix = true;
|
|
46
|
+
let hisQuery = void 0;
|
|
47
|
+
designProperty.value.remoteMethod = function(query) {
|
|
48
|
+
if (hisQuery === query) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
hisQuery = query;
|
|
52
|
+
queryLoadingFlag.value = true;
|
|
53
|
+
console.log("query", query);
|
|
54
|
+
pageHelperUtil.queryOptionDatasources(props.pageContext, optionconfigInfo, query).then((results) => {
|
|
55
|
+
queryLoadingFlag.value = false;
|
|
56
|
+
}).then((error) => {
|
|
57
|
+
console.log("查询失败!", error);
|
|
58
|
+
queryLoadingFlag.value = false;
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
if (dataOrigin.autoSets) {
|
|
63
|
+
for (let obj of dataOrigin.autoSets) {
|
|
64
|
+
if (obj.source) {
|
|
65
|
+
autoSets.push(obj);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
if (props.configure && props.configure.props && props.configure.props.base && props.configure.props.base.optionProp) {
|
|
71
|
+
autoSets.push({
|
|
72
|
+
source: "label",
|
|
73
|
+
target: props.configure.props.base.optionProp
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
designProperty.value.changeMethod = optionChange;
|
|
77
|
+
const monitorFields = designProperty.value.monitorFields;
|
|
78
|
+
const monitorFieldInfos = [];
|
|
79
|
+
if (monitorFields) {
|
|
80
|
+
const preFields = [];
|
|
81
|
+
for (let propName of monitorFields) {
|
|
82
|
+
if (propName.startsWith("${")) {
|
|
83
|
+
propName = propName.substring(2, propName.length - 1);
|
|
84
|
+
const fields = propName.split(".");
|
|
85
|
+
if (fields[0] === "page" || fields[0] === "task" || fields[0] === "data") {
|
|
86
|
+
monitorFieldInfos.push(fields);
|
|
87
|
+
if (!preFields.includes(fields[0])) {
|
|
88
|
+
preFields.push(fields[0]);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
for (let preField of preFields) {
|
|
94
|
+
Vue.watch(entity[preField], () => {
|
|
95
|
+
monitorFieldChange();
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function getMonitorFieldValues() {
|
|
100
|
+
let values = "";
|
|
101
|
+
for (let fieldInfo of monitorFieldInfos) {
|
|
102
|
+
values += "_" + pageHelperUtil.getVariableValue(entity, fieldInfo);
|
|
103
|
+
}
|
|
104
|
+
return values;
|
|
105
|
+
}
|
|
106
|
+
let initMonitorValue = getMonitorFieldValues();
|
|
107
|
+
let monitorTimeout = false;
|
|
108
|
+
function monitorFieldChange() {
|
|
109
|
+
if (monitorTimeout) {
|
|
110
|
+
clearTimeout(monitorTimeout);
|
|
111
|
+
}
|
|
112
|
+
monitorTimeout = setTimeout(function() {
|
|
113
|
+
const newValue = getMonitorFieldValues();
|
|
114
|
+
if (newValue == initMonitorValue) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
initMonitorValue = newValue;
|
|
118
|
+
pageHelperUtil.queryOptionDatasources(props.pageContext, optionconfigInfo, void 0).then((error) => {
|
|
119
|
+
console.log("查询失败!", error);
|
|
120
|
+
queryLoadingFlag.value = false;
|
|
121
|
+
});
|
|
122
|
+
}, 200);
|
|
123
|
+
}
|
|
124
|
+
function optionChange(value) {
|
|
125
|
+
if (autoSets.length > 0) {
|
|
126
|
+
let selItems = null;
|
|
127
|
+
if (listOptions.value && value != void 0 && value != null) {
|
|
128
|
+
selItems = listOptions.value.filter((item) => {
|
|
129
|
+
return Array.isArray(value) ? value.includes(item.value) : value === item.value;
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
pageHelperUtil.autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems);
|
|
133
|
+
}
|
|
134
|
+
eventUtil.handleEvent(value, props.pageContext, props.configure, "change");
|
|
135
|
+
}
|
|
136
|
+
function updateOptions(newOptions) {
|
|
137
|
+
listOptions.value = newOptions ? newOptions : [];
|
|
138
|
+
console.log("updateOptions", newOptions);
|
|
139
|
+
}
|
|
140
|
+
__expose({
|
|
141
|
+
updateOptions
|
|
142
|
+
});
|
|
143
|
+
return (_ctx, _cache) => {
|
|
144
|
+
const _component_el_option = Vue.resolveComponent("el-option");
|
|
145
|
+
const _component_el_select = Vue.resolveComponent("el-select");
|
|
146
|
+
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
147
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
148
|
+
required: designProperty.value.required ? true : false,
|
|
149
|
+
class: Vue.normalizeClass(Vue.unref(runtimeClass)),
|
|
150
|
+
"label-width": designProperty.value.labelWidth,
|
|
151
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
152
|
+
}, {
|
|
153
|
+
label: Vue.withCtx(() => [
|
|
154
|
+
designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
155
|
+
key: 0,
|
|
156
|
+
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
|
|
157
|
+
}, Vue.toDisplayString(designProperty.value.title), 5)) : Vue.createCommentVNode("", true)
|
|
158
|
+
]),
|
|
159
|
+
default: Vue.withCtx(() => [
|
|
160
|
+
Vue.createVNode(_component_el_select, {
|
|
161
|
+
disabled: designProperty.value.state === "disabled",
|
|
162
|
+
size: designProperty.value.size,
|
|
163
|
+
clearable: designProperty.value.clearable,
|
|
164
|
+
multiple: designProperty.value.multiple,
|
|
165
|
+
"collapse-tags": designProperty.value.collapseTags,
|
|
166
|
+
"collapse-tags-tooltip": designProperty.value.collapseTagsTooltip,
|
|
167
|
+
filterable: designProperty.value.filterable,
|
|
168
|
+
"allow-create": designProperty.value.allowCreate,
|
|
169
|
+
placeholder: designProperty.value.placeholder,
|
|
170
|
+
"remote-show-suffix": designProperty.value.remoteShowSuffix,
|
|
171
|
+
remote: designProperty.value.remote,
|
|
172
|
+
"remote-method": designProperty.value.remoteMethod,
|
|
173
|
+
loading: queryLoadingFlag.value,
|
|
174
|
+
onChange: designProperty.value.changeMethod,
|
|
175
|
+
modelValue: dynamicModelMethod.value,
|
|
176
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
|
|
177
|
+
}, {
|
|
178
|
+
default: Vue.withCtx(() => [
|
|
179
|
+
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(listOptions.value, (item) => {
|
|
180
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_option, {
|
|
181
|
+
key: item.value,
|
|
182
|
+
label: item.label,
|
|
183
|
+
value: item.value,
|
|
184
|
+
onClick: ($event) => Vue.unref(eventUtil.handleEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", { values: dynamicModelMethod.value })
|
|
185
|
+
}, {
|
|
186
|
+
default: Vue.withCtx(() => [
|
|
187
|
+
item._description_ ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [
|
|
188
|
+
Vue.createElementVNode("span", _hoisted_1, Vue.toDisplayString(item.label), 1),
|
|
189
|
+
Vue.createElementVNode("span", _hoisted_2, Vue.toDisplayString(item._description_), 1)
|
|
190
|
+
], 64)) : Vue.createCommentVNode("", true)
|
|
191
|
+
]),
|
|
192
|
+
_: 2
|
|
193
|
+
}, 1032, ["label", "value", "onClick"]);
|
|
194
|
+
}), 128))
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
}, 8, ["required", "class", "label-width", "style"]);
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
module.exports = _sfc_main;
|
package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Vue = require("vue");
|
|
3
|
+
const superUi = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.28_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js");
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
5
|
+
__name: "separatelabel-runtime",
|
|
6
|
+
props: {
|
|
7
|
+
pageContext: {},
|
|
8
|
+
configure: {}
|
|
9
|
+
},
|
|
10
|
+
setup(__props, { expose: __expose }) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
const thisRef = Vue.ref(null);
|
|
13
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
14
|
+
const runtimeStyle = runtimeInfo.style;
|
|
15
|
+
const runtimeClass = runtimeInfo.class;
|
|
16
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
17
|
+
__expose({});
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return Vue.openBlock(), Vue.createElementBlock("div", {
|
|
20
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle)),
|
|
21
|
+
class: Vue.normalizeClass([Vue.unref(runtimeClass), "amb-widget-separatelabel"]),
|
|
22
|
+
ref_key: "thisRef",
|
|
23
|
+
ref: thisRef
|
|
24
|
+
}, [
|
|
25
|
+
Vue.createElementVNode("div", {
|
|
26
|
+
class: "label",
|
|
27
|
+
style: Vue.normalizeStyle(Vue.unref(headerStyle))
|
|
28
|
+
}, [
|
|
29
|
+
_ctx.configure.props.iconType && _ctx.configure.props.iconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(superUi.SuperIcon), {
|
|
30
|
+
key: 0,
|
|
31
|
+
iconType: _ctx.configure.props.iconType,
|
|
32
|
+
iconValue: _ctx.configure.props.iconValue,
|
|
33
|
+
style: { "margin-right": "2px" }
|
|
34
|
+
}, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
|
|
35
|
+
Vue.createTextVNode(" " + Vue.toDisplayString(_ctx.configure.props.base.title), 1)
|
|
36
|
+
], 4)
|
|
37
|
+
], 6);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Vue = require("vue");
|
|
3
|
+
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
4
|
+
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
5
|
+
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
7
|
+
__name: "switch-runtime",
|
|
8
|
+
props: {
|
|
9
|
+
pageContext: {},
|
|
10
|
+
configure: {}
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
15
|
+
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
16
|
+
const dynamicModelMethod = Vue.computed({
|
|
17
|
+
get() {
|
|
18
|
+
return pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
19
|
+
},
|
|
20
|
+
set(value) {
|
|
21
|
+
pageHelperUtil.setVariableValue(entity, dynamicFields, value);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
25
|
+
const runtimeStyle = runtimeInfo.style;
|
|
26
|
+
const runtimeClass = runtimeInfo.class;
|
|
27
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
28
|
+
const designProperty = Vue.ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
29
|
+
const switchStyle = runtimeInfo.switchStyle;
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
const _component_el_switch = Vue.resolveComponent("el-switch");
|
|
32
|
+
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
33
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
34
|
+
required: designProperty.value.required,
|
|
35
|
+
class: Vue.normalizeClass(Vue.unref(runtimeClass)),
|
|
36
|
+
"label-width": designProperty.value.labelWidth,
|
|
37
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
38
|
+
}, {
|
|
39
|
+
label: Vue.withCtx(() => [
|
|
40
|
+
designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
41
|
+
key: 0,
|
|
42
|
+
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
|
|
43
|
+
}, Vue.toDisplayString(designProperty.value.title), 5)) : Vue.createCommentVNode("", true)
|
|
44
|
+
]),
|
|
45
|
+
default: Vue.withCtx(() => [
|
|
46
|
+
Vue.createVNode(_component_el_switch, {
|
|
47
|
+
disabled: designProperty.value.state === "disabled",
|
|
48
|
+
"active-value:": designProperty.value.activeValue,
|
|
49
|
+
"active-text": designProperty.value.activeText,
|
|
50
|
+
"inactive-value": designProperty.value.inactiveValue,
|
|
51
|
+
"inactive-text": designProperty.value.inactiveText,
|
|
52
|
+
width: designProperty.value.offOnWidth,
|
|
53
|
+
size: designProperty.value.size,
|
|
54
|
+
style: Vue.normalizeStyle(Vue.unref(switchStyle)),
|
|
55
|
+
modelValue: dynamicModelMethod.value,
|
|
56
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
57
|
+
onChange: _cache[1] || (_cache[1] = ($event) => Vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "change"))
|
|
58
|
+
}, null, 8, ["disabled", "active-value:", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])
|
|
59
|
+
]),
|
|
60
|
+
_: 1
|
|
61
|
+
}, 8, ["required", "class", "label-width", "style"]);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Vue = require("vue");
|
|
3
|
+
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
4
|
+
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
5
|
+
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
7
|
+
__name: "tag-runtime",
|
|
8
|
+
props: {
|
|
9
|
+
pageContext: {},
|
|
10
|
+
configure: {}
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
15
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
16
|
+
const runtimeStyle = runtimeInfo.style;
|
|
17
|
+
const runtimeClass = runtimeInfo.class;
|
|
18
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
19
|
+
const designProperty = Vue.ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
20
|
+
let contentVariable = designProperty.value.formatting;
|
|
21
|
+
if (!contentVariable) {
|
|
22
|
+
const propsBase = props.configure.props.base ? props.configure.props.base : {};
|
|
23
|
+
contentVariable = propsBase.prop;
|
|
24
|
+
}
|
|
25
|
+
if (!contentVariable) {
|
|
26
|
+
contentVariable = "${page." + props.configure.uuid + "}";
|
|
27
|
+
}
|
|
28
|
+
const dynamicValue = Vue.computed(() => {
|
|
29
|
+
const resultValue = pageHelperUtil.formatVariableValue(props.pageContext, contentVariable);
|
|
30
|
+
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
31
|
+
});
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
const _component_el_tag = Vue.resolveComponent("el-tag");
|
|
34
|
+
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
35
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
36
|
+
required: designProperty.value.required,
|
|
37
|
+
class: Vue.normalizeClass(Vue.unref(runtimeClass)),
|
|
38
|
+
"label-width": designProperty.value.labelWidth,
|
|
39
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
40
|
+
}, {
|
|
41
|
+
label: Vue.withCtx(() => [
|
|
42
|
+
designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
43
|
+
key: 0,
|
|
44
|
+
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
|
|
45
|
+
}, Vue.toDisplayString(designProperty.value.title), 5)) : Vue.createCommentVNode("", true)
|
|
46
|
+
]),
|
|
47
|
+
default: Vue.withCtx(() => [
|
|
48
|
+
Vue.createVNode(_component_el_tag, {
|
|
49
|
+
size: designProperty.value.size,
|
|
50
|
+
closable: designProperty.value.closable,
|
|
51
|
+
type: designProperty.value.type,
|
|
52
|
+
onClose: _cache[0] || (_cache[0] = ($event) => Vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "remove")),
|
|
53
|
+
onClick: _cache[1] || (_cache[1] = ($event) => Vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
54
|
+
}, {
|
|
55
|
+
default: Vue.withCtx(() => [
|
|
56
|
+
Vue.createTextVNode(Vue.toDisplayString(dynamicValue.value), 1)
|
|
57
|
+
]),
|
|
58
|
+
_: 1
|
|
59
|
+
}, 8, ["size", "closable", "type"])
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
}, 8, ["required", "class", "label-width", "style"]);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
module.exports = _sfc_main;
|