valtech-components 2.0.19 → 2.0.21
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.
- package/esm2022/lib/components/atoms/avatar/types.mjs +1 -1
- package/esm2022/lib/components/atoms/box/box.component.mjs +47 -0
- package/esm2022/lib/components/atoms/box/types.mjs +2 -0
- package/esm2022/lib/components/atoms/button/button.component.mjs +1 -1
- package/esm2022/lib/components/atoms/button/factory.mjs +1 -1
- package/esm2022/lib/components/atoms/display/display.component.mjs +28 -0
- package/esm2022/lib/components/atoms/display/types.mjs +2 -0
- package/esm2022/lib/components/atoms/divider/divider.component.mjs +17 -0
- package/esm2022/lib/components/atoms/divider/types.mjs +2 -0
- package/esm2022/lib/components/atoms/href/href.component.mjs +51 -0
- package/esm2022/lib/components/atoms/href/types.mjs +2 -0
- package/esm2022/lib/components/atoms/icon/icon.component.mjs +18 -0
- package/esm2022/lib/components/atoms/icon/types.mjs +2 -0
- package/esm2022/lib/components/atoms/image/image.component.mjs +50 -0
- package/esm2022/lib/components/atoms/image/types.mjs +2 -0
- package/esm2022/lib/components/atoms/progress-bar/progress-bar.component.mjs +36 -0
- package/esm2022/lib/components/atoms/progress-bar/types.mjs +2 -0
- package/esm2022/lib/components/atoms/text/text.component.mjs +24 -0
- package/esm2022/lib/components/atoms/text/types.mjs +2 -0
- package/esm2022/lib/components/atoms/title/title.component.mjs +31 -0
- package/esm2022/lib/components/atoms/title/types.mjs +2 -0
- package/esm2022/lib/components/molecules/alert-box/alert-box.component.mjs +32 -0
- package/esm2022/lib/components/molecules/alert-box/types.mjs +2 -0
- package/esm2022/lib/components/molecules/button-group/button-group.component.mjs +49 -0
- package/esm2022/lib/components/molecules/button-group/types.mjs +2 -0
- package/esm2022/lib/components/molecules/card/card.component.mjs +369 -0
- package/esm2022/lib/components/molecules/card/types.mjs +16 -0
- package/esm2022/lib/components/molecules/check-input/check-input.component.mjs +15 -0
- package/esm2022/lib/components/molecules/comment-input/comment-input.component.mjs +23 -0
- package/esm2022/lib/components/molecules/content-loader/content-loader.component.mjs +32 -0
- package/esm2022/lib/components/molecules/content-loader/types.mjs +2 -0
- package/esm2022/lib/components/molecules/date-input/date-input.component.mjs +73 -0
- package/esm2022/lib/components/molecules/email-input/email-input.component.mjs +19 -0
- package/esm2022/lib/components/molecules/file-input/file-input.component.mjs +69 -0
- package/esm2022/lib/components/molecules/hint/hint.component.mjs +52 -0
- package/esm2022/lib/components/molecules/hour-input/hour-input.component.mjs +18 -0
- package/esm2022/lib/components/molecules/link/link.component.mjs +37 -0
- package/esm2022/lib/components/molecules/link/types.mjs +2 -0
- package/esm2022/lib/components/molecules/links-cake/links-cake.component.mjs +37 -0
- package/esm2022/lib/components/molecules/links-cake/types.mjs +2 -0
- package/esm2022/lib/components/molecules/notes-box/notes-box.component.mjs +33 -0
- package/esm2022/lib/components/molecules/notes-box/types.mjs +2 -0
- package/esm2022/lib/components/molecules/number-input/number-input.component.mjs +18 -0
- package/esm2022/lib/components/molecules/password-input/password-input.component.mjs +44 -0
- package/esm2022/lib/components/molecules/pin-input/pin-input.component.mjs +45 -0
- package/esm2022/lib/components/molecules/progress-status/progress-status.component.mjs +94 -0
- package/esm2022/lib/components/molecules/progress-status/types.mjs +2 -0
- package/esm2022/lib/components/molecules/prompter/prompter.component.mjs +84 -0
- package/esm2022/lib/components/molecules/prompter/types.mjs +2 -0
- package/esm2022/lib/components/molecules/radio-input/radio-input.component.mjs +33 -0
- package/esm2022/lib/components/molecules/searchbar/searchbar.component.mjs +61 -0
- package/esm2022/lib/components/molecules/text-input/text-input.component.mjs +18 -0
- package/esm2022/lib/components/molecules/title-block/title-block.component.mjs +77 -0
- package/esm2022/lib/components/molecules/title-block/types.mjs +2 -0
- package/esm2022/lib/components/organisms/banner/banner.component.mjs +75 -0
- package/esm2022/lib/components/organisms/banner/types.mjs +2 -0
- package/esm2022/lib/components/organisms/footer/footer.component.mjs +50 -0
- package/esm2022/lib/components/organisms/footer/types.mjs +2 -0
- package/esm2022/lib/components/organisms/form/factory.mjs +8 -0
- package/esm2022/lib/components/organisms/form/form-footer/form-footer.component.mjs +76 -0
- package/esm2022/lib/components/organisms/form/form.component.mjs +230 -0
- package/esm2022/lib/components/organisms/header/header.component.mjs +33 -0
- package/esm2022/lib/components/organisms/header/types.mjs +2 -0
- package/esm2022/lib/components/organisms/no-content/no-content.component.mjs +34 -0
- package/esm2022/lib/components/organisms/no-content/types.mjs +2 -0
- package/esm2022/lib/components/organisms/toolbar/toolbar.component.mjs +168 -0
- package/esm2022/lib/components/organisms/toolbar/types.mjs +2 -0
- package/esm2022/lib/components/organisms/wizard/types.mjs +7 -0
- package/esm2022/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.mjs +107 -0
- package/esm2022/lib/components/organisms/wizard/wizard.component.mjs +103 -0
- package/esm2022/lib/components/templates/simple/simple.component.mjs +64 -0
- package/esm2022/lib/components/templates/simple/types.mjs +2 -0
- package/esm2022/lib/components/types.mjs +8 -1
- package/esm2022/public-api.mjs +71 -4
- package/fesm2022/valtech-components.mjs +2529 -159
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/atoms/avatar/types.d.ts +1 -1
- package/lib/components/atoms/box/box.component.d.ts +12 -0
- package/lib/components/atoms/box/types.d.ts +7 -0
- package/lib/components/atoms/button/button.component.d.ts +1 -1
- package/lib/components/atoms/button/factory.d.ts +1 -1
- package/lib/components/atoms/display/display.component.d.ts +10 -0
- package/lib/components/atoms/display/types.d.ts +6 -0
- package/lib/components/atoms/divider/divider.component.d.ts +10 -0
- package/lib/components/atoms/divider/types.d.ts +5 -0
- package/lib/components/atoms/href/href.component.d.ts +15 -0
- package/lib/components/atoms/href/types.d.ts +9 -0
- package/lib/components/atoms/icon/icon.component.d.ts +10 -0
- package/lib/components/atoms/icon/types.d.ts +6 -0
- package/lib/components/atoms/image/image.component.d.ts +12 -0
- package/lib/components/atoms/image/types.d.ts +11 -0
- package/lib/components/atoms/progress-bar/progress-bar.component.d.ts +10 -0
- package/lib/components/atoms/progress-bar/types.d.ts +9 -0
- package/lib/components/atoms/text/text.component.d.ts +10 -0
- package/lib/components/atoms/text/types.d.ts +7 -0
- package/lib/components/atoms/title/title.component.d.ts +10 -0
- package/lib/components/atoms/title/types.d.ts +7 -0
- package/lib/components/molecules/alert-box/alert-box.component.d.ts +10 -0
- package/lib/components/molecules/alert-box/types.d.ts +8 -0
- package/lib/components/molecules/button-group/button-group.component.d.ts +13 -0
- package/lib/components/molecules/button-group/types.d.ts +6 -0
- package/lib/components/molecules/card/card.component.d.ts +16 -0
- package/lib/components/molecules/card/types.d.ts +33 -0
- package/lib/components/molecules/check-input/check-input.component.d.ts +8 -0
- package/lib/components/molecules/comment-input/comment-input.component.d.ts +10 -0
- package/lib/components/molecules/content-loader/content-loader.component.d.ts +10 -0
- package/lib/components/molecules/content-loader/types.d.ts +7 -0
- package/lib/components/molecules/date-input/date-input.component.d.ts +10 -0
- package/lib/components/molecules/email-input/email-input.component.d.ts +10 -0
- package/lib/components/molecules/file-input/file-input.component.d.ts +15 -0
- package/lib/components/molecules/hint/hint.component.d.ts +11 -0
- package/lib/components/molecules/hour-input/hour-input.component.d.ts +10 -0
- package/lib/components/molecules/link/link.component.d.ts +12 -0
- package/lib/components/molecules/link/types.d.ts +6 -0
- package/lib/components/molecules/links-cake/links-cake.component.d.ts +10 -0
- package/lib/components/molecules/links-cake/types.d.ts +6 -0
- package/lib/components/molecules/notes-box/notes-box.component.d.ts +10 -0
- package/lib/components/molecules/notes-box/types.d.ts +8 -0
- package/lib/components/molecules/number-input/number-input.component.d.ts +10 -0
- package/lib/components/molecules/password-input/password-input.component.d.ts +11 -0
- package/lib/components/molecules/pin-input/pin-input.component.d.ts +15 -0
- package/lib/components/molecules/progress-status/progress-status.component.d.ts +14 -0
- package/lib/components/molecules/progress-status/types.d.ts +10 -0
- package/lib/components/molecules/prompter/prompter.component.d.ts +12 -0
- package/lib/components/molecules/prompter/types.d.ts +11 -0
- package/lib/components/molecules/radio-input/radio-input.component.d.ts +10 -0
- package/lib/components/molecules/searchbar/searchbar.component.d.ts +14 -0
- package/lib/components/molecules/text-input/text-input.component.d.ts +10 -0
- package/lib/components/molecules/title-block/title-block.component.d.ts +10 -0
- package/lib/components/molecules/title-block/types.d.ts +12 -0
- package/lib/components/organisms/banner/banner.component.d.ts +14 -0
- package/lib/components/organisms/banner/types.d.ts +11 -0
- package/lib/components/organisms/footer/footer.component.d.ts +12 -0
- package/lib/components/organisms/footer/types.d.ts +6 -0
- package/lib/components/organisms/form/factory.d.ts +5 -0
- package/lib/components/organisms/form/form-footer/form-footer.component.d.ts +15 -0
- package/lib/components/organisms/form/form.component.d.ts +23 -0
- package/lib/components/organisms/header/header.component.d.ts +12 -0
- package/lib/components/organisms/header/types.d.ts +6 -0
- package/lib/components/organisms/no-content/no-content.component.d.ts +12 -0
- package/lib/components/organisms/no-content/types.d.ts +6 -0
- package/lib/components/organisms/toolbar/toolbar.component.d.ts +21 -0
- package/lib/components/organisms/toolbar/types.d.ts +11 -0
- package/lib/components/organisms/wizard/types.d.ts +20 -0
- package/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.d.ts +21 -0
- package/lib/components/organisms/wizard/wizard.component.d.ts +22 -0
- package/lib/components/templates/simple/simple.component.d.ts +7 -0
- package/lib/components/templates/simple/types.d.ts +7 -0
- package/lib/components/types.d.ts +37 -2
- package/package.json +1 -1
- package/public-api.d.ts +70 -3
- package/esm2022/lib/components/atoms/button/types.mjs +0 -2
- package/lib/components/atoms/button/types.d.ts +0 -22
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { TitleBlockMetada } from './types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TitleBlockComponent implements OnInit {
|
|
5
|
+
props: TitleBlockMetada;
|
|
6
|
+
constructor();
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TitleBlockComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TitleBlockComponent, "val-title-block", never, { "props": { "alias": "props"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Color } from '@ionic/core';
|
|
2
|
+
export type TitleMetada = {
|
|
3
|
+
text: string;
|
|
4
|
+
color: Color;
|
|
5
|
+
size: 'small' | 'medium' | 'large' | 'xlarge';
|
|
6
|
+
};
|
|
7
|
+
export type TitleBlockMetada = {
|
|
8
|
+
position: 'center' | 'left' | 'right';
|
|
9
|
+
title?: TitleMetada;
|
|
10
|
+
aboveTitle?: TitleMetada;
|
|
11
|
+
bellowTitle?: TitleMetada;
|
|
12
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { BannerMetadata } from './types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BannerComponent implements OnInit {
|
|
5
|
+
props: BannerMetadata;
|
|
6
|
+
onClick: EventEmitter<string>;
|
|
7
|
+
onClose: EventEmitter<any>;
|
|
8
|
+
constructor();
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
clickHandler(token?: string): void;
|
|
11
|
+
closeHandler(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BannerComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BannerComponent, "val-banner", never, { "props": { "alias": "props"; "required": false; }; }, { "onClick": "onClick"; "onClose": "onClose"; }, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Color } from '@ionic/core';
|
|
2
|
+
import { TitleBlockMetada } from '../../molecules/title-block/types';
|
|
3
|
+
import { ButtonMetadata } from '../../types';
|
|
4
|
+
export type BannerMetadata = {
|
|
5
|
+
color: Color;
|
|
6
|
+
bordered: boolean;
|
|
7
|
+
closable: boolean;
|
|
8
|
+
mode: 'row' | 'column' | 'hybrid' | 'center';
|
|
9
|
+
actions: ButtonMetadata[];
|
|
10
|
+
content: TitleBlockMetada;
|
|
11
|
+
};
|
|
@@ -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]"], true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { ButtonMetadata, FormSubmit } from '../../../types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormFooterComponent implements OnInit {
|
|
6
|
+
form: FormGroup;
|
|
7
|
+
action: ButtonMetadata;
|
|
8
|
+
onSubmit: EventEmitter<FormSubmit>;
|
|
9
|
+
constructor();
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
submitHandler(token?: string): Promise<void>;
|
|
12
|
+
get actions(): ButtonMetadata[];
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFooterComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFooterComponent, "val-form-footer", never, { "form": { "alias": "form"; "required": false; }; "action": { "alias": "action"; "required": false; }; }, { "onSubmit": "onSubmit"; }, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { ButtonMetadata, FormMetadata, FormSubmit, InputMetadata, InputType } from '../../types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormComponent implements OnInit {
|
|
6
|
+
private fb;
|
|
7
|
+
private elementRef;
|
|
8
|
+
props: FormMetadata;
|
|
9
|
+
onSubmit: EventEmitter<FormSubmit>;
|
|
10
|
+
onInvalid: EventEmitter<any>;
|
|
11
|
+
form: FormGroup;
|
|
12
|
+
types: typeof InputType;
|
|
13
|
+
constructor(fb: FormBuilder, elementRef: ElementRef);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
submitHandler(token?: string): Promise<void>;
|
|
16
|
+
getControl(field: string): FormControl;
|
|
17
|
+
getFieldProp(field: InputMetadata): InputMetadata;
|
|
18
|
+
get isAtEndOfForm(): boolean;
|
|
19
|
+
get Form(): FormGroup;
|
|
20
|
+
get actions(): ButtonMetadata[];
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "val-form", never, { "props": { "alias": "props"; "required": false; }; }, { "onSubmit": "onSubmit"; "onInvalid": "onInvalid"; }, never, never, true, never>;
|
|
23
|
+
}
|
|
@@ -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, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { NoContentMetadata } from './types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NoContentComponent implements OnInit {
|
|
5
|
+
props: NoContentMetadata;
|
|
6
|
+
onClick: EventEmitter<string>;
|
|
7
|
+
constructor();
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
onClickHandler(token: string): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NoContentComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NoContentComponent, "val-no-content", never, { "props": { "alias": "props"; "required": false; }; }, { "onClick": "onClick"; }, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { NavController } from '@ionic/angular';
|
|
3
|
+
import { ToolbarAction, ToolbarActionType } from '../../types';
|
|
4
|
+
import { ToolbarMetadata } from './types';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ToolbarComponent implements OnInit {
|
|
7
|
+
private navCtrl;
|
|
8
|
+
props: ToolbarMetadata;
|
|
9
|
+
onClick: EventEmitter<string>;
|
|
10
|
+
actionTypes: typeof ToolbarActionType;
|
|
11
|
+
constructor(navCtrl: NavController);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
goBack(): void;
|
|
14
|
+
rightActions(): ToolbarAction[];
|
|
15
|
+
leftActions(): ToolbarAction[];
|
|
16
|
+
someInRight(): boolean;
|
|
17
|
+
someInLeft(): boolean;
|
|
18
|
+
clickHandler(token?: string): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "val-toolbar", never, { "props": { "alias": "props"; "required": false; }; }, { "onClick": "onClick"; }, never, ["[toolbar-bottom]"], true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Color } from '@ionic/core';
|
|
2
|
+
import { ToolbarAction } from '../../types';
|
|
3
|
+
export type ToolbarMetadata = {
|
|
4
|
+
withBack: boolean;
|
|
5
|
+
backText?: string;
|
|
6
|
+
withActions: boolean;
|
|
7
|
+
color?: Color;
|
|
8
|
+
textColor?: Color;
|
|
9
|
+
title: string;
|
|
10
|
+
actions: ToolbarAction[];
|
|
11
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ButtonMetadata, ComponentState } from '../../types';
|
|
2
|
+
import { NoContentMetadata } from '../no-content/types';
|
|
3
|
+
export type WizardMetadata = {
|
|
4
|
+
state: ComponentState;
|
|
5
|
+
current: number;
|
|
6
|
+
steps: Steps;
|
|
7
|
+
error: Step;
|
|
8
|
+
};
|
|
9
|
+
export type Step = {
|
|
10
|
+
titles: NoContentMetadata;
|
|
11
|
+
buttons: ButtonMetadata[];
|
|
12
|
+
};
|
|
13
|
+
export type Steps = {
|
|
14
|
+
[step: number]: Step;
|
|
15
|
+
};
|
|
16
|
+
export declare enum MOTION {
|
|
17
|
+
BACKWARD = 0,
|
|
18
|
+
FORWARD = 1,
|
|
19
|
+
RETRY = 2
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { ButtonMetadata } from '../../../types';
|
|
3
|
+
import { MOTION, Step, WizardMetadata } from '../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, true, 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]"], true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SimpleMetadata } from './types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SimpleComponent {
|
|
4
|
+
props: SimpleMetadata;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SimpleComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleComponent, "val-simple", never, { "props": { "alias": "props"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
7
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ValidatorFn } from '@angular/forms';
|
|
2
|
-
import {
|
|
1
|
+
import { FormControl, ValidatorFn } from '@angular/forms';
|
|
2
|
+
import { ImageMetadata } from './atoms/image/types';
|
|
3
|
+
import { Color } from '@ionic/core';
|
|
3
4
|
export type ComponentState = 'ENABLED' | 'DISABLED' | 'WORKING' | 'ERROR';
|
|
4
5
|
export declare const ComponentStates: {
|
|
5
6
|
ENABLED: "ENABLED";
|
|
@@ -40,6 +41,7 @@ export type InputOption = {
|
|
|
40
41
|
order: number;
|
|
41
42
|
};
|
|
42
43
|
export type InputMetadata = {
|
|
44
|
+
control: FormControl;
|
|
43
45
|
token: string;
|
|
44
46
|
label: string;
|
|
45
47
|
name: string;
|
|
@@ -76,3 +78,36 @@ export type FormMetadata = {
|
|
|
76
78
|
actions: ButtonMetadata;
|
|
77
79
|
state: ComponentState;
|
|
78
80
|
};
|
|
81
|
+
export declare enum ToolbarActionType {
|
|
82
|
+
AVATAR = "AVATAR",
|
|
83
|
+
ICON = "ICON",
|
|
84
|
+
IMAGE = "IMAGE",
|
|
85
|
+
BUTTON = "BUTTON"
|
|
86
|
+
}
|
|
87
|
+
export type ToolbarAction = {
|
|
88
|
+
type: 'AVATAR' | 'ICON' | 'IMAGE' | 'BUTTON';
|
|
89
|
+
token?: string;
|
|
90
|
+
position: 'left' | 'right' | 'center';
|
|
91
|
+
description?: string;
|
|
92
|
+
image?: ImageMetadata;
|
|
93
|
+
};
|
|
94
|
+
export interface IconMetada {
|
|
95
|
+
name: string;
|
|
96
|
+
slot: 'start' | 'end';
|
|
97
|
+
}
|
|
98
|
+
export interface ButtonMetadata {
|
|
99
|
+
actionType?: ActionType;
|
|
100
|
+
expand?: 'full' | 'block';
|
|
101
|
+
href?: string;
|
|
102
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
103
|
+
download?: string;
|
|
104
|
+
color: Color;
|
|
105
|
+
state: ComponentState;
|
|
106
|
+
text: string;
|
|
107
|
+
icon?: IconMetada;
|
|
108
|
+
shape?: 'round';
|
|
109
|
+
size?: 'small' | 'default' | 'large';
|
|
110
|
+
fill?: 'clear' | 'outline' | 'solid' | 'default';
|
|
111
|
+
type: 'button' | 'submit' | 'reset';
|
|
112
|
+
token?: string;
|
|
113
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,9 +1,76 @@
|
|
|
1
|
-
export * from './lib/components/atoms/button/button.component';
|
|
2
|
-
export * from './lib/components/atoms/button/factory';
|
|
3
|
-
export * from './lib/components/atoms/button/types';
|
|
4
1
|
export * from './lib/components/atoms/avatar/avatar.component';
|
|
5
2
|
export * from './lib/components/atoms/avatar/types';
|
|
3
|
+
export * from './lib/components/atoms/box/box.component';
|
|
4
|
+
export * from './lib/components/atoms/box/types';
|
|
5
|
+
export * from './lib/components/atoms/button/button.component';
|
|
6
|
+
export * from './lib/components/atoms/button/factory';
|
|
7
|
+
export * from './lib/components/atoms/display/display.component';
|
|
8
|
+
export * from './lib/components/atoms/display/types';
|
|
9
|
+
export * from './lib/components/atoms/divider/divider.component';
|
|
10
|
+
export * from './lib/components/atoms/divider/types';
|
|
11
|
+
export * from './lib/components/atoms/href/href.component';
|
|
12
|
+
export * from './lib/components/atoms/href/types';
|
|
13
|
+
export * from './lib/components/atoms/icon/icon.component';
|
|
14
|
+
export * from './lib/components/atoms/icon/types';
|
|
15
|
+
export * from './lib/components/atoms/image/image.component';
|
|
16
|
+
export * from './lib/components/atoms/image/types';
|
|
17
|
+
export * from './lib/components/atoms/progress-bar/progress-bar.component';
|
|
18
|
+
export * from './lib/components/atoms/progress-bar/types';
|
|
19
|
+
export * from './lib/components/atoms/text/text.component';
|
|
20
|
+
export * from './lib/components/atoms/text/types';
|
|
21
|
+
export * from './lib/components/atoms/title/title.component';
|
|
22
|
+
export * from './lib/components/atoms/title/types';
|
|
23
|
+
export * from './lib/components/molecules/alert-box/alert-box.component';
|
|
24
|
+
export * from './lib/components/molecules/alert-box/types';
|
|
25
|
+
export * from './lib/components/molecules/button-group/button-group.component';
|
|
26
|
+
export * from './lib/components/molecules/button-group/types';
|
|
27
|
+
export * from './lib/components/molecules/card/card.component';
|
|
28
|
+
export * from './lib/components/molecules/card/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/content-loader/content-loader.component';
|
|
32
|
+
export * from './lib/components/molecules/content-loader/types';
|
|
33
|
+
export * from './lib/components/molecules/date-input/date-input.component';
|
|
34
|
+
export * from './lib/components/molecules/email-input/email-input.component';
|
|
35
|
+
export * from './lib/components/molecules/file-input/file-input.component';
|
|
36
|
+
export * from './lib/components/molecules/hint/hint.component';
|
|
37
|
+
export * from './lib/components/molecules/hour-input/hour-input.component';
|
|
38
|
+
export * from './lib/components/molecules/link/link.component';
|
|
39
|
+
export * from './lib/components/molecules/link/types';
|
|
40
|
+
export * from './lib/components/molecules/links-cake/links-cake.component';
|
|
41
|
+
export * from './lib/components/molecules/links-cake/types';
|
|
42
|
+
export * from './lib/components/molecules/notes-box/notes-box.component';
|
|
43
|
+
export * from './lib/components/molecules/notes-box/types';
|
|
44
|
+
export * from './lib/components/molecules/number-input/number-input.component';
|
|
45
|
+
export * from './lib/components/molecules/password-input/password-input.component';
|
|
46
|
+
export * from './lib/components/molecules/pin-input/pin-input.component';
|
|
47
|
+
export * from './lib/components/molecules/progress-status/progress-status.component';
|
|
48
|
+
export * from './lib/components/molecules/progress-status/types';
|
|
49
|
+
export * from './lib/components/molecules/prompter/prompter.component';
|
|
50
|
+
export * from './lib/components/molecules/prompter/types';
|
|
51
|
+
export * from './lib/components/molecules/radio-input/radio-input.component';
|
|
52
|
+
export * from './lib/components/molecules/searchbar/searchbar.component';
|
|
53
|
+
export * from './lib/components/molecules/text-input/text-input.component';
|
|
54
|
+
export * from './lib/components/molecules/title-block/title-block.component';
|
|
55
|
+
export * from './lib/components/molecules/title-block/types';
|
|
56
|
+
export * from './lib/components/organisms/banner/banner.component';
|
|
57
|
+
export * from './lib/components/organisms/banner/types';
|
|
58
|
+
export * from './lib/components/organisms/footer/footer.component';
|
|
59
|
+
export * from './lib/components/organisms/form/factory';
|
|
60
|
+
export * from './lib/components/organisms/form/form-footer/form-footer.component';
|
|
61
|
+
export * from './lib/components/organisms/form/form.component';
|
|
62
|
+
export * from './lib/components/organisms/header/header.component';
|
|
63
|
+
export * from './lib/components/organisms/header/types';
|
|
64
|
+
export * from './lib/components/organisms/no-content/no-content.component';
|
|
65
|
+
export * from './lib/components/organisms/no-content/types';
|
|
66
|
+
export * from './lib/components/organisms/toolbar/toolbar.component';
|
|
67
|
+
export * from './lib/components/organisms/toolbar/types';
|
|
68
|
+
export * from './lib/components/organisms/wizard/types';
|
|
69
|
+
export * from './lib/components/organisms/wizard/wizard-footer/wizard-footer.component';
|
|
70
|
+
export * from './lib/components/organisms/wizard/wizard.component';
|
|
6
71
|
export * from './lib/components/templates/layout/layout.component';
|
|
72
|
+
export * from './lib/components/templates/simple/simple.component';
|
|
73
|
+
export * from './lib/components/templates/simple/types';
|
|
7
74
|
export * from './lib/services/download.service';
|
|
8
75
|
export * from './lib/services/lang-provider/lang-provider.service';
|
|
9
76
|
export * from './lib/services/lang-provider/types';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0ZWNoLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2F0b21zL2J1dHRvbi90eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29sb3IgfSBmcm9tICdAaW9uaWMvY29yZSc7XG5pbXBvcnQgeyBBY3Rpb25UeXBlLCBDb21wb25lbnRTdGF0ZSB9IGZyb20gJy4uLy4uL3R5cGVzJztcblxuZXhwb3J0IGludGVyZmFjZSBJY29uTWV0YWRhIHtcbiAgbmFtZTogc3RyaW5nO1xuICBzbG90OiAnc3RhcnQnIHwgJ2VuZCc7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgQnV0dG9uTWV0YWRhdGEge1xuICBhY3Rpb25UeXBlPzogQWN0aW9uVHlwZTtcbiAgZXhwYW5kPzogJ2Z1bGwnIHwgJ2Jsb2NrJztcbiAgaHJlZj86IHN0cmluZztcbiAgdGFyZ2V0PzogJ19ibGFuaycgfCAnX3NlbGYnIHwgJ19wYXJlbnQnIHwgJ190b3AnO1xuICBkb3dubG9hZD86IHN0cmluZztcbiAgY29sb3I6IENvbG9yO1xuICBzdGF0ZTogQ29tcG9uZW50U3RhdGU7XG4gIHRleHQ6IHN0cmluZztcbiAgaWNvbj86IEljb25NZXRhZGE7XG4gIHNoYXBlPzogJ3JvdW5kJztcbiAgc2l6ZT86ICdzbWFsbCcgfCAnZGVmYXVsdCcgfCAnbGFyZ2UnO1xuICBmaWxsPzogJ2NsZWFyJyB8ICdvdXRsaW5lJyB8ICdzb2xpZCcgfCAnZGVmYXVsdCc7XG4gIHR5cGU6ICdidXR0b24nIHwgJ3N1Ym1pdCcgfCAncmVzZXQnO1xuICB0b2tlbj86IHN0cmluZztcbn1cbiJdfQ==
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Color } from '@ionic/core';
|
|
2
|
-
import { ActionType, ComponentState } from '../../types';
|
|
3
|
-
export interface IconMetada {
|
|
4
|
-
name: string;
|
|
5
|
-
slot: 'start' | 'end';
|
|
6
|
-
}
|
|
7
|
-
export interface ButtonMetadata {
|
|
8
|
-
actionType?: ActionType;
|
|
9
|
-
expand?: 'full' | 'block';
|
|
10
|
-
href?: string;
|
|
11
|
-
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
12
|
-
download?: string;
|
|
13
|
-
color: Color;
|
|
14
|
-
state: ComponentState;
|
|
15
|
-
text: string;
|
|
16
|
-
icon?: IconMetada;
|
|
17
|
-
shape?: 'round';
|
|
18
|
-
size?: 'small' | 'default' | 'large';
|
|
19
|
-
fill?: 'clear' | 'outline' | 'solid' | 'default';
|
|
20
|
-
type: 'button' | 'submit' | 'reset';
|
|
21
|
-
token?: string;
|
|
22
|
-
}
|