jodit-pro 4.8.14 → 4.9.2

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 (378) hide show
  1. package/CHANGELOG.md +44 -1
  2. package/es2015/jodit.css +2 -2
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +38 -38
  5. package/es2015/jodit.js +531 -448
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +17 -17
  8. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +376 -406
  9. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +2282 -2279
  10. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  11. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +11 -11
  12. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  13. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  14. package/es2015/plugins/backup/backup.css +1 -1
  15. package/es2015/plugins/backup/backup.js +1 -1
  16. package/es2015/plugins/backup/backup.min.js +1 -1
  17. package/es2015/plugins/button-generator/button-generator.css +1 -1
  18. package/es2015/plugins/button-generator/button-generator.js +1 -1
  19. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  20. package/es2015/plugins/change-case/change-case.js +1 -1
  21. package/es2015/plugins/change-case/change-case.min.js +1 -1
  22. package/es2015/plugins/color-picker/color-picker.css +1 -1
  23. package/es2015/plugins/color-picker/color-picker.js +1 -1
  24. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  25. package/es2015/plugins/emoji/emoji.css +1 -1
  26. package/es2015/plugins/emoji/emoji.js +1 -1
  27. package/es2015/plugins/emoji/emoji.min.js +1 -1
  28. package/es2015/plugins/export-docs/export-docs.js +1 -1
  29. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  30. package/es2015/plugins/finder/finder.css +1 -1
  31. package/es2015/plugins/finder/finder.js +2 -2
  32. package/es2015/plugins/finder/finder.min.js +2 -2
  33. package/es2015/plugins/google-maps/google-maps.css +1 -1
  34. package/es2015/plugins/google-maps/google-maps.js +52 -59
  35. package/es2015/plugins/google-maps/google-maps.min.js +6 -6
  36. package/es2015/plugins/google-search/google-search.js +1 -1
  37. package/es2015/plugins/google-search/google-search.min.js +1 -1
  38. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  39. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  40. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  41. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  42. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  43. package/es2015/plugins/keyboard/keyboard.css +1 -1
  44. package/es2015/plugins/keyboard/keyboard.js +1 -1
  45. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  46. package/es2015/plugins/mobile-view/mobile-view.js +4 -1
  47. package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
  48. package/es2015/plugins/page-break/page-break.js +4 -1
  49. package/es2015/plugins/page-break/page-break.min.js +3 -3
  50. package/es2015/plugins/paste-code/paste-code.css +1 -1
  51. package/es2015/plugins/paste-code/paste-code.js +4 -1
  52. package/es2015/plugins/paste-code/paste-code.min.js +2 -2
  53. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  54. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  55. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  56. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  57. package/es2015/plugins/todo-list/todo-list.css +1 -1
  58. package/es2015/plugins/todo-list/todo-list.js +1 -1
  59. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  60. package/es2015/plugins/translate/translate.css +1 -1
  61. package/es2015/plugins/translate/translate.js +1 -1
  62. package/es2015/plugins/translate/translate.min.js +1 -1
  63. package/es2015/plugins/tune-block/tune-block.css +1 -1
  64. package/es2015/plugins/tune-block/tune-block.js +1 -1
  65. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  66. package/es2018/jodit.fat.min.css +1 -1
  67. package/es2018/jodit.fat.min.js +32 -32
  68. package/es2018/jodit.min.css +1 -1
  69. package/es2018/jodit.min.js +17 -17
  70. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  71. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +6 -6
  72. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  73. package/es2018/plugins/backup/backup.min.js +1 -1
  74. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  75. package/es2018/plugins/change-case/change-case.min.js +1 -1
  76. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  77. package/es2018/plugins/emoji/emoji.min.js +1 -1
  78. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  79. package/es2018/plugins/finder/finder.min.js +2 -2
  80. package/es2018/plugins/google-maps/google-maps.min.js +6 -6
  81. package/es2018/plugins/google-search/google-search.min.js +1 -1
  82. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  83. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  84. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  85. package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
  86. package/es2018/plugins/page-break/page-break.min.js +3 -3
  87. package/es2018/plugins/paste-code/paste-code.min.js +2 -2
  88. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  89. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  90. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  91. package/es2018/plugins/translate/translate.min.js +1 -1
  92. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  93. package/es2021/jodit.css +2 -2
  94. package/es2021/jodit.fat.min.css +1 -1
  95. package/es2021/jodit.fat.min.js +36 -36
  96. package/es2021/jodit.js +531 -448
  97. package/es2021/jodit.min.css +1 -1
  98. package/es2021/jodit.min.js +21 -21
  99. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +376 -406
  100. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +4901 -4898
  101. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  102. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +28 -28
  103. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  104. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  105. package/es2021/plugins/backup/backup.css +1 -1
  106. package/es2021/plugins/backup/backup.js +1 -1
  107. package/es2021/plugins/backup/backup.min.js +1 -1
  108. package/es2021/plugins/button-generator/button-generator.css +1 -1
  109. package/es2021/plugins/button-generator/button-generator.js +1 -1
  110. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  111. package/es2021/plugins/change-case/change-case.js +1 -1
  112. package/es2021/plugins/change-case/change-case.min.js +1 -1
  113. package/es2021/plugins/color-picker/color-picker.css +1 -1
  114. package/es2021/plugins/color-picker/color-picker.js +1 -1
  115. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  116. package/es2021/plugins/emoji/emoji.css +1 -1
  117. package/es2021/plugins/emoji/emoji.js +1 -1
  118. package/es2021/plugins/emoji/emoji.min.js +1 -1
  119. package/es2021/plugins/export-docs/export-docs.js +1 -1
  120. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  121. package/es2021/plugins/finder/finder.css +1 -1
  122. package/es2021/plugins/finder/finder.js +2 -2
  123. package/es2021/plugins/finder/finder.min.js +2 -2
  124. package/es2021/plugins/google-maps/google-maps.css +1 -1
  125. package/es2021/plugins/google-maps/google-maps.js +52 -59
  126. package/es2021/plugins/google-maps/google-maps.min.js +7 -7
  127. package/es2021/plugins/google-search/google-search.js +1 -1
  128. package/es2021/plugins/google-search/google-search.min.js +1 -1
  129. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  130. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  131. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  132. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  133. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  134. package/es2021/plugins/keyboard/keyboard.css +1 -1
  135. package/es2021/plugins/keyboard/keyboard.js +1 -1
  136. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  137. package/es2021/plugins/mobile-view/mobile-view.js +4 -1
  138. package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
  139. package/es2021/plugins/page-break/page-break.js +4 -1
  140. package/es2021/plugins/page-break/page-break.min.js +3 -3
  141. package/es2021/plugins/paste-code/paste-code.css +1 -1
  142. package/es2021/plugins/paste-code/paste-code.js +4 -1
  143. package/es2021/plugins/paste-code/paste-code.min.js +2 -2
  144. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  145. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  146. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  147. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  148. package/es2021/plugins/todo-list/todo-list.css +1 -1
  149. package/es2021/plugins/todo-list/todo-list.js +1 -1
  150. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  151. package/es2021/plugins/translate/translate.css +1 -1
  152. package/es2021/plugins/translate/translate.js +1 -1
  153. package/es2021/plugins/translate/translate.min.js +1 -1
  154. package/es2021/plugins/tune-block/tune-block.css +1 -1
  155. package/es2021/plugins/tune-block/tune-block.js +1 -1
  156. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  157. package/es2021.en/jodit.css +2 -2
  158. package/es2021.en/jodit.fat.min.css +1 -1
  159. package/es2021.en/jodit.fat.min.js +36 -36
  160. package/es2021.en/jodit.js +531 -448
  161. package/es2021.en/jodit.min.css +1 -1
  162. package/es2021.en/jodit.min.js +21 -21
  163. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +376 -406
  164. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +4779 -4776
  165. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  166. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +6 -6
  167. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  168. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  169. package/es2021.en/plugins/backup/backup.css +1 -1
  170. package/es2021.en/plugins/backup/backup.js +1 -1
  171. package/es2021.en/plugins/backup/backup.min.js +1 -1
  172. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  173. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  174. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  175. package/es2021.en/plugins/change-case/change-case.js +1 -1
  176. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  177. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  178. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  179. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  180. package/es2021.en/plugins/emoji/emoji.css +1 -1
  181. package/es2021.en/plugins/emoji/emoji.js +1 -1
  182. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  183. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  184. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  185. package/es2021.en/plugins/finder/finder.css +1 -1
  186. package/es2021.en/plugins/finder/finder.js +2 -2
  187. package/es2021.en/plugins/finder/finder.min.js +2 -2
  188. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  189. package/es2021.en/plugins/google-maps/google-maps.js +52 -59
  190. package/es2021.en/plugins/google-maps/google-maps.min.js +7 -7
  191. package/es2021.en/plugins/google-search/google-search.js +1 -1
  192. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  193. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  194. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  195. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  196. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  197. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  198. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  199. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  200. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  201. package/es2021.en/plugins/mobile-view/mobile-view.js +4 -1
  202. package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
  203. package/es2021.en/plugins/page-break/page-break.js +4 -1
  204. package/es2021.en/plugins/page-break/page-break.min.js +3 -3
  205. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  206. package/es2021.en/plugins/paste-code/paste-code.js +4 -1
  207. package/es2021.en/plugins/paste-code/paste-code.min.js +2 -2
  208. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  209. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  210. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  211. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  212. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  213. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  214. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  215. package/es2021.en/plugins/translate/translate.css +1 -1
  216. package/es2021.en/plugins/translate/translate.js +1 -1
  217. package/es2021.en/plugins/translate/translate.min.js +1 -1
  218. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  219. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  220. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  221. package/es5/jodit.css +3 -3
  222. package/es5/jodit.fat.min.css +1 -1
  223. package/es5/jodit.fat.min.js +2 -2
  224. package/es5/jodit.js +546 -458
  225. package/es5/jodit.min.css +3 -3
  226. package/es5/jodit.min.js +2 -2
  227. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +376 -406
  228. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +2121 -2121
  229. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  230. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
  231. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  232. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  233. package/es5/plugins/backup/backup.css +1 -1
  234. package/es5/plugins/backup/backup.js +1 -1
  235. package/es5/plugins/backup/backup.min.js +1 -1
  236. package/es5/plugins/button-generator/button-generator.css +1 -1
  237. package/es5/plugins/button-generator/button-generator.js +1 -1
  238. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  239. package/es5/plugins/change-case/change-case.js +1 -1
  240. package/es5/plugins/change-case/change-case.min.js +1 -1
  241. package/es5/plugins/color-picker/color-picker.css +1 -1
  242. package/es5/plugins/color-picker/color-picker.js +1 -1
  243. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  244. package/es5/plugins/emoji/emoji.css +1 -1
  245. package/es5/plugins/emoji/emoji.js +1 -1
  246. package/es5/plugins/emoji/emoji.min.js +1 -1
  247. package/es5/plugins/export-docs/export-docs.js +1 -1
  248. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  249. package/es5/plugins/finder/finder.css +1 -1
  250. package/es5/plugins/finder/finder.js +2 -2
  251. package/es5/plugins/finder/finder.min.js +2 -2
  252. package/es5/plugins/google-maps/google-maps.css +1 -1
  253. package/es5/plugins/google-maps/google-maps.js +61 -59
  254. package/es5/plugins/google-maps/google-maps.min.js +2 -2
  255. package/es5/plugins/google-search/google-search.js +1 -1
  256. package/es5/plugins/google-search/google-search.min.js +1 -1
  257. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  258. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  259. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  260. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  261. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  262. package/es5/plugins/keyboard/keyboard.css +1 -1
  263. package/es5/plugins/keyboard/keyboard.js +1 -1
  264. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  265. package/es5/plugins/mobile-view/mobile-view.js +7 -1
  266. package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
  267. package/es5/plugins/page-break/page-break.js +7 -1
  268. package/es5/plugins/page-break/page-break.min.js +2 -2
  269. package/es5/plugins/paste-code/paste-code.css +1 -1
  270. package/es5/plugins/paste-code/paste-code.js +7 -1
  271. package/es5/plugins/paste-code/paste-code.min.js +2 -2
  272. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  273. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  274. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  275. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  276. package/es5/plugins/todo-list/todo-list.css +1 -1
  277. package/es5/plugins/todo-list/todo-list.js +1 -1
  278. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  279. package/es5/plugins/translate/translate.css +1 -1
  280. package/es5/plugins/translate/translate.js +1 -1
  281. package/es5/plugins/translate/translate.min.js +1 -1
  282. package/es5/plugins/tune-block/tune-block.css +1 -1
  283. package/es5/plugins/tune-block/tune-block.js +1 -1
  284. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  285. package/es5/polyfills.fat.min.js +1 -1
  286. package/es5/polyfills.js +1 -1
  287. package/es5/polyfills.min.js +1 -1
  288. package/esm/config.d.ts +1 -6
  289. package/esm/config.js +1 -1
  290. package/esm/jodit-pro.d.ts +3 -1
  291. package/esm/jodit-pro.js +1 -1
  292. package/esm/plugins/ai-assistant-pro/ui/conversation-list/conversation-list-item.js +1 -1
  293. package/esm/plugins/ai-assistant-pro/ui/main-panel/main-panel.js +2 -2
  294. package/esm/plugins/ai-assistant-pro/ui/message-list/artifact.d.ts +0 -1
  295. package/esm/plugins/ai-assistant-pro/ui/message-list/artifact.js +1 -1
  296. package/esm/plugins/ai-assistant-pro/ui/message-list/{message-list-item.d.ts → item/message-list-item.d.ts} +1 -1
  297. package/esm/plugins/ai-assistant-pro/ui/message-list/item/message-list-item.js +1 -0
  298. package/esm/plugins/ai-assistant-pro/ui/message-list/message-list.d.ts +1 -1
  299. package/esm/plugins/ai-assistant-pro/ui/message-list/message-list.js +1 -1
  300. package/esm/plugins/ai-assistant-pro/ui/settings-button/settings-button.d.ts +4 -2
  301. package/esm/plugins/ai-assistant-pro/ui/settings-button/settings-button.js +1 -1
  302. package/esm/plugins/finder/browser.js +1 -1
  303. package/esm/plugins/google-maps/interface.d.ts +8 -0
  304. package/esm/plugins/google-maps/ui/editors/marker/marker.d.ts +1 -0
  305. package/esm/plugins/google-maps/ui/editors/marker/marker.js +1 -1
  306. package/esm/plugins/google-maps/ui/editors/polygon/polygon.d.ts +1 -0
  307. package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +1 -1
  308. package/esm/plugins/google-maps/ui/editors/polyline/polyline.d.ts +1 -0
  309. package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +1 -1
  310. package/esm/plugins/google-maps/ui/map/map.d.ts +3 -3
  311. package/esm/plugins/google-maps/ui/map/map.js +2 -2
  312. package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +2 -3
  313. package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +2 -3
  314. package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +2 -3
  315. package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +2 -3
  316. package/esm/plugins/google-maps/ui/map/modules/remove-element.d.ts +2 -3
  317. package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +2 -3
  318. package/esm/plugins/mobile-view/mobile-view.js +1 -1
  319. package/esm/plugins/page-break/page-break.d.ts +1 -0
  320. package/esm/plugins/page-break/page-break.js +1 -1
  321. package/esm/plugins/paste-code/paste-code.d.ts +1 -0
  322. package/esm/plugins/paste-code/paste-code.js +1 -1
  323. package/esm/plugins/paste-from-word/cases/clean-styles.d.ts +2 -2
  324. package/esm/plugins/paste-from-word/cases/clear-attributes.d.ts +2 -2
  325. package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.js +1 -1
  326. package/esm/plugins/paste-from-word/cases/convert-to-list.d.ts +3 -3
  327. package/esm/plugins/paste-from-word/cases/convert-to-list.js +1 -1
  328. package/esm/plugins/paste-from-word/cases/remove-extra-tags.d.ts +2 -2
  329. package/esm/plugins/paste-from-word/cases/remove-inside-comment.d.ts +2 -2
  330. package/esm/plugins/paste-from-word/cases/replace-old-tags.d.ts +2 -2
  331. package/esm/plugins/paste-from-word/element/checkers.d.ts +5 -5
  332. package/esm/plugins/paste-from-word/element/element.d.ts +2 -1
  333. package/esm/plugins/paste-from-word/element/element.js +1 -1
  334. package/esm/plugins/paste-from-word/element/render.d.ts +3 -3
  335. package/esm/plugins/paste-from-word/element/style.js +1 -1
  336. package/esm/plugins/paste-from-word/helpers/apply-styles-pro.js +1 -1
  337. package/esm/plugins/paste-from-word/helpers/calc-list-levels.d.ts +2 -2
  338. package/esm/plugins/paste-from-word/helpers/calc-list-levels.js +1 -1
  339. package/esm/plugins/paste-from-word/helpers/helpers.d.ts +2 -2
  340. package/esm/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +2 -2
  341. package/esm/plugins/paste-from-word/interface.d.ts +25 -3
  342. package/package.json +1 -1
  343. package/types/config.d.ts +1 -6
  344. package/types/jodit-pro.d.ts +3 -1
  345. package/types/plugins/ai-assistant-pro/ui/message-list/artifact.d.ts +0 -1
  346. package/types/plugins/ai-assistant-pro/ui/message-list/{message-list-item.d.ts → item/message-list-item.d.ts} +1 -1
  347. package/types/plugins/ai-assistant-pro/ui/message-list/message-list.d.ts +1 -1
  348. package/types/plugins/ai-assistant-pro/ui/settings-button/settings-button.d.ts +4 -2
  349. package/types/plugins/google-maps/interface.d.ts +8 -0
  350. package/types/plugins/google-maps/ui/editors/marker/marker.d.ts +1 -0
  351. package/types/plugins/google-maps/ui/editors/polygon/polygon.d.ts +1 -0
  352. package/types/plugins/google-maps/ui/editors/polyline/polyline.d.ts +1 -0
  353. package/types/plugins/google-maps/ui/map/map.d.ts +3 -3
  354. package/types/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +2 -3
  355. package/types/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +2 -3
  356. package/types/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +2 -3
  357. package/types/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +2 -3
  358. package/types/plugins/google-maps/ui/map/modules/remove-element.d.ts +2 -3
  359. package/types/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +2 -3
  360. package/types/plugins/page-break/page-break.d.ts +1 -0
  361. package/types/plugins/paste-code/paste-code.d.ts +1 -0
  362. package/types/plugins/paste-from-word/cases/clean-styles.d.ts +2 -2
  363. package/types/plugins/paste-from-word/cases/clear-attributes.d.ts +2 -2
  364. package/types/plugins/paste-from-word/cases/convert-to-list.d.ts +3 -3
  365. package/types/plugins/paste-from-word/cases/remove-extra-tags.d.ts +2 -2
  366. package/types/plugins/paste-from-word/cases/remove-inside-comment.d.ts +2 -2
  367. package/types/plugins/paste-from-word/cases/replace-old-tags.d.ts +2 -2
  368. package/types/plugins/paste-from-word/element/checkers.d.ts +5 -5
  369. package/types/plugins/paste-from-word/element/element.d.ts +2 -1
  370. package/types/plugins/paste-from-word/element/render.d.ts +3 -3
  371. package/types/plugins/paste-from-word/helpers/calc-list-levels.d.ts +2 -2
  372. package/types/plugins/paste-from-word/helpers/helpers.d.ts +2 -2
  373. package/types/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +2 -2
  374. package/types/plugins/paste-from-word/interface.d.ts +25 -3
  375. package/esm/plugins/ai-assistant-pro/ui/message-list/message-list-item.js +0 -1
  376. package/esm/plugins/google-maps/ui/map/modules/index.d.ts +0 -10
  377. package/esm/plugins/google-maps/ui/map/modules/index.js +0 -1
  378. package/types/plugins/google-maps/ui/map/modules/index.d.ts +0 -10
