@taiga-ui/core 3.56.0 → 3.57.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 (55) hide show
  1. package/bundles/taiga-ui-core-components-alert.umd.js +1 -1
  2. package/bundles/taiga-ui-core-components-dialog.umd.js +1 -1
  3. package/bundles/taiga-ui-core-components-expand.umd.js +1 -1
  4. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  5. package/bundles/taiga-ui-core-components-root.umd.js +8 -3
  6. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  7. package/bundles/taiga-ui-core-components-tooltip.umd.js +1 -1
  8. package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
  9. package/bundles/taiga-ui-core-directives-dropdown.umd.js +18 -12
  10. package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
  11. package/bundles/taiga-ui-core-directives-hint.umd.js +77 -12
  12. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  13. package/components/root/root.component.d.ts +2 -1
  14. package/constants/cache-basting-payload.d.ts +1 -1
  15. package/directives/dropdown/dropdown-open.directive.d.ts +5 -3
  16. package/directives/dropdown/dropdown.directive.d.ts +3 -2
  17. package/directives/hint/hint-driver.directive.d.ts +1 -1
  18. package/directives/hint/hint-hover.directive.d.ts +1 -1
  19. package/directives/hint/hint-position.directive.d.ts +1 -1
  20. package/directives/hint/hint-unstyled.component.d.ts +16 -0
  21. package/directives/hint/hint.component.d.ts +1 -1
  22. package/directives/hint/hint.directive.d.ts +2 -2
  23. package/directives/hint/hint.module.d.ts +4 -3
  24. package/directives/hint/index.d.ts +1 -0
  25. package/esm2015/components/alert/alert.component.js +1 -1
  26. package/esm2015/components/dialog/dialog.component.js +1 -1
  27. package/esm2015/components/expand/expand.component.js +2 -2
  28. package/esm2015/components/root/root.component.js +10 -5
  29. package/esm2015/components/tooltip/tooltip.component.js +1 -1
  30. package/esm2015/directives/dropdown/dropdown-open.directive.js +9 -4
  31. package/esm2015/directives/dropdown/dropdown.component.js +1 -1
  32. package/esm2015/directives/dropdown/dropdown.directive.js +8 -3
  33. package/esm2015/directives/hint/hint-driver.directive.js +3 -3
  34. package/esm2015/directives/hint/hint-hover.directive.js +3 -3
  35. package/esm2015/directives/hint/hint-position.directive.js +3 -3
  36. package/esm2015/directives/hint/hint-unstyled.component.js +66 -0
  37. package/esm2015/directives/hint/hint.component.js +3 -1
  38. package/esm2015/directives/hint/hint.directive.js +3 -3
  39. package/esm2015/directives/hint/hint.module.js +10 -3
  40. package/esm2015/directives/hint/index.js +2 -1
  41. package/fesm2015/taiga-ui-core-components-alert.js +1 -1
  42. package/fesm2015/taiga-ui-core-components-dialog.js +1 -1
  43. package/fesm2015/taiga-ui-core-components-expand.js +1 -1
  44. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  45. package/fesm2015/taiga-ui-core-components-root.js +9 -4
  46. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  47. package/fesm2015/taiga-ui-core-components-tooltip.js +1 -1
  48. package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
  49. package/fesm2015/taiga-ui-core-directives-dropdown.js +16 -6
  50. package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
  51. package/fesm2015/taiga-ui-core-directives-hint.js +80 -13
  52. package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
  53. package/package.json +9 -9
  54. package/styles/mixins/appearance.less +1 -1
  55. package/styles/mixins/mixins.less +4 -8
@@ -469,7 +469,7 @@
469
469
  return TuiHintDirective;
470
470
  }());
