@univerjs-pro/shape-editor-ui 1.0.0-rc.0 → 1.0.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/README.md +14 -0
- 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 +91 -55
- 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/controllers/mobile/components.controller.d.ts +2 -2
- package/lib/types/controllers/mobile/ui.controller.d.ts +5 -0
- package/lib/types/index.d.ts +12 -3
- package/lib/types/locale/en-US.d.ts +4 -0
- package/lib/types/mobile-plugin.d.ts +4 -2
- package/lib/types/plugin.d.ts +2 -0
- package/lib/types/services/mobile/shape-text-hyper-link-popup.service.d.ts +32 -0
- package/lib/types/services/mobile-shape-editor.service.d.ts +3 -1
- package/lib/types/services/shape-format-painter.d.ts +20 -0
- package/lib/types/services/shape-text-hyper-link-popup.service.d.ts +1 -0
- package/lib/types/views/FormulaBindingEditorDialog.d.ts +1 -0
- package/lib/types/views/FormulaBindingNumberFormat.d.ts +5 -2
- package/lib/types/views/mobile-shape-editor/MobileShapeActionPanel.d.ts +22 -0
- package/lib/types/views/mobile-shape-editor/MobileShapeMenu.d.ts +8 -0
- package/lib/types/views/shape-editor-panel/MobileShapeEditorControls.d.ts +4 -0
- package/lib/types/views/shape-editor-panel/ShapeEditorControls.d.ts +20 -0
- package/lib/types/views/shape-floating-toolbar/ShapeTextControls.d.ts +2 -0
- package/lib/types/views/shape-format-ribbon/ShapeEffectControls.d.ts +1 -1
- package/lib/types/views/shape-format-ribbon/ShapeFormatRibbonControls.d.ts +3 -3
- package/lib/types/views/shape-picker/MobileShapeChangePicker.d.ts +3 -0
- package/lib/types/views/shape-picker/MobileShapePickerPanel.d.ts +2 -0
- package/lib/types/views/shape-picker/ShapeChangePicker.d.ts +2 -0
- package/lib/types/views/shape-text-editor/MobileShapeTextHyperLinkPopup.d.ts +2 -0
- package/lib/types/views/shape-text-editor/ShapeTextHyperLinkPopup.d.ts +21 -1
- package/lib/types/views/shape-text-editor/ShapeTextPositionWrapper.d.ts +2 -5
- package/lib/types/views/shape-text-editor/shape-text-document.d.ts +4 -1
- package/lib/types/views/shape-text-editor/types.d.ts +3 -0
- package/lib/types/views/smart-art/MobileSmartArtColorGallery.d.ts +2 -0
- package/lib/types/views/smart-art/MobileSmartArtLayoutGallery.d.ts +2 -0
- package/lib/types/views/smart-art/MobileSmartArtQuickStyleGallery.d.ts +2 -0
- package/lib/types/views/smart-art/MobileSmartArtStylePanel.d.ts +2 -0
- package/lib/types/views/smart-art/MobileSmartArtTextPane.d.ts +2 -0
- package/lib/types/views/smart-art/SmartArtColorGallery.d.ts +2 -1
- package/lib/types/views/smart-art/SmartArtLayoutGallery.d.ts +6 -0
- package/lib/types/views/smart-art/SmartArtQuickStyleGallery.d.ts +1 -0
- package/lib/types/views/smart-art/SmartArtTextPane.d.ts +13 -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 +21 -21
package/lib/index.css
CHANGED
|
@@ -18,11 +18,6 @@
|
|
|
18
18
|
inset: 0;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.univer-inset-x-0 {
|
|
22
|
-
left: 0;
|
|
23
|
-
right: 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
21
|
.univer-inset-x-1 {
|
|
27
22
|
left: .25rem;
|
|
28
23
|
right: .25rem;
|
|
@@ -44,10 +39,6 @@
|
|
|
44
39
|
left: .375rem;
|
|
45
40
|
}
|
|
46
41
|
|
|
47
|
-
.univer-top-0 {
|
|
48
|
-
top: 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
42
|
.univer-top-1 {
|
|
52
43
|
top: .25rem;
|
|
53
44
|
}
|
|
@@ -56,10 +47,6 @@
|
|
|
56
47
|
top: 2.5rem;
|
|
57
48
|
}
|
|
58
49
|
|
|
59
|
-
.univer-top-12 {
|
|
60
|
-
top: 3rem;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
50
|
.univer-top-8 {
|
|
64
51
|
top: 2rem;
|
|
65
52
|
}
|
|
@@ -72,18 +59,6 @@
|
|
|
72
59
|
z-index: 10;
|
|
73
60
|
}
|
|
74
61
|
|
|
75
|
-
.univer-z-20 {
|
|
76
|
-
z-index: 20;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.univer-z-40 {
|
|
80
|
-
z-index: 40;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.univer-z-50 {
|
|
84
|
-
z-index: 50;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
62
|
.univer-z-\[100\] {
|
|
88
63
|
z-index: 100;
|
|
89
64
|
}
|
|
@@ -118,6 +93,10 @@
|
|
|
118
93
|
margin-bottom: .75rem;
|
|
119
94
|
}
|
|
120
95
|
|
|
96
|
+
.univer-mb-4 {
|
|
97
|
+
margin-bottom: 1rem;
|
|
98
|
+
}
|
|
99
|
+
|
|
121
100
|
.univer-ml-2 {
|
|
122
101
|
margin-left: .5rem;
|
|
123
102
|
}
|
|
@@ -240,10 +219,18 @@
|
|
|
240
219
|
height: 100%;
|
|
241
220
|
}
|
|
242
221
|
|
|
222
|
+
.\!univer-h-12 {
|
|
223
|
+
height: 3rem !important;
|
|
224
|
+
}
|
|
225
|
+
|
|
243
226
|
.\!univer-h-6 {
|
|
244
227
|
height: 1.5rem !important;
|
|
245
228
|
}
|
|
246
229
|
|
|
230
|
+
.\!univer-h-auto {
|
|
231
|
+
height: auto !important;
|
|
232
|
+
}
|
|
233
|
+
|
|
247
234
|
.univer-h-0 {
|
|
248
235
|
height: 0;
|
|
249
236
|
}
|
|
@@ -344,8 +331,8 @@
|
|
|
344
331
|
max-height: 75vh;
|
|
345
332
|
}
|
|
346
333
|
|
|
347
|
-
|
|
348
|
-
|
|
334
|
+
.\!univer-min-h-12 {
|
|
335
|
+
min-height: 3rem !important;
|
|
349
336
|
}
|
|
350
337
|
|
|
351
338
|
.univer-min-h-0 {
|
|
@@ -364,6 +351,14 @@
|
|
|
364
351
|
min-height: 3.5rem;
|
|
365
352
|
}
|
|
366
353
|
|
|
354
|
+
.univer-min-h-24 {
|
|
355
|
+
min-height: 6rem;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.univer-min-h-60 {
|
|
359
|
+
min-height: 15rem;
|
|
360
|
+
}
|
|
361
|
+
|
|
367
362
|
.univer-min-h-64 {
|
|
368
363
|
min-height: 16rem;
|
|
369
364
|
}
|
|
@@ -376,10 +371,22 @@
|
|
|
376
371
|
min-height: 560px;
|
|
377
372
|
}
|
|
378
373
|
|
|
374
|
+
.univer-min-h-\[58vh\] {
|
|
375
|
+
min-height: 58vh;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.univer-min-h-\[62vh\] {
|
|
379
|
+
min-height: 62vh;
|
|
380
|
+
}
|
|
381
|
+
|
|
379
382
|
.\!univer-w-auto {
|
|
380
383
|
width: auto !important;
|
|
381
384
|
}
|
|
382
385
|
|
|
386
|
+
.\!univer-w-full {
|
|
387
|
+
width: 100% !important;
|
|
388
|
+
}
|
|
389
|
+
|
|
383
390
|
.univer-w-0 {
|
|
384
391
|
width: 0;
|
|
385
392
|
}
|
|
@@ -560,10 +567,6 @@
|
|
|
560
567
|
max-width: min(760px, 100vw - 32px);
|
|
561
568
|
}
|
|
562
569
|
|
|
563
|
-
.univer-max-w-full {
|
|
564
|
-
max-width: 100%;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
570
|
.univer-flex-1 {
|
|
568
571
|
flex: 1;
|
|
569
572
|
}
|
|
@@ -726,6 +729,26 @@
|
|
|
726
729
|
row-gap: .25rem;
|
|
727
730
|
}
|
|
728
731
|
|
|
732
|
+
.univer-space-y-2 > :not([hidden]) ~ :not([hidden]) {
|
|
733
|
+
--univer-tw-space-y-reverse: 0;
|
|
734
|
+
margin-top: .5rem;
|
|
735
|
+
margin-top: calc(.5rem * (1 - var(--univer-tw-space-y-reverse)));
|
|
736
|
+
margin-top: .5rem;
|
|
737
|
+
margin-top: calc(.5rem * calc(1 - var(--univer-tw-space-y-reverse)));
|
|
738
|
+
margin-bottom: 0;
|
|
739
|
+
margin-bottom: calc(.5rem * var(--univer-tw-space-y-reverse));
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
.univer-space-y-3 > :not([hidden]) ~ :not([hidden]) {
|
|
743
|
+
--univer-tw-space-y-reverse: 0;
|
|
744
|
+
margin-top: .75rem;
|
|
745
|
+
margin-top: calc(.75rem * (1 - var(--univer-tw-space-y-reverse)));
|
|
746
|
+
margin-top: .75rem;
|
|
747
|
+
margin-top: calc(.75rem * calc(1 - var(--univer-tw-space-y-reverse)));
|
|
748
|
+
margin-bottom: 0;
|
|
749
|
+
margin-bottom: calc(.75rem * var(--univer-tw-space-y-reverse));
|
|
750
|
+
}
|
|
751
|
+
|
|
729
752
|
.univer-overflow-auto {
|
|
730
753
|
overflow: auto;
|
|
731
754
|
}
|
|
@@ -748,6 +771,10 @@
|
|
|
748
771
|
overflow: hidden;
|
|
749
772
|
}
|
|
750
773
|
|
|
774
|
+
.univer-whitespace-normal {
|
|
775
|
+
white-space: normal;
|
|
776
|
+
}
|
|
777
|
+
|
|
751
778
|
.univer-whitespace-nowrap {
|
|
752
779
|
white-space: nowrap;
|
|
753
780
|
}
|
|
@@ -1025,6 +1052,10 @@
|
|
|
1025
1052
|
padding: .5rem;
|
|
1026
1053
|
}
|
|
1027
1054
|
|
|
1055
|
+
.univer-p-2\.5 {
|
|
1056
|
+
padding: .625rem;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1028
1059
|
.univer-p-3 {
|
|
1029
1060
|
padding: .75rem;
|
|
1030
1061
|
}
|
|
@@ -1098,6 +1129,10 @@
|
|
|
1098
1129
|
padding-bottom: 0;
|
|
1099
1130
|
}
|
|
1100
1131
|
|
|
1132
|
+
.univer-pb-2 {
|
|
1133
|
+
padding-bottom: .5rem;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1101
1136
|
.univer-pb-2\.5 {
|
|
1102
1137
|
padding-bottom: .625rem;
|
|
1103
1138
|
}
|
|
@@ -1118,10 +1153,6 @@
|
|
|
1118
1153
|
padding-top: .5rem;
|
|
1119
1154
|
}
|
|
1120
1155
|
|
|
1121
|
-
.univer-pt-24 {
|
|
1122
|
-
padding-top: 6rem;
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
1156
|
.univer-pt-3 {
|
|
1126
1157
|
padding-top: .75rem;
|
|
1127
1158
|
}
|
|
@@ -1287,13 +1318,6 @@
|
|
|
1287
1318
|
box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
|
|
1288
1319
|
}
|
|
1289
1320
|
|
|
1290
|
-
.univer-shadow-\[0_-4px_16px_rgba\(0\,0\,0\,0\.08\)\] {
|
|
1291
|
-
--univer-tw-shadow: 0 -4px 16px #00000014;
|
|
1292
|
-
--univer-tw-shadow-colored: 0 -4px 16px var(--univer-tw-shadow-color);
|
|
1293
|
-
box-shadow: 0 0 #0000, 0 0 #0000, 0 -4px 16px #00000014;
|
|
1294
|
-
box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
1321
|
.univer-shadow-\[2px_3px_0_\#8c4b20\] {
|
|
1298
1322
|
--univer-tw-shadow: 2px 3px 0 #8c4b20;
|
|
1299
1323
|
--univer-tw-shadow-colored: 2px 3px 0 var(--univer-tw-shadow-color);
|
|
@@ -1460,6 +1484,14 @@
|
|
|
1460
1484
|
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));
|
|
1461
1485
|
}
|
|
1462
1486
|
|
|
1487
|
+
.active\:univer-border-gray-300:active {
|
|
1488
|
+
border-color: var(--univer-gray-300);
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
.active\:univer-border-primary-400:active {
|
|
1492
|
+
border-color: var(--univer-primary-400);
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1463
1495
|
.active\:\!univer-bg-transparent:active {
|
|
1464
1496
|
background-color: #0000 !important;
|
|
1465
1497
|
}
|
|
@@ -1472,6 +1504,10 @@
|
|
|
1472
1504
|
background-color: var(--univer-gray-200);
|
|
1473
1505
|
}
|
|
1474
1506
|
|
|
1507
|
+
.active\:univer-bg-gray-50:active {
|
|
1508
|
+
background-color: var(--univer-gray-50);
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1475
1511
|
.active\:univer-bg-primary-100:active {
|
|
1476
1512
|
background-color: var(--univer-primary-100);
|
|
1477
1513
|
}
|
|
@@ -1548,10 +1584,6 @@
|
|
|
1548
1584
|
border-left-color: var(--univer-gray-600) !important;
|
|
1549
1585
|
}
|
|
1550
1586
|
|
|
1551
|
-
.dark\:\!univer-bg-gray-600:where(.univer-dark, .univer-dark *) {
|
|
1552
|
-
background-color: var(--univer-gray-600) !important;
|
|
1553
|
-
}
|
|
1554
|
-
|
|
1555
1587
|
.dark\:\!univer-bg-gray-700:where(.univer-dark, .univer-dark *) {
|
|
1556
1588
|
background-color: var(--univer-gray-700) !important;
|
|
1557
1589
|
}
|
|
@@ -1628,6 +1660,10 @@
|
|
|
1628
1660
|
}
|
|
1629
1661
|
}
|
|
1630
1662
|
|
|
1663
|
+
.dark\:active\:\!univer-border-gray-600:active:where(.univer-dark, .univer-dark *) {
|
|
1664
|
+
border-color: var(--univer-gray-600) !important;
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1631
1667
|
.dark\:active\:\!univer-bg-gray-700:active:where(.univer-dark, .univer-dark *) {
|
|
1632
1668
|
background-color: var(--univer-gray-700) !important;
|
|
1633
1669
|
}
|
|
@@ -1656,10 +1692,6 @@
|
|
|
1656
1692
|
box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
|
|
1657
1693
|
}
|
|
1658
1694
|
|
|
1659
|
-
.\[\&\>div\]\:\!univer-h-full > div {
|
|
1660
|
-
height: 100% !important;
|
|
1661
|
-
}
|
|
1662
|
-
|
|
1663
1695
|
.\[\&\>label\]\:univer-grid > label {
|
|
1664
1696
|
display: grid;
|
|
1665
1697
|
}
|
|
@@ -1694,6 +1726,11 @@
|
|
|
1694
1726
|
padding: 0;
|
|
1695
1727
|
}
|
|
1696
1728
|
|
|
1729
|
+
.\[\&_input\]\:\!univer-text-base input {
|
|
1730
|
+
font-size: 1rem !important;
|
|
1731
|
+
line-height: 1.5rem !important;
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1697
1734
|
[data-u-comp="ribbon-grid-toolbar"] .\[\[data-u-comp\=\'ribbon-grid-toolbar\'\]_\&\]\:univer-grid {
|
|
1698
1735
|
display: grid;
|
|
1699
1736
|
}
|
|
@@ -1714,6 +1751,10 @@
|
|
|
1714
1751
|
width: 100%;
|
|
1715
1752
|
}
|
|
1716
1753
|
|
|
1754
|
+
[data-u-comp="ribbon-grid-toolbar"] .\[\[data-u-comp\=\'ribbon-grid-toolbar\'\]_\&\]\:univer-grid-cols-1 {
|
|
1755
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1717
1758
|
[data-u-comp="ribbon-grid-toolbar"] .\[\[data-u-comp\=\'ribbon-grid-toolbar\'\]_\&\]\:univer-grid-cols-2 {
|
|
1718
1759
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1719
1760
|
}
|
|
@@ -1734,11 +1775,6 @@
|
|
|
1734
1775
|
justify-items: stretch;
|
|
1735
1776
|
}
|
|
1736
1777
|
|
|
1737
|
-
[data-u-comp="ribbon-grid-toolbar"] .\[\[data-u-comp\=\'ribbon-grid-toolbar\'\]_\&\]\:univer-gap-x-2 {
|
|
1738
|
-
-moz-column-gap: .5rem;
|
|
1739
|
-
column-gap: .5rem;
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
1778
|
[data-u-comp="ribbon-grid-toolbar"] .\[\[data-u-comp\=\'ribbon-grid-toolbar\'\]_\&\]\:univer-gap-y-2 {
|
|
1743
1779
|
row-gap: .5rem;
|
|
1744
1780
|
}
|