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.
- package/CHANGELOG.md +35 -0
- package/es2015/jodit.css +13 -34
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +11 -11
- package/es2015/jodit.js +1029 -205
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +11 -11
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +11 -11
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +11 -11
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +13 -34
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +15 -15
- package/es2021/jodit.js +1021 -203
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +15 -15
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +13 -34
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +15 -15
- package/es2021.en/jodit.js +995 -177
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +15 -15
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +14 -41
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +1152 -254
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/config.d.ts +3 -0
- package/esm/core/constants.js +1 -1
- package/esm/core/helpers/html/apply-styles.js +3 -0
- package/esm/core/helpers/html/clean-from-word.js +3 -0
- package/esm/core/helpers/html/strip-tags.js +24 -6
- package/esm/core/helpers/html/word-lists.d.ts +29 -0
- package/esm/core/helpers/html/word-lists.js +158 -0
- package/esm/core/selection/helpers/index.d.ts +1 -0
- package/esm/core/selection/helpers/index.js +1 -0
- package/esm/core/selection/helpers/is-moved.d.ts +15 -0
- package/esm/core/selection/helpers/is-moved.js +22 -0
- package/esm/core/selection/style/api/list/toggle-ordered-list.js +40 -3
- package/esm/core/selection/style/transactions.js +5 -2
- package/esm/langs/ar.d.ts +3 -0
- package/esm/langs/ar.js +4 -1
- package/esm/langs/az.d.ts +3 -0
- package/esm/langs/az.js +4 -1
- package/esm/langs/cs_cz.d.ts +3 -0
- package/esm/langs/cs_cz.js +4 -1
- package/esm/langs/de.d.ts +3 -0
- package/esm/langs/de.js +4 -1
- package/esm/langs/es.d.ts +3 -0
- package/esm/langs/es.js +4 -1
- package/esm/langs/fa.d.ts +3 -0
- package/esm/langs/fa.js +4 -1
- package/esm/langs/fi.d.ts +3 -0
- package/esm/langs/fi.js +4 -1
- package/esm/langs/fr.d.ts +3 -0
- package/esm/langs/fr.js +4 -1
- package/esm/langs/he.d.ts +3 -0
- package/esm/langs/he.js +4 -1
- package/esm/langs/hu.d.ts +3 -0
- package/esm/langs/hu.js +4 -1
- package/esm/langs/id.d.ts +3 -0
- package/esm/langs/id.js +4 -1
- package/esm/langs/it.d.ts +3 -0
- package/esm/langs/it.js +4 -1
- package/esm/langs/ja.d.ts +3 -0
- package/esm/langs/ja.js +4 -1
- package/esm/langs/ko.d.ts +3 -0
- package/esm/langs/ko.js +4 -1
- package/esm/langs/mn.d.ts +3 -0
- package/esm/langs/mn.js +4 -1
- package/esm/langs/nl.d.ts +3 -0
- package/esm/langs/nl.js +4 -1
- package/esm/langs/no.d.ts +3 -0
- package/esm/langs/no.js +4 -1
- package/esm/langs/pl.d.ts +3 -0
- package/esm/langs/pl.js +4 -1
- package/esm/langs/pt_br.d.ts +3 -0
- package/esm/langs/pt_br.js +4 -1
- package/esm/langs/ru.d.ts +3 -0
- package/esm/langs/ru.js +4 -1
- package/esm/langs/sk.d.ts +3 -0
- package/esm/langs/sk.js +4 -1
- package/esm/langs/sv.d.ts +3 -0
- package/esm/langs/sv.js +4 -1
- package/esm/langs/tr.d.ts +3 -0
- package/esm/langs/tr.js +4 -1
- package/esm/langs/ua.d.ts +3 -0
- package/esm/langs/ua.js +4 -1
- package/esm/langs/zh_cn.d.ts +3 -0
- package/esm/langs/zh_cn.js +4 -1
- package/esm/langs/zh_tw.d.ts +3 -0
- package/esm/langs/zh_tw.js +4 -1
- package/esm/modules/dialog/dialog.d.ts +7 -0
- package/esm/modules/dialog/dialog.js +24 -6
- package/esm/modules/table/table.d.ts +6 -0
- package/esm/modules/table/table.js +18 -26
- package/esm/plugins/backspace/cases/check-join-neighbors.js +90 -3
- package/esm/plugins/clean-html/clean-html.d.ts +8 -0
- package/esm/plugins/clean-html/clean-html.js +21 -1
- package/esm/plugins/clean-html/helpers/index.d.ts +1 -0
- package/esm/plugins/clean-html/helpers/index.js +1 -0
- package/esm/plugins/clean-html/helpers/remove-placeholder-br.d.ts +16 -0
- package/esm/plugins/clean-html/helpers/remove-placeholder-br.js +51 -0
- package/esm/plugins/delete/delete.d.ts +11 -1
- package/esm/plugins/delete/delete.js +92 -16
- package/esm/plugins/focus/focus.js +12 -1
- package/esm/plugins/iframe/config.d.ts +3 -0
- package/esm/plugins/iframe/config.js +0 -27
- package/esm/plugins/iframe/iframe.js +8 -1
- package/esm/plugins/image-processor/image-processor.js +6 -1
- package/esm/plugins/inline-popup/inline-popup.d.ts +19 -0
- package/esm/plugins/inline-popup/inline-popup.js +70 -1
- package/esm/plugins/ordered-list/config.js +13 -2
- package/esm/plugins/ordered-list/start-dialog.d.ts +19 -0
- package/esm/plugins/ordered-list/start-dialog.js +58 -0
- package/esm/plugins/placeholder/placeholder.js +7 -1
- package/esm/plugins/resizer/resizer.d.ts +10 -0
- package/esm/plugins/resizer/resizer.js +76 -2
- package/esm/plugins/select-cells/select-cells.d.ts +23 -0
- package/esm/plugins/select-cells/select-cells.js +75 -1
- package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.js +3 -2
- package/package.json +1 -1
- package/types/config.d.ts +3 -0
- package/types/core/helpers/html/word-lists.d.ts +29 -0
- package/types/core/selection/helpers/index.d.ts +1 -0
- package/types/core/selection/helpers/is-moved.d.ts +15 -0
- package/types/langs/ar.d.ts +3 -0
- package/types/langs/az.d.ts +3 -0
- package/types/langs/cs_cz.d.ts +3 -0
- package/types/langs/de.d.ts +3 -0
- package/types/langs/es.d.ts +3 -0
- package/types/langs/fa.d.ts +3 -0
- package/types/langs/fi.d.ts +3 -0
- package/types/langs/fr.d.ts +3 -0
- package/types/langs/he.d.ts +3 -0
- package/types/langs/hu.d.ts +3 -0
- package/types/langs/id.d.ts +3 -0
- package/types/langs/it.d.ts +3 -0
- package/types/langs/ja.d.ts +3 -0
- package/types/langs/ko.d.ts +3 -0
- package/types/langs/mn.d.ts +3 -0
- package/types/langs/nl.d.ts +3 -0
- package/types/langs/no.d.ts +3 -0
- package/types/langs/pl.d.ts +3 -0
- package/types/langs/pt_br.d.ts +3 -0
- package/types/langs/ru.d.ts +3 -0
- package/types/langs/sk.d.ts +3 -0
- package/types/langs/sv.d.ts +3 -0
- package/types/langs/tr.d.ts +3 -0
- package/types/langs/ua.d.ts +3 -0
- package/types/langs/zh_cn.d.ts +3 -0
- package/types/langs/zh_tw.d.ts +3 -0
- package/types/modules/dialog/dialog.d.ts +7 -0
- package/types/modules/table/table.d.ts +6 -0
- package/types/plugins/clean-html/clean-html.d.ts +8 -0
- package/types/plugins/clean-html/helpers/index.d.ts +1 -0
- package/types/plugins/clean-html/helpers/remove-placeholder-br.d.ts +16 -0
- package/types/plugins/delete/delete.d.ts +11 -1
- package/types/plugins/iframe/config.d.ts +3 -0
- package/types/plugins/inline-popup/inline-popup.d.ts +19 -0
- package/types/plugins/ordered-list/start-dialog.d.ts +19 -0
- package/types/plugins/resizer/resizer.d.ts +10 -0
- package/types/plugins/select-cells/select-cells.d.ts +23 -0
package/esm/langs/fa.d.ts
CHANGED
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
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
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
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
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
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
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
package/esm/langs/ja.js
CHANGED
package/esm/langs/ko.d.ts
CHANGED
package/esm/langs/ko.js
CHANGED
package/esm/langs/mn.d.ts
CHANGED
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
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
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
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
|
};
|
package/esm/langs/pt_br.d.ts
CHANGED
package/esm/langs/pt_br.js
CHANGED
|
@@ -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
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
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
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
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
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
|
};
|
package/esm/langs/zh_cn.d.ts
CHANGED
package/esm/langs/zh_cn.js
CHANGED
package/esm/langs/zh_tw.d.ts
CHANGED
package/esm/langs/zh_tw.js
CHANGED
|
@@ -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
|
|
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,
|
|
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
|
-
: ((
|
|
202
|
-
((
|
|
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, '
|
|
224
|
-
.off(self.ow, '
|
|
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);
|