igniteui-angular 20.0.1 → 20.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/fesm2022/igniteui-angular.mjs +193 -27
  2. package/fesm2022/igniteui-angular.mjs.map +1 -1
  3. package/index.d.ts +5000 -4925
  4. package/lib/core/styles/components/_common/_igx-vhelper.scss +1 -0
  5. package/lib/core/styles/components/action-strip/_action-strip-theme.scss +2 -7
  6. package/lib/core/styles/components/avatar/_avatar-theme.scss +7 -8
  7. package/lib/core/styles/components/badge/_badge-theme.scss +3 -8
  8. package/lib/core/styles/components/banner/_banner-theme.scss +6 -7
  9. package/lib/core/styles/components/bottom-nav/_bottom-nav-theme.scss +17 -28
  10. package/lib/core/styles/components/button/_button-theme.scss +219 -158
  11. package/lib/core/styles/components/button/_contained-button-theme.scss +302 -0
  12. package/lib/core/styles/components/button/_fab-button-theme.scss +296 -0
  13. package/lib/core/styles/components/button/_flat-button-theme.scss +356 -0
  14. package/lib/core/styles/components/button/_outlined-button-theme.scss +419 -0
  15. package/lib/core/styles/components/button-group/_button-group-theme.scss +113 -29
  16. package/lib/core/styles/components/calendar/_calendar-theme.scss +502 -112
  17. package/lib/core/styles/components/card/_card-theme.scss +5 -16
  18. package/lib/core/styles/components/carousel/_carousel-theme.scss +103 -23
  19. package/lib/core/styles/components/checkbox/_checkbox-component.scss +1 -1
  20. package/lib/core/styles/components/checkbox/_checkbox-theme.scss +63 -11
  21. package/lib/core/styles/components/chip/_chip-theme.scss +64 -47
  22. package/lib/core/styles/components/column-actions/_column-actions-theme.scss +3 -8
  23. package/lib/core/styles/components/combo/_combo-theme.scss +61 -12
  24. package/lib/core/styles/components/dialog/_dialog-theme.scss +9 -12
  25. package/lib/core/styles/components/divider/_divider-theme.scss +1 -6
  26. package/lib/core/styles/components/drop-down/_drop-down-theme.scss +52 -32
  27. package/lib/core/styles/components/expansion-panel/_expansion-panel-theme.scss +18 -13
  28. package/lib/core/styles/components/grid/_grid-theme.scss +115 -94
  29. package/lib/core/styles/components/grid/_pivot-data-selector-theme.scss +1 -6
  30. package/lib/core/styles/components/grid-summary/_grid-summary-theme.scss +12 -13
  31. package/lib/core/styles/components/grid-toolbar/_grid-toolbar-theme.scss +7 -12
  32. package/lib/core/styles/components/highlight/highlight-theme.scss +2 -3
  33. package/lib/core/styles/components/icon/_icon-theme.scss +0 -1
  34. package/lib/core/styles/components/icon-button/_contained-icon-button-theme.scss +196 -0
  35. package/lib/core/styles/components/icon-button/_flat-icon-button-theme.scss +188 -0
  36. package/lib/core/styles/components/icon-button/_icon-button-theme.scss +45 -32
  37. package/lib/core/styles/components/icon-button/_outlined-icon-button-theme.scss +232 -0
  38. package/lib/core/styles/components/input/_input-group-component.scss +30 -0
  39. package/lib/core/styles/components/input/_input-group-theme.scss +341 -26
  40. package/lib/core/styles/components/label/_label-theme.scss +2 -4
  41. package/lib/core/styles/components/list/_list-theme.scss +42 -66
  42. package/lib/core/styles/components/navbar/_navbar-theme.scss +25 -15
  43. package/lib/core/styles/components/navdrawer/_navdrawer-theme.scss +24 -22
  44. package/lib/core/styles/components/overlay/_overlay-theme.scss +0 -1
  45. package/lib/core/styles/components/paginator/_paginator-theme.scss +2 -7
  46. package/lib/core/styles/components/progress/circular/_circular-theme.scss +3 -8
  47. package/lib/core/styles/components/progress/linear/_linear-theme.scss +1 -6
  48. package/lib/core/styles/components/query-builder/_query-builder-theme.scss +28 -11
  49. package/lib/core/styles/components/radio/_radio-theme.scss +54 -10
  50. package/lib/core/styles/components/ripple/_ripple-theme.scss +0 -1
  51. package/lib/core/styles/components/scrollbar/scrollbar-theme.scss +0 -1
  52. package/lib/core/styles/components/select/_select-theme.scss +35 -7
  53. package/lib/core/styles/components/slider/_slider-theme.scss +92 -7
  54. package/lib/core/styles/components/snackbar/_snackbar-theme.scss +3 -8
  55. package/lib/core/styles/components/splitter/_splitter-theme.scss +15 -8
  56. package/lib/core/styles/components/stepper/_stepper-theme.scss +190 -22
  57. package/lib/core/styles/components/switch/_switch-theme.scss +112 -8
  58. package/lib/core/styles/components/tabs/_tabs-theme.scss +124 -56
  59. package/lib/core/styles/components/time-picker/_time-picker-theme.scss +35 -18
  60. package/lib/core/styles/components/toast/_toast-theme.scss +9 -10
  61. package/lib/core/styles/components/tooltip/_tooltip-theme.scss +2 -7
  62. package/lib/core/styles/components/tree/_tree-theme.scss +33 -10
  63. package/lib/core/styles/components/watermark/_watermark-theme.scss +0 -1
  64. package/lib/core/styles/themes/_core.scss +6 -0
  65. package/lib/core/styles/themes/generators/_base.scss +146 -58
  66. package/migrations/migration-collection.json +5 -0
  67. package/migrations/update-20_0_2/changes/theme-changes.json +11 -0
  68. package/migrations/update-20_0_2/index.d.ts +3 -0
  69. package/migrations/update-20_0_2/index.js +18 -0
  70. package/package.json +1 -1
  71. package/styles/igniteui-angular-dark.css +1 -1
  72. package/styles/igniteui-angular.css +1 -1
  73. package/styles/igniteui-bootstrap-dark.css +1 -1
  74. package/styles/igniteui-bootstrap-light.css +1 -1
  75. package/styles/igniteui-dark-green.css +1 -1
  76. package/styles/igniteui-fluent-dark-excel.css +1 -1
  77. package/styles/igniteui-fluent-dark-word.css +1 -1
  78. package/styles/igniteui-fluent-dark.css +1 -1
  79. package/styles/igniteui-fluent-light-excel.css +1 -1
  80. package/styles/igniteui-fluent-light-word.css +1 -1
  81. package/styles/igniteui-fluent-light.css +1 -1
  82. package/styles/igniteui-indigo-dark.css +1 -1
  83. package/styles/igniteui-indigo-light.css +1 -1
  84. package/styles/maps/igniteui-angular-dark.css.map +1 -1
  85. package/styles/maps/igniteui-angular.css.map +1 -1
  86. package/styles/maps/igniteui-bootstrap-dark.css.map +1 -1
  87. package/styles/maps/igniteui-bootstrap-light.css.map +1 -1
  88. package/styles/maps/igniteui-dark-green.css.map +1 -1
  89. package/styles/maps/igniteui-fluent-dark-excel.css.map +1 -1
  90. package/styles/maps/igniteui-fluent-dark-word.css.map +1 -1
  91. package/styles/maps/igniteui-fluent-dark.css.map +1 -1
  92. package/styles/maps/igniteui-fluent-light-excel.css.map +1 -1
  93. package/styles/maps/igniteui-fluent-light-word.css.map +1 -1
  94. package/styles/maps/igniteui-fluent-light.css.map +1 -1
  95. package/styles/maps/igniteui-indigo-dark.css.map +1 -1
  96. package/styles/maps/igniteui-indigo-light.css.map +1 -1
