aibox-custom-component-packages 0.0.11 → 0.0.13
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 +2 -2
- package/es/ApplicationTypeTag.mjs +1 -1
- package/es/AuthSection.mjs +1 -1
- package/es/AvailableRangePreview.mjs +1 -1
- package/es/AvailableRangeSetting.mjs +3 -3
- package/es/CodeView.mjs +1 -1
- package/es/CommonTagsList.mjs +2 -2
- package/es/CreateMcpForm.mjs +5 -5
- package/es/CustomSidebar.mjs +1 -1
- package/es/DocSyncSelect.mjs +1 -1
- package/es/FileUploader.mjs +1 -1
- package/es/McpFormDialog.mjs +6 -6
- package/es/McpParamsSet.mjs +5 -5
- package/es/MdEditor.mjs +1 -1
- package/es/ParameterTable.mjs +3 -3
- package/es/PublishRecord.mjs +1 -1
- package/es/SourcePublish.mjs +5 -5
- package/es/Table.mjs +1 -1
- package/es/assets/CreateMcpForm.css +1 -1
- package/es/assets/CustomSidebar.css +1 -1
- package/es/assets/McpFormDialog.css +1 -1
- package/es/assets/MdEditor.css +1 -1
- package/es/assets/SourcePublish.css +1 -1
- package/es/chunks/AddOrEditSupplierDialog.BCiXcUBu.js +721 -0
- package/es/chunks/AiboxTable.B_Yli5E8.js +635 -0
- package/es/chunks/ApplicationTypeTag.BbJwXyVa.js +47 -0
- package/es/chunks/AuthSection.CLi8HcIx.js +201 -0
- package/es/chunks/AvailableRangePreview.BgeL_bMq.js +194 -0
- package/es/chunks/AvailableRangeSetting.CGJxgfPT.js +229 -0
- package/es/chunks/CodeView.CWbewuHs.js +148 -0
- package/es/chunks/CommonTagsList.CJdBie2N.js +156 -0
- package/es/chunks/CommonTagsList.NbXVfvLW.js +156 -0
- package/es/chunks/CreateMcpForm.C0HqvD-g.js +308 -0
- package/es/chunks/CreateMcpForm.DSE5jyiW.js +308 -0
- package/es/chunks/CustomSidebar.BF2dzN8s.js +585 -0
- package/es/chunks/DocSyncSelect.DlJXL1lq.js +2290 -0
- package/es/chunks/FileUploader.BSIhrd9M.js +216 -0
- package/es/chunks/McpFormDialog.CDH31D2Q.js +297 -0
- package/es/chunks/McpFormDialog.CgnC1I7i.js +297 -0
- package/es/chunks/McpParamsSet.Bx3aRL9j.js +501 -0
- package/es/chunks/MdEditor.B9-B9aiy.js +163 -0
- package/es/chunks/MdEditor.Bb9S_hso.js +163 -0
- package/es/chunks/ParameterTable.CoRz_932.js +2010 -0
- package/es/chunks/PublishRecord.C0841sJ-.js +133 -0
- package/es/chunks/PublishRecord.C8h1tu3w.js +133 -0
- package/es/chunks/SourcePublish.BhLjt18i.js +972 -0
- package/es/chunks/SourcePublish.FiswtYfr.js +972 -0
- package/es/chunks/SourcePublish.nfXmrVHm.js +972 -0
- package/es/chunks/config.CIQoQGOb.js +35 -0
- package/es/chunks/config.TaUlPTYL.js +270 -0
- package/es/chunks/config.lm2B-n0s.js +270 -0
- package/es/chunks/i18n.CIhVBbR3.js +418 -0
- package/es/index.mjs +21 -21
- package/lib/CommonTagsList.js +1 -1
- package/lib/CreateMcpForm.js +1 -1
- package/lib/CustomSidebar.js +1 -1
- package/lib/McpFormDialog.js +1 -1
- package/lib/MdEditor.js +1 -1
- package/lib/PublishRecord.js +1 -1
- package/lib/SourcePublish.js +1 -1
- package/lib/assets/CreateMcpForm.css +1 -1
- package/lib/assets/CustomSidebar.css +1 -1
- package/lib/assets/McpFormDialog.css +1 -1
- package/lib/assets/MdEditor.css +1 -1
- package/lib/assets/SourcePublish.css +1 -1
- package/lib/chunks/CommonTagsList.QEP4G-Em.js +1 -0
- package/lib/chunks/CreateMcpForm.B2o0Ghjg.js +1 -0
- package/lib/chunks/CustomSidebar.Bxnggo2-.js +1 -0
- package/lib/chunks/McpFormDialog.FwXnBBd2.js +6 -0
- package/lib/chunks/MdEditor.Cp24y4DJ.js +1 -0
- package/lib/chunks/PublishRecord.BVndvj7F.js +5 -0
- package/lib/chunks/SourcePublish.BBsNlnp4.js +1 -0
- package/lib/chunks/SourcePublish.CpeV-UOG.js +1 -0
- package/lib/chunks/config.B9Di8LtU.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +7 -6
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { t as e } from "./chunk.EU29TkMc.js";
|
|
2
|
+
import { t } from "./withinstall.dLh4K-0g.js";
|
|
3
|
+
import { c as n, p as r } from "./i18n.CIhVBbR3.js";
|
|
4
|
+
import { t as i } from "./_plugin-vue_export-helper.Ct3qlEzt.js";
|
|
5
|
+
import { t as a } from "./files.DvOT1nf3.js";
|
|
6
|
+
import { computed as o, createElementBlock as s, createVNode as c, normalizeStyle as l, openBlock as u, ref as d, unref as f, watch as p } from "vue";
|
|
7
|
+
import { ElMessage as m } from "element-plus";
|
|
8
|
+
import { emitsMap as h } from "color-star-custom-methods";
|
|
9
|
+
import { MdEditor as g } from "md-editor-v3";
|
|
10
|
+
(/* @__PURE__ */ e(((e, t) => {
|
|
11
|
+
t.exports = {};
|
|
12
|
+
})))();
|
|
13
|
+
import '../assets/MdEditor.css';//#endregion
|
|
14
|
+
//#region components/MdEditor/index.vue
|
|
15
|
+
var _ = { class: "md-editor-container" }, v = t(/* @__PURE__ */ i({
|
|
16
|
+
__name: "index",
|
|
17
|
+
props: {
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: ""
|
|
21
|
+
},
|
|
22
|
+
height: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "500px"
|
|
25
|
+
},
|
|
26
|
+
theme: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "light"
|
|
29
|
+
},
|
|
30
|
+
previewTheme: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "default"
|
|
33
|
+
},
|
|
34
|
+
codeTheme: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: "atom-one-dark"
|
|
37
|
+
},
|
|
38
|
+
language: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: "zh-CN"
|
|
41
|
+
},
|
|
42
|
+
showToolbars: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !0
|
|
45
|
+
},
|
|
46
|
+
businessType: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: "common"
|
|
49
|
+
},
|
|
50
|
+
toolbars: {
|
|
51
|
+
type: Array,
|
|
52
|
+
default: () => []
|
|
53
|
+
},
|
|
54
|
+
disabled: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: !1
|
|
57
|
+
},
|
|
58
|
+
placeholder: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: () => r("COMMON_DATA.PLACEHOLDER_CONTENT")
|
|
61
|
+
},
|
|
62
|
+
highlightTheme: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: "atom-one-dark"
|
|
65
|
+
},
|
|
66
|
+
autoFocus: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: !1
|
|
69
|
+
},
|
|
70
|
+
previewOnly: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: !0
|
|
73
|
+
},
|
|
74
|
+
preview: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: !0
|
|
77
|
+
},
|
|
78
|
+
footers: {
|
|
79
|
+
type: Array,
|
|
80
|
+
default: () => ["markdownTotal", "htmlTotal"]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
emits: [
|
|
84
|
+
h.updateModelValue,
|
|
85
|
+
h.change,
|
|
86
|
+
h.save,
|
|
87
|
+
h.blur,
|
|
88
|
+
h.focus
|
|
89
|
+
],
|
|
90
|
+
setup(e, { emit: t }) {
|
|
91
|
+
let { commonUpload: i } = a(), v = n(), y = e, b = d(y.modelValue);
|
|
92
|
+
p(() => y.modelValue, (e) => {
|
|
93
|
+
e !== b.value && (b.value = e);
|
|
94
|
+
});
|
|
95
|
+
let x = t, S = o(() => y.showToolbars ? y.toolbars.length ? y.toolbars : /* @__PURE__ */ "bold.underline.italic.strikeThrough.-.title.sub.sup.quote.unorderedList.orderedList.task.-.codeRow.code.link.image.table.mermaid.katex.-.revoke.next.save.-.pageFullscreen.fullscreen.preview.htmlPreview.catalog".split(".") : []), C = (e) => {
|
|
96
|
+
b.value = e, x(h.updateModelValue, e), x(h.change, e);
|
|
97
|
+
}, w = (e) => {
|
|
98
|
+
x(h.save, e);
|
|
99
|
+
}, T = (e) => {
|
|
100
|
+
x(h.blur, e);
|
|
101
|
+
}, E = (e) => {
|
|
102
|
+
x(h.focus, e);
|
|
103
|
+
}, D = async (e, t) => {
|
|
104
|
+
try {
|
|
105
|
+
let n = e.map(async (e) => {
|
|
106
|
+
let t = new FormData();
|
|
107
|
+
t.append("file", e);
|
|
108
|
+
let { code: n, data: a } = await i(t, y.businessType);
|
|
109
|
+
if (n === 0) return {
|
|
110
|
+
url: `${a.url}?id="${a.bnid}"`,
|
|
111
|
+
desc: e.name
|
|
112
|
+
};
|
|
113
|
+
throw Error(r("MESSAGE_REMIND.FILE_UPLOAD_FAIL"));
|
|
114
|
+
});
|
|
115
|
+
t(await Promise.all(n));
|
|
116
|
+
} catch {
|
|
117
|
+
m.error(r("MESSAGE_REMIND.FILE_UPLOAD_FAIL_TIP")), t([]);
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
return (t, n) => (u(), s("div", _, [c(f(g), {
|
|
121
|
+
modelValue: b.value,
|
|
122
|
+
"onUpdate:modelValue": n[0] ||= (e) => b.value = e,
|
|
123
|
+
theme: e.theme,
|
|
124
|
+
toolbars: S.value,
|
|
125
|
+
"preview-theme": e.previewTheme,
|
|
126
|
+
"code-theme": e.codeTheme,
|
|
127
|
+
preview: e.preview,
|
|
128
|
+
"preview-only": e.previewOnly,
|
|
129
|
+
style: l({ height: e.height }),
|
|
130
|
+
disabled: e.disabled,
|
|
131
|
+
placeholder: e.placeholder,
|
|
132
|
+
"highlight-theme": e.highlightTheme,
|
|
133
|
+
"show-code-row-number": !0,
|
|
134
|
+
"auto-focus": e.autoFocus,
|
|
135
|
+
"tab-width": 2,
|
|
136
|
+
footers: e.footers,
|
|
137
|
+
language: f(v),
|
|
138
|
+
onOnChange: C,
|
|
139
|
+
onOnSave: w,
|
|
140
|
+
onOnUploadImg: D,
|
|
141
|
+
onOnBlur: T,
|
|
142
|
+
onOnFocus: E,
|
|
143
|
+
class: "custom-md-editor"
|
|
144
|
+
}, null, 8, [
|
|
145
|
+
"modelValue",
|
|
146
|
+
"theme",
|
|
147
|
+
"toolbars",
|
|
148
|
+
"preview-theme",
|
|
149
|
+
"code-theme",
|
|
150
|
+
"preview",
|
|
151
|
+
"preview-only",
|
|
152
|
+
"style",
|
|
153
|
+
"disabled",
|
|
154
|
+
"placeholder",
|
|
155
|
+
"highlight-theme",
|
|
156
|
+
"auto-focus",
|
|
157
|
+
"footers",
|
|
158
|
+
"language"
|
|
159
|
+
])]));
|
|
160
|
+
}
|
|
161
|
+
}, [["__scopeId", "data-v-d0fca9d9"]]));
|
|
162
|
+
//#endregion
|
|
163
|
+
export { v as t };
|