jodit-pro 4.2.5 → 4.2.9

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 (637) hide show
  1. package/es2015/jodit.css +1 -1
  2. package/es2015/jodit.fat.min.js +2 -2
  3. package/es2015/jodit.js +116 -97
  4. package/es2015/jodit.min.js +2 -2
  5. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  6. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  7. package/es2015/plugins/backup/backup.css +1 -1
  8. package/es2015/plugins/backup/backup.js +1 -1
  9. package/es2015/plugins/backup/backup.min.js +1 -1
  10. package/es2015/plugins/button-generator/button-generator.css +1 -1
  11. package/es2015/plugins/button-generator/button-generator.js +1 -1
  12. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  13. package/es2015/plugins/change-case/change-case.js +1 -1
  14. package/es2015/plugins/change-case/change-case.min.js +1 -1
  15. package/es2015/plugins/color-picker/color-picker.css +1 -1
  16. package/es2015/plugins/color-picker/color-picker.js +1 -1
  17. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  18. package/es2015/plugins/emoji/emoji.css +1 -1
  19. package/es2015/plugins/emoji/emoji.js +1 -1
  20. package/es2015/plugins/emoji/emoji.min.js +1 -1
  21. package/es2015/plugins/export-docs/export-docs.js +1 -1
  22. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  23. package/es2015/plugins/finder/finder.css +1 -1
  24. package/es2015/plugins/finder/finder.js +1 -1
  25. package/es2015/plugins/finder/finder.min.js +1 -1
  26. package/es2015/plugins/google-maps/google-maps.css +1 -1
  27. package/es2015/plugins/google-maps/google-maps.js +1 -1
  28. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  29. package/es2015/plugins/google-search/google-search.js +1 -1
  30. package/es2015/plugins/google-search/google-search.min.js +1 -1
  31. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  32. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  33. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  34. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  35. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  36. package/es2015/plugins/keyboard/keyboard.css +1 -1
  37. package/es2015/plugins/keyboard/keyboard.js +1 -1
  38. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  39. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  40. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  41. package/es2015/plugins/page-break/page-break.js +1 -1
  42. package/es2015/plugins/page-break/page-break.min.js +1 -1
  43. package/es2015/plugins/paste-code/paste-code.css +1 -1
  44. package/es2015/plugins/paste-code/paste-code.js +1 -1
  45. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  46. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  47. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  48. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  49. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  50. package/es2015/plugins/todo-list/todo-list.css +1 -1
  51. package/es2015/plugins/todo-list/todo-list.js +1 -1
  52. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  53. package/es2015/plugins/translate/translate.css +1 -1
  54. package/es2015/plugins/translate/translate.js +1 -1
  55. package/es2015/plugins/translate/translate.min.js +1 -1
  56. package/es2015/plugins/tune-block/tune-block.css +1 -1
  57. package/es2015/plugins/tune-block/tune-block.js +1 -1
  58. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  59. package/es2018/jodit.css +1 -1
  60. package/es2018/jodit.fat.min.js +2 -2
  61. package/es2018/jodit.js +116 -97
  62. package/es2018/jodit.min.js +2 -2
  63. package/es2018/plugins/autocomplete/autocomplete.js +1 -1
  64. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  65. package/es2018/plugins/backup/backup.css +1 -1
  66. package/es2018/plugins/backup/backup.js +1 -1
  67. package/es2018/plugins/backup/backup.min.js +1 -1
  68. package/es2018/plugins/button-generator/button-generator.css +1 -1
  69. package/es2018/plugins/button-generator/button-generator.js +1 -1
  70. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  71. package/es2018/plugins/change-case/change-case.js +1 -1
  72. package/es2018/plugins/change-case/change-case.min.js +1 -1
  73. package/es2018/plugins/color-picker/color-picker.css +1 -1
  74. package/es2018/plugins/color-picker/color-picker.js +1 -1
  75. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  76. package/es2018/plugins/emoji/emoji.css +1 -1
  77. package/es2018/plugins/emoji/emoji.js +1 -1
  78. package/es2018/plugins/emoji/emoji.min.js +1 -1
  79. package/es2018/plugins/export-docs/export-docs.js +1 -1
  80. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  81. package/es2018/plugins/finder/finder.css +1 -1
  82. package/es2018/plugins/finder/finder.js +1 -1
  83. package/es2018/plugins/finder/finder.min.js +1 -1
  84. package/es2018/plugins/google-maps/google-maps.css +1 -1
  85. package/es2018/plugins/google-maps/google-maps.js +1 -1
  86. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  87. package/es2018/plugins/google-search/google-search.js +1 -1
  88. package/es2018/plugins/google-search/google-search.min.js +1 -1
  89. package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
  90. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  91. package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
  92. package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
  93. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  94. package/es2018/plugins/keyboard/keyboard.css +1 -1
  95. package/es2018/plugins/keyboard/keyboard.js +1 -1
  96. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  97. package/es2018/plugins/mobile-view/mobile-view.js +1 -1
  98. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  99. package/es2018/plugins/page-break/page-break.js +1 -1
  100. package/es2018/plugins/page-break/page-break.min.js +1 -1
  101. package/es2018/plugins/paste-code/paste-code.css +1 -1
  102. package/es2018/plugins/paste-code/paste-code.js +1 -1
  103. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  104. package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
  105. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  106. package/es2018/plugins/show-blocks/show-blocks.js +1 -1
  107. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  108. package/es2018/plugins/todo-list/todo-list.css +1 -1
  109. package/es2018/plugins/todo-list/todo-list.js +1 -1
  110. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  111. package/es2018/plugins/translate/translate.css +1 -1
  112. package/es2018/plugins/translate/translate.js +1 -1
  113. package/es2018/plugins/translate/translate.min.js +1 -1
  114. package/es2018/plugins/tune-block/tune-block.css +1 -1
  115. package/es2018/plugins/tune-block/tune-block.js +1 -1
  116. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  117. package/es2021/jodit.css +1 -1
  118. package/es2021/jodit.fat.min.js +2 -2
  119. package/es2021/jodit.js +116 -97
  120. package/es2021/jodit.min.js +2 -2
  121. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  122. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  123. package/es2021/plugins/backup/backup.css +1 -1
  124. package/es2021/plugins/backup/backup.js +1 -1
  125. package/es2021/plugins/backup/backup.min.js +1 -1
  126. package/es2021/plugins/button-generator/button-generator.css +1 -1
  127. package/es2021/plugins/button-generator/button-generator.js +1 -1
  128. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  129. package/es2021/plugins/change-case/change-case.js +1 -1
  130. package/es2021/plugins/change-case/change-case.min.js +1 -1
  131. package/es2021/plugins/color-picker/color-picker.css +1 -1
  132. package/es2021/plugins/color-picker/color-picker.js +1 -1
  133. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  134. package/es2021/plugins/emoji/emoji.css +1 -1
  135. package/es2021/plugins/emoji/emoji.js +1 -1
  136. package/es2021/plugins/emoji/emoji.min.js +1 -1
  137. package/es2021/plugins/export-docs/export-docs.js +1 -1
  138. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  139. package/es2021/plugins/finder/finder.css +1 -1
  140. package/es2021/plugins/finder/finder.js +1 -1
  141. package/es2021/plugins/finder/finder.min.js +1 -1
  142. package/es2021/plugins/google-maps/google-maps.css +1 -1
  143. package/es2021/plugins/google-maps/google-maps.js +1 -1
  144. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  145. package/es2021/plugins/google-search/google-search.js +1 -1
  146. package/es2021/plugins/google-search/google-search.min.js +1 -1
  147. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  148. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  149. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  150. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  151. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  152. package/es2021/plugins/keyboard/keyboard.css +1 -1
  153. package/es2021/plugins/keyboard/keyboard.js +1 -1
  154. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  155. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  156. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  157. package/es2021/plugins/page-break/page-break.js +1 -1
  158. package/es2021/plugins/page-break/page-break.min.js +1 -1
  159. package/es2021/plugins/paste-code/paste-code.css +1 -1
  160. package/es2021/plugins/paste-code/paste-code.js +1 -1
  161. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  162. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  163. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  164. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  165. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  166. package/es2021/plugins/todo-list/todo-list.css +1 -1
  167. package/es2021/plugins/todo-list/todo-list.js +1 -1
  168. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  169. package/es2021/plugins/translate/translate.css +1 -1
  170. package/es2021/plugins/translate/translate.js +1 -1
  171. package/es2021/plugins/translate/translate.min.js +1 -1
  172. package/es2021/plugins/tune-block/tune-block.css +1 -1
  173. package/es2021/plugins/tune-block/tune-block.js +1 -1
  174. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  175. package/es2021.en/jodit.css +1 -1
  176. package/es2021.en/jodit.fat.min.js +2 -2
  177. package/es2021.en/jodit.js +116 -97
  178. package/es2021.en/jodit.min.js +2 -2
  179. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  180. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  181. package/es2021.en/plugins/backup/backup.css +1 -1
  182. package/es2021.en/plugins/backup/backup.js +1 -1
  183. package/es2021.en/plugins/backup/backup.min.js +1 -1
  184. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  185. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  186. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  187. package/es2021.en/plugins/change-case/change-case.js +1 -1
  188. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  189. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  190. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  191. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  192. package/es2021.en/plugins/emoji/emoji.css +1 -1
  193. package/es2021.en/plugins/emoji/emoji.js +1 -1
  194. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  195. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  196. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  197. package/es2021.en/plugins/finder/finder.css +1 -1
  198. package/es2021.en/plugins/finder/finder.js +1 -1
  199. package/es2021.en/plugins/finder/finder.min.js +1 -1
  200. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  201. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  202. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  203. package/es2021.en/plugins/google-search/google-search.js +1 -1
  204. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  205. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  206. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  207. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  208. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  209. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  210. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  211. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  212. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  213. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  214. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  215. package/es2021.en/plugins/page-break/page-break.js +1 -1
  216. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  217. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  218. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  219. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  220. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  221. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  222. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  223. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  224. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  225. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  226. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  227. package/es2021.en/plugins/translate/translate.css +1 -1
  228. package/es2021.en/plugins/translate/translate.js +1 -1
  229. package/es2021.en/plugins/translate/translate.min.js +1 -1
  230. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  231. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  232. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  233. package/es5/jodit.css +2 -2
  234. package/es5/jodit.fat.min.js +2 -2
  235. package/es5/jodit.js +116 -97
  236. package/es5/jodit.min.css +2 -2
  237. package/es5/jodit.min.js +2 -2
  238. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  239. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  240. package/es5/plugins/backup/backup.css +1 -1
  241. package/es5/plugins/backup/backup.js +1 -1
  242. package/es5/plugins/backup/backup.min.js +1 -1
  243. package/es5/plugins/button-generator/button-generator.css +1 -1
  244. package/es5/plugins/button-generator/button-generator.js +1 -1
  245. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  246. package/es5/plugins/change-case/change-case.js +1 -1
  247. package/es5/plugins/change-case/change-case.min.js +1 -1
  248. package/es5/plugins/color-picker/color-picker.css +1 -1
  249. package/es5/plugins/color-picker/color-picker.js +1 -1
  250. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  251. package/es5/plugins/emoji/emoji.css +1 -1
  252. package/es5/plugins/emoji/emoji.js +1 -1
  253. package/es5/plugins/emoji/emoji.min.js +1 -1
  254. package/es5/plugins/export-docs/export-docs.js +1 -1
  255. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  256. package/es5/plugins/finder/finder.css +1 -1
  257. package/es5/plugins/finder/finder.js +1 -1
  258. package/es5/plugins/finder/finder.min.js +1 -1
  259. package/es5/plugins/google-maps/google-maps.css +1 -1
  260. package/es5/plugins/google-maps/google-maps.js +1 -1
  261. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  262. package/es5/plugins/google-search/google-search.js +1 -1
  263. package/es5/plugins/google-search/google-search.min.js +1 -1
  264. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  265. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  266. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  267. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  268. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  269. package/es5/plugins/keyboard/keyboard.css +1 -1
  270. package/es5/plugins/keyboard/keyboard.js +1 -1
  271. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  272. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  273. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  274. package/es5/plugins/page-break/page-break.js +1 -1
  275. package/es5/plugins/page-break/page-break.min.js +1 -1
  276. package/es5/plugins/paste-code/paste-code.css +1 -1
  277. package/es5/plugins/paste-code/paste-code.js +1 -1
  278. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  279. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  280. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  281. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  282. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  283. package/es5/plugins/todo-list/todo-list.css +1 -1
  284. package/es5/plugins/todo-list/todo-list.js +1 -1
  285. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  286. package/es5/plugins/translate/translate.css +1 -1
  287. package/es5/plugins/translate/translate.js +1 -1
  288. package/es5/plugins/translate/translate.min.js +1 -1
  289. package/es5/plugins/tune-block/tune-block.css +1 -1
  290. package/es5/plugins/tune-block/tune-block.js +1 -1
  291. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  292. package/esm/config.js +1 -1
  293. package/esm/core/ui/form/range/range.d.ts +2 -2
  294. package/esm/core/ui/form/range/range.js +1 -1
  295. package/esm/index.js +1 -1
  296. package/esm/jodit-pro.d.ts +1 -1
  297. package/esm/jodit-pro.js +1 -1
  298. package/esm/plugins/autocomplete/autocomplete.d.ts +2 -2
  299. package/esm/plugins/autocomplete/autocomplete.js +1 -1
  300. package/esm/plugins/autocomplete/helpers.js +1 -1
  301. package/esm/plugins/autocomplete/interface.d.ts +1 -1
  302. package/esm/plugins/autocomplete/ui/autocomplete.d.ts +2 -2
  303. package/esm/plugins/autocomplete/ui/autocomplete.js +1 -1
  304. package/esm/plugins/autocomplete/ui/item.d.ts +2 -2
  305. package/esm/plugins/autocomplete/ui/item.js +1 -1
  306. package/esm/plugins/backup/backup.d.ts +2 -2
  307. package/esm/plugins/backup/backup.js +1 -1
  308. package/esm/plugins/backup/config.js +1 -1
  309. package/esm/plugins/backup/modules/store.d.ts +2 -2
  310. package/esm/plugins/backup/ui/box.d.ts +3 -3
  311. package/esm/plugins/backup/ui/box.js +1 -1
  312. package/esm/plugins/backup/ui/item.d.ts +3 -3
  313. package/esm/plugins/backup/ui/item.js +1 -1
  314. package/esm/plugins/backup/ui/list.d.ts +3 -3
  315. package/esm/plugins/backup/ui/list.js +1 -1
  316. package/esm/plugins/button-generator/button-generator.d.ts +2 -2
  317. package/esm/plugins/button-generator/button-generator.js +1 -1
  318. package/esm/plugins/button-generator/config.js +1 -1
  319. package/esm/plugins/button-generator/ui/button/button.d.ts +2 -2
  320. package/esm/plugins/button-generator/ui/button/button.js +1 -1
  321. package/esm/plugins/button-generator/ui/form/form.d.ts +2 -2
  322. package/esm/plugins/button-generator/ui/form/form.js +1 -1
  323. package/esm/plugins/button-generator/ui/generator/button-generator.d.ts +2 -2
  324. package/esm/plugins/button-generator/ui/generator/button-generator.js +1 -1
  325. package/esm/plugins/button-generator/ui/preview/preview.d.ts +2 -2
  326. package/esm/plugins/button-generator/ui/preview/preview.js +1 -1
  327. package/esm/plugins/change-case/change-case.d.ts +2 -2
  328. package/esm/plugins/change-case/change-case.js +1 -1
  329. package/esm/plugins/change-case/config.js +1 -1
  330. package/esm/plugins/color-picker/color-picker.d.ts +2 -2
  331. package/esm/plugins/color-picker/color-picker.js +1 -1
  332. package/esm/plugins/color-picker/ui/input/color-input.d.ts +2 -2
  333. package/esm/plugins/color-picker/ui/input/color-input.js +1 -1
  334. package/esm/plugins/emoji/config.js +1 -1
  335. package/esm/plugins/emoji/emoji.d.ts +2 -2
  336. package/esm/plugins/emoji/emoji.js +1 -1
  337. package/esm/plugins/emoji/ui/emoji.d.ts +3 -3
  338. package/esm/plugins/emoji/ui/emoji.js +1 -1
  339. package/esm/plugins/export-docs/config.d.ts +1 -1
  340. package/esm/plugins/export-docs/config.js +1 -1
  341. package/esm/plugins/export-docs/export-docs.d.ts +2 -2
  342. package/esm/plugins/export-docs/export-docs.js +1 -1
  343. package/esm/plugins/finder/browser.d.ts +4 -4
  344. package/esm/plugins/finder/browser.js +1 -1
  345. package/esm/plugins/finder/config.js +1 -1
  346. package/esm/plugins/finder/finder.d.ts +2 -2
  347. package/esm/plugins/finder/finder.js +1 -1
  348. package/esm/plugins/finder/helpers/context-menu.d.ts +3 -3
  349. package/esm/plugins/finder/helpers/context-menu.js +1 -1
  350. package/esm/plugins/finder/helpers/history-manager.d.ts +2 -2
  351. package/esm/plugins/finder/helpers/history-manager.js +1 -1
  352. package/esm/plugins/finder/helpers/loading-manager.d.ts +2 -2
  353. package/esm/plugins/finder/helpers/loading-manager.js +1 -1
  354. package/esm/plugins/finder/helpers/persistent-store.d.ts +2 -2
  355. package/esm/plugins/finder/helpers/persistent-store.js +1 -1
  356. package/esm/plugins/finder/helpers/state-manager.d.ts +2 -2
  357. package/esm/plugins/finder/helpers/state-manager.js +1 -1
  358. package/esm/plugins/finder/ui/assets/icons/index.js +1 -1
  359. package/esm/plugins/finder/ui/folder/folder.d.ts +2 -2
  360. package/esm/plugins/finder/ui/folder/folder.js +1 -1
  361. package/esm/plugins/finder/ui/header/header.d.ts +3 -3
  362. package/esm/plugins/finder/ui/header/header.js +1 -1
  363. package/esm/plugins/finder/ui/item/item.d.ts +2 -2
  364. package/esm/plugins/finder/ui/item/item.js +1 -1
  365. package/esm/plugins/finder/ui/lightboox/lightbox.d.ts +3 -3
  366. package/esm/plugins/finder/ui/lightboox/lightbox.js +1 -1
  367. package/esm/plugins/finder/ui/panel/panel.d.ts +10 -10
  368. package/esm/plugins/finder/ui/panel/panel.js +1 -1
  369. package/esm/plugins/finder/ui/preview/preview.d.ts +4 -4
  370. package/esm/plugins/finder/ui/preview/preview.js +1 -1
  371. package/esm/plugins/finder/ui/progress/progress.d.ts +3 -3
  372. package/esm/plugins/finder/ui/progress/progress.js +1 -1
  373. package/esm/plugins/finder/ui/settings/settings.d.ts +3 -3
  374. package/esm/plugins/finder/ui/settings/settings.js +1 -1
  375. package/esm/plugins/finder/ui/sidebar/sidebar.d.ts +4 -4
  376. package/esm/plugins/finder/ui/sidebar/sidebar.js +1 -1
  377. package/esm/plugins/finder/ui/source/source.d.ts +2 -2
  378. package/esm/plugins/finder/ui/source/source.js +1 -1
  379. package/esm/plugins/finder/ui/sources/sources.d.ts +2 -2
  380. package/esm/plugins/finder/ui/sources/sources.js +1 -1
  381. package/esm/plugins/finder/ui/statusbar/statusbar.d.ts +1 -1
  382. package/esm/plugins/finder/ui/statusbar/statusbar.js +1 -1
  383. package/esm/plugins/finder/ui/tree/tree.d.ts +2 -2
  384. package/esm/plugins/finder/ui/tree/tree.js +1 -1
  385. package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.d.ts +7 -7
  386. package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js +1 -1
  387. package/esm/plugins/google-maps/assets/index.js +1 -1
  388. package/esm/plugins/google-maps/config.js +1 -1
  389. package/esm/plugins/google-maps/google-maps.d.ts +2 -2
  390. package/esm/plugins/google-maps/google-maps.js +1 -1
  391. package/esm/plugins/google-maps/helpers/generate-js-script.d.ts +2 -2
  392. package/esm/plugins/google-maps/helpers/generate-js-script.js +1 -1
  393. package/esm/plugins/google-maps/helpers/generate-static-elements.d.ts +1 -1
  394. package/esm/plugins/google-maps/helpers/generate-static-elements.js +1 -1
  395. package/esm/plugins/google-maps/helpers/static-url.d.ts +1 -1
  396. package/esm/plugins/google-maps/helpers/static-url.js +1 -1
  397. package/esm/plugins/google-maps/ui/combo-box/combo-box.d.ts +1 -1
  398. package/esm/plugins/google-maps/ui/combo-box/combo-box.js +1 -1
  399. package/esm/plugins/google-maps/ui/editors/base.d.ts +2 -2
  400. package/esm/plugins/google-maps/ui/editors/base.js +1 -1
  401. package/esm/plugins/google-maps/ui/editors/index.js +1 -1
  402. package/esm/plugins/google-maps/ui/editors/marker/marker.d.ts +2 -2
  403. package/esm/plugins/google-maps/ui/editors/marker/marker.js +1 -1
  404. package/esm/plugins/google-maps/ui/editors/polygon/polygon.d.ts +2 -2
  405. package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +1 -1
  406. package/esm/plugins/google-maps/ui/editors/polyline/polyline.d.ts +2 -2
  407. package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +1 -1
  408. package/esm/plugins/google-maps/ui/index.js +1 -1
  409. package/esm/plugins/google-maps/ui/map/map.d.ts +4 -4
  410. package/esm/plugins/google-maps/ui/map/map.js +1 -1
  411. package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +2 -2
  412. package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.js +1 -1
  413. package/esm/plugins/google-maps/ui/map/modules/index.js +1 -1
  414. package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +2 -2
  415. package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.js +1 -1
  416. package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +2 -2
  417. package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.js +1 -1
  418. package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +2 -2
  419. package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.js +1 -1
  420. package/esm/plugins/google-maps/ui/map/modules/remove-element.d.ts +2 -2
  421. package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +2 -2
  422. package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.js +1 -1
  423. package/esm/plugins/google-maps/ui/maps-controls/maps-controls.d.ts +2 -2
  424. package/esm/plugins/google-maps/ui/maps-controls/maps-controls.js +1 -1
  425. package/esm/plugins/google-maps/ui/maps-props/maps-props.d.ts +2 -2
  426. package/esm/plugins/google-maps/ui/maps-props/maps-props.js +1 -1
  427. package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.d.ts +2 -2
  428. package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js +1 -1
  429. package/esm/plugins/google-search/google-search.d.ts +2 -2
  430. package/esm/plugins/google-search/google-search.js +1 -1
  431. package/esm/plugins/highlight-signature/highlight-signature.d.ts +2 -2
  432. package/esm/plugins/highlight-signature/highlight-signature.js +1 -1
  433. package/esm/plugins/iframe-editor/config.js +1 -1
  434. package/esm/plugins/iframe-editor/iframe-editor.d.ts +2 -2
  435. package/esm/plugins/iframe-editor/iframe-editor.js +1 -1
  436. package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.d.ts +2 -2
  437. package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.js +1 -1
  438. package/esm/plugins/index.d.ts +3 -3
  439. package/esm/plugins/index.js +1 -1
  440. package/esm/plugins/keyboard/config.d.ts +1 -1
  441. package/esm/plugins/keyboard/config.js +1 -1
  442. package/esm/plugins/keyboard/keyboard.d.ts +2 -2
  443. package/esm/plugins/keyboard/keyboard.js +1 -1
  444. package/esm/plugins/keyboard/ui/keyboard/keyboard.d.ts +2 -2
  445. package/esm/plugins/keyboard/ui/keyboard/keyboard.js +1 -1
  446. package/esm/plugins/license/license.d.ts +3 -3
  447. package/esm/plugins/license/license.js +1 -1
  448. package/esm/plugins/mobile-view/config.js +1 -1
  449. package/esm/plugins/mobile-view/mobile-view.js +1 -1
  450. package/esm/plugins/page-break/config.js +1 -1
  451. package/esm/plugins/page-break/page-break.d.ts +2 -2
  452. package/esm/plugins/page-break/page-break.js +1 -1
  453. package/esm/plugins/paste-code/config.d.ts +1 -1
  454. package/esm/plugins/paste-code/config.js +1 -1
  455. package/esm/plugins/paste-code/paste-code.d.ts +2 -2
  456. package/esm/plugins/paste-code/paste-code.js +1 -1
  457. package/esm/plugins/paste-from-word/cases/clean-styles.d.ts +1 -1
  458. package/esm/plugins/paste-from-word/cases/clear-attributes.d.ts +1 -1
  459. package/esm/plugins/paste-from-word/cases/clear-class-name.d.ts +1 -1
  460. package/esm/plugins/paste-from-word/cases/clear-class-name.js +1 -1
  461. package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.d.ts +1 -1
  462. package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.js +1 -1
  463. package/esm/plugins/paste-from-word/cases/convert-to-list.d.ts +1 -1
  464. package/esm/plugins/paste-from-word/cases/convert-to-list.js +1 -1
  465. package/esm/plugins/paste-from-word/cases/index.d.ts +1 -1
  466. package/esm/plugins/paste-from-word/cases/index.js +1 -1
  467. package/esm/plugins/paste-from-word/cases/mark-page-break.d.ts +1 -1
  468. package/esm/plugins/paste-from-word/cases/normalize-image-props.d.ts +1 -1
  469. package/esm/plugins/paste-from-word/cases/process-image.d.ts +1 -1
  470. package/esm/plugins/paste-from-word/cases/process-image.js +1 -1
  471. package/esm/plugins/paste-from-word/cases/process-links.d.ts +1 -1
  472. package/esm/plugins/paste-from-word/cases/remove-extra-tags.d.ts +1 -1
  473. package/esm/plugins/paste-from-word/cases/remove-inside-comment.d.ts +1 -1
  474. package/esm/plugins/paste-from-word/cases/remove-inside-comment.js +1 -1
  475. package/esm/plugins/paste-from-word/cases/replace-old-tags.d.ts +1 -1
  476. package/esm/plugins/paste-from-word/cases/table.d.ts +1 -1
  477. package/esm/plugins/paste-from-word/config.js +1 -1
  478. package/esm/plugins/paste-from-word/element/checkers.js +1 -1
  479. package/esm/plugins/paste-from-word/element/element.d.ts +1 -1
  480. package/esm/plugins/paste-from-word/element/element.js +1 -1
  481. package/esm/plugins/paste-from-word/element/index.js +1 -1
  482. package/esm/plugins/paste-from-word/element/render.d.ts +1 -1
  483. package/esm/plugins/paste-from-word/element/render.js +1 -1
  484. package/esm/plugins/paste-from-word/element/style.d.ts +1 -1
  485. package/esm/plugins/paste-from-word/element/style.js +1 -1
  486. package/esm/plugins/paste-from-word/helpers/apply-styles-pro.d.ts +1 -1
  487. package/esm/plugins/paste-from-word/helpers/apply-styles-pro.js +1 -1
  488. package/esm/plugins/paste-from-word/helpers/calc-list-levels.d.ts +1 -1
  489. package/esm/plugins/paste-from-word/helpers/calc-list-levels.js +1 -1
  490. package/esm/plugins/paste-from-word/helpers/helpers.d.ts +2 -2
  491. package/esm/plugins/paste-from-word/helpers/index.js +1 -1
  492. package/esm/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +2 -2
  493. package/esm/plugins/paste-from-word/helpers/transform-word-to-html.js +1 -1
  494. package/esm/plugins/paste-from-word/interface.d.ts +1 -1
  495. package/esm/plugins/paste-from-word/paste-from-word.d.ts +3 -3
  496. package/esm/plugins/paste-from-word/paste-from-word.js +1 -1
  497. package/esm/plugins/show-blocks/config.js +1 -1
  498. package/esm/plugins/show-blocks/show-blocks.d.ts +2 -2
  499. package/esm/plugins/show-blocks/show-blocks.js +1 -1
  500. package/esm/plugins/todo-list/config.d.ts +1 -1
  501. package/esm/plugins/todo-list/config.js +1 -1
  502. package/esm/plugins/todo-list/todo-list.d.ts +2 -2
  503. package/esm/plugins/todo-list/todo-list.js +1 -1
  504. package/esm/plugins/translate/config.js +1 -1
  505. package/esm/plugins/translate/interface.d.ts +1 -1
  506. package/esm/plugins/translate/providers/google/google.d.ts +2 -2
  507. package/esm/plugins/translate/providers/google/google.js +1 -1
  508. package/esm/plugins/translate/translate.d.ts +2 -2
  509. package/esm/plugins/translate/translate.js +1 -1
  510. package/esm/plugins/translate/ui/list/list.d.ts +2 -2
  511. package/esm/plugins/translate/ui/list/list.js +1 -1
  512. package/esm/plugins/translate/ui/settings/settings.d.ts +3 -3
  513. package/esm/plugins/translate/ui/settings/settings.js +1 -1
  514. package/esm/plugins/tune-block/config.d.ts +1 -1
  515. package/esm/plugins/tune-block/config.js +1 -1
  516. package/esm/plugins/tune-block/tune-block.d.ts +2 -2
  517. package/esm/plugins/tune-block/tune-block.js +1 -1
  518. package/esm/plugins/tune-block/ui/tuner/tuner.d.ts +2 -2
  519. package/esm/plugins/tune-block/ui/tuner/tuner.js +1 -1
  520. package/esm/traits/resize/resize.d.ts +1 -1
  521. package/esm/traits/resize/resize.js +1 -1
  522. package/esm/traits/select-items/select-items.d.ts +1 -1
  523. package/esm/traits/select-items/select-items.js +1 -1
  524. package/esm/types/view.d.ts +1 -1
  525. package/package.json +1 -1
  526. package/types/core/ui/form/range/range.d.ts +2 -2
  527. package/types/jodit-pro.d.ts +1 -1
  528. package/types/plugins/autocomplete/autocomplete.d.ts +2 -2
  529. package/types/plugins/autocomplete/interface.d.ts +1 -1
  530. package/types/plugins/autocomplete/ui/autocomplete.d.ts +2 -2
  531. package/types/plugins/autocomplete/ui/item.d.ts +2 -2
  532. package/types/plugins/backup/backup.d.ts +2 -2
  533. package/types/plugins/backup/modules/store.d.ts +2 -2
  534. package/types/plugins/backup/ui/box.d.ts +3 -3
  535. package/types/plugins/backup/ui/item.d.ts +3 -3
  536. package/types/plugins/backup/ui/list.d.ts +3 -3
  537. package/types/plugins/button-generator/button-generator.d.ts +2 -2
  538. package/types/plugins/button-generator/ui/button/button.d.ts +2 -2
  539. package/types/plugins/button-generator/ui/form/form.d.ts +2 -2
  540. package/types/plugins/button-generator/ui/generator/button-generator.d.ts +2 -2
  541. package/types/plugins/button-generator/ui/preview/preview.d.ts +2 -2
  542. package/types/plugins/change-case/change-case.d.ts +2 -2
  543. package/types/plugins/color-picker/color-picker.d.ts +2 -2
  544. package/types/plugins/color-picker/ui/input/color-input.d.ts +2 -2
  545. package/types/plugins/emoji/emoji.d.ts +2 -2
  546. package/types/plugins/emoji/ui/emoji.d.ts +3 -3
  547. package/types/plugins/export-docs/config.d.ts +1 -1
  548. package/types/plugins/export-docs/export-docs.d.ts +2 -2
  549. package/types/plugins/finder/browser.d.ts +4 -4
  550. package/types/plugins/finder/finder.d.ts +2 -2
  551. package/types/plugins/finder/helpers/context-menu.d.ts +3 -3
  552. package/types/plugins/finder/helpers/history-manager.d.ts +2 -2
  553. package/types/plugins/finder/helpers/loading-manager.d.ts +2 -2
  554. package/types/plugins/finder/helpers/persistent-store.d.ts +2 -2
  555. package/types/plugins/finder/helpers/state-manager.d.ts +2 -2
  556. package/types/plugins/finder/ui/folder/folder.d.ts +2 -2
  557. package/types/plugins/finder/ui/header/header.d.ts +3 -3
  558. package/types/plugins/finder/ui/item/item.d.ts +2 -2
  559. package/types/plugins/finder/ui/lightboox/lightbox.d.ts +3 -3
  560. package/types/plugins/finder/ui/panel/panel.d.ts +10 -10
  561. package/types/plugins/finder/ui/preview/preview.d.ts +4 -4
  562. package/types/plugins/finder/ui/progress/progress.d.ts +3 -3
  563. package/types/plugins/finder/ui/settings/settings.d.ts +3 -3
  564. package/types/plugins/finder/ui/sidebar/sidebar.d.ts +4 -4
  565. package/types/plugins/finder/ui/source/source.d.ts +2 -2
  566. package/types/plugins/finder/ui/sources/sources.d.ts +2 -2
  567. package/types/plugins/finder/ui/statusbar/statusbar.d.ts +1 -1
  568. package/types/plugins/finder/ui/tree/tree.d.ts +2 -2
  569. package/types/plugins/finder/ui/virtual-scroll/virtual-scroll.d.ts +7 -7
  570. package/types/plugins/google-maps/google-maps.d.ts +2 -2
  571. package/types/plugins/google-maps/helpers/generate-js-script.d.ts +2 -2
  572. package/types/plugins/google-maps/helpers/generate-static-elements.d.ts +1 -1
  573. package/types/plugins/google-maps/helpers/static-url.d.ts +1 -1
  574. package/types/plugins/google-maps/ui/combo-box/combo-box.d.ts +1 -1
  575. package/types/plugins/google-maps/ui/editors/base.d.ts +2 -2
  576. package/types/plugins/google-maps/ui/editors/marker/marker.d.ts +2 -2
  577. package/types/plugins/google-maps/ui/editors/polygon/polygon.d.ts +2 -2
  578. package/types/plugins/google-maps/ui/editors/polyline/polyline.d.ts +2 -2
  579. package/types/plugins/google-maps/ui/map/map.d.ts +4 -4
  580. package/types/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +2 -2
  581. package/types/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +2 -2
  582. package/types/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +2 -2
  583. package/types/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +2 -2
  584. package/types/plugins/google-maps/ui/map/modules/remove-element.d.ts +2 -2
  585. package/types/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +2 -2
  586. package/types/plugins/google-maps/ui/maps-controls/maps-controls.d.ts +2 -2
  587. package/types/plugins/google-maps/ui/maps-props/maps-props.d.ts +2 -2
  588. package/types/plugins/google-maps/ui/wysiwyg/wysiwyg.d.ts +2 -2
  589. package/types/plugins/google-search/google-search.d.ts +2 -2
  590. package/types/plugins/highlight-signature/highlight-signature.d.ts +2 -2
  591. package/types/plugins/iframe-editor/iframe-editor.d.ts +2 -2
  592. package/types/plugins/iframe-editor/ui/iframe-editor/iframe-editor.d.ts +2 -2
  593. package/types/plugins/index.d.ts +3 -3
  594. package/types/plugins/keyboard/config.d.ts +1 -1
  595. package/types/plugins/keyboard/keyboard.d.ts +2 -2
  596. package/types/plugins/keyboard/ui/keyboard/keyboard.d.ts +2 -2
  597. package/types/plugins/license/license.d.ts +3 -3
  598. package/types/plugins/page-break/page-break.d.ts +2 -2
  599. package/types/plugins/paste-code/config.d.ts +1 -1
  600. package/types/plugins/paste-code/paste-code.d.ts +2 -2
  601. package/types/plugins/paste-from-word/cases/clean-styles.d.ts +1 -1
  602. package/types/plugins/paste-from-word/cases/clear-attributes.d.ts +1 -1
  603. package/types/plugins/paste-from-word/cases/clear-class-name.d.ts +1 -1
  604. package/types/plugins/paste-from-word/cases/convert-style-unit-to-pixels.d.ts +1 -1
  605. package/types/plugins/paste-from-word/cases/convert-to-list.d.ts +1 -1
  606. package/types/plugins/paste-from-word/cases/index.d.ts +1 -1
  607. package/types/plugins/paste-from-word/cases/mark-page-break.d.ts +1 -1
  608. package/types/plugins/paste-from-word/cases/normalize-image-props.d.ts +1 -1
  609. package/types/plugins/paste-from-word/cases/process-image.d.ts +1 -1
  610. package/types/plugins/paste-from-word/cases/process-links.d.ts +1 -1
  611. package/types/plugins/paste-from-word/cases/remove-extra-tags.d.ts +1 -1
  612. package/types/plugins/paste-from-word/cases/remove-inside-comment.d.ts +1 -1
  613. package/types/plugins/paste-from-word/cases/replace-old-tags.d.ts +1 -1
  614. package/types/plugins/paste-from-word/cases/table.d.ts +1 -1
  615. package/types/plugins/paste-from-word/element/element.d.ts +1 -1
  616. package/types/plugins/paste-from-word/element/render.d.ts +1 -1
  617. package/types/plugins/paste-from-word/element/style.d.ts +1 -1
  618. package/types/plugins/paste-from-word/helpers/apply-styles-pro.d.ts +1 -1
  619. package/types/plugins/paste-from-word/helpers/calc-list-levels.d.ts +1 -1
  620. package/types/plugins/paste-from-word/helpers/helpers.d.ts +2 -2
  621. package/types/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +2 -2
  622. package/types/plugins/paste-from-word/interface.d.ts +1 -1
  623. package/types/plugins/paste-from-word/paste-from-word.d.ts +3 -3
  624. package/types/plugins/show-blocks/show-blocks.d.ts +2 -2
  625. package/types/plugins/todo-list/config.d.ts +1 -1
  626. package/types/plugins/todo-list/todo-list.d.ts +2 -2
  627. package/types/plugins/translate/interface.d.ts +1 -1
  628. package/types/plugins/translate/providers/google/google.d.ts +2 -2
  629. package/types/plugins/translate/translate.d.ts +2 -2
  630. package/types/plugins/translate/ui/list/list.d.ts +2 -2
  631. package/types/plugins/translate/ui/settings/settings.d.ts +3 -3
  632. package/types/plugins/tune-block/config.d.ts +1 -1
  633. package/types/plugins/tune-block/tune-block.d.ts +2 -2
  634. package/types/plugins/tune-block/ui/tuner/tuner.d.ts +2 -2
  635. package/types/traits/resize/resize.d.ts +1 -1
  636. package/types/traits/select-items/select-items.d.ts +1 -1
  637. package/types/types/view.d.ts +1 -1
