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.
Files changed (25) hide show
  1. package/assets/scss/background.scss +6 -0
  2. package/assets/scss/icons.scss +6 -0
  3. package/assets/scss/popover.scss +6 -0
  4. package/assets/scss/sizing.scss +4 -0
  5. package/assets/scss/spacing.scss +5 -2
  6. package/fesm2022/ca-components.mjs +424 -189
  7. package/fesm2022/ca-components.mjs.map +1 -1
  8. package/lib/components/ca-checkbox/ca-checkbox.component.d.ts +7 -6
  9. package/lib/components/ca-factoring-dropdown/ca-factoring-dropdown.component.d.ts +42 -0
  10. package/lib/components/ca-factoring-dropdown/enums/factoring-form-control.enum.d.ts +6 -0
  11. package/lib/components/ca-factoring-dropdown/enums/factoring-pdf-format.enum.d.ts +4 -0
  12. package/lib/components/ca-factoring-dropdown/enums/factoring-pdf-organize.enum.d.ts +4 -0
  13. package/lib/components/ca-factoring-dropdown/enums/index.d.ts +3 -0
  14. package/lib/components/ca-factoring-dropdown/interfaces/factoring-checkbox-item.interface.d.ts +5 -0
  15. package/lib/components/ca-factoring-dropdown/interfaces/factoring-export-item.interface.d.ts +12 -0
  16. package/lib/components/ca-factoring-dropdown/interfaces/index.d.ts +2 -0
  17. package/lib/components/ca-factoring-dropdown/utils/constants/factoring-dropdown.constants.d.ts +6 -0
  18. package/lib/components/ca-factoring-dropdown/utils/constants/index.d.ts +1 -0
  19. package/lib/components/ca-filters/ca-filter.component.d.ts +2 -2
  20. package/lib/components/ca-spinner/ca-spinner.component.d.ts +1 -1
  21. package/lib/enums/position.enum.d.ts +2 -1
  22. package/lib/enums/shared-string.enum.d.ts +2 -1
  23. package/lib/utils/svg-routes/shared-svg.routes.d.ts +1 -0
  24. package/package.json +1 -1
  25. 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 handleColumnDropdownCheckboxEmit;
35
- writeValue(_: any): void;
33
+ private onChangeCallback;
34
+ private onTouchedCallback;
35
+ writeValue(obj: any): void;
36
36
  registerOnChange(fn: any): void;
37
- onChange(): void;
38
- registerOnTouched(_: any): void;
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,6 @@
1
+ export declare enum eFactoringFormControl {
2
+ SCHEDULE_NO = "scheduleNo",
3
+ PDF_FORMAT = "pdfFormat",
4
+ ORGANIZE_PDF = "organizePdf",
5
+ INCLUDE_UNTAGGED = "includeUntagged"
6
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum eFactoringPdfFormat {
2
+ SINGLE = "single",
3
+ MULTIPLE = "multiple"
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum eFactoringPdfOrganize {
2
+ BY_LOAD = "byLoad",
3
+ BY_TAG = "byTag"
4
+ }
@@ -0,0 +1,3 @@
1
+ export * from './factoring-pdf-format.enum';
2
+ export * from './factoring-pdf-organize.enum';
3
+ export * from './factoring-form-control.enum';
@@ -0,0 +1,5 @@
1
+ export interface IFactoringCheckboxItem {
2
+ name: string;
3
+ label: string;
4
+ isChecked: boolean;
5
+ }
@@ -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,2 @@
1
+ export * from './factoring-checkbox-item.interface';
2
+ export * from './factoring-export-item.interface';
@@ -0,0 +1,6 @@
1
+ import { ICaInput } from '../../../ca-input/config';
2
+ import { IFactoringCheckboxItem } from '../../interfaces';
3
+ export declare class FactoringDropdownConstants {
4
+ static CHECKBOX_COLUMNS: IFactoringCheckboxItem[];
5
+ static SCHEDULE_NO_INPUT_CONFIG: ICaInput;
6
+ }
@@ -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<filterOutput | filterOutputWithParams>;
73
- clearAll: EventEmitter<filterOutput | filterOutputWithParams>;
72
+ setFilter: EventEmitter<filterOutputWithParams | filterOutput>;
73
+ clearAll: EventEmitter<filterOutputWithParams | filterOutput>;
74
74
  private destroy$;
75
75
  isSearchExpanded: boolean;
76
76
  isFilterActive: boolean;
@@ -1,4 +1,4 @@
1
- import { OnChanges, SimpleChanges } from "@angular/core";
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class CaSpinnerComponent implements OnChanges {
4
4
  size?: string;
@@ -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
  }
@@ -44,5 +44,6 @@ export declare enum eSharedString {
44
44
  RESULTS = "Results",
45
45
  PARKING_LOWERCASE = "parking",
46
46
  UNIT_NO = "unitNo",
47
- TYPE = "type"
47
+ TYPE = "type",
48
+ CLOSE = "Close"
48
49
  }
@@ -26,5 +26,6 @@ export declare class SharedSvgRoutes {
26
26
  static ARROW_UP_FILLED_ICON: string;
27
27
  static PLUS_ICON: string;
28
28
  static COMMENT_ICON: string;
29
+ static DOCUMENT_ICON: string;
29
30
  static CLOSE_ICON_NORMAL: string;
30
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ca-components",
3
- "version": "1.9.03",
3
+ "version": "1.9.05",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.14",
6
6
  "@angular/core": "^19.2.14",
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';