jodit 4.18.4 → 4.18.6

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 (194) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/es2015/jodit.css +13 -34
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +11 -11
  5. package/es2015/jodit.js +1029 -205
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +11 -11
  8. package/es2015/plugins/debug/debug.css +1 -1
  9. package/es2015/plugins/debug/debug.js +1 -1
  10. package/es2015/plugins/debug/debug.min.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  12. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  13. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  14. package/es2018/jodit.fat.min.css +1 -1
  15. package/es2018/jodit.fat.min.js +11 -11
  16. package/es2018/jodit.min.css +1 -1
  17. package/es2018/jodit.min.js +11 -11
  18. package/es2018/plugins/debug/debug.min.js +1 -1
  19. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  20. package/es2021/jodit.css +13 -34
  21. package/es2021/jodit.fat.min.css +1 -1
  22. package/es2021/jodit.fat.min.js +15 -15
  23. package/es2021/jodit.js +1021 -203
  24. package/es2021/jodit.min.css +1 -1
  25. package/es2021/jodit.min.js +15 -15
  26. package/es2021/plugins/debug/debug.css +1 -1
  27. package/es2021/plugins/debug/debug.js +1 -1
  28. package/es2021/plugins/debug/debug.min.js +1 -1
  29. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  30. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  31. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  32. package/es2021.en/jodit.css +13 -34
  33. package/es2021.en/jodit.fat.min.css +1 -1
  34. package/es2021.en/jodit.fat.min.js +15 -15
  35. package/es2021.en/jodit.js +995 -177
  36. package/es2021.en/jodit.min.css +1 -1
  37. package/es2021.en/jodit.min.js +15 -15
  38. package/es2021.en/plugins/debug/debug.css +1 -1
  39. package/es2021.en/plugins/debug/debug.js +1 -1
  40. package/es2021.en/plugins/debug/debug.min.js +1 -1
  41. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  42. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  43. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  44. package/es5/jodit.css +14 -41
  45. package/es5/jodit.fat.min.css +1 -1
  46. package/es5/jodit.fat.min.js +2 -2
  47. package/es5/jodit.js +1152 -254
  48. package/es5/jodit.min.css +3 -3
  49. package/es5/jodit.min.js +2 -2
  50. package/es5/plugins/debug/debug.css +1 -1
  51. package/es5/plugins/debug/debug.js +1 -1
  52. package/es5/plugins/debug/debug.min.js +1 -1
  53. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  54. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  56. package/es5/polyfills.fat.min.js +1 -1
  57. package/es5/polyfills.js +1 -1
  58. package/es5/polyfills.min.js +1 -1
  59. package/esm/config.d.ts +3 -0
  60. package/esm/core/constants.js +1 -1
  61. package/esm/core/helpers/html/apply-styles.js +3 -0
  62. package/esm/core/helpers/html/clean-from-word.js +3 -0
  63. package/esm/core/helpers/html/strip-tags.js +24 -6
  64. package/esm/core/helpers/html/word-lists.d.ts +29 -0
  65. package/esm/core/helpers/html/word-lists.js +158 -0
  66. package/esm/core/selection/helpers/index.d.ts +1 -0
  67. package/esm/core/selection/helpers/index.js +1 -0
  68. package/esm/core/selection/helpers/is-moved.d.ts +15 -0
  69. package/esm/core/selection/helpers/is-moved.js +22 -0
  70. package/esm/core/selection/style/api/list/toggle-ordered-list.js +40 -3
  71. package/esm/core/selection/style/transactions.js +5 -2
  72. package/esm/langs/ar.d.ts +3 -0
  73. package/esm/langs/ar.js +4 -1
  74. package/esm/langs/az.d.ts +3 -0
  75. package/esm/langs/az.js +4 -1
  76. package/esm/langs/cs_cz.d.ts +3 -0
  77. package/esm/langs/cs_cz.js +4 -1
  78. package/esm/langs/de.d.ts +3 -0
  79. package/esm/langs/de.js +4 -1
  80. package/esm/langs/es.d.ts +3 -0
  81. package/esm/langs/es.js +4 -1
  82. package/esm/langs/fa.d.ts +3 -0
  83. package/esm/langs/fa.js +4 -1
  84. package/esm/langs/fi.d.ts +3 -0
  85. package/esm/langs/fi.js +4 -1
  86. package/esm/langs/fr.d.ts +3 -0
  87. package/esm/langs/fr.js +4 -1
  88. package/esm/langs/he.d.ts +3 -0
  89. package/esm/langs/he.js +4 -1
  90. package/esm/langs/hu.d.ts +3 -0
  91. package/esm/langs/hu.js +4 -1
  92. package/esm/langs/id.d.ts +3 -0
  93. package/esm/langs/id.js +4 -1
  94. package/esm/langs/it.d.ts +3 -0
  95. package/esm/langs/it.js +4 -1
  96. package/esm/langs/ja.d.ts +3 -0
  97. package/esm/langs/ja.js +4 -1
  98. package/esm/langs/ko.d.ts +3 -0
  99. package/esm/langs/ko.js +4 -1
  100. package/esm/langs/mn.d.ts +3 -0
  101. package/esm/langs/mn.js +4 -1
  102. package/esm/langs/nl.d.ts +3 -0
  103. package/esm/langs/nl.js +4 -1
  104. package/esm/langs/no.d.ts +3 -0
  105. package/esm/langs/no.js +4 -1
  106. package/esm/langs/pl.d.ts +3 -0
  107. package/esm/langs/pl.js +4 -1
  108. package/esm/langs/pt_br.d.ts +3 -0
  109. package/esm/langs/pt_br.js +4 -1
  110. package/esm/langs/ru.d.ts +3 -0
  111. package/esm/langs/ru.js +4 -1
  112. package/esm/langs/sk.d.ts +3 -0
  113. package/esm/langs/sk.js +4 -1
  114. package/esm/langs/sv.d.ts +3 -0
  115. package/esm/langs/sv.js +4 -1
  116. package/esm/langs/tr.d.ts +3 -0
  117. package/esm/langs/tr.js +4 -1
  118. package/esm/langs/ua.d.ts +3 -0
  119. package/esm/langs/ua.js +4 -1
  120. package/esm/langs/zh_cn.d.ts +3 -0
  121. package/esm/langs/zh_cn.js +4 -1
  122. package/esm/langs/zh_tw.d.ts +3 -0
  123. package/esm/langs/zh_tw.js +4 -1
  124. package/esm/modules/dialog/dialog.d.ts +7 -0
  125. package/esm/modules/dialog/dialog.js +24 -6
  126. package/esm/modules/table/table.d.ts +6 -0
  127. package/esm/modules/table/table.js +18 -26
  128. package/esm/plugins/backspace/cases/check-join-neighbors.js +90 -3
  129. package/esm/plugins/clean-html/clean-html.d.ts +8 -0
  130. package/esm/plugins/clean-html/clean-html.js +21 -1
  131. package/esm/plugins/clean-html/helpers/index.d.ts +1 -0
  132. package/esm/plugins/clean-html/helpers/index.js +1 -0
  133. package/esm/plugins/clean-html/helpers/remove-placeholder-br.d.ts +16 -0
  134. package/esm/plugins/clean-html/helpers/remove-placeholder-br.js +51 -0
  135. package/esm/plugins/delete/delete.d.ts +11 -1
  136. package/esm/plugins/delete/delete.js +92 -16
  137. package/esm/plugins/focus/focus.js +12 -1
  138. package/esm/plugins/iframe/config.d.ts +3 -0
  139. package/esm/plugins/iframe/config.js +0 -27
  140. package/esm/plugins/iframe/iframe.js +8 -1
  141. package/esm/plugins/image-processor/image-processor.js +6 -1
  142. package/esm/plugins/inline-popup/inline-popup.d.ts +19 -0
  143. package/esm/plugins/inline-popup/inline-popup.js +70 -1
  144. package/esm/plugins/ordered-list/config.js +13 -2
  145. package/esm/plugins/ordered-list/start-dialog.d.ts +19 -0
  146. package/esm/plugins/ordered-list/start-dialog.js +58 -0
  147. package/esm/plugins/placeholder/placeholder.js +7 -1
  148. package/esm/plugins/resizer/resizer.d.ts +10 -0
  149. package/esm/plugins/resizer/resizer.js +76 -2
  150. package/esm/plugins/select-cells/select-cells.d.ts +23 -0
  151. package/esm/plugins/select-cells/select-cells.js +75 -1
  152. package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.js +3 -2
  153. package/package.json +1 -1
  154. package/types/config.d.ts +3 -0
  155. package/types/core/helpers/html/word-lists.d.ts +29 -0
  156. package/types/core/selection/helpers/index.d.ts +1 -0
  157. package/types/core/selection/helpers/is-moved.d.ts +15 -0
  158. package/types/langs/ar.d.ts +3 -0
  159. package/types/langs/az.d.ts +3 -0
  160. package/types/langs/cs_cz.d.ts +3 -0
  161. package/types/langs/de.d.ts +3 -0
  162. package/types/langs/es.d.ts +3 -0
  163. package/types/langs/fa.d.ts +3 -0
  164. package/types/langs/fi.d.ts +3 -0
  165. package/types/langs/fr.d.ts +3 -0
  166. package/types/langs/he.d.ts +3 -0
  167. package/types/langs/hu.d.ts +3 -0
  168. package/types/langs/id.d.ts +3 -0
  169. package/types/langs/it.d.ts +3 -0
  170. package/types/langs/ja.d.ts +3 -0
  171. package/types/langs/ko.d.ts +3 -0
  172. package/types/langs/mn.d.ts +3 -0
  173. package/types/langs/nl.d.ts +3 -0
  174. package/types/langs/no.d.ts +3 -0
  175. package/types/langs/pl.d.ts +3 -0
  176. package/types/langs/pt_br.d.ts +3 -0
  177. package/types/langs/ru.d.ts +3 -0
  178. package/types/langs/sk.d.ts +3 -0
  179. package/types/langs/sv.d.ts +3 -0
  180. package/types/langs/tr.d.ts +3 -0
  181. package/types/langs/ua.d.ts +3 -0
  182. package/types/langs/zh_cn.d.ts +3 -0
  183. package/types/langs/zh_tw.d.ts +3 -0
  184. package/types/modules/dialog/dialog.d.ts +7 -0
  185. package/types/modules/table/table.d.ts +6 -0
  186. package/types/plugins/clean-html/clean-html.d.ts +8 -0
  187. package/types/plugins/clean-html/helpers/index.d.ts +1 -0
  188. package/types/plugins/clean-html/helpers/remove-placeholder-br.d.ts +16 -0
  189. package/types/plugins/delete/delete.d.ts +11 -1
  190. package/types/plugins/iframe/config.d.ts +3 -0
  191. package/types/plugins/inline-popup/inline-popup.d.ts +19 -0
  192. package/types/plugins/ordered-list/start-dialog.d.ts +19 -0
  193. package/types/plugins/resizer/resizer.d.ts +10 -0
  194. package/types/plugins/select-cells/select-cells.d.ts +23 -0
