ca-components 0.0.69 → 0.0.71
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/animations/show.animation.mjs +2 -2
- package/esm2022/lib/ca-components.module.mjs +16 -6
- package/esm2022/lib/components/ca-activity-log-list/ca-activity-log-list.component.mjs +63 -0
- package/esm2022/lib/components/ca-activity-log-list/components/ca-activity-log-item/ca-activity-log-item.component.mjs +42 -0
- package/esm2022/lib/components/ca-activity-log-list/enums/activity-log-list-type.enums.mjs +18 -0
- package/esm2022/lib/components/ca-activity-log-list/models/activity-log-item.model.mjs +2 -0
- package/esm2022/lib/components/ca-activity-log-list/utils/pipes/action-log-name-transform.pipe.mjs +20 -0
- package/esm2022/lib/components/ca-activity-log-list/utils/svg-routes/activity-log-list.routes.mjs +5 -0
- package/esm2022/lib/components/ca-input/enums/input-string.enum.mjs +7 -1
- package/esm2022/lib/components/ca-input/services/ca-input-state.service.mjs +218 -22
- package/esm2022/lib/components/ca-input/utils/constants/index.mjs +2 -0
- package/esm2022/lib/components/ca-input/utils/constants/input-constants.mjs +18 -0
- package/esm2022/lib/components/ca-logo-change/ca-logo-change.component.mjs +108 -0
- package/esm2022/lib/components/ca-logo-change/pipes/logo-slider.pipe.mjs +17 -0
- package/esm2022/lib/components/ca-logo-change/utils/constants/logo-change.constants.mjs +17 -0
- package/esm2022/lib/components/ca-main-table/ca-main-table.component.mjs +10 -4
- package/esm2022/lib/components/ca-period-content/components/ca-period-content-payment/ca-period-content-payment.component.mjs +3 -3
- package/esm2022/lib/components/ca-upload-files/ca-upload-files.component.mjs +334 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.mjs +311 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/config/dropzone-config.type.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/config/index.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/directives/template.directive.mjs +19 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/file-action.enum.mjs +8 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/file-type.enum.mjs +8 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/index.mjs +4 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/pages.enum.mjs +26 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/helpers/file.helper.mjs +23 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/helpers/index.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/drop-background-event.model.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/dropzone-config.model.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/dropzone-option-config.model.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/file-config.model.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/file-event.model.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/index.mjs +7 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/models/upload-file-templates.model.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/file-icons.constant.mjs +19 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/file-limit.constant.mjs +28 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/index.mjs +5 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/lottie-constant.mjs +9 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/supported-extension.constant.mjs +11 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/index.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/svg-routes/dropzone-svg.routes.mjs +4 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.mjs +351 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/enums/document-action.enum.mjs +10 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/enums/index.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/models/delete-action.model.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/models/file-action.model.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/models/index.mjs +3 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/pipes/byte-convert.pipe.mjs +22 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/pipes/file-name.pipe.mjs +22 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/pipes/index.mjs +5 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/pipes/ng-class.pipe.mjs +36 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/pipes/url-extension.pipe.mjs +21 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/services/document.service.mjs +19 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/services/index.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/utils/svg-routes/index.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/utils/svg-routes/upload-file.routes.mjs +10 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component.mjs +159 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/carousel-action.enum.mjs +6 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/carousel-size.enum.mjs +10 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/index.mjs +3 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/models/carousel-config.model.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/models/index.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/constants/files-by-size.constant.mjs +16 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/constants/index.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/index.mjs +3 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/svg-routes/carousel-svg.routes.mjs +4 -0
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/svg-routes/index.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/enums/file-size.enum.mjs +9 -0
- package/esm2022/lib/components/ca-upload-files/enums/file-types.enum.mjs +8 -0
- package/esm2022/lib/components/ca-upload-files/enums/index.mjs +3 -0
- package/esm2022/lib/components/ca-upload-files/models/document-review.model.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/models/file-option-config.model.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/models/index.mjs +5 -0
- package/esm2022/lib/components/ca-upload-files/models/review-file-config.model.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/models/slider.model.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/pipes/index.mjs +3 -0
- package/esm2022/lib/components/ca-upload-files/pipes/map-file.pipe.mjs +20 -0
- package/esm2022/lib/components/ca-upload-files/pipes/upload-class.pipe.mjs +43 -0
- package/esm2022/lib/components/ca-upload-files/services/index.mjs +2 -0
- package/esm2022/lib/components/ca-upload-files/services/upload-file.service.mjs +30 -0
- package/esm2022/lib/pipes/thousand-separator.pipe.mjs +6 -2
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/ca-components.mjs +2016 -37
- package/fesm2022/ca-components.mjs.map +1 -1
- package/lib/ca-components.module.d.ts +3 -1
- package/lib/components/ca-activity-log-list/ca-activity-log-list.component.d.ts +21 -0
- package/lib/components/ca-activity-log-list/components/ca-activity-log-item/ca-activity-log-item.component.d.ts +13 -0
- package/lib/components/ca-activity-log-list/enums/activity-log-list-type.enums.d.ts +14 -0
- package/lib/components/ca-activity-log-list/models/activity-log-item.model.d.ts +31 -0
- package/lib/components/ca-activity-log-list/utils/pipes/action-log-name-transform.pipe.d.ts +7 -0
- package/lib/components/ca-activity-log-list/utils/svg-routes/activity-log-list.routes.d.ts +4 -0
- package/lib/components/ca-input/enums/input-string.enum.d.ts +7 -1
- package/lib/components/ca-input/services/ca-input-state.service.d.ts +19 -3
- package/lib/components/ca-input/utils/constants/index.d.ts +1 -0
- package/lib/components/ca-input/utils/constants/input-constants.d.ts +3 -0
- package/lib/components/ca-logo-change/ca-logo-change.component.d.ts +34 -0
- package/lib/components/ca-logo-change/pipes/logo-slider.pipe.d.ts +7 -0
- package/lib/components/ca-logo-change/utils/constants/logo-change.constants.d.ts +6 -0
- package/lib/components/ca-main-table/ca-main-table.component.d.ts +3 -1
- package/lib/components/ca-upload-files/ca-upload-files.component.d.ts +66 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.d.ts +53 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/config/dropzone-config.type.d.ts +8 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/config/index.d.ts +1 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/directives/template.directive.d.ts +9 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/file-action.enum.d.ts +6 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/file-type.enum.d.ts +6 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/index.d.ts +3 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/pages.enum.d.ts +24 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/helpers/file.helper.d.ts +7 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/helpers/index.d.ts +1 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/models/drop-background-event.model.d.ts +4 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/models/dropzone-config.model.d.ts +8 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/models/dropzone-option-config.model.d.ts +14 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/models/file-config.model.d.ts +19 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/models/file-event.model.d.ts +8 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/models/index.d.ts +6 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/models/upload-file-templates.model.d.ts +1 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/file-icons.constant.d.ts +7 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/file-limit.constant.d.ts +5 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/index.d.ts +4 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/lottie-constant.d.ts +4 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/supported-extension.constant.d.ts +4 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/index.d.ts +1 -0
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/svg-routes/dropzone-svg.routes.d.ts +3 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.d.ts +84 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/enums/document-action.enum.d.ts +8 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/enums/index.d.ts +1 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/models/delete-action.model.d.ts +4 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/models/file-action.model.d.ts +5 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/models/index.d.ts +2 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/pipes/byte-convert.pipe.d.ts +7 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/pipes/file-name.pipe.d.ts +7 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/pipes/index.d.ts +4 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/pipes/ng-class.pipe.d.ts +7 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/pipes/url-extension.pipe.d.ts +7 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/services/document.service.d.ts +8 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/services/index.d.ts +1 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/utils/svg-routes/index.d.ts +1 -0
- package/lib/components/ca-upload-files/components/ca-upload-file/utils/svg-routes/upload-file.routes.d.ts +9 -0
- package/lib/components/ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component.d.ts +36 -0
- package/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/carousel-action.enum.d.ts +4 -0
- package/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/carousel-size.enum.d.ts +8 -0
- package/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/index.d.ts +2 -0
- package/lib/components/ca-upload-files/components/ca-upload-files-carousel/models/carousel-config.model.d.ts +7 -0
- package/lib/components/ca-upload-files/components/ca-upload-files-carousel/models/index.d.ts +1 -0
- package/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/constants/files-by-size.constant.d.ts +8 -0
- package/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/constants/index.d.ts +1 -0
- package/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/index.d.ts +2 -0
- package/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/svg-routes/carousel-svg.routes.d.ts +3 -0
- package/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/svg-routes/index.d.ts +1 -0
- package/lib/components/ca-upload-files/enums/file-size.enum.d.ts +7 -0
- package/lib/components/ca-upload-files/enums/file-types.enum.d.ts +6 -0
- package/lib/components/ca-upload-files/enums/index.d.ts +2 -0
- package/lib/components/ca-upload-files/models/document-review.model.d.ts +5 -0
- package/lib/components/ca-upload-files/models/file-option-config.model.d.ts +14 -0
- package/lib/components/ca-upload-files/models/index.d.ts +4 -0
- package/lib/components/ca-upload-files/models/review-file-config.model.d.ts +8 -0
- package/lib/components/ca-upload-files/models/slider.model.d.ts +4 -0
- package/lib/components/ca-upload-files/pipes/index.d.ts +2 -0
- package/lib/components/ca-upload-files/pipes/map-file.pipe.d.ts +9 -0
- package/lib/components/ca-upload-files/pipes/upload-class.pipe.d.ts +7 -0
- package/lib/components/ca-upload-files/services/index.d.ts +1 -0
- package/lib/components/ca-upload-files/services/upload-file.service.d.ts +18 -0
- package/lib/pipes/thousand-separator.pipe.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/src/assets/ca-components/svg/common/ic_forbidden.svg +3 -0
- package/src/assets/ca-components/svg/common/ic_grid.svg +8 -0
- package/src/assets/ca-components/svg/common/ic_radial.svg +3 -0
- package/src/assets/ca-components/svg/common/ic_reset.svg +3 -0
- package/src/assets/ca-components/svg/input/ic_email.svg +6 -0
- package/src/assets/ca-components/svg/input/ic_phone.svg +6 -0
- package/src/assets/ca-components/svg/telematic-map-list/ic_arrow-right.svg +11 -0
- package/src/assets/ca-components/svg/telematic-map-list/ic_arrow-up-rectangle.svg +11 -0
- package/src/assets/ca-components/svg/telematic-map-list/ic_arrow-up-right.svg +11 -0
- package/src/assets/ca-components/svg/telematic-map-list/ic_arrow-up.svg +11 -0
- package/src/assets/ca-components/svg/telematic-map-list/ic_circle-grey-filled.svg +4 -0
- package/src/assets/ca-components/svg/telematic-map-list/ic_circle-grey.svg +4 -0
- package/src/assets/ca-components/svg/telematic-map-list/ic_circle-orange.svg +4 -0
- package/src/assets/ca-components/svg/telematic-map-list/ic_circle-red-filled.svg +4 -0
- package/src/assets/ca-components/svg/telematic-map-list/ic_document.svg +3 -0
- package/src/assets/ca-components/svg/telematic-map-list/ic_eye-icon-closed.svg +3 -0
- package/src/assets/ca-components/svg/telematic-map-list/ic_eye-icon.svg +3 -0
- package/src/assets/ca-components/svg/telematic-map-list/ic_no-document.svg +7 -0
- package/src/assets/ca-components/svg/telematic-map-list/ic_rectangle-orange.svg +11 -0
- package/src/assets/ca-components/svg/telematic-map-list/ic_repair_engine.svg +3 -0
|
@@ -23,8 +23,10 @@ import * as i21 from "./components/ca-period-content/ca-period-content.component
|
|
|
23
23
|
import * as i22 from "./components/ca-input-note/ca-input-note.component";
|
|
24
24
|
import * as i23 from "./components/ca-input-address-dropdown/ca-input-address-dropdown.component";
|
|
25
25
|
import * as i24 from "./components/ca-main-table/ca-main-table.component";
|
|
26
|
+
import * as i25 from "./components/ca-activity-log-list/components/ca-activity-log-item/ca-activity-log-item.component";
|
|
27
|
+
import * as i26 from "./components/ca-activity-log-list/ca-activity-log-list.component";
|
|
26
28
|
export declare class CaComponentsLibModule {
|
|
27
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaComponentsLibModule, never>;
|
|
28
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CaComponentsLibModule, never, [typeof i1.CommonModule, typeof i2.CaProfileImageComponent, typeof i3.CaRatingReviewComponent, typeof i4.CaAppTooltipV2Component, typeof i5.CaDetailsDropdownComponent, typeof i6.CaDropdownComponent, typeof i7.CaFilterComponent, typeof i8.CaInputComponent, typeof i9.CaInputRadiobuttonsComponent, typeof i10.CaMapComponent, typeof i11.CaMapDropdownComponent, typeof i12.CaNoteComponent, typeof i13.CaNoteContainerComponent, typeof i14.CaPayrollListSummaryOverviewComponent, typeof i15.CaPayrollListSummaryOverviewTableComponent, typeof i16.PickupDeliveryBlockComponent, typeof i17.ProgressBarComponent, typeof i18.CaSearchMultipleStatesComponent, typeof i19.CaSpinnerComponent, typeof i20.CaTruckTrailerProgresBarComponent, typeof i21.CaPeriodContentComponent, typeof i22.CaInputNoteComponent, typeof i23.CaInputAddressDropdownComponent, typeof i24.CaMainTableComponent], [typeof i2.CaProfileImageComponent, typeof i4.CaAppTooltipV2Component, typeof i5.CaDetailsDropdownComponent, typeof i3.CaRatingReviewComponent, typeof i6.CaDropdownComponent, typeof i7.CaFilterComponent, typeof i8.CaInputComponent, typeof i9.CaInputRadiobuttonsComponent, typeof i10.CaMapComponent, typeof i11.CaMapDropdownComponent, typeof i12.CaNoteComponent, typeof i13.CaNoteContainerComponent, typeof i14.CaPayrollListSummaryOverviewComponent, typeof i15.CaPayrollListSummaryOverviewTableComponent, typeof i16.PickupDeliveryBlockComponent, typeof i17.ProgressBarComponent, typeof i18.CaSearchMultipleStatesComponent, typeof i19.CaSpinnerComponent, typeof i20.CaTruckTrailerProgresBarComponent, typeof i21.CaPeriodContentComponent, typeof i22.CaInputNoteComponent, typeof i24.CaMainTableComponent]>;
|
|
30
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CaComponentsLibModule, never, [typeof i1.CommonModule, typeof i2.CaProfileImageComponent, typeof i3.CaRatingReviewComponent, typeof i4.CaAppTooltipV2Component, typeof i5.CaDetailsDropdownComponent, typeof i6.CaDropdownComponent, typeof i7.CaFilterComponent, typeof i8.CaInputComponent, typeof i9.CaInputRadiobuttonsComponent, typeof i10.CaMapComponent, typeof i11.CaMapDropdownComponent, typeof i12.CaNoteComponent, typeof i13.CaNoteContainerComponent, typeof i14.CaPayrollListSummaryOverviewComponent, typeof i15.CaPayrollListSummaryOverviewTableComponent, typeof i16.PickupDeliveryBlockComponent, typeof i17.ProgressBarComponent, typeof i18.CaSearchMultipleStatesComponent, typeof i19.CaSpinnerComponent, typeof i20.CaTruckTrailerProgresBarComponent, typeof i21.CaPeriodContentComponent, typeof i22.CaInputNoteComponent, typeof i23.CaInputAddressDropdownComponent, typeof i24.CaMainTableComponent, typeof i25.CaActivityLogItemComponent, typeof i26.CaActivityLogListComponent], [typeof i2.CaProfileImageComponent, typeof i4.CaAppTooltipV2Component, typeof i5.CaDetailsDropdownComponent, typeof i3.CaRatingReviewComponent, typeof i6.CaDropdownComponent, typeof i7.CaFilterComponent, typeof i8.CaInputComponent, typeof i9.CaInputRadiobuttonsComponent, typeof i10.CaMapComponent, typeof i11.CaMapDropdownComponent, typeof i12.CaNoteComponent, typeof i13.CaNoteContainerComponent, typeof i14.CaPayrollListSummaryOverviewComponent, typeof i15.CaPayrollListSummaryOverviewTableComponent, typeof i16.PickupDeliveryBlockComponent, typeof i17.ProgressBarComponent, typeof i18.CaSearchMultipleStatesComponent, typeof i19.CaSpinnerComponent, typeof i20.CaTruckTrailerProgresBarComponent, typeof i21.CaPeriodContentComponent, typeof i22.CaInputNoteComponent, typeof i24.CaMainTableComponent, typeof i26.CaActivityLogListComponent]>;
|
|
29
31
|
static ɵinj: i0.ɵɵInjectorDeclaration<CaComponentsLibModule>;
|
|
30
32
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ActivityEntityType } from './enums/activity-log-list-type.enums';
|
|
3
|
+
import { ActivityLogItem } from './models/activity-log-item.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CaActivityLogListComponent implements OnInit {
|
|
6
|
+
activityLogData: {
|
|
7
|
+
type: ActivityEntityType;
|
|
8
|
+
activityLogList: ActivityLogItem[];
|
|
9
|
+
};
|
|
10
|
+
addedList: ActivityLogItem[];
|
|
11
|
+
editedList: ActivityLogItem[];
|
|
12
|
+
activityLogLists: {
|
|
13
|
+
title: string;
|
|
14
|
+
list: ActivityLogItem[];
|
|
15
|
+
}[];
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
filterActivityLogList(): void;
|
|
18
|
+
getSvgPath(propertyName: string): string;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaActivityLogListComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaActivityLogListComponent, "lib-ca-activity-log-list", never, { "activityLogData": { "alias": "activityLogData"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ActivityLogItem, ActivityLogItemDescription } from '../../models/activity-log-item.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CaActivityLogItemComponent implements OnInit {
|
|
5
|
+
activityLogItem: ActivityLogItem;
|
|
6
|
+
activityLogItemDescription: ActivityLogItemDescription;
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
getSvgPath(propertyName: string): string;
|
|
9
|
+
formatDateToTime(date: Date | null | undefined): string | null;
|
|
10
|
+
getActivityLogDate(item: ActivityLogItem): Date | null | undefined;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaActivityLogItemComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaActivityLogItemComponent, "ca-activity-log-item", never, { "activityLogItem": { "alias": "activityLogItem"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum ActivityEntityType {
|
|
2
|
+
TRUCK = "Truck",
|
|
3
|
+
DRIVER = "Driver"
|
|
4
|
+
}
|
|
5
|
+
export declare enum ActionLogType {
|
|
6
|
+
CREATED = "Created",
|
|
7
|
+
EDITED = "Edited",
|
|
8
|
+
ACTIVATED = "Activated"
|
|
9
|
+
}
|
|
10
|
+
export declare enum ActionLogTypeTitleText {
|
|
11
|
+
CREATED = "Added",
|
|
12
|
+
EDITED = "Edited",
|
|
13
|
+
ACTIVATED = "Activated"
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ActionLogType } from "../enums/activity-log-list-type.enums";
|
|
2
|
+
export interface ActivityLogItem {
|
|
3
|
+
id: number;
|
|
4
|
+
companyUser: CompanyUser;
|
|
5
|
+
entityTypeActivity: EntityTypeActivity;
|
|
6
|
+
actionLog: ActionLog;
|
|
7
|
+
description: string;
|
|
8
|
+
createdAt?: Date | null;
|
|
9
|
+
updatedAt?: Date | null;
|
|
10
|
+
isLastInList?: boolean | false;
|
|
11
|
+
}
|
|
12
|
+
export interface CompanyUser {
|
|
13
|
+
id: number;
|
|
14
|
+
userId: number;
|
|
15
|
+
fullName: string;
|
|
16
|
+
avatarFile: string | null;
|
|
17
|
+
departmentId: number | null;
|
|
18
|
+
}
|
|
19
|
+
export interface EntityTypeActivity {
|
|
20
|
+
id: number;
|
|
21
|
+
name: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ActionLog {
|
|
24
|
+
id: number;
|
|
25
|
+
name: ActionLogType;
|
|
26
|
+
}
|
|
27
|
+
export interface ActivityLogItemDescription {
|
|
28
|
+
Title: string;
|
|
29
|
+
SubTitle: string;
|
|
30
|
+
Aditional: {};
|
|
31
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ActionLogNameTransformPipe implements PipeTransform {
|
|
4
|
+
transform(value: string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionLogNameTransformPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ActionLogNameTransformPipe, "actionLogNameTransform", true>;
|
|
7
|
+
}
|
|
@@ -6,9 +6,11 @@ import { CommandsEvent } from '../models';
|
|
|
6
6
|
import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
|
|
7
7
|
import { CalendarDateTimePickerService } from '../../ca-custom-datetime-pickers/services/calendar-datetime-picker.service';
|
|
8
8
|
import { InputChangeValue } from '../utils';
|
|
9
|
+
import { ThousandSeparatorPipe } from '../../../pipes/thousand-separator.pipe';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class InputStateService {
|
|
11
12
|
private calendarService;
|
|
13
|
+
private thousandSeparatorPipe;
|
|
12
14
|
private isFocusInputSubject;
|
|
13
15
|
isFocusInput$: Observable<boolean>;
|
|
14
16
|
private isTouchedInputSubject;
|
|
@@ -67,7 +69,7 @@ export declare class InputStateService {
|
|
|
67
69
|
private passwordTimeout;
|
|
68
70
|
cursorInputPosition: number;
|
|
69
71
|
hasDecimalIndex: number;
|
|
70
|
-
originPriceSeparatorLimit: number;
|
|
72
|
+
originPriceSeparatorLimit: number | undefined;
|
|
71
73
|
isDotDeleted: boolean;
|
|
72
74
|
numberOfConsecutivelySpaces: number;
|
|
73
75
|
oneSpaceOnlyCounter: number;
|
|
@@ -75,7 +77,7 @@ export declare class InputStateService {
|
|
|
75
77
|
numberOfConsecutivelyPoints: number;
|
|
76
78
|
numberOfPoints: number;
|
|
77
79
|
private destroy$;
|
|
78
|
-
constructor(calendarService: CalendarDateTimePickerService);
|
|
80
|
+
constructor(calendarService: CalendarDateTimePickerService, thousandSeparatorPipe: ThousandSeparatorPipe);
|
|
79
81
|
setIsFocusInput(value: boolean): void;
|
|
80
82
|
setIsTouchedInput(value: boolean): void;
|
|
81
83
|
setIsVisibleCommands(value: boolean): void;
|
|
@@ -101,7 +103,21 @@ export declare class InputStateService {
|
|
|
101
103
|
setOnChange(value: InputChangeValue): void;
|
|
102
104
|
writeValue(obj: InputChangeValue): void;
|
|
103
105
|
clearInput(event: Event): void;
|
|
104
|
-
transformText(event: Event): void;
|
|
106
|
+
transformText(event: Event, isPaste?: boolean): void;
|
|
107
|
+
private handlePaste;
|
|
108
|
+
private limitInputLength;
|
|
109
|
+
private applyTextTransformation;
|
|
110
|
+
private applyThousandSeparator;
|
|
111
|
+
private applyPriceSeparator;
|
|
112
|
+
private formatWithDecimal;
|
|
113
|
+
private formatWithoutDecimal;
|
|
114
|
+
private setInputCursorPosition;
|
|
115
|
+
private isAllZeros;
|
|
116
|
+
private customValidation;
|
|
117
|
+
private capitalizeWords;
|
|
118
|
+
private sanitizeConsecutiveSpaces;
|
|
119
|
+
private setCursorForSanitizedInput;
|
|
120
|
+
private removeLeadingZero;
|
|
105
121
|
autoFocusFirstInput(): void;
|
|
106
122
|
onCommands(event: Event, type: string, action: string): void;
|
|
107
123
|
private handlePmIncrementDecrement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './input-constants';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ChangeContext, Options } from '@angular-slider/ngx-slider';
|
|
3
|
+
import { ImageCroppedEvent, CropperPosition } from 'ngx-image-cropper';
|
|
4
|
+
import { FileConfig } from '../ca-upload-files/components/ca-upload-dropzone/models/file-config.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CaLogoChangeComponent implements OnDestroy {
|
|
7
|
+
fileInput: ElementRef;
|
|
8
|
+
customClass: string | null;
|
|
9
|
+
imageToCrop: string | undefined;
|
|
10
|
+
isRoundCropper: boolean;
|
|
11
|
+
imageChangedEvent: Event | null;
|
|
12
|
+
isDropzoneShown: boolean;
|
|
13
|
+
sendImageData: EventEmitter<{
|
|
14
|
+
files: FileConfig[];
|
|
15
|
+
action: string;
|
|
16
|
+
}>;
|
|
17
|
+
private destroy$;
|
|
18
|
+
imageUrl: string | null;
|
|
19
|
+
imageScale: number;
|
|
20
|
+
hasSavedImage: boolean;
|
|
21
|
+
croppedImage: string | null;
|
|
22
|
+
private initialCropperPosition;
|
|
23
|
+
cropperPosition: CropperPosition;
|
|
24
|
+
ngxLogoOptions: Options;
|
|
25
|
+
ngxSliderPosition: number;
|
|
26
|
+
fileChangeEvent(event: Event): void;
|
|
27
|
+
imageCropped(event: ImageCroppedEvent): void;
|
|
28
|
+
onCancel(): void;
|
|
29
|
+
saveImage(): void;
|
|
30
|
+
onZoomChange(event: number | ChangeContext): void;
|
|
31
|
+
ngOnDestroy(): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaLogoChangeComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaLogoChangeComponent, "app-ca-logo-change", never, { "customClass": { "alias": "customClass"; "required": false; }; "imageToCrop": { "alias": "imageToCrop"; "required": false; }; "isRoundCropper": { "alias": "isRoundCropper"; "required": false; }; "imageChangedEvent": { "alias": "imageChangedEvent"; "required": false; }; "isDropzoneShown": { "alias": "isDropzoneShown"; "required": false; }; }, { "sendImageData": "sendImageData"; }, never, never, true, never>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LogoSliderPipe implements PipeTransform {
|
|
4
|
+
transform(customClass: string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LogoSliderPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LogoSliderPipe, "logoSlider", true>;
|
|
7
|
+
}
|
|
@@ -8,7 +8,9 @@ export declare class CaMainTableComponent implements OnInit {
|
|
|
8
8
|
private cdRef;
|
|
9
9
|
tableData: any;
|
|
10
10
|
onPressEvent: EventEmitter<any>;
|
|
11
|
+
onReorder: EventEmitter<CdkDragDrop<any[] | null, any, any>>;
|
|
11
12
|
reorderTemplate: TemplateRef<any>;
|
|
13
|
+
reorderTemplatePreview: TemplateRef<any>;
|
|
12
14
|
transparentTable: boolean;
|
|
13
15
|
sortPredicate: (index: number, item: CdkDrag<number>) => boolean;
|
|
14
16
|
hideFieldsToHide: boolean;
|
|
@@ -27,5 +29,5 @@ export declare class CaMainTableComponent implements OnInit {
|
|
|
27
29
|
dropHeader(event: CdkDragDrop<string[]>): void;
|
|
28
30
|
drop(event: CdkDragDrop<any[] | null, any, any>): void;
|
|
29
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaMainTableComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaMainTableComponent, "app-ca-main-table", never, { "reorderTemplate": { "alias": "reorderTemplate"; "required": false; }; "transparentTable": { "alias": "transparentTable"; "required": false; }; "sortPredicate": { "alias": "sortPredicate"; "required": false; }; "hideFieldsToHide": { "alias": "hideFieldsToHide"; "required": false; }; "reorderItems": { "alias": "reorderItems"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data$": { "alias": "data$"; "required": false; }; }, { "onPressEvent": "onPressEvent"; }, never, never, true, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaMainTableComponent, "app-ca-main-table", never, { "reorderTemplate": { "alias": "reorderTemplate"; "required": false; }; "reorderTemplatePreview": { "alias": "reorderTemplatePreview"; "required": false; }; "transparentTable": { "alias": "transparentTable"; "required": false; }; "sortPredicate": { "alias": "sortPredicate"; "required": false; }; "hideFieldsToHide": { "alias": "hideFieldsToHide"; "required": false; }; "reorderItems": { "alias": "reorderItems"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data$": { "alias": "data$"; "required": false; }; }, { "onPressEvent": "onPressEvent"; "onReorder": "onReorder"; }, never, never, true, never>;
|
|
31
33
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter, QueryList } from '@angular/core';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { CaUploadFileComponent } from './components/ca-upload-file/ca-upload-file.component';
|
|
4
|
+
import { CaUploadFilesCarouselComponent } from './components/ca-upload-files-carousel/ca-upload-files-carousel.component';
|
|
5
|
+
import { DocumentReviewInputEvent, FileOptionConfig, ReviewFileConfig, Slider } from './models';
|
|
6
|
+
import { FileConfig, FileEvent } from './components/ca-upload-dropzone/models';
|
|
7
|
+
import { FilesCarouselConfig } from './components/ca-upload-files-carousel/models';
|
|
8
|
+
import { CaUploadFileService } from './services';
|
|
9
|
+
import { DropzoneConf } from './components/ca-upload-dropzone/config';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class CaUploadFilesComponent implements AfterViewInit {
|
|
12
|
+
private uploadFileService;
|
|
13
|
+
private http;
|
|
14
|
+
modalCarousel: CaUploadFilesCarouselComponent;
|
|
15
|
+
uploadedFiles: QueryList<CaUploadFileComponent>;
|
|
16
|
+
documentReviewInputEvent: EventEmitter<DocumentReviewInputEvent>;
|
|
17
|
+
onFileEvent: EventEmitter<FileEvent>;
|
|
18
|
+
closeDropzone: EventEmitter<{}>;
|
|
19
|
+
set files(data: FileConfig[]);
|
|
20
|
+
slider: Slider;
|
|
21
|
+
carouselConfig: FilesCarouselConfig;
|
|
22
|
+
hasCrop: boolean;
|
|
23
|
+
isRoundCrop: boolean;
|
|
24
|
+
onlyOneTagFile: boolean;
|
|
25
|
+
dropzoneConf: DropzoneConf[];
|
|
26
|
+
review: ReviewFileConfig;
|
|
27
|
+
configFile: FileOptionConfig;
|
|
28
|
+
size: string;
|
|
29
|
+
slideWidth: number;
|
|
30
|
+
fileAdded: EventEmitter<File>;
|
|
31
|
+
_files: FileConfig[];
|
|
32
|
+
_config: FileOptionConfig;
|
|
33
|
+
currentSlide: number;
|
|
34
|
+
isDropzoneShown: boolean;
|
|
35
|
+
private destroy$;
|
|
36
|
+
constructor(uploadFileService: CaUploadFileService, http: HttpClient);
|
|
37
|
+
ngAfterViewInit(): void;
|
|
38
|
+
private subscribeToUploadedFiles;
|
|
39
|
+
get carouselFileConfig(): FilesCarouselConfig;
|
|
40
|
+
get reviewFileConfig(): ReviewFileConfig;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @param data - returned data from file action (one or multiple)
|
|
44
|
+
*/
|
|
45
|
+
onFileAction(data: {
|
|
46
|
+
file: FileConfig;
|
|
47
|
+
action: string;
|
|
48
|
+
}): void;
|
|
49
|
+
onUploadFiles(data: {
|
|
50
|
+
files: FileConfig[];
|
|
51
|
+
action: string;
|
|
52
|
+
}): void;
|
|
53
|
+
documentReviewInputEventMethod(data: {
|
|
54
|
+
file: FileConfig;
|
|
55
|
+
message: string;
|
|
56
|
+
}): void;
|
|
57
|
+
downloadFile(fileUrl: string, fileName: string): void;
|
|
58
|
+
onLandscapeCheck(landscape: boolean): void;
|
|
59
|
+
dropZoneClose(): void;
|
|
60
|
+
fileHover(file: FileConfig): void;
|
|
61
|
+
hoverArrow(mod: boolean): void;
|
|
62
|
+
identity(index: number): number;
|
|
63
|
+
ngOnDestroy(): void;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaUploadFilesComponent, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaUploadFilesComponent, "app-ca-upload-files", never, { "files": { "alias": "files"; "required": false; }; "slider": { "alias": "slider"; "required": false; }; "carouselConfig": { "alias": "carouselConfig"; "required": false; }; "hasCrop": { "alias": "hasCrop"; "required": false; }; "isRoundCrop": { "alias": "isRoundCrop"; "required": false; }; "onlyOneTagFile": { "alias": "onlyOneTagFile"; "required": false; }; "dropzoneConf": { "alias": "dropzoneConf"; "required": false; }; "review": { "alias": "review"; "required": false; }; "configFile": { "alias": "configFile"; "required": false; }; "size": { "alias": "size"; "required": false; }; "slideWidth": { "alias": "slideWidth"; "required": false; }; }, { "documentReviewInputEvent": "documentReviewInputEvent"; "onFileEvent": "onFileEvent"; "closeDropzone": "closeDropzone"; "fileAdded": "fileAdded"; }, never, never, true, never>;
|
|
66
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { DropBackgroundEvent, FileConfig } from './models';
|
|
4
|
+
import { DropzoneConf } from './config/dropzone-config.type';
|
|
5
|
+
import { TemplateContainerDirective } from './directives/template.directive';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class CaUploadDropzoneComponent {
|
|
8
|
+
private cdr;
|
|
9
|
+
templateRef: QueryList<TemplateContainerDirective>;
|
|
10
|
+
dropZone: ElementRef<HTMLInputElement>;
|
|
11
|
+
set config(data: DropzoneConf[]);
|
|
12
|
+
isDropzoneShownInCrop: boolean;
|
|
13
|
+
onFileEvent: EventEmitter<{
|
|
14
|
+
files: FileConfig[];
|
|
15
|
+
action: string;
|
|
16
|
+
}>;
|
|
17
|
+
onDropBackground: EventEmitter<DropBackgroundEvent>;
|
|
18
|
+
closeDropzone: EventEmitter<{}>;
|
|
19
|
+
_dropZoneConfigArray: DropzoneConf[];
|
|
20
|
+
_dropZoneConfig: DropzoneConf;
|
|
21
|
+
files: FileConfig[];
|
|
22
|
+
isShownDropzoneFocus: boolean;
|
|
23
|
+
isFileDrop: boolean;
|
|
24
|
+
isSupportedType: boolean;
|
|
25
|
+
dropZoneText: string;
|
|
26
|
+
isDropzoneExpanded: boolean;
|
|
27
|
+
iconSrc: string;
|
|
28
|
+
dropZoneAvailableFiles: string[];
|
|
29
|
+
limit: number;
|
|
30
|
+
lottieOptions: import("ngx-lottie").AnimationOptions;
|
|
31
|
+
dropzoneSvgRoute: string;
|
|
32
|
+
constructor(cdr: ChangeDetectorRef);
|
|
33
|
+
onDragLeaveWindows(event: DragEvent): void;
|
|
34
|
+
onDrop(event: DragEvent): void;
|
|
35
|
+
onDragOver(event: DragEvent): void;
|
|
36
|
+
onDragLeave(event: DragEvent): void;
|
|
37
|
+
onWindowDragEnter(event: DragEvent): void;
|
|
38
|
+
onWindowDrop(event: DragEvent): void;
|
|
39
|
+
triggerFileInput(event: MouseEvent): void;
|
|
40
|
+
getIcons(): void;
|
|
41
|
+
supportedFiles(): void;
|
|
42
|
+
maxFilesAllowed(): number;
|
|
43
|
+
isMaxCountReached(): boolean;
|
|
44
|
+
handleFileChange(event: Event): void;
|
|
45
|
+
onFileUpload(files: FileList): Observable<void>;
|
|
46
|
+
private addFile;
|
|
47
|
+
private updateLottieOptions;
|
|
48
|
+
private updateDropZoneText;
|
|
49
|
+
getTemplate(template: string): TemplateRef<any>;
|
|
50
|
+
identify(index: number): number;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaUploadDropzoneComponent, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaUploadDropzoneComponent, "app-ca-upload-dropzone", never, { "config": { "alias": "config"; "required": false; }; "isDropzoneShownInCrop": { "alias": "isDropzoneShownInCrop"; "required": false; }; }, { "onFileEvent": "onFileEvent"; "onDropBackground": "onDropBackground"; "closeDropzone": "closeDropzone"; }, never, never, true, never>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DropZoneConfig, DropZoneOptionConfig } from '../models';
|
|
2
|
+
export interface DropzoneConf {
|
|
3
|
+
template: 'documentsTemplate' | 'mediaTemplate' | 'imageTemplate' | 'imageCropTemplate' | 'logoTemplate';
|
|
4
|
+
config: {
|
|
5
|
+
dropzone?: DropZoneConfig;
|
|
6
|
+
dropzoneOption?: DropZoneOptionConfig;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dropzone-config.type';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TemplateContainerDirective {
|
|
4
|
+
template: TemplateRef<any>;
|
|
5
|
+
id: string;
|
|
6
|
+
constructor(template: TemplateRef<any>);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateContainerDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TemplateContainerDirective, "[templateContainer]", never, { "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare enum PagesEnum {
|
|
2
|
+
LIST_LOAD = "list_load",
|
|
3
|
+
LIST_CUSTOMER = "list_customer",
|
|
4
|
+
LIST_DRIVER = "list_driver",
|
|
5
|
+
CDL = "cdl",
|
|
6
|
+
MEDICAL = "medical",
|
|
7
|
+
MVR = "mvr",
|
|
8
|
+
TEST = "test",
|
|
9
|
+
LIST_TRUCK = "list_truck",
|
|
10
|
+
REGISTRATION = "registration",
|
|
11
|
+
INSPECTION = "inspection",
|
|
12
|
+
TITLE = "title",
|
|
13
|
+
LEASE_RENT = "lease_rent",
|
|
14
|
+
LEASE_PURCHASE = "lease_purchase",
|
|
15
|
+
LIST_REPAIR_TRUCK_TRAILER = "list_repair_truck_trailer",
|
|
16
|
+
LIST_REPAIR_SHOP = "list_repair_shop",
|
|
17
|
+
LIST_FUEL = "list_fuel",
|
|
18
|
+
LIST_OWNER = "list_owner",
|
|
19
|
+
SAFETY_ROADSIDE_INSPECTION = "safety_roadside_inspection",
|
|
20
|
+
CITATION = "citation",
|
|
21
|
+
SAFETY_ACCIDENT = "safety_accident",
|
|
22
|
+
TOOLS_TODO = "tools_todo",
|
|
23
|
+
INSURANCE_COMPANY = "insurance_company"
|
|
24
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
export declare class FileUtils {
|
|
3
|
+
static getBase64(file: File): Observable<string>;
|
|
4
|
+
static getFileExtension(fileName: string): string;
|
|
5
|
+
static getSupportedExtensions(supportedExtensionsConfig: string[]): string[];
|
|
6
|
+
static isSupportedExtension(extension: string, supportedExtensionsConfig: string[]): boolean;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './file.helper';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface DropZoneOptionConfig {
|
|
2
|
+
customClassName?: string;
|
|
3
|
+
size?: string;
|
|
4
|
+
modalSize?: string;
|
|
5
|
+
filesLength?: number;
|
|
6
|
+
disableUnsupportedPreview?: boolean;
|
|
7
|
+
isRequired?: boolean;
|
|
8
|
+
showRequired?: boolean;
|
|
9
|
+
dropzoneClose?: boolean;
|
|
10
|
+
dropzoneFocus?: boolean;
|
|
11
|
+
dropzoneColumn?: boolean;
|
|
12
|
+
dropzoneIndex?: number;
|
|
13
|
+
showDropzone?: boolean;
|
|
14
|
+
}
|
package/lib/components/ca-upload-files/components/ca-upload-dropzone/models/file-config.model.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface FileConfig {
|
|
2
|
+
fileId?: number;
|
|
3
|
+
name?: any;
|
|
4
|
+
fileName?: string;
|
|
5
|
+
url: string | any;
|
|
6
|
+
extension?: string;
|
|
7
|
+
guid?: string | null;
|
|
8
|
+
size?: number;
|
|
9
|
+
fileSize?: number;
|
|
10
|
+
tags?: any;
|
|
11
|
+
realFile?: File;
|
|
12
|
+
tagId?: any;
|
|
13
|
+
incorrect?: boolean;
|
|
14
|
+
tagChanged?: boolean;
|
|
15
|
+
savedTag?: any;
|
|
16
|
+
tagGeneratedByUser?: boolean;
|
|
17
|
+
lastHovered?: boolean;
|
|
18
|
+
page?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type UploadFileTemplates = 'modals' | 'driver-card-pdf' | 'driver-detail-pdf' | 'todo-details' | 'company-details-pdf' | 'company-documents';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './constants';
|