ca-components 1.0.74 → 1.0.76

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 (70) hide show
  1. package/esm2022/lib/components/ca-comment/ca-comment.component.mjs +16 -5
  2. package/esm2022/lib/components/ca-custom-scrollbar/ca-custom-scrollbar.component.mjs +123 -120
  3. package/esm2022/lib/components/ca-custom-scrollbar/enums/event-type.enum.mjs +8 -0
  4. package/esm2022/lib/components/ca-custom-scrollbar/enums/index.mjs +3 -0
  5. package/esm2022/lib/components/ca-custom-scrollbar/enums/scroll-event-action.enum.mjs +6 -0
  6. package/esm2022/lib/components/ca-custom-scrollbar/models/index.mjs +3 -0
  7. package/esm2022/lib/components/ca-custom-scrollbar/models/scroll-bar-options.model.mjs +2 -0
  8. package/esm2022/lib/components/ca-custom-scrollbar/models/scroll-event.model.mjs +2 -0
  9. package/esm2022/lib/components/ca-filters/components/ca-dispatcher-filter/ca-dispatcher-filter.component.mjs +2 -6
  10. package/esm2022/lib/components/ca-filters/components/ca-location-filter/ca-location-filter.component.mjs +2 -6
  11. package/esm2022/lib/components/ca-filters/components/ca-user-filter/ca-user-filter.component.mjs +7 -9
  12. package/esm2022/lib/components/ca-filters/components/ca-violation-filter/ca-violation-filter.component.mjs +5 -5
  13. package/esm2022/lib/components/ca-input/ca-input.component.mjs +3 -4
  14. package/esm2022/lib/components/ca-input/pipes/input-class.pipe.mjs +2 -2
  15. package/esm2022/lib/components/ca-input/pipes/label-class.pipe.mjs +2 -1
  16. package/esm2022/lib/components/ca-input/pipes/show-placeholder-text.pipe.mjs +3 -3
  17. package/esm2022/lib/components/ca-input/pipes/show-valid-check.pipe.mjs +2 -2
  18. package/esm2022/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.mjs +93 -83
  19. package/esm2022/lib/components/ca-input-address-dropdown/enums/input-address-type-string.enum.mjs +2 -1
  20. package/esm2022/lib/components/ca-input-dropdown/ca-input-dropdown.component.mjs +10 -23
  21. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-dispatch/ca-input-dropdown-dispatch.component.mjs +2 -6
  22. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-labels/ca-input-dropdown-labels.component.mjs +2 -6
  23. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-text-counter/ca-input-dropdown-text-counter.component.mjs +2 -6
  24. package/esm2022/lib/components/ca-logo-change/ca-logo-change.component.mjs +8 -23
  25. package/esm2022/lib/components/ca-main-table/ca-main-table.component.mjs +4 -5
  26. package/esm2022/lib/components/ca-map-dropdown/ca-map-dropdown.component.mjs +6 -6
  27. package/esm2022/lib/components/ca-modal-button/ca-modal-button.component.mjs +2 -4
  28. package/esm2022/lib/components/ca-modal-button/enums/index.mjs +2 -2
  29. package/esm2022/lib/components/ca-modal-button/enums/modal-button-class-type.enum.mjs +10 -0
  30. package/esm2022/lib/components/ca-modal-button/enums/modal-button-size.enum.mjs +3 -3
  31. package/esm2022/lib/components/ca-modal-button/pipes/modal-button-class.pipe.mjs +4 -12
  32. package/esm2022/lib/components/ca-progress-expiration/ca-progress-expiration.component.mjs +9 -6
  33. package/esm2022/lib/components/ca-progress-range/ca-progress-range.component.mjs +3 -3
  34. package/esm2022/lib/components/ca-progress-range/utils/directives/progress-range-tooltip-arrow-position.directive.mjs +1 -1
  35. package/esm2022/lib/components/ca-rating-review/components/ca-ratings-reviews-popup/ca-ratings-reviews-popup.component.mjs +8 -10
  36. package/esm2022/lib/components/ca-right-side-panel/components/ca-right-side-panel-menu/ca-right-side-panel-menu.component.mjs +3 -3
  37. package/esm2022/lib/components/ca-todo/components/ca-todo-card.component.mjs +1 -1
  38. package/esm2022/lib/components/ca-upload-files/ca-upload-files.component.mjs +59 -54
  39. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.mjs +11 -7
  40. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.mjs +18 -15
  41. package/esm2022/lib/utils/helpers/file.helpers.mjs +14 -0
  42. package/fesm2022/ca-components.mjs +606 -587
  43. package/fesm2022/ca-components.mjs.map +1 -1
  44. package/lib/components/ca-custom-scrollbar/ca-custom-scrollbar.component.d.ts +38 -29
  45. package/lib/components/ca-custom-scrollbar/enums/event-type.enum.d.ts +6 -0
  46. package/lib/components/ca-custom-scrollbar/enums/index.d.ts +2 -0
  47. package/lib/components/ca-custom-scrollbar/enums/scroll-event-action.enum.d.ts +4 -0
  48. package/lib/components/ca-custom-scrollbar/models/index.d.ts +2 -0
  49. package/lib/components/ca-custom-scrollbar/models/scroll-bar-options.model.d.ts +6 -0
  50. package/lib/components/ca-custom-scrollbar/models/scroll-event.model.d.ts +6 -0
  51. package/lib/components/ca-input/pipes/input-class.pipe.d.ts +1 -1
  52. package/lib/components/ca-input/pipes/label-class.pipe.d.ts +1 -1
  53. package/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.d.ts +9 -7
  54. package/lib/components/ca-input-address-dropdown/enums/input-address-type-string.enum.d.ts +2 -1
  55. package/lib/components/ca-input-dropdown/ca-input-dropdown.component.d.ts +2 -1
  56. package/lib/components/ca-logo-change/ca-logo-change.component.d.ts +0 -1
  57. package/lib/components/ca-modal-button/ca-modal-button.component.d.ts +2 -4
  58. package/lib/components/ca-modal-button/enums/index.d.ts +1 -1
  59. package/lib/components/ca-modal-button/enums/modal-button-class-type.enum.d.ts +8 -0
  60. package/lib/components/ca-modal-button/enums/modal-button-size.enum.d.ts +2 -2
  61. package/lib/components/ca-modal-button/pipes/modal-button-class.pipe.d.ts +2 -2
  62. package/lib/components/ca-progress-range/ca-progress-range.component.d.ts +1 -1
  63. package/lib/components/ca-progress-range/utils/directives/progress-range-tooltip-arrow-position.directive.d.ts +1 -1
  64. package/lib/components/ca-upload-files/ca-upload-files.component.d.ts +4 -3
  65. package/lib/utils/helpers/file.helpers.d.ts +3 -0
  66. package/package.json +1 -1
  67. package/esm2022/lib/components/ca-logo-change/pipes/logo-slider.pipe.mjs +0 -17
  68. package/esm2022/lib/components/ca-modal-button/enums/modal-button-type.enum.mjs +0 -10
  69. package/lib/components/ca-logo-change/pipes/logo-slider.pipe.d.ts +0 -7
  70. package/lib/components/ca-modal-button/enums/modal-button-type.enum.d.ts +0 -8
