@univerjs/ui 1.0.0-alpha.1 → 1.0.0-alpha.3
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/facade.js +2 -0
- package/lib/cjs/index.js +657 -268
- package/lib/es/facade.js +2 -0
- package/lib/es/index.js +648 -269
- package/lib/facade.js +2 -0
- package/lib/index.css +53 -8
- package/lib/index.js +648 -269
- package/lib/types/common/menu-hidden-observable.d.ts +2 -1
- package/lib/types/facade/f-menu-builder.d.ts +2 -0
- package/lib/types/index.d.ts +12 -6
- package/lib/types/services/contextmenu/contextmenu.service.d.ts +6 -3
- package/lib/types/services/dom/canvas-dom-layer.service.d.ts +52 -1
- package/lib/types/services/menu/menu-manager.service.d.ts +1 -0
- package/lib/types/services/popup/canvas-popup.service.d.ts +2 -1
- package/lib/types/services/ribbon/ribbon-override.service.d.ts +42 -0
- package/lib/types/services/runtime-scope/ui-runtime-scope.service.d.ts +32 -0
- package/lib/types/services/shortcut/shortcut.service.d.ts +2 -1
- package/lib/types/utils/embed-boundary.d.ts +23 -0
- package/lib/types/utils/index.d.ts +1 -0
- package/lib/types/views/components/context-menu/AnchoredContextMenu.d.ts +4 -0
- package/lib/types/views/components/context-menu/ContextMenuPanel.d.ts +4 -0
- package/lib/types/views/components/dom/FloatDom.d.ts +11 -0
- package/lib/types/views/components/dom/float-dom-layout.d.ts +35 -0
- package/lib/types/views/components/ribbon/Ribbon.d.ts +2 -0
- package/lib/types/views/components/ribbon/TooltipButtonWrapper.d.ts +6 -1
- package/lib/types/views/emoji-picker/emoji-picker-utils.d.ts +1 -1
- package/lib/types/views/font-family/FontFamily.d.ts +10 -2
- package/lib/types/views/font-family/FontFamilyDropdown.d.ts +32 -0
- package/lib/types/views/font-family/FontFamilyItem.d.ts +5 -3
- package/lib/types/views/font-family/index.d.ts +6 -2
- package/lib/types/views/font-family/{interface.d.ts → use-font-list.d.ts} +6 -9
- package/lib/types/views/menu/mobile/MobileMenu.d.ts +2 -0
- package/lib/umd/index.js +15 -22
- package/package.json +9 -9
package/lib/facade.js
CHANGED
|
@@ -131,6 +131,7 @@ let FMenu = class FMenu extends FMenuBase {
|
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
133
133
|
* @ignore
|
|
134
|
+
* @returns The generated menu schema.
|
|
134
135
|
*/
|
|
135
136
|
__getSchema() {
|
|
136
137
|
this._commandToRegister.forEach((command, id) => {
|
|
@@ -244,6 +245,7 @@ let FSubmenu = class FSubmenu extends FMenuBase {
|
|
|
244
245
|
}
|
|
245
246
|
/**
|
|
246
247
|
* @ignore
|
|
248
|
+
* @returns The generated submenu schema.
|
|
247
249
|
*/
|
|
248
250
|
__getSchema() {
|
|
249
251
|
const schema = {};
|
package/lib/index.css
CHANGED
|
@@ -284,6 +284,10 @@
|
|
|
284
284
|
height: 100%;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
+
.univer-max-h-72 {
|
|
288
|
+
max-height: 18rem;
|
|
289
|
+
}
|
|
290
|
+
|
|
287
291
|
.univer-max-h-\[80vh\] {
|
|
288
292
|
max-height: 80vh;
|
|
289
293
|
}
|
|
@@ -388,6 +392,10 @@
|
|
|
388
392
|
min-width: 0;
|
|
389
393
|
}
|
|
390
394
|
|
|
395
|
+
.univer-min-w-44 {
|
|
396
|
+
min-width: 11rem;
|
|
397
|
+
}
|
|
398
|
+
|
|
391
399
|
.univer-min-w-52 {
|
|
392
400
|
min-width: 13rem;
|
|
393
401
|
}
|
|
@@ -566,6 +574,10 @@
|
|
|
566
574
|
grid-template-rows: auto 1fr auto;
|
|
567
575
|
}
|
|
568
576
|
|
|
577
|
+
.univer-flex-row {
|
|
578
|
+
flex-direction: row;
|
|
579
|
+
}
|
|
580
|
+
|
|
569
581
|
.univer-flex-col {
|
|
570
582
|
flex-direction: column;
|
|
571
583
|
}
|
|
@@ -730,6 +742,11 @@
|
|
|
730
742
|
border-bottom-right-radius: .25rem;
|
|
731
743
|
}
|
|
732
744
|
|
|
745
|
+
.univer-rounded-t {
|
|
746
|
+
border-top-left-radius: .25rem;
|
|
747
|
+
border-top-right-radius: .25rem;
|
|
748
|
+
}
|
|
749
|
+
|
|
733
750
|
.univer-rounded-t-\[28px\] {
|
|
734
751
|
border-top-left-radius: 28px;
|
|
735
752
|
border-top-right-radius: 28px;
|
|
@@ -763,10 +780,6 @@
|
|
|
763
780
|
border-color: var(--univer-gray-300);
|
|
764
781
|
}
|
|
765
782
|
|
|
766
|
-
.univer-border-primary-500 {
|
|
767
|
-
border-color: var(--univer-primary-500);
|
|
768
|
-
}
|
|
769
|
-
|
|
770
783
|
.univer-border-primary-600 {
|
|
771
784
|
border-color: var(--univer-primary-600);
|
|
772
785
|
}
|
|
@@ -1386,10 +1399,46 @@
|
|
|
1386
1399
|
}
|
|
1387
1400
|
}
|
|
1388
1401
|
|
|
1402
|
+
.rtl\:univer-left-0:where([dir="rtl"], [dir="rtl"] *) {
|
|
1403
|
+
left: 0;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
.rtl\:univer-left-2:where([dir="rtl"], [dir="rtl"] *) {
|
|
1407
|
+
left: .5rem;
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
.rtl\:univer-right-auto:where([dir="rtl"], [dir="rtl"] *) {
|
|
1411
|
+
right: auto;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
.rtl\:univer-rounded-l:where([dir="rtl"], [dir="rtl"] *) {
|
|
1415
|
+
border-top-left-radius: .25rem;
|
|
1416
|
+
border-bottom-left-radius: .25rem;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
.rtl\:univer-rounded-l-none:where([dir="rtl"], [dir="rtl"] *) {
|
|
1420
|
+
border-top-left-radius: 0;
|
|
1421
|
+
border-bottom-left-radius: 0;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
.rtl\:univer-rounded-r:where([dir="rtl"], [dir="rtl"] *) {
|
|
1425
|
+
border-top-right-radius: .25rem;
|
|
1426
|
+
border-bottom-right-radius: .25rem;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
.rtl\:univer-rounded-r-none:where([dir="rtl"], [dir="rtl"] *) {
|
|
1430
|
+
border-top-right-radius: 0;
|
|
1431
|
+
border-bottom-right-radius: 0;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1389
1434
|
.rtl\:univer-pl-1\.5:where([dir="rtl"], [dir="rtl"] *) {
|
|
1390
1435
|
padding-left: .375rem;
|
|
1391
1436
|
}
|
|
1392
1437
|
|
|
1438
|
+
.rtl\:univer-pl-5:where([dir="rtl"], [dir="rtl"] *) {
|
|
1439
|
+
padding-left: 1.25rem;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1393
1442
|
.rtl\:univer-pr-0:where([dir="rtl"], [dir="rtl"] *) {
|
|
1394
1443
|
padding-right: 0;
|
|
1395
1444
|
}
|
|
@@ -1406,10 +1455,6 @@
|
|
|
1406
1455
|
border-color: var(--univer-gray-700) !important;
|
|
1407
1456
|
}
|
|
1408
1457
|
|
|
1409
|
-
.dark\:\!univer-border-primary-600:where(.univer-dark, .univer-dark *) {
|
|
1410
|
-
border-color: var(--univer-primary-600) !important;
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1413
1458
|
.dark\:\!univer-bg-gray-200:where(.univer-dark, .univer-dark *) {
|
|
1414
1459
|
background-color: var(--univer-gray-200) !important;
|
|
1415
1460
|
}
|