@klippa/ngx-enhancy-forms 16.21.0 → 16.22.12

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,14 +1,18 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { ValueAccessorBase } from '../value-accessor-base/value-accessor-base.component';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class TextInputComponent extends ValueAccessorBase<string> {
5
+ private isPeekingPassword;
5
6
  placeholder: string;
6
7
  type: 'text' | 'password';
7
8
  clearable: boolean;
8
9
  icon: 'search';
9
10
  hasBorderLeft: boolean;
10
11
  hasBorderRight: boolean;
12
+ passwordPeekIcon: TemplateRef<any>;
11
13
  onBlur: EventEmitter<void>;
14
+ togglePeakPassword(): void;
15
+ getType(): 'text' | 'password';
12
16
  static ɵfac: i0.ɵɵFactoryDeclaration<TextInputComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "klp-form-text-input", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "hasBorderLeft": { "alias": "hasBorderLeft"; "required": false; }; "hasBorderRight": { "alias": "hasBorderRight"; "required": false; }; }, { "onBlur": "onBlur"; }, never, never, false, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "klp-form-text-input", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "hasBorderLeft": { "alias": "hasBorderLeft"; "required": false; }; "hasBorderRight": { "alias": "hasBorderRight"; "required": false; }; "passwordPeekIcon": { "alias": "passwordPeekIcon"; "required": false; }; }, { "onBlur": "onBlur"; }, never, never, false, never>;
14
18
  }
@@ -1,6 +1,7 @@
1
1
  import { ValueAccessorBase } from '../value-accessor-base/value-accessor-base.component';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class ToggleComponent extends ValueAccessorBase<boolean> {
4
+ transparentBackground: boolean;
4
5
  static ɵfac: i0.ɵɵFactoryDeclaration<ToggleComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "klp-form-toggle", never, {}, {}, never, never, false, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "klp-form-toggle", never, { "transparentBackground": { "alias": "transparentBackground"; "required": false; }; }, {}, never, never, false, never>;
6
7
  }
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ElementRef, InjectionToken, TemplateRef } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, InjectionToken, OnDestroy, TemplateRef } from '@angular/core';
2
2
  import { AbstractControl, UntypedFormControl } from '@angular/forms';
3
3
  import { ValueAccessorBase } from '../../elements/value-accessor-base/value-accessor-base.component';
4
4
  import { CustomErrorMessages, FormErrorMessages } from '../../types';
@@ -6,7 +6,7 @@ import { FormComponent } from '../form.component';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare const FORM_ERROR_MESSAGES: InjectionToken<CustomErrorMessages>;
8
8
  export declare const DEFAULT_ERROR_MESSAGES: FormErrorMessages;
9
- export declare class FormElementComponent implements AfterViewInit {
9
+ export declare class FormElementComponent implements AfterViewInit, OnDestroy {
10
10
  private parent;
11
11
  private customMessages;
12
12
  private elRef;
@@ -34,12 +34,14 @@ export declare class FormElementComponent implements AfterViewInit {
34
34
  private input;
35
35
  errorFullyVisible: boolean;
36
36
  private popupState;
37
+ private subscriptions;
37
38
  constructor(parent: FormComponent, customMessages: CustomErrorMessages, elRef: ElementRef);
38
39
  ngAfterViewInit(): Promise<void>;
39
40
  shouldShowErrorMessages(): boolean;
40
41
  substituteParameters(message: string, parameters: Record<string, any>): string;
41
42
  registerControl(formControl: UntypedFormControl, input?: ValueAccessorBase<any>): void;
42
43
  determinePopupState(): void;
44
+ private setUpErrorTooltipListeners;
43
45
  unregisterControl(formControl: UntypedFormControl): void;
44
46
  getAttachedControl(): AbstractControl;
45
47
  getAttachedInput(): ValueAccessorBase<any>;
@@ -67,6 +69,7 @@ export declare class FormElementComponent implements AfterViewInit {
67
69
  closePopup(): void;
68
70
  togglePopup(): void;
69
71
  setErrorTooltipOffset: () => void;
72
+ ngOnDestroy(): void;
70
73
  static ɵfac: i0.ɵɵFactoryDeclaration<FormElementComponent, [{ optional: true; }, { optional: true; }, null]>;
71
74
  static ɵcmp: i0.ɵɵComponentDeclaration<FormElementComponent, "klp-form-element", never, { "caption": { "alias": "caption"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "captionSpacing": { "alias": "captionSpacing"; "required": false; }; "verticalAlignment": { "alias": "verticalAlignment"; "required": false; }; "spaceDistribution": { "alias": "spaceDistribution"; "required": false; }; "swapInputAndCaption": { "alias": "swapInputAndCaption"; "required": false; }; "errorMessageAsTooltip": { "alias": "errorMessageAsTooltip"; "required": false; }; }, {}, ["fieldInput"], ["*"], false, never>;
72
75
  }
@@ -1,12 +1,18 @@
1
- import { ElementRef } from "@angular/core";
1
+ import { ApplicationRef, ElementRef, OnChanges, SimpleChanges, TemplateRef } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
- export declare class WithTooltipDirective {
3
+ export declare class WithTooltipDirective implements OnChanges {
4
+ private el;
5
+ private appRef;
4
6
  private div;
5
7
  private triangle;
6
8
  private triangleWhite;
7
9
  klpWithTooltip: 'orange' | 'black';
8
10
  tooltipText: string;
9
- constructor(el: ElementRef);
11
+ tooltipTemplate: TemplateRef<any>;
12
+ position: 'top' | 'bottom';
13
+ private templateInstance;
14
+ constructor(el: ElementRef, appRef: ApplicationRef);
15
+ ngOnChanges(simpleChanges: SimpleChanges): void;
10
16
  static ɵfac: i0.ɵɵFactoryDeclaration<WithTooltipDirective, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<WithTooltipDirective, "[klpWithTooltip]", never, { "klpWithTooltip": { "alias": "klpWithTooltip"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; }, {}, never, never, false, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<WithTooltipDirective, "[klpWithTooltip]", never, { "klpWithTooltip": { "alias": "klpWithTooltip"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; }; "position": { "alias": "position"; "required": false; }; }, {}, never, never, false, never>;
12
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klippa/ngx-enhancy-forms",
3
- "version": "16.21.0",
3
+ "version": "16.22.12",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },