igniteui-angular 20.0.1 → 20.0.3

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 (96) hide show
  1. package/fesm2022/igniteui-angular.mjs +193 -27
  2. package/fesm2022/igniteui-angular.mjs.map +1 -1
  3. package/index.d.ts +5000 -4925
  4. package/lib/core/styles/components/_common/_igx-vhelper.scss +1 -0
  5. package/lib/core/styles/components/action-strip/_action-strip-theme.scss +2 -7
  6. package/lib/core/styles/components/avatar/_avatar-theme.scss +7 -8
  7. package/lib/core/styles/components/badge/_badge-theme.scss +3 -8
  8. package/lib/core/styles/components/banner/_banner-theme.scss +6 -7
  9. package/lib/core/styles/components/bottom-nav/_bottom-nav-theme.scss +17 -28
  10. package/lib/core/styles/components/button/_button-theme.scss +219 -158
  11. package/lib/core/styles/components/button/_contained-button-theme.scss +302 -0
  12. package/lib/core/styles/components/button/_fab-button-theme.scss +296 -0
  13. package/lib/core/styles/components/button/_flat-button-theme.scss +356 -0
  14. package/lib/core/styles/components/button/_outlined-button-theme.scss +419 -0
  15. package/lib/core/styles/components/button-group/_button-group-theme.scss +113 -29
  16. package/lib/core/styles/components/calendar/_calendar-theme.scss +502 -112
  17. package/lib/core/styles/components/card/_card-theme.scss +5 -16
  18. package/lib/core/styles/components/carousel/_carousel-theme.scss +103 -23
  19. package/lib/core/styles/components/checkbox/_checkbox-component.scss +1 -1
  20. package/lib/core/styles/components/checkbox/_checkbox-theme.scss +63 -11
  21. package/lib/core/styles/components/chip/_chip-theme.scss +64 -47
  22. package/lib/core/styles/components/column-actions/_column-actions-theme.scss +3 -8
  23. package/lib/core/styles/components/combo/_combo-theme.scss +61 -12
  24. package/lib/core/styles/components/dialog/_dialog-theme.scss +9 -12
  25. package/lib/core/styles/components/divider/_divider-theme.scss +1 -6
  26. package/lib/core/styles/components/drop-down/_drop-down-theme.scss +52 -32
  27. package/lib/core/styles/components/expansion-panel/_expansion-panel-theme.scss +18 -13
  28. package/lib/core/styles/components/grid/_grid-theme.scss +115 -94
  29. package/lib/core/styles/components/grid/_pivot-data-selector-theme.scss +1 -6
  30. package/lib/core/styles/components/grid-summary/_grid-summary-theme.scss +12 -13
  31. package/lib/core/styles/components/grid-toolbar/_grid-toolbar-theme.scss +7 -12
  32. package/lib/core/styles/components/highlight/highlight-theme.scss +2 -3
  33. package/lib/core/styles/components/icon/_icon-theme.scss +0 -1
  34. package/lib/core/styles/components/icon-button/_contained-icon-button-theme.scss +196 -0
  35. package/lib/core/styles/components/icon-button/_flat-icon-button-theme.scss +188 -0
  36. package/lib/core/styles/components/icon-button/_icon-button-theme.scss +45 -32
  37. package/lib/core/styles/components/icon-button/_outlined-icon-button-theme.scss +232 -0
  38. package/lib/core/styles/components/input/_input-group-component.scss +30 -0
  39. package/lib/core/styles/components/input/_input-group-theme.scss +341 -26
  40. package/lib/core/styles/components/label/_label-theme.scss +2 -4
  41. package/lib/core/styles/components/list/_list-theme.scss +42 -66
  42. package/lib/core/styles/components/navbar/_navbar-theme.scss +25 -15
  43. package/lib/core/styles/components/navdrawer/_navdrawer-theme.scss +24 -22
  44. package/lib/core/styles/components/overlay/_overlay-theme.scss +0 -1
  45. package/lib/core/styles/components/paginator/_paginator-theme.scss +2 -7
  46. package/lib/core/styles/components/progress/circular/_circular-theme.scss +3 -8
  47. package/lib/core/styles/components/progress/linear/_linear-theme.scss +1 -6
  48. package/lib/core/styles/components/query-builder/_query-builder-theme.scss +28 -11
  49. package/lib/core/styles/components/radio/_radio-theme.scss +54 -10
  50. package/lib/core/styles/components/ripple/_ripple-theme.scss +0 -1
  51. package/lib/core/styles/components/scrollbar/scrollbar-theme.scss +0 -1
  52. package/lib/core/styles/components/select/_select-theme.scss +35 -7
  53. package/lib/core/styles/components/slider/_slider-theme.scss +92 -7
  54. package/lib/core/styles/components/snackbar/_snackbar-theme.scss +3 -8
  55. package/lib/core/styles/components/splitter/_splitter-theme.scss +15 -8
  56. package/lib/core/styles/components/stepper/_stepper-theme.scss +190 -22
  57. package/lib/core/styles/components/switch/_switch-theme.scss +112 -8
  58. package/lib/core/styles/components/tabs/_tabs-theme.scss +124 -56
  59. package/lib/core/styles/components/time-picker/_time-picker-theme.scss +35 -18
  60. package/lib/core/styles/components/toast/_toast-theme.scss +9 -10
  61. package/lib/core/styles/components/tooltip/_tooltip-theme.scss +2 -7
  62. package/lib/core/styles/components/tree/_tree-theme.scss +33 -10
  63. package/lib/core/styles/components/watermark/_watermark-theme.scss +0 -1
  64. package/lib/core/styles/themes/_core.scss +6 -0
  65. package/lib/core/styles/themes/generators/_base.scss +146 -58
  66. package/migrations/migration-collection.json +5 -0
  67. package/migrations/update-20_0_2/changes/theme-changes.json +11 -0
  68. package/migrations/update-20_0_2/index.d.ts +3 -0
  69. package/migrations/update-20_0_2/index.js +18 -0
  70. package/package.json +1 -1
  71. package/styles/igniteui-angular-dark.css +1 -1
  72. package/styles/igniteui-angular.css +1 -1
  73. package/styles/igniteui-bootstrap-dark.css +1 -1
  74. package/styles/igniteui-bootstrap-light.css +1 -1
  75. package/styles/igniteui-dark-green.css +1 -1
  76. package/styles/igniteui-fluent-dark-excel.css +1 -1
  77. package/styles/igniteui-fluent-dark-word.css +1 -1
  78. package/styles/igniteui-fluent-dark.css +1 -1
  79. package/styles/igniteui-fluent-light-excel.css +1 -1
  80. package/styles/igniteui-fluent-light-word.css +1 -1
  81. package/styles/igniteui-fluent-light.css +1 -1
  82. package/styles/igniteui-indigo-dark.css +1 -1
  83. package/styles/igniteui-indigo-light.css +1 -1
  84. package/styles/maps/igniteui-angular-dark.css.map +1 -1
  85. package/styles/maps/igniteui-angular.css.map +1 -1
  86. package/styles/maps/igniteui-bootstrap-dark.css.map +1 -1
  87. package/styles/maps/igniteui-bootstrap-light.css.map +1 -1
  88. package/styles/maps/igniteui-dark-green.css.map +1 -1
  89. package/styles/maps/igniteui-fluent-dark-excel.css.map +1 -1
  90. package/styles/maps/igniteui-fluent-dark-word.css.map +1 -1
  91. package/styles/maps/igniteui-fluent-dark.css.map +1 -1
  92. package/styles/maps/igniteui-fluent-light-excel.css.map +1 -1
  93. package/styles/maps/igniteui-fluent-light-word.css.map +1 -1
  94. package/styles/maps/igniteui-fluent-light.css.map +1 -1
  95. package/styles/maps/igniteui-indigo-dark.css.map +1 -1
  96. package/styles/maps/igniteui-indigo-light.css.map +1 -1
