@genesislcap/foundation-forms 14.27.1 → 14.28.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/dist/custom-elements.json +6 -0
- package/dist/dts/form.d.ts +5 -0
- package/dist/dts/form.d.ts.map +1 -1
- package/dist/esm/form.js +7 -0
- package/dist/foundation-forms.api.json +31 -0
- package/dist/foundation-forms.d.ts +5 -0
- package/docs/api/foundation-forms.form.md +1 -0
- package/docs/api/foundation-forms.form.reset.md +17 -0
- package/docs/api-report.md +2 -0
- package/package.json +7 -7
package/dist/dts/form.d.ts
CHANGED
package/dist/dts/form.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/form.ts"],"names":[],"mappings":"AAEA,OAAO,EAKL,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAkB1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,gBAAgB;AAChB,eAAO,MAAM,MAAM,gDAAkC,CAAC;AActD,cAAc;AACd,eAAO,MAAM,SAAS,OAgBrB,CAAC;AACF;;;;;GAKG;AAEH,qBAKa,IAAK,SAAQ,iBAAiB;IACzC;;;;OAIG;IACG,YAAY,EAAE,MAAM,CAAC;YACb,mBAAmB;IAQjC,OAAO,CAAC,oBAAoB;IA0B5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACS,QAAQ,EAAE,eAAe,CAAC;IACtC;;;OAGG;IACS,SAAS,EAAE,aAAa,EAAE,CAAa;IACnD;;;;;;OAMG;IACS,UAAU,EAAE,WAAW,CAAC;IAEpC,OAAO,CAAC,MAAM,CAAqB;IAC1B,OAAO,CAAC,OAAO,CAAW;IACnC;;;OAGG;IACS,IAAI,EAAE,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,oBAAoB;IAKpB;;;OAGG;IACH,KAAK;CAIN"}
|
package/dist/esm/form.js
CHANGED
|
@@ -138,6 +138,13 @@ let Form = class Form extends FoundationElement {
|
|
|
138
138
|
}
|
|
139
139
|
disconnectedCallback() {
|
|
140
140
|
super.disconnectedCallback();
|
|
141
|
+
this.reset();
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Reset the form state
|
|
145
|
+
* @public
|
|
146
|
+
*/
|
|
147
|
+
reset() {
|
|
141
148
|
this.submitted = false;
|
|
142
149
|
this.data = {};
|
|
143
150
|
}
|
|
@@ -717,6 +717,37 @@
|
|
|
717
717
|
"isProtected": false,
|
|
718
718
|
"isAbstract": false
|
|
719
719
|
},
|
|
720
|
+
{
|
|
721
|
+
"kind": "Method",
|
|
722
|
+
"canonicalReference": "@genesislcap/foundation-forms!Form#reset:member(1)",
|
|
723
|
+
"docComment": "/**\n * Reset the form state\n *\n * @public\n */\n",
|
|
724
|
+
"excerptTokens": [
|
|
725
|
+
{
|
|
726
|
+
"kind": "Content",
|
|
727
|
+
"text": "reset(): "
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"kind": "Content",
|
|
731
|
+
"text": "void"
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"kind": "Content",
|
|
735
|
+
"text": ";"
|
|
736
|
+
}
|
|
737
|
+
],
|
|
738
|
+
"isStatic": false,
|
|
739
|
+
"returnTypeTokenRange": {
|
|
740
|
+
"startIndex": 1,
|
|
741
|
+
"endIndex": 2
|
|
742
|
+
},
|
|
743
|
+
"releaseTag": "Public",
|
|
744
|
+
"isProtected": false,
|
|
745
|
+
"overloadIndex": 1,
|
|
746
|
+
"parameters": [],
|
|
747
|
+
"isOptional": false,
|
|
748
|
+
"isAbstract": false,
|
|
749
|
+
"name": "reset"
|
|
750
|
+
},
|
|
720
751
|
{
|
|
721
752
|
"kind": "Property",
|
|
722
753
|
"canonicalReference": "@genesislcap/foundation-forms!Form#resourceName:member",
|
|
@@ -32,4 +32,5 @@ export declare class Form extends FoundationElement
|
|
|
32
32
|
| Method | Modifiers | Description |
|
|
33
33
|
| --- | --- | --- |
|
|
34
34
|
| [disconnectedCallback()](./foundation-forms.form.disconnectedcallback.md) | | **_(BETA)_** |
|
|
35
|
+
| [reset()](./foundation-forms.form.reset.md) | | Reset the form state |
|
|
35
36
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [Form](./foundation-forms.form.md) > [reset](./foundation-forms.form.reset.md)
|
|
4
|
+
|
|
5
|
+
## Form.reset() method
|
|
6
|
+
|
|
7
|
+
Reset the form state
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
reset(): void;
|
|
13
|
+
```
|
|
14
|
+
**Returns:**
|
|
15
|
+
|
|
16
|
+
void
|
|
17
|
+
|
package/docs/api-report.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-forms",
|
|
3
3
|
"description": "Genesis Foundation Forms",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.28.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"test:unit:watch": "watchlist src test -- npm run test:unit"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@genesislcap/foundation-testing": "^14.
|
|
47
|
-
"@genesislcap/genx": "^14.
|
|
46
|
+
"@genesislcap/foundation-testing": "^14.28.0",
|
|
47
|
+
"@genesislcap/genx": "^14.28.0",
|
|
48
48
|
"@playwright/test": "^1.18.1",
|
|
49
49
|
"@types/json-schema": "^7.0.11",
|
|
50
50
|
"@types/ua-parser-js": "^0.7.36",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"watchlist": "^0.3.1"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@genesislcap/foundation-comms": "^14.
|
|
63
|
-
"@genesislcap/foundation-criteria": "^14.
|
|
64
|
-
"@genesislcap/foundation-utils": "^14.
|
|
62
|
+
"@genesislcap/foundation-comms": "^14.28.0",
|
|
63
|
+
"@genesislcap/foundation-criteria": "^14.28.0",
|
|
64
|
+
"@genesislcap/foundation-utils": "^14.28.0",
|
|
65
65
|
"@jsonforms/core": "^3.0.0",
|
|
66
66
|
"@microsoft/fast-components": "^2.21.3",
|
|
67
67
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
84
|
"customElements": "dist/custom-elements.json",
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "fcf71da3c5d4780fc557a01487181de1d0aabad2"
|
|
86
86
|
}
|