@univerjs-pro/shape-editor-ui 1.0.0-alpha.6 → 1.0.0-alpha.8

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 (103) hide show
  1. package/lib/cjs/formula-shape-en-us-B0fVf3OO.js +1 -0
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/formula-shape-en-us-BbvC914f.js +1 -0
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/formula-shape-en-us-BbvC914f.js +1 -0
  44. package/lib/index.css +206 -40
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/common/formula-shape-en-us.d.ts +44 -0
  66. package/lib/types/config/config.d.ts +39 -0
  67. package/lib/types/index.d.ts +16 -1
  68. package/lib/types/locale/en-US.d.ts +78 -1
  69. package/lib/types/services/formula-binding-editor.d.ts +23 -0
  70. package/lib/types/services/formula-binding-reference.d.ts +15 -0
  71. package/lib/types/services/formula-binding-unit-viewer.service.d.ts +67 -0
  72. package/lib/types/utils/activate-drawing-object.d.ts +1 -1
  73. package/lib/types/views/FormulaBindingEditorDialog.d.ts +11 -0
  74. package/lib/types/views/FormulaBindingNumberFormat.d.ts +23 -0
  75. package/lib/types/views/formula-binding-number-format-utils.d.ts +17 -0
  76. package/lib/types/views/formula-shape/UseFormulaShapeToolbar.d.ts +13 -0
  77. package/lib/types/views/formula-shape/formula-shape-animation.d.ts +33 -0
  78. package/lib/types/views/formula-shape/formula-shape-auto-fit.d.ts +15 -0
  79. package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +23 -14
  80. package/lib/types/views/shape-text-editor/ShapeTextPositionWrapper.d.ts +1 -1
  81. package/lib/types/views/shape-text-editor/shape-text-behavior.d.ts +0 -3
  82. package/lib/types/views/shape-text-editor/shape-text-placeholder.d.ts +1 -0
  83. package/lib/umd/index.js +1 -1
  84. package/lib/umd/locale/ar-SA.js +1 -1
  85. package/lib/umd/locale/ca-ES.js +1 -1
  86. package/lib/umd/locale/de-DE.js +1 -1
  87. package/lib/umd/locale/en-US.js +1 -1
  88. package/lib/umd/locale/es-ES.js +1 -1
  89. package/lib/umd/locale/fa-IR.js +1 -1
  90. package/lib/umd/locale/fr-FR.js +1 -1
  91. package/lib/umd/locale/id-ID.js +1 -1
  92. package/lib/umd/locale/it-IT.js +1 -1
  93. package/lib/umd/locale/ja-JP.js +1 -1
  94. package/lib/umd/locale/ko-KR.js +1 -1
  95. package/lib/umd/locale/pl-PL.js +1 -1
  96. package/lib/umd/locale/pt-BR.js +1 -1
  97. package/lib/umd/locale/ru-RU.js +1 -1
  98. package/lib/umd/locale/sk-SK.js +1 -1
  99. package/lib/umd/locale/vi-VN.js +1 -1
  100. package/lib/umd/locale/zh-CN.js +1 -1
  101. package/lib/umd/locale/zh-HK.js +1 -1
  102. package/lib/umd/locale/zh-TW.js +1 -1
  103. package/package.json +25 -12
package/lib/index.css CHANGED
@@ -10,8 +10,11 @@
10
10
  position: relative;
11
11
  }
12
12
 
13
- .-univer-top-3 {
14
- top: -.75rem;
13
+ .univer-inset-0 {
14
+ top: 0;
15
+ bottom: 0;
16
+ left: 0;
17
+ right: 0;
15
18
  }
16
19
 
17
20
  .univer-bottom-full {
@@ -22,8 +25,8 @@
22
25
  left: 0;
23
26
  }
24
27
 
25
- .univer-left-1\/2 {
26
- left: 50%;
28
+ .univer-top-full {
29
+ top: 100%;
27
30
  }
28
31
 
29
32
  .univer-z-10 {
@@ -39,6 +42,11 @@
39
42
  margin-right: auto;
40
43
  }
41
44
 
45
+ .univer-my-1 {
46
+ margin-top: .25rem;
47
+ margin-bottom: .25rem;
48
+ }
49
+
42
50
  .univer-mb-1 {
43
51
  margin-bottom: .25rem;
44
52
  }
@@ -47,6 +55,10 @@
47
55
  margin-bottom: .5rem;
48
56
  }
49
57
 
58
+ .univer-ml-2 {
59
+ margin-left: .5rem;
60
+ }
61
+
50
62
  .univer-ml-auto {
51
63
  margin-left: auto;
52
64
  }
@@ -55,10 +67,22 @@
55
67
  margin-right: 1.25rem;
56
68
  }
