ca-components 1.3.1 → 1.3.3

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 (167) hide show
  1. package/esm2022/lib/components/ca-input/ca-input.component.mjs +3 -3
  2. package/esm2022/lib/components/ca-input/config/ca-input.config.mjs +1 -1
  3. package/esm2022/lib/components/ca-input/pipes/input-error.pipe.mjs +7 -1
  4. package/esm2022/lib/components/ca-input/pipes/label-class.pipe.mjs +5 -3
  5. package/esm2022/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.mjs +2 -2
  6. package/esm2022/lib/components/ca-input-datetime-picker/ca-input-datetime-picker.component.mjs +18 -32
  7. package/esm2022/lib/components/ca-input-dropdown/ca-input-dropdown.component.mjs +14 -5
  8. package/esm2022/lib/components/ca-logo-change/ca-logo-change.component.mjs +1 -1
  9. package/esm2022/lib/components/ca-todo/components/ca-todo-card.component.mjs +1 -1
  10. package/esm2022/lib/components/ca-todo/models/todo-config.model.mjs +1 -1
  11. package/esm2022/lib/components/ca-upload-files/ca-upload-files.component.mjs +66 -53
  12. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.mjs +68 -51
  13. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/file-dropzone-action.enum.mjs +8 -0
  14. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/file-dropzone-type.enum.mjs +8 -0
  15. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/file-upload-page.enum.mjs +28 -0
  16. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/index.mjs +5 -4
  17. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/template-type.enum.mjs +9 -0
  18. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/helpers/file.helper.mjs +8 -9
  19. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/drop-background-event.interface.mjs +2 -0
  20. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/dropzone-config.interface.mjs +2 -0
  21. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/dropzone-option-config.interface.mjs +2 -0
  22. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/dropzone-settings.interface.mjs +2 -0
  23. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/file-config.interface.mjs +2 -0
  24. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/file-event.interface.mjs +2 -0
  25. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/index.mjs +7 -0
  26. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/file-icons.constants.mjs +19 -0
  27. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/file-limit.constants.mjs +41 -0
  28. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/index.mjs +5 -5
  29. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/lottie-animation.constants.mjs +9 -0
  30. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/mime-type.constants.mjs +29 -0
  31. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.mjs +167 -132
  32. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/enums/document-action.enum.mjs +10 -10
  33. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/enums/index.mjs +1 -1
  34. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/interfaces/delete-action.interface.mjs +2 -0
  35. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/interfaces/file-action-event.interface.mjs +2 -0
  36. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/interfaces/index.mjs +3 -0
  37. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/pipes/index.mjs +2 -1
  38. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/pipes/mime-type-to-extension.pipe.mjs +19 -0
  39. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/pipes/ng-class.pipe.mjs +4 -3
  40. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/utils/config/index.mjs +2 -0
  41. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/utils/config/upload-file-input.config.mjs +10 -0
  42. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/utils/svg-routes/upload-file.routes.mjs +2 -2
  43. package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component.mjs +15 -15
  44. package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/carousel-action.enum.mjs +6 -6
  45. package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/file-carousel-size.enum.mjs +10 -0
  46. package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/index.mjs +2 -2
  47. package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/interfaces/files-carousel.interface.mjs +2 -0
  48. package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/interfaces/index.mjs +2 -0
  49. package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/constants/files-by-size.constant.mjs +9 -9
  50. package/esm2022/lib/components/ca-upload-files/enums/file-action.enum.mjs +7 -0
  51. package/esm2022/lib/components/ca-upload-files/enums/file-size.enum.mjs +9 -9
  52. package/esm2022/lib/components/ca-upload-files/enums/file-type.enum.mjs +8 -0
  53. package/esm2022/lib/components/ca-upload-files/enums/index.mjs +4 -2
  54. package/esm2022/lib/components/ca-upload-files/enums/review-state.enum.mjs +6 -0
  55. package/esm2022/lib/components/ca-upload-files/interfaces/document-review-input-event.interface.mjs +2 -0
  56. package/esm2022/lib/components/ca-upload-files/interfaces/file-option-config.interface.mjs +2 -0
  57. package/esm2022/lib/components/ca-upload-files/interfaces/index.mjs +6 -0
  58. package/esm2022/lib/components/ca-upload-files/interfaces/review-file-config.interface.mjs +2 -0
  59. package/esm2022/lib/components/ca-upload-files/interfaces/slider.interface.mjs +2 -0
  60. package/esm2022/lib/components/ca-upload-files/interfaces/upload-files-config.interface.mjs +2 -0
  61. package/esm2022/lib/components/ca-upload-files/pipes/index.mjs +1 -1
  62. package/esm2022/lib/components/ca-upload-files/pipes/map-file.pipe.mjs +3 -3
  63. package/esm2022/lib/components/ca-upload-files/pipes/upload-class.pipe.mjs +1 -1
  64. package/esm2022/lib/components/ca-upload-files/services/upload-file.service.mjs +1 -1
  65. package/esm2022/public-api.mjs +4 -2
  66. package/fesm2022/ca-components.mjs +659 -520
  67. package/fesm2022/ca-components.mjs.map +1 -1
  68. package/lib/components/ca-input/config/ca-input.config.d.ts +1 -0
  69. package/lib/components/ca-input-dropdown/ca-input-dropdown.component.d.ts +3 -1
  70. package/lib/components/ca-logo-change/ca-logo-change.component.d.ts +2 -2
  71. package/lib/components/ca-todo/components/ca-todo-card.component.d.ts +5 -5
  72. package/lib/components/ca-todo/models/todo-config.model.d.ts +1 -1
  73. package/lib/components/ca-upload-files/ca-upload-files.component.d.ts +12 -12
  74. package/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.d.ts +10 -11
  75. package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/{file-action.enum.d.ts → file-dropzone-action.enum.d.ts} +1 -1
  76. package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/{file-type.enum.d.ts → file-dropzone-type.enum.d.ts} +1 -1
  77. package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/{pages.enum.d.ts → file-upload-page.enum.d.ts} +4 -2
  78. package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/index.d.ts +4 -3
  79. package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/template-type.enum.d.ts +7 -0
  80. package/lib/components/ca-upload-files/components/ca-upload-dropzone/helpers/file.helper.d.ts +4 -4
  81. package/lib/components/ca-upload-files/components/ca-upload-dropzone/{models/drop-background-event.model.d.ts → interfaces/drop-background-event.interface.d.ts} +1 -1
  82. package/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/dropzone-config.interface.d.ts +10 -0
  83. package/lib/components/ca-upload-files/components/ca-upload-dropzone/{models/dropzone-option-config.model.d.ts → interfaces/dropzone-option-config.interface.d.ts} +1 -1
  84. package/lib/components/ca-upload-files/components/ca-upload-dropzone/{models/dropzone-config.model.d.ts → interfaces/dropzone-settings.interface.d.ts} +3 -3
  85. package/lib/components/ca-upload-files/components/ca-upload-dropzone/{models/file-config.model.d.ts → interfaces/file-config.interface.d.ts} +1 -1
  86. package/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/file-event.interface.d.ts +8 -0
  87. package/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/index.d.ts +6 -0
  88. package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/file-icons.constants.d.ts +7 -0
  89. package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/{file-limit.constant.d.ts → file-limit.constants.d.ts} +1 -1
  90. package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/index.d.ts +4 -4
  91. package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/{lottie-constant.d.ts → lottie-animation.constants.d.ts} +1 -1
  92. package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/mime-type.constants.d.ts +5 -0
  93. package/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.d.ts +33 -27
  94. package/lib/components/ca-upload-files/components/ca-upload-file/enums/document-action.enum.d.ts +1 -1
  95. package/lib/components/ca-upload-files/components/ca-upload-file/{models/delete-action.model.d.ts → interfaces/delete-action.interface.d.ts} +1 -1
  96. package/lib/components/ca-upload-files/components/ca-upload-file/interfaces/file-action-event.interface.d.ts +5 -0
  97. package/lib/components/ca-upload-files/components/ca-upload-file/interfaces/index.d.ts +2 -0
  98. package/lib/components/ca-upload-files/components/ca-upload-file/pipes/index.d.ts +1 -0
  99. package/lib/components/ca-upload-files/components/ca-upload-file/pipes/mime-type-to-extension.pipe.d.ts +7 -0
  100. package/lib/components/ca-upload-files/components/ca-upload-file/utils/config/index.d.ts +1 -0
  101. package/lib/components/ca-upload-files/components/ca-upload-file/utils/config/upload-file-input.config.d.ts +4 -0
  102. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component.d.ts +6 -6
  103. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/carousel-action.enum.d.ts +1 -1
  104. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/{carousel-size.enum.d.ts → file-carousel-size.enum.d.ts} +1 -1
  105. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/index.d.ts +1 -1
  106. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/{models/carousel-config.model.d.ts → interfaces/files-carousel.interface.d.ts} +1 -1
  107. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/interfaces/index.d.ts +1 -0
  108. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/constants/files-by-size.constant.d.ts +1 -1
  109. package/lib/components/ca-upload-files/enums/file-action.enum.d.ts +5 -0
  110. package/lib/components/ca-upload-files/enums/file-size.enum.d.ts +1 -1
  111. package/lib/components/ca-upload-files/enums/{file-types.enum.d.ts → file-type.enum.d.ts} +1 -1
  112. package/lib/components/ca-upload-files/enums/index.d.ts +3 -1
  113. package/lib/components/ca-upload-files/enums/review-state.enum.d.ts +4 -0
  114. package/lib/components/ca-upload-files/interfaces/document-review-input-event.interface.d.ts +5 -0
  115. package/lib/components/ca-upload-files/{models/file-option-config.model.d.ts → interfaces/file-option-config.interface.d.ts} +3 -3
  116. package/lib/components/ca-upload-files/interfaces/index.d.ts +5 -0
  117. package/lib/components/ca-upload-files/{models/review-file-config.model.d.ts → interfaces/review-file-config.interface.d.ts} +3 -2
  118. package/lib/components/ca-upload-files/{models/slider.model.d.ts → interfaces/slider.interface.d.ts} +1 -1
  119. package/lib/components/ca-upload-files/interfaces/upload-files-config.interface.d.ts +26 -0
  120. package/lib/components/ca-upload-files/pipes/map-file.pipe.d.ts +3 -3
  121. package/lib/components/ca-upload-files/services/upload-file.service.d.ts +3 -3
  122. package/package.json +1 -1
  123. package/public-api.d.ts +3 -1
  124. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/config/dropzone-config.type.mjs +0 -2
  125. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/config/index.mjs +0 -2
  126. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/file-action.enum.mjs +0 -8
  127. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/file-type.enum.mjs +0 -8
  128. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/pages.enum.mjs +0 -26
  129. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/drop-background-event.model.mjs +0 -2
  130. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/dropzone-config.model.mjs +0 -2
  131. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/dropzone-option-config.model.mjs +0 -2
  132. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/file-config.model.mjs +0 -2
  133. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/file-event.model.mjs +0 -2
  134. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/index.mjs +0 -7
  135. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/upload-file-templates.model.mjs +0 -2
  136. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/file-icons.constant.mjs +0 -19
  137. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/file-limit.constant.mjs +0 -28
  138. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/lottie-constant.mjs +0 -9
  139. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/supported-extension.constant.mjs +0 -11
  140. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/index.mjs +0 -2
  141. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/models/delete-action.model.mjs +0 -2
  142. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/models/file-action.model.mjs +0 -2
  143. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/models/index.mjs +0 -3
  144. package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/carousel-size.enum.mjs +0 -10
  145. package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/models/carousel-config.model.mjs +0 -2
  146. package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/models/index.mjs +0 -2
  147. package/esm2022/lib/components/ca-upload-files/enums/file-types.enum.mjs +0 -8
  148. package/esm2022/lib/components/ca-upload-files/models/document-review.model.mjs +0 -2
  149. package/esm2022/lib/components/ca-upload-files/models/file-option-config.model.mjs +0 -2
  150. package/esm2022/lib/components/ca-upload-files/models/index.mjs +0 -6
  151. package/esm2022/lib/components/ca-upload-files/models/review-file-config.model.mjs +0 -2
  152. package/esm2022/lib/components/ca-upload-files/models/slider.model.mjs +0 -2
  153. package/esm2022/lib/components/ca-upload-files/models/upload-files-config.model.mjs +0 -2
  154. package/lib/components/ca-upload-files/components/ca-upload-dropzone/config/dropzone-config.type.d.ts +0 -8
  155. package/lib/components/ca-upload-files/components/ca-upload-dropzone/config/index.d.ts +0 -1
  156. package/lib/components/ca-upload-files/components/ca-upload-dropzone/models/file-event.model.d.ts +0 -8
  157. package/lib/components/ca-upload-files/components/ca-upload-dropzone/models/index.d.ts +0 -6
  158. package/lib/components/ca-upload-files/components/ca-upload-dropzone/models/upload-file-templates.model.d.ts +0 -1
  159. package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/file-icons.constant.d.ts +0 -7
  160. package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/supported-extension.constant.d.ts +0 -4
  161. package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/index.d.ts +0 -1
  162. package/lib/components/ca-upload-files/components/ca-upload-file/models/file-action.model.d.ts +0 -5
  163. package/lib/components/ca-upload-files/components/ca-upload-file/models/index.d.ts +0 -2
  164. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/models/index.d.ts +0 -1
  165. package/lib/components/ca-upload-files/models/document-review.model.d.ts +0 -5
  166. package/lib/components/ca-upload-files/models/index.d.ts +0 -5
  167. package/lib/components/ca-upload-files/models/upload-files-config.model.d.ts +0 -27