@@ -12,6 +12,7 @@
12
12
  position: absolute;
13
13
  top: 0;
14
14
  inset-inline-end: 0;
15
+ width: var(--vhelper-scrollbar-size);
15
16
  }
16
17
 
17
18
  %vhelper--horizontal {
@@ -41,10 +41,9 @@
41
41
  }
42
42
 
43
43
  $theme: digest-schema($action-strip-schema);
44
- $meta: map.get($theme, '_meta');
45
44
 
46
45
  @if not($icon-color) and $actions-background {
47
- $icon-color: text-contrast($actions-background);
46
+ $icon-color: adaptive-contrast(var(--actions-background));
48
47
  }
49
48
 
50
49
  @if not($actions-border-radius) {
@@ -58,10 +57,6 @@
58
57
  icon-color: $icon-color,
59
58
  delete-action: $delete-action,
60
59
  actions-border-radius: $actions-border-radius,
61
- theme: map.get($schema, '_meta', 'theme'),
62
- _meta: map.merge(if($meta, $meta, ()), (
63
- variant: map.get($schema, '_meta', 'theme')
64
- )),
65
60
  ));
66
61
  }
67
62
 
@@ -71,7 +66,7 @@
71
66
  @mixin action-strip($theme) {
72
67
  @include css-vars($theme);
73
68
 
74
- $variant: map.get($theme, '_meta', 'variant');
69
+ $variant: map.get($theme, '_meta', 'theme');
75
70
  $icon-button-size: map.get((
76
71
  'material': rem(36px),
77
72
  'fluent': rem(32px),
@@ -41,10 +41,13 @@
41
41
  }
42
42
 
43
43
  $theme: digest-schema($avatar-schema);
44
- $meta: map.get($theme, '_meta');
45
44
 
46
45
  @if not($color) and $background {
47
- $color: text-contrast($background);
46
+ $color: adaptive-contrast(var(--background));
47
+ }
48
+
49
+ @if not($icon-color) and $background {
50
+ $icon-color: adaptive-contrast(var(--background));
48
51
  }
49
52
 
50
53
  @return extend($theme, (
@@ -54,10 +57,6 @@
54
57
  icon-color: $icon-color,
55
58
  border-radius: $border-radius,
56
59
  size: $size,
57
- theme: map.get($schema, '_meta', 'theme'),
58
- _meta: map.merge(if($meta, $meta, ()), (
59
- variant: map.get($schema, '_meta', 'theme')
60
- )),
61
60
  ));
62
61
  }
63
62
 
@@ -67,8 +66,8 @@
67
66
  @mixin avatar($theme) {
68
67
  @include css-vars($theme);
69
68
 
70
- $variant: map.get($theme, '_meta', 'variant');
71
-
69
+ $variant: map.get($theme, '_meta', 'theme');
70
+
72
71
  %igx-avatar-display {
73
72
  @include sizable();
74
73
 
@@ -48,14 +48,13 @@
48
48
  }
49
49
 
50
50
  $theme: digest-schema($badge-schema);
51
- $meta: map.get($theme, '_meta');
52
51
 
53
52
  @if not($icon-color) and $background-color {
54
- $icon-color: text-contrast($background-color);
53
+ $icon-color: adaptive-contrast(var(--background-color));
55
54
  }
56
55
 
57
56
  @if not($text-color) and $background-color {
58
- $text-color: text-contrast($background-color);
57
+ $text-color: adaptive-contrast(var(--background-color));
59
58
  }
60
59
 
61
60
  @if not($shadow) {
@@ -71,10 +70,6 @@
71
70
  border-radius: $border-radius,
72
71
  background-color: $background-color,
73
72
  shadow: $shadow,
74
- theme: map.get($schema, '_meta', 'theme'),
75
- _meta: map.merge(if($meta, $meta, ()), (
76
- variant: map.get($schema, '_meta', 'theme'),
77
- )),
78
73
  ));
79
74
  }
