@testgorilla/tgo-ui 2.0.6 → 2.0.7

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,4 +1,4 @@
1
- import { AfterViewInit, EventEmitter, OnInit, SimpleChanges } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { IconName } from '../icon/icon.model';
3
3
  import { ButtonBadgeConfig, ButtonColor, ButtonIconPosition, ButtonSize, ButtonState, ButtonType, IconButtonSize, LinkUrlTarget } from './button.model';
4
4
  import { MatButton } from '@angular/material/button';
@@ -6,6 +6,8 @@ import { ApplicationTheme } from '../../models/application-theme.model';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ButtonComponent implements OnInit, AfterViewInit {
8
8
  private readonly defaultAppTheme;
9
+ get enabled(): string;
10
+ tooltipElement: ElementRef<HTMLElement>;
9
11
  /**
10
12
  * Define button height
11
13
  *
@@ -0,0 +1,41 @@
1
+ import { DestroyRef, EventEmitter } from '@angular/core';
2
+ import { ControlValueAccessor, FormControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class PasswordComponent implements ControlValueAccessor {
5
+ private readonly destroyRef;
6
+ /**
7
+ * The language to be used
8
+ *
9
+ * @type {Language}
10
+ * @memberof PasswordComponent
11
+ */
12
+ language: import("@testgorilla/tgo-ui").Language;
13
+ /**
14
+ * Show criteria for password. Defaults true
15
+ *
16
+ * @type {boolean}
17
+ * @memberof PasswordComponent
18
+ */
19
+ showCriteria: boolean;
20
+ passwordChange: EventEmitter<string>;
21
+ protected formControl: FormControl<string | null>;
22
+ protected criteriaPassed: {
23
+ [key: string]: boolean;
24
+ };
25
+ protected showError: boolean;
26
+ protected progressValue: number;
27
+ protected criteria: {
28
+ translateKey: string;
29
+ key: string;
30
+ }[];
31
+ constructor(destroyRef: DestroyRef);
32
+ checkCriteria(): void;
33
+ countPassed(): number;
34
+ onChange: (v: any) => void;
35
+ onTouch: () => void;
36
+ writeValue(obj: any): void;
37
+ registerOnChange(fn: any): void;
38
+ registerOnTouched(fn: any): void;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<PasswordComponent, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<PasswordComponent, "ui-password-criteria", never, { "language": { "alias": "language"; "required": false; }; "showCriteria": { "alias": "showCriteria"; "required": false; }; }, { "passwordChange": "passwordChange"; }, never, never, false, never>;
41
+ }
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./password.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../field/field.component.module";
5
+ import * as i4 from "@angular/forms";
6
+ import * as i5 from "../icon/icon.component.module";
7
+ import * as i6 from "../progress-bar/progress-bar.component.module";
8
+ import * as i7 from "../../pipes/ui-translate.pipe";
9
+ export declare class PasswordComponentModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<PasswordComponentModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PasswordComponentModule, [typeof i1.PasswordComponent], [typeof i2.CommonModule, typeof i3.FieldComponentModule, typeof i4.ReactiveFormsModule, typeof i5.IconComponentModule, typeof i6.ProgressBarComponentModule, typeof i7.UiTranslatePipe], [typeof i1.PasswordComponent]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<PasswordComponentModule>;
13
+ }
@@ -1,9 +1,9 @@
1
- import { EventEmitter, OnChanges } from '@angular/core';
1
+ import { EventEmitter, OnChanges, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { RegisterFn } from './toggle.model';
4
4
  import { ApplicationTheme } from '../../models/application-theme.model';
5
5
  import * as i0 from "@angular/core";
6
- export declare class ToggleComponent implements ControlValueAccessor, OnChanges {
6
+ export declare class ToggleComponent implements ControlValueAccessor, OnChanges, OnInit {
7
7
  private readonly defaultAppTheme;
8
8
  /**
9
9
  * The `selected` property determines the current state of the toggle switch.
@@ -77,6 +77,7 @@ export declare class ToggleComponent implements ControlValueAccessor, OnChanges
77
77
  protected classes: string;
78
78
  constructor(defaultAppTheme: ApplicationTheme);
79
79
  ngOnChanges(): void;
80
+ ngOnInit(): void;
80
81
  onToggle(): void;
81
82
  writeValue(state: boolean): void;
82
83
  registerOnChange(fn: RegisterFn): void;
@@ -74,5 +74,13 @@
74
74
  },
75
75
  "NAVBAR": {
76
76
  "LOG_OUT": "Log out"
77
+ },
78
+ "PASSWORD": {
79
+ "LOWERCASE": "Contains at least one lowercase",
80
+ "UPPERCASE": "Contains at least one uppercase",
81
+ "NUMBER": "Contains at least one number",
82
+ "SPECIAL_CHARACTER": "Contains at least one special character",
83
+ "CHARACTERS": "Contains at least 12 characters",
84
+ "PASSWORD_PLACEHOLDER": "Password"
77
85
  }
78
86
  }