ng-easycommerce 0.0.580 → 0.0.581
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 +2 -0
- package/bundles/ng-easycommerce.umd.js +12 -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/header-ec/header-ec.component.js +14 -3
- package/esm5/lib/ec-component/header-ec/header-ec.component.js +14 -3
- package/fesm2015/ng-easycommerce.js +12 -2
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +12 -2
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/header-ec/header-ec.component.d.ts +5 -1
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9523,7 +9523,7 @@
|
|
|
9523
9523
|
};
|
|
9524
9524
|
var HeaderEcComponent = /** @class */ (function (_super) {
|
|
9525
9525
|
__extends$t(HeaderEcComponent, _super);
|
|
9526
|
-
function HeaderEcComponent(router$1, consts, cartService, optionsService, paramsService, productsService, authService, translate, renderer) {
|
|
9526
|
+
function HeaderEcComponent(router$1, consts, cartService, optionsService, paramsService, productsService, authService, translate, renderer, channelConfigService) {
|
|
9527
9527
|
var _this = _super.call(this) || this;
|
|
9528
9528
|
_this.router = router$1;
|
|
9529
9529
|
_this.consts = consts;
|
|
@@ -9534,6 +9534,7 @@
|
|
|
9534
9534
|
_this.authService = authService;
|
|
9535
9535
|
_this.translate = translate;
|
|
9536
9536
|
_this.renderer = renderer;
|
|
9537
|
+
_this.channelConfigService = channelConfigService;
|
|
9537
9538
|
//og elden
|
|
9538
9539
|
_this.menuItems = [];
|
|
9539
9540
|
_this.menuItemsSections = [];
|
|
@@ -9543,6 +9544,8 @@
|
|
|
9543
9544
|
_this.envetUrlTransparent = ["/home", "/"];
|
|
9544
9545
|
_this.params = {};
|
|
9545
9546
|
_this.toggled = false;
|
|
9547
|
+
_this.locales = [];
|
|
9548
|
+
_this.selectedLocale = 'ESP';
|
|
9546
9549
|
_this.updateMenuItemSection = function (elements) {
|
|
9547
9550
|
_this.menuItemsSections = _this.optionsService.generateMenu(elements);
|
|
9548
9551
|
_this.menuItemsSections = _this.ecUpdateMenuItemSection(_this.menuItemsSections);
|
|
@@ -9662,6 +9665,12 @@
|
|
|
9662
9665
|
this.mediaMenu = mediaQuery.matches;
|
|
9663
9666
|
this.subscribeToBalance();
|
|
9664
9667
|
this.ecOnInit();
|
|
9668
|
+
this.channelConfigService.locales.subscribe(function (res) {
|
|
9669
|
+
_this.locales = res;
|
|
9670
|
+
if (_this.locales.length > 0) {
|
|
9671
|
+
_this.selectedLocale = _this.locales[0].name;
|
|
9672
|
+
}
|
|
9673
|
+
});
|
|
9665
9674
|
};
|
|
9666
9675
|
HeaderEcComponent.prototype.subscribeToBalance = function () {
|
|
9667
9676
|
var _this = this;
|
|
@@ -9678,7 +9687,8 @@
|
|
|
9678
9687
|
{ type: ProductsService },
|
|
9679
9688
|
{ type: AuthService },
|
|
9680
9689
|
{ type: core$1.TranslateService },
|
|
9681
|
-
{ type: core.Renderer2 }
|
|
9690
|
+
{ type: core.Renderer2 },
|
|
9691
|
+
{ type: ChannelConfigService }
|
|
9682
9692
|
]; };
|
|
9683
9693
|
__decorate$_([
|
|
9684
9694
|
core.ViewChild("menu")
|