@syncfusion/ej2-richtexteditor 24.1.41 → 24.1.43-569781

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 (269) hide show
  1. package/.eslintrc.json +259 -259
  2. package/CHANGELOG.md +1927 -1775
  3. package/README.md +76 -76
  4. package/dist/ej2-richtexteditor.umd.min.js +1 -10
  5. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-richtexteditor.es2015.js +2601 -1077
  7. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  8. package/dist/es6/ej2-richtexteditor.es5.js +2706 -1181
  9. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  10. package/helpers/e2e/index.js +3 -3
  11. package/helpers/e2e/rte-helper.js +13 -13
  12. package/license +9 -9
  13. package/package.json +74 -74
  14. package/src/common/config.d.ts +7 -0
  15. package/src/common/config.js +11 -0
  16. package/src/common/constant.d.ts +6 -0
  17. package/src/common/constant.js +6 -0
  18. package/src/common/interface.d.ts +19 -7
  19. package/src/common/types.d.ts +6 -0
  20. package/src/common/util.d.ts +6 -0
  21. package/src/common/util.js +61 -20
  22. package/src/editor-manager/base/classes.d.ts +1 -1
  23. package/src/editor-manager/base/classes.js +1 -1
  24. package/src/editor-manager/base/constant.d.ts +6 -0
  25. package/src/editor-manager/base/constant.js +6 -0
  26. package/src/editor-manager/base/editor-manager.d.ts +8 -3
  27. package/src/editor-manager/base/editor-manager.js +62 -3
  28. package/src/editor-manager/base/enum.d.ts +2 -2
  29. package/src/editor-manager/base/interface.d.ts +17 -9
  30. package/src/editor-manager/base/types.d.ts +1 -1
  31. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  32. package/src/editor-manager/plugin/alignments.js +2 -2
  33. package/src/editor-manager/plugin/audio.d.ts +3 -3
  34. package/src/editor-manager/plugin/audio.js +3 -3
  35. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  36. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  37. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  38. package/src/editor-manager/plugin/clearformat.js +1 -1
  39. package/src/editor-manager/plugin/dom-node.d.ts +39 -35
  40. package/src/editor-manager/plugin/dom-node.js +203 -49
  41. package/src/editor-manager/plugin/format-painter-actions.d.ts +2 -1
  42. package/src/editor-manager/plugin/format-painter-actions.js +20 -2
  43. package/src/editor-manager/plugin/formats.d.ts +3 -2
  44. package/src/editor-manager/plugin/formats.js +40 -5
  45. package/src/editor-manager/plugin/image.d.ts +3 -3
  46. package/src/editor-manager/plugin/image.js +15 -19
  47. package/src/editor-manager/plugin/indents.d.ts +2 -2
  48. package/src/editor-manager/plugin/indents.js +2 -2
  49. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  50. package/src/editor-manager/plugin/insert-methods.js +4 -4
  51. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  52. package/src/editor-manager/plugin/insert-text.js +2 -2
  53. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  54. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  55. package/src/editor-manager/plugin/inserthtml.d.ts +3 -2
  56. package/src/editor-manager/plugin/inserthtml.js +64 -7
  57. package/src/editor-manager/plugin/isformatted.d.ts +8 -8
  58. package/src/editor-manager/plugin/isformatted.js +8 -8
  59. package/src/editor-manager/plugin/link.d.ts +2 -2
  60. package/src/editor-manager/plugin/link.js +6 -3
  61. package/src/editor-manager/plugin/lists.d.ts +2 -2
  62. package/src/editor-manager/plugin/lists.js +123 -67
  63. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +4 -1
  64. package/src/editor-manager/plugin/ms-word-clean-up.js +213 -86
  65. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  66. package/src/editor-manager/plugin/nodecutter.js +8 -8
  67. package/src/editor-manager/plugin/selection-commands.d.ts +2 -1
  68. package/src/editor-manager/plugin/selection-commands.js +127 -4
  69. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  70. package/src/editor-manager/plugin/selection-exec.js +2 -2
  71. package/src/editor-manager/plugin/table.d.ts +2 -3
  72. package/src/editor-manager/plugin/table.js +35 -32
  73. package/src/editor-manager/plugin/toolbar-status.d.ts +4 -4
  74. package/src/editor-manager/plugin/toolbar-status.js +22 -12
  75. package/src/editor-manager/plugin/undo.d.ts +7 -6
  76. package/src/editor-manager/plugin/undo.js +27 -7
  77. package/src/editor-manager/plugin/video.d.ts +3 -3
  78. package/src/editor-manager/plugin/video.js +3 -3
  79. package/src/markdown-parser/base/interface.d.ts +10 -10
  80. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  81. package/src/markdown-parser/base/markdown-parser.js +3 -3
  82. package/src/markdown-parser/base/types.d.ts +1 -1
  83. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  84. package/src/markdown-parser/plugin/clearformat.js +2 -2
  85. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  86. package/src/markdown-parser/plugin/formats.js +2 -2
  87. package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
  88. package/src/markdown-parser/plugin/insert-text.js +2 -2
  89. package/src/markdown-parser/plugin/link.d.ts +2 -2
  90. package/src/markdown-parser/plugin/link.js +2 -2
  91. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  92. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  93. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  94. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  95. package/src/markdown-parser/plugin/table.d.ts +3 -3
  96. package/src/markdown-parser/plugin/table.js +3 -3
  97. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  98. package/src/markdown-parser/plugin/undo.js +6 -6
  99. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +12 -12
  100. package/src/rich-text-editor/actions/base-quick-toolbar.js +57 -20
  101. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  102. package/src/rich-text-editor/actions/base-toolbar.js +35 -37
  103. package/src/rich-text-editor/actions/color-picker.d.ts +3 -2
  104. package/src/rich-text-editor/actions/color-picker.js +12 -2
  105. package/src/rich-text-editor/actions/count.d.ts +3 -3
  106. package/src/rich-text-editor/actions/count.js +4 -4
  107. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  108. package/src/rich-text-editor/actions/dropdown-buttons.js +23 -4
  109. package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
  110. package/src/rich-text-editor/actions/emoji-picker.js +4 -4
  111. package/src/rich-text-editor/actions/enter-key.js +4 -3
  112. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  113. package/src/rich-text-editor/actions/full-screen.js +6 -5
  114. package/src/rich-text-editor/actions/html-editor.d.ts +5 -5
  115. package/src/rich-text-editor/actions/html-editor.js +129 -45
  116. package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
  117. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  118. package/src/rich-text-editor/actions/keyboard.js +23 -21
  119. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  120. package/src/rich-text-editor/actions/markdown-editor.js +5 -3
  121. package/src/rich-text-editor/actions/paste-clean-up.d.ts +4 -1
  122. package/src/rich-text-editor/actions/paste-clean-up.js +87 -12
  123. package/src/rich-text-editor/actions/quick-toolbar.d.ts +16 -9
  124. package/src/rich-text-editor/actions/quick-toolbar.js +33 -18
  125. package/src/rich-text-editor/actions/resize.js +2 -1
  126. package/src/rich-text-editor/actions/toolbar-action.js +1 -1
  127. package/src/rich-text-editor/actions/toolbar.d.ts +15 -16
  128. package/src/rich-text-editor/actions/toolbar.js +31 -100
  129. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  130. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  131. package/src/rich-text-editor/base/classes.d.ts +121 -126
  132. package/src/rich-text-editor/base/classes.js +121 -126
  133. package/src/rich-text-editor/base/constant.d.ts +190 -150
  134. package/src/rich-text-editor/base/constant.js +359 -150
  135. package/src/rich-text-editor/base/enum.d.ts +1 -1
  136. package/src/rich-text-editor/base/enum.js +1 -1
  137. package/src/rich-text-editor/base/interface.d.ts +87 -53
  138. package/src/rich-text-editor/base/interface.js +1 -1
  139. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +891 -891
  140. package/src/rich-text-editor/base/rich-text-editor.d.ts +68 -65
  141. package/src/rich-text-editor/base/rich-text-editor.js +232 -199
  142. package/src/rich-text-editor/base/util.d.ts +5 -1
  143. package/src/rich-text-editor/base/util.js +47 -4
  144. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  145. package/src/rich-text-editor/formatter/formatter.js +23 -12
  146. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  147. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  148. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  149. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  150. package/src/rich-text-editor/models/default-locale.js +30 -26
  151. package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
  152. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  153. package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
  154. package/src/rich-text-editor/models/inline-mode.js +19 -19
  155. package/src/rich-text-editor/models/items.js +2 -2
  156. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
  157. package/src/rich-text-editor/models/toolbar-settings.d.ts +1 -1
  158. package/src/rich-text-editor/models/toolbar-settings.js +20 -20
  159. package/src/rich-text-editor/renderer/audio-module.d.ts +2 -1
  160. package/src/rich-text-editor/renderer/audio-module.js +14 -1
  161. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  162. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  163. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +4 -2
  164. package/src/rich-text-editor/renderer/dialog-renderer.js +14 -3
  165. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  166. package/src/rich-text-editor/renderer/iframe-content-renderer.js +19 -18
  167. package/src/rich-text-editor/renderer/image-module.d.ts +10 -2
  168. package/src/rich-text-editor/renderer/image-module.js +200 -168
  169. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  170. package/src/rich-text-editor/renderer/link-module.js +11 -2
  171. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  172. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  173. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  174. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  175. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  176. package/src/rich-text-editor/renderer/render.js +2 -2
  177. package/src/rich-text-editor/renderer/table-module.d.ts +9 -2
  178. package/src/rich-text-editor/renderer/table-module.js +289 -137
  179. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +13 -9
  180. package/src/rich-text-editor/renderer/toolbar-renderer.js +103 -24
  181. package/src/rich-text-editor/renderer/video-module.d.ts +4 -1
  182. package/src/rich-text-editor/renderer/video-module.js +62 -35
  183. package/src/rich-text-editor/renderer/view-source.d.ts +7 -6
  184. package/src/rich-text-editor/renderer/view-source.js +18 -10
  185. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  186. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  187. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  188. package/src/rich-text-editor/services/service-locator.js +3 -3
  189. package/src/selection/selection.d.ts +22 -22
  190. package/src/selection/selection.js +25 -22
  191. package/styles/_all.scss +1 -1
  192. package/styles/bootstrap-dark.css +153 -49
  193. package/styles/bootstrap.css +158 -57
  194. package/styles/bootstrap4.css +145 -45
  195. package/styles/bootstrap5-dark.css +150 -45
  196. package/styles/bootstrap5.css +150 -45
  197. package/styles/fabric-dark.css +139 -39
  198. package/styles/fabric.css +140 -40
  199. package/styles/fluent-dark.css +147 -41
  200. package/styles/fluent.css +147 -41
  201. package/styles/highcontrast-light.css +139 -39
  202. package/styles/highcontrast.css +143 -40
  203. package/styles/material-dark.css +143 -39
  204. package/styles/material.css +143 -39
  205. package/styles/material3-dark.css +155 -49
  206. package/styles/material3-dark.scss +1 -1
  207. package/styles/material3.css +155 -49
  208. package/styles/material3.scss +1 -1
  209. package/styles/rich-text-editor/_all.scss +2 -2
  210. package/styles/rich-text-editor/_bds-definition.scss +279 -0
  211. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +281 -277
  212. package/styles/rich-text-editor/_bootstrap-definition.scss +337 -334
  213. package/styles/rich-text-editor/_bootstrap4-definition.scss +464 -460
  214. package/styles/rich-text-editor/_bootstrap5-definition.scss +266 -262
  215. package/styles/rich-text-editor/_fabric-dark-definition.scss +263 -259
  216. package/styles/rich-text-editor/_fabric-definition.scss +261 -257
  217. package/styles/rich-text-editor/_fluent-definition.scss +267 -263
  218. package/styles/rich-text-editor/_fusionnew-definition.scss +265 -261
  219. package/styles/rich-text-editor/_highcontrast-definition.scss +261 -257
  220. package/styles/rich-text-editor/_highcontrast-light-definition.scss +261 -257
  221. package/styles/rich-text-editor/_layout.scss +2249 -2147
  222. package/styles/rich-text-editor/_material-dark-definition.scss +266 -262
  223. package/styles/rich-text-editor/_material-definition.scss +264 -260
  224. package/styles/rich-text-editor/_material3-definition.scss +266 -262
  225. package/styles/rich-text-editor/_tailwind-definition.scss +261 -257
  226. package/styles/rich-text-editor/_theme.scss +906 -837
  227. package/styles/rich-text-editor/bootstrap-dark.css +153 -49
  228. package/styles/rich-text-editor/bootstrap.css +158 -57
  229. package/styles/rich-text-editor/bootstrap4.css +145 -45
  230. package/styles/rich-text-editor/bootstrap5-dark.css +150 -45
  231. package/styles/rich-text-editor/bootstrap5.css +150 -45
  232. package/styles/rich-text-editor/fabric-dark.css +139 -39
  233. package/styles/rich-text-editor/fabric.css +140 -40
  234. package/styles/rich-text-editor/fluent-dark.css +147 -41
  235. package/styles/rich-text-editor/fluent.css +147 -41
  236. package/styles/rich-text-editor/highcontrast-light.css +139 -39
  237. package/styles/rich-text-editor/highcontrast.css +143 -40
  238. package/styles/rich-text-editor/icons/_bds.scss +348 -0
  239. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +349 -349
  240. package/styles/rich-text-editor/icons/_bootstrap.scss +349 -349
  241. package/styles/rich-text-editor/icons/_bootstrap4.scss +349 -349
  242. package/styles/rich-text-editor/icons/_bootstrap5.scss +348 -348
  243. package/styles/rich-text-editor/icons/_fabric-dark.scss +349 -349
  244. package/styles/rich-text-editor/icons/_fabric.scss +349 -349
  245. package/styles/rich-text-editor/icons/_fluent.scss +348 -348
  246. package/styles/rich-text-editor/icons/_fusionnew.scss +348 -348
  247. package/styles/rich-text-editor/icons/_highcontrast-light.scss +349 -349
  248. package/styles/rich-text-editor/icons/_highcontrast.scss +349 -349
  249. package/styles/rich-text-editor/icons/_material-dark.scss +349 -349
  250. package/styles/rich-text-editor/icons/_material.scss +349 -349
  251. package/styles/rich-text-editor/icons/_material3.scss +348 -348
  252. package/styles/rich-text-editor/icons/_tailwind.scss +348 -348
  253. package/styles/rich-text-editor/material-dark.css +143 -39
  254. package/styles/rich-text-editor/material.css +143 -39
  255. package/styles/rich-text-editor/material3-dark.css +155 -49
  256. package/styles/rich-text-editor/material3-dark.scss +1 -1
  257. package/styles/rich-text-editor/material3.css +155 -49
  258. package/styles/rich-text-editor/material3.scss +1 -1
  259. package/styles/rich-text-editor/tailwind-dark.css +194 -66
  260. package/styles/rich-text-editor/tailwind.css +194 -66
  261. package/styles/tailwind-dark.css +194 -66
  262. package/styles/tailwind.css +194 -66
  263. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +0 -41
  264. package/.github/PULL_REQUEST_TEMPLATE/Feature.md +0 -27
  265. package/dist/ej2-richtexteditor.min.js +0 -10
  266. package/dist/global/ej2-richtexteditor.min.js +0 -11
  267. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  268. package/dist/global/index.d.ts +0 -14
  269. package/tslint.json +0 -111
