@testgorilla/tgo-ui 0.0.22 → 0.0.24

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.
Files changed (88) hide show
  1. package/components/button/button.component.d.ts +4 -5
  2. package/components/button/button.model.d.ts +1 -0
  3. package/components/create-account/create-account.component.d.ts +9 -2
  4. package/components/create-account/create-account.component.module.d.ts +2 -1
  5. package/components/create-account/create-account.constant.d.ts +10 -0
  6. package/components/create-account/create-account.model.d.ts +10 -0
  7. package/components/create-password/create-password.component.d.ts +9 -2
  8. package/components/create-password/create-password.component.module.d.ts +2 -1
  9. package/components/create-password/create-password.constant.d.ts +5 -0
  10. package/components/create-password/create-password.model.d.ts +5 -0
  11. package/components/dialog/dialog.component.d.ts +11 -0
  12. package/components/dialog/dialog.component.module.d.ts +13 -0
  13. package/components/dialog/dialog.model.d.ts +4 -0
  14. package/components/dialog/dialog.service.d.ts +13 -0
  15. package/components/dialog/launch-dialog.component.d.ts +9 -0
  16. package/components/forgot-password/forgot-password.component.d.ts +9 -2
  17. package/components/forgot-password/forgot-password.component.module.d.ts +2 -1
  18. package/components/forgot-password/forgot-password.constant.d.ts +6 -0
  19. package/components/forgot-password/forgot-password.model.d.ts +6 -0
  20. package/components/label/label.component.d.ts +39 -0
  21. package/components/label/label.component.module.d.ts +8 -0
  22. package/components/label/label.model.d.ts +16 -0
  23. package/components/login/login.component.d.ts +8 -2
  24. package/components/login/login.component.module.d.ts +2 -1
  25. package/components/login/login.constant.d.ts +9 -0
  26. package/components/login/login.model.d.ts +9 -0
  27. package/components/navbar/navbar.component.module.d.ts +2 -1
  28. package/components/navigation/navigation.component.d.ts +4 -4
  29. package/components/navigation/navigation.component.module.d.ts +2 -2
  30. package/components/table/directives/dynamic-component.directive.d.ts +13 -0
  31. package/{shared/pipes/dataPropertyGetter.d.ts → components/table/pipes/data-property-getter.d.ts} +0 -0
  32. package/components/table/table.component.d.ts +5 -11
  33. package/components/table/table.component.module.d.ts +6 -6
  34. package/components/table/table.model.d.ts +17 -8
  35. package/esm2020/components/banner-action/banner-action.component.mjs +3 -3
  36. package/esm2020/components/button/button.component.mjs +5 -5
  37. package/esm2020/components/button/button.model.mjs +1 -1
  38. package/esm2020/components/card/card.component.mjs +2 -2
  39. package/esm2020/components/create-account/create-account.component.mjs +24 -7
  40. package/esm2020/components/create-account/create-account.component.module.mjs +6 -2
  41. package/esm2020/components/create-account/create-account.constant.mjs +11 -0
  42. package/esm2020/components/create-account/create-account.model.mjs +1 -1
  43. package/esm2020/components/create-password/create-password.component.mjs +23 -6
  44. package/esm2020/components/create-password/create-password.component.module.mjs +6 -2
  45. package/esm2020/components/create-password/create-password.constant.mjs +6 -0
  46. package/esm2020/components/create-password/create-password.model.mjs +1 -1
  47. package/esm2020/components/dialog/dialog.component.mjs +32 -0
  48. package/esm2020/components/dialog/dialog.component.module.mjs +25 -0
  49. package/esm2020/components/dialog/dialog.model.mjs +2 -0
  50. package/esm2020/components/dialog/dialog.service.mjs +24 -0
  51. package/esm2020/components/dialog/launch-dialog.component.mjs +24 -0
  52. package/esm2020/components/field/field.component.mjs +3 -3
  53. package/esm2020/components/forgot-password/forgot-password.component.mjs +17 -6
  54. package/esm2020/components/forgot-password/forgot-password.component.module.mjs +27 -4
  55. package/esm2020/components/forgot-password/forgot-password.constant.mjs +7 -0
  56. package/esm2020/components/forgot-password/forgot-password.model.mjs +1 -1
  57. package/esm2020/components/label/label.component.mjs +55 -0
  58. package/esm2020/components/label/label.component.module.mjs +19 -0
  59. package/esm2020/components/label/label.model.mjs +9 -0
  60. package/esm2020/components/login/login.component.mjs +22 -6
  61. package/esm2020/components/login/login.component.module.mjs +6 -2
  62. package/esm2020/components/login/login.constant.mjs +10 -0
  63. package/esm2020/components/login/login.model.mjs +1 -1
  64. package/esm2020/components/logo/logo.component.mjs +3 -3
  65. package/esm2020/components/navbar/navbar.component.mjs +8 -7
  66. package/esm2020/components/navbar/navbar.component.module.mjs +27 -4
  67. package/esm2020/components/navigation/navigation.component.mjs +5 -5
  68. package/esm2020/components/navigation/navigation.component.module.mjs +5 -5
  69. package/esm2020/components/table/directives/dynamic-component.directive.mjs +39 -0
  70. package/esm2020/components/table/pipes/data-property-getter.mjs +32 -0
  71. package/esm2020/components/table/table.component.mjs +9 -19
  72. package/esm2020/components/table/table.component.module.mjs +7 -7
  73. package/esm2020/components/table/table.model.mjs +13 -14
  74. package/esm2020/public-api.mjs +13 -7
  75. package/fesm2015/testgorilla-tgo-ui.mjs +406 -138
  76. package/fesm2015/testgorilla-tgo-ui.mjs.map +1 -1
  77. package/fesm2020/testgorilla-tgo-ui.mjs +406 -138
  78. package/fesm2020/testgorilla-tgo-ui.mjs.map +1 -1
  79. package/package.json +15 -15
  80. package/public-api.d.ts +10 -4
  81. package/src/assets/images/testgorilla.svg +9 -1
  82. package/components/status/status.component.d.ts +0 -27
  83. package/components/status/status.component.module.d.ts +0 -9
  84. package/components/status/status.model.d.ts +0 -8
  85. package/esm2020/components/status/status.component.mjs +0 -44
  86. package/esm2020/components/status/status.component.module.mjs +0 -20
  87. package/esm2020/components/status/status.model.mjs +0 -2
  88. package/esm2020/shared/pipes/dataPropertyGetter.mjs +0 -32
