@indigina/ui-kit 1.0.159 → 1.0.160
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/assets/icons/download.svg +5 -0
- package/assets/icons/file-text.svg +9 -0
- package/esm2020/lib/components/kit-autocomplete/kit-autocomplete.component.mjs +5 -5
- package/esm2020/lib/components/kit-autocomplete/kit-autocomplete.directive.mjs +3 -3
- package/esm2020/lib/components/kit-autocomplete/kit-autocomplete.module.mjs +4 -4
- package/esm2020/lib/components/kit-button/kit-button.component.mjs +4 -4
- package/esm2020/lib/components/kit-button/kit-button.module.mjs +4 -4
- package/esm2020/lib/components/kit-checkbox/kit-checkbox.component.mjs +3 -3
- package/esm2020/lib/components/kit-checkbox/kit-checkbox.module.mjs +4 -4
- package/esm2020/lib/components/kit-cta-panel-abstract-confirmation/kit-cta-panel-abstract-confirmation.component.mjs +3 -3
- package/esm2020/lib/components/kit-cta-panel-abstract-confirmation/kit-cta-panel-abstract-confirmation.module.mjs +4 -4
- package/esm2020/lib/components/kit-cta-panel-action/kit-cta-panel-action.component.mjs +3 -3
- package/esm2020/lib/components/kit-cta-panel-action/kit-cta-panel-action.module.mjs +4 -4
- package/esm2020/lib/components/kit-cta-panel-confirmation/abstract-kit-cta-panel-confirmation.component.mjs +3 -3
- package/esm2020/lib/components/kit-cta-panel-confirmation/kit-cta-panel-confirmation.component.mjs +3 -3
- package/esm2020/lib/components/kit-cta-panel-confirmation/kit-cta-panel-confirmation.module.mjs +4 -4
- package/esm2020/lib/components/kit-cta-panel-item/kit-cta-panel-item.component.mjs +3 -3
- package/esm2020/lib/components/kit-cta-panel-item/kit-cta-panel-item.module.mjs +4 -4
- package/esm2020/lib/components/kit-daterange/kit-daterange.component.mjs +3 -3
- package/esm2020/lib/components/kit-daterange/kit-daterange.module.mjs +4 -4
- package/esm2020/lib/components/kit-datetimepicker/kit-datetimepicker.component.mjs +4 -4
- package/esm2020/lib/components/kit-datetimepicker/kit-datetimepicker.module.mjs +4 -4
- package/esm2020/lib/components/kit-dialog/kit-dialog.component.mjs +4 -4
- package/esm2020/lib/components/kit-dialog/kit-dialog.module.mjs +4 -4
- package/esm2020/lib/components/kit-dialog/kit-dialog.service.mjs +3 -3
- package/esm2020/lib/components/kit-dialog-actions/kit-dialog-actions.component.mjs +3 -3
- package/esm2020/lib/components/kit-dialog-actions/kit-dialog-actions.module.mjs +4 -4
- package/esm2020/lib/components/kit-dropdown/kit-dropdown.component.mjs +5 -5
- package/esm2020/lib/components/kit-dropdown/kit-dropdown.module.mjs +4 -4
- package/esm2020/lib/components/kit-file-upload/kit-file-upload.component.mjs +66 -0
- package/esm2020/lib/components/kit-file-upload/kit-file-upload.model.mjs +2 -0
- package/esm2020/lib/components/kit-file-upload/kit-file-upload.module.mjs +40 -0
- package/esm2020/lib/components/kit-input-message/kit-input-message.component.mjs +3 -3
- package/esm2020/lib/components/kit-input-message/kit-input-message.module.mjs +4 -4
- package/esm2020/lib/components/kit-loader/kit-loader.component.mjs +3 -3
- package/esm2020/lib/components/kit-loader/kit-loader.module.mjs +4 -4
- package/esm2020/lib/components/kit-location-stepper/kit-location-stepper.component.mjs +3 -3
- package/esm2020/lib/components/kit-location-stepper/kit-location-stepper.module.mjs +4 -4
- package/esm2020/lib/components/kit-navigation-tabs/kit-navigation-tabs.component.mjs +3 -3
- package/esm2020/lib/components/kit-navigation-tabs/kit-navigation-tabs.module.mjs +4 -4
- package/esm2020/lib/components/kit-note/kit-note.component.mjs +3 -3
- package/esm2020/lib/components/kit-note/kit-note.module.mjs +4 -4
- package/esm2020/lib/components/kit-notification/kit-notification.component.mjs +3 -3
- package/esm2020/lib/components/kit-notification/kit-notification.module.mjs +4 -4
- package/esm2020/lib/components/kit-numeric-textbox/kit-numeric-textbox.component.mjs +3 -3
- package/esm2020/lib/components/kit-numeric-textbox/kit-numeric-textbox.module.mjs +4 -4
- package/esm2020/lib/components/kit-pill/kit-pill.component.mjs +3 -3
- package/esm2020/lib/components/kit-pill/kit-pill.module.mjs +4 -4
- package/esm2020/lib/components/kit-radio-button/kit-radio-button.component.mjs +3 -3
- package/esm2020/lib/components/kit-radio-button/kit-radio-button.module.mjs +4 -4
- package/esm2020/lib/components/kit-skeleton/kit-skeleton.component.mjs +3 -3
- package/esm2020/lib/components/kit-skeleton/kit-skeleton.module.mjs +4 -4
- package/esm2020/lib/components/kit-svg-icon/kit-svg-icon.component.mjs +3 -3
- package/esm2020/lib/components/kit-svg-icon/kit-svg-icon.const.mjs +3 -1
- package/esm2020/lib/components/kit-svg-icon/kit-svg-icon.module.mjs +4 -4
- package/esm2020/lib/components/kit-svg-sprite/kit-svg-sprite.component.mjs +5 -5
- package/esm2020/lib/components/kit-svg-sprite/kit-svg-sprite.module.mjs +4 -4
- package/esm2020/lib/components/kit-switch/kit-switch.component.mjs +4 -4
- package/esm2020/lib/components/kit-switch/kit-switch.module.mjs +4 -4
- package/esm2020/lib/components/kit-text-label/kit-text-label.component.mjs +4 -4
- package/esm2020/lib/components/kit-text-label/kit-text-label.module.mjs +4 -4
- package/esm2020/lib/components/kit-textarea/kit-textarea-autoresize.directive.mjs +3 -3
- package/esm2020/lib/components/kit-textarea/kit-textarea.component.mjs +3 -3
- package/esm2020/lib/components/kit-textarea/kit-textarea.module.mjs +4 -4
- package/esm2020/lib/components/kit-textbox/kit-textbox.component.mjs +3 -3
- package/esm2020/lib/components/kit-textbox/kit-textbox.module.mjs +4 -4
- package/esm2020/lib/components/kit-timepicker/kit-timepicker.component.mjs +5 -5
- package/esm2020/lib/components/kit-timepicker/kit-timepicker.module.mjs +4 -4
- package/esm2020/lib/components/kit-toastr/kit-toastr.module.mjs +4 -4
- package/esm2020/lib/components/kit-toastr/kit-toastr.service.mjs +3 -3
- package/esm2020/lib/components/kit-toggle/kit-toggle.component.mjs +3 -3
- package/esm2020/lib/components/kit-toggle/kit-toggle.module.mjs +4 -4
- package/esm2020/lib/components/kit-units-textbox/kit-units-textbox.component.mjs +3 -3
- package/esm2020/lib/components/kit-units-textbox/kit-units-textbox.module.mjs +4 -4
- package/esm2020/lib/directives/kit-tooltip/kit-tooltip.directive.mjs +3 -3
- package/esm2020/lib/directives/kit-tooltip/kit-tooltip.module.mjs +4 -4
- package/esm2020/lib/services/kit-query-params.service.mjs +3 -3
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/indigina-ui-kit.mjs +354 -259
- package/fesm2015/indigina-ui-kit.mjs.map +1 -1
- package/fesm2020/indigina-ui-kit.mjs +354 -259
- package/fesm2020/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-file-upload/kit-file-upload.component.d.ts +43 -0
- package/lib/components/kit-file-upload/kit-file-upload.model.d.ts +10 -0
- package/lib/components/kit-file-upload/kit-file-upload.module.d.ts +12 -0
- package/lib/components/kit-svg-icon/kit-svg-icon.const.d.ts +3 -1
- package/package.json +26 -24
- package/public-api.d.ts +3 -0
- package/styles/styles.scss +1 -0
- package/styles/theming.scss +3 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { KitButtonKind } from '../kit-button/kit-button.const';
|
|
3
|
+
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
4
|
+
import { KitFileUploadFile, KitFileUploadFileRestrictions, KitFileUploadFileRestrictionsMessages } from 'projects/ui-kit/src/lib/components/kit-file-upload/kit-file-upload.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class KitFileUploadComponent {
|
|
7
|
+
/**
|
|
8
|
+
* Defines the URL of the endpoint for the upload request
|
|
9
|
+
*/
|
|
10
|
+
saveUrl: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Defines the initial list of files
|
|
13
|
+
*/
|
|
14
|
+
files: KitFileUploadFile[];
|
|
15
|
+
/**
|
|
16
|
+
* Defines a label for "Select files" button
|
|
17
|
+
*/
|
|
18
|
+
selectFilesLabel?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Defines a label for dropzone
|
|
21
|
+
*/
|
|
22
|
+
dropzoneLabel?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Defines the restrictions for selected files
|
|
25
|
+
*/
|
|
26
|
+
restrictions?: KitFileUploadFileRestrictions;
|
|
27
|
+
/**
|
|
28
|
+
* Defines a list of error messages for selected files
|
|
29
|
+
*/
|
|
30
|
+
restrictionsErrorMessages?: KitFileUploadFileRestrictionsMessages;
|
|
31
|
+
/**
|
|
32
|
+
* An action which is emitted when download file button clicked
|
|
33
|
+
*/
|
|
34
|
+
fileDownloaded: EventEmitter<KitFileUploadFile>;
|
|
35
|
+
readonly KitSvgIcon: typeof KitSvgIcon;
|
|
36
|
+
readonly KitButtonKind: typeof KitButtonKind;
|
|
37
|
+
readonly kitFileUploadValidationErrorMap: Record<string, () => string>;
|
|
38
|
+
onFileDownload(file: KitFileUploadFile): void;
|
|
39
|
+
getValidationError(error: string): string;
|
|
40
|
+
getTypedFiles(files: KitFileUploadFile[]): KitFileUploadFile[];
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitFileUploadComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitFileUploadComponent, "kit-file-upload", never, { "saveUrl": "saveUrl"; "files": "files"; "selectFilesLabel": "selectFilesLabel"; "dropzoneLabel": "dropzoneLabel"; "restrictions": "restrictions"; "restrictionsErrorMessages": "restrictionsErrorMessages"; }, { "fileDownloaded": "fileDownloaded"; }, never, never, false, never>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FileInfo } from '@progress/kendo-angular-upload';
|
|
2
|
+
export interface KitFileUploadFileRestrictions {
|
|
3
|
+
allowedExtensions?: string[];
|
|
4
|
+
maxFileSize?: number;
|
|
5
|
+
}
|
|
6
|
+
export interface KitFileUploadFileRestrictionsMessages {
|
|
7
|
+
allowedExtensions?: string;
|
|
8
|
+
maxFileSize?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare type KitFileUploadFile = FileInfo;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./kit-file-upload.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@progress/kendo-angular-upload";
|
|
5
|
+
import * as i4 from "../kit-svg-icon/kit-svg-icon.module";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "@angular/common/http";
|
|
8
|
+
export declare class KitFileUploadModule {
|
|
9
|
+
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 ɵinj: i0.ɵɵInjectorDeclaration<KitFileUploadModule>;
|
|
12
|
+
}
|
package/package.json
CHANGED
|
@@ -7,34 +7,36 @@
|
|
|
7
7
|
"components",
|
|
8
8
|
"shared"
|
|
9
9
|
],
|
|
10
|
-
"version": "1.0.
|
|
10
|
+
"version": "1.0.160",
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@angular/common": "15.
|
|
13
|
-
"@angular/core": "15.
|
|
12
|
+
"@angular/common": "15.2.6",
|
|
13
|
+
"@angular/core": "15.2.6"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@progress/kendo-angular-buttons": "
|
|
17
|
-
"@progress/kendo-angular-common": "
|
|
18
|
-
"@progress/kendo-angular-dateinputs": "
|
|
19
|
-
"@progress/kendo-angular-dropdowns": "
|
|
20
|
-
"@progress/kendo-angular-indicators": "
|
|
21
|
-
"@progress/kendo-angular-inputs": "
|
|
22
|
-
"@progress/kendo-angular-intl": "
|
|
23
|
-
"@progress/kendo-angular-l10n": "
|
|
24
|
-
"@progress/kendo-angular-label": "
|
|
25
|
-
"@progress/kendo-angular-layout": "
|
|
26
|
-
"@progress/kendo-angular-menu": "
|
|
27
|
-
"@progress/kendo-angular-navigation": "
|
|
28
|
-
"@progress/kendo-angular-popup": "
|
|
29
|
-
"@progress/kendo-angular-progressbar": "
|
|
30
|
-
"@progress/kendo-angular-treeview": "
|
|
31
|
-
"@progress/kendo-angular-tooltip": "
|
|
32
|
-
"@progress/kendo-angular-dialog": "
|
|
33
|
-
"@progress/kendo-
|
|
16
|
+
"@progress/kendo-angular-buttons": "11.6.0",
|
|
17
|
+
"@progress/kendo-angular-common": "11.6.0",
|
|
18
|
+
"@progress/kendo-angular-dateinputs": "11.6.0",
|
|
19
|
+
"@progress/kendo-angular-dropdowns": "11.6.0",
|
|
20
|
+
"@progress/kendo-angular-indicators": "11.6.0",
|
|
21
|
+
"@progress/kendo-angular-inputs": "11.6.0",
|
|
22
|
+
"@progress/kendo-angular-intl": "11.6.0",
|
|
23
|
+
"@progress/kendo-angular-l10n": "11.6.0",
|
|
24
|
+
"@progress/kendo-angular-label": "11.6.0",
|
|
25
|
+
"@progress/kendo-angular-layout": "11.6.0",
|
|
26
|
+
"@progress/kendo-angular-menu": "11.6.0",
|
|
27
|
+
"@progress/kendo-angular-navigation": "11.6.0",
|
|
28
|
+
"@progress/kendo-angular-popup": "11.6.0",
|
|
29
|
+
"@progress/kendo-angular-progressbar": "11.6.0",
|
|
30
|
+
"@progress/kendo-angular-treeview": "11.6.0",
|
|
31
|
+
"@progress/kendo-angular-tooltip": "11.6.0",
|
|
32
|
+
"@progress/kendo-angular-dialog": "11.6.0",
|
|
33
|
+
"@progress/kendo-angular-upload": "11.6.0",
|
|
34
|
+
"@progress/kendo-drawing": "1.17.5",
|
|
34
35
|
"@progress/kendo-licensing": "1.3.0",
|
|
35
|
-
"@progress/kendo-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
36
|
+
"@progress/kendo-svg-icons": "1.4.2",
|
|
37
|
+
"@progress/kendo-theme-default": "6.2.0",
|
|
38
|
+
"tslib": "2.5.0",
|
|
39
|
+
"ngx-toastr": "16.1.0"
|
|
38
40
|
},
|
|
39
41
|
"module": "fesm2015/indigina-ui-kit.mjs",
|
|
40
42
|
"es2020": "fesm2020/indigina-ui-kit.mjs",
|
package/public-api.d.ts
CHANGED
|
@@ -75,3 +75,6 @@ export { KitTimepickerComponent } from './lib/components/kit-timepicker/kit-time
|
|
|
75
75
|
export { KitTimepickerModule } from './lib/components/kit-timepicker/kit-timepicker.module';
|
|
76
76
|
export { KitSkeletonComponent, KitSkeletonShape, KitSkeletonAnimation } from './lib/components/kit-skeleton/kit-skeleton.component';
|
|
77
77
|
export { KitSkeletonModule } from './lib/components/kit-skeleton/kit-skeleton.module';
|
|
78
|
+
export { KitFileUploadComponent } from './lib/components/kit-file-upload/kit-file-upload.component';
|
|
79
|
+
export { KitFileUploadModule } from './lib/components/kit-file-upload/kit-file-upload.module';
|
|
80
|
+
export { KitFileUploadFile, KitFileUploadFileRestrictions, KitFileUploadFileRestrictionsMessages, } from './lib/components/kit-file-upload/kit-file-upload.model';
|
package/styles/styles.scss
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
@import "@progress/kendo-theme-default/scss/tooltip";
|
|
11
11
|
@import "@progress/kendo-theme-default/scss/dialog";
|
|
12
12
|
@import "@progress/kendo-theme-default/scss/skeleton";
|
|
13
|
+
@import "@progress/kendo-theme-default/scss/upload";
|
|
13
14
|
@import "ngx-toastr/toastr";
|
|
14
15
|
|
|
15
16
|
/* styles which need to be included by default into app styles */
|
package/styles/theming.scss
CHANGED
|
@@ -70,9 +70,12 @@ $theme-color-8: get-css-variable(theme-color-8, $color-ghost);
|
|
|
70
70
|
--ui-kit-color-grey-5: #fafafc;
|
|
71
71
|
--ui-kit-color-grey-6: #ebebe4;
|
|
72
72
|
--ui-kit-color-grey-7: #a9a8a8;
|
|
73
|
+
--ui-kit-color-grey-8: #efefef;
|
|
73
74
|
|
|
74
75
|
--ui-kit-color-green: #00b0ad;
|
|
75
76
|
|
|
76
77
|
--ui-kit-color-red: #ef3e42;
|
|
77
78
|
--ui-kit-color-red-20: #f8e0e0;
|
|
79
|
+
|
|
80
|
+
--ui-kit-color-cobalt: #002a3a;
|
|
78
81
|
}
|