@lark-apaas/fullstack-vite-preset 1.0.1-alpha.0

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 (71) hide show
  1. package/README.md +121 -0
  2. package/lib/index.d.ts +39 -0
  3. package/lib/index.d.ts.map +1 -0
  4. package/lib/index.js +75 -0
  5. package/lib/index.js.map +1 -0
  6. package/lib/module-alias/clsx.d.ts +4 -0
  7. package/lib/module-alias/clsx.d.ts.map +1 -0
  8. package/lib/module-alias/clsx.js +13 -0
  9. package/lib/module-alias/clsx.js.map +1 -0
  10. package/lib/module-alias/echarts.d.ts +4 -0
  11. package/lib/module-alias/echarts.d.ts.map +1 -0
  12. package/lib/module-alias/echarts.js +50 -0
  13. package/lib/module-alias/echarts.js.map +1 -0
  14. package/lib/module-alias/registry_echarts_theme.d.ts +696 -0
  15. package/lib/module-alias/registry_echarts_theme.d.ts.map +1 -0
  16. package/lib/module-alias/registry_echarts_theme.js +394 -0
  17. package/lib/module-alias/registry_echarts_theme.js.map +1 -0
  18. package/lib/preset.d.ts +14 -0
  19. package/lib/preset.d.ts.map +1 -0
  20. package/lib/preset.js +283 -0
  21. package/lib/preset.js.map +1 -0
  22. package/lib/utils/hmr-timing.d.ts +8 -0
  23. package/lib/utils/hmr-timing.d.ts.map +1 -0
  24. package/lib/utils/hmr-timing.js +132 -0
  25. package/lib/utils/hmr-timing.js.map +1 -0
  26. package/lib/utils/normalize-base-path.d.ts +7 -0
  27. package/lib/utils/normalize-base-path.d.ts.map +1 -0
  28. package/lib/utils/normalize-base-path.js +15 -0
  29. package/lib/utils/normalize-base-path.js.map +1 -0
  30. package/lib/utils/snapdom-proxy.d.ts +8 -0
  31. package/lib/utils/snapdom-proxy.d.ts.map +1 -0
  32. package/lib/utils/snapdom-proxy.js +52 -0
  33. package/lib/utils/snapdom-proxy.js.map +1 -0
  34. package/lib/vite-plugins/html-output-plugin.d.ts +14 -0
  35. package/lib/vite-plugins/html-output-plugin.d.ts.map +1 -0
  36. package/lib/vite-plugins/html-output-plugin.js +129 -0
  37. package/lib/vite-plugins/html-output-plugin.js.map +1 -0
  38. package/lib/vite-plugins/inspector-css-plugin.d.ts +19 -0
  39. package/lib/vite-plugins/inspector-css-plugin.d.ts.map +1 -0
  40. package/lib/vite-plugins/inspector-css-plugin.js +70 -0
  41. package/lib/vite-plugins/inspector-css-plugin.js.map +1 -0
  42. package/lib/vite-plugins/module-alias-plugin.d.ts +10 -0
  43. package/lib/vite-plugins/module-alias-plugin.d.ts.map +1 -0
  44. package/lib/vite-plugins/module-alias-plugin.js +36 -0
  45. package/lib/vite-plugins/module-alias-plugin.js.map +1 -0
  46. package/lib/vite-plugins/og-meta-plugin.d.ts +17 -0
  47. package/lib/vite-plugins/og-meta-plugin.d.ts.map +1 -0
  48. package/lib/vite-plugins/og-meta-plugin.js +81 -0
  49. package/lib/vite-plugins/og-meta-plugin.js.map +1 -0
  50. package/lib/vite-plugins/route-parser-plugin.d.ts +8 -0
  51. package/lib/vite-plugins/route-parser-plugin.d.ts.map +1 -0
  52. package/lib/vite-plugins/route-parser-plugin.js +280 -0
  53. package/lib/vite-plugins/route-parser-plugin.js.map +1 -0
  54. package/lib/vite-plugins/runtime-injection-plugin.d.ts +22 -0
  55. package/lib/vite-plugins/runtime-injection-plugin.d.ts.map +1 -0
  56. package/lib/vite-plugins/runtime-injection-plugin.js +50 -0
  57. package/lib/vite-plugins/runtime-injection-plugin.js.map +1 -0
  58. package/lib/vite-plugins/slardar-plugin.d.ts +10 -0
  59. package/lib/vite-plugins/slardar-plugin.d.ts.map +1 -0
  60. package/lib/vite-plugins/slardar-plugin.js +98 -0
  61. package/lib/vite-plugins/slardar-plugin.js.map +1 -0
  62. package/lib/vite-plugins/view-context-plugin.d.ts +4 -0
  63. package/lib/vite-plugins/view-context-plugin.d.ts.map +1 -0
  64. package/lib/vite-plugins/view-context-plugin.js +40 -0
  65. package/lib/vite-plugins/view-context-plugin.js.map +1 -0
  66. package/package.json +57 -0
  67. package/src/empty.css +1 -0
  68. package/src/inspector-stub.js +6 -0
  69. package/src/module-alias/clsx.mjs +8 -0
  70. package/src/module-alias/echarts.mjs +28 -0
  71. package/src/module-alias/registry_echarts_theme.mjs +390 -0
