@iankibetsh/shframework 4.4.9 → 4.5.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/library.js +2 -1
- package/dist/library.mjs +2 -1
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -3238,7 +3238,7 @@ var script$m = {
|
|
|
3238
3238
|
'phones', 'numbers', 'selects', 'dates', 'gqlMutation',
|
|
3239
3239
|
'required'
|
|
3240
3240
|
],
|
|
3241
|
-
emits: ['success', 'fieldChanged', 'formSubmitted', 'formError'],
|
|
3241
|
+
emits: ['success','preSubmit', 'fieldChanged', 'formSubmitted', 'formError'],
|
|
3242
3242
|
setup(__props, { emit: __emit }) {
|
|
3243
3243
|
|
|
3244
3244
|
const props = __props;
|
|
@@ -3357,6 +3357,7 @@ const submitForm = e => {
|
|
|
3357
3357
|
if (args == '()') {
|
|
3358
3358
|
args = '';
|
|
3359
3359
|
}
|
|
3360
|
+
emit('preSubmit', data);
|
|
3360
3361
|
const mutation = `{\n${props.gqlMutation} ${args} {\n${selectFields.join(`\n`)}\n}\n}`;
|
|
3361
3362
|
shApis.graphQlMutate(mutation).then(res => handleSuccessRequest(res)).catch(reason => handlefailedRequest(reason));
|
|
3362
3363
|
} else {
|
package/dist/library.mjs
CHANGED
|
@@ -3226,7 +3226,7 @@ var script$m = {
|
|
|
3226
3226
|
'phones', 'numbers', 'selects', 'dates', 'gqlMutation',
|
|
3227
3227
|
'required'
|
|
3228
3228
|
],
|
|
3229
|
-
emits: ['success', 'fieldChanged', 'formSubmitted', 'formError'],
|
|
3229
|
+
emits: ['success','preSubmit', 'fieldChanged', 'formSubmitted', 'formError'],
|
|
3230
3230
|
setup(__props, { emit: __emit }) {
|
|
3231
3231
|
|
|
3232
3232
|
const props = __props;
|
|
@@ -3345,6 +3345,7 @@ const submitForm = e => {
|
|
|
3345
3345
|
if (args == '()') {
|
|
3346
3346
|
args = '';
|
|
3347
3347
|
}
|
|
3348
|
+
emit('preSubmit', data);
|
|
3348
3349
|
const mutation = `{\n${props.gqlMutation} ${args} {\n${selectFields.join(`\n`)}\n}\n}`;
|
|
3349
3350
|
shApis.graphQlMutate(mutation).then(res => handleSuccessRequest(res)).catch(reason => handlefailedRequest(reason));
|
|
3350
3351
|
} else {
|