@@ -3,11 +3,11 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { ModType } from "jodit/esm/types";
7
- import { UIGroup } from "jodit/esm/core/ui/group/group";
6
+ import type { ModType } from "../../../../types";
7
+ import { UIGroup } from "../../../../core/ui/group/group";
8
8
 
9
- import type { IFileBrowserStatePro } from "jodit-pro/esm/plugins/finder/interface";
10
- import { UIResize } from "jodit-pro/esm/traits/resize/resize";
9
+ import type { IFileBrowserStatePro } from "../../interface";
10
+ import { UIResize } from "../../../../traits/resize/resize";
11
11
  export declare class UIPreview extends UIGroup implements UIResize {
12
12
  protected readonly state: IFileBrowserStatePro;
13
13
  /** @override */
@@ -1 +1 @@
1
- var e=this&&this.__decorate||function(e,t,s,i){var o,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(r<3?o(n):r>3?o(t,s,n):o(t,s))||n);return r>3&&n&&Object.defineProperty(t,s,n),n};import{component as t,debounce as s,hook as i,watch as o}from"jodit/esm/core/decorators/index.js";import{Dom as r}from"jodit/esm/core/dom/dom.js";import{css as n,loadImage as l}from"jodit/esm/core/helpers/utils/index.js";import{assert as a}from"jodit/esm/core/helpers/utils/assert.js";import{UIGroup as d}from"jodit/esm/core/ui/group/group.js";import{UIBrowserItem as m}from"jodit-pro/esm/plugins/finder/ui/item/item.js";import{UIResize as c}from"jodit-pro/esm/traits/resize/resize.js";let h=class UIPreview extends d{className(){return"UIPreview"}addResize(){c.remove(this),c.install(this,screen.width>450?"left":"top")}render(){return'<div>\n\t\t\t\t<div class="&__image"></div>\n\t\t\t\t<div class="&__info"></div>\n\t\t\t\t<div class="&__loader"></div>\n\t\t\t\t<div class="&__empty-message">~Select image~</div>\n\t\t\t</div>'}constructor(e,t){super(e),this.state=t,this.lastLoadPromise=null,this.onChangeMetaInfo()}afterSetMod(e,t){"hidden"===e&&!1===t&&this.onChangeMetaInfo(),super.afterSetMod(e,t)}onChangeMetaInfo(){if(this.getMod("hidden"))return;const{metaInfo:e}=this.state;this.setMod("empty",!e);const t=this.getElm("info");a(null!=t,"info element does not exists"),r.detach(t);const s=this.getElm("image");a(null!=s,"image element does not exists"),n(s,{backgroundImage:null}),e&&(this.setMod("is-file",!1===e.isImage).setMod("type",e.type??"file"),m.prototype.setElementValue.call(this,"name",e.file),m.prototype.setElementValue.call(this,"time",e.time),m.prototype.setElementValue.call(this,"filesize",e.size),this.setMod("loading",!0),this.lastLoadPromise?.rejectCallback(),this.lastLoadPromise=l(e.isImage?e.fileURL:e.imageURL,this.j),this.lastLoadPromise.then((e=>{const t=this.getElm("image");a(null!=t,"image element does not exist"),e&&n(t,{backgroundImage:`url(${e.src})`})})).finally((()=>{this.setMod("loading",!1)})).catch((()=>{})))}};e([i("ready"),o(":resize",{context:window}),s()],h.prototype,"addResize",null),e([o("state.metaInfo")],h.prototype,"onChangeMetaInfo",null),h=e([t],h);export{h as UIPreview};
1
+ var e=this&&this.__decorate||function(e,t,s,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r<3?i(a):r>3?i(t,s,a):i(t,s))||a);return r>3&&a&&Object.defineProperty(t,s,a),a};import{component as t,debounce as s,hook as o,watch as i}from"../../../../core/decorators.js";import{Dom as r}from"../../../../core/dom/dom.js";import{css as a,loadImage as l}from"../../../../core/helpers/utils.js";import{assert as n}from"../../../../core/helpers/utils/assert.js";import{UIGroup as m}from"../../../../core/ui/group/group.js";import{UIBrowserItem as d}from"../item/item.js";import{UIResize as c}from"../../../../traits/resize/resize.js";let h=class UIPreview extends m{className(){return"UIPreview"}addResize(){c.remove(this),c.install(this,screen.width>450?"left":"top")}render(){return'<div>\n\t\t\t\t<div class="&__image"></div>\n\t\t\t\t<div class="&__info"></div>\n\t\t\t\t<div class="&__loader"></div>\n\t\t\t\t<div class="&__empty-message">~Select image~</div>\n\t\t\t</div>'}constructor(e,t){super(e),this.state=t,this.lastLoadPromise=null,this.onChangeMetaInfo()}afterSetMod(e,t){"hidden"===e&&!1===t&&this.onChangeMetaInfo(),super.afterSetMod(e,t)}onChangeMetaInfo(){if(this.getMod("hidden"))return;const{metaInfo:e}=this.state;this.setMod("empty",!e);const t=this.getElm("info");n(null!=t,"info element does not exists"),r.detach(t);const s=this.getElm("image");n(null!=s,"image element does not exists"),a(s,{backgroundImage:null}),e&&(this.setMod("is-file",!1===e.isImage).setMod("type",e.type??"file"),d.prototype.setElementValue.call(this,"name",e.file),d.prototype.setElementValue.call(this,"time",e.time),d.prototype.setElementValue.call(this,"filesize",e.size),this.setMod("loading",!0),this.lastLoadPromise?.rejectCallback(),this.lastLoadPromise=l(e.isImage?e.fileURL:e.imageURL,this.j),this.lastLoadPromise.then((e=>{const t=this.getElm("image");n(null!=t,"image element does not exist"),e&&a(t,{backgroundImage:`url(${e.src})`})})).finally((()=>{this.setMod("loading",!1)})).catch((()=>{})))}};e([o("ready"),i(":resize",{context:window}),s()],h.prototype,"addResize",null),e([i("state.metaInfo")],h.prototype,"onChangeMetaInfo",null),h=e([t],h);export{h as UIPreview};
@@ -3,10 +3,10 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IProgressBar } from "jodit/esm/types";
7
- import { ProgressBar } from "jodit/esm/core/ui/progress-bar/progress-bar";
6
+ import type { IProgressBar } from "../../../../types";
7
+ import { ProgressBar } from "../../../../core/ui/progress-bar/progress-bar";
8
8
 