57
69
 
70
+ .univer-mt-1 {
71
+ margin-top: .25rem;
72
+ }
73
+
58
74
  .univer-mt-2 {
59
75
  margin-top: .5rem;
60
76
  }
61
77
 
78
+ .univer-mt-3 {
79
+ margin-top: .75rem;
80
+ }
81
+
82
+ .univer-mt-4 {
83
+ margin-top: 1rem;
84
+ }
85
+
62
86
  .univer-box-border {
63
87
  box-sizing: border-box;
64
88
  }
@@ -91,6 +115,11 @@
91
115
  aspect-ratio: 1;
92
116
  }
93
117
 
118
+ .univer-size-2 {
119
+ width: .5rem;
120
+ height: .5rem;
121
+ }
122
+
94
123
  .univer-size-4 {
95
124
  width: 1rem;
96
125
  height: 1rem;
@@ -126,8 +155,12 @@
126
155
  height: 3.5rem;
127
156
  }
128
157
 
129
- .univer-h-3 {
130
- height: .75rem;
158
+ .univer-h-2 {
159
+ height: .5rem;
160
+ }
161
+
162
+ .univer-h-28 {
163
+ height: 7rem;
131
164
  }
132
165
 
133
166
  .univer-h-4 {
@@ -154,10 +187,34 @@
154
187
  height: 100px;
155
188
  }
156
189
 
190
+ .univer-h-\[500px\] {
191
+ height: 500px;
192
+ }
193
+
194
+ .univer-h-\[min\(780px\,calc\(100vh-180px\)\)\] {
195
+ height: min(780px, 100vh - 180px);
196
+ }
197
+
198
+ .univer-h-full {
199
+ height: 100%;
200
+ }
201
+
202
+ .\!univer-max-h-none {
203
+ max-height: none !important;
204
+ }
205
+
157
206
  .univer-max-h-\[75vh\] {
158
207
  max-height: 75vh;
159
208
  }
160
209
 
210
+ .univer-min-h-0 {
211
+ min-height: 0;
212
+ }
213
+
214
+ .univer-min-h-\[560px\] {
215
+ min-height: 560px;
216
+ }
217
+
161
218
  .univer-w-0 {
162
219
  width: 0;
163
220
  }
@@ -178,18 +235,10 @@
178
235
  width: 3.5rem;
179
236
  }
180
237
 
181
- .univer-w-16 {
182
- width: 4rem;
183
- }
184
-
185
238
  .univer-w-20 {
186
239
  width: 5rem;
187
240
  }
188
241
 
189
- .univer-w-24 {
190
- width: 6rem;
191
- }
192
-
193
242
  .univer-w-28 {
194
243
  width: 7rem;
195
244
  }
@@ -202,8 +251,12 @@
202
251
  width: 1rem;
203
252
  }
204
253
 
205
- .univer-w-40 {
206
- width: 10rem;
254
+ .univer-w-44 {
255
+ width: 11rem;
256
+ }
257
+
258
+ .univer-w-52 {
259
+ width: 13rem;
207
260
  }
208
261
 
209
262
  .univer-w-6 {
@@ -214,6 +267,10 @@
214
267
  width: 1.75rem;
215
268
  }
216
269
 
270
+ .univer-w-72 {
271
+ width: 18rem;
272
+ }
273
+
217
274
  .univer-w-8 {
218
275
  width: 2rem;
219
276
  }
@@ -262,10 +319,6 @@
262
319
  min-width: 8rem;
263
320
  }
264
321
 
265
- .univer-min-w-40 {
266
- min-width: 10rem;
267
- }
268
-
269
322
  .univer-min-w-44 {
270
323
  min-width: 11rem;
271
324
  }
@@ -298,19 +351,13 @@
298
351
  flex-shrink: 0;
299
352
  }
300
353
 
