@taiga-ui/kit 2.60.0 → 2.62.1
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-kit-components-badge.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.js +4 -14
- package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-files.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-files.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-files.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-push.umd.js +499 -0
- package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-components-push.umd.min.js +2 -0
- package/bundles/taiga-ui-kit-components-push.umd.min.js.map +1 -0
- package/bundles/taiga-ui-kit-components-text-area.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-text-area.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components.umd.js +12 -4
- package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components.umd.min.js +1 -1
- package/components/badge/badge.component.d.ts +2 -2
- package/components/badge/taiga-ui-kit-components-badge.metadata.json +1 -1
- package/components/badged-content/badged-content.component.d.ts +2 -3
- package/components/badged-content/taiga-ui-kit-components-badged-content.metadata.json +1 -1
- package/components/index.d.ts +1 -0
- package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
- package/components/push/index.d.ts +7 -0
- package/components/push/package.json +13 -0
- package/components/push/push-alert.component.d.ts +16 -0
- package/components/push/push-alert.directive.d.ts +9 -0
- package/components/push/push.component.d.ts +11 -0
- package/components/push/push.directive.d.ts +10 -0
- package/components/push/push.module.d.ts +2 -0
- package/components/push/push.options.d.ts +10 -0
- package/components/push/push.service.d.ts +10 -0
- package/components/push/taiga-ui-kit-components-push.d.ts +4 -0
- package/components/push/taiga-ui-kit-components-push.metadata.json +1 -0
- package/components/taiga-ui-kit-components.metadata.json +1 -1
- package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
- package/esm2015/components/badge/badge.component.js +3 -3
- package/esm2015/components/badged-content/badged-content.component.js +5 -11
- package/esm2015/components/files/file/file.component.js +3 -3
- package/esm2015/components/index.js +2 -1
- package/esm2015/components/input-phone-international/const/countries.js +2 -2
- package/esm2015/components/input-tag/input-tag.component.js +2 -2
- package/esm2015/components/push/index.js +8 -0
- package/esm2015/components/push/push-alert.component.js +38 -0
- package/esm2015/components/push/push-alert.directive.js +40 -0
- package/esm2015/components/push/push.component.js +46 -0
- package/esm2015/components/push/push.directive.js +42 -0
- package/esm2015/components/push/push.module.js +46 -0
- package/esm2015/components/push/push.options.js +10 -0
- package/esm2015/components/push/push.service.js +24 -0
- package/esm2015/components/push/taiga-ui-kit-components-push.js +5 -0
- package/esm2015/components/text-area/text-area.component.js +1 -1
- package/esm5/components/badge/badge.component.js +3 -3
- package/esm5/components/badged-content/badged-content.component.js +5 -15
- package/esm5/components/files/file/file.component.js +3 -3
- package/esm5/components/index.js +2 -1
- package/esm5/components/input-phone-international/const/countries.js +2 -2
- package/esm5/components/input-tag/input-tag.component.js +2 -2
- package/esm5/components/push/index.js +8 -0
- package/esm5/components/push/push-alert.component.js +43 -0
- package/esm5/components/push/push-alert.directive.js +47 -0
- package/esm5/components/push/push.component.js +51 -0
- package/esm5/components/push/push.directive.js +50 -0
- package/esm5/components/push/push.module.js +49 -0
- package/esm5/components/push/push.options.js +10 -0
- package/esm5/components/push/push.service.js +28 -0
- package/esm5/components/push/taiga-ui-kit-components-push.js +5 -0
- package/esm5/components/text-area/text-area.component.js +1 -1
- package/fesm2015/taiga-ui-kit-components-badge.js +1 -1
- package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badged-content.js +4 -10
- package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-files.js +2 -2
- package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js +1 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-push.js +216 -0
- package/fesm2015/taiga-ui-kit-components-push.js.map +1 -0
- package/fesm2015/taiga-ui-kit-components-text-area.js +1 -1
- package/fesm2015/taiga-ui-kit-components.js +1 -0
- package/fesm2015/taiga-ui-kit-components.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-badge.js +1 -1
- package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-badged-content.js +4 -14
- package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-files.js +2 -2
- package/fesm5/taiga-ui-kit-components-files.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone-international.js +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-tag.js +1 -1
- package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-push.js +248 -0
- package/fesm5/taiga-ui-kit-components-push.js.map +1 -0
- package/fesm5/taiga-ui-kit-components-text-area.js +1 -1
- package/fesm5/taiga-ui-kit-components.js +1 -0
- package/fesm5/taiga-ui-kit-components.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { __decorate, __param, __extends, __assign } from 'tslib';
|
|
2
|
+
import { EventEmitter, Inject, Input, Output, Component, ChangeDetectionStrategy, Optional, SkipSelf, Directive, TemplateRef, ChangeDetectorRef, forwardRef, HostBinding, ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule } from '@angular/core';
|
|
3
|
+
import { tuiIsObserved, tuiDefaultProp, TuiDestroyService, AbstractTuiDialogService, TUI_ALERTS } from '@taiga-ui/cdk';
|
|
4
|
+
import { TUI_CLOSE_WORD, TuiModeDirective, TUI_BUTTON_OPTIONS, TUI_ANIMATION_OPTIONS, tuiFadeIn, tuiSlideInRight, tuiHeightCollapse, TuiButtonModule, TuiLinkModule, TuiSvgModule, TuiFormatDatePipeModule } from '@taiga-ui/core';
|
|
5
|
+
import { Observable, Subject, EMPTY } from 'rxjs';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import { PolymorpheusTemplate, POLYMORPHEUS_CONTEXT, PolymorpheusComponent, PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
8
|
+
import { switchMap, takeUntil } from 'rxjs/operators';
|
|
9
|
+
import { TuiIdService } from '@taiga-ui/cdk/services';
|
|
10
|
+
|
|
11
|
+
var TuiPushComponent = /** @class */ (function () {
|
|
12
|
+
function TuiPushComponent(closeWord$) {
|
|
13
|
+
this.closeWord$ = closeWord$;
|
|
14
|
+
this.heading = "";
|
|
15
|
+
this.type = "";
|
|
16
|
+
this.timestamp = 0;
|
|
17
|
+
this.close = new EventEmitter();
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(TuiPushComponent.prototype, "closeable", {
|
|
20
|
+
get: function () {
|
|
21
|
+
return tuiIsObserved(this.close);
|
|
22
|
+
},
|
|
23
|
+
enumerable: true,
|
|
24
|
+
configurable: true
|
|
25
|
+
});
|
|
26
|
+
TuiPushComponent.ctorParameters = function () { return [
|
|
27
|
+
{ type: Observable, decorators: [{ type: Inject, args: [TUI_CLOSE_WORD,] }] }
|
|
28
|
+
]; };
|
|
29
|
+
__decorate([
|
|
30
|
+
Input(),
|
|
31
|
+
tuiDefaultProp()
|
|
32
|
+
], TuiPushComponent.prototype, "heading", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
Input(),
|
|
35
|
+
tuiDefaultProp()
|
|
36
|
+
], TuiPushComponent.prototype, "type", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
Input(),
|
|
39
|
+
tuiDefaultProp()
|
|
40
|
+
], TuiPushComponent.prototype, "timestamp", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
Output()
|
|
43
|
+
], TuiPushComponent.prototype, "close", void 0);
|
|
44
|
+
TuiPushComponent = __decorate([
|
|
45
|
+
Component({
|
|
46
|
+
selector: "tui-push",
|
|
47
|
+
template: "<div class=\"t-image\"><ng-content select=\"img\"></ng-content></div>\n<button\n *ngIf=\"closeable\"\n tuiIconButton\n icon=\"tuiIconCloseLarge\"\n size=\"xs\"\n appearance=\"\"\n shape=\"rounded\"\n class=\"t-close\"\n [title]=\"closeWord$ | async\"\n (click)=\"close.emit()\"\n></button>\n<div class=\"t-top\">\n <span class=\"t-icon\"><ng-content select=\"tui-svg\"></ng-content></span>\n {{ type }}\n <span\n *ngIf=\"timestamp\"\n class=\"t-time\"\n [textContent]=\"timestamp | tuiFormatDate | async\"\n ></span>\n</div>\n<h3 class=\"t-heading\">{{ heading }}</h3>\n<div class=\"t-content\">\n <ng-content></ng-content>\n</div>\n<div class=\"t-actions\">\n <span class=\"t-button\"><ng-content select=\"[tuiButton]\"></ng-content></span>\n <span class=\"t-link\"><ng-content select=\"[tuiLink]\"></ng-content></span>\n</div>\n",
|
|
48
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
49
|
+
styles: [":host{box-shadow:0 .25rem 1.5rem rgba(0,0,0,.12);position:relative;display:block;width:22.5rem;max-width:100%;box-sizing:border-box;padding:1.25rem 1.25rem .25rem;overflow:hidden;font:var(--tui-font-text-m);border-radius:var(--tui-radius-l);background:var(--tui-elevation-02)}.t-image{display:flex;flex-direction:column;max-height:10.625rem;overflow:hidden;margin:-1.25rem -1.25rem 1.25rem}.t-close{position:absolute;top:.75rem;right:.75rem;color:rgba(0,0,0,.54);background:rgba(242,242,242,.32);-webkit-backdrop-filter:blur(1rem);backdrop-filter:blur(1rem)}.t-top{display:flex;align-items:center;font:var(--tui-font-text-s);color:var(--tui-text-02)}.t-icon{height:1.25rem;margin-right:.5rem;transform:scale(.833);transform-origin:top left;color:var(--tui-link)}.t-time:before{content:'\u2022';display:inline-block;width:1rem;text-align:center}.t-heading{line-height:1.25rem;font-weight:700;margin:.75rem 0 .25rem}.t-content,.t-heading{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;word-break:break-word;overflow:hidden}.t-actions{display:flex;align-items:center;font:var(--tui-font-text-s)}.t-button:not(:empty){margin:.75rem .75rem .75rem 0}.t-link{margin:.75rem 0}.t-link:empty{margin:.5rem}"]
|
|
50
|
+
}),
|
|
51
|
+
__param(0, Inject(TUI_CLOSE_WORD))
|
|
52
|
+
], TuiPushComponent);
|
|
53
|
+
return TuiPushComponent;
|
|
54
|
+
}());
|
|
55
|
+
|
|
56
|
+
var TuiPushDirective = /** @class */ (function (_super) {
|
|
57
|
+
__extends(TuiPushDirective, _super);
|
|
58
|
+
function TuiPushDirective(modeDirective) {
|
|
59
|
+
var _a;
|
|
60
|
+
var _this = _super.call(this) || this;
|
|
61
|
+
_this.modeDirective = modeDirective;
|
|
62
|
+
_this.size = "s";
|
|
63
|
+
_this.shape = null;
|
|
64
|
+
_this.change$ = ((_a = _this.modeDirective) === null || _a === void 0 ? void 0 : _a.change$) || new Subject();
|
|
65
|
+
return _this;
|
|
66
|
+
}
|
|
67
|
+
TuiPushDirective_1 = TuiPushDirective;
|
|
68
|
+
Object.defineProperty(TuiPushDirective.prototype, "appearance", {
|
|
69
|
+
get: function () {
|
|
70
|
+
var _a;
|
|
71
|
+
return ((_a = this.modeDirective) === null || _a === void 0 ? void 0 : _a.mode) === "onDark" ? "accent" : "secondary";
|
|
72
|
+
},
|
|
73
|
+
enumerable: true,
|
|
74
|
+
configurable: true
|
|
75
|
+
});
|
|
76
|
+
var TuiPushDirective_1;
|
|
77
|
+
TuiPushDirective.ctorParameters = function () { return [
|
|
78
|
+
{ type: TuiModeDirective, decorators: [{ type: Optional }, { type: SkipSelf }, { type: Inject, args: [TuiModeDirective,] }] }
|
|
79
|
+
]; };
|
|
80
|
+
TuiPushDirective = TuiPushDirective_1 = __decorate([
|
|
81
|
+
Directive({
|
|
82
|
+
selector: "tui-push",
|
|
83
|
+
providers: [
|
|
84
|
+
{
|
|
85
|
+
provide: TuiModeDirective,
|
|
86
|
+
useExisting: TuiPushDirective_1,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
provide: TUI_BUTTON_OPTIONS,
|
|
90
|
+
useExisting: TuiPushDirective_1,
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
}),
|
|
94
|
+
__param(0, Optional()),
|
|
95
|
+
__param(0, SkipSelf()),
|
|
96
|
+
__param(0, Inject(TuiModeDirective))
|
|
97
|
+
], TuiPushDirective);
|
|
98
|
+
return TuiPushDirective;
|
|
99
|
+
}(TuiModeDirective));
|
|
100
|
+
|
|
101
|
+
var TUI_PUSH_DEFAULT_OPTIONS = {
|
|
102
|
+
heading: "",
|
|
103
|
+
type: "",
|
|
104
|
+
timestamp: 0,
|
|
105
|
+
image: "",
|
|
106
|
+
icon: "",
|
|
107
|
+
iconColor: "",
|
|
108
|
+
buttons: [],
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
var TuiPushAlertDirective = /** @class */ (function (_super) {
|
|
112
|
+
__extends(TuiPushAlertDirective, _super);
|
|
113
|
+
function TuiPushAlertDirective(template, changeDetectorRef, destroy$, push) {
|
|
114
|
+
var _this = _super.call(this, template, changeDetectorRef) || this;
|
|
115
|
+
_this.show$ = new Subject();
|
|
116
|
+
_this.show$
|
|
117
|
+
.pipe(switchMap(function (show) { return (show ? push.open(_this) : EMPTY); }), takeUntil(destroy$))
|
|
118
|
+
.subscribe();
|
|
119
|
+
return _this;
|
|
120
|
+
}
|
|
121
|
+
Object.defineProperty(TuiPushAlertDirective.prototype, "tuiPush", {
|
|
122
|
+
set: function (show) {
|
|
123
|
+
this.show$.next(show);
|
|
124
|
+
},
|
|
125
|
+
enumerable: true,
|
|
126
|
+
configurable: true
|
|
127
|
+
});
|
|
128
|
+
TuiPushAlertDirective.ctorParameters = function () { return [
|
|
129
|
+
{ type: TemplateRef, decorators: [{ type: Inject, args: [TemplateRef,] }] },
|
|
130
|
+
{ type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
|
|
131
|
+
{ type: Observable, decorators: [{ type: Inject, args: [TuiDestroyService,] }] },
|
|
132
|
+
{ type: TuiPushService, decorators: [{ type: Inject, args: [forwardRef(function () { return TuiPushService; }),] }] }
|
|
133
|
+
]; };
|
|
134
|
+
__decorate([
|
|
135
|
+
Input()
|
|
136
|
+
], TuiPushAlertDirective.prototype, "tuiPush", null);
|
|
137
|
+
TuiPushAlertDirective = __decorate([
|
|
138
|
+
Directive({
|
|
139
|
+
selector: "[tuiPush]",
|
|
140
|
+
providers: [TuiDestroyService],
|
|
141
|
+
}),
|
|
142
|
+
__param(0, Inject(TemplateRef)),
|
|
143
|
+
__param(1, Inject(ChangeDetectorRef)),
|
|
144
|
+
__param(2, Inject(TuiDestroyService)),
|
|
145
|
+
__param(3, Inject(forwardRef(function () { return TuiPushService; })))
|
|
146
|
+
], TuiPushAlertDirective);
|
|
147
|
+
return TuiPushAlertDirective;
|
|
148
|
+
}(PolymorpheusTemplate));
|
|
149
|
+
|
|
150
|
+
var TuiPushAlertComponent = /** @class */ (function () {
|
|
151
|
+
function TuiPushAlertComponent(options, context) {
|
|
152
|
+
this.options = options;
|
|
153
|
+
this.context = context;
|
|
154
|
+
this.animation = __assign({ value: "" }, this.options);
|
|
155
|
+
}
|
|
156
|
+
Object.defineProperty(TuiPushAlertComponent.prototype, "isDirective", {
|
|
157
|
+
get: function () {
|
|
158
|
+
return this.context.content instanceof TuiPushAlertDirective;
|
|
159
|
+
},
|
|
160
|
+
enumerable: true,
|
|
161
|
+
configurable: true
|
|
162
|
+
});
|
|
163
|
+
TuiPushAlertComponent.ctorParameters = function () { return [
|
|
164
|
+
{ type: undefined, decorators: [{ type: Inject, args: [TUI_ANIMATION_OPTIONS,] }] },
|
|
165
|
+
{ type: undefined, decorators: [{ type: Inject, args: [POLYMORPHEUS_CONTEXT,] }] }
|
|
166
|
+
]; };
|
|
167
|
+
__decorate([
|
|
168
|
+
HostBinding("@tuiFadeIn"),
|
|
169
|
+
HostBinding("@tuiSlideInRight"),
|
|
170
|
+
HostBinding("@tuiHeightCollapse")
|
|
171
|
+
], TuiPushAlertComponent.prototype, "animation", void 0);
|
|
172
|
+
TuiPushAlertComponent = __decorate([
|
|
173
|
+
Component({
|
|
174
|
+
selector: "tui-push-alert",
|
|
175
|
+
template: "<tui-push\n *ngIf=\"!isDirective; else content\"\n [heading]=\"context.heading\"\n [type]=\"context.type\"\n [timestamp]=\"context.timestamp\"\n (close)=\"context.$implicit.complete()\"\n>\n <img\n *ngIf=\"context.image\"\n alt=\"\"\n [src]=\"context.image\"\n />\n <tui-svg\n *ngIf=\"context.icon\"\n [style.color]=\"context.iconColor\"\n [src]=\"context.icon\"\n ></tui-svg>\n <div\n polymorpheus-outlet\n [content]=\"context.content\"\n ></div>\n <button\n *ngIf=\"context.buttons.length > 1\"\n tuiButton\n (click)=\"context.$implicit.next(context.buttons[0])\"\n >\n {{ context.buttons[0] }}\n </button>\n <button\n *ngIf=\"context.buttons.length\"\n tuiLink\n (click)=\"context.$implicit.next(context.buttons[context.buttons.length - 1])\"\n >\n {{ context.buttons[context.buttons.length - 1] }}\n </button>\n</tui-push>\n<ng-template #content>\n <div\n polymorpheus-outlet\n [content]=\"context.content\"\n ></div>\n</ng-template>\n",
|
|
176
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
177
|
+
animations: [tuiFadeIn, tuiSlideInRight, tuiHeightCollapse],
|
|
178
|
+
host: { role: "alert" },
|
|
179
|
+
styles: [":host{max-width:calc(100% - 2rem);margin:0 1rem 1rem auto}:host:first-child{margin-top:auto}"]
|
|
180
|
+
}),
|
|
181
|
+
__param(0, Inject(TUI_ANIMATION_OPTIONS)),
|
|
182
|
+
__param(1, Inject(POLYMORPHEUS_CONTEXT))
|
|
183
|
+
], TuiPushAlertComponent);
|
|
184
|
+
return TuiPushAlertComponent;
|
|
185
|
+
}());
|
|
186
|
+
|
|
187
|
+
var TuiPushService = /** @class */ (function (_super) {
|
|
188
|
+
__extends(TuiPushService, _super);
|
|
189
|
+
function TuiPushService() {
|
|
190
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
191
|
+
_this.component = new PolymorpheusComponent(TuiPushAlertComponent);
|
|
192
|
+
_this.defaultOptions = TUI_PUSH_DEFAULT_OPTIONS;
|
|
193
|
+
return _this;
|
|
194
|
+
}
|
|
195
|
+
TuiPushService.prototype.open = function (content, options) {
|
|
196
|
+
if (options === void 0) { options = {}; }
|
|
197
|
+
return _super.prototype.open.call(this, content, options);
|
|
198
|
+
};
|
|
199
|
+
TuiPushService.ɵprov = ɵɵdefineInjectable({ factory: function TuiPushService_Factory() { return new TuiPushService(ɵɵinject(TuiIdService)); }, token: TuiPushService, providedIn: "root" });
|
|
200
|
+
TuiPushService = __decorate([
|
|
201
|
+
Injectable({ providedIn: "root" })
|
|
202
|
+
], TuiPushService);
|
|
203
|
+
return TuiPushService;
|
|
204
|
+
}(AbstractTuiDialogService));
|
|
205
|
+
|
|
206
|
+
var TuiPushModule = /** @class */ (function () {
|
|
207
|
+
function TuiPushModule() {
|
|
208
|
+
}
|
|
209
|
+
TuiPushModule = __decorate([
|
|
210
|
+
NgModule({
|
|
211
|
+
imports: [
|
|
212
|
+
CommonModule,
|
|
213
|
+
PolymorpheusModule,
|
|
214
|
+
TuiButtonModule,
|
|
215
|
+
TuiLinkModule,
|
|
216
|
+
TuiSvgModule,
|
|
217
|
+
TuiFormatDatePipeModule,
|
|
218
|
+
],
|
|
219
|
+
declarations: [
|
|
220
|
+
TuiPushComponent,
|
|
221
|
+
TuiPushDirective,
|
|
222
|
+
TuiPushAlertComponent,
|
|
223
|
+
TuiPushAlertDirective,
|
|
224
|
+
],
|
|
225
|
+
exports: [
|
|
226
|
+
TuiPushComponent,
|
|
227
|
+
TuiPushDirective,
|
|
228
|
+
TuiPushAlertComponent,
|
|
229
|
+
TuiPushAlertDirective,
|
|
230
|
+
],
|
|
231
|
+
providers: [
|
|
232
|
+
{
|
|
233
|
+
provide: TUI_ALERTS,
|
|
234
|
+
useExisting: TuiPushService,
|
|
235
|
+
multi: true,
|
|
236
|
+
},
|
|
237
|
+
],
|
|
238
|
+
})
|
|
239
|
+
], TuiPushModule);
|
|
240
|
+
return TuiPushModule;
|
|
241
|
+
}());
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Generated bundle index. Do not edit.
|
|
245
|
+
*/
|
|
246
|
+
|
|
247
|
+
export { TUI_PUSH_DEFAULT_OPTIONS, TuiPushAlertComponent, TuiPushAlertDirective, TuiPushComponent, TuiPushDirective, TuiPushModule, TuiPushService };
|
|
248
|
+
//# sourceMappingURL=taiga-ui-kit-components-push.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-push.js","sources":["ng://@taiga-ui/kit/components/push/push.component.ts","ng://@taiga-ui/kit/components/push/push.directive.ts","ng://@taiga-ui/kit/components/push/push.options.ts","ng://@taiga-ui/kit/components/push/push-alert.directive.ts","ng://@taiga-ui/kit/components/push/push-alert.component.ts","ng://@taiga-ui/kit/components/push/push.service.ts","ng://@taiga-ui/kit/components/push/push.module.ts","ng://@taiga-ui/kit/components/push/taiga-ui-kit-components-push.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Inject,\n Input,\n Output,\n} from '@angular/core';\nimport {tuiDefaultProp, tuiIsObserved} from '@taiga-ui/cdk';\nimport {TUI_CLOSE_WORD} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: `tui-push`,\n templateUrl: `./push.template.html`,\n styleUrls: [`./push.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiPushComponent {\n @Input()\n @tuiDefaultProp()\n heading = ``;\n\n @Input()\n @tuiDefaultProp()\n type = ``;\n\n @Input()\n @tuiDefaultProp()\n timestamp = 0;\n\n @Output()\n readonly close = new EventEmitter<void>();\n\n constructor(@Inject(TUI_CLOSE_WORD) readonly closeWord$: Observable<string>) {}\n\n get closeable(): boolean {\n return tuiIsObserved(this.close);\n }\n}\n","import {Directive, Inject, Optional, SkipSelf} from '@angular/core';\nimport {TUI_BUTTON_OPTIONS, TuiButtonOptions, TuiModeDirective} from '@taiga-ui/core';\nimport {Subject} from 'rxjs';\n\n@Directive({\n selector: `tui-push`,\n providers: [\n {\n provide: TuiModeDirective,\n useExisting: TuiPushDirective,\n },\n {\n provide: TUI_BUTTON_OPTIONS,\n useExisting: TuiPushDirective,\n },\n ],\n})\nexport class TuiPushDirective extends TuiModeDirective implements TuiButtonOptions {\n size: TuiButtonOptions['size'] = `s`;\n\n shape = null;\n\n readonly change$ = this.modeDirective?.change$ || new Subject();\n\n constructor(\n @Optional()\n @SkipSelf()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n ) {\n super();\n }\n\n get appearance(): string {\n return this.modeDirective?.mode === `onDark` ? `accent` : `secondary`;\n }\n}\n","export interface TuiPushOptions {\n readonly heading: string;\n readonly type: string;\n readonly timestamp: number;\n readonly image: string;\n readonly icon: string;\n readonly iconColor: string;\n readonly buttons: readonly string[];\n}\n\nexport const TUI_PUSH_DEFAULT_OPTIONS: TuiPushOptions = {\n heading: ``,\n type: ``,\n timestamp: 0,\n image: ``,\n icon: ``,\n iconColor: ``,\n buttons: [],\n};\n","import {\n ChangeDetectorRef,\n Directive,\n forwardRef,\n Inject,\n Input,\n TemplateRef,\n} from '@angular/core';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {PolymorpheusTemplate} from '@tinkoff/ng-polymorpheus';\nimport {EMPTY, Observable, Subject} from 'rxjs';\nimport {switchMap, takeUntil} from 'rxjs/operators';\n\nimport {TuiPushService} from './push.service';\n\n@Directive({\n selector: `[tuiPush]`,\n providers: [TuiDestroyService],\n})\nexport class TuiPushAlertDirective extends PolymorpheusTemplate<any> {\n private readonly show$ = new Subject<boolean>();\n\n @Input()\n set tuiPush(show: boolean) {\n this.show$.next(show);\n }\n\n constructor(\n @Inject(TemplateRef) template: TemplateRef<any>,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TuiDestroyService) destroy$: Observable<unknown>,\n @Inject(forwardRef(() => TuiPushService)) push: TuiPushService,\n ) {\n super(template, changeDetectorRef);\n\n this.show$\n .pipe(\n switchMap(show => (show ? push.open(this) : EMPTY)),\n takeUntil(destroy$),\n )\n .subscribe();\n }\n}\n","import {AnimationOptions} from '@angular/animations';\nimport {ChangeDetectionStrategy, Component, HostBinding, Inject} from '@angular/core';\nimport {TuiDialog} from '@taiga-ui/cdk';\nimport {\n TUI_ANIMATION_OPTIONS,\n tuiFadeIn,\n tuiHeightCollapse,\n tuiSlideInRight,\n} from '@taiga-ui/core';\nimport {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiPushOptions} from './push.options';\nimport {TuiPushAlertDirective} from './push-alert.directive';\n\n@Component({\n selector: `tui-push-alert`,\n templateUrl: `./push-alert.template.html`,\n styleUrls: [`./push-alert.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiFadeIn, tuiSlideInRight, tuiHeightCollapse],\n host: {role: `alert`},\n})\nexport class TuiPushAlertComponent {\n @HostBinding(`@tuiFadeIn`)\n @HostBinding(`@tuiSlideInRight`)\n @HostBinding(`@tuiHeightCollapse`)\n readonly animation = {value: ``, ...this.options} as const;\n\n constructor(\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(POLYMORPHEUS_CONTEXT)\n readonly context: TuiDialog<TuiPushOptions, string>,\n ) {}\n\n get isDirective(): boolean {\n return this.context.content instanceof TuiPushAlertDirective;\n }\n}\n","import {Injectable} from '@angular/core';\nimport {AbstractTuiDialogService, TuiBaseDialogContext} from '@taiga-ui/cdk';\nimport {PolymorpheusComponent, PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TUI_PUSH_DEFAULT_OPTIONS, TuiPushOptions} from './push.options';\nimport {TuiPushAlertComponent} from './push-alert.component';\n\n@Injectable({providedIn: `root`})\nexport class TuiPushService extends AbstractTuiDialogService<TuiPushOptions, string> {\n protected readonly component = new PolymorpheusComponent(TuiPushAlertComponent);\n protected readonly defaultOptions = TUI_PUSH_DEFAULT_OPTIONS;\n\n open(\n content: PolymorpheusContent<TuiBaseDialogContext<string> & TuiPushOptions>,\n options: Partial<TuiPushOptions> = {},\n ): Observable<string> {\n return super.open(content, options);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TUI_ALERTS} from '@taiga-ui/cdk';\nimport {\n TuiButtonModule,\n TuiFormatDatePipeModule,\n TuiLinkModule,\n TuiSvgModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiPushComponent} from './push.component';\nimport {TuiPushDirective} from './push.directive';\nimport {TuiPushService} from './push.service';\nimport {TuiPushAlertComponent} from './push-alert.component';\nimport {TuiPushAlertDirective} from './push-alert.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiButtonModule,\n TuiLinkModule,\n TuiSvgModule,\n TuiFormatDatePipeModule,\n ],\n declarations: [\n TuiPushComponent,\n TuiPushDirective,\n TuiPushAlertComponent,\n TuiPushAlertDirective,\n ],\n exports: [\n TuiPushComponent,\n TuiPushDirective,\n TuiPushAlertComponent,\n TuiPushAlertDirective,\n ],\n providers: [\n {\n provide: TUI_ALERTS,\n useExisting: TuiPushService,\n multi: true,\n },\n ],\n})\nexport class TuiPushModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;IAkCI,0BAA6C,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;QAb3E,YAAO,GAAG,EAAE,CAAC;QAIb,SAAI,GAAG,EAAE,CAAC;QAIV,cAAS,GAAG,CAAC,CAAC;QAGL,UAAK,GAAG,IAAI,YAAY,EAAQ,CAAC;KAEqC;IAE/E,sBAAI,uCAAS;aAAb;YACI,OAAO,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACpC;;;OAAA;;gBAJwD,UAAU,uBAAtD,MAAM,SAAC,cAAc;;IAblC;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;qDACJ;IAIb;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;kDACP;IAIV;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;uDACH;IAGd;QADC,MAAM,EAAE;mDACiC;IAdjC,gBAAgB;QAN5B,SAAS,CAAC;YACP,QAAQ,EAAE,UAAU;YACpB,+4BAAmC;YAEnC,eAAe,EAAE,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;aAC1B;YACD,YAAY,EAAE;gBACV,gBAAgB;gBAChB,gBAAgB;gBAChB,qBAAqB;gBACrB,qBAAqB;aACxB;YACD,OAAO,EAAE;gBACL,gBAAgB;gBAChB,gBAAgB;gBAChB,qBAAqB;gBACrB,qBAAqB;aACxB;YACD,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,UAAU;oBACnB,WAAW,EAAE,cAAc;oBAC3B,KAAK,EAAE,IAAI;iBACd;aACJ;SACJ,CAAC;OACW,aAAa,CAAG;IAAD,oBAAC;CAA7B;;AC9CA;;;;;;"}
|
|
@@ -235,7 +235,7 @@ var TuiTextAreaComponent = /** @class */ (function (_super) {
|
|
|
235
235
|
'($.data-mode.attr)': "mode$",
|
|
236
236
|
'[class._ios]': "isIOS",
|
|
237
237
|
},
|
|
238
|
-
styles: [":host{position:relative;z-index:0;display:flex;font:var(--tui-font-text-m);flex-direction:column;min-height:6.75rem;border-radius:var(--tui-radius-m);color:var(--tui-text-01)}:host[data-mode=onDark]{color:var(--tui-text-01-night)}:host[data-size='m']{font:var(--tui-font-text-s);min-height:5.5rem}:host[data-size='m']._has-counter{min-height:6.625rem}:host[data-size='l']._has-counter{min-height:7.875rem}.t-outline{min-height:inherit}.t-content{display:block;margin-top:0;margin-bottom:0;min-height:inherit;box-sizing:border-box;overflow:hidden;cursor:text}:host._disabled .t-content{cursor:auto;opacity:var(--tui-disabled-opacity)}:host:not(._expandable) .t-content{position:absolute;top:0;left:0;bottom:1px;right:0;min-height:auto}:host._has-counter:not(._expandable) .t-content{bottom:1.6875rem}.t-wrapper{position:relative;width:100%;height:100%;min-height:inherit;padding-bottom:.4375rem;box-sizing:border-box}:host[data-size='m']._label-outside .t-wrapper{padding-top:.75rem}:host[data-size='l']._label-outside .t-wrapper{padding-top:1rem}:host[data-size='m']:not(._label-outside) .t-wrapper{padding-top:1.375rem}:host[data-size='l']:not(._label-outside) .t-wrapper{padding-top:1.625rem}:host-context(table)[data-size='m']._label-outside .t-wrapper{padding-bottom:.75rem}:host-context(table)[data-size='l']._label-outside .t-wrapper{padding-bottom:1rem}.t-input-wrapper{min-height:inherit;width:100%;flex:1}.t-relative{position:relative;min-height:inherit}.t-box{display:flex;min-height:100%;width:100%}:host:not(._expandable) .t-box{height:100%}:host._has-counter._expandable .t-box{margin-bottom:1.25rem}.t-pseudo-content{white-space:pre-wrap;word-wrap:break-word;pointer-events:none;color:transparent;overflow:hidden;border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0)}:host[data-size='m'] .t-pseudo-content{padding:0 .75rem}:host[data-size='l'] .t-pseudo-content{padding:0 1rem}.t-pseudo-content__extra{background-color:var(--tui-error-bg-night)}.t-input{padding:0;margin:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;resize:none;overflow:hidden;outline:0;border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0)}.t-input:-webkit-autofill,.t-input:-webkit-autofill:focus,.t-input:-webkit-autofill:hover{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-input:not(:last-of-type){display:none}.t-input::-ms-input-placeholder{color:var(--tui-text-03);opacity:0}.t-input::placeholder{color:var(--tui-text-03);opacity:0}:host[data-mode=onDark] .t-input::-ms-input-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-input::placeholder{color:var(--tui-text-03-night)}:host._focused .t-input:not(:read-only)::-ms-input-placeholder{opacity:1}:host._focused .t-input:not(:-moz-read-only)::placeholder{opacity:1}:host._focused .t-input:not(:read-only)::placeholder{opacity:1}:host[data-size='m'] .t-input{padding:0 .75rem}:host[data-size='l'] .t-input{padding:0 1rem}:host
|
|
238
|
+
styles: [":host{position:relative;z-index:0;display:flex;font:var(--tui-font-text-m);flex-direction:column;min-height:6.75rem;border-radius:var(--tui-radius-m);color:var(--tui-text-01)}:host[data-mode=onDark]{color:var(--tui-text-01-night)}:host[data-size='m']{font:var(--tui-font-text-s);min-height:5.5rem}:host[data-size='m']._has-counter{min-height:6.625rem}:host[data-size='l']._has-counter{min-height:7.875rem}.t-outline{min-height:inherit}.t-content{display:block;margin-top:0;margin-bottom:0;min-height:inherit;box-sizing:border-box;overflow:hidden;cursor:text}:host._disabled .t-content{cursor:auto;opacity:var(--tui-disabled-opacity)}:host:not(._expandable) .t-content{position:absolute;top:0;left:0;bottom:1px;right:0;min-height:auto}:host._has-counter:not(._expandable) .t-content{bottom:1.6875rem}.t-wrapper{position:relative;width:100%;height:100%;min-height:inherit;padding-bottom:.4375rem;box-sizing:border-box}:host[data-size='m']._label-outside .t-wrapper{padding-top:.75rem}:host[data-size='l']._label-outside .t-wrapper{padding-top:1rem}:host[data-size='m']:not(._label-outside) .t-wrapper{padding-top:1.375rem}:host[data-size='l']:not(._label-outside) .t-wrapper{padding-top:1.625rem}:host-context(table)[data-size='m']._label-outside .t-wrapper{padding-bottom:.75rem}:host-context(table)[data-size='l']._label-outside .t-wrapper{padding-bottom:1rem}.t-input-wrapper{min-height:inherit;width:100%;flex:1}.t-relative{position:relative;min-height:inherit}.t-box{display:flex;min-height:100%;width:100%}:host:not(._expandable) .t-box{height:100%}:host._has-counter._expandable .t-box{margin-bottom:1.25rem}.t-pseudo-content{white-space:pre-wrap;word-wrap:break-word;pointer-events:none;color:transparent;overflow:hidden;border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0)}:host[data-size='m'] .t-pseudo-content{padding:0 .75rem}:host[data-size='l'] .t-pseudo-content{padding:0 1rem}.t-pseudo-content__extra{background-color:var(--tui-error-bg-night)}.t-input{padding:0;margin:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;resize:none;overflow:hidden;outline:0;border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0)}.t-input:-webkit-autofill,.t-input:-webkit-autofill:focus,.t-input:-webkit-autofill:hover{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-input:not(:last-of-type){display:none}.t-input::-ms-input-placeholder{color:var(--tui-text-03);opacity:0}.t-input::placeholder{color:var(--tui-text-03);opacity:0}:host[data-mode=onDark] .t-input::-ms-input-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-input::placeholder{color:var(--tui-text-03-night)}:host._focused .t-input:not(:read-only)::-ms-input-placeholder{opacity:1}:host._focused .t-input:not(:-moz-read-only)::placeholder{opacity:1}:host._focused .t-input:not(:read-only)::placeholder{opacity:1}:host[data-size='m'] .t-input{padding:0 .75rem}:host[data-size='l'] .t-input{padding:0 1rem}:host[data-mode=onDark]._disabled .t-input{color:var(--tui-text-03-night)}@supports (-webkit-marquee-repetition:infinite) and (object-fit:fill){:host._ios .t-input{padding-left:.8125rem}}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);pointer-events:none;will-change:transform;transform:translateY(0);position:absolute;left:0;max-width:100%;padding:0 1rem;border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0);box-sizing:border-box}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size='m'] .t-placeholder_raised{font:var(--tui-font-text-xs);transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .t-placeholder_raised,:host._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .t-placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size='l']._focused._label-outside .t-placeholder,:host[data-size='m']._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size='l'] .t-placeholder{font-size:.9375rem}:host[data-size='l'] .t-placeholder_raised{font-size:.8156rem}:host[data-size='l']._focused:not(._label-outside) .t-placeholder,:host[data-size='m']._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size='l'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .t-placeholder,:host[data-size='l'][data-mode=onDark]._focused._label-outside .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused._label-outside .t-placeholder{color:var(--tui-text-02-night)}@supports (-webkit-hyphens:none){.t-placeholder{will-change:unset;transition-property:transform,color,letter-spacing}}:host[data-size='m'] .t-placeholder{top:.75rem;padding:0 .75rem}:host[data-size='l'] .t-placeholder{top:1rem}:host._label-outside .t-placeholder{overflow:initial;height:auto;white-space:initial}.t-icons{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:flex-end;pointer-events:none;padding:1rem .75rem}:host[data-size='m'] .t-icons{padding:.75rem}.t-cleaner{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform;pointer-events:auto}.t-cleaner:hover{color:var(--tui-text-02)}:host._disabled .t-cleaner,:host._readonly .t-cleaner{pointer-events:none}:host[data-mode=onDark] .t-cleaner{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-cleaner:hover{color:var(--tui-text-01-night)}.t-tooltip{pointer-events:auto}.t-counter{position:absolute;right:.75rem;bottom:.5rem;font:var(--tui-font-text-s);pointer-events:none;margin-top:auto;text-align:right;color:var(--tui-text-03)}:host[data-mode=onDark] .t-counter{color:var(--tui-text-03-night)}"]
|
|
239
239
|
}),
|
|
240
240
|
__param(0, Optional()),
|
|
241
241
|
__param(0, Self()),
|
|
@@ -43,6 +43,7 @@ export * from '@taiga-ui/kit/components/multi-select-option';
|
|
|
43
43
|
export * from '@taiga-ui/kit/components/pagination';
|
|
44
44
|
export * from '@taiga-ui/kit/components/pdf-viewer';
|
|
45
45
|
export * from '@taiga-ui/kit/components/progress';
|
|
46
|
+
export * from '@taiga-ui/kit/components/push';
|
|
46
47
|
export * from '@taiga-ui/kit/components/radio';
|
|
47
48
|
export * from '@taiga-ui/kit/components/radio-block';
|
|
48
49
|
export * from '@taiga-ui/kit/components/radio-group';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components.js","sources":["ng://@taiga-ui/kit/components/taiga-ui-kit-components.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components.js","sources":["ng://@taiga-ui/kit/components/taiga-ui-kit-components.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/kit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.62.1",
|
|
4
4
|
"description": "Taiga UI Angular main components kit",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@angular/router": ">=9.0.0",
|
|
25
25
|
"@ng-web-apis/common": ">=1.12.1 < 2",
|
|
26
26
|
"@ng-web-apis/mutation-observer": ">=1.1.0 < 2",
|
|
27
|
-
"@taiga-ui/cdk": ">=2.
|
|
28
|
-
"@taiga-ui/core": ">=2.
|
|
29
|
-
"@taiga-ui/i18n": ">=2.
|
|
27
|
+
"@taiga-ui/cdk": ">=2.62.1",
|
|
28
|
+
"@taiga-ui/core": ">=2.62.1",
|
|
29
|
+
"@taiga-ui/i18n": ">=2.62.1",
|
|
30
30
|
"@tinkoff/ng-polymorpheus": ">=3.1.12 < 4",
|
|
31
31
|
"rxjs": ">=6.0.0"
|
|
32
32
|
},
|