ca-components 1.0.57 → 1.0.58

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 (56) hide show
  1. package/esm2022/lib/components/ca-chart/ca-chart.component.mjs +107 -33
  2. package/esm2022/lib/components/ca-chart/enums/chart-colors.enum.mjs +1 -1
  3. package/esm2022/lib/components/ca-chart/enums/chart-event-properties.enum.mjs +3 -1
  4. package/esm2022/lib/components/ca-chart/enums/chart-font-properties.enum.mjs +6 -0
  5. package/esm2022/lib/components/ca-chart/enums/index.mjs +2 -1
  6. package/esm2022/lib/components/ca-chart/models/chart-base-dataset.model.mjs +1 -1
  7. package/esm2022/lib/components/ca-chart/models/chart-config.model.mjs +1 -1
  8. package/esm2022/lib/components/ca-chart/utils/helpers/chart.helper.mjs +17 -26
  9. package/esm2022/lib/components/ca-collapsible-filter/ca-collapsible-filter.component.mjs +76 -0
  10. package/esm2022/lib/components/ca-filters/ca-filter.component.mjs +17 -4
  11. package/esm2022/lib/components/ca-filters/pipes/filter-conditions-user-box.pipe.mjs +4 -2
  12. package/esm2022/lib/components/ca-filters/pipes/filter-popover-conditions.pipe.mjs +1 -2
  13. package/esm2022/lib/components/ca-input/ca-input.component.mjs +2 -2
  14. package/esm2022/lib/components/ca-input/config/ca-input.config.mjs +1 -1
  15. package/esm2022/lib/components/ca-input/pipes/input-placeholder-icon-right.pipe.mjs +11 -1
  16. package/esm2022/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.mjs +2 -2
  17. package/esm2022/lib/components/ca-progress-range/ca-progress-range.component.mjs +38 -19
  18. package/esm2022/lib/components/ca-progress-range/enums/index.mjs +2 -1
  19. package/esm2022/lib/components/ca-progress-range/enums/progress-range-tooltip-position.enum.mjs +6 -0
  20. package/esm2022/lib/components/ca-progress-range/models/index.mjs +1 -2
  21. package/esm2022/lib/components/ca-progress-range/utils/constants/ca-progress-range.constants.mjs +6 -1
  22. package/esm2022/lib/components/ca-progress-range/utils/directives/index.mjs +4 -0
  23. package/esm2022/lib/components/ca-progress-range/utils/directives/progress-range-svg.directive.mjs +42 -0
  24. package/esm2022/lib/components/ca-progress-range/utils/directives/progress-range-tooltip-arrow-position.directive.mjs +34 -0
  25. package/esm2022/lib/components/ca-progress-range/utils/directives/progress-range-tooltip.directive.mjs +45 -0
  26. package/esm2022/lib/components/ca-right-side-panel/components/ca-right-side-panel-top-bar/ca-right-side-panel-top-bar.component.mjs +2 -2
  27. package/esm2022/lib/pipes/dropdown-load-status-color.pipe.mjs +3 -3
  28. package/esm2022/public-api.mjs +2 -1
  29. package/fesm2022/ca-components.mjs +397 -101
  30. package/fesm2022/ca-components.mjs.map +1 -1
  31. package/lib/components/ca-chart/ca-chart.component.d.ts +1 -0
  32. package/lib/components/ca-chart/enums/chart-colors.enum.d.ts +1 -0
  33. package/lib/components/ca-chart/enums/chart-event-properties.enum.d.ts +3 -1
  34. package/lib/components/ca-chart/enums/chart-font-properties.enum.d.ts +4 -0
  35. package/lib/components/ca-chart/enums/index.d.ts +1 -0
  36. package/lib/components/ca-chart/models/chart-base-dataset.model.d.ts +2 -1
  37. package/lib/components/ca-chart/models/chart-config.model.d.ts +2 -0
  38. package/lib/components/ca-chart/utils/helpers/chart.helper.d.ts +2 -3
  39. package/lib/components/ca-collapsible-filter/ca-collapsible-filter.component.d.ts +20 -0
  40. package/lib/components/ca-filters/ca-filter.component.d.ts +4 -1
  41. package/lib/components/ca-filters/pipes/filter-conditions-user-box.pipe.d.ts +2 -1
  42. package/lib/components/ca-input/config/ca-input.config.d.ts +1 -0
  43. package/lib/components/ca-progress-range/ca-progress-range.component.d.ts +14 -9
  44. package/lib/components/ca-progress-range/enums/index.d.ts +1 -0
  45. package/lib/components/ca-progress-range/enums/progress-range-tooltip-position.enum.d.ts +4 -0
  46. package/lib/components/ca-progress-range/models/index.d.ts +0 -1
  47. package/lib/components/ca-progress-range/utils/constants/ca-progress-range.constants.d.ts +5 -0
  48. package/lib/components/ca-progress-range/utils/directives/index.d.ts +3 -0
  49. package/lib/components/ca-progress-range/utils/directives/progress-range-svg.directive.d.ts +12 -0
  50. package/lib/components/ca-progress-range/utils/directives/progress-range-tooltip-arrow-position.directive.d.ts +14 -0
  51. package/lib/components/ca-progress-range/utils/directives/progress-range-tooltip.directive.d.ts +15 -0
  52. package/package.json +1 -1
  53. package/public-api.d.ts +1 -0
  54. package/src/assets/ca-components/svg/progress-range/progress-range-last-price-bar.svg +13 -6
  55. package/esm2022/lib/components/ca-progress-range/models/progress-range-data.model.mjs +0 -2
  56. package/lib/components/ca-progress-range/models/progress-range-data.model.d.ts +0 -8