package/esm/langs/fa.d.ts CHANGED
@@ -217,5 +217,8 @@ declare const _exports: {
217
217
  Loop: string;
218
218
  Muted: string;
219
219
  Controls: string;
220
+ 'Start at...': string;
221
+ 'Start numbering at': string;
222
+ 'Number for the first item': string;
220
223
  };
221
224
  export = _exports;
package/esm/langs/fa.js CHANGED
@@ -231,5 +231,8 @@ export default {
231
231
  Autoplay: 'پخش خودکار',
232
232
  Loop: 'تکرار',
233
233
  Muted: 'بی‌صدا',
234
- Controls: 'کنترل‌ها'
234
+ Controls: 'کنترل‌ها',
235
+ 'Start at...': 'شروع از...',
236
+ 'Start numbering at': 'شروع شماره‌گذاری از',
237
+ 'Number for the first item': 'شماره‌ی نخستین مورد'
235
238
  };
package/esm/langs/fi.d.ts CHANGED
@@ -223,5 +223,8 @@ declare const _exports: {
223
223
  Loop: string;
224
224
  Muted: string;
225
225
  Controls: string;
226
+ 'Start at...': string;
227
+ 'Start numbering at': string;
228
+ 'Number for the first item': string;
226
229
  };
227
230
  export = _exports;
package/esm/langs/fi.js CHANGED
@@ -237,5 +237,8 @@ export default {
237
237
  Autoplay: 'Automaattinen toisto',
238
238
  Loop: 'Toista uudelleen',
239
239
  Muted: 'Mykistetty',
240
- Controls: 'Säätimet'
240
+ Controls: 'Säätimet',
241
+ 'Start at...': 'Aloita numerosta...',
242
+ 'Start numbering at': 'Aloita numerointi numerosta',
243
+ 'Number for the first item': 'Ensimmäisen kohdan numero'
241
244
  };
package/esm/langs/fr.d.ts CHANGED
@@ -217,5 +217,8 @@ declare const _exports: {
217
217
  Loop: string;
218
218
  Muted: string;
219
219
  Controls: string;
220
+ 'Start at...': string;
221
+ 'Start numbering at': string;
222
+ 'Number for the first item': string;
220
223
  };
221
224
  export = _exports;
package/esm/langs/fr.js CHANGED
@@ -232,5 +232,8 @@ export default {
232
232
  Autoplay: 'Lecture automatique',
233
233
  Loop: 'Lecture en boucle',
234
234
  Muted: 'Muet',
235
- Controls: 'Commandes'
235
+ Controls: 'Commandes',
236
+ 'Start at...': 'Commencer à...',
237
+ 'Start numbering at': 'Commencer la numérotation à',
238
+ 'Number for the first item': 'Numéro du premier élément'
236
239
  };