9
- import type { IFileBrowserStatePro } from "jodit-pro/esm/plugins/finder/interface";
9
+ import type { IFileBrowserStatePro } from "../../interface";
10
10
  export declare class UIProgress extends ProgressBar implements IProgressBar {
11
11
  readonly state: IFileBrowserStatePro;
12
12
  /** @override */
@@ -1 +1 @@
1
- var e=this&&this.__decorate||function(e,t,s,r){var o,i=arguments.length,h=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(h=(i<3?o(h):i>3?o(t,s,h):o(t,s))||h);return i>3&&h&&Object.defineProperty(t,s,h),h};import{component as t,watch as s}from"jodit/esm/core/decorators/index.js";import{ProgressBar as r}from"jodit/esm/core/ui/progress-bar/progress-bar.js";let o=class UIProgress extends r{className(){return"UIProgress"}constructor(e,t){super(e),this.state=t,this.onProgress()}onProgress(){this.state.progress?this.show():this.hide(),this.progress(this.state.progress)}hide(){return this.setMod("hidden",!0),this}progress(e){return this.container.style.width=e.toFixed(2)+"%",e>=98&&this.j.async.setTimeout((()=>{this.hide()}),{label:"progress",timeout:300}),this}show(){return this.setMod("hidden",!1),this}};e([s("state.progress")],o.prototype,"onProgress",null),o=e([t],o);export{o as UIProgress};
1
+ var e=this&&this.__decorate||function(e,t,s,r){var o,i=arguments.length,h=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(h=(i<3?o(h):i>3?o(t,s,h):o(t,s))||h);return i>3&&h&&Object.defineProperty(t,s,h),h};import{component as t,watch as s}from"../../../../core/decorators.js";import{ProgressBar as r}from"../../../../core/ui/progress-bar/progress-bar.js";let o=class UIProgress extends r{className(){return"UIProgress"}constructor(e,t){super(e),this.state=t,this.onProgress()}onProgress(){this.state.progress?this.show():this.hide(),this.progress(this.state.progress)}hide(){return this.setMod("hidden",!0),this}progress(e){return this.container.style.width=e.toFixed(2)+"%",e>=98&&this.j.async.setTimeout((()=>{this.hide()}),{label:"progress",timeout:300}),this}show(){return this.setMod("hidden",!1),this}};e([s("state.progress")],o.prototype,"onProgress",null),o=e([t],o);export{o as UIProgress};
@@ -3,10 +3,10 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IViewBased, ModType } from "jodit/esm/types";
7
- import { UIGroup } from "jodit/esm/core/ui";
6
+ import type { IViewBased, ModType } from "../../../../types";
7
+ import { UIGroup } from "../../../../core/ui";
8
8
 
