@genesislcap/foundation-forms 14.467.2 → 14.468.0-chore-add-reset-event.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.
|
@@ -492,6 +492,10 @@
|
|
|
492
492
|
"description": "Fired when bulk submit partially succeeds",
|
|
493
493
|
"name": "submit-partial-success"
|
|
494
494
|
},
|
|
495
|
+
{
|
|
496
|
+
"description": "Fired when form is reset",
|
|
497
|
+
"name": "reset"
|
|
498
|
+
},
|
|
495
499
|
{
|
|
496
500
|
"description": "Fired when row submit status changes",
|
|
497
501
|
"name": "row-status-changed"
|
package/dist/dts/form.d.ts
CHANGED
|
@@ -382,6 +382,7 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
382
382
|
* @fires submit-failure - Fired when submit fails (server or client validation)
|
|
383
383
|
* @fires submit-success - Fired when submit succeeds
|
|
384
384
|
* @fires submit-partial-success - Fired when bulk submit partially succeeds
|
|
385
|
+
* @fires reset - Fired when form is reset
|
|
385
386
|
* @fires row-status-changed - Fired when row submit status changes
|
|
386
387
|
* @fires bulk-submit-complete - Fired when bulk submit completes
|
|
387
388
|
* @fires row-submit-failure - Fired when a single row submit fails
|
package/dist/dts/form.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/form.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAyB1C,OAAO,EAAE,aAAa,EAAmC,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAyBlG;;;GAGG;AACH,eAAO,MAAM,SAAS,OAwBrB,CAAC;;;;;;;kBA7CC,CAAC;;;;;;;;8BAoDmC,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"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AAC;IAEzE;;;OAGG;IAQH,kBAAkB,EAAE,MAAM,CAAK;IAE/B;;;OAGG;IAQH,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IAEvC;;;OAGG;IACH,OAAO,CAAC,qBAAqB,CAA0B;IAEvD;;;OAGG;IACH,OAAO,CAAC,oBAAoB,CAAuB;IAEnD;;;;OAIG;IACS,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAa;IAEtE;;OAEG;IACG,OAAO;IAiEb;;;;OAIG;YACW,WAAW;IAuGzB;;;;;OAKG;IACH,OAAO,CAAC,eAAe;IAQvB;;;OAGG;IACH,sBAAsB;IAItB;;;;;OAKG;IACG,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAiDnD;;;;;;OAMG;IACH,OAAO,CAAC,oBAAoB;IAwB5B;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAU1B;;;OAGG;IACH,IAAc,cAAc,YAM3B;IAED;;;OAGG;IACH,IAAc,cAAc,YAE3B;IAED;;OAEG;IACM,SAAS,IAAI,IAAI;IAW1B;;OAEG;IACH,UAAU,CAAC,KAAK,EAAE,WAAW;IAI7B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW;IAmB3B;;OAEG;IACH,oBAAoB;IAKpB;;;OAGG;IACH,KAAK,CAAC,SAAS,UAAO;IAUtB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAOzB;;;OAGG;IACH,kBAAkB;IAQlB;;;OAGG;IACG,kBAAkB;IA+BxB;;;;;OAKG;IACG,qBAAqB,CAAC,KAAK,EAAE,KAAK;IAyFxC;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAMzB;;;;;OAKG;IACH,mBAAmB;CA2BpB"}
|
package/dist/esm/form.js
CHANGED
|
@@ -82,6 +82,7 @@ export const renderers = [
|
|
|
82
82
|
* @fires submit-failure - Fired when submit fails (server or client validation)
|
|
83
83
|
* @fires submit-success - Fired when submit succeeds
|
|
84
84
|
* @fires submit-partial-success - Fired when bulk submit partially succeeds
|
|
85
|
+
* @fires reset - Fired when form is reset
|
|
85
86
|
* @fires row-status-changed - Fired when row submit status changes
|
|
86
87
|
* @fires bulk-submit-complete - Fired when bulk submit completes
|
|
87
88
|
* @fires row-submit-failure - Fired when a single row submit fails
|
|
@@ -583,6 +584,7 @@ let Form = class Form extends LifecycleMixin(FoundationElement) {
|
|
|
583
584
|
* @public
|
|
584
585
|
*/
|
|
585
586
|
reset(clearData = true) {
|
|
587
|
+
this.$emit('reset');
|
|
586
588
|
this.submitted = false;
|
|
587
589
|
this.clearRowSubmitStatuses();
|
|
588
590
|
if (clearData) {
|
|
@@ -1855,7 +1855,7 @@
|
|
|
1855
1855
|
{
|
|
1856
1856
|
"kind": "Class",
|
|
1857
1857
|
"canonicalReference": "@genesislcap/foundation-forms!Form:class",
|
|
1858
|
-
"docComment": "/**\n * Foundation form component for automatically generated forms based on json schema obtained from the api, supplied initial data or supplied JSON schema. Allowing customisable form elements using UI schema and set of custom renderers\n *\n * @fires submit - Fired when the form is submitted (includes payload and validation errors) @fires submit-failure - Fired when submit fails (server or client validation) @fires submit-success - Fired when submit succeeds @fires submit-partial-success - Fired when bulk submit partially succeeds @fires row-status-changed - Fired when row submit status changes @fires bulk-submit-complete - Fired when bulk submit completes @fires row-submit-failure - Fired when a single row submit fails @fires row-submit-success - Fired when a single row submit succeeds @fires data-change - Fired when form data changes @fires csv-parse-error - Fired when CSV import parsing fails @fires csv-imported - Fired when CSV data is imported successfully @fires csv-template-error - Fired when CSV template cannot be generated @fires csv-template-downloaded - Fired when CSV template is downloaded\n *\n * @public\n */\n",
|
|
1858
|
+
"docComment": "/**\n * Foundation form component for automatically generated forms based on json schema obtained from the api, supplied initial data or supplied JSON schema. Allowing customisable form elements using UI schema and set of custom renderers\n *\n * @fires submit - Fired when the form is submitted (includes payload and validation errors) @fires submit-failure - Fired when submit fails (server or client validation) @fires submit-success - Fired when submit succeeds @fires submit-partial-success - Fired when bulk submit partially succeeds @fires reset - Fired when form is reset @fires row-status-changed - Fired when row submit status changes @fires bulk-submit-complete - Fired when bulk submit completes @fires row-submit-failure - Fired when a single row submit fails @fires row-submit-success - Fired when a single row submit succeeds @fires data-change - Fired when form data changes @fires csv-parse-error - Fired when CSV import parsing fails @fires csv-imported - Fired when CSV data is imported successfully @fires csv-template-error - Fired when CSV template cannot be generated @fires csv-template-downloaded - Fired when CSV template is downloaded\n *\n * @public\n */\n",
|
|
1859
1859
|
"excerptTokens": [
|
|
1860
1860
|
{
|
|
1861
1861
|
"kind": "Content",
|
|
@@ -1029,6 +1029,7 @@ export declare const filtersRenderers: any[];
|
|
|
1029
1029
|
* @fires submit-failure - Fired when submit fails (server or client validation)
|
|
1030
1030
|
* @fires submit-success - Fired when submit succeeds
|
|
1031
1031
|
* @fires submit-partial-success - Fired when bulk submit partially succeeds
|
|
1032
|
+
* @fires reset - Fired when form is reset
|
|
1032
1033
|
* @fires row-status-changed - Fired when row submit status changes
|
|
1033
1034
|
* @fires bulk-submit-complete - Fired when bulk submit completes
|
|
1034
1035
|
* @fires row-submit-failure - Fired when a single row submit fails
|
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.468.0-chore-add-reset-event.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@genesislcap/foundation-testing": "14.
|
|
63
|
-
"@genesislcap/genx": "14.
|
|
64
|
-
"@genesislcap/rollup-builder": "14.
|
|
65
|
-
"@genesislcap/ts-builder": "14.
|
|
66
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
67
|
-
"@genesislcap/vite-builder": "14.
|
|
68
|
-
"@genesislcap/webpack-builder": "14.
|
|
62
|
+
"@genesislcap/foundation-testing": "14.468.0-chore-add-reset-event.2",
|
|
63
|
+
"@genesislcap/genx": "14.468.0-chore-add-reset-event.2",
|
|
64
|
+
"@genesislcap/rollup-builder": "14.468.0-chore-add-reset-event.2",
|
|
65
|
+
"@genesislcap/ts-builder": "14.468.0-chore-add-reset-event.2",
|
|
66
|
+
"@genesislcap/uvu-playwright-builder": "14.468.0-chore-add-reset-event.2",
|
|
67
|
+
"@genesislcap/vite-builder": "14.468.0-chore-add-reset-event.2",
|
|
68
|
+
"@genesislcap/webpack-builder": "14.468.0-chore-add-reset-event.2",
|
|
69
69
|
"@types/json-schema": "^7.0.11",
|
|
70
70
|
"@types/papaparse": "^5.3.14"
|
|
71
71
|
},
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@genesislcap/foundation-comms": "14.
|
|
86
|
-
"@genesislcap/foundation-criteria": "14.
|
|
87
|
-
"@genesislcap/foundation-logger": "14.
|
|
88
|
-
"@genesislcap/foundation-notifications": "14.
|
|
89
|
-
"@genesislcap/foundation-ui": "14.
|
|
90
|
-
"@genesislcap/foundation-utils": "14.
|
|
85
|
+
"@genesislcap/foundation-comms": "14.468.0-chore-add-reset-event.2",
|
|
86
|
+
"@genesislcap/foundation-criteria": "14.468.0-chore-add-reset-event.2",
|
|
87
|
+
"@genesislcap/foundation-logger": "14.468.0-chore-add-reset-event.2",
|
|
88
|
+
"@genesislcap/foundation-notifications": "14.468.0-chore-add-reset-event.2",
|
|
89
|
+
"@genesislcap/foundation-ui": "14.468.0-chore-add-reset-event.2",
|
|
90
|
+
"@genesislcap/foundation-utils": "14.468.0-chore-add-reset-event.2",
|
|
91
91
|
"@json-schema-tools/dereferencer": "^1.6.1",
|
|
92
92
|
"@jsonforms/core": "^3.2.1",
|
|
93
93
|
"@microsoft/fast-components": "2.30.6",
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
"access": "public"
|
|
110
110
|
},
|
|
111
111
|
"customElements": "dist/custom-elements.json",
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "001ea1fb215af49f5a2605da196d173853293f6a"
|
|
113
113
|
}
|