package/esm/langs/he.d.ts CHANGED
@@ -217,5 +217,8 @@ declare const _exports: {
217
217
  Loop: string;
218
218
  Muted: string;
219
219
  Controls: string;
220
+ 'Start at...': string;
221
+ 'Start numbering at': string;
222
+ 'Number for the first item': string;
220
223
  };
221
224
  export = _exports;
package/esm/langs/he.js CHANGED
@@ -230,5 +230,8 @@ export default {
230
230
  Autoplay: 'ניגון אוטומטי',
231
231
  Loop: 'הפעלה חוזרת',
232
232
  Muted: 'מושתק',
233
- Controls: 'פקדים'
233
+ Controls: 'פקדים',
234
+ 'Start at...': 'התחל מ...',
235
+ 'Start numbering at': 'התחל מספור מ',
236
+ 'Number for the first item': 'מספר הפריט הראשון'
234
237
  };
package/esm/langs/hu.d.ts CHANGED
@@ -219,5 +219,8 @@ declare const _exports: {
219
219
  Loop: string;
220
220
  Muted: string;
221
221
  Controls: string;
222
+ 'Start at...': string;
223
+ 'Start numbering at': string;
224
+ 'Number for the first item': string;
222
225
  };
223
226
  export = _exports;
package/esm/langs/hu.js CHANGED
@@ -232,5 +232,8 @@ export default {
232
232
  Autoplay: 'Automatikus lejátszás',
233
233
  Loop: 'Ismétlés',
234
234
  Muted: 'Némítva',
235
- Controls: 'Vezérlők'
235
+ Controls: 'Vezérlők',
236
+ 'Start at...': 'Kezdőszám...',
237
+ 'Start numbering at': 'Számozás kezdőértéke',
238
+ 'Number for the first item': 'Az első elem száma'
236
239
  };
package/esm/langs/id.d.ts CHANGED
@@ -218,5 +218,8 @@ declare const _exports: {
218
218
  Loop: string;
219
219
  Muted: string;
220
220
  Controls: string;
221
+ 'Start at...': string;
222
+ 'Start numbering at': string;
223
+ 'Number for the first item': string;
221
224
  };
222
225
  export = _exports;
package/esm/langs/id.js CHANGED
@@ -231,5 +231,8 @@ export default {
231
231
  Autoplay: 'Putar otomatis',
232
232
  Loop: 'Ulangi',
233
233
  Muted: 'Dibisukan',
234
- Controls: 'Kontrol'
234
+ Controls: 'Kontrol',
235
+ 'Start at...': 'Mulai dari...',
236
+ 'Start numbering at': 'Mulai penomoran dari',
237
+ 'Number for the first item': 'Nomor untuk item pertama'
235
238
  };
package/esm/langs/it.d.ts CHANGED
@@ -222,5 +222,8 @@ declare const _exports: {
222
222
  Loop: string;
223
223
  Muted: string;
224
224
  Controls: string;
225
+ 'Start at...': string;
226
+ 'Start numbering at': string;
227
+ 'Number for the first item': string;
225
228
  };
226
229
  export = _exports;
package/esm/langs/it.js CHANGED
@@ -237,5 +237,8 @@ export default {
237
237
  Autoplay: 'Riproduzione automatica',
238
238
  Loop: 'Ripeti',
239
239
  Muted: 'Muto',
240
- Controls: 'Controlli'
240
+ Controls: 'Controlli',
241
+ 'Start at...': 'Inizia da...',
242
+ 'Start numbering at': 'Inizia la numerazione da',
243
+ 'Number for the first item': 'Numero del primo elemento'
241
244
  };
package/esm/langs/ja.d.ts CHANGED
@@ -222,5 +222,8 @@ declare const _exports: {
222
222
  Loop: string;
223
223
  Muted: string;
224
224
  Controls: string;
225
+ 'Start at...': string;
226
+ 'Start numbering at': string;
227
+ 'Number for the first item': string;
225
228
  };
226
229
  export = _exports;
package/esm/langs/ja.js CHANGED
@@ -235,5 +235,8 @@ export default {
235
235
  Autoplay: '自動再生',
236
236
  Loop: 'ループ再生',
237
237
  Muted: 'ミュート',
238
- Controls: 'コントロール'
238
+ Controls: 'コントロール',
239
+ 'Start at...': '開始番号...',
240
+ 'Start numbering at': '番号の開始値',
241
+ 'Number for the first item': '最初の項目の番号'
239
242
  };
