super-page-runtime 2.3.17 → 2.3.18-tmp1
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/page-init-util.d.ts +2 -1
- package/dist/es/components/runtime/utils/page-init-util.js +84 -65
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +27 -27
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue.d.ts +9 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +136 -128
- package/dist/es/style.css +76 -76
- 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/CODE93.js +4 -0
- package/dist/lib/_virtual/CODE93FullASCII.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/OverloadYield.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/_commonjsHelpers.js +33 -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/clipboard.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/constants4.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/globals.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/index24.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 +4 -0
- package/dist/lib/_virtual/index8.js +6 -0
- package/dist/lib/_virtual/index9.js +6 -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-fetch.js +4 -0
- package/dist/lib/_virtual/polling-xhr.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/regenerator.js +4 -0
- package/dist/lib/_virtual/regeneratorAsync.js +4 -0
- package/dist/lib/_virtual/regeneratorAsyncGen.js +4 -0
- package/dist/lib/_virtual/regeneratorAsyncIterator.js +4 -0
- package/dist/lib/_virtual/regeneratorDefine.js +4 -0
- package/dist/lib/_virtual/regeneratorKeys.js +4 -0
- package/dist/lib/_virtual/regeneratorRuntime.js +4 -0
- package/dist/lib/_virtual/regeneratorValues.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.js +4 -0
- package/dist/lib/_virtual/webtransport.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/assets/file.png.js +3 -0
- package/dist/lib/assets/folder.png.js +3 -0
- package/dist/lib/components/runtime/index.d.ts +5 -0
- package/dist/lib/components/runtime/utils/ai-chat-util.js +38 -0
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +1 -0
- package/dist/lib/components/runtime/utils/api/api-util.js +9 -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 +494 -0
- package/dist/lib/components/runtime/utils/assemblys-config.js +384 -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 +327 -0
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +77 -0
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +162 -0
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +130 -0
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +106 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +113 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.js +550 -0
- package/dist/lib/components/runtime/utils/common-util.d.ts +33 -0
- package/dist/lib/components/runtime/utils/common-util.js +219 -0
- package/dist/lib/components/runtime/utils/eventBus.d.ts +7 -0
- package/dist/lib/components/runtime/utils/eventBus.js +9 -0
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +92 -0
- package/dist/lib/components/runtime/utils/events/event-util.js +752 -0
- package/dist/lib/components/runtime/utils/events/print-label.d.ts +5 -0
- package/dist/lib/components/runtime/utils/events/print-label.js +174 -0
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +96 -0
- package/dist/lib/components/runtime/utils/events/standard-event.js +2837 -0
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +25 -0
- package/dist/lib/components/runtime/utils/events/validator-util.js +730 -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 +65 -0
- package/dist/lib/components/runtime/utils/global-refs.js +88 -0
- package/dist/lib/components/runtime/utils/i18n-util.d.ts +1 -0
- package/dist/lib/components/runtime/utils/i18n-util.js +23 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +247 -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 +174 -0
- package/dist/lib/components/runtime/utils/page-helper-util.js +767 -0
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +48 -0
- package/dist/lib/components/runtime/utils/page-init-util.js +502 -0
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +26 -0
- package/dist/lib/components/runtime/utils/page-permission-util.js +717 -0
- package/dist/lib/components/runtime/utils/page-store.d.ts +46 -0
- package/dist/lib/components/runtime/utils/page-store.js +71 -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.d.ts +34 -0
- package/dist/lib/components/runtime/utils/table-utils.js +126 -0
- package/dist/lib/components/runtime/utils/tree-utils.js +121 -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 +118 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +55 -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 +135 -0
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +19 -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 +110 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +213 -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 +208 -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/common/common-homepage-search.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +179 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +121 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +171 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +122 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +132 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +121 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.js +786 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +43 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.js +63 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.js +169 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +63 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +631 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +28 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +163 -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 +90 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.d.ts +26 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.js +76 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.d.ts +35 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +114 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts +31 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +181 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-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 +122 -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 +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +106 -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 +85 -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 +89 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +99 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +94 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +224 -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 +82 -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 +69 -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 +40 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +272 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +144 -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 +184 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +943 -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 +718 -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 +187 -0
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +531 -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 +163 -0
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +101 -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/custom/custom-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +212 -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 +290 -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 +176 -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 +61 -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 +225 -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 +116 -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 +310 -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 +176 -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 +109 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +52 -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 +208 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +287 -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 +364 -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 +54 -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 +168 -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 +132 -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 +116 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.js +169 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue2.js +3 -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 +265 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +209 -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 +47 -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 +50 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +64 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +58 -0
- package/dist/lib/components/runtime/views/home-chart.vue.d.ts +23 -0
- package/dist/lib/components/runtime/views/home-chart.vue.js +168 -0
- package/dist/lib/components/runtime/views/home-chart.vue2.js +3 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +40 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +154 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue3.js +4 -0
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +126 -0
- package/dist/lib/components/runtime/views/super-page.vue.js +6 -0
- package/dist/lib/components/runtime/views/super-page.vue2.js +856 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/i18n/langs/cn.js +78 -0
- package/dist/lib/i18n/langs/en.js +78 -0
- package/dist/lib/index.d.ts +16 -0
- package/dist/lib/index.js +30 -0
- package/dist/lib/style.css +1169 -0
- package/package.json +2 -2
package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Vue = require("vue");
|
|
3
|
+
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
4
|
+
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
5
|
+
const request = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.1.58_@vue_29e6d749740d5c0a82211de8e577b320/node_modules/agilebuilder-ui/src/utils/request.js");
|
|
6
|
+
const index39f4c2e9 = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.1.58_@vue_29e6d749740d5c0a82211de8e577b320/node_modules/agilebuilder-ui/lib/index-39f4c2e9.js");
|
|
7
|
+
const eventBus = require("../../../../utils/eventBus.js");
|
|
8
|
+
const i18nUtil = require("../../../../utils/i18n-util.js");
|
|
9
|
+
const commonUtil$1 = require("../../../../utils/common-util.js");
|
|
10
|
+
const commonUtil = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.1.58_@vue_29e6d749740d5c0a82211de8e577b320/node_modules/agilebuilder-ui/src/utils/common-util.js");
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
12
|
+
__name: "fileupload-runtime",
|
|
13
|
+
props: {
|
|
14
|
+
pageContext: {},
|
|
15
|
+
configure: {}
|
|
16
|
+
},
|
|
17
|
+
setup(__props, { expose: __expose }) {
|
|
18
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
19
|
+
const props = __props;
|
|
20
|
+
const requiredClass = Vue.ref(null);
|
|
21
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
22
|
+
const designProperty = Vue.ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
23
|
+
const runtimeStyle = runtimeInfo.style;
|
|
24
|
+
const runtimeClass = runtimeInfo.class;
|
|
25
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
26
|
+
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
27
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
28
|
+
const propsBase = props.configure.props.base ? props.configure.props.base : {};
|
|
29
|
+
const pathFields = getFieldsByVariable(propsBase.prop);
|
|
30
|
+
const nameFields = getFieldsByVariable(propsBase.propName);
|
|
31
|
+
let watermark = Vue.ref({});
|
|
32
|
+
watermark.value["isShowWatermark"] = ((_b = (_a = props.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) === void 0 ? "true" : ((_c = props.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "";
|
|
33
|
+
watermark.value["content"] = ((_e = (_d = props.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = props.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "";
|
|
34
|
+
if (pathFields && pathFields.length > 1) {
|
|
35
|
+
Vue.watch(
|
|
36
|
+
() => props.pageContext.entity[pathFields[0]][pathFields[1]],
|
|
37
|
+
(newValue) => {
|
|
38
|
+
const newPath = pageHelperUtil.getVariableValue(entity, pathFields);
|
|
39
|
+
initUploadFile(newPath);
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
const pageCode = props.pageContext.code;
|
|
44
|
+
const componentId = Vue.ref(pathFields ? pageCode + "__" + pathFields.join("__") : null);
|
|
45
|
+
const initPaths = pageHelperUtil.getVariableValue(entity, pathFields);
|
|
46
|
+
const fileUploadRef = Vue.ref(null);
|
|
47
|
+
const hasLoad = Vue.ref(false);
|
|
48
|
+
const fileList = Vue.ref([]);
|
|
49
|
+
const fileInfo = Vue.ref({});
|
|
50
|
+
function initUploadFile(initPaths2) {
|
|
51
|
+
if (initPaths2) {
|
|
52
|
+
const uuids = initPaths2.split(",");
|
|
53
|
+
if (uuids.length > 0) {
|
|
54
|
+
const backendUrl = props.pageContext.backendUrl;
|
|
55
|
+
const url = commonUtil.getRelativeBaseUrl(backendUrl + "/common/fs-upload/search-file-names");
|
|
56
|
+
request.post(url, uuids).then((result) => {
|
|
57
|
+
fileList.value = [];
|
|
58
|
+
const names = [];
|
|
59
|
+
for (let index = 0; index < uuids.length; index++) {
|
|
60
|
+
const uuid = uuids[index];
|
|
61
|
+
names.push(result[uuid]);
|
|
62
|
+
fileList.value.push({ showName: result[uuid], serverPath: uuid });
|
|
63
|
+
}
|
|
64
|
+
if (designProperty.value.displayType === "input") {
|
|
65
|
+
fileInfo.value.showName = names.join(",");
|
|
66
|
+
fileInfo.value.serverPath = uuids.join(",");
|
|
67
|
+
}
|
|
68
|
+
}).finally(() => {
|
|
69
|
+
hasLoad.value = true;
|
|
70
|
+
});
|
|
71
|
+
} else {
|
|
72
|
+
hasLoad.value = true;
|
|
73
|
+
}
|
|
74
|
+
} else {
|
|
75
|
+
fileList.value = [];
|
|
76
|
+
fileInfo.value = {};
|
|
77
|
+
hasLoad.value = true;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
initUploadFile(initPaths);
|
|
81
|
+
function getFieldsByVariable(variableName) {
|
|
82
|
+
if (!variableName) {
|
|
83
|
+
return [];
|
|
84
|
+
}
|
|
85
|
+
if (variableName.startsWith("${")) {
|
|
86
|
+
variableName = variableName.substring(2, variableName.length - 1);
|
|
87
|
+
}
|
|
88
|
+
return variableName.split(".");
|
|
89
|
+
}
|
|
90
|
+
function beforeUpload(params) {
|
|
91
|
+
return eventUtil.fileUploadBeforeUpload(params);
|
|
92
|
+
}
|
|
93
|
+
const onSuccess = (response, uploadFile, uploadFiles) => {
|
|
94
|
+
updateValue();
|
|
95
|
+
};
|
|
96
|
+
const onRemove = (file) => {
|
|
97
|
+
updateValue();
|
|
98
|
+
};
|
|
99
|
+
const updateValue = () => {
|
|
100
|
+
const names = [];
|
|
101
|
+
const uuids = [];
|
|
102
|
+
if (designProperty.value.limit) {
|
|
103
|
+
if (fileList.value.length > designProperty.value.limit) {
|
|
104
|
+
const diff = fileList.value.length - designProperty.value.limit;
|
|
105
|
+
for (let index = 0; index < diff; index++) {
|
|
106
|
+
fileList.value.shift();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
for (let index = 0; index < fileList.value.length; index++) {
|
|
111
|
+
names.push(fileList.value[index].showName);
|
|
112
|
+
uuids.push(fileList.value[index].serverPath);
|
|
113
|
+
}
|
|
114
|
+
pageHelperUtil.setVariableValue(props.pageContext.entity, pathFields, uuids.join(","));
|
|
115
|
+
pageHelperUtil.setVariableValue(props.pageContext.entity, nameFields, names.join(","));
|
|
116
|
+
if (uuids.length > 0) {
|
|
117
|
+
requiredClass.value = "";
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
const formItemRef = Vue.ref(null);
|
|
121
|
+
const titleRef = Vue.ref(null);
|
|
122
|
+
Vue.onMounted(() => {
|
|
123
|
+
eventBus.$on(componentId.value + "-pickFileDone", (data) => {
|
|
124
|
+
console.log("superPage4444---pickFileDone--componentId.value=", componentId.value, "data=", data);
|
|
125
|
+
fileUploadRef.value.pickFileDone(data);
|
|
126
|
+
});
|
|
127
|
+
Vue.nextTick(() => {
|
|
128
|
+
const pathFieldsValue = pageHelperUtil.getVariableValue(entity, pathFields);
|
|
129
|
+
const nameFieldsValue = pageHelperUtil.getVariableValue(entity, nameFields);
|
|
130
|
+
const value = { showName: nameFieldsValue, serverPath: pathFieldsValue };
|
|
131
|
+
eventUtil.handleAfterInitEvent(value, props.pageContext, props.configure, {
|
|
132
|
+
formItemRef: formItemRef.value,
|
|
133
|
+
componentRef: fileUploadRef.value,
|
|
134
|
+
titleRef: titleRef.value,
|
|
135
|
+
value,
|
|
136
|
+
entity: props.pageContext.entity.data,
|
|
137
|
+
pageData: props.pageContext.entity.page
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
Vue.onUnmounted(() => {
|
|
142
|
+
eventBus.$off(componentId.value + "-pickFileDone");
|
|
143
|
+
});
|
|
144
|
+
function addRequiredClass() {
|
|
145
|
+
requiredClass.value = commonUtil$1.addRequiredClassUtil();
|
|
146
|
+
}
|
|
147
|
+
__expose({
|
|
148
|
+
addRequiredClass
|
|
149
|
+
});
|
|
150
|
+
return (_ctx, _cache) => {
|
|
151
|
+
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
152
|
+
return designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
153
|
+
key: 0,
|
|
154
|
+
ref_key: "formItemRef",
|
|
155
|
+
ref: formItemRef,
|
|
156
|
+
required: designProperty.value.required,
|
|
157
|
+
class: Vue.normalizeClass(Vue.unref(runtimeClass) + (requiredClass.value ? " " + requiredClass.value : "")),
|
|
158
|
+
"label-width": designProperty.value.labelWidth,
|
|
159
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
160
|
+
}, {
|
|
161
|
+
label: Vue.withCtx(() => [
|
|
162
|
+
designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
163
|
+
key: 0,
|
|
164
|
+
ref_key: "titleRef",
|
|
165
|
+
ref: titleRef,
|
|
166
|
+
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle), ...Vue.unref(titleExceedStyle) })
|
|
167
|
+
}, Vue.toDisplayString(Vue.unref(i18nUtil.$t)(designProperty.value.title)), 5)) : Vue.createCommentVNode("", true)
|
|
168
|
+
]),
|
|
169
|
+
default: Vue.withCtx(() => [
|
|
170
|
+
hasLoad.value ? (Vue.openBlock(), Vue.createBlock(Vue.unref(index39f4c2e9.aN), {
|
|
171
|
+
key: 0,
|
|
172
|
+
ref_key: "fileUploadRef",
|
|
173
|
+
ref: fileUploadRef,
|
|
174
|
+
style: { "width": "100%" },
|
|
175
|
+
disabled: designProperty.value.state === "disabled",
|
|
176
|
+
displayType: designProperty.value.displayType,
|
|
177
|
+
accept: designProperty.value.accept,
|
|
178
|
+
multiple: designProperty.value.multiple,
|
|
179
|
+
placeholder: designProperty.value.placeholder,
|
|
180
|
+
limit: designProperty.value.limit,
|
|
181
|
+
"limit-file-size": designProperty.value.limitFileSize,
|
|
182
|
+
"disabled-no-preview": designProperty.value.disabledNoPreview,
|
|
183
|
+
"disabled-no-download": designProperty.value.disabledNoDownload,
|
|
184
|
+
openCameraOrChoosePhoto: designProperty.value.openCameraOrChoosePhoto,
|
|
185
|
+
"file-info": fileInfo.value,
|
|
186
|
+
"file-list": fileList.value,
|
|
187
|
+
"system-code": _ctx.pageContext.systemCode,
|
|
188
|
+
componentId: componentId.value,
|
|
189
|
+
watermark: Vue.unref(watermark),
|
|
190
|
+
"on-success": onSuccess,
|
|
191
|
+
"on-remove": onRemove,
|
|
192
|
+
"before-upload": beforeUpload,
|
|
193
|
+
pageContext: _ctx.pageContext
|
|
194
|
+
}, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext"])) : Vue.createCommentVNode("", true)
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["required", "class", "label-width", "style"])) : hasLoad.value ? (Vue.openBlock(), Vue.createBlock(Vue.unref(index39f4c2e9.aN), {
|
|
198
|
+
key: 1,
|
|
199
|
+
ref_key: "fileUploadRef",
|
|
200
|
+
ref: fileUploadRef,
|
|
201
|
+
style: { "width": "100%" },
|
|
202
|
+
disabled: designProperty.value.state === "disabled",
|
|
203
|
+
displayType: designProperty.value.displayType,
|
|
204
|
+
accept: designProperty.value.accept,
|
|
205
|
+
multiple: designProperty.value.multiple,
|
|
206
|
+
placeholder: designProperty.value.placeholder,
|
|
207
|
+
limit: designProperty.value.limit,
|
|
208
|
+
"limit-file-size": designProperty.value.limitFileSize,
|
|
209
|
+
"disabled-no-preview": designProperty.value.disabledNoPreview,
|
|
210
|
+
"disabled-no-download": designProperty.value.disabledNoDownload,
|
|
211
|
+
openCameraOrChoosePhoto: designProperty.value.openCameraOrChoosePhoto,
|
|
212
|
+
"file-info": fileInfo.value,
|
|
213
|
+
"file-list": fileList.value,
|
|
214
|
+
"system-code": _ctx.pageContext.systemCode,
|
|
215
|
+
componentId: componentId.value,
|
|
216
|
+
watermark: Vue.unref(watermark),
|
|
217
|
+
"on-success": onSuccess,
|
|
218
|
+
"on-remove": onRemove,
|
|
219
|
+
"before-upload": beforeUpload,
|
|
220
|
+
pageContext: _ctx.pageContext
|
|
221
|
+
}, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext"])) : Vue.createCommentVNode("", true);
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
module.exports = _sfc_main;
|
package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
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 titleSuffixElement_vue_vue_type_script_setup_true_lang = require("../common/title-suffix-element.vue.js");
|
|
7
|
+
const i18nUtil = require("../../../../utils/i18n-util.js");
|
|
8
|
+
const commonUtil = require("../../../../utils/common-util.js");
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
10
|
+
__name: "input-number-runtime",
|
|
11
|
+
props: {
|
|
12
|
+
pageContext: {},
|
|
13
|
+
configure: {}
|
|
14
|
+
},
|
|
15
|
+
setup(__props, { expose: __expose }) {
|
|
16
|
+
const props = __props;
|
|
17
|
+
const requiredClass = Vue.ref(null);
|
|
18
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
19
|
+
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
20
|
+
const dynamicModelMethod = Vue.computed({
|
|
21
|
+
get() {
|
|
22
|
+
return pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
23
|
+
},
|
|
24
|
+
set(value) {
|
|
25
|
+
pageHelperUtil.setVariableValue(entity, dynamicFields, value);
|
|
26
|
+
if (value !== void 0 && value !== null) {
|
|
27
|
+
requiredClass.value = "";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
32
|
+
const runtimeStyle = runtimeInfo.style;
|
|
33
|
+
const runtimeClass = runtimeInfo.class;
|
|
34
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
35
|
+
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
36
|
+
const designProperty = Vue.ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
37
|
+
const formItemRef = Vue.ref(null);
|
|
38
|
+
const componentRef = Vue.ref(null);
|
|
39
|
+
const titleRef = Vue.ref(null);
|
|
40
|
+
Vue.onMounted(() => {
|
|
41
|
+
Vue.nextTick(() => {
|
|
42
|
+
const value = dynamicModelMethod.value;
|
|
43
|
+
eventUtil.handleAfterInitEvent(
|
|
44
|
+
value,
|
|
45
|
+
props.pageContext,
|
|
46
|
+
props.configure,
|
|
47
|
+
{
|
|
48
|
+
formItemRef: formItemRef.value,
|
|
49
|
+
componentRef: componentRef.value,
|
|
50
|
+
titleRef: titleRef.value,
|
|
51
|
+
value,
|
|
52
|
+
entity: props.pageContext.entity.data,
|
|
53
|
+
pageData: props.pageContext.entity.page
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
function addRequiredClass() {
|
|
59
|
+
requiredClass.value = commonUtil.addRequiredClassUtil();
|
|
60
|
+
}
|
|
61
|
+
__expose({
|
|
62
|
+
addRequiredClass
|
|
63
|
+
});
|
|
64
|
+
return (_ctx, _cache) => {
|
|
65
|
+
const _component_el_input_number = Vue.resolveComponent("el-input-number");
|
|
66
|
+
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
67
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
68
|
+
ref_key: "formItemRef",
|
|
69
|
+
ref: formItemRef,
|
|
70
|
+
required: designProperty.value.required,
|
|
71
|
+
class: Vue.normalizeClass(Vue.unref(runtimeClass) + (requiredClass.value ? " " + requiredClass.value : "")),
|
|
72
|
+
"label-width": designProperty.value.labelWidth,
|
|
73
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
74
|
+
}, {
|
|
75
|
+
label: Vue.withCtx(() => [
|
|
76
|
+
designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
77
|
+
key: 0,
|
|
78
|
+
ref_key: "titleRef",
|
|
79
|
+
ref: titleRef,
|
|
80
|
+
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle), ...Vue.unref(titleExceedStyle) })
|
|
81
|
+
}, [
|
|
82
|
+
designProperty.value.prefixType ? (Vue.openBlock(), Vue.createBlock(titleSuffixElement_vue_vue_type_script_setup_true_lang, {
|
|
83
|
+
key: 0,
|
|
84
|
+
pageContext: _ctx.pageContext,
|
|
85
|
+
property: designProperty.value
|
|
86
|
+
}, null, 8, ["pageContext", "property"])) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 1 }, [
|
|
87
|
+
Vue.createTextVNode(Vue.toDisplayString(Vue.unref(i18nUtil.$t)(designProperty.value.title)), 1)
|
|
88
|
+
], 64))
|
|
89
|
+
], 4)) : Vue.createCommentVNode("", true)
|
|
90
|
+
]),
|
|
91
|
+
default: Vue.withCtx(() => [
|
|
92
|
+
Vue.createVNode(_component_el_input_number, {
|
|
93
|
+
ref_key: "componentRef",
|
|
94
|
+
ref: componentRef,
|
|
95
|
+
disabled: designProperty.value.state === "disabled",
|
|
96
|
+
readonly: designProperty.value.state === "readonly",
|
|
97
|
+
controls: designProperty.value.showButton,
|
|
98
|
+
size: designProperty.value.size,
|
|
99
|
+
placeholder: designProperty.value.placeholder,
|
|
100
|
+
modelValue: dynamicModelMethod.value,
|
|
101
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
102
|
+
precision: designProperty.value.precision,
|
|
103
|
+
step: designProperty.value.step,
|
|
104
|
+
min: designProperty.value.min,
|
|
105
|
+
max: designProperty.value.max,
|
|
106
|
+
onChange: _cache[1] || (_cache[1] = ($event) => Vue.unref(eventUtil.handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
107
|
+
onBlur: _cache[2] || (_cache[2] = ($event) => Vue.unref(eventUtil.handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
108
|
+
onFocus: _cache[3] || (_cache[3] = ($event) => Vue.unref(eventUtil.handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus"))
|
|
109
|
+
}, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
}, 8, ["required", "class", "label-width", "style"]);
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Vue = require("vue");
|
|
3
|
+
const index39f4c2e9 = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.1.58_@vue_29e6d749740d5c0a82211de8e577b320/node_modules/agilebuilder-ui/lib/index-39f4c2e9.js");
|
|
4
|
+
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
5
|
+
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
6
|
+
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
7
|
+
const scanUtil = require("../../../../utils/form/scan-util.js");
|
|
8
|
+
const titleSuffixElement_vue_vue_type_script_setup_true_lang = require("../common/title-suffix-element.vue.js");
|
|
9
|
+
const commonUtil = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.1.58_@vue_29e6d749740d5c0a82211de8e577b320/node_modules/agilebuilder-ui/src/utils/common-util.js");
|
|
10
|
+
const eventBus = require("../../../../utils/eventBus.js");
|
|
11
|
+
const i18nUtil = require("../../../../utils/i18n-util.js");
|
|
12
|
+
const commonUtil$1 = require("../../../../utils/common-util.js");
|
|
13
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
14
|
+
__name: "inputtext-runtime",
|
|
15
|
+
props: {
|
|
16
|
+
pageContext: {},
|
|
17
|
+
configure: {}
|
|
18
|
+
},
|
|
19
|
+
setup(__props, { expose: __expose }) {
|
|
20
|
+
var _a, _b, _c;
|
|
21
|
+
const props = __props;
|
|
22
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
23
|
+
const inputType = Vue.ref("text");
|
|
24
|
+
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
25
|
+
if (props.pageContext.modelFieldsMap) {
|
|
26
|
+
const modelField = pageHelperUtil.getModelFieldFromPageContext(dynamicFields, props.pageContext);
|
|
27
|
+
if (modelField) {
|
|
28
|
+
inputType.value = pageHelperUtil.isNumberDataType(modelField.dataType) ? "number" : "text";
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const isMobile = Vue.ref(commonUtil.isMobileBrowser());
|
|
32
|
+
const pageCode = props.pageContext.code;
|
|
33
|
+
const componentId = Vue.ref(
|
|
34
|
+
dynamicFields && dynamicFields.length > 0 ? pageCode + "__" + dynamicFields.join("__") : null
|
|
35
|
+
);
|
|
36
|
+
const requiredClass = Vue.ref(null);
|
|
37
|
+
const dynamicModelMethod = Vue.computed({
|
|
38
|
+
get() {
|
|
39
|
+
return pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
40
|
+
},
|
|
41
|
+
set(value) {
|
|
42
|
+
pageHelperUtil.setVariableValue(entity, dynamicFields, value);
|
|
43
|
+
if (value !== void 0 && value !== null && value !== "") {
|
|
44
|
+
requiredClass.value = "";
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
const formItemRef = Vue.ref(null);
|
|
49
|
+
const componentRef = Vue.ref(null);
|
|
50
|
+
const titleRef = Vue.ref(null);
|
|
51
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
52
|
+
const designProperty = Vue.ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
53
|
+
const scanEnable = Vue.ref(((_a = designProperty.value.scan) == null ? void 0 : _a.enable) ? true : false);
|
|
54
|
+
let isDingTalk = false;
|
|
55
|
+
const authSource = window.localStorage.getItem("auth_source");
|
|
56
|
+
if (authSource && authSource === "dingtalk") {
|
|
57
|
+
isDingTalk = true;
|
|
58
|
+
}
|
|
59
|
+
let userAgent = "";
|
|
60
|
+
const userAgentOrg = navigator.userAgent;
|
|
61
|
+
if (userAgentOrg.indexOf(" uni-app ") > 0) {
|
|
62
|
+
userAgent = "app";
|
|
63
|
+
} else {
|
|
64
|
+
userAgent = "browser";
|
|
65
|
+
}
|
|
66
|
+
const isApk = isMobile.value && userAgent && userAgent === "app" ? true : false;
|
|
67
|
+
const isShowScanIcon = Vue.ref(
|
|
68
|
+
(isApk || isDingTalk) && scanEnable.value || isMobile.value && scanEnable.value && window.location.protocol === "https:" ? true : false
|
|
69
|
+
);
|
|
70
|
+
let scanRuleSets = {};
|
|
71
|
+
if (((_b = designProperty.value.scan) == null ? void 0 : _b.enable) && ((_c = designProperty.value.scan.ruleList) == null ? void 0 : _c.length) > 0) {
|
|
72
|
+
setScanRuleSets();
|
|
73
|
+
watchScanValueChange();
|
|
74
|
+
}
|
|
75
|
+
const runtimeStyle = runtimeInfo.style;
|
|
76
|
+
const runtimeClass = runtimeInfo.class;
|
|
77
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
78
|
+
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
79
|
+
Vue.onMounted(() => {
|
|
80
|
+
eventBus.$on(componentId.value + "-scanDone", (data) => {
|
|
81
|
+
console.log(
|
|
82
|
+
"superPage4444---scanDone--componentId.value=",
|
|
83
|
+
componentId.value,
|
|
84
|
+
"data=",
|
|
85
|
+
JSON.stringify(data)
|
|
86
|
+
);
|
|
87
|
+
setValue(data.result);
|
|
88
|
+
eventUtil.handleFormEvent(data.result, props.pageContext, props.configure, "afterScanDone");
|
|
89
|
+
});
|
|
90
|
+
Vue.nextTick(() => {
|
|
91
|
+
var _a2;
|
|
92
|
+
const value = dynamicModelMethod.value;
|
|
93
|
+
eventUtil.handleAfterInitEvent(value, props.pageContext, props.configure, {
|
|
94
|
+
formItemRef: formItemRef.value,
|
|
95
|
+
componentRef: componentRef.value,
|
|
96
|
+
titleRef: titleRef.value,
|
|
97
|
+
value,
|
|
98
|
+
entity: props.pageContext.entity.data,
|
|
99
|
+
pageData: props.pageContext.entity.page
|
|
100
|
+
});
|
|
101
|
+
if (isShowScanIcon.value && ((_a2 = designProperty.value.scan) == null ? void 0 : _a2.autoOpen)) {
|
|
102
|
+
scanClick();
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
console.log("input-text");
|
|
106
|
+
});
|
|
107
|
+
Vue.onUnmounted(() => {
|
|
108
|
+
eventBus.$off(componentId.value + "-scanDone");
|
|
109
|
+
});
|
|
110
|
+
function getValue() {
|
|
111
|
+
return pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
112
|
+
}
|
|
113
|
+
function setValue(value) {
|
|
114
|
+
return pageHelperUtil.setVariableValue(entity, dynamicFields, value);
|
|
115
|
+
}
|
|
116
|
+
function setScanRuleSets() {
|
|
117
|
+
scanUtil.formatScanRuleSets(designProperty.value.scan.ruleList).then((res) => {
|
|
118
|
+
scanRuleSets = res;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
function watchScanValueChange() {
|
|
122
|
+
Vue.watch(
|
|
123
|
+
() => dynamicModelMethod.value,
|
|
124
|
+
(newValue) => {
|
|
125
|
+
newValue = newValue.trim();
|
|
126
|
+
const valueSet = scanUtil.analysisScanValue(newValue, scanRuleSets);
|
|
127
|
+
if (valueSet) {
|
|
128
|
+
scanUtil.setScanAnalysisValue(props.pageContext, valueSet.scanSet, valueSet.params);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
const isShowBrowserScan = Vue.ref(false);
|
|
134
|
+
function scanClick() {
|
|
135
|
+
console.log("scanClick----userAgent=", userAgent);
|
|
136
|
+
if (isApk || isDingTalk) {
|
|
137
|
+
const message = {
|
|
138
|
+
type: "scan",
|
|
139
|
+
componentId: componentId.value,
|
|
140
|
+
systemCode: props.pageContext.systemCode
|
|
141
|
+
};
|
|
142
|
+
if (isDingTalk) {
|
|
143
|
+
message.type = "dingTalkScan";
|
|
144
|
+
}
|
|
145
|
+
if (window.parent.parent) {
|
|
146
|
+
console.log("scanClick----window.parent.parent", window.parent.parent);
|
|
147
|
+
window.parent.parent.postMessage(JSON.stringify(message), "*");
|
|
148
|
+
} else if (window.parent) {
|
|
149
|
+
console.log("scanClick----window.parent", window.parent);
|
|
150
|
+
window.parent.postMessage(JSON.stringify(message), "*");
|
|
151
|
+
}
|
|
152
|
+
} else if (isMobile.value) {
|
|
153
|
+
if (window.location.protocol === "https:") {
|
|
154
|
+
isShowBrowserScan.value = true;
|
|
155
|
+
} else {
|
|
156
|
+
const message = {
|
|
157
|
+
type: "scan",
|
|
158
|
+
componentId: componentId.value,
|
|
159
|
+
systemCode: props.pageContext.systemCode
|
|
160
|
+
};
|
|
161
|
+
window.parent.postMessage(JSON.stringify(message), "*");
|
|
162
|
+
}
|
|
163
|
+
} else {
|
|
164
|
+
isShowBrowserScan.value = true;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
function closeBrowserScan(value) {
|
|
168
|
+
isShowBrowserScan.value = false;
|
|
169
|
+
setValue(value);
|
|
170
|
+
}
|
|
171
|
+
function blurEvent(evt) {
|
|
172
|
+
let value = pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
173
|
+
if (value !== void 0 && value !== null) {
|
|
174
|
+
value = value.trim();
|
|
175
|
+
}
|
|
176
|
+
pageHelperUtil.setVariableValue(entity, dynamicFields, value);
|
|
177
|
+
eventUtil.handleFormEvent(evt, props.pageContext, props.configure, "blur");
|
|
178
|
+
}
|
|
179
|
+
function addRequiredClass() {
|
|
180
|
+
requiredClass.value = commonUtil$1.addRequiredClassUtil();
|
|
181
|
+
}
|
|
182
|
+
__expose({
|
|
183
|
+
getValue,
|
|
184
|
+
setValue,
|
|
185
|
+
scanClick,
|
|
186
|
+
addRequiredClass
|
|
187
|
+
});
|
|
188
|
+
return (_ctx, _cache) => {
|
|
189
|
+
const _component_el_input = Vue.resolveComponent("el-input");
|
|
190
|
+
const _component_scan_code_input_browser = Vue.resolveComponent("scan-code-input-browser");
|
|
191
|
+
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
192
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
193
|
+
ref_key: "formItemRef",
|
|
194
|
+
ref: formItemRef,
|
|
195
|
+
required: designProperty.value.required ? true : false,
|
|
196
|
+
class: Vue.normalizeClass(Vue.unref(runtimeClass) + (requiredClass.value ? " " + requiredClass.value : "")),
|
|
197
|
+
"label-width": designProperty.value.labelWidth,
|
|
198
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
199
|
+
}, {
|
|
200
|
+
label: Vue.withCtx(() => [
|
|
201
|
+
designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
202
|
+
key: 0,
|
|
203
|
+
ref_key: "titleRef",
|
|
204
|
+
ref: titleRef,
|
|
205
|
+
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle), ...Vue.unref(titleExceedStyle) })
|
|
206
|
+
}, [
|
|
207
|
+
designProperty.value.prefixType ? (Vue.openBlock(), Vue.createBlock(titleSuffixElement_vue_vue_type_script_setup_true_lang, {
|
|
208
|
+
key: 0,
|
|
209
|
+
pageContext: _ctx.pageContext,
|
|
210
|
+
property: designProperty.value
|
|
211
|
+
}, null, 8, ["pageContext", "property"])) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 1 }, [
|
|
212
|
+
Vue.createTextVNode(Vue.toDisplayString(Vue.unref(i18nUtil.$t)(designProperty.value.title)), 1)
|
|
213
|
+
], 64))
|
|
214
|
+
], 4)) : Vue.createCommentVNode("", true)
|
|
215
|
+
]),
|
|
216
|
+
default: Vue.withCtx(() => [
|
|
217
|
+
Vue.createVNode(_component_el_input, {
|
|
218
|
+
ref_key: "componentRef",
|
|
219
|
+
ref: componentRef,
|
|
220
|
+
disabled: designProperty.value.state === "disabled",
|
|
221
|
+
readonly: designProperty.value.state === "readonly",
|
|
222
|
+
size: designProperty.value.size,
|
|
223
|
+
clearable: designProperty.value.clearable,
|
|
224
|
+
placeholder: designProperty.value.placeholder,
|
|
225
|
+
maxlength: designProperty.value.maxLength,
|
|
226
|
+
"show-word-limit": designProperty.value.showInputNum,
|
|
227
|
+
type: inputType.value,
|
|
228
|
+
modelValue: dynamicModelMethod.value,
|
|
229
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => dynamicModelMethod.value = $event),
|
|
230
|
+
onInput: _cache[6] || (_cache[6] = ($event) => Vue.unref(eventUtil.handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
|
|
231
|
+
onChange: _cache[7] || (_cache[7] = ($event) => Vue.unref(eventUtil.handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
232
|
+
onBlur: _cache[8] || (_cache[8] = ($event) => blurEvent($event)),
|
|
233
|
+
onFocus: _cache[9] || (_cache[9] = ($event) => Vue.unref(eventUtil.handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
234
|
+
onClick: _cache[10] || (_cache[10] = ($event) => Vue.unref(eventUtil.handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click")),
|
|
235
|
+
onClear: _cache[11] || (_cache[11] = ($event) => Vue.unref(eventUtil.handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "clear"))
|
|
236
|
+
}, Vue.createSlots({ _: 2 }, [
|
|
237
|
+
designProperty.value.iconPosition != "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
|
|
238
|
+
name: "prefix",
|
|
239
|
+
fn: Vue.withCtx(() => [
|
|
240
|
+
designProperty.value.preIconType && designProperty.value.preIconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(index39f4c2e9.aM), {
|
|
241
|
+
key: 0,
|
|
242
|
+
style: { "cursor": "pointer" },
|
|
243
|
+
iconType: designProperty.value.preIconType,
|
|
244
|
+
iconValue: designProperty.value.preIconValue,
|
|
245
|
+
onClick: _cache[0] || (_cache[0] = ($event) => Vue.unref(eventUtil.doSuffixOrPrefixClickEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "prefixClick"))
|
|
246
|
+
}, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
|
|
247
|
+
Vue.createTextVNode(" " + Vue.toDisplayString(Vue.unref(i18nUtil.$t)(designProperty.value.preText)), 1)
|
|
248
|
+
]),
|
|
249
|
+
key: "0"
|
|
250
|
+
} : void 0,
|
|
251
|
+
designProperty.value.iconPosition == "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
|
|
252
|
+
name: "prepend",
|
|
253
|
+
fn: Vue.withCtx(() => [
|
|
254
|
+
designProperty.value.preIconType && designProperty.value.preIconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(index39f4c2e9.aM), {
|
|
255
|
+
key: 0,
|
|
256
|
+
style: { "cursor": "pointer" },
|
|
257
|
+
iconType: designProperty.value.preIconType,
|
|
258
|
+
iconValue: designProperty.value.preIconValue,
|
|
259
|
+
onClick: _cache[1] || (_cache[1] = ($event) => Vue.unref(eventUtil.doSuffixOrPrefixClickEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "prefixClick"))
|
|
260
|
+
}, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
|
|
261
|
+
Vue.createTextVNode(" " + Vue.toDisplayString(Vue.unref(i18nUtil.$t)(designProperty.value.preText)), 1)
|
|
262
|
+
]),
|
|
263
|
+
key: "1"
|
|
264
|
+
} : void 0,
|
|
265
|
+
designProperty.value.iconPosition != "outer" && (designProperty.value.sufIconType && designProperty.value.sufIconValue || designProperty.value.sufText) ? {
|
|
266
|
+
name: "suffix",
|
|
267
|
+
fn: Vue.withCtx(() => [
|
|
268
|
+
designProperty.value.sufIconType && designProperty.value.sufIconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(index39f4c2e9.aM), {
|
|
269
|
+
key: 0,
|
|
270
|
+
style: { "cursor": "pointer" },
|
|
271
|
+
iconType: designProperty.value.sufIconType,
|
|
272
|
+
iconValue: designProperty.value.sufIconValue,
|
|
273
|
+
onClick: _cache[2] || (_cache[2] = ($event) => Vue.unref(eventUtil.doSuffixOrPrefixClickEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "suffixClick"))
|
|
274
|
+
}, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
|
|
275
|
+
Vue.createTextVNode(" " + Vue.toDisplayString(Vue.unref(i18nUtil.$t)(designProperty.value.sufText)), 1)
|
|
276
|
+
]),
|
|
277
|
+
key: "2"
|
|
278
|
+
} : void 0,
|
|
279
|
+
isShowScanIcon.value || designProperty.value.iconPosition == "outer" && (designProperty.value.sufIconType && designProperty.value.sufIconValue || designProperty.value.sufText) ? {
|
|
280
|
+
name: "append",
|
|
281
|
+
fn: Vue.withCtx(() => [
|
|
282
|
+
isShowScanIcon.value ? (Vue.openBlock(), Vue.createBlock(Vue.unref(index39f4c2e9.aM), {
|
|
283
|
+
key: 0,
|
|
284
|
+
style: { "cursor": "pointer" },
|
|
285
|
+
iconValue: "fa-barcode",
|
|
286
|
+
onClick: _cache[3] || (_cache[3] = ($event) => scanClick())
|
|
287
|
+
})) : Vue.createCommentVNode("", true),
|
|
288
|
+
designProperty.value.sufIconType && designProperty.value.sufIconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(index39f4c2e9.aM), {
|
|
289
|
+
key: 1,
|
|
290
|
+
style: { "cursor": "pointer" },
|
|
291
|
+
iconType: designProperty.value.sufIconType,
|
|
292
|
+
iconValue: designProperty.value.sufIconValue,
|
|
293
|
+
onClick: _cache[4] || (_cache[4] = ($event) => Vue.unref(eventUtil.doSuffixOrPrefixClickEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "suffixClick"))
|
|
294
|
+
}, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
|
|
295
|
+
Vue.createTextVNode(" " + Vue.toDisplayString(Vue.unref(i18nUtil.$t)(designProperty.value.sufText)), 1)
|
|
296
|
+
]),
|
|
297
|
+
key: "3"
|
|
298
|
+
} : void 0
|
|
299
|
+
]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]),
|
|
300
|
+
isShowBrowserScan.value ? (Vue.openBlock(), Vue.createBlock(_component_scan_code_input_browser, {
|
|
301
|
+
key: 0,
|
|
302
|
+
onClose: closeBrowserScan
|
|
303
|
+
})) : Vue.createCommentVNode("", true)
|
|
304
|
+
]),
|
|
305
|
+
_: 1
|
|
306
|
+
}, 8, ["required", "class", "label-width", "style"]);
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
module.exports = _sfc_main;
|