@elderbyte/ngx-starter 19.1.27 → 19.2.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/fesm2022/elderbyte-ngx-starter.mjs +2167 -1822
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/components/data-view/base/elder-data-view-base.d.ts +22 -42
- package/lib/components/data-view/base/elder-data-view.d.ts +7 -3
- package/lib/components/data-view/common/activation/data-view-activation-controller.service.d.ts +69 -0
- package/lib/components/data-view/common/activation/elder-activation-options.d.ts +16 -0
- package/lib/components/data-view/common/activation/model/activation-model.d.ts +49 -0
- package/lib/components/data-view/common/activation/public_api.d.ts +6 -0
- package/lib/components/data-view/common/elder-data-common.module.d.ts +0 -9
- package/lib/components/data-view/common/public_api.d.ts +11 -0
- package/lib/components/data-view/common/selection/data-context-selection.directive.d.ts +2 -2
- package/lib/components/data-view/common/selection/elder-selection-master-checkbox/elder-selection-master-checkbox.component.d.ts +5 -9
- package/lib/components/data-view/grid/activation/elder-grid-activation.directive.d.ts +46 -0
- package/lib/components/data-view/grid/elder-grid/elder-grid.component.d.ts +9 -11
- package/lib/components/data-view/grid/elder-grid.module.d.ts +20 -17
- package/lib/components/data-view/grid/elder-tile/elder-tile.component.d.ts +54 -0
- package/lib/components/data-view/master-detail/elder-master-activation.directive.d.ts +9 -7
- package/lib/components/data-view/master-detail/elder-master-detail.module.d.ts +2 -2
- package/lib/components/data-view/master-detail/elder-master-detail.service.d.ts +1 -1
- package/lib/components/data-view/master-detail/{elder-master-detail.component.d.ts → master-detail/elder-master-detail.component.d.ts} +8 -15
- package/lib/components/data-view/master-detail/master-detail-activation-event.d.ts +1 -1
- package/lib/components/data-view/public_api.d.ts +1 -1
- package/lib/components/data-view/table/activation/elder-delete-active.directive.d.ts +9 -11
- package/lib/components/data-view/table/activation/elder-table-activation.directive.d.ts +13 -50
- package/lib/components/data-view/table/activation/public_api.d.ts +0 -5
- package/lib/components/data-view/table/elder-table/elder-table.component.d.ts +16 -15
- package/lib/components/data-view/table/elder-table-row.directive.d.ts +10 -8
- package/lib/components/i18n/entities/elder-localized-input-table/elder-localized-input-table.component.d.ts +6 -0
- package/lib/components/select-chip-list/chip-list-select/elder-chip-list-select.component.d.ts +18 -10
- package/package.json +1 -1
- package/src/lib/components/data-view/grid/elder-grid/elder-grid.component.scss +9 -80
- package/src/lib/components/data-view/grid/elder-tile/elder-tile.component.scss +110 -0
- package/theming/abstracts/_elder-design-tokens.scss +13 -1
- package/lib/components/data-view/table/activation/elder-activation-context.d.ts +0 -7
- package/lib/components/data-view/table/activation/elder-table-activation-options.d.ts +0 -16
- /package/lib/components/data-view/{table/activation → common/activation/model}/activation-event-source.d.ts +0 -0
- /package/lib/components/data-view/{table/activation → common/activation/model}/item-activation-event.d.ts +0 -0
- /package/lib/components/data-view/{table/activation → common/activation/model}/item-activation-options.d.ts +0 -0
- /package/src/lib/components/data-view/master-detail/{elder-master-detail.component.scss → master-detail/elder-master-detail.component.scss} +0 -0
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
$elder-tile-padding: 8px;
|
|
2
2
|
|
|
3
|
+
.elder-grid-tile {
|
|
4
|
+
flex: 0 1 100%;
|
|
5
|
+
flex-grow: 1;
|
|
6
|
+
margin: 0 $elder-tile-padding;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
}
|
|
11
|
+
|
|
3
12
|
.elder-grid-tile-row {
|
|
4
13
|
display: flex;
|
|
5
14
|
flex-direction: row;
|
|
@@ -16,36 +25,6 @@ $elder-tile-padding: 8px;
|
|
|
16
25
|
height: 100%;
|
|
17
26
|
}
|
|
18
27
|
|
|
19
|
-
.elder-grid-tile-content {
|
|
20
|
-
position: relative;
|
|
21
|
-
width: 100%;
|
|
22
|
-
height: 100%;
|
|
23
|
-
overflow: hidden;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.elder-grid-tile-overlay {
|
|
27
|
-
position: absolute;
|
|
28
|
-
left: 0;
|
|
29
|
-
top: 0;
|
|
30
|
-
right: 0;
|
|
31
|
-
bottom: 0;
|
|
32
|
-
transition:
|
|
33
|
-
background-color 0.1s ease-in,
|
|
34
|
-
opacity 0.1s ease-in;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.elder-click-through {
|
|
38
|
-
pointer-events: none;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.elder-grid-tile-overlay-visible {
|
|
42
|
-
opacity: 1;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.elder-grid-tile-overlay-hidden {
|
|
46
|
-
opacity: 0;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
28
|
.elder-grid-container {
|
|
50
29
|
background-color: var(--elder-grid-background-color);
|
|
51
30
|
}
|
|
@@ -65,53 +44,3 @@ $elder-tile-padding: 8px;
|
|
|
65
44
|
.elder-grid-footer {
|
|
66
45
|
min-height: var(--elder-data-element-footer-height);
|
|
67
46
|
}
|
|
68
|
-
|
|
69
|
-
.elder-grid-tile {
|
|
70
|
-
overflow: hidden;
|
|
71
|
-
flex: 0 1 100%;
|
|
72
|
-
flex-grow: 1;
|
|
73
|
-
margin: 0 $elder-tile-padding;
|
|
74
|
-
width: 100%;
|
|
75
|
-
height: 100%;
|
|
76
|
-
cursor: pointer;
|
|
77
|
-
border-radius: var(--elder-pane-border-radius);
|
|
78
|
-
background-color: var(--md-sys-color-surface-container-low);
|
|
79
|
-
text-align: left;
|
|
80
|
-
transition:
|
|
81
|
-
box-shadow 200ms cubic-bezier(0, 0, 0.2, 1),
|
|
82
|
-
border 0.25s linear;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.elder-grid-tile:hover {
|
|
86
|
-
//border-color: rgba(var(--md-sys-color-primary), 0.75);
|
|
87
|
-
border-color: var(--md-sys-color-primary);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.elder-grid-tile-content:hover .elder-grid-tile-overlay {
|
|
91
|
-
opacity: 1;
|
|
92
|
-
background-color: rgba(white, 0.08);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.elder-grid-tile:active {
|
|
96
|
-
z-index: 100;
|
|
97
|
-
box-shadow: var(--elder-box-shadow-default);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.elder-grid-tile-check {
|
|
101
|
-
pointer-events: auto;
|
|
102
|
-
mat-icon {
|
|
103
|
-
color: var(--md-sys-color-outline-variant);
|
|
104
|
-
background-color: var(--md-sys-color-surface);
|
|
105
|
-
border-radius: 12px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
mat-icon.elder-selected {
|
|
109
|
-
color: var(--md-sys-color-tertiary);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.elder-grid-tile-check:hover {
|
|
114
|
-
mat-icon {
|
|
115
|
-
color: var(--md-sys-color-primary);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
.elder-tile {
|
|
2
|
+
border-radius: var(--elder-pane-border-radius);
|
|
3
|
+
background-color: var(--md-sys-color-surface-container-low);
|
|
4
|
+
text-align: left;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
transition:
|
|
7
|
+
box-shadow 200ms cubic-bezier(0, 0, 0.2, 1),
|
|
8
|
+
border 0.25s linear;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.elder-tile:hover {
|
|
12
|
+
//border-color: rgba(var(--md-sys-color-primary), 0.75);
|
|
13
|
+
border-color: var(--md-sys-color-primary);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.elder-tile-content {
|
|
17
|
+
position: relative;
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
|
|
21
|
+
border-radius: var(--elder-pane-border-radius);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.elder-tile-content:hover .elder-tile-overlay {
|
|
25
|
+
opacity: 1;
|
|
26
|
+
background-color: rgba(white, 0.08);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.elder-tile:active {
|
|
30
|
+
z-index: 100;
|
|
31
|
+
box-shadow: var(--elder-box-shadow-default);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.elder-selection-overlay {
|
|
35
|
+
position: absolute;
|
|
36
|
+
left: 0;
|
|
37
|
+
top: 0;
|
|
38
|
+
right: 0;
|
|
39
|
+
bottom: 0;
|
|
40
|
+
transition:
|
|
41
|
+
background-color 0.1s ease-in,
|
|
42
|
+
opacity 0.1s ease-in;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.elder-tile-overlay {
|
|
46
|
+
position: absolute;
|
|
47
|
+
left: 0;
|
|
48
|
+
top: 0;
|
|
49
|
+
right: 0;
|
|
50
|
+
bottom: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.elder-selection-overlay-visible {
|
|
54
|
+
opacity: 1;
|
|
55
|
+
tab-index: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.elder-selection-overlay-hidden {
|
|
59
|
+
opacity: 0;
|
|
60
|
+
tab-index: -1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.elder-click-through {
|
|
64
|
+
pointer-events: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.elder-tile-check {
|
|
68
|
+
pointer-events: auto;
|
|
69
|
+
mat-icon {
|
|
70
|
+
color: var(--md-sys-color-outline-variant);
|
|
71
|
+
background-color: var(--md-sys-color-surface);
|
|
72
|
+
border-radius: 12px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
mat-icon.elder-selected {
|
|
76
|
+
color: var(--md-sys-color-tertiary);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.elder-tile-check:hover {
|
|
81
|
+
mat-icon {
|
|
82
|
+
color: var(--md-sys-color-primary);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.elder-tile:focus {
|
|
87
|
+
// Disable browser focus style
|
|
88
|
+
// box-shadow: color-mix(in rgb, 80%, black);
|
|
89
|
+
//background-color: color-mix(in sRGB, var(--elder-color-highlight-strong) 80%, black)
|
|
90
|
+
outline: 2px solid var(--elder-color-highlight-focus);
|
|
91
|
+
|
|
92
|
+
// background-color: var(--elder-color-highlight-strong);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.elder-tile.activated:focus {
|
|
96
|
+
// Disable browser focus style
|
|
97
|
+
// box-shadow: color-mix(in rgb, 80%, black);
|
|
98
|
+
//background-color: color-mix(in sRGB, var(--elder-color-highlight-strong) 80%, black)
|
|
99
|
+
outline: 2px solid var(--elder-color-highlight-focus);
|
|
100
|
+
// background-color: var(--elder-color-highlight-strong);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.elder-tile.activated {
|
|
104
|
+
// background-color: var(--elder-color-highlight-strong);
|
|
105
|
+
outline: 2px dashed var(--elder-color-highlight-focus);
|
|
106
|
+
.elder-tile-overlay {
|
|
107
|
+
// opacity: 1;
|
|
108
|
+
// background-color: color-mix(in sRGB, var(--elder-color-highlight-strong), transparent 70%);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -122,11 +122,16 @@
|
|
|
122
122
|
--elder-blue: var(--md-sys-color-primary);
|
|
123
123
|
--md-sys-color-tertiary: var(--elder-gold);
|
|
124
124
|
|
|
125
|
-
--elder-color-highlight-strong: hsl(214, 18%, 85%);
|
|
126
125
|
--elder-color-highlight-strong: var(--elder-gold-light);
|
|
127
126
|
--elder-color-highlight-light: #ebebeb;
|
|
128
127
|
--elder-color-highlight-variant: var(--md-sys-color-secondary-fixed);
|
|
129
128
|
|
|
129
|
+
--elder-color-highlight-focus: color-mix(
|
|
130
|
+
in sRGB,
|
|
131
|
+
var(--elder-color-highlight-strong) 80%,
|
|
132
|
+
black
|
|
133
|
+
);
|
|
134
|
+
|
|
130
135
|
// missing md3 color
|
|
131
136
|
--md-sys-color-on-primary-fixed-dim: var(--md-sys-color-on-primary-fixed);
|
|
132
137
|
--md-sys-color-on-tertiary-fixed-dim: var(--md-sys-color-on-tertiary-container);
|
|
@@ -207,6 +212,13 @@
|
|
|
207
212
|
--elder-color-highlight-light: var(--elder-gray-medium);
|
|
208
213
|
--elder-color-highlight-strong: var(--elder-gold-semi-dark);
|
|
209
214
|
--elder-color-highlight-variant: var(--elder-gold-dark);
|
|
215
|
+
|
|
216
|
+
--elder-color-highlight-focus: color-mix(
|
|
217
|
+
in sRGB,
|
|
218
|
+
var(--elder-color-highlight-strong) 70%,
|
|
219
|
+
white
|
|
220
|
+
);
|
|
221
|
+
|
|
210
222
|
--md-sys-color-tertiary-container: var(--elder-gold-semi-dark);
|
|
211
223
|
--md-sys-color-surface-container-highest: #181818;
|
|
212
224
|
--md-sys-color-surface-container: #1e1f20;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ItemActivationEvent } from './item-activation-event';
|
|
3
|
-
import { ItemActivationOptions } from './item-activation-options';
|
|
4
|
-
export interface ElderActivationContext<T> {
|
|
5
|
-
activate(item: T, options: ItemActivationOptions): void;
|
|
6
|
-
get activeItemEventChange(): Observable<ItemActivationEvent<T>>;
|
|
7
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type ElderTableActivationMode = 'once' | 'always';
|
|
2
|
-
export type ElderTableActivationRow = 'none' | 'first' | 'last';
|
|
3
|
-
export interface ElderTableActivationOptions {
|
|
4
|
-
/**
|
|
5
|
-
* After reaching the last element, start over at the first?
|
|
6
|
-
*/
|
|
7
|
-
loop?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Attempt to activate a row when the rows change.
|
|
10
|
-
*/
|
|
11
|
-
mode?: ElderTableActivationMode;
|
|
12
|
-
/**
|
|
13
|
-
* Activate the specified row, if no other row is currently activated.
|
|
14
|
-
*/
|
|
15
|
-
row?: ElderTableActivationRow;
|
|
16
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|