ca-components 0.0.87 → 0.0.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/ca-chart/ca-chart.component.mjs +7 -8
- package/esm2022/lib/components/ca-chart/models/chart-base-dataset.model.mjs +1 -1
- package/esm2022/lib/components/ca-input/ca-input.component.mjs +11 -5
- package/esm2022/lib/components/ca-input/components/ca-input-commands/ca-input-commands.component.mjs +6 -3
- package/esm2022/lib/components/ca-input/enums/input-commands-type.enum.mjs +2 -1
- package/esm2022/lib/components/ca-input/enums/input-string.enum.mjs +3 -1
- package/esm2022/lib/components/ca-input/pipes/index.mjs +3 -1
- package/esm2022/lib/components/ca-input/pipes/input-placeholder-text-class.pipe.mjs +45 -0
- package/esm2022/lib/components/ca-input/pipes/show-placeholder-text.pipe.mjs +24 -0
- package/esm2022/lib/components/ca-input/services/ca-input-state.service.mjs +24 -6
- package/esm2022/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.mjs +2 -2
- package/esm2022/lib/components/ca-main-table/ca-main-table.component.mjs +3 -3
- package/esm2022/lib/components/ca-period-content/ca-period-content.component.mjs +3 -3
- 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-period-content/components/ca-period-content-user-info/ca-period-content-user-info.component.mjs +3 -3
- package/esm2022/lib/components/ca-period-content/enums/payroll-type.enum.mjs +2 -2
- package/esm2022/lib/components/ca-period-content/models/payroll-report.type.mjs +1 -1
- package/esm2022/lib/components/ca-period-content/pipes/included_count.pipe.mjs +3 -1
- package/esm2022/public-api.mjs +2 -2
- package/fesm2022/ca-components.mjs +258 -167
- package/fesm2022/ca-components.mjs.map +1 -1
- package/lib/components/ca-chart/ca-chart.component.d.ts +1 -1
- package/lib/components/ca-chart/models/chart-base-dataset.model.d.ts +1 -2
- package/lib/components/ca-input/ca-input.component.d.ts +3 -0
- package/lib/components/ca-input/components/ca-input-commands/ca-input-commands.component.d.ts +2 -0
- package/lib/components/ca-input/enums/input-commands-type.enum.d.ts +1 -0
- package/lib/components/ca-input/enums/input-string.enum.d.ts +2 -0
- package/lib/components/ca-input/pipes/index.d.ts +2 -0
- package/lib/components/ca-input/pipes/input-placeholder-text-class.pipe.d.ts +11 -0
- package/lib/components/ca-input/pipes/show-placeholder-text.pipe.d.ts +9 -0
- package/lib/components/ca-input/services/ca-input-state.service.d.ts +1 -0
- package/lib/components/ca-period-content/enums/payroll-type.enum.d.ts +1 -1
- package/lib/components/ca-period-content/models/payroll-report.type.d.ts +3 -1
- package/package.json +3 -2
- package/public-api.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
|
-
import { ChartOptions, ChartType } from 'chart.js
|
|
2
|
+
import { ChartOptions, ChartType } from 'chart.js';
|
|
3
3
|
import { IChartData, IBaseDataset } from './models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class CaChartComponent implements AfterViewInit {
|
|
@@ -5,6 +5,7 @@ import { LabelColor, CommandsEvent } from './models';
|
|
|
5
5
|
import { InputStateService } from './services';
|
|
6
6
|
import { InputChangeValue, InputSvgRoutes } from './utils';
|
|
7
7
|
import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
|
|
8
|
+
import { InputCommandsType, InputStringEnum } from './enums';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class CaInputComponent implements OnInit, OnDestroy, OnChanges, AfterViewInit, ControlValueAccessor {
|
|
10
11
|
superControl: NgControl;
|
|
@@ -39,6 +40,8 @@ export declare class CaInputComponent implements OnInit, OnDestroy, OnChanges, A
|
|
|
39
40
|
private destroy$;
|
|
40
41
|
inputSvgRoutes: typeof InputSvgRoutes;
|
|
41
42
|
isFocusInput: boolean;
|
|
43
|
+
inputCommandsType: typeof InputCommandsType;
|
|
44
|
+
inputStringEnum: typeof InputStringEnum;
|
|
42
45
|
constructor(superControl: NgControl, cdRef: ChangeDetectorRef, inputStateService: InputStateService);
|
|
43
46
|
get getSuperControl(): import("@angular/forms").AbstractControl<any, any> | null;
|
|
44
47
|
ngOnInit(): void;
|
package/lib/components/ca-input/components/ca-input-commands/ca-input-commands.component.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { EventEmitter } from "@angular/core";
|
|
2
2
|
import { ICaInput } from "../../config";
|
|
3
3
|
import { CommandClick } from "../../models";
|
|
4
|
+
import { InputCommandsType } from "../../enums";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class CaInputCommandsComponent {
|
|
6
7
|
inputConfig: ICaInput;
|
|
7
8
|
isFocusInput: boolean;
|
|
8
9
|
isVisibleCommands: boolean;
|
|
9
10
|
onCommandsClick: EventEmitter<CommandClick>;
|
|
11
|
+
inputCommandsType: typeof InputCommandsType;
|
|
10
12
|
constructor();
|
|
11
13
|
onCommands(event: Event, type: string, action: string): void;
|
|
12
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaInputCommandsComponent, never>;
|
|
@@ -15,3 +15,5 @@ export * from './show-dropdown-arrow.pipe';
|
|
|
15
15
|
export * from './show-invalid-danger-mark.pipe';
|
|
16
16
|
export * from './show-valid-check.pipe';
|
|
17
17
|
export * from './input-placeholder-icon-right.pipe';
|
|
18
|
+
export * from './input-placeholder-text-class.pipe';
|
|
19
|
+
export * from './show-placeholder-text.pipe';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ICaInput } from '../config';
|
|
3
|
+
import { AbstractControl } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InputPlaceholderTextClassPipe implements PipeTransform {
|
|
6
|
+
transform(isFocusInput: boolean, isTouchedInput: boolean, getSuperControl: AbstractControl<any, any> | null, inputConfig: ICaInput, isVisibleCommands: boolean, value: string): {
|
|
7
|
+
[key: string]: boolean | undefined;
|
|
8
|
+
};
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputPlaceholderTextClassPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<InputPlaceholderTextClassPipe, "inputPlaceholderTextClass", true>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ICaInput } from '../config/ca-input.config';
|
|
3
|
+
import { AbstractControl } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ShowPlaceholderTextPipe implements PipeTransform {
|
|
6
|
+
transform(inputConfig: ICaInput, getSuperControl: AbstractControl<any, any> | null, isVisibleCommands: boolean, value: string): boolean;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShowPlaceholderTextPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ShowPlaceholderTextPipe, "showPlaceholderText", true>;
|
|
9
|
+
}
|
|
@@ -127,6 +127,7 @@ export declare class InputStateService {
|
|
|
127
127
|
private disableConsecutivelyPoints;
|
|
128
128
|
private disableMultiplePoints;
|
|
129
129
|
onCommands(event: Event, type: string, action: string): void;
|
|
130
|
+
private handleIncrementDecrement;
|
|
130
131
|
private handlePmIncrementDecrement;
|
|
131
132
|
private decrementPmValue;
|
|
132
133
|
private incrementPmValue;
|
|
@@ -10,7 +10,7 @@ export interface PayrollReport {
|
|
|
10
10
|
payrollNumber?: string | null;
|
|
11
11
|
daysUntilPayment: number;
|
|
12
12
|
mileagePay?: number;
|
|
13
|
-
|
|
13
|
+
earnings?: number;
|
|
14
14
|
salary?: number | null;
|
|
15
15
|
extraStopPay?: number;
|
|
16
16
|
extraStopCount?: number;
|
|
@@ -35,6 +35,8 @@ export interface PayrollReport {
|
|
|
35
35
|
totalBonus?: number;
|
|
36
36
|
includedLoads?: Array<PayrollLoadMinimalResponse> | null;
|
|
37
37
|
excludedLoads?: Array<PayrollLoadMinimalResponse> | null;
|
|
38
|
+
includedFuels?: Array<PayrollReportTableResponse> | null;
|
|
39
|
+
excludedFuels?: Array<PayrollReportTableResponse> | null;
|
|
38
40
|
mapLocations?: Array<any> | null;
|
|
39
41
|
sums?: any | null;
|
|
40
42
|
payments?: Array<PayrollReportTableResponse> | null;
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ca-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.89",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^16.2.0",
|
|
6
6
|
"@angular/core": "^16.2.0",
|
|
7
7
|
"@angular/animations": "^16.2.0",
|
|
8
8
|
"@angular/google-maps": "^16.2.2",
|
|
9
9
|
"@ng-bootstrap/ng-bootstrap": "^15.1.0",
|
|
10
|
-
"angular-svg-icon": "^16.1.0"
|
|
10
|
+
"angular-svg-icon": "^16.1.0",
|
|
11
|
+
"chart.js": "^4.4.5"
|
|
11
12
|
},
|
|
12
13
|
"dependencies": {
|
|
13
14
|
"tslib": "^2.3.0"
|
package/public-api.d.ts
CHANGED
|
@@ -33,6 +33,6 @@ export * from './lib/components/ca-right-side-panel/components/ca-right-side-pan
|
|
|
33
33
|
export * from './lib/components/ca-right-side-panel/ca-right-side-panel.component';
|
|
34
34
|
export * from './lib/components/ca-todo/ca-todo.component';
|
|
35
35
|
export * from './lib/components/ca-progress-expiration/ca-progress-expiration.component';
|
|
36
|
-
export * from './lib/components/ca-modal/ca-modal.component';
|
|
37
36
|
export * from './lib/components/ca-chart/ca-chart.component';
|
|
37
|
+
export * from './lib/components/ca-modal/ca-modal.component';
|
|
38
38
|
export * from './lib/models';
|