@progress/kendo-angular-editor 3.1.2 → 4.0.0-dev.202204140850

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 (442) 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} +32 -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 +331 -200
  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} +37 -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 +1 -1
  79. package/esm2015/preventable-events/preventable-event.js +27 -0
  80. package/esm2015/tools/alignment/editor-align-center-button.directive.js +42 -0
  81. package/esm2015/tools/alignment/editor-align-justify-button.directive.js +42 -0
  82. package/esm2015/tools/alignment/editor-align-left-button.directive.js +42 -0
  83. package/esm2015/tools/alignment/editor-align-right-button.directive.js +42 -0
  84. package/esm2015/tools/blockquote/editor-blockquote-button.directive.js +41 -0
  85. package/esm2015/tools/colorpicker/editor-back-color.directive.js +28 -0
  86. package/esm2015/tools/colorpicker/editor-colorpicker.component.js +262 -0
  87. package/esm2015/tools/colorpicker/editor-fore-color.directive.js +28 -0
  88. package/esm2015/tools/editor-clean-formatting-button.directive.js +41 -0
  89. package/esm2015/tools/fontfamily/editor-fontfamily-dropdownlist.component.js +104 -0
  90. package/{dist/es2015 → esm2015}/tools/fontfamily/editor-fontfamily.component.js +73 -57
  91. package/esm2015/tools/fontsize/editor-fontsize-dropdownlist.component.js +93 -0
  92. package/{dist/es2015 → esm2015}/tools/fontsize/editor-fontsize.component.js +72 -54
  93. package/esm2015/tools/format/editor-format-dropdownlist.component.js +160 -0
  94. package/{dist/es2015 → esm2015}/tools/format/editor-format.component.js +69 -51
  95. package/esm2015/tools/history/editor-redo-button.directive.js +42 -0
  96. package/esm2015/tools/history/editor-undo-button.directive.js +42 -0
  97. package/esm2015/tools/image/editor-insert-image-button.directive.js +41 -0
  98. package/esm2015/tools/indentation/editor-indent-button.directive.js +42 -0
  99. package/esm2015/tools/indentation/editor-outdent-button.directive.js +42 -0
  100. package/esm2015/tools/link/editor-create-link-button.directive.js +42 -0
  101. package/esm2015/tools/link/editor-insert-file-button.directive.js +34 -0
  102. package/esm2015/tools/link/editor-unlink-button.directive.js +42 -0
  103. package/esm2015/tools/list/editor-insert-ordered-list-button.directive.js +42 -0
  104. package/esm2015/tools/list/editor-insert-unordered-list-button.directive.js +42 -0
  105. package/{dist/es2015 → esm2015}/tools/print/editor-print-button.directive.js +18 -22
  106. package/esm2015/tools/select-all/select-all-button.directive.js +45 -0
  107. package/{dist/es2015 → esm2015}/tools/shared/dropdown-tool.directive.js +10 -10
  108. package/esm2015/tools/shared/editor-command-base.js +64 -0
  109. package/{dist/es2015 → esm2015}/tools/shared/editor-command-button.js +5 -5
  110. package/{dist/es2015 → esm2015}/tools/shared/editor-command-dialog.js +4 -5
  111. package/esm2015/tools/source/editor-view-source-button.directive.js +41 -0
  112. package/esm2015/tools/tables/editor-add-column-after-button.directive.js +35 -0
  113. package/esm2015/tools/tables/editor-add-column-before-button.directive.js +35 -0
  114. package/esm2015/tools/tables/editor-add-row-after-button.directive.js +35 -0
  115. package/esm2015/tools/tables/editor-add-row-before-button.directive.js +35 -0
  116. package/esm2015/tools/tables/editor-delete-column-button.directive.js +35 -0
  117. package/esm2015/tools/tables/editor-delete-row-button.directive.js +35 -0
  118. package/esm2015/tools/tables/editor-delete-table-button.directive.js +35 -0
  119. package/{dist/es2015 → esm2015}/tools/tables/editor-insert-table-button.component.js +66 -45
  120. package/esm2015/tools/tables/editor-merge-cells-button.directive.js +37 -0
  121. package/esm2015/tools/tables/editor-split-cell-button.directive.js +37 -0
  122. package/{dist/es2015 → esm2015}/tools/tables/popup-table-grid.component.js +32 -21
  123. package/esm2015/tools/tools.service.js +20 -0
  124. package/esm2015/tools/typographical-emphasis/editor-bold-button.directive.js +42 -0
  125. package/esm2015/tools/typographical-emphasis/editor-italic-button.directive.js +42 -0
  126. package/esm2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +42 -0
  127. package/esm2015/tools/typographical-emphasis/editor-subscript-button.directive.js +42 -0
  128. package/esm2015/tools/typographical-emphasis/editor-superscript-button.directive.js +42 -0
  129. package/esm2015/tools/typographical-emphasis/editor-underline-button.directive.js +42 -0
  130. package/{dist/es2015 → esm2015}/util.js +8 -0
  131. package/fesm2015/kendo-angular-editor.js +6396 -0
  132. package/kendo-angular-editor.d.ts +9 -0
  133. package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +6 -3
  134. package/{dist/es2015/localization → localization}/editor-localization.service.d.ts +3 -0
  135. package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +5 -2
  136. package/{dist/es2015/localization → localization}/messages.d.ts +4 -1
  137. package/{dist/es/index.js → main.d.ts} +39 -47
  138. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  139. package/package.json +44 -121
  140. package/{dist/es2015/preventable-events → preventable-events}/paste-event-data.d.ts +0 -0
  141. package/{dist/es2015/preventable-events → preventable-events}/paste-event.d.ts +1 -1
  142. package/preventable-events/preventable-event.d.ts +21 -0
  143. package/schematics/ngAdd/index.js +5 -2
  144. package/schematics/ngAdd/index.js.map +1 -1
  145. package/{dist/es2015/tools → tools}/alignment/editor-align-center-button.directive.d.ts +5 -2
  146. package/{dist/es2015/tools → tools}/alignment/editor-align-justify-button.directive.d.ts +5 -2
  147. package/{dist/es2015/tools → tools}/alignment/editor-align-left-button.directive.d.ts +5 -2
  148. package/{dist/es2015/tools → tools}/alignment/editor-align-right-button.directive.d.ts +5 -2
  149. package/{dist/es2015/tools → tools}/blockquote/editor-blockquote-button.directive.d.ts +5 -3
  150. package/{dist/es2015/tools → tools}/colorpicker/editor-back-color.directive.d.ts +3 -0
  151. package/{dist/es2015/tools → tools}/colorpicker/editor-colorpicker.component.d.ts +10 -6
  152. package/{dist/es2015/tools → tools}/colorpicker/editor-fore-color.directive.d.ts +3 -0
  153. package/{dist/es2015/tools → tools}/editor-clean-formatting-button.directive.d.ts +5 -2
  154. package/{dist/es2015/tools → tools}/fontfamily/editor-fontfamily-dropdownlist.component.d.ts +3 -0
  155. package/{dist/es2015/tools → tools}/fontfamily/editor-fontfamily.component.d.ts +10 -6
  156. package/{dist/es2015/tools → tools}/fontsize/editor-fontsize-dropdownlist.component.d.ts +3 -0
  157. package/{dist/es2015/tools → tools}/fontsize/editor-fontsize.component.d.ts +10 -6
  158. package/{dist/es2015/tools → tools}/format/editor-format-dropdownlist.component.d.ts +3 -0
  159. package/{dist/es2015/tools → tools}/format/editor-format.component.d.ts +10 -6
  160. package/{dist/es2015/tools → tools}/history/editor-redo-button.directive.d.ts +5 -2
  161. package/{dist/es2015/tools → tools}/history/editor-undo-button.directive.d.ts +5 -2
  162. package/{dist/es2015/tools → tools}/image/editor-insert-image-button.directive.d.ts +5 -2
  163. package/{dist/es2015/tools → tools}/indentation/editor-indent-button.directive.d.ts +5 -2
  164. package/{dist/es2015/tools → tools}/indentation/editor-outdent-button.directive.d.ts +5 -2
  165. package/{dist/es2015/tools → tools}/link/editor-create-link-button.directive.d.ts +5 -2
  166. package/{dist/es2015/tools → tools}/link/editor-insert-file-button.directive.d.ts +5 -2
  167. package/{dist/es2015/tools → tools}/link/editor-unlink-button.directive.d.ts +5 -2
  168. package/{dist/es2015/tools → tools}/list/editor-insert-ordered-list-button.directive.d.ts +5 -2
  169. package/{dist/es2015/tools → tools}/list/editor-insert-unordered-list-button.directive.d.ts +5 -2
  170. package/{dist/es2015/tools → tools}/print/editor-print-button.directive.d.ts +5 -3
  171. package/{dist/es2015/tools → tools}/select-all/select-all-button.directive.d.ts +5 -2
  172. package/{dist/es2015/tools → tools}/shared/dropdown-tool.directive.d.ts +4 -1
  173. package/{dist/es2015/tools → tools}/shared/editor-command-base.d.ts +8 -4
  174. package/{dist/es2015/tools → tools}/shared/editor-command-button.d.ts +5 -5
  175. package/{dist/es2015/tools → tools}/shared/editor-command-dialog.d.ts +4 -5
  176. package/{dist/es2015/tools → tools}/source/editor-view-source-button.directive.d.ts +5 -2
  177. package/{dist/es2015/tools → tools}/tables/editor-add-column-after-button.directive.d.ts +5 -2
  178. package/{dist/es2015/tools → tools}/tables/editor-add-column-before-button.directive.d.ts +5 -2
  179. package/{dist/es2015/tools → tools}/tables/editor-add-row-after-button.directive.d.ts +5 -2
  180. package/{dist/es2015/tools → tools}/tables/editor-add-row-before-button.directive.d.ts +5 -2
  181. package/{dist/es2015/tools → tools}/tables/editor-delete-column-button.directive.d.ts +5 -2
  182. package/{dist/es2015/tools → tools}/tables/editor-delete-row-button.directive.d.ts +5 -2
  183. package/{dist/es2015/tools → tools}/tables/editor-delete-table-button.directive.d.ts +5 -2
  184. package/{dist/es2015/tools → tools}/tables/editor-insert-table-button.component.d.ts +10 -9
  185. package/{dist/es2015/tools → tools}/tables/editor-merge-cells-button.directive.d.ts +5 -2
  186. package/{dist/es2015/tools → tools}/tables/editor-split-cell-button.directive.d.ts +5 -2
  187. package/{dist/es2015/tools → tools}/tables/popup-table-grid.component.d.ts +7 -6
  188. package/{dist/es2015/tools → tools}/tools.service.d.ts +3 -0
  189. package/{dist/es2015/tools → tools}/typographical-emphasis/editor-bold-button.directive.d.ts +5 -2
  190. package/{dist/es2015/tools → tools}/typographical-emphasis/editor-italic-button.directive.d.ts +5 -2
  191. package/{dist/es2015/tools → tools}/typographical-emphasis/editor-strikethrough-button.directive.d.ts +5 -2
  192. package/{dist/es2015/tools → tools}/typographical-emphasis/editor-subscript-button.directive.d.ts +5 -2
  193. package/{dist/es2015/tools → tools}/typographical-emphasis/editor-superscript-button.directive.d.ts +5 -2
  194. package/{dist/es2015/tools → tools}/typographical-emphasis/editor-underline-button.directive.d.ts +5 -2
  195. package/{dist/es2015/util.d.ts → util.d.ts} +7 -0
  196. package/dist/cdn/js/kendo-angular-editor.js +0 -20
  197. package/dist/cdn/main.js +0 -5
  198. package/dist/es/common/apply-to-word-options.js +0 -4
  199. package/dist/es/common/direction.js +0 -4
  200. package/dist/es/common/error-messages.js +0 -19
  201. package/dist/es/common/styles.js +0 -16
  202. package/dist/es/config/command-icons.js +0 -48
  203. package/dist/es/config/commands.js +0 -71
  204. package/dist/es/config/schema.js +0 -22
  205. package/dist/es/config/semantic-nodes.js +0 -32
  206. package/dist/es/config/table-commands.js +0 -14
  207. package/dist/es/config/utils.js +0 -102
  208. package/dist/es/dialogs/colorpicker-dialog.component.js +0 -70
  209. package/dist/es/dialogs/file-link-dialog.component.js +0 -126
  210. package/dist/es/dialogs/font-family-dialog.component.js +0 -65
  211. package/dist/es/dialogs/font-size-dialog.component.js +0 -65
  212. package/dist/es/dialogs/format-dialog.component.js +0 -65
  213. package/dist/es/dialogs/image-dialog.component.js +0 -102
  214. package/dist/es/dialogs/insert-table-dialog.component.js +0 -49
  215. package/dist/es/dialogs/source-dialog.component.js +0 -72
  216. package/dist/es/editor-toolbar-state.js +0 -280
  217. package/dist/es/editor.component.js +0 -1039
  218. package/dist/es/editor.module.js +0 -241
  219. package/dist/es/localization/custom-messages.component.js +0 -45
  220. package/dist/es/localization/editor-localization.service.js +0 -24
  221. package/dist/es/localization/localized-messages.directive.js +0 -36
  222. package/dist/es/localization/messages.js +0 -230
  223. package/dist/es/main.js +0 -9
  224. package/dist/es/package-metadata.js +0 -15
  225. package/dist/es/preventable-events/paste-event.js +0 -25
  226. package/dist/es/tools/alignment/editor-align-center-button.directive.js +0 -47
  227. package/dist/es/tools/alignment/editor-align-justify-button.directive.js +0 -47
  228. package/dist/es/tools/alignment/editor-align-left-button.directive.js +0 -47
  229. package/dist/es/tools/alignment/editor-align-right-button.directive.js +0 -47
  230. package/dist/es/tools/blockquote/editor-blockquote-button.directive.js +0 -48
  231. package/dist/es/tools/colorpicker/editor-back-color.directive.js +0 -28
  232. package/dist/es/tools/colorpicker/editor-colorpicker.component.js +0 -233
  233. package/dist/es/tools/colorpicker/editor-fore-color.directive.js +0 -28
  234. package/dist/es/tools/editor-clean-formatting-button.directive.js +0 -46
  235. package/dist/es/tools/fontfamily/editor-fontfamily-dropdownlist.component.js +0 -71
  236. package/dist/es/tools/fontfamily/editor-fontfamily.component.js +0 -211
  237. package/dist/es/tools/fontsize/editor-fontsize-dropdownlist.component.js +0 -71
  238. package/dist/es/tools/fontsize/editor-fontsize.component.js +0 -206
  239. package/dist/es/tools/format/editor-format-dropdownlist.component.js +0 -71
  240. package/dist/es/tools/format/editor-format.component.js +0 -202
  241. package/dist/es/tools/history/editor-redo-button.directive.js +0 -47
  242. package/dist/es/tools/history/editor-undo-button.directive.js +0 -47
  243. package/dist/es/tools/image/editor-insert-image-button.directive.js +0 -46
  244. package/dist/es/tools/indentation/editor-indent-button.directive.js +0 -47
  245. package/dist/es/tools/indentation/editor-outdent-button.directive.js +0 -47
  246. package/dist/es/tools/link/editor-create-link-button.directive.js +0 -47
  247. package/dist/es/tools/link/editor-insert-file-button.directive.js +0 -39
  248. package/dist/es/tools/link/editor-unlink-button.directive.js +0 -47
  249. package/dist/es/tools/list/editor-insert-ordered-list-button.directive.js +0 -47
  250. package/dist/es/tools/list/editor-insert-unordered-list-button.directive.js +0 -47
  251. package/dist/es/tools/print/editor-print-button.directive.js +0 -69
  252. package/dist/es/tools/select-all/select-all-button.directive.js +0 -50
  253. package/dist/es/tools/shared/dropdown-tool.directive.js +0 -41
  254. package/dist/es/tools/shared/editor-command-base.js +0 -49
  255. package/dist/es/tools/shared/editor-command-button.js +0 -34
  256. package/dist/es/tools/shared/editor-command-dialog.js +0 -30
  257. package/dist/es/tools/source/editor-view-source-button.directive.js +0 -46
  258. package/dist/es/tools/tables/editor-add-column-after-button.directive.js +0 -40
  259. package/dist/es/tools/tables/editor-add-column-before-button.directive.js +0 -40
  260. package/dist/es/tools/tables/editor-add-row-after-button.directive.js +0 -40
  261. package/dist/es/tools/tables/editor-add-row-before-button.directive.js +0 -40
  262. package/dist/es/tools/tables/editor-delete-column-button.directive.js +0 -40
  263. package/dist/es/tools/tables/editor-delete-row-button.directive.js +0 -40
  264. package/dist/es/tools/tables/editor-delete-table-button.directive.js +0 -40
  265. package/dist/es/tools/tables/editor-insert-table-button.component.js +0 -202
  266. package/dist/es/tools/tables/editor-merge-cells-button.directive.js +0 -42
  267. package/dist/es/tools/tables/editor-split-cell-button.directive.js +0 -42
  268. package/dist/es/tools/tables/popup-table-grid.component.js +0 -69
  269. package/dist/es/tools/tools.service.js +0 -20
  270. package/dist/es/tools/typographical-emphasis/editor-bold-button.directive.js +0 -47
  271. package/dist/es/tools/typographical-emphasis/editor-italic-button.directive.js +0 -47
  272. package/dist/es/tools/typographical-emphasis/editor-strikethrough-button.directive.js +0 -47
  273. package/dist/es/tools/typographical-emphasis/editor-subscript-button.directive.js +0 -47
  274. package/dist/es/tools/typographical-emphasis/editor-superscript-button.directive.js +0 -47
  275. package/dist/es/tools/typographical-emphasis/editor-underline-button.directive.js +0 -47
  276. package/dist/es/util.js +0 -127
  277. package/dist/es2015/common/commands.js +0 -4
  278. package/dist/es2015/common/font-family-item.interface.js +0 -4
  279. package/dist/es2015/common/font-size-item.interface.js +0 -4
  280. package/dist/es2015/common/format-item.interface.js +0 -4
  281. package/dist/es2015/common/image-data.interface.js +0 -4
  282. package/dist/es2015/common/link-data.interface.js +0 -4
  283. package/dist/es2015/common/paste-cleanup-settings.js +0 -4
  284. package/dist/es2015/common/plugins-function.js +0 -4
  285. package/dist/es2015/common/predicate.js +0 -4
  286. package/dist/es2015/common/resizable-options.interface.js +0 -4
  287. package/dist/es2015/common/table-data.interface.js +0 -4
  288. package/dist/es2015/config/commands.js +0 -67
  289. package/dist/es2015/dialogs/colorpicker-dialog.component.js +0 -92
  290. package/dist/es2015/dialogs/file-link-dialog.component.js +0 -163
  291. package/dist/es2015/dialogs/font-family-dialog.component.js +0 -84
  292. package/dist/es2015/dialogs/font-size-dialog.component.js +0 -84
  293. package/dist/es2015/dialogs/format-dialog.component.js +0 -84
  294. package/dist/es2015/dialogs/insert-table-dialog.component.js +0 -60
  295. package/dist/es2015/dialogs/source-dialog.component.js +0 -81
  296. package/dist/es2015/editor.module.d.ts +0 -45
  297. package/dist/es2015/index.d.ts +0 -72
  298. package/dist/es2015/index.metadata.json +0 -1
  299. package/dist/es2015/localization/custom-messages.component.js +0 -37
  300. package/dist/es2015/localization/editor-localization.service.js +0 -22
  301. package/dist/es2015/localization/localized-messages.directive.js +0 -32
  302. package/dist/es2015/localization/messages.js +0 -224
  303. package/dist/es2015/main.d.ts +0 -13
  304. package/dist/es2015/main.js +0 -9
  305. package/dist/es2015/preventable-events/paste-event-data.js +0 -4
  306. package/dist/es2015/tools/alignment/editor-align-center-button.directive.js +0 -45
  307. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.js +0 -45
  308. package/dist/es2015/tools/alignment/editor-align-left-button.directive.js +0 -45
  309. package/dist/es2015/tools/alignment/editor-align-right-button.directive.js +0 -45
  310. package/dist/es2015/tools/blockquote/editor-blockquote-button.directive.js +0 -45
  311. package/dist/es2015/tools/colorpicker/editor-back-color.directive.js +0 -27
  312. package/dist/es2015/tools/colorpicker/editor-colorpicker.component.js +0 -249
  313. package/dist/es2015/tools/colorpicker/editor-fore-color.directive.js +0 -27
  314. package/dist/es2015/tools/editor-clean-formatting-button.directive.js +0 -44
  315. package/dist/es2015/tools/fontfamily/editor-fontfamily-dropdownlist.component.js +0 -99
  316. package/dist/es2015/tools/fontsize/editor-fontsize-dropdownlist.component.js +0 -94
  317. package/dist/es2015/tools/format/editor-format-dropdownlist.component.js +0 -127
  318. package/dist/es2015/tools/history/editor-redo-button.directive.js +0 -45
  319. package/dist/es2015/tools/history/editor-undo-button.directive.js +0 -45
  320. package/dist/es2015/tools/image/editor-insert-image-button.directive.js +0 -44
  321. package/dist/es2015/tools/indentation/editor-indent-button.directive.js +0 -45
  322. package/dist/es2015/tools/indentation/editor-outdent-button.directive.js +0 -45
  323. package/dist/es2015/tools/link/editor-create-link-button.directive.js +0 -45
  324. package/dist/es2015/tools/link/editor-insert-file-button.directive.js +0 -37
  325. package/dist/es2015/tools/link/editor-unlink-button.directive.js +0 -45
  326. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.js +0 -45
  327. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.js +0 -45
  328. package/dist/es2015/tools/select-all/select-all-button.directive.js +0 -48
  329. package/dist/es2015/tools/shared/editor-command-base.js +0 -46
  330. package/dist/es2015/tools/source/editor-view-source-button.directive.js +0 -44
  331. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.js +0 -38
  332. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.js +0 -38
  333. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.js +0 -38
  334. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.js +0 -38
  335. package/dist/es2015/tools/tables/editor-delete-column-button.directive.js +0 -38
  336. package/dist/es2015/tools/tables/editor-delete-row-button.directive.js +0 -38
  337. package/dist/es2015/tools/tables/editor-delete-table-button.directive.js +0 -38
  338. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.js +0 -40
  339. package/dist/es2015/tools/tables/editor-split-cell-button.directive.js +0 -40
  340. package/dist/es2015/tools/tools.service.js +0 -22
  341. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.js +0 -45
  342. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.js +0 -45
  343. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +0 -45
  344. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.js +0 -45
  345. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.js +0 -45
  346. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.js +0 -45
  347. package/dist/fesm2015/index.js +0 -5842
  348. package/dist/fesm5/index.js +0 -5300
  349. package/dist/npm/common/active-marks.js +0 -6
  350. package/dist/npm/common/apply-to-word-options.js +0 -6
  351. package/dist/npm/common/commands.js +0 -6
  352. package/dist/npm/common/direction.js +0 -6
  353. package/dist/npm/common/error-messages.js +0 -22
  354. package/dist/npm/common/font-family-item.interface.js +0 -6
  355. package/dist/npm/common/font-size-item.interface.js +0 -6
  356. package/dist/npm/common/format-item.interface.js +0 -6
  357. package/dist/npm/common/image-data.interface.js +0 -6
  358. package/dist/npm/common/link-data.interface.js +0 -6
  359. package/dist/npm/common/paste-cleanup-settings.js +0 -6
  360. package/dist/npm/common/plugins-function.js +0 -6
  361. package/dist/npm/common/predicate.js +0 -6
  362. package/dist/npm/common/resizable-options.interface.js +0 -6
  363. package/dist/npm/common/styles.js +0 -18
  364. package/dist/npm/common/table-data.interface.js +0 -6
  365. package/dist/npm/config/command-icons.js +0 -50
  366. package/dist/npm/config/commands.js +0 -112
  367. package/dist/npm/config/schema.js +0 -21
  368. package/dist/npm/config/semantic-nodes.js +0 -35
  369. package/dist/npm/config/table-commands.js +0 -16
  370. package/dist/npm/config/utils.js +0 -104
  371. package/dist/npm/dialogs/colorpicker-dialog.component.js +0 -72
  372. package/dist/npm/dialogs/file-link-dialog.component.js +0 -128
  373. package/dist/npm/dialogs/font-family-dialog.component.js +0 -67
  374. package/dist/npm/dialogs/font-size-dialog.component.js +0 -67
  375. package/dist/npm/dialogs/format-dialog.component.js +0 -67
  376. package/dist/npm/dialogs/image-dialog.component.js +0 -104
  377. package/dist/npm/dialogs/insert-table-dialog.component.js +0 -51
  378. package/dist/npm/dialogs/source-dialog.component.js +0 -74
  379. package/dist/npm/editor-toolbar-state.js +0 -282
  380. package/dist/npm/editor.component.js +0 -1041
  381. package/dist/npm/editor.module.js +0 -243
  382. package/dist/npm/index.js +0 -138
  383. package/dist/npm/localization/custom-messages.component.js +0 -47
  384. package/dist/npm/localization/editor-localization.service.js +0 -26
  385. package/dist/npm/localization/localized-messages.directive.js +0 -38
  386. package/dist/npm/localization/messages.js +0 -232
  387. package/dist/npm/main.js +0 -38
  388. package/dist/npm/package-metadata.js +0 -17
  389. package/dist/npm/preventable-events/paste-event-data.js +0 -6
  390. package/dist/npm/preventable-events/paste-event.js +0 -27
  391. package/dist/npm/tools/alignment/editor-align-center-button.directive.js +0 -49
  392. package/dist/npm/tools/alignment/editor-align-justify-button.directive.js +0 -49
  393. package/dist/npm/tools/alignment/editor-align-left-button.directive.js +0 -49
  394. package/dist/npm/tools/alignment/editor-align-right-button.directive.js +0 -49
  395. package/dist/npm/tools/blockquote/editor-blockquote-button.directive.js +0 -50
  396. package/dist/npm/tools/colorpicker/editor-back-color.directive.js +0 -30
  397. package/dist/npm/tools/colorpicker/editor-colorpicker.component.js +0 -235
  398. package/dist/npm/tools/colorpicker/editor-fore-color.directive.js +0 -30
  399. package/dist/npm/tools/editor-clean-formatting-button.directive.js +0 -48
  400. package/dist/npm/tools/fontfamily/editor-fontfamily-dropdownlist.component.js +0 -73
  401. package/dist/npm/tools/fontfamily/editor-fontfamily.component.js +0 -213
  402. package/dist/npm/tools/fontsize/editor-fontsize-dropdownlist.component.js +0 -73
  403. package/dist/npm/tools/fontsize/editor-fontsize.component.js +0 -208
  404. package/dist/npm/tools/format/editor-format-dropdownlist.component.js +0 -73
  405. package/dist/npm/tools/format/editor-format.component.js +0 -204
  406. package/dist/npm/tools/history/editor-redo-button.directive.js +0 -49
  407. package/dist/npm/tools/history/editor-undo-button.directive.js +0 -49
  408. package/dist/npm/tools/image/editor-insert-image-button.directive.js +0 -48
  409. package/dist/npm/tools/indentation/editor-indent-button.directive.js +0 -49
  410. package/dist/npm/tools/indentation/editor-outdent-button.directive.js +0 -49
  411. package/dist/npm/tools/link/editor-create-link-button.directive.js +0 -49
  412. package/dist/npm/tools/link/editor-insert-file-button.directive.js +0 -41
  413. package/dist/npm/tools/link/editor-unlink-button.directive.js +0 -49
  414. package/dist/npm/tools/list/editor-insert-ordered-list-button.directive.js +0 -49
  415. package/dist/npm/tools/list/editor-insert-unordered-list-button.directive.js +0 -49
  416. package/dist/npm/tools/print/editor-print-button.directive.js +0 -71
  417. package/dist/npm/tools/select-all/select-all-button.directive.js +0 -52
  418. package/dist/npm/tools/shared/dropdown-tool.directive.js +0 -43
  419. package/dist/npm/tools/shared/editor-command-base.js +0 -51
  420. package/dist/npm/tools/shared/editor-command-button.js +0 -36
  421. package/dist/npm/tools/shared/editor-command-dialog.js +0 -32
  422. package/dist/npm/tools/source/editor-view-source-button.directive.js +0 -48
  423. package/dist/npm/tools/tables/editor-add-column-after-button.directive.js +0 -42
  424. package/dist/npm/tools/tables/editor-add-column-before-button.directive.js +0 -42
  425. package/dist/npm/tools/tables/editor-add-row-after-button.directive.js +0 -42
  426. package/dist/npm/tools/tables/editor-add-row-before-button.directive.js +0 -42
  427. package/dist/npm/tools/tables/editor-delete-column-button.directive.js +0 -42
  428. package/dist/npm/tools/tables/editor-delete-row-button.directive.js +0 -42
  429. package/dist/npm/tools/tables/editor-delete-table-button.directive.js +0 -42
  430. package/dist/npm/tools/tables/editor-insert-table-button.component.js +0 -204
  431. package/dist/npm/tools/tables/editor-merge-cells-button.directive.js +0 -44
  432. package/dist/npm/tools/tables/editor-split-cell-button.directive.js +0 -44
  433. package/dist/npm/tools/tables/popup-table-grid.component.js +0 -71
  434. package/dist/npm/tools/tools.service.js +0 -22
  435. package/dist/npm/tools/typographical-emphasis/editor-bold-button.directive.js +0 -49
  436. package/dist/npm/tools/typographical-emphasis/editor-italic-button.directive.js +0 -49
  437. package/dist/npm/tools/typographical-emphasis/editor-strikethrough-button.directive.js +0 -49
  438. package/dist/npm/tools/typographical-emphasis/editor-subscript-button.directive.js +0 -49
  439. package/dist/npm/tools/typographical-emphasis/editor-superscript-button.directive.js +0 -49
  440. package/dist/npm/tools/typographical-emphasis/editor-underline-button.directive.js +0 -49
  441. package/dist/npm/util.js +0 -130
  442. package/dist/systemjs/kendo-angular-editor.js +0 -5
