ng-miam 8.8.6 → 8.8.8
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/bundles/ng-miam.umd.js +22 -8
- package/bundles/ng-miam.umd.js.map +1 -1
- package/bundles/ng-miam.umd.min.js +1 -1
- package/bundles/ng-miam.umd.min.js.map +1 -1
- package/esm2015/lib/_services/basket-transfer.service.js +3 -2
- package/esm2015/lib/_services/context.service.js +2 -1
- package/esm2015/lib/_services/interceptor.service.js +2 -2
- package/esm2015/lib/_services/store-locator.service.js +8 -2
- package/esm2015/lib/_types/builded/miam-interface.js +1 -1
- package/esm2015/lib/_web-components/no-supplier-onboarding/no-supplier-onboarding.component.js +4 -4
- package/esm2015/lib/_web-components/recipe-modal/recipe-modal.component.js +6 -1
- package/esm2015/lib/_web-components/recipe-pricing/recipe-pricing.component.js +4 -3
- package/fesm2015/ng-miam.js +22 -8
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_services/basket-transfer.service.d.ts.map +1 -1
- package/lib/_services/context.service.d.ts.map +1 -1
- package/lib/_services/store-locator.service.d.ts +1 -0
- package/lib/_services/store-locator.service.d.ts.map +1 -1
- package/lib/_types/builded/miam-interface.d.ts +4 -0
- package/lib/_types/builded/miam-interface.d.ts.map +1 -1
- package/lib/_web-components/recipe-modal/recipe-modal.component.d.ts.map +1 -1
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -4533,6 +4533,7 @@
|
|
|
4533
4533
|
this.storeLocatorOpened$ = new rxjs.BehaviorSubject(false);
|
|
4534
4534
|
this.newStoreSelected$ = new rxjs.Subject();
|
|
4535
4535
|
this.closeModalOnSelected = false;
|
|
4536
|
+
this.closeModalOnCancel = false;
|
|
4536
4537
|
this.showStoreLocatorWarning = new rxjs.BehaviorSubject(false);
|
|
4537
4538
|
this.showNoSupplierOnboarding = new rxjs.BehaviorSubject(false);
|
|
4538
4539
|
this.changePosAfterWarnConfirm = true;
|
|
@@ -4585,7 +4586,12 @@
|
|
|
4585
4586
|
};
|
|
4586
4587
|
StoreLocatorService.prototype.closeStoreLocator = function () {
|
|
4587
4588
|
if (this.storeLocatorOpened$.value) {
|
|
4588
|
-
|
|
4589
|
+
if (this.storeLocatorEventTrace) {
|
|
4590
|
+
this.analyticsService.sendEventWhenReady(this.analyticsService.EVENT_LOCATOR_CLOSE, '/locator', { time_passed: (Date.now() - this.storeLocatorOpenedTimestamp) / 1000 });
|
|
4591
|
+
}
|
|
4592
|
+
else {
|
|
4593
|
+
this.closeModalOnCancel = true;
|
|
4594
|
+
}
|
|
4589
4595
|
this.storeLocatorOpenedTimestamp = 0;
|
|
4590
4596
|
}
|
|
4591
4597
|
this.storeLocatorOpened$.next(false);
|
|
@@ -6665,6 +6671,7 @@
|
|
|
6665
6671
|
},
|
|
6666
6672
|
getByAddress: this.posService.getByAddress.bind(this.posService),
|
|
6667
6673
|
getByCoordinates: this.posService.getByCoordinates.bind(this.posService),
|
|
6674
|
+
openNoSupplierOnboarding: function () { return _this.storeLocatorService.showNoSupplierOnboarding.next(true); }
|
|
6668
6675
|
},
|
|
6669
6676
|
recipes: {
|
|
6670
6677
|
hidden: this.recipesService.hidden,
|
|
@@ -8234,7 +8241,8 @@
|
|
|
8234
8241
|
BasketTransferService.prototype.navigateTotranferUrl = function () {
|
|
8235
8242
|
var transferUrl = sessionStorage.getItem('_miam/transferUrl');
|
|
8236
8243
|
if (transferUrl) {
|
|
8237
|
-
window.open(
|
|
8244
|
+
// Apparently Safari blocks window.open(..., "_blank") if called in an async function and setTimeout makes it run on the main thread
|
|
8245
|
+
setTimeout(function () { return window.open(transferUrl, '_blank'); });
|
|
8238
8246
|
}
|
|
8239
8247
|
};
|
|
8240
8248
|
BasketTransferService.prototype.abortTransfer = function () {
|
|
@@ -8528,7 +8536,7 @@
|
|
|
8528
8536
|
MiamInterceptor.prototype.setMiamHeaders = function (request) {
|
|
8529
8537
|
var headersToAdd = {
|
|
8530
8538
|
'miam-origin': this.context.origin.value,
|
|
8531
|
-
'miam-front-version': '8.8.
|
|
8539
|
+
'miam-front-version': '8.8.7',
|
|
8532
8540
|
'miam-front-type': 'web',
|
|
8533
8541
|
'miam-api-version': '4.7.0'
|
|
8534
8542
|
};
|
|
@@ -10987,8 +10995,9 @@
|
|
|
10987
10995
|
};
|
|
10988
10996
|
RecipePricingComponent.prototype.initPricing = function () {
|
|
10989
10997
|
var _this = this;
|
|
10990
|
-
this.subscriptions.push(this.initRecipeForExtId().subscribe(function (
|
|
10991
|
-
|
|
10998
|
+
this.subscriptions.push(this.initRecipeForExtId().subscribe(function () {
|
|
10999
|
+
var _a;
|
|
11000
|
+
if (((_a = _this.recipeId) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
10992
11001
|
_this.subscriptions.push(_this.initPricingFromBasketChanges().subscribe(), _this.initPricingFromGuestsAndViewPort());
|
|
10993
11002
|
}
|
|
10994
11003
|
}));
|
|
@@ -25442,6 +25451,11 @@
|
|
|
25442
25451
|
else {
|
|
25443
25452
|
if (!_this.showStoreLocator) {
|
|
25444
25453
|
_this.storeLocatorService.closeModalOnSelected = false; // reset variable even if storeLocator was closed early
|
|
25454
|
+
// If the user closes the store locator without selecting a POS, close the modal
|
|
25455
|
+
if (_this.storeLocatorService.closeModalOnCancel) {
|
|
25456
|
+
_this.storeLocatorService.closeModalOnCancel = false;
|
|
25457
|
+
_this.hide();
|
|
25458
|
+
}
|
|
25445
25459
|
}
|
|
25446
25460
|
_this.cdr.detectChanges(); // hide does a detectChanges so we avoid a double change
|
|
25447
25461
|
}
|
|
@@ -25867,11 +25881,11 @@
|
|
|
25867
25881
|
}
|
|
25868
25882
|
var i18n_10;
|
|
25869
25883
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
25870
|
-
var
|
|
25871
|
-
i18n_10 =
|
|
25884
|
+
var MSG_EXTERNAL_4989457896049213714$$LIB__WEB_COMPONENTS_NO_SUPPLIER_ONBOARDING_NO_SUPPLIER_ONBOARDING_COMPONENT_TS__11 = goog.getMsg("\u201CAjouter au panier\u201D");
|
|
25885
|
+
i18n_10 = MSG_EXTERNAL_4989457896049213714$$LIB__WEB_COMPONENTS_NO_SUPPLIER_ONBOARDING_NO_SUPPLIER_ONBOARDING_COMPONENT_TS__11;
|
|
25872
25886
|
}
|
|
25873
25887
|
else {
|
|
25874
|
-
i18n_10 = $localize(templateObject_6 || (templateObject_6 = __makeTemplateObject([":\
|
|
25888
|
+
i18n_10 = $localize(templateObject_6 || (templateObject_6 = __makeTemplateObject([":\u241F44ab3c897b11ad9bb47769e66a067cbe3d2439bd\u241F4989457896049213714:\u201CAjouter au panier\u201D"], [":\u241F44ab3c897b11ad9bb47769e66a067cbe3d2439bd\u241F4989457896049213714:\u201CAjouter au panier\u201D"])));
|
|
25875
25889
|
}
|
|
25876
25890
|
var i18n_12;
|
|
25877
25891
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|