@@ -1 +1 @@
1
- var E=Object.defineProperty;var d=(m,e)=>E(m,"name",{value:e,configurable:!0});var u,o=function(m,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(m,e,t,s);else for(var l=m.length-1;l>=0;l--)(h=m[l])&&(n=(r<3?h(n):r>3?h(e,t,n):h(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n};import"./ui/assets/icons/index.js";import{ContextMenuManager as M}from"./helpers/context-menu.js";import{parentPath as c}from"./helpers/helpers.js";import{HistoryManager as S}from"./helpers/history-manager.js";import{LoadingManager as F}from"./helpers/loading-manager.js";import{PersistentStore as _}from"./helpers/persistent-store.js";import{StateManager as C}from"./helpers/state-manager.js";import{UIBrowserHeader as I}from"./ui/header/header.js";import{UILightBox as B}from"./ui/lightboox/lightbox.js";import{UIBrowserPanel as O}from"./ui/panel/panel.js";import{UIProgress as L}from"./ui/progress/progress.js";import{Config as p}from"jodit/esm/config.js";import{IS_PROD as x,KEY_DELETE as D,KEY_DOWN as b,KEY_ENTER as k,KEY_LEFT as y,KEY_RIGHT as f,KEY_UP as U}from"jodit/esm/core/constants.js";import{autobind as g,cache as K,component as N,derive as z,watch as a}from"jodit/esm/core/decorators/index.js";import{ConfigProto as v,css as T,isAbort as j,isString as P,isValidName as R}from"jodit/esm/core/helpers/index.js";import{Dlgs as H}from"jodit/esm/core/traits/dlgs.js";import{Dom as W,observable as G}from"jodit/esm/modules/index.js";import{Dialog as Y}from"jodit/esm/modules/dialog/index.js";import{makeDataProvider as A}from"jodit/esm/modules/file-browser/factories.js";import{openImageEditor as J}from"jodit/esm/modules/image-editor/image-editor.js";import{JoditPro as w}from"../../jodit-pro.js";import{license as V}from"../license/license.js";let i=(u=class extends Y{className(){return"FileBrowserPro"}lock(e="any"){return this.container.classList.add("jodit_disabled"),super.lock(e)}unlock(){return this.container.classList.remove("jodit_disabled"),super.unlock()}status(e,t=!(e instanceof Error)){j(e)||(!x&&!P(e)&&console.error(e),this.message.message(P(e)?e:e.message,t?"success":"error",this.options.howLongShowMsg))}get progressbar(){return new L(this,this.stateManager.state)}constructor(e){super(v(Object.assign(e||{},{resizable:!0,draggable:!0,toolbarButtons:e?.toolbarButtons||p.defaultOptions.filebrowser.buttons,buttons:w.atom(["filebrowser.settings","fullsize","dialog.close"])}),p.defaultOptions.filebrowser)),this.dataProvider=A(this,this.options),this.state=G({onSelectCallBack:null,theme:"default",showSideBar:!0,showFavorites:!0,showSettings:!1,showPreview:!1,withFolders:!0,foldersPosition:"bottom",info:"",metaInfo:null,currentPath:"",currentSource:"",currentBaseUrl:"",tree:[],activeElements:[],favorites:[],progress:0,lastSelectedIndex:0,elements:[],messages:[],sources:[],view:"tiles",tileSize:"default",sortBy:"name-asc",filterWord:"",onlyImages:!1}),this.persistent=new _(this,this.state),this.loadingManager=new F(this,this.state),this.stateManager=new C(this.state),this.historyManager=new S(this,this.state),this.contextMenuManager=new M(this),this.header=new I(this,this.options,this.stateManager),this.panel=new O(this,this.stateManager),this.files=this.panel,this.tree=this.panel,V.make(this),!this.persistent.theme&&this.options.theme&&(this.persistent.theme=this.options.theme),this.panel.append(this.progressbar),this.toolbar.setMod("mode","header"),this.setSize(Math.min(this.options.width,screen.width),Math.min(this.options.height,screen.height)).setHeader(this.header),this.onResizeWindow(),this.initUploader(),this.onChangeTheme(),this.fullFillOptions(),this.dataProvider.onProgress(t=>{t===0&&(t=30),this.state.progress=t}),this.e.on("beforeClose",this.removeGlobalListeners),this.e.fire("afterInit"),w.prototype.afterInitHook.call(this)}addDisclaimer(e){this.dialog.appendChild(e)}async open(e=this.o.defaultCallback,t){return this.state.onlyImages=!!t,this.prepareOpening(e),super.open(this.panel.container),this.e.fire("update.filebrowser")}onResizeWindow(){T(this.dialog,{maxWidth:screen.width,minHeight:Math.min(this.options.height,screen.height),minWidth:Math.min(this.options.width,screen.width)})}onChangePath(){const{currentPath:e,currentSource:t}=this.state;this.uploader.setPath(e),this.uploader.setSource(t)}onChangeTheme(){this.setMod("theme",this.state.theme),this.header.setMod("theme",this.state.theme),this.panel.setMod("theme",this.state.theme),this.options.theme=this.state.theme}onToggleSettings(){this.state.showSettings=!this.state.showSettings}prepareOpening(e){this.registerGlobalListeners(),e&&(this.state.onSelectCallBack=t=>{this.close(),e(t)}),this.persistent.syncWithState()}registerGlobalListeners(){this.e.on(this.ow,"keydown",this.onKeyPress)}onKeyPress(e){const{activeElement:t}=this.od;if(!this.state.activeElements.length||!t||!W.isOrContains(this.panel.items.container,t))return;const s=this.state.elements;switch(e.key){case k:return this.onChooseItems();case D:return this.onFileRemove();case f:case y:case b:case U:{const r=e.key===f||e.key===b,n=this.state.lastSelectedIndex;let h;if([f,y].includes(e.key))r?h=s[n+1]?n+1:0:h=s[n-1]?n-1:s.length-1;else{const{countInRow:l}=this.panel;h=Math.round(((n+1)/l+(r?1:-1))*l-1)}return s[h]&&this.stateManager.addActive(s[h],e.shiftKey),!1}}}removeGlobalListeners(){this.e.off(this.ow,"keydown",this.onKeyPress)}onFileRemove(){this.state.activeElements.length&&this.confirm("Are you sure?","Delete",e=>{e&&this.__itemsRemove(this.state.activeElements)}).bindDestruct(this)}__itemsRemove(e){if(!e.length)return Promise.resolve();const t=[];return e.forEach(s=>{var r;t.push(s.type==="folder"?this.__folderRemove(c(s.path),(r=s.name)!==null&&r!==void 0?r:"",s.sourceName):this.__removeFile(s.file||s.name||"",s.sourceName))}),this.state.activeElements.forEach(s=>{this.stateManager.isFavorite(s)&&this.stateManager.toggleFavorite(s)}),this.state.activeElements=[],Promise.allSettled(t).then(()=>Promise.allSettled([this.loadingManager.loadItems(),this.loadingManager.loadFolders()]))}__removeFile(e,t){return this.dataProvider.fileRemove(this.state.currentPath,e,t).then(s=>{this.status(s||this.i18n('File "%s" was deleted',e),!0)}).catch(this.status)}__folderRemove(e,t,s){return this.dataProvider.folderRemove(e,t,s).then(r=>{this.status(r||this.i18n('Folder "%s" was deleted',t),!0),this.state.currentPath===e&&(this.state.currentPath=c(e),this.state.currentSource=s)}).catch(this.status)}onFileEdit(){if(this.state.activeElements.length===1){const[e]=this.state.activeElements;J.call(this,e.fileURL,e.file||"",e.path,e.sourceName,void 0,this.status)}}onFolderRename(e){this.prompt("Enter new name","Rename",t=>{if(!R(t)||t===e.name)return this.status(this.i18n("Enter new name")),!1;this.dataProvider.folderRename(c(e.path),e.name,t,e.sourceName).then(s=>{this.state.activeElements=[],this.status(s,!0),this.state.currentPath=c(e.path)+"/"+t,this.state.currentSource=e.sourceName,this.historyManager.updateCurrent(),this.loadingManager.loadFolders()}).catch(this.status)},this.i18n("type name"),e.name).bindDestruct(this)}onFolderRemove(e){this.confirm("Are you sure?","Delete",t=>{t&&this.__itemsRemove([{type:"folder",name:e.name,path:e.path,sourceName:e.sourceName}])}).bindDestruct(this)}onFolderCreate(e){this.prompt("Enter Directory name","Create directory",t=>{const s=e.path||"/";this.dataProvider.createFolder(t,e.path||"/",e.sourceName).then(()=>{this.state.currentSource===e.sourceName&&this.state.currentPath===s?this.e.fire("update.filebrowser"):(this.state.currentSource=e.sourceName,this.state.currentPath=s),this.historyManager.updateCurrent()},this.status)},this.i18n("type name")).bindDestruct(this)}onFileRename(e){const t=e.file||e.name||"";this.state.activeElements.length===1&&t&&this.prompt("Enter new name","Rename",s=>{if(!R(s))return this.status(this.i18n("Enter new name")),!1;this.dataProvider.fileRename(this.state.currentPath,t,s,this.state.currentSource).then(r=>{this.state.activeElements=[],this.status(r,!0),this.loadingManager.loadItems()}).catch(this.status)},this.i18n("type name"),t).bindDestruct(this)}onChooseItems(){const e=this.stateManager.state.activeElements;if(e.length){if(e[0].type==="folder"){this.state.currentPath=this.state.currentPath+"/"+e[0].name,this.state.currentSource=e[0].sourceName,this.e.fire("afterOpenFolder.filebrowser");return}this.state.onSelectCallBack?this.stateManager.callSelectHandler():this.onOpenLightBox(e[0])}}onOpenLightBox(e){B.open(this,e,this.state.elements)}initUploader(){const e=this,t=v(e.o.uploader||{},p.defaultOptions.uploader),s=d(()=>this.loadingManager.loadItems(),"uploadHandler");e.uploader=e.getInstance("Uploader",t),e.uploader.bind(e.panel.container,s,e.status),e.e.on("bindUploader.filebrowser",r=>{e.uploader.bind(r,s,e.status)})}destruct(){this.removeGlobalListeners(),this.header.destruct(),this.panel.destruct(),super.destruct()}fullFillOptions(){["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(t=>{this.options[t]!=null&&(this.options[t]=v(this.options[t],this.o.ajax))})}},d(u,"FileBrowserPro"),u);o([g],i.prototype,"status",null),o([K],i.prototype,"progressbar",null),o([a(":resize",{context:window})],i.prototype,"onResizeWindow",null),o([a(["state.currentPath","state.currentSource"])],i.prototype,"onChangePath",null),o([a("state.theme")],i.prototype,"onChangeTheme",null),o([a(":toggleSettings.filebrowser")],i.prototype,"onToggleSettings",null),o([g],i.prototype,"onKeyPress",null),o([g],i.prototype,"removeGlobalListeners",null),o([a(":fileRemove.filebrowser")],i.prototype,"onFileRemove",null),o([a(":edit.filebrowser")],i.prototype,"onFileEdit",null),o([a(":folderRename.filebrowser")],i.prototype,"onFolderRename",null),o([a(":folderRemove.filebrowser")],i.prototype,"onFolderRemove",null),o([a(":folderCreate.filebrowser")],i.prototype,"onFolderCreate",null),o([a(":fileRename.filebrowser")],i.prototype,"onFileRename",null),o([a(":select.filebrowser")],i.prototype,"onChooseItems",null),o([a(":openLightBox.filebrowser")],i.prototype,"onOpenLightBox",null),i=o([N,z(H)],i);Object.defineProperty(w.modules,"FileBrowserPro",{value:i,writable:!1,enumerable:!0,configurable:!0});export{i as FileBrowserPro};
1
+ var E=Object.defineProperty;var d=(m,e)=>E(m,"name",{value:e,configurable:!0});var u,o=function(m,e,t,s){var i=arguments.length,n=i<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(m,e,t,s);else for(var l=m.length-1;l>=0;l--)(h=m[l])&&(n=(i<3?h(n):i>3?h(e,t,n):h(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n};import"./ui/assets/icons/index.js";import{ContextMenuManager as M}from"./helpers/context-menu.js";import{parentPath as c}from"./helpers/helpers.js";import{HistoryManager as S}from"./helpers/history-manager.js";import{LoadingManager as F}from"./helpers/loading-manager.js";import{PersistentStore as _}from"./helpers/persistent-store.js";import{StateManager as C}from"./helpers/state-manager.js";import{UIBrowserHeader as I}from"./ui/header/header.js";import{UILightBox as B}from"./ui/lightboox/lightbox.js";import{UIBrowserPanel as O}from"./ui/panel/panel.js";import{UIProgress as L}from"./ui/progress/progress.js";import{Config as p}from"jodit/esm/config.js";import{IS_PROD as x,KEY_DELETE as D,KEY_DOWN as b,KEY_ENTER as k,KEY_LEFT as y,KEY_RIGHT as f,KEY_UP as U}from"jodit/esm/core/constants.js";import{autobind as g,cache as K,component as N,derive as z,watch as a}from"jodit/esm/core/decorators/index.js";import{ConfigProto as v,css as T,isAbortError as j,isString as P,isValidName as R}from"jodit/esm/core/helpers/index.js";import{Dlgs as H}from"jodit/esm/core/traits/dlgs.js";import{Dom as W,observable as G}from"jodit/esm/modules/index.js";import{Dialog as Y}from"jodit/esm/modules/dialog/index.js";import{makeDataProvider as A}from"jodit/esm/modules/file-browser/factories.js";import{openImageEditor as J}from"jodit/esm/modules/image-editor/image-editor.js";import{JoditPro as w}from"../../jodit-pro.js";import{license as V}from"../license/license.js";let r=(u=class extends Y{className(){return"FileBrowserPro"}lock(e="any"){return this.container.classList.add("jodit_disabled"),super.lock(e)}unlock(){return this.container.classList.remove("jodit_disabled"),super.unlock()}status(e,t=!(e instanceof Error)){j(e)||(!x&&!P(e)&&console.error(e),this.message.message(P(e)?e:e.message,t?"success":"error",this.options.howLongShowMsg))}get progressbar(){return new L(this,this.stateManager.state)}constructor(e){super(v(Object.assign(e||{},{resizable:!0,draggable:!0,toolbarButtons:e?.toolbarButtons||p.defaultOptions.filebrowser.buttons,buttons:w.atom(["filebrowser.settings","fullsize","dialog.close"])}),p.defaultOptions.filebrowser)),this.dataProvider=A(this,this.options),this.state=G({onSelectCallBack:null,theme:"default",showSideBar:!0,showFavorites:!0,showSettings:!1,showPreview:!1,withFolders:!0,foldersPosition:"bottom",info:"",metaInfo:null,currentPath:"",currentSource:"",currentBaseUrl:"",tree:[],activeElements:[],favorites:[],progress:0,lastSelectedIndex:0,elements:[],messages:[],sources:[],view:"tiles",tileSize:"default",sortBy:"name-asc",filterWord:"",onlyImages:!1}),this.persistent=new _(this,this.state),this.loadingManager=new F(this,this.state),this.stateManager=new C(this.state),this.historyManager=new S(this,this.state),this.contextMenuManager=new M(this),this.header=new I(this,this.options,this.stateManager),this.panel=new O(this,this.stateManager),this.files=this.panel,this.tree=this.panel,V.make(this),!this.persistent.theme&&this.options.theme&&(this.persistent.theme=this.options.theme),this.panel.append(this.progressbar),this.toolbar.setMod("mode","header"),this.setSize(Math.min(this.options.width,screen.width),Math.min(this.options.height,screen.height)).setHeader(this.header),this.onResizeWindow(),this.initUploader(),this.onChangeTheme(),this.fullFillOptions(),this.dataProvider.onProgress(t=>{t===0&&(t=30),this.state.progress=t}),this.e.on("beforeClose",this.removeGlobalListeners),this.e.fire("afterInit"),w.prototype.afterInitHook.call(this)}addDisclaimer(e){this.dialog.appendChild(e)}async open(e=this.o.defaultCallback,t){return this.state.onlyImages=!!t,this.prepareOpening(e),super.open(this.panel.container),this.e.fire("update.filebrowser")}onResizeWindow(){T(this.dialog,{maxWidth:screen.width,minHeight:Math.min(this.options.height,screen.height),minWidth:Math.min(this.options.width,screen.width)})}onChangePath(){const{currentPath:e,currentSource:t}=this.state;this.uploader.setPath(e),this.uploader.setSource(t)}onChangeTheme(){this.setMod("theme",this.state.theme),this.header.setMod("theme",this.state.theme),this.panel.setMod("theme",this.state.theme),this.options.theme=this.state.theme}onToggleSettings(){this.state.showSettings=!this.state.showSettings}prepareOpening(e){this.registerGlobalListeners(),e&&(this.state.onSelectCallBack=t=>{this.close(),e(t)}),this.persistent.syncWithState()}registerGlobalListeners(){this.e.on(this.ow,"keydown",this.onKeyPress)}onKeyPress(e){const{activeElement:t}=this.od;if(!this.state.activeElements.length||!t||!W.isOrContains(this.panel.items.container,t))return;const s=this.state.elements;switch(e.key){case k:return this.onChooseItems();case D:return this.onFileRemove();case f:case y:case b:case U:{const i=e.key===f||e.key===b,n=this.state.lastSelectedIndex;let h;if([f,y].includes(e.key))i?h=s[n+1]?n+1:0:h=s[n-1]?n-1:s.length-1;else{const{countInRow:l}=this.panel;h=Math.round(((n+1)/l+(i?1:-1))*l-1)}return s[h]&&this.stateManager.addActive(s[h],e.shiftKey),!1}}}removeGlobalListeners(){this.e.off(this.ow,"keydown",this.onKeyPress)}onFileRemove(){this.state.activeElements.length&&this.confirm("Are you sure?","Delete",e=>{e&&this.__itemsRemove(this.state.activeElements)}).bindDestruct(this)}__itemsRemove(e){if(!e.length)return Promise.resolve();const t=[];return e.forEach(s=>{var i;t.push(s.type==="folder"?this.__folderRemove(c(s.path),(i=s.name)!==null&&i!==void 0?i:"",s.sourceName):this.__removeFile(s.file||s.name||"",s.sourceName))}),this.state.activeElements.forEach(s=>{this.stateManager.isFavorite(s)&&this.stateManager.toggleFavorite(s)}),this.state.activeElements=[],Promise.allSettled(t).then(()=>Promise.allSettled([this.loadingManager.loadItems(),this.loadingManager.loadFolders()]))}__removeFile(e,t){return this.dataProvider.fileRemove(this.state.currentPath,e,t).then(s=>{this.status(s||this.i18n('File "%s" was deleted',e),!0)}).catch(this.status)}__folderRemove(e,t,s){return this.dataProvider.folderRemove(e,t,s).then(i=>{this.status(i||this.i18n('Folder "%s" was deleted',t),!0),this.state.currentPath===e&&(this.state.currentPath=c(e),this.state.currentSource=s)}).catch(this.status)}onFileEdit(){if(this.state.activeElements.length===1){const[e]=this.state.activeElements;J.call(this,e.fileURL,e.file||"",e.path,e.sourceName,void 0,this.status)}}onFolderRename(e){this.prompt("Enter new name","Rename",t=>{if(!R(t)||t===e.name)return this.status(this.i18n("Enter new name")),!1;this.dataProvider.folderRename(c(e.path),e.name,t,e.sourceName).then(s=>{this.state.activeElements=[],this.status(s,!0),this.state.currentPath=c(e.path)+"/"+t,this.state.currentSource=e.sourceName,this.historyManager.updateCurrent(),this.loadingManager.loadFolders()}).catch(this.status)},this.i18n("type name"),e.name).bindDestruct(this)}onFolderRemove(e){this.confirm("Are you sure?","Delete",t=>{t&&this.__itemsRemove([{type:"folder",name:e.name,path:e.path,sourceName:e.sourceName}])}).bindDestruct(this)}onFolderCreate(e){this.prompt("Enter Directory name","Create directory",t=>{const s=e.path||"/";this.dataProvider.createFolder(t,e.path||"/",e.sourceName).then(()=>{this.state.currentSource===e.sourceName&&this.state.currentPath===s?this.e.fire("update.filebrowser"):(this.state.currentSource=e.sourceName,this.state.currentPath=s),this.historyManager.updateCurrent()},this.status)},this.i18n("type name")).bindDestruct(this)}onFileRename(e){const t=e.file||e.name||"";this.state.activeElements.length===1&&t&&this.prompt("Enter new name","Rename",s=>{if(!R(s))return this.status(this.i18n("Enter new name")),!1;this.dataProvider.fileRename(this.state.currentPath,t,s,this.state.currentSource).then(i=>{this.state.activeElements=[],this.status(i,!0),this.loadingManager.loadItems()}).catch(this.status)},this.i18n("type name"),t).bindDestruct(this)}onChooseItems(){const e=this.stateManager.state.activeElements;if(e.length){if(e[0].type==="folder"){this.state.currentPath=this.state.currentPath+"/"+e[0].name,this.state.currentSource=e[0].sourceName,this.e.fire("afterOpenFolder.filebrowser");return}this.state.onSelectCallBack?this.stateManager.callSelectHandler():this.onOpenLightBox(e[0])}}onOpenLightBox(e){B.open(this,e,this.state.elements)}initUploader(){const e=this,t=v(e.o.uploader||{},p.defaultOptions.uploader),s=d(()=>this.loadingManager.loadItems(),"uploadHandler");e.uploader=e.getInstance("Uploader",t),e.uploader.bind(e.panel.container,s,e.status),e.e.on("bindUploader.filebrowser",i=>{e.uploader.bind(i,s,e.status)})}destruct(){this.removeGlobalListeners(),this.header.destruct(),this.panel.destruct(),super.destruct()}fullFillOptions(){["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(t=>{this.options[t]!=null&&(this.options[t]=v(this.options[t],this.o.ajax))})}},d(u,"FileBrowserPro"),u);o([g],r.prototype,"status",null),o([K],r.prototype,"progressbar",null),o([a(":resize",{context:window})],r.prototype,"onResizeWindow",null),o([a(["state.currentPath","state.currentSource"])],r.prototype,"onChangePath",null),o([a("state.theme")],r.prototype,"onChangeTheme",null),o([a(":toggleSettings.filebrowser")],r.prototype,"onToggleSettings",null),o([g],r.prototype,"onKeyPress",null),o([g],r.prototype,"removeGlobalListeners",null),o([a(":fileRemove.filebrowser")],r.prototype,"onFileRemove",null),o([a(":edit.filebrowser")],r.prototype,"onFileEdit",null),o([a(":folderRename.filebrowser")],r.prototype,"onFolderRename",null),o([a(":folderRemove.filebrowser")],r.prototype,"onFolderRemove",null),o([a(":folderCreate.filebrowser")],r.prototype,"onFolderCreate",null),o([a(":fileRename.filebrowser")],r.prototype,"onFileRename",null),o([a(":select.filebrowser")],r.prototype,"onChooseItems",null),o([a(":openLightBox.filebrowser")],r.prototype,"onOpenLightBox",null),r=o([N,z(H)],r);Object.defineProperty(w.modules,"FileBrowserPro",{value:r,writable:!1,enumerable:!0,configurable:!0});export{r as FileBrowserPro};
@@ -3,6 +3,7 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
+ import type { IJodit, IUIGroup } from "jodit/esm/types/index";
6
7
  export type MapElementType = 'circle' | 'marker' | 'polyline' | 'polygon' | 'text';
7
8
  export type CreateMode = 'hand' | MapElementType;
8
9
  interface IMarkerState {
@@ -107,3 +108,10 @@ export interface IUIMapState extends IUIMapBaseState {
107
108
  mode: CreateMode;
108
109
  elements: IUIMapElementState[];
109
110
  }
111
+ export interface IUIMap extends IUIGroup {
112
+ readonly options: IJodit['options'];
113
+ state: IUIMapState;
114
+ json(): string;
115
+ readonly map: google.maps.Map;
116
+ readonly mapElements: IUIMapElement[];
117
+ }
@@ -6,5 +6,6 @@
6
6
  import type { IMarkerState } from "../../../interface";
7
7
  import { UIBaseEditor } from "../base";
8
8
  export declare class UIMarkerEditor extends UIBaseEditor<IMarkerState> {
9
+ className(): string;
9
10
  protected onReady(): void;
10
11
  }
@@ -1 +1 @@
1
- var d=Object.defineProperty;var a=(i,e)=>d(i,"name",{value:e,configurable:!0});var n,c=function(i,e,o,r){var p=arguments.length,t=p<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(i,e,o,r);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(t=(p<3?s(t):p>3?s(e,o,t):s(e,o))||t);return p>3&&t&&Object.defineProperty(e,o,t),t};import{component as h,hook as m}from"jodit/esm/core/decorators/index.js";import{UIBaseEditor as u}from"../base.js";import{UIWysiwyg as y}from"../../wysiwyg/wysiwyg.js";let f=(n=class extends u{onReady(){var e;super.onReady();const o=new y(this.j,this.options.googleMaps.inlineEditorOptions,(e=this.state.text)!==null&&e!==void 0?e:"",r=>this.j.e.fire(this,"change","text",r));this.append(o,"form")}},a(n,"UIMarkerEditor"),n);c([m("ready")],f.prototype,"onReady",null),f=c([h],f);export{f as UIMarkerEditor};
1
+ var d=Object.defineProperty;var f=(i,e)=>d(i,"name",{value:e,configurable:!0});var n,c=function(i,e,o,r){var s=arguments.length,t=s<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,o):r,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(i,e,o,r);else for(var l=i.length-1;l>=0;l--)(p=i[l])&&(t=(s<3?p(t):s>3?p(e,o,t):p(e,o))||t);return s>3&&t&&Object.defineProperty(e,o,t),t};import{component as h,hook as m}from"jodit/esm/core/decorators/index.js";import{UIBaseEditor as u}from"../base.js";import{UIWysiwyg as y}from"../../wysiwyg/wysiwyg.js";let a=(n=class extends u{className(){return"UIMarkerEditor"}onReady(){var e;super.onReady();const o=new y(this.j,this.options.googleMaps.inlineEditorOptions,(e=this.state.text)!==null&&e!==void 0?e:"",r=>this.j.e.fire(this,"change","text",r));this.append(o,"form")}},f(n,"UIMarkerEditor"),n);c([m("ready")],a.prototype,"onReady",null),a=c([h],a);export{a as UIMarkerEditor};
@@ -6,5 +6,6 @@
6
6
  import type { IPolygonState } from "../../../interface";
7
7
  import { UIPolylineEditor } from "../polyline/polyline";
8
8
  export declare class UIPolygonEditor extends UIPolylineEditor<IPolygonState> {
9
+ className(): string;
9
10
  protected onReady(): void;
10
11
  }
@@ -1 +1 @@
1
- var c=Object.defineProperty;var f=(n,e)=>c(n,"name",{value:e,configurable:!0});var i,h=function(n,e,o,t){var r=arguments.length,l=r<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,o):t,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(n,e,o,t);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(l=(r<3?a(l):r>3?a(e,o,l):a(e,o))||l);return r>3&&l&&Object.defineProperty(e,o,l),l};import{component as m,hook as d}from"jodit/esm/core/decorators/index.js";import{UIRange as u}from"../../../../../core/ui/form/range/range.js";import{ColorInput as y}from"../../../../color-picker/ui/input/color-input.js";import{UIPolylineEditor as g}from"../polyline/polyline.js";let p=(i=class extends g{onReady(){var e,o;this.append([new y(this.j,{label:"Fill color",value:(e=this.state.fillColor)!==null&&e!==void 0?e:"#000",onChange:f(t=>this.j.e.fire(this,"change","fillColor",t),"onChange")}).setMod("trigger",!1),new u(this.j,{label:"Opacity",min:0,max:1,value:(o=this.state.fillOpacity)!==null&&o!==void 0?o:1,onChange:f(t=>{this.j.e.fire(this,"change","fillOpacity",parseFloat(t)||0)},"onChange")}).setMod("log",!1)],"form")}},f(i,"UIPolygonEditor"),i);h([d("ready")],p.prototype,"onReady",null),p=h([m],p);export{p as UIPolygonEditor};
1
+ var h=Object.defineProperty;var f=(r,e)=>h(r,"name",{value:e,configurable:!0});var i,c=function(r,e,o,t){var n=arguments.length,l=n<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,o):t,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(r,e,o,t);else for(var p=r.length-1;p>=0;p--)(a=r[p])&&(l=(n<3?a(l):n>3?a(e,o,l):a(e,o))||l);return n>3&&l&&Object.defineProperty(e,o,l),l};import{component as m,hook as d}from"jodit/esm/core/decorators/index.js";import{UIRange as u}from"../../../../../core/ui/form/range/range.js";import{ColorInput as y}from"../../../../color-picker/ui/input/color-input.js";import{UIPolylineEditor as g}from"../polyline/polyline.js";let s=(i=class extends g{className(){return"UIPolygonEditor"}onReady(){var e,o;this.append([new y(this.j,{label:"Fill color",value:(e=this.state.fillColor)!==null&&e!==void 0?e:"#000",onChange:f(t=>this.j.e.fire(this,"change","fillColor",t),"onChange")}).setMod("trigger",!1),new u(this.j,{label:"Opacity",min:0,max:1,value:(o=this.state.fillOpacity)!==null&&o!==void 0?o:1,onChange:f(t=>{this.j.e.fire(this,"change","fillOpacity",parseFloat(t)||0)},"onChange")}).setMod("log",!1)],"form")}},f(i,"UIPolygonEditor"),i);c([d("ready")],s.prototype,"onReady",null),s=c([m],s);export{s as UIPolygonEditor};
@@ -6,5 +6,6 @@
6
6
  import type { IPolylineState } from "../../../interface";
7
7
  import { UIBaseEditor } from "../base";
8
8
  export declare class UIPolylineEditor<T extends Omit<IPolylineState, 'type'>> extends UIBaseEditor<T> {
9
+ className(): string;
9
10
  protected onReady(): void;
10
11
  }
@@ -1 +1 @@
1
- var c=Object.defineProperty;var a=(i,e)=>c(i,"name",{value:e,configurable:!0});var n,p=function(i,e,t,o){var l=arguments.length,r=l<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,o);else for(var f=i.length-1;f>=0;f--)(s=i[f])&&(r=(l<3?s(r):l>3?s(e,t,r):s(e,t))||r);return l>3&&r&&Object.defineProperty(e,t,r),r};import{component as u,hook as d}from"jodit/esm/core/decorators/index.js";import{UIInput as m}from"jodit/esm/core/ui/form/inputs/input/input.js";import{ColorInput as g}from"../../../../color-picker/ui/input/color-input.js";import{UIBaseEditor as v}from"../base.js";let h=(n=class extends v{onReady(){var e,t;super.onReady(),this.append([new m(this.j,{label:"Stroke weight",value:(e=this.state.strokeWeight)!==null&&e!==void 0?e:1,type:"number",onChange:a(o=>this.j.e.fire(this,"change","strokeWeight",o),"onChange")}),new g(this.j,{label:"Stroke color",value:(t=this.state.strokeColor)!==null&&t!==void 0?t:"#000",onChange:a(o=>this.j.e.fire(this,"change","strokeColor",o),"onChange")}).setMod("trigger",!1)],"form")}},a(n,"UIPolylineEditor"),n);p([d("ready")],h.prototype,"onReady",null),h=p([u],h);export{h as UIPolylineEditor};
1
+ var c=Object.defineProperty;var a=(i,e)=>c(i,"name",{value:e,configurable:!0});var n,p=function(i,e,t,o){var l=arguments.length,r=l<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,o);else for(var f=i.length-1;f>=0;f--)(s=i[f])&&(r=(l<3?s(r):l>3?s(e,t,r):s(e,t))||r);return l>3&&r&&Object.defineProperty(e,t,r),r};import{component as u,hook as d}from"jodit/esm/core/decorators/index.js";import{UIInput as m}from"jodit/esm/core/ui/form/inputs/input/input.js";import{ColorInput as g}from"../../../../color-picker/ui/input/color-input.js";import{UIBaseEditor as v}from"../base.js";let h=(n=class extends v{className(){return"UIPolylineEditor"}onReady(){var e,t;super.onReady(),this.append([new m(this.j,{label:"Stroke weight",value:(e=this.state.strokeWeight)!==null&&e!==void 0?e:1,type:"number",onChange:a(o=>this.j.e.fire(this,"change","strokeWeight",o),"onChange")}),new g(this.j,{label:"Stroke color",value:(t=this.state.strokeColor)!==null&&t!==void 0?t:"#000",onChange:a(o=>this.j.e.fire(this,"change","strokeColor",o),"onChange")}).setMod("trigger",!1)],"form")}},a(n,"UIPolylineEditor"),n);p([d("ready")],h.prototype,"onReady",null),h=p([u],h);export{h as UIPolylineEditor};
@@ -6,15 +6,15 @@
6
6
  import type { IJodit } from "jodit/esm/types/index";
7
7
  import "../../config";
8
8
  import { UIElement, UIGroup } from "jodit/esm/core/ui/index";
9
- import type { CreateMode, IUIMapElement, IUIMapState } from "../../interface";
10
- export declare class UIMap extends UIGroup {
9
+ import type { CreateMode, IUIMap, IUIMapElement, IUIMapState } from "../../interface";
10
+ export declare class UIMap extends UIGroup implements IUIMap {
11
11
  readonly options: IJodit['options'];
12
12
  private drawingManager?;
13
13
  className(): string;
14
14
  private toolbar;
15
15
  state: IUIMapState;
16
16
  json(): string;
17
- protected mapElements: IUIMapElement[];
17
+ readonly mapElements: IUIMapElement[];
18
18
  private apiLoaded;
19
19
  private mapInitialized;
20
20
  map: google.maps.Map;
@@ -1,5 +1,5 @@
1
- var y=Object.defineProperty;var c=(r,t)=>y(r,"name",{value:t,configurable:!0});var i=function(r,t,e,a){var o=arguments.length,n=o<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,e):a,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,t,e,a);else for(var h=r.length-1;h>=0;h--)(p=r[h])&&(n=(o<3?p(n):o>3?p(t,e,n):p(t,e))||n);return o>3&&n&&Object.defineProperty(t,e,n),n};import"../../config.js";import{initOrUpdateElementFromState as C}from"./modules/init-or-update-element-from-state.js";import{addNewInState as f}from"./modules/index.js";import{debounce as m,hook as v,wait as u,watch as l}from"jodit/esm/core/decorators/index.js";import{uniqueUid as M}from"jodit/esm/core/global.js";import{assert as d}from"jodit/esm/core/helpers/utils/assert.js";import{css as z}from"jodit/esm/core/helpers/utils/css.js";import{UIGroup as b}from"jodit/esm/core/ui/index.js";import{ToolbarCollection as w}from"jodit/esm/modules/toolbar/collection/collection.js";import{STORAGE_KEY as _}from"../../helpers/const.js";const g=class g extends b{className(){return"UIMap"}json(){return JSON.stringify({...this.state,mode:"hand"})}async onReady(){await this.apiLoaded;const t=this.getElm("map-root");d(t!=null,"map-root element does not exists"),this.map=new google.maps.Map(t,{center:{lat:this.state.center[0],lng:this.state.center[1]},zoom:this.state.zoom,mapTypeId:this.state.type}),this.map.addListener("zoom_changed",()=>{var e;this.state.zoom=(e=this.map.getZoom())!==null&&e!==void 0?e:10}),this.map.addListener("center_changed",()=>{var e,a,o,n,p,h;this.state.center=[(o=(a=(e=this.map)===null||e===void 0?void 0:e.getCenter())===null||a===void 0?void 0:a.lat())!==null&&o!==void 0?o:55,(h=(p=(n=this.map)===null||n===void 0?void 0:n.getCenter())===null||p===void 0?void 0:p.lng())!==null&&h!==void 0?h:34]}),this.map.addListener("maptypeid_changed",()=>{const e=this.map.getMapTypeId();e&&(this.state.type=e)}),this.initDrawManager(),this.onChangeElementsList(),this.onChangeSize(),this.onChangeControls(),this.onChangeLayer(),this.onChangeMapType(),this.onChangeMode(),this.mapInitialized=!0,this.j.async.requestIdleCallback(()=>{this.j.e.fire(this,"GoogleMapsIsReady")})}initDrawManager(){try{const t=new google.maps.drawing.DrawingManager;t.setMap(this.map),t.setOptions({drawingControl:!1,polygonOptions:{...this.options.googleMaps.map.defaultStates.polygon,clickable:!0,editable:!0},polylineOptions:{...this.options.googleMaps.map.defaultStates.polyline,clickable:!0,editable:!0},markerOptions:{...this.options.googleMaps.map.defaultStates.marker,clickable:!0},circleOptions:{...this.options.googleMaps.map.defaultStates.circle,clickable:!0,editable:!0}}),this.drawingManager=t,google.maps.event.addListener(t,"overlaycomplete",e=>{e.overlay&&(f.call(this,e.overlay),e.overlay.setMap(null))})}catch{}}changeCreateMode(t){this.state.mode=this.state.mode===t?"hand":t}onChangeMode(){var t;this.j.buffer.set("createMode.gm",this.state.mode),(t=this.drawingManager)===null||t===void 0||t.setDrawingMode(this.state.mode==="hand"?null:this.state.mode),this.j.e.fire("updateToolbar")}onChangeElementsList(){const{state:{elements:t},mapElements:e}=this;t.length<e.length&&e.slice(t.length).forEach(a=>{a.gme.setMap(null)}),e.length=t.length,t.forEach((a,o)=>C.call(this,a,o))}onChangeCenter(){const t=this.map.getCenter();(t?.lat()!==this.state.center[0]||t?.lng()!==this.state.center[1])&&this.map.setCenter({lat:this.state.center[0],lng:this.state.center[1]})}onChangeZoom(){var t;(t=this.map)===null||t===void 0||t.setZoom(this.state.zoom)}onChangeControls(){var t;let e;for(e in this.state.controls)(t=this.map)===null||t===void 0||t.set(e,this.state.controls[e])}onChangeBound(){this.options.googleMaps.saveStateInStorage&&this.j.storage.set(_,{center:this.state.center,size:this.state.size,zoom:this.state.zoom,type:this.state.type,layer:this.state.layer,controls:this.state.controls})}onChangeSize(){const t=this.getElm("map-size");d(t!=null,"map-size element does not exists"),z(t,{width:this.state.size[0],height:this.state.size[1]})}onChangeMapType(){this.map.setMapTypeId(this.state.type)}onChangeLayer(){switch(this.layers.forEach(t=>t.setMap(null)),this.layers.length=0,this.state.layer){case"traffic":this.layers.push(new google.maps.TrafficLayer);break;case"transit":this.layers.push(new google.maps.TransitLayer);break;case"bicycling":this.layers.push(new google.maps.BicyclingLayer);break}this.layers.forEach(t=>t.setMap(this.map))}render(){return`<div>
1
+ var y=Object.defineProperty;var c=(r,t)=>y(r,"name",{value:t,configurable:!0});var n=function(r,t,e,o){var a=arguments.length,i=a<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,t,e,o);else for(var h=r.length-1;h>=0;h--)(p=r[h])&&(i=(a<3?p(i):a>3?p(t,e,i):p(t,e))||i);return a>3&&i&&Object.defineProperty(t,e,i),i};import"../../config.js";import{addNewInState as f}from"./modules/add-new-in-state.js";import{initOrUpdateElementFromState as C}from"./modules/init-or-update-element-from-state.js";import{debounce as m}from"jodit/esm/core/decorators/debounce/debounce.js";import{hook as v}from"jodit/esm/core/decorators/hook/hook.js";import{wait as u}from"jodit/esm/core/decorators/wait/wait.js";import{watch as l}from"jodit/esm/core/decorators/watch/watch.js";import{uniqueUid as M}from"jodit/esm/core/global.js";import{assert as d}from"jodit/esm/core/helpers/utils/assert.js";import{css as z}from"jodit/esm/core/helpers/utils/css.js";import{UIGroup as b}from"jodit/esm/core/ui/index.js";import{ToolbarCollection as w}from"jodit/esm/modules/toolbar/collection/collection.js";import{STORAGE_KEY as _}from"../../helpers/const.js";const g=class g extends b{className(){return"UIMap"}json(){return JSON.stringify({...this.state,mode:"hand"})}async onReady(){await this.apiLoaded;const t=this.getElm("map-root");d(t!=null,"map-root element does not exists"),this.map=new google.maps.Map(t,{center:{lat:this.state.center[0],lng:this.state.center[1]},zoom:this.state.zoom,mapTypeId:this.state.type}),this.map.addListener("zoom_changed",()=>{var e;this.state.zoom=(e=this.map.getZoom())!==null&&e!==void 0?e:10}),this.map.addListener("center_changed",()=>{var e,o,a,i,p,h;this.state.center=[(a=(o=(e=this.map)===null||e===void 0?void 0:e.getCenter())===null||o===void 0?void 0:o.lat())!==null&&a!==void 0?a:55,(h=(p=(i=this.map)===null||i===void 0?void 0:i.getCenter())===null||p===void 0?void 0:p.lng())!==null&&h!==void 0?h:34]}),this.map.addListener("maptypeid_changed",()=>{const e=this.map.getMapTypeId();e&&(this.state.type=e)}),this.initDrawManager(),this.onChangeElementsList(),this.onChangeSize(),this.onChangeControls(),this.onChangeLayer(),this.onChangeMapType(),this.onChangeMode(),this.mapInitialized=!0,this.j.async.requestIdleCallback(()=>{this.j.e.fire(this,"GoogleMapsIsReady")})}initDrawManager(){try{const t=new google.maps.drawing.DrawingManager;t.setMap(this.map),t.setOptions({drawingControl:!1,polygonOptions:{...this.options.googleMaps.map.defaultStates.polygon,clickable:!0,editable:!0},polylineOptions:{...this.options.googleMaps.map.defaultStates.polyline,clickable:!0,editable:!0},markerOptions:{...this.options.googleMaps.map.defaultStates.marker,clickable:!0},circleOptions:{...this.options.googleMaps.map.defaultStates.circle,clickable:!0,editable:!0}}),this.drawingManager=t,google.maps.event.addListener(t,"overlaycomplete",e=>{e.overlay&&(f.call(this,e.overlay),e.overlay.setMap(null))})}catch{}}changeCreateMode(t){this.state.mode=this.state.mode===t?"hand":t}onChangeMode(){var t;this.j.buffer.set("createMode.gm",this.state.mode),(t=this.drawingManager)===null||t===void 0||t.setDrawingMode(this.state.mode==="hand"?null:this.state.mode),this.j.e.fire("updateToolbar")}onChangeElementsList(){const{state:{elements:t},mapElements:e}=this;t.length<e.length&&e.slice(t.length).forEach(o=>{o.gme.setMap(null)}),e.length=t.length,t.forEach((o,a)=>C.call(this,o,a))}onChangeCenter(){const t=this.map.getCenter();(t?.lat()!==this.state.center[0]||t?.lng()!==this.state.center[1])&&this.map.setCenter({lat:this.state.center[0],lng:this.state.center[1]})}onChangeZoom(){var t;(t=this.map)===null||t===void 0||t.setZoom(this.state.zoom)}onChangeControls(){var t;let e;for(e in this.state.controls)(t=this.map)===null||t===void 0||t.set(e,this.state.controls[e])}onChangeBound(){this.options.googleMaps.saveStateInStorage&&this.j.storage.set(_,{center:this.state.center,size:this.state.size,zoom:this.state.zoom,type:this.state.type,layer:this.state.layer,controls:this.state.controls})}onChangeSize(){const t=this.getElm("map-size");d(t!=null,"map-size element does not exists"),z(t,{width:this.state.size[0],height:this.state.size[1]})}onChangeMapType(){this.map.setMapTypeId(this.state.type)}onChangeLayer(){switch(this.layers.forEach(t=>t.setMap(null)),this.layers.length=0,this.state.layer){case"traffic":this.layers.push(new google.maps.TrafficLayer);break;case"transit":this.layers.push(new google.maps.TransitLayer);break;case"bicycling":this.layers.push(new google.maps.BicyclingLayer);break}this.layers.forEach(t=>t.setMap(this.map))}render(){return`<div>
2
2
  <div class='&__map-root'></div>
3
3
  <div class='&__map-size'></div>
4
4
  <div class='&__map-palette'></div>
5
- </div>`}appendChildToContainer(){}constructor(t,e,a){super(t),this.options=a,this.toolbar=new w(this.jodit),this.state={uid:"jd"+M()+new Date().toString().replace(/[^0-9]/g,""),layer:this.options.googleMaps.map.layer,center:this.options.googleMaps.map.defaultCenter,zoom:this.options.googleMaps.map.defaultZoom,size:this.options.googleMaps.map.size,type:this.options.googleMaps.map.type,controls:{zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,rotateControl:!0,fullscreenControl:!0},mode:"hand",elements:[]},this.mapElements=[],this.apiLoaded=null,this.mapInitialized=!1,this.layers=[],Object.assign(this.state,e),this.toolbar.build(["gm.hand","gm.marker","gm.polyline","gm.polygon","gm.circle"]);const o=this.getElm("map-palette");d(o!=null,"palette element does not exists"),o.appendChild(this.toolbar.container)}};c(g,"UIMap");let s=g;i([v("ready")],s.prototype,"onReady",null),i([l("?:changeCreateMode.gm")],s.prototype,"changeCreateMode",null),i([l("state.mode")],s.prototype,"onChangeMode",null),i([l("state.elements")],s.prototype,"onChangeElementsList",null),i([l("state.center"),u(r=>r.mapInitialized),m()],s.prototype,"onChangeCenter",null),i([l("state.zoom"),m()],s.prototype,"onChangeZoom",null),i([l("state.controls")],s.prototype,"onChangeControls",null),i([l(["state.center","state.zoom","state.controls","state.size","state.type","state.layer"]),u(r=>r.mapInitialized),m()],s.prototype,"onChangeBound",null),i([l("state.size"),m()],s.prototype,"onChangeSize",null),i([l("state.type")],s.prototype,"onChangeMapType",null),i([l("state.layer")],s.prototype,"onChangeLayer",null);export{s as UIMap};
5
+ </div>`}appendChildToContainer(){}constructor(t,e,o){super(t),this.options=o,this.toolbar=new w(this.jodit),this.state={uid:"jd"+M()+new Date().toString().replace(/[^0-9]/g,""),layer:this.options.googleMaps.map.layer,center:this.options.googleMaps.map.defaultCenter,zoom:this.options.googleMaps.map.defaultZoom,size:this.options.googleMaps.map.size,type:this.options.googleMaps.map.type,controls:{zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,rotateControl:!0,fullscreenControl:!0},mode:"hand",elements:[]},this.mapElements=[],this.apiLoaded=null,this.mapInitialized=!1,this.layers=[],Object.assign(this.state,e),this.toolbar.build(["gm.hand","gm.marker","gm.polyline","gm.polygon","gm.circle"]);const a=this.getElm("map-palette");d(a!=null,"palette element does not exists"),a.appendChild(this.toolbar.container)}};c(g,"UIMap");let s=g;n([v("ready")],s.prototype,"onReady",null),n([l("?:changeCreateMode.gm")],s.prototype,"changeCreateMode",null),n([l("state.mode")],s.prototype,"onChangeMode",null),n([l("state.elements")],s.prototype,"onChangeElementsList",null),n([l("state.center"),u(r=>r.mapInitialized),m()],s.prototype,"onChangeCenter",null),n([l("state.zoom"),m()],s.prototype,"onChangeZoom",null),n([l("state.controls")],s.prototype,"onChangeControls",null),n([l(["state.center","state.zoom","state.controls","state.size","state.type","state.layer"]),u(r=>r.mapInitialized),m()],s.prototype,"onChangeBound",null),n([l("state.size"),m()],s.prototype,"onChangeSize",null),n([l("state.type")],s.prototype,"onChangeMapType",null),n([l("state.layer")],s.prototype,"onChangeLayer",null);export{s as UIMap};
@@ -3,6 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IGMElement } from "../../../interface";
7
- import type { UIMap } from "../map";
8
- export declare function addNewInState(this: UIMap, mvc: IGMElement): void;
6
+ import type { IGMElement, IUIMap } from "../../../interface";
7
+ export declare function addNewInState(this: IUIMap, mvc: IGMElement): void;
@@ -3,6 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IUIMapElementState } from "../../../interface";
7
- import type { UIMap } from "../map";
8
- export declare function initOrUpdateElementFromState(this: UIMap, state: IUIMapElementState, index: number): void;
6
+ import type { IUIMap, IUIMapElementState } from "../../../interface";
7
+ export declare function initOrUpdateElementFromState(this: IUIMap, state: IUIMapElementState, index: number): void;
@@ -3,6 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IUIMapElement } from "../../../interface";
7
- import type { UIMap } from "../map";
8
- export declare function onChangeGeometries(this: UIMap, newElm: IUIMapElement, index: number): void;
6
+ import type { IUIMap, IUIMapElement } from "../../../interface";
7
+ export declare function onChangeGeometries(this: IUIMap, newElm: IUIMapElement, index: number): void;
@@ -3,6 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IUIMapElement } from "../../../interface";
7
- import type { UIMap } from "../map";
8
- export declare function openPropsDialog(this: UIMap, newElm: IUIMapElement, index: number): void;
6
+ import type { IUIMap, IUIMapElement } from "../../../interface";
7
+ export declare function openPropsDialog(this: IUIMap, newElm: IUIMapElement, index: number): void;
@@ -3,6 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IUIMapElement } from "../../../interface";
7
- import type { UIMap } from "../map";
8
- export declare function removeElement(this: UIMap, newElm: IUIMapElement): void;
6
+ import type { IUIMap, IUIMapElement } from "../../../interface";
7
+ export declare function removeElement(this: IUIMap, newElm: IUIMapElement): void;
@@ -3,6 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IUIMapElement } from "../../../interface";
7
- import type { UIMap } from "../map";
8
- export declare function updateStateAndGme(this: UIMap, newState: IUIMapElement['state'], index: number, silent?: boolean): void;
6
+ import type { IUIMap, IUIMapElement } from "../../../interface";
7
+ export declare function updateStateAndGme(this: IUIMap, newState: IUIMapElement['state'], index: number, silent?: boolean): void;
@@ -1 +1 @@
1
- var h=Object.defineProperty;var c=(o,e)=>h(o,"name",{value:e,configurable:!0});var b=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);import{dataBindCurrentKey as p,dataBindStoredKey as w}from"./config.js";import{component as M,watch as g}from"jodit/esm/core/decorators/index.js";import{css as s,dataBind as _}from"jodit/esm/core/helpers/utils/index.js";import{Plugin as P}from"jodit/esm/core/plugin/index.js";import{JoditPro as V}from"../../jodit-pro.js";var S=b(a=>{var n,m=a&&a.__decorate||function(o,e,i,l){var t=arguments.length,r=t<3?e:l===null?l=Object.getOwnPropertyDescriptor(e,i):l,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,e,i,l);else for(var d=o.length-1;d>=0;d--)(u=o[d])&&(r=(t<3?u(r):t>3?u(e,i,r):u(e,i))||r);return t>3&&r&&Object.defineProperty(e,i,r),r};let f=(n=class extends P{constructor(){super(...arguments),this.buttons=[{name:"mobileView",group:"state"}],this.__currentMode="default"}afterInit(e){e.registerCommand("mobileView",{exec:c((i,l,t)=>{this.__currentMode===t&&(t="default"),this.__currentMode=t,_(e,p,t),this.__currentMode!=="default"&&_(e,w,t),t==="default"?s(this.jodit.currentPlace.slots.center,{width:null,margin:null}):s(this.j.currentPlace.slots.center,{width:t,margin:"0 auto"})},"exec")}),e.events.on("beforeSetMode",()=>{})}__beforeSetMode(){this.__currentMode!=="default"&&this.j.execCommand("mobileView",!1,"default")}beforeDestruct(e){}},c(n,"MobileView"),n);f.requires=["license"],m([g(":beforeSetMode.mobileView")],f.prototype,"__beforeSetMode",null),f=m([M],f),V.plugins.add("mobileView",f)});export default S();
1
+ var b=Object.defineProperty;var c=(o,e)=>b(o,"name",{value:e,configurable:!0});var h=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);import{dataBindCurrentKey as p,dataBindStoredKey as w}from"./config.js";import{component as M,watch as V}from"jodit/esm/core/decorators/index.js";import{css as s,dataBind as _}from"jodit/esm/core/helpers/utils/index.js";import{Plugin as g}from"jodit/esm/core/plugin/index.js";import{JoditPro as P}from"../../jodit-pro.js";var S=h(d=>{var n,m=d&&d.__decorate||function(o,e,i,l){var t=arguments.length,r=t<3?e:l===null?l=Object.getOwnPropertyDescriptor(e,i):l,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,e,i,l);else for(var a=o.length-1;a>=0;a--)(u=o[a])&&(r=(t<3?u(r):t>3?u(e,i,r):u(e,i))||r);return t>3&&r&&Object.defineProperty(e,i,r),r};let f=(n=class extends g{constructor(){super(...arguments),this.buttons=[{name:"mobileView",group:"state"}],this.__currentMode="default"}className(){return"MobileView"}afterInit(e){e.registerCommand("mobileView",{exec:c((i,l,t)=>{this.__currentMode===t&&(t="default"),this.__currentMode=t,_(e,p,t),this.__currentMode!=="default"&&_(e,w,t),t==="default"?s(this.jodit.currentPlace.slots.center,{width:null,margin:null}):s(this.j.currentPlace.slots.center,{width:t,margin:"0 auto"})},"exec")}),e.events.on("beforeSetMode",()=>{})}__beforeSetMode(){this.__currentMode!=="default"&&this.j.execCommand("mobileView",!1,"default")}beforeDestruct(e){}},c(n,"MobileView"),n);f.requires=["license"],m([V(":beforeSetMode.mobileView")],f.prototype,"__beforeSetMode",null),f=m([M],f),P.plugins.add("mobileView",f)});export default S();
@@ -7,6 +7,7 @@ import type { IJodit } from "jodit/esm/types/index";
7
7
  import "./config";
