aibox-custom-component-packages 0.0.26 → 0.0.27

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 (104) hide show
  1. package/es/SourcePublish.mjs +1 -1
  2. package/es/assets/SourcePublish.css +1 -1
  3. package/es/chunks/{AddOrEditSupplierDialog.DUqqhPyY.js → AddOrEditSupplierDialog.Dg8gkZJ_.js} +2 -2
  4. package/es/chunks/AiboxTable.C9hrozrD.js +635 -0
  5. package/es/chunks/{ApplicationTypeTag.CdOFw2tm.js → ApplicationTypeTag.C7wkmR5k.js} +1 -1
  6. package/es/chunks/AuthSection.B8fzLcqX.js +201 -0
  7. package/es/chunks/AvailableRangePreview.CEoRKsuA.js +194 -0
  8. package/es/chunks/AvailableRangeSetting.C9GkFsQd.js +229 -0
  9. package/es/chunks/CodeView.Bsu4N1bC.js +148 -0
  10. package/es/chunks/CommonTagsList.C5_QqxEd.js +156 -0
  11. package/es/chunks/CreateMcpForm.DF53TdcU.js +308 -0
  12. package/es/chunks/{DocSyncSelect.DP8U1-ZH.js → DocSyncSelect.BAHqN-9J.js} +3 -3
  13. package/es/chunks/FileUploader.DUj7bSMa.js +216 -0
  14. package/es/chunks/McpFormDialog.Bc7oBv3C.js +297 -0
  15. package/es/chunks/McpParamsSet.CZJmyAJo.js +501 -0
  16. package/es/chunks/MdEditor.BBlPGzuI.js +163 -0
  17. package/es/chunks/ParameterTable.CMHp6Ubd.js +2010 -0
  18. package/es/chunks/PublishRecord.Cg21VWQX.js +133 -0
  19. package/es/chunks/{SourcePublish.CjzqOFwj.js → SourcePublish.BjY8OTLS.js} +10 -23
  20. package/es/chunks/{SourcePublish.DBM7OeXm.js → SourcePublish.BqTfGtXE.js} +5 -2
  21. package/es/chunks/SourcePublish.lCN7YbeP.js +979 -0
  22. package/es/chunks/config.CK5iNO4T.js +270 -0
  23. package/es/chunks/config.D-qzWO8Q.js +35 -0
  24. package/es/chunks/i18n.C-J-jxme.js +426 -0
  25. package/es/index.mjs +1 -1
  26. package/lib/SourcePublish.js +1 -1
  27. package/lib/assets/SourcePublish.css +1 -1
  28. package/lib/chunks/SourcePublish.BqmktWp7.js +1 -0
  29. package/lib/chunks/SourcePublish.Bz8MaRPm.js +1 -0
  30. package/lib/index.js +1 -1
  31. package/package.json +3 -3
  32. package/es/AiboxTabs.mjs +0 -71
  33. package/es/ExampleComponent.mjs +0 -35
  34. package/es/assets/AiboxTabs.css +0 -1
  35. package/es/assets/BackBar.css +0 -1
  36. package/es/assets/ExampleComponent.css +0 -1
  37. package/es/assets/index.css +0 -1
  38. package/es/assets/index2.css +0 -1
  39. package/es/assets/index3.css +0 -1
  40. package/es/assets/index4.css +0 -1
  41. package/es/chunks/AiboxTable.CF4T_OCu.js +0 -645
  42. package/es/chunks/ApplicationTypeTag.CpzWFRmD.js +0 -52
  43. package/es/chunks/BackBar.Bc2NIuzk.js +0 -645
  44. package/es/chunks/DocSyncSelect.CY25GsAh.js +0 -2310
  45. package/es/chunks/DocSyncSelect.dhZh4w45.js +0 -2290
  46. package/es/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
  47. package/es/chunks/config.8htFF04x.js +0 -325
  48. package/es/chunks/config.BU21Gda2.js +0 -49
  49. package/es/chunks/config.DPkdwjwD.js +0 -49
  50. package/es/chunks/config.gNZ_rT87.js +0 -325
  51. package/es/chunks/enums.CfSBDD6u.js +0 -83
  52. package/es/chunks/enums.WrpwbF4w.js +0 -14
  53. package/es/chunks/field-types.CPnMOjle.js +0 -13
  54. package/es/chunks/files.cduUqjHX.js +0 -16
  55. package/es/chunks/i18n.DmqkiK-h.js +0 -444
  56. package/es/chunks/i18n.k9Q_HVMs.js +0 -443
  57. package/es/chunks/index.BDd6hHiU.js +0 -172
  58. package/es/chunks/index.CF_YHLP5.js +0 -257
  59. package/es/chunks/index.DM3o2YX3.js +0 -398
  60. package/es/chunks/index.Dx-mCS4E.js +0 -1298
  61. package/es/chunks/index.bCzIhWFw.js +0 -7
  62. package/es/chunks/index.ml5i7aB5.js +0 -257
  63. package/es/chunks/layout.CygCXa6s.js +0 -26
  64. package/es/chunks/publish.D6friivo.js +0 -50
  65. package/es/chunks/publish.DlD0o09n.js +0 -50
  66. package/es/chunks/request.24c3shPx.js +0 -5
  67. package/es/chunks/usePreview.BHvXwaNi.js +0 -157
  68. package/lib/AiboxTabs.js +0 -1
  69. package/lib/ExampleComponent.js +0 -1
  70. package/lib/assets/AiboxTabs.css +0 -1
  71. package/lib/assets/BackBar.css +0 -1
  72. package/lib/assets/ExampleComponent.css +0 -1
  73. package/lib/assets/index.css +0 -1
  74. package/lib/assets/index2.css +0 -1
  75. package/lib/assets/index3.css +0 -1
  76. package/lib/assets/index4.css +0 -1
  77. package/lib/chunks/AiboxTable.CJOPGJtU.js +0 -1
  78. package/lib/chunks/ApplicationTypeTag.BmU_cqaw.js +0 -1
  79. package/lib/chunks/BackBar.CZsNxoX1.js +0 -1
  80. package/lib/chunks/DocSyncSelect.DndqvEn2.js +0 -2
  81. package/lib/chunks/DocSyncSelect.kDNcepY-.js +0 -2
  82. package/lib/chunks/SourcePublish.eOSEULjP.js +0 -1
  83. package/lib/chunks/_plugin-vue_export-helper.BHFhmbuH.js +0 -1
  84. package/lib/chunks/config.1oaIKLGn.js +0 -1
  85. package/lib/chunks/config.B0XKkp1w.js +0 -1
  86. package/lib/chunks/config.BCAuBVxV.js +0 -1
  87. package/lib/chunks/config.BF7MO0O5.js +0 -1
  88. package/lib/chunks/enums.Dmq4PdUc.js +0 -1
  89. package/lib/chunks/enums.DpU2er5r.js +0 -1
  90. package/lib/chunks/field-types.Ch_2yDfg.js +0 -1
  91. package/lib/chunks/files.B3-8UC0v.js +0 -1
  92. package/lib/chunks/i18n.CL5L6nx6.js +0 -1
  93. package/lib/chunks/i18n.DgOp_D7R.js +0 -1
  94. package/lib/chunks/index.4hFddClT.js +0 -6
  95. package/lib/chunks/index.BNivYbtq.js +0 -1
  96. package/lib/chunks/index.B_keI1Aq.js +0 -1
  97. package/lib/chunks/index.Bk-RwmaH.js +0 -1
  98. package/lib/chunks/index.CJFk1R2u.js +0 -59
  99. package/lib/chunks/index.CkihWzK6.js +0 -1
  100. package/lib/chunks/layout.DbBSbLgm.js +0 -1
  101. package/lib/chunks/publish.3TrK3fZf.js +0 -1
  102. package/lib/chunks/publish.Bw1acrSu.js +0 -1
  103. package/lib/chunks/request.D8T4MgGX.js +0 -1
  104. package/lib/chunks/usePreview.BojIDW7Z.js +0 -1
