@testgorilla/tgo-ui 1.7.0 → 1.9.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.
- package/components/accordion/accordion.component.d.ts +47 -0
- package/components/accordion/accordion.component.module.d.ts +12 -0
- package/components/autocomplete/autocomplete.component.d.ts +16 -4
- package/components/button/button.component.d.ts +19 -3
- package/components/button/button.model.d.ts +1 -0
- package/components/card/card.component.d.ts +9 -1
- package/components/card/card.model.d.ts +1 -0
- package/components/checkbox/checkbox.component.d.ts +2 -2
- package/components/confirm-dialog/confirm-dialog.component.d.ts +3 -3
- package/components/confirm-dialog/confirm-dialog.component.module.d.ts +2 -1
- package/components/datepicker/datepicker.component.d.ts +16 -3
- package/components/datepicker/datepicker.component.module.d.ts +2 -1
- package/components/dialog/dialog.component.d.ts +21 -2
- package/components/dialog/dialog.component.module.d.ts +2 -1
- package/components/divider/divider.component.d.ts +21 -0
- package/components/divider/divider.component.module.d.ts +9 -0
- package/components/divider/divider.model.d.ts +1 -0
- package/components/dropdown/dropdown.component.d.ts +12 -2
- package/components/dropdown/dropdown.component.module.d.ts +2 -1
- package/components/empty-state/empty-state.component.d.ts +14 -3
- package/components/field/field.component.d.ts +13 -2
- package/components/field/field.component.module.d.ts +2 -1
- package/components/file-upload/file-upload.component.d.ts +21 -2
- package/components/file-upload/file-upload.component.module.d.ts +2 -1
- package/components/icon/icon.config.d.ts +1 -1
- package/components/navbar/navbar.component.d.ts +16 -4
- package/components/navbar/navbar.component.module.d.ts +2 -1
- package/components/navigation/navigation.component.d.ts +3 -3
- package/components/navigation/navigation.component.module.d.ts +1 -2
- package/components/navigation/navigation.model.d.ts +12 -0
- package/components/page-header/page-header.component.d.ts +39 -0
- package/components/page-header/page-header.component.module.d.ts +10 -0
- package/components/progress-bar/progress-bar.component.d.ts +2 -2
- package/components/radio-button/radio-button.component.d.ts +2 -2
- package/components/side-sheet/side-sheet.component.d.ts +12 -2
- package/components/skeleton/skeleton.component.d.ts +9 -3
- package/components/skeleton/skeleton.model.d.ts +2 -0
- package/components/slider/slider.component.d.ts +97 -0
- package/components/slider/slider.component.module.d.ts +14 -0
- package/components/slider/slider.model.d.ts +4 -0
- package/components/snackbar/snackbar.component.module.d.ts +0 -2
- package/components/spinner/spinner.component.d.ts +10 -1
- package/components/spinner/spinner.model.d.ts +1 -0
- package/components/spinner/spinner.module.d.ts +2 -1
- package/components/stepper/stepper.component.d.ts +15 -4
- package/components/tabs/tab.directive.d.ts +18 -0
- package/components/tabs/tabs.component.d.ts +24 -0
- package/components/tabs/tabs.component.module.d.ts +11 -0
- package/components/tabs/tabs.model.d.ts +9 -0
- package/esm2022/components/accordion/accordion.component.mjs +74 -0
- package/esm2022/components/accordion/accordion.component.module.mjs +37 -0
- package/esm2022/components/alert-banner/alert-banner.component.mjs +3 -3
- package/esm2022/components/autocomplete/autocomplete.component.mjs +48 -29
- package/esm2022/components/avatar/avatar.component.mjs +2 -2
- package/esm2022/components/badge/badge.component.mjs +2 -2
- package/esm2022/components/banner-action/banner-action.component.mjs +2 -2
- package/esm2022/components/button/button.component.mjs +61 -7
- package/esm2022/components/button/button.model.mjs +1 -1
- package/esm2022/components/card/card.component.mjs +17 -5
- package/esm2022/components/card/card.model.mjs +2 -0
- package/esm2022/components/checkbox/checkbox.component.mjs +6 -6
- package/esm2022/components/confirm-dialog/confirm-dialog.component.mjs +7 -7
- package/esm2022/components/confirm-dialog/confirm-dialog.component.module.mjs +23 -5
- package/esm2022/components/datepicker/datepicker.component.mjs +45 -24
- package/esm2022/components/datepicker/datepicker.component.module.mjs +29 -6
- package/esm2022/components/deprecated-paginator/deprecated-paginator.component.mjs +2 -2
- package/esm2022/components/deprecated-table/deprecated-table.component.mjs +3 -3
- package/esm2022/components/dialog/dialog.component.mjs +41 -9
- package/esm2022/components/dialog/dialog.component.module.mjs +32 -6
- package/esm2022/components/divider/divider.component.mjs +37 -0
- package/esm2022/components/divider/divider.component.module.mjs +19 -0
- package/esm2022/components/divider/divider.model.mjs +2 -0
- package/esm2022/components/dropdown/dropdown.component.mjs +31 -13
- package/esm2022/components/dropdown/dropdown.component.module.mjs +29 -6
- package/esm2022/components/elevation-shadow/elevation-shadow.component.mjs +2 -2
- package/esm2022/components/empty-state/empty-state.component.mjs +28 -10
- package/esm2022/components/field/field.component.mjs +32 -13
- package/esm2022/components/field/field.component.module.mjs +29 -6
- package/esm2022/components/file-upload/file-upload.component.mjs +43 -11
- package/esm2022/components/file-upload/file-upload.component.module.mjs +43 -6
- package/esm2022/components/icon/icon.component.mjs +2 -2
- package/esm2022/components/icon/icon.config.mjs +7 -1
- package/esm2022/components/navbar/navbar.component.mjs +34 -13
- package/esm2022/components/navbar/navbar.component.module.mjs +29 -6
- package/esm2022/components/navigation/navigation.component.mjs +3 -4
- package/esm2022/components/navigation/navigation.component.module.mjs +4 -5
- package/esm2022/components/navigation/navigation.model.mjs +7 -0
- package/esm2022/components/page-header/page-header.component.mjs +68 -0
- package/esm2022/components/page-header/page-header.component.module.mjs +39 -0
- package/esm2022/components/paginator/paginator.component.mjs +2 -2
- package/esm2022/components/progress-bar/progress-bar.component.mjs +5 -5
- package/esm2022/components/radial-progress/radial-progress.component.mjs +2 -2
- package/esm2022/components/radio-button/radio-button.component.mjs +5 -5
- package/esm2022/components/rating/rating.component.mjs +2 -2
- package/esm2022/components/segmented-bar/segmented-bar.component.mjs +2 -2
- package/esm2022/components/side-sheet/side-sheet.component.mjs +28 -11
- package/esm2022/components/skeleton/skeleton.component.mjs +34 -7
- package/esm2022/components/skeleton/skeleton.model.mjs +2 -0
- package/esm2022/components/slider/slider.component.mjs +181 -0
- package/esm2022/components/slider/slider.component.module.mjs +68 -0
- package/esm2022/components/slider/slider.model.mjs +2 -0
- package/esm2022/components/snackbar/snackbar.component.mjs +4 -3
- package/esm2022/components/snackbar/snackbar.component.module.mjs +2 -2
- package/esm2022/components/spinner/spinner.component.mjs +18 -5
- package/esm2022/components/spinner/spinner.model.mjs +2 -0
- package/esm2022/components/spinner/spinner.module.mjs +4 -2
- package/esm2022/components/step/step.component.mjs +2 -2
- package/esm2022/components/stepper/stepper.component.mjs +33 -14
- package/esm2022/components/table/table.component.mjs +2 -2
- package/esm2022/components/tabs/tab.directive.mjs +42 -0
- package/esm2022/components/tabs/tabs.component.mjs +43 -0
- package/esm2022/components/tabs/tabs.component.module.mjs +32 -0
- package/esm2022/components/tabs/tabs.model.mjs +2 -0
- package/esm2022/components/tag/tag.component.mjs +2 -2
- package/esm2022/components/toggle/toggle.component.mjs +2 -2
- package/esm2022/public-api.mjs +23 -21
- package/esm2022/utils/color-contrast.mjs +117 -0
- package/fesm2022/testgorilla-tgo-ui.mjs +1861 -1380
- package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +17 -15
- package/src/assets/i18n/en.json +64 -1
- package/src/assets/icons/Fire.svg +10 -0
- package/src/assets/icons/Gift.svg +7 -0
- package/src/assets/icons/Grab.svg +3 -0
- package/src/assets/icons/Share.svg +3 -0
- package/src/assets/icons/Sparkles.svg +18 -0
- package/src/assets/icons/Video-stop.svg +3 -0
- package/src/theme/_core.scss +1 -1
- package/src/theme/_variables.scss +52 -1
- package/utils/color-contrast.d.ts +9 -0
- package/components/confirm-dialog/confirm-dialog.constants.d.ts +0 -5
- package/components/create-account/create-account.component.d.ts +0 -75
- package/components/create-account/create-account.component.module.d.ts +0 -14
- package/components/create-account/create-account.constant.d.ts +0 -13
- package/components/create-account/create-account.model.d.ts +0 -17
- package/components/create-password/create-password.component.d.ts +0 -43
- package/components/create-password/create-password.component.module.d.ts +0 -13
- package/components/create-password/create-password.constant.d.ts +0 -5
- package/components/create-password/create-password.model.d.ts +0 -8
- package/components/forgot-password/forgot-password.component.d.ts +0 -48
- package/components/forgot-password/forgot-password.component.module.d.ts +0 -13
- package/components/forgot-password/forgot-password.constant.d.ts +0 -6
- package/components/forgot-password/forgot-password.model.d.ts +0 -9
- package/components/label/label.component.d.ts +0 -46
- package/components/label/label.component.module.d.ts +0 -8
- package/components/label/label.model.d.ts +0 -16
- package/components/login/login.component.d.ts +0 -57
- package/components/login/login.component.module.d.ts +0 -13
- package/components/login/login.constant.d.ts +0 -10
- package/components/login/login.model.d.ts +0 -15
- package/esm2022/components/confirm-dialog/confirm-dialog.constants.mjs +0 -6
- package/esm2022/components/create-account/create-account.component.mjs +0 -148
- package/esm2022/components/create-account/create-account.component.module.mjs +0 -48
- package/esm2022/components/create-account/create-account.constant.mjs +0 -14
- package/esm2022/components/create-account/create-account.model.mjs +0 -2
- package/esm2022/components/create-password/create-password.component.mjs +0 -83
- package/esm2022/components/create-password/create-password.component.module.mjs +0 -44
- package/esm2022/components/create-password/create-password.constant.mjs +0 -6
- package/esm2022/components/create-password/create-password.model.mjs +0 -2
- package/esm2022/components/forgot-password/forgot-password.component.mjs +0 -86
- package/esm2022/components/forgot-password/forgot-password.component.module.mjs +0 -44
- package/esm2022/components/forgot-password/forgot-password.constant.mjs +0 -7
- package/esm2022/components/forgot-password/forgot-password.model.mjs +0 -2
- package/esm2022/components/label/label.component.mjs +0 -64
- package/esm2022/components/label/label.component.module.mjs +0 -19
- package/esm2022/components/label/label.model.mjs +0 -9
- package/esm2022/components/login/login.component.mjs +0 -113
- package/esm2022/components/login/login.component.module.mjs +0 -44
- package/esm2022/components/login/login.constant.mjs +0 -11
- package/esm2022/components/login/login.model.mjs +0 -2
- package/esm2022/utils/validators.utils.mjs +0 -8
- package/utils/validators.utils.d.ts +0 -4
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AccordionComponent {
|
|
4
|
+
/**
|
|
5
|
+
* The label displayed for the accordion.
|
|
6
|
+
* @type {string}
|
|
7
|
+
* @required
|
|
8
|
+
* @memberof AccordionComponent
|
|
9
|
+
*/
|
|
10
|
+
label: string;
|
|
11
|
+
/**
|
|
12
|
+
* Determines whether the accordion is initially open.
|
|
13
|
+
* @type {boolean}
|
|
14
|
+
* @default false
|
|
15
|
+
* @memberof AccordionComponent
|
|
16
|
+
*/
|
|
17
|
+
open: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Disables the accordion if set to true.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @default false
|
|
22
|
+
* @memberof AccordionComponent
|
|
23
|
+
*/
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Indicates whether to show a premium icon.
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @default false
|
|
29
|
+
* @memberof AccordionComponent
|
|
30
|
+
*/
|
|
31
|
+
showPremiumIcon: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The tooltip text for the premium icon.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @default ''
|
|
36
|
+
* @memberof AccordionComponent
|
|
37
|
+
*/
|
|
38
|
+
premiumTooltipText: string;
|
|
39
|
+
closed: EventEmitter<void>;
|
|
40
|
+
opened: EventEmitter<void>;
|
|
41
|
+
protected toggle(open: boolean): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "ui-accordion", never, { "label": { "alias": "label"; "required": true; }; "open": { "alias": "open"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showPremiumIcon": { "alias": "showPremiumIcon"; "required": false; }; "premiumTooltipText": { "alias": "premiumTooltipText"; "required": false; }; }, { "closed": "closed"; "opened": "opened"; }, never, ["[actions]", "*"], false, never>;
|
|
44
|
+
static ngAcceptInputType_open: unknown;
|
|
45
|
+
static ngAcceptInputType_disabled: unknown;
|
|
46
|
+
static ngAcceptInputType_showPremiumIcon: unknown;
|
|
47
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./accordion.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../icon/icon.component.module";
|
|
5
|
+
import * as i4 from "../button/button.component.module";
|
|
6
|
+
import * as i5 from "@angular/material/tooltip";
|
|
7
|
+
import * as i6 from "@angular/material/expansion";
|
|
8
|
+
export declare class AccordionComponentModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponentModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AccordionComponentModule, [typeof i1.AccordionComponent], [typeof i2.CommonModule, typeof i3.IconComponentModule, typeof i4.ButtonComponentModule, typeof i5.MatTooltipModule, typeof i6.MatExpansionModule], never>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AccordionComponentModule>;
|
|
12
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, EventEmitter, OnChanges } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit } from '@angular/core';
|
|
2
2
|
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, LanguageService } from '../../utils/localization/language.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class AutocompleteComponent implements ControlValueAccessor, OnChanges, AfterViewInit {
|
|
8
|
+
export declare class AutocompleteComponent implements ControlValueAccessor, OnChanges, AfterViewInit, OnInit {
|
|
9
|
+
private readonly languageService;
|
|
10
|
+
private readonly cdr;
|
|
8
11
|
/**
|
|
9
12
|
* @property itemsList
|
|
10
13
|
* @description The list of items to display in the autocomplete.
|
|
@@ -71,12 +74,19 @@ export declare class AutocompleteComponent implements ControlValueAccessor, OnCh
|
|
|
71
74
|
* @memberof AutocompleteComponent
|
|
72
75
|
*/
|
|
73
76
|
variant: DropdownVariation;
|
|
77
|
+
/**
|
|
78
|
+
* The language to be used
|
|
79
|
+
* @property language
|
|
80
|
+
* @type {Language}
|
|
81
|
+
* @memberof AutocompleteComponent
|
|
82
|
+
*/
|
|
83
|
+
set language(value: Language);
|
|
74
84
|
selectionChange: EventEmitter<any>;
|
|
75
85
|
searchTextChange: EventEmitter<string>;
|
|
76
86
|
formFieldElement: ElementRef<HTMLElement>;
|
|
77
87
|
tagContainer: ElementRef<HTMLElement>;
|
|
78
88
|
autocomplete: MatAutocompleteTrigger;
|
|
79
|
-
private
|
|
89
|
+
private lang;
|
|
80
90
|
protected value: any;
|
|
81
91
|
protected inputValue: any;
|
|
82
92
|
protected isInputFocus: boolean;
|
|
@@ -90,7 +100,9 @@ export declare class AutocompleteComponent implements ControlValueAccessor, OnCh
|
|
|
90
100
|
protected filteredSuggestionList$: import("rxjs").Observable<any>;
|
|
91
101
|
protected searchResult$: import("rxjs").Observable<boolean>;
|
|
92
102
|
protected translationContext: string;
|
|
103
|
+
constructor(languageService: LanguageService, cdr: ChangeDetectorRef);
|
|
93
104
|
ngOnChanges(): void;
|
|
105
|
+
ngOnInit(): void;
|
|
94
106
|
ngAfterViewInit(): void;
|
|
95
107
|
onChange: (_: any) => void;
|
|
96
108
|
onTouch: () => void;
|
|
@@ -112,5 +124,5 @@ export declare class AutocompleteComponent implements ControlValueAccessor, OnCh
|
|
|
112
124
|
protected onChevronClick(autocomplete: MatAutocomplete): void;
|
|
113
125
|
protected get inputWidth(): number;
|
|
114
126
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponent, 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>;
|
|
127
|
+
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; }; "language": { "alias": "language"; "required": false; }; }, { "selectionChange": "selectionChange"; "searchTextChange": "searchTextChange"; }, never, never, false, never>;
|
|
116
128
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { IconName } from '
|
|
3
|
-
import { ButtonColor, ButtonIconPosition, ButtonSize, ButtonType, IconButtonSize, LinkUrlTarget } from './button.model';
|
|
2
|
+
import { IconName } from '../icon/icon.model';
|
|
3
|
+
import { ButtonColor, ButtonIconPosition, ButtonSize, ButtonState, ButtonType, IconButtonSize, LinkUrlTarget } from './button.model';
|
|
4
|
+
import { MatButton } from '@angular/material/button';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ButtonComponent implements OnInit, AfterViewInit {
|
|
6
7
|
/**
|
|
@@ -102,12 +103,24 @@ export declare class ButtonComponent implements OnInit, AfterViewInit {
|
|
|
102
103
|
* @default 'button'
|
|
103
104
|
*/
|
|
104
105
|
type: ButtonType;
|
|
106
|
+
/**
|
|
107
|
+
* Color of the button.
|
|
108
|
+
* Defaults to Test Gorilla primary color.
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof ButtonComponent
|
|
112
|
+
*/
|
|
113
|
+
companyColor: string;
|
|
105
114
|
buttonClickEvent: EventEmitter<Event>;
|
|
106
115
|
buttonHoverEvent: EventEmitter<Event>;
|
|
116
|
+
buttonElement: MatButton;
|
|
107
117
|
constructor();
|
|
108
118
|
classCss: string;
|
|
119
|
+
styleCss: any;
|
|
109
120
|
isButtonLink: boolean;
|
|
110
121
|
isLabel: boolean;
|
|
122
|
+
buttonState: ButtonState;
|
|
123
|
+
hover: boolean;
|
|
111
124
|
iconButtonSize: IconButtonSize;
|
|
112
125
|
allowButtonTypeForPremium: ButtonColor[];
|
|
113
126
|
get typeIncluded(): boolean;
|
|
@@ -118,9 +131,12 @@ export declare class ButtonComponent implements OnInit, AfterViewInit {
|
|
|
118
131
|
buttonHover(event: Event): void;
|
|
119
132
|
showLabel(): boolean;
|
|
120
133
|
setCssClass(): string;
|
|
134
|
+
setCssStyle(): any;
|
|
121
135
|
showSpinner(): boolean;
|
|
122
136
|
showButtonLink(): boolean;
|
|
123
137
|
setIconButtonSize(): IconButtonSize;
|
|
138
|
+
onPressed(ev: Event): void;
|
|
139
|
+
focus(): void;
|
|
124
140
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, 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>;
|
|
141
|
+
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; }; "companyColor": { "alias": "companyColor"; "required": false; }; }, { "buttonClickEvent": "buttonClickEvent"; "buttonHoverEvent": "buttonHoverEvent"; }, never, never, false, never>;
|
|
126
142
|
}
|
|
@@ -4,3 +4,4 @@ export type ButtonSize = 'big' | 'small';
|
|
|
4
4
|
export type LinkUrlTarget = '' | '_self' | '_blank' | '_parent' | '_top';
|
|
5
5
|
export type IconButtonSize = '32' | '40';
|
|
6
6
|
export type ButtonType = 'button' | 'submit' | 'reset';
|
|
7
|
+
export type ButtonState = 'hover' | 'pressed' | 'disabled' | 'default';
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import { CardSize } from './card.model';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class CardComponent {
|
|
4
|
+
/**
|
|
5
|
+
* Card size. Defaults "medium".
|
|
6
|
+
*
|
|
7
|
+
* @type {CardSize}
|
|
8
|
+
* @memberof CardComponent
|
|
9
|
+
*/
|
|
10
|
+
size: CardSize;
|
|
3
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "ui-card", never, {}, {}, never, ["*"], false, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "ui-card", never, { "size": { "alias": "size"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
5
13
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CardSize = 'small' | 'medium' | 'large';
|
|
@@ -35,7 +35,7 @@ export declare class CheckboxComponent implements OnInit, ControlValueAccessor {
|
|
|
35
35
|
* @type {string}
|
|
36
36
|
* @memberof CheckboxComponent
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
companyColor: string;
|
|
39
39
|
/**
|
|
40
40
|
* Name value will be applied to the input element if present.
|
|
41
41
|
*
|
|
@@ -83,5 +83,5 @@ export declare class CheckboxComponent implements OnInit, ControlValueAccessor {
|
|
|
83
83
|
registerOnTouched(fn: any): void;
|
|
84
84
|
setDisabledState(isDisabled: boolean): void;
|
|
85
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
86
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "ui-checkbox", never, { "disabled": { "alias": "disabled"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "
|
|
86
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "ui-checkbox", never, { "disabled": { "alias": "disabled"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "companyColor": { "alias": "companyColor"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; }, { "changed": "changed"; }, never, never, false, never>;
|
|
87
87
|
}
|
|
@@ -5,9 +5,9 @@ export declare class ConfirmDialogComponent {
|
|
|
5
5
|
dialogRef: MatDialogRef<ConfirmDialogComponent>;
|
|
6
6
|
private data;
|
|
7
7
|
confirmMessage: string;
|
|
8
|
-
confirmButtonText: string;
|
|
9
|
-
cancelButtonText: string;
|
|
10
|
-
title: string;
|
|
8
|
+
confirmButtonText: string | undefined;
|
|
9
|
+
cancelButtonText: string | undefined;
|
|
10
|
+
title: string | undefined;
|
|
11
11
|
constructor(dialogRef: MatDialogRef<ConfirmDialogComponent>, data: ConfirmDialogData);
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
|
|
13
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogComponent, "ui-confirm-dialog", never, {}, {}, never, never, false, never>;
|
|
@@ -4,8 +4,9 @@ import * as i2 from "@angular/common";
|
|
|
4
4
|
import * as i3 from "@angular/material/dialog";
|
|
5
5
|
import * as i4 from "../button/button.component.module";
|
|
6
6
|
import * as i5 from "../dialog/dialog.component.module";
|
|
7
|
+
import * as i6 from "@ngneat/transloco";
|
|
7
8
|
export declare class ConfirmDialogComponentModule {
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponentModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ConfirmDialogComponentModule, [typeof i1.ConfirmDialogComponent], [typeof i2.CommonModule, typeof i3.MatDialogModule, typeof i4.ButtonComponentModule, typeof i5.DialogComponentModule], [typeof i1.ConfirmDialogComponent]>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ConfirmDialogComponentModule, [typeof i1.ConfirmDialogComponent], [typeof i2.CommonModule, typeof i3.MatDialogModule, typeof i4.ButtonComponentModule, typeof i5.DialogComponentModule, typeof i6.TranslocoModule], [typeof i1.ConfirmDialogComponent]>;
|
|
10
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<ConfirmDialogComponentModule>;
|
|
11
12
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { Language, LanguageService } from '../../utils/localization/language.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DatepickerComponent implements OnChanges, ControlValueAccessor {
|
|
5
|
+
export declare class DatepickerComponent implements OnChanges, ControlValueAccessor, OnInit {
|
|
6
|
+
private readonly languageService;
|
|
5
7
|
class: string;
|
|
6
8
|
/**
|
|
7
9
|
* Form field label
|
|
@@ -81,6 +83,15 @@ export declare class DatepickerComponent implements OnChanges, ControlValueAcces
|
|
|
81
83
|
* @memberof DatepickerComponent
|
|
82
84
|
*/
|
|
83
85
|
updateOnBlur: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* The language to be used
|
|
88
|
+
*
|
|
89
|
+
* @type {Language}
|
|
90
|
+
* @memberof SnackbarComponent
|
|
91
|
+
*/
|
|
92
|
+
set language(value: Language);
|
|
93
|
+
private lang;
|
|
94
|
+
constructor(languageService: LanguageService);
|
|
84
95
|
/**
|
|
85
96
|
* @ignore
|
|
86
97
|
*/
|
|
@@ -101,8 +112,10 @@ export declare class DatepickerComponent implements OnChanges, ControlValueAcces
|
|
|
101
112
|
end: FormControl<Date | null>;
|
|
102
113
|
}>;
|
|
103
114
|
errorsLength: boolean;
|
|
115
|
+
protected translationContext: string;
|
|
104
116
|
get hint(): string;
|
|
105
117
|
ngOnChanges(): void;
|
|
118
|
+
ngOnInit(): void;
|
|
106
119
|
setErrorsLength(): boolean;
|
|
107
120
|
onValueChange(value: Date | string): void;
|
|
108
121
|
writeValue(value?: Date | string): void;
|
|
@@ -113,5 +126,5 @@ export declare class DatepickerComponent implements OnChanges, ControlValueAcces
|
|
|
113
126
|
private setRange;
|
|
114
127
|
private getRange;
|
|
115
128
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, never>;
|
|
116
|
-
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; }; }, { "changed": "changed"; }, never, never, false, never>;
|
|
129
|
+
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>;
|
|
117
130
|
}
|
|
@@ -7,8 +7,9 @@ import * as i5 from "../icon/icon.component.module";
|
|
|
7
7
|
import * as i6 from "@angular/forms";
|
|
8
8
|
import * as i7 from "@angular/material/datepicker";
|
|
9
9
|
import * as i8 from "@angular/material/core";
|
|
10
|
+
import * as i9 from "@ngneat/transloco";
|
|
10
11
|
export declare class DatepickerComponentModule {
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponentModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DatepickerComponentModule, [typeof i1.DatepickerComponent], [typeof i2.CommonModule, typeof i3.MatFormFieldModule, typeof i4.MatInputModule, typeof i5.IconComponentModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.MatDatepickerModule, typeof i8.MatNativeDateModule], [typeof i1.DatepickerComponent]>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DatepickerComponentModule, [typeof i1.DatepickerComponent], [typeof i2.CommonModule, typeof i3.MatFormFieldModule, typeof i4.MatInputModule, typeof i5.IconComponentModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.MatDatepickerModule, typeof i8.MatNativeDateModule, typeof i9.TranslocoModule], [typeof i1.DatepickerComponent]>;
|
|
13
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<DatepickerComponentModule>;
|
|
14
15
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
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, LanguageService } from '../../utils/localization/language.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class DialogComponent implements OnInit, OnChanges {
|
|
6
7
|
dialogRef: MatDialogRef<DialogComponent>;
|
|
7
|
-
|
|
8
|
+
private readonly languageService;
|
|
9
|
+
constructor(dialogRef: MatDialogRef<DialogComponent>, languageService: LanguageService);
|
|
8
10
|
/**
|
|
9
11
|
* Dialog title
|
|
10
12
|
*
|
|
@@ -47,10 +49,27 @@ export declare class DialogComponent implements OnInit, OnChanges {
|
|
|
47
49
|
* @memberof DialogComponent
|
|
48
50
|
*/
|
|
49
51
|
primaryButtonType: ButtonColor;
|
|
52
|
+
/**
|
|
53
|
+
* The language to be used
|
|
54
|
+
* @property language
|
|
55
|
+
* @type {Language}
|
|
56
|
+
* @memberof DialogComponent
|
|
57
|
+
*/
|
|
58
|
+
set language(value: Language);
|
|
59
|
+
/**
|
|
60
|
+
* Color of the dialog.
|
|
61
|
+
* Defaults to Test Gorilla primary color.
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof DialogComponent
|
|
65
|
+
*/
|
|
66
|
+
companyColor: string;
|
|
50
67
|
closeEvent: EventEmitter<Event>;
|
|
51
68
|
secondaryButtonClickEvent: EventEmitter<Event>;
|
|
52
69
|
primaryButtonClickEvent: EventEmitter<Event>;
|
|
53
70
|
disableButtons: boolean;
|
|
71
|
+
private lang;
|
|
72
|
+
protected readonly translationContext = "DIALOG.";
|
|
54
73
|
ngOnInit(): void;
|
|
55
74
|
ngOnChanges(changes: SimpleChanges): void;
|
|
56
75
|
areButtonsDisabled(): void;
|
|
@@ -59,5 +78,5 @@ export declare class DialogComponent implements OnInit, OnChanges {
|
|
|
59
78
|
onSecondaryButtonClick(event: Event): void;
|
|
60
79
|
onPrimaryButtonClick(event: Event): void;
|
|
61
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
|
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "ui-dialog", never, { "title": { "alias": "title"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "canCloseFn": { "alias": "canCloseFn"; "required": false; }; "secondaryButtonLabel": { "alias": "secondaryButtonLabel"; "required": false; }; "primaryButtonLabel": { "alias": "primaryButtonLabel"; "required": false; }; "secondaryButtonType": { "alias": "secondaryButtonType"; "required": false; }; "primaryButtonType": { "alias": "primaryButtonType"; "required": false; }; }, { "closeEvent": "closeEvent"; "secondaryButtonClickEvent": "secondaryButtonClickEvent"; "primaryButtonClickEvent": "primaryButtonClickEvent"; }, never, ["*"], false, never>;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "ui-dialog", never, { "title": { "alias": "title"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "canCloseFn": { "alias": "canCloseFn"; "required": false; }; "secondaryButtonLabel": { "alias": "secondaryButtonLabel"; "required": false; }; "primaryButtonLabel": { "alias": "primaryButtonLabel"; "required": false; }; "secondaryButtonType": { "alias": "secondaryButtonType"; "required": false; }; "primaryButtonType": { "alias": "primaryButtonType"; "required": false; }; "language": { "alias": "language"; "required": false; }; "companyColor": { "alias": "companyColor"; "required": false; }; }, { "closeEvent": "closeEvent"; "secondaryButtonClickEvent": "secondaryButtonClickEvent"; "primaryButtonClickEvent": "primaryButtonClickEvent"; }, never, ["*"], false, never>;
|
|
63
82
|
}
|
|
@@ -3,8 +3,9 @@ import * as i1 from "./dialog.component";
|
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@angular/material/dialog";
|
|
5
5
|
import * as i4 from "../button/button.component.module";
|
|
6
|
+
import * as i5 from "@ngneat/transloco";
|
|
6
7
|
export declare class DialogComponentModule {
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponentModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DialogComponentModule, [typeof i1.DialogComponent], [typeof i2.CommonModule, typeof i3.MatDialogModule, typeof i4.ButtonComponentModule], [typeof i1.DialogComponent]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DialogComponentModule, [typeof i1.DialogComponent], [typeof i2.CommonModule, typeof i3.MatDialogModule, typeof i4.ButtonComponentModule, typeof i5.TranslocoModule], [typeof i1.DialogComponent]>;
|
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<DialogComponentModule>;
|
|
10
11
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DividerSize } from './divider.model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DividerComponent {
|
|
4
|
+
/**
|
|
5
|
+
* Divider size
|
|
6
|
+
*
|
|
7
|
+
* @type {DividerSize}
|
|
8
|
+
* @memberof DividerComponent
|
|
9
|
+
*/
|
|
10
|
+
size: DividerSize;
|
|
11
|
+
/**
|
|
12
|
+
* Determines whether the checkbox color.
|
|
13
|
+
* Default: Test Gorilla primary color.
|
|
14
|
+
*
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof DividerComponent
|
|
17
|
+
*/
|
|
18
|
+
companyColor: string;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DividerComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DividerComponent, "ui-divider", never, { "size": { "alias": "size"; "required": false; }; "companyColor": { "alias": "companyColor"; "required": false; }; }, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./divider.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/material/divider";
|
|
5
|
+
export declare class DividerComponentModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DividerComponentModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DividerComponentModule, [typeof i1.DividerComponent], [typeof i2.CommonModule, typeof i3.MatDividerModule], [typeof i1.DividerComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DividerComponentModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DividerSize = 'small' | 'large';
|
|
@@ -2,8 +2,10 @@ 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, LanguageService } from '../../utils/localization/language.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class DropdownComponent implements OnInit, ControlValueAccessor {
|
|
8
|
+
private readonly languageService;
|
|
7
9
|
class: string;
|
|
8
10
|
/**
|
|
9
11
|
* Text content will be applied to the input element if present.
|
|
@@ -86,6 +88,14 @@ export declare class DropdownComponent implements OnInit, ControlValueAccessor {
|
|
|
86
88
|
* @memberof DropdownComponent
|
|
87
89
|
*/
|
|
88
90
|
required: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* The language to be used
|
|
93
|
+
* @property language
|
|
94
|
+
* @type {Language}
|
|
95
|
+
* @memberof DropdownComponent
|
|
96
|
+
*/
|
|
97
|
+
set language(value: Language);
|
|
98
|
+
private lang;
|
|
89
99
|
/**
|
|
90
100
|
* @ignore
|
|
91
101
|
*/
|
|
@@ -94,7 +104,7 @@ export declare class DropdownComponent implements OnInit, ControlValueAccessor {
|
|
|
94
104
|
* @ignore
|
|
95
105
|
*/
|
|
96
106
|
onTouch: () => void;
|
|
97
|
-
constructor();
|
|
107
|
+
constructor(languageService: LanguageService);
|
|
98
108
|
floatLabel: FloatLabelType;
|
|
99
109
|
classError: string;
|
|
100
110
|
errorsLength: boolean;
|
|
@@ -108,5 +118,5 @@ export declare class DropdownComponent implements OnInit, ControlValueAccessor {
|
|
|
108
118
|
registerOnTouched(fn: any): void;
|
|
109
119
|
setDisabledState(isDisabled: boolean): void;
|
|
110
120
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
|
|
111
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "ui-dropdown", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "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; }; "valueList": { "alias": "valueList"; "required": false; }; "allowClear": { "alias": "allowClear"; "required": false; }; "allowMultipleSelection": { "alias": "allowMultipleSelection"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, {}, never, never, false, never>;
|
|
121
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "ui-dropdown", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "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; }; "valueList": { "alias": "valueList"; "required": false; }; "allowClear": { "alias": "allowClear"; "required": false; }; "allowMultipleSelection": { "alias": "allowMultipleSelection"; "required": false; }; "required": { "alias": "required"; "required": false; }; "language": { "alias": "language"; "required": false; }; }, {}, never, never, false, never>;
|
|
112
122
|
}
|
|
@@ -7,8 +7,9 @@ import * as i5 from "../icon/icon.component.module";
|
|
|
7
7
|
import * as i6 from "@angular/forms";
|
|
8
8
|
import * as i7 from "../button/button.component.module";
|
|
9
9
|
import * as i8 from "@angular/material/select";
|
|
10
|
+
import * as i9 from "@ngneat/transloco";
|
|
10
11
|
export declare class DropdownComponentModule {
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponentModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DropdownComponentModule, [typeof i1.DropdownComponent], [typeof i2.CommonModule, typeof i3.MatFormFieldModule, typeof i4.MatInputModule, typeof i5.IconComponentModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.ButtonComponentModule, typeof i8.MatSelectModule], [typeof i1.DropdownComponent]>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DropdownComponentModule, [typeof i1.DropdownComponent], [typeof i2.CommonModule, typeof i3.MatFormFieldModule, typeof i4.MatInputModule, typeof i5.IconComponentModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.ButtonComponentModule, typeof i8.MatSelectModule, typeof i9.TranslocoModule], [typeof i1.DropdownComponent]>;
|
|
13
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<DropdownComponentModule>;
|
|
14
15
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { IconName } from '../icon/icon.model';
|
|
3
|
+
import { Language, LanguageService } from '../../utils/localization/language.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class EmptyStateComponent {
|
|
5
|
+
export declare class EmptyStateComponent implements OnInit {
|
|
6
|
+
private readonly languageService;
|
|
5
7
|
/**
|
|
6
8
|
* @description If the default image should be displayed.
|
|
7
9
|
* @type {boolean}
|
|
@@ -44,6 +46,12 @@ export declare class EmptyStateComponent {
|
|
|
44
46
|
* @memberof EmptyStateComponent
|
|
45
47
|
*/
|
|
46
48
|
tertiaryButtonText: string;
|
|
49
|
+
/**
|
|
50
|
+
* The language to be used
|
|
51
|
+
* @type {Language}
|
|
52
|
+
* @memberof EmptyStateComponent
|
|
53
|
+
*/
|
|
54
|
+
set language(value: Language);
|
|
47
55
|
/**
|
|
48
56
|
* Event triggered when the primary button is clicked.
|
|
49
57
|
* @type {Event}
|
|
@@ -65,9 +73,12 @@ export declare class EmptyStateComponent {
|
|
|
65
73
|
* @memberof TagComponent
|
|
66
74
|
*/
|
|
67
75
|
tertiaryButtonClick: EventEmitter<Event>;
|
|
76
|
+
private lang;
|
|
77
|
+
constructor(languageService: LanguageService);
|
|
78
|
+
ngOnInit(): void;
|
|
68
79
|
onPrimaryButtonClick(event: Event): void;
|
|
69
80
|
onSecondaryButtonClick(event: Event): void;
|
|
70
81
|
onTertiaryButtonClick(event: Event): void;
|
|
71
82
|
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>;
|
|
83
|
+
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; }; "language": { "alias": "language"; "required": false; }; }, { "primaryButtonClick": "primaryButtonClick"; "secondaryButtonClick": "secondaryButtonClick"; "tertiaryButtonClick": "tertiaryButtonClick"; }, never, never, false, never>;
|
|
73
84
|
}
|
|
@@ -3,10 +3,12 @@ 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 } from '@angular/platform-browser';
|
|
6
|
+
import { Language, LanguageService } from '../../utils/localization/language.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class FieldComponent implements OnInit, ControlValueAccessor {
|
|
8
9
|
private matIconRegistry;
|
|
9
10
|
private domSanitizer;
|
|
11
|
+
private readonly languageService;
|
|
10
12
|
class: string;
|
|
11
13
|
/**
|
|
12
14
|
* Form field label
|
|
@@ -93,6 +95,15 @@ export declare class FieldComponent implements OnInit, ControlValueAccessor {
|
|
|
93
95
|
* @memberof FieldComponent
|
|
94
96
|
*/
|
|
95
97
|
allowOnlyDigits: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* The language to be used
|
|
100
|
+
* @property language
|
|
101
|
+
* @type {Language}
|
|
102
|
+
* @memberof FieldComponent
|
|
103
|
+
*/
|
|
104
|
+
set language(value: Language);
|
|
105
|
+
private lang;
|
|
106
|
+
protected readonly translationContext = "FIELD.";
|
|
96
107
|
/**
|
|
97
108
|
* @ignore
|
|
98
109
|
*/
|
|
@@ -101,7 +112,7 @@ export declare class FieldComponent implements OnInit, ControlValueAccessor {
|
|
|
101
112
|
* @ignore
|
|
102
113
|
*/
|
|
103
114
|
onTouch: () => void;
|
|
104
|
-
constructor(matIconRegistry: MatIconRegistry, domSanitizer: DomSanitizer);
|
|
115
|
+
constructor(matIconRegistry: MatIconRegistry, domSanitizer: DomSanitizer, languageService: LanguageService);
|
|
105
116
|
showClose: boolean;
|
|
106
117
|
showPassword: boolean;
|
|
107
118
|
currentType: string;
|
|
@@ -119,5 +130,5 @@ export declare class FieldComponent implements OnInit, ControlValueAccessor {
|
|
|
119
130
|
registerOnTouched(fn: any): void;
|
|
120
131
|
setDisabledState(isDisabled: boolean): void;
|
|
121
132
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldComponent, never>;
|
|
122
|
-
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; }; }, {}, never, never, false, never>;
|
|
133
|
+
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>;
|
|
123
134
|
}
|
|
@@ -8,8 +8,9 @@ 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
10
|
import * as i9 from "@angular/material/icon";
|
|
11
|
+
import * as i10 from "@ngneat/transloco";
|
|
11
12
|
export declare class FieldComponentModule {
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldComponentModule, never>;
|
|
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]>;
|
|
14
|
+
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 i10.TranslocoModule], [typeof i1.FieldComponent]>;
|
|
14
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<FieldComponentModule>;
|
|
15
16
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { Language, LanguageService } from '../../utils/localization/language.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class FileUploadComponent implements OnInit, OnChanges, ControlValueAccessor {
|
|
6
|
+
private readonly languageService;
|
|
5
7
|
class: string;
|
|
6
8
|
/**
|
|
7
9
|
*
|
|
@@ -44,7 +46,24 @@ export declare class FileUploadComponent implements OnInit, OnChanges, ControlVa
|
|
|
44
46
|
* @memberof FileUploadComponent
|
|
45
47
|
*/
|
|
46
48
|
file: File | null;
|
|
49
|
+
/**
|
|
50
|
+
* The language to be used
|
|
51
|
+
* @property language
|
|
52
|
+
* @type {Language}
|
|
53
|
+
* @memberof FileUploadComponent
|
|
54
|
+
*/
|
|
55
|
+
set language(value: Language);
|
|
56
|
+
/**
|
|
57
|
+
* Color of the file upload.
|
|
58
|
+
* Defaults to Test Gorilla primary color.
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof FileUploadComponent
|
|
62
|
+
*/
|
|
63
|
+
companyColor: string;
|
|
47
64
|
OnDrop: EventEmitter<File>;
|
|
65
|
+
private lang;
|
|
66
|
+
protected readonly translationContext = "FILE_UPLOAD.";
|
|
48
67
|
/**
|
|
49
68
|
* @ignore
|
|
50
69
|
*/
|
|
@@ -56,7 +75,7 @@ export declare class FileUploadComponent implements OnInit, OnChanges, ControlVa
|
|
|
56
75
|
progress: boolean;
|
|
57
76
|
success: boolean;
|
|
58
77
|
browse: boolean;
|
|
59
|
-
constructor();
|
|
78
|
+
constructor(languageService: LanguageService);
|
|
60
79
|
ngOnInit(): void;
|
|
61
80
|
onFileDropped(files: FileList): void;
|
|
62
81
|
onChangeUpload(event: Event): void;
|
|
@@ -70,5 +89,5 @@ export declare class FileUploadComponent implements OnInit, OnChanges, ControlVa
|
|
|
70
89
|
registerOnTouched(fn: any): void;
|
|
71
90
|
setDisabledState(isDisabled: boolean): void;
|
|
72
91
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ui-file-upload", never, { "maxFileSizeMB": { "alias": "maxFileSizeMB"; "required": false; }; "supportedFileTypes": { "alias": "supportedFileTypes"; "required": false; }; "uploadProgress": { "alias": "uploadProgress"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "file": { "alias": "file"; "required": false; }; }, { "OnDrop": "OnDrop"; }, never, never, false, never>;
|
|
92
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ui-file-upload", never, { "maxFileSizeMB": { "alias": "maxFileSizeMB"; "required": false; }; "supportedFileTypes": { "alias": "supportedFileTypes"; "required": false; }; "uploadProgress": { "alias": "uploadProgress"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "file": { "alias": "file"; "required": false; }; "language": { "alias": "language"; "required": false; }; "companyColor": { "alias": "companyColor"; "required": false; }; }, { "OnDrop": "OnDrop"; }, never, never, false, never>;
|
|
74
93
|
}
|