@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.
- package/bundles/taiga-ui-core-components-alert.umd.js +6 -6
- package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-button.umd.js +4 -4
- package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-data-list.umd.js +7 -7
- package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-dialog.umd.js +18 -11
- package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-expand.umd.js +3 -3
- package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +5 -5
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-link.umd.js +4 -4
- package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-loader.umd.js +6 -6
- package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-notification.umd.js +8 -2
- package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +8 -8
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-root.umd.js +3 -11
- package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js +14 -14
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-scrollbar.umd.js +7 -7
- package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-svg.umd.js +10 -13
- package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-dropdown.umd.js +26 -30
- package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-hint.umd.js +17 -19
- package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js +4 -4
- package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +2 -2
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
- package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +3 -3
- package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js +4 -4
- package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-format-phone.umd.js +2 -1
- package/bundles/taiga-ui-core-pipes-format-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-core-providers.umd.js +2 -2
- package/bundles/taiga-ui-core-providers.umd.js.map +1 -1
- package/bundles/taiga-ui-core-services.umd.js +11 -10
- package/bundles/taiga-ui-core-services.umd.js.map +1 -1
- package/bundles/taiga-ui-core-tokens.umd.js +13 -9
- package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-dom.umd.js +2 -2
- package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-mask.umd.js +8 -9
- package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-mobile.umd.js +2 -2
- package/bundles/taiga-ui-core-utils-mobile.umd.js.map +1 -1
- package/components/alert/alert.component.d.ts +2 -2
- package/components/alert/alert.service.d.ts +1 -1
- package/components/button/button.component.d.ts +2 -2
- package/components/data-list/data-list.component.d.ts +2 -2
- package/components/data-list/option/option.component.d.ts +2 -2
- package/components/dialog/dialog-close.service.d.ts +4 -4
- package/components/dialog/dialog.component.d.ts +1 -0
- package/components/dialog/dialog.service.d.ts +1 -1
- package/components/expand/expand.component.d.ts +2 -2
- package/components/hosted-dropdown/hosted-dropdown.component.d.ts +2 -2
- package/components/link/link.component.d.ts +2 -2
- package/components/loader/loader.component.d.ts +3 -3
- package/components/notification/notification.component.d.ts +2 -1
- package/components/primitive-textfield/primitive-textfield.component.d.ts +2 -2
- package/components/primitive-textfield/textfield/textfield.component.d.ts +2 -2
- package/components/root/root.component.d.ts +1 -3
- package/components/scroll-controls/scroll-controls.component.d.ts +2 -2
- package/components/scroll-controls/scrollbar.directive.d.ts +4 -4
- package/components/scrollbar/scrollable.directive.d.ts +2 -2
- package/components/scrollbar/scrollbar.component.d.ts +2 -2
- package/components/svg/svg.component.d.ts +4 -4
- package/directives/dropdown/dropdown-selection.directive.d.ts +4 -4
- package/directives/dropdown/dropdown.component.d.ts +3 -3
- package/directives/dropdown/dropdown.directive.d.ts +3 -3
- package/directives/hint/hint-describe.directive.d.ts +3 -3
- package/directives/hint/hint-hover.directive.d.ts +2 -2
- package/directives/hint/hint.component.d.ts +2 -2
- package/directives/hint/hint.directive.d.ts +3 -3
- package/directives/scroll-into-view/scroll-into-view.directive.d.ts +2 -2
- package/esm2015/components/alert/alert.component.js +7 -7
- package/esm2015/components/button/button.component.js +5 -5
- package/esm2015/components/data-list/data-list.component.js +5 -5
- package/esm2015/components/data-list/option/option.component.js +4 -4
- package/esm2015/components/dialog/dialog-close.service.js +10 -10
- package/esm2015/components/dialog/dialog.component.js +6 -3
- package/esm2015/components/expand/expand.component.js +4 -4
- package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +6 -6
- package/esm2015/components/link/link.component.js +5 -5
- package/esm2015/components/loader/loader.component.js +7 -7
- package/esm2015/components/notification/notification.component.js +9 -3
- package/esm2015/components/primitive-textfield/primitive-textfield.component.js +4 -4
- package/esm2015/components/primitive-textfield/textfield/textfield.component.js +6 -6
- package/esm2015/components/root/root.component.js +7 -15
- package/esm2015/components/scroll-controls/scroll-controls.component.js +5 -5
- package/esm2015/components/scroll-controls/scrollbar.directive.js +11 -11
- package/esm2015/components/scrollbar/scrollable.directive.js +5 -5
- package/esm2015/components/scrollbar/scrollbar.component.js +4 -4
- package/esm2015/components/svg/svg.component.js +11 -14
- package/esm2015/directives/dropdown/dropdown-selection.directive.js +15 -17
- package/esm2015/directives/dropdown/dropdown.component.js +9 -9
- package/esm2015/directives/dropdown/dropdown.directive.js +5 -7
- package/esm2015/directives/hint/hint-describe.directive.js +7 -8
- package/esm2015/directives/hint/hint-hover.directive.js +3 -3
- package/esm2015/directives/hint/hint.component.js +7 -8
- package/esm2015/directives/hint/hint.directive.js +4 -4
- package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +5 -5
- package/esm2015/directives/textfield-controller/textfield-controller.provider.js +3 -3
- package/esm2015/interfaces/data-list-host.js +1 -1
- package/esm2015/interfaces/portal-item.js +1 -1
- package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +4 -4
- package/esm2015/pipes/calendar-sheet/utils.js +5 -5
- package/esm2015/pipes/format-phone/format-phone.pipe.js +3 -2
- package/esm2015/providers/watched-controller-provider-factory.js +3 -3
- package/esm2015/services/breakpoint.service.js +5 -5
- package/esm2015/services/night-theme.service.js +3 -3
- package/esm2015/services/router-link-active.service.js +2 -1
- package/esm2015/services/svg.service.js +2 -2
- package/esm2015/services/visual-viewport.service.js +5 -5
- package/esm2015/tokens/assert-enabled.js +5 -1
- package/esm2015/tokens/is-mobile-resolution.js +3 -3
- package/esm2015/tokens/selection-stream.js +3 -3
- package/esm2015/tokens/viewport.js +6 -6
- package/esm2015/utils/dom/get-screen-width.js +3 -3
- package/esm2015/utils/mask/create-auto-corrected-money-pipe.js +3 -4
- package/esm2015/utils/mask/create-correction-mask.js +3 -2
- package/esm2015/utils/mask/create-number-mask.js +5 -6
- package/esm2015/utils/mobile/is-mobile.js +3 -3
- package/fesm2015/taiga-ui-core-components-alert.js +6 -6
- package/fesm2015/taiga-ui-core-components-alert.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-button.js +4 -4
- package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-data-list.js +7 -7
- package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-dialog.js +14 -11
- package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-expand.js +3 -3
- package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +5 -5
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-link.js +4 -4
- package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-loader.js +6 -6
- package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-notification.js +8 -2
- package/fesm2015/taiga-ui-core-components-notification.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js +8 -8
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-root.js +6 -14
- package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-scroll-controls.js +14 -14
- package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-scrollbar.js +7 -7
- package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-svg.js +10 -13
- package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-dropdown.js +26 -30
- package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-hint.js +17 -19
- package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-scroll-into-view.js +4 -4
- package/fesm2015/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js +2 -2
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
- package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +3 -3
- package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
- package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js +4 -4
- package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
- package/fesm2015/taiga-ui-core-pipes-format-phone.js +2 -1
- package/fesm2015/taiga-ui-core-pipes-format-phone.js.map +1 -1
- package/fesm2015/taiga-ui-core-providers.js +2 -2
- package/fesm2015/taiga-ui-core-providers.js.map +1 -1
- package/fesm2015/taiga-ui-core-services.js +12 -11
- package/fesm2015/taiga-ui-core-services.js.map +1 -1
- package/fesm2015/taiga-ui-core-tokens.js +13 -9
- package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-dom.js +2 -2
- package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-mask.js +8 -9
- package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-mobile.js +2 -2
- package/fesm2015/taiga-ui-core-utils-mobile.js.map +1 -1
- package/interfaces/data-list-host.d.ts +2 -1
- package/interfaces/portal-item.d.ts +1 -1
- package/internal/svg-defs-host/svg-defs-host.component.d.ts +2 -2
- package/package.json +4 -4
- package/providers/watched-controller-provider-factory.d.ts +1 -1
- package/services/breakpoint.service.d.ts +1 -1
- package/services/night-theme.service.d.ts +1 -1
- package/services/visual-viewport.service.d.ts +2 -2
- package/tokens/assert-enabled.d.ts +4 -0
- package/utils/dom/get-screen-width.d.ts +1 -1
- 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(
|
|
361
|
-
this.
|
|
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.
|
|
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.
|
|
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,
|
|
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.
|
|
618
|
+
this.el = el;
|
|
621
619
|
this.host = host;
|
|
622
620
|
this.accessor = accessor;
|
|
623
|
-
this.
|
|
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.
|
|
654
|
-
var right = this.
|
|
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.
|
|
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.
|
|
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.
|
|
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,
|
|
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.
|
|
1071
|
+
_this.doc = doc;
|
|
1074
1072
|
_this.selection$ = selection$;
|
|
1075
|
-
_this.
|
|
1076
|
-
_this.
|
|
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.
|
|
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.
|
|
1121
|
+
this.vcr.element.nativeElement.removeChild(this.ghost);
|
|
1124
1122
|
}
|
|
1125
1123
|
};
|
|
1126
1124
|
TuiDropdownSelectionDirective.prototype.getRange = function () {
|
|
1127
|
-
var
|
|
1128
|
-
var
|
|
1129
|
-
|
|
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.
|
|
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.
|
|
1158
|
-
var hostRect = this.
|
|
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.
|
|
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
|
};
|