@@ -1,44 +1,53 @@
1
- import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
- import { AfterViewInit, OnChanges } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
2
+ import { AfterViewInit } from '@angular/core';
3
+ import { ScrollBarOptions, ScrollEvent } from './models';
3
4
  import * as i0 from "@angular/core";
4
- export declare class CaCustomScrollbarComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
5
+ export declare class CaCustomScrollbarComponent implements OnInit, AfterViewInit, OnDestroy {
5
6
  private ngZone;
6
7
  private elRef;
7
- private chng;
8
+ private cdr;
8
9
  private bar;
9
- scrollEvent: EventEmitter<any>;
10
- scrollBarOptions: any;
11
- horizontalScrollHeight: number;
12
- scrollTop: number;
10
+ scrollEvent: EventEmitter<ScrollEvent>;
11
+ set scrollBarOptions(value: ScrollBarOptions);
12
+ set horizontalScrollHeight(value: number);
13
+ _scrollBarOptions: ScrollBarOptions;
14
+ _horizontalScrollHeight: number;
15
+ private scrollTop;
13
16
  showScrollbar: boolean;
14
17
  scrollHeight: number;
15
- scrollRatio: number;
16
- scrollRatioFull: number;
18
+ private scrollRatio;
19
+ private scrollRatioFull;
17
20
  isMouseDown: boolean;
18
- barClickPosition: number;
19
- barClickRestHeight: number;
21
+ private barClickPosition;
22
+ private barClickRestHeight;
20
23
  private destroy$;
21
- calculateSizeHeightTimer: any;
22
- tableNotPinedContainer: any;
23
- tableNotPinedBoundingRect: any;
24
- tableBarClickPosition: number;
25
- tableBarClickRestWidth: number;
26
- tableScrollRatio: number;
27
- tableScrollRatioFull: number;
24
+ private calculateSizeHeightTimer?;
25
+ private tableNotPinedContainer;
26
+ tableNotPinedBoundingRect: DOMRect | null;
27
+ private tableBarClickPosition;
28
+ private tableBarClickRestWidth;
29
+ private tableScrollRatio;
30
+ private tableScrollRatioFull;
28
31
  tableScrollWidth: number;
29
- constructor(ngZone: NgZone, elRef: ElementRef, chng: ChangeDetectorRef);
32
+ private resizeHandlerCount;
33
+ constructor(ngZone: NgZone, elRef: ElementRef, cdr: ChangeDetectorRef);
30
34
  ngOnInit(): void;
31
- ngOnChanges(changes: SimpleChanges): void;
32
35
  ngAfterViewInit(): void;
33
- setScrollEvent: (e: any) => void;
34
- setDraggingStart(e: MouseEvent): void;
35
- calculateBarSizeAndPosition(elem: any, pageHeight?: number): void;
36
- onMouseUpHandler: () => void;
37
- resizeHandlerCount: any;
38
- onResizeHandler: () => void;
39
- onMouseMoveHandler: (e: any) => void;
36
+ private initializeEventListeners;
37
+ private initializeTableScroll;
38
+ private setScrollEvent;
39
+ setDraggingStart(event: MouseEvent): void;
40
+ private calculateBarSizeAndPosition;
41
+ private calculateTableScroll;
42
+ private calculateRegularScroll;
43
+ private onMouseUpHandler;
44
+ private onResizeHandler;
45
+ private onMouseMoveHandler;
46
+ private handleRegularScroll;
47
+ private handleTableScroll;
48
+ projectContentChanged(): void;
49
+ private removeEventListeners;
40
50
  ngOnDestroy(): void;
41
- projectContentChanged(e: any): void;
42
51
  static ɵfac: i0.ɵɵFactoryDeclaration<CaCustomScrollbarComponent, never>;
43
52
  static ɵcmp: i0.ɵɵComponentDeclaration<CaCustomScrollbarComponent, "app-ca-custom-scrollbar", never, { "scrollBarOptions": { "alias": "scrollBarOptions"; "required": false; }; "horizontalScrollHeight": { "alias": "horizontalScrollHeight"; "required": false; }; }, { "scrollEvent": "scrollEvent"; }, never, ["*"], true, never>;
44
53
  }
