super-page-runtime 2.0.42 → 2.0.43-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/events/standard-event.js +2 -34
- package/dist/es/components/runtime/utils/events/validator-util.js +9 -39
- package/dist/es/components/runtime/utils/page-helper-util.js +1 -2
- package/dist/es/components/runtime/utils/page-init-util.js +1 -2
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +13 -9
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +38 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +45 -26
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +11 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +11 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +28 -18
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +11 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +11 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +23 -9
- package/dist/es/components/runtime/views/super-page.vue.js +37 -42
- package/package.json +1 -1
- package/dist/lib/_virtual/AttributeMap.js +0 -4
- package/dist/lib/_virtual/Barcode.js +0 -4
- package/dist/lib/_virtual/CODE128.js +0 -4
- package/dist/lib/_virtual/CODE128A.js +0 -4
- package/dist/lib/_virtual/CODE128B.js +0 -4
- package/dist/lib/_virtual/CODE128C.js +0 -4
- package/dist/lib/_virtual/CODE128_AUTO.js +0 -4
- package/dist/lib/_virtual/Delta.js +0 -4
- package/dist/lib/_virtual/EAN.js +0 -4
- package/dist/lib/_virtual/EAN13.js +0 -4
- package/dist/lib/_virtual/EAN2.js +0 -4
- package/dist/lib/_virtual/EAN5.js +0 -4
- package/dist/lib/_virtual/EAN8.js +0 -4
- package/dist/lib/_virtual/ErrorHandler.js +0 -4
- package/dist/lib/_virtual/ITF.js +0 -4
- package/dist/lib/_virtual/ITF14.js +0 -4
- package/dist/lib/_virtual/JsBarcode.js +0 -6
- package/dist/lib/_virtual/MSI.js +0 -4
- package/dist/lib/_virtual/MSI10.js +0 -4
- package/dist/lib/_virtual/MSI1010.js +0 -4
- package/dist/lib/_virtual/MSI11.js +0 -4
- package/dist/lib/_virtual/MSI1110.js +0 -4
- package/dist/lib/_virtual/Op.js +0 -4
- package/dist/lib/_virtual/OpIterator.js +0 -4
- package/dist/lib/_virtual/SVGPathData.js +0 -4
- package/dist/lib/_virtual/SVGPathData2.js +0 -5
- package/dist/lib/_virtual/UPC.js +0 -4
- package/dist/lib/_virtual/UPCE.js +0 -4
- package/dist/lib/_virtual/__vite-browser-external.js +0 -3
- package/dist/lib/_virtual/_commonjsHelpers.js +0 -35
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/lib/_virtual/alignment-pattern.js +0 -4
- package/dist/lib/_virtual/arrayLikeToArray.js +0 -4
- package/dist/lib/_virtual/arrayWithHoles.js +0 -4
- package/dist/lib/_virtual/arrayWithoutHoles.js +0 -4
- package/dist/lib/_virtual/assertThisInitialized.js +0 -4
- package/dist/lib/_virtual/asyncToGenerator.js +0 -4
- package/dist/lib/_virtual/asyncToGenerator2.js +0 -6
- package/dist/lib/_virtual/auto.js +0 -4
- package/dist/lib/_virtual/backo2.js +0 -4
- package/dist/lib/_virtual/base64-arraybuffer.js +0 -4
- package/dist/lib/_virtual/binary.js +0 -4
- package/dist/lib/_virtual/browser.js +0 -4
- package/dist/lib/_virtual/browser2.js +0 -4
- package/dist/lib/_virtual/canvas.js +0 -4
- package/dist/lib/_virtual/canvas2.js +0 -4
- package/dist/lib/_virtual/checksums.js +0 -4
- package/dist/lib/_virtual/classCallCheck.js +0 -4
- package/dist/lib/_virtual/commons.js +0 -4
- package/dist/lib/_virtual/constants.js +0 -4
- package/dist/lib/_virtual/constants2.js +0 -4
- package/dist/lib/_virtual/constants3.js +0 -4
- package/dist/lib/_virtual/createClass.js +0 -4
- package/dist/lib/_virtual/dayjs.min.js +0 -4
- package/dist/lib/_virtual/decodePacket.browser.js +0 -4
- package/dist/lib/_virtual/defaults.js +0 -4
- package/dist/lib/_virtual/defineProperty.js +0 -4
- package/dist/lib/_virtual/defineProperty2.js +0 -6
- package/dist/lib/_virtual/dijkstra.js +0 -4
- package/dist/lib/_virtual/encodePacket.browser.js +0 -4
- package/dist/lib/_virtual/encoder.js +0 -4
- package/dist/lib/_virtual/error-correction-code.js +0 -4
- package/dist/lib/_virtual/error-correction-level.js +0 -4
- package/dist/lib/_virtual/es.array.concat.js +0 -4
- package/dist/lib/_virtual/es.array.every.js +0 -4
- package/dist/lib/_virtual/es.array.fill.js +0 -4
- package/dist/lib/_virtual/es.array.for-each.js +0 -4
- package/dist/lib/_virtual/es.array.from.js +0 -4
- package/dist/lib/_virtual/es.array.includes.js +0 -4
- package/dist/lib/_virtual/es.array.index-of.js +0 -4
- package/dist/lib/_virtual/es.array.index-of2.js +0 -3
- package/dist/lib/_virtual/es.array.iterator.js +0 -3
- package/dist/lib/_virtual/es.array.join.js +0 -4
- package/dist/lib/_virtual/es.array.map.js +0 -4
- package/dist/lib/_virtual/es.array.reduce.js +0 -4
- package/dist/lib/_virtual/es.array.reduce2.js +0 -3
- package/dist/lib/_virtual/es.array.reverse.js +0 -4
- package/dist/lib/_virtual/es.array.reverse2.js +0 -3
- package/dist/lib/_virtual/es.array.some.js +0 -4
- package/dist/lib/_virtual/es.function.name.js +0 -4
- package/dist/lib/_virtual/es.map.constructor.js +0 -4
- package/dist/lib/_virtual/es.map.js +0 -4
- package/dist/lib/_virtual/es.number.constructor.js +0 -4
- package/dist/lib/_virtual/es.object.to-string.js +0 -4
- package/dist/lib/_virtual/es.parse-float.js +0 -4
- package/dist/lib/_virtual/es.promise.all.js +0 -4
- package/dist/lib/_virtual/es.promise.catch.js +0 -4
- package/dist/lib/_virtual/es.promise.constructor.js +0 -4
- package/dist/lib/_virtual/es.promise.js +0 -4
- package/dist/lib/_virtual/es.promise.race.js +0 -4
- package/dist/lib/_virtual/es.promise.reject.js +0 -4
- package/dist/lib/_virtual/es.promise.resolve.js +0 -4
- package/dist/lib/_virtual/es.promise2.js +0 -3
- package/dist/lib/_virtual/es.reflect.apply.js +0 -4
- package/dist/lib/_virtual/es.reflect.delete-property.js +0 -4
- package/dist/lib/_virtual/es.reflect.get-prototype-of.js +0 -4
- package/dist/lib/_virtual/es.regexp.exec.js +0 -4
- package/dist/lib/_virtual/es.regexp.to-string.js +0 -4
- package/dist/lib/_virtual/es.regexp.to-string2.js +0 -3
- package/dist/lib/_virtual/es.string.ends-with.js +0 -4
- package/dist/lib/_virtual/es.string.ends-with2.js +0 -3
- package/dist/lib/_virtual/es.string.includes.js +0 -4
- package/dist/lib/_virtual/es.string.includes2.js +0 -3
- package/dist/lib/_virtual/es.string.iterator.js +0 -4
- package/dist/lib/_virtual/es.string.match.js +0 -4
- package/dist/lib/_virtual/es.string.match2.js +0 -3
- package/dist/lib/_virtual/es.string.replace.js +0 -4
- package/dist/lib/_virtual/es.string.replace2.js +0 -3
- package/dist/lib/_virtual/es.string.split.js +0 -4
- package/dist/lib/_virtual/es.string.split2.js +0 -3
- package/dist/lib/_virtual/es.string.starts-with.js +0 -4
- package/dist/lib/_virtual/es.string.starts-with2.js +0 -3
- package/dist/lib/_virtual/es.string.trim.js +0 -4
- package/dist/lib/_virtual/es.string.trim2.js +0 -3
- package/dist/lib/_virtual/exceptions.js +0 -4
- package/dist/lib/_virtual/finder-pattern.js +0 -4
- package/dist/lib/_virtual/fixOptions.js +0 -4
- package/dist/lib/_virtual/format-info.js +0 -4
- package/dist/lib/_virtual/galois-field.js +0 -4
- package/dist/lib/_virtual/get.js +0 -4
- package/dist/lib/_virtual/getOptionsFromElement.js +0 -4
- package/dist/lib/_virtual/getPrototypeOf.js +0 -4
- package/dist/lib/_virtual/getRenderProperties.js +0 -4
- package/dist/lib/_virtual/globalThis.browser.js +0 -4
- package/dist/lib/_virtual/has-cors.js +0 -4
- package/dist/lib/_virtual/html2canvas.js +0 -4
- package/dist/lib/_virtual/index.js +0 -4
- package/dist/lib/_virtual/index10.js +0 -4
- package/dist/lib/_virtual/index11.js +0 -4
- package/dist/lib/_virtual/index12.js +0 -4
- package/dist/lib/_virtual/index13.js +0 -4
- package/dist/lib/_virtual/index14.js +0 -4
- package/dist/lib/_virtual/index15.js +0 -4
- package/dist/lib/_virtual/index16.js +0 -4
- package/dist/lib/_virtual/index17.js +0 -4
- package/dist/lib/_virtual/index18.js +0 -4
- package/dist/lib/_virtual/index19.js +0 -4
- package/dist/lib/_virtual/index2.js +0 -4
- package/dist/lib/_virtual/index20.js +0 -4
- package/dist/lib/_virtual/index21.js +0 -4
- package/dist/lib/_virtual/index22.js +0 -4
- package/dist/lib/_virtual/index23.js +0 -4
- package/dist/lib/_virtual/index3.js +0 -4
- package/dist/lib/_virtual/index4.js +0 -5
- package/dist/lib/_virtual/index5.js +0 -4
- package/dist/lib/_virtual/index6.js +0 -4
- package/dist/lib/_virtual/index7.js +0 -6
- package/dist/lib/_virtual/index8.js +0 -6
- package/dist/lib/_virtual/index9.js +0 -4
- package/dist/lib/_virtual/inherits.js +0 -4
- package/dist/lib/_virtual/internal-metadata.js +0 -4
- package/dist/lib/_virtual/is-binary.js +0 -4
- package/dist/lib/_virtual/iterableToArray.js +0 -4
- package/dist/lib/_virtual/iterableToArrayLimit.js +0 -4
- package/dist/lib/_virtual/jquery.js +0 -4
- package/dist/lib/_virtual/jspdf.es.min.js +0 -5
- package/dist/lib/_virtual/linearizeEncodings.js +0 -4
- package/dist/lib/_virtual/make-built-in.js +0 -4
- package/dist/lib/_virtual/manager.js +0 -4
- package/dist/lib/_virtual/mask-pattern.js +0 -4
- package/dist/lib/_virtual/merge.js +0 -4
- package/dist/lib/_virtual/mode.js +0 -4
- package/dist/lib/_virtual/new-promise-capability.js +0 -4
- package/dist/lib/_virtual/nonIterableRest.js +0 -4
- package/dist/lib/_virtual/nonIterableSpread.js +0 -4
- package/dist/lib/_virtual/object-define-properties.js +0 -4
- package/dist/lib/_virtual/object-define-property.js +0 -4
- package/dist/lib/_virtual/object-get-own-property-descriptor.js +0 -4
- package/dist/lib/_virtual/object-get-own-property-names-external.js +0 -4
- package/dist/lib/_virtual/object-get-own-property-names.js +0 -4
- package/dist/lib/_virtual/object-get-own-property-symbols.js +0 -4
- package/dist/lib/_virtual/object-property-is-enumerable.js +0 -4
- package/dist/lib/_virtual/object.js +0 -4
- package/dist/lib/_virtual/on.js +0 -4
- package/dist/lib/_virtual/optionsFromStrings.js +0 -4
- package/dist/lib/_virtual/parseqs.js +0 -4
- package/dist/lib/_virtual/parseuri.js +0 -4
- package/dist/lib/_virtual/performance-now.js +0 -4
- package/dist/lib/_virtual/polling.js +0 -4
- package/dist/lib/_virtual/polynomial.js +0 -4
- package/dist/lib/_virtual/possibleConstructorReturn.js +0 -4
- package/dist/lib/_virtual/qrcode.js +0 -4
- package/dist/lib/_virtual/regeneratorRuntime.js +0 -4
- package/dist/lib/_virtual/regex.js +0 -4
- package/dist/lib/_virtual/segments.js +0 -4
- package/dist/lib/_virtual/setPrototypeOf.js +0 -4
- package/dist/lib/_virtual/shared-store.js +0 -4
- package/dist/lib/_virtual/shared.js +0 -4
- package/dist/lib/_virtual/slicedToArray.js +0 -4
- package/dist/lib/_virtual/socket.js +0 -4
- package/dist/lib/_virtual/socket2.js +0 -4
- package/dist/lib/_virtual/stackblur-es.js +0 -5
- package/dist/lib/_virtual/superPropBase.js +0 -4
- package/dist/lib/_virtual/svg-tag.js +0 -4
- package/dist/lib/_virtual/svg.js +0 -4
- package/dist/lib/_virtual/toConsumableArray.js +0 -4
- package/dist/lib/_virtual/toPrimitive.js +0 -4
- package/dist/lib/_virtual/toPropertyKey.js +0 -4
- package/dist/lib/_virtual/transport.js +0 -4
- package/dist/lib/_virtual/typeof.js +0 -4
- package/dist/lib/_virtual/unsupportedIterableToArray.js +0 -4
- package/dist/lib/_virtual/url.js +0 -4
- package/dist/lib/_virtual/util.js +0 -4
- package/dist/lib/_virtual/utils.js +0 -4
- package/dist/lib/_virtual/utils2.js +0 -4
- package/dist/lib/_virtual/version-check.js +0 -4
- package/dist/lib/_virtual/version.js +0 -4
- package/dist/lib/_virtual/vue-plugin-hiprint.js +0 -4
- package/dist/lib/_virtual/web.dom-collections.for-each.js +0 -4
- package/dist/lib/_virtual/web.dom-collections.iterator.js +0 -4
- package/dist/lib/_virtual/web.dom-collections.iterator2.js +0 -3
- package/dist/lib/_virtual/websocket-constructor.browser.js +0 -4
- package/dist/lib/_virtual/websocket.js +0 -4
- package/dist/lib/_virtual/webtransport.js +0 -4
- package/dist/lib/_virtual/xmlhttprequest.browser.js +0 -4
- package/dist/lib/_virtual/yeast.js +0 -4
- package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme1.js +0 -7
- package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme2.js +0 -7
- package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme3.js +0 -7
- package/dist/lib/components/runtime/index.d.ts +0 -4
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -18
- package/dist/lib/components/runtime/utils/api/api-util.js +0 -298
- package/dist/lib/components/runtime/utils/api/page-expose-util.d.ts +0 -1
- package/dist/lib/components/runtime/utils/api/page-expose-util.js +0 -206
- package/dist/lib/components/runtime/utils/assemblys-config.js +0 -295
- package/dist/lib/components/runtime/utils/barcode-util.d.ts +0 -8
- package/dist/lib/components/runtime/utils/barcode-util.js +0 -36
- package/dist/lib/components/runtime/utils/charts/chart-columnline-util.js +0 -279
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +0 -74
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +0 -118
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +0 -100
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +0 -74
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -51
- package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -302
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -17
- package/dist/lib/components/runtime/utils/common-util.js +0 -108
- package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
- package/dist/lib/components/runtime/utils/eventBus.js +0 -10
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -68
- package/dist/lib/components/runtime/utils/events/event-util.js +0 -616
- package/dist/lib/components/runtime/utils/events/print-label.d.ts +0 -5
- package/dist/lib/components/runtime/utils/events/print-label.js +0 -153
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -67
- package/dist/lib/components/runtime/utils/events/standard-event.js +0 -1817
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -12
- package/dist/lib/components/runtime/utils/events/validator-util.js +0 -416
- package/dist/lib/components/runtime/utils/form/date-shortcuts.d.ts +0 -7
- package/dist/lib/components/runtime/utils/form/date-shortcuts.js +0 -96
- package/dist/lib/components/runtime/utils/form/scan-util.js +0 -194
- package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
- package/dist/lib/components/runtime/utils/global-refs.js +0 -77
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -224
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +0 -9
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -134
- package/dist/lib/components/runtime/utils/page-helper-util.js +0 -668
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -40
- package/dist/lib/components/runtime/utils/page-init-util.js +0 -266
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
- package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
- package/dist/lib/components/runtime/utils/store-util.js +0 -17
- package/dist/lib/components/runtime/utils/store.d.ts +0 -2
- package/dist/lib/components/runtime/utils/store.js +0 -3
- package/dist/lib/components/runtime/utils/table-utils.js +0 -16
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -115
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +0 -95
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -144
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -106
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -141
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -115
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -117
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -147
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -70
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -50
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -109
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +0 -183
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -673
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -455
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -120
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +0 -65
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -149
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -72
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -42
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -135
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -67
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -159
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -130
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -78
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -160
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -236
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -204
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +0 -41
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -65
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -66
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -71
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +0 -154
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +0 -39
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +0 -39
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -59
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -36
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +0 -79
- package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -99
- package/dist/lib/components/runtime/views/super-page.vue.js +0 -525
- package/dist/lib/components/runtime/views/super-page.vue2.js +0 -3
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/i18n/langs/cn.js +0 -53
- package/dist/lib/i18n/langs/en.js +0 -53
- package/dist/lib/index.d.ts +0 -13
- package/dist/lib/index.js +0 -22
|
@@ -1,673 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const Vue = require("vue");
|
|
3
|
-
require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.28_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js");
|
|
4
|
-
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
5
|
-
const commonUtil = require("../../../../utils/common-util.js");
|
|
6
|
-
const standardEvent = require("../../../../utils/events/standard-event.js");
|
|
7
|
-
const commonUtil$1 = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.28_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/common-util.js");
|
|
8
|
-
const tableUtils = require("../../../../utils/table-utils.js");
|
|
9
|
-
const eventBus = require("../../../../utils/eventBus.js");
|
|
10
|
-
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
11
|
-
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
12
|
-
__name: "main-table-runtime",
|
|
13
|
-
props: {
|
|
14
|
-
pageContext: {},
|
|
15
|
-
configure: {}
|
|
16
|
-
},
|
|
17
|
-
setup(__props, { expose: __expose }) {
|
|
18
|
-
const props = __props;
|
|
19
|
-
const pageContext = props.pageContext;
|
|
20
|
-
const configure = props.configure;
|
|
21
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
22
|
-
const runtimeStyle = runtimeInfo.style;
|
|
23
|
-
const runtimeClass = runtimeInfo.class;
|
|
24
|
-
const systemCode = pageContext.systemCode;
|
|
25
|
-
const backendUrl = pageContext.backendUrl;
|
|
26
|
-
const tableName = configure.props && configure.props.dataOrigin && configure.props.dataOrigin.tableName;
|
|
27
|
-
let baseURL = pageContext.backendUrl;
|
|
28
|
-
if (!baseURL) {
|
|
29
|
-
baseURL = window["$vueApp"].config.globalProperties.baseURL;
|
|
30
|
-
}
|
|
31
|
-
const operationButtonObj = Vue.ref({});
|
|
32
|
-
const listOptions = Vue.ref({});
|
|
33
|
-
listOptions.value = getOptions();
|
|
34
|
-
const gridRef = Vue.ref(null);
|
|
35
|
-
const urlToListData = getUrlToListData();
|
|
36
|
-
const listCode = commonUtil.getListCode(pageContext.code, pageContext.version, configure.uuid);
|
|
37
|
-
const myPageCode = pageContext.code;
|
|
38
|
-
const eventPageInfo = myPageCode + "_" + listCode;
|
|
39
|
-
const selections = Vue.ref([]);
|
|
40
|
-
const listToolbarFormData = pageContext.entity.page;
|
|
41
|
-
const searchFormInfo = Vue.ref({ data: [] });
|
|
42
|
-
const superGridItems = pageContext.superGridItems;
|
|
43
|
-
const superGridSetting = superGridItems ? superGridItems[configure.uuid] : null;
|
|
44
|
-
console.log("superGridSetting1111===", superGridItems, superGridSetting);
|
|
45
|
-
Vue.onMounted(() => {
|
|
46
|
-
window.addEventListener("message", recieveMessage);
|
|
47
|
-
eventBus.$on(
|
|
48
|
-
eventPageInfo + "-close-component-page-dialog",
|
|
49
|
-
function({ jumpInfo, popEntity, popPageCode }) {
|
|
50
|
-
gridRef.value.closePageDialog({
|
|
51
|
-
entity: popEntity,
|
|
52
|
-
pageCode: popPageCode,
|
|
53
|
-
jumpInfo
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
eventBus.$on(eventPageInfo + "_close-dialog-get-entity", () => {
|
|
58
|
-
eventBus.$emit(eventPageInfo + "_close-super-dialog");
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
Vue.watch(
|
|
62
|
-
() => props.pageContext.searchFormData,
|
|
63
|
-
(searchFormData) => {
|
|
64
|
-
searchFormInfo.value.data = searchFormData;
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
Vue.watch(
|
|
68
|
-
() => props.pageContext.entity.data,
|
|
69
|
-
(searchFormData) => {
|
|
70
|
-
searchGridData(props.pageContext.entity.data);
|
|
71
|
-
}
|
|
72
|
-
);
|
|
73
|
-
Vue.watch(
|
|
74
|
-
() => props.pageContext.entity.page,
|
|
75
|
-
(searchFormData) => {
|
|
76
|
-
searchGridData(props.pageContext.entity.page);
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
Vue.onUnmounted(() => {
|
|
80
|
-
eventBus.$off(eventPageInfo + "-close-component-page-dialog");
|
|
81
|
-
eventBus.$off(eventPageInfo + "_close-dialog-get-entity");
|
|
82
|
-
});
|
|
83
|
-
function getUrlToListData() {
|
|
84
|
-
let urlToListData2 = baseURL + "/dsc/commons/list";
|
|
85
|
-
if (urlToListData2) {
|
|
86
|
-
urlToListData2 = commonUtil.getRealRestApiPath(urlToListData2, systemCode, backendUrl);
|
|
87
|
-
}
|
|
88
|
-
return urlToListData2;
|
|
89
|
-
}
|
|
90
|
-
function getOptions() {
|
|
91
|
-
const systemCode2 = pageContext.systemCode;
|
|
92
|
-
const permissionPrefix = pageContext.code;
|
|
93
|
-
let initSearchForm = configure.props && configure.props.dataOrigin && configure.props.dataOrigin.sqlFilterCondition !== "[]" ? configure.props.dataOrigin.sqlFilterCondition : null;
|
|
94
|
-
if (typeof initSearchForm === "undefined" || initSearchForm === null) {
|
|
95
|
-
initSearchForm = [];
|
|
96
|
-
}
|
|
97
|
-
const options = {
|
|
98
|
-
isSql: true,
|
|
99
|
-
extraParam: {
|
|
100
|
-
beanName: pageContext.beanName,
|
|
101
|
-
functionCode: permissionPrefix + ".list",
|
|
102
|
-
tableName,
|
|
103
|
-
systemCode: systemCode2,
|
|
104
|
-
// 系统编码传给列表数据后台请求
|
|
105
|
-
pageCode: pageContext.code,
|
|
106
|
-
pageVersion: pageContext.version
|
|
107
|
-
},
|
|
108
|
-
initSearchForm,
|
|
109
|
-
lineEditOptions: {
|
|
110
|
-
aftersaveIsCreateRow: false,
|
|
111
|
-
autoSave: false,
|
|
112
|
-
enter: enterSave,
|
|
113
|
-
esc: escRestorRow
|
|
114
|
-
},
|
|
115
|
-
indexContinuous: configure.props && configure.props.otherSettings ? configure.props.otherSettings.serialNumberContinuous : false,
|
|
116
|
-
initSearch: configure.props && configure.props.base.initializationQuery ? configure.props.base.initializationQuery : true,
|
|
117
|
-
// 初始化时是否查询,默认是查询
|
|
118
|
-
resizeHeight: resizeListHeight,
|
|
119
|
-
pageCode: pageContext.code,
|
|
120
|
-
pageVersion: pageContext.version,
|
|
121
|
-
// pageHeight: pageHeight, // 页面的高度 //TODO: pageHeight如何获得,页面高度,计算列表高度应该会用
|
|
122
|
-
additionalParamMap: standardEvent.getAdditionalParamMap(pageContext),
|
|
123
|
-
// 将路由参数传给列表组件
|
|
124
|
-
showOverflowTooltip: !!(configure.props && configure.props.otherSettings && (configure.props.otherSettings.isBreakLine === void 0 || configure.props.otherSettings.isBreakLine === false)),
|
|
125
|
-
// 单元格内容是否换行显示
|
|
126
|
-
isEnableEnterEvent: configure.props && configure.props.otherSettings && configure.props.otherSettings.isEnableEnterEvent,
|
|
127
|
-
// 是否启用回车事件
|
|
128
|
-
isWithDataPermission: configure.props && configure.props.otherSettings && configure.props.otherSettings.isWithDataPermission ? configure.props.otherSettings.isWithDataPermission : false,
|
|
129
|
-
pageDevMode: false,
|
|
130
|
-
isWorkflowEntity: pageContext.workflowCode ? true : false,
|
|
131
|
-
tableClass: runtimeClass,
|
|
132
|
-
tableStyle: runtimeStyle,
|
|
133
|
-
pageContext,
|
|
134
|
-
configureObj: configure
|
|
135
|
-
};
|
|
136
|
-
setOperationButtons(options);
|
|
137
|
-
setSortInfo(options);
|
|
138
|
-
myGetDataTypeMap();
|
|
139
|
-
setTreeSetting(options);
|
|
140
|
-
setGridEvents(options);
|
|
141
|
-
return options;
|
|
142
|
-
}
|
|
143
|
-
function setSortInfo(options) {
|
|
144
|
-
if (configure.props && configure.props.dataOrigin && configure.props.dataOrigin.sortFields) {
|
|
145
|
-
options.initSortInfo = [];
|
|
146
|
-
this.colSetting.options.sortFields.forEach((item) => {
|
|
147
|
-
const sortInfo = {
|
|
148
|
-
order: item.sortOrder
|
|
149
|
-
};
|
|
150
|
-
sortInfo["prop"] = item.propDbName;
|
|
151
|
-
options.initSortInfo.push(sortInfo);
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
function myGetDataTypeMap(options) {
|
|
156
|
-
if (!backendUrl && !tableName) {
|
|
157
|
-
return;
|
|
158
|
-
}
|
|
159
|
-
tableUtils.getDataTypeMapRequest(backendUrl, tableName).then((result) => {
|
|
160
|
-
if (!pageContext["dataTypeMaps"]) {
|
|
161
|
-
pageContext["dataTypeMaps"] = {};
|
|
162
|
-
}
|
|
163
|
-
pageContext["dataTypeMaps"][tableName] = result["dataTypeMap"];
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
function setOperationButtons(options) {
|
|
167
|
-
const showOperation = configure.props && configure.props.base ? configure.props.base.showOperation : false;
|
|
168
|
-
const operationButtonSettings = configure.btnList;
|
|
169
|
-
console.log("configure.btnList===", configure.btnList, "configure====", configure);
|
|
170
|
-
if (showOperation && operationButtonSettings) {
|
|
171
|
-
const operationButtons = [];
|
|
172
|
-
operationButtonSettings.forEach((buttonConfigure) => {
|
|
173
|
-
const myButtonSet = {};
|
|
174
|
-
const myButtonProps = Object.assign({}, buttonConfigure.props.base);
|
|
175
|
-
myButtonProps.elementType = "el-button";
|
|
176
|
-
if (buttonConfigure.isPermission === void 0 || buttonConfigure.isPermission + "" === "true") {
|
|
177
|
-
const functionCodes = pageInitUtil.getPermissionCodes(buttonConfigure, props.pageContext);
|
|
178
|
-
if (functionCodes) {
|
|
179
|
-
myButtonProps.permission = functionCodes;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
myButtonProps.label = myButtonProps.title;
|
|
183
|
-
myButtonSet["props"] = myButtonProps;
|
|
184
|
-
myButtonSet["onClick"] = getOperationButtonClickEvent(buttonConfigure);
|
|
185
|
-
operationButtons.push(myButtonSet);
|
|
186
|
-
});
|
|
187
|
-
if (!options.operations) {
|
|
188
|
-
options.operations = {};
|
|
189
|
-
}
|
|
190
|
-
options.operations.operation = operationButtons;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
function setTreeSetting(options) {
|
|
194
|
-
const dataOrigin = configure.props ? configure.props.dataOrigin : {};
|
|
195
|
-
if (dataOrigin.treeTable) {
|
|
196
|
-
let parentPropDbName;
|
|
197
|
-
const parentPropInfo = dataOrigin.rowKey;
|
|
198
|
-
if (parentPropInfo && parentPropInfo.indexOf("~~") > 0) {
|
|
199
|
-
parentPropDbName = parentPropInfo.substring(parentPropInfo.indexOf("~~") + 2);
|
|
200
|
-
} else {
|
|
201
|
-
parentPropDbName = parentPropInfo;
|
|
202
|
-
}
|
|
203
|
-
options.parentProp = parentPropDbName;
|
|
204
|
-
if (options.parentProp) {
|
|
205
|
-
const isLazy = dataOrigin.lazy;
|
|
206
|
-
const defaultExpandAll = dataOrigin.defaultExpandAll;
|
|
207
|
-
if (isLazy === void 0 || isLazy === null) {
|
|
208
|
-
options.lazy = true;
|
|
209
|
-
} else {
|
|
210
|
-
options.lazy = isLazy;
|
|
211
|
-
}
|
|
212
|
-
if (defaultExpandAll === void 0 || defaultExpandAll === null) {
|
|
213
|
-
options.defaultExpandAll = false;
|
|
214
|
-
} else {
|
|
215
|
-
options.defaultExpandAll = defaultExpandAll;
|
|
216
|
-
}
|
|
217
|
-
const listViewTreeTableSetting = {
|
|
218
|
-
parentProp: parentPropDbName,
|
|
219
|
-
lazy: options.lazy,
|
|
220
|
-
defaultExpandAll: options.defaultExpandAll
|
|
221
|
-
};
|
|
222
|
-
options.extraParam.listViewTreeSetting = JSON.stringify(listViewTreeTableSetting);
|
|
223
|
-
options.subRowUrl = baseURL + "/dsc/commons/list-subs";
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
function setGridEvents(options) {
|
|
228
|
-
const tableEvents = configure.runtime && configure.runtime.events ? configure.runtime.events : [];
|
|
229
|
-
eventUtil.setTableEvents(options, tableEvents, pageContext, configure);
|
|
230
|
-
const customEvents = pageContext.customEvents;
|
|
231
|
-
if (customEvents) {
|
|
232
|
-
options.eventCallBack = customEvents;
|
|
233
|
-
const rowStyleEvent = eventUtil.getEventFuncByType(pageContext, tableEvents, "rowStyle");
|
|
234
|
-
if (rowStyleEvent) {
|
|
235
|
-
options.rowStyleRender = rowStyleEvent;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
function enterSave({ rowIndex, column, row, orgRow }) {
|
|
240
|
-
saveRow(null, null, row, column, rowIndex);
|
|
241
|
-
}
|
|
242
|
-
function saveRow(originalValue, formatValue, row, column, rowIndex) {
|
|
243
|
-
const buttonConfigure = operationButtonObj.value["lineEditSave"];
|
|
244
|
-
const tableConfigure = configure;
|
|
245
|
-
buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
|
|
246
|
-
listOptions.value["lineEditOptions"]["beforeSave"] = beforeSaveRow;
|
|
247
|
-
pageContext.editData = row;
|
|
248
|
-
eventUtil.canExecuteButton({ pageContext, configureObj: buttonConfigure }).then((result) => {
|
|
249
|
-
if (result["canExecute"] === true) {
|
|
250
|
-
listOptions.value["lineEditOptions"]["saveRow"] = saveLineEditRow;
|
|
251
|
-
gridRef.value.saveRow(rowIndex, listCode).then(() => {
|
|
252
|
-
const otherParams = {
|
|
253
|
-
originalValue,
|
|
254
|
-
formatValue,
|
|
255
|
-
row,
|
|
256
|
-
column,
|
|
257
|
-
rowIndex
|
|
258
|
-
};
|
|
259
|
-
eventUtil.doAfterClickEvent(pageContext, buttonConfigure, otherParams);
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
}).finally(() => {
|
|
263
|
-
pageContext.editData = null;
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
function getOperationButtonClickEvent(buttonConfigure) {
|
|
267
|
-
let onClick;
|
|
268
|
-
const eventName = eventUtil.getEventNameByType(buttonConfigure.events, "click");
|
|
269
|
-
if (eventName) {
|
|
270
|
-
operationButtonObj.value[eventName] = buttonConfigure;
|
|
271
|
-
if (eventName === "lineEditSave") {
|
|
272
|
-
onClick = saveRow;
|
|
273
|
-
} else if (eventName === "restoreEdit") {
|
|
274
|
-
onClick = restoreRow;
|
|
275
|
-
} else if (eventName === "lineEditUpdate") {
|
|
276
|
-
onClick = editRow;
|
|
277
|
-
} else if (eventName === "lineEditDelete") {
|
|
278
|
-
onClick = deleteRow;
|
|
279
|
-
} else {
|
|
280
|
-
onClick = customButtonClick;
|
|
281
|
-
}
|
|
282
|
-
if (!onClick) {
|
|
283
|
-
onClick = function() {
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
return onClick;
|
|
288
|
-
}
|
|
289
|
-
function beforeSaveRow({
|
|
290
|
-
row,
|
|
291
|
-
columns,
|
|
292
|
-
additionalParamMap
|
|
293
|
-
}) {
|
|
294
|
-
const buttonConfigure = operationButtonObj.value["lineEditSave"];
|
|
295
|
-
const tableConfigure = configure;
|
|
296
|
-
buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
|
|
297
|
-
const otherParams = {
|
|
298
|
-
row,
|
|
299
|
-
columns
|
|
300
|
-
};
|
|
301
|
-
return eventUtil.doBeforeClickEvent(pageContext, buttonConfigure, otherParams);
|
|
302
|
-
}
|
|
303
|
-
function saveLineEditRow({
|
|
304
|
-
row,
|
|
305
|
-
columns,
|
|
306
|
-
dataTypeMap,
|
|
307
|
-
dynamicColumnInfo,
|
|
308
|
-
additionalParamMap,
|
|
309
|
-
mainDefaultValueColumns
|
|
310
|
-
}) {
|
|
311
|
-
const buttonConfigure = operationButtonObj.value["lineEditSave"];
|
|
312
|
-
const tableConfigure = configure;
|
|
313
|
-
buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
|
|
314
|
-
return new Promise((resolve, reject) => {
|
|
315
|
-
standardEvent.getSaveFormRequestWithRow(
|
|
316
|
-
pageContext,
|
|
317
|
-
buttonConfigure,
|
|
318
|
-
"/dsc/commons",
|
|
319
|
-
false,
|
|
320
|
-
mainDefaultValueColumns,
|
|
321
|
-
dynamicColumnInfo,
|
|
322
|
-
row
|
|
323
|
-
).then((commonEntity) => {
|
|
324
|
-
if (commonEntity) {
|
|
325
|
-
resolve(commonEntity.entity);
|
|
326
|
-
} else {
|
|
327
|
-
resolve({});
|
|
328
|
-
}
|
|
329
|
-
}).catch((error) => {
|
|
330
|
-
reject(error);
|
|
331
|
-
});
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
function escRestorRow({ rowIndex, column, row, orgRow }) {
|
|
335
|
-
restoreRow(null, null, row, column, rowIndex);
|
|
336
|
-
}
|
|
337
|
-
function restoreRow(originalValue, formatValue, row, column, rowIndex) {
|
|
338
|
-
const buttonConfigure = operationButtonObj.value["restoreEdit"];
|
|
339
|
-
const tableConfigure = configure;
|
|
340
|
-
buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
|
|
341
|
-
const otherParams = {
|
|
342
|
-
originalValue,
|
|
343
|
-
formatValue,
|
|
344
|
-
row,
|
|
345
|
-
column,
|
|
346
|
-
rowIndex
|
|
347
|
-
};
|
|
348
|
-
const beforeClickResult = eventUtil.doBeforeClickEvent(pageContext, buttonConfigure, otherParams);
|
|
349
|
-
if (!beforeClickResult) {
|
|
350
|
-
return;
|
|
351
|
-
}
|
|
352
|
-
if (commonUtil$1.isPromise(beforeClickResult)) {
|
|
353
|
-
beforeClickResult.then((result) => {
|
|
354
|
-
if (result) {
|
|
355
|
-
gridRef.value.restoreRow(rowIndex, listCode);
|
|
356
|
-
}
|
|
357
|
-
});
|
|
358
|
-
} else {
|
|
359
|
-
gridRef.value.restoreRow(rowIndex, listCode);
|
|
360
|
-
}
|
|
361
|
-
const afterOtherParams = {
|
|
362
|
-
originalValue,
|
|
363
|
-
formatValue,
|
|
364
|
-
row,
|
|
365
|
-
column,
|
|
366
|
-
rowIndex
|
|
367
|
-
};
|
|
368
|
-
eventUtil.doAfterClickEvent(pageContext, configure, afterOtherParams);
|
|
369
|
-
}
|
|
370
|
-
function editRow(originalValue, formatValue, row, column, rowIndex) {
|
|
371
|
-
const buttonConfigure = operationButtonObj.value["lineEditUpdate"];
|
|
372
|
-
const tableConfigure = configure;
|
|
373
|
-
buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
|
|
374
|
-
const otherParams = {
|
|
375
|
-
originalValue,
|
|
376
|
-
formatValue,
|
|
377
|
-
row,
|
|
378
|
-
column,
|
|
379
|
-
rowIndex
|
|
380
|
-
};
|
|
381
|
-
const beforeClickResult = eventUtil.doBeforeClickEvent(pageContext, buttonConfigure, otherParams);
|
|
382
|
-
if (!beforeClickResult) {
|
|
383
|
-
return;
|
|
384
|
-
}
|
|
385
|
-
if (commonUtil$1.isPromise(beforeClickResult)) {
|
|
386
|
-
beforeClickResult.then((result) => {
|
|
387
|
-
if (result) {
|
|
388
|
-
editRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure);
|
|
389
|
-
}
|
|
390
|
-
});
|
|
391
|
-
} else {
|
|
392
|
-
editRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
function editRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure) {
|
|
396
|
-
pageContext.editData = row;
|
|
397
|
-
eventUtil.canExecuteButton({ pageContext, configureObj: buttonConfigure }).then((result) => {
|
|
398
|
-
if (result["canExecute"] === true) {
|
|
399
|
-
gridRef.value.editRow(rowIndex, listCode);
|
|
400
|
-
const afterOtherParams = {
|
|
401
|
-
originalValue,
|
|
402
|
-
formatValue,
|
|
403
|
-
row,
|
|
404
|
-
column,
|
|
405
|
-
rowIndex
|
|
406
|
-
};
|
|
407
|
-
eventUtil.doAfterClickEvent(pageContext, configure, afterOtherParams);
|
|
408
|
-
}
|
|
409
|
-
}).finally(() => {
|
|
410
|
-
pageContext.editData = null;
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
function deleteRow(originalValue, formatValue, row, column, rowIndex) {
|
|
414
|
-
const buttonConfigure = operationButtonObj.value["lineEditDelete"];
|
|
415
|
-
const tableConfigure = configure;
|
|
416
|
-
buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
|
|
417
|
-
const otherParams = {
|
|
418
|
-
originalValue,
|
|
419
|
-
formatValue,
|
|
420
|
-
row,
|
|
421
|
-
column,
|
|
422
|
-
rowIndex
|
|
423
|
-
};
|
|
424
|
-
const beforeClickResult = eventUtil.doBeforeClickEvent(pageContext, buttonConfigure, otherParams);
|
|
425
|
-
if (!beforeClickResult) {
|
|
426
|
-
return;
|
|
427
|
-
}
|
|
428
|
-
if (commonUtil$1.isPromise(beforeClickResult)) {
|
|
429
|
-
beforeClickResult.then((result) => {
|
|
430
|
-
if (result) {
|
|
431
|
-
deleteRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure);
|
|
432
|
-
}
|
|
433
|
-
});
|
|
434
|
-
} else {
|
|
435
|
-
deleteRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure);
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
function deleteRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure) {
|
|
439
|
-
if (row.id || row.ID) {
|
|
440
|
-
pageContext.editData = row;
|
|
441
|
-
eventUtil.canExecuteButton({ pageContext, configureObj: buttonConfigure }).then((result) => {
|
|
442
|
-
if (result["canExecute"] === true) {
|
|
443
|
-
const ids = [];
|
|
444
|
-
if (row.id) {
|
|
445
|
-
ids.push(row.id);
|
|
446
|
-
} else {
|
|
447
|
-
ids.push(row.ID);
|
|
448
|
-
}
|
|
449
|
-
standardEvent.standardEvents.delete({
|
|
450
|
-
pageContext,
|
|
451
|
-
configureObj: buttonConfigure,
|
|
452
|
-
ids
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
|
-
}).finally(() => {
|
|
456
|
-
pageContext.editData = null;
|
|
457
|
-
});
|
|
458
|
-
} else {
|
|
459
|
-
restoreRow(originalValue, formatValue, row, column, rowIndex);
|
|
460
|
-
const afterOtherParams = {
|
|
461
|
-
originalValue,
|
|
462
|
-
formatValue,
|
|
463
|
-
row,
|
|
464
|
-
column,
|
|
465
|
-
rowIndex
|
|
466
|
-
};
|
|
467
|
-
eventUtil.doAfterClickEvent(pageContext, configure, afterOtherParams);
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
function searchGridData(data) {
|
|
471
|
-
if (!pageContext["dataTypeMaps"] || !pageContext["dataTypeMaps"][tableName]) {
|
|
472
|
-
return;
|
|
473
|
-
}
|
|
474
|
-
const dataTypeObj = pageContext["dataTypeMaps"][tableName];
|
|
475
|
-
let toolbarFieldParam = [];
|
|
476
|
-
if (data) {
|
|
477
|
-
for (var key in data) {
|
|
478
|
-
const value = data[key];
|
|
479
|
-
if (value !== null && value !== void 0 && value !== "") {
|
|
480
|
-
if (value instanceof Array) {
|
|
481
|
-
if (value.length > 0) {
|
|
482
|
-
const multipleFieldParam = [];
|
|
483
|
-
for (var i = 0; i < value.length; i++) {
|
|
484
|
-
const fieldParam = {};
|
|
485
|
-
if (i === 0) {
|
|
486
|
-
fieldParam["leftBracket"] = "((";
|
|
487
|
-
} else {
|
|
488
|
-
fieldParam["leftBracket"] = "(";
|
|
489
|
-
}
|
|
490
|
-
fieldParam["propName"] = key;
|
|
491
|
-
fieldParam["propDbName"] = key;
|
|
492
|
-
fieldParam["dataType"] = dataTypeObj[key] ? dataTypeObj[key] : "TEXT";
|
|
493
|
-
fieldParam["operator"] = "EQ";
|
|
494
|
-
fieldParam["propValue"] = value[i];
|
|
495
|
-
if (i === value.length - 1) {
|
|
496
|
-
fieldParam["rightBracket"] = "))";
|
|
497
|
-
fieldParam["joinSign"] = "and";
|
|
498
|
-
} else {
|
|
499
|
-
fieldParam["rightBracket"] = ")";
|
|
500
|
-
fieldParam["joinSign"] = "or";
|
|
501
|
-
}
|
|
502
|
-
multipleFieldParam.push(fieldParam);
|
|
503
|
-
}
|
|
504
|
-
toolbarFieldParam = toolbarFieldParam.concat(multipleFieldParam);
|
|
505
|
-
}
|
|
506
|
-
} else {
|
|
507
|
-
const fieldParam = {};
|
|
508
|
-
fieldParam["leftBracket"] = "(";
|
|
509
|
-
fieldParam["propName"] = key;
|
|
510
|
-
fieldParam["propDbName"] = key;
|
|
511
|
-
fieldParam["dataType"] = dataTypeObj[key] ? dataTypeObj[key] : "TEXT";
|
|
512
|
-
fieldParam["operator"] = "EQ";
|
|
513
|
-
fieldParam["propValue"] = value;
|
|
514
|
-
fieldParam["rightBracket"] = ")";
|
|
515
|
-
fieldParam["joinSign"] = "and";
|
|
516
|
-
toolbarFieldParam.push(fieldParam);
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
gridRef.value.toolbarRefresh(null, null, toolbarFieldParam);
|
|
522
|
-
}
|
|
523
|
-
function resizeListHeight(params) {
|
|
524
|
-
}
|
|
525
|
-
function customButtonClick(originalValue, formatValue, row, column, rowIndex, button) {
|
|
526
|
-
const otherParams = {
|
|
527
|
-
originalValue,
|
|
528
|
-
formatValue,
|
|
529
|
-
row,
|
|
530
|
-
column,
|
|
531
|
-
rowIndex,
|
|
532
|
-
button
|
|
533
|
-
};
|
|
534
|
-
const buttonConfigure = operationButtonObj.value["xxx"];
|
|
535
|
-
const tableConfigure = configure;
|
|
536
|
-
buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
|
|
537
|
-
eventUtil.getHandleEvent(null, pageContext, buttonConfigure, "click", otherParams);
|
|
538
|
-
}
|
|
539
|
-
function recieveMessage(event) {
|
|
540
|
-
if (event.data === "close_open_win") {
|
|
541
|
-
gridRef.value.refresh();
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
function select(selection, row) {
|
|
545
|
-
selections.value = selection;
|
|
546
|
-
const params = {
|
|
547
|
-
selection,
|
|
548
|
-
row
|
|
549
|
-
};
|
|
550
|
-
eventUtil.gridSelectRecord(pageContext, configure, params);
|
|
551
|
-
}
|
|
552
|
-
function selectAll(selection) {
|
|
553
|
-
selections.value = selection;
|
|
554
|
-
const params = {
|
|
555
|
-
selection
|
|
556
|
-
};
|
|
557
|
-
eventUtil.gridSelectAllRecords(pageContext, configure, params);
|
|
558
|
-
}
|
|
559
|
-
function selectionChange(newSelection) {
|
|
560
|
-
const params = {
|
|
561
|
-
newSelection
|
|
562
|
-
};
|
|
563
|
-
eventUtil.gridSelectionChange(pageContext, configure, params);
|
|
564
|
-
}
|
|
565
|
-
function cellClickEvent(row, column, cell, event) {
|
|
566
|
-
const params = {
|
|
567
|
-
row,
|
|
568
|
-
column,
|
|
569
|
-
cell,
|
|
570
|
-
event
|
|
571
|
-
};
|
|
572
|
-
eventUtil.cellClick(pageContext, configure, params);
|
|
573
|
-
}
|
|
574
|
-
function cellDblClickEvent(row, column, cell, event) {
|
|
575
|
-
const params = {
|
|
576
|
-
row,
|
|
577
|
-
column,
|
|
578
|
-
cell,
|
|
579
|
-
event
|
|
580
|
-
};
|
|
581
|
-
eventUtil.cellDblClick(pageContext, configure, params);
|
|
582
|
-
}
|
|
583
|
-
function rowClickEvent(row, column, event) {
|
|
584
|
-
const params = {
|
|
585
|
-
row,
|
|
586
|
-
column,
|
|
587
|
-
event
|
|
588
|
-
};
|
|
589
|
-
eventUtil.rowClick(pageContext, configure, params);
|
|
590
|
-
}
|
|
591
|
-
function rowDblClickEvent(row, column, event) {
|
|
592
|
-
const params = {
|
|
593
|
-
row,
|
|
594
|
-
column,
|
|
595
|
-
event
|
|
596
|
-
};
|
|
597
|
-
eventUtil.rowDblClick(pageContext, configure, params);
|
|
598
|
-
}
|
|
599
|
-
function headerClickEvent(column, event) {
|
|
600
|
-
const params = {
|
|
601
|
-
column,
|
|
602
|
-
event
|
|
603
|
-
};
|
|
604
|
-
eventUtil.headerClick(pageContext, configure, params);
|
|
605
|
-
}
|
|
606
|
-
function validatorSunTableListData() {
|
|
607
|
-
return gridRef.value.validatorSunTableListData();
|
|
608
|
-
}
|
|
609
|
-
function clearSelections() {
|
|
610
|
-
selections.value = [];
|
|
611
|
-
}
|
|
612
|
-
function refresh() {
|
|
613
|
-
return gridRef.value.refresh();
|
|
614
|
-
}
|
|
615
|
-
function createRow() {
|
|
616
|
-
return gridRef.value.createRow(listCode);
|
|
617
|
-
}
|
|
618
|
-
function getSelections() {
|
|
619
|
-
return selections.value;
|
|
620
|
-
}
|
|
621
|
-
function getSelectionIds() {
|
|
622
|
-
const dataIds = [];
|
|
623
|
-
if (selections.value !== null) {
|
|
624
|
-
selections.value.forEach((item) => {
|
|
625
|
-
dataIds.push(item.id ? item.id : item.ID ? item.ID : null);
|
|
626
|
-
});
|
|
627
|
-
}
|
|
628
|
-
return dataIds;
|
|
629
|
-
}
|
|
630
|
-
function getTableConfigure() {
|
|
631
|
-
return configure;
|
|
632
|
-
}
|
|
633
|
-
function isDeleteChange(value) {
|
|
634
|
-
gridRef.value.isDeleteChange(value);
|
|
635
|
-
}
|
|
636
|
-
__expose({
|
|
637
|
-
refresh,
|
|
638
|
-
createRow,
|
|
639
|
-
clearSelections,
|
|
640
|
-
getSelections,
|
|
641
|
-
getSelectionIds,
|
|
642
|
-
getTableConfigure,
|
|
643
|
-
isDeleteChange,
|
|
644
|
-
validatorSunTableListData
|
|
645
|
-
});
|
|
646
|
-
return (_ctx, _cache) => {
|
|
647
|
-
const _component_super_grid = Vue.resolveComponent("super-grid");
|
|
648
|
-
return Vue.openBlock(), Vue.createElementBlock("div", null, [
|
|
649
|
-
Vue.createVNode(_component_super_grid, {
|
|
650
|
-
ref_key: "gridRef",
|
|
651
|
-
ref: gridRef,
|
|
652
|
-
url: Vue.unref(urlToListData),
|
|
653
|
-
options: listOptions.value,
|
|
654
|
-
code: Vue.unref(listCode),
|
|
655
|
-
settings: Vue.unref(superGridSetting),
|
|
656
|
-
"search-form-info": searchFormInfo.value,
|
|
657
|
-
"list-toolbar-form-data": Vue.unref(listToolbarFormData),
|
|
658
|
-
onSelect: select,
|
|
659
|
-
onSelectAll: selectAll,
|
|
660
|
-
onSelectionChange: selectionChange,
|
|
661
|
-
onCellClick: cellClickEvent,
|
|
662
|
-
onCellDblclick: cellDblClickEvent,
|
|
663
|
-
onRowClick: rowClickEvent,
|
|
664
|
-
onRowDblclick: rowDblClickEvent,
|
|
665
|
-
onHeaderClick: headerClickEvent,
|
|
666
|
-
onRefresh: clearSelections,
|
|
667
|
-
onNewOpenGridDialog: Vue.unref(tableUtils.popupToPage)
|
|
668
|
-
}, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])
|
|
669
|
-
]);
|
|
670
|
-
};
|
|
671
|
-
}
|
|
672
|
-
});
|
|
673
|
-
module.exports = _sfc_main;
|