@univerjs-pro/shape-editor-ui 1.0.0-alpha.7 → 1.0.0-beta.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.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +79 -56
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/components/fill-style-tabs-editor/FillStyleTabsEditor.d.ts +2 -0
- package/lib/types/config/config.d.ts +26 -7
- package/lib/types/index.d.ts +22 -6
- package/lib/types/locale/en-US.d.ts +34 -1
- package/lib/types/services/formula-binding-editor.d.ts +23 -0
- package/lib/types/services/{shape-formula-reference.d.ts → formula-binding-reference.d.ts} +4 -4
- package/lib/types/services/{shape-formula-unit-viewer.service.d.ts → formula-binding-unit-viewer.service.d.ts} +10 -10
- package/lib/types/utils/activate-drawing-object.d.ts +1 -1
- package/lib/types/utils/drawing-type-name.d.ts +3 -0
- package/lib/types/views/FormulaBindingEditorDialog.d.ts +11 -0
- package/lib/types/views/FormulaBindingNumberFormat.d.ts +23 -0
- package/lib/types/views/formula-binding-number-format-utils.d.ts +17 -0
- package/lib/types/views/shape-floating-toolbar/ShapeFillControls.d.ts +12 -0
- package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +6 -131
- package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbarPrimitives.d.ts +39 -0
- package/lib/types/views/shape-floating-toolbar/ShapeStrokeControls.d.ts +36 -0
- package/lib/types/views/shape-floating-toolbar/ShapeTextControls.d.ts +30 -0
- package/lib/types/views/shape-floating-toolbar/floating-toolbar-interaction.d.ts +4 -0
- package/lib/types/views/shape-floating-toolbar/shape-floating-toolbar-constants.d.ts +11 -0
- package/lib/types/views/shape-floating-toolbar/shape-floating-toolbar-types.d.ts +12 -0
- package/lib/types/views/shape-text-editor/ShapeTextEditor.d.ts +2 -193
- package/lib/types/views/shape-text-editor/ShapeTextEditorSurface.d.ts +16 -0
- package/lib/types/views/shape-text-editor/ShapeTextPositionWrapper.d.ts +2 -1
- package/lib/types/views/shape-text-editor/shape-text-document.d.ts +17 -2
- package/lib/types/views/shape-text-editor/shape-text-keyboard.d.ts +27 -0
- package/lib/types/views/shape-text-editor/shape-text-layout.d.ts +190 -1
- package/lib/types/views/shape-text-editor/types.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +25 -26
- package/lib/cjs/formula-shape-en-us-B0fVf3OO.js +0 -1
- package/lib/es/formula-shape-en-us-BbvC914f.js +0 -1
- package/lib/formula-shape-en-us-BbvC914f.js +0 -1
- package/lib/types/services/shape-formula-editor.d.ts +0 -20
- package/lib/types/views/formula-shape/FormulaShapeNumberFormat.d.ts +0 -23
- package/lib/types/views/formula-shape/formula-shape-number-format-utils.d.ts +0 -17
package/lib/index.css
CHANGED
|
@@ -11,14 +11,7 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.univer-inset-0 {
|
|
14
|
-
|
|
15
|
-
bottom: 0;
|
|
16
|
-
left: 0;
|
|
17
|
-
right: 0;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.-univer-top-3 {
|
|
21
|
-
top: -.75rem;
|
|
14
|
+
inset: 0;
|
|
22
15
|
}
|
|
23
16
|
|
|
24
17
|
.univer-bottom-full {
|
|
@@ -29,10 +22,6 @@
|
|
|
29
22
|
left: 0;
|
|
30
23
|
}
|
|
31
24
|
|
|
32
|
-
.univer-left-1\/2 {
|
|
33
|
-
left: 50%;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
25
|
.univer-top-full {
|
|
37
26
|
top: 100%;
|
|
38
27
|
}
|
|
@@ -123,6 +112,11 @@
|
|
|
123
112
|
aspect-ratio: 1;
|
|
124
113
|
}
|
|
125
114
|
|
|
115
|
+
.univer-size-2 {
|
|
116
|
+
width: .5rem;
|
|
117
|
+
height: .5rem;
|
|
118
|
+
}
|
|
119
|
+
|
|
126
120
|
.univer-size-4 {
|
|
127
121
|
width: 1rem;
|
|
128
122
|
height: 1rem;
|
|
@@ -158,12 +152,12 @@
|
|
|
158
152
|
height: 3.5rem;
|
|
159
153
|
}
|
|
160
154
|
|
|
161
|
-
.univer-h-
|
|
162
|
-
height:
|
|
155
|
+
.univer-h-2 {
|
|
156
|
+
height: .5rem;
|
|
163
157
|
}
|
|
164
158
|
|
|
165
|
-
.univer-h-
|
|
166
|
-
height:
|
|
159
|
+
.univer-h-28 {
|
|
160
|
+
height: 7rem;
|
|
167
161
|
}
|
|
168
162
|
|
|
169
163
|
.univer-h-4 {
|
|
@@ -238,18 +232,10 @@
|
|
|
238
232
|
width: 3.5rem;
|
|
239
233
|
}
|
|
240
234
|
|
|
241
|
-
.univer-w-16 {
|
|
242
|
-
width: 4rem;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
235
|
.univer-w-20 {
|
|
246
236
|
width: 5rem;
|
|
247
237
|
}
|
|
248
238
|
|
|
249
|
-
.univer-w-24 {
|
|
250
|
-
width: 6rem;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
239
|
.univer-w-28 {
|
|
254
240
|
width: 7rem;
|
|
255
241
|
}
|
|
@@ -262,8 +248,8 @@
|
|
|
262
248
|
width: 1rem;
|
|
263
249
|
}
|
|
264
250
|
|
|
265
|
-
.univer-w-
|
|
266
|
-
width:
|
|
251
|
+
.univer-w-44 {
|
|
252
|
+
width: 11rem;
|
|
267
253
|
}
|
|
268
254
|
|
|
269
255
|
.univer-w-52 {
|
|
@@ -330,10 +316,6 @@
|
|
|
330
316
|
min-width: 8rem;
|
|
331
317
|
}
|
|
332
318
|
|
|
333
|
-
.univer-min-w-40 {
|
|
334
|
-
min-width: 10rem;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
319
|
.univer-min-w-44 {
|
|
338
320
|
min-width: 11rem;
|
|
339
321
|
}
|
|
@@ -366,19 +348,13 @@
|
|
|
366
348
|
flex-shrink: 0;
|
|
367
349
|
}
|
|
368
350
|
|
|
369
|
-
.-univer-translate-x-1\/2 {
|
|
370
|
-
--univer-tw-translate-x: -50%;
|
|
371
|
-
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));
|
|
372
|
-
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));
|
|
373
|
-
}
|
|
374
|
-
|
|
375
351
|
.-univer-translate-y-1 {
|
|
376
352
|
--univer-tw-translate-y: -.25rem;
|
|
377
353
|
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));
|
|
378
354
|
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));
|
|
379
355
|
}
|
|
380
356
|
|
|
381
|
-
.-univer-rotate-90
|
|
357
|
+
.-univer-rotate-90 {
|
|
382
358
|
--univer-tw-rotate: -90deg;
|
|
383
359
|
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));
|
|
384
360
|
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));
|
|
@@ -413,7 +389,6 @@
|
|
|
413
389
|
}
|
|
414
390
|
|
|
415
391
|
.univer-appearance-none {
|
|
416
|
-
-webkit-appearance: none;
|
|
417
392
|
appearance: none;
|
|
418
393
|
}
|
|
419
394
|
|
|
@@ -567,21 +542,16 @@
|
|
|
567
542
|
border-bottom-right-radius: 0;
|
|
568
543
|
}
|
|
569
544
|
|
|
570
|
-
.univer-rounded-t-md {
|
|
571
|
-
border-top-left-radius: .375rem;
|
|
572
|
-
border-top-right-radius: .375rem;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
545
|
.univer-border {
|
|
576
546
|
border-width: 1px;
|
|
577
547
|
}
|
|
578
548
|
|
|
579
|
-
.univer-border-
|
|
580
|
-
border-
|
|
549
|
+
.univer-border-0 {
|
|
550
|
+
border-width: 0;
|
|
581
551
|
}
|
|
582
552
|
|
|
583
|
-
.univer-border-b
|
|
584
|
-
border-bottom-width:
|
|
553
|
+
.univer-border-b {
|
|
554
|
+
border-bottom-width: 1px;
|
|
585
555
|
}
|
|
586
556
|
|
|
587
557
|
.univer-border-l-2 {
|
|
@@ -660,6 +630,12 @@
|
|
|
660
630
|
background-color: var(--univer-primary-600);
|
|
661
631
|
}
|
|
662
632
|
|
|
633
|
+
.univer-bg-red-950 {
|
|
634
|
+
--univer-tw-bg-opacity: 1;
|
|
635
|
+
background-color: #450a0a;
|
|
636
|
+
background-color: rgba(69, 10, 10, var(--univer-tw-bg-opacity, 1));
|
|
637
|
+
}
|
|
638
|
+
|
|
663
639
|
.univer-bg-transparent {
|
|
664
640
|
background-color: #0000;
|
|
665
641
|
}
|
|
@@ -677,10 +653,6 @@
|
|
|
677
653
|
padding: .25rem !important;
|
|
678
654
|
}
|
|
679
655
|
|
|
680
|
-
.\!univer-p-1\.5 {
|
|
681
|
-
padding: .375rem !important;
|
|
682
|
-
}
|
|
683
|
-
|
|
684
656
|
.univer-p-0 {
|
|
685
657
|
padding: 0;
|
|
686
658
|
}
|
|
@@ -689,6 +661,10 @@
|
|
|
689
661
|
padding: .25rem;
|
|
690
662
|
}
|
|
691
663
|
|
|
664
|
+
.univer-p-1\.5 {
|
|
665
|
+
padding: .375rem;
|
|
666
|
+
}
|
|
667
|
+
|
|
692
668
|
.univer-p-2 {
|
|
693
669
|
padding: .5rem;
|
|
694
670
|
}
|
|
@@ -858,6 +834,18 @@
|
|
|
858
834
|
color: var(--univer-primary-700);
|
|
859
835
|
}
|
|
860
836
|
|
|
837
|
+
.univer-text-red-500 {
|
|
838
|
+
color: var(--univer-red-500);
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
.univer-text-red-600 {
|
|
842
|
+
color: var(--univer-red-600);
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
.univer-opacity-50 {
|
|
846
|
+
opacity: .5;
|
|
847
|
+
}
|
|
848
|
+
|
|
861
849
|
.univer-opacity-60 {
|
|
862
850
|
opacity: .6;
|
|
863
851
|
}
|
|
@@ -897,6 +885,12 @@
|
|
|
897
885
|
box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
|
|
898
886
|
}
|
|
899
887
|
|
|
888
|
+
.univer-transition {
|
|
889
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
890
|
+
transition-duration: .15s;
|
|
891
|
+
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
892
|
+
}
|
|
893
|
+
|
|
900
894
|
.univer-transition-colors {
|
|
901
895
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
902
896
|
transition-duration: .15s;
|
|
@@ -909,12 +903,12 @@
|
|
|
909
903
|
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
910
904
|
}
|
|
911
905
|
|
|
912
|
-
.univer-
|
|
913
|
-
|
|
906
|
+
.univer-duration-150 {
|
|
907
|
+
transition-duration: .15s;
|
|
914
908
|
}
|
|
915
909
|
|
|
916
|
-
.
|
|
917
|
-
|
|
910
|
+
.univer-group:hover .group-hover\:univer-block {
|
|
911
|
+
display: block;
|
|
918
912
|
}
|
|
919
913
|
|
|
920
914
|
.hover\:univer-border-primary-600:hover {
|
|
@@ -933,10 +927,18 @@
|
|
|
933
927
|
background-color: var(--univer-gray-50);
|
|
934
928
|
}
|
|
935
929
|
|
|
930
|
+
.hover\:univer-bg-red-50:hover {
|
|
931
|
+
background-color: var(--univer-red-50);
|
|
932
|
+
}
|
|
933
|
+
|
|
936
934
|
.hover\:univer-text-gray-700:hover {
|
|
937
935
|
color: var(--univer-gray-700);
|
|
938
936
|
}
|
|
939
937
|
|
|
938
|
+
.hover\:univer-opacity-100:hover, .focus-visible\:univer-opacity-100:focus-visible {
|
|
939
|
+
opacity: 1;
|
|
940
|
+
}
|
|
941
|
+
|
|
940
942
|
.disabled\:univer-cursor-not-allowed:disabled {
|
|
941
943
|
cursor: not-allowed;
|
|
942
944
|
}
|
|
@@ -1037,6 +1039,10 @@
|
|
|
1037
1039
|
color: var(--univer-primary-300) !important;
|
|
1038
1040
|
}
|
|
1039
1041
|
|
|
1042
|
+
.dark\:\!univer-text-red-400:where(.univer-dark, .univer-dark *) {
|
|
1043
|
+
color: var(--univer-red-400) !important;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1040
1046
|
.dark\:hover\:\!univer-bg-gray-700:hover:where(.univer-dark, .univer-dark *) {
|
|
1041
1047
|
background-color: var(--univer-gray-700) !important;
|
|
1042
1048
|
}
|
|
@@ -1045,13 +1051,18 @@
|
|
|
1045
1051
|
background-color: var(--univer-gray-800) !important;
|
|
1046
1052
|
}
|
|
1047
1053
|
|
|
1054
|
+
.dark\:hover\:univer-bg-red-950:hover:where(.univer-dark, .univer-dark *) {
|
|
1055
|
+
--univer-tw-bg-opacity: 1;
|
|
1056
|
+
background-color: #450a0a;
|
|
1057
|
+
background-color: rgba(69, 10, 10, var(--univer-tw-bg-opacity, 1));
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1048
1060
|
.\[\&\:\:-webkit-slider-thumb\]\:univer-size-3\.5::-webkit-slider-thumb {
|
|
1049
1061
|
width: .875rem;
|
|
1050
1062
|
height: .875rem;
|
|
1051
1063
|
}
|
|
1052
1064
|
|
|
1053
1065
|
.\[\&\:\:-webkit-slider-thumb\]\:univer-appearance-none::-webkit-slider-thumb {
|
|
1054
|
-
-webkit-appearance: none;
|
|
1055
1066
|
appearance: none;
|
|
1056
1067
|
}
|
|
1057
1068
|
|
|
@@ -1077,3 +1088,15 @@
|
|
|
1077
1088
|
.\[\&\>label\]\:univer-gap-1 > label {
|
|
1078
1089
|
gap: .25rem;
|
|
1079
1090
|
}
|
|
1091
|
+
|
|
1092
|
+
.\[\&_input\]\:univer-box-border input {
|
|
1093
|
+
box-sizing: border-box;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
.\[\&_input\]\:univer-w-full input {
|
|
1097
|
+
width: 100%;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
.\[\&_input\]\:univer-p-0 input {
|
|
1101
|
+
padding: 0;
|
|
1102
|
+
}
|