@smartbit4all/ng-client 4.2.118 → 4.2.119

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.
@@ -14,7 +14,6 @@ import { UiActionUploadDescriptor } from '../../../view-context/api/model/uiActi
14
14
  export interface FileUploaderProperties {
15
15
  uploadAction?: UiAction;
16
16
  changeAction?: UiAction;
17
- downloadAction?: UiAction;
18
17
  isMultiple?: boolean;
19
18
  uploadDescriptor?: UiActionUploadDescriptor;
20
19
  }
@@ -508,6 +508,7 @@ export interface SmartFileUploader {
508
508
  maxSizeMb?: number;
509
509
  i18n?: any;
510
510
  fileUploaderProperties?: FileUploaderProperties;
511
+ toolbarId?: string;
511
512
  }
512
513
  export interface SmartImage {
513
514
  type: SmartFormWidgetType.IMAGE;
@@ -2,9 +2,12 @@ import { EventEmitter } from '@angular/core';
2
2
  import { SmartFileUploader } from '../../../smartform.form-model';
3
3
  import { UiAction, UiActionDescriptor, UiActionUploadDescriptor } from '../../../../view-context/api/model/models';
4
4
  import { ComponentLibrary } from '../../../../view-context/utility/componentLibrary';
5
+ import { UiActionModel } from '../../../../view-context/smart-ui-action/ui-action.model';
6
+ import { UiActionToolbarComponent } from '../../../../view-context/smart-ui-action/ui-action-toolbar.component';
5
7
  import * as i0 from "@angular/core";
6
8
  export declare class SmartFileEditorComponent {
7
9
  compLib?: ComponentLibrary | undefined;
10
+ toolbar: UiActionToolbarComponent;
8
11
  widgetInstance: SmartFileUploader;
9
12
  uploadFilesEvent: EventEmitter<{
10
13
  files: any[];
@@ -12,12 +15,11 @@ export declare class SmartFileEditorComponent {
12
15
  uploadDescriptor?: UiActionUploadDescriptor | undefined;
13
16
  }>;
14
17
  constructor(compLib?: ComponentLibrary | undefined);
18
+ uiActionModels: UiActionModel[];
15
19
  fileToChange?: any;
16
- ngOnInit(): void;
17
20
  upload(event: any): void;
18
21
  change(file: any): void;
19
22
  cancelChange(): void;
20
- downloadFile(file: any): void;
21
23
  getLabelNgClass(): {
22
24
  [className: string]: boolean;
23
25
  };
@@ -33,9 +35,9 @@ export declare class SmartFileEditorComponent {
33
35
  isArray(value: any): boolean;
34
36
  formatSize(bytes: number): string;
35
37
  get fileIcon(): string;
36
- get downloadButton(): UiActionDescriptor;
37
38
  get changeButton(): UiActionDescriptor;
38
39
  get removeButton(): UiActionDescriptor;
40
+ get toolbarComponent(): UiActionToolbarComponent;
39
41
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartFileEditorComponent, [{ optional: true; }]>;
40
42
  static ɵcmp: i0.ɵɵComponentDeclaration<SmartFileEditorComponent, "smart-file-editor", never, { "widgetInstance": { "alias": "widgetInstance"; "required": false; }; }, { "uploadFilesEvent": "uploadFilesEvent"; }, never, never, false, never>;
41
43
  }
@@ -14,6 +14,7 @@ import { SmartFormTextFieldButtonIconPosition, SmartValidator, SophisticatedValu
14
14
  import { ComponentLibrary } from '../../../view-context/utility/componentLibrary';
15
15
  import { EditorTextChangeEvent } from 'primeng/editor';
16
16
  import { UiAction, UiActionDescriptor, UiActionUploadDescriptor } from '../../../view-context/api';
17
+ import { SmartFileEditorComponent } from '../components/smart-file-editor/smart-file-editor.component';
17
18
  import * as i0 from "@angular/core";
18
19
  export declare class SmartWidgetSettings {
19
20
  static useUtc: boolean;
@@ -65,6 +66,7 @@ export declare class SmartformwidgetComponent implements OnInit, OnDestroy, Afte
65
66
  componentLibrary: typeof ComponentLibrary;
66
67
  emptyQuillToolbar: QuillModules;
67
68
  sb4Textarea: ElementRef<HTMLTextAreaElement>;
69
+ fileUploader: SmartFileEditorComponent;
68
70
  constructor(service: SmartFormService, cfService: ComponentFactoryService, sanitizer: DomSanitizer, compLib: ComponentLibrary, changeDetector: ChangeDetectorRef);
69
71
  ngOnInit(): void;
70
72
  parseYoutubeUrl(url: string): string | false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "4.2.118",
3
+ "version": "4.2.119",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
6
6
  "@angular/common": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
Binary file