@testgorilla/tgo-ui 1.10.3 → 1.11.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 (57) hide show
  1. package/components/autocomplete/autocomplete.component.d.ts +1 -3
  2. package/components/autocomplete/autocomplete.model.d.ts +1 -1
  3. package/components/confirm-dialog/confirm-dialog.component.d.ts +1 -1
  4. package/components/confirm-dialog/confirm-dialog.model.d.ts +1 -1
  5. package/components/datepicker/datepicker.component.d.ts +17 -5
  6. package/components/dialog/dialog.component.d.ts +1 -3
  7. package/components/dropdown/dropdown.component.d.ts +1 -3
  8. package/components/empty-state/empty-state.component.d.ts +1 -3
  9. package/components/field/field.component.d.ts +9 -4
  10. package/components/file-upload/file-upload.component.d.ts +1 -3
  11. package/components/navbar/navbar.component.d.ts +1 -3
  12. package/components/page-header/page-header.component.d.ts +1 -3
  13. package/components/side-sheet/side-sheet.component.d.ts +1 -3
  14. package/components/slider/slider.component.d.ts +1 -3
  15. package/components/snackbar/snackbar.component.d.ts +1 -2
  16. package/components/stepper/stepper.component.d.ts +1 -3
  17. package/components/table/table.component.d.ts +10 -5
  18. package/components/table/table.component.module.d.ts +10 -7
  19. package/components/table/table.model.d.ts +10 -0
  20. package/components/toggle/toggle.component.d.ts +26 -1
  21. package/components/toggle/toggle.component.module.d.ts +3 -1
  22. package/{components/table → directives}/ellipse-text.directive.d.ts +1 -1
  23. package/esm2022/assets/i18n/en.json +0 -71
  24. package/esm2022/components/autocomplete/autocomplete.component.mjs +17 -13
  25. package/esm2022/components/autocomplete/autocomplete.model.mjs +2 -2
  26. package/esm2022/components/checkbox/checkbox.component.mjs +2 -2
  27. package/esm2022/components/confirm-dialog/confirm-dialog.model.mjs +1 -1
  28. package/esm2022/components/datepicker/datepicker.component.mjs +29 -14
  29. package/esm2022/components/dialog/dialog.component.mjs +10 -13
  30. package/esm2022/components/dropdown/dropdown.component.mjs +10 -13
  31. package/esm2022/components/empty-state/empty-state.component.mjs +9 -12
  32. package/esm2022/components/field/field.component.mjs +20 -14
  33. package/esm2022/components/file-upload/file-upload.component.mjs +10 -13
  34. package/esm2022/components/navbar/navbar.component.mjs +10 -13
  35. package/esm2022/components/page-header/page-header.component.mjs +10 -13
  36. package/esm2022/components/side-sheet/side-sheet.component.mjs +10 -13
  37. package/esm2022/components/slider/slider.component.mjs +10 -13
  38. package/esm2022/components/snackbar/snackbar.component.mjs +1 -1
  39. package/esm2022/components/stepper/stepper.component.mjs +10 -13
  40. package/esm2022/components/table/table.component.mjs +26 -4
  41. package/esm2022/components/table/table.component.module.mjs +34 -6
  42. package/esm2022/components/table/table.model.mjs +1 -1
  43. package/esm2022/components/toggle/toggle.component.mjs +36 -5
  44. package/esm2022/components/toggle/toggle.component.module.mjs +6 -4
  45. package/esm2022/directives/ellipse-text.directive.mjs +37 -0
  46. package/esm2022/pipes/ui-translate.pipe.mjs +2 -2
  47. package/esm2022/public-api.mjs +3 -1
  48. package/esm2022/utils/localization/language.model.mjs +16 -0
  49. package/esm2022/utils/localization/language.service.mjs +8 -53
  50. package/fesm2022/testgorilla-tgo-ui.mjs +294 -326
  51. package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
  52. package/package.json +1 -4
  53. package/public-api.d.ts +1 -0
  54. package/src/assets/i18n/en.json +0 -71
  55. package/utils/localization/language.model.d.ts +14 -0
  56. package/utils/localization/language.service.d.ts +1 -31
  57. package/esm2022/components/table/ellipse-text.directive.mjs +0 -36
@@ -3,7 +3,6 @@ import { ControlValueAccessor } from '@angular/forms';
3
3
  import { MatAutocomplete, MatAutocompleteSelectedEvent, MatAutocompleteTrigger } from '@angular/material/autocomplete';
