@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.
Files changed (38) hide show
  1. package/dist/components/Dashboard/charts/BarChart.vue.js +2 -2
  2. package/dist/components/Dashboard/charts/BarChart.vue2.js +11 -8
  3. package/dist/components/Dashboard/charts/PieChart.vue.js +2 -2
  4. package/dist/components/Dashboard/charts/PieChart.vue2.js +8 -5
  5. package/dist/components/Dashboard/index.vue.js +1 -1
  6. package/dist/components/Dashboard/index.vue2.js +20 -25
  7. package/dist/components/editor/RichTextEditor.vue2.js +1 -1
  8. package/dist/components/table/DataTable.vue.js +1 -1
  9. package/dist/components/table/DataTable.vue2.js +134 -135
  10. package/dist/components/table/FieldCell.vue.js +2 -2
  11. package/dist/components/table/FieldCell.vue2.js +16 -15
  12. package/dist/composables/useMarkdown.js +23 -23
  13. package/dist/index.d.ts +1 -5
  14. package/dist/index.js +250 -350
  15. package/dist/plugin.d.ts +5 -0
  16. package/dist/plugin.js +197 -0
  17. package/dist/style.css +1 -1
  18. package/dist/utils/echarts.d.ts +2 -0
  19. package/dist/utils/icon.d.ts +0 -5
  20. package/dist/utils/icon.js +72 -11
  21. package/package.json +2 -3
  22. package/dist/_virtual/_commonjsHelpers.js +0 -6
  23. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js +0 -5
  24. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js +0 -377
  25. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js +0 -923
  26. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js +0 -151
  27. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js +0 -240
  28. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js +0 -658
  29. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js +0 -38
  30. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js +0 -216
  31. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js +0 -13
  32. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js +0 -399
  33. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js +0 -305
  34. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js +0 -615
  35. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js +0 -753
  36. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js +0 -219
  37. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/yaml.js +0 -183
  38. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +0 -1063
