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,161 +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
|
-
////
|
|
11
|
-
|
|
12
|
-
/// If only background color is specified, text/icon color
|
|
13
|
-
/// will be assigned automatically to a contrasting color.
|
|
14
|
-
/// Does ___not___ apply for disabled state colors.
|
|
15
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
16
|
-
/// @param {Color} $text-color [null] - The text color of a open time picker.
|
|
17
|
-
/// @param {Color} $hover-text-color [null] - The hover text color of a open time picker.
|
|
18
|
-
/// @param {Color} $selected-text-color [null] - The text color of a selected item in time picker.
|
|
19
|
-
/// @param {Color} $active-item-background [null] - The background color for current item in focused column inside the time picker.
|
|
20
|
-
/// @param {Color} $active-item-foreground [null] - The foreground color for current item in focused column inside the time picker.
|
|
21
|
-
/// @param {Color} $disabled-text-color [null] - The text color for disabled values.
|
|
22
|
-
/// @param {Color} $disabled-item-background [null] - The background color for disabled values .
|
|
23
|
-
/// @param {Color} $header-background [null] - The header background color of a time picker.
|
|
24
|
-
/// @param {Color} $header-hour-text-color [null] - The header hour text color of a time picker.
|
|
25
|
-
/// @param {Color} $background-color [null] - The time-picker panel background color.
|
|
26
|
-
/// @param {Number} $time-item-size [null] - The height of the time item.
|
|
27
|
-
/// @param {Color} $divider-color [null] - The color for the actions area divider.
|
|
28
|
-
/// @param {Color} $border-color [null] - The border color around the time picker.
|
|
29
|
-
/// @param {box-shadow} $modal-shadow [null] - The custom shadow to be used for the time picker in modal mode.
|
|
30
|
-
/// @param {box-shadow} $dropdown-shadow [null] - The custom shadow to be used for the time picker in dropdown mode.
|
|
31
|
-
/// @param {List} $border-radius [null] - The border radius used for the outline of the picker.
|
|
32
|
-
/// @param {List} $active-item-border-radius [null] - The border radius used for the outline of the currently active item (hours, minutes, AM/PM).
|
|
33
|
-
/// @requires $light-material-schema
|
|
34
|
-
/// @example scss Change the background and text colors in time picker
|
|
35
|
-
/// $my-time-picker-theme: time-picker-theme(
|
|
36
|
-
/// $text-color: white,
|
|
37
|
-
/// $background-color: black
|
|
38
|
-
/// );
|
|
39
|
-
/// // Pass the theme to the css-vars() mixin
|
|
40
|
-
/// @include css-vars($my-time-picker-theme);
|
|
41
|
-
@function time-picker-theme(
|
|
42
|
-
$schema: $light-material-schema,
|
|
43
|
-
|
|
44
|
-
$border-radius: null,
|
|
45
|
-
$active-item-border-radius: null,
|
|
46
|
-
|
|
47
|
-
$text-color: null,
|
|
48
|
-
$hover-text-color: null,
|
|
49
|
-
$selected-text-color: null,
|
|
50
|
-
$active-item-background: null,
|
|
51
|
-
$active-item-foreground: null,
|
|
52
|
-
$disabled-text-color: null,
|
|
53
|
-
$disabled-item-background: null,
|
|
54
|
-
$header-background: null,
|
|
55
|
-
$header-hour-text-color: null,
|
|
56
|
-
$background-color: null,
|
|
57
|
-
$modal-shadow: null,
|
|
58
|
-
$dropdown-shadow: null,
|
|
59
|
-
$border-color: null,
|
|
60
|
-
$divider-color: null,
|
|
61
|
-
$time-item-size: null,
|
|
62
|
-
) {
|
|
63
|
-
$name: 'igx-time-picker';
|
|
64
|
-
$selector: '.igx-time-picker';
|
|
65
|
-
$time-picker-schema: ();
|
|
66
|
-
|
|
67
|
-
@if map.has-key($schema, 'time-picker') {
|
|
68
|
-
$time-picker-schema: map.get($schema, 'time-picker');
|
|
69
|
-
} @else {
|
|
70
|
-
$time-picker-schema: $schema;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
$theme: digest-schema($time-picker-schema);
|
|
74
|
-
|
|
75
|
-
@if not($text-color) and $background-color {
|
|
76
|
-
$text-color: hsla(from adaptive-contrast(var(--background-color)) h s l / 0.7);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
@if not($hover-text-color) and $text-color {
|
|
80
|
-
$hover-text-color: hsla(from var(--text-color) h s l / 1);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
@if not($header-background) and $selected-text-color {
|
|
84
|
-
$header-background: var(--selected-text-color);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
@if not($header-background) and $background-color {
|
|
88
|
-
$header-background: var(--background-color);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
@if not($header-hour-text-color) and $header-background {
|
|
92
|
-
$header-hour-text-color: adaptive-contrast(var(--header-background));
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@if not($selected-text-color) and $active-item-background {
|
|
96
|
-
$selected-text-color: var(--active-item-background);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
@if not($active-item-background) and $selected-text-color {
|
|
100
|
-
$active-item-background: var(--selected-text-color);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@if not($active-item-background) and $background-color {
|
|
104
|
-
$active-item-background: hsla(from adaptive-contrast(var(--background-color)) h s l / .5);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
@if not($active-item-foreground) and $active-item-background {
|
|
108
|
-
$active-item-foreground: adaptive-contrast(var(--active-item-background));
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@if not($selected-text-color) and $background-color {
|
|
112
|
-
$selected-text-color: adaptive-contrast(var(--background-color));
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
@if not($disabled-text-color) and $disabled-item-background {
|
|
116
|
-
$disabled-text-color: hsla(from adaptive-contrast(var(--disabled-item-background)) h s l / .6);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
@if not($border-color) and $background-color {
|
|
120
|
-
$border-color: hsla(from adaptive-contrast(var(--background-color)) h s l / .6);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
@if not($divider-color) and $border-color {
|
|
124
|
-
$divider-color: var(--border-color);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
@if not($modal-shadow) {
|
|
128
|
-
$elevation: map.get($time-picker-schema, 'modal-elevation');
|
|
129
|
-
$modal-shadow: elevation($elevation);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
@if not($dropdown-shadow) {
|
|
133
|
-
$elevation: map.get($time-picker-schema, 'dropdown-elevation');
|
|
134
|
-
$dropdown-shadow: elevation($elevation);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
@return extend($theme, (
|
|
138
|
-
name: $name,
|
|
139
|
-
selector: $selector,
|
|
140
|
-
text-color: $text-color,
|
|
141
|
-
hover-text-color: $hover-text-color,
|
|
142
|
-
selected-text-color: $selected-text-color,
|
|
143
|
-
active-item-foreground: $active-item-foreground,
|
|
144
|
-
active-item-background: $active-item-background,
|
|
145
|
-
disabled-text-color: $disabled-text-color,
|
|
146
|
-
disabled-item-background: $disabled-item-background,
|
|
147
|
-
header-background: $header-background,
|
|
148
|
-
header-hour-text-color: $header-hour-text-color,
|
|
149
|
-
background-color: $background-color,
|
|
150
|
-
modal-shadow: $modal-shadow,
|
|
151
|
-
dropdown-shadow: $dropdown-shadow,
|
|
152
|
-
border-radius: $border-radius,
|
|
153
|
-
border-color: $border-color,
|
|
154
|
-
divider-color: $divider-color,
|
|
155
|
-
time-item-size: $time-item-size,
|
|
156
|
-
active-item-border-radius: $active-item-border-radius,
|
|
157
|
-
));
|
|
158
|
-
}
|
|
159
3
|
|
|
160
4
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
161
5
|
/// @see {mixin} css-vars
|
|
@@ -1,74 +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
|
-
/// If only background color is specified,
|
|
13
|
-
/// the text-color will be assigned automatically to a contrasting color.
|
|
14
|
-
///
|
|
15
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
16
|
-
///
|
|
17
|
-
/// @param {Color} $background [null] - The background color used for the toast.
|
|
18
|
-
/// @param {Color} $text-color [null] - The text-color used for the toast.
|
|
19
|
-
/// @param {Color} $border-color [null] - The border-color used for the toast.
|
|
20
|
-
///
|
|
21
|
-
/// @param {List} $border-radius [null] - The border radius used for the toast component.
|
|
22
|
-
/// @param {box-shadow} $shadow [null] - Sets a shadow to be used for the toast.
|
|
23
|
-
///
|
|
24
|
-
/// @requires $light-material-schema
|
|
25
|
-
///
|
|
26
|
-
/// @example scss Set a custom background color
|
|
27
|
-
/// $my-toast-theme: toast-theme($background: green);
|
|
28
|
-
/// // Pass the theme to the css-vars() mixin
|
|
29
|
-
/// @include css-vars($my-toast-theme);
|
|
30
|
-
@function toast-theme(
|
|
31
|
-
$schema: $light-material-schema,
|
|
32
|
-
|
|
33
|
-
$border-radius: null,
|
|
34
|
-
$border-color: null,
|
|
35
|
-
$background: null,
|
|
36
|
-
$text-color: null,
|
|
37
|
-
$shadow: null,
|
|
38
|
-
) {
|
|
39
|
-
$name: 'igx-toast';
|
|
40
|
-
$toast-schema: ();
|
|
41
|
-
|
|
42
|
-
@if map.has-key($schema, 'toast') {
|
|
43
|
-
$toast-schema: map.get($schema, 'toast');
|
|
44
|
-
} @else {
|
|
45
|
-
$toast-schema: $schema;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
$theme: digest-schema($toast-schema);
|
|
49
|
-
|
|
50
|
-
@if not($text-color) and $background {
|
|
51
|
-
$text-color: adaptive-contrast(var(--background));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@if not($border-color) and $text-color {
|
|
55
|
-
$border-color: hsla(from var(--text-color) h s l / 0.3);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@if not($shadow) {
|
|
59
|
-
$elevation: map.get($toast-schema, 'elevation');
|
|
60
|
-
$shadow: elevation($elevation);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@return extend($theme, (
|
|
64
|
-
name: $name,
|
|
65
|
-
background: $background,
|
|
66
|
-
border-radius: $border-radius,
|
|
67
|
-
text-color: $text-color,
|
|
68
|
-
border-color: $border-color,
|
|
69
|
-
shadow: $shadow,
|
|
70
|
-
));
|
|
71
|
-
}
|
|
72
3
|
|
|
73
4
|
/// Toast Component
|
|
74
5
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
@@ -1,67 +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
|
-
/// Returns a map containing all style properties related to the theming the tooltip directive.
|
|
13
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
14
|
-
///
|
|
15
|
-
/// @param {Color} $background [null] - The background color of the tooltip.
|
|
16
|
-
/// @param {Color} $text-color [null] - The text color of the tooltip.
|
|
17
|
-
///
|
|
18
|
-
/// @param {List} $border-radius [null] - The border radius used for the tooltip component.
|
|
19
|
-
/// @param {box-shadow} $shadow [null] - Sets a shadow to be used for the tooltip component.
|
|
20
|
-
///
|
|
21
|
-
/// @requires $light-material-schema
|
|
22
|
-
///
|
|
23
|
-
/// @example scss Change the tooltip background
|
|
24
|
-
/// $my-tooltip-theme: tooltip-theme($background: magenta);
|
|
25
|
-
/// // Pass the theme to the css-vars() mixin
|
|
26
|
-
/// @include css-vars($my-tooltip-theme);
|
|
27
|
-
@function tooltip-theme(
|
|
28
|
-
$schema: $light-material-schema,
|
|
29
|
-
|
|
30
|
-
$border-radius: null,
|
|
31
|
-
$shadow: null,
|
|
32
|
-
$background: null,
|
|
33
|
-
$text-color: null
|
|
34
|
-
) {
|
|
35
|
-
$name: 'igx-tooltip';
|
|
36
|
-
$selector: '.igx-tooltip';
|
|
37
|
-
$tooltip-schema: ();
|
|
38
|
-
|
|
39
|
-
@if map.has-key($schema, 'tooltip') {
|
|
40
|
-
$tooltip-schema: map.get($schema, 'tooltip');
|
|
41
|
-
} @else {
|
|
42
|
-
$tooltip-schema: $schema;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
$theme: digest-schema($tooltip-schema);
|
|
46
|
-
|
|
47
|
-
@if not($shadow) {
|
|
48
|
-
$elevation: map.get($tooltip-schema, 'elevation');
|
|
49
|
-
$shadow: elevation($elevation);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@if not($text-color) and $background {
|
|
53
|
-
$text-color: adaptive-contrast($background);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@return extend($theme, (
|
|
57
|
-
name: $name,
|
|
58
|
-
selector: $selector,
|
|
59
|
-
background: $background,
|
|
60
|
-
text-color: $text-color,
|
|
61
|
-
border-radius: $border-radius,
|
|
62
|
-
shadow: $shadow,
|
|
63
|
-
));
|
|
64
|
-
}
|
|
65
3
|
|
|
66
4
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
67
5
|
/// @see {mixin} css-vars
|
|
@@ -1,133 +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
|
-
////
|
|
11
|
-
|
|
12
|
-
/// Returns a map containing all style properties related to the theming of the tree component.
|
|
13
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
14
|
-
/// @param {Color} background [null] - The background color used for the tree node.
|
|
15
|
-
/// @param {Color} foreground [null] - The color used for the tree node content.
|
|
16
|
-
/// @param {Color} icon-color [null] - The color used for the tree node icon.
|
|
17
|
-
/// @param {Color} background-selected [null] - The background color used for the selected tree node.
|
|
18
|
-
/// @param {Color} foreground-selected [null] - The color used for the content of the selected tree node.
|
|
19
|
-
/// @param {Color} background-active [null] - The background color used for the active tree node.
|
|
20
|
-
/// @param {Color} foreground-active [null] - The color used for the content of the active tree node.
|
|
21
|
-
/// @param {Color} background-active-selected [null] - The background color used for the active selected tree node.
|
|
22
|
-
/// @param {Color} foreground-active-selected [null] - The color used for the content of the active selected tree node.
|
|
23
|
-
/// @param {Color} background-disabled [null] - The background color used for the tree node in disabled state.
|
|
24
|
-
/// @param {Color} foreground-disabled [null] - The color used for the content of the disabled tree node.
|
|
25
|
-
/// @param {Color} drop-area-color [null] - The background color used for the tree node drop aria.
|
|
26
|
-
/// @param {Color} border-color [null] - The outline shadow color used for tree node in focus state.
|
|
27
|
-
/// @param {Color} hover-color [null] - The background color used for the tree node on hover.
|
|
28
|
-
/// @param {Color} hover-selected-color [null] - The background color used for the selected tree node on hover.
|
|
29
|
-
/// @requires $light-material-schema
|
|
30
|
-
///
|
|
31
|
-
/// @example scss Change the tree background
|
|
32
|
-
/// $my-tree-theme: tree-theme($background: magenta);
|
|
33
|
-
/// // Pass the theme to the css-vars() mixin
|
|
34
|
-
/// @include css-vars($my-tree-theme);
|
|
35
|
-
@function tree-theme(
|
|
36
|
-
$schema: $light-material-schema,
|
|
37
|
-
$background: null,
|
|
38
|
-
$background-selected: null,
|
|
39
|
-
$background-active: null,
|
|
40
|
-
$background-active-selected: null,
|
|
41
|
-
$background-disabled: null,
|
|
42
|
-
$foreground: null,
|
|
43
|
-
$foreground-selected: null,
|
|
44
|
-
$foreground-active: null,
|
|
45
|
-
$foreground-active-selected: null,
|
|
46
|
-
$foreground-disabled: null,
|
|
47
|
-
$icon-color: null,
|
|
48
|
-
$drop-area-color: null,
|
|
49
|
-
$border-color: null,
|
|
50
|
-
$hover-color: null,
|
|
51
|
-
$hover-selected-color: null,
|
|
52
|
-
$size: null,
|
|
53
|
-
) {
|
|
54
|
-
$name: 'igx-tree';
|
|
55
|
-
$selector: 'igx-tree-node';
|
|
56
|
-
$tree-schema: ();
|
|
57
|
-
|
|
58
|
-
@if map.has-key($schema, 'tree') {
|
|
59
|
-
$tree-schema: map.get($schema, 'tree');
|
|
60
|
-
} @else {
|
|
61
|
-
$tree-schema: $schema;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
$theme: digest-schema($tree-schema);
|
|
65
|
-
|
|
66
|
-
@if not($foreground) and $background {
|
|
67
|
-
$foreground: adaptive-contrast(var(--background));
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@if not($background-selected) and $background {
|
|
71
|
-
$background-selected: hsl(from var(--background) h s calc(l * 0.9));
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@if not($hover-color) and $background {
|
|
75
|
-
$hover-color: hsla(from adaptive-contrast(var(--background)) h s l / 0.1);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@if not($hover-selected-color) and $background-selected {
|
|
79
|
-
$hover-selected-color: hsl(from var(--background-selected) h s calc(l * 0.9));
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@if not($foreground-selected) and $background-selected {
|
|
83
|
-
$foreground-selected: adaptive-contrast(var(--background-selected));
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@if not($background-active) and $background {
|
|
87
|
-
$background-active: hsl(from var(--background) h s calc(l * 0.9));
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
@if not($foreground-active) and $background-active {
|
|
91
|
-
$foreground-active: adaptive-contrast(var(--background-active));
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@if not($background-active-selected) and $background-active {
|
|
95
|
-
$background-active-selected: hsl(from var(--background-active) h s calc(l * 0.9));
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
@if not($foreground-active-selected) and $background-active-selected {
|
|
99
|
-
$foreground-active-selected: adaptive-contrast(var(--background-active-selected));
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
@if not($background-disabled) and $background {
|
|
103
|
-
$background-disabled: color-mix(in hsl, var(--background), transparent 50%);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
@if not($foreground-disabled) and $background-disabled {
|
|
107
|
-
$foreground-disabled: adaptive-contrast(var(--background-disabled));
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
@return extend($theme, (
|
|
111
|
-
name: $name,
|
|
112
|
-
selector: $selector,
|
|
113
|
-
background: $background,
|
|
114
|
-
foreground: $foreground,
|
|
115
|
-
icon-color: $icon-color,
|
|
116
|
-
background-selected: $background-selected,
|
|
117
|
-
foreground-selected: $foreground-selected,
|
|
118
|
-
background-active: $background-active,
|
|
119
|
-
foreground-active: $foreground-active,
|
|
120
|
-
background-active-selected: $background-active-selected,
|
|
121
|
-
foreground-active-selected: $foreground-active-selected,
|
|
122
|
-
background-disabled: $background-disabled,
|
|
123
|
-
foreground-disabled: $foreground-disabled,
|
|
124
|
-
drop-area-color: $drop-area-color,
|
|
125
|
-
border-color: $border-color,
|
|
126
|
-
hover-color: $hover-color,
|
|
127
|
-
hover-selected-color: $hover-selected-color,
|
|
128
|
-
size: $size,
|
|
129
|
-
));
|
|
130
|
-
}
|
|
131
3
|
|
|
132
4
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
133
5
|
/// @see {mixin} css-vars
|
|
@@ -1,65 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../base' as *;
|
|
3
|
-
@use '../../themes/schemas' as *;
|
|
4
|
-
|
|
5
|
-
////
|
|
6
|
-
/// @group themes
|
|
7
|
-
/// @access private
|
|
8
|
-
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
|
|
9
|
-
////
|
|
10
|
-
|
|
11
|
-
/// Returns a map containing all style properties related to the theming the watermark directive.
|
|
12
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
13
|
-
/// @param {Color} $base-color [null] - The base color for all elements of the watermark.
|
|
14
|
-
/// @param {Color} $image-color [null] - The color used for the stamp image.
|
|
15
|
-
/// @param {Number} $image-opacity [null] - The opacity of the stamp image.
|
|
16
|
-
/// @param {Color} $link-background [null] - The background color used for the link.
|
|
17
|
-
/// @param {Color} $color [null] - The color used for the link text.
|
|
18
|
-
/// @param {Color} $border-color [null] - The border color used for the link.
|
|
19
|
-
/// @param {List} $border-radius [null] - The border radius used for the link.
|
|
20
|
-
///
|
|
21
|
-
/// @example scss Change the watermark link background
|
|
22
|
-
/// $my-watermark-theme: watermark-theme($link-background: magenta);
|
|
23
|
-
/// // Pass the theme to the css-vars() mixin
|
|
24
|
-
/// @include css-vars($my-watermark-theme);
|
|
25
|
-
/// @requires $light-material-schema
|
|
26
|
-
@function watermark-theme(
|
|
27
|
-
$schema: $light-material-schema,
|
|
28
|
-
$base-color: null,
|
|
29
|
-
$image-color: null,
|
|
30
|
-
$image-opacity: null,
|
|
31
|
-
$link-background: null,
|
|
32
|
-
$color: null,
|
|
33
|
-
$border-color: null,
|
|
34
|
-
$border-radius: null,
|
|
35
|
-
) {
|
|
36
|
-
$name: 'igx-watermark';
|
|
37
|
-
$watermark-schema: ();
|
|
38
|
-
|
|
39
|
-
@if map.has-key($schema, 'watermark') {
|
|
40
|
-
$watermark-schema: map.get($schema, 'watermark');
|
|
41
|
-
} @else {
|
|
42
|
-
$watermark-schema: $schema;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
$theme: digest-schema($watermark-schema);
|
|
46
|
-
|
|
47
|
-
@if not($color) and $link-background {
|
|
48
|
-
$color: text-contrast($link-background);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@return extend($theme, (
|
|
52
|
-
name: $name,
|
|
53
|
-
selector: 'igc-trial-watermark',
|
|
54
|
-
base-color: $base-color,
|
|
55
|
-
image-color: $image-color,
|
|
56
|
-
image-opacity: $image-opacity,
|
|
57
|
-
link-background: $link-background,
|
|
58
|
-
color: $color,
|
|
59
|
-
border-color: $border-color,
|
|
60
|
-
border-radius: $border-radius,
|
|
61
|
-
));
|
|
62
|
-
}
|
|
63
3
|
|
|
64
4
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
65
5
|
/// @see {mixin} css-vars
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
@use '../components/time-picker/time-picker-component' as time-picker;
|
|
81
81
|
@use '../components/tree/tree-component' as tree;
|
|
82
82
|
@use '../components/watermark/watermark-component' as watermark;
|
|
83
|
+
@use '../components/input/file-input-component' as file-input;
|
|
83
84
|
@use '../print';
|
|
84
85
|
|
|
85
86
|
/// @param {boolean} $print-layout [true] - Activates the printing styles of the components.
|
|
@@ -196,6 +197,7 @@
|
|
|
196
197
|
@include time-picker.component();
|
|
197
198
|
@include tree.component();
|
|
198
199
|
@include watermark.component();
|
|
200
|
+
@include file-input.component();
|
|
199
201
|
|
|
200
202
|
// Build the component dependency-tree
|
|
201
203
|
@include base.dependecy-tree(base.$components);
|
|
@@ -572,6 +572,17 @@
|
|
|
572
572
|
@include input-group($input-group-theme-map);
|
|
573
573
|
}
|
|
574
574
|
|
|
575
|
+
@if is-used('igx-file-input', $exclude) {
|
|
576
|
+
$file-input-theme-map: file-input-theme(
|
|
577
|
+
$schema: $schema,
|
|
578
|
+
);
|
|
579
|
+
$file-input-theme-map: meta.call(
|
|
580
|
+
$theme-handler,
|
|
581
|
+
$file-input-theme-map
|
|
582
|
+
);
|
|
583
|
+
@include file-input($file-input-theme-map);
|
|
584
|
+
}
|
|
585
|
+
|
|
575
586
|
@if is-used('igx-list', $exclude) {
|
|
576
587
|
$list-theme-map: list-theme(
|
|
577
588
|
$schema: $schema,
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
@use '../components/tree/tree-theme' as *;
|
|
34
34
|
@use '../components/label/label-theme' as *;
|
|
35
35
|
@use '../components/query-builder/query-builder-theme' as *;
|
|
36
|
+
@use '../components/input/file-input-theme' as *;
|
|
36
37
|
|
|
37
38
|
@mixin typography($type-scale) {
|
|
38
39
|
@include badge-typography();
|
|
@@ -80,6 +81,9 @@
|
|
|
80
81
|
helper-text: 'body-2',
|
|
81
82
|
input-text: 'body-1'
|
|
82
83
|
));
|
|
84
|
+
@include file-input-typography($categories: (
|
|
85
|
+
file-text: 'body-1'
|
|
86
|
+
));
|
|
83
87
|
@include linear-bar-typography();
|
|
84
88
|
@include list-typography($categories: (
|
|
85
89
|
item: 'body-2',
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
@use '../components/tree/tree-theme' as *;
|
|
33
33
|
@use '../components/label/label-theme' as *;
|
|
34
34
|
@use '../components/query-builder/query-builder-theme' as *;
|
|
35
|
+
@use '../components/input/file-input-theme' as *;
|
|
35
36
|
|
|
36
37
|
@mixin typography() {
|
|
37
38
|
@include badge-typography();
|
|
@@ -83,6 +84,9 @@
|
|
|
83
84
|
helper-text: 'caption',
|
|
84
85
|
input-text: 'body-2'
|
|
85
86
|
));
|
|
87
|
+
@include file-input-typography($categories: (
|
|
88
|
+
file-text: 'body-2'
|
|
89
|
+
));
|
|
86
90
|
@include linear-bar-typography();
|
|
87
91
|
@include list-typography($categories: (
|
|
88
92
|
header: 'overline',
|
|
@@ -100,6 +104,7 @@
|
|
|
100
104
|
@include radio-typography($categories: (
|
|
101
105
|
label: 'body-2'
|
|
102
106
|
));
|
|
107
|
+
|
|
103
108
|
@include slider-typography();
|
|
104
109
|
@include snackbar-typography($categories: (
|
|
105
110
|
text: 'caption'
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
@use '../components/tree/tree-theme' as *;
|
|
33
33
|
@use '../components/label/label-theme' as *;
|
|
34
34
|
@use '../components/query-builder/query-builder-theme' as *;
|
|
35
|
+
@use '../components/input/file-input-theme' as *;
|
|
35
36
|
|
|
36
37
|
@mixin typography($type-scale) {
|
|
37
38
|
@include badge-typography($categories: (
|
|
@@ -78,6 +79,11 @@
|
|
|
78
79
|
helper-text: 'caption',
|
|
79
80
|
input-text: 'body-2'
|
|
80
81
|
));
|
|
82
|
+
|
|
83
|
+
@include file-input-typography($categories: (
|
|
84
|
+
file-text: 'body-2'
|
|
85
|
+
));
|
|
86
|
+
|
|
81
87
|
@include linear-bar-typography();
|
|
82
88
|
@include list-typography($categories: (
|
|
83
89
|
header: 'overline',
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
@use '../components/tree/tree-theme' as *;
|
|
33
33
|
@use '../components/label/label-theme' as *;
|
|
34
34
|
@use '../components/query-builder/query-builder-theme' as *;
|
|
35
|
+
@use '../components/input/file-input-theme' as *;
|
|
35
36
|
|
|
36
37
|
@mixin typography() {
|
|
37
38
|
@include badge-typography();
|
|
@@ -68,4 +69,5 @@
|
|
|
68
69
|
@include tree-typography();
|
|
69
70
|
@include label-typography();
|
|
70
71
|
@include query-builder-typography();
|
|
72
|
+
@include file-input-typography();
|
|
71
73
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-angular",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.9",
|
|
4
4
|
"description": "Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps",
|
|
5
5
|
"author": "Infragistics",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"tslib": "^2.3.0",
|
|
74
74
|
"igniteui-trial-watermark": "^3.1.0",
|
|
75
75
|
"lodash-es": "^4.17.21",
|
|
76
|
-
"igniteui-theming": "^19.1
|
|
76
|
+
"igniteui-theming": "^19.2.1",
|
|
77
77
|
"@igniteui/material-icons-extended": "^3.1.0"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|