aibox-custom-component-packages 0.0.7 → 0.0.8

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 (182) hide show
  1. package/es/AddOrEditSupplierDialog.mjs +309 -259
  2. package/es/ApplicationTypeTag.mjs +14 -14
  3. package/es/AuthSection.mjs +11 -11
  4. package/es/AutoShowTooltip.mjs +1 -1
  5. package/es/AvailableRangePreview.mjs +1 -1
  6. package/es/AvailableRangeSetting.mjs +9 -5
  7. package/es/CodeView.mjs +1 -1
  8. package/es/CommonTagsList.mjs +5 -5
  9. package/es/CreateMcpForm.mjs +13 -12
  10. package/es/CustomSidebar.mjs +159 -154
  11. package/es/CustomTitle.mjs +1 -1
  12. package/es/CustomToggle.mjs +131 -77
  13. package/es/DocSyncSelect.mjs +2661 -0
  14. package/es/FileDisplay.mjs +2 -4
  15. package/es/FilePreview.mjs +16 -16
  16. package/es/FileUploader.mjs +71 -74
  17. package/es/Logo.mjs +72 -0
  18. package/es/McpFormDialog.mjs +1 -1
  19. package/es/McpParamsSet.mjs +34 -34
  20. package/es/MdEditor.mjs +2 -2
  21. package/es/PageContainer.mjs +438 -216
  22. package/es/ParameterTable.mjs +23 -21
  23. package/es/PublishRecord.mjs +58 -57
  24. package/es/RadioGroup.mjs +1 -1
  25. package/es/SourcePublish.mjs +95 -93
  26. package/es/Table.mjs +2 -2
  27. package/es/assets/AddOrEditSupplierDialog.css +1 -1
  28. package/es/assets/AiboxTable.css +1 -1
  29. package/es/assets/ApplicationTypeTag.css +1 -1
  30. package/es/assets/AuthSection.css +1 -1
  31. package/es/assets/AutoShowTooltip.css +1 -1
  32. package/es/assets/CommonTagsList.css +1 -1
  33. package/es/assets/CreateMcpForm.css +1 -1
  34. package/es/assets/CustomSidebar.css +1 -1
  35. package/es/assets/CustomToggle.css +1 -1
  36. package/es/assets/DocSyncSelect.css +1 -0
  37. package/es/assets/FilePreview.css +1 -1
  38. package/es/assets/Logo.css +1 -0
  39. package/es/assets/McpParamsSet.css +1 -1
  40. package/es/assets/MdEditor.css +1 -1
  41. package/es/assets/PageContainer.css +1 -1
  42. package/es/assets/ParameterTable.css +1 -1
  43. package/es/assets/PublishRecord.css +1 -1
  44. package/es/assets/RadioGroup.css +1 -1
  45. package/es/assets/SourcePublish.css +1 -1
  46. package/es/assets/index.css +1 -1
  47. package/es/assets/index2.css +1 -1
  48. package/es/assets/index3.css +1 -1
  49. package/es/assets/index4.css +1 -1
  50. package/es/assets/layout.css +1 -1
  51. package/es/chunks/{BackBar.B5Er8ZdJ.js → AiboxTable.CF4T_OCu.js} +122 -122
  52. package/es/chunks/enums.WrpwbF4w.js +14 -0
  53. package/es/chunks/index.BDd6hHiU.js +172 -0
  54. package/es/chunks/{index.CLyfh6p1.js → index.CF_YHLP5.js} +16 -16
  55. package/es/chunks/index.DdD1VsH1.js +396 -0
  56. package/es/chunks/index.Dx-mCS4E.js +1298 -0
  57. package/es/chunks/layout.CygCXa6s.js +26 -0
  58. package/es/chunks/{usePreview.C36fNlVd.js → usePreview.BHvXwaNi.js} +82 -78
  59. package/es/index.mjs +409 -325
  60. package/index.css +1 -1
  61. package/lib/AddOrEditSupplierDialog.js +1 -1
  62. package/lib/ApplicationTypeTag.js +1 -1
  63. package/lib/AuthSection.js +1 -1
  64. package/lib/AutoShowTooltip.js +1 -1
  65. package/lib/AvailableRangePreview.js +1 -1
  66. package/lib/AvailableRangeSetting.js +1 -1
  67. package/lib/CodeView.js +1 -1
  68. package/lib/CommonTagsList.js +1 -1
  69. package/lib/CreateMcpForm.js +1 -1
  70. package/lib/CustomSidebar.js +1 -1
  71. package/lib/CustomTitle.js +1 -1
  72. package/lib/CustomToggle.js +1 -1
  73. package/lib/DocSyncSelect.js +2 -0
  74. package/lib/FileDisplay.js +1 -1
  75. package/lib/FilePreview.js +1 -1
  76. package/lib/FileUploader.js +1 -1
  77. package/lib/Logo.js +1 -0
  78. package/lib/McpFormDialog.js +1 -1
  79. package/lib/McpParamsSet.js +1 -1
  80. package/lib/MdEditor.js +1 -1
  81. package/lib/PageContainer.js +1 -1
  82. package/lib/ParameterTable.js +1 -1
  83. package/lib/PublishRecord.js +2 -2
  84. package/lib/RadioGroup.js +1 -1
  85. package/lib/SourcePublish.js +1 -1
  86. package/lib/Table.js +1 -1
  87. package/lib/assets/AddOrEditSupplierDialog.css +1 -1
  88. package/lib/assets/AiboxTable.css +1 -1
  89. package/lib/assets/ApplicationTypeTag.css +1 -1
  90. package/lib/assets/AuthSection.css +1 -1
  91. package/lib/assets/AutoShowTooltip.css +1 -1
  92. package/lib/assets/CommonTagsList.css +1 -1
  93. package/lib/assets/CreateMcpForm.css +1 -1
  94. package/lib/assets/CustomSidebar.css +1 -1
  95. package/lib/assets/CustomToggle.css +1 -1
  96. package/lib/assets/DocSyncSelect.css +1 -0
  97. package/lib/assets/FilePreview.css +1 -1
  98. package/lib/assets/Logo.css +1 -0
  99. package/lib/assets/McpParamsSet.css +1 -1
  100. package/lib/assets/MdEditor.css +1 -1
  101. package/lib/assets/PageContainer.css +1 -1
  102. package/lib/assets/ParameterTable.css +1 -1
  103. package/lib/assets/PublishRecord.css +1 -1
  104. package/lib/assets/RadioGroup.css +1 -1
  105. package/lib/assets/SourcePublish.css +1 -1
  106. package/lib/assets/index.css +1 -1
  107. package/lib/assets/index2.css +1 -1
  108. package/lib/assets/index3.css +1 -1
  109. package/lib/assets/index4.css +1 -1
  110. package/lib/assets/layout.css +1 -1
  111. package/lib/chunks/AiboxTable.CJOPGJtU.js +1 -0
  112. package/lib/chunks/enums.DpU2er5r.js +1 -0
  113. package/lib/chunks/index.BNivYbtq.js +1 -0
  114. package/lib/chunks/{index.DME62Yfo.js → index.B_keI1Aq.js} +1 -1
  115. package/lib/chunks/index.C7aZx6RG.js +6 -0
  116. package/lib/chunks/index.CJFk1R2u.js +59 -0
  117. package/lib/chunks/layout.DbBSbLgm.js +1 -0
  118. package/lib/chunks/usePreview.BojIDW7Z.js +1 -0
  119. package/lib/index.js +2 -1
  120. package/package.json +2 -2
  121. package/es/ExampleComponent.mjs +0 -35
  122. package/es/assets/BackBar.css +0 -1
  123. package/es/assets/ExampleComponent.css +0 -1
  124. package/es/chunks/BackBar.Bc2NIuzk.js +0 -645
  125. package/es/chunks/BackBar.Cv1wxUcM.js +0 -645
  126. package/es/chunks/BackBar.DJV4JaUM.js +0 -645
  127. package/es/chunks/config.8htFF04x.js +0 -325
  128. package/es/chunks/config.BPp4hMBq.js +0 -325
  129. package/es/chunks/config.BU21Gda2.js +0 -49
  130. package/es/chunks/config.BzCGum_W.js +0 -49
  131. package/es/chunks/config.CFWGjEdA.js +0 -49
  132. package/es/chunks/config.CfWAdyUH.js +0 -325
  133. package/es/chunks/config.DTMcCH58.js +0 -325
  134. package/es/chunks/config.DqhQdkz7.js +0 -325
  135. package/es/chunks/enums.CfSBDD6u.js +0 -83
  136. package/es/chunks/enums.DuBbLcd-.js +0 -83
  137. package/es/chunks/i18n.DmqkiK-h.js +0 -444
  138. package/es/chunks/i18n.Vhq-tZPw.js +0 -94
  139. package/es/chunks/i18n.ro9yz7rE.js +0 -94
  140. package/es/chunks/index.BSA3IKSF.js +0 -111
  141. package/es/chunks/index.CgbxJCEU.js +0 -265
  142. package/es/chunks/index.CuDwuRO7.js +0 -265
  143. package/es/chunks/index.DB0ayMv8.js +0 -257
  144. package/es/chunks/index.DWR4lc30.js +0 -203
  145. package/es/chunks/index.GuEzdh6b.js +0 -257
  146. package/es/chunks/index.aMb6IVQD.js +0 -257
  147. package/es/chunks/index.ml5i7aB5.js +0 -257
  148. package/es/chunks/index.s-YxIOfq.js +0 -301
  149. package/es/chunks/index.uOZzvHrF.js +0 -135
  150. package/es/chunks/publish.BCb7nCo9.js +0 -50
  151. package/es/chunks/publish.D6friivo.js +0 -50
  152. package/es/chunks/publish.Dqzn7qEl.js +0 -50
  153. package/es/i18n.mjs +0 -17
  154. package/lib/ExampleComponent.js +0 -1
  155. package/lib/assets/BackBar.css +0 -1
  156. package/lib/assets/ExampleComponent.css +0 -1
  157. package/lib/chunks/BackBar.C8Xrc6qW.js +0 -1
  158. package/lib/chunks/BackBar.CZsNxoX1.js +0 -1
  159. package/lib/chunks/BackBar.s5_vN6jt.js +0 -1
  160. package/lib/chunks/config.B0XKkp1w.js +0 -1
  161. package/lib/chunks/config.BCAuBVxV.js +0 -1
  162. package/lib/chunks/config.Bs7sh3aP.js +0 -1
  163. package/lib/chunks/config.C1w4hgfw.js +0 -1
  164. package/lib/chunks/config.ClERt2RF.js +0 -1
  165. package/lib/chunks/enums.Dmq4PdUc.js +0 -1
  166. package/lib/chunks/i18n.CL5L6nx6.js +0 -1
  167. package/lib/chunks/i18n.aAXi5igh.js +0 -1
  168. package/lib/chunks/index.BNqTEn3K.js +0 -1
  169. package/lib/chunks/index.BZcSlgOO.js +0 -1
  170. package/lib/chunks/index.Bk-RwmaH.js +0 -1
  171. package/lib/chunks/index.BsN4urmi.js +0 -1
  172. package/lib/chunks/index.D7wBInWr.js +0 -1
  173. package/lib/chunks/index.DWohILMv.js +0 -1
  174. package/lib/chunks/index.LK2ulXTE.js +0 -1
  175. package/lib/chunks/index.qDAoOzk9.js +0 -1
  176. package/lib/chunks/index.s8vGOJKG.js +0 -1
  177. package/lib/chunks/publish.Bw1acrSu.js +0 -1
  178. package/lib/chunks/publish.CA1uSVnm.js +0 -1
  179. package/lib/chunks/usePreview.E5SeS2uw.js +0 -1
  180. package/lib/i18n.js +0 -1
  181. /package/es/assets/{index6.css → legacy.css} +0 -0
  182. /package/lib/assets/{index6.css → legacy.css} +0 -0
