super-page-runtime 2.3.20-sit2 → 2.3.21-tmp1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +124 -133
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +26 -25
- package/dist/es/components/runtime/utils/events/standard-event.js +568 -584
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +11 -9
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -93
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +8 -8
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +34 -34
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +35 -34
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -3
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +17 -15
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +13 -22
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +76 -75
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +76 -76
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +6 -0
- package/dist/lib/assets/chart-themes/bar-theme.js +2 -0
- package/dist/lib/assets/chart-themes/gauge-theme.js +2 -0
- package/dist/lib/assets/chart-themes/pie-theme.js +2 -0
- package/dist/lib/assets/chart-themes/radar-theme.js +2 -0
- package/dist/lib/assets/chart-themes/scatter-theme.js +2 -0
- package/dist/lib/assets/file.png.js +2 -0
- package/dist/lib/assets/folder.png.js +2 -0
- package/dist/lib/components/runtime/utils/ai-chat-util.js +13 -0
- package/dist/lib/components/runtime/utils/anchor-util.js +62 -0
- package/dist/lib/components/runtime/utils/api/api-util.js +3 -0
- package/dist/lib/components/runtime/utils/api/page-expose-util.js +169 -0
- package/dist/lib/components/runtime/utils/assemblys-config.js +16 -0
- package/dist/lib/components/runtime/utils/barcode-util.js +10 -0
- package/dist/lib/components/runtime/utils/charts/chart-columnline-util.js +137 -0
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +34 -0
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +78 -0
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +52 -0
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +43 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.js +244 -0
- package/dist/lib/components/runtime/utils/common-util.js +91 -0
- package/dist/lib/components/runtime/utils/eventBus.js +3 -0
- package/dist/lib/components/runtime/utils/events/event-util.js +345 -0
- package/dist/lib/components/runtime/utils/events/print-label.js +97 -0
- package/dist/lib/components/runtime/utils/events/standard-event.js +1101 -0
- package/dist/lib/components/runtime/utils/events/validator-util.js +296 -0
- package/dist/lib/components/runtime/utils/form/date-shortcuts.js +34 -0
- package/dist/lib/components/runtime/utils/form/scan-util.js +90 -0
- package/dist/lib/components/runtime/utils/global-refs.js +42 -0
- package/dist/lib/components/runtime/utils/i18n-util.js +11 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +4 -0
- package/dist/lib/components/runtime/utils/page-helper-util.js +354 -0
- package/dist/lib/components/runtime/utils/page-init-util.js +244 -0
- package/dist/lib/components/runtime/utils/page-permission-util.js +26 -0
- package/dist/lib/components/runtime/utils/page-store.js +50 -0
- package/dist/lib/components/runtime/utils/store-util.js +11 -0
- package/dist/lib/components/runtime/utils/store.js +3 -0
- package/dist/lib/components/runtime/utils/table-utils.js +68 -0
- package/dist/lib/components/runtime/utils/tree-utils.js +54 -0
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +24 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +17 -0
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +35 -0
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +41 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +11 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +11 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +53 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +48 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +24 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +34 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +24 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +24 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.js +402 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.js +36 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +249 -0
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.js +16 -0
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +32 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.js +32 -0
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +19 -0
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +12 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.js +21 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +13 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +30 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +15 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +21 -0
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -0
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +15 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +27 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +79 -0
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +20 -0
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +15 -0
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +12 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +88 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +43 -0
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +59 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +382 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +322 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +81 -0
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +124 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +57 -0
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +35 -0
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +57 -0
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +91 -0
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +47 -0
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +20 -0
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +65 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +20 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +70 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +31 -0
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +26 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -0
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +75 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +188 -0
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +130 -0
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +11 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +29 -0
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +38 -0
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +20 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.js +73 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +132 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +23 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +23 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +34 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +17 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +20 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +19 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +14 -0
- package/dist/lib/components/runtime/views/home-chart.vue.js +38 -0
- package/dist/lib/components/runtime/views/home-chart.vue2.js +3 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +23 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue3.js +3 -0
- package/dist/lib/components/runtime/views/super-page.vue.js +5 -0
- package/dist/lib/components/runtime/views/super-page.vue2.js +264 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/i18n/langs/cn.js +2 -0
- package/dist/lib/i18n/langs/en.js +2 -0
- package/dist/lib/index.js +6 -0
- package/dist/lib/style.css +996 -0
- package/dist/umd/favicon.ico +0 -0
- package/dist/umd/index.full.min.js +7429 -0
- package/dist/umd/style.css +996 -0
- package/package.json +2 -2
- package/dist/es/components/runtime/utils/events/data-backfill-util.d.ts +0 -27
- package/dist/es/components/runtime/utils/events/data-backfill-util.js +0 -39
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const e = require("../../../../assets/chart-themes/bar-theme.js"), t = require("../../../../assets/chart-themes/gauge-theme.js"), r = require("../../../../assets/chart-themes/pie-theme.js"), o = require("../../../../assets/chart-themes/radar-theme.js"), s = require("../../../../assets/chart-themes/scatter-theme.js"), a = require("../page-init-util.js"), i = require("../page-helper-util.js"), n = require("agilebuilder-ui/src/utils/util"), l = require("../events/event-util.js");
|
|
4
|
+
var u = ((e2) => (e2.X_FIELD_NAME = "__x", e2.Y_TEMP_NAME = "__y", e2))(u || {});
|
|
5
|
+
function c(e2, t2, r2, o2, s2) {
|
|
6
|
+
return function(a2) {
|
|
7
|
+
let i2 = a2 == null ? void 0 : a2.value;
|
|
8
|
+
if (s2 && (i2 = a2), 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 s2 = t2.highlightInfos ? t2.highlightInfos : [], a2 = t2.cacheDatas ? t2.cacheDatas : [], n2 = [], l2 = [];
|
|
26
|
+
for (const e3 of s2) l2.includes(e3.dataIndex) || (l2.push(e3.dataIndex), e3.dataIndex < a2.length && n2.push(a2[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 = u, exports.caculateFormulaValue = function(e2, t2, r2) {
|
|
66
|
+
const o2 = {};
|
|
67
|
+
for (const s2 of e2) {
|
|
68
|
+
const e3 = s2.props ? s2.props : {};
|
|
69
|
+
if ("formula" === e3.yaxisSource) {
|
|
70
|
+
const s3 = i.getParamNames(e3.formula);
|
|
71
|
+
for (const e4 of s3) 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 s2 = o2[e3], a2 = "chart-pie" === t2.name ? "unselect" : "downplay";
|
|
89
|
+
r2.dispatchAction({ type: a2, seriesIndex: s2.seriesIndex, dataIndex: s2.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 s2 = i.getParamNames(e2);
|
|
96
|
+
for (const t3 of s2) {
|
|
97
|
+
let s3 = null;
|
|
98
|
+
s3 = 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"), s3);
|
|
99
|
+
}
|
|
100
|
+
e2.includes("return ") || (e2 = "return " + e2);
|
|
101
|
+
const a2 = new Function("params", e2);
|
|
102
|
+
return l.appendDefaultMethods(a2, o2), a2({ 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], s2 = o2.width + ":" + o2.height;
|
|
108
|
+
return { isTable: false, fileContent: o2.toDataURL(), fileSize: s2, 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(a2, i2 = "bar") {
|
|
116
|
+
return "bar" === i2 ? e[a2] : "gauge" === i2 ? t[a2] : "pie" === i2 ? r[a2] : "radar" === i2 ? o[a2] : "scatter" === i2 ? s[a2] : e[a2];
|
|
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 = c, exports.getSumValue = h, exports.initChartOption = function(e2, t2) {
|
|
120
|
+
if (!t2) return;
|
|
121
|
+
if (t2.tooltipFormatterArgs && (t2.tooltip || (t2.tooltip = {}), t2.tooltip.valueFormatter = c.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 = c.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 s2 = t2.yAxis;
|
|
131
|
+
if (s2) for (const e3 of s2) 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 = s2;
|
|
137
|
+
}, exports.limitDatas = function(e2, t2, r2, o2, s2) {
|
|
138
|
+
if (!r2) return r2;
|
|
139
|
+
const a2 = t2.props ? t2.props : {};
|
|
140
|
+
if (!a2.limitQuantity) return r2;
|
|
141
|
+
let n2 = null;
|
|
142
|
+
if (a2.itemNumVariable ? (n2 = i.formatVariableValue(e2, a2.itemNumVariable), n2 = parseInt(n2)) : n2 = a2.itemNumFix ? a2.itemNumFix : 10, null == n2 || null == n2 || isNaN(n2)) return r2;
|
|
143
|
+
if (r2.length < n2) return r2;
|
|
144
|
+
const l2 = a2.overItemAlias, u2 = [], c2 = {};
|
|
145
|
+
o2 = o2 || [], s2 = s2 || [];
|
|
146
|
+
for (let e3 = 0; e3 < r2.length; e3++) {
|
|
147
|
+
const t3 = r2[e3];
|
|
148
|
+
if (e3 < n2) u2.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, c2[e4] || (c2[e4] = []);
|
|
155
|
+
const o3 = c2[e4];
|
|
156
|
+
o3.includes(r3) || o3.push(r3);
|
|
157
|
+
}
|
|
158
|
+
for (const e4 of s2) {
|
|
159
|
+
if (!e4) continue;
|
|
160
|
+
const r3 = i.getValueFromSource(t3, e4, void 0);
|
|
161
|
+
if (isNaN(r3)) continue;
|
|
162
|
+
const o3 = c2[e4];
|
|
163
|
+
isNaN(o3) ? c2[e4] = r3 : c2[e4] = r3 + o3;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return l2 && (c2.__x = l2, u2.push(c2)), u2;
|
|
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(s2) {
|
|
172
|
+
let a2 = t2.highlightInfos ? t2.highlightInfos : [], i2 = -1;
|
|
173
|
+
if (a2) {
|
|
174
|
+
const e3 = [];
|
|
175
|
+
for (let n2 = 0; n2 < a2.length; n2++) {
|
|
176
|
+
const l2 = a2[n2], u2 = l2.seriesIndex === s2.seriesIndex && l2.dataIndex === s2.dataIndex;
|
|
177
|
+
if (u2 || !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
|
+
u2 && (i2 = n2);
|
|
184
|
+
}
|
|
185
|
+
a2 = 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: s2.seriesIndex, dataIndex: s2.dataIndex });
|
|
191
|
+
}
|
|
192
|
+
a2.push({ seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
|
|
193
|
+
}
|
|
194
|
+
t2.highlightInfos = a2, 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 s2 = 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
|
+
s2 = 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 (s2 && e2) {
|
|
215
|
+
for (const r3 of e2) if (r3.prop && r3.value) {
|
|
216
|
+
const e3 = a.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 : [], s2 = t2.props ? t2.props.orderByTarget : "";
|
|
222
|
+
let a2 = null;
|
|
223
|
+
if ("x" == s2 || "X" == s2) a2 = "__x";
|
|
224
|
+
else if (s2) {
|
|
225
|
+
for (const e3 of o2) if (e3.uuid == s2) {
|
|
226
|
+
const t3 = e3.props ? e3.props : {}, r3 = t3.yaxisSource, o3 = t3.yaxisField;
|
|
227
|
+
if (o3 && (!r3 || "variable" == r3)) {
|
|
228
|
+
a2 = o3;
|
|
229
|
+
break;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
if (!a2) 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, a2, void 0), o3 = i.getValueFromSource(t3, a2, void 0);
|
|
242
|
+
return "desc" === l2 ? o3 - r3 : r3 - o3;
|
|
243
|
+
});
|
|
244
|
+
}, exports.updateClickVariablesForSelected = f;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const e = require("agilebuilder-ui/src/utils/common-util"), t = require("agilebuilder-ui/src/utils/util"), r = require("../views/assemblys/chart/table/chart-table-util.js"), n = require("./events/event-util.js");
|
|
4
|
+
function o(t2, r2) {
|
|
5
|
+
if (r2) return t2;
|
|
6
|
+
{
|
|
7
|
+
const { baseURL: r3, projectModel: n2 } = window.$vueApp.config.globalProperties;
|
|
8
|
+
let o2 = r3;
|
|
9
|
+
return "developing.model" === n2 || t2 && (o2 = e.getSystemBackendUrl(t2)), o2;
|
|
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 = o, 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, n2) {
|
|
32
|
+
let i = e3;
|
|
33
|
+
if (e3 && r2 && !function(e4) {
|
|
34
|
+
return 0 === e4.indexOf("http:") || 0 === e4.indexOf("https:");
|
|
35
|
+
}(e3)) {
|
|
36
|
+
i = o(r2, n2) + "/" + 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(e3, o2, i) {
|
|
59
|
+
if (!e3 || 0 === e3.length) return e3;
|
|
60
|
+
let s = e3;
|
|
61
|
+
if (Array.isArray(e3)) {
|
|
62
|
+
e3[0].templates && (s = function(e4, t2, o3) {
|
|
63
|
+
const i2 = [];
|
|
64
|
+
return e4.forEach((e5) => {
|
|
65
|
+
let s2 = true;
|
|
66
|
+
if (e5.scopeFunc) {
|
|
67
|
+
const r2 = n.getCustomFunc(t2, e5.scopeFunc);
|
|
68
|
+
r2 && (s2 = r2.apply(r2, [{ pageContext: t2, configureObj: o3, template: e5 }]));
|
|
69
|
+
} else e5.conditions && e5.conditions.length > 0 && (s2 = r.ExpressionEvaluator.evaluate(t2, e5.conditions));
|
|
70
|
+
false !== s2 && e5.templates.forEach((e6) => {
|
|
71
|
+
i2.push({ templateUuid: e6.templateUuid, templateName: e6.templateName });
|
|
72
|
+
});
|
|
73
|
+
}), i2;
|
|
74
|
+
}(e3, o2, i));
|
|
75
|
+
const a = t.getLanguageWithLocale(), u = [], l = [], p = "~-~-";
|
|
76
|
+
return s.forEach((e4) => {
|
|
77
|
+
const t2 = e4.templateName;
|
|
78
|
+
if (t2.indexOf(p) > 0) {
|
|
79
|
+
const r2 = t2.substring(0, t2.indexOf(p)), n2 = t2.substring(t2.indexOf(p) + p.length, t2.lastIndexOf(p)), o3 = t2.substring(t2.lastIndexOf(p) + p.length);
|
|
80
|
+
a === n2 && l.indexOf(r2) < 0 && (u.push({ templateUuid: e4.templateUuid, templateName: o3 }), l.push(r2));
|
|
81
|
+
} else u.push(e4);
|
|
82
|
+
}), u;
|
|
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
|
+
};
|