ng-miam 3.6.2 → 3.7.2
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 +209 -126
- 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/_components/list-input/list-input.component.js +90 -27
- package/esm2015/lib/_services/ingredients.service.js +3 -3
- package/esm2015/lib/_services/user.service.js +14 -11
- package/esm2015/lib/_web-components/recipe-form/recipe-form.component.js +3 -2
- package/esm2015/lib/_web-components/recipe-stepper/recipe-stepper.component.js +9 -6
- package/fesm2015/ng-miam.js +196 -126
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_components/list-input/list-input.component.d.ts +6 -1
- package/lib/_services/user.service.d.ts +2 -1
- package/lib/_web-components/recipe-stepper/recipe-stepper.component.d.ts +5 -1
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -2717,14 +2717,14 @@
|
|
|
2717
2717
|
oldIngredientAttribute.unit !== ing.attributes.unit ||
|
|
2718
2718
|
oldIngredientAttribute.quantity !== ing.attributes.quantity;
|
|
2719
2719
|
if (hasChange) {
|
|
2720
|
-
oldIngredients[oldIndex].attributes = Object.assign(Object.assign({}, oldIngredients[oldIndex].attributes), { name: ing.attributes.name, unit: ing.attributes.unit, quantity: ing.attributes.quantity });
|
|
2720
|
+
oldIngredients[oldIndex].attributes = Object.assign(Object.assign({}, oldIngredients[oldIndex].attributes), { name: ing.attributes.name, unit: ing.attributes.unit, quantity: ing.attributes.quantity, 'picture-url': ing.attributes['picture-url'] });
|
|
2721
2721
|
ingredientsToSave.push(oldIngredients[oldIndex]);
|
|
2722
2722
|
}
|
|
2723
2723
|
}
|
|
2724
2724
|
else {
|
|
2725
2725
|
var newIng = _this.new();
|
|
2726
2726
|
delete newIng.id;
|
|
2727
|
-
newIng.attributes = Object.assign(Object.assign({}, newIng.attributes), { name: ing.attributes.name, unit: ing.attributes.unit, quantity: '' + ing.attributes.quantity });
|
|
2727
|
+
newIng.attributes = Object.assign(Object.assign({}, newIng.attributes), { name: ing.attributes.name, unit: ing.attributes.unit, quantity: '' + ing.attributes.quantity, 'picture-url': ing.attributes['picture-url'] });
|
|
2728
2728
|
newIng.addRelationship(recipe, 'recipe');
|
|
2729
2729
|
ingredientsToSave.push(newIng);
|
|
2730
2730
|
}
|
|
@@ -4072,6 +4072,20 @@
|
|
|
4072
4072
|
var _a;
|
|
4073
4073
|
return (_a = this.userInfo$.value) === null || _a === void 0 ? void 0 : _a.forbidProfiling;
|
|
4074
4074
|
};
|
|
4075
|
+
UserService.prototype.getUserSupplier = function () {
|
|
4076
|
+
var _this = this;
|
|
4077
|
+
return this.userInfo$.pipe(operators.skipWhile(function (userInfo) { return !userInfo; }), operators.switchMap(function (userInfo) {
|
|
4078
|
+
if (!userInfo.supplierId) {
|
|
4079
|
+
return rxjs.of(null);
|
|
4080
|
+
}
|
|
4081
|
+
else {
|
|
4082
|
+
return _this.suppliersService.get(userInfo.supplierId);
|
|
4083
|
+
}
|
|
4084
|
+
}));
|
|
4085
|
+
};
|
|
4086
|
+
UserService.prototype.can = function (permission) {
|
|
4087
|
+
return this.userInfo$.pipe(operators.map(function (info) { var _a, _b; return (_b = (_a = info === null || info === void 0 ? void 0 : info.app_metadata) === null || _a === void 0 ? void 0 : _a.permissions) === null || _b === void 0 ? void 0 : _b.includes(permission); }));
|
|
4088
|
+
};
|
|
4075
4089
|
UserService.prototype.initProvider = function () {
|
|
4076
4090
|
var _this = this;
|
|
4077
4091
|
return this.userInfo$.pipe(operators.switchMap(function (userInfo) {
|
|
@@ -4084,17 +4098,6 @@
|
|
|
4084
4098
|
var _a, _b;
|
|
4085
4099
|
this.userRoles$.next(((_b = (_a = this.userInfo$.value) === null || _a === void 0 ? void 0 : _a.app_metadata) === null || _b === void 0 ? void 0 : _b.roles) || []);
|
|
4086
4100
|
};
|
|
4087
|
-
UserService.prototype.getUserSupplier = function () {
|
|
4088
|
-
var _this = this;
|
|
4089
|
-
return this.userInfo$.pipe(operators.skipWhile(function (userInfo) { return !userInfo; }), operators.switchMap(function (userInfo) {
|
|
4090
|
-
if (!userInfo.supplierId) {
|
|
4091
|
-
return rxjs.of(null);
|
|
4092
|
-
}
|
|
4093
|
-
else {
|
|
4094
|
-
return _this.suppliersService.get(userInfo.supplierId);
|
|
4095
|
-
}
|
|
4096
|
-
}));
|
|
4097
|
-
};
|
|
4098
4101
|
return UserService;
|
|
4099
4102
|
}());
|
|
4100
4103
|
UserService.ɵfac = function UserService_Factory(t) { return new (t || UserService)(i0.ɵɵinject(i1$1.HttpClient), i0.ɵɵinject(RecipeProviderService), i0.ɵɵinject(ToastrService), i0.ɵɵinject(SuppliersService)); };
|
|
@@ -6039,35 +6042,86 @@
|
|
|
6039
6042
|
i0.ɵɵproperty("ngForOf", ctx_r4.list.controls)("ngForTrackBy", ctx_r4.trackByIndex);
|
|
6040
6043
|
}
|
|
6041
6044
|
}
|
|
6042
|
-
function
|
|
6045
|
+
var _c0$1 = function (a0) { return { clickable: a0 }; };
|
|
6046
|
+
function ListInputComponent_ul_4_ng_template_2_li_0_label_12_img_1_Template(rf, ctx) {
|
|
6047
|
+
if (rf & 1) {
|
|
6048
|
+
i0.ɵɵelement(0, "img", 39);
|
|
6049
|
+
}
|
|
6050
|
+
if (rf & 2) {
|
|
6051
|
+
var row_r18 = i0.ɵɵnextContext(2).$implicit;
|
|
6052
|
+
var ctx_r24 = i0.ɵɵnextContext(3);
|
|
6053
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$1, ctx_r24.ingredientsPictures.editable))("src", row_r18.controls.attributes.controls["picture-url"].value, i0.ɵɵsanitizeUrl);
|
|
6054
|
+
}
|
|
6055
|
+
}
|
|
6056
|
+
function ListInputComponent_ul_4_ng_template_2_li_0_label_12_ng_miam_icon_2_Template(rf, ctx) {
|
|
6057
|
+
if (rf & 1) {
|
|
6058
|
+
i0.ɵɵelement(0, "ng-miam-icon", 40);
|
|
6059
|
+
}
|
|
6060
|
+
if (rf & 2) {
|
|
6061
|
+
var ctx_r25 = i0.ɵɵnextContext(5);
|
|
6062
|
+
i0.ɵɵproperty("iconName", ctx_r25.icon.Picture);
|
|
6063
|
+
}
|
|
6064
|
+
}
|
|
6065
|
+
function ListInputComponent_ul_4_ng_template_2_li_0_label_12_Template(rf, ctx) {
|
|
6066
|
+
if (rf & 1) {
|
|
6067
|
+
i0.ɵɵelementStart(0, "label", 36);
|
|
6068
|
+
i0.ɵɵtemplate(1, ListInputComponent_ul_4_ng_template_2_li_0_label_12_img_1_Template, 1, 4, "img", 37);
|
|
6069
|
+
i0.ɵɵtemplate(2, ListInputComponent_ul_4_ng_template_2_li_0_label_12_ng_miam_icon_2_Template, 1, 1, "ng-miam-icon", 38);
|
|
6070
|
+
i0.ɵɵelementEnd();
|
|
6071
|
+
}
|
|
6072
|
+
if (rf & 2) {
|
|
6073
|
+
var ctx_r27 = i0.ɵɵnextContext();
|
|
6074
|
+
var i_r19 = ctx_r27.index;
|
|
6075
|
+
var row_r18 = ctx_r27.$implicit;
|
|
6076
|
+
var ctx_r20 = i0.ɵɵnextContext(3);
|
|
6077
|
+
i0.ɵɵpropertyInterpolate1("for", "ing-picture-", i_r19, "");
|
|
6078
|
+
i0.ɵɵadvance(1);
|
|
6079
|
+
i0.ɵɵproperty("ngIf", row_r18.controls.attributes.controls["picture-url"] == null ? null : row_r18.controls.attributes.controls["picture-url"].value);
|
|
6080
|
+
i0.ɵɵadvance(1);
|
|
6081
|
+
i0.ɵɵproperty("ngIf", !(row_r18.controls.attributes.controls["picture-url"] == null ? null : row_r18.controls.attributes.controls["picture-url"].value) && ctx_r20.ingredientsPictures.editable);
|
|
6082
|
+
}
|
|
6083
|
+
}
|
|
6084
|
+
function ListInputComponent_ul_4_ng_template_2_li_0_input_13_Template(rf, ctx) {
|
|
6085
|
+
if (rf & 1) {
|
|
6086
|
+
var _r29_1 = i0.ɵɵgetCurrentView();
|
|
6087
|
+
i0.ɵɵelementStart(0, "input", 41);
|
|
6088
|
+
i0.ɵɵlistener("change", function ListInputComponent_ul_4_ng_template_2_li_0_input_13_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r29_1); var row_r18 = i0.ɵɵnextContext().$implicit; var ctx_r28 = i0.ɵɵnextContext(3); return ctx_r28.uploadIngredientPicture($event.target.files, row_r18.controls.attributes.controls["picture-url"]); });
|
|
6089
|
+
i0.ɵɵelementEnd();
|
|
6090
|
+
}
|
|
6091
|
+
if (rf & 2) {
|
|
6092
|
+
var i_r19 = i0.ɵɵnextContext().index;
|
|
6093
|
+
i0.ɵɵpropertyInterpolate1("id", "ing-picture-", i_r19, "");
|
|
6094
|
+
}
|
|
6095
|
+
}
|
|
6096
|
+
function ListInputComponent_ul_4_ng_template_2_li_0_div_15_Template(rf, ctx) {
|
|
6043
6097
|
if (rf & 1) {
|
|
6044
6098
|
i0.ɵɵelement(0, "div", 23);
|
|
6045
6099
|
}
|
|
6046
6100
|
}
|
|
6047
|
-
function
|
|
6101
|
+
function ListInputComponent_ul_4_ng_template_2_li_0_div_16_Template(rf, ctx) {
|
|
6048
6102
|
if (rf & 1) {
|
|
6049
6103
|
i0.ɵɵelementStart(0, "div", 24);
|
|
6050
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
6051
|
-
i0.ɵɵelementStart(2, "span",
|
|
6104
|
+
i0.ɵɵelement(1, "ng-miam-icon", 42);
|
|
6105
|
+
i0.ɵɵelementStart(2, "span", 43);
|
|
6052
6106
|
i0.ɵɵtext(3);
|
|
6053
6107
|
i0.ɵɵpipe(4, "capitalizeFirstLetter");
|
|
6054
6108
|
i0.ɵɵelementEnd();
|
|
6055
|
-
i0.ɵɵelementStart(5, "span",
|
|
6109
|
+
i0.ɵɵelementStart(5, "span", 43);
|
|
6056
6110
|
i0.ɵɵtext(6);
|
|
6057
6111
|
i0.ɵɵelementEnd();
|
|
6058
|
-
i0.ɵɵelementStart(7, "span",
|
|
6112
|
+
i0.ɵɵelementStart(7, "span", 43);
|
|
6059
6113
|
i0.ɵɵtext(8);
|
|
6060
6114
|
i0.ɵɵelementEnd();
|
|
6061
6115
|
i0.ɵɵelementEnd();
|
|
6062
6116
|
}
|
|
6063
6117
|
if (rf & 2) {
|
|
6064
6118
|
var row_r18 = i0.ɵɵnextContext().$implicit;
|
|
6065
|
-
var
|
|
6119
|
+
var ctx_r23 = i0.ɵɵnextContext(3);
|
|
6066
6120
|
var tmp_1_0 = null;
|
|
6067
6121
|
var tmp_2_0 = null;
|
|
6068
6122
|
var tmp_3_0 = null;
|
|
6069
6123
|
i0.ɵɵadvance(1);
|
|
6070
|
-
i0.ɵɵproperty("iconName",
|
|
6124
|
+
i0.ɵɵproperty("iconName", ctx_r23.icon.Grip);
|
|
6071
6125
|
i0.ɵɵadvance(2);
|
|
6072
6126
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 4, row_r18 == null ? null : (tmp_1_0 = row_r18.get("attributes")) == null ? null : tmp_1_0.get("name").value));
|
|
6073
6127
|
i0.ɵɵadvance(3);
|
|
@@ -6078,7 +6132,7 @@
|
|
|
6078
6132
|
}
|
|
6079
6133
|
function ListInputComponent_ul_4_ng_template_2_li_0_Template(rf, ctx) {
|
|
6080
6134
|
if (rf & 1) {
|
|
6081
|
-
var
|
|
6135
|
+
var _r34_1 = i0.ɵɵgetCurrentView();
|
|
6082
6136
|
i0.ɵɵelementStart(0, "li", 14);
|
|
6083
6137
|
i0.ɵɵelementStart(1, "div", 27);
|
|
6084
6138
|
i0.ɵɵelementStart(2, "div", 28);
|
|
@@ -6089,17 +6143,21 @@
|
|
|
6089
6143
|
i0.ɵɵpipe(6, "async");
|
|
6090
6144
|
i0.ɵɵpipe(7, "capitalizeFirstLetter");
|
|
6091
6145
|
i0.ɵɵelementStart(8, "input", 31);
|
|
6092
|
-
i0.ɵɵlistener("ngModelChange", function ListInputComponent_ul_4_ng_template_2_li_0_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(
|
|
6146
|
+
i0.ɵɵlistener("ngModelChange", function ListInputComponent_ul_4_ng_template_2_li_0_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r34_1); var i_r19 = ctx.index; var ctx_r33 = i0.ɵɵnextContext(3); return ctx_r33.updateQuantityValue($event, i_r19); });
|
|
6093
6147
|
i0.ɵɵelementEnd();
|
|
6094
6148
|
i0.ɵɵelement(9, "input", 32);
|
|
6095
6149
|
i0.ɵɵpipe(10, "async");
|
|
6096
6150
|
i0.ɵɵelementEnd();
|
|
6097
6151
|
i0.ɵɵelementEnd();
|
|
6098
|
-
i0.ɵɵelementStart(11, "
|
|
6099
|
-
i0.ɵɵ
|
|
6152
|
+
i0.ɵɵelementStart(11, "div", 33);
|
|
6153
|
+
i0.ɵɵtemplate(12, ListInputComponent_ul_4_ng_template_2_li_0_label_12_Template, 3, 3, "label", 34);
|
|
6154
|
+
i0.ɵɵtemplate(13, ListInputComponent_ul_4_ng_template_2_li_0_input_13_Template, 1, 1, "input", 35);
|
|
6155
|
+
i0.ɵɵelementStart(14, "ng-miam-icon", 20);
|
|
6156
|
+
i0.ɵɵlistener("click", function ListInputComponent_ul_4_ng_template_2_li_0_Template_ng_miam_icon_click_14_listener() { i0.ɵɵrestoreView(_r34_1); var i_r19 = ctx.index; var ctx_r35 = i0.ɵɵnextContext(3); return ctx_r35.delete(i_r19); });
|
|
6157
|
+
i0.ɵɵelementEnd();
|
|
6158
|
+
i0.ɵɵtemplate(15, ListInputComponent_ul_4_ng_template_2_li_0_div_15_Template, 1, 0, "div", 21);
|
|
6159
|
+
i0.ɵɵtemplate(16, ListInputComponent_ul_4_ng_template_2_li_0_div_16_Template, 9, 6, "div", 22);
|
|
6100
6160
|
i0.ɵɵelementEnd();
|
|
6101
|
-
i0.ɵɵtemplate(12, ListInputComponent_ul_4_ng_template_2_li_0_div_12_Template, 1, 0, "div", 21);
|
|
6102
|
-
i0.ɵɵtemplate(13, ListInputComponent_ul_4_ng_template_2_li_0_div_13_Template, 9, 6, "div", 22);
|
|
6103
6161
|
i0.ɵɵelementEnd();
|
|
6104
6162
|
}
|
|
6105
6163
|
if (rf & 2) {
|
|
@@ -6111,18 +6169,22 @@
|
|
|
6111
6169
|
i0.ɵɵadvance(2);
|
|
6112
6170
|
i0.ɵɵproperty("iconName", ctx_r17.icon.Grip);
|
|
6113
6171
|
i0.ɵɵadvance(2);
|
|
6114
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpipeBind1(6,
|
|
6172
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpipeBind1(6, 12, ctx_r17.isIngredientReviewed(row_r18["controls"]["attributes"]["controls"]["name"].value)) ? "alert-success" : "alert-danger")("ngModel", i0.ɵɵpipeBind1(7, 14, row_r18["controls"]["attributes"]["controls"]["name"].value))("formControl", row_r18["controls"]["attributes"]["controls"]["name"]);
|
|
6115
6173
|
i0.ɵɵadvance(3);
|
|
6116
6174
|
i0.ɵɵproperty("ngModel", row_r18["controls"]["attributes"]["controls"]["quantity"].value)("formControl", row_r18["controls"]["attributes"]["controls"]["quantity"]);
|
|
6117
6175
|
i0.ɵɵadvance(1);
|
|
6118
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpipeBind1(10,
|
|
6119
|
-
i0.ɵɵadvance(
|
|
6176
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpipeBind1(10, 16, ctx_r17.isQuantityReviewed(row_r18["controls"]["attributes"]["controls"]["unit"].value)) ? "alert-success" : "alert-danger")("formControl", row_r18["controls"]["attributes"]["controls"]["unit"]);
|
|
6177
|
+
i0.ɵɵadvance(3);
|
|
6178
|
+
i0.ɵɵproperty("ngIf", ctx_r17.ingredientsPictures.visible);
|
|
6179
|
+
i0.ɵɵadvance(1);
|
|
6180
|
+
i0.ɵɵproperty("ngIf", ctx_r17.ingredientsPictures.visible && ctx_r17.ingredientsPictures.editable);
|
|
6181
|
+
i0.ɵɵadvance(1);
|
|
6120
6182
|
i0.ɵɵproperty("iconName", ctx_r17.icon.Trash);
|
|
6121
6183
|
}
|
|
6122
6184
|
}
|
|
6123
6185
|
function ListInputComponent_ul_4_ng_template_2_Template(rf, ctx) {
|
|
6124
6186
|
if (rf & 1) {
|
|
6125
|
-
i0.ɵɵtemplate(0, ListInputComponent_ul_4_ng_template_2_li_0_Template,
|
|
6187
|
+
i0.ɵɵtemplate(0, ListInputComponent_ul_4_ng_template_2_li_0_Template, 17, 18, "li", 13);
|
|
6126
6188
|
}
|
|
6127
6189
|
if (rf & 2) {
|
|
6128
6190
|
var ctx_r6 = i0.ɵɵnextContext(2);
|
|
@@ -6131,9 +6193,9 @@
|
|
|
6131
6193
|
}
|
|
6132
6194
|
function ListInputComponent_ul_4_Template(rf, ctx) {
|
|
6133
6195
|
if (rf & 1) {
|
|
6134
|
-
var
|
|
6196
|
+
var _r37_1 = i0.ɵɵgetCurrentView();
|
|
6135
6197
|
i0.ɵɵelementStart(0, "ul", 10);
|
|
6136
|
-
i0.ɵɵlistener("cdkDropListDropped", function ListInputComponent_ul_4_Template_ul_cdkDropListDropped_0_listener($event) { i0.ɵɵrestoreView(
|
|
6198
|
+
i0.ɵɵlistener("cdkDropListDropped", function ListInputComponent_ul_4_Template_ul_cdkDropListDropped_0_listener($event) { i0.ɵɵrestoreView(_r37_1); var ctx_r36 = i0.ɵɵnextContext(); return ctx_r36.drop($event); });
|
|
6137
6199
|
i0.ɵɵtemplate(1, ListInputComponent_ul_4_ng_container_1_Template, 2, 2, "ng-container", 11);
|
|
6138
6200
|
i0.ɵɵtemplate(2, ListInputComponent_ul_4_ng_template_2_Template, 1, 2, "ng-template", null, 12, i0.ɵɵtemplateRefExtractor);
|
|
6139
6201
|
i0.ɵɵelementEnd();
|
|
@@ -6147,9 +6209,9 @@
|
|
|
6147
6209
|
}
|
|
6148
6210
|
function ListInputComponent_ng_template_5_Template(rf, ctx) {
|
|
6149
6211
|
if (rf & 1) {
|
|
6150
|
-
i0.ɵɵelementStart(0, "div",
|
|
6151
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
6152
|
-
i0.ɵɵelementStart(2, "span",
|
|
6212
|
+
i0.ɵɵelementStart(0, "div", 44);
|
|
6213
|
+
i0.ɵɵelement(1, "ng-miam-icon", 45);
|
|
6214
|
+
i0.ɵɵelementStart(2, "span", 46);
|
|
6153
6215
|
i0.ɵɵtext(3);
|
|
6154
6216
|
i0.ɵɵelementEnd();
|
|
6155
6217
|
i0.ɵɵelementEnd();
|
|
@@ -6164,7 +6226,7 @@
|
|
|
6164
6226
|
}
|
|
6165
6227
|
function ListInputComponent_div_13_Template(rf, ctx) {
|
|
6166
6228
|
if (rf & 1) {
|
|
6167
|
-
i0.ɵɵelementStart(0, "div",
|
|
6229
|
+
i0.ɵɵelementStart(0, "div", 47);
|
|
6168
6230
|
i0.ɵɵtext(1);
|
|
6169
6231
|
i0.ɵɵelementEnd();
|
|
6170
6232
|
}
|
|
@@ -6181,6 +6243,7 @@
|
|
|
6181
6243
|
this.cdr = cdr;
|
|
6182
6244
|
this.placeholder = '';
|
|
6183
6245
|
this.list = new i9.FormArray([]);
|
|
6246
|
+
this.ingredientsPictures = { visible: false, editable: false };
|
|
6184
6247
|
this.icon = exports.Icon;
|
|
6185
6248
|
this.fillListInput = new i9.FormControl('');
|
|
6186
6249
|
this.deleteId = new i0.EventEmitter();
|
|
@@ -6276,10 +6339,24 @@
|
|
|
6276
6339
|
ListInputComponent.prototype.trackByIndex = function (index, el) {
|
|
6277
6340
|
return el;
|
|
6278
6341
|
};
|
|
6342
|
+
// TODO: size check
|
|
6343
|
+
ListInputComponent.prototype.uploadIngredientPicture = function (files, ingForm) {
|
|
6344
|
+
var _this = this;
|
|
6345
|
+
if (!files[0] || !ingForm) {
|
|
6346
|
+
return;
|
|
6347
|
+
}
|
|
6348
|
+
var reader = new FileReader();
|
|
6349
|
+
reader.readAsDataURL(files[0]);
|
|
6350
|
+
reader.onload = function () {
|
|
6351
|
+
ingForm.patchValue(reader.result);
|
|
6352
|
+
_this.list.markAsDirty();
|
|
6353
|
+
_this.cdr.detectChanges();
|
|
6354
|
+
};
|
|
6355
|
+
};
|
|
6279
6356
|
return ListInputComponent;
|
|
6280
6357
|
}());
|
|
6281
6358
|
ListInputComponent.ɵfac = function ListInputComponent_Factory(t) { return new (t || ListInputComponent)(i0.ɵɵdirectiveInject(IngredientsService), i0.ɵɵdirectiveInject(i9.FormBuilder), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
6282
|
-
ListInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ListInputComponent, selectors: [["ng-miam-list-input"]], inputs: { hint: "hint", placeholder: "placeholder", label: "label", instructions: "instructions", ingredientMode: "ingredientMode", list: "list" }, outputs: { deleteId: "deleteId", orderHasChanged: "orderHasChanged" }, decls: 14, vars: 7, consts: [[1, "miam-list-input"], [1, "miam-list-input__list", 3, "formGroup"], [1, "miam-list-input__list__label"], ["class", "miam-list-input__container m-default-card", "cdkDropList", "", 3, "cdkDropListDropped", 4, "ngIf", "ngIfElse"], ["hintPlaceholder", ""], [1, "miam-list-input__actions"], ["matInput", "", "cdkTextareaAutosize", "", "cdkAutosizeMinRows", "4", "cdkAutosizeMaxRows", "4", 1, "m-input", 3, "formControl", "keydown.enter"], [1, "m-button-primary", 3, "mousedown", "mouseup"], [1, "miam-list-input__instructions__direction"], ["class", "miam-list-input__actions__instructions", 4, "ngIf"], ["cdkDropList", "", 1, "miam-list-input__container", "m-default-card", 3, "cdkDropListDropped"], [4, "ngIf", "ngIfElse"], ["ingredientRow", ""], ["cdkDrag", "", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["cdkDrag", ""], [3, "formGroup"], [1, "miam-list-input__container__row", "m-default-card"], ["primaryColor", "var(--m-color-grey05)", "cdkDragHandle", "", 1, "miam-list-input__row__grip", 3, "iconName"], ["cdkTextareaAutosize", "true", "cdkAutosizeMinRows", "1", "cdkAutosizeMaxRows", "50", "formControlName", "description", 1, "m-input", 3, "blur"], ["autosize", "cdkTextareaAutosize"], ["primaryColor", "var(--m-color-grey05)", 1, "miam-list-input__row__trash", 3, "iconName", "click"], ["class", "miam-list-input__row__placeholder", 4, "cdkDragPlaceholder"], ["class", "miam-list-input__row__preview m-default-card", 4, "cdkDragPreview"], [1, "miam-list-input__row__placeholder"], [1, "miam-list-input__row__preview", "m-default-card"], ["primaryColor", "var(--m-color-grey05)", "cdkDragHandle", "", 3, "iconName"], [1, "miam-list-input__preview__text", "m-body-typo"], [1, "miam-list-input__container__row", "m-default-card", 3, "formGroupName"], [1, "miam-list-input__row__left"], [1, "miam-list-input__row__right"], [1, "m-input", 3, "ngClass", "ngModel", "formControl"], ["maxSize", "4", "autoWidthInput", "", 1, "m-input", 3, "ngModel", "formControl", "ngModelChange"], ["maxSize", "8", "autoWidthInput", "", 1, "m-input", 3, "ngClass", "formControl"], ["primaryColor", "var(--m-color-grey-text-dark)", "cdkDragHandle", "", 3, "iconName"], [1, "m-body-typo"], [1, "miam-list-input__placeholder", "miam-list-input__container", "m-default-card"], ["primaryColor", "var(--m-color-grey-text-dark)", 3, "width", "height", "iconName"], [1, "miam-list-input__placeholder__hint", "m-body-typo"], [1, "miam-list-input__actions__instructions"]], template: function ListInputComponent_Template(rf, ctx) {
|
|
6359
|
+
ListInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ListInputComponent, selectors: [["ng-miam-list-input"]], inputs: { hint: "hint", placeholder: "placeholder", label: "label", instructions: "instructions", ingredientMode: "ingredientMode", list: "list", ingredientsPictures: "ingredientsPictures" }, outputs: { deleteId: "deleteId", orderHasChanged: "orderHasChanged" }, decls: 14, vars: 7, consts: [[1, "miam-list-input"], [1, "miam-list-input__list", 3, "formGroup"], [1, "miam-list-input__list__label"], ["class", "miam-list-input__container m-default-card", "cdkDropList", "", 3, "cdkDropListDropped", 4, "ngIf", "ngIfElse"], ["hintPlaceholder", ""], [1, "miam-list-input__actions"], ["matInput", "", "cdkTextareaAutosize", "", "cdkAutosizeMinRows", "4", "cdkAutosizeMaxRows", "4", 1, "m-input", 3, "formControl", "keydown.enter"], [1, "m-button-primary", 3, "mousedown", "mouseup"], [1, "miam-list-input__instructions__direction"], ["class", "miam-list-input__actions__instructions", 4, "ngIf"], ["cdkDropList", "", 1, "miam-list-input__container", "m-default-card", 3, "cdkDropListDropped"], [4, "ngIf", "ngIfElse"], ["ingredientRow", ""], ["cdkDrag", "", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["cdkDrag", ""], [3, "formGroup"], [1, "miam-list-input__container__row", "m-default-card"], ["primaryColor", "var(--m-color-grey05)", "cdkDragHandle", "", 1, "miam-list-input__row__grip", 3, "iconName"], ["cdkTextareaAutosize", "true", "cdkAutosizeMinRows", "1", "cdkAutosizeMaxRows", "50", "formControlName", "description", 1, "m-input", 3, "blur"], ["autosize", "cdkTextareaAutosize"], ["primaryColor", "var(--m-color-grey05)", 1, "miam-list-input__row__trash", 3, "iconName", "click"], ["class", "miam-list-input__row__placeholder", 4, "cdkDragPlaceholder"], ["class", "miam-list-input__row__preview m-default-card", 4, "cdkDragPreview"], [1, "miam-list-input__row__placeholder"], [1, "miam-list-input__row__preview", "m-default-card"], ["primaryColor", "var(--m-color-grey05)", "cdkDragHandle", "", 3, "iconName"], [1, "miam-list-input__preview__text", "m-body-typo"], [1, "miam-list-input__container__row", "m-default-card", 3, "formGroupName"], [1, "miam-list-input__row__left"], [1, "miam-list-input__row__right"], [1, "m-input", 3, "ngClass", "ngModel", "formControl"], ["maxSize", "4", "autoWidthInput", "", 1, "m-input", 3, "ngModel", "formControl", "ngModelChange"], ["maxSize", "8", "autoWidthInput", "", 1, "m-input", 3, "ngClass", "formControl"], [1, "miam-list-input__row__controls"], [3, "for", 4, "ngIf"], ["type", "file", "accept", "image/jpeg, image/png, image/webp", 3, "id", "change", 4, "ngIf"], [3, "for"], ["class", "miam-list-input__row__picture", 3, "ngClass", "src", 4, "ngIf"], ["class", "miam-list-input__row__trash", "primaryColor", "var(--m-color-grey05)", 3, "iconName", 4, "ngIf"], [1, "miam-list-input__row__picture", 3, "ngClass", "src"], ["primaryColor", "var(--m-color-grey05)", 1, "miam-list-input__row__trash", 3, "iconName"], ["type", "file", "accept", "image/jpeg, image/png, image/webp", 3, "id", "change"], ["primaryColor", "var(--m-color-grey-text-dark)", "cdkDragHandle", "", 3, "iconName"], [1, "m-body-typo"], [1, "miam-list-input__placeholder", "miam-list-input__container", "m-default-card"], ["primaryColor", "var(--m-color-grey-text-dark)", 3, "width", "height", "iconName"], [1, "miam-list-input__placeholder__hint", "m-body-typo"], [1, "miam-list-input__actions__instructions"]], template: function ListInputComponent_Template(rf, ctx) {
|
|
6283
6360
|
if (rf & 1) {
|
|
6284
6361
|
i0.ɵɵelementStart(0, "div", 0);
|
|
6285
6362
|
i0.ɵɵelementStart(1, "div", 1);
|
|
@@ -6318,7 +6395,7 @@
|
|
|
6318
6395
|
i0.ɵɵadvance(5);
|
|
6319
6396
|
i0.ɵɵproperty("ngIf", ctx.instructions);
|
|
6320
6397
|
}
|
|
6321
|
-
}, directives: [i9.NgControlStatusGroup, i9.FormGroupDirective, i8.NgIf, i4.CdkTextareaAutosize, i9.DefaultValueAccessor, i9.NgControlStatus, i9.FormControlDirective, i5.CdkDropList, i8.NgForOf, i5.CdkDrag, IconComponent, i5.CdkDragHandle, i9.FormControlName, i5.CdkDragPlaceholder, i5.CdkDragPreview, i9.FormGroupName, i8.NgClass, AutowidthInputDirective], pipes: [i8.AsyncPipe, CapitalizeFirstLetterPipe], styles: [".miam-list-input[_ngcontent-%COMP%]{padding:8px}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%]{margin-top:50px;position:relative}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] .miam-list-input__list__label[_ngcontent-%COMP%]{background-color:var(--m-color-secondary-light);border-radius:8px 8px 0 0;color:var(--m-color-secondary);font-weight:700;left:0;padding:8px 24px;position:absolute;top:-33px;width:200px;z-index:0}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] .miam-list-input__container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:400px;margin-bottom:32px;overflow-x:hidden;overflow-y:auto;position:inherit;width:560px;z-index:1}@media (max-width:1023px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] .miam-list-input__container[_ngcontent-%COMP%]{height:55vh;margin-bottom:16px;width:unset}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] .miam-list-input__container[_ngcontent-%COMP%]::-webkit-scrollbar-button{height:20px}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] .miam-list-input__container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] .miam-list-input__container[_ngcontent-%COMP%]::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] .miam-list-input__container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;row-gap:8px}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-column-gap:8px;align-items:center;column-gap:8px;display:flex;list-style:none}@media (max-width:1023px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-column-gap:0;column-gap:0}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-touch-callout:none;-webkit-user-select:none;align-items:center;display:flex;flex:1;flex-direction:row;gap:8px;justify-content:space-between;user-select:none}@media (max-width:1023px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%]{margin-right:4px}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{max-width:unset;padding:inherit}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .m-input[_ngcontent-%COMP%]{margin:unset;max-width:unset;min-width:unset}@media (max-width:359px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .m-input[_ngcontent-%COMP%]{max-width:60vw}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__left[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:row}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__left[_ngcontent-%COMP%] .miam-list-input__row__grip[_ngcontent-%COMP%]{cursor:move}@media (max-width:1023px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__left[_ngcontent-%COMP%] .miam-list-input__row__grip[_ngcontent-%COMP%]{margin-left:4px}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__left[_ngcontent-%COMP%] .m-input[_ngcontent-%COMP%]{margin-left:8px;margin-right:8px;width:200px}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__right[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:row}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__right[_ngcontent-%COMP%] .m-input[_ngcontent-%COMP%]{margin-right:8px;text-align:right}@media (max-width:1023px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__right[_ngcontent-%COMP%]{flex-wrap:wrap}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__right[_ngcontent-%COMP%] .m-input[_ngcontent-%COMP%]{flex:1;margin-bottom:8px;margin-right:4px}}@media (max-width:359px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__right[_ngcontent-%COMP%]{max-width:60vw}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__right[_ngcontent-%COMP%] .m-input[_ngcontent-%COMP%]{max-width:58vw}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__right[_ngcontent-%COMP%] .alert-success[_ngcontent-%COMP%]{background:var(--m-color-white);border:1px solid var(--m-color-success);border-radius:8px;box-shadow:0 0 4px var(--m-color-success)}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__right[_ngcontent-%COMP%] .alert-danger[_ngcontent-%COMP%]{background:var(--m-color-white);border:1px solid var(--m-color-danger);border-radius:8px;box-shadow:0 0 4px var(--m-color-danger)}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__row__trash[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent;cursor:pointer}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{border-radius:var(--m-border-radius);flex:1;margin:0;max-width:none;outline:none;padding:5px;resize:none}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] textarea.warnning[_ngcontent-%COMP%]{background-color:var(--m-color-secondary-light);color:var(--m-color-secondary)}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] textarea.error[_ngcontent-%COMP%]{background-color:var(--m-color-danger);color:var(--m-color-danger-text)}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] textarea[cdktextareaautosize][_ngcontent-%COMP%]{overflow:hidden}.miam-list-input[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%]{border-radius:var(--m-border-radius);flex:1;font-size:12px;font-weight:600;padding-bottom:10px}.miam-list-input[_ngcontent-%COMP%] .hint.warnning[_ngcontent-%COMP%]{color:var(--m-color-secondary)}.miam-list-input[_ngcontent-%COMP%] .hint.error[_ngcontent-%COMP%]{color:var(--m-color-danger)}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__placeholder[_ngcontent-%COMP%]{align-items:center;justify-content:center}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__placeholder[_ngcontent-%COMP%] .miam-list-input__placeholder__hint[_ngcontent-%COMP%]{color:var(--m-color-secondary);margin-top:40px;opacity:.5;text-align:center}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%]{-moz-column-gap:32px;column-gap:32px;display:flex;justify-content:space-between}@media (max-width:1023px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%]{flex-direction:column}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{flex:1;margin-top:0;outline:none;resize:none}@media (max-width:1023px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:90vw}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%] .miam-list-input__actions__instructions[_ngcontent-%COMP%]{background-color:var(--m-color-info);border-radius:8px;color:var(--m-color-info-text);max-width:calc(98vw - 776px);padding:8px;position:absolute;top:315px;white-space:pre-line;width:400px}@media (max-width:1023px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%] .miam-list-input__actions__instructions[_ngcontent-%COMP%]{margin-top:16px;max-width:unset;position:unset;width:unset}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%] .miam-list-input__instructions__direction[_ngcontent-%COMP%]{margin-left:4px}@media (max-width:1023px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%] .miam-list-input__instructions__direction[_ngcontent-%COMP%]{display:none}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}.miam-list-input__row__preview[_ngcontent-%COMP%]{align-items:center;display:flex;width:530px}@media (max-width:1023px){.miam-list-input__row__preview[_ngcontent-%COMP%]{flex-wrap:wrap;width:80vw}}.miam-list-input__row__preview[_ngcontent-%COMP%] .miam-list-input__preview__text[_ngcontent-%COMP%]{padding:5px}.miam-list-input__row__preview[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-of-type{flex:1;flex-shrink:1;margin-left:8px}.miam-list-input__row__preview[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-of-type(2n){margin-right:8px}.miam-list-input__row__placeholder[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-touch-callout:none;-webkit-user-select:none;background:var(--m-color-grey07);border-radius:8px;margin-right:24px;min-height:60px;user-select:none}.cdk-drag-animating[_ngcontent-%COMP%], .miam-list-input__row__placeholder[_ngcontent-%COMP%], ul.cdk-drop-list-dragging[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"] });
|
|
6398
|
+
}, directives: [i9.NgControlStatusGroup, i9.FormGroupDirective, i8.NgIf, i4.CdkTextareaAutosize, i9.DefaultValueAccessor, i9.NgControlStatus, i9.FormControlDirective, i5.CdkDropList, i8.NgForOf, i5.CdkDrag, IconComponent, i5.CdkDragHandle, i9.FormControlName, i5.CdkDragPlaceholder, i5.CdkDragPreview, i9.FormGroupName, i8.NgClass, AutowidthInputDirective], pipes: [i8.AsyncPipe, CapitalizeFirstLetterPipe], styles: [".miam-list-input[_ngcontent-%COMP%]{padding:8px}@media (min-width:1024px){.miam-list-input[_ngcontent-%COMP%]{width:calc(100% - 16px)}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%]{margin-top:50px;position:relative}@media (min-width:1024px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%]{width:55%}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] .miam-list-input__list__label[_ngcontent-%COMP%]{background-color:var(--m-color-secondary-light);border-radius:8px 8px 0 0;color:var(--m-color-secondary);font-weight:700;left:0;padding:8px 24px;position:absolute;top:-33px;width:200px;z-index:0}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] .miam-list-input__container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:400px;margin-bottom:32px;overflow-x:hidden;overflow-y:auto;position:inherit;z-index:1}@media (max-width:1023px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] .miam-list-input__container[_ngcontent-%COMP%]{height:55vh;margin-bottom:16px;width:unset}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] .miam-list-input__container[_ngcontent-%COMP%]::-webkit-scrollbar-button{height:20px}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] .miam-list-input__container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] .miam-list-input__container[_ngcontent-%COMP%]::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] .miam-list-input__container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;row-gap:8px}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-column-gap:16px;align-items:center;column-gap:16px;display:flex;list-style:none}@media (max-width:1023px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-column-gap:0;column-gap:0}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-touch-callout:none;-webkit-user-select:none;align-items:center;display:flex;flex:1;flex-direction:row;gap:16px;user-select:none}@media (max-width:1023px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%]{margin-right:4px}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{max-width:unset;padding:inherit}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .m-input[_ngcontent-%COMP%]{margin:unset;max-width:unset;min-width:unset}@media (max-width:359px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .m-input[_ngcontent-%COMP%]{max-width:60vw}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__left[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:row}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__left[_ngcontent-%COMP%] .miam-list-input__row__grip[_ngcontent-%COMP%]{cursor:move}@media (max-width:1023px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__left[_ngcontent-%COMP%] .miam-list-input__row__grip[_ngcontent-%COMP%]{margin-left:4px}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__left[_ngcontent-%COMP%] .m-input[_ngcontent-%COMP%]{margin-left:8px;margin-right:8px;width:200px}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__right[_ngcontent-%COMP%]{align-items:center;display:flex;flex:1;flex-direction:row}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__right[_ngcontent-%COMP%] .m-input[_ngcontent-%COMP%]{margin-right:8px;width:80px}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__right[_ngcontent-%COMP%] .m-input[_ngcontent-%COMP%]:first-child{flex:1}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__right[_ngcontent-%COMP%] .m-input[_ngcontent-%COMP%]:last-child{margin-right:0;text-align:right}@media (max-width:1023px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__right[_ngcontent-%COMP%]{flex-wrap:wrap}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__right[_ngcontent-%COMP%] .m-input[_ngcontent-%COMP%]{flex:1;margin-bottom:8px;margin-right:4px}}@media (max-width:359px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__right[_ngcontent-%COMP%]{max-width:60vw}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__right[_ngcontent-%COMP%] .m-input[_ngcontent-%COMP%]{max-width:58vw}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__right[_ngcontent-%COMP%] .alert-success[_ngcontent-%COMP%]{background:var(--m-color-white);border:1px solid var(--m-color-success);border-radius:8px;box-shadow:0 0 4px var(--m-color-success)}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__container__row[_ngcontent-%COMP%] .miam-list-input__row__right[_ngcontent-%COMP%] .alert-danger[_ngcontent-%COMP%]{background:var(--m-color-white);border:1px solid var(--m-color-danger);border-radius:8px;box-shadow:0 0 4px var(--m-color-danger)}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__row__controls[_ngcontent-%COMP%]{align-items:center;display:flex;gap:8px;justify-content:space-between}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__row__controls[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;justify-content:center;width:50px}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__row__controls[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .miam-list-input__row__picture[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent;width:50px}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__row__controls[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .miam-list-input__row__picture.clickable[_ngcontent-%COMP%]{cursor:pointer}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__row__controls[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .miam-list-input__row__controls[_ngcontent-%COMP%] .miam-list-input__row__trash[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent;cursor:pointer}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{border-radius:var(--m-border-radius);flex:1;margin:0;max-width:none;outline:none;padding:5px;resize:none}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] textarea.warnning[_ngcontent-%COMP%]{background-color:var(--m-color-secondary-light);color:var(--m-color-secondary)}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] textarea.error[_ngcontent-%COMP%]{background-color:var(--m-color-danger);color:var(--m-color-danger-text)}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] textarea[cdktextareaautosize][_ngcontent-%COMP%]{overflow:hidden}.miam-list-input[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%]{border-radius:var(--m-border-radius);flex:1;font-size:12px;font-weight:600;padding-bottom:10px}.miam-list-input[_ngcontent-%COMP%] .hint.warnning[_ngcontent-%COMP%]{color:var(--m-color-secondary)}.miam-list-input[_ngcontent-%COMP%] .hint.error[_ngcontent-%COMP%]{color:var(--m-color-danger)}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__placeholder[_ngcontent-%COMP%]{align-items:center;justify-content:center}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__placeholder[_ngcontent-%COMP%] .miam-list-input__placeholder__hint[_ngcontent-%COMP%]{color:var(--m-color-secondary);margin-top:40px;opacity:.5;text-align:center}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%]{-moz-column-gap:32px;column-gap:32px;display:flex;justify-content:space-between}@media (min-width:1024px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%]{width:calc(45% - 32px)}}@media (max-width:1023px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%]{flex-direction:column}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{flex:1;margin-top:0;outline:none;resize:none}@media (max-width:1023px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:90vw}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%] .miam-list-input__actions__instructions[_ngcontent-%COMP%]{background-color:var(--m-color-info);border-radius:8px;color:var(--m-color-info-text);max-width:calc(98vw - 776px);padding:8px;position:absolute;top:315px;white-space:pre-line;width:400px}@media (max-width:1023px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%] .miam-list-input__actions__instructions[_ngcontent-%COMP%]{margin-top:16px;max-width:unset;position:unset;width:unset}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%] .miam-list-input__instructions__direction[_ngcontent-%COMP%]{margin-left:4px}@media (max-width:1023px){.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%] .miam-list-input__instructions__direction[_ngcontent-%COMP%]{display:none}}.miam-list-input[_ngcontent-%COMP%] .miam-list-input__actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}.miam-list-input__row__preview[_ngcontent-%COMP%]{align-items:center;display:flex;width:530px}@media (max-width:1023px){.miam-list-input__row__preview[_ngcontent-%COMP%]{flex-wrap:wrap;width:80vw}}.miam-list-input__row__preview[_ngcontent-%COMP%] .miam-list-input__preview__text[_ngcontent-%COMP%]{padding:5px}.miam-list-input__row__preview[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-of-type{flex:1;flex-shrink:1;margin-left:8px}.miam-list-input__row__preview[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-of-type(2n){margin-right:8px}.miam-list-input__row__placeholder[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-touch-callout:none;-webkit-user-select:none;background:var(--m-color-grey07);border-radius:8px;margin-right:24px;min-height:60px;user-select:none}.cdk-drag-animating[_ngcontent-%COMP%], .miam-list-input__row__placeholder[_ngcontent-%COMP%], ul.cdk-drop-list-dragging[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"] });
|
|
6322
6399
|
/*@__PURE__*/ (function () {
|
|
6323
6400
|
i0.ɵsetClassMetadata(ListInputComponent, [{
|
|
6324
6401
|
type: i0.Component,
|
|
@@ -6339,6 +6416,8 @@
|
|
|
6339
6416
|
type: i0.Input
|
|
6340
6417
|
}], list: [{
|
|
6341
6418
|
type: i0.Input
|
|
6419
|
+
}], ingredientsPictures: [{
|
|
6420
|
+
type: i0.Input
|
|
6342
6421
|
}], deleteId: [{
|
|
6343
6422
|
type: i0.Output
|
|
6344
6423
|
}], orderHasChanged: [{
|
|
@@ -6432,7 +6511,7 @@
|
|
|
6432
6511
|
}] });
|
|
6433
6512
|
})();
|
|
6434
6513
|
|
|
6435
|
-
var _c0$
|
|
6514
|
+
var _c0$2 = ["miamLeftOfSliderTrack"];
|
|
6436
6515
|
var _c1$1 = ["miamSliderColored"];
|
|
6437
6516
|
var _c2 = ["miamSliderHandle"];
|
|
6438
6517
|
function SliderComponent_ng_miam_icon_2_Template(rf, ctx) {
|
|
@@ -6543,7 +6622,7 @@
|
|
|
6543
6622
|
SliderComponent.ɵfac = function SliderComponent_Factory(t) { return new (t || SliderComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
6544
6623
|
SliderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SliderComponent, selectors: [["ng-miam-slider"]], viewQuery: function SliderComponent_Query(rf, ctx) {
|
|
6545
6624
|
if (rf & 1) {
|
|
6546
|
-
i0.ɵɵviewQuery(_c0$
|
|
6625
|
+
i0.ɵɵviewQuery(_c0$2, true);
|
|
6547
6626
|
i0.ɵɵviewQuery(_c1$1, true);
|
|
6548
6627
|
i0.ɵɵviewQuery(_c2, true);
|
|
6549
6628
|
}
|
|
@@ -6908,7 +6987,7 @@
|
|
|
6908
6987
|
}], null, null);
|
|
6909
6988
|
})();
|
|
6910
6989
|
|
|
6911
|
-
var _c0$
|
|
6990
|
+
var _c0$3 = ["counterInput"];
|
|
6912
6991
|
var CounterInputComponent = /** @class */ (function () {
|
|
6913
6992
|
function CounterInputComponent(cdr, mediaMatcher) {
|
|
6914
6993
|
this.cdr = cdr;
|
|
@@ -6982,7 +7061,7 @@
|
|
|
6982
7061
|
CounterInputComponent.ɵfac = function CounterInputComponent_Factory(t) { return new (t || CounterInputComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$2.MediaMatcher)); };
|
|
6983
7062
|
CounterInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CounterInputComponent, selectors: [["ng-miam-counter-input"]], viewQuery: function CounterInputComponent_Query(rf, ctx) {
|
|
6984
7063
|
if (rf & 1) {
|
|
6985
|
-
i0.ɵɵviewQuery(_c0$
|
|
7064
|
+
i0.ɵɵviewQuery(_c0$3, true);
|
|
6986
7065
|
}
|
|
6987
7066
|
if (rf & 2) {
|
|
6988
7067
|
var _t;
|
|
@@ -7130,7 +7209,7 @@
|
|
|
7130
7209
|
i0.ɵɵprojection(0);
|
|
7131
7210
|
}
|
|
7132
7211
|
}
|
|
7133
|
-
var _c0$
|
|
7212
|
+
var _c0$4 = ["*"];
|
|
7134
7213
|
var TabLabelComponent = /** @class */ (function () {
|
|
7135
7214
|
function TabLabelComponent() {
|
|
7136
7215
|
}
|
|
@@ -7145,7 +7224,7 @@
|
|
|
7145
7224
|
var _t;
|
|
7146
7225
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.labelContent = _t.first);
|
|
7147
7226
|
}
|
|
7148
|
-
}, ngContentSelectors: _c0$
|
|
7227
|
+
}, ngContentSelectors: _c0$4, decls: 1, vars: 0, template: function TabLabelComponent_Template(rf, ctx) {
|
|
7149
7228
|
if (rf & 1) {
|
|
7150
7229
|
i0.ɵɵprojectionDef();
|
|
7151
7230
|
i0.ɵɵtemplate(0, TabLabelComponent_ng_template_0_Template, 1, 0, "ng-template");
|
|
@@ -7169,7 +7248,7 @@
|
|
|
7169
7248
|
i0.ɵɵprojection(0);
|
|
7170
7249
|
}
|
|
7171
7250
|
}
|
|
7172
|
-
var _c0$
|
|
7251
|
+
var _c0$5 = ["*"];
|
|
7173
7252
|
var TabBodyComponent = /** @class */ (function () {
|
|
7174
7253
|
function TabBodyComponent() {
|
|
7175
7254
|
}
|
|
@@ -7184,7 +7263,7 @@
|
|
|
7184
7263
|
var _t;
|
|
7185
7264
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.bodyContent = _t.first);
|
|
7186
7265
|
}
|
|
7187
|
-
}, ngContentSelectors: _c0$
|
|
7266
|
+
}, ngContentSelectors: _c0$5, decls: 1, vars: 0, template: function TabBodyComponent_Template(rf, ctx) {
|
|
7188
7267
|
if (rf & 1) {
|
|
7189
7268
|
i0.ɵɵprojectionDef();
|
|
7190
7269
|
i0.ɵɵtemplate(0, TabBodyComponent_ng_template_0_Template, 1, 0, "ng-template");
|
|
@@ -7203,7 +7282,7 @@
|
|
|
7203
7282
|
}] });
|
|
7204
7283
|
})();
|
|
7205
7284
|
|
|
7206
|
-
var _c0$
|
|
7285
|
+
var _c0$6 = ["*"];
|
|
7207
7286
|
var TabItemComponent = /** @class */ (function () {
|
|
7208
7287
|
function TabItemComponent() {
|
|
7209
7288
|
}
|
|
@@ -7220,7 +7299,7 @@
|
|
|
7220
7299
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.bodyComponent = _t.first);
|
|
7221
7300
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.labelComponent = _t.first);
|
|
7222
7301
|
}
|
|
7223
|
-
}, inputs: { label: "label" }, ngContentSelectors: _c0$
|
|
7302
|
+
}, inputs: { label: "label" }, ngContentSelectors: _c0$6, decls: 1, vars: 0, template: function TabItemComponent_Template(rf, ctx) {
|
|
7224
7303
|
if (rf & 1) {
|
|
7225
7304
|
i0.ɵɵprojectionDef();
|
|
7226
7305
|
i0.ɵɵprojection(0);
|
|
@@ -7382,7 +7461,7 @@
|
|
|
7382
7461
|
}] });
|
|
7383
7462
|
})();
|
|
7384
7463
|
|
|
7385
|
-
var _c0$
|
|
7464
|
+
var _c0$7 = function (a0) { return { "colapse": a0 }; };
|
|
7386
7465
|
var DeleteConfirmButtonComponent = /** @class */ (function () {
|
|
7387
7466
|
function DeleteConfirmButtonComponent(cdr) {
|
|
7388
7467
|
this.cdr = cdr;
|
|
@@ -7423,9 +7502,9 @@
|
|
|
7423
7502
|
i0.ɵɵelementEnd();
|
|
7424
7503
|
}
|
|
7425
7504
|
if (rf & 2) {
|
|
7426
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
7505
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$7, !ctx.isInComfirmStep));
|
|
7427
7506
|
i0.ɵɵadvance(1);
|
|
7428
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
7507
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$7, !ctx.isInComfirmStep));
|
|
7429
7508
|
i0.ɵɵadvance(2);
|
|
7430
7509
|
i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx.isInComfirmStep ? ctx.icon.Clear : ctx.icon.Trash);
|
|
7431
7510
|
}
|
|
@@ -7815,7 +7894,7 @@
|
|
|
7815
7894
|
i0.ɵɵelementEnd();
|
|
7816
7895
|
}
|
|
7817
7896
|
}
|
|
7818
|
-
var _c0$
|
|
7897
|
+
var _c0$8 = function (a0) { return { "filter-collapsed": a0 }; };
|
|
7819
7898
|
var _c1$2 = function (a0, a1) { return { "filter-collapsed": a0, "mobile-fixed": a1 }; };
|
|
7820
7899
|
var RecipeFiltersComponent = /** @class */ (function () {
|
|
7821
7900
|
function RecipeFiltersComponent(cdr, mediaMatcher, usersService) {
|
|
@@ -7981,15 +8060,15 @@
|
|
|
7981
8060
|
i0.ɵɵelementEnd();
|
|
7982
8061
|
}
|
|
7983
8062
|
if (rf & 2) {
|
|
7984
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c0$
|
|
8063
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c0$8, ctx.isFilterCollapsed));
|
|
7985
8064
|
i0.ɵɵadvance(1);
|
|
7986
8065
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(18, _c1$2, ctx.isFilterCollapsed, ctx.mobileFixed));
|
|
7987
8066
|
i0.ɵɵadvance(1);
|
|
7988
8067
|
i0.ɵɵproperty("ngIf", ctx.isFilterCollapsed);
|
|
7989
8068
|
i0.ɵɵadvance(1);
|
|
7990
|
-
i0.ɵɵproperty("iconName", ctx.icon.ChevronDown)("height", 32)("width", 32)("ngClass", i0.ɵɵpureFunction1(21, _c0$
|
|
8069
|
+
i0.ɵɵproperty("iconName", ctx.icon.ChevronDown)("height", 32)("width", 32)("ngClass", i0.ɵɵpureFunction1(21, _c0$8, ctx.isFilterCollapsed));
|
|
7991
8070
|
i0.ɵɵadvance(1);
|
|
7992
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c0$
|
|
8071
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c0$8, ctx.isFilterCollapsed));
|
|
7993
8072
|
i0.ɵɵadvance(1);
|
|
7994
8073
|
i0.ɵɵproperty("ngIf", ctx.isMobile);
|
|
7995
8074
|
i0.ɵɵadvance(4);
|
|
@@ -8165,7 +8244,7 @@
|
|
|
8165
8244
|
i0.ɵɵproperty("iconName", ctx_r0.icon);
|
|
8166
8245
|
}
|
|
8167
8246
|
}
|
|
8168
|
-
var _c0$
|
|
8247
|
+
var _c0$9 = function (a0) { return { "miam-text-input__label__top": a0 }; };
|
|
8169
8248
|
var TextInputComponent = /** @class */ (function () {
|
|
8170
8249
|
function TextInputComponent() {
|
|
8171
8250
|
this.uniqueId = uuid.v4();
|
|
@@ -8187,7 +8266,7 @@
|
|
|
8187
8266
|
i0.ɵɵadvance(1);
|
|
8188
8267
|
i0.ɵɵproperty("id", ctx.uniqueId)("ngModel", ctx.formControl == null ? null : ctx.formControl.value)("disabled", ctx.disable);
|
|
8189
8268
|
i0.ɵɵadvance(1);
|
|
8190
|
-
i0.ɵɵproperty("for", ctx.uniqueId)("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
8269
|
+
i0.ɵɵproperty("for", ctx.uniqueId)("ngClass", i0.ɵɵpureFunction1(7, _c0$9, ctx.formControl == null ? null : ctx.formControl.value));
|
|
8191
8270
|
i0.ɵɵadvance(1);
|
|
8192
8271
|
i0.ɵɵtextInterpolate(ctx.placeholder);
|
|
8193
8272
|
i0.ɵɵadvance(1);
|
|
@@ -8215,7 +8294,7 @@
|
|
|
8215
8294
|
}] });
|
|
8216
8295
|
})();
|
|
8217
8296
|
|
|
8218
|
-
var _c0$
|
|
8297
|
+
var _c0$a = function (a0) { return { "font-weight": a0 }; };
|
|
8219
8298
|
var RecipeTypeChooserComponent = /** @class */ (function () {
|
|
8220
8299
|
function RecipeTypeChooserComponent(cdr, recipeTypeService, mediaMatcher) {
|
|
8221
8300
|
this.cdr = cdr;
|
|
@@ -8284,15 +8363,15 @@
|
|
|
8284
8363
|
i0.ɵɵadvance(2);
|
|
8285
8364
|
i0.ɵɵproperty("height", ctx.isMobile ? 128 : 64)("width", ctx.isMobile ? 128 : 64)("iconName", ctx.icon.Starter)("primaryColor", ctx.choosedType === "entr\u00E9e" ? "white" : "var(--m-color-primary)")("secondaryColor", ctx.choosedType === "entr\u00E9e" ? "var(--m-color-primary)" : "transparent");
|
|
8286
8365
|
i0.ɵɵadvance(1);
|
|
8287
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(18, _c0$
|
|
8366
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(18, _c0$a, ctx.choosedType === "entr\u00E9e" ? "bold" : "normal"));
|
|
8288
8367
|
i0.ɵɵadvance(3);
|
|
8289
8368
|
i0.ɵɵproperty("height", ctx.isMobile ? 128 : 64)("width", ctx.isMobile ? 128 : 64)("primaryColor", ctx.choosedType === "plat principal" ? "white" : "var(--m-color-primary)")("secondaryColor", ctx.choosedType === "plat principal" ? "var(--m-color-primary)" : "transparent")("iconName", ctx.icon.MainDish);
|
|
8290
8369
|
i0.ɵɵadvance(1);
|
|
8291
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(20, _c0$
|
|
8370
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(20, _c0$a, ctx.choosedType === "plat principal" ? "bold" : "normal"));
|
|
8292
8371
|
i0.ɵɵadvance(3);
|
|
8293
8372
|
i0.ɵɵproperty("height", ctx.isMobile ? 128 : 64)("width", ctx.isMobile ? 128 : 64)("iconName", ctx.icon.Dessert)("primaryColor", ctx.choosedType === "dessert" ? "white" : "var(--m-color-primary)")("secondaryColor", ctx.choosedType === "dessert" ? "var(--m-color-primary)" : "transparent");
|
|
8294
8373
|
i0.ɵɵadvance(1);
|
|
8295
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(22, _c0$
|
|
8374
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(22, _c0$a, ctx.choosedType === "dessert" ? "bold" : "normal"));
|
|
8296
8375
|
}
|
|
8297
8376
|
}, directives: [IconComponent, i8.NgStyle], styles: [".recipe-type-chooser{align-items:center;display:flex;gap:128px;justify-content:center}@media (max-width:1023px){.recipe-type-chooser{gap:0;justify-content:space-evenly;width:90vw}}.recipe-type-chooser .recipe-type-chooser__item{-webkit-tap-highlight-color:transparent;align-items:center;color:var(--m-color-primary);cursor:pointer;display:flex;flex-direction:column;font-size:24px;gap:16px;justify-content:center;line-height:32px;text-align:center}@media (max-width:1023px){.recipe-type-chooser .recipe-type-chooser__item{font-size:16px}}.recipe-type-chooser .recipe-type-chooser__item span:before{content:attr(title);display:block;font-size:24px;font-weight:700;height:0;overflow:hidden;visibility:hidden}@media (max-width:1023px){.recipe-type-chooser .recipe-type-chooser__item span:before{font-size:16px}}"], encapsulation: 2, changeDetection: 0 });
|
|
8298
8377
|
/*@__PURE__*/ (function () {
|
|
@@ -8611,7 +8690,7 @@
|
|
|
8611
8690
|
i0.ɵɵelement(0, "ng-miam-loader");
|
|
8612
8691
|
}
|
|
8613
8692
|
}
|
|
8614
|
-
var _c0$
|
|
8693
|
+
var _c0$b = function (a0) { return { loading: a0 }; };
|
|
8615
8694
|
function BasketPreviewDisabledComponent_div_9_div_1_button_4_Template(rf, ctx) {
|
|
8616
8695
|
if (rf & 1) {
|
|
8617
8696
|
var _r8_1 = i0.ɵɵgetCurrentView();
|
|
@@ -8624,7 +8703,7 @@
|
|
|
8624
8703
|
if (rf & 2) {
|
|
8625
8704
|
var entry_r2 = i0.ɵɵnextContext().$implicit;
|
|
8626
8705
|
var ctx_r3 = i0.ɵɵnextContext(2);
|
|
8627
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$
|
|
8706
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$b, ctx_r3.loading[entry_r2.id]));
|
|
8628
8707
|
i0.ɵɵadvance(1);
|
|
8629
8708
|
i0.ɵɵproperty("ngIf", !ctx_r3.loading[entry_r2.id]);
|
|
8630
8709
|
i0.ɵɵadvance(1);
|
|
@@ -8837,7 +8916,7 @@
|
|
|
8837
8916
|
i0.ɵɵelementEnd();
|
|
8838
8917
|
}
|
|
8839
8918
|
}
|
|
8840
|
-
var _c0$
|
|
8919
|
+
var _c0$c = function (a0) { return { "disable": a0 }; };
|
|
8841
8920
|
function BasketPreviewLineComponent_div_15_Template(rf, ctx) {
|
|
8842
8921
|
if (rf & 1) {
|
|
8843
8922
|
var _r20_1 = i0.ɵɵgetCurrentView();
|
|
@@ -8851,7 +8930,7 @@
|
|
|
8851
8930
|
if (rf & 2) {
|
|
8852
8931
|
var ctx_r4 = i0.ɵɵnextContext();
|
|
8853
8932
|
i0.ɵɵadvance(1);
|
|
8854
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c0$
|
|
8933
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c0$c, ctx_r4.disableItemSelector));
|
|
8855
8934
|
}
|
|
8856
8935
|
}
|
|
8857
8936
|
function BasketPreviewLineComponent_div_16_Template(rf, ctx) {
|
|
@@ -9500,7 +9579,7 @@
|
|
|
9500
9579
|
i0.ɵɵproperty("iconName", ctx_r10.icon.Trash);
|
|
9501
9580
|
}
|
|
9502
9581
|
}
|
|
9503
|
-
var _c0$
|
|
9582
|
+
var _c0$d = function (a0) { return { "miam-basket-preview-block__chevron__down": a0 }; };
|
|
9504
9583
|
function BasketPreviewBlockComponent_div_0_ng_container_2_h3_1_Template(rf, ctx) {
|
|
9505
9584
|
if (rf & 1) {
|
|
9506
9585
|
var _r14_1 = i0.ɵɵgetCurrentView();
|
|
@@ -9519,7 +9598,7 @@
|
|
|
9519
9598
|
i0.ɵɵadvance(2);
|
|
9520
9599
|
i0.ɵɵproperty("ngIf", ctx_r7.showLines);
|
|
9521
9600
|
i0.ɵɵadvance(1);
|
|
9522
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$
|
|
9601
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$d, !ctx_r7.showLines));
|
|
9523
9602
|
i0.ɵɵadvance(1);
|
|
9524
9603
|
i0.ɵɵproperty("iconName", ctx_r7.icon.ChevronDown);
|
|
9525
9604
|
}
|
|
@@ -10314,7 +10393,7 @@
|
|
|
10314
10393
|
i0.ɵɵelementContainer(0);
|
|
10315
10394
|
}
|
|
10316
10395
|
}
|
|
10317
|
-
var _c0$
|
|
10396
|
+
var _c0$e = function (a0, a1, a2) { return { "easy": a0, "medium": a1, "hard": a2 }; };
|
|
10318
10397
|
function RecipeCardComponent_div_0_div_14_Template(rf, ctx) {
|
|
10319
10398
|
if (rf & 1) {
|
|
10320
10399
|
i0.ɵɵelementStart(0, "div", 49);
|
|
@@ -10331,7 +10410,7 @@
|
|
|
10331
10410
|
}
|
|
10332
10411
|
if (rf & 2) {
|
|
10333
10412
|
var ctx_r11 = i0.ɵɵnextContext(2);
|
|
10334
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(6, _c0$
|
|
10413
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(6, _c0$e, (ctx_r11.recipe == null ? null : ctx_r11.recipe.difficultyLabel) === "facile", (ctx_r11.recipe == null ? null : ctx_r11.recipe.difficultyLabel) === "moyen", (ctx_r11.recipe == null ? null : ctx_r11.recipe.difficultyLabel) === "difficile"));
|
|
10335
10414
|
i0.ɵɵadvance(1);
|
|
10336
10415
|
i0.ɵɵproperty("ngSwitch", ctx_r11.recipe == null ? null : ctx_r11.recipe.difficultyLabel);
|
|
10337
10416
|
i0.ɵɵadvance(1);
|
|
@@ -10688,7 +10767,7 @@
|
|
|
10688
10767
|
}] });
|
|
10689
10768
|
})();
|
|
10690
10769
|
|
|
10691
|
-
var _c0$
|
|
10770
|
+
var _c0$f = ["miamMoreActions"];
|
|
10692
10771
|
function CatalogRecipeCardComponent_div_4_div_3_Template(rf, ctx) {
|
|
10693
10772
|
if (rf & 1) {
|
|
10694
10773
|
i0.ɵɵelementStart(0, "div");
|
|
@@ -11048,7 +11127,7 @@
|
|
|
11048
11127
|
CatalogRecipeCardComponent.ɵfac = function CatalogRecipeCardComponent_Factory(t) { return new (t || CatalogRecipeCardComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(RecipeEventsService), i0.ɵɵdirectiveInject(GroceriesListsService), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(PointOfSalesService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(i1$2.MediaMatcher), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
11049
11128
|
CatalogRecipeCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CatalogRecipeCardComponent, selectors: [["ng-miam-catalog-recipe-card"]], viewQuery: function CatalogRecipeCardComponent_Query(rf, ctx) {
|
|
11050
11129
|
if (rf & 1) {
|
|
11051
|
-
i0.ɵɵviewQuery(_c0$
|
|
11130
|
+
i0.ɵɵviewQuery(_c0$f, true);
|
|
11052
11131
|
}
|
|
11053
11132
|
if (rf & 2) {
|
|
11054
11133
|
var _t;
|
|
@@ -11166,7 +11245,7 @@
|
|
|
11166
11245
|
}] });
|
|
11167
11246
|
})();
|
|
11168
11247
|
|
|
11169
|
-
var _c0$
|
|
11248
|
+
var _c0$g = ["categoryContent"];
|
|
11170
11249
|
var _c1$8 = ["categoryCards"];
|
|
11171
11250
|
function CatalogCategoryComponent_div_0_div_11_Template(rf, ctx) {
|
|
11172
11251
|
if (rf & 1) {
|
|
@@ -11441,7 +11520,7 @@
|
|
|
11441
11520
|
CatalogCategoryComponent.ɵfac = function CatalogCategoryComponent_Factory(t) { return new (t || CatalogCategoryComponent)(i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(RecipeLikesService), i0.ɵɵdirectiveInject(ArticlesService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
11442
11521
|
CatalogCategoryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CatalogCategoryComponent, selectors: [["ng-miam-catalog-category"]], viewQuery: function CatalogCategoryComponent_Query(rf, ctx) {
|
|
11443
11522
|
if (rf & 1) {
|
|
11444
|
-
i0.ɵɵviewQuery(_c0$
|
|
11523
|
+
i0.ɵɵviewQuery(_c0$g, true);
|
|
11445
11524
|
i0.ɵɵviewQuery(_c1$8, true);
|
|
11446
11525
|
i0.ɵɵviewQuery(CatalogRecipeCardComponent, true);
|
|
11447
11526
|
}
|
|
@@ -11537,7 +11616,7 @@
|
|
|
11537
11616
|
i0.ɵɵproperty("iconName", ctx_r2.icon.Video)("width", 50)("height", 50);
|
|
11538
11617
|
}
|
|
11539
11618
|
}
|
|
11540
|
-
var _c0$
|
|
11619
|
+
var _c0$h = function (a0) { return { video: a0 }; };
|
|
11541
11620
|
function CatalogHeaderComponent_div_0_Template(rf, ctx) {
|
|
11542
11621
|
if (rf & 1) {
|
|
11543
11622
|
var _r8_1 = i0.ɵɵgetCurrentView();
|
|
@@ -11575,7 +11654,7 @@
|
|
|
11575
11654
|
i0.ɵɵadvance(1);
|
|
11576
11655
|
i0.ɵɵproperty("ngIf", ctx_r0.displayReturnButton);
|
|
11577
11656
|
i0.ɵɵadvance(3);
|
|
11578
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
11657
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$h, ctx_r0.context.videoRecipesEnabled && !ctx_r0.displayReturnButton));
|
|
11579
11658
|
i0.ɵɵadvance(1);
|
|
11580
11659
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.title, " ");
|
|
11581
11660
|
i0.ɵɵadvance(2);
|
|
@@ -12116,7 +12195,7 @@
|
|
|
12116
12195
|
}] });
|
|
12117
12196
|
})();
|
|
12118
12197
|
|
|
12119
|
-
var _c0$
|
|
12198
|
+
var _c0$i = ["fileInput"];
|
|
12120
12199
|
function DragDropInputComponent_input_1_Template(rf, ctx) {
|
|
12121
12200
|
if (rf & 1) {
|
|
12122
12201
|
var _r6_1 = i0.ɵɵgetCurrentView();
|
|
@@ -12228,7 +12307,7 @@
|
|
|
12228
12307
|
DragDropInputComponent.ɵfac = function DragDropInputComponent_Factory(t) { return new (t || DragDropInputComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
12229
12308
|
DragDropInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DragDropInputComponent, selectors: [["ng-miam-drag-drop-input"]], viewQuery: function DragDropInputComponent_Query(rf, ctx) {
|
|
12230
12309
|
if (rf & 1) {
|
|
12231
|
-
i0.ɵɵviewQuery(_c0$
|
|
12310
|
+
i0.ɵɵviewQuery(_c0$i, true);
|
|
12232
12311
|
}
|
|
12233
12312
|
if (rf & 2) {
|
|
12234
12313
|
var _t;
|
|
@@ -12493,7 +12572,7 @@
|
|
|
12493
12572
|
}] });
|
|
12494
12573
|
})();
|
|
12495
12574
|
|
|
12496
|
-
var _c0$
|
|
12575
|
+
var _c0$j = ["selectedPosCard"];
|
|
12497
12576
|
function PosSelectionComponent_ng_container_0_div_6_ng_miam_pos_card_1_Template(rf, ctx) {
|
|
12498
12577
|
if (rf & 1) {
|
|
12499
12578
|
var _r7_1 = i0.ɵɵgetCurrentView();
|
|
@@ -12736,7 +12815,7 @@
|
|
|
12736
12815
|
PosSelectionComponent.ɵfac = function PosSelectionComponent_Factory(t) { return new (t || PosSelectionComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(PointOfSalesService), i0.ɵɵdirectiveInject(AnalyticsService)); };
|
|
12737
12816
|
PosSelectionComponent.ɵcmp = i0.ɵɵdefineComponent({ type: PosSelectionComponent, selectors: [["ng-miam-pos-selection"]], viewQuery: function PosSelectionComponent_Query(rf, ctx) {
|
|
12738
12817
|
if (rf & 1) {
|
|
12739
|
-
i0.ɵɵviewQuery(_c0$
|
|
12818
|
+
i0.ɵɵviewQuery(_c0$j, true);
|
|
12740
12819
|
}
|
|
12741
12820
|
if (rf & 2) {
|
|
12742
12821
|
var _t;
|
|
@@ -12869,7 +12948,7 @@
|
|
|
12869
12948
|
i0.ɵɵproperty("ngIf", ctx_r3.loading);
|
|
12870
12949
|
}
|
|
12871
12950
|
}
|
|
12872
|
-
var _c0$
|
|
12951
|
+
var _c0$k = function (a0) { return { expand: a0 }; };
|
|
12873
12952
|
var DrawerComponent = /** @class */ (function () {
|
|
12874
12953
|
function DrawerComponent(cdr, listsService, posService, basketsService, analyticsService) {
|
|
12875
12954
|
this.cdr = cdr;
|
|
@@ -13001,13 +13080,13 @@
|
|
|
13001
13080
|
if (rf & 2) {
|
|
13002
13081
|
i0.ɵɵproperty("ngIf", ctx.expand);
|
|
13003
13082
|
i0.ɵɵadvance(1);
|
|
13004
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
13083
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$k, ctx.expand));
|
|
13005
13084
|
i0.ɵɵadvance(1);
|
|
13006
13085
|
i0.ɵɵclassProp("jiggle", ctx.jiggle);
|
|
13007
13086
|
i0.ɵɵadvance(1);
|
|
13008
13087
|
i0.ɵɵproperty("ngIf", ctx.recipesCount && ctx.recipesCount > 0);
|
|
13009
13088
|
i0.ɵɵadvance(1);
|
|
13010
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$
|
|
13089
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$k, ctx.expand));
|
|
13011
13090
|
i0.ɵɵadvance(6);
|
|
13012
13091
|
i0.ɵɵproperty("ngIf", ctx.expand);
|
|
13013
13092
|
i0.ɵɵadvance(1);
|
|
@@ -13033,7 +13112,7 @@
|
|
|
13033
13112
|
}] });
|
|
13034
13113
|
})();
|
|
13035
13114
|
|
|
13036
|
-
var _c0$
|
|
13115
|
+
var _c0$l = ["miamCatalogTopAnchor"];
|
|
13037
13116
|
function RecipeCatalogComponent_div_2_div_4_Template(rf, ctx) {
|
|
13038
13117
|
if (rf & 1) {
|
|
13039
13118
|
var _r10_1 = i0.ɵɵgetCurrentView();
|
|
@@ -13485,7 +13564,7 @@
|
|
|
13485
13564
|
RecipeCatalogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeCatalogComponent, selectors: [["ng-miam-recipe-catalog"]], viewQuery: function RecipeCatalogComponent_Query(rf, ctx) {
|
|
13486
13565
|
if (rf & 1) {
|
|
13487
13566
|
i0.ɵɵviewQuery(CatalogHeaderComponent, true);
|
|
13488
|
-
i0.ɵɵviewQuery(_c0$
|
|
13567
|
+
i0.ɵɵviewQuery(_c0$l, true);
|
|
13489
13568
|
i0.ɵɵviewQuery(CatalogCategoryComponent, true);
|
|
13490
13569
|
}
|
|
13491
13570
|
if (rf & 2) {
|
|
@@ -13554,7 +13633,7 @@
|
|
|
13554
13633
|
i0.ɵɵproperty("iconName", ctx_r5.icon.ChevronDown);
|
|
13555
13634
|
}
|
|
13556
13635
|
}
|
|
13557
|
-
var _c0$
|
|
13636
|
+
var _c0$m = function (a0) { return { "filter-collapsed": a0 }; };
|
|
13558
13637
|
function FavoritePageComponent_div_2_Template(rf, ctx) {
|
|
13559
13638
|
if (rf & 1) {
|
|
13560
13639
|
var _r13_1 = i0.ɵɵgetCurrentView();
|
|
@@ -13579,7 +13658,7 @@
|
|
|
13579
13658
|
i0.ɵɵadvance(1);
|
|
13580
13659
|
i0.ɵɵproperty("ngIf", !(ctx_r1.listIsEmpty && ctx_r1.isMobile && ctx_r1.areFiltersEmpty()));
|
|
13581
13660
|
i0.ɵɵadvance(1);
|
|
13582
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
13661
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$m, ctx_r1.isFilterCollapsed));
|
|
13583
13662
|
i0.ɵɵadvance(1);
|
|
13584
13663
|
i0.ɵɵproperty("displayReturnButton", false)("forcedPictureUrl", ctx_r1.forcedPictureUrl)("title", ctx_r1.homePageTitle);
|
|
13585
13664
|
i0.ɵɵadvance(2);
|
|
@@ -13707,7 +13786,7 @@
|
|
|
13707
13786
|
i0.ɵɵproperty("iconName", ctx_r0.icon.ListScanner);
|
|
13708
13787
|
}
|
|
13709
13788
|
}
|
|
13710
|
-
var _c0$
|
|
13789
|
+
var _c0$n = function (a0) { return { reduced: a0 }; };
|
|
13711
13790
|
function ListScanOverlayButtonComponent_div_4_Template(rf, ctx) {
|
|
13712
13791
|
if (rf & 1) {
|
|
13713
13792
|
i0.ɵɵelementStart(0, "div", 10);
|
|
@@ -13716,7 +13795,7 @@
|
|
|
13716
13795
|
}
|
|
13717
13796
|
if (rf & 2) {
|
|
13718
13797
|
var ctx_r1 = i0.ɵɵnextContext();
|
|
13719
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c0$
|
|
13798
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c0$n, ctx_r1.reduced == "true"));
|
|
13720
13799
|
}
|
|
13721
13800
|
}
|
|
13722
13801
|
function ListScanOverlayButtonComponent_ng_miam_loader_5_Template(rf, ctx) {
|
|
@@ -13790,7 +13869,7 @@
|
|
|
13790
13869
|
i0.ɵɵadvance(1);
|
|
13791
13870
|
i0.ɵɵproperty("ngIf", ctx.loading);
|
|
13792
13871
|
i0.ɵɵadvance(1);
|
|
13793
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
13872
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$n, ctx.reduced == "true"));
|
|
13794
13873
|
}
|
|
13795
13874
|
}, directives: [i8.NgClass, i8.NgIf, IconComponent, LoaderComponent], styles: [".miam-list-scan__overlay-button[_ngcontent-%COMP%]{display:inline-block;position:relative}.miam-list-scan__overlay-button.overlay[_ngcontent-%COMP%]{bottom:20px;position:fixed;right:20px}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .inputfile[_ngcontent-%COMP%]{height:.1px;opacity:0;overflow:hidden;position:absolute;width:.1px;z-index:-1}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__label[_ngcontent-%COMP%]{max-height:50px;min-width:0}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__label[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%]{margin:0}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__label[_ngcontent-%COMP%] .button-label[_ngcontent-%COMP%]{margin-left:10px}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__label[_ngcontent-%COMP%] .button-label.reduced[_ngcontent-%COMP%]{display:none}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__reduce[_ngcontent-%COMP%]{align-items:center;background-color:#fff;border-radius:12px;box-shadow:0 2px 5px rgba(0,0,0,.25);cursor:pointer;display:flex;font-size:16px;font-weight:700;height:24px;justify-content:center;position:absolute;right:-8px;top:-9px;width:24px}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__reduce.reduced[_ngcontent-%COMP%]{display:none}"], changeDetection: 0 });
|
|
13796
13875
|
/*@__PURE__*/ (function () {
|
|
@@ -13823,7 +13902,7 @@
|
|
|
13823
13902
|
i0.ɵɵproperty("iconName", ctx_r0.icon.DrawerHorizontalCloseBar);
|
|
13824
13903
|
}
|
|
13825
13904
|
}
|
|
13826
|
-
var _c0$
|
|
13905
|
+
var _c0$o = function (a0) { return { overlay: a0 }; };
|
|
13827
13906
|
function ListScanIngredientsListComponent_div_4_Template(rf, ctx) {
|
|
13828
13907
|
if (rf & 1) {
|
|
13829
13908
|
var _r6_1 = i0.ɵɵgetCurrentView();
|
|
@@ -13861,7 +13940,7 @@
|
|
|
13861
13940
|
if (rf & 2) {
|
|
13862
13941
|
var e_r4 = ctx.$implicit;
|
|
13863
13942
|
var ctx_r1 = i0.ɵɵnextContext();
|
|
13864
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
13943
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$o, ctx_r1.overlay));
|
|
13865
13944
|
i0.ɵɵadvance(2);
|
|
13866
13945
|
i0.ɵɵproperty("iconName", ctx_r1.icon.Trash);
|
|
13867
13946
|
i0.ɵɵadvance(4);
|
|
@@ -14131,7 +14210,7 @@
|
|
|
14131
14210
|
i0.ɵɵproperty("overlay", ctx_r0.overlay);
|
|
14132
14211
|
}
|
|
14133
14212
|
}
|
|
14134
|
-
var _c0$
|
|
14213
|
+
var _c0$p = function (a0) { return { overlay: a0 }; };
|
|
14135
14214
|
function ListScanComponent_ng_miam_list_scan_ingredients_list_2_Template(rf, ctx) {
|
|
14136
14215
|
if (rf & 1) {
|
|
14137
14216
|
var _r6_1 = i0.ɵɵgetCurrentView();
|
|
@@ -14141,7 +14220,7 @@
|
|
|
14141
14220
|
}
|
|
14142
14221
|
if (rf & 2) {
|
|
14143
14222
|
var ctx_r1 = i0.ɵɵnextContext();
|
|
14144
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$
|
|
14223
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$p, ctx_r1.overlay))("overlay", ctx_r1.overlay)("entries", ctx_r1.entries);
|
|
14145
14224
|
}
|
|
14146
14225
|
}
|
|
14147
14226
|
function ListScanComponent_ng_miam_list_scan_basket_preview_3_Template(rf, ctx) {
|
|
@@ -14153,7 +14232,7 @@
|
|
|
14153
14232
|
}
|
|
14154
14233
|
if (rf & 2) {
|
|
14155
14234
|
var ctx_r2 = i0.ɵɵnextContext();
|
|
14156
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$
|
|
14235
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$p, ctx_r2.overlay))("overlay", ctx_r2.overlay)("entries", ctx_r2.entries);
|
|
14157
14236
|
}
|
|
14158
14237
|
}
|
|
14159
14238
|
var ListScanComponent = /** @class */ (function () {
|
|
@@ -14306,7 +14385,7 @@
|
|
|
14306
14385
|
i0.ɵɵtextInterpolate1(" ", ctx_r5.confirmButtonText, " ");
|
|
14307
14386
|
}
|
|
14308
14387
|
}
|
|
14309
|
-
var _c0$
|
|
14388
|
+
var _c0$q = function (a0, a1) { return { "with-header": a0, "without-header": a1 }; };
|
|
14310
14389
|
function ModalComponent_ng_container_0_Template(rf, ctx) {
|
|
14311
14390
|
if (rf & 1) {
|
|
14312
14391
|
var _r11_1 = i0.ɵɵgetCurrentView();
|
|
@@ -14338,7 +14417,7 @@
|
|
|
14338
14417
|
var _r2 = i0.ɵɵreference(10);
|
|
14339
14418
|
var ctx_r0 = i0.ɵɵnextContext();
|
|
14340
14419
|
i0.ɵɵadvance(2);
|
|
14341
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(9, _c0$
|
|
14420
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(9, _c0$q, !ctx_r0.noHeaderMode, ctx_r0.noHeaderMode));
|
|
14342
14421
|
i0.ɵɵadvance(4);
|
|
14343
14422
|
i0.ɵɵtextInterpolate(ctx_r0.title);
|
|
14344
14423
|
i0.ɵɵadvance(1);
|
|
@@ -14585,7 +14664,7 @@
|
|
|
14585
14664
|
i0.ɵɵproperty("iconName", ctx_r6.icon.ChevronDown);
|
|
14586
14665
|
}
|
|
14587
14666
|
}
|
|
14588
|
-
var _c0$
|
|
14667
|
+
var _c0$r = function (a0) { return { "filter-collapsed": a0 }; };
|
|
14589
14668
|
function PersonalRecipesComponent_div_2_Template(rf, ctx) {
|
|
14590
14669
|
if (rf & 1) {
|
|
14591
14670
|
var _r16_1 = i0.ɵɵgetCurrentView();
|
|
@@ -14611,7 +14690,7 @@
|
|
|
14611
14690
|
i0.ɵɵadvance(1);
|
|
14612
14691
|
i0.ɵɵproperty("ngIf", !(ctx_r1.listIsEmpty && ctx_r1.isMobile && ctx_r1.areFiltersEmpty()));
|
|
14613
14692
|
i0.ɵɵadvance(1);
|
|
14614
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$
|
|
14693
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$r, ctx_r1.isFilterCollapsed));
|
|
14615
14694
|
i0.ɵɵadvance(1);
|
|
14616
14695
|
i0.ɵɵproperty("displayReturnButton", false)("forcedPictureUrl", ctx_r1.forcedPictureUrl)("title", ctx_r1.homePageTitle);
|
|
14617
14696
|
i0.ɵɵadvance(2);
|
|
@@ -14805,7 +14884,7 @@
|
|
|
14805
14884
|
}], function () { return []; }, null);
|
|
14806
14885
|
})();
|
|
14807
14886
|
|
|
14808
|
-
var _c0$
|
|
14887
|
+
var _c0$s = function (a0) { return { event: a0 }; };
|
|
14809
14888
|
function PlannerSideMenuComponent_div_7_Template(rf, ctx) {
|
|
14810
14889
|
if (rf & 1) {
|
|
14811
14890
|
i0.ɵɵelementStart(0, "div", 3);
|
|
@@ -14815,7 +14894,7 @@
|
|
|
14815
14894
|
}
|
|
14816
14895
|
if (rf & 2) {
|
|
14817
14896
|
var event_r1 = ctx.$implicit;
|
|
14818
|
-
i0.ɵɵproperty("dropData", i0.ɵɵpureFunction1(3, _c0$
|
|
14897
|
+
i0.ɵɵproperty("dropData", i0.ɵɵpureFunction1(3, _c0$s, event_r1));
|
|
14819
14898
|
i0.ɵɵadvance(1);
|
|
14820
14899
|
i0.ɵɵproperty("src", event_r1.recipe == null ? null : event_r1.recipe.attributes["media-url"], i0.ɵɵsanitizeUrl);
|
|
14821
14900
|
i0.ɵɵadvance(1);
|
|
@@ -15064,7 +15143,7 @@
|
|
|
15064
15143
|
}] });
|
|
15065
15144
|
})();
|
|
15066
15145
|
|
|
15067
|
-
var _c0$
|
|
15146
|
+
var _c0$t = ["topContainerImg"];
|
|
15068
15147
|
var _c1$e = ["mainContainer"];
|
|
15069
15148
|
function RecipeDetailsComponent_div_0_img_6_Template(rf, ctx) {
|
|
15070
15149
|
if (rf & 1) {
|
|
@@ -15972,7 +16051,7 @@
|
|
|
15972
16051
|
RecipeDetailsComponent.ɵfac = function RecipeDetailsComponent_Factory(t) { return new (t || RecipeDetailsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$2.MediaMatcher), i0.ɵɵdirectiveInject(GroceriesListsService), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(PointOfSalesService), i0.ɵɵdirectiveInject(RecipeEventsService), i0.ɵɵdirectiveInject(ContextService)); };
|
|
15973
16052
|
RecipeDetailsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetailsComponent, selectors: [["ng-miam-recipe-details"]], viewQuery: function RecipeDetailsComponent_Query(rf, ctx) {
|
|
15974
16053
|
if (rf & 1) {
|
|
15975
|
-
i0.ɵɵviewQuery(_c0$
|
|
16054
|
+
i0.ɵɵviewQuery(_c0$t, true);
|
|
15976
16055
|
i0.ɵɵviewQuery(_c1$e, true);
|
|
15977
16056
|
}
|
|
15978
16057
|
if (rf & 2) {
|
|
@@ -16077,7 +16156,7 @@
|
|
|
16077
16156
|
i0.ɵɵproperty("formControl", ctx_r2.recipeForm == null ? null : (tmp_4_0 = ctx_r2.recipeForm.get("attributes")) == null ? null : tmp_4_0.get("description"));
|
|
16078
16157
|
}
|
|
16079
16158
|
}
|
|
16080
|
-
var _c0$
|
|
16159
|
+
var _c0$u = function () { return ["number-of-guests"]; };
|
|
16081
16160
|
function RecipeFormComponent_form_0_Template(rf, ctx) {
|
|
16082
16161
|
if (rf & 1) {
|
|
16083
16162
|
var _r4_1 = i0.ɵɵgetCurrentView();
|
|
@@ -16136,7 +16215,7 @@
|
|
|
16136
16215
|
i0.ɵɵadvance(3);
|
|
16137
16216
|
i0.ɵɵproperty("formControl", ctx_r0.recipeForm == null ? null : (tmp_3_0 = ctx_r0.recipeForm.get("attributes")) == null ? null : tmp_3_0.get("media-url"))("imageUrl", ctx_r0.recipeForm == null ? null : (tmp_4_0 = ctx_r0.recipeForm.get("attributes")) == null ? null : (tmp_4_1 = tmp_4_0.get("media-url")) == null ? null : tmp_4_1.value)("photoMode", true);
|
|
16138
16217
|
i0.ɵɵadvance(4);
|
|
16139
|
-
i0.ɵɵproperty("formControl", ctx_r0.recipeForm.controls["attributes"]["controls"][i0.ɵɵpureFunction0(19, _c0$
|
|
16218
|
+
i0.ɵɵproperty("formControl", ctx_r0.recipeForm.controls["attributes"]["controls"][i0.ɵɵpureFunction0(19, _c0$u)]);
|
|
16140
16219
|
i0.ɵɵadvance(2);
|
|
16141
16220
|
i0.ɵɵproperty("options", i0.ɵɵpipeBind1(12, 17, ctx_r0.recipeTypeService == null ? null : ctx_r0.recipeTypeService.getTypes()))("formControl", ctx_r0.recipeForm == null ? null : ctx_r0.recipeForm.get("recipe-type"));
|
|
16142
16221
|
i0.ɵɵadvance(4);
|
|
@@ -16315,7 +16394,8 @@
|
|
|
16315
16394
|
attributes: _this.fb.group({
|
|
16316
16395
|
quantity: new i9.FormControl(ingredient.attributes.quantity, i9.Validators.required),
|
|
16317
16396
|
unit: new i9.FormControl(ingredient.attributes.unit, i9.Validators.required),
|
|
16318
|
-
name: new i9.FormControl(ingredient.attributes.name, i9.Validators.required)
|
|
16397
|
+
name: new i9.FormControl(ingredient.attributes.name, i9.Validators.required),
|
|
16398
|
+
'picture-url': new i9.FormControl(ingredient.attributes['picture-url'])
|
|
16319
16399
|
})
|
|
16320
16400
|
}));
|
|
16321
16401
|
});
|
|
@@ -16685,7 +16765,7 @@
|
|
|
16685
16765
|
i0.ɵɵtextInterpolate1(" ", tag_r2.attributes.name, " ");
|
|
16686
16766
|
}
|
|
16687
16767
|
}
|
|
16688
|
-
var _c0$
|
|
16768
|
+
var _c0$v = function (a0) { return { "active": a0 }; };
|
|
16689
16769
|
function TagsSelectorComponent_ng_miam_modal_0_Template(rf, ctx) {
|
|
16690
16770
|
if (rf & 1) {
|
|
16691
16771
|
var _r6_1 = i0.ɵɵgetCurrentView();
|
|
@@ -16720,13 +16800,13 @@
|
|
|
16720
16800
|
var ctx_r0 = i0.ɵɵnextContext();
|
|
16721
16801
|
i0.ɵɵproperty("isAngularComponent", true)("noHeaderMode", false)("expanded", true);
|
|
16722
16802
|
i0.ɵɵadvance(3);
|
|
16723
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
16803
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$v, (ctx_r0.selectedTabTags[0] == null ? null : ctx_r0.selectedTabTags[0].tagType) === "meal_type"));
|
|
16724
16804
|
i0.ɵɵadvance(2);
|
|
16725
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$
|
|
16805
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$v, (ctx_r0.selectedTabTags[0] == null ? null : ctx_r0.selectedTabTags[0].tagType) === "ingredient_category"));
|
|
16726
16806
|
i0.ɵɵadvance(2);
|
|
16727
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c0$
|
|
16807
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c0$v, (ctx_r0.selectedTabTags[0] == null ? null : ctx_r0.selectedTabTags[0].tagType) === "equipment"));
|
|
16728
16808
|
i0.ɵɵadvance(2);
|
|
16729
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c0$
|
|
16809
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c0$v, (ctx_r0.selectedTabTags[0] == null ? null : ctx_r0.selectedTabTags[0].tagType) === "diet"));
|
|
16730
16810
|
i0.ɵɵadvance(3);
|
|
16731
16811
|
i0.ɵɵproperty("ngForOf", ctx_r0.selectedTabTags);
|
|
16732
16812
|
}
|
|
@@ -16833,7 +16913,7 @@
|
|
|
16833
16913
|
}] });
|
|
16834
16914
|
})();
|
|
16835
16915
|
|
|
16836
|
-
var _c0$
|
|
16916
|
+
var _c0$w = ["topAnchor"];
|
|
16837
16917
|
var _c1$f = ["stepperLinks"];
|
|
16838
16918
|
var _c2$3 = ["step"];
|
|
16839
16919
|
function RecipeStepperComponent_ng_container_28_div_16_div_4_Template(rf, ctx) {
|
|
@@ -16954,7 +17034,7 @@
|
|
|
16954
17034
|
}
|
|
16955
17035
|
if (rf & 2) {
|
|
16956
17036
|
var ctx_r13 = i0.ɵɵnextContext(2);
|
|
16957
|
-
i0.ɵɵproperty("placeholder", ctx_r13.INGREDIENT_PLACEHOLDER)("
|
|
17037
|
+
i0.ɵɵproperty("placeholder", ctx_r13.INGREDIENT_PLACEHOLDER)("instructions", ctx_r13.INGREDIENT_INSTRUCTIONS)("list", ctx_r13.recipeForm.get("ingredients"))("ingredientMode", true)("ingredientsPictures", ctx_r13.ingredientsPictures);
|
|
16958
17038
|
}
|
|
16959
17039
|
}
|
|
16960
17040
|
function RecipeStepperComponent_ng_container_28_ng_miam_list_input_42_Template(rf, ctx) {
|
|
@@ -17031,7 +17111,7 @@
|
|
|
17031
17111
|
i0.ɵɵelementContainerEnd();
|
|
17032
17112
|
i0.ɵɵelementStart(38, "div", 19, 20);
|
|
17033
17113
|
i0.ɵɵtemplate(40, RecipeStepperComponent_ng_container_28_div_40_Template, 5, 6, "div", 40);
|
|
17034
|
-
i0.ɵɵtemplate(41, RecipeStepperComponent_ng_container_28_ng_miam_list_input_41_Template, 1,
|
|
17114
|
+
i0.ɵɵtemplate(41, RecipeStepperComponent_ng_container_28_ng_miam_list_input_41_Template, 1, 5, "ng-miam-list-input", 41);
|
|
17035
17115
|
i0.ɵɵtemplate(42, RecipeStepperComponent_ng_container_28_ng_miam_list_input_42_Template, 1, 3, "ng-miam-list-input", 42);
|
|
17036
17116
|
i0.ɵɵelementEnd();
|
|
17037
17117
|
i0.ɵɵelementContainerEnd();
|
|
@@ -17063,7 +17143,7 @@
|
|
|
17063
17143
|
i0.ɵɵadvance(1);
|
|
17064
17144
|
i0.ɵɵproperty("ngIf", ctx_r2.displayTags);
|
|
17065
17145
|
i0.ɵɵadvance(5);
|
|
17066
|
-
i0.ɵɵproperty("buttonText", (ctx_r2.recipeForm == null ? null : (tmp_6_0 = ctx_r2.recipeForm.get("attributes")) == null ? null : (tmp_6_1 = tmp_6_0.get("media-url")) == null ? null : tmp_6_1.value == null ? null : tmp_6_1.value.length) > 0 ? "Modifier la photo (2MB max)" : "Ajouter une photo (2MB max)")("formControl", ctx_r2.recipeForm == null ? null : (tmp_7_0 = ctx_r2.recipeForm.get("attributes")) == null ? null : tmp_7_0.get("media-url"))("imageUrl", ctx_r2.recipeForm == null ? null : (tmp_8_0 = ctx_r2.recipeForm.get("attributes")) == null ? null : (tmp_8_1 = tmp_8_0.get("media-url")) == null ? null : tmp_8_1.value)("photoMode",
|
|
17146
|
+
i0.ɵɵproperty("buttonText", (ctx_r2.recipeForm == null ? null : (tmp_6_0 = ctx_r2.recipeForm.get("attributes")) == null ? null : (tmp_6_1 = tmp_6_0.get("media-url")) == null ? null : tmp_6_1.value == null ? null : tmp_6_1.value.length) > 0 ? "Modifier la photo (2MB max)" : "Ajouter une photo (2MB max)")("formControl", ctx_r2.recipeForm == null ? null : (tmp_7_0 = ctx_r2.recipeForm.get("attributes")) == null ? null : tmp_7_0.get("media-url"))("imageUrl", ctx_r2.recipeForm == null ? null : (tmp_8_0 = ctx_r2.recipeForm.get("attributes")) == null ? null : (tmp_8_1 = tmp_8_0.get("media-url")) == null ? null : tmp_8_1.value)("photoMode", true);
|
|
17067
17147
|
i0.ɵɵadvance(1);
|
|
17068
17148
|
i0.ɵɵproperty("ngIf", ctx_r2.bigImageWarning);
|
|
17069
17149
|
i0.ɵɵadvance(3);
|
|
@@ -17106,6 +17186,7 @@
|
|
|
17106
17186
|
function RecipeStepperComponent() {
|
|
17107
17187
|
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
17108
17188
|
_this.displayTags = false;
|
|
17189
|
+
_this.ingredientsPictures = { visible: false, editable: false };
|
|
17109
17190
|
_this.INGREDIENT_PLACEHOLDER = 'Exemple :\n500g de farine\n250g de beurre\nhuile d\'olive\n4 tranches de jambon';
|
|
17110
17191
|
_this.STEP_PLACEHOLDER = "Exemple :\nHacher grossi\u00E8rement le c\u00E9leri et l'oignon.\nCouper le chou-fleur en petits bouquets.";
|
|
17111
17192
|
_this.INGREDIENT_INSTRUCTIONS = 'Vous pouvez saisir un ingrédient ou copier coller une liste d’ingrédients. \n Une ligne correspond à un ingrédient.';
|
|
@@ -17214,7 +17295,7 @@
|
|
|
17214
17295
|
RecipeStepperComponent.ɵfac = function RecipeStepperComponent_Factory(t) { return ɵRecipeStepperComponent_BaseFactory(t || RecipeStepperComponent); };
|
|
17215
17296
|
RecipeStepperComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeStepperComponent, selectors: [["ng-miam-recipe-stepper"]], viewQuery: function RecipeStepperComponent_Query(rf, ctx) {
|
|
17216
17297
|
if (rf & 1) {
|
|
17217
|
-
i0.ɵɵviewQuery(_c0$
|
|
17298
|
+
i0.ɵɵviewQuery(_c0$w, true);
|
|
17218
17299
|
i0.ɵɵviewQuery(_c1$f, true);
|
|
17219
17300
|
i0.ɵɵviewQuery(_c2$3, true);
|
|
17220
17301
|
}
|
|
@@ -17224,7 +17305,7 @@
|
|
|
17224
17305
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.stepperLinks = _t.first);
|
|
17225
17306
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.steps = _t);
|
|
17226
17307
|
}
|
|
17227
|
-
}, inputs: { displayTags: "displayTags" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 37, vars: 17, consts: [[1, "miam-recipe-stepper__anchor"], ["topAnchor", ""], [1, "miam-recipe-stepper"], [1, "miam-recipe-stepper__padding"], [1, "m-button-secondary", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], [1, "miam-recipe-stepper__links"], ["stepperLinks", ""], [1, "miam-recipe-stepper__link", 3, "ngClass", "click"], [1, "miam-recipe-stepper__link__number"], [1, "m-body-typo", "miam-recipe-stepper__link__name"], [1, "miam-recipe-stepper__link__divider"], [3, "formGroup", 4, "ngIf", "ngIfElse"], ["loading", ""], [1, "miam-recipe-stepper__footer"], [1, "m-button-secondary", 3, "disabled", "click"], [1, "m-button-primary", 3, "disabled", "click"], [3, "display", "currentTags", "close", "savedTags", 4, "ngIf"], [3, "formGroup"], [1, "miam-recipe-stepper__section"], ["step", ""], [1, "miam-recipe-stepper__mandatory"], ["ngDefaultControl", "", "placeholder", "Titre de la recette", 1, "m-title-text-input", 3, "formControl"], [1, "miam-recipe-stepper__type__label"], ["ngDefaultControl", "", 3, "formControl"], [1, "miam-recipe-stepper__section__guests", "m-default-card"], [1, "miam-recipe-stepper__guests__label"], ["ngDefaultControl", "", "formControlName", "number-of-guests", "minRange", "1", "maxRange", "999", 3, "counter", "counterChange"], ["class", "miam-recipe-stepper__tags", 4, "ngIf"], [1, "miam-recipe-stepper__section__row"], [1, "miam-recipe-stepper__picture"], ["ngDefaultControl", "", 3, "buttonText", "formControl", "imageUrl", "photoMode", "bigFileDropped", "onFileDropped"], ["class", "miam-recipe-stepper__picture__warning", 4, "ngIf"], [1, "miam-recipe-stepper__row__description"], [1, "m-h1-typo"], ["cdkTextareaAutosize", "", "cdkAutosizeMinRows", "20", "cdkAutosizeMaxRows", "50", "maxlength", "250", 1, "m-input", 3, "formControl"], [1, "miam-recipe-stepper__description__counter"], ["class", "miam-recipe-stepper__section__times", 4, "ngIf"], [1, "miam-recipe-stepper__attibutes__slider"], ["ngDefaultControl", "", 3, "steps", "formControl", "icons"], ["class", "miam-recipe-stepper__mobile__buttons", 4, "ngIf"], ["
|
|
17308
|
+
}, inputs: { displayTags: "displayTags", ingredientsPictures: "ingredientsPictures" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 37, vars: 17, consts: [[1, "miam-recipe-stepper__anchor"], ["topAnchor", ""], [1, "miam-recipe-stepper"], [1, "miam-recipe-stepper__padding"], [1, "m-button-secondary", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], [1, "miam-recipe-stepper__links"], ["stepperLinks", ""], [1, "miam-recipe-stepper__link", 3, "ngClass", "click"], [1, "miam-recipe-stepper__link__number"], [1, "m-body-typo", "miam-recipe-stepper__link__name"], [1, "miam-recipe-stepper__link__divider"], [3, "formGroup", 4, "ngIf", "ngIfElse"], ["loading", ""], [1, "miam-recipe-stepper__footer"], [1, "m-button-secondary", 3, "disabled", "click"], [1, "m-button-primary", 3, "disabled", "click"], [3, "display", "currentTags", "close", "savedTags", 4, "ngIf"], [3, "formGroup"], [1, "miam-recipe-stepper__section"], ["step", ""], [1, "miam-recipe-stepper__mandatory"], ["ngDefaultControl", "", "placeholder", "Titre de la recette", 1, "m-title-text-input", 3, "formControl"], [1, "miam-recipe-stepper__type__label"], ["ngDefaultControl", "", 3, "formControl"], [1, "miam-recipe-stepper__section__guests", "m-default-card"], [1, "miam-recipe-stepper__guests__label"], ["ngDefaultControl", "", "formControlName", "number-of-guests", "minRange", "1", "maxRange", "999", 3, "counter", "counterChange"], ["class", "miam-recipe-stepper__tags", 4, "ngIf"], [1, "miam-recipe-stepper__section__row"], [1, "miam-recipe-stepper__picture"], ["ngDefaultControl", "", 3, "buttonText", "formControl", "imageUrl", "photoMode", "bigFileDropped", "onFileDropped"], ["class", "miam-recipe-stepper__picture__warning", 4, "ngIf"], [1, "miam-recipe-stepper__row__description"], [1, "m-h1-typo"], ["cdkTextareaAutosize", "", "cdkAutosizeMinRows", "20", "cdkAutosizeMaxRows", "50", "maxlength", "250", 1, "m-input", 3, "formControl"], [1, "miam-recipe-stepper__description__counter"], ["class", "miam-recipe-stepper__section__times", 4, "ngIf"], [1, "miam-recipe-stepper__attibutes__slider"], ["ngDefaultControl", "", 3, "steps", "formControl", "icons"], ["class", "miam-recipe-stepper__mobile__buttons", 4, "ngIf"], ["ngDefaultControl", "", "label", "Ingr\u00E9dients", "hint", "ingr\u00E9dients", "formArrayName", "ingredients", 3, "placeholder", "instructions", "list", "ingredientMode", "ingredientsPictures", "deleteId", "orderHasChanged", 4, "ngIf"], ["ngDefaultControl", "", "label", "\u00C9tapes", "formArrayName", "steps", "hint", "\u00E9tapes", 3, "placeholder", "list", "instructions", "deleteId", "orderHasChanged", 4, "ngIf"], [1, "miam-recipe-stepper__tags"], [1, "miam-recipe-stepper__tags__title"], [1, "miam-recipe-stepper__tags__recap"], ["class", "miam-recipe-stepper__tag", 3, "ngClass", 4, "ngFor", "ngForOf"], ["primaryColor", "var(--m-color-onyx)", 3, "iconName"], [1, "miam-recipe-stepper__tag", 3, "ngClass"], [1, "miam-recipe-stepper__tag__name"], ["primaryColor", "var(--m-color-grey01)", 1, "miam-recipe-stepper__tag__icon", 3, "iconName", "click"], [1, "miam-recipe-stepper__picture__warning"], ["primaryColor", "var(--m-color-warning-text)", 3, "iconName"], [1, "miam-recipe-stepper__picture__warning__background"], [1, "miam-recipe-stepper__section__times"], ["ngDefaultControl", "", "title", "Temps de pr\u00E9paration", 3, "formControl", "icon"], ["ngDefaultControl", "", "title", "Temps de cuisson", 3, "formControl", "icon"], ["ngDefaultControl", "", "title", "Temps de repos", 3, "formControl", "icon"], [1, "miam-recipe-stepper__mobile__buttons"], [1, "m-button-secondary", 3, "ngClass", "click"], ["ngDefaultControl", "", "label", "Ingr\u00E9dients", "hint", "ingr\u00E9dients", "formArrayName", "ingredients", 3, "placeholder", "instructions", "list", "ingredientMode", "ingredientsPictures", "deleteId", "orderHasChanged"], ["ngDefaultControl", "", "label", "\u00C9tapes", "formArrayName", "steps", "hint", "\u00E9tapes", 3, "placeholder", "list", "instructions", "deleteId", "orderHasChanged"], [3, "display", "currentTags", "close", "savedTags"]], template: function RecipeStepperComponent_Template(rf, ctx) {
|
|
17228
17309
|
if (rf & 1) {
|
|
17229
17310
|
i0.ɵɵelement(0, "div", 0, 1);
|
|
17230
17311
|
i0.ɵɵelementStart(2, "div", 2);
|
|
@@ -17307,7 +17388,7 @@
|
|
|
17307
17388
|
i0.ɵɵadvance(1);
|
|
17308
17389
|
i0.ɵɵproperty("ngIf", ctx.displayTags && ctx.recipe);
|
|
17309
17390
|
}
|
|
17310
|
-
}, directives: [IconComponent, i8.NgClass, i8.NgIf, i9.NgControlStatusGroup, i9.FormGroupDirective, TextInputComponent, i9.DefaultValueAccessor, i9.NgControlStatus, i9.FormControlDirective, RecipeTypeChooserComponent, CounterInputComponent, i9.FormControlName, DragDropInputComponent, i9.MaxLengthValidator, SliderComponent, i8.NgForOf, TimePickerComponent, ListInputComponent, i9.FormArrayName, LoaderComponent, TagsSelectorComponent], styles: ["@charset \"UTF-8\";.miam-recipe-stepper__anchor{bottom:0;height:250px;margin-top:-250px;position:relative}.miam-recipe-stepper{display:flex;flex-direction:column;width:100%}.miam-recipe-stepper label{font-size:19px;line-height:24px}.miam-recipe-stepper label span{color:var(--m-color-secondary)}.miam-recipe-stepper .miam-recipe-stepper__padding{background-color:var(--m-color-unpure-white);height:32px;position:relative;width:100%}.miam-recipe-stepper .miam-recipe-stepper__padding button{left:40px;padding:8px 16px;position:absolute;z-index:3}.miam-recipe-stepper .miam-recipe-stepper__padding button ng-miam-icon{height:16px;margin-left:0;padding-top:20px;transform:rotate(90deg)}.miam-recipe-stepper .miam-recipe-stepper__padding button ng-miam-icon svg path:first-of-type{fill:none}.miam-recipe-stepper .miam-recipe-stepper__links{align-items:center;background-color:var(--m-color-unpure-white);display:flex;justify-content:space-evenly;padding:16px 0;position:-webkit-sticky;position:sticky;top:0;width:100%;z-index:3}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__links{align-items:baseline;justify-content:center;width:100vw}}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link{align-items:center;cursor:pointer;display:flex;flex-direction:column;justify-content:center}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link .miam-recipe-stepper__link__number{align-items:center;border:1px solid;border-radius:64px;color:var(--m-color-grey02);display:flex;font-size:32px;font-style:normal;font-weight:700;height:64px;justify-content:center;line-height:44px;width:64px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link .miam-recipe-stepper__link__number{font-size:22px;height:40px;line-height:32px;width:40px}}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link .miam-recipe-stepper__link__name{color:var(--m-color-grey02);padding-top:8px}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link.active .miam-recipe-stepper__link__number{background-color:var(--m-color-secondary);border-color:var(--m-color-secondary);color:var(--m-color-unpure-white)}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link.active .miam-recipe-stepper__link__name{color:var(--m-color-secondary)}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link__divider{background-color:var(--m-color-slate);height:1px;width:64px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link__divider{width:40px}}.miam-recipe-stepper .miam-recipe-stepper__section{align-items:center;display:flex;flex-direction:column;gap:64px;justify-content:center;padding:84px 0;position:relative;scroll-margin-top:175px;width:100%}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section{gap:0;justify-content:flex-start;padding:24px 36px;width:100vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mandatory{bottom:0;color:var(--m-color-danger);position:absolute;right:32px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mandatory{right:16px}}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .m-input{align-items:flex-start;background-color:transparent;border:none;display:flex;flex-direction:column-reverse;justify-content:flex-start;max-width:unset;min-width:unset}.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__input{border:1px solid var(--m-color-light-slate);border-radius:4px;max-width:90vw;min-width:90vw}.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__label.input__label__top,.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__label:not(.input__label__top){background-color:transparent;color:var(--m-color-black);font-size:24px;font-weight:700;padding-bottom:16px;position:static;transform:none}.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__label:after{color:var(--m-color-warning-text);content:\"*\"}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__type__label{color:var(--m-color-black);font-size:24px;font-weight:700;padding-bottom:16px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__type__label{padding:16px 0;width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section:nth-child(2n){background-color:var(--m-color-primary-light)}.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-text-input .miam-text-input{background-color:var(--m-color-unpure-white)}.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-select-input .miam-select{background-color:var(--m-color-unpure-white);width:330px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__guests{display:flex;gap:16px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__guests{align-items:center;flex-direction:column;justify-content:center;margin:16px 0;width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags{align-items:center;display:flex;flex-direction:column}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__title{font-size:16px;font-weight:700}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap{align-items:center;display:flex;flex-flow:row wrap;margin:10px 8px;max-width:80vw}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag{align-items:center;background-color:var(--m-color-primary-light);border-radius:4px;display:flex;margin:6px;padding:8px 12px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.meal_type{background-color:var(--m-color-tag-meal-type)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.ingredient_category{background-color:var(--m-color-tag-ingredient-category)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.equipment{background-color:var(--m-color-tag-equipment)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.diet{background-color:var(--m-color-tag-diet)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag .miam-recipe-stepper__tag__name{color:var(--m-color-grey01)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag .miam-recipe-stepper__tag__icon .icon-container{-webkit-tap-highlight-color:transparent;cursor:pointer;margin:0 0 0 16px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .m-button-secondary ng-miam-icon{margin:0 16px 0 0}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row{display:flex;flex-wrap:wrap;gap:64px;justify-content:center;width:100%}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row{gap:0;width:100vw}}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description{width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description label{margin-top:16px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description textarea.m-input{height:150px;max-width:700px;resize:none;width:700px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description textarea.m-input{width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description .miam-recipe-stepper__description__counter{color:var(--m-color-light-slate);margin:8px;text-align:end}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture{display:flex;flex-direction:column;gap:8px;width:330px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture{width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture .miam-uploader{margin-bottom:0}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture .miam-recipe-stepper__picture__warning{border:1px solid var(--m-color-warning);border-radius:8px;color:var(--m-color-warning-text);display:flex;gap:12px;padding:8px;position:relative}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture .miam-recipe-stepper__picture__warning .miam-recipe-stepper__picture__warning__background{background-color:var(--m-color-warning);border-radius:8px;height:100%;left:0;opacity:.15;position:absolute;top:0;width:100%}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__times{display:flex;flex-wrap:wrap;gap:32px;justify-content:space-evenly}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__times .miam-time-picker{align-items:center;flex-direction:column;justify-content:center;margin-bottom:16px;width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider{width:560px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider label{text-align:center;width:100%}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider{width:90vw}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider label{width:100vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input{display:flex;flex-direction:row-reverse;gap:32px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input{flex-direction:column;gap:0;width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions{margin-top:50px;position:relative}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions{margin-top:0}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions textarea{height:300px!important;max-height:300px!important;max-width:calc(98vw - 776px);min-height:300px!important;width:400px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions textarea{height:unset!important;max-width:unset!important;min-height:110px!important;width:unset!important}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions button{margin-top:16px}.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-list-input:first-of-type .miam-list-input__actions .miam-list-input__actions__instructions:before{content:\"Merci d'indiquer la quantit\u00E9 en premier comme indiqu\u00E9 dans les exemples.\\a\\a\";font-weight:700}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mobile__buttons{display:grid;gap:8px;grid-template-columns:repeat(2,1fr)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mobile__buttons button{margin-right:0}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mobile__buttons button.active{background-color:var(--m-color-primary);color:var(--m-color-white)}.miam-recipe-stepper ng-miam-loader{display:flex;justify-content:center;padding:50vh;width:100%}.miam-recipe-stepper .miam-recipe-stepper__footer{display:flex;gap:64px;justify-content:center;padding:64px 0}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__footer{display:grid;gap:8px;grid-template-columns:repeat(2,1fr);padding:16px 8px}}"], encapsulation: 2, changeDetection: 0 });
|
|
17391
|
+
}, directives: [IconComponent, i8.NgClass, i8.NgIf, i9.NgControlStatusGroup, i9.FormGroupDirective, TextInputComponent, i9.DefaultValueAccessor, i9.NgControlStatus, i9.FormControlDirective, RecipeTypeChooserComponent, CounterInputComponent, i9.FormControlName, DragDropInputComponent, i9.MaxLengthValidator, SliderComponent, i8.NgForOf, TimePickerComponent, ListInputComponent, i9.FormArrayName, LoaderComponent, TagsSelectorComponent], styles: ["@charset \"UTF-8\";.miam-recipe-stepper__anchor{bottom:0;height:250px;margin-top:-250px;position:relative}.miam-recipe-stepper{display:flex;flex-direction:column;width:100%}.miam-recipe-stepper label{font-size:19px;line-height:24px}.miam-recipe-stepper label span{color:var(--m-color-secondary)}.miam-recipe-stepper .miam-recipe-stepper__padding{background-color:var(--m-color-unpure-white);height:32px;position:relative;width:100%}.miam-recipe-stepper .miam-recipe-stepper__padding button{left:40px;padding:8px 16px;position:absolute;z-index:3}.miam-recipe-stepper .miam-recipe-stepper__padding button ng-miam-icon{height:16px;margin-left:0;padding-top:20px;transform:rotate(90deg)}.miam-recipe-stepper .miam-recipe-stepper__padding button ng-miam-icon svg path:first-of-type{fill:none}.miam-recipe-stepper .miam-recipe-stepper__links{align-items:center;background-color:var(--m-color-unpure-white);display:flex;justify-content:space-evenly;padding:16px 0;position:-webkit-sticky;position:sticky;top:0;width:100%;z-index:3}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__links{align-items:baseline;justify-content:center;width:100vw}}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link{align-items:center;cursor:pointer;display:flex;flex-direction:column;justify-content:center}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link .miam-recipe-stepper__link__number{align-items:center;border:1px solid;border-radius:64px;color:var(--m-color-grey02);display:flex;font-size:32px;font-style:normal;font-weight:700;height:64px;justify-content:center;line-height:44px;width:64px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link .miam-recipe-stepper__link__number{font-size:22px;height:40px;line-height:32px;width:40px}}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link .miam-recipe-stepper__link__name{color:var(--m-color-grey02);padding-top:8px}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link.active .miam-recipe-stepper__link__number{background-color:var(--m-color-secondary);border-color:var(--m-color-secondary);color:var(--m-color-unpure-white)}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link.active .miam-recipe-stepper__link__name{color:var(--m-color-secondary)}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link__divider{background-color:var(--m-color-slate);height:1px;width:64px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link__divider{width:40px}}.miam-recipe-stepper .miam-recipe-stepper__section{align-items:center;display:flex;flex-direction:column;gap:64px;justify-content:center;padding:84px 0;position:relative;scroll-margin-top:175px;width:100%}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section{gap:0;justify-content:flex-start;padding:24px 36px;width:100vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mandatory{bottom:0;color:var(--m-color-danger);position:absolute;right:32px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mandatory{right:16px}}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .m-input{align-items:flex-start;background-color:transparent;border:none;display:flex;flex-direction:column-reverse;justify-content:flex-start;max-width:unset;min-width:unset}.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__input{border:1px solid var(--m-color-light-slate);border-radius:4px;max-width:90vw;min-width:90vw}.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__label.input__label__top,.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__label:not(.input__label__top){background-color:transparent;color:var(--m-color-black);font-size:24px;font-weight:700;padding-bottom:16px;position:static;transform:none}.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__label:after{color:var(--m-color-warning-text);content:\"*\"}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__type__label{color:var(--m-color-black);font-size:24px;font-weight:700;padding-bottom:16px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__type__label{padding:16px 0;width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section:nth-child(2n){background-color:var(--m-color-primary-light)}.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-text-input .miam-text-input{background-color:var(--m-color-unpure-white)}.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-select-input .miam-select{background-color:var(--m-color-unpure-white);width:330px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__guests{display:flex;gap:16px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__guests{align-items:center;flex-direction:column;justify-content:center;margin:16px 0;width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags{align-items:center;display:flex;flex-direction:column}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__title{font-size:16px;font-weight:700}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap{align-items:center;display:flex;flex-flow:row wrap;margin:10px 8px;max-width:80vw}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag{align-items:center;background-color:var(--m-color-primary-light);border-radius:4px;display:flex;margin:6px;padding:8px 12px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.meal_type{background-color:var(--m-color-tag-meal-type)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.ingredient_category{background-color:var(--m-color-tag-ingredient-category)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.equipment{background-color:var(--m-color-tag-equipment)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.diet{background-color:var(--m-color-tag-diet)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag .miam-recipe-stepper__tag__name{color:var(--m-color-grey01)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag .miam-recipe-stepper__tag__icon .icon-container{-webkit-tap-highlight-color:transparent;cursor:pointer;margin:0 0 0 16px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .m-button-secondary ng-miam-icon{margin:0 16px 0 0}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row{display:flex;flex-wrap:wrap;gap:64px;justify-content:center;width:100%}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row{gap:0;width:100vw}}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description{width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description label{margin-top:16px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description textarea.m-input{height:150px;max-width:700px;resize:none;width:700px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description textarea.m-input{width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description .miam-recipe-stepper__description__counter{color:var(--m-color-light-slate);margin:8px;text-align:end}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture{display:flex;flex-direction:column;gap:8px;width:330px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture{width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture .miam-uploader{margin-bottom:0}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture .miam-recipe-stepper__picture__warning{border:1px solid var(--m-color-warning);border-radius:8px;color:var(--m-color-warning-text);display:flex;gap:12px;padding:8px;position:relative}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture .miam-recipe-stepper__picture__warning .miam-recipe-stepper__picture__warning__background{background-color:var(--m-color-warning);border-radius:8px;height:100%;left:0;opacity:.15;position:absolute;top:0;width:100%}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__times{display:flex;flex-wrap:wrap;gap:32px;justify-content:space-evenly}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__times .miam-time-picker{align-items:center;flex-direction:column;justify-content:center;margin-bottom:16px;width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider{width:560px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider label{text-align:center;width:100%}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider{width:90vw}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider label{width:100vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input{display:flex;flex-direction:row-reverse;gap:32px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input{flex-direction:column;gap:0;width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions{margin-top:50px;position:relative}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions{margin-top:0}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions textarea{height:300px!important;max-height:300px!important;max-width:calc(98vw - 776px);min-height:300px!important;width:400px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions textarea{height:unset!important;max-width:unset!important;min-height:110px!important;width:unset!important}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions button{margin-top:16px}@media (min-width:1024px){.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-list-input{width:calc(100% - 16px)}}.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-list-input:first-of-type .miam-list-input__actions .miam-list-input__actions__instructions:before{content:\"Merci d'indiquer la quantit\u00E9 en premier comme indiqu\u00E9 dans les exemples.\\a\\a\";font-weight:700}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mobile__buttons{display:grid;gap:8px;grid-template-columns:repeat(2,1fr)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mobile__buttons button{margin-right:0}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mobile__buttons button.active{background-color:var(--m-color-primary);color:var(--m-color-white)}.miam-recipe-stepper ng-miam-loader{display:flex;justify-content:center;padding:50vh;width:100%}.miam-recipe-stepper .miam-recipe-stepper__footer{display:flex;gap:64px;justify-content:center;padding:64px 0}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__footer{display:grid;gap:8px;grid-template-columns:repeat(2,1fr);padding:16px 8px}}"], encapsulation: 2, changeDetection: 0 });
|
|
17311
17392
|
var ɵRecipeStepperComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(RecipeStepperComponent);
|
|
17312
17393
|
/*@__PURE__*/ (function () {
|
|
17313
17394
|
i0.ɵsetClassMetadata(RecipeStepperComponent, [{
|
|
@@ -17321,6 +17402,8 @@
|
|
|
17321
17402
|
}]
|
|
17322
17403
|
}], null, { displayTags: [{
|
|
17323
17404
|
type: i0.Input
|
|
17405
|
+
}], ingredientsPictures: [{
|
|
17406
|
+
type: i0.Input
|
|
17324
17407
|
}], topAnchor: [{
|
|
17325
17408
|
type: i0.ViewChild,
|
|
17326
17409
|
args: ['topAnchor']
|
|
@@ -17333,7 +17416,7 @@
|
|
|
17333
17416
|
}] });
|
|
17334
17417
|
})();
|
|
17335
17418
|
|
|
17336
|
-
var _c0$
|
|
17419
|
+
var _c0$x = ["tag"];
|
|
17337
17420
|
function RecipeTagsComponent_div_0_div_2_Template(rf, ctx) {
|
|
17338
17421
|
if (rf & 1) {
|
|
17339
17422
|
var _r6_1 = i0.ɵɵgetCurrentView();
|
|
@@ -17463,7 +17546,7 @@
|
|
|
17463
17546
|
RecipeTagsComponent.ɵfac = function RecipeTagsComponent_Factory(t) { return new (t || RecipeTagsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(BasketsService), i0.ɵɵdirectiveInject(ContextService)); };
|
|
17464
17547
|
RecipeTagsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeTagsComponent, selectors: [["ng-miam-recipe-tags"]], viewQuery: function RecipeTagsComponent_Query(rf, ctx) {
|
|
17465
17548
|
if (rf & 1) {
|
|
17466
|
-
i0.ɵɵviewQuery(_c0$
|
|
17549
|
+
i0.ɵɵviewQuery(_c0$x, true);
|
|
17467
17550
|
}
|
|
17468
17551
|
if (rf & 2) {
|
|
17469
17552
|
var _t;
|
|
@@ -17601,7 +17684,7 @@
|
|
|
17601
17684
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 1, line_r8));
|
|
17602
17685
|
}
|
|
17603
17686
|
}
|
|
17604
|
-
var _c0$
|
|
17687
|
+
var _c0$y = function (a0) { return { rotate: a0 }; };
|
|
17605
17688
|
var _c1$h = function (a0) { return { wrap: a0 }; };
|
|
17606
17689
|
function RecipesHistoryComponent_div_6_Template(rf, ctx) {
|
|
17607
17690
|
if (rf & 1) {
|
|
@@ -17628,7 +17711,7 @@
|
|
|
17628
17711
|
i0.ɵɵadvance(3);
|
|
17629
17712
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 5, group_r6.date));
|
|
17630
17713
|
i0.ɵɵadvance(2);
|
|
17631
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
17714
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$y, !group_r6.show));
|
|
17632
17715
|
i0.ɵɵadvance(1);
|
|
17633
17716
|
i0.ɵɵproperty("iconName", ctx_r2.icon.ChevronDown);
|
|
17634
17717
|
i0.ɵɵadvance(1);
|
|
@@ -17805,7 +17888,7 @@
|
|
|
17805
17888
|
}], function () { return []; }, null);
|
|
17806
17889
|
})();
|
|
17807
17890
|
|
|
17808
|
-
var _c0$
|
|
17891
|
+
var _c0$z = ["details"];
|
|
17809
17892
|
function RecipeModalComponent_ng_miam_recipe_details_1_Template(rf, ctx) {
|
|
17810
17893
|
if (rf & 1) {
|
|
17811
17894
|
var _r4_1 = i0.ɵɵgetCurrentView();
|
|
@@ -17908,7 +17991,7 @@
|
|
|
17908
17991
|
RecipeModalComponent.ɵfac = function RecipeModalComponent_Factory(t) { return new (t || RecipeModalComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(PrintService), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(GroceriesListsService)); };
|
|
17909
17992
|
RecipeModalComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeModalComponent, selectors: [["ng-miam-recipe-modal"]], viewQuery: function RecipeModalComponent_Query(rf, ctx) {
|
|
17910
17993
|
if (rf & 1) {
|
|
17911
|
-
i0.ɵɵviewQuery(_c0$
|
|
17994
|
+
i0.ɵɵviewQuery(_c0$z, true);
|
|
17912
17995
|
}
|
|
17913
17996
|
if (rf & 2) {
|
|
17914
17997
|
var _t;
|
|
@@ -17945,7 +18028,7 @@
|
|
|
17945
18028
|
}] });
|
|
17946
18029
|
})();
|
|
17947
18030
|
|
|
17948
|
-
var _c0$
|
|
18031
|
+
var _c0$A = ["recipeCard"];
|
|
17949
18032
|
function SuggestionCardComponent_ng_miam_recipe_card_0_Template(rf, ctx) {
|
|
17950
18033
|
if (rf & 1) {
|
|
17951
18034
|
var _r3_1 = i0.ɵɵgetCurrentView();
|
|
@@ -18047,7 +18130,7 @@
|
|
|
18047
18130
|
SuggestionCardComponent.ɵfac = function SuggestionCardComponent_Factory(t) { return new (t || SuggestionCardComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(GroceriesListsService), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(PointOfSalesService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(RecipeEventsService), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
18048
18131
|
SuggestionCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SuggestionCardComponent, selectors: [["ng-miam-suggestion-card"]], viewQuery: function SuggestionCardComponent_Query(rf, ctx) {
|
|
18049
18132
|
if (rf & 1) {
|
|
18050
|
-
i0.ɵɵviewQuery(_c0$
|
|
18133
|
+
i0.ɵɵviewQuery(_c0$A, true);
|
|
18051
18134
|
}
|
|
18052
18135
|
if (rf & 2) {
|
|
18053
18136
|
var _t;
|