@onemrvapublic/design-system 22.5.0-develop.2 → 22.5.0-develop.4
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/README.md +4 -3
- package/fesm2022/onemrvapublic-design-system-layout.mjs +10 -7
- package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs +2 -2
- package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs +2 -2
- package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-shared.mjs +1 -1
- package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system.mjs +1 -1
- package/fesm2022/onemrvapublic-design-system.mjs.map +1 -1
- package/layout/src/components/layout/layout.component.scss +10 -0
- package/mat-choice-chip/src/onemrva-mat-choice-chip.component.scss +56 -45
- package/mat-multi-select/src/onemrva-mat-multi-select.component.scss +23 -16
- package/package.json +1 -1
- package/types/onemrvapublic-design-system-layout.d.ts +4 -4
- package/types/onemrvapublic-design-system.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onemrvapublic-design-system.mjs","sources":["../../../../projects/onemrva/design-system/version.ts","../../../../projects/onemrva/design-system/index.ts","../../../../projects/onemrva/design-system/onemrvapublic-design-system.ts"],"sourcesContent":["// Auto-generated — do not edit\nexport const VERSION = '22.5.0-develop.
|
|
1
|
+
{"version":3,"file":"onemrvapublic-design-system.mjs","sources":["../../../../projects/onemrva/design-system/version.ts","../../../../projects/onemrva/design-system/index.ts","../../../../projects/onemrva/design-system/onemrvapublic-design-system.ts"],"sourcesContent":["// Auto-generated — do not edit\nexport const VERSION = '22.5.0-develop.4';\n","export { VERSION } from './version';\n\nexport const ɵɵtsModuleIndicatorApiExtractorWorkaround = true;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AACO,MAAM,OAAO,GAAG;;ACChB,MAAM,yCAAyC,GAAG;;ACFzD;;AAEG;;;;"}
|
|
@@ -260,3 +260,13 @@
|
|
|
260
260
|
nav a.disabled {
|
|
261
261
|
pointer-events: none;
|
|
262
262
|
}
|
|
263
|
+
|
|
264
|
+
// The profile menu renders in an overlay outside :host
|
|
265
|
+
.mat-mdc-menu-item.logout-button[disabled] {
|
|
266
|
+
opacity: 0.4;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// The profile menu renders in an overlay outside :host
|
|
270
|
+
.mat-mdc-menu-item.logout-button[disabled] {
|
|
271
|
+
opacity: 0.4;
|
|
272
|
+
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
|
|
3
|
+
// Sized and spaced like mat-chip (see theme/overrides/_chips.scss): same
|
|
4
|
+
// container height, 12px horizontal padding, and an 18px leading checkmark
|
|
5
|
+
// with an 8px gap when selected, like a selected mat-chip-option.
|
|
3
6
|
.onemrva-theme onemrva-mat-choice-chip {
|
|
4
7
|
@include mat.checkbox-overrides(
|
|
5
8
|
(
|
|
@@ -7,43 +10,54 @@
|
|
|
7
10
|
)
|
|
8
11
|
);
|
|
9
12
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
> label {
|
|
13
|
-
padding-left: 14px;
|
|
14
|
-
}
|
|
13
|
+
display: inline-block;
|
|
14
|
+
vertical-align: middle;
|
|
15
15
|
|
|
16
16
|
mat-checkbox.onemrva-choice-chip {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
height: var(--mat-chip-container-height, 38px);
|
|
17
20
|
user-select: none;
|
|
18
21
|
border: 1px solid var(--mat-sys-primary);
|
|
19
22
|
border-radius: var(--chip-border-radius);
|
|
20
23
|
background: var(--mat-sys-primary-container);
|
|
21
24
|
padding: 0;
|
|
22
25
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
font-weight: var(--mat-sys-label-large-weight);
|
|
28
|
-
line-height: var(--mat-sys-label-large-line-height);
|
|
29
|
-
}
|
|
26
|
+
.mdc-form-field {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
height: 100%;
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
.mdc-checkbox {
|
|
32
|
+
flex: 0 0 auto;
|
|
33
|
+
width: 0;
|
|
34
|
+
height: 18px;
|
|
35
|
+
padding: 0;
|
|
36
|
+
margin: 0;
|
|
37
|
+
visibility: hidden;
|
|
38
|
+
transition:
|
|
39
|
+
width 400ms,
|
|
40
|
+
margin-left 400ms;
|
|
34
41
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
.mdc-checkbox__ripple,
|
|
43
|
+
input {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.mdc-checkbox__background {
|
|
48
|
+
top: 0;
|
|
49
|
+
left: 0;
|
|
50
|
+
}
|
|
41
51
|
}
|
|
42
52
|
|
|
43
|
-
label {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
53
|
+
> label {
|
|
54
|
+
padding: 0 12px;
|
|
55
|
+
color: var(--mat-sys-primary);
|
|
56
|
+
font-family: var(--mat-sys-label-large-font);
|
|
57
|
+
font-size: var(--mat-sys-label-large-size);
|
|
58
|
+
font-weight: var(--mat-sys-label-large-weight);
|
|
59
|
+
line-height: var(--mat-sys-label-large-line-height);
|
|
60
|
+
white-space: nowrap;
|
|
47
61
|
}
|
|
48
62
|
}
|
|
49
63
|
|
|
@@ -51,29 +65,25 @@
|
|
|
51
65
|
display: none;
|
|
52
66
|
}
|
|
53
67
|
|
|
54
|
-
|
|
55
|
-
|
|
68
|
+
&.mat-mdc-checkbox-checked {
|
|
69
|
+
background-color: var(--mat-sys-primary);
|
|
56
70
|
|
|
57
|
-
.mdc-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
71
|
+
.mdc-form-field {
|
|
72
|
+
.mdc-checkbox {
|
|
73
|
+
width: 18px;
|
|
74
|
+
margin-left: 8px;
|
|
75
|
+
visibility: visible;
|
|
76
|
+
}
|
|
61
77
|
|
|
62
|
-
.mdc-
|
|
63
|
-
|
|
64
|
-
|
|
78
|
+
.mdc-checkbox__background {
|
|
79
|
+
background: none !important;
|
|
80
|
+
border: none !important;
|
|
65
81
|
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
82
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
.mdc-checkbox {
|
|
75
|
-
visibility: hidden;
|
|
76
|
-
width: 0;
|
|
83
|
+
> label {
|
|
84
|
+
padding-left: 8px;
|
|
85
|
+
color: var(--mat-sys-on-primary);
|
|
86
|
+
}
|
|
77
87
|
}
|
|
78
88
|
}
|
|
79
89
|
|
|
@@ -86,7 +96,8 @@
|
|
|
86
96
|
color: var(--mat-sys-primary-fixed-dim);
|
|
87
97
|
}
|
|
88
98
|
}
|
|
89
|
-
|
|
99
|
+
|
|
100
|
+
.mdc-form-field > label {
|
|
90
101
|
color: var(--mat-sys-on-surface);
|
|
91
102
|
}
|
|
92
103
|
}
|
|
@@ -2,33 +2,40 @@
|
|
|
2
2
|
display: inline-block;
|
|
3
3
|
width: 100%;
|
|
4
4
|
|
|
5
|
+
// Small chip (22px per Figma): same colors and outline as mat-chip, with a
|
|
6
|
+
// tighter radius, vertically centred on the select trigger.
|
|
5
7
|
.mat-select-counter {
|
|
6
|
-
top:
|
|
8
|
+
top: 50%;
|
|
7
9
|
right: var(--triple-spacer);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
transform: translateY(-50%);
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: var(--quarter-spacer);
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
height: 22px;
|
|
13
16
|
min-width: var(--triple-spacer);
|
|
14
|
-
|
|
17
|
+
padding: 0 var(--half-spacer) 0 var(--spacer);
|
|
18
|
+
background: var(--mat-sys-primary-container);
|
|
19
|
+
color: var(--mat-sys-primary);
|
|
15
20
|
|
|
16
21
|
border: 1px solid var(--mat-sys-primary);
|
|
17
|
-
border-radius: var(--
|
|
22
|
+
border-radius: var(--small-border-radius);
|
|
18
23
|
|
|
19
24
|
span.text {
|
|
20
|
-
font-family: var(--sys-label-large-font);
|
|
25
|
+
font-family: var(--mat-sys-label-large-font);
|
|
21
26
|
font-style: normal;
|
|
22
|
-
font-weight:
|
|
27
|
+
font-weight: var(--mat-sys-label-large-weight);
|
|
23
28
|
font-size: 0.75rem;
|
|
24
|
-
line-height:
|
|
29
|
+
line-height: 1rem;
|
|
25
30
|
}
|
|
26
31
|
mat-icon {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
font-size: 0.875rem;
|
|
36
|
+
height: 0.875rem;
|
|
37
|
+
width: 0.875rem;
|
|
38
|
+
color: var(--mat-sys-primary);
|
|
32
39
|
cursor: pointer;
|
|
33
40
|
}
|
|
34
41
|
}
|
package/package.json
CHANGED
|
@@ -248,8 +248,8 @@ declare class LayoutAfterNavComponent implements AfterViewInit {
|
|
|
248
248
|
/**
|
|
249
249
|
* Application shell composing header, sidenav, content, and footer slots.
|
|
250
250
|
*
|
|
251
|
-
* Exposes
|
|
252
|
-
* Inputs: logo, languages: OnemRvaLanguage[], environment: Environment, logoRedictionUrl: (string | any[] | null) | undefined, profile: OnemRvaProfile | null, id, role, showThemeSwitcher.
|
|
251
|
+
* Exposes 9 inputs and 2 outputs.
|
|
252
|
+
* Inputs: logo, disableLogoutButton, languages: OnemRvaLanguage[], environment: Environment, logoRedictionUrl: (string | any[] | null) | undefined, profile: OnemRvaProfile | null, id, role, showThemeSwitcher.
|
|
253
253
|
* Outputs: login: void, logout: void.
|
|
254
254
|
*
|
|
255
255
|
* @MatKeywords layout, shell, page, app, sidenav, header, footer
|
|
@@ -271,7 +271,7 @@ declare class LayoutComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
271
271
|
readonly afterNav: Signal<LayoutAfterNavComponent | undefined>;
|
|
272
272
|
readonly footer: Signal<LayoutFooterComponent | undefined>;
|
|
273
273
|
readonly logo: _angular_core.InputSignal<string>;
|
|
274
|
-
readonly
|
|
274
|
+
readonly disableLogoutButton: _angular_core.InputSignal<boolean>;
|
|
275
275
|
logoFinal: Signal<string>;
|
|
276
276
|
readonly languages: _angular_core.InputSignal<OnemRvaLanguage[]>;
|
|
277
277
|
readonly languagesFinal: Signal<OnemRvaLanguage[]>;
|
|
@@ -314,7 +314,7 @@ declare class LayoutComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
314
314
|
changeLanguage(langCode: string): void;
|
|
315
315
|
toggleSideNav(): void;
|
|
316
316
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LayoutComponent, never>;
|
|
317
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LayoutComponent, "onemrva-layout", never, { "logo": { "alias": "logo"; "required": false; "isSignal": true; }; "
|
|
317
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LayoutComponent, "onemrva-layout", never, { "logo": { "alias": "logo"; "required": false; "isSignal": true; }; "disableLogoutButton": { "alias": "disableLogoutButton"; "required": false; "isSignal": true; }; "languages": { "alias": "languages"; "required": false; "isSignal": true; }; "environment": { "alias": "environment"; "required": false; "isSignal": true; }; "logoRedictionUrl": { "alias": "logoRedictionUrl"; "required": false; "isSignal": true; }; "profile": { "alias": "profile"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "showThemeSwitcher": { "alias": "showThemeSwitcher"; "required": false; "isSignal": true; }; }, { "login": "login"; "logout": "logout"; }, ["routes", "title", "loginMenu", "content", "afterNav", "footer"], ["onemrva-mat-notification"], true, never>;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
320
|
/**
|