ng-easycommerce 0.0.577 → 0.0.579
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/README.md +3 -1
- package/bundles/ng-easycommerce.umd.js +3 -2
- package/bundles/ng-easycommerce.umd.js.map +1 -1
- package/bundles/ng-easycommerce.umd.min.js +1 -1
- package/bundles/ng-easycommerce.umd.min.js.map +1 -1
- package/esm2015/lib/ec-component/cart-ec/cart-ec.component.js +3 -2
- package/esm2015/lib/ec-component/password-reset-ec/password-reset-ec.component.js +2 -2
- package/esm5/lib/ec-component/cart-ec/cart-ec.component.js +3 -2
- package/esm5/lib/ec-component/password-reset-ec/password-reset-ec.component.js +2 -2
- package/fesm2015/ng-easycommerce.js +3 -2
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +3 -2
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/cart-ec/cart-ec.component.d.ts +2 -2
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7355,12 +7355,13 @@
|
|
|
7355
7355
|
CartEcComponent.prototype.redirectCheckout = function () {
|
|
7356
7356
|
if (this.cartService.hasSufficientCreditsForCartTotal()) {
|
|
7357
7357
|
this.router.navigateByUrl("/checkout");
|
|
7358
|
+
return true;
|
|
7358
7359
|
}
|
|
7359
7360
|
else {
|
|
7360
7361
|
console.warn("No se puede redirigir al checkout debido a una validación fallida.");
|
|
7362
|
+
return false;
|
|
7361
7363
|
}
|
|
7362
7364
|
};
|
|
7363
|
-
;
|
|
7364
7365
|
CartEcComponent.prototype.openModal = function (template) {
|
|
7365
7366
|
this.modalRef = this.modalService.show(template, { class: 'modal-xl', keyboard: false });
|
|
7366
7367
|
};
|
|
@@ -13499,7 +13500,7 @@
|
|
|
13499
13500
|
PasswordResetEcComponent = __decorate$1q([
|
|
13500
13501
|
core.Component({
|
|
13501
13502
|
selector: 'app-password-reset-ec',
|
|
13502
|
-
template: "<div class=\"container\">\r\n <div class=\"row\">\r\n
|
|
13503
|
+
template: "<div class=\"container\">\r\n <div class=\"row justify-content-center mt-5\">\r\n <div class=\"col-12 col-md-6 col-lg-4\">\r\n <div *ngIf=\"!ready; else readyView\">\r\n <form [formGroup]=\"formGroup\" (submit)=\"sendNewPassword($event)\">\r\n <div class=\"mb-4 text-center\">\r\n <h3>{{ 'set-new-password' | translate }}</h3>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'set-password' | translate }}</label>\r\n <div class=\"input-group\">\r\n <input type=\"password\" formControlName=\"first\" class=\"form-control\" id=\"contrase\u00F1a1\" />\r\n <button class=\"btn btn-outline-secondary btn-password\" type=\"button\"\r\n (click)=\"showPassword()\">\r\n <i id=\"show1\" class=\"fas fa-eye i-show-password\"></i>\r\n <i id=\"hide1\" class=\"fas fa-eye-slash d-none i-show-password\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'repeat-password' | translate }}</label>\r\n <div class=\"input-group\">\r\n <input type=\"password\" formControlName=\"second\" class=\"form-control\" id=\"contrase\u00F1a2\" />\r\n <button class=\"btn btn-outline-secondary btn-password\" type=\"button\"\r\n (click)=\"showPassword2()\">\r\n <i id=\"show2\" class=\"fas fa-eye i-show-password\"></i>\r\n <i id=\"hide2\" class=\"fas fa-eye-slash d-none i-show-password\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"mt-4 text-center\">\r\n <button type=\"submit\" class=\"comprar w-100\">{{ 'update' | translate }}</button>\r\n </div>\r\n <div *ngIf=\"loading\" class=\"mt-3\">\r\n <app-loading-inline-ec></app-loading-inline-ec>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template #readyView>\r\n <div class=\"row justify-content-center mt-5 mb-5\">\r\n <div class=\"text-center\">\r\n <div class=\"mb-4\">\r\n <h3>{{ 'updated-password' | translate }}</h3>\r\n </div>\r\n <div class=\"mb-4\">\r\n <h5>{{ 'updated-password-detail' | translate }}</h5>\r\n </div>\r\n <button class=\"comprar\" (click)=\"sendToLogin()\">{{ 'login' | translate }}</button>\r\n </div>\r\n </div>\r\n</ng-template>",
|
|
13503
13504
|
styles: [""]
|
|
13504
13505
|
})
|
|
13505
13506
|
], PasswordResetEcComponent);
|