@ckeditor/ckeditor5-table 31.1.0 → 34.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.
Files changed (146) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -1
  3. package/build/table.js +3 -3
  4. package/build/table.js.map +1 -0
  5. package/build/translations/cs.js +1 -1
  6. package/build/translations/el.js +1 -0
  7. package/build/translations/en-au.js +1 -1
  8. package/build/translations/es.js +1 -1
  9. package/build/translations/hr.js +1 -1
  10. package/build/translations/sk.js +1 -1
  11. package/lang/translations/ar.po +1 -1
  12. package/lang/translations/az.po +1 -1
  13. package/lang/translations/bg.po +1 -1
  14. package/lang/translations/cs.po +4 -4
  15. package/lang/translations/da.po +1 -1
  16. package/lang/translations/de-ch.po +1 -1
  17. package/lang/translations/de.po +1 -1
  18. package/lang/translations/el.po +261 -0
  19. package/lang/translations/en-au.po +4 -4
  20. package/lang/translations/en-gb.po +1 -1
  21. package/lang/translations/en.po +1 -1
  22. package/lang/translations/es.po +33 -33
  23. package/lang/translations/et.po +1 -1
  24. package/lang/translations/fa.po +1 -1
  25. package/lang/translations/fi.po +1 -1
  26. package/lang/translations/fr.po +1 -1
  27. package/lang/translations/gl.po +1 -1
  28. package/lang/translations/hi.po +1 -1
  29. package/lang/translations/hr.po +4 -4
  30. package/lang/translations/hu.po +1 -1
  31. package/lang/translations/id.po +1 -1
  32. package/lang/translations/it.po +1 -1
  33. package/lang/translations/ja.po +1 -1
  34. package/lang/translations/ko.po +1 -1
  35. package/lang/translations/ku.po +1 -1
  36. package/lang/translations/lt.po +1 -1
  37. package/lang/translations/lv.po +1 -1
  38. package/lang/translations/nb.po +1 -1
  39. package/lang/translations/ne.po +1 -1
  40. package/lang/translations/nl.po +1 -1
  41. package/lang/translations/no.po +1 -1
  42. package/lang/translations/pl.po +1 -1
  43. package/lang/translations/pt-br.po +1 -1
  44. package/lang/translations/ro.po +1 -1
  45. package/lang/translations/ru.po +1 -1
  46. package/lang/translations/sk.po +4 -4
  47. package/lang/translations/sq.po +1 -1
  48. package/lang/translations/sr-latn.po +1 -1
  49. package/lang/translations/sr.po +1 -1
  50. package/lang/translations/sv.po +1 -1
  51. package/lang/translations/th.po +1 -1
  52. package/lang/translations/tk.po +1 -1
  53. package/lang/translations/tr.po +1 -1
  54. package/lang/translations/ug.po +1 -1
  55. package/lang/translations/uk.po +1 -1
  56. package/lang/translations/uz.po +1 -1
  57. package/lang/translations/vi.po +1 -1
  58. package/lang/translations/zh-cn.po +1 -1
  59. package/lang/translations/zh.po +1 -1
  60. package/package.json +26 -24
  61. package/src/commands/insertcolumncommand.js +5 -5
  62. package/src/commands/insertrowcommand.js +5 -5
  63. package/src/commands/inserttablecommand.js +2 -6
  64. package/src/commands/mergecellcommand.js +5 -6
  65. package/src/commands/mergecellscommand.js +6 -5
  66. package/src/commands/removecolumncommand.js +9 -8
  67. package/src/commands/removerowcommand.js +6 -7
  68. package/src/commands/selectcolumncommand.js +5 -5
  69. package/src/commands/selectrowcommand.js +6 -6
  70. package/src/commands/setheadercolumncommand.js +6 -5
  71. package/src/commands/setheaderrowcommand.js +8 -5
  72. package/src/commands/splitcellcommand.js +5 -5
  73. package/src/converters/downcast.js +77 -408
  74. package/src/converters/table-caption-post-fixer.js +1 -1
  75. package/src/converters/table-cell-paragraph-post-fixer.js +1 -1
  76. package/src/converters/{table-cell-refresh-post-fixer.js → table-cell-refresh-handler.js} +9 -20
  77. package/src/converters/table-headings-refresh-handler.js +68 -0
  78. package/src/converters/table-layout-post-fixer.js +1 -1
  79. package/src/converters/tableproperties.js +1 -1
  80. package/src/converters/upcasttable.js +1 -1
  81. package/src/index.js +2 -1
  82. package/src/plaintableoutput.js +151 -0
  83. package/src/table.js +1 -1
  84. package/src/tablecaption/tablecaptionediting.js +1 -1
  85. package/src/tablecaption/tablecaptionui.js +3 -3
  86. package/src/tablecaption/toggletablecaptioncommand.js +3 -3
  87. package/src/tablecaption/utils.js +1 -1
  88. package/src/tablecaption.js +1 -1
  89. package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.js +1 -1
  90. package/src/tablecellproperties/commands/tablecellbordercolorcommand.js +1 -1
  91. package/src/tablecellproperties/commands/tablecellborderstylecommand.js +1 -1
  92. package/src/tablecellproperties/commands/tablecellborderwidthcommand.js +1 -1
  93. package/src/tablecellproperties/commands/tablecellheightcommand.js +1 -1
  94. package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.js +1 -1
  95. package/src/tablecellproperties/commands/tablecellpaddingcommand.js +1 -1
  96. package/src/tablecellproperties/commands/tablecellpropertycommand.js +6 -5
  97. package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.js +1 -1
  98. package/src/tablecellproperties/commands/tablecellwidthcommand.js +1 -1
  99. package/src/tablecellproperties/tablecellpropertiesediting.js +1 -1
  100. package/src/tablecellproperties/tablecellpropertiesui.js +1 -1
  101. package/src/tablecellproperties/ui/tablecellpropertiesview.js +1 -1
  102. package/src/tablecellproperties.js +1 -1
  103. package/src/tableclipboard.js +19 -16
  104. package/src/tableediting.js +52 -33
  105. package/src/tablekeyboard.js +74 -71
  106. package/src/tablemouse/mouseeventsobserver.js +1 -1
  107. package/src/tablemouse.js +7 -5
  108. package/src/tableproperties/commands/tablealignmentcommand.js +1 -1
  109. package/src/tableproperties/commands/tablebackgroundcolorcommand.js +1 -1
  110. package/src/tableproperties/commands/tablebordercolorcommand.js +1 -1
  111. package/src/tableproperties/commands/tableborderstylecommand.js +1 -1
  112. package/src/tableproperties/commands/tableborderwidthcommand.js +1 -1
  113. package/src/tableproperties/commands/tableheightcommand.js +1 -1
  114. package/src/tableproperties/commands/tablepropertycommand.js +2 -2
  115. package/src/tableproperties/commands/tablewidthcommand.js +1 -1
  116. package/src/tableproperties/tablepropertiesediting.js +1 -1
  117. package/src/tableproperties/tablepropertiesui.js +1 -1
  118. package/src/tableproperties/ui/tablepropertiesview.js +1 -1
  119. package/src/tableproperties.js +1 -1
  120. package/src/tableselection.js +10 -9
  121. package/src/tabletoolbar.js +1 -1
  122. package/src/tableui.js +1 -1
  123. package/src/tableutils.js +311 -1
  124. package/src/tablewalker.js +1 -1
  125. package/src/ui/colorinputview.js +1 -1
  126. package/src/ui/formrowview.js +1 -1
  127. package/src/ui/inserttableview.js +1 -1
  128. package/src/utils/common.js +1 -1
  129. package/src/utils/structure.js +1 -1
  130. package/src/utils/table-properties.js +1 -1
  131. package/src/utils/ui/contextualballoon.js +1 -1
  132. package/src/utils/ui/table-properties.js +1 -1
  133. package/src/utils/ui/widget.js +1 -1
  134. package/theme/colorinput.css +1 -1
  135. package/theme/form.css +1 -1
  136. package/theme/formrow.css +1 -1
  137. package/theme/inserttable.css +1 -1
  138. package/theme/table.css +2 -2
  139. package/theme/tablecaption.css +1 -1
  140. package/theme/tablecellproperties.css +1 -1
  141. package/theme/tableediting.css +1 -1
  142. package/theme/tableform.css +1 -1
  143. package/theme/tableproperties.css +1 -1
  144. package/theme/tableselection.css +1 -1
  145. package/src/converters/table-heading-rows-refresh-post-fixer.js +0 -72
  146. package/src/utils/selection.js +0 -276
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -102,11 +102,11 @@ msgstr "Barra de herramientas de tabla"
102
102
 
