@oneflowui/ui 0.5.0 → 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 (41) 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/composables/useWorkerSort.js +30 -29
  14. package/dist/index.d.ts +1 -5
  15. package/dist/index.js +250 -350
  16. package/dist/plugin.d.ts +5 -0
  17. package/dist/plugin.js +197 -0
  18. package/dist/style.css +1 -1
  19. package/dist/utils/echarts.d.ts +2 -0
  20. package/dist/utils/icon.d.ts +0 -5
  21. package/dist/utils/icon.js +72 -11
  22. package/dist/workers/tableWorkerSource.js +79 -0
  23. package/package.json +2 -3
  24. package/dist/_virtual/_commonjsHelpers.js +0 -6
  25. package/dist/assets/tableWorker-CTsbCPPP.js +0 -1
  26. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js +0 -5
  27. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js +0 -377
  28. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js +0 -923
  29. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js +0 -151
  30. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js +0 -240
  31. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js +0 -658
  32. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js +0 -38
  33. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js +0 -216
  34. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js +0 -13
  35. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js +0 -399
  36. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js +0 -305
  37. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js +0 -615
  38. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js +0 -753
  39. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js +0 -219
  40. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/yaml.js +0 -183
  41. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +0 -1063
@@ -1,219 +0,0 @@
1
- function g(n) {
2
- const e = n.regex, a = e.concat(/[\p{L}_]/u, e.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), o = /[\p{L}0-9._:-]+/u, s = {
3
- className: "symbol",
4
- begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
5
- }, t = {
6
- begin: /\s/,
7
- contains: [
8
- {
9
- className: "keyword",
10
- begin: /#?[a-z_][a-z1-9_-]+/,
11
- illegal: /\n/
12
- }
13
- ]
14
- }, r = n.inherit(t, {
15
- begin: /\(/,
16
- end: /\)/
17
- }), l = n.inherit(n.APOS_STRING_MODE, { className: "string" }), c = n.inherit(n.QUOTE_STRING_MODE, { className: "string" }), i = {
18
- endsWithParent: !0,
19
- illegal: /</,
20
- relevance: 0,
21
- contains: [
22
- {
23
- className: "attr",
24
- begin: o,
25
- relevance: 0
26
- },
27
- {
28
- begin: /=\s*/,
29
- relevance: 0,
30
- contains: [
31
- {
32
- className: "string",
33
- endsParent: !0,
34
- variants: [
35
- {
36
- begin: /"/,
37
- end: /"/,
38
- contains: [s]
39
- },
40
- {
41
- begin: /'/,
42
- end: /'/,
43
- contains: [s]
44
- },
45
- { begin: /[^\s"'=<>`]+/ }
46
- ]
47
- }
48
- ]
49
- }
50
- ]
51
- };
52
- return {
53
- name: "HTML, XML",
54
- aliases: [
55
- "html",
56
- "xhtml",
57
- "rss",
58
- "atom",
59
- "xjb",
60
- "xsd",
61
- "xsl",
62
- "plist",
63
- "wsf",
64
- "svg"
65
- ],
66
- case_insensitive: !0,
67
- unicodeRegex: !0,
68
- contains: [
69
- {
70
- className: "meta",
71
- begin: /<![a-z]/,
72
- end: />/,
73
- relevance: 10,
74
- contains: [
75
- t,
76
- c,
77
- l,
78
- r,
79
- {
80
- begin: /\[/,
81
- end: /\]/,
82
- contains: [
83
- {
84
- className: "meta",
85
- begin: /<![a-z]/,
86
- end: />/,
87
- contains: [
88
- t,
89
- r,
90
- c,
91
- l
92
- ]
93
- }
94
- ]
95
- }
96
- ]
97
- },
98
- n.COMMENT(
99
- /<!--/,
100
- /-->/,
101
- { relevance: 10 }
102
- ),
103
- {
104
- begin: /<!\[CDATA\[/,
105
- end: /\]\]>/,
106
- relevance: 10
107
- },
108
- s,
109
- // xml processing instructions
110
- {
111
- className: "meta",
112
- end: /\?>/,
113
- variants: [
114
- {
115
- begin: /<\?xml/,
116
- relevance: 10,
117
- contains: [
118
- c
119
- ]
120
- },
121
- {
122
- begin: /<\?[a-z][a-z0-9]+/
123
- }
124
- ]
125
- },
126
- {
127
- className: "tag",
128
- /*
129
- The lookahead pattern (?=...) ensures that 'begin' only matches
130
- '<style' as a single word, followed by a whitespace or an
131
- ending bracket.
132
- */
133
- begin: /<style(?=\s|>)/,
134
- end: />/,
135
- keywords: { name: "style" },
136
- contains: [i],
137
- starts: {
138
- end: /<\/style>/,
139
- returnEnd: !0,
140
- subLanguage: [
141
- "css",
142
- "xml"
143
- ]
144
- }
145
- },
146
- {
147
- className: "tag",
148
- // See the comment in the <style tag about the lookahead pattern
149
- begin: /<script(?=\s|>)/,
150
- end: />/,
151
- keywords: { name: "script" },
152
- contains: [i],
153
- starts: {
154
- end: /<\/script>/,
155
- returnEnd: !0,
156
- subLanguage: [
157
- "javascript",
158
- "handlebars",
159
- "xml"
160
- ]
161
- }
162
- },
163
- // we need this for now for jSX
164
- {
165
- className: "tag",
166
- begin: /<>|<\/>/
167
- },
168
- // open tag
169
- {
170
- className: "tag",
171
- begin: e.concat(
172
- /</,
173
- e.lookahead(e.concat(
174
- a,
175
- // <tag/>
176
- // <tag>
177
- // <tag ...
178
- e.either(/\/>/, />/, /\s/)
179
- ))
180
- ),
181
- end: /\/?>/,
182
- contains: [
183
- {
184
- className: "name",
185
- begin: a,
186
- relevance: 0,
187
- starts: i
188
- }
189
- ]
190
- },
191
- // close tag
192
- {
193
- className: "tag",
194
- begin: e.concat(
195
- /<\//,
196
- e.lookahead(e.concat(
197
- a,
198
- />/
199
- ))
200
- ),
201
- contains: [
202
- {
203
- className: "name",
204
- begin: a,
205
- relevance: 0
206
- },
207
- {
208
- begin: />/,
209
- relevance: 0,
210
- endsParent: !0
211
- }
212
- ]
213
- }
214
- ]
215
- };
216
- }
217
- export {
218
- g as default
219
- };
@@ -1,183 +0,0 @@
1
- function A(e) {
2
- const a = "true false yes no null", n = "[\\w#;/?:@&=+$,.~*'()[\\]]+", E = {
3
- className: "attr",
4
- variants: [
5
- // added brackets support and special char support
6
- { begin: /[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/ },
7
- {
8
- // double quoted keys - with brackets and special char support
9
- begin: /"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/
10
- },
11
- {
12
- // single quoted keys - with brackets and special char support
13
- begin: /'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/
14
- }
15
- ]
16
- }, l = {
17
- className: "template-variable",
18
- variants: [
19
- {
20
- // jinja templates Ansible
21
- begin: /\{\{/,
22
- end: /\}\}/
23
- },
24
- {
25
- // Ruby i18n
26
- begin: /%\{/,
27
- end: /\}/
28
- }
29
- ]
30
- }, r = {
31
- className: "string",
32
- relevance: 0,
33
- begin: /'/,
34
- end: /'/,
35
- contains: [
36
- {
37
- match: /''/,
38
- scope: "char.escape",
39
- relevance: 0
40
- }
41
- ]
42
- }, c = {
43
- className: "string",
44
- relevance: 0,
45
- variants: [
46
- {
47
- begin: /"/,
48
- end: /"/
49
- },
50
- { begin: /\S+/ }
51
- ],
52
- contains: [
53
- e.BACKSLASH_ESCAPE,
54
- l
55
- ]
56
- }, b = e.inherit(c, { variants: [
57
- {
58
- begin: /'/,
59
- end: /'/,
60
- contains: [
61
- {
62
- begin: /''/,
63
- relevance: 0
64
- }
65
- ]
66
- },
67
- {
68
- begin: /"/,
69
- end: /"/
70
- },
71
- { begin: /[^\s,{}[\]]+/ }
72
- ] }), g = {
73
- className: "number",
74
- begin: "\\b" + "[0-9]{4}(-[0-9][0-9]){0,2}" + "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?" + "(\\.[0-9]*)?" + "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?" + "\\b"
75
- }, s = {
76
- end: ",",
77
- endsWithParent: !0,
78
- excludeEnd: !0,
79
- keywords: a,
80
- relevance: 0
81
- }, N = {
82
- begin: /\{/,
83
- end: /\}/,
84
- contains: [s],
85
- illegal: "\\n",
86
- relevance: 0
87
- }, o = {
88
- begin: "\\[",
89
- end: "\\]",
90
- contains: [s],
91
- illegal: "\\n",
92
- relevance: 0
93
- }, i = [
94
- E,
95
- {
96
- className: "meta",
97
- begin: "^---\\s*$",
98
- relevance: 10
99
- },
100
- {
101
- // multi line string
102
- // Blocks start with a | or > followed by a newline
103
- //
104
- // Indentation of subsequent lines must be the same to
105
- // be considered part of the block
106
- className: "string",
107
- begin: "[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"
108
- },
109
- {
110
- // Ruby/Rails erb
111
- begin: "<%[%=-]?",
112
- end: "[%-]?%>",
113
- subLanguage: "ruby",
114
- excludeBegin: !0,
115
- excludeEnd: !0,
116
- relevance: 0
117
- },
118
- {
119
- // named tags
120
- className: "type",
121
- begin: "!\\w+!" + n
122
- },
123
- // https://yaml.org/spec/1.2/spec.html#id2784064
124
- {
125
- // verbatim tags
126
- className: "type",
127
- begin: "!<" + n + ">"
128
- },
129
- {
130
- // primary tags
131
- className: "type",
132
- begin: "!" + n
133
- },
134
- {
135
- // secondary tags
136
- className: "type",
137
- begin: "!!" + n
138
- },
139
- {
140
- // fragment id &ref
141
- className: "meta",
142
- begin: "&" + e.UNDERSCORE_IDENT_RE + "$"
143
- },
144
- {
145
- // fragment reference *ref
146
- className: "meta",
147
- begin: "\\*" + e.UNDERSCORE_IDENT_RE + "$"
148
- },
149
- {
150
- // array listing
151
- className: "bullet",
152
- // TODO: remove |$ hack when we have proper look-ahead support
153
- begin: "-(?=[ ]|$)",
154
- relevance: 0
155
- },
156
- e.HASH_COMMENT_MODE,
157
- {
158
- beginKeywords: a,
159
- keywords: { literal: a }
160
- },
161
- g,
162
- // numbers are any valid C-style number that
163
- // sit isolated from other words
164
- {
165
- className: "number",
166
- begin: e.C_NUMBER_RE + "\\b",
167
- relevance: 0
168
- },
169
- N,
170
- o,
171
- r,
172
- c
173
- ], t = [...i];
174
- return t.pop(), t.push(b), s.contains = t, {
175
- name: "YAML",
176
- case_insensitive: !0,
177
- aliases: ["yml"],
178
- contains: i
179
- };
180
- }
181
- export {
182
- A as default
183
- };