package/esm/langs/ko.d.ts CHANGED
@@ -216,5 +216,8 @@ declare const _exports: {
216
216
  Loop: string;
217
217
  Muted: string;
218
218
  Controls: string;
219
+ 'Start at...': string;
220
+ 'Start numbering at': string;
221
+ 'Number for the first item': string;
219
222
  };
220
223
  export = _exports;
package/esm/langs/ko.js CHANGED
@@ -230,5 +230,8 @@ export default {
230
230
  Autoplay: '자동 재생',
231
231
  Loop: '반복 재생',
232
232
  Muted: '음소거',
233
- Controls: '컨트롤'
233
+ Controls: '컨트롤',
234
+ 'Start at...': '시작 번호...',
235
+ 'Start numbering at': '번호 매기기 시작 값',
236
+ 'Number for the first item': '첫 번째 항목의 번호'
234
237
  };
package/esm/langs/mn.d.ts CHANGED
@@ -217,5 +217,8 @@ declare const _exports: {
217
217
  Loop: string;
218
218
  Muted: string;
219
219
  Controls: string;
220
+ 'Start at...': string;
221
+ 'Start numbering at': string;
222
+ 'Number for the first item': string;
220
223
  };
221
224
  export = _exports;
package/esm/langs/mn.js CHANGED
@@ -233,5 +233,8 @@ export default {
233
233
  Autoplay: 'Автоматаар тоглуулах',
234
234
  Loop: 'Давтах',
235
235
  Muted: 'Дуугүй',
236
- Controls: 'Удирдлага'
236
+ Controls: 'Удирдлага',
237
+ 'Start at...': 'Эхлэх дугаар...',
238
+ 'Start numbering at': 'Дугаарлалт эхлэх',
239
+ 'Number for the first item': 'Эхний зүйлийн дугаар'
237
240
  };
package/esm/langs/nl.d.ts CHANGED
@@ -218,5 +218,8 @@ declare const _exports: {
218
218
  Loop: string;
219
219
  Muted: string;
220
220
  Controls: string;
221
+ 'Start at...': string;
222
+ 'Start numbering at': string;
223
+ 'Number for the first item': string;
221
224
  };
222
225
  export = _exports;
package/esm/langs/nl.js CHANGED
@@ -232,5 +232,8 @@ export default {
232
232
  Autoplay: 'Automatisch afspelen',
233
233
  Loop: 'Herhalen',
234
234
  Muted: 'Gedempt',
235
- Controls: 'Bedieningselementen'
235
+ Controls: 'Bedieningselementen',
236
+ 'Start at...': 'Beginnen bij...',
237
+ 'Start numbering at': 'Nummering beginnen bij',
238
+ 'Number for the first item': 'Nummer van het eerste item'
236
239
  };
package/esm/langs/no.d.ts CHANGED
@@ -226,5 +226,8 @@ declare const _exports: {
226
226
  Loop: string;
227
227
  Muted: string;
228
228
  Controls: string;
229
+ 'Start at...': string;
230
+ 'Start numbering at': string;
231
+ 'Number for the first item': string;
229
232
  };
230
233
  export = _exports;
package/esm/langs/no.js CHANGED
@@ -239,5 +239,8 @@ export default {
239
239
  Autoplay: 'Automatisk avspilling',
240
240
  Loop: 'Gjenta',
241
241
  Muted: 'Dempet',
242
- Controls: 'Kontroller'
242
+ Controls: 'Kontroller',
243
+ 'Start at...': 'Start på...',
244
+ 'Start numbering at': 'Start nummereringen på',
245
+ 'Number for the first item': 'Nummer for første punkt'
243
246
  };
package/esm/langs/pl.d.ts CHANGED
@@ -217,5 +217,8 @@ declare const _exports: {
217
217
  Loop: string;
218
218
  Muted: string;
219
219
  Controls: string;
220
+ 'Start at...': string;
221
+ 'Start numbering at': string;
222
+ 'Number for the first item': string;
220
223
  };
221
224
  export = _exports;
package/esm/langs/pl.js CHANGED
@@ -232,5 +232,8 @@ export default {
232
232
  Autoplay: 'Autoodtwarzanie',
233
233
  Loop: 'Zapętlenie',
234
234
  Muted: 'Wyciszony',
235
- Controls: 'Elementy sterujące'
235
+ Controls: 'Elementy sterujące',
236
+ 'Start at...': 'Zacznij od...',
237
+ 'Start numbering at': 'Rozpocznij numerowanie od',
238
+ 'Number for the first item': 'Numer pierwszego elementu'
236
239
  };
@@ -222,5 +222,8 @@ declare const _exports: {
222
222
  Loop: string;
223
223
  Muted: string;
224
224
  Controls: string;
225
+ 'Start at...': string;
226
+ 'Start numbering at': string;
227
+ 'Number for the first item': string;
225
228
  };
