super-page-runtime 2.3.22-tmp2 → 2.3.22-tmp3
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.mjs +4 -4
- package/dist/es/components/runtime/utils/ai-chat-util.mjs +12 -12
- package/dist/es/components/runtime/utils/anchor-util.mjs +49 -49
- package/dist/es/components/runtime/utils/api/page-expose-util.mjs +142 -147
- package/dist/es/components/runtime/utils/assemblys-config.mjs +12 -13
- package/dist/es/components/runtime/utils/barcode-util.mjs +9 -9
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.mjs +122 -121
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.mjs +32 -32
- package/dist/es/components/runtime/utils/charts/chart-pie-util.mjs +71 -70
- package/dist/es/components/runtime/utils/charts/chart-radar-util.mjs +48 -48
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.mjs +38 -38
- package/dist/es/components/runtime/utils/charts/chart-util.mjs +220 -223
- package/dist/es/components/runtime/utils/common-util.mjs +91 -94
- package/dist/es/components/runtime/utils/eventBus.mjs +3 -3
- package/dist/es/components/runtime/utils/events/event-util.mjs +341 -356
- package/dist/es/components/runtime/utils/events/print-label.mjs +75 -75
- package/dist/es/components/runtime/utils/events/standard-event.mjs +957 -1012
- package/dist/es/components/runtime/utils/events/validator-util.mjs +251 -269
- package/dist/es/components/runtime/utils/form/date-shortcuts.mjs +26 -26
- package/dist/es/components/runtime/utils/form/scan-util.mjs +51 -56
- package/dist/es/components/runtime/utils/global-refs.mjs +52 -53
- package/dist/es/components/runtime/utils/i18n-util.mjs +11 -11
- package/dist/es/components/runtime/utils/interfaces/page-design-types.mjs +2 -2
- package/dist/es/components/runtime/utils/page-helper-util.mjs +246 -255
- package/dist/es/components/runtime/utils/page-init-util.mjs +204 -222
- package/dist/es/components/runtime/utils/page-permission-util.mjs +20 -21
- package/dist/es/components/runtime/utils/page-store.mjs +38 -38
- package/dist/es/components/runtime/utils/store-util.mjs +9 -9
- package/dist/es/components/runtime/utils/table-utils.mjs +69 -74
- package/dist/es/components/runtime/utils/tree-utils.mjs +43 -53
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.mjs +22 -22
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.mjs +16 -16
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.mjs +32 -32
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.mjs +15 -16
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.mjs +44 -44
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.mjs +10 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.mjs +9 -9
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.mjs +46 -47
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.mjs +39 -46
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.mjs +28 -28
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.mjs +37 -37
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.mjs +28 -28
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.mjs +28 -28
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.mjs +220 -231
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.mjs +7 -7
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.mjs +24 -33
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.mjs +10 -10
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.mjs +208 -215
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.mjs +14 -14
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.mjs +28 -29
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.mjs +24 -26
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.mjs +13 -22
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.mjs +13 -12
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.mjs +16 -17
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.mjs +14 -13
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.mjs +23 -23
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.mjs +13 -13
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.mjs +24 -24
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.mjs +15 -16
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.mjs +12 -13
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.mjs +21 -21
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.mjs +58 -58
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.mjs +18 -18
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.mjs +15 -15
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.mjs +9 -10
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.mjs +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.mjs +79 -79
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.mjs +39 -40
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.mjs +55 -55
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.mjs +289 -309
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.mjs +254 -261
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.mjs +64 -66
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.mjs +109 -111
- package/dist/es/components/runtime/views/assemblys/error-render.vue.mjs +3 -3
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.mjs +49 -50
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.mjs +31 -33
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.mjs +56 -56
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.mjs +80 -80
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.mjs +45 -45
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.mjs +19 -19
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.mjs +60 -60
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.mjs +23 -23
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.mjs +67 -68
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.mjs +32 -33
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.mjs +25 -25
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.mjs +3 -3
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.mjs +11 -11
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.mjs +64 -64
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.mjs +154 -158
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.mjs +105 -111
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.mjs +12 -12
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.mjs +30 -30
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.mjs +36 -37
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.mjs +23 -23
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.mjs +62 -73
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.mjs +113 -124
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.mjs +21 -21
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.mjs +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.mjs +19 -19
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.mjs +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.mjs +29 -29
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.mjs +16 -16
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.mjs +18 -18
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.mjs +20 -21
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.mjs +15 -15
- package/dist/es/components/runtime/views/home-chart.vue.mjs +38 -39
- package/dist/es/components/runtime/views/home-chart.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/super-page-dialog.vue.mjs +18 -18
- package/dist/es/components/runtime/views/super-page-dialog.vue3.mjs +2 -2
- package/dist/es/components/runtime/views/super-page.vue.mjs +4 -4
- package/dist/es/components/runtime/views/super-page.vue2.mjs +234 -237
- package/dist/es/index.mjs +27 -27
- package/dist/es/style.css +1 -996
- package/dist/lib/_virtual/_plugin-vue_export-helper.cjs +1 -6
- package/dist/lib/assets/chart-themes/bar-theme.cjs +1 -2
- package/dist/lib/assets/chart-themes/gauge-theme.cjs +1 -2
- package/dist/lib/assets/chart-themes/pie-theme.cjs +1 -2
- package/dist/lib/assets/chart-themes/radar-theme.cjs +1 -2
- package/dist/lib/assets/chart-themes/scatter-theme.cjs +1 -2
- package/dist/lib/assets/file.png.cjs +1 -2
- package/dist/lib/assets/folder.png.cjs +1 -2
- package/dist/lib/components/runtime/utils/ai-chat-util.cjs +1 -13
- package/dist/lib/components/runtime/utils/anchor-util.cjs +1 -62
- package/dist/lib/components/runtime/utils/api/page-expose-util.cjs +1 -169
- package/dist/lib/components/runtime/utils/assemblys-config.cjs +1 -16
- package/dist/lib/components/runtime/utils/barcode-util.cjs +1 -10
- package/dist/lib/components/runtime/utils/charts/chart-columnline-util.cjs +2 -137
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.cjs +1 -34
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.cjs +2 -78
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.cjs +1 -52
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.cjs +1 -43
- package/dist/lib/components/runtime/utils/charts/chart-util.cjs +1 -244
- package/dist/lib/components/runtime/utils/common-util.cjs +1 -91
- package/dist/lib/components/runtime/utils/eventBus.cjs +1 -3
- package/dist/lib/components/runtime/utils/events/event-util.cjs +1 -345
- package/dist/lib/components/runtime/utils/events/print-label.cjs +1 -97
- package/dist/lib/components/runtime/utils/events/standard-event.cjs +1 -1101
- package/dist/lib/components/runtime/utils/events/validator-util.cjs +1 -296
- package/dist/lib/components/runtime/utils/form/date-shortcuts.cjs +1 -34
- package/dist/lib/components/runtime/utils/form/scan-util.cjs +1 -90
- package/dist/lib/components/runtime/utils/global-refs.cjs +1 -42
- package/dist/lib/components/runtime/utils/i18n-util.cjs +1 -11
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.cjs +1 -4
- package/dist/lib/components/runtime/utils/page-helper-util.cjs +1 -354
- package/dist/lib/components/runtime/utils/page-init-util.cjs +1 -244
- package/dist/lib/components/runtime/utils/page-permission-util.cjs +1 -26
- package/dist/lib/components/runtime/utils/page-store.cjs +1 -50
- package/dist/lib/components/runtime/utils/store-util.cjs +1 -11
- package/dist/lib/components/runtime/utils/store.cjs +1 -3
- package/dist/lib/components/runtime/utils/table-utils.cjs +1 -68
- package/dist/lib/components/runtime/utils/tree-utils.cjs +1 -54
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.cjs +1 -24
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.cjs +1 -17
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.cjs +1 -35
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.cjs +1 -17
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.cjs +1 -41
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.cjs +1 -11
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.cjs +1 -11
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.cjs +1 -53
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.cjs +1 -48
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.cjs +1 -24
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.cjs +1 -34
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.cjs +1 -24
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.cjs +1 -24
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.cjs +1 -402
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.cjs +1 -6
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.cjs +1 -36
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.cjs +1 -13
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue2.cjs +1 -249
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.cjs +1 -16
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.cjs +1 -32
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.cjs +1 -32
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.cjs +1 -19
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.cjs +1 -12
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.cjs +1 -21
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.cjs +1 -13
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.cjs +1 -30
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.cjs +1 -15
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.cjs +1 -21
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.cjs +1 -17
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.cjs +1 -15
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.cjs +1 -27
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.cjs +1 -79
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.cjs +1 -20
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.cjs +1 -15
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.cjs +1 -12
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.cjs +1 -88
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.cjs +1 -43
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.cjs +1 -59
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.cjs +1 -382
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.cjs +1 -322
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.cjs +1 -81
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.cjs +1 -124
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.cjs +1 -57
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.cjs +1 -35
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.cjs +1 -57
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.cjs +1 -91
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.cjs +1 -47
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.cjs +1 -20
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.cjs +1 -65
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.cjs +1 -20
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.cjs +1 -70
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.cjs +1 -31
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.cjs +1 -26
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.cjs +1 -13
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.cjs +1 -75
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.cjs +1 -188
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.cjs +1 -130
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.cjs +1 -11
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.cjs +1 -29
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.cjs +1 -38
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.cjs +1 -20
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.cjs +1 -73
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.cjs +1 -132
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.cjs +1 -23
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.cjs +1 -23
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.cjs +1 -34
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.cjs +1 -17
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.cjs +1 -20
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.cjs +1 -19
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.cjs +1 -14
- package/dist/lib/components/runtime/views/home-chart.vue.cjs +1 -38
- package/dist/lib/components/runtime/views/home-chart.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/super-page-dialog.vue.cjs +1 -23
- package/dist/lib/components/runtime/views/super-page-dialog.vue3.cjs +1 -3
- package/dist/lib/components/runtime/views/super-page.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/super-page.vue2.cjs +1 -264
- package/dist/lib/i18n/langs/cn.cjs +1 -2
- package/dist/lib/i18n/langs/en.cjs +1 -2
- package/dist/lib/index.cjs +1 -6
- package/dist/lib/style.css +1 -996
- package/dist/umd/index.full.min.js +3 -7429
- package/dist/umd/style.css +1 -996
- package/package.json +77 -76
- package/dist/es/components/runtime/utils/api/api-util.mjs +0 -4
- package/dist/lib/components/runtime/utils/api/api-util.cjs +0 -3
|
@@ -1,130 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("../../../../utils/page-helper-util.cjs"), l = require("../../../../utils/page-init-util.cjs"), o = require("../../../../utils/events/event-util.cjs"), a = require("../common/title-suffix-element.vue.cjs"), n = require("../../../../utils/i18n-util.cjs"), r = require("../../../../utils/common-util.cjs"), u = require("@element-plus/icons-vue"), i = require("clipboard"), s = require("element-plus"), c = require("vue-i18n"), p = { style: { "padding-left": "5px" } }, f = { style: { width: "100%" } }, v = { style: { float: "left" } }, g = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, d = e.defineComponent({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(d2, { expose: m }) {
|
|
3
|
-
const { t: h } = c.useI18n(), y = d2, C = e.ref(null), x = y.pageContext.entity ? y.pageContext.entity : {};
|
|
4
|
-
let b = l.getFormModelFields(y.pageContext, y.configure);
|
|
5
|
-
const k = y.configure.runtime ? y.configure.runtime : {}, w = k.style, V = k.class, S = k.headerStyle, q = k.titleExceedStyle, E = e.ref(k.props ? k.props : {});
|
|
6
|
-
let _ = [];
|
|
7
|
-
const B = "copyBtn_" + y.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
|
|
8
|
-
function T() {
|
|
9
|
-
let e2 = t.getVariableValue(x, b);
|
|
10
|
-
return null != e2 && (e2 = String(e2)), E.value.multiple && (e2 = e2 ? String(e2).split(",") : []), e2;
|
|
11
|
-
}
|
|
12
|
-
const A = e.computed({ get: () => T(), set(e2) {
|
|
13
|
-
const l2 = T();
|
|
14
|
-
_ = Array.isArray(l2) ? [...l2] : l2;
|
|
15
|
-
let o2 = e2;
|
|
16
|
-
if (E.value.multiple) {
|
|
17
|
-
o2 = !!E.value.arrayValue ? Array.isArray(e2) ? e2 : e2 ? String(e2).split(",") : [] : Array.isArray(e2) ? e2.length > 0 ? e2.join(",") : "" : e2 ?? "";
|
|
18
|
-
}
|
|
19
|
-
void 0 === o2 && (o2 = null), t.setVariableValue(x, b, o2), null != o2 && (C.value = "");
|
|
20
|
-
} }), N = e.ref(E.value.options ? E.value.options : []), D = t.getOptionDatasFromPage(y.pageContext, y.configure);
|
|
21
|
-
D.length > 0 && (N.value = D);
|
|
22
|
-
const M = e.ref(false), j = y.configure.props && y.configure.props.dataOrigin ? y.configure.props.dataOrigin : {}, F = j.optionValueSetType;
|
|
23
|
-
let R = [];
|
|
24
|
-
const z = E.value.optionconfigInfo ? E.value.optionconfigInfo : {};
|
|
25
|
-
if ("dynamicData" == F || "dataTable" == F || "service" == F) {
|
|
26
|
-
if ("remote" == j.filterType) {
|
|
27
|
-
let e2;
|
|
28
|
-
E.value.filterable = true, E.value.remote = true, E.value.remoteShowSuffix = true, E.value.remoteMethod = function(l2) {
|
|
29
|
-
e2 !== l2 && (e2 = l2, M.value = true, t.queryOptionDatasources(y.pageContext, z, l2).then((e3) => {
|
|
30
|
-
M.value = false;
|
|
31
|
-
}).then((e3) => {
|
|
32
|
-
M.value = false;
|
|
33
|
-
}));
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
if (j.autoSets) for (let e2 of j.autoSets) e2.source && R.push(e2);
|
|
37
|
-
}
|
|
38
|
-
y.configure && y.configure.props && y.configure.props.base && y.configure.props.base.optionProp && R.push({ source: "label", target: y.configure.props.base.optionProp }), E.value.changeMethod = function(e2) {
|
|
39
|
-
let l2, a2 = null;
|
|
40
|
-
N.value && null != e2 && null != e2 && (a2 = N.value.filter((t2) => Array.isArray(e2) ? e2.includes(t2.value) : e2 === t2.value));
|
|
41
|
-
R.length > 0 && t.autoSetAfterSelect(y.configure, y.pageContext, R, a2, [E.value.prop]);
|
|
42
|
-
a2 && a2.length > 0 && (l2 = a2[0]);
|
|
43
|
-
let n2 = {};
|
|
44
|
-
l2 && (n2.extendParams = l2);
|
|
45
|
-
n2.options = N.value, n2.oldValue = _, o.handleFormEvent(e2, y.pageContext, y.configure, "change", n2);
|
|
46
|
-
};
|
|
47
|
-
const I = E.value.monitorFields, O = [];
|
|
48
|
-
if (I) {
|
|
49
|
-
const t2 = [];
|
|
50
|
-
for (let e2 of I) if (e2.startsWith("${")) {
|
|
51
|
-
e2 = e2.substring(2, e2.length - 1);
|
|
52
|
-
const l2 = e2.split(".");
|
|
53
|
-
"page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (O.push(l2), t2.includes(l2[0]) || t2.push(l2[0]));
|
|
54
|
-
}
|
|
55
|
-
for (let l2 of t2) e.watch(x[l2], () => {
|
|
56
|
-
K();
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
let P = "", U = false;
|
|
60
|
-
function K() {
|
|
61
|
-
U && clearTimeout(U), U = setTimeout(function() {
|
|
62
|
-
const e2 = function() {
|
|
63
|
-
let e3 = [];
|
|
64
|
-
for (let l2 of O) e3.push(t.getVariableValue(x, l2));
|
|
65
|
-
return e3.join(",");
|
|
66
|
-
}();
|
|
67
|
-
e2 != P && (P = e2, z.watchAttrValue = e2, t.queryOptionDatasources(y.pageContext, z, void 0).then((e3) => {
|
|
68
|
-
M.value = false;
|
|
69
|
-
}));
|
|
70
|
-
}, 200);
|
|
71
|
-
}
|
|
72
|
-
e.onUnmounted(() => {
|
|
73
|
-
U && clearTimeout(U);
|
|
74
|
-
});
|
|
75
|
-
let W = false;
|
|
76
|
-
const $ = e.ref(null), L = e.ref(null), G = e.ref(null);
|
|
77
|
-
function H() {
|
|
78
|
-
const e2 = T();
|
|
79
|
-
if (null != e2 && "" !== e2 && e2.length > 0) {
|
|
80
|
-
let t2 = "";
|
|
81
|
-
return "string" == typeof e2 ? N.value.length > 0 ? N.value.forEach((l2) => {
|
|
82
|
-
l2.value === e2 && (t2 = l2.label);
|
|
83
|
-
}) : t2 = e2 : N.value.length > 0 ? (N.value.forEach((l2) => {
|
|
84
|
-
e2.forEach((e3) => {
|
|
85
|
-
l2.value === e3 && (t2 = t2 + l2.label + ",");
|
|
86
|
-
});
|
|
87
|
-
}), t2 = t2.slice(0, t2.length - 1)) : t2 = e2.join(","), t2;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return e.onMounted(() => {
|
|
91
|
-
const t2 = new i("#" + B, { text: function() {
|
|
92
|
-
return H();
|
|
93
|
-
} });
|
|
94
|
-
t2.on("success", () => {
|
|
95
|
-
s.ElMessage({ showClose: true, type: "success", message: h("superPageRuntimeMessage.copySuccess") });
|
|
96
|
-
}), t2.on("error", (e2) => {
|
|
97
|
-
console.error("复制失败", e2);
|
|
98
|
-
}), e.nextTick(() => {
|
|
99
|
-
const e2 = A.value;
|
|
100
|
-
o.handleAfterInitEvent(e2, y.pageContext, y.configure, { formItemRef: $.value, componentRef: L.value, titleRef: G.value, value: e2, entity: y.pageContext.entity.data, pageData: y.pageContext.entity.page });
|
|
101
|
-
});
|
|
102
|
-
}), m({ updateOptions: function(e2) {
|
|
103
|
-
if (N.value = e2 || [], !W) {
|
|
104
|
-
const e3 = T();
|
|
105
|
-
if (null != e3 && "" !== e3 && N.value.length > 0) {
|
|
106
|
-
let t2 = false;
|
|
107
|
-
for (let l2 of N.value) if (l2.value == e3) {
|
|
108
|
-
t2 = true;
|
|
109
|
-
break;
|
|
110
|
-
}
|
|
111
|
-
if (!t2) {
|
|
112
|
-
for (let t3 of N.value) if (t3.label == e3) {
|
|
113
|
-
A.value = t3.value;
|
|
114
|
-
break;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
W = true;
|
|
120
|
-
}, addRequiredClass: function() {
|
|
121
|
-
C.value = r.addRequiredClassUtil();
|
|
122
|
-
}, getSelectItemsTitle: H, getOptions: function() {
|
|
123
|
-
return N.value;
|
|
124
|
-
} }), (t2, l2) => {
|
|
125
|
-
const r2 = e.resolveComponent("el-icon"), i2 = e.resolveComponent("el-option"), s2 = e.resolveComponent("el-select"), c2 = e.resolveComponent("el-popover"), d3 = e.resolveComponent("el-form-item");
|
|
126
|
-
return e.openBlock(), e.createBlock(d3, { ref_key: "formItemRef", ref: $, required: !!E.value.required, class: e.normalizeClass(e.unref(V) + (C.value ? " " + C.value : "")), "label-width": E.value.labelWidth, style: e.normalizeStyle(e.unref(w)) }, { label: e.withCtx(() => [E.value.tittleShow ? (e.openBlock(), e.createElementBlock("div", { key: 0, ref_key: "titleRef", ref: G, style: e.normalizeStyle({ ...e.unref(S), ...e.unref(q) }) }, [E.value.prefixType ? (e.openBlock(), e.createBlock(a, { key: 0, pageContext: t2.pageContext, property: E.value }, null, 8, ["pageContext", "property"])) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 1 }, [e.createTextVNode(e.toDisplayString(e.unref(n.$t)(E.value.title)), 1)], 64))], 4)) : e.createCommentVNode("", true)]), default: e.withCtx(() => [e.createVNode(c2, { placement: "top", trigger: "hover" }, { reference: e.withCtx(() => [e.createElementVNode("div", f, [e.createVNode(s2, { ref_key: "componentRef", ref: L, style: { width: "100%" }, disabled: "disabled" === E.value.state, size: E.value.size, clearable: E.value.clearable, multiple: E.value.multiple, "collapse-tags": E.value.collapseTags, "collapse-tags-tooltip": E.value.collapseTagsTooltip, filterable: E.value.filterable, "allow-create": E.value.allowCreate, placeholder: E.value.placeholder, "remote-show-suffix": E.value.remoteShowSuffix, remote: E.value.remote, "remote-method": E.value.remoteMethod, loading: M.value, onKeydown: l2[0] || (l2[0] = e.withKeys(e.withModifiers(() => {
|
|
127
|
-
}, ["stop"]), ["space"])), onChange: E.value.changeMethod, onClear: E.value.changeMethod, modelValue: A.value, "onUpdate:modelValue": l2[1] || (l2[1] = (e2) => A.value = e2) }, { default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(N.value, (l3) => (e.openBlock(), e.createBlock(i2, { key: l3.value, label: l3.label, value: l3.value, onClick: (a2) => e.unref(o.handleFormEvent)(l3.value, t2.pageContext, t2.configure, "click", { values: A.value }) }, { default: e.withCtx(() => [l3._description_ ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, [e.createElementVNode("span", v, e.toDisplayString(l3.label), 1), e.createElementVNode("span", g, e.toDisplayString(l3._description_), 1)], 64)) : e.createCommentVNode("", 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", "onClear", "modelValue"])])]), default: e.withCtx(() => [e.createElementVNode("span", p, [e.createVNode(r2, { id: B }, { default: e.withCtx(() => [e.createVNode(e.unref(u.CopyDocument))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
128
|
-
};
|
|
129
|
-
} });
|
|
130
|
-
module.exports = d;
|
|
1
|
+
"use strict";const e=require("vue"),s=require("../../../../utils/page-helper-util.cjs"),$=require("../../../../utils/page-init-util.cjs"),k=require("../../../../utils/events/event-util.cjs"),L=require("../common/title-suffix-element.vue.cjs"),G=require("../../../../utils/i18n-util.cjs"),H=require("../../../../utils/common-util.cjs"),J=require("@element-plus/icons-vue"),Q=require("clipboard"),X=require("element-plus"),Y=require("vue-i18n"),Z={style:{"padding-left":"5px"}},ee={style:{width:"100%"}},te={style:{float:"left"}},le={style:{float:"right",color:"var(--el-text-color-secondary)","font-size":"13px"}},oe=e.defineComponent({__name:"select-runtime",props:{pageContext:{},configure:{}},setup(F,{expose:R}){const{t:z}=Y.useI18n(),r=F,v=e.ref(null),d=r.pageContext.entity?r.pageContext.entity:{};let w=$.getFormModelFields(r.pageContext,r.configure);const c=r.configure.runtime?r.configure.runtime:{},I=c.style,O=c.class,P=c.headerStyle,j=c.titleExceedStyle,o=e.ref(c.props?c.props:{});let V=[];const S="copyBtn_"+r.configure.uuid+"_"+new Date().getTime();function m(){let t=s.getVariableValue(d,w);return t!=null&&(t=String(t)),o.value.multiple&&(t=t?String(t).split(","):[]),t}const p=e.computed({get:()=>m(),set(t){const l=m();V=Array.isArray(l)?[...l]:l;let a=t;o.value.multiple&&(a=o.value.arrayValue?Array.isArray(t)?t:t?String(t).split(","):[]:Array.isArray(t)?t.length>0?t.join(","):"":t??""),a===void 0&&(a=null),s.setVariableValue(d,w,a),a!=null&&(v.value="")}}),n=e.ref(o.value.options?o.value.options:[]),q=s.getOptionDatasFromPage(r.pageContext,r.configure);q.length>0&&(n.value=q);const f=e.ref(!1),h=r.configure.props&&r.configure.props.dataOrigin?r.configure.props.dataOrigin:{},x=h.optionValueSetType;let y=[];const b=o.value.optionconfigInfo?o.value.optionconfigInfo:{};if(x=="dynamicData"||x=="dataTable"||x=="service"){if(h.filterType=="remote"){let t;o.value.filterable=!0,o.value.remote=!0,o.value.remoteShowSuffix=!0,o.value.remoteMethod=function(l){t!==l&&(t=l,f.value=!0,s.queryOptionDatasources(r.pageContext,b,l).then(a=>{f.value=!1}).then(a=>{f.value=!1}))}}if(h.autoSets)for(let t of h.autoSets)t.source&&y.push(t)}r.configure&&r.configure.props&&r.configure.props.base&&r.configure.props.base.optionProp&&y.push({source:"label",target:r.configure.props.base.optionProp}),o.value.changeMethod=function(t){let l,a=null;n.value&&t!=null&&t!=null&&(a=n.value.filter(C=>Array.isArray(t)?t.includes(C.value):t===C.value)),y.length>0&&s.autoSetAfterSelect(r.configure,r.pageContext,y,a,[o.value.prop]),a&&a.length>0&&(l=a[0]);let u={};l&&(u.extendParams=l),u.options=n.value,u.oldValue=V,k.handleFormEvent(t,r.pageContext,r.configure,"change",u)};const E=o.value.monitorFields,_=[];if(E){const t=[];for(let l of E)if(l.startsWith("${")){l=l.substring(2,l.length-1);const a=l.split(".");a[0]!=="page"&&a[0]!=="task"&&a[0]!=="data"||(_.push(a),t.includes(a[0])||t.push(a[0]))}for(let l of t)e.watch(d[l],()=>{U()})}let B="",g=!1;function U(){g&&clearTimeout(g),g=setTimeout(function(){const t=function(){let l=[];for(let a of _)l.push(s.getVariableValue(d,a));return l.join(",")}();t!=B&&(B=t,b.watchAttrValue=t,s.queryOptionDatasources(r.pageContext,b,void 0).then(l=>{f.value=!1}))},200)}e.onUnmounted(()=>{g&&clearTimeout(g)});let T=!1;const A=e.ref(null),N=e.ref(null),D=e.ref(null);function M(){const t=m();if(t!=null&&t!==""&&t.length>0){let l="";return typeof t=="string"?n.value.length>0?n.value.forEach(a=>{a.value===t&&(l=a.label)}):l=t:n.value.length>0?(n.value.forEach(a=>{t.forEach(u=>{a.value===u&&(l=l+a.label+",")})}),l=l.slice(0,l.length-1)):l=t.join(","),l}}return e.onMounted(()=>{const t=new Q("#"+S,{text:function(){return M()}});t.on("success",()=>{X.ElMessage({showClose:!0,type:"success",message:z("superPageRuntimeMessage.copySuccess")})}),t.on("error",l=>{console.error("复制失败",l)}),e.nextTick(()=>{const l=p.value;k.handleAfterInitEvent(l,r.pageContext,r.configure,{formItemRef:A.value,componentRef:N.value,titleRef:D.value,value:l,entity:r.pageContext.entity.data,pageData:r.pageContext.entity.page})})}),R({updateOptions:function(t){if(n.value=t||[],!T){const l=m();if(l!=null&&l!==""&&n.value.length>0){let a=!1;for(let u of n.value)if(u.value==l){a=!0;break}if(!a){for(let u of n.value)if(u.label==l){p.value=u.value;break}}}}T=!0},addRequiredClass:function(){v.value=H.addRequiredClassUtil()},getSelectItemsTitle:M,getOptions:function(){return n.value}}),(t,l)=>{const a=e.resolveComponent("el-icon"),u=e.resolveComponent("el-option"),C=e.resolveComponent("el-select"),K=e.resolveComponent("el-popover"),W=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(W,{ref_key:"formItemRef",ref:A,required:!!o.value.required,class:e.normalizeClass(e.unref(O)+(v.value?" "+v.value:"")),"label-width":o.value.labelWidth,style:e.normalizeStyle(e.unref(I))},{label:e.withCtx(()=>[o.value.tittleShow?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"titleRef",ref:D,style:e.normalizeStyle({...e.unref(P),...e.unref(j)})},[o.value.prefixType?(e.openBlock(),e.createBlock(L,{key:0,pageContext:t.pageContext,property:o.value},null,8,["pageContext","property"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(G.$t)(o.value.title)),1)],64))],4)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(K,{placement:"top",trigger:"hover"},{reference:e.withCtx(()=>[e.createElementVNode("div",ee,[e.createVNode(C,{ref_key:"componentRef",ref:N,style:{width:"100%"},disabled:o.value.state==="disabled",size:o.value.size,clearable:o.value.clearable,multiple:o.value.multiple,"collapse-tags":o.value.collapseTags,"collapse-tags-tooltip":o.value.collapseTagsTooltip,filterable:o.value.filterable,"allow-create":o.value.allowCreate,placeholder:o.value.placeholder,"remote-show-suffix":o.value.remoteShowSuffix,remote:o.value.remote,"remote-method":o.value.remoteMethod,loading:f.value,onKeydown:l[0]||(l[0]=e.withKeys(e.withModifiers(()=>{},["stop"]),["space"])),onChange:o.value.changeMethod,onClear:o.value.changeMethod,modelValue:p.value,"onUpdate:modelValue":l[1]||(l[1]=i=>p.value=i)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,i=>(e.openBlock(),e.createBlock(u,{key:i.value,label:i.label,value:i.value,onClick:ae=>e.unref(k.handleFormEvent)(i.value,t.pageContext,t.configure,"click",{values:p.value})},{default:e.withCtx(()=>[i._description_?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",te,e.toDisplayString(i.label),1),e.createElementVNode("span",le,e.toDisplayString(i._description_),1)],64)):e.createCommentVNode("",!0)]),_: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","onClear","modelValue"])])]),default:e.withCtx(()=>[e.createElementVNode("span",Z,[e.createVNode(a,{id:S},{default:e.withCtx(()=>[e.createVNode(e.unref(J.CopyDocument))]),_:1})])]),_:1})]),_:1},8,["required","class","label-width","style"])}}});module.exports=oe;
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("agilebuilder-ui"), n = require("../../../../utils/i18n-util.cjs"), r = require("../../../../utils/events/event-util.cjs"), o = e.defineComponent({ __name: "separatelabel-runtime", props: { pageContext: {}, configure: {} }, setup(o2, { expose: i }) {
|
|
3
|
-
const l = o2, a = e.ref(null), u = l.configure.runtime ? l.configure.runtime : {}, c = u.style, s = u.class, p = u.headerStyle;
|
|
4
|
-
return e.onMounted(() => {
|
|
5
|
-
e.nextTick(() => {
|
|
6
|
-
const e2 = n.$t(l.configure.props.base.title);
|
|
7
|
-
r.handleAfterInitEvent(e2, l.pageContext, l.configure, { componentRef: a.value, value: e2, entity: l.pageContext.entity.data, pageData: l.pageContext.entity.page });
|
|
8
|
-
});
|
|
9
|
-
}), i({}), (r2, o3) => (e.openBlock(), e.createElementBlock("div", { style: e.normalizeStyle(e.unref(c)), class: e.normalizeClass([e.unref(s), "amb-widget-separatelabel"]), ref_key: "thisRef", ref: a }, [e.createElementVNode("div", { class: "label", style: e.normalizeStyle(e.unref(p)) }, [r2.configure.props.iconType && r2.configure.props.iconValue ? (e.openBlock(), e.createBlock(e.unref(t.SuperIcon), { key: 0, iconType: r2.configure.props.iconType, iconValue: r2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : e.createCommentVNode("", true), e.createTextVNode(" " + e.toDisplayString(e.unref(n.$t)(r2.configure.props.base.title)), 1)], 4)], 6));
|
|
10
|
-
} });
|
|
11
|
-
module.exports = o;
|
|
1
|
+
"use strict";const e=require("vue"),s=require("agilebuilder-ui"),i=require("../../../../utils/i18n-util.cjs"),f=require("../../../../utils/events/event-util.cjs"),g=e.defineComponent({__name:"separatelabel-runtime",props:{pageContext:{},configure:{}},setup(a,{expose:l}){const n=a,r=e.ref(null),o=n.configure.runtime?n.configure.runtime:{},c=o.style,p=o.class,u=o.headerStyle;return e.onMounted(()=>{e.nextTick(()=>{const t=i.$t(n.configure.props.base.title);f.handleAfterInitEvent(t,n.pageContext,n.configure,{componentRef:r.value,value:t,entity:n.pageContext.entity.data,pageData:n.pageContext.entity.page})})}),l({}),(t,y)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(e.unref(c)),class:e.normalizeClass([e.unref(p),"amb-widget-separatelabel"]),ref_key:"thisRef",ref:r},[e.createElementVNode("div",{class:"label",style:e.normalizeStyle(e.unref(u))},[t.configure.props.iconType&&t.configure.props.iconValue?(e.openBlock(),e.createBlock(e.unref(s.SuperIcon),{key:0,iconType:t.configure.props.iconType,iconValue:t.configure.props.iconValue,style:{"margin-right":"2px"}},null,8,["iconType","iconValue"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(i.$t)(t.configure.props.base.title)),1)],4)],6))}});module.exports=g;
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("../../../../utils/page-init-util.cjs"), l = require("../../../../utils/page-helper-util.cjs"), a = require("../../../../utils/events/event-util.cjs"), u = require("../../../../utils/i18n-util.cjs"), i = require("../../../../utils/common-util.cjs"), n = e.defineComponent({ __name: "switch-runtime", props: { pageContext: {}, configure: {} }, setup(n2, { expose: r }) {
|
|
3
|
-
const o = n2, v = e.ref(null), c = o.pageContext.entity ? o.pageContext.entity : {};
|
|
4
|
-
let s = t.getFormModelFields(o.pageContext, o.configure);
|
|
5
|
-
const f = o.configure.runtime ? o.configure.runtime : {}, d = f.style, p = f.class, m = f.headerStyle, V = f.titleExceedStyle, g = e.ref(f.props ? f.props : {});
|
|
6
|
-
let y = l.getVariableValue(c, s);
|
|
7
|
-
function x(e2) {
|
|
8
|
-
return void 0 !== g.value[e2] && null !== g.value[e2] && "" !== g.value[e2];
|
|
9
|
-
}
|
|
10
|
-
null == y || "number" != typeof y || y + "" != "1" && y + "" != "0" || (x("activeValue") || (g.value.activeValue = 1), x("inactiveValue") || (g.value.inactiveValue = 0)), null != y && "boolean" == typeof y && (x("activeValue") || (g.value.activeValue = true), x("inactiveValue") || (g.value.inactiveValue = false)), x("activeValue") || (g.value.activeValue = true), x("inactiveValue") || (g.value.inactiveValue = false);
|
|
11
|
-
const h = f.switchStyle, C = e.computed({ get() {
|
|
12
|
-
let e2 = l.getVariableValue(c, s);
|
|
13
|
-
return null != e2 && (true === g.value.activeValue ? (e2 + "" == "1" && (e2 = true), e2 + "" == "0" && (e2 = false)) : 1 === g.value.activeValue ? (e2 + "" == "true" && (e2 = 1), e2 + "" == "false" && (e2 = 0)) : e2 += ""), e2;
|
|
14
|
-
}, set(e2) {
|
|
15
|
-
null != e2 && (true === g.value.activeValue ? (e2 + "" == "1" && (e2 = true), e2 + "" == "0" && (e2 = false)) : 1 === g.value.activeValue ? (e2 + "" == "true" && (e2 = 1), e2 + "" == "false" && (e2 = 0)) : e2 += ""), l.setVariableValue(c, s, e2), null != e2 && (v.value = "");
|
|
16
|
-
} }), b = e.ref(null), q = e.ref(null), w = e.ref(null);
|
|
17
|
-
return e.onMounted(() => {
|
|
18
|
-
e.nextTick(() => {
|
|
19
|
-
const e2 = C.value;
|
|
20
|
-
a.handleAfterInitEvent(e2, o.pageContext, o.configure, { formItemRef: b.value, componentRef: q.value, titleRef: w.value, value: e2, entity: o.pageContext.entity.data, pageData: o.pageContext.entity.page });
|
|
21
|
-
});
|
|
22
|
-
}), r({ addRequiredClass: function() {
|
|
23
|
-
v.value = i.addRequiredClassUtil();
|
|
24
|
-
} }), (t2, l2) => {
|
|
25
|
-
const i2 = e.resolveComponent("el-switch"), n3 = e.resolveComponent("el-form-item");
|
|
26
|
-
return e.openBlock(), e.createBlock(n3, { ref_key: "formItemRef", ref: b, required: g.value.required, class: e.normalizeClass(e.unref(p) + (v.value ? " " + v.value : "")), "label-width": g.value.labelWidth, style: e.normalizeStyle(e.unref(d)) }, { label: e.withCtx(() => [g.value.tittleShow ? (e.openBlock(), e.createElementBlock("div", { key: 0, ref_key: "titleRef", ref: w, style: e.normalizeStyle({ ...e.unref(m), ...e.unref(V) }) }, e.toDisplayString(e.unref(u.$t)(g.value.title)), 5)) : e.createCommentVNode("", true)]), default: e.withCtx(() => [e.createVNode(i2, { ref_key: "componentRef", ref: q, disabled: "disabled" === g.value.state, "active-value": g.value.activeValue, "active-text": g.value.activeText, "inactive-value": g.value.inactiveValue, "inactive-text": g.value.inactiveText, width: g.value.offOnWidth, size: g.value.size, style: e.normalizeStyle(e.unref(h)), modelValue: C.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e2) => C.value = e2), onChange: l2[1] || (l2[1] = (l3) => e.unref(a.handleFormEvent)(l3, t2.pageContext, t2.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
27
|
-
};
|
|
28
|
-
} });
|
|
29
|
-
module.exports = n;
|
|
1
|
+
"use strict";const t=require("vue"),S=require("../../../../utils/page-init-util.cjs"),d=require("../../../../utils/page-helper-util.cjs"),y=require("../../../../utils/events/event-util.cjs"),z=require("../../../../utils/i18n-util.cjs"),_=require("../../../../utils/common-util.cjs"),B=t.defineComponent({__name:"switch-runtime",props:{pageContext:{},configure:{}},setup(g,{expose:x}){const a=g,r=t.ref(null),v=a.pageContext.entity?a.pageContext.entity:{};let c=S.getFormModelFields(a.pageContext,a.configure);const u=a.configure.runtime?a.configure.runtime:{},C=u.style,h=u.class,b=u.headerStyle,q=u.titleExceedStyle,l=t.ref(u.props?u.props:{});let i=d.getVariableValue(v,c);function n(e){return l.value[e]!==void 0&&l.value[e]!==null&&l.value[e]!==""}i==null||typeof i!="number"||i+""!="1"&&i+""!="0"||(n("activeValue")||(l.value.activeValue=1),n("inactiveValue")||(l.value.inactiveValue=0)),i!=null&&typeof i=="boolean"&&(n("activeValue")||(l.value.activeValue=!0),n("inactiveValue")||(l.value.inactiveValue=!1)),n("activeValue")||(l.value.activeValue=!0),n("inactiveValue")||(l.value.inactiveValue=!1);const w=u.switchStyle,s=t.computed({get(){let e=d.getVariableValue(v,c);return e!=null&&(l.value.activeValue===!0?(e+""=="1"&&(e=!0),e+""=="0"&&(e=!1)):l.value.activeValue===1?(e+""=="true"&&(e=1),e+""=="false"&&(e=0)):e+=""),e},set(e){e!=null&&(l.value.activeValue===!0?(e+""=="1"&&(e=!0),e+""=="0"&&(e=!1)):l.value.activeValue===1?(e+""=="true"&&(e=1),e+""=="false"&&(e=0)):e+=""),d.setVariableValue(v,c,e),e!=null&&(r.value="")}}),p=t.ref(null),m=t.ref(null),V=t.ref(null);return t.onMounted(()=>{t.nextTick(()=>{const e=s.value;y.handleAfterInitEvent(e,a.pageContext,a.configure,{formItemRef:p.value,componentRef:m.value,titleRef:V.value,value:e,entity:a.pageContext.entity.data,pageData:a.pageContext.entity.page})})}),x({addRequiredClass:function(){r.value=_.addRequiredClassUtil()}}),(e,o)=>{const k=t.resolveComponent("el-switch"),R=t.resolveComponent("el-form-item");return t.openBlock(),t.createBlock(R,{ref_key:"formItemRef",ref:p,required:l.value.required,class:t.normalizeClass(t.unref(h)+(r.value?" "+r.value:"")),"label-width":l.value.labelWidth,style:t.normalizeStyle(t.unref(C))},{label:t.withCtx(()=>[l.value.tittleShow?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"titleRef",ref:V,style:t.normalizeStyle({...t.unref(b),...t.unref(q)})},t.toDisplayString(t.unref(z.$t)(l.value.title)),5)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.createVNode(k,{ref_key:"componentRef",ref:m,disabled:l.value.state==="disabled","active-value":l.value.activeValue,"active-text":l.value.activeText,"inactive-value":l.value.inactiveValue,"inactive-text":l.value.inactiveText,width:l.value.offOnWidth,size:l.value.size,style:t.normalizeStyle(t.unref(w)),modelValue:s.value,"onUpdate:modelValue":o[0]||(o[0]=f=>s.value=f),onChange:o[1]||(o[1]=f=>t.unref(y.handleFormEvent)(f,e.pageContext,e.configure,"change"))},null,8,["disabled","active-value","active-text","inactive-value","inactive-text","width","size","style","modelValue"])]),_:1},8,["required","class","label-width","style"])}}});module.exports=B;
|
|
@@ -1,38 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("../../../../utils/page-init-util.cjs"), l = require("../../../../utils/page-helper-util.cjs"), n = require("../../../../utils/events/event-util.cjs"), r = require("../../../../utils/i18n-util.cjs"), a = e.defineComponent({ __name: "tag-runtime", props: { pageContext: {}, configure: {} }, setup(a2) {
|
|
3
|
-
const o = a2, i = t.getFormModelFields(o.pageContext, o.configure), u = o.configure.runtime ? o.configure.runtime : {}, s = u.style, c = u.class, p = u.headerStyle, f = u.titleExceedStyle, g = e.ref(u.props ? u.props : {});
|
|
4
|
-
let m = g.value.formatting;
|
|
5
|
-
const v = o.pageContext.entity ? o.pageContext.entity : {}, y = e.computed(() => {
|
|
6
|
-
let e2 = l.getVariableValue(v, i);
|
|
7
|
-
null == e2 && (e2 = []), Array.isArray(e2) || (e2 = (e2 + "").split(","));
|
|
8
|
-
const t2 = [];
|
|
9
|
-
let n2 = 1;
|
|
10
|
-
for (const l2 of e2) {
|
|
11
|
-
if (null == l2 || "" === l2) continue;
|
|
12
|
-
const e3 = { value: l2, label: l2 };
|
|
13
|
-
m && (e3.label = m.replace(/\${value}/g, e3.value).replace(/\${no}/g, n2)), t2.push(e3), n2++;
|
|
14
|
-
}
|
|
15
|
-
return t2;
|
|
16
|
-
});
|
|
17
|
-
const d = e.ref(null), C = e.ref(null);
|
|
18
|
-
return e.onMounted(() => {
|
|
19
|
-
e.nextTick(() => {
|
|
20
|
-
const e2 = y.value;
|
|
21
|
-
n.handleAfterInitEvent(e2, o.pageContext, o.configure, { formItemRef: d.value, titleRef: C.value, value: e2, entity: o.pageContext.entity.data, pageData: o.pageContext.entity.page });
|
|
22
|
-
});
|
|
23
|
-
}), (t2, a3) => {
|
|
24
|
-
const u2 = e.resolveComponent("el-tag"), m2 = e.resolveComponent("el-form-item");
|
|
25
|
-
return e.openBlock(), e.createBlock(m2, { ref_key: "formItemRef", ref: d, required: g.value.required, class: e.normalizeClass(e.unref(c)), "label-width": g.value.labelWidth, style: e.normalizeStyle(e.unref(s)) }, { label: e.withCtx(() => [g.value.tittleShow ? (e.openBlock(), e.createElementBlock("div", { key: 0, ref_key: "titleRef", ref: C, style: e.normalizeStyle({ ...e.unref(p), ...e.unref(f) }) }, e.toDisplayString(e.unref(r.$t)(g.value.title)), 5)) : e.createCommentVNode("", true)]), default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(y.value, (r2) => (e.openBlock(), e.createBlock(u2, { key: r2, size: g.value.size, closable: g.value.closable, type: g.value.type, style: { "margin-right": "4px" }, onClose: (e2) => function(e3, t3) {
|
|
26
|
-
if (g.value.closable) {
|
|
27
|
-
let e4 = l.getVariableValue(v, i);
|
|
28
|
-
null == e4 && (e4 = []);
|
|
29
|
-
const n2 = Array.isArray(e4);
|
|
30
|
-
n2 || (e4 = (e4 + "").split(","));
|
|
31
|
-
const r3 = e4.indexOf(t3.value);
|
|
32
|
-
r3 > -1 && e4.splice(r3, 1), n2 || (e4 = e4.join(",")), l.setVariableValue(v, i, e4);
|
|
33
|
-
}
|
|
34
|
-
n.handleFormEvent(e3, o.pageContext, o.configure, "remove");
|
|
35
|
-
}(e2, r2), onClick: a3[0] || (a3[0] = (l2) => e.unref(n.handleFormEvent)(l2, t2.pageContext, t2.configure, "click")) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(r2.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
36
|
-
};
|
|
37
|
-
} });
|
|
38
|
-
module.exports = a;
|
|
1
|
+
"use strict";const e=require("vue"),z=require("../../../../utils/page-init-util.cjs"),g=require("../../../../utils/page-helper-util.cjs"),m=require("../../../../utils/events/event-util.cjs"),E=require("../../../../utils/i18n-util.cjs"),_=e.defineComponent({__name:"tag-runtime",props:{pageContext:{},configure:{}},setup(b){const t=b,c=z.getFormModelFields(t.pageContext,t.configure),a=t.configure.runtime?t.configure.runtime:{},h=a.style,q=a.class,B=a.headerStyle,V=a.titleExceedStyle,r=e.ref(a.props?a.props:{});let y=r.value.formatting;const p=t.pageContext.entity?t.pageContext.entity:{},v=e.computed(()=>{let l=g.getVariableValue(p,c);l==null&&(l=[]),Array.isArray(l)||(l=(l+"").split(","));const u=[];let s=1;for(const i of l){if(i==null||i==="")continue;const o={value:i,label:i};y&&(o.label=y.replace(/\${value}/g,o.value).replace(/\${no}/g,s)),u.push(o),s++}return u}),d=e.ref(null),C=e.ref(null);return e.onMounted(()=>{e.nextTick(()=>{const l=v.value;m.handleAfterInitEvent(l,t.pageContext,t.configure,{formItemRef:d.value,titleRef:C.value,value:l,entity:t.pageContext.entity.data,pageData:t.pageContext.entity.page})})}),(l,u)=>{const s=e.resolveComponent("el-tag"),i=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(i,{ref_key:"formItemRef",ref:d,required:r.value.required,class:e.normalizeClass(e.unref(q)),"label-width":r.value.labelWidth,style:e.normalizeStyle(e.unref(h))},{label:e.withCtx(()=>[r.value.tittleShow?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"titleRef",ref:C,style:e.normalizeStyle({...e.unref(B),...e.unref(V)})},e.toDisplayString(e.unref(E.$t)(r.value.title)),5)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,o=>(e.openBlock(),e.createBlock(s,{key:o,size:r.value.size,closable:r.value.closable,type:r.value.type,style:{"margin-right":"4px"},onClose:f=>function(S,w){if(r.value.closable){let n=g.getVariableValue(p,c);n==null&&(n=[]);const x=Array.isArray(n);x||(n=(n+"").split(","));const k=n.indexOf(w.value);k>-1&&n.splice(k,1),x||(n=n.join(",")),g.setVariableValue(p,c,n)}m.handleFormEvent(S,t.pageContext,t.configure,"remove")}(f,o),onClick:u[0]||(u[0]=f=>e.unref(m.handleFormEvent)(f,l.pageContext,l.configure,"click"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["size","closable","type","onClose"]))),128))]),_:1},8,["required","class","label-width","style"])}}});module.exports=_;
|
|
@@ -1,20 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("../../../../utils/page-init-util.cjs"), l = require("../../../../utils/page-helper-util.cjs"), n = require("../../../../utils/events/event-util.cjs"), a = require("../common/title-suffix-element.vue.cjs"), r = require("../../../../utils/i18n-util.cjs"), o = require("../../../../utils/common-util.cjs"), u = e.defineComponent({ __name: "textarea-runtime", props: { pageContext: {}, configure: {} }, setup(u2, { expose: i }) {
|
|
3
|
-
const s = u2, c = e.ref(null), p = s.pageContext.entity ? s.pageContext.entity : {};
|
|
4
|
-
let d = t.getFormModelFields(s.pageContext, s.configure);
|
|
5
|
-
const m = e.computed({ get: () => l.getVariableValue(p, d), set(e2) {
|
|
6
|
-
l.setVariableValue(p, d, e2), null != e2 && "" !== e2 && (c.value = "");
|
|
7
|
-
} }), f = s.configure.runtime ? s.configure.runtime : {}, g = e.ref(f.props ? f.props : {}), v = f.style, x = f.class, h = f.headerStyle, y = f.titleExceedStyle, C = e.ref(null), k = e.ref(null), w = e.ref(null);
|
|
8
|
-
return e.onMounted(() => {
|
|
9
|
-
e.nextTick(() => {
|
|
10
|
-
const e2 = m.value;
|
|
11
|
-
n.handleAfterInitEvent(e2, s.pageContext, s.configure, { formItemRef: C.value, componentRef: k.value, titleRef: w.value, value: e2, entity: s.pageContext.entity.data, pageData: s.pageContext.entity.page });
|
|
12
|
-
});
|
|
13
|
-
}), i({ addRequiredClass: function() {
|
|
14
|
-
c.value = o.addRequiredClassUtil();
|
|
15
|
-
} }), (t2, l2) => {
|
|
16
|
-
const o2 = e.resolveComponent("el-input"), u3 = e.resolveComponent("el-form-item");
|
|
17
|
-
return e.openBlock(), e.createElementBlock("div", null, [e.createVNode(u3, { ref_key: "formItemRef", ref: C, required: !!g.value.required, class: e.normalizeClass(e.unref(x) + (c.value ? " " + c.value : "")), "label-width": g.value.labelWidth, style: e.normalizeStyle(e.unref(v)) }, { label: e.withCtx(() => [g.value.tittleShow ? (e.openBlock(), e.createElementBlock("div", { key: 0, ref_key: "titleRef", ref: w, style: e.normalizeStyle({ ...e.unref(h), ...e.unref(y) }) }, [g.value.prefixType ? (e.openBlock(), e.createBlock(a, { key: 0, pageContext: t2.pageContext, property: g.value }, null, 8, ["pageContext", "property"])) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 1 }, [e.createTextVNode(e.toDisplayString(e.unref(r.$t)(g.value.title)), 1)], 64))], 4)) : e.createCommentVNode("", true)]), default: e.withCtx(() => [e.createVNode(o2, { ref_key: "componentRef", ref: k, disabled: "disabled" === g.value.state, readonly: "readonly" === g.value.state, size: g.value.size, clearable: g.value.clearable, placeholder: g.value.placeholder, modelValue: m.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e2) => m.value = e2), rows: g.value.rows ? g.value.rows : 2, maxlength: g.value.maxlength, minlength: g.value.minlength, "show-word-limit": g.value.showInputNum, type: "textarea", onInput: l2[1] || (l2[1] = (l3) => e.unref(n.handleFormEvent)(l3, t2.pageContext, t2.configure, "input")), onChange: l2[2] || (l2[2] = (l3) => e.unref(n.handleFormEvent)(l3, t2.pageContext, t2.configure, "change")), onBlur: l2[3] || (l2[3] = (l3) => e.unref(n.handleFormEvent)(l3, t2.pageContext, t2.configure, "blur")), onFocus: l2[4] || (l2[4] = (l3) => e.unref(n.handleFormEvent)(l3, t2.pageContext, t2.configure, "focus")), onClick: l2[5] || (l2[5] = (l3) => e.unref(n.handleFormEvent)(l3, t2.pageContext, t2.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])]);
|
|
18
|
-
};
|
|
19
|
-
} });
|
|
20
|
-
module.exports = u;
|
|
1
|
+
"use strict";const e=require("vue"),q=require("../../../../utils/page-init-util.cjs"),g=require("../../../../utils/page-helper-util.cjs"),u=require("../../../../utils/events/event-util.cjs"),V=require("../common/title-suffix-element.vue.cjs"),E=require("../../../../utils/i18n-util.cjs"),B=require("../../../../utils/common-util.cjs"),F=e.defineComponent({__name:"textarea-runtime",props:{pageContext:{},configure:{}},setup(v,{expose:x}){const r=v,i=e.ref(null),p=r.pageContext.entity?r.pageContext.entity:{};let s=q.getFormModelFields(r.pageContext,r.configure);const c=e.computed({get:()=>g.getVariableValue(p,s),set(t){g.setVariableValue(p,s,t),t!=null&&t!==""&&(i.value="")}}),o=r.configure.runtime?r.configure.runtime:{},l=e.ref(o.props?o.props:{}),h=o.style,y=o.class,C=o.headerStyle,k=o.titleExceedStyle,d=e.ref(null),f=e.ref(null),m=e.ref(null);return e.onMounted(()=>{e.nextTick(()=>{const t=c.value;u.handleAfterInitEvent(t,r.pageContext,r.configure,{formItemRef:d.value,componentRef:f.value,titleRef:m.value,value:t,entity:r.pageContext.entity.data,pageData:r.pageContext.entity.page})})}),x({addRequiredClass:function(){i.value=B.addRequiredClassUtil()}}),(t,n)=>{const w=e.resolveComponent("el-input"),b=e.resolveComponent("el-form-item");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(b,{ref_key:"formItemRef",ref:d,required:!!l.value.required,class:e.normalizeClass(e.unref(y)+(i.value?" "+i.value:"")),"label-width":l.value.labelWidth,style:e.normalizeStyle(e.unref(h))},{label:e.withCtx(()=>[l.value.tittleShow?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"titleRef",ref:m,style:e.normalizeStyle({...e.unref(C),...e.unref(k)})},[l.value.prefixType?(e.openBlock(),e.createBlock(V,{key:0,pageContext:t.pageContext,property:l.value},null,8,["pageContext","property"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(E.$t)(l.value.title)),1)],64))],4)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(w,{ref_key:"componentRef",ref:f,disabled:l.value.state==="disabled",readonly:l.value.state==="readonly",size:l.value.size,clearable:l.value.clearable,placeholder:l.value.placeholder,modelValue:c.value,"onUpdate:modelValue":n[0]||(n[0]=a=>c.value=a),rows:l.value.rows?l.value.rows:2,maxlength:l.value.maxlength,minlength:l.value.minlength,"show-word-limit":l.value.showInputNum,type:"textarea",onInput:n[1]||(n[1]=a=>e.unref(u.handleFormEvent)(a,t.pageContext,t.configure,"input")),onChange:n[2]||(n[2]=a=>e.unref(u.handleFormEvent)(a,t.pageContext,t.configure,"change")),onBlur:n[3]||(n[3]=a=>e.unref(u.handleFormEvent)(a,t.pageContext,t.configure,"blur")),onFocus:n[4]||(n[4]=a=>e.unref(u.handleFormEvent)(a,t.pageContext,t.configure,"focus")),onClick:n[5]||(n[5]=a=>e.unref(u.handleFormEvent)(a,t.pageContext,t.configure,"click"))},null,8,["disabled","readonly","size","clearable","placeholder","modelValue","rows","maxlength","minlength","show-word-limit"])]),_:1},8,["required","class","label-width","style"])])}}});module.exports=F;
|
|
@@ -1,73 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), n = require("./error-render.vue.cjs"), o = require("../../utils/assemblys-config.cjs"), t = require("../../utils/interfaces/page-design-types.cjs"), r = require("../../utils/global-refs.cjs"), i = require("../../utils/page-init-util.cjs"), s = require("../../utils/page-helper-util.cjs"), u = require("../../utils/common-util.cjs"), c = require("../../utils/events/event-util.cjs"), l = e.defineComponent({ __name: "home-chart-render", props: { pageContext: {}, configure: {} }, setup(l2) {
|
|
3
|
-
const a = l2;
|
|
4
|
-
null == a.configure.style && (a.configure.style = {});
|
|
5
|
-
const g = i.getPermissionCodes(a.configure, a.pageContext);
|
|
6
|
-
a.configure && a.configure.props && a.configure.props.base && (a.configure.props.base.functionCode = g);
|
|
7
|
-
let f = e.ref(true), p = e.ref(true);
|
|
8
|
-
const m = e.ref({});
|
|
9
|
-
m.value = e.markRaw(o.getRuntimeComponentByName(a.configure.name));
|
|
10
|
-
const d = e.ref(true);
|
|
11
|
-
null == m.value && (m.value = n, d.value = false);
|
|
12
|
-
const C = e.ref(null), v = e.ref({}), y = e.ref(""), h = u.getPropClassName(a.configure);
|
|
13
|
-
h && (y.value = h);
|
|
14
|
-
const x = a.configure.runtime && a.configure.runtime.common ? a.configure.runtime.common : {};
|
|
15
|
-
if (x.class && (y.value += " " + x.class), x.style) {
|
|
16
|
-
Object.assign(v.value, x.style);
|
|
17
|
-
const e2 = a.pageContext && a.pageContext.dimensions ? a.pageContext.dimensions : t.PageDimensions.PC, n2 = x.style[e2 + "_style"];
|
|
18
|
-
n2 && Object.assign(v.value, n2);
|
|
19
|
-
const o2 = x.style[e2 + "_class"];
|
|
20
|
-
o2 && (y.value += " " + o2);
|
|
21
|
-
}
|
|
22
|
-
function b(n2) {
|
|
23
|
-
if (C.value = n2, n2 && !n2.show && (n2.show = function() {
|
|
24
|
-
f.value = true;
|
|
25
|
-
}), n2 && !n2.hide && (n2.hide = function() {
|
|
26
|
-
f.value = false;
|
|
27
|
-
}), n2 && !n2.getConfigure && (n2.getConfigure = function() {
|
|
28
|
-
return a.configure;
|
|
29
|
-
}), a.configure.uuid && r.addComponentRef(a.pageContext, a.configure.uuid, C), a.configure.code) r.addComponentRefByCode(a.pageContext, a.configure.code, C);
|
|
30
|
-
else if (a.configure.props && a.configure.props.base) {
|
|
31
|
-
const e2 = a.configure.props.base;
|
|
32
|
-
if (e2.prop) {
|
|
33
|
-
let n3 = e2.prop;
|
|
34
|
-
n3.startsWith("${") && (n3 = n3.substring(2, n3.length - 1)), n3.includes(".") && (n3 = n3.substring(n3.indexOf(".") + 1)), r.addComponentRefByCode(a.pageContext, n3, C);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
const o2 = a.configure.props ? a.configure.props.base : null;
|
|
38
|
-
if (o2 && o2.prop) {
|
|
39
|
-
let e2 = o2.prop;
|
|
40
|
-
e2 = s.getFormPropName(e2), i.controlObjectRenderState(a.pageContext, e2);
|
|
41
|
-
}
|
|
42
|
-
!function() {
|
|
43
|
-
if (!C.value) return;
|
|
44
|
-
const n3 = s.getSizeConfig(a.pageContext, a.configure);
|
|
45
|
-
"table" !== a.configure.name && n3 && n3.isCalcHeight && e.nextTick(() => {
|
|
46
|
-
let e2 = C.value.$el;
|
|
47
|
-
e2 || (e2 = C.value);
|
|
48
|
-
const n4 = e2.parentNode;
|
|
49
|
-
if (!e2 || !n4) return;
|
|
50
|
-
const o3 = e2.getBoundingClientRect();
|
|
51
|
-
let t2 = window.innerHeight - o3.y - 80, r2 = t2 + "";
|
|
52
|
-
u.isNumber(t2) && (r2 = t2 + "px"), v.value.height = r2, v.value["overflow-y"] = "auto", v.value["overflow-x"] = "hidden", a.configure.sytle || (a.configure.sytle = {}), a.configure.sytle._heightStyle = r2;
|
|
53
|
-
});
|
|
54
|
-
}();
|
|
55
|
-
}
|
|
56
|
-
e.onMounted(() => {
|
|
57
|
-
j();
|
|
58
|
-
});
|
|
59
|
-
const j = () => {
|
|
60
|
-
if (!C.value) return;
|
|
61
|
-
let e2 = C.value.$el;
|
|
62
|
-
e2 || (e2 = C.value);
|
|
63
|
-
const n2 = e2.parentNode;
|
|
64
|
-
if (!e2 || !n2) return;
|
|
65
|
-
const o2 = a.configure.props ? a.configure.props : {}, t2 = a.configure.style ? a.configure.style : {}, r2 = o2.position;
|
|
66
|
-
"top" == r2 || "bottom" == r2 || t2.position;
|
|
67
|
-
};
|
|
68
|
-
return (n2, o2) => {
|
|
69
|
-
const t2 = e.resolveDirective("permission");
|
|
70
|
-
return e.unref(c.isShowComponent)(n2.configure) ? e.withDirectives((e.openBlock(), e.createBlock(e.resolveDynamicComponent(m.value), { key: 0, ref: b, style: e.normalizeStyle(v.value), class: e.normalizeClass(y.value), configure: n2.configure, pageContext: n2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[e.vShow, e.unref(p)], [t2, { codes: e.unref(g) ? e.unref(g) : "true", systemCode: n2.pageContext.systemCode }]]) : e.createCommentVNode("", true);
|
|
71
|
-
};
|
|
72
|
-
} });
|
|
73
|
-
module.exports = l;
|
|
1
|
+
"use strict";const o=require("vue"),N=require("./error-render.vue.cjs"),S=require("../../utils/assemblys-config.cjs"),k=require("../../utils/interfaces/page-design-types.cjs"),m=require("../../utils/global-refs.cjs"),v=require("../../utils/page-init-util.cjs"),y=require("../../utils/page-helper-util.cjs"),x=require("../../utils/common-util.cjs"),P=require("../../utils/events/event-util.cjs"),_=o.defineComponent({__name:"home-chart-render",props:{pageContext:{},configure:{}},setup(h){const e=h;e.configure.style==null&&(e.configure.style={});const g=v.getPermissionCodes(e.configure,e.pageContext);e.configure&&e.configure.props&&e.configure.props.base&&(e.configure.props.base.functionCode=g);let C=o.ref(!0),b=o.ref(!0);const a=o.ref({});a.value=o.markRaw(S.getRuntimeComponentByName(e.configure.name));const w=o.ref(!0);a.value==null&&(a.value=N,w.value=!1);const i=o.ref(null),s=o.ref({}),l=o.ref(""),d=x.getPropClassName(e.configure);d&&(l.value=d);const c=e.configure.runtime&&e.configure.runtime.common?e.configure.runtime.common:{};if(c.class&&(l.value+=" "+c.class),c.style){Object.assign(s.value,c.style);const n=e.pageContext&&e.pageContext.dimensions?e.pageContext.dimensions:k.PageDimensions.PC,u=c.style[n+"_style"];u&&Object.assign(s.value,u);const r=c.style[n+"_class"];r&&(l.value+=" "+r)}function q(n){if(i.value=n,n&&!n.show&&(n.show=function(){C.value=!0}),n&&!n.hide&&(n.hide=function(){C.value=!1}),n&&!n.getConfigure&&(n.getConfigure=function(){return e.configure}),e.configure.uuid&&m.addComponentRef(e.pageContext,e.configure.uuid,i),e.configure.code)m.addComponentRefByCode(e.pageContext,e.configure.code,i);else if(e.configure.props&&e.configure.props.base){const r=e.configure.props.base;if(r.prop){let t=r.prop;t.startsWith("${")&&(t=t.substring(2,t.length-1)),t.includes(".")&&(t=t.substring(t.indexOf(".")+1)),m.addComponentRefByCode(e.pageContext,t,i)}}const u=e.configure.props?e.configure.props.base:null;if(u&&u.prop){let r=u.prop;r=y.getFormPropName(r),v.controlObjectRenderState(e.pageContext,r)}(function(){if(!i.value)return;const r=y.getSizeConfig(e.pageContext,e.configure);e.configure.name!=="table"&&r&&r.isCalcHeight&&o.nextTick(()=>{let t=i.value.$el;t||(t=i.value);const R=t.parentNode;if(!t||!R)return;const B=t.getBoundingClientRect();let f=window.innerHeight-B.y-80,p=f+"";x.isNumber(f)&&(p=f+"px"),s.value.height=p,s.value["overflow-y"]="auto",s.value["overflow-x"]="hidden",e.configure.sytle||(e.configure.sytle={}),e.configure.sytle._heightStyle=p})})()}return o.onMounted(()=>{}),(n,u)=>{const r=o.resolveDirective("permission");return o.unref(P.isShowComponent)(n.configure)?o.withDirectives((o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.value),{key:0,ref:q,style:o.normalizeStyle(s.value),class:o.normalizeClass(l.value),configure:n.configure,pageContext:n.pageContext},null,8,["style","class","configure","pageContext"])),[[o.vShow,o.unref(b)],[r,{codes:o.unref(g)?o.unref(g):"true",systemCode:n.pageContext.systemCode}]]):o.createCommentVNode("",!0)}}});module.exports=_;
|
|
@@ -1,132 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), o = require("./error-render.vue.cjs"), n = require("../../utils/assemblys-config.cjs"), t = require("../../utils/interfaces/page-design-types.cjs"), i = require("../../utils/global-refs.cjs"), r = require("../../utils/page-init-util.cjs"), s = require("../../utils/page-helper-util.cjs"), u = require("../../utils/common-util.cjs"), l = require("../../utils/events/event-util.cjs"), a = require("../../utils/page-store.cjs"), c = require("../../utils/table-utils.cjs"), p = require("agilebuilder-ui"), g = e.defineComponent({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(g2) {
|
|
3
|
-
var _a, _b;
|
|
4
|
-
const f = g2;
|
|
5
|
-
null == f.configure.style && (f.configure.style = {});
|
|
6
|
-
const d = r.getPermissionCodes(f.configure, f.pageContext);
|
|
7
|
-
f.configure && f.configure.props && f.configure.props.base && (f.configure.props.base.functionCode = d);
|
|
8
|
-
const C = p.checkPermission(d || "true", f.pageContext.systemCode), m = c.isHasFieldAuth(f.pageContext, f.configure), v = C && m;
|
|
9
|
-
f.configure && f.configure.props && f.configure.props.base && (f.configure.props.base.isHasFieldAuthPermission = v), r.packageFormRules(f.pageContext, f.configure, v);
|
|
10
|
-
let h = e.ref(null), b = e.ref(true), x = e.ref("");
|
|
11
|
-
if (f.configure && f.configure.props) {
|
|
12
|
-
let o2 = [];
|
|
13
|
-
((_a = f.configure.props.base) == null ? void 0 : _a.showConditions) && (o2 = "string" == typeof f.configure.props.base.showConditions ? JSON.parse(f.configure.props.base.showConditions) : f.configure.props.base.showConditions), b = e.computed(() => {
|
|
14
|
-
var _a2;
|
|
15
|
-
let e2 = true;
|
|
16
|
-
if (v) if (h.value && null !== h.value) e2 = "show" === h.value;
|
|
17
|
-
else if (l.isShowMobileEvent(f.pageContext, f.configure)) if (o2 && o2.length > 0) e2 = s.caculateShowCondition(f.pageContext, o2);
|
|
18
|
-
else {
|
|
19
|
-
const o3 = (_a2 = f.configure.props.base) == null ? void 0 : _a2.state;
|
|
20
|
-
o3 && "hidden" === o3 && (e2 = false);
|
|
21
|
-
}
|
|
22
|
-
else e2 = false;
|
|
23
|
-
else e2 = false;
|
|
24
|
-
return e2;
|
|
25
|
-
});
|
|
26
|
-
if (f.configure._dynamicShowFlag = b, (_b = f.configure.props.base) == null ? void 0 : _b.editConditions) {
|
|
27
|
-
const o3 = f.configure.props.base.editConditions;
|
|
28
|
-
if (o3.length > 0) {
|
|
29
|
-
const n2 = f.configure.runtime ? f.configure.runtime : {}, t2 = n2.props ? n2.props : {};
|
|
30
|
-
if (t2.rawSate = t2.state, u.isWorkflowPage(f.pageContext) && f.pageContext.fieldPermissionMap) {
|
|
31
|
-
const e2 = f.configure.props.base;
|
|
32
|
-
if (e2 && e2.prop) {
|
|
33
|
-
let o4 = e2.prop;
|
|
34
|
-
o4 = s.getFormPropName(o4);
|
|
35
|
-
const n3 = f.pageContext.fieldPermissionMap.get(o4);
|
|
36
|
-
n3 && false === n3.canEdit && (x.value = "disabled");
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
t2.state = e.computed({ get() {
|
|
40
|
-
if ("disabled" === x.value) return x.value;
|
|
41
|
-
return s.caculateShowCondition(f.pageContext, o3) ? "" : "disabled";
|
|
42
|
-
}, set() {
|
|
43
|
-
} });
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
const y = e.ref({});
|
|
48
|
-
y.value = e.markRaw(n.getRuntimeComponentByName(f.configure.name));
|
|
49
|
-
const w = e.ref(true);
|
|
50
|
-
null == y.value && (y.value = o, w.value = false);
|
|
51
|
-
const j = e.ref(null), S = e.ref({}), q = e.ref(""), P = u.getPropClassName(f.configure);
|
|
52
|
-
P && (q.value = P);
|
|
53
|
-
const N = f.configure.runtime && f.configure.runtime.common ? f.configure.runtime.common : {};
|
|
54
|
-
if (N.class && (q.value += " " + N.class), N.style) {
|
|
55
|
-
Object.assign(S.value, N.style);
|
|
56
|
-
const e2 = f.pageContext && f.pageContext.dimensions ? f.pageContext.dimensions : t.PageDimensions.PC, o2 = N.style[e2 + "_style"];
|
|
57
|
-
o2 && Object.assign(S.value, o2);
|
|
58
|
-
const n2 = N.style[e2 + "_class"];
|
|
59
|
-
n2 && (q.value += " " + n2);
|
|
60
|
-
}
|
|
61
|
-
const R = a.usePageContextStore();
|
|
62
|
-
function k(o2) {
|
|
63
|
-
if (j.value = o2, o2 && !o2.show && (o2.show = function() {
|
|
64
|
-
h.value = "show";
|
|
65
|
-
}), o2 && !o2.hide && (o2.hide = function() {
|
|
66
|
-
h.value = "hide";
|
|
67
|
-
}), o2 && !o2.getConfigure && (o2.getConfigure = function() {
|
|
68
|
-
return f.configure;
|
|
69
|
-
}), f.configure.uuid && i.addComponentRef(f.pageContext, f.configure.uuid, j), f.configure.code) i.addComponentRefByCode(f.pageContext, f.configure.code, j);
|
|
70
|
-
else if ("table" === f.configure.name) i.addComponentRefByCode(f.pageContext, f.configure.uuid, j);
|
|
71
|
-
else if (f.configure.props && f.configure.props.base) {
|
|
72
|
-
const e2 = f.configure.props.base;
|
|
73
|
-
if (e2.prop) {
|
|
74
|
-
let o3 = e2.prop;
|
|
75
|
-
o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), i.addComponentRefByCode(f.pageContext, o3, j);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
const n2 = f.configure.props ? f.configure.props.base : null;
|
|
79
|
-
if (n2 && n2.prop) {
|
|
80
|
-
let e2 = n2.prop;
|
|
81
|
-
e2 = s.getFormPropName(e2), r.controlObjectRenderState(f.pageContext, e2), f.pageContext.propTitleMap = f.pageContext.propTitleMap || {}, f.pageContext.propTitleMap[e2] = n2.title ? n2.title : e2;
|
|
82
|
-
}
|
|
83
|
-
!function() {
|
|
84
|
-
if (!j.value) return;
|
|
85
|
-
const o3 = s.getSizeConfig(f.pageContext, f.configure);
|
|
86
|
-
"table" !== f.configure.name && o3 && o3.isCalcHeight && e.nextTick(() => {
|
|
87
|
-
var _a2;
|
|
88
|
-
if (!(((_a2 = j.value) == null ? void 0 : _a2.$el) || j.value)) return;
|
|
89
|
-
const e2 = (o4 = 0) => {
|
|
90
|
-
if (!j.value) return;
|
|
91
|
-
let n3 = j.value.$el || j.value;
|
|
92
|
-
if (!n3) return;
|
|
93
|
-
const t2 = n3.getBoundingClientRect();
|
|
94
|
-
null !== M && Math.abs(t2.y - M) < 1 ? B() : o4 < 10 ? (M = t2.y, A = setTimeout(() => {
|
|
95
|
-
e2(o4 + 1);
|
|
96
|
-
}, 50)) : B();
|
|
97
|
-
};
|
|
98
|
-
M = null, e2();
|
|
99
|
-
});
|
|
100
|
-
}();
|
|
101
|
-
}
|
|
102
|
-
function B() {
|
|
103
|
-
if (!j.value) return;
|
|
104
|
-
let e2 = j.value.$el;
|
|
105
|
-
e2 || (e2 = j.value);
|
|
106
|
-
const o2 = e2.parentNode;
|
|
107
|
-
if (!e2 || !o2) return;
|
|
108
|
-
const n2 = e2.getBoundingClientRect();
|
|
109
|
-
let t2 = window.innerHeight - n2.y - 30;
|
|
110
|
-
window.innerHeight, n2.y;
|
|
111
|
-
let i2 = t2 + "";
|
|
112
|
-
u.isNumber(t2) && (i2 = t2 + "px"), S.value.height = i2, S.value["overflow-y"] = "auto", S.value["overflow-x"] = "hidden", f.configure.sytle || (f.configure.sytle = {}), f.configure.sytle._heightStyle = i2;
|
|
113
|
-
}
|
|
114
|
-
e.onMounted(() => {
|
|
115
|
-
var _a2, _b2, _c;
|
|
116
|
-
F(), R.countComponentsLoadedNumber(), ((_c = (_b2 = (_a2 = f.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.autoAnchorConditions) == null ? void 0 : _c.length) > 0 && R.setAutoAnchorComponentConditions(f.configure.uuid, f.configure.props.base.autoAnchorConditions);
|
|
117
|
-
}), e.onUnmounted(() => {
|
|
118
|
-
A && clearTimeout(A);
|
|
119
|
-
});
|
|
120
|
-
let M = null, A = null;
|
|
121
|
-
const F = () => {
|
|
122
|
-
if (!j.value) return;
|
|
123
|
-
let e2 = j.value.$el;
|
|
124
|
-
e2 || (e2 = j.value);
|
|
125
|
-
const o2 = e2.parentNode;
|
|
126
|
-
if (!e2 || !o2) return;
|
|
127
|
-
const n2 = f.configure.props ? f.configure.props : {}, t2 = f.configure.style ? f.configure.style : {}, i2 = n2.position;
|
|
128
|
-
"top" == i2 || "bottom" == i2 || t2.position;
|
|
129
|
-
};
|
|
130
|
-
return (o2, n2) => e.unref(v) && e.unref(l.isShowComponent)(o2.configure) ? e.withDirectives((e.openBlock(), e.createBlock(e.resolveDynamicComponent(y.value), { key: 0, ref: k, style: e.normalizeStyle(S.value), class: e.normalizeClass(q.value), configure: o2.configure, pageContext: o2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[e.vShow, e.unref(b)]]) : e.createCommentVNode("", true);
|
|
131
|
-
} });
|
|
132
|
-
module.exports = g;
|
|
1
|
+
"use strict";const t=require("vue"),O=require("./error-render.vue.cjs"),$=require("../../utils/assemblys-config.cjs"),z=require("../../utils/interfaces/page-design-types.cjs"),v=require("../../utils/global-refs.cjs"),w=require("../../utils/page-init-util.cjs"),f=require("../../utils/page-helper-util.cjs"),S=require("../../utils/common-util.cjs"),A=require("../../utils/events/event-util.cjs"),D=require("../../utils/page-store.cjs"),E=require("../../utils/table-utils.cjs"),W=require("agilebuilder-ui"),J=t.defineComponent({__name:"object-render",props:{pageContext:{},configure:{}},setup(F){var k,B;const e=F;e.configure.style==null&&(e.configure.style={});const q=w.getPermissionCodes(e.configure,e.pageContext);e.configure&&e.configure.props&&e.configure.props.base&&(e.configure.props.base.functionCode=q);const T=W.checkPermission(q||"true",e.pageContext.systemCode),_=E.isHasFieldAuth(e.pageContext,e.configure),d=T&&_;e.configure&&e.configure.props&&e.configure.props.base&&(e.configure.props.base.isHasFieldAuthPermission=d),w.packageFormRules(e.pageContext,e.configure,d);let p=t.ref(null),b=t.ref(!0),x=t.ref("");if(e.configure&&e.configure.props){let o=[];if((k=e.configure.props.base)!=null&&k.showConditions&&(o=typeof e.configure.props.base.showConditions=="string"?JSON.parse(e.configure.props.base.showConditions):e.configure.props.base.showConditions),b=t.computed(()=>{var n;let i=!0;if(d)if(p.value&&p.value!==null)i=p.value==="show";else if(A.isShowMobileEvent(e.pageContext,e.configure))if(o&&o.length>0)i=f.caculateShowCondition(e.pageContext,o);else{const r=(n=e.configure.props.base)==null?void 0:n.state;r&&r==="hidden"&&(i=!1)}else i=!1;else i=!1;return i}),e.configure._dynamicShowFlag=b,(B=e.configure.props.base)==null?void 0:B.editConditions){const i=e.configure.props.base.editConditions;if(i.length>0){const n=e.configure.runtime?e.configure.runtime:{},r=n.props?n.props:{};if(r.rawSate=r.state,S.isWorkflowPage(e.pageContext)&&e.pageContext.fieldPermissionMap){const s=e.configure.props.base;if(s&&s.prop){let c=s.prop;c=f.getFormPropName(c);const g=e.pageContext.fieldPermissionMap.get(c);g&&g.canEdit===!1&&(x.value="disabled")}}r.state=t.computed({get(){return x.value==="disabled"?x.value:f.caculateShowCondition(e.pageContext,i)?"":"disabled"},set(){}})}}}const C=t.ref({});C.value=t.markRaw($.getRuntimeComponentByName(e.configure.name));const j=t.ref(!0);C.value==null&&(C.value=O,j.value=!1);const u=t.ref(null),a=t.ref({}),m=t.ref(""),P=S.getPropClassName(e.configure);P&&(m.value=P);const l=e.configure.runtime&&e.configure.runtime.common?e.configure.runtime.common:{};if(l.class&&(m.value+=" "+l.class),l.style){Object.assign(a.value,l.style);const o=e.pageContext&&e.pageContext.dimensions?e.pageContext.dimensions:z.PageDimensions.PC,i=l.style[o+"_style"];i&&Object.assign(a.value,i);const n=l.style[o+"_class"];n&&(m.value+=" "+n)}const R=D.usePageContextStore();function H(o){if(u.value=o,o&&!o.show&&(o.show=function(){p.value="show"}),o&&!o.hide&&(o.hide=function(){p.value="hide"}),o&&!o.getConfigure&&(o.getConfigure=function(){return e.configure}),e.configure.uuid&&v.addComponentRef(e.pageContext,e.configure.uuid,u),e.configure.code)v.addComponentRefByCode(e.pageContext,e.configure.code,u);else if(e.configure.name==="table")v.addComponentRefByCode(e.pageContext,e.configure.uuid,u);else if(e.configure.props&&e.configure.props.base){const n=e.configure.props.base;if(n.prop){let r=n.prop;r.startsWith("${")&&(r=r.substring(2,r.length-1)),r.includes(".")&&(r=r.substring(r.indexOf(".")+1)),v.addComponentRefByCode(e.pageContext,r,u)}}const i=e.configure.props?e.configure.props.base:null;if(i&&i.prop){let n=i.prop;n=f.getFormPropName(n),w.controlObjectRenderState(e.pageContext,n),e.pageContext.propTitleMap=e.pageContext.propTitleMap||{},e.pageContext.propTitleMap[n]=i.title?i.title:n}(function(){if(!u.value)return;const n=f.getSizeConfig(e.pageContext,e.configure);e.configure.name!=="table"&&n&&n.isCalcHeight&&t.nextTick(()=>{var s;if(!((s=u.value)!=null&&s.$el||u.value))return;const r=(c=0)=>{if(!u.value)return;let g=u.value.$el||u.value;if(!g)return;const M=g.getBoundingClientRect();h!==null&&Math.abs(M.y-h)<1?N():c<10?(h=M.y,y=setTimeout(()=>{r(c+1)},50)):N()};h=null,r()})})()}function N(){if(!u.value)return;let o=u.value.$el;o||(o=u.value);const i=o.parentNode;if(!o||!i)return;const n=o.getBoundingClientRect();let r=window.innerHeight-n.y-30;window.innerHeight,n.y;let s=r+"";S.isNumber(r)&&(s=r+"px"),a.value.height=s,a.value["overflow-y"]="auto",a.value["overflow-x"]="hidden",e.configure.sytle||(e.configure.sytle={}),e.configure.sytle._heightStyle=s}t.onMounted(()=>{var o,i,n;R.countComponentsLoadedNumber(),((n=(i=(o=e.configure.props)==null?void 0:o.base)==null?void 0:i.autoAnchorConditions)==null?void 0:n.length)>0&&R.setAutoAnchorComponentConditions(e.configure.uuid,e.configure.props.base.autoAnchorConditions)}),t.onUnmounted(()=>{y&&clearTimeout(y)});let h=null,y=null;return(o,i)=>t.unref(d)&&t.unref(A.isShowComponent)(o.configure)?t.withDirectives((t.openBlock(),t.createBlock(t.resolveDynamicComponent(C.value),{key:0,ref:H,style:t.normalizeStyle(a.value),class:t.normalizeClass(m.value),configure:o.configure,pageContext:o.pageContext},null,8,["style","class","configure","pageContext"])),[[t.vShow,t.unref(b)]]):t.createCommentVNode("",!0)}});module.exports=J;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), o = require("./workflow/component/workflow-opinion-box.vue.cjs"), t = e.defineComponent({ __name: "page-bottom", props: { pageContext: {} }, setup: (t2) => (t3, n) => (e.openBlock(), e.createBlock(o, { pageContext: t3.pageContext }, null, 8, ["pageContext"])) });
|
|
3
|
-
module.exports = t;
|
|
1
|
+
"use strict";const e=require("vue"),o=require("./workflow/component/workflow-opinion-box.vue.cjs"),n=e.defineComponent({__name:"page-bottom",props:{pageContext:{}},setup:p=>(t,r)=>(e.openBlock(),e.createBlock(o,{pageContext:t.pageContext},null,8,["pageContext"]))});module.exports=n;
|
package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.cjs
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("./workflow-opinion-box.vue2.cjs");
|
|
3
|
-
;/* empty css */
|
|
4
|
-
const o = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs")(e, [["__scopeId", "data-v-cb803c7a"]]);
|
|
5
|
-
module.exports = o;
|
|
1
|
+
"use strict";const e=require("./workflow-opinion-box.vue2.cjs");;/* empty css */const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs")(e,[["__scopeId","data-v-cb803c7a"]]);module.exports=r;
|