@onemrvapublic/design-system 20.1.0-develop.2 → 20.1.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/fesm2022/onemrvapublic-design-system-flag-icon.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-layout.mjs +166 -110
- package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-address.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs +7 -7
- package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs +10 -10
- package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs +6 -6
- package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs +19 -19
- package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs +6 -6
- package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs +6 -6
- package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs +7 -7
- package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs +7 -7
- package/fesm2022/onemrvapublic-design-system-mat-navigation.mjs +169 -0
- package/fesm2022/onemrvapublic-design-system-mat-navigation.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-notification.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs +7 -7
- package/fesm2022/onemrvapublic-design-system-mat-panel.mjs +19 -19
- package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs +13 -13
- package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs +13 -13
- package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs +7 -7
- package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs +7 -7
- package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs +7 -7
- package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs +10 -10
- package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs +7 -7
- package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs +7 -7
- package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs +9 -9
- package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs +16 -16
- package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs +22 -22
- package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-toast.mjs +8 -8
- package/fesm2022/onemrvapublic-design-system-mat-toast.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs +10 -10
- package/fesm2022/onemrvapublic-design-system-page-error.mjs +6 -6
- package/fesm2022/onemrvapublic-design-system-page-not-found.mjs +16 -16
- package/fesm2022/onemrvapublic-design-system-shared.mjs +71 -70
- package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system.mjs +720 -513
- package/fesm2022/onemrvapublic-design-system.mjs.map +1 -1
- package/index.d.ts +121 -62
- package/layout/index.d.ts +55 -43
- package/layout/src/components/layout/layout.component.scss +4 -2
- package/layout/src/components/layout-drawer-title/layout-drawer-title.component.scss +1 -0
- package/layout/src/components/layout-left-sidenav/layout-left-sidenav.component.scss +4 -0
- package/layout/src/components/layout-sidenav/layout-sidenav.component.scss +21 -0
- package/mat-navigation/index.d.ts +54 -0
- package/mat-navigation/src/mat-navigation-item/onemrva-mat-navigation-item.component.scss +70 -0
- package/mat-navigation/src/mat-navigation-tree/onemrva-mat-navigation-tree.component.scss +0 -0
- package/mat-navigation/src/onemrva-mat-navigation.component.scss +34 -0
- package/package.json +5 -1
- package/shared/index.d.ts +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { AfterViewInit, ChangeDetectorRef } from '@angular/core';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { MatExpansionPanel } from '@angular/material/expansion';
|
|
5
|
+
|
|
6
|
+
interface NavItem {
|
|
7
|
+
label: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
dataCy?: string;
|
|
10
|
+
routerLink?: string;
|
|
11
|
+
children?: NavItem[];
|
|
12
|
+
highlighted?: boolean;
|
|
13
|
+
opened?: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare class OnemrvaMatNavigationComponent {
|
|
17
|
+
items: i0.InputSignal<NavItem[]>;
|
|
18
|
+
level: i0.InputSignal<number>;
|
|
19
|
+
translate: i0.InputSignal<boolean>;
|
|
20
|
+
router: Router;
|
|
21
|
+
constructor();
|
|
22
|
+
private updateNavigationState;
|
|
23
|
+
private resetNavigationStates;
|
|
24
|
+
private findActiveItemPath;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaMatNavigationComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OnemrvaMatNavigationComponent, "onemrva-mat-navigation", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "translate": { "alias": "translate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare class OnemrvaMatNavigationItemComponent implements AfterViewInit {
|
|
30
|
+
routerLink: string | undefined;
|
|
31
|
+
routerLinkActiveOptions?: any;
|
|
32
|
+
dataCy?: string;
|
|
33
|
+
baseRouteForActiveMenu?: string;
|
|
34
|
+
label: string;
|
|
35
|
+
icon?: string;
|
|
36
|
+
level: number;
|
|
37
|
+
highlighted: boolean | undefined;
|
|
38
|
+
opened: boolean | undefined;
|
|
39
|
+
children: NavItem[] | undefined;
|
|
40
|
+
customNgClass: any;
|
|
41
|
+
translate: boolean;
|
|
42
|
+
matExpansionPanel?: MatExpansionPanel;
|
|
43
|
+
isExpanded: boolean;
|
|
44
|
+
get isHighlighted(): boolean | undefined;
|
|
45
|
+
get isHighlighted2(): boolean;
|
|
46
|
+
get indentArray(): number[];
|
|
47
|
+
cd: ChangeDetectorRef;
|
|
48
|
+
ngAfterViewInit(): void;
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaMatNavigationItemComponent, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OnemrvaMatNavigationItemComponent, "onemrva-mat-navigation-item", never, { "routerLink": { "alias": "routerLink"; "required": false; }; "routerLinkActiveOptions": { "alias": "routerLinkActiveOptions"; "required": false; }; "dataCy": { "alias": "dataCy"; "required": false; }; "baseRouteForActiveMenu": { "alias": "baseRouteForActiveMenu"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "level": { "alias": "level"; "required": false; }; "highlighted": { "alias": "highlighted"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "children": { "alias": "children"; "required": false; }; "customNgClass": { "alias": "customNgClass"; "required": false; }; "translate": { "alias": "translate"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { OnemrvaMatNavigationComponent, OnemrvaMatNavigationItemComponent };
|
|
54
|
+
export type { NavItem };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
&.highlighted2 {
|
|
3
|
+
transition: border-left 0.4s ease;
|
|
4
|
+
border-left: 0.5rem solid var(--mat-sys-tertiary-container);
|
|
5
|
+
.mobile-menu-item {
|
|
6
|
+
transition: border-left 0.4s ease;
|
|
7
|
+
border-left: 0.5rem solid var(--mat-sys-tertiary-container);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
&.highlighted {
|
|
11
|
+
transition: border-left 0.4s ease;
|
|
12
|
+
border-left: 0.5rem solid var(--mat-sys-tertiary);
|
|
13
|
+
.mobile-menu-item {
|
|
14
|
+
transition: border-left 0.4s ease;
|
|
15
|
+
border-left: 0.5rem solid var(--mat-sys-tertiary);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.mobile-menu-item {
|
|
19
|
+
display: flex;
|
|
20
|
+
width: 100%;
|
|
21
|
+
background: var(--mat-sys-background);
|
|
22
|
+
padding: var(--double-spacer) var(--quad-spacer);
|
|
23
|
+
border: none;
|
|
24
|
+
box-shadow: none;
|
|
25
|
+
align-items: center;
|
|
26
|
+
text-align: left;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
font: var(--mat-sys-body-medium);
|
|
29
|
+
text-decoration: none;
|
|
30
|
+
color: var(--mat-sys-on-surface);
|
|
31
|
+
border-left: 0.5rem solid transparent;
|
|
32
|
+
|
|
33
|
+
&:active {
|
|
34
|
+
}
|
|
35
|
+
&.active {
|
|
36
|
+
border-left: 0.5rem solid var(--mat-sys-tertiary);
|
|
37
|
+
font-weight: 600;
|
|
38
|
+
mat-icon {
|
|
39
|
+
font-variation-settings:
|
|
40
|
+
'FILL' 1,
|
|
41
|
+
'wght' 600,
|
|
42
|
+
'GRAD' 0,
|
|
43
|
+
'opsz' 24;
|
|
44
|
+
}
|
|
45
|
+
background: var(--mat-sys-surface-container-low);
|
|
46
|
+
}
|
|
47
|
+
&:hover,
|
|
48
|
+
&:focus {
|
|
49
|
+
background: var(--mat-sys-surface-container-low);
|
|
50
|
+
}
|
|
51
|
+
mat-icon {
|
|
52
|
+
margin-left: -4px;
|
|
53
|
+
margin-right: var(--spacer);
|
|
54
|
+
transition: transform 0.3s ease;
|
|
55
|
+
&.opened {
|
|
56
|
+
transform: rotate(180deg);
|
|
57
|
+
}
|
|
58
|
+
&:first-child {
|
|
59
|
+
}
|
|
60
|
+
&.end {
|
|
61
|
+
margin-left: auto;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.indent-spacer {
|
|
66
|
+
width: var(--double-spacer);
|
|
67
|
+
flex-shrink: 0;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
onemrva-mat-navigation {
|
|
2
|
+
min-width: 250px;
|
|
3
|
+
.mat-expansion-panel-body {
|
|
4
|
+
padding: 0;
|
|
5
|
+
}
|
|
6
|
+
.mobile-menu-item {
|
|
7
|
+
display: flex;
|
|
8
|
+
width: 100%;
|
|
9
|
+
background: var(--mat-sys-background);
|
|
10
|
+
padding: var(--double-spacer);
|
|
11
|
+
border: none;
|
|
12
|
+
box-shadow: none;
|
|
13
|
+
align-items: center;
|
|
14
|
+
text-align: left;
|
|
15
|
+
font: var(--mat-sys-body-medium);
|
|
16
|
+
&:active,
|
|
17
|
+
&.active {
|
|
18
|
+
border-left: 4px solid var(--mat-sys-tertiary);
|
|
19
|
+
}
|
|
20
|
+
&:hover,
|
|
21
|
+
&:focus {
|
|
22
|
+
background: var(--mat-sys-surface-container-low);
|
|
23
|
+
}
|
|
24
|
+
mat-icon {
|
|
25
|
+
margin-left: var(--half-spacer);
|
|
26
|
+
&:first-child {
|
|
27
|
+
margin-right: var(--spacer);
|
|
28
|
+
}
|
|
29
|
+
&.end {
|
|
30
|
+
margin-left: auto;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onemrvapublic/design-system",
|
|
3
|
-
"version": "20.1.0
|
|
3
|
+
"version": "20.1.0",
|
|
4
4
|
"description": "Design System Onem/Rva without theme included",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -120,6 +120,10 @@
|
|
|
120
120
|
"types": "./mat-multi-select/index.d.ts",
|
|
121
121
|
"default": "./fesm2022/onemrvapublic-design-system-mat-multi-select.mjs"
|
|
122
122
|
},
|
|
123
|
+
"./mat-navigation": {
|
|
124
|
+
"types": "./mat-navigation/index.d.ts",
|
|
125
|
+
"default": "./fesm2022/onemrvapublic-design-system-mat-navigation.mjs"
|
|
126
|
+
},
|
|
123
127
|
"./mat-notification": {
|
|
124
128
|
"types": "./mat-notification/index.d.ts",
|
|
125
129
|
"default": "./fesm2022/onemrvapublic-design-system-mat-notification.mjs"
|
package/shared/index.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ declare class OnemRvaColorDirective {
|
|
|
114
114
|
/** @hidden @internal */
|
|
115
115
|
get _isNeutral(): boolean;
|
|
116
116
|
static ɵfac: i0.ɵɵFactoryDeclaration<OnemRvaColorDirective, never>;
|
|
117
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<OnemRvaColorDirective, "onemrva-mat-selectable-box[color],div[color],onemrva-mat-avatar[color],mat-card[color],mat-toolbar[color],onemrva-mat-spinner[color],onemrva-mat-notification[color],onemrva-mat-sticker[color],onemrva-mat-panel[color],onemrva-mat-task[color],onemrva-mat-choice-chip[color],button[color],mat-icon[color],mat-chip[color],mat-chip-option[color]", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
117
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OnemRvaColorDirective, "onemrva-mat-selectable-box[color],div[color],onemrva-mat-avatar[color],mat-card[color],mat-toolbar[color],onemrva-mat-spinner[color],onemrva-mat-notification[color],onemrva-mat-sticker[color],onemrva-mat-panel[color],onemrva-mat-task[color],onemrva-mat-choice-chip[color],mat-form-field[color],button[color],mat-icon[color],mat-chip[color],mat-chip-option[color]", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
declare class MatRowClickableDirective extends OnemRvaColorDirective {
|