103
103
  msgctxt "The label describing the form allowing to specify the properties of a selected table."
104
104
  msgid "Table properties"
105
- msgstr ""
105
+ msgstr "Propiedades de tabla"
106
106
 
107
107
  msgctxt "The label describing the form allowing to specify the properties of a selected table cell."
108
108
  msgid "Cell properties"
109
- msgstr ""
109
+ msgstr "Propiedades de celda"
110
110
 
111
111
  msgctxt "The label describing a group of border–related form fields (border style, color, etc.)."
112
112
  msgid "Border"
@@ -118,11 +118,11 @@ msgstr "Estilo"
118
118
 
119
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
120
  msgid "Width"
121
- msgstr ""
121
+ msgstr "Ancho"
122
122
 
123
123
  msgctxt "The label for the input that allows configuring the height of a table or a table cell."
124
124
  msgid "Height"
125
- msgstr ""
125
+ msgstr "Altura"
126
126
 
127
127
  msgctxt "The label for the input that allows configuring the border color of a table or a table cell."
128
128
  msgid "Color"
@@ -130,11 +130,11 @@ msgstr "Color"
130
130
 
131
131
  msgctxt "The label for the input that allows configuring the background color of a table or a table cell."
132
132
  msgid "Background"
133
- msgstr ""
133
+ msgstr "Fondo"
134
134
 
