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.
- package/es/AddOrEditSupplierDialog.mjs +309 -259
- package/es/ApplicationTypeTag.mjs +14 -14
- package/es/AuthSection.mjs +11 -11
- package/es/AutoShowTooltip.mjs +1 -1
- package/es/AvailableRangePreview.mjs +1 -1
- package/es/AvailableRangeSetting.mjs +9 -5
- package/es/CodeView.mjs +1 -1
- package/es/CommonTagsList.mjs +5 -5
- package/es/CreateMcpForm.mjs +13 -12
- package/es/CustomSidebar.mjs +159 -154
- package/es/CustomTitle.mjs +1 -1
- package/es/CustomToggle.mjs +131 -77
- package/es/DocSyncSelect.mjs +2661 -0
- package/es/FileDisplay.mjs +2 -4
- package/es/FilePreview.mjs +16 -16
- package/es/FileUploader.mjs +71 -74
- package/es/Logo.mjs +72 -0
- package/es/McpFormDialog.mjs +1 -1
- package/es/McpParamsSet.mjs +34 -34
- package/es/MdEditor.mjs +2 -2
- package/es/PageContainer.mjs +438 -216
- package/es/ParameterTable.mjs +23 -21
- package/es/PublishRecord.mjs +58 -57
- package/es/RadioGroup.mjs +1 -1
- package/es/SourcePublish.mjs +95 -93
- package/es/Table.mjs +2 -2
- package/es/assets/AddOrEditSupplierDialog.css +1 -1
- package/es/assets/AiboxTable.css +1 -1
- package/es/assets/ApplicationTypeTag.css +1 -1
- package/es/assets/AuthSection.css +1 -1
- package/es/assets/AutoShowTooltip.css +1 -1
- package/es/assets/CommonTagsList.css +1 -1
- package/es/assets/CreateMcpForm.css +1 -1
- package/es/assets/CustomSidebar.css +1 -1
- package/es/assets/CustomToggle.css +1 -1
- package/es/assets/DocSyncSelect.css +1 -0
- package/es/assets/FilePreview.css +1 -1
- package/es/assets/Logo.css +1 -0
- package/es/assets/McpParamsSet.css +1 -1
- package/es/assets/MdEditor.css +1 -1
- package/es/assets/PageContainer.css +1 -1
- package/es/assets/ParameterTable.css +1 -1
- package/es/assets/PublishRecord.css +1 -1
- package/es/assets/RadioGroup.css +1 -1
- package/es/assets/SourcePublish.css +1 -1
- package/es/assets/index.css +1 -1
- package/es/assets/index2.css +1 -1
- package/es/assets/index3.css +1 -1
- package/es/assets/index4.css +1 -1
- package/es/assets/layout.css +1 -1
- package/es/chunks/{BackBar.B5Er8ZdJ.js → AiboxTable.CF4T_OCu.js} +122 -122
- package/es/chunks/enums.WrpwbF4w.js +14 -0
- package/es/chunks/index.BDd6hHiU.js +172 -0
- package/es/chunks/{index.CLyfh6p1.js → index.CF_YHLP5.js} +16 -16
- package/es/chunks/index.DdD1VsH1.js +396 -0
- package/es/chunks/index.Dx-mCS4E.js +1298 -0
- package/es/chunks/layout.CygCXa6s.js +26 -0
- package/es/chunks/{usePreview.C36fNlVd.js → usePreview.BHvXwaNi.js} +82 -78
- package/es/index.mjs +409 -325
- package/index.css +1 -1
- package/lib/AddOrEditSupplierDialog.js +1 -1
- package/lib/ApplicationTypeTag.js +1 -1
- package/lib/AuthSection.js +1 -1
- package/lib/AutoShowTooltip.js +1 -1
- package/lib/AvailableRangePreview.js +1 -1
- package/lib/AvailableRangeSetting.js +1 -1
- package/lib/CodeView.js +1 -1
- package/lib/CommonTagsList.js +1 -1
- package/lib/CreateMcpForm.js +1 -1
- package/lib/CustomSidebar.js +1 -1
- package/lib/CustomTitle.js +1 -1
- package/lib/CustomToggle.js +1 -1
- package/lib/DocSyncSelect.js +2 -0
- package/lib/FileDisplay.js +1 -1
- package/lib/FilePreview.js +1 -1
- package/lib/FileUploader.js +1 -1
- package/lib/Logo.js +1 -0
- package/lib/McpFormDialog.js +1 -1
- package/lib/McpParamsSet.js +1 -1
- package/lib/MdEditor.js +1 -1
- package/lib/PageContainer.js +1 -1
- package/lib/ParameterTable.js +1 -1
- package/lib/PublishRecord.js +2 -2
- package/lib/RadioGroup.js +1 -1
- package/lib/SourcePublish.js +1 -1
- package/lib/Table.js +1 -1
- package/lib/assets/AddOrEditSupplierDialog.css +1 -1
- package/lib/assets/AiboxTable.css +1 -1
- package/lib/assets/ApplicationTypeTag.css +1 -1
- package/lib/assets/AuthSection.css +1 -1
- package/lib/assets/AutoShowTooltip.css +1 -1
- package/lib/assets/CommonTagsList.css +1 -1
- package/lib/assets/CreateMcpForm.css +1 -1
- package/lib/assets/CustomSidebar.css +1 -1
- package/lib/assets/CustomToggle.css +1 -1
- package/lib/assets/DocSyncSelect.css +1 -0
- package/lib/assets/FilePreview.css +1 -1
- package/lib/assets/Logo.css +1 -0
- package/lib/assets/McpParamsSet.css +1 -1
- package/lib/assets/MdEditor.css +1 -1
- package/lib/assets/PageContainer.css +1 -1
- package/lib/assets/ParameterTable.css +1 -1
- package/lib/assets/PublishRecord.css +1 -1
- package/lib/assets/RadioGroup.css +1 -1
- package/lib/assets/SourcePublish.css +1 -1
- package/lib/assets/index.css +1 -1
- package/lib/assets/index2.css +1 -1
- package/lib/assets/index3.css +1 -1
- package/lib/assets/index4.css +1 -1
- package/lib/assets/layout.css +1 -1
- package/lib/chunks/AiboxTable.CJOPGJtU.js +1 -0
- package/lib/chunks/enums.DpU2er5r.js +1 -0
- package/lib/chunks/index.BNivYbtq.js +1 -0
- package/lib/chunks/{index.DME62Yfo.js → index.B_keI1Aq.js} +1 -1
- package/lib/chunks/index.C7aZx6RG.js +6 -0
- package/lib/chunks/index.CJFk1R2u.js +59 -0
- package/lib/chunks/layout.DbBSbLgm.js +1 -0
- package/lib/chunks/usePreview.BojIDW7Z.js +1 -0
- package/lib/index.js +2 -1
- package/package.json +2 -2
- package/es/ExampleComponent.mjs +0 -35
- package/es/assets/BackBar.css +0 -1
- package/es/assets/ExampleComponent.css +0 -1
- package/es/chunks/BackBar.Bc2NIuzk.js +0 -645
- package/es/chunks/BackBar.Cv1wxUcM.js +0 -645
- package/es/chunks/BackBar.DJV4JaUM.js +0 -645
- package/es/chunks/config.8htFF04x.js +0 -325
- package/es/chunks/config.BPp4hMBq.js +0 -325
- package/es/chunks/config.BU21Gda2.js +0 -49
- package/es/chunks/config.BzCGum_W.js +0 -49
- package/es/chunks/config.CFWGjEdA.js +0 -49
- package/es/chunks/config.CfWAdyUH.js +0 -325
- package/es/chunks/config.DTMcCH58.js +0 -325
- package/es/chunks/config.DqhQdkz7.js +0 -325
- package/es/chunks/enums.CfSBDD6u.js +0 -83
- package/es/chunks/enums.DuBbLcd-.js +0 -83
- package/es/chunks/i18n.DmqkiK-h.js +0 -444
- package/es/chunks/i18n.Vhq-tZPw.js +0 -94
- package/es/chunks/i18n.ro9yz7rE.js +0 -94
- package/es/chunks/index.BSA3IKSF.js +0 -111
- package/es/chunks/index.CgbxJCEU.js +0 -265
- package/es/chunks/index.CuDwuRO7.js +0 -265
- package/es/chunks/index.DB0ayMv8.js +0 -257
- package/es/chunks/index.DWR4lc30.js +0 -203
- package/es/chunks/index.GuEzdh6b.js +0 -257
- package/es/chunks/index.aMb6IVQD.js +0 -257
- package/es/chunks/index.ml5i7aB5.js +0 -257
- package/es/chunks/index.s-YxIOfq.js +0 -301
- package/es/chunks/index.uOZzvHrF.js +0 -135
- package/es/chunks/publish.BCb7nCo9.js +0 -50
- package/es/chunks/publish.D6friivo.js +0 -50
- package/es/chunks/publish.Dqzn7qEl.js +0 -50
- package/es/i18n.mjs +0 -17
- package/lib/ExampleComponent.js +0 -1
- package/lib/assets/BackBar.css +0 -1
- package/lib/assets/ExampleComponent.css +0 -1
- package/lib/chunks/BackBar.C8Xrc6qW.js +0 -1
- package/lib/chunks/BackBar.CZsNxoX1.js +0 -1
- package/lib/chunks/BackBar.s5_vN6jt.js +0 -1
- package/lib/chunks/config.B0XKkp1w.js +0 -1
- package/lib/chunks/config.BCAuBVxV.js +0 -1
- package/lib/chunks/config.Bs7sh3aP.js +0 -1
- package/lib/chunks/config.C1w4hgfw.js +0 -1
- package/lib/chunks/config.ClERt2RF.js +0 -1
- package/lib/chunks/enums.Dmq4PdUc.js +0 -1
- package/lib/chunks/i18n.CL5L6nx6.js +0 -1
- package/lib/chunks/i18n.aAXi5igh.js +0 -1
- package/lib/chunks/index.BNqTEn3K.js +0 -1
- package/lib/chunks/index.BZcSlgOO.js +0 -1
- package/lib/chunks/index.Bk-RwmaH.js +0 -1
- package/lib/chunks/index.BsN4urmi.js +0 -1
- package/lib/chunks/index.D7wBInWr.js +0 -1
- package/lib/chunks/index.DWohILMv.js +0 -1
- package/lib/chunks/index.LK2ulXTE.js +0 -1
- package/lib/chunks/index.qDAoOzk9.js +0 -1
- package/lib/chunks/index.s8vGOJKG.js +0 -1
- package/lib/chunks/publish.Bw1acrSu.js +0 -1
- package/lib/chunks/publish.CA1uSVnm.js +0 -1
- package/lib/chunks/usePreview.E5SeS2uw.js +0 -1
- package/lib/i18n.js +0 -1
- /package/es/assets/{index6.css → legacy.css} +0 -0
- /package/lib/assets/{index6.css → legacy.css} +0 -0
package/es/McpFormDialog.mjs
CHANGED
package/es/McpParamsSet.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { w as re } from "./chunks/index.bCzIhWFw.js";
|
|
2
2
|
import { resolveComponent as Z, createElementBlock as X, openBlock as U, createVNode as x, createElementVNode as I, unref as h, createBlock as V, createCommentVNode as ee, withCtx as k, toDisplayString as G, ref as M, computed as ie, watch as te, nextTick as ce, onUnmounted as ae, Fragment as oe, onMounted as ue, createTextVNode as de, normalizeStyle as pe, normalizeClass as fe, withModifiers as me } from "vue";
|
|
3
|
-
import { _ as ve } from "./chunks/AiboxTable.
|
|
3
|
+
import { _ as ve } from "./chunks/AiboxTable.CF4T_OCu.js";
|
|
4
4
|
import { ParameterTable as _e, ARRAYTYPES as he } from "./ParameterTable.mjs";
|
|
5
5
|
import { ElTooltip as K, ElIcon as ne, ElSkeleton as ge, ElButton as ye, ElMessage as F } from "element-plus";
|
|
6
|
-
import { u as se } from "./chunks/i18n.
|
|
6
|
+
import { u as se } from "./chunks/i18n.k9Q_HVMs.js";
|
|
7
7
|
import { ApplicationIcon as Ie, SOURCE_TYPE as Te } from "color-star-custom-components";
|
|
8
8
|
import { _ as J } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
9
|
-
import { u as
|
|
9
|
+
import { u as Oe, C as be } from "./chunks/index.BDd6hHiU.js";
|
|
10
10
|
import { g as Se } from "./chunks/request.24c3shPx.js";
|
|
11
11
|
import { useRoute as Ee } from "vue-router";
|
|
12
12
|
import './assets/McpParamsSet.css';const Me = { class: "header-nav" }, Ne = { class: "text-name" }, Re = { class: "text-name-nav" }, Ae = { class: "text-ellipsis" }, De = { class: "text-name-desc text-ellipsis" }, Ce = {
|
|
@@ -24,7 +24,7 @@ import './assets/McpParamsSet.css';const Me = { class: "header-nav" }, Ne = { cl
|
|
|
24
24
|
},
|
|
25
25
|
emits: ["editMcp"],
|
|
26
26
|
setup(s, { emit: t }) {
|
|
27
|
-
const o = t, { t: p } = se(),
|
|
27
|
+
const o = t, { t: p } = se(), O = (g) => g ? g.length > 50 ? g.slice(0, 50) + "..." : g : "", n = () => {
|
|
28
28
|
o("editMcp");
|
|
29
29
|
};
|
|
30
30
|
return (g, S) => {
|
|
@@ -45,7 +45,7 @@ import './assets/McpParamsSet.css';const Me = { class: "header-nav" }, Ne = { cl
|
|
|
45
45
|
"popper-style": { maxWidth: "500px" }
|
|
46
46
|
}, {
|
|
47
47
|
default: k(() => [
|
|
48
|
-
I("div", Ae, G(
|
|
48
|
+
I("div", Ae, G(O(
|
|
49
49
|
s.detailData.name || h(p)("CONFIGURATION_MCP_TOOL.LABEL_MCP_NAME")
|
|
50
50
|
)), 1)
|
|
51
51
|
]),
|
|
@@ -69,7 +69,7 @@ import './assets/McpParamsSet.css';const Me = { class: "header-nav" }, Ne = { cl
|
|
|
69
69
|
"popper-style": { maxWidth: "500px" }
|
|
70
70
|
}, {
|
|
71
71
|
default: k(() => [
|
|
72
|
-
I("div", De, G(
|
|
72
|
+
I("div", De, G(O(
|
|
73
73
|
s.detailData.description || h(p)("CONFIGURATION_MCP_TOOL.LABEL_DESCRIPTION")
|
|
74
74
|
)), 1)
|
|
75
75
|
]),
|
|
@@ -79,12 +79,12 @@ import './assets/McpParamsSet.css';const Me = { class: "header-nav" }, Ne = { cl
|
|
|
79
79
|
]);
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
}, Le = /* @__PURE__ */ J(Ce, [["__scopeId", "data-v-
|
|
82
|
+
}, Le = /* @__PURE__ */ J(Ce, [["__scopeId", "data-v-f291c753"]]), we = (s) => {
|
|
83
83
|
const {
|
|
84
84
|
heightRef: t,
|
|
85
85
|
defaultHeight: o,
|
|
86
86
|
minHeight: p,
|
|
87
|
-
maxHeight:
|
|
87
|
+
maxHeight: O,
|
|
88
88
|
widthRef: n,
|
|
89
89
|
defaultWidth: g,
|
|
90
90
|
minWidth: S,
|
|
@@ -105,7 +105,7 @@ import './assets/McpParamsSet.css';const Me = { class: "header-nav" }, Ne = { cl
|
|
|
105
105
|
let l, c, u, e;
|
|
106
106
|
if ((f === "vertical" || f === "both") && t && (c = D.clientY - m, l = Math.max(
|
|
107
107
|
p,
|
|
108
|
-
Math.min(
|
|
108
|
+
Math.min(O, C - c)
|
|
109
109
|
), t.value = l), (f === "horizontal" || f === "both") && n) {
|
|
110
110
|
e = D.clientX - A;
|
|
111
111
|
const a = y ? -e : e;
|
|
@@ -131,7 +131,7 @@ import './assets/McpParamsSet.css';const Me = { class: "header-nav" }, Ne = { cl
|
|
|
131
131
|
};
|
|
132
132
|
};
|
|
133
133
|
function xe(s) {
|
|
134
|
-
const t = M(130), o = 130, p = 350,
|
|
134
|
+
const t = M(130), o = 130, p = 350, O = M(130), n = we({
|
|
135
135
|
heightRef: t,
|
|
136
136
|
defaultHeight: 130,
|
|
137
137
|
minHeight: o,
|
|
@@ -139,13 +139,13 @@ function xe(s) {
|
|
|
139
139
|
// 拖动时几乎不限制最大高度,这里不用MAX_BOX_HEIGHT,是为了避免初始化表格高度太高
|
|
140
140
|
// 记录开始拖拽时的高度
|
|
141
141
|
onResizeStart: (_, { height: f }) => {
|
|
142
|
-
|
|
142
|
+
O.value = f;
|
|
143
143
|
},
|
|
144
144
|
// 自定义调整逻辑,反转方向
|
|
145
145
|
onResizing: (_, { deltaY: f }) => {
|
|
146
146
|
const y = Math.max(
|
|
147
147
|
o,
|
|
148
|
-
|
|
148
|
+
O.value + f
|
|
149
149
|
// 移除最大高度限制
|
|
150
150
|
);
|
|
151
151
|
t.value = y;
|
|
@@ -200,7 +200,7 @@ const Be = { class: "results-warp" }, Pe = { class: "results-warp__left_box" },
|
|
|
200
200
|
}
|
|
201
201
|
},
|
|
202
202
|
setup(s, { expose: t }) {
|
|
203
|
-
const { copyText: o } =
|
|
203
|
+
const { copyText: o } = Oe(), p = M("{}"), O = () => {
|
|
204
204
|
o(p.value);
|
|
205
205
|
};
|
|
206
206
|
return t({
|
|
@@ -213,7 +213,7 @@ const Be = { class: "results-warp" }, Pe = { class: "results-warp__left_box" },
|
|
|
213
213
|
g[0] || (g[0] = I("div", { class: "results-warp__left_box_title" }, "response", -1)),
|
|
214
214
|
x(h(ne), {
|
|
215
215
|
class: "results-warp__left_box_copy",
|
|
216
|
-
onClick:
|
|
216
|
+
onClick: O
|
|
217
217
|
}, {
|
|
218
218
|
default: k(() => [
|
|
219
219
|
x(S)
|
|
@@ -228,7 +228,7 @@ const Be = { class: "results-warp" }, Pe = { class: "results-warp__left_box" },
|
|
|
228
228
|
key: 0,
|
|
229
229
|
rows: 10,
|
|
230
230
|
animated: ""
|
|
231
|
-
})) : (U(), V(
|
|
231
|
+
})) : (U(), V(be, {
|
|
232
232
|
key: 1,
|
|
233
233
|
code: p.value,
|
|
234
234
|
language: "json"
|
|
@@ -238,9 +238,9 @@ const Be = { class: "results-warp" }, Pe = { class: "results-warp__left_box" },
|
|
|
238
238
|
], 64);
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
|
-
}, ze = /* @__PURE__ */ J(He, [["__scopeId", "data-v-
|
|
241
|
+
}, ze = /* @__PURE__ */ J(He, [["__scopeId", "data-v-85dcff2e"]]);
|
|
242
242
|
function ke() {
|
|
243
|
-
const s = M(!1), t = M(!1), o = M(null), p = M(/* @__PURE__ */ new Set()),
|
|
243
|
+
const s = M(!1), t = M(!1), o = M(null), p = M(/* @__PURE__ */ new Set()), O = 500, n = (R, T) => function(...m) {
|
|
244
244
|
o.value && clearTimeout(o.value), o.value = setTimeout(() => {
|
|
245
245
|
R.apply(this, m), o.value = null;
|
|
246
246
|
}, T);
|
|
@@ -269,7 +269,7 @@ function ke() {
|
|
|
269
269
|
p.value.delete(C), t.value = !1;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
},
|
|
272
|
+
}, O),
|
|
273
273
|
saveImmediately: async (R) => {
|
|
274
274
|
if (o.value && (clearTimeout(o.value), o.value = null), t.value) {
|
|
275
275
|
console.warn("正在保存中,请稍后再试");
|
|
@@ -311,8 +311,8 @@ function ke() {
|
|
|
311
311
|
const Ge = () => {
|
|
312
312
|
const { $request: s, $env: t } = Se();
|
|
313
313
|
return {
|
|
314
|
-
callMcpTool: (p,
|
|
315
|
-
url: `${t.VITE_APP_AIBOX_BASE_URL}/api/v1/mcp/customize/call-mcp-tool/${p}/${
|
|
314
|
+
callMcpTool: (p, O, n) => s({
|
|
315
|
+
url: `${t.VITE_APP_AIBOX_BASE_URL}/api/v1/mcp/customize/call-mcp-tool/${p}/${O}`,
|
|
316
316
|
method: "post",
|
|
317
317
|
data: n
|
|
318
318
|
})
|
|
@@ -346,7 +346,7 @@ const Ge = () => {
|
|
|
346
346
|
}
|
|
347
347
|
},
|
|
348
348
|
setup(s, { expose: t }) {
|
|
349
|
-
const o = s, p = ke(), { markDataModified:
|
|
349
|
+
const o = s, p = ke(), { markDataModified: O } = p, { t: n } = se(), g = Ee(), S = M({}), _ = M({}), f = M(null), y = M(null), { callMcpTool: w } = Ge(), B = () => {
|
|
350
350
|
}, R = async () => {
|
|
351
351
|
try {
|
|
352
352
|
const l = sessionStorage.getItem("mcp_debug_mcpData");
|
|
@@ -355,8 +355,8 @@ const Ge = () => {
|
|
|
355
355
|
if ((c || o.propToolData) && (_.value = o.propToolData || JSON.parse(c), _.value.inputSchema && _.value.inputSchema.properties)) {
|
|
356
356
|
const u = _.value.inputSchema.properties, e = _.value.inputSchema.required || [];
|
|
357
357
|
let a = 0;
|
|
358
|
-
const E = () => `param_${a++}`, d = (
|
|
359
|
-
const v =
|
|
358
|
+
const E = () => `param_${a++}`, d = (b, i = [], r = 1) => Object.keys(b).map((N) => {
|
|
359
|
+
const v = b[N];
|
|
360
360
|
let L = v.type || "string";
|
|
361
361
|
const $ = {
|
|
362
362
|
name: N,
|
|
@@ -426,7 +426,7 @@ const Ge = () => {
|
|
|
426
426
|
const l = document.querySelector(".parameter-input-box");
|
|
427
427
|
l && (l.scrollTop = l.scrollHeight);
|
|
428
428
|
}, H = () => {
|
|
429
|
-
|
|
429
|
+
O();
|
|
430
430
|
}, z = (l) => {
|
|
431
431
|
console.log("校验结果:", l);
|
|
432
432
|
}, W = () => f.value?.validateAllRows(), Y = () => {
|
|
@@ -438,11 +438,11 @@ const Ge = () => {
|
|
|
438
438
|
const E = [];
|
|
439
439
|
return e.children.forEach((d) => {
|
|
440
440
|
if (d.children && d.children.length > 0) {
|
|
441
|
-
const
|
|
442
|
-
|
|
441
|
+
const b = u(d);
|
|
442
|
+
b !== void 0 && E.push(b);
|
|
443
443
|
} else {
|
|
444
|
-
const
|
|
445
|
-
let i =
|
|
444
|
+
const b = d.value;
|
|
445
|
+
let i = b !== void 0 && b !== "" ? b : "";
|
|
446
446
|
const r = d.type;
|
|
447
447
|
r === "number" || r === "integer" ? i = i === "" ? 0 : Number(i) : r === "boolean" ? i = i === "" ? !1 : !!i : r === "object" ? i = u(d) || {} : c(r) && (i = u(d) || []), E.push(i);
|
|
448
448
|
}
|
|
@@ -451,9 +451,9 @@ const Ge = () => {
|
|
|
451
451
|
if (a === "object") {
|
|
452
452
|
const E = {};
|
|
453
453
|
return e.children.forEach((d) => {
|
|
454
|
-
const
|
|
455
|
-
if (!
|
|
456
|
-
|
|
454
|
+
const b = d.name;
|
|
455
|
+
if (!b || b === "[Array Item]") {
|
|
456
|
+
b === "[Array Item]" && d.children && d.children.length > 0 && d.children.forEach((i) => {
|
|
457
457
|
const r = i.name;
|
|
458
458
|
if (r && r !== "[Array Item]")
|
|
459
459
|
if (i.children && i.children.length > 0)
|
|
@@ -468,12 +468,12 @@ const Ge = () => {
|
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
470
|
if (d.children && d.children.length > 0)
|
|
471
|
-
E[
|
|
471
|
+
E[b] = u(d);
|
|
472
472
|
else {
|
|
473
473
|
const i = d.value;
|
|
474
474
|
let r = i !== void 0 && i !== "" ? i : "";
|
|
475
475
|
const N = d.type;
|
|
476
|
-
N === "number" || N === "integer" ? r = r === "" ? 0 : Number(r) : N === "boolean" ? r = r === "" ? !1 : !!r : N === "object" ? r = u(d) || {} : c(N) && (r = u(d) || []), E[
|
|
476
|
+
N === "number" || N === "integer" ? r = r === "" ? 0 : Number(r) : N === "boolean" ? r = r === "" ? !1 : !!r : N === "object" ? r = u(d) || {} : c(N) && (r = u(d) || []), E[b] = r;
|
|
477
477
|
}
|
|
478
478
|
}), E;
|
|
479
479
|
}
|
|
@@ -622,7 +622,7 @@ const Ge = () => {
|
|
|
622
622
|
])
|
|
623
623
|
], 64));
|
|
624
624
|
}
|
|
625
|
-
}, Ye = /* @__PURE__ */ J(Je, [["__scopeId", "data-v-
|
|
625
|
+
}, Ye = /* @__PURE__ */ J(Je, [["__scopeId", "data-v-385912ff"]]), ct = re(Ye);
|
|
626
626
|
export {
|
|
627
627
|
ct as McpParamsSet,
|
|
628
628
|
Le as TextLeft,
|
package/es/MdEditor.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { ref as O, watch as A, computed as I, createElementBlock as F, openBlock
|
|
|
3
3
|
import { MdEditor as B } from "md-editor-v3";
|
|
4
4
|
import { f as D } from "./chunks/files.cduUqjHX.js";
|
|
5
5
|
import { ElMessage as x } from "element-plus";
|
|
6
|
-
import { t as i,
|
|
6
|
+
import { t as i, f as C } from "./chunks/i18n.k9Q_HVMs.js";
|
|
7
7
|
import { emitsMap as o } from "color-star-custom-methods";
|
|
8
8
|
import { _ as N } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
9
9
|
import './assets/MdEditor.css';const P = { class: "md-editor-container" }, U = {
|
|
@@ -194,7 +194,7 @@ import './assets/MdEditor.css';const P = { class: "md-editor-container" }, U = {
|
|
|
194
194
|
}, null, 8, ["modelValue", "theme", "toolbars", "preview-theme", "code-theme", "preview", "preview-only", "style", "disabled", "placeholder", "highlight-theme", "auto-focus", "footers", "language"])
|
|
195
195
|
]));
|
|
196
196
|
}
|
|
197
|
-
}, R = /* @__PURE__ */ N(U, [["__scopeId", "data-v-
|
|
197
|
+
}, R = /* @__PURE__ */ N(U, [["__scopeId", "data-v-e78b00e9"]]), Q = M(R);
|
|
198
198
|
export {
|
|
199
199
|
Q as MdEditor,
|
|
200
200
|
Q as default
|