@testgorilla/tgo-ui 2.23.27 → 2.23.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,10 @@
1
- import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
1
+ import { AfterViewInit, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
3
  import { ButtonColor } from '../button/button.model';
4
4
  import { ApplicationTheme } from '../../models/application-theme.model';
5
+ import { ButtonComponent } from '../button/button.component';
5
6
  import * as i0 from "@angular/core";
6
- export declare class DialogComponent implements OnInit, OnChanges {
7
+ export declare class DialogComponent implements OnInit, OnChanges, AfterViewInit {
7
8
  private readonly defaultAppTheme;
8
9
  dialogRef: MatDialogRef<DialogComponent>;
9
10
  private data;
@@ -96,9 +97,33 @@ export declare class DialogComponent implements OnInit, OnChanges {
96
97
  * @memberof DialogComponent
97
98
  */
98
99
  shouldDisableButtons: boolean;
100
+ /**
101
+ * A string representing the ARIA requirement for accessibility.
102
+ * This attribute is used to indicate whether an input field is required for form submission.
103
+ * @type {string}
104
+ * @memberof DialogComponent
105
+ */
106
+ ariaLabelledby: string;
107
+ /**
108
+ * A string representing the ARIA requirement for accessibility.
109
+ * This attribute is used to indicate whether an input field is required for form submission.
110
+ * @type {string}
111
+ * @memberof DialogComponent
112
+ */
113
+ ariaDescribedby: string;
114
+ /**
115
+ * Defines how modal was opened (with keyboard or not)
116
+ *
117
+ * @type {boolean}
118
+ * @memberof DialogComponent
119
+ */
120
+ keyboardOpen: boolean;
99
121
  closeEvent: EventEmitter<Event>;
100
122
  secondaryButtonClickEvent: EventEmitter<Event>;
101
123
  primaryButtonClickEvent: EventEmitter<Event>;
124
+ closeButton: ButtonComponent;
125
+ modalClosed: boolean;
126
+ onEsc(_: KeyboardEvent): void;
102
127
  constructor(defaultAppTheme: ApplicationTheme, dialogRef: MatDialogRef<DialogComponent>, data: {
103
128
  applicationTheme: ApplicationTheme;
104
129
  });
@@ -106,11 +131,12 @@ export declare class DialogComponent implements OnInit, OnChanges {
106
131
  protected readonly translationContext = "DIALOG.";
107
132
  ngOnInit(): void;
108
133
  ngOnChanges(changes: SimpleChanges): void;
134
+ ngAfterViewInit(): void;
109
135
  areButtonsDisabled(): void;
110
136
  dismiss(): void;
111
137
  onClose(event: Event): void;
112
138
  onSecondaryButtonClick(event: Event): void;
113
139
  onPrimaryButtonClick(event: Event): void;
114
140
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, [{ optional: true; }, null, null]>;
115
- 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; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "disablePrimaryButton": { "alias": "disablePrimaryButton"; "required": false; }; "disableClose": { "alias": "disableClose"; "required": false; }; "shouldDisableButtons": { "alias": "shouldDisableButtons"; "required": false; }; }, { "closeEvent": "closeEvent"; "secondaryButtonClickEvent": "secondaryButtonClickEvent"; "primaryButtonClickEvent": "primaryButtonClickEvent"; }, never, ["*"], false, never>;
141
+ 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; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "disablePrimaryButton": { "alias": "disablePrimaryButton"; "required": false; }; "disableClose": { "alias": "disableClose"; "required": false; }; "shouldDisableButtons": { "alias": "shouldDisableButtons"; "required": false; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; }; "ariaDescribedby": { "alias": "ariaDescribedby"; "required": false; }; "keyboardOpen": { "alias": "keyboardOpen"; "required": false; }; }, { "closeEvent": "closeEvent"; "secondaryButtonClickEvent": "secondaryButtonClickEvent"; "primaryButtonClickEvent": "primaryButtonClickEvent"; }, never, ["*"], false, never>;
116
142
  }
@@ -7,7 +7,7 @@ export declare class DialogService {
7
7
  private matDialog;
8
8
  private readonly defaultAppTheme;
9
9
  constructor(matDialog: MatDialog, defaultAppTheme: ApplicationTheme);
10
- open(dialogComponent: ComponentType<any>, applicationTheme?: ApplicationTheme, size?: DialogSize, panelClass?: string, extraData?: any, backdropClass?: string): MatDialogRef<any>;
10
+ open(dialogComponent: ComponentType<any>, applicationTheme?: ApplicationTheme, size?: DialogSize, panelClass?: string, extraData?: any, backdropClass?: string, keyboardOpen?: boolean): MatDialogRef<any>;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, [null, { optional: true; }]>;
12
12
  static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
13
13
  }
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ChangeDetectorRef, DestroyRef, DoCheck, EventEmitter, NgZone, OnInit } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, DestroyRef, DoCheck, ElementRef, EventEmitter, NgZone, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor, NgControl } from '@angular/forms';
3
3
  import { FieldType } from '../../components/field/field.model';
