igniteui-angular 17.2.1 → 17.2.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.
- package/esm2022/lib/buttonGroup/buttonGroup.component.mjs +1 -5
- package/esm2022/lib/directives/for-of/for_of.directive.mjs +17 -12
- package/esm2022/lib/grids/common/crud.service.mjs +10 -6
- package/esm2022/lib/grids/grid-base.directive.mjs +20 -9
- package/esm2022/lib/grids/hierarchical-grid/row-island.component.mjs +2 -1
- package/esm2022/lib/grids/pivot-grid/pivot-grid.component.mjs +6 -2
- package/esm2022/lib/grids/pivot-grid/pivot-header-row.component.mjs +2 -2
- package/esm2022/lib/navbar/navbar.component.mjs +3 -3
- package/esm2022/lib/navigation-drawer/navigation-drawer.component.mjs +1 -29
- package/fesm2022/igniteui-angular.mjs +53 -60
- package/fesm2022/igniteui-angular.mjs.map +1 -1
- package/lib/core/styles/components/bottom-nav/_bottom-nav-component.scss +2 -0
- package/lib/core/styles/components/bottom-nav/_bottom-nav-theme.scss +107 -24
- package/lib/core/styles/components/button/_button-theme.scss +17 -3
- package/lib/core/styles/components/button-group/_button-group-theme.scss +6 -6
- package/lib/core/styles/components/navbar/_navbar-component.scss +4 -0
- package/lib/core/styles/components/navbar/_navbar-theme.scss +62 -25
- package/lib/core/styles/components/navdrawer/_navdrawer-theme.scss +43 -33
- package/lib/core/styles/components/switch/_switch-component.scss +12 -0
- package/lib/core/styles/components/switch/_switch-theme.scss +24 -18
- package/lib/core/styles/typography/_indigo.scss +10 -3
- package/lib/directives/for-of/for_of.directive.d.ts +2 -2
- package/lib/grids/grid-base.directive.d.ts +1 -1
- package/lib/navigation-drawer/navigation-drawer.component.d.ts +5 -5
- package/migrations/migration-collection.json +10 -0
- package/migrations/update-17_2_0/changes/inputs.json +0 -40
- package/migrations/update-17_2_2/changes/inputs.json +29 -0
- package/migrations/update-17_2_2/index.d.ts +3 -0
- package/migrations/update-17_2_2/index.js +18 -0
- package/migrations/update-17_2_3/changes/theme-changes.json +17 -0
- package/migrations/update-17_2_3/index.d.ts +3 -0
- package/migrations/update-17_2_3/index.js +31 -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
|
@@ -62,10 +62,12 @@
|
|
|
62
62
|
|
|
63
63
|
[igxBottomNavHeaderIcon] {
|
|
64
64
|
@extend %igx-tab-icon !optional;
|
|
65
|
+
@extend %igx-tab-icon--disabled !optional;
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
[igxBottomNavHeaderLabel] {
|
|
68
69
|
@extend %igx-tab-label !optional;
|
|
70
|
+
@extend %igx-tab-label--disabled !optional;
|
|
69
71
|
}
|
|
70
72
|
}
|
|
71
73
|
}
|
|
@@ -12,16 +12,19 @@
|
|
|
12
12
|
////
|
|
13
13
|
|
|
14
14
|
/// If only background color is specified,
|
|
15
|
-
/// the
|
|
15
|
+
/// the label and icon colors will be assigned automatically to a contrasting color.
|
|
16
16
|
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
17
17
|
/// @param {Map} $elevations [null] - The elevations (shadows) map to be used.
|
|
18
18
|
/// @param {Color} $background [null] - The background color used for the toast.
|
|
19
|
-
/// @param {Color} $
|
|
20
|
-
/// @param {Color} $
|
|
19
|
+
/// @param {Color} $label-color [null] - The label color used in idle state.
|
|
20
|
+
/// @param {Color} $icon-color [null] - The icon color used in idle state.
|
|
21
|
+
/// @param {Color} $label-selected-color [null] - The label color used in selected state.
|
|
22
|
+
/// @param {Color} $icon-selected-color [null] - The icon color used in selected state.
|
|
23
|
+
/// @param {Color} $icon-disabled-color [null] - The disabled color of the icon.
|
|
24
|
+
/// @param {Color} $label-disabled-color [null] - The disabled color of the label.
|
|
25
|
+
/// @param {Color} $border-color [null] - The border color of the bottom navigation.
|
|
21
26
|
/// @param {box-shadow} $shadow [null] - Sets a shadow to be used for the bar.
|
|
22
|
-
///
|
|
23
27
|
/// @requires $light-material-schema
|
|
24
|
-
///
|
|
25
28
|
/// @example scss Set a custom background color
|
|
26
29
|
/// $my-bottom-nav-theme: bottom-nav-theme($background: black);
|
|
27
30
|
/// // Pass the theme to the css-vars() mixin
|
|
@@ -29,11 +32,15 @@
|
|
|
29
32
|
@function bottom-nav-theme(
|
|
30
33
|
$schema: $light-material-schema,
|
|
31
34
|
$elevations: null,
|
|
32
|
-
|
|
33
35
|
$background: null,
|
|
34
|
-
$
|
|
35
|
-
$
|
|
36
|
-
$
|
|
36
|
+
$icon-color: null,
|
|
37
|
+
$icon-selected-color: null,
|
|
38
|
+
$label-color: null,
|
|
39
|
+
$label-selected-color: null,
|
|
40
|
+
$icon-disabled-color: null,
|
|
41
|
+
$label-disabled-color: null,
|
|
42
|
+
$border-color: null,
|
|
43
|
+
$shadow: null,
|
|
37
44
|
) {
|
|
38
45
|
$name: 'igx-bottom-nav';
|
|
39
46
|
$bottom-nav-schema: ();
|
|
@@ -46,9 +53,41 @@
|
|
|
46
53
|
|
|
47
54
|
$theme: digest-schema($bottom-nav-schema);
|
|
48
55
|
|
|
49
|
-
|
|
56
|
+
$meta: map.get($theme, '_meta');
|
|
57
|
+
|
|
58
|
+
@if not($label-color) and $background {
|
|
59
|
+
@if meta.type-of($background) == 'color' {
|
|
60
|
+
$label-color: text-contrast($background);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@if not($icon-color) and $label-color {
|
|
65
|
+
@if meta.type-of($label-color) == 'color' {
|
|
66
|
+
$icon-color: $label-color;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@if not($icon-disabled-color) and $label-disabled-color {
|
|
71
|
+
@if meta.type-of($label-disabled-color) == 'color' {
|
|
72
|
+
$icon-disabled-color: $label-disabled-color;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@if not($label-disabled-color) and $icon-disabled-color {
|
|
77
|
+
@if meta.type-of($icon-disabled-color) == 'color' {
|
|
78
|
+
$label-disabled-color: $icon-disabled-color;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@if not($icon-selected-color) and $label-selected-color {
|
|
83
|
+
@if meta.type-of($background) == 'color' {
|
|
84
|
+
$icon-selected-color: $label-selected-color;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@if not($icon-color) and $background {
|
|
50
89
|
@if meta.type-of($background) == 'color' {
|
|
51
|
-
$
|
|
90
|
+
$icon-color: text-contrast($background);
|
|
52
91
|
}
|
|
53
92
|
}
|
|
54
93
|
|
|
@@ -60,9 +99,18 @@
|
|
|
60
99
|
@return extend($theme, (
|
|
61
100
|
name: $name,
|
|
62
101
|
background: $background,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
102
|
+
icon-color: $icon-color,
|
|
103
|
+
icon-selected-color: $icon-selected-color,
|
|
104
|
+
label-color: $label-color,
|
|
105
|
+
label-selected-color: $label-selected-color,
|
|
106
|
+
icon-disabled-color: $icon-disabled-color,
|
|
107
|
+
label-disabled-color: $label-disabled-color,
|
|
108
|
+
border-color: $border-color,
|
|
109
|
+
shadow: $shadow,
|
|
110
|
+
_meta: map.merge(if($meta, $meta, ()), (
|
|
111
|
+
variant: map.get($schema, '_meta', 'theme'),
|
|
112
|
+
theme-variant: map.get($schema, '_meta', 'variant')
|
|
113
|
+
)),
|
|
66
114
|
));
|
|
67
115
|
}
|
|
68
116
|
|
|
@@ -72,6 +120,7 @@
|
|
|
72
120
|
@mixin bottom-nav($theme) {
|
|
73
121
|
@include css-vars($theme);
|
|
74
122
|
|
|
123
|
+
$variant: map.get($theme, '_meta', 'variant');
|
|
75
124
|
$menu-height: rem(56px);
|
|
76
125
|
$item-min-width: rem(80px);
|
|
77
126
|
$item-max-width: rem(168px);
|
|
@@ -98,6 +147,7 @@
|
|
|
98
147
|
inset-inline-end: 0;
|
|
99
148
|
height: $menu-height;
|
|
100
149
|
background: var-get($theme, 'background');
|
|
150
|
+
border-top: rem(1px) solid var-get($theme, 'border-color');
|
|
101
151
|
overflow: hidden;
|
|
102
152
|
z-index: 8;
|
|
103
153
|
}
|
|
@@ -119,38 +169,46 @@
|
|
|
119
169
|
position: relative;
|
|
120
170
|
flex-flow: column nowrap;
|
|
121
171
|
flex: 1;
|
|
172
|
+
gap: rem(4px);
|
|
122
173
|
align-items: center;
|
|
123
174
|
justify-content: center;
|
|
124
175
|
min-width: $item-min-width;
|
|
125
176
|
max-width: $item-max-width;
|
|
126
177
|
height: 100%;
|
|
127
|
-
color: var-get($theme, 'idle-item-color');
|
|
128
178
|
cursor: pointer;
|
|
129
179
|
user-select: none;
|
|
130
180
|
overflow: hidden;
|
|
131
181
|
padding: $item-padding;
|
|
132
182
|
-webkit-tap-highlight-color: transparent;
|
|
133
183
|
outline-style: none;
|
|
184
|
+
color: var-get($theme, 'label-color');
|
|
134
185
|
|
|
135
186
|
igx-icon {
|
|
136
187
|
--component-size: 3;
|
|
188
|
+
|
|
189
|
+
@if $variant == 'indigo-design' {
|
|
190
|
+
--size: rem(16px);
|
|
191
|
+
}
|
|
137
192
|
}
|
|
138
193
|
}
|
|
139
194
|
|
|
140
195
|
%igx-bottom-nav-menu-item--disabled {
|
|
141
|
-
|
|
196
|
+
@if $variant != 'indigo-design' {
|
|
197
|
+
opacity: .5;
|
|
198
|
+
}
|
|
199
|
+
|
|
142
200
|
cursor: default;
|
|
143
201
|
pointer-events: none;
|
|
144
202
|
}
|
|
145
203
|
|
|
146
204
|
%igx-bottom-nav-menu-item--selected {
|
|
147
|
-
color: var-get($theme, 'active-item-color');
|
|
148
205
|
transition: color .15s $in-out-quad, opacity .25s $in-out-quad;
|
|
149
206
|
}
|
|
150
207
|
|
|
151
208
|
%igx-tab-label {
|
|
152
209
|
@include ellipsis();
|
|
153
|
-
|
|
210
|
+
|
|
211
|
+
color: var-get($theme, 'label-color');
|
|
154
212
|
max-width: 100%;
|
|
155
213
|
text-align: center;
|
|
156
214
|
transform: translateZ(0);
|
|
@@ -158,23 +216,48 @@
|
|
|
158
216
|
z-index: 1;
|
|
159
217
|
}
|
|
160
218
|
|
|
219
|
+
%igx-tab-label--disabled {
|
|
220
|
+
color: var-get($theme, 'label-disabled-color');
|
|
221
|
+
}
|
|
222
|
+
|
|
161
223
|
%igx-tab-icon {
|
|
162
224
|
display: flex;
|
|
163
225
|
position: relative;
|
|
164
226
|
justify-content: center;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
227
|
+
color: var-get($theme, 'icon-color');
|
|
228
|
+
|
|
229
|
+
@if $variant != 'indigo-design' {
|
|
230
|
+
padding: 0 rem(8px);
|
|
231
|
+
height: rem(24px);
|
|
232
|
+
transform: translateZ(0);
|
|
233
|
+
transition: transform .15s $in-out-quad;
|
|
234
|
+
}
|
|
235
|
+
|
|
169
236
|
z-index: 1;
|
|
170
237
|
}
|
|
171
238
|
|
|
239
|
+
%igx-tab-icon--disabled {
|
|
240
|
+
color: var-get($theme, 'icon-disabled-color');
|
|
241
|
+
}
|
|
242
|
+
|
|
172
243
|
%igx-tab-icon--selected {
|
|
173
|
-
|
|
244
|
+
color: var-get($theme, 'icon-selected-color');
|
|
245
|
+
|
|
246
|
+
inset-block-start: rem(-2px);
|
|
174
247
|
}
|
|
175
248
|
|
|
176
249
|
%igx-tab-label--selected {
|
|
177
|
-
|
|
250
|
+
color: var-get($theme, 'label-selected-color');
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
@if $variant != 'indigo-design' {
|
|
254
|
+
%igx-tab-icon--selected {
|
|
255
|
+
transform: translateY(-2px);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
%igx-tab-label--selected {
|
|
259
|
+
transform: translateY(-2px) scale(1.166667);
|
|
260
|
+
}
|
|
178
261
|
}
|
|
179
262
|
}
|
|
180
263
|
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
$hover-background: null,
|
|
66
66
|
$hover-foreground: null,
|
|
67
67
|
|
|
68
|
-
$icon-color:
|
|
69
|
-
$icon-color-hover:
|
|
68
|
+
$icon-color: $foreground,
|
|
69
|
+
$icon-color-hover: $hover-foreground,
|
|
70
70
|
|
|
71
71
|
$focus-background: null,
|
|
72
72
|
$focus-foreground: null,
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
|
|
97
97
|
$disabled-background: null,
|
|
98
98
|
$disabled-foreground: null,
|
|
99
|
-
$disabled-icon-color:
|
|
99
|
+
$disabled-icon-color: $disabled-foreground,
|
|
100
100
|
$disabled-border-color: null,
|
|
101
101
|
$size: null,
|
|
102
102
|
) {
|
|
@@ -139,6 +139,12 @@
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
@if not($icon-color-hover) and $hover-foreground {
|
|
143
|
+
@if meta.type-of($hover-background) == 'color' {
|
|
144
|
+
$icon-color-hover: $hover-foreground;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
142
148
|
@if not($focus-background) and $background {
|
|
143
149
|
$focus-background: color.scale($background, $lightness: 5%);
|
|
144
150
|
}
|
|
@@ -761,6 +767,10 @@
|
|
|
761
767
|
background: var-get($contained-theme, 'active-background');
|
|
762
768
|
border-color: var-get($contained-theme, 'active-border-color');
|
|
763
769
|
box-shadow: var-get($contained-theme, 'hover-shadow');
|
|
770
|
+
|
|
771
|
+
igx-icon {
|
|
772
|
+
color: var-get($contained-theme, 'active-foreground');
|
|
773
|
+
}
|
|
764
774
|
}
|
|
765
775
|
|
|
766
776
|
@if ($variant == 'indigo-design') {
|
|
@@ -898,6 +908,10 @@
|
|
|
898
908
|
border-color: var-get($fab-theme, 'active-border-color');
|
|
899
909
|
box-shadow: var-get($fab-theme, 'focus-shadow');
|
|
900
910
|
|
|
911
|
+
igx-icon {
|
|
912
|
+
color: var-get($fab-theme, 'active-foreground');
|
|
913
|
+
}
|
|
914
|
+
|
|
901
915
|
@if ($variant == 'indigo-design') {
|
|
902
916
|
igx-icon {
|
|
903
917
|
color: var-get($outlined-theme, 'icon-color-hover');
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
$shadow: null,
|
|
74
74
|
|
|
75
75
|
$item-text-color: null,
|
|
76
|
-
$item-icon-color:
|
|
76
|
+
$item-icon-color: $item-text-color,
|
|
77
77
|
$item-background: null,
|
|
78
78
|
$item-border-color: null,
|
|
79
79
|
|
|
80
80
|
$item-hover-text-color: null,
|
|
81
|
-
$item-hover-icon-color:
|
|
81
|
+
$item-hover-icon-color: $item-hover-text-color,
|
|
82
82
|
$item-hover-background: null,
|
|
83
83
|
$item-hover-border-color: null,
|
|
84
84
|
|
|
@@ -95,19 +95,19 @@
|
|
|
95
95
|
$item-disabled-border: null,
|
|
96
96
|
|
|
97
97
|
$item-selected-text-color: null,
|
|
98
|
-
$item-selected-icon-color:
|
|
98
|
+
$item-selected-icon-color: $item-selected-text-color,
|
|
99
99
|
$item-selected-background: null,
|
|
100
100
|
$item-selected-border-color: null,
|
|
101
101
|
|
|
102
102
|
$item-selected-hover-text-color: null,
|
|
103
|
-
$item-selected-hover-icon-color:
|
|
103
|
+
$item-selected-hover-icon-color: $item-selected-hover-text-color,
|
|
104
104
|
$item-selected-hover-background: null,
|
|
105
105
|
$item-selected-hover-border-color: null,
|
|
106
106
|
$item-selected-focus-background: null,
|
|
107
107
|
$item-selected-focus-hover-background: null,
|
|
108
108
|
|
|
109
109
|
$disabled-selected-text-color: null,
|
|
110
|
-
$disabled-selected-icon-color:
|
|
110
|
+
$disabled-selected-icon-color: $disabled-selected-text-color,
|
|
111
111
|
$disabled-selected-background: null,
|
|
112
112
|
$disabled-selected-border-color: null,
|
|
113
113
|
) {
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
|
|
141
141
|
@if not($item-selected-background) and $item-background {
|
|
142
142
|
@if meta.type-of($item-background) == 'color' {
|
|
143
|
-
$item-selected-
|
|
143
|
+
$item-selected-background: text-contrast($item-background);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
|
|
@@ -91,14 +91,13 @@
|
|
|
91
91
|
$navbar-padding: rem(16px);
|
|
92
92
|
$navbar-title-fz: rem(18px, 16px);
|
|
93
93
|
$navbar-title-lh: rem(18px, 16px);
|
|
94
|
-
$navbar-title-margin: 0;
|
|
95
94
|
|
|
96
95
|
%igx-navbar-display {
|
|
97
96
|
display: flex;
|
|
98
97
|
position: relative;
|
|
99
98
|
flex-flow: row nowrap;
|
|
100
99
|
align-items: center;
|
|
101
|
-
|
|
100
|
+
gap: rem(16px);
|
|
102
101
|
width: 100%;
|
|
103
102
|
min-height: rem(56px);
|
|
104
103
|
max-height: rem(128px);
|
|
@@ -108,9 +107,24 @@
|
|
|
108
107
|
box-shadow: var-get($theme, 'shadow');
|
|
109
108
|
z-index: 4;
|
|
110
109
|
overflow: hidden;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
border-bottom: rem(1px) solid var-get($theme, 'border-color');
|
|
111
|
+
|
|
112
|
+
igx-avatar,
|
|
113
|
+
igx-input-group,
|
|
114
|
+
[igxButton],
|
|
115
|
+
[igxIconButton],
|
|
116
|
+
igc-avatar,
|
|
117
|
+
igc-input,
|
|
118
|
+
igc-button,
|
|
119
|
+
igc-icon-button {
|
|
120
|
+
--ig-size: 1;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@if $variant == 'indigo-design' {
|
|
124
|
+
igc-icon-button,
|
|
125
|
+
[igxIconButton], {
|
|
126
|
+
--ig-size: 2;
|
|
127
|
+
}
|
|
114
128
|
}
|
|
115
129
|
}
|
|
116
130
|
|
|
@@ -121,47 +135,70 @@
|
|
|
121
135
|
|
|
122
136
|
%igx-navbar-title {
|
|
123
137
|
@include line-clamp(4, true, true);
|
|
124
|
-
margin:
|
|
138
|
+
margin: 0;
|
|
125
139
|
flex-grow: 1;
|
|
126
140
|
user-select: text;
|
|
127
141
|
display: flex;
|
|
128
142
|
flex-direction: row;
|
|
129
143
|
}
|
|
130
144
|
|
|
131
|
-
%igx-navbar-
|
|
132
|
-
|
|
133
|
-
|
|
145
|
+
%igx-navbar-left {
|
|
146
|
+
&:not(:empty) {
|
|
147
|
+
@if $variant != 'indigo-design' {
|
|
148
|
+
margin-inline-end: rem(16px)
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
134
152
|
|
|
135
|
-
|
|
136
|
-
|
|
153
|
+
%igx-navbar-middle {
|
|
154
|
+
flex-grow: 1;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
%igx-navbar-right {
|
|
158
|
+
gap: if($variant == 'indigo-design', rem(8px), rem(16px));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
%igx-navbar-left,
|
|
162
|
+
%igx-navbar-right {
|
|
163
|
+
&:empty {
|
|
164
|
+
display: none;
|
|
137
165
|
}
|
|
138
166
|
}
|
|
139
167
|
|
|
140
|
-
%igx-navbar-
|
|
141
|
-
%igx-navbar-
|
|
168
|
+
%igx-navbar-left,
|
|
169
|
+
%igx-navbar-middle,
|
|
170
|
+
%igx-navbar-right {
|
|
171
|
+
display: flex;
|
|
172
|
+
align-items: center;
|
|
173
|
+
|
|
142
174
|
igx-icon,
|
|
143
|
-
|
|
175
|
+
igc-icon {
|
|
144
176
|
--component-size: 3;
|
|
145
|
-
|
|
146
177
|
cursor: pointer;
|
|
147
|
-
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
> igx-icon,
|
|
181
|
+
> igc-icon {
|
|
148
182
|
transition: color .15s $out-quad;
|
|
183
|
+
color: var-get($theme, 'idle-icon-color');
|
|
149
184
|
|
|
150
185
|
&:hover {
|
|
151
186
|
color: var-get($theme, 'hover-icon-color');
|
|
152
187
|
}
|
|
188
|
+
|
|
189
|
+
user-select: none;
|
|
153
190
|
}
|
|
154
|
-
}
|
|
155
191
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
192
|
+
@if $variant == 'indigo-design' {
|
|
193
|
+
igx-icon,
|
|
194
|
+
igc-icon {
|
|
195
|
+
--component-size: 2;
|
|
161
196
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
197
|
+
padding: rem(6px);
|
|
198
|
+
width: auto;
|
|
199
|
+
height: auto;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
165
202
|
}
|
|
166
203
|
|
|
167
204
|
igx-navbar-action,
|
|
@@ -141,26 +141,36 @@
|
|
|
141
141
|
@mixin navdrawer($theme) {
|
|
142
142
|
@include css-vars($theme);
|
|
143
143
|
|
|
144
|
-
$drawer-icon-size: rem(24px);
|
|
145
144
|
$drawer-item-margin: rem(8px);
|
|
146
|
-
$text-side-padding: rem(8px);
|
|
147
145
|
$drawer-item-min-h: auto;
|
|
148
146
|
$drawer-item-max-h: rem(48px);
|
|
149
147
|
$drawer-item-min-w: rem(32px);
|
|
150
148
|
|
|
151
149
|
$variant: map.get($theme, '_meta', 'variant');
|
|
152
150
|
|
|
151
|
+
$drawer-width: rem(240px);
|
|
152
|
+
$drawer-mini-width: map.get((
|
|
153
|
+
material: rem(68px),
|
|
154
|
+
fluent: rem(68px),
|
|
155
|
+
bootstrap: rem(68px),
|
|
156
|
+
indigo-design: rem(48px)
|
|
157
|
+
), $variant);
|
|
158
|
+
|
|
153
159
|
%navdrawer-display {
|
|
154
160
|
transition: flex-basis;
|
|
155
161
|
transition-duration: .3s;
|
|
156
162
|
transition-timing-function: $out-quad;
|
|
157
163
|
flex-shrink: 0;
|
|
164
|
+
flex-basis: $drawer-width;
|
|
165
|
+
|
|
166
|
+
&:has(.igx-nav-drawer__aside--mini) {
|
|
167
|
+
flex-basis: $drawer-mini-width;
|
|
168
|
+
}
|
|
158
169
|
}
|
|
159
170
|
|
|
160
171
|
%aside {
|
|
161
172
|
position: fixed;
|
|
162
173
|
height: 100%;
|
|
163
|
-
max-width: 90%;
|
|
164
174
|
min-height: 100%;
|
|
165
175
|
overflow-x: hidden;
|
|
166
176
|
background: var-get($theme, 'background');
|
|
@@ -173,6 +183,11 @@
|
|
|
173
183
|
box-shadow: var-get($theme, 'shadow');
|
|
174
184
|
border-inline-end: rem(1px) solid var-get($theme, 'border-color');
|
|
175
185
|
border-radius: var-get($theme, 'border-radius');
|
|
186
|
+
|
|
187
|
+
@if $variant == 'indigo-design' {
|
|
188
|
+
transition: padding, width, transform;
|
|
189
|
+
padding: rem(8px);
|
|
190
|
+
}
|
|
176
191
|
}
|
|
177
192
|
|
|
178
193
|
%aside-panning {
|
|
@@ -211,6 +226,10 @@
|
|
|
211
226
|
}
|
|
212
227
|
|
|
213
228
|
box-shadow: none;
|
|
229
|
+
|
|
230
|
+
@if $variant == 'indigo-design' {
|
|
231
|
+
padding: 0;
|
|
232
|
+
}
|
|
214
233
|
}
|
|
215
234
|
|
|
216
235
|
%aside--right {
|
|
@@ -221,16 +240,11 @@
|
|
|
221
240
|
}
|
|
222
241
|
|
|
223
242
|
%aside--mini {
|
|
224
|
-
width:
|
|
243
|
+
width: $drawer-mini-width;
|
|
225
244
|
transition-duration: .2s, .2s;
|
|
226
245
|
|
|
227
246
|
%item {
|
|
228
247
|
justify-content: center;
|
|
229
|
-
@if $variant == 'indigo-design' {
|
|
230
|
-
max-width: rem(32px);
|
|
231
|
-
// important is needed to override the typography margins
|
|
232
|
-
margin: rem(14px) auto !important;
|
|
233
|
-
}
|
|
234
248
|
|
|
235
249
|
igx-icon {
|
|
236
250
|
margin-inline-start: 0;
|
|
@@ -239,7 +253,7 @@
|
|
|
239
253
|
}
|
|
240
254
|
|
|
241
255
|
%aside--normal {
|
|
242
|
-
width:
|
|
256
|
+
width: $drawer-width;
|
|
243
257
|
transition-duration: .3s, .3s;
|
|
244
258
|
}
|
|
245
259
|
|
|
@@ -283,19 +297,6 @@
|
|
|
283
297
|
color: var-get($theme, 'item-text-color');
|
|
284
298
|
max-height: $drawer-item-max-h;
|
|
285
299
|
min-width: $drawer-item-min-w;
|
|
286
|
-
|
|
287
|
-
@if $variant != 'indigo-design' {
|
|
288
|
-
// important is needed to override the typography margins
|
|
289
|
-
margin: $drawer-item-margin !important;
|
|
290
|
-
padding: rem(12px) rem(8px);
|
|
291
|
-
gap: rem(32px);
|
|
292
|
-
} @else {
|
|
293
|
-
// important is needed to override the typography margins
|
|
294
|
-
margin: rem(15px) $drawer-item-margin !important;
|
|
295
|
-
padding: rem(4px);
|
|
296
|
-
gap: calc(rem(32px) - #{$text-side-padding});
|
|
297
|
-
}
|
|
298
|
-
|
|
299
300
|
cursor: pointer;
|
|
300
301
|
user-select: none;
|
|
301
302
|
outline: transparent;
|
|
@@ -306,18 +307,26 @@
|
|
|
306
307
|
border: none;
|
|
307
308
|
justify-content: flex-start;
|
|
308
309
|
|
|
310
|
+
@if $variant != 'indigo-design' {
|
|
311
|
+
// important is needed to override the typography margins
|
|
312
|
+
margin: $drawer-item-margin !important;
|
|
313
|
+
padding: rem(12px) rem(8px);
|
|
314
|
+
gap: rem(32px);
|
|
315
|
+
} @else {
|
|
316
|
+
// important is needed to override the typography margins
|
|
317
|
+
margin: 0 !important;
|
|
318
|
+
margin-block-end: rem(4px) !important;
|
|
319
|
+
padding: rem(8px) rem(16px);
|
|
320
|
+
gap: rem(16px);
|
|
321
|
+
width: 100%;
|
|
322
|
+
}
|
|
323
|
+
|
|
309
324
|
igx-icon {
|
|
310
325
|
--component-size: 3;
|
|
311
|
-
|
|
312
326
|
color: var-get($theme, 'item-icon-color');
|
|
313
|
-
@if $variant == 'indigo-design' {
|
|
314
|
-
margin-inline-start: rem(4px);
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
327
|
|
|
318
|
-
span {
|
|
319
328
|
@if $variant == 'indigo-design' {
|
|
320
|
-
|
|
329
|
+
--component-size: 2;
|
|
321
330
|
}
|
|
322
331
|
}
|
|
323
332
|
|
|
@@ -375,9 +384,6 @@
|
|
|
375
384
|
box-shadow: none;
|
|
376
385
|
|
|
377
386
|
igx-icon {
|
|
378
|
-
width: var(--igx-icon-size, #{$drawer-icon-size});
|
|
379
|
-
height: var(--igx-icon-size, #{$drawer-icon-size});
|
|
380
|
-
font-size: var(--igx-icon-size, #{$drawer-icon-size});
|
|
381
387
|
margin: 0;
|
|
382
388
|
}
|
|
383
389
|
|
|
@@ -394,6 +400,10 @@
|
|
|
394
400
|
padding: rem(12px) rem(16px);
|
|
395
401
|
white-space: nowrap;
|
|
396
402
|
color: var-get($theme, 'item-header-text-color');
|
|
403
|
+
|
|
404
|
+
@if $variant == 'indigo-design' {
|
|
405
|
+
padding-block: rem(8px);
|
|
406
|
+
}
|
|
397
407
|
}
|
|
398
408
|
|
|
399
409
|
%style-dummy {
|
|
@@ -22,6 +22,14 @@
|
|
|
22
22
|
@include e(composite) {
|
|
23
23
|
@extend %switch-composite--hover !optional;
|
|
24
24
|
}
|
|
25
|
+
|
|
26
|
+
@include e(label) {
|
|
27
|
+
@extend %switch-label--hover !optional;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@include e(label, $m: before) {
|
|
31
|
+
@extend %switch-label--hover !optional;
|
|
32
|
+
}
|
|
25
33
|
}
|
|
26
34
|
|
|
27
35
|
&:active {
|
|
@@ -131,6 +139,10 @@
|
|
|
131
139
|
@extend %switch-label--invalid !optional;
|
|
132
140
|
}
|
|
133
141
|
|
|
142
|
+
@include e(label, $m: before) {
|
|
143
|
+
@extend %switch-label--invalid !optional;
|
|
144
|
+
}
|
|
145
|
+
|
|
134
146
|
@include e(composite-thumb) {
|
|
135
147
|
@extend %switch-composite-thumb--invalid !optional;
|
|
136
148
|
}
|