@ckeditor/ckeditor5-table 0.0.0-nightly-20240410.0 → 0.0.0-nightly-20240412.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 (81) hide show
  1. package/build/table.js +1 -1
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fi.js +1 -1
  13. package/build/translations/fr.js +1 -1
  14. package/build/translations/he.js +1 -1
  15. package/build/translations/hi.js +1 -1
  16. package/build/translations/hu.js +1 -1
  17. package/build/translations/id.js +1 -1
  18. package/build/translations/it.js +1 -1
  19. package/build/translations/ja.js +1 -1
  20. package/build/translations/ko.js +1 -1
  21. package/build/translations/lt.js +1 -1
  22. package/build/translations/lv.js +1 -1
  23. package/build/translations/ms.js +1 -1
  24. package/build/translations/nl.js +1 -1
  25. package/build/translations/no.js +1 -1
  26. package/build/translations/pl.js +1 -1
  27. package/build/translations/pt-br.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sk.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/lang/translations/ar.po +1 -1
  41. package/lang/translations/bg.po +1 -1
  42. package/lang/translations/bn.po +1 -1
  43. package/lang/translations/ca.po +1 -1
  44. package/lang/translations/cs.po +1 -1
  45. package/lang/translations/da.po +1 -1
  46. package/lang/translations/de.po +1 -1
  47. package/lang/translations/el.po +1 -1
  48. package/lang/translations/es.po +1 -1
  49. package/lang/translations/et.po +1 -1
  50. package/lang/translations/fi.po +1 -1
  51. package/lang/translations/fr.po +1 -1
  52. package/lang/translations/he.po +1 -1
  53. package/lang/translations/hi.po +1 -1
  54. package/lang/translations/hu.po +1 -1
  55. package/lang/translations/id.po +1 -1
  56. package/lang/translations/it.po +1 -1
  57. package/lang/translations/ja.po +1 -1
  58. package/lang/translations/ko.po +1 -1
  59. package/lang/translations/lt.po +1 -1
  60. package/lang/translations/lv.po +1 -1
  61. package/lang/translations/ms.po +1 -1
  62. package/lang/translations/nl.po +1 -1
  63. package/lang/translations/no.po +1 -1
  64. package/lang/translations/pl.po +1 -1
  65. package/lang/translations/pt-br.po +1 -1
  66. package/lang/translations/pt.po +1 -1
  67. package/lang/translations/ro.po +1 -1
  68. package/lang/translations/ru.po +1 -1
  69. package/lang/translations/sk.po +1 -1
  70. package/lang/translations/sr.po +1 -1
  71. package/lang/translations/sv.po +1 -1
  72. package/lang/translations/th.po +1 -1
  73. package/lang/translations/tr.po +1 -1
  74. package/lang/translations/uk.po +1 -1
  75. package/lang/translations/vi.po +1 -1
  76. package/lang/translations/zh-cn.po +1 -1
  77. package/lang/translations/zh.po +1 -1
  78. package/package.json +2 -2
  79. package/src/tableui.js +5 -0
  80. package/src/ui/inserttableview.d.ts +4 -0
  81. package/src/ui/inserttableview.js +9 -0
@@ -275,4 +275,4 @@ msgstr "Навігація по таблиці"
275
275
 
276
276
  msgctxt "The accessible label of the menu bar button that displays a user interface to insert a table into editor content."
277
277
  msgid "Table"
278
- msgstr ""
278
+ msgstr "Таблиця"
@@ -275,4 +275,4 @@ msgstr "Điều hướng qua bảng"
275
275
 
276
276
  msgctxt "The accessible label of the menu bar button that displays a user interface to insert a table into editor content."
277
277
  msgid "Table"
278
- msgstr ""
278
+ msgstr "Bảng"
@@ -275,4 +275,4 @@ msgstr "在表格中进行导览"
275
275
 
276
276
  msgctxt "The accessible label of the menu bar button that displays a user interface to insert a table into editor content."
277
277
  msgid "Table"
278
- msgstr ""
278
+ msgstr "表格"
@@ -275,4 +275,4 @@ msgstr "在表格中移動"
275
275
 
276
276
  msgctxt "The accessible label of the menu bar button that displays a user interface to insert a table into editor content."
277
277
  msgid "Table"
278
- msgstr ""
278
+ msgstr "表格"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-table",
3
- "version": "0.0.0-nightly-20240410.0",
3
+ "version": "0.0.0-nightly-20240412.0",
4
4
  "description": "Table feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,7 +13,7 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "ckeditor5": "0.0.0-nightly-20240410.0",
16
+ "ckeditor5": "0.0.0-nightly-20240412.0",
17
17
  "lodash-es": "4.17.21"
18
18
  },
19
19
  "author": "CKSource (http://cksource.com/)",
package/src/tableui.js CHANGED
@@ -69,6 +69,11 @@ export default class TableUI extends Plugin {
69
69
  const menuView = new MenuBarMenuView(locale);
70
70
  const insertTableView = new InsertTableView(locale);
71
71
  insertTableView.delegate('execute').to(menuView);
72
+ menuView.on('change:isOpen', (event, name, isOpen) => {
73
+ if (!isOpen) {
74
+ insertTableView.reset();
75
+ }
76
+ });
72
77
  insertTableView.on('execute', () => {
73
78
  editor.execute('insertTable', { rows: insertTableView.rows, columns: insertTableView.columns });
74
79
  editor.editing.view.focus();
@@ -49,6 +49,10 @@ export default class InsertTableView extends View {
49
49
  */
50
50
  constructor(locale: Locale);
51
51
  render(): void;
52
+ /**
53
+ * Resets the rows and columns selection.
54
+ */
55
+ reset(): void;
52
56
  /**
53
57
  * @inheritDoc
54
58
  */
@@ -103,6 +103,15 @@ export default class InsertTableView extends View {
103
103
  }
104
104
  this.keystrokes.listenTo(this.element);
105
105
  }
106
+ /**
107
+ * Resets the rows and columns selection.
108
+ */
109
+ reset() {
110
+ this.set({
111
+ rows: 1,
112
+ columns: 1
113
+ });
114
+ }
106
115
  /**
107
116
  * @inheritDoc
108
117
  */