jodit-pro 4.2.8 → 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,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,s,o){var a,n=arguments.length,i=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,o);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(i=(n<3?a(i):n>3?a(e,s,i):a(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};import{debounce as e,hook as s,wait as o,watch as a}from"jodit/esm/core/decorators/index.js";import{uniqueUid as n}from"jodit/esm/core/global.js";import{assert as i}from"jodit/esm/core/helpers/utils/assert.js";import{css as l}from"jodit/esm/core/helpers/utils/css.js";import{UIElement as r,UIGroup as p}from"jodit/esm/core/ui/index.js";import{ToolbarCollection as h}from"jodit/esm/modules/toolbar/collection/collection.js";import"jodit-pro/esm/plugins/google-maps/config.js";import{initOrUpdateElementFromState as m}from"./modules/init-or-update-element-from-state";import{addNewInState as g}from"./modules";import{STORAGE_KEY as c}from"jodit-pro/esm/plugins/google-maps/helpers/const.js";export class UIMap extends p{className(){return"UIMap"}json(){return JSON.stringify({...this.state,mode:"hand"})}async onReady(){await this.apiLoaded;const t=this.getElm("map-root");i(null!=t,"map-root element does not exists"),this.map=new google.maps.Map(t,{center:{lat:this.state.center[0],lng:this.state.center[1]},zoom:this.state.zoom,mapTypeId:this.state.type}),this.map.addListener("zoom_changed",(()=>{this.state.zoom=this.map.getZoom()??10})),this.map.addListener("center_changed",(()=>{this.state.center=[this.map?.getCenter()?.lat()??55,this.map?.getCenter()?.lng()??34]})),this.map.addListener("maptypeid_changed",(()=>{const t=this.map.getMapTypeId();t&&(this.state.type=t)})),this.initDrawManager(),this.onChangeElementsList(),this.onChangeSize(),this.onChangeControls(),this.onChangeLayer(),this.onChangeMapType(),this.onChangeMode(),this.mapInitialized=!0,this.j.async.requestIdleCallback((()=>{this.j.e.fire(this,"GoogleMapsIsReady")}))}initDrawManager(){try{const t=new google.maps.drawing.DrawingManager;t.setMap(this.map),t.setOptions({drawingControl:!1,polygonOptions:{...this.options.googleMaps.map.defaultStates.polygon,clickable:!0,editable:!0},polylineOptions:{...this.options.googleMaps.map.defaultStates.polyline,clickable:!0,editable:!0},markerOptions:{...this.options.googleMaps.map.defaultStates.marker,clickable:!0},circleOptions:{...this.options.googleMaps.map.defaultStates.circle,clickable:!0,editable:!0}}),this.drawingManager=t,google.maps.event.addListener(t,"overlaycomplete",(t=>{t.overlay&&(g.call(this,t.overlay),t.overlay.setMap(null))}))}catch{}}changeCreateMode(t){this.state.mode=this.state.mode===t?"hand":t}onChangeMode(){this.j.buffer.set("createMode.gm",this.state.mode),this.drawingManager?.setDrawingMode("hand"===this.state.mode?null:this.state.mode),this.j.e.fire("updateToolbar")}onChangeElementsList(){const{state:{elements:t},mapElements:e}=this;t.length<e.length&&e.slice(t.length).forEach((t=>{t.gme.setMap(null)})),e.length=t.length,t.forEach(((t,e)=>m.call(this,t,e)))}onChangeCenter(){const t=this.map.getCenter();t?.lat()===this.state.center[0]&&t?.lng()===this.state.center[1]||this.map.setCenter({lat:this.state.center[0],lng:this.state.center[1]})}onChangeZoom(){this.map?.setZoom(this.state.zoom)}onChangeControls(){let t;for(t in this.state.controls)this.map?.set(t,this.state.controls[t])}onChangeBound(){this.options.googleMaps.saveStateInStorage&&this.j.storage.set(c,{center:this.state.center,size:this.state.size,zoom:this.state.zoom,type:this.state.type,layer:this.state.layer,controls:this.state.controls})}onChangeSize(){const t=this.getElm("map-size");i(null!=t,"map-size element does not exists"),l(t,{width:this.state.size[0],height:this.state.size[1]})}onChangeMapType(){this.map.setMapTypeId(this.state.type)}onChangeLayer(){switch(this.layers.forEach((t=>t.setMap(null))),this.layers.length=0,this.state.layer){case"traffic":this.layers.push(new google.maps.TrafficLayer);break;case"transit":this.layers.push(new google.maps.TransitLayer);break;case"bicycling":this.layers.push(new google.maps.BicyclingLayer)}this.layers.forEach((t=>t.setMap(this.map)))}render(){return"<div>\n\t\t\t<div class='&__map-root'></div>\n\t\t\t<div class='&__map-size'></div>\n\t\t\t<div class='&__map-palette'></div>\n\t\t</div>"}appendChildToContainer(){}constructor(t,e,s){super(t),this.options=s,this.toolbar=new h(this.jodit),this.state={uid:"jd"+n()+(new Date).toString().replace(/[^0-9]/g,""),layer:this.options.googleMaps.map.layer,center:this.options.googleMaps.map.defaultCenter,zoom:this.options.googleMaps.map.defaultZoom,size:this.options.googleMaps.map.size,type:this.options.googleMaps.map.type,controls:{zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,rotateControl:!0,fullscreenControl:!0},mode:"hand",elements:[]},this.mapElements=[],this.apiLoaded=null,this.mapInitialized=!1,this.layers=[],Object.assign(this.state,e),this.toolbar.build(["gm.hand","gm.marker","gm.polyline","gm.polygon","gm.circle"]);const o=this.getElm("map-palette");i(null!=o,"palette element does not exists"),o.appendChild(this.toolbar.container)}}t([s("ready")],UIMap.prototype,"onReady",null),t([a("?:changeCreateMode.gm")],UIMap.prototype,"changeCreateMode",null),t([a("state.mode")],UIMap.prototype,"onChangeMode",null),t([a("state.elements")],UIMap.prototype,"onChangeElementsList",null),t([a("state.center"),o((t=>t.mapInitialized)),e()],UIMap.prototype,"onChangeCenter",null),t([a("state.zoom"),e()],UIMap.prototype,"onChangeZoom",null),t([a("state.controls")],UIMap.prototype,"onChangeControls",null),t([a(["state.center","state.zoom","state.controls","state.size","state.type","state.layer"]),o((t=>t.mapInitialized)),e()],UIMap.prototype,"onChangeBound",null),t([a("state.size"),e()],UIMap.prototype,"onChangeSize",null),t([a("state.type")],UIMap.prototype,"onChangeMapType",null),t([a("state.layer")],UIMap.prototype,"onChangeLayer",null);
6
+ var t=this&&this.__decorate||function(t,e,s,a){var o,n=arguments.length,i=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,s,i):o(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};import{debounce as e,hook as s,wait as a,watch as o}from"../../../../core/decorators.js";import{uniqueUid as n}from"../../../../core/global.js";import{assert as i}from"../../../../core/helpers/utils/assert.js";import{css as l}from"../../../../core/helpers/utils/css.js";import{UIElement as r,UIGroup as p}from"../../../../core/ui/index.js";import{ToolbarCollection as h}from"../../../../modules/toolbar/collection/collection.js";import"../../config.js";import{initOrUpdateElementFromState as m}from"./modules/init-or-update-element-from-state.js";import{addNewInState as g}from"./modules/index.js";import{STORAGE_KEY as c}from"../../helpers/const.js";export class UIMap extends p{className(){return"UIMap"}json(){return JSON.stringify({...this.state,mode:"hand"})}async onReady(){await this.apiLoaded;const t=this.getElm("map-root");i(null!=t,"map-root element does not exists"),this.map=new google.maps.Map(t,{center:{lat:this.state.center[0],lng:this.state.center[1]},zoom:this.state.zoom,mapTypeId:this.state.type}),this.map.addListener("zoom_changed",(()=>{this.state.zoom=this.map.getZoom()??10})),this.map.addListener("center_changed",(()=>{this.state.center=[this.map?.getCenter()?.lat()??55,this.map?.getCenter()?.lng()??34]})),this.map.addListener("maptypeid_changed",(()=>{const t=this.map.getMapTypeId();t&&(this.state.type=t)})),this.initDrawManager(),this.onChangeElementsList(),this.onChangeSize(),this.onChangeControls(),this.onChangeLayer(),this.onChangeMapType(),this.onChangeMode(),this.mapInitialized=!0,this.j.async.requestIdleCallback((()=>{this.j.e.fire(this,"GoogleMapsIsReady")}))}initDrawManager(){try{const t=new google.maps.drawing.DrawingManager;t.setMap(this.map),t.setOptions({drawingControl:!1,polygonOptions:{...this.options.googleMaps.map.defaultStates.polygon,clickable:!0,editable:!0},polylineOptions:{...this.options.googleMaps.map.defaultStates.polyline,clickable:!0,editable:!0},markerOptions:{...this.options.googleMaps.map.defaultStates.marker,clickable:!0},circleOptions:{...this.options.googleMaps.map.defaultStates.circle,clickable:!0,editable:!0}}),this.drawingManager=t,google.maps.event.addListener(t,"overlaycomplete",(t=>{t.overlay&&(g.call(this,t.overlay),t.overlay.setMap(null))}))}catch{}}changeCreateMode(t){this.state.mode=this.state.mode===t?"hand":t}onChangeMode(){this.j.buffer.set("createMode.gm",this.state.mode),this.drawingManager?.setDrawingMode("hand"===this.state.mode?null:this.state.mode),this.j.e.fire("updateToolbar")}onChangeElementsList(){const{state:{elements:t},mapElements:e}=this;t.length<e.length&&e.slice(t.length).forEach((t=>{t.gme.setMap(null)})),e.length=t.length,t.forEach(((t,e)=>m.call(this,t,e)))}onChangeCenter(){const t=this.map.getCenter();t?.lat()===this.state.center[0]&&t?.lng()===this.state.center[1]||this.map.setCenter({lat:this.state.center[0],lng:this.state.center[1]})}onChangeZoom(){this.map?.setZoom(this.state.zoom)}onChangeControls(){let t;for(t in this.state.controls)this.map?.set(t,this.state.controls[t])}onChangeBound(){this.options.googleMaps.saveStateInStorage&&this.j.storage.set(c,{center:this.state.center,size:this.state.size,zoom:this.state.zoom,type:this.state.type,layer:this.state.layer,controls:this.state.controls})}onChangeSize(){const t=this.getElm("map-size");i(null!=t,"map-size element does not exists"),l(t,{width:this.state.size[0],height:this.state.size[1]})}onChangeMapType(){this.map.setMapTypeId(this.state.type)}onChangeLayer(){switch(this.layers.forEach((t=>t.setMap(null))),this.layers.length=0,this.state.layer){case"traffic":this.layers.push(new google.maps.TrafficLayer);break;case"transit":this.layers.push(new google.maps.TransitLayer);break;case"bicycling":this.layers.push(new google.maps.BicyclingLayer)}this.layers.forEach((t=>t.setMap(this.map)))}render(){return"<div>\n\t\t\t<div class='&__map-root'></div>\n\t\t\t<div class='&__map-size'></div>\n\t\t\t<div class='&__map-palette'></div>\n\t\t</div>"}appendChildToContainer(){}constructor(t,e,s){super(t),this.options=s,this.toolbar=new h(this.jodit),this.state={uid:"jd"+n()+(new Date).toString().replace(/[^0-9]/g,""),layer:this.options.googleMaps.map.layer,center:this.options.googleMaps.map.defaultCenter,zoom:this.options.googleMaps.map.defaultZoom,size:this.options.googleMaps.map.size,type:this.options.googleMaps.map.type,controls:{zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,rotateControl:!0,fullscreenControl:!0},mode:"hand",elements:[]},this.mapElements=[],this.apiLoaded=null,this.mapInitialized=!1,this.layers=[],Object.assign(this.state,e),this.toolbar.build(["gm.hand","gm.marker","gm.polyline","gm.polygon","gm.circle"]);const a=this.getElm("map-palette");i(null!=a,"palette element does not exists"),a.appendChild(this.toolbar.container)}}t([s("ready")],UIMap.prototype,"onReady",null),t([o("?:changeCreateMode.gm")],UIMap.prototype,"changeCreateMode",null),t([o("state.mode")],UIMap.prototype,"onChangeMode",null),t([o("state.elements")],UIMap.prototype,"onChangeElementsList",null),t([o("state.center"),a((t=>t.mapInitialized)),e()],UIMap.prototype,"onChangeCenter",null),t([o("state.zoom"),e()],UIMap.prototype,"onChangeZoom",null),t([o("state.controls")],UIMap.prototype,"onChangeControls",null),t([o(["state.center","state.zoom","state.controls","state.size","state.type","state.layer"]),a((t=>t.mapInitialized)),e()],UIMap.prototype,"onChangeBound",null),t([o("state.size"),e()],UIMap.prototype,"onChangeSize",null),t([o("state.type")],UIMap.prototype,"onChangeMapType",null),t([o("state.layer")],UIMap.prototype,"onChangeLayer",null);
@@ -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 { IGMElement } from "jodit-pro/esm/plugins/google-maps/interface";
7
- import type { UIMap } from "jodit-pro/esm/plugins/google-maps/ui/map/map";
6
+ import type { IGMElement } from "../../../interface";
7
+ import type { UIMap } from "../map";
8
8
  export declare function addNewInState(this: UIMap, mvc: IGMElement): void;
@@ -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{pathToArray as t}from"jodit-pro/esm/plugins/google-maps/helpers/helpers.js";export function addNewInState(e){switch(this.state.mode){case"polyline":case"polygon":{const{mode:s}=this.state;this.state.elements=[...this.state.elements,{type:s,coordinates:t(e.getPath()),...this.options.googleMaps.map.defaultStates[s]}];break}case"circle":{const t=e;this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[t.getCenter()?.lat()??0,t.getCenter()?.lng()??0],radius:t.getRadius(),...this.options.googleMaps.map.defaultStates.circle}];break}case"marker":{const t=e;this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[t.getPosition()?.lat()??0,t.getPosition()?.lng()??0],...this.options.googleMaps.map.defaultStates.marker}];break}}}
6
+ import{pathToArray as t}from"../../../helpers/helpers.js";export function addNewInState(e){switch(this.state.mode){case"polyline":case"polygon":{const{mode:s}=this.state;this.state.elements=[...this.state.elements,{type:s,coordinates:t(e.getPath()),...this.options.googleMaps.map.defaultStates[s]}];break}case"circle":{const t=e;this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[t.getCenter()?.lat()??0,t.getCenter()?.lng()??0],radius:t.getRadius(),...this.options.googleMaps.map.defaultStates.circle}];break}case"marker":{const t=e;this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[t.getPosition()?.lat()??0,t.getPosition()?.lng()??0],...this.options.googleMaps.map.defaultStates.marker}];break}}}
@@ -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"./add-new-in-state";export*from"./on-change-geometries";export*from"./open-props-dialog";export*from"./remove-element";export*from"./update-state-and-gme";
6
+ export*from"./add-new-in-state.js";export*from"./on-change-geometries.js";export*from"./open-props-dialog.js";export*from"./remove-element.js";export*from"./update-state-and-gme.js";
@@ -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 { IUIMapElementState } from "jodit-pro/esm/plugins/google-maps/interface";
7
- import type { UIMap } from "jodit-pro/esm/plugins/google-maps/ui/map/map";
6
+ import type { IUIMapElementState } from "../../../interface";
7
+ import type { UIMap } from "../map";
8
8
  export declare function initOrUpdateElementFromState(this: UIMap, state: IUIMapElementState, index: number): void;
