@taiga-ui/legacy 4.52.0-canary.2c75afa → 4.52.0-canary.2d877cf

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 (225) hide show
  1. package/README.md +1 -1
  2. package/components/dialog/dialog.service.d.ts +1 -1
  3. package/components/dialog/dialog.tokens.d.ts +1 -3
  4. package/components/index.d.ts +0 -17
  5. package/components/mobile-dialog/mobile-dialog.options.d.ts +1 -3
  6. package/components/mobile-dialog/mobile-dialog.service.d.ts +1 -1
  7. package/components/pdf-viewer/pdf-viewer.options.d.ts +1 -3
  8. package/components/pdf-viewer/pdf-viewer.service.d.ts +1 -1
  9. package/fesm2022/taiga-ui-legacy-components-dialog.mjs +14 -19
  10. package/fesm2022/taiga-ui-legacy-components-dialog.mjs.map +1 -1
  11. package/fesm2022/taiga-ui-legacy-components-mobile-dialog.mjs +11 -16
  12. package/fesm2022/taiga-ui-legacy-components-mobile-dialog.mjs.map +1 -1
  13. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs +13 -18
  14. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs.map +1 -1
  15. package/fesm2022/taiga-ui-legacy-components.mjs +0 -17
  16. package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -1
  17. package/fesm2022/taiga-ui-legacy.mjs +0 -4
  18. package/fesm2022/taiga-ui-legacy.mjs.map +1 -1
  19. package/index.d.ts +0 -4
  20. package/package.json +12 -114
  21. package/classes/abstract-native-select.d.ts +0 -22
  22. package/classes/abstract-textfield-host.d.ts +0 -19
  23. package/classes/control.d.ts +0 -60
  24. package/classes/controller.d.ts +0 -9
  25. package/classes/index.d.ts +0 -9
  26. package/classes/interactive.d.ts +0 -34
  27. package/classes/multiple-control.d.ts +0 -11
  28. package/classes/named-day.d.ts +0 -11
  29. package/classes/nullable-control.d.ts +0 -10
  30. package/classes/stringifiable-item.d.ts +0 -11
  31. package/components/arrow/arrow.component.d.ts +0 -17
  32. package/components/arrow/arrow.options.d.ts +0 -19
  33. package/components/arrow/arrow.providers.d.ts +0 -23
  34. package/components/arrow/index.d.ts +0 -3
  35. package/components/input/index.d.ts +0 -3
  36. package/components/input/input.component.d.ts +0 -32
  37. package/components/input/input.directive.d.ts +0 -12
  38. package/components/input/input.module.d.ts +0 -16
  39. package/components/input-date-range/index.d.ts +0 -3
  40. package/components/input-date-range/input-date-range.component.d.ts +0 -66
  41. package/components/input-date-range/input-date-range.directive.d.ts +0 -16
  42. package/components/input-date-range/input-date-range.module.d.ts +0 -21
  43. package/components/input-date-time/index.d.ts +0 -3
  44. package/components/input-date-time/input-date-time.component.d.ts +0 -87
  45. package/components/input-date-time/input-date-time.directive.d.ts +0 -17
  46. package/components/input-date-time/input-date-time.module.d.ts +0 -23
  47. package/components/input-date-time/native-date-time/native-date-time.directive.d.ts +0 -13
  48. package/components/input-month-range/index.d.ts +0 -3
  49. package/components/input-month-range/input-month-range.component.d.ts +0 -38
  50. package/components/input-month-range/input-month-range.directive.d.ts +0 -23
  51. package/components/input-month-range/input-month-range.module.d.ts +0 -18
  52. package/components/input-number/index.d.ts +0 -4
  53. package/components/input-number/input-number.component.d.ts +0 -62
  54. package/components/input-number/input-number.directive.d.ts +0 -16
  55. package/components/input-number/input-number.module.d.ts +0 -18
  56. package/components/input-number/input-number.options.d.ts +0 -29
  57. package/components/input-range/index.d.ts +0 -2
  58. package/components/input-range/input-range.component.d.ts +0 -56
  59. package/components/input-range/input-range.module.d.ts +0 -19
  60. package/components/input-slider/index.d.ts +0 -2
  61. package/components/input-slider/input-slider.component.d.ts +0 -42
  62. package/components/input-slider/input-slider.module.d.ts +0 -18
  63. package/components/input-tag/index.d.ts +0 -3
  64. package/components/input-tag/input-tag.component.d.ts +0 -103
  65. package/components/input-tag/input-tag.module.d.ts +0 -22
  66. package/components/input-tag/input-tag.options.d.ts +0 -27
  67. package/components/multi-select/hide-selected.pipe.d.ts +0 -11
  68. package/components/multi-select/index.d.ts +0 -10
  69. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +0 -23
  70. package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +0 -8
  71. package/components/multi-select/multi-select.component.d.ts +0 -71
  72. package/components/multi-select/multi-select.directive.d.ts +0 -14
  73. package/components/multi-select/multi-select.module.d.ts +0 -30
  74. package/components/multi-select/multi-select.options.d.ts +0 -14
  75. package/components/multi-select/native-multi-select/native-multi-select-group.component.d.ts +0 -9
  76. package/components/multi-select/native-multi-select/native-multi-select.component.d.ts +0 -8
  77. package/components/multi-select/native-multi-select/native-multi-select.d.ts +0 -11
  78. package/components/multi-select-option/index.d.ts +0 -2
  79. package/components/multi-select-option/multi-select-option.component.d.ts +0 -9
  80. package/components/multi-select-option/multi-select-option.module.d.ts +0 -9
  81. package/components/primitive-textfield/index.d.ts +0 -7
  82. package/components/primitive-textfield/primitive-textfield-options.d.ts +0 -21
  83. package/components/primitive-textfield/primitive-textfield-types.d.ts +0 -11
  84. package/components/primitive-textfield/primitive-textfield.component.d.ts +0 -73
  85. package/components/primitive-textfield/primitive-textfield.directive.d.ts +0 -14
  86. package/components/primitive-textfield/primitive-textfield.module.d.ts +0 -21
  87. package/components/primitive-textfield/textfield/textfield.component.d.ts +0 -13
  88. package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +0 -22
  89. package/components/select/index.d.ts +0 -6
  90. package/components/select/native-select/native-select-group.component.d.ts +0 -17
  91. package/components/select/native-select/native-select.component.d.ts +0 -16
  92. package/components/select/select.component.d.ts +0 -45
  93. package/components/select/select.directive.d.ts +0 -16
  94. package/components/select/select.module.d.ts +0 -24
  95. package/components/select/select.options.d.ts +0 -25
  96. package/components/select-option/index.d.ts +0 -2
  97. package/components/select-option/select-option.component.d.ts +0 -27
  98. package/components/select-option/select-option.module.d.ts +0 -10
  99. package/components/tag/index.d.ts +0 -3
  100. package/components/tag/tag.component.d.ts +0 -44
  101. package/components/tag/tag.module.d.ts +0 -16
  102. package/components/tag/tag.options.d.ts +0 -27
  103. package/components/textarea/index.d.ts +0 -3
  104. package/components/textarea/textarea.component.d.ts +0 -54
  105. package/components/textarea/textarea.directive.d.ts +0 -12
  106. package/components/textarea/textarea.module.d.ts +0 -21
  107. package/components/tooltip/index.d.ts +0 -2
  108. package/components/tooltip/tooltip.component.d.ts +0 -12
  109. package/components/tooltip/tooltip.module.d.ts +0 -13
  110. package/directives/index.d.ts +0 -5
  111. package/directives/legacy-dropdown-open-monitor/index.d.ts +0 -1
  112. package/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.d.ts +0 -11
  113. package/directives/textfield-controller/index.d.ts +0 -14
  114. package/directives/textfield-controller/textfield-appearance.directive.d.ts +0 -9
  115. package/directives/textfield-controller/textfield-cleaner.directive.d.ts +0 -9
  116. package/directives/textfield-controller/textfield-controller.module.d.ts +0 -17
  117. package/directives/textfield-controller/textfield-controller.provider.d.ts +0 -4
  118. package/directives/textfield-controller/textfield-custom-content.directive.d.ts +0 -10
  119. package/directives/textfield-controller/textfield-filler.directive.d.ts +0 -9
  120. package/directives/textfield-controller/textfield-icon-left.directive.d.ts +0 -12
  121. package/directives/textfield-controller/textfield-icon.directive.d.ts +0 -12
  122. package/directives/textfield-controller/textfield-label-outside.directive.d.ts +0 -9
  123. package/directives/textfield-controller/textfield-postfix.directive.d.ts +0 -9
  124. package/directives/textfield-controller/textfield-prefix.directive.d.ts +0 -9
  125. package/directives/textfield-controller/textfield-size.directive.d.ts +0 -10
  126. package/directives/textfield-controller/textfield.controller.d.ts +0 -41
  127. package/directives/textfield-controller/textfield.options.d.ts +0 -19
  128. package/directives/unfinished-validator/index.d.ts +0 -2
  129. package/directives/unfinished-validator/unfinished-validator.directive.d.ts +0 -10
  130. package/directives/unfinished-validator/unfinished.validator.d.ts +0 -4
  131. package/directives/value-accessor/index.d.ts +0 -3
  132. package/directives/value-accessor/value-accessor.directive.d.ts +0 -5
  133. package/directives/value-accessor/value-accessor.module.d.ts +0 -7
  134. package/directives/value-accessor/value-accessor.provider.d.ts +0 -2
  135. package/directives/wrapper/README.md +0 -19
  136. package/directives/wrapper/index.d.ts +0 -2
  137. package/directives/wrapper/wrapper.directive.d.ts +0 -22
  138. package/directives/wrapper/wrapper.module.d.ts +0 -10
  139. package/fesm2022/taiga-ui-legacy-classes.mjs +0 -413
  140. package/fesm2022/taiga-ui-legacy-classes.mjs.map +0 -1
  141. package/fesm2022/taiga-ui-legacy-components-arrow.mjs +0 -85
  142. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +0 -1
  143. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +0 -346
  144. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +0 -1
  145. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +0 -459
  146. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +0 -1
  147. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +0 -221
  148. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +0 -1
  149. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +0 -383
  150. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +0 -1
  151. package/fesm2022/taiga-ui-legacy-components-input-range.mjs +0 -261
  152. package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +0 -1
  153. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +0 -199
  154. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +0 -1
  155. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +0 -524
  156. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +0 -1
  157. package/fesm2022/taiga-ui-legacy-components-input.mjs +0 -156
  158. package/fesm2022/taiga-ui-legacy-components-input.mjs.map +0 -1
  159. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +0 -47
  160. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +0 -1
  161. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +0 -686
  162. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +0 -1
  163. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +0 -454
  164. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +0 -1
  165. package/fesm2022/taiga-ui-legacy-components-select-option.mjs +0 -88
  166. package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +0 -1
  167. package/fesm2022/taiga-ui-legacy-components-select.mjs +0 -353
  168. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +0 -1
  169. package/fesm2022/taiga-ui-legacy-components-tag.mjs +0 -225
  170. package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +0 -1
  171. package/fesm2022/taiga-ui-legacy-components-textarea.mjs +0 -262
  172. package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +0 -1
  173. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +0 -53
  174. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +0 -1
  175. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +0 -49
  176. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +0 -1
  177. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +0 -401
  178. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +0 -1
  179. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +0 -48
  180. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +0 -1
  181. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +0 -44
  182. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs.map +0 -1
  183. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs +0 -99
  184. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs.map +0 -1
  185. package/fesm2022/taiga-ui-legacy-directives.mjs +0 -10
  186. package/fesm2022/taiga-ui-legacy-directives.mjs.map +0 -1
  187. package/fesm2022/taiga-ui-legacy-tokens.mjs +0 -384
  188. package/fesm2022/taiga-ui-legacy-tokens.mjs.map +0 -1
  189. package/fesm2022/taiga-ui-legacy-utils.mjs +0 -262
  190. package/fesm2022/taiga-ui-legacy-utils.mjs.map +0 -1
  191. package/styles/mixins/mixins.less +0 -239
  192. package/styles/mixins/mixins.scss +0 -224
  193. package/styles/mixins/textfield.less +0 -324
  194. package/styles/mixins/textfield.scss +0 -308
  195. package/styles/taiga-ui-local.less +0 -3
  196. package/styles/taiga-ui-local.scss +0 -3
  197. package/tokens/countries-masks.d.ts +0 -9
  198. package/tokens/focusable-item-accessor.d.ts +0 -25
  199. package/tokens/fonts-ready.d.ts +0 -6
  200. package/tokens/icons.d.ts +0 -6
  201. package/tokens/index.d.ts +0 -14
  202. package/tokens/is-apple.d.ts +0 -6
  203. package/tokens/is-chromium.d.ts +0 -6
  204. package/tokens/is-firefox.d.ts +0 -6
  205. package/tokens/is-stackblitz.d.ts +0 -5
  206. package/tokens/month-formatter.d.ts +0 -10
  207. package/tokens/sanitizer.d.ts +0 -6
  208. package/tokens/textfield-appearance.d.ts +0 -7
  209. package/tokens/textfield-host.d.ts +0 -23
  210. package/tokens/touch-supported.d.ts +0 -5
  211. package/tokens/value-accessor.d.ts +0 -7
  212. package/utils/capitalize-first-letter.d.ts +0 -4
  213. package/utils/date-mode-maskito-adapter.d.ts +0 -6
  214. package/utils/format-phone.d.ts +0 -30
  215. package/utils/get-border.d.ts +0 -5
  216. package/utils/get-max-allowed-phone-length.d.ts +0 -24
  217. package/utils/get-safe-area-size.d.ts +0 -7
  218. package/utils/icons-path-factory.d.ts +0 -13
  219. package/utils/index.d.ts +0 -13
  220. package/utils/is-presumed-html-string.d.ts +0 -4
  221. package/utils/iso-to-country-code.d.ts +0 -13
  222. package/utils/not-kz-region.d.ts +0 -20
  223. package/utils/process-icon.d.ts +0 -4
  224. package/utils/specific-dropdown-controllers.d.ts +0 -4
  225. package/utils/status.d.ts +0 -4
