@taiga-ui/core 3.23.1 → 3.24.0

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 (196) hide show
  1. package/bundles/taiga-ui-core-components-alert.umd.js +6 -6
  2. package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
  3. package/bundles/taiga-ui-core-components-button.umd.js +4 -4
  4. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  5. package/bundles/taiga-ui-core-components-data-list.umd.js +7 -7
  6. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  7. package/bundles/taiga-ui-core-components-dialog.umd.js +18 -11
  8. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-expand.umd.js +3 -3
  10. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +5 -5
  12. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  13. package/bundles/taiga-ui-core-components-link.umd.js +4 -4
  14. package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
  15. package/bundles/taiga-ui-core-components-loader.umd.js +6 -6
  16. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-notification.umd.js +8 -2
  18. package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
  19. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +8 -8
  20. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  21. package/bundles/taiga-ui-core-components-root.umd.js +3 -11
  22. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  23. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +14 -14
  24. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  25. package/bundles/taiga-ui-core-components-scrollbar.umd.js +7 -7
  26. package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
  27. package/bundles/taiga-ui-core-components-svg.umd.js +10 -13
  28. package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
  29. package/bundles/taiga-ui-core-directives-dropdown.umd.js +26 -30
  30. package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
  31. package/bundles/taiga-ui-core-directives-hint.umd.js +17 -19
  32. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  33. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js +4 -4
  34. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
  35. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +2 -2
  36. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  37. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +3 -3
  38. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +1 -1
  39. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js +4 -4
  40. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +1 -1
  41. package/bundles/taiga-ui-core-pipes-format-phone.umd.js +2 -1
  42. package/bundles/taiga-ui-core-pipes-format-phone.umd.js.map +1 -1
  43. package/bundles/taiga-ui-core-providers.umd.js +2 -2
  44. package/bundles/taiga-ui-core-providers.umd.js.map +1 -1
  45. package/bundles/taiga-ui-core-services.umd.js +11 -10
  46. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  47. package/bundles/taiga-ui-core-tokens.umd.js +13 -9
  48. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  49. package/bundles/taiga-ui-core-utils-dom.umd.js +2 -2
  50. package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
  51. package/bundles/taiga-ui-core-utils-mask.umd.js +8 -9
  52. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  53. package/bundles/taiga-ui-core-utils-mobile.umd.js +2 -2
  54. package/bundles/taiga-ui-core-utils-mobile.umd.js.map +1 -1
  55. package/components/alert/alert.component.d.ts +2 -2
  56. package/components/alert/alert.service.d.ts +1 -1
  57. package/components/button/button.component.d.ts +2 -2
  58. package/components/data-list/data-list.component.d.ts +2 -2
  59. package/components/data-list/option/option.component.d.ts +2 -2
  60. package/components/dialog/dialog-close.service.d.ts +4 -4
  61. package/components/dialog/dialog.component.d.ts +1 -0
  62. package/components/dialog/dialog.service.d.ts +1 -1
  63. package/components/expand/expand.component.d.ts +2 -2
  64. package/components/hosted-dropdown/hosted-dropdown.component.d.ts +2 -2
  65. package/components/link/link.component.d.ts +2 -2
  66. package/components/loader/loader.component.d.ts +3 -3
  67. package/components/notification/notification.component.d.ts +2 -1
  68. package/components/primitive-textfield/primitive-textfield.component.d.ts +2 -2
  69. package/components/primitive-textfield/textfield/textfield.component.d.ts +2 -2
  70. package/components/root/root.component.d.ts +1 -3
  71. package/components/scroll-controls/scroll-controls.component.d.ts +2 -2
  72. package/components/scroll-controls/scrollbar.directive.d.ts +4 -4
  73. package/components/scrollbar/scrollable.directive.d.ts +2 -2
  74. package/components/scrollbar/scrollbar.component.d.ts +2 -2
  75. package/components/svg/svg.component.d.ts +4 -4
  76. package/directives/dropdown/dropdown-selection.directive.d.ts +4 -4
  77. package/directives/dropdown/dropdown.component.d.ts +3 -3
  78. package/directives/dropdown/dropdown.directive.d.ts +3 -3
  79. package/directives/hint/hint-describe.directive.d.ts +3 -3
  80. package/directives/hint/hint-hover.directive.d.ts +2 -2
  81. package/directives/hint/hint.component.d.ts +2 -2
  82. package/directives/hint/hint.directive.d.ts +3 -3
  83. package/directives/scroll-into-view/scroll-into-view.directive.d.ts +2 -2
  84. package/esm2015/components/alert/alert.component.js +7 -7
  85. package/esm2015/components/button/button.component.js +5 -5
  86. package/esm2015/components/data-list/data-list.component.js +5 -5
  87. package/esm2015/components/data-list/option/option.component.js +4 -4
  88. package/esm2015/components/dialog/dialog-close.service.js +10 -10
  89. package/esm2015/components/dialog/dialog.component.js +6 -3
  90. package/esm2015/components/expand/expand.component.js +4 -4
  91. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +6 -6
  92. package/esm2015/components/link/link.component.js +5 -5
  93. package/esm2015/components/loader/loader.component.js +7 -7
  94. package/esm2015/components/notification/notification.component.js +9 -3
  95. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +4 -4
  96. package/esm2015/components/primitive-textfield/textfield/textfield.component.js +6 -6
  97. package/esm2015/components/root/root.component.js +7 -15
  98. package/esm2015/components/scroll-controls/scroll-controls.component.js +5 -5
  99. package/esm2015/components/scroll-controls/scrollbar.directive.js +11 -11
  100. package/esm2015/components/scrollbar/scrollable.directive.js +5 -5
  101. package/esm2015/components/scrollbar/scrollbar.component.js +4 -4
  102. package/esm2015/components/svg/svg.component.js +11 -14
  103. package/esm2015/directives/dropdown/dropdown-selection.directive.js +15 -17
  104. package/esm2015/directives/dropdown/dropdown.component.js +9 -9
  105. package/esm2015/directives/dropdown/dropdown.directive.js +5 -7
  106. package/esm2015/directives/hint/hint-describe.directive.js +7 -8
  107. package/esm2015/directives/hint/hint-hover.directive.js +3 -3
  108. package/esm2015/directives/hint/hint.component.js +7 -8
  109. package/esm2015/directives/hint/hint.directive.js +4 -4
  110. package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +5 -5
  111. package/esm2015/directives/textfield-controller/textfield-controller.provider.js +3 -3
  112. package/esm2015/interfaces/data-list-host.js +1 -1
  113. package/esm2015/interfaces/portal-item.js +1 -1
  114. package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +4 -4
  115. package/esm2015/pipes/calendar-sheet/utils.js +5 -5
  116. package/esm2015/pipes/format-phone/format-phone.pipe.js +3 -2
  117. package/esm2015/providers/watched-controller-provider-factory.js +3 -3
  118. package/esm2015/services/breakpoint.service.js +5 -5
  119. package/esm2015/services/night-theme.service.js +3 -3
  120. package/esm2015/services/router-link-active.service.js +2 -1
  121. package/esm2015/services/svg.service.js +2 -2
  122. package/esm2015/services/visual-viewport.service.js +5 -5
  123. package/esm2015/tokens/assert-enabled.js +5 -1
  124. package/esm2015/tokens/is-mobile-resolution.js +3 -3
  125. package/esm2015/tokens/selection-stream.js +3 -3
  126. package/esm2015/tokens/viewport.js +6 -6
  127. package/esm2015/utils/dom/get-screen-width.js +3 -3
  128. package/esm2015/utils/mask/create-auto-corrected-money-pipe.js +3 -4
  129. package/esm2015/utils/mask/create-correction-mask.js +3 -2
  130. package/esm2015/utils/mask/create-number-mask.js +5 -6
  131. package/esm2015/utils/mobile/is-mobile.js +3 -3
  132. package/fesm2015/taiga-ui-core-components-alert.js +6 -6
  133. package/fesm2015/taiga-ui-core-components-alert.js.map +1 -1
  134. package/fesm2015/taiga-ui-core-components-button.js +4 -4
  135. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  136. package/fesm2015/taiga-ui-core-components-data-list.js +7 -7
  137. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  138. package/fesm2015/taiga-ui-core-components-dialog.js +14 -11
  139. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  140. package/fesm2015/taiga-ui-core-components-expand.js +3 -3
  141. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  142. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +5 -5
  143. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  144. package/fesm2015/taiga-ui-core-components-link.js +4 -4
  145. package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
  146. package/fesm2015/taiga-ui-core-components-loader.js +6 -6
  147. package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
  148. package/fesm2015/taiga-ui-core-components-notification.js +8 -2
  149. package/fesm2015/taiga-ui-core-components-notification.js.map +1 -1
  150. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +8 -8
  151. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  152. package/fesm2015/taiga-ui-core-components-root.js +6 -14
  153. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  154. package/fesm2015/taiga-ui-core-components-scroll-controls.js +14 -14
  155. package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
  156. package/fesm2015/taiga-ui-core-components-scrollbar.js +7 -7
  157. package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
  158. package/fesm2015/taiga-ui-core-components-svg.js +10 -13
  159. package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
  160. package/fesm2015/taiga-ui-core-directives-dropdown.js +26 -30
  161. package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
  162. package/fesm2015/taiga-ui-core-directives-hint.js +17 -19
  163. package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
  164. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js +4 -4
  165. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  166. package/fesm2015/taiga-ui-core-directives-textfield-controller.js +2 -2
  167. package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  168. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +3 -3
  169. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  170. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js +4 -4
  171. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  172. package/fesm2015/taiga-ui-core-pipes-format-phone.js +2 -1
  173. package/fesm2015/taiga-ui-core-pipes-format-phone.js.map +1 -1
  174. package/fesm2015/taiga-ui-core-providers.js +2 -2
  175. package/fesm2015/taiga-ui-core-providers.js.map +1 -1
  176. package/fesm2015/taiga-ui-core-services.js +12 -11
  177. package/fesm2015/taiga-ui-core-services.js.map +1 -1
  178. package/fesm2015/taiga-ui-core-tokens.js +13 -9
  179. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  180. package/fesm2015/taiga-ui-core-utils-dom.js +2 -2
  181. package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
  182. package/fesm2015/taiga-ui-core-utils-mask.js +8 -9
  183. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  184. package/fesm2015/taiga-ui-core-utils-mobile.js +2 -2
  185. package/fesm2015/taiga-ui-core-utils-mobile.js.map +1 -1
  186. package/interfaces/data-list-host.d.ts +2 -1
  187. package/interfaces/portal-item.d.ts +1 -1
  188. package/internal/svg-defs-host/svg-defs-host.component.d.ts +2 -2
  189. package/package.json +4 -4
  190. package/providers/watched-controller-provider-factory.d.ts +1 -1
  191. package/services/breakpoint.service.d.ts +1 -1
  192. package/services/night-theme.service.d.ts +1 -1
  193. package/services/visual-viewport.service.d.ts +2 -2
  194. package/tokens/assert-enabled.d.ts +4 -0
  195. package/utils/dom/get-screen-width.d.ts +1 -1
  196. package/utils/mobile/is-mobile.d.ts +1 -1
