@taiga-ui/experimental 3.41.1-canary.1db8e7a
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/LICENSE +190 -0
- package/README.md +34 -0
- package/bundles/taiga-ui-experimental-components-avatar-stack.umd.js +78 -0
- package/bundles/taiga-ui-experimental-components-avatar-stack.umd.js.map +1 -0
- package/bundles/taiga-ui-experimental-components-avatar.umd.js +136 -0
- package/bundles/taiga-ui-experimental-components-avatar.umd.js.map +1 -0
- package/bundles/taiga-ui-experimental-components-fade.umd.js +144 -0
- package/bundles/taiga-ui-experimental-components-fade.umd.js.map +1 -0
- package/bundles/taiga-ui-experimental-components.umd.js +33 -0
- package/bundles/taiga-ui-experimental-components.umd.js.map +1 -0
- package/bundles/taiga-ui-experimental-pipes-auto-color.umd.js +70 -0
- package/bundles/taiga-ui-experimental-pipes-auto-color.umd.js.map +1 -0
- package/bundles/taiga-ui-experimental-pipes-fallback-src.umd.js +76 -0
- package/bundles/taiga-ui-experimental-pipes-fallback-src.umd.js.map +1 -0
- package/bundles/taiga-ui-experimental-pipes-initials.umd.js +396 -0
- package/bundles/taiga-ui-experimental-pipes-initials.umd.js.map +1 -0
- package/bundles/taiga-ui-experimental-pipes.umd.js +33 -0
- package/bundles/taiga-ui-experimental-pipes.umd.js.map +1 -0
- package/bundles/taiga-ui-experimental.umd.js +27 -0
- package/bundles/taiga-ui-experimental.umd.js.map +1 -0
- package/components/avatar/avatar.component.d.ts +12 -0
- package/components/avatar/avatar.module.d.ts +12 -0
- package/components/avatar/index.d.ts +2 -0
- package/components/avatar/package.json +10 -0
- package/components/avatar/taiga-ui-experimental-components-avatar.d.ts +5 -0
- package/components/avatar-stack/avatar-stack.component.d.ts +7 -0
- package/components/avatar-stack/avatar-stack.module.d.ts +8 -0
- package/components/avatar-stack/index.d.ts +2 -0
- package/components/avatar-stack/package.json +10 -0
- package/components/avatar-stack/taiga-ui-experimental-components-avatar-stack.d.ts +5 -0
- package/components/fade/fade.component.d.ts +14 -0
- package/components/fade/fade.module.d.ts +7 -0
- package/components/fade/index.d.ts +2 -0
- package/components/fade/package.json +10 -0
- package/components/fade/taiga-ui-experimental-components-fade.d.ts +5 -0
- package/components/index.d.ts +3 -0
- package/components/package.json +10 -0
- package/components/taiga-ui-experimental-components.d.ts +5 -0
- package/esm2015/components/avatar/avatar.component.js +55 -0
- package/esm2015/components/avatar/avatar.module.js +38 -0
- package/esm2015/components/avatar/index.js +3 -0
- package/esm2015/components/avatar/taiga-ui-experimental-components-avatar.js +5 -0
- package/esm2015/components/avatar-stack/avatar-stack.component.js +25 -0
- package/esm2015/components/avatar-stack/avatar-stack.module.js +18 -0
- package/esm2015/components/avatar-stack/index.js +3 -0
- package/esm2015/components/avatar-stack/taiga-ui-experimental-components-avatar-stack.js +5 -0
- package/esm2015/components/fade/fade.component.js +93 -0
- package/esm2015/components/fade/fade.module.js +16 -0
- package/esm2015/components/fade/index.js +3 -0
- package/esm2015/components/fade/taiga-ui-experimental-components-fade.js +5 -0
- package/esm2015/components/index.js +4 -0
- package/esm2015/components/taiga-ui-experimental-components.js +5 -0
- package/esm2015/index.js +3 -0
- package/esm2015/pipes/auto-color/auto-color.module.js +16 -0
- package/esm2015/pipes/auto-color/auto-color.pipe.js +17 -0
- package/esm2015/pipes/auto-color/index.js +3 -0
- package/esm2015/pipes/auto-color/taiga-ui-experimental-pipes-auto-color.js +5 -0
- package/esm2015/pipes/fallback-src/fallback-src.module.js +16 -0
- package/esm2015/pipes/fallback-src/fallback-src.pipe.js +25 -0
- package/esm2015/pipes/fallback-src/index.js +3 -0
- package/esm2015/pipes/fallback-src/taiga-ui-experimental-pipes-fallback-src.js +5 -0
- package/esm2015/pipes/index.js +4 -0
- package/esm2015/pipes/initials/index.js +3 -0
- package/esm2015/pipes/initials/initials.module.js +16 -0
- package/esm2015/pipes/initials/initials.pipe.js +21 -0
- package/esm2015/pipes/initials/taiga-ui-experimental-pipes-initials.js +5 -0
- package/esm2015/pipes/taiga-ui-experimental-pipes.js +5 -0
- package/esm2015/taiga-ui-experimental.js +5 -0
- package/fesm2015/taiga-ui-experimental-components-avatar-stack.js +47 -0
- package/fesm2015/taiga-ui-experimental-components-avatar-stack.js.map +1 -0
- package/fesm2015/taiga-ui-experimental-components-avatar.js +97 -0
- package/fesm2015/taiga-ui-experimental-components-avatar.js.map +1 -0
- package/fesm2015/taiga-ui-experimental-components-fade.js +113 -0
- package/fesm2015/taiga-ui-experimental-components-fade.js.map +1 -0
- package/fesm2015/taiga-ui-experimental-components.js +8 -0
- package/fesm2015/taiga-ui-experimental-components.js.map +1 -0
- package/fesm2015/taiga-ui-experimental-pipes-auto-color.js +37 -0
- package/fesm2015/taiga-ui-experimental-pipes-auto-color.js.map +1 -0
- package/fesm2015/taiga-ui-experimental-pipes-fallback-src.js +45 -0
- package/fesm2015/taiga-ui-experimental-pipes-fallback-src.js.map +1 -0
- package/fesm2015/taiga-ui-experimental-pipes-initials.js +41 -0
- package/fesm2015/taiga-ui-experimental-pipes-initials.js.map +1 -0
- package/fesm2015/taiga-ui-experimental-pipes.js +8 -0
- package/fesm2015/taiga-ui-experimental-pipes.js.map +1 -0
- package/fesm2015/taiga-ui-experimental.js +7 -0
- package/fesm2015/taiga-ui-experimental.js.map +1 -0
- package/index.d.ts +2 -0
- package/package.json +32 -0
- package/pipes/auto-color/auto-color.module.d.ts +7 -0
- package/pipes/auto-color/auto-color.pipe.d.ts +7 -0
- package/pipes/auto-color/index.d.ts +2 -0
- package/pipes/auto-color/package.json +10 -0
- package/pipes/auto-color/taiga-ui-experimental-pipes-auto-color.d.ts +5 -0
- package/pipes/fallback-src/fallback-src.module.d.ts +7 -0
- package/pipes/fallback-src/fallback-src.pipe.d.ts +10 -0
- package/pipes/fallback-src/index.d.ts +2 -0
- package/pipes/fallback-src/package.json +10 -0
- package/pipes/fallback-src/taiga-ui-experimental-pipes-fallback-src.d.ts +5 -0
- package/pipes/index.d.ts +3 -0
- package/pipes/initials/index.d.ts +2 -0
- package/pipes/initials/initials.module.d.ts +7 -0
- package/pipes/initials/initials.pipe.d.ts +7 -0
- package/pipes/initials/package.json +10 -0
- package/pipes/initials/taiga-ui-experimental-pipes-initials.d.ts +5 -0
- package/pipes/package.json +10 -0
- package/pipes/taiga-ui-experimental-pipes.d.ts +5 -0
- package/taiga-ui-experimental.d.ts +5 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ElementRef, NgZone, Component, ChangeDetectionStrategy, Self, Inject, Input, HostBinding, NgModule } from '@angular/core';
|
|
3
|
+
import { MutationObserverService, MUTATION_OBSERVER_INIT } from '@ng-web-apis/mutation-observer';
|
|
4
|
+
import { tuiZonefree, TuiDestroyService, TuiResizeService } from '@taiga-ui/cdk';
|
|
5
|
+
import * as i1 from 'rxjs';
|
|
6
|
+
import { merge, fromEvent } from 'rxjs';
|
|
7
|
+
import { takeUntil } from 'rxjs/operators';
|
|
8
|
+
|
|
9
|
+
class TuiFadeComponent {
|
|
10
|
+
constructor(destroy$, resize$, mutate$, element, zone) {
|
|
11
|
+
this.lineHeight = '100%';
|
|
12
|
+
this.size = '1.5em';
|
|
13
|
+
this.offset = '0em';
|
|
14
|
+
this.orientation = 'horizontal';
|
|
15
|
+
const el = element.nativeElement;
|
|
16
|
+
merge(resize$, mutate$, fromEvent(el, 'scroll'))
|
|
17
|
+
.pipe(tuiZonefree(zone), takeUntil(destroy$))
|
|
18
|
+
.subscribe(() => {
|
|
19
|
+
el.classList.toggle('_start', !!el.scrollLeft || !!el.scrollTop);
|
|
20
|
+
el.classList.toggle('_end', this.isEnd(el));
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
isEnd(el) {
|
|
24
|
+
return (el.scrollLeft < el.scrollWidth - el.clientWidth ||
|
|
25
|
+
el.scrollTop < el.scrollHeight - el.clientHeight ||
|
|
26
|
+
(this.orientation === 'horizontal' && el.scrollHeight > el.clientHeight));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
TuiFadeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFadeComponent, deps: [{ token: TuiDestroyService, self: true }, { token: TuiResizeService }, { token: MutationObserverService }, { token: ElementRef }, { token: NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
+
TuiFadeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiFadeComponent, selector: "tui-fade", inputs: { lineHeight: "lineHeight", size: "size", offset: "offset", orientation: "orientation" }, host: { properties: { "style.--line-height": "this.lineHeight", "style.--fade-size": "this.size", "style.--fade-offset": "this.offset", "attr.data-orientation": "this.orientation" } }, providers: [
|
|
31
|
+
TuiDestroyService,
|
|
32
|
+
TuiResizeService,
|
|
33
|
+
MutationObserverService,
|
|
34
|
+
{
|
|
35
|
+
provide: MUTATION_OBSERVER_INIT,
|
|
36
|
+
useValue: { characterData: true, subtree: true },
|
|
37
|
+
},
|
|
38
|
+
], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host{transition-property:-webkit-mask-position;transition-property:mask-position;transition-property:mask-position,-webkit-mask-position;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;overflow:hidden;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}:host[data-orientation=horizontal]{line-height:var(--line-height)!important;-webkit-mask-image:linear-gradient(to right,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to left,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(#000,#000);mask-image:linear-gradient(to right,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to left,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(#000,#000);-webkit-mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top;mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top;-webkit-mask-size:calc(50% + var(--fade-size) + var(--fade-offset)) var(--line-height),calc(50% + var(--fade-size) + var(--fade-offset)) var(--line-height),100% calc(100% - var(--line-height));mask-size:calc(50% + var(--fade-size) + var(--fade-offset)) var(--line-height),calc(50% + var(--fade-size) + var(--fade-offset)) var(--line-height),100% calc(100% - var(--line-height))}:host[data-orientation=horizontal]._start{-webkit-mask-position:left bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top}:host[data-orientation=horizontal]._end{-webkit-mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,right bottom,top}:host[data-orientation=horizontal]._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}:host[data-orientation=vertical]{-webkit-mask-image:linear-gradient(to bottom,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to top,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset)));mask-image:linear-gradient(to bottom,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to top,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset)));-webkit-mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left calc(100% + var(--fade-size) + var(--fade-offset));mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left calc(100% + var(--fade-size) + var(--fade-offset));-webkit-mask-size:100% calc(50% + var(--fade-size) + var(--fade-offset));mask-size:100% calc(50% + var(--fade-size) + var(--fade-offset))}:host[data-orientation=vertical]._start{-webkit-mask-position:left top,left calc(100% + var(--fade-size) + var(--fade-offset));mask-position:left top,left calc(100% + var(--fade-size) + var(--fade-offset))}:host[data-orientation=vertical]._end{-webkit-mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left bottom;mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left bottom}:host[data-orientation=vertical]._start._end{-webkit-mask-position:left top,left bottom;mask-position:left top,left bottom}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFadeComponent, decorators: [{
|
|
40
|
+
type: Component,
|
|
41
|
+
args: [{
|
|
42
|
+
selector: 'tui-fade',
|
|
43
|
+
template: '<ng-content></ng-content>',
|
|
44
|
+
styleUrls: ['./fade.style.less'],
|
|
45
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
46
|
+
providers: [
|
|
47
|
+
TuiDestroyService,
|
|
48
|
+
TuiResizeService,
|
|
49
|
+
MutationObserverService,
|
|
50
|
+
{
|
|
51
|
+
provide: MUTATION_OBSERVER_INIT,
|
|
52
|
+
useValue: { characterData: true, subtree: true },
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
}]
|
|
56
|
+
}], ctorParameters: function () { return [{ type: i1.Observable, decorators: [{
|
|
57
|
+
type: Self
|
|
58
|
+
}, {
|
|
59
|
+
type: Inject,
|
|
60
|
+
args: [TuiDestroyService]
|
|
61
|
+
}] }, { type: i1.Observable, decorators: [{
|
|
62
|
+
type: Inject,
|
|
63
|
+
args: [TuiResizeService]
|
|
64
|
+
}] }, { type: i1.Observable, decorators: [{
|
|
65
|
+
type: Inject,
|
|
66
|
+
args: [MutationObserverService]
|
|
67
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
68
|
+
type: Inject,
|
|
69
|
+
args: [ElementRef]
|
|
70
|
+
}] }, { type: i0.NgZone, decorators: [{
|
|
71
|
+
type: Inject,
|
|
72
|
+
args: [NgZone]
|
|
73
|
+
}] }]; }, propDecorators: { lineHeight: [{
|
|
74
|
+
type: Input
|
|
75
|
+
}, {
|
|
76
|
+
type: HostBinding,
|
|
77
|
+
args: ['style.--line-height']
|
|
78
|
+
}], size: [{
|
|
79
|
+
type: Input
|
|
80
|
+
}, {
|
|
81
|
+
type: HostBinding,
|
|
82
|
+
args: ['style.--fade-size']
|
|
83
|
+
}], offset: [{
|
|
84
|
+
type: Input
|
|
85
|
+
}, {
|
|
86
|
+
type: HostBinding,
|
|
87
|
+
args: ['style.--fade-offset']
|
|
88
|
+
}], orientation: [{
|
|
89
|
+
type: Input
|
|
90
|
+
}, {
|
|
91
|
+
type: HostBinding,
|
|
92
|
+
args: ['attr.data-orientation']
|
|
93
|
+
}] } });
|
|
94
|
+
|
|
95
|
+
class TuiFadeModule {
|
|
96
|
+
}
|
|
97
|
+
TuiFadeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFadeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
98
|
+
TuiFadeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFadeModule, declarations: [TuiFadeComponent], exports: [TuiFadeComponent] });
|
|
99
|
+
TuiFadeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFadeModule });
|
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFadeModule, decorators: [{
|
|
101
|
+
type: NgModule,
|
|
102
|
+
args: [{
|
|
103
|
+
declarations: [TuiFadeComponent],
|
|
104
|
+
exports: [TuiFadeComponent],
|
|
105
|
+
}]
|
|
106
|
+
}] });
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Generated bundle index. Do not edit.
|
|
110
|
+
*/
|
|
111
|
+
|
|
112
|
+
export { TuiFadeComponent, TuiFadeModule };
|
|
113
|
+
//# sourceMappingURL=taiga-ui-experimental-components-fade.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-experimental-components-fade.js","sources":["../../../projects/experimental/components/fade/fade.component.ts","../../../projects/experimental/components/fade/fade.module.ts","../../../projects/experimental/components/fade/taiga-ui-experimental-components-fade.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n NgZone,\n Self,\n} from '@angular/core';\nimport {\n MUTATION_OBSERVER_INIT,\n MutationObserverService,\n} from '@ng-web-apis/mutation-observer';\nimport {TuiDestroyService, TuiResizeService, tuiZonefree} from '@taiga-ui/cdk';\nimport {TuiOrientation} from '@taiga-ui/core';\nimport {fromEvent, merge, Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n@Component({\n selector: 'tui-fade',\n template: '<ng-content></ng-content>',\n styleUrls: ['./fade.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n TuiDestroyService,\n TuiResizeService,\n MutationObserverService,\n {\n provide: MUTATION_OBSERVER_INIT,\n useValue: {characterData: true, subtree: true},\n },\n ],\n})\nexport class TuiFadeComponent {\n @Input()\n @HostBinding('style.--line-height')\n lineHeight = '100%';\n\n @Input()\n @HostBinding('style.--fade-size')\n size = '1.5em';\n\n @Input()\n @HostBinding('style.--fade-offset')\n offset = '0em';\n\n @Input()\n @HostBinding('attr.data-orientation')\n orientation: TuiOrientation = 'horizontal';\n\n constructor(\n @Self() @Inject(TuiDestroyService) destroy$: Observable<unknown>,\n @Inject(TuiResizeService) resize$: Observable<unknown>,\n @Inject(MutationObserverService) mutate$: Observable<unknown>,\n @Inject(ElementRef) element: ElementRef<HTMLElement>,\n @Inject(NgZone) zone: NgZone,\n ) {\n const el = element.nativeElement;\n\n merge(resize$, mutate$, fromEvent(el, 'scroll'))\n .pipe(tuiZonefree(zone), takeUntil(destroy$))\n .subscribe(() => {\n el.classList.toggle('_start', !!el.scrollLeft || !!el.scrollTop);\n el.classList.toggle('_end', this.isEnd(el));\n });\n }\n\n private isEnd(el: HTMLElement): boolean {\n return (\n el.scrollLeft < el.scrollWidth - el.clientWidth ||\n el.scrollTop < el.scrollHeight - el.clientHeight ||\n (this.orientation === 'horizontal' && el.scrollHeight > el.clientHeight)\n );\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFadeComponent} from './fade.component';\n\n@NgModule({\n declarations: [TuiFadeComponent],\n exports: [TuiFadeComponent],\n})\nexport class TuiFadeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from '@taiga-ui/experimental/components/avatar';
|
|
2
|
+
export * from '@taiga-ui/experimental/components/avatar-stack';
|
|
3
|
+
export * from '@taiga-ui/experimental/components/fade';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Generated bundle index. Do not edit.
|
|
7
|
+
*/
|
|
8
|
+
//# sourceMappingURL=taiga-ui-experimental-components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-experimental-components.js","sources":["../../../projects/experimental/components/taiga-ui-experimental-components.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;AAEG"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Pipe, NgModule } from '@angular/core';
|
|
3
|
+
import { tuiStringHashToHsl } from '@taiga-ui/kit';
|
|
4
|
+
|
|
5
|
+
class TuiAutoColorPipe {
|
|
6
|
+
transform(text) {
|
|
7
|
+
return tuiStringHashToHsl(text);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
TuiAutoColorPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiAutoColorPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
11
|
+
TuiAutoColorPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiAutoColorPipe, name: "tuiAutoColor" });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiAutoColorPipe, decorators: [{
|
|
13
|
+
type: Pipe,
|
|
14
|
+
args: [{
|
|
15
|
+
name: `tuiAutoColor`,
|
|
16
|
+
}]
|
|
17
|
+
}] });
|
|
18
|
+
|
|
19
|
+
class TuiAutoColorModule {
|
|
20
|
+
}
|
|
21
|
+
TuiAutoColorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiAutoColorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
22
|
+
TuiAutoColorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiAutoColorModule, declarations: [TuiAutoColorPipe], exports: [TuiAutoColorPipe] });
|
|
23
|
+
TuiAutoColorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiAutoColorModule });
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiAutoColorModule, decorators: [{
|
|
25
|
+
type: NgModule,
|
|
26
|
+
args: [{
|
|
27
|
+
declarations: [TuiAutoColorPipe],
|
|
28
|
+
exports: [TuiAutoColorPipe],
|
|
29
|
+
}]
|
|
30
|
+
}] });
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Generated bundle index. Do not edit.
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
export { TuiAutoColorModule, TuiAutoColorPipe };
|
|
37
|
+
//# sourceMappingURL=taiga-ui-experimental-pipes-auto-color.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-experimental-pipes-auto-color.js","sources":["../../../projects/experimental/pipes/auto-color/auto-color.pipe.ts","../../../projects/experimental/pipes/auto-color/auto-color.module.ts","../../../projects/experimental/pipes/auto-color/taiga-ui-experimental-pipes-auto-color.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {tuiStringHashToHsl} from '@taiga-ui/kit';\n\n@Pipe({\n name: `tuiAutoColor`,\n})\nexport class TuiAutoColorPipe implements PipeTransform {\n transform(text: string): string {\n return tuiStringHashToHsl(text);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiAutoColorPipe} from './auto-color.pipe';\n\n@NgModule({\n declarations: [TuiAutoColorPipe],\n exports: [TuiAutoColorPipe],\n})\nexport class TuiAutoColorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAMa,gBAAgB,CAAA;AACzB,IAAA,SAAS,CAAC,IAAY,EAAA;AAClB,QAAA,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC;KACnC;;8GAHQ,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAhB,gBAAgB,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,CAAA;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,CAAc,YAAA,CAAA;AACvB,iBAAA,CAAA;;;MCGY,kBAAkB,CAAA;;gHAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;iHAAlB,kBAAkB,EAAA,YAAA,EAAA,CAHZ,gBAAgB,CAAA,EAAA,OAAA,EAAA,CACrB,gBAAgB,CAAA,EAAA,CAAA,CAAA;iHAEjB,kBAAkB,EAAA,CAAA,CAAA;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;oBAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC9B,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ElementRef, Pipe, Inject, NgModule } from '@angular/core';
|
|
3
|
+
import { TUI_ICON_ERROR } from '@taiga-ui/core';
|
|
4
|
+
import { merge, fromEvent } from 'rxjs';
|
|
5
|
+
import { map, startWith } from 'rxjs/operators';
|
|
6
|
+
|
|
7
|
+
class TuiFallbackSrcPipe {
|
|
8
|
+
constructor(el) {
|
|
9
|
+
this.el = el;
|
|
10
|
+
}
|
|
11
|
+
transform(src, fallback) {
|
|
12
|
+
return merge(fromEvent(this.el.nativeElement, TUI_ICON_ERROR), fromEvent(this.el.nativeElement, `error`, { capture: true })).pipe(map(() => fallback), startWith(src));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
TuiFallbackSrcPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFallbackSrcPipe, deps: [{ token: ElementRef }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
16
|
+
TuiFallbackSrcPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFallbackSrcPipe, name: "tuiFallbackSrc" });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFallbackSrcPipe, decorators: [{
|
|
18
|
+
type: Pipe,
|
|
19
|
+
args: [{
|
|
20
|
+
name: `tuiFallbackSrc`,
|
|
21
|
+
}]
|
|
22
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
|
|
23
|
+
type: Inject,
|
|
24
|
+
args: [ElementRef]
|
|
25
|
+
}] }]; } });
|
|
26
|
+
|
|
27
|
+
class TuiFallbackSrcModule {
|
|
28
|
+
}
|
|
29
|
+
TuiFallbackSrcModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFallbackSrcModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
30
|
+
TuiFallbackSrcModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFallbackSrcModule, declarations: [TuiFallbackSrcPipe], exports: [TuiFallbackSrcPipe] });
|
|
31
|
+
TuiFallbackSrcModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFallbackSrcModule });
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFallbackSrcModule, decorators: [{
|
|
33
|
+
type: NgModule,
|
|
34
|
+
args: [{
|
|
35
|
+
declarations: [TuiFallbackSrcPipe],
|
|
36
|
+
exports: [TuiFallbackSrcPipe],
|
|
37
|
+
}]
|
|
38
|
+
}] });
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Generated bundle index. Do not edit.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
export { TuiFallbackSrcModule, TuiFallbackSrcPipe };
|
|
45
|
+
//# sourceMappingURL=taiga-ui-experimental-pipes-fallback-src.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-experimental-pipes-fallback-src.js","sources":["../../../projects/experimental/pipes/fallback-src/fallback-src.pipe.ts","../../../projects/experimental/pipes/fallback-src/fallback-src.module.ts","../../../projects/experimental/pipes/fallback-src/taiga-ui-experimental-pipes-fallback-src.ts"],"sourcesContent":["import {ElementRef, Inject, Pipe, PipeTransform} from '@angular/core';\nimport {TUI_ICON_ERROR} from '@taiga-ui/core';\nimport {fromEvent, merge, Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\n@Pipe({\n name: `tuiFallbackSrc`,\n})\nexport class TuiFallbackSrcPipe implements PipeTransform {\n constructor(@Inject(ElementRef) private readonly el: ElementRef<HTMLElement>) {}\n\n transform(src: string, fallback: string): Observable<string> {\n return merge(\n fromEvent(this.el.nativeElement, TUI_ICON_ERROR),\n fromEvent(this.el.nativeElement, `error`, {capture: true}),\n ).pipe(\n map(() => fallback),\n startWith(src),\n );\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFallbackSrcPipe} from './fallback-src.pipe';\n\n@NgModule({\n declarations: [TuiFallbackSrcPipe],\n exports: [TuiFallbackSrcPipe],\n})\nexport class TuiFallbackSrcModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAQa,kBAAkB,CAAA;AAC3B,IAAA,WAAA,CAAiD,EAA2B,EAAA;QAA3B,IAAE,CAAA,EAAA,GAAF,EAAE,CAAyB;KAAI;IAEhF,SAAS,CAAC,GAAW,EAAE,QAAgB,EAAA;QACnC,OAAO,KAAK,CACR,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,EAAE,cAAc,CAAC,EAChD,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,EAAE,CAAO,KAAA,CAAA,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,CAC7D,CAAC,IAAI,CACF,GAAG,CAAC,MAAM,QAAQ,CAAC,EACnB,SAAS,CAAC,GAAG,CAAC,CACjB,CAAC;KACL;;AAXQ,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,kBACP,UAAU,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;8GADrB,kBAAkB,EAAA,IAAA,EAAA,gBAAA,EAAA,CAAA,CAAA;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAH9B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,CAAgB,cAAA,CAAA;AACzB,iBAAA,CAAA;;0BAEgB,MAAM;2BAAC,UAAU,CAAA;;;MCDrB,oBAAoB,CAAA;;kHAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;mHAApB,oBAAoB,EAAA,YAAA,EAAA,CAHd,kBAAkB,CAAA,EAAA,OAAA,EAAA,CACvB,kBAAkB,CAAA,EAAA,CAAA,CAAA;mHAEnB,oBAAoB,EAAA,CAAA,CAAA;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,kBAAkB,CAAC;oBAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAChC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Pipe, NgModule } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
class TuiInitialsPipe {
|
|
5
|
+
transform(text) {
|
|
6
|
+
return text
|
|
7
|
+
.toUpperCase()
|
|
8
|
+
.split(` `)
|
|
9
|
+
.map(([char]) => char)
|
|
10
|
+
.join(``)
|
|
11
|
+
.slice(0, 2);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
TuiInitialsPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInitialsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
15
|
+
TuiInitialsPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInitialsPipe, name: "tuiInitials" });
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInitialsPipe, decorators: [{
|
|
17
|
+
type: Pipe,
|
|
18
|
+
args: [{
|
|
19
|
+
name: `tuiInitials`,
|
|
20
|
+
}]
|
|
21
|
+
}] });
|
|
22
|
+
|
|
23
|
+
class TuiInitialsModule {
|
|
24
|
+
}
|
|
25
|
+
TuiInitialsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInitialsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
26
|
+
TuiInitialsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInitialsModule, declarations: [TuiInitialsPipe], exports: [TuiInitialsPipe] });
|
|
27
|
+
TuiInitialsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInitialsModule });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInitialsModule, decorators: [{
|
|
29
|
+
type: NgModule,
|
|
30
|
+
args: [{
|
|
31
|
+
declarations: [TuiInitialsPipe],
|
|
32
|
+
exports: [TuiInitialsPipe],
|
|
33
|
+
}]
|
|
34
|
+
}] });
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Generated bundle index. Do not edit.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
export { TuiInitialsModule, TuiInitialsPipe };
|
|
41
|
+
//# sourceMappingURL=taiga-ui-experimental-pipes-initials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-experimental-pipes-initials.js","sources":["../../../projects/experimental/pipes/initials/initials.pipe.ts","../../../projects/experimental/pipes/initials/initials.module.ts","../../../projects/experimental/pipes/initials/taiga-ui-experimental-pipes-initials.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\n\n@Pipe({\n name: `tuiInitials`,\n})\nexport class TuiInitialsPipe implements PipeTransform {\n transform(text: string): string {\n return text\n .toUpperCase()\n .split(` `)\n .map(([char]) => char)\n .join(``)\n .slice(0, 2);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiInitialsPipe} from './initials.pipe';\n\n@NgModule({\n declarations: [TuiInitialsPipe],\n exports: [TuiInitialsPipe],\n})\nexport class TuiInitialsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAKa,eAAe,CAAA;AACxB,IAAA,SAAS,CAAC,IAAY,EAAA;AAClB,QAAA,OAAO,IAAI;AACN,aAAA,WAAW,EAAE;aACb,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;aACrB,IAAI,CAAC,EAAE,CAAC;AACR,aAAA,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;KACpB;;6GARQ,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;2GAAf,eAAe,EAAA,IAAA,EAAA,aAAA,EAAA,CAAA,CAAA;4FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAH3B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,CAAa,WAAA,CAAA;AACtB,iBAAA,CAAA;;;MCIY,iBAAiB,CAAA;;+GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAjB,iBAAiB,EAAA,YAAA,EAAA,CAHX,eAAe,CAAA,EAAA,OAAA,EAAA,CACpB,eAAe,CAAA,EAAA,CAAA,CAAA;gHAEhB,iBAAiB,EAAA,CAAA,CAAA;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,eAAe,CAAC;oBAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;AAC7B,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from '@taiga-ui/experimental/pipes/auto-color';
|
|
2
|
+
export * from '@taiga-ui/experimental/pipes/fallback-src';
|
|
3
|
+
export * from '@taiga-ui/experimental/pipes/initials';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Generated bundle index. Do not edit.
|
|
7
|
+
*/
|
|
8
|
+
//# sourceMappingURL=taiga-ui-experimental-pipes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-experimental-pipes.js","sources":["../../../projects/experimental/pipes/taiga-ui-experimental-pipes.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;AAEG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-experimental.js","sources":["../../../projects/experimental/taiga-ui-experimental.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;AAEG"}
|
package/index.d.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@taiga-ui/experimental",
|
|
3
|
+
"version": "3.41.1-canary.1db8e7a",
|
|
4
|
+
"description": "A package with Taiga UI experimental components",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"angular",
|
|
7
|
+
"component",
|
|
8
|
+
"layout"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/taiga-family/taiga-ui",
|
|
11
|
+
"repository": "https://github.com/taiga-family/taiga-ui",
|
|
12
|
+
"license": "Apache-2.0",
|
|
13
|
+
"peerDependencies": {
|
|
14
|
+
"@angular/common": ">=12.0.0",
|
|
15
|
+
"@angular/core": ">=12.0.0",
|
|
16
|
+
"@taiga-ui/cdk": ">=3.40.0",
|
|
17
|
+
"@taiga-ui/core": ">=3.40.0",
|
|
18
|
+
"@taiga-ui/kit": ">=3.40.0",
|
|
19
|
+
"@tinkoff/ng-polymorpheus": ">=4.0.0",
|
|
20
|
+
"rxjs": ">=6.0.0"
|
|
21
|
+
},
|
|
22
|
+
"main": "bundles/taiga-ui-experimental.umd.js",
|
|
23
|
+
"module": "fesm2015/taiga-ui-experimental.js",
|
|
24
|
+
"es2015": "fesm2015/taiga-ui-experimental.js",
|
|
25
|
+
"esm2015": "esm2015/taiga-ui-experimental.js",
|
|
26
|
+
"fesm2015": "fesm2015/taiga-ui-experimental.js",
|
|
27
|
+
"typings": "taiga-ui-experimental.d.ts",
|
|
28
|
+
"sideEffects": false,
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"tslib": ">=2.0.0"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./auto-color.pipe";
|
|
3
|
+
export declare class TuiAutoColorModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiAutoColorModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiAutoColorModule, [typeof i1.TuiAutoColorPipe], never, [typeof i1.TuiAutoColorPipe]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TuiAutoColorModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TuiAutoColorPipe implements PipeTransform {
|
|
4
|
+
transform(text: string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiAutoColorPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TuiAutoColorPipe, "tuiAutoColor">;
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": "../../bundles/taiga-ui-experimental-pipes-auto-color.umd.js",
|
|
3
|
+
"module": "../../fesm2015/taiga-ui-experimental-pipes-auto-color.js",
|
|
4
|
+
"es2015": "../../fesm2015/taiga-ui-experimental-pipes-auto-color.js",
|
|
5
|
+
"esm2015": "../../esm2015/pipes/auto-color/taiga-ui-experimental-pipes-auto-color.js",
|
|
6
|
+
"fesm2015": "../../fesm2015/taiga-ui-experimental-pipes-auto-color.js",
|
|
7
|
+
"typings": "taiga-ui-experimental-pipes-auto-color.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@taiga-ui/experimental/pipes/auto-color"
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./fallback-src.pipe";
|
|
3
|
+
export declare class TuiFallbackSrcModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiFallbackSrcModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiFallbackSrcModule, [typeof i1.TuiFallbackSrcPipe], never, [typeof i1.TuiFallbackSrcPipe]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TuiFallbackSrcModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ElementRef, PipeTransform } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TuiFallbackSrcPipe implements PipeTransform {
|
|
5
|
+
private readonly el;
|
|
6
|
+
constructor(el: ElementRef<HTMLElement>);
|
|
7
|
+
transform(src: string, fallback: string): Observable<string>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiFallbackSrcPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TuiFallbackSrcPipe, "tuiFallbackSrc">;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": "../../bundles/taiga-ui-experimental-pipes-fallback-src.umd.js",
|
|
3
|
+
"module": "../../fesm2015/taiga-ui-experimental-pipes-fallback-src.js",
|
|
4
|
+
"es2015": "../../fesm2015/taiga-ui-experimental-pipes-fallback-src.js",
|
|
5
|
+
"esm2015": "../../esm2015/pipes/fallback-src/taiga-ui-experimental-pipes-fallback-src.js",
|
|
6
|
+
"fesm2015": "../../fesm2015/taiga-ui-experimental-pipes-fallback-src.js",
|
|
7
|
+
"typings": "taiga-ui-experimental-pipes-fallback-src.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@taiga-ui/experimental/pipes/fallback-src"
|
|
10
|
+
}
|
package/pipes/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./initials.pipe";
|
|
3
|
+
export declare class TuiInitialsModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiInitialsModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiInitialsModule, [typeof i1.TuiInitialsPipe], never, [typeof i1.TuiInitialsPipe]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TuiInitialsModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TuiInitialsPipe implements PipeTransform {
|
|
4
|
+
transform(text: string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiInitialsPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TuiInitialsPipe, "tuiInitials">;
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": "../../bundles/taiga-ui-experimental-pipes-initials.umd.js",
|
|
3
|
+
"module": "../../fesm2015/taiga-ui-experimental-pipes-initials.js",
|
|
4
|
+
"es2015": "../../fesm2015/taiga-ui-experimental-pipes-initials.js",
|
|
5
|
+
"esm2015": "../../esm2015/pipes/initials/taiga-ui-experimental-pipes-initials.js",
|
|
6
|
+
"fesm2015": "../../fesm2015/taiga-ui-experimental-pipes-initials.js",
|
|
7
|
+
"typings": "taiga-ui-experimental-pipes-initials.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@taiga-ui/experimental/pipes/initials"
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": "../bundles/taiga-ui-experimental-pipes.umd.js",
|
|
3
|
+
"module": "../fesm2015/taiga-ui-experimental-pipes.js",
|
|
4
|
+
"es2015": "../fesm2015/taiga-ui-experimental-pipes.js",
|
|
5
|
+
"esm2015": "../esm2015/pipes/taiga-ui-experimental-pipes.js",
|
|
6
|
+
"fesm2015": "../fesm2015/taiga-ui-experimental-pipes.js",
|
|
7
|
+
"typings": "taiga-ui-experimental-pipes.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@taiga-ui/experimental/pipes"
|
|
10
|
+
}
|