@iankibetsh/shframework 5.6.3 → 5.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 +14 -7
- package/dist/library.mjs +14 -7
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -4497,6 +4497,13 @@ const doEmitAction = (callBack,item)=>{
|
|
|
4497
4497
|
}
|
|
4498
4498
|
};
|
|
4499
4499
|
|
|
4500
|
+
const actionSuccessful = (res)=>{
|
|
4501
|
+
doEmitAction('actionSuccessful',res,props.record);
|
|
4502
|
+
};
|
|
4503
|
+
|
|
4504
|
+
const actionFailed = (res)=>{
|
|
4505
|
+
doEmitAction('actionFailed',res,props.record);
|
|
4506
|
+
};
|
|
4500
4507
|
const {user} = pinia.storeToRefs(useUserStore());
|
|
4501
4508
|
|
|
4502
4509
|
return (_ctx, _cache) => {
|
|
@@ -4509,9 +4516,9 @@ return (_ctx, _cache) => {
|
|
|
4509
4516
|
(['confirmAction','confirmaction','confirm-action','confirm'].includes(__props.action.type))
|
|
4510
4517
|
? (vue.openBlock(), vue.createBlock(script$j, {
|
|
4511
4518
|
key: 0,
|
|
4512
|
-
onActionSuccessful:
|
|
4513
|
-
onActionFailed:
|
|
4514
|
-
onActionCanceled: _cache[
|
|
4519
|
+
onActionSuccessful: actionSuccessful,
|
|
4520
|
+
onActionFailed: actionFailed,
|
|
4521
|
+
onActionCanceled: _cache[0] || (_cache[0] = $event => (doEmitAction('actionCanceled',__props.record))),
|
|
4515
4522
|
"loading-message": __props.action.label,
|
|
4516
4523
|
class: vue.normalizeClass(__props.action.class + __props.actionClass),
|
|
4517
4524
|
url: url.value
|
|
@@ -4530,9 +4537,9 @@ return (_ctx, _cache) => {
|
|
|
4530
4537
|
: (['silentAction','silentaction','silent-action','silent'].includes(__props.action.type))
|
|
4531
4538
|
? (vue.openBlock(), vue.createBlock(script$i, {
|
|
4532
4539
|
key: 1,
|
|
4533
|
-
onActionSuccessful:
|
|
4534
|
-
onActionFailed:
|
|
4535
|
-
onActionCanceled: _cache[
|
|
4540
|
+
onActionSuccessful: actionSuccessful,
|
|
4541
|
+
onActionFailed: actionFailed,
|
|
4542
|
+
onActionCanceled: _cache[1] || (_cache[1] = $event => (doEmitAction('actionCanceled',__props.record))),
|
|
4536
4543
|
"loading-message": __props.action.label,
|
|
4537
4544
|
class: vue.normalizeClass(__props.action.class +' '+ __props.actionClass),
|
|
4538
4545
|
url: url.value
|
|
@@ -4574,7 +4581,7 @@ return (_ctx, _cache) => {
|
|
|
4574
4581
|
},
|
|
4575
4582
|
__props.actionClass
|
|
4576
4583
|
]),
|
|
4577
|
-
onClick: _cache[
|
|
4584
|
+
onClick: _cache[2] || (_cache[2] = $event => (doEmitAction(__props.action.emits, __props.record)))
|
|
4578
4585
|
}, [
|
|
4579
4586
|
(__props.action.icon)
|
|
4580
4587
|
? (vue.openBlock(), vue.createElementBlock("span", {
|
package/dist/library.mjs
CHANGED
|
@@ -4486,6 +4486,13 @@ const doEmitAction = (callBack,item)=>{
|
|
|
4486
4486
|
}
|
|
4487
4487
|
};
|
|
4488
4488
|
|
|
4489
|
+
const actionSuccessful = (res)=>{
|
|
4490
|
+
doEmitAction('actionSuccessful',res,props.record);
|
|
4491
|
+
};
|
|
4492
|
+
|
|
4493
|
+
const actionFailed = (res)=>{
|
|
4494
|
+
doEmitAction('actionFailed',res,props.record);
|
|
4495
|
+
};
|
|
4489
4496
|
const {user} = storeToRefs(useUserStore());
|
|
4490
4497
|
|
|
4491
4498
|
return (_ctx, _cache) => {
|
|
@@ -4498,9 +4505,9 @@ return (_ctx, _cache) => {
|
|
|
4498
4505
|
(['confirmAction','confirmaction','confirm-action','confirm'].includes(__props.action.type))
|
|
4499
4506
|
? (openBlock(), createBlock(script$j, {
|
|
4500
4507
|
key: 0,
|
|
4501
|
-
onActionSuccessful:
|
|
4502
|
-
onActionFailed:
|
|
4503
|
-
onActionCanceled: _cache[
|
|
4508
|
+
onActionSuccessful: actionSuccessful,
|
|
4509
|
+
onActionFailed: actionFailed,
|
|
4510
|
+
onActionCanceled: _cache[0] || (_cache[0] = $event => (doEmitAction('actionCanceled',__props.record))),
|
|
4504
4511
|
"loading-message": __props.action.label,
|
|
4505
4512
|
class: normalizeClass(__props.action.class + __props.actionClass),
|
|
4506
4513
|
url: url.value
|
|
@@ -4519,9 +4526,9 @@ return (_ctx, _cache) => {
|
|
|
4519
4526
|
: (['silentAction','silentaction','silent-action','silent'].includes(__props.action.type))
|
|
4520
4527
|
? (openBlock(), createBlock(script$i, {
|
|
4521
4528
|
key: 1,
|
|
4522
|
-
onActionSuccessful:
|
|
4523
|
-
onActionFailed:
|
|
4524
|
-
onActionCanceled: _cache[
|
|
4529
|
+
onActionSuccessful: actionSuccessful,
|
|
4530
|
+
onActionFailed: actionFailed,
|
|
4531
|
+
onActionCanceled: _cache[1] || (_cache[1] = $event => (doEmitAction('actionCanceled',__props.record))),
|
|
4525
4532
|
"loading-message": __props.action.label,
|
|
4526
4533
|
class: normalizeClass(__props.action.class +' '+ __props.actionClass),
|
|
4527
4534
|
url: url.value
|
|
@@ -4563,7 +4570,7 @@ return (_ctx, _cache) => {
|
|
|
4563
4570
|
},
|
|
4564
4571
|
__props.actionClass
|
|
4565
4572
|
]),
|
|
4566
|
-
onClick: _cache[
|
|
4573
|
+
onClick: _cache[2] || (_cache[2] = $event => (doEmitAction(__props.action.emits, __props.record)))
|
|
4567
4574
|
}, [
|
|
4568
4575
|
(__props.action.icon)
|
|
4569
4576
|
? (openBlock(), createElementBlock("span", {
|