@testgorilla/tgo-ui 2.12.0 → 2.12.2

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.
@@ -1,7 +1,8 @@
1
+ import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
1
2
  import { LogoTypeEnum } from './logo.model';
2
3
  import { ApplicationTheme } from '../../models/application-theme.model';
3
4
  import * as i0 from "@angular/core";
4
- export declare class LogoComponent {
5
+ export declare class LogoComponent implements OnInit, OnChanges {
5
6
  private readonly defaultAppTheme;
6
7
  /**
7
8
  * Logo type
@@ -32,8 +33,15 @@ export declare class LogoComponent {
32
33
  * @type {number}
33
34
  * @memberof LogoComponent
34
35
  */
35
- set width(logoWidth: number);
36
- logoWidth: number;
36
+ width: number;
37
+ /**
38
+ *
39
+ * Allow change logo width
40
+ *
41
+ * @type {string}
42
+ * @memberof LogoComponent
43
+ */
44
+ allowResizing: boolean;
37
45
  protected readonly LogoTypeEnum: typeof LogoTypeEnum;
38
46
  /**
39
47
  * @ignore
@@ -51,7 +59,8 @@ export declare class LogoComponent {
51
59
  /**
52
60
  * @ignore
53
61
  */
54
- ngOnChanges(): void;
62
+ ngOnChanges(changes: SimpleChanges): void;
63
+ private changeWidth;
55
64
  static ɵfac: i0.ɵɵFactoryDeclaration<LogoComponent, [{ optional: true; }]>;
56
- static ɵcmp: i0.ɵɵComponentDeclaration<LogoComponent, "ui-logo", never, { "type": { "alias": "type"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "label": { "alias": "label"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, {}, never, never, false, never>;
65
+ static ɵcmp: i0.ɵɵComponentDeclaration<LogoComponent, "ui-logo", never, { "type": { "alias": "type"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "label": { "alias": "label"; "required": false; }; "width": { "alias": "width"; "required": false; }; "allowResizing": { "alias": "allowResizing"; "required": false; }; }, {}, never, never, false, never>;
57
66
  }
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { IRoute, MenuItem } from "../navbar.model";
3
+ import { AvatarSize } from "../../avatar/avatar.model";
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class MobileNavbarSideSheetComponent {
5
6
  routes: IRoute[];
@@ -9,14 +10,15 @@ export declare class MobileNavbarSideSheetComponent {
9
10
  menuItems: MenuItem[];
10
11
  language: import("@testgorilla/tgo-ui").Language;
11
12
  contentTemplateRef: TemplateRef<any>;
13
+ isDesktop: boolean;
12
14
  navigateEvent: EventEmitter<string>;
13
15
  menuItemClicked: EventEmitter<string>;
14
16
  logoutEvent: EventEmitter<void>;
15
17
  protected readonly translationContext = "NAVBAR.";
16
- isOpenSettings: boolean;
18
+ protected avatarSize: typeof AvatarSize;
17
19
  navigate(routeId: string): void;
18
20
  logout(): void;
19
21
  clickMenuItem(id: string): void;
20
22
  static ɵfac: i0.ɵɵFactoryDeclaration<MobileNavbarSideSheetComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<MobileNavbarSideSheetComponent, "ui-mobile-navbar-side-sheet", never, { "routes": { "alias": "routes"; "required": false; }; "activedRoute": { "alias": "activedRoute"; "required": false; }; "email": { "alias": "email"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; "menuItems": { "alias": "menuItems"; "required": false; }; "language": { "alias": "language"; "required": false; }; "contentTemplateRef": { "alias": "contentTemplateRef"; "required": false; }; }, { "navigateEvent": "navigateEvent"; "menuItemClicked": "menuItemClicked"; "logoutEvent": "logoutEvent"; }, never, never, true, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<MobileNavbarSideSheetComponent, "ui-mobile-navbar-side-sheet", never, { "routes": { "alias": "routes"; "required": false; }; "activedRoute": { "alias": "activedRoute"; "required": false; }; "email": { "alias": "email"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; "menuItems": { "alias": "menuItems"; "required": false; }; "language": { "alias": "language"; "required": false; }; "contentTemplateRef": { "alias": "contentTemplateRef"; "required": false; }; "isDesktop": { "alias": "isDesktop"; "required": false; }; }, { "navigateEvent": "navigateEvent"; "menuItemClicked": "menuItemClicked"; "logoutEvent": "logoutEvent"; }, never, never, true, never>;
22
24
  }
@@ -3,6 +3,7 @@ import { IRoute, MenuItem } from './navbar.model';
3
3
  import { ApplicationTheme } from '../../models/application-theme.model';
4
4
  import { SideSheetService } from '../side-sheet/side-sheet.service';
5
5
  import { BreakpointObserver } from '@angular/cdk/layout';
6
+ import { LogoTypeEnum } from '../logo/logo.model';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class NavbarComponent {
8
9
  private readonly breakpointObserver;
@@ -102,6 +103,7 @@ export declare class NavbarComponent {
102
103
  protected readonly isMobile$: import("rxjs").Observable<boolean>;
103
104
  protected readonly isTablet$: import("rxjs").Observable<boolean>;
104
105
  protected isOpened: boolean;
106
+ protected logoType: typeof LogoTypeEnum;
105
107
  constructor(breakpointObserver: BreakpointObserver, defaultAppTheme: ApplicationTheme, sideSheetService: SideSheetService, destroyRef: DestroyRef);
106
108
  openMobileMenu(): void;
107
109
  navigate(routeId: string): void;
@@ -40,10 +40,19 @@ export declare class PaginatorComponent {
40
40
  * @memberof PaginatorComponent
41
41
  */
42
42
  applicationTheme: ApplicationTheme;
43
+ /**
44
+ *
45
+ * Defines the current page
46
+ * @default 0
47
+ *
48
+ * @type {number}
49
+ * @memberof PaginatorComponent
50
+ */
51
+ currentPage: number;
43
52
  paginatorChange: EventEmitter<PageEvent>;
44
53
  selectConfig: MatPaginatorSelectConfig;
45
54
  constructor(defaultAppTheme: ApplicationTheme);
46
55
  onPaginatorChange(paginator: PageEvent): void;
47
56
  static ɵfac: i0.ɵɵFactoryDeclaration<PaginatorComponent, [{ optional: true; }]>;
48
- static ɵcmp: i0.ɵɵComponentDeclaration<PaginatorComponent, "ui-paginator", never, { "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "length": { "alias": "length"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; }, { "paginatorChange": "paginatorChange"; }, never, never, false, never>;
57
+ static ɵcmp: i0.ɵɵComponentDeclaration<PaginatorComponent, "ui-paginator", never, { "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "length": { "alias": "length"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; }, { "paginatorChange": "paginatorChange"; }, never, never, false, never>;
49
58
  }
@@ -99,6 +99,7 @@ export declare class SnackbarComponent implements OnInit {
99
99
  position: string;
100
100
  safeHtml: SafeHtml;
101
101
  translationContext: string;
102
+ protected readonly maxCharacters = 70;
102
103
  constructor(defaultAppTheme: ApplicationTheme, data: any, snackbarRef: MatSnackBarRef<SnackbarComponent>, domSanitizer: DomSanitizer);
103
104
  ngOnInit(): void;
104
105
  show(): void;
@@ -5,8 +5,9 @@ import * as i3 from "../button/button.component.module";
5
5
  import * as i4 from "../icon/icon.component.module";
6
6
  import * as i5 from "../../pipes/ui-translate.pipe";
7
7
  import * as i6 from "@angular/material/snack-bar";
8
+ import * as i7 from "@angular/material/tooltip";
8
9
  export declare class SnackbarComponentModule {
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<SnackbarComponentModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<SnackbarComponentModule, [typeof i1.SnackbarComponent], [typeof i2.CommonModule, typeof i3.ButtonComponentModule, typeof i4.IconComponentModule, typeof i5.UiTranslatePipe, typeof i6.MatSnackBarModule], [typeof i1.SnackbarComponent]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SnackbarComponentModule, [typeof i1.SnackbarComponent], [typeof i2.CommonModule, typeof i3.ButtonComponentModule, typeof i4.IconComponentModule, typeof i5.UiTranslatePipe, typeof i6.MatSnackBarModule, typeof i7.MatTooltipModule], [typeof i1.SnackbarComponent]>;
11
12
  static ɵinj: i0.ɵɵInjectorDeclaration<SnackbarComponentModule>;
12
13
  }