226
229
  export = _exports;
@@ -236,5 +236,8 @@ export default {
236
236
  Autoplay: 'Reprodução automática',
237
237
  Loop: 'Repetir',
238
238
  Muted: 'Sem som',
239
- Controls: 'Controles'
239
+ Controls: 'Controles',
240
+ 'Start at...': 'Começar em...',
241
+ 'Start numbering at': 'Começar a numeração em',
242
+ 'Number for the first item': 'Número do primeiro item'
240
243
  };
package/esm/langs/ru.d.ts CHANGED
@@ -216,5 +216,8 @@ declare const _exports: {
216
216
  Loop: string;
217
217
  Muted: string;
218
218
  Controls: string;
219
+ 'Start at...': string;
220
+ 'Start numbering at': string;
221
+ 'Number for the first item': string;
219
222
  };
220
223
  export = _exports;
package/esm/langs/ru.js CHANGED
@@ -231,5 +231,8 @@ export default {
231
231
  Autoplay: 'Автовоспроизведение',
232
232
  Loop: 'Повтор',
233
233
  Muted: 'Без звука',
234
- Controls: 'Элементы управления'
234
+ Controls: 'Элементы управления',
235
+ 'Start at...': 'Начать с...',
236
+ 'Start numbering at': 'Начать нумерацию с',
237
+ 'Number for the first item': 'Номер первого пункта'
235
238
  };
package/esm/langs/sk.d.ts CHANGED
@@ -224,5 +224,8 @@ declare const _exports: {
224
224
  Loop: string;
225
225
  Muted: string;
226
226
  Controls: string;
227
+ 'Start at...': string;
228
+ 'Start numbering at': string;
229
+ 'Number for the first item': string;
227
230
  };
228
231
  export = _exports;
package/esm/langs/sk.js CHANGED
@@ -238,5 +238,8 @@ export default {
238
238
  Autoplay: 'Automatické prehrávanie',
239
239
  Loop: 'Opakovať',
240
240
  Muted: 'Stlmené',
241
- Controls: 'Ovládacie prvky'
241
+ Controls: 'Ovládacie prvky',
242
+ 'Start at...': 'Začať od...',
243
+ 'Start numbering at': 'Začať číslovanie od',
244
+ 'Number for the first item': 'Číslo prvej položky'
242
245
  };
package/esm/langs/sv.d.ts CHANGED
@@ -225,5 +225,8 @@ declare const _exports: {
225
225
  Loop: string;
226
226
  Muted: string;
227
227
  Controls: string;
228
+ 'Start at...': string;
229
+ 'Start numbering at': string;
230
+ 'Number for the first item': string;
228
231
  };
229
232
  export = _exports;
package/esm/langs/sv.js CHANGED
@@ -240,5 +240,8 @@ export default {
240
240
  Autoplay: 'Automatisk uppspelning',
241
241
  Loop: 'Upprepa',
242
242
  Muted: 'Ljudlös',
243
- Controls: 'Kontroller'
243
+ Controls: 'Kontroller',
244
+ 'Start at...': 'Börja på...',
245
+ 'Start numbering at': 'Börja numreringen på',
246
+ 'Number for the first item': 'Nummer för första punkten'
244
247
  };
package/esm/langs/tr.d.ts CHANGED
@@ -217,5 +217,8 @@ declare const _exports: {
217
217
  Loop: string;
218
218
  Muted: string;
219
219
  Controls: string;
220
+ 'Start at...': string;
221
+ 'Start numbering at': string;
222
+ 'Number for the first item': string;
220
223
  };
221
224
  export = _exports;
package/esm/langs/tr.js CHANGED
@@ -231,5 +231,8 @@ export default {
231
231
  Autoplay: 'Otomatik oynat',
232
232
  Loop: 'Döngü',
233
233
  Muted: 'Sessiz',
234
- Controls: 'Kontroller'
234
+ Controls: 'Kontroller',
235
+ 'Start at...': 'Başlangıç numarası...',
236
+ 'Start numbering at': 'Numaralandırma başlangıcı',
237
+ 'Number for the first item': 'İlk öğenin numarası'
235
238
  };
package/esm/langs/ua.d.ts CHANGED
@@ -216,5 +216,8 @@ declare const _exports: {
216
216
  Loop: string;
217
217
  Muted: string;
218
218
  Controls: string;
219
+ 'Start at...': string;
220
+ 'Start numbering at': string;
221
+ 'Number for the first item': string;
219
222
  };
220
223
  export = _exports;
