valtech-components 1.11.65 → 1.11.66

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 (63) hide show
  1. package/esm2022/lib/components/atoms/title/title.component.mjs +2 -2
  2. package/esm2022/lib/components/molecules/check-input/check-input.component.mjs +14 -0
  3. package/esm2022/lib/components/molecules/comment-input/comment-input.component.mjs +19 -0
  4. package/esm2022/lib/components/molecules/date-input/date-input.component.mjs +20 -0
  5. package/esm2022/lib/components/molecules/email-input/email-input.component.mjs +19 -0
  6. package/esm2022/lib/components/molecules/file-input/file-input.component.mjs +37 -0
  7. package/esm2022/lib/components/molecules/hint/hint.component.mjs +29 -0
  8. package/esm2022/lib/components/molecules/hour-input/hour-input.component.mjs +19 -0
  9. package/esm2022/lib/components/molecules/number-input/number-input.component.mjs +19 -0
  10. package/esm2022/lib/components/molecules/password-input/password-input.component.mjs +21 -0
  11. package/esm2022/lib/components/molecules/pin-input/pin-input.component.mjs +39 -0
  12. package/esm2022/lib/components/molecules/prompter/prompter.component.mjs +27 -0
  13. package/esm2022/lib/components/molecules/prompter/types.mjs +2 -0
  14. package/esm2022/lib/components/molecules/radio-input/radio-input.component.mjs +20 -0
  15. package/esm2022/lib/components/molecules/text-input/text-input.component.mjs +20 -0
  16. package/esm2022/lib/components/organisms/footer/footer.component.mjs +25 -0
  17. package/esm2022/lib/components/organisms/footer/types.mjs +2 -0
  18. package/esm2022/lib/components/organisms/form/form-footer/form-footer.component.mjs +36 -0
  19. package/esm2022/lib/components/organisms/form/form.component.mjs +75 -0
  20. package/esm2022/lib/components/organisms/header/header.component.mjs +24 -0
  21. package/esm2022/lib/components/organisms/header/types.mjs +2 -0
  22. package/esm2022/lib/components/organisms/wizard/types.mjs +7 -0
  23. package/esm2022/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.mjs +57 -0
  24. package/esm2022/lib/components/organisms/wizard/wizard.component.mjs +72 -0
  25. package/esm2022/lib/components/types.mjs +16 -1
  26. package/esm2022/lib/services/lang-provider/lang-provider.service.mjs +2 -2
  27. package/esm2022/lib/services/theme.service.mjs +2 -2
  28. package/esm2022/lib/shared/constants/storage.mjs +3 -0
  29. package/esm2022/lib/shared/utils/dom.mjs +17 -0
  30. package/esm2022/lib/valtech-components.module.mjs +102 -5
  31. package/esm2022/public-api.mjs +22 -2
  32. package/fesm2022/valtech-components.mjs +611 -8
  33. package/fesm2022/valtech-components.mjs.map +1 -1
  34. package/lib/components/molecules/check-input/check-input.component.d.ts +8 -0
  35. package/lib/components/molecules/comment-input/comment-input.component.d.ts +12 -0
  36. package/lib/components/molecules/date-input/date-input.component.d.ts +12 -0
  37. package/lib/components/molecules/email-input/email-input.component.d.ts +12 -0
  38. package/lib/components/molecules/file-input/file-input.component.d.ts +18 -0
  39. package/lib/components/molecules/hint/hint.component.d.ts +13 -0
  40. package/lib/components/molecules/hour-input/hour-input.component.d.ts +12 -0
  41. package/lib/components/molecules/number-input/number-input.component.d.ts +12 -0
  42. package/lib/components/molecules/password-input/password-input.component.d.ts +13 -0
  43. package/lib/components/molecules/pin-input/pin-input.component.d.ts +17 -0
  44. package/lib/components/molecules/prompter/prompter.component.d.ts +12 -0
  45. package/lib/components/molecules/prompter/types.d.ts +11 -0
  46. package/lib/components/molecules/radio-input/radio-input.component.d.ts +12 -0
  47. package/lib/components/molecules/text-input/text-input.component.d.ts +12 -0
  48. package/lib/components/organisms/footer/footer.component.d.ts +12 -0
  49. package/lib/components/organisms/footer/types.d.ts +6 -0
  50. package/lib/components/organisms/form/form-footer/form-footer.component.d.ts +16 -0
  51. package/lib/components/organisms/form/form.component.d.ts +24 -0
  52. package/lib/components/organisms/header/header.component.d.ts +12 -0
  53. package/lib/components/organisms/header/types.d.ts +6 -0
  54. package/lib/components/organisms/wizard/types.d.ts +21 -0
  55. package/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.d.ts +21 -0
  56. package/lib/components/organisms/wizard/wizard.component.d.ts +22 -0
  57. package/lib/components/types.d.ts +58 -0
  58. package/lib/shared/utils/dom.d.ts +3 -0
  59. package/lib/valtech-components.module.d.ts +25 -4
  60. package/package.json +3 -2
  61. package/public-api.d.ts +21 -1
  62. package/esm2022/lib/shared/contants/storage.mjs +0 -3
  63. /package/lib/shared/{contants → constants}/storage.d.ts +0 -0
