@syncfusion/ej2-richtexteditor 23.2.7 → 24.1.41-569421

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 (272) hide show
  1. package/.eslintrc.json +259 -259
  2. package/CHANGELOG.md +1953 -1749
  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 +9971 -8025
  7. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  8. package/dist/es6/ej2-richtexteditor.es5.js +8445 -6498
  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 +12 -1
  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 +16 -6
  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 -62
  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 +41 -18
  47. package/src/editor-manager/plugin/indents.d.ts +2 -2
  48. package/src/editor-manager/plugin/indents.js +3 -3
  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 +85 -22
  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 +10 -5
  61. package/src/editor-manager/plugin/lists.d.ts +2 -2
  62. package/src/editor-manager/plugin/lists.js +161 -72
  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 +216 -86
  65. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  66. package/src/editor-manager/plugin/nodecutter.js +11 -8
  67. package/src/editor-manager/plugin/selection-commands.d.ts +3 -1
  68. package/src/editor-manager/plugin/selection-commands.js +249 -5
  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 +6 -3
  72. package/src/editor-manager/plugin/table.js +97 -51
  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/global.d.ts +1 -0
  80. package/src/markdown-parser/base/interface.d.ts +10 -10
  81. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  82. package/src/markdown-parser/base/markdown-parser.js +3 -3
  83. package/src/markdown-parser/base/types.d.ts +1 -1
  84. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  85. package/src/markdown-parser/plugin/clearformat.js +2 -2
  86. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  87. package/src/markdown-parser/plugin/formats.js +2 -2
  88. package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
  89. package/src/markdown-parser/plugin/insert-text.js +2 -2
  90. package/src/markdown-parser/plugin/link.d.ts +2 -2
  91. package/src/markdown-parser/plugin/link.js +2 -2
  92. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  93. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  94. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  95. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  96. package/src/markdown-parser/plugin/table.d.ts +3 -3
  97. package/src/markdown-parser/plugin/table.js +3 -3
  98. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  99. package/src/markdown-parser/plugin/undo.js +6 -6
  100. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +13 -12
  101. package/src/rich-text-editor/actions/base-quick-toolbar.js +70 -23
  102. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  103. package/src/rich-text-editor/actions/base-toolbar.js +36 -37
  104. package/src/rich-text-editor/actions/color-picker.d.ts +3 -2
  105. package/src/rich-text-editor/actions/color-picker.js +15 -5
  106. package/src/rich-text-editor/actions/count.d.ts +3 -3
  107. package/src/rich-text-editor/actions/count.js +4 -4
  108. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +3 -2
  109. package/src/rich-text-editor/actions/dropdown-buttons.js +13 -7
  110. package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
  111. package/src/rich-text-editor/actions/emoji-picker.js +17 -8
  112. package/src/rich-text-editor/actions/enter-key.js +10 -5
  113. package/src/rich-text-editor/actions/file-manager.js +1 -1
  114. package/src/rich-text-editor/actions/format-painter.js +5 -2
  115. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  116. package/src/rich-text-editor/actions/full-screen.js +8 -7
  117. package/src/rich-text-editor/actions/html-editor.d.ts +5 -3
  118. package/src/rich-text-editor/actions/html-editor.js +134 -22
  119. package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
  120. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  121. package/src/rich-text-editor/actions/keyboard.js +23 -21
  122. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  123. package/src/rich-text-editor/actions/markdown-editor.js +5 -3
  124. package/src/rich-text-editor/actions/paste-clean-up.d.ts +6 -1
  125. package/src/rich-text-editor/actions/paste-clean-up.js +157 -29
  126. package/src/rich-text-editor/actions/quick-toolbar.d.ts +17 -9
  127. package/src/rich-text-editor/actions/quick-toolbar.js +68 -21
  128. package/src/rich-text-editor/actions/resize.js +2 -1
  129. package/src/rich-text-editor/actions/toolbar-action.js +1 -1
  130. package/src/rich-text-editor/actions/toolbar.d.ts +16 -16
  131. package/src/rich-text-editor/actions/toolbar.js +48 -109
  132. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  133. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  134. package/src/rich-text-editor/base/classes.d.ts +125 -125
  135. package/src/rich-text-editor/base/classes.js +125 -125
  136. package/src/rich-text-editor/base/constant.d.ts +195 -150
  137. package/src/rich-text-editor/base/constant.js +364 -150
  138. package/src/rich-text-editor/base/enum.d.ts +1 -1
  139. package/src/rich-text-editor/base/enum.js +1 -1
  140. package/src/rich-text-editor/base/interface.d.ts +96 -52
  141. package/src/rich-text-editor/base/interface.js +1 -1
  142. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +891 -891
  143. package/src/rich-text-editor/base/rich-text-editor.d.ts +76 -64
  144. package/src/rich-text-editor/base/rich-text-editor.js +247 -160
  145. package/src/rich-text-editor/base/util.d.ts +1 -1
  146. package/src/rich-text-editor/base/util.js +23 -5
  147. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  148. package/src/rich-text-editor/formatter/formatter.js +24 -12
  149. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  150. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  151. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  152. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  153. package/src/rich-text-editor/models/default-locale.js +31 -25
  154. package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
  155. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  156. package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
  157. package/src/rich-text-editor/models/inline-mode.js +19 -19
  158. package/src/rich-text-editor/models/items.js +3 -3
  159. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
  160. package/src/rich-text-editor/models/toolbar-settings.d.ts +1 -1
  161. package/src/rich-text-editor/models/toolbar-settings.js +20 -20
  162. package/src/rich-text-editor/renderer/audio-module.d.ts +2 -1
  163. package/src/rich-text-editor/renderer/audio-module.js +23 -5
  164. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  165. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  166. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +4 -2
  167. package/src/rich-text-editor/renderer/dialog-renderer.js +24 -4
  168. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  169. package/src/rich-text-editor/renderer/iframe-content-renderer.js +19 -18
  170. package/src/rich-text-editor/renderer/image-module.d.ts +10 -2
  171. package/src/rich-text-editor/renderer/image-module.js +265 -221
  172. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  173. package/src/rich-text-editor/renderer/link-module.js +54 -25
  174. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  175. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  176. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  177. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  178. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  179. package/src/rich-text-editor/renderer/render.js +2 -2
  180. package/src/rich-text-editor/renderer/table-module.d.ts +11 -2
  181. package/src/rich-text-editor/renderer/table-module.js +344 -169
  182. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +12 -15
  183. package/src/rich-text-editor/renderer/toolbar-renderer.js +115 -110
  184. package/src/rich-text-editor/renderer/video-module.d.ts +4 -1
  185. package/src/rich-text-editor/renderer/video-module.js +83 -42
  186. package/src/rich-text-editor/renderer/view-source.d.ts +7 -6
  187. package/src/rich-text-editor/renderer/view-source.js +21 -11
  188. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  189. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  190. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  191. package/src/rich-text-editor/services/service-locator.js +3 -3
  192. package/src/selection/selection.d.ts +22 -22
  193. package/src/selection/selection.js +25 -22
  194. package/styles/_all.scss +1 -1
  195. package/styles/bootstrap-dark.css +353 -103
  196. package/styles/bootstrap.css +357 -112
  197. package/styles/bootstrap4.css +338 -96
  198. package/styles/bootstrap5-dark.css +344 -97
  199. package/styles/bootstrap5.css +344 -97
  200. package/styles/fabric-dark.css +332 -90
  201. package/styles/fabric.css +333 -91
  202. package/styles/fluent-dark.css +360 -98
  203. package/styles/fluent.css +360 -98
  204. package/styles/highcontrast-light.css +332 -90
  205. package/styles/highcontrast.css +336 -91
  206. package/styles/material-dark.css +339 -92
  207. package/styles/material.css +339 -92
  208. package/styles/material3-dark.css +348 -100
  209. package/styles/material3-dark.scss +1 -1
  210. package/styles/material3.css +348 -100
  211. package/styles/material3.scss +1 -1
  212. package/styles/rich-text-editor/_all.scss +2 -2
  213. package/styles/rich-text-editor/_bds-definition.scss +279 -0
  214. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +281 -277
  215. package/styles/rich-text-editor/_bootstrap-definition.scss +337 -334
  216. package/styles/rich-text-editor/_bootstrap4-definition.scss +464 -460
  217. package/styles/rich-text-editor/_bootstrap5-definition.scss +266 -262
  218. package/styles/rich-text-editor/_fabric-dark-definition.scss +263 -259
  219. package/styles/rich-text-editor/_fabric-definition.scss +261 -257
  220. package/styles/rich-text-editor/_fluent-definition.scss +267 -263
  221. package/styles/rich-text-editor/_fusionnew-definition.scss +265 -261
  222. package/styles/rich-text-editor/_highcontrast-definition.scss +261 -257
  223. package/styles/rich-text-editor/_highcontrast-light-definition.scss +261 -257
  224. package/styles/rich-text-editor/_layout.scss +2249 -2072
  225. package/styles/rich-text-editor/_material-dark-definition.scss +266 -262
  226. package/styles/rich-text-editor/_material-definition.scss +264 -260
  227. package/styles/rich-text-editor/_material3-definition.scss +266 -262
  228. package/styles/rich-text-editor/_tailwind-definition.scss +261 -257
  229. package/styles/rich-text-editor/_theme.scss +926 -837
  230. package/styles/rich-text-editor/bootstrap-dark.css +353 -103
  231. package/styles/rich-text-editor/bootstrap.css +357 -112
  232. package/styles/rich-text-editor/bootstrap4.css +338 -96
  233. package/styles/rich-text-editor/bootstrap5-dark.css +344 -97
  234. package/styles/rich-text-editor/bootstrap5.css +344 -97
  235. package/styles/rich-text-editor/fabric-dark.css +332 -90
  236. package/styles/rich-text-editor/fabric.css +333 -91
  237. package/styles/rich-text-editor/fluent-dark.css +360 -98
  238. package/styles/rich-text-editor/fluent.css +360 -98
  239. package/styles/rich-text-editor/highcontrast-light.css +332 -90
  240. package/styles/rich-text-editor/highcontrast.css +336 -91
  241. package/styles/rich-text-editor/icons/_bds.scss +348 -0
  242. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +349 -349
  243. package/styles/rich-text-editor/icons/_bootstrap.scss +349 -349
  244. package/styles/rich-text-editor/icons/_bootstrap4.scss +349 -349
  245. package/styles/rich-text-editor/icons/_bootstrap5.scss +348 -348
  246. package/styles/rich-text-editor/icons/_fabric-dark.scss +349 -349
  247. package/styles/rich-text-editor/icons/_fabric.scss +349 -349
  248. package/styles/rich-text-editor/icons/_fluent.scss +348 -348
  249. package/styles/rich-text-editor/icons/_fusionnew.scss +348 -348
  250. package/styles/rich-text-editor/icons/_highcontrast-light.scss +349 -349
  251. package/styles/rich-text-editor/icons/_highcontrast.scss +349 -349
  252. package/styles/rich-text-editor/icons/_material-dark.scss +349 -349
  253. package/styles/rich-text-editor/icons/_material.scss +349 -349
  254. package/styles/rich-text-editor/icons/_material3.scss +348 -348
  255. package/styles/rich-text-editor/icons/_tailwind.scss +348 -348
  256. package/styles/rich-text-editor/material-dark.css +339 -92
  257. package/styles/rich-text-editor/material.css +339 -92
  258. package/styles/rich-text-editor/material3-dark.css +348 -100
  259. package/styles/rich-text-editor/material3-dark.scss +1 -1
  260. package/styles/rich-text-editor/material3.css +348 -100
  261. package/styles/rich-text-editor/material3.scss +1 -1
  262. package/styles/rich-text-editor/tailwind-dark.css +383 -113
  263. package/styles/rich-text-editor/tailwind.css +383 -113
  264. package/styles/tailwind-dark.css +383 -113
  265. package/styles/tailwind.css +383 -113
  266. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +0 -41
  267. package/.github/PULL_REQUEST_TEMPLATE/Feature.md +0 -27
  268. package/dist/ej2-richtexteditor.min.js +0 -10
  269. package/dist/global/ej2-richtexteditor.min.js +0 -11
  270. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  271. package/dist/global/index.d.ts +0 -14
  272. package/tslint.json +0 -111
