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,73 +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
|
-
/// If only background color is specified, text/icon color will be assigned automatically to a contrasting color.
|
|
14
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
15
|
-
/// @param {Color} $accent-color [null] - Sets the pinned header background color, the joystick background and border colors, as well as the context menu background color.
|
|
16
|
-
/// @param {Color} $active-color [null] - Sets the active text and border colors for tabs, panes, and menus.
|
|
17
|
-
/// @param {Color} $border-color [null] - Sets the global border color in the dock manager. Also sets the pane content background and the context menu active background colors.
|
|
18
|
-
/// @param {Color} $button-text [null] - Sets the button text color.
|
|
19
|
-
/// @param {Color} $context-menu-background [null] - Sets the background color for context menus.
|
|
20
|
-
/// @param {Color} $context-menu-background-active [null] - Sets the background color for active context menus.
|
|
21
|
-
/// @param {Color} $context-menu-color [null] - Sets the text color for context menus.
|
|
22
|
-
/// @param {Color} $context-menu-color-active [null] - Sets the text color for active context menus.
|
|
23
|
-
/// @param {Color} $dock-background [null] - Sets the background color of the dock manager.
|
|
24
|
-
/// @param {Color} $dock-text [null] - Sets the text color of the dock manager.
|
|
25
|
-
/// @param {Color} $drop-shadow-background [null] - Sets the drop-shadow background color.
|
|
26
|
-
/// @param {Color} $floating-pane-border-color [null] - Sets the border color for floating panes.
|
|
27
|
-
/// @param {Color} $flyout-shadow-color [null] - Sets the flyout shadow color.
|
|
28
|
-
/// @param {Color} $joystick-background [null] - Sets the background color of the joystick.
|
|
29
|
-
/// @param {Color} $joystick-background-active [null] - Sets the background color of the joysticks.
|
|
30
|
-
/// @param {Color} $joystick-border-color [null] - Sets the border color of the joystick.
|
|
31
|
-
/// @param {Color} $joystick-icon-color [null] - Sets the color for the joystick icons.
|
|
32
|
-
/// @param {Color} $joystick-icon-color-active [null] - Sets the color of the active joystick icons.
|
|
33
|
-
/// @param {Color} $pane-content-background [null] - Sets the background color of the content panes.
|
|
34
|
-
/// @param {Color} $pane-content-text [null] - Sets the text color of the content panes.
|
|
35
|
-
/// @param {Color} $pane-header-background [null] - Sets the background color for pane headers.
|
|
36
|
-
/// @param {Color} $pane-header-text [null] - Sets the text color for pane headers.
|
|
37
|
-
/// @param {Color} $pinned-header-background [null] - Sets the background colors of pinned headers.
|
|
38
|
-
/// @param {Color} $pinned-header-text [null] - Sets the text colors of pinned headers.
|
|
39
|
-
/// @param {Color} $background-color [null] - Sets the base dock manager color as well as the pane headers and tabs background colors.
|
|
40
|
-
/// @param {Color} $splitter-background [null] - Sets the background color for the splitters.
|
|
41
|
-
/// @param {Color} $splitter-handle [null] - Sets the background color for the splitter handles.
|
|
42
|
-
/// @param {Color} $tab-background [null] - Sets the background color for tabs.
|
|
43
|
-
/// @param {Color} $tab-background-active [null] - Sets the background color for active tabs.
|
|
44
|
-
/// @param {Color} $tab-border-color [null] - Sets the border color for tabs.
|
|
45
|
-
/// @param {Color} $tab-border-color-active [null] - Sets the border color for active tabs.
|
|
46
|
-
/// @param {Color} $tab-text [null] - Sets the text color for tabs.
|
|
47
|
-
/// @param {Color} $tab-text-active [null] - Sets the text color for active tabs.
|
|
48
|
-
/// @param {Color} $text-color [null] - Sets the text color for most elements in the dock manager. Used as the default joystick icon color.
|
|
49
|
-
/// @requires $light-material-schema
|
|
50
|
-
/// @example scss Change the background and icon colors in icon dock-managers
|
|
51
|
-
/// $my-dock-manager-theme: dock-manager-theme();
|
|
52
|
-
/// // Pass the theme to the css-vars() mixin
|
|
53
|
-
/// @include css-vars($my-dock-manager-theme);
|
|
54
|
-
@function dock-manager-theme(
|
|
55
|
-
$schema: $light-material-schema,
|
|
56
|
-
$rest...
|
|
57
|
-
) {
|
|
58
|
-
$name: 'igc-dockmanager';
|
|
59
|
-
$dock-manager-schema: ();
|
|
60
|
-
|
|
61
|
-
@if map.has-key($schema, 'dockmanager') {
|
|
62
|
-
$dock-manager-schema: map.get($schema, 'dockmanager');
|
|
63
|
-
} @else {
|
|
64
|
-
$dock-manager-schema: $schema;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
$theme: digest-schema($dock-manager-schema);
|
|
68
|
-
|
|
69
|
-
@return extend($theme, (name: $name, prefix: 'igc'), meta.keywords($rest));
|
|
70
|
-
}
|
|
71
3
|
|
|
72
4
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
73
5
|
/// @see {mixin} css-vars
|
|
@@ -1,216 +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/desig9stein" target="_blank">Marin Popov</a>
|
|
10
|
-
/// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
|
|
11
|
-
////
|
|
12
|
-
|
|
13
|
-
/// Generates a drop-down theme.
|
|
14
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
15
|
-
/// @param {Color} $background-color [null] - The drop-down background color.
|
|
16
|
-
/// @param {Color} $header-text-color [null] - The drop-down header text color.
|
|
17
|
-
/// @param {Color} $item-text-color [null] - The drop-down item text color.
|
|
18
|
-
/// @param {Color} $item-icon-color [null] - The drop-down item icon color.
|
|
19
|
-
/// @param {Color} $hover-item-text-color [null] - The drop-down item hover text color.
|
|
20
|
-
/// @param {Color} $hover-item-icon-color [null] - The drop-down item hover icon color.
|
|
21
|
-
/// @param {Color} $hover-item-background [null] - The drop-down hover item background color.
|
|
22
|
-
/// @param {Color} $focused-item-background [null] - The drop-down focused item background color.
|
|
23
|
-
/// @param {Color} $focused-item-text-color [null] - The drop-down focused item text color.
|
|
24
|
-
/// @param {Color} $focused-item-border-color [null] - The drop-down item focused border color.
|
|
25
|
-
/// @param {Color} $selected-item-background [null] - The drop-down selected item background color.
|
|
26
|
-
/// @param {Color} $selected-item-text-color [null] - The drop-down selected item text color.
|
|
27
|
-
/// @param {Color} $selected-item-icon-color [null] - The drop-down selected item icon color.
|
|
28
|
-
/// @param {Color} $selected-hover-item-background [null] - The drop-down selected item hover background color.
|
|
29
|
-
/// @param {Color} $selected-hover-item-text-color [null] - The drop-down selected item hover text color.
|
|
30
|
-
/// @param {Color} $selected-hover-item-icon-color [null] - The drop-down selected item hover icon color.
|
|
31
|
-
/// @param {Color} $selected-focus-item-background [null] - The drop-down selected item focus background color.
|
|
32
|
-
/// @param {Color} $selected-focus-item-text-color [null] - The drop-down selected item focus text color.
|
|
33
|
-
/// @param {Color} $disabled-item-background [null] - The drop-down disabled item background color.
|
|
34
|
-
/// @param {Color} $disabled-item-text-color [null] - The drop-down disabled item text color.
|
|
35
|
-
/// @param {box-shadow} $shadow [null] - Sets a shadow to be used for the drop-down.
|
|
36
|
-
/// @param {Number} $border-width [null] - The border width used for drop-down component.
|
|
37
|
-
/// @param {Color} $border-color [null] - The border color used for drop-down component.
|
|
38
|
-
/// @param {List} $border-radius [null] - The border radius used for drop-down component.
|
|
39
|
-
/// @param {List} $item-border-radius [null] - The border radius used for drop-down items.
|
|
40
|
-
/// @requires $light-material-schema
|
|
41
|
-
/// @example scss Change the background-color of the dropdown
|
|
42
|
-
/// $my-dropdown-theme: drop-down-theme($background-color: #09f);
|
|
43
|
-
/// // Pass the theme to the css-vars() mixin
|
|
44
|
-
/// @include css-vars($my-dropdown-theme);
|
|
45
|
-
@function drop-down-theme(
|
|
46
|
-
$schema: $light-material-schema,
|
|
47
|
-
|
|
48
|
-
$border-radius: null,
|
|
49
|
-
$item-border-radius: null,
|
|
50
|
-
|
|
51
|
-
$background-color: null,
|
|
52
|
-
$header-text-color: null,
|
|
53
|
-
|
|
54
|
-
$item-text-color: null,
|
|
55
|
-
$item-icon-color: null,
|
|
56
|
-
$hover-item-text-color: null,
|
|
57
|
-
$hover-item-icon-color: null,
|
|
58
|
-
|
|
59
|
-
$hover-item-background: null,
|
|
60
|
-
|
|
61
|
-
$focused-item-background: null,
|
|
62
|
-
$focused-item-text-color: null,
|
|
63
|
-
$focused-item-border-color: null,
|
|
64
|
-
|
|
65
|
-
$selected-item-background: null,
|
|
66
|
-
$selected-item-text-color: null,
|
|
67
|
-
$selected-item-icon-color: null,
|
|
68
|
-
|
|
69
|
-
$selected-hover-item-background: null,
|
|
70
|
-
$selected-hover-item-text-color: null,
|
|
71
|
-
$selected-hover-item-icon-color: null,
|
|
72
|
-
|
|
73
|
-
$selected-focus-item-background: null,
|
|
74
|
-
$selected-focus-item-text-color: null,
|
|
75
|
-
|
|
76
|
-
$disabled-item-background: null,
|
|
77
|
-
$disabled-item-text-color: null,
|
|
78
|
-
$border-color: null,
|
|
79
|
-
$border-width: null,
|
|
80
|
-
$shadow: null,
|
|
81
|
-
$size: null
|
|
82
|
-
) {
|
|
83
|
-
$name: 'igx-drop-down';
|
|
84
|
-
$selector: '.igx-drop-down__list, .igx-grid-toolbar__dd-list';
|
|
85
|
-
$drop-down-schema: ();
|
|
86
|
-
|
|
87
|
-
@if map.has-key($schema, 'drop-down') {
|
|
88
|
-
$drop-down-schema: map.get($schema, 'drop-down');
|
|
89
|
-
} @else {
|
|
90
|
-
$drop-down-schema: $schema;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
$theme: digest-schema($drop-down-schema);
|
|
94
|
-
$variant: map.get($theme, '_meta', 'theme');
|
|
95
|
-
|
|
96
|
-
@if not($item-text-color) and $background-color {
|
|
97
|
-
$item-text-color: adaptive-contrast(var(--background-color));
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
@if not($item-icon-color) and $item-text-color {
|
|
101
|
-
$item-icon-color: hsla(from var(--item-text-color) h s l / 0.8);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
@if not($hover-item-background) and $background-color {
|
|
105
|
-
$hover-item-background: hsla(from adaptive-contrast(var(--background-color)) h s l / .12);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
@if not($hover-item-text-color) and $item-text-color {
|
|
109
|
-
$hover-item-text-color: var(--item-text-color);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
@if not($hover-item-icon-color) and $hover-item-text-color {
|
|
113
|
-
$hover-item-icon-color: hsla(from var(--hover-item-text-color) h s l / 0.8);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
@if not($focused-item-background) and $background-color {
|
|
117
|
-
$focused-item-background: hsl(from var(--background-color) h s calc(l * 0.8));
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
@if not($focused-item-text-color) and $focused-item-background {
|
|
121
|
-
$focused-item-text-color: adaptive-contrast(var(--focused-item-background));
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
@if not($selected-item-background) and $background-color {
|
|
125
|
-
$selected-item-background: hsl(from var(--background-color) h s calc(l * 1.2));
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
@if not($selected-item-text-color) and $selected-item-background {
|
|
129
|
-
$selected-item-text-color: adaptive-contrast(var(--selected-item-background));
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
@if not($selected-item-icon-color) and $selected-item-text-color {
|
|
133
|
-
$selected-item-icon-color: hsla(from var(--selected-item-text-color) h s l / 0.8);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
@if not($selected-hover-item-background) and $selected-item-background {
|
|
137
|
-
$selected-hover-item-background: hsl(from var(--selected-item-background) h s calc(l * 0.7));
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
@if not($selected-hover-item-text-color) and $selected-hover-item-background {
|
|
141
|
-
$selected-hover-item-text-color: adaptive-contrast(var(--selected-hover-item-background));
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
@if not($selected-hover-item-icon-color) and $selected-hover-item-text-color {
|
|
145
|
-
$selected-hover-item-icon-color: hsla(from var(--selected-hover-item-text-color) h s l / 0.8);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
@if not($selected-focus-item-background) and $selected-item-background {
|
|
149
|
-
$selected-focus-item-background: hsl(from var(--selected-item-background) h s calc(l * 0.7));
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
@if not($selected-focus-item-text-color) and $selected-focus-item-background {
|
|
153
|
-
$selected-focus-item-text-color: adaptive-contrast(var(--selected-focus-item-background));
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
@if not($selected-focus-item-text-color) and $selected-focus-item-background {
|
|
157
|
-
$selected-focus-item-text-color: adaptive-contrast(var(--selected-focus-item-background));
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
@if $variant == 'indigo' {
|
|
161
|
-
@if not($focused-item-border-color) and $selected-item-background {
|
|
162
|
-
$focused-item-border-color: var(--selected-item-background);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
@if not($disabled-item-text-color) and $background-color {
|
|
167
|
-
$disabled-item-text-color: hsla(from adaptive-contrast(var(--background-color)) h s l / .36);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
@if not($disabled-item-text-color) and $disabled-item-background {
|
|
171
|
-
$disabled-item-text-color: hsla(from adaptive-contrast(var(--disabled-item-background)) h s l / .36);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
@if not($header-text-color) and $background-color {
|
|
175
|
-
$header-text-color: hsla(from adaptive-contrast(var(--background-color)) h s l / .7);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
@if not($shadow) {
|
|
179
|
-
$elevation: map.get($drop-down-schema, 'elevation');
|
|
180
|
-
$shadow: elevation($elevation);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
@return extend($theme, (
|
|
184
|
-
name: $name,
|
|
185
|
-
selector: $selector,
|
|
186
|
-
background-color: $background-color,
|
|
187
|
-
border-radius: $border-radius,
|
|
188
|
-
item-border-radius: $item-border-radius,
|
|
189
|
-
header-text-color: $header-text-color,
|
|
190
|
-
item-text-color: $item-text-color,
|
|
191
|
-
item-icon-color: $item-icon-color,
|
|
192
|
-
hover-item-text-color: $hover-item-text-color,
|
|
193
|
-
hover-item-icon-color: $hover-item-icon-color,
|
|
194
|
-
hover-item-background: $hover-item-background,
|
|
195
|
-
focused-item-background: $focused-item-background,
|
|
196
|
-
focused-item-text-color: $focused-item-text-color,
|
|
197
|
-
focused-item-border-color: $focused-item-border-color,
|
|
198
|
-
selected-item-background: $selected-item-background,
|
|
199
|
-
selected-item-text-color: $selected-item-text-color,
|
|
200
|
-
selected-item-icon-color: $selected-item-icon-color,
|
|
201
|
-
selected-hover-item-background: $selected-hover-item-background,
|
|
202
|
-
selected-hover-item-text-color: $selected-hover-item-text-color,
|
|
203
|
-
selected-hover-item-icon-color: $selected-hover-item-icon-color,
|
|
204
|
-
selected-focus-item-background: $selected-focus-item-background,
|
|
205
|
-
selected-focus-item-text-color: $selected-focus-item-text-color,
|
|
206
|
-
disabled-item-background: $disabled-item-background,
|
|
207
|
-
disabled-item-text-color: $disabled-item-text-color,
|
|
208
|
-
shadow: $shadow,
|
|
209
|
-
border-color: $border-color,
|
|
210
|
-
border-width: $border-width,
|
|
211
|
-
size: $size,
|
|
212
|
-
));
|
|
213
|
-
}
|
|
214
3
|
|
|
215
4
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
216
5
|
/// @see {mixin} css-vars
|
|
@@ -1,103 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use 'sass:meta';
|
|
3
2
|
@use '../../base' as *;
|
|
4
|
-
@use '../../themes/schemas' as *;
|
|
5
3
|
@use 'igniteui-theming/sass/animations/easings' as *;
|
|
6
4
|
|
|
7
|
-
////
|
|
8
|
-
/// @group themes
|
|
9
|
-
/// @access public
|
|
10
|
-
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
|
|
11
|
-
////
|
|
12
|
-
|
|
13
|
-
/// Expansion panel Theme
|
|
14
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
15
|
-
/// @param {Color} $header-background [null] - The panel header background color.
|
|
16
|
-
/// @param {Color} $header-focus-background [null] - The panel header focus background color.
|
|
17
|
-
/// @param {Color} $header-title-color [null] - The panel header title text color.
|
|
18
|
-
/// @param {Color} $header-description-color [null] - The panel header description text color.
|
|
19
|
-
/// @param {Color} $header-icon-color [null] - The panel header icon color.
|
|
20
|
-
/// @param {Color} $body-color [null] - The panel body text color.
|
|
21
|
-
/// @param {Color} $body-background [null] - The panel body background color.
|
|
22
|
-
/// @param {Color} $disabled-text-color [null] - The panel disabled text color.
|
|
23
|
-
/// @param {Color} $disabled-description-color [null] - The panel disabled header description text color.
|
|
24
|
-
/// @param {Number} $expanded-margin [null] - The expansion panel margin in expanded state when positioned inside accordion.
|
|
25
|
-
/// @param {List} $border-radius [null] - The border radius used for expansion-panel component.
|
|
26
|
-
/// @requires $light-material-schema
|
|
27
|
-
/// @example scss Change the header background color
|
|
28
|
-
/// $my-expansion-panel-theme: expansion-panel-theme($header-background: black);
|
|
29
|
-
/// // Pass the theme to the css-vars() mixin
|
|
30
|
-
/// @include css-vars($my-expansion-panel-theme);
|
|
31
|
-
@function expansion-panel-theme(
|
|
32
|
-
$schema: $light-material-schema,
|
|
33
|
-
|
|
34
|
-
$border-radius: null,
|
|
35
|
-
$header-background: null,
|
|
36
|
-
$header-focus-background: null,
|
|
37
|
-
$header-title-color: null,
|
|
38
|
-
$header-description-color: null,
|
|
39
|
-
$header-icon-color: null,
|
|
40
|
-
$body-color: null,
|
|
41
|
-
$body-background: null,
|
|
42
|
-
$disabled-text-color: null,
|
|
43
|
-
$disabled-description-color: null,
|
|
44
|
-
$expanded-margin: null
|
|
45
|
-
) {
|
|
46
|
-
$name: 'igx-expansion-panel';
|
|
47
|
-
$expansion-panel-schema: ();
|
|
48
|
-
|
|
49
|
-
@if map.has-key($schema, 'expansion-panel') {
|
|
50
|
-
$expansion-panel-schema: map.get($schema, 'expansion-panel');
|
|
51
|
-
} @else {
|
|
52
|
-
$expansion-panel-schema: $schema;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
$theme: digest-schema($expansion-panel-schema);
|
|
56
|
-
|
|
57
|
-
@if not($header-title-color) and $header-background {
|
|
58
|
-
$header-title-color: adaptive-contrast(var(--header-background));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@if not($header-icon-color) and $header-background {
|
|
62
|
-
$header-icon-color: adaptive-contrast(var(--header-background));
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@if not($header-description-color) and $header-background {
|
|
66
|
-
$header-description-color: hsla(from adaptive-contrast(var(--header-background)) h s l / .8);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
@if not($header-focus-background) and $header-background {
|
|
70
|
-
$header-focus-background: hsl(from var(--header-background) h s calc(l * 1.1));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
@if not($body-color) and $body-background {
|
|
74
|
-
$body-color: adaptive-contrast(var(--body-background));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@if not($disabled-text-color) and $header-background {
|
|
78
|
-
$disabled-text-color: hsla(from adaptive-contrast(var(--header-background)) h s l / .5);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
@if not($disabled-description-color) and $header-background {
|
|
82
|
-
$disabled-description-color: hsla(from adaptive-contrast(var(--header-background)) h s l / .5);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
@return extend($theme, (
|
|
86
|
-
name: $name,
|
|
87
|
-
header-background: $header-background,
|
|
88
|
-
border-radius: $border-radius,
|
|
89
|
-
header-focus-background: $header-focus-background,
|
|
90
|
-
header-title-color: $header-title-color,
|
|
91
|
-
header-description-color: $header-description-color,
|
|
92
|
-
header-icon-color: $header-icon-color,
|
|
93
|
-
body-color: $body-color,
|
|
94
|
-
body-background: $body-background,
|
|
95
|
-
disabled-text-color: $disabled-text-color,
|
|
96
|
-
disabled-description-color: $disabled-description-color,
|
|
97
|
-
expanded-margin: $expanded-margin,
|
|
98
|
-
));
|
|
99
|
-
}
|
|
100
|
-
|
|
101
5
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
102
6
|
/// @see {mixin} css-vars
|
|
103
7
|
/// @param {Map} $theme - The theme used to style the component.
|