@wizishop/img-manager 0.2.83 → 0.2.87

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.
Files changed (41) hide show
  1. package/assets/i18n/en.json +1 -1
  2. package/assets/i18n/fr.json +1 -1
  3. package/bundles/wizishop-img-manager.umd.js +268 -27
  4. package/bundles/wizishop-img-manager.umd.js.map +1 -1
  5. package/bundles/wizishop-img-manager.umd.min.js +2 -2
  6. package/bundles/wizishop-img-manager.umd.min.js.map +1 -1
  7. package/esm2015/lib/components/img-tabs/img-tabs.component.js +31 -6
  8. package/esm2015/lib/components/shared/select/call-to-action.model.js +1 -0
  9. package/esm2015/lib/components/shared/select/select-items.dto.js +1 -0
  10. package/esm2015/lib/components/shared/select/select.component.js +133 -0
  11. package/esm2015/lib/directives/zindex-toggle.directive.js +49 -0
  12. package/esm2015/lib/pipes/select/select-filters.pipe.js +17 -0
  13. package/esm2015/lib/services/img-manager.service.js +11 -1
  14. package/esm2015/lib/wz-img-manager.module.js +11 -3
  15. package/esm2015/wizishop-img-manager.js +20 -17
  16. package/esm5/lib/components/img-tabs/img-tabs.component.js +31 -6
  17. package/esm5/lib/components/shared/select/call-to-action.model.js +1 -0
  18. package/esm5/lib/components/shared/select/select-items.dto.js +1 -0
  19. package/esm5/lib/components/shared/select/select.component.js +136 -0
  20. package/esm5/lib/directives/zindex-toggle.directive.js +54 -0
  21. package/esm5/lib/pipes/select/select-filters.pipe.js +20 -0
  22. package/esm5/lib/services/img-manager.service.js +11 -1
  23. package/esm5/lib/wz-img-manager.module.js +11 -3
  24. package/esm5/wizishop-img-manager.js +20 -17
  25. package/fesm2015/wizishop-img-manager.js +236 -8
  26. package/fesm2015/wizishop-img-manager.js.map +1 -1
  27. package/fesm5/wizishop-img-manager.js +247 -8
  28. package/fesm5/wizishop-img-manager.js.map +1 -1
  29. package/lib/components/img-tabs/img-tabs.component.d.ts +4 -3
  30. package/lib/components/shared/select/call-to-action.model.d.ts +6 -0
  31. package/lib/components/shared/select/select-items.dto.d.ts +8 -0
  32. package/lib/components/shared/select/select.component.d.ts +38 -0
  33. package/lib/directives/zindex-toggle.directive.d.ts +13 -0
  34. package/lib/pipes/select/select-filters.pipe.d.ts +5 -0
  35. package/lib/services/img-manager.service.d.ts +2 -1
  36. package/package.json +2 -1
  37. package/wizishop-img-manager-0.2.87.tgz +0 -0
  38. package/wizishop-img-manager.d.ts +19 -16
  39. package/wizishop-img-manager.metadata.json +1 -1
  40. package/wz-img-manager.scss +1786 -1481
  41. package/wizishop-img-manager-0.2.83.tgz +0 -0
@@ -6,6 +6,7 @@ import { NwbSnackbarConfig } from '@wizishop/ng-wizi-bulma';
6
6
  import { stateDisplayed } from '../../dto/export-dtos.api';
7
7
  import { AlertService } from '../../services/alert.service';
8
8
  import { Router } from '@angular/router';
