@almadar/std 3.5.0 → 3.6.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/behaviors/exports/molecules/std-cart.orb +2 -9
- package/behaviors/exports/validation-report.json +1 -0
- package/dist/behaviors/exports/molecules/std-cart.orb +2 -9
- package/dist/behaviors/exports/validation-report.json +1 -0
- package/dist/behaviors/functions/index.js +1 -9
- package/dist/behaviors/functions/index.js.map +1 -1
- package/dist/behaviors/index.js +1 -9
- package/dist/behaviors/index.js.map +1 -1
- package/dist/exports/molecules/std-cart.orb +2 -9
- package/dist/exports/validation-report.json +1 -0
- package/dist/index.js +1 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -559,14 +559,7 @@
|
|
|
559
559
|
},
|
|
560
560
|
{
|
|
561
561
|
"key": "CONFIRM_REMOVE",
|
|
562
|
-
"name": "Confirm"
|
|
563
|
-
"payload": [
|
|
564
|
-
{
|
|
565
|
-
"name": "id",
|
|
566
|
-
"type": "string",
|
|
567
|
-
"required": true
|
|
568
|
-
}
|
|
569
|
-
]
|
|
562
|
+
"name": "Confirm"
|
|
570
563
|
},
|
|
571
564
|
{
|
|
572
565
|
"key": "CANCEL",
|
|
@@ -673,7 +666,7 @@
|
|
|
673
666
|
"persist",
|
|
674
667
|
"delete",
|
|
675
668
|
"CartItem",
|
|
676
|
-
"@
|
|
669
|
+
"@entity.pendingId"
|
|
677
670
|
],
|
|
678
671
|
[
|
|
679
672
|
"render-ui",
|
|
@@ -559,14 +559,7 @@
|
|
|
559
559
|
},
|
|
560
560
|
{
|
|
561
561
|
"key": "CONFIRM_REMOVE",
|
|
562
|
-
"name": "Confirm"
|
|
563
|
-
"payload": [
|
|
564
|
-
{
|
|
565
|
-
"name": "id",
|
|
566
|
-
"type": "string",
|
|
567
|
-
"required": true
|
|
568
|
-
}
|
|
569
|
-
]
|
|
562
|
+
"name": "Confirm"
|
|
570
563
|
},
|
|
571
564
|
{
|
|
572
565
|
"key": "CANCEL",
|
|
@@ -673,7 +666,7 @@
|
|
|
673
666
|
"persist",
|
|
674
667
|
"delete",
|
|
675
668
|
"CartItem",
|
|
676
|
-
"@
|
|
669
|
+
"@entity.pendingId"
|
|
677
670
|
],
|
|
678
671
|
[
|
|
679
672
|
"render-ui",
|
|
@@ -8727,16 +8727,8 @@ function stdCart(params) {
|
|
|
8727
8727
|
headerIcon: "trash-2",
|
|
8728
8728
|
requestEvent: "REQUEST_REMOVE",
|
|
8729
8729
|
confirmEvent: "CONFIRM_REMOVE",
|
|
8730
|
-
confirmEffects: [["persist", "delete", entityName, "@
|
|
8730
|
+
confirmEffects: [["persist", "delete", entityName, "@entity.pendingId"]]
|
|
8731
8731
|
}));
|
|
8732
|
-
const removeSm = removeTrait.stateMachine;
|
|
8733
|
-
if (removeSm && "events" in removeSm) {
|
|
8734
|
-
const events = removeSm.events;
|
|
8735
|
-
const confirmEvt = events.find((e) => e.key === "CONFIRM_REMOVE");
|
|
8736
|
-
if (confirmEvt && !confirmEvt.payload) {
|
|
8737
|
-
confirmEvt.payload = [{ name: "id", type: "string", required: true }];
|
|
8738
|
-
}
|
|
8739
|
-
}
|
|
8740
8732
|
const entity = makeEntity({ name: entityName, fields, persistence: c.persistence, collection: c.collection });
|
|
8741
8733
|
const page = {
|
|
8742
8734
|
name: c.pageName,
|