@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.
- package/README.md +1 -1
- package/components/dialog/dialog.service.d.ts +1 -1
- package/components/dialog/dialog.tokens.d.ts +1 -3
- package/components/index.d.ts +0 -17
- package/components/mobile-dialog/mobile-dialog.options.d.ts +1 -3
- package/components/mobile-dialog/mobile-dialog.service.d.ts +1 -1
- package/components/pdf-viewer/pdf-viewer.options.d.ts +1 -3
- package/components/pdf-viewer/pdf-viewer.service.d.ts +1 -1
- package/fesm2022/taiga-ui-legacy-components-dialog.mjs +14 -19
- package/fesm2022/taiga-ui-legacy-components-dialog.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-mobile-dialog.mjs +11 -16
- package/fesm2022/taiga-ui-legacy-components-mobile-dialog.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs +13 -18
- package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components.mjs +0 -17
- package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy.mjs +0 -4
- package/fesm2022/taiga-ui-legacy.mjs.map +1 -1
- package/index.d.ts +0 -4
- package/package.json +12 -114
- package/classes/abstract-native-select.d.ts +0 -22
- package/classes/abstract-textfield-host.d.ts +0 -19
- package/classes/control.d.ts +0 -60
- package/classes/controller.d.ts +0 -9
- package/classes/index.d.ts +0 -9
- package/classes/interactive.d.ts +0 -34
- package/classes/multiple-control.d.ts +0 -11
- package/classes/named-day.d.ts +0 -11
- package/classes/nullable-control.d.ts +0 -10
- package/classes/stringifiable-item.d.ts +0 -11
- package/components/arrow/arrow.component.d.ts +0 -17
- package/components/arrow/arrow.options.d.ts +0 -19
- package/components/arrow/arrow.providers.d.ts +0 -23
- package/components/arrow/index.d.ts +0 -3
- package/components/input/index.d.ts +0 -3
- package/components/input/input.component.d.ts +0 -32
- package/components/input/input.directive.d.ts +0 -12
- package/components/input/input.module.d.ts +0 -16
- package/components/input-date-range/index.d.ts +0 -3
- package/components/input-date-range/input-date-range.component.d.ts +0 -66
- package/components/input-date-range/input-date-range.directive.d.ts +0 -16
- package/components/input-date-range/input-date-range.module.d.ts +0 -21
- package/components/input-date-time/index.d.ts +0 -3
- package/components/input-date-time/input-date-time.component.d.ts +0 -87
- package/components/input-date-time/input-date-time.directive.d.ts +0 -17
- package/components/input-date-time/input-date-time.module.d.ts +0 -23
- package/components/input-date-time/native-date-time/native-date-time.directive.d.ts +0 -13
- package/components/input-month-range/index.d.ts +0 -3
- package/components/input-month-range/input-month-range.component.d.ts +0 -38
- package/components/input-month-range/input-month-range.directive.d.ts +0 -23
- package/components/input-month-range/input-month-range.module.d.ts +0 -18
- package/components/input-number/index.d.ts +0 -4
- package/components/input-number/input-number.component.d.ts +0 -62
- package/components/input-number/input-number.directive.d.ts +0 -16
- package/components/input-number/input-number.module.d.ts +0 -18
- package/components/input-number/input-number.options.d.ts +0 -29
- package/components/input-range/index.d.ts +0 -2
- package/components/input-range/input-range.component.d.ts +0 -56
- package/components/input-range/input-range.module.d.ts +0 -19
- package/components/input-slider/index.d.ts +0 -2
- package/components/input-slider/input-slider.component.d.ts +0 -42
- package/components/input-slider/input-slider.module.d.ts +0 -18
- package/components/input-tag/index.d.ts +0 -3
- package/components/input-tag/input-tag.component.d.ts +0 -103
- package/components/input-tag/input-tag.module.d.ts +0 -22
- package/components/input-tag/input-tag.options.d.ts +0 -27
- package/components/multi-select/hide-selected.pipe.d.ts +0 -11
- package/components/multi-select/index.d.ts +0 -10
- package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +0 -23
- package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +0 -8
- package/components/multi-select/multi-select.component.d.ts +0 -71
- package/components/multi-select/multi-select.directive.d.ts +0 -14
- package/components/multi-select/multi-select.module.d.ts +0 -30
- package/components/multi-select/multi-select.options.d.ts +0 -14
- package/components/multi-select/native-multi-select/native-multi-select-group.component.d.ts +0 -9
- package/components/multi-select/native-multi-select/native-multi-select.component.d.ts +0 -8
- package/components/multi-select/native-multi-select/native-multi-select.d.ts +0 -11
- package/components/multi-select-option/index.d.ts +0 -2
- package/components/multi-select-option/multi-select-option.component.d.ts +0 -9
- package/components/multi-select-option/multi-select-option.module.d.ts +0 -9
- package/components/primitive-textfield/index.d.ts +0 -7
- package/components/primitive-textfield/primitive-textfield-options.d.ts +0 -21
- package/components/primitive-textfield/primitive-textfield-types.d.ts +0 -11
- package/components/primitive-textfield/primitive-textfield.component.d.ts +0 -73
- package/components/primitive-textfield/primitive-textfield.directive.d.ts +0 -14
- package/components/primitive-textfield/primitive-textfield.module.d.ts +0 -21
- package/components/primitive-textfield/textfield/textfield.component.d.ts +0 -13
- package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +0 -22
- package/components/select/index.d.ts +0 -6
- package/components/select/native-select/native-select-group.component.d.ts +0 -17
- package/components/select/native-select/native-select.component.d.ts +0 -16
- package/components/select/select.component.d.ts +0 -45
- package/components/select/select.directive.d.ts +0 -16
- package/components/select/select.module.d.ts +0 -24
- package/components/select/select.options.d.ts +0 -25
- package/components/select-option/index.d.ts +0 -2
- package/components/select-option/select-option.component.d.ts +0 -27
- package/components/select-option/select-option.module.d.ts +0 -10
- package/components/tag/index.d.ts +0 -3
- package/components/tag/tag.component.d.ts +0 -44
- package/components/tag/tag.module.d.ts +0 -16
- package/components/tag/tag.options.d.ts +0 -27
- package/components/textarea/index.d.ts +0 -3
- package/components/textarea/textarea.component.d.ts +0 -54
- package/components/textarea/textarea.directive.d.ts +0 -12
- package/components/textarea/textarea.module.d.ts +0 -21
- package/components/tooltip/index.d.ts +0 -2
- package/components/tooltip/tooltip.component.d.ts +0 -12
- package/components/tooltip/tooltip.module.d.ts +0 -13
- package/directives/index.d.ts +0 -5
- package/directives/legacy-dropdown-open-monitor/index.d.ts +0 -1
- package/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.d.ts +0 -11
- package/directives/textfield-controller/index.d.ts +0 -14
- package/directives/textfield-controller/textfield-appearance.directive.d.ts +0 -9
- package/directives/textfield-controller/textfield-cleaner.directive.d.ts +0 -9
- package/directives/textfield-controller/textfield-controller.module.d.ts +0 -17
- package/directives/textfield-controller/textfield-controller.provider.d.ts +0 -4
- package/directives/textfield-controller/textfield-custom-content.directive.d.ts +0 -10
- package/directives/textfield-controller/textfield-filler.directive.d.ts +0 -9
- package/directives/textfield-controller/textfield-icon-left.directive.d.ts +0 -12
- package/directives/textfield-controller/textfield-icon.directive.d.ts +0 -12
- package/directives/textfield-controller/textfield-label-outside.directive.d.ts +0 -9
- package/directives/textfield-controller/textfield-postfix.directive.d.ts +0 -9
- package/directives/textfield-controller/textfield-prefix.directive.d.ts +0 -9
- package/directives/textfield-controller/textfield-size.directive.d.ts +0 -10
- package/directives/textfield-controller/textfield.controller.d.ts +0 -41
- package/directives/textfield-controller/textfield.options.d.ts +0 -19
- package/directives/unfinished-validator/index.d.ts +0 -2
- package/directives/unfinished-validator/unfinished-validator.directive.d.ts +0 -10
- package/directives/unfinished-validator/unfinished.validator.d.ts +0 -4
- package/directives/value-accessor/index.d.ts +0 -3
- package/directives/value-accessor/value-accessor.directive.d.ts +0 -5
- package/directives/value-accessor/value-accessor.module.d.ts +0 -7
- package/directives/value-accessor/value-accessor.provider.d.ts +0 -2
- package/directives/wrapper/README.md +0 -19
- package/directives/wrapper/index.d.ts +0 -2
- package/directives/wrapper/wrapper.directive.d.ts +0 -22
- package/directives/wrapper/wrapper.module.d.ts +0 -10
- package/fesm2022/taiga-ui-legacy-classes.mjs +0 -413
- package/fesm2022/taiga-ui-legacy-classes.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-arrow.mjs +0 -85
- package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +0 -346
- package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +0 -459
- package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +0 -221
- package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-number.mjs +0 -383
- package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-range.mjs +0 -261
- package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +0 -199
- package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +0 -524
- package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input.mjs +0 -156
- package/fesm2022/taiga-ui-legacy-components-input.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +0 -47
- package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +0 -686
- package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +0 -454
- package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-select-option.mjs +0 -88
- package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-select.mjs +0 -353
- package/fesm2022/taiga-ui-legacy-components-select.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-tag.mjs +0 -225
- package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-textarea.mjs +0 -262
- package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +0 -53
- package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +0 -49
- package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +0 -401
- package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +0 -48
- package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +0 -44
- package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs +0 -99
- package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-directives.mjs +0 -10
- package/fesm2022/taiga-ui-legacy-directives.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-tokens.mjs +0 -384
- package/fesm2022/taiga-ui-legacy-tokens.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-utils.mjs +0 -262
- package/fesm2022/taiga-ui-legacy-utils.mjs.map +0 -1
- package/styles/mixins/mixins.less +0 -239
- package/styles/mixins/mixins.scss +0 -224
- package/styles/mixins/textfield.less +0 -324
- package/styles/mixins/textfield.scss +0 -308
- package/styles/taiga-ui-local.less +0 -3
- package/styles/taiga-ui-local.scss +0 -3
- package/tokens/countries-masks.d.ts +0 -9
- package/tokens/focusable-item-accessor.d.ts +0 -25
- package/tokens/fonts-ready.d.ts +0 -6
- package/tokens/icons.d.ts +0 -6
- package/tokens/index.d.ts +0 -14
- package/tokens/is-apple.d.ts +0 -6
- package/tokens/is-chromium.d.ts +0 -6
- package/tokens/is-firefox.d.ts +0 -6
- package/tokens/is-stackblitz.d.ts +0 -5
- package/tokens/month-formatter.d.ts +0 -10
- package/tokens/sanitizer.d.ts +0 -6
- package/tokens/textfield-appearance.d.ts +0 -7
- package/tokens/textfield-host.d.ts +0 -23
- package/tokens/touch-supported.d.ts +0 -5
- package/tokens/value-accessor.d.ts +0 -7
- package/utils/capitalize-first-letter.d.ts +0 -4
- package/utils/date-mode-maskito-adapter.d.ts +0 -6
- package/utils/format-phone.d.ts +0 -30
- package/utils/get-border.d.ts +0 -5
- package/utils/get-max-allowed-phone-length.d.ts +0 -24
- package/utils/get-safe-area-size.d.ts +0 -7
- package/utils/icons-path-factory.d.ts +0 -13
- package/utils/index.d.ts +0 -13
- package/utils/is-presumed-html-string.d.ts +0 -4
- package/utils/iso-to-country-code.d.ts +0 -13
- package/utils/not-kz-region.d.ts +0 -20
- package/utils/process-icon.d.ts +0 -4
- package/utils/specific-dropdown-controllers.d.ts +0 -4
- 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,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;
|
package/tokens/fonts-ready.d.ts
DELETED
package/tokens/icons.d.ts
DELETED
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';
|
package/tokens/is-apple.d.ts
DELETED
package/tokens/is-chromium.d.ts
DELETED
package/tokens/is-firefox.d.ts
DELETED
|
@@ -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;
|
package/tokens/sanitizer.d.ts
DELETED
|
@@ -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,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>;
|
package/utils/format-phone.d.ts
DELETED
|
@@ -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;
|
package/utils/get-border.d.ts
DELETED
|
@@ -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,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,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;
|
package/utils/not-kz-region.d.ts
DELETED
|
@@ -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;
|
package/utils/process-icon.d.ts
DELETED
package/utils/status.d.ts
DELETED