@testgorilla/tgo-ui 1.4.0 → 1.6.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.
Files changed (91) hide show
  1. package/components/autocomplete/autocomplete.component.d.ts +15 -6
  2. package/components/autocomplete/autocomplete.model.d.ts +7 -2
  3. package/components/avatar/avatar.component.d.ts +9 -10
  4. package/components/avatar/avatar.component.module.d.ts +2 -1
  5. package/components/badge/badge.component.d.ts +1 -1
  6. package/components/banner-action/banner-action.component.d.ts +34 -18
  7. package/components/banner-action/banner-action.component.module.d.ts +2 -1
  8. package/components/banner-action/banner-action.model.d.ts +15 -0
  9. package/components/button/button.component.d.ts +22 -3
  10. package/components/button/button.model.d.ts +2 -0
  11. package/components/deprecated-paginator/deprecated-paginator.component.d.ts +38 -0
  12. package/components/deprecated-paginator/deprecated-paginator.component.module.d.ts +9 -0
  13. package/components/deprecated-table/deprecated-table.component.d.ts +91 -0
  14. package/components/deprecated-table/deprecated-table.component.module.d.ts +14 -0
  15. package/components/deprecated-table/deprecated-table.model.d.ts +45 -0
  16. package/components/{table → deprecated-table}/directives/dynamic-component.directive.d.ts +1 -1
  17. package/components/empty-state/empty-state.component.d.ts +73 -0
  18. package/components/empty-state/empty-state.component.module.d.ts +11 -0
  19. package/components/field/field.component.d.ts +5 -2
  20. package/components/field/field.component.module.d.ts +2 -1
  21. package/components/icon/icon.model.d.ts +1 -1
  22. package/components/paginator/paginator.component.d.ts +13 -14
  23. package/components/radial-progress/radial-progress.component.d.ts +27 -0
  24. package/components/radial-progress/radial-progress.component.module.d.ts +9 -0
  25. package/components/radial-progress/radial-progress.model.d.ts +9 -0
  26. package/components/skeleton/skeleton.component.d.ts +9 -0
  27. package/components/snackbar/snackbar.component.d.ts +1 -2
  28. package/components/stepper/stepper.component.d.ts +2 -4
  29. package/components/stepper/stepper.component.module.d.ts +2 -1
  30. package/components/table/ellipse-text.directive.d.ts +16 -0
  31. package/components/table/table.component.d.ts +29 -78
  32. package/components/table/table.component.module.d.ts +7 -8
  33. package/components/table/table.model.d.ts +26 -40
  34. package/esm2022/components/alert-banner/alert-banner.component.mjs +3 -3
  35. package/esm2022/components/autocomplete/autocomplete.component.mjs +37 -11
  36. package/esm2022/components/autocomplete/autocomplete.model.mjs +9 -3
  37. package/esm2022/components/avatar/avatar.component.mjs +14 -16
  38. package/esm2022/components/avatar/avatar.component.module.mjs +5 -4
  39. package/esm2022/components/badge/badge.component.mjs +3 -3
  40. package/esm2022/components/banner-action/banner-action.component.mjs +35 -15
  41. package/esm2022/components/banner-action/banner-action.component.module.mjs +5 -4
  42. package/esm2022/components/banner-action/banner-action.model.mjs +17 -0
  43. package/esm2022/components/button/button.component.mjs +41 -11
  44. package/esm2022/components/button/button.model.mjs +1 -1
  45. package/esm2022/components/create-account/create-account.component.mjs +1 -1
  46. package/esm2022/components/create-password/create-password.component.mjs +1 -1
  47. package/esm2022/components/deprecated-paginator/deprecated-paginator.component.mjs +55 -0
  48. package/esm2022/components/deprecated-paginator/deprecated-paginator.component.module.mjs +20 -0
  49. package/esm2022/components/deprecated-table/deprecated-table.component.mjs +158 -0
  50. package/esm2022/components/deprecated-table/deprecated-table.component.module.mjs +25 -0
  51. package/esm2022/components/deprecated-table/deprecated-table.model.mjs +13 -0
  52. package/esm2022/components/deprecated-table/directives/dynamic-component.directive.mjs +39 -0
  53. package/esm2022/components/deprecated-table/pipes/data-property-getter.mjs +32 -0
  54. package/esm2022/components/dialog/dialog.component.mjs +3 -3
  55. package/esm2022/components/dropdown/dropdown.component.mjs +3 -3
  56. package/esm2022/components/empty-state/empty-state.component.mjs +109 -0
  57. package/esm2022/components/empty-state/empty-state.component.module.mjs +41 -0
  58. package/esm2022/components/field/field.component.mjs +17 -16
  59. package/esm2022/components/field/field.component.module.mjs +7 -3
  60. package/esm2022/components/file-upload/file-upload.component.mjs +3 -3
  61. package/esm2022/components/forgot-password/forgot-password.component.mjs +1 -1
  62. package/esm2022/components/icon/icon.component.mjs +2 -2
  63. package/esm2022/components/icon/icon.model.mjs +1 -1
  64. package/esm2022/components/login/login.component.mjs +1 -1
  65. package/esm2022/components/paginator/paginator.component.mjs +21 -20
  66. package/esm2022/components/paginator/paginator.component.module.mjs +3 -4
  67. package/esm2022/components/radial-progress/radial-progress.component.mjs +47 -0
  68. package/esm2022/components/radial-progress/radial-progress.component.module.mjs +19 -0
  69. package/esm2022/components/radial-progress/radial-progress.model.mjs +11 -0
  70. package/esm2022/components/skeleton/skeleton.component.mjs +25 -0
  71. package/esm2022/components/snackbar/snackbar.component.mjs +5 -5
  72. package/esm2022/components/stepper/stepper.component.mjs +5 -12
  73. package/esm2022/components/stepper/stepper.component.module.mjs +5 -4
  74. package/esm2022/components/table/ellipse-text.directive.mjs +36 -0
  75. package/esm2022/components/table/table.component.mjs +58 -140
  76. package/esm2022/components/table/table.component.module.mjs +10 -12
  77. package/esm2022/components/table/table.model.mjs +2 -13
  78. package/esm2022/public-api.mjs +25 -9
  79. package/fesm2022/testgorilla-tgo-ui.mjs +633 -137
  80. package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
  81. package/package.json +3 -2
  82. package/public-api.d.ts +17 -6
  83. package/src/assets/i18n/en.json +2 -1
  84. package/src/assets/images/Illustration.png +0 -0
  85. package/src/assets/images/premium.svg +4 -0
  86. package/src/theme/_mat-paginator.scss +59 -0
  87. package/src/theme/_tooltip.scss +3 -65
  88. package/src/theme/theme.scss +2 -0
  89. package/esm2022/components/table/directives/dynamic-component.directive.mjs +0 -39
  90. package/esm2022/components/table/pipes/data-property-getter.mjs +0 -32
  91. /package/components/{table → deprecated-table}/pipes/data-property-getter.d.ts +0 -0
