@elderbyte/ngx-starter 18.13.0-beta.2 → 18.14.0
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 +6 -25
- package/esm2022/lib/common/exceptions/public_api.mjs +2 -0
- package/esm2022/lib/common/exceptions/unreachable-case-error.mjs +6 -0
- package/esm2022/lib/common/public_api.mjs +2 -1
- package/esm2022/lib/components/access-denied/elder-access-denied.component.mjs +3 -3
- package/esm2022/lib/components/badge/elder-badge/elder-badge.component.mjs +3 -3
- package/esm2022/lib/components/card-organizer/card-stack/elder-card-stack.component.mjs +3 -3
- package/esm2022/lib/components/cards/elder-card/elder-card.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/data-view/grid/elder-grid/elder-grid.component.mjs +3 -3
- package/esm2022/lib/components/data-view/table/elder-table/elder-table.component.mjs +3 -3
- package/esm2022/lib/components/dialogs/confirm-dialog/elder-confirm-dialog.component.mjs +3 -3
- package/esm2022/lib/components/dialogs/selection-dialog/elder-selection-dialog/elder-selection-dialog.component.mjs +3 -3
- package/esm2022/lib/components/files/blob-viewer/elder-blob-viewer.component.mjs +3 -3
- package/esm2022/lib/components/forms/directives/checkbox/elder-single-state-checkbox-controller.mjs +97 -0
- package/esm2022/lib/components/forms/directives/checkbox/elder-single-state-checkbox.directive.mjs +50 -0
- package/esm2022/lib/components/forms/directives/checkbox/elder-triple-state-checkbox-controller.mjs +102 -0
- package/esm2022/lib/components/forms/directives/checkbox/elder-triple-state-checkbox.directive.mjs +50 -0
- package/esm2022/lib/components/forms/directives/elder-forms-directives.module.mjs +9 -3
- package/esm2022/lib/components/forms/search/search-box/elder-search-box.component.mjs +3 -3
- package/esm2022/lib/components/graph/elder-progress-bar/elder-progress-bar.component.mjs +3 -3
- package/esm2022/lib/components/headers/elder-header/elder-header.component.mjs +3 -3
- package/esm2022/lib/components/input/autocomplete/elder-autocomplete/elder-suggestion-panel.component.mjs +5 -12
- package/esm2022/lib/components/navigation/bread-crumbs/bread-crumbs/elder-bread-crumbs.component.mjs +3 -3
- package/esm2022/lib/components/navigation/nav/nav-group/elder-nav-group.component.mjs +3 -3
- package/esm2022/lib/components/navigation/nav/nav-link/elder-nav-link.component.mjs +3 -3
- package/esm2022/lib/components/navigation/toolbar/toolbar/elder-toolbar.component.mjs +5 -4
- package/esm2022/lib/components/page/exit-guard/page-exit-lock-indicator/page-exit-lock-indicator.component.mjs +3 -3
- package/esm2022/lib/components/page/exit-guard/page-exit-lock-overview/page-exit-lock-overview.component.mjs +3 -3
- package/esm2022/lib/components/select/elder-select-base.mjs +4 -2
- 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-base.mjs +4 -2
- 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 +20 -6
- 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 +5 -3
- package/esm2022/lib/components/shell/header/elder-app-header/elder-app-header.component.mjs +3 -3
- package/esm2022/lib/components/shell/shell/elder-shell.component.mjs +6 -6
- 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 +408 -221
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/common/exceptions/public_api.d.ts +1 -0
- package/lib/common/exceptions/unreachable-case-error.d.ts +4 -0
- package/lib/common/public_api.d.ts +1 -0
- package/lib/components/forms/directives/checkbox/elder-single-state-checkbox-controller.d.ts +46 -0
- package/lib/components/forms/directives/checkbox/elder-single-state-checkbox.directive.d.ts +34 -0
- package/lib/components/forms/directives/checkbox/elder-triple-state-checkbox-controller.d.ts +47 -0
- package/lib/components/forms/directives/{elder-triple-state-checkbox.directive.d.ts → checkbox/elder-triple-state-checkbox.directive.d.ts} +10 -23
- package/lib/components/forms/directives/elder-forms-directives.module.d.ts +9 -7
- package/lib/components/input/autocomplete/elder-autocomplete/elder-suggestion-panel.component.d.ts +1 -2
- package/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.d.ts +4 -1
- package/package.json +1 -1
- package/src/lib/components/badge/elder-badge/elder-badge.component.scss +2 -2
- package/src/lib/components/button-group/elder-button-group/elder-button-group.component.scss +9 -3
- package/src/lib/components/card-organizer/card-stack/elder-card-stack.component.scss +36 -9
- package/src/lib/components/cards/elder-card/elder-card.component.scss +14 -7
- package/src/lib/components/chips/_elder-chip-theme.scss +12 -101
- package/src/lib/components/data-transfer/http-data-transfer-indicator/http-data-transfer-indicator.component.scss +7 -1
- package/src/lib/components/data-transfer/http-data-transfer-overview/http-data-transfer-overview.component.scss +0 -11
- package/src/lib/components/data-view/grid/elder-grid/elder-grid.component.scss +26 -16
- package/src/lib/components/data-view/table/elder-table/elder-table.component.scss +22 -13
- package/src/lib/components/errors/exception-detail/elder-exception-detail.component.scss +9 -2
- package/src/lib/components/expand-toggle-button/elder-expand-toggle-button.component.scss +9 -3
- package/src/lib/components/files/blob-viewer/elder-blob-viewer.component.scss +10 -4
- package/src/lib/components/files/drag-n-drop/elder-drop-zone/elder-drop-zone.component.scss +10 -7
- package/src/lib/components/graph/elder-progress-bar/elder-progress-bar.component.scss +1 -0
- package/src/lib/components/iframes/iframe-host/iframe-host.component.scss +4 -0
- package/src/lib/components/navigation/bread-crumbs/bread-crumbs/elder-bread-crumbs.component.scss +0 -2
- package/src/lib/components/navigation/nav/_elder-nav-theme.scss +24 -16
- package/src/lib/components/navigation/nav/nav-group/elder-nav-group.component.scss +1 -1
- package/src/lib/components/navigation/nav/nav-link/elder-nav-link.component.scss +4 -4
- package/src/lib/components/page/exit-guard/page-exit-lock-indicator/page-exit-lock-indicator.component.scss +5 -2
- package/src/lib/components/panels/card-panel/elder-card-panel.component.scss +13 -4
- package/src/lib/components/panels/elder-dialog-panel/elder-dialog-panel.component.scss +13 -5
- package/src/lib/components/panels/flat/_elder-panel-theme.scss +25 -9
- package/src/lib/components/select/_elder-select-base.scss +9 -1
- package/src/lib/components/select/filter/elder-filter-chip-template/elder-filter-chip-template.component.scss +6 -2
- package/src/lib/components/select/multi/elder-multi-select-chip-options/elder-multi-select-chip-options.component.scss +39 -10
- package/src/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.scss +52 -18
- package/src/lib/components/select/single/elder-select/elder-select.component.scss +40 -24
- package/src/lib/components/shell/header/elder-app-header/elder-app-header.component.scss +2 -2
- package/src/lib/components/shell/shell/elder-shell.component.scss +0 -8
- package/src/lib/components/time/_elder-time-input.theme.scss +3 -0
- package/src/lib/components/toasts/standard-toast/standard-toast.component.scss +2 -31
- package/theming/_elder-common.scss +402 -21
- package/theming/_elder-defaults.scss +7 -3
- package/theming/_elder-flex-layout.scss +11 -0
- package/theming/_elder-mdc-support.scss +142 -59
- package/theming/_elder-palettes.scss +148 -0
- package/theming/_elder-scrollbar-theme.scss +12 -2
- package/theming/_elder-style-fixes.scss +88 -214
- package/theming/_elder-theme.scss +51 -0
- package/theming/_elder-toast-theme.scss +46 -0
- package/theming/_elder-typography-utils.scss +11 -0
- package/theming/_mat-icon-button-size.scss +34 -0
- package/theming/_mixins.scss +1 -35
- package/esm2022/lib/components/forms/directives/elder-triple-state-checkbox.directive.mjs +0 -120
- package/src/lib/components/chips/_elder-chip-theme-old.scss +0 -122
- package/theming/_elder-badge-sizing.scss +0 -21
- package/theming/_elder-color-helpers.scss +0 -74
- package/theming/_elder-color-variants.scss +0 -26
- package/theming/_elder-design-token-overwrites.scss +0 -33
- package/theming/_elder-form.scss +0 -308
- package/theming/_elder-layout-system.scss +0 -467
- package/theming/_elder-m3-theme.scss +0 -958
|
@@ -4,13 +4,19 @@
|
|
|
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
|
+
|
|
7
13
|
@include elder-select-base.typography($typography-config);
|
|
8
14
|
|
|
9
15
|
.elder-multi-select {
|
|
10
|
-
font-family:
|
|
16
|
+
font-family: mat.m2-font-family($config);
|
|
11
17
|
|
|
12
18
|
.elder-select-input {
|
|
13
|
-
height:
|
|
19
|
+
height: $line-height-em;
|
|
14
20
|
}
|
|
15
21
|
|
|
16
22
|
.elder-prefix-icon {
|
|
@@ -34,16 +40,39 @@
|
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
@mixin theme($config-or-theme) {
|
|
37
|
-
|
|
43
|
+
$color: mat.m2-get-color-config($config-or-theme);
|
|
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
|
+
}
|
|
38
50
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
white-space: nowrap;
|
|
51
|
+
@if $color != null {
|
|
52
|
+
@include elder-select-base.color($color);
|
|
53
|
+
@include _chip_color($config-or-theme);
|
|
43
54
|
}
|
|
44
55
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
opacity: 0.54;
|
|
56
|
+
@if $typography != null {
|
|
57
|
+
@include typography($typography);
|
|
48
58
|
}
|
|
49
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
|
+
|
|
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,13 +4,19 @@
|
|
|
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
|
+
|
|
7
13
|
@include elder-select-base.typography($typography-config);
|
|
8
14
|
|
|
9
15
|
.elder-multi-select {
|
|
10
|
-
font-family:
|
|
16
|
+
font-family: mat.m2-font-family($config);
|
|
11
17
|
|
|
12
18
|
.elder-select-input {
|
|
13
|
-
height:
|
|
19
|
+
height: $line-height-em;
|
|
14
20
|
}
|
|
15
21
|
|
|
16
22
|
.elder-prefix-icon {
|
|
@@ -34,28 +40,56 @@
|
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
@mixin theme($config-or-theme) {
|
|
37
|
-
|
|
43
|
+
$color: mat.m2-get-color-config($config-or-theme);
|
|
44
|
+
$typography: elder-typography.get-typography-config($config-or-theme);
|
|
38
45
|
|
|
39
|
-
.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
white-space: nowrap;
|
|
46
|
+
// If no actual typography configuration has been specified, create a default one.
|
|
47
|
+
@if not $typography {
|
|
48
|
+
$typography: mat.m2-define-typography-config();
|
|
43
49
|
}
|
|
44
50
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
@if $color != null {
|
|
52
|
+
@include elder-select-base.color($color);
|
|
53
|
+
@include _chip_color($config-or-theme);
|
|
48
54
|
}
|
|
49
55
|
|
|
50
|
-
|
|
51
|
-
|
|
56
|
+
@if $typography != null {
|
|
57
|
+
@include typography($typography);
|
|
52
58
|
}
|
|
59
|
+
}
|
|
53
60
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
+
}
|
|
57
68
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
+
}
|
|
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
|
+
}
|
|
92
|
+
|
|
93
|
+
.cdk-drag-animating {
|
|
94
|
+
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
61
95
|
}
|
|
@@ -3,13 +3,17 @@
|
|
|
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($config
|
|
7
|
-
$
|
|
6
|
+
@mixin typography($typography-config) {
|
|
7
|
+
$config: $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);
|
|
8
12
|
|
|
9
|
-
@include elder-select-base.typography($config
|
|
13
|
+
@include elder-select-base.typography($typography-config);
|
|
10
14
|
|
|
11
15
|
.elder-select {
|
|
12
|
-
font-family:
|
|
16
|
+
font-family: mat.m2-font-family($config);
|
|
13
17
|
|
|
14
18
|
.elder-input-prefix-icon-container {
|
|
15
19
|
padding-right: 3px;
|
|
@@ -27,33 +31,45 @@
|
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
@mixin theme($config-or-theme) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
@include typography($config-or-theme);
|
|
34
|
+
$color: mat.m2-get-color-config($config-or-theme);
|
|
35
|
+
$typography: elder-typography.get-typography-config($config-or-theme);
|
|
33
36
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
100% {
|
|
39
|
-
transform: scale(0.75);
|
|
40
|
-
}
|
|
37
|
+
// If no actual typography configuration has been specified, create a default one.
|
|
38
|
+
@if not $typography {
|
|
39
|
+
$typography: mat.m2-define-typography-config();
|
|
41
40
|
}
|
|
42
41
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
-webkit-animation: shrink 0.3s ease-in-out infinite alternate;
|
|
42
|
+
@if $color != null {
|
|
43
|
+
@include elder-select-base.color($color);
|
|
46
44
|
}
|
|
47
45
|
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
@if $typography != null {
|
|
47
|
+
@include typography($typography);
|
|
50
48
|
}
|
|
49
|
+
}
|
|
51
50
|
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
@keyframes shrink {
|
|
52
|
+
0% {
|
|
53
|
+
transform: scale(1);
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
cursor: pointer;
|
|
55
|
+
100% {
|
|
56
|
+
transform: scale(0.75);
|
|
58
57
|
}
|
|
59
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
|
+
|
|
69
|
+
.full-width {
|
|
70
|
+
width: 100%;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.elder-select-dropdown-input {
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
}
|
|
@@ -3,6 +3,9 @@
|
|
|
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
|
+
|
|
6
9
|
@include _interval-form-field-sizing();
|
|
7
10
|
@include _interval-form-field-color();
|
|
8
11
|
}
|
|
@@ -1,32 +1,3 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
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-container);
|
|
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-container);
|
|
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-container);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
1
|
+
.toast-title {
|
|
2
|
+
font-size: 16px;
|
|
32
3
|
}
|