@elderbyte/ngx-starter 18.12.8 → 18.13.0-beta.1
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 +23 -6
- package/esm2022/lib/components/badge/elder-badge/elder-badge.component.mjs +3 -3
- package/esm2022/lib/components/data-transfer/http-data-transfer-indicator/http-data-transfer-indicator.component.mjs +3 -3
- package/esm2022/lib/components/data-transfer/http-data-transfer-overview/http-data-transfer-overview.component.mjs +3 -3
- package/esm2022/lib/components/files/blob-viewer/elder-blob-viewer.component.mjs +3 -3
- package/esm2022/lib/components/loader-background/loader-background.component.mjs +11 -0
- package/esm2022/lib/components/page/exit-guard/page-exit-lock-indicator/page-exit-lock-indicator.component.mjs +3 -3
- package/esm2022/lib/components/public_api.mjs +2 -1
- package/esm2022/lib/components/select/filter/elder-filter-chip-template/elder-filter-chip-template.component.mjs +3 -3
- package/esm2022/lib/components/select/multi/elder-multi-select-chip-options/elder-multi-select-chip-options.component.mjs +3 -3
- package/esm2022/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.mjs +3 -3
- package/esm2022/lib/components/select/popup/templated-selection-dialog/templated-selection-dialog.component.mjs +3 -3
- package/esm2022/lib/components/select/single/elder-select/elder-select.component.mjs +3 -3
- package/esm2022/lib/components/shell/header/elder-app-header/elder-app-header.component.mjs +5 -3
- package/esm2022/lib/components/time/elder-interval-picker/elder-interval-picker.component.mjs +3 -3
- package/esm2022/lib/components/toasts/standard-toast/standard-toast.component.mjs +3 -3
- package/fesm2022/elderbyte-ngx-starter.mjs +38 -27
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/components/loader-background/loader-background.component.d.ts +5 -0
- package/lib/components/public_api.d.ts +1 -0
- package/lib/components/shell/header/elder-app-header/elder-app-header.component.d.ts +2 -1
- package/package.json +1 -1
- package/src/lib/components/badge/elder-badge/elder-badge.component.scss +2 -1
- package/src/lib/components/button-group/elder-button-group/elder-button-group.component.scss +1 -7
- package/src/lib/components/card-organizer/card-stack/elder-card-stack.component.scss +3 -14
- package/src/lib/components/cards/elder-card/elder-card.component.scss +2 -8
- package/src/lib/components/chips/_elder-chip-theme-old.scss +122 -0
- package/src/lib/components/chips/_elder-chip-theme.scss +101 -12
- package/src/lib/components/data-transfer/http-data-transfer-indicator/http-data-transfer-indicator.component.scss +0 -6
- package/src/lib/components/data-transfer/http-data-transfer-overview/http-data-transfer-overview.component.scss +11 -0
- package/src/lib/components/data-view/grid/elder-grid/elder-grid.component.scss +15 -22
- package/src/lib/components/data-view/table/elder-table/elder-table.component.scss +12 -21
- package/src/lib/components/errors/exception-detail/elder-exception-detail.component.scss +2 -9
- package/src/lib/components/expand-toggle-button/elder-expand-toggle-button.component.scss +2 -8
- package/src/lib/components/files/blob-viewer/elder-blob-viewer.component.scss +4 -9
- package/src/lib/components/files/drag-n-drop/elder-drop-zone/elder-drop-zone.component.scss +7 -10
- package/src/lib/components/iframes/iframe-host/iframe-host.component.scss +0 -4
- package/src/lib/components/loader-background/loader-background.component.scss +60 -0
- package/src/lib/components/navigation/nav/_elder-nav-theme.scss +12 -24
- package/src/lib/components/page/exit-guard/page-exit-lock-indicator/page-exit-lock-indicator.component.scss +1 -4
- package/src/lib/components/panels/card-panel/elder-card-panel.component.scss +3 -12
- package/src/lib/components/panels/elder-dialog-panel/elder-dialog-panel.component.scss +4 -12
- package/src/lib/components/panels/flat/_elder-panel-theme.scss +26 -9
- package/src/lib/components/select/_elder-select-base.scss +1 -9
- package/src/lib/components/select/filter/elder-filter-chip-template/elder-filter-chip-template.component.scss +1 -4
- package/src/lib/components/select/multi/elder-multi-select-chip-options/elder-multi-select-chip-options.component.scss +10 -39
- package/src/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.scss +19 -52
- package/src/lib/components/select/single/elder-select/elder-select.component.scss +24 -40
- package/src/lib/components/time/_elder-time-input.theme.scss +0 -3
- package/src/lib/components/toasts/standard-toast/standard-toast.component.scss +31 -2
- package/theming/_elder-badge-sizing.scss +21 -0
- package/theming/_elder-color-variants.scss +26 -0
- package/theming/_elder-common.scss +6 -399
- package/theming/_elder-defaults.scss +3 -7
- package/theming/_elder-form.scss +308 -0
- package/theming/_elder-layout-system.scss +242 -0
- package/theming/_elder-m3-theme.scss +879 -0
- package/theming/_elder-mdc-support.scss +59 -142
- package/theming/_elder-scrollbar-theme.scss +2 -12
- package/theming/_elder-style-fixes.scss +47 -109
- package/theming/_elder-typography-utils.scss +0 -11
- package/theming/_mixins.scss +35 -0
- package/theming/_elder-palettes.scss +0 -148
- package/theming/_elder-theme.scss +0 -51
- package/theming/_elder-toast-theme.scss +0 -46
- package/theming/_mat-icon-button-size.scss +0 -34
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
$colorStateNone: rgb(0, 0, 0);
|
|
5
5
|
|
|
6
6
|
@mixin theme($config-or-theme) {
|
|
7
|
-
$primary: map-get($config-or-theme, primary);
|
|
8
|
-
$accent: map-get($config-or-theme, accent);
|
|
9
|
-
$warn: map-get($config-or-theme, warn);
|
|
10
|
-
|
|
11
7
|
.elder-drop-zone {
|
|
12
8
|
border: 4px dashed rgba($colorStateNone, 0.4);
|
|
13
9
|
-webkit-border-radius: 8px;
|
|
@@ -16,27 +12,28 @@ $colorStateNone: rgb(0, 0, 0);
|
|
|
16
12
|
cursor: pointer;
|
|
17
13
|
|
|
18
14
|
.elder-drop-zone-icon {
|
|
19
|
-
color:
|
|
15
|
+
color: var(--md-sys-color-primary);
|
|
16
|
+
//color: mat.m2-get-color-from-palette($primary, default, 0.75);
|
|
20
17
|
font-size: 28px;
|
|
21
18
|
width: 28px;
|
|
22
19
|
height: 28px;
|
|
23
20
|
}
|
|
24
21
|
|
|
25
22
|
.elder-drop-zone-prompt {
|
|
26
|
-
color:
|
|
23
|
+
color: var(--md-sys-color-primary);
|
|
27
24
|
}
|
|
28
25
|
}
|
|
29
26
|
|
|
30
27
|
.elder-drop-zone.is-dragover {
|
|
31
|
-
border: 4px solid
|
|
32
|
-
background-color:
|
|
28
|
+
border: 4px solid var(--md-sys-color-tertiary-fixed);
|
|
29
|
+
background-color: var(--md-sys-color-tertiary);
|
|
33
30
|
|
|
34
31
|
.elder-drop-zone-icon {
|
|
35
|
-
color:
|
|
32
|
+
color: var(--md-sys-color-tertiary-fixed);
|
|
36
33
|
}
|
|
37
34
|
|
|
38
35
|
.elder-drop-zone-prompt {
|
|
39
|
-
color:
|
|
36
|
+
color: var(--md-sys-color-tertiary-fixed);
|
|
40
37
|
}
|
|
41
38
|
}
|
|
42
39
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
.loader-background {
|
|
2
|
+
--loader-bg-surface: var(--md-sys-color-surface);
|
|
3
|
+
--loader-bg-color: var(--md-sys-color-primary);
|
|
4
|
+
--logo-color: var(--md-sys-color-tertiary-fixed);
|
|
5
|
+
|
|
6
|
+
position: relative;
|
|
7
|
+
height: 100vh;
|
|
8
|
+
width: 100vw;
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
background: linear-gradient(200deg, var(--loader-bg-surface) 40%, var(--loader-bg-color) 0%);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.spinner {
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 50vh;
|
|
17
|
+
left: 45vw;
|
|
18
|
+
width: 200px;
|
|
19
|
+
text-align: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.logo {
|
|
23
|
+
width: 50px;
|
|
24
|
+
height: 48px;
|
|
25
|
+
border-radius: 100%;
|
|
26
|
+
display: inline-block;
|
|
27
|
+
animation: sk-bouncedelay 1.4s infinite ease-in-out both;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.logo svg {
|
|
31
|
+
fill: var(--logo-color) !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.circle {
|
|
35
|
+
border: 1.5px solid var(--logo-color);
|
|
36
|
+
height: 25px;
|
|
37
|
+
border-radius: 50%;
|
|
38
|
+
width: 25px;
|
|
39
|
+
display: inline-block;
|
|
40
|
+
animation: sk-bouncedelay 1.4s infinite ease-in-out both;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.spinner .bounce1 {
|
|
44
|
+
animation-delay: -0.32s;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.spinner .bounce2 {
|
|
48
|
+
animation-delay: -0.16s;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@keyframes sk-bouncedelay {
|
|
52
|
+
0%,
|
|
53
|
+
80%,
|
|
54
|
+
100% {
|
|
55
|
+
transform: scale(0);
|
|
56
|
+
}
|
|
57
|
+
40% {
|
|
58
|
+
transform: scale(1);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -6,46 +6,34 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
@mixin _group-theme($theme) {
|
|
9
|
-
$primary: map-get($theme, primary);
|
|
10
|
-
$accent: map-get($theme, accent);
|
|
11
|
-
$warn: map-get($theme, warn);
|
|
12
|
-
$background: map-get($theme, background);
|
|
13
|
-
$foreground: map-get($theme, foreground);
|
|
14
|
-
|
|
15
9
|
.nav-group-button:hover {
|
|
16
|
-
background-color:
|
|
17
|
-
transition: background 0.5s;
|
|
10
|
+
background-color: var(--md-sys-color-surface-container-high);
|
|
11
|
+
transition: background-color 0.5s;
|
|
18
12
|
}
|
|
19
13
|
|
|
20
14
|
.nav-group-button:not(.nav-group-button-open) {
|
|
21
15
|
.mat-icon {
|
|
22
|
-
color:
|
|
16
|
+
color: var(--md-sys-color-on-surface);
|
|
23
17
|
}
|
|
24
18
|
}
|
|
25
19
|
|
|
26
20
|
.nav-group-button-active {
|
|
27
|
-
background-color:
|
|
21
|
+
background-color: var(--md-sys-color-primary-fixed);
|
|
28
22
|
}
|
|
29
23
|
|
|
30
24
|
.nav-group-button-open {
|
|
31
25
|
padding-left: 11px !important; // -5 to counter border-left
|
|
32
26
|
.mat-icon {
|
|
33
|
-
color:
|
|
27
|
+
color: var(--md-sys-color-primary);
|
|
34
28
|
}
|
|
35
29
|
}
|
|
36
30
|
}
|
|
37
31
|
|
|
38
32
|
@mixin _link-theme($theme) {
|
|
39
|
-
$primary: map-get($theme, primary);
|
|
40
|
-
$accent: map-get($theme, accent);
|
|
41
|
-
$warn: map-get($theme, warn);
|
|
42
|
-
$background: map-get($theme, background);
|
|
43
|
-
$foreground: map-get($theme, foreground);
|
|
44
|
-
|
|
45
33
|
.nav-link.nav-link-clickable {
|
|
46
34
|
cursor: pointer;
|
|
47
35
|
&:hover {
|
|
48
|
-
background-color:
|
|
36
|
+
background-color: var(--md-sys-color-surface-container-high);
|
|
49
37
|
}
|
|
50
38
|
}
|
|
51
39
|
|
|
@@ -54,21 +42,21 @@
|
|
|
54
42
|
}
|
|
55
43
|
|
|
56
44
|
.nav-link:hover {
|
|
57
|
-
background-color:
|
|
45
|
+
background-color: var(--md-sys-color-primary-fixed);
|
|
58
46
|
}
|
|
59
47
|
|
|
60
48
|
.nav-link.nav-link-active {
|
|
61
|
-
background-color:
|
|
62
|
-
color:
|
|
49
|
+
background-color: var(--md-sys-color-primary-fixed);
|
|
50
|
+
color: var(--md-sys-color-on-primary-fixed);
|
|
63
51
|
.mat-icon {
|
|
64
|
-
color:
|
|
52
|
+
color: var(--md-sys-color-primary);
|
|
65
53
|
}
|
|
66
54
|
}
|
|
67
55
|
|
|
68
56
|
.nav-link.nav-link-inactive {
|
|
69
|
-
color:
|
|
57
|
+
color: var(--md-sys-color-on-surface);
|
|
70
58
|
.mat-icon {
|
|
71
|
-
color:
|
|
59
|
+
color: var(--md-sys-color-on-surface);
|
|
72
60
|
}
|
|
73
61
|
}
|
|
74
62
|
}
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
|
|
3
3
|
@mixin theme($theme) {
|
|
4
|
-
$primary: map-get($theme, primary);
|
|
5
|
-
$accent: map-get($theme, accent);
|
|
6
|
-
$warn: map-get($theme, warn);
|
|
7
|
-
$background: map-get($theme, background);
|
|
8
|
-
$foreground: map-get($theme, foreground);
|
|
9
|
-
|
|
10
4
|
.elder-card-panel {
|
|
11
|
-
color:
|
|
12
|
-
background-color:
|
|
5
|
+
color: var(--md-sys-color-on-surface);
|
|
6
|
+
background-color: var(--md-sys-color-surface);
|
|
13
7
|
|
|
14
8
|
padding: 10px;
|
|
15
9
|
border-radius: 4px;
|
|
16
|
-
box-shadow:
|
|
17
|
-
0 5px 5px -3px rgba(0, 0, 0, 0.2),
|
|
18
|
-
0 8px 10px 1px rgba(0, 0, 0, 0.14),
|
|
19
|
-
0 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
10
|
+
box-shadow: var(--mat-app-elevation-shadow-level-8);
|
|
20
11
|
}
|
|
21
12
|
}
|
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
|
|
3
3
|
@mixin theme($theme) {
|
|
4
|
-
$primary: map-get($theme, primary);
|
|
5
|
-
$accent: map-get($theme, accent);
|
|
6
|
-
$warn: map-get($theme, warn);
|
|
7
|
-
$background: map-get($theme, background);
|
|
8
|
-
$foreground: map-get($theme, foreground);
|
|
9
|
-
|
|
10
4
|
.elder-dialog-panel {
|
|
11
|
-
|
|
12
|
-
background-color:
|
|
5
|
+
// Use CSS variables for Material 3
|
|
6
|
+
background-color: var(--md-sys-color-surface);
|
|
7
|
+
color: var(--md-sys-color-on-surface);
|
|
13
8
|
|
|
14
9
|
padding: 10px;
|
|
15
10
|
border-radius: 4px;
|
|
16
|
-
box-shadow:
|
|
17
|
-
0 5px 5px -3px rgba(0, 0, 0, 0.2),
|
|
18
|
-
0 8px 10px 1px rgba(0, 0, 0, 0.14),
|
|
19
|
-
0 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
11
|
+
box-shadow: var(--mat-app-elevation-shadow-level-8);
|
|
20
12
|
}
|
|
21
13
|
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
|
|
3
|
-
@mixin _elder-panel-color($palette) {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
@mixin _elder-panel-color($palette, $theme) {
|
|
4
|
+
@if (mat.get-theme-version($theme) == 1) {
|
|
5
|
+
background: var(--md-sys-color-primary-container);
|
|
6
|
+
color: var(--md-sys-color-on-primary-container);
|
|
7
|
+
} @else {
|
|
8
|
+
$background: mat.m2-get-color-from-palette($palette, app-bar);
|
|
9
|
+
$foreground: mat.m2-get-color-from-palette($palette, text);
|
|
10
|
+
}
|
|
6
11
|
}
|
|
7
12
|
|
|
8
13
|
@mixin _elder-panel-form-field-overrides {
|
|
@@ -34,23 +39,29 @@
|
|
|
34
39
|
$foreground: map-get($theme, foreground);
|
|
35
40
|
|
|
36
41
|
.mat-panel {
|
|
37
|
-
|
|
38
|
-
|
|
42
|
+
@if (mat.get-theme-version($theme) == 1) {
|
|
43
|
+
background: var(--md-sys-color-primary-container);
|
|
44
|
+
color: var(--md-sys-color-on-primary-container);
|
|
45
|
+
} @else {
|
|
46
|
+
background: mat.m2-get-color-from-palette($background, app-bar);
|
|
47
|
+
color: mat.m2-get-color-from-palette($foreground, text);
|
|
48
|
+
}
|
|
39
49
|
transition: background 0.5s;
|
|
40
50
|
|
|
41
51
|
&.mat-primary {
|
|
42
|
-
@include _elder-panel-color($primary);
|
|
52
|
+
@include _elder-panel-color($primary, $theme);
|
|
43
53
|
}
|
|
44
54
|
|
|
45
55
|
&.mat-accent {
|
|
46
|
-
@include _elder-panel-color($accent);
|
|
56
|
+
@include _elder-panel-color($accent, $theme);
|
|
47
57
|
}
|
|
48
58
|
|
|
49
59
|
&.mat-warn {
|
|
50
|
-
@include _elder-panel-color($warn);
|
|
60
|
+
@include _elder-panel-color($warn, $theme);
|
|
51
61
|
}
|
|
52
62
|
|
|
53
63
|
@include _elder-panel-form-field-overrides;
|
|
64
|
+
@include elder-panel-typography($theme);
|
|
54
65
|
}
|
|
55
66
|
}
|
|
56
67
|
|
|
@@ -62,7 +73,13 @@
|
|
|
62
73
|
.mat-panel h4,
|
|
63
74
|
.mat-panel h5,
|
|
64
75
|
.mat-panel h6 {
|
|
65
|
-
@include mat.m2-typography-level($config, title);
|
|
76
|
+
// @include mat.m2-typography-level($config, title);
|
|
77
|
+
// margin: 0;
|
|
78
|
+
|
|
79
|
+
// Set typography styles for different heading levels
|
|
80
|
+
font-family: var(--mdc-typography-font-family); // Use the MDC font family variable
|
|
81
|
+
|
|
82
|
+
//@include mat.typography($config, headline-2); // try, debug disabled
|
|
66
83
|
margin: 0;
|
|
67
84
|
}
|
|
68
85
|
}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
3
|
@use '../../../../theming/elder-typography-utils' as elder-typography;
|
|
4
|
-
@use '../../../../theming/mat-icon-button-size' as icon-button-size;
|
|
5
4
|
|
|
6
5
|
@mixin typography($typography-config) {
|
|
7
|
-
$
|
|
8
|
-
// The unit-less line-height from the font config.
|
|
9
|
-
$line-height: mat.m2-line-height($config, body-1);
|
|
10
|
-
$font-size: mat.m2-font-size($config, body-1);
|
|
11
|
-
$line-height-em: elder-typography.coerce-unitless-to-em($line-height);
|
|
6
|
+
$line-height-em: var(--md-sys-typescale-body-medium-line-height);
|
|
12
7
|
|
|
13
8
|
$icon-size: 16px;
|
|
14
9
|
$arrow-icon-size: 24px;
|
|
@@ -32,6 +27,3 @@
|
|
|
32
27
|
font-size: $icon-size !important;
|
|
33
28
|
}
|
|
34
29
|
}
|
|
35
|
-
|
|
36
|
-
@mixin color($color-config) {
|
|
37
|
-
}
|
|
@@ -80,10 +80,7 @@
|
|
|
80
80
|
.cdk-drag-preview {
|
|
81
81
|
box-sizing: border-box;
|
|
82
82
|
// border-radius: 4px;
|
|
83
|
-
box-shadow:
|
|
84
|
-
0 5px 5px -3px rgba(0, 0, 0, 0.2),
|
|
85
|
-
0 8px 10px 1px rgba(0, 0, 0, 0.14),
|
|
86
|
-
0 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
83
|
+
box-shadow: var(--mat-app-elevation-shadow-level-8);
|
|
87
84
|
}
|
|
88
85
|
|
|
89
86
|
.cdk-drag-placeholder {
|
|
@@ -4,19 +4,13 @@
|
|
|
4
4
|
@use '../../elder-select-base' as elder-select-base;
|
|
5
5
|
|
|
6
6
|
@mixin typography($typography-config) {
|
|
7
|
-
$config: $typography-config; // TODO $typography-config
|
|
8
|
-
// The unit-less line-height from the font config.
|
|
9
|
-
$line-height: mat.m2-line-height($config, body-1);
|
|
10
|
-
$font-size: mat.m2-font-size($config, body-1);
|
|
11
|
-
$line-height-em: elder-typography.coerce-unitless-to-em($line-height);
|
|
12
|
-
|
|
13
7
|
@include elder-select-base.typography($typography-config);
|
|
14
8
|
|
|
15
9
|
.elder-multi-select {
|
|
16
|
-
font-family:
|
|
10
|
+
font-family: var(--md-sys-typescale-body-medium-font);
|
|
17
11
|
|
|
18
12
|
.elder-select-input {
|
|
19
|
-
height:
|
|
13
|
+
height: var(--md-sys-typescale-body-medium-line-height);
|
|
20
14
|
}
|
|
21
15
|
|
|
22
16
|
.elder-prefix-icon {
|
|
@@ -40,39 +34,16 @@
|
|
|
40
34
|
}
|
|
41
35
|
|
|
42
36
|
@mixin theme($config-or-theme) {
|
|
43
|
-
|
|
44
|
-
$typography: elder-typography.get-typography-config($config-or-theme);
|
|
45
|
-
|
|
46
|
-
// If no actual typography configuration has been specified, create a default one.
|
|
47
|
-
@if not $typography {
|
|
48
|
-
$typography: mat.m2-define-typography-config();
|
|
49
|
-
}
|
|
37
|
+
@include typography($config-or-theme);
|
|
50
38
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
39
|
+
.elder-chip-text {
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
text-overflow: ellipsis;
|
|
42
|
+
white-space: nowrap;
|
|
54
43
|
}
|
|
55
44
|
|
|
56
|
-
|
|
57
|
-
|
|
45
|
+
.elder-trailing-icon {
|
|
46
|
+
color: var(--mdc-chip-with-trailing-icon-trailing-icon-color);
|
|
47
|
+
opacity: 0.54;
|
|
58
48
|
}
|
|
59
49
|
}
|
|
60
|
-
|
|
61
|
-
@mixin _chip_color($theme) {
|
|
62
|
-
$primary: map-get($theme, primary);
|
|
63
|
-
$accent: map-get($theme, accent);
|
|
64
|
-
$warn: map-get($theme, warn);
|
|
65
|
-
$background: map-get($theme, background);
|
|
66
|
-
$foreground: map-get($theme, foreground);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.elder-chip-text {
|
|
70
|
-
overflow: hidden;
|
|
71
|
-
text-overflow: ellipsis;
|
|
72
|
-
white-space: nowrap;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.elder-trailing-icon {
|
|
76
|
-
color: var(--mdc-chip-with-trailing-icon-trailing-icon-color);
|
|
77
|
-
opacity: 0.54;
|
|
78
|
-
}
|
|
@@ -4,19 +4,13 @@
|
|
|
4
4
|
@use '../../elder-select-base' as elder-select-base;
|
|
5
5
|
|
|
6
6
|
@mixin typography($typography-config) {
|
|
7
|
-
$config: $typography-config; // TODO $typography-config
|
|
8
|
-
// The unit-less line-height from the font config.
|
|
9
|
-
$line-height: mat.m2-line-height($config, body-1);
|
|
10
|
-
$font-size: mat.m2-font-size($config, body-1);
|
|
11
|
-
$line-height-em: elder-typography.coerce-unitless-to-em($line-height);
|
|
12
|
-
|
|
13
7
|
@include elder-select-base.typography($typography-config);
|
|
14
8
|
|
|
15
9
|
.elder-multi-select {
|
|
16
|
-
font-family:
|
|
10
|
+
font-family: var(--md-sys-typescale-body-medium-font);
|
|
17
11
|
|
|
18
12
|
.elder-select-input {
|
|
19
|
-
height:
|
|
13
|
+
height: var(--md-sys-typescale-body-medium-line-height);
|
|
20
14
|
}
|
|
21
15
|
|
|
22
16
|
.elder-prefix-icon {
|
|
@@ -40,56 +34,29 @@
|
|
|
40
34
|
}
|
|
41
35
|
|
|
42
36
|
@mixin theme($config-or-theme) {
|
|
43
|
-
|
|
44
|
-
$typography: elder-typography.get-typography-config($config-or-theme);
|
|
37
|
+
@include typography($config-or-theme);
|
|
45
38
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
39
|
+
.elder-chip-text {
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
text-overflow: ellipsis;
|
|
42
|
+
white-space: nowrap;
|
|
49
43
|
}
|
|
50
44
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
45
|
+
.elder-trailing-icon {
|
|
46
|
+
color: var(--mdc-chip-with-trailing-icon-trailing-icon-color);
|
|
47
|
+
opacity: 0.54;
|
|
54
48
|
}
|
|
55
49
|
|
|
56
|
-
|
|
57
|
-
|
|
50
|
+
.cdk-drag-preview {
|
|
51
|
+
box-sizing: border-box;
|
|
52
|
+
box-shadow: var(--mat-app-elevation-shadow-level-8);
|
|
58
53
|
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@mixin _chip_color($theme) {
|
|
62
|
-
$primary: map-get($theme, primary);
|
|
63
|
-
$accent: map-get($theme, accent);
|
|
64
|
-
$warn: map-get($theme, warn);
|
|
65
|
-
$background: map-get($theme, background);
|
|
66
|
-
$foreground: map-get($theme, foreground);
|
|
67
|
-
}
|
|
68
54
|
|
|
69
|
-
.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
white-space: nowrap;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.elder-trailing-icon {
|
|
76
|
-
color: var(--mdc-chip-with-trailing-icon-trailing-icon-color);
|
|
77
|
-
opacity: 0.54;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.cdk-drag-preview {
|
|
81
|
-
box-sizing: border-box;
|
|
82
|
-
// border-radius: 4px;
|
|
83
|
-
box-shadow:
|
|
84
|
-
0 5px 5px -3px rgba(0, 0, 0, 0.2),
|
|
85
|
-
0 8px 10px 1px rgba(0, 0, 0, 0.14),
|
|
86
|
-
0 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.cdk-drag-placeholder {
|
|
90
|
-
opacity: 0;
|
|
91
|
-
}
|
|
55
|
+
.cdk-drag-placeholder {
|
|
56
|
+
opacity: 0;
|
|
57
|
+
}
|
|
92
58
|
|
|
93
|
-
.cdk-drag-animating {
|
|
94
|
-
|
|
59
|
+
.cdk-drag-animating {
|
|
60
|
+
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
61
|
+
}
|
|
95
62
|
}
|
|
@@ -3,17 +3,13 @@
|
|
|
3
3
|
@use '../../../../../../theming/elder-typography-utils' as elder-typography;
|
|
4
4
|
@use '../../elder-select-base' as elder-select-base;
|
|
5
5
|
|
|
6
|
-
@mixin typography($
|
|
7
|
-
$
|
|
8
|
-
// The unit-less line-height from the font config.
|
|
9
|
-
$line-height: mat.m2-line-height($config, body-1);
|
|
10
|
-
$font-size: mat.m2-font-size($config, body-1);
|
|
11
|
-
$line-height-em: elder-typography.coerce-unitless-to-em($line-height);
|
|
6
|
+
@mixin typography($config-or-theme) {
|
|
7
|
+
$line-height-em: var(--md-sys-typescale-body-medium-line-height);
|
|
12
8
|
|
|
13
|
-
@include elder-select-base.typography($
|
|
9
|
+
@include elder-select-base.typography($config-or-theme);
|
|
14
10
|
|
|
15
11
|
.elder-select {
|
|
16
|
-
font-family:
|
|
12
|
+
font-family: var(--md-sys-typescale-body-medium-font);
|
|
17
13
|
|
|
18
14
|
.elder-input-prefix-icon-container {
|
|
19
15
|
padding-right: 3px;
|
|
@@ -31,45 +27,33 @@
|
|
|
31
27
|
}
|
|
32
28
|
|
|
33
29
|
@mixin theme($config-or-theme) {
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
// @debug mat.get-theme-typography($config-or-theme, body-medium, line-height);
|
|
31
|
+
// @debug mat.get-theme-typography($config-or-theme, body-medium, font-family);
|
|
32
|
+
@include typography($config-or-theme);
|
|
36
33
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
@keyframes shrink {
|
|
35
|
+
0% {
|
|
36
|
+
transform: scale(1);
|
|
37
|
+
}
|
|
38
|
+
100% {
|
|
39
|
+
transform: scale(0.75);
|
|
40
|
+
}
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
.loading {
|
|
44
|
+
animation: shrink 0.3s ease-in-out infinite alternate;
|
|
45
|
+
-webkit-animation: shrink 0.3s ease-in-out infinite alternate;
|
|
44
46
|
}
|
|
45
47
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
.clickable-icon {
|
|
49
|
+
cursor: pointer;
|
|
48
50
|
}
|
|
49
|
-
}
|
|
50
51
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
transform: scale(1);
|
|
52
|
+
.full-width {
|
|
53
|
+
width: 100%;
|
|
54
54
|
}
|
|
55
|
-
100% {
|
|
56
|
-
transform: scale(0.75);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.loading {
|
|
61
|
-
animation: shrink 0.3s ease-in-out infinite alternate;
|
|
62
|
-
-webkit-animation: shrink 0.3s ease-in-out infinite alternate;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.clickable-icon {
|
|
66
|
-
cursor: pointer;
|
|
67
|
-
}
|
|
68
55
|
|
|
69
|
-
.
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.elder-select-dropdown-input {
|
|
74
|
-
cursor: pointer;
|
|
56
|
+
.elder-select-dropdown-input {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
}
|
|
75
59
|
}
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
@use '../../../../theming/elder-typography-utils' as elder-typography;
|
|
4
4
|
|
|
5
5
|
@mixin theme($config-or-theme) {
|
|
6
|
-
$color: mat.m2-get-color-config($config-or-theme);
|
|
7
|
-
$typography: mat.m2-get-typography-config($config-or-theme);
|
|
8
|
-
|
|
9
6
|
@include _interval-form-field-sizing();
|
|
10
7
|
@include _interval-form-field-color();
|
|
11
8
|
}
|
|
@@ -1,3 +1,32 @@
|
|
|
1
|
-
.toast
|
|
2
|
-
|
|
1
|
+
.elder-toast {
|
|
2
|
+
--mat-snack-bar-button-color: var(--md-sys-color-on-primary-container);
|
|
3
|
+
|
|
4
|
+
button {
|
|
5
|
+
background-color: var(--md-sys-color-primary-container);;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.toast-title,
|
|
9
|
+
.mat-icon {
|
|
10
|
+
color: var(--md-sys-color-primary-fixed);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&.elder-toast-type-warn {
|
|
14
|
+
button {
|
|
15
|
+
background-color: var(--md-sys-color-tertiary-container);
|
|
16
|
+
}
|
|
17
|
+
.toast-title,
|
|
18
|
+
.mat-icon {
|
|
19
|
+
color: var(--md-sys-color-tertiary-fixed);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.elder-toast-type-error {
|
|
24
|
+
button {
|
|
25
|
+
background-color: var(--md-sys-color-error-container);
|
|
26
|
+
}
|
|
27
|
+
.toast-title,
|
|
28
|
+
.mat-icon {
|
|
29
|
+
color: var(--md-sys-color-error);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
3
32
|
}
|