@abgov/angular-components 4.4.0-alpha.1 → 4.4.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.
- package/esm2022/lib/components/form/fieldset.mjs +57 -0
- package/esm2022/lib/components/form/public-form-page.mjs +140 -0
- package/esm2022/lib/components/form/public-form-summary.mjs +30 -0
- package/esm2022/lib/components/form/public-form.mjs +64 -0
- package/esm2022/lib/components/form-item/form-item.mjs +10 -2
- package/esm2022/lib/components/index.mjs +5 -1
- package/esm2022/lib/components/radio-group/radio-group.mjs +3 -1
- package/fesm2022/abgov-angular-components.mjs +294 -2
- package/fesm2022/abgov-angular-components.mjs.map +1 -1
- package/lib/components/form/fieldset.d.ts +14 -0
- package/lib/components/form/public-form-page.d.ts +39 -0
- package/lib/components/form/public-form-summary.d.ts +6 -0
- package/lib/components/form/public-form.d.ts +15 -0
- package/lib/components/form-item/form-item.d.ts +9 -1
- package/lib/components/index.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { GoabFormDispatchOn, GoabFieldsetOnChangeDetail, GoabFieldsetOnContinueDetail } from "@abgov/ui-components-common";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GoabFieldset {
|
|
5
|
+
id?: string;
|
|
6
|
+
sectionTitle?: string;
|
|
7
|
+
dispatchOn: GoabFormDispatchOn;
|
|
8
|
+
onChange: EventEmitter<GoabFieldsetOnChangeDetail>;
|
|
9
|
+
onContinue: EventEmitter<GoabFieldsetOnContinueDetail>;
|
|
10
|
+
_onChange(event: Event): void;
|
|
11
|
+
_onContinue(event: Event): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GoabFieldset, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GoabFieldset, "goab-fieldset", never, { "id": { "alias": "id"; "required": false; }; "sectionTitle": { "alias": "sectionTitle"; "required": false; }; "dispatchOn": { "alias": "dispatchOn"; "required": false; }; }, { "onChange": "onChange"; "onContinue": "onContinue"; }, never, ["*"], true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { GoabBaseComponent } from "../base.component";
|
|
3
|
+
import { GoabPublicFormPageButtonVisibility, GoabPublicFormPageOnFieldsetChangeDetail, GoabPublicFormPageOnCompleteDetail, GoabPublicFormPageOnContinueDetail, GoabPublicFormPageStep } from "@abgov/ui-components-common";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GoabPublicFormPage extends GoabBaseComponent {
|
|
6
|
+
id: string;
|
|
7
|
+
heading: string;
|
|
8
|
+
subHeading: string;
|
|
9
|
+
summaryHeading: string;
|
|
10
|
+
sectionTitle: string;
|
|
11
|
+
backUrl: string;
|
|
12
|
+
type: GoabPublicFormPageStep;
|
|
13
|
+
buttonText: string;
|
|
14
|
+
buttonVisibility: GoabPublicFormPageButtonVisibility;
|
|
15
|
+
first: boolean;
|
|
16
|
+
last: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* triggers when the form page continues to the next step
|
|
19
|
+
*/
|
|
20
|
+
onContinue: EventEmitter<GoabPublicFormPageOnContinueDetail>;
|
|
21
|
+
/**
|
|
22
|
+
* triggers when the user clicks the back link
|
|
23
|
+
*/
|
|
24
|
+
onBack: EventEmitter<void>;
|
|
25
|
+
/**
|
|
26
|
+
* triggers when the form fieldset content changes
|
|
27
|
+
*/
|
|
28
|
+
onFieldsetChange: EventEmitter<GoabPublicFormPageOnFieldsetChangeDetail>;
|
|
29
|
+
/**
|
|
30
|
+
* triggers when the form is completed
|
|
31
|
+
*/
|
|
32
|
+
onComplete: EventEmitter<GoabPublicFormPageOnCompleteDetail>;
|
|
33
|
+
_onContinue(event: Event): void;
|
|
34
|
+
_onBack(): void;
|
|
35
|
+
_onFieldsetChange(event: Event): void;
|
|
36
|
+
_onComplete(event: Event): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GoabPublicFormPage, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GoabPublicFormPage, "goab-public-form-page", never, { "id": { "alias": "id"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "subHeading": { "alias": "subHeading"; "required": false; }; "summaryHeading": { "alias": "summaryHeading"; "required": false; }; "sectionTitle": { "alias": "sectionTitle"; "required": false; }; "backUrl": { "alias": "backUrl"; "required": false; }; "type": { "alias": "type"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "buttonVisibility": { "alias": "buttonVisibility"; "required": false; }; "first": { "alias": "first"; "required": false; }; "last": { "alias": "last"; "required": false; }; }, { "onContinue": "onContinue"; "onBack": "onBack"; "onFieldsetChange": "onFieldsetChange"; "onComplete": "onComplete"; }, never, ["*"], true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GoabPublicFormSummary {
|
|
3
|
+
heading?: string;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GoabPublicFormSummary, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GoabPublicFormSummary, "goab-public-form-summary", never, { "heading": { "alias": "heading"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { GoabFormState, GoabPublicFormOnInitDetail, GoabPublicFormStatus } from "@abgov/ui-components-common";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GoabPublicForm {
|
|
5
|
+
status?: GoabPublicFormStatus;
|
|
6
|
+
name?: string;
|
|
7
|
+
onInit: EventEmitter<GoabPublicFormOnInitDetail>;
|
|
8
|
+
onComplete: EventEmitter<GoabFormState>;
|
|
9
|
+
onStateChange: EventEmitter<GoabFormState>;
|
|
10
|
+
_onInit(e: Event): void;
|
|
11
|
+
_onComplete(e: Event): void;
|
|
12
|
+
_onStateChange(e: Event): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GoabPublicForm, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GoabPublicForm, "goab-public-form", never, { "status": { "alias": "status"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, { "onInit": "onInit"; "onComplete": "onComplete"; "onStateChange": "onStateChange"; }, never, ["*"], true, never>;
|
|
15
|
+
}
|
|
@@ -9,6 +9,14 @@ export declare class GoabFormItem extends GoabBaseComponent {
|
|
|
9
9
|
requirement?: GoabFormItemRequirement;
|
|
10
10
|
maxWidth?: string;
|
|
11
11
|
id?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Public form: to arrange fields in the summary
|
|
14
|
+
*/
|
|
15
|
+
publicFormSummaryOrder?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Public form: allow to override the label value within the form-summary to provide a shorter description of the value
|
|
18
|
+
*/
|
|
19
|
+
name?: string;
|
|
12
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<GoabFormItem, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GoabFormItem, "goab-form-item", never, { "label": { "alias": "label"; "required": false; }; "labelSize": { "alias": "labelSize"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "error": { "alias": "error"; "required": false; }; "requirement": { "alias": "requirement"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, ["*", "goab-form-item-slot"], true, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GoabFormItem, "goab-form-item", never, { "label": { "alias": "label"; "required": false; }; "labelSize": { "alias": "labelSize"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "error": { "alias": "error"; "required": false; }; "requirement": { "alias": "requirement"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "id": { "alias": "id"; "required": false; }; "publicFormSummaryOrder": { "alias": "publicFormSummaryOrder"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, ["*", "goab-form-item-slot"], true, never>;
|
|
14
22
|
}
|
|
@@ -27,6 +27,10 @@ export * from "./footer-meta-section/footer-meta-section";
|
|
|
27
27
|
export * from "./footer-meta-section/footer-meta-section";
|
|
28
28
|
export * from "./footer-nav-section/footer-nav-section";
|
|
29
29
|
export * from "./footer-nav-section/footer-nav-section";
|
|
30
|
+
export * from "./form/public-form";
|
|
31
|
+
export * from "./form/public-form-page";
|
|
32
|
+
export * from "./form/public-form-summary";
|
|
33
|
+
export * from "./form/fieldset";
|
|
30
34
|
export * from "./form-item/form-item";
|
|
31
35
|
export * from "./form-item/form-item-slot";
|
|
32
36
|
export * from "./form-step/form-step";
|