ca-components 1.0.47 → 1.0.49

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 (29) hide show
  1. package/esm2022/lib/components/ca-chart/ca-chart.component.mjs +1 -1
  2. package/esm2022/lib/components/ca-chart/models/chart-config.model.mjs +1 -1
  3. package/esm2022/lib/components/ca-period-content/ca-period-content.component.mjs +4 -4
  4. package/esm2022/lib/components/ca-pickup-delivery-block/ca-pickup-delivery-block.component.mjs +3 -3
  5. package/esm2022/lib/components/ca-search-multiple-states/ca-search-multiple-states.component.mjs +2 -3
  6. package/esm2022/lib/components/ca-sort-dropdown/ca-sort-dropdown.component.mjs +99 -0
  7. package/esm2022/lib/components/ca-sort-dropdown/enums/index.mjs +2 -0
  8. package/esm2022/lib/components/ca-sort-dropdown/enums/sort-dropdown.enum.mjs +12 -0
  9. package/esm2022/lib/components/ca-sort-dropdown/models/index.mjs +2 -0
  10. package/esm2022/lib/components/ca-sort-dropdown/models/sort-column.model.mjs +2 -0
  11. package/esm2022/lib/components/ca-sort-dropdown/utils/svg-routes/ca-sort-dropdown-svg-routes.mjs +6 -0
  12. package/esm2022/lib/components/ca-sort-dropdown/utils/svg-routes/index.mjs +2 -0
  13. package/esm2022/public-api.mjs +4 -1
  14. package/fesm2022/ca-components.mjs +107 -7
  15. package/fesm2022/ca-components.mjs.map +1 -1
  16. package/lib/components/ca-chart/ca-chart.component.d.ts +3 -3
  17. package/lib/components/ca-chart/models/chart-config.model.d.ts +1 -1
  18. package/lib/components/ca-filters/ca-filter.component.d.ts +2 -2
  19. package/lib/components/ca-sort-dropdown/ca-sort-dropdown.component.d.ts +28 -0
  20. package/lib/components/ca-sort-dropdown/enums/index.d.ts +1 -0
  21. package/lib/components/ca-sort-dropdown/enums/sort-dropdown.enum.d.ts +8 -0
  22. package/lib/components/ca-sort-dropdown/models/index.d.ts +1 -0
  23. package/lib/components/ca-sort-dropdown/models/sort-column.model.d.ts +5 -0
  24. package/lib/components/ca-sort-dropdown/utils/svg-routes/ca-sort-dropdown-svg-routes.d.ts +5 -0
  25. package/lib/components/ca-sort-dropdown/utils/svg-routes/index.d.ts +1 -0
  26. package/package.json +1 -1
  27. package/public-api.d.ts +3 -0
  28. package/src/assets/ca-components/svg/common/ic_arrow_sort.svg +3 -0
  29. package/src/assets/ca-components/svg/common/ic_checkmark.svg +3 -0
@@ -1,16 +1,16 @@
1
1
  import { AfterViewInit, ElementRef, SimpleChanges } from '@angular/core';
