aibox-custom-component-packages 0.0.12 → 0.0.13

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 (70) hide show
  1. package/es/AddOrEditSupplierDialog.mjs +2 -2
  2. package/es/ApplicationTypeTag.mjs +1 -1
  3. package/es/AuthSection.mjs +1 -1
  4. package/es/AvailableRangePreview.mjs +1 -1
  5. package/es/AvailableRangeSetting.mjs +3 -3
  6. package/es/CodeView.mjs +1 -1
  7. package/es/CommonTagsList.mjs +2 -2
  8. package/es/CreateMcpForm.mjs +5 -5
  9. package/es/DocSyncSelect.mjs +1 -1
  10. package/es/FileUploader.mjs +1 -1
  11. package/es/McpFormDialog.mjs +6 -6
  12. package/es/McpParamsSet.mjs +5 -5
  13. package/es/MdEditor.mjs +1 -1
  14. package/es/ParameterTable.mjs +3 -3
  15. package/es/PublishRecord.mjs +1 -1
  16. package/es/SourcePublish.mjs +5 -5
  17. package/es/Table.mjs +1 -1
  18. package/es/assets/CreateMcpForm.css +1 -1
  19. package/es/assets/McpFormDialog.css +1 -1
  20. package/es/assets/MdEditor.css +1 -1
  21. package/es/assets/SourcePublish.css +1 -1
  22. package/es/chunks/AddOrEditSupplierDialog.BCiXcUBu.js +721 -0
  23. package/es/chunks/AiboxTable.B_Yli5E8.js +635 -0
  24. package/es/chunks/ApplicationTypeTag.BbJwXyVa.js +47 -0
  25. package/es/chunks/AuthSection.CLi8HcIx.js +201 -0
  26. package/es/chunks/AvailableRangePreview.BgeL_bMq.js +194 -0
  27. package/es/chunks/AvailableRangeSetting.CGJxgfPT.js +229 -0
  28. package/es/chunks/CodeView.CWbewuHs.js +148 -0
  29. package/es/chunks/CommonTagsList.CJdBie2N.js +156 -0
  30. package/es/chunks/CommonTagsList.NbXVfvLW.js +156 -0
  31. package/es/chunks/CreateMcpForm.C0HqvD-g.js +308 -0
  32. package/es/chunks/CreateMcpForm.DSE5jyiW.js +308 -0
  33. package/es/chunks/DocSyncSelect.DlJXL1lq.js +2290 -0
  34. package/es/chunks/FileUploader.BSIhrd9M.js +216 -0
  35. package/es/chunks/McpFormDialog.CDH31D2Q.js +297 -0
  36. package/es/chunks/McpFormDialog.CgnC1I7i.js +297 -0
  37. package/es/chunks/McpParamsSet.Bx3aRL9j.js +501 -0
  38. package/es/chunks/MdEditor.B9-B9aiy.js +163 -0
  39. package/es/chunks/MdEditor.Bb9S_hso.js +163 -0
  40. package/es/chunks/ParameterTable.CoRz_932.js +2010 -0
  41. package/es/chunks/PublishRecord.C0841sJ-.js +133 -0
  42. package/es/chunks/PublishRecord.C8h1tu3w.js +133 -0
  43. package/es/chunks/SourcePublish.BhLjt18i.js +972 -0
  44. package/es/chunks/SourcePublish.FiswtYfr.js +972 -0
  45. package/es/chunks/SourcePublish.nfXmrVHm.js +972 -0
  46. package/es/chunks/config.CIQoQGOb.js +35 -0
  47. package/es/chunks/config.TaUlPTYL.js +270 -0
  48. package/es/chunks/config.lm2B-n0s.js +270 -0
  49. package/es/chunks/i18n.CIhVBbR3.js +418 -0
  50. package/es/index.mjs +20 -20
  51. package/lib/CommonTagsList.js +1 -1
  52. package/lib/CreateMcpForm.js +1 -1
  53. package/lib/McpFormDialog.js +1 -1
  54. package/lib/MdEditor.js +1 -1
  55. package/lib/PublishRecord.js +1 -1
  56. package/lib/SourcePublish.js +1 -1
  57. package/lib/assets/CreateMcpForm.css +1 -1
  58. package/lib/assets/McpFormDialog.css +1 -1
  59. package/lib/assets/MdEditor.css +1 -1
  60. package/lib/assets/SourcePublish.css +1 -1
  61. package/lib/chunks/CommonTagsList.QEP4G-Em.js +1 -0
  62. package/lib/chunks/CreateMcpForm.B2o0Ghjg.js +1 -0
  63. package/lib/chunks/McpFormDialog.FwXnBBd2.js +6 -0
  64. package/lib/chunks/MdEditor.Cp24y4DJ.js +1 -0
  65. package/lib/chunks/PublishRecord.BVndvj7F.js +5 -0
  66. package/lib/chunks/SourcePublish.BBsNlnp4.js +1 -0
  67. package/lib/chunks/SourcePublish.CpeV-UOG.js +1 -0
  68. package/lib/chunks/config.B9Di8LtU.js +1 -0
  69. package/lib/index.js +1 -1
  70. package/package.json +6 -5
