@univerjs/sheets-formula-ui 1.0.3 → 1.1.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 +361 -215
- package/lib/cjs/locale/ar-SA.js +14 -0
- package/lib/cjs/locale/ca-ES.js +14 -0
- package/lib/cjs/locale/de-DE.js +14 -0
- package/lib/cjs/locale/en-US.js +14 -0
- package/lib/cjs/locale/es-ES.js +14 -0
- package/lib/cjs/locale/fa-IR.js +14 -0
- package/lib/cjs/locale/fr-FR.js +14 -0
- package/lib/cjs/locale/id-ID.js +14 -0
- package/lib/cjs/locale/it-IT.js +14 -0
- package/lib/cjs/locale/ja-JP.js +14 -0
- package/lib/cjs/locale/ko-KR.js +14 -0
- package/lib/cjs/locale/pl-PL.js +14 -0
- package/lib/cjs/locale/pt-BR.js +14 -0
- package/lib/cjs/locale/ru-RU.js +14 -0
- package/lib/cjs/locale/sk-SK.js +14 -0
- package/lib/cjs/locale/vi-VN.js +14 -0
- package/lib/cjs/locale/zh-CN.js +14 -0
- package/lib/cjs/locale/zh-HK.js +14 -0
- package/lib/cjs/locale/zh-TW.js +14 -0
- package/lib/es/index.js +366 -215
- package/lib/es/locale/ar-SA.js +14 -0
- package/lib/es/locale/ca-ES.js +14 -0
- package/lib/es/locale/de-DE.js +14 -0
- package/lib/es/locale/en-US.js +14 -0
- package/lib/es/locale/es-ES.js +14 -0
- package/lib/es/locale/fa-IR.js +14 -0
- package/lib/es/locale/fr-FR.js +14 -0
- package/lib/es/locale/id-ID.js +14 -0
- package/lib/es/locale/it-IT.js +14 -0
- package/lib/es/locale/ja-JP.js +14 -0
- package/lib/es/locale/ko-KR.js +14 -0
- package/lib/es/locale/pl-PL.js +14 -0
- package/lib/es/locale/pt-BR.js +14 -0
- package/lib/es/locale/ru-RU.js +14 -0
- package/lib/es/locale/sk-SK.js +14 -0
- package/lib/es/locale/vi-VN.js +14 -0
- package/lib/es/locale/zh-CN.js +14 -0
- package/lib/es/locale/zh-HK.js +14 -0
- package/lib/es/locale/zh-TW.js +14 -0
- package/lib/index.css +4 -20
- package/lib/index.js +366 -215
- package/lib/locale/ar-SA.js +14 -0
- package/lib/locale/ca-ES.js +14 -0
- package/lib/locale/de-DE.js +14 -0
- package/lib/locale/en-US.js +14 -0
- package/lib/locale/es-ES.js +14 -0
- package/lib/locale/fa-IR.js +14 -0
- package/lib/locale/fr-FR.js +14 -0
- package/lib/locale/id-ID.js +14 -0
- package/lib/locale/it-IT.js +14 -0
- package/lib/locale/ja-JP.js +14 -0
- package/lib/locale/ko-KR.js +14 -0
- package/lib/locale/pl-PL.js +14 -0
- package/lib/locale/pt-BR.js +14 -0
- package/lib/locale/ru-RU.js +14 -0
- package/lib/locale/sk-SK.js +14 -0
- package/lib/locale/vi-VN.js +14 -0
- package/lib/locale/zh-CN.js +14 -0
- package/lib/locale/zh-HK.js +14 -0
- package/lib/locale/zh-TW.js +14 -0
- package/lib/types/commands/operations/calculation-options.operation.d.ts +19 -0
- package/lib/types/controllers/formula-alert-render.controller.d.ts +14 -6
- package/lib/types/index.d.ts +1 -1
- package/lib/types/locale/en-US.d.ts +14 -0
- package/lib/types/menu/menu.d.ts +1 -0
- package/lib/types/mobile-plugin.d.ts +0 -1
- package/lib/types/plugin.d.ts +0 -1
- package/lib/types/views/calculation-options/CalculationOptions.d.ts +19 -0
- package/lib/types/views/calculation-options/interface.d.ts +17 -0
- package/lib/types/views/formula-editor/formula-embed-integration.service.d.ts +2 -0
- package/lib/types/views/formula-editor/hooks/use-focus.d.ts +1 -5
- package/lib/types/views/formula-editor/hooks/use-highlight.d.ts +2 -8
- package/lib/umd/index.js +5 -5
- 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 +15 -15
- package/lib/types/controllers/formula-reorder.controller.d.ts +0 -27
package/lib/locale/ar-SA.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
//#region src/locale/ar-SA.ts
|
|
2
2
|
const locale = { "sheets-formula-ui": {
|
|
3
|
+
calculation: {
|
|
4
|
+
circularTitle: "مرجع دائري",
|
|
5
|
+
title: "خيارات الحساب",
|
|
6
|
+
enable: "تمكين الحساب التكراري",
|
|
7
|
+
iterations: "الحد الأقصى للتكرارات (1–{0})",
|
|
8
|
+
change: "الحد الأقصى للتغيير",
|
|
9
|
+
workbook: "تنطبق هذه الإعدادات على المصنف الحالي.",
|
|
10
|
+
invalidIterations: "يجب أن يكون الحد الأقصى للتكرارات عددًا صحيحًا من 1 إلى {0}.",
|
|
11
|
+
invalidChange: "يجب أن يكون الحد الأقصى للتغيير عددًا موجبًا ومحدودًا.",
|
|
12
|
+
cancel: "إلغاء",
|
|
13
|
+
confirm: "موافق",
|
|
14
|
+
circular: "تحتوي هذه الصيغة على مرجع دائري. افتح خيارات الحساب لتمكين الحساب التكراري.",
|
|
15
|
+
action: "الحساب التكراري"
|
|
16
|
+
},
|
|
3
17
|
shortcut: { "quick-sum": "مجموع سريع" },
|
|
4
18
|
insert: {
|
|
5
19
|
tooltip: "دوال",
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
//#region src/locale/ca-ES.ts
|
|
2
2
|
const locale = { "sheets-formula-ui": {
|
|
3
|
+
calculation: {
|
|
4
|
+
circularTitle: "Referència circular",
|
|
5
|
+
title: "Opcions de càlcul",
|
|
6
|
+
enable: "Activa el càlcul iteratiu",
|
|
7
|
+
iterations: "Iteracions màximes (1–{0})",
|
|
8
|
+
change: "Canvi màxim",
|
|
9
|
+
workbook: "Aquesta configuració s’aplica al llibre actual.",
|
|
10
|
+
invalidIterations: "El nombre màxim d’iteracions ha de ser un enter d’1 a {0}.",
|
|
11
|
+
invalidChange: "El canvi màxim ha de ser un nombre positiu i finit.",
|
|
12
|
+
cancel: "Cancel·la",
|
|
13
|
+
confirm: "D’acord",
|
|
14
|
+
circular: "Aquesta fórmula conté una referència circular. Obriu les opcions de càlcul per activar el càlcul iteratiu.",
|
|
15
|
+
action: "Càlcul iteratiu"
|
|
16
|
+
},
|
|
3
17
|
shortcut: { "quick-sum": "Suma ràpida" },
|
|
4
18
|
insert: {
|
|
5
19
|
tooltip: "Funcions",
|
package/lib/locale/de-DE.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
//#region src/locale/de-DE.ts
|
|
2
2
|
const locale = { "sheets-formula-ui": {
|
|
3
|
+
calculation: {
|
|
4
|
+
circularTitle: "Zirkelbezug",
|
|
5
|
+
title: "Berechnungsoptionen",
|
|
6
|
+
enable: "Iterative Berechnung aktivieren",
|
|
7
|
+
iterations: "Maximale Iterationen (1–{0})",
|
|
8
|
+
change: "Maximale Änderung",
|
|
9
|
+
workbook: "Diese Einstellungen gelten für die aktuelle Arbeitsmappe.",
|
|
10
|
+
invalidIterations: "Die maximale Iterationszahl muss eine ganze Zahl von 1 bis {0} sein.",
|
|
11
|
+
invalidChange: "Die maximale Änderung muss eine endliche positive Zahl sein.",
|
|
12
|
+
cancel: "Abbrechen",
|
|
13
|
+
confirm: "OK",
|
|
14
|
+
circular: "Diese Formel enthält einen Zirkelbezug. Öffnen Sie die Berechnungsoptionen, um die iterative Berechnung zu aktivieren.",
|
|
15
|
+
action: "Iterative Berechnung"
|
|
16
|
+
},
|
|
3
17
|
shortcut: { "quick-sum": "Schnelle Summe" },
|
|
4
18
|
insert: {
|
|
5
19
|
tooltip: "Funktionen",
|
package/lib/locale/en-US.js
CHANGED
|
@@ -15,6 +15,20 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
const locale = { "sheets-formula-ui": {
|
|
18
|
+
calculation: {
|
|
19
|
+
circularTitle: "Circular Reference",
|
|
20
|
+
title: "Calculation Options",
|
|
21
|
+
enable: "Enable iterative calculation",
|
|
22
|
+
iterations: "Maximum iterations (1–{0})",
|
|
23
|
+
change: "Maximum change",
|
|
24
|
+
workbook: "These settings apply to the current workbook.",
|
|
25
|
+
invalidIterations: "Maximum iterations must be an integer from 1 to {0}.",
|
|
26
|
+
invalidChange: "Maximum change must be a finite positive number.",
|
|
27
|
+
cancel: "Cancel",
|
|
28
|
+
confirm: "OK",
|
|
29
|
+
circular: "This formula contains a circular reference. Open Calculation Options to enable iterative calculation.",
|
|
30
|
+
action: "Iterative Calculation"
|
|
31
|
+
},
|
|
18
32
|
shortcut: { "quick-sum": "Quick Sum" },
|
|
19
33
|
insert: {
|
|
20
34
|
tooltip: "Functions",
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
//#region src/locale/es-ES.ts
|
|
2
2
|
const locale = { "sheets-formula-ui": {
|
|
3
|
+
calculation: {
|
|
4
|
+
circularTitle: "Referencia circular",
|
|
5
|
+
title: "Opciones de cálculo",
|
|
6
|
+
enable: "Habilitar cálculo iterativo",
|
|
7
|
+
iterations: "Iteraciones máximas (1–{0})",
|
|
8
|
+
change: "Cambio máximo",
|
|
9
|
+
workbook: "Esta configuración se aplica al libro actual.",
|
|
10
|
+
invalidIterations: "Las iteraciones máximas deben ser un número entero de 1 a {0}.",
|
|
11
|
+
invalidChange: "El cambio máximo debe ser un número positivo y finito.",
|
|
12
|
+
cancel: "Cancelar",
|
|
13
|
+
confirm: "Aceptar",
|
|
14
|
+
circular: "Esta fórmula contiene una referencia circular. Abra las opciones de cálculo para habilitar el cálculo iterativo.",
|
|
15
|
+
action: "Cálculo iterativo"
|
|
16
|
+
},
|
|
3
17
|
shortcut: { "quick-sum": "Suma rápida" },
|
|
4
18
|
insert: {
|
|
5
19
|
tooltip: "Funciones",
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
//#region src/locale/fa-IR.ts
|
|
2
2
|
const locale = { "sheets-formula-ui": {
|
|
3
|
+
calculation: {
|
|
4
|
+
circularTitle: "ارجاع دوری",
|
|
5
|
+
title: "گزینههای محاسبه",
|
|
6
|
+
enable: "فعالسازی محاسبه تکراری",
|
|
7
|
+
iterations: "حداکثر تکرار (1–{0})",
|
|
8
|
+
change: "حداکثر تغییر",
|
|
9
|
+
workbook: "این تنظیمات برای کارپوشه فعلی اعمال میشوند.",
|
|
10
|
+
invalidIterations: "حداکثر تکرار باید عددی صحیح از 1 تا {0} باشد.",
|
|
11
|
+
invalidChange: "حداکثر تغییر باید عددی مثبت و متناهی باشد.",
|
|
12
|
+
cancel: "لغو",
|
|
13
|
+
confirm: "تأیید",
|
|
14
|
+
circular: "این فرمول ارجاع دوری دارد. برای فعالسازی محاسبه تکراری گزینههای محاسبه را باز کنید.",
|
|
15
|
+
action: "محاسبه تکراری"
|
|
16
|
+
},
|
|
3
17
|
shortcut: { "quick-sum": "جمع سریع" },
|
|
4
18
|
insert: {
|
|
5
19
|
tooltip: "توابع",
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
//#region src/locale/fr-FR.ts
|
|
2
2
|
const locale = { "sheets-formula-ui": {
|
|
3
|
+
calculation: {
|
|
4
|
+
circularTitle: "Référence circulaire",
|
|
5
|
+
title: "Options de calcul",
|
|
6
|
+
enable: "Activer le calcul itératif",
|
|
7
|
+
iterations: "Nombre maximal d’itérations (1–{0})",
|
|
8
|
+
change: "Écart maximal",
|
|
9
|
+
workbook: "Ces paramètres s’appliquent au classeur actuel.",
|
|
10
|
+
invalidIterations: "Le nombre maximal d’itérations doit être un entier de 1 à {0}.",
|
|
11
|
+
invalidChange: "L’écart maximal doit être un nombre positif et fini.",
|
|
12
|
+
cancel: "Annuler",
|
|
13
|
+
confirm: "OK",
|
|
14
|
+
circular: "Cette formule contient une référence circulaire. Ouvrez les options de calcul pour activer le calcul itératif.",
|
|
15
|
+
action: "Calcul itératif"
|
|
16
|
+
},
|
|
3
17
|
shortcut: { "quick-sum": "Somme rapide" },
|
|
4
18
|
insert: {
|
|
5
19
|
tooltip: "Fonctions",
|
package/lib/locale/id-ID.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
//#region src/locale/id-ID.ts
|
|
2
2
|
const locale = { "sheets-formula-ui": {
|
|
3
|
+
calculation: {
|
|
4
|
+
circularTitle: "Referensi Sirkular",
|
|
5
|
+
title: "Opsi Perhitungan",
|
|
6
|
+
enable: "Aktifkan perhitungan iteratif",
|
|
7
|
+
iterations: "Iterasi maksimum (1–{0})",
|
|
8
|
+
change: "Perubahan maksimum",
|
|
9
|
+
workbook: "Pengaturan ini berlaku untuk buku kerja saat ini.",
|
|
10
|
+
invalidIterations: "Iterasi maksimum harus berupa bilangan bulat dari 1 hingga {0}.",
|
|
11
|
+
invalidChange: "Perubahan maksimum harus berupa bilangan positif yang terbatas.",
|
|
12
|
+
cancel: "Batal",
|
|
13
|
+
confirm: "OK",
|
|
14
|
+
circular: "Rumus ini berisi referensi melingkar. Buka Opsi Perhitungan untuk mengaktifkan perhitungan iteratif.",
|
|
15
|
+
action: "Perhitungan Iteratif"
|
|
16
|
+
},
|
|
3
17
|
shortcut: { "quick-sum": "Jumlah Cepat" },
|
|
4
18
|
insert: {
|
|
5
19
|
tooltip: "Fungsi",
|
package/lib/locale/it-IT.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
//#region src/locale/it-IT.ts
|
|
2
2
|
const locale = { "sheets-formula-ui": {
|
|
3
|
+
calculation: {
|
|
4
|
+
circularTitle: "Riferimento circolare",
|
|
5
|
+
title: "Opzioni di calcolo",
|
|
6
|
+
enable: "Abilita calcolo iterativo",
|
|
7
|
+
iterations: "Iterazioni massime (1–{0})",
|
|
8
|
+
change: "Variazione massima",
|
|
9
|
+
workbook: "Queste impostazioni si applicano alla cartella di lavoro corrente.",
|
|
10
|
+
invalidIterations: "Il numero massimo di iterazioni deve essere un intero da 1 a {0}.",
|
|
11
|
+
invalidChange: "La variazione massima deve essere un numero positivo e finito.",
|
|
12
|
+
cancel: "Annulla",
|
|
13
|
+
confirm: "OK",
|
|
14
|
+
circular: "La formula contiene un riferimento circolare. Aprire le opzioni di calcolo per abilitare il calcolo iterativo.",
|
|
15
|
+
action: "Calcolo iterativo"
|
|
16
|
+
},
|
|
3
17
|
shortcut: { "quick-sum": "Somma rapida" },
|
|
4
18
|
insert: {
|
|
5
19
|
tooltip: "Funzioni",
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
//#region src/locale/ja-JP.ts
|
|
2
2
|
const locale = { "sheets-formula-ui": {
|
|
3
|
+
calculation: {
|
|
4
|
+
circularTitle: "循環参照",
|
|
5
|
+
title: "計算オプション",
|
|
6
|
+
enable: "反復計算を有効にする",
|
|
7
|
+
iterations: "最大反復回数(1~{0})",
|
|
8
|
+
change: "最大変化量",
|
|
9
|
+
workbook: "この設定は現在のブックに適用されます。",
|
|
10
|
+
invalidIterations: "最大反復回数は 1~{0} の整数である必要があります。",
|
|
11
|
+
invalidChange: "最大変化量は有限の正の数である必要があります。",
|
|
12
|
+
cancel: "キャンセル",
|
|
13
|
+
confirm: "OK",
|
|
14
|
+
circular: "この数式には循環参照があります。計算オプションで反復計算を有効にしてください。",
|
|
15
|
+
action: "反復計算"
|
|
16
|
+
},
|
|
3
17
|
shortcut: { "quick-sum": "クイック合計" },
|
|
4
18
|
insert: {
|
|
5
19
|
tooltip: "関数",
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
//#region src/locale/ko-KR.ts
|
|
2
2
|
const locale = { "sheets-formula-ui": {
|
|
3
|
+
calculation: {
|
|
4
|
+
circularTitle: "순환 참조",
|
|
5
|
+
title: "계산 옵션",
|
|
6
|
+
enable: "반복 계산 사용",
|
|
7
|
+
iterations: "최대 반복 횟수 (1–{0})",
|
|
8
|
+
change: "최대 변화값",
|
|
9
|
+
workbook: "현재 통합 문서에 적용됩니다.",
|
|
10
|
+
invalidIterations: "최대 반복 횟수는 1에서 {0} 사이의 정수여야 합니다.",
|
|
11
|
+
invalidChange: "최대 변화값은 유한한 양수여야 합니다.",
|
|
12
|
+
cancel: "취소",
|
|
13
|
+
confirm: "확인",
|
|
14
|
+
circular: "이 수식에 순환 참조가 있습니다. 계산 옵션에서 반복 계산을 사용하세요.",
|
|
15
|
+
action: "반복 계산"
|
|
16
|
+
},
|
|
3
17
|
shortcut: { "quick-sum": "빠른 합계" },
|
|
4
18
|
insert: {
|
|
5
19
|
tooltip: "함수",
|
package/lib/locale/pl-PL.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
//#region src/locale/pl-PL.ts
|
|
2
2
|
const locale = { "sheets-formula-ui": {
|
|
3
|
+
calculation: {
|
|
4
|
+
circularTitle: "Odwołanie cykliczne",
|
|
5
|
+
title: "Opcje obliczeń",
|
|
6
|
+
enable: "Włącz obliczenia iteracyjne",
|
|
7
|
+
iterations: "Maksymalna liczba iteracji (1–{0})",
|
|
8
|
+
change: "Maksymalna zmiana",
|
|
9
|
+
workbook: "Ustawienia dotyczą bieżącego skoroszytu.",
|
|
10
|
+
invalidIterations: "Maksymalna liczba iteracji musi być liczbą całkowitą od 1 do {0}.",
|
|
11
|
+
invalidChange: "Maksymalna zmiana musi być skończoną liczbą dodatnią.",
|
|
12
|
+
cancel: "Anuluj",
|
|
13
|
+
confirm: "OK",
|
|
14
|
+
circular: "Formuła zawiera odwołanie cykliczne. Otwórz opcje obliczeń, aby włączyć obliczenia iteracyjne.",
|
|
15
|
+
action: "Obliczenia iteracyjne"
|
|
16
|
+
},
|
|
3
17
|
shortcut: { "quick-sum": "Szybka suma" },
|
|
4
18
|
insert: {
|
|
5
19
|
tooltip: "Funkcje",
|
package/lib/locale/pt-BR.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
//#region src/locale/pt-BR.ts
|
|
2
2
|
const locale = { "sheets-formula-ui": {
|
|
3
|
+
calculation: {
|
|
4
|
+
circularTitle: "Referência circular",
|
|
5
|
+
title: "Opções de cálculo",
|
|
6
|
+
enable: "Habilitar cálculo iterativo",
|
|
7
|
+
iterations: "Iterações máximas (1–{0})",
|
|
8
|
+
change: "Alteração máxima",
|
|
9
|
+
workbook: "As configurações se aplicam à pasta de trabalho atual.",
|
|
10
|
+
invalidIterations: "O número máximo de iterações deve ser um inteiro de 1 a {0}.",
|
|
11
|
+
invalidChange: "A alteração máxima deve ser um número positivo e finito.",
|
|
12
|
+
cancel: "Cancelar",
|
|
13
|
+
confirm: "OK",
|
|
14
|
+
circular: "Esta fórmula contém uma referência circular. Abra as opções de cálculo para habilitar o cálculo iterativo.",
|
|
15
|
+
action: "Cálculo iterativo"
|
|
16
|
+
},
|
|
3
17
|
shortcut: { "quick-sum": "Soma Rápida" },
|
|
4
18
|
insert: {
|
|
5
19
|
tooltip: "Funções",
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
//#region src/locale/ru-RU.ts
|
|
2
2
|
const locale = { "sheets-formula-ui": {
|
|
3
|
+
calculation: {
|
|
4
|
+
circularTitle: "Циклическая ссылка",
|
|
5
|
+
title: "Параметры вычислений",
|
|
6
|
+
enable: "Включить итеративные вычисления",
|
|
7
|
+
iterations: "Максимум итераций (1–{0})",
|
|
8
|
+
change: "Максимальное изменение",
|
|
9
|
+
workbook: "Настройки применяются к текущей книге.",
|
|
10
|
+
invalidIterations: "Максимальное число итераций должно быть целым числом от 1 до {0}.",
|
|
11
|
+
invalidChange: "Максимальное изменение должно быть конечным положительным числом.",
|
|
12
|
+
cancel: "Отмена",
|
|
13
|
+
confirm: "ОК",
|
|
14
|
+
circular: "Формула содержит циклическую ссылку. Откройте параметры вычислений, чтобы включить итерации.",
|
|
15
|
+
action: "Итеративные вычисления"
|
|
16
|
+
},
|
|
3
17
|
shortcut: { "quick-sum": "Быстрая сумма" },
|
|
4
18
|
insert: {
|
|
5
19
|
tooltip: "Функции",
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
//#region src/locale/sk-SK.ts
|
|
2
2
|
const locale = { "sheets-formula-ui": {
|
|
3
|
+
calculation: {
|
|
4
|
+
circularTitle: "Kruhový odkaz",
|
|
5
|
+
title: "Možnosti výpočtu",
|
|
6
|
+
enable: "Povoliť iteratívny výpočet",
|
|
7
|
+
iterations: "Maximálny počet iterácií (1–{0})",
|
|
8
|
+
change: "Maximálna zmena",
|
|
9
|
+
workbook: "Nastavenia platia pre aktuálny zošit.",
|
|
10
|
+
invalidIterations: "Maximálny počet iterácií musí byť celé číslo od 1 do {0}.",
|
|
11
|
+
invalidChange: "Maximálna zmena musí byť konečné kladné číslo.",
|
|
12
|
+
cancel: "Zrušiť",
|
|
13
|
+
confirm: "OK",
|
|
14
|
+
circular: "Vzorec obsahuje kruhový odkaz. Otvorte možnosti výpočtu a povoľte iteratívny výpočet.",
|
|
15
|
+
action: "Iteratívny výpočet"
|
|
16
|
+
},
|
|
3
17
|
shortcut: { "quick-sum": "Rýchly súčet" },
|
|
4
18
|
insert: {
|
|
5
19
|
tooltip: "Funkcie",
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
//#region src/locale/vi-VN.ts
|
|
2
2
|
const locale = { "sheets-formula-ui": {
|
|
3
|
+
calculation: {
|
|
4
|
+
circularTitle: "Tham chiếu vòng",
|
|
5
|
+
title: "Tùy chọn tính toán",
|
|
6
|
+
enable: "Bật tính toán lặp",
|
|
7
|
+
iterations: "Số lần lặp tối đa (1–{0})",
|
|
8
|
+
change: "Mức thay đổi tối đa",
|
|
9
|
+
workbook: "Các thiết lập áp dụng cho sổ làm việc hiện tại.",
|
|
10
|
+
invalidIterations: "Số lần lặp tối đa phải là số nguyên từ 1 đến {0}.",
|
|
11
|
+
invalidChange: "Mức thay đổi tối đa phải là số dương hữu hạn.",
|
|
12
|
+
cancel: "Hủy",
|
|
13
|
+
confirm: "OK",
|
|
14
|
+
circular: "Công thức chứa tham chiếu vòng. Mở tùy chọn tính toán để bật tính toán lặp.",
|
|
15
|
+
action: "Tính toán lặp"
|
|
16
|
+
},
|
|
3
17
|
shortcut: { "quick-sum": "Tổng nhanh" },
|
|
4
18
|
insert: {
|
|
5
19
|
tooltip: "Hàm",
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
//#region src/locale/zh-CN.ts
|
|
2
2
|
const locale = { "sheets-formula-ui": {
|
|
3
|
+
calculation: {
|
|
4
|
+
circularTitle: "循环引用",
|
|
5
|
+
title: "计算选项",
|
|
6
|
+
enable: "启用迭代计算",
|
|
7
|
+
iterations: "最大迭代次数(1~{0})",
|
|
8
|
+
change: "最大误差",
|
|
9
|
+
workbook: "设置应用于当前工作簿。",
|
|
10
|
+
invalidIterations: "最大迭代次数必须是 1~{0} 的整数。",
|
|
11
|
+
invalidChange: "最大误差必须是有限正数。",
|
|
12
|
+
cancel: "取消",
|
|
13
|
+
confirm: "确定",
|
|
14
|
+
circular: "此公式存在循环引用。如需使用迭代计算,请打开计算选项。",
|
|
15
|
+
action: "迭代计算"
|
|
16
|
+
},
|
|
3
17
|
shortcut: { "quick-sum": "快速求和" },
|
|
4
18
|
insert: {
|
|
5
19
|
tooltip: "函数",
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
//#region src/locale/zh-HK.ts
|
|
2
2
|
const locale = { "sheets-formula-ui": {
|
|
3
|
+
calculation: {
|
|
4
|
+
circularTitle: "循環參照",
|
|
5
|
+
title: "計算選項",
|
|
6
|
+
enable: "啟用反覆運算",
|
|
7
|
+
iterations: "反覆運算次數上限(1~{0})",
|
|
8
|
+
change: "最大誤差",
|
|
9
|
+
workbook: "設定套用於目前的活頁簿。",
|
|
10
|
+
invalidIterations: "反覆運算次數上限必須是 1~{0} 的整數。",
|
|
11
|
+
invalidChange: "最大誤差必須是有限正數。",
|
|
12
|
+
cancel: "取消",
|
|
13
|
+
confirm: "確定",
|
|
14
|
+
circular: "此公式存在循環參照。請開啟計算選項以啟用反覆運算。",
|
|
15
|
+
action: "反覆運算"
|
|
16
|
+
},
|
|
3
17
|
shortcut: { "quick-sum": "快速求和" },
|
|
4
18
|
insert: {
|
|
5
19
|
tooltip: "函數",
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
//#region src/locale/zh-TW.ts
|
|
2
2
|
const locale = { "sheets-formula-ui": {
|
|
3
|
+
calculation: {
|
|
4
|
+
circularTitle: "循環參照",
|
|
5
|
+
title: "計算選項",
|
|
6
|
+
enable: "啟用反覆運算",
|
|
7
|
+
iterations: "反覆運算次數上限(1~{0})",
|
|
8
|
+
change: "最大誤差",
|
|
9
|
+
workbook: "設定套用於目前的活頁簿。",
|
|
10
|
+
invalidIterations: "反覆運算次數上限必須是 1~{0} 的整數。",
|
|
11
|
+
invalidChange: "最大誤差必須是有限正數。",
|
|
12
|
+
cancel: "取消",
|
|
13
|
+
confirm: "確定",
|
|
14
|
+
circular: "此公式存在循環參照。請開啟計算選項以啟用反覆運算。",
|
|
15
|
+
action: "反覆運算"
|
|
16
|
+
},
|
|
3
17
|
shortcut: { "quick-sum": "快速求和" },
|
|
4
18
|
insert: {
|
|
5
19
|
tooltip: "函數",
|
|
@@ -0,0 +1,19 @@
|
|
|
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 type { ICommand } from '@univerjs/core';
|
|
17
|
+
export declare const CalculationOptionsOperation: ICommand<{
|
|
18
|
+
unitId?: string;
|
|
19
|
+
}>;
|
|
@@ -15,17 +15,25 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { Workbook } from '@univerjs/core';
|
|
17
17
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
-
import { Disposable, LocaleService } from '@univerjs/core';
|
|
18
|
+
import { Disposable, ICommandService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
19
19
|
import { FormulaDataModel } from '@univerjs/engine-formula';
|
|
20
|
-
import {
|
|
20
|
+
import { SheetSkeletonService, SheetsSelectionsService } from '@univerjs/sheets';
|
|
21
|
+
import { CellAlertManagerService, IEditorBridgeService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
21
22
|
export declare class FormulaAlertRenderController extends Disposable implements IRenderModule {
|
|
22
23
|
private readonly _context;
|
|
23
|
-
private readonly
|
|
24
|
+
private readonly _selectionsService;
|
|
24
25
|
private readonly _cellAlertManagerService;
|
|
25
26
|
private readonly _localeService;
|
|
26
27
|
private readonly _formulaDataModel;
|
|
27
|
-
|
|
28
|
-
private
|
|
29
|
-
private
|
|
28
|
+
private readonly _sheetSkeletonService;
|
|
29
|
+
private readonly _sheetSkeletonManagerService;
|
|
30
|
+
private readonly _commandService;
|
|
31
|
+
private readonly _instanceService;
|
|
32
|
+
private readonly _editorBridgeService;
|
|
33
|
+
private _circularLocations;
|
|
34
|
+
constructor(_context: IRenderContext<Workbook>, _selectionsService: SheetsSelectionsService, _cellAlertManagerService: CellAlertManagerService, _localeService: LocaleService, _formulaDataModel: FormulaDataModel, _sheetSkeletonService: SheetSkeletonService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _instanceService: IUniverInstanceService, _editorBridgeService: IEditorBridgeService);
|
|
35
|
+
private _updateAlert;
|
|
36
|
+
private get _alertKey();
|
|
37
|
+
private _refreshMarkers;
|
|
30
38
|
private _hideAlert;
|
|
31
39
|
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export { ReferenceAbsoluteOperation } from './commands/operations/reference-abso
|
|
|
22
22
|
export { SearchFunctionOperation } from './commands/operations/search-function.operation';
|
|
23
23
|
export { genFormulaRefSelectionStyle } from './common/selection';
|
|
24
24
|
export type { IUniverSheetsFormulaUIConfig } from './config/config';
|
|
25
|
-
export { FormulaReorderController } from './controllers/formula-reorder.controller';
|
|
26
25
|
export { menuSchema as SheetsFormulaUIMenuSchema } from './menu/schema';
|
|
27
26
|
export { UniverSheetsFormulaMobileUIPlugin } from './mobile-plugin';
|
|
28
27
|
export { UniverSheetsFormulaUIPlugin } from './plugin';
|
|
@@ -32,6 +31,7 @@ export type { IShowRangeSelectorDialogOptions } from './services/range-selector.
|
|
|
32
31
|
export { RefSelectionsRenderService } from './services/render-services/ref-selections.render.service';
|
|
33
32
|
export { FormulaEditor } from './views/formula-editor/index';
|
|
34
33
|
export type { IFormulaEditorRef } from './views/formula-editor/index';
|
|
34
|
+
export { MORE_FUNCTIONS_COMPONENT } from './views/more-functions/interface';
|
|
35
35
|
export { RangeSelector } from './views/range-selector/index';
|
|
36
36
|
export type { IRangeSelectorInstance, IRangeSelectorProps } from './views/range-selector/index';
|
|
37
37
|
export { MobileRangeSelector } from './views/range-selector/MobileRangeSelector';
|
|
@@ -15,6 +15,20 @@
|
|
|
15
15
|
*/
|
|
16
16
|
declare const locale: {
|
|
17
17
|
'sheets-formula-ui': {
|
|
18
|
+
calculation: {
|
|
19
|
+
circularTitle: string;
|
|
20
|
+
title: string;
|
|
21
|
+
enable: string;
|
|
22
|
+
iterations: string;
|
|
23
|
+
change: string;
|
|
24
|
+
workbook: string;
|
|
25
|
+
invalidIterations: string;
|
|
26
|
+
invalidChange: string;
|
|
27
|
+
cancel: string;
|
|
28
|
+
confirm: string;
|
|
29
|
+
circular: string;
|
|
30
|
+
action: string;
|
|
31
|
+
};
|
|
18
32
|
shortcut: {
|
|
19
33
|
'quick-sum': string;
|
|
20
34
|
};
|
package/lib/types/menu/menu.d.ts
CHANGED
|
@@ -30,3 +30,4 @@ export declare const InsertDatabaseFunctionMenuItemFactory: (accessor: IAccessor
|
|
|
30
30
|
export declare function AllFunctionsMenuItemFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
|
|
31
31
|
export declare function CopyFormulaOnlyMenuItemFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
|
|
32
32
|
export declare function PasteFormulaMenuItemFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
|
|
33
|
+
export declare function CalculationOptionsMenuItemFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
export interface ICalculationOptionsProps {
|
|
17
|
+
unitId: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function CalculationOptions({ unitId }: ICalculationOptionsProps): import("react").JSX.Element;
|
|
@@ -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
|
+
export declare const CALCULATION_OPTIONS_COMPONENT = "sheets-formula-ui.calculation-options";
|
|
17
|
+
export declare const CALCULATION_OPTIONS_DIALOG = "sheets-formula-ui.calculation-options-dialog";
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IDisposable } from '@univerjs/core';
|
|
17
|
+
import type { IEditorService } from '@univerjs/docs-ui';
|
|
17
18
|
export declare const FORMULA_EMBED_INTERACTION_BOUNDARY_OWNER_ATTRIBUTE = "data-embed-interaction-boundary-owner";
|
|
18
19
|
export declare const FORMULA_EMBED_RUNTIME_FOCUS_ROLE_ATTRIBUTE = "data-embed-runtime-focus-role";
|
|
19
20
|
export declare const FORMULA_EMBED_ID_ATTRIBUTE = "data-embed-id";
|
|
@@ -48,6 +49,7 @@ export declare const IFormulaEmbedInteractionBoundaryService: import("@wendellhu
|
|
|
48
49
|
interface IRegisterFormulaEditorRuntimePortalOptions {
|
|
49
50
|
embedId: string;
|
|
50
51
|
editorId: string;
|
|
52
|
+
editorService: IEditorService;
|
|
51
53
|
ownerDocument?: Document;
|
|
52
54
|
interactionBoundaryService?: IFormulaEmbedInteractionBoundaryService;
|
|
53
55
|
focusCoordinator?: IFormulaEmbedRuntimeFocusCoordinator;
|
|
@@ -15,12 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { Editor } from '@univerjs/docs-ui';
|
|
17
17
|
import { IEditorService } from '@univerjs/docs-ui';
|
|
18
|
-
export declare function focusFormulaEditor(editorService: Pick<IEditorService, 'focus'>, editor?: Pick<Editor, 'getEditorId' | 'getSelectionRanges' | 'setSelectionRanges' | 'getDocumentData' | 'docSelectionRenderService'
|
|
19
|
-
editorDOM?: HTMLElement;
|
|
20
|
-
}, offset?: number): void;
|
|
21
|
-
export declare function shouldSkipFormulaEditorMouseUpFocus(_target: EventTarget | null): boolean;
|
|
18
|
+
export declare function focusFormulaEditor(editorService: Pick<IEditorService, 'focus'>, editor?: Pick<Editor, 'getEditorId' | 'getSelectionRanges' | 'setSelectionRanges' | 'getDocumentData' | 'docSelectionRenderService'>, offset?: number): void;
|
|
22
19
|
export declare function shouldRefocusFormulaEditorOnMouseUp(options: {
|
|
23
|
-
target: EventTarget | null;
|
|
24
20
|
isFocusing: boolean | undefined;
|
|
25
21
|
isPointerSelecting: boolean | undefined;
|
|
26
22
|
}): boolean;
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { IDocumentBody, ITextRange, ITextRun, Workbook } from '@univerjs/core';
|
|
17
17
|
import type { Editor } from '@univerjs/docs-ui';
|
|
18
|
+
import type { IFormulaHighlightColors } from '@univerjs/engine-formula';
|
|
18
19
|
import type { ISelectionWithStyle, SheetsSelectionsService } from '@univerjs/sheets';
|
|
19
20
|
import type { INode } from './use-formula-token';
|
|
20
21
|
import { IUniverInstanceService, ThemeService } from '@univerjs/core';
|
|
@@ -54,11 +55,4 @@ export declare function useDocHight(_leadingCharacter?: string): (editor: Editor
|
|
|
54
55
|
*/
|
|
55
56
|
export declare function createFormulaHighlightBody(dataStream: string, textRuns: ITextRun[]): IDocumentBody;
|
|
56
57
|
export declare function createHighlightTextRuns(textRuns: ITextRun[], leadingCharacterLength: number): ITextRun[];
|
|
57
|
-
|
|
58
|
-
formulaRefColors: string[];
|
|
59
|
-
numberColor: string;
|
|
60
|
-
stringColor: string;
|
|
61
|
-
plainTextColor: string;
|
|
62
|
-
}
|
|
63
|
-
export declare function useColor(): IColorMap;
|
|
64
|
-
export {};
|
|
58
|
+
export declare function useColor(): IFormulaHighlightColors;
|