@gov-design-system-ce/components 4.0.7 → 4.0.8-rc02
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/dist/cjs/array.utils-5a024b3a.js +46 -0
- package/dist/cjs/array.utils-5a024b3a.js.map +1 -0
- package/dist/cjs/constants-9dc978dd.js +27 -0
- package/dist/cjs/constants-9dc978dd.js.map +1 -0
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{form-74063d50.js → form-893791cf.js} +3 -3
- package/dist/cjs/form-893791cf.js.map +1 -0
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +89 -0
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +6 -2
- package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-file.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-group.cjs.entry.js +7 -16
- package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-input.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +83 -102
- package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-radio-group.cjs.entry.js +73 -0
- package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-radio.cjs.entry.js +6 -2
- package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +14 -18
- package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-switch.cjs.entry.js +6 -2
- package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-icon.cjs.entry.js +1 -1
- package/dist/cjs/gov-pagination.cjs.entry.js +2 -8
- package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/index-7b6bba34.js +8 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/stencil.utils-22814956.js +11 -0
- package/dist/cjs/stencil.utils-22814956.js.map +1 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +5 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
- package/dist/collection/components/gov-form/group/constants.js +6 -0
- package/dist/collection/components/gov-form/group/constants.js.map +1 -1
- package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +182 -0
- package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js.map +1 -0
- package/dist/collection/components/gov-form/group/gov-form-group.css +9 -9
- package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -1
- package/dist/collection/components/gov-form/group/gov-form-group.types.js +2 -0
- package/dist/collection/components/gov-form/group/gov-form-group.types.js.map +1 -0
- package/dist/collection/components/gov-form/group/gov-form-radio-group.js +166 -0
- package/dist/collection/components/gov-form/group/gov-form-radio-group.js.map +1 -0
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.css +1 -0
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +134 -253
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js.map +1 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.js +5 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
- package/dist/collection/components/gov-form/select/constants.js +1 -1
- package/dist/collection/components/gov-form/select/constants.js.map +1 -1
- package/dist/collection/components/gov-form/select/gov-form-select.js +40 -64
- package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
- package/dist/collection/components/gov-form/select/gov-form-select.types.js.map +1 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.js +5 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
- package/dist/collection/components/gov-pagination/gov-pagination.js +1 -1
- package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
- package/dist/collection/helpers/Dom/form.js +1 -1
- package/dist/collection/helpers/Dom/form.js.map +1 -1
- package/dist/collection/pages/Forms.js +80 -13
- package/dist/collection/pages/Forms.js.map +1 -1
- package/dist/collection/pages/Home.js +65 -40
- package/dist/collection/pages/Home.js.map +1 -1
- package/dist/collection/utils/array.utils.js +14 -0
- package/dist/collection/utils/array.utils.js.map +1 -1
- package/dist/collection/utils/object.utils.js +18 -0
- package/dist/collection/utils/object.utils.js.map +1 -0
- package/dist/collection/utils/stencil.utils.js +6 -0
- package/dist/collection/utils/stencil.utils.js.map +1 -0
- package/dist/components/gov-accordion-item.js +1 -1
- package/dist/components/gov-attachments-item.js +1 -1
- package/dist/components/gov-breadcrumbs.js +1 -1
- package/dist/components/gov-button.js +1 -1
- package/dist/components/gov-card.js +1 -1
- package/dist/components/gov-chip.js +1 -1
- package/dist/components/gov-form-autocomplete.js +1 -1
- package/dist/components/gov-form-checkbox-group.d.ts +11 -0
- package/dist/components/gov-form-checkbox-group.js +2 -0
- package/dist/components/gov-form-checkbox-group.js.map +1 -0
- package/dist/components/gov-form-checkbox.js +1 -1
- package/dist/components/gov-form-checkbox.js.map +1 -1
- package/dist/components/gov-form-control.js +1 -1
- package/dist/components/gov-form-file.js +1 -1
- package/dist/components/gov-form-group.js +1 -1
- package/dist/components/gov-form-group.js.map +1 -1
- package/dist/components/gov-form-input.js +1 -1
- package/dist/components/gov-form-multi-select.js +1 -1
- package/dist/components/gov-form-multi-select.js.map +1 -1
- package/dist/components/gov-form-radio-group.d.ts +11 -0
- package/dist/components/gov-form-radio-group.js +2 -0
- package/dist/components/gov-form-radio-group.js.map +1 -0
- package/dist/components/gov-form-radio.js +1 -1
- package/dist/components/gov-form-radio.js.map +1 -1
- package/dist/components/gov-form-select.js +1 -1
- package/dist/components/gov-form-switch.js +1 -1
- package/dist/components/gov-form-switch.js.map +1 -1
- package/dist/components/gov-icon.js +1 -1
- package/dist/components/gov-infobar.js +1 -1
- package/dist/components/gov-loading.js +1 -1
- package/dist/components/gov-modal.js +1 -1
- package/dist/components/gov-pagination.js +1 -1
- package/dist/components/gov-pagination.js.map +1 -1
- package/dist/components/gov-prompt.js +1 -1
- package/dist/components/gov-side-nav-item.js +1 -1
- package/dist/components/gov-tabs.js +1 -1
- package/dist/components/gov-tag.js +1 -1
- package/dist/components/gov-toast.js +1 -1
- package/dist/components/gov-tooltip-content.js +1 -1
- package/dist/components/gov-wizard-item.js +1 -1
- package/dist/components/{p-44762d17.js → p-0a1fbf26.js} +2 -2
- package/dist/components/p-2dee9951.js.map +1 -1
- package/dist/components/p-3a04fb9b.js +2 -0
- package/dist/components/p-3a04fb9b.js.map +1 -0
- package/dist/components/p-4529b963.js +2 -0
- package/dist/components/{p-8b7b916a.js.map → p-4529b963.js.map} +1 -1
- package/dist/components/{p-76b229e3.js → p-4a19259c.js} +2 -2
- package/dist/components/p-75be4c94.js +2 -0
- package/dist/components/p-75be4c94.js.map +1 -0
- package/dist/components/{p-5dbe0178.js → p-8749590a.js} +2 -2
- package/dist/components/p-8fcc8483.js +2 -0
- package/dist/components/p-8fcc8483.js.map +1 -0
- package/dist/components/{p-976404a5.js → p-a7443b36.js} +2 -2
- package/dist/components/p-ab5a13ea.js +2 -0
- package/dist/components/p-ab5a13ea.js.map +1 -0
- package/dist/components/{p-99860f34.js → p-b5716fb6.js} +2 -2
- package/dist/components/p-f04382c3.js +2 -0
- package/dist/components/p-f04382c3.js.map +1 -0
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-f9dcaafb.entry.js → p-0702b541.entry.js} +2 -2
- package/dist/core/p-0702b541.entry.js.map +1 -0
- package/dist/core/p-0eb3fd76.entry.js +2 -0
- package/dist/core/{p-e3b14974.entry.js.map → p-0eb3fd76.entry.js.map} +1 -1
- package/dist/core/{p-148501cc.entry.js → p-115f99f4.entry.js} +2 -2
- package/dist/core/p-115f99f4.entry.js.map +1 -0
- package/dist/core/p-1f769a40.entry.js +2 -0
- package/dist/core/p-1f769a40.entry.js.map +1 -0
- package/dist/core/p-35d6ef00.entry.js +2 -0
- package/dist/core/p-35d6ef00.entry.js.map +1 -0
- package/dist/core/{p-9402e4cc.entry.js → p-39272558.entry.js} +2 -2
- package/dist/core/p-39272558.entry.js.map +1 -0
- package/dist/core/p-3a04fb9b.js +2 -0
- package/dist/core/p-3a04fb9b.js.map +1 -0
- package/dist/core/p-4b4a270d.entry.js +2 -0
- package/dist/core/p-4b4a270d.entry.js.map +1 -0
- package/dist/core/p-5bc604a3.js.map +1 -1
- package/dist/core/p-61a2b12a.js +2 -0
- package/dist/core/p-61a2b12a.js.map +1 -0
- package/dist/core/p-8fcc8483.js +2 -0
- package/dist/core/p-8fcc8483.js.map +1 -0
- package/dist/core/p-927880d6.entry.js.map +1 -1
- package/dist/core/{p-ac856de6.entry.js → p-9c00b909.entry.js} +2 -2
- package/dist/core/p-ab5a13ea.js +2 -0
- package/dist/core/p-ab5a13ea.js.map +1 -0
- package/dist/core/{p-835f1187.entry.js → p-c20ee863.entry.js} +2 -2
- package/dist/core/p-cad17bfe.entry.js +2 -0
- package/dist/core/p-cad17bfe.entry.js.map +1 -0
- package/dist/core/{p-1bc2f62c.entry.js → p-d07d3dcc.entry.js} +2 -2
- package/dist/core/p-ead75342.entry.js +2 -0
- package/dist/core/p-ead75342.entry.js.map +1 -0
- package/dist/core/p-f4ef1b95.entry.js +2 -0
- package/dist/core/p-f4ef1b95.entry.js.map +1 -0
- package/dist/esm/array.utils-b27436ea.js +43 -0
- package/dist/esm/array.utils-b27436ea.js.map +1 -0
- package/dist/esm/constants-e80d9514.js +22 -0
- package/dist/esm/constants-e80d9514.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{form-39dc6896.js → form-b81fd97e.js} +3 -3
- package/dist/esm/form-b81fd97e.js.map +1 -0
- package/dist/esm/gov-form-checkbox-group.entry.js +85 -0
- package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -0
- package/dist/esm/gov-form-checkbox.entry.js +6 -2
- package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
- package/dist/esm/gov-form-control.entry.js +1 -1
- package/dist/esm/gov-form-file.entry.js +1 -1
- package/dist/esm/gov-form-group.entry.js +4 -13
- package/dist/esm/gov-form-group.entry.js.map +1 -1
- package/dist/esm/gov-form-input.entry.js +1 -1
- package/dist/esm/gov-form-multi-select.entry.js +83 -102
- package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
- package/dist/esm/gov-form-radio-group.entry.js +69 -0
- package/dist/esm/gov-form-radio-group.entry.js.map +1 -0
- package/dist/esm/gov-form-radio.entry.js +6 -2
- package/dist/esm/gov-form-radio.entry.js.map +1 -1
- package/dist/esm/gov-form-select.entry.js +14 -18
- package/dist/esm/gov-form-select.entry.js.map +1 -1
- package/dist/esm/gov-form-switch.entry.js +6 -2
- package/dist/esm/gov-form-switch.entry.js.map +1 -1
- package/dist/esm/gov-icon.entry.js +1 -1
- package/dist/esm/gov-pagination.entry.js +2 -8
- package/dist/esm/gov-pagination.entry.js.map +1 -1
- package/dist/esm/index-eb59f132.js +8 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/stencil.utils-7cb5b075.js +9 -0
- package/dist/esm/stencil.utils-7cb5b075.js.map +1 -0
- package/dist/hydrate/index.js +335 -157
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +2 -0
- package/dist/types/components/gov-form/group/constants.d.ts +6 -0
- package/dist/types/components/gov-form/group/gov-form-checkbox-group.d.ts +32 -0
- package/dist/types/components/gov-form/group/gov-form-group.types.d.ts +7 -0
- package/dist/types/components/gov-form/group/gov-form-radio-group.d.ts +32 -0
- package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +17 -29
- package/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +3 -2
- package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +2 -0
- package/dist/types/components/gov-form/select/constants.d.ts +1 -1
- package/dist/types/components/gov-form/select/gov-form-select.d.ts +6 -9
- package/dist/types/components/gov-form/select/gov-form-select.types.d.ts +1 -1
- package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +2 -0
- package/dist/types/components.d.ts +122 -38
- package/dist/types/utils/array.utils.d.ts +1 -0
- package/dist/types/utils/object.utils.d.ts +1 -0
- package/dist/types/utils/stencil.utils.d.ts +1 -0
- package/package.json +2 -2
- package/dist/cjs/form-74063d50.js.map +0 -1
- package/dist/components/p-2d5d24af.js +0 -2
- package/dist/components/p-2d5d24af.js.map +0 -1
- package/dist/components/p-53e02bee.js +0 -2
- package/dist/components/p-53e02bee.js.map +0 -1
- package/dist/components/p-8b7b916a.js +0 -2
- package/dist/core/p-0e5fa8bf.js +0 -2
- package/dist/core/p-0e5fa8bf.js.map +0 -1
- package/dist/core/p-148501cc.entry.js.map +0 -1
- package/dist/core/p-531c350f.entry.js +0 -2
- package/dist/core/p-531c350f.entry.js.map +0 -1
- package/dist/core/p-9402e4cc.entry.js.map +0 -1
- package/dist/core/p-adf276b0.entry.js +0 -2
- package/dist/core/p-adf276b0.entry.js.map +0 -1
- package/dist/core/p-e3b14974.entry.js +0 -2
- package/dist/core/p-f1031bac.entry.js +0 -2
- package/dist/core/p-f1031bac.entry.js.map +0 -1
- package/dist/core/p-f7065042.entry.js +0 -2
- package/dist/core/p-f7065042.entry.js.map +0 -1
- package/dist/core/p-f9dcaafb.entry.js.map +0 -1
- package/dist/esm/form-39dc6896.js.map +0 -1
- package/dist/globals.d.ts +0 -2
- package/dist/types/types/typings.d.ts +0 -6
- /package/dist/components/{p-44762d17.js.map → p-0a1fbf26.js.map} +0 -0
- /package/dist/components/{p-76b229e3.js.map → p-4a19259c.js.map} +0 -0
- /package/dist/components/{p-5dbe0178.js.map → p-8749590a.js.map} +0 -0
- /package/dist/components/{p-976404a5.js.map → p-a7443b36.js.map} +0 -0
- /package/dist/components/{p-99860f34.js.map → p-b5716fb6.js.map} +0 -0
- /package/dist/core/{p-ac856de6.entry.js.map → p-9c00b909.entry.js.map} +0 -0
- /package/dist/core/{p-835f1187.entry.js.map → p-c20ee863.entry.js.map} +0 -0
- /package/dist/core/{p-1bc2f62c.entry.js.map → p-d07d3dcc.entry.js.map} +0 -0
|
@@ -6,6 +6,7 @@ export declare class GovFormCheckbox {
|
|
|
6
6
|
private f;
|
|
7
7
|
private inputRef?;
|
|
8
8
|
private readonly checkboxId;
|
|
9
|
+
private hydrated;
|
|
9
10
|
constructor();
|
|
10
11
|
host: HTMLGovFormCheckboxElement;
|
|
11
12
|
/**
|
|
@@ -71,6 +72,7 @@ export declare class GovFormCheckbox {
|
|
|
71
72
|
private passControlAttrs;
|
|
72
73
|
componentWillLoad(): void;
|
|
73
74
|
componentDidRender(): Promise<void>;
|
|
75
|
+
connectedCallback(): void;
|
|
74
76
|
render(): any;
|
|
75
77
|
private onFocusHandler;
|
|
76
78
|
private onBlurHandler;
|
|
@@ -10,3 +10,9 @@ export type FormGroupOrientationType = `${ValueOf<typeof FormGroupOrientation>}`
|
|
|
10
10
|
export declare const FormGroupClass: {
|
|
11
11
|
root: string;
|
|
12
12
|
};
|
|
13
|
+
export declare const FormRadioGroupClass: {
|
|
14
|
+
root: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const FormCheckboxGroupClass: {
|
|
17
|
+
root: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
import { FormGroupOrientationType, FormGroupSizesType } from "./constants";
|
|
3
|
+
import { FormCheckboxEvent } from "../checkbox/gov-form-checkbox.types";
|
|
4
|
+
import { FormCheckboxGroupEvent } from "./gov-form-group.types";
|
|
5
|
+
export declare class GovFormCheckboxGroup {
|
|
6
|
+
private readonly h;
|
|
7
|
+
constructor();
|
|
8
|
+
host: HTMLGovFormGroupElement;
|
|
9
|
+
/**
|
|
10
|
+
* Gap's size.
|
|
11
|
+
*/
|
|
12
|
+
readonly gap?: FormGroupSizesType;
|
|
13
|
+
/**
|
|
14
|
+
* Elements orientation
|
|
15
|
+
*/
|
|
16
|
+
readonly orientation?: FormGroupOrientationType;
|
|
17
|
+
/**
|
|
18
|
+
* Group's value
|
|
19
|
+
*/
|
|
20
|
+
value?: string | string[];
|
|
21
|
+
/**
|
|
22
|
+
/* Emitted when the checkbox change value.
|
|
23
|
+
*/
|
|
24
|
+
govChange: EventEmitter<FormCheckboxGroupEvent>;
|
|
25
|
+
validateGap(newValue: string): void;
|
|
26
|
+
validateOrientation(newValue: string): void;
|
|
27
|
+
handleChange: (event: CustomEvent<FormCheckboxEvent>) => void;
|
|
28
|
+
componentWillLoad(): void;
|
|
29
|
+
componentDidRender(): void;
|
|
30
|
+
rerenderComponent(): void;
|
|
31
|
+
render(): any;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
import { FormGroupOrientationType, FormGroupSizesType } from "./constants";
|
|
3
|
+
import { FormRadioEvent } from "../radio/gov-form-radio.types";
|
|
4
|
+
import { FormRadioGroupEvent } from "./gov-form-group.types";
|
|
5
|
+
export declare class GovFormRadioGroup {
|
|
6
|
+
private readonly h;
|
|
7
|
+
constructor();
|
|
8
|
+
host: HTMLGovFormGroupElement;
|
|
9
|
+
/**
|
|
10
|
+
* Gap's size.
|
|
11
|
+
*/
|
|
12
|
+
readonly gap?: FormGroupSizesType;
|
|
13
|
+
/**
|
|
14
|
+
* Elements orientation
|
|
15
|
+
*/
|
|
16
|
+
readonly orientation?: FormGroupOrientationType;
|
|
17
|
+
/**
|
|
18
|
+
* Group's value
|
|
19
|
+
*/
|
|
20
|
+
value?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Emitted when the checkbox change value.
|
|
23
|
+
*/
|
|
24
|
+
govChange: EventEmitter<FormRadioGroupEvent>;
|
|
25
|
+
validateGap(newValue: string): void;
|
|
26
|
+
validateOrientation(newValue: string): void;
|
|
27
|
+
handleChange: (event: CustomEvent<FormRadioEvent>) => void;
|
|
28
|
+
componentWillLoad(): void;
|
|
29
|
+
componentDidRender(): void;
|
|
30
|
+
rerenderComponent(): void;
|
|
31
|
+
render(): any;
|
|
32
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
2
|
import { FormMultiselectSizesType, FormMultiselectVariantType } from './constants';
|
|
3
|
-
import { FormMultiselectEvent, GovFormMultiSelectItem } from './gov-form-multi-select.types';
|
|
3
|
+
import { FormMultiselectEvent, GovFormMultiSelectItem, GovFormMultiSelectSelectedItem } from './gov-form-multi-select.types';
|
|
4
4
|
export declare class GovFormMultiSelect {
|
|
5
5
|
private f;
|
|
6
6
|
private readonly h;
|
|
@@ -10,6 +10,14 @@ export declare class GovFormMultiSelect {
|
|
|
10
10
|
private readonly listId;
|
|
11
11
|
constructor();
|
|
12
12
|
host: HTMLGovFormSelectElement;
|
|
13
|
+
/**
|
|
14
|
+
* Value of multi-select
|
|
15
|
+
*/
|
|
16
|
+
value: string | GovFormMultiSelectSelectedItem[];
|
|
17
|
+
/**
|
|
18
|
+
* Options of multi-select
|
|
19
|
+
*/
|
|
20
|
+
options?: string | GovFormMultiSelectItem[];
|
|
13
21
|
/**
|
|
14
22
|
* Custom select identifier.
|
|
15
23
|
*/
|
|
@@ -93,21 +101,25 @@ export declare class GovFormMultiSelect {
|
|
|
93
101
|
*/
|
|
94
102
|
govRemove: EventEmitter<FormMultiselectEvent>;
|
|
95
103
|
focused: boolean;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
104
|
+
valueState: string;
|
|
105
|
+
selectedOptionsState: GovFormMultiSelectSelectedItem[];
|
|
106
|
+
optionsState: GovFormMultiSelectItem[];
|
|
99
107
|
validateVariant(newValue: string): void;
|
|
100
108
|
validateSize(newValue: string): void;
|
|
109
|
+
watchOptions(newValue: string | GovFormMultiSelectItem[]): void;
|
|
110
|
+
watchValue(newValue: string | GovFormMultiSelectItem[]): void;
|
|
101
111
|
watchDisabled(): void;
|
|
102
112
|
private passControlAttrs;
|
|
103
113
|
componentWillLoad(): void;
|
|
104
114
|
private getAvailableOptions;
|
|
105
115
|
private initAutocomplete;
|
|
106
|
-
private
|
|
116
|
+
private selectedValueIndex;
|
|
107
117
|
private getOptionElement;
|
|
118
|
+
private getOption;
|
|
108
119
|
private selectOption;
|
|
109
120
|
private removeOption;
|
|
110
121
|
componentDidLoad(): Promise<void>;
|
|
122
|
+
componentDidRender(): Promise<void>;
|
|
111
123
|
render(): any;
|
|
112
124
|
private onFocusHandler;
|
|
113
125
|
private onBlurHandler;
|
|
@@ -126,30 +138,6 @@ export declare class GovFormMultiSelect {
|
|
|
126
138
|
* Returns an instance of the native html select element
|
|
127
139
|
*/
|
|
128
140
|
getRef(): Promise<HTMLSelectElement>;
|
|
129
|
-
/**
|
|
130
|
-
* Returns a list of selected items
|
|
131
|
-
*/
|
|
132
|
-
getSelectedOptions(): Promise<GovFormMultiSelectItem[]>;
|
|
133
|
-
/**
|
|
134
|
-
* Setting a list of options to choose from
|
|
135
|
-
*/
|
|
136
|
-
setOptions(options: GovFormMultiSelectItem[]): Promise<void>;
|
|
137
|
-
/**
|
|
138
|
-
* Returns all available options
|
|
139
|
-
*/
|
|
140
|
-
getOptions(ignoreFilter?: boolean): Promise<GovFormMultiSelectItem[]>;
|
|
141
|
-
/**
|
|
142
|
-
* Setting the list of selected options
|
|
143
|
-
*/
|
|
144
|
-
setSelectedOptions(options: GovFormMultiSelectItem[]): Promise<void>;
|
|
145
|
-
/**
|
|
146
|
-
* To remove an option from the selected list
|
|
147
|
-
*/
|
|
148
|
-
removeSelectedOption(option: GovFormMultiSelectItem, notify?: boolean): Promise<void>;
|
|
149
|
-
/**
|
|
150
|
-
* Returns an instance of the native html select element
|
|
151
|
-
*/
|
|
152
|
-
setSelectedOption(option: GovFormMultiSelectItem, notify?: boolean): Promise<void>;
|
|
153
141
|
/**
|
|
154
142
|
* Validate the WCAG attributes of the component
|
|
155
143
|
*/
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { GovBaseEvent } from "../../../types/event.types";
|
|
2
2
|
export interface GovFormMultiSelectItem {
|
|
3
|
-
name: string;
|
|
4
3
|
value: string;
|
|
4
|
+
name?: string;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
}
|
|
7
|
+
export type GovFormMultiSelectSelectedItem = number | string;
|
|
7
8
|
export interface FormMultiselectEvent extends GovBaseEvent {
|
|
8
|
-
value:
|
|
9
|
+
value: GovFormMultiSelectSelectedItem[];
|
|
9
10
|
}
|
|
@@ -6,6 +6,7 @@ export declare class GovFormRadio {
|
|
|
6
6
|
private f;
|
|
7
7
|
private inputRef?;
|
|
8
8
|
private readonly radioId;
|
|
9
|
+
private hydrated;
|
|
9
10
|
constructor();
|
|
10
11
|
host: HTMLGovFormRadioElement;
|
|
11
12
|
/**
|
|
@@ -71,6 +72,7 @@ export declare class GovFormRadio {
|
|
|
71
72
|
private passControlAttrs;
|
|
72
73
|
componentWillLoad(): void;
|
|
73
74
|
componentDidRender(): Promise<void>;
|
|
75
|
+
connectedCallback(): void;
|
|
74
76
|
render(): any;
|
|
75
77
|
private onClickHandler;
|
|
76
78
|
private onFocusHandler;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Sizes } from '../../../core/constants/sizes';
|
|
2
2
|
import { Variants } from '../../../core/constants/variants';
|
|
3
3
|
import { ValueOf } from '../../../types/interfaces';
|
|
4
|
-
export declare const FormSelectSizes: Pick<typeof Sizes, "_M" | "_L" | "_XL">;
|
|
4
|
+
export declare const FormSelectSizes: Pick<typeof Sizes, "_S" | "_M" | "_L" | "_XL">;
|
|
5
5
|
export type FormSelectSizesType = `${ValueOf<typeof FormSelectSizes>}`;
|
|
6
6
|
export declare const FormSelectVariants: Pick<typeof Variants, "PRIMARY" | "SECONDARY">;
|
|
7
7
|
export type FormSelectVariantType = `${ValueOf<typeof FormSelectVariants>}`;
|
|
@@ -12,6 +12,10 @@ export declare class GovFormSelect {
|
|
|
12
12
|
* Value of select
|
|
13
13
|
*/
|
|
14
14
|
value: string;
|
|
15
|
+
/**
|
|
16
|
+
* Options of select
|
|
17
|
+
*/
|
|
18
|
+
options?: string | FormSelectOption[];
|
|
15
19
|
/**
|
|
16
20
|
* Custom select identifier.
|
|
17
21
|
*/
|
|
@@ -79,9 +83,10 @@ export declare class GovFormSelect {
|
|
|
79
83
|
*/
|
|
80
84
|
govChange: EventEmitter<FormSelectEvent>;
|
|
81
85
|
focused: boolean;
|
|
82
|
-
|
|
86
|
+
optionsState: FormSelectOption[];
|
|
83
87
|
validateVariant(newValue: string): void;
|
|
84
88
|
validateSize(newValue: string): void;
|
|
89
|
+
watchOptions(newValue: string | FormSelectOption[]): void;
|
|
85
90
|
watchDisabled(): void;
|
|
86
91
|
watchValue(): void;
|
|
87
92
|
private passControlAttrs;
|
|
@@ -96,18 +101,10 @@ export declare class GovFormSelect {
|
|
|
96
101
|
* Returns the current state of the component
|
|
97
102
|
*/
|
|
98
103
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
99
|
-
/**
|
|
100
|
-
* Sets the ordered value of the element
|
|
101
|
-
*/
|
|
102
|
-
setValue(value: string): Promise<void>;
|
|
103
104
|
/**
|
|
104
105
|
* Returns an instance of the native html select element
|
|
105
106
|
*/
|
|
106
107
|
getRef(): Promise<HTMLSelectElement>;
|
|
107
|
-
/**
|
|
108
|
-
* Sets the selection options
|
|
109
|
-
*/
|
|
110
|
-
setOptions(options: FormSelectOption[]): Promise<void>;
|
|
111
108
|
/**
|
|
112
109
|
* Validate the WCAG attributes of the component
|
|
113
110
|
*/
|
|
@@ -6,6 +6,7 @@ export declare class GovFormSwitch {
|
|
|
6
6
|
private f;
|
|
7
7
|
private inputRef?;
|
|
8
8
|
private readonly checkboxId;
|
|
9
|
+
private hydrated;
|
|
9
10
|
constructor();
|
|
10
11
|
host: HTMLGovFormSwitchElement;
|
|
11
12
|
/**
|
|
@@ -71,6 +72,7 @@ export declare class GovFormSwitch {
|
|
|
71
72
|
private passControlAttrs;
|
|
72
73
|
componentWillLoad(): void;
|
|
73
74
|
componentDidRender(): Promise<void>;
|
|
75
|
+
connectedCallback(): void;
|
|
74
76
|
render(): any;
|
|
75
77
|
private onClickHandler;
|
|
76
78
|
private onFocusHandler;
|
|
@@ -19,21 +19,22 @@ import { SizesType, VariantType } from "./components/gov-form/autocomplete/const
|
|
|
19
19
|
import { FormAutocompleteEvent, GovFormAutocompleteItem } from "./components/gov-form/autocomplete/gov-form-autocomplete.types";
|
|
20
20
|
import { FormCheckboxSizesType } from "./components/gov-form/checkbox/constants";
|
|
21
21
|
import { FormCheckboxEvent } from "./components/gov-form/checkbox/gov-form-checkbox.types";
|
|
22
|
+
import { FormGroupOrientationType, FormGroupSizesType } from "./components/gov-form/group/constants";
|
|
23
|
+
import { FormCheckboxGroupEvent, FormRadioGroupEvent } from "./components/gov-form/group/gov-form-group.types";
|
|
22
24
|
import { FormControlSizesType } from "./components/gov-form/control/constants";
|
|
23
25
|
import { GovFormFileEvent } from "./components/gov-form/file/gov-form-file.types";
|
|
24
|
-
import { FormGroupOrientationType, FormGroupSizesType } from "./components/gov-form/group/constants";
|
|
25
26
|
import { FormInputSizesType, FormInputVariantType, InputType, Type } from "./components/gov-form/input/constants";
|
|
26
27
|
import { Nullable } from "./types/interfaces";
|
|
27
28
|
import { FormInputEvent } from "./components/gov-form/input/gov-form-input.types";
|
|
28
29
|
import { FormLabelSizesTypes } from "./components/gov-form/label/constants";
|
|
29
30
|
import { FormMessageVariantType } from "./components/gov-form/message/constants";
|
|
31
|
+
import { FormMultiselectEvent, GovFormMultiSelectItem, GovFormMultiSelectSelectedItem } from "./components/gov-form/multiselect/gov-form-multi-select.types";
|
|
30
32
|
import { FormMultiselectSizesType, FormMultiselectVariantType } from "./components/gov-form/multiselect/constants";
|
|
31
|
-
import { FormMultiselectEvent, GovFormMultiSelectItem } from "./components/gov-form/multiselect/gov-form-multi-select.types";
|
|
32
33
|
import { FormRadioSizesType } from "./components/gov-form/radio/constants";
|
|
33
34
|
import { FormRadioEvent } from "./components/gov-form/radio/gov-form-radio.types";
|
|
34
35
|
import { FormSearchVariantType } from "./components/gov-form/search/constants";
|
|
35
|
-
import { FormSelectSizesType, FormSelectVariantType } from "./components/gov-form/select/constants";
|
|
36
36
|
import { FormSelectEvent, FormSelectOption } from "./components/gov-form/select/gov-form-select.types";
|
|
37
|
+
import { FormSelectSizesType, FormSelectVariantType } from "./components/gov-form/select/constants";
|
|
37
38
|
import { FormSwitchSizesType } from "./components/gov-form/switch/constants";
|
|
38
39
|
import { FormSwitchEvent } from "./components/gov-form/switch/gov-form-switch.types";
|
|
39
40
|
import { VariantType as VariantType1 } from "./components/gov-infobar/constants";
|
|
@@ -68,21 +69,22 @@ export { SizesType, VariantType } from "./components/gov-form/autocomplete/const
|
|
|
68
69
|
export { FormAutocompleteEvent, GovFormAutocompleteItem } from "./components/gov-form/autocomplete/gov-form-autocomplete.types";
|
|
69
70
|
export { FormCheckboxSizesType } from "./components/gov-form/checkbox/constants";
|
|
70
71
|
export { FormCheckboxEvent } from "./components/gov-form/checkbox/gov-form-checkbox.types";
|
|
72
|
+
export { FormGroupOrientationType, FormGroupSizesType } from "./components/gov-form/group/constants";
|
|
73
|
+
export { FormCheckboxGroupEvent, FormRadioGroupEvent } from "./components/gov-form/group/gov-form-group.types";
|
|
71
74
|
export { FormControlSizesType } from "./components/gov-form/control/constants";
|
|
72
75
|
export { GovFormFileEvent } from "./components/gov-form/file/gov-form-file.types";
|
|
73
|
-
export { FormGroupOrientationType, FormGroupSizesType } from "./components/gov-form/group/constants";
|
|
74
76
|
export { FormInputSizesType, FormInputVariantType, InputType, Type } from "./components/gov-form/input/constants";
|
|
75
77
|
export { Nullable } from "./types/interfaces";
|
|
76
78
|
export { FormInputEvent } from "./components/gov-form/input/gov-form-input.types";
|
|
77
79
|
export { FormLabelSizesTypes } from "./components/gov-form/label/constants";
|
|
78
80
|
export { FormMessageVariantType } from "./components/gov-form/message/constants";
|
|
81
|
+
export { FormMultiselectEvent, GovFormMultiSelectItem, GovFormMultiSelectSelectedItem } from "./components/gov-form/multiselect/gov-form-multi-select.types";
|
|
79
82
|
export { FormMultiselectSizesType, FormMultiselectVariantType } from "./components/gov-form/multiselect/constants";
|
|
80
|
-
export { FormMultiselectEvent, GovFormMultiSelectItem } from "./components/gov-form/multiselect/gov-form-multi-select.types";
|
|
81
83
|
export { FormRadioSizesType } from "./components/gov-form/radio/constants";
|
|
82
84
|
export { FormRadioEvent } from "./components/gov-form/radio/gov-form-radio.types";
|
|
83
85
|
export { FormSearchVariantType } from "./components/gov-form/search/constants";
|
|
84
|
-
export { FormSelectSizesType, FormSelectVariantType } from "./components/gov-form/select/constants";
|
|
85
86
|
export { FormSelectEvent, FormSelectOption } from "./components/gov-form/select/gov-form-select.types";
|
|
87
|
+
export { FormSelectSizesType, FormSelectVariantType } from "./components/gov-form/select/constants";
|
|
86
88
|
export { FormSwitchSizesType } from "./components/gov-form/switch/constants";
|
|
87
89
|
export { FormSwitchEvent } from "./components/gov-form/switch/gov-form-switch.types";
|
|
88
90
|
export { VariantType as VariantType1 } from "./components/gov-infobar/constants";
|
|
@@ -699,6 +701,20 @@ export namespace Components {
|
|
|
699
701
|
*/
|
|
700
702
|
"wcagLabelledBy": string;
|
|
701
703
|
}
|
|
704
|
+
interface GovFormCheckboxGroup {
|
|
705
|
+
/**
|
|
706
|
+
* Gap's size.
|
|
707
|
+
*/
|
|
708
|
+
"gap"?: FormGroupSizesType;
|
|
709
|
+
/**
|
|
710
|
+
* Elements orientation
|
|
711
|
+
*/
|
|
712
|
+
"orientation"?: FormGroupOrientationType;
|
|
713
|
+
/**
|
|
714
|
+
* Group's value
|
|
715
|
+
*/
|
|
716
|
+
"value"?: string | string[];
|
|
717
|
+
}
|
|
702
718
|
interface GovFormControl {
|
|
703
719
|
/**
|
|
704
720
|
* /** Indicates the form element is disabled
|
|
@@ -1004,18 +1020,10 @@ export namespace Components {
|
|
|
1004
1020
|
* Makes the select component disabled. This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.
|
|
1005
1021
|
*/
|
|
1006
1022
|
"disabled": boolean;
|
|
1007
|
-
/**
|
|
1008
|
-
* Returns all available options
|
|
1009
|
-
*/
|
|
1010
|
-
"getOptions": (ignoreFilter?: boolean) => Promise<GovFormMultiSelectItem[]>;
|
|
1011
1023
|
/**
|
|
1012
1024
|
* Returns an instance of the native html select element
|
|
1013
1025
|
*/
|
|
1014
1026
|
"getRef": () => Promise<HTMLSelectElement>;
|
|
1015
|
-
/**
|
|
1016
|
-
* Returns a list of selected items
|
|
1017
|
-
*/
|
|
1018
|
-
"getSelectedOptions": () => Promise<GovFormMultiSelectItem[]>;
|
|
1019
1027
|
/**
|
|
1020
1028
|
* Option to hide the list of selected items
|
|
1021
1029
|
*/
|
|
@@ -1041,13 +1049,13 @@ export namespace Components {
|
|
|
1041
1049
|
*/
|
|
1042
1050
|
"name": string;
|
|
1043
1051
|
/**
|
|
1044
|
-
*
|
|
1052
|
+
* Options of multi-select
|
|
1045
1053
|
*/
|
|
1046
|
-
"
|
|
1054
|
+
"options"?: string | GovFormMultiSelectItem[];
|
|
1047
1055
|
/**
|
|
1048
|
-
*
|
|
1056
|
+
* Custom select placeholder.
|
|
1049
1057
|
*/
|
|
1050
|
-
"
|
|
1058
|
+
"placeholder": string;
|
|
1051
1059
|
/**
|
|
1052
1060
|
* Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them. When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.
|
|
1053
1061
|
*/
|
|
@@ -1056,18 +1064,6 @@ export namespace Components {
|
|
|
1056
1064
|
* Returns the current state of the component
|
|
1057
1065
|
*/
|
|
1058
1066
|
"setFocus": (options?: FocusOptions) => Promise<void>;
|
|
1059
|
-
/**
|
|
1060
|
-
* Setting a list of options to choose from
|
|
1061
|
-
*/
|
|
1062
|
-
"setOptions": (options: GovFormMultiSelectItem[]) => Promise<void>;
|
|
1063
|
-
/**
|
|
1064
|
-
* Returns an instance of the native html select element
|
|
1065
|
-
*/
|
|
1066
|
-
"setSelectedOption": (option: GovFormMultiSelectItem, notify?: boolean) => Promise<void>;
|
|
1067
|
-
/**
|
|
1068
|
-
* Setting the list of selected options
|
|
1069
|
-
*/
|
|
1070
|
-
"setSelectedOptions": (options: GovFormMultiSelectItem[]) => Promise<void>;
|
|
1071
1067
|
/**
|
|
1072
1068
|
* Sets the ordered value of the element
|
|
1073
1069
|
*/
|
|
@@ -1084,6 +1080,10 @@ export namespace Components {
|
|
|
1084
1080
|
* Validate the WCAG attributes of the component
|
|
1085
1081
|
*/
|
|
1086
1082
|
"validateWcag": () => Promise<void>;
|
|
1083
|
+
/**
|
|
1084
|
+
* Value of multi-select
|
|
1085
|
+
*/
|
|
1086
|
+
"value": string | GovFormMultiSelectSelectedItem[];
|
|
1087
1087
|
/**
|
|
1088
1088
|
* Style variation of the form select.
|
|
1089
1089
|
*/
|
|
@@ -1161,6 +1161,20 @@ export namespace Components {
|
|
|
1161
1161
|
*/
|
|
1162
1162
|
"wcagLabelledBy": string;
|
|
1163
1163
|
}
|
|
1164
|
+
interface GovFormRadioGroup {
|
|
1165
|
+
/**
|
|
1166
|
+
* Gap's size.
|
|
1167
|
+
*/
|
|
1168
|
+
"gap"?: FormGroupSizesType;
|
|
1169
|
+
/**
|
|
1170
|
+
* Elements orientation
|
|
1171
|
+
*/
|
|
1172
|
+
"orientation"?: FormGroupOrientationType;
|
|
1173
|
+
/**
|
|
1174
|
+
* Group's value
|
|
1175
|
+
*/
|
|
1176
|
+
"value"?: string;
|
|
1177
|
+
}
|
|
1164
1178
|
interface GovFormSearch {
|
|
1165
1179
|
/**
|
|
1166
1180
|
* Style variation of the form input.
|
|
@@ -1188,6 +1202,10 @@ export namespace Components {
|
|
|
1188
1202
|
* Name of the select.
|
|
1189
1203
|
*/
|
|
1190
1204
|
"name": string;
|
|
1205
|
+
/**
|
|
1206
|
+
* Options of select
|
|
1207
|
+
*/
|
|
1208
|
+
"options"?: string | FormSelectOption[];
|
|
1191
1209
|
/**
|
|
1192
1210
|
* Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them. When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.
|
|
1193
1211
|
*/
|
|
@@ -1196,14 +1214,6 @@ export namespace Components {
|
|
|
1196
1214
|
* Returns the current state of the component
|
|
1197
1215
|
*/
|
|
1198
1216
|
"setFocus": (options?: FocusOptions) => Promise<void>;
|
|
1199
|
-
/**
|
|
1200
|
-
* Sets the selection options
|
|
1201
|
-
*/
|
|
1202
|
-
"setOptions": (options: FormSelectOption[]) => Promise<void>;
|
|
1203
|
-
/**
|
|
1204
|
-
* Sets the ordered value of the element
|
|
1205
|
-
*/
|
|
1206
|
-
"setValue": (value: string) => Promise<void>;
|
|
1207
1217
|
/**
|
|
1208
1218
|
* Select’s size.
|
|
1209
1219
|
*/
|
|
@@ -2085,6 +2095,10 @@ export interface GovFormCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
|
2085
2095
|
detail: T;
|
|
2086
2096
|
target: HTMLGovFormCheckboxElement;
|
|
2087
2097
|
}
|
|
2098
|
+
export interface GovFormCheckboxGroupCustomEvent<T> extends CustomEvent<T> {
|
|
2099
|
+
detail: T;
|
|
2100
|
+
target: HTMLGovFormCheckboxGroupElement;
|
|
2101
|
+
}
|
|
2088
2102
|
export interface GovFormFileCustomEvent<T> extends CustomEvent<T> {
|
|
2089
2103
|
detail: T;
|
|
2090
2104
|
target: HTMLGovFormFileElement;
|
|
@@ -2105,6 +2119,10 @@ export interface GovFormRadioCustomEvent<T> extends CustomEvent<T> {
|
|
|
2105
2119
|
detail: T;
|
|
2106
2120
|
target: HTMLGovFormRadioElement;
|
|
2107
2121
|
}
|
|
2122
|
+
export interface GovFormRadioGroupCustomEvent<T> extends CustomEvent<T> {
|
|
2123
|
+
detail: T;
|
|
2124
|
+
target: HTMLGovFormRadioGroupElement;
|
|
2125
|
+
}
|
|
2108
2126
|
export interface GovFormSelectCustomEvent<T> extends CustomEvent<T> {
|
|
2109
2127
|
detail: T;
|
|
2110
2128
|
target: HTMLGovFormSelectElement;
|
|
@@ -2264,6 +2282,12 @@ declare global {
|
|
|
2264
2282
|
prototype: HTMLGovFormCheckboxElement;
|
|
2265
2283
|
new (): HTMLGovFormCheckboxElement;
|
|
2266
2284
|
};
|
|
2285
|
+
interface HTMLGovFormCheckboxGroupElement extends Components.GovFormCheckboxGroup, HTMLStencilElement {
|
|
2286
|
+
}
|
|
2287
|
+
var HTMLGovFormCheckboxGroupElement: {
|
|
2288
|
+
prototype: HTMLGovFormCheckboxGroupElement;
|
|
2289
|
+
new (): HTMLGovFormCheckboxGroupElement;
|
|
2290
|
+
};
|
|
2267
2291
|
interface HTMLGovFormControlElement extends Components.GovFormControl, HTMLStencilElement {
|
|
2268
2292
|
}
|
|
2269
2293
|
var HTMLGovFormControlElement: {
|
|
@@ -2318,6 +2342,12 @@ declare global {
|
|
|
2318
2342
|
prototype: HTMLGovFormRadioElement;
|
|
2319
2343
|
new (): HTMLGovFormRadioElement;
|
|
2320
2344
|
};
|
|
2345
|
+
interface HTMLGovFormRadioGroupElement extends Components.GovFormRadioGroup, HTMLStencilElement {
|
|
2346
|
+
}
|
|
2347
|
+
var HTMLGovFormRadioGroupElement: {
|
|
2348
|
+
prototype: HTMLGovFormRadioGroupElement;
|
|
2349
|
+
new (): HTMLGovFormRadioGroupElement;
|
|
2350
|
+
};
|
|
2321
2351
|
interface HTMLGovFormSearchElement extends Components.GovFormSearch, HTMLStencilElement {
|
|
2322
2352
|
}
|
|
2323
2353
|
var HTMLGovFormSearchElement: {
|
|
@@ -2540,6 +2570,7 @@ declare global {
|
|
|
2540
2570
|
"gov-error-code": HTMLGovErrorCodeElement;
|
|
2541
2571
|
"gov-form-autocomplete": HTMLGovFormAutocompleteElement;
|
|
2542
2572
|
"gov-form-checkbox": HTMLGovFormCheckboxElement;
|
|
2573
|
+
"gov-form-checkbox-group": HTMLGovFormCheckboxGroupElement;
|
|
2543
2574
|
"gov-form-control": HTMLGovFormControlElement;
|
|
2544
2575
|
"gov-form-file": HTMLGovFormFileElement;
|
|
2545
2576
|
"gov-form-group": HTMLGovFormGroupElement;
|
|
@@ -2549,6 +2580,7 @@ declare global {
|
|
|
2549
2580
|
"gov-form-multi-select": HTMLGovFormMultiSelectElement;
|
|
2550
2581
|
"gov-form-password-power": HTMLGovFormPasswordPowerElement;
|
|
2551
2582
|
"gov-form-radio": HTMLGovFormRadioElement;
|
|
2583
|
+
"gov-form-radio-group": HTMLGovFormRadioGroupElement;
|
|
2552
2584
|
"gov-form-search": HTMLGovFormSearchElement;
|
|
2553
2585
|
"gov-form-select": HTMLGovFormSelectElement;
|
|
2554
2586
|
"gov-form-switch": HTMLGovFormSwitchElement;
|
|
@@ -3135,6 +3167,24 @@ declare namespace LocalJSX {
|
|
|
3135
3167
|
*/
|
|
3136
3168
|
"wcagLabelledBy"?: string;
|
|
3137
3169
|
}
|
|
3170
|
+
interface GovFormCheckboxGroup {
|
|
3171
|
+
/**
|
|
3172
|
+
* Gap's size.
|
|
3173
|
+
*/
|
|
3174
|
+
"gap"?: FormGroupSizesType;
|
|
3175
|
+
/**
|
|
3176
|
+
* /* Emitted when the checkbox change value.
|
|
3177
|
+
*/
|
|
3178
|
+
"onGov-change"?: (event: GovFormCheckboxGroupCustomEvent<FormCheckboxGroupEvent>) => void;
|
|
3179
|
+
/**
|
|
3180
|
+
* Elements orientation
|
|
3181
|
+
*/
|
|
3182
|
+
"orientation"?: FormGroupOrientationType;
|
|
3183
|
+
/**
|
|
3184
|
+
* Group's value
|
|
3185
|
+
*/
|
|
3186
|
+
"value"?: string | string[];
|
|
3187
|
+
}
|
|
3138
3188
|
interface GovFormControl {
|
|
3139
3189
|
/**
|
|
3140
3190
|
* /** Indicates the form element is disabled
|
|
@@ -3492,6 +3542,10 @@ declare namespace LocalJSX {
|
|
|
3492
3542
|
* Emitted when an item is selected
|
|
3493
3543
|
*/
|
|
3494
3544
|
"onGov-select"?: (event: GovFormMultiSelectCustomEvent<FormMultiselectEvent>) => void;
|
|
3545
|
+
/**
|
|
3546
|
+
* Options of multi-select
|
|
3547
|
+
*/
|
|
3548
|
+
"options"?: string | GovFormMultiSelectItem[];
|
|
3495
3549
|
/**
|
|
3496
3550
|
* Custom select placeholder.
|
|
3497
3551
|
*/
|
|
@@ -3508,6 +3562,10 @@ declare namespace LocalJSX {
|
|
|
3508
3562
|
* Indicates the entered value of child form element does conform to the format expected by the application.
|
|
3509
3563
|
*/
|
|
3510
3564
|
"success"?: boolean;
|
|
3565
|
+
/**
|
|
3566
|
+
* Value of multi-select
|
|
3567
|
+
*/
|
|
3568
|
+
"value"?: string | GovFormMultiSelectSelectedItem[];
|
|
3511
3569
|
/**
|
|
3512
3570
|
* Style variation of the form select.
|
|
3513
3571
|
*/
|
|
@@ -3589,6 +3647,24 @@ declare namespace LocalJSX {
|
|
|
3589
3647
|
*/
|
|
3590
3648
|
"wcagLabelledBy"?: string;
|
|
3591
3649
|
}
|
|
3650
|
+
interface GovFormRadioGroup {
|
|
3651
|
+
/**
|
|
3652
|
+
* Gap's size.
|
|
3653
|
+
*/
|
|
3654
|
+
"gap"?: FormGroupSizesType;
|
|
3655
|
+
/**
|
|
3656
|
+
* Emitted when the checkbox change value.
|
|
3657
|
+
*/
|
|
3658
|
+
"onGov-change"?: (event: GovFormRadioGroupCustomEvent<FormRadioGroupEvent>) => void;
|
|
3659
|
+
/**
|
|
3660
|
+
* Elements orientation
|
|
3661
|
+
*/
|
|
3662
|
+
"orientation"?: FormGroupOrientationType;
|
|
3663
|
+
/**
|
|
3664
|
+
* Group's value
|
|
3665
|
+
*/
|
|
3666
|
+
"value"?: string;
|
|
3667
|
+
}
|
|
3592
3668
|
interface GovFormSearch {
|
|
3593
3669
|
/**
|
|
3594
3670
|
* Style variation of the form input.
|
|
@@ -3624,6 +3700,10 @@ declare namespace LocalJSX {
|
|
|
3624
3700
|
* Emitted when the select has focus.
|
|
3625
3701
|
*/
|
|
3626
3702
|
"onGov-focus"?: (event: GovFormSelectCustomEvent<FormSelectEvent>) => void;
|
|
3703
|
+
/**
|
|
3704
|
+
* Options of select
|
|
3705
|
+
*/
|
|
3706
|
+
"options"?: string | FormSelectOption[];
|
|
3627
3707
|
/**
|
|
3628
3708
|
* Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them. When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.
|
|
3629
3709
|
*/
|
|
@@ -4402,6 +4482,7 @@ declare namespace LocalJSX {
|
|
|
4402
4482
|
"gov-error-code": GovErrorCode;
|
|
4403
4483
|
"gov-form-autocomplete": GovFormAutocomplete;
|
|
4404
4484
|
"gov-form-checkbox": GovFormCheckbox;
|
|
4485
|
+
"gov-form-checkbox-group": GovFormCheckboxGroup;
|
|
4405
4486
|
"gov-form-control": GovFormControl;
|
|
4406
4487
|
"gov-form-file": GovFormFile;
|
|
4407
4488
|
"gov-form-group": GovFormGroup;
|
|
@@ -4411,6 +4492,7 @@ declare namespace LocalJSX {
|
|
|
4411
4492
|
"gov-form-multi-select": GovFormMultiSelect;
|
|
4412
4493
|
"gov-form-password-power": GovFormPasswordPower;
|
|
4413
4494
|
"gov-form-radio": GovFormRadio;
|
|
4495
|
+
"gov-form-radio-group": GovFormRadioGroup;
|
|
4414
4496
|
"gov-form-search": GovFormSearch;
|
|
4415
4497
|
"gov-form-select": GovFormSelect;
|
|
4416
4498
|
"gov-form-switch": GovFormSwitch;
|
|
@@ -4468,6 +4550,7 @@ declare module "@stencil/core" {
|
|
|
4468
4550
|
"gov-error-code": LocalJSX.GovErrorCode & JSXBase.HTMLAttributes<HTMLGovErrorCodeElement>;
|
|
4469
4551
|
"gov-form-autocomplete": LocalJSX.GovFormAutocomplete & JSXBase.HTMLAttributes<HTMLGovFormAutocompleteElement>;
|
|
4470
4552
|
"gov-form-checkbox": LocalJSX.GovFormCheckbox & JSXBase.HTMLAttributes<HTMLGovFormCheckboxElement>;
|
|
4553
|
+
"gov-form-checkbox-group": LocalJSX.GovFormCheckboxGroup & JSXBase.HTMLAttributes<HTMLGovFormCheckboxGroupElement>;
|
|
4471
4554
|
"gov-form-control": LocalJSX.GovFormControl & JSXBase.HTMLAttributes<HTMLGovFormControlElement>;
|
|
4472
4555
|
"gov-form-file": LocalJSX.GovFormFile & JSXBase.HTMLAttributes<HTMLGovFormFileElement>;
|
|
4473
4556
|
"gov-form-group": LocalJSX.GovFormGroup & JSXBase.HTMLAttributes<HTMLGovFormGroupElement>;
|
|
@@ -4477,6 +4560,7 @@ declare module "@stencil/core" {
|
|
|
4477
4560
|
"gov-form-multi-select": LocalJSX.GovFormMultiSelect & JSXBase.HTMLAttributes<HTMLGovFormMultiSelectElement>;
|
|
4478
4561
|
"gov-form-password-power": LocalJSX.GovFormPasswordPower & JSXBase.HTMLAttributes<HTMLGovFormPasswordPowerElement>;
|
|
4479
4562
|
"gov-form-radio": LocalJSX.GovFormRadio & JSXBase.HTMLAttributes<HTMLGovFormRadioElement>;
|
|
4563
|
+
"gov-form-radio-group": LocalJSX.GovFormRadioGroup & JSXBase.HTMLAttributes<HTMLGovFormRadioGroupElement>;
|
|
4480
4564
|
"gov-form-search": LocalJSX.GovFormSearch & JSXBase.HTMLAttributes<HTMLGovFormSearchElement>;
|
|
4481
4565
|
"gov-form-select": LocalJSX.GovFormSelect & JSXBase.HTMLAttributes<HTMLGovFormSelectElement>;
|
|
4482
4566
|
"gov-form-switch": LocalJSX.GovFormSwitch & JSXBase.HTMLAttributes<HTMLGovFormSwitchElement>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const parseJSONString: (value: unknown) => object | [] | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tick: (callback: () => void) => void;
|