@@ -46,6 +46,7 @@ export interface ICaInput {
46
46
  isPlaceHolderIconRightSideDynamicColor?: boolean;
47
47
  placeholderIconFolllowTextOnRightSide?: string;
48
48
  placeholderIconColor?: string;
49
+ placeholderWithLabel?: boolean;
49
50
  placeholderText?: string;
50
51
  placeholderInsteadOfLabel?: boolean;
51
52
  inputCursorOnRightSide?: boolean;
@@ -24,6 +24,7 @@ export declare class CaInputDropdownComponent implements OnInit, AfterViewInit,
24
24
  inputConfig: ICaInput;
25
25
  set canAddNew(value: boolean);
26
26
  canOpenModal: boolean;
27
+ isAddressDropdown: boolean;
27
28
  _sort: string;
28
29
  set sort(value: string);
29
30
  _activeItem: OptionModel | null;
@@ -61,6 +62,7 @@ export declare class CaInputDropdownComponent implements OnInit, AfterViewInit,
61
62
  hoveringIndex: number;
62
63
  inputDropdownSvgRoutes: typeof InputDropdownSvgRoutes;
63
64
  dropdownTemplateTypeEnum: typeof DropdownTemplateTypeEnum;
65
+ originalInputConfig: ICaInput;
64
66
  private destroy$;
65
67
  constructor(superControl: NgControl, imageBase64Service: ImageBase64Service, cdRef: ChangeDetectorRef, renderer: Renderer2);
66
68
  get getSuperControl(): import("@angular/forms").AbstractControl<any, any> | null;
@@ -104,5 +106,5 @@ export declare class CaInputDropdownComponent implements OnInit, AfterViewInit,
104
106
  private dropdownNavigation;
105
107
  ngOnDestroy(): void;
106
108
  static ɵfac: i0.ɵɵFactoryDeclaration<CaInputDropdownComponent, [{ self: true; }, null, null, null]>;
107
- static ɵcmp: i0.ɵɵComponentDeclaration<CaInputDropdownComponent, "app-ca-input-dropdown", never, { "template": { "alias": "template"; "required": false; }; "multiselectTemplate": { "alias": "multiselectTemplate"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; "canAddNew": { "alias": "canAddNew"; "required": false; }; "canOpenModal": { "alias": "canOpenModal"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "activeItem": { "alias": "activeItem"; "required": false; }; "activeItemColor": { "alias": "activeItemColor"; "required": false; }; "labelMode": { "alias": "labelMode"; "required": false; }; "options": { "alias": "options"; "required": false; }; "preloadMultiselectItems": { "alias": "preloadMultiselectItems"; "required": false; }; "isDetailsPages": { "alias": "isDetailsPages"; "required": false; }; "isIncorrectValue": { "alias": "isIncorrectValue"; "required": false; }; }, { "selectedItem": "selectedItem"; "selectedItems": "selectedItems"; "selectedItemColor": "selectedItemColor"; "selectedLabelMode": "selectedLabelMode"; "closeDropdown": "closeDropdown"; "saveItem": "saveItem"; "incorrectEvent": "incorrectEvent"; "placeholderIconEvent": "placeholderIconEvent"; "paginationEvent": "pagination"; "activeGroupEvent": "activeGroup"; "clearInputEvent": "clearInputEvent"; }, never, never, true, never>;
109
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaInputDropdownComponent, "app-ca-input-dropdown", never, { "template": { "alias": "template"; "required": false; }; "multiselectTemplate": { "alias": "multiselectTemplate"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; "canAddNew": { "alias": "canAddNew"; "required": false; }; "canOpenModal": { "alias": "canOpenModal"; "required": false; }; "isAddressDropdown": { "alias": "isAddressDropdown"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "activeItem": { "alias": "activeItem"; "required": false; }; "activeItemColor": { "alias": "activeItemColor"; "required": false; }; "labelMode": { "alias": "labelMode"; "required": false; }; "options": { "alias": "options"; "required": false; }; "preloadMultiselectItems": { "alias": "preloadMultiselectItems"; "required": false; }; "isDetailsPages": { "alias": "isDetailsPages"; "required": false; }; "isIncorrectValue": { "alias": "isIncorrectValue"; "required": false; }; }, { "selectedItem": "selectedItem"; "selectedItems": "selectedItems"; "selectedItemColor": "selectedItemColor"; "selectedLabelMode": "selectedLabelMode"; "closeDropdown": "closeDropdown"; "saveItem": "saveItem"; "incorrectEvent": "incorrectEvent"; "placeholderIconEvent": "placeholderIconEvent"; "paginationEvent": "pagination"; "activeGroupEvent": "activeGroup"; "clearInputEvent": "clearInputEvent"; }, never, never, true, never>;
108
110
  }
@@ -1,7 +1,7 @@
1
1
  import { ElementRef, EventEmitter, OnDestroy } from '@angular/core';
2
2
  import { ChangeContext, Options } from '@angular-slider/ngx-slider';
3
3
  import { ImageCroppedEvent, CropperPosition, ImageTransform } from 'ngx-image-cropper';
4
- import { FileConfig } from '../ca-upload-files/components/ca-upload-dropzone/models/file-config.model';
4
+ import { IFileConfig } from '../ca-upload-files/components/ca-upload-dropzone/interfaces';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class CaLogoChangeComponent implements OnDestroy {
7
7
  fileInput: ElementRef;
@@ -16,7 +16,7 @@ export declare class CaLogoChangeComponent implements OnDestroy {
16
16
  aspectRatio: number[];
17
17
  customWidth: string;
18
18
  sendImageData: EventEmitter<{
19
- files: FileConfig[];
19
+ files: IFileConfig[];
20
20
  action: string;
21
21
  }>;
22
22
  private destroy$;
@@ -2,8 +2,8 @@ import { EventEmitter, Renderer2 } from '@angular/core';
2
2
  import { ToDoCardConfig } from '../models';
3
3
  import { ProgressExpiration } from '../../ca-progress-expiration/models';
4
4
  import { CommentConfig } from '../../ca-comment/models';
5
- import { FileOptionConfig, IUploadFilesConfig } from '../../ca-upload-files/models';
6
- import { FileConfig, FileEvent } from '../../ca-upload-files/components/ca-upload-dropzone/models';
5
+ import { IFileOptionConfig, IUploadFilesConfig } from '../../ca-upload-files/interfaces';
6
+ import { IFileConfig, IFileEvent } from '../../ca-upload-files/components/ca-upload-dropzone/interfaces';
7
7
  import { TodoSvgRoute } from '../utils';
8
8
  import { CaUploadFilesCarouselComponent } from '../../ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component';
9
9
  import { FileService } from '../services';
@@ -17,7 +17,7 @@ export declare class CaTodoCardComponent {
17
17
  newCommentConfig: CommentConfig[];
18
18
  configProgress: ProgressExpiration[];
19
19
  uploadFilesConfig: IUploadFilesConfig;
20
- onFileEvent: EventEmitter<FileEvent>;
20
+ onFileEvent: EventEmitter<IFileEvent>;
21
21
  svgTodo: typeof TodoSvgRoute;
22
22
  private unsubscribe$;
23
23
  link: string;
@@ -28,8 +28,8 @@ export declare class CaTodoCardComponent {
28
28
  isCommentsVisible: boolean;
29
29
  isDocumentVisible: boolean;
30
30
  isNewComment: boolean;
31
- _files: FileConfig[];
32
- _config: FileOptionConfig;
31
+ _files: IFileConfig[];
32
+ _config: IFileOptionConfig;
33
33
  constructor(fileService: FileService, renderer: Renderer2);
34
34
  ngOnInit(): void;
35
35
  ngOnDestroy(): void;
@@ -1,7 +1,7 @@
1
1
  import { CommentConfig } from '../../ca-comment/models';
2
2
  import { ProgressExpiration } from '../../ca-progress-expiration/models';
3
3
  import { ToDoCardConfig } from './todo-card-config.model';
4
- import { IUploadFilesConfig } from '../../ca-upload-files/models';
4
+ import { IUploadFilesConfig } from '../../ca-upload-files/interfaces';
5
5
  export interface ToDoConfig {
6
6
  id: number;
7
7
  config: ToDoCardConfig;
@@ -2,9 +2,9 @@ import { AfterViewInit, EventEmitter, QueryList } from '@angular/core';
2
2
  import { HttpClient } from '@angular/common/http';
3
3
  import { CaUploadFileComponent } from './components/ca-upload-file/ca-upload-file.component';
4
4
  import { CaUploadFilesCarouselComponent } from './components/ca-upload-files-carousel/ca-upload-files-carousel.component';
5
- import { DocumentReviewInputEvent, IUploadFilesConfig, ReviewFileConfig } from './models';
6
- import { FileConfig, FileEvent } from './components/ca-upload-dropzone/models';
7
- import { FilesCarouselConfig } from './components/ca-upload-files-carousel/models';
5
+ import { IDocumentReviewInputEvent, IReviewFileConfig, IUploadFilesConfig } from './interfaces';
6
+ import { IFileConfig, IFileEvent } from './components/ca-upload-dropzone/interfaces';
7
+ import { IFilesCarouselConfig } from './components/ca-upload-files-carousel/interfaces';
8
8
  import { CaUploadFileService } from './services';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class CaUploadFilesComponent implements AfterViewInit {
@@ -13,8 +13,8 @@ export declare class CaUploadFilesComponent implements AfterViewInit {
13
13
  modalCarousel: CaUploadFilesCarouselComponent;
14
14
  uploadedFiles: QueryList<CaUploadFileComponent>;
15
15
  set uploadFilesConfig(value: IUploadFilesConfig);
16
- documentReviewInputEvent: EventEmitter<DocumentReviewInputEvent>;
17
- onFileEvent: EventEmitter<FileEvent>;
16
+ documentReviewInputEvent: EventEmitter<IDocumentReviewInputEvent>;
17
+ onFileEvent: EventEmitter<IFileEvent>;
18
18
  closeDropzone: EventEmitter<{}>;
19
19
  fileAdded: EventEmitter<File>;
20
20
  currentSlide: number;
@@ -22,33 +22,33 @@ export declare class CaUploadFilesComponent implements AfterViewInit {
22
22
  private _config;
23
23
  private destroy$;
24
24
  get config(): IUploadFilesConfig;
25
- get carouselFileConfig(): FilesCarouselConfig;
26
- get reviewFileConfig(): ReviewFileConfig;
25
+ get carouselFileConfig(): IFilesCarouselConfig;
26
+ get reviewFileConfig(): IReviewFileConfig;
27
27
  constructor(uploadFileService: CaUploadFileService, http: HttpClient);
28
28
  ngAfterViewInit(): void;
29
- ngOnDestroy(): void;
30
29
  /**
31
30
  *
32
31
  * @param data - returned data from file action (one or multiple)
33
32
  */
34
33
  onFileAction(data: {
35
- file: FileConfig;
34
+ file: IFileConfig;
36
35
  action: string;
37
36
  }): void;
38
37
  onUploadFiles(data: {
39
- files: FileConfig[];
38
+ files: IFileConfig[];
40
39
  action: string;
41
40
  }): void;
42
41
  documentReviewInputEventMethod(data: {
43
- file: FileConfig;
42
+ file: IFileConfig;
44
43
  message: string;
45
44
  }): void;
46
45
  downloadFile(fileUrl: string, fileName: string): void;
47
46
  onLandscapeCheck(landscape: boolean): void;
48
47
  dropZoneClose(): void;
49
- fileHover(file: FileConfig): void;
48
+ fileHover(file: IFileConfig): void;
50
49
  hoverArrow(mod: boolean): void;
51
50
  private subscribeToUploadedFiles;
51
+ ngOnDestroy(): void;
52
52
  static ɵfac: i0.ɵɵFactoryDeclaration<CaUploadFilesComponent, never>;
53
53
  static ɵcmp: i0.ɵɵComponentDeclaration<CaUploadFilesComponent, "app-ca-upload-files", never, { "uploadFilesConfig": { "alias": "uploadFilesConfig"; "required": false; }; }, { "documentReviewInputEvent": "documentReviewInputEvent"; "onFileEvent": "onFileEvent"; "closeDropzone": "closeDropzone"; "fileAdded": "fileAdded"; }, never, never, true, never>;
54
54
  }
@@ -1,25 +1,24 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, QueryList, TemplateRef } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
- import { DropBackgroundEvent, FileConfig } from './models';
4
- import { DropzoneConf } from './config/dropzone-config.type';
3
+ import { IDropBackgroundEvent, IDropZoneConfig, IFileConfig } from './interfaces';
4
+ import { eTemplateType } from './enums';
5
5
  import { TemplateContainerDirective } from './directives/template.directive';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class CaUploadDropzoneComponent {
8
8
  private cdr;
9
9
  templateRef: QueryList<TemplateContainerDirective>;
10
10
  dropZone: ElementRef<HTMLInputElement>;
11
- set config(data: DropzoneConf[]);
11
+ set dropZoneConfig(data: IDropZoneConfig);
12
12
  isDropzoneShownInCrop: boolean;
13
13
  customWidth: string;
14
+ files: IFileConfig[];
14
15
  onFileEvent: EventEmitter<{
15
- files: FileConfig[];
16
+ files: IFileConfig[];
16
17
  action: string;
17
18
  }>;
18
- onDropBackground: EventEmitter<DropBackgroundEvent>;
19
+ onDropBackground: EventEmitter<IDropBackgroundEvent>;
19
20
  closeDropzone: EventEmitter<{}>;
20
- _dropZoneConfigArray: DropzoneConf[];
21
- _dropZoneConfig: DropzoneConf;
22
- files: FileConfig[];
21
+ _dropZoneConfig: IDropZoneConfig;
23
22
  isShownDropzoneFocus: boolean;
24
23
  isFileDrop: boolean;
25
24
  isSupportedType: boolean;
@@ -44,11 +43,11 @@ export declare class CaUploadDropzoneComponent {
44
43
  isMaxCountReached(): boolean;
45
44
  handleFileChange(event: Event): void;
46
45
  onFileUpload(files: FileList): Observable<void>;
46
+ resetDropzoneView(event: Event): void;
47
+ getTemplate(template: eTemplateType): TemplateRef<any>;
47
48
  private addFile;
48
49
  private updateLottieOptions;
49
50
  private updateDropZoneText;
50
- getTemplate(template: string): TemplateRef<any>;
51
- identify(index: number): number;
52
51
  static ɵfac: i0.ɵɵFactoryDeclaration<CaUploadDropzoneComponent, never>;
53
- static ɵcmp: i0.ɵɵComponentDeclaration<CaUploadDropzoneComponent, "app-ca-upload-dropzone", never, { "config": { "alias": "config"; "required": false; }; "isDropzoneShownInCrop": { "alias": "isDropzoneShownInCrop"; "required": false; }; "customWidth": { "alias": "customWidth"; "required": false; }; }, { "onFileEvent": "onFileEvent"; "onDropBackground": "onDropBackground"; "closeDropzone": "closeDropzone"; }, never, never, true, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaUploadDropzoneComponent, "app-ca-upload-dropzone", never, { "dropZoneConfig": { "alias": "dropZoneConfig"; "required": false; }; "isDropzoneShownInCrop": { "alias": "isDropzoneShownInCrop"; "required": false; }; "customWidth": { "alias": "customWidth"; "required": false; }; "files": { "alias": "files"; "required": false; }; }, { "onFileEvent": "onFileEvent"; "onDropBackground": "onDropBackground"; "closeDropzone": "closeDropzone"; }, never, never, true, never>;
54
53
  }
@@ -1,4 +1,4 @@
1
- export declare enum FileAction {
1
+ export declare enum eFileDropZoneAction {
2
2
  ADD = "add",
3
3
  DROP = "drop",
4
4
  DRAGOVER = "dragover",
@@ -1,4 +1,4 @@
1
- export declare enum FileType {
1
+ export declare enum eDropZoneFileType {
2
2
  FILES = "files",
3
3
  MEDIA = "media",
4
4
  IMAGE = "image",
@@ -1,4 +1,4 @@
1
- export declare enum PagesEnum {
1
+ export declare enum eFileUploadPage {
2
2
  LIST_LOAD = "list_load",
3
3
  LIST_CUSTOMER = "list_customer",
4
4
  LIST_DRIVER = "list_driver",
@@ -17,8 +17,10 @@ export declare enum PagesEnum {
17
17
  LIST_FUEL = "list_fuel",
18
18
  LIST_OWNER = "list_owner",
19
19
  SAFETY_ROADSIDE_INSPECTION = "safety_roadside_inspection",
20
- CITATION = "citation",
20
+ SAFETY_ROADSIDE_INSPECTION_CITATION = "safety_roadside_inspection_citation",
21
21
  SAFETY_ACCIDENT = "safety_accident",
22
+ SAFETY_ACCIDENT_CITATION = "safety_accident_citation",
22
23
  TOOLS_TODO = "tools_todo",
24
+ FAX = "fax",
23
25
  INSURANCE_COMPANY = "insurance_company"
24
26
  }
@@ -1,3 +1,4 @@
1
- export * from './file-action.enum';
2
- export * from './file-type.enum';
3
- export * from './pages.enum';
1
+ export * from './file-dropzone-action.enum';
2
+ export * from './file-dropzone-type.enum';
3
+ export * from './file-upload-page.enum';
4
+ export * from './template-type.enum';
@@ -0,0 +1,7 @@
1
+ export declare enum eTemplateType {
2
+ DOCUMENTS = "documentsTemplate",
3
+ MEDIA = "mediaTemplate",
4
+ IMAGE = "imageTemplate",
5
+ IMAGE_CROP = "imageCropTemplate",
6
+ LOGO = "logoTemplate"
7
+ }
@@ -1,7 +1,7 @@
1
- import { Observable } from "rxjs";
2
- export declare class FileUtils {
1
+ import { Observable } from 'rxjs';
2
+ export declare class FileHelper {
3
3
  static getBlob(file: File): Observable<Blob>;
4
- static getFileExtension(fileName: string): string;
5
- static getSupportedExtensions(supportedExtensionsConfig: string[]): string[];
4
+ static getFileExtension(mimeType: string): string;
6
5
  static isSupportedExtension(extension: string, supportedExtensionsConfig: string[]): boolean;
6
+ private static getSupportedExtensions;
7
7
  }
@@ -1,4 +1,4 @@
1
- export interface DropBackgroundEvent {
1
+ export interface IDropBackgroundEvent {
2
2
  action: string;
3
3
  value: boolean;
4
4
  }
@@ -0,0 +1,10 @@
1
+ import { IDropZoneOptionConfig } from './dropzone-option-config.interface';
2
+ import { IDropZoneSettings } from './dropzone-settings.interface';
3
+ import { eTemplateType } from '../enums';
4
+ export interface IDropZoneConfig {
5
+ template: eTemplateType;
6
+ config?: {
7
+ dropzone?: IDropZoneSettings;
8
+ dropzoneOption?: IDropZoneOptionConfig;
9
+ };
10
+ }
@@ -1,4 +1,4 @@
1
- export interface DropZoneOptionConfig {
1
+ export interface IDropZoneOptionConfig {
2
2
  customClassName?: string;
3
3
  size?: string;
4
4
  modalSize?: string;
@@ -1,6 +1,6 @@
1
- export interface DropZoneConfig {
2
- dropZoneType?: string;
3
- dropZoneSvg?: string;
1
+ import { eDropZoneFileType } from '../enums';
2
+ export interface IDropZoneSettings {
3
+ dropZoneType?: eDropZoneFileType;
4
4
  dropZoneAvailableFiles?: string;
5
5
  multiple?: boolean;
6
6
  globalDropZone?: boolean;
@@ -1,4 +1,4 @@
1
- export interface FileConfig {
1
+ export interface IFileConfig {
2
2
  fileId?: number;
3
3
  name?: any;
4
4
  fileName?: string;
@@ -0,0 +1,8 @@
1
+ import { IFileConfig } from './file-config.interface';
2
+ export interface IFileEvent {
3
+ files: IFileConfig[] | IFileConfig;
4
+ action: string;
5
+ deleteId?: number;
6
+ index?: number;
7
+ type?: string;
8
+ }
@@ -0,0 +1,6 @@
1
+ export * from './drop-background-event.interface';
2
+ export * from './dropzone-settings.interface';
3
+ export * from './dropzone-option-config.interface';
4
+ export * from './file-config.interface';
5
+ export * from './file-event.interface';
6
+ export * from './dropzone-config.interface';
@@ -0,0 +1,7 @@
1
+ import { eDropZoneFileType } from '../../enums';
2
+ export declare class FileIconsConstants {
3
+ static readonly ICONS: Record<eDropZoneFileType, string>;
4
+ }
5
+ export declare class FileAnimationConstants {
6
+ static readonly ANIMATIONS: Record<eDropZoneFileType, string>;
7
+ }
@@ -1,4 +1,4 @@
1
- export declare class FileLimit {
1
+ export declare class FileLimitConstants {
2
2
  static readonly LIMIT: {
3
3
  [key: string]: number;
4
4
  };
@@ -1,4 +1,4 @@
1
- export * from './file-icons.constant';
2
- export * from './supported-extension.constant';
3
- export * from './lottie-constant';
4
- export * from './file-limit.constant';
1
+ export * from './file-icons.constants';
2
+ export * from './mime-type.constants';
3
+ export * from './lottie-animation.constants';
4
+ export * from './file-limit.constants';
@@ -1,4 +1,4 @@
1
1
  import { AnimationOptions } from 'ngx-lottie';
2
- export declare class LottieConstants {
2
+ export declare class LottieAnimationConstants {
3
3
  static readonly DEFAULT_LOTTIE: AnimationOptions;
4
4
  }
@@ -0,0 +1,5 @@
1
+ import { eDropZoneFileType } from '../../enums';
2
+ export declare class FileMimeTypeConstants {
3
+ static readonly SUPORTED_MIME_TYPE_MAP: Record<eDropZoneFileType, string[]>;
4
+ static MIME_TYPE_TO_EXTENSION: Record<string, string>;
5
+ }
@@ -1,28 +1,30 @@
1
- import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnInit, Renderer2 } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
3
  import { HttpClient } from '@angular/common/http';
4
4
  import { PDFDocumentProxy } from 'ng2-pdf-viewer';
5
5
  import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
6
6
  import { CaInputComponent } from '../../../ca-input/ca-input.component';
7
- import { DocumentReviewInputEvent, FileOptionConfig, ReviewFileConfig } from '../../models';
8
- import { DeleteAction, FileActionEvent } from './models';
9
- import { DocumentAction } from './enums';
7
+ import { IDocumentReviewInputEvent, IFileOptionConfig, IReviewFileConfig } from '../../interfaces';
8
+ import { IDeleteAction, IFileActionEvent } from './interfaces';
9
+ import { eDocumentAction } from './enums';
10
+ import { eReviewState } from '../../enums';
10
11
  import { FileNamePipe, UrlExtensionPipe } from './pipes';
11
12
  import { DocumentService } from './services';
12
13
  import * as i0 from "@angular/core";
13
14
  export declare class CaUploadFileComponent implements OnInit, AfterViewInit {
14
15
  private http;
15
16
  private ref;
17
+ private renderer;
16
18
  private urlExt;
17
19
  private fileNamePipe;
18
20
  private detailsDataService;
19
21
  t2: NgbPopover;
20
22
  inputRef: CaInputComponent;
21
- config: FileOptionConfig;
22
- reviewFileConfig: ReviewFileConfig;
23
- fileAction: EventEmitter<FileActionEvent>;
24
- deleteAction: EventEmitter<DeleteAction>;
25
- documentReviewInputEvent: EventEmitter<DocumentReviewInputEvent>;
23
+ config: IFileOptionConfig;
24
+ reviewFileConfig: IReviewFileConfig;
25
+ fileAction: EventEmitter<IFileActionEvent>;
26
+ deleteAction: EventEmitter<IDeleteAction>;
27
+ documentReviewInputEvent: EventEmitter<IDocumentReviewInputEvent>;
26
28
  landscapeCheck: EventEmitter<any>;
27
29
  fileHover: EventEmitter<any>;
28
30
  fileNewName: FormControl;
@@ -34,7 +36,6 @@ export declare class CaUploadFileComponent implements OnInit, AfterViewInit {
34
36
  annotationHover: boolean;
35
37
  documentLoading: boolean;
36
38
  isArrowHovered: boolean;
37
- fileExtension: string;
38
39
  numberOfFilePages: string;
39
40
  fileName: string;
40
41
  icons: {
@@ -44,40 +45,45 @@ export declare class CaUploadFileComponent implements OnInit, AfterViewInit {
44
45
  trash: string;
45
46
  close: string;
46
47
  };
47
- action: typeof DocumentAction;
48
+ isImageFile: boolean;
49
+ isVideoFile: boolean;
50
+ reviewState: typeof eReviewState;
51
+ fileInputConfig: import("../../../ca-input/config").ICaInput;
52
+ documentAction: typeof eDocumentAction;
53
+ videoThumbnail: string | null;
48
54
  private destroy$;
49
- constructor(http: HttpClient, ref: ChangeDetectorRef, urlExt: UrlExtensionPipe, fileNamePipe: FileNamePipe, detailsDataService: DocumentService);
55
+ constructor(http: HttpClient, ref: ChangeDetectorRef, renderer: Renderer2, urlExt: UrlExtensionPipe, fileNamePipe: FileNamePipe, detailsDataService: DocumentService);
50
56
  ngOnInit(): void;
51
57
  ngAfterViewInit(): void;
52
- private initializeFileExtension;
53
- onSpinner(): void;
54
- getfileName(): void;
55
58
  onBlurInput(event: boolean): void;
56
59
  afterLoadComplete(pdf: PDFDocumentProxy): void;
57
60
  pageRendered(event: any): void;
58
61
  onAction(action: string): void;
59
- private handleTagAction;
60
- private handleDownloadAction;
61
- private handleDeleteAction;
62
- private handleCancelAction;
63
- private handleMarkIncorrectAction;
64
- private handleMarkCorrectAction;
65
- downloadFile(url: string, filename: string): void;
66
62
  onEditFile(): void;
67
- private reviewInputControlChange;
68
63
  getAnnotationReviewEvent(event: {
69
64
  type: string;
70
65
  }): void;
71
- setTags(): void;
72
- setCategoryTag(): void;
73
- setSavedTag(): void;
74
66
  selectTag(tag: string): void;
75
67
  removeTag(): void;
76
68
  openDeletePopup(name: string): void;
77
69
  hoverFile(): void;
78
70
  updateHover(mod: boolean): void;
79
71
  hoverArrow(mod: boolean): void;
80
- identity(index: number): number;
72
+ onMouseEnter(): void;
73
+ onMouseLeave(): void;
74
+ private generateVideoThumbnail;
75
+ private getfileName;
76
+ private onSpinner;
77
+ private reviewInputControlChange;
78
+ private setSavedTag;
79
+ private handleTagAction;
80
+ private handleDownloadAction;
81
+ private handleDeleteAction;
82
+ private handleCancelAction;
83
+ private handleMarkIncorrectAction;
84
+ private handleMarkCorrectAction;
85
+ private downloadFile;
86
+ private setCategoryTag;
81
87
  ngOnDestroy(): void;
82
88
  static ɵfac: i0.ɵɵFactoryDeclaration<CaUploadFileComponent, never>;
83
89
  static ɵcmp: i0.ɵɵComponentDeclaration<CaUploadFileComponent, "app-ca-upload-file", never, { "config": { "alias": "config"; "required": false; }; "reviewFileConfig": { "alias": "reviewFileConfig"; "required": false; }; }, { "fileAction": "fileAction"; "deleteAction": "deleteAction"; "documentReviewInputEvent": "documentReviewInputEvent"; "landscapeCheck": "landscapeCheck"; "fileHover": "fileHover"; }, never, never, true, never>;
@@ -1,4 +1,4 @@
1
- export declare enum DocumentAction {
1
+ export declare enum eDocumentAction {
2
2
  TAG = "tag",
3
3
  DOWNLOAD = "download",
4
4
  DELETE = "delete",
@@ -1,4 +1,4 @@
1
- export interface DeleteAction {
1
+ export interface IDeleteAction {
2
2
  id: number;
3
3
  action: string;
4
4
  }
@@ -0,0 +1,5 @@
1
+ import { IFileConfig } from '../../ca-upload-dropzone/interfaces';
2
+ export interface IFileActionEvent {
3
+ file: IFileConfig;
4
+ action: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ export * from './delete-action.interface';
2
+ export * from './file-action-event.interface';
@@ -2,3 +2,4 @@ export * from './url-extension.pipe';
2
2
  export * from './file-name.pipe';
3
3
  export * from './byte-convert.pipe';
4
4
  export * from './ng-class.pipe';
5
+ export * from './mime-type-to-extension.pipe';
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MimeTypeToExtensionPipe implements PipeTransform {
4
+ transform(mimeType: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MimeTypeToExtensionPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<MimeTypeToExtensionPipe, "mimeTypeToExtension", true>;
7
+ }
@@ -0,0 +1 @@
1
+ export * from './upload-file-input.config';
@@ -0,0 +1,4 @@
1
+ import { ICaInput } from 'projects/ca-components/src/lib/components/ca-input/config';
2
+ export declare class UplodFileInputConfig {
3
+ static UPLOAD_INPUT_CONFIG: ICaInput;
4
+ }
@@ -1,17 +1,17 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
2
- import { FilesCarouselConfig } from './models';
3
- import { CarouselAction } from './enums';
2
+ import { eCarouselAction } from './enums';
3
+ import { IFilesCarouselConfig } from './interfaces';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class CaUploadFilesCarouselComponent implements OnInit {
6
6
  private ref;
7
7
  fileSlider: ElementRef;
8
8
  fileHolder: ElementRef;
9
9
  slideWidth: number;
10
- set config(data: FilesCarouselConfig);
10
+ set config(data: IFilesCarouselConfig);
11
11
  activeSlide: EventEmitter<number>;
12
12
  hoverArrowEmit: EventEmitter<boolean>;
13
- carouselConfig: FilesCarouselConfig;
14
- action: typeof CarouselAction;
13
+ carouselConfig: IFilesCarouselConfig;
14
+ action: typeof eCarouselAction;
15
15
  currentSlide: number;
16
16
  removePointers: boolean;
17
17
  filesShown: number;
@@ -22,7 +22,7 @@ export declare class CaUploadFilesCarouselComponent implements OnInit {
22
22
  ngOnInit(): void;
23
23
  private initializeCarousel;
24
24
  calculateFilesShown(): number;
25
- onAction(action: CarouselAction): void;
25
+ onAction(action: eCarouselAction): void;
26
26
  private handleSlideChange;
27
27
  private goToPreviousSlide;
28
28
  private goToNextSlide;
@@ -1,4 +1,4 @@
1
- export declare enum CarouselAction {
1
+ export declare enum eCarouselAction {
2
2
  PREV = "prev",
3
3
  NEXT = "next"
4
4
  }
@@ -1,4 +1,4 @@
1
- export declare enum FilesCarouselSize {
1
+ export declare enum eFilesCarouselSize {
2
2
  SMALL = "small",
3
3
  MEDIUM = "medium",
4
4
  LARGE = "large",
@@ -1,2 +1,2 @@
1
1
  export * from './carousel-action.enum';
2
- export * from './carousel-size.enum';
2
+ export * from './file-carousel-size.enum';
@@ -1,4 +1,4 @@
1
- export interface FilesCarouselConfig {
1
+ export interface IFilesCarouselConfig {
2
2
  files: any[];
3
3
  customClass: string;
4
4
  customDetailsPageClass?: string;
@@ -0,0 +1 @@
1
+ export * from './files-carousel.interface';
@@ -1,4 +1,4 @@
1
- export declare class FilesBySize {
1
+ export declare class FilesBySizeConstants {
2
2
  static readonly FILES_SHOWN_BY_SIZE: {
3
3
  [key: string]: number;
4
4
  };
@@ -0,0 +1,5 @@
1
+ export declare enum eFileAction {
2
+ ADD = "add",
3
+ REPLACE = "replace",
4
+ DELETE = "delete"
5
+ }