super-page-runtime 2.3.22-tmp2 → 2.3.22-tmp4
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/package.json +76 -76
- package/dist/es/components/runtime/utils/api/api-util.mjs +0 -4
- package/dist/lib/_virtual/_plugin-vue_export-helper.cjs +0 -6
- package/dist/lib/assets/chart-themes/bar-theme.cjs +0 -2
- package/dist/lib/assets/chart-themes/bar-theme.d.ts +0 -6
- package/dist/lib/assets/chart-themes/gauge-theme.cjs +0 -2
- package/dist/lib/assets/chart-themes/gauge-theme.d.ts +0 -6
- package/dist/lib/assets/chart-themes/pie-theme.cjs +0 -2
- package/dist/lib/assets/chart-themes/pie-theme.d.ts +0 -6
- package/dist/lib/assets/chart-themes/radar-theme.cjs +0 -2
- package/dist/lib/assets/chart-themes/radar-theme.d.ts +0 -6
- package/dist/lib/assets/chart-themes/scatter-theme.cjs +0 -2
- package/dist/lib/assets/chart-themes/scatter-theme.d.ts +0 -6
- package/dist/lib/assets/file.png.cjs +0 -2
- package/dist/lib/assets/folder.png.cjs +0 -2
- package/dist/lib/components/runtime/index.d.ts +0 -5
- package/dist/lib/components/runtime/utils/ai-chat-util.cjs +0 -13
- package/dist/lib/components/runtime/utils/anchor-util.cjs +0 -62
- package/dist/lib/components/runtime/utils/anchor-util.d.ts +0 -13
- package/dist/lib/components/runtime/utils/api/api-util.cjs +0 -3
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -1
- package/dist/lib/components/runtime/utils/api/page-expose-util.cjs +0 -169
- package/dist/lib/components/runtime/utils/api/page-expose-util.d.ts +0 -1
- package/dist/lib/components/runtime/utils/assemblys-config.cjs +0 -16
- package/dist/lib/components/runtime/utils/barcode-util.cjs +0 -10
- package/dist/lib/components/runtime/utils/barcode-util.d.ts +0 -8
- package/dist/lib/components/runtime/utils/charts/chart-columnline-util.cjs +0 -137
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.cjs +0 -34
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.cjs +0 -78
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.cjs +0 -52
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.cjs +0 -43
- package/dist/lib/components/runtime/utils/charts/chart-util.cjs +0 -244
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -115
- package/dist/lib/components/runtime/utils/common-util.cjs +0 -91
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -33
- package/dist/lib/components/runtime/utils/eventBus.cjs +0 -3
- package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
- package/dist/lib/components/runtime/utils/events/event-util.cjs +0 -345
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -92
- package/dist/lib/components/runtime/utils/events/print-label.cjs +0 -97
- package/dist/lib/components/runtime/utils/events/print-label.d.ts +0 -5
- package/dist/lib/components/runtime/utils/events/standard-event.cjs +0 -1101
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -99
- package/dist/lib/components/runtime/utils/events/validator-util.cjs +0 -296
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -25
- package/dist/lib/components/runtime/utils/form/date-shortcuts.cjs +0 -34
- package/dist/lib/components/runtime/utils/form/date-shortcuts.d.ts +0 -7
- package/dist/lib/components/runtime/utils/form/scan-util.cjs +0 -90
- package/dist/lib/components/runtime/utils/global-refs.cjs +0 -42
- package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -65
- package/dist/lib/components/runtime/utils/i18n-util.cjs +0 -11
- package/dist/lib/components/runtime/utils/i18n-util.d.ts +0 -1
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.cjs +0 -4
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -247
- package/dist/lib/components/runtime/utils/page-helper-util.cjs +0 -354
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -174
- package/dist/lib/components/runtime/utils/page-init-util.cjs +0 -244
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -49
- package/dist/lib/components/runtime/utils/page-permission-util.cjs +0 -26
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/lib/components/runtime/utils/page-store.cjs +0 -50
- package/dist/lib/components/runtime/utils/page-store.d.ts +0 -58
- package/dist/lib/components/runtime/utils/store-util.cjs +0 -11
- package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
- package/dist/lib/components/runtime/utils/store.cjs +0 -3
- package/dist/lib/components/runtime/utils/store.d.ts +0 -2
- package/dist/lib/components/runtime/utils/table-utils.cjs +0 -68
- package/dist/lib/components/runtime/utils/table-utils.d.ts +0 -36
- package/dist/lib/components/runtime/utils/tree-utils.cjs +0 -54
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.cjs +0 -24
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.cjs +0 -17
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.cjs +0 -35
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.cjs +0 -17
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.cjs +0 -41
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.cjs +0 -11
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.cjs +0 -11
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.cjs +0 -53
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.cjs +0 -48
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.cjs +0 -24
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.cjs +0 -34
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.cjs +0 -24
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.cjs +0 -24
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.cjs +0 -402
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +0 -121
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.cjs +0 -6
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.cjs +0 -36
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.cjs +0 -13
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue2.cjs +0 -249
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.cjs +0 -16
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.d.ts +0 -5
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.cjs +0 -32
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -28
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.cjs +0 -32
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.d.ts +0 -27
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.cjs +0 -19
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.d.ts +0 -59
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.cjs +0 -12
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.cjs +0 -21
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.cjs +0 -13
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.cjs +0 -30
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts +0 -31
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.cjs +0 -15
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.cjs +0 -21
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.cjs +0 -17
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.cjs +0 -15
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.cjs +0 -27
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +0 -94
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.cjs +0 -79
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.cjs +0 -20
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.cjs +0 -15
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.cjs +0 -12
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.cjs +0 -88
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.cjs +0 -43
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.cjs +0 -59
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.cjs +0 -382
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.cjs +0 -322
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.cjs +0 -81
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.cjs +0 -124
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.cjs +0 -57
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.cjs +0 -35
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.cjs +0 -57
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.cjs +0 -91
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.cjs +0 -47
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.cjs +0 -20
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.cjs +0 -65
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.cjs +0 -20
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.cjs +0 -70
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.cjs +0 -31
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.cjs +0 -26
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.cjs +0 -13
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.cjs +0 -75
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.cjs +0 -188
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.cjs +0 -130
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.cjs +0 -11
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.cjs +0 -29
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.cjs +0 -38
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.cjs +0 -20
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.cjs +0 -73
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.cjs +0 -132
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.d.ts +0 -14
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +0 -14
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.cjs +0 -23
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.cjs +0 -23
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.cjs +0 -34
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.cjs +0 -17
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.cjs +0 -20
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.cjs +0 -19
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.cjs +0 -14
- package/dist/lib/components/runtime/views/home-chart.vue.cjs +0 -38
- package/dist/lib/components/runtime/views/home-chart.vue.d.ts +0 -23
- package/dist/lib/components/runtime/views/home-chart.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/super-page-dialog.vue.cjs +0 -23
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -40
- package/dist/lib/components/runtime/views/super-page-dialog.vue3.cjs +0 -3
- package/dist/lib/components/runtime/views/super-page.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -135
- package/dist/lib/components/runtime/views/super-page.vue2.cjs +0 -264
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/i18n/langs/cn.cjs +0 -2
- package/dist/lib/i18n/langs/en.cjs +0 -2
- package/dist/lib/index.cjs +0 -6
- package/dist/lib/index.d.ts +0 -16
- package/dist/lib/style.css +0 -996
- package/dist/umd/favicon.ico +0 -0
- package/dist/umd/index.full.min.js +0 -7429
- package/dist/umd/style.css +0 -996
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const e = require("../page-helper-util.cjs"), t = require("../common-util.cjs"), o = require("./chart-util.cjs"), a = require("../events/event-util.cjs");
|
|
4
|
-
exports.updateChartOption = function(i, s, l, r) {
|
|
5
|
-
if (!r || !r.result) return;
|
|
6
|
-
o.setDefaultGrid(l), l.tooltip || (l.tooltip = {}), a.handleChartEvent(i, s, "beforeUpdateChart", l, { resultData: r });
|
|
7
|
-
const u = r && r.result ? r.result : {};
|
|
8
|
-
let n = r && r.groupValue ? r.groupValue : void 0;
|
|
9
|
-
const c = s.serviceDataField;
|
|
10
|
-
let d = null;
|
|
11
|
-
c ? d = u[c] : u && (d = Array.isArray(u) ? u : [u]), d || (d = []), s.runtime.dataConfig.runtimeData = d;
|
|
12
|
-
let f = s.props ? s.props.groups : null;
|
|
13
|
-
if (f || (f = []), !n || 0 === n.length) {
|
|
14
|
-
n = [];
|
|
15
|
-
for (const e2 of f) n.push(e2.group);
|
|
16
|
-
}
|
|
17
|
-
const m = {}, p = [], h = [];
|
|
18
|
-
for (const e2 of f) m[e2.group] = e2.target, e2.target && !p.includes(e2.target) && (p.push(e2.target), n.includes(e2.group) && h.push(e2.target));
|
|
19
|
-
let y = s.props ? s.props.mulGroupShow : "";
|
|
20
|
-
y = "break" == y ? "\r\n" : " ";
|
|
21
|
-
for (const t2 of d) {
|
|
22
|
-
if (!t2) continue;
|
|
23
|
-
const a2 = [];
|
|
24
|
-
for (const o2 of n) {
|
|
25
|
-
const i3 = m[o2], s2 = e.getValueFromSource(t2, i3, void 0);
|
|
26
|
-
s2 && a2.push(s2);
|
|
27
|
-
}
|
|
28
|
-
const i2 = a2.join(y);
|
|
29
|
-
t2[o.CommonName.X_FIELD_NAME] = i2;
|
|
30
|
-
}
|
|
31
|
-
const g = s.items ? s.items : [], F = [], S = {}, v = [], D = {}, N = [], x = [], C = /* @__PURE__ */ new Set(), E = o.caculateFormulaValue(g, d, C);
|
|
32
|
-
for (const e2 of C) N.push(e2);
|
|
33
|
-
for (const e2 of g) {
|
|
34
|
-
const t2 = e2.props ? e2.props : {}, o2 = t2.yaxisSource, a2 = t2.yaxisField, i2 = t2.isCumulative;
|
|
35
|
-
let s2 = null;
|
|
36
|
-
if (!a2 || o2 && "variable" != o2) if ("formula" == o2) {
|
|
37
|
-
let o3 = t2.formula ? t2.formula : "";
|
|
38
|
-
for (const e3 in E) o3 = o3.replace(new RegExp(e3.replace("$", "\\$"), "g"), E[e3]);
|
|
39
|
-
s2 = { uuid: e2.uuid, type: "formula", formula: o3, data: [], dynamicDatas: [] };
|
|
40
|
-
} else s2 = { uuid: e2.uuid, type: "fixed", field: t2.yaxisFix, data: [], dynamicDatas: [] };
|
|
41
|
-
else s2 = { uuid: e2.uuid, type: "variable", field: a2, isCumulative: i2, data: [], dynamicDatas: [] }, a2 && !N.includes(a2) && N.push(a2), a2 && !x.includes(a2) && x.push(a2), i2 && !C.has(a2) && C.add(a2);
|
|
42
|
-
null != s2 && (F.push(s2), S[e2.uuid] = s2), t2.dynamicSeriesField && !v.includes(t2.dynamicSeriesField) && s2 && (s2.dynamicField = t2.dynamicSeriesField, s2.dynamicSeriesTitle = t2.dynamicSeriesTitle, s2.dynamicShowStack = t2.dynamicShowStack, v.push(t2.dynamicSeriesField), D[t2.dynamicSeriesField] = a2);
|
|
43
|
-
}
|
|
44
|
-
const V = {};
|
|
45
|
-
if (v.length > 0) {
|
|
46
|
-
const t2 = [], a2 = {};
|
|
47
|
-
for (const i2 of d) if (i2) for (const s2 of N) {
|
|
48
|
-
const l2 = i2[o.CommonName.X_FIELD_NAME];
|
|
49
|
-
let r2 = a2[l2];
|
|
50
|
-
if (!r2) {
|
|
51
|
-
r2 = {};
|
|
52
|
-
for (const e2 of p) r2[e2] = i2[e2];
|
|
53
|
-
r2[o.CommonName.X_FIELD_NAME] = i2[o.CommonName.X_FIELD_NAME], a2[l2] = r2, t2.push(r2);
|
|
54
|
-
}
|
|
55
|
-
let u2 = e.getValueFromSource(i2, s2, void 0);
|
|
56
|
-
if (!isNaN(u2)) {
|
|
57
|
-
const e2 = r2[s2];
|
|
58
|
-
isNaN || (u2 += e2), r2[s2] = u2;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
for (const t3 of v) {
|
|
62
|
-
const i2 = [];
|
|
63
|
-
for (const s2 of d) {
|
|
64
|
-
if (!s2) continue;
|
|
65
|
-
const l2 = a2[s2[o.CommonName.X_FIELD_NAME]];
|
|
66
|
-
if (!l2) continue;
|
|
67
|
-
let r2 = e.getValueFromSource(s2, t3, void 0);
|
|
68
|
-
r2 = null == r2 || null == r2 ? "" : r2, i2.includes(r2) || (i2.push(r2), x.push(r2), C.add(r2));
|
|
69
|
-
const u2 = D[t3];
|
|
70
|
-
if (void 0 !== u2) {
|
|
71
|
-
const t4 = e.getValueFromSource(s2, u2, void 0);
|
|
72
|
-
let o2 = l2[r2];
|
|
73
|
-
void 0 === o2 ? o2 = t4 : isNaN(t4) || (o2 += t4), l2[r2] = o2;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
V[t3] = i2;
|
|
77
|
-
}
|
|
78
|
-
d = t2;
|
|
79
|
-
}
|
|
80
|
-
o.sortDatas(i, s, d), d = o.limitDatas(i, s, d, p, x);
|
|
81
|
-
const b = [], A = {};
|
|
82
|
-
for (const t2 of d) if (t2) {
|
|
83
|
-
for (const o2 of C) {
|
|
84
|
-
const a2 = e.getValueFromSource(t2, o2, void 0);
|
|
85
|
-
let i2 = A[o2];
|
|
86
|
-
void 0 === a2 || isNaN(a2) || (void 0 === i2 ? i2 = a2 : i2 += a2), A[o2] = i2;
|
|
87
|
-
}
|
|
88
|
-
b.push(t2[o.CommonName.X_FIELD_NAME]);
|
|
89
|
-
for (const a2 of F) {
|
|
90
|
-
let s2 = a2.data;
|
|
91
|
-
const l2 = a2.dynamicDatas;
|
|
92
|
-
if (a2.dynamicField) {
|
|
93
|
-
let o2 = V[a2.dynamicField];
|
|
94
|
-
o2 = o2 || [];
|
|
95
|
-
for (let i2 = 0; i2 < o2.length; i2++) {
|
|
96
|
-
i2 >= l2.length && l2.push([]), s2 = l2[i2];
|
|
97
|
-
const r2 = o2[i2];
|
|
98
|
-
let u2 = e.getValueFromSource(t2, r2, void 0);
|
|
99
|
-
a2.isCumulative && (u2 = A[r2]), s2.push(u2);
|
|
100
|
-
}
|
|
101
|
-
} else if ("fixed" === a2.type) s2.push(a2.field);
|
|
102
|
-
else if ("variable" === a2.type) {
|
|
103
|
-
let o2 = e.getValueFromSource(t2, a2.field, void 0);
|
|
104
|
-
a2.isCumulative && (o2 = A[a2.field]), s2.push(o2);
|
|
105
|
-
} else if ("formula" === a2.type) {
|
|
106
|
-
const e2 = o.executeChartFormula(a2.formula, A, t2, i);
|
|
107
|
-
s2.push(e2);
|
|
108
|
-
} else s2.push(void 0);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
const _ = s.defaultSeries, I = t.deepCopy(null == _ ? [] : _), w = [];
|
|
112
|
-
for (const o2 of I) {
|
|
113
|
-
const a2 = S[o2.uuid];
|
|
114
|
-
if (a2.dynamicField) {
|
|
115
|
-
let s2 = V[a2.dynamicField];
|
|
116
|
-
s2 = s2 || [];
|
|
117
|
-
const l2 = a2.dynamicDatas ? a2.dynamicDatas : [];
|
|
118
|
-
for (let r2 = 0; r2 < s2.length; r2++) {
|
|
119
|
-
const u2 = s2[r2], n2 = t.deepCopy(o2);
|
|
120
|
-
if (a2.dynamicSeriesTitle) {
|
|
121
|
-
const t2 = a2.dynamicSeriesTitle.replace("${name}", u2);
|
|
122
|
-
n2.name = e.formatVariableValue(i, t2);
|
|
123
|
-
} else n2.name = u2;
|
|
124
|
-
n2.data = r2 < l2.length ? l2[r2] : [], "bar" == o2.type && a2.dynamicShowStack && (n2.stack = o2.uuid), w.push(n2);
|
|
125
|
-
}
|
|
126
|
-
} else o2.data = a2 ? a2.data : [], w.push(o2);
|
|
127
|
-
}
|
|
128
|
-
l.series = w;
|
|
129
|
-
const M = s.defaultXaxis, X = s.defaultYaxis;
|
|
130
|
-
if (l.isBar) {
|
|
131
|
-
if (X) for (const e2 of X) e2.data = b;
|
|
132
|
-
l.xAxis = M, l.yAxis = X;
|
|
133
|
-
} else M && M.length > 0 && (M[0].data = b), l.xAxis = M, l.yAxis = X;
|
|
134
|
-
o.formatToolboxI18n(l);
|
|
135
|
-
const j = s.props ? s.props.selGroupVariable : null;
|
|
136
|
-
!(s.props ? s.props.enableDrill : null) && j && (s.highlightInfos = [], e.setValueForVariableName(i.entity, j, null)), a.handleChartEvent(i, s, "afterUpdateChart", l, { resultData: r }), s.groupFields = h, s.cacheDatas = d, s.rawResult = r;
|
|
137
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
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,78 +0,0 @@
|
|
|
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, 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,52 +0,0 @@
|
|
|
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,43 +0,0 @@
|
|
|
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,244 +0,0 @@
|
|
|
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;
|