@taiga-ui/core 4.52.0-canary.ca43bcb → 4.52.0-canary.e07790b

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 (123) hide show
  1. package/classes/accessors.d.ts +1 -1
  2. package/components/calendar/calendar-sheet.component.d.ts +1 -1
  3. package/components/calendar/calendar-sheet.pipe.d.ts +1 -1
  4. package/components/calendar/calendar.options.d.ts +9 -0
  5. package/components/calendar/index.d.ts +1 -0
  6. package/components/calendar/order-week-days.pipe.d.ts +1 -1
  7. package/components/data-list/data-list.d.ts +2 -1
  8. package/components/data-list/data-list.tokens.d.ts +0 -18
  9. package/components/data-list/index.d.ts +3 -2
  10. package/components/data-list/option-with-value.directive.d.ts +9 -0
  11. package/components/data-list/{option/option.directive.d.ts → option.directive.d.ts} +3 -10
  12. package/components/icon/icon.component.d.ts +2 -2
  13. package/components/input/input.d.ts +4 -1
  14. package/components/label/label.directive.d.ts +1 -1
  15. package/components/link/index.d.ts +0 -1
  16. package/components/link/link.directive.d.ts +8 -6
  17. package/components/scrollbar/scroll-ref.directive.d.ts +2 -0
  18. package/components/scrollbar/scrollbar.component.d.ts +1 -5
  19. package/components/spin-button/spin-button.component.d.ts +1 -1
  20. package/components/textfield/textfield-multi/textfield-multi.component.d.ts +2 -2
  21. package/directives/items-handlers/items-handlers.directive.d.ts +5 -9
  22. package/directives/items-handlers/items-handlers.tokens.d.ts +4 -4
  23. package/fesm2022/taiga-ui-core-classes.mjs +3 -3
  24. package/fesm2022/taiga-ui-core-classes.mjs.map +1 -1
  25. package/fesm2022/taiga-ui-core-components-button.mjs +7 -7
  26. package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
  27. package/fesm2022/taiga-ui-core-components-calendar.mjs +36 -30
  28. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  29. package/fesm2022/taiga-ui-core-components-cell.mjs +7 -7
  30. package/fesm2022/taiga-ui-core-components-cell.mjs.map +1 -1
  31. package/fesm2022/taiga-ui-core-components-data-list.mjs +84 -93
  32. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  33. package/fesm2022/taiga-ui-core-components-error.mjs +9 -9
  34. package/fesm2022/taiga-ui-core-components-expand.mjs +3 -3
  35. package/fesm2022/taiga-ui-core-components-icon.mjs +8 -8
  36. package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
  37. package/fesm2022/taiga-ui-core-components-input.mjs +17 -8
  38. package/fesm2022/taiga-ui-core-components-input.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-core-components-label.mjs +10 -12
  40. package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
  41. package/fesm2022/taiga-ui-core-components-link.mjs +13 -24
  42. package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
  43. package/fesm2022/taiga-ui-core-components-loader.mjs +3 -3
  44. package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
  45. package/fesm2022/taiga-ui-core-components-notification.mjs +19 -21
  46. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-core-components-root.mjs +4 -4
  48. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +42 -47
  50. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-core-components-spin-button.mjs +5 -5
  52. package/fesm2022/taiga-ui-core-components-spin-button.mjs.map +1 -1
  53. package/fesm2022/taiga-ui-core-components-textfield.mjs +35 -33
  54. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  55. package/fesm2022/taiga-ui-core-components-title.mjs +6 -6
  56. package/fesm2022/taiga-ui-core-directives-appearance.mjs +10 -10
  57. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  58. package/fesm2022/taiga-ui-core-directives-date-format.mjs +3 -3
  59. package/fesm2022/taiga-ui-core-directives-group.mjs +7 -7
  60. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  61. package/fesm2022/taiga-ui-core-directives-icons.mjs +9 -9
  62. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +15 -36
  63. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-core-directives-number-format.mjs +3 -3
  65. package/fesm2022/taiga-ui-core-pipes-format-number.mjs +3 -3
  66. package/fesm2022/taiga-ui-core-portals-alert.mjs +10 -10
  67. package/fesm2022/taiga-ui-core-portals-alert.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-core-portals-dialog.mjs +12 -12
  69. package/fesm2022/taiga-ui-core-portals-dropdown.mjs +54 -54
  70. package/fesm2022/taiga-ui-core-portals-dropdown.mjs.map +1 -1
  71. package/fesm2022/taiga-ui-core-portals-hint.mjs +54 -54
  72. package/fesm2022/taiga-ui-core-portals-hint.mjs.map +1 -1
  73. package/fesm2022/taiga-ui-core-portals-modal.mjs +8 -8
  74. package/fesm2022/taiga-ui-core-portals-modal.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-core-portals-popup.mjs +9 -9
  76. package/fesm2022/taiga-ui-core-services.mjs +15 -34
  77. package/fesm2022/taiga-ui-core-services.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-core-tokens.mjs +4 -28
  79. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs +13 -4
  81. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-core.mjs +0 -1
  83. package/fesm2022/taiga-ui-core.mjs.map +1 -1
  84. package/index.d.ts +0 -1
  85. package/package.json +57 -62
  86. package/portals/hint/hint-position.directive.d.ts +3 -3
  87. package/portals/hint/hint.directive.d.ts +1 -1
  88. package/services/index.d.ts +0 -1
  89. package/styles/components/appearance.less +5 -0
  90. package/styles/components/button.less +1 -1
  91. package/styles/components/link.less +8 -23
  92. package/styles/components/notification.less +4 -4
  93. package/styles/components/textfield.less +32 -64
  94. package/styles/mixins/appearance.less +9 -25
  95. package/styles/mixins/appearance.scss +8 -24
  96. package/styles/taiga-ui-local.less +0 -1
  97. package/styles/taiga-ui-local.scss +0 -1
  98. package/styles/taiga-ui-theme.less +0 -1
  99. package/styles/theme/appearance/outline.less +9 -18
  100. package/styles/theme/appearance/primary.less +2 -4
  101. package/styles/theme/appearance/secondary.less +6 -14
  102. package/styles/theme/appearance/status.less +0 -4
  103. package/styles/theme/appearance/table.less +38 -31
  104. package/styles/theme/appearance.less +0 -1
  105. package/tokens/common-icons.d.ts +2 -0
  106. package/tokens/index.d.ts +0 -4
  107. package/types/point.d.ts +1 -1
  108. package/utils/miscellaneous/font-scaling.d.ts +2 -1
  109. package/animations/animations.d.ts +0 -109
  110. package/animations/index.d.ts +0 -1
  111. package/components/link/link.options.d.ts +0 -10
  112. package/fesm2022/taiga-ui-core-animations.mjs +0 -370
  113. package/fesm2022/taiga-ui-core-animations.mjs.map +0 -1
  114. package/services/dark-theme.service.d.ts +0 -10
  115. package/styles/mixins/wrapper.less +0 -64
  116. package/styles/mixins/wrapper.scss +0 -61
  117. package/styles/theme/appearance/opposite.less +0 -17
  118. package/styles/theme/wrapper.less +0 -211
  119. package/tokens/day-type-handler.d.ts +0 -7
  120. package/tokens/first-day-of-week.d.ts +0 -5
  121. package/tokens/scroll-ref.d.ts +0 -2
  122. package/tokens/spin-icons.d.ts +0 -6
  123. /package/components/data-list/{option/option-content.d.ts → option-content.directive.d.ts} +0 -0
