@ckeditor/ckeditor5-table 31.0.0 → 33.0.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/LICENSE.md +2 -2
- package/build/table.js +3 -3
- package/build/table.js.map +1 -0
- package/build/translations/cs.js +1 -1
- package/build/translations/el.js +1 -0
- package/build/translations/es.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/uz.js +1 -0
- package/build/translations/zh.js +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/cs.po +4 -4
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +261 -0
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es.po +43 -43
- package/lang/translations/et.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +11 -11
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +4 -4
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/uz.po +261 -0
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +4 -4
- package/package.json +26 -24
- package/src/commands/insertcolumncommand.js +5 -5
- package/src/commands/insertrowcommand.js +5 -5
- package/src/commands/inserttablecommand.js +1 -1
- package/src/commands/mergecellcommand.js +5 -6
- package/src/commands/mergecellscommand.js +6 -5
- package/src/commands/removecolumncommand.js +9 -8
- package/src/commands/removerowcommand.js +6 -7
- package/src/commands/selectcolumncommand.js +5 -5
- package/src/commands/selectrowcommand.js +6 -6
- package/src/commands/setheadercolumncommand.js +6 -5
- package/src/commands/setheaderrowcommand.js +8 -5
- package/src/commands/splitcellcommand.js +5 -5
- package/src/converters/downcast.js +77 -408
- package/src/converters/table-caption-post-fixer.js +1 -1
- package/src/converters/table-cell-paragraph-post-fixer.js +1 -1
- package/src/converters/{table-cell-refresh-post-fixer.js → table-cell-refresh-handler.js} +9 -20
- package/src/converters/table-headings-refresh-handler.js +68 -0
- package/src/converters/table-layout-post-fixer.js +1 -1
- package/src/converters/tableproperties.js +6 -5
- package/src/converters/upcasttable.js +7 -3
- package/src/index.js +1 -1
- package/src/plaintableoutput.js +151 -0
- package/src/table.js +1 -1
- package/src/tablecaption/tablecaptionediting.js +1 -1
- package/src/tablecaption/tablecaptionui.js +3 -3
- package/src/tablecaption/toggletablecaptioncommand.js +3 -3
- package/src/tablecaption/utils.js +1 -1
- package/src/tablecaption.js +1 -1
- package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellbordercolorcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellborderstylecommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellborderwidthcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellheightcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellpaddingcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellpropertycommand.js +6 -5
- package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellwidthcommand.js +2 -2
- package/src/tablecellproperties/tablecellpropertiesediting.js +42 -35
- package/src/tablecellproperties/tablecellpropertiesui.js +1 -1
- package/src/tablecellproperties/ui/tablecellpropertiesview.js +11 -1
- package/src/tablecellproperties.js +1 -1
- package/src/tableclipboard.js +19 -16
- package/src/tableediting.js +49 -28
- package/src/tablekeyboard.js +7 -6
- package/src/tablemouse/mouseeventsobserver.js +1 -1
- package/src/tablemouse.js +7 -5
- package/src/tableproperties/commands/tablealignmentcommand.js +2 -2
- package/src/tableproperties/commands/tablebackgroundcolorcommand.js +2 -2
- package/src/tableproperties/commands/tablebordercolorcommand.js +2 -2
- package/src/tableproperties/commands/tableborderstylecommand.js +2 -2
- package/src/tableproperties/commands/tableborderwidthcommand.js +2 -2
- package/src/tableproperties/commands/tableheightcommand.js +2 -2
- package/src/tableproperties/commands/tablepropertycommand.js +2 -2
- package/src/tableproperties/commands/tablewidthcommand.js +2 -2
- package/src/tableproperties/tablepropertiesediting.js +29 -21
- package/src/tableproperties/tablepropertiesui.js +1 -1
- package/src/tableproperties/ui/tablepropertiesview.js +11 -1
- package/src/tableproperties.js +1 -1
- package/src/tableselection.js +10 -9
- package/src/tabletoolbar.js +1 -1
- package/src/tableui.js +1 -1
- package/src/tableutils.js +311 -1
- package/src/tablewalker.js +1 -1
- package/src/ui/colorinputview.js +1 -1
- package/src/ui/formrowview.js +1 -1
- package/src/ui/inserttableview.js +1 -1
- package/src/utils/common.js +1 -1
- package/src/utils/structure.js +1 -1
- package/src/utils/table-properties.js +1 -1
- package/src/utils/ui/contextualballoon.js +1 -1
- package/src/utils/ui/table-properties.js +1 -1
- package/src/utils/ui/widget.js +1 -1
- package/theme/colorinput.css +1 -1
- package/theme/form.css +1 -1
- package/theme/formrow.css +1 -1
- package/theme/inserttable.css +1 -1
- package/theme/table.css +2 -2
- package/theme/tablecaption.css +1 -1
- package/theme/tablecellproperties.css +1 -1
- package/theme/tableediting.css +1 -1
- package/theme/tableform.css +1 -1
- package/theme/tableproperties.css +1 -1
- package/theme/tableselection.css +1 -1
- package/src/converters/table-heading-rows-refresh-post-fixer.js +0 -72
- package/src/utils/selection.js +0 -276
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Uzbek (https://www.transifex.com/ckeditor/teams/11143/uz/)\n"
|
|
16
|
+
"Language: uz\n"
|
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "Label for the insert table toolbar button."
|
|
20
|
+
msgid "Insert table"
|
|
21
|
+
msgstr "Jadvalni kiritish"
|
|
22
|
+
|
|
23
|
+
msgctxt "Label for the set/unset table header column button."
|
|
24
|
+
msgid "Header column"
|
|
25
|
+
msgstr "Ustun sarlavhalari"
|
|
26
|
+
|
|
27
|
+
msgctxt "Label for the insert table column to the left of the current one button."
|
|
28
|
+
msgid "Insert column left"
|
|
29
|
+
msgstr "Ustunni chapga kiritish"
|
|
30
|
+
|
|
31
|
+
msgctxt "Label for the insert table column to the right of the current one button."
|
|
32
|
+
msgid "Insert column right"
|
|
33
|
+
msgstr "Ustunni o'ngga kiritish"
|
|
34
|
+
|
|
35
|
+
msgctxt "Label for the delete table column button."
|
|
36
|
+
msgid "Delete column"
|
|
37
|
+
msgstr "Ustunni o'chirish"
|
|
38
|
+
|
|
39
|
+
msgctxt "Label for the select the entire table column button."
|
|
40
|
+
msgid "Select column"
|
|
41
|
+
msgstr "Ustunni tanlash"
|
|
42
|
+
|
|
43
|
+
msgctxt "Label for the table column dropdown button."
|
|
44
|
+
msgid "Column"
|
|
45
|
+
msgstr "Ustun"
|
|
46
|
+
|
|
47
|
+
msgctxt "Label for the set/unset table header row button."
|
|
48
|
+
msgid "Header row"
|
|
49
|
+
msgstr "Sarlavhalar satri"
|
|
50
|
+
|
|
51
|
+
msgctxt "Label for the insert row below button."
|
|
52
|
+
msgid "Insert row below"
|
|
53
|
+
msgstr "Pastga qatorni kiritish"
|
|
54
|
+
|
|
55
|
+
msgctxt "Label for the insert row above button."
|
|
56
|
+
msgid "Insert row above"
|
|
57
|
+
msgstr "Yuqoriga qatorni kiritish"
|
|
58
|
+
|
|
59
|
+
msgctxt "Label for the delete table row button."
|
|
60
|
+
msgid "Delete row"
|
|
61
|
+
msgstr "Satrni o'chirish"
|
|
62
|
+
|
|
63
|
+
msgctxt "Label for the select the entire table row button."
|
|
64
|
+
msgid "Select row"
|
|
65
|
+
msgstr "Satrni tanlang"
|
|
66
|
+
|
|
67
|
+
msgctxt "Label for the table row dropdown button."
|
|
68
|
+
msgid "Row"
|
|
69
|
+
msgstr "Satr"
|
|
70
|
+
|
|
71
|
+
msgctxt "Label for the merge table cell up button."
|
|
72
|
+
msgid "Merge cell up"
|
|
73
|
+
msgstr "Yuqoridagi katak bilan birlashtirish"
|
|
74
|
+
|
|
75
|
+
msgctxt "Label for the merge table cell right button."
|
|
76
|
+
msgid "Merge cell right"
|
|
77
|
+
msgstr "O'ngdagi katakcha bilan birlashtirish"
|
|
78
|
+
|
|
79
|
+
msgctxt "Label for the merge table cell down button."
|
|
80
|
+
msgid "Merge cell down"
|
|
81
|
+
msgstr "Pastdagi katak bilan birlashtirish"
|
|
82
|
+
|
|
83
|
+
msgctxt "Label for the merge table cell left button."
|
|
84
|
+
msgid "Merge cell left"
|
|
85
|
+
msgstr "Chapdagi katakcha bilan birlashtirish"
|
|
86
|
+
|
|
87
|
+
msgctxt "Label for the split table cell vertically button."
|
|
88
|
+
msgid "Split cell vertically"
|
|
89
|
+
msgstr "Hujayrani vertikal ravishda ajratish"
|
|
90
|
+
|
|
91
|
+
msgctxt "Label for the split table cell horizontally button."
|
|
92
|
+
msgid "Split cell horizontally"
|
|
93
|
+
msgstr "Hujayrani gorizontal ravishda ajratish"
|
|
94
|
+
|
|
95
|
+
msgctxt "Label for the merge table cells button."
|
|
96
|
+
msgid "Merge cells"
|
|
97
|
+
msgstr "Hujayralarni birlashtirish"
|
|
98
|
+
|
|
99
|
+
msgctxt "The label used by assistive technologies describing a table toolbar attached to a table widget."
|
|
100
|
+
msgid "Table toolbar"
|
|
101
|
+
msgstr "Jadval asboblar paneli"
|
|
102
|
+
|
|
103
|
+
msgctxt "The label describing the form allowing to specify the properties of a selected table."
|
|
104
|
+
msgid "Table properties"
|
|
105
|
+
msgstr "Jadvalning xususiyatlari"
|
|
106
|
+
|
|
107
|
+
msgctxt "The label describing the form allowing to specify the properties of a selected table cell."
|
|
108
|
+
msgid "Cell properties"
|
|
109
|
+
msgstr "Hujayra xususiyatlari"
|
|
110
|
+
|
|
111
|
+
msgctxt "The label describing a group of border–related form fields (border style, color, etc.)."
|
|
112
|
+
msgid "Border"
|
|
113
|
+
msgstr "Chegara"
|
|
114
|
+
|
|
115
|
+
msgctxt "The label for the dropdown that allows configuring the border style of a table or a table cell."
|
|
116
|
+
msgid "Style"
|
|
117
|
+
msgstr "Uslub"
|
|
118
|
+
|
|
119
|
+
msgctxt "The label for the input that allows configuring the width of a table or a table cell or the width of a border."
|
|
120
|
+
msgid "Width"
|
|
121
|
+
msgstr "Kengligi"
|
|
122
|
+
|
|
123
|
+
msgctxt "The label for the input that allows configuring the height of a table or a table cell."
|
|
124
|
+
msgid "Height"
|
|
125
|
+
msgstr "Balandligi"
|
|
126
|
+
|
|
127
|
+
msgctxt "The label for the input that allows configuring the border color of a table or a table cell."
|
|
128
|
+
msgid "Color"
|
|
129
|
+
msgstr "Rang"
|
|
130
|
+
|
|
131
|
+
msgctxt "The label for the input that allows configuring the background color of a table or a table cell."
|
|
132
|
+
msgid "Background"
|
|
133
|
+
msgstr "Fon"
|
|
134
|
+
|
|
135
|
+
msgctxt "The label for the input that allows configuring the padding of a table cell."
|
|
136
|
+
msgid "Padding"
|
|
137
|
+
msgstr "Chekinish"
|
|
138
|
+
|
|
139
|
+
msgctxt "The label describing a group of form fields that allows setting dimensions of a table or a table cell."
|
|
140
|
+
msgid "Dimensions"
|
|
141
|
+
msgstr "O'lchamlar"
|
|
142
|
+
|
|
143
|
+
msgctxt "The label for the group of toolbars that allows configuring the text alignment in a table cell."
|
|
144
|
+
msgid "Table cell text alignment"
|
|
145
|
+
msgstr "Jadval katakchasidagi matnni tekislash"
|
|
146
|
+
|
|
147
|
+
msgctxt "The label for the toolbar that allows configuring the alignment of a table."
|
|
148
|
+
msgid "Alignment"
|
|
149
|
+
msgstr "Tekislash"
|
|
150
|
+
|
|
151
|
+
msgctxt "The label used by assistive technologies describing a toolbar that allows configuring the horizontal text alignment in a table cell."
|
|
152
|
+
msgid "Horizontal text alignment toolbar"
|
|
153
|
+
msgstr "Matnni gorizontal tekislash asboblar paneli"
|
|
154
|
+
|
|
155
|
+
msgctxt "The label used by assistive technologies describing a toolbar that allows configuring the vertical text alignment in a table cell."
|
|
156
|
+
msgid "Vertical text alignment toolbar"
|
|
157
|
+
msgstr "Vertikal matnni tekislash asboblar paneli"
|
|
158
|
+
|
|
159
|
+
msgctxt "The label used by assistive technologies describing a toolbar that allows configuring the alignment of a table."
|
|
160
|
+
msgid "Table alignment toolbar"
|
|
161
|
+
msgstr "Jadvalni tekislash asboblar paneli"
|
|
162
|
+
|
|
163
|
+
msgctxt "The label for the border style dropdown when no style is applied to a table or a table cell."
|
|
164
|
+
msgid "None"
|
|
165
|
+
msgstr "Yo'q"
|
|
166
|
+
|
|
167
|
+
msgctxt "The label for the border style dropdown when the solid border is applied to a table or a table cell."
|
|
168
|
+
msgid "Solid"
|
|
169
|
+
msgstr "Qattiq"
|
|
170
|
+
|
|
171
|
+
msgctxt "The label for the border style dropdown when the dotted border is applied to a table or a table cell."
|
|
172
|
+
msgid "Dotted"
|
|
173
|
+
msgstr "Nuqta"
|
|
174
|
+
|
|
175
|
+
msgctxt "The label for the border style dropdown when the dashed border is applied to a table or a table cell."
|
|
176
|
+
msgid "Dashed"
|
|
177
|
+
msgstr "Nuqtali"
|
|
178
|
+
|
|
179
|
+
msgctxt "The label for the border style dropdown when the double border is applied to a table or a table cell."
|
|
180
|
+
msgid "Double"
|
|
181
|
+
msgstr "Ikkitalik"
|
|
182
|
+
|
|
183
|
+
msgctxt "The label for the border style dropdown when the groove border is applied to a table or a table cell."
|
|
184
|
+
msgid "Groove"
|
|
185
|
+
msgstr "Yivli"
|
|
186
|
+
|
|
187
|
+
msgctxt "The label for the border style dropdown when the ridge border is applied to a table or a table cell."
|
|
188
|
+
msgid "Ridge"
|
|
189
|
+
msgstr "Qirrali"
|
|
190
|
+
|
|
191
|
+
msgctxt "The label for the border style dropdown when the inset border is applied to a table or a table cell."
|
|
192
|
+
msgid "Inset"
|
|
193
|
+
msgstr "Tushkunlikka tushgan"
|
|
194
|
+
|
|
195
|
+
msgctxt "The label for the border style dropdown when the outset border is applied to a table or a table cell."
|
|
196
|
+
msgid "Outset"
|
|
197
|
+
msgstr "Qavariq"
|
|
198
|
+
|
|
199
|
+
msgctxt "The label used by assistive technologies describing a button that aligns the table cell text to the left."
|
|
200
|
+
msgid "Align cell text to the left"
|
|
201
|
+
msgstr "Matnni chapga tekislash"
|
|
202
|
+
|
|
203
|
+
msgctxt "The label used by assistive technologies describing a button that aligns the table cell text to the center."
|
|
204
|
+
msgid "Align cell text to the center"
|
|
205
|
+
msgstr "Matnni markazga tekislash"
|
|
206
|
+
|
|
207
|
+
msgctxt "The label used by assistive technologies describing a button that aligns the table cell text to the right."
|
|
208
|
+
msgid "Align cell text to the right"
|
|
209
|
+
msgstr "Matnni o'ngga tekislash"
|
|
210
|
+
|
|
211
|
+
msgctxt "The label used by assistive technologies describing a button that justifies the table cell text."
|
|
212
|
+
msgid "Justify cell text"
|
|
213
|
+
msgstr "Matnni kenglikka tekislash"
|
|
214
|
+
|
|
215
|
+
msgctxt "The label used by assistive technologies describing a button that aligns the table cell text to the top."
|
|
216
|
+
msgid "Align cell text to the top"
|
|
217
|
+
msgstr "Hujayra matnini tepaga tekislash"
|
|
218
|
+
|
|
219
|
+
msgctxt "The label used by assistive technologies describing a button that aligns the table cell text to the middle."
|
|
220
|
+
msgid "Align cell text to the middle"
|
|
221
|
+
msgstr "Hujayra matnini markazga tekislash"
|
|
222
|
+
|
|
223
|
+
msgctxt "The label used by assistive technologies describing a button that aligns the table cell text to the bottom."
|
|
224
|
+
msgid "Align cell text to the bottom"
|
|
225
|
+
msgstr "Hujayra matnini pastga tekislash"
|
|
226
|
+
|
|
227
|
+
msgctxt "The label used by assistive technologies describing a button that aligns the table to the left."
|
|
228
|
+
msgid "Align table to the left"
|
|
229
|
+
msgstr "Jadvalni chap tomonga tekislash"
|
|
230
|
+
|
|
231
|
+
msgctxt "The label used by assistive technologies describing a button that centers the table."
|
|
232
|
+
msgid "Center table"
|
|
233
|
+
msgstr "Jadvalni markazga tekislash"
|
|
234
|
+
|
|
235
|
+
msgctxt "The label used by assistive technologies describing a button that aligns the table to the right."
|
|
236
|
+
msgid "Align table to the right"
|
|
237
|
+
msgstr "Jadvalni o'ngga tekislash"
|
|
238
|
+
|
|
239
|
+
msgctxt "The localized error string that can be displayed next to color (background, border) fields that have an invalid value"
|
|
240
|
+
msgid "The color is invalid. Try \"#FF0000\" or \"rgb(255,0,0)\" or \"red\"."
|
|
241
|
+
msgstr "Noto'g'ri rang. \\ \"# FF0000 \\\" yoki \\ \"rgb (255,0,0) \\\" yoki \\ \"red \\\" ni sinab ko'ring."
|
|
242
|
+
|
|
243
|
+
msgctxt "The localized error string that can be displayed next to length (padding, border width) fields that have an invalid value."
|
|
244
|
+
msgid "The value is invalid. Try \"10px\" or \"2em\" or simply \"2\"."
|
|
245
|
+
msgstr "Noto'g'ri qiymat. \\ \"10px \\\" yoki \\ \"2em \\\" yoki shunchaki \\ \"2 \\\" ni sinab ko'ring."
|
|
246
|
+
|
|
247
|
+
msgctxt "The label used by assistive technologies describing a button that opens a color picker, where user can choose a configured color for a certain properties (eg.: background color, color, border-color etc.)."
|
|
248
|
+
msgid "Color picker"
|
|
249
|
+
msgstr "Rang tanlash"
|
|
250
|
+
|
|
251
|
+
msgctxt "The button label for the table toolbar hiding caption attached to the table."
|
|
252
|
+
msgid "Toggle caption off"
|
|
253
|
+
msgstr ""
|
|
254
|
+
|
|
255
|
+
msgctxt "The button label for the table toolbar showing caption attached to the table."
|
|
256
|
+
msgid "Toggle caption on"
|
|
257
|
+
msgstr ""
|
|
258
|
+
|
|
259
|
+
msgctxt "The placeholder text for the table caption displayed when the caption is empty."
|
|
260
|
+
msgid "Enter table caption"
|
|
261
|
+
msgstr ""
|
package/lang/translations/vi.po
CHANGED
package/lang/translations/zh.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -250,12 +250,12 @@ msgstr "顏色選擇"
|
|
|
250
250
|
|
|
251
251
|
msgctxt "The button label for the table toolbar hiding caption attached to the table."
|
|
252
252
|
msgid "Toggle caption off"
|
|
253
|
-
msgstr ""
|
|
253
|
+
msgstr "關閉表標題"
|
|
254
254
|
|
|
255
255
|
msgctxt "The button label for the table toolbar showing caption attached to the table."
|
|
256
256
|
msgid "Toggle caption on"
|
|
257
|
-
msgstr ""
|
|
257
|
+
msgstr "開啟表標題"
|
|
258
258
|
|
|
259
259
|
msgctxt "The placeholder text for the table caption displayed when the caption is empty."
|
|
260
260
|
msgid "Enter table caption"
|
|
261
|
-
msgstr ""
|
|
261
|
+
msgstr "輸入表標題"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-table",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "33.0.0",
|
|
4
4
|
"description": "Table feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,35 +12,37 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"ckeditor5": "^
|
|
15
|
+
"ckeditor5": "^33.0.0",
|
|
16
16
|
"lodash-es": "^4.17.15"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@ckeditor/ckeditor5-alignment": "^
|
|
20
|
-
"@ckeditor/ckeditor5-block-quote": "^
|
|
21
|
-
"@ckeditor/ckeditor5-clipboard": "^
|
|
22
|
-
"@ckeditor/ckeditor5-core": "^
|
|
23
|
-
"@ckeditor/ckeditor5-dev-utils": "^
|
|
24
|
-
"@ckeditor/ckeditor5-editor-classic": "^
|
|
25
|
-
"@ckeditor/ckeditor5-engine": "^
|
|
26
|
-
"@ckeditor/ckeditor5-horizontal-line": "^
|
|
27
|
-
"@ckeditor/ckeditor5-
|
|
28
|
-
"@ckeditor/ckeditor5-
|
|
29
|
-
"@ckeditor/ckeditor5-
|
|
30
|
-
"@ckeditor/ckeditor5-
|
|
31
|
-
"@ckeditor/ckeditor5-
|
|
32
|
-
"@ckeditor/ckeditor5-
|
|
33
|
-
"@ckeditor/ckeditor5-
|
|
34
|
-
"@ckeditor/ckeditor5-
|
|
35
|
-
"@ckeditor/ckeditor5-
|
|
36
|
-
"@ckeditor/ckeditor5-
|
|
37
|
-
"@ckeditor/ckeditor5-
|
|
19
|
+
"@ckeditor/ckeditor5-alignment": "^33.0.0",
|
|
20
|
+
"@ckeditor/ckeditor5-block-quote": "^33.0.0",
|
|
21
|
+
"@ckeditor/ckeditor5-clipboard": "^33.0.0",
|
|
22
|
+
"@ckeditor/ckeditor5-core": "^33.0.0",
|
|
23
|
+
"@ckeditor/ckeditor5-dev-utils": "^28.0.1",
|
|
24
|
+
"@ckeditor/ckeditor5-editor-classic": "^33.0.0",
|
|
25
|
+
"@ckeditor/ckeditor5-engine": "^33.0.0",
|
|
26
|
+
"@ckeditor/ckeditor5-horizontal-line": "^33.0.0",
|
|
27
|
+
"@ckeditor/ckeditor5-html-support": "^33.0.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "^33.0.0",
|
|
29
|
+
"@ckeditor/ckeditor5-indent": "^33.0.0",
|
|
30
|
+
"@ckeditor/ckeditor5-list": "^33.0.0",
|
|
31
|
+
"@ckeditor/ckeditor5-media-embed": "^33.0.0",
|
|
32
|
+
"@ckeditor/ckeditor5-paragraph": "^33.0.0",
|
|
33
|
+
"@ckeditor/ckeditor5-theme-lark": "^33.0.0",
|
|
34
|
+
"@ckeditor/ckeditor5-typing": "^33.0.0",
|
|
35
|
+
"@ckeditor/ckeditor5-ui": "^33.0.0",
|
|
36
|
+
"@ckeditor/ckeditor5-undo": "^33.0.0",
|
|
37
|
+
"@ckeditor/ckeditor5-utils": "^33.0.0",
|
|
38
|
+
"@ckeditor/ckeditor5-widget": "^33.0.0",
|
|
39
|
+
"@ckeditor/ckeditor5-source-editing": "^33.0.0",
|
|
38
40
|
"json-diff": "^0.5.4",
|
|
39
|
-
"webpack": "^
|
|
40
|
-
"webpack-cli": "^
|
|
41
|
+
"webpack": "^5.58.1",
|
|
42
|
+
"webpack-cli": "^4.9.0"
|
|
41
43
|
},
|
|
42
44
|
"engines": {
|
|
43
|
-
"node": ">=
|
|
45
|
+
"node": ">=14.0.0",
|
|
44
46
|
"npm": ">=5.7.1"
|
|
45
47
|
},
|
|
46
48
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { Command } from 'ckeditor5/src/core';
|
|
11
|
-
import { getColumnIndexes, getSelectionAffectedTableCells } from '../utils/selection';
|
|
12
11
|
|
|
13
12
|
/**
|
|
14
13
|
* The insert column command.
|
|
@@ -52,7 +51,8 @@ export default class InsertColumnCommand extends Command {
|
|
|
52
51
|
*/
|
|
53
52
|
refresh() {
|
|
54
53
|
const selection = this.editor.model.document.selection;
|
|
55
|
-
const
|
|
54
|
+
const tableUtils = this.editor.plugins.get( 'TableUtils' );
|
|
55
|
+
const isAnyCellSelected = !!tableUtils.getSelectionAffectedTableCells( selection ).length;
|
|
56
56
|
|
|
57
57
|
this.isEnabled = isAnyCellSelected;
|
|
58
58
|
}
|
|
@@ -71,8 +71,8 @@ export default class InsertColumnCommand extends Command {
|
|
|
71
71
|
const tableUtils = editor.plugins.get( 'TableUtils' );
|
|
72
72
|
const insertBefore = this.order === 'left';
|
|
73
73
|
|
|
74
|
-
const affectedTableCells = getSelectionAffectedTableCells( selection );
|
|
75
|
-
const columnIndexes = getColumnIndexes( affectedTableCells );
|
|
74
|
+
const affectedTableCells = tableUtils.getSelectionAffectedTableCells( selection );
|
|
75
|
+
const columnIndexes = tableUtils.getColumnIndexes( affectedTableCells );
|
|
76
76
|
|
|
77
77
|
const column = insertBefore ? columnIndexes.first : columnIndexes.last;
|
|
78
78
|
const table = affectedTableCells[ 0 ].findAncestor( 'table' );
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { Command } from 'ckeditor5/src/core';
|
|
11
|
-
import { getRowIndexes, getSelectionAffectedTableCells } from '../utils/selection';
|
|
12
11
|
|
|
13
12
|
/**
|
|
14
13
|
* The insert row command.
|
|
@@ -52,7 +51,8 @@ export default class InsertRowCommand extends Command {
|
|
|
52
51
|
*/
|
|
53
52
|
refresh() {
|
|
54
53
|
const selection = this.editor.model.document.selection;
|
|
55
|
-
const
|
|
54
|
+
const tableUtils = this.editor.plugins.get( 'TableUtils' );
|
|
55
|
+
const isAnyCellSelected = !!tableUtils.getSelectionAffectedTableCells( selection ).length;
|
|
56
56
|
|
|
57
57
|
this.isEnabled = isAnyCellSelected;
|
|
58
58
|
}
|
|
@@ -70,8 +70,8 @@ export default class InsertRowCommand extends Command {
|
|
|
70
70
|
const tableUtils = editor.plugins.get( 'TableUtils' );
|
|
71
71
|
const insertAbove = this.order === 'above';
|
|
72
72
|
|
|
73
|
-
const affectedTableCells = getSelectionAffectedTableCells( selection );
|
|
74
|
-
const rowIndexes = getRowIndexes( affectedTableCells );
|
|
73
|
+
const affectedTableCells = tableUtils.getSelectionAffectedTableCells( selection );
|
|
74
|
+
const rowIndexes = tableUtils.getRowIndexes( affectedTableCells );
|
|
75
75
|
|
|
76
76
|
const row = insertAbove ? rowIndexes.first : rowIndexes.last;
|
|
77
77
|
const table = affectedTableCells[ 0 ].findAncestor( 'table' );
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
|
|
10
10
|
import { Command } from 'ckeditor5/src/core';
|
|
11
11
|
import TableWalker from '../tablewalker';
|
|
12
|
-
import { getTableCellsContainingSelection } from '../utils/selection';
|
|
13
12
|
import { isHeadingColumnCell } from '../utils/common';
|
|
14
13
|
import { removeEmptyRowsColumns } from '../utils/structure';
|
|
15
14
|
|
|
@@ -80,7 +79,8 @@ export default class MergeCellCommand extends Command {
|
|
|
80
79
|
execute() {
|
|
81
80
|
const model = this.editor.model;
|
|
82
81
|
const doc = model.document;
|
|
83
|
-
const
|
|
82
|
+
const tableUtils = this.editor.plugins.get( 'TableUtils' );
|
|
83
|
+
const tableCell = tableUtils.getTableCellsContainingSelection( doc.selection )[ 0 ];
|
|
84
84
|
|
|
85
85
|
const cellToMerge = this.value;
|
|
86
86
|
const direction = this.direction;
|
|
@@ -122,14 +122,13 @@ export default class MergeCellCommand extends Command {
|
|
|
122
122
|
_getMergeableCell() {
|
|
123
123
|
const model = this.editor.model;
|
|
124
124
|
const doc = model.document;
|
|
125
|
-
const
|
|
125
|
+
const tableUtils = this.editor.plugins.get( 'TableUtils' );
|
|
126
|
+
const tableCell = tableUtils.getTableCellsContainingSelection( doc.selection )[ 0 ];
|
|
126
127
|
|
|
127
128
|
if ( !tableCell ) {
|
|
128
129
|
return;
|
|
129
130
|
}
|
|
130
131
|
|
|
131
|
-
const tableUtils = this.editor.plugins.get( 'TableUtils' );
|
|
132
|
-
|
|
133
132
|
// First get the cell on proper direction.
|
|
134
133
|
const cellToMerge = this.isHorizontal ?
|
|
135
134
|
getHorizontalCell( tableCell, this.direction, tableUtils ) :
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
|
|
10
10
|
import { Command } from 'ckeditor5/src/core';
|
|
11
11
|
import TableUtils from '../tableutils';
|
|
12
|
-
import { getSelectedTableCells, isSelectionRectangular } from '../utils/selection';
|
|
13
12
|
import { updateNumericAttribute } from '../utils/common';
|
|
14
13
|
import { removeEmptyRowsColumns } from '../utils/structure';
|
|
15
14
|
|
|
@@ -29,8 +28,10 @@ export default class MergeCellsCommand extends Command {
|
|
|
29
28
|
* @inheritDoc
|
|
30
29
|
*/
|
|
31
30
|
refresh() {
|
|
32
|
-
const
|
|
33
|
-
|
|
31
|
+
const tableUtils = this.editor.plugins.get( TableUtils );
|
|
32
|
+
|
|
33
|
+
const selectedTableCells = tableUtils.getSelectedTableCells( this.editor.model.document.selection );
|
|
34
|
+
this.isEnabled = tableUtils.isSelectionRectangular( selectedTableCells, this.editor.plugins.get( TableUtils ) );
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
/**
|
|
@@ -43,7 +44,7 @@ export default class MergeCellsCommand extends Command {
|
|
|
43
44
|
const tableUtils = this.editor.plugins.get( TableUtils );
|
|
44
45
|
|
|
45
46
|
model.change( writer => {
|
|
46
|
-
const selectedTableCells = getSelectedTableCells( model.document.selection );
|
|
47
|
+
const selectedTableCells = tableUtils.getSelectedTableCells( model.document.selection );
|
|
47
48
|
|
|
48
49
|
// All cells will be merged into the first one.
|
|
49
50
|
const firstTableCell = selectedTableCells.shift();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
import { Command } from 'ckeditor5/src/core';
|
|
11
11
|
|
|
12
12
|
import TableWalker from '../tablewalker';
|
|
13
|
-
import { getColumnIndexes, getSelectionAffectedTableCells } from '../utils/selection';
|
|
14
13
|
|
|
15
14
|
/**
|
|
16
15
|
* The remove column command.
|
|
@@ -28,14 +27,15 @@ export default class RemoveColumnCommand extends Command {
|
|
|
28
27
|
* @inheritDoc
|
|
29
28
|
*/
|
|
30
29
|
refresh() {
|
|
31
|
-
const
|
|
30
|
+
const tableUtils = this.editor.plugins.get( 'TableUtils' );
|
|
31
|
+
const selectedCells = tableUtils.getSelectionAffectedTableCells( this.editor.model.document.selection );
|
|
32
32
|
const firstCell = selectedCells[ 0 ];
|
|
33
33
|
|
|
34
34
|
if ( firstCell ) {
|
|
35
35
|
const table = firstCell.findAncestor( 'table' );
|
|
36
|
-
const tableColumnCount =
|
|
36
|
+
const tableColumnCount = tableUtils.getColumns( table );
|
|
37
37
|
|
|
38
|
-
const { first, last } = getColumnIndexes( selectedCells );
|
|
38
|
+
const { first, last } = tableUtils.getColumnIndexes( selectedCells );
|
|
39
39
|
|
|
40
40
|
this.isEnabled = last - first < ( tableColumnCount - 1 );
|
|
41
41
|
} else {
|
|
@@ -47,7 +47,8 @@ export default class RemoveColumnCommand extends Command {
|
|
|
47
47
|
* @inheritDoc
|
|
48
48
|
*/
|
|
49
49
|
execute() {
|
|
50
|
-
const
|
|
50
|
+
const tableUtils = this.editor.plugins.get( 'TableUtils' );
|
|
51
|
+
const [ firstCell, lastCell ] = getBoundaryCells( this.editor.model.document.selection, tableUtils );
|
|
51
52
|
const table = firstCell.parent.parent;
|
|
52
53
|
|
|
53
54
|
// Cache the table before removing or updating colspans.
|
|
@@ -111,8 +112,8 @@ function getCellToFocus( tableMap, firstCell, lastCell, removedColumnIndexes ) {
|
|
|
111
112
|
}
|
|
112
113
|
|
|
113
114
|
// Returns helper object returning the first and the last cell contained in given selection, based on DOM order.
|
|
114
|
-
function getBoundaryCells( selection ) {
|
|
115
|
-
const referenceCells = getSelectionAffectedTableCells( selection );
|
|
115
|
+
function getBoundaryCells( selection, tableUtils ) {
|
|
116
|
+
const referenceCells = tableUtils.getSelectionAffectedTableCells( selection );
|
|
116
117
|
const firstCell = referenceCells[ 0 ];
|
|
117
118
|
const lastCell = referenceCells.pop();
|
|
118
119
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
|
|
10
10
|
import { Command } from 'ckeditor5/src/core';
|
|
11
11
|
|
|
12
|
-
import { getRowIndexes, getSelectionAffectedTableCells } from '../utils/selection';
|
|
13
|
-
|
|
14
12
|
/**
|
|
15
13
|
* The remove row command.
|
|
16
14
|
*
|
|
@@ -27,7 +25,8 @@ export default class RemoveRowCommand extends Command {
|
|
|
27
25
|
* @inheritDoc
|
|
28
26
|
*/
|
|
29
27
|
refresh() {
|
|
30
|
-
const
|
|
28
|
+
const tableUtils = this.editor.plugins.get( 'TableUtils' );
|
|
29
|
+
const selectedCells = tableUtils.getSelectionAffectedTableCells( this.editor.model.document.selection );
|
|
31
30
|
const firstCell = selectedCells[ 0 ];
|
|
32
31
|
|
|
33
32
|
if ( firstCell ) {
|
|
@@ -35,7 +34,7 @@ export default class RemoveRowCommand extends Command {
|
|
|
35
34
|
const tableRowCount = this.editor.plugins.get( 'TableUtils' ).getRows( table );
|
|
36
35
|
const lastRowIndex = tableRowCount - 1;
|
|
37
36
|
|
|
38
|
-
const selectedRowIndexes = getRowIndexes( selectedCells );
|
|
37
|
+
const selectedRowIndexes = tableUtils.getRowIndexes( selectedCells );
|
|
39
38
|
|
|
40
39
|
const areAllRowsSelected = selectedRowIndexes.first === 0 && selectedRowIndexes.last === lastRowIndex;
|
|
41
40
|
|
|
@@ -53,8 +52,8 @@ export default class RemoveRowCommand extends Command {
|
|
|
53
52
|
const model = this.editor.model;
|
|
54
53
|
const tableUtils = this.editor.plugins.get( 'TableUtils' );
|
|
55
54
|
|
|
56
|
-
const referenceCells = getSelectionAffectedTableCells( model.document.selection );
|
|
57
|
-
const removedRowIndexes = getRowIndexes( referenceCells );
|
|
55
|
+
const referenceCells = tableUtils.getSelectionAffectedTableCells( model.document.selection );
|
|
56
|
+
const removedRowIndexes = tableUtils.getRowIndexes( referenceCells );
|
|
58
57
|
|
|
59
58
|
const firstCell = referenceCells[ 0 ];
|
|
60
59
|
const table = firstCell.findAncestor( 'table' );
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
import { Command } from 'ckeditor5/src/core';
|
|
11
11
|
|
|
12
12
|
import TableWalker from '../tablewalker';
|
|
13
|
-
import { getSelectionAffectedTableCells } from '../utils/selection';
|
|
14
13
|
|
|
15
14
|
/**
|
|
16
15
|
* The select column command.
|
|
@@ -38,7 +37,8 @@ export default class SelectColumnCommand extends Command {
|
|
|
38
37
|
* @inheritDoc
|
|
39
38
|
*/
|
|
40
39
|
refresh() {
|
|
41
|
-
const
|
|
40
|
+
const tableUtils = this.editor.plugins.get( 'TableUtils' );
|
|
41
|
+
const selectedCells = tableUtils.getSelectionAffectedTableCells( this.editor.model.document.selection );
|
|
42
42
|
|
|
43
43
|
this.isEnabled = selectedCells.length > 0;
|
|
44
44
|
}
|
|
@@ -47,13 +47,13 @@ export default class SelectColumnCommand extends Command {
|
|
|
47
47
|
* @inheritDoc
|
|
48
48
|
*/
|
|
49
49
|
execute() {
|
|
50
|
+
const tableUtils = this.editor.plugins.get( 'TableUtils' );
|
|
50
51
|
const model = this.editor.model;
|
|
51
|
-
const referenceCells = getSelectionAffectedTableCells( model.document.selection );
|
|
52
|
+
const referenceCells = tableUtils.getSelectionAffectedTableCells( model.document.selection );
|
|
52
53
|
const firstCell = referenceCells[ 0 ];
|
|
53
54
|
const lastCell = referenceCells.pop();
|
|
54
55
|
const table = firstCell.findAncestor( 'table' );
|
|
55
56
|
|
|
56
|
-
const tableUtils = this.editor.plugins.get( 'TableUtils' );
|
|
57
57
|
const startLocation = tableUtils.getCellLocation( firstCell );
|
|
58
58
|
const endLocation = tableUtils.getCellLocation( lastCell );
|
|
59
59
|
|