135
135
  msgctxt "The label for the input that allows configuring the padding of a table cell."
136
136
  msgid "Padding"
137
- msgstr ""
137
+ msgstr "Márgenes"
138
138
 
139
139
  msgctxt "The label describing a group of form fields that allows setting dimensions of a table or a table cell."
140
140
  msgid "Dimensions"
@@ -142,27 +142,27 @@ msgstr "Dimensiones"
142
142
 
143
143
  msgctxt "The label for the group of toolbars that allows configuring the text alignment in a table cell."
144
144
  msgid "Table cell text alignment"
145
- msgstr ""
145
+ msgstr "Alineación texto de celda"
146
146
 
147
147
  msgctxt "The label for the toolbar that allows configuring the alignment of a table."
148
148
  msgid "Alignment"
149
- msgstr ""
149
+ msgstr "Alineación"
150
150
 
151
151
  msgctxt "The label used by assistive technologies describing a toolbar that allows configuring the horizontal text alignment in a table cell."
152
152
  msgid "Horizontal text alignment toolbar"
153
- msgstr ""
153
+ msgstr "Alineación horizontal de texto"
154
154
 
155
155
  msgctxt "The label used by assistive technologies describing a toolbar that allows configuring the vertical text alignment in a table cell."
156
156
  msgid "Vertical text alignment toolbar"
157
- msgstr ""
157
+ msgstr "Alineación vertical de texto"
158
158
 
159
159
  msgctxt "The label used by assistive technologies describing a toolbar that allows configuring the alignment of a table."
160
160
  msgid "Table alignment toolbar"
161
- msgstr ""
161
+ msgstr "Alineación de tabla"
162
162
 
163
163
  msgctxt "The label for the border style dropdown when no style is applied to a table or a table cell."
164
164
  msgid "None"
165
- msgstr ""
165
+ msgstr "Ninguno"
166
166
 
167
167
  msgctxt "The label for the border style dropdown when the solid border is applied to a table or a table cell."
168
168
  msgid "Solid"
@@ -170,59 +170,59 @@ msgstr "Sólido"
170
170
 
171
171
  msgctxt "The label for the border style dropdown when the dotted border is applied to a table or a table cell."
172
172
  msgid "Dotted"
173
- msgstr ""
173
+ msgstr "Línea de puntos"
174
174
 
175
175
  msgctxt "The label for the border style dropdown when the dashed border is applied to a table or a table cell."
176
176
  msgid "Dashed"
