@elderbyte/ngx-starter 19.1.0-beta.19 → 19.1.0-beta.20
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/package.json
CHANGED
|
@@ -16,6 +16,22 @@ $level-medium: $colorStateInProgress;
|
|
|
16
16
|
$level-high: $colorStateWarn;
|
|
17
17
|
$level-critical: $colorStateError;
|
|
18
18
|
|
|
19
|
+
|
|
20
|
+
// darkend light colors
|
|
21
|
+
// $colorStateCompletedLightContent: config.$chip-colors-dark.state-in-progress;
|
|
22
|
+
$colorStateNoneLightContent: map-get(config.$chip-colors-dark, state-none);
|
|
23
|
+
$colorStateOpenLightContent: map-get(config.$chip-colors-dark, state-open);
|
|
24
|
+
$colorStateInProgressLightContent: map-get(config.$chip-colors-dark, state-in-progress);
|
|
25
|
+
$colorStateCompletedLightContent: map-get(config.$chip-colors-dark, state-completed);
|
|
26
|
+
$colorStateWarnLightContent: map-get(config.$chip-colors-dark, state-warn);
|
|
27
|
+
$colorStateErrorLightContent: map-get(config.$chip-colors-dark, state-error);
|
|
28
|
+
$colorStateOtherLightContent: map-get(config.$chip-colors-dark, state-other);
|
|
29
|
+
|
|
30
|
+
$levelLowLightContent: $colorStateCompletedLightContent;
|
|
31
|
+
$levelMediumLightContent: $colorStateInProgressLightContent;
|
|
32
|
+
$levelHighLightContent: $colorStateWarnLightContent;
|
|
33
|
+
$levelCriticalLightContent: $colorStateErrorLightContent;
|
|
34
|
+
|
|
19
35
|
@mixin theme($config-or-theme) {
|
|
20
36
|
//@include elder-m2-legacy-base($config-or-theme);
|
|
21
37
|
|
|
@@ -81,10 +97,81 @@ $level-critical: $colorStateError;
|
|
|
81
97
|
}
|
|
82
98
|
|
|
83
99
|
// Customize the entire app. Change :root to your selector if you want to scope the styles.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
100
|
+
|
|
101
|
+
&.elder-light-theme .mat-mdc-chip.mat-mdc-chip {
|
|
102
|
+
&.elder-chip-state-none,
|
|
103
|
+
&.none {
|
|
104
|
+
@include chip-content-color-variant(rgba(0,0,0,0.6));
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&.elder-chip-state-open,
|
|
108
|
+
&.state-open {
|
|
109
|
+
@include chip-content-color-variant(rgba(0,0,0,0.6));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&.elder-chip-state-in-progress,
|
|
113
|
+
&.state-in-progress {
|
|
114
|
+
@include chip-content-color-variant($colorStateInProgressLightContent);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&.elder-chip-state-completed,
|
|
118
|
+
&.state-completed {
|
|
119
|
+
@include chip-content-color-variant($colorStateCompletedLightContent);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&.elder-chip-state-warn,
|
|
123
|
+
&.state-warn {
|
|
124
|
+
@include chip-content-color-variant($colorStateWarnLightContent);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&.elder-chip-state-error,
|
|
128
|
+
&.state-error {
|
|
129
|
+
@include chip-content-color-variant($colorStateErrorLightContent);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&.elder-chip-state-other,
|
|
133
|
+
&.state-other {
|
|
134
|
+
@include chip-content-color-variant($colorStateOtherLightContent);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// ---
|
|
138
|
+
|
|
139
|
+
&.elder-chip-level-low,
|
|
140
|
+
&.level-low {
|
|
141
|
+
@include chip-content-color-variant($levelLowLightContent);
|
|
142
|
+
}
|
|
143
|
+
&.elder-chip-level-medium,
|
|
144
|
+
&.level-medium {
|
|
145
|
+
@include chip-content-color-variant($levelMediumLightContent);
|
|
146
|
+
}
|
|
147
|
+
&.elder-chip-level-high,
|
|
148
|
+
&.level-high {
|
|
149
|
+
@include chip-content-color-variant($levelHighLightContent);
|
|
150
|
+
}
|
|
151
|
+
&.elder-chip-level-critical,
|
|
152
|
+
&.level-critical {
|
|
153
|
+
@include chip-content-color-variant($levelCriticalLightContent);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&.elder-light-theme {
|
|
158
|
+
.elder-chip-state-in-progress,
|
|
159
|
+
.elder-chip-state-none,
|
|
160
|
+
.elder-chip-state-open,
|
|
161
|
+
.elder-chip-state-in-progress,
|
|
162
|
+
.elder-chip-state-completed,
|
|
163
|
+
.elder-chip-state-warn,
|
|
164
|
+
.elder-chip-state-error,
|
|
165
|
+
.elder-chip-state-other,
|
|
166
|
+
.elder-chip-level-low,
|
|
167
|
+
.elder-chip-level-medium,
|
|
168
|
+
.elder-chip-level-high,
|
|
169
|
+
.elder-chip-level-critical {
|
|
170
|
+
@include mat.chips-overrides(
|
|
171
|
+
(
|
|
172
|
+
outline-color: rgba(0,0,0,0.3),
|
|
173
|
+
label-text-color: rgba(0,0,0,0.5),
|
|
174
|
+
/*
|
|
88
175
|
outline-color: orange,
|
|
89
176
|
disabled-outline-color: red,
|
|
90
177
|
container-shape-radius
|
|
@@ -135,7 +222,18 @@ $level-critical: $colorStateError;
|
|
|
135
222
|
selected-disabled-trailing-icon-color
|
|
136
223
|
selected-trailing-icon-color
|
|
137
224
|
*/
|
|
138
|
-
|
|
139
|
-
|
|
225
|
+
)
|
|
226
|
+
);
|
|
227
|
+
}
|
|
140
228
|
}
|
|
141
229
|
}
|
|
230
|
+
|
|
231
|
+
@mixin chip-content-color-variant($color) {
|
|
232
|
+
@include mat.chips-overrides(
|
|
233
|
+
(
|
|
234
|
+
outline-color: $color,
|
|
235
|
+
label-text-color: $color,
|
|
236
|
+
with-icon-icon-color: $color,
|
|
237
|
+
)
|
|
238
|
+
);
|
|
239
|
+
}
|