@onemrvapublic/design-system 20.3.0 → 20.3.2-develop.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/index.d.ts CHANGED
@@ -9,9 +9,9 @@ import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
9
9
  import * as i19 from '@angular/material/sidenav';
10
10
  import { MatDrawer } from '@angular/material/sidenav';
11
11
  import { OnemrvaMatSize, OnemrvaMatColor } from '@onemrvapublic/design-system/utils';
12
+ import { NavItem as NavItem$1 } from '@onemrvapublic/design-system/mat-navigation';
12
13
  import * as i26 from '@ngx-translate/core';
13
14
  import { TranslateService, MissingTranslationHandler, MissingTranslationHandlerParams, TranslateLoader } from '@ngx-translate/core';
14
- import { NavItem as NavItem$1 } from '@onemrvapublic/design-system/mat-navigation';
15
15
  import * as i14 from '@angular/common';
16
16
  import { Location } from '@angular/common';
17
17
  import * as i17 from '@angular/material/toolbar';
@@ -186,6 +186,18 @@ interface OnemRvaLanguage {
186
186
  label: string;
187
187
  }
188
188
 
189
+ declare class OnemrvaLeftSidenavService {
190
+ private originalItems;
191
+ readonly items: WritableSignal<NavItem$1[]>;
192
+ private router;
193
+ constructor();
194
+ setOriginal(items: NavItem$1[]): void;
195
+ updateItems(items: NavItem$1[]): void;
196
+ reset(): void;
197
+ static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaLeftSidenavService, never>;
198
+ static ɵprov: i0.ɵɵInjectableDeclaration<OnemrvaLeftSidenavService>;
199
+ }
200
+
189
201
  declare class LayoutComponent implements OnInit, AfterViewInit, OnDestroy {
190
202
  routes?: QueryList<LayoutRouteComponent>;
191
203
  title?: LayoutTitleComponent;
@@ -217,6 +229,7 @@ declare class LayoutComponent implements OnInit, AfterViewInit, OnDestroy {
217
229
  readonly breakpointObserver: BreakpointObserver;
218
230
  private readonly document;
219
231
  readonly drawerService: OnemrvaDrawerService;
232
+ readonly leftSidenavService: OnemrvaLeftSidenavService;
220
233
  constructor();
221
234
  ngOnInit(): void;
222
235
  get currentLanguage(): string;
@@ -230,18 +243,6 @@ declare class LayoutComponent implements OnInit, AfterViewInit, OnDestroy {
230
243
  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>;
231
244
  }
232
245
 
233
- declare class OnemrvaLeftSidenavService {
234
- private originalItems;
235
- readonly items: WritableSignal<NavItem$1[]>;
236
- private router;
237
- constructor();
238
- setOriginal(items: NavItem$1[]): void;
239
- updateItems(items: NavItem$1[]): void;
240
- reset(): void;
241
- static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaLeftSidenavService, never>;
242
- static ɵprov: i0.ɵɵInjectableDeclaration<OnemrvaLeftSidenavService>;
243
- }
244
-
245
246
  declare class LayoutSidenavComponent implements OnInit {
246
247
  isSmall: boolean;
247
248
  routes?: QueryList<LayoutRouteComponent>;
@@ -265,6 +266,8 @@ declare class LayoutLeftSidenavComponent {
265
266
  private _items;
266
267
  set items(value: NavItem$1[]);
267
268
  get items(): NavItem$1[];
269
+ _isHidden: boolean;
270
+ constructor();
268
271
  leftSidenavService: OnemrvaLeftSidenavService;
269
272
  static ɵfac: i0.ɵɵFactoryDeclaration<LayoutLeftSidenavComponent, never>;
270
273
  static ɵcmp: i0.ɵɵComponentDeclaration<LayoutLeftSidenavComponent, "onemrva-layout-left-sidenav", never, { "items": { "alias": "items"; "required": false; }; }, {}, never, ["*"], true, never>;
@@ -295,7 +298,7 @@ declare class LayoutDrawerTitleComponent {
295
298
  static ɵcmp: i0.ɵɵComponentDeclaration<LayoutDrawerTitleComponent, "onemrva-drawer-title", never, { "showClose": { "alias": "showClose"; "required": false; }; }, {}, never, ["*"], true, never>;
296
299
  }
297
300
 
298
- declare const layoutComponents: (typeof LayoutRouteComponent | typeof LayoutFooterComponent | typeof LayoutSidenavComponent | typeof LayoutComponent | typeof LayoutLeftSidenavComponent)[];
301
+ declare const layoutComponents: (typeof LayoutRouteComponent | typeof LayoutFooterComponent | typeof LayoutSidenavComponent | typeof LayoutLeftSidenavComponent | typeof LayoutComponent)[];
299
302
 
300
303
  declare class StripHtmlPipe implements PipeTransform {
301
304
  transform(value: string): any;
@@ -330,6 +333,7 @@ declare class FlagIconComponent {
330
333
 
331
334
  declare const MatAvatarType: {
332
335
  INITIALS: "initials";
336
+ TEXT: "text";
333
337
  IMAGE: "image";
334
338
  ICON: "icon";
335
339
  CUSTOM: "custom";
@@ -426,6 +430,15 @@ declare class OnemrvaMatAvatarComponent implements OnInit {
426
430
  * ```
427
431
  */
428
432
  initials: string;
433
+ /**
434
+ * Sets text to the avatar.
435
+ *
436
+ * @example
437
+ * ```html
438
+ * <onemrva-mat-avatar text="100%"></onemrva-mat-avatar>
439
+ * ```
440
+ */
441
+ text: string;
429
442
  /**
430
443
  * Sets an icon to the avatar. All icons from the material icon set are supported.
431
444
  *
@@ -452,6 +465,8 @@ declare class OnemrvaMatAvatarComponent implements OnInit {
452
465
  /** @hidden @internal */
453
466
  protected initialsTemplate: TemplateRef<any> | null;
454
467
  /** @hidden @internal */
468
+ protected textTemplate: TemplateRef<any> | null;
469
+ /** @hidden @internal */
455
470
  protected iconTemplate: TemplateRef<any> | null;
456
471
  /**
457
472
  * Returns the type of the avatar.
@@ -468,6 +483,8 @@ declare class OnemrvaMatAvatarComponent implements OnInit {
468
483
  get _isIconType(): boolean;
469
484
  /** @hidden @internal */
470
485
  get _isInitialsType(): boolean;
486
+ /** @hidden @internal */
487
+ get _isTextType(): boolean;
471
488
  /**
472
489
  * Returns the template of the avatar.
473
490
  *
@@ -488,7 +505,7 @@ declare class OnemrvaMatAvatarComponent implements OnInit {
488
505
  /** @hidden @internal */
489
506
  private getRole;
490
507
  static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaMatAvatarComponent, never>;
491
- static ɵcmp: i0.ɵɵComponentDeclaration<OnemrvaMatAvatarComponent, "onemrva-mat-avatar", never, { "id": { "alias": "id"; "required": false; }; "roundShape": { "alias": "roundShape"; "required": false; }; "initials": { "alias": "initials"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "src": { "alias": "src"; "required": false; }; }, {}, never, ["*"], true, never>;
508
+ static ɵcmp: i0.ɵɵComponentDeclaration<OnemrvaMatAvatarComponent, "onemrva-mat-avatar", never, { "id": { "alias": "id"; "required": false; }; "roundShape": { "alias": "roundShape"; "required": false; }; "initials": { "alias": "initials"; "required": false; }; "text": { "alias": "text"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "src": { "alias": "src"; "required": false; }; }, {}, never, ["*"], true, never>;
492
509
  }
493
510
 
494
511
  declare class OnemrvaMatAvatarModule {
package/layout/index.d.ts CHANGED
@@ -8,9 +8,9 @@ import { BreakpointObserver } from '@angular/cdk/layout';
8
8
  import * as i19 from '@angular/material/sidenav';
9
9
  import { MatDrawer } from '@angular/material/sidenav';
10
10
  import { OnemrvaMatSize } from '@onemrvapublic/design-system/utils';
11
+ import { NavItem } from '@onemrvapublic/design-system/mat-navigation';
11
12
  import * as i26 from '@ngx-translate/core';
12
13
  import { TranslateService } from '@ngx-translate/core';
13
- import { NavItem } from '@onemrvapublic/design-system/mat-navigation';
14
14
  import * as i14 from '@angular/common';
15
15
  import * as i17 from '@angular/material/toolbar';
16
16
  import * as i18 from '@angular/material/divider';
@@ -158,6 +158,18 @@ interface OnemRvaLanguage {
158
158
  label: string;
159
159
  }
160
160
 
161
+ declare class OnemrvaLeftSidenavService {
162
+ private originalItems;
163
+ readonly items: WritableSignal<NavItem[]>;
164
+ private router;
165
+ constructor();
166
+ setOriginal(items: NavItem[]): void;
167
+ updateItems(items: NavItem[]): void;
168
+ reset(): void;
169
+ static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaLeftSidenavService, never>;
170
+ static ɵprov: i0.ɵɵInjectableDeclaration<OnemrvaLeftSidenavService>;
171
+ }
172
+
161
173
  declare class LayoutComponent implements OnInit, AfterViewInit, OnDestroy {
162
174
  routes?: QueryList<LayoutRouteComponent>;
163
175
  title?: LayoutTitleComponent;
@@ -189,6 +201,7 @@ declare class LayoutComponent implements OnInit, AfterViewInit, OnDestroy {
189
201
  readonly breakpointObserver: BreakpointObserver;
190
202
  private readonly document;
191
203
  readonly drawerService: OnemrvaDrawerService;
204
+ readonly leftSidenavService: OnemrvaLeftSidenavService;
192
205
  constructor();
193
206
  ngOnInit(): void;
194
207
  get currentLanguage(): string;
@@ -202,18 +215,6 @@ declare class LayoutComponent implements OnInit, AfterViewInit, OnDestroy {
202
215
  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>;
203
216
  }
204
217
 
205
- declare class OnemrvaLeftSidenavService {
206
- private originalItems;
207
- readonly items: WritableSignal<NavItem[]>;
208
- private router;
209
- constructor();
210
- setOriginal(items: NavItem[]): void;
211
- updateItems(items: NavItem[]): void;
212
- reset(): void;
213
- static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaLeftSidenavService, never>;
214
- static ɵprov: i0.ɵɵInjectableDeclaration<OnemrvaLeftSidenavService>;
215
- }
216
-
217
218
  declare class LayoutSidenavComponent implements OnInit {
218
219
  isSmall: boolean;
219
220
  routes?: QueryList<LayoutRouteComponent>;
@@ -237,6 +238,8 @@ declare class LayoutLeftSidenavComponent {
237
238
  private _items;
238
239
  set items(value: NavItem[]);
239
240
  get items(): NavItem[];
241
+ _isHidden: boolean;
242
+ constructor();
240
243
  leftSidenavService: OnemrvaLeftSidenavService;
241
244
  static ɵfac: i0.ɵɵFactoryDeclaration<LayoutLeftSidenavComponent, never>;
242
245
  static ɵcmp: i0.ɵɵComponentDeclaration<LayoutLeftSidenavComponent, "onemrva-layout-left-sidenav", never, { "items": { "alias": "items"; "required": false; }; }, {}, never, ["*"], true, never>;
@@ -267,7 +270,7 @@ declare class LayoutDrawerTitleComponent {
267
270
  static ɵcmp: i0.ɵɵComponentDeclaration<LayoutDrawerTitleComponent, "onemrva-drawer-title", never, { "showClose": { "alias": "showClose"; "required": false; }; }, {}, never, ["*"], true, never>;
268
271
  }
269
272
 
270
- declare const layoutComponents: (typeof LayoutRouteComponent | typeof LayoutFooterComponent | typeof LayoutSidenavComponent | typeof LayoutComponent | typeof LayoutLeftSidenavComponent)[];
273
+ declare const layoutComponents: (typeof LayoutRouteComponent | typeof LayoutFooterComponent | typeof LayoutSidenavComponent | typeof LayoutLeftSidenavComponent | typeof LayoutComponent)[];
271
274
 
272
275
  declare class StripHtmlPipe implements PipeTransform {
273
276
  transform(value: string): any;
@@ -49,6 +49,9 @@
49
49
  .onemrva-layout-content {
50
50
  padding-top: var(--layout-content-padding-top);
51
51
  min-height: calc(100vh - 48px);
52
+ .left-side-nav {
53
+ display: flex;
54
+ }
52
55
  }
53
56
  .mat-drawer-content {
54
57
  min-height: 100vh;
@@ -3,6 +3,7 @@ import { OnInit, TemplateRef, ElementRef } from '@angular/core';
3
3
 
4
4
  declare const MatAvatarType: {
5
5
  INITIALS: "initials";
6
+ TEXT: "text";
6
7
  IMAGE: "image";
7
8
  ICON: "icon";
8
9
  CUSTOM: "custom";
@@ -99,6 +100,15 @@ declare class OnemrvaMatAvatarComponent implements OnInit {
99
100
  * ```
100
101
  */
101
102
  initials: string;
103
+ /**
104
+ * Sets text to the avatar.
105
+ *
106
+ * @example
107
+ * ```html
108
+ * <onemrva-mat-avatar text="100%"></onemrva-mat-avatar>
109
+ * ```
110
+ */
111
+ text: string;
102
112
  /**
103
113
  * Sets an icon to the avatar. All icons from the material icon set are supported.
104
114
  *
@@ -125,6 +135,8 @@ declare class OnemrvaMatAvatarComponent implements OnInit {
125
135
  /** @hidden @internal */
126
136
  protected initialsTemplate: TemplateRef<any> | null;
127
137
  /** @hidden @internal */
138
+ protected textTemplate: TemplateRef<any> | null;
139
+ /** @hidden @internal */
128
140
  protected iconTemplate: TemplateRef<any> | null;
129
141
  /**
130
142
  * Returns the type of the avatar.
@@ -141,6 +153,8 @@ declare class OnemrvaMatAvatarComponent implements OnInit {
141
153
  get _isIconType(): boolean;
142
154
  /** @hidden @internal */
143
155
  get _isInitialsType(): boolean;
156
+ /** @hidden @internal */
157
+ get _isTextType(): boolean;
144
158
  /**
145
159
  * Returns the template of the avatar.
146
160
  *
@@ -161,7 +175,7 @@ declare class OnemrvaMatAvatarComponent implements OnInit {
161
175
  /** @hidden @internal */
162
176
  private getRole;
163
177
  static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaMatAvatarComponent, never>;
164
- static ɵcmp: i0.ɵɵComponentDeclaration<OnemrvaMatAvatarComponent, "onemrva-mat-avatar", never, { "id": { "alias": "id"; "required": false; }; "roundShape": { "alias": "roundShape"; "required": false; }; "initials": { "alias": "initials"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "src": { "alias": "src"; "required": false; }; }, {}, never, ["*"], true, never>;
178
+ static ɵcmp: i0.ɵɵComponentDeclaration<OnemrvaMatAvatarComponent, "onemrva-mat-avatar", never, { "id": { "alias": "id"; "required": false; }; "roundShape": { "alias": "roundShape"; "required": false; }; "initials": { "alias": "initials"; "required": false; }; "text": { "alias": "text"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "src": { "alias": "src"; "required": false; }; }, {}, never, ["*"], true, never>;
165
179
  }
166
180
 
167
181
  declare class OnemrvaMatAvatarModule {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onemrvapublic/design-system",
3
- "version": "20.3.0",
3
+ "version": "20.3.2-develop.1",
4
4
  "description": "Design System Onem/Rva without theme included",
5
5
  "publishConfig": {
6
6
  "access": "public"