@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.
Files changed (90) hide show
  1. package/assets/icons/download.svg +5 -0
  2. package/assets/icons/file-text.svg +9 -0
  3. package/esm2020/lib/components/kit-autocomplete/kit-autocomplete.component.mjs +5 -5
  4. package/esm2020/lib/components/kit-autocomplete/kit-autocomplete.directive.mjs +3 -3
  5. package/esm2020/lib/components/kit-autocomplete/kit-autocomplete.module.mjs +4 -4
  6. package/esm2020/lib/components/kit-button/kit-button.component.mjs +4 -4
  7. package/esm2020/lib/components/kit-button/kit-button.module.mjs +4 -4
  8. package/esm2020/lib/components/kit-checkbox/kit-checkbox.component.mjs +3 -3
  9. package/esm2020/lib/components/kit-checkbox/kit-checkbox.module.mjs +4 -4
  10. package/esm2020/lib/components/kit-cta-panel-abstract-confirmation/kit-cta-panel-abstract-confirmation.component.mjs +3 -3
  11. package/esm2020/lib/components/kit-cta-panel-abstract-confirmation/kit-cta-panel-abstract-confirmation.module.mjs +4 -4
  12. package/esm2020/lib/components/kit-cta-panel-action/kit-cta-panel-action.component.mjs +3 -3
  13. package/esm2020/lib/components/kit-cta-panel-action/kit-cta-panel-action.module.mjs +4 -4
  14. package/esm2020/lib/components/kit-cta-panel-confirmation/abstract-kit-cta-panel-confirmation.component.mjs +3 -3
  15. package/esm2020/lib/components/kit-cta-panel-confirmation/kit-cta-panel-confirmation.component.mjs +3 -3
  16. package/esm2020/lib/components/kit-cta-panel-confirmation/kit-cta-panel-confirmation.module.mjs +4 -4
  17. package/esm2020/lib/components/kit-cta-panel-item/kit-cta-panel-item.component.mjs +3 -3
  18. package/esm2020/lib/components/kit-cta-panel-item/kit-cta-panel-item.module.mjs +4 -4
  19. package/esm2020/lib/components/kit-daterange/kit-daterange.component.mjs +3 -3
  20. package/esm2020/lib/components/kit-daterange/kit-daterange.module.mjs +4 -4
  21. package/esm2020/lib/components/kit-datetimepicker/kit-datetimepicker.component.mjs +4 -4
  22. package/esm2020/lib/components/kit-datetimepicker/kit-datetimepicker.module.mjs +4 -4
  23. package/esm2020/lib/components/kit-dialog/kit-dialog.component.mjs +4 -4
  24. package/esm2020/lib/components/kit-dialog/kit-dialog.module.mjs +4 -4
  25. package/esm2020/lib/components/kit-dialog/kit-dialog.service.mjs +3 -3
  26. package/esm2020/lib/components/kit-dialog-actions/kit-dialog-actions.component.mjs +3 -3
  27. package/esm2020/lib/components/kit-dialog-actions/kit-dialog-actions.module.mjs +4 -4
  28. package/esm2020/lib/components/kit-dropdown/kit-dropdown.component.mjs +5 -5
  29. package/esm2020/lib/components/kit-dropdown/kit-dropdown.module.mjs +4 -4
  30. package/esm2020/lib/components/kit-file-upload/kit-file-upload.component.mjs +66 -0
  31. package/esm2020/lib/components/kit-file-upload/kit-file-upload.model.mjs +2 -0
  32. package/esm2020/lib/components/kit-file-upload/kit-file-upload.module.mjs +40 -0
  33. package/esm2020/lib/components/kit-input-message/kit-input-message.component.mjs +3 -3
  34. package/esm2020/lib/components/kit-input-message/kit-input-message.module.mjs +4 -4
  35. package/esm2020/lib/components/kit-loader/kit-loader.component.mjs +3 -3
  36. package/esm2020/lib/components/kit-loader/kit-loader.module.mjs +4 -4
  37. package/esm2020/lib/components/kit-location-stepper/kit-location-stepper.component.mjs +3 -3
  38. package/esm2020/lib/components/kit-location-stepper/kit-location-stepper.module.mjs +4 -4
  39. package/esm2020/lib/components/kit-navigation-tabs/kit-navigation-tabs.component.mjs +3 -3
  40. package/esm2020/lib/components/kit-navigation-tabs/kit-navigation-tabs.module.mjs +4 -4
  41. package/esm2020/lib/components/kit-note/kit-note.component.mjs +3 -3
  42. package/esm2020/lib/components/kit-note/kit-note.module.mjs +4 -4
  43. package/esm2020/lib/components/kit-notification/kit-notification.component.mjs +3 -3
  44. package/esm2020/lib/components/kit-notification/kit-notification.module.mjs +4 -4
  45. package/esm2020/lib/components/kit-numeric-textbox/kit-numeric-textbox.component.mjs +3 -3
  46. package/esm2020/lib/components/kit-numeric-textbox/kit-numeric-textbox.module.mjs +4 -4
  47. package/esm2020/lib/components/kit-pill/kit-pill.component.mjs +3 -3
  48. package/esm2020/lib/components/kit-pill/kit-pill.module.mjs +4 -4
  49. package/esm2020/lib/components/kit-radio-button/kit-radio-button.component.mjs +3 -3
  50. package/esm2020/lib/components/kit-radio-button/kit-radio-button.module.mjs +4 -4
  51. package/esm2020/lib/components/kit-skeleton/kit-skeleton.component.mjs +3 -3
  52. package/esm2020/lib/components/kit-skeleton/kit-skeleton.module.mjs +4 -4
  53. package/esm2020/lib/components/kit-svg-icon/kit-svg-icon.component.mjs +3 -3
  54. package/esm2020/lib/components/kit-svg-icon/kit-svg-icon.const.mjs +3 -1
  55. package/esm2020/lib/components/kit-svg-icon/kit-svg-icon.module.mjs +4 -4
  56. package/esm2020/lib/components/kit-svg-sprite/kit-svg-sprite.component.mjs +5 -5
  57. package/esm2020/lib/components/kit-svg-sprite/kit-svg-sprite.module.mjs +4 -4
  58. package/esm2020/lib/components/kit-switch/kit-switch.component.mjs +4 -4
  59. package/esm2020/lib/components/kit-switch/kit-switch.module.mjs +4 -4
  60. package/esm2020/lib/components/kit-text-label/kit-text-label.component.mjs +4 -4
  61. package/esm2020/lib/components/kit-text-label/kit-text-label.module.mjs +4 -4
  62. package/esm2020/lib/components/kit-textarea/kit-textarea-autoresize.directive.mjs +3 -3
  63. package/esm2020/lib/components/kit-textarea/kit-textarea.component.mjs +3 -3
  64. package/esm2020/lib/components/kit-textarea/kit-textarea.module.mjs +4 -4
  65. package/esm2020/lib/components/kit-textbox/kit-textbox.component.mjs +3 -3
  66. package/esm2020/lib/components/kit-textbox/kit-textbox.module.mjs +4 -4
  67. package/esm2020/lib/components/kit-timepicker/kit-timepicker.component.mjs +5 -5
  68. package/esm2020/lib/components/kit-timepicker/kit-timepicker.module.mjs +4 -4
  69. package/esm2020/lib/components/kit-toastr/kit-toastr.module.mjs +4 -4
  70. package/esm2020/lib/components/kit-toastr/kit-toastr.service.mjs +3 -3
  71. package/esm2020/lib/components/kit-toggle/kit-toggle.component.mjs +3 -3
  72. package/esm2020/lib/components/kit-toggle/kit-toggle.module.mjs +4 -4
  73. package/esm2020/lib/components/kit-units-textbox/kit-units-textbox.component.mjs +3 -3
  74. package/esm2020/lib/components/kit-units-textbox/kit-units-textbox.module.mjs +4 -4
  75. package/esm2020/lib/directives/kit-tooltip/kit-tooltip.directive.mjs +3 -3
  76. package/esm2020/lib/directives/kit-tooltip/kit-tooltip.module.mjs +4 -4
  77. package/esm2020/lib/services/kit-query-params.service.mjs +3 -3
  78. package/esm2020/public-api.mjs +4 -1
  79. package/fesm2015/indigina-ui-kit.mjs +354 -259
  80. package/fesm2015/indigina-ui-kit.mjs.map +1 -1
  81. package/fesm2020/indigina-ui-kit.mjs +354 -259
  82. package/fesm2020/indigina-ui-kit.mjs.map +1 -1
  83. package/lib/components/kit-file-upload/kit-file-upload.component.d.ts +43 -0
  84. package/lib/components/kit-file-upload/kit-file-upload.model.d.ts +10 -0
  85. package/lib/components/kit-file-upload/kit-file-upload.module.d.ts +12 -0
  86. package/lib/components/kit-svg-icon/kit-svg-icon.const.d.ts +3 -1
  87. package/package.json +26 -24
  88. package/public-api.d.ts +3 -0
  89. package/styles/styles.scss +1 -0
  90. 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
