ca-components 1.9.3 → 1.9.5
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/assets/scss/background.scss +6 -0
- package/assets/scss/icons.scss +6 -0
- package/assets/scss/popover.scss +6 -0
- package/assets/scss/sizing.scss +4 -0
- package/assets/scss/spacing.scss +5 -2
- package/fesm2022/ca-components.mjs +424 -189
- package/fesm2022/ca-components.mjs.map +1 -1
- package/lib/components/ca-checkbox/ca-checkbox.component.d.ts +7 -6
- package/lib/components/ca-factoring-dropdown/ca-factoring-dropdown.component.d.ts +42 -0
- package/lib/components/ca-factoring-dropdown/enums/factoring-form-control.enum.d.ts +6 -0
- package/lib/components/ca-factoring-dropdown/enums/factoring-pdf-format.enum.d.ts +4 -0
- package/lib/components/ca-factoring-dropdown/enums/factoring-pdf-organize.enum.d.ts +4 -0
- package/lib/components/ca-factoring-dropdown/enums/index.d.ts +3 -0
- package/lib/components/ca-factoring-dropdown/interfaces/factoring-checkbox-item.interface.d.ts +5 -0
- package/lib/components/ca-factoring-dropdown/interfaces/factoring-export-item.interface.d.ts +12 -0
- package/lib/components/ca-factoring-dropdown/interfaces/index.d.ts +2 -0
- package/lib/components/ca-factoring-dropdown/utils/constants/factoring-dropdown.constants.d.ts +6 -0
- package/lib/components/ca-factoring-dropdown/utils/constants/index.d.ts +1 -0
- package/lib/components/ca-filters/ca-filter.component.d.ts +2 -2
- package/lib/components/ca-spinner/ca-spinner.component.d.ts +1 -1
- package/lib/enums/position.enum.d.ts +2 -1
- package/lib/enums/shared-string.enum.d.ts +2 -1
- package/lib/utils/svg-routes/shared-svg.routes.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { eColor, eGeneralActions } from '../../enums';
|
|
3
4
|
import { IColumnCheckAction } from './interfaces';
|
|
4
5
|
import { CheckboxSvgRoutes } from './utils/svg-routes';
|
|
5
|
-
import { eColor, eGeneralActions } from '../../enums';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class CaCheckboxComponent implements ControlValueAccessor {
|
|
8
8
|
superControl?: NgControl | undefined;
|
|
@@ -25,17 +25,18 @@ export declare class CaCheckboxComponent implements ControlValueAccessor {
|
|
|
25
25
|
itemIndex: number;
|
|
26
26
|
formArrayAction: EventEmitter<boolean>;
|
|
27
27
|
columnCheckAction: EventEmitter<IColumnCheckAction>;
|
|
28
|
-
private formArrayCheck;
|
|
29
28
|
checkboxSvgRoutes: typeof CheckboxSvgRoutes;
|
|
30
29
|
eGeneralActions: typeof eGeneralActions;
|
|
31
30
|
eColor: typeof eColor;
|
|
32
31
|
get getSuperControl(): import("@angular/forms").AbstractControl<any, any> | null | undefined;
|
|
33
32
|
constructor(superControl?: NgControl | undefined);
|
|
34
|
-
private
|
|
35
|
-
|
|
33
|
+
private onChangeCallback;
|
|
34
|
+
private onTouchedCallback;
|
|
35
|
+
writeValue(obj: any): void;
|
|
36
36
|
registerOnChange(fn: any): void;
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
registerOnTouched(fn: any): void;
|
|
38
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
39
|
+
onChange(event: Event): void;
|
|
39
40
|
onAction(): void;
|
|
40
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaCheckboxComponent, [{ optional: true; self: true; }]>;
|
|
41
42
|
static ɵcmp: i0.ɵɵComponentDeclaration<CaCheckboxComponent, "app-ca-checkbox", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "disabledStillCheckMark": { "alias": "disabledStillCheckMark"; "required": false; }; "svg": { "alias": "svg"; "required": false; }; "name": { "alias": "name"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "moveIconDown": { "alias": "moveIconDown"; "required": false; }; "isUseCarrieraACHCheckBox": { "alias": "isUseCarrieraACHCheckBox"; "required": false; }; "isDisabledBlue": { "alias": "isDisabledBlue"; "required": false; }; "isDisabledRegularCheck": { "alias": "isDisabledRegularCheck"; "required": false; }; "isLabelDisabled": { "alias": "isLabelDisabled"; "required": false; }; "isRegularCheckbox": { "alias": "isRegularCheckbox"; "required": false; }; "isChecked": { "alias": "isChecked"; "required": false; }; "isGroupPartialyChecked": { "alias": "isGroupPartialyChecked"; "required": false; }; "groupIndex": { "alias": "groupIndex"; "required": false; }; "itemIndex": { "alias": "itemIndex"; "required": false; }; }, { "formArrayAction": "formArrayAction"; "columnCheckAction": "columnCheckAction"; }, never, never, true, never>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { ePosition, eSharedString } from '../../enums';
|
|
6
|
+
import { eFactoringFormControl, eFactoringPdfFormat, eFactoringPdfOrganize } from './enums';
|
|
7
|
+
import { IFactoringCheckboxItem, IFactoringExportItem } from './interfaces';
|
|
8
|
+
import { ICaInput } from '../ca-input/config';
|
|
9
|
+
import { SharedSvgRoutes } from '../../utils/svg-routes';
|
|
10
|
+
import { CheckboxSvgRoutes } from '../ca-checkbox/utils/svg-routes';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class CaFactoringDropdownComponent implements OnInit {
|
|
13
|
+
private formBuilder;
|
|
14
|
+
itemsCount: number;
|
|
15
|
+
set isExportFinished(isExportFinished: boolean);
|
|
16
|
+
onFactoringExport: EventEmitter<IFactoringExportItem>;
|
|
17
|
+
checkBoxItems: IFactoringCheckboxItem[];
|
|
18
|
+
factoringDropdownPopover: NgbPopover | null;
|
|
19
|
+
factoringDropdownForm: UntypedFormGroup;
|
|
20
|
+
isByTagDisabled: boolean;
|
|
21
|
+
checkedCount$: Observable<number>;
|
|
22
|
+
sharedSvgRoutes: typeof SharedSvgRoutes;
|
|
23
|
+
checkboxSvgRputes: typeof CheckboxSvgRoutes;
|
|
24
|
+
scheduleNoInputConfig: ICaInput;
|
|
25
|
+
eFactoringFormControl: typeof eFactoringFormControl;
|
|
26
|
+
eFactoringPdfFormat: typeof eFactoringPdfFormat;
|
|
27
|
+
eFactoringPdfOrganize: typeof eFactoringPdfOrganize;
|
|
28
|
+
eSharedString: typeof eSharedString;
|
|
29
|
+
ePosition: typeof ePosition;
|
|
30
|
+
isInProgress: boolean;
|
|
31
|
+
constructor(formBuilder: UntypedFormBuilder);
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
private createForm;
|
|
34
|
+
onFactoringDropdownOpenCloseClick(factoringDropdownPopover: NgbPopover): void;
|
|
35
|
+
onCLoseDropdown(): void;
|
|
36
|
+
onCheckboxRowClick(name: string): void;
|
|
37
|
+
onRadioPdfFormatClick(value: eFactoringPdfFormat, event: MouseEvent): void;
|
|
38
|
+
onRadioOrganizePdfClick(value: eFactoringPdfOrganize, event: MouseEvent): void;
|
|
39
|
+
onExportBatch(): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaFactoringDropdownComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaFactoringDropdownComponent, "app-ca-factoring-dropdown", never, { "itemsCount": { "alias": "itemsCount"; "required": false; }; "isExportFinished": { "alias": "isExportFinished"; "required": false; }; }, { "onFactoringExport": "onFactoringExport"; }, never, never, true, never>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { eFactoringPdfFormat, eFactoringPdfOrganize } from '../enums';
|
|
2
|
+
export interface IFactoringExportItem {
|
|
3
|
+
scheduleNumber: string;
|
|
4
|
+
origin: boolean;
|
|
5
|
+
destination: boolean;
|
|
6
|
+
payTerm: boolean;
|
|
7
|
+
pdfFormat: eFactoringPdfFormat;
|
|
8
|
+
pdfOrganize: eFactoringPdfOrganize;
|
|
9
|
+
includeUntagged: boolean;
|
|
10
|
+
loadIds?: number[];
|
|
11
|
+
dateCreated?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './factoring-dropdown.constants';
|
|
@@ -69,8 +69,8 @@ export declare class CaFilterComponent implements OnDestroy {
|
|
|
69
69
|
canadaStates: ArrayStatus[];
|
|
70
70
|
sentAddressValue: EventEmitter<string>;
|
|
71
71
|
sentAddressData: EventEmitter<SentAddressData>;
|
|
72
|
-
setFilter: EventEmitter<
|
|
73
|
-
clearAll: EventEmitter<
|
|
72
|
+
setFilter: EventEmitter<filterOutputWithParams | filterOutput>;
|
|
73
|
+
clearAll: EventEmitter<filterOutputWithParams | filterOutput>;
|
|
74
74
|
private destroy$;
|
|
75
75
|
isSearchExpanded: boolean;
|
|
76
76
|
isFilterActive: boolean;
|
|
@@ -5,5 +5,6 @@ export declare enum ePosition {
|
|
|
5
5
|
RIGHT = "right",
|
|
6
6
|
BOTTOM_LEFT = "bottom-left",
|
|
7
7
|
BOTTOM_RIGHT = "bottom-right",
|
|
8
|
-
TABLE_CARDS_DROPDOWN_MENU = "right-top bottom-right right-bottom top-right"
|
|
8
|
+
TABLE_CARDS_DROPDOWN_MENU = "right-top bottom-right right-bottom top-right",
|
|
9
|
+
BOTTOM_END = "bottom-end"
|
|
9
10
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -109,3 +109,5 @@ export * from './lib/components/ca-toast-messages/ca-toast-messages.component';
|
|
|
109
109
|
export * from './lib/components/ca-toast-messages/enums';
|
|
110
110
|
export * from './lib/components/ca-fleet-filter/ca-fleet-filter.component';
|
|
111
111
|
export * from './lib/components/ca-fleet-filter/interfaces';
|
|
112
|
+
export * from './lib/components/ca-factoring-dropdown/ca-factoring-dropdown.component';
|
|
113
|
+
export * from './lib/components/ca-factoring-dropdown/interfaces';
|