@blueking/ai-ui-sdk 0.2.0-beta.20 → 0.2.0-beta.21
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/dist/common/util.d.ts +5 -0
- package/dist/common/util.ts.js +8 -0
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +8 -8
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-checkbox/index.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.script.vue.js.js +62 -1
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.d.ts +1 -0
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +1 -3
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.script.vue.js.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/index.vue.css +2 -2
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +5 -5
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-header/index.vue.css +3 -3
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-like/index.vue.css +5 -5
- package/dist/components/render-like/index.vue.js +1 -1
- package/dist/components/render-markdown/common.d.ts +19 -0
- package/dist/components/render-markdown/common.ts.js +41 -0
- package/dist/components/render-markdown/edit.d.ts +82 -0
- package/dist/components/render-markdown/edit.postcss.css +92 -0
- package/dist/components/render-markdown/edit.ts.js +226 -0
- package/dist/components/render-markdown/mark-down-code-copy.d.ts +7 -0
- package/dist/components/render-markdown/mark-down-code-copy.ts.js +73 -0
- package/dist/components/render-markdown/{mark-down.d.ts → view.d.ts} +2 -27
- package/dist/components/render-markdown/view.postcss.css +91 -0
- package/dist/components/render-markdown/view.ts.js +116 -0
- package/dist/components/render-router-tab/index.vue.css +3 -3
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/components/render-t-table/index.vue.css +27 -27
- package/dist/components/render-t-table/index.vue.js +1 -1
- package/dist/components/render-tag-tree/index.vue.css +7 -7
- package/dist/components/render-tag-tree/index.vue.js +1 -1
- package/dist/components.d.ts +3 -2
- package/dist/components.ts.js +3 -2
- package/dist/css/tailwind.css +0 -4
- package/dist/hooks/use-form-leave-confirm.ts.js +2 -0
- package/package.json +7 -4
- package/dist/components/render-markdown/mark-down-code.d.ts +0 -2
- package/dist/components/render-markdown/mark-down-code.ts.js +0 -171
- package/dist/components/render-markdown/mark-down-emoji.d.ts +0 -2
- package/dist/components/render-markdown/mark-down-emoji.ts.js +0 -4
- package/dist/components/render-markdown/mark-down.postcss.css +0 -154
- package/dist/components/render-markdown/mark-down.ts.js +0 -152
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
function _define_property(obj, key, value) {
|
|
2
|
-
if (key in obj) {
|
|
3
|
-
Object.defineProperty(obj, key, {
|
|
4
|
-
value: value,
|
|
5
|
-
enumerable: true,
|
|
6
|
-
configurable: true,
|
|
7
|
-
writable: true
|
|
8
|
-
});
|
|
9
|
-
} else {
|
|
10
|
-
obj[key] = value;
|
|
11
|
-
}
|
|
12
|
-
return obj;
|
|
13
|
-
}
|
|
14
|
-
function _object_spread(target) {
|
|
15
|
-
for(var i = 1; i < arguments.length; i++){
|
|
16
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
-
var ownKeys = Object.keys(source);
|
|
18
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
-
}));
|
|
22
|
-
}
|
|
23
|
-
ownKeys.forEach(function(key) {
|
|
24
|
-
_define_property(target, key, source[key]);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
return target;
|
|
28
|
-
}
|
|
29
|
-
function ownKeys(object, enumerableOnly) {
|
|
30
|
-
var keys = Object.keys(object);
|
|
31
|
-
if (Object.getOwnPropertySymbols) {
|
|
32
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
33
|
-
if (enumerableOnly) {
|
|
34
|
-
symbols = symbols.filter(function(sym) {
|
|
35
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
keys.push.apply(keys, symbols);
|
|
39
|
-
}
|
|
40
|
-
return keys;
|
|
41
|
-
}
|
|
42
|
-
function _object_spread_props(target, source) {
|
|
43
|
-
source = source != null ? source : {};
|
|
44
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
45
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
46
|
-
} else {
|
|
47
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
48
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
return target;
|
|
52
|
-
}
|
|
53
|
-
import { defineComponent, h } from 'vue';
|
|
54
|
-
import Mavon from 'x-mavon-editor';
|
|
55
|
-
import { MarkDownCodePlugin } from './mark-down-code.ts.js';
|
|
56
|
-
import { MarkDownEmojiPlugin } from './mark-down-emoji.ts.js';
|
|
57
|
-
import 'x-mavon-editor/dist/css/index.css';
|
|
58
|
-
import 'x-mavon-editor/dist/highlightjs/styles/atom-one-dark.min.css';
|
|
59
|
-
import './mark-down.postcss.css';
|
|
60
|
-
const defaultMDProps = {
|
|
61
|
-
defaultOpen: 'preview',
|
|
62
|
-
editable: false,
|
|
63
|
-
subfield: false,
|
|
64
|
-
toolbarsFlag: false,
|
|
65
|
-
boxShadow: false,
|
|
66
|
-
xssOptions: {
|
|
67
|
-
whiteList: {
|
|
68
|
-
a: [
|
|
69
|
-
'href',
|
|
70
|
-
'target',
|
|
71
|
-
'class',
|
|
72
|
-
'title'
|
|
73
|
-
],
|
|
74
|
-
section: [
|
|
75
|
-
'class'
|
|
76
|
-
],
|
|
77
|
-
i: [
|
|
78
|
-
'class'
|
|
79
|
-
],
|
|
80
|
-
span: [
|
|
81
|
-
'class',
|
|
82
|
-
'data-variable-index'
|
|
83
|
-
],
|
|
84
|
-
svg: [
|
|
85
|
-
'class'
|
|
86
|
-
],
|
|
87
|
-
use: [
|
|
88
|
-
'href'
|
|
89
|
-
],
|
|
90
|
-
ul: [
|
|
91
|
-
'class'
|
|
92
|
-
],
|
|
93
|
-
li: [
|
|
94
|
-
'class',
|
|
95
|
-
'title'
|
|
96
|
-
]
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
externalLink: {
|
|
100
|
-
markdown_css () {
|
|
101
|
-
return `${window.SITE_URL}/static/markdown/github-markdown.min.css`;
|
|
102
|
-
},
|
|
103
|
-
hljs_js () {
|
|
104
|
-
return `${window.SITE_URL}/static/highlightjs/highlight.min.js`;
|
|
105
|
-
},
|
|
106
|
-
hljs_css (css) {
|
|
107
|
-
return `${window.SITE_URL}/static/highlightjs/styles/${css}.min.css`;
|
|
108
|
-
},
|
|
109
|
-
hljs_lang (lang) {
|
|
110
|
-
return `${window.SITE_URL}/static/highlightjs/languages/${lang}.min.js`;
|
|
111
|
-
},
|
|
112
|
-
katex_css () {
|
|
113
|
-
return `${window.SITE_URL}/static/katex/katex.min.css`;
|
|
114
|
-
},
|
|
115
|
-
katex_js () {
|
|
116
|
-
return `${window.SITE_URL}/static/katex/katex.min.js`;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
export default defineComponent({
|
|
121
|
-
props: {
|
|
122
|
-
value: {
|
|
123
|
-
type: String
|
|
124
|
-
},
|
|
125
|
-
previewBackground: {
|
|
126
|
-
type: String,
|
|
127
|
-
default: '#fff'
|
|
128
|
-
},
|
|
129
|
-
padding: {
|
|
130
|
-
type: String,
|
|
131
|
-
default: '8px 25px'
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
setup (props) {
|
|
135
|
-
const mdRef = (md)=>{
|
|
136
|
-
if (!md) return;
|
|
137
|
-
// 注册代码块插件
|
|
138
|
-
MarkDownCodePlugin(md.markdownIt);
|
|
139
|
-
// 注册表情插件
|
|
140
|
-
MarkDownEmojiPlugin(md.markdownIt);
|
|
141
|
-
};
|
|
142
|
-
return ()=>h(Mavon.mavonEditor, _object_spread_props(_object_spread({}, defaultMDProps), {
|
|
143
|
-
previewBackground: props.previewBackground,
|
|
144
|
-
modelValue: props.value,
|
|
145
|
-
codeStyle: 'atom-one-dark',
|
|
146
|
-
ref: mdRef,
|
|
147
|
-
style: {
|
|
148
|
-
'--content-padding': props.padding
|
|
149
|
-
}
|
|
150
|
-
}));
|
|
151
|
-
}
|
|
152
|
-
});
|