@taiga-ui/core 3.17.0-dev.main-ab1c8d2 → 3.17.0-dev.main-6ec5de0
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-abstract.umd.js +1 -0
- package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-dropdown.umd.js +21 -21
- package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-hint.umd.js +56 -55
- package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
- package/bundles/taiga-ui-core-tokens.umd.js +26 -0
- package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
- package/directives/dropdown/dropdown-position-sided.directive.d.ts +2 -2
- package/directives/dropdown/dropdown-position.directive.d.ts +2 -2
- package/directives/hint/hint-position.directive.d.ts +2 -2
- package/esm2015/abstract/rect-accessor.js +2 -1
- package/esm2015/directives/dropdown/dropdown-position-sided.directive.js +12 -12
- package/esm2015/directives/dropdown/dropdown-position.directive.js +11 -11
- package/esm2015/directives/hint/hint-position.directive.js +12 -11
- package/esm2015/tokens/index.js +2 -1
- package/esm2015/tokens/viewport.js +26 -0
- package/fesm2015/taiga-ui-core-abstract.js +1 -0
- package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-dropdown.js +20 -20
- package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-hint.js +16 -16
- package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
- package/fesm2015/taiga-ui-core-tokens.js +25 -1
- package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
- package/package.json +1 -1
- package/tokens/index.d.ts +1 -0
- package/tokens/viewport.d.ts +4 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core/abstract'), require('@taiga-ui/core/animations'), require('@taiga-ui/core/directives/mode'), require('@taiga-ui/core/services'), require('@taiga-ui/core/tokens'), require('@tinkoff/ng-polymorpheus'), require('rxjs/operators'), require('rxjs'), require('@taiga-ui/core/utils'), require('@angular/common'), require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/core/directives/hint', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core/abstract', '@taiga-ui/core/animations', '@taiga-ui/core/directives/mode', '@taiga-ui/core/services', '@taiga-ui/core/tokens', '@tinkoff/ng-polymorpheus', 'rxjs/operators', 'rxjs', '@taiga-ui/core/utils', '@angular/common', '@
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.directives = global["taiga-ui"].core.directives || {}, global["taiga-ui"].core.directives.hint = {}), global.ng.core, global.i3, global["taiga-ui"].core.abstract, global["taiga-ui"].core.animations, global["taiga-ui"].core.directives.mode, global["taiga-ui"].core.services, global["taiga-ui"].core.tokens, global.i1, global.rxjs.operators, global.rxjs, global["taiga-ui"].core.utils, global.ng.common, global
|
|
5
|
-
})(this, (function (exports, i0, i3,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core/abstract'), require('@taiga-ui/core/animations'), require('@taiga-ui/core/directives/mode'), require('@taiga-ui/core/services'), require('@taiga-ui/core/tokens'), require('@tinkoff/ng-polymorpheus'), require('rxjs/operators'), require('rxjs'), require('@taiga-ui/core/utils'), require('@angular/common'), require('@taiga-ui/core/constants')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/core/directives/hint', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core/abstract', '@taiga-ui/core/animations', '@taiga-ui/core/directives/mode', '@taiga-ui/core/services', '@taiga-ui/core/tokens', '@tinkoff/ng-polymorpheus', 'rxjs/operators', 'rxjs', '@taiga-ui/core/utils', '@angular/common', '@taiga-ui/core/constants'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.directives = global["taiga-ui"].core.directives || {}, global["taiga-ui"].core.directives.hint = {}), global.ng.core, global.i3, global["taiga-ui"].core.abstract, global["taiga-ui"].core.animations, global["taiga-ui"].core.directives.mode, global["taiga-ui"].core.services, global["taiga-ui"].core.tokens, global.i1$1, global.rxjs.operators, global.rxjs, global["taiga-ui"].core.utils, global.ng.common, global["taiga-ui"].core.constants));
|
|
5
|
+
})(this, (function (exports, i0, i3, i1, animations, i5, i2$1, tokens, i1$1, operators, i2, utils, common, constants) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
-
var i3__namespace
|
|
27
|
-
var
|
|
26
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
27
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1);
|
|
28
28
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
29
29
|
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
30
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
30
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
|
|
31
31
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
32
32
|
|
|
33
33
|
/******************************************************************************
|
|
@@ -464,9 +464,9 @@
|
|
|
464
464
|
this.toggle$.next(visible);
|
|
465
465
|
};
|
|
466
466
|
return TuiHintHoverDirective;
|
|
467
|
-
}(
|
|
467
|
+
}(i1.TuiDriver));
|
|
468
468
|
TuiHintHoverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintHoverDirective, deps: [{ token: i3.TuiHoveredService }, { token: TUI_HINT_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
469
|
-
TuiHintHoverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintHoverDirective, selector: "[tuiHint]:not(ng-container)", inputs: { showDelay: ["tuiHintShowDelay", "showDelay"], hideDelay: ["tuiHintHideDelay", "hideDelay"] }, host: { listeners: { "click": "toggle(true)" } }, providers: [
|
|
469
|
+
TuiHintHoverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintHoverDirective, selector: "[tuiHint]:not(ng-container)", inputs: { showDelay: ["tuiHintShowDelay", "showDelay"], hideDelay: ["tuiHintHideDelay", "hideDelay"] }, host: { listeners: { "click": "toggle(true)" } }, providers: [i1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService], usesInheritance: true, ngImport: i0__namespace });
|
|
470
470
|
__decorate([
|
|
471
471
|
i3.tuiDefaultProp()
|
|
472
472
|
], TuiHintHoverDirective.prototype, "showDelay", void 0);
|
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
type: i0.Directive,
|
|
478
478
|
args: [{
|
|
479
479
|
selector: '[tuiHint]:not(ng-container)',
|
|
480
|
-
providers: [
|
|
480
|
+
providers: [i1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService],
|
|
481
481
|
}]
|
|
482
482
|
}], ctorParameters: function () {
|
|
483
483
|
return [{ type: i2__namespace.Observable, decorators: [{
|
|
@@ -516,16 +516,16 @@
|
|
|
516
516
|
}(TuiHintHoverDirective));
|
|
517
517
|
TuiHintPointerDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintPointerDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
518
518
|
TuiHintPointerDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintPointerDirective, selector: "[tuiHint][tuiHintPointer]", host: { listeners: { "mousemove.silent": "onMove($event)" } }, providers: [
|
|
519
|
-
|
|
520
|
-
|
|
519
|
+
i1.tuiAsRectAccessor(TuiHintPointerDirective),
|
|
520
|
+
i1.tuiAsDriver(TuiHintPointerDirective),
|
|
521
521
|
], usesInheritance: true, ngImport: i0__namespace });
|
|
522
522
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintPointerDirective, decorators: [{
|
|
523
523
|
type: i0.Directive,
|
|
524
524
|
args: [{
|
|
525
525
|
selector: '[tuiHint][tuiHintPointer]',
|
|
526
526
|
providers: [
|
|
527
|
-
|
|
528
|
-
|
|
527
|
+
i1.tuiAsRectAccessor(TuiHintPointerDirective),
|
|
528
|
+
i1.tuiAsDriver(TuiHintPointerDirective),
|
|
529
529
|
],
|
|
530
530
|
}]
|
|
531
531
|
}], propDecorators: { onMove: [{
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
};
|
|
588
588
|
return TuiHintComponent;
|
|
589
589
|
}());
|
|
590
|
-
TuiHintComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintComponent, deps: [{ token: i3.TuiHoveredService }, { token: i2$1.TuiPositionService }, { token: i3.TuiDestroyService, self: true }, { token:
|
|
590
|
+
TuiHintComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintComponent, deps: [{ token: i3.TuiHoveredService }, { token: i2$1.TuiPositionService }, { token: i3.TuiDestroyService, self: true }, { token: i1.TuiRectAccessor }, { token: i0.ElementRef }, { token: tokens.TUI_ANIMATION_OPTIONS }, { token: i1$1.POLYMORPHEUS_CONTEXT }, { token: TuiHintHoverDirective }, { token: TuiHintPointerDirective, optional: true }, { token: i5.TuiModeDirective, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
591
591
|
TuiHintComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintComponent, selector: "tui-hint", host: { listeners: { "document:click": "onClick($event.target)" }, properties: { "@tuiFadeIn": "this.animation", "attr.data-appearance": "this.appearance", "class._untouchable": "this.untouchable" } }, providers: [i3.TuiDestroyService, i2$1.TuiPositionService, i3.TuiHoveredService], ngImport: i0__namespace, template: "\n <ng-container *polymorpheusOutlet=\"content as text; context: context\">\n {{ text }}\n </ng-container>\n ", isInline: true, styles: [":host{position:absolute;max-width:18rem;min-height:var(--tui-height-m);padding:.75rem 1rem;background:var(--tui-primary);border-radius:var(--tui-radius-l);color:var(--tui-primary-text);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;word-wrap:break-word}:host:before{content:\"\";position:absolute;top:var(--top);left:var(--left);width:.5rem;height:.5rem;border-radius:.125rem;box-sizing:border-box;background:inherit;transform:translate(-50%,-50%) rotate(45deg)}:host[data-appearance=error]{background:var(--tui-error-fill)}:host[data-appearance=onDark]{background:var(--tui-elevation-01);color:var(--tui-text-01);filter:drop-shadow(0 0 .125rem rgba(0,0,0,.16)) drop-shadow(0 1.5rem 1rem rgba(0,0,0,.03)) drop-shadow(0 .75rem .75rem rgba(0,0,0,.04)) drop-shadow(0 .25rem .375rem rgba(0,0,0,.05))}:host:not([style*=\"top\"]){visibility:hidden}:host._untouchable{pointer-events:none}\n"], directives: [{ type: i1__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], animations: [animations.tuiFadeIn], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
592
592
|
__decorate([
|
|
593
593
|
i3.tuiPure
|
|
@@ -614,9 +614,9 @@
|
|
|
614
614
|
}, {
|
|
615
615
|
type: i0.Inject,
|
|
616
616
|
args: [i3.TuiDestroyService]
|
|
617
|
-
}] }, { type:
|
|
617
|
+
}] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
|
|
618
618
|
type: i0.Inject,
|
|
619
|
-
args: [
|
|
619
|
+
args: [i1.TuiRectAccessor]
|
|
620
620
|
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
621
621
|
type: i0.Inject,
|
|
622
622
|
args: [i0.ElementRef]
|
|
@@ -625,7 +625,7 @@
|
|
|
625
625
|
args: [tokens.TUI_ANIMATION_OPTIONS]
|
|
626
626
|
}] }, { type: undefined, decorators: [{
|
|
627
627
|
type: i0.Inject,
|
|
628
|
-
args: [i1.POLYMORPHEUS_CONTEXT]
|
|
628
|
+
args: [i1$1.POLYMORPHEUS_CONTEXT]
|
|
629
629
|
}] }, { type: TuiHintHoverDirective, decorators: [{
|
|
630
630
|
type: i0.Inject,
|
|
631
631
|
args: [TuiHintHoverDirective]
|
|
@@ -697,14 +697,14 @@
|
|
|
697
697
|
};
|
|
698
698
|
return TuiHintDirective;
|
|
699
699
|
}());
|
|
700
|
-
TuiHintDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintDirective, deps: [{ token: i0.ElementRef }, { token: i1.PolymorpheusComponent }, { token: i2$1.TuiHintService }, { token: TUI_HINT_OPTIONS }, { token: i3.TuiActiveZoneDirective, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
700
|
+
TuiHintDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintDirective, deps: [{ token: i0.ElementRef }, { token: i1$1.PolymorpheusComponent }, { token: i2$1.TuiHintService }, { token: TUI_HINT_OPTIONS }, { token: i3.TuiActiveZoneDirective, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
701
701
|
TuiHintDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintDirective, selector: "[tuiHint]:not(ng-container)", inputs: { content: ["tuiHint", "content"], context: ["tuiHintContext", "context"], tuiHintAppearance: "tuiHintAppearance" }, providers: [
|
|
702
|
-
|
|
703
|
-
|
|
702
|
+
i1.tuiAsRectAccessor(TuiHintDirective),
|
|
703
|
+
i1.tuiAsVehicle(TuiHintDirective),
|
|
704
704
|
{
|
|
705
|
-
provide: i1.PolymorpheusComponent,
|
|
705
|
+
provide: i1$1.PolymorpheusComponent,
|
|
706
706
|
deps: [TUI_HINT_COMPONENT, i0.INJECTOR],
|
|
707
|
-
useClass: i1.PolymorpheusComponent,
|
|
707
|
+
useClass: i1$1.PolymorpheusComponent,
|
|
708
708
|
},
|
|
709
709
|
], usesOnChanges: true, ngImport: i0__namespace });
|
|
710
710
|
__decorate([
|
|
@@ -718,12 +718,12 @@
|
|
|
718
718
|
args: [{
|
|
719
719
|
selector: '[tuiHint]:not(ng-container)',
|
|
720
720
|
providers: [
|
|
721
|
-
|
|
722
|
-
|
|
721
|
+
i1.tuiAsRectAccessor(TuiHintDirective),
|
|
722
|
+
i1.tuiAsVehicle(TuiHintDirective),
|
|
723
723
|
{
|
|
724
|
-
provide: i1.PolymorpheusComponent,
|
|
724
|
+
provide: i1$1.PolymorpheusComponent,
|
|
725
725
|
deps: [TUI_HINT_COMPONENT, i0.INJECTOR],
|
|
726
|
-
useClass: i1.PolymorpheusComponent,
|
|
726
|
+
useClass: i1$1.PolymorpheusComponent,
|
|
727
727
|
},
|
|
728
728
|
],
|
|
729
729
|
}]
|
|
@@ -733,14 +733,14 @@
|
|
|
733
733
|
args: [i0.ElementRef]
|
|
734
734
|
}] }, { type: i1__namespace.PolymorpheusComponent, decorators: [{
|
|
735
735
|
type: i0.Inject,
|
|
736
|
-
args: [i1.PolymorpheusComponent]
|
|
736
|
+
args: [i1$1.PolymorpheusComponent]
|
|
737
737
|
}] }, { type: i2__namespace$1.TuiHintService, decorators: [{
|
|
738
738
|
type: i0.Inject,
|
|
739
739
|
args: [i2$1.TuiHintService]
|
|
740
740
|
}] }, { type: undefined, decorators: [{
|
|
741
741
|
type: i0.Inject,
|
|
742
742
|
args: [TUI_HINT_OPTIONS]
|
|
743
|
-
}] }, { type: i3__namespace
|
|
743
|
+
}] }, { type: i3__namespace.TuiActiveZoneDirective, decorators: [{
|
|
744
744
|
type: i0.Optional
|
|
745
745
|
}, {
|
|
746
746
|
type: i0.Inject,
|
|
@@ -789,9 +789,9 @@
|
|
|
789
789
|
configurable: true
|
|
790
790
|
});
|
|
791
791
|
return TuiHintDescribeDirective;
|
|
792
|
-
}(
|
|
792
|
+
}(i1.TuiDriver));
|
|
793
793
|
TuiHintDescribeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintDescribeDirective, deps: [{ token: i0.NgZone }, { token: TuiHintHoverDirective }, { token: common.DOCUMENT }, { token: i0.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
794
|
-
TuiHintDescribeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintDescribeDirective, selector: "[tuiHintDescribe]", inputs: { tuiHintDescribe: "tuiHintDescribe" }, providers: [
|
|
794
|
+
TuiHintDescribeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintDescribeDirective, selector: "[tuiHintDescribe]", inputs: { tuiHintDescribe: "tuiHintDescribe" }, providers: [i1.tuiAsDriver(TuiHintDescribeDirective)], usesInheritance: true, ngImport: i0__namespace });
|
|
795
795
|
__decorate([
|
|
796
796
|
i3.tuiPure
|
|
797
797
|
], TuiHintDescribeDirective.prototype, "element", null);
|
|
@@ -799,7 +799,7 @@
|
|
|
799
799
|
type: i0.Directive,
|
|
800
800
|
args: [{
|
|
801
801
|
selector: '[tuiHintDescribe]',
|
|
802
|
-
providers: [
|
|
802
|
+
providers: [i1.tuiAsDriver(TuiHintDescribeDirective)],
|
|
803
803
|
}]
|
|
804
804
|
}], ctorParameters: function () {
|
|
805
805
|
return [{ type: i0__namespace.NgZone, decorators: [{
|
|
@@ -825,7 +825,7 @@
|
|
|
825
825
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
826
826
|
}
|
|
827
827
|
return TuiHintDriverDirective;
|
|
828
|
-
}(
|
|
828
|
+
}(i1.AbstractTuiDriverDirective));
|
|
829
829
|
TuiHintDriverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintDriverDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
830
830
|
TuiHintDriverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintDriverDirective, selector: "[tuiHint]", providers: [i3.TuiDestroyService], usesInheritance: true, ngImport: i0__namespace });
|
|
831
831
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintDriverDirective, decorators: [{
|
|
@@ -846,14 +846,14 @@
|
|
|
846
846
|
return ((_a = this.tuiHintHost) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) || i3.EMPTY_CLIENT_RECT;
|
|
847
847
|
};
|
|
848
848
|
return TuiHintHostDirective;
|
|
849
|
-
}(
|
|
849
|
+
}(i1.TuiRectAccessor));
|
|
850
850
|
TuiHintHostDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintHostDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
851
|
-
TuiHintHostDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintHostDirective, selector: "[tuiHint][tuiHintHost]", inputs: { tuiHintHost: "tuiHintHost" }, providers: [
|
|
851
|
+
TuiHintHostDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintHostDirective, selector: "[tuiHint][tuiHintHost]", inputs: { tuiHintHost: "tuiHintHost" }, providers: [i1.tuiAsRectAccessor(TuiHintHostDirective)], usesInheritance: true, ngImport: i0__namespace });
|
|
852
852
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintHostDirective, decorators: [{
|
|
853
853
|
type: i0.Directive,
|
|
854
854
|
args: [{
|
|
855
855
|
selector: '[tuiHint][tuiHintHost]',
|
|
856
|
-
providers: [
|
|
856
|
+
providers: [i1.tuiAsRectAccessor(TuiHintHostDirective)],
|
|
857
857
|
}]
|
|
858
858
|
}], propDecorators: { tuiHintHost: [{
|
|
859
859
|
type: i0.Input
|
|
@@ -871,14 +871,14 @@
|
|
|
871
871
|
this.stream$.next(this.tuiHintManual);
|
|
872
872
|
};
|
|
873
873
|
return TuiHintManualDirective;
|
|
874
|
-
}(
|
|
874
|
+
}(i1.TuiDriver));
|
|
875
875
|
TuiHintManualDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintManualDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
876
|
-
TuiHintManualDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintManualDirective, selector: "[tuiHint][tuiHintManual]", inputs: { tuiHintManual: "tuiHintManual" }, providers: [
|
|
876
|
+
TuiHintManualDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintManualDirective, selector: "[tuiHint][tuiHintManual]", inputs: { tuiHintManual: "tuiHintManual" }, providers: [i1.tuiAsDriver(TuiHintManualDirective)], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace });
|
|
877
877
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintManualDirective, decorators: [{
|
|
878
878
|
type: i0.Directive,
|
|
879
879
|
args: [{
|
|
880
880
|
selector: '[tuiHint][tuiHintManual]',
|
|
881
|
-
providers: [
|
|
881
|
+
providers: [i1.tuiAsDriver(TuiHintManualDirective)],
|
|
882
882
|
}]
|
|
883
883
|
}], ctorParameters: function () { return []; }, propDecorators: { tuiHintManual: [{
|
|
884
884
|
type: i0.Input
|
|
@@ -889,9 +889,9 @@
|
|
|
889
889
|
var TOP = 0;
|
|
890
890
|
var LEFT = 1;
|
|
891
891
|
var TuiHintPositionDirective = /** @class */ (function () {
|
|
892
|
-
function TuiHintPositionDirective(options,
|
|
892
|
+
function TuiHintPositionDirective(options, viewport, accessor) {
|
|
893
893
|
this.options = options;
|
|
894
|
-
this.
|
|
894
|
+
this.viewport = viewport;
|
|
895
895
|
this.accessor = accessor;
|
|
896
896
|
this.points = constants.TUI_HINT_DIRECTIONS.reduce(function (acc, direction) {
|
|
897
897
|
var _a;
|
|
@@ -938,7 +938,8 @@
|
|
|
938
938
|
};
|
|
939
939
|
Object.defineProperty(TuiHintPositionDirective.prototype, "fallback", {
|
|
940
940
|
get: function () {
|
|
941
|
-
return this.points.top[TOP] >
|
|
941
|
+
return this.points.top[TOP] >
|
|
942
|
+
this.viewport.getClientRect().bottom - this.points.bottom[TOP]
|
|
942
943
|
? 'top'
|
|
943
944
|
: 'bottom';
|
|
944
945
|
},
|
|
@@ -947,16 +948,16 @@
|
|
|
947
948
|
});
|
|
948
949
|
TuiHintPositionDirective.prototype.checkPosition = function (_a, width, height) {
|
|
949
950
|
var _b = __read(_a, 2), top = _b[0], left = _b[1];
|
|
950
|
-
var
|
|
951
|
+
var viewport = this.viewport.getClientRect();
|
|
951
952
|
return (top > OFFSET &&
|
|
952
953
|
left > OFFSET &&
|
|
953
|
-
top + height <
|
|
954
|
-
left + width <
|
|
954
|
+
top + height < viewport.bottom - OFFSET &&
|
|
955
|
+
left + width < viewport.right - OFFSET);
|
|
955
956
|
};
|
|
956
957
|
return TuiHintPositionDirective;
|
|
957
958
|
}());
|
|
958
|
-
TuiHintPositionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintPositionDirective, deps: [{ token: TUI_HINT_OPTIONS }, { token:
|
|
959
|
-
TuiHintPositionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintPositionDirective, selector: "[tuiHint]:not([tuiHintCustomPosition])", inputs: { direction: ["tuiHintDirection", "direction"] }, providers: [
|
|
959
|
+
TuiHintPositionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintPositionDirective, deps: [{ token: TUI_HINT_OPTIONS }, { token: tokens.TUI_VIEWPORT }, { token: i1.TuiRectAccessor }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
960
|
+
TuiHintPositionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintPositionDirective, selector: "[tuiHint]:not([tuiHintCustomPosition])", inputs: { direction: ["tuiHintDirection", "direction"] }, providers: [i1.tuiAsPositionAccessor(TuiHintPositionDirective)], ngImport: i0__namespace });
|
|
960
961
|
__decorate([
|
|
961
962
|
i3.tuiDefaultProp()
|
|
962
963
|
], TuiHintPositionDirective.prototype, "direction", void 0);
|
|
@@ -964,18 +965,18 @@
|
|
|
964
965
|
type: i0.Directive,
|
|
965
966
|
args: [{
|
|
966
967
|
selector: '[tuiHint]:not([tuiHintCustomPosition])',
|
|
967
|
-
providers: [
|
|
968
|
+
providers: [i1.tuiAsPositionAccessor(TuiHintPositionDirective)],
|
|
968
969
|
}]
|
|
969
970
|
}], ctorParameters: function () {
|
|
970
971
|
return [{ type: undefined, decorators: [{
|
|
971
972
|
type: i0.Inject,
|
|
972
973
|
args: [TUI_HINT_OPTIONS]
|
|
973
|
-
}] }, { type:
|
|
974
|
+
}] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
|
|
974
975
|
type: i0.Inject,
|
|
975
|
-
args: [
|
|
976
|
-
}] }, { type:
|
|
976
|
+
args: [tokens.TUI_VIEWPORT]
|
|
977
|
+
}] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
|
|
977
978
|
type: i0.Inject,
|
|
978
|
-
args: [
|
|
979
|
+
args: [i1.TuiRectAccessor]
|
|
979
980
|
}] }];
|
|
980
981
|
}, propDecorators: { direction: [{
|
|
981
982
|
type: i0.Input,
|
|
@@ -997,7 +998,7 @@
|
|
|
997
998
|
TuiHintPointerDirective,
|
|
998
999
|
TuiHintDescribeDirective,
|
|
999
1000
|
TuiHintPositionDirective,
|
|
1000
|
-
TuiHintOptionsDirective], imports: [common.CommonModule, i1.PolymorpheusModule], exports: [TuiHintComponent,
|
|
1001
|
+
TuiHintOptionsDirective], imports: [common.CommonModule, i1$1.PolymorpheusModule], exports: [TuiHintComponent,
|
|
1001
1002
|
TuiHintDirective,
|
|
1002
1003
|
TuiHintDriverDirective,
|
|
1003
1004
|
TuiHintHostDirective,
|
|
@@ -1007,11 +1008,11 @@
|
|
|
1007
1008
|
TuiHintDescribeDirective,
|
|
1008
1009
|
TuiHintPositionDirective,
|
|
1009
1010
|
TuiHintOptionsDirective] });
|
|
1010
|
-
TuiHintModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintModule, imports: [[common.CommonModule, i1.PolymorpheusModule]] });
|
|
1011
|
+
TuiHintModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintModule, imports: [[common.CommonModule, i1$1.PolymorpheusModule]] });
|
|
1011
1012
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintModule, decorators: [{
|
|
1012
1013
|
type: i0.NgModule,
|
|
1013
1014
|
args: [{
|
|
1014
|
-
imports: [common.CommonModule, i1.PolymorpheusModule],
|
|
1015
|
+
imports: [common.CommonModule, i1$1.PolymorpheusModule],
|
|
1015
1016
|
declarations: [
|
|
1016
1017
|
TuiHintComponent,
|
|
1017
1018
|
TuiHintDirective,
|