aibox-custom-component-packages 0.0.8 → 0.0.9

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 (267) hide show
  1. package/es/AddOrEditSupplierDialog.mjs +6 -836
  2. package/es/ApplicationTypeTag.mjs +2 -58
  3. package/es/AuthSection.mjs +3 -199
  4. package/es/AutoShowTooltip.mjs +2 -90
  5. package/es/AvailableRangePreview.mjs +2 -7
  6. package/es/AvailableRangeSetting.mjs +5 -276
  7. package/es/CodeView.mjs +6 -7
  8. package/es/CommonTagsList.mjs +3 -209
  9. package/es/CreateMcpForm.mjs +10 -385
  10. package/es/CustomSidebar.mjs +2 -717
  11. package/es/CustomTitle.mjs +6 -7
  12. package/es/CustomToggle.mjs +2 -224
  13. package/es/DialogContainer.mjs +2 -136
  14. package/es/DocSyncSelect.mjs +2 -2661
  15. package/es/FileDisplay.mjs +4 -4
  16. package/es/FilePreview.mjs +3 -179
  17. package/es/FileUploader.mjs +2 -265
  18. package/es/Logo.mjs +2 -72
  19. package/es/McpFormDialog.mjs +11 -8
  20. package/es/McpParamsSet.mjs +8 -630
  21. package/es/MdEditor.mjs +2 -201
  22. package/es/PageContainer.mjs +4 -584
  23. package/es/ParameterTable.mjs +6 -2290
  24. package/es/PublishRecord.mjs +2 -180
  25. package/es/RadioGroup.mjs +2 -119
  26. package/es/SourcePublish.mjs +7 -1156
  27. package/es/Table.mjs +6 -10
  28. package/es/assets/AddOrEditSupplierDialog.css +1 -1
  29. package/es/assets/AiboxTable.css +1 -1
  30. package/es/assets/ApplicationTypeTag.css +1 -1
  31. package/es/assets/AuthSection.css +1 -1
  32. package/es/assets/AutoShowTooltip.css +1 -1
  33. package/es/assets/{index3.css → AvailableRangePreview.css} +1 -1
  34. package/es/assets/CodeView.css +1 -0
  35. package/es/assets/CreateMcpForm.css +1 -1
  36. package/es/assets/CustomSidebar.css +1 -1
  37. package/es/assets/CustomToggle.css +1 -1
  38. package/es/assets/DialogContainer.css +1 -1
  39. package/es/assets/DocSyncSelect.css +1 -1
  40. package/es/assets/FileDisplay.css +1 -0
  41. package/es/assets/FilePreview.css +1 -1
  42. package/es/assets/FileUploader.css +1 -1
  43. package/es/assets/Logo.css +1 -1
  44. package/es/assets/{index4.css → McpFormDialog.css} +1 -1
  45. package/es/assets/McpParamsSet.css +1 -1
  46. package/es/assets/MdEditor.css +1 -1
  47. package/es/assets/PageContainer.css +1 -1
  48. package/es/assets/ParameterTable.css +1 -1
  49. package/es/assets/PublishRecord.css +1 -1
  50. package/es/assets/RadioGroup.css +1 -1
  51. package/es/assets/SourcePublish.css +1 -1
  52. package/es/assets/legacy.css +1 -1
  53. package/es/assets/usePreview.css +10 -1
  54. package/es/chunks/AddOrEditSupplierDialog.BKR0RsiJ.js +721 -0
  55. package/es/chunks/AddOrEditSupplierDialog.CjNRipPe.js +721 -0
  56. package/es/chunks/AiboxTable.CrWMAX84.js +635 -0
  57. package/es/chunks/ApplicationTypeTag.Cbdi0D65.js +47 -0
  58. package/es/chunks/AuthSection.DWD_FxtJ.js +201 -0
  59. package/es/chunks/AutoShowTooltip.C_DI9t2Z.js +82 -0
  60. package/es/chunks/AvailableRangePreview.Bz9QkkAM.js +194 -0
  61. package/es/chunks/AvailableRangeSetting.Bq_K1zar.js +229 -0
  62. package/es/chunks/CodeView.CWuSIL_F.js +148 -0
  63. package/es/chunks/CommonTagsList.DSPdgjc3.js +156 -0
  64. package/es/chunks/CreateMcpForm.BBVVd2RN.js +308 -0
  65. package/es/chunks/CreateMcpForm.C8YfDSEM.js +308 -0
  66. package/es/chunks/CustomSidebar.BSGAhmVY.js +585 -0
  67. package/es/chunks/CustomToggle.BxxsaD-W.js +181 -0
  68. package/es/chunks/DialogContainer.DL7aTMDS.js +129 -0
  69. package/es/chunks/DocSyncSelect.Kk88o9gO.js +2290 -0
  70. package/es/chunks/FileDisplay.B5laA4uX.js +1649 -0
  71. package/es/chunks/FileDisplay.BCTNdpl9.js +1649 -0
  72. package/es/chunks/FileDisplay.CBNYrdsK.js +1560 -0
  73. package/es/chunks/FileDisplay.CJ7KCID6.js +1650 -0
  74. package/es/chunks/FilePreview.B9u8ODHp.js +123 -0
  75. package/es/chunks/FilePreview.De4zHsfc.js +123 -0
  76. package/es/chunks/FileUploader.DD-lopf-.js +216 -0
  77. package/es/chunks/Logo.0myMjGux.js +62 -0
  78. package/es/chunks/McpFormDialog.4HDExbTn.js +297 -0
  79. package/es/chunks/McpFormDialog.DNzqqhaX.js +297 -0
  80. package/es/chunks/McpParamsSet.Tlo_lPn-.js +501 -0
  81. package/es/chunks/MdEditor.DtL0Se7T.js +163 -0
  82. package/es/chunks/PageContainer.DXddaRs1.js +462 -0
  83. package/es/chunks/ParameterTable.BCdnj1gW.js +2010 -0
  84. package/es/chunks/PublishRecord.DEzC7hmP.js +133 -0
  85. package/es/chunks/RadioGroup.Czc1JtkN.js +107 -0
  86. package/es/chunks/SourcePublish.Dx-ltk9U.js +956 -0
  87. package/es/chunks/_plugin-vue_export-helper.Ct3qlEzt.js +8 -0
  88. package/es/chunks/chunk.EU29TkMc.js +20 -0
  89. package/es/chunks/config.MfNKPMiA.js +35 -0
  90. package/es/chunks/config.l1J_qxeB.js +270 -0
  91. package/es/chunks/enums.DDPWAqdV.js +13 -0
  92. package/es/chunks/field-types.zf28gvKR.js +7 -0
  93. package/es/chunks/files.DvOT1nf3.js +14 -0
  94. package/es/chunks/i18n.CxsxtRq_.js +418 -0
  95. package/es/chunks/layout.C9wKDpv-.js +19 -0
  96. package/es/chunks/publish.Z0XAASut.js +50 -0
  97. package/es/chunks/request.CfOHcfgX.js +5 -0
  98. package/es/chunks/usePreview.CMMjOD_o.js +148 -0
  99. package/es/chunks/usePreview.agdxmOk8.js +126 -0
  100. package/es/chunks/withinstall.dLh4K-0g.js +7 -0
  101. package/es/index.mjs +258 -412
  102. package/index.css +1 -1
  103. package/lib/AddOrEditSupplierDialog.js +1 -1
  104. package/lib/ApplicationTypeTag.js +1 -1
  105. package/lib/AuthSection.js +1 -1
  106. package/lib/AutoShowTooltip.js +1 -1
  107. package/lib/AvailableRangePreview.js +1 -1
  108. package/lib/AvailableRangeSetting.js +1 -1
  109. package/lib/CodeView.js +1 -1
  110. package/lib/CommonTagsList.js +1 -1
  111. package/lib/CreateMcpForm.js +1 -1
  112. package/lib/CustomSidebar.js +1 -1
  113. package/lib/CustomTitle.js +1 -1
  114. package/lib/CustomToggle.js +1 -1
  115. package/lib/DialogContainer.js +1 -1
  116. package/lib/DocSyncSelect.js +1 -2
  117. package/lib/FileDisplay.js +1 -1
  118. package/lib/FilePreview.js +1 -1
  119. package/lib/FileUploader.js +1 -1
  120. package/lib/Logo.js +1 -1
  121. package/lib/McpFormDialog.js +1 -1
  122. package/lib/McpParamsSet.js +1 -1
  123. package/lib/MdEditor.js +1 -1
  124. package/lib/PageContainer.js +1 -1
  125. package/lib/ParameterTable.js +1 -1
  126. package/lib/PublishRecord.js +1 -5
  127. package/lib/RadioGroup.js +1 -1
  128. package/lib/SourcePublish.js +1 -1
  129. package/lib/Table.js +1 -1
  130. package/lib/assets/AddOrEditSupplierDialog.css +1 -1
  131. package/lib/assets/AiboxTable.css +1 -1
  132. package/lib/assets/ApplicationTypeTag.css +1 -1
  133. package/lib/assets/AuthSection.css +1 -1
  134. package/lib/assets/AutoShowTooltip.css +1 -1
  135. package/lib/assets/{index3.css → AvailableRangePreview.css} +1 -1
  136. package/lib/assets/CodeView.css +1 -0
  137. package/lib/assets/CreateMcpForm.css +1 -1
  138. package/lib/assets/CustomSidebar.css +1 -1
  139. package/lib/assets/CustomToggle.css +1 -1
  140. package/lib/assets/DialogContainer.css +1 -1
  141. package/lib/assets/DocSyncSelect.css +1 -1
  142. package/lib/assets/FileDisplay.css +1 -0
  143. package/lib/assets/FilePreview.css +1 -1
  144. package/lib/assets/FileUploader.css +1 -1
  145. package/lib/assets/Logo.css +1 -1
  146. package/lib/assets/{index4.css → McpFormDialog.css} +1 -1
  147. package/lib/assets/McpParamsSet.css +1 -1
  148. package/lib/assets/MdEditor.css +1 -1
  149. package/lib/assets/PageContainer.css +1 -1
  150. package/lib/assets/ParameterTable.css +1 -1
  151. package/lib/assets/PublishRecord.css +1 -1
  152. package/lib/assets/RadioGroup.css +1 -1
  153. package/lib/assets/SourcePublish.css +1 -1
  154. package/lib/assets/legacy.css +1 -1
  155. package/lib/assets/usePreview.css +10 -1
  156. package/lib/chunks/AddOrEditSupplierDialog.D0DSQZiS.js +1 -0
  157. package/lib/chunks/AddOrEditSupplierDialog.XtPxc5yr.js +1 -0
  158. package/lib/chunks/AiboxTable.DFyqwoGc.js +1 -0
  159. package/lib/chunks/ApplicationTypeTag.CZReMt-9.js +1 -0
  160. package/lib/chunks/AuthSection.CP9c-YTW.js +1 -0
  161. package/lib/chunks/AutoShowTooltip.D3QQ36Bm.js +1 -0
  162. package/lib/chunks/AvailableRangePreview.DvREyHNH.js +1 -0
  163. package/lib/chunks/AvailableRangeSetting.DDHTOLJA.js +1 -0
  164. package/lib/chunks/CodeView.DeBxLqyC.js +1 -0
  165. package/lib/chunks/CommonTagsList.DbNcVId5.js +1 -0
  166. package/lib/chunks/CreateMcpForm.Cm9eHXWg.js +1 -0
  167. package/lib/chunks/CreateMcpForm.DNijYbgd.js +1 -0
  168. package/lib/chunks/CustomSidebar.Dojb1xoS.js +1 -0
  169. package/lib/chunks/CustomToggle.Dz7MRyOY.js +1 -0
  170. package/lib/chunks/DialogContainer.C0Hsohgn.js +1 -0
  171. package/lib/chunks/DocSyncSelect.1gaXRzps.js +2 -0
  172. package/lib/chunks/FileDisplay.B4gn0Jhp.js +59 -0
  173. package/lib/chunks/FileDisplay.B7JWIcFg.js +59 -0
  174. package/lib/chunks/FileDisplay.BSNmvK44.js +59 -0
  175. package/lib/chunks/FileDisplay.DjtHza32.js +59 -0
  176. package/lib/chunks/FilePreview.DX9e8_nx.js +1 -0
  177. package/lib/chunks/FilePreview.b1Gine59.js +1 -0
  178. package/lib/chunks/FileUploader.6IW_QL-h.js +1 -0
  179. package/lib/chunks/Logo.Jr7hhaH0.js +1 -0
  180. package/lib/chunks/McpFormDialog.CL2bInts.js +6 -0
  181. package/lib/chunks/McpFormDialog.DbhQIwYW.js +6 -0
  182. package/lib/chunks/McpParamsSet.BYrxVvDL.js +1 -0
  183. package/lib/chunks/MdEditor.rVQbuxCg.js +1 -0
  184. package/lib/chunks/PageContainer.elwvD8VL.js +1 -0
  185. package/lib/chunks/ParameterTable.CeufAEXh.js +1 -0
  186. package/lib/chunks/PublishRecord.B7xYlRKJ.js +5 -0
  187. package/lib/chunks/RadioGroup.cl57IvY3.js +1 -0
  188. package/lib/chunks/SourcePublish.K4tntn9l.js +1 -0
  189. package/lib/chunks/_plugin-vue_export-helper.Bgn9wawX.js +1 -0
  190. package/lib/chunks/chunk.BbA6Ugdl.js +1 -0
  191. package/lib/chunks/config.CDNV0bUm.js +1 -0
  192. package/lib/chunks/config.CZl1kYtI.js +1 -0
  193. package/lib/chunks/enums.DbdzzIzx.js +1 -0
  194. package/lib/chunks/field-types.C6f_z2S_.js +1 -0
  195. package/lib/chunks/files.BEXWmB32.js +1 -0
  196. package/lib/chunks/i18n.BGe5gOau.js +1 -0
  197. package/lib/chunks/layout.CK394aWE.js +1 -0
  198. package/lib/chunks/publish.DsepP8ll.js +1 -0
  199. package/lib/chunks/request.BuoFTs7h.js +1 -0
  200. package/lib/chunks/usePreview.7CCbmgQM.js +1 -0
  201. package/lib/chunks/usePreview.Dmhz8azZ.js +1 -0
  202. package/lib/chunks/withinstall.65aRnaVc.js +1 -0
  203. package/lib/index.js +2 -2
  204. package/package.json +5 -5
  205. package/es/AiboxTabs.mjs +0 -71
  206. package/es/assets/AiboxTabs.css +0 -1
  207. package/es/assets/index.css +0 -1
  208. package/es/assets/index2.css +0 -1
  209. package/es/assets/index5.css +0 -1
  210. package/es/chunks/AiboxTable.CF4T_OCu.js +0 -645
  211. package/es/chunks/AiboxTable.DUGBBVXh.js +0 -645
  212. package/es/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
  213. package/es/chunks/config.DPkdwjwD.js +0 -49
  214. package/es/chunks/config.Dklrsn-B.js +0 -49
  215. package/es/chunks/config.RrNwuFkQ.js +0 -325
  216. package/es/chunks/config.gNZ_rT87.js +0 -325
  217. package/es/chunks/enums.Dvec-maC.js +0 -62
  218. package/es/chunks/enums.WrpwbF4w.js +0 -14
  219. package/es/chunks/field-types.CPnMOjle.js +0 -13
  220. package/es/chunks/files.cduUqjHX.js +0 -16
  221. package/es/chunks/i18n.DDMVloiU.js +0 -443
  222. package/es/chunks/i18n.k9Q_HVMs.js +0 -443
  223. package/es/chunks/index.BDd6hHiU.js +0 -172
  224. package/es/chunks/index.BT1khSY9.js +0 -111
  225. package/es/chunks/index.CDvh263l.js +0 -257
  226. package/es/chunks/index.CF_YHLP5.js +0 -257
  227. package/es/chunks/index.CSjjAi3w.js +0 -396
  228. package/es/chunks/index.CdEBk4F_.js +0 -134
  229. package/es/chunks/index.DdD1VsH1.js +0 -396
  230. package/es/chunks/index.Dx-mCS4E.js +0 -1298
  231. package/es/chunks/index.bCzIhWFw.js +0 -7
  232. package/es/chunks/layout.BREUWPEJ.js +0 -26
  233. package/es/chunks/layout.CygCXa6s.js +0 -26
  234. package/es/chunks/publish.DlD0o09n.js +0 -50
  235. package/es/chunks/request.24c3shPx.js +0 -5
  236. package/es/chunks/usePreview.B5lboHeg.js +0 -153
  237. package/es/chunks/usePreview.BHvXwaNi.js +0 -157
  238. package/lib/AiboxTabs.js +0 -1
  239. package/lib/assets/AiboxTabs.css +0 -1
  240. package/lib/assets/index.css +0 -1
  241. package/lib/assets/index2.css +0 -1
  242. package/lib/assets/index5.css +0 -1
  243. package/lib/chunks/AiboxTable.BnoHJ7xL.js +0 -1
  244. package/lib/chunks/AiboxTable.CJOPGJtU.js +0 -1
  245. package/lib/chunks/_plugin-vue_export-helper.BHFhmbuH.js +0 -1
  246. package/lib/chunks/config.1oaIKLGn.js +0 -1
  247. package/lib/chunks/config.BF7MO0O5.js +0 -1
  248. package/lib/chunks/enums.DnuzPZCR.js +0 -1
  249. package/lib/chunks/enums.DpU2er5r.js +0 -1
  250. package/lib/chunks/field-types.Ch_2yDfg.js +0 -1
  251. package/lib/chunks/files.B3-8UC0v.js +0 -1
  252. package/lib/chunks/i18n.DgOp_D7R.js +0 -1
  253. package/lib/chunks/index.BNivYbtq.js +0 -1
  254. package/lib/chunks/index.B_keI1Aq.js +0 -1
  255. package/lib/chunks/index.Bc71XWQn.js +0 -1
  256. package/lib/chunks/index.C7aZx6RG.js +0 -6
  257. package/lib/chunks/index.CH7XdMru.js +0 -1
  258. package/lib/chunks/index.CJFk1R2u.js +0 -59
  259. package/lib/chunks/index.CaidDlAx.js +0 -1
  260. package/lib/chunks/index.CkihWzK6.js +0 -1
  261. package/lib/chunks/index.DGWHQFdx.js +0 -6
  262. package/lib/chunks/layout.DbBSbLgm.js +0 -1
  263. package/lib/chunks/layout.sgE9JoNq.js +0 -1
  264. package/lib/chunks/publish.3TrK3fZf.js +0 -1
  265. package/lib/chunks/request.D8T4MgGX.js +0 -1
  266. package/lib/chunks/usePreview.2PZJSy5w.js +0 -1
  267. package/lib/chunks/usePreview.BojIDW7Z.js +0 -1
