super-page-runtime 1.0.17 → 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 -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/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/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/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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PageContext } from '../interfaces/page-design-types';
|
|
2
|
+
|
|
3
|
+
export declare function setObjectPropRule(prop: any, rules: any, leafRule: any): {};
|
|
4
|
+
export declare function validator(entity: any, rules: any, columns: any, rowIndex: any, isSql: any, pageContext: any): any;
|
|
5
|
+
export declare function validateDataModelFunc(pageContext: any, configureObj: any, isEnableRequired: any): Promise<unknown>;
|
|
6
|
+
/**
|
|
7
|
+
* 封装自定义校验规则
|
|
8
|
+
* @param orgCustomRules 自定义规则
|
|
9
|
+
* @param orgRules 原来的表单规则
|
|
10
|
+
* @returns 添加了自定义规则后的规则
|
|
11
|
+
*/
|
|
12
|
+
export declare function packageCustomRules(orgCustomRules: any, orgRules: any): any;
|
|
13
|
+
export declare function i18nValidateRulesMessage(rules: any): {};
|
|
14
|
+
export declare function i18nValidatePropRulesMessage(propRules: any, isResetMessage: boolean): void;
|
|
15
|
+
export declare function getWorkflowRules(pageContext: any): any;
|
|
16
|
+
export declare function updateFormItemEditState(pageContext: PageContext, customRules: any[]): void;
|
|
17
|
+
export declare function disabledAllFields(pageContext: PageContext): void;
|
|
18
|
+
export declare function dynamicControlTableEdit(pageContext: PageContext, customRules: any[], tableCode?: any): void;
|
|
19
|
+
export declare function updateComponentDisplayState(ref: any, item: any): void;
|
|
20
|
+
/**
|
|
21
|
+
* 布尔型和日期校验需要自定义,为了兼容oracle和mysql数据库,
|
|
22
|
+
* 数字类型的校验,防止select、radio、checkbox传字符串类型的数字
|
|
23
|
+
* @param fieldRule
|
|
24
|
+
*/
|
|
25
|
+
export declare function packageCustomValidator(fieldRule: any): void;
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import e from "async-validator";
|
|
2
|
+
import { ElMessage as t } from "element-plus";
|
|
3
|
+
import { getComponentRefByCode as n, getComponentRef as s, getAllComponentRefs as r } from "../global-refs.js";
|
|
4
|
+
import { getI18n as i } from "agilebuilder-ui/src/utils/util";
|
|
5
|
+
import { getAdditionalParamMap as o } from "./standard-event.js";
|
|
6
|
+
import { isPromise as l } from "agilebuilder-ui/src/utils/common-util";
|
|
7
|
+
import { getListCode as a, isWorkflowPage as u } from "../common-util.js";
|
|
8
|
+
function f(e2, t2, n2) {
|
|
9
|
+
const s2 = {};
|
|
10
|
+
t2 || (t2 = {});
|
|
11
|
+
let r2 = 0;
|
|
12
|
+
const i2 = e2.split(".");
|
|
13
|
+
return i2.forEach((e3) => {
|
|
14
|
+
let o2;
|
|
15
|
+
if (r2 === i2.length - 1) o2 = function(e4, t3, n3) {
|
|
16
|
+
let s3;
|
|
17
|
+
for (let r3 = 0; r3 < t3.length; r3++) if (s3 = 0 === r3 ? e4[t3[r3]] : s3.fields[t3[r3]], r3 !== t3.length - 1) {
|
|
18
|
+
if (t3[r3 + 1] === n3) break;
|
|
19
|
+
}
|
|
20
|
+
return s3;
|
|
21
|
+
}(s2, i2, e3), o2.fields[e3] = n2;
|
|
22
|
+
else {
|
|
23
|
+
let n3;
|
|
24
|
+
0 === r2 ? o2 = t2 : (n3 = function(e4, t3, n4) {
|
|
25
|
+
let s3;
|
|
26
|
+
for (let r3 = 0; r3 < t3.length; r3++) {
|
|
27
|
+
const i3 = t3[r3];
|
|
28
|
+
if (s3 = 0 === r3 ? e4[i3] : s3.fields[t3[r3]], i3 === n4) break;
|
|
29
|
+
}
|
|
30
|
+
return s3;
|
|
31
|
+
}(s2, i2, i2[r2 - 1]), o2 = n3.fields), o2[e3] || (o2[e3] = { type: "object", required: true, fields: {} }), 0 === r2 ? s2[e3] = o2[e3] : n3.fields[e3] = o2[e3];
|
|
32
|
+
}
|
|
33
|
+
r2++;
|
|
34
|
+
}), s2;
|
|
35
|
+
}
|
|
36
|
+
function c(e2, t2, n2, s2, r2, i2) {
|
|
37
|
+
return m(e2, t2, n2, s2, true, r2, i2);
|
|
38
|
+
}
|
|
39
|
+
function d(e2) {
|
|
40
|
+
if (e2) return Object.keys(e2).forEach((t2) => {
|
|
41
|
+
if (t2.indexOf(".") >= 0) {
|
|
42
|
+
let n2 = [];
|
|
43
|
+
n2 = t2.split("."), e2[n2[0]] ? e2[n2[0]].fields[n2[1]] = e2[t2][0] : (e2[n2[0]] = new Object(), e2[n2[0]].fields = new Object(), e2[n2[0]].fields[n2[1]] = e2[t2][0], e2[n2[0]].type = "object"), delete e2[t2];
|
|
44
|
+
}
|
|
45
|
+
}), e2;
|
|
46
|
+
}
|
|
47
|
+
function m(s2, r2, i2, o2, l2, a2, u2) {
|
|
48
|
+
let f2, c2 = d(r2);
|
|
49
|
+
if (r2 && null !== r2 || !i2 || (c2 = {}), !c2 || 0 === Object.keys(c2).length) return s2.validateErrorField = "", true;
|
|
50
|
+
return new e(c2).validate(s2, { first: true }, (e2, c3) => {
|
|
51
|
+
let d2;
|
|
52
|
+
if (e2) {
|
|
53
|
+
f2 = e2[0].message, d2 = e2[0].field, t({ message: f2, showClose: true, type: "warning", duration: 3e3 });
|
|
54
|
+
const s3 = n(u2, d2);
|
|
55
|
+
s3 && s3.addRequiredClass && s3.addRequiredClass();
|
|
56
|
+
} else f2 = true;
|
|
57
|
+
if (d2 && true === l2) {
|
|
58
|
+
if (/[A-Z]+/.test(d2) && void 0 !== s2[d2.toLowerCase()]) {
|
|
59
|
+
const e3 = JSON.parse(JSON.stringify(s2));
|
|
60
|
+
e3[d2.toUpperCase()] = s2[d2.toLowerCase()], delete e3[d2.toLowerCase()], f2 = m(e3, r2, i2, o2, false, a2, u2);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}), f2;
|
|
64
|
+
}
|
|
65
|
+
function p(e2, s2, r2) {
|
|
66
|
+
const l2 = e2.entity.data, a2 = { ...e2.entity.page, ...l2 }, f2 = e2.rules, c2 = s2.props.base ? s2.props.base.isEnableRequired : null;
|
|
67
|
+
return null != c2 && (r2 = c2), null == r2 && (r2 = false), function(e3, s3, r3, l3) {
|
|
68
|
+
if (e3) {
|
|
69
|
+
return u(l3) ? function(e4, s4, r4) {
|
|
70
|
+
return new Promise((l4, a3) => {
|
|
71
|
+
const u2 = o(s4), f3 = s4.entity.context, c3 = s4.entity.task, d2 = true, m2 = s4.subTablePageInfo;
|
|
72
|
+
b(e4, s4, r4).then((r5) => {
|
|
73
|
+
if (r5) {
|
|
74
|
+
let o2, a4, p2, g2, b2 = r5;
|
|
75
|
+
const h2 = s4.workflowRules;
|
|
76
|
+
if (h2) {
|
|
77
|
+
if (!function(e5, s5) {
|
|
78
|
+
if (!e5.actionPermissions) return true;
|
|
79
|
+
const r7 = Object.keys(e5.actionPermissions);
|
|
80
|
+
for (let o3 = 0; o3 < r7.length; o3++) {
|
|
81
|
+
const l5 = r7[o3], a5 = e5.actionPermissions[l5];
|
|
82
|
+
if (a5 && a5.notEmpty) {
|
|
83
|
+
let r8 = false;
|
|
84
|
+
if (s5[l5] ? Array.isArray(s5[l5]) && 0 === s5[l5].length && (r8 = true) : r8 = true, r8) {
|
|
85
|
+
const s6 = n(e5, l5).getConfigure();
|
|
86
|
+
return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: s6.title ? s6.title : l5 }), type: "warning" }), false;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return true;
|
|
91
|
+
}(s4, e4)) return void l4(false);
|
|
92
|
+
const r6 = true, y2 = window.$vueApp.config.globalProperties.$formValidator(e4, h2, d2, u2, c3, f3, m2, r6);
|
|
93
|
+
b2 = y2.msg, o2 = y2.field, a4 = y2.listCode, p2 = y2.rowIndex, g2 = y2.pageNum;
|
|
94
|
+
} else b2 = true;
|
|
95
|
+
if (true !== b2) {
|
|
96
|
+
if (t({ showClose: true, message: b2 + "", type: "warning" }), a4) {
|
|
97
|
+
const e5 = n(s4, a4);
|
|
98
|
+
e5 && e5.addRequiredClass && e5.addRequiredClass(o2, p2, g2);
|
|
99
|
+
} else {
|
|
100
|
+
const e5 = n(s4, o2);
|
|
101
|
+
e5 && e5.addRequiredClass && e5.addRequiredClass();
|
|
102
|
+
}
|
|
103
|
+
l4(false);
|
|
104
|
+
} else Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, l4(e4);
|
|
105
|
+
} else a3(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
106
|
+
}).catch((e5) => {
|
|
107
|
+
a3(e5);
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
}(s3, l3, r3) : function(e4, t2, n2) {
|
|
111
|
+
return new Promise((s4, r4) => {
|
|
112
|
+
b(e4, t2, n2).then((t3) => {
|
|
113
|
+
if (t3) {
|
|
114
|
+
const t4 = JSON.parse(JSON.stringify(e4));
|
|
115
|
+
Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField, s4(t4);
|
|
116
|
+
} else s4(false);
|
|
117
|
+
}).catch((e5) => {
|
|
118
|
+
r4(e5);
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
}(s3, l3, r3);
|
|
122
|
+
}
|
|
123
|
+
return new Promise((e4, t2) => {
|
|
124
|
+
e4(true);
|
|
125
|
+
});
|
|
126
|
+
}(r2, a2, f2, e2);
|
|
127
|
+
}
|
|
128
|
+
function g(e2) {
|
|
129
|
+
return new Promise((t2, n2) => {
|
|
130
|
+
const r2 = [], i2 = e2.customValidatorUuids;
|
|
131
|
+
i2 && i2.forEach((t3) => {
|
|
132
|
+
const n3 = s(e2, t3);
|
|
133
|
+
n3 && n3.validator && r2.push(n3.validator());
|
|
134
|
+
}), r2 && r2.length > 0 ? Promise.all(r2).then((e3) => {
|
|
135
|
+
e3.includes(false) ? t2(false) : t2(true);
|
|
136
|
+
}) : t2(true);
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
function b(e2, n2, r2) {
|
|
140
|
+
return new Promise((o2, a2) => {
|
|
141
|
+
const u2 = JSON.parse(JSON.stringify(e2));
|
|
142
|
+
if (r2 && 0 !== Object.keys(r2).length) {
|
|
143
|
+
if (true === c(u2, r2, null, null, true, n2)) {
|
|
144
|
+
const e3 = function(e4) {
|
|
145
|
+
var _a;
|
|
146
|
+
if (!e4) return true;
|
|
147
|
+
const n3 = e4.tableUuids;
|
|
148
|
+
if (!n3) return true;
|
|
149
|
+
for (let r3 = 0; r3 < n3.length; r3++) {
|
|
150
|
+
const o3 = n3[r3], l2 = s(e4, o3);
|
|
151
|
+
if (l2) {
|
|
152
|
+
if (l2.getConfigure()) {
|
|
153
|
+
const e5 = l2.getConfigure();
|
|
154
|
+
if ((_a = e5 == null ? void 0 : e5.verification) == null ? void 0 : _a.notEmpty) {
|
|
155
|
+
const n4 = l2.getTableData();
|
|
156
|
+
if (!n4 || !Array.isArray(n4) || 0 === n4.length) return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: e5.title ? e5.title : e5.code }), type: "warning" }), false;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
if (!l2.validatorSunTableListData()) return false;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
return true;
|
|
163
|
+
}(n2);
|
|
164
|
+
if (true === e3) {
|
|
165
|
+
const e4 = function(e5) {
|
|
166
|
+
const t2 = [];
|
|
167
|
+
e5.customRuleEvents && e5.customRuleEvents.length > 0 && e5.customRuleEvents.forEach((n3) => {
|
|
168
|
+
n3.events.forEach((s2) => {
|
|
169
|
+
const r3 = e5.customEvents[s2];
|
|
170
|
+
t2.push(r3.apply(r3, [{ prop: n3.prop, pageContext: e5 }]));
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
if (t2 && t2.length > 0) return new Promise((e6, n3) => {
|
|
174
|
+
const s2 = [], r3 = [];
|
|
175
|
+
t2.forEach((e7) => {
|
|
176
|
+
l(e7) ? s2.push(e7) : r3.push(e7);
|
|
177
|
+
}), r3.includes(false) && e6(false), s2.length > 0 ? Promise.all(s2).then((t3) => {
|
|
178
|
+
t3.includes(false) ? e6(false) : e6(true);
|
|
179
|
+
}).catch((t3) => {
|
|
180
|
+
console.error(t3), e6(false);
|
|
181
|
+
}) : e6(true);
|
|
182
|
+
});
|
|
183
|
+
return null;
|
|
184
|
+
}(n2);
|
|
185
|
+
e4 && l(e4) ? e4.then((e5) => {
|
|
186
|
+
e5 ? g(n2).then((e6) => {
|
|
187
|
+
o2(e6);
|
|
188
|
+
}) : o2(false);
|
|
189
|
+
}) : g(n2).then((e5) => {
|
|
190
|
+
o2(e5);
|
|
191
|
+
});
|
|
192
|
+
} else a2(new Error(i().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
|
|
193
|
+
} else a2(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
194
|
+
} else o2(true);
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
function h(e2, t2) {
|
|
198
|
+
if (!e2) return t2;
|
|
199
|
+
t2 || (t2 = {});
|
|
200
|
+
const n2 = Object.keys(e2), s2 = e2;
|
|
201
|
+
return n2.forEach((e3) => {
|
|
202
|
+
if ("__subRules" === e3) {
|
|
203
|
+
const e4 = s2.__subRules;
|
|
204
|
+
Object.keys(e4).forEach((n3) => {
|
|
205
|
+
t2.subRules || (t2.subRules = {}), t2.subRules[n3] ? Object.assign(t2.subRules[n3], e4[n3]) : t2.subRules[n3] = e4[n3];
|
|
206
|
+
});
|
|
207
|
+
} else C(s2[e3]), t2[e3] = s2[e3];
|
|
208
|
+
}), d(t2);
|
|
209
|
+
}
|
|
210
|
+
function y(e2) {
|
|
211
|
+
if (!e2 || 0 === Object.keys(e2).length) return;
|
|
212
|
+
const t2 = {}, n2 = Object.keys(e2);
|
|
213
|
+
for (let s2 = 0; s2 < n2.length; s2++) {
|
|
214
|
+
const r2 = n2[s2], i2 = e2[r2];
|
|
215
|
+
w(i2), r2.indexOf(".") > 0 ? f(r2, t2, i2) : i2 && i2.length > 0 && (t2[r2] = [...i2]);
|
|
216
|
+
}
|
|
217
|
+
return t2;
|
|
218
|
+
}
|
|
219
|
+
function w(e2, t2) {
|
|
220
|
+
e2.forEach((e3) => {
|
|
221
|
+
e3.message;
|
|
222
|
+
const t3 = e3.label, n2 = i().t(t3);
|
|
223
|
+
e3.required && (e3.message = i().t("superPageRuntimeMessage.required", { label: n2 })), e3.myType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: n2 })), e3.patternType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: n2 })), void 0 !== e3.max && null !== e3.max && (e3.message = i().t("superPageRuntimeMessage.overMaxLength", { label: n2, value: e3.max })), void 0 !== e3.min && null !== e3.min && (e3.message = i().t("superPageRuntimeMessage.limitMinLength", { label: n2, value: e3.min }));
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
function R(e2) {
|
|
227
|
+
const t2 = e2.entity.data, n2 = { ...e2.entity.page, ...t2 }, s2 = o(e2), r2 = e2.entity.context, i2 = e2.entity.task;
|
|
228
|
+
e2.formPropTiltleMap && Object.keys(e2.formPropTiltleMap).length > 0 && e2.completeTaskParam.fieldPermissions && e2.completeTaskParam.fieldPermissions.length > 0 && e2.completeTaskParam.fieldPermissions.forEach((t3) => {
|
|
229
|
+
t3.name && e2.formPropTiltleMap[t3.name] && (t3.label = e2.formPropTiltleMap[t3.name]);
|
|
230
|
+
});
|
|
231
|
+
let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, n2, true, s2, i2, r2);
|
|
232
|
+
return l2 = h(e2.customRules, l2), l2;
|
|
233
|
+
}
|
|
234
|
+
function v(e2, t2) {
|
|
235
|
+
if (!t2) return;
|
|
236
|
+
const s2 = {};
|
|
237
|
+
t2.forEach((e3) => {
|
|
238
|
+
const { name: t3, rules: n2 } = e3;
|
|
239
|
+
n2 ? s2[t3] = n2 : false === e3.required && (s2[t3] = []);
|
|
240
|
+
});
|
|
241
|
+
let r2 = e2.rules ? e2.rules : {};
|
|
242
|
+
r2 = h(s2, r2), e2.rules = r2;
|
|
243
|
+
let i2 = e2.workflowRules ? e2.workflowRules : {};
|
|
244
|
+
i2 = h(s2, i2), e2.workflowRules = i2;
|
|
245
|
+
const o2 = t2.filter((e3) => "_all_fields" === e3.name);
|
|
246
|
+
o2 && o2.length > 0 && E(e2, o2[0]), t2.forEach((t3) => {
|
|
247
|
+
if ("_all_fields" !== t3.name) {
|
|
248
|
+
O(n(e2, t3.name), t3);
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
function P(e2) {
|
|
253
|
+
E(e2, { disabled: true });
|
|
254
|
+
}
|
|
255
|
+
function E(e2, t2) {
|
|
256
|
+
const n2 = r(e2);
|
|
257
|
+
if (n2) for (const e3 in n2) {
|
|
258
|
+
const s2 = n2[e3];
|
|
259
|
+
O(s2 ? s2.value : s2, t2);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
function k(e2, t2, r2) {
|
|
263
|
+
var _a;
|
|
264
|
+
let i2, o2;
|
|
265
|
+
if (r2 ? (i2 = n(e2, r2), o2 = i2 ? i2.getTableUuid() : null) : (o2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, i2 = o2 ? s(e2, o2) : null), !i2) return;
|
|
266
|
+
const l2 = e2.code, u2 = e2.version, f2 = a(l2, u2, o2);
|
|
267
|
+
if (((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[r2]) {
|
|
268
|
+
const n2 = e2.workflowRules.subRules[r2];
|
|
269
|
+
t2.forEach((e3) => {
|
|
270
|
+
n2[e3.name] = e3;
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
i2.dynamicControlTableEdit(e2, t2, f2);
|
|
274
|
+
}
|
|
275
|
+
function O(e2, t2) {
|
|
276
|
+
var _a, _b, _c;
|
|
277
|
+
if (e2) {
|
|
278
|
+
const n2 = e2.getConfigure();
|
|
279
|
+
void 0 !== t2.show && (t2.show ? e2.show() : e2.hide()), void 0 !== t2.required && ((_a = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _a.props) && (n2.runtime.props.required = t2.required), void 0 !== t2.readonly && ((_b = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _b.props) && (t2.readonly ? n2.runtime.props.state = "readonly" : n2.runtime.props.state = "enabled"), void 0 !== t2.disabled && n2 && (((_c = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _c.props) && (t2.disabled ? n2.runtime.props.state = "disabled" : n2.runtime.props.state = "enabled"), "table" === n2.name && e2.changeOperationAddState(false));
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
function C(e2) {
|
|
283
|
+
if (!(e2 == null ? void 0 : e2.type)) return;
|
|
284
|
+
const t2 = j[e2.type];
|
|
285
|
+
t2 && (e2.validator = t2.validator);
|
|
286
|
+
}
|
|
287
|
+
const j = { boolean: { validator: function(e2, t2, n2) {
|
|
288
|
+
return true === x(e2, t2) && ("number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2));
|
|
289
|
+
} }, date: { validator: function(e2, t2, n2) {
|
|
290
|
+
if (true !== x(e2, t2)) return false;
|
|
291
|
+
const s2 = new Date(t2);
|
|
292
|
+
return !isNaN(s2.getTime());
|
|
293
|
+
} }, number: { validator: function(e2, t2, n2) {
|
|
294
|
+
return true === x(e2, t2) && (("string" != typeof t2 || "" !== t2.trim()) && ("number" == typeof t2 || !isNaN(Number(t2))));
|
|
295
|
+
} } }, x = (e2, t2) => null != t2 && "" !== t2 || !e2.required;
|
|
296
|
+
export {
|
|
297
|
+
P as disabledAllFields,
|
|
298
|
+
k as dynamicControlTableEdit,
|
|
299
|
+
R as getWorkflowRules,
|
|
300
|
+
w as i18nValidatePropRulesMessage,
|
|
301
|
+
y as i18nValidateRulesMessage,
|
|
302
|
+
h as packageCustomRules,
|
|
303
|
+
C as packageCustomValidator,
|
|
304
|
+
f as setObjectPropRule,
|
|
305
|
+
O as updateComponentDisplayState,
|
|
306
|
+
v as updateFormItemEditState,
|
|
307
|
+
p as validateDataModelFunc,
|
|
308
|
+
c as validator
|
|
309
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
function e(e2, t, n) {
|
|
2
|
+
if (!e2) return;
|
|
3
|
+
const a = [];
|
|
4
|
+
if (e2.includes("today") && !["week", "month", "year"].includes(t)) {
|
|
5
|
+
const e3 = { text: "今天", value: () => /* @__PURE__ */ new Date() };
|
|
6
|
+
n.endsWith("range") && (e3.value = () => [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()]), a.push(e3);
|
|
7
|
+
}
|
|
8
|
+
if (e2.includes("yesterday") && !["week", "month", "year"].includes(t)) {
|
|
9
|
+
const e3 = /* @__PURE__ */ new Date();
|
|
10
|
+
e3.setTime(e3.getTime() - 864e5);
|
|
11
|
+
const t2 = { text: "昨天", value: () => e3 };
|
|
12
|
+
n.endsWith("range") && (t2.value = () => [e3, /* @__PURE__ */ new Date()]), a.push(t2);
|
|
13
|
+
}
|
|
14
|
+
if (e2.includes("oneWeek") && !["month", "year"].includes(t)) {
|
|
15
|
+
const e3 = /* @__PURE__ */ new Date();
|
|
16
|
+
e3.setTime(e3.getTime() - 6048e5);
|
|
17
|
+
const t2 = { text: "一周前", value: () => e3 };
|
|
18
|
+
n.endsWith("range") && (t2.text = "一周", t2.value = () => [e3, /* @__PURE__ */ new Date()]), a.push(t2);
|
|
19
|
+
}
|
|
20
|
+
if (e2.includes("oneMonth") && !["year"].includes(t)) {
|
|
21
|
+
const e3 = /* @__PURE__ */ new Date();
|
|
22
|
+
e3.getMonth() > 0 ? e3.setMonth(e3.getMonth() - 1) : (e3.setMonth(12), e3.setFullYear(e3.getFullYear() - 1));
|
|
23
|
+
const t2 = { text: "一月前", value: () => e3 };
|
|
24
|
+
n.endsWith("range") && (t2.text = "一月", t2.value = () => [e3, /* @__PURE__ */ new Date()]), a.push(t2);
|
|
25
|
+
}
|
|
26
|
+
if (e2.includes("oneYear")) {
|
|
27
|
+
const e3 = /* @__PURE__ */ new Date();
|
|
28
|
+
e3.setFullYear(e3.getFullYear() - 1);
|
|
29
|
+
const t2 = { text: "一年前", value: () => e3 };
|
|
30
|
+
n.endsWith("range") && (t2.text = "一年", t2.value = () => [e3, /* @__PURE__ */ new Date()]), a.push(t2);
|
|
31
|
+
}
|
|
32
|
+
return a;
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
e as getDateShortCuts
|
|
36
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import http from "agilebuilder-ui/src/utils/request";
|
|
2
|
+
import { setValueForVariableName } from "../page-helper-util.js";
|
|
3
|
+
function formatScanRuleSets(e) {
|
|
4
|
+
const t = {};
|
|
5
|
+
return e.forEach((e2) => {
|
|
6
|
+
"group" === e2.type ? e2.outs.forEach((e3) => {
|
|
7
|
+
t[e3.ruleCode] || (t[e3.ruleCode] = { outs: [], adaptations: [] }), t[e3.ruleCode].outs.push(e3);
|
|
8
|
+
}) : t[e2.code] = { outs: e2.outs, adaptations: [] };
|
|
9
|
+
}), packageScanRuleSets(t);
|
|
10
|
+
}
|
|
11
|
+
function packageScanRuleSets(e) {
|
|
12
|
+
return new Promise((t, a) => {
|
|
13
|
+
Object.keys(e).length > 0 ? http.post(window.$vueApp.config.globalProperties.baseAPI + "/dc/setting-barcode-analysis/by-codes", Object.keys(e)).then((a2) => {
|
|
14
|
+
a2.forEach((a3) => {
|
|
15
|
+
const s = JSON.parse(a3.barcodeAnalysisOuts), n = /* @__PURE__ */ new Set(), l = {};
|
|
16
|
+
e[a3.code].outs.forEach((e2) => {
|
|
17
|
+
n.add(e2.returnedValue), l[e2.returnedValue] = e2.pageVariable;
|
|
18
|
+
});
|
|
19
|
+
const i2 = [];
|
|
20
|
+
s.forEach((e2) => {
|
|
21
|
+
n.has(e2.code) && (e2.pageVariable = l[e2.code], i2.push(e2));
|
|
22
|
+
}), e[a3.code].outs = i2, e[a3.code].adaptations = JSON.parse(a3.barcodeAnalysisAdaptations), t(e);
|
|
23
|
+
});
|
|
24
|
+
}) : t(null);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function analysisScanValue(scanValue, scanRuleSets) {
|
|
28
|
+
if (!scanValue) return null;
|
|
29
|
+
const scanSets = Object.values(scanRuleSets);
|
|
30
|
+
for (let i = 0; i < scanSets.length; i++) {
|
|
31
|
+
const scanSet = scanSets[i], adaptations = scanSet.adaptations;
|
|
32
|
+
let validStr = "";
|
|
33
|
+
for (let e = 0; e < adaptations.length; e++) {
|
|
34
|
+
const t = adaptations[e], a = _getScanIndexs(scanValue, t.startIndex, t.endIndex), s = a[0], n = a[1];
|
|
35
|
+
let l = scanValue.substring(s, n), i2 = t.value, r = t.operate;
|
|
36
|
+
if ("times" == r) {
|
|
37
|
+
const e2 = l.split(null == i2 ? "" : i2).length - 1;
|
|
38
|
+
i2 = e2, l = t.times, r = "=";
|
|
39
|
+
}
|
|
40
|
+
if ((isNaN(l) || isNaN(i2)) && (l = "'" + l + "'", i2 = "'" + i2 + "'"), t.leftBracket && (validStr += t.leftBracket), "<>" == r ? r = "!=" : "=" == r && (r = "=="), "include" == r || "notinclude" == r ? (validStr += l + ".indexOf(" + i2 + ")", validStr += "include" == r ? ">-1" : "<0") : validStr += l + r + i2, t.rightBracket && (validStr += t.rightBracket), t.joinStr && e + 1 < adaptations.length) {
|
|
41
|
+
const e2 = "and" == t.joinStr ? "&&" : "||";
|
|
42
|
+
validStr += e2;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
let res = false;
|
|
46
|
+
if (validStr) try {
|
|
47
|
+
res = eval("(" + validStr + ")");
|
|
48
|
+
} catch (e) {
|
|
49
|
+
}
|
|
50
|
+
else res = true;
|
|
51
|
+
if (res) return executeAnalysisForScan(scanValue, scanSet);
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
function executeAnalysisForScan(e, t) {
|
|
56
|
+
if (!t || !e) return;
|
|
57
|
+
const a = t.outs, s = {};
|
|
58
|
+
return a.forEach((t2) => {
|
|
59
|
+
const a2 = t2.fieldName;
|
|
60
|
+
if (null != t2.fixedValue) s[a2] = t2.fixedValue;
|
|
61
|
+
else {
|
|
62
|
+
let n = e;
|
|
63
|
+
if (t2.splitChar && t2.splitNum) {
|
|
64
|
+
const a3 = (t2.splitChar, t2.splitChar), s2 = e.split(a3), l = t2.splitNum < 1 ? 1 : t2.splitNum;
|
|
65
|
+
n = l <= s2.length ? s2[l - 1] : "";
|
|
66
|
+
}
|
|
67
|
+
if (t2.splitChar2 && t2.splitNum2) {
|
|
68
|
+
const e2 = (t2.splitChar2, t2.splitChar2), a3 = n.split(e2), s2 = t2.splitNum2 < 1 ? 1 : t2.splitNum2;
|
|
69
|
+
n = s2 <= a3.length ? a3[s2 - 1] : "";
|
|
70
|
+
}
|
|
71
|
+
if (n.length > 0) {
|
|
72
|
+
const e2 = _getScanIndexs(n, t2.startIndex, t2.endIndex), a3 = e2[0], s2 = e2[1];
|
|
73
|
+
n = n.substring(a3, s2);
|
|
74
|
+
}
|
|
75
|
+
s[a2] = n;
|
|
76
|
+
}
|
|
77
|
+
}), { value: e, params: s, scanSet: t };
|
|
78
|
+
}
|
|
79
|
+
function _getScanIndexs(e, t, a) {
|
|
80
|
+
return t = (t = (t = null == t ? 0 : t - 1) < 0 ? 0 : t) > e.length - 1 ? e.length - 1 : t, (a = (a = (a = null == a ? e.length : a) > e.length ? e.length : a) < 1 ? 1 : a) < t && (a = t), [t, a];
|
|
81
|
+
}
|
|
82
|
+
function setScanAnalysisValue(e, t, a) {
|
|
83
|
+
if (!t) return;
|
|
84
|
+
t.outs.forEach((t2) => {
|
|
85
|
+
const s = t2.fieldName, n = a[s];
|
|
86
|
+
setValueForVariableName(e.entity, t2.pageVariable, n);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
export {
|
|
90
|
+
analysisScanValue,
|
|
91
|
+
formatScanRuleSets,
|
|
92
|
+
setScanAnalysisValue
|
|
93
|
+
};
|
|
@@ -57,3 +57,9 @@ export declare function removePageAllRef(pageContext: PageContext): void;
|
|
|
57
57
|
* @param pageVersion
|
|
58
58
|
*/
|
|
59
59
|
export declare function initComponentRefState(pageContext: PageContext): void;
|
|
60
|
+
/**
|
|
61
|
+
* 获取所有组件引用对象
|
|
62
|
+
* @param pageDesign 页面设计对象
|
|
63
|
+
* @returns
|
|
64
|
+
*/
|
|
65
|
+
export declare function getAllComponentRefs(pageContext: PageContext): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import "vue";
|
|
2
|
+
window.globalRefs || (window.globalRefs = {});
|
|
3
|
+
const n = window.globalRefs;
|
|
4
|
+
function o(o2, e2, r2) {
|
|
5
|
+
if (!o2) return;
|
|
6
|
+
const t2 = u(o2.code, o2.version);
|
|
7
|
+
return n[t2] || (n[t2] = {}), n[t2][e2] = r2, n[t2];
|
|
8
|
+
}
|
|
9
|
+
function e(o2, e2, r2) {
|
|
10
|
+
if (!o2) return;
|
|
11
|
+
const t2 = f(o2.code, o2.version);
|
|
12
|
+
return n[t2] || (n[t2] = {}), n[t2][e2] = r2, n[t2];
|
|
13
|
+
}
|
|
14
|
+
function r(o2, e2) {
|
|
15
|
+
if (!o2 || !e2) return;
|
|
16
|
+
const r2 = u(o2.code, o2.version);
|
|
17
|
+
n[r2] || (n[r2] = {});
|
|
18
|
+
const t2 = n[r2][e2];
|
|
19
|
+
return t2 ? t2.value : t2;
|
|
20
|
+
}
|
|
21
|
+
function t(o2, e2) {
|
|
22
|
+
if (!o2) return;
|
|
23
|
+
const r2 = f(o2.code, o2.version);
|
|
24
|
+
n[r2] || (n[r2] = {});
|
|
25
|
+
const t2 = n[r2][e2];
|
|
26
|
+
return t2 ? t2.value : t2;
|
|
27
|
+
}
|
|
28
|
+
function i(o2) {
|
|
29
|
+
if (!o2) return;
|
|
30
|
+
const e2 = u(o2.code, o2.version);
|
|
31
|
+
n[e2] = {};
|
|
32
|
+
}
|
|
33
|
+
function c(o2) {
|
|
34
|
+
if (!o2) return;
|
|
35
|
+
const e2 = u(o2.code, o2.version);
|
|
36
|
+
n[e2] = {};
|
|
37
|
+
}
|
|
38
|
+
function u(n2, o2) {
|
|
39
|
+
return "pageRuntimeRef-" + n2 + "-" + (o2 || 1);
|
|
40
|
+
}
|
|
41
|
+
function f(n2, o2) {
|
|
42
|
+
return u(n2, o2) + "-code";
|
|
43
|
+
}
|
|
44
|
+
function s(o2) {
|
|
45
|
+
if (!o2) return;
|
|
46
|
+
const e2 = f(o2.code, o2.version);
|
|
47
|
+
return n[e2] || (n[e2] = {}), n[e2];
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
o as addComponentRef,
|
|
51
|
+
e as addComponentRefByCode,
|
|
52
|
+
s as getAllComponentRefs,
|
|
53
|
+
r as getComponentRef,
|
|
54
|
+
t as getComponentRefByCode,
|
|
55
|
+
c as initComponentRefState,
|
|
56
|
+
i as removePageAllRef
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const $t: (key: string, ...args: any[]) => any;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { usePageContextStore as t } from "./page-store.js";
|
|
2
|
+
import { getEnableI18nState as e } from "agilebuilder-ui/src/utils/i18n-util";
|
|
3
|
+
import { useI18n as o } from "vue-i18n";
|
|
4
|
+
let r = null, i = null;
|
|
5
|
+
const l = (l2, ...n) => {
|
|
6
|
+
i || (i = o());
|
|
7
|
+
const s = t().pageContext;
|
|
8
|
+
if (null === r && (r = !!e(s.systemCode)), !r) return l2;
|
|
9
|
+
const u = `${s.systemCode}.${l2}`, m = i.t(u, n || []);
|
|
10
|
+
return m !== u ? m : l2;
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
l as $t
|
|
14
|
+
};
|
|
@@ -13,6 +13,17 @@ export declare enum PageDimensions {
|
|
|
13
13
|
IPAD = "ipad",
|
|
14
14
|
PHONE = "phone"
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* 组件配置的属性
|
|
18
|
+
*/
|
|
19
|
+
export interface ComponentProps {
|
|
20
|
+
align?: 'left' | 'center' | 'flex-end';
|
|
21
|
+
isAffix?: boolean;
|
|
22
|
+
isFixed?: boolean;
|
|
23
|
+
position?: 'default' | 'top' | 'bottom';
|
|
24
|
+
offset?: number;
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}
|
|
16
27
|
/**
|
|
17
28
|
* 组件对象
|
|
18
29
|
*/
|
|
@@ -30,7 +41,7 @@ export interface Component extends Object {
|
|
|
30
41
|
docHref?: string;
|
|
31
42
|
parent?: Component;
|
|
32
43
|
items?: Component[];
|
|
33
|
-
props?:
|
|
44
|
+
props?: ComponentProps;
|
|
34
45
|
style?: any;
|
|
35
46
|
events?: ComponentEvent[];
|
|
36
47
|
methods?: ComponentMethod[];
|
|
@@ -54,9 +65,10 @@ export interface PageDesign extends Component {
|
|
|
54
65
|
variables?: CustomVariable[];
|
|
55
66
|
logicDesigns?: object[];
|
|
56
67
|
modelFields?: ModelField[];
|
|
68
|
+
initChartServiceConfigs?: Array<any>;
|
|
57
69
|
rules?: object;
|
|
58
70
|
tableUuids?: Array<any>;
|
|
59
|
-
|
|
71
|
+
listCodesMap?: object;
|
|
60
72
|
formNoRuleCode?: string;
|
|
61
73
|
judgeHeavyList?: Array<any>;
|
|
62
74
|
conversionCodes?: Array<any>;
|
|
@@ -66,8 +78,15 @@ export interface PageDesign extends Component {
|
|
|
66
78
|
name: string;
|
|
67
79
|
notIdInitializationList?: Array<any>;
|
|
68
80
|
subTablePageInfo?: object;
|
|
69
|
-
customValidatorUuids?: Array<string>;
|
|
70
81
|
customEvents?: Array<any>;
|
|
82
|
+
contextParam?: object;
|
|
83
|
+
systemtParam?: object;
|
|
84
|
+
subTableWatchProps?: object;
|
|
85
|
+
allChartUuids: Array<string>;
|
|
86
|
+
}
|
|
87
|
+
interface PageRuntimeStyle {
|
|
88
|
+
height?: number;
|
|
89
|
+
width?: number;
|
|
71
90
|
}
|
|
72
91
|
/**
|
|
73
92
|
* 运行时页面对象
|
|
@@ -76,6 +95,7 @@ export interface PageContext extends Component {
|
|
|
76
95
|
isTest?: boolean;
|
|
77
96
|
systemCode?: string;
|
|
78
97
|
systemVersion?: number;
|
|
98
|
+
backendUrl?: string;
|
|
79
99
|
code: string;
|
|
80
100
|
version: number;
|
|
81
101
|
dimensions: string;
|
|
@@ -85,9 +105,9 @@ export interface PageContext extends Component {
|
|
|
85
105
|
tableAlias?: string;
|
|
86
106
|
workflowCode?: string;
|
|
87
107
|
workflowVersion?: number;
|
|
88
|
-
rules?:
|
|
108
|
+
rules?: any;
|
|
89
109
|
tableUuids?: Array<any>;
|
|
90
|
-
|
|
110
|
+
listCodesMap?: object;
|
|
91
111
|
formNoRuleCode?: string;
|
|
92
112
|
judgeHeavyList?: Array<any>;
|
|
93
113
|
conversionCodes?: Array<any>;
|
|
@@ -126,14 +146,19 @@ export interface PageContext extends Component {
|
|
|
126
146
|
actionPermissionMap?: Map<string, any>;
|
|
127
147
|
workflowButtonComponent?: object;
|
|
128
148
|
completeTaskParam?: object;
|
|
129
|
-
customRules?:
|
|
149
|
+
customRules?: Record<string, any>;
|
|
130
150
|
initFormNo?: string;
|
|
131
151
|
definitionId?: number;
|
|
132
152
|
dataTypeMaps?: Object;
|
|
133
153
|
editData?: object;
|
|
134
154
|
searchFormData?: Array<object>;
|
|
135
155
|
selectOptions?: object;
|
|
156
|
+
chartDataSourceMap?: any;
|
|
157
|
+
refercePropMap?: object;
|
|
158
|
+
subTableWatchProps?: object;
|
|
136
159
|
[otherProp: string]: any;
|
|
160
|
+
allChartUuids: Array<string>;
|
|
161
|
+
pageRuntimeStyle?: PageRuntimeStyle;
|
|
137
162
|
}
|
|
138
163
|
/**
|
|
139
164
|
* 事件对象
|
|
@@ -219,3 +244,4 @@ export interface LogicTriggerSource extends Object {
|
|
|
219
244
|
triggerType: string;
|
|
220
245
|
triggerName: string;
|
|
221
246
|
}
|
|
247
|
+
export {};
|