ca-components 0.0.70 → 0.0.72
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/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-logo-change/ca-logo-change.component.mjs +12 -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 +15 -6
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.mjs +5 -3
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/ca-components.mjs +167 -18
- 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-logo-change/ca-logo-change.component.d.ts +4 -2
- package/lib/components/ca-upload-files/ca-upload-files.component.d.ts +6 -1
- package/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -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
|
+
}
|
|
@@ -10,6 +10,9 @@ export declare class CaLogoChangeComponent implements OnDestroy {
|
|
|
10
10
|
isRoundCropper: boolean;
|
|
11
11
|
imageChangedEvent: Event | null;
|
|
12
12
|
isDropzoneShown: boolean;
|
|
13
|
+
initialCropperPosition: CropperPosition;
|
|
14
|
+
containWithinAspectRatio: boolean;
|
|
15
|
+
aspectRatio: number[];
|
|
13
16
|
sendImageData: EventEmitter<{
|
|
14
17
|
files: FileConfig[];
|
|
15
18
|
action: string;
|
|
@@ -19,7 +22,6 @@ export declare class CaLogoChangeComponent implements OnDestroy {
|
|
|
19
22
|
imageScale: number;
|
|
20
23
|
hasSavedImage: boolean;
|
|
21
24
|
croppedImage: string | null;
|
|
22
|
-
private initialCropperPosition;
|
|
23
25
|
cropperPosition: CropperPosition;
|
|
24
26
|
ngxLogoOptions: Options;
|
|
25
27
|
ngxSliderPosition: number;
|
|
@@ -30,5 +32,5 @@ export declare class CaLogoChangeComponent implements OnDestroy {
|
|
|
30
32
|
onZoomChange(event: number | ChangeContext): void;
|
|
31
33
|
ngOnDestroy(): void;
|
|
32
34
|
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>;
|
|
35
|
+
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; }; "initialCropperPosition": { "alias": "initialCropperPosition"; "required": false; }; "containWithinAspectRatio": { "alias": "containWithinAspectRatio"; "required": false; }; "aspectRatio": { "alias": "aspectRatio"; "required": false; }; }, { "sendImageData": "sendImageData"; }, never, never, true, never>;
|
|
34
36
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AfterViewInit, EventEmitter, QueryList } from '@angular/core';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { CropperPosition } from 'ngx-image-cropper';
|
|
3
4
|
import { CaUploadFileComponent } from './components/ca-upload-file/ca-upload-file.component';
|
|
4
5
|
import { CaUploadFilesCarouselComponent } from './components/ca-upload-files-carousel/ca-upload-files-carousel.component';
|
|
5
6
|
import { DocumentReviewInputEvent, FileOptionConfig, ReviewFileConfig, Slider } from './models';
|
|
@@ -23,6 +24,10 @@ export declare class CaUploadFilesComponent implements AfterViewInit {
|
|
|
23
24
|
isRoundCrop: boolean;
|
|
24
25
|
onlyOneTagFile: boolean;
|
|
25
26
|
dropzoneConf: DropzoneConf[];
|
|
27
|
+
dropzoneCustomWidth: string;
|
|
28
|
+
initialCropperPosition: CropperPosition;
|
|
29
|
+
containWithinAspectRatio: boolean;
|
|
30
|
+
aspectRatio: number[];
|
|
26
31
|
review: ReviewFileConfig;
|
|
27
32
|
configFile: FileOptionConfig;
|
|
28
33
|
size: string;
|
|
@@ -62,5 +67,5 @@ export declare class CaUploadFilesComponent implements AfterViewInit {
|
|
|
62
67
|
identity(index: number): number;
|
|
63
68
|
ngOnDestroy(): void;
|
|
64
69
|
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>;
|
|
70
|
+
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; }; "dropzoneCustomWidth": { "alias": "dropzoneCustomWidth"; "required": false; }; "initialCropperPosition": { "alias": "initialCropperPosition"; "required": false; }; "containWithinAspectRatio": { "alias": "containWithinAspectRatio"; "required": false; }; "aspectRatio": { "alias": "aspectRatio"; "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
71
|
}
|
|
@@ -10,6 +10,7 @@ export declare class CaUploadDropzoneComponent {
|
|
|
10
10
|
dropZone: ElementRef<HTMLInputElement>;
|
|
11
11
|
set config(data: DropzoneConf[]);
|
|
12
12
|
isDropzoneShownInCrop: boolean;
|
|
13
|
+
customWidth: string;
|
|
13
14
|
onFileEvent: EventEmitter<{
|
|
14
15
|
files: FileConfig[];
|
|
15
16
|
action: string;
|
|
@@ -49,5 +50,5 @@ export declare class CaUploadDropzoneComponent {
|
|
|
49
50
|
getTemplate(template: string): TemplateRef<any>;
|
|
50
51
|
identify(index: number): number;
|
|
51
52
|
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
|
+
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>;
|
|
53
54
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -26,4 +26,5 @@ export * from './lib/components/ca-map/models/map.model';
|
|
|
26
26
|
export * from './lib/components/ca-main-table/ca-main-table.component';
|
|
27
27
|
export * from './lib/components/ca-main-table/models/main-table.model';
|
|
28
28
|
export * from './lib/components/ca-upload-files/ca-upload-files.component';
|
|
29
|
+
export * from './lib/components/ca-activity-log-list/ca-activity-log-list.component';
|
|
29
30
|
export * from './lib/models';
|