471
471
  TuiHintDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDirective, deps: [{ token: i0.ElementRef }, { token: i1.PolymorpheusComponent }, { token: i2.TuiHintService }, { token: TUI_HINT_OPTIONS }, { token: i3.TuiActiveZoneDirective, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
472
- TuiHintDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDirective, selector: "[tuiHint]:not(ng-container)", inputs: { content: ["tuiHint", "content"], context: ["tuiHintContext", "context"], tuiHintAppearance: "tuiHintAppearance" }, providers: [
472
+ TuiHintDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: { content: ["tuiHint", "content"], context: ["tuiHintContext", "context"], tuiHintAppearance: "tuiHintAppearance" }, providers: [
473
473
  i3$1.tuiAsRectAccessor(TuiHintDirective),
474
474
  i3$1.tuiAsVehicle(TuiHintDirective),
475
475
  {
@@ -481,7 +481,7 @@
481
481
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDirective, decorators: [{
482
482
  type: i0.Directive,
483
483
  args: [{
484
- selector: '[tuiHint]:not(ng-container)',
484
+ selector: '[tuiHint]:not(ng-container):not(ng-template)',
485
485
  providers: [
486
486
  i3$1.tuiAsRectAccessor(TuiHintDirective),
487
487
  i3$1.tuiAsVehicle(TuiHintDirective),
@@ -546,11 +546,11 @@
546
546
  return TuiHintHoverDirective;
547
547
  }(i3$1.TuiDriver));
548
548
  TuiHintHoverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHoverDirective, deps: [{ token: i3.TuiHoveredService }, { token: TUI_HINT_OPTIONS }, { token: i0.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
549
- TuiHintHoverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintHoverDirective, selector: "[tuiHint]:not(ng-container)", inputs: { showDelay: ["tuiHintShowDelay", "showDelay"], hideDelay: ["tuiHintHideDelay", "hideDelay"] }, providers: [i3$1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService], exportAs: ["tuiHintHover"], usesInheritance: true, ngImport: i0__namespace });
549
+ TuiHintHoverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintHoverDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: { showDelay: ["tuiHintShowDelay", "showDelay"], hideDelay: ["tuiHintHideDelay", "hideDelay"] }, providers: [i3$1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService], exportAs: ["tuiHintHover"], usesInheritance: true, ngImport: i0__namespace });
550
550
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHoverDirective, decorators: [{
551
551
  type: i0.Directive,
552
552
  args: [{
553
- selector: '[tuiHint]:not(ng-container)',
553
+ selector: '[tuiHint]:not(ng-container):not(ng-template)',
554
554
  providers: [i3$1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService],
555
555
  exportAs: 'tuiHintHover',
556
556
  }]
@@ -679,7 +679,7 @@
679
679
  i3.TuiHoveredService,
680
680
  i3$1.tuiPositionAccessorFor('hint'),
681
681
  i3$1.tuiRectAccessorFor('hint', TuiHintDirective),
682
- ], ngImport: i0__namespace, template: "\n <span\n *polymorpheusOutlet=\"content as text; context: context\"\n [innerHTML]=\"text\"\n ></span>\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-02);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 });
682
+ ], ngImport: i0__namespace, template: "\n <ng-content></ng-content>\n <span\n *polymorpheusOutlet=\"content as text; context: context\"\n [innerHTML]=\"text\"\n ></span>\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-02);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 });
683
683
  __decorate([
684
684
  i3.tuiPure
685
685
  ], TuiHintComponent.prototype, "update", null);
@@ -687,7 +687,7 @@
687
687
  type: i0.Component,
688
688
  args: [{
689
689
  selector: 'tui-hint',
690
- template: "\n <span\n *polymorpheusOutlet=\"content as text; context: context\"\n [innerHTML]=\"text\"\n ></span>\n ",
690
+ template: "\n <ng-content></ng-content>\n <span\n *polymorpheusOutlet=\"content as text; context: context\"\n [innerHTML]=\"text\"\n ></span>\n ",
691
691
  styleUrls: ['./hint.style.less'],
692
692
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
693
693
  providers: [
@@ -828,11 +828,11 @@
828
828
  return TuiHintDriverDirective;
829
829
  }(i3$1.AbstractTuiDriverDirective));
830
830
  TuiHintDriverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDriverDirective, deps: [{ token: i3.TuiDestroyService, self: true }, { token: i3$1.TuiDriver }, { token: i3$1.TuiVehicle }], target: i0__namespace.ɵɵFactoryTarget.Directive });
831
- TuiHintDriverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDriverDirective, selector: "[tuiHint]", providers: [i3.TuiDestroyService], usesInheritance: true, ngImport: i0__namespace });
831
+ TuiHintDriverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDriverDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", providers: [i3.TuiDestroyService], usesInheritance: true, ngImport: i0__namespace });
832
832
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDriverDirective, decorators: [{
833
833
  type: i0.Directive,
834
834
  args: [{
835
- selector: '[tuiHint]',
835
+ selector: '[tuiHint]:not(ng-container):not(ng-template)',
836
836
  providers: [i3.TuiDestroyService],
837
837
  }]
838
838
  }], ctorParameters: function () {
@@ -992,14 +992,14 @@
992
992
  return TuiHintPositionDirective;
993
993
  }(i3$1.TuiPositionAccessor));
994
994
  TuiHintPositionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPositionDirective, deps: [{ token: TUI_HINT_OPTIONS }, { token: tokens.TUI_VIEWPORT }, { token: TuiHintDirective }, { token: i3$1.TuiRectAccessor }], target: i0__namespace.ɵɵFactoryTarget.Directive });
