@progress/kendo-angular-editor 3.1.2 → 4.0.0-next.202203161118

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 (440) hide show
  1. package/bundles/kendo-angular-editor.umd.js +5 -0
  2. package/{dist/es2015/common → common}/active-marks.d.ts +0 -0
  3. package/{dist/es2015/common → common}/apply-to-word-options.d.ts +0 -0
  4. package/{dist/es2015/common → common}/commands.d.ts +0 -0
  5. package/{dist/es2015/common → common}/direction.d.ts +0 -0
  6. package/{dist/es2015/common → common}/error-messages.d.ts +0 -0
  7. package/{dist/es2015/common → common}/font-family-item.interface.d.ts +0 -0
  8. package/{dist/es2015/common → common}/font-size-item.interface.d.ts +0 -0
  9. package/{dist/es2015/common → common}/format-item.interface.d.ts +0 -0
  10. package/{dist/es2015/common → common}/image-data.interface.d.ts +0 -0
  11. package/{dist/es2015/common → common}/link-data.interface.d.ts +0 -0
  12. package/{dist/es2015/common → common}/paste-cleanup-settings.d.ts +0 -0
  13. package/{dist/es2015/common → common}/plugins-function.d.ts +0 -1
  14. package/{dist/es2015/common → common}/predicate.d.ts +0 -0
  15. package/common/provider.service.d.ts +14 -0
  16. package/{dist/es2015/common → common}/resizable-options.interface.d.ts +0 -0
  17. package/{dist/es2015/common → common}/styles.d.ts +0 -0
  18. package/{dist/es2015/common → common}/table-data.interface.d.ts +0 -0
  19. package/{dist/es2015/config → config}/command-icons.d.ts +0 -0
  20. package/{dist/es2015/config → config}/commands.d.ts +0 -0
  21. package/{dist/es2015/config → config}/schema.d.ts +0 -0
  22. package/{dist/es2015/config → config}/semantic-nodes.d.ts +0 -0
  23. package/{dist/es2015/config → config}/table-commands.d.ts +0 -0
  24. package/{dist/es2015/config → config}/utils.d.ts +8 -8
  25. package/{dist/es2015/dialogs → dialogs}/colorpicker-dialog.component.d.ts +3 -0
  26. package/{dist/es2015/dialogs → dialogs}/file-link-dialog.component.d.ts +4 -1
  27. package/{dist/es2015/dialogs → dialogs}/font-family-dialog.component.d.ts +3 -0
  28. package/{dist/es2015/dialogs → dialogs}/font-size-dialog.component.d.ts +3 -0
  29. package/{dist/es2015/dialogs → dialogs}/format-dialog.component.d.ts +4 -1
  30. package/{dist/es2015/dialogs → dialogs}/image-dialog.component.d.ts +3 -0
  31. package/{dist/es2015/dialogs → dialogs}/insert-table-dialog.component.d.ts +5 -4
  32. package/{dist/es2015/dialogs → dialogs}/source-dialog.component.d.ts +3 -0
  33. package/{dist/es2015/editor-toolbar-state.d.ts → editor-toolbar-state.d.ts} +1 -1
  34. package/{dist/es2015/editor.component.d.ts → editor.component.d.ts} +31 -20
  35. package/editor.module.d.ts +113 -0
  36. package/{dist/es2015 → esm2015}/common/active-marks.js +1 -0
  37. package/{dist/es2015 → esm2015}/common/apply-to-word-options.js +1 -0
  38. package/{dist/es → esm2015}/common/commands.js +1 -0
  39. package/{dist/es2015 → esm2015}/common/direction.js +1 -0
  40. package/{dist/es2015 → esm2015}/common/error-messages.js +2 -5
  41. package/{dist/es → esm2015}/common/font-family-item.interface.js +1 -0
  42. package/{dist/es → esm2015}/common/font-size-item.interface.js +1 -0
  43. package/{dist/es → esm2015}/common/format-item.interface.js +1 -0
  44. package/{dist/es → esm2015}/common/image-data.interface.js +1 -0
  45. package/{dist/es → esm2015}/common/link-data.interface.js +1 -0
  46. package/{dist/es → esm2015}/common/paste-cleanup-settings.js +1 -0
  47. package/{dist/es → esm2015}/common/plugins-function.js +1 -0
  48. package/{dist/es → esm2015}/common/predicate.js +1 -0
  49. package/esm2015/common/provider.service.js +16 -0
  50. package/{dist/es → esm2015}/common/resizable-options.interface.js +1 -0
  51. package/{dist/es2015 → esm2015}/common/styles.js +0 -0
  52. package/{dist/es → esm2015}/common/table-data.interface.js +1 -0
  53. package/{dist/es2015 → esm2015}/config/command-icons.js +0 -0
  54. package/esm2015/config/commands.js +62 -0
  55. package/{dist/es2015 → esm2015}/config/schema.js +0 -0
  56. package/{dist/es2015 → esm2015}/config/semantic-nodes.js +1 -4
  57. package/{dist/es2015 → esm2015}/config/table-commands.js +0 -0
  58. package/{dist/es2015 → esm2015}/config/utils.js +1 -1
  59. package/esm2015/dialogs/colorpicker-dialog.component.js +117 -0
  60. package/esm2015/dialogs/file-link-dialog.component.js +209 -0
  61. package/esm2015/dialogs/font-family-dialog.component.js +106 -0
  62. package/esm2015/dialogs/font-size-dialog.component.js +106 -0
  63. package/esm2015/dialogs/format-dialog.component.js +106 -0
  64. package/{dist/es2015 → esm2015}/dialogs/image-dialog.component.js +60 -21
  65. package/esm2015/dialogs/insert-table-dialog.component.js +74 -0
  66. package/esm2015/dialogs/source-dialog.component.js +89 -0
  67. package/{dist/es2015 → esm2015}/editor-toolbar-state.js +0 -0
  68. package/{dist/es2015 → esm2015}/editor.component.js +316 -193
  69. package/{dist/es2015 → esm2015}/editor.module.js +205 -31
  70. package/{dist/es/common/active-marks.js → esm2015/kendo-angular-editor.js} +4 -0
  71. package/esm2015/localization/custom-messages.component.js +41 -0
  72. package/esm2015/localization/editor-localization.service.js +31 -0
  73. package/esm2015/localization/localized-messages.directive.js +32 -0
  74. package/esm2015/localization/messages.js +126 -0
  75. package/{dist/es2015/index.js → esm2015/main.js} +35 -47
  76. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  77. package/{dist/es → esm2015}/preventable-events/paste-event-data.js +1 -0
  78. package/{dist/es2015 → esm2015}/preventable-events/paste-event.js +0 -0
  79. package/esm2015/tools/alignment/editor-align-center-button.directive.js +42 -0
  80. package/esm2015/tools/alignment/editor-align-justify-button.directive.js +42 -0
  81. package/esm2015/tools/alignment/editor-align-left-button.directive.js +42 -0
  82. package/esm2015/tools/alignment/editor-align-right-button.directive.js +42 -0
  83. package/esm2015/tools/blockquote/editor-blockquote-button.directive.js +41 -0
  84. package/esm2015/tools/colorpicker/editor-back-color.directive.js +28 -0
  85. package/esm2015/tools/colorpicker/editor-colorpicker.component.js +262 -0
  86. package/esm2015/tools/colorpicker/editor-fore-color.directive.js +28 -0
  87. package/esm2015/tools/editor-clean-formatting-button.directive.js +41 -0
  88. package/esm2015/tools/fontfamily/editor-fontfamily-dropdownlist.component.js +104 -0
  89. package/{dist/es2015 → esm2015}/tools/fontfamily/editor-fontfamily.component.js +73 -57
  90. package/esm2015/tools/fontsize/editor-fontsize-dropdownlist.component.js +93 -0
  91. package/{dist/es2015 → esm2015}/tools/fontsize/editor-fontsize.component.js +72 -54
  92. package/esm2015/tools/format/editor-format-dropdownlist.component.js +160 -0
  93. package/{dist/es2015 → esm2015}/tools/format/editor-format.component.js +69 -51
  94. package/esm2015/tools/history/editor-redo-button.directive.js +42 -0
  95. package/esm2015/tools/history/editor-undo-button.directive.js +42 -0
  96. package/esm2015/tools/image/editor-insert-image-button.directive.js +41 -0
  97. package/esm2015/tools/indentation/editor-indent-button.directive.js +42 -0
  98. package/esm2015/tools/indentation/editor-outdent-button.directive.js +42 -0
  99. package/esm2015/tools/link/editor-create-link-button.directive.js +42 -0
  100. package/esm2015/tools/link/editor-insert-file-button.directive.js +34 -0
  101. package/esm2015/tools/link/editor-unlink-button.directive.js +42 -0
  102. package/esm2015/tools/list/editor-insert-ordered-list-button.directive.js +42 -0
  103. package/esm2015/tools/list/editor-insert-unordered-list-button.directive.js +42 -0
  104. package/{dist/es2015 → esm2015}/tools/print/editor-print-button.directive.js +18 -22
  105. package/esm2015/tools/select-all/select-all-button.directive.js +45 -0
  106. package/{dist/es2015 → esm2015}/tools/shared/dropdown-tool.directive.js +10 -10
  107. package/esm2015/tools/shared/editor-command-base.js +64 -0
  108. package/{dist/es2015 → esm2015}/tools/shared/editor-command-button.js +5 -5
  109. package/{dist/es2015 → esm2015}/tools/shared/editor-command-dialog.js +4 -5
  110. package/esm2015/tools/source/editor-view-source-button.directive.js +41 -0
  111. package/esm2015/tools/tables/editor-add-column-after-button.directive.js +35 -0
  112. package/esm2015/tools/tables/editor-add-column-before-button.directive.js +35 -0
  113. package/esm2015/tools/tables/editor-add-row-after-button.directive.js +35 -0
  114. package/esm2015/tools/tables/editor-add-row-before-button.directive.js +35 -0
  115. package/esm2015/tools/tables/editor-delete-column-button.directive.js +35 -0
  116. package/esm2015/tools/tables/editor-delete-row-button.directive.js +35 -0
  117. package/esm2015/tools/tables/editor-delete-table-button.directive.js +35 -0
  118. package/{dist/es2015 → esm2015}/tools/tables/editor-insert-table-button.component.js +66 -45
  119. package/esm2015/tools/tables/editor-merge-cells-button.directive.js +37 -0
  120. package/esm2015/tools/tables/editor-split-cell-button.directive.js +37 -0
  121. package/{dist/es2015 → esm2015}/tools/tables/popup-table-grid.component.js +32 -21
  122. package/esm2015/tools/tools.service.js +20 -0
  123. package/esm2015/tools/typographical-emphasis/editor-bold-button.directive.js +42 -0
  124. package/esm2015/tools/typographical-emphasis/editor-italic-button.directive.js +42 -0
  125. package/esm2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +42 -0
  126. package/esm2015/tools/typographical-emphasis/editor-subscript-button.directive.js +42 -0
  127. package/esm2015/tools/typographical-emphasis/editor-superscript-button.directive.js +42 -0
  128. package/esm2015/tools/typographical-emphasis/editor-underline-button.directive.js +42 -0
  129. package/{dist/es2015 → esm2015}/util.js +0 -0
  130. package/fesm2015/kendo-angular-editor.js +6357 -0
  131. package/kendo-angular-editor.d.ts +9 -0
  132. package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +6 -3
  133. package/{dist/es2015/localization → localization}/editor-localization.service.d.ts +3 -0
  134. package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +5 -2
  135. package/{dist/es2015/localization → localization}/messages.d.ts +4 -1
  136. package/{dist/es/index.js → main.d.ts} +37 -47
  137. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  138. package/package.json +41 -118
  139. package/{dist/es2015/preventable-events → preventable-events}/paste-event-data.d.ts +0 -0
  140. package/{dist/es2015/preventable-events → preventable-events}/paste-event.d.ts +0 -0
  141. package/schematics/ngAdd/index.js +5 -2
  142. package/schematics/ngAdd/index.js.map +1 -1
  143. package/{dist/es2015/tools → tools}/alignment/editor-align-center-button.directive.d.ts +5 -2
  144. package/{dist/es2015/tools → tools}/alignment/editor-align-justify-button.directive.d.ts +5 -2
  145. package/{dist/es2015/tools → tools}/alignment/editor-align-left-button.directive.d.ts +5 -2
  146. package/{dist/es2015/tools → tools}/alignment/editor-align-right-button.directive.d.ts +5 -2
  147. package/{dist/es2015/tools → tools}/blockquote/editor-blockquote-button.directive.d.ts +5 -3
  148. package/{dist/es2015/tools → tools}/colorpicker/editor-back-color.directive.d.ts +3 -0
  149. package/{dist/es2015/tools → tools}/colorpicker/editor-colorpicker.component.d.ts +10 -6
  150. package/{dist/es2015/tools → tools}/colorpicker/editor-fore-color.directive.d.ts +3 -0
  151. package/{dist/es2015/tools → tools}/editor-clean-formatting-button.directive.d.ts +5 -2
  152. package/{dist/es2015/tools → tools}/fontfamily/editor-fontfamily-dropdownlist.component.d.ts +3 -0
  153. package/{dist/es2015/tools → tools}/fontfamily/editor-fontfamily.component.d.ts +10 -6
  154. package/{dist/es2015/tools → tools}/fontsize/editor-fontsize-dropdownlist.component.d.ts +3 -0
  155. package/{dist/es2015/tools → tools}/fontsize/editor-fontsize.component.d.ts +10 -6
  156. package/{dist/es2015/tools → tools}/format/editor-format-dropdownlist.component.d.ts +3 -0
  157. package/{dist/es2015/tools → tools}/format/editor-format.component.d.ts +10 -6
  158. package/{dist/es2015/tools → tools}/history/editor-redo-button.directive.d.ts +5 -2
  159. package/{dist/es2015/tools → tools}/history/editor-undo-button.directive.d.ts +5 -2
  160. package/{dist/es2015/tools → tools}/image/editor-insert-image-button.directive.d.ts +5 -2
  161. package/{dist/es2015/tools → tools}/indentation/editor-indent-button.directive.d.ts +5 -2
  162. package/{dist/es2015/tools → tools}/indentation/editor-outdent-button.directive.d.ts +5 -2
  163. package/{dist/es2015/tools → tools}/link/editor-create-link-button.directive.d.ts +5 -2
  164. package/{dist/es2015/tools → tools}/link/editor-insert-file-button.directive.d.ts +5 -2
  165. package/{dist/es2015/tools → tools}/link/editor-unlink-button.directive.d.ts +5 -2
  166. package/{dist/es2015/tools → tools}/list/editor-insert-ordered-list-button.directive.d.ts +5 -2
  167. package/{dist/es2015/tools → tools}/list/editor-insert-unordered-list-button.directive.d.ts +5 -2
  168. package/{dist/es2015/tools → tools}/print/editor-print-button.directive.d.ts +5 -3
  169. package/{dist/es2015/tools → tools}/select-all/select-all-button.directive.d.ts +5 -2
  170. package/{dist/es2015/tools → tools}/shared/dropdown-tool.directive.d.ts +4 -1
  171. package/{dist/es2015/tools → tools}/shared/editor-command-base.d.ts +8 -4
  172. package/{dist/es2015/tools → tools}/shared/editor-command-button.d.ts +5 -5
  173. package/{dist/es2015/tools → tools}/shared/editor-command-dialog.d.ts +4 -5
  174. package/{dist/es2015/tools → tools}/source/editor-view-source-button.directive.d.ts +5 -2
  175. package/{dist/es2015/tools → tools}/tables/editor-add-column-after-button.directive.d.ts +5 -2
  176. package/{dist/es2015/tools → tools}/tables/editor-add-column-before-button.directive.d.ts +5 -2
  177. package/{dist/es2015/tools → tools}/tables/editor-add-row-after-button.directive.d.ts +5 -2
  178. package/{dist/es2015/tools → tools}/tables/editor-add-row-before-button.directive.d.ts +5 -2
  179. package/{dist/es2015/tools → tools}/tables/editor-delete-column-button.directive.d.ts +5 -2
  180. package/{dist/es2015/tools → tools}/tables/editor-delete-row-button.directive.d.ts +5 -2
  181. package/{dist/es2015/tools → tools}/tables/editor-delete-table-button.directive.d.ts +5 -2
  182. package/{dist/es2015/tools → tools}/tables/editor-insert-table-button.component.d.ts +10 -9
  183. package/{dist/es2015/tools → tools}/tables/editor-merge-cells-button.directive.d.ts +5 -2
  184. package/{dist/es2015/tools → tools}/tables/editor-split-cell-button.directive.d.ts +5 -2
  185. package/{dist/es2015/tools → tools}/tables/popup-table-grid.component.d.ts +7 -6
  186. package/{dist/es2015/tools → tools}/tools.service.d.ts +3 -0
  187. package/{dist/es2015/tools → tools}/typographical-emphasis/editor-bold-button.directive.d.ts +5 -2
  188. package/{dist/es2015/tools → tools}/typographical-emphasis/editor-italic-button.directive.d.ts +5 -2
  189. package/{dist/es2015/tools → tools}/typographical-emphasis/editor-strikethrough-button.directive.d.ts +5 -2
  190. package/{dist/es2015/tools → tools}/typographical-emphasis/editor-subscript-button.directive.d.ts +5 -2
  191. package/{dist/es2015/tools → tools}/typographical-emphasis/editor-superscript-button.directive.d.ts +5 -2
  192. package/{dist/es2015/tools → tools}/typographical-emphasis/editor-underline-button.directive.d.ts +5 -2
  193. package/{dist/es2015/util.d.ts → util.d.ts} +0 -0
  194. package/dist/cdn/js/kendo-angular-editor.js +0 -20
  195. package/dist/cdn/main.js +0 -5
  196. package/dist/es/common/apply-to-word-options.js +0 -4
  197. package/dist/es/common/direction.js +0 -4
  198. package/dist/es/common/error-messages.js +0 -19
  199. package/dist/es/common/styles.js +0 -16
  200. package/dist/es/config/command-icons.js +0 -48
  201. package/dist/es/config/commands.js +0 -71
  202. package/dist/es/config/schema.js +0 -22
  203. package/dist/es/config/semantic-nodes.js +0 -32
  204. package/dist/es/config/table-commands.js +0 -14
  205. package/dist/es/config/utils.js +0 -102
  206. package/dist/es/dialogs/colorpicker-dialog.component.js +0 -70
  207. package/dist/es/dialogs/file-link-dialog.component.js +0 -126
  208. package/dist/es/dialogs/font-family-dialog.component.js +0 -65
  209. package/dist/es/dialogs/font-size-dialog.component.js +0 -65
  210. package/dist/es/dialogs/format-dialog.component.js +0 -65
  211. package/dist/es/dialogs/image-dialog.component.js +0 -102
  212. package/dist/es/dialogs/insert-table-dialog.component.js +0 -49
  213. package/dist/es/dialogs/source-dialog.component.js +0 -72
  214. package/dist/es/editor-toolbar-state.js +0 -280
  215. package/dist/es/editor.component.js +0 -1039
  216. package/dist/es/editor.module.js +0 -241
  217. package/dist/es/localization/custom-messages.component.js +0 -45
  218. package/dist/es/localization/editor-localization.service.js +0 -24
  219. package/dist/es/localization/localized-messages.directive.js +0 -36
  220. package/dist/es/localization/messages.js +0 -230
  221. package/dist/es/main.js +0 -9
  222. package/dist/es/package-metadata.js +0 -15
  223. package/dist/es/preventable-events/paste-event.js +0 -25
  224. package/dist/es/tools/alignment/editor-align-center-button.directive.js +0 -47
  225. package/dist/es/tools/alignment/editor-align-justify-button.directive.js +0 -47
  226. package/dist/es/tools/alignment/editor-align-left-button.directive.js +0 -47
  227. package/dist/es/tools/alignment/editor-align-right-button.directive.js +0 -47
  228. package/dist/es/tools/blockquote/editor-blockquote-button.directive.js +0 -48
  229. package/dist/es/tools/colorpicker/editor-back-color.directive.js +0 -28
  230. package/dist/es/tools/colorpicker/editor-colorpicker.component.js +0 -233
  231. package/dist/es/tools/colorpicker/editor-fore-color.directive.js +0 -28
  232. package/dist/es/tools/editor-clean-formatting-button.directive.js +0 -46
  233. package/dist/es/tools/fontfamily/editor-fontfamily-dropdownlist.component.js +0 -71
  234. package/dist/es/tools/fontfamily/editor-fontfamily.component.js +0 -211
  235. package/dist/es/tools/fontsize/editor-fontsize-dropdownlist.component.js +0 -71
  236. package/dist/es/tools/fontsize/editor-fontsize.component.js +0 -206
  237. package/dist/es/tools/format/editor-format-dropdownlist.component.js +0 -71
  238. package/dist/es/tools/format/editor-format.component.js +0 -202
  239. package/dist/es/tools/history/editor-redo-button.directive.js +0 -47
  240. package/dist/es/tools/history/editor-undo-button.directive.js +0 -47
  241. package/dist/es/tools/image/editor-insert-image-button.directive.js +0 -46
  242. package/dist/es/tools/indentation/editor-indent-button.directive.js +0 -47
  243. package/dist/es/tools/indentation/editor-outdent-button.directive.js +0 -47
  244. package/dist/es/tools/link/editor-create-link-button.directive.js +0 -47
  245. package/dist/es/tools/link/editor-insert-file-button.directive.js +0 -39
  246. package/dist/es/tools/link/editor-unlink-button.directive.js +0 -47
  247. package/dist/es/tools/list/editor-insert-ordered-list-button.directive.js +0 -47
  248. package/dist/es/tools/list/editor-insert-unordered-list-button.directive.js +0 -47
  249. package/dist/es/tools/print/editor-print-button.directive.js +0 -69
  250. package/dist/es/tools/select-all/select-all-button.directive.js +0 -50
  251. package/dist/es/tools/shared/dropdown-tool.directive.js +0 -41
  252. package/dist/es/tools/shared/editor-command-base.js +0 -49
  253. package/dist/es/tools/shared/editor-command-button.js +0 -34
  254. package/dist/es/tools/shared/editor-command-dialog.js +0 -30
  255. package/dist/es/tools/source/editor-view-source-button.directive.js +0 -46
  256. package/dist/es/tools/tables/editor-add-column-after-button.directive.js +0 -40
  257. package/dist/es/tools/tables/editor-add-column-before-button.directive.js +0 -40
  258. package/dist/es/tools/tables/editor-add-row-after-button.directive.js +0 -40
  259. package/dist/es/tools/tables/editor-add-row-before-button.directive.js +0 -40
  260. package/dist/es/tools/tables/editor-delete-column-button.directive.js +0 -40
  261. package/dist/es/tools/tables/editor-delete-row-button.directive.js +0 -40
  262. package/dist/es/tools/tables/editor-delete-table-button.directive.js +0 -40
  263. package/dist/es/tools/tables/editor-insert-table-button.component.js +0 -202
  264. package/dist/es/tools/tables/editor-merge-cells-button.directive.js +0 -42
  265. package/dist/es/tools/tables/editor-split-cell-button.directive.js +0 -42
  266. package/dist/es/tools/tables/popup-table-grid.component.js +0 -69
  267. package/dist/es/tools/tools.service.js +0 -20
  268. package/dist/es/tools/typographical-emphasis/editor-bold-button.directive.js +0 -47
  269. package/dist/es/tools/typographical-emphasis/editor-italic-button.directive.js +0 -47
  270. package/dist/es/tools/typographical-emphasis/editor-strikethrough-button.directive.js +0 -47
  271. package/dist/es/tools/typographical-emphasis/editor-subscript-button.directive.js +0 -47
  272. package/dist/es/tools/typographical-emphasis/editor-superscript-button.directive.js +0 -47
  273. package/dist/es/tools/typographical-emphasis/editor-underline-button.directive.js +0 -47
  274. package/dist/es/util.js +0 -127
  275. package/dist/es2015/common/commands.js +0 -4
  276. package/dist/es2015/common/font-family-item.interface.js +0 -4
  277. package/dist/es2015/common/font-size-item.interface.js +0 -4
  278. package/dist/es2015/common/format-item.interface.js +0 -4
  279. package/dist/es2015/common/image-data.interface.js +0 -4
  280. package/dist/es2015/common/link-data.interface.js +0 -4
  281. package/dist/es2015/common/paste-cleanup-settings.js +0 -4
  282. package/dist/es2015/common/plugins-function.js +0 -4
  283. package/dist/es2015/common/predicate.js +0 -4
  284. package/dist/es2015/common/resizable-options.interface.js +0 -4
  285. package/dist/es2015/common/table-data.interface.js +0 -4
  286. package/dist/es2015/config/commands.js +0 -67
  287. package/dist/es2015/dialogs/colorpicker-dialog.component.js +0 -92
  288. package/dist/es2015/dialogs/file-link-dialog.component.js +0 -163
  289. package/dist/es2015/dialogs/font-family-dialog.component.js +0 -84
  290. package/dist/es2015/dialogs/font-size-dialog.component.js +0 -84
  291. package/dist/es2015/dialogs/format-dialog.component.js +0 -84
  292. package/dist/es2015/dialogs/insert-table-dialog.component.js +0 -60
  293. package/dist/es2015/dialogs/source-dialog.component.js +0 -81
  294. package/dist/es2015/editor.module.d.ts +0 -45
  295. package/dist/es2015/index.d.ts +0 -72
  296. package/dist/es2015/index.metadata.json +0 -1
  297. package/dist/es2015/localization/custom-messages.component.js +0 -37
  298. package/dist/es2015/localization/editor-localization.service.js +0 -22
  299. package/dist/es2015/localization/localized-messages.directive.js +0 -32
  300. package/dist/es2015/localization/messages.js +0 -224
  301. package/dist/es2015/main.d.ts +0 -13
  302. package/dist/es2015/main.js +0 -9
  303. package/dist/es2015/preventable-events/paste-event-data.js +0 -4
  304. package/dist/es2015/tools/alignment/editor-align-center-button.directive.js +0 -45
  305. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.js +0 -45
  306. package/dist/es2015/tools/alignment/editor-align-left-button.directive.js +0 -45
  307. package/dist/es2015/tools/alignment/editor-align-right-button.directive.js +0 -45
  308. package/dist/es2015/tools/blockquote/editor-blockquote-button.directive.js +0 -45
  309. package/dist/es2015/tools/colorpicker/editor-back-color.directive.js +0 -27
  310. package/dist/es2015/tools/colorpicker/editor-colorpicker.component.js +0 -249
  311. package/dist/es2015/tools/colorpicker/editor-fore-color.directive.js +0 -27
  312. package/dist/es2015/tools/editor-clean-formatting-button.directive.js +0 -44
  313. package/dist/es2015/tools/fontfamily/editor-fontfamily-dropdownlist.component.js +0 -99
  314. package/dist/es2015/tools/fontsize/editor-fontsize-dropdownlist.component.js +0 -94
  315. package/dist/es2015/tools/format/editor-format-dropdownlist.component.js +0 -127
  316. package/dist/es2015/tools/history/editor-redo-button.directive.js +0 -45
  317. package/dist/es2015/tools/history/editor-undo-button.directive.js +0 -45
  318. package/dist/es2015/tools/image/editor-insert-image-button.directive.js +0 -44
  319. package/dist/es2015/tools/indentation/editor-indent-button.directive.js +0 -45
  320. package/dist/es2015/tools/indentation/editor-outdent-button.directive.js +0 -45
  321. package/dist/es2015/tools/link/editor-create-link-button.directive.js +0 -45
  322. package/dist/es2015/tools/link/editor-insert-file-button.directive.js +0 -37
  323. package/dist/es2015/tools/link/editor-unlink-button.directive.js +0 -45
  324. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.js +0 -45
  325. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.js +0 -45
  326. package/dist/es2015/tools/select-all/select-all-button.directive.js +0 -48
  327. package/dist/es2015/tools/shared/editor-command-base.js +0 -46
  328. package/dist/es2015/tools/source/editor-view-source-button.directive.js +0 -44
  329. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.js +0 -38
  330. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.js +0 -38
  331. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.js +0 -38
  332. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.js +0 -38
  333. package/dist/es2015/tools/tables/editor-delete-column-button.directive.js +0 -38
  334. package/dist/es2015/tools/tables/editor-delete-row-button.directive.js +0 -38
  335. package/dist/es2015/tools/tables/editor-delete-table-button.directive.js +0 -38
  336. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.js +0 -40
  337. package/dist/es2015/tools/tables/editor-split-cell-button.directive.js +0 -40
  338. package/dist/es2015/tools/tools.service.js +0 -22
  339. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.js +0 -45
  340. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.js +0 -45
  341. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +0 -45
  342. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.js +0 -45
  343. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.js +0 -45
  344. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.js +0 -45
  345. package/dist/fesm2015/index.js +0 -5842
  346. package/dist/fesm5/index.js +0 -5300
  347. package/dist/npm/common/active-marks.js +0 -6
  348. package/dist/npm/common/apply-to-word-options.js +0 -6
  349. package/dist/npm/common/commands.js +0 -6
  350. package/dist/npm/common/direction.js +0 -6
  351. package/dist/npm/common/error-messages.js +0 -22
  352. package/dist/npm/common/font-family-item.interface.js +0 -6
  353. package/dist/npm/common/font-size-item.interface.js +0 -6
  354. package/dist/npm/common/format-item.interface.js +0 -6
  355. package/dist/npm/common/image-data.interface.js +0 -6
  356. package/dist/npm/common/link-data.interface.js +0 -6
  357. package/dist/npm/common/paste-cleanup-settings.js +0 -6
  358. package/dist/npm/common/plugins-function.js +0 -6
  359. package/dist/npm/common/predicate.js +0 -6
  360. package/dist/npm/common/resizable-options.interface.js +0 -6
  361. package/dist/npm/common/styles.js +0 -18
  362. package/dist/npm/common/table-data.interface.js +0 -6
  363. package/dist/npm/config/command-icons.js +0 -50
  364. package/dist/npm/config/commands.js +0 -112
  365. package/dist/npm/config/schema.js +0 -21
  366. package/dist/npm/config/semantic-nodes.js +0 -35
  367. package/dist/npm/config/table-commands.js +0 -16
  368. package/dist/npm/config/utils.js +0 -104
  369. package/dist/npm/dialogs/colorpicker-dialog.component.js +0 -72
  370. package/dist/npm/dialogs/file-link-dialog.component.js +0 -128
  371. package/dist/npm/dialogs/font-family-dialog.component.js +0 -67
  372. package/dist/npm/dialogs/font-size-dialog.component.js +0 -67
  373. package/dist/npm/dialogs/format-dialog.component.js +0 -67
  374. package/dist/npm/dialogs/image-dialog.component.js +0 -104
  375. package/dist/npm/dialogs/insert-table-dialog.component.js +0 -51
  376. package/dist/npm/dialogs/source-dialog.component.js +0 -74
  377. package/dist/npm/editor-toolbar-state.js +0 -282
  378. package/dist/npm/editor.component.js +0 -1041
  379. package/dist/npm/editor.module.js +0 -243
  380. package/dist/npm/index.js +0 -138
  381. package/dist/npm/localization/custom-messages.component.js +0 -47
  382. package/dist/npm/localization/editor-localization.service.js +0 -26
  383. package/dist/npm/localization/localized-messages.directive.js +0 -38
  384. package/dist/npm/localization/messages.js +0 -232
  385. package/dist/npm/main.js +0 -38
  386. package/dist/npm/package-metadata.js +0 -17
  387. package/dist/npm/preventable-events/paste-event-data.js +0 -6
  388. package/dist/npm/preventable-events/paste-event.js +0 -27
  389. package/dist/npm/tools/alignment/editor-align-center-button.directive.js +0 -49
  390. package/dist/npm/tools/alignment/editor-align-justify-button.directive.js +0 -49
  391. package/dist/npm/tools/alignment/editor-align-left-button.directive.js +0 -49
  392. package/dist/npm/tools/alignment/editor-align-right-button.directive.js +0 -49
  393. package/dist/npm/tools/blockquote/editor-blockquote-button.directive.js +0 -50
  394. package/dist/npm/tools/colorpicker/editor-back-color.directive.js +0 -30
  395. package/dist/npm/tools/colorpicker/editor-colorpicker.component.js +0 -235
  396. package/dist/npm/tools/colorpicker/editor-fore-color.directive.js +0 -30
  397. package/dist/npm/tools/editor-clean-formatting-button.directive.js +0 -48
  398. package/dist/npm/tools/fontfamily/editor-fontfamily-dropdownlist.component.js +0 -73
  399. package/dist/npm/tools/fontfamily/editor-fontfamily.component.js +0 -213
  400. package/dist/npm/tools/fontsize/editor-fontsize-dropdownlist.component.js +0 -73
  401. package/dist/npm/tools/fontsize/editor-fontsize.component.js +0 -208
  402. package/dist/npm/tools/format/editor-format-dropdownlist.component.js +0 -73
  403. package/dist/npm/tools/format/editor-format.component.js +0 -204
  404. package/dist/npm/tools/history/editor-redo-button.directive.js +0 -49
  405. package/dist/npm/tools/history/editor-undo-button.directive.js +0 -49
  406. package/dist/npm/tools/image/editor-insert-image-button.directive.js +0 -48
  407. package/dist/npm/tools/indentation/editor-indent-button.directive.js +0 -49
  408. package/dist/npm/tools/indentation/editor-outdent-button.directive.js +0 -49
  409. package/dist/npm/tools/link/editor-create-link-button.directive.js +0 -49
  410. package/dist/npm/tools/link/editor-insert-file-button.directive.js +0 -41
  411. package/dist/npm/tools/link/editor-unlink-button.directive.js +0 -49
  412. package/dist/npm/tools/list/editor-insert-ordered-list-button.directive.js +0 -49
  413. package/dist/npm/tools/list/editor-insert-unordered-list-button.directive.js +0 -49
  414. package/dist/npm/tools/print/editor-print-button.directive.js +0 -71
  415. package/dist/npm/tools/select-all/select-all-button.directive.js +0 -52
  416. package/dist/npm/tools/shared/dropdown-tool.directive.js +0 -43
  417. package/dist/npm/tools/shared/editor-command-base.js +0 -51
  418. package/dist/npm/tools/shared/editor-command-button.js +0 -36
  419. package/dist/npm/tools/shared/editor-command-dialog.js +0 -32
  420. package/dist/npm/tools/source/editor-view-source-button.directive.js +0 -48
  421. package/dist/npm/tools/tables/editor-add-column-after-button.directive.js +0 -42
  422. package/dist/npm/tools/tables/editor-add-column-before-button.directive.js +0 -42
  423. package/dist/npm/tools/tables/editor-add-row-after-button.directive.js +0 -42
  424. package/dist/npm/tools/tables/editor-add-row-before-button.directive.js +0 -42
  425. package/dist/npm/tools/tables/editor-delete-column-button.directive.js +0 -42
  426. package/dist/npm/tools/tables/editor-delete-row-button.directive.js +0 -42
  427. package/dist/npm/tools/tables/editor-delete-table-button.directive.js +0 -42
  428. package/dist/npm/tools/tables/editor-insert-table-button.component.js +0 -204
  429. package/dist/npm/tools/tables/editor-merge-cells-button.directive.js +0 -44
  430. package/dist/npm/tools/tables/editor-split-cell-button.directive.js +0 -44
  431. package/dist/npm/tools/tables/popup-table-grid.component.js +0 -71
  432. package/dist/npm/tools/tools.service.js +0 -22
  433. package/dist/npm/tools/typographical-emphasis/editor-bold-button.directive.js +0 -49
  434. package/dist/npm/tools/typographical-emphasis/editor-italic-button.directive.js +0 -49
  435. package/dist/npm/tools/typographical-emphasis/editor-strikethrough-button.directive.js +0 -49
  436. package/dist/npm/tools/typographical-emphasis/editor-subscript-button.directive.js +0 -49
  437. package/dist/npm/tools/typographical-emphasis/editor-superscript-button.directive.js +0 -49
  438. package/dist/npm/tools/typographical-emphasis/editor-underline-button.directive.js +0 -49
  439. package/dist/npm/util.js +0 -130
  440. package/dist/systemjs/kendo-angular-editor.js +0 -5
