Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

feat: refine text-to-number menu placement and context menu icons (#7288)

白熱8f0a3c887b3c
diff --git a/common/debugger/package.json b/common/debugger/package.json
index 883385add6..60e15b2a94 100644
--- a/common/debugger/package.json
+++ b/common/debugger/package.json
@@ -35,7 +35,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/docs-drawing-ui": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/mockdata": "workspace:*",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-drawing-ui": "workspace:*",
diff --git a/common/shared/package.json b/common/shared/package.json
index 56ee049fe8..a7ac82fc5b 100644
--- a/common/shared/package.json
+++ b/common/shared/package.json
@@ -51,7 +51,7 @@
"vitest": "^4.1.10"
},
"devDependencies": {
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/icons-svg": "^1.23.0",
"typescript": "^6.0.3",
"vue-tsc": "^3.3.6"
diff --git a/examples/package.json b/examples/package.json
index cf6f92c374..6177025408 100644
--- a/examples/package.json
+++ b/examples/package.json
@@ -36,7 +36,7 @@
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/find-replace": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/mockdata": "workspace:*",
"@univerjs/network": "workspace:*",
"@univerjs/preset-docs-core": "workspace:*",
diff --git a/packages/action-recorder/package.json b/packages/action-recorder/package.json
index b77e3b6814..f385e221f0 100644
--- a/packages/action-recorder/package.json
+++ b/packages/action-recorder/package.json
@@ -76,7 +76,7 @@
"dependencies": {
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-filter": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
diff --git a/packages/design/package.json b/packages/design/package.json
index e3bd16c9ce..9bbf74903e 100644
--- a/packages/design/package.json
+++ b/packages/design/package.json
@@ -81,7 +81,7 @@
"@radix-ui/react-popover": "^1.1.19",
"@radix-ui/react-separator": "^1.1.11",
"@radix-ui/react-slot": "^1.3.0",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"react-transition-group": "^4.4.5",
diff --git a/packages/docs-hyper-link-ui/package.json b/packages/docs-hyper-link-ui/package.json
index 8d6a3cc8d1..0bc14b74e7 100644
--- a/packages/docs-hyper-link-ui/package.json
+++ b/packages/docs-hyper-link-ui/package.json
@@ -80,7 +80,7 @@
"@univerjs/docs-hyper-link": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/ui": "workspace:*"
},
"devDependencies": {
diff --git a/packages/docs-quick-insert-ui/package.json b/packages/docs-quick-insert-ui/package.json
index 545a2cecc7..754d7d3a8b 100644
--- a/packages/docs-quick-insert-ui/package.json
+++ b/packages/docs-quick-insert-ui/package.json
@@ -83,7 +83,7 @@
"@univerjs/drawing": "workspace:*",
"@univerjs/drawing-ui": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/ui": "workspace:*"
},
"devDependencies": {
diff --git a/packages/docs-thread-comment-ui/package.json b/packages/docs-thread-comment-ui/package.json
index f19ecf0cb0..a3f79c7a07 100644
--- a/packages/docs-thread-comment-ui/package.json
+++ b/packages/docs-thread-comment-ui/package.json
@@ -78,7 +78,7 @@
"@univerjs/docs": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/thread-comment": "workspace:*",
"@univerjs/thread-comment-ui": "workspace:*",
"@univerjs/ui": "workspace:*"
diff --git a/packages/docs-ui/package.json b/packages/docs-ui/package.json
index 7c8123206d..ff45ee7bba 100644
--- a/packages/docs-ui/package.json
+++ b/packages/docs-ui/package.json
@@ -89,7 +89,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/docs": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/ui": "workspace:*"
},
"devDependencies": {
diff --git a/packages/docs-ui/src/controllers/components.controller.ts b/packages/docs-ui/src/controllers/components.controller.ts
index d34abaefe9..3f2d85a148 100644
--- a/packages/docs-ui/src/controllers/components.controller.ts
+++ b/packages/docs-ui/src/controllers/components.controller.ts
@@ -24,6 +24,7 @@ import {
DeleteColumnDoubleIcon,
DeleteIcon,
DeleteRowDoubleIcon,
+ DeleteTableDoubleIcon,
DocSettingIcon,
FontColorDoubleIcon,
GridIcon,
@@ -143,6 +144,7 @@ export class ComponentsController extends Disposable {
DeleteColumnDoubleIcon,
DeleteIcon,
DeleteRowDoubleIcon,
+ DeleteTableDoubleIcon,
DocSettingIcon,
FontColorDoubleIcon,
GridIcon,
diff --git a/packages/docs-ui/src/menu/context-menu.ts b/packages/docs-ui/src/menu/context-menu.ts
index 77c7ccf699..cd9257b865 100644
--- a/packages/docs-ui/src/menu/context-menu.ts
+++ b/packages/docs-ui/src/menu/context-menu.ts
@@ -301,7 +301,7 @@ export function DeleteTableMenuItemFactory(accessor: IAccessor): IMenuButtonItem
id: DocTableDeleteTableCommand.id,
type: MenuItemType.BUTTON,
title: 'docs-ui.table.deleteTable',
- icon: 'GridIcon',
+ icon: 'DeleteTableDoubleIcon',
disabled$: getDisableWhenSelectionNotInTableObservable(accessor),
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_DOC),
};
diff --git a/packages/drawing-ui/package.json b/packages/drawing-ui/package.json
index a3fa053c9c..2a5f29cd7a 100644
--- a/packages/drawing-ui/package.json
+++ b/packages/drawing-ui/package.json
@@ -78,7 +78,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/drawing": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/ui": "workspace:*"
},
"devDependencies": {
diff --git a/packages/find-replace/package.json b/packages/find-replace/package.json
index 5493453ae4..c1e057958b 100644
--- a/packages/find-replace/package.json
+++ b/packages/find-replace/package.json
@@ -77,7 +77,7 @@
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/ui": "workspace:*"
},
"devDependencies": {
diff --git a/packages/sheets-conditional-formatting-ui/package.json b/packages/sheets-conditional-formatting-ui/package.json
index 28b7688147..9237925e9b 100644
--- a/packages/sheets-conditional-formatting-ui/package.json
+++ b/packages/sheets-conditional-formatting-ui/package.json
@@ -78,7 +78,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-conditional-formatting": "workspace:*",
"@univerjs/sheets-formula": "workspace:*",
diff --git a/packages/sheets-crosshair-highlight/package.json b/packages/sheets-crosshair-highlight/package.json
index 4c0fd17428..c5a35e63b0 100644
--- a/packages/sheets-crosshair-highlight/package.json
+++ b/packages/sheets-crosshair-highlight/package.json
@@ -88,7 +88,7 @@
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
"@univerjs/ui": "workspace:*"
diff --git a/packages/sheets-data-validation-ui/package.json b/packages/sheets-data-validation-ui/package.json
index b61449c982..ab2a2b5385 100644
--- a/packages/sheets-data-validation-ui/package.json
+++ b/packages/sheets-data-validation-ui/package.json
@@ -80,7 +80,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-data-validation": "workspace:*",
"@univerjs/sheets-formula-ui": "workspace:*",
diff --git a/packages/sheets-filter-ui/package.json b/packages/sheets-filter-ui/package.json
index 576cb4eb4b..ad82e7d2fb 100644
--- a/packages/sheets-filter-ui/package.json
+++ b/packages/sheets-filter-ui/package.json
@@ -77,7 +77,7 @@
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/rpc": "workspace:*",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-filter": "workspace:*",
diff --git a/packages/sheets-formula-ui/package.json b/packages/sheets-formula-ui/package.json
index 1d5d5c74a0..1963325051 100644
--- a/packages/sheets-formula-ui/package.json
+++ b/packages/sheets-formula-ui/package.json
@@ -91,7 +91,7 @@
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-formula": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
diff --git a/packages/sheets-hyper-link-ui/package.json b/packages/sheets-hyper-link-ui/package.json
index da594806cf..146747e8ff 100644
--- a/packages/sheets-hyper-link-ui/package.json
+++ b/packages/sheets-hyper-link-ui/package.json
@@ -91,7 +91,7 @@
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-data-validation": "workspace:*",
"@univerjs/sheets-formula-ui": "workspace:*",
diff --git a/packages/sheets-note-ui/package.json b/packages/sheets-note-ui/package.json
index 487a7c7cc5..7b92b72380 100644
--- a/packages/sheets-note-ui/package.json
+++ b/packages/sheets-note-ui/package.json
@@ -74,7 +74,7 @@
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-note": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
diff --git a/packages/sheets-numfmt-ui/package.json b/packages/sheets-numfmt-ui/package.json
index 37b25e8d4b..f100ac6f43 100644
--- a/packages/sheets-numfmt-ui/package.json
+++ b/packages/sheets-numfmt-ui/package.json
@@ -78,7 +78,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-numfmt": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
diff --git a/packages/sheets-sort-ui/package.json b/packages/sheets-sort-ui/package.json
index 84e7d17b5c..f0f4ed2053 100644
--- a/packages/sheets-sort-ui/package.json
+++ b/packages/sheets-sort-ui/package.json
@@ -77,7 +77,7 @@
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-sort": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
diff --git a/packages/sheets-table-ui/package.json b/packages/sheets-table-ui/package.json
index da9dfec23b..73874ef507 100644
--- a/packages/sheets-table-ui/package.json
+++ b/packages/sheets-table-ui/package.json
@@ -79,7 +79,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-formula-ui": "workspace:*",
"@univerjs/sheets-sort": "workspace:*",
diff --git a/packages/sheets-thread-comment-ui/package.json b/packages/sheets-thread-comment-ui/package.json
index 99f4557822..49e3057ae0 100644
--- a/packages/sheets-thread-comment-ui/package.json
+++ b/packages/sheets-thread-comment-ui/package.json
@@ -77,7 +77,7 @@
"@univerjs/core": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-thread-comment": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
diff --git a/packages/sheets-ui/package.json b/packages/sheets-ui/package.json
index 8a307fa643..ed4f492fd5 100644
--- a/packages/sheets-ui/package.json
+++ b/packages/sheets-ui/package.json
@@ -91,7 +91,7 @@
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/protocol": "workspace:*",
"@univerjs/sheets": "workspace:*",
"@univerjs/telemetry": "workspace:*",
diff --git a/packages/sheets-ui/src/controllers/components.controller.ts b/packages/sheets-ui/src/controllers/components.controller.ts
index 9a14b6eec2..df7d32367c 100644
--- a/packages/sheets-ui/src/controllers/components.controller.ts
+++ b/packages/sheets-ui/src/controllers/components.controller.ts
@@ -34,6 +34,7 @@ import {
CheckMarkIcon,
ClearFormatDoubleIcon,
CodeIcon,
+ ConvertToNumberIcon,
CopyDoubleIcon,
CutIcon,
DeleteCellShiftLeftDoubleIcon,
@@ -78,7 +79,6 @@ import {
OverflowIcon,
PaintBucketDoubleIcon,
PasteSpecialDoubleIcon,
- PipingIcon,
ProtectIcon,
ReduceDoubleIcon,
RightBorderDoubleIcon,
@@ -208,6 +208,7 @@ export class ComponentsController extends Disposable {
CancelMergeIcon,
ClearFormatDoubleIcon,
CodeIcon,
+ ConvertToNumberIcon,
CopyDoubleIcon,
CutIcon,
DeleteCellShiftLeftDoubleIcon,
@@ -251,7 +252,6 @@ export class ComponentsController extends Disposable {
OverflowIcon,
PaintBucketDoubleIcon,
PasteSpecialDoubleIcon,
- PipingIcon,
ProtectIcon,
ReduceDoubleIcon,
RightBorderDoubleIcon,
diff --git a/packages/sheets-ui/src/locale/ar-SA.ts b/packages/sheets-ui/src/locale/ar-SA.ts
index b6dac531de..a32887ddf2 100644
--- a/packages/sheets-ui/src/locale/ar-SA.ts
+++ b/packages/sheets-ui/src/locale/ar-SA.ts
@@ -68,7 +68,6 @@ const locale: typeof enUS = {
},
more: 'المزيد',
toggleGridlines: 'تبديل خطوط الشبكة',
- textToNumber: 'نص إلى رقم',
},
align: {
left: 'يسار',
diff --git a/packages/sheets-ui/src/locale/ca-ES.ts b/packages/sheets-ui/src/locale/ca-ES.ts
index dcc536415d..0f9e5e6d99 100644
--- a/packages/sheets-ui/src/locale/ca-ES.ts
+++ b/packages/sheets-ui/src/locale/ca-ES.ts
@@ -68,7 +68,6 @@ const locale: typeof enUS = {
},
more: 'Més',
toggleGridlines: 'Alternar línies de quadrícula',
- textToNumber: 'Text a número',
},
align: {
left: 'esquerra',
diff --git a/packages/sheets-ui/src/locale/de-DE.ts b/packages/sheets-ui/src/locale/de-DE.ts
index 79f9b4073b..827e029518 100644
--- a/packages/sheets-ui/src/locale/de-DE.ts
+++ b/packages/sheets-ui/src/locale/de-DE.ts
@@ -68,7 +68,6 @@ const locale: typeof enUS = {
},
more: 'Mehr',
toggleGridlines: 'Gitterlinien ein-/ausblenden',
- textToNumber: 'Text in Zahl umwandeln',
},
align: {
left: 'links',
diff --git a/packages/sheets-ui/src/locale/en-US.ts b/packages/sheets-ui/src/locale/en-US.ts
index 573ef3e930..4812c1f264 100644
--- a/packages/sheets-ui/src/locale/en-US.ts
+++ b/packages/sheets-ui/src/locale/en-US.ts
@@ -66,7 +66,6 @@ const locale = {
},
more: 'More',
toggleGridlines: 'Toggle Gridlines',
- textToNumber: 'Text to Number',
},
align: {
left: 'left',
diff --git a/packages/sheets-ui/src/locale/es-ES.ts b/packages/sheets-ui/src/locale/es-ES.ts
index 5c2e1ad2d2..684e83309d 100644
--- a/packages/sheets-ui/src/locale/es-ES.ts
+++ b/packages/sheets-ui/src/locale/es-ES.ts
@@ -68,7 +68,6 @@ const locale: typeof enUS = {
},
more: 'Más',
toggleGridlines: 'Alternar líneas de cuadrícula',
- textToNumber: 'Texto a número',
},
align: {
left: 'izquierda',
diff --git a/packages/sheets-ui/src/locale/fa-IR.ts b/packages/sheets-ui/src/locale/fa-IR.ts
index 9cf3457ff6..60edfa0f6f 100644
--- a/packages/sheets-ui/src/locale/fa-IR.ts
+++ b/packages/sheets-ui/src/locale/fa-IR.ts
@@ -68,7 +68,6 @@ const locale: typeof enUS = {
},
more: 'بیشتر',
toggleGridlines: 'تغییر وضعیت خطوط شبکه',
- textToNumber: 'متن به عدد',
},
align: {
left: 'چپ',
diff --git a/packages/sheets-ui/src/locale/fr-FR.ts b/packages/sheets-ui/src/locale/fr-FR.ts
index 92a6aa0371..c902da3da7 100644
--- a/packages/sheets-ui/src/locale/fr-FR.ts
+++ b/packages/sheets-ui/src/locale/fr-FR.ts
@@ -68,7 +68,6 @@ const locale: typeof enUS = {
},
more: 'Plus',
toggleGridlines: 'Activer/désactiver le quadrillage',
- textToNumber: 'Texte en nombre',
},
align: {
left: 'gauche',
diff --git a/packages/sheets-ui/src/locale/id-ID.ts b/packages/sheets-ui/src/locale/id-ID.ts
index 6063924c9b..bb2bfe7e21 100644
--- a/packages/sheets-ui/src/locale/id-ID.ts
+++ b/packages/sheets-ui/src/locale/id-ID.ts
@@ -68,7 +68,6 @@ const locale: typeof enUS = {
},
more: 'Lainnya',
toggleGridlines: 'Alihkan garis kisi',
- textToNumber: 'Teks ke angka',
},
align: {
left: 'kiri',
diff --git a/packages/sheets-ui/src/locale/it-IT.ts b/packages/sheets-ui/src/locale/it-IT.ts
index 5b1f91dc3c..1d7e1183d7 100644
--- a/packages/sheets-ui/src/locale/it-IT.ts
+++ b/packages/sheets-ui/src/locale/it-IT.ts
@@ -68,7 +68,6 @@ const locale: typeof enUS = {
},
more: 'Altro',
toggleGridlines: 'Mostra/Nascondi griglia',
- textToNumber: 'Testo in numero',
},
align: {
left: 'sinistra',
diff --git a/packages/sheets-ui/src/locale/ja-JP.ts b/packages/sheets-ui/src/locale/ja-JP.ts
index 688e4a47d6..67d3116abc 100644
--- a/packages/sheets-ui/src/locale/ja-JP.ts
+++ b/packages/sheets-ui/src/locale/ja-JP.ts
@@ -68,7 +68,6 @@ const locale: typeof enUS = {
},
more: 'その他',
toggleGridlines: 'グリッド線の表示/非表示',
- textToNumber: 'テキストを数値に変換',
},
align: {
left: '左寄せ',
diff --git a/packages/sheets-ui/src/locale/ko-KR.ts b/packages/sheets-ui/src/locale/ko-KR.ts
index e4e9938d95..fd7bb26eed 100644
--- a/packages/sheets-ui/src/locale/ko-KR.ts
+++ b/packages/sheets-ui/src/locale/ko-KR.ts
@@ -68,7 +68,6 @@ const locale: typeof enUS = {
},
more: '더 보기',
toggleGridlines: '눈금선 표시/숨기기',
- textToNumber: '텍스트를 숫자로 변환',
},
align: {
left: '왼쪽',
diff --git a/packages/sheets-ui/src/locale/pl-PL.ts b/packages/sheets-ui/src/locale/pl-PL.ts
index 52ba0066f0..578058d0f6 100644
--- a/packages/sheets-ui/src/locale/pl-PL.ts
+++ b/packages/sheets-ui/src/locale/pl-PL.ts
@@ -68,7 +68,6 @@ const locale: typeof enUS = {
},
more: 'Więcej',
toggleGridlines: 'Przełącz linie siatki',
- textToNumber: 'Tekst na liczbę',
},
align: {
left: 'lewo',
diff --git a/packages/sheets-ui/src/locale/pt-BR.ts b/packages/sheets-ui/src/locale/pt-BR.ts
index 83dd0ffba3..6af06c49d8 100644
--- a/packages/sheets-ui/src/locale/pt-BR.ts
+++ b/packages/sheets-ui/src/locale/pt-BR.ts
@@ -68,7 +68,6 @@ const locale: typeof enUS = {
},
more: 'Mais',
toggleGridlines: 'Mostrar/Ocultar linhas de grade',
- textToNumber: 'Texto para número',
},
align: {
left: 'esquerda',
diff --git a/packages/sheets-ui/src/locale/ru-RU.ts b/packages/sheets-ui/src/locale/ru-RU.ts
index f4fee9fbf7..c5ef4d1a5f 100644
--- a/packages/sheets-ui/src/locale/ru-RU.ts
+++ b/packages/sheets-ui/src/locale/ru-RU.ts
@@ -68,7 +68,6 @@ const locale: typeof enUS = {
},
more: 'Больше',
toggleGridlines: 'Переключить сетку',
- textToNumber: 'Преобразовать текст в число',
},
align: {
left: 'Лево',
diff --git a/packages/sheets-ui/src/locale/sk-SK.ts b/packages/sheets-ui/src/locale/sk-SK.ts
index c65f4943bd..97f4e86da2 100644
--- a/packages/sheets-ui/src/locale/sk-SK.ts
+++ b/packages/sheets-ui/src/locale/sk-SK.ts
@@ -68,7 +68,6 @@ const locale: typeof enUS = {
},
more: 'Viac',
toggleGridlines: 'Prepnúť mriežku',
- textToNumber: 'Text na číslo',
},
align: {
left: 'vľavo',
diff --git a/packages/sheets-ui/src/locale/vi-VN.ts b/packages/sheets-ui/src/locale/vi-VN.ts
index 0a7b95e550..19c40ab35f 100644
--- a/packages/sheets-ui/src/locale/vi-VN.ts
+++ b/packages/sheets-ui/src/locale/vi-VN.ts
@@ -68,7 +68,6 @@ const locale: typeof enUS = {
},
more: 'Thêm',
toggleGridlines: 'Chuyển đổi đường lưới',
- textToNumber: 'Chuyển văn bản thành số',
},
align: {
left: 'Căn trái',
diff --git a/packages/sheets-ui/src/locale/zh-CN.ts b/packages/sheets-ui/src/locale/zh-CN.ts
index 14b2005b47..dc6e2bc955 100644
--- a/packages/sheets-ui/src/locale/zh-CN.ts
+++ b/packages/sheets-ui/src/locale/zh-CN.ts
@@ -68,7 +68,6 @@ const locale: typeof enUS = {
},
more: '更多',
toggleGridlines: '切换网格线',
- textToNumber: '文本转数字',
},
align: {
left: '左对齐',
diff --git a/packages/sheets-ui/src/locale/zh-HK.ts b/packages/sheets-ui/src/locale/zh-HK.ts
index c00567bfa2..a0c2093324 100644
--- a/packages/sheets-ui/src/locale/zh-HK.ts
+++ b/packages/sheets-ui/src/locale/zh-HK.ts
@@ -68,7 +68,6 @@ const locale: typeof enUS = {
},
more: '更多',
toggleGridlines: '切換網格線',
- textToNumber: '文字轉數字',
},
align: {
left: '靠左對齊',
diff --git a/packages/sheets-ui/src/locale/zh-TW.ts b/packages/sheets-ui/src/locale/zh-TW.ts
index c00567bfa2..a0c2093324 100644
--- a/packages/sheets-ui/src/locale/zh-TW.ts
+++ b/packages/sheets-ui/src/locale/zh-TW.ts
@@ -68,7 +68,6 @@ const locale: typeof enUS = {
},
more: '更多',
toggleGridlines: '切換網格線',
- textToNumber: '文字轉數字',
},
align: {
left: '靠左對齊',
diff --git a/packages/sheets-ui/src/menu/schema.ts b/packages/sheets-ui/src/menu/schema.ts
index 554b2ec207..5c6fb3420f 100644
--- a/packages/sheets-ui/src/menu/schema.ts
+++ b/packages/sheets-ui/src/menu/schema.ts
@@ -50,7 +50,7 @@ import {
SetWorksheetRowIsAutoHeightCommand,
ToggleGridlinesCommand,
} from '@univerjs/sheets';
-import { ContextMenuGroup, ContextMenuPosition, RibbonDataGroup, RibbonPosition, RibbonStartGroup } from '@univerjs/ui';
+import { ContextMenuGroup, ContextMenuPosition, RibbonPosition, RibbonStartGroup } from '@univerjs/ui';
import {
SheetCopyCommand,
SheetCutCommand,
@@ -185,7 +185,7 @@ import {
RenameSheetMenuItemFactory,
ShowMenuItemFactory,
} from './sheet.menu';
-import { Text2NumberContextMenuItemFactory, Text2NumberToolbarMenuItemFactory, TEXT_TO_NUMBER_CONTEXT_MENU_ID, TEXT_TO_NUMBER_TOOLBAR_MENU_ID } from './text-to-number.menu';
+import { Text2NumberContextMenuItemFactory, TEXT_TO_NUMBER_CONTEXT_MENU_ID } from './text-to-number.menu';
export const menuSchema: MenuSchemaType = {
[RibbonPosition.START]: {
@@ -302,14 +302,6 @@ export const menuSchema: MenuSchemaType = {
},
},
},
- [RibbonPosition.DATA]: {
- [RibbonDataGroup.OTHERS]: {
- [TEXT_TO_NUMBER_TOOLBAR_MENU_ID]: {
- order: 0,
- menuItemFactory: Text2NumberToolbarMenuItemFactory,
- },
- },
- },
[ContextMenuPosition.MAIN_AREA]: {
[ContextMenuGroup.QUICK]: ({
quickLayout: 'tile',
diff --git a/packages/sheets-ui/src/menu/text-to-number.menu.ts b/packages/sheets-ui/src/menu/text-to-number.menu.ts
index aa989ab5a2..492b9e535f 100644
--- a/packages/sheets-ui/src/menu/text-to-number.menu.ts
+++ b/packages/sheets-ui/src/menu/text-to-number.menu.ts
@@ -74,22 +74,6 @@ const getMenuHiddenByCurrentSelectionChangedObservable$ = (accessor: IAccessor):
});
};
-export const TEXT_TO_NUMBER_TOOLBAR_MENU_ID = 'sheet.toolbar.text-to-number';
-export function Text2NumberToolbarMenuItemFactory(accessor: IAccessor): IMenuButtonItem<LocaleKey> {
- return {
- id: TEXT_TO_NUMBER_TOOLBAR_MENU_ID,
- commandId: TextToNumberCommand.id,
- type: MenuItemType.BUTTON,
- title: 'sheets-ui.toolbar.textToNumber',
- disabled$: getObservableWithExclusiveRange$(accessor, getCurrentRangeDisable$(accessor, {
- workbookTypes: [WorkbookEditablePermission],
- worksheetTypes: [WorksheetEditPermission, WorksheetSetCellValuePermission],
- rangeTypes: [RangeProtectionPermissionEditPoint],
- })),
- hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
- };
-}
-
export const TEXT_TO_NUMBER_CONTEXT_MENU_ID = 'sheet.contextMenu.text-to-number';
export function Text2NumberContextMenuItemFactory(accessor: IAccessor): IMenuButtonItem<LocaleKey> {
return {
@@ -97,7 +81,7 @@ export function Text2NumberContextMenuItemFactory(accessor: IAccessor): IMenuBut
commandId: TextToNumberCommand.id,
type: MenuItemType.BUTTON,
title: 'sheets-ui.rightClick.textToNumber',
- icon: 'PipingIcon',
+ icon: 'ConvertToNumberIcon',
disabled$: getObservableWithExclusiveRange$(accessor, getCurrentRangeDisable$(accessor, {
workbookTypes: [WorkbookEditablePermission],
worksheetTypes: [WorksheetEditPermission, WorksheetSetCellValuePermission],
diff --git a/packages/slides-ui/package.json b/packages/slides-ui/package.json
index fd514be594..880ceba7b8 100644
--- a/packages/slides-ui/package.json
+++ b/packages/slides-ui/package.json
@@ -80,7 +80,7 @@
"@univerjs/docs-ui": "workspace:*",
"@univerjs/drawing": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/slides": "workspace:*",
"@univerjs/ui": "workspace:*"
},
diff --git a/packages/thread-comment-ui/package.json b/packages/thread-comment-ui/package.json
index 893acc1ecb..b9c472382a 100644
--- a/packages/thread-comment-ui/package.json
+++ b/packages/thread-comment-ui/package.json
@@ -77,7 +77,7 @@
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@univerjs/thread-comment": "workspace:*",
"@univerjs/ui": "workspace:*"
},
diff --git a/packages/ui/package.json b/packages/ui/package.json
index f9eae8abeb..b74a006fde 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -90,7 +90,7 @@
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "1.23.0",
+ "@univerjs/icons": "1.24.0",
"@wendellhu/redi": "1.1.2"
},
"devDependencies": {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c9f06949d4..ca0feb6892 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -112,8 +112,8 @@ importers:
specifier: workspace:*
version: link:../../packages/engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/mockdata':
specifier: workspace:*
version: link:../mockdata
@@ -355,8 +355,8 @@ importers:
devDependencies:
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/icons-svg':
specifier: ^1.23.0
version: 1.23.0
@@ -500,8 +500,8 @@ importers:
specifier: workspace:*
version: link:../packages/find-replace
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/mockdata':
specifier: workspace:*
version: link:../common/mockdata
@@ -738,8 +738,8 @@ importers:
specifier: workspace:*
version: link:../design
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -873,8 +873,8 @@ importers:
specifier: ^1.3.0
version: 1.3.0(@types/[email protected])([email protected])
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
class-variance-authority:
specifier: ^0.7.1
version: 0.7.1
@@ -1064,8 +1064,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/ui':
specifier: workspace:*
version: link:../ui
@@ -1165,8 +1165,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/ui':
specifier: workspace:*
version: link:../ui
@@ -1208,8 +1208,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/thread-comment':
specifier: workspace:*
version: link:../thread-comment
@@ -1257,8 +1257,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/ui':
specifier: workspace:*
version: link:../ui
@@ -1331,8 +1331,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/ui':
specifier: workspace:*
version: link:../ui
@@ -1442,8 +1442,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/ui':
specifier: workspace:*
version: link:../ui
@@ -1632,8 +1632,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -1687,8 +1687,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -1773,8 +1773,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -1945,8 +1945,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/rpc':
specifier: workspace:*
version: link:../rpc
@@ -2074,8 +2074,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2160,8 +2160,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2246,8 +2246,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2323,8 +2323,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2394,8 +2394,8 @@ importers:
specifier: workspace:*
version: link:../engine-formula
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2480,8 +2480,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2563,8 +2563,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2627,8 +2627,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/protocol':
specifier: workspace:*
version: link:../protocol
@@ -2710,8 +2710,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/slides':
specifier: workspace:*
version: link:../slides
@@ -2794,8 +2794,8 @@ importers:
specifier: workspace:*
version: link:../docs-ui
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@univerjs/thread-comment':
specifier: workspace:*
version: link:../thread-comment
@@ -2840,8 +2840,8 @@ importers:
specifier: workspace:*
version: link:../engine-render
'@univerjs/icons':
- specifier: 1.23.0
+ specifier: 1.24.0
'@wendellhu/redi':
specifier: 1.1.2
version: 1.1.2([email protected])
@@ -6826,8 +6826,8 @@ packages:
'@univerjs/[email protected]':
resolution: {integrity: sha512-U0b/jjyu+z+J65l8g3I4KS7Ownun3KaBuoBglOg+SkIn58jEi/LyjzHyUzsUp3qXFmx1C74T0I7zYCUpPhTULA==}
- '@univerjs/[email protected]':
- resolution: {integrity: sha512-Gvfw6f3fY5qZgc1EbPFVUP0kjOpjhPvDGIfPQNtDL20m6n2EmYM4mfk+xyXOM13VU8wg3WtYt6TMJ4B/ovylPA==}
+ '@univerjs/[email protected]':
+ resolution: {integrity: sha512-fvPzG6EbJxg82czgwvvyqBMFuVHY+WQQgOCNA+/CBR362ikwGhliyZ8j1QpBjv7ebwCIxMVYQlGy3Zcon0mTtw==}
peerDependencies:
react: 19.2.7
react-dom: 19.2.7
@@ -14517,7 +14517,7 @@ snapshots:
'@univerjs/[email protected]': {}
dependencies:
react: 19.2.7
react-dom: 19.2.7([email protected])