@@ -24,7 +24,7 @@ export declare class UndoRedoCommands {
24
24
  * @function destroy
25
25
  * @returns {void}
26
26
  * @hidden
27
-
27
+ * @deprecated
28
28
  */
29
29
  destroy(): void;
30
30
  /**
@@ -33,7 +33,7 @@ export declare class UndoRedoCommands {
33
33
  * @param {IMarkdownSubCommands} e - specifies the sub commands
34
34
  * @returns {void}
35
35
  * @hidden
36
-
36
+ * @deprecated
37
37
  */
38
38
  onAction(e: IMarkdownSubCommands): void;
39
39
  private keyDown;
@@ -45,7 +45,7 @@ export declare class UndoRedoCommands {
45
45
  * @function saveData
46
46
  * @returns {void}
47
47
  * @hidden
48
-
48
+ * @deprecated
49
49
  */
50
50
  saveData(e?: KeyboardEvent | MouseEvent | IUndoCallBack): void;
51
51
  /**
@@ -55,7 +55,7 @@ export declare class UndoRedoCommands {
55
55
  * @function undo
56
56
  * @returns {void}
57
57
  * @hidden
58
-
58
+ * @deprecated
59
59
  */
60
60
  undo(e?: IMarkdownSubCommands | IMDKeyboardEvent): void;
61
61
  /**
@@ -65,7 +65,7 @@ export declare class UndoRedoCommands {
65
65
  * @function redo
66
66
  * @returns {void}
67
67
  * @hidden
68
-
68
+ * @deprecated
69
69
  */
70
70
  redo(e?: IMarkdownSubCommands | IMDKeyboardEvent): void;
71
71
  private restore;
@@ -74,7 +74,7 @@ export declare class UndoRedoCommands {
74
74
  *
75
75
  * @returns {boolean} - returns the boolean value
76
76
  * @hidden
77
-
77
+ * @deprecated
78
78
  */
79
79
  getUndoStatus(): {
80
80
  [key: string]: boolean;
@@ -45,7 +45,7 @@ var UndoRedoCommands = /** @class */ (function () {
45
45
  * @function destroy
46
46
  * @returns {void}
47
47
  * @hidden
48
-
48
+ * @deprecated
49
49
  */
50
50
  UndoRedoCommands.prototype.destroy = function () {
51
51
  this.removeEventListener();
@@ -56,7 +56,7 @@ var UndoRedoCommands = /** @class */ (function () {
56
56
  * @param {IMarkdownSubCommands} e - specifies the sub commands
57
57
  * @returns {void}
58
58
  * @hidden
59
-
59
+ * @deprecated
60
60
  */
61
61
  UndoRedoCommands.prototype.onAction = function (e) {
62
62
  if (e.subCommand === 'Undo') {
@@ -93,7 +93,7 @@ var UndoRedoCommands = /** @class */ (function () {
93
93
  * @function saveData
94
94
  * @returns {void}
95
95
  * @hidden
96
-
96
+ * @deprecated
97
97
  */
98
98
  UndoRedoCommands.prototype.saveData = function (e) {
99
99
  var textArea = this.parent.element;
@@ -126,7 +126,7 @@ var UndoRedoCommands = /** @class */ (function () {
126
126
  * @function undo
127
127
  * @returns {void}
128
128
  * @hidden
129
-
129
+ * @deprecated
130
130
  */
131
131
  UndoRedoCommands.prototype.undo = function (e) {
132
132
  if (this.steps > 0) {
@@ -147,7 +147,7 @@ var UndoRedoCommands = /** @class */ (function () {
147
147
  * @function redo
148
148
  * @returns {void}
149
149
  * @hidden
150
-
150
+ * @deprecated
151
151
  */
152
152
  UndoRedoCommands.prototype.redo = function (e) {
153
153
  if (this.undoRedoStack[this.steps + 1] != null) {
@@ -177,7 +177,7 @@ var UndoRedoCommands = /** @class */ (function () {
177
177
  *
178
178
  * @returns {boolean} - returns the boolean value
179
179
  * @hidden
180
-
180
+ * @deprecated
181
181
  */
182
182
  UndoRedoCommands.prototype.getUndoStatus = function () {
183
183
  var status = { undo: false, redo: false };
@@ -1,5 +1,5 @@
1
1
  import { Popup } from '@syncfusion/ej2-popups';
2
- import { IRichTextEditor } from '../base/interface';
2
+ import { IRichTextEditor, IBaseQuickToolbar } from '../base/interface';
3
3
  import { IToolbarItems, IQuickToolbarOptions } from '../base/interface';
4
4
  import { ServiceLocator } from '../services/service-locator';
5
5
  import { BaseToolbar } from './base-toolbar';
@@ -7,10 +7,10 @@ import { RichTextEditorModel } from '../base/rich-text-editor-model';
7
7
  /**
8
8
  * `Quick toolbar` module is used to handle Quick toolbar actions.
9
9
  */
10
- export declare class BaseQuickToolbar {
10
+ export declare class BaseQuickToolbar implements IBaseQuickToolbar {
11
11
  popupObj: Popup;
12
12
  element: HTMLElement;
13
- private isDOMElement;
13
+ isRendered: boolean;
14
14
  quickTBarObj: BaseToolbar;
15
15
  private stringItems;
16
16
  private dropDownButtons;
@@ -30,7 +30,7 @@ export declare class BaseQuickToolbar {
30
30
  * @param {IQuickToolbarOptions} args - specifies the arguments
31
31
  * @returns {void}
32
32
  * @hidden
33
-
33
+ * @deprecated
34
34
  */
35
35
  render(args: IQuickToolbarOptions): void;
36
36
  private createToolbar;
@@ -45,7 +45,7 @@ export declare class BaseQuickToolbar {
45
45
  * @param {string} type - specifies the type
46
46
  * @returns {void}
47
47
  * @hidden
48
-
48
+ * @deprecated
49
49
  */
50
50
  showPopup(x: number, y: number, target: Element, type?: string): void;
51
51
  /**
@@ -53,7 +53,7 @@ export declare class BaseQuickToolbar {
53
53
  *
54
54
  * @returns {void}
55
55
  * @hidden
56
-
56
+ * @deprecated
57
57
  */
58
58
  hidePopup(): void;
59
59
  /**
@@ -61,14 +61,14 @@ export declare class BaseQuickToolbar {
61
61
  * @param {number} index - specifies the index value
62
62
  * @returns {void}
63
63
  * @hidden
64
-
64
+ * @deprecated
65
65
  */
66
66
  addQTBarItem(item: (string | IToolbarItems)[], index: number): void;
67
67
  /**
68
68
  * @param {number} index - specifies the index value
69
69
  * @returns {void}
70
70
  * @hidden
71
-
71
+ * @deprecated
72
72
  */
73
73
  removeQTBarItem(index: number | HTMLElement[] | Element[]): void;
74
74
  private removeEleFromDOM;
@@ -79,7 +79,7 @@ export declare class BaseQuickToolbar {
79
79
  * @function destroy
80
80
  * @returns {void}
81
81
  * @hidden
82
-
82
+ * @deprecated
83
83
  */
84
84
  destroy(): void;
85
85
  /**
@@ -87,7 +87,7 @@ export declare class BaseQuickToolbar {
87
87
  *
88
88
  * @returns {void}
89
89
  * @hidden
90
-
90
+ * @deprecated
91
91
  */
92
92
  addEventListener(): void;
93
93
  /**
@@ -96,7 +96,7 @@ export declare class BaseQuickToolbar {
96
96
  * @param {RichTextEditorModel} e - specifies the model element
97
97
  * @returns {void}
98
98
  * @hidden
99
-
99
+ * @deprecated
100
100
  */
101
101
  protected onPropertyChanged(e: {
102
102
  [key: string]: RichTextEditorModel;
@@ -106,7 +106,7 @@ export declare class BaseQuickToolbar {
106
106
  *
107
107
  * @returns {void}
108
108
  * @hidden
109
-
109
+ * @deprecated
110
110
  */
111
111
  removeEventListener(): void;
112
112
  }
@@ -15,7 +15,7 @@ var BaseQuickToolbar = /** @class */ (function () {
15
15
  function BaseQuickToolbar(parent, locator) {
16
16
  this.parent = parent;
17
17
  this.locator = locator;
18
- this.isDOMElement = false;
18
+ this.isRendered = false;
19
19
  this.renderFactory = this.locator.getService('rendererFactory');
20
20
  this.contentRenderer = this.renderFactory.getRenderer(RenderType.Content);
21
21
  this.popupRenderer = this.renderFactory.getRenderer(RenderType.Popup);
@@ -35,7 +35,7 @@ var BaseQuickToolbar = /** @class */ (function () {
35
35
  * @param {IQuickToolbarOptions} args - specifies the arguments
36
36
  * @returns {void}
37
37
  * @hidden
38
-
38
+ * @deprecated
39
39
  */
40
40
  BaseQuickToolbar.prototype.render = function (args) {
41
41
  var className;
@@ -79,7 +79,18 @@ var BaseQuickToolbar = /** @class */ (function () {
79
79
  e.target.classList.contains('e-imgbreak')) ? false : true;
80
80
  var target = !isNOU(imgWrapper) ? imgWrapper : e.target;
81
81
  addClass([this.toolbarElement], [classes.CLS_RM_WHITE_SPACE]);
82
- var targetOffsetTop = target.offsetTop;
82
+ var targetOffsetTop;
83
+ if (!isNOU(closest(target, 'table'))) {
84
+ targetOffsetTop = target.offsetTop;
85
+ var parentTable = closest(target, 'table');
86
+ while (!isNOU(parentTable)) {
87
+ targetOffsetTop += parentTable.offsetTop;
88
+ parentTable = closest(parentTable.parentElement, 'table');
89
+ }
90
+ }
91
+ else {
92
+ targetOffsetTop = (target.classList.contains("e-rte-audio")) ? target.parentElement.offsetTop : target.offsetTop;
93
+ }
83
94
  var parentOffsetTop = window.pageYOffset + e.parentData.top;
84
95
  if ((targetOffsetTop - e.editTop) > e.popHeight) {
85
96
  y = parentOffsetTop + e.tBarElementHeight + (targetOffsetTop - e.editTop) - e.popHeight - 5;
@@ -91,11 +102,30 @@ var BaseQuickToolbar = /** @class */ (function () {
91
102
  y = e.y;
92
103
  }
93
104
  target = isAligned ? e.target : target;
94
- if (target.offsetWidth > e.popWidth) {
95
- x = (target.offsetWidth / 2) - (e.popWidth / 2) + e.parentData.left + target.offsetLeft;
105
+ var targetOffsetLeft;
106
+ var currentOffsetWidth;
107
+ if (!isNOU(closest(target, 'table'))) {
108
+ targetOffsetLeft = target.offsetLeft;
109
+ var parentTable = closest(target, 'table');
110
+ var checkOffSetParentWidth = false;
111
+ if (!isNOU(closest(parentTable, 'TD'))) {
112
+ checkOffSetParentWidth = true;
113
+ }
114
+ while (!isNOU(parentTable)) {
115
+ targetOffsetLeft += parentTable.offsetLeft;
116
+ currentOffsetWidth = checkOffSetParentWidth ? parentTable.offsetWidth : target.offsetWidth;
117
+ parentTable = closest(parentTable.parentElement, 'table');
118
+ }
96
119
  }
97
120
  else {
98
- x = e.parentData.left + target.offsetLeft;
121
+ currentOffsetWidth = target.offsetWidth;
122
+ targetOffsetLeft = (target.classList.contains("e-rte-audio")) ? target.parentElement.offsetLeft : target.offsetLeft;
123
+ }
124
+ if (currentOffsetWidth > e.popWidth) {
125
+ x = (currentOffsetWidth / 2) - (e.popWidth / 2) + e.parentData.left + targetOffsetLeft;
126
+ }
127
+ else {
128
+ x = e.parentData.left + targetOffsetLeft;
99
129
  }
100
130
  this.popupObj.position.X = ((x + e.popWidth) > e.parentData.right) ? e.parentData.right - e.popWidth : x;
101
131
  this.popupObj.position.Y = (y >= 0) ? y : e.y + 5;
@@ -186,7 +216,7 @@ var BaseQuickToolbar = /** @class */ (function () {
186
216
  * @param {string} type - specifies the type
187
217
  * @returns {void}
188
218
  * @hidden
189
-
219
+ * @deprecated
190
220
  */
191
221
  BaseQuickToolbar.prototype.showPopup = function (x, y, target, type) {
192
222
  var _this = this;
@@ -223,6 +253,9 @@ var BaseQuickToolbar = /** @class */ (function () {
223
253
  _this.parent.disableToolbarItem(_this.parent.toolbarSettings.items);
224
254
  _this.parent.enableToolbarItem(['Undo', 'Redo']);
225
255
  }
256
+ else {
257
+ _this.parent.enableToolbarItem(_this.parent.toolbarSettings.items);
258
+ }
226
259
  append([_this.element], document.body);
227
260
  if (_this.parent.showTooltip) {
228
261
  _this.tooltip = new Tooltip({
@@ -230,7 +263,8 @@ var BaseQuickToolbar = /** @class */ (function () {
230
263
  openDelay: 400,
231
264
  showTipPointer: true,
232
265
  windowCollision: true,
233
- position: 'BottomCenter'
266
+ position: 'BottomCenter',
267
+ cssClass: _this.parent.getCssClass()
234
268
  });
235
269
  _this.tooltip.appendTo(_this.element);
236
270
  }
@@ -264,9 +298,9 @@ var BaseQuickToolbar = /** @class */ (function () {
264
298
  parentData: parent_1.getBoundingClientRect(),
265
299
  tBarElementHeight: tBarHeight
266
300
  };
267
- if (target.tagName === 'IMG' || target.tagName === 'AUDIO' || target.tagName === 'VIDEO' || target.tagName === 'IFRAME' || (target.classList &&
301
+ if ((closest(target, 'TABLE') || target.tagName === 'IMG' || target.tagName === 'AUDIO' || target.tagName === 'VIDEO' || target.tagName === 'IFRAME' || (target.classList &&
268
302
  (target.classList.contains(classes.CLS_AUDIOWRAP) || target.classList.contains(classes.CLS_CLICKELEM) ||
269
- target.classList.contains(classes.CLS_VID_CLICK_ELEM)))) {
303
+ target.classList.contains(classes.CLS_VID_CLICK_ELEM)))) && (x == beforeQuickToolbarArgs.positionX || y == beforeQuickToolbarArgs.positionY)) {
270
304
  _this.setPosition(showPopupData);
271
305
  }
272
306
  if (!_this.parent.inlineMode.enable) {
@@ -284,7 +318,7 @@ var BaseQuickToolbar = /** @class */ (function () {
284
318
  maxWidth: window.outerWidth + 'px'
285
319
  });
286
320
  addClass([_this.element], [classes.CLS_POP]);
287
- _this.isDOMElement = true;
321
+ _this.isRendered = true;
288
322
  }
289
323
  });
290
324
  };
@@ -293,7 +327,7 @@ var BaseQuickToolbar = /** @class */ (function () {
293
327
  *
294
328
  * @returns {void}
295
329
  * @hidden
296
-
330
+ * @deprecated
297
331
  */
298
332
  BaseQuickToolbar.prototype.hidePopup = function () {
299
333
  var viewSourcePanel = this.parent.sourceCodeModule.getViewPanel();
@@ -320,15 +354,18 @@ var BaseQuickToolbar = /** @class */ (function () {
320
354
  this.parent.enableToolbarItem(this.parent.toolbarSettings.items);
321
355
  }
322
356
  }
357
+ if (this.parent.showTooltip && !isNOU(document.querySelector('.e-tooltip-wrap'))) {
358
+ this.parent.notify(events.destroyTooltip, { args: event });
359
+ }
323
360
  this.removeEleFromDOM();
324
- this.isDOMElement = false;
361
+ this.isRendered = false;
325
362
  };
326
363
  /**
327
364
  * @param {string} item - specifies the string value
328
365
  * @param {number} index - specifies the index value
329
366
  * @returns {void}
330
367
  * @hidden
331
-
368
+ * @deprecated
332
369
  */
333
370
  BaseQuickToolbar.prototype.addQTBarItem = function (item, index) {
334
371
  this.quickTBarObj.toolbarObj.addItems(this.quickTBarObj.getItems(item, 'toolbar'), index);
@@ -337,14 +374,14 @@ var BaseQuickToolbar = /** @class */ (function () {
337
374
  * @param {number} index - specifies the index value
338
375
  * @returns {void}
339
376
  * @hidden
340
-
377
+ * @deprecated
341
378
  */
342
379
  BaseQuickToolbar.prototype.removeQTBarItem = function (index) {
343
380
  this.quickTBarObj.toolbarObj.removeItems(index);
344
381
  };
345
382
  BaseQuickToolbar.prototype.removeEleFromDOM = function () {
346
383
  var element = this.popupObj.element;
347
- if (this.isDOMElement) {
384
+ if (this.isRendered) {
348
385
  this.dropDownButtons.destroyDropDowns();
349
386
  this.colorPickerObj.destroyColorPicker();
350
387
  removeClass([this.element], [classes.CLS_POP]);
@@ -383,7 +420,7 @@ var BaseQuickToolbar = /** @class */ (function () {
383
420
  * @function destroy
384
421
  * @returns {void}
385
422
  * @hidden
386
-
423
+ * @deprecated
387
424
  */
388
425
  BaseQuickToolbar.prototype.destroy = function () {
389
426
  if (this.popupObj && !this.popupObj.isDestroyed) {
@@ -397,7 +434,7 @@ var BaseQuickToolbar = /** @class */ (function () {
397
434
  *
398
435
  * @returns {void}
399
436
  * @hidden
400
-
437
+ * @deprecated
401
438
  */
402
439
  BaseQuickToolbar.prototype.addEventListener = function () {
403
440
  if (this.parent.isDestroyed) {
@@ -415,7 +452,7 @@ var BaseQuickToolbar = /** @class */ (function () {
415
452
  * @param {RichTextEditorModel} e - specifies the model element
416
453
  * @returns {void}
417
454
  * @hidden
418
-
455
+ * @deprecated
419
456
  */
420
457
  BaseQuickToolbar.prototype.onPropertyChanged = function (e) {
421
458
  if (!isNullOrUndefined(e.newProp.inlineMode)) {
@@ -439,7 +476,7 @@ var BaseQuickToolbar = /** @class */ (function () {
439
476
  *
440
477
  * @returns {void}
441
478
  * @hidden
442
-
479
+ * @deprecated
443
480
  */
444
481
  BaseQuickToolbar.prototype.removeEventListener = function () {
445
482
  if (this.parent.isDestroyed) {
@@ -32,7 +32,7 @@ export declare class BaseToolbar {
32
32
  * @param {string} container - specifies the value of string
33
33
  * @returns {IToolbarItemModel} - returns the model element
34
34
  * @hidden
35
-
35
+ * @deprecated
36
36
  */
37
37
  getObject(item: string, container: string): IToolbarItemModel;
38
38
  /**
@@ -40,7 +40,7 @@ export declare class BaseToolbar {
40
40
  * @param {string} container - specifies the container value
41
41
  * @returns {ItemModel} - retunrs the model element
42
42
  * @hidden
43
-
43
+ * @deprecated
44
44
  */
45
45
  getItems(tbItems: (string | IToolbarItems)[], container: string): ItemModel[];
46
46
  private getToolbarOptions;
@@ -50,7 +50,7 @@ export declare class BaseToolbar {
50
50
  * @param {IToolbarRenderOptions} args - specifies the toolbar options
51
51
  * @returns {void}
52
52
  * @hidden
53
-
53
+ * @deprecated
54
54
  */
55
55
  render(args: IToolbarRenderOptions): void;
56
56
  }
@@ -1,9 +1,9 @@
1
1
  import { RenderType } from '../base/enum';
2
2
  import { CLS_HR_SEPARATOR } from '../base/classes';
3
3
  import * as events from '../base/constant';
4
- import { getTooltipText, isIDevice, toObjectLowerCase } from '../base/util';
4
+ import { getTooltipText, toObjectLowerCase } from '../base/util';
5
5
  import { tools, templateItems, windowKeys } from '../models/items';
6
- import { isNullOrUndefined, extend, Browser } from '@syncfusion/ej2-base';
6
+ import { isNullOrUndefined, extend } from '@syncfusion/ej2-base';
7
7
  /**
8
8
  * `Toolbar` module is used to handle Toolbar actions.
9
9
  */
@@ -93,7 +93,7 @@ var BaseToolbar = /** @class */ (function () {
93
93
  * @param {string} container - specifies the value of string
94
94
  * @returns {IToolbarItemModel} - returns the model element
95
95
  * @hidden
96
-
96
+ * @deprecated
97
97
  */
98
98
  BaseToolbar.prototype.getObject = function (item, container) {
99
99
  var itemStr = item.toLowerCase();
@@ -107,23 +107,13 @@ var BaseToolbar = /** @class */ (function () {
107
107
  case '-':
108
108
  return { type: 'Separator', cssClass: CLS_HR_SEPARATOR };
109
109
  default:
110
- if (this.parent.showTooltip) {
111
- return {
112
- id: this.parent.getID() + '_' + container + '_' + this.tools[itemStr.toLocaleLowerCase()].id,
113
- prefixIcon: this.tools[itemStr.toLocaleLowerCase()].icon,
114
- tooltipText: getTooltipText(itemStr, this.locator),
115
- command: this.tools[itemStr.toLocaleLowerCase()].command,
116
- subCommand: this.tools[itemStr.toLocaleLowerCase()].subCommand
117
- };
118
- }
119
- else {
120
- return {
121
- id: this.parent.getID() + '_' + container + '_' + this.tools[itemStr.toLocaleLowerCase()].id,
122
- prefixIcon: this.tools[itemStr.toLocaleLowerCase()].icon,
123
- command: this.tools[itemStr.toLocaleLowerCase()].command,
124
- subCommand: this.tools[itemStr.toLocaleLowerCase()].subCommand
125
- };
126
- }
110
+ return {
111
+ id: this.parent.getID() + '_' + container + '_' + this.tools[itemStr.toLocaleLowerCase()].id,
112
+ prefixIcon: this.tools[itemStr.toLocaleLowerCase()].icon,
113
+ tooltipText: getTooltipText(itemStr, this.locator),
114
+ command: this.tools[itemStr.toLocaleLowerCase()].command,
115
+ subCommand: this.tools[itemStr.toLocaleLowerCase()].subCommand
116
+ };
127
117
  }
128
118
  }
129
119
  };
@@ -132,7 +122,7 @@ var BaseToolbar = /** @class */ (function () {
132
122
  * @param {string} container - specifies the container value
133
123
  * @returns {ItemModel} - retunrs the model element
134
124
  * @hidden
135
-
125
+ * @deprecated
136
126
  */
137
127
  BaseToolbar.prototype.getItems = function (tbItems, container) {
138
128
  var _this = this;
@@ -154,10 +144,14 @@ var BaseToolbar = /** @class */ (function () {
154
144
  _this.parent.formatter.saveData();
155
145
  }
156
146
  callback_1.call(_this);
157
- var currentContentElem = _this.parent.createElement('div');
158
- currentContentElem.appendChild(_this.parent.formatter.getUndoRedoStack()[_this.parent.formatter.getUndoRedoStack().length - 1].text);
159
- if (currentContentElem.innerHTML.trim() === _this.parent.inputElement.innerHTML.trim()) {
160
- return;
147
+ if (_this.parent.formatter.getUndoRedoStack().length > 0) {
148
+ var currentContentElem = _this.parent.createElement('div');
149
+ var stackItem = _this.parent.formatter.getUndoRedoStack()[_this.parent.formatter.getUndoRedoStack().length - 1];
150
+ var clonedItem = (stackItem.text).cloneNode(true);
151
+ currentContentElem.appendChild(clonedItem);
152
+ if (currentContentElem.innerHTML.trim() === _this.parent.inputElement.innerHTML.trim()) {
153
+ return;
154
+ }
161
155
  }
162
156
  if (proxy_1.undo) {
163
157
  _this.parent.formatter.saveData();
@@ -172,17 +166,21 @@ var BaseToolbar = /** @class */ (function () {
172
166
  var item = tbItems_1[_i];
173
167
  _loop_1(item);
174
168
  }
175
- for (var num = 0; num < items.length; num++) {
176
- var tooltipText = items[num].tooltipText;
177
- var shortCutKey = void 0;
178
- if (windowKeys["" + tooltipText]) {
179
- shortCutKey = Browser.isDevice && isIDevice() ? windowKeys["" + tooltipText].replace('Ctrl', 'Cmd') : windowKeys["" + tooltipText];
180
- }
181
- else {
182
- shortCutKey = tooltipText;
183
- }
184
- if (shortCutKey) {
185
- items[num].tooltipText = (tooltipText !== shortCutKey) ? tooltipText + ' (' + shortCutKey + ')' : tooltipText;
169
+ if (this.parent.showTooltip) {
170
+ for (var num = 0; num < items.length; num++) {
171
+ var tooltipText = items[num].tooltipText;
172
+ var shortCutKey = void 0;
173
+ if (windowKeys["" + tooltipText]) {
174
+ shortCutKey = window.navigator.platform.toLocaleLowerCase().includes('mac') ? windowKeys["" + tooltipText].replace('Ctrl', 'Cmd') : windowKeys["" + tooltipText];
175
+ }
176
+ else {
177
+ shortCutKey = tooltipText;
178
+ }
179
+ if (shortCutKey) {
180
+ if (!(items[num].command === "Images" && items[num].subCommand === "InsertLink")) {
181
+ items[num].tooltipText = (tooltipText !== shortCutKey) ? tooltipText + ' (' + shortCutKey + ')' : tooltipText;
182
+ }
183
+ }
186
184
  }
187
185
  }
188
186
  return items;
@@ -204,7 +202,7 @@ var BaseToolbar = /** @class */ (function () {
204
202
  * @param {IToolbarRenderOptions} args - specifies the toolbar options
205
203
  * @returns {void}
206
204
  * @hidden
207
-
205
+ * @deprecated
208
206
  */
209
207
  BaseToolbar.prototype.render = function (args) {
210
208
  this.toolbarRenderer = this.renderFactory.getRenderer(RenderType.Toolbar);
@@ -23,7 +23,7 @@ export declare class ColorPickerInput {
23
23
  * @param {IColorPickerRenderArgs} args - specify the arguments.
24
24
  * @returns {void}
25
25
  * @hidden
26
-
26
+ * @deprecated
27
27
  */
28
28
  renderColorPickerInput(args: IColorPickerRenderArgs): void;
29
29
  private destroy;
@@ -32,13 +32,14 @@ export declare class ColorPickerInput {
32
32
  *
33
33
  * @returns {void}
34
34
  * @hidden
35
-
35
+ * @deprecated
36
36
  */
37
37
  destroyColorPicker(): void;
38
38
  private setRtl;
39
39
  private setCssClass;
40
40
  private updateCss;
41
41
  protected addEventListener(): void;
42
+ private showColorPicker;
42
43
  private onPropertyChanged;
43
44
  protected removeEventListener(): void;
44
45
  }
@@ -30,7 +30,7 @@ var ColorPickerInput = /** @class */ (function () {
30
30
  * @param {IColorPickerRenderArgs} args - specify the arguments.
31
31
  * @returns {void}
32
32
  * @hidden
33
-
33
+ * @deprecated
34
34
  */
35
35
  ColorPickerInput.prototype.renderColorPickerInput = function (args) {
36
36
  var _this = this;
@@ -112,7 +112,7 @@ var ColorPickerInput = /** @class */ (function () {
112
112
  *
113
113
  * @returns {void}
114
114
  * @hidden
115
-
115
+ * @deprecated
116
116
  */
117
117
  ColorPickerInput.prototype.destroyColorPicker = function () {
118
118
  if (this.fontColorPicker && !this.fontColorPicker.isDestroyed) {
@@ -170,6 +170,15 @@ var ColorPickerInput = /** @class */ (function () {
170
170
  this.parent.on(events.destroyColorPicker, this.destroyColorPicker, this);
171
171
  this.parent.on(events.modelChanged, this.onPropertyChanged, this);
172
172
  this.parent.on(events.bindCssClass, this.setCssClass, this);
173
+ this.parent.on(events.showColorPicker, this.showColorPicker, this);
174
+ };
175
+ ColorPickerInput.prototype.showColorPicker = function (e) {
176
+ if (!isNullOrUndefined(this.fontColorPicker) && (e.toolbarClick === "fontcolor")) {
177
+ this.fontColorDropDown.toggle();
178
+ }
179
+ else if (!isNullOrUndefined(this.backgroundColorPicker) && (e.toolbarClick === "backgroundcolor")) {
180
+ this.backgroundColorDropDown.toggle();
181
+ }
173
182
  };
174
183
  ColorPickerInput.prototype.onPropertyChanged = function (model) {
175
184
  var newProp = model.newProp;
@@ -243,6 +252,7 @@ var ColorPickerInput = /** @class */ (function () {
243
252
  this.parent.off(events.destroyColorPicker, this.destroyColorPicker);
244
253
  this.parent.off(events.modelChanged, this.onPropertyChanged);
245
254
  this.parent.off(events.bindCssClass, this.setCssClass);
255
+ this.parent.off(events.showColorPicker, this.showColorPicker);
246
256
  };
247
257
  return ColorPickerInput;
248
258
  }());
@@ -22,7 +22,7 @@ export declare class Count {
22
22
  *
23
23
  * @returns {void}
24
24
  * @hidden
25
-
25
+ * @deprecated
26
26
  */
27
27
  renderCount(): void;
28
28
  private appendCount;
@@ -30,7 +30,7 @@ export declare class Count {
30
30
  /**
31
31
  * @returns {void}
32
32
  * @hidden
33
-
33
+ * @deprecated
34
34
  */
35
35
  refresh(): void;
36
36
  /**
@@ -39,7 +39,7 @@ export declare class Count {
39
39
  * @function destroy
40
40
  * @returns {void}
41
41
  * @hidden
42
-
42
+ * @deprecated
43
43
  */
44
44
  destroy(): void;
45
45
  private toggle;