@@ -1,44 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
10
- var editor_component_1 = require("../../editor.component");
11
- var editor_command_button_1 = require("../shared/editor-command-button");
12
- var editor_localization_service_1 = require("../../localization/editor-localization.service");
13
- var tools_service_1 = require("../tools.service");
14
- /**
15
- * @hidden
16
- *
17
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor SplitCell tool
18
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
19
- * The directive will predefine the `icon` and `click` event handlers of the button.
20
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
21
- *
22
- * @example
23
- * ```ts-no-run
24
- * <kendo-toolbar-button kendoEditorSplitCellButton></kendo-toolbar-button>
25
- * ```
26
- */
27
- var EditorSplitCellButtonDirective = /** @class */ (function (_super) {
28
- tslib_1.__extends(EditorSplitCellButtonDirective, _super);
29
- function EditorSplitCellButtonDirective(button, editor, localization, toolsService) {
30
- return _super.call(this, 'splitCell', button, editor, localization, toolsService) || this;
31
- }
32
- EditorSplitCellButtonDirective = tslib_1.__decorate([
33
- core_1.Directive({
34
- selector: 'kendo-toolbar-button[kendoEditorSplitCellButton]'
35
- }),
36
- tslib_1.__param(1, core_1.Host()),
37
- tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
38
- editor_component_1.EditorComponent,
39
- editor_localization_service_1.EditorLocalizationService,
40
- tools_service_1.EditorToolsService])
41
- ], EditorSplitCellButtonDirective);
42
- return EditorSplitCellButtonDirective;
43
- }(editor_command_button_1.EditorCommandButton));
44
- exports.EditorSplitCellButtonDirective = EditorSplitCellButtonDirective;
@@ -1,71 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- /**
10
- * @hidden
11
- */
12
- var PopupTableGridComponent = /** @class */ (function () {
13
- function PopupTableGridComponent() {
14
- this.cellClick = new core_1.EventEmitter();
15
- this.tableWizardClick = new core_1.EventEmitter();
16
- this.state = { rows: -1, cols: -1 };
17
- this.rows = 6;
18
- this.cols = 8;
19
- }
20
- Object.defineProperty(PopupTableGridComponent.prototype, "message", {
21
- get: function () {
22
- var _a = this.state, rows = _a.rows, cols = _a.cols;
23
- return "Create a " + (rows > -1 ? rows + 1 : '') + " " + (cols > -1 ? 'x' : '') + " " + (cols > -1 ? cols + 1 : '') + " table";
24
- },
25
- enumerable: true,
26
- configurable: true
27
- });
28
- Object.defineProperty(PopupTableGridComponent.prototype, "cells", {
29
- get: function () {
30
- return Array.from(Array(this.rows * this.cols).keys());
31
- },
32
- enumerable: true,
33
- configurable: true
34
- });
35
- PopupTableGridComponent.prototype.selected = function (index) {
36
- var _a = this.state, rows = _a.rows, cols = _a.cols;
37
- var cellRow = Math.floor(index / this.cols);
38
- var cellCol = index % this.cols;
39
- return cellRow <= rows && cellCol <= cols;
40
- };
41
- PopupTableGridComponent.prototype.setState = function (index) {
42
- var rows = Math.floor(index / this.cols);
43
- var cols = index % this.cols;
44
- this.state = { rows: rows, cols: cols };
45
- };
46
- PopupTableGridComponent.prototype.resetState = function () {
47
- this.state = { rows: -1, cols: -1 };
48
- };
49
- PopupTableGridComponent.prototype.insertTable = function () {
50
- this.cellClick.emit(this.state);
51
- };
52
- PopupTableGridComponent.prototype.openTableWizard = function () {
53
- this.tableWizardClick.emit();
54
- };
55
- tslib_1.__decorate([
56
- core_1.Output(),
57
- tslib_1.__metadata("design:type", core_1.EventEmitter)
58
- ], PopupTableGridComponent.prototype, "cellClick", void 0);
59
- tslib_1.__decorate([
60
- core_1.Output(),
61
- tslib_1.__metadata("design:type", core_1.EventEmitter)
62
- ], PopupTableGridComponent.prototype, "tableWizardClick", void 0);
63
- PopupTableGridComponent = tslib_1.__decorate([
64
- core_1.Component({
65
- selector: 'kendo-popup-table-grid',
66
- template: "\n <div style=\"border-color: inherit;\" (mouseleave)=\"resetState()\" (click)=\"insertTable()\">\n <span *ngFor=\"let i of cells\"\n class=\"k-ct-cell\"\n [class.k-state-selected]=\"selected(i)\"\n [class.k-state-disabled]=\"!selected(i)\"\n (mouseenter)=\"setState(i)\">\n </span>\n </div>\n <div class=\"k-status\" unselectable=\"on\">{{ message }}</div>\n <!-- uncomment when TableWizard is completed\n <div class=\"k-editor-toolbar\" unselectable=\"on\">\n <button type=\"button\" kendoButton class=\"k-tool\" [icon]=\"'table-wizard'\" (click)=\"openTableWizard()\" title=\"Table Wizard\">Table Wizard</button>\n </div>\n -->\n "
67
- })
68
- ], PopupTableGridComponent);
69
- return PopupTableGridComponent;
70
- }());
71
- exports.PopupTableGridComponent = PopupTableGridComponent;
@@ -1,22 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var rxjs_1 = require("rxjs");
10
- /**
11
- * @hidden
12
- */
13
- var EditorToolsService = /** @class */ (function () {
14
- function EditorToolsService() {
15
- this.needsCheck = new rxjs_1.Subject();
16
- }
17
- EditorToolsService = tslib_1.__decorate([
18
- core_1.Injectable()
19
- ], EditorToolsService);
20
- return EditorToolsService;
21
- }());
22
- exports.EditorToolsService = EditorToolsService;
@@ -1,49 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
10
- var editor_component_1 = require("../../editor.component");
11
- var editor_command_button_1 = require("../shared/editor-command-button");
12
- var editor_localization_service_1 = require("../../localization/editor-localization.service");
13
- var tools_service_1 = require("../tools.service");
14
- /**
15
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor Bold tool
16
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
17
- * The directive will predefine the `icon` and `click` event handlers of the button.
18
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
19
- *
20
- * @example
21
- * ```ts-no-run
22
- * <kendo-toolbar-button kendoEditorBoldButton></kendo-toolbar-button>
23
- * ```
24
- *
25
- * The following example demonstrates how to change the default icon that is applied by the directive.
26
- *
27
- * @example
28
- * ```ts-no-run
29
- * <kendo-toolbar-button kendoEditorBoldButton icon="blogger"></kendo-toolbar-button>
30
- * ```
31
- */
32
- var EditorBoldButtonDirective = /** @class */ (function (_super) {
33
- tslib_1.__extends(EditorBoldButtonDirective, _super);
34
- function EditorBoldButtonDirective(button, editor, localization, toolsService) {
35
- return _super.call(this, 'bold', button, editor, localization, toolsService) || this;
36
- }
37
- EditorBoldButtonDirective = tslib_1.__decorate([
38
- core_1.Directive({
39
- selector: 'kendo-toolbar-button[kendoEditorBoldButton]'
40
- }),
41
- tslib_1.__param(1, core_1.Host()),
42
- tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
43
- editor_component_1.EditorComponent,
44
- editor_localization_service_1.EditorLocalizationService,
45
- tools_service_1.EditorToolsService])
46
- ], EditorBoldButtonDirective);
47
- return EditorBoldButtonDirective;
48
- }(editor_command_button_1.EditorCommandButton));
49
- exports.EditorBoldButtonDirective = EditorBoldButtonDirective;
@@ -1,49 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
10
- var editor_component_1 = require("../../editor.component");
11
- var editor_command_button_1 = require("../shared/editor-command-button");
12
- var editor_localization_service_1 = require("../../localization/editor-localization.service");
13
- var tools_service_1 = require("../tools.service");
14
- /**
15
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor Italic tool
16
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
17
- * The directive will predefine the `icon` and `click` event handlers of the button.
18
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
19
- *
20
- * @example
21
- * ```ts-no-run
22
- * <kendo-toolbar-button kendoEditorItalicButton></kendo-toolbar-button>
23
- * ```
24
- *
25
- * The following example demonstrates how to change the default icon that is applied by the directive.
26
- *
27
- * @example
28
- * ```ts-no-run
29
- * <kendo-toolbar-button kendoEditorItalicButton icon="blogger"></kendo-toolbar-button>
30
- * ```
31
- */
32
- var EditorItalicButtonDirective = /** @class */ (function (_super) {
33
- tslib_1.__extends(EditorItalicButtonDirective, _super);
34
- function EditorItalicButtonDirective(button, editor, localization, toolsService) {
35
- return _super.call(this, 'italic', button, editor, localization, toolsService) || this;
36
- }
37
- EditorItalicButtonDirective = tslib_1.__decorate([
38
- core_1.Directive({
39
- selector: 'kendo-toolbar-button[kendoEditorItalicButton]'
40
- }),
41
- tslib_1.__param(1, core_1.Host()),
42
- tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
43
- editor_component_1.EditorComponent,
44
- editor_localization_service_1.EditorLocalizationService,
45
- tools_service_1.EditorToolsService])
46
- ], EditorItalicButtonDirective);
47
- return EditorItalicButtonDirective;
48
- }(editor_command_button_1.EditorCommandButton));
49
- exports.EditorItalicButtonDirective = EditorItalicButtonDirective;
@@ -1,49 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
10
- var editor_component_1 = require("../../editor.component");
11
- var editor_command_button_1 = require("../shared/editor-command-button");
12
- var editor_localization_service_1 = require("../../localization/editor-localization.service");
13
- var tools_service_1 = require("../tools.service");
14
- /**
15
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor Strikethrough tool
16
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
17
- * The directive will predefine the `icon` and `click` event handlers of the button.
18
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
19
- *
20
- * @example
21
- * ```ts-no-run
22
- * <kendo-toolbar-button kendoEditorStrikethroughButton></kendo-toolbar-button>
23
- * ```
24
- *
25
- * The following example demonstrates how to change the default icon that is applied by the directive.
26
- *
27
- * @example
28
- * ```ts-no-run
29
- * <kendo-toolbar-button kendoEditorStrikethroughButton icon="blogger"></kendo-toolbar-button>
30
- * ```
31
- */
32
- var EditorStrikethroughButtonDirective = /** @class */ (function (_super) {
33
- tslib_1.__extends(EditorStrikethroughButtonDirective, _super);
34
- function EditorStrikethroughButtonDirective(button, editor, localization, toolsService) {
35
- return _super.call(this, 'strikethrough', button, editor, localization, toolsService) || this;
36
- }
37
- EditorStrikethroughButtonDirective = tslib_1.__decorate([
38
- core_1.Directive({
39
- selector: 'kendo-toolbar-button[kendoEditorStrikethroughButton]'
40
- }),
41
- tslib_1.__param(1, core_1.Host()),
42
- tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
43
- editor_component_1.EditorComponent,
44
- editor_localization_service_1.EditorLocalizationService,
45
- tools_service_1.EditorToolsService])
46
- ], EditorStrikethroughButtonDirective);
47
- return EditorStrikethroughButtonDirective;
48
- }(editor_command_button_1.EditorCommandButton));
49
- exports.EditorStrikethroughButtonDirective = EditorStrikethroughButtonDirective;
@@ -1,49 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
10
- var editor_component_1 = require("../../editor.component");
11
- var editor_command_button_1 = require("../shared/editor-command-button");
12
- var editor_localization_service_1 = require("../../localization/editor-localization.service");
13
- var tools_service_1 = require("../tools.service");
14
- /**
15
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor Subscript tool
16
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
17
- * The directive will predefine the `icon` and `click` event handlers of the button.
18
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
19
- *
20
- * @example
21
- * ```ts-no-run
22
- * <kendo-toolbar-button kendoEditorSubscriptButton></kendo-toolbar-button>
23
- * ```
24
- *
25
- * The following example demonstrates how to change the default icon that is applied by the directive.
26
- *
27
- * @example
28
- * ```ts-no-run
29
- * <kendo-toolbar-button kendoEditorSubscriptButton icon="blogger"></kendo-toolbar-button>
30
- * ```
31
- */
32
- var EditorSubscriptButtonDirective = /** @class */ (function (_super) {
33
- tslib_1.__extends(EditorSubscriptButtonDirective, _super);
34
- function EditorSubscriptButtonDirective(button, editor, localization, toolsService) {
35
- return _super.call(this, 'subscript', button, editor, localization, toolsService) || this;
36
- }
37
- EditorSubscriptButtonDirective = tslib_1.__decorate([
38
- core_1.Directive({
39
- selector: 'kendo-toolbar-button[kendoEditorSubscriptButton]'
40
- }),
41
- tslib_1.__param(1, core_1.Host()),
42
- tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
43
- editor_component_1.EditorComponent,
44
- editor_localization_service_1.EditorLocalizationService,
45
- tools_service_1.EditorToolsService])
46
- ], EditorSubscriptButtonDirective);
47
- return EditorSubscriptButtonDirective;
48
- }(editor_command_button_1.EditorCommandButton));
49
- exports.EditorSubscriptButtonDirective = EditorSubscriptButtonDirective;
@@ -1,49 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
10
- var editor_component_1 = require("../../editor.component");
11
- var editor_command_button_1 = require("../shared/editor-command-button");
12
- var editor_localization_service_1 = require("../../localization/editor-localization.service");
13
- var tools_service_1 = require("../tools.service");
14
- /**
15
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor Superscript tool
16
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
17
- * The directive will predefine the `icon` and `click` event handlers of the button.
18
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
19
- *
20
- * @example
21
- * ```ts-no-run
22
- * <kendo-toolbar-button kendoEditorSuperscriptButton></kendo-toolbar-button>
23
- * ```
24
- *
25
- * The following example demonstrates how to change the default icon that is applied by the directive.
26
- *
27
- * @example
28
- * ```ts-no-run
29
- * <kendo-toolbar-button kendoEditorSuperscriptButton icon="blogger"></kendo-toolbar-button>
30
- * ```
31
- */
32
- var EditorSuperscriptButtonDirective = /** @class */ (function (_super) {
33
- tslib_1.__extends(EditorSuperscriptButtonDirective, _super);
34
- function EditorSuperscriptButtonDirective(button, editor, localization, toolsService) {
35
- return _super.call(this, 'superscript', button, editor, localization, toolsService) || this;
36
- }
37
- EditorSuperscriptButtonDirective = tslib_1.__decorate([
38
- core_1.Directive({
39
- selector: 'kendo-toolbar-button[kendoEditorSuperscriptButton]'
40
- }),
41
- tslib_1.__param(1, core_1.Host()),
42
- tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
43
- editor_component_1.EditorComponent,
44
- editor_localization_service_1.EditorLocalizationService,
45
- tools_service_1.EditorToolsService])
46
- ], EditorSuperscriptButtonDirective);
47
- return EditorSuperscriptButtonDirective;
48
- }(editor_command_button_1.EditorCommandButton));
49
- exports.EditorSuperscriptButtonDirective = EditorSuperscriptButtonDirective;
@@ -1,49 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
10
- var editor_component_1 = require("../../editor.component");
11
- var editor_command_button_1 = require("../shared/editor-command-button");
12
- var editor_localization_service_1 = require("../../localization/editor-localization.service");
13
- var tools_service_1 = require("../tools.service");
14
- /**
15
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor Underline tool
16
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
17
- * The directive will predefine the `icon` and `click` event handlers of the button.
18
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
19
- *
20
- * @example
21
- * ```ts-no-run
22
- * <kendo-toolbar-button kendoEditorUnderlineButton></kendo-toolbar-button>
23
- * ```
24
- *
25
- * The following example demonstrates how to change the default icon that is applied by the directive.
26
- *
27
- * @example
28
- * ```ts-no-run
29
- * <kendo-toolbar-button kendoEditorUnderlineButton icon="blogger"></kendo-toolbar-button>
30
- * ```
31
- */
32
- var EditorUnderlineButtonDirective = /** @class */ (function (_super) {
33
- tslib_1.__extends(EditorUnderlineButtonDirective, _super);
34
- function EditorUnderlineButtonDirective(button, editor, localization, toolsService) {
35
- return _super.call(this, 'underline', button, editor, localization, toolsService) || this;
36
- }
37
- EditorUnderlineButtonDirective = tslib_1.__decorate([
38
- core_1.Directive({
39
- selector: 'kendo-toolbar-button[kendoEditorUnderlineButton]'
40
- }),
41
- tslib_1.__param(1, core_1.Host()),
42
- tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
43
- editor_component_1.EditorComponent,
44
- editor_localization_service_1.EditorLocalizationService,
45
- tools_service_1.EditorToolsService])
46
- ], EditorUnderlineButtonDirective);
47
- return EditorUnderlineButtonDirective;
48
- }(editor_command_button_1.EditorCommandButton));
49
- exports.EditorUnderlineButtonDirective = EditorUnderlineButtonDirective;
package/dist/npm/util.js DELETED
@@ -1,130 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var kendo_angular_common_1 = require("@progress/kendo-angular-common");
8
- /**
9
- * @hidden
10
- */
11
- function outerWidth(element) {
12
- var width = element.offsetWidth;
13
- var style = getComputedStyle(element);
14
- width += parseFloat(style.marginLeft) || 0 + parseFloat(style.marginRight) || 0;
15
- return width;
16
- }
17
- exports.outerWidth = outerWidth;
18
- /**
19
- * @hidden
20
- */
21
- exports.removeEntries = function (obj, predicate) {
22
- return Object.keys(obj)
23
- .filter(function (key) { return predicate(key); })
24
- .reduce(function (acc, curr) {
25
- var _a;
26
- return Object.assign(acc, (_a = {}, _a[curr] = obj[curr], _a));
27
- }, {});
28
- };
29
- /**
30
- * @hidden
31
- */
32
- exports.removeEmptyEntries = function (obj) {
33
- var predicate = function (key) { return obj[key] !== null && obj[key] !== undefined && obj[key] !== ''; };
34
- return exports.removeEntries(obj, predicate);
35
- };
36
- /**
37
- * @hidden
38
- */
39
- exports.isEmpty = function (obj) { return Object.keys(obj).length === 0; };
40
- /**
41
- * @hidden
42
- */
43
- exports.isNullOrUndefined = function (value) { return value === undefined || value === null; };
44
- /**
45
- * @hidden
46
- */
47
- exports.isPresent = function (value) { return !exports.isNullOrUndefined(value); };
48
- /**
49
- * @hidden
50
- */
51
- exports.detectIE = function () {
52
- if (!kendo_angular_common_1.isDocumentAvailable()) {
53
- return false;
54
- }
55
- var ua = window.navigator.userAgent;
56
- var msie = ua.indexOf('MSIE ');
57
- var trident = ua.indexOf('Trident/');
58
- return msie > 0 || trident > 0;
59
- };
60
- /**
61
- * @hidden
62
- */
63
- exports.safeString = function (value) { return (exports.isNullOrUndefined(value) ? '' : value.toString()); };
64
- /**
65
- * @hidden
66
- */
67
- exports.first = function (arr) { return arr[0]; };
68
- /**
69
- * @hidden
70
- */
71
- exports.last = function (arr) { return arr[arr.length - 1]; };
72
- /**
73
- * @hidden
74
- */
75
- exports.unique = function (arr) { return Array.from(new Set(arr)); };
76
- /**
77
- * @hidden
78
- */
79
- exports.split = function (splitter) { return function (value) { return value.split(splitter); }; };
80
- /**
81
- * @hidden
82
- */
83
- exports.trim = function (value) { return value.trim(); };
84
- /**
85
- * @hidden
86
- */
87
- exports.filter = function (predicate) { return function (arr) { return arr.filter(predicate); }; };
88
- /**
89
- * @hidden
90
- */
91
- exports.toArray = function (x) { return (x instanceof Array ? x : [x]); };
92
- /**
93
- * @hidden
94
- */
95
- exports.getUniqueStyleValues = function (style, cssStyle) {
96
- if (style.hasNodesWithoutMarks) {
97
- return '';
98
- }
99
- var uniqueMarkValues = style.marks
100
- .filter(function (m) { return m.type.name === 'style'; })
101
- .map(function (m) { return m.attrs.style; })
102
- .map(exports.safeString)
103
- .map(exports.split(';'))
104
- .map(exports.filter(function (m) { return m.includes(cssStyle); }))
105
- // guards against empty array
106
- .map(function (cssStyleValues) { return (cssStyleValues.length !== 0 ? cssStyleValues : [cssStyle + ": INVALID"]); })
107
- .map(exports.first)
108
- .map(exports.split(':'))
109
- .map(exports.last)
110
- .map(exports.trim)
111
- .reduce(function (acc, curr) { return (acc.indexOf(curr) > -1 ? acc : acc.concat([curr])); }, []);
112
- if (uniqueMarkValues.indexOf('INVALID') > -1 || uniqueMarkValues.length !== 1) {
113
- return '';
114
- }
115
- return uniqueMarkValues[0];
116
- };
117
- /**
118
- * @hidden
119
- */
120
- exports.conditionallyExecute = function (fn) { return function (condition) { return function (param) { return (condition ? fn(param) : param); }; }; };
121
- /**
122
- * @hidden
123
- */
124
- exports.pipe = function () {
125
- var fns = [];
126
- for (var _i = 0; _i < arguments.length; _i++) {
127
- fns[_i] = arguments[_i];
128
- }
129
- return function (x) { return fns.reduce(function (y, f) { return f(y); }, x); };
130
- };