@@ -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{uniqueUid as e}from"jodit/esm/core/global.js";import{Icon as t}from"jodit/esm/core/ui/icon.js";import{onChangeGeometries as o}from"./on-change-geometries";import{openPropsDialog as a}from"./open-props-dialog";import{updateStateAndGme as i}from"./update-state-and-gme";import{arrayToPath as l}from"jodit-pro/esm/plugins/google-maps/helpers/helpers.js";export function initOrUpdateElementFromState(r,s){const p=this.mapElements[s];if(p){if(p.state.type===r.type)return i.call(this,r,s);p.gme.setMap(null)}let n;switch(r.type){case"text":n=new google.maps.Marker({position:new google.maps.LatLng(r.coordinates[0],r.coordinates[1]),draggable:!0,title:r.text,map:this.map});break;case"marker":n=new google.maps.Marker({position:new google.maps.LatLng(r.coordinates[0],r.coordinates[1]),draggable:!0,label:r.showCaption?r.title:"",title:r.title,icon:r.icon?t.get(r.icon):null,map:this.map});break;case"polyline":case"polygon":{const e=l(r.coordinates);n=new google.maps["polygon"===r.type?"Polygon":"Polyline"]({path:e,strokeColor:r.strokeColor,fillColor:r.fillColor,strokeWeight:r.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:"polygon"===r.type?r.fillOpacity:1})}break;case"circle":n=new google.maps.Circle({center:new google.maps.LatLng(r.coordinates[0],r.coordinates[1]),radius:r.radius,strokeColor:r.strokeColor,fillColor:r.fillColor,strokeWeight:r.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:r.fillOpacity??1})}const g={type:r.type,uid:e(),state:r,gme:n};"dragend radius_changed center_changed".split(" ").forEach((e=>n.addListener(e,(()=>o.call(this,g,s))))),"polygon"!==g.type&&"polyline"!==g.type||"insert_at set_at remove_at".split(" ").forEach((e=>g.gme.getPath().addListener(e,(()=>o.call(this,g,s))))),n.addListener("click",(()=>a.call(this,g,s))),this.mapElements[s]=g}
6
+ import{uniqueUid as e}from"../../../../../core/global.js";import{Icon as t}from"../../../../../core/ui/icon.js";import{onChangeGeometries as o}from"./on-change-geometries.js";import{openPropsDialog as a}from"./open-props-dialog.js";import{updateStateAndGme as l}from"./update-state-and-gme.js";import{arrayToPath as i}from"../../../helpers/helpers.js";export function initOrUpdateElementFromState(r,s){const n=this.mapElements[s];if(n){if(n.state.type===r.type)return l.call(this,r,s);n.gme.setMap(null)}let p;switch(r.type){case"text":p=new google.maps.Marker({position:new google.maps.LatLng(r.coordinates[0],r.coordinates[1]),draggable:!0,title:r.text,map:this.map});break;case"marker":p=new google.maps.Marker({position:new google.maps.LatLng(r.coordinates[0],r.coordinates[1]),draggable:!0,label:r.showCaption?r.title:"",title:r.title,icon:r.icon?t.get(r.icon):null,map:this.map});break;case"polyline":case"polygon":{const e=i(r.coordinates);p=new google.maps["polygon"===r.type?"Polygon":"Polyline"]({path:e,strokeColor:r.strokeColor,fillColor:r.fillColor,strokeWeight:r.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:"polygon"===r.type?r.fillOpacity:1})}break;case"circle":p=new google.maps.Circle({center:new google.maps.LatLng(r.coordinates[0],r.coordinates[1]),radius:r.radius,strokeColor:r.strokeColor,fillColor:r.fillColor,strokeWeight:r.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:r.fillOpacity??1})}const g={type:r.type,uid:e(),state:r,gme:p};"dragend radius_changed center_changed".split(" ").forEach((e=>p.addListener(e,(()=>o.call(this,g,s))))),"polygon"!==g.type&&"polyline"!==g.type||"insert_at set_at remove_at".split(" ").forEach((e=>g.gme.getPath().addListener(e,(()=>o.call(this,g,s))))),p.addListener("click",(()=>a.call(this,g,s))),this.mapElements[s]=g}
@@ -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 { IUIMapElement } from "jodit-pro/esm/plugins/google-maps/interface";
7
- import type { UIMap } from "jodit-pro/esm/plugins/google-maps/ui/map/map";
6
+ import type { IUIMapElement } from "../../../interface";
7
+ import type { UIMap } from "../map";
8
8
  export declare function onChangeGeometries(this: UIMap, newElm: IUIMapElement, index: number): void;