9
- import type { IFileBrowserStatePro } from "jodit-pro/esm/plugins/finder/interface";
9
+ import type { IFileBrowserStatePro } from "../../interface";
10
10
  export declare class UIBrowserSettings extends UIGroup {
11
11
  readonly state: IFileBrowserStatePro;
12
12
  /** @override */
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- var e=this&&this.__decorate||function(e,t,s,a){var i,l=arguments.length,o=l<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,a);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(o=(l<3?i(o):l>3?i(t,s,o):i(t,s))||o);return l>3&&o&&Object.defineProperty(t,s,o),o};import{component as t,watch as s}from"jodit/esm/core/decorators/index.js";import{assert as a}from"jodit/esm/core/helpers/utils/assert.js";import{Icon as i,UIButtonGroup as l,UIGroup as o,UISelect as n}from"jodit/esm/core/ui/index.js";let r=class UIBrowserSettings extends o{className(){return"UIBrowserSettings"}render(){return`<div>\n\t\t\t<div class="${this.getFullElName("close")}">${i.get("cancel")}</div>\n\t\t\t<div class="${this.getFullElName("title")}">${this.j.i18n("Settings")}</div>\n\t\t\t<div class="${this.getFullElName("options")}"></div>\n\t\t</div>`}appendChildToContainer(e){const t=this.getElm("options");a(null!=t,"options element does not exists"),t.appendChild(e)}afterSetMod(e,t){"hidden"===e&&!1===t&&this.generateSettings(),super.afterSetMod(e,t)}constructor(e,t){super(e),this.state=t;const s=this.getElm("close");a(null!=s,"close element does not exists"),e.e.on(s,"click",(()=>{this.state.showSettings=!1}))}onChangeView(){const e=this.getElm("tile-size");e&&(e.style.display="tiles"===this.state.view?"block":"none")}generateSettings(){this.clear();const{j:e}=this;this.append([new l(e,{label:"Theme",name:"theme",value:this.state.theme,radio:!0,options:[{value:"default",text:"Light"},{value:"dark",text:"Dark"}],onChange:e=>{"default"===this.state.theme||"dark"===this.state.theme?this.state.theme=e[0].value:this.state.theme="default"}}),new l(e,{label:"Show favorites",name:"showFavorites",value:this.state.showFavorites,radio:!0,options:[{value:!0,text:"Show"},{value:!1,text:"Hide"}],onChange:e=>{this.state.showFavorites=e[0].value}}),new l(e,{label:"View",name:"view",value:this.state.view,radio:!0,options:[{value:"tiles",text:"Tiles"},{value:"list",text:"List"},{value:"compact",text:"Compact"}],onChange:e=>{this.state.view=e[0].value}}),new l(e,{label:"Folders position",name:"foldersPosition",value:this.state.foldersPosition,radio:!0,options:[{value:"top",text:"Top"},{value:"bottom",text:"Bottom"},{value:"default",text:"Default"}],onChange:e=>{this.state.foldersPosition=e[0].value}}),new n(e,{label:"Sort by",name:"sort-by",value:this.state.sortBy,options:[{value:"changed-asc",text:e.i18n("Sort by changed")+"(⬆)"},{value:"changed-desc",text:e.i18n("Sort by changed")+"(⬇)"},{value:"name-asc",text:e.i18n("Sort by name")+"(⬆)"},{value:"name-desc",text:e.i18n("Sort by name")+"(⬇)"},{value:"size-asc",text:e.i18n("Sort by size")+"(⬆)"},{value:"size-desc",text:e.i18n("Sort by size")+"(⬇)"}],onChange:e=>{this.state.sortBy=e}}),new n(e,{label:"Tile size",name:"tile-size",value:this.state.tileSize,options:[{value:"xsmall",text:"Extra small"},{value:"small",text:"Small"},{value:"default",text:"Default"},{value:"large",text:"Large"},{value:"xlarge",text:"Extra large"}],onChange:e=>{this.state.tileSize=e}})]),this.onChangeView()}};e([s("state.view")],r.prototype,"onChangeView",null),r=e([t],r);export{r as UIBrowserSettings};
6
+ var e=this&&this.__decorate||function(e,t,s,a){var i,l=arguments.length,o=l<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,a);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(o=(l<3?i(o):l>3?i(t,s,o):i(t,s))||o);return l>3&&o&&Object.defineProperty(t,s,o),o};import{component as t,watch as s}from"../../../../core/decorators.js";import{assert as a}from"../../../../core/helpers/utils/assert.js";import{Icon as i,UIButtonGroup as l,UIGroup as o,UISelect as n}from"../../../../core/ui/index.js";let r=class UIBrowserSettings extends o{className(){return"UIBrowserSettings"}render(){return`<div>\n\t\t\t<div class="${this.getFullElName("close")}">${i.get("cancel")}</div>\n\t\t\t<div class="${this.getFullElName("title")}">${this.j.i18n("Settings")}</div>\n\t\t\t<div class="${this.getFullElName("options")}"></div>\n\t\t</div>`}appendChildToContainer(e){const t=this.getElm("options");a(null!=t,"options element does not exists"),t.appendChild(e)}afterSetMod(e,t){"hidden"===e&&!1===t&&this.generateSettings(),super.afterSetMod(e,t)}constructor(e,t){super(e),this.state=t;const s=this.getElm("close");a(null!=s,"close element does not exists"),e.e.on(s,"click",(()=>{this.state.showSettings=!1}))}onChangeView(){const e=this.getElm("tile-size");e&&(e.style.display="tiles"===this.state.view?"block":"none")}generateSettings(){this.clear();const{j:e}=this;this.append([new l(e,{label:"Theme",name:"theme",value:this.state.theme,radio:!0,options:[{value:"default",text:"Light"},{value:"dark",text:"Dark"}],onChange:e=>{"default"===this.state.theme||"dark"===this.state.theme?this.state.theme=e[0].value:this.state.theme="default"}}),new l(e,{label:"Show favorites",name:"showFavorites",value:this.state.showFavorites,radio:!0,options:[{value:!0,text:"Show"},{value:!1,text:"Hide"}],onChange:e=>{this.state.showFavorites=e[0].value}}),new l(e,{label:"View",name:"view",value:this.state.view,radio:!0,options:[{value:"tiles",text:"Tiles"},{value:"list",text:"List"},{value:"compact",text:"Compact"}],onChange:e=>{this.state.view=e[0].value}}),new l(e,{label:"Folders position",name:"foldersPosition",value:this.state.foldersPosition,radio:!0,options:[{value:"top",text:"Top"},{value:"bottom",text:"Bottom"},{value:"default",text:"Default"}],onChange:e=>{this.state.foldersPosition=e[0].value}}),new n(e,{label:"Sort by",name:"sort-by",value:this.state.sortBy,options:[{value:"changed-asc",text:e.i18n("Sort by changed")+"(⬆)"},{value:"changed-desc",text:e.i18n("Sort by changed")+"(⬇)"},{value:"name-asc",text:e.i18n("Sort by name")+"(⬆)"},{value:"name-desc",text:e.i18n("Sort by name")+"(⬇)"},{value:"size-asc",text:e.i18n("Sort by size")+"(⬆)"},{value:"size-desc",text:e.i18n("Sort by size")+"(⬇)"}],onChange:e=>{this.state.sortBy=e}}),new n(e,{label:"Tile size",name:"tile-size",value:this.state.tileSize,options:[{value:"xsmall",text:"Extra small"},{value:"small",text:"Small"},{value:"default",text:"Default"},{value:"large",text:"Large"},{value:"xlarge",text:"Extra large"}],onChange:e=>{this.state.tileSize=e}})]),this.onChangeView()}};e([s("state.view")],r.prototype,"onChangeView",null),r=e([t],r);export{r as UIBrowserSettings};
@@ -3,11 +3,11 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IUIElement, IViewBased } from "jodit/esm/types";
7
- import { UIGroup } from "jodit/esm/core/ui/group/group";
6
+ import type { IUIElement, IViewBased } from "../../../../types";
7
+ import { UIGroup } from "../../../../core/ui/group/group";
8
8
 
9
- import type { IFileBrowserStatePro } from "jodit-pro/esm/plugins/finder/interface";
10
- import { UIResize } from "jodit-pro/esm/traits/resize/resize";
9
+ import type { IFileBrowserStatePro } from "../../interface";
10
+ import { UIResize } from "../../../../traits/resize/resize";
11
11
  export declare class UISidebar extends UIGroup implements UIResize {
12
12
  readonly state: IFileBrowserStatePro;
13
13
  /** @override */
@@ -1 +1 @@
1
- var t=this&&this.__decorate||function(t,e,o,i){var r,s=arguments.length,n=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,o,n):r(e,o))||n);return s>3&&n&&Object.defineProperty(e,o,n),n};import{component as e,debounce as o,hook as i,watch as r}from"jodit/esm/core/decorators/index.js";import{assert as s}from"jodit/esm/core/helpers/utils/assert.js";import{UIGroup as n}from"jodit/esm/core/ui/group/group.js";import{UIResize as a}from"jodit-pro/esm/traits/resize/resize.js";let l=class UISidebar extends n{className(){return"UISidebar"}render(){return"<div>\n\t\t\t<div class='&__hide-btn'>*angle-left*</div>\n\t\t\t<div class='&__favorites'>*heart* ~Favorites~</div>\n\t\t\t<div class='&__box'></div>\n\t\t</div>"}appendChildToContainer(t){const e=this.getElm("box");s(null!=e,"box element does not exists"),e.appendChild(t)}addResize(){a.remove(this),a.install(this,screen.width>450?"right":"bottom")}constructor(t,e,o){super(t,e),this.state=o,this.onChangeFavorites()}onChangeFavorites(){this.setMod("has-favorites",Boolean(this.state.favorites.length))}onClickHideButton(){return this.state.showSideBar=!this.state.showSideBar,!1}onClickFavorites(){return this.state.elements=this.state.favorites,!1}};t([i("ready"),r(":resize",{context:window}),o()],l.prototype,"addResize",null),t([r("state.favorites")],l.prototype,"onChangeFavorites",null),t([r("hide-btn:click")],l.prototype,"onClickHideButton",null),t([r("favorites:click")],l.prototype,"onClickFavorites",null),l=t([e],l);export{l as UISidebar};
1
+ var t=this&&this.__decorate||function(t,e,o,r){var s,i=arguments.length,n=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(i<3?s(n):i>3?s(e,o,n):s(e,o))||n);return i>3&&n&&Object.defineProperty(e,o,n),n};import{component as e,debounce as o,hook as r,watch as s}from"../../../../core/decorators.js";import{assert as i}from"../../../../core/helpers/utils/assert.js";import{UIGroup as n}from"../../../../core/ui/group/group.js";import{UIResize as a}from"../../../../traits/resize/resize.js";let l=class UISidebar extends n{className(){return"UISidebar"}render(){return"<div>\n\t\t\t<div class='&__hide-btn'>*angle-left*</div>\n\t\t\t<div class='&__favorites'>*heart* ~Favorites~</div>\n\t\t\t<div class='&__box'></div>\n\t\t</div>"}appendChildToContainer(t){const e=this.getElm("box");i(null!=e,"box element does not exists"),e.appendChild(t)}addResize(){a.remove(this),a.install(this,screen.width>450?"right":"bottom")}constructor(t,e,o){super(t,e),this.state=o,this.onChangeFavorites()}onChangeFavorites(){this.setMod("has-favorites",Boolean(this.state.favorites.length))}onClickHideButton(){return this.state.showSideBar=!this.state.showSideBar,!1}onClickFavorites(){return this.state.elements=this.state.favorites,!1}};t([r("ready"),s(":resize",{context:window}),o()],l.prototype,"addResize",null),t([s("state.favorites")],l.prototype,"onChangeFavorites",null),t([s("hide-btn:click")],l.prototype,"onClickHideButton",null),t([s("favorites:click")],l.prototype,"onClickFavorites",null),l=t([e],l);export{l as UISidebar};
@@ -3,9 +3,9 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import { UIElement } from "jodit/esm/core/ui/element";
6
+ import { UIElement } from "../../../../core/ui/element";
7
7
 
