@taiga-ui/legacy 4.52.0-canary.9fae831 → 4.52.0-canary.a59c4d0

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.
Files changed (142) hide show
  1. package/components/combo-box/combo-box.module.d.ts +1 -1
  2. package/components/dialog/dialog.component.d.ts +20 -0
  3. package/components/dialog/dialog.directive.d.ts +7 -0
  4. package/components/dialog/dialog.factory.d.ts +16 -0
  5. package/components/dialog/dialog.interfaces.d.ts +31 -0
  6. package/components/dialog/dialog.service.d.ts +7 -0
  7. package/components/dialog/dialog.tokens.d.ts +8 -0
  8. package/components/dialog/index.d.ts +6 -0
  9. package/components/index.d.ts +2 -7
  10. package/components/input/input.module.d.ts +1 -1
  11. package/components/input-date-range/input-date-range.module.d.ts +1 -1
  12. package/components/input-date-time/input-date-time.module.d.ts +1 -1
  13. package/components/input-month-range/input-month-range.module.d.ts +1 -1
  14. package/components/input-range/input-range.component.d.ts +1 -1
  15. package/components/input-tag/input-tag.module.d.ts +1 -1
  16. package/components/multi-select/multi-select.module.d.ts +1 -1
  17. package/components/pdf-viewer/index.d.ts +4 -0
  18. package/components/pdf-viewer/pdf-viewer.component.d.ts +12 -0
  19. package/components/pdf-viewer/pdf-viewer.directive.d.ts +7 -0
  20. package/components/pdf-viewer/pdf-viewer.options.d.ts +13 -0
  21. package/components/pdf-viewer/pdf-viewer.service.d.ts +13 -0
  22. package/components/select/select.module.d.ts +1 -1
  23. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -1
  24. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +2 -2
  25. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +1 -1
  26. package/fesm2022/taiga-ui-legacy-components-dialog.mjs +130 -0
  27. package/fesm2022/taiga-ui-legacy-components-dialog.mjs.map +1 -0
  28. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +2 -2
  29. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -1
  30. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +2 -2
  31. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +2 -2
  33. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -1
  34. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +2 -2
  35. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -1
  36. package/fesm2022/taiga-ui-legacy-components-input-range.mjs +1 -1
  37. package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -1
  38. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +3 -3
  40. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -1
  41. package/fesm2022/taiga-ui-legacy-components-input.mjs +2 -2
  42. package/fesm2022/taiga-ui-legacy-components-input.mjs.map +1 -1
  43. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +1 -1
  44. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +4 -4
  45. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -1
  46. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs +83 -0
  47. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs.map +1 -0
  48. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-legacy-components-select.mjs +6 -6
  51. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -1
  52. package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -1
  53. package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-legacy-components.mjs +2 -7
  55. package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -1
  56. package/fesm2022/taiga-ui-legacy.mjs +0 -2
  57. package/fesm2022/taiga-ui-legacy.mjs.map +1 -1
  58. package/index.d.ts +0 -2
  59. package/package.json +12 -52
  60. package/utils/icons-path-factory.d.ts +1 -1
  61. package/components/color-selector/color-edit/color-edit.component.d.ts +0 -18
  62. package/components/color-selector/color-edit/color-edit.module.d.ts +0 -21
  63. package/components/color-selector/color-picker/color-picker.component.d.ts +0 -22
  64. package/components/color-selector/color-picker/color-picker.module.d.ts +0 -14
  65. package/components/color-selector/color-selector.component.d.ts +0 -47
  66. package/components/color-selector/color-selector.module.d.ts +0 -23
  67. package/components/color-selector/color-selector.options.d.ts +0 -25
  68. package/components/color-selector/flat-picker/flat-picker.component.d.ts +0 -12
  69. package/components/color-selector/flat-picker/flat-picker.module.d.ts +0 -12
  70. package/components/color-selector/index.d.ts +0 -16
  71. package/components/color-selector/linear-multi-picker/linear-multi-picker.component.d.ts +0 -17
  72. package/components/color-selector/linear-multi-picker/linear-multi-picker.module.d.ts +0 -12
  73. package/components/color-selector/linear-picker/linear-picker.component.d.ts +0 -10
  74. package/components/color-selector/linear-picker/linear-picker.module.d.ts +0 -12
  75. package/components/color-selector/palette/palette.component.d.ts +0 -10
  76. package/components/color-selector/palette/palette.module.d.ts +0 -13
  77. package/components/color-selector/services/picker.service.d.ts +0 -15
  78. package/components/input-color/index.d.ts +0 -2
  79. package/components/input-color/input-color.component.d.ts +0 -30
  80. package/components/input-color/input-color.module.d.ts +0 -17
  81. package/components/input-date/index.d.ts +0 -3
  82. package/components/input-date/input-date.component.d.ts +0 -62
  83. package/components/input-date/input-date.directive.d.ts +0 -19
  84. package/components/input-date/input-date.module.d.ts +0 -24
  85. package/components/input-date/native-date/native-date.component.d.ts +0 -15
  86. package/components/input-phone/index.d.ts +0 -4
  87. package/components/input-phone/input-phone.component.d.ts +0 -52
  88. package/components/input-phone/input-phone.directive.d.ts +0 -16
  89. package/components/input-phone/input-phone.module.d.ts +0 -15
  90. package/components/input-phone/input-phone.options.d.ts +0 -22
  91. package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +0 -9
  92. package/components/input-phone/utils/create-phone-mask-expression.d.ts +0 -7
  93. package/components/input-phone/utils/index.d.ts +0 -2
  94. package/components/input-phone-international/index.d.ts +0 -3
  95. package/components/input-phone-international/input-phone-international.component.d.ts +0 -43
  96. package/components/input-phone-international/input-phone-international.options.d.ts +0 -25
  97. package/components/input-phone-international/utils/extract-value-from-event.d.ts +0 -4
  98. package/components/input-time/index.d.ts +0 -4
  99. package/components/input-time/input-time.component.d.ts +0 -62
  100. package/components/input-time/input-time.directive.d.ts +0 -17
  101. package/components/input-time/input-time.module.d.ts +0 -23
  102. package/components/input-time/input-time.options.d.ts +0 -42
  103. package/components/input-time/native-time/native-time.component.d.ts +0 -12
  104. package/components/svg/content-processor.d.ts +0 -19
  105. package/components/svg/deprecated-icons.d.ts +0 -5
  106. package/components/svg/index.d.ts +0 -5
  107. package/components/svg/svg-options.d.ts +0 -50
  108. package/components/svg/svg.component.d.ts +0 -50
  109. package/components/svg/svg.service.d.ts +0 -21
  110. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs +0 -726
  111. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +0 -1
  112. package/fesm2022/taiga-ui-legacy-components-input-color.mjs +0 -127
  113. package/fesm2022/taiga-ui-legacy-components-input-color.mjs.map +0 -1
  114. package/fesm2022/taiga-ui-legacy-components-input-date.mjs +0 -372
  115. package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +0 -1
  116. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +0 -215
  117. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +0 -1
  118. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +0 -372
  119. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +0 -1
  120. package/fesm2022/taiga-ui-legacy-components-input-time.mjs +0 -430
  121. package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +0 -1
  122. package/fesm2022/taiga-ui-legacy-components-svg.mjs +0 -387
  123. package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +0 -1
  124. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs +0 -59
  125. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +0 -1
  126. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +0 -50
  127. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs.map +0 -1
  128. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs +0 -80
  129. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs.map +0 -1
  130. package/fesm2022/taiga-ui-legacy-pipes.mjs +0 -8
  131. package/fesm2022/taiga-ui-legacy-pipes.mjs.map +0 -1
  132. package/fesm2022/taiga-ui-legacy-services.mjs +0 -42
  133. package/fesm2022/taiga-ui-legacy-services.mjs.map +0 -1
  134. package/pipes/format-phone/format-phone.pipe.d.ts +0 -37
  135. package/pipes/format-phone/index.d.ts +0 -1
  136. package/pipes/index.d.ts +0 -3
  137. package/pipes/iso-to-country-code/index.d.ts +0 -1
  138. package/pipes/iso-to-country-code/iso-to-country-code.pipe.d.ts +0 -30
  139. package/pipes/to-country-code/index.d.ts +0 -1
  140. package/pipes/to-country-code/to-country-code.pipe.d.ts +0 -38
  141. package/services/index.d.ts +0 -1
  142. package/services/static-request.service.d.ts +0 -11