301
- .-univer-translate-x-1\/2 {
302
- --univer-tw-translate-x: -50%;
303
- transform: translate(-50%, var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
304
- transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
305
- }
306
-
307
354
  .-univer-translate-y-1 {
308
355
  --univer-tw-translate-y: -.25rem;
309
356
  transform: translate(var(--univer-tw-translate-x), -.25rem) rotate(var(--univer-tw-rotate)) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
310
357
  transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
311
358
  }
312
359
 
313
- .-univer-rotate-90, .univer--rotate-90 {
360
+ .-univer-rotate-90 {
314
361
  --univer-tw-rotate: -90deg;
315
362
  transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(-90deg) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
316
363
  transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
@@ -340,6 +387,10 @@
340
387
  user-select: none;
341
388
  }
342
389
 
390
+ .univer-resize-none {
391
+ resize: none;
392
+ }
393
+
343
394
  .univer-appearance-none {
344
395
  -webkit-appearance: none;
345
396
  appearance: none;
@@ -373,6 +424,10 @@
373
424
  align-items: center;
374
425
  }
375
426
 
427
+ .univer-justify-end {
428
+ justify-content: flex-end;
429
+ }
430
+
376
431
  .univer-justify-center {
377
432
  justify-content: center;
378
433
  }
@@ -405,6 +460,10 @@
405
460
  gap: 1rem;
406
461
  }
407
462
 
463
+ .univer-gap-6 {
464
+ gap: 1.5rem;
465
+ }
466
+
408
467
  .univer-gap-8 {
409
468
  gap: 2rem;
410
469
  }
@@ -425,10 +484,24 @@
425
484
  overflow-y: auto;
426
485
  }
427
486
 
487
+ .univer-truncate {
488
+ text-overflow: ellipsis;
489
+ white-space: nowrap;
490
+ overflow: hidden;
491
+ }
492
+
428
493
  .univer-whitespace-nowrap {
429
494
  white-space: nowrap;
430
495
  }
431
496
 
497
+ .univer-whitespace-pre-wrap {
498
+ white-space: pre-wrap;
499
+ }
500
+
501
+ .univer-break-words {
502
+ word-wrap: break-word;
503
+ }
504
+
432
505
  .\!univer-rounded-md {
433
506
  border-radius: .375rem !important;
434
507
  }
@@ -473,27 +546,26 @@
473
546
  border-bottom-right-radius: 0;
474
547
  }
475
548
 
476
- .univer-rounded-t-md {
477
- border-top-left-radius: .375rem;
478
- border-top-right-radius: .375rem;
479
- }
480
-
481
549
  .univer-border {
482
550
  border-width: 1px;
483
551
  }
484
552
 
485
- .univer-border-b {
486
- border-bottom-width: 1px;
553
+ .univer-border-0 {
554
+ border-width: 0;
487
555
  }
488
556
 
489
- .univer-border-b-0 {
490
- border-bottom-width: 0;
557
+ .univer-border-b {
558
+ border-bottom-width: 1px;
491
559
  }
492
560
 
493
561
  .univer-border-l-2 {
494
562
  border-left-width: 2px;
495
563
  }
496
564
 
565
+ .univer-border-r {
566
+ border-right-width: 1px;
567
+ }
568
+
497
569
  .univer-border-t-2 {
498
570
  border-top-width: 2px;
499
571
  }
@@ -550,6 +622,10 @@
550
622
  background-color: var(--univer-gray-200);
551
623
  }
552
624
 
625
+ .univer-bg-gray-50 {
626
+ background-color: var(--univer-gray-50);
627
+ }
628
+
553
629
  .univer-bg-primary-50 {
554
630
  background-color: var(--univer-primary-50);
555
631
  }
@@ -558,6 +634,12 @@
558
634
  background-color: var(--univer-primary-600);
559
635
  }
560
636
 
637
+ .univer-bg-red-950 {
638
+ --univer-tw-bg-opacity: 1;
639
+ background-color: #450a0a;
640
+ background-color: rgba(69, 10, 10, var(--univer-tw-bg-opacity, 1));
641
+ }
642
+
561
643
  .univer-bg-transparent {
562
644
  background-color: #0000;
563
645
  }
@@ -583,6 +665,10 @@
583
665
  padding: .25rem;
584
666
  }
585
667
 
668
+ .univer-p-1\.5 {
669
+ padding: .375rem;
670
+ }
671
+
586
672
  .univer-p-2 {
587
673
  padding: .5rem;
588
674
  }
@@ -644,10 +730,18 @@
644
730
  padding-left: .75rem;
645
731
  }
646
732
 
733
+ .univer-pr-3 {
734
+ padding-right: .75rem;
735
+ }
736
+
647
737
  .univer-pt-2 {
648
738
  padding-top: .5rem;
649
739
  }
650
740
 
741
+ .univer-pt-4 {
742
+ padding-top: 1rem;
743
+ }
744
+
651
745
  .univer-text-left {
652
746
  text-align: left;
653
747
  }
@@ -656,6 +750,10 @@
656
750
  text-align: center;
657
751
  }
658
752
 
753
+ .univer-font-mono {
754
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
755
+ }
756
+
659
757
  .univer-text-\[10px\] {
660
758
  font-size: 10px;
661
759
  }
@@ -688,6 +786,14 @@
688
786
  font-weight: 600;
689
787
  }
690
788
 
