super-page-runtime 1.0.1 → 1.0.3
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 +3 -3
- package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
- package/dist/es/components/runtime/utils/common-util.js +2 -2
- package/dist/es/components/runtime/utils/eventBus.js +1 -1
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/standard-event.js +6 -6
- package/dist/es/components/runtime/utils/events/validator-util.js +3 -3
- package/dist/es/components/runtime/utils/global-refs.js +1 -1
- package/dist/es/components/runtime/utils/page-helper-util.js +3 -3
- package/dist/es/components/runtime/utils/page-init-util.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +1 -1
- 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 +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue.js +6 -6
- package/dist/es/components/super-page-dialog/super-page-dialog.vue.js +2 -1
- package/dist/es/components/wf-editor/wf-editor.vue.js +1 -1
- package/dist/lib/components/runtime/utils/api/api-util.js +10 -10
- package/dist/lib/components/runtime/utils/assemblys-config.js +35 -35
- package/dist/lib/components/runtime/utils/common-util.js +4 -4
- package/dist/lib/components/runtime/utils/eventBus.js +1 -1
- package/dist/lib/components/runtime/utils/events/event-util.js +8 -8
- package/dist/lib/components/runtime/utils/events/standard-event.js +66 -66
- package/dist/lib/components/runtime/utils/events/validator-util.js +14 -14
- package/dist/lib/components/runtime/utils/global-refs.js +1 -1
- package/dist/lib/components/runtime/utils/page-helper-util.js +4 -4
- package/dist/lib/components/runtime/utils/page-init-util.js +3 -3
- package/dist/lib/components/runtime/utils/table-utils.js +1 -1
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +31 -31
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +9 -9
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +41 -41
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +24 -24
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +21 -21
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +22 -22
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +22 -22
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +23 -23
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +21 -21
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +30 -30
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +27 -27
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +20 -20
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +25 -25
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +26 -26
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +13 -13
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +12 -12
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +6 -6
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +23 -23
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +12 -12
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +26 -26
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +15 -15
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +11 -11
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +3 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +24 -24
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +39 -39
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +27 -27
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +12 -12
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +23 -23
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +25 -25
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +58 -58
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +42 -42
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +25 -25
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +8 -8
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +25 -25
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +28 -28
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +41 -41
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +24 -24
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +21 -21
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +25 -25
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +18 -18
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +9 -9
- package/dist/lib/components/runtime/views/super-page.vue.js +60 -60
- package/dist/lib/components/super-page-dialog/super-page-dialog.vue.js +15 -14
- package/dist/lib/components/wf-editor/wf-editor.vue.js +4 -4
- package/package.json +1 -1
- package/dist/es/components/runtime/index.d.ts +0 -3
- package/dist/es/components/runtime/utils/api/api-util.d.ts +0 -11
- package/dist/es/components/runtime/utils/common-util.d.ts +0 -11
- package/dist/es/components/runtime/utils/eventBus.d.ts +0 -7
- package/dist/es/components/runtime/utils/events/event-util.d.ts +0 -48
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +0 -61
- package/dist/es/components/runtime/utils/events/validator-util.d.ts +0 -4
- package/dist/es/components/runtime/utils/global-refs.d.ts +0 -59
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +0 -221
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +0 -87
- package/dist/es/components/runtime/utils/page-init-util.d.ts +0 -38
- package/dist/es/components/runtime/utils/store-util.d.ts +0 -15
- package/dist/es/components/runtime/utils/store.d.ts +0 -2
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/es/components/runtime/views/super-page.vue.d.ts +0 -91
- package/dist/es/components/super-page-dialog/index.d.ts +0 -3
- package/dist/es/components/super-page-dialog/super-page-dialog.vue.d.ts +0 -36
- package/dist/es/components/wf-editor/index.d.ts +0 -3
- package/dist/es/components/wf-editor/wf-editor.vue.d.ts +0 -2
- package/dist/es/index.d.ts +0 -5
- package/dist/lib/components/runtime/index.d.ts +0 -3
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -11
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -11
- package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -48
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -61
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -4
- package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -221
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -87
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -38
- package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
- package/dist/lib/components/runtime/utils/store.d.ts +0 -2
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -91
- package/dist/lib/components/super-page-dialog/index.d.ts +0 -3
- package/dist/lib/components/super-page-dialog/super-page-dialog.vue.d.ts +0 -36
- package/dist/lib/components/wf-editor/index.d.ts +0 -3
- package/dist/lib/components/wf-editor/wf-editor.vue.d.ts +0 -2
- package/dist/lib/index.d.ts +0 -5
- package/dist/super-page-runtime.umd.js +0 -213932
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
3
|
-
const
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const elementPlus = require("element-plus");
|
|
4
4
|
const objectRender_vue_vue_type_script_setup_true_lang = require("../../object-render.vue.js");
|
|
5
|
-
const
|
|
5
|
+
const agilebuilderUi = require("agilebuilder-ui");
|
|
6
6
|
require("../../../../utils/global-refs.js");
|
|
7
|
-
const _sfc_main = /* @__PURE__ */
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
8
8
|
__name: "tabs-runtime",
|
|
9
9
|
props: {
|
|
10
10
|
pageContext: {},
|
|
@@ -13,43 +13,43 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
13
13
|
setup(__props) {
|
|
14
14
|
const props = __props;
|
|
15
15
|
const activeName = props.configure.props.defaultOpen ? props.configure.props.defaultOpen : 1;
|
|
16
|
-
const thisRef =
|
|
16
|
+
const thisRef = vue.ref(null);
|
|
17
17
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
18
18
|
const runtimeStyle = runtimeInfo.style;
|
|
19
19
|
const runtimeClass = runtimeInfo.class;
|
|
20
20
|
const headerStyle = runtimeInfo.headerStyle;
|
|
21
21
|
return (_ctx, _cache) => {
|
|
22
|
-
return
|
|
22
|
+
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTabs), {
|
|
23
23
|
ref_key: "thisRef",
|
|
24
24
|
ref: thisRef,
|
|
25
|
-
modelValue:
|
|
26
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
25
|
+
modelValue: vue.unref(activeName),
|
|
26
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(activeName) ? activeName.value = $event : null),
|
|
27
27
|
type: _ctx.configure.props.cardType,
|
|
28
28
|
"tab-position": _ctx.configure.props.tabPosition,
|
|
29
|
-
style:
|
|
30
|
-
class:
|
|
29
|
+
style: vue.normalizeStyle(vue.unref(runtimeStyle)),
|
|
30
|
+
class: vue.normalizeClass(vue.unref(runtimeClass))
|
|
31
31
|
}, {
|
|
32
|
-
default:
|
|
33
|
-
(
|
|
34
|
-
return
|
|
32
|
+
default: vue.withCtx(() => [
|
|
33
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.configure.items, (item, index) => {
|
|
34
|
+
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTabPane), {
|
|
35
35
|
label: item.label,
|
|
36
36
|
name: item.index
|
|
37
37
|
}, {
|
|
38
|
-
label:
|
|
39
|
-
item.iconType && item.iconValue ? (
|
|
38
|
+
label: vue.withCtx(() => [
|
|
39
|
+
item.iconType && item.iconValue ? (vue.openBlock(), vue.createBlock(vue.unref(agilebuilderUi.SuperIcon), {
|
|
40
40
|
key: 0,
|
|
41
41
|
iconType: item.iconType,
|
|
42
42
|
iconValue: item.iconValue,
|
|
43
43
|
style: { "margin-right": "2px" }
|
|
44
|
-
}, null, 8, ["iconType", "iconValue"])) :
|
|
45
|
-
|
|
46
|
-
style:
|
|
47
|
-
},
|
|
44
|
+
}, null, 8, ["iconType", "iconValue"])) : vue.createCommentVNode("", true),
|
|
45
|
+
vue.createElementVNode("span", {
|
|
46
|
+
style: vue.normalizeStyle(vue.unref(headerStyle))
|
|
47
|
+
}, vue.toDisplayString(item.label), 5)
|
|
48
48
|
]),
|
|
49
|
-
default:
|
|
50
|
-
|
|
51
|
-
(
|
|
52
|
-
return
|
|
49
|
+
default: vue.withCtx(() => [
|
|
50
|
+
vue.createElementVNode("div", null, [
|
|
51
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.items, (element, itemIndex) => {
|
|
52
|
+
return vue.openBlock(), vue.createBlock(objectRender_vue_vue_type_script_setup_true_lang, {
|
|
53
53
|
key: element.uuid,
|
|
54
54
|
pageContext: _ctx.pageContext,
|
|
55
55
|
configure: element
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const vue = require("vue");
|
|
3
3
|
const objectRender_vue_vue_type_script_setup_true_lang = require("../../object-render.vue.js");
|
|
4
4
|
require("../../../../utils/global-refs.js");
|
|
5
5
|
const _hoisted_1 = { class: "amb-widget-tools-parent" };
|
|
6
|
-
const _sfc_main = /* @__PURE__ */
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
7
7
|
__name: "tools-runtime",
|
|
8
8
|
props: {
|
|
9
9
|
pageContext: {},
|
|
@@ -11,11 +11,11 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
11
11
|
},
|
|
12
12
|
setup(__props) {
|
|
13
13
|
const props = __props;
|
|
14
|
-
const thisRef =
|
|
14
|
+
const thisRef = vue.ref(null);
|
|
15
15
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
16
|
-
const runtimeStyle =
|
|
16
|
+
const runtimeStyle = vue.ref(runtimeInfo.style ? runtimeInfo.style : {});
|
|
17
17
|
const runtimeClass = runtimeInfo.class;
|
|
18
|
-
|
|
18
|
+
vue.onMounted(() => {
|
|
19
19
|
if (thisRef.value && thisRef.value.parentNode) {
|
|
20
20
|
const resizeObserver2 = new ResizeObserver((entries) => {
|
|
21
21
|
for (let entry of entries) {
|
|
@@ -25,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
25
25
|
resizeObserver2.observe(thisRef.value.parentNode);
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
-
|
|
28
|
+
vue.onUnmounted(() => {
|
|
29
29
|
});
|
|
30
30
|
function caculatePositionStyle() {
|
|
31
31
|
if (thisRef.value && thisRef.value.parentNode) {
|
|
@@ -53,15 +53,15 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
return (_ctx, _cache) => {
|
|
56
|
-
return
|
|
57
|
-
|
|
58
|
-
class:
|
|
59
|
-
style:
|
|
56
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
57
|
+
vue.createElementVNode("div", {
|
|
58
|
+
class: vue.normalizeClass(["amb-widget-container-tool amb-widget-tools", vue.unref(runtimeClass)]),
|
|
59
|
+
style: vue.normalizeStyle(runtimeStyle.value),
|
|
60
60
|
ref_key: "thisRef",
|
|
61
61
|
ref: thisRef
|
|
62
62
|
}, [
|
|
63
|
-
(
|
|
64
|
-
return
|
|
63
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.configure.items, (element, itemIndex) => {
|
|
64
|
+
return vue.openBlock(), vue.createBlock(objectRender_vue_vue_type_script_setup_true_lang, {
|
|
65
65
|
key: element.uuid,
|
|
66
66
|
pageContext: _ctx.pageContext,
|
|
67
67
|
configure: element
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
3
|
-
require("
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
require("agilebuilder-ui");
|
|
4
4
|
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
5
5
|
const commonUtil = require("../../../../utils/common-util.js");
|
|
6
6
|
const standardEvent = require("../../../../utils/events/standard-event.js");
|
|
7
|
-
const
|
|
7
|
+
const commonUtil$1 = require("agilebuilder-ui/src/utils/common-util");
|
|
8
8
|
const tableUtils = require("../../../../utils/table-utils.js");
|
|
9
9
|
const eventBus = require("../../../../utils/eventBus.js");
|
|
10
|
-
const _sfc_main = /* @__PURE__ */
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
11
|
__name: "main-table-runtime",
|
|
12
12
|
props: {
|
|
13
13
|
pageContext: {},
|
|
@@ -23,22 +23,22 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
23
23
|
const system = pageContext.entity.system;
|
|
24
24
|
const tableName = pageContext.tableName;
|
|
25
25
|
const baseURL = window["$vueApp"].config.globalProperties.baseURL;
|
|
26
|
-
const operationButtonObj =
|
|
27
|
-
const eventName =
|
|
28
|
-
const listOptions =
|
|
26
|
+
const operationButtonObj = vue.ref(null);
|
|
27
|
+
const eventName = vue.ref(null);
|
|
28
|
+
const listOptions = vue.ref({});
|
|
29
29
|
listOptions.value = getOptions();
|
|
30
|
-
const gridRef =
|
|
30
|
+
const gridRef = vue.ref(null);
|
|
31
31
|
const urlToListData = getUrlToListData(system);
|
|
32
32
|
const listCode = commonUtil.getListCode(pageContext.code, pageContext.version, configure.uuid);
|
|
33
33
|
const myPageCode = pageContext.code;
|
|
34
34
|
const eventPageInfo = myPageCode + "_" + listCode;
|
|
35
|
-
const selections =
|
|
35
|
+
const selections = vue.ref([]);
|
|
36
36
|
const listToolbarFormData = pageContext.entity.page;
|
|
37
|
-
const searchFormInfo =
|
|
37
|
+
const searchFormInfo = vue.ref({ data: [] });
|
|
38
38
|
const superGridItems = pageContext.superGridItems;
|
|
39
39
|
const superGridSetting = superGridItems ? superGridItems[configure.uuid] : null;
|
|
40
40
|
console.log("superGridSetting1111===", superGridItems, superGridSetting);
|
|
41
|
-
|
|
41
|
+
vue.onMounted(() => {
|
|
42
42
|
window.addEventListener("message", recieveMessage);
|
|
43
43
|
eventBus.$on(
|
|
44
44
|
eventPageInfo + "-close-component-page-dialog",
|
|
@@ -54,25 +54,25 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
54
54
|
eventBus.$emit(eventPageInfo + "_close-super-dialog");
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
|
-
|
|
57
|
+
vue.watch(
|
|
58
58
|
() => props.pageContext.searchFormData,
|
|
59
59
|
(searchFormData) => {
|
|
60
60
|
searchFormInfo.value.data = searchFormData;
|
|
61
61
|
}
|
|
62
62
|
);
|
|
63
|
-
|
|
63
|
+
vue.watch(
|
|
64
64
|
() => props.pageContext.entity.data,
|
|
65
65
|
(searchFormData) => {
|
|
66
66
|
searchGridData(props.pageContext.entity.data);
|
|
67
67
|
}
|
|
68
68
|
);
|
|
69
|
-
|
|
69
|
+
vue.watch(
|
|
70
70
|
() => props.pageContext.entity.page,
|
|
71
71
|
(searchFormData) => {
|
|
72
72
|
searchGridData(props.pageContext.entity.page);
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
|
-
|
|
75
|
+
vue.onUnmounted(() => {
|
|
76
76
|
eventBus.$off(eventPageInfo + "-close-component-page-dialog");
|
|
77
77
|
eventBus.$off(eventPageInfo + "_close-dialog-get-entity");
|
|
78
78
|
});
|
|
@@ -323,7 +323,7 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
323
323
|
if (!beforeClickResult) {
|
|
324
324
|
return;
|
|
325
325
|
}
|
|
326
|
-
if (
|
|
326
|
+
if (commonUtil$1.isPromise(beforeClickResult)) {
|
|
327
327
|
beforeClickResult.then((result) => {
|
|
328
328
|
if (result) {
|
|
329
329
|
gridRef.value.restoreRow(rowIndex, listCode);
|
|
@@ -354,7 +354,7 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
354
354
|
if (!beforeClickResult) {
|
|
355
355
|
return;
|
|
356
356
|
}
|
|
357
|
-
if (
|
|
357
|
+
if (commonUtil$1.isPromise(beforeClickResult)) {
|
|
358
358
|
beforeClickResult.then((result) => {
|
|
359
359
|
if (result) {
|
|
360
360
|
editRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure);
|
|
@@ -395,7 +395,7 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
395
395
|
if (!beforeClickResult) {
|
|
396
396
|
return;
|
|
397
397
|
}
|
|
398
|
-
if (
|
|
398
|
+
if (commonUtil$1.isPromise(beforeClickResult)) {
|
|
399
399
|
beforeClickResult.then((result) => {
|
|
400
400
|
if (result) {
|
|
401
401
|
deleteRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure);
|
|
@@ -613,17 +613,17 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
613
613
|
validatorSunTableListData
|
|
614
614
|
});
|
|
615
615
|
return (_ctx, _cache) => {
|
|
616
|
-
const _component_super_grid =
|
|
617
|
-
return
|
|
618
|
-
|
|
616
|
+
const _component_super_grid = vue.resolveComponent("super-grid");
|
|
617
|
+
return vue.openBlock(), vue.createElementBlock("div", null, [
|
|
618
|
+
vue.createVNode(_component_super_grid, {
|
|
619
619
|
ref_key: "gridRef",
|
|
620
620
|
ref: gridRef,
|
|
621
|
-
url:
|
|
621
|
+
url: vue.unref(urlToListData),
|
|
622
622
|
options: listOptions.value,
|
|
623
|
-
code:
|
|
624
|
-
settings:
|
|
623
|
+
code: vue.unref(superGridSetting) ? null : vue.unref(listCode),
|
|
624
|
+
settings: vue.unref(superGridSetting),
|
|
625
625
|
"search-form-info": searchFormInfo.value,
|
|
626
|
-
"list-toolbar-form-data":
|
|
626
|
+
"list-toolbar-form-data": vue.unref(listToolbarFormData),
|
|
627
627
|
onSelect: select,
|
|
628
628
|
onSelectAll: selectAll,
|
|
629
629
|
onSelectionChange: selectionChange,
|
|
@@ -633,7 +633,7 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
633
633
|
onRowDblclick: rowDblClickEvent,
|
|
634
634
|
onHeaderClick: headerClickEvent,
|
|
635
635
|
onRefresh: clearSelections,
|
|
636
|
-
onNewOpenGridDialog:
|
|
636
|
+
onNewOpenGridDialog: vue.unref(tableUtils.popupToPage)
|
|
637
637
|
}, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])
|
|
638
638
|
]);
|
|
639
639
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const vue = require("vue");
|
|
3
3
|
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
4
4
|
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
5
5
|
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
6
6
|
const eventBus = require("../../../../utils/eventBus.js");
|
|
7
7
|
const tableUtils = require("../../../../utils/table-utils.js");
|
|
8
8
|
const commonUtil = require("../../../../utils/common-util.js");
|
|
9
|
-
const _sfc_main = /* @__PURE__ */
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
10
10
|
__name: "sub-table-runtime",
|
|
11
11
|
props: {
|
|
12
12
|
pageContext: {},
|
|
@@ -20,8 +20,8 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
20
20
|
const prop = configure.props && configure.props.base ? configure.props.base.prop : null;
|
|
21
21
|
const additionalParamMap = pageContext.entity.request;
|
|
22
22
|
configure.events;
|
|
23
|
-
|
|
24
|
-
const selections =
|
|
23
|
+
vue.ref({});
|
|
24
|
+
const selections = vue.ref([]);
|
|
25
25
|
const superGridItems = pageContext.superGridItems;
|
|
26
26
|
const superGridSetting = superGridItems ? superGridItems[configure.uuid] : null;
|
|
27
27
|
console.log("superGridSetting===", superGridItems, superGridSetting);
|
|
@@ -30,9 +30,9 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
30
30
|
const runtimeClass = runtimeInfo.class;
|
|
31
31
|
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
32
32
|
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
33
|
-
const listViewShowFlag =
|
|
33
|
+
const listViewShowFlag = vue.ref(false);
|
|
34
34
|
const baseURL = window["$vueApp"].config.globalProperties.baseURL;
|
|
35
|
-
const listViewOptions =
|
|
35
|
+
const listViewOptions = vue.ref({
|
|
36
36
|
subTableData: null,
|
|
37
37
|
extraParam: {},
|
|
38
38
|
operations: {},
|
|
@@ -56,7 +56,7 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
56
56
|
} else {
|
|
57
57
|
listViewOptions.value.showPageArea = true;
|
|
58
58
|
}
|
|
59
|
-
const gridRef =
|
|
59
|
+
const gridRef = vue.ref(null);
|
|
60
60
|
const listCode = commonUtil.getListCode(pageContext.code, pageContext.version, configure.uuid);
|
|
61
61
|
function currencyListViewSetting(canRrefreshSubtableData) {
|
|
62
62
|
if (canRrefreshSubtableData === void 0) {
|
|
@@ -419,16 +419,16 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
419
419
|
setValue
|
|
420
420
|
});
|
|
421
421
|
return (_ctx, _cache) => {
|
|
422
|
-
const _component_super_grid =
|
|
423
|
-
return
|
|
424
|
-
listViewShowFlag.value ? (
|
|
422
|
+
const _component_super_grid = vue.resolveComponent("super-grid");
|
|
423
|
+
return vue.openBlock(), vue.createElementBlock("div", null, [
|
|
424
|
+
listViewShowFlag.value ? (vue.openBlock(), vue.createBlock(_component_super_grid, {
|
|
425
425
|
key: 0,
|
|
426
426
|
ref_key: "gridRef",
|
|
427
427
|
ref: gridRef,
|
|
428
|
-
url:
|
|
428
|
+
url: vue.unref(baseURL) + "/common/super-forms/sub-table",
|
|
429
429
|
options: listViewOptions.value,
|
|
430
|
-
code:
|
|
431
|
-
settings:
|
|
430
|
+
code: vue.unref(superGridSetting) ? null : vue.unref(listCode),
|
|
431
|
+
settings: vue.unref(superGridSetting),
|
|
432
432
|
onSelect: select,
|
|
433
433
|
onSelectAll: selectAll,
|
|
434
434
|
onSelectionChange: selectionChange,
|
|
@@ -443,9 +443,9 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
443
443
|
onRefresMainTableFields: refresMainTableFields,
|
|
444
444
|
onSetSelectOptions: setSelectOptions,
|
|
445
445
|
onChangeRowsPerPage: changeRowsPerpage,
|
|
446
|
-
onNewOpenGridDialog:
|
|
446
|
+
onNewOpenGridDialog: vue.unref(tableUtils.popupToPage),
|
|
447
447
|
onChangeFormData: changeFormData
|
|
448
|
-
}, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) :
|
|
448
|
+
}, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : vue.createCommentVNode("", true)
|
|
449
449
|
]);
|
|
450
450
|
};
|
|
451
451
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
3
|
-
require("
|
|
4
|
-
require("
|
|
5
|
-
require("
|
|
6
|
-
require("
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
require("agilebuilder-ui");
|
|
4
|
+
require("agilebuilder-ui/src/utils/request");
|
|
5
|
+
require("dayjs");
|
|
6
|
+
require("agilebuilder-ui/src/utils/calculator/calculator-util");
|
|
7
7
|
require("../../../../utils/global-refs.js");
|
|
8
8
|
const subTableRuntime_vue_vue_type_script_setup_true_lang = require("./sub-table-runtime.vue.js");
|
|
9
9
|
const mainTableRuntime_vue_vue_type_script_setup_true_lang = require("./main-table-runtime.vue.js");
|
|
10
|
-
const _sfc_main = /* @__PURE__ */
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
11
|
__name: "table-runtime",
|
|
12
12
|
props: {
|
|
13
13
|
pageContext: {},
|
|
@@ -16,7 +16,7 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
16
16
|
setup(__props, { expose: __expose }) {
|
|
17
17
|
const props = __props;
|
|
18
18
|
const pageType = props.pageContext.pageType;
|
|
19
|
-
const tableConfigure =
|
|
19
|
+
const tableConfigure = vue.ref(null);
|
|
20
20
|
const tableUuid = props.configure.uuid;
|
|
21
21
|
const superGridItems = props.pageContext.superGridItems;
|
|
22
22
|
const superGridSetting = superGridItems ? superGridItems[tableUuid] : null;
|
|
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
24
24
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
25
25
|
runtimeInfo.style;
|
|
26
26
|
runtimeInfo.class;
|
|
27
|
-
const gridRef =
|
|
27
|
+
const gridRef = vue.ref(null);
|
|
28
28
|
function validatorSunTableListData() {
|
|
29
29
|
if (pageType && pageType === "form") {
|
|
30
30
|
return gridRef.value.validatorSunTableListData();
|
|
@@ -66,14 +66,14 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
66
66
|
validatorSunTableListData
|
|
67
67
|
});
|
|
68
68
|
return (_ctx, _cache) => {
|
|
69
|
-
return
|
|
70
|
-
|
|
69
|
+
return vue.openBlock(), vue.createElementBlock("div", null, [
|
|
70
|
+
vue.unref(pageType) && vue.unref(pageType) === "form" ? (vue.openBlock(), vue.createBlock(subTableRuntime_vue_vue_type_script_setup_true_lang, {
|
|
71
71
|
key: 0,
|
|
72
72
|
ref_key: "gridRef",
|
|
73
73
|
ref: gridRef,
|
|
74
74
|
pageContext: _ctx.pageContext,
|
|
75
75
|
configure: _ctx.configure
|
|
76
|
-
}, null, 8, ["pageContext", "configure"])) : (
|
|
76
|
+
}, null, 8, ["pageContext", "configure"])) : (vue.openBlock(), vue.createBlock(mainTableRuntime_vue_vue_type_script_setup_true_lang, {
|
|
77
77
|
key: 1,
|
|
78
78
|
ref_key: "gridRef",
|
|
79
79
|
ref: gridRef,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const vue = require("vue");
|
|
3
3
|
const _hoisted_1 = { style: { "text-align": "center", "color": "red" } };
|
|
4
|
-
const _sfc_main = /* @__PURE__ */
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
5
5
|
__name: "error-render",
|
|
6
6
|
props: {
|
|
7
7
|
configure: {
|
|
@@ -15,7 +15,7 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
15
15
|
},
|
|
16
16
|
setup(__props) {
|
|
17
17
|
return (_ctx, _cache) => {
|
|
18
|
-
return
|
|
18
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, " 不能识别的组件类型【" + vue.toDisplayString(__props.configure.name) + "】 ", 1);
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const vue = require("vue");
|
|
3
3
|
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
4
4
|
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
5
|
-
const _sfc_main = /* @__PURE__ */
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
6
6
|
__name: "checkbox-runtime",
|
|
7
7
|
props: {
|
|
8
8
|
pageContext: {},
|
|
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
12
12
|
const props = __props;
|
|
13
13
|
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
14
14
|
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
15
|
-
const dynamicModelMethod =
|
|
15
|
+
const dynamicModelMethod = vue.computed({
|
|
16
16
|
get() {
|
|
17
17
|
return pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
18
18
|
},
|
|
@@ -25,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
25
25
|
const runtimeClass = runtimeInfo.class;
|
|
26
26
|
const headerStyle = runtimeInfo.headerStyle;
|
|
27
27
|
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
28
|
-
const listOptions =
|
|
28
|
+
const listOptions = vue.ref(designProperty.options ? designProperty.options : []);
|
|
29
29
|
const cacheOptions = pageHelperUtil.getOptionDatasFromPage(props.pageContext, props.configure);
|
|
30
30
|
if (cacheOptions.length > 0) {
|
|
31
31
|
listOptions.value = cacheOptions;
|
|
@@ -68,7 +68,7 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
for (let preField of preFields) {
|
|
71
|
-
|
|
71
|
+
vue.watch(entity[preField], () => {
|
|
72
72
|
monitorFieldChange();
|
|
73
73
|
});
|
|
74
74
|
}
|
|
@@ -114,31 +114,31 @@ const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
|
114
114
|
updateOptions
|
|
115
115
|
});
|
|
116
116
|
return (_ctx, _cache) => {
|
|
117
|
-
const _component_el_checkbox =
|
|
118
|
-
const _component_el_checkbox_group =
|
|
119
|
-
const _component_el_form_item =
|
|
120
|
-
return
|
|
121
|
-
class:
|
|
122
|
-
"label-width":
|
|
123
|
-
style:
|
|
117
|
+
const _component_el_checkbox = vue.resolveComponent("el-checkbox");
|
|
118
|
+
const _component_el_checkbox_group = vue.resolveComponent("el-checkbox-group");
|
|
119
|
+
const _component_el_form_item = vue.resolveComponent("el-form-item");
|
|
120
|
+
return vue.openBlock(), vue.createBlock(_component_el_form_item, {
|
|
121
|
+
class: vue.normalizeClass(vue.unref(runtimeClass)),
|
|
122
|
+
"label-width": vue.unref(designProperty).labelWidth,
|
|
123
|
+
style: vue.normalizeStyle(vue.unref(runtimeStyle))
|
|
124
124
|
}, {
|
|
125
|
-
label:
|
|
126
|
-
|
|
125
|
+
label: vue.withCtx(() => [
|
|
126
|
+
vue.unref(designProperty).tittleShow ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
127
127
|
key: 0,
|
|
128
|
-
style:
|
|
129
|
-
},
|
|
128
|
+
style: vue.normalizeStyle({ ...vue.unref(headerStyle) })
|
|
129
|
+
}, vue.toDisplayString(vue.unref(designProperty).title), 5)) : vue.createCommentVNode("", true)
|
|
130
130
|
]),
|
|
131
|
-
default:
|
|
132
|
-
|
|
133
|
-
disabled:
|
|
134
|
-
size:
|
|
135
|
-
onChange:
|
|
131
|
+
default: vue.withCtx(() => [
|
|
132
|
+
vue.createVNode(_component_el_checkbox_group, {
|
|
133
|
+
disabled: vue.unref(designProperty).state === "disabled",
|
|
134
|
+
size: vue.unref(designProperty).size,
|
|
135
|
+
onChange: vue.unref(designProperty).changeMethod,
|
|
136
136
|
modelValue: dynamicModelMethod.value,
|
|
137
137
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
|
|
138
138
|
}, {
|
|
139
|
-
default:
|
|
140
|
-
(
|
|
141
|
-
return
|
|
139
|
+
default: vue.withCtx(() => [
|
|
140
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(listOptions.value, (item) => {
|
|
141
|
+
return vue.openBlock(), vue.createBlock(_component_el_checkbox, {
|
|
142
142
|
key: item.value,
|
|
143
143
|
value: item.value,
|
|
144
144
|
label: item.label
|