@@ -0,0 +1,6 @@
1
+ export declare enum EventType {
2
+ MOUSE_UP = "mouseup",
3
+ MOUSE_MOVE = "mousemove",
4
+ SCROLL = "scroll",
5
+ RESIZE = "resize"
6
+ }
@@ -0,0 +1,2 @@
1
+ export * from './event-type.enum';
2
+ export * from './scroll-event-action.enum';
@@ -0,0 +1,4 @@
1
+ export declare enum ScrollEventAction {
2
+ IS_SCROLL_SHOWING = "isScrollShowing",
3
+ SCROLLING = "scrolling"
4
+ }
@@ -0,0 +1,2 @@
1
+ export * from './scroll-bar-options.model';
2
+ export * from './scroll-event.model';
@@ -0,0 +1,6 @@
1
+ export interface ScrollBarOptions {
2
+ showVerticalScrollBar: boolean;
3
+ showHorizontalScrollBar: boolean;
4
+ dataLength?: number;
5
+ modalStyle?: any;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { ScrollEventAction } from '../enums';
2
+ export interface ScrollEvent {
3
+ eventAction: ScrollEventAction;
4
+ isScrollBarShowing?: boolean;
5
+ scrollPosition?: number;
6
+ }
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
5
5
  export declare class InputClassPipe implements PipeTransform {
6
6
  transform(getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, isTouchedInput: boolean, inputConfig: ICaInput, input: {
7
7
  value: string;
8
- }, isVisibleCommands: boolean, value: string, superControlInvalid: boolean | undefined, superControlTouched: boolean | undefined, isDropdownToggler: boolean, isEditInput: boolean, template: string): {
8
+ }, isVisibleCommands: boolean, value: string | number, superControlInvalid: boolean | undefined, superControlTouched: boolean | undefined, isDropdownToggler: boolean, isEditInput: boolean, template: string): {
9
9
  [key: string]: boolean | undefined | number | null | string;
10
10
  };
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<InputClassPipe, never>;
@@ -2,7 +2,7 @@ import { PipeTransform } from '@angular/core';
2
2
  import { ICaInput } from '../config/ca-input.config';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class LabelClassPipe implements PipeTransform {
5
- transform(value: string, isFocusInput: boolean, inputConfig: ICaInput, isTouchedInput: boolean, superControlInvalid?: boolean, superControlTouched?: boolean): {
5
+ transform(value: string | number, isFocusInput: boolean, inputConfig: ICaInput, isTouchedInput: boolean, superControlInvalid?: boolean, superControlTouched?: boolean): {
6
6
  [key: string]: boolean | null | undefined | string | number;
7
7
  };
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<LabelClassPipe, never>;
@@ -15,9 +15,9 @@ export declare class CaInputAddressDropdownComponent implements OnInit, ControlV
15
15
  private ref;
16
16
  inputDropdown: CaInputDropdownComponent;
17
17
  set placeholderType(value: string);
18
- activeAddress: AddressList | null;
19
- receivedAddressData: AddressData | null;
20
- receivedAddressList: AddressListResponse | null;
18
+ set activeAddress(value: AddressList | null);
19
+ set receivedAddressData(value: AddressData | null);
20
+ set receivedAddressList(value: AddressListResponse | null);
21
21
  sentAddressValue: EventEmitter<string>;
22
22
  inputConfig: ICaInput;
23
23
  commandHandler: CommandsHandler;
@@ -40,6 +40,8 @@ export declare class CaInputAddressDropdownComponent implements OnInit, ControlV
40
40
  private allowValidation;
41
41
  stopType: string;
42
42
  private requestSent;
43
+ _receivedAddressList: AddressListResponse | null;
44
+ _activeAddress: AddressList | null;
43
45
  private destroy$;
44
46
  addressForm: UntypedFormGroup;
45
47
  constructor(superControl: NgControl, ref: ChangeDetectorRef);
@@ -50,13 +52,13 @@ export declare class CaInputAddressDropdownComponent implements OnInit, ControlV
50
52
  ngOnInit(): void;
51
53
  initChangesListener(): void;
52
54
  get getSuperControl(): FormControl;
53
- onCloseDropdown(e: boolean): void;
55
+ onCloseDropdown(event: boolean): void;
54
56
  getAddressData(address: string): void;
55
- onSelectDropdown(event: AddressList | null, action: string): void;
56
- onCommands(e: KeyboardEvent, type: InputAddressCommandsString): void;
57
+ onSelectDropdown(event: AddressList | null): void;
58
+ onCommands(event: KeyboardEvent, type: InputAddressCommandsString): void;
57
59
  addressExpand(): void;
58
60
  closeAddress(): void;
59
- clearInput(e: KeyboardEvent): void;
61
+ clearInput(event: KeyboardEvent): void;
60
62
  private checkSearchLayers;
61
63
  changeStopType(): void;
62
64
  onIncorrectInput(event: boolean): void;
@@ -1,4 +1,5 @@
1
1
  export declare enum InputAddressTypeStringEnum {
2
2
  LONG_ADDRESS = "longAddress",
3
- SHORT_ADDRESS = "shortAddress"
3
+ SHORT_ADDRESS = "shortAddress",
4
+ ROUTING_ADDRESS = "RoutingAddress"
4
5
  }
@@ -35,6 +35,7 @@ export declare class CaInputDropdownComponent implements OnInit, AfterViewInit,
35
35
  set preloadMultiselectItems(values: OptionModel[]);
36
36
  isDetailsPages: boolean;
37
37
  isIncorrectValue: boolean;
38
+ isAddressDropdown: boolean;
38
39
  selectedItem: EventEmitter<OptionModel | null>;
39
40
  selectedItems: EventEmitter<OptionModel[] | null>;
40
41
  selectedItemColor: EventEmitter<OptionModel | null>;
@@ -104,5 +105,5 @@ export declare class CaInputDropdownComponent implements OnInit, AfterViewInit,
104
105
  private dropdownNavigation;
105
106
  ngOnDestroy(): void;
106
107
  static ɵfac: i0.ɵɵFactoryDeclaration<CaInputDropdownComponent, [{ self: true; }, null, null, null]>;
107
- static ɵcmp: i0.ɵɵComponentDeclaration<CaInputDropdownComponent, "app-ca-input-dropdown", never, { "template": { "alias": "template"; "required": false; }; "multiselectTemplate": { "alias": "multiselectTemplate"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; "canAddNew": { "alias": "canAddNew"; "required": false; }; "canOpenModal": { "alias": "canOpenModal"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "activeItem": { "alias": "activeItem"; "required": false; }; "activeItemColor": { "alias": "activeItemColor"; "required": false; }; "labelMode": { "alias": "labelMode"; "required": false; }; "options": { "alias": "options"; "required": false; }; "preloadMultiselectItems": { "alias": "preloadMultiselectItems"; "required": false; }; "isDetailsPages": { "alias": "isDetailsPages"; "required": false; }; "isIncorrectValue": { "alias": "isIncorrectValue"; "required": false; }; }, { "selectedItem": "selectedItem"; "selectedItems": "selectedItems"; "selectedItemColor": "selectedItemColor"; "selectedLabelMode": "selectedLabelMode"; "closeDropdown": "closeDropdown"; "saveItem": "saveItem"; "incorrectEvent": "incorrectEvent"; "placeholderIconEvent": "placeholderIconEvent"; "paginationEvent": "pagination"; "activeGroupEvent": "activeGroup"; "clearInputEvent": "clearInputEvent"; }, never, never, true, never>;
108
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaInputDropdownComponent, "app-ca-input-dropdown", never, { "template": { "alias": "template"; "required": false; }; "multiselectTemplate": { "alias": "multiselectTemplate"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; "canAddNew": { "alias": "canAddNew"; "required": false; }; "canOpenModal": { "alias": "canOpenModal"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "activeItem": { "alias": "activeItem"; "required": false; }; "activeItemColor": { "alias": "activeItemColor"; "required": false; }; "labelMode": { "alias": "labelMode"; "required": false; }; "options": { "alias": "options"; "required": false; }; "preloadMultiselectItems": { "alias": "preloadMultiselectItems"; "required": false; }; "isDetailsPages": { "alias": "isDetailsPages"; "required": false; }; "isIncorrectValue": { "alias": "isIncorrectValue"; "required": false; }; "isAddressDropdown": { "alias": "isAddressDropdown"; "required": false; }; }, { "selectedItem": "selectedItem"; "selectedItems": "selectedItems"; "selectedItemColor": "selectedItemColor"; "selectedLabelMode": "selectedLabelMode"; "closeDropdown": "closeDropdown"; "saveItem": "saveItem"; "incorrectEvent": "incorrectEvent"; "placeholderIconEvent": "placeholderIconEvent"; "paginationEvent": "pagination"; "activeGroupEvent": "activeGroup"; "clearInputEvent": "clearInputEvent"; }, never, never, true, never>;
108
109
  }
@@ -32,7 +32,6 @@ export declare class CaLogoChangeComponent implements OnDestroy {
32
32
  imageCropped(event: ImageCroppedEvent): void;
33
33
  onCancel(): void;
34
34
  saveImage(): void;
35
- private base64ToFile;
36
35
  onZoomChange(event: number | ChangeContext): void;
37
36
  ngOnDestroy(): void;
38
37
  static ɵfac: i0.ɵɵFactoryDeclaration<CaLogoChangeComponent, never>;
@@ -1,13 +1,11 @@
1
- import { ModalButtonSize, ModalButtonType } from './enums';
1
+ import { ModalButtonClassType, ModalButtonSize } from './enums';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class CaModalButtonComponent {
4
- type: ModalButtonType;
4
+ type: ModalButtonClassType;
5
5
  size: ModalButtonSize;
6
6
  text: string;
7
7
  isValid: boolean;
8
8
  isSpinnerShown: boolean;
9
- ModalButtonType: typeof ModalButtonType;
10
- ModalButtonSize: typeof ModalButtonSize;
11
9
  static ɵfac: i0.ɵɵFactoryDeclaration<CaModalButtonComponent, never>;
12
10
  static ɵcmp: i0.ɵɵComponentDeclaration<CaModalButtonComponent, "app-ca-modal-button", never, { "type": { "alias": "type"; "required": false; }; "size": { "alias": "size"; "required": false; }; "text": { "alias": "text"; "required": false; }; "isValid": { "alias": "isValid"; "required": false; }; "isSpinnerShown": { "alias": "isSpinnerShown"; "required": false; }; }, {}, never, never, true, never>;
13
11
  }
@@ -1,2 +1,2 @@
1
- export * from './modal-button-type.enum';
1
+ export * from './modal-button-class-type.enum';
2
2
  export * from './modal-button-size.enum';
@@ -0,0 +1,8 @@
1
+ export declare enum ModalButtonClassType {
2
+ PRIMARY_POSITIVE = "primary-positive",
3
+ PRIMARY_NEUTRAL = "primary-neutral",
4
+ PRIMARY_NEGATIVE = "primary-negative",
5
+ SECONDARY_POSITIVE = "secondary-positive",
6
+ SECONDARY_NEUTRAL = "secondary-neutral",
7
+ SECONDARY_NEGATIVE = "secondary-negative"
8
+ }
@@ -1,4 +1,4 @@
1
1
  export declare enum ModalButtonSize {
2
- SMALL = "Small",
3
- NORMAL = "Normal"
2
+ SMALL = "modal-small",
3
+ NORMAL = "modal-normal"
4
4
  }
@@ -1,8 +1,8 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { ModalButtonSize, ModalButtonType } from '../enums';
2
+ import { ModalButtonClassType, ModalButtonSize } from '../enums';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ModalButtonClassPipe implements PipeTransform {
5
- transform(type: ModalButtonType, size: ModalButtonSize, isValid: boolean): {
5
+ transform(type: ModalButtonClassType, size: ModalButtonSize, isValid: boolean): {
6
6
  [key: string]: boolean;
7
7
  };
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<ModalButtonClassPipe, never>;
@@ -14,7 +14,7 @@ export declare class CaProgressRangeComponent {
14
14
  tooltipPosition: eProgressRangeTooltipPosition;
15
15
  set value(_value: number | null | undefined);
16
16
  svgRoutes: typeof CaProgressRangeSvgRoutes;
17
- priceRangeItem: IProgressRangeLastPriceItem;
17
+ priceRangeItem: IProgressRangeLastPriceItem | null | undefined;
18
18
  _value: number | null | undefined;
19
19
  constructor(renderer: Renderer2);
20
20
  private calculatePriceRange;
@@ -5,7 +5,7 @@ export declare class ProgressRangeTooltipArrowPositionDirective implements After
5
5
  private elementRef;
6
6
  private renderer;
7
7
  containerWidthPx: number;
8
- progressRangePrice: eProgressRangePrice;
8
+ progressRangePrice?: eProgressRangePrice;
9
9
  constructor(elementRef: ElementRef<HTMLElement>, renderer: Renderer2);
10
10
  ngAfterViewInit(): void;
11
11
  private setDisplay;
@@ -17,7 +17,6 @@ export declare class CaUploadFilesComponent implements AfterViewInit {
17
17
  documentReviewInputEvent: EventEmitter<DocumentReviewInputEvent>;
18
18
  onFileEvent: EventEmitter<FileEvent>;
19
19
  closeDropzone: EventEmitter<{}>;
20
- set files(data: FileConfig[]);
21
20
  slider: Slider;
22
21
  carouselConfig: FilesCarouselConfig;
23
22
  hasCrop: boolean;
@@ -35,11 +34,13 @@ export declare class CaUploadFilesComponent implements AfterViewInit {
35
34
  size: string;
36
35
  slideWidth: number;
37
36
  fileAdded: EventEmitter<File>;
38
- _files: FileConfig[];
39
37
  _config: FileOptionConfig;
40
38
  currentSlide: number;
41
39
  isDropzoneShown: boolean;
42
40
  private destroy$;
41
+ _files: FileConfig[];
42
+ set files(data: FileConfig[]);
43
+ get files(): FileConfig[];
43
44
  constructor(uploadFileService: CaUploadFileService, http: HttpClient);
44
45
  ngAfterViewInit(): void;
45
46
  private subscribeToUploadedFiles;
@@ -69,5 +70,5 @@ export declare class CaUploadFilesComponent implements AfterViewInit {
69
70
  identity(index: number): number;
70
71
  ngOnDestroy(): void;
71
72
  static ɵfac: i0.ɵɵFactoryDeclaration<CaUploadFilesComponent, never>;
72
- static ɵcmp: i0.ɵɵComponentDeclaration<CaUploadFilesComponent, "app-ca-upload-files", never, { "files": { "alias": "files"; "required": false; }; "slider": { "alias": "slider"; "required": false; }; "carouselConfig": { "alias": "carouselConfig"; "required": false; }; "hasCrop": { "alias": "hasCrop"; "required": false; }; "isRoundCrop": { "alias": "isRoundCrop"; "required": false; }; "hasBlobUrl": { "alias": "hasBlobUrl"; "required": false; }; "onlyOneTagFile": { "alias": "onlyOneTagFile"; "required": false; }; "dropzoneConf": { "alias": "dropzoneConf"; "required": false; }; "dropzoneCustomWidth": { "alias": "dropzoneCustomWidth"; "required": false; }; "isVisibleCropAndDrop": { "alias": "isVisibleCropAndDrop"; "required": false; }; "initialCropperPosition": { "alias": "initialCropperPosition"; "required": false; }; "containWithinAspectRatio": { "alias": "containWithinAspectRatio"; "required": false; }; "aspectRatio": { "alias": "aspectRatio"; "required": false; }; "review": { "alias": "review"; "required": false; }; "configFile": { "alias": "configFile"; "required": false; }; "size": { "alias": "size"; "required": false; }; "slideWidth": { "alias": "slideWidth"; "required": false; }; }, { "documentReviewInputEvent": "documentReviewInputEvent"; "onFileEvent": "onFileEvent"; "closeDropzone": "closeDropzone"; "fileAdded": "fileAdded"; }, never, never, true, never>;
73
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaUploadFilesComponent, "app-ca-upload-files", never, { "slider": { "alias": "slider"; "required": false; }; "carouselConfig": { "alias": "carouselConfig"; "required": false; }; "hasCrop": { "alias": "hasCrop"; "required": false; }; "isRoundCrop": { "alias": "isRoundCrop"; "required": false; }; "hasBlobUrl": { "alias": "hasBlobUrl"; "required": false; }; "onlyOneTagFile": { "alias": "onlyOneTagFile"; "required": false; }; "dropzoneConf": { "alias": "dropzoneConf"; "required": false; }; "dropzoneCustomWidth": { "alias": "dropzoneCustomWidth"; "required": false; }; "isVisibleCropAndDrop": { "alias": "isVisibleCropAndDrop"; "required": false; }; "initialCropperPosition": { "alias": "initialCropperPosition"; "required": false; }; "containWithinAspectRatio": { "alias": "containWithinAspectRatio"; "required": false; }; "aspectRatio": { "alias": "aspectRatio"; "required": false; }; "review": { "alias": "review"; "required": false; }; "configFile": { "alias": "configFile"; "required": false; }; "size": { "alias": "size"; "required": false; }; "slideWidth": { "alias": "slideWidth"; "required": false; }; "files": { "alias": "files"; "required": false; }; }, { "documentReviewInputEvent": "documentReviewInputEvent"; "onFileEvent": "onFileEvent"; "closeDropzone": "closeDropzone"; "fileAdded": "fileAdded"; }, never, never, true, never>;
73
74
  }
@@ -0,0 +1,3 @@
1
+ export declare class FileHelpers {
2
+ static base64ToFile(base64: string, filename: string): File;
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ca-components",
3
- "version": "1.0.74",
3
+ "version": "1.0.76",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.13",
6
6
  "@angular/core": "^18.2.13",
@@ -1,17 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class LogoSliderPipe {
4
- transform(customClass) {
5
- return `custom-slider-logo-change ${customClass}`;
6
- }
7
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LogoSliderPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
8
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: LogoSliderPipe, isStandalone: true, name: "logoSlider" }); }
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LogoSliderPipe, decorators: [{
11
- type: Pipe,
12
- args: [{
13
- name: 'logoSlider',
14
- standalone: true,
15
- }]
16
- }] });
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9nby1zbGlkZXIucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2NhLWxvZ28tY2hhbmdlL3BpcGVzL2xvZ28tc2xpZGVyLnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBaUIsTUFBTSxlQUFlLENBQUM7O0FBTXBELE1BQU0sT0FBTyxjQUFjO0lBQ3pCLFNBQVMsQ0FBQyxXQUFtQjtRQUMzQixPQUFPLDZCQUE2QixXQUFXLEVBQUUsQ0FBQztJQUNwRCxDQUFDOytHQUhVLGNBQWM7NkdBQWQsY0FBYzs7NEZBQWQsY0FBYztrQkFKMUIsSUFBSTttQkFBQztvQkFDSixJQUFJLEVBQUUsWUFBWTtvQkFDbEIsVUFBVSxFQUFFLElBQUk7aUJBQ2pCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUGlwZSwgUGlwZVRyYW5zZm9ybSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AUGlwZSh7XG4gIG5hbWU6ICdsb2dvU2xpZGVyJyxcbiAgc3RhbmRhbG9uZTogdHJ1ZSxcbn0pXG5leHBvcnQgY2xhc3MgTG9nb1NsaWRlclBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcbiAgdHJhbnNmb3JtKGN1c3RvbUNsYXNzOiBzdHJpbmcpOiBzdHJpbmcge1xuICAgIHJldHVybiBgY3VzdG9tLXNsaWRlci1sb2dvLWNoYW5nZSAke2N1c3RvbUNsYXNzfWA7XG4gIH1cbn1cbiJdfQ==
@@ -1,10 +0,0 @@
1
- export var ModalButtonType;
2
- (function (ModalButtonType) {
3
- ModalButtonType["PRIMARY_POSITIVE"] = "Primary Positive";
4
- ModalButtonType["PRIMARY_NEUTRAL"] = "Primary Neutral";
5
- ModalButtonType["PRIMARY_NEGATIVE"] = "Primary Negative";
6
- ModalButtonType["SECONDARY_POSITIVE"] = "Secondary Positive";
7
- ModalButtonType["SECONDARY_NEUTRAL"] = "Secondary Neutral";
8
- ModalButtonType["SECONDARY_NEGATIVE"] = "Secondary Negative";
9
- })(ModalButtonType || (ModalButtonType = {}));
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtYnV0dG9uLXR5cGUuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2NhLW1vZGFsLWJ1dHRvbi9lbnVtcy9tb2RhbC1idXR0b24tdHlwZS5lbnVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLGVBT1g7QUFQRCxXQUFZLGVBQWU7SUFDdkIsd0RBQXFDLENBQUE7SUFDckMsc0RBQW1DLENBQUE7SUFDbkMsd0RBQXFDLENBQUE7SUFDckMsNERBQXlDLENBQUE7SUFDekMsMERBQXVDLENBQUE7SUFDdkMsNERBQXlDLENBQUE7QUFDN0MsQ0FBQyxFQVBXLGVBQWUsS0FBZixlQUFlLFFBTzFCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gTW9kYWxCdXR0b25UeXBlIHtcbiAgICBQUklNQVJZX1BPU0lUSVZFID0gJ1ByaW1hcnkgUG9zaXRpdmUnLFxuICAgIFBSSU1BUllfTkVVVFJBTCA9ICdQcmltYXJ5IE5ldXRyYWwnLFxuICAgIFBSSU1BUllfTkVHQVRJVkUgPSAnUHJpbWFyeSBOZWdhdGl2ZScsXG4gICAgU0VDT05EQVJZX1BPU0lUSVZFID0gJ1NlY29uZGFyeSBQb3NpdGl2ZScsXG4gICAgU0VDT05EQVJZX05FVVRSQUwgPSAnU2Vjb25kYXJ5IE5ldXRyYWwnLFxuICAgIFNFQ09OREFSWV9ORUdBVElWRSA9ICdTZWNvbmRhcnkgTmVnYXRpdmUnLFxufVxuIl19
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class LogoSliderPipe implements PipeTransform {
4
- transform(customClass: string): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<LogoSliderPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<LogoSliderPipe, "logoSlider", true>;
7
- }
@@ -1,8 +0,0 @@
1
- export declare enum ModalButtonType {
2
- PRIMARY_POSITIVE = "Primary Positive",
3
- PRIMARY_NEUTRAL = "Primary Neutral",
4
- PRIMARY_NEGATIVE = "Primary Negative",
5
- SECONDARY_POSITIVE = "Secondary Positive",
6
- SECONDARY_NEUTRAL = "Secondary Neutral",
7
- SECONDARY_NEGATIVE = "Secondary Negative"
8
- }