@playmoweb/vue-payline-wrapper
Advanced tools
Comparing version 1.0.5 to 1.0.6
/*! | ||
* @playmoweb/vue-payline-wrapper v1.0.5 | ||
* @playmoweb/vue-payline-wrapper v1.0.6 | ||
* (c) Playmoweb SAS | ||
@@ -115,2 +115,10 @@ * Released under the MIT License. | ||
"default": false | ||
}, | ||
actionButtonText: { | ||
type: String, | ||
"default": undefined | ||
}, | ||
choosePMLabel: { | ||
type: String, | ||
"default": undefined | ||
} | ||
@@ -133,3 +141,3 @@ }, | ||
isLightbox: function isLightbox() { | ||
return this.widgetType === 'lightbox'; | ||
return this.widgetType === "lightbox"; | ||
} | ||
@@ -148,3 +156,3 @@ }, | ||
if (this.noClose && this.isLightbox) { | ||
document.addEventListener('keydown', this.noCloseHandler); | ||
document.addEventListener("keydown", this.noCloseHandler); | ||
} | ||
@@ -158,3 +166,3 @@ }, | ||
if (this.noClose && this.isLightbox) { | ||
document.removeEventListener('keydown', this.noCloseHandler); | ||
document.removeEventListener("keydown", this.noCloseHandler); | ||
} | ||
@@ -170,3 +178,3 @@ }, | ||
if (key === 'Escape' || key === 'Esc' || key === 27) { | ||
if (key === "Escape" || key === "Esc" || key === 27) { | ||
e.preventDefault(); | ||
@@ -203,2 +211,10 @@ e.cancelBubble = true; | ||
if (this.actionButtonText) { | ||
Payline.jQuery(".PaylineWidget .pl-pay-btn, .PaylineWidget .pl-btn").text(this.actionButtonText); | ||
} | ||
if (this.choosePMLabel) { | ||
Payline.jQuery("#pl-pmLayout-column-choosePMLabel").text(this.actionButtonText); | ||
} | ||
this.$emit("readyToPay", true); | ||
@@ -229,7 +245,7 @@ } | ||
case "PAYMENT_ONHOLD_PARTNER": | ||
this.$emit('success', param); | ||
this.$emit("success", param); | ||
return false; | ||
default: | ||
this.$emit('error', param); | ||
this.$emit("error", param); | ||
return false; | ||
@@ -397,3 +413,3 @@ } | ||
if (!inject) return; | ||
inject("data-v-72fa7738_0", { | ||
inject("data-v-131fc307_0", { | ||
source: ".noClose /deep/ #pl-container-lightbox-header-bar{display:none!important}", | ||
@@ -400,0 +416,0 @@ map: undefined, |
/*! | ||
* @playmoweb/vue-payline-wrapper v1.0.5 | ||
* @playmoweb/vue-payline-wrapper v1.0.6 | ||
* (c) Playmoweb SAS | ||
@@ -117,2 +117,10 @@ * Released under the MIT License. | ||
"default": false | ||
}, | ||
actionButtonText: { | ||
type: String, | ||
"default": undefined | ||
}, | ||
choosePMLabel: { | ||
type: String, | ||
"default": undefined | ||
} | ||
@@ -135,3 +143,3 @@ }, | ||
isLightbox: function isLightbox() { | ||
return this.widgetType === 'lightbox'; | ||
return this.widgetType === "lightbox"; | ||
} | ||
@@ -150,3 +158,3 @@ }, | ||
if (this.noClose && this.isLightbox) { | ||
document.addEventListener('keydown', this.noCloseHandler); | ||
document.addEventListener("keydown", this.noCloseHandler); | ||
} | ||
@@ -160,3 +168,3 @@ }, | ||
if (this.noClose && this.isLightbox) { | ||
document.removeEventListener('keydown', this.noCloseHandler); | ||
document.removeEventListener("keydown", this.noCloseHandler); | ||
} | ||
@@ -172,3 +180,3 @@ }, | ||
if (key === 'Escape' || key === 'Esc' || key === 27) { | ||
if (key === "Escape" || key === "Esc" || key === 27) { | ||
e.preventDefault(); | ||
@@ -205,2 +213,10 @@ e.cancelBubble = true; | ||
if (this.actionButtonText) { | ||
Payline.jQuery(".PaylineWidget .pl-pay-btn, .PaylineWidget .pl-btn").text(this.actionButtonText); | ||
} | ||
if (this.choosePMLabel) { | ||
Payline.jQuery("#pl-pmLayout-column-choosePMLabel").text(this.actionButtonText); | ||
} | ||
this.$emit("readyToPay", true); | ||
@@ -231,7 +247,7 @@ } | ||
case "PAYMENT_ONHOLD_PARTNER": | ||
this.$emit('success', param); | ||
this.$emit("success", param); | ||
return false; | ||
default: | ||
this.$emit('error', param); | ||
this.$emit("error", param); | ||
return false; | ||
@@ -399,3 +415,3 @@ } | ||
if (!inject) return; | ||
inject("data-v-72fa7738_0", { | ||
inject("data-v-131fc307_0", { | ||
source: ".noClose /deep/ #pl-container-lightbox-header-bar{display:none!important}", | ||
@@ -402,0 +418,0 @@ map: undefined, |
{ | ||
"name": "@playmoweb/vue-payline-wrapper", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "VueJS Payline Widget Wrapper.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
29693
787