995
- TuiHintPositionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintPositionDirective, selector: "[tuiHint]:not([tuiHintCustomPosition])", inputs: { direction: ["tuiHintDirection", "direction"] }, providers: [i3$1.tuiAsPositionAccessor(TuiHintPositionDirective)], usesInheritance: true, ngImport: i0__namespace });
995
+ TuiHintPositionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintPositionDirective, selector: "[tuiHint]:not([tuiHintCustomPosition]):not(ng-container):not(ng-template)", inputs: { direction: ["tuiHintDirection", "direction"] }, providers: [i3$1.tuiAsPositionAccessor(TuiHintPositionDirective)], usesInheritance: true, ngImport: i0__namespace });
996
996
  __decorate([
997
997
  i3.tuiPure
998
998
  ], TuiHintPositionDirective.prototype, "accessor", null);
999
999
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPositionDirective, decorators: [{
1000
1000
  type: i0.Directive,
1001
1001
  args: [{
1002
- selector: '[tuiHint]:not([tuiHintCustomPosition])',
1002
+ selector: '[tuiHint]:not([tuiHintCustomPosition]):not(ng-container):not(ng-template)',
1003
1003
  providers: [i3$1.tuiAsPositionAccessor(TuiHintPositionDirective)],
1004
1004
  }]
1005
1005
  }], ctorParameters: function () {
@@ -1021,6 +1021,63 @@
1021
1021
  args: ['tuiHintDirection']
1022
1022
  }], accessor: [] } });
1023
1023
 