@@ -0,0 +1,696 @@
1
+ /**
2
+ * Get the value of a CSS variable and convert it to sRGB color space hex string
3
+ * @param varName CSS variable name
4
+ * @param element Optional element, defaults to document.body
5
+ * @returns sRGB color space hex string
6
+ */
7
+ export declare function getCssVariable(varName: string, element?: HTMLElement): string;
8
+ export declare function generateEChartsTheme(element?: HTMLElement): {
9
+ color: string[];
10
+ backgroundColor: string;
11
+ textStyle: {
12
+ color: string;
13
+ };
14
+ title: {
15
+ textStyle: {
16
+ color: string;
17
+ };
18
+ subtextStyle: {
19
+ color: string;
20
+ };
21
+ };
22
+ line: {
23
+ itemStyle: {
24
+ borderWidth: number;
25
+ };
26
+ lineStyle: {
27
+ width: number;
28
+ };
29
+ symbolSize: number;
30
+ symbol: string;
31
+ smooth: boolean;
32
+ };
33
+ radar: {
34
+ itemStyle: {
35
+ borderWidth: number;
36
+ };
37
+ lineStyle: {
38
+ width: number;
39
+ };
40
+ symbolSize: number;
41
+ symbol: string;
42
+ smooth: boolean;
43
+ };
44
+ bar: {
45
+ itemStyle: {
46
+ barBorderWidth: number;
47
+ barBorderColor: string;
48
+ };
49
+ };
50
+ pie: {
51
+ itemStyle: {
52
+ borderWidth: number;
53
+ borderColor: string;
54
+ };
55
+ };
56
+ scatter: {
57
+ itemStyle: {
58
+ borderWidth: number;
59
+ borderColor: string;
60
+ };
61
+ };
62
+ boxplot: {
63
+ itemStyle: {
64
+ borderWidth: number;
65
+ borderColor: string;
66
+ };
67
+ };
68
+ parallel: {
69
+ itemStyle: {
70
+ borderWidth: number;
71
+ borderColor: string;
72
+ };
73
+ };
74
+ sankey: {
75
+ itemStyle: {
76
+ borderWidth: number;
77
+ borderColor: string;
78
+ };
79
+ };
80
+ funnel: {
81
+ itemStyle: {
82
+ borderWidth: number;
83
+ borderColor: string;
84
+ };
85
+ };
86
+ gauge: {
87
+ itemStyle: {
88
+ borderWidth: number;
89
+ borderColor: string;
90
+ };
91
+ };
92
+ candlestick: {
93
+ itemStyle: {
94
+ color: string;
95
+ color0: string;
96
+ borderColor: string;
97
+ borderColor0: string;
98
+ borderWidth: number;
99
+ };
100
+ };
101
+ graph: {
102
+ itemStyle: {
103
+ borderWidth: number;
104
+ borderColor: string;
105
+ };
106
+ lineStyle: {
107
+ width: number;
108
+ color: string;
109
+ };
110
+ symbolSize: number;
111
+ symbol: string;
112
+ smooth: boolean;
113
+ color: string[];
114
+ label: {
115
+ color: string;
116
+ };
117
+ };
118
+ map: {
119
+ itemStyle: {
120
+ areaColor: string;
121
+ borderColor: string;
122
+ borderWidth: number;
123
+ };
124
+ label: {
125
+ color: string;
126
+ };
127
+ emphasis: {
128
+ itemStyle: {
129
+ areaColor: string;
130
+ borderColor: string;
131
+ borderWidth: number;
132
+ };
133
+ label: {
134
+ color: string;
135
+ };
136
+ };
137
+ };
138
+ geo: {
139
+ itemStyle: {
140
+ areaColor: string;
141
+ borderColor: string;
142
+ borderWidth: number;
143
+ };
144
+ label: {
145
+ color: string;
146
+ };
147
+ emphasis: {
148
+ itemStyle: {
149
+ areaColor: string;
150
+ borderColor: string;
151
+ borderWidth: number;
152
+ };
153
+ label: {
154
+ color: string;
155
+ };
156
+ };
157
+ };
158
+ categoryAxis: {
159
+ axisLine: {
160
+ show: boolean;
161
+ lineStyle: {
162
+ color: string;
163
+ };
164
+ };
165
+ axisTick: {
166
+ show: boolean;
167
+ lineStyle: {
168
+ color: string;
169
+ };
170
+ };
171
+ axisLabel: {
172
+ show: boolean;
173
+ color: string;
174
+ };
175
+ splitLine: {
176
+ show: boolean;
177
+ lineStyle: {
178
+ color: string[];
179
+ };
180
+ };
181
+ splitArea: {
182
+ show: boolean;
183
+ };
184
+ };
185
+ valueAxis: {
186
+ axisLine: {
187
+ show: boolean;
188
+ lineStyle: {
189
+ color: string;
190
+ };
191
+ };
192
+ axisTick: {
193
+ show: boolean;
194
+ lineStyle: {
195
+ color: string;
196
+ };
197
+ };
198
+ axisLabel: {
199
+ show: boolean;
200
+ color: string;
201
+ };
202
+ splitLine: {
203
+ show: boolean;
204
+ lineStyle: {
205
+ color: string[];
206
+ };
207
+ };
208
+ splitArea: {
209
+ show: boolean;
210
+ };
211
+ };
212
+ logAxis: {
213
+ axisLine: {
214
+ show: boolean;
215
+ lineStyle: {
216
+ color: string;
217
+ };
218
+ };
219
+ axisTick: {
220
+ show: boolean;
221
+ lineStyle: {
222
+ color: string;
223
+ };
224
+ };
225
+ axisLabel: {
226
+ show: boolean;
227
+ color: string;
228
+ };
229
+ splitLine: {
230
+ show: boolean;
231
+ lineStyle: {
232
+ color: string[];
233
+ };
234
+ };
235
+ splitArea: {
236
+ show: boolean;
237
+ };
238
+ };
239
+ timeAxis: {
240
+ axisLine: {
241
+ show: boolean;
242
+ lineStyle: {
243
+ color: string;
244
+ };
245
+ };
246
+ axisTick: {
247
+ show: boolean;
248
+ lineStyle: {
249
+ color: string;
250
+ };
251
+ };
252
+ axisLabel: {
253
+ show: boolean;
254
+ color: string;
255
+ };
256
+ splitLine: {
257
+ show: boolean;
258
+ lineStyle: {
259
+ color: string[];
260
+ };
261
+ };
262
+ splitArea: {
263
+ show: boolean;
264
+ };
265
+ };
266
+ toolbox: {
267
+ iconStyle: {
268
+ borderColor: string;
269
+ };
270
+ emphasis: {
271
+ iconStyle: {
272
+ borderColor: string;
273
+ };
274
+ };
275
+ };
276
+ legend: {
277
+ textStyle: {
278
+ color: string;
279
+ };
280
+ };
281
+ tooltip: {
282
+ axisPointer: {
283
+ lineStyle: {
284
+ color: string;
285
+ width: number;
286
+ };
287
+ crossStyle: {
288
+ color: string;
289
+ width: number;
290
+ };
291
+ };
292
+ };
293
+ timeline: {
294
+ lineStyle: {
295
+ color: string;
296
+ width: number;
297
+ };
298
+ itemStyle: {
299
+ color: string;
300
+ borderWidth: number;
301
+ };
302
+ controlStyle: {
303
+ color: string;
304
+ borderColor: string;
305
+ borderWidth: number;
306
+ };
307
+ checkpointStyle: {
308
+ color: string;
309
+ borderColor: string;
310
+ };
311
+ label: {
312
+ color: string;
313
+ };
314
+ emphasis: {
315
+ itemStyle: {
316
+ color: string;
317
+ };
318
+ controlStyle: {
319
+ color: string;
320
+ borderColor: string;
321
+ borderWidth: number;
322
+ };
323
+ label: {
324
+ color: string;
325
+ };
326
+ };
327
+ };
328
+ visualMap: {
329
+ color: string[];
330
+ };
331
+ dataZoom: {
332
+ backgroundColor: string;
333
+ dataBackgroundColor: string;
334
+ fillerColor: string;
335
+ handleColor: string;
336
+ handleSize: string;
337
+ textStyle: {
338
+ color: string;
339
+ };
340
+ };
341
+ markPoint: {
342
+ label: {
343
+ color: string;
344
+ };
345
+ emphasis: {
346
+ label: {
347
+ color: string;
348
+ };
349
+ };
350
+ };
351
+ };
352
+ export declare function getShadcnEChartsTheme(): {
353
+ color: string[];
354
+ backgroundColor: string;
355
+ textStyle: {
356
+ color: string;
357
+ };
358
+ title: {
359
+ textStyle: {
360
+ color: string;
361
+ };
362
+ subtextStyle: {
363
+ color: string;
364
+ };
365
+ };
366
+ line: {
367
+ itemStyle: {
368
+ borderWidth: number;
369
+ };
370
+ lineStyle: {
371
+ width: number;
372
+ };
373
+ symbolSize: number;
374
+ symbol: string;
375
+ smooth: boolean;
376
+ };
377
+ radar: {
378
+ itemStyle: {
379
+ borderWidth: number;
380
+ };
381
+ lineStyle: {
382
+ width: number;
383
+ };
384
+ symbolSize: number;
385
+ symbol: string;
386
+ smooth: boolean;
387
+ };
388
+ bar: {
389
+ itemStyle: {
390
+ barBorderWidth: number;
391
+ barBorderColor: string;
392
+ };
393
+ };
394
+ pie: {
395
+ itemStyle: {
396
+ borderWidth: number;
397
+ borderColor: string;
398
+ };
399
+ };
400
+ scatter: {
401
+ itemStyle: {
402
+ borderWidth: number;
403
+ borderColor: string;
404
+ };
405
+ };
406
+ boxplot: {
407
+ itemStyle: {
408
+ borderWidth: number;
409
+ borderColor: string;
410
+ };
411
+ };
412
+ parallel: {
413
+ itemStyle: {
414
+ borderWidth: number;
415
+ borderColor: string;
416
+ };
417
+ };
418
+ sankey: {
419
+ itemStyle: {
420
+ borderWidth: number;
421
+ borderColor: string;
422
+ };
423
+ };
424
+ funnel: {
425
+ itemStyle: {
426
+ borderWidth: number;
427
+ borderColor: string;
428
+ };
429
+ };
430
+ gauge: {
431
+ itemStyle: {
432
+ borderWidth: number;
433
+ borderColor: string;
434
+ };
435
+ };
436
+ candlestick: {
437
+ itemStyle: {
438
+ color: string;
439
+ color0: string;
440
+ borderColor: string;
441
+ borderColor0: string;
442
+ borderWidth: number;
443
+ };
444
+ };
445
+ graph: {
446
+ itemStyle: {
447
+ borderWidth: number;
448
+ borderColor: string;
449
+ };
450
+ lineStyle: {
451
+ width: number;
452
+ color: string;
453
+ };
454
+ symbolSize: number;
455
+ symbol: string;
456
+ smooth: boolean;
457
+ color: string[];
458
+ label: {
459
+ color: string;
460
+ };
461
+ };
462
+ map: {
463
+ itemStyle: {
464
+ areaColor: string;
465
+ borderColor: string;
466
+ borderWidth: number;
467
+ };
468
+ label: {
469
+ color: string;
470
+ };
471
+ emphasis: {
472
+ itemStyle: {
473
+ areaColor: string;
474
+ borderColor: string;
475
+ borderWidth: number;
476
+ };
477
+ label: {
478
+ color: string;
479
+ };
480
+ };
481
+ };
482
+ geo: {
483
+ itemStyle: {
484
+ areaColor: string;
485
+ borderColor: string;
486
+ borderWidth: number;
487
+ };
488
+ label: {
489
+ color: string;
490
+ };
491
+ emphasis: {
492
+ itemStyle: {
493
+ areaColor: string;
494
+ borderColor: string;
495
+ borderWidth: number;
496
+ };
497
+ label: {
498
+ color: string;
499
+ };
500
+ };
501
+ };
502
+ categoryAxis: {
503
+ axisLine: {
504
+ show: boolean;
505
+ lineStyle: {
506
+ color: string;
507
+ };
508
+ };
509
+ axisTick: {
510
+ show: boolean;
511
+ lineStyle: {
512
+ color: string;
513
+ };
514
+ };
515
+ axisLabel: {
516
+ show: boolean;
517
+ color: string;
518
+ };
519
+ splitLine: {
520
+ show: boolean;
521
+ lineStyle: {
522
+ color: string[];
523
+ };
524
+ };
525
+ splitArea: {
526
+ show: boolean;
527
+ };
528
+ };
529
+ valueAxis: {
530
+ axisLine: {
531
+ show: boolean;
532
+ lineStyle: {
533
+ color: string;
534
+ };
535
+ };
536
+ axisTick: {
537
+ show: boolean;
538
+ lineStyle: {
539
+ color: string;
540
+ };
541
+ };
542
+ axisLabel: {
543
+ show: boolean;
544
+ color: string;
545
+ };
546
+ splitLine: {
547
+ show: boolean;
548
+ lineStyle: {
549
+ color: string[];
550
+ };
551
+ };
552
+ splitArea: {
553
+ show: boolean;
554
+ };
555
+ };
556
+ logAxis: {
557
+ axisLine: {
558
+ show: boolean;
559
+ lineStyle: {
560
+ color: string;
561
+ };
562
+ };
563
+ axisTick: {
564
+ show: boolean;
565
+ lineStyle: {
566
+ color: string;
567
+ };
568
+ };
569
+ axisLabel: {
570
+ show: boolean;
571
+ color: string;
572
+ };
573
+ splitLine: {
574
+ show: boolean;
575
+ lineStyle: {
576
+ color: string[];
577
+ };
578
+ };
579
+ splitArea: {
580
+ show: boolean;
581
+ };
582
+ };
583
+ timeAxis: {
584
+ axisLine: {
585
+ show: boolean;
586
+ lineStyle: {
587
+ color: string;
588
+ };
589
+ };
590
+ axisTick: {
591
+ show: boolean;
592
+ lineStyle: {
593
+ color: string;
594
+ };
595
+ };
596
+ axisLabel: {
597
+ show: boolean;
598
+ color: string;
599
+ };
600
+ splitLine: {
601
+ show: boolean;
602
+ lineStyle: {
603
+ color: string[];
604
+ };
605
+ };
606
+ splitArea: {
607
+ show: boolean;
608
+ };
609
+ };
610
+ toolbox: {
611
+ iconStyle: {
612
+ borderColor: string;
613
+ };
614
+ emphasis: {
615
+ iconStyle: {
616
+ borderColor: string;
617
+ };
618
+ };
619
+ };
620
+ legend: {
621
+ textStyle: {
622
+ color: string;
623
+ };
624
+ };
625
+ tooltip: {
626
+ axisPointer: {
627
+ lineStyle: {
628
+ color: string;
629
+ width: number;
630
+ };
631
+ crossStyle: {
632
+ color: string;
633
+ width: number;
634
+ };
635
+ };
636
+ };
637
+ timeline: {
638
+ lineStyle: {
639
+ color: string;
640
+ width: number;
641
+ };
642
+ itemStyle: {
643
+ color: string;
644
+ borderWidth: number;
645
+ };
646
+ controlStyle: {
647
+ color: string;
648
+ borderColor: string;
649
+ borderWidth: number;
650
+ };
651
+ checkpointStyle: {
652
+ color: string;
653
+ borderColor: string;
654
+ };
655
+ label: {
656
+ color: string;
657
+ };
658
+ emphasis: {
659
+ itemStyle: {
660
+ color: string;
661
+ };
662
+ controlStyle: {
663
+ color: string;
664
+ borderColor: string;
665
+ borderWidth: number;
666
+ };
667
+ label: {
668
+ color: string;
669
+ };
670
+ };
671
+ };
672
+ visualMap: {
673
+ color: string[];
674
+ };
675
+ dataZoom: {
676
+ backgroundColor: string;
677
+ dataBackgroundColor: string;
678
+ fillerColor: string;
679
+ handleColor: string;
680
+ handleSize: string;
681
+ textStyle: {
682
+ color: string;
683
+ };
684
+ };
685
+ markPoint: {
686
+ label: {
687
+ color: string;
688
+ };
689
+ emphasis: {
690
+ label: {
691
+ color: string;
692
+ };
693
+ };
694
+ };
695
+ };
696
+ //# sourceMappingURL=registry_echarts_theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry_echarts_theme.d.ts","sourceRoot":"","sources":["../../src/module-alias/registry_echarts_theme.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,cAAgB,GAAG,MAAM,CAS/E;AAGD,wBAAgB,oBAAoB,CAAC,OAAO,cAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2W3D;AAGD,wBAAgB,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGpC"}