aibox-custom-component-packages 0.0.6 → 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 (191) hide show
  1. package/es/AddOrEditSupplierDialog.mjs +836 -0
  2. package/es/ApplicationTypeTag.mjs +58 -0
  3. package/es/AuthSection.mjs +199 -0
  4. package/es/AutoShowTooltip.mjs +90 -0
  5. package/es/AvailableRangePreview.mjs +1 -1
  6. package/es/AvailableRangeSetting.mjs +16 -11
  7. package/es/CodeView.mjs +7 -0
  8. package/es/CommonTagsList.mjs +5 -5
  9. package/es/CreateMcpForm.mjs +385 -0
  10. package/es/CustomSidebar.mjs +717 -0
  11. package/es/CustomTitle.mjs +7 -0
  12. package/es/CustomToggle.mjs +224 -0
  13. package/es/DialogContainer.mjs +21 -21
  14. package/es/DocSyncSelect.mjs +2661 -0
  15. package/es/FileDisplay.mjs +4 -0
  16. package/es/FilePreview.mjs +179 -0
  17. package/es/FileUploader.mjs +263 -9
  18. package/es/Logo.mjs +72 -0
  19. package/es/McpFormDialog.mjs +8 -0
  20. package/es/McpParamsSet.mjs +630 -0
  21. package/es/MdEditor.mjs +201 -0
  22. package/es/PageContainer.mjs +582 -11
  23. package/es/ParameterTable.mjs +2290 -0
  24. package/es/PublishRecord.mjs +59 -58
  25. package/es/RadioGroup.mjs +119 -0
  26. package/es/SourcePublish.mjs +96 -94
  27. package/es/Table.mjs +2 -2
  28. package/es/assets/AddOrEditSupplierDialog.css +1 -0
  29. package/es/assets/AiboxTable.css +1 -0
  30. package/es/assets/ApplicationTypeTag.css +1 -0
  31. package/es/assets/AuthSection.css +1 -0
  32. package/es/assets/AutoShowTooltip.css +1 -0
  33. package/es/assets/CommonTagsList.css +1 -1
  34. package/es/assets/CreateMcpForm.css +1 -0
  35. package/es/assets/CustomSidebar.css +1 -0
  36. package/es/assets/CustomToggle.css +1 -0
  37. package/es/assets/DocSyncSelect.css +1 -0
  38. package/es/assets/FilePreview.css +1 -0
  39. package/es/assets/FileUploader.css +1 -0
  40. package/es/assets/Logo.css +1 -0
  41. package/es/assets/McpParamsSet.css +1 -0
  42. package/es/assets/MdEditor.css +1 -0
  43. package/es/assets/PageContainer.css +1 -0
  44. package/es/assets/ParameterTable.css +1 -0
  45. package/es/assets/PublishRecord.css +1 -1
  46. package/es/assets/RadioGroup.css +1 -0
  47. package/es/assets/SourcePublish.css +1 -1
  48. package/es/assets/index.css +1 -1
  49. package/es/assets/index2.css +1 -1
  50. package/es/assets/index3.css +1 -0
  51. package/es/assets/index4.css +1 -0
  52. package/es/assets/index5.css +1 -0
  53. package/es/assets/layout.css +1 -0
  54. package/es/assets/legacy.css +1 -0
  55. package/es/assets/usePreview.css +1 -0
  56. package/es/chunks/{BackBar.Cv1wxUcM.js → AiboxTable.CF4T_OCu.js} +123 -123
  57. package/es/chunks/{BackBar.DJV4JaUM.js → AiboxTable.DUGBBVXh.js} +123 -123
  58. package/es/chunks/{config.BU21Gda2.js → config.DPkdwjwD.js} +1 -1
  59. package/es/chunks/{config.BzCGum_W.js → config.Dklrsn-B.js} +1 -1
  60. package/es/chunks/{config.BPp4hMBq.js → config.RrNwuFkQ.js} +2 -2
  61. package/es/chunks/{config.DTMcCH58.js → config.gNZ_rT87.js} +2 -2
  62. package/es/chunks/{enums.CfSBDD6u.js → enums.Dvec-maC.js} +11 -32
  63. package/es/chunks/enums.WrpwbF4w.js +14 -0
  64. package/es/chunks/field-types.CPnMOjle.js +13 -0
  65. package/es/chunks/files.cduUqjHX.js +16 -0
  66. package/es/chunks/i18n.DDMVloiU.js +443 -0
  67. package/es/chunks/{i18n.DmqkiK-h.js → i18n.k9Q_HVMs.js} +25 -26
  68. package/es/chunks/index.BDd6hHiU.js +172 -0
  69. package/es/chunks/index.BT1khSY9.js +111 -0
  70. package/es/chunks/{index.DB0ayMv8.js → index.CDvh263l.js} +3 -3
  71. package/es/chunks/{index.aMb6IVQD.js → index.CF_YHLP5.js} +19 -19
  72. package/es/chunks/index.CSjjAi3w.js +396 -0
  73. package/es/chunks/index.CdEBk4F_.js +134 -0
  74. package/es/chunks/index.DdD1VsH1.js +396 -0
  75. package/es/chunks/index.Dx-mCS4E.js +1298 -0
  76. package/es/chunks/layout.BREUWPEJ.js +26 -0
  77. package/es/chunks/layout.CygCXa6s.js +26 -0
  78. package/es/chunks/{publish.BCb7nCo9.js → publish.DlD0o09n.js} +1 -1
  79. package/es/chunks/request.24c3shPx.js +5 -0
  80. package/es/chunks/usePreview.B5lboHeg.js +153 -0
  81. package/es/chunks/usePreview.BHvXwaNi.js +157 -0
  82. package/es/index.mjs +404 -307
  83. package/lib/AddOrEditSupplierDialog.js +1 -0
  84. package/lib/ApplicationTypeTag.js +1 -0
  85. package/lib/AuthSection.js +1 -0
  86. package/lib/AutoShowTooltip.js +1 -0
  87. package/lib/AvailableRangePreview.js +1 -1
  88. package/lib/AvailableRangeSetting.js +1 -1
  89. package/lib/CodeView.js +1 -0
  90. package/lib/CommonTagsList.js +1 -1
  91. package/lib/CreateMcpForm.js +1 -0
  92. package/lib/CustomSidebar.js +1 -0
  93. package/lib/CustomTitle.js +1 -0
  94. package/lib/CustomToggle.js +1 -0
  95. package/lib/DialogContainer.js +1 -1
  96. package/lib/DocSyncSelect.js +2 -0
  97. package/lib/FileDisplay.js +1 -0
  98. package/lib/FilePreview.js +1 -0
  99. package/lib/FileUploader.js +1 -1
  100. package/lib/Logo.js +1 -0
  101. package/lib/McpFormDialog.js +1 -0
  102. package/lib/McpParamsSet.js +1 -0
  103. package/lib/MdEditor.js +1 -0
  104. package/lib/PageContainer.js +1 -1
  105. package/lib/ParameterTable.js +1 -0
  106. package/lib/PublishRecord.js +4 -4
  107. package/lib/RadioGroup.js +1 -0
  108. package/lib/SourcePublish.js +1 -1
  109. package/lib/Table.js +1 -1
  110. package/lib/assets/AddOrEditSupplierDialog.css +1 -0
  111. package/lib/assets/AiboxTable.css +1 -0
  112. package/lib/assets/ApplicationTypeTag.css +1 -0
  113. package/lib/assets/AuthSection.css +1 -0
  114. package/lib/assets/AutoShowTooltip.css +1 -0
  115. package/lib/assets/CommonTagsList.css +1 -1
  116. package/lib/assets/CreateMcpForm.css +1 -0
  117. package/lib/assets/CustomSidebar.css +1 -0
  118. package/lib/assets/CustomToggle.css +1 -0
  119. package/lib/assets/DocSyncSelect.css +1 -0
  120. package/lib/assets/FilePreview.css +1 -0
  121. package/lib/assets/FileUploader.css +1 -0
  122. package/lib/assets/Logo.css +1 -0
  123. package/lib/assets/McpParamsSet.css +1 -0
  124. package/lib/assets/MdEditor.css +1 -0
  125. package/lib/assets/PageContainer.css +1 -0
  126. package/lib/assets/ParameterTable.css +1 -0
  127. package/lib/assets/PublishRecord.css +1 -1
  128. package/lib/assets/RadioGroup.css +1 -0
  129. package/lib/assets/SourcePublish.css +1 -1
  130. package/lib/assets/index.css +1 -1
  131. package/lib/assets/index2.css +1 -1
  132. package/lib/assets/index3.css +1 -0
  133. package/lib/assets/index4.css +1 -0
  134. package/lib/assets/index5.css +1 -0
  135. package/lib/assets/layout.css +1 -0
  136. package/lib/assets/legacy.css +1 -0
  137. package/lib/assets/usePreview.css +1 -0
  138. package/lib/chunks/AiboxTable.BnoHJ7xL.js +1 -0
  139. package/lib/chunks/AiboxTable.CJOPGJtU.js +1 -0
  140. package/lib/chunks/{config.B0XKkp1w.js → config.1oaIKLGn.js} +1 -1
  141. package/lib/chunks/{config.BCAuBVxV.js → config.BF7MO0O5.js} +1 -1
  142. package/lib/chunks/enums.DnuzPZCR.js +1 -0
  143. package/lib/chunks/enums.DpU2er5r.js +1 -0
  144. package/lib/chunks/field-types.Ch_2yDfg.js +1 -0
  145. package/lib/chunks/files.B3-8UC0v.js +1 -0
  146. package/lib/chunks/i18n.DgOp_D7R.js +1 -0
  147. package/lib/chunks/index.BNivYbtq.js +1 -0
  148. package/lib/chunks/{index.Bk-RwmaH.js → index.B_keI1Aq.js} +1 -1
  149. package/lib/chunks/{index.BsN4urmi.js → index.Bc71XWQn.js} +1 -1
  150. package/lib/chunks/index.C7aZx6RG.js +6 -0
  151. package/lib/chunks/index.CH7XdMru.js +1 -0
  152. package/lib/chunks/index.CJFk1R2u.js +59 -0
  153. package/lib/chunks/index.CaidDlAx.js +1 -0
  154. package/lib/chunks/index.DGWHQFdx.js +6 -0
  155. package/lib/chunks/layout.DbBSbLgm.js +1 -0
  156. package/lib/chunks/layout.sgE9JoNq.js +1 -0
  157. package/lib/chunks/publish.3TrK3fZf.js +1 -0
  158. package/lib/chunks/request.D8T4MgGX.js +1 -0
  159. package/lib/chunks/usePreview.2PZJSy5w.js +1 -0
  160. package/lib/chunks/usePreview.BojIDW7Z.js +1 -0
  161. package/lib/index.js +2 -4
  162. package/package.json +3 -3
  163. package/es/ExampleComponent.mjs +0 -35
  164. package/es/assets/BackBar.css +0 -1
  165. package/es/assets/ExampleComponent.css +0 -1
  166. package/es/chunks/BackBar.Bc2NIuzk.js +0 -645
  167. package/es/chunks/config.8htFF04x.js +0 -325
  168. package/es/chunks/config.CFWGjEdA.js +0 -49
  169. package/es/chunks/config.CfWAdyUH.js +0 -325
  170. package/es/chunks/i18n.Vhq-tZPw.js +0 -94
  171. package/es/chunks/i18n.ro9yz7rE.js +0 -94
  172. package/es/chunks/index.ml5i7aB5.js +0 -257
  173. package/es/chunks/index.s-YxIOfq.js +0 -301
  174. package/es/chunks/publish.D6friivo.js +0 -50
  175. package/es/chunks/publish.Dqzn7qEl.js +0 -50
  176. package/es/i18n.mjs +0 -17
  177. package/lib/ExampleComponent.js +0 -1
  178. package/lib/assets/BackBar.css +0 -1
  179. package/lib/assets/ExampleComponent.css +0 -1
  180. package/lib/chunks/BackBar.CZsNxoX1.js +0 -1
  181. package/lib/chunks/BackBar.s5_vN6jt.js +0 -1
  182. package/lib/chunks/config.Bs7sh3aP.js +0 -1
  183. package/lib/chunks/config.C1w4hgfw.js +0 -1
  184. package/lib/chunks/config.ClERt2RF.js +0 -1
  185. package/lib/chunks/enums.Dmq4PdUc.js +0 -1
  186. package/lib/chunks/i18n.CL5L6nx6.js +0 -1
  187. package/lib/chunks/i18n.aAXi5igh.js +0 -1
  188. package/lib/chunks/index.BNqTEn3K.js +0 -1
  189. package/lib/chunks/publish.Bw1acrSu.js +0 -1
  190. package/lib/chunks/publish.CA1uSVnm.js +0 -1
  191. package/lib/i18n.js +0 -1
