@abgov/angular-components 4.3.1-alpha.1 → 4.4.0-alpha.2

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.
@@ -10,8 +10,12 @@ export declare class GoabButton extends GoabBaseComponent {
10
10
  leadingIcon?: GoabIconType;
11
11
  trailingIcon?: GoabIconType;
12
12
  width?: string;
13
+ action?: string;
14
+ actionArg?: string;
15
+ actionArgs?: Record<string, unknown>;
13
16
  onClick: EventEmitter<any>;
14
17
  _onClick(): void;
18
+ protected readonly JSON: JSON;
15
19
  static ɵfac: i0.ɵɵFactoryDeclaration<GoabButton, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<GoabButton, "goab-button", never, { "type": { "alias": "type"; "required": false; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "leadingIcon": { "alias": "leadingIcon"; "required": false; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, { "onClick": "onClick"; }, never, ["*"], true, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<GoabButton, "goab-button", never, { "type": { "alias": "type"; "required": false; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "leadingIcon": { "alias": "leadingIcon"; "required": false; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; }; "width": { "alias": "width"; "required": false; }; "action": { "alias": "action"; "required": false; }; "actionArg": { "alias": "actionArg"; "required": false; }; "actionArgs": { "alias": "actionArgs"; "required": false; }; }, { "onClick": "onClick"; }, never, ["*"], true, never>;
17
21
  }
@@ -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
  }
@@ -9,8 +9,12 @@ export declare class GoabIconButton extends GoabBaseComponent {
9
9
  title?: string;
10
10
  disabled?: boolean;
11
11
  ariaLabel?: string;
12
+ action?: string;
13
+ actionArg?: string;
14
+ actionArgs?: Record<string, unknown>;
12
15
  onClick: EventEmitter<any>;
13
16
  _onClick(): void;
17
+ protected readonly JSON: JSON;
14
18
  static ɵfac: i0.ɵɵFactoryDeclaration<GoabIconButton, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<GoabIconButton, "goab-icon-button", never, { "icon": { "alias": "icon"; "required": true; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "title": { "alias": "title"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "onClick": "onClick"; }, never, ["*"], true, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<GoabIconButton, "goab-icon-button", never, { "icon": { "alias": "icon"; "required": true; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "title": { "alias": "title"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "action": { "alias": "action"; "required": false; }; "actionArg": { "alias": "actionArg"; "required": false; }; "actionArgs": { "alias": "actionArgs"; "required": false; }; }, { "onClick": "onClick"; }, never, ["*"], true, never>;
16
20
  }
@@ -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";
@@ -4,10 +4,14 @@ export declare class GoabLink {
4
4
  leadingIcon?: GoabIconType;
5
5
  trailingIcon?: GoabIconType;
6
6
  testId?: string;
7
+ action?: string;
8
+ actionArg?: string;
9
+ actionArgs?: Record<string, unknown>;
7
10
  mt?: Spacing;
8
11
  mb?: Spacing;
9
12
  ml?: Spacing;
10
13
  mr?: Spacing;
14
+ protected readonly JSON: JSON;
11
15
  static ɵfac: i0.ɵɵFactoryDeclaration<GoabLink, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<GoabLink, "goab-link", never, { "leadingIcon": { "alias": "leadingIcon"; "required": false; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "mt": { "alias": "mt"; "required": false; }; "mb": { "alias": "mb"; "required": false; }; "ml": { "alias": "ml"; "required": false; }; "mr": { "alias": "mr"; "required": false; }; }, {}, never, ["*"], true, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<GoabLink, "goab-link", never, { "leadingIcon": { "alias": "leadingIcon"; "required": false; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "action": { "alias": "action"; "required": false; }; "actionArg": { "alias": "actionArg"; "required": false; }; "actionArgs": { "alias": "actionArgs"; "required": false; }; "mt": { "alias": "mt"; "required": false; }; "mb": { "alias": "mb"; "required": false; }; "ml": { "alias": "ml"; "required": false; }; "mr": { "alias": "mr"; "required": false; }; }, {}, never, ["*"], true, never>;
13
17
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "https://github.com/GovAlta/ui-components/issues"
6
6
  },
7
7
  "license": "Apache-2.0",
8
- "version": "4.3.1-alpha.1",
8
+ "version": "4.4.0-alpha.2",
9
9
  "keywords": [
10
10
  "Goab",
11
11
  "ui-components",