@univerjs/sheets-table-ui 1.0.0-alpha.8 → 1.0.0-beta.1
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 +342 -359
- package/lib/cjs/locale/ar-SA.js +1 -2
- package/lib/cjs/locale/ca-ES.js +4 -5
- package/lib/cjs/locale/de-DE.js +1 -2
- package/lib/cjs/locale/en-US.js +1 -2
- package/lib/cjs/locale/es-ES.js +1 -2
- package/lib/cjs/locale/fa-IR.js +1 -2
- package/lib/cjs/locale/fr-FR.js +1 -2
- package/lib/cjs/locale/id-ID.js +1 -2
- package/lib/cjs/locale/it-IT.js +1 -2
- package/lib/cjs/locale/ja-JP.js +1 -2
- package/lib/cjs/locale/ko-KR.js +1 -2
- package/lib/cjs/locale/pl-PL.js +1 -2
- package/lib/cjs/locale/pt-BR.js +1 -2
- package/lib/cjs/locale/ru-RU.js +1 -2
- package/lib/cjs/locale/sk-SK.js +1 -2
- package/lib/cjs/locale/vi-VN.js +1 -2
- package/lib/cjs/locale/zh-CN.js +1 -2
- package/lib/cjs/locale/zh-HK.js +14 -15
- package/lib/cjs/locale/zh-TW.js +14 -15
- package/lib/es/index.js +346 -363
- package/lib/es/locale/ar-SA.js +1 -2
- package/lib/es/locale/ca-ES.js +4 -5
- package/lib/es/locale/de-DE.js +1 -2
- package/lib/es/locale/en-US.js +1 -2
- package/lib/es/locale/es-ES.js +1 -2
- package/lib/es/locale/fa-IR.js +1 -2
- package/lib/es/locale/fr-FR.js +1 -2
- package/lib/es/locale/id-ID.js +1 -2
- package/lib/es/locale/it-IT.js +1 -2
- package/lib/es/locale/ja-JP.js +1 -2
- package/lib/es/locale/ko-KR.js +1 -2
- package/lib/es/locale/pl-PL.js +1 -2
- package/lib/es/locale/pt-BR.js +1 -2
- package/lib/es/locale/ru-RU.js +1 -2
- package/lib/es/locale/sk-SK.js +1 -2
- package/lib/es/locale/vi-VN.js +1 -2
- package/lib/es/locale/zh-CN.js +1 -2
- package/lib/es/locale/zh-HK.js +14 -15
- package/lib/es/locale/zh-TW.js +14 -15
- package/lib/index.css +187 -67
- package/lib/index.js +346 -363
- package/lib/locale/ar-SA.js +1 -2
- package/lib/locale/ca-ES.js +4 -5
- package/lib/locale/de-DE.js +1 -2
- package/lib/locale/en-US.js +1 -2
- package/lib/locale/es-ES.js +1 -2
- package/lib/locale/fa-IR.js +1 -2
- package/lib/locale/fr-FR.js +1 -2
- package/lib/locale/id-ID.js +1 -2
- package/lib/locale/it-IT.js +1 -2
- package/lib/locale/ja-JP.js +1 -2
- package/lib/locale/ko-KR.js +1 -2
- package/lib/locale/pl-PL.js +1 -2
- package/lib/locale/pt-BR.js +1 -2
- package/lib/locale/ru-RU.js +1 -2
- package/lib/locale/sk-SK.js +1 -2
- package/lib/locale/vi-VN.js +1 -2
- package/lib/locale/zh-CN.js +1 -2
- package/lib/locale/zh-HK.js +14 -15
- package/lib/locale/zh-TW.js +14 -15
- package/lib/types/const.d.ts +1 -0
- package/lib/types/controllers/sheet-table-controls-render.controller.d.ts +6 -2
- package/lib/types/locale/en-US.d.ts +1 -2
- package/lib/types/views/components/SheetTableMenu.d.ts +29 -0
- package/lib/types/views/widgets/table-controls-util.d.ts +1 -7
- package/lib/types/views/widgets/table-controls.shape.d.ts +1 -9
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +14 -14
package/lib/locale/ar-SA.js
CHANGED
|
@@ -21,8 +21,6 @@ const locale = { "sheets-table-ui": {
|
|
|
21
21
|
footer: "تذييل",
|
|
22
22
|
firstLine: "السطر الأول",
|
|
23
23
|
secondLine: "السطر الثاني",
|
|
24
|
-
columnPrefix: "عمود",
|
|
25
|
-
tablePrefix: "جدول",
|
|
26
24
|
tableNameError: "لا يمكن أن يحتوي اسم الجدول على مسافات، ولا يمكن أن يبدأ برقم، ولا يمكن أن يكون مطابقًا لاسم جدول موجود",
|
|
27
25
|
columnMenu: {
|
|
28
26
|
"insert-left": "إدراج عمود جدول إلى اليسار",
|
|
@@ -120,6 +118,7 @@ const locale = { "sheets-table-ui": {
|
|
|
120
118
|
cancel: "إلغاء",
|
|
121
119
|
confirm: "تأكيد",
|
|
122
120
|
"search-placeholder": "استخدم المسافة لفصل الكلمات المفتاحية",
|
|
121
|
+
"input-values-placeholder": "إدخال القيم",
|
|
123
122
|
"select-all": "تحديد الكل"
|
|
124
123
|
}
|
|
125
124
|
} };
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -21,13 +21,11 @@ const locale = { "sheets-table-ui": {
|
|
|
21
21
|
footer: "Peu de pàgina",
|
|
22
22
|
firstLine: "Primera línia",
|
|
23
23
|
secondLine: "Segona línia",
|
|
24
|
-
columnPrefix: "Columna",
|
|
25
|
-
tablePrefix: "Taula",
|
|
26
24
|
tableNameError: "El nom de la taula no pot contenir espais, no pot començar amb un número i no pot ser idèntic a un nom de taula existent",
|
|
27
25
|
columnMenu: {
|
|
28
|
-
"insert-left": "
|
|
29
|
-
"insert-right": "
|
|
30
|
-
delete: "
|
|
26
|
+
"insert-left": "Insereix una columna de taula a l’esquerra",
|
|
27
|
+
"insert-right": "Insereix una columna de taula a la dreta",
|
|
28
|
+
delete: "Suprimeix la columna de la taula"
|
|
31
29
|
},
|
|
32
30
|
sort: {
|
|
33
31
|
"sort-asc": "Ascendent",
|
|
@@ -120,6 +118,7 @@ const locale = { "sheets-table-ui": {
|
|
|
120
118
|
cancel: "Cancel·la",
|
|
121
119
|
confirm: "Confirma",
|
|
122
120
|
"search-placeholder": "Utilitza espai per separar paraules clau",
|
|
121
|
+
"input-values-placeholder": "Introdueix valors",
|
|
123
122
|
"select-all": "Selecciona-ho tot"
|
|
124
123
|
}
|
|
125
124
|
} };
|
package/lib/locale/de-DE.js
CHANGED
|
@@ -21,8 +21,6 @@ const locale = { "sheets-table-ui": {
|
|
|
21
21
|
footer: "Fußzeile",
|
|
22
22
|
firstLine: "Erste Zeile",
|
|
23
23
|
secondLine: "Zweite Zeile",
|
|
24
|
-
columnPrefix: "Spalte",
|
|
25
|
-
tablePrefix: "Tabelle",
|
|
26
24
|
tableNameError: "Tabellenname darf keine Leerzeichen enthalten, darf nicht mit einer Zahl beginnen und darf nicht mit einem bestehenden Tabellennamen identisch sein",
|
|
27
25
|
columnMenu: {
|
|
28
26
|
"insert-left": "1 Tabellenspalte links einfügen",
|
|
@@ -120,6 +118,7 @@ const locale = { "sheets-table-ui": {
|
|
|
120
118
|
cancel: "Abbrechen",
|
|
121
119
|
confirm: "Bestätigen",
|
|
122
120
|
"search-placeholder": "Leerzeichen zum Trennen von Schlüsselwörtern verwenden",
|
|
121
|
+
"input-values-placeholder": "Werte eingeben",
|
|
123
122
|
"select-all": "Alle auswählen"
|
|
124
123
|
}
|
|
125
124
|
} };
|
package/lib/locale/en-US.js
CHANGED
|
@@ -36,8 +36,6 @@ const locale = { "sheets-table-ui": {
|
|
|
36
36
|
footer: "Footer",
|
|
37
37
|
firstLine: "First Line",
|
|
38
38
|
secondLine: "Second Line",
|
|
39
|
-
columnPrefix: "Column",
|
|
40
|
-
tablePrefix: "Table",
|
|
41
39
|
tableNameError: "Table name cannot contain spaces, cannot start with a number, and cannot be identical to an existing table name",
|
|
42
40
|
columnMenu: {
|
|
43
41
|
"insert-left": "Insert 1 table column left",
|
|
@@ -135,6 +133,7 @@ const locale = { "sheets-table-ui": {
|
|
|
135
133
|
cancel: "Cancel",
|
|
136
134
|
confirm: "Confirm",
|
|
137
135
|
"search-placeholder": "Use space to separate keywords",
|
|
136
|
+
"input-values-placeholder": "Input Values",
|
|
138
137
|
"select-all": "Select All"
|
|
139
138
|
}
|
|
140
139
|
} };
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -21,8 +21,6 @@ const locale = { "sheets-table-ui": {
|
|
|
21
21
|
footer: "Pie de página",
|
|
22
22
|
firstLine: "Primera línea",
|
|
23
23
|
secondLine: "Segunda línea",
|
|
24
|
-
columnPrefix: "Columna",
|
|
25
|
-
tablePrefix: "Tabla",
|
|
26
24
|
tableNameError: "El nombre de la tabla no puede contener espacios, no puede comenzar con un número y no puede ser idéntico a un nombre de tabla existente",
|
|
27
25
|
columnMenu: {
|
|
28
26
|
"insert-left": "Insertar 1 columna a la izquierda",
|
|
@@ -120,6 +118,7 @@ const locale = { "sheets-table-ui": {
|
|
|
120
118
|
cancel: "Cancelar",
|
|
121
119
|
confirm: "Confirmar",
|
|
122
120
|
"search-placeholder": "Usa espacio para separar palabras clave",
|
|
121
|
+
"input-values-placeholder": "Introducir valores",
|
|
123
122
|
"select-all": "Seleccionar todo"
|
|
124
123
|
}
|
|
125
124
|
} };
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -21,8 +21,6 @@ const locale = { "sheets-table-ui": {
|
|
|
21
21
|
footer: "پاورقی",
|
|
22
22
|
firstLine: "خط اول",
|
|
23
23
|
secondLine: "خط دوم",
|
|
24
|
-
columnPrefix: "ستون",
|
|
25
|
-
tablePrefix: "جدول",
|
|
26
24
|
tableNameError: "لا يمكن أن يحتوي اسم الجدول على مسافات، ولا يمكن أن يبدأ برقم، ولا يمكن أن يتكرر مع أسماء الجداول الموجودة",
|
|
27
25
|
columnMenu: {
|
|
28
26
|
"insert-left": "درج ۱ ستون جدول در سمت چپ",
|
|
@@ -120,6 +118,7 @@ const locale = { "sheets-table-ui": {
|
|
|
120
118
|
cancel: "انصراف",
|
|
121
119
|
confirm: "تایید",
|
|
122
120
|
"search-placeholder": "برای جداسازی کلیدواژهها از فاصله استفاده کنید",
|
|
121
|
+
"input-values-placeholder": "ورود مقادیر",
|
|
123
122
|
"select-all": "انتخاب همه"
|
|
124
123
|
}
|
|
125
124
|
} };
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -21,8 +21,6 @@ const locale = { "sheets-table-ui": {
|
|
|
21
21
|
footer: "Pied de page",
|
|
22
22
|
firstLine: "Première ligne",
|
|
23
23
|
secondLine: "Deuxième ligne",
|
|
24
|
-
columnPrefix: "Colonne",
|
|
25
|
-
tablePrefix: "Tableau",
|
|
26
24
|
tableNameError: "Le nom du tableau ne peut pas contenir d'espaces, ne peut pas commencer par un chiffre et ne peut pas être identique à un nom de tableau existant",
|
|
27
25
|
columnMenu: {
|
|
28
26
|
"insert-left": "Insérer 1 colonne à gauche",
|
|
@@ -120,6 +118,7 @@ const locale = { "sheets-table-ui": {
|
|
|
120
118
|
cancel: "Annuler",
|
|
121
119
|
confirm: "Confirmer",
|
|
122
120
|
"search-placeholder": "Utilisez un espace pour séparer les mots-clés",
|
|
121
|
+
"input-values-placeholder": "Saisir des valeurs",
|
|
123
122
|
"select-all": "Tout sélectionner"
|
|
124
123
|
}
|
|
125
124
|
} };
|
package/lib/locale/id-ID.js
CHANGED
|
@@ -21,8 +21,6 @@ const locale = { "sheets-table-ui": {
|
|
|
21
21
|
footer: "Footer",
|
|
22
22
|
firstLine: "Baris Pertama",
|
|
23
23
|
secondLine: "Baris Kedua",
|
|
24
|
-
columnPrefix: "Kolom",
|
|
25
|
-
tablePrefix: "Tabel",
|
|
26
24
|
tableNameError: "Nama tabel tidak boleh mengandung spasi, tidak boleh diawali dengan angka, dan tidak boleh sama dengan nama tabel yang sudah ada",
|
|
27
25
|
columnMenu: {
|
|
28
26
|
"insert-left": "Sisipkan 1 kolom tabel di kiri",
|
|
@@ -120,6 +118,7 @@ const locale = { "sheets-table-ui": {
|
|
|
120
118
|
cancel: "Batal",
|
|
121
119
|
confirm: "Konfirmasi",
|
|
122
120
|
"search-placeholder": "Gunakan spasi untuk memisahkan kata kunci",
|
|
121
|
+
"input-values-placeholder": "Masukkan Nilai",
|
|
123
122
|
"select-all": "Pilih Semua"
|
|
124
123
|
}
|
|
125
124
|
} };
|
package/lib/locale/it-IT.js
CHANGED
|
@@ -21,8 +21,6 @@ const locale = { "sheets-table-ui": {
|
|
|
21
21
|
footer: "Piè di Pagina",
|
|
22
22
|
firstLine: "Prima Riga",
|
|
23
23
|
secondLine: "Seconda Riga",
|
|
24
|
-
columnPrefix: "Colonna",
|
|
25
|
-
tablePrefix: "Tabella",
|
|
26
24
|
tableNameError: "Il nome tabella non può contenere spazi, non può iniziare con un numero e non può essere identico a un nome tabella esistente",
|
|
27
25
|
columnMenu: {
|
|
28
26
|
"insert-left": "Inserisci 1 colonna tabella a sinistra",
|
|
@@ -120,6 +118,7 @@ const locale = { "sheets-table-ui": {
|
|
|
120
118
|
cancel: "Annulla",
|
|
121
119
|
confirm: "Conferma",
|
|
122
120
|
"search-placeholder": "Usa lo spazio per separare le parole chiave",
|
|
121
|
+
"input-values-placeholder": "Inserisci valori",
|
|
123
122
|
"select-all": "Seleziona Tutto"
|
|
124
123
|
}
|
|
125
124
|
} };
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -21,8 +21,6 @@ const locale = { "sheets-table-ui": {
|
|
|
21
21
|
footer: "フッター",
|
|
22
22
|
firstLine: "先頭行",
|
|
23
23
|
secondLine: "2行目",
|
|
24
|
-
columnPrefix: "列",
|
|
25
|
-
tablePrefix: "表",
|
|
26
24
|
tableNameError: "表の名前は空白を含めることはできず、数字で始めることはできず、既存の表名と重複できません",
|
|
27
25
|
columnMenu: {
|
|
28
26
|
"insert-left": "左に 1 列挿入",
|
|
@@ -120,6 +118,7 @@ const locale = { "sheets-table-ui": {
|
|
|
120
118
|
cancel: "キャンセル",
|
|
121
119
|
confirm: "確認",
|
|
122
120
|
"search-placeholder": "検索語はスペースで区切る",
|
|
121
|
+
"input-values-placeholder": "値を入力",
|
|
123
122
|
"select-all": "すべて選択"
|
|
124
123
|
}
|
|
125
124
|
} };
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -21,8 +21,6 @@ const locale = { "sheets-table-ui": {
|
|
|
21
21
|
footer: "바닥글",
|
|
22
22
|
firstLine: "첫 번째 줄",
|
|
23
23
|
secondLine: "두 번째 줄",
|
|
24
|
-
columnPrefix: "열",
|
|
25
|
-
tablePrefix: "표",
|
|
26
24
|
tableNameError: "표 이름은 공백을 포함할 수 없으며 숫자로 시작할 수 없고 기존 표 이름과 중복될 수 없습니다",
|
|
27
25
|
columnMenu: {
|
|
28
26
|
"insert-left": "왼쪽에 열 1개 삽입",
|
|
@@ -120,6 +118,7 @@ const locale = { "sheets-table-ui": {
|
|
|
120
118
|
cancel: "취소",
|
|
121
119
|
confirm: "확인",
|
|
122
120
|
"search-placeholder": "검색어는 공백으로 구분",
|
|
121
|
+
"input-values-placeholder": "값 입력",
|
|
123
122
|
"select-all": "전체 선택"
|
|
124
123
|
}
|
|
125
124
|
} };
|
package/lib/locale/pl-PL.js
CHANGED
|
@@ -21,8 +21,6 @@ const locale = { "sheets-table-ui": {
|
|
|
21
21
|
footer: "Stopka",
|
|
22
22
|
firstLine: "Pierwszy wiersz",
|
|
23
23
|
secondLine: "Drugi wiersz",
|
|
24
|
-
columnPrefix: "Kolumna",
|
|
25
|
-
tablePrefix: "Tabela",
|
|
26
24
|
tableNameError: "Nazwa tabeli nie może zawierać spacji, nie może zaczynać się od cyfry i nie może być identyczna z istniejącą nazwą tabeli",
|
|
27
25
|
columnMenu: {
|
|
28
26
|
"insert-left": "Wstaw 1 kolumnę tabeli z lewej",
|
|
@@ -120,6 +118,7 @@ const locale = { "sheets-table-ui": {
|
|
|
120
118
|
cancel: "Anuluj",
|
|
121
119
|
confirm: "Potwierdź",
|
|
122
120
|
"search-placeholder": "Użyj spacji do rozdzielenia słów kluczowych",
|
|
121
|
+
"input-values-placeholder": "Wprowadź wartości",
|
|
123
122
|
"select-all": "Zaznacz wszystko"
|
|
124
123
|
}
|
|
125
124
|
} };
|
package/lib/locale/pt-BR.js
CHANGED
|
@@ -21,8 +21,6 @@ const locale = { "sheets-table-ui": {
|
|
|
21
21
|
footer: "Rodapé",
|
|
22
22
|
firstLine: "Primeira Linha",
|
|
23
23
|
secondLine: "Segunda Linha",
|
|
24
|
-
columnPrefix: "Coluna",
|
|
25
|
-
tablePrefix: "Tabela",
|
|
26
24
|
tableNameError: "O nome da tabela não pode conter espaços, não pode começar com um número e não pode ser idêntico ao nome de uma tabela existente",
|
|
27
25
|
columnMenu: {
|
|
28
26
|
"insert-left": "Inserir 1 coluna à esquerda",
|
|
@@ -120,6 +118,7 @@ const locale = { "sheets-table-ui": {
|
|
|
120
118
|
cancel: "Cancelar",
|
|
121
119
|
confirm: "Confirmar",
|
|
122
120
|
"search-placeholder": "Use espaço para separar palavras-chave",
|
|
121
|
+
"input-values-placeholder": "Inserir Valores",
|
|
123
122
|
"select-all": "Selecionar Tudo"
|
|
124
123
|
}
|
|
125
124
|
} };
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -21,8 +21,6 @@ const locale = { "sheets-table-ui": {
|
|
|
21
21
|
footer: "Нижний колонтитул",
|
|
22
22
|
firstLine: "Первая строка",
|
|
23
23
|
secondLine: "Вторая строка",
|
|
24
|
-
columnPrefix: "Столбец",
|
|
25
|
-
tablePrefix: "Таблица",
|
|
26
24
|
tableNameError: "Имя таблицы не может содержать пробелы, не может начинаться с цифры и не может совпадать с именем существующей таблицы",
|
|
27
25
|
columnMenu: {
|
|
28
26
|
"insert-left": "Вставить 1 столбец слева",
|
|
@@ -120,6 +118,7 @@ const locale = { "sheets-table-ui": {
|
|
|
120
118
|
cancel: "Отмена",
|
|
121
119
|
confirm: "Подтвердить",
|
|
122
120
|
"search-placeholder": "Используйте пробел для разделения ключевых слов",
|
|
121
|
+
"input-values-placeholder": "Введите значения",
|
|
123
122
|
"select-all": "Выбрать все"
|
|
124
123
|
}
|
|
125
124
|
} };
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -21,8 +21,6 @@ const locale = { "sheets-table-ui": {
|
|
|
21
21
|
footer: "Päta",
|
|
22
22
|
firstLine: "Prvý riadok",
|
|
23
23
|
secondLine: "Druhý riadok",
|
|
24
|
-
columnPrefix: "Stĺpec",
|
|
25
|
-
tablePrefix: "Tabuľka",
|
|
26
24
|
tableNameError: "Názov tabuľky nesmie obsahovať medzery, nesmie začínať číslom a nesmie byť zhodný s existujúcim názvom tabuľky",
|
|
27
25
|
columnMenu: {
|
|
28
26
|
"insert-left": "Vložiť 1 stĺpec tabuľky vľavo",
|
|
@@ -120,6 +118,7 @@ const locale = { "sheets-table-ui": {
|
|
|
120
118
|
cancel: "Zrušiť",
|
|
121
119
|
confirm: "Potvrdiť",
|
|
122
120
|
"search-placeholder": "Použite medzeru na oddelenie kľúčových slov",
|
|
121
|
+
"input-values-placeholder": "Zadajte hodnoty",
|
|
123
122
|
"select-all": "Vybrať všetko"
|
|
124
123
|
}
|
|
125
124
|
} };
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -21,8 +21,6 @@ const locale = { "sheets-table-ui": {
|
|
|
21
21
|
footer: "Chân trang",
|
|
22
22
|
firstLine: "Dòng đầu tiên",
|
|
23
23
|
secondLine: "Dòng thứ hai",
|
|
24
|
-
columnPrefix: "Cột",
|
|
25
|
-
tablePrefix: "Bảng",
|
|
26
24
|
tableNameError: "Tên bảng không thể chứa khoảng trắng, không được bắt đầu bằng số và không được trùng với tên bảng đã có",
|
|
27
25
|
columnMenu: {
|
|
28
26
|
"insert-left": "Chèn 1 cột bảng bên trái",
|
|
@@ -120,6 +118,7 @@ const locale = { "sheets-table-ui": {
|
|
|
120
118
|
cancel: "Hủy bỏ",
|
|
121
119
|
confirm: "Xác nhận",
|
|
122
120
|
"search-placeholder": "Sử dụng khoảng trắng để tách các từ khóa",
|
|
121
|
+
"input-values-placeholder": "Vui lòng nhập",
|
|
123
122
|
"select-all": "Chọn tất cả"
|
|
124
123
|
}
|
|
125
124
|
} };
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -21,8 +21,6 @@ const locale = { "sheets-table-ui": {
|
|
|
21
21
|
footer: "页脚",
|
|
22
22
|
firstLine: "第一行",
|
|
23
23
|
secondLine: "第二行",
|
|
24
|
-
columnPrefix: "列",
|
|
25
|
-
tablePrefix: "表格",
|
|
26
24
|
tableNameError: "表格名称不能包含空格, 不能以数字开头,不能和已有表格名称重复",
|
|
27
25
|
columnMenu: {
|
|
28
26
|
"insert-left": "向左插入 1 个表格列",
|
|
@@ -120,6 +118,7 @@ const locale = { "sheets-table-ui": {
|
|
|
120
118
|
cancel: "取消",
|
|
121
119
|
confirm: "确认",
|
|
122
120
|
"search-placeholder": "使用空格分隔关键字",
|
|
121
|
+
"input-values-placeholder": "请输入",
|
|
123
122
|
"select-all": "全选"
|
|
124
123
|
}
|
|
125
124
|
} };
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -2,28 +2,26 @@
|
|
|
2
2
|
const locale = { "sheets-table-ui": {
|
|
3
3
|
title: "表格",
|
|
4
4
|
selectRange: "選擇表格範圍",
|
|
5
|
-
rename: "
|
|
5
|
+
rename: "重新命名表格",
|
|
6
6
|
renamePlaceholder: "輸入表格名稱",
|
|
7
7
|
updateRange: "更新表格範圍",
|
|
8
8
|
tableRangeWithMergeError: "表格範圍不能與合併儲存格重疊",
|
|
9
9
|
tableRangeWithOtherTableError: "表格範圍不能與其他表格重疊",
|
|
10
|
-
tableRangeSingleRowError: "
|
|
11
|
-
updateError: "
|
|
10
|
+
tableRangeSingleRowError: "表格範圍不能只有一列",
|
|
11
|
+
updateError: "不能將表格範圍設定為與原範圍不重疊且不在同一列的範圍",
|
|
12
12
|
tableStyle: "表格樣式",
|
|
13
13
|
defaultStyle: "預設樣式",
|
|
14
|
-
customStyle: "
|
|
15
|
-
customTooMore: "
|
|
16
|
-
setTheme: "
|
|
14
|
+
customStyle: "自訂樣式",
|
|
15
|
+
customTooMore: "自訂主題數量超出上限,請刪除一些不需要的主題後再新增",
|
|
16
|
+
setTheme: "設定表格主題",
|
|
17
17
|
removeTable: "刪除表格",
|
|
18
18
|
cancel: "取消",
|
|
19
19
|
confirm: "確認",
|
|
20
20
|
header: "頁首",
|
|
21
21
|
footer: "頁尾",
|
|
22
|
-
firstLine: "
|
|
23
|
-
secondLine: "
|
|
24
|
-
|
|
25
|
-
tablePrefix: "表格",
|
|
26
|
-
tableNameError: "表格名稱不能包含空格, 不能以數字開頭,不能和已有表格名稱重複",
|
|
22
|
+
firstLine: "第一列",
|
|
23
|
+
secondLine: "第二列",
|
|
24
|
+
tableNameError: "表格名稱不能包含空格、以數字開頭或與現有表格名稱重複",
|
|
27
25
|
columnMenu: {
|
|
28
26
|
"insert-left": "向左插入 1 個表格欄",
|
|
29
27
|
"insert-right": "向右插入 1 個表格欄",
|
|
@@ -35,13 +33,13 @@ const locale = { "sheets-table-ui": {
|
|
|
35
33
|
},
|
|
36
34
|
insert: {
|
|
37
35
|
main: "表格插入",
|
|
38
|
-
row: "
|
|
39
|
-
col: "
|
|
36
|
+
row: "插入表格列",
|
|
37
|
+
col: "插入表格欄"
|
|
40
38
|
},
|
|
41
39
|
remove: {
|
|
42
40
|
main: "表格刪除",
|
|
43
|
-
row: "
|
|
44
|
-
col: "
|
|
41
|
+
row: "刪除表格列",
|
|
42
|
+
col: "刪除表格欄"
|
|
45
43
|
},
|
|
46
44
|
condition: {
|
|
47
45
|
string: "文字",
|
|
@@ -120,6 +118,7 @@ const locale = { "sheets-table-ui": {
|
|
|
120
118
|
cancel: "取消",
|
|
121
119
|
confirm: "確認",
|
|
122
120
|
"search-placeholder": "使用空格分隔關鍵字",
|
|
121
|
+
"input-values-placeholder": "請輸入",
|
|
123
122
|
"select-all": "全選"
|
|
124
123
|
}
|
|
125
124
|
} };
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -2,28 +2,26 @@
|
|
|
2
2
|
const locale = { "sheets-table-ui": {
|
|
3
3
|
title: "表格",
|
|
4
4
|
selectRange: "選擇表格範圍",
|
|
5
|
-
rename: "
|
|
5
|
+
rename: "重新命名表格",
|
|
6
6
|
renamePlaceholder: "輸入表格名稱",
|
|
7
7
|
updateRange: "更新表格範圍",
|
|
8
8
|
tableRangeWithMergeError: "表格範圍不能與合併儲存格重疊",
|
|
9
9
|
tableRangeWithOtherTableError: "表格範圍不能與其他表格重疊",
|
|
10
|
-
tableRangeSingleRowError: "
|
|
11
|
-
updateError: "
|
|
10
|
+
tableRangeSingleRowError: "表格範圍不能只有一列",
|
|
11
|
+
updateError: "不能將表格範圍設定為與原範圍不重疊且不在同一列的範圍",
|
|
12
12
|
tableStyle: "表格樣式",
|
|
13
13
|
defaultStyle: "預設樣式",
|
|
14
|
-
customStyle: "
|
|
15
|
-
customTooMore: "
|
|
16
|
-
setTheme: "
|
|
14
|
+
customStyle: "自訂樣式",
|
|
15
|
+
customTooMore: "自訂主題數量超出上限,請刪除一些不需要的主題後再新增",
|
|
16
|
+
setTheme: "設定表格主題",
|
|
17
17
|
removeTable: "刪除表格",
|
|
18
18
|
cancel: "取消",
|
|
19
19
|
confirm: "確認",
|
|
20
20
|
header: "頁首",
|
|
21
21
|
footer: "頁尾",
|
|
22
|
-
firstLine: "
|
|
23
|
-
secondLine: "
|
|
24
|
-
|
|
25
|
-
tablePrefix: "表格",
|
|
26
|
-
tableNameError: "表格名稱不能包含空格, 不能以數字開頭,不能和已有表格名稱重複",
|
|
22
|
+
firstLine: "第一列",
|
|
23
|
+
secondLine: "第二列",
|
|
24
|
+
tableNameError: "表格名稱不能包含空格、以數字開頭或與現有表格名稱重複",
|
|
27
25
|
columnMenu: {
|
|
28
26
|
"insert-left": "向左插入 1 個表格欄",
|
|
29
27
|
"insert-right": "向右插入 1 個表格欄",
|
|
@@ -35,13 +33,13 @@ const locale = { "sheets-table-ui": {
|
|
|
35
33
|
},
|
|
36
34
|
insert: {
|
|
37
35
|
main: "表格插入",
|
|
38
|
-
row: "
|
|
39
|
-
col: "
|
|
36
|
+
row: "插入表格列",
|
|
37
|
+
col: "插入表格欄"
|
|
40
38
|
},
|
|
41
39
|
remove: {
|
|
42
40
|
main: "表格刪除",
|
|
43
|
-
row: "
|
|
44
|
-
col: "
|
|
41
|
+
row: "刪除表格列",
|
|
42
|
+
col: "刪除表格欄"
|
|
45
43
|
},
|
|
46
44
|
condition: {
|
|
47
45
|
string: "文字",
|
|
@@ -120,6 +118,7 @@ const locale = { "sheets-table-ui": {
|
|
|
120
118
|
cancel: "取消",
|
|
121
119
|
confirm: "確認",
|
|
122
120
|
"search-placeholder": "使用空格分隔關鍵字",
|
|
121
|
+
"input-values-placeholder": "請輸入",
|
|
123
122
|
"select-all": "全選"
|
|
124
123
|
}
|
|
125
124
|
} };
|
package/lib/types/const.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export declare const SHEET_TABLE_RENAME_DIALOG = "SHEET_TABLE_RENAME_DIALOG";
|
|
|
21
21
|
export declare const SHEET_TABLE_RENAME_DIALOG_ID = "SHEET_TABLE_RENAME_DIALOG_ID";
|
|
22
22
|
export declare const SHEET_TABLE_THEME_PANEL_ID = "SHEET_TABLE_THEME_PANEL_ID";
|
|
23
23
|
export declare const SHEET_TABLE_THEME_PANEL = "SHEET_TABLE_THEME_PANEL";
|
|
24
|
+
export declare const SHEET_TABLE_MENU = "SHEET_TABLE_MENU";
|
|
24
25
|
export declare const TABLE_CUSTOM_NAME_PREFIX = "table-custom-";
|
|
25
26
|
export declare const TABLE_DEFAULT_NAME_PREFIX = "table-default-";
|
|
26
27
|
export declare const TABLE_DEFAULT_BG_COLOR = "rgb(255, 255, 255)";
|
|
@@ -18,7 +18,7 @@ import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
|
18
18
|
import { Disposable, ICommandService, Injector, IPermissionService, LocaleService } from '@univerjs/core';
|
|
19
19
|
import { SheetRangeThemeModel, SheetsSelectionsService, WorkbookPermissionService } from '@univerjs/sheets';
|
|
20
20
|
import { TableManager } from '@univerjs/sheets-table';
|
|
21
|
-
import { ISheetSelectionRenderService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
21
|
+
import { ISheetSelectionRenderService, SheetCanvasPopManagerService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
22
22
|
import { IDialogService, ISidebarService } from '@univerjs/ui';
|
|
23
23
|
import { SheetTableThemeUIController } from './sheet-table-theme-ui.controller';
|
|
24
24
|
export declare class SheetTableControlsRenderController extends Disposable implements IRenderModule {
|
|
@@ -36,9 +36,11 @@ export declare class SheetTableControlsRenderController extends Disposable imple
|
|
|
36
36
|
private readonly _localeService;
|
|
37
37
|
private readonly _dialogService;
|
|
38
38
|
private readonly _sidebarService;
|
|
39
|
+
private readonly _sheetCanvasPopupService;
|
|
39
40
|
private readonly _shape;
|
|
40
41
|
private readonly _topGapBaseBySkeleton;
|
|
41
|
-
|
|
42
|
+
private _menuPopup;
|
|
43
|
+
constructor(_context: IRenderContext<Workbook>, _injector: Injector, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _tableManager: TableManager, _rangeThemeModel: SheetRangeThemeModel, _workbookPermissionService: WorkbookPermissionService, _permissionService: IPermissionService, _sheetsSelectionsService: SheetsSelectionsService, _selectionRenderService: ISheetSelectionRenderService, _sheetTableThemeUIController: SheetTableThemeUIController, _localeService: LocaleService, _dialogService: IDialogService, _sidebarService: ISidebarService, _sheetCanvasPopupService: SheetCanvasPopManagerService);
|
|
42
44
|
private _initShape;
|
|
43
45
|
private _initRefresh;
|
|
44
46
|
private _refresh;
|
|
@@ -48,6 +50,8 @@ export declare class SheetTableControlsRenderController extends Disposable imple
|
|
|
48
50
|
private _handlePointerLeave;
|
|
49
51
|
private _handlePointerDown;
|
|
50
52
|
private _handleHit;
|
|
53
|
+
private _toggleTableMenu;
|
|
54
|
+
private _handleTableMenuAction;
|
|
51
55
|
private _openRenameDialog;
|
|
52
56
|
private _openRangeSelector;
|
|
53
57
|
private _openThemePanel;
|
|
@@ -36,8 +36,6 @@ declare const locale: {
|
|
|
36
36
|
footer: string;
|
|
37
37
|
firstLine: string;
|
|
38
38
|
secondLine: string;
|
|
39
|
-
columnPrefix: string;
|
|
40
|
-
tablePrefix: string;
|
|
41
39
|
tableNameError: string;
|
|
42
40
|
columnMenu: {
|
|
43
41
|
'insert-left': string;
|
|
@@ -141,6 +139,7 @@ declare const locale: {
|
|
|
141
139
|
cancel: string;
|
|
142
140
|
confirm: string;
|
|
143
141
|
'search-placeholder': string;
|
|
142
|
+
'input-values-placeholder': string;
|
|
144
143
|
'select-all': string;
|
|
145
144
|
};
|
|
146
145
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { ICanvasPopup } from '@univerjs/sheets-ui';
|
|
17
|
+
export type SheetTableMenuAction = 'rename' | 'update-range' | 'set-theme' | 'delete';
|
|
18
|
+
export interface ISheetTableMenuExtraProps {
|
|
19
|
+
anchorWidth: number;
|
|
20
|
+
tableName: string;
|
|
21
|
+
labels: Record<SheetTableMenuAction, string>;
|
|
22
|
+
onSelect: (action: SheetTableMenuAction) => void | Promise<void>;
|
|
23
|
+
onClose: () => void;
|
|
24
|
+
}
|
|
25
|
+
interface ISheetTableMenuProps {
|
|
26
|
+
popup: ICanvasPopup;
|
|
27
|
+
}
|
|
28
|
+
export declare function SheetTableMenu({ popup }: ISheetTableMenuProps): import("react").JSX.Element | null;
|
|
29
|
+
export {};
|
|
@@ -15,12 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const TABLE_CONTROL_ANCHOR_HEIGHT = 28;
|
|
17
17
|
export declare const TABLE_CONTROL_ANCHOR_RADIUS = 14;
|
|
18
|
-
export declare const TABLE_CONTROL_MENU_WIDTH = 168;
|
|
19
|
-
export declare const TABLE_CONTROL_MENU_ITEM_HEIGHT = 32;
|
|
20
18
|
export declare const TABLE_CONTROL_INSERT_BUTTON_SIZE = 22;
|
|
21
19
|
export declare const TABLE_CONTROL_TOP_GAP_SIZE = 32;
|
|
22
|
-
export type TableControlHitType = 'anchor-main' | 'anchor-menu-toggle' | '
|
|
23
|
-
export type TableControlMenuAction = 'rename' | 'update-range' | 'set-theme' | 'delete';
|
|
20
|
+
export type TableControlHitType = 'anchor-main' | 'anchor-menu-toggle' | 'insert-row' | 'insert-column';
|
|
24
21
|
export interface ITableControlHitRegion {
|
|
25
22
|
type: TableControlHitType;
|
|
26
23
|
tableId: string;
|
|
@@ -28,7 +25,6 @@ export interface ITableControlHitRegion {
|
|
|
28
25
|
top: number;
|
|
29
26
|
width: number;
|
|
30
27
|
height: number;
|
|
31
|
-
action?: TableControlMenuAction;
|
|
32
28
|
index?: number;
|
|
33
29
|
}
|
|
34
30
|
export interface ITableControlLineSegment {
|
|
@@ -37,8 +33,6 @@ export interface ITableControlLineSegment {
|
|
|
37
33
|
toX: number;
|
|
38
34
|
toY: number;
|
|
39
35
|
}
|
|
40
|
-
export declare const TABLE_CONTROL_MENU_ACTIONS: TableControlMenuAction[];
|
|
41
36
|
export declare function isPointInTableControlRegion(region: ITableControlHitRegion, x: number, y: number): boolean;
|
|
42
37
|
export declare function hitTestTableControl(regions: ITableControlHitRegion[], x: number, y: number): ITableControlHitRegion | null;
|
|
43
|
-
export declare function buildTableMenuRegions(tableId: string, left: number, top: number): ITableControlHitRegion[];
|
|
44
38
|
export declare function buildCenteredPlusSegments(centerX: number, centerY: number, size: number): [ITableControlLineSegment, ITableControlLineSegment];
|
|
@@ -28,12 +28,6 @@ export interface ITableControlRenderItem {
|
|
|
28
28
|
fill: string;
|
|
29
29
|
text: string;
|
|
30
30
|
}
|
|
31
|
-
export interface ITableControlMenuLabels {
|
|
32
|
-
rename: string;
|
|
33
|
-
'update-range': string;
|
|
34
|
-
'set-theme': string;
|
|
35
|
-
delete: string;
|
|
36
|
-
}
|
|
37
31
|
export declare class SheetTableControlsShape extends Shape<IShapeProps> {
|
|
38
32
|
private readonly _getSkeleton;
|
|
39
33
|
private _items;
|
|
@@ -41,12 +35,11 @@ export declare class SheetTableControlsShape extends Shape<IShapeProps> {
|
|
|
41
35
|
private _openedMenuTableId;
|
|
42
36
|
private _hoveredRegion;
|
|
43
37
|
private _hoveredInsertRegion;
|
|
44
|
-
private _menuLabels;
|
|
45
38
|
constructor(key: string, _getSkeleton: () => SpreadsheetSkeleton | null | undefined);
|
|
46
39
|
setItems(items: ITableControlRenderItem[]): void;
|
|
47
|
-
setMenuLabels(labels: ITableControlMenuLabels): void;
|
|
48
40
|
setOpenedMenuTableId(tableId: string | null): void;
|
|
49
41
|
getOpenedMenuTableId(): string | null;
|
|
42
|
+
getAnchorRegion(tableId: string): ITableControlHitRegion | null;
|
|
50
43
|
setHoveredRegion(region: ITableControlHitRegion | null): void;
|
|
51
44
|
setHoveredInsertRegion(region: ITableControlHitRegion | null): void;
|
|
52
45
|
hitTest(x: number, y: number): ITableControlHitRegion | null;
|
|
@@ -57,7 +50,6 @@ export declare class SheetTableControlsShape extends Shape<IShapeProps> {
|
|
|
57
50
|
private _drawAnchorToggle;
|
|
58
51
|
private _drawTopRoundedRect;
|
|
59
52
|
private _drawRightTopRoundedRect;
|
|
60
|
-
private _drawMenu;
|
|
61
53
|
private _drawInsertButton;
|
|
62
54
|
private _isSameRegion;
|
|
63
55
|
}
|