super-page-designer 2.2.93 → 2.2.96

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.
Files changed (31) hide show
  1. package/dist/es/components/design/index.d.ts +2 -1
  2. package/dist/es/components/design/utils/assemblys-config.js +1 -1
  3. package/dist/es/components/design/utils/page-table-util.js +23 -21
  4. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +19 -19
  5. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.d.ts +31 -0
  6. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +2 -2
  7. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +113 -0
  8. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
  9. package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +1 -1
  10. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +4 -4
  11. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
  12. package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +13 -7
  13. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +6 -6
  14. package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +5 -5
  15. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
  16. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +3 -3
  17. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +11 -11
  18. package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +18 -18
  19. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +16 -16
  20. package/dist/es/components/design/views/assemblys/object-design.vue.js +1 -1
  21. package/dist/es/components/design/views/design/page-event/{config.vue.js → config.vue2.js} +1 -1
  22. package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +46 -46
  23. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
  24. package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
  25. package/dist/es/index.d.ts +1 -2
  26. package/dist/es/index.js +2 -0
  27. package/dist/es/style.css +17 -20
  28. package/package.json +5 -5
  29. package/dist/es/components/design/index.js +0 -4
  30. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue3.js +0 -96
  31. /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +0 -0
package/dist/es/style.css CHANGED
@@ -830,7 +830,7 @@ fieldset.amb-design-item-selected {
830
830
  content: "\e605";
831
831
  }
832
832
 