@@ -0,0 +1,8 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CheckInputComponent implements OnInit {
4
+ constructor();
5
+ ngOnInit(): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckInputComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<CheckInputComponent, "val-check-input", never, {}, {}, never, never, false, never>;
8
+ }
@@ -0,0 +1,12 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { InputMetadata } from '../../types';
4
+ import * as i0 from "@angular/core";
5
+ export declare class CommentInputComponent implements OnInit {
6
+ control: FormControl;
7
+ metadata: InputMetadata;
8
+ constructor();
9
+ ngOnInit(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommentInputComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<CommentInputComponent, "val-comment-input", never, { "control": { "alias": "control"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; }, {}, never, never, false, never>;
12
+ }
@@ -0,0 +1,12 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { InputMetadata } from '../../types';
4
+ import * as i0 from "@angular/core";
5
+ export declare class DateInputComponent implements OnInit {
6
+ control: FormControl;
7
+ metadata: InputMetadata;
8
+ constructor();
9
+ ngOnInit(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateInputComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent, "val-date-input", never, { "control": { "alias": "control"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; }, {}, never, never, false, never>;
12
+ }
@@ -0,0 +1,12 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { InputMetadata } from '../../types';
3
+ import { FormControl } from '@angular/forms';
4
+ import * as i0 from "@angular/core";
5
+ export declare class EmailInputComponent implements OnInit {
6
+ control: FormControl;
7
+ metadata: InputMetadata;
8
+ constructor();
9
+ ngOnInit(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<EmailInputComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<EmailInputComponent, "val-email-input", never, { "control": { "alias": "control"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; }, {}, never, never, false, never>;
12
+ }
@@ -0,0 +1,18 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { InputMetadata } from '../../types';
4
+ import { ButtonMetadata } from '../../atoms/button/types';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FileInputComponent implements OnInit {
7
+ fileInput: any;
8
+ control: FormControl;
9
+ metadata: InputMetadata;
10
+ contrastButton: ButtonMetadata;
11
+ selectedFile: File;
12
+ constructor();
13
+ ngOnInit(): void;
14
+ onFileSelected(event: any): void;
15
+ reset(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileInputComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileInputComponent, "val-file-input", never, { "control": { "alias": "control"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; }, {}, never, never, false, never>;
18
+ }
@@ -0,0 +1,13 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { InputMetadata } from '../../types';
3
+ import { FormControl } from '@angular/forms';
4
+ import * as i0 from "@angular/core";
5
+ export declare class HintComponent implements OnInit {
6
+ control: FormControl;
7
+ metadata: InputMetadata;
8
+ constructor();
9
+ ngOnInit(): void;
10
+ get Errors(): string[];
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<HintComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<HintComponent, "val-hint", never, { "control": { "alias": "control"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; }, {}, never, never, false, never>;
13
+ }
@@ -0,0 +1,12 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { InputMetadata } from '../../types';
4
+ import * as i0 from "@angular/core";
5
+ export declare class HourInputComponent implements OnInit {
6
+ control: FormControl;
7
+ metadata: InputMetadata;
8
+ constructor();
9
+ ngOnInit(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<HourInputComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<HourInputComponent, "val-hour-input", never, { "control": { "alias": "control"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; }, {}, never, never, false, never>;
12
+ }
@@ -0,0 +1,12 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { InputMetadata } from '../../types';
4
+ import * as i0 from "@angular/core";
5
+ export declare class NumberInputComponent implements OnInit {
6
+ control: FormControl;
7
+ metadata: InputMetadata;
8
+ constructor();
9
+ ngOnInit(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputComponent, "val-number-input", never, { "control": { "alias": "control"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; }, {}, never, never, false, never>;
12
+ }
@@ -0,0 +1,13 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { InputMetadata } from '../../types';
3
+ import { FormControl } from '@angular/forms';
4
+ import * as i0 from "@angular/core";
5
+ export declare class PasswordInputComponent implements OnInit {
6
+ control: FormControl;
7
+ metadata: InputMetadata;
8
+ hidePassword: boolean;
9
+ constructor();
10
+ ngOnInit(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<PasswordInputComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<PasswordInputComponent, "val-password-input", never, { "control": { "alias": "control"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; }, {}, never, never, false, never>;
13
+ }
@@ -0,0 +1,17 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { InputMetadata } from '../../types';
4
+ import { NgOtpInputComponent, NgOtpInputConfig } from 'ng-otp-input';
5
+ import * as i0 from "@angular/core";
6
+ export declare class PinInputComponent implements OnInit {
7
+ pinCode: NgOtpInputComponent | undefined;
8
+ control: FormControl;
9
+ metadata: InputMetadata;
10
+ codeLength: number;
11
+ otpInputConfig: NgOtpInputConfig;
12
+ constructor();
13
+ ngOnInit(): void;
14
+ reset(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<PinInputComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<PinInputComponent, "val-pin-input", never, { "control": { "alias": "control"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; }, {}, never, never, false, never>;
17
+ }
@@ -0,0 +1,12 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { PrompterMetadata } from './types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class PrompterComponent implements OnInit {
5
+ props: PrompterMetadata;
6
+ onClick: EventEmitter<string>;
7
+ constructor();
8
+ ngOnInit(): void;
9
+ clickHandler(token?: string): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<PrompterComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<PrompterComponent, "val-prompter", never, { "props": { "alias": "props"; "required": false; }; }, { "onClick": "onClick"; }, never, never, false, never>;
12
+ }
@@ -0,0 +1,11 @@
1
+ import { Color } from '@ionic/core';
2
+ import { ButtonMetadata } from '../../atoms/button/types';
3
+ import { HrefMetadata } from '../../atoms/href/types';
4
+ export type PrompterMetadata = {
5
+ teleprompter: boolean;
6
+ bordered: boolean;
7
+ color?: Color;
8
+ content: string;
9
+ buttons?: ButtonMetadata[];
10
+ hrefs?: HrefMetadata[];
11
+ };
@@ -0,0 +1,12 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { InputMetadata } from '../../types';
3
+ import { FormControl } from '@angular/forms';
4
+ import * as i0 from "@angular/core";
5
+ export declare class RadioInputComponent implements OnInit {
6
+ control: FormControl;
7
+ metadata: InputMetadata;
8
+ constructor();
9
+ ngOnInit(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioInputComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioInputComponent, "val-radio-input", never, { "control": { "alias": "control"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; }, {}, never, never, false, never>;
12
+ }
@@ -0,0 +1,12 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { InputMetadata } from '../../types';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TextInputComponent implements OnInit {
6
+ control: FormControl;
7
+ metadata: InputMetadata;
8
+ constructor();
9
+ ngOnInit(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextInputComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "val-text-input", never, { "control": { "alias": "control"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; }, {}, never, never, false, never>;
12
+ }
@@ -0,0 +1,12 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { FooterMetadata } from './types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FooterComponent implements OnInit {
5
+ props: FooterMetadata;
6
+ onClick: EventEmitter<string>;
7
+ constructor();
8
+ ngOnInit(): void;
9
+ clickHandler(token?: string): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "val-footer", never, { "props": { "alias": "props"; "required": false; }; }, { "onClick": "onClick"; }, never, ["[extra]"], false, never>;
12
+ }
@@ -0,0 +1,6 @@
1
+ import { ToolbarMetadata } from "../toolbar/types";
2
+ export type FooterMetadata = {
3
+ translucent?: boolean;
4
+ bordered?: boolean;
5
+ toolbar: ToolbarMetadata;
6
+ };
@@ -0,0 +1,16 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { FormSubmit } from '../../../types';
4
+ import { ButtonMetadata } from '../../../atoms/button/types';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FormFooterComponent implements OnInit {
7
+ form: FormGroup;
8
+ action: ButtonMetadata;
9
+ onSubmit: EventEmitter<FormSubmit>;
10
+ constructor();
11
+ ngOnInit(): void;
12
+ submitHandler(token?: string): Promise<void>;
13
+ get actions(): ButtonMetadata[];
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFooterComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormFooterComponent, "val-form-footer", never, { "form": { "alias": "form"; "required": false; }; "action": { "alias": "action"; "required": false; }; }, { "onSubmit": "onSubmit"; }, never, never, false, never>;
16
+ }
@@ -0,0 +1,24 @@
1
+ import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
+ import { FormMetadata, InputType, FormSubmit } from '../../types';
3
+ import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
4
+ import { ButtonMetadata } from '../../atoms/button/types';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FormComponent implements OnInit {
7
+ private fb;
8
+ private elementRef;
9
+ props: FormMetadata;
10
+ onSubmit: EventEmitter<FormSubmit>;
11
+ onInvalid: EventEmitter<any>;
12
+ form: FormGroup;
13
+ types: typeof InputType;
14
+ formId: string;
15
+ constructor(fb: FormBuilder, elementRef: ElementRef);
16
+ ngOnInit(): void;
17
+ submitHandler(token?: string): Promise<void>;
18
+ getControl(field: string): FormControl;
19
+ get isAtEndOfForm(): boolean;
20
+ get Form(): FormGroup;
21
+ get actions(): ButtonMetadata[];
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "val-form", never, { "props": { "alias": "props"; "required": false; }; }, { "onSubmit": "onSubmit"; "onInvalid": "onInvalid"; }, never, never, false, never>;
24
+ }
@@ -0,0 +1,12 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { HeaderMetadata } from './types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class HeaderComponent implements OnInit {
5
+ props: HeaderMetadata;
6
+ onClick: EventEmitter<string>;
7
+ constructor();
8
+ ngOnInit(): void;
9
+ clickHandler(token?: string): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "val-header", never, { "props": { "alias": "props"; "required": false; }; }, { "onClick": "onClick"; }, never, never, false, never>;
12
+ }
@@ -0,0 +1,6 @@
1
+ import { ToolbarMetadata } from "../toolbar/types";
2
+ export type HeaderMetadata = {
3
+ translucent?: boolean;
4
+ bordered?: boolean;
5
+ toolbar: ToolbarMetadata;
6
+ };
@@ -0,0 +1,21 @@
1
+ import { ButtonMetadata } from "../../atoms/button/types";
2
+ import { NoContentMetadata } from "../../molecules/no-content/types";
3
+ import { ComponentState } from "../../types";
4
+ export type WizardMetadata = {
5
+ state: ComponentState;
6
+ current: number;
7
+ steps: Steps;
8
+ error: Step;
9
+ };
10
+ export type Step = {
11
+ titles: NoContentMetadata;
12
+ buttons: ButtonMetadata[];
13
+ };
14
+ export type Steps = {
15
+ [step: number]: Step;
16
+ };
17
+ export declare enum MOTION {
18
+ BACKWARD = 0,
19
+ FORWARD = 1,
20
+ RETRY = 2
21
+ }
@@ -0,0 +1,21 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { MOTION, Step, WizardMetadata } from '../types';
3
+ import { ButtonMetadata } from '../../../atoms/button/types';
4
+ import * as i0 from "@angular/core";
5
+ export declare class WizardFooterComponent implements OnInit {
6
+ props: WizardMetadata;
7
+ onClick: EventEmitter<{
8
+ current: number;
9
+ motion: MOTION;
10
+ }>;
11
+ wrapperId: string;
12
+ constructor();
13
+ ngOnInit(): void;
14
+ clickHandler(token?: string): void;
15
+ get Current(): Step;
16
+ get Progress(): number;
17
+ get actions(): ButtonMetadata[];
18
+ tryToStep(motion: MOTION): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<WizardFooterComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<WizardFooterComponent, "val-wizard-footer", never, { "props": { "alias": "props"; "required": false; }; }, { "onClick": "onClick"; }, never, never, false, never>;
21
+ }
@@ -0,0 +1,22 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { MOTION, Step, WizardMetadata } from './types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class WizardComponent implements OnInit {
5
+ props: WizardMetadata;
6
+ onClick: EventEmitter<{
7
+ current: number;
8
+ motion: MOTION;
9
+ }>;
10
+ wrapperId: string;
11
+ constructor();
12
+ ngOnInit(): void;
13
+ working(): void;
14
+ done(): void;
15
+ get Current(): Step;
16
+ setCurrent(newStep: number): void;
17
+ setError(error: string): void;
18
+ reset(): void;
19
+ clickHandler(token?: string): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<WizardComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<WizardComponent, "val-wizard", never, { "props": { "alias": "props"; "required": false; }; }, { "onClick": "onClick"; }, never, ["[step]"], false, never>;
22
+ }
@@ -1,3 +1,5 @@
1
+ import { ValidatorFn } from "@angular/forms";
2
+ import { ButtonMetadata } from "./atoms/button/types";
1
3
  export type ComponentState = 'ENABLED' | 'DISABLED' | 'WORKING' | 'ERROR';
2
4
  export declare const ComponentStates: {
3
5
  ENABLED: "ENABLED";
@@ -17,3 +19,59 @@ export type Action = {
17
19
  type: ActionType;
18
20
  source: string;
19
21
  };
22
+ export declare enum InputType {
23
+ TEXT = 0,
24
+ EMAIL = 1,
25
+ PASSWORD = 2,
26
+ COMMENT = 3,
27
+ NUMBER = 4,
28
+ PIN_CODE = 5,
29
+ DATE = 6,
30
+ HOUR = 7,
31
+ CHECK = 8,
32
+ RADIO = 9,
33
+ SELECT = 10,
34
+ FILE = 11
35
+ }
36
+ export type InputOption = {
37
+ id: string;
38
+ name: string;
39
+ selected?: boolean;
40
+ order: number;
41
+ };
42
+ export type InputMetadata = {
43
+ token: string;
44
+ label: string;
45
+ name: string;
46
+ hint: string;
47
+ placeholder: string;
48
+ type: InputType;
49
+ order: number;
50
+ validators: ValidatorFn[];
51
+ options?: InputOption[];
52
+ range?: {
53
+ min: number;
54
+ max: number;
55
+ };
56
+ errors: {
57
+ [key: string]: string;
58
+ };
59
+ value?: string;
60
+ };
61
+ export type FormSection = {
62
+ name: string;
63
+ order: number;
64
+ fields: InputMetadata[];
65
+ };
66
+ export type FormSubmit = {
67
+ fields: {
68
+ key: string;
69
+ value: string;
70
+ }[];
71
+ token?: string;
72
+ };
73
+ export type FormMetadata = {
74
+ name: string;
75
+ sections: FormSection[];
76
+ actions: ButtonMetadata;
77
+ };
@@ -0,0 +1,3 @@
1
+ import { ElementRef } from "@angular/core";
2
+ export declare const goToTop: (id: string) => void;
3
+ export declare const isAtEnd: (elementRef: ElementRef) => boolean;
@@ -24,15 +24,36 @@ import * as i20 from "./components/atoms/href/href.component";
24
24
  import * as i21 from "./components/atoms/progress-bar/progress-bar.component";
25
25
  import * as i22 from "./components/molecules/links-cake/links-cake.component";
26
26
  import * as i23 from "./components/molecules/progress-status/progress-status.component";
27
- import * as i24 from "@angular/common";
28
- import * as i25 from "@angular/common/http";
29
- import * as i26 from "@ionic/angular";
27
+ import * as i24 from "./components/molecules/check-input/check-input.component";
28
+ import * as i25 from "./components/molecules/comment-input/comment-input.component";
29
+ import * as i26 from "./components/molecules/date-input/date-input.component";
30
+ import * as i27 from "./components/molecules/email-input/email-input.component";
31
+ import * as i28 from "./components/molecules/file-input/file-input.component";
32
+ import * as i29 from "./components/molecules/hint/hint.component";
33
+ import * as i30 from "./components/molecules/hour-input/hour-input.component";
34
+ import * as i31 from "./components/molecules/number-input/number-input.component";
35
+ import * as i32 from "./components/molecules/password-input/password-input.component";
36
+ import * as i33 from "./components/molecules/pin-input/pin-input.component";
37
+ import * as i34 from "./components/molecules/prompter/prompter.component";
38
+ import * as i35 from "./components/molecules/radio-input/radio-input.component";
39
+ import * as i36 from "./components/molecules/text-input/text-input.component";
40
+ import * as i37 from "./components/organisms/footer/footer.component";
41
+ import * as i38 from "./components/organisms/form/form.component";
42
+ import * as i39 from "./components/organisms/form/form-footer/form-footer.component";
43
+ import * as i40 from "./components/organisms/header/header.component";
44
+ import * as i41 from "./components/organisms/wizard/wizard.component";
45
+ import * as i42 from "./components/organisms/wizard/wizard-footer/wizard-footer.component";
46
+ import * as i43 from "@angular/common";
47
+ import * as i44 from "@angular/common/http";
48
+ import * as i45 from "@ionic/angular";
49
+ import * as i46 from "@angular/forms";
50
+ import * as i47 from "ng-otp-input";
30
51
  export interface ValtechConfig {
31
52
  content: Provider;
32
53
  }
33
54
  export declare const ValtechConfigService: InjectionToken<ValtechConfig>;
34
55
  export declare class ValtechComponentsModule {
35
56
  static ɵfac: i0.ɵɵFactoryDeclaration<ValtechComponentsModule, never>;
36
- static ɵmod: i0.ɵɵNgModuleDeclaration<ValtechComponentsModule, [typeof i1.ButtonComponent, typeof i2.BoxComponent, typeof i3.DisplayComponent, typeof i4.TextComponent, typeof i5.TitleComponent, typeof i6.AvatarComponent, typeof i7.DividerComponent, typeof i8.ContentLoaderComponent, typeof i9.LinkComponent, typeof i10.SearchbarComponent, typeof i11.ToolbarComponent, typeof i12.IconComponent, typeof i13.ButtonGroupComponent, typeof i14.TitleBlockComponent, typeof i15.AlertBoxComponent, typeof i16.BannerComponent, typeof i17.NotesBoxComponent, typeof i18.ImageComponent, typeof i19.NoContentComponent, typeof i20.HrefComponent, typeof i21.ProgressBarComponent, typeof i22.LinksCakeComponent, typeof i23.ProgressStatusComponent], [typeof i24.CommonModule, typeof i25.HttpClientModule, typeof i26.IonicModule], [typeof i1.ButtonComponent, typeof i2.BoxComponent, typeof i3.DisplayComponent, typeof i4.TextComponent, typeof i5.TitleComponent, typeof i6.AvatarComponent, typeof i7.DividerComponent, typeof i8.ContentLoaderComponent, typeof i9.LinkComponent, typeof i10.SearchbarComponent, typeof i11.ToolbarComponent, typeof i12.IconComponent, typeof i13.ButtonGroupComponent, typeof i14.TitleBlockComponent, typeof i15.AlertBoxComponent, typeof i16.BannerComponent, typeof i17.NotesBoxComponent, typeof i18.ImageComponent, typeof i19.NoContentComponent, typeof i20.HrefComponent, typeof i21.ProgressBarComponent, typeof i22.LinksCakeComponent, typeof i23.ProgressStatusComponent]>;
57
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ValtechComponentsModule, [typeof i1.ButtonComponent, typeof i2.BoxComponent, typeof i3.DisplayComponent, typeof i4.TextComponent, typeof i5.TitleComponent, typeof i6.AvatarComponent, typeof i7.DividerComponent, typeof i8.ContentLoaderComponent, typeof i9.LinkComponent, typeof i10.SearchbarComponent, typeof i11.ToolbarComponent, typeof i12.IconComponent, typeof i13.ButtonGroupComponent, typeof i14.TitleBlockComponent, typeof i15.AlertBoxComponent, typeof i16.BannerComponent, typeof i17.NotesBoxComponent, typeof i18.ImageComponent, typeof i19.NoContentComponent, typeof i20.HrefComponent, typeof i21.ProgressBarComponent, typeof i22.LinksCakeComponent, typeof i23.ProgressStatusComponent, typeof i24.CheckInputComponent, typeof i25.CommentInputComponent, typeof i26.DateInputComponent, typeof i27.EmailInputComponent, typeof i28.FileInputComponent, typeof i29.HintComponent, typeof i30.HourInputComponent, typeof i31.NumberInputComponent, typeof i32.PasswordInputComponent, typeof i33.PinInputComponent, typeof i34.PrompterComponent, typeof i35.RadioInputComponent, typeof i36.TextInputComponent, typeof i37.FooterComponent, typeof i38.FormComponent, typeof i39.FormFooterComponent, typeof i40.HeaderComponent, typeof i41.WizardComponent, typeof i42.WizardFooterComponent], [typeof i43.CommonModule, typeof i44.HttpClientModule, typeof i45.IonicModule, typeof i46.ReactiveFormsModule, typeof i47.NgOtpInputModule], [typeof i1.ButtonComponent, typeof i2.BoxComponent, typeof i3.DisplayComponent, typeof i4.TextComponent, typeof i5.TitleComponent, typeof i6.AvatarComponent, typeof i7.DividerComponent, typeof i8.ContentLoaderComponent, typeof i9.LinkComponent, typeof i10.SearchbarComponent, typeof i11.ToolbarComponent, typeof i12.IconComponent, typeof i13.ButtonGroupComponent, typeof i14.TitleBlockComponent, typeof i15.AlertBoxComponent, typeof i16.BannerComponent, typeof i17.NotesBoxComponent, typeof i18.ImageComponent, typeof i19.NoContentComponent, typeof i20.HrefComponent, typeof i21.ProgressBarComponent, typeof i22.LinksCakeComponent, typeof i23.ProgressStatusComponent, typeof i24.CheckInputComponent, typeof i25.CommentInputComponent, typeof i26.DateInputComponent, typeof i27.EmailInputComponent, typeof i28.FileInputComponent, typeof i29.HintComponent, typeof i30.HourInputComponent, typeof i31.NumberInputComponent, typeof i32.PasswordInputComponent, typeof i33.PinInputComponent, typeof i34.PrompterComponent, typeof i35.RadioInputComponent, typeof i36.TextInputComponent, typeof i37.FooterComponent, typeof i38.FormComponent, typeof i39.FormFooterComponent, typeof i40.HeaderComponent, typeof i41.WizardComponent, typeof i42.WizardFooterComponent]>;
37
58
  static ɵinj: i0.ɵɵInjectorDeclaration<ValtechComponentsModule>;
38
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "1.11.65",
3
+ "version": "1.11.66",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/solucionesvaltech/valtech-workspace.git"
@@ -12,7 +12,8 @@
12
12
  "@angular/common": "^17.3.0",
13
13
  "@angular/core": "^17.3.0",
14
14
  "@ionic/angular": "^7.8.0",
15
- "rxjs": "~7.8.0"
15
+ "rxjs": "~7.8.0",
16
+ "ng-otp-input": "^1.9.3"
16
17
  },
17
18
  "license": "MIT",
18
19
  "dependencies": {
package/public-api.d.ts CHANGED
@@ -26,14 +26,34 @@ export * from './lib/components/molecules/no-content/types';
26
26
  export * from './lib/components/molecules/links-cake/links-cake.component';
27
27
  export * from './lib/components/molecules/progress-status/progress-status.component';
28
28
  export * from './lib/components/molecules/progress-status/types';
29
+ export * from './lib/components/molecules/check-input/check-input.component';
30
+ export * from './lib/components/molecules/comment-input/comment-input.component';
31
+ export * from './lib/components/molecules/date-input/date-input.component';
32
+ export * from './lib/components/molecules/email-input/email-input.component';
33
+ export * from './lib/components/molecules/file-input/file-input.component';
34
+ export * from './lib/components/molecules/hint/hint.component';
35
+ export * from './lib/components/molecules/hour-input/hour-input.component';
36
+ export * from './lib/components/molecules/number-input/number-input.component';
37
+ export * from './lib/components/molecules/password-input/password-input.component';
38
+ export * from './lib/components/molecules/pin-input/pin-input.component';
39
+ export * from './lib/components/molecules/prompter/prompter.component';
40
+ export * from './lib/components/molecules/radio-input/radio-input.component';
41
+ export * from './lib/components/molecules/text-input/text-input.component';
29
42
  export * from './lib/components/organisms/toolbar/toolbar.component';
30
43
  export * from './lib/components/organisms/toolbar/types';
31
44
  export * from './lib/components/organisms/banner/banner.component';
32
45
  export * from './lib/components/organisms/banner/types';
46
+ export * from './lib/components/organisms/footer/footer.component';
47
+ export * from './lib/components/organisms/header/header.component';
48
+ export * from './lib/components/organisms/form/form.component';
49
+ export * from './lib/components/organisms/form/form-footer/form-footer.component';
50
+ export * from './lib/components/organisms/wizard/wizard.component';
51
+ export * from './lib/components/organisms/wizard/wizard-footer/wizard-footer.component';
33
52
  export * from './lib/services/lang-provider/lang-provider.service';
34
53
  export * from './lib/services/lang-provider/types';
35
54
  export * from './lib/services/local-storage.service';
36
55
  export * from './lib/services/theme.service';
37
56
  export * from './lib/services/download.service';
38
- export * from './lib/components/types';
39
57
  export * from './lib/valtech-components.module';
58
+ export * from './lib/shared/utils/dom';
59
+ export * from './lib/components/types';
@@ -1,3 +0,0 @@
1
- export const LANG = 'LANG';
2
- export const THEME = 'THEME';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmFnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ZhbHRlY2gtY29tcG9uZW50cy9zcmMvbGliL3NoYXJlZC9jb250YW50cy9zdG9yYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBQyxNQUFNLElBQUksR0FBRyxNQUFNLENBQUM7QUFDM0IsTUFBTSxDQUFDLE1BQU0sS0FBSyxHQUFHLE9BQU8sQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBMQU5HID0gJ0xBTkcnO1xuZXhwb3J0IGNvbnN0IFRIRU1FID0gJ1RIRU1FJzsiXX0=
File without changes