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.
Files changed (76) hide show
  1. package/es/AddOrEditSupplierDialog.mjs +2 -2
  2. package/es/ApplicationTypeTag.mjs +1 -1
  3. package/es/AuthSection.mjs +1 -1
  4. package/es/AvailableRangePreview.mjs +1 -1
  5. package/es/AvailableRangeSetting.mjs +3 -3
  6. package/es/CodeView.mjs +1 -1
  7. package/es/CommonTagsList.mjs +2 -2
  8. package/es/CreateMcpForm.mjs +5 -5
  9. package/es/CustomSidebar.mjs +1 -1
  10. package/es/DocSyncSelect.mjs +1 -1
  11. package/es/FileUploader.mjs +1 -1
  12. package/es/McpFormDialog.mjs +6 -6
  13. package/es/McpParamsSet.mjs +5 -5
  14. package/es/MdEditor.mjs +1 -1
  15. package/es/ParameterTable.mjs +3 -3
  16. package/es/PublishRecord.mjs +1 -1
  17. package/es/SourcePublish.mjs +5 -5
  18. package/es/Table.mjs +1 -1
  19. package/es/assets/CreateMcpForm.css +1 -1
  20. package/es/assets/CustomSidebar.css +1 -1
  21. package/es/assets/McpFormDialog.css +1 -1
  22. package/es/assets/MdEditor.css +1 -1
  23. package/es/assets/SourcePublish.css +1 -1
  24. package/es/chunks/AddOrEditSupplierDialog.BCiXcUBu.js +721 -0
  25. package/es/chunks/AiboxTable.B_Yli5E8.js +635 -0
  26. package/es/chunks/ApplicationTypeTag.BbJwXyVa.js +47 -0
  27. package/es/chunks/AuthSection.CLi8HcIx.js +201 -0
  28. package/es/chunks/AvailableRangePreview.BgeL_bMq.js +194 -0
  29. package/es/chunks/AvailableRangeSetting.CGJxgfPT.js +229 -0
  30. package/es/chunks/CodeView.CWbewuHs.js +148 -0
  31. package/es/chunks/CommonTagsList.CJdBie2N.js +156 -0
  32. package/es/chunks/CommonTagsList.NbXVfvLW.js +156 -0
  33. package/es/chunks/CreateMcpForm.C0HqvD-g.js +308 -0
  34. package/es/chunks/CreateMcpForm.DSE5jyiW.js +308 -0
  35. package/es/chunks/CustomSidebar.BF2dzN8s.js +585 -0
  36. package/es/chunks/DocSyncSelect.DlJXL1lq.js +2290 -0
  37. package/es/chunks/FileUploader.BSIhrd9M.js +216 -0
  38. package/es/chunks/McpFormDialog.CDH31D2Q.js +297 -0
  39. package/es/chunks/McpFormDialog.CgnC1I7i.js +297 -0
  40. package/es/chunks/McpParamsSet.Bx3aRL9j.js +501 -0
  41. package/es/chunks/MdEditor.B9-B9aiy.js +163 -0
  42. package/es/chunks/MdEditor.Bb9S_hso.js +163 -0
  43. package/es/chunks/ParameterTable.CoRz_932.js +2010 -0
  44. package/es/chunks/PublishRecord.C0841sJ-.js +133 -0
  45. package/es/chunks/PublishRecord.C8h1tu3w.js +133 -0
  46. package/es/chunks/SourcePublish.BhLjt18i.js +972 -0
  47. package/es/chunks/SourcePublish.FiswtYfr.js +972 -0
  48. package/es/chunks/SourcePublish.nfXmrVHm.js +972 -0
  49. package/es/chunks/config.CIQoQGOb.js +35 -0
  50. package/es/chunks/config.TaUlPTYL.js +270 -0
  51. package/es/chunks/config.lm2B-n0s.js +270 -0
  52. package/es/chunks/i18n.CIhVBbR3.js +418 -0
  53. package/es/index.mjs +21 -21
  54. package/lib/CommonTagsList.js +1 -1
  55. package/lib/CreateMcpForm.js +1 -1
  56. package/lib/CustomSidebar.js +1 -1
  57. package/lib/McpFormDialog.js +1 -1
  58. package/lib/MdEditor.js +1 -1
  59. package/lib/PublishRecord.js +1 -1
  60. package/lib/SourcePublish.js +1 -1
  61. package/lib/assets/CreateMcpForm.css +1 -1
  62. package/lib/assets/CustomSidebar.css +1 -1
  63. package/lib/assets/McpFormDialog.css +1 -1
  64. package/lib/assets/MdEditor.css +1 -1
  65. package/lib/assets/SourcePublish.css +1 -1
  66. package/lib/chunks/CommonTagsList.QEP4G-Em.js +1 -0
  67. package/lib/chunks/CreateMcpForm.B2o0Ghjg.js +1 -0
  68. package/lib/chunks/CustomSidebar.Bxnggo2-.js +1 -0
  69. package/lib/chunks/McpFormDialog.FwXnBBd2.js +6 -0
  70. package/lib/chunks/MdEditor.Cp24y4DJ.js +1 -0
  71. package/lib/chunks/PublishRecord.BVndvj7F.js +5 -0
  72. package/lib/chunks/SourcePublish.BBsNlnp4.js +1 -0
  73. package/lib/chunks/SourcePublish.CpeV-UOG.js +1 -0
  74. package/lib/chunks/config.B9Di8LtU.js +1 -0
  75. package/lib/index.js +1 -1
  76. 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 };