@@ -1,80 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, Pipe } from '@angular/core';
3
- import { CHAR_PLUS } from '@taiga-ui/cdk/constants';
4
- import { TUI_COUNTRIES_MASKS } from '@taiga-ui/legacy/tokens';
5
- import { tuiGetMaxAllowedPhoneLength, tuiIsoToCountryCode, tuiNotKzRegion } from '@taiga-ui/legacy/utils';
6
-
7
- /**
8
- * @deprecated: drop in v5.0
9
- * use `maskitoGetCountryFromNumber` from `@maskito/phone` instead
10
- * ```
11
- * npm i @maskito/phone
12
- * ```
13
- *
14
- * ```ts
15
- * import {maskitoGetCountryFromNumber} from '@maskito/phone';
16
- * import metadata from 'libphonenumber-js/min/metadata';
17
- *
18
- * maskitoGetCountryFromNumber('+1 (212) 555-2368', metadata); // 'US'
19
- * maskitoGetCountryFromNumber('+12125552368', metadata); // 'US'
20
- * ```
21
- */
22
- class TuiToCountryCodePipe {
23
- constructor() {
24
- this.countriesMasks = inject(TUI_COUNTRIES_MASKS);
25
- }
26
- /**
27
- * @deprecated use `maskitoGetCountryFromNumber` from `@maskito/phone` instead
28
- * ```
29
- * npm i @maskito/phone
30
- * ```
31
- *
32
- * ```ts
33
- * import {maskitoGetCountryFromNumber} from '@maskito/phone';
34
- * import metadata from 'libphonenumber-js/min/metadata';
35
- *
36
- * maskitoGetCountryFromNumber('+1 (212) 555-2368', metadata); // 'US'
37
- * maskitoGetCountryFromNumber('+12125552368', metadata); // 'US'
38
- * ```
39
- */
40
- transform(value, countries) {
41
- return countries.find((countryIsoCode) => {
42
- const ruCodeTest = countryIsoCode === 'RU' &&
43
- /^[78]/.test(value) &&
44
- /^(?!880[1-9 ])/.test(value) &&
45
- value.length + 1 ===
46
- tuiGetMaxAllowedPhoneLength(this.countriesMasks, 'RU');
47
- const matched = ruCodeTest ||
48
- (value.startsWith(tuiIsoToCountryCode(this.countriesMasks, countryIsoCode).replace(CHAR_PLUS, '')) &&
49
- value.length + 1 ===
50
- tuiGetMaxAllowedPhoneLength(this.countriesMasks, countryIsoCode));
51
- if (matched) {
52
- switch (countryIsoCode) {
53
- case 'KZ':
54
- return !tuiNotKzRegion(value);
55
- case 'RU':
56
- return tuiNotKzRegion(value);
57
- default:
58
- return true;
59
- }
60
- }
61
- return false;
62
- });
63
- }
64
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiToCountryCodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
65
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiToCountryCodePipe, isStandalone: true, name: "tuiToCountryCode" }); }
66
- }
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiToCountryCodePipe, decorators: [{
68
- type: Pipe,
69
- args: [{
70
- standalone: true,
71
- name: 'tuiToCountryCode',
72
- }]
73
- }] });
74
-
75
- /**
76
- * Generated bundle index. Do not edit.
77
- */
78
-
79
- export { TuiToCountryCodePipe };
80
- //# sourceMappingURL=taiga-ui-legacy-pipes-to-country-code.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-legacy-pipes-to-country-code.mjs","sources":["../../../projects/legacy/pipes/to-country-code/to-country-code.pipe.ts","../../../projects/legacy/pipes/to-country-code/taiga-ui-legacy-pipes-to-country-code.ts"],"sourcesContent":["import {inject, Pipe, type PipeTransform} from '@angular/core';\nimport {CHAR_PLUS} from '@taiga-ui/cdk/constants';\nimport {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\nimport {TUI_COUNTRIES_MASKS} from '@taiga-ui/legacy/tokens';\nimport {\n tuiGetMaxAllowedPhoneLength,\n tuiIsoToCountryCode,\n tuiNotKzRegion,\n} from '@taiga-ui/legacy/utils';\n\n/**\n * @deprecated: drop in v5.0\n * use `maskitoGetCountryFromNumber` from `@maskito/phone` instead\n * ```\n * npm i @maskito/phone\n * ```\n *\n * ```ts\n * import {maskitoGetCountryFromNumber} from '@maskito/phone';\n * import metadata from 'libphonenumber-js/min/metadata';\n *\n * maskitoGetCountryFromNumber('+1 (212) 555-2368', metadata); // 'US'\n * maskitoGetCountryFromNumber('+12125552368', metadata); // 'US'\n * ```\n */\n@Pipe({\n standalone: true,\n name: 'tuiToCountryCode',\n})\nexport class TuiToCountryCodePipe implements PipeTransform {\n private readonly countriesMasks = inject(TUI_COUNTRIES_MASKS);\n\n /**\n * @deprecated use `maskitoGetCountryFromNumber` from `@maskito/phone` instead\n * ```\n * npm i @maskito/phone\n * ```\n *\n * ```ts\n * import {maskitoGetCountryFromNumber} from '@maskito/phone';\n * import metadata from 'libphonenumber-js/min/metadata';\n *\n * maskitoGetCountryFromNumber('+1 (212) 555-2368', metadata); // 'US'\n * maskitoGetCountryFromNumber('+12125552368', metadata); // 'US'\n * ```\n */\n public transform(\n value: string,\n countries: readonly TuiCountryIsoCode[],\n ): TuiCountryIsoCode | undefined {\n return countries.find((countryIsoCode) => {\n const ruCodeTest =\n countryIsoCode === 'RU' &&\n /^[78]/.test(value) &&\n /^(?!880[1-9 ])/.test(value) &&\n value.length + 1 ===\n tuiGetMaxAllowedPhoneLength(this.countriesMasks, 'RU');\n\n const matched =\n ruCodeTest ||\n (value.startsWith(\n tuiIsoToCountryCode(this.countriesMasks, countryIsoCode).replace(\n CHAR_PLUS,\n '',\n ),\n ) &&\n value.length + 1 ===\n tuiGetMaxAllowedPhoneLength(this.countriesMasks, countryIsoCode));\n\n if (matched) {\n switch (countryIsoCode) {\n case 'KZ':\n return !tuiNotKzRegion(value);\n case 'RU':\n return tuiNotKzRegion(value);\n default:\n return true;\n }\n }\n\n return false;\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAUA;;;;;;;;;;;;;;AAcG;MAKU,oBAAoB,CAAA;AAJjC,IAAA,WAAA,GAAA;AAKqB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,mBAAmB,CAAC;AAqDhE;AAnDG;;;;;;;;;;;;;AAaG;IACI,SAAS,CACZ,KAAa,EACb,SAAuC,EAAA;AAEvC,QAAA,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC,cAAc,KAAI;AACrC,YAAA,MAAM,UAAU,GACZ,cAAc,KAAK,IAAI;AACvB,gBAAA,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;AACnB,gBAAA,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC;gBAC5B,KAAK,CAAC,MAAM,GAAG,CAAC;AACZ,oBAAA,2BAA2B,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC;YAE9D,MAAM,OAAO,GACT,UAAU;AACV,iBAAC,KAAK,CAAC,UAAU,CACb,mBAAmB,CAAC,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC,OAAO,CAC5D,SAAS,EACT,EAAE,CACL,CACJ;oBACG,KAAK,CAAC,MAAM,GAAG,CAAC;wBACZ,2BAA2B,CAAC,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;YAE7E,IAAI,OAAO,EAAE;gBACT,QAAQ,cAAc;AAClB,oBAAA,KAAK,IAAI;AACL,wBAAA,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC;AACjC,oBAAA,KAAK,IAAI;AACL,wBAAA,OAAO,cAAc,CAAC,KAAK,CAAC;AAChC,oBAAA;AACI,wBAAA,OAAO,IAAI;;;AAIvB,YAAA,OAAO,KAAK;AAChB,SAAC,CAAC;;+GApDG,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,kBAAA,EAAA,CAAA,CAAA;;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,kBAAkB;AAC3B,iBAAA;;;AC5BD;;AAEG;;;;"}
@@ -1,8 +0,0 @@
1
- export * from '@taiga-ui/legacy/pipes/format-phone';
2
- export * from '@taiga-ui/legacy/pipes/iso-to-country-code';
3
- export * from '@taiga-ui/legacy/pipes/to-country-code';
4
-
5
- /**
6
- * Generated bundle index. Do not edit.
7
- */
8
- //# sourceMappingURL=taiga-ui-legacy-pipes.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-legacy-pipes.mjs","sources":["../../../projects/legacy/pipes/taiga-ui-legacy-pipes.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;AAEG"}
@@ -1,42 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable } from '@angular/core';
3
- import { switchMap, shareReplay } from 'rxjs';
4
- import { fromFetch } from 'rxjs/fetch';
5
-
6
- /**
7
- * @deprecated: drop in v5.0
8
- */
9
- class TuiStaticRequestService {
10
- constructor() {
11
- this.cache = new Map();
12
- }
13
- request(url) {
14
- const cache = this.cache.get(url);
15
- if (cache) {
16
- return cache;
17
- }
18
- const piped = fromFetch(url).pipe(switchMap(async (response) => {
19
- if (response.ok) {
20
- return response.text();
21
- }
22
- throw new Error(`Failed to load ${url} (${response.statusText})`);
23
- }), shareReplay({ bufferSize: 1, refCount: false }));
24
- this.cache.set(url, piped);
25
- return piped;
26
- }
27
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiStaticRequestService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
28
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiStaticRequestService, providedIn: 'root' }); }
29
- }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiStaticRequestService, decorators: [{
31
- type: Injectable,
32
- args: [{
33
- providedIn: 'root',
34
- }]
35
- }] });
36
-
37
- /**
38
- * Generated bundle index. Do not edit.
39
- */
40
-
41
- export { TuiStaticRequestService };
42
- //# sourceMappingURL=taiga-ui-legacy-services.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-legacy-services.mjs","sources":["../../../projects/legacy/services/static-request.service.ts","../../../projects/legacy/services/taiga-ui-legacy-services.ts"],"sourcesContent":["import {Injectable} from '@angular/core';\nimport {type Observable, shareReplay, switchMap} from 'rxjs';\nimport {fromFetch} from 'rxjs/fetch';\n\n/**\n * @deprecated: drop in v5.0\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiStaticRequestService {\n private readonly cache = new Map<string, Observable<string>>();\n\n public request(url: string): Observable<string> {\n const cache = this.cache.get(url);\n\n if (cache) {\n return cache;\n }\n\n const piped = fromFetch(url).pipe(\n switchMap(async (response) => {\n if (response.ok) {\n return response.text();\n }\n\n throw new Error(`Failed to load ${url} (${response.statusText})`);\n }),\n shareReplay({bufferSize: 1, refCount: false}),\n );\n\n this.cache.set(url, piped);\n\n return piped;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;;AAEG;MAIU,uBAAuB,CAAA;AAHpC,IAAA,WAAA,GAAA;AAIqB,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,GAAG,EAA8B;AAwBjE;AAtBU,IAAA,OAAO,CAAC,GAAW,EAAA;QACtB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC;QAEjC,IAAI,KAAK,EAAE;AACP,YAAA,OAAO,KAAK;;AAGhB,QAAA,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,CAC7B,SAAS,CAAC,OAAO,QAAQ,KAAI;AACzB,YAAA,IAAI,QAAQ,CAAC,EAAE,EAAE;AACb,gBAAA,OAAO,QAAQ,CAAC,IAAI,EAAE;;YAG1B,MAAM,IAAI,KAAK,CAAC,CAAkB,eAAA,EAAA,GAAG,CAAK,EAAA,EAAA,QAAQ,CAAC,UAAU,CAAG,CAAA,CAAA,CAAC;AACrE,SAAC,CAAC,EACF,WAAW,CAAC,EAAC,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC,CAChD;QAED,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC;AAE1B,QAAA,OAAO,KAAK;;+GAvBP,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cAFpB,MAAM,EAAA,CAAA,CAAA;;4FAET,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE,MAAM;AACrB,iBAAA;;;ACTD;;AAEG;;;;"}
@@ -1,37 +0,0 @@
1
- import { type PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @deprecated: drop in v5.0
5
- */
6
- export declare class TuiFormatPhonePipe implements PipeTransform {
7
- /**
8
- * Use {@link https://maskito.dev/frameworks/angular#pipe MaskitoPipe} instead!
9
- * ```ts
10
- * import {maskitoTransform} from '@maskito/core';
11
- * import {maskitoPhoneOptionsGenerator} from '@maskito/phone';
12
- * import metadata from 'libphonenumber-js/min/metadata';
13
- *
14
- * @Component({
15
- * standalone: true,
16
- * imports: [MaskitoPipe],
17
- * template: `
18
- * Phone: {{'12125552368' | maskito: options}}
19
- * <!-- Phone: +1 (212) 555-2368 -->
20
- * `,
21
- * })
22
- * export class YourComponent {
23
- * options = maskitoPhoneOptionsGenerator({countryIsoCode: 'US', metadata});
24
- * }
25
- * ```
26
- * ___
27
- * @deprecated Use {@link https://maskito.dev/frameworks/angular#pipe MaskitoPipe} instead!
28
- * Formats phone number string of +7XXXXXXXXXX format with adding separator symbols
29
- * @param value
30
- * @param countryCode
31
- * @param phoneMask
32
- * @return formatted phone number string +7(XXX)XXX-XX-XX
33
- */
34
- transform(value: string, countryCode?: string, phoneMask?: string): string;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiFormatPhonePipe, never>;
36
- static ɵpipe: i0.ɵɵPipeDeclaration<TuiFormatPhonePipe, "tuiFormatPhone", true>;
37
- }
@@ -1 +0,0 @@
1
- export * from './format-phone.pipe';
package/pipes/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from '@taiga-ui/legacy/pipes/format-phone';
2
- export * from '@taiga-ui/legacy/pipes/iso-to-country-code';
3
- export * from '@taiga-ui/legacy/pipes/to-country-code';
@@ -1 +0,0 @@
1
- export * from './iso-to-country-code.pipe';
@@ -1,30 +0,0 @@
1
- import { type PipeTransform } from '@angular/core';
2
- import { type TuiCountryIsoCode } from '@taiga-ui/i18n/types';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @deprecated: drop in v5.0
6
- * Use `getCountryCallingCode` from `libphonenumber-js/core` instead
7
- * ```ts
8
- * import {getCountryCallingCode} from 'libphonenumber-js/core';
9
- * import metadata from 'libphonenumber-js/max/metadata';
10
- *
11
- * getCountryCallingCode('US', metadata) // 1
12
- * getCountryCallingCode('GB', metadata) // 44
13
- * ```
14
- */
15
- export declare class TuiIsoToCountryCodePipe implements PipeTransform {
16
- private readonly countriesMasks;
17
- /**
18
- * @deprecated Use `getCountryCallingCode` from `libphonenumber-js/core` instead
19
- * ```ts
20
- * import {getCountryCallingCode} from 'libphonenumber-js/core';
21
- * import metadata from 'libphonenumber-js/max/metadata';
22
- *
23
- * getCountryCallingCode('US', metadata) // 1
24
- * getCountryCallingCode('GB', metadata) // 44
25
- * ```
26
- */
27
- transform(isoCode: TuiCountryIsoCode): string;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiIsoToCountryCodePipe, never>;
29
- static ɵpipe: i0.ɵɵPipeDeclaration<TuiIsoToCountryCodePipe, "tuiIsoToCountryCode", true>;
30
- }
@@ -1 +0,0 @@
1
- export * from './to-country-code.pipe';
@@ -1,38 +0,0 @@
1
- import { type PipeTransform } from '@angular/core';
2
- import { type TuiCountryIsoCode } from '@taiga-ui/i18n/types';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @deprecated: drop in v5.0
6
- * use `maskitoGetCountryFromNumber` from `@maskito/phone` instead
7
- * ```
8
- * npm i @maskito/phone
9
- * ```
10
- *
11
- * ```ts
12
- * import {maskitoGetCountryFromNumber} from '@maskito/phone';
13
- * import metadata from 'libphonenumber-js/min/metadata';
14
- *
15
- * maskitoGetCountryFromNumber('+1 (212) 555-2368', metadata); // 'US'
16
- * maskitoGetCountryFromNumber('+12125552368', metadata); // 'US'
17
- * ```
18
- */
19
- export declare class TuiToCountryCodePipe implements PipeTransform {
20
- private readonly countriesMasks;
21
- /**
22
- * @deprecated use `maskitoGetCountryFromNumber` from `@maskito/phone` instead
23
- * ```
24
- * npm i @maskito/phone
25
- * ```
26
- *
27
- * ```ts
28
- * import {maskitoGetCountryFromNumber} from '@maskito/phone';
29
- * import metadata from 'libphonenumber-js/min/metadata';
30
- *
31
- * maskitoGetCountryFromNumber('+1 (212) 555-2368', metadata); // 'US'
32
- * maskitoGetCountryFromNumber('+12125552368', metadata); // 'US'
33
- * ```
34
- */
35
- transform(value: string, countries: readonly TuiCountryIsoCode[]): TuiCountryIsoCode | undefined;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiToCountryCodePipe, never>;
37
- static ɵpipe: i0.ɵɵPipeDeclaration<TuiToCountryCodePipe, "tuiToCountryCode", true>;
38
- }
@@ -1 +0,0 @@
1
- export * from './static-request.service';
@@ -1,11 +0,0 @@
1
- import { type Observable } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @deprecated: drop in v5.0
5
- */
6
- export declare class TuiStaticRequestService {
7
- private readonly cache;
8
- request(url: string): Observable<string>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiStaticRequestService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<TuiStaticRequestService>;
11
- }