super-page-runtime 1.0.17 → 2.0.4
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/{lib/src → dist/es}/assets/chart-themes/theme1.js +3 -2
- package/{lib/src → dist/es}/assets/chart-themes/theme2.js +3 -2
- package/{lib/src → dist/es}/assets/chart-themes/theme3.js +3 -2
- package/{lib/src → dist/es/components/runtime}/utils/api/api-util.js +15 -15
- package/dist/es/components/runtime/utils/assemblys-config.js +257 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +28 -0
- package/{lib/src → dist/es/components/runtime}/utils/common-util.js +25 -12
- package/dist/es/components/runtime/utils/eventBus.js +11 -0
- package/{lib/src → dist/es/components/runtime}/utils/events/event-util.js +41 -40
- package/{lib/src → dist/es/components/runtime}/utils/events/standard-event.js +149 -148
- package/{lib/src → dist/es/components/runtime}/utils/events/validator-util.js +23 -23
- package/{lib/src → dist/es/components/runtime}/utils/global-refs.js +8 -8
- package/{lib/src → dist/es/components/runtime}/utils/interfaces/page-design-types.js +3 -3
- package/{lib/src → dist/es/components/runtime}/utils/page-helper-util.js +135 -19
- package/{lib/src → dist/es/components/runtime}/utils/page-init-util.js +18 -18
- package/dist/es/components/runtime/utils/page-permission-util.js +525 -0
- package/{lib/src → dist/es/components/runtime}/utils/store-util.js +5 -5
- package/{lib/src → dist/es/components/runtime}/utils/store.js +3 -2
- package/{lib/src → dist/es/components/runtime}/utils/table-utils.js +10 -9
- 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 +55 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +36 -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 +111 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +249 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +62 -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 +57 -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/gauge/gauge-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +50 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +51 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +51 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +52 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/common/export-form-report-dialog.vue.js +34 -27
- 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.js +33 -32
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/common/task-informition-dialog.vue.js +30 -29
- 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 +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/container/card/card-runtime.vue2.js +24 -23
- 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 +75 -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 +80 -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 +44 -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 +45 -0
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -8
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +70 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +17 -15
- package/{lib → dist/es/components}/runtime/views/assemblys/data/table/main-table-runtime.vue.js +66 -63
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +40 -38
- 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/{lib → dist/es/components}/runtime/views/assemblys/data/table/table-runtime.vue2.js +17 -11
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +23 -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/{lib → dist/es/components}/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +36 -35
- 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 +83 -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 +64 -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 +41 -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 +64 -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 +128 -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 +128 -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 +78 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +30 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +37 -36
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +37 -48
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/form/select/select-runtime.vue2.js +54 -53
- 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 +64 -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 +64 -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 +66 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/object-render.vue.js +35 -34
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +17 -16
- package/{lib/super-page-dialog → dist/es/components/runtime/views}/super-page-dialog.vue.js +19 -17
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +4 -0
- package/{lib → dist/es/components}/runtime/views/super-page.vue.js +129 -112
- package/dist/es/components/runtime/views/super-page.vue2.js +4 -0
- package/dist/es/index.d.ts +8 -0
- package/dist/es/index.js +15 -0
- package/package.json +71 -71
- 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/common/remove-signer-dialog.vue.d.ts +0 -35
- package/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/lib/components/runtime/views/super-page.vue.d.ts +0 -91
- package/lib/components/super-page-dialog/index.d.ts +0 -3
- package/lib/components/super-page-dialog/super-page-dialog.vue.d.ts +0 -36
- 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.vue2.js +0 -3
- package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
- 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/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/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/data/table/main-table-runtime.vue2.js +0 -3
- 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/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/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/rich-text/richtext-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
- 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.vue2.js +0 -3
- package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
- package/lib/runtime/views/super-page.vue2.js +0 -3
- package/lib/src/utils/api/api-util.d.ts +0 -11
- package/lib/src/utils/charts/chart-util.js +0 -15
- package/lib/src/utils/common-util.d.ts +0 -11
- package/lib/src/utils/events/event-util.d.ts +0 -48
- package/lib/src/utils/events/standard-event.d.ts +0 -61
- package/lib/src/utils/events/validator-util.d.ts +0 -4
- package/lib/src/utils/global-refs.d.ts +0 -59
- package/lib/src/utils/interfaces/page-design-types.d.ts +0 -221
- package/lib/src/utils/page-helper-util.d.ts +0 -87
- package/lib/src/utils/page-init-util.d.ts +0 -38
- package/lib/src/utils/store-util.d.ts +0 -15
- package/lib/src/utils/store.d.ts +0 -2
- package/lib/super-page-dialog/index.js +0 -3
- 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/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/{lib → dist/es}/favicon.ico +0 -0
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const globalRefs = require("../global-refs.js");
|
|
6
|
-
const util = require("agilebuilder-ui/src/utils/util");
|
|
1
|
+
import Validator from "async-validator";
|
|
2
|
+
import { ElMessage } from "element-plus";
|
|
3
|
+
import { getComponentRef } from "../global-refs.js";
|
|
4
|
+
import { getI18n } from "agilebuilder-ui/src/utils/util";
|
|
7
5
|
function setObjectPropRule(prop, rules, leafRule) {
|
|
8
6
|
const rule = {};
|
|
9
7
|
if (!rules) {
|
|
@@ -138,11 +136,11 @@ function validatorEntity(entity, rules, columns, rowIndex, isShouldRepeateValdat
|
|
|
138
136
|
result = errors[0].message;
|
|
139
137
|
fieldName = errors[0]["field"];
|
|
140
138
|
if (typeof rowIndex !== "undefined" && rowIndex !== null) {
|
|
141
|
-
result =
|
|
139
|
+
result = getI18n().t("superPageRuntimeMessage.recordLine", {
|
|
142
140
|
row: rowIndex + 1
|
|
143
141
|
}) + "," + result;
|
|
144
142
|
}
|
|
145
|
-
|
|
143
|
+
ElMessage({
|
|
146
144
|
message: result,
|
|
147
145
|
showClose: true,
|
|
148
146
|
type: "warning",
|
|
@@ -224,7 +222,7 @@ function validateWorkflowFormDataModel(dataModel, pageContext, customRules) {
|
|
|
224
222
|
);
|
|
225
223
|
}
|
|
226
224
|
if (result !== true) {
|
|
227
|
-
|
|
225
|
+
ElMessage({
|
|
228
226
|
showClose: true,
|
|
229
227
|
message: result + "",
|
|
230
228
|
type: "warning"
|
|
@@ -235,7 +233,7 @@ function validateWorkflowFormDataModel(dataModel, pageContext, customRules) {
|
|
|
235
233
|
const customUuids = pageContext.customValidatorUuids;
|
|
236
234
|
if (customUuids) {
|
|
237
235
|
customUuids.forEach((componentUuid) => {
|
|
238
|
-
const customRef =
|
|
236
|
+
const customRef = getComponentRef(pageContext, componentUuid);
|
|
239
237
|
if (customRef) {
|
|
240
238
|
validatorResult.push(customRef.validator());
|
|
241
239
|
}
|
|
@@ -279,12 +277,12 @@ function validateCommonFormDataModel(dataModel, pageContext, rules, customRules)
|
|
|
279
277
|
} else {
|
|
280
278
|
reject(
|
|
281
279
|
new Error(
|
|
282
|
-
|
|
280
|
+
getI18n().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")
|
|
283
281
|
).message
|
|
284
282
|
);
|
|
285
283
|
}
|
|
286
284
|
} else {
|
|
287
|
-
reject(new Error(
|
|
285
|
+
reject(new Error(getI18n().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
288
286
|
}
|
|
289
287
|
}
|
|
290
288
|
});
|
|
@@ -325,7 +323,7 @@ function validateSubTables(pageContext) {
|
|
|
325
323
|
}
|
|
326
324
|
for (let i = 0; i < tableUuidArr.length; i++) {
|
|
327
325
|
const tableUuid = tableUuidArr[i];
|
|
328
|
-
const refDom =
|
|
326
|
+
const refDom = getComponentRef(pageContext, tableUuid);
|
|
329
327
|
if (refDom) {
|
|
330
328
|
const flag = refDom.validatorSunTableListData();
|
|
331
329
|
if (!flag) {
|
|
@@ -346,28 +344,28 @@ function i18nValidateRulesMessage(rules) {
|
|
|
346
344
|
const propRules = rules[propName];
|
|
347
345
|
propRules.forEach((rule) => {
|
|
348
346
|
const label = rule["label"];
|
|
349
|
-
const i18nLabel =
|
|
347
|
+
const i18nLabel = getI18n().t(label);
|
|
350
348
|
if (rule["required"]) {
|
|
351
|
-
rule["message"] =
|
|
349
|
+
rule["message"] = getI18n().t("superPageRuntimeMessage.required", { label: i18nLabel });
|
|
352
350
|
}
|
|
353
351
|
if (rule["myType"]) {
|
|
354
|
-
rule["message"] =
|
|
352
|
+
rule["message"] = getI18n().t("superPageRuntimeMessage.formatMismatch", {
|
|
355
353
|
label: i18nLabel
|
|
356
354
|
});
|
|
357
355
|
}
|
|
358
356
|
if (rule["patternType"]) {
|
|
359
|
-
rule["message"] =
|
|
357
|
+
rule["message"] = getI18n().t("superPageRuntimeMessage.formatMismatch", {
|
|
360
358
|
label: i18nLabel
|
|
361
359
|
});
|
|
362
360
|
}
|
|
363
361
|
if (rule["max"] !== void 0 && rule["max"] !== null) {
|
|
364
|
-
rule["message"] =
|
|
362
|
+
rule["message"] = getI18n().t("superPageRuntimeMessage.overMaxLength", {
|
|
365
363
|
label: i18nLabel,
|
|
366
364
|
value: rule["max"]
|
|
367
365
|
});
|
|
368
366
|
}
|
|
369
367
|
if (rule["min"] !== void 0 && rule["min"] !== null) {
|
|
370
|
-
rule["message"] =
|
|
368
|
+
rule["message"] = getI18n().t("superPageRuntimeMessage.limitMinLength", {
|
|
371
369
|
label: i18nLabel,
|
|
372
370
|
value: rule["min"]
|
|
373
371
|
});
|
|
@@ -383,7 +381,9 @@ function i18nValidateRulesMessage(rules) {
|
|
|
383
381
|
}
|
|
384
382
|
return newRules;
|
|
385
383
|
}
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
384
|
+
export {
|
|
385
|
+
i18nValidateRulesMessage,
|
|
386
|
+
setObjectPropRule,
|
|
387
|
+
validateDataModelFunc,
|
|
388
|
+
validator
|
|
389
|
+
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
require("vue");
|
|
1
|
+
import "vue";
|
|
4
2
|
if (!window["globalRefs"]) {
|
|
5
3
|
window["globalRefs"] = {};
|
|
6
4
|
}
|
|
@@ -58,8 +56,10 @@ function getPageRefKey(pageCode, pageVersion) {
|
|
|
58
56
|
function getPageRefKeyByCode(pageCode, pageVersion) {
|
|
59
57
|
return getPageRefKey(pageCode, pageVersion) + "-code";
|
|
60
58
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
export {
|
|
60
|
+
addComponentRef,
|
|
61
|
+
addComponentRefByCode,
|
|
62
|
+
getComponentRef,
|
|
63
|
+
initComponentRefState,
|
|
64
|
+
removePageAllRef
|
|
65
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
1
|
var PageDimensions = /* @__PURE__ */ ((PageDimensions2) => {
|
|
4
2
|
PageDimensions2["PC"] = "pc";
|
|
5
3
|
PageDimensions2["IPAD"] = "ipad";
|
|
6
4
|
PageDimensions2["PHONE"] = "phone";
|
|
7
5
|
return PageDimensions2;
|
|
8
6
|
})(PageDimensions || {});
|
|
9
|
-
|
|
7
|
+
export {
|
|
8
|
+
PageDimensions
|
|
9
|
+
};
|
|
@@ -1,9 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import http from "agilebuilder-ui/src/utils/request";
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
|
+
import { executeExpression } from "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
4
|
+
import { getComponentRef } from "./global-refs.js";
|
|
5
|
+
function getComponentOptionConfigs(component, pageContext2) {
|
|
6
|
+
if (!component.props || !component.props.dataOrigin) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
const dataOriginInfo = component.props.dataOrigin;
|
|
10
|
+
const infoObj = {
|
|
11
|
+
uuid: component.uuid
|
|
12
|
+
};
|
|
13
|
+
if (dataOriginInfo.optionValueSetType == "optionGroup") {
|
|
14
|
+
infoObj.type = "optionGroup";
|
|
15
|
+
infoObj.props = {
|
|
16
|
+
code: dataOriginInfo.optionGroup
|
|
17
|
+
};
|
|
18
|
+
} else if (dataOriginInfo.optionValueSetType == "dynamicData") {
|
|
19
|
+
infoObj.type = "dynamicData";
|
|
20
|
+
infoObj.filterType = dataOriginInfo.filterType;
|
|
21
|
+
infoObj.props = {
|
|
22
|
+
code: dataOriginInfo.dynamicDataSourceCode
|
|
23
|
+
};
|
|
24
|
+
} else if (dataOriginInfo.optionValueSetType == "dataTable") {
|
|
25
|
+
infoObj.filterType = dataOriginInfo.filterType;
|
|
26
|
+
const tempObj = getTableQueryInfo(dataOriginInfo, pageContext2);
|
|
27
|
+
Object.assign(infoObj, tempObj);
|
|
28
|
+
} else if (dataOriginInfo.optionValueSetType == "service") {
|
|
29
|
+
infoObj.filterType = dataOriginInfo.filterType;
|
|
30
|
+
const tempObj = getServiceQueryInfo(dataOriginInfo, pageContext2);
|
|
31
|
+
Object.assign(infoObj, tempObj);
|
|
32
|
+
}
|
|
33
|
+
if (infoObj.type) {
|
|
34
|
+
return infoObj;
|
|
35
|
+
} else {
|
|
36
|
+
return void 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
7
39
|
function getTableQueryInfo(dataOriginInfo, pageContext2) {
|
|
8
40
|
const infoObj = {};
|
|
9
41
|
infoObj.type = "dataTable";
|
|
@@ -69,6 +101,77 @@ function getTableQueryInfo(dataOriginInfo, pageContext2) {
|
|
|
69
101
|
infoObj.props.pageSize = dataOriginInfo.displayQuantity;
|
|
70
102
|
return infoObj;
|
|
71
103
|
}
|
|
104
|
+
function getServiceQueryInfo(dataOriginInfo, pageContext2) {
|
|
105
|
+
const infoObj = {};
|
|
106
|
+
infoObj.type = "service";
|
|
107
|
+
infoObj.props = {
|
|
108
|
+
serivceCode: dataOriginInfo.serviceCode,
|
|
109
|
+
systemCode: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : pageContext2.systemCode,
|
|
110
|
+
systemVersion: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : pageContext2.systemCode
|
|
111
|
+
};
|
|
112
|
+
if (dataOriginInfo.serviceInputs) {
|
|
113
|
+
const searchForm = [];
|
|
114
|
+
for (const f of dataOriginInfo.serviceInputs) {
|
|
115
|
+
if (!f.name || f.value) {
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
const tempObj = {};
|
|
119
|
+
Object.assign(tempObj, f);
|
|
120
|
+
searchForm.push(tempObj);
|
|
121
|
+
}
|
|
122
|
+
infoObj.props.inputs = searchForm;
|
|
123
|
+
}
|
|
124
|
+
infoObj.props.dataSetField = dataOriginInfo.serviceDataSetField;
|
|
125
|
+
infoObj.props.valueField = dataOriginInfo.serviceValueField;
|
|
126
|
+
infoObj.props.labelField = dataOriginInfo.serviceLabelField;
|
|
127
|
+
return infoObj;
|
|
128
|
+
}
|
|
129
|
+
function updateChartDatasources(pageContext2, dataSourceConfs) {
|
|
130
|
+
return new Promise((resolve, reject) => {
|
|
131
|
+
if (!dataSourceConfs || dataSourceConfs.length == 0) {
|
|
132
|
+
reject(new Error("无需查询的统计图配置!"));
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
const entityData2 = pageContext2.entity ? pageContext2.entity : {};
|
|
136
|
+
const additionalParamMap = {};
|
|
137
|
+
if (entityData2.request) {
|
|
138
|
+
Object.assign(additionalParamMap, entityData2.request);
|
|
139
|
+
}
|
|
140
|
+
if (entityData2.page) {
|
|
141
|
+
Object.assign(additionalParamMap, entityData2.page);
|
|
142
|
+
}
|
|
143
|
+
const taskMap = {};
|
|
144
|
+
if (entityData2.task) {
|
|
145
|
+
Object.assign(taskMap, entityData2.task);
|
|
146
|
+
}
|
|
147
|
+
const param = {
|
|
148
|
+
entityMap: entityData2.data,
|
|
149
|
+
additionalParamMap,
|
|
150
|
+
taskMap,
|
|
151
|
+
dataSourceList: dataSourceConfs,
|
|
152
|
+
systemCode: pageContext2.systemCode,
|
|
153
|
+
pageCode: pageContext2.code
|
|
154
|
+
};
|
|
155
|
+
const url = window["$vueApp"].config.globalProperties.baseAPI + "common/common-data/find-chart-datas";
|
|
156
|
+
http.post(url, param).then((result) => {
|
|
157
|
+
if (!pageContext2.chartDataSourceMap) {
|
|
158
|
+
pageContext2.chartDataSourceMap = {};
|
|
159
|
+
}
|
|
160
|
+
for (const uuid in result) {
|
|
161
|
+
pageContext2.chartDataSourceMap[uuid] = result[uuid];
|
|
162
|
+
const componentObj = getComponentRef(pageContext2, uuid);
|
|
163
|
+
if (componentObj && componentObj.updateChartDatas) {
|
|
164
|
+
componentObj.updateChartDatas(result[uuid]);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
console.log("查询统计图数据完成", result);
|
|
168
|
+
resolve(result);
|
|
169
|
+
}).catch((error) => {
|
|
170
|
+
console.log("查询统计图数据失败", error);
|
|
171
|
+
reject(error);
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
}
|
|
72
175
|
function updateOptionDatasources(pageContext2, dataSourceConfs, query) {
|
|
73
176
|
return new Promise((resolve, reject) => {
|
|
74
177
|
if (!dataSourceConfs || dataSourceConfs.length == 0) {
|
|
@@ -98,7 +201,7 @@ function updateOptionDatasources(pageContext2, dataSourceConfs, query) {
|
|
|
98
201
|
}
|
|
99
202
|
for (const uuid in result) {
|
|
100
203
|
pageContext2.optionSourceMap[uuid] = result[uuid];
|
|
101
|
-
const componentObj =
|
|
204
|
+
const componentObj = getComponentRef(pageContext2, uuid);
|
|
102
205
|
if (componentObj && componentObj.updateOptions) {
|
|
103
206
|
componentObj.updateOptions(result[uuid]);
|
|
104
207
|
}
|
|
@@ -118,6 +221,13 @@ function getOptionDatasFromPage(pageContext2, configure2) {
|
|
|
118
221
|
const cacheOptions = pageContext2.optionSourceMap[configure2.uuid];
|
|
119
222
|
return cacheOptions ? cacheOptions : [];
|
|
120
223
|
}
|
|
224
|
+
function getChartDatasFromPage(pageContext2, configure2) {
|
|
225
|
+
if (!pageContext2 || !pageContext2.chartDataSourceMap || !configure2) {
|
|
226
|
+
return null;
|
|
227
|
+
}
|
|
228
|
+
const cacheDatas = pageContext2.chartDataSourceMap[configure2.uuid];
|
|
229
|
+
return cacheDatas;
|
|
230
|
+
}
|
|
121
231
|
function queryOptionDatasources(pageContext2, dataSourceConf, query) {
|
|
122
232
|
return updateOptionDatasources(pageContext2, dataSourceConf ? [dataSourceConf] : [], query);
|
|
123
233
|
}
|
|
@@ -454,7 +564,7 @@ function caculateShowCondition(pageContext, configure, showConditions) {
|
|
|
454
564
|
}
|
|
455
565
|
if (conditionResult == void 0) {
|
|
456
566
|
try {
|
|
457
|
-
conditionResult =
|
|
567
|
+
conditionResult = executeExpression(leftValue, operator, propValue, dataType);
|
|
458
568
|
} catch (e) {
|
|
459
569
|
console.log("executeExpression error", e);
|
|
460
570
|
conditionResult = false;
|
|
@@ -490,14 +600,20 @@ function caculateShowCondition(pageContext, configure, showConditions) {
|
|
|
490
600
|
return true;
|
|
491
601
|
}
|
|
492
602
|
}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
603
|
+
export {
|
|
604
|
+
autoSetAfterSelect,
|
|
605
|
+
caculateShowCondition,
|
|
606
|
+
formatValueByType,
|
|
607
|
+
formatVariableValue,
|
|
608
|
+
getChartDatasFromPage,
|
|
609
|
+
getComponentOptionConfigs,
|
|
610
|
+
getOptionDatasFromPage,
|
|
611
|
+
getValueFromSource,
|
|
612
|
+
getVariableValue,
|
|
613
|
+
openLink,
|
|
614
|
+
queryOptionDatasources,
|
|
615
|
+
queryOptions,
|
|
616
|
+
setVariableValue,
|
|
617
|
+
updateChartDatasources,
|
|
618
|
+
updateOptionDatasources
|
|
619
|
+
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const pageDesignTypes = require("./interfaces/page-design-types.js");
|
|
6
|
-
const pageHelperUtil = require("./page-helper-util.js");
|
|
1
|
+
import http from "agilebuilder-ui/src/utils/request";
|
|
2
|
+
import { useRoute } from "vue-router";
|
|
3
|
+
import { PageDimensions } from "./interfaces/page-design-types.js";
|
|
4
|
+
import { formatVariableValue, setVariableValue } from "./page-helper-util.js";
|
|
7
5
|
function queryPageDesignByCode(pageCode) {
|
|
8
6
|
return http.get("/component/super-page-design/runtime/" + pageCode);
|
|
9
7
|
}
|
|
@@ -76,14 +74,14 @@ function convertToPageContext(pageDesign, pageRequest) {
|
|
|
76
74
|
function getPageDimensions() {
|
|
77
75
|
const winWidth = window.outerWidth;
|
|
78
76
|
if (!winWidth) {
|
|
79
|
-
return
|
|
77
|
+
return PageDimensions.PC;
|
|
80
78
|
}
|
|
81
79
|
if (winWidth > 768) {
|
|
82
|
-
return
|
|
80
|
+
return PageDimensions.PC;
|
|
83
81
|
} else if (winWidth > 414) {
|
|
84
|
-
return
|
|
82
|
+
return PageDimensions.IPAD;
|
|
85
83
|
} else {
|
|
86
|
-
return
|
|
84
|
+
return PageDimensions.PHONE;
|
|
87
85
|
}
|
|
88
86
|
}
|
|
89
87
|
function getRequestObject(pageRequest) {
|
|
@@ -100,7 +98,7 @@ function getRequestObject(pageRequest) {
|
|
|
100
98
|
requestObj[paramStrs[0]] = paramStrs.length > 1 ? paramStrs[1] : "";
|
|
101
99
|
}
|
|
102
100
|
}
|
|
103
|
-
const route =
|
|
101
|
+
const route = useRoute();
|
|
104
102
|
if (route) {
|
|
105
103
|
if (route.params) {
|
|
106
104
|
Object.assign(requestObj, route.params);
|
|
@@ -132,7 +130,7 @@ function getFormModelFields(pageContext, formItemConfigure) {
|
|
|
132
130
|
}
|
|
133
131
|
if (entity.data.ID == void 0 && entity.data.ID == void 0) {
|
|
134
132
|
if (propsBase.defaultValue) {
|
|
135
|
-
let defaultValue =
|
|
133
|
+
let defaultValue = formatVariableValue(pageContext, propsBase.defaultValue);
|
|
136
134
|
if (defaultValue != null && defaultValue != void 0) {
|
|
137
135
|
let isMultiple = false;
|
|
138
136
|
if (formItemConfigure.name == "checkbox") {
|
|
@@ -144,7 +142,7 @@ function getFormModelFields(pageContext, formItemConfigure) {
|
|
|
144
142
|
defaultValue = (defaultValue + "").split(",");
|
|
145
143
|
}
|
|
146
144
|
}
|
|
147
|
-
|
|
145
|
+
setVariableValue(entity, fields, defaultValue);
|
|
148
146
|
}
|
|
149
147
|
}
|
|
150
148
|
return fields;
|
|
@@ -193,8 +191,10 @@ function queryPageSuperGrids(pageDesign, pageContext, publishVersion) {
|
|
|
193
191
|
publishVersion
|
|
194
192
|
});
|
|
195
193
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
194
|
+
export {
|
|
195
|
+
convertToPageContext,
|
|
196
|
+
getFormModelFields,
|
|
197
|
+
getPermissionCodes,
|
|
198
|
+
queryPageDesignByCode,
|
|
199
|
+
queryPageSuperGrids
|
|
200
|
+
};
|