80
75
 
@@ -84,7 +79,7 @@
84
79
  @mixin badge($theme) {
85
80
  @include css-vars($theme);
86
81
 
87
- $variant: map.get($theme, '_meta', 'variant');
82
+ $variant: map.get($theme, '_meta', 'theme');
88
83
 
89
84
  %igx-badge-display {
90
85
  --size: #{rem(22px)};
@@ -43,10 +43,13 @@
43
43
  }
44
44
 
45
45
  $theme: digest-schema($banner-schema);
46
- $meta: map.get($theme, '_meta');
47
46
 
48
47
  @if not($banner-message-color) and $banner-background {
49
- $banner-message-color: text-contrast($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));
50
53
  }
51
54
 
52
55
  @return extend($theme, (
@@ -57,10 +60,6 @@
57
60
  banner-border-color: $banner-border-color,
58
61
  banner-illustration-color: $banner-illustration-color,
59
62
  border-radius: $border-radius,
60
- theme: map.get($schema, '_meta', 'theme'),
61
- _meta: map.merge(if($meta, $meta, ()), (
62
- variant: map.get($schema, '_meta', 'theme')
63
- )),
64
63
  ));
65
64
  }
66
65
 
@@ -69,7 +68,7 @@
69
68
  /// @param {Map} $theme - The theme used to style the component.