@@ -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{updateStateAndGme as e}from"./update-state-and-gme";import{pathToArray as t}from"jodit-pro/esm/plugins/google-maps/helpers/helpers.js";export function onChangeGeometries(s,a){switch(s.type){case"polyline":case"polygon":{const o=t(s.gme.getPath()),r={...s.state,coordinates:o};e.call(this,r,a,!0);break}case"marker":{const t=s.gme.getPosition(),o={...s.state,coordinates:[t?.lat()??0,t?.lng()??0]};e.call(this,o,a,!0);break}case"circle":{const t=s.gme.getCenter(),o={...s.state,radius:s.gme.getRadius(),coordinates:[t?.lat()??0,t?.lng()??0]};e.call(this,o,a,!0);break}}}
6
+ import{updateStateAndGme as e}from"./update-state-and-gme.js";import{pathToArray as t}from"../../../helpers/helpers.js";export function onChangeGeometries(a,s){switch(a.type){case"polyline":case"polygon":{const o=t(a.gme.getPath()),r={...a.state,coordinates:o};e.call(this,r,s,!0);break}case"marker":{const t=a.gme.getPosition(),o={...a.state,coordinates:[t?.lat()??0,t?.lng()??0]};e.call(this,o,s,!0);break}case"circle":{const t=a.gme.getCenter(),o={...a.state,radius:a.gme.getRadius(),coordinates:[t?.lat()??0,t?.lng()??0]};e.call(this,o,s,!0);break}}}
@@ -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 { IUIMapElement } from "jodit-pro/esm/plugins/google-maps/interface";
7
- import type { UIMap } from "jodit-pro/esm/plugins/google-maps/ui/map/map";
6
+ import type { IUIMapElement } from "../../../interface";
7
+ import type { UIMap } from "../map";
8
8
  export declare function openPropsDialog(this: UIMap, newElm: IUIMapElement, index: number): void;
@@ -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{removeElement as e}from"./remove-element";import{updateStateAndGme as t}from"./update-state-and-gme";import{UIMarkerEditor as o,UIPolygonEditor as i,UIPolylineEditor as n}from"jodit-pro/esm/plugins/google-maps/ui/editors/index.js";function getInfoWindow(){const e=new google.maps.InfoWindow({content:"<div>test</div>"});return e.addListener("domready",(()=>{this.setMod("info-opened",!0)})),e.addListener("closeclick",(()=>{this.setMod("info-opened",!1)})),e}export function openPropsDialog(s,a){let d;switch(this.state.mode="hand",s.type){case"polyline":d=new n(this.jodit,s.state,this.options);break;case"marker":d=new o(this.jodit,s.state,this.options);break;case"circle":case"polygon":d=new i(this.jodit,s.state,this.options)}if(!d)return;this.append(d),this.j.e.on(d,"bin",(()=>{e.call(this,s)})).on(d,"change",((e,o)=>{t.call(this,{...s.state,[e]:o},a)}));const r=getInfoWindow.call(this);if("polygon"===s.type||"polyline"===s.type){const e=s.gme.getPath().getAt(0);r.setPosition(e)}"circle"===s.type&&r.setPosition(s.gme.getCenter()),r.setContent(d.container),r.open(this.map,s.gme),r.addListener("closeclick",(()=>{d&&(this.remove(d),d.destruct())}))}
6
+ import{removeElement as t}from"./remove-element.js";import{updateStateAndGme as e}from"./update-state-and-gme.js";import{UIMarkerEditor as o,UIPolygonEditor as i,UIPolylineEditor as n}from"../../editors/index.js";function getInfoWindow(){const t=new google.maps.InfoWindow({content:"<div>test</div>"});return t.addListener("domready",(()=>{this.setMod("info-opened",!0)})),t.addListener("closeclick",(()=>{this.setMod("info-opened",!1)})),t}export function openPropsDialog(s,a){let d;switch(this.state.mode="hand",s.type){case"polyline":d=new n(this.jodit,s.state,this.options);break;case"marker":d=new o(this.jodit,s.state,this.options);break;case"circle":case"polygon":d=new i(this.jodit,s.state,this.options)}if(!d)return;this.append(d),this.j.e.on(d,"bin",(()=>{t.call(this,s)})).on(d,"change",((t,o)=>{e.call(this,{...s.state,[t]:o},a)}));const r=getInfoWindow.call(this);if("polygon"===s.type||"polyline"===s.type){const t=s.gme.getPath().getAt(0);r.setPosition(t)}"circle"===s.type&&r.setPosition(s.gme.getCenter()),r.setContent(d.container),r.open(this.map,s.gme),r.addListener("closeclick",(()=>{d&&(this.remove(d),d.destruct())}))}
@@ -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 { IUIMapElement } from "jodit-pro/esm/plugins/google-maps/interface";
7
- import type { UIMap } from "jodit-pro/esm/plugins/google-maps/ui/map/map";
6
+ import type { IUIMapElement } from "../../../interface";
7
+ import type { UIMap } from "../map";
8
8
  export declare function removeElement(this: UIMap, newElm: IUIMapElement): void;
@@ -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 { IUIMapElement } from "jodit-pro/esm/plugins/google-maps/interface";
7
- import type { UIMap } from "jodit-pro/esm/plugins/google-maps/ui/map/map";
6
+ import type { IUIMapElement } from "../../../interface";
7
+ import type { UIMap } from "../map";
8
8
  export declare function updateStateAndGme(this: UIMap, newState: IUIMapElement['state'], index: number, silent?: boolean): void;
@@ -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{arrayToPath as e}from"jodit-pro/esm/plugins/google-maps/helpers/helpers.js";export function updateStateAndGme(t,s,o=!1){const i=this.mapElements[s];if(i.state===t||i.state.type!==t.type)return;const l=i.state;if(!o){let s;for(s in t){const o=t[s],a=l[s];if(null!=o&&(null==a||o.toString()!==a.toString()))switch(s){case"strokeWeight":case"strokeColor":case"fillColor":case"fillOpacity":switch(i.type){case"polyline":case"circle":case"polygon":i.gme.setOptions({[s]:o})}break;case"coordinates":switch(i.type){case"polygon":case"polyline":i.gme.setPath(e(o))}}}}i.state=t,this.state.elements[s]=t}
6
+ import{arrayToPath as e}from"../../../helpers/helpers.js";export function updateStateAndGme(t,s,o=!1){const a=this.mapElements[s];if(a.state===t||a.state.type!==t.type)return;const i=a.state;if(!o){let s;for(s in t){const o=t[s],l=i[s];if(null!=o&&(null==l||o.toString()!==l.toString()))switch(s){case"strokeWeight":case"strokeColor":case"fillColor":case"fillOpacity":switch(a.type){case"polyline":case"circle":case"polygon":a.gme.setOptions({[s]:o})}break;case"coordinates":switch(a.type){case"polygon":case"polyline":a.gme.setPath(e(o))}}}}a.state=t,this.state.elements[s]=t}
@@ -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 { UIForm } from "jodit/esm/core/ui";
6
+ import { UIForm } from "../../../../core/ui";
7
7
 
8
- import type { UIMap } from "jodit-pro/esm/plugins/google-maps/ui/map/map";
8
+ import type { UIMap } from "../map/map";
9
9
  export declare class UIMapsControlsForm extends UIForm {
10
10
  readonly state: UIMap['state'];
11
11
  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 t=this&&this.__decorate||function(t,e,o,r){var n,c=arguments.length,s=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(s=(c<3?n(s):c>3?n(e,o,s):n(e,o))||s);return c>3&&s&&Object.defineProperty(e,o,s),s};import{component as e}from"jodit/esm/core/decorators/component/component.js";import{UICheckbox as o,UIForm as r}from"jodit/esm/core/ui/index.js";let n=class UIMapsControlsForm extends r{className(){return"UIMapsControlsForm"}constructor(t,e){super(t),this.state=e;const r={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},n=Object.keys(r);this.append(n.map((e=>new o(t,{label:r[e],name:e,checked:this.state.controls[e],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,e)}))))}onChangeSize(t,e){this.state.controls={...this.state.controls,[t]:"true"===e}}};n=t([e],n);export{n as UIMapsControlsForm};
6
+ var t=this&&this.__decorate||function(t,e,o,r){var n,c=arguments.length,s=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(s=(c<3?n(s):c>3?n(e,o,s):n(e,o))||s);return c>3&&s&&Object.defineProperty(e,o,s),s};import{component as e}from"../../../../core/decorators/component/component.js";import{UICheckbox as o,UIForm as r}from"../../../../core/ui/index.js";let n=class UIMapsControlsForm extends r{className(){return"UIMapsControlsForm"}constructor(t,e){super(t),this.state=e;const r={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},n=Object.keys(r);this.append(n.map((e=>new o(t,{label:r[e],name:e,checked:this.state.controls[e],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,e)}))))}onChangeSize(t,e){this.state.controls={...this.state.controls,[t]:"true"===e}}};n=t([e],n);export{n as UIMapsControlsForm};
@@ -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 { UIForm } from "jodit/esm/core/ui";
6
+ import { UIForm } from "../../../../core/ui";
7
7
 