833
- .amb-object-design-ref[data-v-e7e64fd1] .el-table td.el-table__cell > .cell {
833
+ .amb-object-design-ref[data-v-309a3fe8] .el-table td.el-table__cell > .cell {
834
834
  padding-left: 2px;
835
835
  padding-right: 2px;
836
836
  }.runtime-page-container[data-v-f796b484] {
@@ -930,25 +930,25 @@ fieldset.amb-design-item-selected {
930
930
  }
931
931
  ._amb-page-container_1k9lg_1 ._amb-page-container-header_1k9lg_6 ~ ._amb-page-container-main_1k9lg_9 {
932
932
  height: calc(100vh - 60px);
933
- }.amb-component-popover-icon-list-view[data-v-395bcef1] {
933
+ }.amb-component-popover-icon-list-view[data-v-6bf149f9] {
934
934
  display: flex;
935
935
  flex-direction: column;
936
936
  gap: 10px;
937
937
  overflow: hidden;
938
938
  height: 300px;
939
939
  }
940
- .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll[data-v-395bcef1] {
940
+ .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll[data-v-6bf149f9] {
941
941
  flex: 1 1 auto;
942
942
  overflow: auto;
943
943
  }
944
- .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid[data-v-395bcef1] {
944
+ .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid[data-v-6bf149f9] {
945
945
  display: grid;
946
946
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
947
947
  grid-gap: 15px;
948
948
  padding: 0;
949
949
  list-style: none;
950
950
  }
951
- .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid .amb-component-popover-icon-grid-item[data-v-395bcef1] {
951
+ .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid .amb-component-popover-icon-grid-item[data-v-6bf149f9] {
952
952
  position: relative;
953
953
  width: 40px;
954
954
  height: 40px;
@@ -960,14 +960,14 @@ fieldset.amb-design-item-selected {
960
960
  border-radius: 5px;
961
961
  line-height: 1;
962
962
  }
963
- .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid .amb-component-popover-icon-grid-item svg[data-v-395bcef1] {
963
+ .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid .amb-component-popover-icon-grid-item svg[data-v-6bf149f9] {
964
964
  width: 24px;
965
965
  height: 24px;
966
966
  }
967
- .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid .amb-component-popover-icon-grid-item[data-v-395bcef1]:hover {
967
+ .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid .amb-component-popover-icon-grid-item[data-v-6bf149f9]:hover {
968
968
  background-color: var(--el-menu-active-color);
969
969
  color: var(--el-color-white);
970
- }.runtime-page-container-tabs-view[data-v-eca0c768] > .el-tabs__content > .el-tab-pane {
970
+ }.runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane {
971
971
  display: flex;
972
972
  flex-direction: row;
973
973
  align-items: flex-start;
@@ -975,16 +975,16 @@ fieldset.amb-design-item-selected {
975
975
  flex-wrap: wrap;
976
976
  gap: var(--runtime-page-container-view-gap, 15px);
977
977
  }
978
- .runtime-page-container-tabs-view[data-v-eca0c768] > .el-tabs__content > .el-tab-pane > div {
978
+ .runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > div {
979
979
  width: 100%;
980
980
  }
981
- .runtime-page-container-tabs-view[data-v-eca0c768] > .el-tabs__content > .el-tab-pane > div[style*="display: inline-block"] {
981
+ .runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > div[style*="display: inline-block"] {
982
982
  width: auto;
983
983
  }
984
- .runtime-page-container-tabs-view[data-v-eca0c768] > .el-tabs__content > .el-tab-pane > [style*="display: inline-block"] {
984
+ .runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > [style*="display: inline-block"] {
985
985
  width: auto;
986
986
  }
987
- .runtime-page-container-tabs-view[data-v-eca0c768] > .el-tabs__content > .el-tab-pane > .amb-design-item-default {
987
+ .runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > .amb-design-item-default {
988
988
  display: flex;
989
989
  flex-direction: row;
990
990
  align-items: flex-start;
@@ -992,16 +992,13 @@ fieldset.amb-design-item-selected {
992
992
  flex-wrap: wrap;
993
993
  gap: var(--runtime-page-container-view-gap, 15px);
994
994
  }
995
- .runtime-page-container-tabs-view[data-v-eca0c768] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div {
995
+ .runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div {
996
996
  width: 100%;
997
997
  }
998
- .runtime-page-container-tabs-view[data-v-eca0c768] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div[draggable] {
998
+ .runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div[style*="display: inline-block"] {
999
999
  width: auto;
1000
1000
  }
1001
- .runtime-page-container-tabs-view[data-v-eca0c768] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div[style*="display: inline-block"] {
1002
- width: auto;
1003
- }
1004
- .runtime-page-container-tabs-view[data-v-eca0c768] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > [style*="display: inline-block"] {
1001
+ .runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > [style*="display: inline-block"] {
1005
1002
  width: auto;
1006
1003
  }.yx-card-box-view-main[data-v-65a008af] > .el-card__header {
1007
1004
  position: relative;
@@ -10933,7 +10930,7 @@ li[data-v-e50b5e57] {
10933
10930
  color: #7b7b7b;
10934
10931
  }
10935
10932
 
10936
- .seleteSort[data-v-3f9861c5] {
10933
+ .seleteSort[data-v-e95dace8] {
10937
10934
  border-radius: 5px;
10938
10935
  border: 1px solid rgba(88, 147, 239);
10939
10936
  }
@@ -10984,7 +10981,7 @@ li[data-v-d06d5717] {
10984
10981
  width: 100%
10985
10982
  }
10986
10983
 
10987
- .seleteSort[data-v-d2fb5ff1] {
10984
+ .seleteSort[data-v-4b6ce1f3] {
10988
10985
  border-radius: 5px;
10989
10986
  border: 1px solid rgba(88, 147, 239);
10990
10987
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-designer",
3
- "version": "2.2.93",
3
+ "version": "2.2.96",
4
4
  "description": "AgileBuilder super page designer",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -29,7 +29,7 @@
29
29
  "@vitejs/plugin-vue": "^5.0.4",
30
30
  "@vueuse/core": "^10.9.0",
31
31
  "agilebuilder-private-libs": "1.0.26",
32
- "agilebuilder-ui": "1.1.31",
32
+ "agilebuilder-ui": "1.1.35",
33
33
  "echarts": "^5.5.0",
34
34
  "element-plus": "^2.6.1",
35
35
  "font-awesome": "^4.7.0",
@@ -40,8 +40,8 @@
40
40
  "pinia": "^2.1.7",
41
41
  "qrcode": "^1.5.3",
42
42
  "quill": "^2.0.1",
43
- "service-flow-designer": "2.2.87",
44
- "super-page-runtime": "2.2.91",
43
+ "service-flow-designer": "2.2.95",
44
+ "super-page-runtime": "2.2.92",
45
45
  "uuid": "^9.0.1",
46
46
  "vite": "^5.1.6",
47
47
  "vite-plugin-node-stdlib-browser": "^0.2.1",
@@ -52,7 +52,7 @@
52
52
  "vue-echarts": "^6.6.9",
53
53
  "vue-router": "^4.3.0",
54
54
  "vuex": "^4.1.0",
55
- "workflow-editor": "0.0.55-up"
55
+ "workflow-editor": "0.0.56-up"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@codemirror/autocomplete": "^6.16.0",
@@ -1,4 +0,0 @@
1
- import e from "./views/design/page-design.vue.js";
2
- export {
3
- e as default
4
- };
@@ -1,96 +0,0 @@
1
- import { defineComponent as e, ref as l, computed as a, resolveComponent as o, resolveDirective as n, createElementBlock as t, createBlock as u, openBlock as i, toDisplayString as c, withCtx as s, createVNode as v, withDirectives as p, unref as r, createElementVNode as m, Fragment as d, renderList as f, normalizeClass as g, vShow as b, createCommentVNode as y, createTextVNode as h, withModifiers as w, nextTick as _ } from "vue";
2
- import { Close as k, Check as x, Search as I, Plus as V, InfoFilled as A, CircleClose as C } from "@element-plus/icons-vue";
3
- import * as O from "@element-plus/icons";
4
- import U from "agilebuilder-ui/src/utils/request";
5
- const $ = { key: 0 }, z = { class: "amb-component-popover-left-menu-main" }, E = ["onClick"], P = { key: 1, style: { display: "flex", gap: "10px", "align-items": "center" } }, S = { key: 2 }, j = { key: 3, class: "amb-component-popover-icon-list-scroll", style: { overflow: "auto" } }, N = { class: "amb-component-popover-icon-grid" }, T = ["onClick"], q = { key: 4, style: { "text-align": "right" } }, L = e({ __name: "common-icon-bind", props: { iconType: String, iconValue: String, size: { type: String, default: "medium" }, showLabel: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(e2, { emit: L2 }) {
6
- var _a, _b;
7
- const M = L2, B = e2, R = l([]), D = l([]), F = l([]), G = l([{ value: "ElementUI", label: "ElementUI" }, { value: "ambIcon", label: "Amb图标库" }, { value: "custom", label: "自定义" }]);
8
- l(false);
9
- const H = l(1), J = l(B.iconType ?? ((_b = (_a = G.value) == null ? void 0 : _a[0]) == null ? void 0 : _b.value)), K = l("");
10
- K.value = B.iconValue;
11
- const Q = l({}), W = l(""), X = l(), Y = l(false), Z = a(() => ["ElementUI"].includes(J.value) ? R.value : ["ambIcon"].includes(J.value) ? D.value : F.value), ee = a(() => (Z.value ?? []).slice(0, 50 * H.value)), le = () => {
12
- ee.value.length > 0 && !Y.value && Z.value.length > ee.value.length && H.value++;
13
- };
14
- const ae = async () => {
15
- if (!(F.value.length > 0)) {
16
- try {
17
- Y.value = true;
18
- const e3 = await U.post(window.$vueApp.config.globalProperties.baseAPI + "/component/general-icon/query", { pageSize: 200, pageNo: 1 }), l2 = (e3 == null ? void 0 : e3.data) ?? [], a2 = [];
19
- for (let e4 of l2) a2.push({ value: e4.iconName, label: e4.iconName });
20
- Q.value.customOptions = a2, F.value = a2;
21
- } catch (e3) {
22
- }
23
- Y.value = false;
24
- }
25
- };
26
- function oe(e3) {
27
- var l2;
28
- H.value = 1, J.value = e3, "ElementUI" === (l2 = J.value) ? R.value = Q.value.elementUIOptions : "custom" === l2 ? ae() : ["ambIcon"].includes(l2) && (async () => {
29
- var _a2, _b2, _c;
30
- if (!(D.value.length > 0)) {
31
- try {
32
- Y.value = true;
33
- let e4 = `${window.location.origin}${window.location.pathname}font-icon/iconfont.json`;
34
- ((_c = (_b2 = (_a2 = window.$vueApp) == null ? void 0 : _a2.config) == null ? void 0 : _b2.globalProperties) == null ? void 0 : _c.fontIconAddress) && (e4 = `${window.$vueApp.config.globalProperties.fontIconAddress}/iconfont.json`);
35
- const l3 = await fetch(e4, { mode: "cors" }).then((e5) => e5.json()), { css_prefix_text: a2, glyphs: o2 = [] } = l3 ?? {};
36
- D.value = o2.map((e5) => ({ label: e5.name, value: `${a2}${e5.font_class}` }));
37
- } catch (e4) {
38
- }
39
- Y.value = false;
40
- }
41
- })();
42
- }
43
- function ne() {
44
- var _a2, _b2;
45
- (_b2 = (_a2 = X.value) == null ? void 0 : _a2.hide) == null ? void 0 : _b2.call(_a2);
46
- }
47
- function te() {
48
- K.value = "", M("update:modelValue", "", ""), X.value.hide();
49
- }
50
- function ue() {
51
- if (W.value = W.value.trim(), !W.value) return void ElMessage.warning("请输入图标名!");
52
- const e3 = Q.value.customOptions || [];
53
- let l2 = false;
54
- for (let a3 of e3) if (a3.value === W.value) {
55
- l2 = true;
56
- break;
57
- }
58
- J.value = "custom", K.value = W.value;
59
- const a2 = W.value;
60
- if (W.value = "", M("update:modelValue", J.value, K.value), X.value.hide(), !l2) {
61
- const e4 = { iconName: a2 };
62
- U.post(window.$vueApp.config.globalProperties.baseAPI + "/bs/general-icon/get-or-create", e4).then((e5) => {
63
- "custom" == J.value && ae();
64
- }).catch((e5) => {
65
- ElMessage.warning("保存图标失败!");
66
- });
67
- }
68
- }
69
- function ie() {
70
- _(() => {
71
- !function() {
72
- if (!Q.value.elementUIOptions) {
73
- if (!window.temp_Icon_Options) {
74
- const e3 = [];
75
- for (const [l2, a2] of Object.entries(O)) e3.push({ value: l2, label: l2, component: a2 });
76
- e3.sort(function(e4, l2) {
77
- const a2 = e4.value, o2 = l2.value;
78
- return a2.localeCompare(o2);
79
- }), window.temp_Icon_Options = e3;
80
- }
81
- Q.value.elementUIOptions = window.temp_Icon_Options;
82
- }
83
- }(), oe(J.value);
84
- });
85
- }
86
- return l(), (l2, a2) => {
87
- const _2 = o("el-icon"), O2 = o("el-input"), U2 = o("el-button"), L3 = o("el-tooltip"), B2 = o("el-scrollbar"), R2 = o("el-col"), D2 = o("el-empty"), F2 = o("el-tag"), H2 = o("SuperIcon"), Q2 = o("el-row"), ae2 = o("el-popover"), ce = n("infinite-scroll"), se = n("loading");
88
- return e2.showLabel ? (i(), t("span", $, c(K.value), 1)) : (i(), u(ae2, { key: 1, ref_key: "popoverRef", ref: X, "popper-class": "amb-component-popover-main", trigger: "click", width: 540 }, { reference: s(() => [v(O2, { readonly: "", size: "small", onClick: ie, modelValue: K.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => K.value = e3), placeholder: "请选择" }, { suffix: s(() => [p(v(_2, { style: { cursor: "pointer" }, onClick: w(te, ["stop"]) }, { default: s(() => [v(r(C))]), _: 1 }, 512), [[b, K.value]])]), _: 1 }, 8, ["modelValue"])]), default: s(() => [v(Q2, null, { default: s(() => [v(L3, { effect: "dark", content: "关闭", placement: "top-end" }, { default: s(() => [v(U2, { type: "text", class: "amb-component-popover-close-btn", icon: r(k), onClick: ne }, null, 8, ["icon"])]), _: 1 }), v(R2, { span: 8 }, { default: s(() => [m("div", z, [v(B2, { "max-height": "100%" }, { default: s(() => [(i(true), t(d, null, f(G.value, (e3) => (i(), t("div", { class: g(["amb-popover-menu-item", e3.value == J.value ? "is-active" : ""]), onClick: (l3) => oe(e3.value) }, [v(_2, null, { default: s(() => [p(v(r(x), null, null, 512), [[b, e3.value == J.value]])]), _: 2 }, 1024), m("span", null, c(e3.label), 1)], 10, E))), 256))]), _: 1 })])]), _: 1 }), p((i(), u(R2, { span: 16, style: { "padding-left": "10px" }, class: "amb-component-popover-icon-list-view" }, { default: s(() => [J.value ? y("", true) : (i(), u(D2, { key: 0, description: "请选择类型", "image-size": 80 })), J.value ? (i(), t("div", P, [v(O2, { modelValue: W.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => W.value = e3), placeholder: "搜索", size: "default", "prefix-icon": r(I), clearable: "", style: { flex: "1 1 auto" } }, null, 8, ["modelValue", "prefix-icon"]), ["custom"].includes(J.value) && W.value && !ee.value.length ? (i(), u(L3, { key: 0, effect: "dark", content: "创建该图标", placement: "top-end" }, { default: s(() => [v(U2, { type: "primary", circle: "", icon: r(V), onClick: ue }, null, 8, ["icon"])]), _: 1 })) : y("", true)])) : y("", true), ["custom"].includes(J.value) ? (i(), t("div", S, [v(_2, null, { default: s(() => [v(r(A))]), _: 1 }), a2[4] || (a2[4] = m("span", { style: { "margin-left": "5px" } }, "输入图标名后点击加号按钮添加", -1)), a2[5] || (a2[5] = h("   ")), v(L3, null, { content: s(() => a2[2] || (a2[2] = [h(" 1.支持fa图标,图标名称详见官网:https://fontawesome.com.cn/v4/icons-ui/; "), m("br", null, null, -1), h(" 2.支持svg图标,需以svg-开头,接svg内容,如:svg-xxxxxx. ")])), default: s(() => [v(F2, { type: "primary" }, { default: s(() => a2[3] || (a2[3] = [h("更多")])), _: 1 })]), _: 1 })])) : y("", true), J.value ? p((i(), t("div", j, [ee.value.length || Y.value ? y("", true) : (i(), u(D2, { key: 0, description: "没有相关图标", "image-size": 80 })), m("div", N, [(i(true), t(d, null, f(ee.value, (e3) => (i(), u(L3, { key: e3.value, effect: "dark", content: e3.label, placement: "top" }, { default: s(() => [m("div", { class: "amb-component-popover-icon-grid-item", onClick: (l3) => {
89
- return a3 = e3, K.value = a3.value, M("update:modelValue", J.value, K.value), void X.value.hide();
90
- var a3;
91
- } }, [v(H2, { iconType: J.value, iconValue: e3.value }, null, 8, ["iconType", "iconValue"])], 8, T)]), _: 2 }, 1032, ["content"]))), 128))])])), [[ce, le]]) : y("", true), J.value ? (i(), t("div", q, c(ee.value.length) + " / " + c(Z.value.length), 1)) : y("", true)]), _: 1 })), [[se, Y.value]])]), _: 1 })]), _: 1 }, 512));
92
- };
93
- } });
94
- export {
95
- L as default
96
- };