@elderbyte/ngx-starter 19.1.0-beta.2 → 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/_index.scss +1 -1
- package/fesm2022/elderbyte-ngx-starter.mjs +1200 -1142
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/common/utils/public_api.d.ts +1 -0
- package/lib/components/data-view/base/elder-data-view-base.d.ts +14 -0
- package/lib/components/layout/basic-pane-layout/basic-pane-layout.component.d.ts +1 -6
- package/lib/components/layout/pane/header/pane-actions.component.d.ts +5 -0
- package/lib/components/layout/pane/header/pane-header.component.d.ts +7 -0
- package/lib/components/layout/pane/header/pane-title.component.d.ts +5 -0
- package/lib/components/layout/pane/pane-content.component.d.ts +5 -0
- package/lib/components/layout/pane/pane.component.d.ts +1 -1
- package/lib/components/layout/public_api.d.ts +4 -0
- package/lib/components/select/single/elder-select/elder-select.component.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/components/card-organizer/card-stack/elder-card-stack.component.scss +0 -72
- package/src/lib/components/data-transfer/http-data-transfer-overview/http-data-transfer-overview.component.scss +6 -5
- package/src/lib/components/data-view/grid/elder-grid/elder-grid.component.scss +70 -82
- package/src/lib/components/data-view/table/elder-table/elder-table.component.scss +0 -220
- package/src/lib/components/files/drag-n-drop/elder-drop-zone/elder-drop-zone.component.scss +4 -4
- package/src/lib/components/forms/search/search-box/elder-search-box.component.scss +1 -0
- package/src/lib/components/navigation/nav/nav-group/elder-nav-group.component.scss +22 -3
- package/src/lib/components/navigation/nav/nav-link/elder-nav-link.component.scss +38 -4
- package/src/lib/components/panels/elder-dialog-panel/elder-dialog-panel.component.scss +2 -2
- package/src/lib/components/select/filter/elder-filter-chip-template/elder-filter-chip-template.component.scss +0 -77
- package/src/lib/components/select/multi/elder-multi-select-chip-options/elder-multi-select-chip-options.component.scss +0 -48
- package/src/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.scss +0 -60
- package/src/lib/components/select/single/elder-select/elder-select.component.scss +0 -58
- package/src/lib/components/shell/header/elder-app-header/elder-app-header.component.scss +1 -1
- package/src/lib/components/toasts/standard-toast/standard-toast.component.scss +1 -1
- package/theming/abstracts/_elder-design-tokens.scss +190 -0
- package/theming/{system/_elder-config.scss → abstracts/_elder-scss-variables.scss} +34 -0
- package/theming/{system/_elder-defaults.scss → abstracts/_elder-set-defaults-fn.scss} +8 -8
- package/theming/abstracts/_elder-starter-theme.scss +47 -0
- package/theming/abstracts/_elder-theme-main.scss +92 -0
- package/theming/{style-tweaks/_elder-common.scss → base/_elder-common-base.scss} +8 -11
- package/theming/base/_elder-component-themes.scss +21 -0
- package/theming/{style-tweaks/_elder-style-fixes.scss → base/_elder-fixes-base.scss} +31 -43
- package/theming/{style-tweaks/_elder-form.scss → base/_elder-form-base.scss} +7 -4
- package/theming/base/_elder-m2-legacy-base.scss +37 -0
- package/theming/components/_elder-card-stack-theme.scss +72 -0
- package/theming/components/_elder-chip-theme.scss +239 -0
- package/theming/components/_elder-filter-chip-template-theme.scss +79 -0
- package/theming/components/_elder-multi-select-chip-options-theme.scss +48 -0
- package/theming/components/_elder-multi-select-chips-theme.scss +60 -0
- package/theming/components/_elder-nav-theme.scss +24 -0
- package/theming/components/_elder-select-theme.scss +58 -0
- package/theming/components/_elder-table-theme.scss +213 -0
- package/theming/components/_legacy-elder-chip-theme.scss +119 -0
- package/theming/{utility-classes/_elder-color-helpers.scss → utilities/_elder-color-utils.scss} +3 -10
- package/theming/utilities/_elder-common-utils.scss +17 -0
- package/theming/{utility-classes/_elder-flex-layout.scss → utilities/_elder-flex-layout-utils.scss} +108 -2
- package/theming/{utility-classes/_elder-layout-system.scss → utilities/_elder-layout-utils.scss} +226 -201
- package/theming/{utility-classes/_elder-typography-helpers.scss → utilities/_elder-typography-utils.scss} +1 -1
- package/lib/components/m3-sidenav/m3-sidenav.component.d.ts +0 -5
- package/src/lib/components/chips/_elder-chip-theme.scss +0 -129
- package/src/lib/components/navigation/nav/_elder-nav-theme.scss +0 -66
- package/theming/style-tweaks/_elder-color-variants.scss +0 -31
- package/theming/style-tweaks/_elder-component-themes.scss +0 -22
- package/theming/style-tweaks/_elder-reset.scss +0 -13
- package/theming/system/_elder-design-tokens.scss +0 -101
- package/theming/system/_elder-m3-theme.scss +0 -156
- package/theming/system/_elder-starter-theme.scss +0 -45
- package/theming/utility-classes/_elder-common-helpers.scss +0 -8
- /package/theming/{style-tweaks/_elder-style-tweak-mixins.scss → base/_elder-base-mixins.scss} +0 -0
- /package/{src/lib/components/select/_elder-select-base.scss → theming/components/_elder-select-base-mixin.scss} +0 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use './elder-starter-theme' as starter-theme;
|
|
4
|
+
@use './elder-scss-variables' as config;
|
|
5
|
+
|
|
6
|
+
@mixin render-default-elder-theme($themes: 'default', $options: ()) {
|
|
7
|
+
@if $themes == 'default' {
|
|
8
|
+
$themes: create-themes(config.$palettes); // typically this will be used
|
|
9
|
+
} @else {
|
|
10
|
+
$themes: $themes;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// map options
|
|
14
|
+
$use-typography-hierarchy: not map.has-key($options, 'no-typography-hierarchy');
|
|
15
|
+
|
|
16
|
+
// create theme
|
|
17
|
+
$elder-light-theme: map.get($themes, light);
|
|
18
|
+
$elder-dark-theme: map.get($themes, dark);
|
|
19
|
+
|
|
20
|
+
// render theme
|
|
21
|
+
@include mat.all-component-typographies();
|
|
22
|
+
@include mat.elevation-classes();
|
|
23
|
+
@include mat.app-background();
|
|
24
|
+
|
|
25
|
+
@if $use-typography-hierarchy {
|
|
26
|
+
@include mat.typography-hierarchy($elder-light-theme, $back-compat: true);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.elder-light-theme,
|
|
30
|
+
.elder-dark-theme {
|
|
31
|
+
@include mat.all-component-themes($elder-light-theme);
|
|
32
|
+
@include mat.system-level-colors($elder-light-theme);
|
|
33
|
+
@include mat.system-level-typography($elder-light-theme);
|
|
34
|
+
@include mat.color-variants-backwards-compatibility($elder-light-theme);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.elder-dark-theme {
|
|
38
|
+
@include mat.all-component-colors($elder-dark-theme);
|
|
39
|
+
@include mat.system-level-colors($elder-dark-theme);
|
|
40
|
+
@include mat.color-variants-backwards-compatibility($elder-dark-theme);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.elder-light-theme,
|
|
44
|
+
.elder-dark-theme {
|
|
45
|
+
@include starter-theme.starter-theme($elder-light-theme);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@function create-themes($palettesArg) {
|
|
50
|
+
$_palettes: $palettesArg;
|
|
51
|
+
|
|
52
|
+
$_rest: (
|
|
53
|
+
secondary: map.get($_palettes, secondary),
|
|
54
|
+
neutral: map.get($_palettes, neutral),
|
|
55
|
+
neutral-variant: map.get($_palettes, neutral-variant),
|
|
56
|
+
error: map.get($_palettes, error),
|
|
57
|
+
);
|
|
58
|
+
$_primary: map.merge(map.get($_palettes, primary), $_rest);
|
|
59
|
+
$_tertiary: map.merge(map.get($_palettes, tertiary), $_rest);
|
|
60
|
+
|
|
61
|
+
$density: 0; // ATM important ot start with 0, since we are (miss-)using the tighter -4 density settings only for forms
|
|
62
|
+
|
|
63
|
+
$light-theme: _elder-define-theme(light, $_primary, $_tertiary, $density);
|
|
64
|
+
$dark-theme: _elder-define-theme(dark, $_primary, $_tertiary, $density);
|
|
65
|
+
$dark-theme-mono: _elder-define-theme(dark, $_tertiary, $_tertiary, $density);
|
|
66
|
+
|
|
67
|
+
@return (
|
|
68
|
+
light: $light-theme,
|
|
69
|
+
dark: $dark-theme-mono,
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@function _elder-define-theme($theme-type, $primary, $tertiary, $density: 0) {
|
|
74
|
+
@return mat.define-theme(
|
|
75
|
+
(
|
|
76
|
+
color: (
|
|
77
|
+
theme-type: $theme-type,
|
|
78
|
+
primary: $primary,
|
|
79
|
+
tertiary: $tertiary,
|
|
80
|
+
use-system-variables: true,
|
|
81
|
+
system-variables-prefix: md-sys-color,
|
|
82
|
+
),
|
|
83
|
+
typography: (
|
|
84
|
+
use-system-variables: true,
|
|
85
|
+
system-variables-prefix: md-sys-typescale,
|
|
86
|
+
),
|
|
87
|
+
density: (
|
|
88
|
+
scale: $density,
|
|
89
|
+
),
|
|
90
|
+
)
|
|
91
|
+
);
|
|
92
|
+
}
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
@use './elder-
|
|
1
|
+
@use './elder-base-mixins' as mixins;
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
3
|
@use 'sass:map';
|
|
4
4
|
|
|
5
|
-
@mixin elder-common-
|
|
6
|
-
$common-sizes: map.get($theme, elder, common-sizes);
|
|
7
|
-
|
|
5
|
+
@mixin elder-common-base($theme) {
|
|
8
6
|
/***************************************************************************
|
|
9
7
|
* *
|
|
10
|
-
*
|
|
8
|
+
* CSS reset: box-sizing *
|
|
11
9
|
* *
|
|
12
10
|
**************************************************************************/
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
$xxl: map.get($common-sizes, xxl);
|
|
12
|
+
*,
|
|
13
|
+
*::before,
|
|
14
|
+
*::after {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
}
|
|
20
17
|
|
|
21
18
|
/***************************************************************************
|
|
22
19
|
* *
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@use '../components/elder-chip-theme' as elder-chip;
|
|
2
|
+
@use '../components/elder-table-theme.scss' as elder-table;
|
|
3
|
+
@use '../components/elder-nav-theme' as elder-nav;
|
|
4
|
+
@use '../components/elder-card-stack-theme.scss' as elder-card-stack;
|
|
5
|
+
@use '../components/elder-select-theme' as elder-select;
|
|
6
|
+
@use '../components/elder-multi-select-chips-theme'
|
|
7
|
+
as elder-multi-select-chips;
|
|
8
|
+
@use '../components/elder-multi-select-chip-options-theme'
|
|
9
|
+
as elder-multi-select-chip-options;
|
|
10
|
+
@use '../components/elder-filter-chip-template-theme' as elder-filter-chip-template;
|
|
11
|
+
|
|
12
|
+
@mixin theme($theme) {
|
|
13
|
+
@include elder-chip.theme($theme);
|
|
14
|
+
@include elder-table.theme($theme);
|
|
15
|
+
@include elder-nav.theme($theme);
|
|
16
|
+
@include elder-card-stack.theme($theme);
|
|
17
|
+
@include elder-select.theme($theme);
|
|
18
|
+
@include elder-multi-select-chips.theme($theme);
|
|
19
|
+
@include elder-multi-select-chip-options.theme($theme);
|
|
20
|
+
@include elder-filter-chip-template.theme($theme);
|
|
21
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
|
-
@use './elder-
|
|
2
|
+
@use './elder-base-mixins' as mixins;
|
|
3
3
|
@use 'sass:map';
|
|
4
4
|
|
|
5
|
-
@mixin elder-
|
|
5
|
+
@mixin elder-fixes-base($theme) {
|
|
6
6
|
@include _ng-style-fixes;
|
|
7
7
|
@include _mat-style-fixes($theme);
|
|
8
8
|
@include _mat3-fixes($theme);
|
|
@@ -128,13 +128,6 @@
|
|
|
128
128
|
background-color: var(--md-sys-color-surface-container);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
.legacy-layout-card {
|
|
132
|
-
background-color: var(--mdc-elevated-card-container-color);
|
|
133
|
-
border-radius: var(--elder-border-radius-sm);
|
|
134
|
-
box-shadow: var(--mdc-elevated-card-container-elevation, var(--mat-sys-level1));
|
|
135
|
-
overflow: hidden; // this might cause issues, but is probably correct..
|
|
136
|
-
}
|
|
137
|
-
|
|
138
131
|
.elder-card-title {
|
|
139
132
|
padding-bottom: 0 !important;
|
|
140
133
|
margin-bottom: 6px !important;
|
|
@@ -177,7 +170,14 @@
|
|
|
177
170
|
}
|
|
178
171
|
}
|
|
179
172
|
|
|
173
|
+
&.elder-light-theme {
|
|
174
|
+
.mat-toolbar.mat-primary .mat-mdc-input-element::placeholder {
|
|
175
|
+
color: var(--md-sys-color-inverse-on-surface) !important; // fix placeholder color
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
180
179
|
&.elder-dark-theme {
|
|
180
|
+
.mat-toolbar,
|
|
181
181
|
.mat-toolbar.mat-primary,
|
|
182
182
|
.mat-toolbar.mat-accent {
|
|
183
183
|
background-color: var(--elder-dark-gray) !important;
|
|
@@ -286,10 +286,6 @@
|
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
// fix
|
|
289
|
-
.elder-pane .legacy-layout-card {
|
|
290
|
-
border-radius: 0 !important;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
289
|
.mat-mdc-card,
|
|
294
290
|
.mat-mdc-card-outlined {
|
|
295
291
|
// set normal mat-cards back to m2 border-radius
|
|
@@ -297,18 +293,18 @@
|
|
|
297
293
|
}
|
|
298
294
|
|
|
299
295
|
// round input fields
|
|
300
|
-
&.deactivated {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}
|
|
296
|
+
// &.deactivated {
|
|
297
|
+
// elder-search-box .elder-search-box-field,
|
|
298
|
+
// .mat-toolbar .mat-mdc-form-field {
|
|
299
|
+
// background-color: var(--md-sys-color-surface-container-low);
|
|
300
|
+
// border-radius: 24px !important;
|
|
301
|
+
|
|
302
|
+
// // remove border from notch piece on input fields
|
|
303
|
+
// .mat-mdc-notch-piece {
|
|
304
|
+
// border-width: 0 !important;
|
|
305
|
+
// }
|
|
306
|
+
// }
|
|
307
|
+
// }
|
|
312
308
|
|
|
313
309
|
.mat-toolbar .mat-mdc-form-field {
|
|
314
310
|
background-color: var(--elder-lightened-transparent-bg);
|
|
@@ -319,26 +315,12 @@
|
|
|
319
315
|
--mdc-outlined-text-field-input-text-color: var(--md-sys-color-inverse-on-surface) !important;
|
|
320
316
|
--mdc-outlined-text-field-caret-color: var(--md-sys-color-inverse-on-surface) !important;
|
|
321
317
|
}
|
|
322
|
-
// * {
|
|
323
|
-
// color: var(--md-sys-color-inverse-on-surface);
|
|
324
|
-
// border-color: var(--md-sys-color-inverse-on-surface);
|
|
325
|
-
// }
|
|
326
318
|
}
|
|
327
319
|
|
|
328
320
|
.elder-pane {
|
|
329
321
|
background-color: var(--md-sys-color-surface-container-lowest);
|
|
330
322
|
}
|
|
331
323
|
|
|
332
|
-
&.elder-dark-theme {
|
|
333
|
-
// brighter dark mode nav
|
|
334
|
-
.elder-nav-list-full {
|
|
335
|
-
background-color: var(--md-sys-color-surface-container-lowest) !important;
|
|
336
|
-
}
|
|
337
|
-
.nav-link-active {
|
|
338
|
-
color: var(--md-sys-color-primary) !important;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
|
|
342
324
|
/**************************************************************************
|
|
343
325
|
Elder panel
|
|
344
326
|
**************************************************************************/
|
|
@@ -374,9 +356,15 @@
|
|
|
374
356
|
}
|
|
375
357
|
}
|
|
376
358
|
|
|
377
|
-
&.elder-light-theme
|
|
378
|
-
|
|
379
|
-
// TMP only for debugging
|
|
380
|
-
--mdc-linear-progress-track-color: green !important; // TODO REMOVE
|
|
359
|
+
&.elder-light-theme elder-data-transfer-aggregate .mdc-linear-progress__buffer-bar {
|
|
360
|
+
--mdc-linear-progress-track-color: var(--md-sys-color-tertiary-fixed);
|
|
381
361
|
}
|
|
362
|
+
&.elder-dark-theme elder-data-transfer-aggregate .mdc-linear-progress__buffer-bar {
|
|
363
|
+
--mdc-linear-progress-track-color: var(--md-sys-color-tertiary-container);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
// disable icon button overflow
|
|
367
|
+
// .mat-mdc-icon-button {
|
|
368
|
+
// overflow: hidden;
|
|
369
|
+
// }
|
|
382
370
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@use './elder-
|
|
1
|
+
@use './elder-base-mixins' as mixins;
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
3
|
@use 'sass:map';
|
|
4
4
|
|
|
5
|
-
@mixin elder-form-
|
|
5
|
+
@mixin elder-form-base($theme) {
|
|
6
6
|
$common-sizes: map.get($theme, elder, common-sizes);
|
|
7
7
|
$form-field-density: map.get($theme, elder, density, form-field);
|
|
8
8
|
|
|
@@ -325,16 +325,19 @@
|
|
|
325
325
|
.elder-round-form-field {
|
|
326
326
|
border: none;
|
|
327
327
|
border-radius: 24px;
|
|
328
|
-
background-color: var(--md-sys-color-surface-container
|
|
328
|
+
background-color: var(--md-sys-color-surface-container);
|
|
329
|
+
cursor: text;
|
|
330
|
+
outline: var(--elder-round-form-field-outline);
|
|
329
331
|
|
|
330
332
|
.mdc-notched-outline .mat-mdc-notch-piece {
|
|
331
333
|
border: none !important;
|
|
332
334
|
}
|
|
333
335
|
&:hover {
|
|
334
|
-
|
|
336
|
+
background-color: var(--md-sys-color-surface-container-high);
|
|
335
337
|
}
|
|
336
338
|
&.mat-focused {
|
|
337
339
|
outline: solid 1px var(--md-sys-color-primary);
|
|
340
|
+
background-color: var(--md-sys-color-surface-container-low);
|
|
338
341
|
}
|
|
339
342
|
}
|
|
340
343
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Source: https://material.angular.io/guide/theming#using-component-color-variants
|
|
5
|
+
*
|
|
6
|
+
* This applies custom color variants for the legacy M2 color system for usage in M3.
|
|
7
|
+
* There are different mixins for many components (not all).
|
|
8
|
+
* You can find the list of the components and there supported color variants here:
|
|
9
|
+
* https://material.angular.io/guide/theming#using-component-color-variants
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
// Custom Color variants for m3. They can already be provided through
|
|
13
|
+
// "mat.color-variants-backwards-compatibility()"
|
|
14
|
+
// But can be customized in this mixin below:
|
|
15
|
+
|
|
16
|
+
@mixin elder-m2-legacy-base($theme) {
|
|
17
|
+
// // Apply primary color variants for button components
|
|
18
|
+
// mat-chip-option[color='primary'] {
|
|
19
|
+
// @include mat.chips-color($theme, $color-variant: primary);
|
|
20
|
+
// }
|
|
21
|
+
|
|
22
|
+
// // Apply secondary color variants for button components
|
|
23
|
+
// mat-chip-option[color='danger'] {
|
|
24
|
+
// @include mat.chips-color($theme, $color-variant: error);
|
|
25
|
+
// }
|
|
26
|
+
|
|
27
|
+
// // Apply tertiary color variants for button components
|
|
28
|
+
// mat-chip-option[color='accent'] {
|
|
29
|
+
// @include mat.chips-color($theme, $color-variant: tertiary);
|
|
30
|
+
// }
|
|
31
|
+
|
|
32
|
+
// // &.elder-light-theme {
|
|
33
|
+
// // .mat-accent.mat-mdc-standard-chip {
|
|
34
|
+
// // background-color: var(--md-sys-color-tertiary-fixed) !important;
|
|
35
|
+
// // }
|
|
36
|
+
// // }
|
|
37
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
@mixin theme($theme) {
|
|
4
|
+
.card-stack {
|
|
5
|
+
//background-color: var(--md-sys-color-surface-container);
|
|
6
|
+
border-radius: var(--elder-border-radius-sm);
|
|
7
|
+
border: var(--elder-border-light);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.card-list.cdk-drop-list-dragging {
|
|
11
|
+
border: 2px dashed var(--md-sys-color-outline-variant);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.stack-header {
|
|
15
|
+
height: 62px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.card-container {
|
|
19
|
+
min-width: 120px;
|
|
20
|
+
min-height: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.card-list {
|
|
24
|
+
min-height: 100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.card {
|
|
28
|
+
border-radius: var(--elder-border-radius-sm);
|
|
29
|
+
box-shadow: var(--mat-app-elevation-shadow-level-1);
|
|
30
|
+
cursor: move;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
}
|
|
33
|
+
.card.cdk-drag-disabled.clickable {
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
}
|
|
36
|
+
.card.cdk-drag-disabled.unclickable {
|
|
37
|
+
cursor: default;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.hoverme .hide {
|
|
41
|
+
visibility: hidden;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.hoverme:hover .hide {
|
|
45
|
+
visibility: visible;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.rotate {
|
|
49
|
+
transform: rotate(-90deg);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.scrollable {
|
|
53
|
+
overflow-y: auto;
|
|
54
|
+
-webkit-overflow-scrolling: touch;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.noselect {
|
|
58
|
+
user-select: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.cdk-drag-placeholder {
|
|
62
|
+
opacity: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.cdk-drag-animating {
|
|
66
|
+
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.card-list.cdk-drop-list-dragging .card:not(.cdk-drag-placeholder) {
|
|
70
|
+
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use '../abstracts/elder-scss-variables' as config;
|
|
4
|
+
|
|
5
|
+
$colorStateNone: var(--md-sys-color-surface-variant);
|
|
6
|
+
$colorStateOpen: var(--md-sys-color-surface-variant);
|
|
7
|
+
|
|
8
|
+
$colorStateInProgress: var(--elder-chip-color-state-in-progress);
|
|
9
|
+
$colorStateCompleted: var(--elder-chip-color-state-completed);
|
|
10
|
+
$colorStateWarn: var(--elder-chip-color-state-warn);
|
|
11
|
+
$colorStateError: var(--elder-chip-color-state-error);
|
|
12
|
+
$colorStateOther: var(--elder-chip-color-state-other);
|
|
13
|
+
|
|
14
|
+
$level-low: $colorStateCompleted;
|
|
15
|
+
$level-medium: $colorStateInProgress;
|
|
16
|
+
$level-high: $colorStateWarn;
|
|
17
|
+
$level-critical: $colorStateError;
|
|
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
|
+
|
|
35
|
+
@mixin theme($config-or-theme) {
|
|
36
|
+
//@include elder-m2-legacy-base($config-or-theme);
|
|
37
|
+
|
|
38
|
+
.mat-mdc-chip.mat-mdc-chip {
|
|
39
|
+
&.elder-chip-state-in-progress,
|
|
40
|
+
&.state-in-progress {
|
|
41
|
+
background-color: $colorStateInProgress;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.elder-chip-state-none,
|
|
45
|
+
&.none {
|
|
46
|
+
background-color: $colorStateNone;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.elder-chip-state-open,
|
|
50
|
+
&.state-open {
|
|
51
|
+
background-color: $colorStateOpen;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.elder-chip-state-in-progress,
|
|
55
|
+
&.state-in-progress {
|
|
56
|
+
background-color: $colorStateInProgress;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.elder-chip-state-completed,
|
|
60
|
+
&.state-completed {
|
|
61
|
+
background-color: $colorStateCompleted;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.elder-chip-state-warn,
|
|
65
|
+
&.state-warn {
|
|
66
|
+
background-color: $colorStateWarn;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.elder-chip-state-error,
|
|
70
|
+
&.state-error {
|
|
71
|
+
background-color: $colorStateError;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.elder-chip-state-other,
|
|
75
|
+
&.state-other {
|
|
76
|
+
background-color: $colorStateOther;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// ---
|
|
80
|
+
|
|
81
|
+
&.elder-chip-level-low,
|
|
82
|
+
&.level-low {
|
|
83
|
+
background-color: $level-low;
|
|
84
|
+
}
|
|
85
|
+
&.elder-chip-level-medium,
|
|
86
|
+
&.level-medium {
|
|
87
|
+
background-color: $level-medium;
|
|
88
|
+
}
|
|
89
|
+
&.elder-chip-level-high,
|
|
90
|
+
&.level-high {
|
|
91
|
+
background-color: $level-high;
|
|
92
|
+
}
|
|
93
|
+
&.elder-chip-level-critical,
|
|
94
|
+
&.level-critical {
|
|
95
|
+
background-color: $level-critical;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// Customize the entire app. Change :root to your selector if you want to scope the styles.
|
|
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
|
+
/*
|
|
175
|
+
outline-color: orange,
|
|
176
|
+
disabled-outline-color: red,
|
|
177
|
+
container-shape-radius
|
|
178
|
+
with-avatar-avatar-shape-radius
|
|
179
|
+
with-avatar-avatar-size
|
|
180
|
+
with-icon-icon-size
|
|
181
|
+
outline-width
|
|
182
|
+
outline-color
|
|
183
|
+
disabled-outline-color
|
|
184
|
+
focus-outline-color
|
|
185
|
+
hover-state-layer-opacity
|
|
186
|
+
with-avatar-disabled-avatar-opacity
|
|
187
|
+
flat-selected-outline-width
|
|
188
|
+
selected-hover-state-layer-opacity
|
|
189
|
+
with-trailing-icon-disabled-trailing-icon-opacity
|
|
190
|
+
with-icon-disabled-icon-opacity
|
|
191
|
+
disabled-label-text-color
|
|
192
|
+
elevated-container-color
|
|
193
|
+
elevated-selected-container-color
|
|
194
|
+
elevated-disabled-container-color
|
|
195
|
+
flat-disabled-selected-container-color
|
|
196
|
+
focus-state-layer-color
|
|
197
|
+
hover-state-layer-color
|
|
198
|
+
selected-hover-state-layer-color
|
|
199
|
+
focus-state-layer-opacity
|
|
200
|
+
selected-focus-state-layer-color
|
|
201
|
+
selected-focus-state-layer-opacity
|
|
202
|
+
label-text-color
|
|
203
|
+
selected-label-text-color
|
|
204
|
+
with-icon-icon-color
|
|
205
|
+
with-icon-disabled-icon-color
|
|
206
|
+
with-icon-selected-icon-color
|
|
207
|
+
with-trailing-icon-disabled-trailing-icon-color
|
|
208
|
+
with-trailing-icon-trailing-icon-color
|
|
209
|
+
label-text-font
|
|
210
|
+
label-text-line-height
|
|
211
|
+
label-text-size
|
|
212
|
+
label-text-tracking
|
|
213
|
+
label-text-weight
|
|
214
|
+
container-height
|
|
215
|
+
disabled-container-opacity
|
|
216
|
+
trailing-action-opacity
|
|
217
|
+
trailing-action-focus-opacity
|
|
218
|
+
trailing-action-state-layer-color
|
|
219
|
+
selected-trailing-action-state-layer-color
|
|
220
|
+
trailing-action-hover-state-layer-opacity
|
|
221
|
+
trailing-action-focus-state-layer-opacity
|
|
222
|
+
selected-disabled-trailing-icon-color
|
|
223
|
+
selected-trailing-icon-color
|
|
224
|
+
*/
|
|
225
|
+
)
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
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
|
+
}
|