@testgorilla/tgo-ui 2.3.8 → 2.3.10

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 (31) hide show
  1. package/components/autocomplete/autocomplete.component.d.ts +1 -1
  2. package/components/autocomplete/autocomplete.component.module.d.ts +2 -1
  3. package/components/checkbox/checkbox.component.d.ts +1 -1
  4. package/components/checkbox/checkbox.component.module.d.ts +2 -1
  5. package/components/datepicker/datepicker.component.d.ts +5 -3
  6. package/components/dropdown/dropdown.component.d.ts +1 -1
  7. package/components/dropdown/dropdown.component.module.d.ts +2 -1
  8. package/components/field/field.component.d.ts +1 -1
  9. package/components/field/field.component.module.d.ts +2 -1
  10. package/components/phone-input/phone-input.component.d.ts +1 -1
  11. package/components/phone-input/phone-input.component.module.d.ts +2 -1
  12. package/components/table/table.model.d.ts +1 -0
  13. package/esm2022/components/autocomplete/autocomplete.component.mjs +12 -9
  14. package/esm2022/components/autocomplete/autocomplete.component.module.mjs +5 -2
  15. package/esm2022/components/checkbox/checkbox.component.mjs +6 -5
  16. package/esm2022/components/checkbox/checkbox.component.module.mjs +4 -3
  17. package/esm2022/components/datepicker/datepicker.component.mjs +16 -14
  18. package/esm2022/components/dropdown/dropdown.component.mjs +6 -5
  19. package/esm2022/components/dropdown/dropdown.component.module.mjs +5 -2
  20. package/esm2022/components/field/field.component.mjs +7 -6
  21. package/esm2022/components/field/field.component.module.mjs +5 -2
  22. package/esm2022/components/password-criteria/password.component.mjs +5 -5
  23. package/esm2022/components/phone-input/phone-input.component.mjs +8 -7
  24. package/esm2022/components/phone-input/phone-input.component.module.mjs +5 -2
  25. package/esm2022/components/table/table.component.mjs +3 -3
  26. package/esm2022/components/table/table.model.mjs +1 -1
  27. package/esm2022/pipes/has-validation-error.pipe.mjs +27 -0
  28. package/fesm2022/testgorilla-tgo-ui.mjs +97 -61
  29. package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
  30. package/package.json +1 -1
  31. package/pipes/has-validation-error.pipe.d.ts +15 -0
@@ -148,7 +148,7 @@ export declare class AutocompleteComponent implements ControlValueAccessor, OnCh
148
148
  protected translationContext: string;
149
149
  constructor(defaultAppTheme: ApplicationTheme, cdr: ChangeDetectorRef, domSanitizer: DomSanitizer, ngControl: NgControl);
150
150
  /**
151
- * Used to mark component view as dirty when touched programmatically with markAsTouched/markAllAsTouched
151
+ * Used to mark component view as dirty when touched programmatically with markAsTouched/markAllAsTouched or errors
152
152
  * to display validation errors that might happen (e.g. required)
153
153
  */
154
154
  ngDoCheck(): void;
@@ -13,8 +13,9 @@ import * as i11 from "@angular/material/chips";
13
13
  import * as i12 from "../icon/icon.component.module";
14
14
  import * as i13 from "../../pipes/ui-translate.pipe";
15
15
  import * as i14 from "../validation-error/validation-error.module";
16
+ import * as i15 from "../../pipes/has-validation-error.pipe";
16
17
  export declare class AutocompleteComponentModule {
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponentModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<AutocompleteComponentModule, [typeof i1.AutocompleteComponent, typeof i2.TransformItemPipe, typeof i3.IncludesPipe, typeof i4.SelectTextDirective], [typeof i5.CommonModule, typeof i6.MatFormFieldModule, typeof i7.MatAutocompleteModule, typeof i8.MatInputModule, typeof i9.FormsModule, typeof i10.TagComponentModule, typeof i11.MatChipsModule, typeof i12.IconComponentModule, typeof i13.UiTranslatePipe, typeof i14.ValidationErrorModule], [typeof i1.AutocompleteComponent]>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AutocompleteComponentModule, [typeof i1.AutocompleteComponent, typeof i2.TransformItemPipe, typeof i3.IncludesPipe, typeof i4.SelectTextDirective], [typeof i5.CommonModule, typeof i6.MatFormFieldModule, typeof i7.MatAutocompleteModule, typeof i8.MatInputModule, typeof i9.FormsModule, typeof i10.TagComponentModule, typeof i11.MatChipsModule, typeof i12.IconComponentModule, typeof i13.UiTranslatePipe, typeof i14.ValidationErrorModule, typeof i15.HasValidationErrorPipe], [typeof i1.AutocompleteComponent]>;
19
20
  static ɵinj: i0.ɵɵInjectorDeclaration<AutocompleteComponentModule>;
20
21
  }
