super-page-designer 2.2.89-sit9 → 2.2.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.
Files changed (25) hide show
  1. package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
  2. package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +1 -1
  3. package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-base.vue.js +1 -1
  4. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +7 -0
  5. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +100 -5
  6. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
  7. package/dist/es/components/design/views/assemblys/container/card/card-attr-base.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/container/collapse/collapse-attr-base.vue.js +1 -1
  9. package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr-base.vue.js +1 -1
  10. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
  11. package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue.js +1 -1
  12. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +1 -1
  13. package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +1 -1
  14. package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
  15. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +2 -26
  16. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +26 -2
  17. package/dist/es/components/design/views/assemblys/form/common/pre-suffix.vue.js +1 -1
  18. package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +1 -1
  19. package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-base.vue.js +1 -1
  20. package/dist/es/components/design/views/design/page-event/{config.vue2.js → config.vue.js} +1 -1
  21. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
  22. package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
  23. package/package.json +4 -4
  24. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue3.js +0 -102
  25. /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue3.js → common-variable-bind.vue2.js} +0 -0
@@ -2,7 +2,7 @@ import { defineComponent as e, ref as a, onMounted as l, resolveComponent as o,
2
2
  import { getFormComponentOptions as V } from "../../../../utils/assemblys-config.js";
3
3
  import "../../../../../../stores/page-store.js";
4
4
  /* empty css */
5
- import v from "../../common/common-icon-bind.vue2.js";
5
+ import v from "../../common/common-icon-bind.vue.js";
6
6
  import _ from "agilebuilder-ui/src/utils/request";
7
7
  import y from "../../common/common-function-code.vue.js";
8
8
  import "@element-plus/icons";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as e, ref as l, onMounted as a, resolveComponent as o, createBlock as u, openBlock as t, withCtx as i, createVNode as s, createElementVNode as n, createElementBlock as d, Fragment as p, renderList as r, unref as m, createTextVNode as c, withDirectives as f, vShow as b } from "vue";
2
2
  import { getFormComponentOptions as g } from "../../../../utils/assemblys-config.js";
3
- import V from "../../common/common-icon-bind.vue2.js";
3
+ import V from "../../common/common-icon-bind.vue.js";
4
4
  import v from "../../common/common-function-code.vue.js";
5
5
  import _ from "agilebuilder-ui/src/utils/request";
6
6
  import y from "../../common/common-i18n-key-input.vue.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as e, ref as l, onMounted as a, resolveComponent as o, createBlock as t, openBlock as u, withCtx as d, createVNode as n, createElementVNode as i, createElementBlock as s, Fragment as r, renderList as p, unref as m, createTextVNode as c, withDirectives as f, vShow as b, createCommentVNode as g } from "vue";
2
2
  import { getFormComponentOptions as _ } from "../../../../utils/assemblys-config.js";
3
- import V from "../../common/common-icon-bind.vue2.js";
3
+ import V from "../../common/common-icon-bind.vue.js";
4
4
  import v from "../../common/common-function-code.vue.js";
5
5
  import y from "./print-template-select.vue.js";
6
6
  import x from "../../common/common-i18n-key-input.vue.js";
