super-page-runtime 2.3.46 → 2.3.47-sit2
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 +136 -136
- package/dist/es/components/runtime/utils/events/event-util.js +145 -137
- package/dist/es/components/runtime/utils/events/print-label.js +33 -34
- package/dist/es/components/runtime/utils/events/standard-event.js +33 -33
- package/dist/es/components/runtime/utils/events/validator-util.js +260 -241
- package/dist/es/components/runtime/utils/page-init-util.js +45 -47
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/{button-runtime.vue2.js → button-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button-group/{buttongroup-runtime.vue2.js → buttongroup-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/dropdown/{dropdown-runtime.vue2.js → dropdown-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/{exportpdf-runtime.vue2.js → exportpdf-runtime2.vue.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/{printlabel-runtime.vue2.js → printlabel-runtime2.vue.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/{column-line-runtime.vue2.js → column-line-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +7 -9
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/{common-homepage-search.vue2.js → common-homepage-search2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +9 -9
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/{gauge-runtime.vue2.js → gauge-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/{pie-runtime.vue2.js → pie-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/{radar-runtime.vue2.js → radar-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/{scatter-runtime.vue2.js → scatter-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +99 -104
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/{table-runtime.vue2.js → table-runtime2.vue.js} +9 -9
- 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 +9 -11
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/{card-runtime.vue2.js → card-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/collapse/{collapse-runtime.vue2.js → collapse-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/container/{container-runtime.vue2.js → container-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/{FixedBox.vue2.js → FixedBox2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/{YxAffix.vue2.js → YxAffix2.vue.js} +2 -4
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/{flex-runtime.vue2.js → flex-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/form/{form-runtime.vue2.js → form-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/iframe/{iframe-runtime.vue2.js → iframe-runtime2.vue.js} +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.js +96 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tools/{tools-runtime.vue2.js → tools-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/bar-code/{barcode-runtime.vue2.js → barcode-runtime2.vue.js} +9 -11
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/{table-runtime.vue2.js → table-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.js +135 -0
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/checkbox/{checkbox-runtime.vue2.js → checkbox-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/{custom-runtime.vue2.js → custom-runtime2.vue.js} +4 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.js +102 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/{depttree-runtime.vue2.js → depttree-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/divider/{divider-runtime.vue2.js → divider-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/file-upload/{fileupload-runtime.vue2.js → fileupload-runtime2.vue.js} +5 -7
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/image-upload/{imageupload-runtime.vue2.js → imageupload-runtime2.vue.js} +4 -5
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-number/{input-number-runtime.vue2.js → input-number-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.js +80 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/{label-runtime.vue2.js → label-runtime2.vue.js} +3 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/link/{link-runtime.vue2.js → link-runtime2.vue.js} +6 -8
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/{placeholder-runtime.vue2.js → placeholder-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/radio/{radio-runtime.vue2.js → radio-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.js +218 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/{select-runtime.vue2.js → select-runtime2.vue.js} +7 -8
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/{separatelabel-runtime.vue2.js → separatelabel-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/{switch-runtime.vue2.js → switch-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/tag/{tag-runtime.vue2.js → tag-runtime2.vue.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/{textarea-runtime.vue2.js → textarea-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +10 -12
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.js +56 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.js +29 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.js +45 -0
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/{pictureflow-runtime.vue2.js → pictureflow-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/{textflow-runtime.vue2.js → textflow-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/{workflowbutton-runtime.vue2.js → workflowbutton-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/{workflownode-runtime.vue2.js → workflownode-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/home-chart.vue.js +8 -8
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +16 -16
- package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/{super-page.vue2.js → super-page2.vue.js} +98 -99
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +85 -85
- package/package.json +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -96
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +0 -134
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -102
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -83
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -218
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +0 -55
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +0 -28
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +0 -45
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header-breadcrumb.vue2.js → common-chart-header-breadcrumb2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header-group.vue2.js → common-chart-header-group2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header.vue2.js → common-chart-header2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{home-chart-condition-render.vue2.js → home-chart-condition-render2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{group-column-item.vue2.js → group-column-item2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{group-column.vue2.js → group-column2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{normal-column.vue2.js → normal-column2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{table-pageination.vue2.js → table-pageination2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{event-call-component.vue2.js → event-call-component2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{export-form-report-dialog.vue2.js → export-form-report-dialog2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{file-task-notice.vue2.js → file-task-notice2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{format-file-task-notice-message.vue2.js → format-file-task-notice-message2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-signer-dialog.vue2.js → remove-signer-dialog2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-signer-table.vue2.js → remove-signer-table2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-transactor-dialog.vue2.js → remove-transactor-dialog2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{save-chart-condition-dialog.vue2.js → save-chart-condition-dialog2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{task-informition-dialog.vue2.js → task-informition-dialog2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/data/table/{main-table-runtime.vue2.js → main-table-runtime2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/data/table/{sub-table-runtime.vue2.js → sub-table-runtime2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{error-render.vue2.js → error-render2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/form/common/{title-suffix-element.vue2.js → title-suffix-element2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{home-chart-render.vue2.js → home-chart-render2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{object-render.vue2.js → object-render2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{page-bottom.vue2.js → page-bottom2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/{home-chart.vue2.js → home-chart2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/{super-page-dialog.vue3.js → super-page-dialog3.vue.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import e from "async-validator";
|
|
2
2
|
import { ElMessage as t } from "element-plus";
|
|
3
|
-
import { getComponentRefByCode as
|
|
4
|
-
import { getI18n as
|
|
5
|
-
import { getAdditionalParamMap as
|
|
3
|
+
import { getComponentRefByCode as n, getComponentRef as r, getAllComponentRefs as s } from "../global-refs.js";
|
|
4
|
+
import { getI18n as i } from "agilebuilder-ui/src/utils/util";
|
|
5
|
+
import { getAdditionalParamMap as o } from "./standard-event.js";
|
|
6
6
|
import { isPromise as l } from "agilebuilder-ui/src/utils/common-util";
|
|
7
7
|
import { parseSubTablePermissionCondition as a } from "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
8
|
-
import { isWorkflowPage as u, getListCode as
|
|
9
|
-
import { scrollIntoComponentWithCode as
|
|
8
|
+
import { isWorkflowPage as u, getListCode as f } from "../common-util.js";
|
|
9
|
+
import { scrollIntoComponentWithCode as c, scrollIntoComponentWithUuid as d } from "../anchor-util.js";
|
|
10
10
|
const m = ["downloadTemplate", "back", "exportForm", "exportPDF", "lineEditCreate", "workflowSave"];
|
|
11
11
|
function p(e2, t2 = /* @__PURE__ */ new WeakMap()) {
|
|
12
12
|
if ("function" == typeof structuredClone) try {
|
|
@@ -14,316 +14,313 @@ function p(e2, t2 = /* @__PURE__ */ new WeakMap()) {
|
|
|
14
14
|
} catch (e3) {
|
|
15
15
|
}
|
|
16
16
|
if (null === e2 || "object" != typeof e2) return e2;
|
|
17
|
-
const
|
|
18
|
-
if (t2.has(
|
|
17
|
+
const n2 = e2;
|
|
18
|
+
if (t2.has(n2)) return t2.get(n2);
|
|
19
19
|
if (Array.isArray(e2)) {
|
|
20
|
-
const
|
|
21
|
-
return t2.set(
|
|
22
|
-
n3
|
|
23
|
-
}),
|
|
20
|
+
const r3 = [];
|
|
21
|
+
return t2.set(n2, r3), e2.forEach((e3, n3) => {
|
|
22
|
+
r3[n3] = p(e3, t2);
|
|
23
|
+
}), r3;
|
|
24
24
|
}
|
|
25
25
|
if (e2 instanceof Date) return new Date(e2.getTime());
|
|
26
26
|
if (e2 instanceof RegExp) return new RegExp(e2.source, e2.flags);
|
|
27
27
|
if (e2 instanceof Map) {
|
|
28
|
-
const
|
|
29
|
-
return t2.set(
|
|
30
|
-
|
|
31
|
-
}),
|
|
28
|
+
const r3 = /* @__PURE__ */ new Map();
|
|
29
|
+
return t2.set(n2, r3), e2.forEach((e3, n3) => {
|
|
30
|
+
r3.set(p(n3, t2), p(e3, t2));
|
|
31
|
+
}), r3;
|
|
32
32
|
}
|
|
33
33
|
if (e2 instanceof Set) {
|
|
34
|
-
const
|
|
35
|
-
return t2.set(
|
|
36
|
-
|
|
37
|
-
}),
|
|
34
|
+
const r3 = /* @__PURE__ */ new Set();
|
|
35
|
+
return t2.set(n2, r3), e2.forEach((e3) => {
|
|
36
|
+
r3.add(p(e3, t2));
|
|
37
|
+
}), r3;
|
|
38
38
|
}
|
|
39
|
-
const
|
|
40
|
-
return t2.set(
|
|
41
|
-
|
|
42
|
-
}),
|
|
39
|
+
const r2 = {};
|
|
40
|
+
return t2.set(n2, r2), Object.keys(e2).forEach((n3) => {
|
|
41
|
+
r2[n3] = p(e2[n3], t2);
|
|
42
|
+
}), r2;
|
|
43
43
|
}
|
|
44
|
-
function g(e2, t2,
|
|
45
|
-
const
|
|
44
|
+
function g(e2, t2, n2) {
|
|
45
|
+
const r2 = {};
|
|
46
46
|
t2 || (t2 = {});
|
|
47
|
-
let
|
|
48
|
-
const
|
|
49
|
-
return
|
|
50
|
-
let
|
|
51
|
-
if (
|
|
52
|
-
let
|
|
53
|
-
for (let
|
|
54
|
-
if (t3[
|
|
47
|
+
let s2 = 0;
|
|
48
|
+
const i2 = e2.split(".");
|
|
49
|
+
return i2.forEach((e3) => {
|
|
50
|
+
let o2;
|
|
51
|
+
if (s2 === i2.length - 1) o2 = function(e4, t3, n3) {
|
|
52
|
+
let r3;
|
|
53
|
+
for (let s3 = 0; s3 < t3.length; s3++) if (r3 = 0 === s3 ? e4[t3[s3]] : r3.fields[t3[s3]], s3 !== t3.length - 1) {
|
|
54
|
+
if (t3[s3 + 1] === n3) break;
|
|
55
55
|
}
|
|
56
|
-
return
|
|
57
|
-
}(
|
|
56
|
+
return r3;
|
|
57
|
+
}(r2, i2, e3), o2.fields[e3] = n2;
|
|
58
58
|
else {
|
|
59
|
-
let
|
|
60
|
-
0 ===
|
|
61
|
-
let
|
|
62
|
-
for (let
|
|
63
|
-
const
|
|
64
|
-
if (
|
|
59
|
+
let n3;
|
|
60
|
+
0 === s2 ? o2 = t2 : (n3 = function(e4, t3, n4) {
|
|
61
|
+
let r3;
|
|
62
|
+
for (let s3 = 0; s3 < t3.length; s3++) {
|
|
63
|
+
const i3 = t3[s3];
|
|
64
|
+
if (r3 = 0 === s3 ? e4[i3] : r3.fields[t3[s3]], i3 === n4) break;
|
|
65
65
|
}
|
|
66
|
-
return
|
|
67
|
-
}(
|
|
66
|
+
return r3;
|
|
67
|
+
}(r2, i2, i2[s2 - 1]), o2 = n3.fields), o2[e3] || (o2[e3] = { type: "object", required: true, fields: {} }), 0 === s2 ? r2[e3] = o2[e3] : n3.fields[e3] = o2[e3];
|
|
68
68
|
}
|
|
69
|
-
|
|
70
|
-
}),
|
|
69
|
+
s2++;
|
|
70
|
+
}), r2;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
return y(e2, t2,
|
|
72
|
+
function b(e2, t2, n2, r2, s2, i2) {
|
|
73
|
+
return y(e2, t2, n2, r2, true, s2, i2);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function h(e2) {
|
|
76
76
|
if (e2) return Object.keys(e2).forEach((t2) => {
|
|
77
77
|
if (t2.indexOf(".") >= 0) {
|
|
78
|
-
let
|
|
79
|
-
|
|
78
|
+
let n2 = [];
|
|
79
|
+
n2 = t2.split("."), e2[n2[0]] ? e2[n2[0]].fields[n2[1]] = e2[t2][0] : (e2[n2[0]] = new Object(), e2[n2[0]].fields = new Object(), e2[n2[0]].fields[n2[1]] = e2[t2][0], e2[n2[0]].type = "object"), delete e2[t2];
|
|
80
80
|
}
|
|
81
81
|
}), e2;
|
|
82
82
|
}
|
|
83
|
-
function y(
|
|
83
|
+
function y(r2, s2, o2, l2, a2, u2, f2) {
|
|
84
84
|
var _a;
|
|
85
|
-
let d2 =
|
|
86
|
-
if (
|
|
87
|
-
const m2 = ((_a =
|
|
85
|
+
let d2 = h(s2);
|
|
86
|
+
if (s2 && null !== s2 || !o2 || (d2 = {}), !d2 || 0 === Object.keys(d2).length) return r2.validateErrorField = "", true;
|
|
87
|
+
const m2 = ((_a = f2.props) == null ? void 0 : _a.highlightAllRequiredField) || false;
|
|
88
88
|
let p2;
|
|
89
|
-
return new e(d2).validate(
|
|
89
|
+
return new e(d2).validate(r2, { first: !m2 }, (e2, g2) => {
|
|
90
90
|
if (m2) {
|
|
91
91
|
if (p2 = e2 || true, true === p2 && true === a2 && d2) {
|
|
92
92
|
const e3 = /[A-Z]+/, t2 = Object.keys(d2);
|
|
93
|
-
if (t2.some((t3) => e3.test(t3) && void 0 !==
|
|
94
|
-
const
|
|
93
|
+
if (t2.some((t3) => e3.test(t3) && void 0 !== r2[t3.toLowerCase()])) {
|
|
94
|
+
const n2 = JSON.parse(JSON.stringify(r2));
|
|
95
95
|
t2.forEach((t3) => {
|
|
96
|
-
e3.test(t3) && void 0 !==
|
|
97
|
-
}), p2 = y(
|
|
96
|
+
e3.test(t3) && void 0 !== r2[t3.toLowerCase()] && (n2[t3.toUpperCase()] = r2[t3.toLowerCase()], delete n2[t3.toLowerCase()]);
|
|
97
|
+
}), p2 = y(n2, s2, o2, l2, false, u2, f2);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
true !== p2 && t({ showClose: true, message:
|
|
100
|
+
true !== p2 && t({ showClose: true, message: i().t("superPageRuntimeMessage.pleaseInputRequiredInfo"), type: "warning" });
|
|
101
101
|
} else {
|
|
102
|
-
let
|
|
102
|
+
let i2;
|
|
103
103
|
if (e2) {
|
|
104
|
-
p2 = e2[0].message,
|
|
105
|
-
const
|
|
106
|
-
if (
|
|
107
|
-
|
|
104
|
+
p2 = e2[0].message, i2 = e2[0].field, t({ message: p2, showClose: true, type: "warning", duration: 3e3 });
|
|
105
|
+
const r3 = n(f2, i2);
|
|
106
|
+
if (r3 && r3.addRequiredClass) {
|
|
107
|
+
r3.addRequiredClass();
|
|
108
108
|
try {
|
|
109
|
-
|
|
109
|
+
c(f2, i2);
|
|
110
110
|
} catch (e3) {
|
|
111
|
-
console.error("滚动失败", e3);
|
|
112
111
|
}
|
|
113
112
|
}
|
|
114
113
|
} else p2 = true;
|
|
115
|
-
if (
|
|
116
|
-
if (/[A-Z]+/.test(
|
|
117
|
-
const e3 = JSON.parse(JSON.stringify(
|
|
118
|
-
e3[
|
|
114
|
+
if (i2 && true === a2) {
|
|
115
|
+
if (/[A-Z]+/.test(i2) && void 0 !== r2[i2.toLowerCase()]) {
|
|
116
|
+
const e3 = JSON.parse(JSON.stringify(r2));
|
|
117
|
+
e3[i2.toUpperCase()] = r2[i2.toLowerCase()], delete e3[i2.toLowerCase()], p2 = y(e3, s2, o2, l2, false, u2, f2);
|
|
119
118
|
}
|
|
120
119
|
}
|
|
121
120
|
}
|
|
122
121
|
}), p2;
|
|
123
122
|
}
|
|
124
|
-
function w(e2,
|
|
125
|
-
if (
|
|
126
|
-
if (J(
|
|
123
|
+
function w(e2, r2, s2, l2) {
|
|
124
|
+
if (s2) {
|
|
125
|
+
if (J(s2.isStandard, s2.event)) return new Promise((e3, t2) => {
|
|
127
126
|
e3(true);
|
|
128
127
|
});
|
|
129
128
|
}
|
|
130
|
-
const
|
|
131
|
-
return null != m2 && (l2 = m2), null == l2 && (l2 = false), function(e3,
|
|
129
|
+
const f2 = e2.entity.data, c2 = { ...e2.entity.page, ...f2 }, d2 = e2.rules, m2 = r2.props.base ? r2.props.base.isEnableRequired : null;
|
|
130
|
+
return null != m2 && (l2 = m2), null == l2 && (l2 = false), function(e3, r3, s3, l3) {
|
|
132
131
|
if (e3) {
|
|
133
|
-
return u(l3) ? function(e4,
|
|
132
|
+
return u(l3) ? function(e4, r4, s4) {
|
|
134
133
|
return new Promise((l4, u2) => {
|
|
135
134
|
var _a;
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
if (
|
|
139
|
-
let
|
|
140
|
-
const u3 =
|
|
141
|
-
let
|
|
135
|
+
const f3 = o(r4), c3 = r4.entity.context, d3 = r4.entity.task, m3 = true, g2 = r4.subTablePageInfo, b2 = ((_a = r4.props) == null ? void 0 : _a.highlightAllRequiredField) || false;
|
|
136
|
+
N(e4, r4, s4).then((s5) => {
|
|
137
|
+
if (s5) {
|
|
138
|
+
let o2 = s5;
|
|
139
|
+
const u3 = r4.workflowRules;
|
|
140
|
+
let h2 = null, y2 = null;
|
|
142
141
|
if (u3) {
|
|
143
|
-
if (!function(e5,
|
|
142
|
+
if (!function(e5, r5) {
|
|
144
143
|
var _a2, _b, _c, _d;
|
|
145
144
|
if (!e5.actionPermissions) return true;
|
|
146
|
-
const
|
|
147
|
-
for (let
|
|
148
|
-
const l5 =
|
|
145
|
+
const s7 = Object.keys(e5.actionPermissions);
|
|
146
|
+
for (let o3 = 0; o3 < s7.length; o3++) {
|
|
147
|
+
const l5 = s7[o3], u4 = e5.actionPermissions[l5];
|
|
149
148
|
if (u4 && u4.notEmpty) {
|
|
150
149
|
if ((_a2 = e5.hiddenNotValidatorCodes) == null ? void 0 : _a2.has(l5)) continue;
|
|
151
|
-
let
|
|
152
|
-
if (
|
|
153
|
-
const
|
|
154
|
-
if (!
|
|
155
|
-
const
|
|
150
|
+
let s8 = false;
|
|
151
|
+
if (r5[l5] ? Array.isArray(r5[l5]) && 0 === r5[l5].length && (s8 = true) : s8 = true, s8) {
|
|
152
|
+
const s9 = n(e5, l5);
|
|
153
|
+
if (!s9) return true;
|
|
154
|
+
const o4 = s9.getConfigure();
|
|
156
155
|
if ((_b = u4.notEmptyCondition) == null ? void 0 : _b.parentCondition) {
|
|
157
|
-
if (false === a(u4.notEmptyCondition.parentCondition.replaceAll("${field[", "${parent["), e5.dataTypeMaps,
|
|
156
|
+
if (false === a(u4.notEmptyCondition.parentCondition.replaceAll("${field[", "${parent["), e5.dataTypeMaps, r5, {}, (_c = e5.entity) == null ? void 0 : _c.request, (_d = e5.entity) == null ? void 0 : _d.task, e5.contextParam)) return true;
|
|
158
157
|
}
|
|
159
|
-
return t({ showClose: true, message:
|
|
158
|
+
return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: o4.title ? o4.title : l5 }), type: "warning" }), false;
|
|
160
159
|
}
|
|
161
160
|
}
|
|
162
161
|
}
|
|
163
162
|
return true;
|
|
164
|
-
}(
|
|
165
|
-
const
|
|
166
|
-
|
|
167
|
-
const
|
|
163
|
+
}(r4, e4)) return void l4(false);
|
|
164
|
+
const s6 = true;
|
|
165
|
+
h2 = function(e5, t2) {
|
|
166
|
+
const n2 = p(e5);
|
|
168
167
|
t2 && t2.size > 0 && t2.forEach((e6) => {
|
|
169
|
-
delete
|
|
168
|
+
delete n2[e6], n2.subRules && delete n2.subRules[e6], n2.rules && delete n2.rules[e6];
|
|
170
169
|
});
|
|
171
|
-
|
|
172
|
-
return
|
|
173
|
-
}(u3,
|
|
174
|
-
} else
|
|
175
|
-
true !==
|
|
176
|
-
} else u2(new Error(
|
|
170
|
+
n2.subRules && (Object.keys(n2.subRules).length > 0 ? n2.totalSubRules || (n2.totalSubRules = {}) : delete n2.subRules);
|
|
171
|
+
return n2;
|
|
172
|
+
}(u3, r4.hiddenNotValidatorCodes), y2 = window.$vueApp.config.globalProperties.$formValidator(e4, h2, m3, f3, d3, c3, g2, s6, { returnAllErrors: b2 }), o2 = y2 && Array.isArray(y2) ? 1 === y2.length && y2[0].message ? y2[0].message : 0 === y2.length || i().t("superPageRuntimeMessage.pleaseInputRequiredInfo") : !y2 || y2.msg;
|
|
173
|
+
} else o2 = true;
|
|
174
|
+
true !== o2 ? (t({ showClose: true, message: o2 + "", type: "warning" }), y2 && Array.isArray(y2) && y2.length > 0 ? (v(r4, y2), k(r4, P(r4, y2))) : y2.listCode ? (R(r4, y2), C(r4, y2)) : (R(r4, y2), E(r4, y2.field)), l4(false)) : (Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, l4(e4));
|
|
175
|
+
} else u2(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
177
176
|
}).catch((e5) => {
|
|
178
177
|
u2(e5);
|
|
179
178
|
});
|
|
180
179
|
});
|
|
181
|
-
}(
|
|
182
|
-
return new Promise((
|
|
183
|
-
|
|
180
|
+
}(r3, l3, s3) : function(e4, t2, n2) {
|
|
181
|
+
return new Promise((r4, s4) => {
|
|
182
|
+
N(e4, t2, n2).then((t3) => {
|
|
184
183
|
if (t3) {
|
|
185
184
|
const t4 = JSON.parse(JSON.stringify(e4));
|
|
186
|
-
Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField,
|
|
187
|
-
} else
|
|
185
|
+
Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField, r4(t4);
|
|
186
|
+
} else r4(false);
|
|
188
187
|
}).catch((e5) => {
|
|
189
|
-
|
|
188
|
+
s4(e5);
|
|
190
189
|
});
|
|
191
190
|
});
|
|
192
|
-
}(
|
|
191
|
+
}(r3, l3, s3);
|
|
193
192
|
}
|
|
194
193
|
return new Promise((e4, t2) => {
|
|
195
194
|
e4(true);
|
|
196
195
|
});
|
|
197
|
-
}(l2,
|
|
196
|
+
}(l2, c2, d2, e2);
|
|
198
197
|
}
|
|
199
198
|
function R(e2, t2) {
|
|
200
199
|
if (t2.listCode) {
|
|
201
|
-
const
|
|
202
|
-
(
|
|
200
|
+
const r2 = n(e2, t2.listCode);
|
|
201
|
+
(r2 == null ? void 0 : r2.addRequiredClass) && r2.addRequiredClass(t2.field, t2.rowIndex, t2.pageNum);
|
|
203
202
|
} else if (t2.field) {
|
|
204
|
-
const
|
|
205
|
-
(
|
|
203
|
+
const r2 = n(e2, t2.field);
|
|
204
|
+
(r2 == null ? void 0 : r2.addRequiredClass) && r2.addRequiredClass();
|
|
206
205
|
}
|
|
207
206
|
}
|
|
208
|
-
function
|
|
207
|
+
function v(e2, t2) {
|
|
209
208
|
t2.forEach((t3) => R(e2, t3));
|
|
210
209
|
}
|
|
211
|
-
function
|
|
210
|
+
function C(e2, t2) {
|
|
212
211
|
try {
|
|
213
|
-
|
|
214
|
-
const
|
|
215
|
-
(
|
|
212
|
+
c(e2, t2.listCode);
|
|
213
|
+
const r2 = n(e2, t2.listCode);
|
|
214
|
+
(r2 == null ? void 0 : r2.scrollToCell) && r2.scrollToCell({ fieldName: t2.field, rowIndex: t2.rowIndex, pageNum: t2.pageNum });
|
|
216
215
|
} catch (e3) {
|
|
217
|
-
console.error("滚动到验证失败的子表字段失败,可能是表格组件版本较低没有scrollToCell方法", e3);
|
|
218
216
|
}
|
|
219
217
|
}
|
|
220
|
-
function
|
|
218
|
+
function E(e2, t2) {
|
|
221
219
|
try {
|
|
222
|
-
|
|
220
|
+
c(e2, t2);
|
|
223
221
|
} catch (e3) {
|
|
224
|
-
console.error("滚动失败", e3);
|
|
225
222
|
}
|
|
226
223
|
}
|
|
227
224
|
function P(e2, t2) {
|
|
228
|
-
let
|
|
225
|
+
let r2 = null, s2 = 1 / 0;
|
|
229
226
|
return t2.forEach((t3) => {
|
|
230
|
-
const
|
|
231
|
-
if (!
|
|
232
|
-
const
|
|
227
|
+
const i2 = t3.listCode || t3.field;
|
|
228
|
+
if (!i2) return;
|
|
229
|
+
const o2 = n(e2, i2), l2 = (o2 == null ? void 0 : o2.$el) || o2;
|
|
233
230
|
if (l2 == null ? void 0 : l2.getBoundingClientRect) {
|
|
234
231
|
const e3 = l2.getBoundingClientRect();
|
|
235
|
-
e3.top <
|
|
232
|
+
e3.top < s2 && (s2 = e3.top, r2 = t3);
|
|
236
233
|
}
|
|
237
|
-
}),
|
|
234
|
+
}), r2;
|
|
238
235
|
}
|
|
239
236
|
function k(e2, t2) {
|
|
240
|
-
t2 && (t2.listCode ?
|
|
237
|
+
t2 && (t2.listCode ? C(e2, t2) : t2.field && E(e2, t2.field));
|
|
241
238
|
}
|
|
242
239
|
function O(e2) {
|
|
243
|
-
return new Promise((t2,
|
|
244
|
-
const
|
|
245
|
-
|
|
246
|
-
const
|
|
247
|
-
|
|
248
|
-
}),
|
|
240
|
+
return new Promise((t2, n2) => {
|
|
241
|
+
const s2 = [], i2 = e2.customValidatorUuids;
|
|
242
|
+
i2 && i2.forEach((t3) => {
|
|
243
|
+
const n3 = r(e2, t3);
|
|
244
|
+
n3 && n3.validator && s2.push(n3.validator());
|
|
245
|
+
}), s2 && s2.length > 0 ? Promise.all(s2).then((e3) => {
|
|
249
246
|
e3.includes(false) ? t2(false) : t2(true);
|
|
250
247
|
}) : t2(true);
|
|
251
248
|
});
|
|
252
249
|
}
|
|
253
|
-
function
|
|
254
|
-
return new Promise((
|
|
250
|
+
function N(e2, t2, n2) {
|
|
251
|
+
return new Promise((r2, s2) => {
|
|
255
252
|
var _a;
|
|
256
|
-
const
|
|
253
|
+
const o2 = JSON.parse(JSON.stringify(e2)), a2 = p(n2), u2 = t2.hiddenNotValidatorCodes;
|
|
257
254
|
if (a2 && u2 && u2.size > 0 && u2.forEach((e3) => {
|
|
258
255
|
delete a2[e3];
|
|
259
256
|
}), a2 && 0 !== Object.keys(a2).length) {
|
|
260
|
-
const e3 =
|
|
261
|
-
if (((_a = t2.props) == null ? void 0 : _a.highlightAllRequiredField) && e3 && Array.isArray(e3) && e3.length > 0 && (
|
|
262
|
-
if (true ===
|
|
257
|
+
const e3 = b(o2, a2, null, null, true, t2);
|
|
258
|
+
if (((_a = t2.props) == null ? void 0 : _a.highlightAllRequiredField) && e3 && Array.isArray(e3) && e3.length > 0 && (v(t2, e3), k(t2, P(t2, e3)), r2(false)), true === e3) {
|
|
259
|
+
if (true === x(t2)) {
|
|
263
260
|
const e4 = q(t2);
|
|
264
261
|
e4 && l(e4) ? e4.then((e5) => {
|
|
265
262
|
e5 ? O(t2).then((e6) => {
|
|
266
|
-
|
|
267
|
-
}) :
|
|
263
|
+
r2(e6);
|
|
264
|
+
}) : r2(false);
|
|
268
265
|
}) : O(t2).then((e5) => {
|
|
269
|
-
|
|
266
|
+
r2(e5);
|
|
270
267
|
});
|
|
271
|
-
} else
|
|
272
|
-
} else
|
|
268
|
+
} else s2(new Error(i().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
|
|
269
|
+
} else s2(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
273
270
|
} else {
|
|
274
|
-
if (true ===
|
|
271
|
+
if (true === x(t2)) {
|
|
275
272
|
const e3 = q(t2);
|
|
276
273
|
e3 && l(e3) ? e3.then((e4) => {
|
|
277
274
|
e4 ? O(t2).then((e5) => {
|
|
278
|
-
|
|
279
|
-
}) :
|
|
275
|
+
r2(e5);
|
|
276
|
+
}) : r2(false);
|
|
280
277
|
}) : O(t2).then((e4) => {
|
|
281
|
-
|
|
278
|
+
r2(e4);
|
|
282
279
|
});
|
|
283
|
-
} else
|
|
280
|
+
} else s2(new Error(i().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
|
|
284
281
|
}
|
|
285
282
|
});
|
|
286
283
|
}
|
|
287
|
-
function
|
|
288
|
-
if (!t2) return
|
|
289
|
-
|
|
290
|
-
const
|
|
291
|
-
return
|
|
284
|
+
function j(e2, t2, n2) {
|
|
285
|
+
if (!t2) return n2;
|
|
286
|
+
n2 || (n2 = {});
|
|
287
|
+
const r2 = u(e2), s2 = Object.keys(t2), i2 = t2;
|
|
288
|
+
return s2.forEach((e3) => {
|
|
292
289
|
if ("__subRules" === e3) {
|
|
293
|
-
const e4 =
|
|
290
|
+
const e4 = i2.__subRules;
|
|
294
291
|
Object.keys(e4).forEach((t3) => {
|
|
295
|
-
|
|
292
|
+
n2.subRules || (n2.subRules = {}), n2.subRules[t3] ? Object.assign(n2.subRules[t3], e4[t3]) : n2.subRules[t3] = e4[t3];
|
|
296
293
|
});
|
|
297
|
-
} else _(
|
|
298
|
-
}),
|
|
294
|
+
} else _(i2[e3]), r2 ? (n2.rules[e3] = i2[e3], n2[e3] && (n2[e3] = i2[e3])) : n2[e3] = i2[e3];
|
|
295
|
+
}), h(n2);
|
|
299
296
|
}
|
|
300
|
-
function
|
|
297
|
+
function x(e2) {
|
|
301
298
|
var _a;
|
|
302
299
|
if (!e2) return true;
|
|
303
300
|
if (u(e2)) return true;
|
|
304
|
-
const
|
|
305
|
-
if (!
|
|
306
|
-
for (let
|
|
307
|
-
const
|
|
308
|
-
if (l2 && l2.size > 0 && l2.has(
|
|
309
|
-
const a2 =
|
|
301
|
+
const n2 = e2.tableUuids;
|
|
302
|
+
if (!n2) return true;
|
|
303
|
+
for (let s2 = 0; s2 < n2.length; s2++) {
|
|
304
|
+
const o2 = n2[s2], l2 = e2.hiddenNotValidatorCodes;
|
|
305
|
+
if (l2 && l2.size > 0 && l2.has(o2)) continue;
|
|
306
|
+
const a2 = r(e2, o2);
|
|
310
307
|
if (a2) {
|
|
311
308
|
if (a2.getConfigure()) {
|
|
312
|
-
const
|
|
313
|
-
if ((_a =
|
|
314
|
-
const
|
|
315
|
-
if (!
|
|
309
|
+
const n3 = a2.getConfigure();
|
|
310
|
+
if ((_a = n3 == null ? void 0 : n3.verification) == null ? void 0 : _a.notEmpty) {
|
|
311
|
+
const r2 = a2.getTableData();
|
|
312
|
+
if (!r2 || !Array.isArray(r2) || 0 === r2.length) {
|
|
316
313
|
try {
|
|
317
|
-
d(e2,
|
|
314
|
+
d(e2, o2);
|
|
318
315
|
} catch (e3) {
|
|
319
316
|
}
|
|
320
|
-
return t({ showClose: true, message:
|
|
317
|
+
return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: n3.title ? n3.title : n3.code }), type: "warning" }), false;
|
|
321
318
|
}
|
|
322
319
|
}
|
|
323
320
|
}
|
|
324
321
|
if (false === a2.validatorSunTableListData()) {
|
|
325
322
|
try {
|
|
326
|
-
d(e2,
|
|
323
|
+
d(e2, o2);
|
|
327
324
|
} catch (e3) {
|
|
328
325
|
}
|
|
329
326
|
return false;
|
|
@@ -332,67 +329,67 @@ function M(e2) {
|
|
|
332
329
|
}
|
|
333
330
|
return true;
|
|
334
331
|
}
|
|
335
|
-
function
|
|
332
|
+
function M(e2) {
|
|
336
333
|
if (!e2 || 0 === Object.keys(e2).length) return;
|
|
337
|
-
const t2 = {},
|
|
338
|
-
for (let
|
|
339
|
-
const
|
|
340
|
-
|
|
334
|
+
const t2 = {}, n2 = Object.keys(e2);
|
|
335
|
+
for (let r2 = 0; r2 < n2.length; r2++) {
|
|
336
|
+
const s2 = n2[r2], i2 = e2[s2];
|
|
337
|
+
T(i2), s2.indexOf(".") > 0 ? g(s2, t2, i2) : i2 && i2.length > 0 && (t2[s2] = [...i2]);
|
|
341
338
|
}
|
|
342
339
|
return t2;
|
|
343
340
|
}
|
|
344
|
-
function
|
|
341
|
+
function T(e2, t2) {
|
|
345
342
|
e2.forEach((e3) => {
|
|
346
343
|
e3.message;
|
|
347
|
-
const t3 = e3.label,
|
|
348
|
-
e3.required && (e3.message =
|
|
344
|
+
const t3 = e3.label, n2 = i().t(t3);
|
|
345
|
+
e3.required && (e3.message = i().t("superPageRuntimeMessage.required", { label: n2 })), e3.myType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: n2 })), e3.patternType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: n2 })), void 0 !== e3.max && null !== e3.max && (e3.message = i().t("superPageRuntimeMessage.overMaxLength", { label: n2, value: e3.max })), void 0 !== e3.min && null !== e3.min && (e3.message = i().t("superPageRuntimeMessage.limitMinLength", { label: n2, value: e3.min }));
|
|
349
346
|
});
|
|
350
347
|
}
|
|
351
348
|
function A(e2) {
|
|
352
|
-
const t2 = e2.entity.data,
|
|
349
|
+
const t2 = e2.entity.data, n2 = { ...e2.entity.page, ...t2 }, r2 = o(e2), s2 = e2.entity.context, i2 = e2.entity.task;
|
|
353
350
|
e2.formPropTiltleMap && Object.keys(e2.formPropTiltleMap).length > 0 && e2.completeTaskParam.fieldPermissions && e2.completeTaskParam.fieldPermissions.length > 0 && e2.completeTaskParam.fieldPermissions.forEach((t3) => {
|
|
354
351
|
t3.name && e2.formPropTiltleMap[t3.name] && (t3.label = e2.formPropTiltleMap[t3.name]);
|
|
355
352
|
});
|
|
356
|
-
let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions,
|
|
353
|
+
let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, n2, true, r2, i2, s2);
|
|
357
354
|
const a2 = e2.customRules;
|
|
358
|
-
return l2 =
|
|
355
|
+
return l2 = j(e2, a2, l2), l2 && (l2.rules || (l2.rules = {}), l2.subRules || (l2.subRules = {})), l2;
|
|
359
356
|
}
|
|
360
357
|
function q(e2) {
|
|
361
358
|
const t2 = [];
|
|
362
|
-
return e2.customRuleEvents && e2.customRuleEvents.length > 0 && e2.customRuleEvents.forEach((
|
|
363
|
-
|
|
364
|
-
const
|
|
365
|
-
t2.push(
|
|
359
|
+
return e2.customRuleEvents && e2.customRuleEvents.length > 0 && e2.customRuleEvents.forEach((n2) => {
|
|
360
|
+
n2.events.forEach((r2) => {
|
|
361
|
+
const s2 = e2.customEvents[r2];
|
|
362
|
+
t2.push(s2.apply(s2, [{ prop: n2.prop, pageContext: e2 }]));
|
|
366
363
|
});
|
|
367
|
-
}), t2 && t2.length > 0 ? new Promise((e3,
|
|
368
|
-
const
|
|
364
|
+
}), t2 && t2.length > 0 ? new Promise((e3, n2) => {
|
|
365
|
+
const r2 = [], s2 = [];
|
|
369
366
|
t2.forEach((e4) => {
|
|
370
|
-
l(e4) ?
|
|
371
|
-
}),
|
|
367
|
+
l(e4) ? r2.push(e4) : s2.push(e4);
|
|
368
|
+
}), s2.includes(false) && e3(false), r2.length > 0 ? Promise.all(r2).then((t3) => {
|
|
372
369
|
t3.includes(false) ? e3(false) : e3(true);
|
|
373
370
|
}).catch((t3) => {
|
|
374
|
-
|
|
371
|
+
e3(false);
|
|
375
372
|
}) : e3(true);
|
|
376
373
|
}) : null;
|
|
377
374
|
}
|
|
378
375
|
function S(e2, t2) {
|
|
379
376
|
if (!t2) return;
|
|
380
|
-
const
|
|
377
|
+
const r2 = {};
|
|
381
378
|
if (t2.forEach((e3) => {
|
|
382
|
-
const { name: t3, rules:
|
|
383
|
-
|
|
379
|
+
const { name: t3, rules: n2 } = e3;
|
|
380
|
+
n2 ? r2[t3] = n2 : false === e3.required && (r2[t3] = []);
|
|
384
381
|
}), u(e2)) {
|
|
385
382
|
let t3 = e2.workflowRules ? e2.workflowRules : { rules: {}, subRules: {} };
|
|
386
|
-
t3 =
|
|
383
|
+
t3 = j(e2, r2, t3), e2.workflowRules = t3;
|
|
387
384
|
} else {
|
|
388
385
|
let t3 = e2.rules ? e2.rules : {};
|
|
389
|
-
t3 =
|
|
386
|
+
t3 = j(e2, r2, t3), e2.rules = t3;
|
|
390
387
|
}
|
|
391
|
-
const
|
|
392
|
-
|
|
388
|
+
const s2 = t2.filter((e3) => "_all_fields" === e3.name);
|
|
389
|
+
s2 && s2.length > 0 && L(e2, s2[0]), t2.forEach((t3) => {
|
|
393
390
|
if ("_all_fields" !== t3.name) {
|
|
394
|
-
const
|
|
395
|
-
D(e2,
|
|
391
|
+
const r3 = n(e2, t3.name);
|
|
392
|
+
D(e2, r3, t3);
|
|
396
393
|
}
|
|
397
394
|
});
|
|
398
395
|
}
|
|
@@ -400,50 +397,72 @@ function F(e2) {
|
|
|
400
397
|
L(e2, { disabled: true });
|
|
401
398
|
}
|
|
402
399
|
function L(e2, t2) {
|
|
403
|
-
const
|
|
404
|
-
if (
|
|
405
|
-
const
|
|
406
|
-
D(e2,
|
|
400
|
+
const n2 = s(e2);
|
|
401
|
+
if (n2) for (const r2 in n2) {
|
|
402
|
+
const s2 = n2[r2];
|
|
403
|
+
D(e2, s2 ? s2.value : s2, t2);
|
|
407
404
|
}
|
|
408
405
|
}
|
|
409
|
-
function V(e2, t2,
|
|
406
|
+
function V(e2, t2, s2) {
|
|
410
407
|
var _a;
|
|
411
|
-
let
|
|
412
|
-
if (
|
|
413
|
-
const l2 = e2.code, a2 = e2.version, u2 =
|
|
414
|
-
if (e2.workflowRules || (e2.workflowRules = { rules: {}, subRules: {} }), e2.workflowRules.subRules || (e2.workflowRules.subRules = {}), e2.workflowRules.subRules[
|
|
415
|
-
const
|
|
408
|
+
let i2, o2;
|
|
409
|
+
if (s2 ? (i2 = n(e2, s2), o2 = i2 ? i2.getTableUuid() : null) : (o2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, i2 = o2 ? r(e2, o2) : null), !i2) return;
|
|
410
|
+
const l2 = e2.code, a2 = e2.version, u2 = f(l2, a2, o2);
|
|
411
|
+
if (e2.workflowRules || (e2.workflowRules = { rules: {}, subRules: {} }), e2.workflowRules.subRules || (e2.workflowRules.subRules = {}), e2.workflowRules.subRules[s2] || (e2.workflowRules.subRules[s2] = {}), ((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[s2]) {
|
|
412
|
+
const n2 = e2.workflowRules.subRules[s2];
|
|
416
413
|
t2.forEach((e3) => {
|
|
417
|
-
|
|
414
|
+
n2[e3.name] = e3;
|
|
418
415
|
});
|
|
419
416
|
}
|
|
420
|
-
|
|
417
|
+
i2.dynamicControlTableEdit(e2, t2, u2);
|
|
421
418
|
}
|
|
422
|
-
function D(e2, t2,
|
|
419
|
+
function D(e2, t2, n2) {
|
|
423
420
|
var _a, _b, _c;
|
|
424
421
|
if (t2) {
|
|
425
|
-
const
|
|
426
|
-
if (void 0 !==
|
|
422
|
+
const r2 = t2.getConfigure();
|
|
423
|
+
if (void 0 !== n2.show && (n2.show ? t2.show() : t2.hide()), void 0 !== n2.required && ((_a = r2 == null ? void 0 : r2.runtime) == null ? void 0 : _a.props) && (r2.runtime.props.required = n2.required), void 0 !== n2.readonly && ((_b = r2 == null ? void 0 : r2.runtime) == null ? void 0 : _b.props) && (n2.readonly ? r2.runtime.props.state = "readonly" : r2.runtime.props.state = "enabled"), void 0 !== n2.disabled && r2 && (((_c = r2 == null ? void 0 : r2.runtime) == null ? void 0 : _c.props) && (n2.disabled ? r2.runtime.props.state = "disabled" : r2.runtime.props.state = "enabled"), "table" === r2.name)) {
|
|
427
424
|
t2.changeOperationAddState(false);
|
|
428
|
-
const
|
|
429
|
-
t2.dynamicControlTableEdit(e2,
|
|
425
|
+
const n3 = t2 ? t2.getTableUuid() : null, r3 = e2.code, s2 = e2.version, i2 = f(r3, s2, n3), o2 = [{ name: "_all_fields", disabled: true }];
|
|
426
|
+
t2.dynamicControlTableEdit(e2, o2, i2);
|
|
430
427
|
}
|
|
431
428
|
}
|
|
432
429
|
}
|
|
433
|
-
function _(
|
|
434
|
-
if (
|
|
435
|
-
|
|
436
|
-
|
|
430
|
+
function _(t2) {
|
|
431
|
+
if ((t2 == null ? void 0 : t2.pattern) && "object" == typeof t2.pattern && 0 === Object.keys(t2.pattern).length && delete t2.pattern, !t2) return;
|
|
432
|
+
if (!t2.type) return void function(t3) {
|
|
433
|
+
var _a;
|
|
434
|
+
const n3 = (_a = e.validators) == null ? void 0 : _a.string;
|
|
435
|
+
if ("function" != typeof n3) return;
|
|
436
|
+
t3.validator = function(e2, t4, r2, s2, i2) {
|
|
437
|
+
if (null == t4 || "string" == typeof t4) return n3(e2, t4, r2, s2, i2);
|
|
438
|
+
if (Array.isArray(t4) && 0 === t4.length) return !e2.required;
|
|
439
|
+
const o2 = e2.type;
|
|
440
|
+
e2.type = void 0;
|
|
441
|
+
const l2 = n3(e2, t4, r2, s2, i2);
|
|
442
|
+
return e2.type = o2, l2;
|
|
443
|
+
};
|
|
444
|
+
}(t2);
|
|
445
|
+
const n2 = I[t2.type];
|
|
446
|
+
n2 && (t2.validator = n2.validator);
|
|
437
447
|
}
|
|
438
|
-
const
|
|
439
|
-
return true ===
|
|
440
|
-
} }, date: { validator: function(e2, t2,
|
|
441
|
-
if (true !==
|
|
442
|
-
const
|
|
443
|
-
return !isNaN(
|
|
444
|
-
} }, number: { validator: function(e2, t2,
|
|
445
|
-
return true ===
|
|
446
|
-
} }
|
|
448
|
+
const I = { boolean: { validator: function(e2, t2, n2) {
|
|
449
|
+
return true === U(e2, t2) && ("number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2));
|
|
450
|
+
} }, date: { validator: function(e2, t2, n2) {
|
|
451
|
+
if (true !== U(e2, t2)) return false;
|
|
452
|
+
const r2 = new Date(t2);
|
|
453
|
+
return !isNaN(r2.getTime());
|
|
454
|
+
} }, number: { validator: function(e2, t2, n2) {
|
|
455
|
+
return true === U(e2, t2) && (("string" != typeof t2 || "" !== t2.trim()) && ("number" == typeof t2 || !isNaN(Number(t2))));
|
|
456
|
+
} }, float: { validator: function(e2, t2, n2) {
|
|
457
|
+
return true === U(e2, t2) && function(e3) {
|
|
458
|
+
if ("number" == typeof e3) return !isNaN(e3);
|
|
459
|
+
if ("string" == typeof e3 && "" !== e3.trim()) return !isNaN(Number(e3));
|
|
460
|
+
return false;
|
|
461
|
+
}(t2);
|
|
462
|
+
} }, integer: { validator: function(e2, t2, n2) {
|
|
463
|
+
return true === U(e2, t2) && ("number" == typeof t2 ? Number.isInteger(t2) : "string" == typeof t2 && "" !== t2.trim() && /^-?\d+$/.test(t2.trim()));
|
|
464
|
+
} } };
|
|
465
|
+
const U = (e2, t2) => null != t2 && "" !== t2 || !e2.required;
|
|
447
466
|
function J(e2, t2) {
|
|
448
467
|
return e2 && m.includes(t2.eventName);
|
|
449
468
|
}
|
|
@@ -451,13 +470,13 @@ export {
|
|
|
451
470
|
F as disabledAllFields,
|
|
452
471
|
V as dynamicControlTableEdit,
|
|
453
472
|
A as getWorkflowRules,
|
|
454
|
-
|
|
455
|
-
|
|
473
|
+
T as i18nValidatePropRulesMessage,
|
|
474
|
+
M as i18nValidateRulesMessage,
|
|
456
475
|
J as isNotNeedValidateRequired,
|
|
457
|
-
|
|
476
|
+
j as packageCustomRules,
|
|
458
477
|
_ as packageCustomValidator,
|
|
459
478
|
g as setObjectPropRule,
|
|
460
479
|
S as updateFormItemEditState,
|
|
461
480
|
w as validateDataModelFunc,
|
|
462
|
-
|
|
481
|
+
b as validator
|
|
463
482
|
};
|