@@ -1,211 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- /**
4
- * TODO: Drop in v.5
5
- * @deprecated use appearance instead
6
- */
7
- [tuiWrapper] {
8
- .transition(~'color, background, opacity');
9
-
10
- position: relative;
11
- display: block;
12
- block-size: 100%;
13
- inline-size: 100%;
14
- appearance: none;
15
- border-radius: inherit;
16
-
17
- .wrapper-disabled({
18
- pointer-events: none;
19
- opacity: var(--tui-disabled-opacity);
20
- });
21
- }
22
-
23
- [tuiWrapper][data-appearance='textfield'] {
24
- .transition(~'box-shadow, background');
25
-
26
- background: var(--tui-background-base);
27
- color: var(--tui-text-primary);
28
- outline: none !important;
29
- box-shadow: 0 0.125rem 0.1875rem rgba(0, 0, 0, 0.1);
30
-
31
- &::after {
32
- .transition(color);
33
- .fullsize(absolute, inset);
34
-
35
- content: '';
36
- border-radius: inherit;
37
- border: 1px solid currentColor;
38
- pointer-events: none;
39
- color: var(--tui-border-normal);
40
- }
41
-
42
- .wrapper-hover({
43
- box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.16);
44
- });
45
-
46
- .wrapper-focus({
47
- box-shadow: none;
48
-
49
- &:after {
50
- border-width: 2px;
51
- color: var(--tui-background-accent-1);
52
- }
53
- });
54
-
55
- .wrapper-readonly({
56
- box-shadow: none;
57
- background: transparent;
58
-
59
- &:after {
60
- color: var(--tui-border-normal);
61
- }
62
- });
63
-
64
- .wrapper-disabled({
65
- box-shadow: none;
66
- });
67
-
68
- .wrapper-invalid({
69
- &:after {
70
- color: var(--tui-text-negative);
71
- }
72
- });
73
- }
74
-
75
- [tuiTheme='dark'][tuiWrapper][data-appearance='textfield'],
76
- [tuiTheme='dark'] [tuiWrapper][data-appearance='textfield'] {
77
- background: var(--tui-background-neutral-1);
78
-
79
- .wrapper-hover({
80
- background: var(--tui-background-neutral-1-hover);
81
- });
82
-
83
- .wrapper-focus({
84
- background: transparent;
85
- });
86
- }
87
-
88
- /* stylelint-disable order/order */
89
- [tuiWrapper][data-appearance='table'] {
90
- border-radius: 0;
91
- background: transparent;
92
- color: var(--tui-text-primary);
93
- outline: none !important;
94
-
95
- /* stylelint-disable meowtec/no-px */
96
- &::before,
97
- &[data-appearance='table']::after {
98
- content: '';
99
- position: fixed;
100
- top: -0.03125rem;
101
- left: -1px;
102
- right: -0.03125rem;
103
- bottom: -1px;
104
- }
105
- /* stylelint-enable meowtec/no-px */
106
-
107
- &::before {
108
- .transition(background);
109
-
110
- z-index: -1;
111
- background-repeat: no-repeat;
112
- background-position: top right;
113
- background-size: 0.5rem 0.5rem;
114
- }
115
-
116
- &[data-appearance='table']::after {
117
- border: 1px solid currentColor;
118
- border-radius: inherit;
119
- pointer-events: none;
120
- color: var(--tui-border-normal);
121
- }
122
-
123
- .wrapper-hover({
124
- &:not(._focused):before {
125
- background-color: var(--tui-background-neutral-1);
126
- }
127
- });
128
-
129
- .wrapper-focus({
130
- background: transparent;
131
-
132
- &:after {
133
- border-width: 2px;
134
- color: var(--tui-border-focus);
135
- }
136
- });
137
-
138
- .wrapper-invalid({
139
- &:before {
140
- background-image: linear-gradient(to top right, transparent 0%, transparent 50%, var(--tui-status-negative) 50%, var(--tui-status-negative) 100%);
141
- }
142
-
143
- &:not(._focused):before {
144
- background-color: var(--tui-status-negative-pale);
145
- }
146
-
147
- .wrapper-hover({
148
- &:not(._focused):before {
149
- background-color: var(--tui-status-negative-pale-hover);
150
- }
151
- });
152
-
153
- .wrapper-disabled({
154
- background: transparent;
155
- });
156
-
157
- .wrapper-focus({
158
- background: transparent;
159
-
160
- --tui-border-focus: var(--tui-status-negative);
161
-
162
- &:after {
163
- border-width: 1px;
164
- }
165
- });
166
- });
167
- }
168
-
169
- table [tuiWrapper][data-appearance='table'] {
170
- &[data-appearance='table']:not(._focused)::after {
171
- border-width: 0;
172
- }
173
-
174
- &._focused {
175
- z-index: 1;
176
- }
177
- }
178
-
179
- [tuiWrapper][data-appearance='icon'] {
180
- color: var(--tui-text-tertiary);
181
-
182
- [tuiWrapper]:not([data-state='readonly']):hover .t-textfield-icon &:not([data-state='disabled']) {
183
- color: var(--tui-text-secondary);
184
- }
185
-
186
- .wrapper-hover({
187
- color: var(--tui-text-secondary);
188
- });
189
-
190
- .wrapper-active({
191
- color: var(--tui-text-primary);
192
- });
193
- }
194
-
195
- tui-primitive-textfield:hover:not(._disabled) [tuiAppearance][data-appearance='icon'],
196
- tui-textarea:hover:not(._disabled) [tuiAppearance][data-appearance='icon'],
197
- tui-input-tag:hover:not(._disabled) [tuiAppearance][data-appearance='icon'] {
198
- color: var(--tui-text-secondary);
199
-
200
- .wrapper-active({
201
- color: var(--tui-text-primary);
202
- });
203
- }
204
-
205
- [tuiWrapper][data-appearance='none'] {
206
- outline: none;
207
-
208
- &::after {
209
- border: none;
210
- }
211
- }
@@ -1,7 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { type TuiDay } from '@taiga-ui/cdk/date-time';
3
- import { type TuiHandler } from '@taiga-ui/cdk/types';
4
- /**
5
- * Token for adding data-type attribute to calendar cell
6
- */
7
- export declare const TUI_DAY_TYPE_HANDLER: InjectionToken<TuiHandler<TuiDay, string>>;
@@ -1,5 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * The first day of the week index
4
- */
5
- export declare const TUI_FIRST_DAY_OF_WEEK: InjectionToken<0 | 1 | 2 | 3 | 4 | 5 | 6>;
@@ -1,2 +0,0 @@
1
- import { ElementRef, InjectionToken } from '@angular/core';
2
- export declare const TUI_SCROLL_REF: InjectionToken<ElementRef<HTMLElement>>;
@@ -1,6 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export interface TuiSpinIcons {
3
- readonly decrement: string;
4
- readonly increment: string;
5
- }
6
- export declare const TUI_SPIN_ICONS: InjectionToken<TuiSpinIcons>;