789
+ .univer-leading-5 {
790
+ line-height: 1.25rem;
791
+ }
792
+
793
+ .univer-leading-6 {
794
+ line-height: 1.5rem;
795
+ }
796
+
691
797
  .univer-leading-none {
692
798
  line-height: 1;
693
799
  }
@@ -696,6 +802,10 @@
696
802
  color: var(--univer-primary-300) !important;
697
803
  }
698
804
 
805
+ .\!univer-text-transparent {
806
+ color: #0000 !important;
807
+ }
808
+
699
809
  .univer-text-gray-400 {
700
810
  color: var(--univer-gray-400);
701
811
  }
@@ -724,6 +834,22 @@
724
834
  color: var(--univer-primary-600);
725
835
  }
726
836
 
837
+ .univer-text-primary-700 {
838
+ color: var(--univer-primary-700);
839
+ }
840
+
841
+ .univer-text-red-500 {
842
+ color: var(--univer-red-500);
843
+ }
844
+
845
+ .univer-text-red-600 {
846
+ color: var(--univer-red-600);
847
+ }
848
+
849
+ .univer-opacity-50 {
850
+ opacity: .5;
851
+ }
852
+
727
853
  .univer-opacity-60 {
728
854
  opacity: .6;
729
855
  }
@@ -763,6 +889,12 @@
763
889
  box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
764
890
  }
765
891
 
892
+ .univer-transition {
893
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
894
+ transition-duration: .15s;
895
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
896
+ }
897
+
766
898
  .univer-transition-colors {
767
899
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
768
900
  transition-duration: .15s;
@@ -775,12 +907,12 @@
775
907
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
776
908
  }
777
909
 
778
- .univer-group:hover .group-hover\:univer-block {
779
- display: block;
910
+ .univer-duration-150 {
911
+ transition-duration: .15s;
780
912
  }
781
913
 
782
- .hover\:univer-border-gray-300:hover {
783
- border-color: var(--univer-gray-300);
914
+ .univer-group:hover .group-hover\:univer-block {
915
+ display: block;
784
916
  }
785
917
 
786
918
  .hover\:univer-border-primary-600:hover {
@@ -799,10 +931,22 @@
799
931
  background-color: var(--univer-gray-50);
800
932
  }
801
933
 
934
+ .hover\:univer-bg-red-50:hover {
935
+ background-color: var(--univer-red-50);
936
+ }
937
+
802
938
  .hover\:univer-text-gray-700:hover {
803
939
  color: var(--univer-gray-700);
804
940
  }
805
941
 
942
+ .hover\:univer-opacity-100:hover {
943
+ opacity: 1;
944
+ }
945
+
946
+ .focus-visible\:univer-opacity-100:focus-visible {
947
+ opacity: 1;
948
+ }
949
+
806
950
  .disabled\:univer-cursor-not-allowed:disabled {
807
951
  cursor: not-allowed;
808
952
  }
@@ -903,6 +1047,10 @@
903
1047
  color: var(--univer-primary-300) !important;
904
1048
  }
905
1049
 
1050
+ .dark\:\!univer-text-red-400:where(.univer-dark, .univer-dark *) {
1051
+ color: var(--univer-red-400) !important;
1052
+ }
1053
+
906
1054
  .dark\:hover\:\!univer-bg-gray-700:hover:where(.univer-dark, .univer-dark *) {
907
1055
  background-color: var(--univer-gray-700) !important;
908
1056
  }
@@ -911,6 +1059,12 @@
911
1059
  background-color: var(--univer-gray-800) !important;
912
1060
  }
913
1061
 
1062
+ .dark\:hover\:univer-bg-red-950:hover:where(.univer-dark, .univer-dark *) {
1063
+ --univer-tw-bg-opacity: 1;
1064
+ background-color: #450a0a;
1065
+ background-color: rgba(69, 10, 10, var(--univer-tw-bg-opacity, 1));
1066
+ }
1067
+
914
1068
  .\[\&\:\:-webkit-slider-thumb\]\:univer-size-3\.5::-webkit-slider-thumb {
915
1069
  width: .875rem;
916
1070
  height: .875rem;
@@ -943,3 +1097,15 @@
943
1097
  .\[\&\>label\]\:univer-gap-1 > label {
944
1098
  gap: .25rem;
945
1099
  }
1100
+
1101
+ .\[\&_input\]\:univer-box-border input {
1102
+ box-sizing: border-box;
1103
+ }
1104
+
1105
+ .\[\&_input\]\:univer-w-full input {
1106
+ width: 100%;
1107
+ }
1108
+
1109
+ .\[\&_input\]\:univer-p-0 input {
1110
+ padding: 0;
1111
+ }