@@ -0,0 +1,133 @@
1
+ import { t as e } from "./withinstall.CMngc-br.js";
2
+ import { m as t } from "./i18n.C-J-jxme.js";
3
+ import { n } from "./enums.ICkM62f8.js";
4
+ import { t as r } from "./_plugin-vue_export-helper.B3ysoDQm.js";
5
+ import { r as i } from "./config.D-qzWO8Q.js";
6
+ import { m as a } from "./config.CK5iNO4T.js";
7
+ import { n as o } from "./field-types.xGpJxVGP.js";
8
+ import { t as s } from "./publish.BNhXzUgD.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 };
@@ -257,10 +257,6 @@ var Z = /* @__PURE__ */ n(ge, [["render", ve], ["__scopeId", "data-v-d8a76b28"]]
257
257
  authType: {
258
258
  type: String,
259
259
  default: ""
260
- },
261
- categoryValidateMessage: {
262
- type: String,
263
- default: ""
264
260
  }
265
261
  },
266
262
  emits: ["validateField", "update:modelValue"],
@@ -270,13 +266,10 @@ var Z = /* @__PURE__ */ n(ge, [["render", ve], ["__scopeId", "data-v-d8a76b28"]]
270
266
  let h = r, g = e, { checkToken: ie } = te(), E = O(null), A = O(null), j = O(!1), M = O(""), N = O({}), { t: L } = t(), se = O([]), R = v(() => {
271
267
  let e = m(g.sourceType, g.channelManagement) || [];
272
268
  return g.isBackendSystem ? e.filter((e) => e.channelType !== "3") : e;
273
- }), B = (e) => se.value?.find((t) => t.id === e.id)?.id ? l.PUBLISHED : l.UNPUBLISHED, ue = v(() => {
274
- let e = {
275
- required: !0,
276
- trigger: "change"
277
- };
278
- return g.categoryValidateMessage && (e.message = g.categoryValidateMessage), { bakInt: [e] };
279
- }), W = v(() => [
269
+ }), B = (e) => se.value?.find((t) => t.id === e.id)?.id ? l.PUBLISHED : l.UNPUBLISHED, ue = { bakInt: [{
270
+ required: !0,
271
+ trigger: "change"
272
+ }] }, W = v(() => [
280
273
  {
281
274
  type: "selection",
282
275
  selectable: (e) => g.disabled || e.id == c.AIBox ? !1 : p.includes(e.id) ? j.value : !0,
@@ -311,7 +304,7 @@ var Z = /* @__PURE__ */ n(ge, [["render", ve], ["__scopeId", "data-v-d8a76b28"]]
311
304
  label: "",
312
305
  prop: "inActive",
313
306
  slot: "inActive",
314
- width: 120,
307
+ width: 100,
315
308
  show: g.isBackendSystem
316
309
  }
317
310
  ].filter((e) => e.show)), K = [{
@@ -531,7 +524,7 @@ var Z = /* @__PURE__ */ n(ge, [["render", ve], ["__scopeId", "data-v-d8a76b28"]]
531
524
  ref_key: "categoryFormRef",
532
525
  ref: A,
533
526
  model: N.value,
534
- rules: ue.value
527
+ rules: ue
535
528
  }, {
536
529
  default: I(() => [w(F(z), { prop: "bakInt" }, {
537
530
  default: I(() => [w(F(U), {
@@ -556,7 +549,7 @@ var Z = /* @__PURE__ */ n(ge, [["render", ve], ["__scopeId", "data-v-d8a76b28"]]
556
549
  _: 1
557
550
  })]),
558
551
  _: 1
559
- }, 8, ["model", "rules"])) : b("", !0)])]),
552
+ }, 8, ["model"])) : b("", !0)])]),
560
553
  _: 1
