@taiga-ui/legacy 4.52.0-canary.a4e325d → 4.52.0-canary.bf9131e

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 (232) hide show
  1. package/components/dialog/dialog.component.d.ts +20 -0
  2. package/components/dialog/dialog.directive.d.ts +7 -0
  3. package/components/dialog/dialog.factory.d.ts +16 -0
  4. package/components/dialog/dialog.interfaces.d.ts +31 -0
  5. package/components/dialog/dialog.service.d.ts +7 -0
  6. package/components/dialog/dialog.tokens.d.ts +8 -0
  7. package/components/dialog/index.d.ts +6 -0
  8. package/components/index.d.ts +2 -16
  9. package/components/input/input.module.d.ts +1 -1
  10. package/components/input-date-range/input-date-range.module.d.ts +1 -1
  11. package/components/input-date-time/input-date-time.component.d.ts +4 -3
  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-group/multi-select-group.component.d.ts +1 -1
  17. package/components/multi-select/multi-select.module.d.ts +1 -1
  18. package/components/pdf-viewer/index.d.ts +4 -0
  19. package/components/pdf-viewer/pdf-viewer.component.d.ts +12 -0
  20. package/components/pdf-viewer/pdf-viewer.directive.d.ts +7 -0
  21. package/components/pdf-viewer/pdf-viewer.options.d.ts +13 -0
  22. package/components/pdf-viewer/pdf-viewer.service.d.ts +13 -0
  23. package/components/select/select.module.d.ts +1 -1
  24. package/fesm2022/taiga-ui-legacy-classes.mjs +21 -21
  25. package/fesm2022/taiga-ui-legacy-classes.mjs.map +1 -1
  26. package/fesm2022/taiga-ui-legacy-components-arrow.mjs +3 -3
  27. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -1
  28. package/fesm2022/taiga-ui-legacy-components-dialog.mjs +129 -0
  29. package/fesm2022/taiga-ui-legacy-components-dialog.mjs.map +1 -0
  30. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +26 -26
  31. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +29 -29
  33. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -1
  34. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +12 -12
  35. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -1
  36. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +21 -21
  37. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -1
  38. package/fesm2022/taiga-ui-legacy-components-input-range.mjs +25 -25
  39. package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -1
  40. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +18 -19
  41. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +1 -1
  42. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +22 -22
  43. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -1
  44. package/fesm2022/taiga-ui-legacy-components-input.mjs +14 -15
  45. package/fesm2022/taiga-ui-legacy-components-input.mjs.map +1 -1
  46. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +7 -7
  47. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +1 -1
  48. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +48 -48
  49. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs +82 -0
  51. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs.map +1 -0
  52. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +28 -28
  53. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-legacy-components-select-option.mjs +8 -8
  55. package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -1
  56. package/fesm2022/taiga-ui-legacy-components-select.mjs +33 -34
  57. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -1
  58. package/fesm2022/taiga-ui-legacy-components-tag.mjs +13 -14
  59. package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -1
  60. package/fesm2022/taiga-ui-legacy-components-textarea.mjs +23 -23
  61. package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -1
  62. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +7 -7
  63. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-legacy-components.mjs +2 -16
  65. package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +3 -3
  67. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +34 -34
  69. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +4 -5
  71. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +7 -7
  73. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs +7 -7
  75. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-legacy-tokens.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-legacy-utils.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-legacy.mjs +0 -2
  79. package/fesm2022/taiga-ui-legacy.mjs.map +1 -1
  80. package/index.d.ts +0 -2
  81. package/package.json +12 -88
  82. package/utils/icons-path-factory.d.ts +1 -1
  83. package/components/color-selector/color-edit/color-edit.component.d.ts +0 -18
  84. package/components/color-selector/color-edit/color-edit.module.d.ts +0 -21
  85. package/components/color-selector/color-picker/color-picker.component.d.ts +0 -22
  86. package/components/color-selector/color-picker/color-picker.module.d.ts +0 -14
  87. package/components/color-selector/color-selector.component.d.ts +0 -47
  88. package/components/color-selector/color-selector.module.d.ts +0 -24
  89. package/components/color-selector/color-selector.options.d.ts +0 -25
  90. package/components/color-selector/flat-picker/flat-picker.component.d.ts +0 -12
  91. package/components/color-selector/flat-picker/flat-picker.module.d.ts +0 -12
  92. package/components/color-selector/index.d.ts +0 -16
  93. package/components/color-selector/linear-multi-picker/linear-multi-picker.component.d.ts +0 -17
  94. package/components/color-selector/linear-multi-picker/linear-multi-picker.module.d.ts +0 -12
  95. package/components/color-selector/linear-picker/linear-picker.component.d.ts +0 -10
  96. package/components/color-selector/linear-picker/linear-picker.module.d.ts +0 -12
  97. package/components/color-selector/palette/palette.component.d.ts +0 -10
  98. package/components/color-selector/palette/palette.module.d.ts +0 -13
  99. package/components/color-selector/services/picker.service.d.ts +0 -15
  100. package/components/combo-box/combo-box-strict.directive.d.ts +0 -12
  101. package/components/combo-box/combo-box.component.d.ts +0 -52
  102. package/components/combo-box/combo-box.directive.d.ts +0 -13
  103. package/components/combo-box/combo-box.module.d.ts +0 -20
  104. package/components/combo-box/index.d.ts +0 -4
  105. package/components/input-color/index.d.ts +0 -2
  106. package/components/input-color/input-color.component.d.ts +0 -30
  107. package/components/input-color/input-color.module.d.ts +0 -17
  108. package/components/input-copy/index.d.ts +0 -4
  109. package/components/input-copy/input-copy.component.d.ts +0 -33
  110. package/components/input-copy/input-copy.directive.d.ts +0 -11
  111. package/components/input-copy/input-copy.module.d.ts +0 -18
  112. package/components/input-copy/input-copy.options.d.ts +0 -26
  113. package/components/input-date/index.d.ts +0 -3
  114. package/components/input-date/input-date.component.d.ts +0 -62
  115. package/components/input-date/input-date.directive.d.ts +0 -19
  116. package/components/input-date/input-date.module.d.ts +0 -24
  117. package/components/input-date/native-date/native-date.component.d.ts +0 -15
  118. package/components/input-date-multi/index.d.ts +0 -2
  119. package/components/input-date-multi/input-date-multi.component.d.ts +0 -66
  120. package/components/input-date-multi/input-date-multi.module.d.ts +0 -20
  121. package/components/input-month/index.d.ts +0 -3
  122. package/components/input-month/input-month.component.d.ts +0 -44
  123. package/components/input-month/input-month.directive.d.ts +0 -19
  124. package/components/input-month/input-month.module.d.ts +0 -19
  125. package/components/input-password/index.d.ts +0 -4
  126. package/components/input-password/input-password.component.d.ts +0 -33
  127. package/components/input-password/input-password.directive.d.ts +0 -15
  128. package/components/input-password/input-password.module.d.ts +0 -19
  129. package/components/input-password/input-password.options.d.ts +0 -25
  130. package/components/input-phone/index.d.ts +0 -4
  131. package/components/input-phone/input-phone.component.d.ts +0 -49
  132. package/components/input-phone/input-phone.directive.d.ts +0 -13
  133. package/components/input-phone/input-phone.module.d.ts +0 -12
  134. package/components/input-phone/input-phone.options.d.ts +0 -13
  135. package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +0 -9
  136. package/components/input-phone/utils/create-phone-mask-expression.d.ts +0 -7
  137. package/components/input-phone/utils/index.d.ts +0 -2
  138. package/components/input-phone-international/index.d.ts +0 -3
  139. package/components/input-phone-international/input-phone-international.component.d.ts +0 -43
  140. package/components/input-phone-international/input-phone-international.options.d.ts +0 -25
  141. package/components/input-phone-international/utils/extract-value-from-event.d.ts +0 -4
  142. package/components/input-time/index.d.ts +0 -4
  143. package/components/input-time/input-time.component.d.ts +0 -62
  144. package/components/input-time/input-time.directive.d.ts +0 -17
  145. package/components/input-time/input-time.module.d.ts +0 -23
  146. package/components/input-time/input-time.options.d.ts +0 -42
  147. package/components/input-time/native-time/native-time.component.d.ts +0 -12
  148. package/components/input-year/index.d.ts +0 -3
  149. package/components/input-year/input-year.component.d.ts +0 -36
  150. package/components/input-year/input-year.directive.d.ts +0 -14
  151. package/components/input-year/input-year.module.d.ts +0 -18
  152. package/components/island/index.d.ts +0 -1
  153. package/components/island/island.directive.d.ts +0 -20
  154. package/components/sheet/components/sheet/sheet.component.d.ts +0 -31
  155. package/components/sheet/components/sheet/sheet.providers.d.ts +0 -2
  156. package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +0 -11
  157. package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +0 -14
  158. package/components/sheet/components/sheets-host/sheets-host.component.d.ts +0 -15
  159. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +0 -14
  160. package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +0 -9
  161. package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +0 -14
  162. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +0 -17
  163. package/components/sheet/index.d.ts +0 -14
  164. package/components/sheet/sheet-options.d.ts +0 -27
  165. package/components/sheet/sheet-tokens.d.ts +0 -18
  166. package/components/sheet/sheet.d.ts +0 -21
  167. package/components/sheet/sheet.directive.d.ts +0 -17
  168. package/components/sheet/sheet.module.d.ts +0 -24
  169. package/components/sheet/sheet.service.d.ts +0 -17
  170. package/components/svg/content-processor.d.ts +0 -19
  171. package/components/svg/deprecated-icons.d.ts +0 -5
  172. package/components/svg/index.d.ts +0 -5
  173. package/components/svg/svg-options.d.ts +0 -50
  174. package/components/svg/svg.component.d.ts +0 -50
  175. package/components/svg/svg.service.d.ts +0 -21
  176. package/components/table-bar/index.d.ts +0 -4
  177. package/components/table-bar/table-bar.component.d.ts +0 -17
  178. package/components/table-bar/table-bar.directive.d.ts +0 -11
  179. package/components/table-bar/table-bar.options.d.ts +0 -31
  180. package/components/table-bar/table-bars-host.component.d.ts +0 -10
  181. package/components/table-bar/table-bars.service.d.ts +0 -11
  182. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs +0 -730
  183. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +0 -1
  184. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +0 -301
  185. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +0 -1
  186. package/fesm2022/taiga-ui-legacy-components-input-color.mjs +0 -127
  187. package/fesm2022/taiga-ui-legacy-components-input-color.mjs.map +0 -1
  188. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +0 -197
  189. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +0 -1
  190. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs +0 -272
  191. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs.map +0 -1
  192. package/fesm2022/taiga-ui-legacy-components-input-date.mjs +0 -372
  193. package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +0 -1
  194. package/fesm2022/taiga-ui-legacy-components-input-month.mjs +0 -231
  195. package/fesm2022/taiga-ui-legacy-components-input-month.mjs.map +0 -1
  196. package/fesm2022/taiga-ui-legacy-components-input-password.mjs +0 -187
  197. package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +0 -1
  198. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +0 -215
  199. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +0 -1
  200. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +0 -358
  201. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +0 -1
  202. package/fesm2022/taiga-ui-legacy-components-input-time.mjs +0 -434
  203. package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +0 -1
  204. package/fesm2022/taiga-ui-legacy-components-input-year.mjs +0 -188
  205. package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +0 -1
  206. package/fesm2022/taiga-ui-legacy-components-island.mjs +0 -68
  207. package/fesm2022/taiga-ui-legacy-components-island.mjs.map +0 -1
  208. package/fesm2022/taiga-ui-legacy-components-sheet.mjs +0 -577
  209. package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +0 -1
  210. package/fesm2022/taiga-ui-legacy-components-svg.mjs +0 -387
  211. package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +0 -1
  212. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +0 -145
  213. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs.map +0 -1
  214. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs +0 -59
  215. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +0 -1
  216. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +0 -50
  217. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs.map +0 -1
  218. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs +0 -80
  219. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs.map +0 -1
  220. package/fesm2022/taiga-ui-legacy-pipes.mjs +0 -8
  221. package/fesm2022/taiga-ui-legacy-pipes.mjs.map +0 -1
  222. package/fesm2022/taiga-ui-legacy-services.mjs +0 -42
  223. package/fesm2022/taiga-ui-legacy-services.mjs.map +0 -1
  224. package/pipes/format-phone/format-phone.pipe.d.ts +0 -37
  225. package/pipes/format-phone/index.d.ts +0 -1
  226. package/pipes/index.d.ts +0 -3
  227. package/pipes/iso-to-country-code/index.d.ts +0 -1
  228. package/pipes/iso-to-country-code/iso-to-country-code.pipe.d.ts +0 -30
  229. package/pipes/to-country-code/index.d.ts +0 -1
  230. package/pipes/to-country-code/to-country-code.pipe.d.ts +0 -38
  231. package/services/index.d.ts +0 -1
  232. package/services/static-request.service.d.ts +0 -11
