super-page-runtime 1.0.16 → 1.3.13
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/_virtual/_plugin-vue_export-helper.js +8 -0
- package/dist/es/assets/chart-themes/theme1.d.ts +4 -0
- package/dist/es/assets/chart-themes/theme1.js +4 -0
- package/dist/es/assets/chart-themes/theme2.d.ts +4 -0
- package/dist/es/assets/chart-themes/theme2.js +4 -0
- package/dist/es/assets/chart-themes/theme3.d.ts +4 -0
- package/dist/es/assets/chart-themes/theme3.js +4 -0
- package/dist/es/assets/file.png.js +4 -0
- package/dist/es/assets/folder.png.js +4 -0
- package/dist/es/components/runtime/index.d.ts +5 -0
- package/dist/es/components/runtime/utils/api/api-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/api/api-util.js +4 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +159 -0
- package/dist/es/components/runtime/utils/assemblys-config.js +20 -0
- package/dist/es/components/runtime/utils/barcode-util.d.ts +8 -0
- package/dist/es/components/runtime/utils/barcode-util.js +12 -0
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +140 -0
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +37 -0
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +81 -0
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +55 -0
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +46 -0
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +113 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +274 -0
- package/dist/es/components/runtime/utils/common-util.d.ts +33 -0
- package/dist/es/components/runtime/utils/common-util.js +120 -0
- package/dist/es/components/runtime/utils/eventBus.d.ts +7 -0
- package/dist/es/components/runtime/utils/eventBus.js +5 -0
- package/{lib/src → dist/es/components/runtime}/utils/events/event-util.d.ts +45 -1
- package/dist/es/components/runtime/utils/events/event-util.js +403 -0
- package/dist/es/components/runtime/utils/events/print-label.d.ts +5 -0
- package/dist/es/components/runtime/utils/events/print-label.js +100 -0
- package/{lib/src → dist/es/components/runtime}/utils/events/standard-event.d.ts +29 -3
- package/dist/es/components/runtime/utils/events/standard-event.js +971 -0
- package/dist/es/components/runtime/utils/events/validator-util.d.ts +25 -0
- package/dist/es/components/runtime/utils/events/validator-util.js +309 -0
- package/dist/es/components/runtime/utils/form/date-shortcuts.d.ts +7 -0
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +36 -0
- package/dist/es/components/runtime/utils/form/scan-util.js +93 -0
- package/{lib/src → dist/es/components/runtime}/utils/global-refs.d.ts +6 -0
- package/dist/es/components/runtime/utils/global-refs.js +57 -0
- package/dist/es/components/runtime/utils/i18n-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/i18n-util.js +14 -0
- package/{lib/src → dist/es/components/runtime}/utils/interfaces/page-design-types.d.ts +32 -6
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +4 -0
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +174 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +386 -0
- package/{lib/src → dist/es/components/runtime}/utils/page-init-util.d.ts +12 -2
- package/dist/es/components/runtime/utils/page-init-util.js +203 -0
- package/dist/es/components/runtime/utils/page-permission-util.d.ts +26 -0
- package/dist/es/components/runtime/utils/page-permission-util.js +30 -0
- package/dist/es/components/runtime/utils/page-store.d.ts +46 -0
- package/dist/es/components/runtime/utils/page-store.js +26 -0
- package/dist/es/components/runtime/utils/store-util.js +13 -0
- package/dist/es/components/runtime/utils/store.js +4 -0
- package/dist/es/components/runtime/utils/table-utils.d.ts +34 -0
- package/dist/es/components/runtime/utils/table-utils.js +80 -0
- package/dist/es/components/runtime/utils/tree-utils.js +73 -0
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +27 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +21 -0
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +41 -0
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +6 -0
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +21 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +53 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +14 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +13 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +60 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +63 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +46 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +121 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +419 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +6 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +10 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +45 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +15 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +255 -0
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +28 -0
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +36 -0
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +4 -0
- package/{lib → dist/es}/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +5 -5
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +24 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts +31 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +35 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.js +4 -0
- package/{lib → dist/es}/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +5 -5
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +19 -0
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +29 -0
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +21 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +18 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +29 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +94 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +81 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +25 -0
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +20 -0
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +14 -0
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +96 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +35 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +69 -0
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +378 -0
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +300 -0
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +82 -0
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +134 -0
- package/{lib → dist/es}/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +5 -0
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +50 -0
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +38 -0
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +69 -0
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +90 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +55 -0
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +24 -0
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +75 -0
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +28 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +82 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +37 -0
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +32 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +16 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +73 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +102 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +97 -0
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +16 -0
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +36 -0
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +44 -0
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +28 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +83 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +129 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +20 -0
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +23 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +24 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +18 -0
- package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
- package/dist/es/components/runtime/views/home-chart.vue.js +47 -0
- package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
- package/{lib/components/super-page-dialog → dist/es/components/runtime/views}/super-page-dialog.vue.d.ts +7 -3
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +26 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue3.js +5 -0
- package/{lib → dist/es}/components/runtime/views/super-page.vue.d.ts +43 -10
- package/dist/es/components/runtime/views/super-page.vue.js +7 -0
- package/dist/es/components/runtime/views/super-page.vue2.js +262 -0
- package/dist/es/i18n/langs/cn.js +4 -0
- package/dist/es/i18n/langs/en.js +4 -0
- package/dist/es/index.d.ts +16 -0
- package/dist/es/index.js +30 -0
- package/dist/es/style.css +633 -0
- package/package.json +74 -67
- package/.eslintrc.cjs +0 -26
- package/.prettierrc.json +0 -8
- package/App.vue +0 -9
- package/components/index.ts +0 -17
- package/components/runtime/index.ts +0 -2
- package/components/runtime/utils/assemblys-config.js +0 -294
- package/components/runtime/views/assemblys/button/button/button-runtime.vue +0 -49
- package/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue +0 -26
- package/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue +0 -93
- package/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue +0 -59
- package/components/runtime/views/assemblys/chart/common/common-attr-assistant.vue +0 -32
- package/components/runtime/views/assemblys/chart/common/common-attr-base.vue +0 -60
- package/components/runtime/views/assemblys/chart/common/common-attr-drill.vue +0 -39
- package/components/runtime/views/assemblys/chart/common/common-attr-groupby.vue +0 -104
- package/components/runtime/views/assemblys/chart/common/common-attr-serieslist.vue +0 -145
- package/components/runtime/views/assemblys/chart/common/common-attr-sortby.vue +0 -119
- package/components/runtime/views/assemblys/chart/common/common-style-custom.vue +0 -28
- package/components/runtime/views/assemblys/chart/common/common-style-datazoom.vue +0 -45
- package/components/runtime/views/assemblys/chart/common/common-style-font-subtitle.vue +0 -78
- package/components/runtime/views/assemblys/chart/common/common-style-font-title.vue +0 -56
- package/components/runtime/views/assemblys/chart/common/common-style-grid.vue +0 -70
- package/components/runtime/views/assemblys/chart/common/common-style-legend.vue +0 -70
- package/components/runtime/views/assemblys/chart/common/common-style-tooltip.vue +0 -140
- package/components/runtime/views/assemblys/chart/common/common-style-xaxis.vue +0 -58
- package/components/runtime/views/assemblys/chart/common/common-style-yaxis.vue +0 -125
- package/components/runtime/views/assemblys/chart/common-series/common-attr-dataset.vue +0 -67
- package/components/runtime/views/assemblys/chart/common-series/common-attr-dynamic.vue +0 -57
- package/components/runtime/views/assemblys/chart/common-series/common-attr-testdatas.vue +0 -23
- package/components/runtime/views/assemblys/chart/common-series/common-style-label.vue +0 -209
- package/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue +0 -46
- package/components/runtime/views/assemblys/chart/pie/pie-runtime.vue +0 -56
- package/components/runtime/views/assemblys/chart/radar/radar-runtime.vue +0 -55
- package/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue +0 -57
- package/components/runtime/views/assemblys/common/common-attr-cursor.vue +0 -23
- package/components/runtime/views/assemblys/common/common-attr-size.vue +0 -54
- package/components/runtime/views/assemblys/common/common-select-table.vue +0 -287
- package/components/runtime/views/assemblys/common/common-style-background.vue +0 -46
- package/components/runtime/views/assemblys/common/common-style-border.vue +0 -37
- package/components/runtime/views/assemblys/common/common-style-custom.vue +0 -35
- package/components/runtime/views/assemblys/common/common-style-font-head.vue +0 -53
- package/components/runtime/views/assemblys/common/common-style-font.vue +0 -53
- package/components/runtime/views/assemblys/common/common-style-margin.vue +0 -34
- package/components/runtime/views/assemblys/common/common-style-padding.vue +0 -34
- package/components/runtime/views/assemblys/common/common-style-position.vue +0 -39
- package/components/runtime/views/assemblys/common/common-style-shadow.vue +0 -37
- package/components/runtime/views/assemblys/common/export-form-report-dialog.vue +0 -108
- package/components/runtime/views/assemblys/common/remove-signer-dialog.vue +0 -99
- package/components/runtime/views/assemblys/common/task-informition-dialog.vue +0 -69
- package/components/runtime/views/assemblys/common-attr-events.vue +0 -46
- package/components/runtime/views/assemblys/container/card/card-runtime.vue +0 -59
- package/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue +0 -59
- package/components/runtime/views/assemblys/container/container/container-runtime.vue +0 -41
- package/components/runtime/views/assemblys/container/flex/flex-runtime.vue +0 -35
- package/components/runtime/views/assemblys/container/form/form-runtime.vue +0 -37
- package/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue +0 -32
- package/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue +0 -54
- package/components/runtime/views/assemblys/container/tools/tools-runtime.vue +0 -99
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-base.vue +0 -117
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-style.vue +0 -25
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr.vue +0 -28
- package/components/runtime/views/assemblys/data/bar-code/barcode-design.vue +0 -103
- package/components/runtime/views/assemblys/data/component/attr-header.vue +0 -69
- package/components/runtime/views/assemblys/data/component/attr-style.vue +0 -64
- package/components/runtime/views/assemblys/data/component/column-config.vue +0 -171
- package/components/runtime/views/assemblys/data/component/combinedHeader.vue +0 -96
- package/components/runtime/views/assemblys/data/component/composite-header.vue +0 -257
- package/components/runtime/views/assemblys/data/component/configuration-value.vue +0 -206
- package/components/runtime/views/assemblys/data/component/data-origin-tree.vue +0 -117
- package/components/runtime/views/assemblys/data/component/data-origin.vue +0 -260
- package/components/runtime/views/assemblys/data/component/formatting.vue +0 -200
- package/components/runtime/views/assemblys/data/component/in-parameter.vue +0 -56
- package/components/runtime/views/assemblys/data/component/querySetting.vue +0 -52
- package/components/runtime/views/assemblys/data/component/return-set-table.vue +0 -91
- package/components/runtime/views/assemblys/data/component/row-backgroud-color.vue +0 -58
- package/components/runtime/views/assemblys/data/component/select-data-table.vue +0 -86
- package/components/runtime/views/assemblys/data/table/main-table-runtime.vue +0 -858
- package/components/runtime/views/assemblys/data/table/sub-table-runtime.vue +0 -625
- package/components/runtime/views/assemblys/data/table/table-runtime.vue +0 -93
- package/components/runtime/views/assemblys/data/tree/tree-attr-base.vue +0 -137
- package/components/runtime/views/assemblys/data/tree/tree-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/data/tree/tree-attr-style.vue +0 -55
- package/components/runtime/views/assemblys/data/tree/tree-attr.vue +0 -28
- package/components/runtime/views/assemblys/data/tree/tree-design.vue +0 -125
- package/components/runtime/views/assemblys/error-attr.vue +0 -15
- package/components/runtime/views/assemblys/error-render.vue +0 -17
- package/components/runtime/views/assemblys/form/cascader/cascader-design.vue +0 -288
- package/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue +0 -198
- package/components/runtime/views/assemblys/form/colors/colors-design.vue +0 -16
- package/components/runtime/views/assemblys/form/common/analytic-rule.vue +0 -148
- package/components/runtime/views/assemblys/form/common/attr-event.vue +0 -82
- package/components/runtime/views/assemblys/form/common/attr-header.vue +0 -54
- package/components/runtime/views/assemblys/form/common/attr-style.vue +0 -44
- package/components/runtime/views/assemblys/form/common/bar-code-rule.vue +0 -104
- package/components/runtime/views/assemblys/form/common/condition.vue +0 -147
- package/components/runtime/views/assemblys/form/common/data-origin.vue +0 -81
- package/components/runtime/views/assemblys/form/common/data-orign-in-parameter.vue +0 -64
- package/components/runtime/views/assemblys/form/common/dataorigin-input-table.vue +0 -106
- package/components/runtime/views/assemblys/form/common/default-value-setting.vue +0 -362
- package/components/runtime/views/assemblys/form/common/dimension-input.vue +0 -68
- package/components/runtime/views/assemblys/form/common/dynamic-data-source-setting.vue +0 -115
- package/components/runtime/views/assemblys/form/common/formatting-label.vue +0 -81
- package/components/runtime/views/assemblys/form/common/grid-num-select.vue +0 -43
- package/components/runtime/views/assemblys/form/common/icon-set-dialog.vue +0 -144
- package/components/runtime/views/assemblys/form/common/linkage.vue +0 -21
- package/components/runtime/views/assemblys/form/common/overall-height.vue +0 -20
- package/components/runtime/views/assemblys/form/common/overall-width.vue +0 -48
- package/components/runtime/views/assemblys/form/common/pre-suffix.vue +0 -33
- package/components/runtime/views/assemblys/form/common/rich-text.vue +0 -100
- package/components/runtime/views/assemblys/form/common/row-ul-li.vue +0 -55
- package/components/runtime/views/assemblys/form/common/setoption-table.vue +0 -86
- package/components/runtime/views/assemblys/form/common/size-input.vue +0 -65
- package/components/runtime/views/assemblys/form/common/suffixmodule.vue +0 -82
- package/components/runtime/views/assemblys/form/common/title.vue +0 -20
- package/components/runtime/views/assemblys/form/common/uploading.vue +0 -34
- package/components/runtime/views/assemblys/form/common/verification.vue +0 -79
- package/components/runtime/views/assemblys/form/common/voluntarily.vue +0 -27
- package/components/runtime/views/assemblys/form/custom/custom-attr-base.vue +0 -81
- package/components/runtime/views/assemblys/form/custom/custom-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/form/custom/custom-attr-style.vue +0 -14
- package/components/runtime/views/assemblys/form/custom/custom-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/custom/custom-design.vue +0 -57
- package/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue +0 -80
- package/components/runtime/views/assemblys/form/datetime/datetime-design.vue +0 -19
- package/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue +0 -60
- package/components/runtime/views/assemblys/form/divider/divider-runtime.vue +0 -44
- package/components/runtime/views/assemblys/form/file-picture/picture-design.vue +0 -80
- package/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue +0 -79
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-base.vue +0 -142
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-style.vue +0 -14
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-design.vue +0 -104
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-base.vue +0 -75
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-event.vue +0 -13
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-style.vue +0 -14
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/image-upload/imageupload-design.vue +0 -76
- package/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue +0 -62
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-base.vue +0 -68
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-style.vue +0 -70
- package/components/runtime/views/assemblys/form/input-show/input-show-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/input-show/input-show-design.vue +0 -155
- package/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue +0 -142
- package/components/runtime/views/assemblys/form/label/label-runtime.vue +0 -143
- package/components/runtime/views/assemblys/form/link/link-runtime.vue +0 -70
- package/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue +0 -24
- package/components/runtime/views/assemblys/form/radio/radio-runtime.vue +0 -203
- package/components/runtime/views/assemblys/form/rate/rate-design.vue +0 -16
- package/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue +0 -169
- package/components/runtime/views/assemblys/form/select/select-runtime.vue +0 -247
- package/components/runtime/views/assemblys/form/slider/slider-design.vue +0 -16
- package/components/runtime/views/assemblys/form/switch/switch-runtime.vue +0 -63
- package/components/runtime/views/assemblys/form/tag/tag-runtime.vue +0 -65
- package/components/runtime/views/assemblys/form/text/text-design.vue +0 -19
- package/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue +0 -63
- package/components/runtime/views/assemblys/form/transfer/transfer-design.vue +0 -32
- package/components/runtime/views/assemblys/object-render.vue +0 -176
- package/components/runtime/views/assemblys/page/page-attr-base-20240429-1.vue +0 -179
- package/components/runtime/views/assemblys/page/page-attr-base.vue +0 -259
- package/components/runtime/views/assemblys/page/page-attr-events.vue +0 -50
- package/components/runtime/views/assemblys/page/page-attr-style.vue +0 -25
- package/components/runtime/views/assemblys/page/page-attr.vue +0 -84
- package/components/runtime/views/assemblys/page/variable-dialog.vue +0 -242
- package/components/runtime/views/assemblys/workflow/component/combination.vue +0 -206
- package/components/runtime/views/assemblys/workflow/component/condition-dialog.vue +0 -99
- package/components/runtime/views/assemblys/workflow/component/event-dialog.vue +0 -278
- package/components/runtime/views/assemblys/workflow/component/journal-set-dialog.vue +0 -174
- package/components/runtime/views/assemblys/workflow/component/logical-setup-dialog.vue +0 -155
- package/components/runtime/views/assemblys/workflow/component/rule-dialog.vue +0 -47
- package/components/runtime/views/assemblys/workflow/component/set-dialog.vue +0 -130
- package/components/runtime/views/assemblys/workflow/component/task-trigger-dialog.vue +0 -96
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue +0 -43
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-style.vue +0 -27
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr.vue +0 -28
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-design.vue +0 -17
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-base.vue +0 -60
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-style.vue +0 -27
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr.vue +0 -28
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-design.vue +0 -17
- package/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue +0 -64
- package/components/runtime/views/render/page-view.vue +0 -80
- package/components/runtime/views/super-page copy.vue +0 -61
- package/components/runtime/views/super-page.vue +0 -667
- package/components/super-page-dialog/index.ts +0 -2
- package/components/super-page-dialog/super-page-dialog.vue +0 -267
- package/components/wf-editor/index.ts +0 -2
- package/components/wf-editor/wf-editor.vue +0 -15
- package/cypress/e2e/example.cy.ts +0 -8
- package/cypress/e2e/tsconfig.json +0 -10
- package/cypress/fixtures/example.json +0 -5
- package/cypress/support/commands.ts +0 -39
- package/cypress/support/e2e.ts +0 -20
- package/cypress.config.ts +0 -8
- package/env.d.ts +0 -1
- package/index.html +0 -13
- package/lib/_virtual/_plugin-vue_export-helper.js +0 -9
- package/lib/components/index.d.ts +0 -5
- package/lib/components/runtime/index.d.ts +0 -3
- package/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
- package/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/lib/components/super-page-dialog/index.d.ts +0 -3
- package/lib/components/wf-editor/index.d.ts +0 -3
- package/lib/components/wf-editor/wf-editor.vue.d.ts +0 -2
- package/lib/index.js +0 -8
- package/lib/runtime/index.js +0 -3
- package/lib/runtime/utils/assemblys-config.js +0 -258
- package/lib/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
- package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
- package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
- package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -53
- package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -42
- package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -50
- package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -50
- package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -51
- package/lib/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -141
- package/lib/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
- package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
- package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
- package/lib/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
- package/lib/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
- package/lib/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
- package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -73
- package/lib/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -78
- package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -42
- package/lib/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -43
- package/lib/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -29
- package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -68
- package/lib/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -74
- package/lib/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -640
- package/lib/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
- package/lib/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -452
- package/lib/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
- package/lib/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -82
- package/lib/runtime/views/assemblys/error-render.vue.js +0 -22
- package/lib/runtime/views/assemblys/error-render.vue2.js +0 -3
- package/lib/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -156
- package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
- package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -59
- package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
- package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
- package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
- package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
- package/lib/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -133
- package/lib/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
- package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
- package/lib/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -157
- package/lib/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -174
- package/lib/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -201
- package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
- package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
- package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
- package/lib/runtime/views/assemblys/object-render.vue.js +0 -142
- package/lib/runtime/views/assemblys/object-render.vue2.js +0 -3
- package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -61
- package/lib/runtime/views/super-page.vue.js +0 -479
- package/lib/runtime/views/super-page.vue2.js +0 -3
- package/lib/src/assets/chart-themes/theme1.js +0 -7
- package/lib/src/assets/chart-themes/theme2.js +0 -7
- package/lib/src/assets/chart-themes/theme3.js +0 -7
- package/lib/src/utils/api/api-util.d.ts +0 -11
- package/lib/src/utils/api/api-util.js +0 -128
- package/lib/src/utils/charts/chart-util.js +0 -15
- package/lib/src/utils/common-util.d.ts +0 -11
- package/lib/src/utils/common-util.js +0 -81
- package/lib/src/utils/events/event-util.js +0 -525
- package/lib/src/utils/events/standard-event.js +0 -1623
- package/lib/src/utils/events/validator-util.d.ts +0 -4
- package/lib/src/utils/events/validator-util.js +0 -389
- package/lib/src/utils/global-refs.js +0 -65
- package/lib/src/utils/interfaces/page-design-types.js +0 -9
- package/lib/src/utils/page-helper-util.d.ts +0 -87
- package/lib/src/utils/page-helper-util.js +0 -503
- package/lib/src/utils/page-init-util.js +0 -200
- package/lib/src/utils/store-util.js +0 -17
- package/lib/src/utils/store.js +0 -3
- package/lib/src/utils/table-utils.js +0 -23
- package/lib/super-page-dialog/index.js +0 -3
- package/lib/super-page-dialog/super-page-dialog.vue.js +0 -73
- package/lib/super-page-dialog/super-page-dialog.vue2.js +0 -3
- package/lib/wf-editor/index.js +0 -3
- package/lib/wf-editor/wf-editor.css +0 -4
- package/lib/wf-editor/wf-editor.vue.js +0 -15
- package/main.ts +0 -11
- package/package-ws.json +0 -70
- package/public/favicon.ico +0 -0
- package/src/assets/base.css +0 -86
- package/src/assets/chart-themes/theme1.ts +0 -6
- package/src/assets/chart-themes/theme2.ts +0 -6
- package/src/assets/chart-themes/theme3.ts +0 -6
- package/src/assets/images/button/button-group.png +0 -0
- package/src/assets/images/button/button.png +0 -0
- package/src/assets/images/chart/chart-column.png +0 -0
- package/src/assets/images/chart/chart-gauge.png +0 -0
- package/src/assets/images/chart/chart-pie.png +0 -0
- package/src/assets/images/chart/chart-radar.png +0 -0
- package/src/assets/images/chart/chart-scatter.png +0 -0
- package/src/assets/images/container/container-card.png +0 -0
- package/src/assets/images/container/container-collapse.png +0 -0
- package/src/assets/images/container/container-container.png +0 -0
- package/src/assets/images/container/container-flex.png +0 -0
- package/src/assets/images/container/container-form.png +0 -0
- package/src/assets/images/container/container-iframe.png +0 -0
- package/src/assets/images/container/container-normal.png +0 -0
- package/src/assets/images/container/container-tabs.png +0 -0
- package/src/assets/images/container/container-tools.png +0 -0
- package/src/assets/images/data/data-process.png +0 -0
- package/src/assets/images/data/data-step.png +0 -0
- package/src/assets/images/data/data-table-column.png +0 -0
- package/src/assets/images/data/data-table.png +0 -0
- package/src/assets/images/data/data-timeline.png +0 -0
- package/src/assets/images/data/data-tree.png +0 -0
- package/src/assets/images/form/form-cascader.png +0 -0
- package/src/assets/images/form/form-check.png +0 -0
- package/src/assets/images/form/form-color.png +0 -0
- package/src/assets/images/form/form-count.png +0 -0
- package/src/assets/images/form/form-custom.png +0 -0
- package/src/assets/images/form/form-date.png +0 -0
- package/src/assets/images/form/form-dept.png +0 -0
- package/src/assets/images/form/form-divider.png +0 -0
- package/src/assets/images/form/form-file.png +0 -0
- package/src/assets/images/form/form-image-upload.png +0 -0
- package/src/assets/images/form/form-img.png +0 -0
- package/src/assets/images/form/form-input.png +0 -0
- package/src/assets/images/form/form-label.png +0 -0
- package/src/assets/images/form/form-link.png +0 -0
- package/src/assets/images/form/form-radio.png +0 -0
- package/src/assets/images/form/form-scan.png +0 -0
- package/src/assets/images/form/form-score.png +0 -0
- package/src/assets/images/form/form-select.png +0 -0
- package/src/assets/images/form/form-slider.png +0 -0
- package/src/assets/images/form/form-space.png +0 -0
- package/src/assets/images/form/form-switch.png +0 -0
- package/src/assets/images/form/form-text.png +0 -0
- package/src/assets/images/form/form-textarea.png +0 -0
- package/src/assets/images/form/form-transfer.png +0 -0
- package/src/assets/images/form/form-zoom.png +0 -0
- package/src/assets/images/group-button.png +0 -0
- package/src/assets/images/group-chart.png +0 -0
- package/src/assets/images/group-container.png +0 -0
- package/src/assets/images/group-data.png +0 -0
- package/src/assets/images/group-form.png +0 -0
- package/src/assets/images/group-workflow.png +0 -0
- package/src/assets/images/workflow/workflow-button.png +0 -0
- package/src/assets/images/workflow/workflow-history-texts.png +0 -0
- package/src/assets/images/workflow/workflow-history.png +0 -0
- package/src/assets/images/workflow/workflow-imagehistory.png +0 -0
- package/src/assets/images/workflow/workflow-texthistory .png +0 -0
- package/src/assets/logo.svg +0 -1
- package/src/assets/main.css +0 -1
- package/src/i18n/langs/cn.js +0 -52
- package/src/i18n/langs/en.js +0 -52
- package/src/stores/counter.ts +0 -12
- package/src/utils/api/api-util.ts +0 -176
- package/src/utils/charts/chart-util.ts +0 -41
- package/src/utils/common-util.ts +0 -96
- package/src/utils/container-style-util.ts +0 -237
- package/src/utils/eventBus.ts +0 -14
- package/src/utils/events/event-util.ts +0 -790
- package/src/utils/events/jump-page-util.ts +0 -0
- package/src/utils/events/standard-event.ts +0 -2075
- package/src/utils/events/validator-util.ts +0 -474
- package/src/utils/global-refs.ts +0 -160
- package/src/utils/interfaces/page-design-types.ts +0 -259
- package/src/utils/page-helper-util.ts +0 -850
- package/src/utils/page-init-util.ts +0 -291
- package/src/utils/page-permission-util.ts +0 -521
- package/src/utils/store-util.ts +0 -41
- package/src/utils/store.ts +0 -3
- package/src/utils/table-utils.ts +0 -31
- package/tsconfig copy.json +0 -17
- package/tsconfig.app copy.json +0 -14
- package/tsconfig.app.json +0 -14
- package/tsconfig.json +0 -17
- package/tsconfig.node copy.json +0 -19
- package/tsconfig.node.json +0 -19
- package/tsconfig.vitest copy.json +0 -11
- package/tsconfig.vitest.json +0 -11
- package/vite.config copy.ts +0 -109
- package/vite.config.ts +0 -86
- package/vitest.config.ts +0 -14
- /package/{lib/src → dist/es/components/runtime}/utils/store-util.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/store.d.ts +0 -0
- /package/{lib → dist/es}/favicon.ico +0 -0
|
@@ -1,503 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const http = require("agilebuilder-ui/src/utils/request");
|
|
4
|
-
const dayjs = require("dayjs");
|
|
5
|
-
const calculatorUtil = require("agilebuilder-ui/src/utils/calculator/calculator-util");
|
|
6
|
-
const globalRefs = require("./global-refs.js");
|
|
7
|
-
function getTableQueryInfo(dataOriginInfo, pageContext2) {
|
|
8
|
-
const infoObj = {};
|
|
9
|
-
infoObj.type = "dataTable";
|
|
10
|
-
infoObj.props = {
|
|
11
|
-
tableName: dataOriginInfo.tableName,
|
|
12
|
-
systemCode: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : pageContext2.systemCode,
|
|
13
|
-
systemVersion: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysVersion : pageContext2.systemVersion
|
|
14
|
-
};
|
|
15
|
-
if (dataOriginInfo.sortFields) {
|
|
16
|
-
const sortFields = [];
|
|
17
|
-
for (const field of dataOriginInfo.sortFields) {
|
|
18
|
-
if (field.name) {
|
|
19
|
-
sortFields.push({
|
|
20
|
-
prop: field.name,
|
|
21
|
-
order: field.type ? field.type : "asc"
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
infoObj.props.sorts = sortFields;
|
|
26
|
-
}
|
|
27
|
-
const autoMonitorFields = [];
|
|
28
|
-
if (dataOriginInfo.filterList) {
|
|
29
|
-
const searchForm = [];
|
|
30
|
-
for (const f of dataOriginInfo.filterList) {
|
|
31
|
-
if (!f.propName) {
|
|
32
|
-
continue;
|
|
33
|
-
}
|
|
34
|
-
if (!f.propDbName) {
|
|
35
|
-
f.propDbName = f.propName;
|
|
36
|
-
}
|
|
37
|
-
const tempObj = {};
|
|
38
|
-
Object.assign(tempObj, f);
|
|
39
|
-
const paramsNames = getParamNames(f.propValue);
|
|
40
|
-
for (const p of paramsNames) {
|
|
41
|
-
if (p && (p.startsWith("${data.") || p.startsWith("${task.") || p.startsWith("${page."))) {
|
|
42
|
-
if (!autoMonitorFields.includes(p)) {
|
|
43
|
-
autoMonitorFields.push(p);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
if (f.propValue)
|
|
48
|
-
;
|
|
49
|
-
searchForm.push(tempObj);
|
|
50
|
-
}
|
|
51
|
-
infoObj.props.searchForm = searchForm;
|
|
52
|
-
}
|
|
53
|
-
infoObj.props.monitorFields = autoMonitorFields;
|
|
54
|
-
const queryFields = [];
|
|
55
|
-
if (dataOriginInfo.tableValueField) {
|
|
56
|
-
infoObj.props.valueField = dataOriginInfo.tableValueField;
|
|
57
|
-
}
|
|
58
|
-
if (dataOriginInfo.tableLableField && queryFields.indexOf(dataOriginInfo.tableLableField) == -1) {
|
|
59
|
-
infoObj.props.lableField = dataOriginInfo.tableLableField;
|
|
60
|
-
}
|
|
61
|
-
if (dataOriginInfo.autoSets) {
|
|
62
|
-
for (const field of dataOriginInfo.autoSets) {
|
|
63
|
-
if (field.source && queryFields.indexOf(field.source) == -1) {
|
|
64
|
-
queryFields.push(field.source);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
infoObj.props.queryFields = queryFields;
|
|
69
|
-
infoObj.props.pageSize = dataOriginInfo.displayQuantity;
|
|
70
|
-
return infoObj;
|
|
71
|
-
}
|
|
72
|
-
function updateOptionDatasources(pageContext2, dataSourceConfs, query) {
|
|
73
|
-
return new Promise((resolve, reject) => {
|
|
74
|
-
if (!dataSourceConfs || dataSourceConfs.length == 0) {
|
|
75
|
-
reject(new Error("无需查询的配置!"));
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
const entityData2 = pageContext2.entity ? pageContext2.entity : {};
|
|
79
|
-
const additionalParamMap = {};
|
|
80
|
-
if (entityData2.request) {
|
|
81
|
-
Object.assign(additionalParamMap, entityData2.request);
|
|
82
|
-
}
|
|
83
|
-
if (entityData2.page) {
|
|
84
|
-
Object.assign(additionalParamMap, entityData2.page);
|
|
85
|
-
}
|
|
86
|
-
additionalParamMap.query = query;
|
|
87
|
-
const param = {
|
|
88
|
-
entityMap: entityData2.data,
|
|
89
|
-
additionalParamMap,
|
|
90
|
-
dataSourceList: dataSourceConfs,
|
|
91
|
-
systemCode: pageContext2.systemCode,
|
|
92
|
-
query
|
|
93
|
-
};
|
|
94
|
-
const url = window["$vueApp"].config.globalProperties.baseAPI + "common/common-data/find-datas";
|
|
95
|
-
http.post(url, param).then((result) => {
|
|
96
|
-
if (!pageContext2.optionSourceMap) {
|
|
97
|
-
pageContext2.optionSourceMap = {};
|
|
98
|
-
}
|
|
99
|
-
for (const uuid in result) {
|
|
100
|
-
pageContext2.optionSourceMap[uuid] = result[uuid];
|
|
101
|
-
const componentObj = globalRefs.getComponentRef(pageContext2, uuid);
|
|
102
|
-
if (componentObj && componentObj.updateOptions) {
|
|
103
|
-
componentObj.updateOptions(result[uuid]);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
console.log("查询选项数据完成", result);
|
|
107
|
-
resolve(result);
|
|
108
|
-
}).catch((error) => {
|
|
109
|
-
console.log("查询选项数据失败", error);
|
|
110
|
-
reject(error);
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
function getOptionDatasFromPage(pageContext2, configure2) {
|
|
115
|
-
if (!pageContext2 || !pageContext2.optionSourceMap || !configure2) {
|
|
116
|
-
return [];
|
|
117
|
-
}
|
|
118
|
-
const cacheOptions = pageContext2.optionSourceMap[configure2.uuid];
|
|
119
|
-
return cacheOptions ? cacheOptions : [];
|
|
120
|
-
}
|
|
121
|
-
function queryOptionDatasources(pageContext2, dataSourceConf, query) {
|
|
122
|
-
return updateOptionDatasources(pageContext2, dataSourceConf ? [dataSourceConf] : [], query);
|
|
123
|
-
}
|
|
124
|
-
function queryOptions(component, pageContext2, query) {
|
|
125
|
-
if (!component.props || !component.props.dataOrigin) {
|
|
126
|
-
return new Promise(function(resolve, reject) {
|
|
127
|
-
resolve([]);
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
const dataOriginInfo = component.props.dataOrigin;
|
|
131
|
-
if (dataOriginInfo.optionValueSetType == "dynamicData") {
|
|
132
|
-
if (!dataOriginInfo.dynamicDataSourceCode) {
|
|
133
|
-
return new Promise(function(resolve, reject) {
|
|
134
|
-
throw new Error("未指定动态数据源!");
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
return queryByDynamicCode(dataOriginInfo.dynamicDataSourceCode, query);
|
|
138
|
-
} else if (dataOriginInfo.optionValueSetType == "dataTable") {
|
|
139
|
-
if (!dataOriginInfo.tableName) {
|
|
140
|
-
return new Promise(function(resolve, reject) {
|
|
141
|
-
throw new Error("未指定查询的数据表!");
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
const tempObj = getTableQueryInfo(dataOriginInfo, pageContext2);
|
|
145
|
-
return queryByTable(tempObj);
|
|
146
|
-
} else {
|
|
147
|
-
return new Promise(function(resolve, reject) {
|
|
148
|
-
throw new Error("无有效的查询设置!");
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
function queryByDynamicCode(dynamicCode, query) {
|
|
153
|
-
const param = {
|
|
154
|
-
code: dynamicCode,
|
|
155
|
-
query
|
|
156
|
-
};
|
|
157
|
-
return http.post("", param);
|
|
158
|
-
}
|
|
159
|
-
function queryByTable(tableQueryInfo) {
|
|
160
|
-
const param = tableQueryInfo.props;
|
|
161
|
-
return http.post("", param);
|
|
162
|
-
}
|
|
163
|
-
function autoSetAfterSelect(component, pageContext2, autoSets, selItems) {
|
|
164
|
-
if (!autoSets || autoSets.length == 0) {
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
const entity = pageContext2.entity ? pageContext2.entity : {};
|
|
168
|
-
for (const as of autoSets) {
|
|
169
|
-
if (!as.source || !as.target) {
|
|
170
|
-
continue;
|
|
171
|
-
}
|
|
172
|
-
const values = getValuesByField(selItems, as.source);
|
|
173
|
-
let targetField = as.target;
|
|
174
|
-
if (!targetField || !targetField.startsWith("${")) {
|
|
175
|
-
continue;
|
|
176
|
-
}
|
|
177
|
-
targetField = targetField.substring(2, targetField.length - 1);
|
|
178
|
-
const fields = targetField.split(".");
|
|
179
|
-
setVariableValue(entity, fields, values.join(","));
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
function getValuesByField(items, fieldName) {
|
|
183
|
-
if (!items) {
|
|
184
|
-
return [""];
|
|
185
|
-
} else {
|
|
186
|
-
const values = [];
|
|
187
|
-
for (const i of items) {
|
|
188
|
-
let val = i[fieldName];
|
|
189
|
-
if (val == void 0 || val == null) {
|
|
190
|
-
val = "";
|
|
191
|
-
}
|
|
192
|
-
values.push(val);
|
|
193
|
-
}
|
|
194
|
-
return values;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
function getVariableValue(entity, fields) {
|
|
198
|
-
if (!entity || !fields || fields.length == 0) {
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
let tempObj = entity;
|
|
202
|
-
for (let i = 0; i < fields.length; i++) {
|
|
203
|
-
if (tempObj == void 0) {
|
|
204
|
-
return tempObj;
|
|
205
|
-
}
|
|
206
|
-
const fieldName = fields[i];
|
|
207
|
-
tempObj = tempObj[fieldName];
|
|
208
|
-
}
|
|
209
|
-
return tempObj;
|
|
210
|
-
}
|
|
211
|
-
function setVariableValue(entity, fields, newValue) {
|
|
212
|
-
if (!entity || !fields || fields.length == 0) {
|
|
213
|
-
return;
|
|
214
|
-
}
|
|
215
|
-
let tempObj = entity;
|
|
216
|
-
for (let i = 0; i < fields.length; i++) {
|
|
217
|
-
const fieldName = fields[i];
|
|
218
|
-
if (i + 1 == fields.length) {
|
|
219
|
-
tempObj[fieldName] = newValue;
|
|
220
|
-
} else {
|
|
221
|
-
tempObj = tempObj[fieldName];
|
|
222
|
-
if (tempObj == void 0) {
|
|
223
|
-
tempObj[fieldName] = {};
|
|
224
|
-
tempObj = tempObj[fieldName];
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
function formatVariableValue(pageContext2, variable) {
|
|
230
|
-
if (!pageContext2 || variable == "" || variable == null || variable == void 0) {
|
|
231
|
-
return variable;
|
|
232
|
-
}
|
|
233
|
-
const entity = pageContext2.entity ? pageContext2.entity : {};
|
|
234
|
-
const t = getParamNames(variable);
|
|
235
|
-
for (const c in t) {
|
|
236
|
-
const param = t[c];
|
|
237
|
-
const paramValue = getValueFromVariable(entity, param);
|
|
238
|
-
variable = variable.replace(
|
|
239
|
-
param,
|
|
240
|
-
paramValue == void 0 || paramValue == null ? "" : paramValue
|
|
241
|
-
);
|
|
242
|
-
}
|
|
243
|
-
return variable;
|
|
244
|
-
}
|
|
245
|
-
function getParamNames(variable) {
|
|
246
|
-
if (!variable) {
|
|
247
|
-
return [];
|
|
248
|
-
}
|
|
249
|
-
const reg = /\$\{[^\{|\}]+\}/g;
|
|
250
|
-
return variable.match(reg);
|
|
251
|
-
}
|
|
252
|
-
function formatValueByType(value, formatType, formatInfo) {
|
|
253
|
-
if (!formatType || value == "" || value == null || value == void 0) {
|
|
254
|
-
return value;
|
|
255
|
-
}
|
|
256
|
-
console.log("aaa", value, formatType, formatInfo);
|
|
257
|
-
formatInfo = formatInfo ? formatInfo : {};
|
|
258
|
-
if (formatType == "number" || formatType == "percent") {
|
|
259
|
-
if (isNaN(value)) {
|
|
260
|
-
return value;
|
|
261
|
-
}
|
|
262
|
-
let precision = parseInt(formatInfo.decimalDigit);
|
|
263
|
-
if (precision == null || isNaN(precision)) {
|
|
264
|
-
precision = -1;
|
|
265
|
-
}
|
|
266
|
-
value = parseFloat(value);
|
|
267
|
-
if (formatType == "percent") {
|
|
268
|
-
value = value * 100;
|
|
269
|
-
}
|
|
270
|
-
if (precision > -1) {
|
|
271
|
-
value = parseFloat(value.toFixed(precision));
|
|
272
|
-
}
|
|
273
|
-
if (formatType == "percent") {
|
|
274
|
-
value = value + "%";
|
|
275
|
-
} else {
|
|
276
|
-
if (formatInfo.thousandsSeparator) {
|
|
277
|
-
const parts = value.toString().split(".");
|
|
278
|
-
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
279
|
-
value = parts.length > 1 ? parts.join(".") : parts[0];
|
|
280
|
-
}
|
|
281
|
-
if (formatInfo.symbol) {
|
|
282
|
-
value = formatInfo.symbol + "" + value;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
return value;
|
|
286
|
-
} else if (formatType == "date" || formatType == "time") {
|
|
287
|
-
let formatStr = "";
|
|
288
|
-
if (formatType == "date") {
|
|
289
|
-
formatStr = formatInfo.dateFormat;
|
|
290
|
-
if (!formatStr) {
|
|
291
|
-
formatStr = "YYYY-MM-DD";
|
|
292
|
-
}
|
|
293
|
-
} else {
|
|
294
|
-
formatStr = formatInfo.timeFormat;
|
|
295
|
-
if (!formatStr) {
|
|
296
|
-
formatStr = "HH:mm:ss";
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
return dayjs(value).format(formatStr);
|
|
300
|
-
} else if (formatType == "custom" && formatInfo.formatEventUuid) {
|
|
301
|
-
console.log("自定义方法", formatInfo);
|
|
302
|
-
}
|
|
303
|
-
return value;
|
|
304
|
-
}
|
|
305
|
-
function getValueFromVariable(entity, variable) {
|
|
306
|
-
if (variable == null || variable == void 0) {
|
|
307
|
-
return variable;
|
|
308
|
-
}
|
|
309
|
-
if (variable.startsWith("${") && variable.endsWith("}")) {
|
|
310
|
-
let paramName = variable.substring(2, variable.length - 1);
|
|
311
|
-
let paramType = null;
|
|
312
|
-
let valueSource = null;
|
|
313
|
-
if (paramName.startsWith("data.")) {
|
|
314
|
-
paramName = paramName.substring(5);
|
|
315
|
-
valueSource = entity.data;
|
|
316
|
-
paramType = "data";
|
|
317
|
-
} else if (paramName.startsWith("page.")) {
|
|
318
|
-
paramName = paramName.substring(5);
|
|
319
|
-
paramType = "page";
|
|
320
|
-
valueSource = entity.page;
|
|
321
|
-
} else if (paramName.startsWith("task.")) {
|
|
322
|
-
paramName = paramName.substring(5);
|
|
323
|
-
paramType = "task";
|
|
324
|
-
valueSource = entity.task;
|
|
325
|
-
} else if (paramName.startsWith("request.")) {
|
|
326
|
-
paramName = paramName.substring(8);
|
|
327
|
-
paramType = "request";
|
|
328
|
-
valueSource = entity.request;
|
|
329
|
-
} else if (paramName.startsWith("context.")) {
|
|
330
|
-
paramName = paramName.substring(8);
|
|
331
|
-
paramType = "context";
|
|
332
|
-
valueSource = entity.context;
|
|
333
|
-
} else if (paramName.startsWith("system.")) {
|
|
334
|
-
paramName = paramName.substring(7);
|
|
335
|
-
paramType = "system";
|
|
336
|
-
valueSource = entity.system;
|
|
337
|
-
} else if (paramName.startsWith("fixed.")) {
|
|
338
|
-
return paramName.substring(6);
|
|
339
|
-
}
|
|
340
|
-
if (!paramName || !paramName) {
|
|
341
|
-
console.log("获取变量失败", variable, entity);
|
|
342
|
-
return "";
|
|
343
|
-
}
|
|
344
|
-
return getValueFromSource(valueSource, paramName, paramType);
|
|
345
|
-
} else {
|
|
346
|
-
return variable;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
function getValueFromSource(valueSource, paramName, paramType) {
|
|
350
|
-
if (!valueSource || !paramName) {
|
|
351
|
-
return void 0;
|
|
352
|
-
}
|
|
353
|
-
const firstIndex = paramName.indexOf(".");
|
|
354
|
-
if (firstIndex > -1) {
|
|
355
|
-
const tempParamName = paramName.substring(0, firstIndex);
|
|
356
|
-
const newParamName = paramName.substring(firstIndex + 1);
|
|
357
|
-
return getValueFromSource(valueSource[tempParamName], newParamName, paramType);
|
|
358
|
-
} else {
|
|
359
|
-
if (paramType == "context") {
|
|
360
|
-
if (paramName == "currentDate" || paramName == "currentTime") {
|
|
361
|
-
return /* @__PURE__ */ new Date();
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
return valueSource[paramName];
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
function openLink(component, pageContext2) {
|
|
368
|
-
const linkPage = component && component.props && component.props.linkPage ? component.props.linkPage : {};
|
|
369
|
-
if (!linkPage.linkType) {
|
|
370
|
-
alert("未指定打开方式!");
|
|
371
|
-
return;
|
|
372
|
-
}
|
|
373
|
-
let linkUrl = "";
|
|
374
|
-
if (linkPage.linkType == "url") {
|
|
375
|
-
linkUrl = linkPage.jumpPageUrl;
|
|
376
|
-
if (!linkUrl) {
|
|
377
|
-
alert("未设置链接地址!");
|
|
378
|
-
return;
|
|
379
|
-
}
|
|
380
|
-
} else {
|
|
381
|
-
if (!linkPage.jumpPageCode) {
|
|
382
|
-
alert("未选择页面!");
|
|
383
|
-
return;
|
|
384
|
-
}
|
|
385
|
-
linkUrl = "page:" + linkPage.jumpPageCode;
|
|
386
|
-
}
|
|
387
|
-
let appendParams = "";
|
|
388
|
-
if (linkPage.isNeedId) {
|
|
389
|
-
const entity = pageContext2.entity ? pageContext2.entity : {};
|
|
390
|
-
const data = entity.data ? entity.data : {};
|
|
391
|
-
appendParams = "id=" + (data.id ? data.id : "");
|
|
392
|
-
}
|
|
393
|
-
if (linkPage.appendParams) {
|
|
394
|
-
for (const p of linkPage.appendParams) {
|
|
395
|
-
if (!p.name) {
|
|
396
|
-
continue;
|
|
397
|
-
}
|
|
398
|
-
if (appendParams.length > 0) {
|
|
399
|
-
appendParams += "&";
|
|
400
|
-
}
|
|
401
|
-
appendParams += p.name + "=";
|
|
402
|
-
appendParams += formatVariableValue(pageContext2, p.value);
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
if (appendParams) {
|
|
406
|
-
if (linkUrl.indexOf("?") == -1) {
|
|
407
|
-
linkUrl += "?";
|
|
408
|
-
} else {
|
|
409
|
-
linkUrl += "&";
|
|
410
|
-
}
|
|
411
|
-
linkUrl += appendParams;
|
|
412
|
-
}
|
|
413
|
-
alert("链接到:" + linkUrl);
|
|
414
|
-
}
|
|
415
|
-
function caculateShowCondition(pageContext, configure, showConditions) {
|
|
416
|
-
if (!showConditions || showConditions.length == 0 || !pageContext || !pageContext.entity) {
|
|
417
|
-
return true;
|
|
418
|
-
}
|
|
419
|
-
const entityData = pageContext.entity;
|
|
420
|
-
let conditions = "";
|
|
421
|
-
const maxLen = showConditions.length;
|
|
422
|
-
for (let i = 0; i < maxLen; i++) {
|
|
423
|
-
const condition = showConditions[i];
|
|
424
|
-
const propName = condition.propName;
|
|
425
|
-
let operator = condition.operator;
|
|
426
|
-
if (!propName || propName === "") {
|
|
427
|
-
continue;
|
|
428
|
-
}
|
|
429
|
-
if (!operator) {
|
|
430
|
-
operator = "EQ";
|
|
431
|
-
}
|
|
432
|
-
const leftValue = getValueFromVariable(entityData, propName);
|
|
433
|
-
let propValue = getValueFromVariable(entityData, condition.propValue);
|
|
434
|
-
const dataType = condition.dataType;
|
|
435
|
-
if (operator == "CONTAIN" || operator == "NOT_CONTAIN") {
|
|
436
|
-
if (leftValue && !leftValue.includes) {
|
|
437
|
-
operator = operator == "CONTAIN" ? "EQ" : "NET";
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
let variableIsNullStr = condition.variableIsNull;
|
|
441
|
-
if (!variableIsNullStr) {
|
|
442
|
-
variableIsNullStr = "null";
|
|
443
|
-
}
|
|
444
|
-
let conditionResult = void 0;
|
|
445
|
-
if (propValue === void 0 || propValue === "") {
|
|
446
|
-
propValue = null;
|
|
447
|
-
if (variableIsNullStr === "null") {
|
|
448
|
-
operator = "IS_NULL";
|
|
449
|
-
} else if (variableIsNullStr === "notequal") {
|
|
450
|
-
operator = "IS_NOT_NULL";
|
|
451
|
-
} else {
|
|
452
|
-
conditionResult = true;
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
if (conditionResult == void 0) {
|
|
456
|
-
try {
|
|
457
|
-
conditionResult = calculatorUtil.executeExpression(leftValue, operator, propValue, dataType);
|
|
458
|
-
} catch (e) {
|
|
459
|
-
console.log("executeExpression error", e);
|
|
460
|
-
conditionResult = false;
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
const leftBracket = condition.leftBracket;
|
|
464
|
-
const rightBracket = condition.rightBracket;
|
|
465
|
-
let joinSign = condition.joinSign;
|
|
466
|
-
if (leftBracket && leftBracket !== null && leftBracket !== "") {
|
|
467
|
-
conditions = conditions + leftBracket;
|
|
468
|
-
conditions = conditions + " ";
|
|
469
|
-
}
|
|
470
|
-
conditions += conditionResult + " ";
|
|
471
|
-
if (rightBracket && rightBracket !== null && rightBracket !== "") {
|
|
472
|
-
conditions = conditions + rightBracket;
|
|
473
|
-
conditions = conditions + " ";
|
|
474
|
-
}
|
|
475
|
-
if (i < maxLen - 1) {
|
|
476
|
-
if (joinSign && joinSign !== null && joinSign !== "") {
|
|
477
|
-
const joinSignIgnoreCase = joinSign.toLowerCase();
|
|
478
|
-
if (joinSignIgnoreCase === "and") {
|
|
479
|
-
joinSign = joinSignIgnoreCase.replace("and", "&&");
|
|
480
|
-
} else if (joinSignIgnoreCase === "or") {
|
|
481
|
-
joinSign = joinSignIgnoreCase.replace("or", "||");
|
|
482
|
-
}
|
|
483
|
-
conditions += joinSign + " ";
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
if (conditions) {
|
|
488
|
-
return eval("(" + conditions + ")");
|
|
489
|
-
} else {
|
|
490
|
-
return true;
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
exports.autoSetAfterSelect = autoSetAfterSelect;
|
|
494
|
-
exports.caculateShowCondition = caculateShowCondition;
|
|
495
|
-
exports.formatValueByType = formatValueByType;
|
|
496
|
-
exports.formatVariableValue = formatVariableValue;
|
|
497
|
-
exports.getOptionDatasFromPage = getOptionDatasFromPage;
|
|
498
|
-
exports.getVariableValue = getVariableValue;
|
|
499
|
-
exports.openLink = openLink;
|
|
500
|
-
exports.queryOptionDatasources = queryOptionDatasources;
|
|
501
|
-
exports.queryOptions = queryOptions;
|
|
502
|
-
exports.setVariableValue = setVariableValue;
|
|
503
|
-
exports.updateOptionDatasources = updateOptionDatasources;
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const http = require("agilebuilder-ui/src/utils/request");
|
|
4
|
-
const vueRouter = require("vue-router");
|
|
5
|
-
const pageDesignTypes = require("./interfaces/page-design-types.js");
|
|
6
|
-
const pageHelperUtil = require("./page-helper-util.js");
|
|
7
|
-
function queryPageDesignByCode(pageCode) {
|
|
8
|
-
return http.get("/component/super-page-design/runtime/" + pageCode);
|
|
9
|
-
}
|
|
10
|
-
function convertToPageContext(pageDesign, pageRequest) {
|
|
11
|
-
if (pageDesign == null) {
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
14
|
-
const pageContext = {
|
|
15
|
-
uuid: pageDesign.uuid,
|
|
16
|
-
name: pageDesign.name,
|
|
17
|
-
label: pageDesign.label,
|
|
18
|
-
code: pageDesign.code,
|
|
19
|
-
version: pageDesign.version,
|
|
20
|
-
dimensions: pageDesign.dimensions,
|
|
21
|
-
rules: pageDesign.rules,
|
|
22
|
-
// 表单验证规则
|
|
23
|
-
tableUuids: pageDesign.tableUuids,
|
|
24
|
-
// 表格uuid集合
|
|
25
|
-
tableNames: pageDesign.tableNames,
|
|
26
|
-
// 当前页面中表格对应的数据表名集合,后台保存子表记录时需要
|
|
27
|
-
formNoRuleCode: pageDesign.formNoRuleCode,
|
|
28
|
-
// 表单编号规则
|
|
29
|
-
judgeHeavyList: pageDesign.judgeHeavyList,
|
|
30
|
-
// 判重组合字段集合配置
|
|
31
|
-
conversionCodes: pageDesign.conversionCodes,
|
|
32
|
-
// 数据转换规则
|
|
33
|
-
pageType: pageDesign.pageType,
|
|
34
|
-
// 页面类型:form、list、chart
|
|
35
|
-
beanName: pageDesign.beanName,
|
|
36
|
-
// 业务处理类,继承CommonBaseService接口的类
|
|
37
|
-
importBeanName: pageDesign.importBeanName,
|
|
38
|
-
// 导入处理类,继承ImportDefinitionService接口的类
|
|
39
|
-
notIdInitializationList: pageDesign.notIdInitializationList,
|
|
40
|
-
// 无ID或taskId时初始条件配置
|
|
41
|
-
subTablePageInfo: pageDesign.subTablePageInfo,
|
|
42
|
-
// 列表分页信息,格式是:{列表编码: 每页显示多少条记录},表单页面中校验有分页的子表时提示使用,提示信息格式:第 {pageNum} 页第 {row} 行记录
|
|
43
|
-
customValidatorUuids: pageDesign.customEvents,
|
|
44
|
-
// 自定义组件启用了“自定义校验”开关的uuid集合
|
|
45
|
-
entity: {
|
|
46
|
-
data: {},
|
|
47
|
-
task: {},
|
|
48
|
-
request: getRequestObject(pageRequest),
|
|
49
|
-
//初始化request对象
|
|
50
|
-
page: {},
|
|
51
|
-
context: {},
|
|
52
|
-
system: {}
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
if (pageDesign.props.activeWorkflow && pageDesign.props.workflowSource && pageDesign.props.workflowSource === "link") {
|
|
56
|
-
pageContext.workflowCode = pageDesign.props.linkWorkflowCode;
|
|
57
|
-
} else if (pageDesign.props.activeWorkflow && pageDesign.props.workflowSource && pageDesign.props.workflowSource === "create") {
|
|
58
|
-
pageContext.workflowCode = pageDesign.props.createWorkflowCode;
|
|
59
|
-
}
|
|
60
|
-
if (pageDesign.variables) {
|
|
61
|
-
const pageObj = pageContext.entity.page;
|
|
62
|
-
for (const variable of pageDesign.variables) {
|
|
63
|
-
if (variable.name) {
|
|
64
|
-
if (variable.isArrayElement) {
|
|
65
|
-
pageObj[variable.name] = [];
|
|
66
|
-
} else {
|
|
67
|
-
pageObj[variable.name] = void 0;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
Object.assign(pageContext, pageDesign);
|
|
73
|
-
pageContext.dimensions = getPageDimensions();
|
|
74
|
-
return pageContext;
|
|
75
|
-
}
|
|
76
|
-
function getPageDimensions() {
|
|
77
|
-
const winWidth = window.outerWidth;
|
|
78
|
-
if (!winWidth) {
|
|
79
|
-
return pageDesignTypes.PageDimensions.PC;
|
|
80
|
-
}
|
|
81
|
-
if (winWidth > 768) {
|
|
82
|
-
return pageDesignTypes.PageDimensions.PC;
|
|
83
|
-
} else if (winWidth > 414) {
|
|
84
|
-
return pageDesignTypes.PageDimensions.IPAD;
|
|
85
|
-
} else {
|
|
86
|
-
return pageDesignTypes.PageDimensions.PHONE;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
function getRequestObject(pageRequest) {
|
|
90
|
-
const requestObj = {};
|
|
91
|
-
if (pageRequest) {
|
|
92
|
-
Object.assign(requestObj, pageRequest);
|
|
93
|
-
}
|
|
94
|
-
let url = decodeURI(window.location.href);
|
|
95
|
-
if (url && url.includes("?")) {
|
|
96
|
-
url = url.substring(url.lastIndexOf("?") + 1);
|
|
97
|
-
const strs = url.split("&");
|
|
98
|
-
for (const str of strs) {
|
|
99
|
-
const paramStrs = str.split("=");
|
|
100
|
-
requestObj[paramStrs[0]] = paramStrs.length > 1 ? paramStrs[1] : "";
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
const route = vueRouter.useRoute();
|
|
104
|
-
if (route) {
|
|
105
|
-
if (route.params) {
|
|
106
|
-
Object.assign(requestObj, route.params);
|
|
107
|
-
}
|
|
108
|
-
if (route.query) {
|
|
109
|
-
Object.assign(requestObj, route.query);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
if (requestObj["_t_"])
|
|
113
|
-
;
|
|
114
|
-
return requestObj;
|
|
115
|
-
}
|
|
116
|
-
function getFormModelFields(pageContext, formItemConfigure) {
|
|
117
|
-
if (!formItemConfigure) {
|
|
118
|
-
return ["temp"];
|
|
119
|
-
}
|
|
120
|
-
const entity = pageContext.entity;
|
|
121
|
-
const propsBase = formItemConfigure.props.base ? formItemConfigure.props.base : {};
|
|
122
|
-
let propName = propsBase.prop;
|
|
123
|
-
let fields = null;
|
|
124
|
-
if (!propName || !propName.startsWith("${")) {
|
|
125
|
-
fields = ["page", formItemConfigure.uuid];
|
|
126
|
-
} else {
|
|
127
|
-
propName = propName.substring(2, propName.length - 1);
|
|
128
|
-
fields = propName.split(".");
|
|
129
|
-
if (fields.length < 2) {
|
|
130
|
-
fields = [formItemConfigure.uuid];
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
if (entity.data.ID == void 0 && entity.data.ID == void 0) {
|
|
134
|
-
if (propsBase.defaultValue) {
|
|
135
|
-
let defaultValue = pageHelperUtil.formatVariableValue(pageContext, propsBase.defaultValue);
|
|
136
|
-
if (defaultValue != null && defaultValue != void 0) {
|
|
137
|
-
let isMultiple = false;
|
|
138
|
-
if (formItemConfigure.name == "checkbox") {
|
|
139
|
-
isMultiple = true;
|
|
140
|
-
} else if (formItemConfigure.name == "select") {
|
|
141
|
-
isMultiple = propsBase.multiple;
|
|
142
|
-
}
|
|
143
|
-
if (isMultiple) {
|
|
144
|
-
defaultValue = (defaultValue + "").split(",");
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
pageHelperUtil.setVariableValue(entity, fields, defaultValue);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
return fields;
|
|
151
|
-
}
|
|
152
|
-
function getPermissionCodes(configure, pageContext) {
|
|
153
|
-
if (!pageContext || pageContext.isTest || !configure) {
|
|
154
|
-
return "";
|
|
155
|
-
}
|
|
156
|
-
const codes = [];
|
|
157
|
-
if (configure.autoPermissions) {
|
|
158
|
-
for (const p of configure.autoPermissions) {
|
|
159
|
-
codes.push(pageContext.code + "." + p.simpleCode);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
if (configure.functionCodes) {
|
|
163
|
-
const sourceTypes = configure.sourceTypes ? configure.sourceTypes : [];
|
|
164
|
-
const functionCodes = configure.functionCodes;
|
|
165
|
-
for (let i = 0; i < functionCodes.length; i++) {
|
|
166
|
-
const functionCode = functionCodes[i];
|
|
167
|
-
const sourceType = i < sourceTypes.length ? sourceTypes[i] : "";
|
|
168
|
-
let newCode = "";
|
|
169
|
-
if (sourceType == "service") {
|
|
170
|
-
newCode = functionCode;
|
|
171
|
-
} else {
|
|
172
|
-
newCode = pageContext.code + "." + functionCode;
|
|
173
|
-
}
|
|
174
|
-
if (!codes.includes(newCode)) {
|
|
175
|
-
codes.push(newCode);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
return codes.join(",");
|
|
180
|
-
}
|
|
181
|
-
function queryPageSuperGrids(pageDesign, pageContext, publishVersion) {
|
|
182
|
-
const tableRuntimes = pageDesign.tableRuntimes;
|
|
183
|
-
const additionalParamMap = pageContext.entity && pageContext.entity.request && Object.keys(pageContext.entity.request).length > 0 ? pageContext.entity.request : null;
|
|
184
|
-
let additionalParamMapJson;
|
|
185
|
-
const pageCode = pageContext.code;
|
|
186
|
-
if (additionalParamMap) {
|
|
187
|
-
additionalParamMapJson = JSON.stringify(additionalParamMap);
|
|
188
|
-
}
|
|
189
|
-
return http.post("/component/super-page-design/super-grids", {
|
|
190
|
-
tableRuntimes,
|
|
191
|
-
additionalParamMapJson,
|
|
192
|
-
pageCode,
|
|
193
|
-
publishVersion
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
exports.convertToPageContext = convertToPageContext;
|
|
197
|
-
exports.getFormModelFields = getFormModelFields;
|
|
198
|
-
exports.getPermissionCodes = getPermissionCodes;
|
|
199
|
-
exports.queryPageDesignByCode = queryPageDesignByCode;
|
|
200
|
-
exports.queryPageSuperGrids = queryPageSuperGrids;
|