@@ -0,0 +1,133 @@
1
+ import { t as e } from "./withinstall.dLh4K-0g.js";
2
+ import { m as t } from "./i18n.CIhVBbR3.js";
3
+ import { n } from "./enums.DDPWAqdV.js";
4
+ import { t as r } from "./_plugin-vue_export-helper.Ct3qlEzt.js";
5
+ import { r as i } from "./config.CIQoQGOb.js";
6
+ import { m as a } from "./config.TaUlPTYL.js";
7
+ import { n as o } from "./field-types.zf28gvKR.js";
8
+ import { t as s } from "./publish.Z0XAASut.js";
9
+ import { Fragment as ee, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, normalizeClass as h, onMounted as g, openBlock as _, reactive as v, ref as y, renderList as b, resolveDirective as x, toDisplayString as S, unref as C, withCtx as w, withDirectives as te } from "vue";
10
+ import { ElIcon as T, ElMessage as E, ElMessageBox as D, ElScrollbar as O, ElTooltip as k } from "element-plus";
11
+ import { Empty as A, IconRefresh as j } from "color-message-aibox-vue";
12
+ import { useRoute as M } from "vue-router";
13
+ import '../assets/PublishRecord.css';//#region components/PublishRecord/PublishRecord.vue
14
+ var N = { class: "publish-record overflow-hidden" }, P = { class: "publish-record__item--time" }, F = { class: "publish-record__item--number" }, I = { class: "publish-record__item--version" }, L = ["onClick"], R = { style: { "margin-left": "5px" } }, z = ["title"], B = {
15
+ key: 1,
16
+ class: "publish-record__empty flex flex-col items-center justify-center"
17
+ }, V = e(/* @__PURE__ */ r({
18
+ __name: "PublishRecord",
19
+ props: {
20
+ sourceType: {
21
+ type: [String, Number],
22
+ default: ""
23
+ },
24
+ resourceBnid: {
25
+ type: String,
26
+ default: ""
27
+ },
28
+ isBackendSystem: {
29
+ type: Boolean,
30
+ default: !1
31
+ }
32
+ },
33
+ emits: ["setRevisionBnid"],
34
+ setup(e, { emit: r }) {
35
+ let { t: V } = t(), H = r, U = e, { getPublishHistory: W, rollbackVersion: G, checkDeleteComponent: K } = s(), q = M(), J = y(!1), Y = c(() => X.data.length >= X.total);
36
+ c(() => X.loading || Y.value);
37
+ let X = v({
38
+ data: [],
39
+ pages: {
40
+ ...n,
41
+ size: 30
42
+ },
43
+ total: 0
44
+ }), Z = (e) => {
45
+ e === o.BOTTOM && (Y.value || (X.pages.page += 1, Q()));
46
+ }, ne = Object.keys(a).reduce((e, t) => (e[parseInt(t)] = a[t].name(U.sourceType), e), {}), Q = async (e) => {
47
+ J.value = !0;
48
+ let { data: t } = await W(U.sourceType, $.value, { ...X.pages }).finally(() => {
49
+ J.value = !1;
50
+ });
51
+ t.data && t.data.length > 0 && t.data.forEach((e) => {
52
+ let t = "";
53
+ e.channels && e.channels.length > 0 && (t = e.channels.map((e) => ne[e?.channelType]).join("/")), e.channelsTag = t || V("COM_SPM.INVALID_VERSION");
54
+ }), e ? X.data = t.data || [] : X.data.push(...t.data || []), X.total = t.total || 0;
55
+ }, re = async (e) => {
56
+ let t = "";
57
+ if (U.sourceType == "3") {
58
+ let { data: n } = await K({
59
+ bnid: e.publishedId,
60
+ businessType: 3
61
+ });
62
+ n && n.forEach((e) => {
63
+ t += `<div style="color:#f5222d">${e}</div>`;
64
+ });
65
+ }
66
+ D.confirm(`<div class="custom-message-box">
67
+ <div class="custom-message-box__title">${V("COM_SPM.RESTORE_VERSION")}</div>
68
+ <div class="custom-message-box__tip">${V("COM_SPM.RESTORE_TIP")}</div>
69
+ ${t}
70
+ </div>`, V("COMMON_DATA.TIP"), {
71
+ dangerouslyUseHTMLString: !0,
72
+ confirmButtonText: V("COMMON_BUTTON.CONFIRM_TEXT"),
73
+ cancelButtonText: V("COMMON_BUTTON.CANCEL_TEXT"),
74
+ type: "warning"
75
+ }).then(async () => {
76
+ console.log(U.sourceType, e.bnid, "props.sourceType, item.bnid");
77
+ let { code: t } = await G(U.sourceType, e.bnid);
78
+ if (t == 0) {
79
+ let t = V("COM_SPM.RESTORE_SUCCESS");
80
+ E.success(t), X.pages.page = 1, Q(!0), H("setRevisionBnid", e.bnid);
81
+ }
82
+ }).catch(() => {});
83
+ }, $ = y("");
84
+ return g(() => {
85
+ $.value = q.params.bnId || q.params.bnid || q.params.workflowBnid || U.resourceBnid, Q(!0);
86
+ }), (t, n) => {
87
+ let r = x("loading");
88
+ return te((_(), d("div", N, [X?.data?.length ? (_(), l(C(O), {
89
+ key: 0,
90
+ class: h(["publish-record__list", { "backend-system": e.isBackendSystem }]),
91
+ onEndReached: Z
92
+ }, {
93
+ default: w(() => [f("ul", null, [(_(!0), d(ee, null, b(X.data, (e) => (_(), d("li", {
94
+ key: e.bind,
95
+ class: "publish-record__item"
96
+ }, [
97
+ f("div", P, S(e.createdAt), 1),
98
+ f("div", F, [f("p", I, [m(C(k), {
99
+ placement: "top",
100
+ effect: "light",
101
+ content: e.publishStatus == C(i).PUBLISHED ? C(V)("COM_SPM.CURRENT_VERSION") : C(V)("COM_SPM.UNPUBLISHED_VERSION")
102
+ }, {
103
+ default: w(() => [f("span", { class: h(["publish-record__item--edition", e.publishStatus == C(i).PUBLISHED ? "active" : "in-active"]) }, [p(S(C(V)("COM_SPM.VERSION_NUMBER", { number: e.versionNumber })) + " ", 1), f("span", { class: h(["publish-record__item--type", e.channels?.length >= 2 ? "publish-record__item--both" : "publish-record__item--only"]) }, S(e.channelsTag), 3)], 2)]),
104
+ _: 2
105
+ }, 1032, ["content"])]), f("p", {
106
+ class: "publish-record__item--back",
107
+ onClick: (t) => re(e)
108
+ }, [m(C(T), {
109
+ size: "16px",
110
+ color: "var(--el-color-primary)"
111
+ }, {
112
+ default: w(() => [m(C(j))]),
113
+ _: 1
114
+ }), f("span", R, S(C(V)("COM_SPM.RESTORE_VERSION")), 1)], 8, L)]),
115
+ e.versionDesc ? (_(), d("div", {
116
+ key: 0,
117
+ class: "publish-record__item--content",
118
+ title: e.versionDesc
119
+ }, S(e.versionDesc), 9, z)) : u("", !0)
120
+ ]))), 128))])]),
121
+ _: 1
122
+ }, 8, ["class"])) : (_(), d("div", B, [m(C(T), {
123
+ size: "100px",
124
+ color: "var(--el-color-primary)"
125
+ }, {
126
+ default: w(() => [m(C(A))]),
127
+ _: 1
128
+ }), f("span", null, S(C(V)("COM_SPM.NO_PUBLISH_RECORD")), 1)]))])), [[r, J.value]]);
129
+ };
130
+ }
131
+ }, [["__scopeId", "data-v-112db468"]]));
132
+ //#endregion
133
+ export { V as t };
@@ -0,0 +1,133 @@
1
+ import { t as e } from "./withinstall.dLh4K-0g.js";
2
+ import { m as t } from "./i18n.CIhVBbR3.js";
3
+ import { n } from "./enums.DDPWAqdV.js";
4
+ import { t as r } from "./_plugin-vue_export-helper.Ct3qlEzt.js";
5
+ import { r as i } from "./config.CIQoQGOb.js";
6
+ import { m as a } from "./config.lm2B-n0s.js";
7
+ import { n as o } from "./field-types.zf28gvKR.js";
8
+ import { t as s } from "./publish.Z0XAASut.js";
9
+ import { Fragment as ee, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, normalizeClass as h, onMounted as g, openBlock as _, reactive as v, ref as y, renderList as b, resolveDirective as x, toDisplayString as S, unref as C, withCtx as w, withDirectives as te } from "vue";
10
+ import { ElIcon as T, ElMessage as E, ElMessageBox as D, ElScrollbar as O, ElTooltip as k } from "element-plus";
11
+ import { Empty as A, IconRefresh as j } from "color-message-aibox-vue";
12
+ import { useRoute as M } from "vue-router";
13
+ import '../assets/PublishRecord.css';//#region components/PublishRecord/PublishRecord.vue
14
+ var N = { class: "publish-record overflow-hidden" }, P = { class: "publish-record__item--time" }, F = { class: "publish-record__item--number" }, I = { class: "publish-record__item--version" }, L = ["onClick"], R = { style: { "margin-left": "5px" } }, z = ["title"], B = {
15
+ key: 1,
16
+ class: "publish-record__empty flex flex-col items-center justify-center"
17
+ }, V = e(/* @__PURE__ */ r({
18
+ __name: "PublishRecord",
19
+ props: {
20
+ sourceType: {
21
+ type: [String, Number],
22
+ default: ""
23
+ },
24
+ resourceBnid: {
25
+ type: String,
26
+ default: ""
27
+ },
28
+ isBackendSystem: {
29
+ type: Boolean,
30
+ default: !1
31
+ }
32
+ },
33
+ emits: ["setRevisionBnid"],
34
+ setup(e, { emit: r }) {
35
+ let { t: V } = t(), H = r, U = e, { getPublishHistory: W, rollbackVersion: G, checkDeleteComponent: K } = s(), q = M(), J = y(!1), Y = c(() => X.data.length >= X.total);
36
+ c(() => X.loading || Y.value);
37
+ let X = v({
38
+ data: [],
39
+ pages: {
40
+ ...n,
41
+ size: 30
42
+ },
43
+ total: 0
44
+ }), Z = (e) => {
45
+ e === o.BOTTOM && (Y.value || (X.pages.page += 1, Q()));
46
+ }, ne = Object.keys(a).reduce((e, t) => (e[parseInt(t)] = a[t].name(U.sourceType), e), {}), Q = async (e) => {
47
+ J.value = !0;
48
+ let { data: t } = await W(U.sourceType, $.value, { ...X.pages }).finally(() => {
49
+ J.value = !1;
50
+ });
51
+ t.data && t.data.length > 0 && t.data.forEach((e) => {
52
+ let t = "";
53
+ e.channels && e.channels.length > 0 && (t = e.channels.map((e) => ne[e?.channelType]).join("/")), e.channelsTag = t || V("COM_SPM.INVALID_VERSION");
54
+ }), e ? X.data = t.data || [] : X.data.push(...t.data || []), X.total = t.total || 0;
55
+ }, re = async (e) => {
56
+ let t = "";
57
+ if (U.sourceType == "3") {
58
+ let { data: n } = await K({
59
+ bnid: e.publishedId,
60
+ businessType: 3
61
+ });
62
+ n && n.forEach((e) => {
63
+ t += `<div style="color:#f5222d">${e}</div>`;
64
+ });
65
+ }
66
+ D.confirm(`<div class="custom-message-box">
67
+ <div class="custom-message-box__title">${V("COM_SPM.RESTORE_VERSION")}</div>
68
+ <div class="custom-message-box__tip">${V("COM_SPM.RESTORE_TIP")}</div>
69
+ ${t}
70
+ </div>`, V("COMMON_DATA.TIP"), {
71
+ dangerouslyUseHTMLString: !0,
72
+ confirmButtonText: V("COMMON_BUTTON.CONFIRM_TEXT"),
73
+ cancelButtonText: V("COMMON_BUTTON.CANCEL_TEXT"),
74
+ type: "warning"
75
+ }).then(async () => {
76
+ console.log(U.sourceType, e.bnid, "props.sourceType, item.bnid");
77
+ let { code: t } = await G(U.sourceType, e.bnid);
78
+ if (t == 0) {
79
+ let t = V("COM_SPM.RESTORE_SUCCESS");
80
+ E.success(t), X.pages.page = 1, Q(!0), H("setRevisionBnid", e.bnid);
81
+ }
82
+ }).catch(() => {});
83
+ }, $ = y("");
84
+ return g(() => {
85
+ $.value = q.params.bnId || q.params.bnid || q.params.workflowBnid || U.resourceBnid, Q(!0);
86
+ }), (t, n) => {
87
+ let r = x("loading");
88
+ return te((_(), d("div", N, [X?.data?.length ? (_(), l(C(O), {
89
+ key: 0,
90
+ class: h(["publish-record__list", { "backend-system": e.isBackendSystem }]),
91
+ onEndReached: Z
92
+ }, {
93
+ default: w(() => [f("ul", null, [(_(!0), d(ee, null, b(X.data, (e) => (_(), d("li", {
94
+ key: e.bind,
95
+ class: "publish-record__item"
96
+ }, [
97
+ f("div", P, S(e.createdAt), 1),
98
+ f("div", F, [f("p", I, [m(C(k), {
99
+ placement: "top",
100
+ effect: "light",
101
+ content: e.publishStatus == C(i).PUBLISHED ? C(V)("COM_SPM.CURRENT_VERSION") : C(V)("COM_SPM.UNPUBLISHED_VERSION")
102
+ }, {
103
+ default: w(() => [f("span", { class: h(["publish-record__item--edition", e.publishStatus == C(i).PUBLISHED ? "active" : "in-active"]) }, [p(S(C(V)("COM_SPM.VERSION_NUMBER", { number: e.versionNumber })) + " ", 1), f("span", { class: h(["publish-record__item--type", e.channels?.length >= 2 ? "publish-record__item--both" : "publish-record__item--only"]) }, S(e.channelsTag), 3)], 2)]),
104
+ _: 2
105
+ }, 1032, ["content"])]), f("p", {
106
+ class: "publish-record__item--back",
107
+ onClick: (t) => re(e)
108
+ }, [m(C(T), {
109
+ size: "16px",
110
+ color: "var(--el-color-primary)"
111
+ }, {
112
+ default: w(() => [m(C(j))]),
113
+ _: 1
114
+ }), f("span", R, S(C(V)("COM_SPM.RESTORE_VERSION")), 1)], 8, L)]),
115
+ e.versionDesc ? (_(), d("div", {
116
+ key: 0,
117
+ class: "publish-record__item--content",
118
+ title: e.versionDesc
119
+ }, S(e.versionDesc), 9, z)) : u("", !0)
120
+ ]))), 128))])]),
121
+ _: 1
122
+ }, 8, ["class"])) : (_(), d("div", B, [m(C(T), {
123
+ size: "100px",
124
+ color: "var(--el-color-primary)"
125
+ }, {
126
+ default: w(() => [m(C(A))]),
127
+ _: 1
128
+ }), f("span", null, S(C(V)("COM_SPM.NO_PUBLISH_RECORD")), 1)]))])), [[r, J.value]]);
129
+ };
130
+ }
131
+ }, [["__scopeId", "data-v-112db468"]]));
132
+ //#endregion
133
+ export { V as t };