ctt-puro 0.43.5 → 0.44.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.
@@ -1,11 +1,12 @@
1
- import { ChangeDetectorRef, EventEmitter, OnInit, WritableSignal } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter, OnInit, NgZone } from '@angular/core';
2
2
  import { FormBuilder, FormGroup } from '@angular/forms';
3
3
  import { PuroButtonI, PuroImageI, PuroInputI, PuroTagsI, PuroTextsColorsI } from '../../interfaces';
4
4
  import { PuroDropdownI } from '../../interfaces/puro-dropdown.interface';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class PuroEventsFormComponent implements OnInit {
7
7
  private readonly fb;
8
- private cdr;
8
+ private readonly cdr;
9
+ private readonly ngZone;
9
10
  title?: string;
10
11
  description?: string;
11
12
  ciTitle?: string;
@@ -30,19 +31,26 @@ export declare class PuroEventsFormComponent implements OnInit {
30
31
  img?: PuroImageI;
31
32
  conditionsLink?: string;
32
33
  applyButton?: PuroButtonI;
33
- seeAllButton?: PuroButtonI;
34
34
  tags?: PuroTagsI;
35
35
  textColors?: PuroTextsColorsI;
36
36
  submitFormValue: EventEmitter<any>;
37
37
  form: FormGroup;
38
- formReady$: WritableSignal<boolean>;
39
- constructor(fb: FormBuilder, cdr: ChangeDetectorRef);
38
+ formReady$: import("@angular/core").WritableSignal<boolean>;
39
+ activeTimepicker: string | null;
40
+ hours: string[];
41
+ private removeOutsideListener?;
42
+ constructor(fb: FormBuilder, cdr: ChangeDetectorRef, ngZone: NgZone);
40
43
  ngOnInit(): void;
41
- initializeForm(): void;
44
+ generateHours(): void;
45
+ openTimepicker(id: 'sHourInput' | 'fHourInput', event: Event): void;
46
+ private registerOutsideClick;
47
+ selectHour(target: 'sHourInput' | 'fHourInput', hour: string): void;
48
+ private buildForm;
42
49
  submitForm(e?: Event): void;
43
50
  validateInput(input: PuroInputI): void;
44
51
  inputChange(event: Event, input: PuroInputI): void;
45
52
  resetForm(): void;
53
+ private phoneValidator;
46
54
  static ɵfac: i0.ɵɵFactoryDeclaration<PuroEventsFormComponent, never>;
47
- static ɵcmp: i0.ɵɵComponentDeclaration<PuroEventsFormComponent, "lib-puro-events-form", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "ciTitle": { "alias": "ciTitle"; "required": false; }; "dTitle": { "alias": "dTitle"; "required": false; }; "howTitle": { "alias": "howTitle"; "required": false; }; "neDropdown": { "alias": "neDropdown"; "required": false; }; "othersDropdown": { "alias": "othersDropdown"; "required": false; }; "nameInput": { "alias": "nameInput"; "required": false; }; "surnameInput": { "alias": "surnameInput"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "phoneInput": { "alias": "phoneInput"; "required": false; }; "emailInput": { "alias": "emailInput"; "required": false; }; "companyNameInput": { "alias": "companyNameInput"; "required": false; }; "howTextarea": { "alias": "howTextarea"; "required": false; }; "infoTextarea": { "alias": "infoTextarea"; "required": false; }; "npInput": { "alias": "npInput"; "required": false; }; "dateInput": { "alias": "dateInput"; "required": false; }; "sHourInput": { "alias": "sHourInput"; "required": false; }; "fHourInput": { "alias": "fHourInput"; "required": false; }; "others": { "alias": "others"; "required": false; }; "requiredLabel": { "alias": "requiredLabel"; "required": false; }; "img": { "alias": "img"; "required": false; }; "conditionsLink": { "alias": "conditionsLink"; "required": false; }; "applyButton": { "alias": "applyButton"; "required": false; }; "seeAllButton": { "alias": "seeAllButton"; "required": false; }; "tags": { "alias": "tags"; "required": false; }; "textColors": { "alias": "textColors"; "required": false; }; }, { "submitFormValue": "submitFormValue"; }, never, never, true, never>;
55
+ static ɵcmp: i0.ɵɵComponentDeclaration<PuroEventsFormComponent, "lib-puro-events-form", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "ciTitle": { "alias": "ciTitle"; "required": false; }; "dTitle": { "alias": "dTitle"; "required": false; }; "howTitle": { "alias": "howTitle"; "required": false; }; "neDropdown": { "alias": "neDropdown"; "required": false; }; "othersDropdown": { "alias": "othersDropdown"; "required": false; }; "nameInput": { "alias": "nameInput"; "required": false; }; "surnameInput": { "alias": "surnameInput"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "phoneInput": { "alias": "phoneInput"; "required": false; }; "emailInput": { "alias": "emailInput"; "required": false; }; "companyNameInput": { "alias": "companyNameInput"; "required": false; }; "howTextarea": { "alias": "howTextarea"; "required": false; }; "infoTextarea": { "alias": "infoTextarea"; "required": false; }; "npInput": { "alias": "npInput"; "required": false; }; "dateInput": { "alias": "dateInput"; "required": false; }; "sHourInput": { "alias": "sHourInput"; "required": false; }; "fHourInput": { "alias": "fHourInput"; "required": false; }; "others": { "alias": "others"; "required": false; }; "requiredLabel": { "alias": "requiredLabel"; "required": false; }; "img": { "alias": "img"; "required": false; }; "conditionsLink": { "alias": "conditionsLink"; "required": false; }; "applyButton": { "alias": "applyButton"; "required": false; }; "tags": { "alias": "tags"; "required": false; }; "textColors": { "alias": "textColors"; "required": false; }; }, { "submitFormValue": "submitFormValue"; }, never, never, true, never>;
48
56
  }
@@ -13,6 +13,7 @@ export declare class MapperService {
13
13
  getImageResponsive(image: ImageResponse | undefined): PuroImageI | undefined;
14
14
  getArrayImageResponsive(images: ImageResponse[] | undefined): PuroImageI[] | undefined;
15
15
  getView(view: PuroViewsType | undefined): 'left' | 'right';
16
+ sanitize(name: string): string;
16
17
  private generateAgesOptions;
17
18
  mapComponents<T>(body: any[], addons?: ComponentsAddons): BodyComponent<T>[];
18
19
  mapGrid3colSlider(props: any | undefined): PuroGrid3colSliderI | undefined;
@@ -85,7 +86,7 @@ export declare class MapperService {
85
86
  mapTimeline(props: any | undefined): PuroTimelineI | undefined;
86
87
  mapHeadIntro(props: any | undefined): PuroHeadIntroI | undefined;
87
88
  mapCareersForm(props: any | undefined, ndPropsConsult: any | undefined): PuroCareersFormI | undefined;
88
- mapEventsForm(props: any | undefined, ndPropsConsult: any | undefined): PuroEventsFormI | undefined;
89
+ mapEventsForm(props: any | undefined): PuroEventsFormI | undefined;
89
90
  mapModalInfo(props: any | undefined, reverse: boolean): PuroModalInfoI | undefined;
90
91
  mapIframe(props: any | undefined): PuroIframeI | undefined;
91
92
  static ɵfac: i0.ɵɵFactoryDeclaration<MapperService, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctt-puro",
3
- "version": "0.43.5",
3
+ "version": "0.44.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",