@@ -116,7 +116,7 @@ export declare class CheckboxComponent implements OnInit, ControlValueAccessor,
116
116
  classMultiple: string;
117
117
  constructor(defaultAppTheme: ApplicationTheme, cdr: ChangeDetectorRef, ngControl: NgControl);
118
118
  /**
119
- * Used to mark component view as dirty when touched programmatically with markAsTouched/markAllAsTouched
119
+ * Used to mark component view as dirty when touched programmatically with markAsTouched/markAllAsTouched or errors
120
120
  * to display validation errors that might happen (e.g. required)
121
121
  */
122
122
  ngDoCheck(): void;
@@ -7,8 +7,9 @@ import * as i5 from "@angular/material/input";
7
7
  import * as i6 from "../icon/icon.component.module";
8
8
  import * as i7 from "../../pipes/ui-translate.pipe";
9
9
  import * as i8 from "../validation-error/validation-error.module";
10
+ import * as i9 from "../../pipes/has-validation-error.pipe";
10
11
  export declare class CheckboxComponentModule {
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponentModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<CheckboxComponentModule, [typeof i1.CheckboxComponent], [typeof i2.CommonModule, typeof i3.MatCheckboxModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.MatInputModule, typeof i6.IconComponentModule, typeof i7.UiTranslatePipe, typeof i8.ValidationErrorModule], [typeof i1.CheckboxComponent]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CheckboxComponentModule, [typeof i1.CheckboxComponent], [typeof i2.CommonModule, typeof i3.MatCheckboxModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.MatInputModule, typeof i6.IconComponentModule, typeof i7.UiTranslatePipe, typeof i8.ValidationErrorModule, typeof i9.HasValidationErrorPipe], [typeof i1.CheckboxComponent]>;
13
14
  static ɵinj: i0.ɵɵInjectorDeclaration<CheckboxComponentModule>;
14
15
  }
@@ -2,10 +2,12 @@ import { ChangeDetectorRef, EventEmitter, OnChanges } from '@angular/core';
2
2
  import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
3
3
  import { ApplicationTheme } from '../../models/application-theme.model';
4
4
  import { MatDatepicker } from '@angular/material/datepicker';
5
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class DatepickerComponent implements OnChanges, ControlValueAccessor {
7
8
  private readonly defaultAppTheme;
8
9
  private cdr;
10
+ private sanitizer;
9
11
  class: string;
10
12
  /**
11
13
  * Form field label
@@ -42,7 +44,7 @@ export declare class DatepickerComponent implements OnChanges, ControlValueAcces
42
44
  * @memberof DatepickerComponent
43
45
  */
44
46
  value?: string | Date;
45
- _errors: string[];
47
+ _errors: SafeHtml[];
46
48
  /**
47
49
  * Input field errors
48
50
  *
@@ -156,7 +158,7 @@ export declare class DatepickerComponent implements OnChanges, ControlValueAcces
156
158
  }>;
157
159
  errorsLength: boolean;
158
160
  protected translationContext: string;
159
- constructor(defaultAppTheme: ApplicationTheme, cdr: ChangeDetectorRef);
161
+ constructor(defaultAppTheme: ApplicationTheme, cdr: ChangeDetectorRef, sanitizer: DomSanitizer);
160
162
  get hint(): string;
161
163
  ngOnInit(): void;
162
164
  ngOnChanges(): void;
@@ -171,6 +173,6 @@ export declare class DatepickerComponent implements OnChanges, ControlValueAcces
171
173
  private setRange;
172
174
  private getRange;
173
175
  onInput(event: Event): void;
174
- static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, [{ optional: true; }, null]>;
176
+ static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, [{ optional: true; }, null, null]>;
175
177
  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; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "monthPicker": { "alias": "monthPicker"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; }, { "changed": "changed"; }, never, never, false, never>;
176
178
  }
@@ -126,7 +126,7 @@ export declare class DropdownComponent implements OnInit, ControlValueAccessor,
126
126
  errorsLength: boolean;
127
127
  showCheck: boolean;
128
128
  /**
129
- * Used to mark component view as dirty when touched programmatically with markAsTouched/markAllAsTouched
129
+ * Used to mark component view as dirty when touched programmatically with markAsTouched/markAllAsTouched or errors
130
130
  * to display validation errors that might happen (e.g. required)
131
131
  */
132
132
  ngDoCheck(): void;
@@ -9,8 +9,9 @@ import * as i7 from "../button/button.component.module";
9
9
  import * as i8 from "@angular/material/select";
10
10
  import * as i9 from "../../pipes/ui-translate.pipe";
11
11
  import * as i10 from "../validation-error/validation-error.module";
12
+ import * as i11 from "../../pipes/has-validation-error.pipe";
12
13
  export declare class DropdownComponentModule {
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponentModule, never>;
14
- 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.UiTranslatePipe, typeof i10.ValidationErrorModule], [typeof i1.DropdownComponent]>;
15
+ 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.UiTranslatePipe, typeof i10.ValidationErrorModule, typeof i11.HasValidationErrorPipe], [typeof i1.DropdownComponent]>;
15
16
  static ɵinj: i0.ɵɵInjectorDeclaration<DropdownComponentModule>;
