@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,615 +0,0 @@
1
- function j(n) {
2
- const a = n.regex, c = n.COMMENT("--", "$"), l = {
3
- scope: "string",
4
- variants: [
5
- {
6
- begin: /'/,
7
- end: /'/,
8
- contains: [{ match: /''/ }]
9
- }
10
- ]
11
- }, _ = {
12
- begin: /"/,
13
- end: /"/,
14
- contains: [{ match: /""/ }]
15
- }, u = [
16
- "true",
17
- "false",
18
- // Not sure it's correct to call NULL literal, and clauses like IS [NOT] NULL look strange that way.
19
- // "null",
20
- "unknown"
21
- ], g = [
22
- "double precision",
23
- "large object",
24
- "with timezone",
25
- "without timezone"
26
- ], m = [
27
- "bigint",
28
- "binary",
29
- "blob",
30
- "boolean",
31
- "char",
32
- "character",
33
- "clob",
34
- "date",
35
- "dec",
36
- "decfloat",
37
- "decimal",
38
- "float",
39
- "int",
40
- "integer",
41
- "interval",
42
- "nchar",
43
- "nclob",
44
- "national",
45
- "numeric",
46
- "real",
47
- "row",
48
- "smallint",
49
- "time",
50
- "timestamp",
51
- "varchar",
52
- "varying",
53
- // modifier (character varying)
54
- "varbinary"
55
- ], p = [
56
- "add",
57
- "asc",
58
- "collation",
59
- "desc",
60
- "final",
61
- "first",
62
- "last",
63
- "view"
64
- ], d = [
65
- "abs",
66
- "acos",
67
- "all",
68
- "allocate",
69
- "alter",
70
- "and",
71
- "any",
72
- "are",
73
- "array",
74
- "array_agg",
75
- "array_max_cardinality",
76
- "as",
77
- "asensitive",
78
- "asin",
79
- "asymmetric",
80
- "at",
81
- "atan",
82
- "atomic",
83
- "authorization",
84
- "avg",
85
- "begin",
86
- "begin_frame",
87
- "begin_partition",
88
- "between",
89
- "bigint",
90
- "binary",
91
- "blob",
92
- "boolean",
93
- "both",
94
- "by",
95
- "call",
96
- "called",
97
- "cardinality",
98
- "cascaded",
99
- "case",
100
- "cast",
101
- "ceil",
102
- "ceiling",
103
- "char",
104
- "char_length",
105
- "character",
106
- "character_length",
107
- "check",
108
- "classifier",
109
- "clob",
110
- "close",
111
- "coalesce",
112
- "collate",
113
- "collect",
114
- "column",
115
- "commit",
116
- "condition",
117
- "connect",
118
- "constraint",
119
- "contains",
120
- "convert",
121
- "copy",
122
- "corr",
123
- "corresponding",
124
- "cos",
125
- "cosh",
126
- "count",
127
- "covar_pop",
128
- "covar_samp",
129
- "create",
130
- "cross",
131
- "cube",
132
- "cume_dist",
133
- "current",
134
- "current_catalog",
135
- "current_date",
136
- "current_default_transform_group",
137
- "current_path",
138
- "current_role",
139
- "current_row",
140
- "current_schema",
141
- "current_time",
142
- "current_timestamp",
143
- "current_path",
144
- "current_role",
145
- "current_transform_group_for_type",
146
- "current_user",
147
- "cursor",
148
- "cycle",
149
- "date",
150
- "day",
151
- "deallocate",
152
- "dec",
153
- "decimal",
154
- "decfloat",
155
- "declare",
156
- "default",
157
- "define",
158
- "delete",
159
- "dense_rank",
160
- "deref",
161
- "describe",
162
- "deterministic",
163
- "disconnect",
164
- "distinct",
165
- "double",
166
- "drop",
167
- "dynamic",
168
- "each",
169
- "element",
170
- "else",
171
- "empty",
172
- "end",
173
- "end_frame",
174
- "end_partition",
175
- "end-exec",
176
- "equals",
177
- "escape",
178
- "every",
179
- "except",
180
- "exec",
181
- "execute",
182
- "exists",
183
- "exp",
184
- "external",
185
- "extract",
186
- "false",
187
- "fetch",
188
- "filter",
189
- "first_value",
190
- "float",
191
- "floor",
192
- "for",
193
- "foreign",
194
- "frame_row",
195
- "free",
196
- "from",
197
- "full",
198
- "function",
199
- "fusion",
200
- "get",
201
- "global",
202
- "grant",
203
- "group",
204
- "grouping",
205
- "groups",
206
- "having",
207
- "hold",
208
- "hour",
209
- "identity",
210
- "in",
211
- "indicator",
212
- "initial",
213
- "inner",
214
- "inout",
215
- "insensitive",
216
- "insert",
217
- "int",
218
- "integer",
219
- "intersect",
220
- "intersection",
221
- "interval",
222
- "into",
223
- "is",
224
- "join",
225
- "json_array",
226
- "json_arrayagg",
227
- "json_exists",
228
- "json_object",
229
- "json_objectagg",
230
- "json_query",
231
- "json_table",
232
- "json_table_primitive",
233
- "json_value",
234
- "lag",
235
- "language",
236
- "large",
237
- "last_value",
238
- "lateral",
239
- "lead",
240
- "leading",
241
- "left",
242
- "like",
243
- "like_regex",
244
- "listagg",
245
- "ln",
246
- "local",
247
- "localtime",
248
- "localtimestamp",
249
- "log",
250
- "log10",
251
- "lower",
252
- "match",
253
- "match_number",
254
- "match_recognize",
255
- "matches",
256
- "max",
257
- "member",
258
- "merge",
259
- "method",
260
- "min",
261
- "minute",
262
- "mod",
263
- "modifies",
264
- "module",
265
- "month",
266
- "multiset",
267
- "national",
268
- "natural",
269
- "nchar",
270
- "nclob",
271
- "new",
272
- "no",
273
- "none",
274
- "normalize",
275
- "not",
276
- "nth_value",
277
- "ntile",
278
- "null",
279
- "nullif",
280
- "numeric",
281
- "octet_length",
282
- "occurrences_regex",
283
- "of",
284
- "offset",
285
- "old",
286
- "omit",
287
- "on",
288
- "one",
289
- "only",
290
- "open",
291
- "or",
292
- "order",
293
- "out",
294
- "outer",
295
- "over",
296
- "overlaps",
297
- "overlay",
298
- "parameter",
299
- "partition",
300
- "pattern",
301
- "per",
302
- "percent",
303
- "percent_rank",
304
- "percentile_cont",
305
- "percentile_disc",
306
- "period",
307
- "portion",
308
- "position",
309
- "position_regex",
310
- "power",
311
- "precedes",
312
- "precision",
313
- "prepare",
314
- "primary",
315
- "procedure",
316
- "ptf",
317
- "range",
318
- "rank",
319
- "reads",
320
- "real",
321
- "recursive",
322
- "ref",
323
- "references",
324
- "referencing",
325
- "regr_avgx",
326
- "regr_avgy",
327
- "regr_count",
328
- "regr_intercept",
329
- "regr_r2",
330
- "regr_slope",
331
- "regr_sxx",
332
- "regr_sxy",
333
- "regr_syy",
334
- "release",
335
- "result",
336
- "return",
337
- "returns",
338
- "revoke",
339
- "right",
340
- "rollback",
341
- "rollup",
342
- "row",
343
- "row_number",
344
- "rows",
345
- "running",
346
- "savepoint",
347
- "scope",
348
- "scroll",
349
- "search",
350
- "second",
351
- "seek",
352
- "select",
353
- "sensitive",
354
- "session_user",
355
- "set",
356
- "show",
357
- "similar",
358
- "sin",
359
- "sinh",
360
- "skip",
361
- "smallint",
362
- "some",
363
- "specific",
364
- "specifictype",
365
- "sql",
366
- "sqlexception",
367
- "sqlstate",
368
- "sqlwarning",
369
- "sqrt",
370
- "start",
371
- "static",
372
- "stddev_pop",
373
- "stddev_samp",
374
- "submultiset",
375
- "subset",
376
- "substring",
377
- "substring_regex",
378
- "succeeds",
379
- "sum",
380
- "symmetric",
381
- "system",
382
- "system_time",
383
- "system_user",
384
- "table",
385
- "tablesample",
386
- "tan",
387
- "tanh",
388
- "then",
389
- "time",
390
- "timestamp",
391
- "timezone_hour",
392
- "timezone_minute",
393
- "to",
394
- "trailing",
395
- "translate",
396
- "translate_regex",
397
- "translation",
398
- "treat",
399
- "trigger",
400
- "trim",
401
- "trim_array",
402
- "true",
403
- "truncate",
404
- "uescape",
405
- "union",
406
- "unique",
407
- "unknown",
408
- "unnest",
409
- "update",
410
- "upper",
411
- "user",
412
- "using",
413
- "value",
414
- "values",
415
- "value_of",
416
- "var_pop",
417
- "var_samp",
418
- "varbinary",
419
- "varchar",
420
- "varying",
421
- "versioning",
422
- "when",
423
- "whenever",
424
- "where",
425
- "width_bucket",
426
- "window",
427
- "with",
428
- "within",
429
- "without",
430
- "year"
431
- ], s = [
432
- "abs",
433
- "acos",
434
- "array_agg",
435
- "asin",
436
- "atan",
437
- "avg",
438
- "cast",
439
- "ceil",
440
- "ceiling",
441
- "coalesce",
442
- "corr",
443
- "cos",
444
- "cosh",
445
- "count",
446
- "covar_pop",
447
- "covar_samp",
448
- "cume_dist",
449
- "dense_rank",
450
- "deref",
451
- "element",
452
- "exp",
453
- "extract",
454
- "first_value",
455
- "floor",
456
- "json_array",
457
- "json_arrayagg",
458
- "json_exists",
459
- "json_object",
460
- "json_objectagg",
461
- "json_query",
462
- "json_table",
463
- "json_table_primitive",
464
- "json_value",
465
- "lag",
466
- "last_value",
467
- "lead",
468
- "listagg",
469
- "ln",
470
- "log",
471
- "log10",
472
- "lower",
473
- "max",
474
- "min",
475
- "mod",
476
- "nth_value",
477
- "ntile",
478
- "nullif",
479
- "percent_rank",
480
- "percentile_cont",
481
- "percentile_disc",
482
- "position",
483
- "position_regex",
484
- "power",
485
- "rank",
486
- "regr_avgx",
487
- "regr_avgy",
488
- "regr_count",
489
- "regr_intercept",
490
- "regr_r2",
491
- "regr_slope",
492
- "regr_sxx",
493
- "regr_sxy",
494
- "regr_syy",
495
- "row_number",
496
- "sin",
497
- "sinh",
498
- "sqrt",
499
- "stddev_pop",
500
- "stddev_samp",
501
- "substring",
502
- "substring_regex",
503
- "sum",
504
- "tan",
505
- "tanh",
506
- "translate",
507
- "translate_regex",
508
- "treat",
509
- "trim",
510
- "trim_array",
511
- "unnest",
512
- "upper",
513
- "value_of",
514
- "var_pop",
515
- "var_samp",
516
- "width_bucket"
517
- ], h = [
518
- "current_catalog",
519
- "current_date",
520
- "current_default_transform_group",
521
- "current_path",
522
- "current_role",
523
- "current_schema",
524
- "current_transform_group_for_type",
525
- "current_user",
526
- "session_user",
527
- "system_time",
528
- "system_user",
529
- "current_time",
530
- "localtime",
531
- "current_timestamp",
532
- "localtimestamp"
533
- ], b = [
534
- "create table",
535
- "insert into",
536
- "primary key",
537
- "foreign key",
538
- "not null",
539
- "alter table",
540
- "add constraint",
541
- "grouping sets",
542
- "on overflow",
543
- "character set",
544
- "respect nulls",
545
- "ignore nulls",
546
- "nulls first",
547
- "nulls last",
548
- "depth first",
549
- "breadth first"
550
- ], o = s, f = [
551
- ...d,
552
- ...p
553
- ].filter((e) => !s.includes(e)), v = {
554
- scope: "variable",
555
- match: /@[a-z0-9][a-z0-9_]*/
556
- }, y = {
557
- scope: "operator",
558
- match: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
559
- relevance: 0
560
- }, w = {
561
- match: a.concat(/\b/, a.either(...o), /\s*\(/),
562
- relevance: 0,
563
- keywords: { built_in: o }
564
- };
565
- function i(e) {
566
- return a.concat(
567
- /\b/,
568
- a.either(...e.map((t) => t.replace(/\s+/, "\\s+"))),
569
- /\b/
570
- );
571
- }
572
- const x = {
573
- scope: "keyword",
574
- match: i(b),
575
- relevance: 0
576
- };
577
- function E(e, {
578
- exceptions: t,
579
- when: k
580
- } = {}) {
581
- const O = k;
582
- return t = t || [], e.map((r) => r.match(/\|\d+$/) || t.includes(r) ? r : O(r) ? `${r}|0` : r);
583
- }
584
- return {
585
- name: "SQL",
586
- case_insensitive: !0,
587
- // does not include {} or HTML tags `</`
588
- illegal: /[{}]|<\//,
589
- keywords: {
590
- $pattern: /\b[\w\.]+/,
591
- keyword: E(f, { when: (e) => e.length < 3 }),
592
- literal: u,
593
- type: m,
594
- built_in: h
595
- },
596
- contains: [
597
- {
598
- scope: "type",
599
- match: i(g)
600
- },
601
- x,
602
- w,
603
- v,
604
- l,
605
- _,
606
- n.C_NUMBER_MODE,
607
- n.C_BLOCK_COMMENT_MODE,
608
- c,
609
- y
610
- ]
611
- };
612
- }
613
- export {
614
- j as default
615
- };