@@ -1,58 +1,2 @@
1
- import { w as T } from "./chunks/index.bCzIhWFw.js";
2
- import { computed as r, createElementBlock as n, openBlock as I, normalizeClass as u, toDisplayString as _ } from "vue";
3
- import { APPLICATION_TYPE as e } from "color-star-custom-components";
4
- import { u as p } from "./chunks/i18n.k9Q_HVMs.js";
5
- import { _ as i } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
6
- import './assets/ApplicationTypeTag.css';const L = () => {
7
- const { t } = p();
8
- return {
9
- APPLICATION_TYPE_TAB_LIST: [
10
- {
11
- get label() {
12
- return t("APPLICATION_LIBRARY.TAB_LIST.ALL");
13
- },
14
- value: e.all
15
- },
16
- {
17
- get label() {
18
- return t("APPLICATION_LIBRARY.TAB_LIST.AGENT");
19
- },
20
- value: e.autonomous,
21
- get alias() {
22
- return t("APPLICATION_LIBRARY.TAB_LIST.PLANNED");
23
- }
24
- },
25
- {
26
- get label() {
27
- return t("APPLICATION_LIBRARY.TAB_LIST.AGENT_DIALOG");
28
- },
29
- value: e.dialogue,
30
- get alias() {
31
- return t("APPLICATION_LIBRARY.TAB_LIST.DIALOG");
32
- }
33
- }
34
- ]
35
- };
36
- }, c = /* @__PURE__ */ Object.assign({
37
- name: "ApplicationTypeTag"
38
- }, {
39
- __name: "layout",
40
- props: {
41
- // 应用类型值
42
- type: {
43
- type: [String, Number],
44
- required: !0
45
- }
46
- },
47
- setup(t) {
48
- const a = t, { APPLICATION_TYPE_TAB_LIST: A } = L(), l = r(() => A.find((o) => o.value === a.type)?.alias || ""), s = r(() => a.type === e.dialogue ? "dialogue" : "autonomously");
49
- return (o, m) => (I(), n("div", {
50
- class: u(s.value)
51
- }, _(l.value), 3));
52
- }
53
- }), P = /* @__PURE__ */ i(c, [["__scopeId", "data-v-d97d0a0a"]]), O = T(P);
54
- export {
55
- O as ApplicationTypeTag,
56
- O as default,
57
- L as useApplicationTypeTag
58
- };
1
+ import { n as e, t } from "./chunks/ApplicationTypeTag.Cbdi0D65.js";
2
+ export { t as ApplicationTypeTag, t as default, e as useApplicationTypeTag };
@@ -1,199 +1,3 @@
1
- import { w as Y } from "./chunks/index.bCzIhWFw.js";
2
- import { computed as x, ref as D, watch as w, createElementBlock as O, openBlock as i, createVNode as r, createBlock as c, createCommentVNode as d, unref as a, createElementVNode as E, createTextVNode as A, toDisplayString as N, withCtx as h, normalizeClass as y, withDirectives as L, vShow as C } from "vue";
3
- import { RadioGroup as _ } from "./RadioGroup.mjs";
4
- import { ElTooltip as M, ElIcon as f, ElInput as v } from "element-plus";
5
- import { u as P } from "./chunks/i18n.k9Q_HVMs.js";
6
- import { IconTip as I } from "color-message-aibox-vue";
7
- import { _ as R } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
8
- import './assets/AuthSection.css';const q = { class: "auth-section" }, z = {
9
- key: 2,
10
- class: "auth-input-field"
11
- }, j = { class: "field-label" }, F = {
12
- key: 3,
13
- class: "auth-input-field"
14
- }, G = { class: "field-label" }, Q = /* @__PURE__ */ Object.assign({
15
- name: "AuthSection"
16
- }, {
17
- __name: "AuthSection",
18
- props: {
19
- layout: {
20
- type: String,
21
- default: "horizontal"
22
- },
23
- featData: {
24
- type: Object,
25
- default: () => ({
26
- auth: {}
27
- })
28
- }
29
- },
30
- emits: [
31
- "update:featData",
32
- "auth-validation-errors",
33
- "resetDebugStatus"
34
- ],
35
- setup(p, { expose: V, emit: U }) {
36
- const { t } = P(), k = p, e = x({
37
- get: () => k.featData,
38
- set: (n) => T("update:featData", n)
39
- }), T = U, s = () => {
40
- T("resetDebugStatus");
41
- }, S = [
42
- { value: "none", label: t("COMMON_AUTHSECTION.LABEL_NO_AUTH") },
43
- { value: "apiKey", label: t("COMMON_AUTHSECTION.LABEL_API_KEY") }
44
- ], B = [
45
- { value: "bearer", label: t("COMMON_AUTHSECTION.LABEL_BEARER") },
46
- { value: "custom", label: t("COMMON_AUTHSECTION.LABEL_CUSTOM") }
47
- ], b = [
48
- { value: "header", label: t("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_HEADER") },
49
- { value: "query", label: t("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_QUERY") }
50
- ], H = (n) => {
51
- s(), u.value = {}, n === "apiKey" ? e.value.auth = {
52
- authType: "apiKey",
53
- keyType: "custom",
54
- paramLocation: "header",
55
- paramName: "",
56
- paramValue: "",
57
- token: ""
58
- } : e.value.auth = {
59
- authType: "none"
60
- };
61
- }, K = (n) => {
62
- s(), u.value = {}, n === "bearer" ? (e.value.auth.paramName = "", e.value.auth.paramValue = "") : n === "custom" && (e.value.auth.token = "");
63
- }, g = (n) => {
64
- console.log(n, "value"), s(), u.value = {}, n === "query" && (e.value.auth.token = "", e.value.auth.keyType = "custom");
65
- }, u = D({}), m = () => (s(), u.value = {}, e.value.auth.authType === "apiKey" && (e.value.auth.keyType === "custom" && (e.value.auth.paramName || (u.value.paramName = !0)), e.value.auth.keyType === "custom" && (e.value.auth.paramValue || (u.value.paramValue = !0)), e.value.auth.keyType === "bearer" && (e.value.auth.token || (u.value.token = !0))), u.value);
66
- return w(
67
- () => u.value,
68
- () => {
69
- T("auth-validation-errors", u.value);
70
- }
71
- ), V({
72
- validateField: m
73
- }), (n, l) => (i(), O("div", q, [
74
- r(a(_), {
75
- modelValue: e.value.auth.authType,
76
- "onUpdate:modelValue": l[0] || (l[0] = (o) => e.value.auth.authType = o),
77
- options: S,
78
- label: a(t)("COMMON_AUTHSECTION.LABEL_AUTH_TYPE"),
79
- required: !0,
80
- className: "auth-radio-group",
81
- layout: p.layout,
82
- onChange: H
83
- }, null, 8, ["modelValue", "label", "layout"]),
84
- e.value.auth.authType === "apiKey" ? (i(), c(a(_), {
85
- key: 0,
86
- modelValue: e.value.auth.paramLocation,
87
- "onUpdate:modelValue": l[1] || (l[1] = (o) => e.value.auth.paramLocation = o),
88
- options: b,
89
- label: a(t)("COMMON_AUTHSECTION.LABEL_KEY_LOCATION"),
90
- "tip-text": a(t)("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_TIP"),
91
- required: !0,
92
- className: "location-radio-group",
93
- layout: p.layout,
94
- onChange: g
95
- }, null, 8, ["modelValue", "label", "tip-text", "layout"])) : d("", !0),
96
- e.value.auth.authType === "apiKey" && e.value.auth.paramLocation === "header" ? (i(), c(a(_), {
97
- key: 1,
98
- modelValue: e.value.auth.keyType,
99
- "onUpdate:modelValue": l[2] || (l[2] = (o) => e.value.auth.keyType = o),
100
- options: B,
101
- label: a(t)("COMMON_AUTHSECTION.LABEL_KEY_TYPE"),
102
- "tip-text": a(t)("COMMON_AUTHSECTION.LABEL_KEY_TYPE_TIP"),
103
- required: !0,
104
- className: "key-radio-group",
105
- layout: p.layout,
106
- onChange: K
107
- }, null, 8, ["modelValue", "label", "tip-text", "layout"])) : d("", !0),
108
- e.value.auth.authType === "apiKey" && e.value.auth.keyType === "custom" ? (i(), O("div", z, [
109
- E("div", j, [
110
- l[6] || (l[6] = E("span", { class: "required" }, "*", -1)),
111
- A(" " + N(a(t)("COMMON_AUTHSECTION.LABEL_KEY_NAME")) + " ", 1),
112
- r(a(M), {
113
- content: a(t)("COMMON_AUTHSECTION.LABEL_KEY_NAME_TIP"),
114
- placement: "top"
115
- }, {
116
- default: h(() => [
117
- r(a(f), {
118
- style: { "margin-left": "4px" },
119
- size: "14px",
120
- color: "#999"
121
- }, {
122
- default: h(() => [
123
- r(a(I))
124
- ]),
125
- _: 1
126
- })
127
- ]),
128
- _: 1
129
- }, 8, ["content"])
130
- ]),
131
- r(a(v), {
132
- modelValue: e.value.auth.paramName,
133
- "onUpdate:modelValue": l[3] || (l[3] = (o) => e.value.auth.paramName = o),
134
- placeholder: a(t)("COMMON_AUTHSECTION.LABEL_KEY_NAME_PLACEHOLDER"),
135
- maxlength: "64",
136
- "show-word-limit": "",
137
- class: y(["key-input", {
138
- "error-input": u.value.paramName
139
- }]),
140
- onBlur: m
141
- }, null, 8, ["modelValue", "placeholder", "class"])
142
- ])) : d("", !0),
143
- e.value.auth.authType === "apiKey" ? (i(), O("div", F, [
144
- E("div", G, [
145
- l[7] || (l[7] = E("span", { class: "required" }, "*", -1)),
146
- A(" " + N(a(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE")) + " ", 1),
147
- r(a(M), {
148
- content: a(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_TIP"),
149
- placement: "top"
150
- }, {
151
- default: h(() => [
152
- r(a(f), {
153
- style: { "margin-left": "4px" },
154
- size: "14px",
155
- color: "#999"
156
- }, {
157
- default: h(() => [
158
- r(a(I))
159
- ]),
160
- _: 1
161
- })
162
- ]),
163
- _: 1
164
- }, 8, ["content"])
165
- ]),
166
- L(r(a(v), {
167
- modelValue: e.value.auth.paramValue,
168
- "onUpdate:modelValue": l[4] || (l[4] = (o) => e.value.auth.paramValue = o),
169
- placeholder: a(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_PLACEHOLDER"),
170
- maxlength: "20000",
171
- "show-word-limit": "",
172
- class: y(["key-input", {
173
- "error-input": u.value.paramValue
174
- }]),
175
- onBlur: m
176
- }, null, 8, ["modelValue", "placeholder", "class"]), [
177
- [C, e.value.auth.keyType === "custom"]
178
- ]),
179
- L(r(a(v), {
180
- modelValue: e.value.auth.token,
181
- "onUpdate:modelValue": l[5] || (l[5] = (o) => e.value.auth.token = o),
182
- placeholder: a(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_PLACEHOLDER"),
183
- maxlength: "20000",
184
- "show-word-limit": "",
185
- class: y(["key-input", {
186
- "error-input": u.value.token
187
- }]),
188
- onBlur: m
189
- }, null, 8, ["modelValue", "placeholder", "class"]), [
190
- [C, e.value.auth.keyType === "bearer"]
191
- ])
192
- ])) : d("", !0)
193
- ]));
194
- }
195
- }), J = /* @__PURE__ */ R(Q, [["__scopeId", "data-v-6b26c051"]]), le = Y(J);
196
- export {
197
- le as AuthSection,
198
- le as default
199
- };
1
+ import "./chunks/RadioGroup.Czc1JtkN.js";
2
+ import { t as e } from "./chunks/AuthSection.DWD_FxtJ.js";
3
+ export { e as AuthSection, e as default };
@@ -1,90 +1,2 @@
1
- import { w as f } from "./chunks/index.bCzIhWFw.js";
2
- import { ref as s, watch as m, nextTick as d, onMounted as p, onBeforeUnmount as v, createBlock as h, openBlock as u, unref as y, withCtx as w, createElementVNode as b, normalizeStyle as S, renderSlot as g, createElementBlock as k, toDisplayString as x } from "vue";
3
- import { ElTooltip as T } from "element-plus";
4
- import { _ as I } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
5
- import './assets/AutoShowTooltip.css';const H = { key: 1 }, O = {
6
- __name: "AutoShowTooltip",
7
- props: {
8
- content: {
9
- type: [String, null],
10
- default: ""
11
- },
12
- placement: {
13
- type: String,
14
- default: "top"
15
- },
16
- textClass: {
17
- type: String,
18
- default: ""
19
- },
20
- row: {
21
- type: Number,
22
- default: 1
23
- },
24
- popperStyle: {
25
- type: Object,
26
- default: () => ({
27
- maxWidth: "300px"
28
- })
29
- }
30
- },
31
- setup(o) {
32
- const a = o, l = s(null), n = s(!1);
33
- let e = null;
34
- function i() {
35
- const t = l.value;
36
- if (!t) {
37
- n.value = !1;
38
- return;
39
- }
40
- if (t.offsetParent === null || t.offsetWidth === 0 || t.offsetHeight === 0) {
41
- n.value = !1;
42
- return;
43
- }
44
- const r = t.scrollHeight, c = t.clientHeight;
45
- n.value = r > c + 1;
46
- }
47
- return m(
48
- [() => a.content, () => a.row],
49
- () => {
50
- d(() => {
51
- setTimeout(() => {
52
- i();
53
- }, 50);
54
- });
55
- },
56
- { immediate: !1 }
57
- ), p(() => {
58
- setTimeout(() => {
59
- i();
60
- }, 100), e = new ResizeObserver(() => {
61
- clearTimeout(e.timeoutId), e.timeoutId = setTimeout(() => {
62
- i();
63
- }, 100);
64
- }), l.value && e.observe(l.value);
65
- }), v(() => {
66
- e && (e.timeoutId && clearTimeout(e.timeoutId), l.value && e.unobserve(l.value), e.disconnect());
67
- }), (t, r) => (u(), h(y(T), {
68
- content: o.content || "",
69
- disabled: !n.value || !o.content,
70
- placement: o.placement,
71
- "popper-style": o.popperStyle
72
- }, {
73
- default: w(() => [
74
- b("div", {
75
- ref_key: "textRef",
76
- ref: l,
77
- class: "auto-show-tooltip",
78
- style: S({ WebkitLineClamp: o.row })
79
- }, [
80
- t.$slots.default ? g(t.$slots, "default", { key: 0 }, void 0, !0) : (u(), k("div", H, x(o.content || ""), 1))
81
- ], 4)
82
- ]),
83
- _: 3
84
- }, 8, ["content", "disabled", "placement", "popper-style"]));
85
- }
86
- }, B = /* @__PURE__ */ I(O, [["__scopeId", "data-v-1eb5133e"]]), W = f(B);
87
- export {
88
- W as AutoShowTooltip,
89
- W as default
90
- };
1
+ import { t as e } from "./chunks/AutoShowTooltip.C_DI9t2Z.js";
2
+ export { e as AutoShowTooltip, e as default };
@@ -1,7 +1,2 @@
1
- import "./chunks/index.bCzIhWFw.js";
2
- import { A as r, T as s, A as t } from "./chunks/index.CF_YHLP5.js";
3
- export {
4
- r as AvailableRangePreview,
5
- s as TagList,
6
- t as default
7
- };
1
+ import { n as e, t } from "./chunks/AvailableRangePreview.Bz9QkkAM.js";
2
+ export { t as AvailableRangePreview, t as default, e as TagList };
@@ -1,276 +1,5 @@
1
- import { w as B } from "./chunks/index.bCzIhWFw.js";
2
- import { ref as m, computed as D, watch as C, nextTick as x, createBlock as U, openBlock as T, unref as a, withCtx as V, createElementVNode as P, createVNode as E, createElementBlock as O, createCommentVNode as w, Fragment as G, renderList as $, createTextVNode as y, toDisplayString as M, onMounted as F } from "vue";
3
- import { emitsMap as t } from "color-star-custom-methods";
4
- import { R as h, r as H, a as Y } from "./chunks/config.DPkdwjwD.js";
5
- import { D as _e, M as Ee, P as he } from "./chunks/config.DPkdwjwD.js";
6
- import { u as X, A as j } from "./chunks/index.CF_YHLP5.js";
7
- import { ElRadioGroup as q, ElRadio as W, ElButton as k, ElMessage as z } from "element-plus";
8
- import { useDialog as J, DialogContainer as K } from "./DialogContainer.mjs";
9
- import { TreeShowSelect as Q } from "color-star-custom-components";
10
- import { u as Z } from "./chunks/i18n.k9Q_HVMs.js";
11
- import { g as ee } from "./chunks/request.24c3shPx.js";
12
- const le = { class: "dialog-content" }, ae = {
13
- key: 0,
14
- class: "selection-area overflow-hidden"
15
- }, te = { class: "dialog-footer" }, se = {
16
- __name: "Dialog",
17
- props: {
18
- // 弹窗显示控制
19
- visible: {
20
- type: Boolean,
21
- default: !1
22
- },
23
- // 当前选择的范围类型(是否全部可见)
24
- allVisible: {
25
- type: Boolean,
26
- default: h.ALL
27
- },
28
- // 选中的项目列表
29
- modelValue: {
30
- type: Array,
31
- default: () => []
32
- },
33
- // 树形数据
34
- treeList: {
35
- type: Array,
36
- default: () => []
37
- }
38
- },
39
- emits: [
40
- t.updateVisible,
41
- t.save,
42
- t.cancel
43
- ],
44
- setup(f, { emit: A }) {
45
- const { t: v } = Z(), c = f, b = A, { showDialog: _, dialogRef: p } = J(), r = m(c.allVisible), o = m([...c.modelValue]), u = m(), { selectedMembers: s, selectedDepartments: g } = X(
46
- o,
47
- D(() => c.treeList),
48
- !1
49
- // 编辑模式
50
- );
51
- C(
52
- () => c.visible,
53
- (l) => {
54
- l && x(() => {
55
- _();
56
- });
57
- },
58
- { immediate: !0 }
59
- );
60
- const N = D(() => {
61
- const l = [];
62
- return g.value.forEach((i) => {
63
- l.push({
64
- ...i,
65
- // TreeSelect列表模式不需要children
66
- children: void 0
67
- });
68
- }), s.value.forEach((i) => {
69
- l.push({
70
- ...i,
71
- children: void 0
72
- });
73
- }), l;
74
- }), L = (l) => {
75
- r.value = l, l === h.ALL && (o.value = []);
76
- }, R = (l) => {
77
- const { selectedNode: i } = l;
78
- o.value = i || [];
79
- }, I = () => {
80
- b(t.cancel), b(t.updateVisible, !1);
81
- }, S = () => {
82
- if (r.value === h.PARTIAL && !o.value.length) {
83
- z.warning(v("COMMON_DICT.ENUMS.AVAILABLE_RANGE_EMPTY_TIP"));
84
- return;
85
- }
86
- b(t.save, {
87
- type: r.value,
88
- selectedItems: [...o.value]
89
- }), b(t.updateVisible, !1);
90
- };
91
- return (l, i) => (T(), U(a(K), {
92
- ref_key: "dialogRef",
93
- ref: p,
94
- title: a(v)("COMMON_DICT.ENUMS.AVAILABLE_RANGE_SETTING"),
95
- onClose: I
96
- }, {
97
- footer: V(() => [
98
- P("div", te, [
99
- E(a(k), {
100
- onClick: I,
101
- plain: ""
102
- }, {
103
- default: V(() => [
104
- y(M(a(v)("COMMON_BUTTON.CANCEL_TEXT")), 1)
105
- ]),
106
- _: 1
107
- }),
108
- E(a(k), {
109
- type: "primary",
110
- onClick: S
111
- }, {
112
- default: V(() => [
113
- y(M(a(v)("COMMON_BUTTON.SAVE_TEXT")), 1)
114
- ]),
115
- _: 1
116
- })
117
- ])
118
- ]),
119
- default: V(() => [
120
- P("div", le, [
121
- E(a(q), {
122
- class: "pd-b-16",
123
- modelValue: r.value,
124
- "onUpdate:modelValue": i[0] || (i[0] = (e) => r.value = e),
125
- onChange: L
126
- }, {
127
- default: V(() => [
128
- (T(!0), O(G, null, $(a(H), (e) => (T(), U(a(W), {
129
- key: e.value,
130
- value: e.value
131
- }, {
132
- default: V(() => [
133
- y(M(e.label), 1)
134
- ]),
135
- _: 2
136
- }, 1032, ["value"]))), 128))
137
- ]),
138
- _: 1
139
- }, 8, ["modelValue"]),
140
- r.value === a(h).PARTIAL ? (T(), O("div", ae, [
141
- E(a(Q), {
142
- modelValue: o.value,
143
- "onUpdate:modelValue": i[1] || (i[1] = (e) => o.value = e),
144
- ref_key: "treeRef",
145
- ref: u,
146
- treeProps: a(Y),
147
- treeList: f.treeList,
148
- hasFilter: !0,
149
- rightTreeList: N.value,
150
- itemUnitName: a(v)("COMMON_DICT.ENUMS.ITEM_UNIT_NAME"),
151
- style: { height: "500px" },
152
- onGetCheckedNode: R
153
- }, null, 8, ["modelValue", "treeProps", "treeList", "rightTreeList", "itemUnitName"])
154
- ])) : w("", !0)
155
- ])
156
- ]),
157
- _: 1
158
- }, 8, ["title"]));
159
- }
160
- }, ie = () => {
161
- const { $request: f, $env: A } = ee();
162
- return {
163
- availableRangeApi: () => f({
164
- url: `${A.VITE_APP_AUTH_BASE_URL}/api/v1/admin/member/search`,
165
- method: "get"
166
- })
167
- };
168
- }, oe = { class: "available-range-setting w-full" }, ne = /* @__PURE__ */ Object.assign({
169
- name: "AvailableRangeSetting"
170
- }, {
171
- __name: "layout",
172
- props: {
173
- // 当前选择的范围类型(是否全部可见)
174
- allVisible: {
175
- type: Boolean,
176
- default: h.ALL
177
- },
178
- // 选中的项目列表
179
- modelValue: {
180
- type: Array,
181
- default: () => []
182
- }
183
- },
184
- emits: [
185
- t.updateAllVisible,
186
- t.updateModelValue,
187
- t.change
188
- ],
189
- setup(f, { expose: A, emit: v }) {
190
- const c = f, { availableRangeApi: b } = ie(), _ = v, p = m(!1), r = m(!1), o = m([]), u = m(c.allVisible), s = m(c.modelValue), g = m(
191
- new Set(s.value?.map((e) => e.memberId))
192
- ), N = () => {
193
- r.value = !0, b().then((e) => {
194
- o.value = e?.data?.orgOptionSoList || [];
195
- }).finally(() => {
196
- r.value = !1;
197
- });
198
- }, L = () => {
199
- p.value = !0;
200
- }, R = (e) => {
201
- u.value = e.type, s.value = e.selectedItems, g.value.clear(), s.value.forEach((n) => {
202
- g.value.add(n.memberId);
203
- }), _(t.updateAllVisible, u.value), _(t.updateModelValue, s.value), S();
204
- }, I = () => {
205
- p.value = !1;
206
- }, S = () => {
207
- const e = {
208
- allVisible: u.value,
209
- selectedItems: s.value
210
- };
211
- _(t.change, e);
212
- }, l = m(null), i = () => {
213
- const e = l.value?.allSelectedItems || [];
214
- return {
215
- allVisible: u.value,
216
- visibleScope: e.map((d) => ({
217
- memberId: d.memberId,
218
- memberName: d.memberName,
219
- memberType: d.memberType,
220
- bnid: d.bnid
221
- }))
222
- };
223
- };
224
- return C(
225
- () => c.allVisible,
226
- (e) => {
227
- u.value = e;
228
- },
229
- { immediate: !0 }
230
- ), C(
231
- () => c.modelValue,
232
- (e) => {
233
- s.value = e || [], g.value.clear(), s.value.forEach((n) => {
234
- g.value.add(n.memberId);
235
- });
236
- },
237
- { immediate: !0 }
238
- ), F(() => {
239
- N();
240
- }), A({
241
- getSelectedItems: i
242
- }), (e, n) => (T(), O("div", oe, [
243
- E(a(j), {
244
- allVisible: u.value,
245
- "model-value": s.value,
246
- "tree-list": o.value,
247
- onEdit: L,
248
- ref_key: "previewRef",
249
- ref: l
250
- }, null, 8, ["allVisible", "model-value", "tree-list"]),
251
- p.value ? (T(), U(se, {
252
- key: 0,
253
- visible: p.value,
254
- "onUpdate:visible": n[0] || (n[0] = (d) => p.value = d),
255
- allVisible: u.value,
256
- "onUpdate:allVisible": n[1] || (n[1] = (d) => u.value = d),
257
- modelValue: s.value,
258
- "onUpdate:modelValue": n[2] || (n[2] = (d) => s.value = d),
259
- "tree-list": o.value,
260
- loading: r.value,
261
- onSave: R,
262
- onCancel: I
263
- }, null, 8, ["visible", "allVisible", "modelValue", "tree-list", "loading"])) : w("", !0)
264
- ]));
265
- }
266
- }), Ve = B(ne);
267
- export {
268
- Ve as AvailableRangeSetting,
269
- _e as DEFAULT_SHOW_COUNT,
270
- Ee as MEMBER_DEPARTMENT_TYPES,
271
- he as PUBLISH_STATUS,
272
- h as RANGE_TYPES,
273
- Y as availableRangeTreeProps,
274
- Ve as default,
275
- H as rangeOptions
276
- };
1
+ import "./chunks/DialogContainer.DL7aTMDS.js";
2
+ import { a as e, i as t, n, o as r, r as i, t as a } from "./chunks/config.MfNKPMiA.js";
3
+ import "./chunks/AvailableRangePreview.Bz9QkkAM.js";
4
+ import { t as o } from "./chunks/AvailableRangeSetting.Bq_K1zar.js";
5
+ export { o as AvailableRangeSetting, o as default, a as DEFAULT_SHOW_COUNT, n as MEMBER_DEPARTMENT_TYPES, i as PUBLISH_STATUS, t as RANGE_TYPES, e as availableRangeTreeProps, r as rangeOptions };
package/es/CodeView.mjs CHANGED
@@ -1,7 +1,6 @@
1
- import { w as o } from "./chunks/index.bCzIhWFw.js";
2
- import { C as t } from "./chunks/index.BDd6hHiU.js";
3
- const i = o(t);
4
- export {
5
- i as CodeView,
6
- i as default
7
- };
1
+ import { t as e } from "./chunks/withinstall.dLh4K-0g.js";
2
+ import { t } from "./chunks/CodeView.CWuSIL_F.js";
3
+ //#region components/CodeView/index.js
4
+ var n = e(t);
5
+ //#endregion
6
+ export { n as CodeView, n as default };