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,32 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as i, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as f, createVNode as c, createTextVNode as d, toDisplayString as m, createElementBlock as g, createCommentVNode as v } from "vue";
|
|
2
|
+
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { handleAfterInitEvent as k, handleEvent as x } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { $t as C } from "../../../../utils/i18n-util.js";
|
|
6
|
+
const _ = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
7
|
+
const _2 = e2, h = y(_2.pageContext, _2.configure), R = _2.configure.runtime ? _2.configure.runtime : {}, j = R.style, w = R.class, I = R.headerStyle, S = t(R.props ? R.props : {});
|
|
8
|
+
S.value;
|
|
9
|
+
let $ = S.value.formatting;
|
|
10
|
+
const D = _2.pageContext.entity ? _2.pageContext.entity : {}, V = l(() => {
|
|
11
|
+
let e3 = b(D, h);
|
|
12
|
+
return e3 = null == e3 || null == e3 ? "" : e3, $ && (e3 = $.replace(/\${value}/g, e3)), e3;
|
|
13
|
+
});
|
|
14
|
+
let W = S.value.tooltip, q = null;
|
|
15
|
+
W && (q = l(() => {
|
|
16
|
+
let e3 = b(D, h);
|
|
17
|
+
return e3 = null == e3 || null == e3 ? "" : e3, W.replace(/\${value}/g, e3);
|
|
18
|
+
}));
|
|
19
|
+
const z = t(null), A = t(null), B = t(null);
|
|
20
|
+
return n(() => {
|
|
21
|
+
a(() => {
|
|
22
|
+
const e3 = V.value;
|
|
23
|
+
k(e3, _2.pageContext, _2.configure, { formItemRef: z.value, componentRef: A.value, titleRef: B.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
24
|
+
});
|
|
25
|
+
}), (t2, l2) => {
|
|
26
|
+
const n2 = i("el-link"), a2 = i("el-tooltip"), y2 = i("el-form-item");
|
|
27
|
+
return o(), u(y2, { ref_key: "formItemRef", ref: z, class: s(p(w)), "label-width": S.value.labelWidth, style: r(p(j)) }, { label: f(() => [S.value.tittleShow ? (o(), g("div", { key: 0, ref_key: "titleRef", ref: B, style: r({ ...p(I) }) }, m(p(C)(S.value.title)), 5)) : v("", true)]), default: f(() => [c(a2, { disabled: !p(q), content: p(q) }, { default: f(() => [c(n2, { ref_key: "componentRef", ref: A, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: l2[0] || (l2[0] = (t3) => p(x)(t3, e2.pageContext, e2.configure, "click", { skipValidate: true })) }, { default: f(() => [d(m(V.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
|
|
28
|
+
};
|
|
29
|
+
} });
|
|
30
|
+
export {
|
|
31
|
+
_ as default
|
|
32
|
+
};
|
package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as r, createBlock as l, openBlock as a, normalizeStyle as u, normalizeClass as f, unref as s, withCtx as i, createElementVNode as m } from "vue";
|
|
2
|
+
import { handleAfterInitEvent as p } from "../../../../utils/events/event-util.js";
|
|
3
|
+
const c = e({ __name: "placeholder-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
4
|
+
const c2 = e2, g = c2.configure.runtime ? c2.configure.runtime : {}, y = g.style, d = g.class, v = t(null), x = t(null);
|
|
5
|
+
return n(() => {
|
|
6
|
+
o(() => {
|
|
7
|
+
p(null, c2.pageContext, c2.configure, { formItemRef: v.value, componentRef: x.value, entity: c2.pageContext.entity.data, pageData: c2.pageContext.entity.page });
|
|
8
|
+
});
|
|
9
|
+
}), (e3, t2) => {
|
|
10
|
+
const n2 = r("el-form-item");
|
|
11
|
+
return a(), l(n2, { ref_key: "formItemRef", ref: v, class: f(s(d)), style: u(s(y)) }, { default: i(() => [m("div", { ref_key: "componentRef", ref: x, style: { width: "100%", height: "100%" } }, " ", 512)]), _: 1 }, 8, ["class", "style"]);
|
|
12
|
+
};
|
|
13
|
+
} });
|
|
14
|
+
export {
|
|
15
|
+
c as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as n, onMounted as a, nextTick as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as f, unref as c, withCtx as g, createVNode as d, createElementBlock as v, Fragment as m, renderList as h, createTextVNode as y, toDisplayString as C, createCommentVNode as b } from "vue";
|
|
2
|
+
import { setVariableValue as x, getVariableValue as k, getOptionDatasFromPage as _, autoSetAfterSelect as R, queryOptionDatasources as S } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
import { getFormModelFields as j } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { handleFormEvent as T, handleAfterInitEvent as q } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { $t as I } from "../../../../utils/i18n-util.js";
|
|
6
|
+
import { addRequiredClassUtil as V } from "../../../../utils/common-util.js";
|
|
7
|
+
const w = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: w2 }) {
|
|
8
|
+
const z = e2, O = t(null), D = z.pageContext.entity ? z.pageContext.entity : {};
|
|
9
|
+
let M = j(z.pageContext, z.configure);
|
|
10
|
+
const P = l({ get() {
|
|
11
|
+
let e3 = k(D, M);
|
|
12
|
+
return null != e3 && (e3 += ""), e3;
|
|
13
|
+
}, set(e3) {
|
|
14
|
+
x(D, M, e3), null != e3 && (O.value = "");
|
|
15
|
+
} }), W = z.configure.runtime ? z.configure.runtime : {}, E = W.style, F = W.class, U = W.headerStyle, $ = W.titleExceedStyle, A = t(W.props ? W.props : {}), B = t(A.value.options ? A.value.options : []), G = _(z.pageContext, z.configure);
|
|
16
|
+
G.length > 0 && (B.value = G);
|
|
17
|
+
const H = z.configure.props && z.configure.props.dataOrigin ? z.configure.props.dataOrigin : {}, J = H.optionValueSetType;
|
|
18
|
+
let K = [];
|
|
19
|
+
if (("dynamicData" == J || "dataTable" == J || "service" == J) && H.autoSets) for (let e3 of H.autoSets) e3.source && K.push(e3);
|
|
20
|
+
z.configure && z.configure.props && z.configure.props.base && z.configure.props.base.optionProp && K.push({ source: "label", target: z.configure.props.base.optionProp }), A.value.changeMethod = function(e3) {
|
|
21
|
+
if (K.length > 0) {
|
|
22
|
+
let t2 = null;
|
|
23
|
+
B.value && null != e3 && null != e3 && (t2 = B.value.filter((t3) => e3 === t3.value)), R(z.configure, z.pageContext, K, t2);
|
|
24
|
+
}
|
|
25
|
+
T(e3, z.pageContext, z.configure, "change");
|
|
26
|
+
};
|
|
27
|
+
const L = A.value.monitorFields, N = [];
|
|
28
|
+
if (L) {
|
|
29
|
+
const e3 = [];
|
|
30
|
+
for (let t2 of L) if (t2.startsWith("${")) {
|
|
31
|
+
t2 = t2.substring(2, t2.length - 1);
|
|
32
|
+
const l2 = t2.split(".");
|
|
33
|
+
"page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (N.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
|
|
34
|
+
}
|
|
35
|
+
for (let t2 of e3) o(D[t2], () => {
|
|
36
|
+
ee();
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function Q() {
|
|
40
|
+
let e3 = "";
|
|
41
|
+
for (let t2 of N) e3 += "_" + k(D, t2);
|
|
42
|
+
return e3;
|
|
43
|
+
}
|
|
44
|
+
let X = Q(), Y = false;
|
|
45
|
+
const Z = A.value.optionconfigInfo ? A.value.optionconfigInfo : {};
|
|
46
|
+
function ee() {
|
|
47
|
+
Y && clearTimeout(Y), Y = setTimeout(function() {
|
|
48
|
+
const e3 = Q();
|
|
49
|
+
e3 != X && (X = e3, S(z.pageContext, Z, void 0).then((e4) => {
|
|
50
|
+
}));
|
|
51
|
+
}, 200);
|
|
52
|
+
}
|
|
53
|
+
n(() => {
|
|
54
|
+
Y && clearTimeout(Y);
|
|
55
|
+
});
|
|
56
|
+
const te = t(null), le = t(null), oe = t(null);
|
|
57
|
+
return a(() => {
|
|
58
|
+
u(() => {
|
|
59
|
+
const e3 = P.value;
|
|
60
|
+
q(e3, z.pageContext, z.configure, { formItemRef: te.value, componentRef: le.value, titleRef: oe.value, value: e3, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
|
|
61
|
+
});
|
|
62
|
+
}), w2({ updateOptions: function(e3) {
|
|
63
|
+
B.value = e3 || [];
|
|
64
|
+
}, addRequiredClass: function() {
|
|
65
|
+
O.value = V();
|
|
66
|
+
} }), (t2, l2) => {
|
|
67
|
+
const o2 = i("el-radio"), n2 = i("el-radio-group"), a2 = i("el-form-item");
|
|
68
|
+
return s(), r(a2, { ref_key: "formItemRef", ref: te, required: A.value.required, class: f(c(F) + (O.value ? " " + O.value : "")), "label-width": A.value.labelWidth, style: p(c(E)) }, { label: g(() => [A.value.tittleShow ? (s(), v("div", { key: 0, ref_key: "titleRef", ref: oe, style: p({ ...c(U), ...c($) }) }, C(c(I)(A.value.title)), 5)) : b("", true)]), default: g(() => [d(n2, { ref_key: "componentRef", ref: le, disabled: "disabled" === A.value.state, size: A.value.size, onChange: A.value.changeMethod, modelValue: P.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => P.value = e3) }, { default: g(() => [(s(true), v(m, null, h(B.value, (t3) => (s(), r(o2, { key: t3.value, label: t3.value, onClick: (l3) => c(T)(t3.value, e2.pageContext, e2.configure, "click", { values: P.value }) }, { default: g(() => [y(C(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
69
|
+
};
|
|
70
|
+
} });
|
|
71
|
+
export {
|
|
72
|
+
w as default
|
|
73
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as o, onBeforeUnmount as i, resolveComponent as r, createElementBlock as a, openBlock as u, Fragment as s, createBlock as c, createCommentVNode as p, normalizeStyle as d, normalizeClass as g, unref as m, withCtx as f, createElementVNode as v, toDisplayString as h } from "vue";
|
|
2
|
+
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { formatVariableValue as y, setVariableValue as b, getVariableValue as C } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import w from "quill";
|
|
5
|
+
import "quill/dist/quill.snow.css";
|
|
6
|
+
import { handleAfterInitEvent as k, handleFormEvent as q } from "../../../../utils/events/event-util.js";
|
|
7
|
+
import T from "agilebuilder-ui/src/utils/request";
|
|
8
|
+
import { $t as E } from "../../../../utils/i18n-util.js";
|
|
9
|
+
import { getToken as L } from "agilebuilder-ui/src/utils/auth";
|
|
10
|
+
import { getBaseUrl as R, addRequiredClassUtil as j } from "../../../../utils/common-util.js";
|
|
11
|
+
const S = { style: { width: "100%", height: "100%" } }, _ = e({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
|
|
12
|
+
const B = e2, H = t(null), M = B.pageContext.entity ? B.pageContext.entity : {}, N = x(B.pageContext, B.configure), A = B.configure.runtime ? B.configure.runtime : {}, D = A.style, F = A.class, U = A.headerStyle, W = A.titleExceedStyle, z = t(A.props ? A.props : {});
|
|
13
|
+
let I = z.value.value;
|
|
14
|
+
const O = y(B.pageContext, I), G = t(null);
|
|
15
|
+
let J = null;
|
|
16
|
+
t(null);
|
|
17
|
+
let K = z.value.state;
|
|
18
|
+
function P(e3) {
|
|
19
|
+
return "readonly" == e3 || "disabled" == e3;
|
|
20
|
+
}
|
|
21
|
+
const Q = P(K), V = t({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: ["12px", "13px", "14px", "15px", "16px", "18px", "20px", "24px", "28px", "32px", "36px"] }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: [] }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: Q ? "" : z.value.placeholder, readOnly: Q });
|
|
22
|
+
l(z.value, () => {
|
|
23
|
+
const e3 = z.value.state;
|
|
24
|
+
if (null != e3 && e3 !== K) {
|
|
25
|
+
K = e3;
|
|
26
|
+
const t2 = P(K);
|
|
27
|
+
J && (J.enable(!t2), J.root.dataset.placeholder = t2 ? "" : z.value.placeholder);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
const X = t([]), Y = t(false), Z = t(null), $ = t(null), ee = t(null);
|
|
31
|
+
let te;
|
|
32
|
+
function le(e3) {
|
|
33
|
+
var _a;
|
|
34
|
+
null !== e3.relatedTarget && ((_a = G.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || q(J.root.innerHTML, B.pageContext, B.configure, "change", { entity: M });
|
|
35
|
+
}
|
|
36
|
+
function ne(e3) {
|
|
37
|
+
if ("img" === e3.target.localName) {
|
|
38
|
+
X.value = [];
|
|
39
|
+
let t2 = e3.target.src;
|
|
40
|
+
X.value.push(t2), Y.value = true;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function oe(e3) {
|
|
44
|
+
const t2 = new FormData();
|
|
45
|
+
t2.append("file", e3);
|
|
46
|
+
const l2 = B.pageContext.backendUrl, n2 = R(l2, B.pageContext.isTest);
|
|
47
|
+
return T.post(n2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
|
|
48
|
+
}
|
|
49
|
+
function ie(e3, t2) {
|
|
50
|
+
let l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/)[1], o2 = atob(l2[1]), i2 = o2.length, r2 = new Uint8Array(i2);
|
|
51
|
+
for (; i2--; ) r2[i2] = o2.charCodeAt(i2);
|
|
52
|
+
return new File([r2], t2, { type: n2 });
|
|
53
|
+
}
|
|
54
|
+
return n(() => {
|
|
55
|
+
var _a;
|
|
56
|
+
J = new w(G.value, V.value);
|
|
57
|
+
const e3 = J.clipboard.convertHTML(O);
|
|
58
|
+
J.setContents(e3.ops), (_a = G.value) == null ? void 0 : _a.addEventListener("focusout", le), J.on("text-change", async function(e4, t2, l2) {
|
|
59
|
+
if (e4.ops && e4.ops.length > 0) for (let t3 = 0; t3 < e4.ops.length; t3++) {
|
|
60
|
+
const l3 = e4.ops[t3];
|
|
61
|
+
if (l3.insert && l3.insert.image) {
|
|
62
|
+
const e5 = l3.insert.image;
|
|
63
|
+
if (!e5.startsWith("data:image")) return;
|
|
64
|
+
const t4 = ie(e5, "image.png");
|
|
65
|
+
await oe(t4).then((t5) => {
|
|
66
|
+
if (!J) return;
|
|
67
|
+
const l4 = J.root.getElementsByTagName("img");
|
|
68
|
+
if (l4 && l4.length > 0) for (let n3 = 0; n3 < l4.length; n3++) {
|
|
69
|
+
const o2 = l4[n3];
|
|
70
|
+
o2.src === e5 && (o2.src = t5.url + "&jwt=" + L());
|
|
71
|
+
}
|
|
72
|
+
}).catch((e6) => {
|
|
73
|
+
console.error(e6, "上传图片失败");
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
const n2 = J.root.innerHTML;
|
|
78
|
+
b(M, N, n2), null != n2 && "" !== n2 && (H.value = "");
|
|
79
|
+
}), te = J.container, te.addEventListener("click", ne), function() {
|
|
80
|
+
if (J && J.container) {
|
|
81
|
+
const e4 = J.container.parentNode.getBoundingClientRect(), t2 = J.container.getBoundingClientRect();
|
|
82
|
+
let l2 = e4.height - (t2.top - e4.top);
|
|
83
|
+
l2 < 100 && (l2 = 100), J.container.style.height = l2 + "px";
|
|
84
|
+
}
|
|
85
|
+
}(), o(() => {
|
|
86
|
+
const e4 = C(M, N);
|
|
87
|
+
k(e4, B.pageContext, B.configure, { formItemRef: Z.value, componentRef: $.value, titleRef: ee.value, value: e4, entity: B.pageContext.entity.data, pageData: B.pageContext.entity.page });
|
|
88
|
+
});
|
|
89
|
+
}), i(() => {
|
|
90
|
+
G.value && G.value.removeEventListener("focusout", le), te && te.removeEventListener("click", ne);
|
|
91
|
+
}), _2({ addRequiredClass: function() {
|
|
92
|
+
H.value = j();
|
|
93
|
+
} }), (e3, t2) => {
|
|
94
|
+
const l2 = r("el-form-item"), n2 = r("el-image-viewer");
|
|
95
|
+
return u(), a(s, null, [z.value.tittleShow ? (u(), c(l2, { key: 0, required: z.value.required, class: g(m(F) + (H.value ? " " + H.value : "")), "label-width": z.value.labelWidth, style: d(m(D)) }, { label: f(() => [z.value.tittleShow ? (u(), a("div", { key: 0, style: d({ ...m(U), ...m(W) }) }, h(m(E)(z.value.title)), 5)) : p("", true)]), default: f(() => [v("div", S, [v("div", { ref_key: "quillEditorRef", ref: G, style: { width: "100%" } }, null, 512)])]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : p("", true), Y.value ? (u(), c(n2, { key: 1, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
|
|
96
|
+
Y.value = false;
|
|
97
|
+
}), "url-list": X.value }, null, 8, ["url-list"])) : p("", true)], 64);
|
|
98
|
+
};
|
|
99
|
+
} });
|
|
100
|
+
export {
|
|
101
|
+
_ as default
|
|
102
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as u, nextTick as i, resolveComponent as r, createBlock as n, openBlock as s, normalizeStyle as p, normalizeClass as f, unref as c, withCtx as v, createVNode as g, createElementBlock as m, Fragment as d, renderList as h, createCommentVNode as y, createElementVNode as x, toDisplayString as b, createTextVNode as C } from "vue";
|
|
2
|
+
import { setVariableValue as S, getOptionDatasFromPage as k, queryOptionDatasources as w, autoSetAfterSelect as _, getVariableValue as T } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
import { getFormModelFields as A } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { handleFormEvent as j, handleAfterInitEvent as R } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import V from "../common/title-suffix-element.vue.js";
|
|
6
|
+
import { $t as q } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
|
|
8
|
+
const I = { style: { float: "left" } }, M = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, O = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: O2 }) {
|
|
9
|
+
const P = e2, D = t(null), W = P.pageContext.entity ? P.pageContext.entity : {};
|
|
10
|
+
let E = A(P.pageContext, P.configure);
|
|
11
|
+
const F = P.configure.runtime ? P.configure.runtime : {}, U = F.style, $ = F.class, B = F.headerStyle, G = F.titleExceedStyle, H = t(F.props ? F.props : {});
|
|
12
|
+
let J = [];
|
|
13
|
+
function K() {
|
|
14
|
+
let e3 = T(W, E);
|
|
15
|
+
return null != e3 && (e3 = String(e3)), H.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
|
|
16
|
+
}
|
|
17
|
+
const L = l({ get: () => K(), set(e3) {
|
|
18
|
+
const t2 = K();
|
|
19
|
+
J = Array.isArray(t2) ? [...t2] : t2;
|
|
20
|
+
let l2 = e3;
|
|
21
|
+
if (H.value.multiple) {
|
|
22
|
+
l2 = !!H.value.arrayValue ? Array.isArray(e3) ? e3 : e3 ? String(e3).split(",") : [] : Array.isArray(e3) ? e3.length > 0 ? e3.join(",") : "" : e3 ?? "";
|
|
23
|
+
}
|
|
24
|
+
S(W, E, l2), null != l2 && (D.value = "");
|
|
25
|
+
} }), N = t(H.value.options ? H.value.options : []), Q = k(P.pageContext, P.configure);
|
|
26
|
+
Q.length > 0 && (N.value = Q);
|
|
27
|
+
const X = t(false), Y = P.configure.props && P.configure.props.dataOrigin ? P.configure.props.dataOrigin : {}, Z = Y.optionValueSetType;
|
|
28
|
+
let ee = [];
|
|
29
|
+
const te = H.value.optionconfigInfo ? H.value.optionconfigInfo : {};
|
|
30
|
+
if ("dynamicData" == Z || "dataTable" == Z || "service" == Z) {
|
|
31
|
+
if ("remote" == Y.filterType) {
|
|
32
|
+
let e3;
|
|
33
|
+
H.value.filterable = true, H.value.remote = true, H.value.remoteShowSuffix = true, H.value.remoteMethod = function(t2) {
|
|
34
|
+
e3 !== t2 && (e3 = t2, X.value = true, w(P.pageContext, te, t2).then((e4) => {
|
|
35
|
+
X.value = false;
|
|
36
|
+
}).then((e4) => {
|
|
37
|
+
X.value = false;
|
|
38
|
+
}));
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
if (Y.autoSets) for (let e3 of Y.autoSets) e3.source && ee.push(e3);
|
|
42
|
+
}
|
|
43
|
+
P.configure && P.configure.props && P.configure.props.base && P.configure.props.base.optionProp && ee.push({ source: "label", target: P.configure.props.base.optionProp }), H.value.changeMethod = function(e3) {
|
|
44
|
+
let t2, l2 = null;
|
|
45
|
+
N.value && null != e3 && null != e3 && (l2 = N.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value));
|
|
46
|
+
ee.length > 0 && _(P.configure, P.pageContext, ee, l2, [H.value.prop]);
|
|
47
|
+
l2 && l2.length > 0 && (t2 = l2[0]);
|
|
48
|
+
let o2 = {};
|
|
49
|
+
t2 && (o2.extendParams = t2);
|
|
50
|
+
o2.options = N.value, o2.oldValue = J, j(e3, P.pageContext, P.configure, "change", o2);
|
|
51
|
+
};
|
|
52
|
+
const le = H.value.monitorFields, oe = [];
|
|
53
|
+
if (le) {
|
|
54
|
+
const e3 = [];
|
|
55
|
+
for (let t2 of le) if (t2.startsWith("${")) {
|
|
56
|
+
t2 = t2.substring(2, t2.length - 1);
|
|
57
|
+
const l2 = t2.split(".");
|
|
58
|
+
"page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (oe.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
|
|
59
|
+
}
|
|
60
|
+
for (let t2 of e3) o(W[t2], () => {
|
|
61
|
+
ie();
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
let ae = "", ue = false;
|
|
65
|
+
function ie() {
|
|
66
|
+
ue && clearTimeout(ue), ue = setTimeout(function() {
|
|
67
|
+
const e3 = function() {
|
|
68
|
+
let e4 = [];
|
|
69
|
+
for (let t2 of oe) e4.push(T(W, t2));
|
|
70
|
+
return e4.join(",");
|
|
71
|
+
}();
|
|
72
|
+
e3 != ae && (ae = e3, te.watchAttrValue = e3, w(P.pageContext, te, void 0).then((e4) => {
|
|
73
|
+
X.value = false;
|
|
74
|
+
}));
|
|
75
|
+
}, 200);
|
|
76
|
+
}
|
|
77
|
+
a(() => {
|
|
78
|
+
ue && clearTimeout(ue);
|
|
79
|
+
});
|
|
80
|
+
const re = t(null), ne = t(null), se = t(null);
|
|
81
|
+
return u(() => {
|
|
82
|
+
i(() => {
|
|
83
|
+
const e3 = L.value;
|
|
84
|
+
R(e3, P.pageContext, P.configure, { formItemRef: re.value, componentRef: ne.value, titleRef: se.value, value: e3, entity: P.pageContext.entity.data, pageData: P.pageContext.entity.page });
|
|
85
|
+
});
|
|
86
|
+
}), O2({ updateOptions: function(e3) {
|
|
87
|
+
N.value = e3 || [];
|
|
88
|
+
}, addRequiredClass: function() {
|
|
89
|
+
D.value = z();
|
|
90
|
+
} }), (t2, l2) => {
|
|
91
|
+
const o2 = r("el-option"), a2 = r("el-select"), u2 = r("el-form-item");
|
|
92
|
+
return s(), n(u2, { ref_key: "formItemRef", ref: re, required: !!H.value.required, class: f(c($) + (D.value ? " " + D.value : "")), "label-width": H.value.labelWidth, style: p(c(U)) }, { label: v(() => [H.value.tittleShow ? (s(), m("div", { key: 0, ref_key: "titleRef", ref: se, style: p({ ...c(B), ...c(G) }) }, [H.value.prefixType ? (s(), n(V, { key: 0, pageContext: e2.pageContext, property: H.value }, null, 8, ["pageContext", "property"])) : (s(), m(d, { key: 1 }, [C(b(c(q)(H.value.title)), 1)], 64))], 4)) : y("", true)]), default: v(() => [g(a2, { ref_key: "componentRef", ref: ne, style: { width: "100%" }, disabled: "disabled" === H.value.state, size: H.value.size, clearable: H.value.clearable, multiple: H.value.multiple, "collapse-tags": H.value.collapseTags, "collapse-tags-tooltip": H.value.collapseTagsTooltip, filterable: H.value.filterable, "allow-create": H.value.allowCreate, placeholder: H.value.placeholder, "remote-show-suffix": H.value.remoteShowSuffix, remote: H.value.remote, "remote-method": H.value.remoteMethod, loading: X.value, onChange: H.value.changeMethod, modelValue: L.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => L.value = e3) }, { default: v(() => [(s(true), m(d, null, h(N.value, (t3) => (s(), n(o2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => c(j)(t3.value, e2.pageContext, e2.configure, "click", { values: L.value }) }, { default: v(() => [t3._description_ ? (s(), m(d, { key: 0 }, [x("span", I, b(t3.label), 1), x("span", M, b(t3._description_), 1)], 64)) : y("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
93
|
+
};
|
|
94
|
+
} });
|
|
95
|
+
export {
|
|
96
|
+
O as default
|
|
97
|
+
};
|
package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as i, nextTick as o, createElementBlock as n, openBlock as r, normalizeClass as a, normalizeStyle as p, unref as l, createElementVNode as s, createBlock as u, createCommentVNode as c, createTextVNode as g, toDisplayString as f } from "vue";
|
|
2
|
+
import { SuperIcon as m } from "agilebuilder-ui";
|
|
3
|
+
import { $t as y } from "../../../../utils/i18n-util.js";
|
|
4
|
+
import { handleAfterInitEvent as b } from "../../../../utils/events/event-util.js";
|
|
5
|
+
const d = e({ __name: "separatelabel-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: d2 }) {
|
|
6
|
+
const v = e2, x = t(null), C = v.configure.runtime ? v.configure.runtime : {}, T = C.style, V = C.class, h = C.headerStyle;
|
|
7
|
+
return i(() => {
|
|
8
|
+
o(() => {
|
|
9
|
+
const e3 = y(v.configure.props.base.title);
|
|
10
|
+
b(e3, v.pageContext, v.configure, { componentRef: x.value, value: e3, entity: v.pageContext.entity.data, pageData: v.pageContext.entity.page });
|
|
11
|
+
});
|
|
12
|
+
}), d2({}), (t2, i2) => (r(), n("div", { style: p(l(T)), class: a([l(V), "amb-widget-separatelabel"]), ref_key: "thisRef", ref: x }, [s("div", { class: "label", style: p(l(h)) }, [e2.configure.props.iconType && e2.configure.props.iconValue ? (r(), u(l(m), { key: 0, iconType: e2.configure.props.iconType, iconValue: e2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : c("", true), g(" " + f(l(y)(e2.configure.props.base.title)), 1)], 4)], 6));
|
|
13
|
+
} });
|
|
14
|
+
export {
|
|
15
|
+
d as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as u, resolveComponent as i, createBlock as n, openBlock as v, normalizeStyle as o, normalizeClass as r, unref as c, withCtx as s, createVNode as f, createElementBlock as p, createCommentVNode as m, toDisplayString as d } from "vue";
|
|
2
|
+
import { getFormModelFields as g } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getVariableValue as V, setVariableValue as y } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { handleAfterInitEvent as x, handleFormEvent as h } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { $t as C } from "../../../../utils/i18n-util.js";
|
|
6
|
+
import { addRequiredClassUtil as b } from "../../../../utils/common-util.js";
|
|
7
|
+
const w = e({ __name: "switch-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: w2 }) {
|
|
8
|
+
const R = e2, _ = t(null), j = R.pageContext.entity ? R.pageContext.entity : {};
|
|
9
|
+
let k = g(R.pageContext, R.configure);
|
|
10
|
+
const q = R.configure.runtime ? R.configure.runtime : {}, S = q.style, z = q.class, I = q.headerStyle, T = q.titleExceedStyle, W = t(q.props ? q.props : {});
|
|
11
|
+
let D = V(j, k);
|
|
12
|
+
function E(e3) {
|
|
13
|
+
return void 0 !== W.value[e3] && null !== W.value[e3] && "" !== W.value[e3];
|
|
14
|
+
}
|
|
15
|
+
null == D || "number" != typeof D || D + "" != "1" && D + "" != "0" || (E("activeValue") || (W.value.activeValue = 1), E("inactiveValue") || (W.value.inactiveValue = 0)), null != D && "boolean" == typeof D && (E("activeValue") || (W.value.activeValue = true), E("inactiveValue") || (W.value.inactiveValue = false)), E("activeValue") || (W.value.activeValue = true), E("inactiveValue") || (W.value.inactiveValue = false);
|
|
16
|
+
const O = q.switchStyle, U = l({ get() {
|
|
17
|
+
let e3 = V(j, k);
|
|
18
|
+
return null != e3 && (true === W.value.activeValue ? (e3 + "" == "1" && (e3 = true), e3 + "" == "0" && (e3 = false)) : 1 === W.value.activeValue ? (e3 + "" == "true" && (e3 = 1), e3 + "" == "false" && (e3 = 0)) : e3 += ""), e3;
|
|
19
|
+
}, set(e3) {
|
|
20
|
+
null != e3 && (true === W.value.activeValue ? (e3 + "" == "1" && (e3 = true), e3 + "" == "0" && (e3 = false)) : 1 === W.value.activeValue ? (e3 + "" == "true" && (e3 = 1), e3 + "" == "false" && (e3 = 0)) : e3 += ""), y(j, k, e3), null != e3 && (_.value = "");
|
|
21
|
+
} }), A = t(null), B = t(null), F = t(null);
|
|
22
|
+
return a(() => {
|
|
23
|
+
u(() => {
|
|
24
|
+
const e3 = U.value;
|
|
25
|
+
x(e3, R.pageContext, R.configure, { formItemRef: A.value, componentRef: B.value, titleRef: F.value, value: e3, entity: R.pageContext.entity.data, pageData: R.pageContext.entity.page });
|
|
26
|
+
});
|
|
27
|
+
}), w2({ addRequiredClass: function() {
|
|
28
|
+
_.value = b();
|
|
29
|
+
} }), (t2, l2) => {
|
|
30
|
+
const a2 = i("el-switch"), u2 = i("el-form-item");
|
|
31
|
+
return v(), n(u2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(S)) }, { label: s(() => [W.value.tittleShow ? (v(), p("div", { key: 0, ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }) }, d(c(C)(W.value.title)), 5)) : m("", true)]), default: s(() => [f(a2, { ref_key: "componentRef", ref: B, disabled: "disabled" === W.value.state, "active-value": W.value.activeValue, "active-text": W.value.activeText, "inactive-value": W.value.inactiveValue, "inactive-text": W.value.inactiveText, width: W.value.offOnWidth, size: W.value.size, style: o(c(O)), modelValue: U.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => U.value = e3), onChange: l2[1] || (l2[1] = (t3) => c(h)(t3, e2.pageContext, e2.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
32
|
+
};
|
|
33
|
+
} });
|
|
34
|
+
export {
|
|
35
|
+
w as default
|
|
36
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as i, resolveComponent as o, createBlock as n, openBlock as r, normalizeStyle as u, normalizeClass as s, unref as p, withCtx as c, createElementBlock as f, Fragment as g, renderList as m, createTextVNode as v, toDisplayString as y, createCommentVNode as d } from "vue";
|
|
2
|
+
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getVariableValue as C, setVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { handleAfterInitEvent as h, handleFormEvent as k } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
6
|
+
const j = e({ __name: "tag-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
7
|
+
const j2 = e2, A = x(j2.pageContext, j2.configure), R = j2.configure.runtime ? j2.configure.runtime : {}, q = R.style, w = R.class, z = R.headerStyle, S = R.titleExceedStyle, I = t(R.props ? R.props : {});
|
|
8
|
+
let $ = I.value.formatting;
|
|
9
|
+
const D = j2.pageContext.entity ? j2.pageContext.entity : {}, E = l(() => {
|
|
10
|
+
let e3 = C(D, A);
|
|
11
|
+
null == e3 && (e3 = []), Array.isArray(e3) || (e3 = (e3 + "").split(","));
|
|
12
|
+
const t2 = [];
|
|
13
|
+
let l2 = 1;
|
|
14
|
+
for (const a2 of e3) {
|
|
15
|
+
if (null == a2 || "" === a2) continue;
|
|
16
|
+
const e4 = { value: a2, label: a2 };
|
|
17
|
+
$ && (e4.label = $.replace(/\${value}/g, e4.value).replace(/\${no}/g, l2)), t2.push(e4), l2++;
|
|
18
|
+
}
|
|
19
|
+
return t2;
|
|
20
|
+
});
|
|
21
|
+
const O = t(null), W = t(null);
|
|
22
|
+
return a(() => {
|
|
23
|
+
i(() => {
|
|
24
|
+
const e3 = E.value;
|
|
25
|
+
h(e3, j2.pageContext, j2.configure, { formItemRef: O.value, titleRef: W.value, value: e3, entity: j2.pageContext.entity.data, pageData: j2.pageContext.entity.page });
|
|
26
|
+
});
|
|
27
|
+
}), (t2, l2) => {
|
|
28
|
+
const a2 = o("el-tag"), i2 = o("el-form-item");
|
|
29
|
+
return r(), n(i2, { ref_key: "formItemRef", ref: O, required: I.value.required, class: s(p(w)), "label-width": I.value.labelWidth, style: u(p(q)) }, { label: c(() => [I.value.tittleShow ? (r(), f("div", { key: 0, ref_key: "titleRef", ref: W, style: u({ ...p(z), ...p(S) }) }, y(p(_)(I.value.title)), 5)) : d("", true)]), default: c(() => [(r(true), f(g, null, m(E.value, (t3) => (r(), n(a2, { key: t3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e3) => function(e4, t4) {
|
|
30
|
+
if (I.value.closable) {
|
|
31
|
+
let e5 = C(D, A);
|
|
32
|
+
null == e5 && (e5 = []);
|
|
33
|
+
const l3 = Array.isArray(e5);
|
|
34
|
+
l3 || (e5 = (e5 + "").split(","));
|
|
35
|
+
const a3 = e5.indexOf(t4.value);
|
|
36
|
+
a3 > -1 && e5.splice(a3, 1), l3 || (e5 = e5.join(",")), b(D, A, e5);
|
|
37
|
+
}
|
|
38
|
+
k(e4, j2.pageContext, j2.configure, "remove");
|
|
39
|
+
}(e3, t3), onClick: l2[0] || (l2[0] = (t4) => p(k)(t4, e2.pageContext, e2.configure, "click")) }, { default: c(() => [v(y(t3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
40
|
+
};
|
|
41
|
+
} });
|
|
42
|
+
export {
|
|
43
|
+
j as default
|
|
44
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as o, resolveComponent as u, createElementBlock as n, openBlock as r, createVNode as i, normalizeStyle as s, normalizeClass as p, unref as m, withCtx as f, createCommentVNode as c, createBlock as g, Fragment as d, createTextVNode as v, toDisplayString as x } from "vue";
|
|
2
|
+
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { setVariableValue as C, getVariableValue as h } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { handleAfterInitEvent as w, handleFormEvent as b } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import k from "../common/title-suffix-element.vue.js";
|
|
6
|
+
import { $t as R } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { addRequiredClassUtil as j } from "../../../../utils/common-util.js";
|
|
8
|
+
const _ = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
|
|
9
|
+
const q = e2, I = t(null), z = q.pageContext.entity ? q.pageContext.entity : {};
|
|
10
|
+
let S = y(q.pageContext, q.configure);
|
|
11
|
+
const V = l({ get: () => h(z, S), set(e3) {
|
|
12
|
+
C(z, S, e3), null != e3 && "" !== e3 && (I.value = "");
|
|
13
|
+
} }), B = q.configure.runtime ? q.configure.runtime : {}, D = t(B.props ? B.props : {}), E = B.style, F = B.class, L = B.headerStyle, N = B.titleExceedStyle, T = t(null), U = t(null), W = t(null);
|
|
14
|
+
return a(() => {
|
|
15
|
+
o(() => {
|
|
16
|
+
const e3 = V.value;
|
|
17
|
+
w(e3, q.pageContext, q.configure, { formItemRef: T.value, componentRef: U.value, titleRef: W.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
|
|
18
|
+
});
|
|
19
|
+
}), _2({ addRequiredClass: function() {
|
|
20
|
+
I.value = j();
|
|
21
|
+
} }), (t2, l2) => {
|
|
22
|
+
const a2 = u("el-input"), o2 = u("el-form-item");
|
|
23
|
+
return r(), n("div", null, [i(o2, { ref_key: "formItemRef", ref: T, required: !!D.value.required, class: p(m(F) + (I.value ? " " + I.value : "")), "label-width": D.value.labelWidth, style: s(m(E)) }, { label: f(() => [D.value.tittleShow ? (r(), n("div", { key: 0, ref_key: "titleRef", ref: W, style: s({ ...m(L), ...m(N) }) }, [D.value.prefixType ? (r(), g(k, { key: 0, pageContext: e2.pageContext, property: D.value }, null, 8, ["pageContext", "property"])) : (r(), n(d, { key: 1 }, [v(x(m(R)(D.value.title)), 1)], 64))], 4)) : c("", true)]), default: f(() => [i(a2, { ref_key: "componentRef", ref: U, disabled: "disabled" === D.value.state, readonly: "readonly" === D.value.state, size: D.value.size, clearable: D.value.clearable, placeholder: D.value.placeholder, modelValue: V.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => V.value = e3), rows: D.value.rows ? D.value.rows : 2, maxlength: D.value.maxLength, "show-word-limit": D.value.showInputNum, type: "textarea", onInput: l2[1] || (l2[1] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[2] || (l2[2] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[3] || (l2[3] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[4] || (l2[4] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[5] || (l2[5] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "show-word-limit"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])]);
|
|
24
|
+
};
|
|
25
|
+
} });
|
|
26
|
+
export {
|
|
27
|
+
_ as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PageContext, Component } from '../../utils/interfaces/page-design-types.js';
|
|
2
|
+
|
|
3
|
+
interface MyProps {
|
|
4
|
+
pageContext: PageContext;
|
|
5
|
+
configure: Component;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { defineComponent as e, ref as o, markRaw as t, onMounted as n, resolveDirective as i, withDirectives as r, createCommentVNode as s, unref as u, createBlock as l, openBlock as c, resolveDynamicComponent as g, normalizeClass as f, normalizeStyle as a, vShow as p, nextTick as m } from "vue";
|
|
2
|
+
import v from "./error-render.vue.js";
|
|
3
|
+
import { getRuntimeComponentByName as d } from "../../utils/assemblys-config.js";
|
|
4
|
+
import { PageDimensions as y } from "../../utils/interfaces/page-design-types.js";
|
|
5
|
+
import { addComponentRef as C, addComponentRefByCode as x } from "../../utils/global-refs.js";
|
|
6
|
+
import { getPermissionCodes as h, controlObjectRenderState as b } from "../../utils/page-init-util.js";
|
|
7
|
+
import { getFormPropName as j, getSizeConfig as w } from "../../utils/page-helper-util.js";
|
|
8
|
+
import { getPropClassName as _, isNumber as O } from "../../utils/common-util.js";
|
|
9
|
+
import { isShowComponent as $ } from "../../utils/events/event-util.js";
|
|
10
|
+
const H = e({ __name: "home-chart-render", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
11
|
+
const H2 = e2;
|
|
12
|
+
null == H2.configure.style && (H2.configure.style = {});
|
|
13
|
+
const N = h(H2.configure, H2.pageContext);
|
|
14
|
+
H2.configure && H2.configure.props && H2.configure.props.base && (H2.configure.props.base.functionCode = N);
|
|
15
|
+
let k = o(true), B = o(true);
|
|
16
|
+
const P = o({});
|
|
17
|
+
P.value = t(d(H2.configure.name));
|
|
18
|
+
const R = o(true);
|
|
19
|
+
null == P.value && (P.value = v, R.value = false);
|
|
20
|
+
const S = o(null), W = o({}), q = o(""), z = _(H2.configure);
|
|
21
|
+
z && (q.value = z);
|
|
22
|
+
const A = H2.configure.runtime && H2.configure.runtime.common ? H2.configure.runtime.common : {};
|
|
23
|
+
if (A.class && (q.value += " " + A.class), A.style) {
|
|
24
|
+
Object.assign(W.value, A.style);
|
|
25
|
+
const e3 = H2.pageContext && H2.pageContext.dimensions ? H2.pageContext.dimensions : y.PC, o2 = A.style[e3 + "_style"];
|
|
26
|
+
o2 && Object.assign(W.value, o2);
|
|
27
|
+
const t2 = A.style[e3 + "_class"];
|
|
28
|
+
t2 && (q.value += " " + t2);
|
|
29
|
+
}
|
|
30
|
+
function D(e3) {
|
|
31
|
+
if (S.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
32
|
+
k.value = true;
|
|
33
|
+
}), e3 && !e3.hide && (e3.hide = function() {
|
|
34
|
+
k.value = false;
|
|
35
|
+
}), e3 && !e3.getConfigure && (e3.getConfigure = function() {
|
|
36
|
+
return H2.configure;
|
|
37
|
+
}), H2.configure.uuid && C(H2.pageContext, H2.configure.uuid, S), H2.configure.code) x(H2.pageContext, H2.configure.code, S);
|
|
38
|
+
else if (H2.configure.props && H2.configure.props.base) {
|
|
39
|
+
const e4 = H2.configure.props.base;
|
|
40
|
+
if (e4.prop) {
|
|
41
|
+
let o3 = e4.prop;
|
|
42
|
+
o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), x(H2.pageContext, o3, S);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const o2 = H2.configure.props ? H2.configure.props.base : null;
|
|
46
|
+
if (o2 && o2.prop) {
|
|
47
|
+
let e4 = o2.prop;
|
|
48
|
+
e4 = j(e4), b(H2.pageContext, e4);
|
|
49
|
+
}
|
|
50
|
+
!function() {
|
|
51
|
+
if (!S.value) return;
|
|
52
|
+
const e4 = w(H2.pageContext, H2.configure);
|
|
53
|
+
"table" !== H2.configure.name && e4 && e4.isCalcHeight && m(() => {
|
|
54
|
+
let e5 = S.value.$el;
|
|
55
|
+
e5 || (e5 = S.value);
|
|
56
|
+
const o3 = e5.parentNode;
|
|
57
|
+
if (!e5 || !o3) return;
|
|
58
|
+
const t2 = e5.getBoundingClientRect();
|
|
59
|
+
let n2 = window.innerHeight - t2.y - 80, i2 = n2 + "";
|
|
60
|
+
O(n2) && (i2 = n2 + "px"), W.value.height = i2, W.value["overflow-y"] = "auto", W.value["overflow-x"] = "hidden", H2.configure.sytle || (H2.configure.sytle = {}), H2.configure.sytle._heightStyle = i2;
|
|
61
|
+
});
|
|
62
|
+
}();
|
|
63
|
+
}
|
|
64
|
+
n(() => {
|
|
65
|
+
E();
|
|
66
|
+
});
|
|
67
|
+
const E = () => {
|
|
68
|
+
if (!S.value) return;
|
|
69
|
+
let e3 = S.value.$el;
|
|
70
|
+
e3 || (e3 = S.value);
|
|
71
|
+
const o2 = e3.parentNode;
|
|
72
|
+
if (!e3 || !o2) return;
|
|
73
|
+
const t2 = H2.configure.props ? H2.configure.props : {}, n2 = H2.configure.style ? H2.configure.style : {}, i2 = t2.position;
|
|
74
|
+
"top" == i2 || "bottom" == i2 || n2.position;
|
|
75
|
+
};
|
|
76
|
+
return (o2, t2) => {
|
|
77
|
+
const n2 = i("permission");
|
|
78
|
+
return u($)(e2.configure) ? r((c(), l(g(P.value), { key: 0, ref: D, style: a(W.value), class: f(q.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, u(B)], [n2, { codes: u(N) ? u(N) : "true", systemCode: e2.pageContext.systemCode }]]) : s("", true);
|
|
79
|
+
};
|
|
80
|
+
} });
|
|
81
|
+
export {
|
|
82
|
+
H as default
|
|
83
|
+
};
|