ca-components 0.0.58 → 0.0.60
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 +10 -4
- package/esm2022/lib/components/ca-main-table/ca-main-table.component.mjs +71 -0
- package/esm2022/lib/components/ca-main-table/models/main-table.model.mjs +2 -0
- package/esm2022/lib/components/ca-main-table/pipes/ca-main-table-hidden-rows/ca-main-table-hidden-rows.pipe.mjs +20 -0
- 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-extra-info/ca-period-content-extra-info.component.mjs +3 -3
- package/esm2022/lib/components/ca-period-content/components/ca-period-content-payment/ca-period-content-payment.component.mjs +11 -7
- 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/models/payroll-report-tables.type.mjs +1 -1
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/ca-components.mjs +109 -17
- package/fesm2022/ca-components.mjs.map +1 -1
- package/lib/ca-components.module.d.ts +2 -1
- package/lib/components/ca-main-table/ca-main-table.component.d.ts +26 -0
- package/lib/components/ca-main-table/models/main-table.model.d.ts +25 -0
- package/lib/components/ca-main-table/pipes/ca-main-table-hidden-rows/ca-main-table-hidden-rows.pipe.d.ts +8 -0
- package/lib/components/ca-period-content/components/ca-period-content-payment/ca-period-content-payment.component.d.ts +2 -2
- package/lib/components/ca-period-content/models/payroll-report-tables.type.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -22,8 +22,9 @@ import * as i20 from "./components/ca-truck-trailer-progress-bar/ca-truck-traile
|
|
|
22
22
|
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
|
+
import * as i24 from "./components/ca-main-table/ca-main-table.component";
|
|
25
26
|
export declare class CaComponentsLibModule {
|
|
26
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaComponentsLibModule, never>;
|
|
27
|
-
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 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]>;
|
|
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]>;
|
|
28
29
|
static ɵinj: i0.ɵɵInjectorDeclaration<CaComponentsLibModule>;
|
|
29
30
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, Injector, OnInit } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
4
|
+
import { ColumnConfig } from './models/main-table.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CaMainTableComponent implements OnInit {
|
|
7
|
+
private injector;
|
|
8
|
+
private cdRef;
|
|
9
|
+
onPressEvent: EventEmitter<any>;
|
|
10
|
+
hideFieldsToHide: boolean;
|
|
11
|
+
columns: ColumnConfig[];
|
|
12
|
+
data$: Observable<any[]>;
|
|
13
|
+
constructor(injector: Injector, cdRef: ChangeDetectorRef);
|
|
14
|
+
onPressRow(rowData: any): void;
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
createInjector(rowData: any, inputs: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}): Injector;
|
|
19
|
+
attachOutputs(componentRef: any, outputs: {
|
|
20
|
+
[key: string]: (event: any) => void;
|
|
21
|
+
}): void;
|
|
22
|
+
dropHeader(event: CdkDragDrop<string[]>): void;
|
|
23
|
+
drop(event: CdkDragDrop<string[]>): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaMainTableComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaMainTableComponent, "app-ca-main-table", never, { "hideFieldsToHide": { "alias": "hideFieldsToHide"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data$": { "alias": "data$"; "required": false; }; }, { "onPressEvent": "onPressEvent"; }, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TemplateRef, ElementRef } from '@angular/core';
|
|
2
|
+
export interface ColumnConfig {
|
|
3
|
+
header: string;
|
|
4
|
+
field?: string;
|
|
5
|
+
row?: boolean;
|
|
6
|
+
sortable?: boolean;
|
|
7
|
+
reorderable?: boolean;
|
|
8
|
+
hiddeOnTableReduce?: boolean;
|
|
9
|
+
pipeType?: 'currency' | 'date';
|
|
10
|
+
pipeString?: string;
|
|
11
|
+
headerCellType?: 'text' | 'template';
|
|
12
|
+
headerTemplate?: ElementRef<any>;
|
|
13
|
+
cellType: 'text' | 'component' | 'template';
|
|
14
|
+
cellCustomClasses?: string;
|
|
15
|
+
textCustomClasses?: string;
|
|
16
|
+
component?: any;
|
|
17
|
+
inputs?: {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
20
|
+
outputs?: {
|
|
21
|
+
[key: string]: (event: any) => void;
|
|
22
|
+
};
|
|
23
|
+
template?: ElementRef<any>;
|
|
24
|
+
templateRef?: TemplateRef<any>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ColumnConfig } from '../../models/main-table.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CaMainTableHiddenRowsPipe implements PipeTransform {
|
|
5
|
+
transform(columns: ColumnConfig[], hideHiddenFields: boolean): ColumnConfig[];
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaMainTableHiddenRowsPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CaMainTableHiddenRowsPipe, "caMainTableHiddenRows", true>;
|
|
8
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { PeriodContentSvgRoutes } from '../../utils/svg-routes';
|
|
3
3
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
4
|
-
import {
|
|
4
|
+
import { PaymentComponentData, PaymentSum } from '../../models';
|
|
5
5
|
import { IItemList } from '../../../../models/dropdown.model';
|
|
6
6
|
import { PayrollReportTableResponse } from '../../models/payroll-report-tables.type';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -40,7 +40,7 @@ export declare class CaPeriodContentPaymentComponent implements OnInit {
|
|
|
40
40
|
onMouseLeave(index: number): void;
|
|
41
41
|
getColor(title: string): string;
|
|
42
42
|
getTitleColor(): string;
|
|
43
|
-
onDrop(event: CdkDragDrop<
|
|
43
|
+
onDrop(event: CdkDragDrop<PayrollReportTableResponse[] | undefined, any, any>): void;
|
|
44
44
|
getSvgPath(propertyName: keyof typeof PeriodContentSvgRoutes): string;
|
|
45
45
|
identity(index: number): number;
|
|
46
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaPeriodContentPaymentComponent, never>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -23,3 +23,5 @@ export * from './lib/components/ca-input-note/ca-input-note.component';
|
|
|
23
23
|
export * from './lib/components/ca-search-multiple-states/utils/services/search-multiple-states.service';
|
|
24
24
|
export * from './lib/components/ca-rating-review/ca-rating-review.component';
|
|
25
25
|
export * from './lib/components/ca-map/models/map.model';
|
|
26
|
+
export * from './lib/components/ca-main-table/ca-main-table.component';
|
|
27
|
+
export * from './lib/components/ca-main-table/models/main-table.model';
|