2
- import { IChartConfiguaration } from './models';
2
+ import { IChartConfiguration } from './models';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class CaChartComponent implements AfterViewInit {
5
5
  chartCanvas: ElementRef;
6
- set chartConfig(value: IChartConfiguaration);
6
+ set chartConfig(value: IChartConfiguration);
7
7
  set isDatasetHovered(value: boolean);
8
8
  private chart;
9
9
  private chartContext;
10
10
  private plugins?;
11
11
  private _isDatasetHovered;
12
12
  private originalChartDataset;
13
- _chartConfig: IChartConfiguaration;
13
+ _chartConfig: IChartConfiguration;
14
14
  isChartDataAvailable: boolean;
15
15
  constructor();
16
16
  ngOnChanges(changes: SimpleChanges): void;
@@ -1,6 +1,6 @@
1
1
  import { ChartOptions, ChartType } from 'chart.js';
2
2
  import { IBaseDataset, IChartData } from '../models';
3
- export interface IChartConfiguaration {
3
+ export interface IChartConfiguration {
4
4
  chartType: ChartType;
5
5
  chartData: IChartData<IBaseDataset>;
6
6
  chartOptions: ChartOptions;
@@ -57,8 +57,8 @@ export declare class CaFilterComponent implements OnDestroy {
57
57
  addressList: AddressList[];
58
58
  usaStates: ArrayStatus[];
59
59
  canadaStates: ArrayStatus[];
60
- setFilter: EventEmitter<filterOutput | filterOutputWithParams>;
61
- clearAll: EventEmitter<filterOutput | filterOutputWithParams>;
60
+ setFilter: EventEmitter<filterOutputWithParams | filterOutput>;
61
+ clearAll: EventEmitter<filterOutputWithParams | filterOutput>;
62
62
  private destroy$;
63
63
  isSearchExpanded: boolean;
64
64
  isFilterActive: boolean;
@@ -0,0 +1,28 @@
1
+ import { OnDestroy, EventEmitter } from '@angular/core';
2
+ import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
3
+ import { SortDropdownSvgRoutes } from './utils/svg-routes';
4
+ import { SortColumn } from './models';
5
+ import * as i0 from "@angular/core";
6
+ export declare class CaSortDropdownComponent implements OnDestroy {
7
+ set sortColumns(values: SortColumn[]);
8
+ activeSortColumn: SortColumn | null;
9
+ dropdownPosition: string;
10
+ dropdownWidth: number;
11
+ onSortChange: EventEmitter<{
12
+ column: SortColumn | null;
13
+ sortName: string;
14
+ }>;
15
+ private destroy$;
16
+ sortDropdownSvgRoutes: typeof SortDropdownSvgRoutes;
17
+ sortDirection: string;
18
+ sortDirectionsRotate: any;
19
+ sortDropdownPopover: NgbPopover | null;
20
+ isDropdownOpen: boolean;
21
+ _sortColumns: SortColumn[];
22
+ sortDirectionChange(): void;
23
+ sortChangeEvent(column?: SortColumn): void;
24
+ openClosePopover(popover: NgbPopover): void;
25
+ ngOnDestroy(): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaSortDropdownComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaSortDropdownComponent, "app-ca-sort-dropdown", never, { "sortColumns": { "alias": "sortColumns"; "required": false; }; "activeSortColumn": { "alias": "activeSortColumn"; "required": false; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; }; "dropdownWidth": { "alias": "dropdownWidth"; "required": false; }; }, { "onSortChange": "onSortChange"; }, never, never, true, never>;
28
+ }
@@ -0,0 +1 @@
1
+ export * from './sort-dropdown.enum';
@@ -0,0 +1,8 @@
1
+ export declare enum SortDropdownEnum {
2
+ DESC = "desc",
3
+ ASC = "asc",
4
+ TOP = "top",
5
+ BOTTOM = "bottom",
6
+ RIGHT = "right",
7
+ RIGHT_TOP = "right-top"
8
+ }
@@ -0,0 +1 @@
1
+ export * from './sort-column.model';
@@ -0,0 +1,5 @@
1
+ export interface SortColumn {
2
+ name: string;
3
+ sortName: string;
4
+ isDisabled?: boolean;
5
+ }
@@ -0,0 +1,5 @@
1
+ export declare class SortDropdownSvgRoutes {
2
+ static sortDropArrowRoute: string;
3
+ static sortDirectionRoute: string;
4
+ static checkRoute: string;
5
+ }
@@ -0,0 +1 @@
1
+ export * from './ca-sort-dropdown-svg-routes';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ca-components",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.2.0",
6
6
  "@angular/core": "^16.2.0",
package/public-api.d.ts CHANGED
@@ -45,3 +45,6 @@ export * from './lib/components/ca-tooltip-list/ca-tooltip-list.component';
45
45
  export * from './lib/models';
46
46
  export * from './lib/components/ca-period-content/enums';
47
47
  export * from './lib/components/ca-map/utils/constants';
48
+ export * from './lib/components/ca-sort-dropdown/ca-sort-dropdown.component';
49
+ export * from './lib/components/ca-sort-dropdown/models';
50
+ export * from './lib/components/ca-sort-dropdown/enums';
@@ -0,0 +1,3 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M7.42659 14.0266H6.11462V2.66227C6.11462 2.48662 6.04148 2.31819 5.91121 2.19399C5.78095 2.06979 5.60425 2 5.42003 2H3.52844C3.34421 2 3.16752 2.06979 3.03726 2.19399C2.90699 2.31819 2.83385 2.48662 2.83385 2.66227V14.0266H1.52188C1.42001 14.0263 1.3203 14.0546 1.23511 14.1079C1.14992 14.1612 1.083 14.2371 1.04262 14.3263C1.00224 14.4155 0.990221 14.514 1.00798 14.6096C1.02575 14.7053 1.07252 14.7938 1.14256 14.8644L4.09187 17.8451C4.18693 17.9405 4.31779 17.9962 4.4558 17.9998C4.59381 18.0034 4.72773 17.9548 4.82817 17.8645L4.84952 17.8451L7.79877 14.8644C7.86828 14.7937 7.91469 14.7053 7.93223 14.6099C7.94976 14.5145 7.9377 14.4162 7.89753 14.3273C7.85736 14.2383 7.79078 14.1625 7.70604 14.1091C7.6213 14.0557 7.52203 14.027 7.42044 14.0266H7.42659ZM16.0476 8.6712H9.87652C9.71999 8.67146 9.56993 8.73093 9.45934 8.83656C9.34875 8.94218 9.28665 9.08531 9.28665 9.23456V10.7666C9.28665 10.9159 9.34875 11.059 9.45934 11.1646C9.56993 11.2703 9.71999 11.3297 9.87652 11.33H16.0476C16.2044 11.33 16.3546 11.2706 16.4655 11.165C16.5763 11.0593 16.6385 10.916 16.6385 10.7666V9.23456C16.638 9.08565 16.5756 8.943 16.4651 8.8378C16.3546 8.73259 16.2048 8.67339 16.0486 8.67314L16.0476 8.6712ZM18.4101 4.07311H9.87652C9.71999 4.07337 9.56993 4.13285 9.45934 4.23847C9.34875 4.34409 9.28665 4.48724 9.28665 4.63649V6.16854C9.28665 6.31778 9.34875 6.46093 9.45934 6.56656C9.56993 6.67218 9.71999 6.73164 9.87652 6.7319H18.4101C18.5667 6.73164 18.7167 6.67218 18.8273 6.56656C18.9378 6.46093 19 6.31778 19 6.16854V4.63649C18.9995 4.48775 18.9373 4.34525 18.8269 4.24007C18.7166 4.13489 18.5671 4.07556 18.4111 4.07505L18.4101 4.07311ZM13.6852 13.2693H9.87652C9.71999 13.2695 9.56993 13.329 9.45934 13.4346C9.34875 13.5403 9.28665 13.6834 9.28665 13.8327V15.3647C9.28665 15.5139 9.34875 15.6571 9.45934 15.7627C9.56993 15.8684 9.71999 15.9278 9.87652 15.9281H13.6882C13.7658 15.9281 13.8427 15.9135 13.9143 15.8852C13.986 15.8569 14.0512 15.8154 14.106 15.7631C14.1609 15.7107 14.2044 15.6487 14.2341 15.5803C14.2638 15.5119 14.2791 15.4387 14.2791 15.3647V13.8327C14.2783 13.6838 14.2157 13.5412 14.105 13.4362C13.9942 13.3311 13.8444 13.2722 13.6882 13.2722L13.6852 13.2693Z" fill="black"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="18" height="14" viewBox="0 0 18 14" fill="none">
2
+ <path d="M6.06937 13.0716L1.06937 8.07158C0.985768 7.98801 0.919448 7.88878 0.874201 7.77957C0.828953 7.67035 0.805664 7.5533 0.805664 7.43508C0.805664 7.31687 0.828953 7.19981 0.874201 7.0906C0.919448 6.98139 0.985768 6.88216 1.06937 6.79858L2.34437 5.52758C2.42795 5.44398 2.52718 5.37766 2.63639 5.33241C2.7456 5.28716 2.86266 5.26388 2.98087 5.26388C3.09909 5.26388 3.21614 5.28716 3.32536 5.33241C3.43457 5.37766 3.5338 5.44398 3.61737 5.52758L6.70537 8.61558L14.3804 0.935583C14.4639 0.851979 14.5632 0.785659 14.6724 0.740412C14.7816 0.695164 14.8987 0.671875 15.0169 0.671875C15.1351 0.671875 15.2521 0.695164 15.3614 0.740412C15.4706 0.785659 15.5698 0.851979 15.6534 0.935583L16.9264 2.20858C17.01 2.29216 17.0763 2.39139 17.1215 2.5006C17.1668 2.60981 17.1901 2.72687 17.1901 2.84508C17.1901 2.9633 17.1668 3.08035 17.1215 3.18957C17.0763 3.29878 17.01 3.39801 16.9264 3.48158L7.34237 13.0676C7.2588 13.1512 7.15957 13.2175 7.05035 13.2628C6.94114 13.308 6.82409 13.3313 6.70587 13.3313C6.58766 13.3313 6.4706 13.308 6.36139 13.2628C6.25218 13.2175 6.15295 13.1512 6.06937 13.0676V13.0716Z" fill="#56B4AC"/>
3
+ </svg>