177
- msgstr ""
177
+ msgstr "Línea discontinua"
178
178
 
179
179
  msgctxt "The label for the border style dropdown when the double border is applied to a table or a table cell."
180
180
  msgid "Double"
181
- msgstr "Doble"
181
+ msgstr "Doble línea"
182
182
 
183
183
  msgctxt "The label for the border style dropdown when the groove border is applied to a table or a table cell."
184
184
  msgid "Groove"
185
- msgstr ""
185
+ msgstr "Bisel"
186
186
 
187
187
  msgctxt "The label for the border style dropdown when the ridge border is applied to a table or a table cell."
188
188
  msgid "Ridge"
189
- msgstr ""
189
+ msgstr "Marco"
190
190
 
191
191
  msgctxt "The label for the border style dropdown when the inset border is applied to a table or a table cell."
192
192
  msgid "Inset"
193
- msgstr ""
193
+ msgstr "Incrustación"
194
194
 
195
195
  msgctxt "The label for the border style dropdown when the outset border is applied to a table or a table cell."
196
196
  msgid "Outset"
197
- msgstr ""
197
+ msgstr "Relieve"
198
198
 
199
199
  msgctxt "The label used by assistive technologies describing a button that aligns the table cell text to the left."
200
200
  msgid "Align cell text to the left"
201
- msgstr ""
201
+ msgstr "Alinear texto de celda a la izquierda"
202
202
 
203
203
  msgctxt "The label used by assistive technologies describing a button that aligns the table cell text to the center."
204
204
  msgid "Align cell text to the center"
205
- msgstr ""
205
+ msgstr "Centrar texto de celda"
206
206
 
207
207
  msgctxt "The label used by assistive technologies describing a button that aligns the table cell text to the right."
208
208
  msgid "Align cell text to the right"
209
- msgstr ""
209
+ msgstr "Alinear texto de celda a la derecha"
210
210
 
211
211
  msgctxt "The label used by assistive technologies describing a button that justifies the table cell text."
212
212
  msgid "Justify cell text"
213
- msgstr ""
213
+ msgstr "Justificar texto de celda"
214
214
 
215
215
  msgctxt "The label used by assistive technologies describing a button that aligns the table cell text to the top."
216
216
  msgid "Align cell text to the top"
217
- msgstr ""
217
+ msgstr "Alinear texto de celda hacia arriba"
218
218
 
219
219
  msgctxt "The label used by assistive technologies describing a button that aligns the table cell text to the middle."
220
220
  msgid "Align cell text to the middle"
221
- msgstr ""
221
+ msgstr "Alinear texto de celda al medio"
222
222
 
223
223
  msgctxt "The label used by assistive technologies describing a button that aligns the table cell text to the bottom."
224
224
  msgid "Align cell text to the bottom"
225
- msgstr ""
225
+ msgstr "Alinear texto de celda hacia abajo"
226
226
 
227
227
  msgctxt "The label used by assistive technologies describing a button that aligns the table to the left."
228
228
  msgid "Align table to the left"
@@ -238,24 +238,24 @@ msgstr "Alinear tabla a la derecha"
238
238
 
239
239
  msgctxt "The localized error string that can be displayed next to color (background, border) fields that have an invalid value"
240
240
  msgid "The color is invalid. Try \"#FF0000\" or \"rgb(255,0,0)\" or \"red\"."
241
- msgstr ""
241
+ msgstr "El color es inválido. Intente con \"#FF0000\", \"rgb(255,0,0)\" o \"red\"."
242
242
 
243
243
  msgctxt "The localized error string that can be displayed next to length (padding, border width) fields that have an invalid value."
244
244
  msgid "The value is invalid. Try \"10px\" or \"2em\" or simply \"2\"."
245
- msgstr ""
245
+ msgstr "El valor es inválido. Intente con \"10px\", \"2em\" o simplemente \"2\"."
246
246
 
247
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
248
  msgid "Color picker"