8
8
  import { Plugin } from "jodit/esm/core/plugin/index";
9
9
  export declare class PageBreak extends Plugin {
10
+ className(): string;
10
11
  static requires: string[];
11
12
  styles: string;
12
13
  buttons: {
@@ -1 +1 @@
1
- var g=Object.defineProperty;var c=(i,e)=>g(i,"name",{value:e,configurable:!0});var d=function(i,e,t,r){var n=arguments.length,a=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(i,e,t,r);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};import"./config.js";import{debounce as h,watch as u}from"jodit/esm/core/decorators/index.js";import{Dom as p}from"jodit/esm/core/dom/index.js";import{$$ as b,attr as m}from"jodit/esm/core/helpers/index.js";import{Plugin as k}from"jodit/esm/core/plugin/index.js";import{JoditPro as y}from"../../jodit-pro.js";const f=class f extends k{constructor(){super(...arguments),this.styles=styles,this.buttons=[{name:"pageBreak",group:"insert"}]}afterInit(e){e.registerCommand("insertPageBreak",()=>{const t=e.createInside.div("",{});this.decoratePageBreak(t),e.s.insertNode(t,!1,!1);let r=t.parentNode;for(;r&&r!==e.editor&&(p.after(r,t),!p.isBlock(r));)r=t.parentNode;e.s.setCursorAfter(t),e.setEditorValue()})}decoratePageBreak(e){m(e,{"data-jodit-page-break":!0,contenteditable:!1}),e.innerText=this.j.i18n("Page break")}beforeDestruct(){}onChange(){b('[style*="page-break-after"],[style*="page-break-before"]',this.j.editor).forEach(e=>{p.isEmpty(e)&&!m(e,"data-jodit-page-break")&&this.decoratePageBreak(e)})}onAfterGetValueFromEditor(e){e.value=e.value.replace(/<div[^>]+data-jodit-page-break[^>]+>[^]*?<\/div>/gi,this.j.o.pageBreak.separator)}};c(f,"PageBreak");let o=f;o.requires=["license"],d([u([":change",":afterSetMode"]),h()],o.prototype,"onChange",null),d([u(":afterGetValueFromEditor")],o.prototype,"onAfterGetValueFromEditor",null),y.plugins.add("pageBreak",o);export{o as PageBreak};
1
+ var g=Object.defineProperty;var c=(i,e)=>g(i,"name",{value:e,configurable:!0});var u=function(i,e,t,r){var n=arguments.length,a=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(i,e,t,r);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};import"./config.js";import{debounce as h,watch as d}from"jodit/esm/core/decorators/index.js";import{Dom as p}from"jodit/esm/core/dom/index.js";import{$$ as b,attr as m}from"jodit/esm/core/helpers/index.js";import{Plugin as k}from"jodit/esm/core/plugin/index.js";import{JoditPro as P}from"../../jodit-pro.js";const f=class f extends k{constructor(){super(...arguments),this.styles=styles,this.buttons=[{name:"pageBreak",group:"insert"}]}className(){return"PageBreak"}afterInit(e){e.registerCommand("insertPageBreak",()=>{const t=e.createInside.div("",{});this.decoratePageBreak(t),e.s.insertNode(t,!1,!1);let r=t.parentNode;for(;r&&r!==e.editor&&(p.after(r,t),!p.isBlock(r));)r=t.parentNode;e.s.setCursorAfter(t),e.setEditorValue()})}decoratePageBreak(e){m(e,{"data-jodit-page-break":!0,contenteditable:!1}),e.innerText=this.j.i18n("Page break")}beforeDestruct(){}onChange(){b('[style*="page-break-after"],[style*="page-break-before"]',this.j.editor).forEach(e=>{p.isEmpty(e)&&!m(e,"data-jodit-page-break")&&this.decoratePageBreak(e)})}onAfterGetValueFromEditor(e){e.value=e.value.replace(/<div[^>]+data-jodit-page-break[^>]+>[^]*?<\/div>/gi,this.j.o.pageBreak.separator)}};c(f,"PageBreak");let o=f;o.requires=["license"],u([d([":change",":afterSetMode"]),h()],o.prototype,"onChange",null),u([d(":afterGetValueFromEditor")],o.prototype,"onAfterGetValueFromEditor",null),P.plugins.add("pageBreak",o);export{o as PageBreak};
@@ -7,6 +7,7 @@ import type { IJodit, IPlugin } from "jodit/esm/types/index";
7
7
  import "./config";
8
8
  import { Plugin } from "jodit/esm/core/plugin/index";
9
9
  export declare class pasteCode extends Plugin {
10
+ className(): string;
10
11
  /** @override */
11
12
  static requires: string[];
12
13
  /** @override */
@@ -1 +1 @@
1
- var j=Object.defineProperty;var u=(d,e)=>j(d,"name",{value:e,configurable:!0});var g,_=function(d,e,t,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(d,e,t,i);else for(var s=d.length-1;s>=0;s--)(n=d[s])&&(a=(o<3?n(a):o>3?n(e,t,a):n(e,t))||a);return o>3&&a&&Object.defineProperty(e,t,a),a};import"./config.js";import{IS_PROD as v}from"jodit/esm/core/constants.js";import{autobind as E,component as I,debounce as w,watch as p}from"jodit/esm/core/decorators/index.js";import{$$ as S,appendScriptAsync as y,attr as m,loadNext as P,loadNextStyle as D,refs as T,stripTags as x}from"jodit/esm/core/helpers/index.js";import{isBoolean as F}from"jodit/esm/core/helpers/checker/is-boolean.js";import{htmlspecialchars as H}from"jodit/esm/core/helpers/html/htmlspecialchars.js";import{Plugin as J}from"jodit/esm/core/plugin/index.js";import{Button as C,UIForm as O,UISelect as A,UITextArea as $}from"jodit/esm/core/ui/index.js";import{Dialog as q,Dom as l}from"jodit/esm/modules/index.js";import{JoditPro as N}from"../../jodit-pro.js";let r=(g=class extends J{constructor(){super(...arguments),this.buttons=[{name:"pasteCode",group:"clipboard"}],this.__highlightLibJSIsLoaded=!1,this.__loadLanguage=new Map,this.__initHighlightLibLoading=async e=>{const{globalHighlightLib:t,highlightLib:{css:i,js:o,langUrl:a,highlight:n,isLangLoaded:s,beforeLibLoad:c,afterLibLoad:h}}=this.j.o.pasteCode;return!this.__highlightLibJSIsLoaded&&!t&&(this.__highlightLibJSIsLoaded=Promise.resolve(c?.()).then(()=>L(this.async,Promise.allSettled([D(this.jodit,i).catch(()=>null),P(this.jodit,o).catch(()=>null)]))).then(()=>h?.())),F(this.__highlightLibJSIsLoaded)||await this.__highlightLibJSIsLoaded,e&&!s(e)&&!t&&(this.__loadLanguage.has(e)||(v||console.log("Load language",e,"for paste-code"),this.__loadLanguage.set(e,L(this.async,y(this.jodit,a(e)).catch(()=>null)))),await this.__loadLanguage.get(e)),{highlight:n}}}afterInit(e){e.registerCommand("pasteCode",()=>this.__openCodeEditDialog()),e.async.requestIdleCallback(()=>this.__initHighlightLibLoading())}__openCodeEditDialog(e,t,i){const o=this.j,a=this.__createForm(),{code:n,language:s}=T(a.container);e&&(s.value=e),t&&(n.value=t),o.async.requestIdleCallback(()=>{n.focus()}),o.s.save(),this.__createDialog(()=>{if(a.validate()){o.s.restore();const h=o.createInside.fromHTML(o.o.pasteCode.insertTemplate(o,s.value,n.value));if(i)l.replace(i,h,o.createInside,!1,!0);else{const b=o.s.current(),f=l.up(b,l.isBlock,o.editor);f&&!l.isCell(f)?l.after(f,h):o.s.insertNode(h)}this.__imdOnChange();return}return!1},()=>{o.s.restore()}).setContent(a.container).open(!0)}beforeDestruct(e){}__createForm(){const{jodit:e}=this;return new O(e,[new A(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new $(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}__createDialog(e,t){const i=new q({language:this.j.o.language});return i.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([C(i,"","Cancel","default").onAction(()=>{i.close(),t()}),C(i,"save","Save","primary").onAction(()=>{i.close(),e()})]),i}__onChange(){this.__imdOnChange()}__imdOnChange(){S("pre",this.j.editor).forEach(e=>{m(e,"contenteditable")||(m(e,"contenteditable",!1),this.__highlightCode(e).catch(()=>null))})}async __highlightCode(e){const t=this.__parseLanguage(e),{highlight:i}=await this.__initHighlightLibLoading(t);let o=e;e.firstElementChild===e.lastElementChild&&l.isTag(e.firstElementChild,"code")&&(o=e.firstElementChild),o.innerHTML=i(o.innerText,t)}onPreEdit(e){const t=l.isNode(e)&&l.isTag(e,"pre")?e:l.closest(e.target,"pre",this.j.editor);if(t){const i=this.__parseLanguage(t);this.__openCodeEditDialog(i,t.innerText,t)}}__parseLanguage(e){let t=null;const i=u(o=>o.classList.forEach(a=>{if(/language-/.test(a)){const n=/language-(.*)/.exec(a);n&&n[1]&&(t=n[1])}}),"getLang");return i(e),t==null&&e.firstElementChild===e.lastElementChild&&l.isTag(e.firstElementChild,"code")&&i(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")}onAfterGetValueFromEditor(e){const t=u((i,o,a,n,s,c)=>`${o.trim()}${n}${H(x(s,this.j.ed,new Set(["br"])))}${c}`,"strip");e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,t).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,t)}},u(g,"pasteCode"),g);r.requires=["license"],_([E],r.prototype,"__openCodeEditDialog",null),_([p(["?:change","?:afterInit"]),w()],r.prototype,"__onChange",null),_([p(["?:dblclick","?:editPreInPasteCode"])],r.prototype,"onPreEdit",null),_([p("?:afterGetValueFromEditor")],r.prototype,"onAfterGetValueFromEditor",null),r=_([I],r);function L(d,e){return d.promise((t,i)=>{e.then(t).catch(i)}).catch(()=>null)}u(L,"waitingPromise"),N.plugins.add("paste-code",r);export{r as pasteCode};
1
+ var j=Object.defineProperty;var u=(d,e)=>j(d,"name",{value:e,configurable:!0});var g,_=function(d,e,t,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(d,e,t,i);else for(var n=d.length-1;n>=0;n--)(s=d[n])&&(a=(o<3?s(a):o>3?s(e,t,a):s(e,t))||a);return o>3&&a&&Object.defineProperty(e,t,a),a};import"./config.js";import{IS_PROD as v}from"jodit/esm/core/constants.js";import{autobind as E,component as I,debounce as w,watch as p}from"jodit/esm/core/decorators/index.js";import{$$ as S,appendScriptAsync as y,attr as m,loadNext as P,loadNextStyle as D,refs as T,stripTags as x}from"jodit/esm/core/helpers/index.js";import{isBoolean as F}from"jodit/esm/core/helpers/checker/is-boolean.js";import{htmlspecialchars as H}from"jodit/esm/core/helpers/html/htmlspecialchars.js";import{Plugin as J}from"jodit/esm/core/plugin/index.js";import{Button as C,UIForm as O,UISelect as A,UITextArea as N}from"jodit/esm/core/ui/index.js";import{Dialog as $,Dom as l}from"jodit/esm/modules/index.js";import{JoditPro as q}from"../../jodit-pro.js";let r=(g=class extends J{constructor(){super(...arguments),this.buttons=[{name:"pasteCode",group:"clipboard"}],this.__highlightLibJSIsLoaded=!1,this.__loadLanguage=new Map,this.__initHighlightLibLoading=async e=>{const{globalHighlightLib:t,highlightLib:{css:i,js:o,langUrl:a,highlight:s,isLangLoaded:n,beforeLibLoad:c,afterLibLoad:h}}=this.j.o.pasteCode;return!this.__highlightLibJSIsLoaded&&!t&&(this.__highlightLibJSIsLoaded=Promise.resolve(c?.()).then(()=>L(this.async,Promise.allSettled([D(this.jodit,i).catch(()=>null),P(this.jodit,o).catch(()=>null)]))).then(()=>h?.())),F(this.__highlightLibJSIsLoaded)||await this.__highlightLibJSIsLoaded,e&&!n(e)&&!t&&(this.__loadLanguage.has(e)||(v||console.log("Load language",e,"for paste-code"),this.__loadLanguage.set(e,L(this.async,y(this.jodit,a(e)).catch(()=>null)))),await this.__loadLanguage.get(e)),{highlight:s}}}className(){return"pasteCode"}afterInit(e){e.registerCommand("pasteCode",()=>this.__openCodeEditDialog()),e.async.requestIdleCallback(()=>this.__initHighlightLibLoading())}__openCodeEditDialog(e,t,i){const o=this.j,a=this.__createForm(),{code:s,language:n}=T(a.container);e&&(n.value=e),t&&(s.value=t),o.async.requestIdleCallback(()=>{s.focus()}),o.s.save(),this.__createDialog(()=>{if(a.validate()){o.s.restore();const h=o.createInside.fromHTML(o.o.pasteCode.insertTemplate(o,n.value,s.value));if(i)l.replace(i,h,o.createInside,!1,!0);else{const b=o.s.current(),f=l.up(b,l.isBlock,o.editor);f&&!l.isCell(f)?l.after(f,h):o.s.insertNode(h)}this.__imdOnChange();return}return!1},()=>{o.s.restore()}).setContent(a.container).open(!0)}beforeDestruct(e){}__createForm(){const{jodit:e}=this;return new O(e,[new A(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new N(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}__createDialog(e,t){const i=new $({language:this.j.o.language});return i.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([C(i,"","Cancel","default").onAction(()=>{i.close(),t()}),C(i,"save","Save","primary").onAction(()=>{i.close(),e()})]),i}__onChange(){this.__imdOnChange()}__imdOnChange(){S("pre",this.j.editor).forEach(e=>{m(e,"contenteditable")||(m(e,"contenteditable",!1),this.__highlightCode(e).catch(()=>null))})}async __highlightCode(e){const t=this.__parseLanguage(e),{highlight:i}=await this.__initHighlightLibLoading(t);let o=e;e.firstElementChild===e.lastElementChild&&l.isTag(e.firstElementChild,"code")&&(o=e.firstElementChild),o.innerHTML=i(o.innerText,t)}onPreEdit(e){const t=l.isNode(e)&&l.isTag(e,"pre")?e:l.closest(e.target,"pre",this.j.editor);if(t){const i=this.__parseLanguage(t);this.__openCodeEditDialog(i,t.innerText,t)}}__parseLanguage(e){let t=null;const i=u(o=>o.classList.forEach(a=>{if(/language-/.test(a)){const s=/language-(.*)/.exec(a);s&&s[1]&&(t=s[1])}}),"getLang");return i(e),t==null&&e.firstElementChild===e.lastElementChild&&l.isTag(e.firstElementChild,"code")&&i(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")}onAfterGetValueFromEditor(e){const t=u((i,o,a,s,n,c)=>`${o.trim()}${s}${H(x(n,this.j.ed,new Set(["br"])))}${c}`,"strip");e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,t).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,t)}},u(g,"pasteCode"),g);r.requires=["license"],_([E],r.prototype,"__openCodeEditDialog",null),_([p(["?:change","?:afterInit"]),w()],r.prototype,"__onChange",null),_([p(["?:dblclick","?:editPreInPasteCode"])],r.prototype,"onPreEdit",null),_([p("?:afterGetValueFromEditor")],r.prototype,"onAfterGetValueFromEditor",null),r=_([I],r);function L(d,e){return d.promise((t,i)=>{e.then(t).catch(i)}).catch(()=>null)}u(L,"waitingPromise"),q.plugins.add("paste-code",r);export{r as pasteCode};
@@ -3,5 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { JElement } from "../element/element";
7
- export declare function cleanStyles(elm: JElement): JElement;
6
+ import type { IJElement } from "../interface";
7
+ export declare function cleanStyles(elm: IJElement): IJElement;
@@ -3,5 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { JElement } from "../element/index";
7
- export declare function clearAttributes(elm: JElement): null | JElement;
6
+ import type { IJElement } from "../interface";
7
+ export declare function clearAttributes(elm: IJElement): null | IJElement;
@@ -1 +1 @@
1
- var s=Object.defineProperty;var c=(t,o)=>s(t,"name",{value:o,configurable:!0});import{convertUnitToPx as p}from"../helpers/index.js";const v=c((t,{jodit:o})=>{if(!o.o.pasteFromWord.convertUnitsToPixel)return t;const{style:r}=t;return r.forEach(e=>{const n=r.get(e);n&&r.set(e,n.toString().replace(/\d+(\.\d+)?(pt|cm)/g,i=>p(i)+"px"))}),t},"convertStyleUnitToPixels");export{v as convertStyleUnitToPixels};
1
+ var s=Object.defineProperty;var c=(t,o)=>s(t,"name",{value:o,configurable:!0});import{convertUnitToPx as p}from"../helpers/helpers.js";const v=c((t,{jodit:o})=>{if(!o.o.pasteFromWord.convertUnitsToPixel)return t;const{style:r}=t;return r.forEach(e=>{const n=r.get(e);n&&r.set(e,n.toString().replace(/\d+(\.\d+)?(pt|cm)/g,i=>p(i)+"px"))}),t},"convertStyleUnitToPixels");export{v as convertStyleUnitToPixels};
@@ -3,9 +3,9 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { JElement } from "../element/element";
7
- export declare function convertToList(elm: JElement): JElement | null;
6
+ import type { IJElement } from "../interface";
7
+ export declare function convertToList(elm: IJElement): IJElement | null;
8
8
  /**
9
9
  * Remove redundancy default list styles.
10
10
  */
11
- export declare function removeRedundancyStyle(newList: JElement): void;
11
+ export declare function removeRedundancyStyle(newList: IJElement): void;
@@ -1 +1 @@
1
- var l=Object.defineProperty;var n=(t,e)=>l(t,"name",{value:e,configurable:!0});import{SPACE_REG_EXP as S}from"jodit/esm/core/constants.js";import{LEVEL_KEY as s,listStyleMap as E,STYLE_CSS_KEY as u,STYLE_KEY as p,STYLE_VALID_KEY as v,TYPE_KEY as L}from"../constants.js";import{html as y,isLeaf as f,isList as b,isPseudoLeaf as m,isSameType as c}from"../element/index.js";import{calcListLevels as _,calcStartBySymbol as Y}from"../helpers/index.js";function h(t){var e;if(m(t)){t.name="li",t.style.set("text-indent",null);const i=x(t),o=/[\da-np-zA-NP-Z].?/.test(i)?"ol":"ul",r=k(i,o);t.attributes[L]=o,t.attributes[p]=r,_(t),T(t);const{parent:a}=t;if(!b(a)||!c(t,a)){const d=K(t,o,i,r);return b(a)&&(d.remove(),(e=a.lastElement)===null||e===void 0||e.append(d)),t}}return t}n(h,"convertToList");function T(t){for(;t;){const e=t.previousElement;if(!(f(e)||b(e)))break;if(f(e)){if(t.attributes[s]<e.attributes[s]||t.attributes[s]===e.attributes[s]&&t.parent&&c(t,t.parent))break;e.append(t);continue}const i=e;if(t.attributes[s]<i.attributes[s]||t.attributes[s]===i.attributes[s]&&!c(t,i))break;i.append(t)}}n(T,"moveUp");function g(t){var e;b(t)&&((e=t.parent)===null||e===void 0?void 0:e.name)!=="li"&&(t.style.get(u)==="disc"||t.style.get(u)==="decimal")&&t.style.set(u,null)}n(g,"removeRedundancyStyle");function k(t,e){for(const i in E)if(RegExp(i).test(t))return E[i];return e==="ol"?"decimal":"disc"}n(k,"defineOrderedListStyle");const x=n(t=>t.textBetween(e=>e.isComment&&/\[if.*supportLists.*]/.test(y(e)),e=>e.isComment&&/\[endif]/.test(y(e))).replace(/&nbsp;/g,"").replace(S(),""),"getSymbol");function K(t,e,i,o){const r=t.wrap(e);return r.attributes.start=Y(i),r.attributes[s]=t.attributes[s],r.attributes[p]=t.attributes[p],r.attributes[v]=t.attributes[p],r.style.set(u,o),g(r),r}n(K,"wrapInNewList");export{h as convertToList,g as removeRedundancyStyle};
1
+ var l=Object.defineProperty;var n=(t,e)=>l(t,"name",{value:e,configurable:!0});import{SPACE_REG_EXP as S}from"jodit/esm/core/constants.js";import{LEVEL_KEY as s,listStyleMap as E,STYLE_CSS_KEY as u,STYLE_KEY as p,STYLE_VALID_KEY as m,TYPE_KEY as v}from"../constants.js";import{html as f,isLeaf as y,isList as b,isPseudoLeaf as L,isSameType as c}from"../element/index.js";import{calcListLevels as _}from"../helpers/calc-list-levels.js";import{calcStartBySymbol as Y}from"../helpers/helpers.js";function B(t){var e;if(L(t)){t.name="li",t.style.set("text-indent",null);const i=x(t),o=/[\da-np-zA-NP-Z].?/.test(i)?"ol":"ul",r=k(i,o);t.attributes[v]=o,t.attributes[p]=r,_(t),T(t);const{parent:a}=t;if(!b(a)||!c(t,a)){const d=K(t,o,i,r);return b(a)&&(d.remove(),(e=a.lastElement)===null||e===void 0||e.append(d)),t}}return t}n(B,"convertToList");function T(t){for(;t;){const e=t.previousElement;if(!(y(e)||b(e)))break;if(y(e)){if(t.attributes[s]<e.attributes[s]||t.attributes[s]===e.attributes[s]&&t.parent&&c(t,t.parent))break;e.append(t);continue}const i=e;if(t.attributes[s]<i.attributes[s]||t.attributes[s]===i.attributes[s]&&!c(t,i))break;i.append(t)}}n(T,"moveUp");function g(t){var e;b(t)&&((e=t.parent)===null||e===void 0?void 0:e.name)!=="li"&&(t.style.get(u)==="disc"||t.style.get(u)==="decimal")&&t.style.set(u,null)}n(g,"removeRedundancyStyle");function k(t,e){for(const i in E)if(RegExp(i).test(t))return E[i];return e==="ol"?"decimal":"disc"}n(k,"defineOrderedListStyle");const x=n(t=>t.textBetween(e=>e.isComment&&/\[if.*supportLists.*]/.test(f(e)),e=>e.isComment&&/\[endif]/.test(f(e))).replace(/&nbsp;/g,"").replace(S(),""),"getSymbol");function K(t,e,i,o){const r=t.wrap(e);return r.attributes.start=Y(i),r.attributes[s]=t.attributes[s],r.attributes[p]=t.attributes[p],r.attributes[m]=t.attributes[p],r.style.set(u,o),g(r),r}n(K,"wrapInNewList");export{B as convertToList,g as removeRedundancyStyle};
@@ -3,5 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { JElement } from "../element/element";
7
- export declare function removeExtraTags(elm: JElement): JElement | null;
6
+ import type { IJElement } from "../interface";
7
+ export declare function removeExtraTags(elm: IJElement): IJElement | null;
@@ -3,5 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { JElement } from "../element/element";
7
- export declare function removeInsideComment(elm: JElement): JElement | null;
6
+ import type { IJElement } from "../interface";
7
+ export declare function removeInsideComment(elm: IJElement): IJElement | null;
@@ -3,5 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { JElement } from "../element/element";
7
- export declare function replaceOldTags(elm: JElement): JElement;
6
+ import type { IJElement } from "../interface";
7
+ export declare function replaceOldTags(elm: IJElement): IJElement;
@@ -3,12 +3,12 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { JElement } from "./element";
7
- export declare function isList(elm: JElement | null): elm is JElement & {
6
+ import type { IJElement } from "../interface";
7
+ export declare function isList(elm: IJElement | null): elm is IJElement & {
8
8
  name: 'ul' | 'ol';
9
9
  };
10
- export declare function isLeaf(elm: JElement | null): elm is JElement & {
10
+ export declare function isLeaf(elm: IJElement | null): elm is IJElement & {
11
11
  name: 'li';
12
12
  };
13
- export declare function isPseudoLeaf(elm: JElement): boolean;
14
- export declare function isSameType(leaf: JElement, list: JElement): boolean;
13
+ export declare function isPseudoLeaf(elm: IJElement): boolean;
14
+ export declare function isSameType(leaf: IJElement, list: IJElement): boolean;
@@ -4,8 +4,9 @@
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
6
  import type { IDictionary } from "jodit/esm/types/index";
7
+ import type { IJElement } from "../interface";
7
8
  import { Style } from "./style";
8
- export declare class JElement {
9
+ export declare class JElement implements IJElement {
9
10
  parent: JElement | null;
10
11
  name: string;
11
12
  readonly type: number;
@@ -1 +1 @@
1
- var o=Object.defineProperty;var h=(s,t)=>o(s,"name",{value:t,configurable:!0});import{html as p}from"./render.js";import{Style as d}from"./style.js";import{INSEPARABLE_TAGS as f}from"jodit/esm/core/constants.js";import{Dom as c}from"jodit/esm/core/dom/index.js";import{assert as u}from"jodit/esm/core/helpers/utils/assert.js";const m=new Set(f),n=class n{get isText(){return this.type===Node.TEXT_NODE}get isElement(){return this.type===Node.ELEMENT_NODE}get isComment(){return this.type===Node.COMMENT_NODE}get isSingle(){return m.has(this.name)}get length(){return this.children.length}constructor(t,e){this.parent=e,this.name=t.nodeName.toLowerCase(),this.type=t.nodeType,this.attributes=v(t),this.style=new d(this.attributes.style),this.children=[],t.childNodes.forEach(r=>this.children.push(n.make(r,this)))}static make(t,e=null){return new n(t,e)}wrap(t){var e;u(this.parent!=null,"You can't wrap the root element");const r=n.make(document.createElement(t),this.parent),i=(e=this.parent.children.indexOf(this))!==null&&e!==void 0?e:-1;return i===-1?this.parent.append(r):this.parent.children[i]=r,r.append(this),r}append(t){return u(t!==this,"Forbidden to add to yourself"),t.remove(),this.children.push(t),t.parent=this,this}get previousElement(){if(!this.parent)return null;const{children:t}=this.parent,e=t.indexOf(this);if(e!==-1){for(let r=e-1;r>=0;r-=1)if(t[r].isElement)return t[r]}return null}get lastElement(){const{children:t}=this;for(let e=t.length-1;e>=0;e-=1)if(t[e].isElement)return t[e];return null}get previous(){var t,e,r;return(r=(t=this.sibling(!1))!==null&&t!==void 0?t:(e=this.parent)===null||e===void 0?void 0:e.previous)!==null&&r!==void 0?r:null}get next(){var t,e,r;return(r=(t=this.sibling(!0))!==null&&t!==void 0?t:(e=this.parent)===null||e===void 0?void 0:e.next)!==null&&r!==void 0?r:null}sibling(t){if(!this.parent)return null;const{children:e}=this.parent,r=e.indexOf(this);return r!==-1&&e[r+(t?1:-1)]?e[r+(t?1:-1)]:null}forEach(t,e=!1){const r=[...this.children];for(const i of r)if(t(i)===!1||e&&i.forEach(t,!0)===!1)return!1}find(t,e=!0){const r=[];return this.forEach(i=>{t(i)&&r.push(i)},e),r}map(t){return this.children.map(t)}remove(){var t,e;const r=(t=this.parent)===null||t===void 0?void 0:t.children.indexOf(this);return r!=null&&r!==-1&&((e=this.parent)===null||e===void 0||e.children.splice(r,1)),this}textBetween(t,e){let r=!1;const i=[];return this.forEach(l=>{if(!r&&t(l)&&(r=!0),r&&l.isText&&i.push(p(l)),r&&e(l))return!1},!0),i.join("")}};h(n,"JElement");let a=n;function v(s){const t={};if(c.isElement(s))for(let e=0,r=s.attributes;e<r.length;e+=1)t[r[e].name]=r[e].value;else t.nodeValue=s.nodeValue;return t}h(v,"readAttributes");export{a as JElement};
1
+ var o=Object.defineProperty;var h=(s,t)=>o(s,"name",{value:t,configurable:!0});import{html as p}from"./render.js";import{Style as d}from"./style.js";import{INSEPARABLE_TAGS as f}from"jodit/esm/core/constants.js";import{Dom as c}from"jodit/esm/core/dom/dom.js";import{assert as u}from"jodit/esm/core/helpers/utils/assert.js";const m=new Set(f),n=class n{get isText(){return this.type===Node.TEXT_NODE}get isElement(){return this.type===Node.ELEMENT_NODE}get isComment(){return this.type===Node.COMMENT_NODE}get isSingle(){return m.has(this.name)}get length(){return this.children.length}constructor(t,e){this.parent=e,this.name=t.nodeName.toLowerCase(),this.type=t.nodeType,this.attributes=v(t),this.style=new d(this.attributes.style),this.children=[],t.childNodes.forEach(r=>this.children.push(n.make(r,this)))}static make(t,e=null){return new n(t,e)}wrap(t){var e;u(this.parent!=null,"You can't wrap the root element");const r=n.make(document.createElement(t),this.parent),i=(e=this.parent.children.indexOf(this))!==null&&e!==void 0?e:-1;return i===-1?this.parent.append(r):this.parent.children[i]=r,r.append(this),r}append(t){return u(t!==this,"Forbidden to add to yourself"),t.remove(),this.children.push(t),t.parent=this,this}get previousElement(){if(!this.parent)return null;const{children:t}=this.parent,e=t.indexOf(this);if(e!==-1){for(let r=e-1;r>=0;r-=1)if(t[r].isElement)return t[r]}return null}get lastElement(){const{children:t}=this;for(let e=t.length-1;e>=0;e-=1)if(t[e].isElement)return t[e];return null}get previous(){var t,e,r;return(r=(t=this.sibling(!1))!==null&&t!==void 0?t:(e=this.parent)===null||e===void 0?void 0:e.previous)!==null&&r!==void 0?r:null}get next(){var t,e,r;return(r=(t=this.sibling(!0))!==null&&t!==void 0?t:(e=this.parent)===null||e===void 0?void 0:e.next)!==null&&r!==void 0?r:null}sibling(t){if(!this.parent)return null;const{children:e}=this.parent,r=e.indexOf(this);return r!==-1&&e[r+(t?1:-1)]?e[r+(t?1:-1)]:null}forEach(t,e=!1){const r=[...this.children];for(const i of r)if(t(i)===!1||e&&i.forEach(t,!0)===!1)return!1}find(t,e=!0){const r=[];return this.forEach(i=>{t(i)&&r.push(i)},e),r}map(t){return this.children.map(t)}remove(){var t,e;const r=(t=this.parent)===null||t===void 0?void 0:t.children.indexOf(this);return r!=null&&r!==-1&&((e=this.parent)===null||e===void 0||e.children.splice(r,1)),this}textBetween(t,e){let r=!1;const i=[];return this.forEach(l=>{if(!r&&t(l)&&(r=!0),r&&l.isText&&i.push(p(l)),r&&e(l))return!1},!0),i.join("")}};h(n,"JElement");let a=n;function v(s){const t={};if(c.isElement(s))for(let e=0,r=s.attributes;e<r.length;e+=1)t[r[e].name]=r[e].value;else t.nodeValue=s.nodeValue;return t}h(v,"readAttributes");export{a as JElement};
@@ -3,7 +3,7 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { JElement } from "./element";
6
+ import type { IJElement } from "../interface";
7
7
  import type { RenderFilter } from "../interface";
8
- export declare function html(elm: JElement, filter?: RenderFilter, removeEmpty?: boolean, allowedStyleProps?: string[]): string;
9
- export declare function innerHTML(elm: JElement, filter?: RenderFilter, removeEmpty?: boolean, allowedStyleProps?: string[]): string;
8
+ export declare function html(elm: IJElement, filter?: RenderFilter, removeEmpty?: boolean, allowedStyleProps?: string[]): string;
9
+ export declare function innerHTML(elm: IJElement, filter?: RenderFilter, removeEmpty?: boolean, allowedStyleProps?: string[]): string;
@@ -1 +1 @@
1
- var b=Object.defineProperty;var c=(i,t)=>b(i,"name",{value:t,configurable:!0});var a=function(i,t,e,r){var n=arguments.length,o=n<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,r);else for(var f=i.length-1;f>=0;f--)(u=i[f])&&(o=(n<3?u(o):n>3?u(t,e,o):u(t,e))||o);return n>3&&o&&Object.defineProperty(t,e,o),o};import{autobind as l}from"jodit/esm/core/decorators/index.js";import{isString as O,kebabCase as x,trim as m}from"jodit/esm/core/helpers/index.js";import{calcMarginParts as $}from"../helpers/index.js";const h=class h{constructor(t){this._data=_(t)}get keys(){return Object.keys(this._data)}forEach(t){this.keys.forEach(e=>t(e))}clear(){this._data={}}set(t,e){this._data[t]=e}get(t){var e;return(e=this._data[t])!==null&&e!==void 0?e:null}has(t){return this._data[t]!==void 0}add(t,e){return this._data=_(this.str()+`;${t}:${e}`),this}str(t=e=>!0){const e=Object.keys(this._data).filter(n=>n&&!/^mso-/.test(n)&&t(n)&&this.get(n)!=null),r=c(n=>O(n)?/^0[a-z]+$/i.test(n)?"0":n:n.toString(),"n");return["padding","margin"].forEach(n=>{if(this._data[n]){const o=e.indexOf(n),u=$(this._data[n]);["top","right","bottom","left"].forEach((f,g)=>{const p=`${n}-${f}`,d=this._data[p];d!=null&&(e.indexOf(p)<o||r(u[g])===r(d))&&e.indexOf(p)!==-1&&e.splice(e.indexOf(p),1)})}}),e.length?e.map(n=>`${x(n)}:${this.get(n)}`).join(";"):""}};c(h,"Style");let s=h;a([l],s.prototype,"forEach",null),a([l],s.prototype,"clear",null),a([l],s.prototype,"set",null),a([l],s.prototype,"get",null),a([l],s.prototype,"has",null),a([l],s.prototype,"add",null),a([l],s.prototype,"str",null);function _(i){return j((i??"").replace(/&quot;/g,'"').split(";").filter(Boolean).map(t=>m(t).split(":").map(m))).reduce((t,[e,r])=>(e&&r&&(t[e]=r),t),{})}c(_,"readStyles");function j(i){const t={},e=[];for(let r=i.length-1;r>=0;r-=1){const n=i[r][0];t[n]||(t[n]=!0,e.unshift(i[r]))}return e}c(j,"uniqueMax");export{s as Style};
1
+ var b=Object.defineProperty;var c=(i,t)=>b(i,"name",{value:t,configurable:!0});var a=function(i,t,r,n){var e=arguments.length,o=e<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,r,n);else for(var f=i.length-1;f>=0;f--)(u=i[f])&&(o=(e<3?u(o):e>3?u(t,r,o):u(t,r))||o);return e>3&&o&&Object.defineProperty(t,r,o),o};import{autobind as l}from"jodit/esm/core/decorators/autobind/autobind.js";import{isString as O}from"jodit/esm/core/helpers/checker/is-string.js";import{kebabCase as x}from"jodit/esm/core/helpers/string/kebab-case.js";import{trim as m}from"jodit/esm/core/helpers/string/trim.js";import{calcMarginParts as $}from"../helpers/helpers.js";const h=class h{constructor(t){this._data=_(t)}get keys(){return Object.keys(this._data)}forEach(t){this.keys.forEach(r=>t(r))}clear(){this._data={}}set(t,r){this._data[t]=r}get(t){var r;return(r=this._data[t])!==null&&r!==void 0?r:null}has(t){return this._data[t]!==void 0}add(t,r){return this._data=_(this.str()+`;${t}:${r}`),this}str(t=r=>!0){const r=Object.keys(this._data).filter(e=>e&&!/^mso-/.test(e)&&t(e)&&this.get(e)!=null),n=c(e=>O(e)?/^0[a-z]+$/i.test(e)?"0":e:e.toString(),"n");return["padding","margin"].forEach(e=>{if(this._data[e]){const o=r.indexOf(e),u=$(this._data[e]);["top","right","bottom","left"].forEach((f,g)=>{const p=`${e}-${f}`,d=this._data[p];d!=null&&(r.indexOf(p)<o||n(u[g])===n(d))&&r.indexOf(p)!==-1&&r.splice(r.indexOf(p),1)})}}),r.length?r.map(e=>`${x(e)}:${this.get(e)}`).join(";"):""}};c(h,"Style");let s=h;a([l],s.prototype,"forEach",null),a([l],s.prototype,"clear",null),a([l],s.prototype,"set",null),a([l],s.prototype,"get",null),a([l],s.prototype,"has",null),a([l],s.prototype,"add",null),a([l],s.prototype,"str",null);function _(i){return j((i??"").replace(/&quot;/g,'"').split(";").filter(Boolean).map(t=>m(t).split(":").map(m))).reduce((t,[r,n])=>(r&&n&&(t[r]=n),t),{})}c(_,"readStyles");function j(i){const t={},r=[];for(let n=i.length-1;n>=0;n-=1){const e=i[n][0];t[e]||(t[e]=!0,r.unshift(i[n]))}return r}c(j,"uniqueMax");export{s as Style};
@@ -1 +1 @@
1
- var $=Object.defineProperty;var a=(y,n)=>$(y,"name",{value:n,configurable:!0});import{transformWordToHtml as h}from"./transform-word-to-html.js";import{Dom as b}from"jodit/esm/core/dom/dom.js";import{$$ as u,attr as e}from"jodit/esm/core/helpers/utils/index.js";import{JElement as v}from"../element/index.js";function g(y,n,m,p=""){var d,f;const s=document.createElement("iframe");s.style.display="none",document.body.appendChild(s);try{const t=(d=s.contentDocument)!==null&&d!==void 0?d:(f=s.contentWindow)===null||f===void 0?void 0:f.document;if(!t)return n;t.open(),t.write(n),t.close();const i="jd-style";for(let o=0;o<t.styleSheets.length;o+=1)try{const l=t.styleSheets[o].cssRules;for(let c=0;c<l.length;c+=1)l[c].selectorText&&u(l[c].selectorText,t.body).forEach(r=>{e(r,i)||(e(r,i,e(r,"style")||""),e(r,"style","")),e(r,"style",`${e(r,"style")};${l[c].style.cssText}`)})}catch{}return u(`[${i}]`,t.body).forEach(o=>{e(o,"style",`${e(o,"style")};${e(o,i)}`)}),h(y,v.make(t.body),m,p)}finally{b.safeRemove(s)}return n}a(g,"applyStylesPro");export{g as applyStylesPro};
1
+ var $=Object.defineProperty;var a=(y,n)=>$(y,"name",{value:n,configurable:!0});import{transformWordToHtml as h}from"./transform-word-to-html.js";import{Dom as b}from"jodit/esm/core/dom/dom.js";import{attr as e}from"jodit/esm/core/helpers/utils/attr.js";import{$$ as m}from"jodit/esm/core/helpers/utils/selector.js";import{JElement as v}from"../element/index.js";function w(y,n,u,p=""){var d,f;const s=document.createElement("iframe");s.style.display="none",document.body.appendChild(s);try{const t=(d=s.contentDocument)!==null&&d!==void 0?d:(f=s.contentWindow)===null||f===void 0?void 0:f.document;if(!t)return n;t.open(),t.write(n),t.close();const i="jd-style";for(let o=0;o<t.styleSheets.length;o+=1)try{const l=t.styleSheets[o].cssRules;for(let c=0;c<l.length;c+=1)l[c].selectorText&&m(l[c].selectorText,t.body).forEach(r=>{e(r,i)||(e(r,i,e(r,"style")||""),e(r,"style","")),e(r,"style",`${e(r,"style")};${l[c].style.cssText}`)})}catch{}return m(`[${i}]`,t.body).forEach(o=>{e(o,"style",`${e(o,"style")};${e(o,i)}`)}),h(y,v.make(t.body),u,p)}finally{b.safeRemove(s)}return n}a(w,"applyStylesPro");export{w as applyStylesPro};
@@ -3,5 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import { JElement } from "../element/index";
7
- export declare function calcListLevels(item: JElement): void;
6
+ import type { IJElement } from "../interface";
7
+ export declare function calcListLevels(item: IJElement): void;
@@ -1 +1 @@
1
- var d=Object.defineProperty;var o=(n,i)=>d(n,"name",{value:i,configurable:!0});import{realPixelIndent as a}from"./helpers.js";import{LEVEL_KEY as l}from"../constants.js";import{isPseudoLeaf as p}from"../element/index.js";function L(n){if(n.attributes[l]!==void 0)return;const i=[a(n)],f=[n];let e=n.next;for(;e;){if(e.isElement&&!e.attributes[l]&&p(e)){const t=a(e);t&&(i.push(t),f.push(e))}e=e.next}const m=Math.min(...i.filter(t=>t>0));let s=i.map(t=>Math.ceil(t/10));s.indexOf(0)!==-1&&(s=s.map(t=>t+1)),f.forEach((t,r)=>{t.attributes[l]=s[r],t.style.add("margin-left",`${Math.max(a(t)-s[r]*10/m*40,0)}px`)})}o(L,"calcListLevels");export{L as calcListLevels};
1
+ var m=Object.defineProperty;var r=(n,i)=>m(n,"name",{value:i,configurable:!0});import{realPixelIndent as a}from"./helpers.js";import{LEVEL_KEY as f}from"../constants.js";import{isPseudoLeaf as p}from"../element/index.js";function E(n){if(n.attributes[f]!==void 0)return;const i=[a(n)],l=[n];let e=n.next;for(;e;){if(e.isElement&&!e.attributes[f]&&p(e)){const t=a(e);t&&(i.push(t),l.push(e))}e=e.next}const d=Math.min(...i.filter(t=>t>0));let s=i.map(t=>Math.ceil(t/10));s.indexOf(0)!==-1&&(s=s.map(t=>t+1)),l.forEach((t,o)=>{t.attributes[f]=s[o],t.style.add("margin-left",`${Math.max(a(t)-s[o]*10/d*40,0)}px`)})}r(E,"calcListLevels");export{E as calcListLevels};
@@ -4,7 +4,7 @@
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
6
  import type { Nullable } from "jodit/esm/types/index";
7
- import type { JElement } from "../element/index";
7
+ import type { IJElement } from "../interface";
8
8
  export declare function calcMarginParts(margin: string): number[] | string[];
9
9
  /**
10
10
  * Convert css units to pixels, excluding percentages
@@ -15,5 +15,5 @@ export declare function calcMarginParts(margin: string): number[] | string[];
15
15
  * ```
16
16
  */
17
17
  export declare function convertUnitToPx(unit: string | number): number;
18
- export declare function realPixelIndent(element: JElement): number;
18
+ export declare function realPixelIndent(element: IJElement): number;
19
19
  export declare function calcStartBySymbol(symbol: string): Nullable<string>;
@@ -4,5 +4,5 @@
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
6
  import type { IJodit } from "jodit/esm/types/index";
7
- import type { JElement } from "../element/index";
8
- export declare function transformWordToHtml(jodit: IJodit, body: JElement, removeStyles: boolean, rtf: string): string;
7
+ import type { IJElement } from "../interface";
8
+ export declare function transformWordToHtml(jodit: IJodit, body: IJElement, removeStyles: boolean, rtf: string): string;