ca-components 1.3.2 → 1.3.31
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/esm2022/lib/components/ca-input/ca-input.component.mjs +3 -3
- package/esm2022/lib/components/ca-input/config/ca-input.config.mjs +1 -1
- package/esm2022/lib/components/ca-input/pipes/input-error.pipe.mjs +7 -1
- package/esm2022/lib/components/ca-input/pipes/label-class.pipe.mjs +5 -3
- package/esm2022/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.mjs +4 -2
- package/esm2022/lib/components/ca-input-dropdown/ca-input-dropdown.component.mjs +14 -5
- package/esm2022/lib/components/ca-logo-change/ca-logo-change.component.mjs +1 -1
- package/esm2022/lib/components/ca-todo/components/ca-todo-card.component.mjs +1 -1
- package/esm2022/lib/components/ca-todo/models/todo-config.model.mjs +1 -1
- package/esm2022/lib/components/ca-upload-files/ca-upload-files.component.mjs +66 -53
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.mjs +68 -51
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/file-dropzone-action.enum.mjs +8 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/file-dropzone-type.enum.mjs +8 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/file-upload-page.enum.mjs +28 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/index.mjs +5 -4
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/template-type.enum.mjs +9 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/helpers/file.helper.mjs +8 -9
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/drop-background-event.interface.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/dropzone-config.interface.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/dropzone-option-config.interface.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/dropzone-settings.interface.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/file-config.interface.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/file-event.interface.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/index.mjs +7 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/file-icons.constants.mjs +19 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/file-limit.constants.mjs +41 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/index.mjs +5 -5
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/lottie-animation.constants.mjs +9 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/mime-type.constants.mjs +29 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.mjs +167 -132
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/enums/document-action.enum.mjs +10 -10
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/enums/index.mjs +1 -1
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/interfaces/delete-action.interface.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/interfaces/file-action-event.interface.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/interfaces/index.mjs +3 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/pipes/index.mjs +2 -1
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/pipes/mime-type-to-extension.pipe.mjs +19 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/pipes/ng-class.pipe.mjs +4 -3
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/utils/config/index.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/utils/config/upload-file-input.config.mjs +10 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/utils/svg-routes/upload-file.routes.mjs +2 -2
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component.mjs +15 -15
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/carousel-action.enum.mjs +6 -6
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/file-carousel-size.enum.mjs +10 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/index.mjs +2 -2
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/interfaces/files-carousel.interface.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/interfaces/index.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/constants/files-by-size.constant.mjs +9 -9
- package/esm2022/lib/components/ca-upload-files/enums/file-action.enum.mjs +7 -0
- package/esm2022/lib/components/ca-upload-files/enums/file-size.enum.mjs +9 -9
- package/esm2022/lib/components/ca-upload-files/enums/file-type.enum.mjs +8 -0
- package/esm2022/lib/components/ca-upload-files/enums/index.mjs +4 -2
- package/esm2022/lib/components/ca-upload-files/enums/review-state.enum.mjs +6 -0
- package/esm2022/lib/components/ca-upload-files/interfaces/document-review-input-event.interface.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/interfaces/file-option-config.interface.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/interfaces/index.mjs +6 -0
- package/esm2022/lib/components/ca-upload-files/interfaces/review-file-config.interface.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/interfaces/slider.interface.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/interfaces/upload-files-config.interface.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/pipes/index.mjs +1 -1
- package/esm2022/lib/components/ca-upload-files/pipes/map-file.pipe.mjs +3 -3
- package/esm2022/lib/components/ca-upload-files/pipes/upload-class.pipe.mjs +1 -1
- package/esm2022/lib/components/ca-upload-files/services/upload-file.service.mjs +1 -1
- package/esm2022/public-api.mjs +4 -2
- package/fesm2022/ca-components.mjs +644 -489
- package/fesm2022/ca-components.mjs.map +1 -1
- package/lib/components/ca-input/config/ca-input.config.d.ts +1 -0
- package/lib/components/ca-input-dropdown/ca-input-dropdown.component.d.ts +3 -1
- package/lib/components/ca-logo-change/ca-logo-change.component.d.ts +2 -2
- package/lib/components/ca-todo/components/ca-todo-card.component.d.ts +5 -5
- package/lib/components/ca-todo/models/todo-config.model.d.ts +1 -1
- package/lib/components/ca-upload-files/ca-upload-files.component.d.ts +12 -12
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.d.ts +10 -11
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/{file-action.enum.d.ts → file-dropzone-action.enum.d.ts} +1 -1
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/{file-type.enum.d.ts → file-dropzone-type.enum.d.ts} +1 -1
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/{pages.enum.d.ts → file-upload-page.enum.d.ts} +4 -2
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/index.d.ts +4 -3
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/template-type.enum.d.ts +7 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/helpers/file.helper.d.ts +4 -4
- 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
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/dropzone-config.interface.d.ts +10 -0
- 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
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/{models/dropzone-config.model.d.ts → interfaces/dropzone-settings.interface.d.ts} +3 -3
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/{models/file-config.model.d.ts → interfaces/file-config.interface.d.ts} +1 -1
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/file-event.interface.d.ts +8 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/index.d.ts +6 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/file-icons.constants.d.ts +7 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/{file-limit.constant.d.ts → file-limit.constants.d.ts} +1 -1
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/index.d.ts +4 -4
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/{lottie-constant.d.ts → lottie-animation.constants.d.ts} +1 -1
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/mime-type.constants.d.ts +5 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.d.ts +33 -27
- package/lib/components/ca-upload-files/components/ca-upload-file/enums/document-action.enum.d.ts +1 -1
- package/lib/components/ca-upload-files/components/ca-upload-file/{models/delete-action.model.d.ts → interfaces/delete-action.interface.d.ts} +1 -1
- package/lib/components/ca-upload-files/components/ca-upload-file/interfaces/file-action-event.interface.d.ts +5 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/interfaces/index.d.ts +2 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/pipes/index.d.ts +1 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/pipes/mime-type-to-extension.pipe.d.ts +7 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/utils/config/index.d.ts +1 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/utils/config/upload-file-input.config.d.ts +4 -0
- package/lib/components/ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component.d.ts +6 -6
- package/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/carousel-action.enum.d.ts +1 -1
- 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
- package/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/index.d.ts +1 -1
- 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
- package/lib/components/ca-upload-files/components/ca-upload-files-carousel/interfaces/index.d.ts +1 -0
- package/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/constants/files-by-size.constant.d.ts +1 -1
- package/lib/components/ca-upload-files/enums/file-action.enum.d.ts +5 -0
- package/lib/components/ca-upload-files/enums/file-size.enum.d.ts +1 -1
- package/lib/components/ca-upload-files/enums/{file-types.enum.d.ts → file-type.enum.d.ts} +1 -1
- package/lib/components/ca-upload-files/enums/index.d.ts +3 -1
- package/lib/components/ca-upload-files/enums/review-state.enum.d.ts +4 -0
- package/lib/components/ca-upload-files/interfaces/document-review-input-event.interface.d.ts +5 -0
- package/lib/components/ca-upload-files/{models/file-option-config.model.d.ts → interfaces/file-option-config.interface.d.ts} +3 -3
- package/lib/components/ca-upload-files/interfaces/index.d.ts +5 -0
- package/lib/components/ca-upload-files/{models/review-file-config.model.d.ts → interfaces/review-file-config.interface.d.ts} +3 -2
- package/lib/components/ca-upload-files/{models/slider.model.d.ts → interfaces/slider.interface.d.ts} +1 -1
- package/lib/components/ca-upload-files/interfaces/upload-files-config.interface.d.ts +26 -0
- package/lib/components/ca-upload-files/pipes/map-file.pipe.d.ts +3 -3
- package/lib/components/ca-upload-files/services/upload-file.service.d.ts +3 -3
- package/package.json +1 -1
- package/public-api.d.ts +3 -1
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/config/dropzone-config.type.mjs +0 -2
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/config/index.mjs +0 -2
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/file-action.enum.mjs +0 -8
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/file-type.enum.mjs +0 -8
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/pages.enum.mjs +0 -26
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/drop-background-event.model.mjs +0 -2
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/dropzone-config.model.mjs +0 -2
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/dropzone-option-config.model.mjs +0 -2
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/file-config.model.mjs +0 -2
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/file-event.model.mjs +0 -2
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/index.mjs +0 -7
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/upload-file-templates.model.mjs +0 -2
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/file-icons.constant.mjs +0 -19
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/file-limit.constant.mjs +0 -28
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/lottie-constant.mjs +0 -9
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/supported-extension.constant.mjs +0 -11
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/index.mjs +0 -2
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/models/delete-action.model.mjs +0 -2
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/models/file-action.model.mjs +0 -2
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/models/index.mjs +0 -3
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/carousel-size.enum.mjs +0 -10
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/models/carousel-config.model.mjs +0 -2
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/models/index.mjs +0 -2
- package/esm2022/lib/components/ca-upload-files/enums/file-types.enum.mjs +0 -8
- package/esm2022/lib/components/ca-upload-files/models/document-review.model.mjs +0 -2
- package/esm2022/lib/components/ca-upload-files/models/file-option-config.model.mjs +0 -2
- package/esm2022/lib/components/ca-upload-files/models/index.mjs +0 -6
- package/esm2022/lib/components/ca-upload-files/models/review-file-config.model.mjs +0 -2
- package/esm2022/lib/components/ca-upload-files/models/slider.model.mjs +0 -2
- package/esm2022/lib/components/ca-upload-files/models/upload-files-config.model.mjs +0 -2
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/config/dropzone-config.type.d.ts +0 -8
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/config/index.d.ts +0 -1
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/models/file-event.model.d.ts +0 -8
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/models/index.d.ts +0 -6
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/models/upload-file-templates.model.d.ts +0 -1
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/file-icons.constant.d.ts +0 -7
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/supported-extension.constant.d.ts +0 -4
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/index.d.ts +0 -1
- package/lib/components/ca-upload-files/components/ca-upload-file/models/file-action.model.d.ts +0 -5
- package/lib/components/ca-upload-files/components/ca-upload-file/models/index.d.ts +0 -2
- package/lib/components/ca-upload-files/components/ca-upload-files-carousel/models/index.d.ts +0 -1
- package/lib/components/ca-upload-files/models/document-review.model.d.ts +0 -5
- package/lib/components/ca-upload-files/models/index.d.ts +0 -5
- 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 {
|
|
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:
|
|
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 {
|
|
6
|
-
import {
|
|
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<
|
|
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:
|
|
32
|
-
_config:
|
|
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/
|
|
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 {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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<
|
|
17
|
-
onFileEvent: EventEmitter<
|
|
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():
|
|
26
|
-
get 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:
|
|
34
|
+
file: IFileConfig;
|
|
36
35
|
action: string;
|
|
37
36
|
}): void;
|
|
38
37
|
onUploadFiles(data: {
|
|
39
|
-
files:
|
|
38
|
+
files: IFileConfig[];
|
|
40
39
|
action: string;
|
|
41
40
|
}): void;
|
|
42
41
|
documentReviewInputEventMethod(data: {
|
|
43
|
-
file:
|
|
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:
|
|
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 {
|
|
4
|
-
import {
|
|
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
|
|
11
|
+
set dropZoneConfig(data: IDropZoneConfig);
|
|
12
12
|
isDropzoneShownInCrop: boolean;
|
|
13
13
|
customWidth: string;
|
|
14
|
+
files: IFileConfig[];
|
|
14
15
|
onFileEvent: EventEmitter<{
|
|
15
|
-
files:
|
|
16
|
+
files: IFileConfig[];
|
|
16
17
|
action: string;
|
|
17
18
|
}>;
|
|
18
|
-
onDropBackground: EventEmitter<
|
|
19
|
+
onDropBackground: EventEmitter<IDropBackgroundEvent>;
|
|
19
20
|
closeDropzone: EventEmitter<{}>;
|
|
20
|
-
|
|
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, { "
|
|
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
|
|
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
|
-
|
|
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 './
|
|
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';
|
package/lib/components/ca-upload-files/components/ca-upload-dropzone/helpers/file.helper.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
export declare class
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare class FileHelper {
|
|
3
3
|
static getBlob(file: File): Observable<Blob>;
|
|
4
|
-
static getFileExtension(
|
|
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
|
}
|
|
@@ -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,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { eDropZoneFileType } from '../enums';
|
|
2
|
+
export interface IDropZoneSettings {
|
|
3
|
+
dropZoneType?: eDropZoneFileType;
|
|
4
4
|
dropZoneAvailableFiles?: string;
|
|
5
5
|
multiple?: boolean;
|
|
6
6
|
globalDropZone?: boolean;
|
|
@@ -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
|
+
}
|
package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './file-icons.
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './lottie-
|
|
4
|
-
export * from './file-limit.
|
|
1
|
+
export * from './file-icons.constants';
|
|
2
|
+
export * from './mime-type.constants';
|
|
3
|
+
export * from './lottie-animation.constants';
|
|
4
|
+
export * from './file-limit.constants';
|
package/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.d.ts
CHANGED
|
@@ -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 {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
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:
|
|
22
|
-
reviewFileConfig:
|
|
23
|
-
fileAction: EventEmitter<
|
|
24
|
-
deleteAction: EventEmitter<
|
|
25
|
-
documentReviewInputEvent: EventEmitter<
|
|
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
|
-
|
|
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
|
-
|
|
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>;
|
|
@@ -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';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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:
|
|
10
|
+
set config(data: IFilesCarouselConfig);
|
|
11
11
|
activeSlide: EventEmitter<number>;
|
|
12
12
|
hoverArrowEmit: EventEmitter<boolean>;
|
|
13
|
-
carouselConfig:
|
|
14
|
-
action: typeof
|
|
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:
|
|
25
|
+
onAction(action: eCarouselAction): void;
|
|
26
26
|
private handleSlideChange;
|
|
27
27
|
private goToPreviousSlide;
|
|
28
28
|
private goToNextSlide;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './carousel-action.enum';
|
|
2
|
-
export * from './carousel-size.enum';
|
|
2
|
+
export * from './file-carousel-size.enum';
|
package/lib/components/ca-upload-files/components/ca-upload-files-carousel/interfaces/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './files-carousel.interface';
|