@onemrvapublic/design-system 20.11.0-develop.1 → 20.11.0-develop.3

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.
@@ -63,11 +63,11 @@ class OnemrvaMatNotificationComponent {
63
63
  this.notificationClose.emit();
64
64
  }
65
65
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: OnemrvaMatNotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
66
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: OnemrvaMatNotificationComponent, isStandalone: true, selector: "onemrva-mat-notification", inputs: { message: "message", closable: "closable", id: "id", dataCy: "dataCy" }, outputs: { notificationClose: "notificationClose" }, host: { properties: { "class.collapse-notification": "this._closed", "attr.id": "this.id", "attr.data-cy": "this.dataCy", "attr.aria-live": "this.ariaLive", "attr.role": "this.role" } }, ngImport: i0, template: "<div class=\"onemrva-mat-notification container\">\n <div class=\"onemrva-mat-notification-content show-icon\">\n @if (message !== '') {\n {{ message | translate }}\n }\n <ng-content></ng-content>\n @if (closable || isSmall) {\n <mat-icon\n class=\"close-notification float-right clickable mr\"\n (click)=\"closeNotification()\"\n >\n close\n </mat-icon>\n }\n </div>\n</div>\n", styles: [":host{position:fixed;top:var(--layout-header-height, 0);left:0;right:0;transition:max-height .4s ease-out;max-height:100vh;overflow:hidden;z-index:401;background-color:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container);border-bottom:1px solid var(--mat-sys-primary)}:host .onemrva-mat-notification{position:relative}:host .onemrva-mat-notification .onemrva-mat-notification-content{font:var(--mat-sys-body-medium);padding:var(--double-spacer) var(--spacer) var(--double-spacer) var(--spacer)}:host .onemrva-mat-notification .onemrva-mat-notification-content:before{margin-right:var(--double-spacer);margin-top:var(--quarter-spacer)}:host.collapse-notification{display:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] }); }
66
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: OnemrvaMatNotificationComponent, isStandalone: true, selector: "onemrva-mat-notification", inputs: { message: "message", closable: "closable", id: "id", dataCy: "dataCy" }, outputs: { notificationClose: "notificationClose" }, host: { properties: { "class.collapse-notification": "this._closed", "attr.id": "this.id", "attr.data-cy": "this.dataCy", "attr.aria-live": "this.ariaLive", "attr.role": "this.role" } }, ngImport: i0, template: "<div class=\"onemrva-mat-notification container\">\n <div class=\"onemrva-mat-notification-content show-icon\">\n @if (message !== '') {\n {{ message | translate }}\n }\n <ng-content></ng-content>\n @if (closable || isSmall) {\n <mat-icon\n class=\"close-notification float-right clickable mr\"\n (click)=\"closeNotification()\"\n >\n close\n </mat-icon>\n }\n </div>\n</div>\n", styles: [":host .onemrva-mat-notification{transition:max-height .4s ease-out;max-height:100vh;z-index:401;background-color:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container);border-bottom:1px solid var(--mat-sys-primary)}:host .onemrva-mat-notification .onemrva-mat-notification-content{font:var(--mat-sys-body-medium);padding:var(--double-spacer) var(--spacer) var(--double-spacer) var(--spacer)}:host .onemrva-mat-notification .onemrva-mat-notification-content:before{margin-right:var(--double-spacer);margin-top:var(--quarter-spacer)}:host.collapse-notification{display:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] }); }
67
67
  }
68
68
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: OnemrvaMatNotificationComponent, decorators: [{
69
69
  type: Component,
70
- args: [{ selector: 'onemrva-mat-notification', standalone: true, imports: [CommonModule, TranslateModule, MatIconModule], template: "<div class=\"onemrva-mat-notification container\">\n <div class=\"onemrva-mat-notification-content show-icon\">\n @if (message !== '') {\n {{ message | translate }}\n }\n <ng-content></ng-content>\n @if (closable || isSmall) {\n <mat-icon\n class=\"close-notification float-right clickable mr\"\n (click)=\"closeNotification()\"\n >\n close\n </mat-icon>\n }\n </div>\n</div>\n", styles: [":host{position:fixed;top:var(--layout-header-height, 0);left:0;right:0;transition:max-height .4s ease-out;max-height:100vh;overflow:hidden;z-index:401;background-color:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container);border-bottom:1px solid var(--mat-sys-primary)}:host .onemrva-mat-notification{position:relative}:host .onemrva-mat-notification .onemrva-mat-notification-content{font:var(--mat-sys-body-medium);padding:var(--double-spacer) var(--spacer) var(--double-spacer) var(--spacer)}:host .onemrva-mat-notification .onemrva-mat-notification-content:before{margin-right:var(--double-spacer);margin-top:var(--quarter-spacer)}:host.collapse-notification{display:none}\n"] }]
70
+ args: [{ selector: 'onemrva-mat-notification', standalone: true, imports: [CommonModule, TranslateModule, MatIconModule], template: "<div class=\"onemrva-mat-notification container\">\n <div class=\"onemrva-mat-notification-content show-icon\">\n @if (message !== '') {\n {{ message | translate }}\n }\n <ng-content></ng-content>\n @if (closable || isSmall) {\n <mat-icon\n class=\"close-notification float-right clickable mr\"\n (click)=\"closeNotification()\"\n >\n close\n </mat-icon>\n }\n </div>\n</div>\n", styles: [":host .onemrva-mat-notification{transition:max-height .4s ease-out;max-height:100vh;z-index:401;background-color:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container);border-bottom:1px solid var(--mat-sys-primary)}:host .onemrva-mat-notification .onemrva-mat-notification-content{font:var(--mat-sys-body-medium);padding:var(--double-spacer) var(--spacer) var(--double-spacer) var(--spacer)}:host .onemrva-mat-notification .onemrva-mat-notification-content:before{margin-right:var(--double-spacer);margin-top:var(--quarter-spacer)}:host.collapse-notification{display:none}\n"] }]
71
71
  }], ctorParameters: () => [], propDecorators: { message: [{
72
72
  type: Input
73
73
  }], closable: [{
@@ -1 +1 @@
1
- {"version":3,"file":"onemrvapublic-design-system-mat-notification.mjs","sources":["../../../../projects/onemrva/design-system/mat-notification/src/onemrva-mat-notification.component.ts","../../../../projects/onemrva/design-system/mat-notification/src/onemrva-mat-notification.component.html","../../../../projects/onemrva/design-system/mat-notification/onemrvapublic-design-system-mat-notification.ts"],"sourcesContent":["import {\n BreakpointObserver,\n Breakpoints,\n BreakpointState,\n} from '@angular/cdk/layout';\nimport { CommonModule } from '@angular/common';\nimport {\n Component,\n EventEmitter,\n HostBinding,\n inject,\n Input,\n OnDestroy,\n Output,\n} from '@angular/core';\nimport { MatIconModule } from '@angular/material/icon';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { Subject, takeUntil } from 'rxjs';\n\n@Component({\n selector: 'onemrva-mat-notification',\n templateUrl: 'onemrva-mat-notification.component.html',\n styleUrl: 'onemrva-mat-notification.component.scss',\n standalone: true,\n imports: [CommonModule, TranslateModule, MatIconModule],\n})\nexport class OnemrvaMatNotificationComponent implements OnDestroy {\n @Input() message = '';\n @Input() closable = true;\n\n _isOpen = true;\n\n @Output()\n notificationClose = new EventEmitter<void>();\n\n /** @hidden @internal */\n @HostBinding('class.collapse-notification')\n public get _closed(): boolean {\n return !this._isOpen;\n }\n\n @HostBinding('attr.id')\n @Input()\n public id = `onemrva-mat-notification`;\n\n @HostBinding('attr.data-cy')\n @Input()\n dataCy = 'onemrva-mat-notification';\n\n /**\n * Returns the `aria-label` attribute of the component.\n *\n * @example\n * ```typescript\n * let ariaLabel = this.avatar.ariaLabel;\n * ```\n *\n */\n @HostBinding('attr.aria-live')\n public ariaLive = 'assertive';\n\n /**\n * Returns the `role` attribute of the component.\n *\n * @example\n * ```typescript\n * let avatarRole = this.avatar.role;\n * ```\n */\n @HostBinding('attr.role')\n public role = 'alert';\n\n private destroyNotifier$ = new Subject<void>();\n isSmall = false;\n public breakpointObserver = inject(BreakpointObserver);\n\n constructor() {\n this.breakpointObserver\n .observe([Breakpoints.XSmall, Breakpoints.Small])\n .pipe(takeUntil(this.destroyNotifier$))\n .subscribe((state: BreakpointState) => {\n if (state.matches) {\n this.isSmall = true;\n } else {\n this.isSmall = false;\n }\n });\n }\n\n ngOnDestroy(): void {\n this.destroyNotifier$.next();\n this.destroyNotifier$.complete();\n }\n\n closeNotification() {\n this._isOpen = false;\n this.notificationClose.emit();\n }\n}\n","<div class=\"onemrva-mat-notification container\">\n <div class=\"onemrva-mat-notification-content show-icon\">\n @if (message !== '') {\n {{ message | translate }}\n }\n <ng-content></ng-content>\n @if (closable || isSmall) {\n <mat-icon\n class=\"close-notification float-right clickable mr\"\n (click)=\"closeNotification()\"\n >\n close\n </mat-icon>\n }\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MA0Ba,+BAA+B,CAAA;;AAU1C,IAAA,IACW,OAAO,GAAA;AAChB,QAAA,OAAO,CAAC,IAAI,CAAC,OAAO;IACtB;AAqCA,IAAA,WAAA,GAAA;QAjDS,IAAA,CAAA,OAAO,GAAG,EAAE;QACZ,IAAA,CAAA,QAAQ,GAAG,IAAI;QAExB,IAAA,CAAA,OAAO,GAAG,IAAI;AAGd,QAAA,IAAA,CAAA,iBAAiB,GAAG,IAAI,YAAY,EAAQ;QAUrC,IAAA,CAAA,EAAE,GAAG,0BAA0B;QAItC,IAAA,CAAA,MAAM,GAAG,0BAA0B;AAEnC;;;;;;;;AAQG;QAEI,IAAA,CAAA,QAAQ,GAAG,WAAW;AAE7B;;;;;;;AAOG;QAEI,IAAA,CAAA,IAAI,GAAG,OAAO;AAEb,QAAA,IAAA,CAAA,gBAAgB,GAAG,IAAI,OAAO,EAAQ;QAC9C,IA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,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,SAAA,EAAA,SAAA,EAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,aAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAE3C,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAP3C,SAAS;+BACE,0BAA0B,EAAA,UAAA,EAGxB,IAAI,EAAA,OAAA,EACP,CAAC,YAAY,EAAE,eAAe,EAAE,aAAa,CAAC,EAAA,QAAA,EAAA,qbAAA,EAAA,MAAA,EAAA,CAAA,6rBAAA,CAAA,EAAA;;sBAGtD;;sBACA;;sBAIA;;sBAIA,WAAW;uBAAC,6BAA6B;;sBAKzC,WAAW;uBAAC,SAAS;;sBACrB;;sBAGA,WAAW;uBAAC,cAAc;;sBAC1B;;sBAYA,WAAW;uBAAC,gBAAgB;;sBAW5B,WAAW;uBAAC,WAAW;;;AErE1B;;AAEG;;;;"}
1
+ {"version":3,"file":"onemrvapublic-design-system-mat-notification.mjs","sources":["../../../../projects/onemrva/design-system/mat-notification/src/onemrva-mat-notification.component.ts","../../../../projects/onemrva/design-system/mat-notification/src/onemrva-mat-notification.component.html","../../../../projects/onemrva/design-system/mat-notification/onemrvapublic-design-system-mat-notification.ts"],"sourcesContent":["import {\n BreakpointObserver,\n Breakpoints,\n BreakpointState,\n} from '@angular/cdk/layout';\nimport { CommonModule } from '@angular/common';\nimport {\n Component,\n EventEmitter,\n HostBinding,\n inject,\n Input,\n OnDestroy,\n Output,\n} from '@angular/core';\nimport { MatIconModule } from '@angular/material/icon';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { Subject, takeUntil } from 'rxjs';\n\n@Component({\n selector: 'onemrva-mat-notification',\n templateUrl: 'onemrva-mat-notification.component.html',\n styleUrl: 'onemrva-mat-notification.component.scss',\n standalone: true,\n imports: [CommonModule, TranslateModule, MatIconModule],\n})\nexport class OnemrvaMatNotificationComponent implements OnDestroy {\n @Input() message = '';\n @Input() closable = true;\n\n _isOpen = true;\n\n @Output()\n notificationClose = new EventEmitter<void>();\n\n /** @hidden @internal */\n @HostBinding('class.collapse-notification')\n public get _closed(): boolean {\n return !this._isOpen;\n }\n\n @HostBinding('attr.id')\n @Input()\n public id = `onemrva-mat-notification`;\n\n @HostBinding('attr.data-cy')\n @Input()\n dataCy = 'onemrva-mat-notification';\n\n /**\n * Returns the `aria-label` attribute of the component.\n *\n * @example\n * ```typescript\n * let ariaLabel = this.avatar.ariaLabel;\n * ```\n *\n */\n @HostBinding('attr.aria-live')\n public ariaLive = 'assertive';\n\n /**\n * Returns the `role` attribute of the component.\n *\n * @example\n * ```typescript\n * let avatarRole = this.avatar.role;\n * ```\n */\n @HostBinding('attr.role')\n public role = 'alert';\n\n private destroyNotifier$ = new Subject<void>();\n isSmall = false;\n public breakpointObserver = inject(BreakpointObserver);\n\n constructor() {\n this.breakpointObserver\n .observe([Breakpoints.XSmall, Breakpoints.Small])\n .pipe(takeUntil(this.destroyNotifier$))\n .subscribe((state: BreakpointState) => {\n if (state.matches) {\n this.isSmall = true;\n } else {\n this.isSmall = false;\n }\n });\n }\n\n ngOnDestroy(): void {\n this.destroyNotifier$.next();\n this.destroyNotifier$.complete();\n }\n\n closeNotification() {\n this._isOpen = false;\n this.notificationClose.emit();\n }\n}\n","<div class=\"onemrva-mat-notification container\">\n <div class=\"onemrva-mat-notification-content show-icon\">\n @if (message !== '') {\n {{ message | translate }}\n }\n <ng-content></ng-content>\n @if (closable || isSmall) {\n <mat-icon\n class=\"close-notification float-right clickable mr\"\n (click)=\"closeNotification()\"\n >\n close\n </mat-icon>\n }\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MA0Ba,+BAA+B,CAAA;;AAU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EG;;;;"}
package/layout/index.d.ts CHANGED
@@ -94,6 +94,7 @@ declare class LayoutFooterComponent {
94
94
  interface OnemRvaLanguage {
95
95
  code: string;
96
96
  label: string;
97
+ imgCode?: string;
97
98
  }
98
99
 
99
100
  declare class OnemRvaProfile {
@@ -198,6 +199,7 @@ declare class LayoutComponent implements OnInit, AfterViewInit, OnDestroy {
198
199
  role: string;
199
200
  showThemeSwitcher: boolean;
200
201
  onemrvaClass: string;
202
+ private map;
201
203
  activeTheme: i0.WritableSignal<"light" | "dark" | "system">;
202
204
  color: Signal<OnemrvaMatColor>;
203
205
  toggleTheme(newTheme: 'light' | 'dark' | 'system'): void;
@@ -212,13 +214,14 @@ declare class LayoutComponent implements OnInit, AfterViewInit, OnDestroy {
212
214
  ngOnInit(): void;
213
215
  get currentLanguage(): string;
214
216
  ngAfterViewInit(): void;
217
+ languageImg(language?: OnemRvaLanguage): string;
215
218
  ngOnDestroy(): void;
216
219
  doLogout(): void;
217
220
  doLogin(): void;
218
221
  changeLanguage(langCode: string): void;
219
222
  toggleSideNav(): void;
220
223
  static ɵfac: i0.ɵɵFactoryDeclaration<LayoutComponent, never>;
221
- static ɵcmp: i0.ɵɵComponentDeclaration<LayoutComponent, "onemrva-layout", never, { "logo": { "alias": "logo"; "required": false; }; "languages": { "alias": "languages"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "logoRedictionUrl": { "alias": "logoRedictionUrl"; "required": false; }; "profile": { "alias": "profile"; "required": false; }; "id": { "alias": "id"; "required": false; }; "role": { "alias": "role"; "required": false; }; "showThemeSwitcher": { "alias": "showThemeSwitcher"; "required": false; }; }, { "login": "login"; "logout": "logout"; }, ["title", "loginMenu", "content", "afterNav", "footer", "routes"], never, true, never>;
224
+ static ɵcmp: i0.ɵɵComponentDeclaration<LayoutComponent, "onemrva-layout", never, { "logo": { "alias": "logo"; "required": false; }; "languages": { "alias": "languages"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "logoRedictionUrl": { "alias": "logoRedictionUrl"; "required": false; }; "profile": { "alias": "profile"; "required": false; }; "id": { "alias": "id"; "required": false; }; "role": { "alias": "role"; "required": false; }; "showThemeSwitcher": { "alias": "showThemeSwitcher"; "required": false; }; }, { "login": "login"; "logout": "logout"; }, ["title", "loginMenu", "content", "afterNav", "footer", "routes"], ["onemrva-mat-notification"], true, never>;
222
225
  }
223
226
 
224
227
  declare class LayoutSidenavComponent implements OnInit {
@@ -4,26 +4,49 @@
4
4
  :host {
5
5
  $spacer: 8px;
6
6
  position: relative;
7
+
7
8
  .onemrva-layout-container {
9
+ //padding-top: var(--layout-content-padding-top);
8
10
  width: 100%;
9
11
  box-sizing: border-box;
10
12
  }
13
+
11
14
  a {
12
15
  &:active {
13
16
  outline: none;
14
17
  }
15
18
  }
16
- router-outlet {
17
- display: block;
18
- margin-bottom: 90px;
19
- }
19
+
20
20
  header {
21
21
  mat-toolbar {
22
- position: fixed;
23
- height: var(--layout-header-height);
24
22
  z-index: 400;
25
23
  border-bottom: 1px solid var(--mat-sys-outline-variant);
26
24
 
25
+ a[mat-tab-link]:hover {
26
+ background: var(--mat-sys-surface-container-low);
27
+ }
28
+
29
+ @include mat.toolbar-overrides(
30
+ (
31
+ standard-height: var(--layout-header-height),
32
+ // TODO: align background colors with designs, also on sidenav
33
+ //container-background-color: orange,
34
+ )
35
+ );
36
+
37
+ @include mat.tabs-overrides(
38
+ (
39
+ divider-color: transparent,
40
+ container-height: var(--layout-header-height),
41
+ label-text-font: var(--text-font),
42
+ label-text-weight: 400,
43
+ active-indicator-height: 8px,
44
+ active-hover-indicator-color: var(--mat-sys-surface-container-low),
45
+ active-focus-indicator-color: var(--mat-sys-surface-container-low),
46
+ inactive-ripple-color: var(--mat-sys-surface-container-low),
47
+ )
48
+ );
49
+
27
50
  .topMenu {
28
51
  .mat-mdc-tab-header-pagination-before,
29
52
  .mat-mdc-tab-header-pagination-after {
@@ -31,12 +54,19 @@
31
54
  }
32
55
  }
33
56
 
57
+ .mdc-tab {
58
+ padding: 0 16px;
59
+ min-width: unset;
60
+ }
61
+
34
62
  .logo {
35
63
  height: 42px;
36
64
  }
37
65
 
38
66
  // TODO use a design token
39
67
  .application-title {
68
+ display: flex;
69
+ align-items: center;
40
70
  font-size: 1.3rem;
41
71
  font-weight: 700;
42
72
  height: 42px;
@@ -48,42 +78,11 @@
48
78
  }
49
79
  }
50
80
 
51
- @include mat.tabs-overrides(
52
- (
53
- divider-color: transparent,
54
- )
55
- );
56
81
  .mat-mdc-tab-nav-bar {
57
82
  text-transform: uppercase;
58
83
  }
59
84
  }
60
85
  }
61
- .onemrva-layout-content {
62
- padding-top: var(--layout-content-padding-top);
63
- min-height: calc(100vh - 48px);
64
- .container-with-nav {
65
- display: flex;
66
- .left-content {
67
- flex: 0 0 240px;
68
- @media screen and (max-width: 640px) {
69
- position: absolute;
70
- z-index: 10;
71
- margin-left: -240px;
72
- transition: 0.5s ease-in-out margin-left;
73
- overflow: hidden;
74
- &.open {
75
- margin-left: 0;
76
- }
77
- }
78
- }
79
- .right-content {
80
- flex: 1;
81
- }
82
- }
83
- }
84
- .mat-drawer-content {
85
- min-height: 100vh;
86
- }
87
86
 
88
87
  #accessibility_fab {
89
88
  position: fixed;
@@ -115,7 +114,91 @@
115
114
  }
116
115
  }
117
116
 
117
+ mat-drawer-content {
118
+ display: grid;
119
+ grid-template-areas:
120
+ 'header'
121
+ 'main';
122
+
123
+ @media screen and (min-width: 640px) {
124
+ grid-template-columns: 240px 1fr;
125
+
126
+ grid-template-areas:
127
+ 'header header'
128
+ 'left-sidenav main';
129
+ }
130
+
131
+ header {
132
+ grid-area: header;
133
+ }
134
+
135
+ onemrva-layout-left-sidenav {
136
+ grid-area: left-sidenav;
137
+ border-right: 1px solid var(--mat-sys-outline-variant);
138
+
139
+ @media screen and (max-width: 640px) {
140
+ display: none;
141
+ }
142
+ }
143
+
144
+ #language-trigger {
145
+ display: flex;
146
+
147
+ &__child {
148
+ border: 1px solid var(--mat-sys-outline-variant);
149
+ border-radius: 500px;
150
+ }
151
+
152
+ &:hover {
153
+ background: transparent;
154
+ }
155
+
156
+ img {
157
+ width: 22px;
158
+ height: 26px;
159
+ }
160
+ }
161
+
162
+ main {
163
+ display: block;
164
+ grid-area: main;
165
+ position: relative;
166
+ width: 100%;
167
+ overflow-y: auto;
168
+ max-height: calc(100vh - var(--layout-header-height));
169
+ max-width: calc(100vw - 240px);
170
+
171
+ & > .notification {
172
+ z-index: 999;
173
+ position: sticky;
174
+ top: 0;
175
+ }
176
+
177
+ & > section {
178
+ width: 95%;
179
+ max-width: 1400px;
180
+ margin-left: auto;
181
+ margin-right: auto;
182
+ min-height: calc(100vh - var(--layout-header-height));
183
+ }
184
+ }
185
+
186
+ &.no-sidenav {
187
+ grid-template-columns: 1fr;
188
+ grid-template-areas:
189
+ 'header'
190
+ 'main';
191
+
192
+ main {
193
+ max-width: 100vw;
194
+ }
195
+ }
196
+ }
197
+
118
198
  mat-drawer {
199
+ max-height: 100vh;
200
+ overflow: hidden;
201
+
119
202
  &:not(.side-menu) {
120
203
  padding: var(--double-spacer);
121
204
  background: var(--mat-sys-surface-container-high);
@@ -144,21 +227,6 @@
144
227
  }
145
228
  }
146
229
 
147
- .mat-mdc-menu-content {
148
- button {
149
- &.active > * {
150
- font-weight: bold !important;
151
- }
152
- mat-icon {
153
- font-size: 1.125rem !important;
154
- height: 1.125rem;
155
- width: 1.125rem;
156
- }
157
- span {
158
- font-size: 14px !important;
159
- }
160
- }
161
- }
162
230
  nav a.disabled {
163
231
  pointer-events: none;
164
232
  }
@@ -1,10 +1,5 @@
1
1
  :host {
2
- width: 240px;
3
- margin-right: 40px;
4
- border-right: 1px solid var(--mat-sys-outline-variant);
5
- position: fixed;
6
- height: calc(100vh - var(--layout-header-height) - var(--double-spacer));
7
- padding-top: var(--double-spacer);
8
- overflow-y: auto;
9
- overflow-x: hidden;
2
+ display: flex;
3
+ overflow-y: hidden;
4
+ max-height: calc(100vh - var(--layout-header-height));
10
5
  }
@@ -0,0 +1,4 @@
1
+ .subroutes-menu-trigger {
2
+ display: flex;
3
+ align-items: center;
4
+ }
@@ -1,10 +1,10 @@
1
1
  :host {
2
- min-width: 250px;
3
2
  .close-button {
4
3
  display: flex;
5
4
  justify-content: flex-end;
6
5
  padding: var(--spacer);
7
6
  }
7
+
8
8
  .mobile-menu-item {
9
9
  display: flex;
10
10
  width: 100%;
@@ -24,6 +24,7 @@
24
24
  margin-left: 4px;
25
25
  }
26
26
  }
27
+
27
28
  .sidebar {
28
29
  overflow: scroll;
29
30
  display: flex;
@@ -1,3 +1,5 @@
1
1
  :host {
2
+ display: flex;
3
+ flex-direction: column;
2
4
  width: 100%;
3
5
  }
@@ -1,10 +1,14 @@
1
1
  onemrva-mat-navigation {
2
- min-width: 250px;
3
- border-right: 1px solid var(--mat-sys-outline-variant);
4
2
  display: flex;
3
+ width: 100%;
4
+ max-height: calc(100vh - var(--layout-header-height));
5
+ overflow-y: auto;
6
+ padding: var(--double-spacer) 0;
7
+
5
8
  .mat-expansion-panel-body {
6
9
  padding: 0;
7
10
  }
11
+
8
12
  .mobile-menu-item {
9
13
  display: flex;
10
14
  width: 100%;
@@ -1,18 +1,13 @@
1
1
  :host {
2
- position: fixed;
3
- top: var(--layout-header-height, 0);
4
- left: 0;
5
- right: 0;
6
- transition: max-height 400ms ease-out;
7
- max-height: 100vh;
8
- overflow: hidden;
9
- z-index: 401;
10
- background-color: var(--mat-sys-primary-container);
11
- color: var(--mat-sys-on-primary-container);
12
- border-bottom: 1px solid var(--mat-sys-primary);
13
-
14
2
  .onemrva-mat-notification {
15
- position: relative;
3
+ transition: max-height 400ms ease-out;
4
+ max-height: 100vh;
5
+ z-index: 401;
6
+
7
+ background-color: var(--mat-sys-primary-container);
8
+ color: var(--mat-sys-on-primary-container);
9
+ border-bottom: 1px solid var(--mat-sys-primary);
10
+
16
11
  .onemrva-mat-notification-content {
17
12
  font: var(--mat-sys-body-medium);
18
13
  padding: var(--double-spacer) var(--spacer) var(--double-spacer)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onemrvapublic/design-system",
3
- "version": "20.11.0-develop.1",
3
+ "version": "20.11.0-develop.3",
4
4
  "description": "Design System Onem/Rva without theme included",
5
5
  "publishConfig": {
6
6
  "access": "public"