@@ -4,10 +4,10 @@ import { ElIcon as Y, ElInput as Z, ElButton as oe, ElTooltip as Oe, ElSelect as
4
4
  import { IconUpload2 as he, Error as ge, IconScene as ot, IconAdd2 as it, IconZuoCopyCopy as Be, IconZuoCopy as Se, IconDelete2 as st, IconAdd as ut, IconTip as be } from "color-message-aibox-vue";
5
5
  import { useDialog as dt, DialogContainer as ct } from "./DialogContainer.mjs";
6
6
  import { AiboxTable as ke } from "./Table.mjs";
7
- import { u as ne, j as X } from "./chunks/i18n.DDMVloiU.js";
7
+ import { u as ne, g as X } from "./chunks/i18n.k9Q_HVMs.js";
8
8
  import { _ as ue } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
9
- import { FileUploader as Ne, getWarnTips as Le, getAcceptType as Ce } from "./FileUploader.mjs";
10
- import { AutoShowTooltip as Re } from "./AutoShowTooltip.mjs";
9
+ import { FileUploader as Ne, getWarnTips as Le, getAcceptType as Ce, UploadTypesEnum as Re } from "./FileUploader.mjs";
10
+ import { AutoShowTooltip as Pe } from "./AutoShowTooltip.mjs";
11
11
  import './assets/ParameterTable.css';const pt = { class: "action-header" }, mt = { class: "dialog-footer" }, At = {
12
12
  __name: "OptionValue",
13
13
  emits: ["createOption"],
@@ -194,7 +194,7 @@ import './assets/ParameterTable.css';const pt = { class: "action-header" }, mt =
194
194
  }, 8, ["title"]);
