@iankibetsh/shframework 4.6.2 → 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 CHANGED
@@ -3900,12 +3900,17 @@ const formError = (res)=>{
3900
3900
  emit('formError',res);
3901
3901
  };
3902
3902
 
3903
+ const emitClick = ()=>{
3904
+ emit('click');
3905
+ };
3906
+
3903
3907
  return (_ctx, _cache) => {
3904
3908
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
3905
3909
  vue.createElementVNode("a", {
3906
3910
  class: vue.normalizeClass(vue.unref(btnClass)),
3907
3911
  href: '#' + vue.unref(realModalId),
3908
- "data-bs-toggle": "modal"
3912
+ "data-bs-toggle": "modal",
3913
+ onClick: emitClick
3909
3914
  }, [
3910
3915
  vue.renderSlot(_ctx.$slots, "default")
3911
3916
  ], 10 /* CLASS, PROPS */, _hoisted_1$i),
@@ -4416,7 +4421,7 @@ var script$g = {
4416
4421
  default: 'Action failed'
4417
4422
  }
4418
4423
  },
4419
- emits: ['actionSuccessful', 'actionFailed','success','actionCanceled'],
4424
+ emits: ['actionSuccessful', 'actionFailed','success','failed','canceled','actionCanceled'],
4420
4425
  setup(__props, { emit: __emit }) {
4421
4426
 
4422
4427
  const props = __props;
@@ -4436,6 +4441,7 @@ const actionFailed = reason =>{
4436
4441
  processing.value = false;
4437
4442
  reason.actionType = 'silentAction';
4438
4443
  emit('actionFailed', reason);
4444
+ emit('failed', reason);
4439
4445
  shRepo.showToast(reason.value.error.message ?? props.failMessage,'error');
4440
4446
  };
4441
4447
  function runAction () {
@@ -4450,6 +4456,7 @@ function runAction () {
4450
4456
  }
4451
4457
  } else {
4452
4458
  emit('actionCanceled');
4459
+ emit('canceled');
4453
4460
  processing.value = false;
4454
4461
  }
4455
4462
  }).catch(ex => {
package/dist/library.mjs CHANGED
@@ -3888,12 +3888,17 @@ const formError = (res)=>{
3888
3888
  emit('formError',res);
3889
3889
  };
3890
3890
 
3891
+ const emitClick = ()=>{
3892
+ emit('click');
3893
+ };
3894
+
3891
3895
  return (_ctx, _cache) => {
3892
3896
  return (openBlock(), createElementBlock(Fragment, null, [
3893
3897
  createElementVNode("a", {
3894
3898
  class: normalizeClass(unref(btnClass)),
3895
3899
  href: '#' + unref(realModalId),
3896
- "data-bs-toggle": "modal"
3900
+ "data-bs-toggle": "modal",
3901
+ onClick: emitClick
3897
3902
  }, [
3898
3903
  renderSlot(_ctx.$slots, "default")
3899
3904
  ], 10 /* CLASS, PROPS */, _hoisted_1$i),
@@ -4404,7 +4409,7 @@ var script$g = {
4404
4409
  default: 'Action failed'
4405
4410
  }
4406
4411
  },
4407
- emits: ['actionSuccessful', 'actionFailed','success','actionCanceled'],
4412
+ emits: ['actionSuccessful', 'actionFailed','success','failed','canceled','actionCanceled'],
4408
4413
  setup(__props, { emit: __emit }) {
4409
4414
 
4410
4415
  const props = __props;
@@ -4424,6 +4429,7 @@ const actionFailed = reason =>{
4424
4429
  processing.value = false;
4425
4430
  reason.actionType = 'silentAction';
4426
4431
  emit('actionFailed', reason);
4432
+ emit('failed', reason);
4427
4433
  shRepo.showToast(reason.value.error.message ?? props.failMessage,'error');
4428
4434
  };
4429
4435
  function runAction () {
@@ -4438,6 +4444,7 @@ function runAction () {
4438
4444
  }
4439
4445
  } else {
4440
4446
  emit('actionCanceled');
4447
+ emit('canceled');
4441
4448
  processing.value = false;
4442
4449
  }
4443
4450
  }).catch(ex => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "4.6.2",
3
+ "version": "4.6.4",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",