ng-miam 8.8.7 → 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 +18 -5
- 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/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/fesm2015/ng-miam.js +18 -5
- 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 () {
|
|
@@ -25443,6 +25451,11 @@
|
|
|
25443
25451
|
else {
|
|
25444
25452
|
if (!_this.showStoreLocator) {
|
|
25445
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
|
+
}
|
|
25446
25459
|
}
|
|
25447
25460
|
_this.cdr.detectChanges(); // hide does a detectChanges so we avoid a double change
|
|
25448
25461
|
}
|
|
@@ -25868,11 +25881,11 @@
|
|
|
25868
25881
|
}
|
|
25869
25882
|
var i18n_10;
|
|
25870
25883
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
25871
|
-
var
|
|
25872
|
-
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;
|
|
25873
25886
|
}
|
|
25874
25887
|
else {
|
|
25875
|
-
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"])));
|
|
25876
25889
|
}
|
|
25877
25890
|
var i18n_12;
|
|
25878
25891
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|