@taiga-ui/core 3.18.0-dev.main-a12f1fc → 3.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/taiga-ui-core-components-root.umd.js +1 -1
- package/bundles/taiga-ui-core-pipes-flag.umd.js +96 -0
- package/bundles/taiga-ui-core-pipes-flag.umd.js.map +1 -0
- package/bundles/taiga-ui-core-pipes.umd.js +10 -4
- package/bundles/taiga-ui-core-pipes.umd.js.map +1 -1
- package/esm2015/components/root/root.component.js +1 -1
- package/esm2015/pipes/flag/flag.module.js +16 -0
- package/esm2015/pipes/flag/flag.pipe.js +44 -0
- package/esm2015/pipes/flag/index.js +3 -0
- package/esm2015/pipes/flag/taiga-ui-core-pipes-flag.js +5 -0
- package/esm2015/pipes/index.js +2 -1
- package/fesm2015/taiga-ui-core-components-root.js +1 -1
- package/fesm2015/taiga-ui-core-pipes-flag.js +64 -0
- package/fesm2015/taiga-ui-core-pipes-flag.js.map +1 -0
- package/fesm2015/taiga-ui-core-pipes.js +1 -0
- package/fesm2015/taiga-ui-core-pipes.js.map +1 -1
- package/package.json +4 -4
- package/pipes/flag/flag.module.d.ts +7 -0
- package/pipes/flag/flag.pipe.d.ts +13 -0
- package/pipes/flag/index.d.ts +2 -0
- package/pipes/flag/package.json +10 -0
- package/pipes/flag/taiga-ui-core-pipes-flag.d.ts +5 -0
- package/pipes/index.d.ts +1 -0
|
@@ -368,7 +368,7 @@
|
|
|
368
368
|
return TuiRootComponent;
|
|
369
369
|
}());
|
|
370
370
|
TuiRootComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRootComponent, deps: [{ token: tokens.TUI_ANIMATIONS_DURATION }, { token: i0.ElementRef }, { token: i3.TUI_DIALOGS }, { token: i3.TUI_IS_MOBILE }, { token: tokens.TUI_ASSERT_ENABLED }, { token: tokens.TUI_IS_MOBILE_RES }, { token: i5.DOCUMENT }, { token: tokens.TUI_THEME }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
371
|
-
TuiRootComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiRootComponent, selector: "tui-root", host: { attributes: { "data-tui-version": "3.
|
|
371
|
+
TuiRootComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiRootComponent, selector: "tui-root", host: { attributes: { "data-tui-version": "3.19.0" }, listeners: { "$.class._mobile": "isMobileRes$" }, properties: { "style.--tui-duration.ms": "duration" } }, providers: [providers.TUI_IS_MOBILE_RES_PROVIDER], ngImport: i0__namespace, template: "<tui-scroll-controls\n *ngIf=\"scrollbars$ | async\"\n class=\"t-root-scrollbar\"\n></tui-scroll-controls>\n<tui-svg-defs-host></tui-svg-defs-host>\n<tui-dropdown-host>\n <div class=\"t-root-content\">\n <ng-content></ng-content>\n </div>\n <ng-content select=\"tuiOverContent\"></ng-content>\n <tui-dialog-host></tui-dialog-host>\n <ng-content select=\"tuiOverDialogs\"></ng-content>\n <tui-alert-host></tui-alert-host>\n <ng-content select=\"tuiOverAlerts\"></ng-content>\n</tui-dropdown-host>\n<ng-content select=\"tuiOverPortals\"></ng-content>\n<tui-hints-host></tui-hints-host>\n<ng-content select=\"tuiOverHints\"></ng-content>\n", styles: ["@keyframes tuiPresent{to{content:\"1\"}}html,.tui-zero-scrollbar{scrollbar-width:none;-ms-overflow-style:none}html::-webkit-scrollbar,.tui-zero-scrollbar::-webkit-scrollbar,html::-webkit-scrollbar-thumb,.tui-zero-scrollbar::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}body{font:var(--tui-font-text-s);color:var(--tui-text-01);margin:0}tui-root{position:relative;display:block;flex:1;-webkit-tap-highlight-color:transparent}tui-root>.t-root-scrollbar{position:fixed;top:0;left:0;bottom:0;right:0;margin:0}.t-root-content{position:relative;z-index:0;height:100%}\n"], components: [{ type: i1__namespace.TuiScrollControlsComponent, selector: "tui-scroll-controls" }, { type: i2__namespace.TuiSvgDefsHostComponent, selector: "tui-svg-defs-host" }, { type: i3__namespace.TuiDropdownHostComponent, selector: "tui-dropdown-host" }, { type: i3__namespace.TuiDialogHostComponent, selector: "tui-dialog-host" }, { type: i3__namespace.TuiAlertHostComponent, selector: "tui-alert-host" }, { type: i4__namespace.TuiHintsHostComponent, selector: "tui-hints-host" }], directives: [{ type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i5__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.Default, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
372
372
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRootComponent, decorators: [{
|
|
373
373
|
type: i0.Component,
|
|
374
374
|
args: [{
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/core/components/svg'), require('@taiga-ui/i18n')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/core/pipes/flag', ['exports', '@angular/core', '@taiga-ui/core/components/svg', '@taiga-ui/i18n'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.pipes = global["taiga-ui"].core.pipes || {}, global["taiga-ui"].core.pipes.flag = {}), global.ng.core, global["taiga-ui"].core.components.svg, global.i18n));
|
|
5
|
+
})(this, (function (exports, i0, svg, i18n) { '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
|
+
|
|
27
|
+
var TuiFlagPipe = /** @class */ (function () {
|
|
28
|
+
function TuiFlagPipe(svgOptions) {
|
|
29
|
+
this.svgOptions = svgOptions;
|
|
30
|
+
this.staticPath = this.svgOptions
|
|
31
|
+
.path("tuiIcon")
|
|
32
|
+
.replace("tuiIcon.svg#tuiIcon", "");
|
|
33
|
+
}
|
|
34
|
+
TuiFlagPipe.prototype.transform = function (countryIsoCode) {
|
|
35
|
+
if (!countryIsoCode) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
switch (countryIsoCode) {
|
|
39
|
+
case i18n.TuiCountryIsoCode.BL:
|
|
40
|
+
case i18n.TuiCountryIsoCode.BQ:
|
|
41
|
+
case i18n.TuiCountryIsoCode.CW:
|
|
42
|
+
case i18n.TuiCountryIsoCode.GF:
|
|
43
|
+
case i18n.TuiCountryIsoCode.GP:
|
|
44
|
+
case i18n.TuiCountryIsoCode.MF:
|
|
45
|
+
case i18n.TuiCountryIsoCode.MQ:
|
|
46
|
+
case i18n.TuiCountryIsoCode.NC:
|
|
47
|
+
case i18n.TuiCountryIsoCode.RE:
|
|
48
|
+
case i18n.TuiCountryIsoCode.YT:
|
|
49
|
+
return "" + this.staticPath + i18n.TuiCountryIsoCode.FR + ".png";
|
|
50
|
+
case i18n.TuiCountryIsoCode.SX:
|
|
51
|
+
return "" + this.staticPath + i18n.TuiCountryIsoCode.NL + ".png";
|
|
52
|
+
default:
|
|
53
|
+
return "" + this.staticPath + countryIsoCode + ".png";
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
return TuiFlagPipe;
|
|
57
|
+
}());
|
|
58
|
+
TuiFlagPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFlagPipe, deps: [{ token: svg.TUI_SVG_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
59
|
+
TuiFlagPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFlagPipe, name: "tuiFlag" });
|
|
60
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFlagPipe, decorators: [{
|
|
61
|
+
type: i0.Pipe,
|
|
62
|
+
args: [{ name: "tuiFlag" }]
|
|
63
|
+
}], ctorParameters: function () {
|
|
64
|
+
return [{ type: undefined, decorators: [{
|
|
65
|
+
type: i0.Inject,
|
|
66
|
+
args: [svg.TUI_SVG_OPTIONS]
|
|
67
|
+
}] }];
|
|
68
|
+
} });
|
|
69
|
+
|
|
70
|
+
var TuiFlagPipeModule = /** @class */ (function () {
|
|
71
|
+
function TuiFlagPipeModule() {
|
|
72
|
+
}
|
|
73
|
+
return TuiFlagPipeModule;
|
|
74
|
+
}());
|
|
75
|
+
TuiFlagPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFlagPipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
76
|
+
TuiFlagPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFlagPipeModule, declarations: [TuiFlagPipe], exports: [TuiFlagPipe] });
|
|
77
|
+
TuiFlagPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFlagPipeModule });
|
|
78
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiFlagPipeModule, decorators: [{
|
|
79
|
+
type: i0.NgModule,
|
|
80
|
+
args: [{
|
|
81
|
+
declarations: [TuiFlagPipe],
|
|
82
|
+
exports: [TuiFlagPipe],
|
|
83
|
+
}]
|
|
84
|
+
}] });
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Generated bundle index. Do not edit.
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
exports.TuiFlagPipe = TuiFlagPipe;
|
|
91
|
+
exports.TuiFlagPipeModule = TuiFlagPipeModule;
|
|
92
|
+
|
|
93
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
94
|
+
|
|
95
|
+
}));
|
|
96
|
+
//# sourceMappingURL=taiga-ui-core-pipes-flag.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-pipes-flag.umd.js","sources":["../../../projects/core/pipes/flag/flag.pipe.ts","../../../projects/core/pipes/flag/flag.module.ts","../../../projects/core/pipes/flag/taiga-ui-core-pipes-flag.ts"],"sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {TUI_SVG_OPTIONS, TuiSvgOptions} from '@taiga-ui/core/components/svg';\nimport {TuiCountryIsoCode} from '@taiga-ui/i18n';\n\n@Pipe({name: `tuiFlag`})\nexport class TuiFlagPipe implements PipeTransform {\n private readonly staticPath = this.svgOptions\n .path(`tuiIcon`)\n .replace(`tuiIcon.svg#tuiIcon`, ``);\n\n constructor(@Inject(TUI_SVG_OPTIONS) private readonly svgOptions: TuiSvgOptions) {}\n\n transform(countryIsoCode: TuiCountryIsoCode | string): string;\n transform(countryIsoCode?: TuiCountryIsoCode | string | null): string | null;\n transform(countryIsoCode?: TuiCountryIsoCode | string | null): string | null {\n if (!countryIsoCode) {\n return null;\n }\n\n switch (countryIsoCode) {\n case TuiCountryIsoCode.BL:\n case TuiCountryIsoCode.BQ:\n case TuiCountryIsoCode.CW:\n case TuiCountryIsoCode.GF:\n case TuiCountryIsoCode.GP:\n case TuiCountryIsoCode.MF:\n case TuiCountryIsoCode.MQ:\n case TuiCountryIsoCode.NC:\n case TuiCountryIsoCode.RE:\n case TuiCountryIsoCode.YT:\n return `${this.staticPath}${TuiCountryIsoCode.FR}.png`;\n case TuiCountryIsoCode.SX:\n return `${this.staticPath}${TuiCountryIsoCode.NL}.png`;\n default:\n return `${this.staticPath}${countryIsoCode}.png`;\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFlagPipe} from './flag.pipe';\n\n@NgModule({\n declarations: [TuiFlagPipe],\n exports: [TuiFlagPipe],\n})\nexport class TuiFlagPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["TuiCountryIsoCode","i0","TUI_SVG_OPTIONS","Pipe","Inject","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,QAAA,WAAA,kBAAA,YAAA;IAKI,IAAA,SAAA,WAAA,CAAsD,UAAyB,EAAA;IAAzB,QAAA,IAAU,CAAA,UAAA,GAAV,UAAU,CAAe;IAJ9D,QAAA,IAAU,CAAA,UAAA,GAAG,IAAI,CAAC,UAAU;iBACxC,IAAI,CAAC,SAAS,CAAC;IACf,aAAA,OAAO,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAC;SAE2C;QAInF,WAAS,CAAA,SAAA,CAAA,SAAA,GAAT,UAAU,cAAkD,EAAA;YACxD,IAAI,CAAC,cAAc,EAAE;IACjB,YAAA,OAAO,IAAI,CAAC;IACf,SAAA;IAED,QAAA,QAAQ,cAAc;gBAClB,KAAKA,sBAAiB,CAAC,EAAE,CAAC;gBAC1B,KAAKA,sBAAiB,CAAC,EAAE,CAA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AAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;0IAAjB,iBAAiB,EAAA,YAAA,EAAA,CAHX,WAAW,CAAA,EAAA,OAAA,EAAA,CAChB,WAAW,CAAA,EAAA,CAAA,CAAA;0IAEZ,iBAAiB,EAAA,CAAA,CAAA;sHAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;sBAJ7BI,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;wBACN,YAAY,EAAE,CAAC,WAAW,CAAC;wBAC3B,OAAO,EAAE,CAAC,WAAW,CAAC;qBACzB,CAAA;;;ICPD;;IAEG;;;;;;;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taiga-ui/core/pipes/calendar-sheet'), require('@taiga-ui/core/pipes/format-date'), require('@taiga-ui/core/pipes/format-number'), require('@taiga-ui/core/pipes/format-phone'), require('@taiga-ui/core/pipes/month'), require('@taiga-ui/core/pipes/order-week-days')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/core/pipes', ['exports', '@taiga-ui/core/pipes/calendar-sheet', '@taiga-ui/core/pipes/format-date', '@taiga-ui/core/pipes/format-number', '@taiga-ui/core/pipes/format-phone', '@taiga-ui/core/pipes/month', '@taiga-ui/core/pipes/order-week-days'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.pipes = {}), global["taiga-ui"].core.pipes["calendar-sheet"], global["taiga-ui"].core.pipes["format-date"], global["taiga-ui"].core.pipes["format-number"], global["taiga-ui"].core.pipes["format-phone"], global["taiga-ui"].core.pipes.month, global["taiga-ui"].core.pipes["order-week-days"]));
|
|
5
|
-
})(this, (function (exports, calendarSheet, formatDate, formatNumber, formatPhone, month, orderWeekDays) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taiga-ui/core/pipes/calendar-sheet'), require('@taiga-ui/core/pipes/flag'), require('@taiga-ui/core/pipes/format-date'), require('@taiga-ui/core/pipes/format-number'), require('@taiga-ui/core/pipes/format-phone'), require('@taiga-ui/core/pipes/month'), require('@taiga-ui/core/pipes/order-week-days')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/core/pipes', ['exports', '@taiga-ui/core/pipes/calendar-sheet', '@taiga-ui/core/pipes/flag', '@taiga-ui/core/pipes/format-date', '@taiga-ui/core/pipes/format-number', '@taiga-ui/core/pipes/format-phone', '@taiga-ui/core/pipes/month', '@taiga-ui/core/pipes/order-week-days'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.pipes = {}), global["taiga-ui"].core.pipes["calendar-sheet"], global["taiga-ui"].core.pipes.flag, global["taiga-ui"].core.pipes["format-date"], global["taiga-ui"].core.pipes["format-number"], global["taiga-ui"].core.pipes["format-phone"], global["taiga-ui"].core.pipes.month, global["taiga-ui"].core.pipes["order-week-days"]));
|
|
5
|
+
})(this, (function (exports, calendarSheet, flag, formatDate, formatNumber, formatPhone, month, orderWeekDays) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Generated bundle index. Do not edit.
|
|
@@ -14,6 +14,12 @@
|
|
|
14
14
|
get: function () { return calendarSheet[k]; }
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
+
Object.keys(flag).forEach(function (k) {
|
|
18
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return flag[k]; }
|
|
21
|
+
});
|
|
22
|
+
});
|
|
17
23
|
Object.keys(formatDate).forEach(function (k) {
|
|
18
24
|
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
19
25
|
enumerable: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-pipes.umd.js","sources":["../../../projects/core/pipes/taiga-ui-core-pipes.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-core-pipes.umd.js","sources":["../../../projects/core/pipes/taiga-ui-core-pipes.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;CAAA;;CAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -27,7 +27,7 @@ export class TuiRootComponent {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
TuiRootComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiRootComponent, deps: [{ token: TUI_ANIMATIONS_DURATION }, { token: ElementRef }, { token: TUI_DIALOGS }, { token: TUI_IS_MOBILE }, { token: TUI_ASSERT_ENABLED }, { token: TUI_IS_MOBILE_RES }, { token: DOCUMENT }, { token: TUI_THEME }], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
-
TuiRootComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiRootComponent, selector: "tui-root", host: { attributes: { "data-tui-version": "3.
|
|
30
|
+
TuiRootComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiRootComponent, selector: "tui-root", host: { attributes: { "data-tui-version": "3.19.0" }, listeners: { "$.class._mobile": "isMobileRes$" }, properties: { "style.--tui-duration.ms": "duration" } }, providers: [TUI_IS_MOBILE_RES_PROVIDER], ngImport: i0, template: "<tui-scroll-controls\n *ngIf=\"scrollbars$ | async\"\n class=\"t-root-scrollbar\"\n></tui-scroll-controls>\n<tui-svg-defs-host></tui-svg-defs-host>\n<tui-dropdown-host>\n <div class=\"t-root-content\">\n <ng-content></ng-content>\n </div>\n <ng-content select=\"tuiOverContent\"></ng-content>\n <tui-dialog-host></tui-dialog-host>\n <ng-content select=\"tuiOverDialogs\"></ng-content>\n <tui-alert-host></tui-alert-host>\n <ng-content select=\"tuiOverAlerts\"></ng-content>\n</tui-dropdown-host>\n<ng-content select=\"tuiOverPortals\"></ng-content>\n<tui-hints-host></tui-hints-host>\n<ng-content select=\"tuiOverHints\"></ng-content>\n", styles: ["@keyframes tuiPresent{to{content:\"1\"}}html,.tui-zero-scrollbar{scrollbar-width:none;-ms-overflow-style:none}html::-webkit-scrollbar,.tui-zero-scrollbar::-webkit-scrollbar,html::-webkit-scrollbar-thumb,.tui-zero-scrollbar::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}body{font:var(--tui-font-text-s);color:var(--tui-text-01);margin:0}tui-root{position:relative;display:block;flex:1;-webkit-tap-highlight-color:transparent}tui-root>.t-root-scrollbar{position:fixed;top:0;left:0;bottom:0;right:0;margin:0}.t-root-content{position:relative;z-index:0;height:100%}\n"], components: [{ type: i1.TuiScrollControlsComponent, selector: "tui-scroll-controls" }, { type: i2.TuiSvgDefsHostComponent, selector: "tui-svg-defs-host" }, { type: i3.TuiDropdownHostComponent, selector: "tui-dropdown-host" }, { type: i3.TuiDialogHostComponent, selector: "tui-dialog-host" }, { type: i3.TuiAlertHostComponent, selector: "tui-alert-host" }, { type: i4.TuiHintsHostComponent, selector: "tui-hints-host" }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i5.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
31
31
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiRootComponent, decorators: [{
|
|
32
32
|
type: Component,
|
|
33
33
|
args: [{
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { TuiFlagPipe } from './flag.pipe';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class TuiFlagPipeModule {
|
|
5
|
+
}
|
|
6
|
+
TuiFlagPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFlagPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7
|
+
TuiFlagPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFlagPipeModule, declarations: [TuiFlagPipe], exports: [TuiFlagPipe] });
|
|
8
|
+
TuiFlagPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFlagPipeModule });
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFlagPipeModule, decorators: [{
|
|
10
|
+
type: NgModule,
|
|
11
|
+
args: [{
|
|
12
|
+
declarations: [TuiFlagPipe],
|
|
13
|
+
exports: [TuiFlagPipe],
|
|
14
|
+
}]
|
|
15
|
+
}] });
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxhZy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3BpcGVzL2ZsYWcvZmxhZy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUV2QyxPQUFPLEVBQUMsV0FBVyxFQUFDLE1BQU0sYUFBYSxDQUFDOztBQU14QyxNQUFNLE9BQU8saUJBQWlCOzsrR0FBakIsaUJBQWlCO2dIQUFqQixpQkFBaUIsaUJBSFgsV0FBVyxhQUNoQixXQUFXO2dIQUVaLGlCQUFpQjs0RkFBakIsaUJBQWlCO2tCQUo3QixRQUFRO21CQUFDO29CQUNOLFlBQVksRUFBRSxDQUFDLFdBQVcsQ0FBQztvQkFDM0IsT0FBTyxFQUFFLENBQUMsV0FBVyxDQUFDO2lCQUN6QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7TmdNb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQge1R1aUZsYWdQaXBlfSBmcm9tICcuL2ZsYWcucGlwZSc7XG5cbkBOZ01vZHVsZSh7XG4gICAgZGVjbGFyYXRpb25zOiBbVHVpRmxhZ1BpcGVdLFxuICAgIGV4cG9ydHM6IFtUdWlGbGFnUGlwZV0sXG59KVxuZXhwb3J0IGNsYXNzIFR1aUZsYWdQaXBlTW9kdWxlIHt9XG4iXX0=
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Inject, Pipe } from '@angular/core';
|
|
2
|
+
import { TUI_SVG_OPTIONS } from '@taiga-ui/core/components/svg';
|
|
3
|
+
import { TuiCountryIsoCode } from '@taiga-ui/i18n';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class TuiFlagPipe {
|
|
6
|
+
constructor(svgOptions) {
|
|
7
|
+
this.svgOptions = svgOptions;
|
|
8
|
+
this.staticPath = this.svgOptions
|
|
9
|
+
.path(`tuiIcon`)
|
|
10
|
+
.replace(`tuiIcon.svg#tuiIcon`, ``);
|
|
11
|
+
}
|
|
12
|
+
transform(countryIsoCode) {
|
|
13
|
+
if (!countryIsoCode) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
switch (countryIsoCode) {
|
|
17
|
+
case TuiCountryIsoCode.BL:
|
|
18
|
+
case TuiCountryIsoCode.BQ:
|
|
19
|
+
case TuiCountryIsoCode.CW:
|
|
20
|
+
case TuiCountryIsoCode.GF:
|
|
21
|
+
case TuiCountryIsoCode.GP:
|
|
22
|
+
case TuiCountryIsoCode.MF:
|
|
23
|
+
case TuiCountryIsoCode.MQ:
|
|
24
|
+
case TuiCountryIsoCode.NC:
|
|
25
|
+
case TuiCountryIsoCode.RE:
|
|
26
|
+
case TuiCountryIsoCode.YT:
|
|
27
|
+
return `${this.staticPath}${TuiCountryIsoCode.FR}.png`;
|
|
28
|
+
case TuiCountryIsoCode.SX:
|
|
29
|
+
return `${this.staticPath}${TuiCountryIsoCode.NL}.png`;
|
|
30
|
+
default:
|
|
31
|
+
return `${this.staticPath}${countryIsoCode}.png`;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
TuiFlagPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFlagPipe, deps: [{ token: TUI_SVG_OPTIONS }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
36
|
+
TuiFlagPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFlagPipe, name: "tuiFlag" });
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFlagPipe, decorators: [{
|
|
38
|
+
type: Pipe,
|
|
39
|
+
args: [{ name: `tuiFlag` }]
|
|
40
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
41
|
+
type: Inject,
|
|
42
|
+
args: [TUI_SVG_OPTIONS]
|
|
43
|
+
}] }]; } });
|
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxhZy5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS9waXBlc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dWlDb3VudHJ5SXNvQ29kZS5GUn0ucG5nYDtcbiAgICAgICAgICAgIGNhc2UgVHVpQ291bnRyeUlzb0NvZGUuU1g6XG4gICAgICAgICAgICAgICAgcmV0dXJuIGAke3RoaXMuc3RhdGljUGF0aH0ke1R1aUNvdW50cnlJc29Db2RlLk5MfS5wbmdgO1xuICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICByZXR1cm4gYCR7dGhpcy5zdGF0aWNQYXRofSR7Y291bnRyeUlzb0NvZGV9LnBuZ2A7XG4gICAgICAgIH1cbiAgICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './flag.module';
|
|
2
|
+
export * from './flag.pipe';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3BpcGVzL2ZsYWcvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxlQUFlLENBQUM7QUFDOUIsY0FBYyxhQUFhLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2ZsYWcubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vZmxhZy5waXBlJztcbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktY29yZS1waXBlcy1mbGFnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS9waXBlcy9mbGFnL3RhaWdhLXVpLWNvcmUtcGlwZXMtZmxhZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
package/esm2015/pipes/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export * from '@taiga-ui/core/pipes/calendar-sheet';
|
|
2
|
+
export * from '@taiga-ui/core/pipes/flag';
|
|
2
3
|
export * from '@taiga-ui/core/pipes/format-date';
|
|
3
4
|
export * from '@taiga-ui/core/pipes/format-number';
|
|
4
5
|
export * from '@taiga-ui/core/pipes/format-phone';
|
|
5
6
|
export * from '@taiga-ui/core/pipes/month';
|
|
6
7
|
export * from '@taiga-ui/core/pipes/order-week-days';
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3BpcGVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMscUNBQXFDLENBQUM7QUFDcEQsY0FBYywyQkFBMkIsQ0FBQztBQUMxQyxjQUFjLGtDQUFrQyxDQUFDO0FBQ2pELGNBQWMsb0NBQW9DLENBQUM7QUFDbkQsY0FBYyxtQ0FBbUMsQ0FBQztBQUNsRCxjQUFjLDRCQUE0QixDQUFDO0FBQzNDLGNBQWMsc0NBQXNDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkvY29yZS9waXBlcy9jYWxlbmRhci1zaGVldCc7XG5leHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkvY29yZS9waXBlcy9mbGFnJztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9jb3JlL3BpcGVzL2Zvcm1hdC1kYXRlJztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9jb3JlL3BpcGVzL2Zvcm1hdC1udW1iZXInO1xuZXhwb3J0ICogZnJvbSAnQHRhaWdhLXVpL2NvcmUvcGlwZXMvZm9ybWF0LXBob25lJztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9jb3JlL3BpcGVzL21vbnRoJztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9jb3JlL3BpcGVzL29yZGVyLXdlZWstZGF5cyc7XG4iXX0=
|
|
@@ -32,7 +32,7 @@ class TuiRootComponent {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
TuiRootComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiRootComponent, deps: [{ token: TUI_ANIMATIONS_DURATION }, { token: ElementRef }, { token: TUI_DIALOGS }, { token: TUI_IS_MOBILE }, { token: TUI_ASSERT_ENABLED }, { token: TUI_IS_MOBILE_RES }, { token: DOCUMENT }, { token: TUI_THEME }], target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
-
TuiRootComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiRootComponent, selector: "tui-root", host: { attributes: { "data-tui-version": "3.
|
|
35
|
+
TuiRootComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiRootComponent, selector: "tui-root", host: { attributes: { "data-tui-version": "3.19.0" }, listeners: { "$.class._mobile": "isMobileRes$" }, properties: { "style.--tui-duration.ms": "duration" } }, providers: [TUI_IS_MOBILE_RES_PROVIDER], ngImport: i0, template: "<tui-scroll-controls\n *ngIf=\"scrollbars$ | async\"\n class=\"t-root-scrollbar\"\n></tui-scroll-controls>\n<tui-svg-defs-host></tui-svg-defs-host>\n<tui-dropdown-host>\n <div class=\"t-root-content\">\n <ng-content></ng-content>\n </div>\n <ng-content select=\"tuiOverContent\"></ng-content>\n <tui-dialog-host></tui-dialog-host>\n <ng-content select=\"tuiOverDialogs\"></ng-content>\n <tui-alert-host></tui-alert-host>\n <ng-content select=\"tuiOverAlerts\"></ng-content>\n</tui-dropdown-host>\n<ng-content select=\"tuiOverPortals\"></ng-content>\n<tui-hints-host></tui-hints-host>\n<ng-content select=\"tuiOverHints\"></ng-content>\n", styles: ["@keyframes tuiPresent{to{content:\"1\"}}html,.tui-zero-scrollbar{scrollbar-width:none;-ms-overflow-style:none}html::-webkit-scrollbar,.tui-zero-scrollbar::-webkit-scrollbar,html::-webkit-scrollbar-thumb,.tui-zero-scrollbar::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}body{font:var(--tui-font-text-s);color:var(--tui-text-01);margin:0}tui-root{position:relative;display:block;flex:1;-webkit-tap-highlight-color:transparent}tui-root>.t-root-scrollbar{position:fixed;top:0;left:0;bottom:0;right:0;margin:0}.t-root-content{position:relative;z-index:0;height:100%}\n"], components: [{ type: i1.TuiScrollControlsComponent, selector: "tui-scroll-controls" }, { type: i2.TuiSvgDefsHostComponent, selector: "tui-svg-defs-host" }, { type: i3.TuiDropdownHostComponent, selector: "tui-dropdown-host" }, { type: i3.TuiDialogHostComponent, selector: "tui-dialog-host" }, { type: i3.TuiAlertHostComponent, selector: "tui-alert-host" }, { type: i4.TuiHintsHostComponent, selector: "tui-hints-host" }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i5.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
36
36
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiRootComponent, decorators: [{
|
|
37
37
|
type: Component,
|
|
38
38
|
args: [{
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Pipe, Inject, NgModule } from '@angular/core';
|
|
3
|
+
import { TUI_SVG_OPTIONS } from '@taiga-ui/core/components/svg';
|
|
4
|
+
import { TuiCountryIsoCode } from '@taiga-ui/i18n';
|
|
5
|
+
|
|
6
|
+
class TuiFlagPipe {
|
|
7
|
+
constructor(svgOptions) {
|
|
8
|
+
this.svgOptions = svgOptions;
|
|
9
|
+
this.staticPath = this.svgOptions
|
|
10
|
+
.path(`tuiIcon`)
|
|
11
|
+
.replace(`tuiIcon.svg#tuiIcon`, ``);
|
|
12
|
+
}
|
|
13
|
+
transform(countryIsoCode) {
|
|
14
|
+
if (!countryIsoCode) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
switch (countryIsoCode) {
|
|
18
|
+
case TuiCountryIsoCode.BL:
|
|
19
|
+
case TuiCountryIsoCode.BQ:
|
|
20
|
+
case TuiCountryIsoCode.CW:
|
|
21
|
+
case TuiCountryIsoCode.GF:
|
|
22
|
+
case TuiCountryIsoCode.GP:
|
|
23
|
+
case TuiCountryIsoCode.MF:
|
|
24
|
+
case TuiCountryIsoCode.MQ:
|
|
25
|
+
case TuiCountryIsoCode.NC:
|
|
26
|
+
case TuiCountryIsoCode.RE:
|
|
27
|
+
case TuiCountryIsoCode.YT:
|
|
28
|
+
return `${this.staticPath}${TuiCountryIsoCode.FR}.png`;
|
|
29
|
+
case TuiCountryIsoCode.SX:
|
|
30
|
+
return `${this.staticPath}${TuiCountryIsoCode.NL}.png`;
|
|
31
|
+
default:
|
|
32
|
+
return `${this.staticPath}${countryIsoCode}.png`;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
TuiFlagPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFlagPipe, deps: [{ token: TUI_SVG_OPTIONS }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
37
|
+
TuiFlagPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFlagPipe, name: "tuiFlag" });
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFlagPipe, decorators: [{
|
|
39
|
+
type: Pipe,
|
|
40
|
+
args: [{ name: `tuiFlag` }]
|
|
41
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
42
|
+
type: Inject,
|
|
43
|
+
args: [TUI_SVG_OPTIONS]
|
|
44
|
+
}] }]; } });
|
|
45
|
+
|
|
46
|
+
class TuiFlagPipeModule {
|
|
47
|
+
}
|
|
48
|
+
TuiFlagPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFlagPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
49
|
+
TuiFlagPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFlagPipeModule, declarations: [TuiFlagPipe], exports: [TuiFlagPipe] });
|
|
50
|
+
TuiFlagPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFlagPipeModule });
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFlagPipeModule, decorators: [{
|
|
52
|
+
type: NgModule,
|
|
53
|
+
args: [{
|
|
54
|
+
declarations: [TuiFlagPipe],
|
|
55
|
+
exports: [TuiFlagPipe],
|
|
56
|
+
}]
|
|
57
|
+
}] });
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Generated bundle index. Do not edit.
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
export { TuiFlagPipe, TuiFlagPipeModule };
|
|
64
|
+
//# sourceMappingURL=taiga-ui-core-pipes-flag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-pipes-flag.js","sources":["../../../projects/core/pipes/flag/flag.pipe.ts","../../../projects/core/pipes/flag/flag.module.ts","../../../projects/core/pipes/flag/taiga-ui-core-pipes-flag.ts"],"sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {TUI_SVG_OPTIONS, TuiSvgOptions} from '@taiga-ui/core/components/svg';\nimport {TuiCountryIsoCode} from '@taiga-ui/i18n';\n\n@Pipe({name: `tuiFlag`})\nexport class TuiFlagPipe implements PipeTransform {\n private readonly staticPath = this.svgOptions\n .path(`tuiIcon`)\n .replace(`tuiIcon.svg#tuiIcon`, ``);\n\n constructor(@Inject(TUI_SVG_OPTIONS) private readonly svgOptions: TuiSvgOptions) {}\n\n transform(countryIsoCode: TuiCountryIsoCode | string): string;\n transform(countryIsoCode?: TuiCountryIsoCode | string | null): string | null;\n transform(countryIsoCode?: TuiCountryIsoCode | string | null): string | null {\n if (!countryIsoCode) {\n return null;\n }\n\n switch (countryIsoCode) {\n case TuiCountryIsoCode.BL:\n case TuiCountryIsoCode.BQ:\n case TuiCountryIsoCode.CW:\n case TuiCountryIsoCode.GF:\n case TuiCountryIsoCode.GP:\n case TuiCountryIsoCode.MF:\n case TuiCountryIsoCode.MQ:\n case TuiCountryIsoCode.NC:\n case TuiCountryIsoCode.RE:\n case TuiCountryIsoCode.YT:\n return `${this.staticPath}${TuiCountryIsoCode.FR}.png`;\n case TuiCountryIsoCode.SX:\n return `${this.staticPath}${TuiCountryIsoCode.NL}.png`;\n default:\n return `${this.staticPath}${countryIsoCode}.png`;\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFlagPipe} from './flag.pipe';\n\n@NgModule({\n declarations: [TuiFlagPipe],\n exports: [TuiFlagPipe],\n})\nexport class TuiFlagPipeModule {}\n","/**\n * Generated bundle index.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,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,kBAKA,eAAe,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;uGAL1B,WAAW,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,CAAA;4FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBADvB,IAAI;mBAAC,EAAC,IAAI,EAAE,CAAA,OAAA,CAAS,EAAC,CAAA;;0BAMN,MAAM;2BAAC,eAAe,CAAA;;;MCF1B,iBAAiB,CAAA;;+GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAjB,iBAAiB,EAAA,YAAA,EAAA,CAHX,WAAW,CAAA,EAAA,OAAA,EAAA,CAChB,WAAW,CAAA,EAAA,CAAA,CAAA;gHAEZ,iBAAiB,EAAA,CAAA,CAAA;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,WAAW,CAAC;oBAC3B,OAAO,EAAE,CAAC,WAAW,CAAC;AACzB,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-pipes.js","sources":["../../../projects/core/pipes/taiga-ui-core-pipes.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-pipes.js","sources":["../../../projects/core/pipes/taiga-ui-core-pipes.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;;AAEG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.19.0",
|
|
4
4
|
"description": "Core library for creating Angular components and applications using Taiga UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"repository": "https://github.com/tinkoff/taiga-ui",
|
|
16
16
|
"license": "Apache-2.0",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@taiga-ui/i18n": "^3.
|
|
18
|
+
"@taiga-ui/i18n": "^3.19.0",
|
|
19
19
|
"tslib": ">=2.0.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"@angular/router": ">=12.0.0",
|
|
28
28
|
"@ng-web-apis/common": ">=2.0.0",
|
|
29
29
|
"@ng-web-apis/mutation-observer": ">=2.0.0",
|
|
30
|
-
"@taiga-ui/cdk": ">=3.
|
|
31
|
-
"@taiga-ui/i18n": ">=3.
|
|
30
|
+
"@taiga-ui/cdk": ">=3.19.0",
|
|
31
|
+
"@taiga-ui/i18n": ">=3.19.0",
|
|
32
32
|
"@tinkoff/ng-event-plugins": ">=3.1.0",
|
|
33
33
|
"@tinkoff/ng-polymorpheus": ">=4.0.0",
|
|
34
34
|
"rxjs": ">=6.0.0"
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./flag.pipe";
|
|
3
|
+
export declare class TuiFlagPipeModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiFlagPipeModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiFlagPipeModule, [typeof i1.TuiFlagPipe], never, [typeof i1.TuiFlagPipe]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TuiFlagPipeModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { TuiSvgOptions } from '@taiga-ui/core/components/svg';
|
|
3
|
+
import { TuiCountryIsoCode } from '@taiga-ui/i18n';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TuiFlagPipe implements PipeTransform {
|
|
6
|
+
private readonly svgOptions;
|
|
7
|
+
private readonly staticPath;
|
|
8
|
+
constructor(svgOptions: TuiSvgOptions);
|
|
9
|
+
transform(countryIsoCode: TuiCountryIsoCode | string): string;
|
|
10
|
+
transform(countryIsoCode?: TuiCountryIsoCode | string | null): string | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiFlagPipe, never>;
|
|
12
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TuiFlagPipe, "tuiFlag">;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": "../../bundles/taiga-ui-core-pipes-flag.umd.js",
|
|
3
|
+
"module": "../../fesm2015/taiga-ui-core-pipes-flag.js",
|
|
4
|
+
"es2015": "../../fesm2015/taiga-ui-core-pipes-flag.js",
|
|
5
|
+
"esm2015": "../../esm2015/pipes/flag/taiga-ui-core-pipes-flag.js",
|
|
6
|
+
"fesm2015": "../../fesm2015/taiga-ui-core-pipes-flag.js",
|
|
7
|
+
"typings": "taiga-ui-core-pipes-flag.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@taiga-ui/core/pipes/flag"
|
|
10
|
+
}
|
package/pipes/index.d.ts
CHANGED