@taiga-ui/experimental 3.47.0 → 3.48.0-canary.0e61adf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/taiga-ui-experimental-components-avatar.umd.js +22 -13
- package/bundles/taiga-ui-experimental-components-avatar.umd.js.map +1 -1
- package/bundles/taiga-ui-experimental-components-badge.umd.js +23 -6
- package/bundles/taiga-ui-experimental-components-badge.umd.js.map +1 -1
- package/bundles/taiga-ui-experimental-components-button.umd.js +59 -25
- package/bundles/taiga-ui-experimental-components-button.umd.js.map +1 -1
- package/bundles/taiga-ui-experimental-components.umd.js +4 -10
- package/bundles/taiga-ui-experimental-components.umd.js.map +1 -1
- package/bundles/taiga-ui-experimental-directives-fade.umd.js +8 -4
- package/bundles/taiga-ui-experimental-directives-fade.umd.js.map +1 -1
- package/bundles/{taiga-ui-experimental-components-sensitive.umd.js → taiga-ui-experimental-directives-sensitive.umd.js} +3 -3
- package/bundles/{taiga-ui-experimental-components-sensitive.umd.js.map → taiga-ui-experimental-directives-sensitive.umd.js.map} +1 -1
- package/bundles/taiga-ui-experimental-directives-surface.umd.js +98 -0
- package/bundles/taiga-ui-experimental-directives-surface.umd.js.map +1 -0
- package/bundles/taiga-ui-experimental-directives.umd.js +16 -4
- package/bundles/taiga-ui-experimental-directives.umd.js.map +1 -1
- package/components/avatar/avatar.component.d.ts +4 -4
- package/components/avatar/avatar.options.d.ts +9 -0
- package/components/avatar/index.d.ts +1 -0
- package/components/badge/badge.component.d.ts +6 -5
- package/components/badge/badge.options.d.ts +11 -0
- package/components/badge/index.d.ts +1 -0
- package/components/button/button.component.d.ts +9 -5
- package/components/button/button.directive.d.ts +6 -4
- package/components/button/button.options.d.ts +9 -0
- package/components/button/index.d.ts +1 -0
- package/components/index.d.ts +0 -1
- package/directives/fade/fade.module.d.ts +1 -1
- package/directives/index.d.ts +2 -0
- package/directives/sensitive/package.json +10 -0
- package/{components/sensitive/taiga-ui-experimental-components-sensitive.d.ts → directives/sensitive/taiga-ui-experimental-directives-sensitive.d.ts} +1 -1
- package/directives/surface/index.d.ts +3 -0
- package/directives/surface/package.json +10 -0
- package/directives/surface/surface.component.d.ts +5 -0
- package/directives/surface/surface.directive.d.ts +8 -0
- package/directives/surface/surface.module.d.ts +8 -0
- package/directives/surface/taiga-ui-experimental-directives-surface.d.ts +5 -0
- package/esm2015/components/avatar/avatar.component.js +12 -10
- package/esm2015/components/avatar/avatar.options.js +10 -0
- package/esm2015/components/avatar/index.js +2 -1
- package/esm2015/components/badge/badge.component.js +13 -8
- package/esm2015/components/badge/badge.options.js +11 -0
- package/esm2015/components/badge/index.js +2 -1
- package/esm2015/components/button/button.component.js +25 -11
- package/esm2015/components/button/button.directive.js +12 -7
- package/esm2015/components/button/button.options.js +10 -0
- package/esm2015/components/button/index.js +2 -1
- package/esm2015/components/index.js +1 -2
- package/esm2015/directives/fade/fade.component.js +1 -1
- package/esm2015/directives/fade/fade.directive.js +6 -2
- package/esm2015/directives/fade/fade.module.js +3 -3
- package/esm2015/directives/index.js +3 -1
- package/esm2015/{components → directives}/sensitive/index.js +1 -1
- package/esm2015/{components → directives}/sensitive/sensitive.component.js +1 -1
- package/esm2015/{components → directives}/sensitive/sensitive.directive.js +1 -1
- package/esm2015/{components → directives}/sensitive/sensitive.module.js +1 -1
- package/esm2015/{components/sensitive/taiga-ui-experimental-components-sensitive.js → directives/sensitive/taiga-ui-experimental-directives-sensitive.js} +1 -1
- package/esm2015/directives/surface/index.js +4 -0
- package/esm2015/directives/surface/surface.component.js +16 -0
- package/esm2015/directives/surface/surface.directive.js +28 -0
- package/esm2015/directives/surface/surface.module.js +17 -0
- package/esm2015/directives/surface/taiga-ui-experimental-directives-surface.js +5 -0
- package/fesm2015/taiga-ui-experimental-components-avatar.js +21 -11
- package/fesm2015/taiga-ui-experimental-components-avatar.js.map +1 -1
- package/fesm2015/taiga-ui-experimental-components-badge.js +22 -8
- package/fesm2015/taiga-ui-experimental-components-badge.js.map +1 -1
- package/fesm2015/taiga-ui-experimental-components-button.js +43 -18
- package/fesm2015/taiga-ui-experimental-components-button.js.map +1 -1
- package/fesm2015/taiga-ui-experimental-components.js +0 -1
- package/fesm2015/taiga-ui-experimental-components.js.map +1 -1
- package/fesm2015/taiga-ui-experimental-directives-fade.js +8 -4
- package/fesm2015/taiga-ui-experimental-directives-fade.js.map +1 -1
- package/fesm2015/{taiga-ui-experimental-components-sensitive.js → taiga-ui-experimental-directives-sensitive.js} +1 -1
- package/fesm2015/{taiga-ui-experimental-components-sensitive.js.map → taiga-ui-experimental-directives-sensitive.js.map} +1 -1
- package/fesm2015/taiga-ui-experimental-directives-surface.js +61 -0
- package/fesm2015/taiga-ui-experimental-directives-surface.js.map +1 -0
- package/fesm2015/taiga-ui-experimental-directives.js +2 -0
- package/fesm2015/taiga-ui-experimental-directives.js.map +1 -1
- package/package.json +4 -4
- package/components/sensitive/package.json +0 -10
- /package/{components → directives}/sensitive/index.d.ts +0 -0
- /package/{components → directives}/sensitive/sensitive.component.d.ts +0 -0
- /package/{components → directives}/sensitive/sensitive.directive.d.ts +0 -0
- /package/{components → directives}/sensitive/sensitive.module.d.ts +0 -0
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
return TuiFadeComponent;
|
|
33
33
|
}());
|
|
34
34
|
TuiFadeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFadeComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
35
|
-
TuiFadeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiFadeComponent, selector: "ng-component", ngImport: i0__namespace, template: '', isInline: true, styles: ["[tuiFade]{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}[tuiFade]:not([data-orientation=\"vertical\"]){
|
|
35
|
+
TuiFadeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiFadeComponent, selector: "ng-component", ngImport: i0__namespace, template: '', isInline: true, styles: ["[tuiFade]{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}[tuiFade]:not([data-orientation=\"vertical\"]){-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, 100%),calc(50% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),100% calc(100% - var(--line-height, 100%));mask-size:calc(50% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),calc(50% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),100% calc(100% - var(--line-height, 100%))}[tuiFade]:not([data-orientation=\"vertical\"])._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}[tuiFade]:not([data-orientation=\"vertical\"])._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}[tuiFade]:not([data-orientation=\"vertical\"])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[tuiFade][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))}[tuiFade][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))}[tuiFade][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}[tuiFade][data-orientation=vertical]._start._end{-webkit-mask-position:left top,left bottom;mask-position:left top,left bottom}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
36
36
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFadeComponent, decorators: [{
|
|
37
37
|
type: i0.Component,
|
|
38
38
|
args: [{
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
var TuiFadeDirective = /** @class */ (function () {
|
|
47
47
|
function TuiFadeDirective(destroy$, resize$, mutate$, element, zone, directiveStyles) {
|
|
48
48
|
var _this = this;
|
|
49
|
+
// TODO: Remove when lh CSS units are supported: https://caniuse.com/mdn-css_types_length_lh
|
|
49
50
|
this.lineHeight = null;
|
|
50
51
|
this.size = '1.5em';
|
|
51
52
|
this.offset = '0em';
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
return TuiFadeDirective;
|
|
68
69
|
}());
|
|
69
70
|
TuiFadeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFadeDirective, deps: [{ token: i2.TuiDestroyService, self: true }, { token: i2.TuiResizeService }, { token: mutationObserver.MutationObserverService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i2.TuiDirectiveStylesService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
70
|
-
TuiFadeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiFadeDirective, selector: "[tuiFade]", inputs: { lineHeight: ["tuiFadeHeight", "lineHeight"], size: ["tuiFadeSize", "size"], offset: ["tuiFadeOffset", "offset"], orientation: ["tuiFade", "orientation"] }, host: { properties: { "style.--line-height": "this.lineHeight", "style.--fade-size": "this.size", "style.--fade-offset": "this.offset", "attr.data-orientation": "this.orientation" } }, providers: [
|
|
71
|
+
TuiFadeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiFadeDirective, selector: "[tuiFade]", inputs: { lineHeight: ["tuiFadeHeight", "lineHeight"], size: ["tuiFadeSize", "size"], offset: ["tuiFadeOffset", "offset"], orientation: ["tuiFade", "orientation"] }, host: { properties: { "style.line-height": "this.lineHeight", "style.--line-height": "this.lineHeight", "style.--fade-size": "this.size", "style.--fade-offset": "this.offset", "attr.data-orientation": "this.orientation" } }, providers: [
|
|
71
72
|
i2.TuiDestroyService,
|
|
72
73
|
i2.TuiResizeService,
|
|
73
74
|
mutationObserver.MutationObserverService,
|
|
@@ -115,6 +116,9 @@
|
|
|
115
116
|
}, propDecorators: { lineHeight: [{
|
|
116
117
|
type: i0.Input,
|
|
117
118
|
args: ['tuiFadeHeight']
|
|
119
|
+
}, {
|
|
120
|
+
type: i0.HostBinding,
|
|
121
|
+
args: ['style.line-height']
|
|
118
122
|
}, {
|
|
119
123
|
type: i0.HostBinding,
|
|
120
124
|
args: ['style.--line-height']
|
|
@@ -144,13 +148,13 @@
|
|
|
144
148
|
return TuiFadeModule;
|
|
145
149
|
}());
|
|
146
150
|
TuiFadeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFadeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
147
|
-
TuiFadeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFadeModule, declarations: [TuiFadeComponent, TuiFadeDirective], exports: [
|
|
151
|
+
TuiFadeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFadeModule, declarations: [TuiFadeComponent, TuiFadeDirective], exports: [TuiFadeDirective] });
|
|
148
152
|
TuiFadeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFadeModule });
|
|
149
153
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFadeModule, decorators: [{
|
|
150
154
|
type: i0.NgModule,
|
|
151
155
|
args: [{
|
|
152
156
|
declarations: [TuiFadeComponent, TuiFadeDirective],
|
|
153
|
-
exports: [
|
|
157
|
+
exports: [TuiFadeDirective],
|
|
154
158
|
}]
|
|
155
159
|
}] });
|
|
156
160
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-experimental-directives-fade.umd.js","sources":["../../../projects/experimental/directives/fade/fade.component.ts","../../../projects/experimental/directives/fade/fade.directive.ts","../../../projects/experimental/directives/fade/fade.module.ts","../../../projects/experimental/directives/fade/taiga-ui-experimental-directives-fade.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\n\n@Component({\n template: '',\n styleUrls: ['./fade.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiFadeComponent {}\n","import {\n Directive,\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 {\n TuiDestroyService,\n TuiDirectiveStylesService,\n TuiResizeService,\n tuiZonefree,\n} from '@taiga-ui/cdk';\nimport {TuiOrientation} from '@taiga-ui/core';\nimport {fromEvent, merge, Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\nimport {TuiFadeComponent} from './fade.component';\n\n@Directive({\n selector: '[tuiFade]',\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 TuiFadeDirective {\n @Input('tuiFadeHeight')\n @HostBinding('style.--line-height')\n lineHeight: string | null = null;\n\n @Input('tuiFadeSize')\n @HostBinding('style.--fade-size')\n size = '1.5em';\n\n @Input('tuiFadeOffset')\n @HostBinding('style.--fade-offset')\n offset = '0em';\n\n @Input('tuiFade')\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 @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n ) {\n const el = element.nativeElement;\n\n directiveStyles.addComponent(TuiFadeComponent);\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';\nimport {TuiFadeDirective} from './fade.directive';\n\n@NgModule({\n declarations: [TuiFadeComponent, TuiFadeDirective],\n exports: [
|
|
1
|
+
{"version":3,"file":"taiga-ui-experimental-directives-fade.umd.js","sources":["../../../projects/experimental/directives/fade/fade.component.ts","../../../projects/experimental/directives/fade/fade.directive.ts","../../../projects/experimental/directives/fade/fade.module.ts","../../../projects/experimental/directives/fade/taiga-ui-experimental-directives-fade.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\n\n@Component({\n template: '',\n styleUrls: ['./fade.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiFadeComponent {}\n","import {\n Directive,\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 {\n TuiDestroyService,\n TuiDirectiveStylesService,\n TuiResizeService,\n tuiZonefree,\n} from '@taiga-ui/cdk';\nimport {TuiOrientation} from '@taiga-ui/core';\nimport {fromEvent, merge, Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\nimport {TuiFadeComponent} from './fade.component';\n\n@Directive({\n selector: '[tuiFade]',\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 TuiFadeDirective {\n // TODO: Remove when lh CSS units are supported: https://caniuse.com/mdn-css_types_length_lh\n @Input('tuiFadeHeight')\n @HostBinding('style.line-height')\n @HostBinding('style.--line-height')\n lineHeight: string | null = null;\n\n @Input('tuiFadeSize')\n @HostBinding('style.--fade-size')\n size = '1.5em';\n\n @Input('tuiFadeOffset')\n @HostBinding('style.--fade-offset')\n offset = '0em';\n\n @Input('tuiFade')\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 @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n ) {\n const el = element.nativeElement;\n\n directiveStyles.addComponent(TuiFadeComponent);\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';\nimport {TuiFadeDirective} from './fade.directive';\n\n@NgModule({\n declarations: [TuiFadeComponent, TuiFadeDirective],\n exports: [TuiFadeDirective],\n})\nexport class TuiFadeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i0","Component","ChangeDetectionStrategy","ViewEncapsulation","merge","fromEvent","tuiZonefree","takeUntil","TuiDestroyService","TuiResizeService","MutationObserverService","ElementRef","NgZone","TuiDirectiveStylesService","MUTATION_OBSERVER_INIT","Directive","Self","Inject","Input","HostBinding","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,YAAA,gBAAA,kBAAA,YAAA;QAAA,IAAA,SAAA,gBAAA,GAAA;;;;4IAAa,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAA,aAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;QAAhB,gBAAA,CAAA,IAAA,GAAAA,aAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,+DALf,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,shHAAA,CAAA,EAAA,eAAA,EAAAA,aAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAAA,aAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;0HAKH,gBAAgB,EAAA,UAAA,EAAA,CAAA;0BAN5BC,YAAS;QAAC,YAAA,IAAA,EAAA,CAAA;QACP,oBAAA,QAAQ,EAAE,EAAE;4BACZ,SAAS,EAAE,CAAC,mBAAmB,CAAC;4BAChC,eAAe,EAAEC,0BAAuB,CAAC,MAAM;4BAC/C,aAAa,EAAEC,oBAAiB,CAAC,IAAI;yBACxC,CAAA;;;AC8BD,YAAA,gBAAA,kBAAA,YAAA;YAmBI,SACuC,gBAAA,CAAA,QAA6B,EACtC,OAA4B,EACrB,OAA4B,EACzC,OAAgC,EACpC,IAAY,EACO,eAA0C,EAAA;gBANjF,IAiBC,KAAA,GAAA,IAAA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E,gBAAgB,aACvC,gBAAgB,CAAA,EAAA,CAAA,CAAA;0IAEjB,aAAa,EAAA,CAAA,CAAA;0HAAb,aAAa,EAAA,UAAA,EAAA,CAAA;0BAJzBoB,WAAQ;QAAC,YAAA,IAAA,EAAA,CAAA;QACN,oBAAA,YAAY,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;4BAClD,OAAO,EAAE,CAAC,gBAAgB,CAAC;yBAC9B,CAAA;;;QCRD;;QAEG;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/experimental/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].experimental = global["taiga-ui"].experimental || {}, global["taiga-ui"].experimental.
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/experimental/directives/sensitive', ['exports', '@angular/core', '@taiga-ui/cdk'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].experimental = global["taiga-ui"].experimental || {}, global["taiga-ui"].experimental.directives = global["taiga-ui"].experimental.directives || {}, global["taiga-ui"].experimental.directives.sensitive = {}), global.ng.core, global.i1));
|
|
5
5
|
})(this, (function (exports, i0, i1) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
@@ -97,4 +97,4 @@
|
|
|
97
97
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
98
98
|
|
|
99
99
|
}));
|
|
100
|
-
//# sourceMappingURL=taiga-ui-experimental-
|
|
100
|
+
//# sourceMappingURL=taiga-ui-experimental-directives-sensitive.umd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-experimental-
|
|
1
|
+
{"version":3,"file":"taiga-ui-experimental-directives-sensitive.umd.js","sources":["../../../projects/experimental/directives/sensitive/sensitive.component.ts","../../../projects/experimental/directives/sensitive/sensitive.directive.ts","../../../projects/experimental/directives/sensitive/sensitive.module.ts","../../../projects/experimental/directives/sensitive/taiga-ui-experimental-directives-sensitive.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '',\n styleUrls: ['./sensitive.style.less'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiSensitiveComponent {}\n","import {Directive, Inject, Input} from '@angular/core';\nimport {TuiDirectiveStylesService} from '@taiga-ui/cdk';\n\nimport {TuiSensitiveComponent} from './sensitive.component';\n\n@Directive({\n selector: '[tuiSensitive]',\n host: {\n '[style.--t-offset.px]': 'offset',\n '[class.tui-sensitive]': 'tuiSensitive',\n },\n})\nexport class TuiSensitiveDirective {\n @Input()\n tuiSensitive: boolean | null = false;\n\n readonly offset = Math.round(Math.random() * 10) * 10;\n\n constructor(\n @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n ) {\n directiveStyles.addComponent(TuiSensitiveComponent);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiSensitiveDirective} from './sensitive.directive';\n\n@NgModule({\n declarations: [TuiSensitiveDirective],\n exports: [TuiSensitiveDirective],\n})\nexport class TuiSensitiveModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i0","Component","ChangeDetectionStrategy","ViewEncapsulation","TuiDirectiveStylesService","Directive","Inject","Input","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,YAAA,qBAAA,kBAAA,YAAA;QAAA,IAAA,SAAA,qBAAA,GAAA;;;;iJAAa,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAA,aAA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gBAAA,EAAA,MAAA,EAAA,EAAA,YAAA,EAAA,cAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,cAAA,EAAA,EAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,CAAA,CAAA;0HAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;0BAPjCK,YAAS;QAAC,YAAA,IAAA,EAAA,CAAA;QACP,oBAAA,QAAQ,EAAE,gBAAgB;QAC1B,oBAAA,IAAI,EAAE;QACF,wBAAA,uBAAuB,EAAE,QAAQ;QACjC,wBAAA,uBAAuB,EAAE,cAAc;QAC1C,qBAAA;yBACJ,CAAA;;;sCAQQC,SAAM;uCAACF,4BAAyB,CAAA;;iCALrC,YAAY,EAAA,CAAA;8BADXG,QAAK;;;ACLV,YAAA,kBAAA,kBAAA,YAAA;QAAA,IAAA,SAAA,kBAAA,GAAA;;;;8IAAa,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAP,aAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+IAAlB,kBAAkB,EAAA,YAAA,EAAA,CAHZ,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAC1B,qBAAqB,CAAA,EAAA,CAAA,CAAA;+IAEtB,kBAAkB,EAAA,CAAA,CAAA;0HAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;0BAJ9BQ,WAAQ;QAAC,YAAA,IAAA,EAAA,CAAA;4BACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;4BACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;yBACnC,CAAA;;;QCPD;;QAEG;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/experimental/directives/surface', ['exports', '@angular/core', '@taiga-ui/cdk'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].experimental = global["taiga-ui"].experimental || {}, global["taiga-ui"].experimental.directives = global["taiga-ui"].experimental.directives || {}, global["taiga-ui"].experimental.directives.surface = {}), global.ng.core, global.i1));
|
|
5
|
+
})(this, (function (exports, i0, i1) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
27
|
+
|
|
28
|
+
var TuiSurfaceComponent = /** @class */ (function () {
|
|
29
|
+
function TuiSurfaceComponent() {
|
|
30
|
+
}
|
|
31
|
+
return TuiSurfaceComponent;
|
|
32
|
+
}());
|
|
33
|
+
TuiSurfaceComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSurfaceComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
34
|
+
TuiSurfaceComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiSurfaceComponent, selector: "ng-component", ngImport: i0__namespace, template: '', isInline: true, styles: ["[data-surface]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:none;font-size:inherit;line-height:inherit;transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;--tui-gap: .25rem;position:relative;border-radius:var(--tui-radius-l);box-sizing:border-box;padding:1.25rem;background-size:cover;background-repeat:no-repeat;overflow:hidden;isolation:isolate;outline-color:var(--tui-focus);transition-property:background,border-radius,box-shadow,transform,-webkit-backdrop-filter,-webkit-mask;transition-property:backdrop-filter,background,border-radius,box-shadow,mask,transform;transition-property:backdrop-filter,background,border-radius,box-shadow,mask,transform,-webkit-backdrop-filter,-webkit-mask}@supports (not (-moz-appearance: none)) and (not (-webkit-hyphens: none)){[data-surface]:before{mix-blend-mode:multiply}}button[data-surface]{cursor:pointer}[data-surface]:before,[data-surface]:after,[tuiSurfaceLayer]:before,[tuiSurfaceLayer]:after{position:absolute;top:0;left:0;width:100%;height:100%;transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";z-index:-1;border-radius:inherit;pointer-events:none;background-size:cover;background-repeat:no-repeat;transition-property:opacity,transform,-webkit-backdrop-filter;transition-property:opacity,backdrop-filter,transform;transition-property:opacity,backdrop-filter,transform,-webkit-backdrop-filter}[tuiSurfaceLayer]{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:0;left:0;width:100%;height:100%;position:absolute!important;z-index:-1;object-fit:cover;border-radius:inherit;box-sizing:border-box;transition-property:box-shadow,filter,padding}input[tuiSurfaceLayer]+[tuiSurfaceLayer]{will-change:padding;background-clip:content-box;overflow:clip;overflow-clip-margin:content-box}input[tuiSurfaceLayer]:checked+[tuiSurfaceLayer]{padding:var(--tui-gap)}input[tuiSurfaceLayer]:focus-visible+[tuiSurfaceLayer]{padding:var(--tui-gap)}@media (hover: hover) and (pointer: fine){[data-surface]:hover input[tuiSurfaceLayer]+[tuiSurfaceLayer]{padding:var(--tui-gap)}}input[tuiSurfaceLayer]{color:var(--tui-accent);-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0;border-radius:inherit;outline:none;box-shadow:inset 0 0,inset 0 0 var(--tui-base-03)}input[tuiSurfaceLayer]:checked{box-shadow:inset 0 0 0 calc(var(--tui-gap) / 2),inset 0 0 var(--tui-base-03)}input[tuiSurfaceLayer]:focus-visible{box-shadow:inset 0 0,inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-base-03)}input[tuiSurfaceLayer]:checked:focus-visible{filter:brightness(.7);box-shadow:inset 0 0 0 calc(var(--tui-gap) / 2),inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-base-03)}@media (hover: hover) and (pointer: fine){[data-surface]:hover input[tuiSurfaceLayer]{box-shadow:inset 0 0,inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-base-03)}[data-surface]:hover input[tuiSurfaceLayer]:checked{filter:brightness(.9);box-shadow:inset 0 0 0 calc(var(--tui-gap) / 2),inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-base-03)}}[data-surface=elevated]{box-shadow:0 .25rem 1.5rem #0000001f;border-radius:var(--tui-radius-xl);background:var(--tui-elevation-01)}button[data-surface=elevated]:active,a[data-surface=elevated]:active{box-shadow:0 .25rem 1.5rem #0000001f;transform:scale(.95)}@media (hover: hover) and (pointer: fine){button[data-surface=elevated]:hover,a[data-surface=elevated]:hover{box-shadow:0 .75rem 2.25rem #0003;transform:translateY(-.25rem)}}[data-surface=flat]{border-radius:var(--tui-radius-xl);background:var(--tui-clear)}button[data-surface=flat]:active,a[data-surface=flat]:active{transform:scale(.95)}@media (hover: hover) and (pointer: fine){button[data-surface=flat]:hover,a[data-surface=flat]:hover{transform:scale(1.15)}}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
35
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSurfaceComponent, decorators: [{
|
|
36
|
+
type: i0.Component,
|
|
37
|
+
args: [{
|
|
38
|
+
template: '',
|
|
39
|
+
styleUrls: ['./surface.style.less'],
|
|
40
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
41
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
42
|
+
}]
|
|
43
|
+
}] });
|
|
44
|
+
|
|
45
|
+
var TuiSurfaceDirective = /** @class */ (function () {
|
|
46
|
+
function TuiSurfaceDirective(directiveStyles) {
|
|
47
|
+
this.tuiSurface = '';
|
|
48
|
+
directiveStyles.addComponent(TuiSurfaceComponent);
|
|
49
|
+
}
|
|
50
|
+
return TuiSurfaceDirective;
|
|
51
|
+
}());
|
|
52
|
+
TuiSurfaceDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSurfaceDirective, deps: [{ token: i1.TuiDirectiveStylesService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
53
|
+
TuiSurfaceDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSurfaceDirective, selector: "[tuiSurface]", inputs: { tuiSurface: "tuiSurface" }, host: { properties: { "attr.data-surface": "this.tuiSurface" } }, ngImport: i0__namespace });
|
|
54
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSurfaceDirective, decorators: [{
|
|
55
|
+
type: i0.Directive,
|
|
56
|
+
args: [{
|
|
57
|
+
selector: '[tuiSurface]',
|
|
58
|
+
}]
|
|
59
|
+
}], ctorParameters: function () {
|
|
60
|
+
return [{ type: i1__namespace.TuiDirectiveStylesService, decorators: [{
|
|
61
|
+
type: i0.Inject,
|
|
62
|
+
args: [i1.TuiDirectiveStylesService]
|
|
63
|
+
}] }];
|
|
64
|
+
}, propDecorators: { tuiSurface: [{
|
|
65
|
+
type: i0.Input
|
|
66
|
+
}, {
|
|
67
|
+
type: i0.HostBinding,
|
|
68
|
+
args: ['attr.data-surface']
|
|
69
|
+
}] } });
|
|
70
|
+
|
|
71
|
+
var TuiSurfaceModule = /** @class */ (function () {
|
|
72
|
+
function TuiSurfaceModule() {
|
|
73
|
+
}
|
|
74
|
+
return TuiSurfaceModule;
|
|
75
|
+
}());
|
|
76
|
+
TuiSurfaceModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSurfaceModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
77
|
+
TuiSurfaceModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSurfaceModule, declarations: [TuiSurfaceComponent, TuiSurfaceDirective], exports: [TuiSurfaceDirective] });
|
|
78
|
+
TuiSurfaceModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSurfaceModule });
|
|
79
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSurfaceModule, decorators: [{
|
|
80
|
+
type: i0.NgModule,
|
|
81
|
+
args: [{
|
|
82
|
+
declarations: [TuiSurfaceComponent, TuiSurfaceDirective],
|
|
83
|
+
exports: [TuiSurfaceDirective],
|
|
84
|
+
}]
|
|
85
|
+
}] });
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Generated bundle index. Do not edit.
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
exports.TuiSurfaceComponent = TuiSurfaceComponent;
|
|
92
|
+
exports.TuiSurfaceDirective = TuiSurfaceDirective;
|
|
93
|
+
exports.TuiSurfaceModule = TuiSurfaceModule;
|
|
94
|
+
|
|
95
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
96
|
+
|
|
97
|
+
}));
|
|
98
|
+
//# sourceMappingURL=taiga-ui-experimental-directives-surface.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-experimental-directives-surface.umd.js","sources":["../../../projects/experimental/directives/surface/surface.component.ts","../../../projects/experimental/directives/surface/surface.directive.ts","../../../projects/experimental/directives/surface/surface.module.ts","../../../projects/experimental/directives/surface/taiga-ui-experimental-directives-surface.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\n\n@Component({\n template: '',\n styleUrls: ['./surface.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiSurfaceComponent {}\n","import {Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {TuiDirectiveStylesService} from '@taiga-ui/cdk';\n\nimport {TuiSurfaceComponent} from './surface.component';\n\n@Directive({\n selector: '[tuiSurface]',\n})\nexport class TuiSurfaceDirective {\n @Input()\n @HostBinding('attr.data-surface')\n tuiSurface = '';\n\n constructor(\n @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n ) {\n directiveStyles.addComponent(TuiSurfaceComponent);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiSurfaceComponent} from './surface.component';\nimport {TuiSurfaceDirective} from './surface.directive';\n\n@NgModule({\n declarations: [TuiSurfaceComponent, TuiSurfaceDirective],\n exports: [TuiSurfaceDirective],\n})\nexport class TuiSurfaceModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i0","Component","ChangeDetectionStrategy","ViewEncapsulation","TuiDirectiveStylesService","Directive","Inject","Input","HostBinding","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,YAAA,mBAAA,kBAAA,YAAA;QAAA,IAAA,SAAA,mBAAA,GAAA;;;;+IAAa,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAA,aAAA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,EAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,CAAA,CAAA;0HAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;0BAH/BK,YAAS;QAAC,YAAA,IAAA,EAAA,CAAA;QACP,oBAAA,QAAQ,EAAE,cAAc;yBAC3B,CAAA;;;sCAOQC,SAAM;uCAACF,4BAAyB,CAAA;;iCAHrC,UAAU,EAAA,CAAA;8BAFTG,QAAK;;8BACLC,cAAW;+BAAC,mBAAmB,CAAA;;;ACDpC,YAAA,gBAAA,kBAAA,YAAA;QAAA,IAAA,SAAA,gBAAA,GAAA;;;;4IAAa,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAR,aAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;QAAhB,gBAAA,CAAA,IAAA,GAAAA,aAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,gBAAgB,EAHV,YAAA,EAAA,CAAA,mBAAmB,EAAE,mBAAmB,aAC7C,mBAAmB,CAAA,EAAA,CAAA,CAAA;6IAEpB,gBAAgB,EAAA,CAAA,CAAA;0HAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;0BAJ5BS,WAAQ;QAAC,YAAA,IAAA,EAAA,CAAA;QACN,oBAAA,YAAY,EAAE,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;4BACxD,OAAO,EAAE,CAAC,mBAAmB,CAAC;yBACjC,CAAA;;;QCRD;;QAEG;;;;;;;;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taiga-ui/experimental/directives/fade')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/experimental/directives', ['exports', '@taiga-ui/experimental/directives/fade'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].experimental = global["taiga-ui"].experimental || {}, global["taiga-ui"].experimental.directives = {}), global["taiga-ui"].experimental.directives.fade));
|
|
5
|
-
})(this, (function (exports, fade) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taiga-ui/experimental/directives/fade'), require('@taiga-ui/experimental/directives/sensitive'), require('@taiga-ui/experimental/directives/surface')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/experimental/directives', ['exports', '@taiga-ui/experimental/directives/fade', '@taiga-ui/experimental/directives/sensitive', '@taiga-ui/experimental/directives/surface'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].experimental = global["taiga-ui"].experimental || {}, global["taiga-ui"].experimental.directives = {}), global["taiga-ui"].experimental.directives.fade, global["taiga-ui"].experimental.directives.sensitive, global["taiga-ui"].experimental.directives.surface));
|
|
5
|
+
})(this, (function (exports, fade, sensitive, surface) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Generated bundle index. Do not edit.
|
|
@@ -14,6 +14,18 @@
|
|
|
14
14
|
get: function () { return fade[k]; }
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
+
Object.keys(sensitive).forEach(function (k) {
|
|
18
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return sensitive[k]; }
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
Object.keys(surface).forEach(function (k) {
|
|
24
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return surface[k]; }
|
|
27
|
+
});
|
|
28
|
+
});
|
|
17
29
|
|
|
18
30
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
19
31
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-experimental-directives.umd.js","sources":["../../../projects/experimental/directives/taiga-ui-experimental-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;CAAA;;CAEG
|
|
1
|
+
{"version":3,"file":"taiga-ui-experimental-directives.umd.js","sources":["../../../projects/experimental/directives/taiga-ui-experimental-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;CAAA;;CAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SafeResourceUrl } from '@angular/platform-browser';
|
|
2
2
|
import { TuiPlatform } from '@taiga-ui/cdk';
|
|
3
|
-
import {
|
|
3
|
+
import { TuiAvatarOptions } from './avatar.options';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class TuiAvatarComponent {
|
|
6
|
+
private readonly options;
|
|
6
7
|
readonly platform: TuiPlatform;
|
|
7
|
-
size:
|
|
8
|
+
size: "m" | "l" | "xl" | "xxl" | "s" | "xs" | "xxs";
|
|
8
9
|
round: boolean;
|
|
9
10
|
src: SafeResourceUrl | string | null;
|
|
10
|
-
constructor(platform: TuiPlatform);
|
|
11
|
-
get img(): boolean;
|
|
11
|
+
constructor(options: TuiAvatarOptions, platform: TuiPlatform);
|
|
12
12
|
get value(): SafeResourceUrl | string;
|
|
13
13
|
get type(): 'content' | 'icon' | 'img' | 'text';
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiAvatarComponent, never>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Provider } from '@angular/core';
|
|
2
|
+
import { TuiSizeXXL, TuiSizeXXS } from '@taiga-ui/core';
|
|
3
|
+
export interface TuiAvatarOptions {
|
|
4
|
+
readonly round: boolean;
|
|
5
|
+
readonly size: TuiSizeXXL | TuiSizeXXS;
|
|
6
|
+
}
|
|
7
|
+
export declare const TUI_AVATAR_DEFAULT_OPTIONS: TuiAvatarOptions;
|
|
8
|
+
export declare const TUI_AVATAR_OPTIONS: import("@angular/core").InjectionToken<TuiAvatarOptions>;
|
|
9
|
+
export declare function tuiAvatarOptionsProvider(options: Partial<TuiAvatarOptions>): Provider;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { TuiPlatform } from '@taiga-ui/cdk';
|
|
2
|
-
import { TuiBrightness
|
|
3
|
-
import { TuiStatus } from '@taiga-ui/kit';
|
|
2
|
+
import { TuiBrightness } from '@taiga-ui/core';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { TuiBadgeOptions } from './badge.options';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class TuiBadgeComponent {
|
|
7
|
+
private readonly options;
|
|
7
8
|
readonly mode$: Observable<TuiBrightness | null>;
|
|
8
9
|
readonly platform: TuiPlatform;
|
|
9
|
-
size:
|
|
10
|
-
appearance: TuiStatus |
|
|
10
|
+
size: "m" | "s" | "l" | "xl";
|
|
11
|
+
appearance: import("@taiga-ui/kit/types").TuiStatus | "accent" | "light";
|
|
11
12
|
hoverable: boolean;
|
|
12
|
-
constructor(mode$: Observable<TuiBrightness | null>, platform: TuiPlatform);
|
|
13
|
+
constructor(options: TuiBadgeOptions, mode$: Observable<TuiBrightness | null>, platform: TuiPlatform);
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiBadgeComponent, never>;
|
|
14
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<TuiBadgeComponent, "tui-badge", never, { "size": "size"; "appearance": "appearance"; "hoverable": "hoverable"; }, {}, never, ["img", "tui-svg", "*"]>;
|
|
15
16
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Provider } from '@angular/core';
|
|
2
|
+
import { TuiSizeS, TuiSizeXL } from '@taiga-ui/core';
|
|
3
|
+
import { TuiStatus } from '@taiga-ui/kit';
|
|
4
|
+
export interface TuiBadgeOptions {
|
|
5
|
+
readonly appearance: TuiStatus | 'accent' | 'light';
|
|
6
|
+
readonly size: TuiSizeS | TuiSizeXL;
|
|
7
|
+
readonly hoverable: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const TUI_BADGE_DEFAULT_OPTIONS: TuiBadgeOptions;
|
|
10
|
+
export declare const TUI_BADGE_OPTIONS: import("@angular/core").InjectionToken<TuiBadgeOptions>;
|
|
11
|
+
export declare function tuiBadgeOptionsProvider(options: Partial<TuiBadgeOptions>): Provider;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TuiSizeS } from '@taiga-ui/core';
|
|
2
|
+
import { TuiButtonOptions } from './button.options';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class TuiButtonComponent {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
private readonly options;
|
|
6
|
+
size: "m" | "l" | "xl" | "s" | "xs";
|
|
7
|
+
loading: boolean | string | null;
|
|
6
8
|
iconLeft: string;
|
|
7
9
|
iconRight: string;
|
|
8
|
-
|
|
10
|
+
constructor(options: TuiButtonOptions);
|
|
9
11
|
get loaderSize(): TuiSizeS;
|
|
12
|
+
get label(): string;
|
|
13
|
+
onClick(event: MouseEvent): void;
|
|
10
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiButtonComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiButtonComponent, "[tuiButton][loading],[tuiIconButton][loading],[tuiButton][iconLeft],[tuiButton][iconRight],[tuiIconButton][iconLeft]", never, { "size": "size"; "loading": "loading"; "iconLeft": "iconLeft"; "iconRight": "iconRight";
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiButtonComponent, "[tuiButton][loading],[tuiIconButton][loading],[tuiButton][iconLeft],[tuiButton][iconRight],[tuiIconButton][iconLeft]", never, { "size": "size"; "loading": "loading"; "iconLeft": "iconLeft"; "iconRight": "iconRight"; }, {}, never, ["*"]>;
|
|
12
16
|
}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { TuiDirectiveStylesService, TuiPlatform } from '@taiga-ui/cdk';
|
|
2
|
-
import {
|
|
2
|
+
import { TuiBrightness } from '@taiga-ui/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { TuiButtonOptions } from './button.options';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class TuiButtonStylesComponent {
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiButtonStylesComponent, never>;
|
|
7
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<TuiButtonStylesComponent, "ng-component", never, {}, {}, never, never>;
|
|
8
9
|
}
|
|
9
10
|
export declare class TuiButtonDirective {
|
|
11
|
+
private readonly options;
|
|
10
12
|
readonly platform: TuiPlatform;
|
|
11
13
|
readonly mode$: Observable<TuiBrightness | null>;
|
|
12
|
-
size:
|
|
13
|
-
appearance: string
|
|
14
|
-
constructor(platform: TuiPlatform, mode$: Observable<TuiBrightness | null>, directiveStyles: TuiDirectiveStylesService);
|
|
14
|
+
size: "m" | "l" | "xl" | "s" | "xs";
|
|
15
|
+
appearance: string;
|
|
16
|
+
constructor(options: TuiButtonOptions, platform: TuiPlatform, mode$: Observable<TuiBrightness | null>, directiveStyles: TuiDirectiveStylesService);
|
|
15
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiButtonDirective, never>;
|
|
16
18
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiButtonDirective, "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", never, { "size": "size"; "appearance": "appearance"; }, {}, never>;
|
|
17
19
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Provider } from '@angular/core';
|
|
2
|
+
import { TuiSizeXL, TuiSizeXS } from '@taiga-ui/core';
|
|
3
|
+
export interface TuiButtonOptions {
|
|
4
|
+
readonly appearance: string;
|
|
5
|
+
readonly size: TuiSizeXL | TuiSizeXS;
|
|
6
|
+
}
|
|
7
|
+
export declare const TUI_BUTTON_DEFAULT_OPTIONS: TuiButtonOptions;
|
|
8
|
+
export declare const TUI_BUTTON_OPTIONS: import("@angular/core").InjectionToken<TuiButtonOptions>;
|
|
9
|
+
export declare function tuiButtonOptionsProvider(options: Partial<TuiButtonOptions>): Provider;
|
package/components/index.d.ts
CHANGED
|
@@ -5,4 +5,3 @@ export * from '@taiga-ui/experimental/components/badge-alert';
|
|
|
5
5
|
export * from '@taiga-ui/experimental/components/badged-content';
|
|
6
6
|
export * from '@taiga-ui/experimental/components/button';
|
|
7
7
|
export * from '@taiga-ui/experimental/components/compass';
|
|
8
|
-
export * from '@taiga-ui/experimental/components/sensitive';
|
|
@@ -3,6 +3,6 @@ import * as i1 from "./fade.component";
|
|
|
3
3
|
import * as i2 from "./fade.directive";
|
|
4
4
|
export declare class TuiFadeModule {
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiFadeModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiFadeModule, [typeof i1.TuiFadeComponent, typeof i2.TuiFadeDirective], never, [typeof
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiFadeModule, [typeof i1.TuiFadeComponent, typeof i2.TuiFadeDirective], never, [typeof i2.TuiFadeDirective]>;
|
|
7
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<TuiFadeModule>;
|
|
8
8
|
}
|
package/directives/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": "../../bundles/taiga-ui-experimental-directives-sensitive.umd.js",
|
|
3
|
+
"module": "../../fesm2015/taiga-ui-experimental-directives-sensitive.js",
|
|
4
|
+
"es2015": "../../fesm2015/taiga-ui-experimental-directives-sensitive.js",
|
|
5
|
+
"esm2015": "../../esm2015/directives/sensitive/taiga-ui-experimental-directives-sensitive.js",
|
|
6
|
+
"fesm2015": "../../fesm2015/taiga-ui-experimental-directives-sensitive.js",
|
|
7
|
+
"typings": "taiga-ui-experimental-directives-sensitive.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@taiga-ui/experimental/directives/sensitive"
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": "../../bundles/taiga-ui-experimental-directives-surface.umd.js",
|
|
3
|
+
"module": "../../fesm2015/taiga-ui-experimental-directives-surface.js",
|
|
4
|
+
"es2015": "../../fesm2015/taiga-ui-experimental-directives-surface.js",
|
|
5
|
+
"esm2015": "../../esm2015/directives/surface/taiga-ui-experimental-directives-surface.js",
|
|
6
|
+
"fesm2015": "../../fesm2015/taiga-ui-experimental-directives-surface.js",
|
|
7
|
+
"typings": "taiga-ui-experimental-directives-surface.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@taiga-ui/experimental/directives/surface"
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TuiDirectiveStylesService } from '@taiga-ui/cdk';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TuiSurfaceDirective {
|
|
4
|
+
tuiSurface: string;
|
|
5
|
+
constructor(directiveStyles: TuiDirectiveStylesService);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiSurfaceDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiSurfaceDirective, "[tuiSurface]", never, { "tuiSurface": "tuiSurface"; }, {}, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./surface.component";
|
|
3
|
+
import * as i2 from "./surface.directive";
|
|
4
|
+
export declare class TuiSurfaceModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiSurfaceModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiSurfaceModule, [typeof i1.TuiSurfaceComponent, typeof i2.TuiSurfaceDirective], never, [typeof i2.TuiSurfaceDirective]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TuiSurfaceModule>;
|
|
8
|
+
}
|