@@ -0,0 +1,7 @@
1
+ import o from "./common-icon-bind.vue2.js";
2
+ /* empty css */
3
+ import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const i = e(o, [["__scopeId", "data-v-d953af54"]]);
5
+ export {
6
+ i as default
7
+ };
@@ -1,7 +1,102 @@
1
- import o from "./common-icon-bind.vue3.js";
2
- /* empty css */
3
- import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const i = e(o, [["__scopeId", "data-v-d953af54"]]);
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, unref as p, createElementVNode as r, Fragment as d, renderList as m, normalizeClass as f, withDirectives as g, vShow as y, createCommentVNode as b, createTextVNode as w, withModifiers as h, nextTick as _ } from "vue";
2
+ import { Close as k, Check as x, Search as I, Plus as V, InfoFilled as C, CircleClose as A } from "@element-plus/icons-vue";
3
+ import * as L from "@element-plus/icons";
4
+ import O from "agilebuilder-ui/src/utils/request";
5
+ const U = { key: 0 }, $ = { class: "amb-component-popover-left-menu-main" }, z = ["onClick"], E = { key: 1, style: { display: "flex", gap: "10px", "align-items": "center" } }, P = { key: 2 }, j = { key: 3, class: "amb-component-popover-icon-list-scroll", style: { overflow: "auto" } }, S = { class: "amb-component-popover-icon-grid" }, T = ["onClick"], N = { key: 4, style: { "text-align": "right" } }, q = 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: q2 }) {
6
+ var _a, _b;
7
+ const M = q2, B = e2, R = l([{ value: "ElementUI", label: "ElementUI", dataList: [] }, { value: "ambIcon", label: "Amb图标库", dataList: [] }, { value: "custom", label: "自定义", dataList: [] }]);
8
+ l(false);
9
+ const D = l(1), F = l(B.iconType ?? ((_b = (_a = R.value) == null ? void 0 : _a[0]) == null ? void 0 : _b.value)), G = l("");
10
+ G.value = B.iconValue;
11
+ const H = l({}), J = l(""), K = l(), Q = l(false), W = a(() => {
12
+ var _a2;
13
+ const e3 = (_a2 = R.value) == null ? void 0 : _a2.find((e4) => e4.value === F.value);
14
+ return (e3 == null ? void 0 : e3.dataList) ?? [];
15
+ }), X = a(() => {
16
+ let e3 = W.value ?? [];
17
+ return J.value && (e3 = e3.filter((e4) => [e4.label ?? "", e4.value ?? ""].some((e5) => {
18
+ var _a2;
19
+ return (_a2 = e5.toLowerCase()) == null ? void 0 : _a2.includes(J.value.toLowerCase());
20
+ }))), e3.slice(0, 50 * D.value);
21
+ }), Y = () => {
22
+ D.value++;
23
+ };
24
+ async function Z() {
25
+ Q.value = true;
26
+ try {
27
+ const e3 = (await O.post(window.$vueApp.config.globalProperties.baseAPI + "/component/general-icon/query", { pageSize: 200, pageNo: 1 })).data ?? [], l2 = [];
28
+ for (let a2 of e3) l2.push({ value: a2.iconName, label: a2.iconName });
29
+ H.value.customOptions = l2, R.value[R.value.findIndex((e4) => "custom" === e4.value)].dataList = tempOptionsxs;
30
+ } catch (e3) {
31
+ }
32
+ Q.value = false;
33
+ }
34
+ function ee(e3) {
35
+ var l2;
36
+ D.value = 1, e3 && Array.isArray(e3) && e3.length > 0 && (e3 = e3[0]), F.value = e3, "ElementUI" === (l2 = F.value) ? R.value[R.value.findIndex((e4) => "ElementUI" === e4.value)].dataList = H.value.elementUIOptions : "custom" === l2 ? Z() : ["ambIcon"].includes(l2) && async function() {
37
+ var _a2, _b2, _c;
38
+ try {
39
+ Q.value = true;
40
+ let e4 = `${window.location.origin}${window.location.pathname}font-icon/iconfont.json`;
41
+ ((_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`);
42
+ const l3 = await fetch(e4, { mode: "cors", headers: { "Content-Type": "application/json" } }).then((e5) => e5.json()), { css_prefix_text: a2, glyphs: o2 = [], font_family: n2 } = l3;
43
+ R.value[R.value.findIndex((e5) => "ambIcon" === e5.value)].dataList = o2.map((e5) => ({ label: e5.name, value: `${a2}${e5.font_class}` }));
44
+ } catch (e4) {
45
+ }
46
+ Q.value = false;
47
+ }();
48
+ }
49
+ function le() {
50
+ var _a2, _b2;
51
+ (_b2 = (_a2 = K.value) == null ? void 0 : _a2.hide) == null ? void 0 : _b2.call(_a2);
52
+ }
53
+ function ae() {
54
+ G.value = "", M("update:modelValue", "", ""), K.value.hide();
55
+ }
56
+ function oe() {
57
+ if (J.value = J.value.trim(), !J.value) return void ElMessage.warning("请输入图标名!");
58
+ const e3 = H.value.customOptions || [];
59
+ let l2 = false;
60
+ for (let a3 of e3) if (a3.value === J.value) {
61
+ l2 = true;
62
+ break;
63
+ }
64
+ F.value = "custom", G.value = J.value;
65
+ const a2 = J.value;
66
+ if (J.value = "", M("update:modelValue", F.value, G.value), K.value.hide(), !l2) {
67
+ const e4 = { iconName: a2 };
68
+ O.post(window.$vueApp.config.globalProperties.baseAPI + "/bs/general-icon/get-or-create", e4).then((e5) => {
69
+ "custom" == F.value && Z();
70
+ }).catch((e5) => {
71
+ ElMessage.warning("保存图标失败!");
72
+ });
73
+ }
74
+ }
75
+ function ne() {
76
+ _(() => {
77
+ !function() {
78
+ if (!H.value.elementUIOptions) {
79
+ if (!window.temp_Icon_Options) {
80
+ const e3 = [];
81
+ for (const [l2, a2] of Object.entries(L)) e3.push({ value: l2, label: l2, component: a2 });
82
+ e3.sort(function(e4, l2) {
83
+ const a2 = e4.value, o2 = l2.value;
84
+ return a2.localeCompare(o2);
85
+ }), window.temp_Icon_Options = e3;
86
+ }
87
+ H.value.elementUIOptions = window.temp_Icon_Options;
88
+ }
89
+ }(), ee(F.value);
90
+ });
91
+ }
92
+ return l(), (l2, a2) => {
93
+ const _2 = o("el-icon"), L2 = o("el-input"), O2 = o("el-button"), q3 = o("el-tooltip"), B2 = o("el-scrollbar"), D2 = o("el-col"), H2 = o("el-empty"), Z2 = o("el-tag"), te = o("SuperIcon"), ue = o("el-row"), ie = o("el-popover"), ce = n("loading"), se = n("infinite-scroll");
94
+ return e2.showLabel ? (i(), t("span", U, c(G.value), 1)) : (i(), u(ie, { key: 1, ref_key: "popoverRef", ref: K, "popper-class": "amb-component-popover-main", trigger: "click", width: 540 }, { reference: s(() => [v(L2, { readonly: "", size: "small", onClick: ne, modelValue: G.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => G.value = e3), placeholder: "请选择" }, { suffix: s(() => [g(v(_2, { style: { cursor: "pointer" }, onClick: h(ae, ["stop"]) }, { default: s(() => [v(p(A))]), _: 1 }, 512), [[y, G.value]])]), _: 1 }, 8, ["modelValue"])]), default: s(() => [v(ue, null, { default: s(() => [v(q3, { effect: "dark", content: "关闭", placement: "top-end" }, { default: s(() => [v(O2, { type: "text", class: "amb-component-popover-close-btn", icon: p(k), onClick: le }, null, 8, ["icon"])]), _: 1 }), v(D2, { span: 8 }, { default: s(() => [r("div", $, [v(B2, { "max-height": "100%" }, { default: s(() => [(i(true), t(d, null, m(R.value, (e3) => (i(), t("div", { class: f(["amb-popover-menu-item", e3.value == F.value ? "is-active" : ""]), onClick: (l3) => ee(e3.value) }, [v(_2, null, { default: s(() => [g(v(p(x), null, null, 512), [[y, e3.value == F.value]])]), _: 2 }, 1024), r("span", null, c(e3.label), 1)], 10, z))), 256))]), _: 1 })])]), _: 1 }), v(D2, { span: 16, style: { "padding-left": "10px" }, class: "amb-component-popover-icon-list-view" }, { default: s(() => [F.value ? b("", true) : (i(), u(H2, { key: 0, description: "请选择类型", "image-size": 80 })), F.value ? (i(), t("div", E, [v(L2, { modelValue: J.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => J.value = e3), placeholder: "搜索", size: "default", "prefix-icon": p(I), clearable: "", style: { flex: "1 1 auto" } }, null, 8, ["modelValue", "prefix-icon"]), ["custom"].includes(F.value) && J.value && !X.value.length ? (i(), u(q3, { key: 0, effect: "dark", content: "创建该图标", placement: "top-end" }, { default: s(() => [v(O2, { type: "primary", circle: "", icon: p(V), onClick: oe }, null, 8, ["icon"])]), _: 1 })) : b("", true)])) : b("", true), ["custom"].includes(F.value) ? (i(), t("div", P, [v(_2, null, { default: s(() => [v(p(C))]), _: 1 }), a2[4] || (a2[4] = r("span", { style: { "margin-left": "5px" } }, "输入图标名后点击加号按钮添加", -1)), a2[5] || (a2[5] = w("   ")), v(q3, null, { content: s(() => a2[2] || (a2[2] = [w(" 1.支持fa图标,图标名称详见官网:https://fontawesome.com.cn/v4/icons-ui/; "), r("br", null, null, -1), w(" 2.支持svg图标,需以svg-开头,接svg内容,如:svg-xxxxxx. ")])), default: s(() => [v(Z2, { type: "primary" }, { default: s(() => a2[3] || (a2[3] = [w("更多")])), _: 1 })]), _: 1 })])) : b("", true), F.value ? g((i(), t("div", j, [X.value.length || Q.value ? b("", true) : (i(), u(H2, { key: 0, description: "没有相关图标", "image-size": 80 })), r("div", S, [(i(true), t(d, null, m(X.value, (e3) => (i(), u(q3, { key: e3.value, effect: "dark", content: e3.label, placement: "top" }, { default: s(() => [r("div", { class: "amb-component-popover-icon-grid-item", onClick: (l3) => {
95
+ return a3 = e3, G.value = a3.value, M("update:modelValue", F.value, G.value), void K.value.hide();
96
+ var a3;
97
+ } }, [v(te, { iconType: F.value, iconValue: e3.value }, null, 8, ["iconType", "iconValue"])], 8, T)]), _: 2 }, 1032, ["content"]))), 128))])])), [[ce, Q.value], [se, Y]]) : b("", true), F.value ? (i(), t("div", N, c(X.value.length) + " / " + c(W.value.length), 1)) : b("", true)]), _: 1 })]), _: 1 })]), _: 1 }, 512));
98
+ };
99
+ } });
5
100
  export {
6
- i as default
101
+ q as default
7
102
  };
@@ -1,4 +1,4 @@
1
- import o from "./common-variable-bind.vue3.js";
1
+ import o from "./common-variable-bind.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const r = e(o, [["__scopeId", "data-v-3324003e"]]);
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as e, ref as l, resolveComponent as o, createBlock as a, openBlock as u, withCtx as i, createVNode as t, createElementVNode as n, withDirectives as p, createCommentVNode as r, createTextVNode as c, toDisplayString as s, vShow as d, unref as m } from "vue";
2
2
  import f from "../../common/common-attr-size.vue.js";
3
3
  import g from "../../common/common-function-code.vue.js";
4
- import b from "../../common/common-icon-bind.vue2.js";
4
+ import b from "../../common/common-icon-bind.vue.js";
5
5
  import V from "../../common/common-i18n-key-input.vue.js";
6
6
  import { Close as v, Check as x } from "@element-plus/icons-vue";
7
7
  const y = { style: { padding: "8px 0px 0px 0px" } }, _ = e({ __name: "card-attr-base", props: { configure: { type: Object, default: {} }, pageDesign: { type: Object, default: () => {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as e, ref as l, resolveComponent as o, createBlock as t, openBlock as i, withCtx as n, createVNode as a, createElementVNode as u, createTextVNode as r, toDisplayString as d, unref as c, createElementBlock as m, Fragment as p, renderList as s } from "vue";
2
2
  import { Top as f, Bottom as g, Plus as x, Delete as b } from "@element-plus/icons-vue";
3
3
  import V from "../../common/common-attr-size.vue.js";
4
- import _ from "../../common/common-icon-bind.vue2.js";
4
+ import _ from "../../common/common-icon-bind.vue.js";
5
5
  import y from "../../common/common-function-code.vue.js";
6
6
  import h from "../../common/common-i18n-key-input.vue.js";
7
7
  const w = { style: { padding: "8px 0px 0px 0px" } }, v = { style: { padding: "8px 0px 0px 0px" }, ref: "panels" }, k = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, z = e({ __name: "collapse-attr-base", props: { configure: { type: Object, default: {} }, pageDesign: { type: Object, default: () => {
@@ -2,7 +2,7 @@ import { defineComponent as e, ref as l, resolveComponent as o, createBlock as t
2
2
  import { Top as s, Bottom as g, Plus as b, Delete as x, Close as V, Check as _ } from "@element-plus/icons-vue";
3
3
  import y from "../../common/common-attr-size.vue.js";
4
4
  import v from "../../common/common-function-code.vue.js";
5
- import h from "../../common/common-icon-bind.vue2.js";
5
+ import h from "../../common/common-icon-bind.vue.js";
6
6
  import w from "../../common/common-i18n-key-input.vue.js";
7
7
  const U = { style: { padding: "8px 0px 0px 0px" } }, k = { style: { padding: "8px 0px 0px 0px" }, ref: "panels" }, z = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, C = e({ __name: "tabs-attr-base", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => {
8
8
  } } }, setup(e2) {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, ref as a, computed as l, resolveComponent as i, createBlock as o, openBlock as t, withCtx as n, createElementVNode as r, createVNode as s, createCommentVNode as u, withDirectives as d, renderSlot as p, createTextVNode as c, unref as g, vShow as f, createElementBlock as m, Fragment as v, renderList as y, normalizeClass as b, toDisplayString as V } from "vue";
2
- import O from "../../form/common/dataorigin-input-table.vue.js";
2
+ import O from "../../form/common/dataorigin-input-table.vue2.js";
3
3
  import { Codemirror as _ } from "vue-codemirror";
4
4
  import C from "../../workflow/component/combination.vue.js";
5
5
  import S from "./return-set-table.vue.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, ref as l, resolveComponent as a, createElementBlock as t, openBlock as u, Fragment as i, createVNode as d, createBlock as o, createCommentVNode as s, withCtx as n, createTextVNode as m } from "vue";
2
- import f from "../../common/common-icon-bind.vue2.js";
2
+ import f from "../../common/common-icon-bind.vue.js";
3
3
  const c = e({ __name: "formatting-icon-label", props: { setting: { type: Object, default: {} }, showEvent: { type: Boolean, default: true } }, setup(e2) {
4
4
  const c2 = e2, v = l({});
5
5
  return v.value = c2.setting, v.value.isTag || (v.value.isTag = false), (l2, c3) => {
@@ -11,7 +11,7 @@ import T from "../component/variate-select.vue.js";
11
11
  import "@element-plus/icons";
12
12
  import "agilebuilder-ui/src/utils/request";
13
13
  import { queryTableFields as S, tableResetConfigIndo as H } from "../../../../utils/page-table-util.js";
14
- /* empty css */
14
+ /* empty css */
15
15
  import N from "../../common/common-i18n-key-input.vue.js";
16
16
  import j from "../../form/common/hyperlink-mult-config.vue.js";
17
17
  import q from "../../common/common-function-code.vue.js";
@@ -4,7 +4,7 @@ import b from "../component/data-origin-tree.vue.js";
4
4
  import g from "../../form/common/data-linkage.vue.js";
5
5
  import y from "../../common/common-attr-size.vue.js";
6
6
  import V from "../../common/common-variable-bind.vue.js";
7
- import _ from "../../common/common-icon-bind.vue2.js";
7
+ import _ from "../../common/common-icon-bind.vue.js";
8
8
  import v from "./tree-attr-context-menu.vue.js";
9
9
  import { Search as h, Close as k, InfoFilled as x } from "@element-plus/icons-vue";
10
10
  import C from "../../common/common-select-table.vue.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, ref as l, onMounted as a, resolveComponent as t, createBlock as o, openBlock as u, withCtx as i, createElementVNode as n, createVNode as s, createCommentVNode as d, withDirectives as r, unref as m, createElementBlock as p, Fragment as c, renderList as b, createTextVNode as f, vShow as y, normalizeClass as v } from "vue";
2
- import V from "./dataorigin-input-table.vue.js";
2
+ import V from "./dataorigin-input-table.vue2.js";
3
3
  import g from "./condition.vue.js";
4
4
  import S from "./row-ul-li.vue.js";
5
5
  import "uuid";
@@ -1,28 +1,4 @@
1
- import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as d, Fragment as u, createVNode as n, withCtx as i, unref as s, createElementVNode as m, createTextVNode as r } from "vue";
2
- import { Search as p } from "@element-plus/icons-vue";
3
- const f = { class: "dialog-footer" }, v = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: v2 }) {
4
- const c = e2, g = l(c.modelValue), V = v2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
5
- function y() {
6
- if (_.value.length > 0) {
7
- let e3 = "";
8
- _.value.forEach((l2) => {
9
- e3 = e3 + l2.name + ",";
10
- }), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
11
- } else b.value = false;
12
- }
13
- function S(e3) {
14
- _.value = e3;
15
- }
16
- function w() {
17
- b.value = true;
18
- }
19
- return a(() => c.modelValue, (e3) => {
20
- g.value = e3;
21
- }), (e3, l2) => {
22
- const a2 = t("el-icon"), v3 = t("el-input"), c2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
23
- return d(), o(u, null, [n(v3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: w }, { suffix: i(() => [n(a2, { onClick: w }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", f, [n(_2, { type: "default", onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: y }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: S }, { default: i(() => [n(c2, { type: "selection", width: "55" }), n(c2, { prop: "date", label: "Date", width: "180" }), n(c2, { prop: "name", label: "Name", width: "180" }), n(c2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
24
- };
25
- } });
1
+ import t from "./dataorigin-input-table.vue2.js";
26
2
  export {
27
- v as default
3
+ t as default
28
4
  };
@@ -1,4 +1,28 @@
1
- import t from "./dataorigin-input-table.vue.js";
1
+ import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as d, Fragment as u, createVNode as n, withCtx as i, unref as s, createElementVNode as m, createTextVNode as r } from "vue";
2
+ import { Search as p } from "@element-plus/icons-vue";
3
+ const f = { class: "dialog-footer" }, v = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: v2 }) {
4
+ const c = e2, g = l(c.modelValue), V = v2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
5
+ function y() {
6
+ if (_.value.length > 0) {
7
+ let e3 = "";
8
+ _.value.forEach((l2) => {
9
+ e3 = e3 + l2.name + ",";
10
+ }), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
11
+ } else b.value = false;
12
+ }
13
+ function S(e3) {
14
+ _.value = e3;
15
+ }
16
+ function w() {
17
+ b.value = true;
18
+ }
19
+ return a(() => c.modelValue, (e3) => {
20
+ g.value = e3;
21
+ }), (e3, l2) => {
22
+ const a2 = t("el-icon"), v3 = t("el-input"), c2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
23
+ return d(), o(u, null, [n(v3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: w }, { suffix: i(() => [n(a2, { onClick: w }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", f, [n(_2, { type: "default", onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: y }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: S }, { default: i(() => [n(c2, { type: "selection", width: "55" }), n(c2, { prop: "date", label: "Date", width: "180" }), n(c2, { prop: "name", label: "Name", width: "180" }), n(c2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
24
+ };
25
+ } });
2
26
  export {
3
- t as default
27
+ v as default
4
28
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, resolveComponent as u, createBlock as l, openBlock as a, withCtx as f, createElementVNode as o, createVNode as p, withDirectives as i, createTextVNode as t, vShow as r } from "vue";
2
- import n from "../../common/common-icon-bind.vue2.js";
2
+ import n from "../../common/common-icon-bind.vue.js";
3
3
  import "@element-plus/icons";
4
4
  import s from "../../common/common-i18n-key-input.vue.js";
5
5
  const m = { style: { padding: "8px 0px 0px 0px" } }, d = e({ __name: "pre-suffix", props: { preSuffix: { type: Object, required: true, default: () => {
@@ -5,7 +5,7 @@ import M from "../../common/common-select-page.vue.js";
5
5
  import T from "./parameter-table.vue.js";
6
6
  import C from "../../common/common-variable-bind.vue.js";
7
7
  import _ from "./condition.vue.js";
8
- import k from "../../common/common-icon-bind.vue2.js";
8
+ import k from "../../common/common-icon-bind.vue.js";
9
9
  import O from "../../common/common-i18n-key-input.vue.js";
10
10
  import { getModelOptionsByFields as h } from "../../../../utils/page-table-util.js";
11
11
  const U = e({ __name: "suffixmodule", props: { configure: {}, pageDesign: {}, tableConfigure: {}, isDialog: { type: Boolean }, isButton: { type: Boolean, default: true }, showDisplayConditions: { type: Boolean, default: true } }, setup(e2) {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as e, ref as l, resolveComponent as o, createBlock as a, openBlock as u, withCtx as t, createVNode as i, createCommentVNode as n, createElementVNode as r, createTextVNode as m, toDisplayString as c } from "vue";
2
2
  import d from "../../common/common-attr-size.vue.js";
3
3
  import s from "../../common/common-function-code.vue.js";
4
- import p from "../../common/common-icon-bind.vue2.js";
4
+ import p from "../../common/common-icon-bind.vue.js";
5
5
  import f from "../../common/common-i18n-key-input.vue.js";
6
6
  const g = { style: { padding: "8px 0px 0px 0px" } }, b = e({ __name: "separatelabel-attr-base", props: { configure: { type: Object, default: {} }, pageDesign: { type: Object, default: () => {
7
7
  } } }, setup(e2) {
@@ -1,5 +1,5 @@
1
1
  import o from "./config.vue3.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const r = e(o, [["__scopeId", "data-v-8dba0ddd"]]);
5
5
  export {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, onUnmounted as a, watch as l, resolveComponent as u, createElementBlock as o, openBlock as s, createElementVNode as i, createVNode as r, withDirectives as m, withCtx as c, vShow as d, unref as v, createTextVNode as p, toDisplayString as f, Fragment as g, renderList as b, createBlock as y } from "vue";
2
2
  import { ElMessageBox as x, ElMessage as h } from "element-plus";
3
- import C from "./config.vue2.js";
3
+ import C from "./config.vue.js";
4
4
  import { standardButtonOperations as E } from "../../../utils/assemblys-config.js";
5
5
  import { findDesignItemByUuid as S, getUuidv4 as V, deepCopy as k } from "../../../utils/common-util.js";
6
6
  import { usePageContextStore as _ } from "../../../../../stores/page-store.js";
@@ -16,7 +16,7 @@ import "@codemirror/autocomplete";
16
16
  import "@codemirror/language";
17
17
  import "@codemirror/search";
18
18
  import "js-beautify";
19
- /* empty css */
19
+ /* empty css */
20
20
  import "../../../utils/assemblys-config.js";
21
21
  import "../../../../../stores/page-store.js";
22
22
  import "../../../../../stores/event-undo-redo-store.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-designer",
3
- "version": "2.2.89-sit9",
3
+ "version": "2.2.92",
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.30-sit3",
32
+ "agilebuilder-ui": "1.1.31",
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.89-sit2",
44
- "super-page-runtime": "2.2.89-sit8",
43
+ "service-flow-designer": "2.2.87",
44
+ "super-page-runtime": "2.2.91",
45
45
  "uuid": "^9.0.1",
46
46
  "vite": "^5.1.6",
47
47
  "vite-plugin-node-stdlib-browser": "^0.2.1",
@@ -1,102 +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, unref as p, createElementVNode as r, Fragment as d, renderList as m, normalizeClass as f, withDirectives as g, vShow as y, createCommentVNode as b, createTextVNode as w, withModifiers as h, nextTick as _ } from "vue";
2
- import { Close as k, Check as x, Search as I, Plus as V, InfoFilled as C, CircleClose as A } from "@element-plus/icons-vue";
3
- import * as L from "@element-plus/icons";
4
- import O from "agilebuilder-ui/src/utils/request";
5
- const U = { key: 0 }, $ = { class: "amb-component-popover-left-menu-main" }, z = ["onClick"], E = { key: 1, style: { display: "flex", gap: "10px", "align-items": "center" } }, P = { key: 2 }, j = { key: 3, class: "amb-component-popover-icon-list-scroll", style: { overflow: "auto" } }, S = { class: "amb-component-popover-icon-grid" }, T = ["onClick"], N = { key: 4, style: { "text-align": "right" } }, q = 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: q2 }) {
6
- var _a, _b;
7
- const M = q2, B = e2, R = l([{ value: "ElementUI", label: "ElementUI", dataList: [] }, { value: "ambIcon", label: "Amb图标库", dataList: [] }, { value: "custom", label: "自定义", dataList: [] }]);
8
- l(false);
9
- const D = l(1), F = l(B.iconType ?? ((_b = (_a = R.value) == null ? void 0 : _a[0]) == null ? void 0 : _b.value)), G = l("");
10
- G.value = B.iconValue;
11
- const H = l({}), J = l(""), K = l(), Q = l(false), W = a(() => {
12
- var _a2;
13
- const e3 = (_a2 = R.value) == null ? void 0 : _a2.find((e4) => e4.value === F.value);
14
- return (e3 == null ? void 0 : e3.dataList) ?? [];
15
- }), X = a(() => {
16
- let e3 = W.value ?? [];
17
- return J.value && (e3 = e3.filter((e4) => [e4.label ?? "", e4.value ?? ""].some((e5) => {
18
- var _a2;
19
- return (_a2 = e5.toLowerCase()) == null ? void 0 : _a2.includes(J.value.toLowerCase());
20
- }))), e3.slice(0, 50 * D.value);
21
- }), Y = () => {
22
- D.value++;
23
- };
24
- async function Z() {
25
- Q.value = true;
26
- try {
27
- const e3 = (await O.post(window.$vueApp.config.globalProperties.baseAPI + "/component/general-icon/query", { pageSize: 200, pageNo: 1 })).data ?? [], l2 = [];
28
- for (let a2 of e3) l2.push({ value: a2.iconName, label: a2.iconName });
29
- H.value.customOptions = l2, R.value[R.value.findIndex((e4) => "custom" === e4.value)].dataList = tempOptionsxs;
30
- } catch (e3) {
31
- }
32
- Q.value = false;
33
- }
34
- function ee(e3) {
35
- var l2;
36
- D.value = 1, e3 && Array.isArray(e3) && e3.length > 0 && (e3 = e3[0]), F.value = e3, "ElementUI" === (l2 = F.value) ? R.value[R.value.findIndex((e4) => "ElementUI" === e4.value)].dataList = H.value.elementUIOptions : "custom" === l2 ? Z() : ["ambIcon"].includes(l2) && async function() {
37
- var _a2, _b2, _c;
38
- try {
39
- Q.value = true;
40
- let e4 = `${window.location.origin}${window.location.pathname}font-icon/iconfont.json`;
41
- ((_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`);
42
- const l3 = await fetch(e4, { mode: "cors", headers: { "Content-Type": "application/json" } }).then((e5) => e5.json()), { css_prefix_text: a2, glyphs: o2 = [], font_family: n2 } = l3;
43
- R.value[R.value.findIndex((e5) => "ambIcon" === e5.value)].dataList = o2.map((e5) => ({ label: e5.name, value: `${a2}${e5.font_class}` }));
44
- } catch (e4) {
45
- }
46
- Q.value = false;
47
- }();
48
- }
49
- function le() {
50
- var _a2, _b2;
51
- (_b2 = (_a2 = K.value) == null ? void 0 : _a2.hide) == null ? void 0 : _b2.call(_a2);
52
- }
53
- function ae() {
54
- G.value = "", M("update:modelValue", "", ""), K.value.hide();
55
- }
56
- function oe() {
57
- if (J.value = J.value.trim(), !J.value) return void ElMessage.warning("请输入图标名!");
58
- const e3 = H.value.customOptions || [];
59
- let l2 = false;
60
- for (let a3 of e3) if (a3.value === J.value) {
61
- l2 = true;
62
- break;
63
- }
64
- F.value = "custom", G.value = J.value;
65
- const a2 = J.value;
66
- if (J.value = "", M("update:modelValue", F.value, G.value), K.value.hide(), !l2) {
67
- const e4 = { iconName: a2 };
68
- O.post(window.$vueApp.config.globalProperties.baseAPI + "/bs/general-icon/get-or-create", e4).then((e5) => {
69
- "custom" == F.value && Z();
70
- }).catch((e5) => {
71
- ElMessage.warning("保存图标失败!");
72
- });
73
- }
74
- }
75
- function ne() {
76
- _(() => {
77
- !function() {
78
- if (!H.value.elementUIOptions) {
79
- if (!window.temp_Icon_Options) {
80
- const e3 = [];
81
- for (const [l2, a2] of Object.entries(L)) e3.push({ value: l2, label: l2, component: a2 });
82
- e3.sort(function(e4, l2) {
83
- const a2 = e4.value, o2 = l2.value;
84
- return a2.localeCompare(o2);
85
- }), window.temp_Icon_Options = e3;
86
- }
87
- H.value.elementUIOptions = window.temp_Icon_Options;
88
- }
89
- }(), ee(F.value);
90
- });
91
- }
92
- return l(), (l2, a2) => {
93
- const _2 = o("el-icon"), L2 = o("el-input"), O2 = o("el-button"), q3 = o("el-tooltip"), B2 = o("el-scrollbar"), D2 = o("el-col"), H2 = o("el-empty"), Z2 = o("el-tag"), te = o("SuperIcon"), ue = o("el-row"), ie = o("el-popover"), ce = n("loading"), se = n("infinite-scroll");
94
- return e2.showLabel ? (i(), t("span", U, c(G.value), 1)) : (i(), u(ie, { key: 1, ref_key: "popoverRef", ref: K, "popper-class": "amb-component-popover-main", trigger: "click", width: 540 }, { reference: s(() => [v(L2, { readonly: "", size: "small", onClick: ne, modelValue: G.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => G.value = e3), placeholder: "请选择" }, { suffix: s(() => [g(v(_2, { style: { cursor: "pointer" }, onClick: h(ae, ["stop"]) }, { default: s(() => [v(p(A))]), _: 1 }, 512), [[y, G.value]])]), _: 1 }, 8, ["modelValue"])]), default: s(() => [v(ue, null, { default: s(() => [v(q3, { effect: "dark", content: "关闭", placement: "top-end" }, { default: s(() => [v(O2, { type: "text", class: "amb-component-popover-close-btn", icon: p(k), onClick: le }, null, 8, ["icon"])]), _: 1 }), v(D2, { span: 8 }, { default: s(() => [r("div", $, [v(B2, { "max-height": "100%" }, { default: s(() => [(i(true), t(d, null, m(R.value, (e3) => (i(), t("div", { class: f(["amb-popover-menu-item", e3.value == F.value ? "is-active" : ""]), onClick: (l3) => ee(e3.value) }, [v(_2, null, { default: s(() => [g(v(p(x), null, null, 512), [[y, e3.value == F.value]])]), _: 2 }, 1024), r("span", null, c(e3.label), 1)], 10, z))), 256))]), _: 1 })])]), _: 1 }), v(D2, { span: 16, style: { "padding-left": "10px" }, class: "amb-component-popover-icon-list-view" }, { default: s(() => [F.value ? b("", true) : (i(), u(H2, { key: 0, description: "请选择类型", "image-size": 80 })), F.value ? (i(), t("div", E, [v(L2, { modelValue: J.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => J.value = e3), placeholder: "搜索", size: "default", "prefix-icon": p(I), clearable: "", style: { flex: "1 1 auto" } }, null, 8, ["modelValue", "prefix-icon"]), ["custom"].includes(F.value) && J.value && !X.value.length ? (i(), u(q3, { key: 0, effect: "dark", content: "创建该图标", placement: "top-end" }, { default: s(() => [v(O2, { type: "primary", circle: "", icon: p(V), onClick: oe }, null, 8, ["icon"])]), _: 1 })) : b("", true)])) : b("", true), ["custom"].includes(F.value) ? (i(), t("div", P, [v(_2, null, { default: s(() => [v(p(C))]), _: 1 }), a2[4] || (a2[4] = r("span", { style: { "margin-left": "5px" } }, "输入图标名后点击加号按钮添加", -1)), a2[5] || (a2[5] = w("   ")), v(q3, null, { content: s(() => a2[2] || (a2[2] = [w(" 1.支持fa图标,图标名称详见官网:https://fontawesome.com.cn/v4/icons-ui/; "), r("br", null, null, -1), w(" 2.支持svg图标,需以svg-开头,接svg内容,如:svg-xxxxxx. ")])), default: s(() => [v(Z2, { type: "primary" }, { default: s(() => a2[3] || (a2[3] = [w("更多")])), _: 1 })]), _: 1 })])) : b("", true), F.value ? g((i(), t("div", j, [X.value.length || Q.value ? b("", true) : (i(), u(H2, { key: 0, description: "没有相关图标", "image-size": 80 })), r("div", S, [(i(true), t(d, null, m(X.value, (e3) => (i(), u(q3, { key: e3.value, effect: "dark", content: e3.label, placement: "top" }, { default: s(() => [r("div", { class: "amb-component-popover-icon-grid-item", onClick: (l3) => {
95
- return a3 = e3, G.value = a3.value, M("update:modelValue", F.value, G.value), void K.value.hide();
96
- var a3;
97
- } }, [v(te, { iconType: F.value, iconValue: e3.value }, null, 8, ["iconType", "iconValue"])], 8, T)]), _: 2 }, 1032, ["content"]))), 128))])])), [[ce, Q.value], [se, Y]]) : b("", true), F.value ? (i(), t("div", N, c(X.value.length) + " / " + c(W.value.length), 1)) : b("", true)]), _: 1 })]), _: 1 })]), _: 1 }, 512));
98
- };
99
- } });
100
- export {
101
- q as default
102
- };