561
554
  }, 8, [
562
555
  "columns",
@@ -566,7 +559,7 @@ var Z = /* @__PURE__ */ n(ge, [["render", ve], ["__scopeId", "data-v-d8a76b28"]]
566
559
  "expand-row-keys"
567
560
  ])]));
568
561
  }
569
- }, [["__scopeId", "data-v-26ab8d6f"]]), ze = { class: "publish-container__back" }, Be = { class: "publish-container__config" }, Ve = { class: "publish-container__config" }, He = "feishu", Ue = /* @__PURE__ */ n({
562
+ }, [["__scopeId", "data-v-ff069f4f"]]), ze = { class: "publish-container__back" }, Be = { class: "publish-container__config" }, Ve = { class: "publish-container__config" }, He = "feishu", Ue = /* @__PURE__ */ n({
570
563
  __name: "layout",
571
564
  props: {
572
565
  showPublishConfig: {
@@ -612,10 +605,6 @@ var Z = /* @__PURE__ */ n(ge, [["render", ve], ["__scopeId", "data-v-d8a76b28"]]
612
605
  isOfficialRelease: {
613
606
  type: Boolean,
614
607
  default: !1
615
- },
616
- categoryValidateMessage: {
617
- type: String,
618
- default: ""
619
608
  }
620
609
  },
621
610
  setup(e, { expose: n }) {
@@ -906,7 +895,6 @@ var Z = /* @__PURE__ */ n(ge, [["render", ve], ["__scopeId", "data-v-d8a76b28"]]
906
895
  "is-backend-system": e.isBackendSystem,
907
896
  disabled: e.disabled,
908
897
  "auth-type": m.value,
909
- "category-validate-message": e.categoryValidateMessage,
910
898
  onValidateField: N
911
899
  }, null, 8, [
912
900
  "source-type",
@@ -914,8 +902,7 @@ var Z = /* @__PURE__ */ n(ge, [["render", ve], ["__scopeId", "data-v-d8a76b28"]]
914
902
  "modelValue",
915
903
  "is-backend-system",
916
904
  "disabled",
917
- "auth-type",
918
- "category-validate-message"
905
+ "auth-type"
919
906
  ])]),
920
907
  _: 1
921
908
  })]),
