@taiga-ui/core 3.17.0-dev.main-ab1c8d2 → 3.17.0-dev.main-8616173
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-components-notification.umd.js +2 -2
- package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +1 -1
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-svg.umd.js +105 -21
- package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-tooltip.umd.js +29 -16
- package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-dropdown.umd.js +45 -25
- package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-hint.umd.js +58 -56
- package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
- package/bundles/taiga-ui-core-tokens.umd.js +39 -1
- package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
- package/components/notification/notification.component.d.ts +2 -2
- package/components/svg/deprecated-icons.d.ts +58 -0
- package/components/svg/index.d.ts +2 -0
- package/components/svg/svg-options.d.ts +17 -0
- package/components/svg/svg.component.d.ts +6 -7
- package/components/tooltip/tooltip.component.d.ts +0 -1
- package/components/tooltip/tooltip.module.d.ts +5 -4
- package/directives/dropdown/dropdown-hover-options.directive.d.ts +9 -0
- package/directives/dropdown/dropdown-hover.directive.d.ts +3 -1
- package/directives/dropdown/dropdown-position-sided.directive.d.ts +2 -2
- package/directives/dropdown/dropdown-position.directive.d.ts +2 -2
- package/directives/dropdown/index.d.ts +1 -0
- package/directives/hint/hint-hover.directive.d.ts +1 -1
- package/directives/hint/hint-position.directive.d.ts +2 -2
- package/esm2015/abstract/rect-accessor.js +2 -1
- package/esm2015/components/notification/notification.component.js +3 -3
- package/esm2015/components/primitive-textfield/primitive-textfield.component.js +2 -2
- package/esm2015/components/svg/deprecated-icons.js +61 -0
- package/esm2015/components/svg/index.js +3 -1
- package/esm2015/components/svg/svg-options.js +24 -0
- package/esm2015/components/svg/svg.component.js +20 -18
- package/esm2015/components/tooltip/tooltip.component.js +11 -16
- package/esm2015/components/tooltip/tooltip.module.js +21 -4
- package/esm2015/directives/dropdown/dropdown-hover-options.directive.js +14 -0
- package/esm2015/directives/dropdown/dropdown-hover.directive.js +10 -5
- package/esm2015/directives/dropdown/dropdown-position-sided.directive.js +12 -12
- package/esm2015/directives/dropdown/dropdown-position.directive.js +11 -11
- package/esm2015/directives/dropdown/index.js +2 -1
- package/esm2015/directives/hint/hint-hover.directive.js +3 -2
- package/esm2015/directives/hint/hint-options.directive.js +2 -2
- package/esm2015/directives/hint/hint-position.directive.js +12 -11
- package/esm2015/tokens/icon-place.js +5 -2
- package/esm2015/tokens/icons-path.js +4 -1
- package/esm2015/tokens/index.js +2 -1
- package/esm2015/tokens/svg-content-processor.js +4 -1
- package/esm2015/tokens/svg-src-processor.js +4 -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-components-notification.js +2 -2
- package/fesm2015/taiga-ui-core-components-notification.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-svg.js +102 -22
- package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-tooltip.js +30 -18
- package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-dropdown.js +42 -25
- package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-hint.js +19 -18
- package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
- package/fesm2015/taiga-ui-core-tokens.js +38 -2
- package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
- package/package.json +1 -1
- package/styles/mixins/textfield.less +4 -22
- package/styles/mixins/textfield.scss +3 -22
- package/styles/theme/wrapper/icon.less +17 -27
- package/tokens/icon-place.d.ts +3 -0
- package/tokens/icons-path.d.ts +3 -0
- package/tokens/index.d.ts +1 -0
- package/tokens/svg-content-processor.d.ts +3 -0
- package/tokens/svg-src-processor.d.ts +3 -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
|
/******************************************************************************
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
showDelay: 500,
|
|
364
364
|
hideDelay: 200,
|
|
365
365
|
appearance: '',
|
|
366
|
-
icon: '
|
|
366
|
+
icon: 'tuiIconHelpCircle',
|
|
367
367
|
};
|
|
368
368
|
var TUI_HINT_OPTIONS = new i0.InjectionToken('[TUI_HINT_OPTIONS] Default parameters for hint directive', {
|
|
369
369
|
factory: function () { return TUI_HINT_DEFAULT_OPTIONS; },
|
|
@@ -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], exportAs: ["tuiHintHover"], usesInheritance: true, ngImport: i0__namespace });
|
|
470
470
|
__decorate([
|
|
471
471
|
i3.tuiDefaultProp()
|
|
472
472
|
], TuiHintHoverDirective.prototype, "showDelay", void 0);
|
|
@@ -477,7 +477,8 @@
|
|
|
477
477
|
type: i0.Directive,
|
|
478
478
|
args: [{
|
|
479
479
|
selector: '[tuiHint]:not(ng-container)',
|
|
480
|
-
|
|
480
|
+
exportAs: 'tuiHintHover',
|
|
481
|
+
providers: [i1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService],
|
|
481
482
|
}]
|
|
482
483
|
}], ctorParameters: function () {
|
|
483
484
|
return [{ type: i2__namespace.Observable, decorators: [{
|
|
@@ -516,16 +517,16 @@
|
|
|
516
517
|
}(TuiHintHoverDirective));
|
|
517
518
|
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
519
|
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
|
-
|
|
520
|
+
i1.tuiAsRectAccessor(TuiHintPointerDirective),
|
|
521
|
+
i1.tuiAsDriver(TuiHintPointerDirective),
|
|
521
522
|
], usesInheritance: true, ngImport: i0__namespace });
|
|
522
523
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintPointerDirective, decorators: [{
|
|
523
524
|
type: i0.Directive,
|
|
524
525
|
args: [{
|
|
525
526
|
selector: '[tuiHint][tuiHintPointer]',
|
|
526
527
|
providers: [
|
|
527
|
-
|
|
528
|
-
|
|
528
|
+
i1.tuiAsRectAccessor(TuiHintPointerDirective),
|
|
529
|
+
i1.tuiAsDriver(TuiHintPointerDirective),
|
|
529
530
|
],
|
|
530
531
|
}]
|
|
531
532
|
}], propDecorators: { onMove: [{
|
|
@@ -587,7 +588,7 @@
|
|
|
587
588
|
};
|
|
588
589
|
return TuiHintComponent;
|
|
589
590
|
}());
|
|
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:
|
|
591
|
+
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
592
|
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
593
|
__decorate([
|
|
593
594
|
i3.tuiPure
|
|
@@ -614,9 +615,9 @@
|
|
|
614
615
|
}, {
|
|
615
616
|
type: i0.Inject,
|
|
616
617
|
args: [i3.TuiDestroyService]
|
|
617
|
-
}] }, { type:
|
|
618
|
+
}] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
|
|
618
619
|
type: i0.Inject,
|
|
619
|
-
args: [
|
|
620
|
+
args: [i1.TuiRectAccessor]
|
|
620
621
|
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
621
622
|
type: i0.Inject,
|
|
622
623
|
args: [i0.ElementRef]
|
|
@@ -625,7 +626,7 @@
|
|
|
625
626
|
args: [tokens.TUI_ANIMATION_OPTIONS]
|
|
626
627
|
}] }, { type: undefined, decorators: [{
|
|
627
628
|
type: i0.Inject,
|
|
628
|
-
args: [i1.POLYMORPHEUS_CONTEXT]
|
|
629
|
+
args: [i1$1.POLYMORPHEUS_CONTEXT]
|
|
629
630
|
}] }, { type: TuiHintHoverDirective, decorators: [{
|
|
630
631
|
type: i0.Inject,
|
|
631
632
|
args: [TuiHintHoverDirective]
|
|
@@ -697,14 +698,14 @@
|
|
|
697
698
|
};
|
|
698
699
|
return TuiHintDirective;
|
|
699
700
|
}());
|
|
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 });
|
|
701
|
+
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
702
|
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
|
-
|
|
703
|
+
i1.tuiAsRectAccessor(TuiHintDirective),
|
|
704
|
+
i1.tuiAsVehicle(TuiHintDirective),
|
|
704
705
|
{
|
|
705
|
-
provide: i1.PolymorpheusComponent,
|
|
706
|
+
provide: i1$1.PolymorpheusComponent,
|
|
706
707
|
deps: [TUI_HINT_COMPONENT, i0.INJECTOR],
|
|
707
|
-
useClass: i1.PolymorpheusComponent,
|
|
708
|
+
useClass: i1$1.PolymorpheusComponent,
|
|
708
709
|
},
|
|
709
710
|
], usesOnChanges: true, ngImport: i0__namespace });
|
|
710
711
|
__decorate([
|
|
@@ -718,12 +719,12 @@
|
|
|
718
719
|
args: [{
|
|
719
720
|
selector: '[tuiHint]:not(ng-container)',
|
|
720
721
|
providers: [
|
|
721
|
-
|
|
722
|
-
|
|
722
|
+
i1.tuiAsRectAccessor(TuiHintDirective),
|
|
723
|
+
i1.tuiAsVehicle(TuiHintDirective),
|
|
723
724
|
{
|
|
724
|
-
provide: i1.PolymorpheusComponent,
|
|
725
|
+
provide: i1$1.PolymorpheusComponent,
|
|
725
726
|
deps: [TUI_HINT_COMPONENT, i0.INJECTOR],
|
|
726
|
-
useClass: i1.PolymorpheusComponent,
|
|
727
|
+
useClass: i1$1.PolymorpheusComponent,
|
|
727
728
|
},
|
|
728
729
|
],
|
|
729
730
|
}]
|
|
@@ -733,14 +734,14 @@
|
|
|
733
734
|
args: [i0.ElementRef]
|
|
734
735
|
}] }, { type: i1__namespace.PolymorpheusComponent, decorators: [{
|
|
735
736
|
type: i0.Inject,
|
|
736
|
-
args: [i1.PolymorpheusComponent]
|
|
737
|
+
args: [i1$1.PolymorpheusComponent]
|
|
737
738
|
}] }, { type: i2__namespace$1.TuiHintService, decorators: [{
|
|
738
739
|
type: i0.Inject,
|
|
739
740
|
args: [i2$1.TuiHintService]
|
|
740
741
|
}] }, { type: undefined, decorators: [{
|
|
741
742
|
type: i0.Inject,
|
|
742
743
|
args: [TUI_HINT_OPTIONS]
|
|
743
|
-
}] }, { type: i3__namespace
|
|
744
|
+
}] }, { type: i3__namespace.TuiActiveZoneDirective, decorators: [{
|
|
744
745
|
type: i0.Optional
|
|
745
746
|
}, {
|
|
746
747
|
type: i0.Inject,
|
|
@@ -789,9 +790,9 @@
|
|
|
789
790
|
configurable: true
|
|
790
791
|
});
|
|
791
792
|
return TuiHintDescribeDirective;
|
|
792
|
-
}(
|
|
793
|
+
}(i1.TuiDriver));
|
|
793
794
|
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: [
|
|
795
|
+
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
796
|
__decorate([
|
|
796
797
|
i3.tuiPure
|
|
797
798
|
], TuiHintDescribeDirective.prototype, "element", null);
|
|
@@ -799,7 +800,7 @@
|
|
|
799
800
|
type: i0.Directive,
|
|
800
801
|
args: [{
|
|
801
802
|
selector: '[tuiHintDescribe]',
|
|
802
|
-
providers: [
|
|
803
|
+
providers: [i1.tuiAsDriver(TuiHintDescribeDirective)],
|
|
803
804
|
}]
|
|
804
805
|
}], ctorParameters: function () {
|
|
805
806
|
return [{ type: i0__namespace.NgZone, decorators: [{
|
|
@@ -825,7 +826,7 @@
|
|
|
825
826
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
826
827
|
}
|
|
827
828
|
return TuiHintDriverDirective;
|
|
828
|
-
}(
|
|
829
|
+
}(i1.AbstractTuiDriverDirective));
|
|
829
830
|
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
831
|
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
832
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintDriverDirective, decorators: [{
|
|
@@ -846,14 +847,14 @@
|
|
|
846
847
|
return ((_a = this.tuiHintHost) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) || i3.EMPTY_CLIENT_RECT;
|
|
847
848
|
};
|
|
848
849
|
return TuiHintHostDirective;
|
|
849
|
-
}(
|
|
850
|
+
}(i1.TuiRectAccessor));
|
|
850
851
|
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: [
|
|
852
|
+
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
853
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintHostDirective, decorators: [{
|
|
853
854
|
type: i0.Directive,
|
|
854
855
|
args: [{
|
|
855
856
|
selector: '[tuiHint][tuiHintHost]',
|
|
856
|
-
providers: [
|
|
857
|
+
providers: [i1.tuiAsRectAccessor(TuiHintHostDirective)],
|
|
857
858
|
}]
|
|
858
859
|
}], propDecorators: { tuiHintHost: [{
|
|
859
860
|
type: i0.Input
|
|
@@ -871,14 +872,14 @@
|
|
|
871
872
|
this.stream$.next(this.tuiHintManual);
|
|
872
873
|
};
|
|
873
874
|
return TuiHintManualDirective;
|
|
874
|
-
}(
|
|
875
|
+
}(i1.TuiDriver));
|
|
875
876
|
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: [
|
|
877
|
+
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
878
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintManualDirective, decorators: [{
|
|
878
879
|
type: i0.Directive,
|
|
879
880
|
args: [{
|
|
880
881
|
selector: '[tuiHint][tuiHintManual]',
|
|
881
|
-
providers: [
|
|
882
|
+
providers: [i1.tuiAsDriver(TuiHintManualDirective)],
|
|
882
883
|
}]
|
|
883
884
|
}], ctorParameters: function () { return []; }, propDecorators: { tuiHintManual: [{
|
|
884
885
|
type: i0.Input
|
|
@@ -889,9 +890,9 @@
|
|
|
889
890
|
var TOP = 0;
|
|
890
891
|
var LEFT = 1;
|
|
891
892
|
var TuiHintPositionDirective = /** @class */ (function () {
|
|
892
|
-
function TuiHintPositionDirective(options,
|
|
893
|
+
function TuiHintPositionDirective(options, viewport, accessor) {
|
|
893
894
|
this.options = options;
|
|
894
|
-
this.
|
|
895
|
+
this.viewport = viewport;
|
|
895
896
|
this.accessor = accessor;
|
|
896
897
|
this.points = constants.TUI_HINT_DIRECTIONS.reduce(function (acc, direction) {
|
|
897
898
|
var _a;
|
|
@@ -938,7 +939,8 @@
|
|
|
938
939
|
};
|
|
939
940
|
Object.defineProperty(TuiHintPositionDirective.prototype, "fallback", {
|
|
940
941
|
get: function () {
|
|
941
|
-
return this.points.top[TOP] >
|
|
942
|
+
return this.points.top[TOP] >
|
|
943
|
+
this.viewport.getClientRect().bottom - this.points.bottom[TOP]
|
|
942
944
|
? 'top'
|
|
943
945
|
: 'bottom';
|
|
944
946
|
},
|
|
@@ -947,16 +949,16 @@
|
|
|
947
949
|
});
|
|
948
950
|
TuiHintPositionDirective.prototype.checkPosition = function (_a, width, height) {
|
|
949
951
|
var _b = __read(_a, 2), top = _b[0], left = _b[1];
|
|
950
|
-
var
|
|
952
|
+
var viewport = this.viewport.getClientRect();
|
|
951
953
|
return (top > OFFSET &&
|
|
952
954
|
left > OFFSET &&
|
|
953
|
-
top + height <
|
|
954
|
-
left + width <
|
|
955
|
+
top + height < viewport.bottom - OFFSET &&
|
|
956
|
+
left + width < viewport.right - OFFSET);
|
|
955
957
|
};
|
|
956
958
|
return TuiHintPositionDirective;
|
|
957
959
|
}());
|
|
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: [
|
|
960
|
+
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 });
|
|
961
|
+
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
962
|
__decorate([
|
|
961
963
|
i3.tuiDefaultProp()
|
|
962
964
|
], TuiHintPositionDirective.prototype, "direction", void 0);
|
|
@@ -964,18 +966,18 @@
|
|
|
964
966
|
type: i0.Directive,
|
|
965
967
|
args: [{
|
|
966
968
|
selector: '[tuiHint]:not([tuiHintCustomPosition])',
|
|
967
|
-
providers: [
|
|
969
|
+
providers: [i1.tuiAsPositionAccessor(TuiHintPositionDirective)],
|
|
968
970
|
}]
|
|
969
971
|
}], ctorParameters: function () {
|
|
970
972
|
return [{ type: undefined, decorators: [{
|
|
971
973
|
type: i0.Inject,
|
|
972
974
|
args: [TUI_HINT_OPTIONS]
|
|
973
|
-
}] }, { type:
|
|
975
|
+
}] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
|
|
974
976
|
type: i0.Inject,
|
|
975
|
-
args: [
|
|
976
|
-
}] }, { type:
|
|
977
|
+
args: [tokens.TUI_VIEWPORT]
|
|
978
|
+
}] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
|
|
977
979
|
type: i0.Inject,
|
|
978
|
-
args: [
|
|
980
|
+
args: [i1.TuiRectAccessor]
|
|
979
981
|
}] }];
|
|
980
982
|
}, propDecorators: { direction: [{
|
|
981
983
|
type: i0.Input,
|
|
@@ -997,7 +999,7 @@
|
|
|
997
999
|
TuiHintPointerDirective,
|
|
998
1000
|
TuiHintDescribeDirective,
|
|
999
1001
|
TuiHintPositionDirective,
|
|
1000
|
-
TuiHintOptionsDirective], imports: [common.CommonModule, i1.PolymorpheusModule], exports: [TuiHintComponent,
|
|
1002
|
+
TuiHintOptionsDirective], imports: [common.CommonModule, i1$1.PolymorpheusModule], exports: [TuiHintComponent,
|
|
1001
1003
|
TuiHintDirective,
|
|
1002
1004
|
TuiHintDriverDirective,
|
|
1003
1005
|
TuiHintHostDirective,
|
|
@@ -1007,11 +1009,11 @@
|
|
|
1007
1009
|
TuiHintDescribeDirective,
|
|
1008
1010
|
TuiHintPositionDirective,
|
|
1009
1011
|
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]] });
|
|
1012
|
+
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
1013
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintModule, decorators: [{
|
|
1012
1014
|
type: i0.NgModule,
|
|
1013
1015
|
args: [{
|
|
1014
|
-
imports: [common.CommonModule, i1.PolymorpheusModule],
|
|
1016
|
+
imports: [common.CommonModule, i1$1.PolymorpheusModule],
|
|
1015
1017
|
declarations: [
|
|
1016
1018
|
TuiHintComponent,
|
|
1017
1019
|
TuiHintDirective,
|