@@ -15,6 +15,7 @@ export declare class CaChartComponent implements AfterViewInit {
15
15
  constructor();
16
16
  ngOnChanges(changes: SimpleChanges): void;
17
17
  ngAfterViewInit(): void;
18
+ private initializeAnnotationPlugin;
18
19
  updateDatasetBackgroundOnHover(dataSetLabel: string, color: string, isDatasetHovered: boolean): void;
19
20
  private createChart;
20
21
  private updateChart;
@@ -1,5 +1,6 @@
1
1
  export declare const enum ChartColorsStringEnum {
2
2
  WHITE = "#FFFFFF",
3
3
  HOVER_SEGMENT = "#EEEEEE",
4
+ X_AXIS_LABEL_COLOR = "#919191",
4
5
  TRANSPARENT = "transparent"
5
6
  }
@@ -1,3 +1,5 @@
1
1
  export declare enum ChartEventProperties {
2
- X = "x"
2
+ X = "x",
3
+ Y = "y",
4
+ Y_AXIS_0 = "y-axis-0"
3
5
  }
@@ -0,0 +1,4 @@
1
+ export declare enum ChartFontPropertiesStringEnum {
2
+ FONT_FAMILY_MONTSERRAT = "Montserrat",
3
+ FONT_WEIGHT_BOLDER = "bolder"
4
+ }
@@ -5,3 +5,4 @@ export * from './chart-plugin-ids.enum';
5
5
  export * from './chart-event-types.enum';
6
6
  export * from './chart-event-properties.enum';
7
7
  export * from './chart-images.enum';
8
+ export * from './chart-font-properties.enum';
@@ -1,12 +1,13 @@
1
1
  import { ChartTypeRegistry } from 'chart.js';
2
2
  export interface IBaseDataset {
3
3
  type: keyof ChartTypeRegistry;
4
+ order?: number;
4
5
  label: string;
5
6
  data: number[] | [number, number][];
6
7
  borderColor?: string;
7
8
  borderWidth?: number;
8
9
  backgroundColor?: string | CanvasGradient;
9
- color1?: string;
10
+ color?: string;
10
11
  colorEdgeValue?: number;
11
12
  color2?: string;
12
13
  fill?: boolean;
@@ -9,4 +9,6 @@ export interface IChartConfiguration {
9
9
  noDataImage: string;
10
10
  isMultiYAxis?: boolean;
11
11
  isStacked?: boolean;
12
+ showTooltipBackground?: boolean;
13
+ showXAxisLabels?: boolean;
12
14
  }
@@ -6,11 +6,10 @@ export declare class ChartHelper {
6
6
  static rgbToRgba(rgb: string | undefined, opacity: number): string;
7
7
  static calculateMinValue(data: number[]): number;
8
8
  static calculateMaxValue(data: number[]): number;
9
- static createGradient(chartContext: CanvasRenderingContext2D, chartCanvas: ElementRef, color1: string, color2: string): CanvasGradient;
10
- static createCustomGradient(chartContext: CanvasRenderingContext2D, chartCanvas: ElementRef, color1: string, color2: string, color1EdgeValue?: number, color2EdgeValue?: number): CanvasGradient | undefined;
9
+ static createGradient(chartContext: CanvasRenderingContext2D, chartCanvas: ElementRef, color: string, color2: string): CanvasGradient;
10
+ static createGradientWithShiftValue(chartContext: CanvasRenderingContext2D, chartCanvas: ElementRef, color: string, color2: string, shiftValue: number, hasFade?: boolean): CanvasGradient;
11
11
  static calculateTickPositions(xScale: CategoryScale | LinearScale): number[];
12
12
  static highlightSegment(ctx: CanvasRenderingContext2D, xScale: CategoryScale | LinearScale, chartArea: ChartArea, chartHeight: number, index: number): void;
13
13
  static highlightPoint(ctx: CanvasRenderingContext2D, chart: Chart, index: number, chartData: IChartData<IBaseDataset>): void;
14
14
  private static getSegmentPosition;
15
- static normalize(value: number, min: number, max: number): number | undefined;
16
15
  }
@@ -0,0 +1,20 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { ArrayStatus } from '../../models/array-status.model';
3
+ import { userSelected } from '../../models/user-selected.model';
4
+ import { filterOutput } from '../../models/filter-output.model';
5
+ import * as i0 from "@angular/core";
6
+ export declare class CaCollapsibleFilterComponent {
7
+ isExpanded: boolean;
8
+ filterArray: ArrayStatus[];
9
+ type: string;
10
+ onTagEmit: EventEmitter<Event>;
11
+ selectedFilterArray: ArrayStatus[];
12
+ trackByIndex(index: number): number;
13
+ addToSelectedUser(item: userSelected, event: Event): void;
14
+ removeFromSelectedUser(item: userSelected, event: Event): void;
15
+ onTagClick(event: Event, item: ArrayStatus): void;
16
+ setFilterValue(): filterOutput;
17
+ toggleExpand(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaCollapsibleFilterComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaCollapsibleFilterComponent, "app-ca-collapsible-filter", never, { "isExpanded": { "alias": "isExpanded"; "required": false; }; "filterArray": { "alias": "filterArray"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "onTagEmit": "onTagEmit"; }, never, never, true, never>;
20
+ }
@@ -18,6 +18,7 @@ import { CaLocationFilterComponent } from './components/ca-location-filter/ca-lo
18
18
  import { CaUserFilterComponent } from './components/ca-user-filter/ca-user-filter.component';
19
19
  import { CaAutoclosePopoverComponent } from '../ca-autoclose-popover/ca-autoclose-popover.component';
20
20
  import { CaViolationFilterComponent } from './components/ca-violation-filter/ca-violation-filter.component';
21
+ import { CaCollapsibleFilterComponent } from '../ca-collapsible-filter/ca-collapsible-filter.component';
21
22
  import * as i0 from "@angular/core";
22
23
  export declare class CaFilterComponent implements OnDestroy {
23
24
  private renderer;
@@ -31,6 +32,7 @@ export declare class CaFilterComponent implements OnDestroy {
31
32
  caTruckTypeFilter: CaTruckTypeFilterComponent;
32
33
  caTrailerTypeFilter: CaTrailerTypeFilterComponent;
33
34
  caPmFilter: CaPmFilterComponent;
35
+ caCollapsibleFilter: CaCollapsibleFilterComponent;
34
36
  caLocationFilter: CaLocationFilterComponent;
35
37
  caUserFilter: CaUserFilterComponent;
36
38
  caViolationFilter: CaViolationFilterComponent;
@@ -52,6 +54,7 @@ export declare class CaFilterComponent implements OnDestroy {
52
54
  isButtonFilter: boolean;
53
55
  isFuelType: boolean;
54
56
  isLoadType: boolean;
57
+ isCollapsibleFilter: boolean;
55
58
  filterTitle: string;
56
59
  icon: string;
57
60
  addressList: AddressList[];
@@ -84,5 +87,5 @@ export declare class CaFilterComponent implements OnDestroy {
84
87
  getSvgPath(propertyName: keyof typeof CaFiltersSvgRoutes): string;
85
88
  ngOnDestroy(): void;
86
89
  static ɵfac: i0.ɵɵFactoryDeclaration<CaFilterComponent, never>;
87
- static ɵcmp: i0.ɵɵComponentDeclaration<CaFilterComponent, "app-ca-filter", never, { "type": { "alias": "type"; "required": false; }; "timeSubType": { "alias": "timeSubType"; "required": false; }; "subType": { "alias": "subType"; "required": false; }; "unselectedUser": { "alias": "unselectedUser"; "required": false; }; "userGroup": { "alias": "userGroup"; "required": false; }; "loadStatusOptionsArray": { "alias": "loadStatusOptionsArray"; "required": false; }; "truckTypeArray": { "alias": "truckTypeArray"; "required": false; }; "trailerTypeArray": { "alias": "trailerTypeArray"; "required": false; }; "pmFilterArray": { "alias": "pmFilterArray"; "required": false; }; "isRepairFilter": { "alias": "isRepairFilter"; "required": false; }; "hasNoLeftIcon": { "alias": "hasNoLeftIcon"; "required": false; }; "hasLeftSideIcon": { "alias": "hasLeftSideIcon"; "required": false; }; "hasLargeLeftIcon": { "alias": "hasLargeLeftIcon"; "required": false; }; "isMoneyFilter": { "alias": "isMoneyFilter"; "required": false; }; "isMilesFilter": { "alias": "isMilesFilter"; "required": false; }; "isButtonFilter": { "alias": "isButtonFilter"; "required": false; }; "isFuelType": { "alias": "isFuelType"; "required": false; }; "isLoadType": { "alias": "isLoadType"; "required": false; }; "filterTitle": { "alias": "filterTitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "addressList": { "alias": "addressList"; "required": false; }; "usaStates": { "alias": "usaStates"; "required": false; }; "canadaStates": { "alias": "canadaStates"; "required": false; }; }, { "setFilter": "setFilter"; "clearAll": "clearAll"; }, never, never, true, never>;
90
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaFilterComponent, "app-ca-filter", never, { "type": { "alias": "type"; "required": false; }; "timeSubType": { "alias": "timeSubType"; "required": false; }; "subType": { "alias": "subType"; "required": false; }; "unselectedUser": { "alias": "unselectedUser"; "required": false; }; "userGroup": { "alias": "userGroup"; "required": false; }; "loadStatusOptionsArray": { "alias": "loadStatusOptionsArray"; "required": false; }; "truckTypeArray": { "alias": "truckTypeArray"; "required": false; }; "trailerTypeArray": { "alias": "trailerTypeArray"; "required": false; }; "pmFilterArray": { "alias": "pmFilterArray"; "required": false; }; "isRepairFilter": { "alias": "isRepairFilter"; "required": false; }; "hasNoLeftIcon": { "alias": "hasNoLeftIcon"; "required": false; }; "hasLeftSideIcon": { "alias": "hasLeftSideIcon"; "required": false; }; "hasLargeLeftIcon": { "alias": "hasLargeLeftIcon"; "required": false; }; "isMoneyFilter": { "alias": "isMoneyFilter"; "required": false; }; "isMilesFilter": { "alias": "isMilesFilter"; "required": false; }; "isButtonFilter": { "alias": "isButtonFilter"; "required": false; }; "isFuelType": { "alias": "isFuelType"; "required": false; }; "isLoadType": { "alias": "isLoadType"; "required": false; }; "isCollapsibleFilter": { "alias": "isCollapsibleFilter"; "required": false; }; "filterTitle": { "alias": "filterTitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "addressList": { "alias": "addressList"; "required": false; }; "usaStates": { "alias": "usaStates"; "required": false; }; "canadaStates": { "alias": "canadaStates"; "required": false; }; }, { "setFilter": "setFilter"; "clearAll": "clearAll"; }, never, never, true, never>;
88
91
  }
@@ -2,9 +2,10 @@ import { PipeTransform } from '@angular/core';
2
2
  import { CaTruckTypeFilterComponent } from '../components/ca-truck-type-filter/ca-truck-type-filter.component';
3
3
  import { CaTrailerTypeFilterComponent } from '../components/ca-trailer-type-filter/ca-trailer-type-filter.component';
4
4
  import { CaPmFilterComponent } from '../components/ca-pm-filter/ca-pm-filter.component';
5
+ import { CaStatusFilterComponent } from '../components/ca-status-filter/ca-status-filter.component';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class FilterConditionsUserBoxPipe implements PipeTransform {
7
- transform(type: string, caTruckTypeFilter: CaTruckTypeFilterComponent, caTrailerTypeFilter: CaTrailerTypeFilterComponent, caPmFilter: CaPmFilterComponent): boolean | number;
8
+ transform(type: string, caTruckTypeFilter: CaTruckTypeFilterComponent, caTrailerTypeFilter: CaTrailerTypeFilterComponent, caStatusFilter: CaStatusFilterComponent, caPmFilter: CaPmFilterComponent): boolean | number;
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<FilterConditionsUserBoxPipe, never>;
9
10
  static ɵpipe: i0.ɵɵPipeDeclaration<FilterConditionsUserBoxPipe, "filterConditionsUserBox", true>;
10
11
  }
@@ -21,6 +21,7 @@ export interface ICaInput {
21
21
  placeholder?: string;
22
22
  placeholderIcon?: string;
23
23
  placeholderIconRightSide?: string;
24
+ isPlaceHolderIconRightSideDynamicColor?: boolean;
24
25
  placeholderIconFolllowTextOnRightSide?: string;
25
26
  placeholderIconColor?: string;
26
27
  placeholderText?: string;
@@ -1,18 +1,23 @@
1
- import { eProgressRangeUnit } from './enums';
1
+ import { Renderer2 } from '@angular/core';
2
+ import { eProgressRangeUnit, eProgressRangeTooltipPosition } from './enums';
2
3
  import { CaProgressRangeSvgRoutes } from './utils/svg-routes';
3
- import { IProgressRangeData, IProgressRangeLastPriceItem } from './models';
4
+ import { IProgressRangeLastPriceItem } from './models';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class CaProgressRangeComponent {
6
- set data(param: IProgressRangeData);
7
- svgRoutes: typeof CaProgressRangeSvgRoutes;
8
- priceRangeItem: IProgressRangeLastPriceItem;
7
+ private renderer;
9
8
  startRange: number;
10
9
  endRange: number;
11
- value: number | null;
12
10
  unit: eProgressRangeUnit;
13
- private lastUsed;
14
- constructor();
11
+ lastUsed: string;
12
+ widthPx: number;
13
+ gapPx: number;
14
+ tooltipPosition: eProgressRangeTooltipPosition;
15
+ set value(_value: number | null | undefined);
16
+ svgRoutes: typeof CaProgressRangeSvgRoutes;
17
+ priceRangeItem: IProgressRangeLastPriceItem;
18
+ _value: number | null | undefined;
19
+ constructor(renderer: Renderer2);
15
20
  private calculatePriceRange;
16
21
  static ɵfac: i0.ɵɵFactoryDeclaration<CaProgressRangeComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<CaProgressRangeComponent, "app-ca-progress-range", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaProgressRangeComponent, "app-ca-progress-range", never, { "startRange": { "alias": "startRange"; "required": false; }; "endRange": { "alias": "endRange"; "required": false; }; "unit": { "alias": "unit"; "required": false; }; "lastUsed": { "alias": "lastUsed"; "required": false; }; "widthPx": { "alias": "widthPx"; "required": false; }; "gapPx": { "alias": "gapPx"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>;
18
23
  }
@@ -1,2 +1,3 @@
1
1
  export * from './progress-range-price.enum';
2
2
  export * from './progress-range-unit.enum';
3
+ export * from './progress-range-tooltip-position.enum';
@@ -0,0 +1,4 @@
1
+ export declare enum eProgressRangeTooltipPosition {
2
+ Left = 1,
3
+ Right = 2
4
+ }
@@ -1,2 +1 @@
1
1
  export * from './progress-range-last-price-item.model';
2
- export * from './progress-range-data.model';
@@ -12,5 +12,10 @@ export declare class CaProgressRangeConstants {
12
12
  static CLASS_CIRCLE_MOST_EXPENSIVE: string;
13
13
  static CLASS_CIRCLE_EXPIRED_NO_VALUE: string;
14
14
  static DAYS_WEEK: number;
15
+ static TOOLTIP_WIDTH_DEFAULT: number;
16
+ static STYLE_LEFT: string;
17
+ static STYLE_WIDTH: string;
18
+ static ATTRIBUTE_VIEW_BOX: string;
19
+ static ATTRIBUTE_X: string;
15
20
  static PROGRESS_RANGE_LAST_PRICE_ITEMS: IProgressRangeLastPriceItem[];
16
21
  }
@@ -0,0 +1,3 @@
1
+ export * from './progress-range-tooltip.directive';
2
+ export * from './progress-range-tooltip-arrow-position.directive';
3
+ export * from './progress-range-svg.directive';
@@ -0,0 +1,12 @@
1
+ import { AfterViewInit, ElementRef, Renderer2 } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class ProgressRangeSvgDirective implements AfterViewInit {
4
+ private elementRef;
5
+ private renderer;
6
+ widthPx: number;
7
+ constructor(elementRef: ElementRef, renderer: Renderer2);
8
+ ngAfterViewInit(): void;
9
+ private setDisplay;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgressRangeSvgDirective, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ProgressRangeSvgDirective, "[rangeSvg]", never, { "widthPx": { "alias": "widthPx"; "required": false; }; }, {}, never, never, true, never>;
12
+ }
@@ -0,0 +1,14 @@
1
+ import { AfterViewInit, ElementRef, Renderer2 } from "@angular/core";
2
+ import { eProgressRangePrice } from "../../enums";
3
+ import * as i0 from "@angular/core";
4
+ export declare class ProgressRangeTooltipArrowPositionDirective implements AfterViewInit {
5
+ private elementRef;
6
+ private renderer;
7
+ containerWidthPx: number;
8
+ progressRangePrice: eProgressRangePrice;
9
+ constructor(elementRef: ElementRef<HTMLElement>, renderer: Renderer2);
10
+ ngAfterViewInit(): void;
11
+ private setDisplay;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgressRangeTooltipArrowPositionDirective, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ProgressRangeTooltipArrowPositionDirective, "[arrowPosition]", never, { "containerWidthPx": { "alias": "containerWidthPx"; "required": false; }; "progressRangePrice": { "alias": "progressRangePrice"; "required": false; }; }, {}, never, never, true, never>;
14
+ }
@@ -0,0 +1,15 @@
1
+ import { AfterViewInit, ElementRef, Renderer2 } from "@angular/core";
2
+ import { eProgressRangeTooltipPosition } from "../../enums";
3
+ import * as i0 from "@angular/core";
4
+ export declare class ProgressRangeTooltipDirective implements AfterViewInit {
5
+ private elementRef;
6
+ private renderer;
7
+ widthPx: number;
8
+ gapPx: number;
9
+ tooltipPosition: eProgressRangeTooltipPosition;
10
+ constructor(elementRef: ElementRef<HTMLDivElement>, renderer: Renderer2);
11
+ ngAfterViewInit(): void;
12
+ private setDisplay;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgressRangeTooltipDirective, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ProgressRangeTooltipDirective, "[progressRangeTooltip]", never, { "widthPx": { "alias": "widthPx"; "required": false; }; "gapPx": { "alias": "gapPx"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; }, {}, never, never, true, never>;
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ca-components",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.2.0",
6
6
  "@angular/core": "^16.2.0",
package/public-api.d.ts CHANGED
@@ -41,6 +41,7 @@ export * from './lib/components/ca-chart/enums';
41
41
  export * from './lib/components/ca-right-side-panel/components/ca-right-side-panel-company/ca-right-side-panel-company.component';
42
42
  export * from './lib/components/ca-map/utils/helpers';
43
43
  export * from './lib/components/ca-progress-range/ca-progress-range.component';
44
+ export * from './lib/components/ca-progress-range/enums';
44
45
  export * from './lib/components/ca-tooltip-list/ca-tooltip-list.component';
45
46
  export * from './lib/models';
46
47
  export * from './lib/components/ca-period-content/enums';
@@ -1,7 +1,14 @@
1
- <svg width="120" height="4" viewBox="0 0 110 4" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M0 1C0 0.447715 0.447715 0 1 0H22V4H1C0.447716 4 0 3.55228 0 3V1Z" fill="#56B4AC"/>
3
- <rect x="22" width="22" height="4" fill="#77BF56"/>
4
- <rect x="44" width="22" height="4" fill="#FAB15C"/>
5
- <rect x="66" width="22" height="4" fill="#FF906D"/>
6
- <path d="M88 0H109C109.552 0 110 0.447715 110 1V3C110 3.55228 109.552 4 109 4H88V0Z" fill="#E66767"/>
1
+ <svg height="4" fill="none" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet">
2
+ <!-- <path d="M0 1C0 0.447715 0.447715 0 1 0H22V4H1C0.447716 4 0 3.55228 0 3V1Z" fill="#56B4AC"/> -->
3
+ <!-- <rect width="44" height="4" fill="#56B4AC"/>
4
+ <rect x="44" width="44" height="4" fill="#77BF56"/>
5
+ <rect x="88" width="44" height="4" fill="#FAB15C"/>
6
+ <rect x="132" width="44" height="4" fill="#FF906D"/>
7
+ <rect x="176" width="44" height="4" fill="#E66767"/> -->
8
+ <rect height="4" fill="#56B4AC"/>
9
+ <rect height="4" fill="#77BF56"/>
10
+ <rect height="4" fill="#FAB15C"/>
11
+ <rect height="4" fill="#FF906D"/>
12
+ <rect height="4" fill="#E66767"/>
13
+ <!-- <path d="M88 0H109C109.552 0 110 0.447715 110 1V3C110 3.55228 109.552 4 109 4H88V0Z" fill="#E66767"/> -->
7
14
  </svg>
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3MtcmFuZ2UtZGF0YS5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2NhLXByb2dyZXNzLXJhbmdlL21vZGVscy9wcm9ncmVzcy1yYW5nZS1kYXRhLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBlUHJvZ3Jlc3NSYW5nZVVuaXQgfSBmcm9tIFwiLi4vZW51bXNcIjtcblxuZXhwb3J0IGludGVyZmFjZSBJUHJvZ3Jlc3NSYW5nZURhdGEge1xuICAgIHN0YXJ0UmFuZ2U6IG51bWJlcjtcbiAgICBlbmRSYW5nZTogbnVtYmVyO1xuICAgIHZhbHVlOiBudW1iZXIgfCBudWxsO1xuICAgIHVuaXQ6IGVQcm9ncmVzc1JhbmdlVW5pdDtcbiAgICBsYXN0VXNlZDogc3RyaW5nO1xufSJdfQ==
@@ -1,8 +0,0 @@
1
- import { eProgressRangeUnit } from "../enums";
2
- export interface IProgressRangeData {
3
- startRange: number;
4
- endRange: number;
5
- value: number | null;
6
- unit: eProgressRangeUnit;
7
- lastUsed: string;
8
- }