@@ -13,6 +13,7 @@ var Video = /** @class */ (function () {
13
13
  this.isAllowedTypes = true;
14
14
  this.pageX = null;
15
15
  this.pageY = null;
16
+ this.mouseX = null;
16
17
  this.deletedVid = [];
17
18
  this.parent = parent;
18
19
  this.rteID = parent.element.id;
@@ -143,7 +144,7 @@ var Video = /** @class */ (function () {
143
144
  var dialogContent = this.vidsizeInput(e);
144
145
  var selectObj_1 = { args: e.args, selfVideo: this, selection: e.selection, selectNode: e.selectNode };
145
146
  this.dialogObj.setProperties({
146
- height: 'inherit', width: '290px', header: vidSizeHeader, content: dialogContent,
147
+ width: '290px', header: vidSizeHeader, content: dialogContent,
147
148
  buttons: [{
148
149
  // eslint-disable-next-line
149
150
  click: function (e) {
@@ -412,62 +413,50 @@ var Video = /** @class */ (function () {
412
413
  if (isNullOrUndefined(vidEleStyle)) {
413
414
  return;
414
415
  }
415
- // eslint-disable-next-line
416
+ /* eslint-disable */
416
417
  var width = vidEleStyle.width !== '' ? vidEleStyle.width.match(/^\d+(\.\d*)?%$/g) ? parseFloat(vidEleStyle.width) :
417
418
  parseInt(vidEleStyle.width, 10) : vid.style.width !== '' ? vid.style.width : vid.width;
418
419
  var height = vidEleStyle.height !== '' ? parseInt(vidEleStyle.height, 10) : vid.style.height !== '' ? vid.style.height : vid.height;
420
+ width = width.toString().match(/\b\d+(\.\d*)?(%|$)\b/g) ? parseFloat(width.toString()) : parseInt(width.toString(), 10);
421
+ height = height.toString().match(/\b\d+(\.\d*)?(%|$)\b/g) ? parseFloat(height.toString()) : parseInt(height.toString(), 10);
422
+ /* eslint-enable */
419
423
  if (width > height) {
420
424
  vid.style.minWidth = this.parent.insertVideoSettings.minWidth === 0 ? '200px' : formatUnit(this.parent.insertVideoSettings.minWidth);
421
425
  vid.style.minHeight = this.parent.insertVideoSettings.minHeight === 0 ? '90px' : formatUnit(this.parent.insertVideoSettings.minHeight);
422
426
  if (this.parent.insertVideoSettings.resizeByPercent) {
423
- if (parseInt('' + vid.getBoundingClientRect().width + '', 10) !== 0 && parseInt('' + width + '', 10) !== 0) {
424
- var percentageValue = this.pixToPerc((parseInt(width.toString(), 10) / parseInt(height.toString(), 10) * expectedY), (vid.previousElementSibling || vid.parentElement));
425
- vid.style.width = Math.min(Math.round((percentageValue / vid.getBoundingClientRect().width) * expectedX * 100) / 100, 100) + '%';
426
- }
427
- else {
428
- vid.style.width = this.pixToPerc(parseInt(width.toString(), 10) / parseInt(height.toString(), 10) * expectedY, (vid.previousElementSibling || vid.parentElement)) + '%';
429
- }
430
- vid.style.height = null;
431
- vid.removeAttribute('height');
427
+ this.updateVidEleWidth(vid, width, height, expectedX, expectedY);
432
428
  }
433
429
  else if ((vid.style.width === '' && vid.style.height !== '') || (vidEleStyle.width === '' && vidEleStyle.height !== '')) {
434
430
  vid.style.height = expectedY + 'px';
435
431
  }
436
432
  else if ((vid.style.width !== '' && vid.style.height === '') || (vidEleStyle.width !== '' && vidEleStyle.height === '')) {
437
- var currentWidth = ((parseInt(width.toString(), 10) / parseInt(height.toString(), 10) * expectedY) +
438
- parseInt(width.toString(), 10) / parseInt(height.toString(), 10)) <
433
+ var currentWidth = ((width / height * expectedY) +
434
+ width / height) <
439
435
  (this.parent.inputElement.getBoundingClientRect().right - 32) ?
440
- ((parseInt(width.toString(), 10) / parseInt(height.toString(), 10) * expectedY) +
441
- parseInt(width.toString(), 10) / parseInt(height.toString(), 10)) :
436
+ ((width / height * expectedY) +
437
+ width / height) :
442
438
  (this.parent.inputElement.getBoundingClientRect().right - 32);
443
439
  vid.style.width = currentWidth.toString() + 'px';
444
440
  }
445
441
  else if (vid.style.width !== '' || vidEleStyle.width !== '') {
446
- var currentWidth = (parseInt(width.toString(), 10) / parseInt(height.toString(), 10) * expectedY) <
442
+ var currentWidth = (width / height * expectedY) <
447
443
  (this.parent.inputElement.getBoundingClientRect().right - 32) ?
448
- (parseInt(width.toString(), 10) / parseInt(height.toString(), 10) * expectedY) :
444
+ (width / height * expectedY) :
449
445
  (this.parent.inputElement.getBoundingClientRect().right - 32);
450
446
  vid.style.width = currentWidth + 'px';
451
447
  vid.style.height = expectedY + 'px';
452
448
  }
453
449
  else {
454
- vid.setAttribute('width', (parseInt(((parseInt(width.toString(), 10) / parseInt(height.toString(), 10) * expectedY) + parseInt(width.toString(), 10) / parseInt(height.toString(), 10)).toString(), 10)).toString());
450
+ vid.setAttribute('width', (parseInt(((width / height * expectedY) + width / height).toString(), 10)).toString());
455
451
  }
456
452
  }
457
453
  else if (height > width) {
458
454
  if (this.parent.insertVideoSettings.resizeByPercent) {
459
- if (parseInt('' + vid.getBoundingClientRect().width + '', 10) !== 0 && parseInt('' + width + '', 10) !== 0) {
460
- vid.style.width = Math.min(Math.round((parseInt(width.toString(), 10) / vid.getBoundingClientRect().width) * expectedX * 100) / 100, 100) + '%';
461
- }
462
- else {
463
- vid.style.width = this.pixToPerc((expectedX / parseInt(height.toString(), 10) * expectedY), (vid.previousElementSibling || vid.parentElement)) + '%';
464
- }
465
- vid.style.height = null;
466
- vid.removeAttribute('height');
455
+ this.updateVidEleWidth(vid, width, height, expectedX, expectedY);
467
456
  }
468
457
  else if (vid.style.width !== '' || vidEleStyle.width !== '') {
469
458
  vid.style.width = expectedX + 'px';
470
- vid.style.height = (parseInt(height.toString(), 10) / parseInt(width.toString(), 10) * expectedX) + 'px';
459
+ vid.style.height = (height / width * expectedX) + 'px';
471
460
  }
472
461
  else {
473
462
  vid.setAttribute('width', this.resizeBtnStat.botRight ? (this.getPointX(e.event) - vid.getBoundingClientRect().left).toString() : expectedX.toString());
@@ -485,6 +474,23 @@ var Video = /** @class */ (function () {
485
474
  }
486
475
  }
487
476
  };
477
+ Video.prototype.updateVidEleWidth = function (vid, width, height, expectedX, expectedY) {
478
+ if (parseInt('' + vid.getBoundingClientRect().width + '', 10) !== 0 && parseInt('' + width + '', 10) !== 0) {
479
+ var original = vid.offsetWidth + this.mouseX;
480
+ var finalWidthByPerc = (original / vid.offsetWidth) * (parseFloat(vid.style.width).toString() === 'NaN' ? (vid.offsetWidth / (parseFloat(getComputedStyle(this.parent.element).width)) * 100) : parseFloat(vid.style.width));
481
+ vid.style.width = ((finalWidthByPerc > 3) ? finalWidthByPerc : 3) + '%';
482
+ }
483
+ else {
484
+ if (width > height) {
485
+ vid.style.width = this.pixToPerc(width / height * expectedY, (vid.previousElementSibling || vid.parentElement)) + '%';
486
+ }
487
+ else {
488
+ vid.style.width = this.pixToPerc((expectedX / height * expectedY), (vid.previousElementSibling || vid.parentElement)) + '%';
489
+ }
490
+ }
491
+ vid.style.height = null;
492
+ vid.removeAttribute('height');
493
+ };
488
494
  Video.prototype.pixToPerc = function (expected, parentEle) {
489
495
  return expected / parseFloat(getComputedStyle(parentEle).width) * 100;
490
496
  };
@@ -510,7 +516,6 @@ var Video = /** @class */ (function () {
510
516
  _this.setAspectRatio(_this.videoEle, parseInt(width, 10), parseInt(height, 10), args);
511
517
  _this.resizeVidDupPos(_this.videoEle);
512
518
  _this.vidResizePos(_this.videoEle, _this.vidResizeDiv);
513
- _this.parent.setContentHeight('', false);
514
519
  }
515
520
  });
516
521
  };
@@ -526,6 +531,7 @@ var Video = /** @class */ (function () {
526
531
  var height = parseInt(this.vidDupPos.height, 10) + mouseY;
527
532
  this.pageX = pageX;
528
533
  this.pageY = pageY;
534
+ this.mouseX = mouseX;
529
535
  if (this.resizeBtnStat.botRight) {
530
536
  this.vidDupMouseMove(width + 'px', height + 'px', e);
531
537
  }
@@ -692,6 +698,14 @@ var Video = /** @class */ (function () {
692
698
  originalEvent.preventDefault();
693
699
  break;
694
700
  }
701
+ if (originalEvent.ctrlKey && originalEvent.key === 'a') {
702
+ this.handleSelectAll();
703
+ }
704
+ };
705
+ Video.prototype.handleSelectAll = function () {
706
+ this.cancelResizeAction();
707
+ var videoFocusNodes = this.parent.inputElement.querySelectorAll('.' + classes.CLS_VID_FOCUS);
708
+ removeClass(videoFocusNodes, classes.CLS_VID_FOCUS);
695
709
  };
696
710
  Video.prototype.openDialog = function (isInternal, event, selection, ele, parentEle) {
697
711
  var range;
@@ -803,7 +817,7 @@ var Video = /** @class */ (function () {
803
817
  this.parent.formatter.saveData();
804
818
  }
805
819
  e.selection.restore();
806
- this.parent.formatter.process(this.parent, e.args, e.args, {
820
+ this.parent.formatter.process(this.parent, e.args, e.args.originalEvent, {
807
821
  selectNode: e.selectNode,
808
822
  subCommand: e.args.item.subCommand
809
823
  });
@@ -869,6 +883,7 @@ var Video = /** @class */ (function () {
869
883
  if (e.offsetX > e.target.clientWidth || e.offsetY > e.target.clientHeight) {
870
884
  }
871
885
  else {
886
+ this.parent.notify(events.documentClickClosedBy, { closedBy: "outside click" });
872
887
  this.dialogObj.hide({ returnValue: true });
873
888
  this.parent.isBlur = true;
874
889
  dispatchEvent(this.parent.element, 'focusout');
@@ -892,6 +907,9 @@ var Video = /** @class */ (function () {
892
907
  this.prevSelectedVidEle.style.outline = '';
893
908
  }
894
909
  }
910
+ if (this.parent.inlineMode.enable && target && this.dialogObj && !closest(target, '#' + this.dialogObj.element.id)) {
911
+ this.dialogObj.hide();
912
+ }
895
913
  };
896
914
  Video.prototype.removeResizeEle = function () {
897
915
  EventHandler.remove(this.contentModule.getDocument(), Browser.touchMoveEvent, this.resizing);
@@ -909,7 +927,7 @@ var Video = /** @class */ (function () {
909
927
  }
910
928
  var subCommand = (e.args.item) ?
911
929
  e.args.item.subCommand : 'Break';
912
- this.parent.formatter.process(this.parent, e.args, e.args, { selectNode: e.selectNode, subCommand: subCommand });
930
+ this.parent.formatter.process(this.parent, e.args, e.args.originalEvent, { selectNode: e.selectNode, subCommand: subCommand });
913
931
  };
914
932
  Video.prototype.inline = function (e) {
915
933
  if (e.selectNode[0].nodeName !== 'VIDEO' && !this.isEmbedVidElem(e.selectNode[0])) {
@@ -917,12 +935,12 @@ var Video = /** @class */ (function () {
917
935
  }
918
936
  var subCommand = (e.args.item) ?
919
937
  e.args.item.subCommand : 'Inline';
920
- this.parent.formatter.process(this.parent, e.args, e.args, { selectNode: e.selectNode, subCommand: subCommand });
938
+ this.parent.formatter.process(this.parent, e.args, e.args.originalEvent, { selectNode: e.selectNode, subCommand: subCommand });
921
939
  };
922
940
  Video.prototype.alignVideo = function (e, type) {
923
941
  var subCommand = (e.args.item) ?
924
942
  e.args.item.subCommand : type;
925
- this.parent.formatter.process(this.parent, e.args, e.args, { selectNode: e.selectNode, subCommand: subCommand });
943
+ this.parent.formatter.process(this.parent, e.args, e.args.originalEvent, { selectNode: e.selectNode, subCommand: subCommand });
926
944
  };
927
945
  Video.prototype.editAreaClickHandler = function (e) {
928
946
  if (this.parent.readonly) {
@@ -1066,7 +1084,7 @@ var Video = /** @class */ (function () {
1066
1084
  _this.uploadObj.removing();
1067
1085
  }
1068
1086
  _this.parent.isBlur = false;
1069
- if (event && event.event.returnValue) {
1087
+ if (event && !isNOU(event.event) && event.event.returnValue) {
1070
1088
  if (_this.parent.editorMode === 'HTML') {
1071
1089
  selection.restore();
1072
1090
  }
@@ -1158,26 +1176,44 @@ var Video = /** @class */ (function () {
1158
1176
  }
1159
1177
  }
1160
1178
  });
1179
+ if (e.selectNode && e.selectNode[0] && (e.selectNode[0].nodeName === 'VIDEO' || this.isEmbedVidElem(e.selectNode[0]))) {
1180
+ if (e.selectNode[0].nodeName === 'VIDEO') {
1181
+ var regex = new RegExp(/([^\S]|^)(((https?\:\/\/)|(www\.))(\S+))/gi);
1182
+ var sourceElement = e.selectNode[0].querySelector('source');
1183
+ this.inputUrl.value = sourceElement && sourceElement.src && sourceElement.src.match(regex) ? sourceElement.src : '';
1184
+ }
1185
+ else {
1186
+ this.embedInputUrl.value = e.selectNode[0].nodeName === 'IFRAME' ? e.selectNode[0].outerHTML
1187
+ : e.selectNode[0].querySelector('iframe').outerHTML;
1188
+ }
1189
+ }
1190
+ var isWebUrl = this.inputUrl.value ? true : false;
1161
1191
  var embedUrlBtn = new RadioButton({
1162
1192
  label: this.i10n.getConstant('embeddedCode'),
1163
- checked: true,
1193
+ checked: !isWebUrl,
1164
1194
  name: 'URL',
1165
1195
  created: function () {
1166
- urlContent.appendChild(_this.embedInputUrl);
1196
+ if (!isWebUrl) {
1197
+ urlContent.appendChild(_this.embedInputUrl);
1198
+ }
1167
1199
  },
1168
1200
  change: function () {
1169
1201
  urlContent.innerHTML = '';
1170
- _this.inputUrl.value = '';
1171
1202
  urlContent.appendChild(_this.embedInputUrl);
1172
1203
  }
1173
1204
  });
1174
1205
  embedUrlBtn.appendTo(videoUrl.querySelector('#embedURL'));
1175
1206
  var webUrlBtn = new RadioButton({
1176
1207
  label: this.i10n.getConstant('webUrl'),
1208
+ checked: isWebUrl,
1177
1209
  name: 'URL',
1210
+ created: function () {
1211
+ if (isWebUrl) {
1212
+ urlContent.appendChild(_this.inputUrl);
1213
+ }
1214
+ },
1178
1215
  change: function () {
1179
1216
  urlContent.innerHTML = '';
1180
- _this.embedInputUrl.value = '';
1181
1217
  urlContent.appendChild(_this.inputUrl);
1182
1218
  }
1183
1219
  });
@@ -1307,8 +1343,12 @@ var Video = /** @class */ (function () {
1307
1343
  _this.parent.trigger(events.fileRemoving, e, function (e) {
1308
1344
  proxy.isVideoUploaded = false;
1309
1345
  _this.dialogObj.getButtons(0).element.disabled = true;
1310
- //proxy.inputUrl.removeAttribute('disabled');
1311
- proxy.embedInputUrl.removeAttribute('disabled');
1346
+ if (proxy.inputUrl.getAttribute('disabled')) {
1347
+ proxy.inputUrl.removeAttribute('disabled');
1348
+ }
1349
+ if (proxy.embedInputUrl.getAttribute('disabled')) {
1350
+ proxy.embedInputUrl.removeAttribute('disabled');
1351
+ }
1312
1352
  if (proxy.uploadUrl) {
1313
1353
  proxy.uploadUrl.url = '';
1314
1354
  }
@@ -1369,10 +1409,11 @@ var Video = /** @class */ (function () {
1369
1409
  this.selection = proxy.parent.formatter.editorManager.nodeSelection.save(range, proxy.contentModule.getDocument());
1370
1410
  this.selectParent = proxy.parent.formatter.editorManager.nodeSelection.getParentNodeCollection(range);
1371
1411
  }
1372
- var name_1 = url !== '' ? url.split('/')[url.split('/').length - 1] : embedUrl;
1412
+ var webUrlBtn = document.getElementById('webURL');
1413
+ var name_1 = webUrlBtn.checked ? url.split('/')[url.split('/').length - 1] : embedUrl;
1373
1414
  var value = {
1374
1415
  cssClass: (proxy.parent.insertVideoSettings.layoutOption === 'Inline' ? classes.CLS_VIDEOINLINE : classes.CLS_VIDEOBREAK),
1375
- url: url, selection: this.selection, fileName: name_1, isEmbedUrl: embedUrl !== '' ? true : false,
1416
+ url: url, selection: this.selection, fileName: name_1, isEmbedUrl: !webUrlBtn.checked,
1376
1417
  selectParent: this.selectParent, width: {
1377
1418
  width: proxy.parent.insertVideoSettings.width, minWidth: proxy.parent.insertVideoSettings.minWidth,
1378
1419
  maxWidth: proxy.parent.getInsertImgMaxWidth()
@@ -1393,7 +1434,7 @@ var Video = /** @class */ (function () {
1393
1434
  * @method destroy
1394
1435
  * @returns {void}
1395
1436
  * @hidden
1396
-
1437
+ * @deprecated
1397
1438
  */
1398
1439
  /* eslint-enable */
1399
1440
  Video.prototype.destroy = function () {
@@ -7,7 +7,7 @@ import { ClickEventArgs } from '@syncfusion/ej2-navigations';
7
7
  * Content module is used to render Rich Text Editor content
8
8
  *
9
9
  * @hidden
10
-
10
+ * @deprecated
11
11
  */
12
12
  export declare class ViewSource {
13
13
  private parent;
@@ -15,6 +15,7 @@ export declare class ViewSource {
15
15
  private rendererFactory;
16
16
  private keyboardModule;
17
17
  private previewElement;
18
+ private codeViewTimeInterval;
18
19
  /**
19
20
  * Constructor for view source module
20
21
  *
@@ -40,7 +41,7 @@ export declare class ViewSource {
40
41
  * @param {ClickEventArgs} args - specifies the click event.
41
42
  * @returns {void}
42
43
  * @hidden
43
-
44
+ * @deprecated
44
45
  */
45
46
  sourceCode(args?: ClickEventArgs | IHtmlKeyboardEvent): void;
46
47
  /**
@@ -49,7 +50,7 @@ export declare class ViewSource {
49
50
  * @param {ClickEventArgs} args - specifies the click event.
50
51
  * @returns {void}
51
52
  * @hidden
52
-
53
+ * @deprecated
53
54
  */
54
55
  updateSourceCode(args?: ClickEventArgs | KeyboardEventArgs): void;
55
56
  private getTextAreaValue;
@@ -58,7 +59,7 @@ export declare class ViewSource {
58
59
  *
59
60
  * @returns {void}
60
61
  * @hidden
61
-
62
+ * @deprecated
62
63
  */
63
64
  getPanel(): HTMLTextAreaElement | Element;
64
65
  /**
@@ -66,7 +67,7 @@ export declare class ViewSource {
66
67
  *
67
68
  * @returns {void}
68
69
  * @hidden
69
-
70
+ * @deprecated
70
71
  */
71
72
  getViewPanel(): HTMLTextAreaElement | Element;
72
73
  /**
@@ -74,7 +75,7 @@ export declare class ViewSource {
74
75
  *
75
76
  * @returns {void}
76
77
  * @hidden
77
-
78
+ * @deprecated
78
79
  */
79
80
  destroy(): void;
80
81
  private moduleDestroy;
@@ -8,7 +8,7 @@ import { KeyboardEvents } from '../actions/keyboard';
8
8
  * Content module is used to render Rich Text Editor content
9
9
  *
10
10
  * @hidden
11
-
11
+ * @deprecated
12
12
  */
13
13
  var ViewSource = /** @class */ (function () {
14
14
  /**
@@ -44,7 +44,7 @@ var ViewSource = /** @class */ (function () {
44
44
  this.parent.formatter.editorManager.observer.off(CONSTANT.KEY_DOWN_HANDLER, this.onKeyDown);
45
45
  };
46
46
  ViewSource.prototype.getSourceCode = function () {
47
- return this.parent.createElement('textarea', { className: CLS_RTE_SOURCE_CODE_TXTAREA + ' ' + this.parent.cssClass });
47
+ return this.parent.createElement('textarea', { className: CLS_RTE_SOURCE_CODE_TXTAREA + this.parent.getCssClass(true) });
48
48
  };
49
49
  ViewSource.prototype.wireEvent = function (element) {
50
50
  this.keyboardModule = new KeyboardEvents(element, {
@@ -105,9 +105,10 @@ var ViewSource = /** @class */ (function () {
105
105
  * @param {ClickEventArgs} args - specifies the click event.
106
106
  * @returns {void}
107
107
  * @hidden
108
-
108
+ * @deprecated
109
109
  */
110
110
  ViewSource.prototype.sourceCode = function (args) {
111
+ var _this = this;
111
112
  this.parent.notify(events.hidePopup, {});
112
113
  this.parent.isBlur = false;
113
114
  this.parent.trigger(events.actionBegin, { requestType: 'SourceCode', targetItem: 'SourceCode', args: args });
@@ -134,15 +135,16 @@ var ViewSource = /** @class */ (function () {
134
135
  rteContent.appendChild(this.previewElement);
135
136
  this.parent.element.appendChild(rteContent);
136
137
  rteContent.style.height = this.contentModule.getPanel().style.height;
137
- rteContent.style.marginTop = this.contentModule.getPanel().style.marginTop;
138
138
  this.getPanel().value = this.getTextAreaValue();
139
139
  this.contentModule.getPanel().style.display = 'none';
140
140
  rteContent.style.display = 'block';
141
141
  this.getPanel().style.display = 'block';
142
142
  }
143
143
  else {
144
+ var height = this.parent.inputElement.offsetHeight;
144
145
  this.contentModule.getPanel().appendChild(this.previewElement);
145
146
  this.getPanel().value = this.getTextAreaValue();
147
+ this.previewElement.style.height = height + 'px';
146
148
  this.contentModule.getEditPanel().style.display = 'none';
147
149
  this.previewElement.style.display = 'block';
148
150
  }
@@ -153,17 +155,23 @@ var ViewSource = /** @class */ (function () {
153
155
  removeClass([this.parent.getToolbar()], [CLS_EXPAND_OPEN]);
154
156
  }
155
157
  removeClass(tbItems, [CLS_ACTIVE]);
156
- this.parent.setContentHeight('sourceCode', true);
158
+ var isExpand = this.parent.element.querySelectorAll('.e-toolbar-extended.e-popup-open').length > 0 ? true : false;
159
+ this.parent.setContentHeight('SourceCode', isExpand);
157
160
  this.wireEvent(this.previewElement);
158
161
  this.unWireBaseKeyDown();
159
162
  this.previewElement.focus();
160
163
  this.parent.updateValue();
161
164
  if (!isNullOrUndefined(this.parent.placeholder) && !this.parent.iframeSettings.enable) {
162
165
  var placeHolderWrapper = this.parent.element.querySelector('.rte-placeholder.e-rte-placeholder');
163
- placeHolderWrapper.style.display = 'none';
166
+ if (placeHolderWrapper) {
167
+ placeHolderWrapper.style.display = 'none';
168
+ }
164
169
  }
165
170
  this.parent.trigger(events.actionComplete, { requestType: 'SourceCode', targetItem: 'SourceCode', args: args });
166
171
  this.parent.invokeChangeEvent();
172
+ if (!isNullOrUndefined(this.parent.saveInterval) && this.parent.saveInterval > 0 && this.parent.autoSaveOnIdle) {
173
+ this.codeViewTimeInterval = setInterval(function () { _this.parent.notify(events.updateValueOnIdle, {}); }, this.parent.saveInterval);
174
+ }
167
175
  };
168
176
  /**
169
177
  * updateSourceCode method
@@ -171,7 +179,7 @@ var ViewSource = /** @class */ (function () {
171
179
  * @param {ClickEventArgs} args - specifies the click event.
172
180
  * @returns {void}
173
181
  * @hidden
174
-
182
+ * @deprecated
175
183
  */
176
184
  ViewSource.prototype.updateSourceCode = function (args) {
177
185
  this.parent.isBlur = false;
@@ -213,7 +221,8 @@ var ViewSource = /** @class */ (function () {
213
221
  if (this.parent.getToolbar()) {
214
222
  removeClass([this.parent.getToolbar()], [CLS_EXPAND_OPEN]);
215
223
  }
216
- this.parent.setContentHeight('preview', true);
224
+ var isExpand = this.parent.element.querySelectorAll('.e-toolbar-extended.e-popup-open').length > 0 ? true : false;
225
+ this.parent.setContentHeight('Preview', isExpand);
217
226
  this.unWireEvent();
218
227
  this.wireBaseKeyDown();
219
228
  this.contentModule.getEditPanel().focus();
@@ -225,6 +234,7 @@ var ViewSource = /** @class */ (function () {
225
234
  this.parent.trigger(events.actionComplete, { requestType: 'Preview', targetItem: 'Preview', args: args });
226
235
  this.parent.formatter.enableUndo(this.parent);
227
236
  this.parent.addAudioVideoWrapper();
237
+ clearTimeout(this.codeViewTimeInterval);
228
238
  this.parent.invokeChangeEvent();
229
239
  this.parent.notify(events.tableclass, {});
230
240
  };
@@ -243,7 +253,7 @@ var ViewSource = /** @class */ (function () {
243
253
  *
244
254
  * @returns {void}
245
255
  * @hidden
246
-
256
+ * @deprecated
247
257
  */
248
258
  ViewSource.prototype.getPanel = function () {
249
259
  return this.parent.element && this.parent.element.querySelector('.e-rte-srctextarea');
@@ -253,7 +263,7 @@ var ViewSource = /** @class */ (function () {
253
263
  *
254
264
  * @returns {void}
255
265
  * @hidden
256
-
266
+ * @deprecated
257
267
  */
258
268
  ViewSource.prototype.getViewPanel = function () {
259
269
  return (this.parent.iframeSettings.enable && this.getPanel()) ? this.getPanel().parentElement : this.getPanel();
@@ -263,7 +273,7 @@ var ViewSource = /** @class */ (function () {
263
273
  *
264
274
  * @returns {void}
265
275
  * @hidden
266
-
276
+ * @deprecated
267
277
  */
268
278
  ViewSource.prototype.destroy = function () {
269
279
  if (isNullOrUndefined(this.parent)) {
@@ -4,7 +4,7 @@ import { RenderType } from '../base/enum';
4
4
  * RendererFactory
5
5
  *
6
6
  * @hidden
7
-
7
+ * @deprecated
8
8
  */
9
9
  export declare class RendererFactory {
10
10
  rendererMap: {
@@ -17,7 +17,7 @@ export declare class RendererFactory {
17
17
  * @param {IRenderer} type - specifies the renderer.
18
18
  * @returns {void}
19
19
  * @hidden
20
-
20
+ * @deprecated
21
21
  */
22
22
  addRenderer(name: RenderType, type: IRenderer): void;
23
23
  /**
@@ -26,7 +26,7 @@ export declare class RendererFactory {
26
26
  * @param {RenderType} name - specifies the render type
27
27
  * @returns {void}
28
28
  * @hidden
29
-
29
+ * @deprecated
30
30
  */
31
31
  getRenderer(name: RenderType): IRenderer;
32
32
  }
@@ -4,7 +4,7 @@ import { RenderType } from '../base/enum';
4
4
  * RendererFactory
5
5
  *
6
6
  * @hidden
7
-
7
+ * @deprecated
8
8
  */
9
9
  var RendererFactory = /** @class */ (function () {
10
10
  function RendererFactory() {
@@ -17,7 +17,7 @@ var RendererFactory = /** @class */ (function () {
17
17
  * @param {IRenderer} type - specifies the renderer.
18
18
  * @returns {void}
19
19
  * @hidden
20
-
20
+ * @deprecated
21
21
  */
22
22
  RendererFactory.prototype.addRenderer = function (name, type) {
23
23
  var rName = getEnumValue(RenderType, name);
@@ -31,7 +31,7 @@ var RendererFactory = /** @class */ (function () {
31
31
  * @param {RenderType} name - specifies the render type
32
32
  * @returns {void}
33
33
  * @hidden
34
-
34
+ * @deprecated
35
35
  */
36
36
  RendererFactory.prototype.getRenderer = function (name) {
37
37
  var rName = getEnumValue(RenderType, name);
@@ -2,7 +2,7 @@
2
2
  * ServiceLocator
3
3
  *
4
4
  * @hidden
5
-
5
+ * @deprecated
6
6
  */
7
7
  export declare class ServiceLocator {
8
8
  private services;
@@ -13,7 +13,7 @@ export declare class ServiceLocator {
13
13
  * @param {T} type - specifies the type.
14
14
  * @returns {void}
15
15
  * @hidden
16
-
16
+ * @deprecated
17
17
  */
18
18
  register<T>(name: string, type: T): void;
19
19
  /**
@@ -22,7 +22,7 @@ export declare class ServiceLocator {
22
22
  * @param {string} name - specifies the name.
23
23
  * @returns {void}
24
24
  * @hidden
25
-
25
+ * @deprecated
26
26
  */
27
27
  getService<T>(name: string): T;
28
28
  }
@@ -3,7 +3,7 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';
3
3
  * ServiceLocator
4
4
  *
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  var ServiceLocator = /** @class */ (function () {
9
9
  function ServiceLocator() {
@@ -17,7 +17,7 @@ var ServiceLocator = /** @class */ (function () {
17
17
  * @param {T} type - specifies the type.
18
18
  * @returns {void}
19
19
  * @hidden
20
-
20
+ * @deprecated
21
21
  */
22
22
  /* eslint-enable */
23
23
  ServiceLocator.prototype.register = function (name, type) {
@@ -31,7 +31,7 @@ var ServiceLocator = /** @class */ (function () {
31
31
  * @param {string} name - specifies the name.
32
32
  * @returns {void}
33
33
  * @hidden
34
-
34
+ * @deprecated
35
35
  */
36
36
  ServiceLocator.prototype.getService = function (name) {
37
37
  if (isNullOrUndefined(this.services["" + name])) {