4
4
  import { MatIconRegistry } from '@angular/material/icon';
@@ -244,7 +244,7 @@ export declare class FieldComponent implements OnInit, ControlValueAccessor, DoC
244
244
  hasError: boolean;
245
245
  validateEvent: EventEmitter<string>;
246
246
  fieldBlur: EventEmitter<void>;
247
- field: HTMLInputElement;
247
+ field: ElementRef<HTMLInputElement>;
248
248
  get getPasswordIcon(): IconName;
249
249
  isActiveField: boolean;
250
250
  isActiveHover: boolean;
@@ -288,6 +288,7 @@ export declare class FieldComponent implements OnInit, ControlValueAccessor, DoC
288
288
  private clearSpace;
289
289
  onBlur(): void;
290
290
  trackByFn: (index: number, value: any) => any;
291
+ focus(): void;
291
292
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldComponent, [{ optional: true; }, null, null, null, { optional: true; self: true; }, null, null, null]>;
292
293
  static ɵcmp: i0.ɵɵComponentDeclaration<FieldComponent, "ui-field", never, { "fullWidth": { "alias": "fullWidth"; "required": false; }; "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; }; "allowNegative": { "alias": "allowNegative"; "required": false; }; "language": { "alias": "language"; "required": false; }; "showBottomContent": { "alias": "showBottomContent"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "isValid": { "alias": "isValid"; "required": false; }; "maxCharacters": { "alias": "maxCharacters"; "required": false; }; "trimOnBlur": { "alias": "trimOnBlur"; "required": false; }; "trimOnSubmit": { "alias": "trimOnSubmit"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; "hideBuiltInErrors": { "alias": "hideBuiltInErrors"; "required": false; }; "hideLabelInErrors": { "alias": "hideLabelInErrors"; "required": false; }; "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "textareaHeight": { "alias": "textareaHeight"; "required": false; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; }; "ariaDescribedby": { "alias": "ariaDescribedby"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; }, { "validateEvent": "validateEvent"; "fieldBlur": "fieldBlur"; }, never, never, false, never>;
293
294
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
1
+ import { EventEmitter, OnChanges, OnInit, SimpleChanges, ElementRef } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { ApplicationTheme } from '../../models/application-theme.model';
4
4
  import * as i0 from "@angular/core";
@@ -91,6 +91,7 @@ export declare class FileUploadComponent implements OnInit, OnChanges, ControlVa
91
91
  */
92
92
  ariaRequired: boolean;
93
93
  OnDrop: EventEmitter<File>;
94
+ fileDrop: ElementRef<HTMLInputElement>;
94
95
  protected readonly translationContext = "FILE_UPLOAD.";
95
96
  /**
96
97
  * @ignore
@@ -104,6 +105,7 @@ export declare class FileUploadComponent implements OnInit, OnChanges, ControlVa
104
105
  progress: boolean;
105
106
  success: boolean;
106
107
  browse: boolean;
108
+ isCanceled: boolean;
107
109
  constructor(defaultAppTheme: ApplicationTheme);
108
110
  ngOnInit(): void;
109
111
  onFileDropped(files: FileList): void;
@@ -119,6 +121,7 @@ export declare class FileUploadComponent implements OnInit, OnChanges, ControlVa
119
121
  setDisabledState(isDisabled: boolean): void;
120
122
  private getCompanyColor;
121
123
  private fileSizeToMB;
124
+ onKeydown(ev: KeyboardEvent): void;
122
125
  static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, [{ optional: true; }]>;
123
126
  static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ui-file-upload", never, { "maxFileSizeMB": { "alias": "maxFileSizeMB"; "required": false; }; "minFileSizeMB": { "alias": "minFileSizeMB"; "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; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaRequired": { "alias": "ariaRequired"; "required": false; }; }, { "OnDrop": "OnDrop"; }, never, never, false, never>;
124
127
  }
@@ -1,7 +1,7 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { ApplicationTheme } from '../../models/application-theme.model';
3
3
  import * as i0 from "@angular/core";
4
- export declare class ScaleComponent {
4
+ export declare class ScaleComponent implements OnInit, OnChanges {
5
5
  private readonly defaultAppTheme;
6
6
  private readonly MIN_LENGTH;
7
7
  private readonly DEFAULT_LENGTH;
@@ -26,9 +26,24 @@ export declare class ScaleComponent {
26
26
  * @memberof ScaleComponent
27
27
  */
28
28
  applicationTheme: ApplicationTheme;
29
+ /**
30
+ * Color of the option hover.
31
+ * Defaults to Test Gorilla primary color.
32
+ *
33
+ * @type {string}
34
+ * @memberof ScaleComponent
35
+ */
36
+ companyColor: string;
29
37
  selectedIndexChange: EventEmitter<number>;
38
+ styles: import("@angular/core").WritableSignal<{
39
+ '--hover-color': string;
40
+ '--selected-color': string;
41
+ }>;
30
42
  constructor(defaultAppTheme: ApplicationTheme);
43
+ ngOnInit(): void;
44
+ ngOnChanges(changes: SimpleChanges): void;
31
45
  protected select(index: number): void;
46
+ private setCompanyColor;
32
47
  static ɵfac: i0.ɵɵFactoryDeclaration<ScaleComponent, [{ optional: true; }]>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<ScaleComponent, "ui-scale", never, { "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "length": { "alias": "length"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; }, { "selectedIndexChange": "selectedIndexChange"; }, never, never, false, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScaleComponent, "ui-scale", never, { "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "length": { "alias": "length"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "companyColor": { "alias": "companyColor"; "required": false; }; }, { "selectedIndexChange": "selectedIndexChange"; }, never, never, false, never>;
34
49
  }
@@ -33,6 +33,7 @@ export declare class SideSheetComponent implements OnInit {
33
33
  openChange: EventEmitter<boolean>;
34
34
  drawer: MatDrawer;
35
35
  container: ViewContainerRef;
36
+ onEscPress(_: KeyboardEvent): void;
36
37
  protected title: string;
37
38
  protected showBackButton: boolean;
38
39
  protected showTitleTooltip: boolean;
@@ -60,7 +60,8 @@
60
60
  "OFF": "Off"
61
61
  },
62
62
  "DIALOG": {
63
- "CLOSE_LABEL": "Close dialog"
63
+ "CLOSE_LABEL": "Close dialog",
64
+ "CLOSED": "Dialog closed"
64
65
  },
65
66
  "FIELD": {
66
67
  "VIEW_PASSWORD": "View password"
@@ -75,7 +76,8 @@
75
76
  "MIN_SIZE_ERROR": "Upload a file larger than ({{min}} MB)",
76
77
  "UPLOADING": "Uploading",
77
78
  "SUPPORTED_FILE_TYPES": "Supported file types:",
78
- "CHANGE": "Change"
79
+ "CHANGE": "Change",
80
+ "FILE_UPLOADING_SUCCESS": "File uploaded successfully"
79
81
  },
80
82
  "NAVBAR": {
81
83
  "LOG_OUT": "Log out"