@iankibetsh/shframework 4.8.7 → 4.8.9

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
@@ -4430,6 +4430,15 @@ vue.onMounted(()=>{
4430
4430
  });
4431
4431
  });
4432
4432
 
4433
+
4434
+ const actionClicked = callBack=>{
4435
+ if(typeof callBack === 'function'){
4436
+ callBack(props.record);
4437
+ } else {
4438
+ doEmitAction(callBack,props.record);
4439
+ }
4440
+ };
4441
+
4433
4442
  const {user} = pinia.storeToRefs(useUserStore());
4434
4443
 
4435
4444
  return (_ctx, _cache) => {
@@ -4501,7 +4510,7 @@ return (_ctx, _cache) => {
4501
4510
  key: 3,
4502
4511
  title: __props.action.title,
4503
4512
  class: vue.normalizeClass(__props.action.class ? __props.action.class:'btn btn-default' + __props.actionClass),
4504
- onClick: _cache[6] || (_cache[6] = $event => (doEmitAction(__props.action.emits,__props.record)))
4513
+ onClick: _cache[6] || (_cache[6] = $event => (actionClicked(__props.action.emits)))
4505
4514
  }, [
4506
4515
  (__props.action.icon)
4507
4516
  ? (vue.openBlock(), vue.createElementBlock("span", {
package/dist/library.mjs CHANGED
@@ -4418,6 +4418,15 @@ onMounted(()=>{
4418
4418
  });
4419
4419
  });
4420
4420
 
4421
+
4422
+ const actionClicked = callBack=>{
4423
+ if(typeof callBack === 'function'){
4424
+ callBack(props.record);
4425
+ } else {
4426
+ doEmitAction(callBack,props.record);
4427
+ }
4428
+ };
4429
+
4421
4430
  const {user} = storeToRefs(useUserStore());
4422
4431
 
4423
4432
  return (_ctx, _cache) => {
@@ -4489,7 +4498,7 @@ return (_ctx, _cache) => {
4489
4498
  key: 3,
4490
4499
  title: __props.action.title,
4491
4500
  class: normalizeClass(__props.action.class ? __props.action.class:'btn btn-default' + __props.actionClass),
4492
- onClick: _cache[6] || (_cache[6] = $event => (doEmitAction(__props.action.emits,__props.record)))
4501
+ onClick: _cache[6] || (_cache[6] = $event => (actionClicked(__props.action.emits)))
4493
4502
  }, [
4494
4503
  (__props.action.icon)
4495
4504
  ? (openBlock(), createElementBlock("span", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "4.8.7",
3
+ "version": "4.8.9",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",