@taiga-ui/kit 4.2.0 → 4.3.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/components/carousel/carousel.component.d.ts +1 -1
- package/components/input-phone-international/input-phone-international.options.d.ts +1 -1
- package/components/segmented/segmented.directive.d.ts +2 -3
- package/components/slider/slider.component.d.ts +1 -1
- package/components/tiles/tile-handle.directive.d.ts +1 -1
- package/directives/button-select/button-select.directive.d.ts +12 -0
- package/directives/button-select/index.d.ts +1 -0
- package/directives/index.d.ts +1 -0
- package/esm2022/components/accordion/accordion-item.component.mjs +10 -19
- package/esm2022/components/avatar/avatar-labeled.component.mjs +3 -6
- package/esm2022/components/avatar/avatar-stack.component.mjs +6 -7
- package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +6 -7
- package/esm2022/components/button-loading/button-loading.component.mjs +3 -5
- package/esm2022/components/calendar-month/calendar-month.component.mjs +6 -7
- package/esm2022/components/calendar-range/calendar-range.component.mjs +5 -6
- package/esm2022/components/carousel/carousel.component.mjs +17 -28
- package/esm2022/components/checkbox/checkbox.options.mjs +3 -3
- package/esm2022/components/compass/compass.component.mjs +6 -7
- package/esm2022/components/elastic-container/elastic-container.component.mjs +8 -11
- package/esm2022/components/elastic-container/elastic-container.directive.mjs +2 -2
- package/esm2022/components/files/file/file.component.mjs +6 -7
- package/esm2022/components/files/input-files/input-files-validator.directive.mjs +6 -6
- package/esm2022/components/files/input-files/input-files.component.mjs +3 -5
- package/esm2022/components/filter/filter.component.mjs +6 -7
- package/esm2022/components/input-inline/input-inline.component.mjs +5 -6
- package/esm2022/components/input-phone-international/input-phone-international.component.mjs +3 -3
- package/esm2022/components/input-phone-international/input-phone-international.options.mjs +3 -3
- package/esm2022/components/items-with-more/items-with-more.service.mjs +2 -2
- package/esm2022/components/line-clamp/line-clamp-box.component.mjs +7 -8
- package/esm2022/components/line-clamp/line-clamp.component.mjs +5 -6
- package/esm2022/components/pagination/pagination.component.mjs +4 -12
- package/esm2022/components/pdf-viewer/pdf-viewer.component.mjs +4 -6
- package/esm2022/components/pin/pin.directive.mjs +6 -6
- package/esm2022/components/preview/pagination/preview-pagination.component.mjs +6 -9
- package/esm2022/components/progress/progress-bar/progress-bar.component.mjs +7 -10
- package/esm2022/components/progress/progress-bar/progress-color-segments.directive.mjs +2 -2
- package/esm2022/components/progress/progress-circle/progress-circle.component.mjs +8 -13
- package/esm2022/components/radio-list/radio-list.component.mjs +7 -10
- package/esm2022/components/range/range.component.mjs +8 -18
- package/esm2022/components/rating/rating.component.mjs +9 -19
- package/esm2022/components/segmented/segmented.component.mjs +8 -9
- package/esm2022/components/segmented/segmented.directive.mjs +17 -21
- package/esm2022/components/slider/helpers/slider-key-steps.directive.mjs +4 -8
- package/esm2022/components/slider/helpers/slider-readonly.directive.mjs +7 -9
- package/esm2022/components/slider/slider.component.mjs +8 -12
- package/esm2022/components/stepper/step.component.mjs +12 -23
- package/esm2022/components/stepper/stepper.component.mjs +12 -21
- package/esm2022/components/switch/switch.component.mjs +4 -6
- package/esm2022/components/tabs/tabs-horizontal.directive.mjs +7 -13
- package/esm2022/components/tabs/tabs-vertical.directive.mjs +8 -12
- package/esm2022/components/tabs/tabs.directive.mjs +7 -7
- package/esm2022/components/tiles/tile-handle.directive.mjs +15 -21
- package/esm2022/components/tiles/tile.component.mjs +9 -16
- package/esm2022/components/tiles/tiles.component.mjs +7 -10
- package/esm2022/components/tree/components/tree-item/tree-item.component.mjs +4 -6
- package/esm2022/components/tree/components/tree-item-content/tree-item-content.component.mjs +7 -8
- package/esm2022/directives/button-select/button-select.directive.mjs +41 -0
- package/esm2022/directives/button-select/index.mjs +2 -0
- package/esm2022/directives/button-select/taiga-ui-kit-directives-button-select.mjs +5 -0
- package/esm2022/directives/fade/fade.directive.mjs +11 -19
- package/esm2022/directives/fluid-typography/fluid-typography.directive.mjs +2 -2
- package/esm2022/directives/highlight/highlight.directive.mjs +2 -2
- package/esm2022/directives/index.mjs +2 -1
- package/esm2022/directives/lazy-loading/lazy-loading.directive.mjs +15 -20
- package/esm2022/directives/present/present.directive.mjs +4 -8
- package/esm2022/directives/sensitive/sensitive.directive.mjs +2 -2
- package/esm2022/directives/tooltip/tooltip.directive.mjs +7 -7
- package/fesm2022/taiga-ui-kit-components-accordion.mjs +9 -18
- package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-avatar.mjs +6 -10
- package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +5 -6
- package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-button-loading.mjs +2 -4
- package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +5 -6
- package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +4 -5
- package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-carousel.mjs +16 -27
- package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-checkbox.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-compass.mjs +5 -6
- package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +8 -11
- package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-files.mjs +10 -13
- package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-filter.mjs +5 -6
- package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-inline.mjs +4 -5
- package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +1 -1
- package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +9 -11
- package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pagination.mjs +3 -11
- package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +3 -5
- package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pin.mjs +5 -5
- package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-preview.mjs +5 -8
- package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-progress.mjs +13 -21
- package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-radio-list.mjs +6 -9
- package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-range.mjs +7 -17
- package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-rating.mjs +8 -18
- package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-segmented.mjs +22 -26
- package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-slider.mjs +14 -24
- package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-stepper.mjs +21 -41
- package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-switch.mjs +3 -5
- package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-tabs.mjs +17 -27
- package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-tiles.mjs +26 -42
- package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-tree.mjs +8 -11
- package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-button-select.mjs +47 -0
- package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives-fade.mjs +10 -18
- package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +1 -1
- package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-highlight.mjs +1 -1
- package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +14 -19
- package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-present.mjs +3 -7
- package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +1 -1
- package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +6 -6
- package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives.mjs +1 -0
- package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
- package/package.json +14 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ChangeDetectorRef, Injectable, Directive,
|
|
2
|
+
import { inject, ChangeDetectorRef, Injectable, Directive, Input } from '@angular/core';
|
|
3
3
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
4
4
|
import { IntersectionObserverService } from '@ng-web-apis/intersection-observer';
|
|
5
5
|
import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
|
|
@@ -30,11 +30,12 @@ class TuiImgLazyLoading {
|
|
|
30
30
|
this.animation = 'tuiSkeletonVibe ease-in-out 1s infinite alternate';
|
|
31
31
|
this.background = 'var(--tui-background-neutral-2)';
|
|
32
32
|
this.src = null;
|
|
33
|
-
if (
|
|
34
|
-
|
|
35
|
-
this.src = src;
|
|
36
|
-
});
|
|
33
|
+
if (this.supported) {
|
|
34
|
+
return;
|
|
37
35
|
}
|
|
36
|
+
this.src$.pipe(takeUntilDestroyed()).subscribe((src) => {
|
|
37
|
+
this.src = src;
|
|
38
|
+
});
|
|
38
39
|
}
|
|
39
40
|
set srcSetter(src) {
|
|
40
41
|
this.src = this.supported ? src : null;
|
|
@@ -48,7 +49,7 @@ class TuiImgLazyLoading {
|
|
|
48
49
|
return 'loading' in this.el;
|
|
49
50
|
}
|
|
50
51
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiImgLazyLoading, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
51
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiImgLazyLoading, isStandalone: true, selector: "img[loading=\"lazy\"]", inputs: { srcSetter: ["src", "srcSetter"] }, host: { listeners: { "load": "onLoad()" }, properties: { "style.animation": "
|
|
52
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiImgLazyLoading, isStandalone: true, selector: "img[loading=\"lazy\"]", inputs: { srcSetter: ["src", "srcSetter"] }, host: { listeners: { "load": "onLoad()" }, properties: { "style.animation": "animation", "style.background": "background", "attr.src": "src" } }, providers: [TuiLazyLoadingService, IntersectionObserverService], ngImport: i0 }); }
|
|
52
53
|
}
|
|
53
54
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiImgLazyLoading, decorators: [{
|
|
54
55
|
type: Directive,
|
|
@@ -56,22 +57,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
56
57
|
standalone: true,
|
|
57
58
|
selector: 'img[loading="lazy"]',
|
|
58
59
|
providers: [TuiLazyLoadingService, IntersectionObserverService],
|
|
60
|
+
host: {
|
|
61
|
+
'[style.animation]': 'animation',
|
|
62
|
+
'[style.background]': 'background',
|
|
63
|
+
'[attr.src]': 'src',
|
|
64
|
+
'(load)': 'onLoad()',
|
|
65
|
+
},
|
|
59
66
|
}]
|
|
60
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
61
|
-
type: HostBinding,
|
|
62
|
-
args: ['style.animation']
|
|
63
|
-
}], background: [{
|
|
64
|
-
type: HostBinding,
|
|
65
|
-
args: ['style.background']
|
|
66
|
-
}], src: [{
|
|
67
|
-
type: HostBinding,
|
|
68
|
-
args: ['attr.src']
|
|
69
|
-
}], srcSetter: [{
|
|
67
|
+
}], ctorParameters: function () { return []; }, propDecorators: { srcSetter: [{
|
|
70
68
|
type: Input,
|
|
71
69
|
args: ['src']
|
|
72
|
-
}], onLoad: [{
|
|
73
|
-
type: HostListener,
|
|
74
|
-
args: ['load']
|
|
75
70
|
}] } });
|
|
76
71
|
|
|
77
72
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-lazy-loading.mjs","sources":["../../../projects/kit/directives/lazy-loading/lazy-loading.service.ts","../../../projects/kit/directives/lazy-loading/lazy-loading.directive.ts","../../../projects/kit/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.ts"],"sourcesContent":["import {ChangeDetectorRef, inject, Injectable} from '@angular/core';\nimport type {SafeResourceUrl} from '@angular/platform-browser';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {filter, map, Observable, Subject, switchMap, take} from 'rxjs';\n\n@Injectable()\nexport class TuiLazyLoadingService extends Observable<SafeResourceUrl | string> {\n private readonly src$ = new Subject<SafeResourceUrl | string>();\n private readonly intersections$ = inject(IntersectionObserverService);\n private readonly stream$ = this.src$.pipe(\n switchMap((src) =>\n this.intersections$.pipe(\n filter(([{isIntersecting}]) => isIntersecting),\n map(() => src),\n take(1),\n ),\n ),\n tuiWatch(inject(ChangeDetectorRef)),\n );\n\n constructor() {\n super((subscriber) => this.stream$.subscribe(subscriber));\n }\n\n public next(src: SafeResourceUrl | string): void {\n this.src$.next(src);\n }\n}\n","import {Directive,
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-lazy-loading.mjs","sources":["../../../projects/kit/directives/lazy-loading/lazy-loading.service.ts","../../../projects/kit/directives/lazy-loading/lazy-loading.directive.ts","../../../projects/kit/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.ts"],"sourcesContent":["import {ChangeDetectorRef, inject, Injectable} from '@angular/core';\nimport type {SafeResourceUrl} from '@angular/platform-browser';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {filter, map, Observable, Subject, switchMap, take} from 'rxjs';\n\n@Injectable()\nexport class TuiLazyLoadingService extends Observable<SafeResourceUrl | string> {\n private readonly src$ = new Subject<SafeResourceUrl | string>();\n private readonly intersections$ = inject(IntersectionObserverService);\n private readonly stream$ = this.src$.pipe(\n switchMap((src) =>\n this.intersections$.pipe(\n filter(([{isIntersecting}]) => isIntersecting),\n map(() => src),\n take(1),\n ),\n ),\n tuiWatch(inject(ChangeDetectorRef)),\n );\n\n constructor() {\n super((subscriber) => this.stream$.subscribe(subscriber));\n }\n\n public next(src: SafeResourceUrl | string): void {\n this.src$.next(src);\n }\n}\n","import {Directive, inject, Input} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport type {SafeResourceUrl} from '@angular/platform-browser';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\n\nimport {TuiLazyLoadingService} from './lazy-loading.service';\n\n@Directive({\n standalone: true,\n selector: 'img[loading=\"lazy\"]',\n providers: [TuiLazyLoadingService, IntersectionObserverService],\n host: {\n '[style.animation]': 'animation',\n '[style.background]': 'background',\n '[attr.src]': 'src',\n '(load)': 'onLoad()',\n },\n})\nexport class TuiImgLazyLoading {\n private readonly el = tuiInjectElement<HTMLImageElement>();\n private readonly src$ = inject(TuiLazyLoadingService);\n protected animation = 'tuiSkeletonVibe ease-in-out 1s infinite alternate';\n protected background = 'var(--tui-background-neutral-2)';\n protected src: SafeResourceUrl | string | null = null;\n\n constructor() {\n if (this.supported) {\n return;\n }\n\n this.src$.pipe(takeUntilDestroyed()).subscribe((src) => {\n this.src = src;\n });\n }\n\n @Input('src')\n public set srcSetter(src: SafeResourceUrl | string) {\n this.src = this.supported ? src : null;\n this.src$.next(src);\n }\n\n protected onLoad(): void {\n this.background = '';\n this.animation = '';\n }\n\n private get supported(): boolean {\n return 'loading' in this.el;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAMA,MACa,qBAAsB,SAAQ,UAAoC,CAAA;AAc3E,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,CAAC,CAAC,UAAU,KAAK,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;AAd7C,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,OAAO,EAA4B,CAAC;AAC/C,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,2BAA2B,CAAC,CAAC;QACrD,IAAO,CAAA,OAAA,GAAG,IAAI,CAAC,IAA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A,mBAAmB,EAAE,WAAW;AAChC,wBAAA,oBAAoB,EAAE,YAAY;AAClC,wBAAA,YAAY,EAAE,KAAK;AACnB,wBAAA,QAAQ,EAAE,UAAU;AACvB,qBAAA;AACJ,iBAAA,CAAA;0EAmBc,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK,CAAA;;;ACpChB;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, Output
|
|
2
|
+
import { Directive, Output } from '@angular/core';
|
|
3
3
|
import { BehaviorSubject, distinctUntilChanged, skip } from 'rxjs';
|
|
4
4
|
|
|
5
5
|
class TuiPresent {
|
|
@@ -23,16 +23,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
23
23
|
selector: '[tuiPresentChange]',
|
|
24
24
|
host: {
|
|
25
25
|
'[style.animation]': '"tuiPresent 1s infinite"',
|
|
26
|
+
'(animationcancel.self)': 'onAnimation(false)',
|
|
27
|
+
'(animationstart.self)': 'onAnimation(true)',
|
|
26
28
|
},
|
|
27
29
|
}]
|
|
28
30
|
}], propDecorators: { tuiPresentChange: [{
|
|
29
31
|
type: Output
|
|
30
|
-
}], onAnimation: [{
|
|
31
|
-
type: HostListener,
|
|
32
|
-
args: ['animationcancel.self', ['false']]
|
|
33
|
-
}, {
|
|
34
|
-
type: HostListener,
|
|
35
|
-
args: ['animationstart.self', ['true']]
|
|
36
32
|
}] } });
|
|
37
33
|
|
|
38
34
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-present.mjs","sources":["../../../projects/kit/directives/present/present.directive.ts","../../../projects/kit/directives/present/taiga-ui-kit-directives-present.ts"],"sourcesContent":["import type {OnDestroy} from '@angular/core';\nimport {Directive,
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-present.mjs","sources":["../../../projects/kit/directives/present/present.directive.ts","../../../projects/kit/directives/present/taiga-ui-kit-directives-present.ts"],"sourcesContent":["import type {OnDestroy} from '@angular/core';\nimport {Directive, Output} from '@angular/core';\nimport {BehaviorSubject, distinctUntilChanged, skip} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiPresentChange]',\n host: {\n '[style.animation]': '\"tuiPresent 1s infinite\"',\n '(animationcancel.self)': 'onAnimation(false)',\n '(animationstart.self)': 'onAnimation(true)',\n },\n})\nexport class TuiPresent implements OnDestroy {\n private readonly visibility$ = new BehaviorSubject(false);\n\n @Output()\n public readonly tuiPresentChange = this.visibility$.pipe(\n distinctUntilChanged(),\n skip(1),\n );\n\n public ngOnDestroy(): void {\n this.visibility$.next(false);\n }\n\n protected onAnimation(visibility: boolean): void {\n this.visibility$.next(visibility);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA,MASa,UAAU,CAAA;AATvB,IAAA,WAAA,GAAA;AAUqB,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC;AAG1C,QAAA,IAAA,CAAA,gBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CACpD,oBAAoB,EAAE,EACtB,IAAI,CAAC,CAAC,CAAC,CACV,CAAC;AASL,KAAA;IAPU,WAAW,GAAA;AACd,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAChC;AAES,IAAA,WAAW,CAAC,UAAmB,EAAA;AACrC,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACrC;+GAfQ,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAV,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,OAAA,EAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,sBAAA,EAAA,oBAAA,EAAA,qBAAA,EAAA,mBAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,4BAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBATtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,IAAI,EAAE;AACF,wBAAA,mBAAmB,EAAE,0BAA0B;AAC/C,wBAAA,wBAAwB,EAAE,oBAAoB;AAC9C,wBAAA,uBAAuB,EAAE,mBAAmB;AAC/C,qBAAA;AACJ,iBAAA,CAAA;8BAKmB,gBAAgB,EAAA,CAAA;sBAD/B,MAAM;;;AChBX;;AAEG;;;;"}
|
|
@@ -21,7 +21,7 @@ class TuiSensitive {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
this.nothing = tuiWithStyles(TuiSensitiveStyles);
|
|
23
23
|
this.offset = Math.round(Math.random() * 10) * 10;
|
|
24
|
-
this.height = toSignal(inject(ResizeObserverService).pipe(map(([{ contentRect }]) => [
|
|
24
|
+
this.height = toSignal(inject(ResizeObserverService, { self: true }).pipe(map(([{ contentRect }]) => [
|
|
25
25
|
Math.max(2, Math.floor(contentRect.height / 16) + 1),
|
|
26
26
|
contentRect.height,
|
|
27
27
|
]), map(([rows, height]) => height * (rowsInSvg / rows)), tuiZonefull(inject(NgZone)), tuiWatch(inject(ChangeDetectorRef))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-sensitive.mjs","sources":["../../../projects/kit/directives/sensitive/sensitive.directive.ts","../../../projects/kit/directives/sensitive/taiga-ui-kit-directives-sensitive.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Directive,\n inject,\n Input,\n NgZone,\n ViewEncapsulation,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {tuiWatch, tuiZonefull} from '@taiga-ui/cdk/observables';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {map} from 'rxjs';\n\nconst rowsInSvg = 3;\n\n@Component({\n standalone: true,\n template: '',\n styleUrls: ['./sensitive.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-sensitive-styles',\n },\n})\nclass TuiSensitiveStyles {}\n\n@Directive({\n standalone: true,\n selector: '[tuiSensitive]',\n providers: [ResizeObserverService],\n host: {\n '[style.--t-offset.px]': 'offset',\n '[style.--t-mask-height.px]': 'height()',\n '[class.tui-sensitive]': 'tuiSensitive',\n },\n})\nexport class TuiSensitive {\n protected readonly nothing = tuiWithStyles(TuiSensitiveStyles);\n protected readonly offset = Math.round(Math.random() * 10) * 10;\n\n protected readonly height = toSignal(\n inject(ResizeObserverService).pipe(\n map(([{contentRect}]) => [\n Math.max(2, Math.floor(contentRect.height / 16) + 1),\n contentRect.height,\n ]),\n map(([rows, height]) => height * (rowsInSvg / rows)),\n tuiZonefull(inject(NgZone)),\n tuiWatch(inject(ChangeDetectorRef)),\n ),\n );\n\n @Input()\n public tuiSensitive: boolean | null = false;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAgBA,MAAM,SAAS,GAAG,CAAC,CAAC;AAEpB,MAUM,kBAAkB,CAAA;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,kBAAkB,0HARV,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,msNAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;4FAQV,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAVvB,SAAS;iCACM,IAAI,EAAA,QAAA,EACN,EAAE,EAAA,aAAA,EAEG,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA;AACF,wBAAA,KAAK,EAAE,sBAAsB;AAChC,qBAAA,EAAA,MAAA,EAAA,CAAA,msNAAA,CAAA,EAAA,CAAA;;AAIL,MAUa,YAAY,CAAA;AAVzB,IAAA,WAAA,GAAA;AAWuB,QAAA,IAAA,CAAA,OAAO,GAAG,aAAa,CAAC,kBAAkB,CAAC,CAAC;AAC5C,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC;QAE7C,IAAM,CAAA,MAAA,GAAG,QAAQ,CAChC,MAAM,CAAC,qBAAqB,CAAC,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-sensitive.mjs","sources":["../../../projects/kit/directives/sensitive/sensitive.directive.ts","../../../projects/kit/directives/sensitive/taiga-ui-kit-directives-sensitive.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Directive,\n inject,\n Input,\n NgZone,\n ViewEncapsulation,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {tuiWatch, tuiZonefull} from '@taiga-ui/cdk/observables';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {map} from 'rxjs';\n\nconst rowsInSvg = 3;\n\n@Component({\n standalone: true,\n template: '',\n styleUrls: ['./sensitive.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-sensitive-styles',\n },\n})\nclass TuiSensitiveStyles {}\n\n@Directive({\n standalone: true,\n selector: '[tuiSensitive]',\n providers: [ResizeObserverService],\n host: {\n '[style.--t-offset.px]': 'offset',\n '[style.--t-mask-height.px]': 'height()',\n '[class.tui-sensitive]': 'tuiSensitive',\n },\n})\nexport class TuiSensitive {\n protected readonly nothing = tuiWithStyles(TuiSensitiveStyles);\n protected readonly offset = Math.round(Math.random() * 10) * 10;\n\n protected readonly height = toSignal(\n inject(ResizeObserverService, {self: true}).pipe(\n map(([{contentRect}]) => [\n Math.max(2, Math.floor(contentRect.height / 16) + 1),\n contentRect.height,\n ]),\n map(([rows, height]) => height * (rowsInSvg / rows)),\n tuiZonefull(inject(NgZone)),\n tuiWatch(inject(ChangeDetectorRef)),\n ),\n );\n\n @Input()\n public tuiSensitive: boolean | null = false;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAgBA,MAAM,SAAS,GAAG,CAAC,CAAC;AAEpB,MAUM,kBAAkB,CAAA;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,kBAAkB,0HARV,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,msNAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,E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Y,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,EAAA,YAAA,EAAA,cAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,cAAA,EAAA,EAAA,EAAA,SAAA,EAPV,CAAC,qBAAqB,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAOzB,YAAY,EAAA,UAAA,EAAA,CAAA;kBAVxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,gBAAgB;oBAC1B,SAAS,EAAE,CAAC,qBAAqB,CAAC;AAClC,oBAAA,IAAI,EAAE;AACF,wBAAA,uBAAuB,EAAE,QAAQ;AACjC,wBAAA,4BAA4B,EAAE,UAAU;AACxC,wBAAA,uBAAuB,EAAE,cAAc;AAC1C,qBAAA;AACJ,iBAAA,CAAA;8BAkBU,YAAY,EAAA,CAAA;sBADlB,KAAK;;;ACxDV;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ViewEncapsulation, ChangeDetectionStrategy, inject, ChangeDetectorRef, Directive
|
|
2
|
+
import { Component, ViewEncapsulation, ChangeDetectionStrategy, inject, ChangeDetectorRef, Directive } from '@angular/core';
|
|
3
3
|
import { toSignal } from '@angular/core/rxjs-interop';
|
|
4
4
|
import { tuiWatch } from '@taiga-ui/cdk/observables';
|
|
5
5
|
import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
|
|
@@ -81,12 +81,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
81
81
|
inputs: ['tuiHint: tuiTooltip', 'tuiHintAppearance', 'tuiHintContext'],
|
|
82
82
|
},
|
|
83
83
|
],
|
|
84
|
-
host: {
|
|
84
|
+
host: {
|
|
85
|
+
tuiTooltip: '',
|
|
86
|
+
'(mousedown)': 'stopOnMobile($event)',
|
|
87
|
+
},
|
|
85
88
|
}]
|
|
86
|
-
}]
|
|
87
|
-
type: HostListener,
|
|
88
|
-
args: ['mousedown', ['$event']]
|
|
89
|
-
}] } });
|
|
89
|
+
}] });
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-tooltip.mjs","sources":["../../../projects/kit/directives/tooltip/tooltip.directive.ts","../../../projects/kit/directives/tooltip/taiga-ui-kit-directives-tooltip.ts"],"sourcesContent":["import type {DoCheck, Signal} from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Directive,\n
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-tooltip.mjs","sources":["../../../projects/kit/directives/tooltip/tooltip.directive.ts","../../../projects/kit/directives/tooltip/taiga-ui-kit-directives-tooltip.ts"],"sourcesContent":["import type {DoCheck, Signal} from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Directive,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_APPEARANCE_OPTIONS,\n tuiAppearanceState,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {\n TUI_HINT_OPTIONS,\n TuiHintDescribe,\n TuiHintDirective,\n TuiHintHover,\n} from '@taiga-ui/core/directives/hint';\nimport {TUI_ICON_START} from '@taiga-ui/core/tokens';\nimport {map} from 'rxjs';\n\n@Component({\n standalone: true,\n template: '',\n styleUrls: ['./tooltip.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-tooltip',\n },\n})\nclass TuiTooltipStyles {}\n\n@Directive({\n standalone: true,\n selector: 'tui-icon[tuiTooltip]',\n providers: [\n {\n provide: TUI_APPEARANCE_OPTIONS,\n useValue: {appearance: 'icon'},\n },\n {\n provide: TUI_ICON_START,\n useFactory: () => inject(TUI_HINT_OPTIONS).icon,\n },\n ],\n hostDirectives: [\n TuiWithAppearance,\n {\n directive: TuiHintDescribe,\n inputs: ['tuiHintDescribe'],\n },\n {\n directive: TuiHintDirective,\n inputs: ['tuiHint: tuiTooltip', 'tuiHintAppearance', 'tuiHintContext'],\n },\n ],\n host: {\n tuiTooltip: '',\n '(mousedown)': 'stopOnMobile($event)',\n },\n})\nexport class TuiTooltip implements DoCheck {\n private readonly textfield = inject(TuiTextfieldComponent, {optional: true});\n private readonly isMobile = inject(TUI_IS_MOBILE);\n private readonly describe = inject(TuiHintDescribe);\n private readonly driver = inject(TuiHintHover);\n\n protected readonly nothing = tuiWithStyles(TuiTooltipStyles);\n protected readonly state: Signal<unknown> = tuiAppearanceState(\n toSignal(\n inject(TuiHintHover).pipe(\n map((hover) => (hover ? 'hover' : null)),\n tuiWatch(inject(ChangeDetectorRef)),\n ),\n {initialValue: null},\n ),\n );\n\n public ngDoCheck(): void {\n if (this.textfield?.id) {\n this.describe.tuiHintDescribe = this.textfield.id;\n }\n }\n\n protected stopOnMobile(event: MouseEvent): void {\n if (this.isMobile) {\n event.preventDefault();\n event.stopPropagation();\n }\n\n this.driver.toggle();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;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,EAAE;AACd,wBAAA,aAAa,EAAE,sBAAsB;AACxC,qBAAA;AACJ,iBAAA,CAAA;;;ACpED;;AAEG;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from '@taiga-ui/kit/directives/button-close';
|
|
2
2
|
export * from '@taiga-ui/kit/directives/button-group';
|
|
3
|
+
export * from '@taiga-ui/kit/directives/button-select';
|
|
3
4
|
export * from '@taiga-ui/kit/directives/chevron';
|
|
4
5
|
export * from '@taiga-ui/kit/directives/connected';
|
|
5
6
|
export * from '@taiga-ui/kit/directives/data-list-dropdown-manager';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives.mjs","sources":["../../../projects/kit/directives/taiga-ui-kit-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives.mjs","sources":["../../../projects/kit/directives/taiga-ui-kit-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;AAEG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/kit",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "Taiga UI Angular main components kit",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -335,6 +335,12 @@
|
|
|
335
335
|
"esm": "./esm2022/directives/button-group/taiga-ui-kit-directives-button-group.mjs",
|
|
336
336
|
"default": "./fesm2022/taiga-ui-kit-directives-button-group.mjs"
|
|
337
337
|
},
|
|
338
|
+
"./directives/button-select": {
|
|
339
|
+
"types": "./directives/button-select/index.d.ts",
|
|
340
|
+
"esm2022": "./esm2022/directives/button-select/taiga-ui-kit-directives-button-select.mjs",
|
|
341
|
+
"esm": "./esm2022/directives/button-select/taiga-ui-kit-directives-button-select.mjs",
|
|
342
|
+
"default": "./fesm2022/taiga-ui-kit-directives-button-select.mjs"
|
|
343
|
+
},
|
|
338
344
|
"./directives/chevron": {
|
|
339
345
|
"types": "./directives/chevron/index.d.ts",
|
|
340
346
|
"esm2022": "./esm2022/directives/chevron/taiga-ui-kit-directives-chevron.mjs",
|
|
@@ -467,17 +473,17 @@
|
|
|
467
473
|
"@angular/core": ">=16.0.0",
|
|
468
474
|
"@angular/forms": ">=16.0.0",
|
|
469
475
|
"@angular/router": ">=16.0.0",
|
|
470
|
-
"@maskito/angular": "^3.0.
|
|
471
|
-
"@maskito/core": "^3.0.
|
|
472
|
-
"@maskito/kit": "^3.0.
|
|
473
|
-
"@maskito/phone": "^3.0.
|
|
476
|
+
"@maskito/angular": "^3.0.1",
|
|
477
|
+
"@maskito/core": "^3.0.1",
|
|
478
|
+
"@maskito/kit": "^3.0.1",
|
|
479
|
+
"@maskito/phone": "^3.0.1",
|
|
474
480
|
"@ng-web-apis/common": "^4.2.1",
|
|
475
481
|
"@ng-web-apis/intersection-observer": "^4.2.1",
|
|
476
482
|
"@ng-web-apis/mutation-observer": "^4.2.1",
|
|
477
483
|
"@ng-web-apis/resize-observer": "^4.2.1",
|
|
478
|
-
"@taiga-ui/cdk": "^4.
|
|
479
|
-
"@taiga-ui/core": "^4.
|
|
480
|
-
"@taiga-ui/i18n": "^4.
|
|
484
|
+
"@taiga-ui/cdk": "^4.3.0",
|
|
485
|
+
"@taiga-ui/core": "^4.3.0",
|
|
486
|
+
"@taiga-ui/i18n": "^4.3.0",
|
|
481
487
|
"@taiga-ui/polymorpheus": "^4.6.4",
|
|
482
488
|
"rxjs": ">=7.0.0"
|
|
483
489
|
},
|