ng-easycommerce 0.0.527 → 0.0.529

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,7 @@
1
+ # version 0.0.529
2
+ - ajustes en metodos de envío OCA
3
+ # version 0.0.528
4
+ - avances2 asociaciones concatenadas por atributos y categorias
1
5
  # version 0.0.527
2
6
  - avances1 asociaciones concatenadas por atributos y categorias
3
7
  # version 0.0.526
@@ -36,6 +36,7 @@
36
36
  "blog-left-sidebar": "blog",
37
37
  "blog-right-sidebar": "blog",
38
38
  "branch-delivery": "Retiro en sucursal",
39
+ "branch_delivery": "Retiro en sucursal",
39
40
  "buy-now": "Comprar ahora",
40
41
  "call-us": "Llamanos",
41
42
  "cancelled": "Cancelado",
@@ -134,6 +135,7 @@
134
135
  "helmets": "Cascos",
135
136
  "home": "inicio",
136
137
  "home-delivery": "Envío a domicilio",
138
+ "home_delivery": "Envío a domicilio",
137
139
  "hurry": "Apurate! Solo quedan {{stock}} en stock.",
138
140
  "image": "Imagen",
139
141
  "information": "Información",
@@ -8271,7 +8271,7 @@
8271
8271
  ShipmentEcComponent = __decorate$S([
8272
8272
  core.Component({
8273
8273
  selector: 'app-shipment-ec',
8274
- template: "<!-- <div class=\"checkout-title\">\n <h3>{{'shipment-methods'|translate}}</h3>\n</div> -->\n\n<div class=\"container-fluid\">\n <div class=\"col-12\">\n <div class=\"card text-center\">\n <div class=\"card-header text-dark\">\n <h4>{{ 'select-method' | translate }}</h4>\n <div class=\"btn-toolbar justify-content-center\" role=\"toolbar\" aria-label=\"Envios toolbar\"\n *ngIf=\"(shipmentService.methods | async) as methods; else noMethods\">\n <div class=\"\" role=\"group\" aria-label=\"Grupo botones envio\">\n <div class=\"d-flex align-content-start justify-content-center flex-wrap\">\n <button type=\"button\" class=\"btn btn-outline-secondary mx-1 mb-1\"\n *ngFor=\"let method of deleteUPS(methods); let x = index\"\n (click)=\"setMethod(method, post_code); setActive($event)\">\n {{ method.name | translate }}\n </button>\n </div>\n\n\n </div>\n </div>\n </div>\n <div class=\"card-body\">\n <div class=\"row justify-content-center mb-2\" *ngIf=\"moreInfoInMethod && methodSelect && methodSelect.description\">\n <div class=\"col-12 col-md-6 col-lg-4 d-flex flex-column mb-2\" [id]=\"methodSelect.code\">\n <ng-container *ngFor=\"let line of methodSelect.description.split('\\r\\n'); let i=index\">\n <span [id]=\"methodSelect.code+'-'+i\" [class]=\"'line-'+i\">{{line}}</span>\n </ng-container>\n </div>\n <!--<span> <b>{{ 'information' | translate }}:</b> {{methodSelect.description}} </span>-->\n </div>\n <div class=\"row justify-content-center\" *ngIf=\"this.costs\">\n <ng-container *ngIf=\"!loading_internal ; else loading\">\n <div class=\"col-auto text-dark\" *ngFor=\"let cost of costs\">\n <ng-container *ngIf=\"cost.contracts.length > 0\">\n <span><b>{{ methodSelect.name | translate}}</b></span>\n <hr />\n <div class=\"option\" *ngFor=\"let contract of cost.contracts; let i = index\">\n <div class=\"form-check current-contract\">\n <input class=\"form-check-input\" [checked]=\"(cost.name == 'home_delivery') ? 'shipment-contractname home_delivery' : contract.selected \" type=\"radio\" name=\"card\" [id]=\"cost.name + i\"\n value=\"dark\" (click)=\"verifyValidate(cost.name, contract)\">\n <label class=\"form-check-label\" [for]=\"cost.name + i\" aria-label=\"Dark grey\">\n <span\n [class]=\"(cost.name == 'home_delivery') ? 'shipment-contractname home_delivery' : 'shipment-contractname' \"\n *ngIf=\"validName(contract.name)\">{{ contract.name | translate }}</span>\n <span *ngIf=\"contract.computed\"><br class=\"shipment-contractname\">{{ contract.computed | translate }}<br\n class=\"shipment-contractname\"></span>\n <div *ngIf=\"contract.detail\" class=\"contract-detail\">\n <div *ngFor=\"let line of contract.detail.split(' - '); let i = index\" [class]=\"'contrat-item-'+i\">\n <span *ngIf=\"i == 0\"><b>{{ line }}</b></span>\n <span class=\"inside-detail\" *ngIf=\"i > 0\">{{ line }}</span>\n </div>\n </div>\n <span *ngIf=\"contract.price > 0\" [class]=\"'inside-detail ' + ( costos?.amount == 0 ? ' free ' : '') \">\n <br class=\"shipment-contractname\" *ngIf=\"!contract.computed\">\n {{ ('price'|translate) + ': ' + (contract.price | ecCurrencySymbol) }}</span>\n <!-- <span *ngIf=\"contract.price == 0\" [class]=\"'inside-detail ' + ( costos?.amount == 0 ? ' free ' : '') \">\n <br class=\"shipment-contractname\" *ngIf=\"!contract.computed\"> {{ ('free'|translate) }}</span> -->\n <br>\n </label>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-container>\n </div>\n </div>\n\n </div>\n </div>\n\n</div>\n\n<ng-template #noMethods>\n <div class=\"d-flex flex-row w-100 justify-content-center mt-2\">\n <h5 class=\"text-secondary\">{{'no-shipment-methods'|translate}}</h5>\n </div>\n</ng-template>\n\n<ng-template #loading>\n <app-loading-full-ec></app-loading-full-ec>\n</ng-template>\n",
8274
+ template: "<!-- <div class=\"checkout-title\">\n <h3>{{'shipment-methods'|translate}}</h3>\n</div> -->\n\n<div class=\"container-fluid\">\n <div class=\"col-12\">\n <div class=\"card text-center\">\n <div class=\"card-header text-dark\">\n <h4>{{ 'select-method' | translate }}</h4>\n <div class=\"btn-toolbar justify-content-center\" role=\"toolbar\" aria-label=\"Envios toolbar\"\n *ngIf=\"(shipmentService.methods | async) as methods; else noMethods\">\n <div class=\"\" role=\"group\" aria-label=\"Grupo botones envio\">\n <div class=\"d-flex align-content-start justify-content-center flex-wrap\">\n <button type=\"button\" class=\"btn btn-outline-secondary mx-1 mb-1\"\n *ngFor=\"let method of deleteUPS(methods); let x = index\"\n (click)=\"setMethod(method, post_code); setActive($event)\">\n {{ method.name | translate }}\n </button>\n </div>\n\n\n </div>\n </div>\n </div>\n <div class=\"card-body\">\n <div class=\"row justify-content-center mb-2\" *ngIf=\"moreInfoInMethod && methodSelect && methodSelect.description\">\n <div class=\"col-12 col-md-6 col-lg-4 d-flex flex-column mb-2\" [id]=\"methodSelect.code\">\n <ng-container *ngFor=\"let line of methodSelect.description.split('\\r\\n'); let i=index\">\n <span [id]=\"methodSelect.code+'-'+i\" [class]=\"'line-'+i\">{{line}}</span>\n </ng-container>\n </div>\n <!--<span> <b>{{ 'information' | translate }}:</b> {{methodSelect.description}} </span>-->\n </div>\n <div class=\"row justify-content-center\" *ngIf=\"this.costs\">\n <ng-container *ngIf=\"!loading_internal ; else loading\">\n <div class=\"col-auto text-dark\" *ngFor=\"let cost of costs; let y = index\">\n <ng-container *ngIf=\"cost.contracts.length > 0\">\n <ng-container *ngIf=\"costs.length > 1; else uniqueShipment\">\n <span><b>{{ cost.name | translate }}</b></span>\n <hr />\n </ng-container>\n <ng-template #uniqueShipment>\n <span><b>{{ methodSelect.name | translate }}</b></span>\n <hr />\n </ng-template>\n <div class=\"option\" *ngFor=\"let contract of cost.contracts; let i = index\">\n <div class=\"form-check current-contract\">\n <input class=\"form-check-input\" [checked]=\"(y === 0 && i === 0) ? true : contract.selected\" type=\"radio\" name=\"card\" [id]=\"cost.name + i\"\n value=\"dark\" (click)=\"verifyValidate(cost.name, contract)\">\n <label class=\"form-check-label\" [for]=\"cost.name + i\" aria-label=\"Dark grey\">\n <span\n [class]=\"(cost.name == 'home_delivery') ? 'shipment-contractname home_delivery' : 'shipment-contractname' \"\n *ngIf=\"validName(contract.name)\">{{ contract.name | translate }}</span>\n <span *ngIf=\"contract.computed\"><br class=\"shipment-contractname\">{{ contract.computed | translate }}<br\n class=\"shipment-contractname\"></span>\n <div *ngIf=\"contract.detail\" class=\"contract-detail\">\n <div *ngFor=\"let line of contract.detail.split(' - '); let i = index\" [class]=\"'contrat-item-'+i\">\n <span *ngIf=\"i == 0\"><b>{{ line }}</b></span>\n <span class=\"inside-detail\" *ngIf=\"i > 0\">{{ line }}</span>\n </div>\n </div>\n <span *ngIf=\"contract.price > 0\" [class]=\"'inside-detail ' + ( costos?.amount == 0 ? ' free ' : '') \">\n <br class=\"shipment-contractname\" *ngIf=\"!contract.computed\">\n {{ ('price'|translate) + ': ' + (contract.price | ecCurrencySymbol) }}</span>\n <!-- <span *ngIf=\"contract.price == 0\" [class]=\"'inside-detail ' + ( costos?.amount == 0 ? ' free ' : '') \">\n <br class=\"shipment-contractname\" *ngIf=\"!contract.computed\"> {{ ('free'|translate) }}</span> -->\n <br>\n </label>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-container>\n </div>\n </div>\n\n </div>\n </div>\n\n</div>\n\n<ng-template #noMethods>\n <div class=\"d-flex flex-row w-100 justify-content-center mt-2\">\n <h5 class=\"text-secondary\">{{'no-shipment-methods'|translate}}</h5>\n </div>\n</ng-template>\n\n<ng-template #loading>\n <app-loading-full-ec></app-loading-full-ec>\n</ng-template>\n",
8275
8275
  providers: [ShipmentService],
8276
8276
  styles: [".shipment-container{width:100%;max-height:500px!important}.points-container{margin-top:10px;max-height:300px;overflow:scroll}agm-map{height:300px}.ancho-100{width:200px}.ancho-50{width:100px}.group-shipping{margin:10px 0}.option-container>div{margin-bottom:15px}@media only screen and (min-width:600px){.option-container{display:flex;justify-content:space-between;margin-top:20px}}hr{margin-top:0!important}.option{display:flex;align-items:flex-start;margin-bottom:20px}.option label{margin:0 0 0 10px}.inside-detail{color:gray!important;font-weight:400}.inside-detail.free{text-decoration:line-through}.active{color:#fff!important}"]
8277
8277
  })
@@ -15314,7 +15314,7 @@
15314
15314
  };
15315
15315
  var BuildYourEcComponent = /** @class */ (function (_super) {
15316
15316
  __extends$14(BuildYourEcComponent, _super);
15317
- function BuildYourEcComponent(concatenated, optionsService, productsService, formBuilder, toastrService, consts) {
15317
+ function BuildYourEcComponent(concatenated, optionsService, productsService, formBuilder, toastrService, consts, cartService, router) {
15318
15318
  var _this = _super.call(this) || this;
15319
15319
  _this.concatenated = concatenated;
15320
15320
  _this.optionsService = optionsService;
@@ -15322,8 +15322,11 @@
15322
15322
  _this.formBuilder = formBuilder;
15323
15323
  _this.toastrService = toastrService;
15324
15324
  _this.consts = consts;
15325
+ _this.cartService = cartService;
15326
+ _this.router = router;
15325
15327
  _this.currentPosition = 0; //Guarda la posicion del paso activo
15326
15328
  _this.selectedValues = {}; //Guarda los valores que se van seleccionando.
15329
+ _this.taxonCode = 0;
15327
15330
  _this.itemCurrentSelected = ''; //Para guarda el item selecciondo
15328
15331
  _this.loadingStep = false; //Marca si se esta cargando el paso
15329
15332
  _this.finished = false; //Marca si finalizo la secuencia de pasos
@@ -15425,6 +15428,7 @@
15425
15428
  if (!_this.stepList[_this.currentPosition].skippeable) {
15426
15429
  if (_this.itemCurrentSelected && _this.itemCurrentSelected.length) {
15427
15430
  _this.next(_this.itemCurrentSelected);
15431
+ _this.taxonCode = 0;
15428
15432
  }
15429
15433
  else {
15430
15434
  _this.toastrService.show('Escoja una opción');
@@ -15432,6 +15436,7 @@
15432
15436
  }
15433
15437
  else {
15434
15438
  _this.itemCurrentSelected ? _this.next(_this.itemCurrentSelected) : _this.next();
15439
+ _this.taxonCode = 0;
15435
15440
  }
15436
15441
  };
15437
15442
  /**
@@ -15456,7 +15461,6 @@
15456
15461
  "code": _this.code,
15457
15462
  "values": _this.selectedValues
15458
15463
  }).then(function (e) { return _this.setNextStep(selectValue); }).catch(function (e) { e.status == 500 ? _this.noMoreCoincidences = true : null; });
15459
- console.log('vacio pa');
15460
15464
  }
15461
15465
  //this.loadingStep = false
15462
15466
  //console.log(this.loadingStep)
@@ -15490,6 +15494,7 @@
15490
15494
  */
15491
15495
  _this.prev = function (index) {
15492
15496
  if (index === void 0) { index = -1; }
15497
+ _this.taxonCode = 0;
15493
15498
  _this.noMoreCoincidences = false;
15494
15499
  _this.stepList[_this.currentPosition].current = false;
15495
15500
  _this.stepList[_this.currentPosition].touched = false;
@@ -15575,13 +15580,18 @@
15575
15580
  //this.load()
15576
15581
  this.ecOnInit();
15577
15582
  };
15583
+ BuildYourEcComponent.prototype.filtrar = function (code) {
15584
+ this.taxonCode = code;
15585
+ };
15578
15586
  BuildYourEcComponent.ctorParameters = function () { return [
15579
15587
  { type: ConcatenatedAssociationsService },
15580
15588
  { type: OptionsService },
15581
15589
  { type: ProductsService },
15582
15590
  { type: forms.FormBuilder },
15583
15591
  { type: ToastService },
15584
- { type: Constants }
15592
+ { type: Constants },
15593
+ { type: CartService },
15594
+ { type: router.Router }
15585
15595
  ]; };
15586
15596
  BuildYourEcComponent = __decorate$1J([
15587
15597
  core.Component({