super-page-runtime 2.0.86 → 2.0.92
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/api-util.js +17 -11
- package/dist/es/components/runtime/utils/assemblys-config.js +260 -214
- package/dist/es/components/runtime/utils/common-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/common-util.js +14 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +15 -16
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -2
- package/dist/es/components/runtime/utils/page-init-util.js +24 -3
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +36 -33
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +24 -9
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +16 -11
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +2 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +22 -56
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +4 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +4 -15
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +53 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +5 -2
- package/dist/es/components/runtime/views/super-page.vue.d.ts +9 -0
- package/dist/es/components/runtime/views/super-page.vue.js +16 -4
- package/dist/es/index.d.ts +2 -0
- package/dist/es/index.js +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineComponent, ref, onMounted, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, toDisplayString } from "vue";
|
|
2
|
+
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "workflownode-runtime",
|
|
6
|
+
props: {
|
|
7
|
+
pageContext: {},
|
|
8
|
+
configure: {}
|
|
9
|
+
},
|
|
10
|
+
setup(__props, { expose: __expose }) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
13
|
+
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
14
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
15
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
16
|
+
const runtimeClass = runtimeInfo.class;
|
|
17
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
18
|
+
let taskName = ref("");
|
|
19
|
+
ref(false);
|
|
20
|
+
if (props.pageContext.pageType === "form") {
|
|
21
|
+
if (props.pageContext.entity && props.pageContext.entity.data) {
|
|
22
|
+
taskName.value = props.pageContext.entity.data["CURRENT_ACTIVITY_NAME"] || props.pageContext.entity.data["current_activity_name"];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
onMounted(() => {
|
|
26
|
+
});
|
|
27
|
+
function getValue() {
|
|
28
|
+
return getVariableValue(entity, dynamicFields);
|
|
29
|
+
}
|
|
30
|
+
function setValue(value) {
|
|
31
|
+
return setVariableValue(entity, dynamicFields, value);
|
|
32
|
+
}
|
|
33
|
+
__expose({
|
|
34
|
+
getValue,
|
|
35
|
+
setValue
|
|
36
|
+
});
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return openBlock(), createElementBlock("div", {
|
|
39
|
+
class: normalizeClass(unref(runtimeClass))
|
|
40
|
+
}, [
|
|
41
|
+
createElementVNode("div", {
|
|
42
|
+
style: normalizeStyle(unref(headerStyle))
|
|
43
|
+
}, [
|
|
44
|
+
createElementVNode("span", null, toDisplayString(designProperty.value.title), 1),
|
|
45
|
+
createElementVNode("span", null, toDisplayString(unref(taskName)), 1)
|
|
46
|
+
], 4)
|
|
47
|
+
], 2);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
_sfc_main as default
|
|
53
|
+
};
|
|
@@ -24,6 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
const draggable = ref(false);
|
|
25
25
|
const overflow = ref(false);
|
|
26
26
|
const showPosition = ref("rtl");
|
|
27
|
+
const contentHeight = ref(null);
|
|
27
28
|
if (myJumpPageSetting) {
|
|
28
29
|
dialogType.value = myJumpPageSetting && myJumpPageSetting["dialogType"] ? myJumpPageSetting["dialogType"] : "dialog";
|
|
29
30
|
draggable.value = myJumpPageSetting && myJumpPageSetting["draggable"] ? myJumpPageSetting["draggable"] : false;
|
|
@@ -31,6 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
32
|
showPosition.value = myJumpPageSetting && myJumpPageSetting["showPosition"] ? myJumpPageSetting["showPosition"] : "rtl";
|
|
32
33
|
title.value = myJumpPageSetting && myJumpPageSetting["jumpPageTitle"] ? myJumpPageSetting["jumpPageTitle"] : null;
|
|
33
34
|
width.value = myJumpPageSetting && myJumpPageSetting["jumpPageWidth"] ? myJumpPageSetting["jumpPageWidth"] : "100%";
|
|
35
|
+
contentHeight.value = myJumpPageSetting && myJumpPageSetting["jumpPageHeight"] ? myJumpPageSetting["jumpPageHeight"] : null;
|
|
34
36
|
pageCode.value = myJumpPageSetting && myJumpPageSetting["pageCode"];
|
|
35
37
|
dataId.value = myJumpPageSetting && myJumpPageSetting["dataId"] ? myJumpPageSetting["dataId"] : null;
|
|
36
38
|
taskId.value = myJumpPageSetting && myJumpPageSetting["taskId"] ? myJumpPageSetting["taskId"] : null;
|
|
@@ -98,8 +100,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
98
100
|
pageCode.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
99
101
|
key: 0,
|
|
100
102
|
pageCode: pageCode.value,
|
|
101
|
-
pageRequest: pageRequest.value
|
|
102
|
-
|
|
103
|
+
pageRequest: pageRequest.value,
|
|
104
|
+
contentHeight: contentHeight.value
|
|
105
|
+
}, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : createCommentVNode("", true)
|
|
103
106
|
]),
|
|
104
107
|
_: 1
|
|
105
108
|
}, 8, ["title", "width", "draggable", "overflow"]));
|
|
@@ -42,6 +42,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
42
42
|
type: ObjectConstructor;
|
|
43
43
|
required: false;
|
|
44
44
|
};
|
|
45
|
+
contentHeight: {
|
|
46
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
47
|
+
default: any;
|
|
48
|
+
};
|
|
45
49
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
46
50
|
close: (...args: any[]) => void;
|
|
47
51
|
open: (...args: any[]) => void;
|
|
@@ -88,6 +92,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
88
92
|
type: ObjectConstructor;
|
|
89
93
|
required: false;
|
|
90
94
|
};
|
|
95
|
+
contentHeight: {
|
|
96
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
97
|
+
default: any;
|
|
98
|
+
};
|
|
91
99
|
}>> & {
|
|
92
100
|
onClose?: (...args: any[]) => any;
|
|
93
101
|
onOpen?: (...args: any[]) => any;
|
|
@@ -95,5 +103,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
95
103
|
onOpened?: (...args: any[]) => any;
|
|
96
104
|
}, {
|
|
97
105
|
isTest: boolean;
|
|
106
|
+
contentHeight: string | number;
|
|
98
107
|
}, {}>;
|
|
99
108
|
export default _default;
|
|
@@ -18,7 +18,7 @@ import _sfc_main$5 from "./super-page-dialog.vue.js";
|
|
|
18
18
|
import { useRoute, useRouter } from "vue-router";
|
|
19
19
|
import { jumpToPage } from "agilebuilder-ui/src/utils/jump-page-utils";
|
|
20
20
|
import { setSessionCache } from "agilebuilder-ui/src/utils/auth";
|
|
21
|
-
import { deepCopy } from "../utils/common-util.js";
|
|
21
|
+
import { isNumber, deepCopy } from "../utils/common-util.js";
|
|
22
22
|
const _hoisted_1 = { class: "app-container" };
|
|
23
23
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
24
24
|
__name: "super-page",
|
|
@@ -71,6 +71,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
71
|
pageRequest: {
|
|
72
72
|
type: Object,
|
|
73
73
|
required: false
|
|
74
|
+
},
|
|
75
|
+
// 页面高度
|
|
76
|
+
contentHeight: {
|
|
77
|
+
type: [String, Number],
|
|
78
|
+
default: null
|
|
74
79
|
}
|
|
75
80
|
},
|
|
76
81
|
emits: ["open", "opened", "close", "closed"],
|
|
@@ -236,9 +241,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
236
241
|
function setContextStyle() {
|
|
237
242
|
nextTick(() => {
|
|
238
243
|
const parentNode = thisRef.value.parentNode ? thisRef.value.parentNode : thisRef.value;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
244
|
+
let myContentHeight = props.contentHeight;
|
|
245
|
+
if (!myContentHeight) {
|
|
246
|
+
const rect = parentNode.getBoundingClientRect();
|
|
247
|
+
myContentHeight = window.innerHeight - rect.y - 40;
|
|
248
|
+
}
|
|
249
|
+
let heightStyle = myContentHeight;
|
|
250
|
+
if (isNumber(myContentHeight)) {
|
|
251
|
+
heightStyle = myContentHeight + "px";
|
|
252
|
+
}
|
|
253
|
+
parentNode.style.height = heightStyle;
|
|
242
254
|
parentNode.style["overflow-y"] = "auto";
|
|
243
255
|
});
|
|
244
256
|
}
|
package/dist/es/index.d.ts
CHANGED
|
@@ -5,9 +5,11 @@ import { getCustomTheme, getCustomThemeOptions, getNumFormatter } from './compon
|
|
|
5
5
|
import { default as cn } from './i18n/langs/cn.js';
|
|
6
6
|
import { default as en } from './i18n/langs/en.js';
|
|
7
7
|
import { getDateShortCuts } from './components/runtime/utils/form/date-shortcuts';
|
|
8
|
+
import { getListCode } from './components/runtime/utils/common-util';
|
|
8
9
|
|
|
9
10
|
export { SuperPageNew, SuperPageDialogNew, getComponentOptionConfigs };
|
|
10
11
|
export { getStandPermissionInfo, getFunctionInfo, FuncType };
|
|
11
12
|
export { getCustomTheme, getCustomThemeOptions, getNumFormatter as getNumFormatterForChart };
|
|
12
13
|
export { getDateShortCuts };
|
|
13
14
|
export { cn, en };
|
|
15
|
+
export { getListCode };
|
package/dist/es/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { getCustomTheme, getCustomThemeOptions, getNumFormatter } from "./compon
|
|
|
6
6
|
import { default as default4 } from "./i18n/langs/cn.js";
|
|
7
7
|
import { default as default5 } from "./i18n/langs/en.js";
|
|
8
8
|
import { getDateShortCuts } from "./components/runtime/utils/form/date-shortcuts.js";
|
|
9
|
+
import { getListCode } from "./components/runtime/utils/common-util.js";
|
|
9
10
|
export {
|
|
10
11
|
FuncType,
|
|
11
12
|
default3 as SuperPageDialogNew,
|
|
@@ -17,6 +18,7 @@ export {
|
|
|
17
18
|
getCustomThemeOptions,
|
|
18
19
|
getDateShortCuts,
|
|
19
20
|
getFunctionInfo,
|
|
21
|
+
getListCode,
|
|
20
22
|
getNumFormatter as getNumFormatterForChart,
|
|
21
23
|
getStandPermissionInfo
|
|
22
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.92",
|
|
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.60",
|
|
52
52
|
"axios": "^1.6.8",
|
|
53
53
|
"cypress": "^13.6.6",
|
|
54
54
|
"element-plus": "^2.6.1",
|