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,34 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const e = require("../page-helper-util.cjs"), t = require("../common-util.cjs"), r = require("./chart-util.cjs"), o = require("../events/event-util.cjs");
|
|
4
|
-
exports.updateChartOption = function(a, l, s, i) {
|
|
5
|
-
if (!i || !i.result) return;
|
|
6
|
-
o.handleChartEvent(a, l, "beforeUpdateChart", s, { resultData: i }), r.setDefaultGrid(s);
|
|
7
|
-
const n = i && i.result ? i.result : {}, u = l.serviceDataField;
|
|
8
|
-
let p = null;
|
|
9
|
-
u ? p = n[u] : n && (p = [n]), p || (p = []);
|
|
10
|
-
const c = l.props ? l.props.nameSource : void 0, d = l.props ? l.props.nameField : void 0, h = l.props ? l.props.nameFixed : void 0, f = l.props ? l.props.yaxisField : void 0, m = [d], v = [], g = [];
|
|
11
|
-
for (const t2 of p) {
|
|
12
|
-
if (!t2) continue;
|
|
13
|
-
let r2 = null;
|
|
14
|
-
r2 = "fixed" == c ? e.formatVariableValue(a, h) : e.getValueFromSource(t2, d, void 0), v.push(r2);
|
|
15
|
-
const o2 = e.getValueFromSource(t2, f, void 0);
|
|
16
|
-
g.push(o2);
|
|
17
|
-
}
|
|
18
|
-
const C = l.defaultSeries;
|
|
19
|
-
let F = C[0].pieColors;
|
|
20
|
-
F = F || [];
|
|
21
|
-
let S = C[0].pieColorMap;
|
|
22
|
-
S = S || {};
|
|
23
|
-
const x = [];
|
|
24
|
-
for (let e2 = 0; e2 < v.length && e2 < g.length; e2++) {
|
|
25
|
-
const t2 = { value: g[e2], name: v[e2] };
|
|
26
|
-
if (e2 < F.length || S[t2.name]) {
|
|
27
|
-
let r2 = S[t2.name];
|
|
28
|
-
r2 || (r2 = F[e2]), r2 && (t2.itemStyle = { color: r2 });
|
|
29
|
-
}
|
|
30
|
-
x.push(t2);
|
|
31
|
-
}
|
|
32
|
-
const b = t.deepCopy(C);
|
|
33
|
-
b[0].data = x, s.series = [b[0]], r.formatToolboxI18n(s), o.handleChartEvent(a, l, "afterUpdateChart", s, { resultData: i }), l.groupFields = m, l.cacheDatas = p, l.rawResult = i;
|
|
34
|
-
};
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../page-helper-util.cjs"),q=require("../common-util.cjs"),F=require("./chart-util.cjs"),S=require("../events/event-util.cjs");exports.updateChartOption=function(i,e,s,r){if(!r||!r.result)return;S.handleChartEvent(i,e,"beforeUpdateChart",s,{resultData:r}),F.setDefaultGrid(s);const l=r&&r.result?r.result:{},m=e.serviceDataField;let a=null;m?a=l[m]:l&&(a=[l]),a||(a=[]);const b=e.props?e.props.nameSource:void 0,v=e.props?e.props.nameField:void 0,x=e.props?e.props.nameFixed:void 0,y=e.props?e.props.yaxisField:void 0,D=[v],d=[],c=[];for(const t of a){if(!t)continue;let o=null;o=b=="fixed"?h.formatVariableValue(i,x):h.getValueFromSource(t,v,void 0),d.push(o);const n=h.getValueFromSource(t,y,void 0);c.push(n)}const f=e.defaultSeries;let u=f[0].pieColors;u=u||[];let p=f[0].pieColorMap;p=p||{};const g=[];for(let t=0;t<d.length&&t<c.length;t++){const o={value:c[t],name:d[t]};if(t<u.length||p[o.name]){let n=p[o.name];n||(n=u[t]),n&&(o.itemStyle={color:n})}g.push(o)}const C=q.deepCopy(f);C[0].data=g,s.series=[C[0]],F.formatToolboxI18n(s),S.handleChartEvent(i,e,"afterUpdateChart",s,{resultData:r}),e.groupFields=D,e.cacheDatas=a,e.rawResult=r};
|
|
@@ -1,78 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
const e = require("../page-helper-util.cjs"), o = require("../common-util.cjs"), t = require("./chart-util.cjs"), r = require("../events/event-util.cjs");
|
|
4
|
-
exports.updateChartOption = function(s, a, l, n) {
|
|
5
|
-
if (!n || !n.result) return;
|
|
6
|
-
r.handleChartEvent(s, a, "beforeUpdateChart", l, { resultData: n }), t.setDefaultGrid(l);
|
|
7
|
-
const u = n && n.result ? n.result : {};
|
|
8
|
-
let i = n && n.groupValue ? n.groupValue : void 0;
|
|
9
|
-
const p = a.serviceDataField;
|
|
10
|
-
let c = null;
|
|
11
|
-
p ? c = u[p] : u && (c = Array.isArray(u) ? u : [u]), c || (c = []);
|
|
12
|
-
let f = a.props ? a.props.groups : null;
|
|
13
|
-
if (f || (f = []), !i || 0 === i.length) {
|
|
14
|
-
i = [];
|
|
15
|
-
for (const e2 of f) i.push(e2.group);
|
|
16
|
-
}
|
|
17
|
-
const m = {}, g = [], h = [];
|
|
18
|
-
for (const e2 of f) m[e2.group] = e2.target, e2.target && !g.includes(e2.target) && (g.push(e2.target), i.includes(e2.group) && h.push(e2.target));
|
|
19
|
-
let d = a.props ? a.props.mulGroupShow : "";
|
|
20
|
-
d = "break" == d ? "\r\n" : " ";
|
|
21
|
-
for (const o2 of c) {
|
|
22
|
-
if (!o2) continue;
|
|
23
|
-
const r2 = [];
|
|
24
|
-
for (const t2 of i) {
|
|
25
|
-
const s3 = m[t2], a2 = e.getValueFromSource(o2, s3, void 0);
|
|
26
|
-
a2 && r2.push(a2);
|
|
27
|
-
}
|
|
28
|
-
const s2 = r2.join(d);
|
|
29
|
-
o2[t.CommonName.X_FIELD_NAME] = s2;
|
|
30
|
-
}
|
|
31
|
-
const y = a.items ? a.items : [];
|
|
32
|
-
if (0 == y.length) return;
|
|
33
|
-
const v = a.props ? a.props : {};
|
|
34
|
-
let F = v.yaxisField;
|
|
35
|
-
if (y[0].props.yaxisField = F, y[0].props.yaxisSource = v.yaxisSource, y[0].props.formula = v.formula, "formula" === v.yaxisSource) {
|
|
36
|
-
const o2 = [], r2 = t.caculateFormulaValue(y, c, o2);
|
|
37
|
-
let a2 = v.formula ? v.formula : "";
|
|
38
|
-
for (const e2 in r2) a2 = a2.replace(new RegExp(e2.replace("$", "\\$"), "g"), r2[e2]);
|
|
39
|
-
F = t.CommonName.Y_TEMP_NAME;
|
|
40
|
-
const l2 = {};
|
|
41
|
-
for (const r3 of c) {
|
|
42
|
-
if (!r3) continue;
|
|
43
|
-
for (const t2 of o2) {
|
|
44
|
-
const o3 = e.getValueFromSource(r3, t2, void 0);
|
|
45
|
-
let s2 = l2[t2];
|
|
46
|
-
void 0 === o3 || isNaN(o3) || (void 0 === s2 ? s2 = o3 : s2 += o3), l2[t2] = s2;
|
|
47
|
-
}
|
|
48
|
-
const n2 = t.executeChartFormula(a2, l2, r3, s);
|
|
49
|
-
r3[F] = n2;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
y[0].props.yaxisField = F, y[0].props.yaxisSource = "", t.sortDatas(s, a, c), c = t.limitDatas(s, a, c, g, [F]);
|
|
53
|
-
const x = [], C = [];
|
|
54
|
-
for (const o2 of c) {
|
|
55
|
-
if (!o2) continue;
|
|
56
|
-
x.push(o2[t.CommonName.X_FIELD_NAME]);
|
|
57
|
-
const r2 = e.getValueFromSource(o2, F, void 0);
|
|
58
|
-
C.push(r2);
|
|
59
|
-
}
|
|
60
|
-
const S = a.defaultSeries;
|
|
61
|
-
let D = S[0].pieColors;
|
|
62
|
-
D = D || [];
|
|
63
|
-
let E = S[0].pieColorMap;
|
|
64
|
-
E = E || {};
|
|
65
|
-
const N = [];
|
|
66
|
-
for (let e2 = 0; e2 < x.length && e2 < C.length; e2++) {
|
|
67
|
-
const o2 = { value: C[e2], name: x[e2] };
|
|
68
|
-
if (e2 < D.length || E[o2.name]) {
|
|
69
|
-
let t2 = E[o2.name];
|
|
70
|
-
t2 || (t2 = D[e2]), t2 && (o2.itemStyle = { color: t2 });
|
|
71
|
-
}
|
|
72
|
-
N.push(o2);
|
|
73
|
-
}
|
|
74
|
-
const V = o.deepCopy(S);
|
|
75
|
-
V[0].data = N, l.series = [V[0]], t.formatToolboxI18n(l);
|
|
76
|
-
const b = a.props ? a.props.selGroupVariable : null;
|
|
77
|
-
!(a.props ? a.props.enableDrill : null) && b && (a.highlightInfos = [], e.setValueForVariableName(s.entity, b, null)), r.handleChartEvent(s, a, "afterUpdateChart", l, { resultData: n }), a.groupFields = h, a.cacheDatas = c, a.rawResult = n;
|
|
78
|
-
};
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../page-helper-util.cjs"),j=require("../common-util.cjs"),a=require("./chart-util.cjs"),T=require("../events/event-util.cjs");exports.updateChartOption=function(n,o,m,s){if(!s||!s.result)return;T.handleChartEvent(n,o,"beforeUpdateChart",m,{resultData:s}),a.setDefaultGrid(m);const g=s&&s.result?s.result:{};let p=s&&s.groupValue?s.groupValue:void 0;const _=o.serviceDataField;let t=null;_?t=g[_]:g&&(t=Array.isArray(g)?g:[g]),t||(t=[]);let d=o.props?o.props.groups:null;if(d||(d=[]),!p||p.length===0){p=[];for(const e of d)p.push(e.group)}const A={},D=[],q=[];for(const e of d)A[e.group]=e.target,e.target&&!D.includes(e.target)&&(D.push(e.target),p.includes(e.group)&&q.push(e.target));let E=o.props?o.props.mulGroupShow:"";E=E=="break"?`\r
|
|
2
|
+
`:" ";for(const e of t){if(!e)continue;const r=[];for(const h of p){const u=A[h],C=x.getValueFromSource(e,u,void 0);C&&r.push(C)}const l=r.join(E);e[a.CommonName.X_FIELD_NAME]=l}const i=o.items?o.items:[];if(i.length==0)return;const c=o.props?o.props:{};let f=c.yaxisField;if(i[0].props.yaxisField=f,i[0].props.yaxisSource=c.yaxisSource,i[0].props.formula=c.formula,c.yaxisSource==="formula"){const e=[],r=a.caculateFormulaValue(i,t,e);let l=c.formula?c.formula:"";for(const u in r)l=l.replace(new RegExp(u.replace("$","\\$"),"g"),r[u]);f=a.CommonName.Y_TEMP_NAME;const h={};for(const u of t){if(!u)continue;for(const M of e){const S=x.getValueFromSource(u,M,void 0);let v=h[M];S===void 0||isNaN(S)||(v===void 0?v=S:v+=S),h[M]=v}const C=a.executeChartFormula(l,h,u,n);u[f]=C}}i[0].props.yaxisField=f,i[0].props.yaxisSource="",a.sortDatas(n,o,t),t=a.limitDatas(n,o,t,D,[f]);const N=[],V=[];for(const e of t){if(!e)continue;N.push(e[a.CommonName.X_FIELD_NAME]);const r=x.getValueFromSource(e,f,void 0);V.push(r)}const b=o.defaultSeries;let y=b[0].pieColors;y=y||[];let F=b[0].pieColorMap;F=F||{};const I=[];for(let e=0;e<N.length&&e<V.length;e++){const r={value:V[e],name:N[e]};if(e<y.length||F[r.name]){let l=F[r.name];l||(l=y[e]),l&&(r.itemStyle={color:l})}I.push(r)}const w=j.deepCopy(b);w[0].data=I,m.series=[w[0]],a.formatToolboxI18n(m);const G=o.props?o.props.selGroupVariable:null;!(o.props&&o.props.enableDrill)&&G&&(o.highlightInfos=[],x.setValueForVariableName(n.entity,G,null)),T.handleChartEvent(n,o,"afterUpdateChart",m,{resultData:s}),o.groupFields=q,o.cacheDatas=t,o.rawResult=s};
|
|
@@ -1,52 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const e = require("../page-helper-util.cjs"), t = require("../common-util.cjs"), a = require("./chart-util.cjs"), r = require("../events/event-util.cjs");
|
|
4
|
-
exports.updateChartOption = function(o, u, i, l) {
|
|
5
|
-
if (!l || !l.result) return;
|
|
6
|
-
r.handleChartEvent(o, u, "beforeUpdateChart", i, { resultData: l }), a.setDefaultGrid(i);
|
|
7
|
-
const s = l && l.result ? l.result : {}, d = u.serviceDataField;
|
|
8
|
-
let c = null;
|
|
9
|
-
d ? c = s[d] : s && (c = Array.isArray(s) ? s : [s]), c || (c = []);
|
|
10
|
-
const n = u.items ? u.items : [], f = [], p = {}, m = [], v = a.caculateFormulaValue(n, c, m);
|
|
11
|
-
for (const e2 of n) {
|
|
12
|
-
const t2 = e2.props ? e2.props : {}, a2 = t2.yaxisSource, r2 = t2.yaxisField;
|
|
13
|
-
let o2 = null;
|
|
14
|
-
if (!r2 || a2 && "variable" != a2) if ("formula" == a2) {
|
|
15
|
-
let a3 = t2.formula ? t2.formula : "";
|
|
16
|
-
for (const e3 in v) a3 = a3.replace(new RegExp(e3.replace("$", "\\$"), "g"), v[e3]);
|
|
17
|
-
o2 = { uuid: e2.uuid, type: "formula", formula: a3, data: [] };
|
|
18
|
-
} else o2 = { uuid: e2.uuid, type: "fixed", field: t2.yaxisFix, data: [] };
|
|
19
|
-
else o2 = { uuid: e2.uuid, type: "variable", field: r2, data: [] };
|
|
20
|
-
o2 && (f.push(o2), p[o2.uuid] = o2);
|
|
21
|
-
}
|
|
22
|
-
const h = u.props ? u.props : {}, x = h.nameField, y = h.maxSource, F = h.maxField, g = h.maxFixed, S = [], b = {};
|
|
23
|
-
for (const t2 of c) {
|
|
24
|
-
if (!t2) continue;
|
|
25
|
-
const r2 = e.getValueFromSource(t2, x, void 0);
|
|
26
|
-
let u2 = null;
|
|
27
|
-
u2 = y && "variable" != y ? g : e.getValueFromSource(t2, F, void 0), S.push({ text: r2, max: u2 });
|
|
28
|
-
for (const a2 of m) {
|
|
29
|
-
const r3 = e.getValueFromSource(t2, a2, void 0);
|
|
30
|
-
let o2 = b[a2];
|
|
31
|
-
void 0 === r3 || isNaN(r3) || (void 0 === o2 ? o2 = r3 : o2 += r3), b[a2] = o2;
|
|
32
|
-
}
|
|
33
|
-
for (const r3 of f) {
|
|
34
|
-
const u3 = r3.data;
|
|
35
|
-
if ("fixed" == r3.type) u3.push(r3.field);
|
|
36
|
-
else if ("variable" == r3.type) {
|
|
37
|
-
const a2 = e.getValueFromSource(t2, r3.field, void 0);
|
|
38
|
-
u3.push(a2);
|
|
39
|
-
} else if ("formula" == r3.type) {
|
|
40
|
-
const e2 = a.executeChartFormula(r3.formula, b, t2, o);
|
|
41
|
-
u3.push(e2);
|
|
42
|
-
} else u3.push(void 0);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
i.radar[0].indicator = S, a.formatToolboxI18n(i);
|
|
46
|
-
const C = u.defaultSeries, j = t.deepCopy(C), D = j[0].data;
|
|
47
|
-
for (const e2 of D) {
|
|
48
|
-
const t2 = p[e2.uuid];
|
|
49
|
-
e2.value = t2.data;
|
|
50
|
-
}
|
|
51
|
-
i.series = j, r.handleChartEvent(o, u, "afterUpdateChart", i, { resultData: l }), u.cacheDatas = c, u.rawResult = l;
|
|
52
|
-
};
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../page-helper-util.cjs"),O=require("../common-util.cjs"),p=require("./chart-util.cjs"),q=require("../events/event-util.cjs");exports.updateChartOption=function(m,o,l,i){if(!i||!i.result)return;q.handleChartEvent(m,o,"beforeUpdateChart",l,{resultData:i}),p.setDefaultGrid(l);const f=i&&i.result?i.result:{},h=o.serviceDataField;let s=null;h?s=f[h]:f&&(s=Array.isArray(f)?f:[f]),s||(s=[]);const x=o.items?o.items:[],y=[],F={},S=[],b=p.caculateFormulaValue(x,s,S);for(const t of x){const u=t.props?t.props:{},d=u.yaxisSource,a=u.yaxisField;let e=null;if(!a||d&&d!="variable")if(d=="formula"){let r=u.formula?u.formula:"";for(const V in b)r=r.replace(new RegExp(V.replace("$","\\$"),"g"),b[V]);e={uuid:t.uuid,type:"formula",formula:r,data:[]}}else e={uuid:t.uuid,type:"fixed",field:u.yaxisFix,data:[]};else e={uuid:t.uuid,type:"variable",field:a,data:[]};e&&(y.push(e),F[e.uuid]=e)}const n=o.props?o.props:{},E=n.nameField,g=n.maxSource,j=n.maxField,w=n.maxFixed,C=[],v={};for(const t of s){if(!t)continue;const u=c.getValueFromSource(t,E,void 0);let d=null;d=g&&g!="variable"?w:c.getValueFromSource(t,j,void 0),C.push({text:u,max:d});for(const a of S){const e=c.getValueFromSource(t,a,void 0);let r=v[a];e===void 0||isNaN(e)||(r===void 0?r=e:r+=e),v[a]=r}for(const a of y){const e=a.data;if(a.type=="fixed")e.push(a.field);else if(a.type=="variable"){const r=c.getValueFromSource(t,a.field,void 0);e.push(r)}else if(a.type=="formula"){const r=p.executeChartFormula(a.formula,v,t,m);e.push(r)}else e.push(void 0)}}l.radar[0].indicator=C,p.formatToolboxI18n(l);const A=o.defaultSeries,D=O.deepCopy(A),N=D[0].data;for(const t of N){const u=F[t.uuid];t.value=u.data}l.series=D,q.handleChartEvent(m,o,"afterUpdateChart",l,{resultData:i}),o.cacheDatas=s,o.rawResult=i};
|
|
@@ -1,43 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const e = require("../page-helper-util.cjs"), o = require("../common-util.cjs"), t = require("./chart-util.cjs"), r = require("../events/event-util.cjs");
|
|
4
|
-
exports.updateChartOption = function(s, a, i, u) {
|
|
5
|
-
if (!u || !u.result) return;
|
|
6
|
-
r.handleChartEvent(s, a, "beforeUpdateChart", i, { resultData: u }), t.setDefaultGrid(i);
|
|
7
|
-
const l = u && u.result ? u.result : {}, c = a.serviceDataField;
|
|
8
|
-
let d = null;
|
|
9
|
-
c ? d = l[c] : l && (d = Array.isArray(l) ? l : [l]), d || (d = []);
|
|
10
|
-
const n = a.items ? a.items : [], f = [], p = {};
|
|
11
|
-
for (const e2 of n) {
|
|
12
|
-
const o2 = e2.props ? e2.props : {}, t2 = e2.props ? e2.style : {}, r2 = o2.xaxisField, s2 = o2.sizeField, a2 = { uuid: e2.uuid, xaxisField: r2, yaxisField: o2.yaxisField, yaxisSource: o2.yaxisSource, formula: o2.formula, sizeField: s2, symbolSize: t2.symbolSize, data: [] };
|
|
13
|
-
f.push(a2), p[a2.uuid] = a2;
|
|
14
|
-
}
|
|
15
|
-
const m = [], x = t.caculateFormulaValue(n, d, m);
|
|
16
|
-
for (const e2 of f) if ("formula" === e2.yaxisSource) {
|
|
17
|
-
let o2 = e2.formula ? e2.formula : "";
|
|
18
|
-
for (const e3 in x) o2 = o2.replace(new RegExp(e3.replace("$", "\\$"), "g"), x[e3]);
|
|
19
|
-
e2.formula = o2;
|
|
20
|
-
}
|
|
21
|
-
const h = {};
|
|
22
|
-
for (const o2 of d) if (o2) {
|
|
23
|
-
for (const t2 of m) {
|
|
24
|
-
const r2 = e.getValueFromSource(o2, t2, void 0);
|
|
25
|
-
let s2 = h[t2];
|
|
26
|
-
void 0 === r2 || isNaN(r2) || (void 0 === s2 ? s2 = r2 : s2 += r2), h[t2] = s2;
|
|
27
|
-
}
|
|
28
|
-
for (const r2 of f) {
|
|
29
|
-
const a2 = r2.data, i2 = [];
|
|
30
|
-
if (i2.push(e.getValueFromSource(o2, r2.xaxisField, void 0)), "formula" === r2.yaxisSource) {
|
|
31
|
-
const e2 = t.executeChartFormula(r2.formula, h, o2, s);
|
|
32
|
-
i2.push(e2);
|
|
33
|
-
} else i2.push(e.getValueFromSource(o2, r2.yaxisField, void 0));
|
|
34
|
-
r2.sizeField ? i2.push(e.getValueFromSource(o2, r2.xaxisField, void 0)) : i2.push(r2.symbolSize), a2.push(i2);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
const F = a.defaultSeries, y = o.deepCopy(F);
|
|
38
|
-
for (const e2 of y) {
|
|
39
|
-
const o2 = p[e2.uuid];
|
|
40
|
-
e2.data = o2.data;
|
|
41
|
-
}
|
|
42
|
-
i.series = y, t.formatToolboxI18n(i), r.handleChartEvent(s, a, "afterUpdateChart", i, { resultData: u }), a.cacheDatas = d, a.rawResult = u;
|
|
43
|
-
};
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../page-helper-util.cjs"),z=require("../common-util.cjs"),d=require("./chart-util.cjs"),b=require("../events/event-util.cjs");exports.updateChartOption=function(f,s,l,a){if(!a||!a.result)return;b.handleChartEvent(f,s,"beforeUpdateChart",l,{resultData:a}),d.setDefaultGrid(l);const u=a&&a.result?a.result:{},F=s.serviceDataField;let i=null;F?i=u[F]:u&&(i=Array.isArray(u)?u:[u]),i||(i=[]);const h=s.items?s.items:[],n=[],y={};for(const o of h){const e=o.props?o.props:{},t=o.props?o.style:{},r=e.xaxisField,m=e.sizeField,x={uuid:o.uuid,xaxisField:r,yaxisField:e.yaxisField,yaxisSource:e.yaxisSource,formula:e.formula,sizeField:m,symbolSize:t.symbolSize,data:[]};n.push(x),y[x.uuid]=x}const S=[],v=d.caculateFormulaValue(h,i,S);for(const o of n)if(o.yaxisSource==="formula"){let e=o.formula?o.formula:"";for(const t in v)e=e.replace(new RegExp(t.replace("$","\\$"),"g"),v[t]);o.formula=e}const p={};for(const o of i)if(o){for(const e of S){const t=c.getValueFromSource(o,e,void 0);let r=p[e];t===void 0||isNaN(t)||(r===void 0?r=t:r+=t),p[e]=r}for(const e of n){const t=e.data,r=[];if(r.push(c.getValueFromSource(o,e.xaxisField,void 0)),e.yaxisSource==="formula"){const m=d.executeChartFormula(e.formula,p,o,f);r.push(m)}else r.push(c.getValueFromSource(o,e.yaxisField,void 0));e.sizeField?r.push(c.getValueFromSource(o,e.xaxisField,void 0)):r.push(e.symbolSize),t.push(r)}}const C=s.defaultSeries,g=z.deepCopy(C);for(const o of g){const e=y[o.uuid];o.data=e.data}l.series=g,d.formatToolboxI18n(l),b.handleChartEvent(f,s,"afterUpdateChart",l,{resultData:a}),s.cacheDatas=i,s.rawResult=a};
|
|
@@ -1,244 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const e = require("../../../../assets/chart-themes/bar-theme.cjs"), t = require("../../../../assets/chart-themes/gauge-theme.cjs"), r = require("../../../../assets/chart-themes/pie-theme.cjs"), o = require("../../../../assets/chart-themes/radar-theme.cjs"), a = require("../../../../assets/chart-themes/scatter-theme.cjs"), s = require("../page-init-util.cjs"), i = require("../page-helper-util.cjs"), n = require("agilebuilder-ui"), l = require("../events/event-util.cjs");
|
|
4
|
-
var c = ((e2) => (e2.X_FIELD_NAME = "__x", e2.Y_TEMP_NAME = "__y", e2))(c || {});
|
|
5
|
-
function u(e2, t2, r2, o2, a2) {
|
|
6
|
-
return function(s2) {
|
|
7
|
-
let i2 = s2 == null ? void 0 : s2.value;
|
|
8
|
-
if (a2 && (i2 = s2), null == i2 || null == i2) return i2;
|
|
9
|
-
if (Array.isArray(i2)) return i2;
|
|
10
|
-
if (isNaN(i2) || !e2 || !e2.indexOf) return i2;
|
|
11
|
-
if (e2.indexOf("precision") > -1) {
|
|
12
|
-
let e3 = parseInt(t2);
|
|
13
|
-
(null == e3 || isNaN(e3)) && (e3 = 2), i2 = parseFloat(parseFloat(i2).toFixed(e3));
|
|
14
|
-
}
|
|
15
|
-
let n2 = "";
|
|
16
|
-
e2.indexOf("prefix") > -1 && r2 && (n2 = r2);
|
|
17
|
-
let l2 = "";
|
|
18
|
-
return e2.indexOf("append") > -1 && o2 && (l2 = o2), n2 + i2.toLocaleString() + l2;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function f(e2, t2) {
|
|
22
|
-
if (!t2.clickSet) return;
|
|
23
|
-
const r2 = t2.clickSet, o2 = r2.variables;
|
|
24
|
-
if (!o2 || 0 == o2.length) return;
|
|
25
|
-
const a2 = t2.highlightInfos ? t2.highlightInfos : [], s2 = t2.cacheDatas ? t2.cacheDatas : [], n2 = [], l2 = [];
|
|
26
|
-
for (const e3 of a2) l2.includes(e3.dataIndex) || (l2.push(e3.dataIndex), e3.dataIndex < s2.length && n2.push(s2[e3.dataIndex]));
|
|
27
|
-
for (const t3 of o2) {
|
|
28
|
-
if (!t3.fieldName || !t3.variable) continue;
|
|
29
|
-
const o3 = [];
|
|
30
|
-
for (const e3 of n2) {
|
|
31
|
-
const r3 = i.getValueFromSource(e3, t3.fieldName, void 0);
|
|
32
|
-
null != r3 && o3.push(r3);
|
|
33
|
-
}
|
|
34
|
-
r2.multiple ? i.setValueForVariableName(e2.entity, t3.variable, o3) : i.setValueForVariableName(e2.entity, t3.variable, o3.length > 0 ? o3[0] : void 0);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function p(e2, t2) {
|
|
38
|
-
let r2;
|
|
39
|
-
for (const o2 of e2) {
|
|
40
|
-
const e3 = parseFloat(i.getValueFromSource(o2, t2, null));
|
|
41
|
-
(void 0 === r2 || !isNaN(e3) && e3 < r2) && (r2 = e3);
|
|
42
|
-
}
|
|
43
|
-
return r2;
|
|
44
|
-
}
|
|
45
|
-
function d(e2, t2) {
|
|
46
|
-
let r2;
|
|
47
|
-
for (const o2 of e2) {
|
|
48
|
-
const e3 = parseFloat(i.getValueFromSource(o2, t2, null));
|
|
49
|
-
(void 0 === r2 || !isNaN(e3) && e3 > r2) && (r2 = e3);
|
|
50
|
-
}
|
|
51
|
-
return r2;
|
|
52
|
-
}
|
|
53
|
-
function h(e2, t2) {
|
|
54
|
-
let r2;
|
|
55
|
-
for (const o2 of e2) {
|
|
56
|
-
const e3 = parseFloat(i.getValueFromSource(o2, t2, null));
|
|
57
|
-
void 0 === r2 ? r2 = e3 : isNaN(e3) || (r2 += e3);
|
|
58
|
-
}
|
|
59
|
-
return r2;
|
|
60
|
-
}
|
|
61
|
-
function g(e2, t2) {
|
|
62
|
-
const r2 = h(e2, t2);
|
|
63
|
-
return void 0 === r2 || 0 === e2.length ? r2 : parseFloat((r2 / e2.length).toFixed(5));
|
|
64
|
-
}
|
|
65
|
-
exports.CommonName = c, exports.caculateFormulaValue = function(e2, t2, r2) {
|
|
66
|
-
const o2 = {};
|
|
67
|
-
for (const a2 of e2) {
|
|
68
|
-
const e3 = a2.props ? a2.props : {};
|
|
69
|
-
if ("formula" === e3.yaxisSource) {
|
|
70
|
-
const a3 = i.getParamNames(e3.formula);
|
|
71
|
-
for (const e4 of a3) if (!(e4 in o2)) {
|
|
72
|
-
if (e4.startsWith("${min.")) o2[e4] = p(t2, e4.substring(6, e4.length - 1));
|
|
73
|
-
else if (e4.startsWith("${max.")) o2[e4] = d(t2, e4.substring(6, e4.length - 1));
|
|
74
|
-
else if (e4.startsWith("${sum.")) o2[e4] = h(t2, e4.substring(6, e4.length - 1));
|
|
75
|
-
else if (e4.startsWith("${avg.")) o2[e4] = g(t2, e4.substring(6, e4.length - 1));
|
|
76
|
-
else if (e4.startsWith("${add.")) {
|
|
77
|
-
const t3 = e4.substring(6, e4.length - 1);
|
|
78
|
-
r2.add(t3);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
return o2;
|
|
84
|
-
}, exports.clearChartSelected = function(e2, t2, r2) {
|
|
85
|
-
if (!r2 || !t2 || !e2) return;
|
|
86
|
-
const o2 = t2.highlightInfos ? t2.highlightInfos : [];
|
|
87
|
-
for (let e3 = 0; e3 < o2.length; e3++) {
|
|
88
|
-
const a2 = o2[e3], s2 = "chart-pie" === t2.name ? "unselect" : "downplay";
|
|
89
|
-
r2.dispatchAction({ type: s2, seriesIndex: a2.seriesIndex, dataIndex: a2.dataIndex });
|
|
90
|
-
}
|
|
91
|
-
t2.highlightInfos = [], f(e2, t2);
|
|
92
|
-
}, exports.executeChartFormula = function(e2, t2, r2, o2) {
|
|
93
|
-
if (!e2) return;
|
|
94
|
-
if (t2) for (const r3 in t2) e2 = e2.replace(new RegExp("\\${add." + r3 + "}", "g"), t2[r3]);
|
|
95
|
-
const a2 = i.getParamNames(e2);
|
|
96
|
-
for (const t3 of a2) {
|
|
97
|
-
let a3 = null;
|
|
98
|
-
a3 = t3.startsWith("${row.") ? i.getValueFromSource(r2, t3.substring(6, t3.length - 1), null) : i.getValueFromVariable(o2.entity, t3), e2 = e2.replace(new RegExp(t3.replace("$", "\\$"), "g"), a3);
|
|
99
|
-
}
|
|
100
|
-
e2.includes("return ") || (e2 = "return " + e2);
|
|
101
|
-
const s2 = new Function("params", e2);
|
|
102
|
-
return l.appendDefaultMethods(s2, o2), s2({ pageContext: o2, row: r2 });
|
|
103
|
-
}, exports.exportCommonChart = function(e2, t2) {
|
|
104
|
-
if (!e2 || !e2.$el) return;
|
|
105
|
-
const r2 = e2.$el.getElementsByTagName("canvas");
|
|
106
|
-
if (!r2 || 0 === r2.length) return;
|
|
107
|
-
const o2 = r2[0], a2 = o2.width + ":" + o2.height;
|
|
108
|
-
return { isTable: false, fileContent: o2.toDataURL(), fileSize: a2, title: t2 == null ? void 0 : t2.title };
|
|
109
|
-
}, exports.formatToolboxI18n = function(e2) {
|
|
110
|
-
var _a;
|
|
111
|
-
if ((_a = e2 == null ? void 0 : e2.toolbox) == null ? void 0 : _a.feature) {
|
|
112
|
-
const t2 = e2.toolbox.feature;
|
|
113
|
-
for (const e3 in t2) t2[e3].show && (t2[e3].title = n.getI18n().t("chartMessage." + e3), "dataView" === e3 && (t2[e3].lang = [n.getI18n().t("chartMessage.dataView"), n.getI18n().t("chartMessage.close"), n.getI18n().t("chartMessage.refresh")]));
|
|
114
|
-
}
|
|
115
|
-
}, exports.getAvgValue = g, exports.getCustomTheme = function(s2, i2 = "bar") {
|
|
116
|
-
return "bar" === i2 ? e[s2] : "gauge" === i2 ? t[s2] : "pie" === i2 ? r[s2] : "radar" === i2 ? o[s2] : "scatter" === i2 ? a[s2] : e[s2];
|
|
117
|
-
}, exports.getCustomThemeOptions = function() {
|
|
118
|
-
return [{ value: "theme1", label: "主题1" }, { value: "theme2", label: "主题2" }, { value: "theme3", label: "主题3" }];
|
|
119
|
-
}, exports.getMaxValue = d, exports.getMinValue = p, exports.getNumFormatter = u, exports.getSumValue = h, exports.initChartOption = function(e2, t2) {
|
|
120
|
-
if (!t2) return;
|
|
121
|
-
if (t2.tooltipFormatterArgs && (t2.tooltip || (t2.tooltip = {}), t2.tooltip.valueFormatter = u.apply(t2, t2.tooltipFormatterArgs)), t2.series) {
|
|
122
|
-
const r3 = e2.props ? e2.props.enableDrill : null;
|
|
123
|
-
for (const o3 of t2.series) t2.radar || (o3.data = []), o3.labelFormatterArgs && (o3.label || (o3.label = {}), o3.label.formatter = u.apply(o3, o3.labelFormatterArgs)), !r3 && e2.clickSet && e2.clickSet.selected && o3.emphasis && (o3.emphasis.disabled = false), "pie" === o3.type && e2.clickSet && e2.clickSet.selected && (e2.clickSet.multiple ? o3.selectedMode = "multiple" : o3.selectedMode = "single");
|
|
124
|
-
}
|
|
125
|
-
if (t2.radar) for (const e3 of t2.radar) e3.indicator = [];
|
|
126
|
-
const r2 = t2.series;
|
|
127
|
-
e2.defaultSeries = r2;
|
|
128
|
-
const o2 = t2.xAxis;
|
|
129
|
-
o2 && o2.length > 0 && o2[0].data && (o2[0].data = []), e2.defaultXaxis = o2;
|
|
130
|
-
const a2 = t2.yAxis;
|
|
131
|
-
if (a2) for (const e3 of a2) e3.data && (e3.data = []), "auto" === e3._dataMin && (e3.min = function(e4) {
|
|
132
|
-
if (e4.min) return 10 * Math.floor(e4.min / 10);
|
|
133
|
-
}), "auto" === e3._dataMax && (e3.max = function(e4) {
|
|
134
|
-
if (e4.max) return 10 * Math.ceil(e4.max / 10);
|
|
135
|
-
});
|
|
136
|
-
e2.defaultYaxis = a2;
|
|
137
|
-
}, exports.limitDatas = function(e2, t2, r2, o2, a2) {
|
|
138
|
-
if (!r2) return r2;
|
|
139
|
-
const s2 = t2.props ? t2.props : {};
|
|
140
|
-
if (!s2.limitQuantity) return r2;
|
|
141
|
-
let n2 = null;
|
|
142
|
-
if (s2.itemNumVariable ? (n2 = i.formatVariableValue(e2, s2.itemNumVariable), n2 = parseInt(n2)) : n2 = s2.itemNumFix ? s2.itemNumFix : 10, null == n2 || null == n2 || isNaN(n2)) return r2;
|
|
143
|
-
if (r2.length < n2) return r2;
|
|
144
|
-
const l2 = s2.overItemAlias, c2 = [], u2 = {};
|
|
145
|
-
o2 = o2 || [], a2 = a2 || [];
|
|
146
|
-
for (let e3 = 0; e3 < r2.length; e3++) {
|
|
147
|
-
const t3 = r2[e3];
|
|
148
|
-
if (e3 < n2) c2.push(t3);
|
|
149
|
-
else {
|
|
150
|
-
if (!l2) break;
|
|
151
|
-
for (const e4 of o2) {
|
|
152
|
-
if (!e4) continue;
|
|
153
|
-
let r3 = i.getValueFromSource(t3, e4, void 0);
|
|
154
|
-
r3 = null == r3 || null == r3 ? "" : r3, u2[e4] || (u2[e4] = []);
|
|
155
|
-
const o3 = u2[e4];
|
|
156
|
-
o3.includes(r3) || o3.push(r3);
|
|
157
|
-
}
|
|
158
|
-
for (const e4 of a2) {
|
|
159
|
-
if (!e4) continue;
|
|
160
|
-
const r3 = i.getValueFromSource(t3, e4, void 0);
|
|
161
|
-
if (isNaN(r3)) continue;
|
|
162
|
-
const o3 = u2[e4];
|
|
163
|
-
isNaN(o3) ? u2[e4] = r3 : u2[e4] = r3 + o3;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
return l2 && (u2.__x = l2, c2.push(u2)), c2;
|
|
168
|
-
}, exports.monitorChartClickToVariable = function(e2, t2, r2) {
|
|
169
|
-
if (!(r2 && t2 && t2.clickSet && e2)) return;
|
|
170
|
-
const o2 = t2.clickSet;
|
|
171
|
-
r2.on("click", function(a2) {
|
|
172
|
-
let s2 = t2.highlightInfos ? t2.highlightInfos : [], i2 = -1;
|
|
173
|
-
if (s2) {
|
|
174
|
-
const e3 = [];
|
|
175
|
-
for (let n2 = 0; n2 < s2.length; n2++) {
|
|
176
|
-
const l2 = s2[n2], c2 = l2.seriesIndex === a2.seriesIndex && l2.dataIndex === a2.dataIndex;
|
|
177
|
-
if (c2 || !o2.multiple) {
|
|
178
|
-
if (o2.selected) {
|
|
179
|
-
const e4 = "chart-pie" === t2.name ? "unselect" : "downplay";
|
|
180
|
-
r2.dispatchAction({ type: e4, seriesIndex: l2.seriesIndex, dataIndex: l2.dataIndex });
|
|
181
|
-
}
|
|
182
|
-
} else e3.push(l2);
|
|
183
|
-
c2 && (i2 = n2);
|
|
184
|
-
}
|
|
185
|
-
s2 = e3;
|
|
186
|
-
}
|
|
187
|
-
if (-1 === i2) {
|
|
188
|
-
if (o2.selected) {
|
|
189
|
-
const e3 = "chart-pie" === t2.name ? "select" : "highlight";
|
|
190
|
-
r2.dispatchAction({ type: e3, seriesIndex: a2.seriesIndex, dataIndex: a2.dataIndex });
|
|
191
|
-
}
|
|
192
|
-
s2.push({ seriesIndex: a2.seriesIndex, dataIndex: a2.dataIndex });
|
|
193
|
-
}
|
|
194
|
-
t2.highlightInfos = s2, f(e2, t2);
|
|
195
|
-
});
|
|
196
|
-
}, exports.setDefaultGrid = function(e2) {
|
|
197
|
-
if (e2 == null ? void 0 : e2.grid) {
|
|
198
|
-
const t2 = e2.grid, r2 = (e3) => !e3 || "0" === e3;
|
|
199
|
-
r2(t2.top) && r2(t2.right) && r2(t2.bottom) && r2(t2.left) && Object.assign(t2, { right: "10%", bottom: "60", left: "10%" });
|
|
200
|
-
}
|
|
201
|
-
}, exports.setHomeChartInitConfigValue = function(e2, t2, r2) {
|
|
202
|
-
const o2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS");
|
|
203
|
-
let a2 = true;
|
|
204
|
-
if (o2) {
|
|
205
|
-
const e3 = JSON.parse(o2);
|
|
206
|
-
if (e3[r2]) {
|
|
207
|
-
const o3 = e3[r2];
|
|
208
|
-
if (Object.keys(o3).length > 0) {
|
|
209
|
-
a2 = false;
|
|
210
|
-
for (const e4 in o3) null !== o3[e4] && void 0 !== o3[e4] && i.setValueForVariableName(t2.entity, e4, o3[e4]);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
if (a2 && e2) {
|
|
215
|
-
for (const r3 of e2) if (r3.prop && r3.value) {
|
|
216
|
-
const e3 = s.getDefaultValue(t2, r3.value, "input-text", false), o3 = r3.prop.substring(2, r3.prop.length - 1).split(".");
|
|
217
|
-
null != e3 && i.setVariableValue(t2.entity, o3, e3);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}, exports.sortDatas = function(e2, t2, r2) {
|
|
221
|
-
const o2 = t2.items ? t2.items : [], a2 = t2.props ? t2.props.orderByTarget : "";
|
|
222
|
-
let s2 = null;
|
|
223
|
-
if ("x" == a2 || "X" == a2) s2 = "__x";
|
|
224
|
-
else if (a2) {
|
|
225
|
-
for (const e3 of o2) if (e3.uuid == a2) {
|
|
226
|
-
const t3 = e3.props ? e3.props : {}, r3 = t3.yaxisSource, o3 = t3.yaxisField;
|
|
227
|
-
if (o3 && (!r3 || "variable" == r3)) {
|
|
228
|
-
s2 = o3;
|
|
229
|
-
break;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
if (!s2) return;
|
|
234
|
-
const n2 = t2.props ? t2.props.orderSource : "";
|
|
235
|
-
let l2 = t2.props ? t2.props.orderFix : "";
|
|
236
|
-
if ("variable" == n2) {
|
|
237
|
-
const r3 = t2.props ? t2.props.orderVariable : "";
|
|
238
|
-
l2 = i.formatVariableValue(e2, r3);
|
|
239
|
-
}
|
|
240
|
-
l2 = "desc" == l2 || "DESC" == l2 ? "desc" : "asc", r2.sort((e3, t3) => {
|
|
241
|
-
const r3 = i.getValueFromSource(e3, s2, void 0), o3 = i.getValueFromSource(t3, s2, void 0);
|
|
242
|
-
return "desc" === l2 ? o3 - r3 : r3 - o3;
|
|
243
|
-
});
|
|
244
|
-
}, exports.updateClickVariablesForSelected = f;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("../../../../assets/chart-themes/bar-theme.cjs"),y=require("../../../../assets/chart-themes/gauge-theme.cjs"),M=require("../../../../assets/chart-themes/pie-theme.cjs"),C=require("../../../../assets/chart-themes/radar-theme.cjs"),_=require("../../../../assets/chart-themes/scatter-theme.cjs"),A=require("../page-init-util.cjs"),c=require("../page-helper-util.cjs"),m=require("agilebuilder-ui"),k=require("../events/event-util.cjs");var v=(t=>(t.X_FIELD_NAME="__x",t.Y_TEMP_NAME="__y",t))(v||{});function x(t,e,o,n,l){return function(i){let r=i==null?void 0:i.value;if(l&&(r=i),r==null||r==null||Array.isArray(r)||isNaN(r)||!t||!t.indexOf)return r;if(t.indexOf("precision")>-1){let u=parseInt(e);(u==null||isNaN(u))&&(u=2),r=parseFloat(parseFloat(r).toFixed(u))}let a="";t.indexOf("prefix")>-1&&o&&(a=o);let s="";return t.indexOf("append")>-1&&n&&(s=n),a+r.toLocaleString()+s}}function b(t,e){if(!e.clickSet)return;const o=e.clickSet,n=o.variables;if(!n||n.length==0)return;const l=e.highlightInfos?e.highlightInfos:[],i=e.cacheDatas?e.cacheDatas:[],r=[],a=[];for(const s of l)a.includes(s.dataIndex)||(a.push(s.dataIndex),s.dataIndex<i.length&&r.push(i[s.dataIndex]));for(const s of n){if(!s.fieldName||!s.variable)continue;const u=[];for(const f of r){const d=c.getValueFromSource(f,s.fieldName,void 0);d!=null&&u.push(d)}o.multiple?c.setValueForVariableName(t.entity,s.variable,u):c.setValueForVariableName(t.entity,s.variable,u.length>0?u[0]:void 0)}}function F(t,e){let o;for(const n of t){const l=parseFloat(c.getValueFromSource(n,e,null));(o===void 0||!isNaN(l)&&l<o)&&(o=l)}return o}function N(t,e){let o;for(const n of t){const l=parseFloat(c.getValueFromSource(n,e,null));(o===void 0||!isNaN(l)&&l>o)&&(o=l)}return o}function I(t,e){let o;for(const n of t){const l=parseFloat(c.getValueFromSource(n,e,null));o===void 0?o=l:isNaN(l)||(o+=l)}return o}function S(t,e){const o=I(t,e);return o===void 0||t.length===0?o:parseFloat((o/t.length).toFixed(5))}exports.CommonName=v,exports.caculateFormulaValue=function(t,e,o){const n={};for(const l of t){const i=l.props?l.props:{};if(i.yaxisSource==="formula"){const r=c.getParamNames(i.formula);for(const a of r)if(!(a in n)){if(a.startsWith("${min."))n[a]=F(e,a.substring(6,a.length-1));else if(a.startsWith("${max."))n[a]=N(e,a.substring(6,a.length-1));else if(a.startsWith("${sum."))n[a]=I(e,a.substring(6,a.length-1));else if(a.startsWith("${avg."))n[a]=S(e,a.substring(6,a.length-1));else if(a.startsWith("${add.")){const s=a.substring(6,a.length-1);o.add(s)}}}}return n},exports.clearChartSelected=function(t,e,o){if(!o||!e||!t)return;const n=e.highlightInfos?e.highlightInfos:[];for(let l=0;l<n.length;l++){const i=n[l],r=e.name==="chart-pie"?"unselect":"downplay";o.dispatchAction({type:r,seriesIndex:i.seriesIndex,dataIndex:i.dataIndex})}e.highlightInfos=[],b(t,e)},exports.executeChartFormula=function(t,e,o,n){if(!t)return;if(e)for(const r in e)t=t.replace(new RegExp("\\${add."+r+"}","g"),e[r]);const l=c.getParamNames(t);for(const r of l){let a=null;a=r.startsWith("${row.")?c.getValueFromSource(o,r.substring(6,r.length-1),null):c.getValueFromVariable(n.entity,r),t=t.replace(new RegExp(r.replace("$","\\$"),"g"),a)}t.includes("return ")||(t="return "+t);const i=new Function("params",t);return k.appendDefaultMethods(i,n),i({pageContext:n,row:o})},exports.exportCommonChart=function(t,e){if(!t||!t.$el)return;const o=t.$el.getElementsByTagName("canvas");if(!o||o.length===0)return;const n=o[0],l=n.width+":"+n.height;return{isTable:!1,fileContent:n.toDataURL(),fileSize:l,title:e==null?void 0:e.title}},exports.formatToolboxI18n=function(t){var e;if((e=t==null?void 0:t.toolbox)!=null&&e.feature){const o=t.toolbox.feature;for(const n in o)o[n].show&&(o[n].title=m.getI18n().t("chartMessage."+n),n==="dataView"&&(o[n].lang=[m.getI18n().t("chartMessage.dataView"),m.getI18n().t("chartMessage.close"),m.getI18n().t("chartMessage.refresh")]))}},exports.getAvgValue=S,exports.getCustomTheme=function(t,e="bar"){return e==="bar"?V[t]:e==="gauge"?y[t]:e==="pie"?M[t]:e==="radar"?C[t]:e==="scatter"?_[t]:V[t]},exports.getCustomThemeOptions=function(){return[{value:"theme1",label:"主题1"},{value:"theme2",label:"主题2"},{value:"theme3",label:"主题3"}]},exports.getMaxValue=N,exports.getMinValue=F,exports.getNumFormatter=x,exports.getSumValue=I,exports.initChartOption=function(t,e){if(!e)return;if(e.tooltipFormatterArgs&&(e.tooltip||(e.tooltip={}),e.tooltip.valueFormatter=x.apply(e,e.tooltipFormatterArgs)),e.series){const i=t.props?t.props.enableDrill:null;for(const r of e.series)e.radar||(r.data=[]),r.labelFormatterArgs&&(r.label||(r.label={}),r.label.formatter=x.apply(r,r.labelFormatterArgs)),!i&&t.clickSet&&t.clickSet.selected&&r.emphasis&&(r.emphasis.disabled=!1),r.type==="pie"&&t.clickSet&&t.clickSet.selected&&(t.clickSet.multiple?r.selectedMode="multiple":r.selectedMode="single")}if(e.radar)for(const i of e.radar)i.indicator=[];const o=e.series;t.defaultSeries=o;const n=e.xAxis;n&&n.length>0&&n[0].data&&(n[0].data=[]),t.defaultXaxis=n;const l=e.yAxis;if(l)for(const i of l)i.data&&(i.data=[]),i._dataMin==="auto"&&(i.min=function(r){if(r.min)return 10*Math.floor(r.min/10)}),i._dataMax==="auto"&&(i.max=function(r){if(r.max)return 10*Math.ceil(r.max/10)});t.defaultYaxis=l},exports.limitDatas=function(t,e,o,n,l){if(!o)return o;const i=e.props?e.props:{};if(!i.limitQuantity)return o;let r=null;if(i.itemNumVariable?(r=c.formatVariableValue(t,i.itemNumVariable),r=parseInt(r)):r=i.itemNumFix?i.itemNumFix:10,r==null||r==null||isNaN(r)||o.length<r)return o;const a=i.overItemAlias,s=[],u={};n=n||[],l=l||[];for(let f=0;f<o.length;f++){const d=o[f];if(f<r)s.push(d);else{if(!a)break;for(const p of n){if(!p)continue;let g=c.getValueFromSource(d,p,void 0);g=g==null||g==null?"":g,u[p]||(u[p]=[]);const h=u[p];h.includes(g)||h.push(g)}for(const p of l){if(!p)continue;const g=c.getValueFromSource(d,p,void 0);if(isNaN(g))continue;const h=u[p];isNaN(h)?u[p]=g:u[p]=g+h}}}return a&&(u.__x=a,s.push(u)),s},exports.monitorChartClickToVariable=function(t,e,o){if(!(o&&e&&e.clickSet&&t))return;const n=e.clickSet;o.on("click",function(l){let i=e.highlightInfos?e.highlightInfos:[],r=-1;if(i){const a=[];for(let s=0;s<i.length;s++){const u=i[s],f=u.seriesIndex===l.seriesIndex&&u.dataIndex===l.dataIndex;if(f||!n.multiple){if(n.selected){const d=e.name==="chart-pie"?"unselect":"downplay";o.dispatchAction({type:d,seriesIndex:u.seriesIndex,dataIndex:u.dataIndex})}}else a.push(u);f&&(r=s)}i=a}if(r===-1){if(n.selected){const a=e.name==="chart-pie"?"select":"highlight";o.dispatchAction({type:a,seriesIndex:l.seriesIndex,dataIndex:l.dataIndex})}i.push({seriesIndex:l.seriesIndex,dataIndex:l.dataIndex})}e.highlightInfos=i,b(t,e)})},exports.setDefaultGrid=function(t){if(t!=null&&t.grid){const e=t.grid,o=n=>!n||n==="0";o(e.top)&&o(e.right)&&o(e.bottom)&&o(e.left)&&Object.assign(e,{right:"10%",bottom:"60",left:"10%"})}},exports.setHomeChartInitConfigValue=function(t,e,o){const n=window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS");let l=!0;if(n){const i=JSON.parse(n);if(i[o]){const r=i[o];if(Object.keys(r).length>0){l=!1;for(const a in r)r[a]!==null&&r[a]!==void 0&&c.setValueForVariableName(e.entity,a,r[a])}}}if(l&&t){for(const i of t)if(i.prop&&i.value){const r=A.getDefaultValue(e,i.value,"input-text",!1),a=i.prop.substring(2,i.prop.length-1).split(".");r!=null&&c.setVariableValue(e.entity,a,r)}}},exports.sortDatas=function(t,e,o){const n=e.items?e.items:[],l=e.props?e.props.orderByTarget:"";let i=null;if(l=="x"||l=="X")i="__x";else if(l){for(const s of n)if(s.uuid==l){const u=s.props?s.props:{},f=u.yaxisSource,d=u.yaxisField;if(d&&(!f||f=="variable")){i=d;break}}}if(!i)return;const r=e.props?e.props.orderSource:"";let a=e.props?e.props.orderFix:"";if(r=="variable"){const s=e.props?e.props.orderVariable:"";a=c.formatVariableValue(t,s)}a=a=="desc"||a=="DESC"?"desc":"asc",o.sort((s,u)=>{const f=c.getValueFromSource(s,i,void 0),d=c.getValueFromSource(u,i,void 0);return a==="desc"?d-f:f-d})},exports.updateClickVariablesForSelected=b;
|
|
@@ -1,91 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const e = require("agilebuilder-ui"), t = require("../views/assemblys/chart/table/chart-table-util.cjs"), r = require("./events/event-util.cjs");
|
|
4
|
-
function n(t2, r2) {
|
|
5
|
-
if (r2) return t2;
|
|
6
|
-
{
|
|
7
|
-
const { baseURL: r3, projectModel: n2 } = window.$vueApp.config.globalProperties;
|
|
8
|
-
let o = r3;
|
|
9
|
-
return "developing.model" === n2 || t2 && (o = e.getSystemBackendUrl(t2)), o;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.addRequiredClassUtil = function() {
|
|
13
|
-
return "required_bg";
|
|
14
|
-
}, exports.deepCopy = function e2(t2) {
|
|
15
|
-
if ("object" != typeof t2 || null == t2) return t2;
|
|
16
|
-
const r2 = Array.isArray(t2) ? [] : {};
|
|
17
|
-
for (const n2 in t2) t2.hasOwnProperty(n2) && (r2[n2] = e2(t2[n2]));
|
|
18
|
-
return r2;
|
|
19
|
-
}, exports.getBaseUrl = n, exports.getListCode = function(e3, t2, r2) {
|
|
20
|
-
return "V" + t2 + "__" + e3 + "__" + r2;
|
|
21
|
-
}, exports.getPropClassName = function(e3) {
|
|
22
|
-
var _a, _b, _c, _d;
|
|
23
|
-
let t2;
|
|
24
|
-
if (e3 && ((_b = (_a = e3.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop)) {
|
|
25
|
-
let r2 = (_d = (_c = e3.props) == null ? void 0 : _c.base) == null ? void 0 : _d.prop;
|
|
26
|
-
r2.indexOf("${") >= 0 && (r2 = r2.substring(2, r2.lastIndexOf("}")));
|
|
27
|
-
const n2 = r2.split(".");
|
|
28
|
-
2 === n2.length ? t2 = n2[1] : 3 === n2.length && (t2 = n2[1] + "__" + n2[2]);
|
|
29
|
-
} else e3.code && (t2 = e3.code);
|
|
30
|
-
return t2;
|
|
31
|
-
}, exports.getRealRestApiPath = function(e3, t2, r2, o) {
|
|
32
|
-
let i = e3;
|
|
33
|
-
if (e3 && r2 && !function(e4) {
|
|
34
|
-
return 0 === e4.indexOf("http:") || 0 === e4.indexOf("https:");
|
|
35
|
-
}(e3)) {
|
|
36
|
-
i = n(r2, o) + "/" + t2 + e3;
|
|
37
|
-
}
|
|
38
|
-
return i;
|
|
39
|
-
}, exports.getWorkflowId = function(e3) {
|
|
40
|
-
let t2;
|
|
41
|
-
return e3.entity && e3.entity.data && (t2 = e3.entity.data.WORKFLOW_ID, t2 || (t2 = e3.entity.data.workflow_id), t2 || (t2 = e3.entity.data.workflowId)), t2;
|
|
42
|
-
}, exports.isArrayFn = function(e3) {
|
|
43
|
-
return "function" == typeof Array.isArray ? Array.isArray(e3) : "[object Array]" === Object.prototype.toString.call(e3);
|
|
44
|
-
}, exports.isNumber = function(e3) {
|
|
45
|
-
try {
|
|
46
|
-
if (null != e3) {
|
|
47
|
-
const t2 = parseInt(e3 + "");
|
|
48
|
-
if (Number.isInteger(t2)) return true;
|
|
49
|
-
}
|
|
50
|
-
return false;
|
|
51
|
-
} catch (e4) {
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
}, exports.isVariableInvalidValue = function(e3, t2) {
|
|
55
|
-
return null === e3[t2] || void 0 === e3[t2] || "" === e3[t2];
|
|
56
|
-
}, exports.isWorkflowPage = function(e3) {
|
|
57
|
-
return !!e3.isWorkflowEntity || !(void 0 !== e3.isWorkflowEntity || !e3.workflowCode);
|
|
58
|
-
}, exports.packageTemplateFiles = function(n2, o, i) {
|
|
59
|
-
if (!n2 || 0 === n2.length) return n2;
|
|
60
|
-
let s = n2;
|
|
61
|
-
if (Array.isArray(n2)) {
|
|
62
|
-
n2[0].templates && (s = function(e3, n3, o2) {
|
|
63
|
-
const i2 = [];
|
|
64
|
-
return e3.forEach((e4) => {
|
|
65
|
-
let s2 = true;
|
|
66
|
-
if (e4.scopeFunc) {
|
|
67
|
-
const t2 = r.getCustomFunc(n3, e4.scopeFunc);
|
|
68
|
-
t2 && (s2 = t2.apply(t2, [{ pageContext: n3, configureObj: o2, template: e4 }]));
|
|
69
|
-
} else e4.conditions && e4.conditions.length > 0 && (s2 = t.ExpressionEvaluator.evaluate(n3, e4.conditions));
|
|
70
|
-
false !== s2 && e4.templates.forEach((e5) => {
|
|
71
|
-
i2.push({ templateUuid: e5.templateUuid, templateName: e5.templateName });
|
|
72
|
-
});
|
|
73
|
-
}), i2;
|
|
74
|
-
}(n2, o, i));
|
|
75
|
-
const a = e.getLanguageWithLocale(), l = [], p = [], u = "~-~-";
|
|
76
|
-
return s.forEach((e3) => {
|
|
77
|
-
const t2 = e3.templateName;
|
|
78
|
-
if (t2.indexOf(u) > 0) {
|
|
79
|
-
const r2 = t2.substring(0, t2.indexOf(u)), n3 = t2.substring(t2.indexOf(u) + u.length, t2.lastIndexOf(u)), o2 = t2.substring(t2.lastIndexOf(u) + u.length);
|
|
80
|
-
a === n3 && p.indexOf(r2) < 0 && (l.push({ templateUuid: e3.templateUuid, templateName: o2 }), p.push(r2));
|
|
81
|
-
} else l.push(e3);
|
|
82
|
-
}), l;
|
|
83
|
-
}
|
|
84
|
-
}, exports.refreshMobileDialogType = function(e3, t2) {
|
|
85
|
-
if (e3 && t2) {
|
|
86
|
-
let t3 = e3.jumpPageMobileOpenMode;
|
|
87
|
-
t3 || (e3.jumpPageOpenMode ? (t3 = e3.jumpPageOpenMode, "newTab" === t3 && (t3 = "refresh")) : t3 = "refresh"), "refresh" === t3 && (e3.dialogType = "drawer", e3.jumpPageWidth = "100%", e3.isRefreshWhenClosePopup = true), e3.jumpMode = t3, e3.jumpPageMobileOpenMode = t3, e3.jumpPageTitle || (e3.jumpPageTitle = "QMS质量管理系统");
|
|
88
|
-
}
|
|
89
|
-
}, exports.upperFirstCase = function(e3) {
|
|
90
|
-
return e3.toLowerCase().replace(/( |^)[a-z]/g, (e4) => e4.toUpperCase());
|
|
91
|
-
};
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("agilebuilder-ui"),h=require("../views/assemblys/chart/table/chart-table-util.cjs"),b=require("./events/event-util.cjs");function m(e,t){if(t)return e;{const{baseURL:r,projectModel:n}=window.$vueApp.config.globalProperties;let a=r;return n==="developing.model"||e&&(a=y.getSystemBackendUrl(e)),a}}exports.addRequiredClassUtil=function(){return"required_bg"},exports.deepCopy=function e(t){if(typeof t!="object"||t==null)return t;const r=Array.isArray(t)?[]:{};for(const n in t)t.hasOwnProperty(n)&&(r[n]=e(t[n]));return r},exports.getBaseUrl=m,exports.getListCode=function(e,t,r){return"V"+t+"__"+e+"__"+r},exports.getPropClassName=function(e){var r,n,a,s;let t;if(e&&((n=(r=e.props)==null?void 0:r.base)!=null&&n.prop)){let l=(s=(a=e.props)==null?void 0:a.base)==null?void 0:s.prop;l.indexOf("${")>=0&&(l=l.substring(2,l.lastIndexOf("}")));const o=l.split(".");o.length===2?t=o[1]:o.length===3&&(t=o[1]+"__"+o[2])}else e.code&&(t=e.code);return t},exports.getRealRestApiPath=function(e,t,r,n){let a=e;return e&&r&&!function(s){return s.indexOf("http:")===0||s.indexOf("https:")===0}(e)&&(a=m(r,n)+"/"+t+e),a},exports.getWorkflowId=function(e){let t;return e.entity&&e.entity.data&&(t=e.entity.data.WORKFLOW_ID,t||(t=e.entity.data.workflow_id),t||(t=e.entity.data.workflowId)),t},exports.isArrayFn=function(e){return typeof Array.isArray=="function"?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},exports.isNumber=function(e){try{if(e!=null){const t=parseInt(e+"");if(Number.isInteger(t))return!0}return!1}catch{return!1}},exports.isVariableInvalidValue=function(e,t){return e[t]===null||e[t]===void 0||e[t]===""},exports.isWorkflowPage=function(e){return!!e.isWorkflowEntity||!(e.isWorkflowEntity!==void 0||!e.workflowCode)},exports.packageTemplateFiles=function(e,t,r){if(!e||e.length===0)return e;let n=e;if(Array.isArray(e)){e[0].templates&&(n=function(f,i,c){const d=[];return f.forEach(u=>{let g=!0;if(u.scopeFunc){const p=b.getCustomFunc(i,u.scopeFunc);p&&(g=p.apply(p,[{pageContext:i,configureObj:c,template:u}]))}else u.conditions&&u.conditions.length>0&&(g=h.ExpressionEvaluator.evaluate(i,u.conditions));g!==!1&&u.templates.forEach(p=>{d.push({templateUuid:p.templateUuid,templateName:p.templateName})})}),d}(e,t,r));const a=y.getLanguageWithLocale(),s=[],l=[],o="~-~-";return n.forEach(f=>{const i=f.templateName;if(i.indexOf(o)>0){const c=i.substring(0,i.indexOf(o)),d=i.substring(i.indexOf(o)+o.length,i.lastIndexOf(o)),u=i.substring(i.lastIndexOf(o)+o.length);a===d&&l.indexOf(c)<0&&(s.push({templateUuid:f.templateUuid,templateName:u}),l.push(c))}else s.push(f)}),s}},exports.refreshMobileDialogType=function(e,t){if(e&&t){let r=e.jumpPageMobileOpenMode;r||(e.jumpPageOpenMode?(r=e.jumpPageOpenMode,r==="newTab"&&(r="refresh")):r="refresh"),r==="refresh"&&(e.dialogType="drawer",e.jumpPageWidth="100%",e.isRefreshWhenClosePopup=!0),e.jumpMode=r,e.jumpPageMobileOpenMode=r,e.jumpPageTitle||(e.jumpPageTitle="QMS质量管理系统")}},exports.upperFirstCase=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,t=>t.toUpperCase())};
|