super-page-runtime 2.0.75 → 2.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/_virtual/_plugin-vue_export-helper.js +10 -0
- package/dist/es/components/runtime/utils/api/api-util.d.ts +2 -2
- package/dist/es/components/runtime/utils/api/api-util.js +18 -14
- package/dist/es/components/runtime/utils/api/page-expose-util.js +136 -66
- package/dist/es/components/runtime/utils/events/event-util.js +43 -2
- package/dist/es/components/runtime/utils/events/standard-event.js +83 -41
- package/dist/es/components/runtime/utils/events/validator-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/validator-util.js +36 -29
- package/dist/es/components/runtime/utils/global-refs.d.ts +6 -0
- package/dist/es/components/runtime/utils/global-refs.js +11 -0
- package/dist/es/components/runtime/utils/page-init-util.d.ts +3 -1
- package/dist/es/components/runtime/utils/page-init-util.js +84 -27
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +9 -2
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +2 -1
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +4 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +5 -17
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +1 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +11 -5
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +11 -4
- package/dist/es/style.css +3 -0
- package/package.json +2 -2
|
@@ -13,10 +13,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
14
14
|
const runtimeStyle = runtimeInfo.style;
|
|
15
15
|
const runtimeClass = runtimeInfo.class;
|
|
16
|
+
function isDisable() {
|
|
17
|
+
return designProperty.value.state === "disabled" || isButtongLoading();
|
|
18
|
+
}
|
|
19
|
+
function isButtongLoading() {
|
|
20
|
+
return props.pageContext.canClick !== void 0 && props.pageContext.clickUuid !== void 0 ? !props.pageContext.canClick && props.pageContext.clickUuid === props.configure.uuid : false;
|
|
21
|
+
}
|
|
16
22
|
return (_ctx, _cache) => {
|
|
17
23
|
const _component_el_button = resolveComponent("el-button");
|
|
18
24
|
return openBlock(), createBlock(_component_el_button, {
|
|
19
|
-
disabled:
|
|
25
|
+
disabled: isDisable(),
|
|
20
26
|
class: normalizeClass(unref(runtimeClass)),
|
|
21
27
|
style: normalizeStyle(unref(runtimeStyle)),
|
|
22
28
|
type: designProperty.value.type,
|
|
@@ -24,6 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
30
|
text: designProperty.value.text,
|
|
25
31
|
round: designProperty.value.round,
|
|
26
32
|
plain: designProperty.value.plain,
|
|
33
|
+
loading: isButtongLoading(),
|
|
27
34
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
28
35
|
}, {
|
|
29
36
|
default: withCtx(() => [
|
|
@@ -46,7 +53,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
53
|
], 64)) : createCommentVNode("", true)
|
|
47
54
|
]),
|
|
48
55
|
_: 1
|
|
49
|
-
}, 8, ["disabled", "class", "style", "type", "size", "text", "round", "plain"]);
|
|
56
|
+
}, 8, ["disabled", "class", "style", "type", "size", "text", "round", "plain", "loading"]);
|
|
50
57
|
};
|
|
51
58
|
}
|
|
52
59
|
});
|
|
@@ -29,10 +29,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
const runtimeStyle = runtimeInfo.style;
|
|
30
30
|
const runtimeClass = runtimeInfo.class;
|
|
31
31
|
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
32
|
-
let dynamicFields = getModelFields(props.
|
|
32
|
+
let dynamicFields = getModelFields(props.configure, prop);
|
|
33
33
|
const listViewShowFlag = ref(false);
|
|
34
34
|
const baseURL = window["$vueApp"].config.globalProperties.baseURL;
|
|
35
35
|
const listViewOptions = ref({
|
|
36
|
+
isSql: true,
|
|
36
37
|
subTableData: null,
|
|
37
38
|
extraParam: {},
|
|
38
39
|
operations: {},
|
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
CHANGED
|
@@ -127,6 +127,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
127
127
|
"start-placeholder": designProperty.value.placeholder,
|
|
128
128
|
"end-placeholder": designProperty.value.endPlaceholder,
|
|
129
129
|
format: designProperty.value.format,
|
|
130
|
+
"value-format": designProperty.value.valueFormat ? "x" : designProperty.value.valueFormat,
|
|
130
131
|
modelValue: dynamicModelMethod.value,
|
|
131
132
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
132
133
|
shortcuts: shortcuts.value,
|
|
@@ -136,7 +137,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
136
137
|
onFocus: _cache[3] || (_cache[3] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
137
138
|
onVisibleChange: _cache[4] || (_cache[4] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "visible-change")),
|
|
138
139
|
onPanelChange: _cache[5] || (_cache[5] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "panel-change"))
|
|
139
|
-
}, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "modelValue", "shortcuts", "type"])) : (openBlock(), createBlock(_component_el_date_picker, {
|
|
140
|
+
}, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : (openBlock(), createBlock(_component_el_date_picker, {
|
|
140
141
|
key: 1,
|
|
141
142
|
clearable: designProperty.value.clearable,
|
|
142
143
|
disabled: designProperty.value.state === "disabled",
|
|
@@ -150,12 +151,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
150
151
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => dynamicModelMethod.value = $event),
|
|
151
152
|
shortcuts: shortcuts.value,
|
|
152
153
|
type: designProperty.value.dateType,
|
|
154
|
+
"value-format": designProperty.value.valueFormat ? "x" : designProperty.value.valueFormat,
|
|
153
155
|
onChange: _cache[7] || (_cache[7] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
154
156
|
onBlur: _cache[8] || (_cache[8] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
155
157
|
onFocus: _cache[9] || (_cache[9] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
156
158
|
onVisibleChange: _cache[10] || (_cache[10] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "visible-change")),
|
|
157
159
|
onPanelChange: _cache[11] || (_cache[11] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "panel-change"))
|
|
158
|
-
}, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "modelValue", "shortcuts", "type"]))
|
|
160
|
+
}, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "modelValue", "shortcuts", "type", "value-format"]))
|
|
159
161
|
]),
|
|
160
162
|
_: 1
|
|
161
163
|
}, 8, ["required", "class", "label-width", "style"]);
|
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, resolveComponent, openBlock, createBlock, normali
|
|
|
2
2
|
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { fileUploadBeforeUpload } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import http from "agilebuilder-ui/src/utils/request";
|
|
5
|
-
import FsUploadNew from "agilebuilder-ui";
|
|
5
|
+
import { FsUploadNew } from "agilebuilder-ui";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "fileupload-runtime",
|
|
8
8
|
props: {
|
|
@@ -23,16 +23,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
23
|
const initPaths = getVariableValue(entity, pathFields);
|
|
24
24
|
const fileList = ref([]);
|
|
25
25
|
const fileInfo = ref({});
|
|
26
|
-
const baseURL = window.$vueApp.config.globalProperties.baseURL;
|
|
27
|
-
const baseAPI = window.$vueApp.config.globalProperties.baseAPI;
|
|
28
|
-
let url = baseURL;
|
|
29
|
-
if (!isPlateSys(props.pageContext.systemCode)) {
|
|
30
|
-
url = baseAPI;
|
|
31
|
-
}
|
|
32
26
|
if (initPaths) {
|
|
33
27
|
const uuids = initPaths.split(",");
|
|
34
28
|
if (uuids.length > 0) {
|
|
35
|
-
|
|
29
|
+
const backendUrl = props.pageContext.backendUrl;
|
|
30
|
+
http.post(backendUrl + "/common/fs-upload/search-file-names", uuids).then((result) => {
|
|
36
31
|
const names = [];
|
|
37
32
|
for (let index = 0; index < uuids.length; index++) {
|
|
38
33
|
const uuid = uuids[index];
|
|
@@ -74,13 +69,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
74
69
|
setVariableValue(props.pageContext.entity, pathFields, uuids.join(","));
|
|
75
70
|
setVariableValue(props.pageContext.entity, nameFields, names.join(","));
|
|
76
71
|
};
|
|
77
|
-
function isPlateSys(systemCode) {
|
|
78
|
-
if (systemCode && (systemCode === "agilebuilder" || systemCode === "portal" || systemCode === "mms" || systemCode === "task" || systemCode === "wf" || systemCode === "dc" || systemCode === "mc" || systemCode === "mobile" || systemCode === "acs" || systemCode === "bs" || systemCode === "pcm")) {
|
|
79
|
-
return true;
|
|
80
|
-
} else {
|
|
81
|
-
return false;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
72
|
return (_ctx, _cache) => {
|
|
85
73
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
86
74
|
return designProperty.value.tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
|
|
@@ -98,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
98
86
|
]),
|
|
99
87
|
default: withCtx(() => [
|
|
100
88
|
createVNode(unref(FsUploadNew), {
|
|
101
|
-
disabled: designProperty.value.state
|
|
89
|
+
disabled: designProperty.value.state === "disabled",
|
|
102
90
|
displayType: designProperty.value.displayType,
|
|
103
91
|
accept: designProperty.value.accept,
|
|
104
92
|
multiple: designProperty.value.multiple,
|
|
@@ -115,7 +103,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
115
103
|
_: 1
|
|
116
104
|
}, 8, ["required", "class", "label-width", "style"])) : (openBlock(), createBlock(unref(FsUploadNew), {
|
|
117
105
|
key: 1,
|
|
118
|
-
disabled: designProperty.value.state
|
|
106
|
+
disabled: designProperty.value.state === "disabled",
|
|
119
107
|
displayType: designProperty.value.displayType,
|
|
120
108
|
accept: designProperty.value.accept,
|
|
121
109
|
multiple: designProperty.value.multiple,
|
package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./placeholder-runtime.vue2.js";
|
|
2
|
+
import "./placeholder-runtime.vue3.js";
|
|
3
|
+
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const placeholderRuntime = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a0860ff0"]]);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
placeholderRuntime as default
|
|
4
7
|
};
|
package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementVNode } from "vue";
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, pushScopeId, popScopeId, createElementVNode } from "vue";
|
|
2
|
+
const _withScopeId = (n) => (pushScopeId("data-v-a0860ff0"), n = n(), popScopeId(), n);
|
|
3
|
+
const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { style: { "width": "100%", "height": "100%" } }, " ", -1));
|
|
3
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
5
|
__name: "placeholder-runtime",
|
|
5
6
|
props: {
|
package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -3,8 +3,8 @@ import _sfc_main$1 from "./error-render.vue.js";
|
|
|
3
3
|
import { getRuntimeComponentByName } from "../../utils/assemblys-config.js";
|
|
4
4
|
import { PageDimensions } from "../../utils/interfaces/page-design-types.js";
|
|
5
5
|
import { addComponentRef, addComponentRefByCode } from "../../utils/global-refs.js";
|
|
6
|
-
import { getPermissionCodes, packageFormRules } from "../../utils/page-init-util.js";
|
|
7
|
-
import { caculateShowCondition } from "../../utils/page-helper-util.js";
|
|
6
|
+
import { getPermissionCodes, packageFormRules, controlObjectRenderState } from "../../utils/page-init-util.js";
|
|
7
|
+
import { caculateShowCondition, getFormPropName } from "../../utils/page-helper-util.js";
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "object-render",
|
|
10
10
|
props: {
|
|
@@ -97,9 +97,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
97
97
|
if (props.configure.code) {
|
|
98
98
|
addComponentRefByCode(props.pageContext, props.configure.code, thisRef);
|
|
99
99
|
} else if (props.configure.props && props.configure.props.base) {
|
|
100
|
-
const
|
|
101
|
-
if (
|
|
102
|
-
let propName =
|
|
100
|
+
const propsBase2 = props.configure.props.base;
|
|
101
|
+
if (propsBase2.prop) {
|
|
102
|
+
let propName = propsBase2.prop;
|
|
103
103
|
if (propName.startsWith("${")) {
|
|
104
104
|
propName = propName.substring(2, propName.length - 1);
|
|
105
105
|
}
|
|
@@ -109,6 +109,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
109
109
|
addComponentRefByCode(props.pageContext, propName, thisRef);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
+
const propsBase = props.configure.props ? props.configure.props.base : null;
|
|
113
|
+
if (propsBase && propsBase.prop) {
|
|
114
|
+
let propName = propsBase.prop;
|
|
115
|
+
propName = getFormPropName(propName);
|
|
116
|
+
controlObjectRenderState(props.pageContext, propName);
|
|
117
|
+
}
|
|
112
118
|
}
|
|
113
119
|
onMounted(() => {
|
|
114
120
|
if (!thisRef.value || !thisRef.value.parentNode) {
|
|
@@ -20,8 +20,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
let activityNameColor = "";
|
|
21
21
|
if (props.configure.props.base.showActivityName) {
|
|
22
22
|
activityNameColor = props.configure.props.base.activityNameColor || "red";
|
|
23
|
-
if (props.pageContext.entity && props.pageContext.entity.
|
|
24
|
-
taskName.value = props.pageContext.entity.
|
|
23
|
+
if (props.pageContext.entity && props.pageContext.entity.data) {
|
|
24
|
+
taskName.value = props.pageContext.entity.data["CURRENT_ACTIVITY_NAME"] || props.pageContext.entity.data["current_activity_name"];
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
props.configure.items.forEach((item) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, onUpdated, nextTick, onUnmounted, openBlock, createElementBlock, normalizeClass, normalizeStyle, Fragment, renderList, createBlock, unref, createCommentVNode, createElementVNode, watch } from "vue";
|
|
2
2
|
import _sfc_main$1 from "./assemblys/object-render.vue.js";
|
|
3
3
|
import { updateOptionDatasources, updateChartDatasources } from "../utils/page-helper-util.js";
|
|
4
|
-
import { queryPageSuperGrids, queryPageDesignByCode, convertToPageContext } from "../utils/page-init-util.js";
|
|
4
|
+
import { queryPageSuperGrids, queryPageDesignByCode, convertToPageContext, packageAdditionalMapWithRoute } from "../utils/page-init-util.js";
|
|
5
5
|
import { addComponentRef, removePageAllRef, initComponentRefState } from "../utils/global-refs.js";
|
|
6
6
|
import { removeCustomFuncFromWindow, handleEvent, initPageEvents } from "../utils/events/event-util.js";
|
|
7
7
|
import _sfc_main$2 from "./assemblys/common/export-form-report-dialog.vue.js";
|
|
@@ -109,6 +109,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
109
109
|
if (tempContext.isTest && props.dimensions) {
|
|
110
110
|
tempContext.dimensions = props.dimensions;
|
|
111
111
|
}
|
|
112
|
+
packageAdditionalMapWithRoute(route, tempContext.entity.request);
|
|
112
113
|
pageContext.value = tempContext;
|
|
113
114
|
if (pageContext.value == null) {
|
|
114
115
|
return;
|
|
@@ -413,13 +414,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
413
414
|
}
|
|
414
415
|
const jumpMode = openPageParams.jumpMode;
|
|
415
416
|
const popPageSetting = openPageParams;
|
|
417
|
+
if (!parentEventParams.value) {
|
|
418
|
+
parentEventParams.value = {};
|
|
419
|
+
}
|
|
420
|
+
parentEventParams.value.paramStoreId = openPageParams.paramStoreId;
|
|
416
421
|
popPageSetting.parentPageCode = parentPageContext.value.code;
|
|
417
422
|
popPageSetting.parentPageVersion = parentPageContext.value.version;
|
|
418
423
|
popPageSetting.isNewPage = true;
|
|
419
424
|
if (jumpMode === "popup") {
|
|
420
|
-
eventBus.$on(eventPageInfo.value + "close-dialog", (params) => {
|
|
421
|
-
closeFunc(params);
|
|
422
|
-
});
|
|
423
425
|
jumpPageSetting.value = popPageSetting;
|
|
424
426
|
isShowDialog.value = true;
|
|
425
427
|
} else if (jumpMode === "refresh") {
|
|
@@ -428,6 +430,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
428
430
|
query: popPageSetting
|
|
429
431
|
});
|
|
430
432
|
}
|
|
433
|
+
if (jumpMode === "popup" || jumpMode === "refresh") {
|
|
434
|
+
eventBus.$on(eventPageInfo.value + "close-dialog", (params) => {
|
|
435
|
+
closeFunc(params);
|
|
436
|
+
});
|
|
437
|
+
}
|
|
431
438
|
} else {
|
|
432
439
|
console.error("页面配置信息不存在");
|
|
433
440
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.80",
|
|
4
4
|
"description": "AgileBuilder super page runtime",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
49
49
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
50
50
|
"@vue/test-utils": "^2.4.4",
|
|
51
|
-
"agilebuilder-ui": "1.0.
|
|
51
|
+
"agilebuilder-ui": "1.0.56",
|
|
52
52
|
"axios": "^1.6.8",
|
|
53
53
|
"cypress": "^13.6.6",
|
|
54
54
|
"element-plus": "^2.6.1",
|