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
|
@@ -15,6 +15,10 @@ export declare class ListInputComponent {
|
|
|
15
15
|
instructions: string;
|
|
16
16
|
ingredientMode: boolean;
|
|
17
17
|
list: FormArray;
|
|
18
|
+
ingredientsPictures: {
|
|
19
|
+
visible: boolean;
|
|
20
|
+
editable: boolean;
|
|
21
|
+
};
|
|
18
22
|
deleteId: EventEmitter<string>;
|
|
19
23
|
orderHasChanged: EventEmitter<void>;
|
|
20
24
|
icon: typeof Icon;
|
|
@@ -32,6 +36,7 @@ export declare class ListInputComponent {
|
|
|
32
36
|
isIngredientReviewed(ingredientName: any): Observable<boolean>;
|
|
33
37
|
isQuantityReviewed(unitName: any): Observable<boolean>;
|
|
34
38
|
trackByIndex(index: number, el: any): string;
|
|
39
|
+
uploadIngredientPicture(files: any, ingForm: any): void;
|
|
35
40
|
static ɵfac: i0.ɵɵFactoryDef<ListInputComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDefWithMeta<ListInputComponent, "ng-miam-list-input", never, { "hint": "hint"; "placeholder": "placeholder"; "label": "label"; "instructions": "instructions"; "ingredientMode": "ingredientMode"; "list": "list"; }, { "deleteId": "deleteId"; "orderHasChanged": "orderHasChanged"; }, never, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDefWithMeta<ListInputComponent, "ng-miam-list-input", never, { "hint": "hint"; "placeholder": "placeholder"; "label": "label"; "instructions": "instructions"; "ingredientMode": "ingredientMode"; "list": "list"; "ingredientsPictures": "ingredientsPictures"; }, { "deleteId": "deleteId"; "orderHasChanged": "orderHasChanged"; }, never, never>;
|
|
37
42
|
}
|
|
@@ -25,9 +25,10 @@ export declare class UserService {
|
|
|
25
25
|
hasPreference(pref: any): Observable<boolean>;
|
|
26
26
|
preferenceDefined(pref: any): Observable<boolean>;
|
|
27
27
|
profilingForbidden(): boolean;
|
|
28
|
+
getUserSupplier(): Observable<Supplier>;
|
|
29
|
+
can(permission: any): Observable<boolean>;
|
|
28
30
|
private initProvider;
|
|
29
31
|
private initRoles;
|
|
30
|
-
getUserSupplier(): Observable<Supplier>;
|
|
31
32
|
static ɵfac: i0.ɵɵFactoryDef<UserService, never>;
|
|
32
33
|
static ɵprov: i0.ɵɵInjectableDef<UserService>;
|
|
33
34
|
}
|
|
@@ -4,6 +4,10 @@ import { RecipeFormComponent } from '../recipe-form/recipe-form.component';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class RecipeStepperComponent extends RecipeFormComponent implements AfterViewChecked {
|
|
6
6
|
displayTags: boolean;
|
|
7
|
+
ingredientsPictures: {
|
|
8
|
+
visible: boolean;
|
|
9
|
+
editable: boolean;
|
|
10
|
+
};
|
|
7
11
|
INGREDIENT_PLACEHOLDER: string;
|
|
8
12
|
STEP_PLACEHOLDER: string;
|
|
9
13
|
INGREDIENT_INSTRUCTIONS: string;
|
|
@@ -31,5 +35,5 @@ export declare class RecipeStepperComponent extends RecipeFormComponent implemen
|
|
|
31
35
|
displayTagsSelector(display: boolean): void;
|
|
32
36
|
toggleShowIngredient(isShow: any): void;
|
|
33
37
|
static ɵfac: i0.ɵɵFactoryDef<RecipeStepperComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDefWithMeta<RecipeStepperComponent, "ng-miam-recipe-stepper", never, { "displayTags": "displayTags"; }, {}, never, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDefWithMeta<RecipeStepperComponent, "ng-miam-recipe-stepper", never, { "displayTags": "displayTags"; "ingredientsPictures": "ingredientsPictures"; }, {}, never, never>;
|
|
35
39
|
}
|