aibox-custom-component-packages 0.0.13 → 0.0.15

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 (88) hide show
  1. package/es/SourcePublish.mjs +1 -1
  2. package/es/assets/SourcePublish.css +1 -1
  3. package/es/chunks/{SourcePublish.BhLjt18i.js → SourcePublish.Dk7O9GzI.js} +2 -6
  4. package/es/index.mjs +1 -1
  5. package/lib/SourcePublish.js +1 -1
  6. package/lib/assets/SourcePublish.css +1 -1
  7. package/lib/chunks/SourcePublish.OeB6i-Iu.js +1 -0
  8. package/lib/index.js +1 -1
  9. package/package.json +2 -2
  10. package/es/chunks/AddOrEditSupplierDialog.BKR0RsiJ.js +0 -721
  11. package/es/chunks/AddOrEditSupplierDialog.CjNRipPe.js +0 -721
  12. package/es/chunks/AddOrEditSupplierDialog.CnsquSx2.js +0 -721
  13. package/es/chunks/AiboxTable.CDqNvRfJ.js +0 -635
  14. package/es/chunks/AiboxTable.CrWMAX84.js +0 -635
  15. package/es/chunks/ApplicationTypeTag.Cbdi0D65.js +0 -47
  16. package/es/chunks/ApplicationTypeTag.Df4BZxds.js +0 -47
  17. package/es/chunks/AuthSection.DFfj5MtZ.js +0 -201
  18. package/es/chunks/AuthSection.DWD_FxtJ.js +0 -201
  19. package/es/chunks/AvailableRangePreview.Bz9QkkAM.js +0 -194
  20. package/es/chunks/AvailableRangePreview.WFzbRasx.js +0 -194
  21. package/es/chunks/AvailableRangeSetting.Bq_K1zar.js +0 -229
  22. package/es/chunks/AvailableRangeSetting.Cty5Cdmh.js +0 -229
  23. package/es/chunks/CodeView.CWuSIL_F.js +0 -148
  24. package/es/chunks/CodeView.Dhxe1PQP.js +0 -148
  25. package/es/chunks/CommonTagsList.DSPdgjc3.js +0 -156
  26. package/es/chunks/CommonTagsList.NbXVfvLW.js +0 -156
  27. package/es/chunks/CommonTagsList.qam_Fp76.js +0 -156
  28. package/es/chunks/CreateMcpForm.BBVVd2RN.js +0 -308
  29. package/es/chunks/CreateMcpForm.BWUyeP01.js +0 -308
  30. package/es/chunks/CreateMcpForm.C8YfDSEM.js +0 -308
  31. package/es/chunks/CreateMcpForm.DSE5jyiW.js +0 -308
  32. package/es/chunks/CustomSidebar.BSGAhmVY.js +0 -585
  33. package/es/chunks/DocSyncSelect.D-WIvZZN.js +0 -2290
  34. package/es/chunks/DocSyncSelect.Kk88o9gO.js +0 -2290
  35. package/es/chunks/FileDisplay.B5laA4uX.js +0 -1649
  36. package/es/chunks/FileDisplay.BCTNdpl9.js +0 -1649
  37. package/es/chunks/FileDisplay.CBNYrdsK.js +0 -1560
  38. package/es/chunks/FilePreview.B9u8ODHp.js +0 -123
  39. package/es/chunks/FileUploader.BaikPGWb.js +0 -216
  40. package/es/chunks/FileUploader.DD-lopf-.js +0 -216
  41. package/es/chunks/McpFormDialog.4HDExbTn.js +0 -297
  42. package/es/chunks/McpFormDialog.CgnC1I7i.js +0 -297
  43. package/es/chunks/McpFormDialog.D3txmoEF.js +0 -297
  44. package/es/chunks/McpFormDialog.DNzqqhaX.js +0 -297
  45. package/es/chunks/McpParamsSet.DlWx6E5S.js +0 -501
  46. package/es/chunks/McpParamsSet.Tlo_lPn-.js +0 -501
  47. package/es/chunks/MdEditor.B9-B9aiy.js +0 -163
  48. package/es/chunks/MdEditor.CeEo0P6j.js +0 -163
  49. package/es/chunks/MdEditor.DtL0Se7T.js +0 -163
  50. package/es/chunks/ParameterTable.BCdnj1gW.js +0 -2010
  51. package/es/chunks/ParameterTable.hUsxEU6F.js +0 -2010
  52. package/es/chunks/PublishRecord.9PLs9yUj.js +0 -133
  53. package/es/chunks/PublishRecord.C0841sJ-.js +0 -133
  54. package/es/chunks/PublishRecord.DEzC7hmP.js +0 -133
  55. package/es/chunks/SourcePublish.C97G36H2.js +0 -972
  56. package/es/chunks/SourcePublish.DkyY1KEk.js +0 -972
  57. package/es/chunks/SourcePublish.Dx-ltk9U.js +0 -956
  58. package/es/chunks/SourcePublish.FiswtYfr.js +0 -972
  59. package/es/chunks/SourcePublish.nfXmrVHm.js +0 -972
  60. package/es/chunks/config.BEZNFeRN.js +0 -35
  61. package/es/chunks/config.LzgBLhTz.js +0 -270
  62. package/es/chunks/config.MfNKPMiA.js +0 -35
  63. package/es/chunks/config.TaUlPTYL.js +0 -270
  64. package/es/chunks/config.l1J_qxeB.js +0 -270
  65. package/es/chunks/i18n.CIjLjyDK.js +0 -418
  66. package/es/chunks/i18n.CxsxtRq_.js +0 -418
  67. package/es/chunks/usePreview.agdxmOk8.js +0 -126
  68. package/lib/chunks/AddOrEditSupplierDialog.D0DSQZiS.js +0 -1
  69. package/lib/chunks/CommonTagsList.DbNcVId5.js +0 -1
  70. package/lib/chunks/CreateMcpForm.Cm9eHXWg.js +0 -1
  71. package/lib/chunks/CreateMcpForm.DNijYbgd.js +0 -1
  72. package/lib/chunks/CustomSidebar.Dojb1xoS.js +0 -1
  73. package/lib/chunks/FileDisplay.B4gn0Jhp.js +0 -59
  74. package/lib/chunks/FileDisplay.B7JWIcFg.js +0 -59
  75. package/lib/chunks/FileDisplay.DjtHza32.js +0 -59
  76. package/lib/chunks/FilePreview.b1Gine59.js +0 -1
  77. package/lib/chunks/McpFormDialog.BgNPOGB-.js +0 -6
  78. package/lib/chunks/McpFormDialog.CL2bInts.js +0 -6
  79. package/lib/chunks/McpFormDialog.DbhQIwYW.js +0 -6
  80. package/lib/chunks/MdEditor.rVQbuxCg.js +0 -1
  81. package/lib/chunks/PublishRecord.B7xYlRKJ.js +0 -5
  82. package/lib/chunks/SourcePublish.BBsNlnp4.js +0 -1
  83. package/lib/chunks/SourcePublish.C9JAqJcV.js +0 -1
  84. package/lib/chunks/SourcePublish.CpeV-UOG.js +0 -1
  85. package/lib/chunks/SourcePublish.K4tntn9l.js +0 -1
  86. package/lib/chunks/SourcePublish.tNsaCp3r.js +0 -1
  87. package/lib/chunks/config.CDNV0bUm.js +0 -1
  88. package/lib/chunks/usePreview.Dmhz8azZ.js +0 -1
@@ -1,133 +0,0 @@
1
- import { t as e } from "./withinstall.dLh4K-0g.js";
2
- import { m as t } from "./i18n.CIjLjyDK.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.BEZNFeRN.js";
6
- import { m as a } from "./config.LzgBLhTz.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 };
@@ -1,133 +0,0 @@
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 };
@@ -1,133 +0,0 @@
1
- import { t as e } from "./withinstall.dLh4K-0g.js";
2
- import { m as t } from "./i18n.CxsxtRq_.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.MfNKPMiA.js";
6
- import { m as a } from "./config.l1J_qxeB.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 };