super-page-runtime 2.0.9 → 3.0.2
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/AttributeMap.js +4 -0
- package/dist/es/_virtual/Delta.js +4 -0
- package/dist/es/_virtual/Op.js +4 -0
- package/dist/es/_virtual/OpIterator.js +4 -0
- package/dist/es/_virtual/__vite-browser-external.js +4 -0
- package/dist/es/_virtual/_commonjsHelpers.js +8 -0
- package/dist/es/_virtual/_plugin-vue_export-helper.js +10 -0
- package/dist/es/_virtual/dayjs.min.js +4 -0
- package/dist/es/_virtual/index.js +4 -0
- package/dist/es/_virtual/index2.js +4 -0
- package/dist/es/_virtual/index3.js +4 -0
- package/dist/es/components/runtime/index.d.ts +3 -3
- package/dist/es/components/runtime/utils/api/api-util.js +3 -3
- package/dist/es/components/runtime/utils/charts/chart-util.js +1 -14
- package/dist/es/components/runtime/utils/common-util.d.ts +0 -5
- package/dist/es/components/runtime/utils/common-util.js +2 -15
- 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 +7 -6
- package/dist/es/components/runtime/utils/events/validator-util.js +4 -4
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +0 -2
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +0 -19
- package/dist/es/components/runtime/utils/page-helper-util.js +3 -122
- 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/dropdown/dropdown-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +25 -392
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +15 -12
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +17 -13
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +17 -13
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +19 -14
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +5 -4
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +4 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +4 -2
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -5
- package/dist/es/components/runtime/views/super-page.vue.js +7 -20
- package/dist/es/index.d.ts +2 -7
- package/dist/es/index.js +2 -11
- package/dist/lib/components/runtime/index.d.ts +3 -3
- package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -13
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -5
- package/dist/lib/components/runtime/utils/common-util.js +0 -13
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -2
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -19
- package/dist/lib/components/runtime/utils/page-helper-util.js +0 -119
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +3 -376
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +4 -4
- package/dist/lib/components/runtime/views/super-page.vue.js +0 -14
- package/dist/lib/index.d.ts +2 -7
- package/dist/lib/index.js +2 -11
- package/package.json +69 -70
- package/dist/es/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +0 -11
- package/dist/es/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/es/components/runtime/utils/page-permission-util.js +0 -525
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -44
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -62
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -127
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -4
- package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -11
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -126
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const Vue = require("vue");
|
|
3
|
-
const index = require("../../../../../../node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.4.21/node_modules/@element-plus/icons-vue/dist/index.js");
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
5
|
-
__name: "common-chart-header-breadcrumb",
|
|
6
|
-
props: {
|
|
7
|
-
headerInfo: {
|
|
8
|
-
type: Object,
|
|
9
|
-
required: true
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
emits: ["close-drill"],
|
|
13
|
-
setup(__props, { emit: __emit }) {
|
|
14
|
-
const $emits = __emit;
|
|
15
|
-
function closeDrill(drillIndex) {
|
|
16
|
-
$emits("close-drill", drillIndex);
|
|
17
|
-
}
|
|
18
|
-
return (_ctx, _cache) => {
|
|
19
|
-
const _component_el_tag = Vue.resolveComponent("el-tag");
|
|
20
|
-
const _component_el_breadcrumb = Vue.resolveComponent("el-breadcrumb");
|
|
21
|
-
return Vue.openBlock(), Vue.createBlock(_component_el_breadcrumb, { "separator-icon": Vue.unref(index.ArrowRight) }, {
|
|
22
|
-
default: Vue.withCtx(() => [
|
|
23
|
-
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(__props.headerInfo.drillOptions, (tag, index2) => {
|
|
24
|
-
return Vue.openBlock(), Vue.createBlock(_component_el_tag, {
|
|
25
|
-
key: tag.name,
|
|
26
|
-
closable: "",
|
|
27
|
-
type: "success",
|
|
28
|
-
style: { "margin-left": "4px" },
|
|
29
|
-
onClose: ($event) => closeDrill(index2)
|
|
30
|
-
}, {
|
|
31
|
-
default: Vue.withCtx(() => [
|
|
32
|
-
Vue.createTextVNode(Vue.toDisplayString(tag.label), 1)
|
|
33
|
-
]),
|
|
34
|
-
_: 2
|
|
35
|
-
}, 1032, ["onClose"]);
|
|
36
|
-
}), 128))
|
|
37
|
-
]),
|
|
38
|
-
_: 1
|
|
39
|
-
}, 8, ["separator-icon"]);
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
module.exports = _sfc_main;
|
package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const Vue = require("vue");
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
4
|
-
__name: "common-chart-header-group",
|
|
5
|
-
props: {
|
|
6
|
-
headerInfo: {
|
|
7
|
-
type: Object,
|
|
8
|
-
required: true
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
setup(__props) {
|
|
12
|
-
const props = __props;
|
|
13
|
-
Vue.watch(props.headerInfo, () => {
|
|
14
|
-
console.log("props.headerInfo", props.headerInfo);
|
|
15
|
-
});
|
|
16
|
-
return (_ctx, _cache) => {
|
|
17
|
-
const _component_el_checkbox = Vue.resolveComponent("el-checkbox");
|
|
18
|
-
const _component_el_checkbox_group = Vue.resolveComponent("el-checkbox-group");
|
|
19
|
-
const _component_el_radio = Vue.resolveComponent("el-radio");
|
|
20
|
-
const _component_el_radio_button = Vue.resolveComponent("el-radio-button");
|
|
21
|
-
const _component_el_radio_group = Vue.resolveComponent("el-radio-group");
|
|
22
|
-
return __props.headerInfo.groupComponent == "checkbox" ? (Vue.openBlock(), Vue.createBlock(_component_el_checkbox_group, {
|
|
23
|
-
key: 0,
|
|
24
|
-
modelValue: __props.headerInfo.groupValue,
|
|
25
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.headerInfo.groupValue = $event)
|
|
26
|
-
}, {
|
|
27
|
-
default: Vue.withCtx(() => [
|
|
28
|
-
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(__props.headerInfo.options, (o) => {
|
|
29
|
-
return Vue.openBlock(), Vue.createBlock(_component_el_checkbox, {
|
|
30
|
-
label: o.label,
|
|
31
|
-
value: o.value
|
|
32
|
-
}, null, 8, ["label", "value"]);
|
|
33
|
-
}), 256))
|
|
34
|
-
]),
|
|
35
|
-
_: 1
|
|
36
|
-
}, 8, ["modelValue"])) : __props.headerInfo.groupComponent == "radio" ? (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, { key: 1 }, Vue.renderList(__props.headerInfo.options, (o) => {
|
|
37
|
-
return Vue.openBlock(), Vue.createBlock(_component_el_radio, {
|
|
38
|
-
modelValue: __props.headerInfo.groupValue,
|
|
39
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.headerInfo.groupValue = $event),
|
|
40
|
-
value: o.value,
|
|
41
|
-
label: o.label
|
|
42
|
-
}, null, 8, ["modelValue", "value", "label"]);
|
|
43
|
-
}), 256)) : (Vue.openBlock(), Vue.createBlock(_component_el_radio_group, {
|
|
44
|
-
key: 2,
|
|
45
|
-
modelValue: __props.headerInfo.groupValue,
|
|
46
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.headerInfo.groupValue = $event)
|
|
47
|
-
}, {
|
|
48
|
-
default: Vue.withCtx(() => [
|
|
49
|
-
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(__props.headerInfo.options, (o) => {
|
|
50
|
-
return Vue.openBlock(), Vue.createBlock(_component_el_radio_button, {
|
|
51
|
-
label: o.label,
|
|
52
|
-
value: o.value
|
|
53
|
-
}, null, 8, ["label", "value"]);
|
|
54
|
-
}), 256))
|
|
55
|
-
]),
|
|
56
|
-
_: 1
|
|
57
|
-
}, 8, ["modelValue"]));
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
module.exports = _sfc_main;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const Vue = require("vue");
|
|
3
|
-
const commonChartHeaderGroup_vue_vue_type_script_setup_true_lang = require("./common-chart-header-group.vue.js");
|
|
4
|
-
const commonChartHeaderBreadcrumb_vue_vue_type_script_setup_true_lang = require("./common-chart-header-breadcrumb.vue.js");
|
|
5
|
-
const _hoisted_1 = { class: "amb-widget-chart-header" };
|
|
6
|
-
const _hoisted_2 = { class: "amb-widget-chart-header-item" };
|
|
7
|
-
const _hoisted_3 = { class: "amb-widget-chart-header-item amb-widget-chart-header-center" };
|
|
8
|
-
const _hoisted_4 = { class: "amb-widget-chart-header-item" };
|
|
9
|
-
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
10
|
-
__name: "common-chart-header",
|
|
11
|
-
props: {
|
|
12
|
-
headerInfo: {
|
|
13
|
-
type: Object,
|
|
14
|
-
required: true
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
emits: ["drill-end"],
|
|
18
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
19
|
-
const props = __props;
|
|
20
|
-
const drillObjRef = Vue.ref(null);
|
|
21
|
-
const $emits = __emit;
|
|
22
|
-
if (!props.headerInfo.drillOptions) {
|
|
23
|
-
props.headerInfo.drillOptions = [];
|
|
24
|
-
}
|
|
25
|
-
function closeDrill(closeIndex) {
|
|
26
|
-
const drillLen = props.headerInfo.drillOptions.length;
|
|
27
|
-
if (closeIndex >= drillLen) {
|
|
28
|
-
console.log("无效的取消操作,", closeIndex, props.headerInfo.drillOptions);
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
for (let i = drillLen - 1; i >= closeIndex; i--) {
|
|
32
|
-
props.headerInfo.drillOptions.splice(i, 1);
|
|
33
|
-
}
|
|
34
|
-
toDrillLevel(closeIndex);
|
|
35
|
-
}
|
|
36
|
-
function drill(params, datas) {
|
|
37
|
-
const currentIndex = props.headerInfo.drillOptions.length;
|
|
38
|
-
if (currentIndex + 1 >= props.headerInfo.options.length) {
|
|
39
|
-
console.log("钻取到最底层了!");
|
|
40
|
-
$emits("drill-end", params);
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
console.log("props.headerInfo.options", currentIndex, props.headerInfo.options);
|
|
44
|
-
const targetGroup = props.headerInfo.options[currentIndex];
|
|
45
|
-
const drillOption = {
|
|
46
|
-
fieldName: targetGroup.target ? targetGroup.target.replace(".", "_") : "",
|
|
47
|
-
label: params.name,
|
|
48
|
-
value: params.name
|
|
49
|
-
};
|
|
50
|
-
props.headerInfo.drillOptions.push(drillOption);
|
|
51
|
-
toDrillLevel(currentIndex + 1);
|
|
52
|
-
}
|
|
53
|
-
function toDrillLevel(drillIndex) {
|
|
54
|
-
const drillParams = {};
|
|
55
|
-
for (let o of props.headerInfo.drillOptions) {
|
|
56
|
-
if (o.fieldName) {
|
|
57
|
-
drillParams[o.fieldName] = o.value;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
props.headerInfo.drillParams = drillParams;
|
|
61
|
-
props.headerInfo.groupValue = props.headerInfo.options[drillIndex].value;
|
|
62
|
-
}
|
|
63
|
-
__expose({
|
|
64
|
-
drill
|
|
65
|
-
});
|
|
66
|
-
return (_ctx, _cache) => {
|
|
67
|
-
return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
68
|
-
Vue.createElementVNode("div", _hoisted_2, [
|
|
69
|
-
Vue.withDirectives(Vue.createElementVNode("label", {
|
|
70
|
-
style: Vue.normalizeStyle(__props.headerInfo.style)
|
|
71
|
-
}, Vue.toDisplayString(__props.headerInfo.title) + " ", 5), [
|
|
72
|
-
[Vue.vShow, __props.headerInfo.title && (!__props.headerInfo.textAlign || __props.headerInfo.textAlign == "left")]
|
|
73
|
-
]),
|
|
74
|
-
__props.headerInfo.showDrill && (!__props.headerInfo.groupPosition || __props.headerInfo.groupPosition == "left") ? (Vue.openBlock(), Vue.createBlock(commonChartHeaderBreadcrumb_vue_vue_type_script_setup_true_lang, {
|
|
75
|
-
key: 0,
|
|
76
|
-
ref_key: "drillObjRef",
|
|
77
|
-
ref: drillObjRef,
|
|
78
|
-
headerInfo: __props.headerInfo,
|
|
79
|
-
onCloseDrill: closeDrill
|
|
80
|
-
}, null, 8, ["headerInfo"])) : Vue.createCommentVNode("", true),
|
|
81
|
-
__props.headerInfo.showGroup && (!__props.headerInfo.groupPosition || __props.headerInfo.groupPosition == "left") ? (Vue.openBlock(), Vue.createBlock(commonChartHeaderGroup_vue_vue_type_script_setup_true_lang, {
|
|
82
|
-
key: 1,
|
|
83
|
-
headerInfo: __props.headerInfo
|
|
84
|
-
}, null, 8, ["headerInfo"])) : Vue.createCommentVNode("", true)
|
|
85
|
-
]),
|
|
86
|
-
Vue.createElementVNode("div", _hoisted_3, [
|
|
87
|
-
Vue.withDirectives(Vue.createElementVNode("label", {
|
|
88
|
-
style: Vue.normalizeStyle(__props.headerInfo.style)
|
|
89
|
-
}, Vue.toDisplayString(__props.headerInfo.title) + " ", 5), [
|
|
90
|
-
[Vue.vShow, __props.headerInfo.title && __props.headerInfo.textAlign == "center"]
|
|
91
|
-
]),
|
|
92
|
-
__props.headerInfo.showDrill && __props.headerInfo.groupPosition == "center" ? (Vue.openBlock(), Vue.createBlock(commonChartHeaderBreadcrumb_vue_vue_type_script_setup_true_lang, {
|
|
93
|
-
key: 0,
|
|
94
|
-
headerInfo: __props.headerInfo,
|
|
95
|
-
onCloseDrill: closeDrill,
|
|
96
|
-
ref_key: "drillObjRef",
|
|
97
|
-
ref: drillObjRef
|
|
98
|
-
}, null, 8, ["headerInfo"])) : Vue.createCommentVNode("", true),
|
|
99
|
-
__props.headerInfo.showGroup && __props.headerInfo.groupPosition == "center" ? (Vue.openBlock(), Vue.createBlock(commonChartHeaderGroup_vue_vue_type_script_setup_true_lang, {
|
|
100
|
-
key: 1,
|
|
101
|
-
headerInfo: __props.headerInfo
|
|
102
|
-
}, null, 8, ["headerInfo"])) : Vue.createCommentVNode("", true)
|
|
103
|
-
]),
|
|
104
|
-
Vue.createElementVNode("div", _hoisted_4, [
|
|
105
|
-
Vue.withDirectives(Vue.createElementVNode("label", {
|
|
106
|
-
style: Vue.normalizeStyle(__props.headerInfo.style)
|
|
107
|
-
}, Vue.toDisplayString(__props.headerInfo.title) + " ", 5), [
|
|
108
|
-
[Vue.vShow, __props.headerInfo.title && __props.headerInfo.textAlign == "right"]
|
|
109
|
-
]),
|
|
110
|
-
__props.headerInfo.showDrill && __props.headerInfo.groupPosition == "right" ? (Vue.openBlock(), Vue.createBlock(commonChartHeaderBreadcrumb_vue_vue_type_script_setup_true_lang, {
|
|
111
|
-
key: 0,
|
|
112
|
-
headerInfo: __props.headerInfo,
|
|
113
|
-
onCloseDrill: closeDrill,
|
|
114
|
-
ref_key: "drillObjRef",
|
|
115
|
-
ref: drillObjRef
|
|
116
|
-
}, null, 8, ["headerInfo"])) : Vue.createCommentVNode("", true),
|
|
117
|
-
__props.headerInfo.showGroup && __props.headerInfo.groupPosition == "right" ? (Vue.openBlock(), Vue.createBlock(commonChartHeaderGroup_vue_vue_type_script_setup_true_lang, {
|
|
118
|
-
key: 1,
|
|
119
|
-
headerInfo: __props.headerInfo
|
|
120
|
-
}, null, 8, ["headerInfo"])) : Vue.createCommentVNode("", true)
|
|
121
|
-
])
|
|
122
|
-
]);
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
module.exports = _sfc_main;
|