ca-components 2.1.1431 → 2.1.1532
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/fesm2022/ca-components.mjs +62 -21
- package/fesm2022/ca-components.mjs.map +1 -1
- package/index.d.ts +516 -86
- package/lib/components/ca-chart/ca-chart.component.ts +3 -3
- package/lib/components/ca-chart/models/index.ts +1 -1
- package/lib/components/ca-checkbox/ca-checkbox.component.scss +26 -3
- package/lib/components/ca-checkbox-selected-count/ca-checkbox-selected-count.component.scss +1 -1
- package/lib/components/ca-period-content/models/index.ts +2 -0
- package/lib/components/ca-pickup-delivery-block/ca-pickup-delivery-block.component.html +1 -0
- package/lib/components/ca-pickup-delivery-block/ca-pickup-delivery-block.component.ts +1 -0
- package/lib/components/ca-pickup-delivery-block/components/ca-load/ca-load.component.html +6 -0
- package/lib/components/ca-pickup-delivery-block/components/ca-load/ca-load.component.ts +1 -0
- package/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-list/ca-load-list.component.ts +3 -1
- package/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-single/ca-load-single.component.ts +3 -1
- package/lib/models/dashboard/dropdown-list-item.model.ts +1 -1
- package/lib/models/index.ts +2 -0
- package/lib/utils/helpers/dropdown-menu-content-conditional-items.helper.ts +10 -2
- package/lib/utils/helpers/dropdown-menu-content.helper.ts +6 -3
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
EventEmitter,
|
|
11
11
|
} from '@angular/core';
|
|
12
12
|
import { CommonModule } from '@angular/common';
|
|
13
|
-
import { AnyObject } from 'chart.js/dist/types/basic';
|
|
13
|
+
import { AnyObject } from 'node_modules/chart.js/dist/types/basic';
|
|
14
14
|
import { AngularSvgIconModule } from 'angular-svg-icon';
|
|
15
15
|
import { Subject, takeUntil } from 'rxjs';
|
|
16
16
|
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
IChartCenterLabel,
|
|
55
55
|
IChartLegendConfig,
|
|
56
56
|
} from './models';
|
|
57
|
-
import { ActiveElement } from 'chart.js/dist/plugins/plugin.tooltip';
|
|
57
|
+
import { ActiveElement } from 'node_modules/chart.js/dist/plugins/plugin.tooltip';
|
|
58
58
|
|
|
59
59
|
//Services
|
|
60
60
|
import { ChartManagerService } from '../ca-chart-manager/services';
|
|
@@ -64,7 +64,7 @@ import { ChartConstants } from './utils/constants';
|
|
|
64
64
|
import {
|
|
65
65
|
_DeepPartialArray,
|
|
66
66
|
_DeepPartialObject,
|
|
67
|
-
} from 'chart.js/dist/types/utils';
|
|
67
|
+
} from 'node_modules/chart.js/dist/types/utils';
|
|
68
68
|
|
|
69
69
|
// Pipes
|
|
70
70
|
import { ThousandSeparatorPipe, UnitPositionPipe } from '../../pipes';
|
|
@@ -7,4 +7,4 @@ export * from './chart-dataset-hover.model';
|
|
|
7
7
|
export * from './chart-center-label.model';
|
|
8
8
|
export * from './chart-legend-property.model';
|
|
9
9
|
export * from './chart-legend-config.model';
|
|
10
|
-
export * from './chart-boundaries.model';
|
|
10
|
+
export * from './chart-boundaries.model';
|
|
@@ -24,13 +24,26 @@
|
|
|
24
24
|
|
|
25
25
|
/* Checkbox input container */
|
|
26
26
|
.ca-checkbox-input-container {
|
|
27
|
-
transition: transform 0.
|
|
27
|
+
transition: transform 100ms cubic-bezier(0.46, 0.03, 0.51, 0.95);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&:not(.disabled):not(.disabled-blue):not(.disabled-regular-check) {
|
|
31
31
|
.ca-checkbox-input-container:hover {
|
|
32
|
-
transform: scale(1.
|
|
32
|
+
transform: scale(1.2857);
|
|
33
33
|
transform-origin: center;
|
|
34
|
+
|
|
35
|
+
.ca-mark-checked-icon {
|
|
36
|
+
transform: scale(calc(1 / 1.2857));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ca-checkbox-input-container:active {
|
|
41
|
+
transform: scale(1.2857);
|
|
42
|
+
transform-origin: center;
|
|
43
|
+
|
|
44
|
+
.ca-mark-checked-icon {
|
|
45
|
+
transform: scale(calc(1 / 1.2857));
|
|
46
|
+
}
|
|
34
47
|
}
|
|
35
48
|
}
|
|
36
49
|
|
|
@@ -42,7 +55,13 @@
|
|
|
42
55
|
border-radius: 2px;
|
|
43
56
|
cursor: pointer;
|
|
44
57
|
|
|
45
|
-
transition:
|
|
58
|
+
transition:
|
|
59
|
+
background-color 100ms cubic-bezier(0.46, 0.03, 0.51, 0.95),
|
|
60
|
+
transform 100ms cubic-bezier(0.46, 0.03, 0.51, 0.95);
|
|
61
|
+
|
|
62
|
+
&-checked-icon {
|
|
63
|
+
transition: transform 100ms cubic-bezier(0.46, 0.03, 0.51, 0.95);
|
|
64
|
+
}
|
|
46
65
|
|
|
47
66
|
&.invalid {
|
|
48
67
|
background-color: $ta-red-3 !important;
|
|
@@ -69,6 +88,10 @@
|
|
|
69
88
|
background-color: $ta-blue-9 !important;
|
|
70
89
|
}
|
|
71
90
|
|
|
91
|
+
&:active .ca-checkbox:checked ~ .ca-mark,
|
|
92
|
+
.ca-checkbox-input-container:active .ca-checkbox:checked ~ .ca-mark {
|
|
93
|
+
background-color: $grey-4 !important;
|
|
94
|
+
}
|
|
72
95
|
|
|
73
96
|
&:hover .ca-checkbox ~ .ca-checkbox-label {
|
|
74
97
|
color: $ta-black;
|
|
@@ -30,3 +30,5 @@ export * from './payroll-payment-response';
|
|
|
30
30
|
export * from './payroll-payments-minimal-response';
|
|
31
31
|
export * from './payroll-period-input.type';
|
|
32
32
|
export * from './per-mile-model';
|
|
33
|
+
export * from './payroll-report.type';
|
|
34
|
+
export { PayrollReportTableResponse } from './payroll-report-tables.type';
|
|
@@ -60,6 +60,7 @@ export class PickupDeliveryBlockComponent implements OnInit {
|
|
|
60
60
|
@Input() dispatchResponse!: DispatchResponse | null;
|
|
61
61
|
@Input() isHoveringRow!: boolean;
|
|
62
62
|
@Input() isDisabled: boolean = false;
|
|
63
|
+
@Input() isAllDispatchBoardsSelected: boolean = true;
|
|
63
64
|
|
|
64
65
|
@Output() dropdownMenuAction: EventEmitter<IDropdownMenuOptionEmit> =
|
|
65
66
|
new EventEmitter<IDropdownMenuOptionEmit>();
|
|
@@ -89,6 +89,9 @@
|
|
|
89
89
|
<app-ca-load-single
|
|
90
90
|
[status]="focusedTab"
|
|
91
91
|
[activeLoad]="activeLoad"
|
|
92
|
+
[isAllDispatchBoardsSelected]="
|
|
93
|
+
isAllDispatchBoardsSelected
|
|
94
|
+
"
|
|
92
95
|
(dropdownMenuAction)="
|
|
93
96
|
onDropdownMenuAction($event)
|
|
94
97
|
"
|
|
@@ -108,6 +111,9 @@
|
|
|
108
111
|
[loads]="pendingLoads"
|
|
109
112
|
[isFocusingLoad]="returnButtonVisible"
|
|
110
113
|
[focusedTab]="StatusTypeEnum.PENDING"
|
|
114
|
+
[isAllDispatchBoardsSelected]="
|
|
115
|
+
isAllDispatchBoardsSelected
|
|
116
|
+
"
|
|
111
117
|
(dropdownMenuAction)="
|
|
112
118
|
onDropdownMenuAction($event)
|
|
113
119
|
"
|
|
@@ -53,6 +53,7 @@ export class LoadComponent {
|
|
|
53
53
|
@Input() focusedTab!: StatusTypeEnum;
|
|
54
54
|
@Input() loads!: DispatchGroupedLoadsResponse | null;
|
|
55
55
|
@Input() columnWidth!: number | null;
|
|
56
|
+
@Input() isAllDispatchBoardsSelected: boolean = true;
|
|
56
57
|
|
|
57
58
|
@Output() dropdownMenuAction: EventEmitter<IDropdownMenuOptionEmit> =
|
|
58
59
|
new EventEmitter<IDropdownMenuOptionEmit>();
|
|
@@ -57,6 +57,7 @@ export class LoadListComponent {
|
|
|
57
57
|
@Input() loads!: Array<LoadShortResponse>;
|
|
58
58
|
@Input() focusedTab!: StatusTypeEnum;
|
|
59
59
|
@Input() isFocusingLoad: boolean = false;
|
|
60
|
+
@Input() isAllDispatchBoardsSelected: boolean = true;
|
|
60
61
|
|
|
61
62
|
@Output() focusLoadEmitter = new EventEmitter<boolean>();
|
|
62
63
|
|
|
@@ -77,7 +78,8 @@ export class LoadListComponent {
|
|
|
77
78
|
|
|
78
79
|
this.dropdownOptions =
|
|
79
80
|
DropdownMenuContentHelper.getPickupDeliveryDropdownContent(
|
|
80
|
-
this.focusedTab
|
|
81
|
+
this.focusedTab,
|
|
82
|
+
this.isAllDispatchBoardsSelected
|
|
81
83
|
);
|
|
82
84
|
}
|
|
83
85
|
|
|
@@ -56,6 +56,7 @@ import {
|
|
|
56
56
|
export class ActiveLoadComponent {
|
|
57
57
|
@Input() activeLoad!: Array<LoadShortResponse>;
|
|
58
58
|
@Input() status!: StatusTypeEnum;
|
|
59
|
+
@Input() isAllDispatchBoardsSelected: boolean = true;
|
|
59
60
|
|
|
60
61
|
@Output() dropdownMenuAction: EventEmitter<IDropdownMenuOptionEmit> =
|
|
61
62
|
new EventEmitter<IDropdownMenuOptionEmit>();
|
|
@@ -76,7 +77,8 @@ export class ActiveLoadComponent {
|
|
|
76
77
|
private setDropdownOptions(): void {
|
|
77
78
|
this.dropdownOptions =
|
|
78
79
|
DropdownMenuContentHelper.getPickupDeliveryDropdownContent(
|
|
79
|
-
this.status
|
|
80
|
+
this.status,
|
|
81
|
+
this.isAllDispatchBoardsSelected
|
|
80
82
|
);
|
|
81
83
|
}
|
|
82
84
|
|
package/lib/models/index.ts
CHANGED
|
@@ -6,3 +6,5 @@ export * from './load-status-history-response.model';
|
|
|
6
6
|
export * from '../interfaces/user/user-avatar-file.interface';
|
|
7
7
|
export * from '../interfaces/user/company-user.interface';
|
|
8
8
|
export * from '../interfaces/user/user.interface';
|
|
9
|
+
export * from './autocomplete-search-layer.model';
|
|
10
|
+
export * from './dashboard/dropdown-list-item.model';
|
|
@@ -42,16 +42,24 @@ export class DropdownMenuContentConditionalItemsHelper {
|
|
|
42
42
|
// modifier items
|
|
43
43
|
// dispatchboard - pickup delivery component
|
|
44
44
|
static getPickupDeliveryModifierItems(
|
|
45
|
-
loadStatus: string
|
|
45
|
+
loadStatus: string,
|
|
46
|
+
isAllDispatchBoardsSelected: boolean
|
|
46
47
|
): Partial<IDropdownMenuItem>[] {
|
|
47
48
|
return [
|
|
48
49
|
{
|
|
49
50
|
title: eDropdownMenu.EDIT,
|
|
50
51
|
hasBorder: loadStatus !== StatusTypeEnum.PENDING,
|
|
52
|
+
isDisabled: isAllDispatchBoardsSelected,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
title: eDropdownMenu.UNASSIGN,
|
|
56
|
+
isDisabled: isAllDispatchBoardsSelected,
|
|
51
57
|
},
|
|
52
58
|
{
|
|
53
59
|
title: eDropdownMenu.DELETE,
|
|
54
|
-
isDisabled:
|
|
60
|
+
isDisabled:
|
|
61
|
+
isAllDispatchBoardsSelected ||
|
|
62
|
+
loadStatus !== StatusTypeEnum.PENDING,
|
|
55
63
|
},
|
|
56
64
|
];
|
|
57
65
|
}
|
|
@@ -33,11 +33,13 @@ export class DropdownMenuContentHelper {
|
|
|
33
33
|
|
|
34
34
|
// dispatchboard - pickup delivery component
|
|
35
35
|
static getPickupDeliveryDropdownContent(
|
|
36
|
-
loadStatus: string
|
|
36
|
+
loadStatus: string,
|
|
37
|
+
isAllDispatchBoardsSelected: boolean
|
|
37
38
|
): IDropdownMenuItem[] {
|
|
38
39
|
const modifierItems =
|
|
39
40
|
DropdownMenuContentConditionalItemsHelper.getPickupDeliveryModifierItems(
|
|
40
|
-
loadStatus
|
|
41
|
+
loadStatus,
|
|
42
|
+
isAllDispatchBoardsSelected
|
|
41
43
|
);
|
|
42
44
|
|
|
43
45
|
const sharedItems =
|
|
@@ -51,7 +53,8 @@ export class DropdownMenuContentHelper {
|
|
|
51
53
|
const conditionalItems =
|
|
52
54
|
DropdownMenuContentConditionalItemsHelper.getConditionalItems(
|
|
53
55
|
[eDropdownMenu.UNASSIGN],
|
|
54
|
-
false
|
|
56
|
+
false,
|
|
57
|
+
modifierItems
|
|
55
58
|
);
|
|
56
59
|
|
|
57
60
|
return [
|