package/esm/langs/ua.js CHANGED
@@ -230,5 +230,8 @@ export default {
230
230
  Autoplay: 'Автовідтворення',
231
231
  Loop: 'Повтор',
232
232
  Muted: 'Без звуку',
233
- Controls: 'Елементи керування'
233
+ Controls: 'Елементи керування',
234
+ 'Start at...': 'Почати з...',
235
+ 'Start numbering at': 'Почати нумерацію з',
236
+ 'Number for the first item': 'Номер першого пункту'
234
237
  };
@@ -218,5 +218,8 @@ declare const _exports: {
218
218
  Loop: string;
219
219
  Muted: string;
220
220
  Controls: string;
221
+ 'Start at...': string;
222
+ 'Start numbering at': string;
223
+ 'Number for the first item': string;
221
224
  };
222
225
  export = _exports;
@@ -230,5 +230,8 @@ export default {
230
230
  Autoplay: '自动播放',
231
231
  Loop: '循环播放',
232
232
  Muted: '静音',
233
- Controls: '播放控件'
233
+ Controls: '播放控件',
234
+ 'Start at...': '起始于...',
235
+ 'Start numbering at': '编号起始值',
236
+ 'Number for the first item': '第一项的编号'
234
237
  };
@@ -217,5 +217,8 @@ declare const _exports: {
217
217
  Loop: string;
218
218
  Muted: string;
219
219
  Controls: string;
220
+ 'Start at...': string;
221
+ 'Start numbering at': string;
222
+ 'Number for the first item': string;
220
223
  };
221
224
  export = _exports;
@@ -229,5 +229,8 @@ export default {
229
229
  Autoplay: '自動播放',
230
230
  Loop: '循環播放',
231
231
  Muted: '靜音',
232
- Controls: '播放控制項'
232
+ Controls: '播放控制項',
233
+ 'Start at...': '起始於...',
234
+ 'Start numbering at': '編號起始值',
235
+ 'Number for the first item': '第一項的編號'
233
236
  };
@@ -48,6 +48,13 @@ export declare class Dialog extends ViewWithToolbar implements IDialog {
48
48
  */
49
49
  private minSize;
50
50
  private __onResizerMouseDown;
51
+ /**
52
+ * The width `box` takes with its content on one line. The header and
53
+ * footer are flex rows as wide as the dialog, so the footer's
54
+ * `scrollWidth` was the dialog's width and kept it from getting any
55
+ * narrower
56
+ */
57
+ private __contentWidth;
51
58
  private __addGlobalResizeListeners;
52
59
  private __removeGlobalResizeListeners;
53
60
  OPTIONS: IDialogOptions;
@@ -179,7 +179,12 @@ let Dialog = Dialog_1 = class Dialog extends ViewWithToolbar {
179
179
  }
180
180
  }