8
- import type { IFileBrowserTreeItemPro } from "jodit-pro/esm/plugins/finder/interface";
8
+ import type { IFileBrowserTreeItemPro } from "../../interface";
9
9
  export declare class UIBrowserSource extends UIElement {
10
10
  readonly data: IFileBrowserTreeItemPro;
11
11
  private tree;
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- var e=this&&this.__decorate||function(e,t,r,o){var n,s=arguments.length,i=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(i=(s<3?n(i):s>3?n(t,r,i):n(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i};import{component as t}from"jodit/esm/core/decorators/component/component.js";import{assert as r}from"jodit/esm/core/helpers/utils/assert.js";import{UIElement as o}from"jodit/esm/core/ui/element.js";import{UITree as n}from"jodit-pro/esm/plugins/finder/ui/tree/tree.js";let s=class UIBrowserSource extends o{className(){return"UIBrowserSource"}render(){return'<div>\n\t\t\t<div class="&__name"></div>\n\t\t\t<div class="&__tree"></div>\n\t\t</div>'}constructor(e,t){super(e,t),this.data=t,this.tree=new n(this.j,this.data.children),this.syncMod=!0;const o=this.getElm("name");r(null!=o,"name element does not exists"),o.innerText=t.title||t.name;const s=this.getElm("tree");r(null!=s,"tree element does not exists"),s.appendChild(this.tree.container),e.e.on(this.container,"contextmenu",(r=>e.e.fire("contextmenuSource.filebrowser",t,r)))}};s=e([t],s);export{s as UIBrowserSource};
6
+ var e=this&&this.__decorate||function(e,t,r,n){var o,s=arguments.length,i=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i};import{component as t}from"../../../../core/decorators/component/component.js";import{assert as r}from"../../../../core/helpers/utils/assert.js";import{UIElement as n}from"../../../../core/ui/element.js";import{UITree as o}from"../tree/tree.js";let s=class UIBrowserSource extends n{className(){return"UIBrowserSource"}render(){return'<div>\n\t\t\t<div class="&__name"></div>\n\t\t\t<div class="&__tree"></div>\n\t\t</div>'}constructor(e,t){super(e,t),this.data=t,this.tree=new o(this.j,this.data.children),this.syncMod=!0;const n=this.getElm("name");r(null!=n,"name element does not exists"),n.innerText=t.title||t.name;const s=this.getElm("tree");r(null!=s,"tree element does not exists"),s.appendChild(this.tree.container),e.e.on(this.container,"contextmenu",(r=>e.e.fire("contextmenuSource.filebrowser",t,r)))}};s=e([t],s);export{s as UIBrowserSource};
@@ -3,9 +3,9 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import { UIGroup } from "jodit/esm/core/ui";
6
+ import { UIGroup } from "../../../../core/ui";
7
7
 
8
- import type { IFileBrowserTreeItemPro } from "jodit-pro/esm/plugins/finder/interface";
8
+ import type { IFileBrowserTreeItemPro } from "../../interface";
9
9
  export declare class UIBrowserSources extends UIGroup {
10
10
  /** @override */
11
11
  syncMod: boolean;
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- var e=this&&this.__decorate||function(e,r,t,o){var s,c=arguments.length,i=c<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,r,t,o);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(i=(c<3?s(i):c>3?s(r,t,i):s(r,t))||i);return c>3&&i&&Object.defineProperty(r,t,i),i};import{component as r}from"jodit/esm/core/decorators/index.js";import{UIGroup as t}from"jodit/esm/core/ui/index.js";import{UIBrowserSource as o}from"jodit-pro/esm/plugins/finder/ui/source/source.js";let s=class UIBrowserSources extends t{constructor(){super(...arguments),this.syncMod=!0}className(){return"UIBrowserSources"}build(e){this.clear(),e.forEach((e=>{this.append(new o(this.jodit,e))}))}};s=e([r],s);export{s as UIBrowserSources};
6
+ var e=this&&this.__decorate||function(e,r,t,o){var c,s=arguments.length,i=s<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,r,t,o);else for(var n=e.length-1;n>=0;n--)(c=e[n])&&(i=(s<3?c(i):s>3?c(r,t,i):c(r,t))||i);return s>3&&i&&Object.defineProperty(r,t,i),i};import{component as r}from"../../../../core/decorators.js";import{UIGroup as t}from"../../../../core/ui/index.js";import{UIBrowserSource as o}from"../source/source.js";let c=class UIBrowserSources extends t{constructor(){super(...arguments),this.syncMod=!0}className(){return"UIBrowserSources"}build(e){this.clear(),e.forEach((e=>{this.append(new o(this.jodit,e))}))}};c=e([r],c);export{c as UIBrowserSources};
@@ -3,7 +3,7 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import { UIElement } from "jodit/esm/core/ui";
6
+ import { UIElement } from "../../../../core/ui";
7
7
 
8
8
  export declare class UIBrowserStatusBar extends UIElement {
9
9
  /** @override */
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- var t=this&&this.__decorate||function(t,e,r,s){var o,i=arguments.length,l=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,r,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(l=(i<3?o(l):i>3?o(e,r,l):o(e,r))||l);return i>3&&l&&Object.defineProperty(e,r,l),l};import{component as e}from"jodit/esm/core/decorators/index.js";import{assert as r}from"jodit/esm/core/helpers/utils/assert.js";import{UIElement as s}from"jodit/esm/core/ui/index.js";let o=class UIBrowserStatusBar extends s{className(){return"UIBrowserStatusBar"}render(){return"<div>\n\t\t\t<div class='&__slot-left'></div>\n\t\t\t<div class='&__slot-center'></div>\n\t\t\t<div class='&__slot-right'></div>\n\t\t</div>"}value(t,e="left"){const s=this.getElm(`slot-${e}`);return r(null!=s,"Slot does not exists"),s.innerText=t,this}};o=t([e],o);export{o as UIBrowserStatusBar};
6
+ var t=this&&this.__decorate||function(t,e,r,s){var o,l=arguments.length,i=l<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(i=(l<3?o(i):l>3?o(e,r,i):o(e,r))||i);return l>3&&i&&Object.defineProperty(e,r,i),i};import{component as e}from"../../../../core/decorators.js";import{assert as r}from"../../../../core/helpers/utils/assert.js";import{UIElement as s}from"../../../../core/ui/index.js";let o=class UIBrowserStatusBar extends s{className(){return"UIBrowserStatusBar"}render(){return"<div>\n\t\t\t<div class='&__slot-left'></div>\n\t\t\t<div class='&__slot-center'></div>\n\t\t\t<div class='&__slot-right'></div>\n\t\t</div>"}value(t,e="left"){const s=this.getElm(`slot-${e}`);return r(null!=s,"Slot does not exists"),s.innerText=t,this}};o=t([e],o);export{o as UIBrowserStatusBar};
@@ -3,9 +3,9 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import { UIGroup } from "jodit/esm/core/ui/group/group";
6
+ import { UIGroup } from "../../../../core/ui/group/group";
7
7
 
8
- import type { IFileBrowserTreeItemPro } from "jodit-pro/esm/plugins/finder/interface";
8
+ import type { IFileBrowserTreeItemPro } from "../../interface";
9
9
  export declare class UITree extends UIGroup {
10
10
  /** @override */
11
11
  syncMod: boolean;
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- var e,t=this&&this.__decorate||function(e,t,o,r){var i,s=arguments.length,c=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,r);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(c=(s<3?i(c):s>3?i(t,o,c):i(t,o))||c);return s>3&&c&&Object.defineProperty(t,o,c),c};import{component as o}from"jodit/esm/core/decorators/component/component.js";import{UIGroup as r}from"jodit/esm/core/ui/group/group.js";import{UIBrowserFolder as i}from"jodit-pro/esm/plugins/finder/ui/folder/folder.js";let s=e=class UITree extends r{className(){return"UITree"}constructor(e,t){super(e),this.syncMod=!0,this.build(t)}build(t){this.clear(),t.forEach((t=>{const o=new i(this.jodit,t);this.append(o),t.isActive&&o.setMod("active",!0),t.children.length&&this.append(new e(this.jodit,t.children))}))}};s=e=t([o],s);export{s as UITree};
6
+ var e,t=this&&this.__decorate||function(e,t,r,o){var c,i=arguments.length,n=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(c=e[s])&&(n=(i<3?c(n):i>3?c(t,r,n):c(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n};import{component as r}from"../../../../core/decorators/component/component.js";import{UIGroup as o}from"../../../../core/ui/group/group.js";import{UIBrowserFolder as c}from"../folder/folder.js";let i=e=class UITree extends o{className(){return"UITree"}constructor(e,t){super(e),this.syncMod=!0,this.build(t)}build(t){this.clear(),t.forEach((t=>{const r=new c(this.jodit,t);this.append(r),t.isActive&&r.setMod("active",!0),t.children.length&&this.append(new e(this.jodit,t.children))}))}};i=e=t([r],i);export{i as UITree};
@@ -3,14 +3,14 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IBound } from "jodit/esm/types";
7
- import type { IFileBrowserItemElement } from "jodit/esm/types/file-browser";
8
- import { UIGroup } from "jodit/esm/core/ui/group/group";
6
+ import type { IBound } from "../../../../types";
7
+ import type { IFileBrowserItemElement } from "../../../../types/file-browser";
8
+ import { UIGroup } from "../../../../core/ui/group/group";
9
9
 
10
- import type { StateManager } from "jodit-pro/esm/plugins/finder/helpers/state-manager";
11
- import type { IFileBrowserPro } from "jodit-pro/esm/plugins/finder/interface";
12
- import { UIBrowserItem } from "jodit-pro/esm/plugins/finder/ui/item/item";
13
- import { UISelectItems } from "jodit-pro/esm/traits/select-items/select-items";
10
+ import type { StateManager } from "../../helpers/state-manager";
11
+ import type { IFileBrowserPro } from "../../interface";
12
+ import { UIBrowserItem } from "../item/item";
13
+ import { UISelectItems } from "../../../../traits/select-items/select-items";
14
14
  export declare class UIVirtualScroll extends UIGroup<IFileBrowserPro> implements UISelectItems {
15
15
  readonly stateManager: StateManager;
16
16
  elements: UIBrowserItem[];
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- var e,t=this&&this.__decorate||function(e,t,s,r){var o,i=arguments.length,n=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(i<3?o(n):i>3?o(t,s,n):o(t,s))||n);return i>3&&n&&Object.defineProperty(t,s,n),n};import{component as s,throttle as r,watch as o}from"jodit/esm/core/decorators/index.js";import{position as i}from"jodit/esm/core/helpers/size/position.js";import{UIGroup as n}from"jodit/esm/core/ui/group/group.js";import{FileBrowserItem as l}from"jodit/esm/modules/file-browser/builders/item.js";import{UIBrowserItem as a}from"jodit-pro/esm/plugins/finder/ui/item/item.js";import{UISelectItems as c}from"jodit-pro/esm/traits/select-items/select-items.js";let d=e=class UIVirtualScroll extends n{className(){return"UIVirtualScroll"}render(){return"<div>\n\t\t\t\t<div class=\"&__empty-message\">~There are no files~</div>\n\t\t\t\t<div class='&__loader'></div>\n\t\t\t\t<div class='&__drag-area'>~Drop image~</div>\n\t\t\t</div>"}constructor(e,t){super(e),this.stateManager=t,this.syncMod=!0,this.addItemsSelector()}reconcile(e){const t=this.elements.findIndex(((t,s)=>!e[s]||t.item.uniqueHashKey!==l.create(e[s]).uniqueHashKey));if(t>-1){for(let e=t;e<this.elements.length;e+=1)this.elements[e].destruct();this.elements.length=t}return t}build(e){const t=this.reconcile(e);e.slice(t>-1?t:this.elements.length).forEach((e=>{const t=new a(this.jodit,e);Object.keys(this.mods).forEach((e=>{t.setMod(e,this.mods[e])})),this.append(t)})),this.setMod("empty",!this.elements.length)}onScrollLoadChunk(){!this.stateManager.isFavoriteItems&&this.container.scrollHeight-(this.container.scrollTop+this.container.offsetHeight)<this.j.o.pixelOffsetLoadNewChunk&&this.j.loadingManager.loadItemsChunk()}onDragOver(e){e.preventDefault(),this.setMod("dragover",!0)}onDragLeave(e){e.preventDefault(),this.setMod("dragover",!1)}addItemsSelector(){c.install(this)}static intersectRect(e,t){return!(t.left>e.left+e.width||t.left+t.width<e.left||t.top>e.top+e.height||t.top+t.height<e.top)}onSelectItems(t){const s=[];this.elements.forEach((r=>{const o=i(r.container);e.intersectRect(o,t)&&s.push(r.item)})),this.stateManager.state.activeElements=s}};t([o(":afterResize"),o(":resize"),o("container:scroll"),r()],d.prototype,"onScrollLoadChunk",null),t([o("container:dragover")],d.prototype,"onDragOver",null),t([o(["container:dragleave","container:drop"])],d.prototype,"onDragLeave",null),d=e=t([s],d);export{d as UIVirtualScroll};
6
+ var e,t=this&&this.__decorate||function(e,t,r,s){var o,i=arguments.length,n=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,s);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(i<3?o(n):i>3?o(t,r,n):o(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n};import{component as r,throttle as s,watch as o}from"../../../../core/decorators.js";import{position as i}from"../../../../core/helpers/size/position.js";import{UIGroup as n}from"../../../../core/ui/group/group.js";import{FileBrowserItem as l}from"../../../../modules/file-browser/builders/item.js";import{UIBrowserItem as a}from"../item/item.js";import{UISelectItems as c}from"../../../../traits/select-items/select-items.js";let h=e=class UIVirtualScroll extends n{className(){return"UIVirtualScroll"}render(){return"<div>\n\t\t\t\t<div class=\"&__empty-message\">~There are no files~</div>\n\t\t\t\t<div class='&__loader'></div>\n\t\t\t\t<div class='&__drag-area'>~Drop image~</div>\n\t\t\t</div>"}constructor(e,t){super(e),this.stateManager=t,this.syncMod=!0,this.addItemsSelector()}reconcile(e){const t=this.elements.findIndex(((t,r)=>!e[r]||t.item.uniqueHashKey!==l.create(e[r]).uniqueHashKey));if(t>-1){for(let e=t;e<this.elements.length;e+=1)this.elements[e].destruct();this.elements.length=t}return t}build(e){const t=this.reconcile(e);e.slice(t>-1?t:this.elements.length).forEach((e=>{const t=new a(this.jodit,e);Object.keys(this.mods).forEach((e=>{t.setMod(e,this.mods[e])})),this.append(t)})),this.setMod("empty",!this.elements.length)}onScrollLoadChunk(){!this.stateManager.isFavoriteItems&&this.container.scrollHeight-(this.container.scrollTop+this.container.offsetHeight)<this.j.o.pixelOffsetLoadNewChunk&&this.j.loadingManager.loadItemsChunk()}onDragOver(e){e.preventDefault(),this.setMod("dragover",!0)}onDragLeave(e){e.preventDefault(),this.setMod("dragover",!1)}addItemsSelector(){c.install(this)}static intersectRect(e,t){return!(t.left>e.left+e.width||t.left+t.width<e.left||t.top>e.top+e.height||t.top+t.height<e.top)}onSelectItems(t){const r=[];this.elements.forEach((s=>{const o=i(s.container);e.intersectRect(o,t)&&r.push(s.item)})),this.stateManager.state.activeElements=r}};t([o(":afterResize"),o(":resize"),o("container:scroll"),s()],h.prototype,"onScrollLoadChunk",null),t([o("container:dragover")],h.prototype,"onDragOver",null),t([o(["container:dragleave","container:drop"])],h.prototype,"onDragLeave",null),h=e=t([r],h);export{h as UIVirtualScroll};
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import{Icon as o}from"jodit/esm/core/ui/icon.js";import t from"./circle.svg.js";import e from"./hand.svg.js";import r from"./icon.svg.js";import s from"./marker.svg.js";import i from"./polygon.svg.js";import m from"./polyline.svg.js";import p from"./text.svg.js";o.set("map",r).set("edit-hand",e).set("edit-polygon",i).set("edit-marker",s).set("edit-text",p).set("edit-polyline",m).set("edit-circle",t);
6
+ import{Icon as o}from"../../../core/ui/icon.js";import t from"./circle.svg.js";import r from"./hand.svg.js";import e from"./icon.svg.js";import s from"./marker.svg.js";import i from"./polygon.svg.js";import m from"./polyline.svg.js";import p from"./text.svg.js";o.set("map",e).set("edit-hand",r).set("edit-polygon",i).set("edit-marker",s).set("edit-text",p).set("edit-polyline",m).set("edit-circle",t);
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import{COMMAND_OPEN_DIALOG as o}from"./helpers/const";import{Config as e}from"jodit/esm/config.js";e.prototype.googleMaps={saveStateInStorage:!0,useStaticImage:!1,apiUrl:"https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places,drawing&language=${j.o.language}&callback=JoditGoogleReadyHandler",API_KEY:"AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY",dialog:{size:[700,700]},inlineEditorOptions:{buttons:["bold","italic","link","brush","fontsize","image"]},map:{type:"roadmap",layer:"default",center:"auto",defaultCenter:[-34.397,150.644],defaultZoom:10,zoom:10,size:[500,400],defaultStates:{polyline:{strokeColor:"#5ba4f3",strokeWeight:3},polygon:{strokeColor:"#417706",fillColor:"#5b9302",strokeWeight:1,fillOpacity:.5},marker:{},text:{},circle:{strokeColor:"#da767c",fillColor:"#f34ca8",strokeWeight:1,fillOpacity:.5}}}},e.prototype.controls.googleMaps={tooltip:"Google Maps",icon:"map",command:o};const gmButton=o=>({icon:`edit-${o}`,isActive:e=>e.buffer.get("createMode.gm")===o,exec:e=>{e.e.fire("changeCreateMode.gm",o)}});e.prototype.controls.gm={hand:gmButton("hand"),marker:gmButton("marker"),polyline:gmButton("polyline"),polygon:gmButton("polygon"),circle:gmButton("circle"),text:gmButton("text")};
6
+ import{COMMAND_OPEN_DIALOG as o}from"./helpers/const.js";import{Config as e}from"../../config.js";e.prototype.googleMaps={saveStateInStorage:!0,useStaticImage:!1,apiUrl:"https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places,drawing&language=${j.o.language}&callback=JoditGoogleReadyHandler",API_KEY:"AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY",dialog:{size:[700,700]},inlineEditorOptions:{buttons:["bold","italic","link","brush","fontsize","image"]},map:{type:"roadmap",layer:"default",center:"auto",defaultCenter:[-34.397,150.644],defaultZoom:10,zoom:10,size:[500,400],defaultStates:{polyline:{strokeColor:"#5ba4f3",strokeWeight:3},polygon:{strokeColor:"#417706",fillColor:"#5b9302",strokeWeight:1,fillOpacity:.5},marker:{},text:{},circle:{strokeColor:"#da767c",fillColor:"#f34ca8",strokeWeight:1,fillOpacity:.5}}}},e.prototype.controls.googleMaps={tooltip:"Google Maps",icon:"map",command:o};const gmButton=o=>({icon:`edit-${o}`,isActive:e=>e.buffer.get("createMode.gm")===o,exec:e=>{e.e.fire("changeCreateMode.gm",o)}});e.prototype.controls.gm={hand:gmButton("hand"),marker:gmButton("marker"),polyline:gmButton("polyline"),polygon:gmButton("polygon"),circle:gmButton("circle"),text:gmButton("text")};
@@ -3,8 +3,8 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IJodit, Nullable } from "jodit/esm/types";
7
- import { Plugin } from "jodit/esm/core/plugin";
6
+ import type { IJodit, Nullable } from "../../types";
7
+ import { Plugin } from "../../core/plugin";
8
8
  import "./config";
9
9
  import "./assets";
10
10
  import type { IUIMapState } from "./interface";
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- var e=this&&this.__decorate||function(e,t,o,s){var r,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,s);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};import{IS_TEST as t,SOURCE_CONSUMER as o}from"jodit/esm/core/constants.js";import{watch as s}from"jodit/esm/core/decorators/index.js";import{appendScriptAsync as r}from"jodit/esm/core/helpers/index.js";import{Plugin as i}from"jodit/esm/core/plugin/index.js";import{Button as a}from"jodit/esm/core/ui/button/index.js";import{Dialog as n}from"jodit/esm/modules/dialog/dialog.js";import{TabsWidget as l}from"jodit/esm/modules/widget/index.js";import"./config";import"./assets";import{COMMAND_OPEN_DIALOG as p,STORAGE_KEY as c}from"./helpers/const";import{generateJSScript as g}from"./helpers/generate-js-script";import{googleReady as d,GoogleReadyHandler as m,isApiAvailable as u}from"./helpers/helpers";import{staticUrl as h}from"./helpers/static-url";import{UIComboBox as f}from"./ui/combo-box/combo-box";import{UIMap as j,UIMapsControlsForm as M,UIMapsPropsForm as y}from"./ui";import{JoditPro as b}from"jodit-pro/esm/jodit-pro.js";window.JoditGoogleReadyHandler=m;export class googleMaps extends i{constructor(){super(...arguments),this.buttons=[{group:"media",name:"googleMaps"}],this.dialog=null}className(){return"google-maps"}afterInit(e){e.registerCommand(p,(()=>{this.openMapEditor(null,{})}))}beforeDestruct(e){}onOpenOnDblClick(e){if(e.dataset.googleMaps){let t;try{t=JSON.parse(this.j.ow.atob(e.dataset.googleMaps))}catch{}return this.openMapEditor(e,t),!1}}async openMapEditor(e,o){const s=this.j,i=this.getDialog(),n=this.j.o.googleMaps.saveStateInStorage?i.storage.get(c):void 0,{apiUrl:p}=this.jodit.o.googleMaps;u()||r(this.jodit,p.replace(/\${([^}]+)}/g,((e,t)=>this.get(t)??"")));const g={type:this.j.o.googleMaps.map.type,layer:this.j.o.googleMaps.map.layer,size:this.j.o.googleMaps.map.size,...n,...o},m=new j(i,g,this.j.options);m.container.classList.add(i.getFullElName("map"));const b=new f(s,{icon:"search",placeholder:"Search",clearButton:!0}).setMod("in-header",!0);b.container.classList.add(i.getFullElName("search")),this.j.async.promise((e=>{if(u())return void e(0);const intervalChecker=()=>{u()?e(0):this.j.async.setTimeout(intervalChecker,100)};intervalChecker(),d(e)})).then((()=>{m.setStatus("ready"),b.setStatus("ready")})),this.j.e.on(b,"select",((e,t)=>{t?m.map.fitBounds(t):e&&(m.state.center=[e.lat(),e.lng()])})),n||("auto"===this.j.o.googleMaps.map.center?navigator.geolocation.getCurrentPosition((e=>{m.state.center=[e.coords.latitude,e.coords.longitude]}),(()=>{m.state.center=this.j.o.googleMaps.map.defaultCenter})):m.state.center=this.j.o.googleMaps.map.center),i.setSize(...s.o.googleMaps.dialog.size).setHeader([b,"&nbsp;",a(s,"eye").onAction((()=>{const e=this.jodit.createInside.element("img");e.src=h(m),e.dataset.googleMaps=btoa(m.json());const t={value:e.outerHTML};this.onAfterGetValueFromEditor(t),s.execCommand("preview",null,t.value)}))]).setContent(l(s,[{name:"Map",icon:"map",content:m},{name:"Settings",content:new y(s,m.state)},{name:"Controls",icon:"menu",content:new M(s,m.state)}])).setFooter([a(s,"cancel","Cancel","default").onAction((()=>i.close())),a(s,"ok",e?"Save":"Insert","primary").onAction((()=>{m.destruct(),b.destruct(),i.e.off("beforeClose",onCLose),i.close(),this.insertMap(e,m)}))]).open();const onCLose=()=>{if(m.state.elements.length&&JSON.stringify(m.state.elements)!==JSON.stringify(g.elements)&&!t&&!confirm(this.i18n("Are you sure?")))return!1;m.destruct(),b.destruct(),i.e.off("beforeClose",onCLose)};i.e.on("beforeClose",onCLose)}getDialog(){if(!this.dialog){const e=new n({language:this.j.o.language});e.container.classList.add(this.getFullElName("")),this.dialog=e}return this.dialog}insertMap(e,t){const o=e??this.jodit.createInside.element("img");o.src=h(t),o.dataset.googleMaps=btoa(t.json()),e||this.jodit.s.insertImage(o)}onBeforeSetNativeEditorValue(e){e.value=e.value.replace(/<script[^>]+jodit-google-maps-init[^>]+>.*?<\/script>/gs,"")}onAfterGetValueFromEditor(e,t){this.j.o.googleMaps.useStaticImage||t===o||(e.value=e.value.replace(/(<img[^>]+)(["']?)data-google-maps\2\s*=(["'])([^"']+)\3([^>]*>)/gs,((e,t,o,s,r,i)=>{let a={};try{a=JSON.parse(this.j.ow.atob(r))}catch{}return`${t} id="${a.uid}" ${o}data-google-maps${o}=${s}${r}${s}${i}${g(this.j,a)}`})))}}googleMaps.requires=["license","color-picker"],e([s("?:openOnDblClick")],googleMaps.prototype,"onOpenOnDblClick",null),e([s(":beforeSetNativeEditorValue")],googleMaps.prototype,"onBeforeSetNativeEditorValue",null),e([s(":afterGetValueFromEditor")],googleMaps.prototype,"onAfterGetValueFromEditor",null),b.plugins.add("google-maps",googleMaps);
6
+ var e=this&&this.__decorate||function(e,t,o,s){var r,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,o,s);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(i=(a<3?r(i):a>3?r(t,o,i):r(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i};import{IS_TEST as t,SOURCE_CONSUMER as o}from"../../core/constants.js";import{watch as s}from"../../core/decorators.js";import{appendScriptAsync as r}from"../../core/helpers.js";import{Plugin as a}from"../../core/plugin.js";import{Button as i}from"../../core/ui/button.js";import{Dialog as n}from"../../modules/dialog/dialog.js";import{TabsWidget as l}from"../../modules/widget.js";import"./config.js";import"./assets/index.js";import{COMMAND_OPEN_DIALOG as p,STORAGE_KEY as c}from"./helpers/const.js";import{generateJSScript as g}from"./helpers/generate-js-script.js";import{googleReady as d,GoogleReadyHandler as m,isApiAvailable as u}from"./helpers/helpers.js";import{staticUrl as h}from"./helpers/static-url.js";import{UIComboBox as f}from"./ui/combo-box/combo-box.js";import{UIMap as j,UIMapsControlsForm as M,UIMapsPropsForm as y}from"./ui/index.js";import{JoditPro as b}from"../../jodit-pro.js";window.JoditGoogleReadyHandler=m;export class googleMaps extends a{constructor(){super(...arguments),this.buttons=[{group:"media",name:"googleMaps"}],this.dialog=null}className(){return"google-maps"}afterInit(e){e.registerCommand(p,(()=>{this.openMapEditor(null,{})}))}beforeDestruct(e){}onOpenOnDblClick(e){if(e.dataset.googleMaps){let t;try{t=JSON.parse(this.j.ow.atob(e.dataset.googleMaps))}catch{}return this.openMapEditor(e,t),!1}}async openMapEditor(e,o){const s=this.j,a=this.getDialog(),n=this.j.o.googleMaps.saveStateInStorage?a.storage.get(c):void 0,{apiUrl:p}=this.jodit.o.googleMaps;u()||r(this.jodit,p.replace(/\${([^}]+)}/g,((e,t)=>this.get(t)??"")));const g={type:this.j.o.googleMaps.map.type,layer:this.j.o.googleMaps.map.layer,size:this.j.o.googleMaps.map.size,...n,...o},m=new j(a,g,this.j.options);m.container.classList.add(a.getFullElName("map"));const b=new f(s,{icon:"search",placeholder:"Search",clearButton:!0}).setMod("in-header",!0);b.container.classList.add(a.getFullElName("search")),this.j.async.promise((e=>{if(u())return void e(0);const intervalChecker=()=>{u()?e(0):this.j.async.setTimeout(intervalChecker,100)};intervalChecker(),d(e)})).then((()=>{m.setStatus("ready"),b.setStatus("ready")})),this.j.e.on(b,"select",((e,t)=>{t?m.map.fitBounds(t):e&&(m.state.center=[e.lat(),e.lng()])})),n||("auto"===this.j.o.googleMaps.map.center?navigator.geolocation.getCurrentPosition((e=>{m.state.center=[e.coords.latitude,e.coords.longitude]}),(()=>{m.state.center=this.j.o.googleMaps.map.defaultCenter})):m.state.center=this.j.o.googleMaps.map.center),a.setSize(...s.o.googleMaps.dialog.size).setHeader([b,"&nbsp;",i(s,"eye").onAction((()=>{const e=this.jodit.createInside.element("img");e.src=h(m),e.dataset.googleMaps=btoa(m.json());const t={value:e.outerHTML};this.onAfterGetValueFromEditor(t),s.execCommand("preview",null,t.value)}))]).setContent(l(s,[{name:"Map",icon:"map",content:m},{name:"Settings",content:new y(s,m.state)},{name:"Controls",icon:"menu",content:new M(s,m.state)}])).setFooter([i(s,"cancel","Cancel","default").onAction((()=>a.close())),i(s,"ok",e?"Save":"Insert","primary").onAction((()=>{m.destruct(),b.destruct(),a.e.off("beforeClose",onCLose),a.close(),this.insertMap(e,m)}))]).open();const onCLose=()=>{if(m.state.elements.length&&JSON.stringify(m.state.elements)!==JSON.stringify(g.elements)&&!t&&!confirm(this.i18n("Are you sure?")))return!1;m.destruct(),b.destruct(),a.e.off("beforeClose",onCLose)};a.e.on("beforeClose",onCLose)}getDialog(){if(!this.dialog){const e=new n({language:this.j.o.language});e.container.classList.add(this.getFullElName("")),this.dialog=e}return this.dialog}insertMap(e,t){const o=e??this.jodit.createInside.element("img");o.src=h(t),o.dataset.googleMaps=btoa(t.json()),e||this.jodit.s.insertImage(o)}onBeforeSetNativeEditorValue(e){e.value=e.value.replace(/<script[^>]+jodit-google-maps-init[^>]+>.*?<\/script>/gs,"")}onAfterGetValueFromEditor(e,t){this.j.o.googleMaps.useStaticImage||t===o||(e.value=e.value.replace(/(<img[^>]+)(["']?)data-google-maps\2\s*=(["'])([^"']+)\3([^>]*>)/gs,((e,t,o,s,r,a)=>{let i={};try{i=JSON.parse(this.j.ow.atob(r))}catch{}return`${t} id="${i.uid}" ${o}data-google-maps${o}=${s}${r}${s}${a}${g(this.j,i)}`})))}}googleMaps.requires=["license","color-picker"],e([s("?:openOnDblClick")],googleMaps.prototype,"onOpenOnDblClick",null),e([s(":beforeSetNativeEditorValue")],googleMaps.prototype,"onBeforeSetNativeEditorValue",null),e([s(":afterGetValueFromEditor")],googleMaps.prototype,"onAfterGetValueFromEditor",null),b.plugins.add("google-maps",googleMaps);
@@ -3,6 +3,6 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IJodit } from "jodit/esm/types";
7
- import type { IUIMapState } from "jodit-pro/esm/plugins/google-maps/interface";
6
+ import type { IJodit } from "../../../types";
7
+ import type { IUIMapState } from "../interface";
8
8
  export declare function generateJSScript(jodit: IJodit, state: IUIMapState): string;
@@ -1 +1 @@
1
- import{ucfirst as t}from"jodit/esm/core/helpers/string/ucfirst.js";export function generateJSScript(n,e){return`<script class="jodit-google-maps-init" type="text/javascript">\n\t\tvar imgMap = document.getElementById('${e.uid}'),\n\t\t\tbox = document.createElement('div'),\n\t\t\tmapBox = document.createElement('div'),\n\t\t\tparentBox = imgMap && imgMap.parentNode,\n\t\t\tassign = Object.assign || function (a, b) {\n\t\t\t\treturn Object.keys(b).reduce(function(acc, key) {\n\t\t\t\t\tacc[key] = b[key];\n\t\t\t\t\treturn acc;\n\t\t\t\t}, a)\n\t\t\t};\n\n\t\tbox.id = 'b${e.uid}';\n\t\tparentBox ? parentBox.insertBefore(box, imgMap) : document.body.appendChild(box);\n\t\timgMap && box.appendChild(imgMap);\n\t\tbox.appendChild(mapBox);\n\n\t\tif (parentBox && parentBox.style.textAlign === 'center') {\n\t\t\tparentBox.style.margin = '0 auto';\n\t\t}\n\n\t\tbox.style.cssText = imgMap.style.cssText;\n\t\tbox.className = imgMap.className;\n\n\t\tvar w = (imgMap && imgMap.offsetWidth) || ${e.size[0]},\n\t\t\t\th = (imgMap && imgMap.offsetHeight) || ${e.size[1]};\n\n\t\tassign(box.style, {\n\t\t\tdisplay: !imgMap.style.cssText ? 'inline-block' : undefined,\n\t\t\twidth: w + 'px',\n\t\t\theight: h + 'px',\n\t\t\tposition: 'relative'\n\t\t});\n\n\t\tassign(mapBox.style, {\n\t\t\twidth: w + 'px',\n\t\t\theight: h + 'px',\n\t\t\tposition: 'absolute',\n\t\t\tleft: 0,\n\t\t\ttop: 0\n\t\t});\n\n\t\tfunction CreateGMap${e.uid}() {\n\t\t\tif (!mapBox) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar map = new google.maps.Map(mapBox, assign({\n\t\t\t\tzoom: ${e.zoom},\n\t\t\t\tcenter: { lat: ${e.center[0]}, lng: ${e.center[1]}},\n\t\t\t\tmapType: '${e.type}'\n\t\t\t}, ${JSON.stringify(e.controls)}));\n\n\t\t\tif (${"default"!==e.layer}) {\n\t\t\t\tnew google.maps.${t(e.layer)}Layer().setMap(map);\n\t\t\t}\n\n\t\t\tvar infoWindow = new google.maps.InfoWindow();\n\n\t\t\t${JSON.stringify(e.elements)}.forEach(function (elm) {\n\t\t\t\tswitch (elm.type) {\n\t\t\t\t\tcase 'marker': {\n\t\t\t\t\t\tvar obj = (new google.maps.Marker({\n\t\t\t\t\t\t\tposition: {lat: elm.coordinates[0], lng: elm.coordinates[1]},\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t\ttitle: elm.title\n\t\t\t\t\t\t}));\n\n\t\t\t\t\t\telm.text && obj.addListener('click', function () {\n\t\t\t\t\t\t\tinfoWindow.setContent(elm.text);\n\t\t\t\t\t\t\tinfoWindow.open(map, this);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcase 'circle': {\n\t\t\t\t\t\t(new google.maps.Circle({\n\t\t\t\t\t\t\tcenter: {lat: elm.coordinates[0], lng: elm.coordinates[1]},\n\t\t\t\t\t\t\tradius: elm.radius,\n\t\t\t\t\t\t\tstrokeColor: elm.strokeColor,\n\t\t\t\t\t\t\tfillColor: elm.fillColor,\n\t\t\t\t\t\t\tstrokeWeight: elm.strokeWeight,\n\t\t\t\t\t\t\tfillOpacity: elm.fillOpacity,\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t}));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcase 'polygon':\n\t\t\t\t\tcase 'polyline': {\n\t\t\t\t\t\tfunction toPath(array) {\n\t\t\t\t\t\t\treturn array.map(function (item) {\n\t\t\t\t\t\t\t\tif (Array.isArray(item[0])) {\n\t\t\t\t\t\t\t\t\treturn toPath(item);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn {lat: item[0], lng: item[1]};\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t(new google.maps[elm.type === 'polyline' ? 'Polyline' : 'Polygon']({\n\t\t\t\t\t\t\tpath: toPath(elm.coordinates),\n\t\t\t\t\t\t\tstrokeColor: elm.strokeColor,\n\t\t\t\t\t\t\tfillColor: elm.fillColor,\n\t\t\t\t\t\t\tstrokeWeight: elm.strokeWeight,\n\t\t\t\t\t\t\tfillOpacity: elm.fillOpacity,\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t}));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\n\t\tif (typeof google !== 'undefined' && typeof google.maps !=='undefined' && typeof google.maps.Map !== 'undefined') {\n\t\t\tCreateGMap${e.uid}();\n\t\t} else {\n\t\t\tvar scr = document.createElement('script');\n\t\t\tscr.src = 'https://maps.googleapis.com/maps/api/js?key=${n.o.googleMaps.API_KEY}&language=${n.o.language}&callback=CreateGMap${e.uid}';\n\t\t\tdocument.appendChild(scr);\n\t\t}\n\t\t/*]]>*/<\/script>`.replace(/[\n\t]+/g,"")}
1
+ import{ucfirst as t}from"../../../core/helpers/string/ucfirst.js";export function generateJSScript(n,e){return`<script class="jodit-google-maps-init" type="text/javascript">\n\t\tvar imgMap = document.getElementById('${e.uid}'),\n\t\t\tbox = document.createElement('div'),\n\t\t\tmapBox = document.createElement('div'),\n\t\t\tparentBox = imgMap && imgMap.parentNode,\n\t\t\tassign = Object.assign || function (a, b) {\n\t\t\t\treturn Object.keys(b).reduce(function(acc, key) {\n\t\t\t\t\tacc[key] = b[key];\n\t\t\t\t\treturn acc;\n\t\t\t\t}, a)\n\t\t\t};\n\n\t\tbox.id = 'b${e.uid}';\n\t\tparentBox ? parentBox.insertBefore(box, imgMap) : document.body.appendChild(box);\n\t\timgMap && box.appendChild(imgMap);\n\t\tbox.appendChild(mapBox);\n\n\t\tif (parentBox && parentBox.style.textAlign === 'center') {\n\t\t\tparentBox.style.margin = '0 auto';\n\t\t}\n\n\t\tbox.style.cssText = imgMap.style.cssText;\n\t\tbox.className = imgMap.className;\n\n\t\tvar w = (imgMap && imgMap.offsetWidth) || ${e.size[0]},\n\t\t\t\th = (imgMap && imgMap.offsetHeight) || ${e.size[1]};\n\n\t\tassign(box.style, {\n\t\t\tdisplay: !imgMap.style.cssText ? 'inline-block' : undefined,\n\t\t\twidth: w + 'px',\n\t\t\theight: h + 'px',\n\t\t\tposition: 'relative'\n\t\t});\n\n\t\tassign(mapBox.style, {\n\t\t\twidth: w + 'px',\n\t\t\theight: h + 'px',\n\t\t\tposition: 'absolute',\n\t\t\tleft: 0,\n\t\t\ttop: 0\n\t\t});\n\n\t\tfunction CreateGMap${e.uid}() {\n\t\t\tif (!mapBox) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar map = new google.maps.Map(mapBox, assign({\n\t\t\t\tzoom: ${e.zoom},\n\t\t\t\tcenter: { lat: ${e.center[0]}, lng: ${e.center[1]}},\n\t\t\t\tmapType: '${e.type}'\n\t\t\t}, ${JSON.stringify(e.controls)}));\n\n\t\t\tif (${"default"!==e.layer}) {\n\t\t\t\tnew google.maps.${t(e.layer)}Layer().setMap(map);\n\t\t\t}\n\n\t\t\tvar infoWindow = new google.maps.InfoWindow();\n\n\t\t\t${JSON.stringify(e.elements)}.forEach(function (elm) {\n\t\t\t\tswitch (elm.type) {\n\t\t\t\t\tcase 'marker': {\n\t\t\t\t\t\tvar obj = (new google.maps.Marker({\n\t\t\t\t\t\t\tposition: {lat: elm.coordinates[0], lng: elm.coordinates[1]},\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t\ttitle: elm.title\n\t\t\t\t\t\t}));\n\n\t\t\t\t\t\telm.text && obj.addListener('click', function () {\n\t\t\t\t\t\t\tinfoWindow.setContent(elm.text);\n\t\t\t\t\t\t\tinfoWindow.open(map, this);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcase 'circle': {\n\t\t\t\t\t\t(new google.maps.Circle({\n\t\t\t\t\t\t\tcenter: {lat: elm.coordinates[0], lng: elm.coordinates[1]},\n\t\t\t\t\t\t\tradius: elm.radius,\n\t\t\t\t\t\t\tstrokeColor: elm.strokeColor,\n\t\t\t\t\t\t\tfillColor: elm.fillColor,\n\t\t\t\t\t\t\tstrokeWeight: elm.strokeWeight,\n\t\t\t\t\t\t\tfillOpacity: elm.fillOpacity,\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t}));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcase 'polygon':\n\t\t\t\t\tcase 'polyline': {\n\t\t\t\t\t\tfunction toPath(array) {\n\t\t\t\t\t\t\treturn array.map(function (item) {\n\t\t\t\t\t\t\t\tif (Array.isArray(item[0])) {\n\t\t\t\t\t\t\t\t\treturn toPath(item);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn {lat: item[0], lng: item[1]};\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t(new google.maps[elm.type === 'polyline' ? 'Polyline' : 'Polygon']({\n\t\t\t\t\t\t\tpath: toPath(elm.coordinates),\n\t\t\t\t\t\t\tstrokeColor: elm.strokeColor,\n\t\t\t\t\t\t\tfillColor: elm.fillColor,\n\t\t\t\t\t\t\tstrokeWeight: elm.strokeWeight,\n\t\t\t\t\t\t\tfillOpacity: elm.fillOpacity,\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t}));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\n\t\tif (typeof google !== 'undefined' && typeof google.maps !=='undefined' && typeof google.maps.Map !== 'undefined') {\n\t\t\tCreateGMap${e.uid}();\n\t\t} else {\n\t\t\tvar scr = document.createElement('script');\n\t\t\tscr.src = 'https://maps.googleapis.com/maps/api/js?key=${n.o.googleMaps.API_KEY}&language=${n.o.language}&callback=CreateGMap${e.uid}';\n\t\t\tdocument.appendChild(scr);\n\t\t}\n\t\t/*]]>*/<\/script>`.replace(/[\n\t]+/g,"")}
@@ -3,5 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { UIMap } from "jodit-pro/esm/plugins/google-maps/ui/map/map";
6
+ import type { UIMap } from "../ui/map/map";
7
7
  export declare function generateStaticElements(uiMap: UIMap): string;
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import{stripTags as e}from"jodit/esm/core/helpers/html/strip-tags.js";import{arrayToPath as o,specialColor as t}from"./helpers";export function generateStaticElements(r){return r.state.elements.map((r=>{switch(r.type){case"polygon":return`&path=fillcolor:${t(r.fillColor??"#fff")}%7Cweight:${r.strokeWeight??1}%7Ccolor:${t(r.strokeColor??"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath(o(r.coordinates))}`;case"polyline":return`&path=weight:${r.strokeWeight??1}%7Ccolor:${t(r.strokeColor??"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath(o(r.coordinates))}`;case"marker":return`&markers=color:blue%7Clabel:${encodeURIComponent(e(r.text??"").charAt(0).toUpperCase())}%7C${r.coordinates}`}return""})).join("")}
6
+ import{stripTags as e}from"../../../core/helpers/html/strip-tags.js";import{arrayToPath as o,specialColor as t}from"./helpers.js";export function generateStaticElements(r){return r.state.elements.map((r=>{switch(r.type){case"polygon":return`&path=fillcolor:${t(r.fillColor??"#fff")}%7Cweight:${r.strokeWeight??1}%7Ccolor:${t(r.strokeColor??"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath(o(r.coordinates))}`;case"polyline":return`&path=weight:${r.strokeWeight??1}%7Ccolor:${t(r.strokeColor??"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath(o(r.coordinates))}`;case"marker":return`&markers=color:blue%7Clabel:${encodeURIComponent(e(r.text??"").charAt(0).toUpperCase())}%7C${r.coordinates}`}return""})).join("")}
@@ -3,5 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { UIMap } from "jodit-pro/esm/plugins/google-maps/ui/map/map";
6
+ import type { UIMap } from "../ui/map/map";
7
7
  export declare function staticUrl(uiMap: UIMap): string;
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import{generateStaticElements as t}from"./generate-static-elements";export function staticUrl(e){const{state:o}=e;return`https://maps.googleapis.com/maps/api/staticmap?center=${o.center.join(",")}&zoom=${o.zoom}&size=${o.size.join("x")}&maptype=${o.type}&key=${e.options.googleMaps.API_KEY}`+t(e)}
6
+ import{generateStaticElements as t}from"./generate-static-elements.js";export function staticUrl(e){const{state:o}=e;return`https://maps.googleapis.com/maps/api/staticmap?center=${o.center.join(",")}&zoom=${o.zoom}&size=${o.size.join("x")}&maptype=${o.type}&key=${e.options.googleMaps.API_KEY}`+t(e)}
@@ -3,7 +3,7 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import { UIInput } from "jodit/esm/core/ui";
6
+ import { UIInput } from "../../../../core/ui";
7
7
 
8
8
  export declare class UIComboBox extends UIInput {
9
9
  className(): string;
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- var e=this&&this.__decorate||function(e,o,t,n){var r,c=arguments.length,s=c<3?o:null===n?n=Object.getOwnPropertyDescriptor(o,t):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,o,t,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(c<3?r(s):c>3?r(o,t,s):r(o,t))||s);return c>3&&s&&Object.defineProperty(o,t,s),s};import{debounce as o,hook as t,watch as n}from"jodit/esm/core/decorators/index.js";import{UIInput as r}from"jodit/esm/core/ui/index.js";export class UIComboBox extends r{className(){return"UIComboBox"}onReady(){const e=new google.maps.places.Autocomplete(this.nativeInput,{fields:["address_components","geometry","name"],types:["geocode"]});e.addListener("place_changed",(()=>{const o=e.getPlace();this.j.e.fire(this,"select",o.geometry?.location,o.geometry?.viewport)}))}async onInput(){}}e([t("ready")],UIComboBox.prototype,"onReady",null),e([n("nativeInput:input"),o()],UIComboBox.prototype,"onInput",null);
6
+ var e=this&&this.__decorate||function(e,o,t,n){var r,c=arguments.length,s=c<3?o:null===n?n=Object.getOwnPropertyDescriptor(o,t):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,o,t,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(c<3?r(s):c>3?r(o,t,s):r(o,t))||s);return c>3&&s&&Object.defineProperty(o,t,s),s};import{debounce as o,hook as t,watch as n}from"../../../../core/decorators.js";import{UIInput as r}from"../../../../core/ui/index.js";export class UIComboBox extends r{className(){return"UIComboBox"}onReady(){const e=new google.maps.places.Autocomplete(this.nativeInput,{fields:["address_components","geometry","name"],types:["geocode"]});e.addListener("place_changed",(()=>{const o=e.getPlace();this.j.e.fire(this,"select",o.geometry?.location,o.geometry?.viewport)}))}async onInput(){}}e([t("ready")],UIComboBox.prototype,"onReady",null),e([n("nativeInput:input"),o()],UIComboBox.prototype,"onInput",null);
@@ -3,8 +3,8 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IJodit } from "jodit/esm/types";
7
- import { UIGroup } from "jodit/esm/core/ui";
6
+ import type { IJodit } from "../../../../types";
7
+ import { UIGroup } from "../../../../core/ui";
8
8
  export declare abstract class UIBaseEditor<T> extends UIGroup {
9
9
  readonly state: T;
10
10
  readonly options: IJodit['options'];
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import{Button as t,UIGroup as s}from"jodit/esm/core/ui/index.js";export class UIBaseEditor extends s{className(){return"UIBaseEditor"}render(){return"<div>\n\t\t\t<div class='&__header'></div>\n\t\t\t<div class='&__form'></div>\n\t\t\t<div class='&__buttons'></div>\n\t\t</div>"}onReady(){const s=t(this.j,"bin").onAction((()=>this.j.e.fire(this,"bin")));this.append(s,"buttons")}constructor(t,s,i){super(t),this.state=s,this.options=i}}
6
+ import{Button as t,UIGroup as s}from"../../../../core/ui/index.js";export class UIBaseEditor extends s{className(){return"UIBaseEditor"}render(){return"<div>\n\t\t\t<div class='&__header'></div>\n\t\t\t<div class='&__form'></div>\n\t\t\t<div class='&__buttons'></div>\n\t\t</div>"}onReady(){const s=t(this.j,"bin").onAction((()=>this.j.e.fire(this,"bin")));this.append(s,"buttons")}constructor(t,s,i){super(t),this.state=s,this.options=i}}
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- export*from"./marker/marker";export*from"./polygon/polygon";export*from"./polyline/polyline";
6
+ export*from"./marker/marker.js";export*from"./polygon/polygon.js";export*from"./polyline/polyline.js";
@@ -3,8 +3,8 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IMarkerState } from "jodit-pro/esm/plugins/google-maps/interface";
7
- import { UIBaseEditor } from "jodit-pro/esm/plugins/google-maps/ui/editors/base";
6
+ import type { IMarkerState } from "../../../interface";
7
+ import { UIBaseEditor } from "../base";
8
8
  export declare class UIMarkerEditor extends UIBaseEditor<IMarkerState> {
9
9
  protected onReady(): void;
10
10
  }
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- var e=this&&this.__decorate||function(e,t,o,r){var i,s=arguments.length,n=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(i=e[p])&&(n=(s<3?i(n):s>3?i(t,o,n):i(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};import{component as t,hook as o}from"jodit/esm/core/decorators/index.js";import{UIBaseEditor as r}from"jodit-pro/esm/plugins/google-maps/ui/editors/base.js";import{UIWysiwyg as i}from"jodit-pro/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js";let s=class UIMarkerEditor extends r{onReady(){super.onReady();const e=new i(this.j,this.options.googleMaps.inlineEditorOptions,this.state.text??"",(e=>this.j.e.fire(this,"change","text",e)));this.append(e,"form")}};e([o("ready")],s.prototype,"onReady",null),s=e([t],s);export{s as UIMarkerEditor};
6
+ var e=this&&this.__decorate||function(e,t,o,r){var s,i=arguments.length,n=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(i<3?s(n):i>3?s(t,o,n):s(t,o))||n);return i>3&&n&&Object.defineProperty(t,o,n),n};import{component as t,hook as o}from"../../../../../core/decorators.js";import{UIBaseEditor as r}from"../base.js";import{UIWysiwyg as s}from"../../wysiwyg/wysiwyg.js";let i=class UIMarkerEditor extends r{onReady(){super.onReady();const e=new s(this.j,this.options.googleMaps.inlineEditorOptions,this.state.text??"",(e=>this.j.e.fire(this,"change","text",e)));this.append(e,"form")}};e([o("ready")],i.prototype,"onReady",null),i=e([t],i);export{i as UIMarkerEditor};
@@ -3,8 +3,8 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IPolygonState } from "jodit-pro/esm/plugins/google-maps/interface";
7
- import { UIPolylineEditor } from "jodit-pro/esm/plugins/google-maps/ui/editors/polyline/polyline";
6
+ import type { IPolygonState } from "../../../interface";
7
+ import { UIPolylineEditor } from "../polyline/polyline";
8
8
  export declare class UIPolygonEditor extends UIPolylineEditor<IPolygonState> {
9
9
  protected onReady(): void;
10
10
  }
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- var e=this&&this.__decorate||function(e,o,t,r){var i,l=arguments.length,n=l<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,o,t,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(l<3?i(n):l>3?i(o,t,n):i(o,t))||n);return l>3&&n&&Object.defineProperty(o,t,n),n};import{component as o,hook as t}from"jodit/esm/core/decorators/index.js";import{UIRange as r}from"jodit-pro/esm/core/ui/form/range/range.js";import{ColorInput as i}from"jodit-pro/esm/plugins/color-picker/ui/input/color-input.js";import{UIPolylineEditor as l}from"jodit-pro/esm/plugins/google-maps/ui/editors/polyline/polyline.js";let n=class UIPolygonEditor extends l{onReady(){this.append([new i(this.j,{label:"Fill color",value:this.state.fillColor??"#000",onChange:e=>this.j.e.fire(this,"change","fillColor",e)}).setMod("trigger",!1),new r(this.j,{label:"Opacity",min:0,max:1,value:this.state.fillOpacity??1,onChange:e=>{this.j.e.fire(this,"change","fillOpacity",parseFloat(e)||0)}}).setMod("log",!1)],"form")}};e([t("ready")],n.prototype,"onReady",null),n=e([o],n);export{n as UIPolygonEditor};
6
+ var e=this&&this.__decorate||function(e,t,o,r){var i,l=arguments.length,n=l<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(n=(l<3?i(n):l>3?i(t,o,n):i(t,o))||n);return l>3&&n&&Object.defineProperty(t,o,n),n};import{component as t,hook as o}from"../../../../../core/decorators.js";import{UIRange as r}from"../../../../../core/ui/form/range/range.js";import{ColorInput as i}from"../../../../color-picker/ui/input/color-input.js";import{UIPolylineEditor as l}from"../polyline/polyline.js";let n=class UIPolygonEditor extends l{onReady(){this.append([new i(this.j,{label:"Fill color",value:this.state.fillColor??"#000",onChange:e=>this.j.e.fire(this,"change","fillColor",e)}).setMod("trigger",!1),new r(this.j,{label:"Opacity",min:0,max:1,value:this.state.fillOpacity??1,onChange:e=>{this.j.e.fire(this,"change","fillOpacity",parseFloat(e)||0)}}).setMod("log",!1)],"form")}};e([o("ready")],n.prototype,"onReady",null),n=e([t],n);export{n as UIPolygonEditor};
@@ -3,8 +3,8 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IPolylineState } from "jodit-pro/esm/plugins/google-maps/interface";
7
- import { UIBaseEditor } from "jodit-pro/esm/plugins/google-maps/ui/editors/base";
6
+ import type { IPolylineState } from "../../../interface";
7
+ import { UIBaseEditor } from "../base";
8
8
  export declare class UIPolylineEditor<T extends Omit<IPolylineState, 'type'>> extends UIBaseEditor<T> {
9
9
  protected onReady(): void;
10
10
  }
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- var e=this&&this.__decorate||function(e,t,o,r){var i,s=arguments.length,n=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(s<3?i(n):s>3?i(t,o,n):i(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};import{component as t,hook as o}from"jodit/esm/core/decorators/index.js";import{UIInput as r}from"jodit/esm/core/ui/form/inputs/input/input.js";import{ColorInput as i}from"jodit-pro/esm/plugins/color-picker/ui/input/color-input.js";import{UIBaseEditor as s}from"jodit-pro/esm/plugins/google-maps/ui/editors/base.js";let n=class UIPolylineEditor extends s{onReady(){super.onReady(),this.append([new r(this.j,{label:"Stroke weight",value:this.state.strokeWeight??1,type:"number",onChange:e=>this.j.e.fire(this,"change","strokeWeight",e)}),new i(this.j,{label:"Stroke color",value:this.state.strokeColor??"#000",onChange:e=>this.j.e.fire(this,"change","strokeColor",e)}).setMod("trigger",!1)],"form")}};e([o("ready")],n.prototype,"onReady",null),n=e([t],n);export{n as UIPolylineEditor};
6
+ var e=this&&this.__decorate||function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};import{component as t,hook as o}from"../../../../../core/decorators.js";import{UIInput as r}from"../../../../../core/ui/form/inputs/input/input.js";import{ColorInput as i}from"../../../../color-picker/ui/input/color-input.js";import{UIBaseEditor as n}from"../base.js";let s=class UIPolylineEditor extends n{onReady(){super.onReady(),this.append([new r(this.j,{label:"Stroke weight",value:this.state.strokeWeight??1,type:"number",onChange:e=>this.j.e.fire(this,"change","strokeWeight",e)}),new i(this.j,{label:"Stroke color",value:this.state.strokeColor??"#000",onChange:e=>this.j.e.fire(this,"change","strokeColor",e)}).setMod("trigger",!1)],"form")}};e([o("ready")],s.prototype,"onReady",null),s=e([t],s);export{s as UIPolylineEditor};
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- export*from"./editors";export*from"./map/map";export*from"./maps-controls/maps-controls";export*from"./maps-props/maps-props";export*from"./wysiwyg/wysiwyg";
6
+ export*from"./editors/index.js";export*from"./map/map.js";export*from"./maps-controls/maps-controls.js";export*from"./maps-props/maps-props.js";export*from"./wysiwyg/wysiwyg.js";
@@ -4,11 +4,11 @@
4
4
  * See LICENSE.md in the project root for license information.
5
5
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
6
6
  */
7
- import type { IJodit } from "jodit/esm/types";
8
- import { UIElement, UIGroup } from "jodit/esm/core/ui";
9
- import "jodit-pro/esm/plugins/google-maps/config";
7
+ import type { IJodit } from "../../../../types";
8
+ import { UIElement, UIGroup } from "../../../../core/ui";
9
+ import "../../config";
10
10
 
11
- import type { CreateMode, IUIMapElement, IUIMapState } from "jodit-pro/esm/plugins/google-maps/interface";
11
+ import type { CreateMode, IUIMapElement, IUIMapState } from "../../interface";
12
12
  export declare class UIMap extends UIGroup {
13
13
  readonly options: IJodit['options'];
14
14
  private drawingManager?;