195
195
  };
196
196
  }
197
- }, yt = /* @__PURE__ */ ue(At, [["__scopeId", "data-v-123f05aa"]]);
197
+ }, yt = /* @__PURE__ */ ue(At, [["__scopeId", "data-v-2681e3ba"]]);
198
198
  function ft(i) {
199
199
  const r = h(() => i.isPluginMode), a = h(() => i.isDataType), l = h(() => i.justString), w = h(() => i.forceRequired), f = h(() => i.showMoreColumns), p = h(() => i.setType && i.setType.length === 1), _ = h(() => r.value && a.value), C = h(() => r.value && l.value), O = h(() => !r.value && a.value), m = h(() => !r.value && l.value), P = h(() => {
200
200
  const T = r.value, M = a.value, N = i.customFieldName;
@@ -462,7 +462,7 @@ const _t = { class: "parameter-format-selector" }, vt = {
462
462
  ]);
463
463
  };
464
464
  }
465
- }, Ot = /* @__PURE__ */ ue(vt, [["__scopeId", "data-v-7c6c8204"]]), fe = [
465
+ }, Ot = /* @__PURE__ */ ue(vt, [["__scopeId", "data-v-acb7ffce"]]), fe = [
466
466
  {
467
467
  label: "String",
468
468
  value: "string",
@@ -561,12 +561,7 @@ const _t = { class: "parameter-format-selector" }, vt = {
561
561
  value: "HEAD",
562
562
  label: "HEAD"
563
563
  }
564
- ], Pe = {
565
- 卡片: "Card",
566
- 按钮: "Button",
567
- 面板: "Panel",
568
- 自定义: "Custom"
569
- }, se = (i) => Mt.includes(i) || i === "array", ce = (i, r) => {
564
+ ], se = (i) => Mt.includes(i) || i === "array", ce = (i, r) => {
570
565
  const { nameField: a, typeField: l, valueField: w } = r;
571
566
  if (!i.children || i.children.length === 0)
572
567
  return;
@@ -683,7 +678,7 @@ const _t = { class: "parameter-format-selector" }, vt = {
683
678
  onChange: s
684
679
  }, null, 8, ["modelValue", "disabled", "placeholder", "class"])) : i.row.extendWidgetType === "image" && !l.value ? (b(), H(e(Ne), {
685
680
  key: 1,
686
- uploadType: e(Pe).自定义,
681
+ uploadType: e(Re).自定义,
687
682
  acceptType: e(Ce)("image"),
688
683
  multiple: !1,
689
684
  limitSize: 1,
@@ -705,7 +700,7 @@ const _t = { class: "parameter-format-selector" }, vt = {
705
700
  _: 1
706
701
  }, 8, ["uploadType", "acceptType", "warnTips"])) : i.row.extendWidgetType === "image" && l.value ? (b(), W("div", ht, [
707
702
  j("div", null, [
708
- v(e(Re), { content: l.value }, {
703
+ v(e(Pe), { content: l.value }, {
709
704
  default: A(() => [
710
705
  q(F(l.value.effectiveUrl), 1)
711
706
  ]),
@@ -723,7 +718,7 @@ const _t = { class: "parameter-format-selector" }, vt = {
723
718
  })
724
719
  ])) : g.value && !l.value ? (b(), H(e(Ne), {
725
720
  key: 3,
726
- uploadType: e(Pe).自定义,
721
+ uploadType: e(Re).自定义,
727
722
  acceptType: e(Ce)("file"),
728
723
  multiple: !1,
729
724
  limitSize: 1,
@@ -745,7 +740,7 @@ const _t = { class: "parameter-format-selector" }, vt = {
745
740
  _: 1
746
741
  }, 8, ["uploadType", "acceptType", "warnTips"])) : g.value && l.value ? (b(), W("div", gt, [
747
742
  j("div", null, [
748
- v(e(Re), { content: l.value }, {
743
+ v(e(Pe), { content: l.value }, {
749
744
  default: A(() => [
750
745
  q(F(l.value.effectiveUrl), 1)
751
746
  ]),
@@ -835,7 +830,7 @@ const _t = { class: "parameter-format-selector" }, vt = {
835
830
  ], 64)) : (b(), W(ae, { key: 1 }, [
836
831
  !l.value && c.value ? (b(), H(e(Ne), {
837
832
  key: 0,
838
- uploadType: e(Pe).自定义,
833
+ uploadType: e(Re).自定义,
839
834
  acceptType: e(Ce)(i.row[e(O)("type")]),
840
835
  multiple: !1,
841
836
  limitSize: 1,
@@ -857,7 +852,7 @@ const _t = { class: "parameter-format-selector" }, vt = {
857
852
  _: 1
858
853
  }, 8, ["uploadType", "acceptType", "warnTips"])) : l.value && c.value ? (b(), W("div", bt, [
859
854
  j("div", null, [
860
- v(e(Re), { content: l.value }, {
855
+ v(e(Pe), { content: l.value }, {
861
856
  default: A(() => [
862
857
  q(F(l.value.effectiveUrl), 1)
863
858
  ]),
@@ -920,7 +915,7 @@ const _t = { class: "parameter-format-selector" }, vt = {
920
915
  T.value ? (b(), W("div", Nt, F(T.value), 1)) : $("", !0)
921
916
  ]));
922
917
  }
923
- }, Ct = /* @__PURE__ */ ue(Lt, [["__scopeId", "data-v-eb75b8d0"]]), Rt = { class: "name-input-container" }, Pt = {
918
+ }, Ct = /* @__PURE__ */ ue(Lt, [["__scopeId", "data-v-36fe7764"]]), Rt = { class: "name-input-container" }, Pt = {
924
919
  key: 0,
925
920
  class: "array-item-display"
926
921
  }, wt = {
@@ -990,7 +985,7 @@ const _t = { class: "parameter-format-selector" }, vt = {
990
985
  d.value ? (b(), W("div", wt, F(g.value), 1)) : $("", !0)
991
986
  ]));
992
987
  }
993
- }, It = /* @__PURE__ */ ue(Dt, [["__scopeId", "data-v-b7489171"]]), Vt = { class: "type-select-container" }, Ut = { key: 1 }, Bt = {
988
+ }, It = /* @__PURE__ */ ue(Dt, [["__scopeId", "data-v-526e0290"]]), Vt = { class: "type-select-container" }, Ut = { key: 1 }, Bt = {
994
989
  key: 2,
995
990
  class: "error-message"
996
991
  }, St = {
@@ -1155,7 +1150,7 @@ const _t = { class: "parameter-format-selector" }, vt = {
1155
1150
  }, 8, ["title"])) : $("", !0)
1156
1151
  ]));
1157
1152
  }
1158
- }, Ht = /* @__PURE__ */ ue(kt, [["__scopeId", "data-v-54c10aa0"]]), jt = {
1153
+ }, Ht = /* @__PURE__ */ ue(kt, [["__scopeId", "data-v-d76e5a0b"]]), jt = {
1159
1154
  // 参数名称列
1160
1155
  name: {
1161
1156
  get label() {
@@ -1230,6 +1225,13 @@ const _t = { class: "parameter-format-selector" }, vt = {
1230
1225
  minWidth: 200,
1231
1226
  headerSlot: "showNameHeader"
1232
1227
  },
1228
+ // 参数格式列(已注释,保留以备后用)
1229
+ // format: {
1230
+ // label: '参数格式',
1231
+ // slot: 'format',
1232
+ // minWidth: 200,
1233
+ // headerSlot: 'formatHeader'
1234
+ // },
1233
1235
  // 默认值列
1234
1236
  default: {
1235
1237
  get label() {
@@ -2274,7 +2276,7 @@ const Xt = {
2274
2276
  } : void 0
2275
2277
  ]), 1032, ["columns", "data", "total", "on-row-key", "isLoading", "max-height"]));
2276
2278
  }
2277
- }, pl = /* @__PURE__ */ ue(cl, [["__scopeId", "data-v-fd4f7807"]]), bl = Ke(pl);
2279
+ }, pl = /* @__PURE__ */ ue(cl, [["__scopeId", "data-v-f39799d3"]]), bl = Ke(pl);
2278
2280
  export {
2279
2281
  Mt as ARRAYTYPES,
2280
2282
  gl as METHODSOPTIONS,
@@ -1,19 +1,19 @@
1
1
  import { w as U } from "./chunks/index.bCzIhWFw.js";
2
- import { ref as O, computed as T, reactive as L, onMounted as V, resolveDirective as w, withDirectives as A, createElementBlock as _, openBlock as i, createBlock as H, unref as o, normalizeClass as b, withCtx as p, createElementVNode as c, Fragment as $, renderList as j, createCommentVNode as z, toDisplayString as l, createVNode as u, createTextVNode as F } from "vue";
3
- import { ElScrollbar as X, ElTooltip as G, ElIcon as y, ElMessageBox as q, ElMessage as J } from "element-plus";
2
+ import { ref as T, computed as y, reactive as L, onMounted as V, resolveDirective as w, withDirectives as A, createElementBlock as u, openBlock as l, createBlock as H, unref as o, normalizeClass as b, withCtx as p, createElementVNode as c, Fragment as $, renderList as j, createCommentVNode as z, toDisplayString as d, createVNode as _, createTextVNode as F } from "vue";
3
+ import { ElScrollbar as X, ElTooltip as G, ElIcon as O, ElMessageBox as q, ElMessage as J } from "element-plus";
4
4
  import { IconRefresh as K, Empty as Q } from "color-message-aibox-vue";
5
- import { u as W } from "./chunks/i18n.DDMVloiU.js";
5
+ import { u as W } from "./chunks/i18n.k9Q_HVMs.js";
6
6
  import { g as Y } from "./chunks/publish.DlD0o09n.js";
7
7
  import { useRoute as Z } from "vue-router";
8
- import { p as ee } from "./chunks/enums.Dvec-maC.js";
9
- import { R as M } from "./chunks/config.RrNwuFkQ.js";
10
- import { P as R } from "./chunks/config.Dklrsn-B.js";
11
- import { D as te } from "./chunks/field-types.CPnMOjle.js";
12
- import { _ as se } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
8
+ import { p as ee } from "./chunks/enums.WrpwbF4w.js";
9
+ import { R as M } from "./chunks/config.gNZ_rT87.js";
10
+ import { P as R } from "./chunks/config.DPkdwjwD.js";
11
+ import { D as se } from "./chunks/field-types.CPnMOjle.js";
12
+ import { _ as te } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
13
13
  import './assets/PublishRecord.css';const oe = { class: "publish-record overflow-hidden" }, ae = { class: "publish-record__item--time" }, ne = { class: "publish-record__item--number" }, re = { class: "publish-record__item--version" }, ce = ["onClick"], ie = { style: { "margin-left": "5px" } }, le = ["title"], de = {
14
14
  key: 1,
15
15
  class: "publish-record__empty flex flex-col items-center justify-center"
16
- }, _e = {
16
+ }, ue = {
17
17
  __name: "PublishRecord",
18
18
  props: {
19
19
  // 3 智能体 4 工作流 5 插件 8 MCP
@@ -32,44 +32,44 @@ import './assets/PublishRecord.css';const oe = { class: "publish-record overflow
32
32
  },
33
33
  emits: ["setRevisionBnid"],
34
34
  setup(E, { emit: C }) {
35
- const { t: a } = W(), N = C, d = E, { getPublishHistory: I, rollbackVersion: B, checkDeleteComponent: P } = Y(), m = Z(), h = O(!1), v = T(() => n.data.length >= n.total);
36
- T(() => n.loading || v.value);
37
- const n = L({
35
+ const { t: a } = W(), N = C, i = E, { getPublishHistory: I, rollbackVersion: B, checkDeleteComponent: P } = Y(), m = Z(), h = T(!1), g = y(() => r.data.length >= r.total);
36
+ y(() => r.loading || g.value);
37
+ const r = L({
38
38
  data: [],
39
39
  pages: { ...ee, size: 30 },
40
40
  total: 0
41
- }), k = (r) => {
42
- r === te.BOTTOM && (v.value || (n.pages.page += 1, f()));
43
- }, x = Object.keys(M).reduce((r, t) => {
44
- const s = M[t];
45
- return r[parseInt(t)] = s.name(d.sourceType), r;
46
- }, {}), f = async (r) => {
41
+ }), k = (n) => {
42
+ n === se.BOTTOM && (g.value || (r.pages.page += 1, f()));
43
+ }, x = Object.keys(M).reduce((n, s) => {
44
+ const t = M[s];
45
+ return n[parseInt(s)] = t.name(i.sourceType), n;
46
+ }, {}), f = async (n) => {
47
47
  h.value = !0;
48
- const { data: t } = await I(d.sourceType, S.value, {
49
- ...n.pages
48
+ const { data: s } = await I(i.sourceType, v.value, {
49
+ ...r.pages
50
50
  }).finally(() => {
51
51
  h.value = !1;
52
52
  });
53
- t.data && t.data.length > 0 && t.data.forEach((s) => {
53
+ s.data && s.data.length > 0 && s.data.forEach((t) => {
54
54
  let e = "";
55
- s.channels && s.channels.length > 0 && (e = s.channels.map((g) => x[g?.channelType]).join("/")), s.channelsTag = e || a("COM_SPM.INVALID_VERSION");
56
- }), r ? n.data = t.data || [] : n.data.push(...t.data || []), n.total = t.total || 0;
57
- }, D = async (r) => {
58
- let t = "";
59
- if (d.sourceType == "3") {
60
- const { data: s } = await P({
61
- bnid: r.publishedId,
55
+ t.channels && t.channels.length > 0 && (e = t.channels.map((S) => x[S?.channelType]).join("/")), t.channelsTag = e || a("COM_SPM.INVALID_VERSION");
56
+ }), n ? r.data = s.data || [] : r.data.push(...s.data || []), r.total = s.total || 0;
57
+ }, D = async (n) => {
58
+ let s = "";
59
+ if (i.sourceType == "3") {
60
+ const { data: t } = await P({
61
+ bnid: n.publishedId,
62
62
  businessType: 3
63
63
  });
64
- s && s.forEach((e) => {
65
- t += `<div style="color:#f5222d">${e}</div>`;
64
+ t && t.forEach((e) => {
65
+ s += `<div style="color:#f5222d">${e}</div>`;
66
66
  });
67
67
  }
68
68
  q.confirm(
69
69
  `<div class="custom-message-box">
70
70
  <div class="custom-message-box__title">${a("COM_SPM.RESTORE_VERSION")}</div>
71
71
  <div class="custom-message-box__tip">${a("COM_SPM.RESTORE_TIP")}</div>
72
- ${t}
72
+ ${s}
73
73
  </div>`,
74
74
  a("COMMON_DATA.TIP"),
75
75
  {
@@ -79,34 +79,35 @@ import './assets/PublishRecord.css';const oe = { class: "publish-record overflow
79
79
  type: "warning"
80
80
  }
81
81
  ).then(async () => {
82
- const { code: s } = await B(d.sourceType, r.bnid);
83
- if (s == 0) {
82
+ console.log(i.sourceType, n.bnid, "props.sourceType, item.bnid");
83
+ const { code: t } = await B(i.sourceType, n.bnid);
84
+ if (t == 0) {
84
85
  const e = a("COM_SPM.RESTORE_SUCCESS");
85
- J.success(e), n.pages.page = 1, f(!0), N("setRevisionBnid", r.bnid);
86
+ J.success(e), r.pages.page = 1, f(!0), N("setRevisionBnid", n.bnid);
86
87
  }
87
88
  }).catch(() => {
88
89
  });
89
- }, S = O("");
90
+ }, v = T("");
90
91
  return V(() => {
91
- S.value = m.params.bnId || m.params.bnid || m.params.workflowBnid || d.resourceBnid, f(!0);
92
- }), (r, t) => {
93
- const s = w("loading");
94
- return A((i(), _("div", oe, [
95
- n?.data?.length ? (i(), H(o(X), {
92
+ v.value = m.params.bnId || m.params.bnid || m.params.workflowBnid || i.resourceBnid, f(!0);
93
+ }), (n, s) => {
94
+ const t = w("loading");
95
+ return A((l(), u("div", oe, [
96
+ r?.data?.length ? (l(), H(o(X), {
96
97
  key: 0,
97
98
  class: b(["publish-record__list", { "backend-system": E.isBackendSystem }]),
98
99
  onEndReached: k
99
100
  }, {
100
101
  default: p(() => [
101
102
  c("ul", null, [
102
- (i(!0), _($, null, j(n.data, (e) => (i(), _("li", {
103
+ (l(!0), u($, null, j(r.data, (e) => (l(), u("li", {
103
104
  key: e.bind,
104
105
  class: "publish-record__item"
105
106
  }, [
106
- c("div", ae, l(e.createdAt), 1),
107
+ c("div", ae, d(e.createdAt), 1),
107
108
  c("div", ne, [
108
109
  c("p", re, [
109
- u(o(G), {
110
+ _(o(G), {
110
111
  placement: "top",
111
112
  effect: "light",
112
113
  content: e.publishStatus == o(R).PUBLISHED ? o(a)("COM_SPM.CURRENT_VERSION") : o(a)("COM_SPM.UNPUBLISHED_VERSION")
@@ -118,13 +119,13 @@ import './assets/PublishRecord.css';const oe = { class: "publish-record overflow
118
119
  e.publishStatus == o(R).PUBLISHED ? "active" : "in-active"
119
120
  ])
120
121
  }, [
121
- F(l(o(a)("COM_SPM.VERSION_NUMBER", { number: e.versionNumber })) + " ", 1),
122
+ F(d(o(a)("COM_SPM.VERSION_NUMBER", { number: e.versionNumber })) + " ", 1),
122
123
  c("span", {
123
124
  class: b([
124
125
  "publish-record__item--type",
125
126
  e.channels?.length >= 2 ? "publish-record__item--both" : "publish-record__item--only"
126
127
  ])
127
- }, l(e.channelsTag), 3)
128
+ }, d(e.channelsTag), 3)
128
129
  ], 2)
129
130
  ]),
130
131
  _: 2
@@ -132,47 +133,47 @@ import './assets/PublishRecord.css';const oe = { class: "publish-record overflow
132
133
  ]),
133
134
  c("p", {
134
135
  class: "publish-record__item--back",
135
- onClick: (g) => D(e)
136
+ onClick: (S) => D(e)
136
137
  }, [
137
- u(o(y), {
138
+ _(o(O), {
138
139
  size: "16px",
139
140
  color: "var(--el-color-primary)"
140
141
  }, {
141
142
  default: p(() => [
142
- u(o(K))
143
+ _(o(K))
143
144
  ]),
144
145
  _: 1
145
146
  }),
146
- c("span", ie, l(o(a)("COM_SPM.RESTORE_VERSION")), 1)
147
+ c("span", ie, d(o(a)("COM_SPM.RESTORE_VERSION")), 1)
147
148
  ], 8, ce)
148
149
  ]),
149
- e.versionDesc ? (i(), _("div", {
150
+ e.versionDesc ? (l(), u("div", {
150
151
  key: 0,
151
152
  class: "publish-record__item--content",
152
153
  title: e.versionDesc
153
- }, l(e.versionDesc), 9, le)) : z("", !0)
154
+ }, d(e.versionDesc), 9, le)) : z("", !0)
154
155
  ]))), 128))
155
156
  ])
156
157
  ]),
157
158
  _: 1
158
- }, 8, ["class"])) : (i(), _("div", de, [
159
- u(o(y), {
159
+ }, 8, ["class"])) : (l(), u("div", de, [
160
+ _(o(O), {
160
161
  size: "100px",
161
162
  color: "var(--el-color-primary)"
162
163
  }, {
163
164
  default: p(() => [
164
- u(o(Q))
165
+ _(o(Q))
165
166
  ]),
166
167
  _: 1
167
168
  }),
168
- c("span", null, l(o(a)("COM_SPM.NO_PUBLISH_RECORD")), 1)
169
+ c("span", null, d(o(a)("COM_SPM.NO_PUBLISH_RECORD")), 1)
169
170
  ]))
170
171
  ])), [
171
- [s, h.value]
172
+ [t, h.value]
172
173
  ]);
173
174
  };
174
175
  }
175
- }, ue = /* @__PURE__ */ se(_e, [["__scopeId", "data-v-0b0f197b"]]), Me = U(ue);
176
+ }, _e = /* @__PURE__ */ te(ue, [["__scopeId", "data-v-112db468"]]), Me = U(_e);
176
177
  export {
177
178
  Me as PublishRecord,
178
179
  Me as default
package/es/RadioGroup.mjs CHANGED
@@ -112,7 +112,7 @@ import './assets/RadioGroup.css';const G = {
112
112
  }, 8, ["model-value", "class", "disabled"])
113
113
  ], 2));
114
114
  }
115
- }, w = /* @__PURE__ */ E(I, [["__scopeId", "data-v-40c4ef71"]]), L = C(w);
115
+ }, w = /* @__PURE__ */ E(I, [["__scopeId", "data-v-f3d9d53f"]]), L = C(w);
116
116
  export {
117
117
  L as RadioGroup,
118
118
  L as default