@oneflowui/ui 0.5.1 → 0.5.2
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/components/Dashboard/charts/BarChart.vue.js +2 -2
- package/dist/components/Dashboard/charts/BarChart.vue2.js +11 -8
- package/dist/components/Dashboard/charts/PieChart.vue.js +2 -2
- package/dist/components/Dashboard/charts/PieChart.vue2.js +8 -5
- package/dist/components/Dashboard/index.vue.js +1 -1
- package/dist/components/Dashboard/index.vue2.js +20 -25
- package/dist/components/editor/RichTextEditor.vue2.js +1 -1
- package/dist/components/table/DataTable.vue.js +1 -1
- package/dist/components/table/DataTable.vue2.js +134 -135
- package/dist/components/table/FieldCell.vue.js +2 -2
- package/dist/components/table/FieldCell.vue2.js +16 -15
- package/dist/composables/useMarkdown.js +23 -23
- package/dist/index.d.ts +1 -5
- package/dist/index.js +250 -350
- package/dist/plugin.d.ts +5 -0
- package/dist/plugin.js +197 -0
- package/dist/style.css +1 -1
- package/dist/utils/echarts.d.ts +2 -0
- package/dist/utils/icon.d.ts +0 -5
- package/dist/utils/icon.js +72 -11
- package/package.json +2 -3
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js +0 -5
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js +0 -377
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js +0 -923
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js +0 -151
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js +0 -240
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js +0 -658
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js +0 -38
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js +0 -216
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js +0 -13
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js +0 -399
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js +0 -305
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js +0 -615
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js +0 -753
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js +0 -219
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/yaml.js +0 -183
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +0 -1063
package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js
DELETED
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
function b(e) {
|
|
2
|
-
const n = e.regex, i = /(r#)?/, t = n.concat(i, e.UNDERSCORE_IDENT_RE), o = n.concat(i, e.IDENT_RE), c = {
|
|
3
|
-
className: "title.function.invoke",
|
|
4
|
-
relevance: 0,
|
|
5
|
-
begin: n.concat(
|
|
6
|
-
/\b/,
|
|
7
|
-
/(?!let|for|while|if|else|match\b)/,
|
|
8
|
-
o,
|
|
9
|
-
n.lookahead(/\s*\(/)
|
|
10
|
-
)
|
|
11
|
-
}, a = "([ui](8|16|32|64|128|size)|f(32|64))?", l = [
|
|
12
|
-
"abstract",
|
|
13
|
-
"as",
|
|
14
|
-
"async",
|
|
15
|
-
"await",
|
|
16
|
-
"become",
|
|
17
|
-
"box",
|
|
18
|
-
"break",
|
|
19
|
-
"const",
|
|
20
|
-
"continue",
|
|
21
|
-
"crate",
|
|
22
|
-
"do",
|
|
23
|
-
"dyn",
|
|
24
|
-
"else",
|
|
25
|
-
"enum",
|
|
26
|
-
"extern",
|
|
27
|
-
"false",
|
|
28
|
-
"final",
|
|
29
|
-
"fn",
|
|
30
|
-
"for",
|
|
31
|
-
"if",
|
|
32
|
-
"impl",
|
|
33
|
-
"in",
|
|
34
|
-
"let",
|
|
35
|
-
"loop",
|
|
36
|
-
"macro",
|
|
37
|
-
"match",
|
|
38
|
-
"mod",
|
|
39
|
-
"move",
|
|
40
|
-
"mut",
|
|
41
|
-
"override",
|
|
42
|
-
"priv",
|
|
43
|
-
"pub",
|
|
44
|
-
"ref",
|
|
45
|
-
"return",
|
|
46
|
-
"self",
|
|
47
|
-
"Self",
|
|
48
|
-
"static",
|
|
49
|
-
"struct",
|
|
50
|
-
"super",
|
|
51
|
-
"trait",
|
|
52
|
-
"true",
|
|
53
|
-
"try",
|
|
54
|
-
"type",
|
|
55
|
-
"typeof",
|
|
56
|
-
"union",
|
|
57
|
-
"unsafe",
|
|
58
|
-
"unsized",
|
|
59
|
-
"use",
|
|
60
|
-
"virtual",
|
|
61
|
-
"where",
|
|
62
|
-
"while",
|
|
63
|
-
"yield"
|
|
64
|
-
], u = [
|
|
65
|
-
"true",
|
|
66
|
-
"false",
|
|
67
|
-
"Some",
|
|
68
|
-
"None",
|
|
69
|
-
"Ok",
|
|
70
|
-
"Err"
|
|
71
|
-
], s = [
|
|
72
|
-
// functions
|
|
73
|
-
"drop ",
|
|
74
|
-
// traits
|
|
75
|
-
"Copy",
|
|
76
|
-
"Send",
|
|
77
|
-
"Sized",
|
|
78
|
-
"Sync",
|
|
79
|
-
"Drop",
|
|
80
|
-
"Fn",
|
|
81
|
-
"FnMut",
|
|
82
|
-
"FnOnce",
|
|
83
|
-
"ToOwned",
|
|
84
|
-
"Clone",
|
|
85
|
-
"Debug",
|
|
86
|
-
"PartialEq",
|
|
87
|
-
"PartialOrd",
|
|
88
|
-
"Eq",
|
|
89
|
-
"Ord",
|
|
90
|
-
"AsRef",
|
|
91
|
-
"AsMut",
|
|
92
|
-
"Into",
|
|
93
|
-
"From",
|
|
94
|
-
"Default",
|
|
95
|
-
"Iterator",
|
|
96
|
-
"Extend",
|
|
97
|
-
"IntoIterator",
|
|
98
|
-
"DoubleEndedIterator",
|
|
99
|
-
"ExactSizeIterator",
|
|
100
|
-
"SliceConcatExt",
|
|
101
|
-
"ToString",
|
|
102
|
-
// macros
|
|
103
|
-
"assert!",
|
|
104
|
-
"assert_eq!",
|
|
105
|
-
"bitflags!",
|
|
106
|
-
"bytes!",
|
|
107
|
-
"cfg!",
|
|
108
|
-
"col!",
|
|
109
|
-
"concat!",
|
|
110
|
-
"concat_idents!",
|
|
111
|
-
"debug_assert!",
|
|
112
|
-
"debug_assert_eq!",
|
|
113
|
-
"env!",
|
|
114
|
-
"eprintln!",
|
|
115
|
-
"panic!",
|
|
116
|
-
"file!",
|
|
117
|
-
"format!",
|
|
118
|
-
"format_args!",
|
|
119
|
-
"include_bytes!",
|
|
120
|
-
"include_str!",
|
|
121
|
-
"line!",
|
|
122
|
-
"local_data_key!",
|
|
123
|
-
"module_path!",
|
|
124
|
-
"option_env!",
|
|
125
|
-
"print!",
|
|
126
|
-
"println!",
|
|
127
|
-
"select!",
|
|
128
|
-
"stringify!",
|
|
129
|
-
"try!",
|
|
130
|
-
"unimplemented!",
|
|
131
|
-
"unreachable!",
|
|
132
|
-
"vec!",
|
|
133
|
-
"write!",
|
|
134
|
-
"writeln!",
|
|
135
|
-
"macro_rules!",
|
|
136
|
-
"assert_ne!",
|
|
137
|
-
"debug_assert_ne!"
|
|
138
|
-
], r = [
|
|
139
|
-
"i8",
|
|
140
|
-
"i16",
|
|
141
|
-
"i32",
|
|
142
|
-
"i64",
|
|
143
|
-
"i128",
|
|
144
|
-
"isize",
|
|
145
|
-
"u8",
|
|
146
|
-
"u16",
|
|
147
|
-
"u32",
|
|
148
|
-
"u64",
|
|
149
|
-
"u128",
|
|
150
|
-
"usize",
|
|
151
|
-
"f32",
|
|
152
|
-
"f64",
|
|
153
|
-
"str",
|
|
154
|
-
"char",
|
|
155
|
-
"bool",
|
|
156
|
-
"Box",
|
|
157
|
-
"Option",
|
|
158
|
-
"Result",
|
|
159
|
-
"String",
|
|
160
|
-
"Vec"
|
|
161
|
-
];
|
|
162
|
-
return {
|
|
163
|
-
name: "Rust",
|
|
164
|
-
aliases: ["rs"],
|
|
165
|
-
keywords: {
|
|
166
|
-
$pattern: e.IDENT_RE + "!?",
|
|
167
|
-
type: r,
|
|
168
|
-
keyword: l,
|
|
169
|
-
literal: u,
|
|
170
|
-
built_in: s
|
|
171
|
-
},
|
|
172
|
-
illegal: "</",
|
|
173
|
-
contains: [
|
|
174
|
-
e.C_LINE_COMMENT_MODE,
|
|
175
|
-
e.COMMENT("/\\*", "\\*/", { contains: ["self"] }),
|
|
176
|
-
e.inherit(e.QUOTE_STRING_MODE, {
|
|
177
|
-
begin: /b?"/,
|
|
178
|
-
illegal: null
|
|
179
|
-
}),
|
|
180
|
-
{
|
|
181
|
-
className: "symbol",
|
|
182
|
-
// negative lookahead to avoid matching `'`
|
|
183
|
-
begin: /'[a-zA-Z_][a-zA-Z0-9_]*(?!')/
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
scope: "string",
|
|
187
|
-
variants: [
|
|
188
|
-
{ begin: /b?r(#*)"(.|\n)*?"\1(?!#)/ },
|
|
189
|
-
{
|
|
190
|
-
begin: /b?'/,
|
|
191
|
-
end: /'/,
|
|
192
|
-
contains: [
|
|
193
|
-
{
|
|
194
|
-
scope: "char.escape",
|
|
195
|
-
match: /\\('|\w|x\w{2}|u\w{4}|U\w{8})/
|
|
196
|
-
}
|
|
197
|
-
]
|
|
198
|
-
}
|
|
199
|
-
]
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
className: "number",
|
|
203
|
-
variants: [
|
|
204
|
-
{ begin: "\\b0b([01_]+)" + a },
|
|
205
|
-
{ begin: "\\b0o([0-7_]+)" + a },
|
|
206
|
-
{ begin: "\\b0x([A-Fa-f0-9_]+)" + a },
|
|
207
|
-
{ begin: "\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)" + a }
|
|
208
|
-
],
|
|
209
|
-
relevance: 0
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
begin: [
|
|
213
|
-
/fn/,
|
|
214
|
-
/\s+/,
|
|
215
|
-
t
|
|
216
|
-
],
|
|
217
|
-
className: {
|
|
218
|
-
1: "keyword",
|
|
219
|
-
3: "title.function"
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
className: "meta",
|
|
224
|
-
begin: "#!?\\[",
|
|
225
|
-
end: "\\]",
|
|
226
|
-
contains: [
|
|
227
|
-
{
|
|
228
|
-
className: "string",
|
|
229
|
-
begin: /"/,
|
|
230
|
-
end: /"/,
|
|
231
|
-
contains: [
|
|
232
|
-
e.BACKSLASH_ESCAPE
|
|
233
|
-
]
|
|
234
|
-
}
|
|
235
|
-
]
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
begin: [
|
|
239
|
-
/let/,
|
|
240
|
-
/\s+/,
|
|
241
|
-
/(?:mut\s+)?/,
|
|
242
|
-
t
|
|
243
|
-
],
|
|
244
|
-
className: {
|
|
245
|
-
1: "keyword",
|
|
246
|
-
3: "keyword",
|
|
247
|
-
4: "variable"
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
// must come before impl/for rule later
|
|
251
|
-
{
|
|
252
|
-
begin: [
|
|
253
|
-
/for/,
|
|
254
|
-
/\s+/,
|
|
255
|
-
t,
|
|
256
|
-
/\s+/,
|
|
257
|
-
/in/
|
|
258
|
-
],
|
|
259
|
-
className: {
|
|
260
|
-
1: "keyword",
|
|
261
|
-
3: "variable",
|
|
262
|
-
5: "keyword"
|
|
263
|
-
}
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
begin: [
|
|
267
|
-
/type/,
|
|
268
|
-
/\s+/,
|
|
269
|
-
t
|
|
270
|
-
],
|
|
271
|
-
className: {
|
|
272
|
-
1: "keyword",
|
|
273
|
-
3: "title.class"
|
|
274
|
-
}
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
begin: [
|
|
278
|
-
/(?:trait|enum|struct|union|impl|for)/,
|
|
279
|
-
/\s+/,
|
|
280
|
-
t
|
|
281
|
-
],
|
|
282
|
-
className: {
|
|
283
|
-
1: "keyword",
|
|
284
|
-
3: "title.class"
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
begin: e.IDENT_RE + "::",
|
|
289
|
-
keywords: {
|
|
290
|
-
keyword: "Self",
|
|
291
|
-
built_in: s,
|
|
292
|
-
type: r
|
|
293
|
-
}
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
className: "punctuation",
|
|
297
|
-
begin: "->"
|
|
298
|
-
},
|
|
299
|
-
c
|
|
300
|
-
]
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
|
-
export {
|
|
304
|
-
b as default
|
|
305
|
-
};
|