@@ -1,151 +0,0 @@
1
- function c(e) {
2
- const n = {
3
- keyword: [
4
- "break",
5
- "case",
6
- "chan",
7
- "const",
8
- "continue",
9
- "default",
10
- "defer",
11
- "else",
12
- "fallthrough",
13
- "for",
14
- "func",
15
- "go",
16
- "goto",
17
- "if",
18
- "import",
19
- "interface",
20
- "map",
21
- "package",
22
- "range",
23
- "return",
24
- "select",
25
- "struct",
26
- "switch",
27
- "type",
28
- "var"
29
- ],
30
- type: [
31
- "bool",
32
- "byte",
33
- "complex64",
34
- "complex128",
35
- "error",
36
- "float32",
37
- "float64",
38
- "int8",
39
- "int16",
40
- "int32",
41
- "int64",
42
- "string",
43
- "uint8",
44
- "uint16",
45
- "uint32",
46
- "uint64",
47
- "int",
48
- "uint",
49
- "uintptr",
50
- "rune"
51
- ],
52
- literal: [
53
- "true",
54
- "false",
55
- "iota",
56
- "nil"
57
- ],
58
- built_in: [
59
- "append",
60
- "cap",
61
- "close",
62
- "complex",
63
- "copy",
64
- "imag",
65
- "len",
66
- "make",
67
- "new",
68
- "panic",
69
- "print",
70
- "println",
71
- "real",
72
- "recover",
73
- "delete"
74
- ]
75
- };
76
- return {
77
- name: "Go",
78
- aliases: ["golang"],
79
- keywords: n,
80
- illegal: "</",
81
- contains: [
82
- e.C_LINE_COMMENT_MODE,
83
- e.C_BLOCK_COMMENT_MODE,
84
- {
85
- className: "string",
86
- variants: [
87
- e.QUOTE_STRING_MODE,
88
- e.APOS_STRING_MODE,
89
- {
90
- begin: "`",
91
- end: "`"
92
- }
93
- ]
94
- },
95
- {
96
- className: "number",
97
- variants: [
98
- {
99
- match: /-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,
100
- // hex without a present digit before . (making a digit afterwards required)
101
- relevance: 0
102
- },
103
- {
104
- match: /-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,
105
- // hex with a present digit before . (making a digit afterwards optional)
106
- relevance: 0
107
- },
108
- {
109
- match: /-?\b0[oO](_?[0-7])*i?/,
110
- // leading 0o octal
111
- relevance: 0
112
- },
113
- {
114
- match: /-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,
115
- // decimal without a present digit before . (making a digit afterwards required)
116
- relevance: 0
117
- },
118
- {
119
- match: /-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,
120
- // decimal with a present digit before . (making a digit afterwards optional)
121
- relevance: 0
122
- }
123
- ]
124
- },
125
- {
126
- begin: /:=/
127
- // relevance booster
128
- },
129
- {
130
- className: "function",
131
- beginKeywords: "func",
132
- end: "\\s*(\\{|$)",
133
- excludeEnd: !0,
134
- contains: [
135
- e.TITLE_MODE,
136
- {
137
- className: "params",
138
- begin: /\(/,
139
- end: /\)/,
140
- endsParent: !0,
141
- keywords: n,
142
- illegal: /["']/
143
- }
144
- ]
145
- }
146
- ]
147
- };
148
- }
149
- export {
150
- c as default
151
- };
@@ -1,240 +0,0 @@
1
- var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", _ = {
2
- className: "number",
3
- variants: [
4
- // DecimalFloatingPointLiteral
5
- // including ExponentPart
6
- { begin: `(\\b(${n})((${r})|\\.)?|(${r}))[eE][+-]?(${n})[fFdD]?\\b` },
7
- // excluding ExponentPart
8
- { begin: `\\b(${n})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
9
- { begin: `(${r})[fFdD]?\\b` },
10
- { begin: `\\b(${n})[fFdD]\\b` },
11
- // HexadecimalFloatingPointLiteral
12
- { begin: `\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${n})[fFdD]?\\b` },
13
- // DecimalIntegerLiteral
14
- { begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
15
- // HexIntegerLiteral
16
- { begin: `\\b0[xX](${i})[lL]?\\b` },
17
- // OctalIntegerLiteral
18
- { begin: "\\b0(_*[0-7])*[lL]?\\b" },
19
- // BinaryIntegerLiteral
20
- { begin: "\\b0[bB][01](_*[01])*[lL]?\\b" }
21
- ],
22
- relevance: 0
23
- };
24
- function b(e, t, a) {
25
- return a === -1 ? "" : e.replace(t, (c) => b(e, t, a - 1));
26
- }
27
- function M(e) {
28
- const t = e.regex, a = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", c = a + b("(?:<" + a + "~~~(?:\\s*,\\s*" + a + "~~~)*>)?", /~~~/g, 2), s = {
29
- keyword: [
30
- "synchronized",
31
- "abstract",
32
- "private",
33
- "var",
34
- "static",
35
- "if",
36
- "const ",
37
- "for",
38
- "while",
39
- "strictfp",
40
- "finally",
41
- "protected",
42
- "import",
43
- "native",
44
- "final",
45
- "void",
46
- "enum",
47
- "else",
48
- "break",
49
- "transient",
50
- "catch",
51
- "instanceof",
52
- "volatile",
53
- "case",
54
- "assert",
55
- "package",
56
- "default",
57
- "public",
58
- "try",
59
- "switch",
60
- "continue",
61
- "throws",
62
- "protected",
63
- "public",
64
- "private",
65
- "module",
66
- "requires",
67
- "exports",
68
- "do",
69
- "sealed",
70
- "yield",
71
- "permits",
72
- "goto",
73
- "when"
74
- ],
75
- literal: [
76
- "false",
77
- "true",
78
- "null"
79
- ],
80
- type: [
81
- "char",
82
- "boolean",
83
- "long",
84
- "float",
85
- "int",
86
- "byte",
87
- "short",
88
- "double"
89
- ],
90
- built_in: [
91
- "super",
92
- "this"
93
- ]
94
- }, o = {
95
- className: "meta",
96
- begin: "@" + a,
97
- contains: [
98
- {
99
- begin: /\(/,
100
- end: /\)/,
101
- contains: ["self"]
102
- // allow nested () inside our annotation
103
- }
104
- ]
105
- }, l = {
106
- className: "params",
107
- begin: /\(/,
108
- end: /\)/,
109
- keywords: s,
110
- relevance: 0,
111
- contains: [e.C_BLOCK_COMMENT_MODE],
112
- endsParent: !0
113
- };
114
- return {
115
- name: "Java",
116
- aliases: ["jsp"],
117
- keywords: s,
118
- illegal: /<\/|#/,
119
- contains: [
120
- e.COMMENT(
121
- "/\\*\\*",
122
- "\\*/",
123
- {
124
- relevance: 0,
125
- contains: [
126
- {
127
- // eat up @'s in emails to prevent them to be recognized as doctags
128
- begin: /\w+@/,
129
- relevance: 0
130
- },
131
- {
132
- className: "doctag",
133
- begin: "@[A-Za-z]+"
134
- }
135
- ]
136
- }
137
- ),
138
- // relevance boost
139
- {
140
- begin: /import java\.[a-z]+\./,
141
- keywords: "import",
142
- relevance: 2
143
- },
144
- e.C_LINE_COMMENT_MODE,
145
- e.C_BLOCK_COMMENT_MODE,
146
- {
147
- begin: /"""/,
148
- end: /"""/,
149
- className: "string",
150
- contains: [e.BACKSLASH_ESCAPE]
151
- },
152
- e.APOS_STRING_MODE,
153
- e.QUOTE_STRING_MODE,
154
- {
155
- match: [
156
- /\b(?:class|interface|enum|extends|implements|new)/,
157
- /\s+/,
158
- a
159
- ],
160
- className: {
161
- 1: "keyword",
162
- 3: "title.class"
163
- }
164
- },
165
- {
166
- // Exceptions for hyphenated keywords
167
- match: /non-sealed/,
168
- scope: "keyword"
169
- },
170
- {
171
- begin: [
172
- t.concat(/(?!else)/, a),
173
- /\s+/,
174
- a,
175
- /\s+/,
176
- /=(?!=)/
177
- ],
178
- className: {
179
- 1: "type",
180
- 3: "variable",
181
- 5: "operator"
182
- }
183
- },
184
- {
185
- begin: [
186
- /record/,
187
- /\s+/,
188
- a
189
- ],
190
- className: {
191
- 1: "keyword",
192
- 3: "title.class"
193
- },
194
- contains: [
195
- l,
196
- e.C_LINE_COMMENT_MODE,
197
- e.C_BLOCK_COMMENT_MODE
198
- ]
199
- },
200
- {
201
- // Expression keywords prevent 'keyword Name(...)' from being
202
- // recognized as a function definition
203
- beginKeywords: "new throw return else",
204
- relevance: 0
205
- },
206
- {
207
- begin: [
208
- "(?:" + c + "\\s+)",
209
- e.UNDERSCORE_IDENT_RE,
210
- /\s*(?=\()/
211
- ],
212
- className: { 2: "title.function" },
213
- keywords: s,
214
- contains: [
215
- {
216
- className: "params",
217
- begin: /\(/,
218
- end: /\)/,
219
- keywords: s,
220
- relevance: 0,
221
- contains: [
222
- o,
223
- e.APOS_STRING_MODE,
224
- e.QUOTE_STRING_MODE,
225
- _,
226
- e.C_BLOCK_COMMENT_MODE
227
- ]
228
- },
229
- e.C_LINE_COMMENT_MODE,
230
- e.C_BLOCK_COMMENT_MODE
231
- ]
232
- },
233
- _,
234
- o
235
- ]
236
- };
237
- }
238
- export {
239
- M as default
240
- };