super-page-runtime 1.0.17 → 2.0.1
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/assets/chart-themes/theme1.d.ts +4 -0
- package/{lib/src → dist/es}/assets/chart-themes/theme1.js +3 -2
- package/dist/es/assets/chart-themes/theme2.d.ts +4 -0
- package/{lib/src → dist/es}/assets/chart-themes/theme2.js +3 -2
- package/dist/es/assets/chart-themes/theme3.d.ts +4 -0
- package/{lib/src → dist/es}/assets/chart-themes/theme3.js +3 -2
- package/dist/es/components/runtime/index.d.ts +4 -0
- 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.d.ts +11 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +28 -0
- package/{lib/src → dist/es/components/runtime}/utils/common-util.d.ts +5 -0
- package/{lib/src → dist/es/components/runtime}/utils/common-util.js +25 -12
- package/dist/es/components/runtime/utils/eventBus.d.ts +7 -0
- package/dist/es/components/runtime/utils/eventBus.js +11 -0
- package/{lib/src → dist/es/components/runtime}/utils/events/event-util.d.ts +1 -1
- 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.d.ts +2 -0
- 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.d.ts +19 -0
- 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.d.ts +26 -0
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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 +70 -71
- package/src/index.ts +15 -0
- 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/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.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/charts/chart-util.js +0 -15
- 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/src → dist/es/components/runtime}/utils/api/api-util.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/events/standard-event.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/events/validator-util.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/global-refs.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/page-init-util.d.ts +0 -0
- /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}/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -0
- /package/{lib → dist/es}/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -0
- /package/{lib → dist/es}/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -0
- /package/{lib → dist/es}/components/runtime/views/assemblys/error-render.vue.d.ts +0 -0
- /package/{lib/components/super-page-dialog → dist/es/components/runtime/views}/super-page-dialog.vue.d.ts +0 -0
- /package/{lib → dist/es}/favicon.ico +0 -0
|
@@ -0,0 +1,525 @@
|
|
|
1
|
+
var FuncType = /* @__PURE__ */ ((FuncType2) => {
|
|
2
|
+
FuncType2["AUTHENTICATED"] = "AUTHENTICATED";
|
|
3
|
+
FuncType2["ANONYMOUS"] = "ANONYMOUS";
|
|
4
|
+
FuncType2["AUTHORIZED"] = "AUTHORIZED";
|
|
5
|
+
return FuncType2;
|
|
6
|
+
})(FuncType || {});
|
|
7
|
+
const standardFuncUrlMap = {
|
|
8
|
+
page: {
|
|
9
|
+
label: "页面",
|
|
10
|
+
functions: [
|
|
11
|
+
{
|
|
12
|
+
label: "页面",
|
|
13
|
+
path: "temp"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
gets: {
|
|
18
|
+
group: "表单标准功能",
|
|
19
|
+
label: "获取表单数据",
|
|
20
|
+
functions: [
|
|
21
|
+
{
|
|
22
|
+
funcType: "AUTHENTICATED",
|
|
23
|
+
path: "/commons/gets$POST"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
workflowGets: {
|
|
28
|
+
group: "标准流程",
|
|
29
|
+
label: "获取表单及流程数据",
|
|
30
|
+
functions: [
|
|
31
|
+
{
|
|
32
|
+
funcType: "AUTHENTICATED",
|
|
33
|
+
path: "/workflow-commons/gets$POST"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
save: {
|
|
38
|
+
group: "表单标准功能",
|
|
39
|
+
label: "暂存",
|
|
40
|
+
functions: [
|
|
41
|
+
{
|
|
42
|
+
code: "create",
|
|
43
|
+
label: "暂存",
|
|
44
|
+
path: "/commons$POST"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
code: "update",
|
|
48
|
+
label: "修改",
|
|
49
|
+
path: "/commons$POST"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
submit: {
|
|
54
|
+
group: "表单标准功能",
|
|
55
|
+
label: "提交",
|
|
56
|
+
functions: [
|
|
57
|
+
{
|
|
58
|
+
path: "/commons/submits$POST"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
exportForm: {
|
|
63
|
+
group: "表单标准功能",
|
|
64
|
+
label: "导出报告",
|
|
65
|
+
functions: [
|
|
66
|
+
{
|
|
67
|
+
path: "/commons/export-reports$POST"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
exportPDF: {
|
|
72
|
+
group: "表单标准功能",
|
|
73
|
+
label: "导出PDF",
|
|
74
|
+
functions: [
|
|
75
|
+
{
|
|
76
|
+
path: "/commons/exportPDF$POST"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
agree: {
|
|
81
|
+
group: "表单标准功能",
|
|
82
|
+
label: "同意",
|
|
83
|
+
functions: [
|
|
84
|
+
{
|
|
85
|
+
path: "/commons/approves$POST"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
disagree: {
|
|
90
|
+
group: "表单标准功能",
|
|
91
|
+
label: "不同意",
|
|
92
|
+
functions: [
|
|
93
|
+
{
|
|
94
|
+
path: "/commons/refuses$POST"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
back: {
|
|
99
|
+
group: "表单标准功能",
|
|
100
|
+
label: "返回",
|
|
101
|
+
functions: []
|
|
102
|
+
//无资源时表示不需要控制
|
|
103
|
+
},
|
|
104
|
+
workflowSave: {
|
|
105
|
+
group: "流程表单功能",
|
|
106
|
+
label: "暂存",
|
|
107
|
+
functions: [
|
|
108
|
+
{
|
|
109
|
+
funcType: "AUTHENTICATED",
|
|
110
|
+
//公用
|
|
111
|
+
path: "/workflow-commons$POST"
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
submitProcess: {
|
|
116
|
+
group: "流程表单功能",
|
|
117
|
+
label: "提交流程",
|
|
118
|
+
functions: [
|
|
119
|
+
{
|
|
120
|
+
funcType: "AUTHENTICATED",
|
|
121
|
+
//公用
|
|
122
|
+
path: "/workflow-commons/submit$POST"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
submitTask: {
|
|
127
|
+
group: "流程表单功能",
|
|
128
|
+
label: "提交任务",
|
|
129
|
+
functions: [
|
|
130
|
+
{
|
|
131
|
+
funcType: "AUTHENTICATED",
|
|
132
|
+
//公用
|
|
133
|
+
code: "completeTask.submitTask",
|
|
134
|
+
path: "/workflow-commons/complete-tasks$POST"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
approve: {
|
|
139
|
+
group: "流程表单功能",
|
|
140
|
+
label: "同意",
|
|
141
|
+
functions: [
|
|
142
|
+
{
|
|
143
|
+
funcType: "AUTHENTICATED",
|
|
144
|
+
//公用
|
|
145
|
+
code: "completeTask.approve",
|
|
146
|
+
path: "/workflow-commons/complete-tasks$POST"
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
refuse: {
|
|
151
|
+
group: "流程表单功能",
|
|
152
|
+
label: "不同意",
|
|
153
|
+
functions: [
|
|
154
|
+
{
|
|
155
|
+
funcType: "AUTHENTICATED",
|
|
156
|
+
//公用
|
|
157
|
+
code: "completeTask.refuse",
|
|
158
|
+
path: "/workflow-commons/complete-tasks$POST"
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
assign: {
|
|
163
|
+
group: "流程表单功能",
|
|
164
|
+
label: "指派",
|
|
165
|
+
functions: [
|
|
166
|
+
{
|
|
167
|
+
funcType: "AUTHENTICATED",
|
|
168
|
+
//公用
|
|
169
|
+
path: "/workflow-commons/assigns$POST"
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
drawTask: {
|
|
174
|
+
group: "流程表单功能",
|
|
175
|
+
label: "领取",
|
|
176
|
+
functions: [
|
|
177
|
+
{
|
|
178
|
+
funcType: "AUTHENTICATED",
|
|
179
|
+
//公用
|
|
180
|
+
path: "/workflow-commons/draw-tasks$POST"
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
abandonReceive: {
|
|
185
|
+
group: "流程表单功能",
|
|
186
|
+
label: "放弃领取",
|
|
187
|
+
functions: [
|
|
188
|
+
{
|
|
189
|
+
funcType: "AUTHENTICATED",
|
|
190
|
+
//公用
|
|
191
|
+
path: "/workflow-commons/abandon-receives$POST"
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
readed: {
|
|
196
|
+
group: "流程表单功能",
|
|
197
|
+
label: "已阅",
|
|
198
|
+
functions: [
|
|
199
|
+
{
|
|
200
|
+
funcType: "AUTHENTICATED",
|
|
201
|
+
//公用
|
|
202
|
+
code: "completeTask.readed",
|
|
203
|
+
path: "/workflow-commons/complete-tasks$POST"
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
agreement: {
|
|
208
|
+
group: "流程表单功能",
|
|
209
|
+
label: "赞成",
|
|
210
|
+
functions: [
|
|
211
|
+
{
|
|
212
|
+
funcType: "AUTHENTICATED",
|
|
213
|
+
//公用
|
|
214
|
+
code: "completeTask.agreement",
|
|
215
|
+
path: "/workflow-commons/complete-tasks$POST"
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
oppose: {
|
|
220
|
+
group: "流程表单功能",
|
|
221
|
+
label: "反对",
|
|
222
|
+
functions: [
|
|
223
|
+
{
|
|
224
|
+
funcType: "AUTHENTICATED",
|
|
225
|
+
//公用
|
|
226
|
+
code: "completeTask.oppose",
|
|
227
|
+
path: "/workflow-commons/complete-tasks$POST"
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
kiken: {
|
|
232
|
+
group: "流程表单功能",
|
|
233
|
+
label: "弃权",
|
|
234
|
+
functions: [
|
|
235
|
+
{
|
|
236
|
+
funcType: "AUTHENTICATED",
|
|
237
|
+
//公用
|
|
238
|
+
code: "completeTask.kiken",
|
|
239
|
+
path: "/workflow-commons/complete-tasks$POST"
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
addSigner: {
|
|
244
|
+
group: "流程表单功能",
|
|
245
|
+
label: "加签",
|
|
246
|
+
functions: [
|
|
247
|
+
{
|
|
248
|
+
funcType: "AUTHENTICATED",
|
|
249
|
+
//公用
|
|
250
|
+
path: "/workflow-commons/add-signers$POST"
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
removeSigner: {
|
|
255
|
+
group: "流程表单功能",
|
|
256
|
+
label: "减签",
|
|
257
|
+
functions: [
|
|
258
|
+
{
|
|
259
|
+
funcType: "AUTHENTICATED",
|
|
260
|
+
//公用
|
|
261
|
+
path: "/workflow-commons/abandon-receives$POST"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
code: "getRemoveSigners",
|
|
265
|
+
//有编码时,以此为准
|
|
266
|
+
label: "获取可减签人员",
|
|
267
|
+
//有标题时,以此为准
|
|
268
|
+
funcType: "AUTHENTICATED",
|
|
269
|
+
//公用
|
|
270
|
+
path: "/workflow-commons/get-remove-signers$POST"
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
copyTask: {
|
|
275
|
+
group: "流程表单功能",
|
|
276
|
+
label: "抄送",
|
|
277
|
+
functions: [
|
|
278
|
+
{
|
|
279
|
+
funcType: "AUTHENTICATED",
|
|
280
|
+
//公用
|
|
281
|
+
path: "/workflow-commons/copies$POST"
|
|
282
|
+
}
|
|
283
|
+
]
|
|
284
|
+
},
|
|
285
|
+
retrieveTask: {
|
|
286
|
+
group: "流程表单功能",
|
|
287
|
+
label: "取回",
|
|
288
|
+
functions: [
|
|
289
|
+
{
|
|
290
|
+
funcType: "AUTHENTICATED",
|
|
291
|
+
//公用
|
|
292
|
+
path: "/workflow-commons/retrieves$POST"
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
returnToPreviousTask: {
|
|
297
|
+
group: "流程表单功能",
|
|
298
|
+
label: "驳回",
|
|
299
|
+
functions: [
|
|
300
|
+
{
|
|
301
|
+
funcType: "AUTHENTICATED",
|
|
302
|
+
//公用
|
|
303
|
+
path: "/workflow-commons/returnTaskTo$POST"
|
|
304
|
+
}
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
returnTaskTo: {
|
|
308
|
+
group: "流程表单功能",
|
|
309
|
+
label: "退回",
|
|
310
|
+
functions: [
|
|
311
|
+
{
|
|
312
|
+
funcType: "AUTHENTICATED",
|
|
313
|
+
//公用
|
|
314
|
+
path: "/workflow-commons/return-to-previous-tasks$POST"
|
|
315
|
+
}
|
|
316
|
+
]
|
|
317
|
+
},
|
|
318
|
+
endInstance: {
|
|
319
|
+
group: "流程表单功能",
|
|
320
|
+
label: "强制结束",
|
|
321
|
+
functions: [
|
|
322
|
+
{
|
|
323
|
+
funcType: "AUTHENTICATED",
|
|
324
|
+
//公用
|
|
325
|
+
path: "/workflow-commons/end-instance$POST"
|
|
326
|
+
}
|
|
327
|
+
]
|
|
328
|
+
},
|
|
329
|
+
listData: {
|
|
330
|
+
group: "列表功能",
|
|
331
|
+
label: "列表数据",
|
|
332
|
+
functions: [
|
|
333
|
+
{
|
|
334
|
+
funcType: "AUTHENTICATED",
|
|
335
|
+
//公用
|
|
336
|
+
path: "/commons/list$POST"
|
|
337
|
+
}
|
|
338
|
+
]
|
|
339
|
+
},
|
|
340
|
+
listSubData: {
|
|
341
|
+
group: "列表功能",
|
|
342
|
+
label: "列表子级",
|
|
343
|
+
functions: [
|
|
344
|
+
{
|
|
345
|
+
funcType: "AUTHENTICATED",
|
|
346
|
+
//公用
|
|
347
|
+
path: "/commons/list-subs$POST"
|
|
348
|
+
}
|
|
349
|
+
]
|
|
350
|
+
},
|
|
351
|
+
saveList: {
|
|
352
|
+
group: "列表功能",
|
|
353
|
+
label: "暂存",
|
|
354
|
+
functions: [
|
|
355
|
+
{
|
|
356
|
+
code: "create",
|
|
357
|
+
label: "暂存",
|
|
358
|
+
path: "/commons$POST"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
funcType: "AUTHENTICATED",
|
|
362
|
+
//公用
|
|
363
|
+
code: "update",
|
|
364
|
+
label: "修改",
|
|
365
|
+
path: "/commons$POST"
|
|
366
|
+
}
|
|
367
|
+
]
|
|
368
|
+
},
|
|
369
|
+
delete: {
|
|
370
|
+
group: "列表功能",
|
|
371
|
+
label: "删除",
|
|
372
|
+
functions: [
|
|
373
|
+
{
|
|
374
|
+
path: "/commons/{tableName}$DELETE"
|
|
375
|
+
}
|
|
376
|
+
]
|
|
377
|
+
},
|
|
378
|
+
submitList: {
|
|
379
|
+
group: "列表功能",
|
|
380
|
+
label: "提交",
|
|
381
|
+
functions: [
|
|
382
|
+
{
|
|
383
|
+
path: "/commons/batch-submits$POST"
|
|
384
|
+
}
|
|
385
|
+
]
|
|
386
|
+
},
|
|
387
|
+
agreeList: {
|
|
388
|
+
group: "列表功能",
|
|
389
|
+
label: "同意",
|
|
390
|
+
functions: [
|
|
391
|
+
{
|
|
392
|
+
path: "/commons/batch-approves$POST"
|
|
393
|
+
}
|
|
394
|
+
]
|
|
395
|
+
},
|
|
396
|
+
disagreeList: {
|
|
397
|
+
group: "列表功能",
|
|
398
|
+
label: "不同意",
|
|
399
|
+
functions: [
|
|
400
|
+
{
|
|
401
|
+
path: "/commons/batch-refuses$POST"
|
|
402
|
+
}
|
|
403
|
+
]
|
|
404
|
+
},
|
|
405
|
+
import: {
|
|
406
|
+
group: "列表功能",
|
|
407
|
+
label: "导入",
|
|
408
|
+
functions: [
|
|
409
|
+
{
|
|
410
|
+
path: "/commons/import-data$POST"
|
|
411
|
+
}
|
|
412
|
+
]
|
|
413
|
+
},
|
|
414
|
+
export: {
|
|
415
|
+
group: "列表功能",
|
|
416
|
+
label: "导出",
|
|
417
|
+
functions: [
|
|
418
|
+
{
|
|
419
|
+
path: "/commons/export-list-data$POST /commons/export-reports$POST"
|
|
420
|
+
}
|
|
421
|
+
]
|
|
422
|
+
},
|
|
423
|
+
search: {
|
|
424
|
+
group: "列表功能",
|
|
425
|
+
label: "查询",
|
|
426
|
+
functions: []
|
|
427
|
+
},
|
|
428
|
+
downloadTemplate: {
|
|
429
|
+
group: "列表功能",
|
|
430
|
+
label: "下载导入模板",
|
|
431
|
+
functions: [
|
|
432
|
+
{
|
|
433
|
+
path: "/commons/download-files$GET"
|
|
434
|
+
}
|
|
435
|
+
]
|
|
436
|
+
},
|
|
437
|
+
lineEditCreate: {
|
|
438
|
+
group: "列表行编辑功能",
|
|
439
|
+
label: "新建",
|
|
440
|
+
functions: [
|
|
441
|
+
{
|
|
442
|
+
code: "create",
|
|
443
|
+
label: "暂存",
|
|
444
|
+
path: "/commons$POST"
|
|
445
|
+
}
|
|
446
|
+
]
|
|
447
|
+
},
|
|
448
|
+
lineEditSave: {
|
|
449
|
+
group: "列表行编辑功能",
|
|
450
|
+
label: "保存",
|
|
451
|
+
functions: [
|
|
452
|
+
{
|
|
453
|
+
code: "create",
|
|
454
|
+
label: "保存",
|
|
455
|
+
path: "/commons$POST"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
code: "update",
|
|
459
|
+
label: "修改",
|
|
460
|
+
path: "/commons$POST"
|
|
461
|
+
}
|
|
462
|
+
]
|
|
463
|
+
},
|
|
464
|
+
lineEditDelete: {
|
|
465
|
+
group: "列表行编辑功能",
|
|
466
|
+
label: "删除",
|
|
467
|
+
functions: [
|
|
468
|
+
{
|
|
469
|
+
code: "delete",
|
|
470
|
+
path: "/commons/{tableName}$DELETE"
|
|
471
|
+
}
|
|
472
|
+
]
|
|
473
|
+
},
|
|
474
|
+
lineEditUpdate: {
|
|
475
|
+
group: "列表行编辑功能",
|
|
476
|
+
label: "修改",
|
|
477
|
+
functions: [
|
|
478
|
+
{
|
|
479
|
+
code: "update",
|
|
480
|
+
label: "修改",
|
|
481
|
+
path: "/commons$POST"
|
|
482
|
+
}
|
|
483
|
+
]
|
|
484
|
+
},
|
|
485
|
+
restoreEdit: {
|
|
486
|
+
group: "列表行编辑功能",
|
|
487
|
+
label: "取消编辑",
|
|
488
|
+
functions: []
|
|
489
|
+
}
|
|
490
|
+
};
|
|
491
|
+
const functionMap = {};
|
|
492
|
+
function getStandPermissionInfo(eventName) {
|
|
493
|
+
return eventName ? standardFuncUrlMap[eventName] : void 0;
|
|
494
|
+
}
|
|
495
|
+
function getFunctionInfo(simpleCode) {
|
|
496
|
+
if (!simpleCode) {
|
|
497
|
+
return void 0;
|
|
498
|
+
}
|
|
499
|
+
let funcInfo = functionMap[simpleCode];
|
|
500
|
+
if (funcInfo == void 0) {
|
|
501
|
+
for (let eventName in standardFuncUrlMap) {
|
|
502
|
+
const functions = standardFuncUrlMap[eventName].functions;
|
|
503
|
+
if (!functions) {
|
|
504
|
+
continue;
|
|
505
|
+
}
|
|
506
|
+
for (let f of functions) {
|
|
507
|
+
const tempCode = f.code ? f.code : eventName;
|
|
508
|
+
if (simpleCode === tempCode) {
|
|
509
|
+
funcInfo = f;
|
|
510
|
+
break;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
if (funcInfo) {
|
|
514
|
+
break;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
functionMap[simpleCode] = funcInfo ? funcInfo : "";
|
|
518
|
+
}
|
|
519
|
+
return funcInfo ? funcInfo : void 0;
|
|
520
|
+
}
|
|
521
|
+
export {
|
|
522
|
+
FuncType,
|
|
523
|
+
getFunctionInfo,
|
|
524
|
+
getStandPermissionInfo
|
|
525
|
+
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const store = require("./store.js");
|
|
1
|
+
import store from "./store.js";
|
|
4
2
|
function setStoreInfo(pageCode, pageVersion, key, value) {
|
|
5
3
|
const pageKey = getPageStoreKey(pageCode, pageVersion);
|
|
6
4
|
let pageCodeStoreInfo = store.get(pageKey);
|
|
@@ -13,5 +11,7 @@ function setStoreInfo(pageCode, pageVersion, key, value) {
|
|
|
13
11
|
function getPageStoreKey(pageCode, pageVersion) {
|
|
14
12
|
return pageCode + ":" + pageVersion;
|
|
15
13
|
}
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
export {
|
|
15
|
+
getPageStoreKey,
|
|
16
|
+
setStoreInfo
|
|
17
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const http = require("agilebuilder-ui/src/utils/request");
|
|
1
|
+
import { getBaseUrl } from "./common-util.js";
|
|
2
|
+
import http from "agilebuilder-ui/src/utils/request";
|
|
3
|
+
import eventBus from "./eventBus.js";
|
|
5
4
|
function getDataTypeMap(system, tableName) {
|
|
6
5
|
return new Promise((resolve, reject) => {
|
|
7
6
|
getDataTypeMapRequest(system, tableName).then((dataTypeMap) => {
|
|
@@ -12,12 +11,14 @@ function getDataTypeMap(system, tableName) {
|
|
|
12
11
|
});
|
|
13
12
|
}
|
|
14
13
|
function getDataTypeMapRequest(system, tableName) {
|
|
15
|
-
const baseUrl =
|
|
14
|
+
const baseUrl = getBaseUrl(system);
|
|
16
15
|
return http.get(baseUrl + "/dsc/commons/tables/" + tableName + "/data-types");
|
|
17
16
|
}
|
|
18
17
|
function popupToPage(params) {
|
|
19
|
-
|
|
18
|
+
eventBus.$emit(params.pageCode + "_open-dialog", params);
|
|
20
19
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
export {
|
|
21
|
+
getDataTypeMap,
|
|
22
|
+
getDataTypeMapRequest,
|
|
23
|
+
popupToPage
|
|
24
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
+
import { SuperIcon } from "agilebuilder-ui";
|
|
3
|
+
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "button-runtime",
|
|
6
|
+
props: {
|
|
7
|
+
pageContext: {},
|
|
8
|
+
configure: {}
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
13
|
+
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
14
|
+
const runtimeStyle = runtimeInfo.style;
|
|
15
|
+
const runtimeClass = runtimeInfo.class;
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
const _component_el_button = resolveComponent("el-button");
|
|
18
|
+
return openBlock(), createBlock(_component_el_button, {
|
|
19
|
+
disabled: unref(designProperty).state === "disabled",
|
|
20
|
+
class: normalizeClass(unref(runtimeClass)),
|
|
21
|
+
style: normalizeStyle(unref(runtimeStyle)),
|
|
22
|
+
type: unref(designProperty).type,
|
|
23
|
+
size: unref(designProperty).size,
|
|
24
|
+
text: unref(designProperty).text,
|
|
25
|
+
round: unref(designProperty).round,
|
|
26
|
+
plain: unref(designProperty).plain,
|
|
27
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
28
|
+
}, {
|
|
29
|
+
default: withCtx(() => [
|
|
30
|
+
unref(designProperty).title && unref(designProperty).iconPosition == "right" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
31
|
+
createTextVNode(toDisplayString(unref(designProperty).title) + " ", 1),
|
|
32
|
+
unref(designProperty).iconValue ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
33
|
+
createTextVNode(" ")
|
|
34
|
+
], 64)) : createCommentVNode("", true)
|
|
35
|
+
], 64)) : createCommentVNode("", true),
|
|
36
|
+
unref(designProperty).iconType && unref(designProperty).iconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
37
|
+
key: 1,
|
|
38
|
+
iconType: unref(designProperty).iconType,
|
|
39
|
+
iconValue: unref(designProperty).iconValue
|
|
40
|
+
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
41
|
+
unref(designProperty).title && unref(designProperty).iconPosition != "right" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
42
|
+
unref(designProperty).iconValue ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
43
|
+
createTextVNode(" ")
|
|
44
|
+
], 64)) : createCommentVNode("", true),
|
|
45
|
+
createTextVNode(" " + toDisplayString(unref(designProperty).title), 1)
|
|
46
|
+
], 64)) : createCommentVNode("", true)
|
|
47
|
+
]),
|
|
48
|
+
_: 1
|
|
49
|
+
}, 8, ["disabled", "class", "style", "type", "size", "text", "round", "plain"]);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
export {
|
|
54
|
+
_sfc_main as default
|
|
55
|
+
};
|
package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, renderList } from "vue";
|
|
2
|
+
import _sfc_main$1 from "../../object-render.vue.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "buttongroup-runtime",
|
|
5
|
+
props: {
|
|
6
|
+
pageContext: {},
|
|
7
|
+
configure: {}
|
|
8
|
+
},
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const props = __props;
|
|
11
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
12
|
+
const runtimeStyle = runtimeInfo.style;
|
|
13
|
+
const runtimeClass = runtimeInfo.class;
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
const _component_el_button_group = resolveComponent("el-button-group");
|
|
16
|
+
return openBlock(), createBlock(_component_el_button_group, {
|
|
17
|
+
class: normalizeClass(unref(runtimeClass)),
|
|
18
|
+
style: normalizeStyle(unref(runtimeStyle))
|
|
19
|
+
}, {
|
|
20
|
+
default: withCtx(() => [
|
|
21
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.configure.items, (element, itemIndex) => {
|
|
22
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
23
|
+
key: element.uuid,
|
|
24
|
+
pageContext: _ctx.pageContext,
|
|
25
|
+
configure: element
|
|
26
|
+
}, null, 8, ["pageContext", "configure"]);
|
|
27
|
+
}), 128))
|
|
28
|
+
]),
|
|
29
|
+
_: 1
|
|
30
|
+
}, 8, ["class", "style"]);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
_sfc_main as default
|
|
36
|
+
};
|