8
- import type { UIMap } from "jodit-pro/esm/plugins/google-maps/ui/map/map";
8
+ import type { UIMap } from "../map/map";
9
9
  export declare class UIMapsPropsForm extends UIForm {
10
10
  readonly state: UIMap['state'];
11
11
  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,t,a,n){var r,l=arguments.length,o=l<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,a):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,n);else for(var i=e.length-1;i>=0;i--)(r=e[i])&&(o=(l<3?r(o):l>3?r(t,a,o):r(t,a))||o);return l>3&&o&&Object.defineProperty(t,a,o),o};import{autobind as t,component as a,watch as n}from"jodit/esm/core/decorators/index.js";import{refs as r}from"jodit/esm/core/helpers/utils/selector.js";import{UIForm as l,UIInput as o,UISelect as i}from"jodit/esm/core/ui/index.js";let s=class UIMapsPropsForm extends l{className(){return"UIMapsPropsForm"}constructor(e,t){super(e),this.state=t;const[a,n]=t.size,[r,l]=t.center;this.append([new o(e,{label:"Width",name:"width",value:a,type:"number",onChange:this.onChangeSize}),new o(e,{label:"Height",name:"height",value:n,type:"number",onChange:this.onChangeSize}),new o(e,{label:"Latitude",name:"lat",value:r,onChange:this.onChangeCenter}),new o(e,{label:"Longitude",name:"lng",value:l,onChange:this.onChangeCenter}),new i(e,{label:"Map type",value:t.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange:e=>{t.type=e}}),new i(e,{label:"Layer",value:t.layer??"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange:e=>{t.layer=e}})])}onChangeSize(){const{width:e,height:t}=r(this.container);this.state.size=[parseInt(e?.value,10)||0,parseInt(t?.value,10)||0]}onExternalChangeSize(){const{width:e,height:t}=r(this.container),[a,n]=this.state.size;a.toString()!==e.value&&(e.value=a.toString()),n.toString()!==t.value&&(t.value=n.toString())}onChangeCenter(){const{lat:e,lng:t}=r(this.container);this.state.center=[parseFloat(e?.value)||0,parseFloat(t?.value)||0]}onExternalChangeCenter(){const{lat:e,lng:t}=r(this.container),[a,n]=this.state.center;a.toString()!==e.value&&(e.value=a.toString()),n.toString()!==t.value&&(t.value=n.toString())}onExternalChangeType(){const{mapType:e}=r(this.container);this.state.type!==e.value&&(e.value=this.state.type)}onExternalChangeLayer(){const{layer:e}=r(this.container);this.state.layer!==e.value&&(e.value=this.state.layer)}};e([t],s.prototype,"onChangeSize",null),e([n("state.size")],s.prototype,"onExternalChangeSize",null),e([t],s.prototype,"onChangeCenter",null),e([n(["state.center"])],s.prototype,"onExternalChangeCenter",null),e([n(["state.type"])],s.prototype,"onExternalChangeType",null),e([n(["state.layer"])],s.prototype,"onExternalChangeLayer",null),s=e([a],s);export{s as UIMapsPropsForm};
6
+ var e=this&&this.__decorate||function(e,t,a,n){var r,l=arguments.length,o=l<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,a):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,n);else for(var i=e.length-1;i>=0;i--)(r=e[i])&&(o=(l<3?r(o):l>3?r(t,a,o):r(t,a))||o);return l>3&&o&&Object.defineProperty(t,a,o),o};import{autobind as t,component as a,watch as n}from"../../../../core/decorators.js";import{refs as r}from"../../../../core/helpers/utils/selector.js";import{UIForm as l,UIInput as o,UISelect as i}from"../../../../core/ui/index.js";let s=class UIMapsPropsForm extends l{className(){return"UIMapsPropsForm"}constructor(e,t){super(e),this.state=t;const[a,n]=t.size,[r,l]=t.center;this.append([new o(e,{label:"Width",name:"width",value:a,type:"number",onChange:this.onChangeSize}),new o(e,{label:"Height",name:"height",value:n,type:"number",onChange:this.onChangeSize}),new o(e,{label:"Latitude",name:"lat",value:r,onChange:this.onChangeCenter}),new o(e,{label:"Longitude",name:"lng",value:l,onChange:this.onChangeCenter}),new i(e,{label:"Map type",value:t.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange:e=>{t.type=e}}),new i(e,{label:"Layer",value:t.layer??"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange:e=>{t.layer=e}})])}onChangeSize(){const{width:e,height:t}=r(this.container);this.state.size=[parseInt(e?.value,10)||0,parseInt(t?.value,10)||0]}onExternalChangeSize(){const{width:e,height:t}=r(this.container),[a,n]=this.state.size;a.toString()!==e.value&&(e.value=a.toString()),n.toString()!==t.value&&(t.value=n.toString())}onChangeCenter(){const{lat:e,lng:t}=r(this.container);this.state.center=[parseFloat(e?.value)||0,parseFloat(t?.value)||0]}onExternalChangeCenter(){const{lat:e,lng:t}=r(this.container),[a,n]=this.state.center;a.toString()!==e.value&&(e.value=a.toString()),n.toString()!==t.value&&(t.value=n.toString())}onExternalChangeType(){const{mapType:e}=r(this.container);this.state.type!==e.value&&(e.value=this.state.type)}onExternalChangeLayer(){const{layer:e}=r(this.container);this.state.layer!==e.value&&(e.value=this.state.layer)}};e([t],s.prototype,"onChangeSize",null),e([n("state.size")],s.prototype,"onExternalChangeSize",null),e([t],s.prototype,"onChangeCenter",null),e([n(["state.center"])],s.prototype,"onExternalChangeCenter",null),e([n(["state.type"])],s.prototype,"onExternalChangeType",null),e([n(["state.layer"])],s.prototype,"onExternalChangeLayer",null),s=e([a],s);export{s as UIMapsPropsForm};
@@ -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 { UIElement } from "jodit/esm/core/ui/element";
6
+ import type { IJodit } from "../../../../types";
7
+ import { UIElement } from "../../../../core/ui/element";
8
8
 
9
9
  export declare class UIWysiwyg extends UIElement {
10
10
  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,t,o,i){var r,s=arguments.length,l=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(l=(s<3?r(l):s>3?r(t,o,l):r(t,o))||l);return s>3&&l&&Object.defineProperty(t,o,l),l};import{component as t}from"jodit/esm/core/decorators/component/component.js";import{assert as o}from"jodit/esm/core/helpers/utils/assert.js";import{UIElement as i}from"jodit/esm/core/ui/element.js";import{JoditPro as r}from"jodit-pro/esm/jodit-pro.js";let s=class UIWysiwyg extends i{className(){return"UIWysiwyg"}constructor(e,t,i,s){super(e);const l=this.getElm("editor");o(null!=l,"editor element does not exist");const n=r.make(l,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:e.o.language,direction:e.o.direction,theme:e.o.theme,statusbar:!1,...t});n.value=i,n.e.on("change",(()=>s(n.value)))}render(){return"<div>\n\t\t\t<div class='&__label'>~Info~</div>\n\t\t\t<div class='&__editor'></div>\n\t\t</div>"}};s=e([t],s);export{s as UIWysiwyg};
6
+ var e=this&&this.__decorate||function(e,t,o,r){var i,s=arguments.length,l=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,r);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(l=(s<3?i(l):s>3?i(t,o,l):i(t,o))||l);return s>3&&l&&Object.defineProperty(t,o,l),l};import{component as t}from"../../../../core/decorators/component/component.js";import{assert as o}from"../../../../core/helpers/utils/assert.js";import{UIElement as r}from"../../../../core/ui/element.js";import{JoditPro as i}from"../../../../jodit-pro.js";let s=class UIWysiwyg extends r{className(){return"UIWysiwyg"}constructor(e,t,r,s){super(e);const l=this.getElm("editor");o(null!=l,"editor element does not exist");const n=i.make(l,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:e.o.language,direction:e.o.direction,theme:e.o.theme,statusbar:!1,...t});n.value=r,n.e.on("change",(()=>s(n.value)))}render(){return"<div>\n\t\t\t<div class='&__label'>~Info~</div>\n\t\t\t<div class='&__editor'></div>\n\t\t</div>"}};s=e([t],s);export{s as UIWysiwyg};
@@ -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 { Plugin } from "jodit/esm/core/plugin";
6
+ import type { IJodit } from "../../types";
7
+ import { Plugin } from "../../core/plugin";
8
8
  export declare class googleSearch extends Plugin {
9
9
  /** @override */
10
10
  static requires: 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{trim as o}from"jodit/esm/core/helpers/index.js";import{Plugin as e}from"jodit/esm/core/plugin/index.js";import r from"./icon.svg.js";import{Config as t}from"jodit/esm/config.js";import{isEditorEmpty as s}from"jodit/esm/plugins/placeholder/placeholder.js";import{JoditPro as i}from"jodit-pro/esm/jodit-pro.js";t.prototype.controls.google={tooltip:"Google search",icon:r,isDisabled:o=>s(o.editor),command:"startSearch"};export class googleSearch extends e{constructor(){super(...arguments),this.buttons=[{name:"google",group:"search"}]}afterInit(e){e.registerCommand("startSearch",{exec:()=>{let r;const{s:t}=e;if(r=t.isCollapsed()?t.current()?.parentElement?.innerText:t.sel?.toString(),r){const e="https://www.google.com/search?q="+encodeURIComponent(o(r));window.open(e,"_blank")}}})}beforeDestruct(o){}}googleSearch.requires=["license"],i.plugins.add("google-search",googleSearch);
6
+ import{trim as o}from"../../core/helpers.js";import{Plugin as e}from"../../core/plugin.js";import r from"./icon.svg.js";import{Config as t}from"../../config.js";import{isEditorEmpty as s}from"../placeholder/placeholder.js";import{JoditPro as c}from"../../jodit-pro.js";t.prototype.controls.google={tooltip:"Google search",icon:r,isDisabled:o=>s(o.editor),command:"startSearch"};export class googleSearch extends e{constructor(){super(...arguments),this.buttons=[{name:"google",group:"search"}]}afterInit(e){e.registerCommand("startSearch",{exec:()=>{let r;const{s:t}=e;if(r=t.isCollapsed()?t.current()?.parentElement?.innerText:t.sel?.toString(),r){const e="https://www.google.com/search?q="+encodeURIComponent(o(r));window.open(e,"_blank")}}})}beforeDestruct(o){}}googleSearch.requires=["license"],c.plugins.add("google-search",googleSearch);
@@ -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 { HTMLTagNames, IDictionary, IJodit } from "jodit/esm/types";
7
- import { Plugin } from "jodit/esm/core/plugin/plugin";
6
+ import type { HTMLTagNames, IDictionary, IJodit } from "../../types";
7
+ import { Plugin } from "../../core/plugin/plugin";
8
8
  declare module 'jodit/config' {
9
9
  interface Config {
10
10
  highlightSignature: {
@@ -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,i){var o,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n};import{autobind as t,debounce as r}from"jodit/esm/core/decorators/index.js";import{Dom as i}from"jodit/esm/core/dom/dom.js";import{attr as o}from"jodit/esm/core/helpers/utils/attr.js";import{Plugin as s}from"jodit/esm/core/plugin/plugin.js";import{Config as n}from"jodit/esm/config.js";import{JoditPro as a}from"jodit-pro/esm/jodit-pro.js";n.prototype.highlightSignature={schema:{},excludeTags:["pre"]};export class highlightSignature extends s{constructor(){super(...arguments),this.idleId=0}afterInit(e){Object.keys(e.o.highlightSignature.schema).length&&e.e.on("change afterSetMode",this.walkNodes).on("afterGetValueFromEditor",highlightSignature.removeUtilWrappers)}beforeDestruct(e){e.e.off("change afterSetMode",this.walkNodes).off("afterGetValueFromEditor",highlightSignature.removeUtilWrappers)}walkNodes(){if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();const{j:e}=this,t=e.ed.createNodeIterator(e.editor,NodeFilter.SHOW_TEXT);this.j.async.cancelIdleCallback(this.idleId),this.workLoop(t)}runWorker(e,t){let r;this.j.e.mute();try{do{if(r=t.nextNode(),!r)return;if(this.checkNormalizing(r))return;this.checkReplaceSchemas(r)}while(r&&e.timeRemaining()>0)}finally{this.j.e.unmute()}this.workLoop(t)}workLoop(e){this.idleId=this.j.async.requestIdleCallback((t=>{this.runWorker(t,e)}),{timeout:this.j.defaultTimeout})}checkNormalizing(e){return!!i.isText(e.nextSibling)&&(this.j.editor.normalize(),this.walkNodes(),!0)}checkReplaceSchemas(e){if(highlightSignature.hasUtilWrapper(e))return;const t=e.nodeValue;if(null==t)return;const{j:r}=this,o=r.o.highlightSignature;for(const r in o.schema){const s=RegExp(r);if(s.test(t)){const n=t.match(s);if(!n||void 0===n.index)continue;const a=o.schema[r](this.j,n);if(a)return i.markTemporary(a,{dataHighlightSchema:r}),void this.replaceMatchedTextToElm(e,t,n,a)}}}replaceMatchedTextToElm(e,t,r,o){const{j:s}=this,{range:n}=s.s,a=n.startContainer===e,h=n.startOffset,l=r.index??0;e.nodeValue=t.substring(0,l);const c=t.substring(l+r[0].length);if(c.length){const t=s.createInside.text(c);i.after(e,t)}o.innerText=r[0],i.after(e,o),a&&this.restoreCursorPosition(h,e,o.firstChild,o.nextSibling)}static hasUtilWrapper(e){return i.isTemporary(e.parentElement)}static removeUtilWrappers(e){e.value=i.replaceTemporaryFromString(e.value)}restoreCursorPosition(e,...t){for(const r of t)if(r&&r.nodeValue){const t=r.nodeValue;if(t.length>=e){const t=this.j.s.createRange();t.setStart(r,e),this.j.s.selectRange(t,!1);break}e-=t.length}}checkUtilsBoxToSchema(){i.temporaryList(this.j.editor).forEach((e=>{const t=o(e,"dataHighlightSchema");if(!t)return;const r=RegExp(t),s=e.innerText??"";r.test(s)&&!s.replace(r,"").length||(this.j.s.save(),i.unwrap(e),this.j.s.restore())}))}}highlightSignature.requires=["license"],e([r()],highlightSignature.prototype,"walkNodes",null),e([t],highlightSignature.prototype,"runWorker",null),a.plugins.add("highlight-signature",highlightSignature);
6
+ var e=this&&this.__decorate||function(e,t,r,i){var o,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(s<3?o(a):s>3?o(t,r,a):o(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};import{autobind as t,debounce as r}from"../../core/decorators.js";import{Dom as i}from"../../core/dom/dom.js";import{attr as o}from"../../core/helpers/utils/attr.js";import{Plugin as s}from"../../core/plugin/plugin.js";import{Config as a}from"../../config.js";import{JoditPro as n}from"../../jodit-pro.js";a.prototype.highlightSignature={schema:{},excludeTags:["pre"]};export class highlightSignature extends s{constructor(){super(...arguments),this.idleId=0}afterInit(e){Object.keys(e.o.highlightSignature.schema).length&&e.e.on("change afterSetMode",this.walkNodes).on("afterGetValueFromEditor",highlightSignature.removeUtilWrappers)}beforeDestruct(e){e.e.off("change afterSetMode",this.walkNodes).off("afterGetValueFromEditor",highlightSignature.removeUtilWrappers)}walkNodes(){if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();const{j:e}=this,t=e.ed.createNodeIterator(e.editor,NodeFilter.SHOW_TEXT);this.j.async.cancelIdleCallback(this.idleId),this.workLoop(t)}runWorker(e,t){let r;this.j.e.mute();try{do{if(r=t.nextNode(),!r)return;if(this.checkNormalizing(r))return;this.checkReplaceSchemas(r)}while(r&&e.timeRemaining()>0)}finally{this.j.e.unmute()}this.workLoop(t)}workLoop(e){this.idleId=this.j.async.requestIdleCallback((t=>{this.runWorker(t,e)}),{timeout:this.j.defaultTimeout})}checkNormalizing(e){return!!i.isText(e.nextSibling)&&(this.j.editor.normalize(),this.walkNodes(),!0)}checkReplaceSchemas(e){if(highlightSignature.hasUtilWrapper(e))return;const t=e.nodeValue;if(null==t)return;const{j:r}=this,o=r.o.highlightSignature;for(const r in o.schema){const s=RegExp(r);if(s.test(t)){const a=t.match(s);if(!a||void 0===a.index)continue;const n=o.schema[r](this.j,a);if(n)return i.markTemporary(n,{dataHighlightSchema:r}),void this.replaceMatchedTextToElm(e,t,a,n)}}}replaceMatchedTextToElm(e,t,r,o){const{j:s}=this,{range:a}=s.s,n=a.startContainer===e,h=a.startOffset,l=r.index??0;e.nodeValue=t.substring(0,l);const c=t.substring(l+r[0].length);if(c.length){const t=s.createInside.text(c);i.after(e,t)}o.innerText=r[0],i.after(e,o),n&&this.restoreCursorPosition(h,e,o.firstChild,o.nextSibling)}static hasUtilWrapper(e){return i.isTemporary(e.parentElement)}static removeUtilWrappers(e){e.value=i.replaceTemporaryFromString(e.value)}restoreCursorPosition(e,...t){for(const r of t)if(r&&r.nodeValue){const t=r.nodeValue;if(t.length>=e){const t=this.j.s.createRange();t.setStart(r,e),this.j.s.selectRange(t,!1);break}e-=t.length}}checkUtilsBoxToSchema(){i.temporaryList(this.j.editor).forEach((e=>{const t=o(e,"dataHighlightSchema");if(!t)return;const r=RegExp(t),s=e.innerText??"";r.test(s)&&!s.replace(r,"").length||(this.j.s.save(),i.unwrap(e),this.j.s.restore())}))}}highlightSignature.requires=["license"],e([r()],highlightSignature.prototype,"walkNodes",null),e([t],highlightSignature.prototype,"runWorker",null),n.plugins.add("highlight-signature",highlightSignature);
@@ -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{Dom as o}from"jodit/esm/core/dom/dom.js";import{isArray as r}from"jodit/esm/core/helpers//checker/is-array.js";import i from"./icon.svg.js";import{Config as e}from"jodit/esm/config.js";e.prototype.controls.iframeEditor={icon:i,tooltip:"Iframe Editor",exec:(r,i)=>{o.isTag(i,"jodit")&&o.isTag(i.firstElementChild,"iframe")&&(i=i.firstElementChild),r.e.fire("toggleIframeEditor",o.isTag(i,"iframe")?i:null)}},r(e.prototype.popup.iframe)&&e.prototype.popup.iframe.push("iframeEditor");
6
+ import{Dom as o}from"../../core/dom/dom.js";import{isArray as r}from"../../core/helpers/checker/is-array.js";import i from"./icon.svg.js";import{Config as e}from"../../config.js";e.prototype.controls.iframeEditor={icon:i,tooltip:"Iframe Editor",exec:(r,i)=>{o.isTag(i,"jodit")&&o.isTag(i.firstElementChild,"iframe")&&(i=i.firstElementChild),r.e.fire("toggleIframeEditor",o.isTag(i,"iframe")?i:null)}},r(e.prototype.popup.iframe)&&e.prototype.popup.iframe.push("iframeEditor");
@@ -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 { Plugin } from "jodit/esm/core/plugin";
6
+ import type { IJodit } from "../../types";
7
+ import { Plugin } from "../../core/plugin";
8
8
  import "./config";
9
9
  export declare class IframeEditor extends Plugin {
10
10
  /** @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,r,o){var i,s=arguments.length,a=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var d=e.length-1;d>=0;d--)(i=e[d])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};import{autobind as t,watch as r}from"jodit/esm/core/decorators/index.js";import{Dom as o}from"jodit/esm/core/dom/index.js";import{attr as i,css as s}from"jodit/esm/core/helpers/index.js";import{Plugin as a}from"jodit/esm/core/plugin/index.js";import{Button as d}from"jodit/esm/core/ui/button/index.js";import{Dialog as l}from"jodit/esm/modules/index.js";import"./config";import{UIIframeEditor as n}from"./ui/iframe-editor/iframe-editor";import{JoditPro as m}from"jodit-pro/esm/jodit-pro.js";export class IframeEditor extends a{constructor(){super(...arguments),this.buttons=[{group:"form",name:"iframeEditor"}]}afterInit(e){e.e.on("toggleIframeEditor",this.toggleEditor)}toggleEditor(e){this.__dialog||(this.__dialog=new l({language:this.j.o.language,theme:this.j.o.theme}),this.__dialog.setHeader("Iframe Properties").setSize(470,400)),e&&!o.isTag(e,"iframe")&&(e=void 0);const t=new n(this.__dialog,{src:e?.src??"",name:e?.name??"",title:e?.title??"",frameBorder:"1"===e?.frameBorder||"yes"===e?.frameBorder,width:e?.offsetWidth??700,height:e?.offsetHeight??400});this.__dialog.setContent(t);const r=this.__dialog;r.isOpened?r.close():(r.setFooter([d(r,"cancel","Cancel","default").onAction((()=>r.close())),d(r,"ok",e?"Update":"Insert","primary").onAction((()=>{if(!t.srcField.value)return t.srcField.validate(),void t.srcField.focus();e||(e=this.j.createInside.element("iframe"),this.j.s.insertNode(e,!0,!1)),e.className=t.state.className||"",i(e,{src:t.state.src,title:t.state.title,name:t.state.name,frameborder:t.state.frameBorder?"1":"0",width:t.state.width,height:t.state.height}),o.isTag(e.parentElement,"jodit")&&s(e.parentElement,{width:t.state.width,height:t.state.height}),this.jodit.e.fire("synchro"),r.close()}))]).open(),this.jodit.async.requestIdleCallback((()=>{t.srcField.focus()})))}onDblClick(e){o.isTag(e.target,"iframe")&&this.toggleEditor(e.target)}beforeDestruct(e){this.__dialog?.destruct()}}IframeEditor.requires=["license","color-picker"],e([t],IframeEditor.prototype,"toggleEditor",null),e([r(":dblclick")],IframeEditor.prototype,"onDblClick",null),m.plugins.add("iframe-editor",IframeEditor);
6
+ var e=this&&this.__decorate||function(e,t,r,o){var i,s=arguments.length,a=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var d=e.length-1;d>=0;d--)(i=e[d])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};import{autobind as t,watch as r}from"../../core/decorators.js";import{Dom as o}from"../../core/dom.js";import{attr as i,css as s}from"../../core/helpers.js";import{Plugin as a}from"../../core/plugin.js";import{Button as d}from"../../core/ui/button.js";import{Dialog as l}from"../../modules.js";import"./config.js";import{UIIframeEditor as c}from"./ui/iframe-editor/iframe-editor.js";import{JoditPro as n}from"../../jodit-pro.js";export class IframeEditor extends a{constructor(){super(...arguments),this.buttons=[{group:"form",name:"iframeEditor"}]}afterInit(e){e.e.on("toggleIframeEditor",this.toggleEditor)}toggleEditor(e){this.__dialog||(this.__dialog=new l({language:this.j.o.language,theme:this.j.o.theme}),this.__dialog.setHeader("Iframe Properties").setSize(470,400)),e&&!o.isTag(e,"iframe")&&(e=void 0);const t=new c(this.__dialog,{src:e?.src??"",name:e?.name??"",title:e?.title??"",frameBorder:"1"===e?.frameBorder||"yes"===e?.frameBorder,width:e?.offsetWidth??700,height:e?.offsetHeight??400});this.__dialog.setContent(t);const r=this.__dialog;r.isOpened?r.close():(r.setFooter([d(r,"cancel","Cancel","default").onAction((()=>r.close())),d(r,"ok",e?"Update":"Insert","primary").onAction((()=>{if(!t.srcField.value)return t.srcField.validate(),void t.srcField.focus();e||(e=this.j.createInside.element("iframe"),this.j.s.insertNode(e,!0,!1)),e.className=t.state.className||"",i(e,{src:t.state.src,title:t.state.title,name:t.state.name,frameborder:t.state.frameBorder?"1":"0",width:t.state.width,height:t.state.height}),o.isTag(e.parentElement,"jodit")&&s(e.parentElement,{width:t.state.width,height:t.state.height}),this.jodit.e.fire("synchro"),r.close()}))]).open(),this.jodit.async.requestIdleCallback((()=>{t.srcField.focus()})))}onDblClick(e){o.isTag(e.target,"iframe")&&this.toggleEditor(e.target)}beforeDestruct(e){this.__dialog?.destruct()}}IframeEditor.requires=["license","color-picker"],e([t],IframeEditor.prototype,"toggleEditor",null),e([r(":dblclick")],IframeEditor.prototype,"onDblClick",null),n.plugins.add("iframe-editor",IframeEditor);
@@ -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, UIInput } from "jodit/esm/core/ui";
6
+ import { UIGroup, UIInput } from "../../../../core/ui";
7
7
 
8
- import type { IframeEditorState } from "jodit-pro/esm/plugins/iframe-editor/interface";
8
+ import type { IframeEditorState } from "../../interface";
9
9
  export declare class UIIframeEditor extends UIGroup {
10
10
  className(): string;
11
11
  readonly state: IframeEditorState;
@@ -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,a,r){var s,n=arguments.length,i=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,a,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(n<3?s(i):n>3?s(t,a,i):s(t,a))||i);return n>3&&i&&Object.defineProperty(t,a,i),i};import{component as t}from"jodit/esm/core/decorators/component/component.js";import{UIBlock as a,UICheckbox as r,UIGroup as s,UIInput as n}from"jodit/esm/core/ui/index.js";let i=class UIIframeEditor extends s{className(){return"UIIframeEditor"}constructor(e,t){super(e),this.state={src:"",className:"",width:400,height:200,frameBorder:!1,enableScrollbars:!1,name:"",title:""},Object.assign(this.state,t),this.srcField=new n(e,{label:"URL",type:"url",required:!0,value:this.state.src,onChange:e=>{this.state.src=e}}),this.append([this.srcField,new a(e,[new n(e,{label:"Width",type:"number",value:this.state.width,onChange:e=>{this.state.width=parseInt(e,10)||0}}),new n(e,{label:"Height",type:"number",value:this.state.height,onChange:e=>{this.state.height=parseInt(e,10)||0}})],{className:this.getFullElName("block"),align:"center"}),new a(e,[new r(e,{label:"Show frame border",checked:Boolean(t.frameBorder),onChange:e=>{this.state.frameBorder="true"===e}})]),new n(e,{label:"Name",value:this.state.name,type:"text",onChange:e=>{this.state.name=e}}),new n(e,{label:"Title",value:this.state.title,type:"text",onChange:e=>{this.state.title=e}})])}};i=e([t],i);export{i as UIIframeEditor};
6
+ var e=this&&this.__decorate||function(e,t,a,r){var s,n=arguments.length,i=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,a,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(n<3?s(i):n>3?s(t,a,i):s(t,a))||i);return n>3&&i&&Object.defineProperty(t,a,i),i};import{component as t}from"../../../../core/decorators/component/component.js";import{UIBlock as a,UICheckbox as r,UIGroup as s,UIInput as n}from"../../../../core/ui/index.js";let i=class UIIframeEditor extends s{className(){return"UIIframeEditor"}constructor(e,t){super(e),this.state={src:"",className:"",width:400,height:200,frameBorder:!1,enableScrollbars:!1,name:"",title:""},Object.assign(this.state,t),this.srcField=new n(e,{label:"URL",type:"url",required:!0,value:this.state.src,onChange:e=>{this.state.src=e}}),this.append([this.srcField,new a(e,[new n(e,{label:"Width",type:"number",value:this.state.width,onChange:e=>{this.state.width=parseInt(e,10)||0}}),new n(e,{label:"Height",type:"number",value:this.state.height,onChange:e=>{this.state.height=parseInt(e,10)||0}})],{className:this.getFullElName("block"),align:"center"}),new a(e,[new r(e,{label:"Show frame border",checked:Boolean(t.frameBorder),onChange:e=>{this.state.frameBorder="true"===e}})]),new n(e,{label:"Name",value:this.state.name,type:"text",onChange:e=>{this.state.name=e}}),new n(e,{label:"Title",value:this.state.title,type:"text",onChange:e=>{this.state.title=e}})])}};i=e([t],i);export{i as UIIframeEditor};
@@ -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 "jodit-pro/esm/plugins/license/license";
7
- import "jodit-pro/esm/plugins/autocomplete/autocomplete";
8
- import "jodit-pro/esm/plugins/paste-from-word/paste-from-word";
6
+ import "./license/license";
7
+ import "./autocomplete/autocomplete";
8
+ import "./paste-from-word/paste-from-word";
@@ -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"jodit-pro/esm/plugins/license/license.js";import"jodit-pro/esm/plugins/autocomplete/autocomplete.js";import"jodit-pro/esm/plugins/paste-from-word/paste-from-word.js";
6
+ import"./license/license.js";import"./autocomplete/autocomplete.js";import"./paste-from-word/paste-from-word.js";
@@ -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 type { ButtonGroup, IDictionary } from "jodit/esm/types";
6
+ import type { ButtonGroup, IDictionary } from "../../types";
7
7
  import type { IKeys, ILayoutKeys } from "./interface";
8
8
  declare module 'jodit/config' {
9
9
  interface Config {
@@ -1 +1 @@
1
- import t from"./icon.svg.js";import{Config as e}from"jodit/esm/config.js";e.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},es:{title:"Español",keys:[["º ` ~","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","¡ = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","ç Ç \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ñ Ñ ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 * :","9 ( {","0 ) }","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","z Z","u U","i I","o O","p P","ü Ü [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ö Ö ;","ä Ä ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ ±","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"Türkçe",keys:[['" é` ~',"1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 ) }","- _ [","= + ]","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","ı I","o O","p P","ğ Ğ","ü Ü",", \\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ş Ş","i̇ İ","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M","ö Ö <","ç Ç >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","/ q Q","' w W","ק e E","ר r R","א t T","ט y Y","ו u U","ן i I","ם o O","פ p P","[ {","] }","\\ |"],["Caps","ש a A","ד s S","ג d D","כ f F","ע g G","י h H","ח j J","ל k K","ך l L","ף ; :","' \"","Enter"],["Shift","ז z Z","ס x X","ב c C","ה v V","נ b B","מ n N","צ m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","Shift"],["Options","Space","Options"]]}},layoutSwitchList:["en","es","de","ru","tr","iw","tata"],keySize:32,layout:[[1,1,1,1,1,1,1,1,1,1,1,1,1,2],[1.5,1,1,1,1,1,1,1,1,1,1,1,1,1.5],[1.8,1,1,1,1,1,1,1,1,1,1,1,2.2],[2.5,1,1,1,1,1,1,1,1,1,1,2.5],[3.5,9,3.5]]},e.prototype.controls.keyboard={tooltip:"Keyboard",icon:t,isActive:t=>Boolean(t.e.fire("isKeyboardOpened")),command:"toggleKeyboard"},e.prototype.controls.extraKeyboardButtons={};
1
+ import t from"./icon.svg.js";import{Config as e}from"../../config.js";e.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},es:{title:"Español",keys:[["º ` ~","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","¡ = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","ç Ç \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ñ Ñ ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 * :","9 ( {","0 ) }","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","z Z","u U","i I","o O","p P","ü Ü [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ö Ö ;","ä Ä ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ ±","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"Türkçe",keys:[['" é` ~',"1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 ) }","- _ [","= + ]","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","ı I","o O","p P","ğ Ğ","ü Ü",", \\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ş Ş","i̇ İ","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M","ö Ö <","ç Ç >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","/ q Q","' w W","ק e E","ר r R","א t T","ט y Y","ו u U","ן i I","ם o O","פ p P","[ {","] }","\\ |"],["Caps","ש a A","ד s S","ג d D","כ f F","ע g G","י h H","ח j J","ל k K","ך l L","ף ; :","' \"","Enter"],["Shift","ז z Z","ס x X","ב c C","ה v V","נ b B","מ n N","צ m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","Shift"],["Options","Space","Options"]]}},layoutSwitchList:["en","es","de","ru","tr","iw","tata"],keySize:32,layout:[[1,1,1,1,1,1,1,1,1,1,1,1,1,2],[1.5,1,1,1,1,1,1,1,1,1,1,1,1,1.5],[1.8,1,1,1,1,1,1,1,1,1,1,1,2.2],[2.5,1,1,1,1,1,1,1,1,1,1,2.5],[3.5,9,3.5]]},e.prototype.controls.keyboard={tooltip:"Keyboard",icon:t,isActive:t=>Boolean(t.e.fire("isKeyboardOpened")),command:"toggleKeyboard"},e.prototype.controls.extraKeyboardButtons={};
@@ -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 { Plugin } from "jodit/esm/core/plugin";
6
+ import type { IJodit } from "../../types";
7
+ import { Plugin } from "../../core/plugin";
8
8
  import "./config";
9
9
  export declare class keyboard extends Plugin {
10
10
  /** @override */
@@ -1 +1 @@
1
- var e=this&&this.__decorate||function(e,t,o,r){var s,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(a=(i<3?s(a):i>3?s(t,o,a):s(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};import{autobind as t}from"jodit/esm/core/decorators/index.js";import{isString as o}from"jodit/esm/core/helpers/checker/index.js";import{Plugin as r}from"jodit/esm/core/plugin/index.js";import{UISelect as s}from"jodit/esm/core/ui/index.js";import{Dialog as i}from"jodit/esm/modules/index.js";import"./config";import{UIKeyboard as a}from"./ui/keyboard/keyboard";import{Config as n}from"jodit/esm/config.js";import{JoditPro as d}from"jodit-pro/esm/jodit-pro.js";export class keyboard extends r{constructor(e){super(e),this.hasStyle=!d.fatMode,this.buttons=[{group:"insert",name:"keyboard"}];const{extraKeyButtons:t,extraKeyGroup:r}=e.o.keyboard;t.length&&t.forEach(((t,s)=>{const i=o(t)?t:t.key,a=o(t)||!t.hotkeys?[`ctrl+${s+1}`]:t.hotkeys;e.registerButton({name:`extraKeyboardButtons.${i}`,group:r});const{extraKeyboardButtons:d}=n.defaultOptions.controls;d[i]={name:i,tooltip:i,args:[i],hotkeys:a,command:"insertChar"}}))}afterInit(e){e.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),e.e.on("isKeyboardOpened",(()=>this.__keyboard?.isOpened))}insertChar(e,t,o){this.j.s.insertNode(this.j.createInside.text(o))}toggleKeyboard(){if(!this.__keyboard){this.__keyboard=new i({toolbarButtonSize:"tiny"});const e=new a(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(e);const{showLayoutSwitcher:t,layoutSwitchList:o,layoutList:r}=this.j.o.keyboard;if(t){const t=new s(this.__keyboard,{value:e.state.currentLayout,options:o.map((e=>({text:r[e]?.title??e,value:e}))),onChange(t){e.state.currentLayout=t}});t.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(t)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()}beforeDestruct(e){this.__keyboard?.destruct()}}keyboard.requires=["license"],e([t],keyboard.prototype,"insertChar",null),e([t],keyboard.prototype,"toggleKeyboard",null),d.plugins.add("keyboard",keyboard);
1
+ var e=this&&this.__decorate||function(e,t,o,r){var s,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(a=(i<3?s(a):i>3?s(t,o,a):s(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};import{autobind as t}from"../../core/decorators.js";import{isString as o}from"../../core/helpers/checker.js";import{Plugin as r}from"../../core/plugin.js";import{UISelect as s}from"../../core/ui/index.js";import{Dialog as i}from"../../modules.js";import"./config.js";import{UIKeyboard as a}from"./ui/keyboard/keyboard.js";import{Config as n}from"../../config.js";import{JoditPro as d}from"../../jodit-pro.js";export class keyboard extends r{constructor(e){super(e),this.hasStyle=!d.fatMode,this.buttons=[{group:"insert",name:"keyboard"}];const{extraKeyButtons:t,extraKeyGroup:r}=e.o.keyboard;t.length&&t.forEach(((t,s)=>{const i=o(t)?t:t.key,a=o(t)||!t.hotkeys?[`ctrl+${s+1}`]:t.hotkeys;e.registerButton({name:`extraKeyboardButtons.${i}`,group:r});const{extraKeyboardButtons:d}=n.defaultOptions.controls;d[i]={name:i,tooltip:i,args:[i],hotkeys:a,command:"insertChar"}}))}afterInit(e){e.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),e.e.on("isKeyboardOpened",(()=>this.__keyboard?.isOpened))}insertChar(e,t,o){this.j.s.insertNode(this.j.createInside.text(o))}toggleKeyboard(){if(!this.__keyboard){this.__keyboard=new i({toolbarButtonSize:"tiny"});const e=new a(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(e);const{showLayoutSwitcher:t,layoutSwitchList:o,layoutList:r}=this.j.o.keyboard;if(t){const t=new s(this.__keyboard,{value:e.state.currentLayout,options:o.map((e=>({text:r[e]?.title??e,value:e}))),onChange(t){e.state.currentLayout=t}});t.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(t)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()}beforeDestruct(e){this.__keyboard?.destruct()}}keyboard.requires=["license"],e([t],keyboard.prototype,"insertChar",null),e([t],keyboard.prototype,"toggleKeyboard",null),d.plugins.add("keyboard",keyboard);
@@ -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 { UIElement } from "jodit/esm/core/ui";
6
+ import type { IJodit } from "../../../../types";
7
+ import { UIElement } from "../../../../core/ui";
8
8
 
9
9
  export declare class UIKeyboard extends UIElement<IJodit> {
10
10
  /** @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,t=this&&this.__decorate||function(e,t,s,o){var r,i=arguments.length,a=i<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 n=e.length-1;n>=0;n--)(r=e[n])&&(a=(i<3?r(a):i>3?r(t,s,a):r(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};import{NBSP_SPACE as s}from"jodit/esm/core/constants.js";import{autobind as o,component as r,hook as i,watch as a}from"jodit/esm/core/decorators/index.js";import{attr as n}from"jodit/esm/core/helpers/utils/index.js";import{Icon as c,UIElement as p}from"jodit/esm/core/ui/index.js";import h from"jodit-pro/esm/plugins/keyboard/ui/assets/backspace.svg.js";import l from"jodit-pro/esm/plugins/keyboard/ui/assets/caps.svg.js";import u from"jodit-pro/esm/plugins/keyboard/ui/assets/dots.svg.js";import d from"jodit-pro/esm/plugins/keyboard/ui/assets/shift.svg.js";import y from"jodit-pro/esm/plugins/keyboard/ui/assets/tab.svg.js";let f=e=class UIKeyboard extends p{className(){return"UIKeyboard"}render(){const{layout:e,keySize:t}=this.j.options.keyboard,s=e.length;return`<div>${(()=>{const o=[];for(let r=0;r<s;r+=1){const s=[];for(let o=0;o<e[r].length;o+=1)s.push(`<div style="width:${t*e[r][o]}px;height:${t}px;" class="&__key"></div>`);o.push(`<div class='&__row'>${s.join("\n")}</div>`)}return o.join("\n")})()}</div>`}onStateChange(){const{currentLayout:t,options:s,shift:o,caps:r}=this.state,{keys:i}=this.j.o.keyboard.layoutList[t];let a=0;for(let t=0;t<i.length;t+=1)for(let n=0;n<i[t].length;n+=1){const c=i[t][n].split(" ");let p=c[0];o&&(p=c[1]),!o&&r&&c[1]&&e.isLetter(c[0])&&(p=c[1]),s&&(p=c[2]),this.setKeyValue(a,p??c[0]),a+=1}}static isLetter(e){return e.toLowerCase()!==e.toUpperCase()}setKeyValue(t,s){const o=this._keys[t];if(!o)return;let r=!1;const{options:i,shift:a,caps:c}=this.state;switch(s){case"Caps":r=c;break;case"Options":r=i;break;case"Shift":r=a}o.innerHTML=e.decorate(s),o.classList.toggle(this.getFullElName("key","active",!0),r),n(o,"-key",s)}onKeyUp(){this.pressed&&this.stopPress()}onReady(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)}stopPress(){this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach((e=>{e.classList.remove(this.getFullElName("key","pressed",!0))})))}onKeyDown(e,t=0){const o=e.target;if(!o||!o.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,o.classList.add(this.getFullElName("key","pressed",!0));const r=n(o,"-key");switch(r){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:r,preventDefault(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(s));break;default:this.state.shift&&(this.state.shift=!1),r&&this.j.s.insertNode(this.j.createInside.text(r))}const{periodKeyRepeat:i,delayKeyRepeat:a}=this.j.o.keyboard;return this.reKeyDownTimeout=this.j.async.setTimeout((()=>this.onKeyDown(e,i)),t||a),!1}constructor(e){super(e),this.state={caps:!1,shift:!1,options:!1,currentLayout:this.j.o.keyboard.defaultLayoutSet},this._keys=this.getElms("key"),this.pressed=!1,this.reKeyDownTimeout=0,this.onStateChange()}static decorate(e){switch(e){case"Space":return"";case"Enter":return c.get("enter");case"Backspace":return h;case"Shift":return d;case"Caps":return l;case"Options":return u;case"Tab":return y;default:return e}}};t([a(["state.currentLayout","state.options","state.shift","state.caps"])],f.prototype,"onStateChange",null),t([a(["ow:mouseup"])],f.prototype,"onKeyUp",null),t([i("ready")],f.prototype,"onReady",null),t([o],f.prototype,"stopPress",null),t([a(["container:mousedown","container:touchstart"])],f.prototype,"onKeyDown",null),f=e=t([r],f);export{f as UIKeyboard};
6
+ var t,e=this&&this.__decorate||function(t,e,s,o){var r,a=arguments.length,i=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,o);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(i=(a<3?r(i):a>3?r(e,s,i):r(e,s))||i);return a>3&&i&&Object.defineProperty(e,s,i),i};import{NBSP_SPACE as s}from"../../../../core/constants.js";import{autobind as o,component as r,hook as a,watch as i}from"../../../../core/decorators.js";import{attr as n}from"../../../../core/helpers/utils.js";import{Icon as c,UIElement as h}from"../../../../core/ui/index.js";import p from"../assets/backspace.svg.js";import l from"../assets/caps.svg.js";import u from"../assets/dots.svg.js";import y from"../assets/shift.svg.js";import d from"../assets/tab.svg.js";let f=t=class UIKeyboard extends h{className(){return"UIKeyboard"}render(){const{layout:t,keySize:e}=this.j.options.keyboard,s=t.length;return`<div>${(()=>{const o=[];for(let r=0;r<s;r+=1){const s=[];for(let o=0;o<t[r].length;o+=1)s.push(`<div style="width:${e*t[r][o]}px;height:${e}px;" class="&__key"></div>`);o.push(`<div class='&__row'>${s.join("\n")}</div>`)}return o.join("\n")})()}</div>`}onStateChange(){const{currentLayout:e,options:s,shift:o,caps:r}=this.state,{keys:a}=this.j.o.keyboard.layoutList[e];let i=0;for(let e=0;e<a.length;e+=1)for(let n=0;n<a[e].length;n+=1){const c=a[e][n].split(" ");let h=c[0];o&&(h=c[1]),!o&&r&&c[1]&&t.isLetter(c[0])&&(h=c[1]),s&&(h=c[2]),this.setKeyValue(i,h??c[0]),i+=1}}static isLetter(t){return t.toLowerCase()!==t.toUpperCase()}setKeyValue(e,s){const o=this._keys[e];if(!o)return;let r=!1;const{options:a,shift:i,caps:c}=this.state;switch(s){case"Caps":r=c;break;case"Options":r=a;break;case"Shift":r=i}o.innerHTML=t.decorate(s),o.classList.toggle(this.getFullElName("key","active",!0),r),n(o,"-key",s)}onKeyUp(){this.pressed&&this.stopPress()}onReady(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)}stopPress(){this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach((t=>{t.classList.remove(this.getFullElName("key","pressed",!0))})))}onKeyDown(t,e=0){const o=t.target;if(!o||!o.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,o.classList.add(this.getFullElName("key","pressed",!0));const r=n(o,"-key");switch(r){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:r,preventDefault(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(s));break;default:this.state.shift&&(this.state.shift=!1),r&&this.j.s.insertNode(this.j.createInside.text(r))}const{periodKeyRepeat:a,delayKeyRepeat:i}=this.j.o.keyboard;return this.reKeyDownTimeout=this.j.async.setTimeout((()=>this.onKeyDown(t,a)),e||i),!1}constructor(t){super(t),this.state={caps:!1,shift:!1,options:!1,currentLayout:this.j.o.keyboard.defaultLayoutSet},this._keys=this.getElms("key"),this.pressed=!1,this.reKeyDownTimeout=0,this.onStateChange()}static decorate(t){switch(t){case"Space":return"";case"Enter":return c.get("enter");case"Backspace":return p;case"Shift":return y;case"Caps":return l;case"Options":return u;case"Tab":return d;default:return t}}};e([i(["state.currentLayout","state.options","state.shift","state.caps"])],f.prototype,"onStateChange",null),e([i(["ow:mouseup"])],f.prototype,"onKeyUp",null),e([a("ready")],f.prototype,"onReady",null),e([o],f.prototype,"stopPress",null),e([i(["container:mousedown","container:touchstart"])],f.prototype,"onKeyDown",null),f=t=e([r],f);export{f as UIKeyboard};
@@ -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 type { IViewBased } from "jodit/esm/types";
7
- import { Plugin } from "jodit/esm/core/plugin/plugin";
8
- import type { IViewOptionsPro } from "jodit-pro/esm/types/view";
6
+ import type { IViewBased } from "../../types";
7
+ import { Plugin } from "../../core/plugin/plugin";
8
+ import type { IViewOptionsPro } from "../../types/view";
9
9
  export declare class license<T extends IViewBased<IViewOptionsPro> = IViewBased<IViewOptionsPro>> extends Plugin<T> {
10
10
  static make(jodit: IViewBased<IViewOptionsPro>): license;
11
11
  /** @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
- import{IS_TEST as e}from"jodit/esm/core/constants.js";import{Dom as t}from"jodit/esm/core/dom/dom.js";import{isBoolean as o}from"jodit/esm/core/helpers/checker/is-boolean.js";import{isString as s}from"jodit/esm/core/helpers/checker/is-string.js";import{Plugin as i}from"jodit/esm/core/plugin/plugin.js";import{validateLicense as r}from"./helpers/helpers";import{JoditPro as n}from"jodit-pro/esm/jodit-pro.js";export class license extends i{static make(e){return new license(e)}afterInit(t){this.j.e.on("checkReserve",(async()=>{const t=this.j.o.license,o=location.host;if(!s(t))return"";let i=r(t,o);return!i&&t[12]>"A"&&!e&&(i=await this.validateLicenseRemote(t,o)),i?"normal":""}))}beforeDestruct(e){}async validateLicenseRemote(e,s){const i="validateJoditLicenseRemote",n=this.j.storage.get(i);if(n&&r(n,s))return!0;const c=document.createElement("script");return c.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(e)}&host=${encodeURIComponent(s)}`,document.body.appendChild(c),this.j.async.promise((e=>{window.onJoditResolveKeyCode=n=>{try{if(o(n))return e(n);r(n,s)?(this.j.storage.set(i,n),e(!0)):e(!1)}finally{t.safeRemove(c)}},this.j.async.setTimeout((()=>{e(!1),t.safeRemove(c)}),3e3)}))}}n.plugins.add("license",license);
6
+ import{IS_TEST as e}from"../../core/constants.js";import{Dom as t}from"../../core/dom/dom.js";import{isBoolean as o}from"../../core/helpers/checker/is-boolean.js";import{isString as s}from"../../core/helpers/checker/is-string.js";import{Plugin as r}from"../../core/plugin/plugin.js";import{validateLicense as i}from"./helpers/helpers.js";import{JoditPro as n}from"../../jodit-pro.js";export class license extends r{static make(e){return new license(e)}afterInit(t){this.j.e.on("checkReserve",(async()=>{const t=this.j.o.license,o=location.host;if(!s(t))return"";let r=i(t,o);return!r&&t[12]>"A"&&!e&&(r=await this.validateLicenseRemote(t,o)),r?"normal":""}))}beforeDestruct(e){}async validateLicenseRemote(e,s){const r="validateJoditLicenseRemote",n=this.j.storage.get(r);if(n&&i(n,s))return!0;const c=document.createElement("script");return c.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(e)}&host=${encodeURIComponent(s)}`,document.body.appendChild(c),this.j.async.promise((e=>{window.onJoditResolveKeyCode=n=>{try{if(o(n))return e(n);i(n,s)?(this.j.storage.set(r,n),e(!0)):e(!1)}finally{t.safeRemove(c)}},this.j.async.setTimeout((()=>{e(!1),t.safeRemove(c)}),3e3)}))}}n.plugins.add("license",license);
@@ -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{dataBind as e}from"jodit/esm/core/helpers/utils/data-bind.js";import o from"./icon.svg.js";import{Config as i}from"jodit/esm/config.js";i.prototype.mobileView={mode:"default"};export const dataBindStoredKey="buttonmobileSView";export const dataBindCurrentKey="buttonmobileCView";i.prototype.controls.mobileView={tooltip:"Mobile View",icon:o,command:"mobileView",isActive:o=>e(o,dataBindCurrentKey)&&"default"!==e(o,dataBindCurrentKey),isChildActive:(o,i)=>e(o,dataBindCurrentKey)===i.control.args?.[1],exec:o=>{if(!e(o,dataBindStoredKey))return!1;o.execCommand("mobileView",!1,e(o,dataBindStoredKey))},childExec:(e,o,{button:i})=>{e.execCommand("mobileView",!1,Number(i.control?.args?.[0]))},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}};
6
+ import{dataBind as e}from"../../core/helpers/utils/data-bind.js";import o from"./icon.svg.js";import{Config as i}from"../../config.js";i.prototype.mobileView={mode:"default"};export const dataBindStoredKey="buttonmobileSView";export const dataBindCurrentKey="buttonmobileCView";i.prototype.controls.mobileView={tooltip:"Mobile View",icon:o,command:"mobileView",isActive:o=>e(o,dataBindCurrentKey)&&"default"!==e(o,dataBindCurrentKey),isChildActive:(o,i)=>e(o,dataBindCurrentKey)===i.control.args?.[1],exec:o=>{if(!e(o,dataBindStoredKey))return!1;o.execCommand("mobileView",!1,e(o,dataBindStoredKey))},childExec:(e,o,{button:i})=>{e.execCommand("mobileView",!1,Number(i.control?.args?.[0]))},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}};