@@ -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.DmqkiK-h.js";
6
- import { g as Y } from "./chunks/publish.D6friivo.js";
5
+ import { u as W } from "./chunks/i18n.k9Q_HVMs.js";
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.CfSBDD6u.js";
9
- import { R as M } from "./chunks/config.8htFF04x.js";
10
- import { P as R } from "./chunks/config.BU21Gda2.js";
11
- import { DIRECTION as te } from "./PageContainer.mjs";
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
@@ -0,0 +1,119 @@
1
+ import { w as C } from "./chunks/index.bCzIhWFw.js";
2
+ import { computed as m, createElementBlock as r, openBlock as a, normalizeClass as f, createCommentVNode as d, createVNode as u, createTextVNode as p, createBlock as v, toDisplayString as y, unref as l, withCtx as i, Fragment as S, renderList as k, renderSlot as z } from "vue";
3
+ import { ElTooltip as V, ElIcon as N, ElRadioGroup as T, ElRadio as q } from "element-plus";
4
+ import { IconTip as B } from "color-message-aibox-vue";
5
+ import { _ as E } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
6
+ import './assets/RadioGroup.css';const G = {
7
+ key: 0,
8
+ class: "field-label"
9
+ }, R = {
10
+ key: 0,
11
+ class: "required"
12
+ }, I = {
13
+ __name: "RadioGroup",
14
+ props: {
15
+ modelValue: {
16
+ type: [String, Number, null],
17
+ required: !1,
18
+ default: null
19
+ },
20
+ options: {
21
+ type: Array,
22
+ required: !0,
23
+ default: () => []
24
+ },
25
+ label: {
26
+ type: String,
27
+ default: ""
28
+ },
29
+ required: {
30
+ type: Boolean,
31
+ default: !1
32
+ },
33
+ className: {
34
+ type: String,
35
+ default: ""
36
+ },
37
+ direction: {
38
+ type: String,
39
+ default: "horizontal",
40
+ // horizontal | vertical
41
+ validator: (e) => ["horizontal", "vertical"].includes(e)
42
+ },
43
+ layout: {
44
+ type: String,
45
+ default: "horizontal",
46
+ // horizontal | vertical (controls label and radio group layout)
47
+ validator: (e) => ["horizontal", "vertical"].includes(e)
48
+ },
49
+ tipText: {
50
+ type: String,
51
+ default: ""
52
+ },
53
+ disabled: {
54
+ type: Boolean,
55
+ default: !1
56
+ }
57
+ },
58
+ emits: ["update:modelValue", "change"],
59
+ setup(e, { emit: g }) {
60
+ const n = e, s = g, h = m(() => n.layout === "vertical" ? "container-vertical" : ""), b = m(() => {
61
+ const t = n.className, c = n.direction === "vertical" ? "radio-group-vertical" : "radio-group-horizontal";
62
+ return `${t} ${c}`.trim();
63
+ }), x = (t) => {
64
+ s("update:modelValue", t), s("change", t);
65
+ };
66
+ return (t, c) => (a(), r("div", {
67
+ class: f(["radio-group-container", h.value])
68
+ }, [
69
+ e.label ? (a(), r("div", G, [
70
+ e.required ? (a(), r("span", R, "*")) : d("", !0),
71
+ p(" " + y(e.label) + " ", 1),
72
+ e.tipText ? (a(), v(l(V), {
73
+ key: 1,
74
+ content: e.tipText,
75
+ placement: "top"
76
+ }, {
77
+ default: i(() => [
78
+ u(l(N), {
79
+ style: { "margin-left": "4px" },
80
+ size: "14px",
81
+ color: "#999"
82
+ }, {
83
+ default: i(() => [
84
+ u(l(B))
85
+ ]),
86
+ _: 1
87
+ })
88
+ ]),
89
+ _: 1
90
+ }, 8, ["content"])) : d("", !0)
91
+ ])) : d("", !0),
92
+ u(l(T), {
93
+ "model-value": e.modelValue,
94
+ class: f(b.value),
95
+ disabled: e.disabled,
96
+ onChange: x
97
+ }, {
98
+ default: i(() => [
99
+ (a(!0), r(S, null, k(e.options, (o) => (a(), v(l(q), {
100
+ key: o.value,
101
+ class: "radio-item",
102
+ value: o.value
103
+ }, {
104
+ default: i(() => [
105
+ p(y(o.label) + " ", 1),
106
+ z(t.$slots, o.value, {}, void 0, !0)
107
+ ]),
108
+ _: 2
109
+ }, 1032, ["value"]))), 128))
110
+ ]),
111
+ _: 3
112
+ }, 8, ["model-value", "class", "disabled"])
113
+ ], 2));
114
+ }
115
+ }, w = /* @__PURE__ */ E(I, [["__scopeId", "data-v-f3d9d53f"]]), L = C(w);
116
+ export {
117
+ L as RadioGroup,
118
+ L as default
119
+ };