super-page-runtime 2.3.17 → 2.3.18-tmp2
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 +11 -2
- 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/separatelabel/separatelabel-runtime.vue2.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
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 i18nUtil = require("../../../../utils/i18n-util.js");
|
|
5
|
+
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
7
|
+
__name: "separatelabel-runtime",
|
|
8
|
+
props: {
|
|
9
|
+
pageContext: {},
|
|
10
|
+
configure: {}
|
|
11
|
+
},
|
|
12
|
+
setup(__props, { expose: __expose }) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const thisRef = Vue.ref(null);
|
|
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
|
+
Vue.onMounted(() => {
|
|
20
|
+
Vue.nextTick(() => {
|
|
21
|
+
const value = i18nUtil.$t(props.configure.props.base.title);
|
|
22
|
+
eventUtil.handleAfterInitEvent(value, props.pageContext, props.configure, {
|
|
23
|
+
componentRef: thisRef.value,
|
|
24
|
+
value,
|
|
25
|
+
entity: props.pageContext.entity.data,
|
|
26
|
+
pageData: props.pageContext.entity.page
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
__expose({});
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return Vue.openBlock(), Vue.createElementBlock("div", {
|
|
33
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle)),
|
|
34
|
+
class: Vue.normalizeClass([Vue.unref(runtimeClass), "amb-widget-separatelabel"]),
|
|
35
|
+
ref_key: "thisRef",
|
|
36
|
+
ref: thisRef
|
|
37
|
+
}, [
|
|
38
|
+
Vue.createElementVNode("div", {
|
|
39
|
+
class: "label",
|
|
40
|
+
style: Vue.normalizeStyle(Vue.unref(headerStyle))
|
|
41
|
+
}, [
|
|
42
|
+
_ctx.configure.props.iconType && _ctx.configure.props.iconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(index39f4c2e9.aM), {
|
|
43
|
+
key: 0,
|
|
44
|
+
iconType: _ctx.configure.props.iconType,
|
|
45
|
+
iconValue: _ctx.configure.props.iconValue,
|
|
46
|
+
style: { "margin-right": "2px" }
|
|
47
|
+
}, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
|
|
48
|
+
Vue.createTextVNode(" " + Vue.toDisplayString(Vue.unref(i18nUtil.$t)(_ctx.configure.props.base.title)), 1)
|
|
49
|
+
], 4)
|
|
50
|
+
], 6);
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,168 @@
|
|
|
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 i18nUtil = require("../../../../utils/i18n-util.js");
|
|
7
|
+
const commonUtil = require("../../../../utils/common-util.js");
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
9
|
+
__name: "switch-runtime",
|
|
10
|
+
props: {
|
|
11
|
+
pageContext: {},
|
|
12
|
+
configure: {}
|
|
13
|
+
},
|
|
14
|
+
setup(__props, { expose: __expose }) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const requiredClass = Vue.ref(null);
|
|
17
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
18
|
+
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
19
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
20
|
+
const runtimeStyle = runtimeInfo.style;
|
|
21
|
+
const runtimeClass = runtimeInfo.class;
|
|
22
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
23
|
+
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
24
|
+
const designProperty = Vue.ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
25
|
+
let val = pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
26
|
+
if (val !== void 0 && val !== null && typeof val === "number" && (val + "" === "1" || val + "" === "0")) {
|
|
27
|
+
if (!isHasActive("activeValue")) {
|
|
28
|
+
designProperty.value.activeValue = 1;
|
|
29
|
+
}
|
|
30
|
+
if (!isHasActive("inactiveValue")) {
|
|
31
|
+
designProperty.value.inactiveValue = 0;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
if (val !== void 0 && val !== null && typeof val === "boolean") {
|
|
35
|
+
if (!isHasActive("activeValue")) {
|
|
36
|
+
designProperty.value.activeValue = true;
|
|
37
|
+
}
|
|
38
|
+
if (!isHasActive("inactiveValue")) {
|
|
39
|
+
designProperty.value.inactiveValue = false;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (!isHasActive("activeValue")) {
|
|
43
|
+
designProperty.value.activeValue = true;
|
|
44
|
+
}
|
|
45
|
+
if (!isHasActive("inactiveValue")) {
|
|
46
|
+
designProperty.value.inactiveValue = false;
|
|
47
|
+
}
|
|
48
|
+
function isHasActive(type) {
|
|
49
|
+
if (designProperty.value[type] === void 0 || designProperty.value[type] === null || designProperty.value[type] === "") {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
const switchStyle = runtimeInfo.switchStyle;
|
|
55
|
+
const dynamicModelMethod = Vue.computed({
|
|
56
|
+
get() {
|
|
57
|
+
let val2 = pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
58
|
+
if (val2 !== void 0 && val2 !== null) {
|
|
59
|
+
if (designProperty.value.activeValue === true) {
|
|
60
|
+
if (val2 + "" === "1") {
|
|
61
|
+
val2 = true;
|
|
62
|
+
}
|
|
63
|
+
if (val2 + "" === "0") {
|
|
64
|
+
val2 = false;
|
|
65
|
+
}
|
|
66
|
+
} else if (designProperty.value.activeValue === 1) {
|
|
67
|
+
if (val2 + "" === "true") {
|
|
68
|
+
val2 = 1;
|
|
69
|
+
}
|
|
70
|
+
if (val2 + "" === "false") {
|
|
71
|
+
val2 = 0;
|
|
72
|
+
}
|
|
73
|
+
} else {
|
|
74
|
+
val2 = val2 + "";
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return val2;
|
|
78
|
+
},
|
|
79
|
+
set(value) {
|
|
80
|
+
if (value !== void 0 && value !== null) {
|
|
81
|
+
if (designProperty.value.activeValue === true) {
|
|
82
|
+
if (value + "" === "1") {
|
|
83
|
+
value = true;
|
|
84
|
+
}
|
|
85
|
+
if (value + "" === "0") {
|
|
86
|
+
value = false;
|
|
87
|
+
}
|
|
88
|
+
} else if (designProperty.value.activeValue === 1) {
|
|
89
|
+
if (value + "" === "true") {
|
|
90
|
+
value = 1;
|
|
91
|
+
}
|
|
92
|
+
if (value + "" === "false") {
|
|
93
|
+
value = 0;
|
|
94
|
+
}
|
|
95
|
+
} else {
|
|
96
|
+
value = value + "";
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
pageHelperUtil.setVariableValue(entity, dynamicFields, value);
|
|
100
|
+
if (value !== void 0 && value !== null) {
|
|
101
|
+
requiredClass.value = "";
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
const formItemRef = Vue.ref(null);
|
|
106
|
+
const componentRef = Vue.ref(null);
|
|
107
|
+
const titleRef = Vue.ref(null);
|
|
108
|
+
Vue.onMounted(() => {
|
|
109
|
+
Vue.nextTick(() => {
|
|
110
|
+
const value = dynamicModelMethod.value;
|
|
111
|
+
eventUtil.handleAfterInitEvent(value, props.pageContext, props.configure, {
|
|
112
|
+
formItemRef: formItemRef.value,
|
|
113
|
+
componentRef: componentRef.value,
|
|
114
|
+
titleRef: titleRef.value,
|
|
115
|
+
value,
|
|
116
|
+
entity: props.pageContext.entity.data,
|
|
117
|
+
pageData: props.pageContext.entity.page
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
function addRequiredClass() {
|
|
122
|
+
requiredClass.value = commonUtil.addRequiredClassUtil();
|
|
123
|
+
}
|
|
124
|
+
__expose({
|
|
125
|
+
addRequiredClass
|
|
126
|
+
});
|
|
127
|
+
return (_ctx, _cache) => {
|
|
128
|
+
const _component_el_switch = Vue.resolveComponent("el-switch");
|
|
129
|
+
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
130
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
131
|
+
ref_key: "formItemRef",
|
|
132
|
+
ref: formItemRef,
|
|
133
|
+
required: designProperty.value.required,
|
|
134
|
+
class: Vue.normalizeClass(Vue.unref(runtimeClass) + (requiredClass.value ? " " + requiredClass.value : "")),
|
|
135
|
+
"label-width": designProperty.value.labelWidth,
|
|
136
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
137
|
+
}, {
|
|
138
|
+
label: Vue.withCtx(() => [
|
|
139
|
+
designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
140
|
+
key: 0,
|
|
141
|
+
ref_key: "titleRef",
|
|
142
|
+
ref: titleRef,
|
|
143
|
+
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle), ...Vue.unref(titleExceedStyle) })
|
|
144
|
+
}, Vue.toDisplayString(Vue.unref(i18nUtil.$t)(designProperty.value.title)), 5)) : Vue.createCommentVNode("", true)
|
|
145
|
+
]),
|
|
146
|
+
default: Vue.withCtx(() => [
|
|
147
|
+
Vue.createVNode(_component_el_switch, {
|
|
148
|
+
ref_key: "componentRef",
|
|
149
|
+
ref: componentRef,
|
|
150
|
+
disabled: designProperty.value.state === "disabled",
|
|
151
|
+
"active-value": designProperty.value.activeValue,
|
|
152
|
+
"active-text": designProperty.value.activeText,
|
|
153
|
+
"inactive-value": designProperty.value.inactiveValue,
|
|
154
|
+
"inactive-text": designProperty.value.inactiveText,
|
|
155
|
+
width: designProperty.value.offOnWidth,
|
|
156
|
+
size: designProperty.value.size,
|
|
157
|
+
style: Vue.normalizeStyle(Vue.unref(switchStyle)),
|
|
158
|
+
modelValue: dynamicModelMethod.value,
|
|
159
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
160
|
+
onChange: _cache[1] || (_cache[1] = ($event) => Vue.unref(eventUtil.handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change"))
|
|
161
|
+
}, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
}, 8, ["required", "class", "label-width", "style"]);
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,132 @@
|
|
|
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 i18nUtil = require("../../../../utils/i18n-util.js");
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
8
|
+
__name: "tag-runtime",
|
|
9
|
+
props: {
|
|
10
|
+
pageContext: {},
|
|
11
|
+
configure: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const modelFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
16
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
17
|
+
const runtimeStyle = runtimeInfo.style;
|
|
18
|
+
const runtimeClass = runtimeInfo.class;
|
|
19
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
20
|
+
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
21
|
+
const designProperty = Vue.ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
22
|
+
let formatting = designProperty.value.formatting;
|
|
23
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
24
|
+
const dynamicValues = Vue.computed(() => {
|
|
25
|
+
let resultValue = pageHelperUtil.getVariableValue(entity, modelFields);
|
|
26
|
+
if (resultValue === void 0 || resultValue === null) {
|
|
27
|
+
resultValue = [];
|
|
28
|
+
}
|
|
29
|
+
if (!Array.isArray(resultValue)) {
|
|
30
|
+
resultValue = (resultValue + "").split(",");
|
|
31
|
+
}
|
|
32
|
+
const options = [];
|
|
33
|
+
let no = 1;
|
|
34
|
+
for (const val of resultValue) {
|
|
35
|
+
if (val === void 0 || val === null || val === "") {
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
const o = {
|
|
39
|
+
value: val,
|
|
40
|
+
label: val
|
|
41
|
+
};
|
|
42
|
+
if (formatting) {
|
|
43
|
+
o.label = formatting.replace(/\${value}/g, o.value).replace(/\${no}/g, no);
|
|
44
|
+
}
|
|
45
|
+
options.push(o);
|
|
46
|
+
no++;
|
|
47
|
+
}
|
|
48
|
+
return options;
|
|
49
|
+
});
|
|
50
|
+
function closeTag($event, tag) {
|
|
51
|
+
if (designProperty.value.closable) {
|
|
52
|
+
let resultValue = pageHelperUtil.getVariableValue(entity, modelFields);
|
|
53
|
+
if (resultValue === void 0 || resultValue === null) {
|
|
54
|
+
resultValue = [];
|
|
55
|
+
}
|
|
56
|
+
const isArray = Array.isArray(resultValue);
|
|
57
|
+
if (!isArray) {
|
|
58
|
+
resultValue = (resultValue + "").split(",");
|
|
59
|
+
}
|
|
60
|
+
const index = resultValue.indexOf(tag.value);
|
|
61
|
+
if (index > -1) {
|
|
62
|
+
resultValue.splice(index, 1);
|
|
63
|
+
}
|
|
64
|
+
if (!isArray) {
|
|
65
|
+
resultValue = resultValue.join(",");
|
|
66
|
+
}
|
|
67
|
+
pageHelperUtil.setVariableValue(entity, modelFields, resultValue);
|
|
68
|
+
}
|
|
69
|
+
eventUtil.handleFormEvent($event, props.pageContext, props.configure, "remove");
|
|
70
|
+
}
|
|
71
|
+
const formItemRef = Vue.ref(null);
|
|
72
|
+
const titleRef = Vue.ref(null);
|
|
73
|
+
Vue.onMounted(() => {
|
|
74
|
+
Vue.nextTick(() => {
|
|
75
|
+
const value = dynamicValues.value;
|
|
76
|
+
eventUtil.handleAfterInitEvent(
|
|
77
|
+
value,
|
|
78
|
+
props.pageContext,
|
|
79
|
+
props.configure,
|
|
80
|
+
{
|
|
81
|
+
formItemRef: formItemRef.value,
|
|
82
|
+
titleRef: titleRef.value,
|
|
83
|
+
value,
|
|
84
|
+
entity: props.pageContext.entity.data,
|
|
85
|
+
pageData: props.pageContext.entity.page
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
return (_ctx, _cache) => {
|
|
91
|
+
const _component_el_tag = Vue.resolveComponent("el-tag");
|
|
92
|
+
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
93
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
94
|
+
ref_key: "formItemRef",
|
|
95
|
+
ref: formItemRef,
|
|
96
|
+
required: designProperty.value.required,
|
|
97
|
+
class: Vue.normalizeClass(Vue.unref(runtimeClass)),
|
|
98
|
+
"label-width": designProperty.value.labelWidth,
|
|
99
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
100
|
+
}, {
|
|
101
|
+
label: Vue.withCtx(() => [
|
|
102
|
+
designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
103
|
+
key: 0,
|
|
104
|
+
ref_key: "titleRef",
|
|
105
|
+
ref: titleRef,
|
|
106
|
+
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle), ...Vue.unref(titleExceedStyle) })
|
|
107
|
+
}, Vue.toDisplayString(Vue.unref(i18nUtil.$t)(designProperty.value.title)), 5)) : Vue.createCommentVNode("", true)
|
|
108
|
+
]),
|
|
109
|
+
default: Vue.withCtx(() => [
|
|
110
|
+
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(dynamicValues.value, (tag) => {
|
|
111
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_tag, {
|
|
112
|
+
key: tag,
|
|
113
|
+
size: designProperty.value.size,
|
|
114
|
+
closable: designProperty.value.closable,
|
|
115
|
+
type: designProperty.value.type,
|
|
116
|
+
style: { "margin-right": "4px" },
|
|
117
|
+
onClose: ($event) => closeTag($event, tag),
|
|
118
|
+
onClick: _cache[0] || (_cache[0] = ($event) => Vue.unref(eventUtil.handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
119
|
+
}, {
|
|
120
|
+
default: Vue.withCtx(() => [
|
|
121
|
+
Vue.createTextVNode(Vue.toDisplayString(tag.label), 1)
|
|
122
|
+
]),
|
|
123
|
+
_: 2
|
|
124
|
+
}, 1032, ["size", "closable", "type", "onClose"]);
|
|
125
|
+
}), 128))
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
}, 8, ["required", "class", "label-width", "style"]);
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
module.exports = _sfc_main;
|
|
@@ -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: "textarea-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 && value !== "") {
|
|
27
|
+
requiredClass.value = "";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
32
|
+
const designProperty = Vue.ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
33
|
+
const runtimeStyle = runtimeInfo.style;
|
|
34
|
+
const runtimeClass = runtimeInfo.class;
|
|
35
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
36
|
+
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
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(value, props.pageContext, props.configure, {
|
|
44
|
+
formItemRef: formItemRef.value,
|
|
45
|
+
componentRef: componentRef.value,
|
|
46
|
+
titleRef: titleRef.value,
|
|
47
|
+
value,
|
|
48
|
+
entity: props.pageContext.entity.data,
|
|
49
|
+
pageData: props.pageContext.entity.page
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
function addRequiredClass() {
|
|
54
|
+
requiredClass.value = commonUtil.addRequiredClassUtil();
|
|
55
|
+
}
|
|
56
|
+
__expose({
|
|
57
|
+
addRequiredClass
|
|
58
|
+
});
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
const _component_el_input = Vue.resolveComponent("el-input");
|
|
61
|
+
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
62
|
+
return Vue.openBlock(), Vue.createElementBlock("div", null, [
|
|
63
|
+
Vue.createVNode(_component_el_form_item, {
|
|
64
|
+
ref_key: "formItemRef",
|
|
65
|
+
ref: formItemRef,
|
|
66
|
+
required: designProperty.value.required ? true : false,
|
|
67
|
+
class: Vue.normalizeClass(Vue.unref(runtimeClass) + (requiredClass.value ? " " + requiredClass.value : "")),
|
|
68
|
+
"label-width": designProperty.value.labelWidth,
|
|
69
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
70
|
+
}, {
|
|
71
|
+
label: Vue.withCtx(() => [
|
|
72
|
+
designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
73
|
+
key: 0,
|
|
74
|
+
ref_key: "titleRef",
|
|
75
|
+
ref: titleRef,
|
|
76
|
+
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle), ...Vue.unref(titleExceedStyle) })
|
|
77
|
+
}, [
|
|
78
|
+
designProperty.value.prefixType ? (Vue.openBlock(), Vue.createBlock(titleSuffixElement_vue_vue_type_script_setup_true_lang, {
|
|
79
|
+
key: 0,
|
|
80
|
+
pageContext: _ctx.pageContext,
|
|
81
|
+
property: designProperty.value
|
|
82
|
+
}, null, 8, ["pageContext", "property"])) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 1 }, [
|
|
83
|
+
Vue.createTextVNode(Vue.toDisplayString(Vue.unref(i18nUtil.$t)(designProperty.value.title)), 1)
|
|
84
|
+
], 64))
|
|
85
|
+
], 4)) : Vue.createCommentVNode("", true)
|
|
86
|
+
]),
|
|
87
|
+
default: Vue.withCtx(() => [
|
|
88
|
+
Vue.createVNode(_component_el_input, {
|
|
89
|
+
ref_key: "componentRef",
|
|
90
|
+
ref: componentRef,
|
|
91
|
+
disabled: designProperty.value.state === "disabled",
|
|
92
|
+
readonly: designProperty.value.state === "readonly",
|
|
93
|
+
size: designProperty.value.size,
|
|
94
|
+
clearable: designProperty.value.clearable,
|
|
95
|
+
placeholder: designProperty.value.placeholder,
|
|
96
|
+
modelValue: dynamicModelMethod.value,
|
|
97
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
98
|
+
rows: designProperty.value.rows ? designProperty.value.rows : 2,
|
|
99
|
+
maxlength: designProperty.value.maxlength,
|
|
100
|
+
minlength: designProperty.value.minlength,
|
|
101
|
+
"show-word-limit": designProperty.value.showInputNum,
|
|
102
|
+
type: "textarea",
|
|
103
|
+
onInput: _cache[1] || (_cache[1] = ($event) => Vue.unref(eventUtil.handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
|
|
104
|
+
onChange: _cache[2] || (_cache[2] = ($event) => Vue.unref(eventUtil.handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
105
|
+
onBlur: _cache[3] || (_cache[3] = ($event) => Vue.unref(eventUtil.handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
106
|
+
onFocus: _cache[4] || (_cache[4] = ($event) => Vue.unref(eventUtil.handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
107
|
+
onClick: _cache[5] || (_cache[5] = ($event) => Vue.unref(eventUtil.handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
108
|
+
}, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
}, 8, ["required", "class", "label-width", "style"])
|
|
112
|
+
]);
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PageContext, Component } from '../../utils/interfaces/page-design-types.js';
|
|
2
|
+
|
|
3
|
+
interface MyProps {
|
|
4
|
+
pageContext: PageContext;
|
|
5
|
+
configure: Component;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Vue = require("vue");
|
|
3
|
+
const errorRender_vue_vue_type_script_setup_true_lang = require("./error-render.vue.js");
|
|
4
|
+
const assemblysConfig = require("../../utils/assemblys-config.js");
|
|
5
|
+
const pageDesignTypes = require("../../utils/interfaces/page-design-types.js");
|
|
6
|
+
const globalRefs = require("../../utils/global-refs.js");
|
|
7
|
+
const pageInitUtil = require("../../utils/page-init-util.js");
|
|
8
|
+
const pageHelperUtil = require("../../utils/page-helper-util.js");
|
|
9
|
+
const commonUtil = require("../../utils/common-util.js");
|
|
10
|
+
const eventUtil = require("../../utils/events/event-util.js");
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
12
|
+
__name: "home-chart-render",
|
|
13
|
+
props: {
|
|
14
|
+
pageContext: {},
|
|
15
|
+
configure: {}
|
|
16
|
+
},
|
|
17
|
+
setup(__props) {
|
|
18
|
+
const props = __props;
|
|
19
|
+
if (props.configure.style == void 0) {
|
|
20
|
+
props.configure.style = {};
|
|
21
|
+
}
|
|
22
|
+
const permissionCodes = pageInitUtil.getPermissionCodes(props.configure, props.pageContext);
|
|
23
|
+
if (props.configure && props.configure.props && props.configure.props.base) {
|
|
24
|
+
props.configure.props.base.functionCode = permissionCodes;
|
|
25
|
+
}
|
|
26
|
+
let handleShowFlag = Vue.ref(true);
|
|
27
|
+
let showFlag = Vue.ref(true);
|
|
28
|
+
const dynamicComponent = Vue.ref({});
|
|
29
|
+
dynamicComponent.value = Vue.markRaw(assemblysConfig.getRuntimeComponentByName(props.configure.name));
|
|
30
|
+
const showCopy = Vue.ref(true);
|
|
31
|
+
if (dynamicComponent.value == null) {
|
|
32
|
+
dynamicComponent.value = errorRender_vue_vue_type_script_setup_true_lang;
|
|
33
|
+
showCopy.value = false;
|
|
34
|
+
}
|
|
35
|
+
const thisRef = Vue.ref(null);
|
|
36
|
+
const runtimeStyle = Vue.ref({});
|
|
37
|
+
const runtimeClass = Vue.ref("");
|
|
38
|
+
const propClassName = commonUtil.getPropClassName(props.configure);
|
|
39
|
+
if (propClassName) {
|
|
40
|
+
runtimeClass.value = propClassName;
|
|
41
|
+
}
|
|
42
|
+
const commonRuntime = props.configure.runtime && props.configure.runtime.common ? props.configure.runtime.common : {};
|
|
43
|
+
if (commonRuntime.class) {
|
|
44
|
+
runtimeClass.value += " " + commonRuntime.class;
|
|
45
|
+
}
|
|
46
|
+
if (commonRuntime.style) {
|
|
47
|
+
Object.assign(runtimeStyle.value, commonRuntime.style);
|
|
48
|
+
const pageDimensions = props.pageContext && props.pageContext.dimensions ? props.pageContext.dimensions : pageDesignTypes.PageDimensions.PC;
|
|
49
|
+
const sizeStyle = commonRuntime.style[pageDimensions + "_style"];
|
|
50
|
+
if (sizeStyle) {
|
|
51
|
+
Object.assign(runtimeStyle.value, sizeStyle);
|
|
52
|
+
}
|
|
53
|
+
const sizeClass = commonRuntime.style[pageDimensions + "_class"];
|
|
54
|
+
if (sizeClass) {
|
|
55
|
+
runtimeClass.value += " " + sizeClass;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function setComponentRef(el) {
|
|
59
|
+
thisRef.value = el;
|
|
60
|
+
if (el && !el.show) {
|
|
61
|
+
el.show = function() {
|
|
62
|
+
handleShowFlag.value = true;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
if (el && !el.hide) {
|
|
66
|
+
el.hide = function() {
|
|
67
|
+
handleShowFlag.value = false;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
if (el && !el.getConfigure) {
|
|
71
|
+
el.getConfigure = function() {
|
|
72
|
+
return props.configure;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
if (props.configure.uuid) {
|
|
76
|
+
globalRefs.addComponentRef(props.pageContext, props.configure.uuid, thisRef);
|
|
77
|
+
}
|
|
78
|
+
if (props.configure.code) {
|
|
79
|
+
globalRefs.addComponentRefByCode(props.pageContext, props.configure.code, thisRef);
|
|
80
|
+
} else if (props.configure.props && props.configure.props.base) {
|
|
81
|
+
const propsBase2 = props.configure.props.base;
|
|
82
|
+
if (propsBase2.prop) {
|
|
83
|
+
let propName = propsBase2.prop;
|
|
84
|
+
if (propName.startsWith("${")) {
|
|
85
|
+
propName = propName.substring(2, propName.length - 1);
|
|
86
|
+
}
|
|
87
|
+
if (propName.includes(".")) {
|
|
88
|
+
propName = propName.substring(propName.indexOf(".") + 1);
|
|
89
|
+
}
|
|
90
|
+
globalRefs.addComponentRefByCode(props.pageContext, propName, thisRef);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
const propsBase = props.configure.props ? props.configure.props.base : null;
|
|
94
|
+
if (propsBase && propsBase.prop) {
|
|
95
|
+
let propName = propsBase.prop;
|
|
96
|
+
propName = pageHelperUtil.getFormPropName(propName);
|
|
97
|
+
pageInitUtil.controlObjectRenderState(props.pageContext, propName);
|
|
98
|
+
}
|
|
99
|
+
setComponentHeight();
|
|
100
|
+
}
|
|
101
|
+
Vue.onMounted(() => {
|
|
102
|
+
dynamicallyCalculatePosition();
|
|
103
|
+
});
|
|
104
|
+
function setComponentHeight() {
|
|
105
|
+
if (!thisRef.value) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
const sizeConfig = pageHelperUtil.getSizeConfig(props.pageContext, props.configure);
|
|
109
|
+
if (props.configure.name !== "table" && sizeConfig && sizeConfig["isCalcHeight"]) {
|
|
110
|
+
Vue.nextTick(() => {
|
|
111
|
+
let thisRefDom = thisRef.value.$el;
|
|
112
|
+
if (!thisRefDom) {
|
|
113
|
+
thisRefDom = thisRef.value;
|
|
114
|
+
}
|
|
115
|
+
const parentNode = thisRefDom.parentNode;
|
|
116
|
+
if (!thisRefDom || !parentNode) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
const rect = thisRefDom.getBoundingClientRect();
|
|
120
|
+
let contentHeight = window.innerHeight - rect.y - 80;
|
|
121
|
+
let heightStyle = contentHeight + "";
|
|
122
|
+
if (commonUtil.isNumber(contentHeight)) {
|
|
123
|
+
heightStyle = contentHeight + "px";
|
|
124
|
+
}
|
|
125
|
+
runtimeStyle.value["height"] = heightStyle;
|
|
126
|
+
runtimeStyle.value["overflow-y"] = "auto";
|
|
127
|
+
runtimeStyle.value["overflow-x"] = "hidden";
|
|
128
|
+
if (!props.configure.sytle) {
|
|
129
|
+
props.configure.sytle = {};
|
|
130
|
+
}
|
|
131
|
+
props.configure.sytle._heightStyle = heightStyle;
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
const dynamicallyCalculatePosition = () => {
|
|
136
|
+
if (!thisRef.value) {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
let thisRefDom = thisRef.value.$el;
|
|
140
|
+
if (!thisRefDom) {
|
|
141
|
+
thisRefDom = thisRef.value;
|
|
142
|
+
}
|
|
143
|
+
const parentNode = thisRefDom.parentNode;
|
|
144
|
+
if (!thisRefDom || !parentNode) {
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
const thisProps = props.configure.props ? props.configure.props : {};
|
|
148
|
+
const thisStyle = props.configure.style ? props.configure.style : {};
|
|
149
|
+
const position = thisProps.position;
|
|
150
|
+
if (position == "top" || position == "bottom") ;
|
|
151
|
+
else if (thisStyle.position) ;
|
|
152
|
+
};
|
|
153
|
+
return (_ctx, _cache) => {
|
|
154
|
+
const _directive_permission = Vue.resolveDirective("permission");
|
|
155
|
+
return Vue.unref(eventUtil.isShowComponent)(_ctx.configure) ? Vue.withDirectives((Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(dynamicComponent.value), {
|
|
156
|
+
key: 0,
|
|
157
|
+
ref: setComponentRef,
|
|
158
|
+
style: Vue.normalizeStyle(runtimeStyle.value),
|
|
159
|
+
class: Vue.normalizeClass(runtimeClass.value),
|
|
160
|
+
configure: _ctx.configure,
|
|
161
|
+
pageContext: _ctx.pageContext
|
|
162
|
+
}, null, 8, ["style", "class", "configure", "pageContext"])), [
|
|
163
|
+
[Vue.vShow, Vue.unref(showFlag)],
|
|
164
|
+
[_directive_permission, { codes: Vue.unref(permissionCodes) ? Vue.unref(permissionCodes) : "true", systemCode: _ctx.pageContext.systemCode }]
|
|
165
|
+
]) : Vue.createCommentVNode("", true);
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
module.exports = _sfc_main;
|