ca-components 0.0.72 → 0.0.75
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/card-component.animation.mjs +64 -0
- package/esm2022/lib/ca-components.module.mjs +5 -5
- package/esm2022/lib/components/ca-activity-log-list/ca-activity-log-list.component.mjs +82 -29
- package/esm2022/lib/components/ca-activity-log-list/enums/action-log-type-title-text.enum.mjs +7 -0
- package/esm2022/lib/components/ca-activity-log-list/enums/action-log-type.enum.mjs +9 -0
- package/esm2022/lib/components/ca-activity-log-list/enums/activity-entity-type.enum.mjs +6 -0
- package/esm2022/lib/components/ca-activity-log-list/enums/index.mjs +4 -0
- package/esm2022/lib/components/ca-activity-log-list/models/action-log.model.mjs +2 -0
- package/esm2022/lib/components/ca-activity-log-list/models/activity-log-item-description.model.mjs +2 -0
- package/esm2022/lib/components/ca-activity-log-list/models/activity-log-item.model.mjs +1 -1
- package/esm2022/lib/components/ca-activity-log-list/models/activity-log-list-data.model.mjs +2 -0
- package/esm2022/lib/components/ca-activity-log-list/models/company-user.model.mjs +2 -0
- package/esm2022/lib/components/ca-activity-log-list/models/entity-type-activity.model.mjs +2 -0
- package/esm2022/lib/components/ca-activity-log-list/models/index.mjs +7 -0
- package/esm2022/lib/components/ca-activity-log-list/utils/pipes/action-log-name-transform.pipe.mjs +2 -5
- package/esm2022/lib/components/ca-activity-log-list/utils/pipes/activity-log-date-transform.pipe.mjs +17 -0
- package/esm2022/lib/components/ca-activity-log-list/utils/pipes/index.mjs +3 -0
- package/esm2022/lib/components/ca-comment/ca-comment.component.mjs +122 -0
- package/esm2022/lib/components/ca-comment/directives/auto-resize.directive.mjs +43 -0
- package/esm2022/lib/components/ca-comment/directives/index.mjs +2 -0
- package/esm2022/lib/components/ca-comment/enums/index.mjs +2 -0
- package/esm2022/lib/components/ca-comment/enums/svg-icon.enum.mjs +8 -0
- package/esm2022/lib/components/ca-comment/modals/comment-modal/comment-modal.component.mjs +39 -0
- package/esm2022/lib/components/ca-comment/modals/comment-modal/svg-routes/index.mjs +2 -0
- package/esm2022/lib/components/ca-comment/modals/comment-modal/svg-routes/modal.routes.mjs +5 -0
- package/esm2022/lib/components/ca-comment/models/ca-comment-config.model.mjs +2 -0
- package/esm2022/lib/components/ca-comment/models/ca-delete-comment.model.mjs +3 -0
- package/esm2022/lib/components/ca-comment/models/ca-save-comment.model.mjs +2 -0
- package/esm2022/lib/components/ca-comment/models/ca-update-comment.model.mjs +2 -0
- package/esm2022/lib/components/ca-comment/models/index.mjs +5 -0
- package/esm2022/lib/components/ca-comment/pipes/icon.pipe.mjs +22 -0
- package/esm2022/lib/components/ca-comment/pipes/index.mjs +2 -0
- package/esm2022/lib/components/ca-comment/services/index.mjs +2 -0
- package/esm2022/lib/components/ca-comment/services/modal.service.mjs +31 -0
- package/esm2022/lib/components/ca-comment/utils/constants/comment.constant.mjs +10 -0
- package/esm2022/lib/components/ca-comment/utils/constants/index.mjs +2 -0
- package/esm2022/lib/components/ca-comment/utils/index.mjs +2 -0
- package/esm2022/lib/components/ca-period-content/ca-period-content.component.mjs +7 -34
- package/esm2022/lib/components/ca-period-content/components/ca-period-content-payment/ca-period-content-payment.component.mjs +9 -26
- package/esm2022/lib/components/ca-progress-expiration/ca-progress-expiration.component.mjs +169 -0
- package/esm2022/lib/components/ca-progress-expiration/enums/index.mjs +2 -0
- package/esm2022/lib/components/ca-progress-expiration/enums/time-units.enum.mjs +8 -0
- package/esm2022/lib/components/ca-progress-expiration/helpers/hex-to-rgba.helper.mjs +17 -0
- package/esm2022/lib/components/ca-progress-expiration/models/index.mjs +8 -0
- package/esm2022/lib/components/ca-progress-expiration/models/progress-expiration-color-type.model.mjs +2 -0
- package/esm2022/lib/components/ca-progress-expiration/models/progress-expiration-color.model.mjs +2 -0
- package/esm2022/lib/components/ca-progress-expiration/models/progress-expiration-template.model.mjs +2 -0
- package/esm2022/lib/components/ca-progress-expiration/models/progress-expiration-theme.model.mjs +2 -0
- package/esm2022/lib/components/ca-progress-expiration/models/progress-expiration-title.model.mjs +2 -0
- package/esm2022/lib/components/ca-progress-expiration/models/progress-expiration-type.model.mjs +2 -0
- package/esm2022/lib/components/ca-progress-expiration/models/progress-expiration.model.mjs +2 -0
- package/esm2022/lib/components/ca-progress-expiration/pipes/ca-progress-expiration-abs.pipe.mjs +18 -0
- package/esm2022/lib/components/ca-progress-expiration/pipes/ca-progress-expiration-width.pipe.mjs +57 -0
- package/esm2022/lib/components/ca-progress-expiration/pipes/index.mjs +3 -0
- package/esm2022/lib/components/ca-progress-expiration/utils/constants/index.mjs +2 -0
- package/esm2022/lib/components/ca-progress-expiration/utils/constants/progress-expiration.constant.mjs +41 -0
- package/esm2022/lib/components/ca-progress-expiration/utils/index.mjs +2 -0
- package/esm2022/lib/components/ca-todo/ca-todo.component.mjs +134 -0
- package/esm2022/lib/components/ca-todo/models/index.mjs +2 -0
- package/esm2022/lib/components/ca-todo/models/todo-config.model.mjs +2 -0
- package/esm2022/lib/components/ca-todo/utils/index.mjs +2 -0
- package/esm2022/lib/components/ca-todo/utils/svg-routes/index.mjs +2 -0
- package/esm2022/lib/components/ca-todo/utils/svg-routes/todo.routes.mjs +9 -0
- package/esm2022/lib/components/ca-upload-files/ca-upload-files.component.mjs +5 -3
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.mjs +2 -2
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component.mjs +3 -3
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/ca-components.mjs +2493 -1784
- package/fesm2022/ca-components.mjs.map +1 -1
- package/lib/animations/card-component.animation.d.ts +1 -0
- package/lib/ca-components.module.d.ts +7 -7
- package/lib/components/ca-activity-log-list/ca-activity-log-list.component.d.ts +9 -8
- package/lib/components/ca-activity-log-list/enums/action-log-type-title-text.enum.d.ts +5 -0
- package/lib/components/ca-activity-log-list/enums/action-log-type.enum.d.ts +7 -0
- package/lib/components/ca-activity-log-list/enums/activity-entity-type.enum.d.ts +4 -0
- package/lib/components/ca-activity-log-list/enums/index.d.ts +3 -0
- package/lib/components/ca-activity-log-list/models/action-log.model.d.ts +5 -0
- package/lib/components/ca-activity-log-list/models/activity-log-item-description.model.d.ts +5 -0
- package/lib/components/ca-activity-log-list/models/activity-log-item.model.d.ts +1 -21
- package/lib/components/ca-activity-log-list/models/activity-log-list-data.model.d.ts +5 -0
- package/lib/components/ca-activity-log-list/models/company-user.model.d.ts +7 -0
- package/lib/components/ca-activity-log-list/models/entity-type-activity.model.d.ts +4 -0
- package/lib/components/ca-activity-log-list/models/index.d.ts +6 -0
- package/lib/components/ca-activity-log-list/utils/pipes/activity-log-date-transform.pipe.d.ts +8 -0
- package/lib/components/ca-activity-log-list/utils/pipes/index.d.ts +2 -0
- package/lib/components/ca-comment/ca-comment.component.d.ts +21 -0
- package/lib/components/ca-comment/directives/auto-resize.directive.d.ts +11 -0
- package/lib/components/ca-comment/directives/index.d.ts +1 -0
- package/lib/components/ca-comment/enums/index.d.ts +1 -0
- package/lib/components/ca-comment/enums/svg-icon.enum.d.ts +6 -0
- package/lib/components/ca-comment/modals/comment-modal/comment-modal.component.d.ts +17 -0
- package/lib/components/ca-comment/modals/comment-modal/svg-routes/index.d.ts +1 -0
- package/lib/components/ca-comment/modals/comment-modal/svg-routes/modal.routes.d.ts +4 -0
- package/lib/components/ca-comment/models/ca-comment-config.model.d.ts +11 -0
- package/lib/components/ca-comment/models/ca-delete-comment.model.d.ts +3 -0
- package/lib/components/ca-comment/models/ca-save-comment.model.d.ts +3 -0
- package/lib/components/ca-comment/models/ca-update-comment.model.d.ts +4 -0
- package/lib/components/ca-comment/models/index.d.ts +4 -0
- package/lib/components/ca-comment/pipes/icon.pipe.d.ts +8 -0
- package/lib/components/ca-comment/pipes/index.d.ts +1 -0
- package/lib/components/ca-comment/services/index.d.ts +1 -0
- package/lib/components/ca-comment/services/modal.service.d.ts +12 -0
- package/lib/components/ca-comment/utils/constants/comment.constant.d.ts +4 -0
- package/lib/components/ca-comment/utils/constants/index.d.ts +1 -0
- package/lib/components/ca-comment/utils/index.d.ts +1 -0
- package/lib/components/ca-period-content/ca-period-content.component.d.ts +10 -13
- package/lib/components/ca-period-content/components/ca-period-content-payment/ca-period-content-payment.component.d.ts +5 -10
- package/lib/components/ca-progress-expiration/ca-progress-expiration.component.d.ts +23 -0
- package/lib/components/ca-progress-expiration/enums/index.d.ts +1 -0
- package/lib/components/ca-progress-expiration/enums/time-units.enum.d.ts +6 -0
- package/lib/components/ca-progress-expiration/helpers/hex-to-rgba.helper.d.ts +1 -0
- package/lib/components/ca-progress-expiration/models/index.d.ts +7 -0
- package/lib/components/ca-progress-expiration/models/progress-expiration-color-type.model.d.ts +1 -0
- package/lib/components/ca-progress-expiration/models/progress-expiration-color.model.d.ts +4 -0
- package/lib/components/ca-progress-expiration/models/progress-expiration-template.model.d.ts +1 -0
- package/lib/components/ca-progress-expiration/models/progress-expiration-theme.model.d.ts +1 -0
- package/lib/components/ca-progress-expiration/models/progress-expiration-title.model.d.ts +5 -0
- package/lib/components/ca-progress-expiration/models/progress-expiration-type.model.d.ts +1 -0
- package/lib/components/ca-progress-expiration/models/progress-expiration.model.d.ts +12 -0
- package/lib/components/ca-progress-expiration/pipes/ca-progress-expiration-abs.pipe.d.ts +7 -0
- package/lib/components/ca-progress-expiration/pipes/ca-progress-expiration-width.pipe.d.ts +7 -0
- package/lib/components/ca-progress-expiration/pipes/index.d.ts +2 -0
- package/lib/components/ca-progress-expiration/utils/constants/index.d.ts +1 -0
- package/lib/components/ca-progress-expiration/utils/constants/progress-expiration.constant.d.ts +11 -0
- package/lib/components/ca-progress-expiration/utils/index.d.ts +1 -0
- package/lib/components/ca-todo/ca-todo.component.d.ts +54 -0
- package/lib/components/ca-todo/models/index.d.ts +1 -0
- package/lib/components/ca-todo/models/todo-config.model.d.ts +15 -0
- package/lib/components/ca-todo/utils/index.d.ts +1 -0
- package/lib/components/ca-todo/utils/svg-routes/index.d.ts +1 -0
- package/lib/components/ca-todo/utils/svg-routes/todo.routes.d.ts +8 -0
- package/lib/components/ca-upload-files/ca-upload-files.component.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/src/assets/ca-components/svg/todo/attachment.svg +3 -0
- package/src/assets/ca-components/svg/todo/comments.svg +4 -0
- package/src/assets/ca-components/svg/todo/dropdown.svg +3 -0
- package/src/assets/ca-components/svg/todo/plus.svg +3 -0
- package/src/assets/ca-components/svg/todo/upload.svg +3 -0
- package/src/assets/ca-components/svg/todo/web.svg +3 -0
- package/esm2022/lib/components/ca-activity-log-list/components/ca-activity-log-item/ca-activity-log-item.component.mjs +0 -42
- package/esm2022/lib/components/ca-activity-log-list/enums/activity-log-list-type.enums.mjs +0 -18
- package/esm2022/lib/components/ca-activity-log-list/utils/svg-routes/activity-log-list.routes.mjs +0 -5
- package/lib/components/ca-activity-log-list/components/ca-activity-log-item/ca-activity-log-item.component.d.ts +0 -13
- package/lib/components/ca-activity-log-list/enums/activity-log-list-type.enums.d.ts +0 -14
- package/lib/components/ca-activity-log-list/utils/svg-routes/activity-log-list.routes.d.ts +0 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cardComponentAnimation: (type: string, mt?: string, mb?: string) => import("@angular/animations").AnimationTriggerMetadata;
|
|
@@ -18,15 +18,15 @@ import * as i16 from "./components/ca-pickup-delivery-block/ca-pickup-delivery-b
|
|
|
18
18
|
import * as i17 from "./components/ca-progress-bar/ca-progress-bar.component";
|
|
19
19
|
import * as i18 from "./components/ca-search-multiple-states/ca-search-multiple-states.component";
|
|
20
20
|
import * as i19 from "./components/ca-spinner/ca-spinner.component";
|
|
21
|
-
import * as i20 from "./components/ca-
|
|
22
|
-
import * as i21 from "./components/ca-
|
|
23
|
-
import * as i22 from "./components/ca-
|
|
24
|
-
import * as i23 from "./components/ca-input-
|
|
25
|
-
import * as i24 from "./components/ca-
|
|
26
|
-
import * as i25 from "./components/ca-
|
|
21
|
+
import * as i20 from "./components/ca-todo/ca-todo.component";
|
|
22
|
+
import * as i21 from "./components/ca-truck-trailer-progress-bar/ca-truck-trailer-progress-bar.component";
|
|
23
|
+
import * as i22 from "./components/ca-period-content/ca-period-content.component";
|
|
24
|
+
import * as i23 from "./components/ca-input-note/ca-input-note.component";
|
|
25
|
+
import * as i24 from "./components/ca-input-address-dropdown/ca-input-address-dropdown.component";
|
|
26
|
+
import * as i25 from "./components/ca-main-table/ca-main-table.component";
|
|
27
27
|
import * as i26 from "./components/ca-activity-log-list/ca-activity-log-list.component";
|
|
28
28
|
export declare class CaComponentsLibModule {
|
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaComponentsLibModule, never>;
|
|
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.
|
|
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.CaTodoComponent, typeof i21.CaTruckTrailerProgresBarComponent, typeof i22.CaPeriodContentComponent, typeof i23.CaInputNoteComponent, typeof i24.CaInputAddressDropdownComponent, typeof i25.CaMainTableComponent, 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 i21.CaTruckTrailerProgresBarComponent, typeof i22.CaPeriodContentComponent, typeof i23.CaInputNoteComponent, typeof i25.CaMainTableComponent, typeof i26.CaActivityLogListComponent]>;
|
|
31
31
|
static ɵinj: i0.ɵɵInjectorDeclaration<CaComponentsLibModule>;
|
|
32
32
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ActivityEntityType } from './enums
|
|
3
|
-
import { ActivityLogItem } from './models
|
|
2
|
+
import { ActivityEntityType } from './enums';
|
|
3
|
+
import { ActivityLogItem, ActivityLogListsData } from './models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class CaActivityLogListComponent implements OnInit {
|
|
6
6
|
activityLogData: {
|
|
@@ -9,13 +9,14 @@ export declare class CaActivityLogListComponent implements OnInit {
|
|
|
9
9
|
};
|
|
10
10
|
addedList: ActivityLogItem[];
|
|
11
11
|
editedList: ActivityLogItem[];
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}[];
|
|
12
|
+
deactivatedList: ActivityLogItem[];
|
|
13
|
+
deletedList: ActivityLogItem[];
|
|
14
|
+
activityLogLists: ActivityLogListsData[];
|
|
16
15
|
ngOnInit(): void;
|
|
17
|
-
filterActivityLogList
|
|
18
|
-
|
|
16
|
+
private filterActivityLogList;
|
|
17
|
+
private addToList;
|
|
18
|
+
private createActivityLogData;
|
|
19
|
+
trackByIdentity(index: number): number;
|
|
19
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaActivityLogListComponent, never>;
|
|
20
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<CaActivityLogListComponent, "lib-ca-activity-log-list", never, { "activityLogData": { "alias": "activityLogData"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
22
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ActionLog, CompanyUser, EntityTypeActivity } from "./";
|
|
2
2
|
export interface ActivityLogItem {
|
|
3
3
|
id: number;
|
|
4
4
|
companyUser: CompanyUser;
|
|
@@ -9,23 +9,3 @@ export interface ActivityLogItem {
|
|
|
9
9
|
updatedAt?: Date | null;
|
|
10
10
|
isLastInList?: boolean | false;
|
|
11
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,6 @@
|
|
|
1
|
+
export * from './action-log.model';
|
|
2
|
+
export * from './activity-log-item-description.model';
|
|
3
|
+
export * from './activity-log-item.model';
|
|
4
|
+
export * from './activity-log-list-data.model';
|
|
5
|
+
export * from './company-user.model';
|
|
6
|
+
export * from './entity-type-activity.model';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ActivityLogItem } from '../../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ActivityLogDateTransformPipe implements PipeTransform {
|
|
5
|
+
transform(item: ActivityLogItem): Date | null | undefined;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActivityLogDateTransformPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ActivityLogDateTransformPipe, "activityLogDateTransform", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { CommentConfig, DeleteCommentData, SaveCommentData, UpdateCommentData } from './models';
|
|
3
|
+
import { CommentAction } from './enums';
|
|
4
|
+
import { AppModalService } from './services';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CaCommentComponent {
|
|
7
|
+
private modalService;
|
|
8
|
+
constructor(modalService: AppModalService);
|
|
9
|
+
commentTextarea: ElementRef<HTMLTextAreaElement>;
|
|
10
|
+
set config(data: CommentConfig);
|
|
11
|
+
onSave: EventEmitter<SaveCommentData>;
|
|
12
|
+
onUpdate: EventEmitter<UpdateCommentData>;
|
|
13
|
+
onDelete: EventEmitter<DeleteCommentData>;
|
|
14
|
+
action: typeof CommentAction;
|
|
15
|
+
commentConfig: CommentConfig;
|
|
16
|
+
isEditMode: boolean;
|
|
17
|
+
ngAfterViewInit(): void;
|
|
18
|
+
onAction(action: CommentAction): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaCommentComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaCommentComponent, "app-ca-comment", never, { "config": { "alias": "config"; "required": false; }; }, { "onSave": "onSave"; "onUpdate": "onUpdate"; "onDelete": "onDelete"; }, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AutoResizeDirective implements AfterViewInit {
|
|
4
|
+
private el;
|
|
5
|
+
constructor(el: ElementRef);
|
|
6
|
+
ngAfterViewInit(): void;
|
|
7
|
+
onInput(): void;
|
|
8
|
+
private autoresize;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutoResizeDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AutoResizeDirective, "[appAutoResize]", never, {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './auto-resize.directive';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './svg-icon.enum';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
import { CommentConfig } from '../../models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CommentModalComponent {
|
|
6
|
+
private activeModal;
|
|
7
|
+
set config(data: CommentConfig);
|
|
8
|
+
itemEvent: EventEmitter<void>;
|
|
9
|
+
modalSvgExclamation: string;
|
|
10
|
+
trash: string;
|
|
11
|
+
modalConfig: CommentConfig;
|
|
12
|
+
constructor(activeModal: NgbActiveModal);
|
|
13
|
+
onSubmit(): void;
|
|
14
|
+
onCancel(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommentModalComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommentModalComponent, "ca-comment-modal", never, { "config": { "alias": "config"; "required": false; }; }, { "itemEvent": "itemEvent"; }, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './modal.routes';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { CommentAction } from '../enums';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class IconUrlPipe implements PipeTransform {
|
|
5
|
+
transform(action: CommentAction): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconUrlPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IconUrlPipe, "iconPipe", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './icon.pipe';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './modal.service';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AppModalService {
|
|
5
|
+
private modalService;
|
|
6
|
+
constructor(modalService: NgbModal);
|
|
7
|
+
modalRef: NgbModalRef | null;
|
|
8
|
+
open<T>(component: Type<T>): NgbModalRef;
|
|
9
|
+
close(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppModalService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppModalService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './comment.constant';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './constants';
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { PeriodContentSvgRoutes } from './utils/svg-routes';
|
|
3
2
|
import { PayrollTypeEnum } from './enums';
|
|
4
|
-
import { DriverInfo, ExtraPayments
|
|
3
|
+
import { DriverInfo, ExtraPayments } from './models';
|
|
5
4
|
import { PayrollReport } from './models/payroll-report.type';
|
|
5
|
+
import { PayrollReportTableResponse } from './models/payroll-report-tables.type';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class CaPeriodContentComponent {
|
|
8
8
|
isOpen: boolean;
|
|
9
9
|
type: PayrollTypeEnum;
|
|
10
10
|
componentData: PayrollReport;
|
|
11
|
-
reorderedDataEmiter: EventEmitter<
|
|
11
|
+
reorderedDataEmiter: EventEmitter<{
|
|
12
|
+
_included: PayrollReportTableResponse[];
|
|
13
|
+
_title: string;
|
|
14
|
+
}>;
|
|
12
15
|
salary: number;
|
|
13
16
|
totalEarnings: number;
|
|
14
17
|
debt: number;
|
|
@@ -18,17 +21,8 @@ export declare class CaPeriodContentComponent {
|
|
|
18
21
|
paymentStatus: string;
|
|
19
22
|
driverInfo: DriverInfo;
|
|
20
23
|
extraPayments: ExtraPayments;
|
|
21
|
-
extraStops: {
|
|
22
|
-
extraStopCount: number;
|
|
23
|
-
extraStopPay: number;
|
|
24
|
-
mileagePay: number;
|
|
25
|
-
};
|
|
26
|
-
periodContentSvgRoutes: PeriodContentSvgRoutes;
|
|
27
24
|
ngOnInit(): void;
|
|
28
25
|
constructor();
|
|
29
|
-
private calculateSalaryAndTotalEarnings;
|
|
30
|
-
private setExtraStops;
|
|
31
|
-
private getDriverAndExtraPaymentsInfo;
|
|
32
26
|
getAllPaymentSums(event: {
|
|
33
27
|
sum: number;
|
|
34
28
|
type: string;
|
|
@@ -36,7 +30,10 @@ export declare class CaPeriodContentComponent {
|
|
|
36
30
|
private setDebtTitle;
|
|
37
31
|
processPayment(): void;
|
|
38
32
|
addPayment(): void;
|
|
39
|
-
getReorderedData(
|
|
33
|
+
getReorderedData(data: {
|
|
34
|
+
_included: PayrollReportTableResponse[];
|
|
35
|
+
_title: string;
|
|
36
|
+
}): void;
|
|
40
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaPeriodContentComponent, never>;
|
|
41
38
|
static ɵcmp: i0.ɵɵComponentDeclaration<CaPeriodContentComponent, "app-ca-period-content", never, { "isOpen": { "alias": "isOpen"; "required": false; }; "type": { "alias": "type"; "required": false; }; "componentData": { "alias": "componentData"; "required": false; }; }, { "reorderedDataEmiter": "reorderedDataEmiter"; }, never, never, true, never>;
|
|
42
39
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { PeriodContentSvgRoutes } from '../../utils/svg-routes';
|
|
3
3
|
import { CdkDragDrop, CdkDragStart } from '@angular/cdk/drag-drop';
|
|
4
|
-
import { PaymentComponentData, PaymentSum } from '../../models';
|
|
5
4
|
import { IItemList } from '../../../../models/dropdown.model';
|
|
6
5
|
import { PayrollReportTableResponse } from '../../models/payroll-report-tables.type';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
@@ -13,13 +12,10 @@ export declare class CaPeriodContentPaymentComponent implements OnInit {
|
|
|
13
12
|
set excluded(excluded: PayrollReportTableResponse[] | undefined);
|
|
14
13
|
isOpen: boolean;
|
|
15
14
|
title: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
sumPaymentTypeEmitter: EventEmitter<PaymentSum>;
|
|
21
|
-
reorderedDataEmiter: EventEmitter<PaymentComponentData>;
|
|
22
|
-
sum: number;
|
|
15
|
+
reorderedDataEmiter: EventEmitter<{
|
|
16
|
+
_included: PayrollReportTableResponse[];
|
|
17
|
+
_title: string;
|
|
18
|
+
}>;
|
|
23
19
|
hoverStates: boolean[];
|
|
24
20
|
clickedStates: boolean[];
|
|
25
21
|
private dropdownStates;
|
|
@@ -38,10 +34,9 @@ export declare class CaPeriodContentPaymentComponent implements OnInit {
|
|
|
38
34
|
onMouseEnter(index: number): void;
|
|
39
35
|
onMouseLeave(index: number): void;
|
|
40
36
|
getColor(title: string): string;
|
|
41
|
-
getTitleColor(): string;
|
|
42
37
|
onDrop(event: CdkDragDrop<PayrollReportTableResponse[]>): void;
|
|
43
38
|
getSvgPath(propertyName: keyof typeof PeriodContentSvgRoutes): string;
|
|
44
39
|
identity(index: number): number;
|
|
45
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaPeriodContentPaymentComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaPeriodContentPaymentComponent, "app-ca-period-content-payment", never, { "included": { "alias": "included"; "required": false; }; "excluded": { "alias": "excluded"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "title": { "alias": "title"; "required": false; };
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaPeriodContentPaymentComponent, "app-ca-period-content-payment", never, { "included": { "alias": "included"; "required": false; }; "excluded": { "alias": "excluded"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, { "reorderedDataEmiter": "reorderedDataEmiter"; }, never, never, true, never>;
|
|
47
42
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ProgressExpirationAbsPipe, ProgressExpirationWidthPipe } from './pipes';
|
|
2
|
+
import { ProgressExpiration, ProgressExpirationColor, ProgressExpirationTitle } from './models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CaProgressExpirationComponent {
|
|
5
|
+
private progressExpirationWidthPipe;
|
|
6
|
+
private progressExpirationAbsPipe;
|
|
7
|
+
set config(data: ProgressExpiration);
|
|
8
|
+
_config: ProgressExpiration;
|
|
9
|
+
title: ProgressExpirationTitle;
|
|
10
|
+
totalDays: number;
|
|
11
|
+
leftDays: number;
|
|
12
|
+
progressWidth: string;
|
|
13
|
+
progressBackgroundColor: ProgressExpirationColor;
|
|
14
|
+
constructor(progressExpirationWidthPipe: ProgressExpirationWidthPipe, progressExpirationAbsPipe: ProgressExpirationAbsPipe);
|
|
15
|
+
private calculateTotalDays;
|
|
16
|
+
private calculateLeftDays;
|
|
17
|
+
private calculateHours;
|
|
18
|
+
private generateTitle;
|
|
19
|
+
private setTitle;
|
|
20
|
+
private setBackgroundColor;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaProgressExpirationComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaProgressExpirationComponent, "lib-ca-progress-expiration", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './time-units.enum';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HexToRgbaHelper: (hex: string, opacity: number) => string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './progress-expiration-color-type.model';
|
|
2
|
+
export * from './progress-expiration-color.model';
|
|
3
|
+
export * from './progress-expiration-template.model';
|
|
4
|
+
export * from './progress-expiration-theme.model';
|
|
5
|
+
export * from './progress-expiration-title.model';
|
|
6
|
+
export * from './progress-expiration-type.model';
|
|
7
|
+
export * from './progress-expiration.model';
|
package/lib/components/ca-progress-expiration/models/progress-expiration-color-type.model.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ProgressExpirationColorType = 'LONG_DURATION' | 'MEDIUM_DURATION' | 'SHORT_DURATION' | 'IN_TIME_DURATION' | 'EXPIRED_DURATION';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ProgressExpirationTemplate = 'todo-list' | 'details' | 'settings-insurance-policy' | 'settings-parking';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ProgressExpirationTheme = 'light' | 'dark';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ProgressExpirationType = 'small' | 'big';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ProgressExpirationTemplate } from './progress-expiration-template.model';
|
|
2
|
+
import { ProgressExpirationTheme } from './progress-expiration-theme.model';
|
|
3
|
+
import { ProgressExpirationType } from './progress-expiration-type.model';
|
|
4
|
+
export type ProgressExpiration = {
|
|
5
|
+
template: ProgressExpirationTemplate;
|
|
6
|
+
expireDate: Date;
|
|
7
|
+
completedDate?: Date;
|
|
8
|
+
startDate?: Date;
|
|
9
|
+
customTitle?: string;
|
|
10
|
+
type?: ProgressExpirationType;
|
|
11
|
+
theme?: ProgressExpirationTheme;
|
|
12
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ProgressExpirationAbsPipe implements PipeTransform {
|
|
4
|
+
transform(value: number): number;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressExpirationAbsPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ProgressExpirationAbsPipe, "progressExpirationAbs", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ProgressExpirationWidthPipe implements PipeTransform {
|
|
4
|
+
transform(expireDate: Date, startDate?: Date, completedDate?: Date): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressExpirationWidthPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ProgressExpirationWidthPipe, "progressExpirationWidth", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './progress-expiration.constant';
|
package/lib/components/ca-progress-expiration/utils/constants/progress-expiration.constant.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ProgressExpirationColor } from '../../models/progress-expiration-color.model';
|
|
2
|
+
import { ProgressExpirationColorType } from '../../models/progress-expiration-color-type.model';
|
|
3
|
+
import { ProgressExpirationTemplate } from '../../models/progress-expiration-template.model';
|
|
4
|
+
import { ProgressExpirationTheme } from '../../models/progress-expiration-theme.model';
|
|
5
|
+
import { ProgressExpirationType } from '../../models/progress-expiration-type.model';
|
|
6
|
+
export declare class ProgressExpirationConstants {
|
|
7
|
+
static readonly allowedTemplates: ProgressExpirationTemplate[];
|
|
8
|
+
static readonly allowedTheme: ProgressExpirationTheme[];
|
|
9
|
+
static readonly allowedType: ProgressExpirationType[];
|
|
10
|
+
static readonly ProgressExpirationColors: Record<ProgressExpirationColorType, ProgressExpirationColor>;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './constants/index';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ToDoConfig } from './models';
|
|
3
|
+
import { IItemList } from '../../models/dropdown.model';
|
|
4
|
+
import { ProgressExpiration } from '../ca-progress-expiration/models';
|
|
5
|
+
import { CommentConfig } from '../ca-comment/models';
|
|
6
|
+
import { FileOptionConfig, ReviewFileConfig, Slider } from '../ca-upload-files/models';
|
|
7
|
+
import { FilesCarouselConfig } from '../ca-upload-files/components/ca-upload-files-carousel/models';
|
|
8
|
+
import { FileConfig, FileEvent } from '../ca-upload-files/components/ca-upload-dropzone/models';
|
|
9
|
+
import { TodoSvgRoute } from './utils';
|
|
10
|
+
import { CaUploadFilesCarouselComponent } from '../ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component';
|
|
11
|
+
import { DropzoneConf } from '../ca-upload-files/components/ca-upload-dropzone/config';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class CaTodoComponent {
|
|
14
|
+
modalCarousel: CaUploadFilesCarouselComponent;
|
|
15
|
+
config: ToDoConfig;
|
|
16
|
+
commentConfig: CommentConfig[];
|
|
17
|
+
newCommentConfig: CommentConfig[];
|
|
18
|
+
itemList: IItemList[];
|
|
19
|
+
configProgress: ProgressExpiration;
|
|
20
|
+
isVisibleCropAndDrop: boolean;
|
|
21
|
+
slider: Slider;
|
|
22
|
+
carouselConfig: FilesCarouselConfig;
|
|
23
|
+
review: ReviewFileConfig;
|
|
24
|
+
configFile: FileOptionConfig;
|
|
25
|
+
files: FileConfig[];
|
|
26
|
+
configDropzone: DropzoneConf;
|
|
27
|
+
onFileEvent: EventEmitter<FileEvent>;
|
|
28
|
+
svgTodo: typeof TodoSvgRoute;
|
|
29
|
+
isDropdownShown: boolean;
|
|
30
|
+
link: string;
|
|
31
|
+
isLinkVisible: boolean;
|
|
32
|
+
commentCounter: number;
|
|
33
|
+
documentCounter: number;
|
|
34
|
+
isCommentVisible: boolean;
|
|
35
|
+
isCommentsVisible: boolean;
|
|
36
|
+
isDocumentVisible: boolean;
|
|
37
|
+
isDropdownVisible: boolean;
|
|
38
|
+
isNewComment: boolean;
|
|
39
|
+
_files: FileConfig[];
|
|
40
|
+
_config: FileOptionConfig;
|
|
41
|
+
ngOnInit(): void;
|
|
42
|
+
onDropdownItemClick(item: IItemList): void;
|
|
43
|
+
addLink(): void;
|
|
44
|
+
toggleComments(): void;
|
|
45
|
+
toggleDocument(): void;
|
|
46
|
+
toggleDropdown(): void;
|
|
47
|
+
toggleNewComment(): void;
|
|
48
|
+
getCommentCounter(): void;
|
|
49
|
+
getDocumentCounter(): void;
|
|
50
|
+
saveAllFiles(): void;
|
|
51
|
+
identity(index: number): number;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaTodoComponent, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaTodoComponent, "app-ca-todo", never, { "config": { "alias": "config"; "required": false; }; "commentConfig": { "alias": "commentConfig"; "required": false; }; "newCommentConfig": { "alias": "newCommentConfig"; "required": false; }; "itemList": { "alias": "itemList"; "required": false; }; "configProgress": { "alias": "configProgress"; "required": false; }; "isVisibleCropAndDrop": { "alias": "isVisibleCropAndDrop"; "required": false; }; "slider": { "alias": "slider"; "required": false; }; "carouselConfig": { "alias": "carouselConfig"; "required": false; }; "review": { "alias": "review"; "required": false; }; "configFile": { "alias": "configFile"; "required": false; }; "files": { "alias": "files"; "required": false; }; "configDropzone": { "alias": "configDropzone"; "required": false; }; }, { "onFileEvent": "onFileEvent"; }, never, never, true, never>;
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './todo-config.model';
|