@@ -1,127 +0,0 @@
1
- import { __decorate } from 'tslib';
2
- import * as i0 from '@angular/core';
3
- import { inject, Input, ViewChild, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
4
- import { DomSanitizer } from '@angular/platform-browser';
5
- import { tuiToGradient, tuiParseGradient, tuiGetGradientData } from '@taiga-ui/cdk/utils/color';
6
- import { tuiPure } from '@taiga-ui/cdk/utils/miscellaneous';
7
- import * as i1$1 from '@taiga-ui/core/directives/dropdown';
8
- import { tuiDropdownOptionsProvider, TuiDropdown } from '@taiga-ui/core/directives/dropdown';
9
- import { AbstractTuiControl } from '@taiga-ui/legacy/classes';
10
- import * as i1 from '@taiga-ui/legacy/components/primitive-textfield';
11
- import { TuiPrimitiveTextfieldComponent, TuiPrimitiveTextfieldModule } from '@taiga-ui/legacy/components/primitive-textfield';
12
- import * as i2 from '@taiga-ui/legacy/directives/textfield-controller';
13
- import { TuiTextfieldControllerModule } from '@taiga-ui/legacy/directives/textfield-controller';
14
- import * as i3 from '@taiga-ui/legacy/components/color-selector';
15
- import { TuiColorSelectorModule } from '@taiga-ui/legacy/components/color-selector';
16
- import * as i4 from '@maskito/angular';
17
- import { MaskitoDirective } from '@maskito/angular';
18
- import { CommonModule } from '@angular/common';
19
-
20
- /**
21
- * TODO(v5): delete it
22
- * @deprecated use new version of {@link https://taiga-ui.dev/components/input-color TuiInputColor} (from @taiga-ui/kit) instead
23
- */
24
- class TuiInputColorComponent extends AbstractTuiControl {
25
- constructor() {
26
- super(...arguments);
27
- this.domSanitizer = inject(DomSanitizer);
28
- this.colors = new Map();
29
- this.open = false;
30
- }
31
- get focused() {
32
- return !!this.textfield?.focused;
33
- }
34
- get nativeFocusableElement() {
35
- return this.computedDisabled || !this.textfield
36
- ? null
37
- : this.textfield.nativeFocusableElement;
38
- }
39
- get background() {
40
- return this.sanitize(this.value, this.domSanitizer);
41
- }
42
- get mode() {
43
- if (this.value.startsWith('#')) {
44
- return 'hex';
45
- }
46
- return this.value.startsWith('rgb') ? 'rgb' : 'gradient';
47
- }
48
- maskitoOptions(mode) {
49
- return mode === 'hex' ? { mask: ['#', ...new Array(6).fill(/[0-9a-f]/i)] } : null;
50
- }
51
- onClick() {
52
- this.open = !this.open;
53
- }
54
- /** deprecated use 'value' setter */
55
- onValueChange(textValue) {
56
- this.value = textValue;
57
- }
58
- onFocused(focused) {
59
- this.updateFocused(focused);
60
- }
61
- getFallbackValue() {
62
- return '#000000';
63
- }
64
- sanitize(value, domSanitizer) {
65
- return value.startsWith('linear-gradient(')
66
- ? domSanitizer.bypassSecurityTrustStyle(tuiToGradient(tuiParseGradient(tuiGetGradientData(value))))
67
- : value;
68
- }
69
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputColorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
70
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiInputColorComponent, isStandalone: false, selector: "tui-input-color", inputs: { colors: "colors" }, host: { listeners: { "click": "onClick()" } }, viewQueries: [{ propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div\n class=\"t-wrapper\"\n [tuiDropdown]=\"picker\"\n [(tuiDropdownOpen)]=\"open\"\n>\n <tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskitoOptions(mode)\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIconLeft]=\"color\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n >\n <ng-content />\n </tui-primitive-textfield>\n</div>\n\n<ng-template #color>\n <div\n class=\"t-color\"\n [style.background]=\"background\"\n ></div>\n</ng-template>\n\n<ng-template #picker>\n <tui-color-selector\n [colors]=\"colors\"\n [(color)]=\"value\"\n />\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host :host-context(*:disabled){pointer-events:none}.t-wrapper{display:flex;border-radius:inherit;inline-size:100%}.t-textfield{border-radius:inherit;text-align:inherit;inline-size:inherit}.t-textfield ::ng-deep .t-input{text-transform:lowercase!important}.t-color{inline-size:1.5rem;block-size:1.5rem;box-shadow:inset 0 0 0 1px var(--tui-base-03-dark);border-radius:.125rem;pointer-events:auto!important}\n"], dependencies: [{ kind: "component", type: i1.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "iconCleaner", "readOnly", "invalid", "disabled", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i1.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "directive", type: i2.TuiTextfieldIconLeftDirective, selector: "[tuiTextfieldIconLeft]", inputs: ["tuiTextfieldIconLeft"] }, { kind: "component", type: i3.TuiColorSelectorComponent, selector: "tui-color-selector", inputs: ["colors", "color"], outputs: ["colorChange"] }, { kind: "directive", type: i4.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { kind: "directive", type: i1$1.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container):not(ng-template)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { kind: "directive", type: i1$1.TuiDropdownOpen, selector: "[tuiDropdown][tuiDropdownOpen],[tuiDropdown][tuiDropdownOpenChange]", inputs: ["tuiDropdownEnabled", "tuiDropdownOpen"], outputs: ["tuiDropdownOpenChange"] }], viewProviders: [tuiDropdownOptionsProvider({ maxHeight: 600 })], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
71
- }
72
- __decorate([
73
- tuiPure
74
- ], TuiInputColorComponent.prototype, "maskitoOptions", null);
75
- __decorate([
76
- tuiPure
77
- ], TuiInputColorComponent.prototype, "sanitize", null);
78
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputColorComponent, decorators: [{
79
- type: Component,
80
- args: [{ standalone: false, selector: 'tui-input-color', changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [tuiDropdownOptionsProvider({ maxHeight: 600 })], host: {
81
- '(click)': 'onClick()',
82
- }, template: "<div\n class=\"t-wrapper\"\n [tuiDropdown]=\"picker\"\n [(tuiDropdownOpen)]=\"open\"\n>\n <tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskitoOptions(mode)\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIconLeft]=\"color\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n >\n <ng-content />\n </tui-primitive-textfield>\n</div>\n\n<ng-template #color>\n <div\n class=\"t-color\"\n [style.background]=\"background\"\n ></div>\n</ng-template>\n\n<ng-template #picker>\n <tui-color-selector\n [colors]=\"colors\"\n [(color)]=\"value\"\n />\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host :host-context(*:disabled){pointer-events:none}.t-wrapper{display:flex;border-radius:inherit;inline-size:100%}.t-textfield{border-radius:inherit;text-align:inherit;inline-size:inherit}.t-textfield ::ng-deep .t-input{text-transform:lowercase!important}.t-color{inline-size:1.5rem;block-size:1.5rem;box-shadow:inset 0 0 0 1px var(--tui-base-03-dark);border-radius:.125rem;pointer-events:auto!important}\n"] }]
83
- }], propDecorators: { textfield: [{
84
- type: ViewChild,
85
- args: [TuiPrimitiveTextfieldComponent]
86
- }], colors: [{
87
- type: Input
88
- }], maskitoOptions: [], sanitize: [] } });
89
-
90
- /**
91
- * TODO(v5): delete it
92
- * @deprecated use new version of {@link https://taiga-ui.dev/components/input-color TuiInputColor} (from @taiga-ui/kit) instead
93
- */
94
- class TuiInputColorModule {
95
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputColorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
96
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.9", ngImport: i0, type: TuiInputColorModule, declarations: [TuiInputColorComponent], imports: [CommonModule,
97
- TuiPrimitiveTextfieldModule,
98
- TuiTextfieldControllerModule,
99
- TuiColorSelectorModule,
100
- MaskitoDirective, i1$1.TuiDropdownOptionsDirective, i1$1.TuiDropdownDriverDirective, i1$1.TuiDropdownDirective, i1$1.TuiDropdownComponent, i1$1.TuiDropdownOpen, i1$1.TuiDropdownOpenLegacy, i1$1.TuiDropdownPortal, i1$1.TuiDropdownManual, i1$1.TuiDropdownHover, i1$1.TuiDropdownContext, i1$1.TuiDropdownPosition, i1$1.TuiDropdownPositionSided, i1$1.TuiDropdownSelection], exports: [TuiInputColorComponent, i1$1.TuiDropdownOptionsDirective, i1$1.TuiDropdownDriverDirective, i1$1.TuiDropdownDirective, i1$1.TuiDropdownComponent, i1$1.TuiDropdownOpen, i1$1.TuiDropdownOpenLegacy, i1$1.TuiDropdownPortal, i1$1.TuiDropdownManual, i1$1.TuiDropdownHover, i1$1.TuiDropdownContext, i1$1.TuiDropdownPosition, i1$1.TuiDropdownPositionSided, i1$1.TuiDropdownSelection] }); }
101
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputColorModule, imports: [CommonModule,
102
- TuiPrimitiveTextfieldModule,
103
- TuiTextfieldControllerModule,
104
- TuiColorSelectorModule, i1$1.TuiDropdownComponent] }); }
105
- }
106
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputColorModule, decorators: [{
107
- type: NgModule,
108
- args: [{
109
- imports: [
110
- CommonModule,
111
- TuiPrimitiveTextfieldModule,
112
- TuiTextfieldControllerModule,
113
- TuiColorSelectorModule,
114
- MaskitoDirective,
115
- ...TuiDropdown,
116
- ],
117
- declarations: [TuiInputColorComponent],
118
- exports: [TuiInputColorComponent, ...TuiDropdown],
119
- }]
120
- }] });
121
-
122
- /**
123
- * Generated bundle index. Do not edit.
124
- */
125
-
126
- export { TuiInputColorComponent, TuiInputColorModule };
127
- //# sourceMappingURL=taiga-ui-legacy-components-input-color.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-legacy-components-input-color.mjs","sources":["../../../projects/legacy/components/input-color/input-color.component.ts","../../../projects/legacy/components/input-color/input-color.template.html","../../../projects/legacy/components/input-color/input-color.module.ts","../../../projects/legacy/components/input-color/taiga-ui-legacy-components-input-color.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n inject,\n Input,\n ViewChild,\n} from '@angular/core';\nimport {DomSanitizer, type SafeStyle} from '@angular/platform-browser';\nimport {type MaskitoOptions} from '@maskito/core';\nimport {\n tuiGetGradientData,\n tuiParseGradient,\n tuiToGradient,\n} from '@taiga-ui/cdk/utils/color';\nimport {tuiPure} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiDropdownOptionsProvider} from '@taiga-ui/core/directives/dropdown';\nimport {AbstractTuiControl} from '@taiga-ui/legacy/classes';\nimport {TuiPrimitiveTextfieldComponent} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {\n type TuiFocusableElementAccessor,\n type TuiNativeFocusableElement,\n} from '@taiga-ui/legacy/tokens';\n\ntype MaskMode = 'gradient' | 'hex' | 'rgb';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/input-color TuiInputColor} (from @taiga-ui/kit) instead\n */\n@Component({\n standalone: false,\n selector: 'tui-input-color',\n templateUrl: './input-color.template.html',\n styleUrls: ['./input-color.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n viewProviders: [tuiDropdownOptionsProvider({maxHeight: 600})],\n host: {\n '(click)': 'onClick()',\n },\n})\nexport class TuiInputColorComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly domSanitizer = inject(DomSanitizer);\n\n @Input()\n public colors: ReadonlyMap<string, string> = new Map<string, string>();\n\n public open = false;\n\n public get focused(): boolean {\n return !!this.textfield?.focused;\n }\n\n public get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.computedDisabled || !this.textfield\n ? null\n : this.textfield.nativeFocusableElement;\n }\n\n public get background(): SafeStyle {\n return this.sanitize(this.value, this.domSanitizer);\n }\n\n public get mode(): MaskMode {\n if (this.value.startsWith('#')) {\n return 'hex';\n }\n\n return this.value.startsWith('rgb') ? 'rgb' : 'gradient';\n }\n\n @tuiPure\n public maskitoOptions(mode: MaskMode): MaskitoOptions | null {\n return mode === 'hex' ? {mask: ['#', ...new Array(6).fill(/[0-9a-f]/i)]} : null;\n }\n\n public onClick(): void {\n this.open = !this.open;\n }\n\n /** deprecated use 'value' setter */\n public onValueChange(textValue: string): void {\n this.value = textValue;\n }\n\n public onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n protected getFallbackValue(): string {\n return '#000000';\n }\n\n @tuiPure\n private sanitize(value: string, domSanitizer: DomSanitizer): SafeStyle | string {\n return value.startsWith('linear-gradient(')\n ? domSanitizer.bypassSecurityTrustStyle(\n tuiToGradient(tuiParseGradient(tuiGetGradientData(value))),\n )\n : value;\n }\n}\n","<div\n class=\"t-wrapper\"\n [tuiDropdown]=\"picker\"\n [(tuiDropdownOpen)]=\"open\"\n>\n <tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskitoOptions(mode)\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIconLeft]=\"color\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n >\n <ng-content />\n </tui-primitive-textfield>\n</div>\n\n<ng-template #color>\n <div\n class=\"t-color\"\n [style.background]=\"background\"\n ></div>\n</ng-template>\n\n<ng-template #picker>\n <tui-color-selector\n [colors]=\"colors\"\n [(color)]=\"value\"\n />\n</ng-template>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {TuiDropdown} from '@taiga-ui/core/directives/dropdown';\nimport {TuiColorSelectorModule} from '@taiga-ui/legacy/components/color-selector';\nimport {TuiPrimitiveTextfieldModule} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {TuiTextfieldControllerModule} from '@taiga-ui/legacy/directives/textfield-controller';\n\nimport {TuiInputColorComponent} from './input-color.component';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/input-color TuiInputColor} (from @taiga-ui/kit) instead\n */\n@NgModule({\n imports: [\n CommonModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiColorSelectorModule,\n MaskitoDirective,\n ...TuiDropdown,\n ],\n declarations: [TuiInputColorComponent],\n exports: [TuiInputColorComponent, ...TuiDropdown],\n})\nexport class TuiInputColorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;AAyBA;;;AAGG;AAYG,MAAO,sBACT,SAAQ,kBAA0B,CAAA;AAZtC,IAAA,WAAA,GAAA;;AAkBqB,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;AAG7C,QAAA,IAAA,CAAA,MAAM,GAAgC,IAAI,GAAG,EAAkB;QAE/D,IAAA,CAAA,IAAI,GAAG,KAAK;AAsDtB,IAAA;AApDG,IAAA,IAAW,OAAO,GAAA;AACd,QAAA,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO;IACpC;AAEA,IAAA,IAAW,sBAAsB,GAAA;AAC7B,QAAA,OAAO,IAAI,CAAC,gBAAgB,IAAI,CAAC,IAAI,CAAC;AAClC,cAAE;AACF,cAAE,IAAI,CAAC,SAAS,CAAC,sBAAsB;IAC/C;AAEA,IAAA,IAAW,UAAU,GAAA;AACjB,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC;IACvD;AAEA,IAAA,IA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,CAAC,sBAAsB,EAAE,GAAG,WAAW,CAAC;AACpD,iBAAA;;;ACzBD;;AAEG;;;;"}
@@ -1,197 +0,0 @@
1
- import { __decorate } from 'tslib';
2
- import * as i7 from '@angular/common';
3
- import { DOCUMENT, CommonModule } from '@angular/common';
4
- import * as i0 from '@angular/core';
5
- import { InjectionToken, inject, Input, ViewChild, ChangeDetectionStrategy, Component, Directive, NgModule } from '@angular/core';
6
- import { tuiProvideOptions, tuiPure } from '@taiga-ui/cdk/utils/miscellaneous';
7
- import { TUI_COPY_TEXTS } from '@taiga-ui/kit/tokens';
8
- import { AbstractTuiControl, tuiAsControl, AbstractTuiTextfieldHost } from '@taiga-ui/legacy/classes';
9
- import * as i2 from '@taiga-ui/legacy/components/primitive-textfield';
10
- import { TuiPrimitiveTextfieldComponent, TuiTextfieldComponent, TuiPrimitiveTextfieldModule } from '@taiga-ui/legacy/components/primitive-textfield';
11
- import * as i3 from '@taiga-ui/legacy/directives';
12
- import { TUI_TEXTFIELD_SIZE, TUI_VALUE_ACCESSOR_PROVIDER, TuiTextfieldControllerModule } from '@taiga-ui/legacy/directives';
13
- import { tuiAsFocusableItemAccessor, tuiAsTextfieldHost } from '@taiga-ui/legacy/tokens';
14
- import { BehaviorSubject, switchMap, of, merge, timer, map } from 'rxjs';
15
- import * as i1 from '@taiga-ui/polymorpheus';
16
- import { PolymorpheusOutlet, PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
17
- import * as i4 from '@taiga-ui/core/directives/appearance';
18
- import { TuiAppearance } from '@taiga-ui/core/directives/appearance';
19
- import * as i5 from '@taiga-ui/core/components/icon';
20
- import { TuiIcon } from '@taiga-ui/core/components/icon';
21
- import * as i1$1 from '@taiga-ui/core/directives/hint';
22
- import { TuiHint } from '@taiga-ui/core/directives/hint';
23
-
24
- /**
25
- * @deprecated use {@link TuiCopy} with {@link TuiTextfield}
26
- */
27
- const TUI_INPUT_COPY_DEFAULT_OPTIONS = {
28
- successMessage: '',
29
- messageDirection: 'bottom-left',
30
- messageAppearance: '',
31
- icon: () => '@tui.copy',
32
- };
33
- /**
34
- * @deprecated use {@link TuiCopy} with {@link TuiTextfield}
35
- */
36
- const TUI_INPUT_COPY_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_INPUT_COPY_OPTIONS' : '', {
37
- factory: () => TUI_INPUT_COPY_DEFAULT_OPTIONS,
38
- });
39
- /**
40
- * @deprecated use {@link TuiCopy} with {@link TuiTextfield}
41
- */
42
- function tuiInputCopyOptionsProvider(options) {
43
- return tuiProvideOptions(TUI_INPUT_COPY_OPTIONS, options, TUI_INPUT_COPY_DEFAULT_OPTIONS);
44
- }
45
-
46
- /**
47
- * @deprecated use {@link TuiCopy} with {@link TuiTextfield}
48
- */
49
- class TuiInputCopyComponent extends AbstractTuiControl {
50
- constructor() {
51
- super(...arguments);
52
- this.copied$ = new BehaviorSubject(false);
53
- this.doc = inject(DOCUMENT);
54
- this.copyTexts$ = inject(TUI_COPY_TEXTS);
55
- this.options = inject(TUI_INPUT_COPY_OPTIONS);
56
- this.textfieldSize = inject(TUI_TEXTFIELD_SIZE);
57
- this.successMessage = this.options.successMessage;
58
- this.messageDirection = this.options.messageDirection;
59
- this.messageAppearance = this.options.messageAppearance;
60
- }
61
- get nativeFocusableElement() {
62
- return this.computedDisabled || !this.textfield
63
- ? null
64
- : this.textfield.nativeFocusableElement;
65
- }
66
- get focused() {
67
- return !!this.textfield?.focused;
68
- }
69
- onValueChange(value) {
70
- this.value = value;
71
- }
72
- get hintText$() {
73
- return this.copyTexts$.pipe(switchMap((texts) => this.copied$.pipe(switchMap((copied) => {
74
- if (!copied) {
75
- return of(texts[0]);
76
- }
77
- this.copied$.next(false);
78
- return merge(of(this.successMessage || texts[1]), timer(3000).pipe(map(() => texts[0])));
79
- }))));
80
- }
81
- get size() {
82
- return this.textfieldSize.size;
83
- }
84
- get icon() {
85
- return this.options.icon;
86
- }
87
- onFocused(focused) {
88
- this.updateFocused(focused);
89
- }
90
- copy() {
91
- if (!this.textfield?.nativeFocusableElement) {
92
- return;
93
- }
94
- this.textfield.nativeFocusableElement.select();
95
- this.doc.execCommand('copy');
96
- this.copied$.next(true);
97
- }
98
- getFallbackValue() {
99
- return '';
100
- }
101
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputCopyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
102
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiInputCopyComponent, isStandalone: false, selector: "tui-input-copy", inputs: { successMessage: "successMessage", messageDirection: "messageDirection", messageAppearance: "messageAppearance" }, host: { properties: { "attr.data-size": "size" } }, providers: [
103
- TUI_VALUE_ACCESSOR_PROVIDER,
104
- tuiAsFocusableItemAccessor(TuiInputCopyComponent),
105
- tuiAsControl(TuiInputCopyComponent),
106
- ], viewQueries: [{ propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"!disabled ? iconContent : ''\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n</tui-primitive-textfield>\n\n<ng-template #iconContent>\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n automation-id=\"tui-copy__icon\"\n tuiAppearance=\"icon\"\n class=\"t-icon\"\n [class.t-icon_small]=\"size === 's'\"\n [icon]=\"src.toString()\"\n [tuiAppearanceState]=\"!value ? 'disabled' : null\"\n [tuiHint]=\"hint\"\n [tuiHintAppearance]=\"messageAppearance\"\n [tuiHintDirection]=\"messageDirection\"\n (click)=\"copy()\"\n />\n</ng-template>\n\n<ng-template #hint>\n <ng-container *polymorpheusOutlet=\"hintText$ | async as text\">\n {{ text }}\n </ng-container>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host :host-context(*:disabled){pointer-events:none}.t-icon{position:relative;cursor:pointer;pointer-events:auto}.t-icon_small:before{font-size:1rem}.t-textfield{border-radius:inherit;text-align:inherit}\n"], dependencies: [{ kind: "directive", type: i1.PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: i2.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "iconCleaner", "readOnly", "invalid", "disabled", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i2.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "directive", type: i3.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { kind: "directive", type: i4.TuiAppearance, selector: "[tuiAppearance]", inputs: ["tuiAppearance", "tuiAppearanceState", "tuiAppearanceFocus", "tuiAppearanceMode"] }, { kind: "component", type: i5.TuiIcon, selector: "tui-icon", inputs: ["icon", "background"] }, { kind: "directive", type: i1$1.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHintContext", "tuiHintAppearance", "tuiHint"], outputs: ["tuiHintVisible"] }, { kind: "pipe", type: i7.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
107
- }
108
- __decorate([
109
- tuiPure
110
- ], TuiInputCopyComponent.prototype, "hintText$", null);
111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputCopyComponent, decorators: [{
112
- type: Component,
113
- args: [{ standalone: false, selector: 'tui-input-copy', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
114
- TUI_VALUE_ACCESSOR_PROVIDER,
115
- tuiAsFocusableItemAccessor(TuiInputCopyComponent),
116
- tuiAsControl(TuiInputCopyComponent),
117
- ], host: {
118
- '[attr.data-size]': 'size',
119
- }, template: "<tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"!disabled ? iconContent : ''\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n</tui-primitive-textfield>\n\n<ng-template #iconContent>\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n automation-id=\"tui-copy__icon\"\n tuiAppearance=\"icon\"\n class=\"t-icon\"\n [class.t-icon_small]=\"size === 's'\"\n [icon]=\"src.toString()\"\n [tuiAppearanceState]=\"!value ? 'disabled' : null\"\n [tuiHint]=\"hint\"\n [tuiHintAppearance]=\"messageAppearance\"\n [tuiHintDirection]=\"messageDirection\"\n (click)=\"copy()\"\n />\n</ng-template>\n\n<ng-template #hint>\n <ng-container *polymorpheusOutlet=\"hintText$ | async as text\">\n {{ text }}\n </ng-container>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host :host-context(*:disabled){pointer-events:none}.t-icon{position:relative;cursor:pointer;pointer-events:auto}.t-icon_small:before{font-size:1rem}.t-textfield{border-radius:inherit;text-align:inherit}\n"] }]
120
- }], propDecorators: { textfield: [{
121
- type: ViewChild,
122
- args: [TuiPrimitiveTextfieldComponent]
123
- }], successMessage: [{
124
- type: Input
125
- }], messageDirection: [{
126
- type: Input
127
- }], messageAppearance: [{
128
- type: Input
129
- }], hintText$: [] } });
130
-
131
- /**
132
- * @deprecated use {@link TuiCopy} with {@link TuiTextfield}
133
- */
134
- class TuiInputCopyDirective extends AbstractTuiTextfieldHost {
135
- onValueChange(value) {
136
- this.host.onValueChange(value);
137
- }
138
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputCopyDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
139
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiInputCopyDirective, isStandalone: false, selector: "tui-input-copy", providers: [tuiAsTextfieldHost(TuiInputCopyDirective)], usesInheritance: true, ngImport: i0 }); }
140
- }
141
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputCopyDirective, decorators: [{
142
- type: Directive,
143
- args: [{
144
- standalone: false,
145
- selector: 'tui-input-copy',
146
- providers: [tuiAsTextfieldHost(TuiInputCopyDirective)],
147
- }]
148
- }] });
149
-
150
- /**
151
- * @deprecated use {@link TuiCopy} with {@link TuiTextfield}
152
- */
153
- class TuiInputCopyModule {
154
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputCopyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
155
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.9", ngImport: i0, type: TuiInputCopyModule, declarations: [TuiInputCopyComponent, TuiInputCopyDirective], imports: [CommonModule,
156
- PolymorpheusOutlet,
157
- PolymorpheusTemplate,
158
- TuiPrimitiveTextfieldModule,
159
- TuiTextfieldControllerModule,
160
- TuiAppearance,
161
- TuiIcon, i1$1.TuiHintComponent, i1$1.TuiHintDirective, i1$1.TuiHintOptionsDirective, i1$1.TuiHintUnstyled, i1$1.TuiHintDriver, i1$1.TuiHintPosition, i1$1.TuiHintHover, i1$1.TuiHintOverflow, i1$1.TuiHintDescribe, i1$1.TuiHintHost, i1$1.TuiHintManual, i1$1.TuiHintPointer], exports: [TuiInputCopyComponent,
162
- TuiInputCopyDirective,
163
- TuiTextfieldComponent, i1$1.TuiHintComponent, i1$1.TuiHintDirective, i1$1.TuiHintOptionsDirective, i1$1.TuiHintUnstyled, i1$1.TuiHintDriver, i1$1.TuiHintPosition, i1$1.TuiHintHover, i1$1.TuiHintOverflow, i1$1.TuiHintDescribe, i1$1.TuiHintHost, i1$1.TuiHintManual, i1$1.TuiHintPointer] }); }
164
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputCopyModule, imports: [CommonModule,
165
- TuiPrimitiveTextfieldModule,
166
- TuiTextfieldControllerModule,
167
- TuiIcon, i1$1.TuiHintComponent] }); }
168
- }
169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputCopyModule, decorators: [{
170
- type: NgModule,
171
- args: [{
172
- imports: [
173
- CommonModule,
174
- PolymorpheusOutlet,
175
- PolymorpheusTemplate,
176
- TuiPrimitiveTextfieldModule,
177
- TuiTextfieldControllerModule,
178
- TuiAppearance,
179
- TuiIcon,
180
- ...TuiHint,
181
- ],
182
- declarations: [TuiInputCopyComponent, TuiInputCopyDirective],
183
- exports: [
184
- TuiInputCopyComponent,
185
- TuiInputCopyDirective,
186
- TuiTextfieldComponent,
187
- ...TuiHint,
188
- ],
189
- }]
190
- }] });
191
-
192
- /**
193
- * Generated bundle index. Do not edit.
194
- */
195
-
196
- export { TUI_INPUT_COPY_DEFAULT_OPTIONS, TUI_INPUT_COPY_OPTIONS, TuiInputCopyComponent, TuiInputCopyDirective, TuiInputCopyModule, tuiInputCopyOptionsProvider };
197
- //# sourceMappingURL=taiga-ui-legacy-components-input-copy.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-legacy-components-input-copy.mjs","sources":["../../../projects/legacy/components/input-copy/input-copy.options.ts","../../../projects/legacy/components/input-copy/input-copy.component.ts","../../../projects/legacy/components/input-copy/input-copy.template.html","../../../projects/legacy/components/input-copy/input-copy.directive.ts","../../../projects/legacy/components/input-copy/input-copy.module.ts","../../../projects/legacy/components/input-copy/taiga-ui-legacy-components-input-copy.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiHintDirection} from '@taiga-ui/core/directives/hint';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\n/**\n * @deprecated use {@link TuiCopy} with {@link TuiTextfield}\n */\nexport interface TuiInputCopyOptions {\n readonly icon: PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>>;\n readonly messageAppearance: string;\n readonly messageDirection: TuiHintDirection;\n readonly successMessage: PolymorpheusContent;\n}\n\n/**\n * @deprecated use {@link TuiCopy} with {@link TuiTextfield}\n */\nexport const TUI_INPUT_COPY_DEFAULT_OPTIONS: TuiInputCopyOptions = {\n successMessage: '',\n messageDirection: 'bottom-left',\n messageAppearance: '',\n icon: () => '@tui.copy',\n};\n\n/**\n * @deprecated use {@link TuiCopy} with {@link TuiTextfield}\n */\nexport const TUI_INPUT_COPY_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_INPUT_COPY_OPTIONS' : '',\n {\n factory: () => TUI_INPUT_COPY_DEFAULT_OPTIONS,\n },\n);\n\n/**\n * @deprecated use {@link TuiCopy} with {@link TuiTextfield}\n */\nexport function tuiInputCopyOptionsProvider(\n options: Partial<TuiInputCopyOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_INPUT_COPY_OPTIONS,\n options,\n TUI_INPUT_COPY_DEFAULT_OPTIONS,\n );\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n Input,\n ViewChild,\n} from '@angular/core';\nimport {tuiPure} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiHintDirection} from '@taiga-ui/core/directives/hint';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {TUI_COPY_TEXTS} from '@taiga-ui/kit/tokens';\nimport {AbstractTuiControl, tuiAsControl} from '@taiga-ui/legacy/classes';\nimport {TuiPrimitiveTextfieldComponent} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {\n TUI_TEXTFIELD_SIZE,\n TUI_VALUE_ACCESSOR_PROVIDER,\n} from '@taiga-ui/legacy/directives';\nimport {\n tuiAsFocusableItemAccessor,\n type TuiFocusableElementAccessor,\n type TuiNativeFocusableElement,\n} from '@taiga-ui/legacy/tokens';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\nimport {BehaviorSubject, map, merge, type Observable, of, switchMap, timer} from 'rxjs';\n\nimport {TUI_INPUT_COPY_OPTIONS, type TuiInputCopyOptions} from './input-copy.options';\n\n/**\n * @deprecated use {@link TuiCopy} with {@link TuiTextfield}\n */\n@Component({\n standalone: false,\n selector: 'tui-input-copy',\n templateUrl: './input-copy.template.html',\n styleUrls: ['./input-copy.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n TUI_VALUE_ACCESSOR_PROVIDER,\n tuiAsFocusableItemAccessor(TuiInputCopyComponent),\n tuiAsControl(TuiInputCopyComponent),\n ],\n host: {\n '[attr.data-size]': 'size',\n },\n})\nexport class TuiInputCopyComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly copied$ = new BehaviorSubject<boolean>(false);\n private readonly doc = inject(DOCUMENT);\n private readonly copyTexts$ = inject(TUI_COPY_TEXTS);\n private readonly options = inject(TUI_INPUT_COPY_OPTIONS);\n private readonly textfieldSize = inject(TUI_TEXTFIELD_SIZE);\n\n @Input()\n public successMessage = this.options.successMessage;\n\n @Input()\n public messageDirection: TuiHintDirection = this.options.messageDirection;\n\n @Input()\n public messageAppearance = this.options.messageAppearance;\n\n public get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.computedDisabled || !this.textfield\n ? null\n : this.textfield.nativeFocusableElement;\n }\n\n public get focused(): boolean {\n return !!this.textfield?.focused;\n }\n\n public onValueChange(value: string): void {\n this.value = value;\n }\n\n @tuiPure\n protected get hintText$(): Observable<PolymorpheusContent> {\n return this.copyTexts$.pipe(\n switchMap((texts) =>\n this.copied$.pipe(\n switchMap((copied) => {\n if (!copied) {\n return of(texts[0]);\n }\n\n this.copied$.next(false);\n\n return merge(\n of(this.successMessage || texts[1]),\n timer(3000).pipe(map(() => texts[0])),\n );\n }),\n ),\n ),\n );\n }\n\n protected get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n protected get icon(): TuiInputCopyOptions['icon'] {\n return this.options.icon;\n }\n\n protected onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n protected copy(): void {\n if (!this.textfield?.nativeFocusableElement) {\n return;\n }\n\n this.textfield.nativeFocusableElement.select();\n this.doc.execCommand('copy');\n this.copied$.next(true);\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","<tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"!disabled ? iconContent : ''\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n</tui-primitive-textfield>\n\n<ng-template #iconContent>\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n automation-id=\"tui-copy__icon\"\n tuiAppearance=\"icon\"\n class=\"t-icon\"\n [class.t-icon_small]=\"size === 's'\"\n [icon]=\"src.toString()\"\n [tuiAppearanceState]=\"!value ? 'disabled' : null\"\n [tuiHint]=\"hint\"\n [tuiHintAppearance]=\"messageAppearance\"\n [tuiHintDirection]=\"messageDirection\"\n (click)=\"copy()\"\n />\n</ng-template>\n\n<ng-template #hint>\n <ng-container *polymorpheusOutlet=\"hintText$ | async as text\">\n {{ text }}\n </ng-container>\n</ng-template>\n","import {Directive} from '@angular/core';\nimport {AbstractTuiTextfieldHost} from '@taiga-ui/legacy/classes';\nimport {tuiAsTextfieldHost} from '@taiga-ui/legacy/tokens';\n\nimport {type TuiInputCopyComponent} from './input-copy.component';\n\n/**\n * @deprecated use {@link TuiCopy} with {@link TuiTextfield}\n */\n@Directive({\n standalone: false,\n selector: 'tui-input-copy',\n providers: [tuiAsTextfieldHost(TuiInputCopyDirective)],\n})\nexport class TuiInputCopyDirective extends AbstractTuiTextfieldHost<TuiInputCopyComponent> {\n public onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TuiAppearance} from '@taiga-ui/core/directives/appearance';\nimport {TuiHint} from '@taiga-ui/core/directives/hint';\nimport {\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {TuiTextfieldControllerModule} from '@taiga-ui/legacy/directives';\nimport {PolymorpheusOutlet, PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\n\nimport {TuiInputCopyComponent} from './input-copy.component';\nimport {TuiInputCopyDirective} from './input-copy.directive';\n\n/**\n * @deprecated use {@link TuiCopy} with {@link TuiTextfield}\n */\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusOutlet,\n PolymorpheusTemplate,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiAppearance,\n TuiIcon,\n ...TuiHint,\n ],\n declarations: [TuiInputCopyComponent, TuiInputCopyDirective],\n exports: [\n TuiInputCopyComponent,\n TuiInputCopyDirective,\n TuiTextfieldComponent,\n ...TuiHint,\n ],\n})\nexport class TuiInputCopyModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i6","i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAiBA;;AAEG;AACI,MAAM,8BAA8B,GAAwB;AAC/D,IAAA,cAAc,EAAE,EAAE;AAClB,IAAA,gBAAgB,EAAE,aAAa;AAC/B,IAAA,iBAAiB,EAAE,EAAE;AACrB,IAAA,IAAI,EAAE,MAAM,WAAW;;AAG3B;;AAEG;AACI,MAAM,sBAAsB,GAAG,IAAI,cAAc,CACpD,SAAS,GAAG,wBAAwB,GAAG,EAAE,EACzC;AACI,IAAA,OAAO,EAAE,MAAM,8BAA8B;AAChD,CAAA;AAGL;;AAEG;AACG,SAAU,2BAA2B,CACvC,OAAqC,EAAA;IAErC,OAAO,iBAAiB,CACpB,sBAAsB,EACtB,OAAO,EACP,8BAA8B,CACjC;AACL;;ACpBA;;AAEG;AAgBG,MAAO,qBACT,SAAQ,kBAA0B,CAAA;AAhBtC,IAAA,WAAA,GAAA;;AAsBqB,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,eAAe,CAAU,KAAK,CAAC;AAC7C,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;AACtB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,cAAc,CAAC;AACnC,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,sBAAsB,CAAC;AACxC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAGpD,QAAA,IAAA,CAAA,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc;AAG5C,QAAA,IAAA,CAAA,gBAAgB,G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