@@ -1,15 +1,14 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { ThemePalette } from '@angular/material/core';
3
- import { IconPositionOptions } from './button.model';
2
+ import { ButtonColor, IconPositionOptions } from './button.model';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class ButtonComponent {
6
5
  /**
7
6
  * Background color of the button while in active state
8
7
  *
9
- * @type {ThemePalette}
8
+ * @type {ButtonColor}
10
9
  * @memberof ButtonComponent
11
10
  */
12
- color: ThemePalette;
11
+ color: ButtonColor;
13
12
  /**
14
13
  * Text content to appear on the button
15
14
  *
@@ -42,7 +41,7 @@ export declare class ButtonComponent {
42
41
  */
43
42
  loading: boolean;
44
43
  /**
45
- * If the button will have width 100%
44
+ * Indicator of the button width
46
45
  *
47
46
  * @memberof ButtonComponent
48
47
  */
@@ -1 +1,2 @@
1
1
  export declare type IconPositionOptions = 'left' | 'right' | undefined;
2
+ export declare type ButtonColor = 'primary' | 'secondary' | 'tertiary';
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { FormBuilder } from '@angular/forms';
3
- import { CreateAccountCredentials } from './create-account.model';
3
+ import { CreateAccountCredentials, Ii18nCreateAccount } from './create-account.model';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class CreateAccountComponent implements OnInit {
6
6
  private fb;
@@ -21,6 +21,13 @@ export declare class CreateAccountComponent implements OnInit {
21
21
  * @memberof ButtonComponent
22
22
  */
23
23
  loading: boolean;
24
+ /**
25
+ *
26
+ * @description Object with the translations for the component.
27
+ * @type {Ii18nCreateAccount}
28
+ * @memberof CreateAccountComponent
29
+ */
30
+ i18n: Ii18nCreateAccount;
24
31
  /**
25
32
  * @ignore
26
33
  */
@@ -38,5 +45,5 @@ export declare class CreateAccountComponent implements OnInit {
38
45
  login(): void;
39
46
  checkErrors(field: string): void;
40
47
  static ɵfac: i0.ɵɵFactoryDeclaration<CreateAccountComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<CreateAccountComponent, "ui-create-account", never, { "formErrors": "formErrors"; "loading": "loading"; }, { "submitEvent": "submitEvent"; "loginEvent": "loginEvent"; }, never, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<CreateAccountComponent, "ui-create-account", never, { "formErrors": "formErrors"; "loading": "loading"; "i18n": "i18n"; }, { "submitEvent": "submitEvent"; "loginEvent": "loginEvent"; }, never, never>;
42
49
  }
@@ -6,8 +6,9 @@ import * as i4 from "../field/field.component.module";
6
6
  import * as i5 from "../button/button.component.module";
7
7
  import * as i6 from "@angular/material/checkbox";
8
8
  import * as i7 from "@angular-material-extensions/password-strength";
9
+ import * as i8 from "../logo/logo.component.module";
9
10
  export declare class CreateAccountComponentModule {
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<CreateAccountComponentModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<CreateAccountComponentModule, [typeof i1.CreateAccountComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.FieldComponentModule, typeof i5.ButtonComponentModule, typeof i6.MatCheckboxModule, typeof i7.MatPasswordStrengthModule], [typeof i1.CreateAccountComponent]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CreateAccountComponentModule, [typeof i1.CreateAccountComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.FieldComponentModule, typeof i5.ButtonComponentModule, typeof i6.MatCheckboxModule, typeof i7.MatPasswordStrengthModule, typeof i8.LogoComponentModule], [typeof i1.CreateAccountComponent]>;
12
13
  static ɵinj: i0.ɵɵInjectorDeclaration<CreateAccountComponentModule>;
13
14
  }
@@ -0,0 +1,10 @@
1
+ export declare const CREATE_ACCOUNT_i18n: {
2
+ title: string;
3
+ subtitle: string;
4
+ email_placeholder: string;
5
+ password_placeholder: string;
6
+ terms_conditions: string;
7
+ button_label: string;
8
+ have_career_passport: string;
9
+ login: string;
10
+ };
@@ -2,3 +2,13 @@ export interface CreateAccountCredentials {
2
2
  username: string;
3
3
  password: string;
4
4
  }
5
+ export interface Ii18nCreateAccount {
6
+ title: string;
7
+ subtitle: string;
8
+ email_placeholder: string;
9
+ password_placeholder: string;
10
+ terms_conditions: string;
11
+ button_label: string;
12
+ have_career_passport: string;
13
+ login: string;
14
+ }
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { FormBuilder } from '@angular/forms';
3
- import { CreatePasswordCredentials } from './create-password.model';
3
+ import { CreatePasswordCredentials, Ii18nCreatePassword } from './create-password.model';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class CreatePasswordComponent implements OnInit {
6
6
  private fb;
@@ -20,6 +20,13 @@ export declare class CreatePasswordComponent implements OnInit {
20
20
  * @memberof ButtonComponent
21
21
  */
22
22
  loading: boolean;
23
+ /**
24
+ *
25
+ * @description Object with the translations for the component.
26
+ * @type {Ii18nCreatePassword}
27
+ * @memberof CreatePasswordComponent
28
+ */
29
+ i18n: Ii18nCreatePassword;
23
30
  /**
24
31
  * @ignore
25
32
  */
@@ -32,5 +39,5 @@ export declare class CreatePasswordComponent implements OnInit {
32
39
  submit(): void;
33
40
  checkErrors(field: string): void;
34
41
  static ɵfac: i0.ɵɵFactoryDeclaration<CreatePasswordComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<CreatePasswordComponent, "ui-create-password", never, { "formErrors": "formErrors"; "loading": "loading"; }, { "submitEvent": "submitEvent"; }, never, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<CreatePasswordComponent, "ui-create-password", never, { "formErrors": "formErrors"; "loading": "loading"; "i18n": "i18n"; }, { "submitEvent": "submitEvent"; }, never, never>;
36
43
  }
@@ -5,8 +5,9 @@ import * as i3 from "@angular/forms";
5
5
  import * as i4 from "../field/field.component.module";
6
6
  import * as i5 from "../button/button.component.module";
7
7
  import * as i6 from "@angular-material-extensions/password-strength";
8
+ import * as i7 from "../logo/logo.component.module";
8
9
  export declare class CreatePasswordComponentModule {
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<CreatePasswordComponentModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<CreatePasswordComponentModule, [typeof i1.CreatePasswordComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.FieldComponentModule, typeof i5.ButtonComponentModule, typeof i6.MatPasswordStrengthModule], [typeof i1.CreatePasswordComponent]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CreatePasswordComponentModule, [typeof i1.CreatePasswordComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.FieldComponentModule, typeof i5.ButtonComponentModule, typeof i6.MatPasswordStrengthModule, typeof i7.LogoComponentModule], [typeof i1.CreatePasswordComponent]>;
11
12
  static ɵinj: i0.ɵɵInjectorDeclaration<CreatePasswordComponentModule>;
12
13
  }
@@ -0,0 +1,5 @@
1
+ export declare const CREATE_PASSWORD_i18n: {
2
+ title: string;
3
+ password_placeholder: string;
4
+ button: string;
5
+ };
@@ -1,3 +1,8 @@
1
1
  export interface CreatePasswordCredentials {
2
2
  password: string;
3
3
  }
4
+ export interface Ii18nCreatePassword {
5
+ title: string;
6
+ password_placeholder: string;
7
+ button: string;
8
+ }
@@ -0,0 +1,11 @@
1
+ import { MatDialogRef } from '@angular/material/dialog';
2
+ import { DialogConfig } from './dialog.model';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DialogComponent {
5
+ data: DialogConfig;
6
+ dialogRef: MatDialogRef<DialogComponent>;
7
+ constructor(data: DialogConfig, dialogRef: MatDialogRef<DialogComponent>);
8
+ dismiss(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, [{ optional: true; }, { optional: true; }]>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "ui-dialog", never, {}, {}, never, never>;
11
+ }
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./dialog.component";
3
+ import * as i2 from "./launch-dialog.component";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@angular/material/icon";
6
+ import * as i5 from "@angular/material/dialog";
7
+ import * as i6 from "@angular/material/button";
8
+ import * as i7 from "../button/button.component.module";
9
+ export declare class DialogComponentModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponentModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DialogComponentModule, [typeof i1.DialogComponent, typeof i2.LaunchDialogComponent], [typeof i3.CommonModule, typeof i4.MatIconModule, typeof i5.MatDialogModule, typeof i6.MatButtonModule, typeof i7.ButtonComponentModule], [typeof i5.MatDialogModule]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<DialogComponentModule>;
13
+ }
@@ -0,0 +1,4 @@
1
+ export interface DialogConfig {
2
+ title?: string;
3
+ content?: string;
4
+ }
@@ -0,0 +1,13 @@
1
+ import { ComponentType } from '@angular/cdk/portal';
2
+ import { MatDialog, MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DialogService {
5
+ private matDialog;
6
+ /**
7
+ * Constructor
8
+ */
9
+ constructor(matDialog: MatDialog);
10
+ open(dialogComponent: ComponentType<any>, config?: MatDialogConfig): MatDialogRef<any>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
13
+ }
@@ -0,0 +1,9 @@
1
+ import { DialogService } from './dialog.service';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LaunchDialogComponent {
4
+ private dialogService;
5
+ constructor(dialogService: DialogService);
6
+ openModal(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<LaunchDialogComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<LaunchDialogComponent, "ui-launch-dialog", never, {}, {}, never, never>;
9
+ }
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { FormBuilder } from '@angular/forms';
3
- import { ForgotPasswordCredentials } from './forgot-password.model';
3
+ import { ForgotPasswordCredentials, Ii18nForgotPassword } from './forgot-password.model';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ForgotPasswordComponent implements OnInit {
6
6
  private fb;
@@ -20,6 +20,13 @@ export declare class ForgotPasswordComponent implements OnInit {
20
20
  * @memberof ButtonComponent
21
21
  */
22
22
  loading: boolean;
23
+ /**
24
+ *
25
+ * @description Object with the translations for the component.
26
+ * @type {Ii18nForgotPassword}
27
+ * @memberof ForgotPasswordComponent
28
+ */
29
+ i18n: Ii18nForgotPassword;
23
30
  /**
24
31
  * @ignore
25
32
  */
@@ -37,5 +44,5 @@ export declare class ForgotPasswordComponent implements OnInit {
37
44
  backToLogin(): void;
38
45
  checkErrors(field: string): void;
39
46
  static ɵfac: i0.ɵɵFactoryDeclaration<ForgotPasswordComponent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<ForgotPasswordComponent, "ui-forgot-password", never, { "formErrors": "formErrors"; "loading": "loading"; }, { "submitEvent": "submitEvent"; "backToLoginEvent": "backToLoginEvent"; }, never, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<ForgotPasswordComponent, "ui-forgot-password", never, { "formErrors": "formErrors"; "loading": "loading"; "i18n": "i18n"; }, { "submitEvent": "submitEvent"; "backToLoginEvent": "backToLoginEvent"; }, never, never>;
41
48
  }
@@ -5,8 +5,9 @@ import * as i3 from "@angular/forms";
5
5
  import * as i4 from "../field/field.component.module";
6
6
  import * as i5 from "../button/button.component.module";
7
7
  import * as i6 from "@angular/material/icon";
8
+ import * as i7 from "../logo/logo.component.module";
8
9
  export declare class ForgotPasswordComponentModule {
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<ForgotPasswordComponentModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<ForgotPasswordComponentModule, [typeof i1.ForgotPasswordComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.FieldComponentModule, typeof i5.ButtonComponentModule, typeof i6.MatIconModule], [typeof i1.ForgotPasswordComponent]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ForgotPasswordComponentModule, [typeof i1.ForgotPasswordComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.FieldComponentModule, typeof i5.ButtonComponentModule, typeof i6.MatIconModule, typeof i7.LogoComponentModule], [typeof i1.ForgotPasswordComponent]>;
11
12
  static ɵinj: i0.ɵɵInjectorDeclaration<ForgotPasswordComponentModule>;
12
13
  }
@@ -0,0 +1,6 @@
1
+ export declare const FORGOT_PASSWORD_i18n: {
2
+ title: string;
3
+ email_placeholder: string;
4
+ button_label: string;
5
+ back_to_login: string;
6
+ };
@@ -1,3 +1,9 @@
1
1
  export interface ForgotPasswordCredentials {
2
2
  email: string;
3
3
  }
4
+ export interface Ii18nForgotPassword {
5
+ title: string;
6
+ email_placeholder: string;
7
+ button_label: string;
8
+ back_to_login: string;
9
+ }
@@ -0,0 +1,39 @@
1
+ import { LabelSizeEnum } from './label.model';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LabelComponent {
4
+ /**
5
+ * @ignore
6
+ */
7
+ LabelSizeEnum: typeof LabelSizeEnum;
8
+ /**
9
+ * Label background color
10
+ *
11
+ * @type {string}
12
+ * @memberof LabelComponent
13
+ */
14
+ backgroundColor: string;
15
+ /**
16
+ * Status text color
17
+ *
18
+ * @type {string}
19
+ * @memberof LabelComponent
20
+ */
21
+ textColor: string;
22
+ /**
23
+ * Status title
24
+ *
25
+ * @type {string}
26
+ * @memberof LabelComponent
27
+ */
28
+ title: string;
29
+ /**
30
+ * Label size
31
+ *
32
+ * @type {LabelSizeEnum}
33
+ * @memberof LabelComponent
34
+ */
35
+ size: LabelSizeEnum;
36
+ constructor();
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<LabelComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "ui-label", never, { "backgroundColor": "backgroundColor"; "textColor": "textColor"; "title": "title"; "size": "size"; }, {}, never, never>;
39
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./label.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class LabelComponentModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<LabelComponentModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LabelComponentModule, [typeof i1.LabelComponent], [typeof i2.CommonModule], [typeof i1.LabelComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<LabelComponentModule>;
8
+ }
@@ -0,0 +1,16 @@
1
+ export interface ILabelOptions {
2
+ [key: string]: ILabelOptionItem;
3
+ }
4
+ export interface ILabelOptionItem {
5
+ title: string;
6
+ textColor: string;
7
+ backgroundColor: string;
8
+ size: LabelSizeEnum;
9
+ }
10
+ export declare enum LabelSizeEnum {
11
+ SMALL = "small",
12
+ MEDIUM = "medium",
13
+ LARGE = "large",
14
+ BIG = "big",
15
+ HUGE = "huge"
16
+ }
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { FormBuilder } from '@angular/forms';
3
- import { LoginCredentials } from './login.model';
3
+ import { Ii18nLogin, LoginCredentials } from './login.model';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class LoginComponent implements OnInit {
6
6
  private fb;
@@ -21,6 +21,12 @@ export declare class LoginComponent implements OnInit {
21
21
  * @memberof ButtonComponent
22
22
  */
23
23
  loading: boolean;
24
+ /**
25
+ * @description Object with the translations for the component.
26
+ * @type {Ii18n}
27
+ * @memberof LoginComponent
28
+ */
29
+ i18n: Ii18nLogin;
24
30
  /**
25
31
  * @ignore
26
32
  */
@@ -43,5 +49,5 @@ export declare class LoginComponent implements OnInit {
43
49
  createAccount(): void;
44
50
  checkErrors(field: string): void;
45
51
  static ɵfac: i0.ɵɵFactoryDeclaration<LoginComponent, never>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<LoginComponent, "ui-login", never, { "loading": "loading"; }, { "submitEvent": "submitEvent"; "forgotPasswordEvent": "forgotPasswordEvent"; "createAccountEvent": "createAccountEvent"; }, never, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<LoginComponent, "ui-login", never, { "loading": "loading"; "i18n": "i18n"; }, { "submitEvent": "submitEvent"; "forgotPasswordEvent": "forgotPasswordEvent"; "createAccountEvent": "createAccountEvent"; }, never, never>;
47
53
  }
@@ -5,8 +5,9 @@ import * as i3 from "@angular/forms";
5
5
  import * as i4 from "../field/field.component.module";
6
6
  import * as i5 from "../button/button.component.module";
7
7
  import * as i6 from "@angular/material/checkbox";
8
+ import * as i7 from "../logo/logo.component.module";
8
9
  export declare class LoginComponentModule {
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<LoginComponentModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<LoginComponentModule, [typeof i1.LoginComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.FieldComponentModule, typeof i5.ButtonComponentModule, typeof i6.MatCheckboxModule], [typeof i1.LoginComponent]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LoginComponentModule, [typeof i1.LoginComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.FieldComponentModule, typeof i5.ButtonComponentModule, typeof i6.MatCheckboxModule, typeof i7.LogoComponentModule], [typeof i1.LoginComponent]>;
11
12
  static ɵinj: i0.ɵɵInjectorDeclaration<LoginComponentModule>;
12
13
  }
@@ -0,0 +1,9 @@
1
+ export declare const LOGIN_i18n: {
2
+ title: string;
3
+ email_placeholder: string;
4
+ password_placeholder: string;
5
+ remember_me: string;
6
+ forgot_password: string;
7
+ not_have_account: string;
8
+ create_account: string;
9
+ };
@@ -3,3 +3,12 @@ export interface LoginCredentials {
3
3
  password: string;
4
4
  remember_me: boolean;
5
5
  }
6
+ export interface Ii18nLogin {
7
+ title: string;
8
+ email_placeholder: string;
9
+ password_placeholder: string;
10
+ remember_me: string;
11
+ forgot_password: string;
12
+ not_have_account: string;
13
+ create_account: string;
14
+ }
@@ -6,8 +6,9 @@ import * as i4 from "@angular/material/icon";
6
6
  import * as i5 from "@angular/material/button";
7
7
  import * as i6 from "@angular/material/core";
8
8
  import * as i7 from "@angular/material/menu";
9
+ import * as i8 from "../logo/logo.component.module";
9
10
  export declare class NavbarComponentModule {
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<NavbarComponentModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<NavbarComponentModule, [typeof i1.NavbarComponent], [typeof i2.CommonModule, typeof i3.MatToolbarModule, typeof i4.MatIconModule, typeof i5.MatButtonModule, typeof i6.MatRippleModule, typeof i7.MatMenuModule], [typeof i1.NavbarComponent]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NavbarComponentModule, [typeof i1.NavbarComponent], [typeof i2.CommonModule, typeof i3.MatToolbarModule, typeof i4.MatIconModule, typeof i5.MatButtonModule, typeof i6.MatRippleModule, typeof i7.MatMenuModule, typeof i8.LogoComponentModule], [typeof i1.NavbarComponent]>;
12
13
  static ɵinj: i0.ɵɵInjectorDeclaration<NavbarComponentModule>;
13
14
  }
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { IStatusOptionItem } from '../status/status.model';
2
+ import { ILabelOptionItem } from '../label/label.model';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class NavigationComponent {
5
5
  /**
@@ -19,11 +19,11 @@ export declare class NavigationComponent {
19
19
  /**
20
20
  * Navigation status component
21
21
  *
22
- * @type {IStatusOptionItem}
22
+ * @type {ILabelOptionItem}
23
23
  * @memberof NavigationComponent
24
24
  * @ignore
25
25
  */
26
- statusItem: IStatusOptionItem;
26
+ labelItem: ILabelOptionItem;
27
27
  /**
28
28
  * @ignore
29
29
  */
@@ -31,5 +31,5 @@ export declare class NavigationComponent {
31
31
  constructor();
32
32
  goBackClicked(): void;
33
33
  static ɵfac: i0.ɵɵFactoryDeclaration<NavigationComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<NavigationComponent, "ui-navigation", never, { "title": "title"; "subtitle": "subtitle"; "statusItem": "statusItem"; }, { "goBackClickedEvent": "goBackClickedEvent"; }, never, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<NavigationComponent, "ui-navigation", never, { "title": "title"; "subtitle": "subtitle"; "labelItem": "labelItem"; }, { "goBackClickedEvent": "goBackClickedEvent"; }, never, never>;
35
35
  }
@@ -3,9 +3,9 @@ import * as i1 from "./navigation.component";
3
3
  import * as i2 from "@angular/common";
4
4
  import * as i3 from "@angular/material/icon";
5
5
  import * as i4 from "@angular/material/button";
6
- import * as i5 from "../status/status.component.module";
6
+ import * as i5 from "../label/label.component.module";
7
7
  export declare class NavigationComponentModule {
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<NavigationComponentModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<NavigationComponentModule, [typeof i1.NavigationComponent], [typeof i2.CommonModule, typeof i3.MatIconModule, typeof i4.MatButtonModule, typeof i5.StatusComponentModule], [typeof i1.NavigationComponent]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NavigationComponentModule, [typeof i1.NavigationComponent], [typeof i2.CommonModule, typeof i3.MatIconModule, typeof i4.MatButtonModule, typeof i5.LabelComponentModule], [typeof i1.NavigationComponent]>;
10
10
  static ɵinj: i0.ɵɵInjectorDeclaration<NavigationComponentModule>;
11
11
  }
@@ -0,0 +1,13 @@
1
+ import { OnDestroy, ViewContainerRef } from '@angular/core';
2
+ import { IComponentRenderer } from '../table.model';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DynamicComponentDirective implements OnDestroy {
5
+ private vcr;
6
+ private subscription;
7
+ private compRef;
8
+ set dynamicComponent(componentRenderer: IComponentRenderer);
9
+ constructor(vcr: ViewContainerRef);
10
+ ngOnDestroy(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentDirective, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicComponentDirective, "[dynamicComponent]", never, { "dynamicComponent": "dynamicComponent"; }, {}, never>;
13
+ }
@@ -1,9 +1,8 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { MatSort, Sort } from '@angular/material/sort';
3
3
  import { MatTableDataSource } from '@angular/material/table';
4
- import { DataPropertyGetterPipe } from '../../shared/pipes/dataPropertyGetter';
5
- import { IStatusOptions } from '../status/status.model';
6
- import { ColumnType, IDataSource, ITableColumn, ITableDetailColumn } from './table.model';
4
+ import { DataPropertyGetterPipe } from './pipes/data-property-getter';
5
+ import { ColumnTypeEnum, IDataSource, ITableColumn, ITableDetailColumn } from './table.model';
7
6
  import * as i0 from "@angular/core";
8
7
  export declare class TableComponent<T extends IDataSource, TDetail extends IDataSource> implements OnInit {
9
8
  private dataPropertyGetterPipe;
@@ -18,6 +17,7 @@ export declare class TableComponent<T extends IDataSource, TDetail extends IData
18
17
  /**
19
18
  * Data to be rendered
20
19
  *
20
+ * @ignore
21
21
  * @type {IDataSource}
22
22
  * @memberof TableComponent
23
23
  */
@@ -36,12 +36,6 @@ export declare class TableComponent<T extends IDataSource, TDetail extends IData
36
36
  * @memberof TableComponent
37
37
  */
38
38
  tableDetailColumns: ITableDetailColumn<T, TDetail>;
39
- /**
40
- * @type {IStatusOptions}
41
- * @memberof TableComponent
42
- * @ignore
43
- */
44
- statusOptions: IStatusOptions;
45
39
  /**
46
40
  * @ignore
47
41
  */
@@ -77,7 +71,7 @@ export declare class TableComponent<T extends IDataSource, TDetail extends IData
77
71
  /**
78
72
  * @ignore
79
73
  */
80
- DataType: typeof ColumnType;
74
+ DataType: typeof ColumnTypeEnum;
81
75
  ngOnInit(): void;
82
76
  constructor(dataPropertyGetterPipe: DataPropertyGetterPipe);
83
77
  onSort(sortParams: Sort): void;
@@ -93,5 +87,5 @@ export declare class TableComponent<T extends IDataSource, TDetail extends IData
93
87
  */
94
88
  private setTableDetailDataSource;
95
89
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any, any>, never>;
96
- static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any, any>, "ui-table", never, { "tableDetails": "tableDetails"; "tableData": "tableData"; "tableColumns": "tableColumns"; "tableDetailColumns": "tableDetailColumns"; "statusOptions": "statusOptions"; }, { "onSortEvent": "onSortEvent"; "onRowClickEvent": "onRowClickEvent"; "onDetailRowClickEvent": "onDetailRowClickEvent"; }, never, never>;
90
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any, any>, "ui-table", never, { "tableDetails": "tableDetails"; "tableData": "tableData"; "tableColumns": "tableColumns"; "tableDetailColumns": "tableDetailColumns"; }, { "onSortEvent": "onSortEvent"; "onRowClickEvent": "onRowClickEvent"; "onDetailRowClickEvent": "onDetailRowClickEvent"; }, never, never>;
97
91
  }
@@ -1,12 +1,12 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./table.component";
3
- import * as i2 from "../../shared/pipes/dataPropertyGetter";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@angular/material/table";
6
- import * as i5 from "@angular/material/sort";
7
- import * as i6 from "../status/status.component.module";
3
+ import * as i2 from "./pipes/data-property-getter";
4
+ import * as i3 from "./directives/dynamic-component.directive";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@angular/material/table";
7
+ import * as i6 from "@angular/material/sort";
8
8
  export declare class TableComponentModule {
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponentModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<TableComponentModule, [typeof i1.TableComponent, typeof i2.DataPropertyGetterPipe], [typeof i3.CommonModule, typeof i4.MatTableModule, typeof i5.MatSortModule, typeof i6.StatusComponentModule], [typeof i1.TableComponent]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TableComponentModule, [typeof i1.TableComponent, typeof i2.DataPropertyGetterPipe, typeof i3.DynamicComponentDirective], [typeof i4.CommonModule, typeof i5.MatTableModule, typeof i6.MatSortModule], [typeof i1.TableComponent]>;
11
11
  static ɵinj: i0.ɵɵInjectorDeclaration<TableComponentModule>;
12
12
  }
@@ -1,14 +1,22 @@
1
+ import { Type } from '@angular/core';
1
2
  export declare type IDataSource = {
2
3
  [key: string]: any;
3
4
  };
4
5
  export interface ITableColumn<T> {
5
6
  headerName: string;
6
7
  field?: string;
7
- type?: ColumnType;
8
+ type?: ColumnTypeEnum;
8
9
  function?: (v: T) => string;
9
- renderer?: (v: T) => string;
10
+ renderer?: (v: T) => IComponentRenderer | string;
10
11
  sortable?: boolean;
11
- styles?: ColumnStyles;
12
+ styles?: IColumnStyles;
13
+ }
14
+ export interface IComponentRenderer {
15
+ component: Type<any>;
16
+ inputs?: any;
17
+ outputs?: {
18
+ [key: string]: any;
19
+ };
12
20
  }
13
21
  export interface IDetailRowDataParams<T, TDetail> {
14
22
  data: T;
@@ -18,17 +26,18 @@ export interface ITableDetailColumn<T, TDetail> {
18
26
  columnDefs: ITableColumn<TDetail>[];
19
27
  setDetailRowData: (params: IDetailRowDataParams<T, TDetail>) => void;
20
28
  }
21
- export interface ColumnStyles {
22
- alignment?: ColumnAlignment;
29
+ export interface IColumnStyles {
30
+ alignment?: ColumnAlignmentEnum;
23
31
  width?: string;
32
+ 'min-width'?: string;
33
+ padding?: string;
24
34
  }
25
- export declare enum ColumnType {
35
+ export declare enum ColumnTypeEnum {
26
36
  FIELD = "field",
27
- LABEL = "label",
28
37
  FUNCTION = "function",
29
38
  RENDERER = "renderer"
30
39
  }
31
- export declare enum ColumnAlignment {
40
+ export declare enum ColumnAlignmentEnum {
32
41
  LEFT = "left",
33
42
  RIGHT = "right",
34
43
  CENTER = "center"