@@ -1,9 +1,8 @@
1
1
  import { AfterViewInit, ElementRef, EventEmitter, OnChanges } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
- import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
4
- import { MatFormField } from '@angular/material/form-field';
3
+ import { MatAutocomplete, MatAutocompleteSelectedEvent, MatAutocompleteTrigger } from '@angular/material/autocomplete';
5
4
  import { ReplaySubject } from 'rxjs';
6
- import { Autocomplete, AutocompleteType } from './autocomplete.model';
5
+ import { Autocomplete, AutocompleteType, DropdownVariation } from './autocomplete.model';
7
6
  import * as i0 from "@angular/core";
8
7
  export declare class AutocompleteComponent implements ControlValueAccessor, OnChanges, AfterViewInit {
9
8
  /**
@@ -66,10 +65,17 @@ export declare class AutocompleteComponent implements ControlValueAccessor, OnCh
66
65
  * @memberof AutocompleteComponent
67
66
  */
68
67
  minCharactersSearch: number;
68
+ /**
69
+ * @property variant
70
+ * @description The variant of Autocomplete
71
+ * @memberof AutocompleteComponent
72
+ */
73
+ variant: DropdownVariation;
69
74
  selectionChange: EventEmitter<any>;
70
75
  searchTextChange: EventEmitter<string>;
71
- matFormFieldElement: MatFormField;
76
+ formFieldElement: ElementRef<HTMLElement>;
72
77
  tagContainer: ElementRef<HTMLElement>;
78
+ autocomplete: MatAutocompleteTrigger;
73
79
  private readonly cdr;
74
80
  protected value: any;
75
81
  protected inputValue: any;
@@ -93,7 +99,7 @@ export declare class AutocompleteComponent implements ControlValueAccessor, OnCh
93
99
  setDisabledState(isDisabled: boolean): void;
94
100
  writeValue(value: any): void;
95
101
  protected onOptionSelected(event: MatAutocompleteSelectedEvent): void;
96
- protected onOptionRemoved(input: any, option: any): void;
102
+ protected onOptionRemoved(option: any): void;
97
103
  protected onInputChange(event: Event): void;
98
104
  protected onClear(): void;
99
105
  protected refillInput(): void;
@@ -102,6 +108,9 @@ export declare class AutocompleteComponent implements ControlValueAccessor, OnCh
102
108
  private onUpdate;
103
109
  private initValue;
104
110
  private addNewValue;
111
+ protected get isDropdown(): boolean;
112
+ protected onChevronClick(autocomplete: MatAutocomplete): void;
113
+ protected get inputWidth(): number;
105
114
  static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponent, never>;
106
- static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "ui-autocomplete", never, { "itemsList": { "alias": "itemsList"; "required": false; }; "suggestionsList": { "alias": "suggestionsList"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "allowAdd": { "alias": "allowAdd"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "label": { "alias": "label"; "required": false; }; "itemValue": { "alias": "itemValue"; "required": false; }; "type": { "alias": "type"; "required": false; }; "minCharactersSearch": { "alias": "minCharactersSearch"; "required": false; }; }, { "selectionChange": "selectionChange"; "searchTextChange": "searchTextChange"; }, never, never, false, never>;
115
+ static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "ui-autocomplete", never, { "itemsList": { "alias": "itemsList"; "required": false; }; "suggestionsList": { "alias": "suggestionsList"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "allowAdd": { "alias": "allowAdd"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "label": { "alias": "label"; "required": false; }; "itemValue": { "alias": "itemValue"; "required": false; }; "type": { "alias": "type"; "required": false; }; "minCharactersSearch": { "alias": "minCharactersSearch"; "required": false; }; "variant": { "alias": "variant"; "required": true; }; }, { "selectionChange": "selectionChange"; "searchTextChange": "searchTextChange"; }, never, never, false, never>;
107
116
  }
@@ -5,9 +5,14 @@ export declare enum Autocomplete {
5
5
  LARGE = "large"
6
6
  }
7
7
  export declare enum Padding {
8
- AUTOCOMPLETE_CONTAINER = 80
8
+ AUTOCOMPLETE_CONTAINER = 30,
9
+ DROPDOWN_CONTAINER = 60
9
10
  }
10
11
  export declare enum Timeout {
11
- VIEW_INITIALIZED_AFTER_ACTION = 20,
12
+ VIEW_INITIALIZED_AFTER_ACTION = 150,
12
13
  VIEW_INITIALIZED_COMPONENT_LOAD = 600
13
14
  }
15
+ export declare enum DropdownVariation {
16
+ AUTOCOMPLETE = "autocomplete",
17
+ DROPDOWN = "dropdown"
18
+ }
@@ -28,21 +28,20 @@ export declare class AvatarComponent {
28
28
  */
29
29
  tooltipText: string;
30
30
  /**
31
- * Input property that makes avatar clickable.
31
+ * Input property that makes avatar editable.
32
32
  * @type {boolean}
33
33
  * @memberof AvatarComponent
34
34
  */
35
- allowClick: boolean;
35
+ allowEdit: boolean;
36
36
  /**
37
- * Event emitted when the avatar is clicked.
38
- * @type {void}
37
+ * Event emitted when the edit button is clicked.
38
+ * @type {Event}
39
39
  * @memberof AvatarComponent
40
40
  */
41
- avatarClick: EventEmitter<void>;
42
- protected iconSize: Record<string, import("@testgorilla/tgo-ui").IconSize>;
43
- protected avatarSize: typeof AvatarSize;
44
- protected onAvatarClick(): void;
45
- get clickAllowance(): string;
41
+ editClick: EventEmitter<Event>;
42
+ protected readonly iconSize: Record<string, import("@testgorilla/tgo-ui").IconSize>;
43
+ protected readonly avatarSize: typeof AvatarSize;
44
+ protected onEditClick(event: Event): void;
46
45
  static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
47
- static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "ui-avatar", never, { "size": { "alias": "size"; "required": false; }; "imageUrl": { "alias": "imageUrl"; "required": false; }; "name": { "alias": "name"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "allowClick": { "alias": "allowClick"; "required": false; }; }, { "avatarClick": "avatarClick"; }, never, never, false, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "ui-avatar", never, { "size": { "alias": "size"; "required": false; }; "imageUrl": { "alias": "imageUrl"; "required": false; }; "name": { "alias": "name"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "allowEdit": { "alias": "allowEdit"; "required": false; }; }, { "editClick": "editClick"; }, never, never, false, never>;
48
47
  }
@@ -4,8 +4,9 @@ import * as i2 from "../../pipes/name-initials.pipe";
4
4
  import * as i3 from "@angular/common";
5
5
  import * as i4 from "../icon/icon.component.module";
6
6
  import * as i5 from "@angular/material/tooltip";
7
+ import * as i6 from "../button/button.component.module";
7
8
  export declare class AvatarComponentModule {
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponentModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<AvatarComponentModule, [typeof i1.AvatarComponent, typeof i2.NameInitialsPipe], [typeof i3.CommonModule, typeof i4.IconComponentModule, typeof i5.MatTooltipModule], [typeof i1.AvatarComponent]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AvatarComponentModule, [typeof i1.AvatarComponent, typeof i2.NameInitialsPipe], [typeof i3.CommonModule, typeof i4.IconComponentModule, typeof i5.MatTooltipModule, typeof i6.ButtonComponentModule], [typeof i1.AvatarComponent]>;
10
11
  static ɵinj: i0.ɵɵInjectorDeclaration<AvatarComponentModule>;
11
12
  }
@@ -21,7 +21,7 @@ export declare class BadgeComponent {
21
21
  */
22
22
  color: BadgeColor;
23
23
  /**
24
- * The variant of the badge. Defaults to 'notification'.
24
+ * The variant of the badge. Defaults to 'primary'.
25
25
  * @type {BadgeVariant}
26
26
  * @memberof BadgeComponent
27
27
  */
@@ -1,52 +1,68 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
- import { IconName } from '../../components/icon/icon.model';
3
- import { AlertBarType } from '../../utils/alert-bar.model';
2
+ import { IconName } from '../icon/icon.model';
3
+ import { BannerActionType, BannerProgress, BannerType } from './banner-action.model';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class BannerActionComponent implements OnInit {
6
6
  /**
7
7
  * BannerAction text
8
- *
8
+ * @type {string}
9
9
  * @memberof BannerActionComponent
10
10
  */
11
11
  message?: string | undefined;
12
12
  /**
13
13
  * BannerAction type
14
- *
15
- * @type {AlertBarType}
14
+ * @type {BannerActionType}
16
15
  * @memberof BannerActionComponent
17
16
  */
18
- bannerActionType: AlertBarType;
17
+ bannerActionType: BannerActionType;
19
18
  /**
20
19
  * BannerAction button label
21
- *
20
+ * @type {string}
22
21
  * @memberof BannerActionComponent
23
22
  */
24
23
  buttonText: string;
25
24
  /**
26
25
  * Static or fixed position
27
- *
28
- * @memberof AlertBannerComponent
26
+ * @type {boolean}
27
+ * @memberof BannerActionComponent
29
28
  */
30
29
  fixed: boolean;
31
30
  /**
32
31
  * Full width for alert banner
33
- *
34
- * @memberof AlertBannerComponent
32
+ * @type {boolean}
33
+ * @memberof BannerActionComponent
35
34
  */
36
35
  fullWidth: boolean;
37
36
  /**
38
37
  * BannerAction button icon
39
- *
38
+ * @type {IconName}
40
39
  * @memberof BannerActionComponent
41
40
  */
42
41
  buttonIcon: IconName;
43
- buttonClickEvent: EventEmitter<Event>;
42
+ /**
43
+ * BannerAction icon
44
+ * @type {IconName}
45
+ * @memberof BannerActionComponent
46
+ */
44
47
  iconName: IconName;
45
- position: string;
46
- cssClass: string;
47
- constructor();
48
- buttonClick(event: Event): void;
48
+ /**
49
+ * BannerAction title
50
+ * @type {string}
51
+ * @memberof BannerActionComponent
52
+ */
53
+ title: string;
54
+ /**
55
+ * Event emitted when the banner button is clicked.
56
+ * @type {EventEmitter<Event>}
57
+ * @memberof BannerActionComponent
58
+ */
59
+ buttonClickEvent: EventEmitter<Event>;
60
+ protected position: string;
61
+ protected cssClass: string;
62
+ protected readonly bannerType: typeof BannerType;
63
+ protected readonly BannerProgress: typeof BannerProgress;
49
64
  ngOnInit(): void;
65
+ protected buttonClick(event: Event): void;
50
66
  static ɵfac: i0.ɵɵFactoryDeclaration<BannerActionComponent, never>;
51
- static ɵcmp: i0.ɵɵComponentDeclaration<BannerActionComponent, "ui-banner-action", never, { "message": { "alias": "message"; "required": false; }; "bannerActionType": { "alias": "bannerActionType"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; }; }, { "buttonClickEvent": "buttonClickEvent"; }, never, never, false, never>;
67
+ static ɵcmp: i0.ɵɵComponentDeclaration<BannerActionComponent, "ui-banner-action", never, { "message": { "alias": "message"; "required": false; }; "bannerActionType": { "alias": "bannerActionType"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, { "buttonClickEvent": "buttonClickEvent"; }, never, never, false, never>;
52
68
  }
@@ -3,8 +3,9 @@ import * as i1 from "./banner-action.component";
3
3
  import * as i2 from "@angular/common";
4
4
  import * as i3 from "../button/button.component.module";
5
5
  import * as i4 from "../icon/icon.component.module";
6
+ import * as i5 from "../radial-progress/radial-progress.component.module";
6
7
  export declare class BannerActionComponentModule {
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<BannerActionComponentModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<BannerActionComponentModule, [typeof i1.BannerActionComponent], [typeof i2.CommonModule, typeof i3.ButtonComponentModule, typeof i4.IconComponentModule], [typeof i1.BannerActionComponent]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BannerActionComponentModule, [typeof i1.BannerActionComponent], [typeof i2.CommonModule, typeof i3.ButtonComponentModule, typeof i4.IconComponentModule, typeof i5.RadialProgressComponentModule], [typeof i1.BannerActionComponent]>;
9
10
  static ɵinj: i0.ɵɵInjectorDeclaration<BannerActionComponentModule>;
10
11
  }
@@ -0,0 +1,15 @@
1
+ export type BannerActionType = 'success' | 'error' | 'info' | 'warning' | 'not-started' | 'incomplete' | 'body-text';
2
+ export declare enum BannerType {
3
+ SUCCESS = "success",
4
+ ERROR = "error",
5
+ INFO = "info",
6
+ WARNING = "warning",
7
+ NOT_STARTED = "not-started",
8
+ INCOMPLETE = "incomplete",
9
+ BODY_TEXT = "body-text"
10
+ }
11
+ export declare enum BannerProgress {
12
+ NOT_STARTED = 0,
13
+ INCOMPLETE = 75,
14
+ TOTAL = 100
15
+ }
@@ -1,6 +1,6 @@
1
1
  import { AfterViewInit, EventEmitter, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { IconName } from '../../components/icon/icon.model';
3
- import { ButtonColor, ButtonIconPosition, ButtonSize, LinkUrlTarget } from './button.model';
3
+ import { ButtonColor, ButtonIconPosition, ButtonSize, ButtonType, IconButtonSize, LinkUrlTarget } from './button.model';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ButtonComponent implements OnInit, AfterViewInit {
6
6
  /**
@@ -16,7 +16,7 @@ export declare class ButtonComponent implements OnInit, AfterViewInit {
16
16
  * @type {ButtonColor}
17
17
  * @memberof ButtonComponent
18
18
  */
19
- type: ButtonColor;
19
+ variant: ButtonColor;
20
20
  /**
21
21
  * Text content to appear on the button
22
22
  *
@@ -87,12 +87,30 @@ export declare class ButtonComponent implements OnInit, AfterViewInit {
87
87
  * @memberof ButtonComponent
88
88
  */
89
89
  tooltip: string;
90
+ /**
91
+ * @property isPremium
92
+ * @description The icon that is displayed for Premium button
93
+ * @type {boolean}
94
+ * @memberof ButtonComponent
95
+ */
96
+ isPremium: boolean;
97
+ /**
98
+ * The type of the button.
99
+ *
100
+ * @type {ButtonType}
101
+ * @memberof ButtonComponent
102
+ * @default 'button'
103
+ */
104
+ type: ButtonType;
90
105
  buttonClickEvent: EventEmitter<Event>;
91
106
  buttonHoverEvent: EventEmitter<Event>;
92
107
  constructor();
93
108
  classCss: string;
94
109
  isButtonLink: boolean;
95
110
  isLabel: boolean;
111
+ iconButtonSize: IconButtonSize;
112
+ allowButtonTypeForPremium: ButtonColor[];
113
+ get typeIncluded(): boolean;
96
114
  ngOnInit(): void;
97
115
  ngOnChanges(changes: SimpleChanges): void;
98
116
  ngAfterViewInit(): void;
@@ -102,6 +120,7 @@ export declare class ButtonComponent implements OnInit, AfterViewInit {
102
120
  setCssClass(): string;
103
121
  showSpinner(): boolean;
104
122
  showButtonLink(): boolean;
123
+ setIconButtonSize(): IconButtonSize;
105
124
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
106
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "ui-button", never, { "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "label": { "alias": "label"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "justIcon": { "alias": "justIcon"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "url": { "alias": "url"; "required": false; }; "urlTarget": { "alias": "urlTarget"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; }, { "buttonClickEvent": "buttonClickEvent"; "buttonHoverEvent": "buttonHoverEvent"; }, never, never, false, never>;
125
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "ui-button", never, { "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "label": { "alias": "label"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "justIcon": { "alias": "justIcon"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "url": { "alias": "url"; "required": false; }; "urlTarget": { "alias": "urlTarget"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "isPremium": { "alias": "isPremium"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "buttonClickEvent": "buttonClickEvent"; "buttonHoverEvent": "buttonHoverEvent"; }, never, never, false, never>;
107
126
  }
@@ -2,3 +2,5 @@ export type ButtonIconPosition = 'left' | 'right';
2
2
  export type ButtonColor = 'primary' | 'secondary' | 'outlined' | 'destructive' | 'tertiary' | 'link' | 'tab' | 'text' | 'menuTrigger' | 'menuCell' | 'icon-button';
3
3
  export type ButtonSize = 'big' | 'small';
4
4
  export type LinkUrlTarget = '' | '_self' | '_blank' | '_parent' | '_top';
5
+ export type IconButtonSize = '32' | '40';
6
+ export type ButtonType = 'button' | 'submit' | 'reset';
@@ -0,0 +1,38 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { PageEvent } from '@angular/material/paginator';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DeprecatedPaginatorComponent implements OnInit {
5
+ /**
6
+ * Paginator size options
7
+ *
8
+ * @type {number[]}
9
+ * @memberof PaginatorComponent
10
+ */
11
+ readonly pageSizeOptions: number[];
12
+ /**
13
+ * Data length
14
+ *
15
+ * @type {number}
16
+ * @memberof PaginatorComponent
17
+ */
18
+ length: number;
19
+ /**
20
+ * Default page size
21
+ *
22
+ * @type {number}
23
+ * @memberof PaginatorComponent
24
+ */
25
+ defaultPageSize: number;
26
+ /**
27
+ * @ignore
28
+ */
29
+ paginatorChangedEvent: EventEmitter<PageEvent>;
30
+ /**
31
+ * @ignore
32
+ */
33
+ ngOnInit(): void;
34
+ constructor();
35
+ paginatorChanged(paginator: PageEvent): void;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<DeprecatedPaginatorComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<DeprecatedPaginatorComponent, "ui-paginator", never, { "length": { "alias": "length"; "required": false; }; "defaultPageSize": { "alias": "defaultPageSize"; "required": false; }; }, { "paginatorChangedEvent": "paginatorChangedEvent"; }, never, never, false, never>;
38
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./deprecated-paginator.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/material/paginator";
5
+ export declare class DeprecatedPaginatorComponentModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DeprecatedPaginatorComponentModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DeprecatedPaginatorComponentModule, [typeof i1.DeprecatedPaginatorComponent], [typeof i2.CommonModule, typeof i3.MatPaginatorModule], [typeof i1.DeprecatedPaginatorComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<DeprecatedPaginatorComponentModule>;
9
+ }
@@ -0,0 +1,91 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { MatSort, Sort } from '@angular/material/sort';
3
+ import { MatTableDataSource } from '@angular/material/table';
4
+ import { DataPropertyGetterPipe } from './pipes/data-property-getter';
5
+ import { ColumnTypeEnum, IDataSource, ITableColumn, ITableDetailColumn } from './deprecated-table.model';
6
+ import * as i0 from "@angular/core";
7
+ export declare class DeprecatedTableComponent<T extends IDataSource, TDetail extends IDataSource> implements OnInit {
8
+ private dataPropertyGetterPipe;
9
+ /**
10
+ * @ignore
11
+ */
12
+ set matSort(matSort: MatSort);
13
+ /**
14
+ * @ignore
15
+ */
16
+ tableDetails: boolean;
17
+ /**
18
+ * Data to be rendered
19
+ *
20
+ * @ignore
21
+ * @type {IDataSource}
22
+ * @memberof TableComponent
23
+ */
24
+ set tableData(data: T[] | null);
25
+ /**
26
+ * Data structure to select which columns should be rendered and their capabilities
27
+ *
28
+ * @type {ITableColumn}
29
+ * @memberof TableComponent
30
+ */
31
+ tableColumns: ITableColumn<T>[];
32
+ /**
33
+ * Data structure to select which columns should be rendered and their capabilities
34
+ *
35
+ * @type {ITableColumn}
36
+ * @memberof TableComponent
37
+ */
38
+ tableDetailColumns: ITableDetailColumn<T, TDetail>;
39
+ /**
40
+ * @ignore
41
+ */
42
+ onSortEvent: EventEmitter<Sort>;
43
+ /**
44
+ * @ignore
45
+ */
46
+ onRowClickEvent: EventEmitter<any>;
47
+ /**
48
+ * @ignore
49
+ */
50
+ onDetailRowClickEvent: EventEmitter<any>;
51
+ /**
52
+ * @ignore
53
+ */
54
+ dataSource: MatTableDataSource<any, import("@angular/material/table").MatTableDataSourcePaginator>;
55
+ /**
56
+ * @ignore
57
+ */
58
+ dataSourceDetail: MatTableDataSource<any, import("@angular/material/table").MatTableDataSourcePaginator>;
59
+ /**
60
+ * @ignore
61
+ */
62
+ elementDetail: any;
63
+ /**
64
+ * @ignore
65
+ */
66
+ columnsToDisplay: string[];
67
+ /**
68
+ * @ignore
69
+ */
70
+ columnsDetailToDisplay: string[];
71
+ /**
72
+ * @ignore
73
+ */
74
+ DataType: typeof ColumnTypeEnum;
75
+ ngOnInit(): void;
76
+ constructor(dataPropertyGetterPipe: DataPropertyGetterPipe);
77
+ onSort(sortParams: Sort): void;
78
+ onRowClick(rowParams: any): void;
79
+ onDetailRowClick(rowParams: any): void;
80
+ toggleRow(element: T): void;
81
+ /**
82
+ * @ignore
83
+ */
84
+ private setTableDataSource;
85
+ /**
86
+ * @ignore
87
+ */
88
+ private setTableDetailDataSource;
89
+ static ɵfac: i0.ɵɵFactoryDeclaration<DeprecatedTableComponent<any, any>, never>;
90
+ static ɵcmp: i0.ɵɵComponentDeclaration<DeprecatedTableComponent<any, any>, "ui-deprecated-table", never, { "tableDetails": { "alias": "tableDetails"; "required": false; }; "tableData": { "alias": "tableData"; "required": false; }; "tableColumns": { "alias": "tableColumns"; "required": false; }; "tableDetailColumns": { "alias": "tableDetailColumns"; "required": false; }; }, { "onSortEvent": "onSortEvent"; "onRowClickEvent": "onRowClickEvent"; "onDetailRowClickEvent": "onDetailRowClickEvent"; }, never, never, false, never>;
91
+ }
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./deprecated-table.component";
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
+ import * as i7 from "@angular/material/icon";
9
+ import * as i8 from "@angular/material/tooltip";
10
+ export declare class DeprecatedTableComponentModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<DeprecatedTableComponentModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DeprecatedTableComponentModule, [typeof i1.DeprecatedTableComponent, typeof i2.DataPropertyGetterPipe, typeof i3.DynamicComponentDirective], [typeof i4.CommonModule, typeof i5.MatTableModule, typeof i6.MatSortModule, typeof i7.MatIconModule, typeof i8.MatTooltipModule], [typeof i1.DeprecatedTableComponent]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<DeprecatedTableComponentModule>;
14
+ }
@@ -0,0 +1,45 @@
1
+ import { Type } from '@angular/core';
2
+ export type IDataSource = {
3
+ [key: string]: any;
4
+ };
5
+ export interface ITableColumn<T> {
6
+ headerName: string;
7
+ headerTooltip?: string;
8
+ field?: string;
9
+ type?: ColumnTypeEnum;
10
+ function?: (v: T) => string;
11
+ renderer?: (v: T) => IComponentRenderer | string;
12
+ sortable?: boolean;
13
+ styles?: IColumnStyles;
14
+ }
15
+ export interface IComponentRenderer {
16
+ component: Type<any>;
17
+ inputs?: any;
18
+ outputs?: {
19
+ [key: string]: any;
20
+ };
21
+ }
22
+ export interface IDetailRowDataParams<T, TDetail> {
23
+ data: T;
24
+ setDetailDataSource(rowData: TDetail[]): void;
25
+ }
26
+ export interface ITableDetailColumn<T, TDetail> {
27
+ columnDefs: ITableColumn<TDetail>[];
28
+ setDetailRowData: (params: IDetailRowDataParams<T, TDetail>) => void;
29
+ }
30
+ export interface IColumnStyles {
31
+ alignment?: ColumnAlignmentEnum;
32
+ width?: string;
33
+ 'min-width'?: string;
34
+ padding?: string;
35
+ }
36
+ export declare enum ColumnTypeEnum {
37
+ FIELD = "field",
38
+ FUNCTION = "function",
39
+ RENDERER = "renderer"
40
+ }
41
+ export declare enum ColumnAlignmentEnum {
42
+ LEFT = "left",
43
+ RIGHT = "right",
44
+ CENTER = "center"
45
+ }
@@ -1,5 +1,5 @@
1
1
  import { OnDestroy, ViewContainerRef } from '@angular/core';
2
- import { IComponentRenderer } from '../table.model';
2
+ import { IComponentRenderer } from '../deprecated-table.model';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class DynamicComponentDirective implements OnDestroy {
5
5
  private vcr;
@@ -0,0 +1,73 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { IconName } from '../icon/icon.model';
3
+ import * as i0 from "@angular/core";
4
+ export declare class EmptyStateComponent {
5
+ /**
6
+ * @description If the default image should be displayed.
7
+ * @type {boolean}
8
+ * @memberof EmptyStateComponent
9
+ */
10
+ showDefaultImg: boolean;
11
+ /**
12
+ * @description The icon to be displayed in the empty state.
13
+ * @type {IconName}
14
+ * @memberof EmptyStateComponent
15
+ */
16
+ icon: IconName;
17
+ /**
18
+ * @description The title of the empty state.
19
+ * @type {string}
20
+ * @memberof EmptyStateComponent
21
+ */
22
+ title: string;
23
+ /**
24
+ * @description The body text or description of the empty state.
25
+ * @type {string}
26
+ * @memberof EmptyStateComponent
27
+ */
28
+ bodyText: string;
29
+ /**
30
+ * @description Displays primary button if passed.
31
+ * @type {string}
32
+ * @memberof EmptyStateComponent
33
+ */
34
+ primaryButtonText: string;
35
+ /**
36
+ * @description Displays secondary button if passed.
37
+ * @type {string}
38
+ * @memberof EmptyStateComponent
39
+ */
40
+ secondaryButtonText: string;
41
+ /**
42
+ * @description Displays tertiary button if passed.
43
+ * @type {string}
44
+ * @memberof EmptyStateComponent
45
+ */
46
+ tertiaryButtonText: string;
47
+ /**
48
+ * Event triggered when the primary button is clicked.
49
+ * @type {Event}
50
+ * @event
51
+ * @memberof TagComponent
52
+ */
53
+ primaryButtonClick: EventEmitter<Event>;
54
+ /**
55
+ * Event triggered when the secondary button is clicked.
56
+ * @type {Event}
57
+ * @event
58
+ * @memberof TagComponent
59
+ */
60
+ secondaryButtonClick: EventEmitter<Event>;
61
+ /**
62
+ * Event triggered when the tertiary button is clicked.
63
+ * @type {Event}
64
+ * @event
65
+ * @memberof TagComponent
66
+ */
67
+ tertiaryButtonClick: EventEmitter<Event>;
68
+ onPrimaryButtonClick(event: Event): void;
69
+ onSecondaryButtonClick(event: Event): void;
70
+ onTertiaryButtonClick(event: Event): void;
71
+ static ɵfac: i0.ɵɵFactoryDeclaration<EmptyStateComponent, never>;
72
+ static ɵcmp: i0.ɵɵComponentDeclaration<EmptyStateComponent, "ui-empty-state", never, { "showDefaultImg": { "alias": "showDefaultImg"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "title": { "alias": "title"; "required": false; }; "bodyText": { "alias": "bodyText"; "required": false; }; "primaryButtonText": { "alias": "primaryButtonText"; "required": false; }; "secondaryButtonText": { "alias": "secondaryButtonText"; "required": false; }; "tertiaryButtonText": { "alias": "tertiaryButtonText"; "required": false; }; }, { "primaryButtonClick": "primaryButtonClick"; "secondaryButtonClick": "secondaryButtonClick"; "tertiaryButtonClick": "tertiaryButtonClick"; }, never, never, false, never>;
73
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./empty-state.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../icon/icon.component.module";
5
+ import * as i4 from "@ngneat/transloco";
6
+ import * as i5 from "../button/button.component.module";
7
+ export declare class EmptyStateComponentModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<EmptyStateComponentModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EmptyStateComponentModule, [typeof i1.EmptyStateComponent], [typeof i2.CommonModule, typeof i3.IconComponentModule, typeof i2.NgOptimizedImage, typeof i4.TranslocoModule, typeof i5.ButtonComponentModule], [typeof i1.EmptyStateComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<EmptyStateComponentModule>;
11
+ }
@@ -1,8 +1,12 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { FieldType } from '../../components/field/field.model';
4
+ import { MatIconRegistry } from '@angular/material/icon';
5
+ import { DomSanitizer } from '@angular/platform-browser';
4
6
  import * as i0 from "@angular/core";
5
7
  export declare class FieldComponent implements OnInit, ControlValueAccessor {
8
+ private matIconRegistry;
9
+ private domSanitizer;
6
10
  class: string;
7
11
  /**
8
12
  * Form field label
@@ -97,8 +101,7 @@ export declare class FieldComponent implements OnInit, ControlValueAccessor {
97
101
  * @ignore
98
102
  */
99
103
  onTouch: () => void;
100
- constructor();
101
- showSearch: boolean;
104
+ constructor(matIconRegistry: MatIconRegistry, domSanitizer: DomSanitizer);
102
105
  showClose: boolean;
103
106
  showPassword: boolean;
104
107
  currentType: string;
@@ -7,8 +7,9 @@ import * as i5 from "@angular/material/input";
7
7
  import * as i6 from "../icon/icon.component.module";
8
8
  import * as i7 from "@angular/forms";
9
9
  import * as i8 from "../button/button.component.module";
10
+ import * as i9 from "@angular/material/icon";
10
11
  export declare class FieldComponentModule {
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldComponentModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<FieldComponentModule, [typeof i1.FieldComponent, typeof i2.DigitsOnlyDirective], [typeof i3.CommonModule, typeof i4.MatFormFieldModule, typeof i5.MatInputModule, typeof i6.IconComponentModule, typeof i7.FormsModule, typeof i7.ReactiveFormsModule, typeof i8.ButtonComponentModule], [typeof i1.FieldComponent]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FieldComponentModule, [typeof i1.FieldComponent, typeof i2.DigitsOnlyDirective], [typeof i3.CommonModule, typeof i4.MatFormFieldModule, typeof i5.MatInputModule, typeof i6.IconComponentModule, typeof i7.FormsModule, typeof i7.ReactiveFormsModule, typeof i8.ButtonComponentModule, typeof i9.MatIconModule], [typeof i1.FieldComponent]>;
13
14
  static ɵinj: i0.ɵɵInjectorDeclaration<FieldComponentModule>;
14
15
  }