1024
+ var TuiHintUnstyledComponent = /** @class */ (function () {
1025
+ function TuiHintUnstyledComponent(context) {
1026
+ this.context = context;
1027
+ }
1028
+ return TuiHintUnstyledComponent;
1029
+ }());
1030
+ TuiHintUnstyledComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintUnstyledComponent, deps: [{ token: i1.POLYMORPHEUS_CONTEXT }], target: i0__namespace.ɵɵFactoryTarget.Component });
1031
+ TuiHintUnstyledComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintUnstyledComponent, selector: "ng-component", host: { properties: { "@tuiParentAnimation": "" } }, ngImport: i0__namespace, template: "\n <ng-container\n *polymorpheusOutlet=\"context.$implicit.content; context: context\"\n ></ng-container>\n ", isInline: true, directives: [{ type: i1__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], animations: [i3.TUI_PARENT_ANIMATION], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1032
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintUnstyledComponent, decorators: [{
1033
+ type: i0.Component,
1034
+ args: [{
1035
+ template: "\n <ng-container\n *polymorpheusOutlet=\"context.$implicit.content; context: context\"\n ></ng-container>\n ",
1036
+ host: { '[@tuiParentAnimation]': '' },
1037
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1038
+ animations: [i3.TUI_PARENT_ANIMATION],
1039
+ }]
1040
+ }], ctorParameters: function () {
1041
+ return [{ type: undefined, decorators: [{
1042
+ type: i0.Inject,
1043
+ args: [i1.POLYMORPHEUS_CONTEXT]
1044
+ }] }];
1045
+ } });
1046
+ var TuiHintUnstyledDirective = /** @class */ (function () {
1047
+ function TuiHintUnstyledDirective(templateRef, hint) {
1048
+ hint.component = new i1.PolymorpheusComponent(TuiHintUnstyledComponent);
1049
+ hint.content = templateRef;
1050
+ }
1051
+ return TuiHintUnstyledDirective;
1052
+ }());
1053
+ TuiHintUnstyledDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintUnstyledDirective, deps: [{ token: i0.TemplateRef }, { token: TuiHintDirective }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1054
+ TuiHintUnstyledDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintUnstyledDirective, selector: "ng-template[tuiHint]", providers: [
1055
+ {
1056
+ provide: i1.POLYMORPHEUS_CONTEXT,
1057
+ useValue: { $implicit: {} },
1058
+ },
1059
+ ], ngImport: i0__namespace });
1060
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintUnstyledDirective, decorators: [{
1061
+ type: i0.Directive,
1062
+ args: [{
1063
+ selector: 'ng-template[tuiHint]',
1064
+ providers: [
1065
+ {
1066
+ provide: i1.POLYMORPHEUS_CONTEXT,
1067
+ useValue: { $implicit: {} },
1068
+ },
1069
+ ],
1070
+ }]
1071
+ }], ctorParameters: function () {
1072
+ return [{ type: i0__namespace.TemplateRef, decorators: [{
1073
+ type: i0.Inject,
1074
+ args: [i0.TemplateRef]
1075
+ }] }, { type: TuiHintDirective, decorators: [{
1076
+ type: i0.Inject,
1077
+ args: [TuiHintDirective]
1078
+ }] }];
1079
+ } });
1080
+
1024
1081
  var TuiHintModule = /** @class */ (function () {
1025
1082
  function TuiHintModule() {
1026
1083
  }
@@ -1036,7 +1093,9 @@
1036
1093
  TuiHintPointerDirective,
1037
1094
  TuiHintDescribeDirective,
1038
1095
  TuiHintPositionDirective,
1039
- TuiHintOptionsDirective], imports: [common.CommonModule, i1.PolymorpheusModule], exports: [TuiHintComponent,
1096
+ TuiHintOptionsDirective,
1097
+ TuiHintUnstyledComponent,
1098
+ TuiHintUnstyledDirective], imports: [common.CommonModule, i1.PolymorpheusModule], exports: [TuiHintComponent,
1040
1099
  TuiHintDirective,
1041
1100
  TuiHintDriverDirective,
1042
1101
  TuiHintHostDirective,
@@ -1045,7 +1104,8 @@
1045
1104
  TuiHintPointerDirective,
1046
1105
  TuiHintDescribeDirective,
1047
1106
  TuiHintPositionDirective,
1048
- TuiHintOptionsDirective] });
1107
+ TuiHintOptionsDirective,
1108
+ TuiHintUnstyledDirective] });
1049
1109
  TuiHintModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, imports: [[common.CommonModule, i1.PolymorpheusModule]] });
1050
1110
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, decorators: [{
1051
1111
  type: i0.NgModule,
@@ -1062,6 +1122,8 @@
1062
1122
  TuiHintDescribeDirective,
1063
1123
  TuiHintPositionDirective,
1064
1124
  TuiHintOptionsDirective,
1125
+ TuiHintUnstyledComponent,
1126
+ TuiHintUnstyledDirective,
1065
1127
  ],
1066
1128
  exports: [
1067
1129
  TuiHintComponent,
@@ -1074,6 +1136,7 @@
1074
1136
  TuiHintDescribeDirective,
1075
1137
  TuiHintPositionDirective,
1076
1138
  TuiHintOptionsDirective,
1139
+ TuiHintUnstyledDirective,
1077
1140
  ],
1078
1141
  }]
1079
1142
  }] });
@@ -1096,6 +1159,8 @@
1096
1159
  exports.TuiHintOptionsDirective = TuiHintOptionsDirective;
1097
1160
  exports.TuiHintPointerDirective = TuiHintPointerDirective;
1098
1161
  exports.TuiHintPositionDirective = TuiHintPositionDirective;
1162
+ exports.TuiHintUnstyledComponent = TuiHintUnstyledComponent;
1163
+ exports.TuiHintUnstyledDirective = TuiHintUnstyledDirective;
1099
1164
  exports.tuiHintOptionsProvider = tuiHintOptionsProvider;
1100
1165
 
1101
1166
  Object.defineProperty(exports, '__esModule', { value: true });