ng-easycommerce 0.0.526 → 0.0.528
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 +4 -1
- package/bundles/ng-easycommerce.umd.js +18 -6
- 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/build-your-ec/build-your-ec.component.js +21 -7
- package/esm5/lib/ec-component/build-your-ec/build-your-ec.component.js +21 -7
- package/fesm2015/ng-easycommerce.js +18 -6
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +18 -6
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/build-your-ec/build-your-ec.component.d.ts +8 -2
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
# version 0.0.528
|
|
2
|
+
- avances2 asociaciones concatenadas por atributos y categorias
|
|
3
|
+
# version 0.0.527
|
|
4
|
+
- avances1 asociaciones concatenadas por atributos y categorias
|
|
1
5
|
# version 0.0.526
|
|
2
6
|
- se añaden etiquetas meta en product-details para probar utm
|
|
3
|
-
|
|
4
7
|
# version 0.0.525
|
|
5
8
|
- se hace un cambio para obtener el section de forma correcta cuando en la url se usa utm en los bloques
|
|
6
9
|
# version 0.0.524
|
|
@@ -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,11 +15322,14 @@
|
|
|
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
|
-
_this.finished = false; //Marca si finalizo la secuencia de pasos
|
|
15332
|
+
_this.finished = false; //Marca si finalizo la secuencia de pasos
|
|
15330
15333
|
_this.noMoreCoincidences = false; //Marca si no hay mas coincidencias de productos
|
|
15331
15334
|
_this.products = []; //Recibe el/los producto/s resultantes
|
|
15332
15335
|
/**
|
|
@@ -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;
|
|
@@ -15559,8 +15564,10 @@
|
|
|
15559
15564
|
if (_this.stepList[0]) {
|
|
15560
15565
|
_this.itemValuesFactory(_this.stepList[0]);
|
|
15561
15566
|
_this.code = _this.stepList[0].code;
|
|
15562
|
-
if (
|
|
15563
|
-
|
|
15567
|
+
if (_this.stepList[0].values) {
|
|
15568
|
+
if (!_this.stepList[0].skippeable && (_this.stepList[0].values.length == 1)) {
|
|
15569
|
+
_this.setItemCurrentSelected(_this.stepList[0].values[0].code);
|
|
15570
|
+
}
|
|
15564
15571
|
}
|
|
15565
15572
|
}
|
|
15566
15573
|
});
|
|
@@ -15573,13 +15580,18 @@
|
|
|
15573
15580
|
//this.load()
|
|
15574
15581
|
this.ecOnInit();
|
|
15575
15582
|
};
|
|
15583
|
+
BuildYourEcComponent.prototype.filtrar = function (code) {
|
|
15584
|
+
this.taxonCode = code;
|
|
15585
|
+
};
|
|
15576
15586
|
BuildYourEcComponent.ctorParameters = function () { return [
|
|
15577
15587
|
{ type: ConcatenatedAssociationsService },
|
|
15578
15588
|
{ type: OptionsService },
|
|
15579
15589
|
{ type: ProductsService },
|
|
15580
15590
|
{ type: forms.FormBuilder },
|
|
15581
15591
|
{ type: ToastService },
|
|
15582
|
-
{ type: Constants }
|
|
15592
|
+
{ type: Constants },
|
|
15593
|
+
{ type: CartService },
|
|
15594
|
+
{ type: router.Router }
|
|
15583
15595
|
]; };
|
|
15584
15596
|
BuildYourEcComponent = __decorate$1J([
|
|
15585
15597
|
core.Component({
|