@indigina/ui-kit 1.1.1 → 1.1.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.
@@ -28,6 +28,14 @@ export declare class KitFileUploadComponent {
28
28
  * Defines a list of error messages for selected files
29
29
  */
30
30
  restrictionsErrorMessages?: KitFileUploadFileRestrictionsMessages;
31
+ /**
32
+ * Defines whether the component will have an action button
33
+ */
34
+ hasActionButton: boolean;
35
+ /**
36
+ * Defines an action button label
37
+ */
38
+ actionButtonLabel?: string;
31
39
  /**
32
40
  * An action which is emitted when download file button clicked
33
41
  */
@@ -36,13 +44,18 @@ export declare class KitFileUploadComponent {
36
44
  * An action which is emitted when files are selected
37
45
  */
38
46
  filesSelected: EventEmitter<KitFileUploadFile[]>;
47
+ /**
48
+ * An action which is emitted when action button clicked
49
+ */
50
+ actionButtonClicked: EventEmitter<void>;
39
51
  readonly KitSvgIcon: typeof KitSvgIcon;
40
52
  readonly KitButtonKind: typeof KitButtonKind;
41
53
  readonly kitFileUploadValidationErrorMap: Record<string, () => string>;
42
54
  onFileDownload(file: KitFileUploadFile): void;
43
55
  onFilesSelect(files: KitFileUploadFile[]): void;
56
+ onActionButtonClick(): void;
44
57
  getValidationError(error: string): string;
45
58
  getTypedFiles(files: KitFileUploadFile[]): KitFileUploadFile[];
46
59
  static ɵfac: i0.ɵɵFactoryDeclaration<KitFileUploadComponent, never>;
47
- static ɵcmp: i0.ɵɵComponentDeclaration<KitFileUploadComponent, "kit-file-upload", never, { "saveUrl": "saveUrl"; "files": "files"; "selectFilesLabel": "selectFilesLabel"; "dropzoneLabel": "dropzoneLabel"; "restrictions": "restrictions"; "restrictionsErrorMessages": "restrictionsErrorMessages"; }, { "fileDownloaded": "fileDownloaded"; "filesSelected": "filesSelected"; }, never, never, false, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<KitFileUploadComponent, "kit-file-upload", never, { "saveUrl": "saveUrl"; "files": "files"; "selectFilesLabel": "selectFilesLabel"; "dropzoneLabel": "dropzoneLabel"; "restrictions": "restrictions"; "restrictionsErrorMessages": "restrictionsErrorMessages"; "hasActionButton": "hasActionButton"; "actionButtonLabel": "actionButtonLabel"; }, { "fileDownloaded": "fileDownloaded"; "filesSelected": "filesSelected"; "actionButtonClicked": "actionButtonClicked"; }, never, never, false, never>;
48
61
  }
@@ -5,8 +5,9 @@ import * as i3 from "@progress/kendo-angular-upload";
5
5
  import * as i4 from "../kit-svg-icon/kit-svg-icon.module";
6
6
  import * as i5 from "@angular/forms";
7
7
  import * as i6 from "@angular/common/http";
8
+ import * as i7 from "../kit-button/kit-button.module";
8
9
  export declare class KitFileUploadModule {
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<KitFileUploadModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<KitFileUploadModule, [typeof i1.KitFileUploadComponent], [typeof i2.CommonModule, typeof i3.UploadModule, typeof i4.KitSvgIconModule, typeof i5.FormsModule, typeof i6.HttpClientModule], [typeof i1.KitFileUploadComponent]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KitFileUploadModule, [typeof i1.KitFileUploadComponent], [typeof i2.CommonModule, typeof i3.UploadModule, typeof i4.KitSvgIconModule, typeof i5.FormsModule, typeof i6.HttpClientModule, typeof i7.KitButtonModule], [typeof i1.KitFileUploadComponent]>;
11
12
  static ɵinj: i0.ɵɵInjectorDeclaration<KitFileUploadModule>;
12
13
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "components",
8
8
  "shared"
9
9
  ],
10
- "version": "1.1.1",
10
+ "version": "1.1.2",
11
11
  "peerDependencies": {
12
12
  "@angular/common": "15.2.7",
13
13
  "@angular/core": "15.2.7"