@iankibetsh/shframework 4.6.3 → 4.6.4
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 +3 -1
- package/dist/library.mjs +3 -1
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -4421,7 +4421,7 @@ var script$g = {
|
|
|
4421
4421
|
default: 'Action failed'
|
|
4422
4422
|
}
|
|
4423
4423
|
},
|
|
4424
|
-
emits: ['actionSuccessful', 'actionFailed','success','actionCanceled'],
|
|
4424
|
+
emits: ['actionSuccessful', 'actionFailed','success','failed','canceled','actionCanceled'],
|
|
4425
4425
|
setup(__props, { emit: __emit }) {
|
|
4426
4426
|
|
|
4427
4427
|
const props = __props;
|
|
@@ -4441,6 +4441,7 @@ const actionFailed = reason =>{
|
|
|
4441
4441
|
processing.value = false;
|
|
4442
4442
|
reason.actionType = 'silentAction';
|
|
4443
4443
|
emit('actionFailed', reason);
|
|
4444
|
+
emit('failed', reason);
|
|
4444
4445
|
shRepo.showToast(reason.value.error.message ?? props.failMessage,'error');
|
|
4445
4446
|
};
|
|
4446
4447
|
function runAction () {
|
|
@@ -4455,6 +4456,7 @@ function runAction () {
|
|
|
4455
4456
|
}
|
|
4456
4457
|
} else {
|
|
4457
4458
|
emit('actionCanceled');
|
|
4459
|
+
emit('canceled');
|
|
4458
4460
|
processing.value = false;
|
|
4459
4461
|
}
|
|
4460
4462
|
}).catch(ex => {
|
package/dist/library.mjs
CHANGED
|
@@ -4409,7 +4409,7 @@ var script$g = {
|
|
|
4409
4409
|
default: 'Action failed'
|
|
4410
4410
|
}
|
|
4411
4411
|
},
|
|
4412
|
-
emits: ['actionSuccessful', 'actionFailed','success','actionCanceled'],
|
|
4412
|
+
emits: ['actionSuccessful', 'actionFailed','success','failed','canceled','actionCanceled'],
|
|
4413
4413
|
setup(__props, { emit: __emit }) {
|
|
4414
4414
|
|
|
4415
4415
|
const props = __props;
|
|
@@ -4429,6 +4429,7 @@ const actionFailed = reason =>{
|
|
|
4429
4429
|
processing.value = false;
|
|
4430
4430
|
reason.actionType = 'silentAction';
|
|
4431
4431
|
emit('actionFailed', reason);
|
|
4432
|
+
emit('failed', reason);
|
|
4432
4433
|
shRepo.showToast(reason.value.error.message ?? props.failMessage,'error');
|
|
4433
4434
|
};
|
|
4434
4435
|
function runAction () {
|
|
@@ -4443,6 +4444,7 @@ function runAction () {
|
|
|
4443
4444
|
}
|
|
4444
4445
|
} else {
|
|
4445
4446
|
emit('actionCanceled');
|
|
4447
|
+
emit('canceled');
|
|
4446
4448
|
processing.value = false;
|
|
4447
4449
|
}
|
|
4448
4450
|
}).catch(ex => {
|