181
181
  __onResizerMouseDown(e) {
182
- var _a, _b, _c;
182
+ var _a, _b;
183
+ // As for the header: otherwise Safari selects the dialog's text as
184
+ // the pointer moves
185
+ if (e.cancelable) {
186
+ e.preventDefault();
187
+ }
183
188
  this.resizable = true;
184
189
  this.startX = e.clientX;
185
190
  this.startY = e.clientY;
@@ -195,11 +200,11 @@ let Dialog = Dialog_1 = class Dialog extends ViewWithToolbar {
195
200
  : 0;
196
201
  this.minSize.w = isNumber(this.o.minWidth)
197
202
  ? this.o.minWidth
198
- : Math.max(100, (_a = footer === null || footer === void 0 ? void 0 : footer.scrollWidth) !== null && _a !== void 0 ? _a : 0);
203
+ : Math.max(100, header ? this.__contentWidth(header) : 0, footer ? this.__contentWidth(footer) : 0);
199
204
  this.minSize.h = isNumber(this.o.minHeight)
200
205
  ? this.o.minHeight
201
- : ((_b = header === null || header === void 0 ? void 0 : header.offsetHeight) !== null && _b !== void 0 ? _b : 0) +
202
- ((_c = footer === null || footer === void 0 ? void 0 : footer.offsetHeight) !== null && _c !== void 0 ? _c : 0) +
206
+ : ((_a = header === null || header === void 0 ? void 0 : header.offsetHeight) !== null && _a !== void 0 ? _a : 0) +
207
+ ((_b = footer === null || footer === void 0 ? void 0 : footer.offsetHeight) !== null && _b !== void 0 ? _b : 0) +
203
208
  contentMinHeight +
204
209
  this.resizer.offsetHeight;
205
210
  this.lockSelect();
@@ -211,6 +216,19 @@ let Dialog = Dialog_1 = class Dialog extends ViewWithToolbar {
211
216
  this.e.fire(this, 'startResize');
212
217
  }
213
218
  }
219
+ /**
220
+ * The width `box` takes with its content on one line. The header and
221
+ * footer are flex rows as wide as the dialog, so the footer's
222
+ * `scrollWidth` was the dialog's width and kept it from getting any
223
+ * narrower
224
+ */
225
+ __contentWidth(box) {
226
+ const { width } = box.style;
227
+ box.style.width = 'max-content';
228
+ const contentWidth = box.offsetWidth;
229
+ box.style.width = width;
230
+ return contentWidth;
231
+ }
214
232
  __addGlobalResizeListeners() {
215
233
  const self = this;
216
234
  self.e
@@ -220,8 +238,8 @@ let Dialog = Dialog_1 = class Dialog extends ViewWithToolbar {
220
238
  __removeGlobalResizeListeners() {
221
239
  const self = this;
222
240
  self.e
223
- .off(self.ow, 'mousemove pointermove', self.__onMouseMove)
224
- .off(self.ow, 'mouseup pointerup', self.__onMouseUp);
241
+ .off(self.ow, 'pointermove touchmove', self.__onMouseMove)
242
+ .off(self.ow, 'pointerup touchend', self.__onMouseUp);
225
243
  }
226
244
  /**
227
245
  * Specifies the size of the window
@@ -15,6 +15,12 @@ export declare class Table extends ViewComponent<IJodit> {
15
15
  className(): string;
16
16
  private selected;
17
17
  private static __selectedByTable;
18
+ /**
19
+ * Rewrite the `<style>` that marks the selected cells once for all the
20
+ * cells (un)selected in one go: a drag over a block of cells unmarks and
21
+ * marks every one of them on each move. `@debounce()` was never applied,
22
+ * as a Table never reaches `ready`
23
+ */
18
24
  private __recalculateStyles;
19
25
  addSelection(td: HTMLTableCellElement): void;
20
26
  removeSelection(td: HTMLTableCellElement): void;
@@ -3,19 +3,8 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
7
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
8
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
9
- r = Reflect.decorate(decorators, target, key, desc);
10
- else
11
- for (var i = decorators.length - 1; i >= 0; i--)
12
- if (d = decorators[i])
13
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
14
- return c > 3 && r && Object.defineProperty(target, key, r), r;
15
- };
16
6
  import { ViewComponent } from "../../core/component/index.js";
17
7
  import * as consts from "../../core/constants.js";
18
- import { debounce } from "../../core/decorators/index.js";
19
8
  import { Dom } from "../../core/dom/index.js";
20
9
  import { getContainer } from "../../core/global.js";
21
10
  import { attr, css, cssPath, isNumber, toArray, trim } from "../../core/helpers/index.js";
@@ -25,23 +14,29 @@ export class Table extends ViewComponent {
25
14
  constructor() {
26
15
  super(...arguments);
27
16
  this.selected = new Set();
17
+ /**
18
+ * Rewrite the `<style>` that marks the selected cells once for all the
19
+ * cells (un)selected in one go: a drag over a block of cells unmarks and
20
+ * marks every one of them on each move. `@debounce()` was never applied,
21
+ * as a Table never reaches `ready`
22
+ */
23
+ this.__recalculateStyles = this.async.microDebounce(() => {
24
+ const style = getContainer(this.j, Table, 'style', true);
25
+ const selectors = [];
26
+ this.selected.forEach(td => {
27
+ const selector = cssPath(td);
28
+ selector && selectors.push(selector);
29
+ });
30
+ style.innerHTML = selectors.length
31
+ ? selectors.join(',') +
32
+ `{${this.jodit.options.table.selectionCellStyle}}`
33
+ : '';
34
+ });
28
35
  }
29
36
  /** @override */
30
37
  className() {
31
38
  return 'Table';
32
39
  }
33
- __recalculateStyles() {
34
- const style = getContainer(this.j, Table, 'style', true);
35
- const selectors = [];
36
- this.selected.forEach(td => {
37
- const selector = cssPath(td);
38
- selector && selectors.push(selector);
39
- });
40
- style.innerHTML = selectors.length
41
- ? selectors.join(',') +
42
- `{${this.jodit.options.table.selectionCellStyle}}`
43
- : '';
44
- }
45
40
  addSelection(td) {
46
41
  this.selected.add(td);
47
42
  this.__recalculateStyles();
@@ -701,7 +696,4 @@ export class Table extends ViewComponent {
701
696
  }
702
697
  }
703
698
  Table.__selectedByTable = new WeakMap();
704
- __decorate([
705
- debounce()
706
- ], Table.prototype, "__recalculateStyles", null);
707
699
  const instance = (j) => j.getInstance('Table', j.o);