@univerjs/ui 1.3.1 → 1.5.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 +7 -19
- package/lib/cjs/facade.js +15 -26
- package/lib/cjs/index.js +973 -707
- package/lib/cjs/locale/ar-SA.js +2 -4
- package/lib/cjs/locale/ca-ES.js +2 -4
- package/lib/cjs/locale/de-DE.js +2 -4
- package/lib/cjs/locale/en-US.js +2 -4
- package/lib/cjs/locale/es-ES.js +2 -4
- package/lib/cjs/locale/fa-IR.js +2 -4
- package/lib/cjs/locale/fr-FR.js +2 -4
- package/lib/cjs/locale/id-ID.js +2 -4
- package/lib/cjs/locale/it-IT.js +2 -4
- package/lib/cjs/locale/ja-JP.js +2 -4
- package/lib/cjs/locale/ko-KR.js +2 -4
- package/lib/cjs/locale/pl-PL.js +2 -4
- package/lib/cjs/locale/pt-BR.js +2 -4
- package/lib/cjs/locale/ru-RU.js +2 -4
- package/lib/cjs/locale/sk-SK.js +2 -4
- package/lib/cjs/locale/vi-VN.js +2 -4
- package/lib/cjs/locale/zh-CN.js +2 -4
- package/lib/cjs/locale/zh-HK.js +2 -4
- package/lib/cjs/locale/zh-TW.js +2 -4
- package/lib/es/facade.js +15 -25
- package/lib/es/index.js +881 -615
- package/lib/es/locale/ar-SA.js +2 -4
- package/lib/es/locale/ca-ES.js +2 -4
- package/lib/es/locale/de-DE.js +2 -4
- package/lib/es/locale/en-US.js +2 -4
- package/lib/es/locale/es-ES.js +2 -4
- package/lib/es/locale/fa-IR.js +2 -4
- package/lib/es/locale/fr-FR.js +2 -4
- package/lib/es/locale/id-ID.js +2 -4
- package/lib/es/locale/it-IT.js +2 -4
- package/lib/es/locale/ja-JP.js +2 -4
- package/lib/es/locale/ko-KR.js +2 -4
- package/lib/es/locale/pl-PL.js +2 -4
- package/lib/es/locale/pt-BR.js +2 -4
- package/lib/es/locale/ru-RU.js +2 -4
- package/lib/es/locale/sk-SK.js +2 -4
- package/lib/es/locale/vi-VN.js +2 -4
- package/lib/es/locale/zh-CN.js +2 -4
- package/lib/es/locale/zh-HK.js +2 -4
- package/lib/es/locale/zh-TW.js +2 -4
- package/lib/facade.js +15 -25
- package/lib/index.css +57 -42
- package/lib/index.js +881 -615
- package/lib/locale/ar-SA.js +2 -4
- package/lib/locale/ca-ES.js +2 -4
- package/lib/locale/de-DE.js +2 -4
- package/lib/locale/en-US.js +2 -4
- package/lib/locale/es-ES.js +2 -4
- package/lib/locale/fa-IR.js +2 -4
- package/lib/locale/fr-FR.js +2 -4
- package/lib/locale/id-ID.js +2 -4
- package/lib/locale/it-IT.js +2 -4
- package/lib/locale/ja-JP.js +2 -4
- package/lib/locale/ko-KR.js +2 -4
- package/lib/locale/pl-PL.js +2 -4
- package/lib/locale/pt-BR.js +2 -4
- package/lib/locale/ru-RU.js +2 -4
- package/lib/locale/sk-SK.js +2 -4
- package/lib/locale/vi-VN.js +2 -4
- package/lib/locale/zh-CN.js +2 -4
- package/lib/locale/zh-HK.js +2 -4
- package/lib/locale/zh-TW.js +2 -4
- package/lib/types/menu/shortcut-panel.menu.d.ts +2 -1
- package/lib/types/mobile-plugin.d.ts +1 -1
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/contextmenu/contextmenu-host.service.d.ts +15 -2
- package/lib/types/services/dialog/desktop-dialog.service.d.ts +5 -3
- package/lib/types/services/dialog/mobile-dialog.service.d.ts +2 -1
- package/lib/types/services/dom/canvas-dom-layer.service.d.ts +4 -0
- package/lib/types/services/menu/menu-manager.service.d.ts +2 -0
- package/lib/types/services/menu/menu.d.ts +1 -0
- package/lib/types/services/sidebar/desktop-sidebar.service.d.ts +5 -2
- package/lib/types/utils/di.d.ts +6 -10
- package/lib/types/utils/use-menu-host.d.ts +17 -0
- package/lib/types/views/components/mobile-drawer/MobileDrawer.d.ts +1 -0
- package/lib/types/views/components/popup/RectPopup.d.ts +8 -6
- package/lib/types/views/components/ribbon/ToolbarButton.d.ts +3 -5
- package/lib/types/views/components/ribbon/TooltipButtonWrapper.d.ts +2 -1
- package/lib/types/views/components/ribbon/ribbon-grid-layout.d.ts +2 -0
- package/lib/types/views/components/ribbon/ribbon-menu/use-ribbon-tabs.d.ts +18 -0
- package/lib/types/views/custom-label/CustomLabel.d.ts +1 -0
- package/lib/types/views/emoji-picker/emoji-picker-utils.d.ts +2 -2
- package/lib/types/views/font-family/FontFamily.d.ts +1 -1
- package/lib/types/views/object-permission/ObjectPermissionPanel.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +23 -22
- package/package.json +13 -13
package/lib/locale/ar-SA.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/ar-SA.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😀": "أسنان سعيد ضحك فرحان وجه مبتسم",
|
|
@@ -5291,8 +5291,7 @@ const emojiLocale = {
|
|
|
5291
5291
|
}
|
|
5292
5292
|
};
|
|
5293
5293
|
|
|
5294
|
-
|
|
5295
|
-
//#region src/locale/ar-SA.ts
|
|
5294
|
+
// src/locale/ar-SA.ts
|
|
5296
5295
|
const locale = { ui: {
|
|
5297
5296
|
clearFormatting: "مسح التنسيق",
|
|
5298
5297
|
formatPainter: "نسخ التنسيق",
|
|
@@ -5460,5 +5459,4 @@ const locale = { ui: {
|
|
|
5460
5459
|
column: "عمود"
|
|
5461
5460
|
} };
|
|
5462
5461
|
|
|
5463
|
-
//#endregion
|
|
5464
5462
|
export { locale as default };
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/ca-ES.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😀": "alegre animada animat dents feliç rialla somriure ulls",
|
|
@@ -5246,8 +5246,7 @@ const emojiLocale = {
|
|
|
5246
5246
|
}
|
|
5247
5247
|
};
|
|
5248
5248
|
|
|
5249
|
-
|
|
5250
|
-
//#region src/locale/ca-ES.ts
|
|
5249
|
+
// src/locale/ca-ES.ts
|
|
5251
5250
|
const locale = { ui: {
|
|
5252
5251
|
clearFormatting: "Esborra el format",
|
|
5253
5252
|
formatPainter: "Copia el format",
|
|
@@ -5415,5 +5414,4 @@ const locale = { ui: {
|
|
|
5415
5414
|
column: "Columna"
|
|
5416
5415
|
} };
|
|
5417
5416
|
|
|
5418
|
-
//#endregion
|
|
5419
5417
|
export { locale as default };
|
package/lib/locale/de-DE.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/de-DE.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😀": "froh fröhlich haha lachen lol lustig smiley",
|
|
@@ -5205,8 +5205,7 @@ const emojiLocale = {
|
|
|
5205
5205
|
}
|
|
5206
5206
|
};
|
|
5207
5207
|
|
|
5208
|
-
|
|
5209
|
-
//#region src/locale/de-DE.ts
|
|
5208
|
+
// src/locale/de-DE.ts
|
|
5210
5209
|
const locale = { ui: {
|
|
5211
5210
|
clearFormatting: "Formatierung löschen",
|
|
5212
5211
|
formatPainter: "Format übertragen",
|
|
@@ -5374,5 +5373,4 @@ const locale = { ui: {
|
|
|
5374
5373
|
column: "Spalte"
|
|
5375
5374
|
} };
|
|
5376
5375
|
|
|
5377
|
-
//#endregion
|
|
5378
5376
|
export { locale as default };
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/en-US.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😀": "cheerful cheery happy laugh nice smile smiling teeth",
|
|
@@ -5211,8 +5211,7 @@ const emojiLocale = {
|
|
|
5211
5211
|
}
|
|
5212
5212
|
};
|
|
5213
5213
|
|
|
5214
|
-
|
|
5215
|
-
//#region src/locale/en-US.ts
|
|
5214
|
+
// src/locale/en-US.ts
|
|
5216
5215
|
/**
|
|
5217
5216
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
5218
5217
|
*
|
|
@@ -5395,5 +5394,4 @@ const locale = { ui: {
|
|
|
5395
5394
|
column: "Column"
|
|
5396
5395
|
} };
|
|
5397
5396
|
|
|
5398
|
-
//#endregion
|
|
5399
5397
|
export { locale as default };
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/es-ES.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😀": "divertido feliz sonrisa",
|
|
@@ -5140,8 +5140,7 @@ const emojiLocale = {
|
|
|
5140
5140
|
}
|
|
5141
5141
|
};
|
|
5142
5142
|
|
|
5143
|
-
|
|
5144
|
-
//#region src/locale/es-ES.ts
|
|
5143
|
+
// src/locale/es-ES.ts
|
|
5145
5144
|
const locale = { ui: {
|
|
5146
5145
|
clearFormatting: "Borrar formato",
|
|
5147
5146
|
formatPainter: "Copiar formato",
|
|
@@ -5309,5 +5308,4 @@ const locale = { ui: {
|
|
|
5309
5308
|
column: "Columna"
|
|
5310
5309
|
} };
|
|
5311
5310
|
|
|
5312
|
-
//#endregion
|
|
5313
5311
|
export { locale as default };
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/fa-IR.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😀": "صورت با لبخند نیش باز",
|
|
@@ -5229,8 +5229,7 @@ const emojiLocale = {
|
|
|
5229
5229
|
}
|
|
5230
5230
|
};
|
|
5231
5231
|
|
|
5232
|
-
|
|
5233
|
-
//#region src/locale/fa-IR.ts
|
|
5232
|
+
// src/locale/fa-IR.ts
|
|
5234
5233
|
const locale = { ui: {
|
|
5235
5234
|
clearFormatting: "پاک کردن قالببندی",
|
|
5236
5235
|
formatPainter: "کپی قالببندی",
|
|
@@ -5398,5 +5397,4 @@ const locale = { ui: {
|
|
|
5398
5397
|
column: "ستون"
|
|
5399
5398
|
} };
|
|
5400
5399
|
|
|
5401
|
-
//#endregion
|
|
5402
5400
|
export { locale as default };
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/fr-FR.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😀": "content dents émoticône grand sourire heureux joyeux super visage très souriant",
|
|
@@ -5256,8 +5256,7 @@ const emojiLocale = {
|
|
|
5256
5256
|
}
|
|
5257
5257
|
};
|
|
5258
5258
|
|
|
5259
|
-
|
|
5260
|
-
//#region src/locale/fr-FR.ts
|
|
5259
|
+
// src/locale/fr-FR.ts
|
|
5261
5260
|
const locale = { ui: {
|
|
5262
5261
|
clearFormatting: "Effacer la mise en forme",
|
|
5263
5262
|
formatPainter: "Reproduire la mise en forme",
|
|
@@ -5425,5 +5424,4 @@ const locale = { ui: {
|
|
|
5425
5424
|
column: "Colonne"
|
|
5426
5425
|
} };
|
|
5427
5426
|
|
|
5428
|
-
//#endregion
|
|
5429
5427
|
export { locale as default };
|
package/lib/locale/id-ID.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/id-ID.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😀": "bahagia muka senang senyum tertawa",
|
|
@@ -5243,8 +5243,7 @@ const emojiLocale = {
|
|
|
5243
5243
|
}
|
|
5244
5244
|
};
|
|
5245
5245
|
|
|
5246
|
-
|
|
5247
|
-
//#region src/locale/id-ID.ts
|
|
5246
|
+
// src/locale/id-ID.ts
|
|
5248
5247
|
const locale = { ui: {
|
|
5249
5248
|
clearFormatting: "Hapus pemformatan",
|
|
5250
5249
|
formatPainter: "Salin Format",
|
|
@@ -5412,5 +5411,4 @@ const locale = { ui: {
|
|
|
5412
5411
|
column: "Kolom"
|
|
5413
5412
|
} };
|
|
5414
5413
|
|
|
5415
|
-
//#endregion
|
|
5416
5414
|
export { locale as default };
|
package/lib/locale/it-IT.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/it-IT.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😀": "allegria allegro denti molto felice risata sogghignare sogghigno",
|
|
@@ -5292,8 +5292,7 @@ const emojiLocale = {
|
|
|
5292
5292
|
}
|
|
5293
5293
|
};
|
|
5294
5294
|
|
|
5295
|
-
|
|
5296
|
-
//#region src/locale/it-IT.ts
|
|
5295
|
+
// src/locale/it-IT.ts
|
|
5297
5296
|
const locale = { ui: {
|
|
5298
5297
|
clearFormatting: "Cancella formattazione",
|
|
5299
5298
|
formatPainter: "Copia formato",
|
|
@@ -5461,5 +5460,4 @@ const locale = { ui: {
|
|
|
5461
5460
|
column: "Colonna"
|
|
5462
5461
|
} };
|
|
5463
5462
|
|
|
5464
|
-
//#endregion
|
|
5465
5463
|
export { locale as default };
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/ja-JP.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😀": "スマイル ナイス ハッピー 笑顔",
|
|
@@ -5269,8 +5269,7 @@ const emojiLocale = {
|
|
|
5269
5269
|
}
|
|
5270
5270
|
};
|
|
5271
5271
|
|
|
5272
|
-
|
|
5273
|
-
//#region src/locale/ja-JP.ts
|
|
5272
|
+
// src/locale/ja-JP.ts
|
|
5274
5273
|
const locale = { ui: {
|
|
5275
5274
|
clearFormatting: "書式をクリア",
|
|
5276
5275
|
formatPainter: "書式のコピー",
|
|
@@ -5438,5 +5437,4 @@ const locale = { ui: {
|
|
|
5438
5437
|
column: "列"
|
|
5439
5438
|
} };
|
|
5440
5439
|
|
|
5441
|
-
//#endregion
|
|
5442
5440
|
export { locale as default };
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/ko-KR.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😀": "미소 발랄함 스마일 웃음 치아 행복 환호",
|
|
@@ -5259,8 +5259,7 @@ const emojiLocale = {
|
|
|
5259
5259
|
}
|
|
5260
5260
|
};
|
|
5261
5261
|
|
|
5262
|
-
|
|
5263
|
-
//#region src/locale/ko-KR.ts
|
|
5262
|
+
// src/locale/ko-KR.ts
|
|
5264
5263
|
const locale = { ui: {
|
|
5265
5264
|
clearFormatting: "서식 지우기",
|
|
5266
5265
|
formatPainter: "서식 복사",
|
|
@@ -5428,5 +5427,4 @@ const locale = { ui: {
|
|
|
5428
5427
|
column: "열"
|
|
5429
5428
|
} };
|
|
5430
5429
|
|
|
5431
|
-
//#endregion
|
|
5432
5430
|
export { locale as default };
|
package/lib/locale/pl-PL.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/pl-PL.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😀": "haha hehe roześmiana buźka",
|
|
@@ -5295,8 +5295,7 @@ const emojiLocale = {
|
|
|
5295
5295
|
}
|
|
5296
5296
|
};
|
|
5297
5297
|
|
|
5298
|
-
|
|
5299
|
-
//#region src/locale/pl-PL.ts
|
|
5298
|
+
// src/locale/pl-PL.ts
|
|
5300
5299
|
const locale = { ui: {
|
|
5301
5300
|
clearFormatting: "Wyczyść formatowanie",
|
|
5302
5301
|
formatPainter: "Malarz formatów",
|
|
@@ -5464,5 +5463,4 @@ const locale = { ui: {
|
|
|
5464
5463
|
column: "Kolumna"
|
|
5465
5464
|
} };
|
|
5466
5465
|
|
|
5467
|
-
//#endregion
|
|
5468
5466
|
export { locale as default };
|
package/lib/locale/pt-BR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/pt-BR.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😀": "engraçado feliz lol rindo risada sorridente",
|
|
@@ -5256,8 +5256,7 @@ const emojiLocale = {
|
|
|
5256
5256
|
}
|
|
5257
5257
|
};
|
|
5258
5258
|
|
|
5259
|
-
|
|
5260
|
-
//#region src/locale/pt-BR.ts
|
|
5259
|
+
// src/locale/pt-BR.ts
|
|
5261
5260
|
const locale = { ui: {
|
|
5262
5261
|
clearFormatting: "Limpar formatação",
|
|
5263
5262
|
formatPainter: "Pincel de Formatação",
|
|
@@ -5425,5 +5424,4 @@ const locale = { ui: {
|
|
|
5425
5424
|
column: "Coluna"
|
|
5426
5425
|
} };
|
|
5427
5426
|
|
|
5428
|
-
//#endregion
|
|
5429
5427
|
export { locale as default };
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/ru-RU.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😀": "лицо радость смех счастье улыбка",
|
|
@@ -5306,8 +5306,7 @@ const emojiLocale = {
|
|
|
5306
5306
|
}
|
|
5307
5307
|
};
|
|
5308
5308
|
|
|
5309
|
-
|
|
5310
|
-
//#region src/locale/ru-RU.ts
|
|
5309
|
+
// src/locale/ru-RU.ts
|
|
5311
5310
|
const locale = { ui: {
|
|
5312
5311
|
clearFormatting: "Очистить форматирование",
|
|
5313
5312
|
formatPainter: "Формат по образцу",
|
|
@@ -5475,5 +5474,4 @@ const locale = { ui: {
|
|
|
5475
5474
|
column: "Столбец"
|
|
5476
5475
|
} };
|
|
5477
5476
|
|
|
5478
|
-
//#endregion
|
|
5479
5477
|
export { locale as default };
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/sk-SK.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😀": "smajlík s veľkým úsmevom šťastný úškľabok úškrn usmievavá tvár veselý zuby",
|
|
@@ -5309,8 +5309,7 @@ const emojiLocale = {
|
|
|
5309
5309
|
}
|
|
5310
5310
|
};
|
|
5311
5311
|
|
|
5312
|
-
|
|
5313
|
-
//#region src/locale/sk-SK.ts
|
|
5312
|
+
// src/locale/sk-SK.ts
|
|
5314
5313
|
const locale = { ui: {
|
|
5315
5314
|
clearFormatting: "Vymazať formátovanie",
|
|
5316
5315
|
formatPainter: "Kopírovať formát",
|
|
@@ -5478,5 +5477,4 @@ const locale = { ui: {
|
|
|
5478
5477
|
column: "Stĺpec"
|
|
5479
5478
|
} };
|
|
5480
5479
|
|
|
5481
|
-
//#endregion
|
|
5482
5480
|
export { locale as default };
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/vi-VN.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😃": "há to mặt cười mắt mở to",
|
|
@@ -5133,8 +5133,7 @@ const emojiLocale = {
|
|
|
5133
5133
|
}
|
|
5134
5134
|
};
|
|
5135
5135
|
|
|
5136
|
-
|
|
5137
|
-
//#region src/locale/vi-VN.ts
|
|
5136
|
+
// src/locale/vi-VN.ts
|
|
5138
5137
|
const locale = { ui: {
|
|
5139
5138
|
clearFormatting: "Xóa định dạng",
|
|
5140
5139
|
formatPainter: "Sao chép định dạng",
|
|
@@ -5302,5 +5301,4 @@ const locale = { ui: {
|
|
|
5302
5301
|
column: "Cột"
|
|
5303
5302
|
} };
|
|
5304
5303
|
|
|
5305
|
-
//#endregion
|
|
5306
5304
|
export { locale as default };
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/zh-CN.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😀": "笑脸 高兴",
|
|
@@ -5259,8 +5259,7 @@ const emojiLocale = {
|
|
|
5259
5259
|
}
|
|
5260
5260
|
};
|
|
5261
5261
|
|
|
5262
|
-
|
|
5263
|
-
//#region src/locale/zh-CN.ts
|
|
5262
|
+
// src/locale/zh-CN.ts
|
|
5264
5263
|
const locale = { ui: {
|
|
5265
5264
|
clearFormatting: "清除格式",
|
|
5266
5265
|
formatPainter: "格式刷",
|
|
@@ -5428,5 +5427,4 @@ const locale = { ui: {
|
|
|
5428
5427
|
column: "列"
|
|
5429
5428
|
} };
|
|
5430
5429
|
|
|
5431
|
-
//#endregion
|
|
5432
5430
|
export { locale as default };
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/zh-HK.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😀": "大笑 微笑 快樂 牙齒 臉孔 開心 開朗 高興",
|
|
@@ -5239,8 +5239,7 @@ const emojiLocale = {
|
|
|
5239
5239
|
}
|
|
5240
5240
|
};
|
|
5241
5241
|
|
|
5242
|
-
|
|
5243
|
-
//#region src/locale/zh-HK.ts
|
|
5242
|
+
// src/locale/zh-HK.ts
|
|
5244
5243
|
const locale = { ui: {
|
|
5245
5244
|
clearFormatting: "清除格式",
|
|
5246
5245
|
formatPainter: "複製格式",
|
|
@@ -5408,5 +5407,4 @@ const locale = { ui: {
|
|
|
5408
5407
|
column: "欄"
|
|
5409
5408
|
} };
|
|
5410
5409
|
|
|
5411
|
-
//#endregion
|
|
5412
5410
|
export { locale as default };
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/emoji-locale/zh-TW.generated.ts
|
|
2
2
|
const emojiLocale = {
|
|
3
3
|
"emojiSearchIndex": {
|
|
4
4
|
"😀": "微笑 欣喜 笑容 露齒而笑",
|
|
@@ -5071,8 +5071,7 @@ const emojiLocale = {
|
|
|
5071
5071
|
}
|
|
5072
5072
|
};
|
|
5073
5073
|
|
|
5074
|
-
|
|
5075
|
-
//#region src/locale/zh-TW.ts
|
|
5074
|
+
// src/locale/zh-TW.ts
|
|
5076
5075
|
const locale = { ui: {
|
|
5077
5076
|
clearFormatting: "清除格式",
|
|
5078
5077
|
formatPainter: "複製格式",
|
|
@@ -5240,5 +5239,4 @@ const locale = { ui: {
|
|
|
5240
5239
|
column: "欄"
|
|
5241
5240
|
} };
|
|
5242
5241
|
|
|
5243
|
-
//#endregion
|
|
5244
5242
|
export { locale as default };
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import type { IAccessor } from '@univerjs/core';
|
|
16
17
|
import type { LocaleKey } from '../locale/types';
|
|
17
18
|
import type { IMenuButtonItem } from '../services/menu/menu';
|
|
18
|
-
export declare function ShortcutPanelMenuItemFactory(): IMenuButtonItem<LocaleKey>;
|
|
19
|
+
export declare function ShortcutPanelMenuItemFactory(accessor: IAccessor): IMenuButtonItem<LocaleKey>;
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { IUniverUIConfig } from './config/config';
|
|
17
16
|
import { IConfigService, IContextService, Injector, Plugin } from '@univerjs/core';
|
|
17
|
+
import type { IUniverUIConfig } from './config/config';
|
|
18
18
|
export declare const DISABLE_AUTO_FOCUS_KEY = "DISABLE_AUTO_FOCUS";
|
|
19
19
|
/**
|
|
20
20
|
* UI plugin provides basic interaction with users. Including workbench (menus, UI parts, notifications etc.), copy paste, shortcut.
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { IUniverUIConfig } from './config/config';
|
|
17
16
|
import { IConfigService, IContextService, Injector, Plugin } from '@univerjs/core';
|
|
17
|
+
import type { IUniverUIConfig } from './config/config';
|
|
18
18
|
export declare const DISABLE_AUTO_FOCUS_KEY = "DISABLE_AUTO_FOCUS";
|
|
19
19
|
/**
|
|
20
20
|
* UI plugin provides basic interaction with users. Including workbench (menus, UI parts, notifications etc.), copy paste, shortcut.
|
|
@@ -19,20 +19,33 @@ import { Disposable } from '@univerjs/core';
|
|
|
19
19
|
export interface IContextMenuHostService {
|
|
20
20
|
readonly activeMenuId: string | null;
|
|
21
21
|
readonly activeMenuId$: Observable<string | null>;
|
|
22
|
-
|
|
22
|
+
/** Changes when pending menu interactions and focus restoration must be discarded. */
|
|
23
|
+
readonly revision: number;
|
|
24
|
+
readonly suspended: boolean;
|
|
25
|
+
registerMenu(menuId: string | symbol, hide: (restoreFocus: boolean) => void): IDisposable;
|
|
23
26
|
activateMenu(menuId: string): void;
|
|
24
27
|
deactivateMenu(menuId: string): void;
|
|
25
28
|
hideActiveMenu(exceptMenuId?: string): void;
|
|
29
|
+
/** Close registered menus without returning focus to their triggers. */
|
|
30
|
+
closeAll(): void;
|
|
31
|
+
/** Close host menus and prevent reopening until every replacing view releases its lease. */
|
|
32
|
+
suspend(): IDisposable;
|
|
26
33
|
}
|
|
27
34
|
export declare const IContextMenuHostService: import("@wendellhu/redi").IdentifierDecorator<IContextMenuHostService>;
|
|
28
35
|
export declare class ContextMenuHostService extends Disposable implements IContextMenuHostService {
|
|
29
36
|
private readonly _menuMap;
|
|
30
37
|
private readonly _activeMenuId$;
|
|
38
|
+
private readonly _suspensions;
|
|
39
|
+
private _revision;
|
|
31
40
|
readonly activeMenuId$: Observable<string | null>;
|
|
32
41
|
get activeMenuId(): string | null;
|
|
33
|
-
|
|
42
|
+
get revision(): number;
|
|
43
|
+
get suspended(): boolean;
|
|
44
|
+
registerMenu(menuId: string | symbol, hide: (restoreFocus: boolean) => void): IDisposable;
|
|
34
45
|
activateMenu(menuId: string): void;
|
|
35
46
|
deactivateMenu(menuId: string): void;
|
|
36
47
|
hideActiveMenu(exceptMenuId?: string): void;
|
|
48
|
+
closeAll(): void;
|
|
49
|
+
suspend(): IDisposable;
|
|
37
50
|
dispose(): void;
|
|
38
51
|
}
|
|
@@ -14,17 +14,19 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IDisposable } from '@univerjs/core';
|
|
17
|
-
import type { IDialogPartMethodOptions } from '../../views/components/dialog-part/interface';
|
|
18
|
-
import type { IDialogService } from './dialog.service';
|
|
19
17
|
import { Disposable, Injector } from '@univerjs/core';
|
|
20
18
|
import { Subject } from 'rxjs';
|
|
19
|
+
import type { IDialogPartMethodOptions } from '../../views/components/dialog-part/interface';
|
|
20
|
+
import type { IDialogService } from './dialog.service';
|
|
21
|
+
import { IContextMenuHostService } from '../contextmenu/contextmenu-host.service';
|
|
21
22
|
import { IUIPartsService } from '../parts/parts.service';
|
|
22
23
|
export declare class DesktopDialogService extends Disposable implements IDialogService {
|
|
23
24
|
protected readonly _injector: Injector;
|
|
24
25
|
protected readonly _uiPartsService: IUIPartsService;
|
|
26
|
+
private readonly _menuHostService;
|
|
25
27
|
protected _dialogOptions: IDialogPartMethodOptions[];
|
|
26
28
|
protected readonly _dialogOptions$: Subject<IDialogPartMethodOptions[]>;
|
|
27
|
-
constructor(_injector: Injector, _uiPartsService: IUIPartsService);
|
|
29
|
+
constructor(_injector: Injector, _uiPartsService: IUIPartsService, _menuHostService: IContextMenuHostService);
|
|
28
30
|
dispose(): void;
|
|
29
31
|
open(option: IDialogPartMethodOptions): IDisposable;
|
|
30
32
|
close(id: string): void;
|
|
@@ -14,10 +14,11 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { Injector } from '@univerjs/core';
|
|
17
|
+
import { IContextMenuHostService } from '../contextmenu/contextmenu-host.service';
|
|
17
18
|
import { IUIPartsService } from '../parts/parts.service';
|
|
18
19
|
import { DesktopDialogService } from './desktop-dialog.service';
|
|
19
20
|
export declare class MobileDialogService extends DesktopDialogService {
|
|
20
|
-
constructor(injector: Injector, uiPartsService: IUIPartsService);
|
|
21
|
+
constructor(injector: Injector, uiPartsService: IUIPartsService, menuHostService: IContextMenuHostService);
|
|
21
22
|
close(id: string): void;
|
|
22
23
|
protected _initUIPart(): void;
|
|
23
24
|
}
|
|
@@ -44,6 +44,10 @@ export interface IFloatDom {
|
|
|
44
44
|
* forwarding by default; interactive embed runtimes can opt out.
|
|
45
45
|
*/
|
|
46
46
|
eventPassThrough?: boolean;
|
|
47
|
+
/** Cancel browser pinch/modified-wheel zoom while this host forwards events. */
|
|
48
|
+
preventBrowserZoom?: boolean;
|
|
49
|
+
/** Native listener options per event. Omitted events retain React forwarding. */
|
|
50
|
+
eventOptions?: Partial<Record<'wheel' | 'pointerdown' | 'pointermove' | 'pointerup', Pick<AddEventListenerOptions, 'passive' | 'capture'>>>;
|
|
47
51
|
/**
|
|
48
52
|
* Keep rendering this host-owned layer even when focus temporarily moves
|
|
49
53
|
* into a child runtime unit. Interactive embed float blocks need this so
|
|
@@ -79,6 +79,7 @@ export interface IValueOption<TLocaleKey extends string = string, TValue = undef
|
|
|
79
79
|
export interface ICustomComponentProps<T> {
|
|
80
80
|
value: T;
|
|
81
81
|
onChange: (v: T) => void;
|
|
82
|
+
ariaLabel?: string;
|
|
82
83
|
}
|
|
83
84
|
export interface IMenuSelectorItem<TLocaleKey extends string = string, TValue = MenuItemDefaultValueType, TOptionValue = undefined> extends IMenuItemBase<TLocaleKey, TValue> {
|
|
84
85
|
type: MenuItemType.SELECTOR | MenuItemType.BUTTON_SELECTOR | MenuItemType.SUBITEMS;
|
|
@@ -14,17 +14,20 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IDisposable } from '@univerjs/core';
|
|
17
|
-
import type { ISidebarMethodOptions } from '../../views/components/sidebar/Sidebar';
|
|
18
|
-
import type { ISidebarService } from './sidebar.service';
|
|
19
17
|
import { Disposable } from '@univerjs/core';
|
|
20
18
|
import { Subject } from 'rxjs';
|
|
19
|
+
import type { ISidebarMethodOptions } from '../../views/components/sidebar/Sidebar';
|
|
20
|
+
import type { ISidebarService } from './sidebar.service';
|
|
21
|
+
import { IContextMenuHostService } from '../contextmenu/contextmenu-host.service';
|
|
21
22
|
export declare class DesktopSidebarService extends Disposable implements ISidebarService {
|
|
23
|
+
private readonly _menuHostService;
|
|
22
24
|
private _sidebarOptions;
|
|
23
25
|
readonly sidebarOptions$: Subject<ISidebarMethodOptions>;
|
|
24
26
|
readonly scrollEvent$: Subject<Event>;
|
|
25
27
|
private _container?;
|
|
26
28
|
private _openAnimationFrameId;
|
|
27
29
|
private _width?;
|
|
30
|
+
constructor(_menuHostService: IContextMenuHostService);
|
|
28
31
|
get visible(): boolean;
|
|
29
32
|
get options(): ISidebarMethodOptions;
|
|
30
33
|
get width(): number | undefined;
|
package/lib/types/utils/di.d.ts
CHANGED
|
@@ -14,16 +14,12 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { Nullable } from '@univerjs/core';
|
|
17
|
-
import type { RefObject } from 'react';
|
|
17
|
+
import type { DependencyList, RefObject } from 'react';
|
|
18
18
|
import type { Observable } from 'rxjs';
|
|
19
|
-
export { connectDependencies, connectInjector, RediConsumer, RediContext, RediProvider, useDependency, useInjector,
|
|
19
|
+
export { connectDependencies, connectInjector, RediConsumer, RediContext, RediProvider, useDependency, useInjector, useUpdateBinder, WithDependency, } from '@wendellhu/redi/react-bindings';
|
|
20
20
|
type ObservableOrFn<T> = Observable<T> | (() => Observable<T>);
|
|
21
|
-
declare
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
function useObservable<T>(observable: Nullable<ObservableOrFn<T>>, defaultValue: T, shouldHaveSyncValue?: boolean, deps?: any[]): T;
|
|
26
|
-
function useObservable<T>(observable: Nullable<ObservableOrFn<T>>, defaultValue: undefined, shouldHaveSyncValue: true, deps?: any[]): T;
|
|
27
|
-
function useObservable<T>(observable: Nullable<ObservableOrFn<T>>, defaultValue?: T, shouldHaveSyncValue?: boolean, deps?: any[]): T | undefined;
|
|
28
|
-
}
|
|
21
|
+
export declare function useObservable<T>(observable: ObservableOrFn<T>, defaultValue: T | undefined, shouldHaveSyncValue?: true): T;
|
|
22
|
+
export declare function useObservable<T>(observable: Nullable<ObservableOrFn<T>>, defaultValue: T, shouldHaveSyncValue?: boolean, deps?: DependencyList): T;
|
|
23
|
+
export declare function useObservable<T>(observable: Nullable<ObservableOrFn<T>>, defaultValue: undefined, shouldHaveSyncValue: true, deps?: DependencyList): T;
|
|
24
|
+
export declare function useObservable<T>(observable: Nullable<ObservableOrFn<T>>, defaultValue?: T, shouldHaveSyncValue?: boolean, deps?: DependencyList): T | undefined;
|
|
29
25
|
export declare function useObservableRef<T>(observable: Nullable<ObservableOrFn<T>>, defaultValue?: T): RefObject<Nullable<T>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { IContextMenuHostService } from '../services/contextmenu/contextmenu-host.service';
|
|
17
|
+
export declare function useMenuHost(onClose: () => void): IContextMenuHostService;
|