@@ -1,308 +0,0 @@
1
- $line-height-l: 1.25rem;
2
-
3
- @mixin textfield-host() {
4
- @include text-basic();
5
- position: relative;
6
- display: block;
7
- text-align: start;
8
- border-radius: var(--tui-radius-m);
9
- height: var(--tui-height);
10
- min-height: var(--tui-height);
11
- max-height: var(--tui-height);
12
-
13
- &[data-size='s'] {
14
- --tui-height: var(--tui-height-s);
15
- font: var(--tui-font-text-s);
16
- }
17
-
18
- &[data-size='m'] {
19
- --tui-height: var(--tui-height-m);
20
- font: var(--tui-font-text-s);
21
- }
22
-
23
- &[data-size='l'] {
24
- --tui-height: var(--tui-height-l);
25
- font: var(--tui-font-text-m);
26
- line-height: 1.25rem;
27
- }
28
- }
29
-
30
- @mixin textfield-content() {
31
- display: flex;
32
- height: 100%;
33
- width: 100%;
34
- box-sizing: border-box;
35
- align-items: center;
36
- overflow: hidden;
37
-
38
- :host[data-size='s'] & {
39
- padding: 0 var(--tui-padding-s);
40
- }
41
-
42
- :host[data-size='m'] & {
43
- padding: 0 var(--tui-padding-m);
44
- }
45
-
46
- :host[data-size='l'] & {
47
- padding: 0 var(--tui-padding-l);
48
- }
49
- }
50
-
51
- @mixin textfield-input() {
52
- @include text-basic();
53
- @include clearinput();
54
- @include fullsize();
55
- border: solid transparent;
56
- border-inline-start-width: var(--t-border-start, 0);
57
- border-inline-end-width: var(--t-border-end, 0);
58
- text-indent: var(--t-text-indent);
59
- text-align: inherit;
60
- box-sizing: border-box;
61
- white-space: nowrap;
62
- overflow: hidden;
63
- text-transform: inherit;
64
- resize: none;
65
-
66
- &[inputMode='none'] {
67
- caret-color: transparent;
68
- }
69
-
70
- /* stylelint-disable */
71
- /* Safari autofill icons */
72
- //noinspection CssInvalidPseudoSelector
73
- &:-webkit-autofill,
74
- &:-webkit-autofill::first-line {
75
- font-size: inherit;
76
- line-height: inherit;
77
- }
78
- /* stylelint-enable */
79
-
80
- //noinspection ALL
81
- &::-webkit-caps-lock-indicator,
82
- &::-webkit-contacts-auto-fill-button,
83
- &::-webkit-credit-card-auto-fill-button,
84
- &::-webkit-credentials-auto-fill-button,
85
- &::-webkit-strong-password-auto-fill-button {
86
- @include webkit-auto-fill-button-hidden();
87
- }
88
-
89
- &::placeholder {
90
- color: var(--tui-text-tertiary);
91
- opacity: 0;
92
- }
93
-
94
- :host._focused:not(._readonly) &::placeholder,
95
- :host-context(tui-primitive-textfield._focused:not(._readonly)) &::placeholder,
96
- :host-context(tui-textarea._focused:not(._readonly)) &::placeholder,
97
- :host-context(tui-text-area._focused:not(._readonly)) &::placeholder {
98
- opacity: 1;
99
- }
100
-
101
- :host[data-size='s'] &,
102
- :host-context(tui-primitive-textfield[data-size='s']):not(tui-primitive-textfield),
103
- :host-context(tui-textarea[data-size='s']):not(tui-textarea),
104
- :host-context(tui-text-area[data-size='s']):not(tui-text-area) {
105
- padding: 0 var(--tui-padding-s);
106
- }
107
-
108
- :host[data-size='m'] &,
109
- :host-context(tui-primitive-textfield[data-size='m']):not(tui-primitive-textfield),
110
- :host-context(tui-textarea[data-size='m']):not(tui-textarea),
111
- :host-context(tui-text-area[data-size='m']):not(tui-text-area) {
112
- padding: 0 var(--tui-padding-m);
113
- }
114
-
115
- :host[data-size='l'] &,
116
- :host-context(tui-primitive-textfield[data-size='l']):not(tui-primitive-textfield),
117
- :host-context(tui-textarea[data-size='l']):not(tui-textarea),
118
- :host-context(tui-text-area[data-size='l']):not(tui-text-area) {
119
- padding: 0 var(--tui-padding-l);
120
- }
121
-
122
- :host._disabled &,
123
- :host-context(tui-primitive-textfield._disabled),
124
- :host-context(tui-textarea._disabled),
125
- :host-context(tui-text-area._disabled) {
126
- // @bad TODO: research why you can reach disabled textfield with mask inside a label without that
127
- pointer-events: none;
128
- }
129
-
130
- :host[data-size='l']:not(._label-outside) &,
131
- :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield) {
132
- padding-block-start: 1.25rem;
133
-
134
- // Workaround for raising placeholder in temporary autofill
135
- &:-webkit-autofill + .t-content .t-placeholder {
136
- font-size: 0.8156rem;
137
- transform: translateY(-0.625rem);
138
- }
139
- }
140
-
141
- :host[data-size='m']:not(._label-outside) &,
142
- :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield) {
143
- padding-block-start: 1rem;
144
-
145
- // Workaround for raising placeholder in temporary autofill
146
- &:-webkit-autofill + .t-content .t-placeholder {
147
- font-size: 0.69rem;
148
- transform: translateY(-0.5rem);
149
- }
150
- }
151
-
152
- :host._hidden input&,
153
- :host-context(tui-primitive-textfield._hidden) {
154
- opacity: 0;
155
- text-indent: -10em; // Hide blinking caret even in IE
156
- -webkit-user-select: none; // Hide blinking caret in mobile safari
157
- }
158
- }
159
-
160
- @mixin textfield-wrapper() {
161
- flex: 1;
162
- min-width: 0;
163
- padding-inline-end: 0.25rem;
164
- }
165
-
166
- @mixin textfield-label() {
167
- @include transition('transform, font-size, color, letter-spacing');
168
- @include text-overflow();
169
- display: block;
170
- width: 100%;
171
- user-select: none;
172
- font: var(--tui-font-text-s);
173
- color: var(--tui-text-secondary);
174
- pointer-events: none;
175
- will-change: transform;
176
- transform: translateY(0);
177
-
178
- &_raised {
179
- transform: translateY(-0.625rem);
180
-
181
- :host[data-size='m'] & {
182
- font: var(--tui-font-text-xs);
183
- line-height: 1.25rem;
184
- transform: translateY(-0.5rem);
185
- letter-spacing: 0.025rem;
186
- }
187
-
188
- :host._invalid:not(._focused) &,
189
- :host._invalid:not(._focused):hover & {
190
- color: var(--tui-text-negative);
191
- }
192
- }
193
-
194
- :host._focused &,
195
- :host[data-size='m']._focused._label-outside &,
196
- :host[data-size='l']._focused._label-outside & {
197
- color: var(--tui-text-tertiary);
198
- }
199
-
200
- :host[data-size='l'] & {
201
- font: var(--tui-font-text-m);
202
- line-height: 1.25rem;
203
-
204
- &_raised {
205
- font-size: 0.8156rem;
206
- }
207
- }
208
-
209
- :host[data-size='m']._focused:not(._label-outside) &,
210
- :host[data-size='l']._focused:not(._label-outside) & {
211
- color: var(--tui-text-primary);
212
- }
213
-
214
- @include safari-only {
215
- & {
216
- will-change: unset;
217
- transition-property: transform, color, letter-spacing;
218
- }
219
- }
220
- }
221
-
222
- @mixin input-icon() {
223
- position: relative;
224
- display: flex;
225
- width: 1.5rem;
226
- height: 1.5rem;
227
- align-items: center;
228
- justify-content: center;
229
- box-sizing: border-box;
230
- cursor: pointer;
231
- pointer-events: none;
232
- }
233
-
234
- @mixin input-icons() {
235
- display: flex;
236
- align-items: center;
237
-
238
- :host[data-size='m'] & {
239
- margin-inline-end: -0.125rem;
240
- }
241
-
242
- :host[data-size='s'] & {
243
- margin-inline-end: -0.375rem;
244
- }
245
-
246
- :host:not([data-size='s']) & > :not(:first-child) {
247
- margin-inline-start: 0.25rem;
248
- }
249
- }
250
-
251
- @mixin icon-button() {
252
- @include input-icon();
253
- pointer-events: auto;
254
-
255
- :host._readonly &,
256
- :host._disabled & {
257
- pointer-events: none;
258
- }
259
- }
260
-
261
- @mixin textfield() {
262
- :host {
263
- @include textfield-host();
264
- }
265
-
266
- .t-input {
267
- @include textfield-input();
268
- }
269
-
270
- .t-content {
271
- @include textfield-content();
272
- }
273
-
274
- .t-wrapper {
275
- @include textfield-wrapper();
276
- }
277
-
278
- .t-placeholder {
279
- @include textfield-label();
280
- }
281
-
282
- .t-cleaner {
283
- @include icon-button();
284
- }
285
-
286
- .t-icon {
287
- @include input-icon();
288
-
289
- &_left {
290
- :host[data-size='s'] & {
291
- margin: 0 0.125rem 0 -0.375rem;
292
- }
293
-
294
- :host[data-size='m'] & {
295
- margin-inline-start: -0.125rem;
296
- margin-inline-end: 0.375rem;
297
- }
298
-
299
- :host[data-size='l'] & {
300
- margin-inline-end: 0.75rem;
301
- }
302
- }
303
- }
304
-
305
- .t-icons {
306
- @include input-icons();
307
- }
308
- }
@@ -1,3 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
- @import 'mixins/mixins.less';
3
- @import 'mixins/textfield.less';
@@ -1,3 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.scss';
2
- @import 'mixins/mixins.scss';
3
- @import 'mixins/textfield.scss';
@@ -1,9 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { type TuiCountryIsoCode } from '@taiga-ui/i18n/types';
3
- /**
4
- * @deprecated: drop in v5.0
5
- * Use new version of {@link https://taiga-ui.dev/components/input-phone-international InputPhoneInternational}.
6
- * The new version is based on Google Open Source solution {@link https://github.com/google/libphonenumber libphonenumber}.
7
- * This token (and all other hard-coded values) and related utils are no more required.
8
- */
9
- export declare const TUI_COUNTRIES_MASKS: InjectionToken<Record<TuiCountryIsoCode, string>>;
@@ -1,25 +0,0 @@
1
- import { InjectionToken, type Provider, type Type } from '@angular/core';
2
- import { type Observable } from 'rxjs';
3
- /**
4
- * @deprecated: drop in v5.0
5
- */
6
- export interface TuiNativeFocusableElement extends Element, HTMLOrSVGElement {
7
- }
8
- /**
9
- * @deprecated: drop in v5.0
10
- * Public interface for any focusable component or directive
11
- */
12
- export interface TuiFocusableElementAccessor {
13
- focused: boolean;
14
- readonly focusedChange: Observable<boolean>;
15
- nativeFocusableElement: TuiNativeFocusableElement | null;
16
- }
17
- /**
18
- * @deprecated: drop in v5.0
19
- * A component that can be focused
20
- */
21
- export declare const TUI_FOCUSABLE_ITEM_ACCESSOR: InjectionToken<TuiFocusableElementAccessor>;
22
- /**
23
- * @deprecated: drop in v5.0
24
- */
25
- export declare function tuiAsFocusableItemAccessor(accessor: Type<TuiFocusableElementAccessor>): Provider;
@@ -1,6 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { type Observable } from 'rxjs';
3
- /**
4
- * @deprecated: drop in v5.0
5
- */
6
- export declare const TUI_FONTS_READY: InjectionToken<Observable<unknown>>;
package/tokens/icons.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * @deprecated: drop in v5.0
4
- * A key/value dictionary of icon names and src to be defined with TuiSvgService
5
- */
6
- export declare const TUI_ICON_STARTS: InjectionToken<Record<string, string>>;
package/tokens/index.d.ts DELETED
@@ -1,14 +0,0 @@
1
- export * from './countries-masks';
2
- export * from './focusable-item-accessor';
3
- export * from './fonts-ready';
4
- export * from './icons';
5
- export * from './is-apple';
6
- export * from './is-chromium';
7
- export * from './is-firefox';
8
- export * from './is-stackblitz';
9
- export * from './month-formatter';
10
- export * from './sanitizer';
11
- export * from './textfield-appearance';
12
- export * from './textfield-host';
13
- export * from './touch-supported';
14
- export * from './value-accessor';
@@ -1,6 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * @deprecated: drop in v5.0
4
- * Apple(safari/webkit) detection
5
- */
6
- export declare const TUI_IS_APPLE: InjectionToken<boolean>;
@@ -1,6 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * @deprecated: drop in v5.0
4
- * Chromium browser engine detection
5
- */
6
- export declare const TUI_IS_CHROMIUM: InjectionToken<boolean>;
@@ -1,6 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * @deprecated: drop in v5.0
4
- * Firefox browser engine detection
5
- */
6
- export declare const TUI_IS_FIREFOX: InjectionToken<boolean>;
@@ -1,5 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * @deprecated: drop in v5.0
4
- */
5
- export declare const TUI_IS_STACKBLITZ: InjectionToken<boolean>;
@@ -1,10 +0,0 @@
1
- import { type FactoryProvider, InjectionToken } from '@angular/core';
2
- import { type TuiMonth } from '@taiga-ui/cdk/date-time';
3
- import { type TuiHandler } from '@taiga-ui/cdk/types';
4
- import { type Observable } from 'rxjs';
5
- /**
6
- * @deprecated: drop in v5.0
7
- * A function to get localized formatted month
8
- */
9
- export declare const TUI_MONTH_FORMATTER: InjectionToken<TuiHandler<TuiMonth | null, Observable<string>>>;
10
- export declare const TUI_MONTH_FORMATTER_PROVIDER: FactoryProvider;
@@ -1,6 +0,0 @@
1
- import { InjectionToken, type Sanitizer } from '@angular/core';
2
- /**
3
- * @deprecated: drop in v5.0
4
- * A custom Sanitizer to sanitize source before inlining
5
- */
6
- export declare const TUI_SANITIZER: InjectionToken<Sanitizer>;
@@ -1,7 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * @deprecated: drop in v5.0
4
- * Appearance for inputs
5
- * use {@link TUI_TEXTFIELD_APPEARANCE_DIRECTIVE} instead
6
- */
7
- export declare const TUI_TEXTFIELD_APPEARANCE: InjectionToken<string>;
@@ -1,23 +0,0 @@
1
- import { InjectionToken, type Provider, type Type } from '@angular/core';
2
- /**
3
- * @deprecated: drop in v5.0
4
- */
5
- export interface TuiTextfieldHost {
6
- readonly disabled: boolean;
7
- readonly focusable: boolean;
8
- readonly inputMode: 'decimal' | 'email' | 'none' | 'numeric' | 'search' | 'tel' | 'text' | 'url';
9
- readonly invalid: boolean;
10
- onValueChange(value: string): void;
11
- process(input: HTMLInputElement): void;
12
- readonly readOnly: boolean;
13
- readonly value: string;
14
- }
15
- /**
16
- * @deprecated: drop in v5.0
17
- * An interface to communicate with textfield based controls
18
- */
19
- export declare const TUI_TEXTFIELD_HOST: InjectionToken<TuiTextfieldHost>;
20
- /**
21
- * @deprecated: drop in v5.0
22
- */
23
- export declare function tuiAsTextfieldHost(host: Type<TuiTextfieldHost>): Provider;
@@ -1,5 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * @deprecated: drop in v5.0
4
- */
5
- export declare const TUI_TOUCH_SUPPORTED: InjectionToken<boolean>;
@@ -1,7 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { type ControlValueAccessor } from '@angular/forms';
3
- /**
4
- * @deprecated: drop in v5.0
5
- * Buffer token to pass NG_VALUE_ACCESSOR to a different Injector
6
- */
7
- export declare const TUI_VALUE_ACCESSOR: InjectionToken<ControlValueAccessor>;
@@ -1,4 +0,0 @@
1
- /**
2
- * @deprecated: drop in v5.0
3
- */
4
- export declare function tuiCapitalizeFirstLetter(value: string): string;
@@ -1,6 +0,0 @@
1
- import { type MaskitoDateMode } from '@maskito/kit';
2
- import { type TuiDateMode } from '@taiga-ui/cdk/date-time';
3
- /**
4
- * @deprecated: drop in v5.0
5
- */
6
- export declare const TUI_DATE_MODE_MASKITO_ADAPTER: Record<TuiDateMode, MaskitoDateMode>;
@@ -1,30 +0,0 @@
1
- /**
2
- * @deprecated: drop in v5.0
3
- * Use {@link https://maskito.dev/core-concepts/transformer maskitoTransform} instead!
4
- * @example
5
- * import {maskitoTransform} from '@maskito/core';
6
- *
7
- * const mask = {
8
- * mask: ['+', '1', ' ', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/],
9
- * };
10
- * maskitoTransform('12125552368', mask); // +1 (212) 555-2368
11
- * ___
12
- * @example
13
- * import {maskitoTransform} from '@maskito/core';
14
- * import {maskitoPhoneOptionsGenerator} from '@maskito/phone';
15
- * import metadata from 'libphonenumber-js/min/metadata';
16
- *
17
- * const options = maskitoPhoneOptionsGenerator({countryIsoCode: 'US', metadata});
18
- *
19
- * maskitoTransform('12125552368', mask); // +1 (212) 555-2368
20
- * ___
21
- * @deprecated Use {@link https://maskito.dev/core-concepts/transformer maskitoTransform} instead<br/>
22
- * Formats a string with the phone format +7XXXXXXXXXXXX or XXXXXXXXXXXX,
23
- * adding parentheses and hyphens.
24
- *
25
- * @param value the input string
26
- * @param countryCode a country code
27
- * @param phoneMask a phone number mask
28
- * @return the formatted phone string of the form +7 XXX XXX-XX-XX
29
- */
30
- export declare function tuiFormatPhone(value: string, countryCode: string, phoneMask: string): string;
@@ -1,5 +0,0 @@
1
- import { type TuiSizeL, type TuiSizeS } from '@taiga-ui/core/types';
2
- /**
3
- * @deprecated: drop in v5.0
4
- */
5
- export declare function tuiGetBorder(hasIcon: boolean, hasCleaner?: boolean, hasTooltip?: boolean, hasContent?: boolean, size?: TuiSizeL | TuiSizeS): number;
@@ -1,24 +0,0 @@
1
- import { type TuiCountryIsoCode } from '@taiga-ui/i18n/types';
2
- /**
3
- * @deprecated: drop in v5.0
4
- * use `validatePhoneNumberLength` from `libphonenumber-js` instead
5
- * ```
6
- * npm i libphonenumber-js
7
- * ```
8
- *
9
- * ```ts
10
- * import {validatePhoneNumberLength} from 'libphonenumber-js';
11
- * import metadata from 'libphonenumber-js/max/metadata';
12
- *
13
- * const validationError = validatePhoneNumberLength(
14
- * '+7 777 777-7777',
15
- * 'KZ'
16
- * ) // undefined | 'INVALID_COUNTRY' | 'NOT_A_NUMBER' | 'TOO_SHORT' | 'TOO_LONG' | 'INVALID_LENGTH';
17
- *
18
- * validatePhoneNumberLength('+7777777', 'KZ'); // 'TOO_SHORT'
19
- * validatePhoneNumberLength('+7 777 777-7777', 'KZ'); // undefined
20
- * validatePhoneNumberLength('+77777777777', 'KZ'); // undefined
21
- * validatePhoneNumberLength('+777777777777777777', 'KZ'); // 'TOO_LONG'
22
- * ```
23
- */
24
- export declare function tuiGetMaxAllowedPhoneLength(countries: Record<TuiCountryIsoCode, string>, isoCode: TuiCountryIsoCode): number;
@@ -1,7 +0,0 @@
1
- /**
2
- * @deprecated: drop in v5.0
3
- * Calculates size of safe area on mobile devices (status bars)
4
- *
5
- * ATTENTION: Only use in browser environment
6
- */
7
- export declare function tuiGetSafeAreaSize(): number;
@@ -1,13 +0,0 @@
1
- import { type TuiStringHandler } from '@taiga-ui/cdk/types';
2
- /**
3
- * @deprecated: drop in v5.0
4
- */
5
- export declare const TUI_CACHE_BUSTING_PAYLOAD: "?v=4.52.0-canary.2c75afa";
6
- /**
7
- * @deprecated: drop in v5.0
8
- */
9
- export declare const DEFAULT_ICONS_PATH: TuiStringHandler<string>;
10
- /**
11
- * @deprecated: drop in v5.0
12
- */
13
- export declare function tuiIconsPathFactory(staticPath: string): TuiStringHandler<string>;
package/utils/index.d.ts DELETED
@@ -1,13 +0,0 @@
1
- export * from './capitalize-first-letter';
2
- export * from './date-mode-maskito-adapter';
3
- export * from './format-phone';
4
- export * from './get-border';
5
- export * from './get-max-allowed-phone-length';
6
- export * from './get-safe-area-size';
7
- export * from './icons-path-factory';
8
- export * from './is-presumed-html-string';
9
- export * from './iso-to-country-code';
10
- export * from './not-kz-region';
11
- export * from './process-icon';
12
- export * from './specific-dropdown-controllers';
13
- export type * from './status';
@@ -1,4 +0,0 @@
1
- /**
2
- * @deprecated: drop in v5.0
3
- */
4
- export declare function tuiIsPresumedHTMLString(candidate: string): boolean;
@@ -1,13 +0,0 @@
1
- import { type TuiCountryIsoCode } from '@taiga-ui/i18n/types';
2
- /**
3
- * @deprecated: drop in v5.0
4
- * Use `getCountryCallingCode` from `libphonenumber-js/core` instead
5
- * ```ts
6
- * import {getCountryCallingCode} from 'libphonenumber-js/core';
7
- * import metadata from 'libphonenumber-js/max/metadata';
8
- *
9
- * getCountryCallingCode('US', metadata) // 1
10
- * getCountryCallingCode('GB', metadata) // 44
11
- * ```
12
- */
13
- export declare function tuiIsoToCountryCode(countriesMasks: Record<TuiCountryIsoCode, string>, isoCode: TuiCountryIsoCode): string;
@@ -1,20 +0,0 @@
1
- /**
2
- * @deprecated: drop in v5.0
3
- * use `maskitoGetCountryFromNumber` from `@maskito/phone` instead
4
- * ```
5
- * npm i @maskito/phone
6
- * ```
7
- *
8
- * ```ts
9
- * import {maskitoGetCountryFromNumber} from '@maskito/phone';
10
- * import metadata from 'libphonenumber-js/max/metadata';
11
- *
12
- * const countryIsoCode = maskitoGetCountryFromNumber(
13
- * '+7 777 777-7777',
14
- * metadata
15
- * );
16
- *
17
- * countryIsoCode !== 'KZ'
18
- * ```
19
- */
20
- export declare function tuiNotKzRegion(value: string): boolean;
@@ -1,4 +0,0 @@
1
- /**
2
- * @deprecated: drop in v5.0
3
- */
4
- export declare function tuiProcessIcon(source: string, name: string): string;
@@ -1,4 +0,0 @@
1
- /**
2
- * @deprecated: drop in v5.0
3
- */
4
- export declare const FIXED_DROPDOWN_CONTROLLER_PROVIDER: import("@angular/core").FactoryProvider;
package/utils/status.d.ts DELETED
@@ -1,4 +0,0 @@
1
- /**
2
- * @deprecated: drop in v5.0
3
- */
4
- export type TuiStatus = 'custom' | 'default' | 'error' | 'info' | 'neutral' | 'primary' | 'success' | 'warning';