16
17
  }
@@ -184,7 +184,7 @@ export declare class FieldComponent implements OnInit, ControlValueAccessor, DoC
184
184
  onTouch: () => void;
185
185
  constructor(defaultAppTheme: ApplicationTheme, matIconRegistry: MatIconRegistry, domSanitizer: DomSanitizer, cdr: ChangeDetectorRef, ngControl: NgControl);
186
186
  /**
187
- * Used to mark component view as dirty when touched programmatically with markAsTouched/markAllAsTouched
187
+ * Used to mark component view as dirty when touched programmatically with markAsTouched/markAllAsTouched or errors
188
188
  * to display validation errors that might happen (e.g. required)
189
189
  */
190
190
  ngDoCheck(): void;
@@ -10,8 +10,9 @@ import * as i8 from "../button/button.component.module";
10
10
  import * as i9 from "@angular/material/icon";
11
11
  import * as i10 from "../../pipes/ui-translate.pipe";
12
12
  import * as i11 from "../validation-error/validation-error.module";
13
+ import * as i12 from "../../pipes/has-validation-error.pipe";
13
14
  export declare class FieldComponentModule {
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldComponentModule, never>;
15
- 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.UiTranslatePipe, typeof i11.ValidationErrorModule], [typeof i1.FieldComponent]>;
16
+ 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.UiTranslatePipe, typeof i11.ValidationErrorModule, typeof i12.HasValidationErrorPipe], [typeof i1.FieldComponent]>;
16
17
  static ɵinj: i0.ɵɵInjectorDeclaration<FieldComponentModule>;
17
18
  }
@@ -110,7 +110,7 @@ export declare class PhoneInputComponent implements OnInit, OnDestroy, ControlVa
110
110
  private unsubscribeAll$;
111
111
  constructor(ngControl: NgControl, errorMatcher: ErrorStateMatcher, fb: UntypedFormBuilder, focusMonitor: FocusMonitor, ref: ChangeDetectorRef, iconRegistry: MatIconRegistry, sanitizer: DomSanitizer, defaultAppTheme: ApplicationTheme);
112
112
  /**
113
- * Used to mark component view as dirty when touched programmatically with markAsTouched/markAllAsTouched
113
+ * Used to mark component view as dirty when touched programmatically with markAsTouched/markAllAsTouched or errors
114
114
  * to display validation errors that might happen (e.g. required)
115
115
  */
116
116
  ngDoCheck(): void;
@@ -12,8 +12,9 @@ import * as i10 from "../icon/icon.component.module";
12
12
  import * as i11 from "../spinner/spinner.module";
13
13
  import * as i12 from "../../pipes/ui-translate.pipe";
14
14
  import * as i13 from "../validation-error/validation-error.module";
15
+ import * as i14 from "../../pipes/has-validation-error.pipe";
15
16
  export declare class PhoneInputComponentModule {
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<PhoneInputComponentModule, never>;
17
- static ɵmod: i0.ɵɵNgModuleDeclaration<PhoneInputComponentModule, [typeof i1.PhoneInputComponent, typeof i2.JoinStringsPipe], [typeof i3.CommonModule, typeof i4.MatProgressSpinnerModule, typeof i5.ReactiveFormsModule, typeof i6.MatSelectModule, typeof i7.MatIconModule, typeof i8.MatInputModule, typeof i9.NgxMatSelectSearchModule, typeof i10.IconComponentModule, typeof i11.SpinnerComponentModule, typeof i12.UiTranslatePipe, typeof i13.ValidationErrorModule], [typeof i1.PhoneInputComponent]>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PhoneInputComponentModule, [typeof i1.PhoneInputComponent, typeof i2.JoinStringsPipe], [typeof i3.CommonModule, typeof i4.MatProgressSpinnerModule, typeof i5.ReactiveFormsModule, typeof i6.MatSelectModule, typeof i7.MatIconModule, typeof i8.MatInputModule, typeof i9.NgxMatSelectSearchModule, typeof i10.IconComponentModule, typeof i11.SpinnerComponentModule, typeof i12.UiTranslatePipe, typeof i13.ValidationErrorModule, typeof i14.HasValidationErrorPipe], [typeof i1.PhoneInputComponent]>;
18
19
  static ɵinj: i0.ɵɵInjectorDeclaration<PhoneInputComponentModule>;
19
20
  }
@@ -20,6 +20,7 @@ export interface TableColumn {
20
20
  bold?: boolean;
21
21
  showTooltip?: boolean;
22
22
  allowSort?: boolean;
23
+ isSticky?: boolean;
23
24
  headerCellTemplate?: TemplateRef<any>;
24
25
  rowCellTemplate?: TemplateRef<any>;
25
26
  }