@@ -1,47 +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
- import * as tslib_1 from "tslib";
6
- import { Directive, Host } from '@angular/core';
7
- import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
- import { EditorComponent } from '../../editor.component';
9
- import { EditorCommandButton } from '../shared/editor-command-button';
10
- import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
- import { EditorToolsService } from '../tools.service';
12
- /**
13
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignCenter tool
14
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
15
- * The directive will predefine the `icon` and `click` event handlers of the button.
16
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
17
- *
18
- * @example
19
- * ```ts-no-run
20
- * <kendo-toolbar-button kendoEditorAlignCenterButton></kendo-toolbar-button>
21
- * ```
22
- *
23
- * The following example demonstrates how to change the default icon that is applied by the directive.
24
- *
25
- * @example
26
- * ```ts-no-run
27
- * <kendo-toolbar-button kendoEditorAlignCenterButton icon="blogger"></kendo-toolbar-button>
28
- * ```
29
- */
30
- var EditorAlignCenterButtonDirective = /** @class */ (function (_super) {
31
- tslib_1.__extends(EditorAlignCenterButtonDirective, _super);
32
- function EditorAlignCenterButtonDirective(button, editor, localization, toolsService) {
33
- return _super.call(this, 'alignCenter', button, editor, localization, toolsService) || this;
34
- }
35
- EditorAlignCenterButtonDirective = tslib_1.__decorate([
36
- Directive({
37
- selector: 'kendo-toolbar-button[kendoEditorAlignCenterButton]'
38
- }),
39
- tslib_1.__param(1, Host()),
40
- tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
41
- EditorComponent,
42
- EditorLocalizationService,
43
- EditorToolsService])
44
- ], EditorAlignCenterButtonDirective);
45
- return EditorAlignCenterButtonDirective;
46
- }(EditorCommandButton));
47
- export { EditorAlignCenterButtonDirective };
@@ -1,47 +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
- import * as tslib_1 from "tslib";
6
- import { Directive, Host } from '@angular/core';
7
- import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
- import { EditorComponent } from '../../editor.component';
9
- import { EditorCommandButton } from '../shared/editor-command-button';
10
- import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
- import { EditorToolsService } from '../tools.service';
12
- /**
13
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignJustify tool
14
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
15
- * The directive will predefine the `icon` and `click` event handlers of the button.
16
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
17
- *
18
- * @example
19
- * ```ts-no-run
20
- * <kendo-toolbar-button kendoEditorAlignJustifyButton></kendo-toolbar-button>
21
- * ```
22
- *
23
- * The following example demonstrates how to change the default icon that is applied by the directive.
24
- *
25
- * @example
26
- * ```ts-no-run
27
- * <kendo-toolbar-button kendoEditorAlignJustifyButton icon="blogger"></kendo-toolbar-button>
28
- * ```
29
- */
30
- var EditorAlignJustifyButtonDirective = /** @class */ (function (_super) {
31
- tslib_1.__extends(EditorAlignJustifyButtonDirective, _super);
32
- function EditorAlignJustifyButtonDirective(button, editor, localization, toolsService) {
33
- return _super.call(this, 'alignJustify', button, editor, localization, toolsService) || this;
34
- }
35
- EditorAlignJustifyButtonDirective = tslib_1.__decorate([
36
- Directive({
37
- selector: 'kendo-toolbar-button[kendoEditorAlignJustifyButton]'
38
- }),
39
- tslib_1.__param(1, Host()),
40
- tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
41
- EditorComponent,
42
- EditorLocalizationService,
43
- EditorToolsService])
44
- ], EditorAlignJustifyButtonDirective);
45
- return EditorAlignJustifyButtonDirective;
46
- }(EditorCommandButton));
47
- export { EditorAlignJustifyButtonDirective };
@@ -1,47 +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
- import * as tslib_1 from "tslib";
6
- import { Directive, Host } from '@angular/core';
7
- import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
- import { EditorComponent } from '../../editor.component';
9
- import { EditorCommandButton } from '../shared/editor-command-button';
10
- import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
- import { EditorToolsService } from '../tools.service';
12
- /**
13
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignLeft tool
14
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
15
- * The directive will predefine the `icon` and `click` event handlers of the button.
16
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
17
- *
18
- * @example
19
- * ```ts-no-run
20
- * <kendo-toolbar-button kendoEditorAlignLeftButton></kendo-toolbar-button>
21
- * ```
22
- *
23
- * The following example demonstrates how to change the default icon that is applied by the directive.
24
- *
25
- * @example
26
- * ```ts-no-run
27
- * <kendo-toolbar-button kendoEditorAlignLeftButton icon="blogger"></kendo-toolbar-button>
28
- * ```
29
- */
30
- var EditorAlignLeftButtonDirective = /** @class */ (function (_super) {
31
- tslib_1.__extends(EditorAlignLeftButtonDirective, _super);
32
- function EditorAlignLeftButtonDirective(button, editor, localization, toolsService) {
33
- return _super.call(this, 'alignLeft', button, editor, localization, toolsService) || this;
34
- }
35
- EditorAlignLeftButtonDirective = tslib_1.__decorate([
36
- Directive({
37
- selector: 'kendo-toolbar-button[kendoEditorAlignLeftButton]'
38
- }),
39
- tslib_1.__param(1, Host()),
40
- tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
41
- EditorComponent,
42
- EditorLocalizationService,
43
- EditorToolsService])
44
- ], EditorAlignLeftButtonDirective);
45
- return EditorAlignLeftButtonDirective;
46
- }(EditorCommandButton));
47
- export { EditorAlignLeftButtonDirective };
@@ -1,47 +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
- import * as tslib_1 from "tslib";
6
- import { Directive, Host } from '@angular/core';
7
- import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
- import { EditorComponent } from '../../editor.component';
9
- import { EditorCommandButton } from '../shared/editor-command-button';
10
- import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
- import { EditorToolsService } from '../tools.service';
12
- /**
13
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor AlignRight tool
14
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
15
- * The directive will predefine the `icon` and `click` event handlers of the button.
16
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
17
- *
18
- * @example
19
- * ```ts-no-run
20
- * <kendo-toolbar-button kendoEditorAlignRightButton></kendo-toolbar-button>
21
- * ```
22
- *
23
- * The following example demonstrates how to change the default icon that is applied by the directive.
24
- *
25
- * @example
26
- * ```ts-no-run
27
- * <kendo-toolbar-button kendoEditorAlignRightButton icon="blogger"></kendo-toolbar-button>
28
- * ```
29
- */
30
- var EditorAlignRightButtonDirective = /** @class */ (function (_super) {
31
- tslib_1.__extends(EditorAlignRightButtonDirective, _super);
32
- function EditorAlignRightButtonDirective(button, editor, localization, toolsService) {
33
- return _super.call(this, 'alignRight', button, editor, localization, toolsService) || this;
34
- }
35
- EditorAlignRightButtonDirective = tslib_1.__decorate([
36
- Directive({
37
- selector: 'kendo-toolbar-button[kendoEditorAlignRightButton]'
38
- }),
39
- tslib_1.__param(1, Host()),
40
- tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
41
- EditorComponent,
42
- EditorLocalizationService,
43
- EditorToolsService])
44
- ], EditorAlignRightButtonDirective);
45
- return EditorAlignRightButtonDirective;
46
- }(EditorCommandButton));
47
- export { EditorAlignRightButtonDirective };
@@ -1,48 +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
- import * as tslib_1 from "tslib";
6
- import { Directive, Host } from '@angular/core';
7
- import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
- import { EditorComponent } from '../../editor.component';
9
- import { EditorCommandButton } from '../shared/editor-command-button';
10
- import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
- import { EditorToolsService } from '../tools.service';
12
- /**
13
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor Blockquote tool
14
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
15
- * The directive will predefine the `icon` and `click` event handlers of the button.
16
- *
17
- * @example
18
- * ```ts-no-run
19
- * <kendo-toolbar-button kendoEditorBlockquoteButton></kendo-toolbar-button>
20
- * ```
21
- *
22
- * The following example demonstrates how to change the default icon that is applied by the directive.
23
- *
24
- * @example
25
- * ```ts-no-run
26
- * <kendo-toolbar-button kendoEditorBlockquoteButton icon="blogger"></kendo-toolbar-button>
27
- * ```
28
- */
29
- var EditorBlockquoteDirective = /** @class */ (function (_super) {
30
- tslib_1.__extends(EditorBlockquoteDirective, _super);
31
- function EditorBlockquoteDirective(button, editor, localization, toolsService) {
32
- var _this = _super.call(this, 'blockquote', button, editor, localization, toolsService) || this;
33
- _this.editor = editor;
34
- return _this;
35
- }
36
- EditorBlockquoteDirective = tslib_1.__decorate([
37
- Directive({
38
- selector: 'kendo-toolbar-button[kendoEditorBlockquoteButton]'
39
- }),
40
- tslib_1.__param(1, Host()),
41
- tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
42
- EditorComponent,
43
- EditorLocalizationService,
44
- EditorToolsService])
45
- ], EditorBlockquoteDirective);
46
- return EditorBlockquoteDirective;
47
- }(EditorCommandButton));
48
- export { EditorBlockquoteDirective };
@@ -1,28 +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
- import * as tslib_1 from "tslib";
6
- import { Directive } from '@angular/core';
7
- import { EditorColorPickerComponent } from './editor-colorpicker.component';
8
- import { commandIcons } from '../../config/command-icons';
9
- /**
10
- * A directive which configures an `EditorColorPickerComponent`
11
- * for manipulating the background color of the text
12
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
13
- */
14
- var EditorBackColorDirective = /** @class */ (function () {
15
- function EditorBackColorDirective(colorPicker) {
16
- this.colorPicker = colorPicker;
17
- this.colorPicker.icon = commandIcons.backColor;
18
- this.colorPicker.editorCommand = 'backColor';
19
- }
20
- EditorBackColorDirective = tslib_1.__decorate([
21
- Directive({
22
- selector: '[kendoEditorBackColor]'
23
- }),
24
- tslib_1.__metadata("design:paramtypes", [EditorColorPickerComponent])
25
- ], EditorBackColorDirective);
26
- return EditorBackColorDirective;
27
- }());
28
- export { EditorBackColorDirective };
@@ -1,233 +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
- // tslint:disable:no-forward-ref
6
- import * as tslib_1 from "tslib";
7
- import { Component, Input, Host, forwardRef, ViewChild, ElementRef, TemplateRef, NgZone } from '@angular/core';
8
- import { ToolBarToolComponent } from '@progress/kendo-angular-toolbar';
9
- import { ColorPickerComponent } from '@progress/kendo-angular-inputs';
10
- import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
- import { outerWidth } from '../../util';
12
- import { EditorComponent } from '../../editor.component';
13
- import { DialogService } from '@progress/kendo-angular-dialog';
14
- import { ColorPickerDialogComponent } from '../../dialogs/colorpicker-dialog.component';
15
- import { take } from 'rxjs/operators';
16
- /**
17
- * A component which configures an existing ColorPickerComponent as a ToolBar tool.
18
- * To associate a `kendo-toolbar-colorpicker` with an Editor command that changes the
19
- * foreground or the background color of the text, use the `kendoEditorForeColor` or `kendoEditorBackColor` directive.
20
- */
21
- var EditorColorPickerComponent = /** @class */ (function (_super) {
22
- tslib_1.__extends(EditorColorPickerComponent, _super);
23
- function EditorColorPickerComponent(editor, localization, dialogService, ngZone) {
24
- var _this = _super.call(this) || this;
25
- _this.editor = editor;
26
- _this.localization = localization;
27
- _this.dialogService = dialogService;
28
- _this.ngZone = ngZone;
29
- _this.tabindex = -1;
30
- /**
31
- * Specifies if the component should be disabled.
32
- */
33
- _this.disabled = false;
34
- /**
35
- * Specifies whether the ColorPicker will render a gradient, palette, or both in its popup.
36
- *
37
- * @default ['palette']
38
- */
39
- _this.views = ['palette'];
40
- return _this;
41
- }
42
- EditorColorPickerComponent_1 = EditorColorPickerComponent;
43
- Object.defineProperty(EditorColorPickerComponent.prototype, "view", {
44
- get: function () {
45
- return (this.views && this.views.length > 0) ? this.views[0] : null;
46
- },
47
- /**
48
- * @hidden
49
- *
50
- * For backward compatibility with configurations using the deprecated "view" input.
51
- */
52
- set: function (view) {
53
- this.views = [view];
54
- },
55
- enumerable: true,
56
- configurable: true
57
- });
58
- Object.defineProperty(EditorColorPickerComponent.prototype, "title", {
59
- /**
60
- * @hidden
61
- */
62
- get: function () {
63
- return this.localization.get(this.editorCommand);
64
- },
65
- enumerable: true,
66
- configurable: true
67
- });
68
- EditorColorPickerComponent.prototype.ngOnInit = function () {
69
- var _this = this;
70
- this.subs = this.editor.stateChange.subscribe(function (_a) {
71
- var style = _a.style;
72
- _this.disabled = style.disabled;
73
- });
74
- };
75
- EditorColorPickerComponent.prototype.ngOnDestroy = function () {
76
- if (this.subs) {
77
- this.subs.unsubscribe();
78
- }
79
- };
80
- /**
81
- * @hidden
82
- */
83
- EditorColorPickerComponent.prototype.handleValueChange = function (color) {
84
- this.editor.exec(this.editorCommand, color);
85
- this.editor.view.focus();
86
- };
87
- /**
88
- * @hidden
89
- */
90
- EditorColorPickerComponent.prototype.handleActiveColorClick = function (event) {
91
- event.preventOpen();
92
- this.handleValueChange(event.color);
93
- };
94
- /**
95
- * @hidden
96
- */
97
- EditorColorPickerComponent.prototype.onOpen = function (picker) {
98
- this.valueCache = picker.value;
99
- picker.reset();
100
- };
101
- /**
102
- * @hidden
103
- */
104
- EditorColorPickerComponent.prototype.onClose = function (picker) {
105
- var _this = this;
106
- if (!picker.value) {
107
- picker.value = this.valueCache;
108
- }
109
- this.editor.shouldEmitFocus = true;
110
- this.ngZone.onStable.pipe(take(1)).subscribe(function () { return _this.editor.view.focus(); });
111
- };
112
- Object.defineProperty(EditorColorPickerComponent.prototype, "outerWidth", {
113
- /**
114
- * @hidden
115
- */
116
- get: function () {
117
- if (this.element) {
118
- return outerWidth(this.element.nativeElement);
119
- }
120
- },
121
- enumerable: true,
122
- configurable: true
123
- });
124
- /**
125
- * @hidden
126
- */
127
- EditorColorPickerComponent.prototype.openDialog = function () {
128
- var dialogSettings = {
129
- appendTo: this.editor.dialogContainer,
130
- content: ColorPickerDialogComponent
131
- };
132
- this.editor.toolbar.toggle(false);
133
- var dialogContent = this.dialogService.open(dialogSettings).content.instance;
134
- dialogContent.setData({
135
- editor: this.editor,
136
- value: this.value,
137
- title: this.title,
138
- editorCommand: this.editorCommand,
139
- paletteSettings: this.paletteSettings,
140
- icon: this.icon,
141
- views: this.views
142
- });
143
- };
144
- /**
145
- * @hidden
146
- */
147
- EditorColorPickerComponent.prototype.canFocus = function () {
148
- return !this.disabled;
149
- };
150
- /**
151
- * @hidden
152
- */
153
- EditorColorPickerComponent.prototype.focus = function () {
154
- this.tabindex = 0;
155
- if (this.overflows) {
156
- this.colorPickerButton.nativeElement.focus();
157
- }
158
- else {
159
- this.colorPicker.focus();
160
- }
161
- };
162
- /**
163
- * @hidden
164
- */
165
- EditorColorPickerComponent.prototype.handleKey = function () {
166
- this.tabindex = -1;
167
- return false;
168
- };
169
- var EditorColorPickerComponent_1;
170
- tslib_1.__decorate([
171
- Input(),
172
- tslib_1.__metadata("design:type", String)
173
- ], EditorColorPickerComponent.prototype, "value", void 0);
174
- tslib_1.__decorate([
175
- Input(),
176
- tslib_1.__metadata("design:type", String)
177
- ], EditorColorPickerComponent.prototype, "icon", void 0);
178
- tslib_1.__decorate([
179
- Input(),
180
- tslib_1.__metadata("design:type", Object)
181
- ], EditorColorPickerComponent.prototype, "paletteSettings", void 0);
182
- tslib_1.__decorate([
183
- Input(),
184
- tslib_1.__metadata("design:type", String)
185
- ], EditorColorPickerComponent.prototype, "editorCommand", void 0);
186
- tslib_1.__decorate([
187
- Input(),
188
- tslib_1.__metadata("design:type", Boolean)
189
- ], EditorColorPickerComponent.prototype, "disabled", void 0);
190
- tslib_1.__decorate([
191
- Input(),
192
- tslib_1.__metadata("design:type", Array)
193
- ], EditorColorPickerComponent.prototype, "views", void 0);
194
- tslib_1.__decorate([
195
- Input(),
196
- tslib_1.__metadata("design:type", String),
197
- tslib_1.__metadata("design:paramtypes", [String])
198
- ], EditorColorPickerComponent.prototype, "view", null);
199
- tslib_1.__decorate([
200
- ViewChild('toolbarTemplate', { static: true }),
201
- tslib_1.__metadata("design:type", TemplateRef)
202
- ], EditorColorPickerComponent.prototype, "toolbarTemplate", void 0);
203
- tslib_1.__decorate([
204
- ViewChild('popupTemplate', { static: true }),
205
- tslib_1.__metadata("design:type", TemplateRef)
206
- ], EditorColorPickerComponent.prototype, "popupTemplate", void 0);
207
- tslib_1.__decorate([
208
- ViewChild('colorpicker', { read: ElementRef, static: false }),
209
- tslib_1.__metadata("design:type", ElementRef)
210
- ], EditorColorPickerComponent.prototype, "element", void 0);
211
- tslib_1.__decorate([
212
- ViewChild('colorpicker', { read: ColorPickerComponent, static: false }),
213
- tslib_1.__metadata("design:type", ColorPickerComponent)
214
- ], EditorColorPickerComponent.prototype, "colorPicker", void 0);
215
- tslib_1.__decorate([
216
- ViewChild('colorPickerButton', { read: ElementRef, static: false }),
217
- tslib_1.__metadata("design:type", ElementRef)
218
- ], EditorColorPickerComponent.prototype, "colorPickerButton", void 0);
219
- EditorColorPickerComponent = EditorColorPickerComponent_1 = tslib_1.__decorate([
220
- Component({
221
- providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(function () { return EditorColorPickerComponent_1; }) }],
222
- selector: 'kendo-toolbar-colorpicker',
223
- template: "\n <ng-template #toolbarTemplate>\n <kendo-colorpicker\n #colorpicker\n [attr.title]=\"title\"\n [icon]=\"icon\"\n [views]=\"views\"\n [format]=\"'hex'\"\n [value]=\"value\"\n [paletteSettings]=\"paletteSettings\"\n [disabled]=\"disabled\"\n [tabindex]=\"tabindex\"\n (valueChange)=\"handleValueChange($event)\"\n (activeColorClick)=\"handleActiveColorClick($event)\"\n (open)=\"onOpen(colorpicker)\"\n (close)=\"onClose(colorpicker)\"\n >\n </kendo-colorpicker>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex=\"-1\"\n type=\"button\"\n kendoButton\n #colorPickerButton\n class=\"k-overflow-button\"\n [icon]=\"icon\"\n [attr.title]=\"title\"\n [disabled]=\"disabled\"\n [tabindex]=\"tabindex\"\n (click)=\"openDialog()\"\n >\n {{ title }}\n </button>\n </ng-template>\n "
224
- }),
225
- tslib_1.__param(0, Host()),
226
- tslib_1.__metadata("design:paramtypes", [EditorComponent,
227
- EditorLocalizationService,
228
- DialogService,
229
- NgZone])
230
- ], EditorColorPickerComponent);
231
- return EditorColorPickerComponent;
232
- }(ToolBarToolComponent));
233
- export { EditorColorPickerComponent };
@@ -1,28 +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
- import * as tslib_1 from "tslib";
6
- import { Directive } from '@angular/core';
7
- import { EditorColorPickerComponent } from './editor-colorpicker.component';
8
- import { commandIcons } from '../../config/command-icons';
9
- /**
10
- * A directive which configures an `EditorColorPickerComponent`
11
- * for manipulating the foreground color of the text
12
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
13
- */
14
- var EditorForeColorDirective = /** @class */ (function () {
15
- function EditorForeColorDirective(colorPicker) {
16
- this.colorPicker = colorPicker;
17
- this.colorPicker.icon = commandIcons.foreColor;
18
- this.colorPicker.editorCommand = 'foreColor';
19
- }
20
- EditorForeColorDirective = tslib_1.__decorate([
21
- Directive({
22
- selector: '[kendoEditorForeColor]'
23
- }),
24
- tslib_1.__metadata("design:paramtypes", [EditorColorPickerComponent])
25
- ], EditorForeColorDirective);
26
- return EditorForeColorDirective;
27
- }());
28
- export { EditorForeColorDirective };
@@ -1,46 +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
- import * as tslib_1 from "tslib";
6
- import { Directive, Host } from '@angular/core';
7
- import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
- import { EditorComponent } from '../editor.component';
9
- import { EditorCommandButton } from './shared/editor-command-button';
10
- import { EditorLocalizationService } from '../localization/editor-localization.service';
11
- import { EditorToolsService } from './tools.service';
12
- /**
13
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor Clean Formatting tool
14
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
15
- * The directive will predefine the `icon` and `click` event handlers of the button.
16
- *
17
- * @example
18
- * ```ts-no-run
19
- * <kendo-toolbar-button kendoEditorCleanFormattingButton></kendo-toolbar-button>
20
- * ```
21
- *
22
- * The following example demonstrates how to change the default icon applied by the directive.
23
- *
24
- * @example
25
- * ```ts-no-run
26
- * <kendo-toolbar-button kendoEditorCleanFormattingButton icon="blogger"></kendo-toolbar-button>
27
- * ```
28
- */
29
- var EditorCleanFormattingButtonDirective = /** @class */ (function (_super) {
30
- tslib_1.__extends(EditorCleanFormattingButtonDirective, _super);
31
- function EditorCleanFormattingButtonDirective(button, editor, localization, toolsService) {
32
- return _super.call(this, 'cleanFormatting', button, editor, localization, toolsService) || this;
33
- }
34
- EditorCleanFormattingButtonDirective = tslib_1.__decorate([
35
- Directive({
36
- selector: 'kendo-toolbar-button[kendoEditorCleanFormattingButton]'
37
- }),
38
- tslib_1.__param(1, Host()),
39
- tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
- EditorComponent,
41
- EditorLocalizationService,
42
- EditorToolsService])
43
- ], EditorCleanFormattingButtonDirective);
44
- return EditorCleanFormattingButtonDirective;
45
- }(EditorCommandButton));
46
- export { EditorCleanFormattingButtonDirective };
@@ -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
- import * as tslib_1 from "tslib";
6
- import { Component, ViewChild, Input, ElementRef, Output, EventEmitter } from '@angular/core';
7
- import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
8
- /**
9
- * @hidden
10
- */
11
- var FontFamilyDropDownListComponent = /** @class */ (function () {
12
- function FontFamilyDropDownListComponent() {
13
- this.valueChange = new EventEmitter();
14
- }
15
- FontFamilyDropDownListComponent.prototype.onValueChange = function (tag) {
16
- this.valueChange.emit(tag);
17
- };
18
- FontFamilyDropDownListComponent.prototype.focus = function () {
19
- this.dropDownList.focus();
20
- };
21
- tslib_1.__decorate([
22
- Input(),
23
- tslib_1.__metadata("design:type", Array)
24
- ], FontFamilyDropDownListComponent.prototype, "data", void 0);
25
- tslib_1.__decorate([
26
- Input(),
27
- tslib_1.__metadata("design:type", String)
28
- ], FontFamilyDropDownListComponent.prototype, "value", void 0);
29
- tslib_1.__decorate([
30
- Input(),
31
- tslib_1.__metadata("design:type", Object)
32
- ], FontFamilyDropDownListComponent.prototype, "defaultItem", void 0);
33
- tslib_1.__decorate([
34
- Input(),
35
- tslib_1.__metadata("design:type", Function)
36
- ], FontFamilyDropDownListComponent.prototype, "itemDisabled", void 0);
37
- tslib_1.__decorate([
38
- Input(),
39
- tslib_1.__metadata("design:type", String)
40
- ], FontFamilyDropDownListComponent.prototype, "title", void 0);
41
- tslib_1.__decorate([
42
- Input(),
43
- tslib_1.__metadata("design:type", Boolean)
44
- ], FontFamilyDropDownListComponent.prototype, "disabled", void 0);
45
- tslib_1.__decorate([
46
- Input(),
47
- tslib_1.__metadata("design:type", Number)
48
- ], FontFamilyDropDownListComponent.prototype, "tabindex", void 0);
49
- tslib_1.__decorate([
50
- Output(),
51
- tslib_1.__metadata("design:type", EventEmitter)
52
- ], FontFamilyDropDownListComponent.prototype, "valueChange", void 0);
53
- tslib_1.__decorate([
54
- ViewChild('element', { static: true }),
55
- tslib_1.__metadata("design:type", ElementRef)
56
- ], FontFamilyDropDownListComponent.prototype, "element", void 0);
57
- tslib_1.__decorate([
58
- ViewChild('element', { read: DropDownListComponent, static: true }),
59
- tslib_1.__metadata("design:type", DropDownListComponent)
60
- ], FontFamilyDropDownListComponent.prototype, "dropDownList", void 0);
61
- FontFamilyDropDownListComponent = tslib_1.__decorate([
62
- Component({
63
- // tslint:disable-next-line:no-forward-ref
64
- selector: 'kendo-editor-fontfamily-dropdownlist',
65
- template: "\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]=\"defaultItem\"\n [textField]=\"'text'\"\n [valueField]=\"'fontName'\"\n [data]=\"data\"\n [(value)]=\"value\"\n [valuePrimitive]=\"true\"\n [itemDisabled]=\"itemDisabled\"\n [attr.title]=\"title\"\n [disabled]=\"disabled\"\n [tabindex]=\"tabindex\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <span [ngStyle]=\"{ 'font-family': dataItem.fontName }\">\n {{ dataItem.text }}\n </span>\n </ng-template>\n </kendo-dropdownlist>\n ",
66
- styles: ["\n .k-dropdownlist {\n width: 13em;\n }\n "]
67
- })
68
- ], FontFamilyDropDownListComponent);
69
- return FontFamilyDropDownListComponent;
70
- }());
71
- export { FontFamilyDropDownListComponent };