super-page-runtime 2.0.4 → 2.0.9
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/assets/chart-themes/theme1.d.ts +4 -0
- package/dist/es/assets/chart-themes/theme2.d.ts +4 -0
- package/dist/es/assets/chart-themes/theme3.d.ts +4 -0
- package/dist/es/components/runtime/index.d.ts +4 -0
- package/dist/es/components/runtime/utils/api/api-util.d.ts +11 -0
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +11 -0
- package/dist/es/components/runtime/utils/common-util.d.ts +16 -0
- package/dist/es/components/runtime/utils/eventBus.d.ts +7 -0
- package/dist/es/components/runtime/utils/events/event-util.d.ts +48 -0
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +61 -0
- package/dist/es/components/runtime/utils/events/validator-util.d.ts +4 -0
- package/dist/es/components/runtime/utils/global-refs.d.ts +59 -0
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +223 -0
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +106 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +4 -1
- package/dist/es/components/runtime/utils/page-init-util.d.ts +38 -0
- package/dist/es/components/runtime/utils/page-permission-util.d.ts +26 -0
- package/dist/es/components/runtime/utils/store-util.d.ts +15 -0
- package/dist/es/components/runtime/utils/store.d.ts +2 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +196 -18
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +44 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +76 -6
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +24 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +35 -0
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +26 -0
- package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +22 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +36 -0
- package/dist/es/components/runtime/views/super-page.vue.d.ts +91 -0
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +2 -2
- package/dist/lib/_virtual/AttributeMap.js +4 -0
- package/dist/lib/_virtual/Delta.js +4 -0
- package/dist/lib/_virtual/Op.js +4 -0
- package/dist/lib/_virtual/OpIterator.js +4 -0
- package/dist/lib/_virtual/__vite-browser-external.js +3 -0
- package/dist/lib/_virtual/_commonjsHelpers.js +8 -0
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/lib/_virtual/dayjs.min.js +4 -0
- package/dist/lib/_virtual/index.js +4 -0
- package/dist/lib/_virtual/index2.js +4 -0
- package/dist/lib/_virtual/index3.js +4 -0
- package/dist/lib/assets/chart-themes/theme1.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme1.js +7 -0
- package/dist/lib/assets/chart-themes/theme2.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme2.js +7 -0
- package/dist/lib/assets/chart-themes/theme3.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme3.js +7 -0
- package/dist/lib/components/runtime/index.d.ts +4 -0
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +11 -0
- package/dist/lib/components/runtime/utils/api/api-util.js +128 -0
- package/dist/lib/components/runtime/utils/assemblys-config.js +258 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +11 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.js +28 -0
- package/dist/lib/components/runtime/utils/common-util.d.ts +16 -0
- package/dist/lib/components/runtime/utils/common-util.js +94 -0
- package/dist/lib/components/runtime/utils/eventBus.d.ts +7 -0
- package/dist/lib/components/runtime/utils/eventBus.js +10 -0
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +48 -0
- package/dist/lib/components/runtime/utils/events/event-util.js +526 -0
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +61 -0
- package/dist/lib/components/runtime/utils/events/standard-event.js +1625 -0
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +4 -0
- package/dist/lib/components/runtime/utils/events/validator-util.js +389 -0
- package/dist/lib/components/runtime/utils/global-refs.d.ts +59 -0
- package/dist/lib/components/runtime/utils/global-refs.js +65 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +223 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +9 -0
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +106 -0
- package/dist/lib/components/runtime/utils/page-helper-util.js +622 -0
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +38 -0
- package/dist/lib/components/runtime/utils/page-init-util.js +200 -0
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +26 -0
- package/dist/lib/components/runtime/utils/page-permission-util.js +525 -0
- package/dist/lib/components/runtime/utils/store-util.d.ts +15 -0
- package/dist/lib/components/runtime/utils/store-util.js +17 -0
- package/dist/lib/components/runtime/utils/store.d.ts +2 -0
- package/dist/lib/components/runtime/utils/store.js +3 -0
- package/dist/lib/components/runtime/utils/table-utils.js +24 -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 +54 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +35 -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 +110 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +432 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +43 -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 +61 -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 +126 -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/gauge/gauge-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +52 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +54 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +54 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +56 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +24 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +147 -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/remove-signer-dialog.vue.d.ts +35 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +127 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +26 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +104 -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 +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +72 -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 +74 -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 +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 +43 -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 +44 -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 +30 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +69 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +75 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +642 -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 +453 -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 +88 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +22 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +22 -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 +156 -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 +82 -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 +64 -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 +40 -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 +74 -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 +63 -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 +127 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +127 -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 +77 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +29 -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 +157 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +164 -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 +201 -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 +63 -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 +63 -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 +65 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +142 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +61 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +36 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +73 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +91 -0
- package/dist/lib/components/runtime/views/super-page.vue.js +496 -0
- package/dist/lib/components/runtime/views/super-page.vue2.js +3 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/index.d.ts +8 -0
- package/dist/lib/index.js +15 -0
- package/package.json +1 -2
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const theme1 = require("../../../../assets/chart-themes/theme1.js");
|
|
4
|
+
const theme2 = require("../../../../assets/chart-themes/theme2.js");
|
|
5
|
+
const theme3 = require("../../../../assets/chart-themes/theme3.js");
|
|
6
|
+
const themeMap = {
|
|
7
|
+
"theme1": theme1,
|
|
8
|
+
"theme2": theme2,
|
|
9
|
+
"theme3": theme3
|
|
10
|
+
};
|
|
11
|
+
function getCustomTheme(themeName) {
|
|
12
|
+
console.log("getdd", themeName);
|
|
13
|
+
return themeMap[themeName];
|
|
14
|
+
}
|
|
15
|
+
function getCustomThemeOptions() {
|
|
16
|
+
return [{
|
|
17
|
+
value: "theme1",
|
|
18
|
+
label: "主题1"
|
|
19
|
+
}, {
|
|
20
|
+
value: "theme2",
|
|
21
|
+
label: "主题2"
|
|
22
|
+
}, {
|
|
23
|
+
value: "theme3",
|
|
24
|
+
label: "主题3"
|
|
25
|
+
}];
|
|
26
|
+
}
|
|
27
|
+
exports.getCustomTheme = getCustomTheme;
|
|
28
|
+
exports.getCustomThemeOptions = getCustomThemeOptions;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare function isArrayFn(value: any): boolean;
|
|
2
|
+
export declare function getBaseUrl(system: any): any;
|
|
3
|
+
export declare function getRealRestApiPath(orgRestApiPath: any, system: any): any;
|
|
4
|
+
/**
|
|
5
|
+
* 封装模板文件列表
|
|
6
|
+
* @param templateFiles
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare function packageTemplateFiles(templateFiles: any): any;
|
|
10
|
+
export declare function upperFirstCase(str: any): any;
|
|
11
|
+
export declare function getListCode(pageCode: any, pageVersion: any, tableUuid: any): string;
|
|
12
|
+
/**
|
|
13
|
+
* 深度复制
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export declare function deepCopy(srcObj: any): any;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const commonUtil = require("../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/common-util.js");
|
|
4
|
+
const util = require("../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/util.js");
|
|
5
|
+
function isArrayFn(value) {
|
|
6
|
+
if (typeof Array.isArray === "function") {
|
|
7
|
+
return Array.isArray(value);
|
|
8
|
+
} else {
|
|
9
|
+
return Object.prototype.toString.call(value) === "[object Array]";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function getBaseUrl(system) {
|
|
13
|
+
let baseUrl = window["$vueApp"].config.globalProperties.baseURL;
|
|
14
|
+
if (system) {
|
|
15
|
+
baseUrl = commonUtil.getSystemBackendUrl(system.backendUrl);
|
|
16
|
+
}
|
|
17
|
+
return baseUrl;
|
|
18
|
+
}
|
|
19
|
+
function getRealRestApiPath(orgRestApiPath, system) {
|
|
20
|
+
let path = orgRestApiPath;
|
|
21
|
+
if (orgRestApiPath) {
|
|
22
|
+
if (system && !isFullPath(orgRestApiPath)) {
|
|
23
|
+
const baseUrl = getBaseUrl(system);
|
|
24
|
+
if (system.standard === false) {
|
|
25
|
+
path = baseUrl + "/" + system.code + orgRestApiPath;
|
|
26
|
+
} else {
|
|
27
|
+
path = baseUrl + orgRestApiPath;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return path;
|
|
32
|
+
}
|
|
33
|
+
function isFullPath(path) {
|
|
34
|
+
return path.indexOf("http:") === 0 || path.indexOf("https:") === 0;
|
|
35
|
+
}
|
|
36
|
+
function packageTemplateFiles(templateFiles) {
|
|
37
|
+
if (!templateFiles) {
|
|
38
|
+
return templateFiles;
|
|
39
|
+
}
|
|
40
|
+
const currentLocale = util.getLanguageWithLocale();
|
|
41
|
+
if (Array.isArray(templateFiles)) {
|
|
42
|
+
let templateFilesResult = [];
|
|
43
|
+
let fileCodes = [];
|
|
44
|
+
const fileSeperate = "~-~-";
|
|
45
|
+
templateFiles.forEach((template) => {
|
|
46
|
+
let showName = template.templateShowPath;
|
|
47
|
+
if (showName.indexOf(fileSeperate) > 0) {
|
|
48
|
+
const fileCode = showName.substring(0, showName.indexOf(fileSeperate));
|
|
49
|
+
const fileLanguage = showName.substring(
|
|
50
|
+
showName.indexOf(fileSeperate) + fileSeperate.length,
|
|
51
|
+
showName.lastIndexOf(fileSeperate)
|
|
52
|
+
);
|
|
53
|
+
const fileName = showName.substring(
|
|
54
|
+
showName.lastIndexOf(fileSeperate) + fileSeperate.length
|
|
55
|
+
);
|
|
56
|
+
if (currentLocale === fileLanguage && fileCodes.indexOf(fileCode) < 0) {
|
|
57
|
+
templateFilesResult.push({
|
|
58
|
+
templateUUID: template.templateUUID,
|
|
59
|
+
templateShowPath: fileName
|
|
60
|
+
});
|
|
61
|
+
fileCodes.push(fileCode);
|
|
62
|
+
}
|
|
63
|
+
} else {
|
|
64
|
+
templateFilesResult.push(template);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
return templateFilesResult;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function upperFirstCase(str) {
|
|
71
|
+
return str.toLowerCase().replace(/( |^)[a-z]/g, (L) => L.toUpperCase());
|
|
72
|
+
}
|
|
73
|
+
function getListCode(pageCode, pageVersion, tableUuid) {
|
|
74
|
+
return pageCode + ":V" + pageVersion + ":" + tableUuid;
|
|
75
|
+
}
|
|
76
|
+
function deepCopy(srcObj) {
|
|
77
|
+
if (typeof srcObj !== "object" || srcObj === null) {
|
|
78
|
+
return srcObj;
|
|
79
|
+
}
|
|
80
|
+
const copyObj = Array.isArray(srcObj) ? [] : {};
|
|
81
|
+
for (const key in srcObj) {
|
|
82
|
+
if (srcObj.hasOwnProperty(key)) {
|
|
83
|
+
copyObj[key] = deepCopy(srcObj[key]);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return copyObj;
|
|
87
|
+
}
|
|
88
|
+
exports.deepCopy = deepCopy;
|
|
89
|
+
exports.getBaseUrl = getBaseUrl;
|
|
90
|
+
exports.getListCode = getListCode;
|
|
91
|
+
exports.getRealRestApiPath = getRealRestApiPath;
|
|
92
|
+
exports.isArrayFn = isArrayFn;
|
|
93
|
+
exports.packageTemplateFiles = packageTemplateFiles;
|
|
94
|
+
exports.upperFirstCase = upperFirstCase;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const mitt = require("../../../node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/dist/mitt.js");
|
|
3
|
+
const emitter = mitt();
|
|
4
|
+
const bus = {
|
|
5
|
+
$on: emitter.on,
|
|
6
|
+
$emit: emitter.emit,
|
|
7
|
+
$off: emitter.off
|
|
8
|
+
};
|
|
9
|
+
const eventBus = bus;
|
|
10
|
+
module.exports = eventBus;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { PageDesign, Component, PageContext } from '../interfaces/page-design-types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 缓存页面事件,并转为Function对象,并绑定自定义方法到window对象上
|
|
5
|
+
* @param pageDesign
|
|
6
|
+
*/
|
|
7
|
+
export declare function initPageEvents(pageDesign: PageDesign, pageContext: PageContext): void;
|
|
8
|
+
/**
|
|
9
|
+
* 页面销毁时,将window上注册的函数移除掉
|
|
10
|
+
* @param pageDesign
|
|
11
|
+
*/
|
|
12
|
+
export declare function removeCustomFuncFromWindow(pageDesign: PageDesign): void;
|
|
13
|
+
export declare function handleEvent($event: any, pageContext: PageContext, configure: Component, eventType: string, otherParams?: object): any;
|
|
14
|
+
export declare function getHandleEvent($event: any, pageContext: PageContext, configure: Component, eventType: string, otherParams?: object): any;
|
|
15
|
+
export declare function doBeforeClickEvent(pageContext: PageContext, configure: Component, otherParams?: object): any;
|
|
16
|
+
export declare function doAfterClickEvent(pageContext: PageContext, configure: Component, otherParams?: object): void;
|
|
17
|
+
/**
|
|
18
|
+
* 获得事件Function对象
|
|
19
|
+
* @param events 该组件所有事件集合
|
|
20
|
+
* @param eventType change、click等事件类型
|
|
21
|
+
*/
|
|
22
|
+
export declare function getEventFuncByType(pageContext: PageContext, events: Array<any>, eventType: string): any;
|
|
23
|
+
/**
|
|
24
|
+
* 获得事件Function对象
|
|
25
|
+
* @param events 该组件所有事件集合
|
|
26
|
+
* @param eventType change、click等事件类型
|
|
27
|
+
*/
|
|
28
|
+
export declare function getClickEventFuncByType(pageContext: PageContext, events: Array<any>, eventType: string): {
|
|
29
|
+
func: any;
|
|
30
|
+
isStandard: boolean;
|
|
31
|
+
event: any;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* 按钮是否可执行条件解析
|
|
35
|
+
* @param params
|
|
36
|
+
* @returns
|
|
37
|
+
*/
|
|
38
|
+
export declare function canExecuteButton(params: any): Promise<unknown>;
|
|
39
|
+
export declare function canVisibleComponent(params: any): Promise<unknown>;
|
|
40
|
+
export declare function setTableEvents(options: any, tableEvents: any, pageContext: any, configureObj: any): void;
|
|
41
|
+
export declare function gridSelectRecord(pageContext: any, configureObj: any, params: any): any;
|
|
42
|
+
export declare function gridSelectAllRecords(pageContext: any, configureObj: any, params: any): any;
|
|
43
|
+
export declare function gridSelectionChange(pageContext: any, configureObj: any, params: any): any;
|
|
44
|
+
export declare function cellClick(pageContext: any, configureObj: any, params: any): any;
|
|
45
|
+
export declare function cellDblClick(pageContext: any, configureObj: any, params: any): any;
|
|
46
|
+
export declare function rowClick(pageContext: any, configureObj: any, params: any): any;
|
|
47
|
+
export declare function rowDblClick(pageContext: any, configureObj: any, params: any): any;
|
|
48
|
+
export declare function headerClick(pageContext: any, configureObj: any, params: any): any;
|