ng-easycommerce 0.0.418 → 0.0.421

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 CHANGED
@@ -1,3 +1,12 @@
1
+ # version: 0.0.421
2
+ -Se agrega opcion de cerrar modal de bancard.
3
+
4
+ # version: 0.0.420
5
+ - Fix en el cambio de configuración de canales para remover defaultLocale sin afectar login.
6
+
7
+ # version: 0.0.419
8
+ - Fix en el cambio de configuración de canales para remover defaultLocale.
9
+
1
10
  # version: 0.0.418
2
11
  - Actualización del componente Seller Dashboard.
3
12
 
@@ -3413,7 +3413,7 @@
3413
3413
  this.localesSubject = new rxjs.BehaviorSubject([]);
3414
3414
  this.locales = this.localesSubject.asObservable();
3415
3415
  this.getChannelConfig = function () {
3416
- _this.connection.get(_this.channelConfigApi()).toPromise().then(function (res) { _this.channelConfigSubject.next(res), res && _this.changeChannel(res); }, function (err) { return _this.channelConfigSubject.next({}); }).catch(function (err) { return _this.channelConfigSubject.next(null); });
3416
+ _this.connection.get(_this.channelConfigApi()).toPromise().then(function (res) { _this.channelConfigSubject.next(res), res && _this.setChannelInfo(res); }, function (err) { return _this.channelConfigSubject.next({}); }).catch(function (err) { return _this.channelConfigSubject.next(null); });
3417
3417
  };
3418
3418
  this.getChannels = function () {
3419
3419
  _this.connection.get(_this.channelsApi()).toPromise()
@@ -3428,11 +3428,14 @@
3428
3428
  this.changeChannel = function (channelObj) {
3429
3429
  _this.consts.modifyChannelConfig({
3430
3430
  channel: channelObj.code,
3431
- locale: channelObj.defaultLocale.code,
3432
3431
  currency: channelObj.baseCurrency
3433
3432
  });
3434
3433
  _this.injector.get(AddressingService).setTypeSelectAddress(channelObj.headquarterSelectionOnly || 'LOAD_ADDRESS_AND_SELECTION');
3435
3434
  };
3435
+ this.setChannelInfo = function (channelObj) {
3436
+ _this.consts.setChannel(channelObj.code);
3437
+ _this.injector.get(AddressingService).setTypeSelectAddress(channelObj.headquarterSelectionOnly || 'LOAD_ADDRESS_AND_SELECTION');
3438
+ };
3436
3439
  this.getChannelConfig();
3437
3440
  this.getChannels();
3438
3441
  this.getLocales();
@@ -12399,7 +12402,7 @@
12399
12402
  BancardEcComponent = __decorate$1w([
12400
12403
  core.Component({
12401
12404
  selector: 'app-bancard-ec',
12402
- template: "<div class=\"h-100 text-center\">\n <h4>Continuar con el pago con Bancard</h4>\n <p *ngIf=\"method\" class=\"px-5\">{{ method?.description }}</p>\n <p *ngIf=\"method\" class=\"px-5\">{{ method?.instructions }}</p>\n <ng-container *ngIf=\"!loading ; else loadingUrl\">\n <button *ngIf=\"url\" class=\"btn btn-outline-secondary comprar\" (click)=\"openModal(template)\">Pagar</button>\n <p *ngIf=\"!url\" class=\"px-5\">Actualmente no se encuentra disponible el m\u00E9todo de pago</p>\n </ng-container>\n</div>\n\n<ng-template #template>\n <div class=\"modal-content\">\n </div>\n <div class=\"modal-body\">\n <iframe src=\"assets/bancardFrameBase.html\" frameborder=\"0\" class=\"iframeStyle\"></iframe>\n </div>\n</ng-template>\n\n<ng-template #loadingUrl>\n <div class=\"d-flex flex-column jusitfy-content-center align-items-center mt-2\">\n <app-loading-full-ec></app-loading-full-ec>\n </div>\n</ng-template>",
12405
+ template: "<div class=\"h-100 text-center\">\n <h4>Continuar con el pago con Bancard</h4>\n <p *ngIf=\"method\" class=\"px-5\">{{ method?.description }}</p>\n <p *ngIf=\"method\" class=\"px-5\">{{ method?.instructions }}</p>\n <ng-container *ngIf=\"!loading ; else loadingUrl\">\n <button *ngIf=\"url\" class=\"btn btn-outline-secondary comprar\" (click)=\"openModal(template)\">Pagar</button>\n <p *ngIf=\"!url\" class=\"px-5\">Actualmente no se encuentra disponible el m\u00E9todo de pago</p>\n </ng-container>\n</div>\n\n<ng-template #template>\n <div class=\"modal-content\">\n <div class=\"modal-header border-none justify-content-end px-1\">\n <button type=\"button\" class=\"btn bg-none\" (click)=\"clickClose()\">\n X \n </button>\n </div>\n </div>\n <div class=\"modal-body\">\n <iframe src=\"assets/bancardFrameBase.html\" frameborder=\"0\" class=\"iframeStyle\"></iframe>\n </div>\n</ng-template>\n\n<ng-template #loadingUrl>\n <div class=\"d-flex flex-column jusitfy-content-center align-items-center mt-2\">\n <app-loading-full-ec></app-loading-full-ec>\n </div>\n</ng-template>",
12403
12406
  providers: [modal.BsModalService],
12404
12407
  styles: [".half-width{width:49%!important}.ml-1{margin-left:1%}#card-form{height:450px}.iframeStyle{height:400px;width:100%;max-height:800px}"]
12405
12408
  })
@@ -12476,7 +12479,6 @@
12476
12479
  _this.ready.emit(true);
12477
12480
  }
12478
12481
  if (state == 'cancel') {
12479
- _this.processError('Se cancelo el pago con bancard');
12480
12482
  return;
12481
12483
  }
12482
12484
  if (state == 'failure') {