@@ -930,7 +917,7 @@ var Z = /* @__PURE__ */ n(ge, [["render", ve], ["__scopeId", "data-v-d8a76b28"]]
930
917
  ])], 2)), [[a, d.value]]);
931
918
  };
932
919
  }
933
- }, [["__scopeId", "data-v-09cd6741"]]), We = () => {
920
+ }, [["__scopeId", "data-v-c73e4d85"]]), We = () => {
934
921
  let { t: e } = t();
935
922
  return {
936
923
  serviceType: [{
@@ -533,7 +533,10 @@ var Z = /*#__PURE__*/ n(ge, [["render", ve], ["__scopeId", "data-v-d8a76b28"]]),
533
533
  model: N.value,
534
534
  rules: ue.value
535
535
  }, {
536
- default: I(() => [w(F(z), { prop: "bakInt" }, {
536
+ default: I(() => [w(F(z), {
537
+ prop: "bakInt",
538
+ "show-message": !1
539
+ }, {
537
540
  default: I(() => [w(F(U), {
538
541
  modelValue: N.value.bakInt,
539
542
  "onUpdate:modelValue": n[3] ||= (e) => N.value.bakInt = e,
@@ -566,7 +569,7 @@ var Z = /*#__PURE__*/ n(ge, [["render", ve], ["__scopeId", "data-v-d8a76b28"]]),
566
569
  "expand-row-keys"
567
570
  ])]));
568
571
  }
569
- }, [["__scopeId", "data-v-26ab8d6f"]]), ze = { class: "publish-container__back" }, Be = { class: "publish-container__config" }, Ve = { class: "publish-container__config" }, He = "feishu", Ue = /*#__PURE__*/ n({
572
+ }, [["__scopeId", "data-v-29ccd59d"]]), ze = { class: "publish-container__back" }, Be = { class: "publish-container__config" }, Ve = { class: "publish-container__config" }, He = "feishu", Ue = /*#__PURE__*/ n({
570
573
  __name: "layout",
571
574
  props: {
572
575
  showPublishConfig: {