igniteui-angular 20.0.7 → 20.0.9
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/fesm2022/igniteui-angular.mjs +143 -52
- package/fesm2022/igniteui-angular.mjs.map +1 -1
- package/index.d.ts +41 -5
- package/lib/core/styles/base/_index.scss +1 -0
- package/lib/core/styles/components/_index.scss +1 -0
- package/lib/core/styles/components/avatar/_avatar-theme.scss +0 -58
- package/lib/core/styles/components/badge/_badge-theme.scss +0 -72
- package/lib/core/styles/components/banner/_banner-theme.scss +0 -62
- package/lib/core/styles/components/bottom-nav/_bottom-nav-theme.scss +0 -100
- package/lib/core/styles/components/button/_button-theme.scss +0 -234
- package/lib/core/styles/components/button-group/_button-group-theme.scss +0 -293
- package/lib/core/styles/components/calendar/_calendar-theme.scss +0 -1075
- package/lib/core/styles/components/card/_card-theme.scss +0 -92
- package/lib/core/styles/components/carousel/_carousel-theme.scss +0 -218
- package/lib/core/styles/components/checkbox/_checkbox-theme.scss +0 -150
- package/lib/core/styles/components/chip/_chip-theme.scss +1 -265
- package/lib/core/styles/components/column-actions/_column-actions-theme.scss +0 -48
- package/lib/core/styles/components/combo/_combo-theme.scss +9 -125
- package/lib/core/styles/components/date-picker/_date-picker-theme.scss +4 -0
- package/lib/core/styles/components/date-range-picker/_date-range-picker-theme.scss +0 -30
- package/lib/core/styles/components/dialog/_dialog-theme.scss +0 -75
- package/lib/core/styles/components/divider/_divider-theme.scss +0 -39
- package/lib/core/styles/components/dock-manager/_dock-manager-theme.scss +0 -68
- package/lib/core/styles/components/drop-down/_drop-down-theme.scss +0 -211
- package/lib/core/styles/components/expansion-panel/_expansion-panel-theme.scss +0 -96
- package/lib/core/styles/components/grid/_excel-filtering-theme.scss +0 -1
- package/lib/core/styles/components/grid/_grid-theme.scss +44 -600
- package/lib/core/styles/components/grid-summary/_grid-summary-theme.scss +0 -84
- package/lib/core/styles/components/grid-toolbar/_grid-toolbar-theme.scss +0 -92
- package/lib/core/styles/components/highlight/highlight-theme.scss +0 -55
- package/lib/core/styles/components/icon/_icon-theme.scss +0 -43
- package/lib/core/styles/components/icon-button/_icon-button-theme.scss +0 -112
- package/lib/core/styles/components/input/_file-input-component.scss +72 -0
- package/lib/core/styles/components/input/_file-input-theme.scss +203 -0
- package/lib/core/styles/components/input/_input-group-component.scss +110 -126
- package/lib/core/styles/components/input/_input-group-theme.scss +409 -648
- package/lib/core/styles/components/label/_label-theme.scss +2 -35
- package/lib/core/styles/components/list/_list-theme.scss +0 -264
- package/lib/core/styles/components/navbar/_navbar-theme.scss +0 -89
- package/lib/core/styles/components/navdrawer/_navdrawer-theme.scss +0 -141
- package/lib/core/styles/components/overlay/_overlay-theme.scss +0 -38
- package/lib/core/styles/components/paginator/_paginator-theme.scss +0 -50
- package/lib/core/styles/components/progress/circular/_circular-theme.scss +0 -73
- package/lib/core/styles/components/progress/linear/_linear-theme.scss +0 -68
- package/lib/core/styles/components/query-builder/_query-builder-theme.scss +0 -101
- package/lib/core/styles/components/radio/_radio-theme.scss +0 -136
- package/lib/core/styles/components/rating/_rating-theme.scss +0 -43
- package/lib/core/styles/components/ripple/_ripple-theme.scss +0 -39
- package/lib/core/styles/components/scrollbar/scrollbar-theme.scss +0 -82
- package/lib/core/styles/components/select/_select-theme.scss +0 -93
- package/lib/core/styles/components/slider/_slider-theme.scss +0 -187
- package/lib/core/styles/components/snackbar/_snackbar-theme.scss +0 -64
- package/lib/core/styles/components/splitter/_splitter-theme.scss +0 -71
- package/lib/core/styles/components/stepper/_stepper-theme.scss +0 -492
- package/lib/core/styles/components/switch/_switch-theme.scss +0 -264
- package/lib/core/styles/components/tabs/_tabs-theme.scss +2 -261
- package/lib/core/styles/components/time-picker/_time-picker-theme.scss +0 -156
- package/lib/core/styles/components/toast/_toast-theme.scss +0 -69
- package/lib/core/styles/components/tooltip/_tooltip-theme.scss +0 -62
- package/lib/core/styles/components/tree/_tree-theme.scss +0 -128
- package/lib/core/styles/components/watermark/_watermark-theme.scss +0 -60
- package/lib/core/styles/themes/_core.scss +2 -0
- package/lib/core/styles/themes/_index.scss +1 -0
- package/lib/core/styles/themes/generators/_base.scss +11 -0
- package/lib/core/styles/typography/_bootstrap.scss +4 -0
- package/lib/core/styles/typography/_fluent.scss +5 -0
- package/lib/core/styles/typography/_indigo.scss +6 -0
- package/lib/core/styles/typography/_material.scss +2 -0
- package/package.json +2 -2
- package/styles/igniteui-angular-dark.css +1 -1
- package/styles/igniteui-angular.css +1 -1
- package/styles/igniteui-bootstrap-dark.css +1 -1
- package/styles/igniteui-bootstrap-light.css +1 -1
- package/styles/igniteui-dark-green.css +1 -1
- package/styles/igniteui-fluent-dark-excel.css +1 -1
- package/styles/igniteui-fluent-dark-word.css +1 -1
- package/styles/igniteui-fluent-dark.css +1 -1
- package/styles/igniteui-fluent-light-excel.css +1 -1
- package/styles/igniteui-fluent-light-word.css +1 -1
- package/styles/igniteui-fluent-light.css +1 -1
- package/styles/igniteui-indigo-dark.css +1 -1
- package/styles/igniteui-indigo-light.css +1 -1
- package/styles/maps/igniteui-angular-dark.css.map +1 -1
- package/styles/maps/igniteui-angular.css.map +1 -1
- package/styles/maps/igniteui-bootstrap-dark.css.map +1 -1
- package/styles/maps/igniteui-bootstrap-light.css.map +1 -1
- package/styles/maps/igniteui-dark-green.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark-excel.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark-word.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark.css.map +1 -1
- package/styles/maps/igniteui-fluent-light-excel.css.map +1 -1
- package/styles/maps/igniteui-fluent-light-word.css.map +1 -1
- package/styles/maps/igniteui-fluent-light.css.map +1 -1
- package/styles/maps/igniteui-indigo-dark.css.map +1 -1
- package/styles/maps/igniteui-indigo-light.css.map +1 -1
- package/lib/core/styles/components/button/_contained-button-theme.scss +0 -302
- package/lib/core/styles/components/button/_fab-button-theme.scss +0 -296
- package/lib/core/styles/components/button/_flat-button-theme.scss +0 -356
- package/lib/core/styles/components/button/_outlined-button-theme.scss +0 -419
- package/lib/core/styles/components/icon-button/_contained-icon-button-theme.scss +0 -196
- package/lib/core/styles/components/icon-button/_flat-icon-button-theme.scss +0 -188
- package/lib/core/styles/components/icon-button/_outlined-icon-button-theme.scss +0 -232
|
@@ -1,271 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use 'sass:meta';
|
|
3
|
-
@use 'sass:color';
|
|
4
2
|
@use '../../base' as *;
|
|
5
|
-
@use '../../themes/schemas' as *;
|
|
6
3
|
@use 'igniteui-theming/sass/animations/easings' as *;
|
|
7
4
|
|
|
8
|
-
////
|
|
9
|
-
/// @group themes
|
|
10
|
-
/// @access public
|
|
11
|
-
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
|
|
12
|
-
////
|
|
13
|
-
|
|
14
|
-
/// Chip Theme
|
|
15
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
16
|
-
/// @param {List} $border-radius [null] - The chip border-radius.
|
|
17
|
-
///
|
|
18
|
-
/// @param {Color} $text-color [null] - The chip text color.
|
|
19
|
-
/// @param {Color} $background [null] - The chip background color.
|
|
20
|
-
/// @param {Color} $border-color [null] - The chip border color.
|
|
21
|
-
///
|
|
22
|
-
/// @param {Color} $disabled-text-color [null] - The disabled chip text color.
|
|
23
|
-
/// @param {Color} $disabled-background [null] - The disabled chip background color.
|
|
24
|
-
/// @param {Color} $disabled-border-color [null] - The disabled chip border color.
|
|
25
|
-
///
|
|
26
|
-
/// @param {Color} $ghost-background [null] - The chip ghost background color.
|
|
27
|
-
/// @param {box-shadow} $ghost-shadow [null] - The chip ghost shadow.
|
|
28
|
-
///
|
|
29
|
-
/// @param {Color} $hover-text-color [null] - The chip text hover color.
|
|
30
|
-
/// @param {Color} $hover-background [null] - The chip hover background color.
|
|
31
|
-
/// @param {Color} $hover-border-color [null] - The chip hover border color.
|
|
32
|
-
///
|
|
33
|
-
/// @param {Color} $focus-text-color [null] - The chip text focus color.
|
|
34
|
-
/// @param {Color} $focus-background [null] - The chip focus background color.
|
|
35
|
-
/// @param {color} $focus-border-color [null] - The chip focus border color.
|
|
36
|
-
///
|
|
37
|
-
/// @param {color} $selected-text-color [null] - The selected chip text color.
|
|
38
|
-
/// @param {color} $selected-background [null] - The selected chip background color.
|
|
39
|
-
/// @param {color} $selected-border-color [null] The selected chip border color.
|
|
40
|
-
///
|
|
41
|
-
/// @param {color} $hover-selected-text-color [null] - The selected chip hover text color.
|
|
42
|
-
/// @param {color} $hover-selected-background [null] - The selected chip hover background color.
|
|
43
|
-
/// @param {color} $hover-selected-border-color [null] - The selected chip hover border color.
|
|
44
|
-
///
|
|
45
|
-
/// @param {color} $focus-selected-text-color [null] - The selected chip text focus color.
|
|
46
|
-
/// @param {color} $focus-selected-background [null] - The selected chip focus background color.
|
|
47
|
-
/// @param {color} $focus-selected-border-color [null] - The selected chip focus border color.
|
|
48
|
-
///
|
|
49
|
-
/// @param {color} $remove-icon-color [null] - The remove icon color for the chip.
|
|
50
|
-
/// @param {color} $remove-icon-color-focus [null] - The remove icon color on focus for the chip.
|
|
51
|
-
///
|
|
52
|
-
/// @requires $light-material-schema
|
|
53
|
-
///
|
|
54
|
-
/// @example scss Change the background color
|
|
55
|
-
/// $my-chip-theme: igx-chip-theme($background: black);
|
|
56
|
-
/// // Pass the theme to the css-vars mixin
|
|
57
|
-
/// @include css-vars($my-chip-theme);
|
|
58
|
-
@function chip-theme(
|
|
59
|
-
$schema: $light-material-schema,
|
|
60
|
-
$border-radius: null,
|
|
61
|
-
|
|
62
|
-
$text-color: null,
|
|
63
|
-
$background: null,
|
|
64
|
-
$border-color: null,
|
|
65
|
-
$ghost-background: null,
|
|
66
|
-
|
|
67
|
-
$disabled-text-color: null,
|
|
68
|
-
$disabled-background: null,
|
|
69
|
-
$disabled-border-color: null,
|
|
70
|
-
|
|
71
|
-
$hover-text-color: null,
|
|
72
|
-
$hover-background: null,
|
|
73
|
-
$hover-border-color: null,
|
|
74
|
-
|
|
75
|
-
$focus-text-color: null,
|
|
76
|
-
$focus-background: null,
|
|
77
|
-
$focus-border-color: null,
|
|
78
|
-
$focus-outline-color: null,
|
|
79
|
-
|
|
80
|
-
$selected-text-color: null,
|
|
81
|
-
$selected-background: null,
|
|
82
|
-
$selected-border-color: null,
|
|
83
|
-
|
|
84
|
-
$hover-selected-text-color: null,
|
|
85
|
-
$hover-selected-background: null,
|
|
86
|
-
$hover-selected-border-color: null,
|
|
87
|
-
|
|
88
|
-
$focus-selected-text-color: null,
|
|
89
|
-
$focus-selected-background: null,
|
|
90
|
-
$focus-selected-border-color: null,
|
|
91
|
-
$focus-selected-outline-color: null,
|
|
92
|
-
|
|
93
|
-
$ghost-shadow: null,
|
|
94
|
-
$remove-icon-color: null,
|
|
95
|
-
$remove-icon-color-focus: null,
|
|
96
|
-
$size: null,
|
|
97
|
-
) {
|
|
98
|
-
$name: 'igx-chip';
|
|
99
|
-
$selector: 'igx-chip, .igx-chip__ghost';
|
|
100
|
-
$chip-schema: ();
|
|
101
|
-
|
|
102
|
-
@if map.has-key($schema, 'chip') {
|
|
103
|
-
$chip-schema: map.get($schema, 'chip');
|
|
104
|
-
} @else {
|
|
105
|
-
$chip-schema: $schema;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
$theme: digest-schema($chip-schema);
|
|
109
|
-
$variant: map.get($theme, '_meta', 'theme');
|
|
110
|
-
|
|
111
|
-
@if not($text-color) and $background {
|
|
112
|
-
$text-color: adaptive-contrast(var(--background));
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
@if not($border-color) and $background {
|
|
116
|
-
$border-color: var(--background);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
@if not($hover-background) and $background {
|
|
120
|
-
$hover-background: hsl(from var(--background) h s calc(l * 0.9));
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
@if not($hover-text-color) and $hover-background {
|
|
124
|
-
$hover-text-color: adaptive-contrast(var(--hover-background));
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
@if not($focus-background) and $background {
|
|
128
|
-
$focus-background: hsl(from var(--background) h s calc(l * 0.8));
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
@if $variant == 'fluent' {
|
|
132
|
-
@if not($focus-background) and $selected-background {
|
|
133
|
-
$focus-background: var(--selected-background);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
@if not($focus-text-color) and $focus-background {
|
|
138
|
-
$focus-text-color: adaptive-contrast(var(--focus-background));
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
@if $variant != 'indigo' and $variant != 'fluent' {
|
|
142
|
-
@if not($selected-background) and $background {
|
|
143
|
-
$selected-background: var(--background);
|
|
144
|
-
}
|
|
145
|
-
} @else {
|
|
146
|
-
@if not($selected-background) and $background {
|
|
147
|
-
$selected-background: hsl(from var(--background) h s calc(l * 1.1));
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
@if not($selected-text-color) and $selected-background {
|
|
152
|
-
$selected-text-color: adaptive-contrast(var(--selected-background));
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
@if not($hover-selected-background) and $selected-background {
|
|
156
|
-
$hover-selected-background: hsl(from var(--selected-background) h s calc(l * 0.9));
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
@if not($hover-selected-text-color) and $hover-selected-background {
|
|
160
|
-
$hover-selected-text-color: adaptive-contrast(var(--hover-selected-background));
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
@if $variant != 'indigo' {
|
|
164
|
-
@if not($focus-selected-background) and $selected-background {
|
|
165
|
-
$focus-selected-background: hsl(from var(--selected-background) h s calc(l * 0.8));
|
|
166
|
-
}
|
|
167
|
-
} @else {
|
|
168
|
-
@if not($focus-selected-background) and $selected-background {
|
|
169
|
-
$focus-selected-background: var(--selected-background);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
@if not($focus-selected-text-color) and $focus-selected-background {
|
|
174
|
-
$focus-selected-text-color: adaptive-contrast(var(--focus-selected-background));
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
@if not($hover-border-color) and $border-color {
|
|
178
|
-
$hover-border-color: var(--border-color);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
@if not($focus-border-color) and $border-color {
|
|
182
|
-
$focus-border-color: var(--border-color);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
@if not($selected-border-color) and $border-color {
|
|
186
|
-
$selected-border-color: var(--border-color);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
@if not($hover-selected-border-color) and $border-color {
|
|
190
|
-
$hover-selected-border-color: var(--border-color);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
@if not($focus-selected-border-color) and $border-color {
|
|
194
|
-
$focus-selected-border-color: var(--border-color);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
@if $variant == 'indigo' {
|
|
198
|
-
@if not($selected-border-color) and $selected-background {
|
|
199
|
-
$selected-border-color: var(--selected-background);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
@if not($hover-selected-border-color) and $hover-selected-background {
|
|
203
|
-
$hover-selected-border-color: var(--hover-selected-background);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
@if not($focus-selected-border-color) and $focus-selected-background {
|
|
207
|
-
$focus-selected-border-color: var(--focus-selected-background);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
@if $variant == 'bootstrap' or $variant == 'indigo' {
|
|
212
|
-
@if not($focus-outline-color) and $focus-background {
|
|
213
|
-
$focus-outline-color: hsla(from var(--focus-background) h s l / 0.4);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
@if not($focus-selected-outline-color) and $focus-selected-background {
|
|
217
|
-
$focus-selected-outline-color: hsla(from var(--focus-selected-background) h s l / 0.4);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
@if not($ghost-shadow) {
|
|
222
|
-
$ghost-elevation: map.get($chip-schema, 'ghost-elevation');
|
|
223
|
-
$ghost-shadow: elevation($ghost-elevation);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
@return extend($theme, (
|
|
227
|
-
name: $name,
|
|
228
|
-
selector: $selector,
|
|
229
|
-
border-radius: $border-radius,
|
|
230
|
-
|
|
231
|
-
text-color: $text-color,
|
|
232
|
-
background: $background,
|
|
233
|
-
border-color: $border-color,
|
|
234
|
-
ghost-background: $ghost-background,
|
|
235
|
-
|
|
236
|
-
disabled-text-color: $disabled-text-color,
|
|
237
|
-
disabled-background: $disabled-background,
|
|
238
|
-
disabled-border-color: $disabled-border-color,
|
|
239
|
-
|
|
240
|
-
hover-text-color: $hover-text-color,
|
|
241
|
-
hover-background: $hover-background,
|
|
242
|
-
hover-border-color: $hover-border-color,
|
|
243
|
-
|
|
244
|
-
focus-text-color: $focus-text-color,
|
|
245
|
-
focus-background: $focus-background,
|
|
246
|
-
focus-border-color: $focus-border-color,
|
|
247
|
-
|
|
248
|
-
selected-text-color: $selected-text-color,
|
|
249
|
-
selected-background: $selected-background,
|
|
250
|
-
selected-border-color: $selected-border-color,
|
|
251
|
-
|
|
252
|
-
hover-selected-text-color: $hover-selected-text-color,
|
|
253
|
-
hover-selected-background: $hover-selected-background,
|
|
254
|
-
hover-selected-border-color: $hover-selected-border-color,
|
|
255
|
-
|
|
256
|
-
focus-selected-text-color: $focus-selected-text-color,
|
|
257
|
-
focus-selected-background: $focus-selected-background,
|
|
258
|
-
focus-selected-border-color: $focus-selected-border-color,
|
|
259
|
-
|
|
260
|
-
ghost-shadow: $ghost-shadow,
|
|
261
|
-
remove-icon-color: $remove-icon-color,
|
|
262
|
-
remove-icon-color-focus: $remove-icon-color-focus,
|
|
263
|
-
focus-selected-outline-color: $focus-selected-outline-color,
|
|
264
|
-
focus-outline-color: $focus-outline-color,
|
|
265
|
-
size: $size,
|
|
266
|
-
));
|
|
267
|
-
}
|
|
268
|
-
|
|
269
5
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
270
6
|
/// @see {mixin} css-vars
|
|
271
7
|
/// @param {Map} $theme - The theme used to style the component.
|
|
@@ -307,7 +43,7 @@
|
|
|
307
43
|
|
|
308
44
|
@if $variant == 'indigo' {
|
|
309
45
|
padding: rem(4px);
|
|
310
|
-
gap: rem(8px)
|
|
46
|
+
gap: rem(8px);
|
|
311
47
|
}
|
|
312
48
|
|
|
313
49
|
&:empty {
|
|
@@ -1,53 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../base' as *;
|
|
3
|
-
@use '../../themes/schemas' as *;
|
|
4
|
-
|
|
5
|
-
////
|
|
6
|
-
/// @group themes
|
|
7
|
-
/// @access public
|
|
8
|
-
/// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
|
|
9
|
-
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
|
|
10
|
-
////
|
|
11
|
-
|
|
12
|
-
/// Column actions Theme
|
|
13
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
14
|
-
/// @param {Color} $title-color [null]- The text color used for the title of the list.
|
|
15
|
-
/// @param {Color} $background-color [null] - The background color of the panel.
|
|
16
|
-
///
|
|
17
|
-
/// @requires $light-material-schema
|
|
18
|
-
///
|
|
19
|
-
/// @example scss Change the title color
|
|
20
|
-
/// $column-actions-theme: igx-column-actions-theme($title-color: black);
|
|
21
|
-
/// // Pass the theme to the css-vars mixin
|
|
22
|
-
/// @include css-vars($column-actions-theme);
|
|
23
|
-
////
|
|
24
|
-
@function column-actions-theme(
|
|
25
|
-
$schema: $light-material-schema,
|
|
26
|
-
|
|
27
|
-
$title-color: null,
|
|
28
|
-
$background-color: null
|
|
29
|
-
) {
|
|
30
|
-
$name: 'igx-column-actions';
|
|
31
|
-
$column-actions-schema: ();
|
|
32
|
-
|
|
33
|
-
@if map.has-key($schema, 'column-actions') {
|
|
34
|
-
$column-actions-schema: map.get($schema, 'column-actions');
|
|
35
|
-
} @else {
|
|
36
|
-
$column-actions-schema: $schema;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
$theme: digest-schema($column-actions-schema);
|
|
40
|
-
|
|
41
|
-
@if not($title-color) and $background-color {
|
|
42
|
-
$title-color: adaptive-contrast(var(--background-color));
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@return extend($theme, (
|
|
46
|
-
name: $name,
|
|
47
|
-
title-color: $title-color,
|
|
48
|
-
background-color: $background-color,
|
|
49
|
-
));
|
|
50
|
-
}
|
|
51
3
|
|
|
52
4
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
53
5
|
/// @see {mixin} css-vars
|
|
@@ -1,129 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../base' as *;
|
|
3
|
-
@use '../../themes/schemas' as *;
|
|
4
|
-
|
|
5
|
-
////
|
|
6
|
-
/// @group themes
|
|
7
|
-
/// @access public
|
|
8
|
-
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
|
|
9
|
-
/// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
|
|
10
|
-
////
|
|
11
|
-
|
|
12
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
13
|
-
/// @param {Color} $search-separator-border-color [null] - The combo search box separator color.
|
|
14
|
-
/// @param {Color} $empty-list-placeholder-color [null] - The combo placeholder text color.
|
|
15
|
-
/// @param {Color} $empty-list-background [null] - The combo list background color.
|
|
16
|
-
/// @param {Color} $toggle-button-background [null] - The combo toggle button background color.
|
|
17
|
-
/// @param {Color} $toggle-button-background-focus [null] - The combo toggle button background color when the combo is focused in material box variant.
|
|
18
|
-
/// @param {Color} $toggle-button-background-focus--border [null] - The combo toggle button background color when the combo is focused in material border variant.
|
|
19
|
-
/// @param {Color} $toggle-button-background-disabled [null] - The combo toggle button background color when the combo is disabled.
|
|
20
|
-
/// @param {Color} $toggle-button-foreground [null] - The combo toggle button foreground color.
|
|
21
|
-
/// @param {Color} $toggle-button-foreground-focus [null] - The combo toggle button foreground color when the combo is focused.
|
|
22
|
-
/// @param {Color} $toggle-button-foreground-disabled [null] - The combo toggle button foreground color when the combo is disabled.
|
|
23
|
-
/// @param {Color} $toggle-button-foreground-filled [null] - The combo toggle button foreground color when the combo is filled.
|
|
24
|
-
/// @param {Color} $clear-button-background [null] - The combo clear button background color.
|
|
25
|
-
/// @param {Color} $clear-button-background-focus [null] - The combo clear button background color when the combo is focused.
|
|
26
|
-
/// @param {Color} $clear-button-foreground [null] - The combo clear button foreground color.
|
|
27
|
-
/// @param {Color} $clear-button-foreground-focus [null] - The combo clear button foreground color when the combo is focused.
|
|
28
|
-
/// @requires $light-material-schema
|
|
29
|
-
/// @example scss Change the combo empty list background
|
|
30
|
-
/// $my-combo-theme: igx-checkbox-theme($empty-list-background);
|
|
31
|
-
/// // Pass the theme to the css-vars mixin
|
|
32
|
-
/// @include css-vars($my-combo-theme);
|
|
33
|
-
@function combo-theme(
|
|
34
|
-
$schema: $light-material-schema,
|
|
35
|
-
$search-separator-border-color: null,
|
|
36
|
-
$empty-list-placeholder-color: null,
|
|
37
|
-
$empty-list-background: null,
|
|
38
|
-
$toggle-button-background: null,
|
|
39
|
-
$toggle-button-background-focus: null,
|
|
40
|
-
$toggle-button-background-disabled: null,
|
|
41
|
-
$toggle-button-foreground: null,
|
|
42
|
-
$toggle-button-foreground-focus: null,
|
|
43
|
-
$toggle-button-foreground-disabled: null,
|
|
44
|
-
$toggle-button-background-focus--border: null,
|
|
45
|
-
$clear-button-background: null,
|
|
46
|
-
$clear-button-background-focus: null,
|
|
47
|
-
$clear-button-foreground: null,
|
|
48
|
-
$clear-button-foreground-focus: null,
|
|
49
|
-
$toggle-button-foreground-filled: null,
|
|
50
|
-
) {
|
|
51
|
-
$name: 'igx-combo';
|
|
52
|
-
$selector: 'igx-combo, igx-simple-combo';
|
|
53
|
-
|
|
54
|
-
$combo-schema: ();
|
|
55
|
-
|
|
56
|
-
@if map.has-key($schema, 'combo') {
|
|
57
|
-
$combo-schema: map.get($schema, 'combo');
|
|
58
|
-
} @else {
|
|
59
|
-
$combo-schema: $schema;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
$theme: digest-schema($combo-schema);
|
|
63
|
-
$variant: map.get($theme, '_meta', 'theme');
|
|
64
|
-
|
|
65
|
-
@if not($empty-list-placeholder-color) and $empty-list-background {
|
|
66
|
-
$empty-list-placeholder-color: adaptive-contrast(var(--empty-list-background));
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
@if not($toggle-button-foreground) and $toggle-button-background {
|
|
70
|
-
$toggle-button-foreground: adaptive-contrast(var(--toggle-button-background));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
@if $variant == 'material' {
|
|
74
|
-
@if not($toggle-button-background-focus) and $toggle-button-background {
|
|
75
|
-
$toggle-button-background-focus: hsl(from var(--toggle-button-background) h s calc(l * 0.9));
|
|
76
|
-
}
|
|
77
|
-
} @else {
|
|
78
|
-
@if not($toggle-button-background-focus) and $toggle-button-background {
|
|
79
|
-
$toggle-button-background-focus: var(--toggle-button-background);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
@if not($toggle-button-foreground-focus) and $toggle-button-background-focus {
|
|
84
|
-
$toggle-button-foreground-focus: adaptive-contrast(var(--toggle-button-background-focus));
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
@if not($toggle-button-background-focus--border) and $toggle-button-background {
|
|
88
|
-
$toggle-button-background-focus--border: var(--toggle-button-background);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
@if not($toggle-button-foreground-filled) and $toggle-button-background {
|
|
92
|
-
$toggle-button-foreground-filled: adaptive-contrast(var(--toggle-button-background));
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@if not($toggle-button-background-disabled) and $toggle-button-background {
|
|
96
|
-
$toggle-button-background-disabled: hsla(from var(--toggle-button-background) h s l / 0.3);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
@if not($toggle-button-foreground-disabled) and $toggle-button-background {
|
|
100
|
-
$toggle-button-foreground-disabled: hsla(from adaptive-contrast(var(--toggle-button-background)) h s l / 0.7);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@if not($clear-button-foreground-focus) and $clear-button-background-focus {
|
|
104
|
-
$clear-button-foreground-focus: adaptive-contrast(var(--clear-button-background-focus));
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
@return extend($theme, (
|
|
108
|
-
name: $name,
|
|
109
|
-
selector: $selector,
|
|
110
|
-
search-separator-border-color: $search-separator-border-color,
|
|
111
|
-
empty-list-placeholder-color: $empty-list-placeholder-color,
|
|
112
|
-
empty-list-background: $empty-list-background,
|
|
113
|
-
toggle-button-background: $toggle-button-background,
|
|
114
|
-
toggle-button-background-focus: $toggle-button-background-focus,
|
|
115
|
-
toggle-button-background-disabled: $toggle-button-background-disabled,
|
|
116
|
-
toggle-button-foreground: $toggle-button-foreground,
|
|
117
|
-
toggle-button-foreground-focus: $toggle-button-foreground-focus,
|
|
118
|
-
toggle-button-foreground-disabled: $toggle-button-foreground-disabled,
|
|
119
|
-
toggle-button-foreground-filled: $toggle-button-foreground-filled,
|
|
120
|
-
toggle-button-background-focus--border: $toggle-button-background-focus--border,
|
|
121
|
-
clear-button-background: $clear-button-background,
|
|
122
|
-
clear-button-background-focus: $clear-button-background-focus,
|
|
123
|
-
clear-button-foreground: $clear-button-foreground,
|
|
124
|
-
clear-button-foreground-focus: $clear-button-foreground-focus,
|
|
125
|
-
));
|
|
126
|
-
}
|
|
127
3
|
|
|
128
4
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
129
5
|
/// @see {mixin} css-vars
|
|
@@ -210,7 +86,7 @@
|
|
|
210
86
|
%igx-combo__case-icon {
|
|
211
87
|
igx-icon {
|
|
212
88
|
--igx-icon-disabled-color: var(--ig-gray-600);
|
|
213
|
-
|
|
89
|
+
|
|
214
90
|
opacity: 1;
|
|
215
91
|
}
|
|
216
92
|
}
|
|
@@ -314,11 +190,19 @@
|
|
|
314
190
|
%igx-combo__toggle-button {
|
|
315
191
|
color: var-get($theme, 'toggle-button-foreground-focus');
|
|
316
192
|
background: var-get($theme, 'toggle-button-background-focus');
|
|
193
|
+
|
|
194
|
+
&:focus {
|
|
195
|
+
color: color($color: 'secondary');
|
|
196
|
+
}
|
|
317
197
|
}
|
|
318
198
|
|
|
319
199
|
%igx-combo__clear-button {
|
|
320
200
|
color: var-get($theme, 'clear-button-foreground-focus');
|
|
321
201
|
background: var-get($theme, 'clear-button-background-focus');
|
|
202
|
+
|
|
203
|
+
&:focus {
|
|
204
|
+
color: color($color: 'secondary');
|
|
205
|
+
}
|
|
322
206
|
}
|
|
323
207
|
}
|
|
324
208
|
|
|
@@ -1,35 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../base' as *;
|
|
3
|
-
@use '../../themes/schemas' as *;
|
|
4
|
-
|
|
5
|
-
////
|
|
6
|
-
/// @group themes
|
|
7
|
-
/// @access public
|
|
8
|
-
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
|
|
9
|
-
////
|
|
10
|
-
|
|
11
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
12
|
-
/// @param {color} $label-color [null] - The color for date range separator label.
|
|
13
|
-
@function date-range-picker-theme(
|
|
14
|
-
$schema: $light-material-schema,
|
|
15
|
-
$label-color: null
|
|
16
|
-
) {
|
|
17
|
-
$name: 'igx-date-range-picker';
|
|
18
|
-
$date-range-schema: ();
|
|
19
|
-
|
|
20
|
-
@if map.has-key($schema, 'date-range') {
|
|
21
|
-
$date-range-schema: map.get($schema, 'date-range');
|
|
22
|
-
} @else {
|
|
23
|
-
$date-range-schema: $schema;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
$theme: digest-schema($date-range-schema);
|
|
27
|
-
|
|
28
|
-
@return extend($theme, (
|
|
29
|
-
name: $name,
|
|
30
|
-
label-color: $label-color,
|
|
31
|
-
));
|
|
32
|
-
}
|
|
33
3
|
|
|
34
4
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
35
5
|
/// @see {mixin} css-vars
|
|
@@ -1,80 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use 'sass:meta';
|
|
3
2
|
@use '../../base' as *;
|
|
4
|
-
@use '../../themes/schemas' as *;
|
|
5
|
-
|
|
6
|
-
////
|
|
7
|
-
/// @group themes
|
|
8
|
-
/// @access public
|
|
9
|
-
/// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
|
|
10
|
-
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
|
|
11
|
-
////
|
|
12
|
-
|
|
13
|
-
/// Dialog Theme
|
|
14
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
15
|
-
/// @param {Color} $background [null] - The dialog background color.
|
|
16
|
-
/// @param {Color} $title-color [null] - The dialog title text color.
|
|
17
|
-
/// @param {Color} $message-color [null] - The dialog message text color.
|
|
18
|
-
/// @param {box-shadow} $shadow [null] - The shadow used for the dialog.
|
|
19
|
-
/// @param {List} $border-radius [null] - The border radius used for dialog component.
|
|
20
|
-
/// @param {Color} $border-color [null] - The border color used for dialog component.
|
|
21
|
-
/// @requires $light-material-schema
|
|
22
|
-
/// @example scss Change the background color
|
|
23
|
-
/// $my-dialog-theme: dialog-theme($background: black);
|
|
24
|
-
/// // Pass the theme to the css-vars() mixin
|
|
25
|
-
/// @include css-vars($my-dialog-theme);
|
|
26
|
-
@function dialog-theme(
|
|
27
|
-
$schema: $light-material-schema,
|
|
28
|
-
|
|
29
|
-
$border-radius: null,
|
|
30
|
-
$border-color: null,
|
|
31
|
-
|
|
32
|
-
$background: null,
|
|
33
|
-
$title-color: null,
|
|
34
|
-
$message-color: null,
|
|
35
|
-
$shadow: null,
|
|
36
|
-
) {
|
|
37
|
-
$name: 'igx-dialog';
|
|
38
|
-
$selector: '.igx-dialog';
|
|
39
|
-
|
|
40
|
-
$dialog-schema: ();
|
|
41
|
-
|
|
42
|
-
@if map.has-key($schema, 'dialog') {
|
|
43
|
-
$dialog-schema: map.get($schema, 'dialog');
|
|
44
|
-
} @else {
|
|
45
|
-
$dialog-schema: $schema;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
$theme: digest-schema($dialog-schema);
|
|
49
|
-
|
|
50
|
-
@if not($title-color) and $background{
|
|
51
|
-
$title-color: adaptive-contrast(var(--background));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@if not($message-color) and $background{
|
|
55
|
-
$message-color: hsla(from adaptive-contrast(var(--background)) h s l / .8);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@if not($border-color) and $background{
|
|
59
|
-
$border-color: hsla(from adaptive-contrast(var(--background)) h s l / .3);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@if not($shadow) {
|
|
63
|
-
$elevation: map.get($dialog-schema, 'elevation');
|
|
64
|
-
$shadow: elevation($elevation);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
@return extend($theme, (
|
|
68
|
-
name: $name,
|
|
69
|
-
selector: $selector,
|
|
70
|
-
border-radius: $border-radius,
|
|
71
|
-
background: $background,
|
|
72
|
-
title-color: $title-color,
|
|
73
|
-
message-color: $message-color,
|
|
74
|
-
shadow: $shadow,
|
|
75
|
-
border-color: $border-color
|
|
76
|
-
));
|
|
77
|
-
}
|
|
78
3
|
|
|
79
4
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
80
5
|
/// @see {mixin} css-vars
|
|
@@ -1,44 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../base' as *;
|
|
3
|
-
@use '../../themes/schemas' as *;
|
|
4
|
-
|
|
5
|
-
////
|
|
6
|
-
/// @group themes
|
|
7
|
-
/// @access public
|
|
8
|
-
/// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
|
|
9
|
-
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
|
|
10
|
-
////
|
|
11
|
-
|
|
12
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
13
|
-
/// @param {Color} $color [null] - The color of the divider. (Gradients are not supported for dashed dividers).
|
|
14
|
-
/// @param {number} $inset [null] - The inset value of the divider.
|
|
15
|
-
/// @requires $light-material-schema
|
|
16
|
-
/// @example scss Change the color of the divider
|
|
17
|
-
/// $my-divider-theme: divider-theme($color: orange);
|
|
18
|
-
/// // Pass the theme to the css-vars() mixin
|
|
19
|
-
/// @include css-vars($my-divider-theme);
|
|
20
|
-
@function divider-theme(
|
|
21
|
-
$schema: $light-material-schema,
|
|
22
|
-
$color: null,
|
|
23
|
-
$inset: null
|
|
24
|
-
) {
|
|
25
|
-
$name: 'igx-divider';
|
|
26
|
-
$divider-schema: ();
|
|
27
|
-
|
|
28
|
-
@if map.has-key($schema, 'divider') {
|
|
29
|
-
$divider-schema: map.get($schema, 'divider');
|
|
30
|
-
} @else {
|
|
31
|
-
$divider-schema: $schema;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
$theme: digest-schema($divider-schema);
|
|
35
|
-
|
|
36
|
-
@return extend($theme, (
|
|
37
|
-
name: $name,
|
|
38
|
-
color: $color,
|
|
39
|
-
inset: $inset,
|
|
40
|
-
));
|
|
41
|
-
}
|
|
42
3
|
|
|
43
4
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
44
5
|
/// @see {mixin} css-vars
|