super-page-runtime 2.3.48-cdnTmp1 → 2.3.48-tmp1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/_virtual/_plugin-vue_export-helper.js +8 -0
- package/dist/es/components/runtime/utils/ai-chat-util.js +16 -0
- package/dist/es/components/runtime/utils/anchor-util.js +84 -0
- package/dist/es/components/runtime/utils/api/api-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/api/api-util.js +7 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +202 -0
- package/dist/es/components/runtime/utils/assemblys-config.js +20 -0
- package/dist/es/components/runtime/utils/barcode-util.js +12 -0
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +168 -0
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +38 -0
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +82 -0
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +56 -0
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +47 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +288 -0
- package/dist/es/components/runtime/utils/common-util.js +120 -0
- package/dist/es/components/runtime/utils/eventBus.js +8 -0
- package/dist/es/components/runtime/utils/events/data-backfill-util.js +39 -0
- package/dist/es/components/runtime/utils/events/event-util.js +447 -0
- package/dist/es/components/runtime/utils/events/print-label.js +100 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +1226 -0
- package/dist/es/components/runtime/utils/events/validator-util.js +485 -0
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +36 -0
- package/dist/es/components/runtime/utils/form/scan-util.js +93 -0
- package/dist/es/components/runtime/utils/global-refs.js +57 -0
- package/dist/es/components/runtime/utils/i18n-util.js +18 -0
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +4 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +391 -0
- package/dist/es/components/runtime/utils/page-init-util.js +297 -0
- package/dist/es/components/runtime/utils/{page-permission-util.mjs → page-permission-util.js} +21 -20
- package/dist/es/components/runtime/utils/page-store.js +53 -0
- package/dist/es/components/runtime/utils/store-util.js +13 -0
- package/dist/es/components/runtime/utils/table-utils.js +89 -0
- package/dist/es/components/runtime/utils/tree-utils.js +73 -0
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime2.vue.js +29 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime2.vue.js +21 -0
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime2.vue.js +41 -0
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime2.vue.js +6 -0
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime2.vue.js +21 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime2.vue.js +53 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +14 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +13 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +60 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search2.vue.js +64 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +94 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime2.vue.js +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime2.vue.js +46 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime2.vue.js +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime2.vue.js +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +430 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +6 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +10 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +46 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +17 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime2.vue.js +268 -0
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +20 -0
- package/dist/es/components/runtime/views/assemblys/common/event-call-component2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +36 -0
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +35 -0
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +32 -0
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +17 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +23 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +18 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +35 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +19 -0
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime2.vue.js +35 -0
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime2.vue.js +21 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime2.vue.js +27 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox2.vue.js +29 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix2.vue.js +81 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime2.vue.js +25 -0
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime2.vue.js +25 -0
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime2.vue.js +46 -0
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.js +96 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime2.vue.js +47 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime2.vue.js +69 -0
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +383 -0
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +339 -0
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime2.vue.js +90 -0
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.js +135 -0
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +5 -0
- package/dist/es/components/runtime/views/assemblys/error-render2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime2.vue.js +66 -0
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +38 -0
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime2.vue.js +69 -0
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.js +102 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime2.vue.js +55 -0
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime2.vue.js +24 -0
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime2.vue.js +115 -0
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime2.vue.js +91 -0
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime2.vue.js +28 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.js +81 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime2.vue.js +38 -0
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime2.vue.js +43 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime2.vue.js +16 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime2.vue.js +84 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +8 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.js +218 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime2.vue.js +156 -0
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime2.vue.js +16 -0
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime2.vue.js +36 -0
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime2.vue.js +44 -0
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime2.vue.js +28 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +83 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +166 -0
- package/dist/es/components/runtime/views/assemblys/object-render2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +9 -0
- package/dist/es/components/runtime/views/assemblys/page-bottom2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.js +56 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.js +29 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.js +45 -0
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime2.vue.js +20 -0
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime2.vue.js +23 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime2.vue.js +32 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime2.vue.js +27 -0
- package/dist/es/components/runtime/views/home-chart.vue.js +47 -0
- package/dist/es/components/runtime/views/home-chart2.vue.js +4 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +30 -0
- package/dist/es/components/runtime/views/super-page-dialog3.vue.js +5 -0
- package/dist/es/components/runtime/views/super-page.vue.js +7 -0
- package/dist/es/components/runtime/views/super-page2.vue.js +311 -0
- package/dist/es/index.js +32 -0
- package/dist/es/style.css +1052 -1
- package/dist/lib/components/runtime/utils/i18n-util.cjs +1 -1
- package/package.json +11 -13
- package/dist/es/_virtual/_plugin-vue_export-helper.mjs +0 -8
- package/dist/es/components/runtime/utils/ai-chat-util.mjs +0 -16
- package/dist/es/components/runtime/utils/anchor-util.mjs +0 -83
- package/dist/es/components/runtime/utils/api/api-util.mjs +0 -12
- package/dist/es/components/runtime/utils/api/page-expose-util.mjs +0 -196
- package/dist/es/components/runtime/utils/assemblys-config.mjs +0 -19
- package/dist/es/components/runtime/utils/barcode-util.mjs +0 -12
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.mjs +0 -169
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.mjs +0 -38
- package/dist/es/components/runtime/utils/charts/chart-pie-util.mjs +0 -83
- package/dist/es/components/runtime/utils/charts/chart-radar-util.mjs +0 -56
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.mjs +0 -47
- package/dist/es/components/runtime/utils/charts/chart-util.mjs +0 -285
- package/dist/es/components/runtime/utils/common-util.mjs +0 -116
- package/dist/es/components/runtime/utils/eventBus.mjs +0 -8
- package/dist/es/components/runtime/utils/events/data-backfill-util.mjs +0 -38
- package/dist/es/components/runtime/utils/events/event-util.mjs +0 -429
- package/dist/es/components/runtime/utils/events/print-label.mjs +0 -100
- package/dist/es/components/runtime/utils/events/standard-event.mjs +0 -1170
- package/dist/es/components/runtime/utils/events/validator-util.mjs +0 -462
- package/dist/es/components/runtime/utils/form/date-shortcuts.mjs +0 -36
- package/dist/es/components/runtime/utils/form/scan-util.mjs +0 -88
- package/dist/es/components/runtime/utils/global-refs.mjs +0 -57
- package/dist/es/components/runtime/utils/i18n-util.mjs +0 -14
- package/dist/es/components/runtime/utils/interfaces/page-design-types.mjs +0 -4
- package/dist/es/components/runtime/utils/page-helper-util.mjs +0 -381
- package/dist/es/components/runtime/utils/page-init-util.mjs +0 -281
- package/dist/es/components/runtime/utils/page-store.mjs +0 -53
- package/dist/es/components/runtime/utils/store-util.mjs +0 -13
- package/dist/es/components/runtime/utils/table-utils.mjs +0 -84
- package/dist/es/components/runtime/utils/tree-utils.mjs +0 -68
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime2.vue.mjs +0 -29
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime2.vue.mjs +0 -21
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime2.vue.mjs +0 -41
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime2.vue.mjs +0 -6
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime2.vue.mjs +0 -21
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime2.vue.mjs +0 -53
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.mjs +0 -14
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.mjs +0 -13
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.mjs +0 -59
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search2.vue.mjs +0 -59
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.mjs +0 -93
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime2.vue.mjs +0 -35
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime2.vue.mjs +0 -46
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime2.vue.mjs +0 -35
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime2.vue.mjs +0 -35
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.mjs +0 -425
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.mjs +0 -6
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.mjs +0 -10
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.mjs +0 -42
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.mjs +0 -17
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime2.vue.mjs +0 -261
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.mjs +0 -20
- package/dist/es/components/runtime/views/assemblys/common/event-call-component2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.mjs +0 -35
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.mjs +0 -34
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.mjs +0 -27
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.mjs +0 -17
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.mjs +0 -22
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.mjs +0 -18
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.mjs +0 -35
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.mjs +0 -19
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime2.vue.mjs +0 -35
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime2.vue.mjs +0 -21
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime2.vue.mjs +0 -27
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox2.vue.mjs +0 -29
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix2.vue.mjs +0 -81
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime2.vue.mjs +0 -25
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime2.vue.mjs +0 -25
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime2.vue.mjs +0 -43
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.mjs +0 -96
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime2.vue.mjs +0 -47
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime2.vue.mjs +0 -69
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.mjs +0 -362
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.mjs +0 -329
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime2.vue.mjs +0 -90
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.mjs +0 -133
- package/dist/es/components/runtime/views/assemblys/error-render.vue.mjs +0 -5
- package/dist/es/components/runtime/views/assemblys/error-render2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime2.vue.mjs +0 -65
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.mjs +0 -36
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime2.vue.mjs +0 -69
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.mjs +0 -102
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime2.vue.mjs +0 -55
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime2.vue.mjs +0 -24
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime2.vue.mjs +0 -111
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime2.vue.mjs +0 -88
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime2.vue.mjs +0 -28
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.mjs +0 -79
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime2.vue.mjs +0 -37
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime2.vue.mjs +0 -42
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime2.vue.mjs +0 -16
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime2.vue.mjs +0 -84
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.mjs +0 -8
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.mjs +0 -215
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime2.vue.mjs +0 -150
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime2.vue.mjs +0 -16
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime2.vue.mjs +0 -36
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime2.vue.mjs +0 -43
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime2.vue.mjs +0 -28
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.mjs +0 -83
- package/dist/es/components/runtime/views/assemblys/home-chart-render2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/object-render.vue.mjs +0 -163
- package/dist/es/components/runtime/views/assemblys/object-render2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.mjs +0 -9
- package/dist/es/components/runtime/views/assemblys/page-bottom2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.mjs +0 -56
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.mjs +0 -29
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.mjs +0 -45
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime2.vue.mjs +0 -20
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime2.vue.mjs +0 -23
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime2.vue.mjs +0 -30
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime2.vue.mjs +0 -27
- package/dist/es/components/runtime/views/home-chart.vue.mjs +0 -46
- package/dist/es/components/runtime/views/home-chart2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/super-page-dialog.vue.mjs +0 -30
- package/dist/es/components/runtime/views/super-page-dialog3.vue.mjs +0 -5
- package/dist/es/components/runtime/views/super-page.vue.mjs +0 -7
- package/dist/es/components/runtime/views/super-page2.vue.mjs +0 -307
- package/dist/es/index.mjs +0 -32
- /package/dist/es/assets/chart-themes/{bar-theme.mjs → bar-theme.js} +0 -0
- /package/dist/es/assets/chart-themes/{gauge-theme.mjs → gauge-theme.js} +0 -0
- /package/dist/es/assets/chart-themes/{pie-theme.mjs → pie-theme.js} +0 -0
- /package/dist/es/assets/chart-themes/{radar-theme.mjs → radar-theme.js} +0 -0
- /package/dist/es/assets/chart-themes/{scatter-theme.mjs → scatter-theme.js} +0 -0
- /package/dist/es/assets/{file.png.mjs → file.png.js} +0 -0
- /package/dist/es/assets/{folder.png.mjs → folder.png.js} +0 -0
- /package/dist/es/components/runtime/utils/{store.mjs → store.js} +0 -0
- /package/dist/es/i18n/langs/{cn.mjs → cn.js} +0 -0
- /package/dist/es/i18n/langs/{en.mjs → en.js} +0 -0
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import http from "agilebuilder-ui/src/utils/request";
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
|
+
import { executeExpression } from "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
4
|
+
import { getComponentRef } from "./global-refs.js";
|
|
5
|
+
import { watch } from "vue";
|
|
6
|
+
import { deepCopy, getBaseUrl } from "./common-util.js";
|
|
7
|
+
function getComponentOptionConfigs(t, e, o, n) {
|
|
8
|
+
return getComponentOptionConfigsBase(t, (e == null ? void 0 : e.systemCode) ? e.systemCode : o, (e == null ? void 0 : e.systemVersion) ? e == null ? void 0 : e.systemVersion : n);
|
|
9
|
+
}
|
|
10
|
+
function getComponentOptionConfigsBase(t, e, o) {
|
|
11
|
+
if (!t.props || !t.props.dataOrigin) return;
|
|
12
|
+
if (t.name && "table" === t.name) return;
|
|
13
|
+
const n = t.props.dataOrigin, a = { uuid: t.uuid };
|
|
14
|
+
if ("optionGroup" == n.optionValueSetType) a.type = "optionGroup", a.props = { code: n.optionGroup };
|
|
15
|
+
else if ("dynamicData" == n.optionValueSetType) a.type = "dynamicData", a.filterType = n.filterType, a.props = { code: n.dynamicDataSourceCode };
|
|
16
|
+
else if ("dataTable" == n.optionValueSetType) {
|
|
17
|
+
a.filterType = n.filterType;
|
|
18
|
+
const t2 = getTableQueryInfo(n, e, o);
|
|
19
|
+
Object.assign(a, t2);
|
|
20
|
+
} else if ("service" == n.optionValueSetType) {
|
|
21
|
+
a.filterType = n.filterType;
|
|
22
|
+
const t2 = getServiceQueryInfo(n, e, o);
|
|
23
|
+
Object.assign(a, t2);
|
|
24
|
+
}
|
|
25
|
+
return a.type ? a : void 0;
|
|
26
|
+
}
|
|
27
|
+
function getTableQueryInfo(t, e, o) {
|
|
28
|
+
const n = { type: "dataTable" };
|
|
29
|
+
if (n.valueLabelSwitch = !!t.valueLabelSwitch, n.importValidateSwitch = !!t.importValidateSwitch, n.props = { tableName: t.tableName, systemCode: t.tableSysCode ? t.tableSysCode : e, systemVersion: t.tableSysVersion ? t.tableSysVersion : o }, t.sortFields) {
|
|
30
|
+
const e2 = [];
|
|
31
|
+
for (const o2 of t.sortFields) o2.name && e2.push({ prop: o2.name, order: o2.type ? o2.type : "asc" });
|
|
32
|
+
n.props.sorts = e2;
|
|
33
|
+
}
|
|
34
|
+
const a = [];
|
|
35
|
+
if (t.filterList) {
|
|
36
|
+
const e2 = [];
|
|
37
|
+
for (const o2 of t.filterList) {
|
|
38
|
+
if (!o2.propName) continue;
|
|
39
|
+
o2.propDbName || (o2.propDbName = o2.propName);
|
|
40
|
+
const t2 = {};
|
|
41
|
+
Object.assign(t2, o2);
|
|
42
|
+
const n2 = getParamNames(o2.propValue);
|
|
43
|
+
for (const t3 of n2) t3 && (t3.startsWith("${data.") || t3.startsWith("${task.") || t3.startsWith("${page.")) && (a.includes(t3) || a.push(t3));
|
|
44
|
+
o2.propValue, e2.push(t2);
|
|
45
|
+
}
|
|
46
|
+
n.props.searchForm = e2;
|
|
47
|
+
}
|
|
48
|
+
n.props.monitorFields = a;
|
|
49
|
+
const r = [];
|
|
50
|
+
if (t.tableValueField && (n.props.valueField = t.tableValueField), t.tableLableField && -1 == r.indexOf(t.tableLableField) && (n.props.lableField = t.tableLableField), t.autoSets) for (const e2 of t.autoSets) e2.source && -1 == r.indexOf(e2.source) && r.push(e2.source);
|
|
51
|
+
return n.props.queryFields = r, n.props.pageSize = t.displayQuantity, n;
|
|
52
|
+
}
|
|
53
|
+
function getServiceQueryInfo(t, e, o) {
|
|
54
|
+
const n = { type: "service" };
|
|
55
|
+
if (n.valueLabelSwitch = !!t.valueLabelSwitch, n.importValidateSwitch = !!t.importValidateSwitch, n.props = { serivceCode: t.serviceCode, systemCode: t.tableSysCode ? t.tableSysCode : e, systemVersion: t.tableSysVersion ? t.tableSysVersion : o }, t.serviceInputs) {
|
|
56
|
+
const e2 = [];
|
|
57
|
+
for (const o2 of t.serviceInputs) {
|
|
58
|
+
if (!o2.name || o2.value) continue;
|
|
59
|
+
const t2 = {};
|
|
60
|
+
Object.assign(t2, o2), e2.push(t2);
|
|
61
|
+
}
|
|
62
|
+
n.props.inputs = e2;
|
|
63
|
+
}
|
|
64
|
+
return n.props.dataSetField = t.serviceDataSetField, n.props.valueField = t.serviceValueField, n.props.labelField = t.serviceLabelField, n;
|
|
65
|
+
}
|
|
66
|
+
function updateChartDatasources(t, e, o, n) {
|
|
67
|
+
return new Promise((a, r) => {
|
|
68
|
+
if (!e || 0 == e.length) return void r(new Error("无需查询的统计图配置!"));
|
|
69
|
+
const i = deepCopy(e);
|
|
70
|
+
i.forEach((e2) => {
|
|
71
|
+
const o2 = e2.services;
|
|
72
|
+
if (o2 && o2.length > 0) {
|
|
73
|
+
const e3 = o2[0].serviceInputs;
|
|
74
|
+
e3 && (o2[0].serviceInParams = {}, e3.forEach((e4) => {
|
|
75
|
+
const n2 = e4.name, a2 = e4.value;
|
|
76
|
+
o2[0].serviceInParams[n2] = getValueFromVariable(t.entity, a2);
|
|
77
|
+
}), delete o2[0].serviceInputs);
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
const s = t.entity ? t.entity : {}, u = {};
|
|
81
|
+
s.request && Object.assign(u, s.request), s.page && Object.assign(u, s.page), o && Object.assign(u, o);
|
|
82
|
+
const l = {};
|
|
83
|
+
s.task && Object.assign(l, s.task);
|
|
84
|
+
const c = { entityMap: s.data, additionalParamMap: u, taskMap: l, dataSourceList: i, systemCode: t.systemCode, pageCode: t.code }, p = t.backendUrl, f = getBaseUrl(p, t.isTest) + "/common/common-data/find-chart-datas";
|
|
85
|
+
http.post(f, c, { headers: { customSystem: t.systemCode } }).then((e2) => {
|
|
86
|
+
var _a, _b;
|
|
87
|
+
t.chartDataSourceMap || (t.chartDataSourceMap = {});
|
|
88
|
+
for (const o2 in e2) {
|
|
89
|
+
t.chartDataSourceMap[o2] = e2[o2];
|
|
90
|
+
const a2 = getComponentRef(t, o2);
|
|
91
|
+
if (a2) {
|
|
92
|
+
const r2 = a2.getConfigure();
|
|
93
|
+
if ((!n || r2 && (void 0 === r2.initializationQuery || r2.initializationQuery)) && a2.updateChartDatas && (a2.updateChartDatas(e2[o2]), (_b = (_a = r2.runtime) == null ? void 0 : _a.dataConfig) == null ? void 0 : _b.resultSet)) {
|
|
94
|
+
const n2 = e2[o2] && e2[o2].length > 0 ? e2[o2][0] : {}, a3 = n2 && n2.result ? n2.result : {};
|
|
95
|
+
let i2 = null;
|
|
96
|
+
r2.serviceDataField ? i2 = a3[r2.serviceDataField] : a3 && (i2 = Array.isArray(a3) ? a3 : [a3]), i2 || (i2 = []), setValueForVariableName(t.entity, r2.runtime.dataConfig.resultSet, i2);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
a(e2);
|
|
101
|
+
}).catch((t2) => {
|
|
102
|
+
r(t2);
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
function updateChartDatasourcesByComponent(t, e) {
|
|
107
|
+
const o = t.initChartServiceConfigs.find((t2) => t2.uuid === e);
|
|
108
|
+
o && updateChartDatasources(t, [o], null, false);
|
|
109
|
+
}
|
|
110
|
+
function updateOptionDatasources(t, e, o) {
|
|
111
|
+
return new Promise((n, a) => {
|
|
112
|
+
if (!e || 0 == e.length) return void a(new Error("无需查询的配置!"));
|
|
113
|
+
const r = t.entity ? t.entity : {}, i = {};
|
|
114
|
+
r.request && Object.assign(i, r.request), r.page && Object.assign(i, r.page), i.query = o;
|
|
115
|
+
const s = { entityMap: r.data, additionalParamMap: i, dataSourceList: e, systemCode: t.systemCode, query: o }, u = t.backendUrl, l = getBaseUrl(u, t.isTest) + "/common/common-data/find-datas";
|
|
116
|
+
http.post(l, s).then((e2) => {
|
|
117
|
+
t.optionSourceMap || (t.optionSourceMap = {});
|
|
118
|
+
for (const o2 in e2) {
|
|
119
|
+
t.optionSourceMap[o2] = e2[o2];
|
|
120
|
+
const n2 = getComponentRef(t, o2);
|
|
121
|
+
n2 && n2.updateOptions && n2.updateOptions(e2[o2]);
|
|
122
|
+
}
|
|
123
|
+
n(e2);
|
|
124
|
+
}).catch((t2) => {
|
|
125
|
+
a(t2);
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function getOptionDatasFromPage(t, e) {
|
|
130
|
+
return getComponentOptionDatasFromPage(t, e.uuid);
|
|
131
|
+
}
|
|
132
|
+
function getComponentOptionDatasFromPage(t, e) {
|
|
133
|
+
const o = getOptionDatasSourceMap(t)[e];
|
|
134
|
+
return o || [];
|
|
135
|
+
}
|
|
136
|
+
function getOptionDatasSourceMap(t) {
|
|
137
|
+
if (!t || !t.optionSourceMap) return {};
|
|
138
|
+
const e = t.optionSourceMap;
|
|
139
|
+
return e || {};
|
|
140
|
+
}
|
|
141
|
+
function putToOptionSourceMap(t, e, o) {
|
|
142
|
+
t.optionSourceMap || (t.optionSourceMap = {}), t.optionSourceMap[e] = o;
|
|
143
|
+
}
|
|
144
|
+
function getChartDatasFromPage(t, e) {
|
|
145
|
+
if (!t || !t.chartDataSourceMap || !e) return null;
|
|
146
|
+
return t.chartDataSourceMap[e.uuid];
|
|
147
|
+
}
|
|
148
|
+
function queryOptionDatasources(t, e, o) {
|
|
149
|
+
return updateOptionDatasources(t, e ? [e] : [], o);
|
|
150
|
+
}
|
|
151
|
+
function autoSetAfterSelect(t, e, o, n, a = []) {
|
|
152
|
+
if (!o || 0 == o.length) return;
|
|
153
|
+
const r = e.entity ? e.entity : {};
|
|
154
|
+
for (const t2 of o) {
|
|
155
|
+
if (!t2.source || !t2.target || a.includes(t2.target)) continue;
|
|
156
|
+
const e2 = getValuesByField(n, t2.source);
|
|
157
|
+
let o2 = t2.target;
|
|
158
|
+
if (!o2 || !o2.startsWith("${")) continue;
|
|
159
|
+
o2 = o2.substring(2, o2.length - 1);
|
|
160
|
+
const i = o2.split(".");
|
|
161
|
+
setVariableValue(r, i, null == e2 ? null : e2.join(","));
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
function getValuesByField(t, e) {
|
|
165
|
+
if (t) {
|
|
166
|
+
const o = [];
|
|
167
|
+
for (const n of t) {
|
|
168
|
+
let t2 = n[e];
|
|
169
|
+
null != t2 && null != t2 || (t2 = ""), o.push(t2);
|
|
170
|
+
}
|
|
171
|
+
return o;
|
|
172
|
+
}
|
|
173
|
+
return null;
|
|
174
|
+
}
|
|
175
|
+
function getVariableValue(t, e) {
|
|
176
|
+
if (!t || !e || 0 == e.length) return;
|
|
177
|
+
let o = t;
|
|
178
|
+
for (let t2 = 0; t2 < e.length; t2++) {
|
|
179
|
+
if (null == o) return o;
|
|
180
|
+
o = o[e[t2]];
|
|
181
|
+
}
|
|
182
|
+
return o;
|
|
183
|
+
}
|
|
184
|
+
function setValueForVariableName(t, e, o) {
|
|
185
|
+
if (!e || !e.startsWith("${")) return;
|
|
186
|
+
setVariableValue(t, (e = e.substring(2, e.length - 1)).split("."), o);
|
|
187
|
+
}
|
|
188
|
+
function setVariableValue(t, e, o) {
|
|
189
|
+
if (!t || !e || 0 == e.length) return;
|
|
190
|
+
let n = t;
|
|
191
|
+
for (let t2 = 0; t2 < e.length; t2++) {
|
|
192
|
+
const a = e[t2];
|
|
193
|
+
t2 + 1 === e.length ? n[a] = void 0 === o ? null : o : (void 0 === n[a] && (n[a] = {}), n = n[a]);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
function setVariableValueWithProp(t, e, o) {
|
|
197
|
+
if (!t || !e) return;
|
|
198
|
+
setVariableValue(t, e.split("."), o);
|
|
199
|
+
}
|
|
200
|
+
function formatVariableValue(t, e) {
|
|
201
|
+
if (!t || "" == e || null == e || null == e) return e;
|
|
202
|
+
const o = t.entity ? t.entity : {}, n = getParamNames(e);
|
|
203
|
+
for (const t2 in n) {
|
|
204
|
+
const a = n[t2], r = getValueFromVariable(o, a);
|
|
205
|
+
if (r && "[object Date]" === Object.prototype.toString.call(r)) return dayjs(r).format("YYYY-MM-DD HH:mm:ss");
|
|
206
|
+
if (r && "number" == typeof r) return r;
|
|
207
|
+
e = e.replace(a, null == r ? "" : r);
|
|
208
|
+
}
|
|
209
|
+
return e;
|
|
210
|
+
}
|
|
211
|
+
function getParamNames(t) {
|
|
212
|
+
if (!t) return [];
|
|
213
|
+
const e = t.match(/\$\{[^\{|\}]+\}/g);
|
|
214
|
+
return e || [];
|
|
215
|
+
}
|
|
216
|
+
function formatValueByType(t, e, o) {
|
|
217
|
+
if (!e || "" == t || null == t || null == t) return t;
|
|
218
|
+
if (o = o || {}, "number" == e || "percent" == e) {
|
|
219
|
+
if (isNaN(t)) return t;
|
|
220
|
+
let n = parseInt(o.decimalDigit);
|
|
221
|
+
if ((null == n || isNaN(n)) && (n = -1), t = parseFloat(t), "percent" == e && (t *= 100), n > -1 && (t = parseFloat(t.toFixed(n))), "percent" == e) t += "%";
|
|
222
|
+
else {
|
|
223
|
+
if (o.thousandsSeparator) {
|
|
224
|
+
const e2 = t.toString().split(".");
|
|
225
|
+
e2[0] = e2[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), t = e2.length > 1 ? e2.join(".") : e2[0];
|
|
226
|
+
}
|
|
227
|
+
o.symbol && (t = o.symbol + "" + t);
|
|
228
|
+
}
|
|
229
|
+
return t;
|
|
230
|
+
}
|
|
231
|
+
if ("date" == e || "time" == e) {
|
|
232
|
+
let n = "";
|
|
233
|
+
return "date" == e ? (n = o.dateFormat, n || (n = "YYYY-MM-DD")) : (n = o.timeFormat, n || (n = "HH:mm:ss")), dayjs(t).format(n);
|
|
234
|
+
}
|
|
235
|
+
return "custom" == e && o.formatEventUuid, t;
|
|
236
|
+
}
|
|
237
|
+
function getValueFromVariable(t, e, o) {
|
|
238
|
+
if (null == e || null == e) return e;
|
|
239
|
+
if (e.startsWith("${") && e.endsWith("}")) {
|
|
240
|
+
let n = e.substring(2, e.length - 1), a = null, r = null;
|
|
241
|
+
if (n.startsWith("data.")) n = n.substring(5), r = t.data, a = "data";
|
|
242
|
+
else if (n.startsWith("page.")) n = n.substring(5), a = "page", r = t.page;
|
|
243
|
+
else if (n.startsWith("task.")) n = n.substring(5), a = "task", r = t.task;
|
|
244
|
+
else if (n.startsWith("request.")) n = n.substring(8), a = "request", r = t.request;
|
|
245
|
+
else if (n.startsWith("context.")) n = n.substring(8), a = "context", r = t.context;
|
|
246
|
+
else if (n.startsWith("system.")) n = n.substring(7), a = "system", r = t.system;
|
|
247
|
+
else {
|
|
248
|
+
if (n.startsWith("fixed.")) return n.substring(6);
|
|
249
|
+
n.startsWith("row.") && (n = n.substring(4), r = o, a = "row");
|
|
250
|
+
}
|
|
251
|
+
return n ? getValueFromSource(r, n, a) : "";
|
|
252
|
+
}
|
|
253
|
+
return e;
|
|
254
|
+
}
|
|
255
|
+
function getValueFromSource(t, e, o) {
|
|
256
|
+
if ("context" != o && !t || !e) return;
|
|
257
|
+
const n = e.indexOf(".");
|
|
258
|
+
if (n > -1) {
|
|
259
|
+
const a = e.substring(0, n), r = e.substring(n + 1);
|
|
260
|
+
let i = t[a];
|
|
261
|
+
return i && Array.isArray(i) && i.length > 0 && (i = i[0]), getValueFromSource(i, r, o);
|
|
262
|
+
}
|
|
263
|
+
if ("context" == o) {
|
|
264
|
+
if ("currentDate" == e || "currentTime" == e) return /* @__PURE__ */ new Date();
|
|
265
|
+
if (e.startsWith("currentDate") && e.length > 11) {
|
|
266
|
+
const t2 = e.substring(11), o2 = t2.substring(0, 1);
|
|
267
|
+
let n2 = parseInt(t2.substring(1, t2.length - 1), 10);
|
|
268
|
+
const a = t2.substring(t2.length - 1), r = /* @__PURE__ */ new Date();
|
|
269
|
+
return n2 = "+" === o2 ? n2 : -n2, "d" === a || "w" === a ? (n2 = "w" === a ? 7 * n2 : n2, r.setDate(r.getDate() + n2)) : "m" === a ? r.setMonth(r.getMonth() + n2) : "y" === a && r.setFullYear(r.getFullYear() + n2), r;
|
|
270
|
+
}
|
|
271
|
+
if (!t) return;
|
|
272
|
+
}
|
|
273
|
+
return t[e];
|
|
274
|
+
}
|
|
275
|
+
function caculateShowCondition(pageContext, showConditions, row) {
|
|
276
|
+
if (!showConditions || 0 == showConditions.length || !pageContext || !pageContext.entity) return true;
|
|
277
|
+
const entityData = pageContext.entity;
|
|
278
|
+
let conditions = "";
|
|
279
|
+
const maxLen = showConditions.length;
|
|
280
|
+
for (let t = 0; t < maxLen; t++) {
|
|
281
|
+
const e = showConditions[t], o = e.propName;
|
|
282
|
+
let n = e.operator;
|
|
283
|
+
if (!o || "" === o) continue;
|
|
284
|
+
n || (n = "EQ");
|
|
285
|
+
const a = getValueFromVariable(entityData, o, row);
|
|
286
|
+
let r = getValueFromVariable(entityData, e.propValue, row);
|
|
287
|
+
const i = e.dataType;
|
|
288
|
+
"CONTAIN" != n && "NOT_CONTAIN" != n || a && !a.includes && (n = "CONTAIN" == n ? "EQ" : "NET");
|
|
289
|
+
let s = e.variableIsNull, u;
|
|
290
|
+
if (s || (s = "null"), "IS_NULL" !== n && "IS_NOT_NULL" !== n && (void 0 !== r && "" !== r || (r = null, "null" === s ? n = "IS_NULL" : "notequal" === s ? n = "IS_NOT_NULL" : u = true)), null == u) try {
|
|
291
|
+
u = executeExpression(a, n, r, i);
|
|
292
|
+
} catch (t2) {
|
|
293
|
+
u = false;
|
|
294
|
+
}
|
|
295
|
+
const l = e.leftBracket, c = e.rightBracket;
|
|
296
|
+
let p = e.joinSign;
|
|
297
|
+
if (l && null !== l && "" !== l && (conditions += l, conditions += " "), conditions += u + " ", c && null !== c && "" !== c && (conditions += c, conditions += " "), t < maxLen - 1 && p && null !== p && "" !== p) {
|
|
298
|
+
const t2 = p.toLowerCase();
|
|
299
|
+
"and" === t2 ? p = t2.replace("and", "&&") : "or" === t2 && (p = t2.replace("or", "||")), conditions += p + " ";
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
return !conditions || eval("(" + conditions + ")");
|
|
303
|
+
}
|
|
304
|
+
function monitorFieldChange(t, e, o) {
|
|
305
|
+
if (!o || !t || !e || 0 == e.length) return;
|
|
306
|
+
const n = [], a = [];
|
|
307
|
+
for (let t2 of e) if (t2.startsWith("${")) {
|
|
308
|
+
t2 = t2.substring(2, t2.length - 1);
|
|
309
|
+
const e2 = t2.split(".");
|
|
310
|
+
"page" !== e2[0] && "task" !== e2[0] && "data" !== e2[0] || (n.push(e2), a.includes(e2[0]) || a.push(e2[0]));
|
|
311
|
+
}
|
|
312
|
+
let r = getMonitorFieldValues(n, t.entity), i = false;
|
|
313
|
+
for (const e2 of a) watch(t.entity[e2], () => {
|
|
314
|
+
i && clearTimeout(i), i = setTimeout(function() {
|
|
315
|
+
const e3 = getMonitorFieldValues(n, t.entity);
|
|
316
|
+
r != e3 && (r = e3, o());
|
|
317
|
+
}, 200);
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
function getMonitorFieldValues(t, e) {
|
|
321
|
+
let o = "";
|
|
322
|
+
for (const n of t) o += "_" + getVariableValue(e, n);
|
|
323
|
+
return o;
|
|
324
|
+
}
|
|
325
|
+
function getFormPropName(t) {
|
|
326
|
+
return t && t.indexOf("${") >= 0 ? t.substring(t.indexOf(".") + 1, t.lastIndexOf("}")) : t;
|
|
327
|
+
}
|
|
328
|
+
function getSizeConfig(t, e) {
|
|
329
|
+
const o = getPageModeType(t);
|
|
330
|
+
let n;
|
|
331
|
+
return e.props && e.props.size && e.props.size[o] && (n = e.props.size[o]), !n && e.props && e.props.size && (n = e.props.size.pc), n;
|
|
332
|
+
}
|
|
333
|
+
function getPageModeType(t) {
|
|
334
|
+
let e = t.dimensions;
|
|
335
|
+
return e || (e = "pc"), e;
|
|
336
|
+
}
|
|
337
|
+
function isPromise(t) {
|
|
338
|
+
return t && "[object Promise]" === Object.prototype.toString.call(t);
|
|
339
|
+
}
|
|
340
|
+
function decomposeVariable(t) {
|
|
341
|
+
if (!t) return [];
|
|
342
|
+
const e = t.match(/\${(.*?)}/);
|
|
343
|
+
return e ? e[1].split(".") : [];
|
|
344
|
+
}
|
|
345
|
+
function getModelFieldFromPageContext(t, e) {
|
|
346
|
+
if (!e.modelFieldsMap) return;
|
|
347
|
+
let o = null;
|
|
348
|
+
for (let n = 0; n < t.length; n++) {
|
|
349
|
+
const a = t[n];
|
|
350
|
+
n + 1 === t.length && (o = e.modelFieldsMap[a]);
|
|
351
|
+
}
|
|
352
|
+
return o;
|
|
353
|
+
}
|
|
354
|
+
function isNumberDataType(t) {
|
|
355
|
+
return "INTEGER" === t || "LONG" === t || "DOUBLE" === t || "FLOAT_COM" === t;
|
|
356
|
+
}
|
|
357
|
+
function isDateDataType(t) {
|
|
358
|
+
return "DATE" === (t = t ? t.toUpperCase() : "") || "TIME" === t || "DATETIME" === t || "TIMESTAMP" === t;
|
|
359
|
+
}
|
|
360
|
+
export {
|
|
361
|
+
autoSetAfterSelect,
|
|
362
|
+
caculateShowCondition,
|
|
363
|
+
decomposeVariable,
|
|
364
|
+
formatValueByType,
|
|
365
|
+
formatVariableValue,
|
|
366
|
+
getChartDatasFromPage,
|
|
367
|
+
getComponentOptionConfigs,
|
|
368
|
+
getComponentOptionConfigsBase,
|
|
369
|
+
getComponentOptionDatasFromPage,
|
|
370
|
+
getFormPropName,
|
|
371
|
+
getModelFieldFromPageContext,
|
|
372
|
+
getOptionDatasFromPage,
|
|
373
|
+
getOptionDatasSourceMap,
|
|
374
|
+
getParamNames,
|
|
375
|
+
getSizeConfig,
|
|
376
|
+
getValueFromSource,
|
|
377
|
+
getValueFromVariable,
|
|
378
|
+
getVariableValue,
|
|
379
|
+
isDateDataType,
|
|
380
|
+
isNumberDataType,
|
|
381
|
+
isPromise,
|
|
382
|
+
monitorFieldChange,
|
|
383
|
+
putToOptionSourceMap,
|
|
384
|
+
queryOptionDatasources,
|
|
385
|
+
setValueForVariableName,
|
|
386
|
+
setVariableValue,
|
|
387
|
+
setVariableValueWithProp,
|
|
388
|
+
updateChartDatasources,
|
|
389
|
+
updateChartDatasourcesByComponent,
|
|
390
|
+
updateOptionDatasources
|
|
391
|
+
};
|