@stemy/ngx-utils 19.2.0 → 19.2.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.
@@ -16,13 +16,16 @@ export declare class UploadComponent implements ControlValueAccessor, OnChanges
16
16
  makeUpload: (f: File) => any;
17
17
  preProcess: (f: File) => boolean;
18
18
  onUploaded: EventEmitter<IFileUploadResult[]>;
19
+ onRemove: EventEmitter<string[]>;
19
20
  acceptAttr: string;
20
21
  isImage: boolean;
21
22
  dropAllowed: boolean;
22
23
  processing: IFileUploadProcess[];
23
24
  onChange: Function;
24
25
  onTouched: Function;
25
- buttonTemplate: TemplateRef<any>;
26
+ remove: (index?: number) => void;
27
+ uploadButton: TemplateRef<any>;
28
+ removeButton: TemplateRef<any>;
26
29
  protected fileImageCache: any[];
27
30
  protected acceptTypes: string[];
28
31
  get http(): BaseHttpClient;
@@ -36,9 +39,8 @@ export declare class UploadComponent implements ControlValueAccessor, OnChanges
36
39
  setDisabledState(val: boolean): void;
37
40
  onInputClick(ev: MouseEvent): void;
38
41
  onInputChange(ev: Event): void;
39
- delete(index?: number): void;
40
42
  getUrl(image: any): string;
41
43
  processFiles(files: File[]): Promise<IFileUploadResult[]>;
42
44
  static ɵfac: i0.ɵɵFactoryDeclaration<UploadComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<UploadComponent, "upload", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "baseUrl": { "alias": "baseUrl"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "makeUpload": { "alias": "makeUpload"; "required": false; }; "preProcess": { "alias": "preProcess"; "required": false; }; }, { "onUploaded": "onUploaded"; }, ["buttonTemplate"], never, false, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<UploadComponent, "upload", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "baseUrl": { "alias": "baseUrl"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "makeUpload": { "alias": "makeUpload"; "required": false; }; "preProcess": { "alias": "preProcess"; "required": false; }; }, { "onUploaded": "onUploaded"; "onRemove": "onRemove"; }, ["uploadButton", "removeButton"], never, false, never>;
44
46
  }
@@ -54,7 +54,7 @@ import { UploadComponent } from "./components/upload/upload.component";
54
54
  export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe)[];
55
55
  export declare const directives: (typeof AsyncMethodBase | typeof BackgroundDirective | typeof DynamicTableTemplateDirective | typeof GlobalTemplateDirective | typeof IconDirective | typeof NgxTemplateOutletDirective | typeof PaginationDirective | typeof PaginationItemDirective | typeof ResourceIfDirective | typeof StickyDirective | typeof StickyClassDirective | typeof UnorderedListItemDirective | typeof UnorderedListTemplateDirective)[];
56
56
  export declare const components: (typeof DropListComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent | typeof UploadComponent)[];
57
- export declare const providers: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | typeof BaseHttpClient | typeof BaseHttpService | typeof AuthGuard | typeof AclService | typeof StaticAuthService | typeof ConfigService | typeof BaseDialogService | typeof ErrorHandlerService | typeof EventsService | typeof FormatterService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof PromiseService | typeof StateService | typeof StorageService | typeof BaseToasterService | typeof TranslatedUrlSerializer | typeof UniversalService | typeof WasmService | typeof DeviceDetectorService | {
57
+ export declare const providers: (typeof UniversalService | typeof StateService | typeof AuthGuard | typeof BaseHttpClient | typeof StorageService | typeof BaseHttpService | typeof WasmService | typeof AclService | typeof StaticAuthService | typeof ConfigService | typeof BaseDialogService | typeof ErrorHandlerService | typeof EventsService | typeof FormatterService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof BaseToasterService | typeof TranslatedUrlSerializer | typeof PromiseService | typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | typeof DeviceDetectorService | {
58
58
  provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
59
59
  useClass: typeof DragDropEventPlugin;
60
60
  multi: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "19.2.0",
3
+ "version": "19.2.2",
4
4
  "license": "MIT",
5
5
  "public": true,
6
6
  "repository": "https://github.com/stemyke/ngx-utils.git",