249
- msgstr ""
249
+ msgstr "Selector de color"
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 "Desactivar título"
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 "Activar título"
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 "Ingresar título de tabla"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
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 "Birač boje"
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 "Isključite natpis"
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 "Uključite natpis"
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 "Unesite natpis"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
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 "Vybrať farbu"
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 "Vypnúť titulok"
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 "Zapnúť titulok"
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 "Zadajte popis tabuľky"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-table",
3
- "version": "31.1.0",
3
+ "version": "34.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": "^31.1.0",
15
+ "ckeditor5": "^34.0.0",
16
16
  "lodash-es": "^4.17.15"
17
17
  },
18
18
  "devDependencies": {
19
- "@ckeditor/ckeditor5-alignment": "^31.1.0",
20
- "@ckeditor/ckeditor5-block-quote": "^31.1.0",
21
- "@ckeditor/ckeditor5-clipboard": "^31.1.0",
22
- "@ckeditor/ckeditor5-core": "^31.1.0",
23
- "@ckeditor/ckeditor5-dev-utils": "^26.0.0",
24
- "@ckeditor/ckeditor5-editor-classic": "^31.1.0",
25
- "@ckeditor/ckeditor5-engine": "^31.1.0",
26
- "@ckeditor/ckeditor5-horizontal-line": "^31.1.0",
27
- "@ckeditor/ckeditor5-image": "^31.1.0",
28
- "@ckeditor/ckeditor5-indent": "^31.1.0",
29
- "@ckeditor/ckeditor5-list": "^31.1.0",
30
- "@ckeditor/ckeditor5-media-embed": "^31.1.0",
31
- "@ckeditor/ckeditor5-paragraph": "^31.1.0",
32
- "@ckeditor/ckeditor5-theme-lark": "^31.1.0",
33
- "@ckeditor/ckeditor5-typing": "^31.1.0",
34
- "@ckeditor/ckeditor5-ui": "^31.1.0",
35
- "@ckeditor/ckeditor5-undo": "^31.1.0",
36
- "@ckeditor/ckeditor5-utils": "^31.1.0",
37
- "@ckeditor/ckeditor5-widget": "^31.1.0",
19
+ "@ckeditor/ckeditor5-alignment": "^34.0.0",
20
+ "@ckeditor/ckeditor5-block-quote": "^34.0.0",
21
+ "@ckeditor/ckeditor5-clipboard": "^34.0.0",
22
+ "@ckeditor/ckeditor5-core": "^34.0.0",
23
+ "@ckeditor/ckeditor5-dev-utils": "^30.0.0",
24
+ "@ckeditor/ckeditor5-editor-classic": "^34.0.0",
25
+ "@ckeditor/ckeditor5-engine": "^34.0.0",
26
+ "@ckeditor/ckeditor5-horizontal-line": "^34.0.0",
27
+ "@ckeditor/ckeditor5-html-support": "^34.0.0",
28
+ "@ckeditor/ckeditor5-image": "^34.0.0",
29
+ "@ckeditor/ckeditor5-indent": "^34.0.0",
30
+ "@ckeditor/ckeditor5-list": "^34.0.0",
31
+ "@ckeditor/ckeditor5-media-embed": "^34.0.0",
32
+ "@ckeditor/ckeditor5-paragraph": "^34.0.0",
33
+ "@ckeditor/ckeditor5-theme-lark": "^34.0.0",
34
+ "@ckeditor/ckeditor5-typing": "^34.0.0",
35
+ "@ckeditor/ckeditor5-ui": "^34.0.0",
36
+ "@ckeditor/ckeditor5-undo": "^34.0.0",
37
+ "@ckeditor/ckeditor5-utils": "^34.0.0",
38
+ "@ckeditor/ckeditor5-widget": "^34.0.0",
39
+ "@ckeditor/ckeditor5-source-editing": "^34.0.0",
38
40
  "json-diff": "^0.5.4",
39
- "webpack": "^4.43.0",
40
- "webpack-cli": "^3.3.11"
41
+ "webpack": "^5.58.1",
42
+ "webpack-cli": "^4.9.0"
41
43
  },
42
44
  "engines": {
43
- "node": ">=12.0.0",
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-2021, CKSource - Frederico Knabben. All rights reserved.
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 isAnyCellSelected = !!getSelectionAffectedTableCells( selection ).length;
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-2021, CKSource - Frederico Knabben. All rights reserved.
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 isAnyCellSelected = !!getSelectionAffectedTableCells( selection ).length;
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' );