ca-components 1.3.34 → 1.3.35
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 +44 -0
- package/assets/scss/border-radius.scss +17 -0
- package/assets/scss/filters.scss +151 -0
- package/assets/scss/icons.scss +39 -0
- package/assets/scss/spacing.scss +59 -0
- package/assets/scss/styles.scss +22 -1
- package/assets/scss/text-selection.scss +15 -0
- package/assets/theme/variables.scss +1 -1
- package/esm2022/lib/ca-components.module.mjs +25 -1
- package/esm2022/lib/components/ca-activity-log-list/ca-activity-log-list.component.mjs +3 -3
- package/esm2022/lib/components/ca-autoclose-popover/ca-autoclose-popover.component.mjs +6 -3
- package/esm2022/lib/components/ca-checkbox/ca-checkbox.component.mjs +2 -2
- package/esm2022/lib/components/ca-collapsible-filter/ca-collapsible-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-comment/ca-comment.component.mjs +2 -2
- package/esm2022/lib/components/ca-comment/modals/comment-modal/comment-modal.component.mjs +3 -3
- package/esm2022/lib/components/ca-custom-scrollbar/ca-custom-scrollbar.component.mjs +3 -3
- package/esm2022/lib/components/ca-details-dropdown/ca-details-dropdown.component.mjs +2 -2
- package/esm2022/lib/components/ca-dropdown-menu/ca-dropdown-menu.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/ca-filter.component.mjs +4 -4
- package/esm2022/lib/components/ca-filters/components/ca-dispatcher-filter/ca-dispatcher-filter.component.mjs +3 -3
- package/esm2022/lib/components/ca-filters/components/ca-location-filter/ca-location-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/components/ca-money-filter/ca-money-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/components/ca-pm-filter/ca-pm-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/components/ca-state-filter/ca-state-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/components/ca-status-filter/ca-status-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/components/ca-time-filter/ca-time-filter.component.mjs +4 -4
- package/esm2022/lib/components/ca-filters/components/ca-trailer-type-filter/ca-trailer-type-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/components/ca-truck-type-filter/ca-truck-type-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/components/ca-user-filter/ca-user-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/components/ca-violation-filter/ca-violation-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/pipes/index.mjs +7 -0
- package/esm2022/lib/components/ca-filters/utils/helpers/index.mjs +2 -1
- package/esm2022/lib/components/ca-filters/utils/helpers/time-filter.helper.mjs +117 -0
- package/esm2022/lib/components/ca-filters/utils/svg-routes/index.mjs +2 -0
- package/esm2022/lib/components/ca-input/ca-input.component.mjs +2 -2
- package/esm2022/lib/components/ca-input/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.mjs +3 -3
- package/esm2022/lib/components/ca-input/input-test/input-test.component.mjs +2 -2
- package/esm2022/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.mjs +2 -2
- package/esm2022/lib/components/ca-input-datetime-picker/ca-input-datetime-picker.component.mjs +2 -2
- package/esm2022/lib/components/ca-input-dropdown/ca-input-dropdown.component.mjs +2 -2
- package/esm2022/lib/components/ca-input-note/ca-input-note.component.mjs +2 -2
- package/esm2022/lib/components/ca-logo-change/ca-logo-change.component.mjs +3 -3
- package/esm2022/lib/components/ca-map/ca-map.component.mjs +2 -2
- package/esm2022/lib/components/ca-map-dropdown/ca-map-dropdown.component.mjs +2 -2
- package/esm2022/lib/components/ca-modal/ca-modal.component.mjs +2 -2
- package/esm2022/lib/components/ca-modal-button/ca-modal-button.component.mjs +3 -3
- package/esm2022/lib/components/ca-new-filter/ca-filter-dropdown.component.mjs +98 -0
- package/esm2022/lib/components/ca-new-filter/components/ca-filter-list-dropdown/ca-filter-list-dropdown.component.mjs +142 -0
- package/esm2022/lib/components/ca-new-filter/components/ca-filter-state-dropdown/ca-filter-state-dropdown.component.mjs +131 -0
- package/esm2022/lib/components/ca-new-filter/components/ca-filter-time-dropdown/ca-filter-time-dropdown.component.mjs +131 -0
- package/esm2022/lib/components/ca-new-filter/constant/filter-dropdown-icons.constant.mjs +87 -0
- package/esm2022/lib/components/ca-new-filter/constant/index.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/enums/filter-dropdown-types.enum.mjs +15 -0
- package/esm2022/lib/components/ca-new-filter/enums/filter-sorting-key.enum.mjs +6 -0
- package/esm2022/lib/components/ca-new-filter/enums/filter-time.enum.mjs +37 -0
- package/esm2022/lib/components/ca-new-filter/enums/index.mjs +4 -0
- package/esm2022/lib/components/ca-new-filter/interface/country.interface.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/interface/filter-action.interface.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/interface/filter-dropdown-configuration.interface.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/interface/filter-dropdown-list.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/interface/index.mjs +7 -0
- package/esm2022/lib/components/ca-new-filter/interface/sorting-emmiter.interface.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/interface/time-options.interface.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/pipes/filter-search.pipe.mjs +31 -0
- package/esm2022/lib/components/ca-new-filter/types/filter-dropdown.types.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/types/filter-sorting-key.type.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/types/filter-time.types.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/types/index.mjs +4 -0
- package/esm2022/lib/components/ca-new-filter/utils/configs/filter-dropdown-fields.config.mjs +37 -0
- package/esm2022/lib/components/ca-new-filter/utils/configs/index.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/utils/helpers/index.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/utils/helpers/time-filter.helper.mjs +133 -0
- package/esm2022/lib/components/ca-ngx-slider/ca-ngx-slider.component.mjs +2 -2
- package/esm2022/lib/components/ca-note/ca-note.component.mjs +2 -2
- package/esm2022/lib/components/ca-note-container/ca-note-container.component.mjs +2 -2
- package/esm2022/lib/components/ca-payroll-list-summary-overview/ca-payroll-list-summary-overview.component.mjs +2 -2
- package/esm2022/lib/components/ca-period-content/ca-period-content.component.mjs +2 -2
- package/esm2022/lib/components/ca-period-content/components/ca-period-content-extra-info/ca-period-content-extra-info.component.mjs +3 -3
- package/esm2022/lib/components/ca-period-content/components/ca-period-content-payment/ca-period-content-payment.component.mjs +2 -2
- package/esm2022/lib/components/ca-period-content/components/ca-period-content-user-info/ca-period-content-user-info.component.mjs +3 -3
- package/esm2022/lib/components/ca-pickup-delivery-block/ca-pickup-delivery-block.component.mjs +3 -3
- package/esm2022/lib/components/ca-pickup-delivery-block/components/ca-load/ca-load.component.mjs +3 -3
- package/esm2022/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-list/ca-load-list.component.mjs +3 -3
- package/esm2022/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-single/ca-load-single.component.mjs +3 -3
- package/esm2022/lib/components/ca-profile-image/ca-profile-image.component.mjs +3 -3
- package/esm2022/lib/components/ca-progress-bar/ca-progress-bar.component.mjs +2 -2
- package/esm2022/lib/components/ca-progress-expiration/ca-progress-expiration.component.mjs +2 -2
- package/esm2022/lib/components/ca-rating-review/ca-rating-review.component.mjs +2 -2
- package/esm2022/lib/components/ca-rating-review/components/ca-rating-review-user/ca-rating-review-user.component.mjs +2 -2
- package/esm2022/lib/components/ca-rating-review/components/ca-ratings-reviews-popup/ca-ratings-reviews-popup.component.mjs +2 -2
- package/esm2022/lib/components/ca-right-side-panel/components/ca-right-side-panel-company/ca-right-side-panel-company.component.mjs +3 -3
- package/esm2022/lib/components/ca-right-side-panel/components/ca-right-side-panel-menu/ca-right-side-panel-menu.component.mjs +3 -3
- package/esm2022/lib/components/ca-right-side-panel/components/ca-right-side-panel-top-bar/ca-right-side-panel-top-bar.component.mjs +3 -3
- package/esm2022/lib/components/ca-search-multiple-states/ca-search-multiple-states.component.mjs +3 -3
- package/esm2022/lib/components/ca-search-multiple-states/models/tab-data.model.mjs +1 -1
- package/esm2022/lib/components/ca-sort-dropdown/ca-sort-dropdown.component.mjs +21 -8
- package/esm2022/lib/components/ca-sort-dropdown/types/index.mjs +2 -0
- package/esm2022/lib/components/ca-sort-dropdown/types/sort-directions.type.mjs +2 -0
- package/esm2022/lib/components/ca-sort-dropdown/utils/svg-routes/ca-sort-dropdown-svg-routes.mjs +3 -2
- package/esm2022/lib/components/ca-spinner/ca-spinner.component.mjs +2 -2
- package/esm2022/lib/components/ca-tab-switch/ca-tab-switch.component.mjs +3 -3
- package/esm2022/lib/components/ca-todo/ca-todo.component.mjs +3 -3
- package/esm2022/lib/components/ca-todo/components/ca-todo-card.component.mjs +3 -3
- package/esm2022/lib/components/ca-tooltip-list/ca-tooltip-list.component.mjs +3 -3
- package/esm2022/lib/components/ca-truck-trailer-progress-bar/ca-truck-trailer-progress-bar.component.mjs +2 -2
- package/esm2022/lib/components/ca-upload-files/ca-upload-files.component.mjs +3 -3
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.mjs +3 -3
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.mjs +2 -2
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component.mjs +3 -3
- package/esm2022/public-api.mjs +8 -1
- package/fesm2022/ca-components.mjs +1093 -276
- package/fesm2022/ca-components.mjs.map +1 -1
- package/lib/ca-components.module.d.ts +38 -34
- package/lib/components/ca-autoclose-popover/ca-autoclose-popover.component.d.ts +2 -1
- package/lib/components/ca-filters/pipes/index.d.ts +6 -0
- package/lib/components/ca-filters/utils/helpers/index.d.ts +1 -0
- package/lib/components/ca-filters/utils/{constants/time-filter.constants.d.ts → helpers/time-filter.helper.d.ts} +14 -2
- package/lib/components/ca-filters/utils/svg-routes/index.d.ts +1 -0
- package/lib/components/ca-new-filter/ca-filter-dropdown.component.d.ts +35 -0
- package/lib/components/ca-new-filter/components/ca-filter-list-dropdown/ca-filter-list-dropdown.component.d.ts +43 -0
- package/lib/components/ca-new-filter/components/ca-filter-state-dropdown/ca-filter-state-dropdown.component.d.ts +35 -0
- package/lib/components/ca-new-filter/components/ca-filter-time-dropdown/ca-filter-time-dropdown.component.d.ts +43 -0
- package/lib/components/ca-new-filter/constant/filter-dropdown-icons.constant.d.ts +3 -0
- package/lib/components/ca-new-filter/constant/index.d.ts +1 -0
- package/lib/components/ca-new-filter/enums/filter-dropdown-types.enum.d.ts +13 -0
- package/lib/components/ca-new-filter/enums/filter-sorting-key.enum.d.ts +4 -0
- package/lib/components/ca-new-filter/enums/filter-time.enum.d.ts +35 -0
- package/lib/components/ca-new-filter/enums/index.d.ts +3 -0
- package/lib/components/ca-new-filter/interface/country.interface.d.ts +13 -0
- package/lib/components/ca-new-filter/interface/filter-action.interface.d.ts +18 -0
- package/lib/components/ca-new-filter/interface/filter-dropdown-configuration.interface.d.ts +13 -0
- package/lib/components/ca-new-filter/interface/filter-dropdown-list.d.ts +17 -0
- package/lib/components/ca-new-filter/interface/index.d.ts +6 -0
- package/lib/components/ca-new-filter/interface/sorting-emmiter.interface.d.ts +5 -0
- package/lib/components/ca-new-filter/interface/time-options.interface.d.ts +9 -0
- package/lib/components/ca-new-filter/pipes/filter-search.pipe.d.ts +8 -0
- package/lib/components/ca-new-filter/types/filter-dropdown.types.d.ts +2 -0
- package/lib/components/ca-new-filter/types/filter-sorting-key.type.d.ts +2 -0
- package/lib/components/ca-new-filter/types/filter-time.types.d.ts +2 -0
- package/lib/components/ca-new-filter/types/index.d.ts +3 -0
- package/lib/components/ca-new-filter/utils/configs/filter-dropdown-fields.config.d.ts +7 -0
- package/lib/components/ca-new-filter/utils/configs/index.d.ts +1 -0
- package/lib/components/ca-new-filter/utils/helpers/index.d.ts +1 -0
- package/lib/components/ca-new-filter/utils/helpers/time-filter.helper.d.ts +6 -0
- package/lib/components/ca-search-multiple-states/ca-search-multiple-states.component.d.ts +2 -2
- package/lib/components/ca-search-multiple-states/models/tab-data.model.d.ts +11 -11
- package/lib/components/ca-sort-dropdown/ca-sort-dropdown.component.d.ts +12 -5
- package/lib/components/ca-sort-dropdown/types/index.d.ts +1 -0
- package/lib/components/ca-sort-dropdown/types/sort-directions.type.d.ts +5 -0
- package/lib/components/ca-sort-dropdown/utils/svg-routes/ca-sort-dropdown-svg-routes.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +7 -0
- package/src/assets/ca-components/svg/common/ic_arrow_desc.svg +3 -0
- package/esm2022/lib/components/ca-filters/utils/constants/time-filter.constants.mjs +0 -102
|
@@ -2,27 +2,34 @@ import { OnDestroy, EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
|
|
3
3
|
import { SortDropdownSvgRoutes } from './utils/svg-routes';
|
|
4
4
|
import { SortColumn } from './models';
|
|
5
|
+
import { SortDropdownEnum } from './enums';
|
|
6
|
+
import { sortDirectionType } from './types';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
export declare class CaSortDropdownComponent implements OnDestroy {
|
|
7
9
|
set sortColumns(values: SortColumn[]);
|
|
8
|
-
activeSortColumn: SortColumn
|
|
10
|
+
activeSortColumn: SortColumn;
|
|
9
11
|
dropdownPosition: string;
|
|
10
12
|
dropdownWidth: number;
|
|
13
|
+
isDarkVariation: boolean;
|
|
11
14
|
onSortChange: EventEmitter<{
|
|
12
|
-
column: SortColumn
|
|
15
|
+
column: SortColumn;
|
|
13
16
|
sortName: string;
|
|
17
|
+
direction: string;
|
|
14
18
|
}>;
|
|
19
|
+
isSortPopoverOpened: EventEmitter<boolean>;
|
|
15
20
|
private destroy$;
|
|
16
21
|
sortDropdownSvgRoutes: typeof SortDropdownSvgRoutes;
|
|
17
|
-
sortDirection:
|
|
18
|
-
sortDirectionsRotate:
|
|
22
|
+
sortDirection: SortDropdownEnum.ASC | SortDropdownEnum.DESC;
|
|
23
|
+
sortDirectionsRotate: sortDirectionType;
|
|
19
24
|
sortDropdownPopover: NgbPopover | null;
|
|
20
25
|
isDropdownOpen: boolean;
|
|
21
26
|
_sortColumns: SortColumn[];
|
|
22
27
|
sortDirectionChange(): void;
|
|
23
28
|
sortChangeEvent(column?: SortColumn): void;
|
|
29
|
+
emitPopoverState(): void;
|
|
30
|
+
onHide(): void;
|
|
24
31
|
openClosePopover(popover: NgbPopover): void;
|
|
25
32
|
ngOnDestroy(): void;
|
|
26
33
|
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>;
|
|
34
|
+
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; }; "isDarkVariation": { "alias": "isDarkVariation"; "required": false; }; }, { "onSortChange": "onSortChange"; "isSortPopoverOpened": "isSortPopoverOpened"; }, never, never, true, never>;
|
|
28
35
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './sort-directions.type';
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './lib/components/ca-truck-trailer-progress-bar/ca-truck-trailer-p
|
|
|
3
3
|
export * from './lib/components/ca-app-tooltip-v2/ca-app-tooltip-v2.component';
|
|
4
4
|
export * from './lib/components/ca-details-dropdown/ca-details-dropdown.component';
|
|
5
5
|
export * from './lib/components/ca-filters/ca-filter.component';
|
|
6
|
+
export * from './lib/components/ca-new-filter/ca-filter-dropdown.component';
|
|
6
7
|
export * from './lib/components/ca-input/ca-input.component';
|
|
7
8
|
export * from './lib/components/ca-input-dropdown/ca-input-dropdown.component';
|
|
8
9
|
export * from './lib/components/ca-input-radiobuttons/ca-input-radiobuttons.component';
|
|
@@ -55,9 +56,15 @@ export * from './lib/components/ca-sort-dropdown/enums';
|
|
|
55
56
|
export * from './lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component';
|
|
56
57
|
export * from './lib/components/ca-modal-button/ca-modal-button.component';
|
|
57
58
|
export * from './lib/components/ca-input-datetime-picker/ca-input-datetime-picker.component';
|
|
59
|
+
export * from './lib/components/ca-new-filter/ca-filter-dropdown.component';
|
|
60
|
+
export * from './lib/components/ca-new-filter/components/ca-filter-state-dropdown/ca-filter-state-dropdown.component';
|
|
61
|
+
export * from './lib/components/ca-new-filter/components/ca-filter-time-dropdown/ca-filter-time-dropdown.component';
|
|
62
|
+
export * from './lib/components/ca-new-filter/components/ca-filter-list-dropdown/ca-filter-list-dropdown.component';
|
|
58
63
|
export * from './lib/components/ca-chart-manager/ca-chart-manager.component';
|
|
59
64
|
export * from './lib/components/ca-custom-scrollbar/ca-custom-scrollbar.component';
|
|
60
65
|
export * from './lib/components/ca-map/utils/services';
|
|
61
66
|
export * from './lib/components/ca-input/input-test/input-test.component';
|
|
62
67
|
export * from './lib/components/ca-checkbox/ca-checkbox.component';
|
|
63
68
|
export * from './lib/components/ca-modal-button/enums';
|
|
69
|
+
export * from './lib/components/ca-new-filter/enums';
|
|
70
|
+
export * from './lib/components/ca-new-filter/interface';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="12" viewBox="0 0 14 12" fill="none">
|
|
2
|
+
<path d="M5.19856 3.18179H4.28019V11.1368C4.28019 11.2598 4.22899 11.3777 4.1378 11.4646C4.04662 11.5515 3.92293 11.6004 3.79397 11.6004H2.46986C2.3409 11.6004 2.21722 11.5515 2.12603 11.4646C2.03484 11.3777 1.98365 11.2598 1.98365 11.1368V3.18179H1.06527C0.993955 3.18195 0.924158 3.16216 0.864526 3.12487C0.804893 3.08758 0.75805 3.03442 0.729785 2.972C0.70152 2.90958 0.693106 2.84061 0.70554 2.77366C0.717973 2.70671 0.750713 2.64471 0.799741 2.59533L2.86426 0.508837C2.9308 0.442011 3.0224 0.403068 3.11901 0.400524C3.21562 0.397979 3.30936 0.432048 3.37967 0.495269L3.39462 0.508837L5.45909 2.59533C5.50775 2.64478 5.54023 2.70669 5.55251 2.77348C5.56478 2.84026 5.55634 2.90902 5.52822 2.9713C5.5001 3.03357 5.4535 3.08664 5.39418 3.12404C5.33486 3.16143 5.26537 3.18151 5.19426 3.18179H5.19856ZM11.2333 6.93055H6.91352C6.80394 6.93037 6.6989 6.88874 6.62149 6.8148C6.54407 6.74087 6.50061 6.64067 6.50061 6.5362V5.46376C6.50061 5.35929 6.54407 5.25908 6.62149 5.18515C6.6989 5.11122 6.80394 5.06958 6.91352 5.0694H11.2333C11.343 5.0694 11.4482 5.11096 11.5258 5.18491C11.6034 5.25887 11.6469 5.35917 11.6469 5.46376V6.5362C11.6466 6.64044 11.6029 6.74029 11.5255 6.81393C11.4482 6.88758 11.3433 6.92902 11.234 6.92919L11.2333 6.93055ZM12.887 10.1492H6.91352C6.80394 10.149 6.6989 10.1074 6.62149 10.0334C6.54407 9.95952 6.50061 9.85935 6.50061 9.75484V8.68244C6.50061 8.57793 6.54407 8.47776 6.62149 8.40377C6.6989 8.32985 6.80394 8.28827 6.91352 8.28806H12.887C12.9966 8.28827 13.1016 8.32985 13.1791 8.40377C13.2564 8.47776 13.3 8.57793 13.3 8.68244V9.75484C13.2996 9.859 13.2561 9.95875 13.1788 10.0323C13.1016 10.106 12.9969 10.1475 12.8877 10.1478L12.887 10.1492ZM9.57959 3.7119H6.91352C6.80394 3.71172 6.6989 3.67008 6.62149 3.59615C6.54407 3.52222 6.50061 3.422 6.50061 3.31753V2.2451C6.50061 2.14063 6.54407 2.04041 6.62149 1.96648C6.6989 1.89254 6.80394 1.85093 6.91352 1.85075H9.58169C9.63601 1.85075 9.68984 1.86095 9.73996 1.88077C9.79015 1.90058 9.83579 1.92963 9.87415 1.96625C9.91258 2.00287 9.94303 2.04634 9.96382 2.09418C9.98461 2.14203 9.99532 2.19332 9.99532 2.2451V3.31753C9.99476 3.42177 9.95094 3.52156 9.87345 3.59507C9.79589 3.66859 9.69103 3.70985 9.58169 3.70985L9.57959 3.7119Z" fill="#BED0F9"/>
|
|
3
|
+
</svg>
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
export class TimeFilterConstants {
|
|
2
|
-
static getTimePastOptions(lastYear, last2Years) {
|
|
3
|
-
return [
|
|
4
|
-
{
|
|
5
|
-
label: 'Time Filter',
|
|
6
|
-
items: [{ label: 'Today' }, { label: 'Yesterday' }],
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
label: '',
|
|
10
|
-
items: [
|
|
11
|
-
{ label: 'This Week' },
|
|
12
|
-
{ label: 'Last Week' },
|
|
13
|
-
{ label: '1 Week' },
|
|
14
|
-
],
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
label: '',
|
|
18
|
-
items: [
|
|
19
|
-
{ label: 'This Month' },
|
|
20
|
-
{ label: 'Last Month' },
|
|
21
|
-
{ label: '1 Month' },
|
|
22
|
-
{ label: '3 Months' },
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
label: '',
|
|
27
|
-
items: [{ label: 'This Quarter' }, { label: 'Last Quarter' }],
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
label: '',
|
|
31
|
-
items: [
|
|
32
|
-
{ label: 'This Year' },
|
|
33
|
-
{ label: '1 Year' },
|
|
34
|
-
{ label: lastYear },
|
|
35
|
-
{ label: last2Years },
|
|
36
|
-
],
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
label: '',
|
|
40
|
-
items: [{ label: 'Custom' }],
|
|
41
|
-
},
|
|
42
|
-
];
|
|
43
|
-
}
|
|
44
|
-
static getTimeFutureOptions() {
|
|
45
|
-
return [
|
|
46
|
-
{
|
|
47
|
-
label: 'Time Filter',
|
|
48
|
-
items: [{ label: 'Today' }, { label: 'Tomorrow' }],
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
label: '',
|
|
52
|
-
items: [
|
|
53
|
-
{ label: 'This Week' },
|
|
54
|
-
{ label: 'Next Week' },
|
|
55
|
-
{ label: '1 Week' },
|
|
56
|
-
],
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
label: '',
|
|
60
|
-
items: [
|
|
61
|
-
{ label: 'This Month' },
|
|
62
|
-
{ label: 'Next Month' },
|
|
63
|
-
{ label: '1 Month' },
|
|
64
|
-
{ label: '3 Months' },
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
label: '',
|
|
69
|
-
items: [{ label: 'This Quarter' }, { label: 'Next Quarter' }],
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
label: '',
|
|
73
|
-
items: [{ label: 'This Year' }, { label: '1 Year' }],
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
label: '',
|
|
77
|
-
items: [{ label: 'Custom' }],
|
|
78
|
-
},
|
|
79
|
-
];
|
|
80
|
-
}
|
|
81
|
-
static getTimeShortOptions() {
|
|
82
|
-
return [
|
|
83
|
-
{
|
|
84
|
-
label: 'Time Filter',
|
|
85
|
-
items: [{ label: 'Today' }, { label: 'Yesterday' }],
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
label: '',
|
|
89
|
-
items: [{ label: 'This Week' }, { label: 'Last Week' }],
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
label: '',
|
|
93
|
-
items: [{ label: 'This Month' }, { label: 'Last Month' }],
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
label: '',
|
|
97
|
-
items: [{ label: 'Custom' }],
|
|
98
|
-
},
|
|
99
|
-
];
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZS1maWx0ZXIuY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2EtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvY2EtZmlsdGVycy91dGlscy9jb25zdGFudHMvdGltZS1maWx0ZXIuY29uc3RhbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxtQkFBbUI7SUFDOUIsTUFBTSxDQUFDLGtCQUFrQixDQUFDLFFBQWdCLEVBQUUsVUFBa0I7UUFDNUQsT0FBTztZQUNMO2dCQUNFLEtBQUssRUFBRSxhQUFhO2dCQUNwQixLQUFLLEVBQUUsQ0FBQyxFQUFFLEtBQUssRUFBRSxPQUFPLEVBQUUsRUFBRSxFQUFFLEtBQUssRUFBRSxXQUFXLEVBQUUsQ0FBQzthQUNwRDtZQUNEO2dCQUNFLEtBQUssRUFBRSxFQUFFO2dCQUNULEtBQUssRUFBRTtvQkFDTCxFQUFFLEtBQUssRUFBRSxXQUFXLEVBQUU7b0JBQ3RCLEVBQUUsS0FBSyxFQUFFLFdBQVcsRUFBRTtvQkFDdEIsRUFBRSxLQUFLLEVBQUUsUUFBUSxFQUFFO2lCQUNwQjthQUNGO1lBQ0Q7Z0JBQ0UsS0FBSyxFQUFFLEVBQUU7Z0JBQ1QsS0FBSyxFQUFFO29CQUNMLEVBQUUsS0FBSyxFQUFFLFlBQVksRUFBRTtvQkFDdkIsRUFBRSxLQUFLLEVBQUUsWUFBWSxFQUFFO29CQ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sXG4gICAgICAgIF0sXG4gICAgICB9LFxuICAgICAge1xuICAgICAgICBsYWJlbDogJycsXG4gICAgICAgIGl0ZW1zOiBbeyBsYWJlbDogJ1RoaXMgUXVhcnRlcicgfSwgeyBsYWJlbDogJ0xhc3QgUXVhcnRlcicgfV0sXG4gICAgICB9LFxuICAgICAge1xuICAgICAgICBsYWJlbDogJycsXG4gICAgICAgIGl0ZW1zOiBbXG4gICAgICAgICAgeyBsYWJlbDogJ1RoaXMgWWVhcicgfSxcbiAgICAgICAgICB7IGxhYmVsOiAnMSBZZWFyJyB9LFxuICAgICAgICAgIHsgbGFiZWw6IGxhc3RZZWFyIH0sXG4gICAgICAgICAgeyBsYWJlbDogbGFzdDJZZWFycyB9LFxuICAgICAgICBdLFxuICAgICAgfSxcbiAgICAgIHtcbiAgICAgICAgbGFiZWw6ICcnLFxuICAgICAgICBpdGVtczogW3sgbGFiZWw6ICdDdXN0b20nIH1dLFxuICAgICAgfSxcbiAgICBdO1xuICB9XG5cbiAgc3RhdGljIGdldFRpbWVGdXR1cmVPcHRpb25zKCkge1xuICAgIHJldHVybiBbXG4gICAgICB7XG4gICAgICAgIGxhYmVsOiAnVGltZSBGaWx0ZXInLFxuICAgICAgICBpdGVtczogW3sgbGFiZWw6ICdUb2RheScgfSwgeyBsYWJlbDogJ1RvbW9ycm93JyB9XSxcbiAgICAgIH0sXG4gICAgICB7XG4gICAgICAgIGxhYmVsOiAnJyxcbiAgICAgICAgaXRlbXM6IFtcbiAgICAgICAgICB7IGxhYmVsOiAnVGhpcyBXZWVrJyB9LFxuICAgICAgICAgIHsgbGFiZWw6ICdOZXh0IFdlZWsnIH0sXG4gICAgICAgICAgeyBsYWJlbDogJzEgV2VlaycgfSxcbiAgICAgICAgXSxcbiAgICAgIH0sXG4gICAgICB7XG4gICAgICAgIGxhYmVsOiAnJyxcbiAgICAgICAgaXRlbXM6IFtcbiAgICAgICAgICB7IGxhYmVsOiAnVGhpcyBNb250aCcgfSxcbiAgICAgICAgICB7IGxhYmVsOiAnTmV4dCBNb250aCcgfSxcbiAgICAgICAgICB7IGxhYmVsOiAnMSBNb250aCcgfSxcbiAgICAgICAgICB7IGxhYmVsOiAnMyBNb250aHMnIH0sXG4gICAgICAgIF0sXG4gICAgICB9LFxuICAgICAge1xuICAgICAgICBsYWJlbDogJycsXG4gICAgICAgIGl0ZW1zOiBbeyBsYWJlbDogJ1RoaXMgUXVhcnRlcicgfSwgeyBsYWJlbDogJ05leHQgUXVhcnRlcicgfV0sXG4gICAgICB9LFxuICAgICAge1xuICAgICAgICBsYWJlbDogJycsXG4gICAgICAgIGl0ZW1zOiBbeyBsYWJlbDogJ1RoaXMgWWVhcicgfSwgeyBsYWJlbDogJzEgWWVhcicgfV0sXG4gICAgICB9LFxuICAgICAge1xuICAgICAgICBsYWJlbDogJycsXG4gICAgICAgIGl0ZW1zOiBbeyBsYWJlbDogJ0N1c3RvbScgfV0sXG4gICAgICB9LFxuICAgIF07XG4gIH1cblxuICBzdGF0aWMgZ2V0VGltZVNob3J0T3B0aW9ucygpIHtcbiAgICByZXR1cm4gW1xuICAgICAge1xuICAgICAgICBsYWJlbDogJ1RpbWUgRmlsdGVyJyxcbiAgICAgICAgaXRlbXM6IFt7IGxhYmVsOiAnVG9kYXknIH0sIHsgbGFiZWw6ICdZZXN0ZXJkYXknIH1dLFxuICAgICAgfSxcbiAgICAgIHtcbiAgICAgICAgbGFiZWw6ICcnLFxuICAgICAgICBpdGVtczogW3sgbGFiZWw6ICdUaGlzIFdlZWsnIH0sIHsgbGFiZWw6ICdMYXN0IFdlZWsnIH1dLFxuICAgICAgfSxcbiAgICAgIHtcbiAgICAgICAgbGFiZWw6ICcnLFxuICAgICAgICBpdGVtczogW3sgbGFiZWw6ICdUaGlzIE1vbnRoJyB9LCB7IGxhYmVsOiAnTGFzdCBNb250aCcgfV0sXG4gICAgICB9LFxuICAgICAge1xuICAgICAgICBsYWJlbDogJycsXG4gICAgICAgIGl0ZW1zOiBbeyBsYWJlbDogJ0N1c3RvbScgfV0sXG4gICAgICB9LFxuICAgIF07XG4gIH1cbn1cbiJdfQ==
|