70
69
  @mixin banner($theme) {
71
70
  @include css-vars($theme);
72
- $variant: map.get($theme, '_meta', 'variant');
71
+ $variant: map.get($theme, '_meta', 'theme');
73
72
 
74
73
  %igx-banner-host {
75
74
  igx-expansion-panel-body {
@@ -51,42 +51,36 @@
51
51
 
52
52
  $theme: digest-schema($bottom-nav-schema);
53
53
 
54
- $meta: map.get($theme, '_meta');
55
-
56
- @if not($label-color) and $background {
57
- @if meta.type-of($background) == 'color' {
58
- $label-color: text-contrast($background);
59
- }
54
+ @if not($label-color) and not($icon-color) and $background {
55
+ $label-color: adaptive-contrast(var(--background));
60
56
  }
61
57
 
62
58
  @if not($icon-color) and $label-color {
63
- @if meta.type-of($label-color) == 'color' {
64
- $icon-color: $label-color;
65
- }
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));
66
68
  }
67
69
 
68
70
  @if not($icon-disabled-color) and $label-disabled-color {
69
- @if meta.type-of($label-disabled-color) == 'color' {
70
- $icon-disabled-color: $label-disabled-color;
71
- }
71
+ $icon-disabled-color: $label-disabled-color;
72
72
  }
73
73
 
74
74
  @if not($label-disabled-color) and $icon-disabled-color {
75
- @if meta.type-of($icon-disabled-color) == 'color' {
76
- $label-disabled-color: $icon-disabled-color;
77
- }
75
+ $label-disabled-color: $icon-disabled-color;
78
76
  }
79
77
 
80
78
  @if not($icon-selected-color) and $label-selected-color {
81
- @if meta.type-of($background) == 'color' {
82
- $icon-selected-color: $label-selected-color;
83
- }
79
+ $icon-selected-color: $label-selected-color;
84
80
  }
85
81
 
86
- @if not($icon-color) and $background {
87
- @if meta.type-of($background) == 'color' {
88
- $icon-color: text-contrast($background);
89
- }
82
+ @if not($label-selected-color) and $icon-selected-color {
83
+ $label-selected-color: $icon-selected-color;
90
84
  }
91
85
 
92
86
  @if not($shadow) {
@@ -105,11 +99,6 @@
105
99
  label-disabled-color: $label-disabled-color,
106
100
  border-color: $border-color,
107
101
  shadow: $shadow,
108
- theme: map.get($schema, '_meta', 'theme'),
109
- _meta: map.merge(if($meta, $meta, ()), (
110
- variant: map.get($schema, '_meta', 'theme'),
111
- theme-variant: map.get($schema, '_meta', 'variant')
112
- )),
113
102
  ));
114
103
  }
115
104
 
@@ -119,7 +108,7 @@
119
108
  @mixin bottom-nav($theme) {
120
109
  @include css-vars($theme);
121
110
 
122
- $variant: map.get($theme, '_meta', 'variant');
111
+ $variant: map.get($theme, '_meta', 'theme');
123
112
  $menu-height: rem(56px);
124
113
  $item-min-width: rem(80px);
125
114
  $item-max-width: rem(168px);