4
4
  import { ReplaySubject } from 'rxjs';
5
5
  import { Autocomplete, AutocompleteType, DropdownVariation } from './autocomplete.model';
6
- import { Language } from '../../utils/localization/language.service';
7
6
  import * as i0 from "@angular/core";
8
7
  export declare class AutocompleteComponent implements ControlValueAccessor, OnChanges, AfterViewInit {
9
8
  private readonly cdr;
@@ -79,13 +78,12 @@ export declare class AutocompleteComponent implements ControlValueAccessor, OnCh
79
78
  * @type {Language}
80
79
  * @memberof AutocompleteComponent
81
80
  */
82
- set language(value: Language);
81
+ language: import("@testgorilla/tgo-ui").Language;
83
82
  selectionChange: EventEmitter<any>;
84
83
  searchTextChange: EventEmitter<string>;
85
84
  formFieldElement: ElementRef<HTMLElement>;
86
85
  tagContainer: ElementRef<HTMLElement>;
87
86
  autocomplete: MatAutocompleteTrigger;
88
- protected lang: Language;
89
87
  protected value: any;
90
88
  protected inputValue: any;
91
89
  protected isInputFocus: boolean;
@@ -5,7 +5,7 @@ export declare enum Autocomplete {
5
5
  LARGE = "large"
6
6
  }
7
7
  export declare enum Padding {
8
- AUTOCOMPLETE_CONTAINER = 30,
8
+ AUTOCOMPLETE_CONTAINER = 40,
9
9
  DROPDOWN_CONTAINER = 60
10
10
  }
11
11
  export declare enum Timeout {
@@ -8,7 +8,7 @@ export declare class ConfirmDialogComponent {
8
8
  confirmButtonText: string | undefined;
9
9
  cancelButtonText: string | undefined;
10
10
  title: string | undefined;
11
- lang: import("../../utils/localization/language.service").Language;
11
+ lang: import("@testgorilla/tgo-ui").Language;
12
12
  constructor(dialogRef: MatDialogRef<ConfirmDialogComponent>, data: ConfirmDialogData);
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
14
14
  static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogComponent, "ui-confirm-dialog", never, {}, {}, never, never, false, never>;
@@ -1,4 +1,4 @@
1
- import { Language } from '../../utils/localization/language.service';
1
+ import { Language } from '../../utils/localization/language.model';
2
2
  export interface ConfirmDialogData {
3
3
  message: string;
4
4
  confirmButtonText?: string;
@@ -1,6 +1,5 @@
1
1
  import { EventEmitter, OnChanges } from '@angular/core';
2
2
  import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
3
- import { Language } from '../../utils/localization/language.service';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class DatepickerComponent implements OnChanges, ControlValueAccessor {
6
5
  class: string;
@@ -86,10 +85,23 @@ export declare class DatepickerComponent implements OnChanges, ControlValueAcces
86
85
  * The language to be used
87
86
  *
88
87
  * @type {Language}
89
- * @memberof SnackbarComponent
88
+ * @memberof DatepickerComponent
89
+ */
90
+ language: import("@testgorilla/tgo-ui").Language;
91
+ /**
92
+ * Show reserved content below form field
93
+ *
94
+ * @type {boolean}
95
+ * @memberof DatepickerComponent
96
+ */
97
+ showBottomContent: boolean;
98
+ /**
99
+ * Set full width DatepickerComponent
100
+ *
101
+ * @type {boolean}
102
+ * @memberof DatepickerComponent
90
103
  */
91
- set language(value: Language);
92
- protected lang: Language;
104
+ fullWidth: boolean;
93
105
  /**
94
106
  * @ignore
95
107
  */
@@ -123,5 +135,5 @@ export declare class DatepickerComponent implements OnChanges, ControlValueAcces
123
135
  private setRange;
124
136
  private getRange;
125
137
  static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, never>;
126
- static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "ui-datepicker", never, { "label": { "alias": "label"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "value": { "alias": "value"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "isRange": { "alias": "isRange"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "hintMessage": { "alias": "hintMessage"; "required": false; }; "updateOnBlur": { "alias": "updateOnBlur"; "required": false; }; "language": { "alias": "language"; "required": false; }; }, { "changed": "changed"; }, never, never, false, never>;
138
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "ui-datepicker", never, { "label": { "alias": "label"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "value": { "alias": "value"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "isRange": { "alias": "isRange"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "hintMessage": { "alias": "hintMessage"; "required": false; }; "updateOnBlur": { "alias": "updateOnBlur"; "required": false; }; "language": { "alias": "language"; "required": false; }; "showBottomContent": { "alias": "showBottomContent"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; }, { "changed": "changed"; }, never, never, false, never>;
127
139
  }
@@ -1,7 +1,6 @@
1
1
  import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
3
  import { ButtonColor } from '../button/button.model';
4
- import { Language } from '../../utils/localization/language.service';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class DialogComponent implements OnInit, OnChanges {
7
6
  dialogRef: MatDialogRef<DialogComponent>;
@@ -54,7 +53,7 @@ export declare class DialogComponent implements OnInit, OnChanges {
54
53
  * @type {Language}
55
54
  * @memberof DialogComponent
56
55
  */
57
- set language(value: Language);
56
+ language: import("@testgorilla/tgo-ui").Language;
58
57
  /**
59
58
  * Color of the dialog.
60
59
  * Defaults to Test Gorilla primary color.
@@ -67,7 +66,6 @@ export declare class DialogComponent implements OnInit, OnChanges {
67
66
  secondaryButtonClickEvent: EventEmitter<Event>;
68
67
  primaryButtonClickEvent: EventEmitter<Event>;
69
68
  disableButtons: boolean;
70
- protected lang: Language;
71
69
  protected readonly translationContext = "DIALOG.";
72
70
  ngOnInit(): void;
73
71
  ngOnChanges(changes: SimpleChanges): void;
@@ -2,7 +2,6 @@ import { OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { FloatLabelType } from '@angular/material/form-field';
4
4
  import { OptionType } from './dropdown.model';
5
- import { Language } from '../../utils/localization/language.service';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class DropdownComponent implements OnInit, ControlValueAccessor {
8
7
  class: string;
@@ -93,8 +92,7 @@ export declare class DropdownComponent implements OnInit, ControlValueAccessor {
93
92
  * @type {Language}
94
93
  * @memberof DropdownComponent
95
94
  */
96
- set language(value: Language);
97
- protected lang: Language;
95
+ language: import("@testgorilla/tgo-ui").Language;
98
96
  /**
99
97
  * @ignore
100
98
  */
@@ -1,6 +1,5 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { IconName } from '../icon/icon.model';
3
- import { Language } from '../../utils/localization/language.service';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class EmptyStateComponent {
6
5
  /**
@@ -50,7 +49,7 @@ export declare class EmptyStateComponent {
50
49
  * @type {Language}
51
50
  * @memberof EmptyStateComponent
52
51
  */
53
- set language(value: Language);
52
+ language: import("@testgorilla/tgo-ui").Language;
54
53
  /**
55
54
  * Event triggered when the primary button is clicked.
56
55
  * @type {Event}
@@ -72,7 +71,6 @@ export declare class EmptyStateComponent {
72
71
  * @memberof TagComponent
73
72
  */
74
73
  tertiaryButtonClick: EventEmitter<Event>;
75
- protected lang: Language;
76
74
  onPrimaryButtonClick(event: Event): void;
77
75
  onSecondaryButtonClick(event: Event): void;
78
76
  onTertiaryButtonClick(event: Event): void;
@@ -3,7 +3,6 @@ import { ControlValueAccessor } from '@angular/forms';
3
3
  import { FieldType } from '../../components/field/field.model';
4
4
  import { MatIconRegistry } from '@angular/material/icon';
5
5
  import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
6
- import { Language } from '../../utils/localization/language.service';
7
6
  import * as i0 from "@angular/core";
8
7
  export declare class FieldComponent implements OnInit, ControlValueAccessor {
9
8
  private matIconRegistry;
@@ -100,8 +99,14 @@ export declare class FieldComponent implements OnInit, ControlValueAccessor {
100
99
  * @type {Language}
101
100
  * @memberof FieldComponent
102
101
  */
103
- set language(value: Language);
104
- protected lang: Language;
102
+ language: import("@testgorilla/tgo-ui").Language;
103
+ /**
104
+ * Show reserved content below form field
105
+ * @property showBottomContent
106
+ * @type {boolean}
107
+ * @memberof FieldComponent
108
+ */
109
+ showBottomContent: boolean;
105
110
  protected readonly translationContext = "FIELD.";
106
111
  /**
107
112
  * @ignore
@@ -129,5 +134,5 @@ export declare class FieldComponent implements OnInit, ControlValueAccessor {
129
134
  registerOnTouched(fn: any): void;
130
135
  setDisabledState(isDisabled: boolean): void;
131
136
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldComponent, never>;
132
- static ɵcmp: i0.ɵɵComponentDeclaration<FieldComponent, "ui-field", never, { "label": { "alias": "label"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "value": { "alias": "value"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "hintMessage": { "alias": "hintMessage"; "required": false; }; "type": { "alias": "type"; "required": false; }; "updateOnBlur": { "alias": "updateOnBlur"; "required": false; }; "allowOnlyDigits": { "alias": "allowOnlyDigits"; "required": false; }; "language": { "alias": "language"; "required": false; }; }, {}, never, never, false, never>;
137
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldComponent, "ui-field", never, { "label": { "alias": "label"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "value": { "alias": "value"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "hintMessage": { "alias": "hintMessage"; "required": false; }; "type": { "alias": "type"; "required": false; }; "updateOnBlur": { "alias": "updateOnBlur"; "required": false; }; "allowOnlyDigits": { "alias": "allowOnlyDigits"; "required": false; }; "language": { "alias": "language"; "required": false; }; "showBottomContent": { "alias": "showBottomContent"; "required": false; }; }, {}, never, never, false, never>;
133
138
  }
@@ -1,6 +1,5 @@
1
1
  import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
- import { Language } from '../../utils/localization/language.service';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class FileUploadComponent implements OnInit, OnChanges, ControlValueAccessor {
6
5
  class: string;
@@ -51,7 +50,7 @@ export declare class FileUploadComponent implements OnInit, OnChanges, ControlVa
51
50
  * @type {Language}
52
51
  * @memberof FileUploadComponent
53
52
  */
54
- set language(value: Language);
53
+ language: import("@testgorilla/tgo-ui").Language;
55
54
  /**
56
55
  * Color of the file upload.
57
56
  * Defaults to Test Gorilla primary color.
@@ -61,7 +60,6 @@ export declare class FileUploadComponent implements OnInit, OnChanges, ControlVa
61
60
  */
62
61
  companyColor: string;
63
62
  OnDrop: EventEmitter<File>;
64
- protected lang: Language;
65
63
  protected readonly translationContext = "FILE_UPLOAD.";
66
64
  /**
67
65
  * @ignore
@@ -1,6 +1,5 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { IRoute, MenuItem } from './navbar.model';
3
- import { Language } from '../../utils/localization/language.service';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class NavbarComponent {
6
5
  /**
@@ -38,7 +37,7 @@ export declare class NavbarComponent {
38
37
  * @type {Language}
39
38
  * @memberof NavbarComponent
40
39
  */
41
- set language(value: Language);
40
+ language: import("@testgorilla/tgo-ui").Language;
42
41
  /**
43
42
  * @ignore
44
43
  */
@@ -51,7 +50,6 @@ export declare class NavbarComponent {
51
50
  * @ignore
52
51
  */
53
52
  logoutEvent: EventEmitter<void>;
54
- protected lang: Language;
55
53
  protected readonly translationContext = "NAVBAR.";
56
54
  navigate(routeId: string): void;
57
55
  logout(): void;
@@ -1,6 +1,5 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
- import { Language } from '../../utils/localization/language.service';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class PageHeaderComponent {
6
5
  protected readonly isMobile$: Observable<boolean>;
@@ -16,7 +15,7 @@ export declare class PageHeaderComponent {
16
15
  * @type {Language}
17
16
  * @memberof PageHeaderComponent
18
17
  */
19
- set language(value: Language);
18
+ language: import("@testgorilla/tgo-ui").Language;
20
19
  /**
21
20
  * Back button tooltip for mobile variation
22
21
  * @property tooltip
@@ -28,7 +27,6 @@ export declare class PageHeaderComponent {
28
27
  * @memberof PageHeaderComponent
29
28
  */
30
29
  back: EventEmitter<void>;
31
- protected lang: Language;
32
30
  constructor(isMobile$: Observable<boolean>);
33
31
  protected onBack(): void;
34
32
  static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderComponent, never>;
@@ -2,7 +2,6 @@ import { DestroyRef, OnInit, ViewContainerRef } from '@angular/core';
2
2
  import { SideSheetService } from './side-sheet.service';
3
3
  import { SideSheetConfig, SideSheetPosition } from './side-sheet.model';
4
4
  import { MatDrawer } from '@angular/material/sidenav';
5
- import { Language } from '../../utils/localization/language.service';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class SideSheetComponent implements OnInit {
8
7
  private sideSheetService;
@@ -20,10 +19,9 @@ export declare class SideSheetComponent implements OnInit {
20
19
  * @type {Language}
21
20
  * @memberof SideSheetComponent
22
21
  */
23
- set language(value: Language);
22
+ language: import("@testgorilla/tgo-ui").Language;
24
23
  drawer: MatDrawer;
25
24
  container: ViewContainerRef;
26
- protected lang: Language;
27
25
  protected title: string;
28
26
  protected showBackButton: boolean;
29
27
  protected showTitleTooltip: boolean;
@@ -1,6 +1,5 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { SliderValue } from './slider.model';
3
- import { Language } from '../../utils/localization/language.service';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class SliderComponent {
6
5
  /**
@@ -72,10 +71,9 @@ export declare class SliderComponent {
72
71
  * @property language
73
72
  * @type {Language}
74
73
  */
75
- set language(value: Language);
74
+ language: import("@testgorilla/tgo-ui").Language;
76
75
  sliderValueChange: EventEmitter<SliderValue>;
77
76
  private value;
78
- protected lang: Language;
79
77
  protected translationContext: string;
80
78
  protected touchedControlName: string;
81
79
  onChange: (_: any) => void;
@@ -2,7 +2,6 @@ import { OnInit } from '@angular/core';
2
2
  import { MatSnackBarRef } from '@angular/material/snack-bar';
3
3
  import { IconName } from '../../components/icon/icon.model';
4
4
  import { SnackbarType } from '../../components/snackbar/snackbar.model';
5
- import { Language } from '../../utils/localization/language.service';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class SnackbarComponent implements OnInit {
8
7
  private data;
@@ -44,7 +43,7 @@ export declare class SnackbarComponent implements OnInit {
44
43
  * @type {string}
45
44
  * @memberof SnackbarComponent
46
45
  */
47
- language: Language;
46
+ language: import("@testgorilla/tgo-ui").Language;
48
47
  iconName: IconName;
49
48
  showSnackbar: boolean;
50
49
  milisenconds: number;
@@ -1,7 +1,6 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { Step } from './stepper.model';
3
3
  import { Observable } from 'rxjs';
4
- import { Language } from '../../utils/localization/language.service';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class StepperComponent {
7
6
  protected readonly isMobile$: Observable<boolean>;
@@ -32,13 +31,12 @@ export declare class StepperComponent {
32
31
  * @type {Language}
33
32
  * @memberof StepperComponent
34
33
  */
35
- set language(value: Language);
34
+ language: import("@testgorilla/tgo-ui").Language;
36
35
  selectionChange: EventEmitter<{
37
36
  selectedIndex: number;
38
37
  previousIndex: number;
39
38
  step: Step;
40
39
  }>;
41
- protected lang: Language;
42
40
  private isOpened;
43
41
  protected itemSteps: Step[];
44
42
  protected progressValue: number;
@@ -1,8 +1,8 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { ColumnEllipse, TableConfig, TableConfigWithPagination, TableData } from './table.model';
1
+ import { EventEmitter, OnChanges } from '@angular/core';
2
+ import { ColumnEllipse, Sort, TableConfig, TableConfigWithPagination, TableData } from './table.model';
3
3
  import { PageEvent } from '@angular/material/paginator';
4
4
  import * as i0 from "@angular/core";
5
- export declare class TableComponent {
5
+ export declare class TableComponent implements OnChanges {
6
6
  /**
7
7
  * Table configuration
8
8
  *
@@ -16,7 +16,7 @@ export declare class TableComponent {
16
16
  * @type {TableData}
17
17
  * @memberof TableComponent
18
18
  */
19
- data: TableData;
19
+ set data(tableData: TableData);
20
20
  /**
21
21
  * Input property indicating whether the table is in a loading state.
22
22
  *
@@ -26,6 +26,9 @@ export declare class TableComponent {
26
26
  */
27
27
  loading: boolean;
28
28
  paginatorChange: EventEmitter<PageEvent>;
29
+ sortChange: EventEmitter<Sort>;
30
+ protected tableData: TableData;
31
+ protected sourceData: TableData;
29
32
  protected columnsTooltipState: ColumnEllipse[];
30
33
  protected tableConfig: TableConfigWithPagination;
31
34
  protected displayedColumns: string[];
@@ -34,9 +37,11 @@ export declare class TableComponent {
34
37
  'border-radius': string;
35
38
  height: string;
36
39
  };
40
+ ngOnChanges(): void;
37
41
  private defaultPaginationConfig;
38
42
  protected onPaginatorChange(event: PageEvent): void;
39
43
  protected onChangeColumnSize(columnIndex: number, showTooltip: boolean): void;
44
+ protected onSortChange(sortState: Sort): void;
40
45
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "ui-table", never, { "config": { "alias": "config"; "required": true; }; "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "paginatorChange": "paginatorChange"; }, never, never, false, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "ui-table", never, { "config": { "alias": "config"; "required": true; }; "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "paginatorChange": "paginatorChange"; "sortChange": "sortChange"; }, never, never, false, never>;
42
47
  }
@@ -1,13 +1,16 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./table.component";
3
- import * as i2 from "./ellipse-text.directive";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@angular/material/table";
6
- import * as i5 from "@angular/material/tooltip";
7
- import * as i6 from "../skeleton/skeleton.component";
8
- import * as i7 from "../paginator/paginator.component.module";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/material/table";
5
+ import * as i4 from "@angular/material/tooltip";
6
+ import * as i5 from "../skeleton/skeleton.component";
7
+ import * as i6 from "../paginator/paginator.component.module";
8
+ import * as i7 from "../button/button.component.module";
9
+ import * as i8 from "@angular/material/sort";
10
+ import * as i9 from "../icon/icon.component.module";
11
+ import * as i10 from "../../directives/ellipse-text.directive";
9
12
  export declare class TableComponentModule {
10
13
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponentModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<TableComponentModule, [typeof i1.TableComponent, typeof i2.EllipseTextDirective], [typeof i3.CommonModule, typeof i4.MatTableModule, typeof i5.MatTooltipModule, typeof i6.SkeletonComponent, typeof i7.PaginatorComponentModule], [typeof i1.TableComponent]>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TableComponentModule, [typeof i1.TableComponent], [typeof i2.CommonModule, typeof i3.MatTableModule, typeof i4.MatTooltipModule, typeof i5.SkeletonComponent, typeof i6.PaginatorComponentModule, typeof i7.ButtonComponentModule, typeof i8.MatSortModule, typeof i9.IconComponentModule, typeof i10.EllipseTextDirective], [typeof i1.TableComponent]>;
12
15
  static ɵinj: i0.ɵɵInjectorDeclaration<TableComponentModule>;
13
16
  }
@@ -1,3 +1,4 @@
1
+ import { TemplateRef } from '@angular/core';
1
2
  export interface TableConfig {
2
3
  columns: TableColumn[];
3
4
  pagination?: Pagination;
@@ -5,6 +6,7 @@ export interface TableConfig {
5
6
  width?: number;
6
7
  stickyFirstColumn?: boolean;
7
8
  stickyLastColumn?: boolean;
9
+ sort?: Sort;
8
10
  }
9
11
  export interface TableConfigWithPagination extends TableConfig {
10
12
  pagination: Pagination;
@@ -17,6 +19,9 @@ export interface TableColumn {
17
19
  allowMultiline?: boolean;
18
20
  bold?: boolean;
19
21
  showTooltip?: boolean;
22
+ allowSort?: boolean;
23
+ headerCellTemplate?: TemplateRef<any>;
24
+ rowCellTemplate?: TemplateRef<any>;
20
25
  }
21
26
  export interface Pagination {
22
27
  itemsPerPageOptions: number[];
@@ -29,3 +34,8 @@ export interface ColumnEllipse {
29
34
  index: number;
30
35
  showTooltip: boolean;
31
36
  }
37
+ export interface Sort {
38
+ active: string;
39
+ direction: SortDirection;
40
+ }
41
+ export type SortDirection = 'asc' | 'desc' | '';
@@ -19,6 +19,29 @@ export declare class ToggleComponent implements ControlValueAccessor {
19
19
  * @memberof ToggleComponent
20
20
  */
21
21
  disabled: boolean;
22
+ /**
23
+ * Toggle label
24
+ *
25
+ * @type {string}
26
+ * @default ''
27
+ * @memberof ToggleComponent
28
+ */
29
+ label: string;
30
+ /**
31
+ * Message
32
+ *
33
+ * @type {string}
34
+ * @default ''
35
+ * @memberof ToggleComponent
36
+ */
37
+ message: string;
38
+ /**
39
+ * Max width of the toggle container
40
+ *
41
+ * @type {number}
42
+ * @memberof ToggleComponent
43
+ */
44
+ maxWidth: number | undefined;
22
45
  /**
23
46
  * The `toggle` event is triggered when the state of the toggle switch changes. It returns the new state.
24
47
  *
@@ -26,13 +49,15 @@ export declare class ToggleComponent implements ControlValueAccessor {
26
49
  * @memberof ToggleComponent
27
50
  */
28
51
  toggle: EventEmitter<boolean>;
52
+ protected showLabelTooltip: boolean;
29
53
  onToggle(): void;
30
54
  writeValue(state: boolean): void;
31
55
  registerOnChange(fn: RegisterFn): void;
32
56
  registerOnTouched(fn: RegisterFn): void;
33
57
  setDisabledState(isDisabled: boolean): void;
58
+ changeTextState(state: boolean): void;
34
59
  private onChange;
35
60
  private onTouched;
36
61
  static ɵfac: i0.ɵɵFactoryDeclaration<ToggleComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "ui-toggle", never, { "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "toggle": "toggle"; }, never, never, false, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "ui-toggle", never, { "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "label": { "alias": "label"; "required": false; }; "message": { "alias": "message"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; }, { "toggle": "toggle"; }, never, never, false, never>;
38
63
  }
@@ -1,8 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./toggle.component";
3
3
  import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/material/tooltip";
5
+ import * as i4 from "../../directives/ellipse-text.directive";
4
6
  export declare class ToggleComponentModule {
5
7
  static ɵfac: i0.ɵɵFactoryDeclaration<ToggleComponentModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<ToggleComponentModule, [typeof i1.ToggleComponent], [typeof i2.CommonModule], never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ToggleComponentModule, [typeof i1.ToggleComponent], [typeof i2.CommonModule, typeof i3.MatTooltipModule, typeof i4.EllipseTextDirective], never>;
7
9
  static ɵinj: i0.ɵɵInjectorDeclaration<ToggleComponentModule>;
8
10
  }
@@ -12,5 +12,5 @@ export declare class EllipseTextDirective implements OnInit {
12
12
  constructor(el: ElementRef);
13
13
  ngOnInit(): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<EllipseTextDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<EllipseTextDirective, "[uiEllipseText]", never, {}, { "onChangeTextState": "onChangeTextState"; }, never, never, false, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<EllipseTextDirective, "[uiEllipseText]", never, {}, { "onChangeTextState": "onChangeTextState"; }, never, never, true, never>;
16
16
  }
@@ -20,36 +20,7 @@
20
20
  "START_DATE": "Start date",
21
21
  "END_DATE": "End date"
22
22
  },
23
- "PLURALS": {
24
- "EMAILS": "{numEmails, select, 1 {email} other {emails}}",
25
- "USERS": "{numUsers, select, 1 {User} other {Users}}",
26
- "TESTS": "{numberTests, select, 1 {test} other {tests}}",
27
- "QUESTIONS": "{numberQuestions, select, 1 {question} other {questions}}",
28
- "ITEMS": "{numItems, select, 1 {item} other {items}}",
29
- "DATE_TIME": {
30
- "SECONDS": "{seconds, select, 1 {second} other {seconds}}",
31
- "MINUTES": "{minutes, select, 1 {minute} other {minutes}}",
32
- "HOURS": "{hours, select, 1 {hour} other {hours}}",
33
- "DAYS": "{days, select, 1 {day} other {days}}",
34
- "SHORT_SECONDS": "{seconds, select, 1 {sec} other {secs}}",
35
- "SHORT_MINUTES": "{minutes, select, 1 {min} other {mins}}"
36
- },
37
- "CUSTOM_QUESTIONS": "{numberCustomQuestions, select, 1 {custom question} other {custom questions}}",
38
- "CANDIDATES": "{numberCandidates, select, 1 {candidate} other {candidates}}",
39
- "INVITATIONS": "{numberInvitations, select, 1 {invitation} other {invitations}}",
40
- "ASSESSMENTS": "{numberAssessments, select, 1 {assessment} other {assessments}}"
41
- },
42
23
  "COMMON": {
43
- "IS_ARE": "{count, select, 1 {is} other {are}}",
44
- "ORDERING": {
45
- "GENDER_NEUTRAL": "{index, select, 0 {the first} 1 {the second} 2 {the third} 3 {the fourth} 4 {the fifth} 5 {the sixth} 6 {the seventh} other {the}}",
46
- "MALE": "{index, select, 0 {the first} 1 {the second} 2 {the third} 3 {the fourth} 4 {the fifth} 5 {the sixth} 6 {the seventh} other {the}}",
47
- "FEMALE": "{index, select, 0 {the first} 1 {the second} 2 {the third} 3 {the fourth} 4 {the fifth} 5 {the sixth} 6 {the seventh} other {the}}",
48
- "DE_ACCUSATIVE_MALE": "{index, select, 0 {the first} 1 {the second} 2 {the third} 3 {the fourth} 4 {the fifth} 5 {the sixth} 6 {the seventh} other {the}}",
49
- "DE_DATIVE_MALE_AND_NEUTRAL": "{index, select, 0 {the first} 1 {the second} 2 {the third} 3 {the fourth} 4 {the fifth} 5 {the sixth} 6 {the seventh} other {the}}",
50
- "DE_GENTIVE_MALE_AND_NEUTRAL": "{index, select, 0 {the first} 1 {the second} 2 {the third} 3 {the fourth} 4 {the fifth} 5 {the sixth} 6 {the seventh} other {the}}",
51
- "ORDINAL": "{index, select, 0 {1st} 1 {2nd} 2 {3rd} 3 {4th} 4 {5th} other {nth}}"
52
- },
53
24
  "APPLY": "Apply",
54
25
  "VALIDATE": "Validate",
55
26
  "YES": "Yes",
@@ -65,7 +36,6 @@
65
36
  "OK": "OK",
66
37
  "REMOVE": "Remove",
67
38
  "TEST": "test",
68
- "HAS_HAVE": "{count, select, 1 {has} other {have}}",
69
39
  "MAYBE": "Maybe",
70
40
  "BACK": "Back",
71
41
  "SAVE": "Save",
@@ -86,31 +56,6 @@
86
56
  "MIN": "Min",
87
57
  "CLEAR": "Clear"
88
58
  },
89
- "DATE_TIME": {
90
- "SECONDS": "{{seconds}} {{PLURALS.DATE_TIME.SECONDS}}",
91
- "SHORT_SECONDS": "{{seconds}} {{PLURALS.DATE_TIME.SHORT_SECONDS}}",
92
- "SHORT_MINUTES": "{{minutes}} {{PLURALS.DATE_TIME.SHORT_MINUTES}}",
93
- "HOURS": "{{hours}} {{PLURALS.DATE_TIME.HOURS}}",
94
- "DAYS": "{{days}} {{PLURALS.DATE_TIME.DAYS}}"
95
- },
96
- "CREATE_ACCOUNT": {
97
- "TITLE": "Create your Career Passport",
98
- "SUBTITLE": "Enter the email address to which you received an assessment invite.",
99
- "EMAIL_LABEL": "Email",
100
- "PASSWORD_LABEL": "Password",
101
- "TERMS_CONDITIONS": "I have read and accepted the ",
102
- "TERMS_CONDITIONS_LINK_LABEL": "candidate terms",
103
- "PRIVACY_POLICY_LINK_LABEL": "privacy policy",
104
- "TERMS_CONDITIONS_DELIMITER": "and",
105
- "BUTTON_LABEL": "Next",
106
- "HAVE_CAREER_PASSPORT": "Already have a Career Passport?",
107
- "LOGIN": "Log in here"
108
- },
109
- "CREATE_PASSWORD": {
110
- "TITLE": "Please create a new password",
111
- "PASSWORD_LABEL": "Set password",
112
- "BUTTON": "Set new password"
113
- },
114
59
  "DIALOG": {
115
60
  "CLOSE_LABEL": "Close dialog"
116
61
  },
@@ -126,22 +71,6 @@
126
71
  "SUPPORTED_FILE_TYPES": "Supported file types:",
127
72
  "CHANGE": "Change"
128
73
  },
129
- "FORGOT_PASSWORD": {
130
- "TITLE": "Reset your password",
131
- "EMAIL_LABEL": "Email",
132
- "BUTTON_LABEL": "Send reset link",
133
- "BACK_TO_LOGIN": "Back to log in"
134
- },
135
- "LOGIN": {
136
- "TITLE": "Log in to your Career Passport",
137
- "EMAIL_LABEL": "Email address",
138
- "PASSWORD_LABEL": "Password",
139
- "REMEMBER_ME": "Keep me logged in",
140
- "FORGOT_PASSWORD": "Forgot password?",
141
- "BUTTON_LABEL": "Log in",
142
- "NOT_HAVE_ACCOUNT": "Don't have an account?",
143
- "CREATE_ACCOUNT": "Create one here"
144
- },
145
74
  "NAVBAR": {
146
75
  "LOG_OUT": "Log out"
147
76
  }