ng-miam 6.4.13 → 7.0.0
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 +8539 -10855
- package/bundles/ng-miam.umd.js.map +1 -1
- package/bundles/ng-miam.umd.min.js +2 -2
- package/bundles/ng-miam.umd.min.js.map +1 -1
- package/esm2015/lib/_components/abstracts/event-tracer.component.js +3 -2
- package/esm2015/lib/_components/accordion/accordion.component.js +75 -0
- package/esm2015/lib/_components/components.module.js +27 -21
- package/esm2015/lib/_components/counter-input/counter-input.component.js +86 -76
- package/esm2015/lib/_components/icon/icon.component.js +1 -1
- package/esm2015/lib/_components/index.js +5 -5
- package/esm2015/lib/_components/like-button/like-button.component.js +1 -1
- package/esm2015/lib/_components/list-input/list-input.component.js +5 -5
- package/esm2015/lib/_components/loader/loader.component.js +1 -1
- package/esm2015/lib/_components/meals-planner-link/meals-planner-link.component.js +3 -3
- package/esm2015/lib/_components/modal/modal.component.js +155 -137
- package/esm2015/lib/_components/product-card/product-card.component.js +333 -0
- package/esm2015/lib/_components/products-picker/products-picker.component.js +155 -0
- package/esm2015/lib/_components/progress-tracker/progress-tracker.component.js +1 -1
- package/esm2015/lib/_components/recipe-filters/recipe-filters.component.js +166 -217
- package/esm2015/lib/_components/recipe-pricing/recipe-pricing.component.js +55 -35
- package/esm2015/lib/_components/slider-tabs/slider-tabs.component.js +84 -0
- package/esm2015/lib/_components/sponsor-blocks/sponsor-image-and-text-block/sponsor-image-and-text-block.component.js +1 -1
- package/esm2015/lib/_components/sponsor-blocks/sponsor-text-and-image-block/sponsor-text-and-image-block.component.js +1 -1
- package/esm2015/lib/_components/tabs/tabs.component.js +48 -88
- package/esm2015/lib/_components/toaster/toaster.component.js +48 -84
- package/esm2015/lib/_components/tooltipable-content/tooltipable-content.component.js +1 -1
- package/esm2015/lib/_models/basket-entry.js +33 -49
- package/esm2015/lib/_models/basket-preview-line.js +5 -5
- package/esm2015/lib/_models/basket.js +15 -12
- package/esm2015/lib/_models/item.js +2 -2
- package/esm2015/lib/_models/recipe.js +2 -15
- package/esm2015/lib/_models/user.js +1 -1
- package/esm2015/lib/_services/analytics.service.js +24 -5
- package/esm2015/lib/_services/baskets-synchronizing/baskets-comparator.service.js +1 -10
- package/esm2015/lib/_services/baskets-synchronizing/baskets-synchronizer.service.js +15 -15
- package/esm2015/lib/_services/baskets.service.js +478 -60
- package/esm2015/lib/_services/context.service.js +22 -35
- package/esm2015/lib/_services/index.js +3 -5
- package/esm2015/lib/_services/interceptor.service.js +2 -2
- package/esm2015/lib/_services/items.service.js +27 -4
- package/esm2015/lib/_services/recipe-details.service.js +198 -0
- package/esm2015/lib/_services/recipe-likes.service.js +1 -1
- package/esm2015/lib/_services/recipes.service.js +24 -53
- package/esm2015/lib/_services/scrolling.service.js +17 -0
- package/esm2015/lib/_services/toaster.service.js +4 -5
- package/esm2015/lib/_services/user.service.js +2 -2
- package/esm2015/lib/_types/basket-action-type.enum.js +11 -0
- package/esm2015/lib/_types/basket-action.js +2 -0
- package/esm2015/lib/_types/basket-stats.js +2 -0
- package/esm2015/lib/_types/builded/miam-interface.js +1 -1
- package/esm2015/lib/_types/event-trace.js +5 -0
- package/esm2015/lib/_types/items-comparator.js +1 -10
- package/esm2015/lib/_types/recipe-filters.js +1 -1
- package/esm2015/lib/_types/toaster.js +1 -1
- package/esm2015/lib/_utils/directives/index.js +2 -1
- package/esm2015/lib/_utils/directives/reach-top.directive.js +33 -0
- package/esm2015/lib/_utils/pipes/readable-float-number/readable-float-number.pipe.js +8 -2
- package/esm2015/lib/_utils/utils.module.js +12 -8
- package/esm2015/lib/_web-components/basket-preview/basket-preview-block/basket-preview-block.component.js +140 -118
- package/esm2015/lib/_web-components/basket-preview/basket-preview-disabled/basket-preview-disabled.component.js +2 -2
- package/esm2015/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.js +125 -444
- package/esm2015/lib/_web-components/basket-preview/replace-item/replace-item.component.js +211 -108
- package/esm2015/lib/_web-components/index.js +1 -4
- package/esm2015/lib/_web-components/list-scan/basket-preview/basket-preview.component.js +11 -14
- package/esm2015/lib/_web-components/list-scan/files-inputs/files-inputs.component.js +13 -13
- package/esm2015/lib/_web-components/list-scan/ingredients-list/ingredients-list.component.js +6 -6
- package/esm2015/lib/_web-components/list-scan/list-scan.component.js +10 -10
- package/esm2015/lib/_web-components/list-scan/overlay-button/overlay-button.component.js +23 -11
- package/esm2015/lib/_web-components/meals-planner/meals-planner-basket-confirmation/meals-planner-basket-confirmation.component.js +1 -1
- package/esm2015/lib/_web-components/meals-planner/meals-planner-catalog/meals-planner-catalog.component.js +1 -1
- package/esm2015/lib/_web-components/meals-planner/meals-planner-form/meals-planner-form.component.js +7 -7
- package/esm2015/lib/_web-components/meals-planner/meals-planner-result/meals-planner-result.component.js +5 -5
- package/esm2015/lib/_web-components/meals-planner/meals-planner.component.js +16 -20
- package/esm2015/lib/_web-components/planner-side-menu/planner-side-menu.component.js +4 -53
- package/esm2015/lib/_web-components/recipe-cards/add-recipe-card/add-recipe-card.component.js +1 -1
- package/esm2015/lib/_web-components/recipe-cards/index.js +1 -3
- package/esm2015/lib/_web-components/recipe-cards/recipe-card/recipe-card.component.js +326 -404
- package/esm2015/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.js +50 -146
- package/esm2015/lib/_web-components/recipe-cards/recipe-cards.module.js +3 -15
- package/esm2015/lib/_web-components/recipe-catalog/catalog-article-card/catalog-article-card.component.js +1 -1
- package/esm2015/lib/_web-components/recipe-catalog/catalog-category/catalog-category.component.js +35 -29
- package/esm2015/lib/_web-components/recipe-catalog/catalog-header/catalog-header.component.js +1 -1
- package/esm2015/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.js +27 -31
- package/esm2015/lib/_web-components/recipe-catalog/recipe-catalog.component.js +98 -100
- package/esm2015/lib/_web-components/recipe-creation/recipe-form/recipe-form.component.js +2 -2
- package/esm2015/lib/_web-components/recipe-creation/recipe-stepper/recipe-stepper.component.js +7 -7
- package/esm2015/lib/_web-components/recipe-creation/tags-creator/tags-creator.component.js +4 -4
- package/esm2015/lib/_web-components/recipe-creation/tags-selector/tags-selector.component.js +8 -8
- package/esm2015/lib/_web-components/recipe-details/recipe-addon/recipe-addon.component.js +7 -3
- package/esm2015/lib/_web-components/recipe-details/recipe-details-infos/recipe-details-infos.component.js +57 -358
- package/esm2015/lib/_web-components/recipe-details/recipe-details-ingredients/recipe-details-ingredients.component.js +59 -122
- package/esm2015/lib/_web-components/recipe-details/recipe-details-steps/recipe-details-steps.component.js +51 -72
- package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +313 -363
- package/esm2015/lib/_web-components/recipe-details/recipe-details.module.js +8 -4
- package/esm2015/lib/_web-components/recipe-details/sponsor-storytelling/sponsor-storytelling.component.js +1 -1
- package/esm2015/lib/_web-components/recipe-helper/recipe-helper.component.js +89 -113
- package/esm2015/lib/_web-components/recipe-modal/recipe-modal.component.js +78 -69
- package/esm2015/lib/_web-components/recipe-tags/recipe-tags.component.js +5 -5
- package/esm2015/lib/_web-components/toaster-stack/toaster-stack.component.js +8 -4
- package/esm2015/lib/_web-components/web-components.module.js +3 -19
- package/esm2015/lib/ng-miam.module.js +5 -7
- package/fesm2015/ng-miam.js +5165 -6973
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_components/abstracts/event-tracer.component.d.ts +2 -1
- package/lib/_components/accordion/accordion.component.d.ts +23 -0
- package/lib/_components/components.module.d.ts +38 -36
- package/lib/_components/counter-input/counter-input.component.d.ts +12 -14
- package/lib/_components/index.d.ts +4 -4
- package/lib/_components/modal/modal.component.d.ts +18 -18
- package/lib/_components/product-card/product-card.component.d.ts +40 -0
- package/lib/_components/products-picker/products-picker.component.d.ts +17 -0
- package/lib/_components/recipe-pricing/recipe-pricing.component.d.ts +12 -8
- package/lib/_components/slider-tabs/slider-tabs.component.d.ts +16 -0
- package/lib/_components/tabs/tabs.component.d.ts +11 -11
- package/lib/_components/toaster/toaster.component.d.ts +4 -2
- package/lib/_models/basket-entry.d.ts +16 -20
- package/lib/_models/basket-preview-line.d.ts +1 -0
- package/lib/_models/basket.d.ts +12 -5
- package/lib/_models/item.d.ts +1 -1
- package/lib/_models/recipe.d.ts +0 -5
- package/lib/_models/user.d.ts +0 -1
- package/lib/_services/analytics.service.d.ts +8 -22
- package/lib/_services/baskets-synchronizing/baskets-comparator.service.d.ts +0 -5
- package/lib/_services/baskets-synchronizing/baskets-synchronizer.service.d.ts +3 -6
- package/lib/_services/baskets.service.d.ts +137 -18
- package/lib/_services/context.service.d.ts +2 -4
- package/lib/_services/index.d.ts +2 -4
- package/lib/_services/items.service.d.ts +9 -2
- package/lib/_services/recipe-details.service.d.ts +84 -0
- package/lib/_services/recipe-likes.service.d.ts +2 -1
- package/lib/_services/recipes.service.d.ts +10 -14
- package/lib/_services/scrolling.service.d.ts +8 -0
- package/lib/_services/toaster.service.d.ts +1 -1
- package/lib/_types/basket-action-type.enum.d.ts +9 -0
- package/lib/_types/basket-action.d.ts +14 -0
- package/lib/_types/basket-stats.d.ts +5 -0
- package/lib/_types/builded/miam-interface.d.ts +16 -25
- package/lib/_types/event-trace.d.ts +22 -0
- package/lib/_types/items-comparator.d.ts +0 -5
- package/lib/_types/recipe-filters.d.ts +0 -2
- package/lib/_types/toaster.d.ts +1 -1
- package/lib/_utils/directives/index.d.ts +1 -0
- package/lib/_utils/directives/reach-top.directive.d.ts +13 -0
- package/lib/_utils/pipes/readable-float-number/readable-float-number.pipe.d.ts +1 -1
- package/lib/_utils/utils.module.d.ts +2 -2
- package/lib/_web-components/basket-preview/basket-preview-block/basket-preview-block.component.d.ts +9 -8
- package/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.d.ts +11 -9
- package/lib/_web-components/basket-preview/replace-item/replace-item.component.d.ts +27 -20
- package/lib/_web-components/index.d.ts +0 -3
- package/lib/_web-components/list-scan/basket-preview/basket-preview.component.d.ts +1 -2
- package/lib/_web-components/list-scan/files-inputs/files-inputs.component.d.ts +6 -5
- package/lib/_web-components/list-scan/ingredients-list/ingredients-list.component.d.ts +3 -3
- package/lib/_web-components/list-scan/list-scan.component.d.ts +3 -3
- package/lib/_web-components/list-scan/overlay-button/overlay-button.component.d.ts +8 -6
- package/lib/_web-components/meals-planner/meals-planner.component.d.ts +2 -3
- package/lib/_web-components/recipe-cards/index.d.ts +0 -2
- package/lib/_web-components/recipe-cards/recipe-card/recipe-card.component.d.ts +58 -17
- package/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.d.ts +5 -12
- package/lib/_web-components/recipe-cards/recipe-cards.module.d.ts +7 -9
- package/lib/_web-components/recipe-catalog/catalog-category/catalog-category.component.d.ts +8 -6
- package/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.d.ts +7 -4
- package/lib/_web-components/recipe-catalog/recipe-catalog.component.d.ts +2 -3
- package/lib/_web-components/recipe-details/recipe-addon/recipe-addon.component.d.ts +5 -2
- package/lib/_web-components/recipe-details/recipe-details-infos/recipe-details-infos.component.d.ts +6 -18
- package/lib/_web-components/recipe-details/recipe-details-ingredients/recipe-details-ingredients.component.d.ts +6 -13
- package/lib/_web-components/recipe-details/recipe-details-steps/recipe-details-steps.component.d.ts +2 -10
- package/lib/_web-components/recipe-details/recipe-details.component.d.ts +29 -36
- package/lib/_web-components/recipe-details/recipe-details.module.d.ts +2 -1
- package/lib/_web-components/recipe-helper/recipe-helper.component.d.ts +2 -6
- package/lib/_web-components/recipe-modal/recipe-modal.component.d.ts +11 -9
- package/lib/_web-components/toaster-stack/toaster-stack.component.d.ts +5 -2
- package/lib/_web-components/web-components.module.d.ts +23 -29
- package/miam-style.css +1 -1
- package/package.json +1 -1
- package/esm2015/lib/_components/abstracts/abstract-recipe-card.component.js +0 -130
- package/esm2015/lib/_components/skeleton/skeleton.component.js +0 -70
- package/esm2015/lib/_components/tabs/tab-body.component.js +0 -30
- package/esm2015/lib/_components/tabs/tab-item.component.js +0 -36
- package/esm2015/lib/_components/tabs/tab-label.component.js +0 -30
- package/esm2015/lib/_models/groceries-entry.js +0 -42
- package/esm2015/lib/_models/groceries-list.js +0 -36
- package/esm2015/lib/_services/counter.service.js +0 -20
- package/esm2015/lib/_services/groceries-entries.service.js +0 -21
- package/esm2015/lib/_services/groceries-lists.service.js +0 -240
- package/esm2015/lib/_services/recipe-events.service.js +0 -63
- package/esm2015/lib/_types/skeleton.enum.js +0 -7
- package/esm2015/lib/_web-components/drawer/drawer.component.js +0 -273
- package/esm2015/lib/_web-components/pos-card/pos-card.component.js +0 -207
- package/esm2015/lib/_web-components/pos-selection/pos-selection.component.js +0 -283
- package/esm2015/lib/_web-components/recipe-cards/catalog-recipe-card/catalog-recipe-card.component.js +0 -632
- package/esm2015/lib/_web-components/recipe-cards/suggestion-card/suggestion-card.component.js +0 -144
- package/lib/_components/abstracts/abstract-recipe-card.component.d.ts +0 -49
- package/lib/_components/skeleton/skeleton.component.d.ts +0 -11
- package/lib/_components/tabs/tab-body.component.d.ts +0 -8
- package/lib/_components/tabs/tab-item.component.d.ts +0 -11
- package/lib/_components/tabs/tab-label.component.d.ts +0 -8
- package/lib/_models/groceries-entry.d.ts +0 -20
- package/lib/_models/groceries-list.d.ts +0 -30
- package/lib/_services/counter.service.d.ts +0 -10
- package/lib/_services/groceries-entries.service.d.ts +0 -10
- package/lib/_services/groceries-lists.service.d.ts +0 -68
- package/lib/_services/recipe-events.service.d.ts +0 -23
- package/lib/_types/skeleton.enum.d.ts +0 -5
- package/lib/_web-components/drawer/drawer.component.d.ts +0 -37
- package/lib/_web-components/pos-card/pos-card.component.d.ts +0 -24
- package/lib/_web-components/pos-selection/pos-selection.component.d.ts +0 -38
- package/lib/_web-components/recipe-cards/catalog-recipe-card/catalog-recipe-card.component.d.ts +0 -49
- package/lib/_web-components/recipe-cards/suggestion-card/suggestion-card.component.d.ts +0 -42
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
import { Component, Input, ChangeDetectionStrategy, ChangeDetectorRef, Output, EventEmitter, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import { PointOfSale } from '../../_models/point-of-sale';
|
|
3
|
-
import { BasketsService, GroceriesListsService } from '../../_services';
|
|
4
|
-
import { switchMap, skipWhile } from 'rxjs/operators';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../../_services";
|
|
7
|
-
import * as i2 from "@angular/common";
|
|
8
|
-
function PosCardComponent_div_0_span_9_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
-
i0.ɵɵelementStart(0, "span", 15);
|
|
10
|
-
i0.ɵɵtext(1);
|
|
11
|
-
i0.ɵɵelementEnd();
|
|
12
|
-
} if (rf & 2) {
|
|
13
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
14
|
-
i0.ɵɵadvance(1);
|
|
15
|
-
i0.ɵɵtextInterpolate1("", ctx_r1.pos.attributes["distance"].toFixed(1), " Km");
|
|
16
|
-
} }
|
|
17
|
-
function PosCardComponent_div_0_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
-
i0.ɵɵelementStart(0, "div", 16);
|
|
19
|
-
i0.ɵɵi18n(1, 17);
|
|
20
|
-
i0.ɵɵelementEnd();
|
|
21
|
-
} }
|
|
22
|
-
function PosCardComponent_div_0_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
-
i0.ɵɵelementStart(0, "div", 16);
|
|
24
|
-
i0.ɵɵi18n(1, 18);
|
|
25
|
-
i0.ɵɵelementEnd();
|
|
26
|
-
} }
|
|
27
|
-
function PosCardComponent_div_0_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
28
|
-
i0.ɵɵelementStart(0, "div", 19);
|
|
29
|
-
i0.ɵɵelementStart(1, "div", 20);
|
|
30
|
-
i0.ɵɵelementStart(2, "div", 21);
|
|
31
|
-
i0.ɵɵi18n(3, 22);
|
|
32
|
-
i0.ɵɵelementEnd();
|
|
33
|
-
i0.ɵɵelementStart(4, "div", 23);
|
|
34
|
-
i0.ɵɵelement(5, "div", 24);
|
|
35
|
-
i0.ɵɵelement(6, "div", 25);
|
|
36
|
-
i0.ɵɵelementEnd();
|
|
37
|
-
i0.ɵɵelementEnd();
|
|
38
|
-
i0.ɵɵelementStart(7, "div", 26);
|
|
39
|
-
i0.ɵɵelementStart(8, "strong");
|
|
40
|
-
i0.ɵɵtext(9);
|
|
41
|
-
i0.ɵɵelementEnd();
|
|
42
|
-
i0.ɵɵtext(10);
|
|
43
|
-
i0.ɵɵelementEnd();
|
|
44
|
-
i0.ɵɵelementEnd();
|
|
45
|
-
} if (rf & 2) {
|
|
46
|
-
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
47
|
-
i0.ɵɵadvance(6);
|
|
48
|
-
i0.ɵɵstyleProp("width", ctx_r4.gaugeSize)("background-color", ctx_r4.gaugeColor);
|
|
49
|
-
i0.ɵɵadvance(3);
|
|
50
|
-
i0.ɵɵtextInterpolate(ctx_r4.completion.found);
|
|
51
|
-
i0.ɵɵadvance(1);
|
|
52
|
-
i0.ɵɵtextInterpolate1("/", ctx_r4.completion.total, " ");
|
|
53
|
-
} }
|
|
54
|
-
function PosCardComponent_div_0_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
55
|
-
i0.ɵɵelementStart(0, "div", 19);
|
|
56
|
-
i0.ɵɵi18n(1, 27);
|
|
57
|
-
i0.ɵɵelementEnd();
|
|
58
|
-
} }
|
|
59
|
-
function PosCardComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
|
61
|
-
i0.ɵɵelementStart(0, "div", 1);
|
|
62
|
-
i0.ɵɵlistener("click", function PosCardComponent_div_0_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.select.emit(ctx_r6.pos); });
|
|
63
|
-
i0.ɵɵelementStart(1, "div", 2);
|
|
64
|
-
i0.ɵɵelementStart(2, "div", 3);
|
|
65
|
-
i0.ɵɵelement(3, "img", 4);
|
|
66
|
-
i0.ɵɵelementEnd();
|
|
67
|
-
i0.ɵɵelementStart(4, "div", 5);
|
|
68
|
-
i0.ɵɵelementStart(5, "div", 6);
|
|
69
|
-
i0.ɵɵelementStart(6, "div", 7);
|
|
70
|
-
i0.ɵɵelementStart(7, "strong");
|
|
71
|
-
i0.ɵɵtext(8);
|
|
72
|
-
i0.ɵɵelementEnd();
|
|
73
|
-
i0.ɵɵelementEnd();
|
|
74
|
-
i0.ɵɵtemplate(9, PosCardComponent_div_0_span_9_Template, 2, 1, "span", 8);
|
|
75
|
-
i0.ɵɵelementEnd();
|
|
76
|
-
i0.ɵɵelementStart(10, "div", 9);
|
|
77
|
-
i0.ɵɵtext(11);
|
|
78
|
-
i0.ɵɵelementEnd();
|
|
79
|
-
i0.ɵɵelementStart(12, "div", 10);
|
|
80
|
-
i0.ɵɵtemplate(13, PosCardComponent_div_0_div_13_Template, 2, 0, "div", 11);
|
|
81
|
-
i0.ɵɵtemplate(14, PosCardComponent_div_0_div_14_Template, 2, 0, "div", 11);
|
|
82
|
-
i0.ɵɵelementEnd();
|
|
83
|
-
i0.ɵɵelementEnd();
|
|
84
|
-
i0.ɵɵelementEnd();
|
|
85
|
-
i0.ɵɵelementStart(15, "div", 12);
|
|
86
|
-
i0.ɵɵelementStart(16, "div", 13);
|
|
87
|
-
i0.ɵɵtext(17);
|
|
88
|
-
i0.ɵɵelementEnd();
|
|
89
|
-
i0.ɵɵtemplate(18, PosCardComponent_div_0_div_18_Template, 11, 6, "div", 14);
|
|
90
|
-
i0.ɵɵtemplate(19, PosCardComponent_div_0_div_19_Template, 2, 0, "div", 14);
|
|
91
|
-
i0.ɵɵelementEnd();
|
|
92
|
-
i0.ɵɵelementEnd();
|
|
93
|
-
} if (rf & 2) {
|
|
94
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
95
|
-
i0.ɵɵadvance(3);
|
|
96
|
-
i0.ɵɵproperty("src", ctx_r0.pos.relationships.supplier.data.logo, i0.ɵɵsanitizeUrl);
|
|
97
|
-
i0.ɵɵadvance(5);
|
|
98
|
-
i0.ɵɵtextInterpolate(ctx_r0.pos.attributes.name);
|
|
99
|
-
i0.ɵɵadvance(1);
|
|
100
|
-
i0.ɵɵproperty("ngIf", ctx_r0.pos.attributes["distance"]);
|
|
101
|
-
i0.ɵɵadvance(2);
|
|
102
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.pos.references, " r\u00E9f\u00E9rences ");
|
|
103
|
-
i0.ɵɵadvance(2);
|
|
104
|
-
i0.ɵɵproperty("ngIf", ctx_r0.pos.driveEnabled);
|
|
105
|
-
i0.ɵɵadvance(1);
|
|
106
|
-
i0.ɵɵproperty("ngIf", ctx_r0.pos.deliveryEnabled);
|
|
107
|
-
i0.ɵɵadvance(3);
|
|
108
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.hoverText, " ");
|
|
109
|
-
i0.ɵɵadvance(1);
|
|
110
|
-
i0.ɵɵproperty("ngIf", (ctx_r0.completion == null ? null : ctx_r0.completion.total) > 0);
|
|
111
|
-
i0.ɵɵadvance(1);
|
|
112
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.completion);
|
|
113
|
-
} }
|
|
114
|
-
export class PosCardComponent {
|
|
115
|
-
constructor(cdr, listsService, basketsService) {
|
|
116
|
-
this.cdr = cdr;
|
|
117
|
-
this.listsService = listsService;
|
|
118
|
-
this.basketsService = basketsService;
|
|
119
|
-
this.selected = false;
|
|
120
|
-
this.select = new EventEmitter();
|
|
121
|
-
this.subscriptions = [];
|
|
122
|
-
}
|
|
123
|
-
ngOnInit() {
|
|
124
|
-
let basketObs;
|
|
125
|
-
if (this.selected) {
|
|
126
|
-
basketObs = this.basketsService.basket$.pipe(skipWhile(b => !b));
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
basketObs = this.listsService.list$.pipe(skipWhile(l => !l), switchMap(list => this.basketsService.fetchForListAndPos(list.id, this.pos.id)));
|
|
130
|
-
}
|
|
131
|
-
this.subscriptions.push(basketObs.subscribe(basket => {
|
|
132
|
-
this.calculateGauge(basket);
|
|
133
|
-
}));
|
|
134
|
-
}
|
|
135
|
-
ngOnDestroy() {
|
|
136
|
-
this.subscriptions.forEach((sub) => sub.unsubscribe());
|
|
137
|
-
}
|
|
138
|
-
calculateGauge(basket) {
|
|
139
|
-
if (!basket.completion) {
|
|
140
|
-
return null;
|
|
141
|
-
}
|
|
142
|
-
this.completion = basket.completion;
|
|
143
|
-
const ratio = this.completion.found / (this.completion.total || 1);
|
|
144
|
-
// const baseSize = this.mobile ? 210 : 125;
|
|
145
|
-
const baseSize = 125;
|
|
146
|
-
this.gaugeSize = `${baseSize * ratio}px`;
|
|
147
|
-
if (ratio >= 0.85) {
|
|
148
|
-
this.gaugeColor = '#40b6aa';
|
|
149
|
-
}
|
|
150
|
-
else if (ratio >= 0.6) {
|
|
151
|
-
this.gaugeColor = '#f6a825';
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
this.gaugeColor = '#ef7612';
|
|
155
|
-
}
|
|
156
|
-
this.cdr.detectChanges();
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
PosCardComponent.ɵfac = function PosCardComponent_Factory(t) { return new (t || PosCardComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.GroceriesListsService), i0.ɵɵdirectiveInject(i1.BasketsService)); };
|
|
160
|
-
PosCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: PosCardComponent, selectors: [["ng-miam-pos-card"]], inputs: { pos: "pos", selected: "selected", hoverText: "hoverText" }, outputs: { select: "select" }, decls: 1, vars: 1, consts: function () { var i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
161
|
-
const MSG_EXTERNAL_4736210244914788712$$LIB__WEB_COMPONENTS_POS_CARD_POS_CARD_COMPONENT_TS___1 = goog.getMsg("Drive");
|
|
162
|
-
i18n_0 = MSG_EXTERNAL_4736210244914788712$$LIB__WEB_COMPONENTS_POS_CARD_POS_CARD_COMPONENT_TS___1;
|
|
163
|
-
}
|
|
164
|
-
else {
|
|
165
|
-
i18n_0 = $localize `:␟d056cc9fa5b25f4225483bac0bf187ab1d72a4b8␟4736210244914788712:Drive`;
|
|
166
|
-
} var i18n_2; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
167
|
-
const MSG_EXTERNAL_435535507439091133$$LIB__WEB_COMPONENTS_POS_CARD_POS_CARD_COMPONENT_TS___3 = goog.getMsg("Livraison \u00E0 domicile");
|
|
168
|
-
i18n_2 = MSG_EXTERNAL_435535507439091133$$LIB__WEB_COMPONENTS_POS_CARD_POS_CARD_COMPONENT_TS___3;
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
i18n_2 = $localize `:␟c28a9dbf97ac71ed211b38cbf56c6b9160f8c01b␟435535507439091133:Livraison à domicile`;
|
|
172
|
-
} var i18n_4; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
173
|
-
const MSG_EXTERNAL_988053257640335453$$LIB__WEB_COMPONENTS_POS_CARD_POS_CARD_COMPONENT_TS___5 = goog.getMsg("Articles disponibles");
|
|
174
|
-
i18n_4 = MSG_EXTERNAL_988053257640335453$$LIB__WEB_COMPONENTS_POS_CARD_POS_CARD_COMPONENT_TS___5;
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
i18n_4 = $localize `:␟d903bee60bf81c0d6e39701f55a54150df1b6154␟988053257640335453:Articles disponibles`;
|
|
178
|
-
} var i18n_6; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
179
|
-
const MSG_EXTERNAL_4026869773144136922$$LIB__WEB_COMPONENTS_POS_CARD_POS_CARD_COMPONENT_TS___7 = goog.getMsg("Calcul en cours...");
|
|
180
|
-
i18n_6 = MSG_EXTERNAL_4026869773144136922$$LIB__WEB_COMPONENTS_POS_CARD_POS_CARD_COMPONENT_TS___7;
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
i18n_6 = $localize `:␟45f000d8f826bd12937bbd2949236d3a96a70092␟4026869773144136922:Calcul en cours...`;
|
|
184
|
-
} return [["class", "pos-card", 3, "click", 4, "ngIf"], [1, "pos-card", 3, "click"], [1, "left-section"], [1, "logo"], [3, "src"], [1, "details"], [1, "title-distance"], [1, "title"], ["class", "distance", 4, "ngIf"], [1, "catalogue"], [1, "delivery-options"], ["class", "option", 4, "ngIf"], [1, "right-section"], [1, "hover-text"], ["class", "availability", 4, "ngIf"], [1, "distance"], [1, "option"], i18n_0, i18n_2, [1, "availability"], [1, "gauge-wrapper"], [1, "caption"], i18n_4, [1, "gauge"], [1, "empty"], [1, "full"], [1, "ratio"], i18n_6]; }, template: function PosCardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
185
|
-
i0.ɵɵtemplate(0, PosCardComponent_div_0_Template, 20, 9, "div", 0);
|
|
186
|
-
} if (rf & 2) {
|
|
187
|
-
i0.ɵɵproperty("ngIf", ctx.pos);
|
|
188
|
-
} }, directives: [i2.NgIf], styles: [".pos-card{align-items:center;border:1px solid var(--m-color-grey);border-radius:var(--m-border-radius);box-shadow:none;cursor:pointer;display:flex;justify-content:space-between;padding:15px 20px;transition:var(--m-default-transition)}@media (min-width:1022px){.pos-card:hover{border-color:var(--m-color-grey);box-shadow:var(--m-shadow-small)}.pos-card:hover .right-section .hover-text{color:var(--m-color-primary);transition:var(--m-default-transition)}}.pos-card .left-section{align-items:center;display:flex}.pos-card .left-section .logo{margin-right:20px;min-width:100px;width:100px}.pos-card .left-section .logo img{width:100%}.pos-card .left-section .details{display:flex;flex-direction:column}.pos-card .left-section .details .title-distance{align-items:center;display:flex}.pos-card .left-section .details .title-distance .title{font-size:14px;margin-right:10px}.pos-card .left-section .details .title-distance .distance{border:1px solid var(--m-color-grey-text);border-radius:var(--m-border-radius);font-size:12px;padding:6px 8px;white-space:nowrap}.pos-card .left-section .details .catalogue{font-size:12px;margin-bottom:10px;margin-top:5px}.pos-card .left-section .details .delivery-options{display:flex;font-size:12px}.pos-card .left-section .details .delivery-options .option{background-color:var(--m-color-grey);border-radius:var(--m-border-radius);margin-right:10px;padding:6px 8px}.pos-card .right-section{align-items:center;display:flex;justify-content:flex-end;margin-left:10px;position:relative;width:320px}.pos-card .right-section .hover-text{color:var(--m-color-grey-text-dark);left:0;position:absolute;text-decoration:underline}.pos-card .right-section .availability{font-size:12px;margin-left:15px}.pos-card .right-section .availability .gauge-wrapper{align-items:center;display:flex;flex-direction:column}.pos-card .right-section .availability .gauge-wrapper .caption{margin-bottom:5px;text-align:center}.pos-card .right-section .availability .gauge-wrapper .gauge{height:15px;position:relative;width:125px}.pos-card .right-section .availability .gauge-wrapper .gauge .empty,.pos-card .right-section .availability .gauge-wrapper .gauge .full{border-radius:var(--m-border-radius);height:15px;position:absolute}.pos-card .right-section .availability .gauge-wrapper .gauge .empty{background-color:var(--m-color-grey);width:inherit}.pos-card .right-section .availability .ratio{align-items:center;display:flex;font-size:14px;justify-content:center;margin-top:10px}"], encapsulation: 2, changeDetection: 0 });
|
|
189
|
-
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(PosCardComponent, [{
|
|
190
|
-
type: Component,
|
|
191
|
-
args: [{
|
|
192
|
-
selector: 'ng-miam-pos-card',
|
|
193
|
-
templateUrl: './pos-card.component.html',
|
|
194
|
-
styleUrls: ['./pos-card.component.scss'],
|
|
195
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
196
|
-
encapsulation: ViewEncapsulation.None
|
|
197
|
-
}]
|
|
198
|
-
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.GroceriesListsService }, { type: i1.BasketsService }]; }, { pos: [{
|
|
199
|
-
type: Input
|
|
200
|
-
}], selected: [{
|
|
201
|
-
type: Input
|
|
202
|
-
}], hoverText: [{
|
|
203
|
-
type: Input
|
|
204
|
-
}], select: [{
|
|
205
|
-
type: Output
|
|
206
|
-
}] }); })();
|
|
207
|
-
//# sourceMappingURL=data:application/json;base64,ey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2PlxuICAgICAgICA8L2Rpdj5cbiAgICAgIDwvZGl2PlxuICAgICAgPGRpdiBjbGFzcz1cInJhdGlvXCI+XG4gICAgICAgIDxzdHJvbmc+e3sgY29tcGxldGlvbi5mb3VuZCB9fTwvc3Ryb25nPi97eyBjb21wbGV0aW9uLnRvdGFsIH19XG4gICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbiAgICA8ZGl2IGkxOG4gKm5nSWY9XCIhY29tcGxldGlvblwiIGNsYXNzPVwiYXZhaWxhYmlsaXR5XCI+Q2FsY3VsIGVuIGNvdXJzLi4uPC9kaXY+XG4gIDwvZGl2PlxuPC9kaXY+Il19
|
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
import { Component, Input, ChangeDetectorRef, HostListener, ChangeDetectionStrategy, ViewEncapsulation, ViewChild } from '@angular/core';
|
|
2
|
-
import { PointOfSalesService } from '../../_services/point-of-sales.service';
|
|
3
|
-
import { tap, skipWhile } from 'rxjs/operators';
|
|
4
|
-
import { PosCardComponent } from '../pos-card/pos-card.component';
|
|
5
|
-
import { ContextService } from '../../_services/context.service';
|
|
6
|
-
import { AnalyticsService } from '../../_services/analytics.service';
|
|
7
|
-
import { Icon } from '../../_types/icon.enum';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "../../_services/context.service";
|
|
10
|
-
import * as i2 from "../../_services/point-of-sales.service";
|
|
11
|
-
import * as i3 from "../../_services/analytics.service";
|
|
12
|
-
import * as i4 from "@angular/common";
|
|
13
|
-
import * as i5 from "../../_components/icon/icon.component";
|
|
14
|
-
import * as i6 from "../pos-card/pos-card.component";
|
|
15
|
-
import * as i7 from "@angular/forms";
|
|
16
|
-
import * as i8 from "../../_components/loader/loader.component";
|
|
17
|
-
import * as i9 from "../../_components/cors-overlay/cors-overlay.component";
|
|
18
|
-
const _c0 = ["selectedPosCard"];
|
|
19
|
-
function PosSelectionComponent_ng_container_0_div_6_ng_miam_pos_card_1_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
|
21
|
-
i0.ɵɵelementStart(0, "ng-miam-pos-card", 10);
|
|
22
|
-
i0.ɵɵlistener("select", function PosSelectionComponent_ng_container_0_div_6_ng_miam_pos_card_1_Template_ng_miam_pos_card_select_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(3); return ctx_r6.startReplace(); });
|
|
23
|
-
i0.ɵɵelementEnd();
|
|
24
|
-
} if (rf & 2) {
|
|
25
|
-
const ctx_r4 = i0.ɵɵnextContext(3);
|
|
26
|
-
i0.ɵɵproperty("pos", ctx_r4.selectedPos)("selected", true);
|
|
27
|
-
} }
|
|
28
|
-
function PosSelectionComponent_ng_container_0_div_6_div_2_button_5_Template(rf, ctx) { if (rf & 1) {
|
|
29
|
-
const _r14 = i0.ɵɵgetCurrentView();
|
|
30
|
-
i0.ɵɵelementStart(0, "button", 22);
|
|
31
|
-
i0.ɵɵlistener("click", function PosSelectionComponent_ng_container_0_div_6_div_2_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(4); return ctx_r13.endReplace(); });
|
|
32
|
-
i0.ɵɵi18n(1, 23);
|
|
33
|
-
i0.ɵɵelementEnd();
|
|
34
|
-
} }
|
|
35
|
-
function PosSelectionComponent_ng_container_0_div_6_div_2_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
36
|
-
i0.ɵɵelementStart(0, "div", 24);
|
|
37
|
-
i0.ɵɵelementStart(1, "p");
|
|
38
|
-
i0.ɵɵelement(2, "b", 25);
|
|
39
|
-
i0.ɵɵelementEnd();
|
|
40
|
-
i0.ɵɵelementStart(3, "p");
|
|
41
|
-
i0.ɵɵi18n(4, 26);
|
|
42
|
-
i0.ɵɵelementEnd();
|
|
43
|
-
i0.ɵɵelementEnd();
|
|
44
|
-
} if (rf & 2) {
|
|
45
|
-
const ctx_r9 = i0.ɵɵnextContext(4);
|
|
46
|
-
i0.ɵɵadvance(2);
|
|
47
|
-
i0.ɵɵproperty("innerHTML", ctx_r9.sorryCaption, i0.ɵɵsanitizeHtml);
|
|
48
|
-
} }
|
|
49
|
-
function PosSelectionComponent_ng_container_0_div_6_div_2_ng_template_12_ng_miam_pos_card_0_Template(rf, ctx) { if (rf & 1) {
|
|
50
|
-
const _r18 = i0.ɵɵgetCurrentView();
|
|
51
|
-
i0.ɵɵelementStart(0, "ng-miam-pos-card", 28);
|
|
52
|
-
i0.ɵɵlistener("select", function PosSelectionComponent_ng_container_0_div_6_div_2_ng_template_12_ng_miam_pos_card_0_Template_ng_miam_pos_card_select_0_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r17 = i0.ɵɵnextContext(5); return ctx_r17.replace($event); });
|
|
53
|
-
i0.ɵɵelementEnd();
|
|
54
|
-
} if (rf & 2) {
|
|
55
|
-
const pos_r16 = ctx.$implicit;
|
|
56
|
-
i0.ɵɵproperty("pos", pos_r16);
|
|
57
|
-
} }
|
|
58
|
-
function PosSelectionComponent_ng_container_0_div_6_div_2_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
59
|
-
i0.ɵɵtemplate(0, PosSelectionComponent_ng_container_0_div_6_div_2_ng_template_12_ng_miam_pos_card_0_Template, 1, 1, "ng-miam-pos-card", 27);
|
|
60
|
-
} if (rf & 2) {
|
|
61
|
-
const ctx_r11 = i0.ɵɵnextContext(4);
|
|
62
|
-
i0.ɵɵproperty("ngForOf", ctx_r11.candidatePos);
|
|
63
|
-
} }
|
|
64
|
-
function PosSelectionComponent_ng_container_0_div_6_div_2_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
65
|
-
i0.ɵɵelementStart(0, "div", 29);
|
|
66
|
-
i0.ɵɵelement(1, "ng-miam-loader");
|
|
67
|
-
i0.ɵɵelementStart(2, "div");
|
|
68
|
-
i0.ɵɵi18n(3, 30);
|
|
69
|
-
i0.ɵɵelementEnd();
|
|
70
|
-
i0.ɵɵelementEnd();
|
|
71
|
-
} }
|
|
72
|
-
function PosSelectionComponent_ng_container_0_div_6_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
73
|
-
const _r20 = i0.ɵɵgetCurrentView();
|
|
74
|
-
i0.ɵɵelementStart(0, "div");
|
|
75
|
-
i0.ɵɵelementStart(1, "div", 11);
|
|
76
|
-
i0.ɵɵelementStart(2, "h4");
|
|
77
|
-
i0.ɵɵi18n(3, 12);
|
|
78
|
-
i0.ɵɵelementEnd();
|
|
79
|
-
i0.ɵɵelementStart(4, "div");
|
|
80
|
-
i0.ɵɵtemplate(5, PosSelectionComponent_ng_container_0_div_6_div_2_button_5_Template, 2, 0, "button", 13);
|
|
81
|
-
i0.ɵɵelementEnd();
|
|
82
|
-
i0.ɵɵelementEnd();
|
|
83
|
-
i0.ɵɵelementStart(6, "div", 14);
|
|
84
|
-
i0.ɵɵelementStart(7, "div", 15);
|
|
85
|
-
i0.ɵɵelementStart(8, "input", 16);
|
|
86
|
-
i0.ɵɵlistener("ngModelChange", function PosSelectionComponent_ng_container_0_div_6_div_2_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r19 = i0.ɵɵnextContext(3); return ctx_r19.address = $event; })("click", function PosSelectionComponent_ng_container_0_div_6_div_2_Template_input_click_8_listener($event) { i0.ɵɵrestoreView(_r20); return $event.target.select(); });
|
|
87
|
-
i0.ɵɵelementEnd();
|
|
88
|
-
i0.ɵɵelementEnd();
|
|
89
|
-
i0.ɵɵelementStart(9, "button", 17);
|
|
90
|
-
i0.ɵɵlistener("click", function PosSelectionComponent_ng_container_0_div_6_div_2_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r20); const ctx_r22 = i0.ɵɵnextContext(3); return ctx_r22.searchAddress(); });
|
|
91
|
-
i0.ɵɵelement(10, "ng-miam-icon", 18);
|
|
92
|
-
i0.ɵɵelementEnd();
|
|
93
|
-
i0.ɵɵelementEnd();
|
|
94
|
-
i0.ɵɵtemplate(11, PosSelectionComponent_ng_container_0_div_6_div_2_div_11_Template, 5, 1, "div", 19);
|
|
95
|
-
i0.ɵɵtemplate(12, PosSelectionComponent_ng_container_0_div_6_div_2_ng_template_12_Template, 1, 1, "ng-template", null, 20, i0.ɵɵtemplateRefExtractor);
|
|
96
|
-
i0.ɵɵtemplate(14, PosSelectionComponent_ng_container_0_div_6_div_2_div_14_Template, 4, 0, "div", 21);
|
|
97
|
-
i0.ɵɵelementEnd();
|
|
98
|
-
} if (rf & 2) {
|
|
99
|
-
const _r10 = i0.ɵɵreference(13);
|
|
100
|
-
const ctx_r5 = i0.ɵɵnextContext(3);
|
|
101
|
-
i0.ɵɵadvance(5);
|
|
102
|
-
i0.ɵɵproperty("ngIf", ctx_r5.selectedPos);
|
|
103
|
-
i0.ɵɵadvance(3);
|
|
104
|
-
i0.ɵɵproperty("ngModel", ctx_r5.address);
|
|
105
|
-
i0.ɵɵadvance(2);
|
|
106
|
-
i0.ɵɵproperty("iconName", ctx_r5.icon.Search);
|
|
107
|
-
i0.ɵɵadvance(1);
|
|
108
|
-
i0.ɵɵproperty("ngIf", ctx_r5.candidatePos && ctx_r5.candidatePos.length === 0)("ngIfElse", _r10);
|
|
109
|
-
i0.ɵɵadvance(3);
|
|
110
|
-
i0.ɵɵproperty("ngIf", ctx_r5.loading);
|
|
111
|
-
} }
|
|
112
|
-
function PosSelectionComponent_ng_container_0_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
113
|
-
i0.ɵɵelementStart(0, "div", 7);
|
|
114
|
-
i0.ɵɵtemplate(1, PosSelectionComponent_ng_container_0_div_6_ng_miam_pos_card_1_Template, 1, 2, "ng-miam-pos-card", 8);
|
|
115
|
-
i0.ɵɵtemplate(2, PosSelectionComponent_ng_container_0_div_6_div_2_Template, 15, 6, "div", 9);
|
|
116
|
-
i0.ɵɵelementEnd();
|
|
117
|
-
} if (rf & 2) {
|
|
118
|
-
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
119
|
-
i0.ɵɵadvance(1);
|
|
120
|
-
i0.ɵɵproperty("ngIf", ctx_r3.selectedPos && !ctx_r3.replacing);
|
|
121
|
-
i0.ɵɵadvance(1);
|
|
122
|
-
i0.ɵɵproperty("ngIf", ctx_r3.replacing);
|
|
123
|
-
} }
|
|
124
|
-
const _c9 = function (a0) { return { "down": a0 }; };
|
|
125
|
-
function PosSelectionComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
126
|
-
const _r24 = i0.ɵɵgetCurrentView();
|
|
127
|
-
i0.ɵɵelementContainerStart(0);
|
|
128
|
-
i0.ɵɵelementStart(1, "h3", 2);
|
|
129
|
-
i0.ɵɵelementStart(2, "div", 3);
|
|
130
|
-
i0.ɵɵlistener("click", function PosSelectionComponent_ng_container_0_Template_div_click_2_listener() { i0.ɵɵrestoreView(_r24); const ctx_r23 = i0.ɵɵnextContext(); return ctx_r23.toggle(); });
|
|
131
|
-
i0.ɵɵtext(3);
|
|
132
|
-
i0.ɵɵelementEnd();
|
|
133
|
-
i0.ɵɵelementStart(4, "div", 4);
|
|
134
|
-
i0.ɵɵlistener("click", function PosSelectionComponent_ng_container_0_Template_div_click_4_listener() { i0.ɵɵrestoreView(_r24); const ctx_r25 = i0.ɵɵnextContext(); return ctx_r25.toggle(); });
|
|
135
|
-
i0.ɵɵelement(5, "ng-miam-icon", 5);
|
|
136
|
-
i0.ɵɵelementEnd();
|
|
137
|
-
i0.ɵɵelementEnd();
|
|
138
|
-
i0.ɵɵtemplate(6, PosSelectionComponent_ng_container_0_div_6_Template, 3, 2, "div", 6);
|
|
139
|
-
i0.ɵɵelementContainerEnd();
|
|
140
|
-
} if (rf & 2) {
|
|
141
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
142
|
-
i0.ɵɵadvance(3);
|
|
143
|
-
i0.ɵɵtextInterpolate(ctx_r0.blockTitle);
|
|
144
|
-
i0.ɵɵadvance(1);
|
|
145
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c9, !ctx_r0.expand));
|
|
146
|
-
i0.ɵɵadvance(1);
|
|
147
|
-
i0.ɵɵproperty("iconName", ctx_r0.icon.ChevronDown);
|
|
148
|
-
i0.ɵɵadvance(1);
|
|
149
|
-
i0.ɵɵproperty("ngIf", ctx_r0.expand);
|
|
150
|
-
} }
|
|
151
|
-
function PosSelectionComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
152
|
-
i0.ɵɵelement(0, "ng-miam-cors-overlay");
|
|
153
|
-
} }
|
|
154
|
-
export class PosSelectionComponent {
|
|
155
|
-
constructor(cdr, contextService, posService, analyticsService) {
|
|
156
|
-
this.cdr = cdr;
|
|
157
|
-
this.contextService = contextService;
|
|
158
|
-
this.posService = posService;
|
|
159
|
-
this.analyticsService = analyticsService;
|
|
160
|
-
this.blockTitle = 'Mon magasin';
|
|
161
|
-
this.expand = true;
|
|
162
|
-
this.loading = false;
|
|
163
|
-
this.replacing = true;
|
|
164
|
-
this.corsIssues = false;
|
|
165
|
-
this.icon = Icon;
|
|
166
|
-
}
|
|
167
|
-
ngOnInit() {
|
|
168
|
-
this.subscriptions = [
|
|
169
|
-
this.contextService.getCORSIssuesState().subscribe(res => {
|
|
170
|
-
this.corsIssues = res;
|
|
171
|
-
this.cdr.detectChanges();
|
|
172
|
-
}),
|
|
173
|
-
this.posService.pos$.pipe(skipWhile(pos => !pos), tap(pos => {
|
|
174
|
-
this.selectedPos = pos;
|
|
175
|
-
this.endReplace();
|
|
176
|
-
})).subscribe()
|
|
177
|
-
];
|
|
178
|
-
}
|
|
179
|
-
ngOnDestroy() {
|
|
180
|
-
this.subscriptions.forEach((sub) => sub.unsubscribe());
|
|
181
|
-
}
|
|
182
|
-
toggle() {
|
|
183
|
-
this.expand = !this.expand;
|
|
184
|
-
this.expand ? this.show() : this.hide();
|
|
185
|
-
}
|
|
186
|
-
show() {
|
|
187
|
-
this.expand = true;
|
|
188
|
-
this.cdr.detectChanges();
|
|
189
|
-
}
|
|
190
|
-
hide() {
|
|
191
|
-
this.expand = false;
|
|
192
|
-
this.cdr.detectChanges();
|
|
193
|
-
}
|
|
194
|
-
startReplace() {
|
|
195
|
-
this.replacing = true;
|
|
196
|
-
this.cdr.detectChanges();
|
|
197
|
-
const input = document.getElementById('address-input');
|
|
198
|
-
input.focus();
|
|
199
|
-
if (this.address) {
|
|
200
|
-
input.setSelectionRange(0, this.address.length);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
replace(pos) {
|
|
204
|
-
this.subscriptions.push(this.posService.loadPos(pos.id).subscribe(() => this.cdr.detectChanges()));
|
|
205
|
-
this.endReplace();
|
|
206
|
-
}
|
|
207
|
-
endReplace() {
|
|
208
|
-
this.replacing = false;
|
|
209
|
-
this.cdr.detectChanges();
|
|
210
|
-
}
|
|
211
|
-
searchAddress() {
|
|
212
|
-
if (!this.address) {
|
|
213
|
-
return null;
|
|
214
|
-
}
|
|
215
|
-
this.candidatePos = null;
|
|
216
|
-
this.loading = true;
|
|
217
|
-
this.cdr.detectChanges();
|
|
218
|
-
this.posService.all({ include: ['supplier'], remotefilter: { address: this.address } }).pipe(skipWhile(result => result.is_loading), tap(result => {
|
|
219
|
-
this.candidatePos = result.data;
|
|
220
|
-
this.sorryCaption = `Désolé, nous n'avons détecté aucun magasin à proximité de <i>${this.address}</i>.`;
|
|
221
|
-
this.loading = false;
|
|
222
|
-
this.cdr.detectChanges();
|
|
223
|
-
})).subscribe();
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
PosSelectionComponent.ɵfac = function PosSelectionComponent_Factory(t) { return new (t || PosSelectionComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.ContextService), i0.ɵɵdirectiveInject(i2.PointOfSalesService), i0.ɵɵdirectiveInject(i3.AnalyticsService)); };
|
|
227
|
-
PosSelectionComponent.ɵcmp = i0.ɵɵdefineComponent({ type: PosSelectionComponent, selectors: [["ng-miam-pos-selection"]], viewQuery: function PosSelectionComponent_Query(rf, ctx) { if (rf & 1) {
|
|
228
|
-
i0.ɵɵviewQuery(_c0, true);
|
|
229
|
-
} if (rf & 2) {
|
|
230
|
-
var _t;
|
|
231
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selectedPosCard = _t.first);
|
|
232
|
-
} }, hostBindings: function PosSelectionComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
233
|
-
i0.ɵɵlistener("keydown.enter", function PosSelectionComponent_keydown_enter_HostBindingHandler() { return ctx.searchAddress(); }, false, i0.ɵɵresolveDocument);
|
|
234
|
-
} }, inputs: { blockTitle: "blockTitle" }, decls: 3, vars: 2, consts: function () { var i18n_1; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
235
|
-
const MSG_EXTERNAL_4550578416290099093$$LIB__WEB_COMPONENTS_POS_SELECTION_POS_SELECTION_COMPONENT_TS____2 = goog.getMsg("Rechercher un magasin pr\u00E8s de chez moi :");
|
|
236
|
-
i18n_1 = MSG_EXTERNAL_4550578416290099093$$LIB__WEB_COMPONENTS_POS_SELECTION_POS_SELECTION_COMPONENT_TS____2;
|
|
237
|
-
}
|
|
238
|
-
else {
|
|
239
|
-
i18n_1 = $localize `:␟6b64888ba1fecc7fe21317102d61f3563751fed3␟4550578416290099093:Rechercher un magasin près de chez moi :`;
|
|
240
|
-
} var i18n_3; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
241
|
-
const MSG_EXTERNAL_1711750570766225138$$LIB__WEB_COMPONENTS_POS_SELECTION_POS_SELECTION_COMPONENT_TS_____4 = goog.getMsg("Annuler");
|
|
242
|
-
i18n_3 = MSG_EXTERNAL_1711750570766225138$$LIB__WEB_COMPONENTS_POS_SELECTION_POS_SELECTION_COMPONENT_TS_____4;
|
|
243
|
-
}
|
|
244
|
-
else {
|
|
245
|
-
i18n_3 = $localize `:␟12380235948088ddf227ad226ce8a2ae63878fe5␟1711750570766225138:Annuler`;
|
|
246
|
-
} var i18n_5; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
247
|
-
const MSG_EXTERNAL_2162515235106051916$$LIB__WEB_COMPONENTS_POS_SELECTION_POS_SELECTION_COMPONENT_TS_____6 = goog.getMsg("Veuillez entrez une autre adresse ou un autre code postal.");
|
|
248
|
-
i18n_5 = MSG_EXTERNAL_2162515235106051916$$LIB__WEB_COMPONENTS_POS_SELECTION_POS_SELECTION_COMPONENT_TS_____6;
|
|
249
|
-
}
|
|
250
|
-
else {
|
|
251
|
-
i18n_5 = $localize `:␟eca842d9b1fa0aeba5c0b9c886840cec03956513␟2162515235106051916:Veuillez entrez une autre adresse ou un autre code postal.`;
|
|
252
|
-
} var i18n_7; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
253
|
-
const MSG_EXTERNAL_9006718809849947573$$LIB__WEB_COMPONENTS_POS_SELECTION_POS_SELECTION_COMPONENT_TS_____8 = goog.getMsg("Recherche des magasins...");
|
|
254
|
-
i18n_7 = MSG_EXTERNAL_9006718809849947573$$LIB__WEB_COMPONENTS_POS_SELECTION_POS_SELECTION_COMPONENT_TS_____8;
|
|
255
|
-
}
|
|
256
|
-
else {
|
|
257
|
-
i18n_7 = $localize `:␟81518c69bce4bb04eef46e4200ce865feaed7ba5␟9006718809849947573:Recherche des magasins...`;
|
|
258
|
-
} return [[4, "ngIf", "ngIfElse"], ["cors", ""], [1, "block-title"], [1, "text", 3, "click"], [1, "chevron", 3, "ngClass", "click"], ["height", "32", "width", "32", 3, "iconName"], ["class", "pos-selection", 4, "ngIf"], [1, "pos-selection"], ["hoverText", "Changer de magasin", 3, "pos", "selected", "select", 4, "ngIf"], [4, "ngIf"], ["hoverText", "Changer de magasin", 3, "pos", "selected", "select"], [1, "subtitle"], i18n_1, ["class", "m-button-grey", 3, "click", 4, "ngIf"], [1, "search"], [1, "input-frame"], ["id", "address-input", "type", "text", "placeholder", "Entrez votre code postal ou votre adresse...", 3, "ngModel", "ngModelChange", "click"], [1, "address-button", "m-button-secondary", 3, "click"], ["primaryColor", "var(--m-color-secondary)", 3, "iconName"], ["class", "not-found", 4, "ngIf", "ngIfElse"], ["found", ""], ["class", "loader-container", 4, "ngIf"], [1, "m-button-grey", 3, "click"], i18n_3, [1, "not-found"], [3, "innerHTML"], i18n_5, ["hoverText", "Choisir ce magasin", 3, "pos", "select", 4, "ngFor", "ngForOf"], ["hoverText", "Choisir ce magasin", 3, "pos", "select"], [1, "loader-container"], i18n_7]; }, template: function PosSelectionComponent_Template(rf, ctx) { if (rf & 1) {
|
|
259
|
-
i0.ɵɵtemplate(0, PosSelectionComponent_ng_container_0_Template, 7, 6, "ng-container", 0);
|
|
260
|
-
i0.ɵɵtemplate(1, PosSelectionComponent_ng_template_1_Template, 1, 0, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
261
|
-
} if (rf & 2) {
|
|
262
|
-
const _r1 = i0.ɵɵreference(2);
|
|
263
|
-
i0.ɵɵproperty("ngIf", !ctx.corsIssues)("ngIfElse", _r1);
|
|
264
|
-
} }, directives: [i4.NgIf, i4.NgClass, i5.IconComponent, i6.PosCardComponent, i7.DefaultValueAccessor, i7.NgControlStatus, i7.NgModel, i4.NgForOf, i8.LoaderComponent, i9.CORSOverlayComponent], styles: [".block-title{display:flex;justify-content:space-between;margin-bottom:0;padding-bottom:10px}.block-title .text{cursor:pointer}.block-title .chevron{cursor:pointer;transition-duration:.5s}.block-title .chevron svg{width:18px}.block-title .down{transform:rotate(-180deg)}.pos-selection .subtitle{align-items:center;display:flex;justify-content:space-between;margin-bottom:10px}.pos-selection .subtitle h4{margin:0}.pos-selection .search{display:flex;margin-bottom:15px}.pos-selection .search .input-frame{border:1px solid var(--m-color-secondary);border-radius:var(--m-border-radius-pill);flex:auto;margin-right:10px;padding:5px}.pos-selection .search .input-frame input#address-input{border:none;outline:none;width:100%}.pos-selection .search button.address-button{padding:7px;width:35px}.pos-selection .search button.address-button svg.fa-search{height:100%;width:100%}.pos-selection ng-miam-pos-card .pos-card{margin-bottom:10px}.pos-selection .not-found{margin-left:20px}.pos-selection .miam-loader-container{align-items:center;display:flex;flex-direction:column;justify-content:center}"], encapsulation: 2, changeDetection: 0 });
|
|
265
|
-
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(PosSelectionComponent, [{
|
|
266
|
-
type: Component,
|
|
267
|
-
args: [{
|
|
268
|
-
selector: 'ng-miam-pos-selection',
|
|
269
|
-
templateUrl: './pos-selection.component.html',
|
|
270
|
-
styleUrls: ['./pos-selection.component.scss'],
|
|
271
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
272
|
-
encapsulation: ViewEncapsulation.None
|
|
273
|
-
}]
|
|
274
|
-
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.ContextService }, { type: i2.PointOfSalesService }, { type: i3.AnalyticsService }]; }, { blockTitle: [{
|
|
275
|
-
type: Input
|
|
276
|
-
}], selectedPosCard: [{
|
|
277
|
-
type: ViewChild,
|
|
278
|
-
args: ['selectedPosCard']
|
|
279
|
-
}], searchAddress: [{
|
|
280
|
-
type: HostListener,
|
|
281
|
-
args: ['document:keydown.enter']
|
|
282
|
-
}] }); })();
|
|
283
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9zLXNlbGVjdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiL2J1aWxkcy9taWFtL25nLW1pYW0tc2RrL3Byb2plY3RzL25nLW1pYW0vc3JjLyIsInNvdXJjZXMiOlsibGliL193ZWItY29tcG9uZW50cy9wb3Mtc2VsZWN0aW9uL3Bvcy1zZWxlY3Rpb24uY29tcG9uZW50LnRzIiwibGliL193ZWItY29tcG9uZW50cy9wb3Mtc2VsZWN0aW9uL3Bvcy1zZWxlY3Rpb24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFFVCxLQUFLLEVBQ0wsaUJBQWlCLEVBRWpCLFlBQVksRUFDWix1QkF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