@@ -357,8 +357,8 @@
357
357
  });
358
358
 
359
359
  var TuiDropdownDirective = /** @class */ (function () {
360
- function TuiDropdownDirective(elementRef, hapica, injector, dropdownService) {
361
- this.elementRef = elementRef;
360
+ function TuiDropdownDirective(el, hapica, injector, dropdownService) {
361
+ this.el = el;
362
362
  this.hapica = hapica;
363
363
  this.injector = injector;
364
364
  this.dropdownService = dropdownService;
@@ -369,9 +369,7 @@
369
369
  }
370
370
  Object.defineProperty(TuiDropdownDirective.prototype, "position", {
371
371
  get: function () {
372
- return utils.tuiCheckFixedPosition(this.elementRef.nativeElement)
373
- ? 'fixed'
374
- : 'absolute';
372
+ return utils.tuiCheckFixedPosition(this.el.nativeElement) ? 'fixed' : 'absolute';
375
373
  },
376
374
  enumerable: false,
377
375
  configurable: true
@@ -390,7 +388,7 @@
390
388
  this.toggle(false);
391
389
  };
392
390
  TuiDropdownDirective.prototype.getClientRect = function () {
393
- return this.elementRef.nativeElement.getBoundingClientRect();
391
+ return this.el.nativeElement.getBoundingClientRect();
394
392
  };
395
393
  TuiDropdownDirective.prototype.toggle = function (show) {
396
394
  if (show && this.content && !this.dropdownBoxRef) {
@@ -614,13 +612,13 @@
614
612
  * using default style of white rounded box with a shadow
615
613
  */
616
614
  var TuiDropdownComponent = /** @class */ (function () {
617
- function TuiDropdownComponent(position$, destroy$, directive, elementRef, host, accessor, windowRef, animationOptions, options, hoverDirective, visualViewportService) {
615
+ function TuiDropdownComponent(position$, destroy$, directive, el, host, accessor, win, animationOptions, options, hoverDirective, visualViewportService) {
618
616
  var _this = this;
619
617
  this.directive = directive;
620
- this.elementRef = elementRef;
618
+ this.el = el;
621
619
  this.host = host;
622
620
  this.accessor = accessor;
623
- this.windowRef = windowRef;
621
+ this.win = win;
624
622
  this.animationOptions = animationOptions;
625
623
  this.options = options;
626
624
  this.hoverDirective = hoverDirective;
@@ -650,10 +648,10 @@
650
648
  this.moveFocusOutside(false);
651
649
  };
652
650
  TuiDropdownComponent.prototype.update = function (top, left) {
653
- var style = this.elementRef.nativeElement.style;
654
- var right = this.elementRef.nativeElement.getBoundingClientRect().right;
651
+ var style = this.el.nativeElement.style;
652
+ var right = this.el.nativeElement.getBoundingClientRect().right;
655
653
  var _a = this.options, maxHeight = _a.maxHeight, offset = _a.offset;
656
- var innerHeight = this.windowRef.innerHeight;
654
+ var innerHeight = this.win.innerHeight;
657
655
  var clientRect = this.host.clientRect;
658
656
  var position = this.directive.position;
659
657
  var rect = this.accessor.getClientRect();
@@ -674,7 +672,7 @@
674
672
  this.updateWidth();
675
673
  };
676
674
  TuiDropdownComponent.prototype.updateWidth = function () {
677
- var style = this.elementRef.nativeElement.style;
675
+ var style = this.el.nativeElement.style;
678
676
  var rect = this.accessor.getClientRect();
679
677
  var limitWidth = this.options.limitWidth;
680
678
  switch (limitWidth) {
@@ -689,7 +687,7 @@
689
687
  }
690
688
  };
691
689
  TuiDropdownComponent.prototype.moveFocusOutside = function (previous) {
692
- var nativeElement = this.directive.elementRef.nativeElement;
690
+ var nativeElement = this.directive.el.nativeElement;
693
691
  var ownerDocument = nativeElement.ownerDocument;
694
692
  var root = ownerDocument ? ownerDocument.body : nativeElement;
695
693
  var focusable = i2.tuiGetClosestFocusable({ initial: nativeElement, root: root, previous: previous });
@@ -1067,13 +1065,13 @@
1067
1065
 
1068
1066
  var TuiDropdownSelectionDirective = /** @class */ (function (_super) {
1069
1067
  __extends(TuiDropdownSelectionDirective, _super);
1070
- function TuiDropdownSelectionDirective(range, documentRef, selection$, elementRef, viewContainerRef, dropdown) {
1068
+ function TuiDropdownSelectionDirective(range, doc, selection$, el, vcr, dropdown) {
1071
1069
  var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
1072
1070
  _this.range = range;
1073
- _this.documentRef = documentRef;
1071
+ _this.doc = doc;
1074
1072
  _this.selection$ = selection$;
1075
- _this.elementRef = elementRef;
1076
- _this.viewContainerRef = viewContainerRef;
1073
+ _this.el = el;
1074
+ _this.vcr = vcr;
1077
1075
  _this.dropdown = dropdown;
1078
1076
  _this.handler$ = new i1$1.BehaviorSubject(i2.ALWAYS_TRUE_HANDLER);
1079
1077
  _this.stream$ = i1$1.combineLatest([
@@ -1081,7 +1079,7 @@
1081
1079
  _this.selection$.pipe(operators.map(function () { return _this.getRange(); }), operators.distinctUntilChanged()),
1082
1080
  ]).pipe(operators.map(function (_b) {
1083
1081
  var _c = __read(_b, 2), handler = _c[0], range = _c[1];
1084
- var contained = _this.elementRef.nativeElement.contains(range.commonAncestorContainer);
1082
+ var contained = _this.el.nativeElement.contains(range.commonAncestorContainer);
1085
1083
  _this.range =
1086
1084
  contained && i2.tuiIsTextNode(range.commonAncestorContainer)
1087
1085
  ? range
@@ -1120,14 +1118,13 @@
1120
1118
  };
1121
1119
  TuiDropdownSelectionDirective.prototype.ngOnDestroy = function () {
1122
1120
  if (this.ghost) {
1123
- this.viewContainerRef.element.nativeElement.removeChild(this.ghost);
1121
+ this.vcr.element.nativeElement.removeChild(this.ghost);
1124
1122
  }
1125
1123
  };
1126
1124
  TuiDropdownSelectionDirective.prototype.getRange = function () {
1127
- var nativeElement = this.elementRef.nativeElement;
1128
- var active = i2.tuiGetNativeFocused(this.documentRef);
1129
- var selection = this.documentRef.getSelection();
1130
- if (active && i2.tuiIsTextfield(active) && nativeElement.contains(active)) {
1125
+ var active = i2.tuiGetNativeFocused(this.doc);
1126
+ var selection = this.doc.getSelection();
1127
+ if (active && i2.tuiIsTextfield(active) && this.el.nativeElement.contains(active)) {
1131
1128
  return this.veryVerySadInputFix(active);
1132
1129
  }
1133
1130
  return (selection === null || selection === void 0 ? void 0 : selection.rangeCount) ? selection.getRangeAt(0) : this.range;
@@ -1144,7 +1141,7 @@
1144
1141
  */
1145
1142
  TuiDropdownSelectionDirective.prototype.inDropdown = function (range) {
1146
1143
  var startContainer = range.startContainer, endContainer = range.endContainer;
1147
- var nativeElement = this.elementRef.nativeElement;
1144
+ var nativeElement = this.el.nativeElement;
1148
1145
  var inDropdown = this.boxContains(range.commonAncestorContainer);
1149
1146
  var hostToDropdown = this.boxContains(endContainer) && nativeElement.contains(startContainer);
1150
1147
  var dropdownToHost = this.boxContains(startContainer) && nativeElement.contains(endContainer);
@@ -1154,8 +1151,8 @@
1154
1151
  var _b = this.ghost, ghost = _b === void 0 ? this.initGhost(element) : _b;
1155
1152
  var _c = element.getBoundingClientRect(), top = _c.top, left = _c.left, width = _c.width, height = _c.height;
1156
1153
  var selectionStart = element.selectionStart, selectionEnd = element.selectionEnd, value = element.value;
1157
- var range = this.documentRef.createRange();
1158
- var hostRect = this.elementRef.nativeElement.getBoundingClientRect();
1154
+ var range = this.doc.createRange();
1155
+ var hostRect = this.el.nativeElement.getBoundingClientRect();
1159
1156
  ghost.style.top = i2.tuiPx(top - hostRect.top);
1160
1157
  ghost.style.left = i2.tuiPx(left - hostRect.left);
1161
1158
  ghost.style.width = i2.tuiPx(width);
@@ -1169,8 +1166,7 @@
1169
1166
  * Create an invisible DIV styled exactly like input/textarea element inside directive
1170
1167
  */
1171
1168
  TuiDropdownSelectionDirective.prototype.initGhost = function (element) {
1172
- var ghost = this.documentRef.createElement('div');
1173
- var nativeElement = this.viewContainerRef.element.nativeElement;
1169
+ var ghost = this.doc.createElement('div');
1174
1170
  var _b = getComputedStyle(element), font = _b.font, letterSpacing = _b.letterSpacing, textTransform = _b.textTransform, padding = _b.padding;
1175
1171
  ghost.style.position = 'absolute';
1176
1172
  ghost.style.pointerEvents = 'none';
@@ -1180,7 +1176,7 @@
1180
1176
  ghost.style.letterSpacing = letterSpacing;
1181
1177
  ghost.style.textTransform = textTransform;
1182
1178
  ghost.style.padding = padding;
1183
- nativeElement.appendChild(ghost);
1179
+ this.vcr.element.nativeElement.appendChild(ghost);
1184
1180
  this.ghost = ghost;
1185
1181
  return ghost;
1186
1182
  };