9
+ import { SelectItem } from '../shared/select/select-items.dto';
9
10
  export declare class ImgTabsComponent implements OnInit {
10
11
  private imgEventEditService;
11
12
  private alertService;
@@ -16,8 +17,8 @@ export declare class ImgTabsComponent implements OnInit {
16
17
  imgManagerClosed: EventEmitter<any>;
17
18
  currentTab: EventEmitter<any>;
18
19
  switchDisplayWindow: EventEmitter<boolean>;
19
- tabActive: string;
20
- tabs: string[];
20
+ tabs: SelectItem[];
21
+ tabActive: SelectItem;
21
22
  editTab: boolean;
22
23
  imgToEdit: ImgPictureDTO;
23
24
  imgUpload: boolean;
@@ -25,7 +26,7 @@ export declare class ImgTabsComponent implements OnInit {
25
26
  snackBarNewVersionConfig: NwbSnackbarConfig;
26
27
  constructor(imgEventEditService: ImgEventService, alertService: AlertService, route: Router);
27
28
  ngOnInit(): void;
28
- toggleTabs(value: string): void;
29
+ toggleTabs(item: SelectItem): void;
29
30
  onImgUploaded(img: ImgPictureDTO[]): void;
30
31
  onEditClosed(msgKey: string): void;
31
32
  onShowImgUploaded(): void;
@@ -0,0 +1,6 @@
1
+ export interface CalllToAction {
2
+ value?: any;
3
+ name?: string;
4
+ icon?: string;
5
+ boldText?: string;
6
+ }
@@ -0,0 +1,8 @@
1
+ export interface SelectItem {
2
+ name: string;
3
+ value?: any;
4
+ icon?: string;
5
+ selected?: boolean;
6
+ hide?: boolean;
7
+ id: number;
8
+ }
@@ -0,0 +1,38 @@
1
+ import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { ControlValueAccessor } from '@angular/forms';
4
+ import { SelectItem } from './select-items.dto';
5
+ import { CalllToAction } from './call-to-action.model';
6
+ export declare class SelectComponent implements OnInit, ControlValueAccessor {
7
+ private translateService;
8
+ items: SelectItem[];
9
+ placeholder: string;
10
+ label: string;
11
+ maxWidthItems: string;
12
+ search: boolean;
13
+ type: string;
14
+ callToAction: CalllToAction;
15
+ maxWidth: string;
16
+ disabled: boolean;
17
+ selectValue: EventEmitter<number>;
18
+ clickOnCallToAction: EventEmitter<any>;
19
+ searchElement: ElementRef;
20
+ openCategories: boolean;
21
+ searchValue: string;
22
+ indexItemSelected: number;
23
+ constructor(translateService: TranslateService);
24
+ ngOnInit(): void;
25
+ onClose(): void;
26
+ customTB(item: SelectItem, index: number): string;
27
+ onSelectItem(id: number): void;
28
+ onClickCallToAction(): void;
29
+ private getItemSelected;
30
+ showCategories(): void;
31
+ private unselectAll;
32
+ private setIndexItemSelected;
33
+ onChange: (selectItem: SelectItem) => void;
34
+ onTouch: any;
35
+ writeValue(selectItem: any): void;
36
+ registerOnChange(fn: any): void;
37
+ registerOnTouched(fn: any): void;
38
+ }
@@ -0,0 +1,13 @@
1
+ import { ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
+ export declare class ZindexToggleDirective implements OnInit, OnDestroy {
3
+ private currentElement;
4
+ private renderer;
5
+ isActived: boolean;
6
+ onEventChange: EventEmitter<any>;
7
+ set isActive(value: boolean);
8
+ get isActive(): boolean;
9
+ constructor(currentElement: ElementRef, renderer: Renderer2);
10
+ ngOnInit(): void;
11
+ switchToggle(): void;
12
+ ngOnDestroy(): void;
13
+ }
@@ -0,0 +1,5 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { SelectItem } from '../../components/shared/select/select-items.dto';
3
+ export declare class SelectFiltersPipe implements PipeTransform {
4
+ transform(items: SelectItem[], filterName: string): any;
5
+ }
@@ -8,6 +8,7 @@ export declare class ImgManagerService {
8
8
  shopToken: string;
9
9
  params: HttpParams;
10
10
  private pageFicheProductConfig;
11
+ private angularFicheProductConfig;
11
12
  private wiziblockConfig;
12
13
  private simpleWithButtonOpenerConfig;
13
14
  private fullWindowConfig;
@@ -24,6 +25,6 @@ export declare class ImgManagerService {
24
25
  changeImgName(fileName: string, id_file: string): Observable<Object>;
25
26
  removeImg(id_file: string): Observable<Object>;
26
27
  removeMultipleImg(id_array: string[]): Observable<Object>;
27
- getImgManagerDisplayConfig(displayName: "window" | "wizi-block" | "fiche-product" | "simple-with-button"): ImgManagerDisplayConfig;
28
+ getImgManagerDisplayConfig(displayName: "window" | "wizi-block" | "fiche-product" | "simple-with-button" | 'angular-fiche-product'): ImgManagerDisplayConfig;
28
29
  getAllImgManagerDisplayConfig(): ImgManagerDisplayConfig[];
29
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/img-manager",
3
- "version": "0.2.83",
3
+ "version": "0.2.87",
4
4
  "description": "The best and the most beautiful image manager.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,6 +32,7 @@
32
32
  "include-media": "^1.4.9",
33
33
  "ngx-image-cropper": "^3.1.9",
34
34
  "ngx-scrollbar": "^7.2.3",
35
+ "ngx-perfect-scrollbar": "^10.1.1",
35
36
  "rxjs": "~6.5.4",
36
37
  "sass-flex-mixin": "^1.0.3"
37
38
  },
Binary file
@@ -25,24 +25,27 @@ export { DropdownComponent as ɵu } from './lib/components/shared/dropdown/dropd
25
25
  export { InputSearchComponent as ɵbc } from './lib/components/shared/input-search/input-search.component';
26
26
  export { PageSelectorComponent as ɵbg } from './lib/components/shared/pagination/page-selector/page-selector.component';
27
27
  export { PaginationComponent as ɵbd } from './lib/components/shared/pagination/pagination.component';
28
+ export { SelectComponent as ɵbh } from './lib/components/shared/select/select.component';
28
29
  export { TableComponent as ɵba } from './lib/components/shared/table/table.component';
29
30
  export { UploadListComponent as ɵo } from './lib/components/upload-list/upload-list.component';
30
- export { AbstractDebounceDirective as ɵbp } from './lib/directives/abstract-debounce/abstract-debounce.directive';
31
- export { DebounceKeyupDirective as ɵbq } from './lib/directives/abstract-debounce/debounce-keyup.directive';
32
- export { AutoHideDirective as ɵbj } from './lib/directives/auto-hide.directive';
33
- export { CopyClipboardDirective as ɵbk } from './lib/directives/copy-to-clipboard.directive';
34
- export { DragDropDirective as ɵbh } from './lib/directives/drag-drop.directive';
35
- export { LoadingDirective as ɵbi } from './lib/directives/loading.directive';
36
- export { CheckBoxRow as ɵbm } from './lib/directives/table/checkBoxRow.directive';
37
- export { TableColumn as ɵbl } from './lib/directives/table/column.directive';
38
- export { TableColumnHeader as ɵbn } from './lib/directives/table/columnHeader.directive';
39
- export { TableRow as ɵbo } from './lib/directives/table/raw.directive';
40
- export { ImageSrcPipe as ɵbu } from './lib/pipes/images/img-src.pipe';
41
- export { NumberToArray as ɵbv } from './lib/pipes/number-to-array.pipe';
42
- export { PagniationArrayTotalPages as ɵbr } from './lib/pipes/pagination/array-total-pages/array-pages.pipe';
43
- export { LargeNumberOfPagePipe as ɵbw } from './lib/pipes/pagination/large-number-of-page/large-number-of-page.pipe';
44
- export { PagniationText as ɵbt } from './lib/pipes/pagination/text/custom-text.pipe';
45
- export { PagniationIsLastPage as ɵbs } from './lib/pipes/pagination/total-pages/is-last-page.pipe';
31
+ export { AbstractDebounceDirective as ɵbq } from './lib/directives/abstract-debounce/abstract-debounce.directive';
32
+ export { DebounceKeyupDirective as ɵbr } from './lib/directives/abstract-debounce/debounce-keyup.directive';
33
+ export { AutoHideDirective as ɵbk } from './lib/directives/auto-hide.directive';
34
+ export { CopyClipboardDirective as ɵbl } from './lib/directives/copy-to-clipboard.directive';
35
+ export { DragDropDirective as ɵbi } from './lib/directives/drag-drop.directive';
36
+ export { LoadingDirective as ɵbj } from './lib/directives/loading.directive';
37
+ export { CheckBoxRow as ɵbn } from './lib/directives/table/checkBoxRow.directive';
38
+ export { TableColumn as ɵbm } from './lib/directives/table/column.directive';
39
+ export { TableColumnHeader as ɵbo } from './lib/directives/table/columnHeader.directive';
40
+ export { TableRow as ɵbp } from './lib/directives/table/raw.directive';
41
+ export { ZindexToggleDirective as ɵbs } from './lib/directives/zindex-toggle.directive';
42
+ export { ImageSrcPipe as ɵbw } from './lib/pipes/images/img-src.pipe';
43
+ export { NumberToArray as ɵbx } from './lib/pipes/number-to-array.pipe';
44
+ export { PagniationArrayTotalPages as ɵbt } from './lib/pipes/pagination/array-total-pages/array-pages.pipe';
45
+ export { LargeNumberOfPagePipe as ɵby } from './lib/pipes/pagination/large-number-of-page/large-number-of-page.pipe';
46
+ export { PagniationText as ɵbv } from './lib/pipes/pagination/text/custom-text.pipe';
47
+ export { PagniationIsLastPage as ɵbu } from './lib/pipes/pagination/total-pages/is-last-page.pipe';
48
+ export { SelectFiltersPipe as ɵbz } from './lib/pipes/select/select-filters.pipe';
46
49
  export { AlertService as ɵg } from './lib/services/alert.service';
47
50
  export { ImgManagerConfigService as ɵa } from './lib/services/config/external-config.service';
48
51
  export { ImgCDNService as ɵb } from './lib/services/config/img-cdn.service';