+ }
@@ -58,5 +58,7 @@ export declare enum KitSvgIcon {
58
58
  WRENCH = "wrench",
59
59
  TIME = "time",
60
60
  WARNING_DEFAULT = "warning-default",
61
- ROTATE_LEFT = "rotate-left"
61
+ ROTATE_LEFT = "rotate-left",
62
+ DOWNLOAD = "download",
63
+ FILE_TEXT = "file-text"
62
64
  }
package/package.json CHANGED
@@ -7,34 +7,36 @@
7
7
  "components",
8
8
  "shared"
9
9
  ],
10
- "version": "1.0.159",
10
+ "version": "1.0.160",
11
11
  "peerDependencies": {
12
- "@angular/common": "15.1.0",
13
- "@angular/core": "15.1.0"
12
+ "@angular/common": "15.2.6",
13
+ "@angular/core": "15.2.6"
14
14
  },
15
15
  "dependencies": {
16
- "@progress/kendo-angular-buttons": "8.2.2",
17
- "@progress/kendo-angular-common": "3.2.2",
18
- "@progress/kendo-angular-dateinputs": "7.1.6",
19
- "@progress/kendo-angular-dropdowns": "7.2.4",
20
- "@progress/kendo-angular-indicators": "3.0.2",
21
- "@progress/kendo-angular-inputs": "10.1.2",
22
- "@progress/kendo-angular-intl": "4.1.1",
23
- "@progress/kendo-angular-l10n": "4.0.1",
24
- "@progress/kendo-angular-label": "4.0.2",
25
- "@progress/kendo-angular-layout": "7.2.0",
26
- "@progress/kendo-angular-menu": "4.1.1",
27
- "@progress/kendo-angular-navigation": "2.1.1",
28
- "@progress/kendo-angular-popup": "5.0.2",
29
- "@progress/kendo-angular-progressbar": "3.1.2",
30
- "@progress/kendo-angular-treeview": "7.1.5",
31
- "@progress/kendo-angular-tooltip": "4.1.1",
32
- "@progress/kendo-angular-dialog": "7.1.5",
33
- "@progress/kendo-drawing": "1.17.2",
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-theme-default": "5.12.0",
36
- "tslib": "2.4.1",
37
- "ngx-toastr": "16.0.2"
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';
@@ -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 */
@@ -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
  }