@@ -0,0 +1,232 @@
1
+ @use 'sass:map';
2
+ @use '../../base' as *;
3
+ @use '../../themes/schemas' as *;
4
+
5
+ @function outlined-icon-button-theme(
6
+ $schema: $light-material-schema,
7
+
8
+ $background: null,
9
+ $foreground: null,
10
+ $shadow-color: null,
11
+
12
+ $hover-background: null,
13
+ $hover-foreground: null,
14
+
15
+ $focus-background: null,
16
+ $focus-foreground: null,
17
+
18
+ $focus-hover-background: null,
19
+ $focus-hover-foreground: null,
20
+
21
+ $active-background: null,
22
+ $active-foreground: null,
23
+
24
+ $border-radius: null,
25
+ $border-color: null,
26
+ $focus-border-color: null,
27
+
28
+ $disabled-background: null,
29
+ $disabled-foreground: null,
30
+ $disabled-border-color: null,
31
+
32
+ $size: null,
33
+ ) {
34
+ $name: 'igx-outlined-icon-button';
35
+ $icon-button-schema: ();
36
+
37
+ @if map.has-key($schema, 'icon-button') {
38
+ $icon-button-schema: map.get($schema, 'icon-button');
39
+ @if map.has-key($icon-button-schema, 'outlined') {
40
+ $icon-button-schema: map.get($icon-button-schema, 'outlined');
41
+ } @else {
42
+ $icon-button-schema: $schema;
43
+ }
44
+ }
45
+
46
+ $theme: digest-schema($icon-button-schema);
47
+ $variant: map.get($schema, '_meta', 'theme');
48
+
49
+ @if not($hover-foreground) and $hover-background {
50
+ $hover-foreground: adaptive-contrast(var(--hover-background));
51
+ }
52
+
53
+ @if not($focus-foreground) and $focus-background {
54
+ $focus-foreground: adaptive-contrast(var(--focus-background));
55
+ }
56
+
57
+ @if not($focus-hover-foreground) and $focus-hover-background {
58
+ $focus-hover-foreground: adaptive-contrast(var(--focus-hover-background));
59
+ }
60
+
61
+ @if not($active-foreground) and $active-background {
62
+ $active-foreground: adaptive-contrast(var(--active-background));
63
+ }
64
+
65
+ @if $variant == 'material' or $variant == 'fluent' {
66
+ @if not($hover-foreground) and $foreground {
67
+ $hover-foreground: var(--foreground);
68
+ }
69
+
70
+ @if not($focus-foreground) and $foreground {
71
+ $focus-foreground: var(--foreground);
72
+ }
73
+
74
+ @if not($focus-hover-foreground) and $foreground {
75
+ $focus-hover-foreground: var(--foreground);
76
+ }
77
+
78
+ @if not($active-foreground) and $foreground {
79
+ $active-foreground: var(--foreground);
80
+ }
81
+
82
+ @if not($hover-background) and $foreground {
83
+ $hover-background: hsla(from var(--foreground) h s l / 0.08);
84
+ }
85
+
86
+ @if not($active-background) and $foreground {
87
+ $active-background: hsla(from var(--foreground) h s l / 0.24);
88
+ }
89
+
90
+ @if $variant == 'material' {
91
+ @if not($focus-background) and $foreground {
92
+ $focus-background: hsla(from var(--foreground) h s l / 0.16);
93
+ }
94
+
95
+ @if not($focus-hover-background) and $foreground {
96
+ $focus-hover-background: hsla(from var(--foreground) h s l / 0.24);
97
+ }
98
+
99
+ @if not($border-color) and $foreground {
100
+ $border-color: hsla(from var(--foreground) h s l / 0.4);
101
+ }
102
+ } @else {
103
+ @if not($focus-hover-background) and $hover-background {
104
+ $focus-hover-background: var(--hover-background);
105
+ }
106
+
107
+ @if not($focus-border-color) and $foreground {
108
+ $focus-border-color: var(--foreground);
109
+ }
110
+
111
+ @if not($border-color) and $foreground {
112
+ $border-color: hsla(from var(--foreground) h s l / 0.7);
113
+ }
114
+ }
115
+ }
116
+
117
+ @if $variant == 'indigo' {
118
+ @if not($border-color) and $foreground {
119
+ $border-color: hsla(from var(--foreground) h s l / 0.8);
120
+ }
121
+
122
+ @if not($hover-foreground) and $foreground {
123
+ $hover-foreground: hsl(from var(--foreground) h s calc(l * 0.9));
124
+ }
125
+
126
+ @if not($hover-background) and $foreground {
127
+ $hover-background: hsla(from var(--foreground) h s l / 0.1);
128
+ }
129
+
130
+ @if not($focus-foreground) and $foreground {
131
+ $focus-foreground: var(--foreground);
132
+ }
133
+
134
+ @if not($focus-border-color) and $foreground {
135
+ $focus-border-color: hsla(from var(--foreground) h s l / 0.2);
136
+ }
137
+
138
+ @if not($focus-hover-foreground) and $hover-foreground {
139
+ $focus-hover-foreground: var(--hover-foreground);
140
+ }
141
+
142
+ @if not($active-foreground) and $hover-foreground {
143
+ $active-foreground: var(--hover-foreground);
144
+ }
145
+ }
146
+
147
+ @if $variant == 'bootstrap' {
148
+ @if not($border-color) and $foreground {
149
+ $border-color: var(--foreground);
150
+ }
151
+
152
+ @if not($hover-background) and $foreground {
153
+ $hover-background: var(--foreground);
154
+ }
155
+
156
+ @if not($hover-foreground) and $hover-background {
157
+ $hover-foreground: adaptive-contrast(var(--hover-background));
158
+ }
159
+
160
+ @if not($focus-background) and $foreground {
161
+ $focus-background: var(--foreground);
162
+ }
163
+
164
+ @if not($focus-foreground) and $focus-background {
165
+ $focus-foreground: adaptive-contrast(var(--focus-background));
166
+ }
167
+
168
+ @if not($focus-hover-background) and $focus-background {
169
+ $focus-hover-background: hsl(from var(--focus-background) h s calc(l * 0.9));
170
+ }
171
+
172
+ @if not($focus-hover-foreground) and $focus-hover-background {
173
+ $focus-hover-foreground: adaptive-contrast(var(--focus-hover-background));
174
+ }
175
+
176
+ @if not($active-background) and $foreground {
177
+ $active-background: hsl(from var(--foreground) h s calc(l * 0.8));
178
+ }
179
+
180
+ @if not($active-foreground) and $active-background {
181
+ $active-foreground: adaptive-contrast(var(--active-background));
182
+ }
183
+
184
+ @if not($focus-border-color) and $active-background {
185
+ $focus-border-color: var(--active-background);
186
+ }
187
+
188
+ @if not($shadow-color) and $focus-background {
189
+ $shadow-color: hsla(from var(--focus-background) h s l / 0.5);
190
+ }
191
+ }
192
+
193
+ @if $variant == 'bootstrap' or $variant == 'indigo' {
194
+ @if not($disabled-foreground) and $foreground {
195
+ $disabled-foreground: hsla(from var(--foreground) h s l / 0.5);
196
+ }
197
+
198
+ @if not($disabled-border-color) and $border-color {
199
+ $disabled-border-color: hsla(from var(--border-color) h s l / 0.2);
200
+ }
201
+ }
202
+
203
+ @return extend(
204
+ $theme,
205
+ (
206
+ name: $name,
207
+ background: $background,
208
+ foreground: $foreground,
209
+ shadow-color: $shadow-color,
210
+
211
+ hover-background: $hover-background,
212
+ hover-foreground: $hover-foreground,
213
+
214
+ focus-background: $focus-background,
215
+ focus-foreground: $focus-foreground,
216
+
217
+ focus-hover-background: $focus-hover-background,
218
+ focus-hover-foreground: $focus-hover-foreground,
219
+
220
+ active-background: $active-background,
221
+ active-foreground: $active-foreground,
222
+
223
+ border-radius: $border-radius,
224
+ border-color: $border-color,
225
+ focus-border-color: $focus-border-color,
226
+
227
+ disabled-background: $disabled-background,
228
+ disabled-foreground: $disabled-foreground,
229
+ disabled-border-color: $disabled-border-color,
230
+ size: $size,
231
+ ));
232
+ }
@@ -1000,6 +1000,36 @@
1000
1000
  }
1001
1001
  }
1002
1002
 
1003
+ @include mx(bootstrap, warning) {
1004
+ @include e(input) {
1005
+ @extend %bootstrap-input--warning !optional;
1006
+
1007
+ &:hover {
1008
+ @extend %bootstrap-input--warning !optional;
1009
+ }
1010
+ }
1011
+
1012
+ @include e(file-input) {
1013
+ @extend %bootstrap-input--warning !optional;
1014
+
1015
+ &:hover {
1016
+ @extend %bootstrap-input--warning !optional;
1017
+ }
1018
+ }
1019
+
1020
+ @include e(label) {
1021
+ @extend %bootstrap-label !optional;
1022
+ }
1023
+
1024
+ @include e(textarea) {
1025
+ @extend %bootstrap-input--warning !optional;
1026
+
1027
+ &:hover {
1028
+ @extend %bootstrap-input--warning !optional;
1029
+ }
1030
+ }
1031
+ }
1032
+
1003
1033
  @include mx(bootstrap, textarea-group) {
1004
1034
  @include e(bundle) {
1005
1035
  @extend %form-group-bundle-bootstrap--textarea !optional;