igniteui-angular 20.0.8 → 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 +91 -39
- package/fesm2022/igniteui-angular.mjs.map +1 -1
- package/index.d.ts +23 -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 +1 -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
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, AfterViewInit, AfterViewChecked, OnDestroy, OnChanges, ElementRef, Renderer2, SimpleChanges, EventEmitter, TemplateRef, ApplicationRef, NgZone, Type, ViewContainerRef, OnInit, ChangeDetectorRef, ComponentRef, Injector, DoCheck, IterableDiffers, EmbeddedViewRef, IterableDiffer, TrackByFunction, IterableChanges, QueryList, AfterContentInit, PipeTransform, DestroyRef,
|
|
2
|
+
import { InjectionToken, AfterViewInit, AfterViewChecked, OnDestroy, OnChanges, ElementRef, Renderer2, SimpleChanges, EventEmitter, TemplateRef, ApplicationRef, NgZone, Type, ViewContainerRef, OnInit, ChangeDetectorRef, ComponentRef, Injector, DoCheck, IterableDiffers, EmbeddedViewRef, IterableDiffer, TrackByFunction, IterableChanges, QueryList, AfterContentChecked, AfterContentInit, PipeTransform, DestroyRef, EnvironmentInjector, SimpleChange } from '@angular/core';
|
|
3
3
|
import * as _angular_forms from '@angular/forms';
|
|
4
4
|
import { FormGroup, ValidationErrors, FormControl, NgModel, NgControl, FormControlName, ControlValueAccessor, Validator, AbstractControl, FormGroupDirective, RequiredValidator, MinValidator, MaxValidator, EmailValidator, MinLengthValidator, MaxLengthValidator, PatternValidator } from '@angular/forms';
|
|
5
5
|
import * as _angular_animations from '@angular/animations';
|
|
@@ -4881,8 +4881,11 @@ declare class IgxGridValidationService {
|
|
|
4881
4881
|
/**
|
|
4882
4882
|
* @hidden
|
|
4883
4883
|
* @internal
|
|
4884
|
+
Wraps the provided path into an array. This way FormGroup.get will return proper result.
|
|
4885
|
+
Otherwise, if the path is a string (e.g. 'address.street'), FormGroup.get will treat it as there is a nested structure
|
|
4886
|
+
and will look for control with a name of 'address' which returns undefined.
|
|
4884
4887
|
*/
|
|
4885
|
-
private
|
|
4888
|
+
private getFormControlPath;
|
|
4886
4889
|
/**
|
|
4887
4890
|
* @hidden
|
|
4888
4891
|
* @internal
|
|
@@ -4898,6 +4901,14 @@ declare class IgxGridValidationService {
|
|
|
4898
4901
|
* @internal
|
|
4899
4902
|
*/
|
|
4900
4903
|
add(rowId: any, form: FormGroup): void;
|
|
4904
|
+
/**
|
|
4905
|
+
* Checks the validity of the native ngControl
|
|
4906
|
+
*/
|
|
4907
|
+
isFieldInvalid(formGroup: FormGroup, fieldName: string): boolean;
|
|
4908
|
+
/**
|
|
4909
|
+
* Checks the validity of the native ngControl after edit
|
|
4910
|
+
*/
|
|
4911
|
+
isFieldValidAfterEdit(formGroup: FormGroup, fieldName: string): boolean;
|
|
4901
4912
|
/**
|
|
4902
4913
|
* @hidden
|
|
4903
4914
|
* @internal
|
|
@@ -7799,6 +7810,7 @@ declare const DropDownActionKey: {
|
|
|
7799
7810
|
readonly ESCAPE: "escape";
|
|
7800
7811
|
readonly ENTER: "enter";
|
|
7801
7812
|
readonly SPACE: "space";
|
|
7813
|
+
readonly TAB: "tab";
|
|
7802
7814
|
};
|
|
7803
7815
|
type DropDownActionKey = (typeof DropDownActionKey)[keyof typeof DropDownActionKey];
|
|
7804
7816
|
/**
|
|
@@ -8718,7 +8730,7 @@ declare const IGX_INPUT_GROUP_TYPE: InjectionToken<IgxInputGroupType>;
|
|
|
8718
8730
|
*/
|
|
8719
8731
|
type IgxInputGroupType = (typeof IgxInputGroupEnum)[keyof typeof IgxInputGroupEnum];
|
|
8720
8732
|
|
|
8721
|
-
declare class IgxInputGroupComponent implements IgxInputGroupBase {
|
|
8733
|
+
declare class IgxInputGroupComponent implements IgxInputGroupBase, AfterContentChecked {
|
|
8722
8734
|
element: ElementRef<HTMLElement>;
|
|
8723
8735
|
private _inputGroupType;
|
|
8724
8736
|
private document;
|
|
@@ -8895,12 +8907,18 @@ declare class IgxInputGroupComponent implements IgxInputGroupBase {
|
|
|
8895
8907
|
*/
|
|
8896
8908
|
get isTypeBox(): boolean;
|
|
8897
8909
|
/** @hidden @internal */
|
|
8898
|
-
uploadButtonHandler(): void;
|
|
8899
|
-
/** @hidden @internal */
|
|
8900
8910
|
clearValueHandler(): void;
|
|
8901
8911
|
/** @hidden @internal */
|
|
8902
8912
|
get isFileType(): boolean;
|
|
8903
8913
|
/** @hidden @internal */
|
|
8914
|
+
get isFileInput(): boolean;
|
|
8915
|
+
/** @hidden @internal */
|
|
8916
|
+
get isFileInputFilled(): any;
|
|
8917
|
+
/** @hidden @internal */
|
|
8918
|
+
get isFileInputFocused(): boolean;
|
|
8919
|
+
/** @hidden @internal */
|
|
8920
|
+
get isFileInputDisabled(): boolean;
|
|
8921
|
+
/** @hidden @internal */
|
|
8904
8922
|
get fileNames(): string;
|
|
8905
8923
|
/**
|
|
8906
8924
|
* Returns whether the `IgxInputGroupComponent` type is border.
|
|
@@ -5,5 +5,6 @@
|
|
|
5
5
|
@forward 'igniteui-theming/sass/color';
|
|
6
6
|
@forward 'igniteui-theming/sass/elevations';
|
|
7
7
|
@forward 'igniteui-theming/sass/themes';
|
|
8
|
+
@forward 'igniteui-theming/sass/themes/components';
|
|
8
9
|
@forward 'igniteui-theming/sass/typography' hide typography;
|
|
9
10
|
@forward 'igniteui-theming/sass/utils';
|
|
@@ -1,65 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../base' as *;
|
|
3
|
-
@use '../../themes/schemas' as *;
|
|
4
3
|
@use 'igniteui-theming/sass/animations/easings' as *;
|
|
5
4
|
|
|
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} $color [null] - The text color used of the avatar.
|
|
16
|
-
/// @param {Color} $icon-color [null] - The icon color used of the avatar.
|
|
17
|
-
/// @param {Color} $background [null] - The background color used of the avatar.
|
|
18
|
-
/// @param {Number} $border-radius [null] - The border-radius used of the avatar.
|
|
19
|
-
/// @param {Number} $size [null] - The size of the avatar.
|
|
20
|
-
/// @requires $light-material-schema
|
|
21
|
-
///
|
|
22
|
-
/// @example scss Change the background and icon colors in icon avatars
|
|
23
|
-
/// $my-avatar-theme: avatar-theme($icon-background: black, $icon-color: white);
|
|
24
|
-
/// // Pass the theme to the css-vars() mixin
|
|
25
|
-
/// @include css-vars($my-avatar-theme);
|
|
26
|
-
@function avatar-theme(
|
|
27
|
-
$schema: $light-material-schema,
|
|
28
|
-
$background: null,
|
|
29
|
-
$color: null,
|
|
30
|
-
$icon-color: null,
|
|
31
|
-
$border-radius: null,
|
|
32
|
-
$size: null,
|
|
33
|
-
) {
|
|
34
|
-
$name: 'igx-avatar';
|
|
35
|
-
$avatar-schema: ();
|
|
36
|
-
|
|
37
|
-
@if map.has-key($schema, 'avatar') {
|
|
38
|
-
$avatar-schema: map.get($schema, 'avatar');
|
|
39
|
-
} @else {
|
|
40
|
-
$avatar-schema: $schema;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
$theme: digest-schema($avatar-schema);
|
|
44
|
-
|
|
45
|
-
@if not($color) and $background {
|
|
46
|
-
$color: adaptive-contrast(var(--background));
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@if not($icon-color) and $background {
|
|
50
|
-
$icon-color: adaptive-contrast(var(--background));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@return extend($theme, (
|
|
54
|
-
name: $name,
|
|
55
|
-
background: $background,
|
|
56
|
-
color: $color,
|
|
57
|
-
icon-color: $icon-color,
|
|
58
|
-
border-radius: $border-radius,
|
|
59
|
-
size: $size,
|
|
60
|
-
));
|
|
61
|
-
}
|
|
62
|
-
|
|
63
5
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
64
6
|
/// @see {mixin} css-vars
|
|
65
7
|
/// @param {Map} $theme - The theme used to style the component.
|
|
@@ -1,78 +1,6 @@
|
|
|
1
1
|
@use '../../base' as *;
|
|
2
|
-
@use '../../themes/schemas' as *;
|
|
3
2
|
@use 'sass:map';
|
|
4
3
|
|
|
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, text/icon color
|
|
13
|
-
/// 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
|
-
/// @param {Color} $icon-color [null] - The icon color used.
|
|
17
|
-
/// @param {Color} $text-color [null] - The text color used.
|
|
18
|
-
/// @param {Color} $border-color [null] - The border color used.
|
|
19
|
-
/// @param {Color} $background-color [null] - The background color used.
|
|
20
|
-
/// @param {box-shadow} $shadow [null] - Sets a shadow to be used for the badge.
|
|
21
|
-
/// @param {Number} $border-radius [null] - The border radius used for badge component.
|
|
22
|
-
///
|
|
23
|
-
/// @requires $light-material-schema
|
|
24
|
-
///
|
|
25
|
-
/// @example scss Change the text and icon colors in a badge
|
|
26
|
-
/// $my-badge-theme: badge-theme($icon-color: black, $background-color: white);
|
|
27
|
-
/// // Pass the theme to the css-vars() mixin
|
|
28
|
-
/// @include css-vars($my-badge-theme);
|
|
29
|
-
@function badge-theme(
|
|
30
|
-
$schema: $light-material-schema,
|
|
31
|
-
|
|
32
|
-
$icon-color: null,
|
|
33
|
-
$text-color: null,
|
|
34
|
-
|
|
35
|
-
$border-color: null,
|
|
36
|
-
$border-radius: null,
|
|
37
|
-
|
|
38
|
-
$background-color: null,
|
|
39
|
-
$shadow: null,
|
|
40
|
-
) {
|
|
41
|
-
$name: 'igx-badge';
|
|
42
|
-
$badge-schema: ();
|
|
43
|
-
|
|
44
|
-
@if map.has-key($schema, 'badge') {
|
|
45
|
-
$badge-schema: map.get($schema, 'badge');
|
|
46
|
-
} @else {
|
|
47
|
-
$badge-schema: $schema;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
$theme: digest-schema($badge-schema);
|
|
51
|
-
|
|
52
|
-
@if not($icon-color) and $background-color {
|
|
53
|
-
$icon-color: adaptive-contrast(var(--background-color));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@if not($text-color) and $background-color {
|
|
57
|
-
$text-color: adaptive-contrast(var(--background-color));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@if not($shadow) {
|
|
61
|
-
$elevation: map.get($badge-schema, 'elevation');
|
|
62
|
-
$shadow: elevation($elevation);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@return extend($theme, (
|
|
66
|
-
name: $name,
|
|
67
|
-
icon-color: $icon-color,
|
|
68
|
-
text-color: $text-color,
|
|
69
|
-
border-color: $border-color,
|
|
70
|
-
border-radius: $border-radius,
|
|
71
|
-
background-color: $background-color,
|
|
72
|
-
shadow: $shadow,
|
|
73
|
-
));
|
|
74
|
-
}
|
|
75
|
-
|
|
76
4
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
77
5
|
/// @see {mixin} css-vars
|
|
78
6
|
/// @param {Map} $theme - The theme used to style the component.
|
|
@@ -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/desig9stein" target="_blank">Marin Popov</a>
|
|
9
|
-
////
|
|
10
|
-
|
|
11
|
-
/// If only background color is specified, text/icon color
|
|
12
|
-
/// will be assigned automatically to a contrasting color.
|
|
13
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
14
|
-
///
|
|
15
|
-
/// @param {Color} $banner-background [null] - The color used for the banner background.
|
|
16
|
-
/// @param {Color} $banner-message-color [null] - The color used for the banner label.
|
|
17
|
-
/// @param {Color} $banner-border-color [null] - The color used for the banner border.
|
|
18
|
-
/// @param {Color} $banner-illustration-color [null] - The color used for the banner illustration.
|
|
19
|
-
/// @param {Number} $border-radius [null] - The border-radius for the banner.
|
|
20
|
-
///
|
|
21
|
-
/// @requires $light-material-schema
|
|
22
|
-
///
|
|
23
|
-
/// @example scss Change the background in banner
|
|
24
|
-
/// $my-banner-theme: banner-theme($banner-background: #000);
|
|
25
|
-
/// // Pass the theme to the css-vars() mixin
|
|
26
|
-
/// @include css-vars($my-banner-theme);
|
|
27
|
-
@function banner-theme(
|
|
28
|
-
$schema: $light-material-schema,
|
|
29
|
-
$banner-background: null,
|
|
30
|
-
$banner-message-color: null,
|
|
31
|
-
$banner-border-color: null,
|
|
32
|
-
$banner-illustration-color: null,
|
|
33
|
-
$border-radius: null,
|
|
34
|
-
) {
|
|
35
|
-
$name: 'igx-banner';
|
|
36
|
-
$selector: 'igx-banner, .igx-banner';
|
|
37
|
-
$banner-schema: ();
|
|
38
|
-
|
|
39
|
-
@if map.has-key($schema, 'banner') {
|
|
40
|
-
$banner-schema: map.get($schema, 'banner');
|
|
41
|
-
} @else {
|
|
42
|
-
$banner-schema: $schema;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
$theme: digest-schema($banner-schema);
|
|
46
|
-
|
|
47
|
-
@if not($banner-message-color) and $banner-background {
|
|
48
|
-
$banner-message-color: adaptive-contrast(var(--banner-background));
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@if not($banner-illustration-color) and $banner-background {
|
|
52
|
-
$banner-illustration-color: adaptive-contrast(var(--banner-background));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
@return extend($theme, (
|
|
56
|
-
name: $name,
|
|
57
|
-
selector: $selector,
|
|
58
|
-
banner-background: $banner-background,
|
|
59
|
-
banner-message-color: $banner-message-color,
|
|
60
|
-
banner-border-color: $banner-border-color,
|
|
61
|
-
banner-illustration-color: $banner-illustration-color,
|
|
62
|
-
border-radius: $border-radius,
|
|
63
|
-
));
|
|
64
|
-
}
|
|
65
3
|
|
|
66
4
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
67
5
|
/// @see {mixin} css-vars
|
|
@@ -1,107 +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/simeonoff" target="_blank">Simeon Simeonoff</a>
|
|
11
|
-
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
|
|
12
|
-
////
|
|
13
|
-
|
|
14
|
-
/// If only background color is specified,
|
|
15
|
-
/// the label and icon colors will be assigned automatically to a contrasting color.
|
|
16
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
17
|
-
/// @param {Color} $background [null] - The background color used for the toast.
|
|
18
|
-
/// @param {Color} $label-color [null] - The label color used in idle state.
|
|
19
|
-
/// @param {Color} $icon-color [null] - The icon color used in idle state.
|
|
20
|
-
/// @param {Color} $label-selected-color [null] - The label color used in selected state.
|
|
21
|
-
/// @param {Color} $icon-selected-color [null] - The icon color used in selected state.
|
|
22
|
-
/// @param {Color} $icon-disabled-color [null] - The disabled color of the icon.
|
|
23
|
-
/// @param {Color} $label-disabled-color [null] - The disabled color of the label.
|
|
24
|
-
/// @param {Color} $border-color [null] - The border color of the bottom navigation.
|
|
25
|
-
/// @param {box-shadow} $shadow [null] - Sets a shadow to be used for the bar.
|
|
26
|
-
/// @requires $light-material-schema
|
|
27
|
-
/// @example scss Set a custom background color
|
|
28
|
-
/// $my-bottom-nav-theme: bottom-nav-theme($background: black);
|
|
29
|
-
/// // Pass the theme to the css-vars() mixin
|
|
30
|
-
/// @include css-vars($my-bottom-nav-theme);
|
|
31
|
-
@function bottom-nav-theme(
|
|
32
|
-
$schema: $light-material-schema,
|
|
33
|
-
$background: null,
|
|
34
|
-
$icon-color: null,
|
|
35
|
-
$icon-selected-color: null,
|
|
36
|
-
$label-color: null,
|
|
37
|
-
$label-selected-color: null,
|
|
38
|
-
$icon-disabled-color: null,
|
|
39
|
-
$label-disabled-color: null,
|
|
40
|
-
$border-color: null,
|
|
41
|
-
$shadow: null,
|
|
42
|
-
) {
|
|
43
|
-
$name: 'igx-bottom-nav';
|
|
44
|
-
$bottom-nav-schema: ();
|
|
45
|
-
|
|
46
|
-
@if map.has-key($schema, 'bottom-nav') {
|
|
47
|
-
$bottom-nav-schema: map.get($schema, 'bottom-nav');
|
|
48
|
-
} @else {
|
|
49
|
-
$bottom-nav-schema: $schema;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
$theme: digest-schema($bottom-nav-schema);
|
|
53
|
-
|
|
54
|
-
@if not($label-color) and not($icon-color) and $background {
|
|
55
|
-
$label-color: adaptive-contrast(var(--background));
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@if not($icon-color) and $label-color {
|
|
59
|
-
$icon-color: $label-color;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@if not($label-color) and $icon-color {
|
|
63
|
-
$label-color: $icon-color;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@if not($icon-disabled-color) and not($label-disabled-color) and $label-color {
|
|
67
|
-
$label-disabled-color: adaptive-contrast(var(--background));
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@if not($icon-disabled-color) and $label-disabled-color {
|
|
71
|
-
$icon-disabled-color: $label-disabled-color;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@if not($label-disabled-color) and $icon-disabled-color {
|
|
75
|
-
$label-disabled-color: $icon-disabled-color;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@if not($icon-selected-color) and $label-selected-color {
|
|
79
|
-
$icon-selected-color: $label-selected-color;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@if not($label-selected-color) and $icon-selected-color {
|
|
83
|
-
$label-selected-color: $icon-selected-color;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@if not($shadow) {
|
|
87
|
-
$elevation: map.get($bottom-nav-schema, 'elevation');
|
|
88
|
-
$shadow: elevation($elevation);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
@return extend($theme, (
|
|
92
|
-
name: $name,
|
|
93
|
-
background: $background,
|
|
94
|
-
icon-color: $icon-color,
|
|
95
|
-
icon-selected-color: $icon-selected-color,
|
|
96
|
-
label-color: $label-color,
|
|
97
|
-
label-selected-color: $label-selected-color,
|
|
98
|
-
icon-disabled-color: $icon-disabled-color,
|
|
99
|
-
label-disabled-color: $label-disabled-color,
|
|
100
|
-
border-color: $border-color,
|
|
101
|
-
shadow: $shadow,
|
|
102
|
-
));
|
|
103
|
-
}
|
|
104
|
-
|
|
105
5
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
106
6
|
/// @see {mixin} css-vars
|
|
107
7
|
/// @param {Map} $theme - The theme used to style the component.
|
|
@@ -1,242 +1,8 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use 'sass:meta';
|
|
3
|
-
@use 'sass:color';
|
|
4
3
|
@use 'sass:list';
|
|
5
4
|
@use 'sass:string';
|
|
6
5
|
@use '../../base' as *;
|
|
7
|
-
@use '../../themes/schemas' as *;
|
|
8
|
-
|
|
9
|
-
@forward './flat-button-theme';
|
|
10
|
-
@forward './contained-button-theme';
|
|
11
|
-
@forward './outlined-button-theme';
|
|
12
|
-
@forward './fab-button-theme';
|
|
13
|
-
|
|
14
|
-
////
|
|
15
|
-
/// @group themes
|
|
16
|
-
/// @access public
|
|
17
|
-
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
|
|
18
|
-
/// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
|
|
19
|
-
////
|
|
20
|
-
|
|
21
|
-
/// If only background color is specified, text/icon color
|
|
22
|
-
/// will be assigned automatically to a contrasting color.
|
|
23
|
-
/// Does ___not___ apply for disabled state colors.
|
|
24
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
25
|
-
/// @param {Color} $background [null] - The background color of the button.
|
|
26
|
-
/// @param {Color} $foreground [null] - The text color of the button.
|
|
27
|
-
/// @param {Color} $icon-color [null] - The icon color in the button.
|
|
28
|
-
/// @param {Color} $icon-color-hover [null] - The icon color in the button on hover.
|
|
29
|
-
/// @param {Color} $hover-background [null] - The hover background color of the button.
|
|
30
|
-
/// @param {Color} $hover-foreground [null] - The hover text color of the button.
|
|
31
|
-
/// @param {Color} $focus-background [null] - The focus background color of the button.
|
|
32
|
-
/// @param {Color} $focus-foreground [null] - The focus text color of the button.
|
|
33
|
-
/// @param {Color} $focus-hover-background [null] - The background color on focus hovered state of the button.
|
|
34
|
-
/// @param {Color} $focus-hover-foreground [null] - The text color on focus hovered state of the button.
|
|
35
|
-
/// @param {Color} $focus-visible-background [null] - The focus-visible background color of the button.
|
|
36
|
-
/// @param {Color} $focus-visible-foreground [null] - The focus-visible text color of the button.
|
|
37
|
-
/// @param {Color} $active-background [null] - The active background of the button.
|
|
38
|
-
/// @param {Color} $active-foreground [null] - The active text color of the button.
|
|
39
|
-
/// @param {List} $border-radius [null] - The border radius of the button.
|
|
40
|
-
/// @param {Color} $border-color [null] - The border color of the button.
|
|
41
|
-
/// @param {Color} $hover-border-color [null] - The hover border color of the button.
|
|
42
|
-
/// @param {Color} $focus-border-color [null] - The focus border color of the button.
|
|
43
|
-
/// @param {Color} $focus-visible-border-color [null] - The focus-visible border color of the button.
|
|
44
|
-
/// @param {Color} $active-border-color [null] - The active border color of the button.
|
|
45
|
-
/// @param {Color} $shadow-color [null] - The shadow color of the button.
|
|
46
|
-
/// @param {Color} $resting-shadow [null] - The shadow of the button in its idle state.
|
|
47
|
-
/// @param {Color} $hover-shadow [null] - The shadow of the button in its hover state.
|
|
48
|
-
/// @param {Color} $focus-shadow [null] - The shadow of the button in its focus state.
|
|
49
|
-
/// @param {Color} $active-shadow [null] - The shadow of the button in its active state.
|
|
50
|
-
/// @param {Color} $disabled-background [null] - The disabled background color of the button.
|
|
51
|
-
/// @param {Color} $disabled-foreground [null] - The disabled text color of the button.
|
|
52
|
-
/// @param {Color} $disabled-icon-color [null] - The disabled icon color of the button.
|
|
53
|
-
/// @param {Color} $disabled-border-color [null] - The disabled border color of the button.
|
|
54
|
-
///
|
|
55
|
-
/// @requires $light-material-schema
|
|
56
|
-
///
|
|
57
|
-
/// @example scss Change the background and text colors in contained buttons
|
|
58
|
-
/// $my-button-theme: button-theme(
|
|
59
|
-
/// $foreground: white,
|
|
60
|
-
/// $background: black
|
|
61
|
-
/// );
|
|
62
|
-
/// // Pass the theme to the css-vars() mixin
|
|
63
|
-
/// @include css-vars($my-button-theme);
|
|
64
|
-
@function button-theme(
|
|
65
|
-
$schema: $light-material-schema,
|
|
66
|
-
|
|
67
|
-
$background: null,
|
|
68
|
-
$foreground: null,
|
|
69
|
-
|
|
70
|
-
$hover-background: null,
|
|
71
|
-
$hover-foreground: null,
|
|
72
|
-
|
|
73
|
-
$icon-color: $foreground,
|
|
74
|
-
$icon-color-hover: $hover-foreground,
|
|
75
|
-
|
|
76
|
-
$focus-background: null,
|
|
77
|
-
$focus-foreground: null,
|
|
78
|
-
|
|
79
|
-
$focus-hover-background: null,
|
|
80
|
-
$focus-hover-foreground: null,
|
|
81
|
-
|
|
82
|
-
$focus-visible-background: null,
|
|
83
|
-
$focus-visible-foreground: null,
|
|
84
|
-
|
|
85
|
-
$active-background: null,
|
|
86
|
-
$active-foreground: null,
|
|
87
|
-
|
|
88
|
-
$border-radius: null,
|
|
89
|
-
$border-color: null,
|
|
90
|
-
$hover-border-color: null,
|
|
91
|
-
$focus-border-color: null,
|
|
92
|
-
$focus-visible-border-color: null,
|
|
93
|
-
$active-border-color: null,
|
|
94
|
-
|
|
95
|
-
$shadow-color: null,
|
|
96
|
-
|
|
97
|
-
$resting-shadow: null,
|
|
98
|
-
$hover-shadow: null,
|
|
99
|
-
$focus-shadow: null,
|
|
100
|
-
$active-shadow: null,
|
|
101
|
-
|
|
102
|
-
$disabled-background: null,
|
|
103
|
-
$disabled-foreground: null,
|
|
104
|
-
$disabled-icon-color: $disabled-foreground,
|
|
105
|
-
$disabled-border-color: null,
|
|
106
|
-
$size: null,
|
|
107
|
-
) {
|
|
108
|
-
$name: 'igx-button';
|
|
109
|
-
$button-schema: ();
|
|
110
|
-
|
|
111
|
-
@if map.has-key($schema, 'button') {
|
|
112
|
-
$button-schema: map.get($schema, 'button');
|
|
113
|
-
} @else {
|
|
114
|
-
$button-schema: $schema;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
$themes: ();
|
|
118
|
-
$variant: null;
|
|
119
|
-
|
|
120
|
-
@each $_name, $_schema in $button-schema {
|
|
121
|
-
$_resting-shadow: $resting-shadow;
|
|
122
|
-
$_hover-shadow: $hover-shadow;
|
|
123
|
-
$_focus-shadow: $focus-shadow;
|
|
124
|
-
$_active-shadow: $active-shadow;
|
|
125
|
-
$_border-radius: $border-radius;
|
|
126
|
-
|
|
127
|
-
@if not($variant) {
|
|
128
|
-
$variant: map.get($schema, '_meta', 'theme');
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
@if not($foreground) and $background {
|
|
132
|
-
$foreground: adaptive-contrast(var(--background));
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
@if not($icon-color) and $background {
|
|
136
|
-
$icon-color: adaptive-contrast(var(--background));
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
@if not($hover-foreground) and $hover-background {
|
|
140
|
-
$hover-foreground: adaptive-contrast(var(--hover-background));
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
@if not($icon-color-hover) and $hover-foreground {
|
|
144
|
-
$icon-color-hover: var(--hover-foreground);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
@if not($focus-foreground) and $focus-background {
|
|
148
|
-
$focus-foreground: adaptive-contrast(var(--focus-background));
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
@if not($focus-hover-foreground) and $focus-hover-background {
|
|
152
|
-
$focus-hover-foreground: adaptive-contrast(var(--focus-hover-background));
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
@if not($focus-visible-background) and $focus-background {
|
|
156
|
-
$focus-visible-background: var(--focus-background);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
@if not($focus-visible-foreground) and $focus-visible-background {
|
|
160
|
-
$focus-visible-foreground: adaptive-contrast(var(--focus-visible-background));
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
@if not($focus-visible-border-color) and $focus-border-color {
|
|
164
|
-
$focus-visible-border-color: var(--focus-border-color);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
@if not($_resting-shadow) {
|
|
168
|
-
$resting-elevation: map.get($_schema, 'resting-elevation');
|
|
169
|
-
$_resting-shadow: elevation($resting-elevation);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
@if not($_hover-shadow) {
|
|
173
|
-
$hover-elevation: map.get($_schema, 'hover-elevation');
|
|
174
|
-
$_hover-shadow: elevation($hover-elevation);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
@if not($_focus-shadow) {
|
|
178
|
-
$focus-elevation: map.get($_schema, 'focus-elevation');
|
|
179
|
-
$_focus-shadow: elevation($focus-elevation);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
@if not($_active-shadow) {
|
|
183
|
-
$active-elevation: map.get($_schema, 'active-elevation');
|
|
184
|
-
$_active-shadow: elevation($active-elevation);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
$themes: map.merge($themes, (
|
|
188
|
-
$_name: extend( digest-schema($_schema), (
|
|
189
|
-
name: $name,
|
|
190
|
-
background: $background,
|
|
191
|
-
foreground: $foreground,
|
|
192
|
-
|
|
193
|
-
icon-color: $icon-color,
|
|
194
|
-
icon-color-hover: $icon-color-hover,
|
|
195
|
-
|
|
196
|
-
hover-background: $hover-background,
|
|
197
|
-
hover-foreground: $hover-foreground,
|
|
198
|
-
|
|
199
|
-
focus-background: $focus-background,
|
|
200
|
-
focus-foreground: $focus-foreground,
|
|
201
|
-
|
|
202
|
-
focus-hover-background: $focus-hover-background,
|
|
203
|
-
focus-hover-foreground: $focus-hover-foreground,
|
|
204
|
-
|
|
205
|
-
focus-visible-background: $focus-visible-background,
|
|
206
|
-
focus-visible-foreground: $focus-visible-foreground,
|
|
207
|
-
|
|
208
|
-
active-background: $active-background,
|
|
209
|
-
active-foreground: $active-foreground,
|
|
210
|
-
|
|
211
|
-
border-radius: $_border-radius,
|
|
212
|
-
border-color: $border-color,
|
|
213
|
-
hover-border-color: $hover-border-color,
|
|
214
|
-
focus-border-color: $focus-border-color,
|
|
215
|
-
focus-visible-border-color: $focus-visible-border-color,
|
|
216
|
-
active-border-color: $active-border-color,
|
|
217
|
-
|
|
218
|
-
shadow-color: $shadow-color,
|
|
219
|
-
|
|
220
|
-
resting-shadow: $_resting-shadow,
|
|
221
|
-
hover-shadow: $_hover-shadow,
|
|
222
|
-
focus-shadow: $_focus-shadow,
|
|
223
|
-
active-shadow: $_active-shadow,
|
|
224
|
-
|
|
225
|
-
disabled-background: $disabled-background,
|
|
226
|
-
disabled-foreground: $disabled-foreground,
|
|
227
|
-
disabled-icon-color: $disabled-icon-color,
|
|
228
|
-
disabled-border-color: $disabled-border-color,
|
|
229
|
-
size: $size,
|
|
230
|
-
))
|
|
231
|
-
));
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
@return (
|
|
235
|
-
name: $name,
|
|
236
|
-
variant: $variant,
|
|
237
|
-
themes: $themes,
|
|
238
|
-
);
|
|
239
|
-
}
|
|
240
6
|
|
|
241
7
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
242
8
|
/// @see {mixin} css-vars
|