@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.
@@ -142,6 +142,12 @@
142
142
  "text": "boolean"
143
143
  }
144
144
  },
145
+ {
146
+ "kind": "method",
147
+ "name": "reset",
148
+ "description": "Reset the form state",
149
+ "privacy": "public"
150
+ },
145
151
  {
146
152
  "kind": "field",
147
153
  "name": "_presentation",
@@ -98,5 +98,10 @@ export declare class Form extends FoundationElement {
98
98
  */
99
99
  onChange(event: CustomEvent): void;
100
100
  disconnectedCallback(): void;
101
+ /**
102
+ * Reset the form state
103
+ * @public
104
+ */
105
+ reset(): void;
101
106
  }
102
107
  //# sourceMappingURL=form.d.ts.map
@@ -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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G;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW;IAQ3B,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",
@@ -231,6 +231,11 @@ export declare class Form extends FoundationElement {
231
231
  */
232
232
  onChange(event: CustomEvent): void;
233
233
  disconnectedCallback(): void;
234
+ /**
235
+ * Reset the form state
236
+ * @public
237
+ */
238
+ reset(): void;
234
239
  }
235
240
 
236
241
  /** @public */
@@ -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) &gt; [@genesislcap/foundation-forms](./foundation-forms.md) &gt; [Form](./foundation-forms.form.md) &gt; [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
+
@@ -73,6 +73,8 @@ export class Form extends FoundationElement {
73
73
  // @public
74
74
  renderers: RendererEntry[];
75
75
  // @public
76
+ reset(): void;
77
+ // @public
76
78
  resourceName: string;
77
79
  // @internal (undocumented)
78
80
  _submit(): Promise<void>;
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.27.1",
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.27.1",
47
- "@genesislcap/genx": "^14.27.1",
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.27.1",
63
- "@genesislcap/foundation-criteria": "^14.27.1",
64
- "@genesislcap/foundation-utils": "^14.27.1",
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": "3a06da28ef8d0039962e68a07491f94dbad9fa68"
85
+ "gitHead": "fcf71da3c5d4780fc557a01487181de1d0aabad2"
86
86
  }