ca-components 0.0.50 → 0.0.52
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/esm2022/lib/animations/area-left-side.animation.mjs +30 -0
- package/esm2022/lib/animations/area-right-side.animation.mjs +29 -0
- package/esm2022/lib/ca-components.module.mjs +13 -3
- package/esm2022/lib/components/ca-custom-datetime-pickers/ca-custom-datetime-pickers.component.mjs +11 -4
- package/esm2022/lib/components/ca-custom-datetime-pickers/utils/constants/custom-datetime-pickers.constants.mjs +15 -1
- package/esm2022/lib/components/ca-filters/ca-filter.component.mjs +44 -4
- package/esm2022/lib/components/ca-filters/components/ca-location-filter/ca-location-filter.component.mjs +282 -0
- package/esm2022/lib/components/ca-filters/components/ca-location-filter/config/ca-location-filter.config.mjs +52 -0
- package/esm2022/lib/components/ca-filters/components/ca-location-filter/models/area-box-tab.model.mjs +2 -0
- package/esm2022/lib/components/ca-filters/components/ca-location-filter/utils/constants/location-filter.constants.mjs +14 -0
- package/esm2022/lib/components/ca-filters/components/ca-money-filter/ca-money-filter.component.mjs +112 -496
- package/esm2022/lib/components/ca-filters/components/ca-money-filter/config/ca-miles-filter.config.mjs +21 -0
- package/esm2022/lib/components/ca-filters/components/ca-money-filter/config/ca-money-filter.config.mjs +3 -3
- package/esm2022/lib/components/ca-filters/components/ca-money-filter/enums/money-filter-string.enum.mjs +3 -1
- package/esm2022/lib/components/ca-filters/components/ca-state-filter/ca-state-filter.component.mjs +1 -1
- package/esm2022/lib/components/ca-filters/components/ca-status-filter/ca-status-filter.component.mjs +1 -1
- package/esm2022/lib/components/ca-filters/components/ca-time-filter/ca-time-filter.component.mjs +1 -1
- package/esm2022/lib/components/ca-filters/components/ca-trailer-type-filter/ca-trailer-type-filter.component.mjs +1 -1
- package/esm2022/lib/components/ca-filters/components/ca-truck-type-filter/ca-truck-type-filter.component.mjs +1 -1
- package/esm2022/lib/components/ca-filters/components/ca-violation-filter/ca-violation-filter.component.mjs +135 -0
- package/esm2022/lib/components/ca-filters/pipes/filter-conditions-clear.pipe.mjs +17 -3
- package/esm2022/lib/components/ca-filters/pipes/filter-conditions-set.pipe.mjs +27 -8
- package/esm2022/lib/components/ca-filters/pipes/filter-popover-conditions.pipe.mjs +11 -3
- package/esm2022/lib/components/ca-filters/utils/constants/filter-config.constants.mjs +40 -0
- package/esm2022/lib/components/ca-filters/utils/helpers/filter.helper.mjs +7 -1
- package/esm2022/lib/components/ca-filters/utils/helpers/index.mjs +2 -0
- package/esm2022/lib/components/ca-filters/validators/range.validator.mjs +13 -0
- package/esm2022/lib/components/ca-input/ca-input.component.mjs +3 -3
- package/esm2022/lib/components/ca-input/components/ca-input-clear/ca-input-clear.component.mjs +1 -1
- package/esm2022/lib/components/ca-input/components/ca-input-datetime-picker/ca-input-datetime-picker.component.mjs +3 -3
- 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/config/ca-input.config.mjs +1 -1
- package/esm2022/lib/components/ca-input/pipes/input-placeholder-icon.class.pipe.mjs +1 -1
- package/esm2022/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.mjs +373 -0
- package/esm2022/lib/components/ca-input-address-dropdown/enums/input-address-commands-string.enum.mjs +8 -0
- package/esm2022/lib/components/ca-input-address-dropdown/enums/input-address-layers-string.enum.mjs +6 -0
- package/esm2022/lib/components/ca-input-address-dropdown/enums/input-address-stop-types-string.enum.mjs +6 -0
- package/esm2022/lib/components/ca-input-address-dropdown/enums/input-address-type-string.enum.mjs +6 -0
- package/esm2022/lib/components/ca-input-address-dropdown/models/address-data.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-address-dropdown/models/address-list.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-address-dropdown/models/command-properties.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-address-dropdown/models/commands-handler.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-address-dropdown/models/input-address-commands-string.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-address-dropdown/models/long-lat.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-address-dropdown/models/sent-address-data.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-address-dropdown/validators/ca-input-address.regex-validations.mjs +11 -0
- package/esm2022/lib/components/ca-input-dropdown/animations/index.mjs +2 -0
- package/esm2022/lib/components/ca-input-dropdown/animations/input-dropdown.animation.mjs +11 -0
- package/esm2022/lib/components/ca-input-dropdown/ca-input-dropdown.component.mjs +877 -0
- package/esm2022/lib/components/ca-input-dropdown/models/input-dropdown-option.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-dropdown/pipes/dropdown-count.pipe.mjs +29 -0
- package/esm2022/lib/components/ca-input-dropdown/pipes/index.mjs +2 -0
- package/esm2022/lib/components/ca-map/enums/toolbar-filter-string.enum.mjs +12 -1
- package/esm2022/lib/components/ca-ngx-slider/ca-ngx-slider.component.mjs +87 -0
- package/esm2022/lib/components/ca-ngx-slider/enums/slider-template.enum.mjs +8 -0
- package/esm2022/lib/components/ca-pickup-delivery-block/ca-pickup-delivery-block.component.mjs +9 -8
- package/esm2022/lib/components/ca-pickup-delivery-block/components/ca-load/ca-load.component.mjs +15 -9
- package/esm2022/lib/components/ca-profile-image/ca-profile-image.component.mjs +2 -2
- package/esm2022/lib/components/ca-rating-review/ca-rating-review.component.mjs +183 -0
- package/esm2022/lib/components/ca-rating-review/components/ca-rating-review-user/ca-rating-review-user.component.mjs +151 -0
- package/esm2022/lib/components/ca-rating-review/components/ca-ratings-reviews-popup/ca-ratings-reviews-popup.component.mjs +108 -0
- package/esm2022/lib/components/ca-rating-review/enums/rating-reviews-type.enums.mjs +17 -0
- package/esm2022/lib/components/ca-rating-review/models/rating-review.model.mjs +2 -0
- package/esm2022/lib/components/ca-rating-review/utils/config/rating-review-search.config.mjs +15 -0
- package/esm2022/lib/components/ca-rating-review/utils/helpers/sort-data.helper.mjs +11 -0
- package/esm2022/lib/components/ca-rating-review/utils/pipe/filter-title.pipe.mjs +20 -0
- package/esm2022/lib/components/ca-rating-review/utils/svg-routes/ratings-reviews.routes.mjs +14 -0
- package/esm2022/lib/components/ca-tab-switch/ca-tab-switch.component.mjs +104 -0
- package/esm2022/lib/components/ca-tab-switch/models/hover-style.model.mjs +2 -0
- package/esm2022/lib/components/ca-tab-switch/utils/constants/tab-switch.constants.mjs +7 -0
- package/esm2022/lib/models/address-entity.model.mjs +2 -0
- package/esm2022/lib/models/address-list-response.model.mjs +2 -0
- package/esm2022/lib/models/autocomplete-search-layer.model.mjs +17 -0
- package/esm2022/lib/models/dashboard/custom-period-range.model.mjs +2 -0
- package/esm2022/lib/models/dashboard/dropdown-list-item.model.mjs +2 -0
- package/esm2022/lib/models/highlight-text.model.mjs +2 -0
- package/esm2022/lib/models/tabs.model.mjs +2 -0
- package/esm2022/lib/pipes/date.pipe.mjs +36 -0
- package/esm2022/lib/pipes/highlight-search.pipe.mjs +47 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/ca-components.mjs +2846 -612
- package/fesm2022/ca-components.mjs.map +1 -1
- package/lib/animations/area-left-side.animation.d.ts +1 -0
- package/lib/animations/area-right-side.animation.d.ts +1 -0
- package/lib/ca-components.module.d.ts +22 -20
- package/lib/components/ca-custom-datetime-pickers/ca-custom-datetime-pickers.component.d.ts +3 -3
- package/lib/components/ca-custom-datetime-pickers/utils/constants/custom-datetime-pickers.constants.d.ts +1 -0
- package/lib/components/ca-filters/ca-filter.component.d.ts +6 -1
- package/lib/components/ca-filters/components/ca-location-filter/ca-location-filter.component.d.ts +75 -0
- package/lib/components/ca-filters/components/ca-location-filter/config/ca-location-filter.config.d.ts +6 -0
- package/lib/components/ca-filters/components/ca-location-filter/models/area-box-tab.model.d.ts +5 -0
- package/lib/components/ca-filters/components/ca-location-filter/utils/constants/location-filter.constants.d.ts +11 -0
- package/lib/components/ca-filters/components/ca-money-filter/ca-money-filter.component.d.ts +23 -17
- package/lib/components/ca-filters/components/ca-money-filter/config/ca-miles-filter.config.d.ts +5 -0
- package/lib/components/ca-filters/components/ca-money-filter/enums/money-filter-string.enum.d.ts +2 -0
- package/lib/components/ca-filters/components/ca-violation-filter/ca-violation-filter.component.d.ts +39 -0
- package/lib/components/ca-filters/pipes/filter-conditions-clear.pipe.d.ts +3 -1
- package/lib/components/ca-filters/pipes/filter-conditions-set.pipe.d.ts +3 -1
- package/lib/components/ca-filters/utils/constants/filter-config.constants.d.ts +7 -0
- package/lib/components/ca-filters/utils/helpers/filter.helper.d.ts +2 -0
- package/lib/components/ca-filters/utils/helpers/index.d.ts +1 -0
- package/lib/components/ca-filters/validators/range.validator.d.ts +2 -0
- package/lib/components/ca-input/ca-input.component.d.ts +1 -1
- package/lib/components/ca-input/components/ca-input-clear/ca-input-clear.component.d.ts +1 -1
- package/lib/components/ca-input/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.d.ts +1 -1
- package/lib/components/ca-input/config/ca-input.config.d.ts +1 -0
- package/lib/components/ca-input/pipes/input-placeholder-icon.class.pipe.d.ts +1 -1
- package/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.d.ts +68 -0
- package/lib/components/ca-input-address-dropdown/enums/input-address-commands-string.enum.d.ts +6 -0
- package/lib/components/ca-input-address-dropdown/enums/input-address-layers-string.enum.d.ts +4 -0
- package/lib/components/ca-input-address-dropdown/enums/input-address-stop-types-string.enum.d.ts +4 -0
- package/lib/components/ca-input-address-dropdown/enums/input-address-type-string.enum.d.ts +4 -0
- package/lib/components/ca-input-address-dropdown/models/address-data.model.d.ts +10 -0
- package/lib/components/ca-input-address-dropdown/models/address-list.model.d.ts +5 -0
- package/lib/components/ca-input-address-dropdown/models/command-properties.model.d.ts +7 -0
- package/lib/components/ca-input-address-dropdown/models/commands-handler.model.d.ts +7 -0
- package/lib/components/ca-input-address-dropdown/models/input-address-commands-string.model.d.ts +1 -0
- package/lib/components/ca-input-address-dropdown/models/long-lat.model.d.ts +4 -0
- package/lib/components/ca-input-address-dropdown/models/sent-address-data.model.d.ts +6 -0
- package/lib/components/ca-input-address-dropdown/validators/ca-input-address.regex-validations.d.ts +2 -0
- package/lib/components/ca-input-dropdown/animations/index.d.ts +1 -0
- package/lib/components/ca-input-dropdown/animations/input-dropdown.animation.d.ts +1 -0
- package/lib/components/ca-input-dropdown/ca-input-dropdown.component.d.ts +89 -0
- package/lib/components/ca-input-dropdown/models/input-dropdown-option.model.d.ts +28 -0
- package/lib/components/ca-input-dropdown/pipes/dropdown-count.pipe.d.ts +7 -0
- package/lib/components/ca-input-dropdown/pipes/index.d.ts +1 -0
- package/lib/components/ca-map/enums/toolbar-filter-string.enum.d.ts +10 -0
- package/lib/components/ca-ngx-slider/ca-ngx-slider.component.d.ts +24 -0
- package/lib/components/ca-ngx-slider/enums/slider-template.enum.d.ts +6 -0
- package/lib/components/ca-pickup-delivery-block/ca-pickup-delivery-block.component.d.ts +4 -5
- package/lib/components/ca-pickup-delivery-block/components/ca-load/ca-load.component.d.ts +2 -4
- package/lib/components/ca-rating-review/ca-rating-review.component.d.ts +49 -0
- package/lib/components/ca-rating-review/components/ca-rating-review-user/ca-rating-review-user.component.d.ts +37 -0
- package/lib/components/ca-rating-review/components/ca-ratings-reviews-popup/ca-ratings-reviews-popup.component.d.ts +32 -0
- package/lib/components/ca-rating-review/enums/rating-reviews-type.enums.d.ts +14 -0
- package/lib/components/ca-rating-review/models/rating-review.model.d.ts +12 -0
- package/lib/components/ca-rating-review/utils/config/rating-review-search.config.d.ts +4 -0
- package/lib/components/ca-rating-review/utils/helpers/sort-data.helper.d.ts +4 -0
- package/lib/components/ca-rating-review/utils/pipe/filter-title.pipe.d.ts +8 -0
- package/lib/components/ca-rating-review/utils/svg-routes/ratings-reviews.routes.d.ts +13 -0
- package/lib/components/ca-tab-switch/ca-tab-switch.component.d.ts +37 -0
- package/lib/components/ca-tab-switch/models/hover-style.model.d.ts +4 -0
- package/lib/components/ca-tab-switch/utils/constants/tab-switch.constants.d.ts +6 -0
- package/lib/models/address-entity.model.d.ts +12 -0
- package/lib/models/address-list-response.model.d.ts +3 -0
- package/lib/models/autocomplete-search-layer.model.d.ts +17 -0
- package/lib/models/dashboard/custom-period-range.model.d.ts +5 -0
- package/lib/models/dashboard/dropdown-list-item.model.d.ts +4 -0
- package/lib/models/highlight-text.model.d.ts +4 -0
- package/lib/models/tabs.model.d.ts +6 -0
- package/lib/pipes/date.pipe.d.ts +7 -0
- package/lib/pipes/highlight-search.pipe.d.ts +11 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/src/assets/ca-components/svg/common/ic_address.svg +6 -0
- package/src/assets/ca-components/svg/input/ic_address.svg +6 -0
- package/src/assets/ca-components/svg/input/ic_miles.svg +3 -0
- package/src/assets/ca-components/svg/rating-reviews/colaps-button.svg +3 -0
- package/src/assets/ca-components/svg/rating-reviews/dislikes.svg +3 -0
- package/src/assets/ca-components/svg/rating-reviews/likes.svg +3 -0
- package/src/assets/ca-components/svg/rating-reviews/pen.svg +4 -0
- package/src/assets/ca-components/svg/rating-reviews/reviews.svg +3 -0
- package/src/assets/ca-components/svg/rating-reviews/sort_icon.svg +3 -0
- package/src/assets/ca-components/svg/rating-reviews/trash.svg +4 -0
- package/src/assets/ca-components/svg/search-multiple-states/new-search-icon.svg +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const areaLeftSideAnimation: (type: string) => import("@angular/animations").AnimationTriggerMetadata;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const areaRightSideAnimation: (type: string) => import("@angular/animations").AnimationTriggerMetadata;
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "@angular/common";
|
|
3
3
|
import * as i2 from "./components/ca-profile-image/ca-profile-image.component";
|
|
4
|
-
import * as i3 from "./components/ca-
|
|
5
|
-
import * as i4 from "./components/ca-
|
|
6
|
-
import * as i5 from "./components/ca-dropdown/ca-dropdown.component";
|
|
7
|
-
import * as i6 from "./components/ca-
|
|
8
|
-
import * as i7 from "./components/ca-
|
|
9
|
-
import * as i8 from "./components/ca-input
|
|
10
|
-
import * as i9 from "./components/ca-
|
|
11
|
-
import * as i10 from "./components/ca-map
|
|
12
|
-
import * as i11 from "./components/ca-
|
|
13
|
-
import * as i12 from "./components/ca-note
|
|
14
|
-
import * as i13 from "./components/ca-
|
|
15
|
-
import * as i14 from "./components/ca-payroll-list-summary-overview
|
|
16
|
-
import * as i15 from "./components/ca-
|
|
17
|
-
import * as i16 from "./components/ca-
|
|
18
|
-
import * as i17 from "./components/ca-
|
|
19
|
-
import * as i18 from "./components/ca-
|
|
20
|
-
import * as i19 from "./components/ca-
|
|
21
|
-
import * as i20 from "./components/ca-
|
|
22
|
-
import * as i21 from "./components/ca-
|
|
4
|
+
import * as i3 from "./components/ca-rating-review/ca-rating-review.component";
|
|
5
|
+
import * as i4 from "./components/ca-app-tooltip-v2/ca-app-tooltip-v2.component";
|
|
6
|
+
import * as i5 from "./components/ca-details-dropdown/ca-details-dropdown.component";
|
|
7
|
+
import * as i6 from "./components/ca-dropdown/ca-dropdown.component";
|
|
8
|
+
import * as i7 from "./components/ca-filters/ca-filter.component";
|
|
9
|
+
import * as i8 from "./components/ca-input/ca-input.component";
|
|
10
|
+
import * as i9 from "./components/ca-input-radiobuttons/ca-input-radiobuttons.component";
|
|
11
|
+
import * as i10 from "./components/ca-map/ca-map.component";
|
|
12
|
+
import * as i11 from "./components/ca-map-dropdown/ca-map-dropdown.component";
|
|
13
|
+
import * as i12 from "./components/ca-note/ca-note.component";
|
|
14
|
+
import * as i13 from "./components/ca-note-container/ca-note-container.component";
|
|
15
|
+
import * as i14 from "./components/ca-payroll-list-summary-overview/ca-payroll-list-summary-overview.component";
|
|
16
|
+
import * as i15 from "./components/ca-payroll-list-summary-overview-table/ca-payroll-list-summary-overview-table.component";
|
|
17
|
+
import * as i16 from "./components/ca-pickup-delivery-block/ca-pickup-delivery-block.component";
|
|
18
|
+
import * as i17 from "./components/ca-progress-bar/ca-progress-bar.component";
|
|
19
|
+
import * as i18 from "./components/ca-search-multiple-states/ca-search-multiple-states.component";
|
|
20
|
+
import * as i19 from "./components/ca-spinner/ca-spinner.component";
|
|
21
|
+
import * as i20 from "./components/ca-truck-trailer-progress-bar/ca-truck-trailer-progress-bar.component";
|
|
22
|
+
import * as i21 from "./components/ca-period-content/ca-period-content.component";
|
|
23
|
+
import * as i22 from "./components/ca-input-note/ca-input-note.component";
|
|
24
|
+
import * as i23 from "./components/ca-input-address-dropdown/ca-input-address-dropdown.component";
|
|
23
25
|
export declare class CaComponentsLibModule {
|
|
24
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaComponentsLibModule, never>;
|
|
25
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CaComponentsLibModule, never, [typeof i1.CommonModule, typeof i2.CaProfileImageComponent, typeof i3.
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CaComponentsLibModule, never, [typeof i1.CommonModule, typeof i2.CaProfileImageComponent, typeof i3.CaRatingReviewComponent, typeof i4.CaAppTooltipV2Component, typeof i5.CaDetailsDropdownComponent, typeof i6.CaDropdownComponent, typeof i7.CaFilterComponent, typeof i8.CaInputComponent, typeof i9.CaInputRadiobuttonsComponent, typeof i10.CaMapComponent, typeof i11.CaMapDropdownComponent, typeof i12.CaNoteComponent, typeof i13.CaNoteContainerComponent, typeof i14.CaPayrollListSummaryOverviewComponent, typeof i15.CaPayrollListSummaryOverviewTableComponent, typeof i16.PickupDeliveryBlockComponent, typeof i17.ProgressBarComponent, typeof i18.CaSearchMultipleStatesComponent, typeof i19.CaSpinnerComponent, typeof i20.CaTruckTrailerProgresBarComponent, typeof i21.CaPeriodContentComponent, typeof i22.CaInputNoteComponent, typeof i23.CaInputAddressDropdownComponent], [typeof i2.CaProfileImageComponent, typeof i4.CaAppTooltipV2Component, typeof i5.CaDetailsDropdownComponent, typeof i3.CaRatingReviewComponent, typeof i6.CaDropdownComponent, typeof i7.CaFilterComponent, typeof i8.CaInputComponent, typeof i9.CaInputRadiobuttonsComponent, typeof i10.CaMapComponent, typeof i11.CaMapDropdownComponent, typeof i12.CaNoteComponent, typeof i13.CaNoteContainerComponent, typeof i14.CaPayrollListSummaryOverviewComponent, typeof i15.CaPayrollListSummaryOverviewTableComponent, typeof i16.PickupDeliveryBlockComponent, typeof i17.ProgressBarComponent, typeof i18.CaSearchMultipleStatesComponent, typeof i19.CaSpinnerComponent, typeof i20.CaTruckTrailerProgresBarComponent, typeof i21.CaPeriodContentComponent, typeof i22.CaInputNoteComponent]>;
|
|
26
28
|
static ɵinj: i0.ɵɵInjectorDeclaration<CaComponentsLibModule>;
|
|
27
29
|
}
|
|
@@ -12,13 +12,13 @@ export declare class CaCustomDatetimePickersComponent implements OnInit, OnDestr
|
|
|
12
12
|
_inputConfig: ICaInput;
|
|
13
13
|
set inputConfig(config: ICaInput);
|
|
14
14
|
closePopover: EventEmitter<void>;
|
|
15
|
-
selectedDateTime: string;
|
|
16
|
-
calendarMainType: string;
|
|
17
|
-
outputType: (string | number)[];
|
|
18
15
|
dateCalendar: CaCustomDateTimePickersDateCalendarsComponent;
|
|
19
16
|
pmAmScroll: ElementRef;
|
|
20
17
|
minutesScroll: ElementRef;
|
|
21
18
|
hourScroll: ElementRef;
|
|
19
|
+
selectedDateTime: string;
|
|
20
|
+
calendarMainType: string;
|
|
21
|
+
outputType: (string | number)[];
|
|
22
22
|
currentYear: number;
|
|
23
23
|
currentMonth: number;
|
|
24
24
|
currentDay: number;
|
|
@@ -13,8 +13,10 @@ import { CaStateFilterComponent } from './components/ca-state-filter/ca-state-fi
|
|
|
13
13
|
import { CaTruckTypeFilterComponent } from './components/ca-truck-type-filter/ca-truck-type-filter.component';
|
|
14
14
|
import { CaTrailerTypeFilterComponent } from './components/ca-trailer-type-filter/ca-trailer-type-filter.component';
|
|
15
15
|
import { CaPmFilterComponent } from './components/ca-pm-filter/ca-pm-filter.component';
|
|
16
|
+
import { CaLocationFilterComponent } from './components/ca-location-filter/ca-location-filter.component';
|
|
16
17
|
import { CaUserFilterComponent } from './components/ca-user-filter/ca-user-filter.component';
|
|
17
18
|
import { CaAutoclosePopoverComponent } from '../ca-autoclose-popover/ca-autoclose-popover.component';
|
|
19
|
+
import { CaViolationFilterComponent } from './components/ca-violation-filter/ca-violation-filter.component';
|
|
18
20
|
import * as i0 from "@angular/core";
|
|
19
21
|
export declare class CaFilterComponent implements OnDestroy {
|
|
20
22
|
private renderer;
|
|
@@ -28,7 +30,9 @@ export declare class CaFilterComponent implements OnDestroy {
|
|
|
28
30
|
caTruckTypeFilter: CaTruckTypeFilterComponent;
|
|
29
31
|
caTrailerTypeFilter: CaTrailerTypeFilterComponent;
|
|
30
32
|
caPmFilter: CaPmFilterComponent;
|
|
33
|
+
caLocationFilter: CaLocationFilterComponent;
|
|
31
34
|
caUserFilter: CaUserFilterComponent;
|
|
35
|
+
caViolationFilter: CaViolationFilterComponent;
|
|
32
36
|
type: string;
|
|
33
37
|
timeSubType: string;
|
|
34
38
|
subType: string;
|
|
@@ -44,6 +48,7 @@ export declare class CaFilterComponent implements OnDestroy {
|
|
|
44
48
|
hasLeftSideIcon: boolean;
|
|
45
49
|
hasLargeLeftIcon: boolean;
|
|
46
50
|
isMoneyFilter: boolean;
|
|
51
|
+
isMilesFilter: boolean;
|
|
47
52
|
isFuelType: boolean;
|
|
48
53
|
isLoadType: boolean;
|
|
49
54
|
filterTitle: string;
|
|
@@ -74,5 +79,5 @@ export declare class CaFilterComponent implements OnDestroy {
|
|
|
74
79
|
getSvgPath(propertyName: keyof typeof CaFiltersSvgRoutes): string;
|
|
75
80
|
ngOnDestroy(): void;
|
|
76
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaFilterComponent, never>;
|
|
77
|
-
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; }; "isDefFilterHolder": { "alias": "isDefFilterHolder"; "required": false; }; "hasNoLeftIcon": { "alias": "hasNoLeftIcon"; "required": false; }; "hasLeftSideIcon": { "alias": "hasLeftSideIcon"; "required": false; }; "hasLargeLeftIcon": { "alias": "hasLargeLeftIcon"; "required": false; }; "isMoneyFilter": { "alias": "isMoneyFilter"; "required": false; }; "isFuelType": { "alias": "isFuelType"; "required": false; }; "isLoadType": { "alias": "isLoadType"; "required": false; }; "filterTitle": { "alias": "filterTitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, { "setFilter": "setFilter"; "clearAll": "clearAll"; }, never, never, true, never>;
|
|
82
|
+
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; }; "isDefFilterHolder": { "alias": "isDefFilterHolder"; "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; }; "isFuelType": { "alias": "isFuelType"; "required": false; }; "isLoadType": { "alias": "isLoadType"; "required": false; }; "filterTitle": { "alias": "filterTitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, { "setFilter": "setFilter"; "clearAll": "clearAll"; }, never, never, true, never>;
|
|
78
83
|
}
|
package/lib/components/ca-filters/components/ca-location-filter/ca-location-filter.component.d.ts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Options } from '@angular-slider/ngx-slider';
|
|
3
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
4
|
+
import { LoadStatusEnum } from '../../../../enums/load-status.enum';
|
|
5
|
+
import { CaFiltersSvgRoutes } from '../../utils/svg-routes/ca-filters-svg-routes';
|
|
6
|
+
import { ArrayStatus } from '../../../../models/array-status.model';
|
|
7
|
+
import { filterOutput } from '../../../../models/filter-output.model';
|
|
8
|
+
import { filterOutputWithParams } from '../../../../models/filter-output-params.model';
|
|
9
|
+
import { AreaBoxTab } from './models/area-box-tab.model';
|
|
10
|
+
import { AddressData } from '../../../../components/ca-input-address-dropdown/models/address-data.model';
|
|
11
|
+
import { ICaInput } from '../../../ca-input/config';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class CaLocationFilterComponent implements OnInit, OnDestroy {
|
|
14
|
+
private formBuilder;
|
|
15
|
+
type: string;
|
|
16
|
+
toDoSubType: string;
|
|
17
|
+
isLegendView: boolean;
|
|
18
|
+
isFilterActive: boolean;
|
|
19
|
+
isAreaFilter: boolean;
|
|
20
|
+
private destroy$;
|
|
21
|
+
locationSliderData: Options;
|
|
22
|
+
locationNameSet: string | null;
|
|
23
|
+
locationForm: UntypedFormGroup;
|
|
24
|
+
locationRange: number;
|
|
25
|
+
locationRangeSet: number;
|
|
26
|
+
longVal: number;
|
|
27
|
+
latVal: number;
|
|
28
|
+
originLongVal: number;
|
|
29
|
+
originLatVal: number;
|
|
30
|
+
destLongVal: number;
|
|
31
|
+
destLatVal: number;
|
|
32
|
+
longValueSet: number;
|
|
33
|
+
latValSet: number;
|
|
34
|
+
originLongValSet: number;
|
|
35
|
+
originLatValSet: number;
|
|
36
|
+
destLongValSet: number;
|
|
37
|
+
destLatValSet: number;
|
|
38
|
+
unselectedVisibleCount: number;
|
|
39
|
+
areaFilterSelected: string;
|
|
40
|
+
isButtonAvailable: boolean;
|
|
41
|
+
isAscendingSortOrder: boolean;
|
|
42
|
+
loadStatusEnum: typeof LoadStatusEnum;
|
|
43
|
+
filterActiveArray: ArrayStatus[];
|
|
44
|
+
totalFiltersNum: number;
|
|
45
|
+
areaForm: UntypedFormGroup;
|
|
46
|
+
locationState: string | null;
|
|
47
|
+
rangeValue: number;
|
|
48
|
+
destinationState: string;
|
|
49
|
+
originState: string;
|
|
50
|
+
hasSideAnimation: boolean;
|
|
51
|
+
areaBoxTab: AreaBoxTab[];
|
|
52
|
+
ngOnInit(): void;
|
|
53
|
+
get getOriginControl(): ICaInput;
|
|
54
|
+
get getDestinationControl(): ICaInput;
|
|
55
|
+
get getAddressControl(): ICaInput;
|
|
56
|
+
constructor(formBuilder: UntypedFormBuilder);
|
|
57
|
+
private createForm;
|
|
58
|
+
private watchLocationFormValueChanges;
|
|
59
|
+
private watchAreaFormValueChanges;
|
|
60
|
+
onAreaFilterClose(): void;
|
|
61
|
+
trackByIndex(index: number): number;
|
|
62
|
+
onTabChange(event: {
|
|
63
|
+
name: string;
|
|
64
|
+
}, subType: string): void;
|
|
65
|
+
setFilterValue(): filterOutput | filterOutputWithParams;
|
|
66
|
+
clearAll(event?: Event): filterOutput | filterOutputWithParams;
|
|
67
|
+
setRangeValue(event: Event): void;
|
|
68
|
+
handleInputSelect(event: AddressData): void;
|
|
69
|
+
handleOriginSelect(event: AddressData): void;
|
|
70
|
+
handleDestinationSelect(event: AddressData): void;
|
|
71
|
+
getSvgPath(propertyName: keyof typeof CaFiltersSvgRoutes): string;
|
|
72
|
+
ngOnDestroy(): void;
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaLocationFilterComponent, never>;
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaLocationFilterComponent, "app-ca-location-filter", never, { "type": { "alias": "type"; "required": false; }; "toDoSubType": { "alias": "toDoSubType"; "required": false; }; "isLegendView": { "alias": "isLegendView"; "required": false; }; "isFilterActive": { "alias": "isFilterActive"; "required": false; }; "isAreaFilter": { "alias": "isAreaFilter"; "required": false; }; }, {}, never, never, true, never>;
|
|
75
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
2
|
+
import { UntypedFormBuilder, UntypedFormGroup, UntypedFormArray } from '@angular/forms';
|
|
3
|
+
import { ChangeContext, Options } from '@angular-slider/ngx-slider';
|
|
3
4
|
import { ThousandSeparatorPipe as ThousandSeparator } from '../../../../pipes/thousand-separator.pipe';
|
|
4
5
|
import { CaFiltersSvgRoutes } from '../../utils/svg-routes/ca-filters-svg-routes';
|
|
5
6
|
import { ArrayStatus } from '../../../../models/array-status.model';
|
|
@@ -12,16 +13,21 @@ export declare class CaMoneyFilterComponent implements OnInit, OnDestroy {
|
|
|
12
13
|
private thousandSeparator;
|
|
13
14
|
type: string;
|
|
14
15
|
subType: string;
|
|
15
|
-
|
|
16
|
+
isMoneyFilter: boolean;
|
|
17
|
+
isMilesFilter: boolean;
|
|
16
18
|
fuelType: boolean;
|
|
17
19
|
loadType: boolean;
|
|
18
20
|
isRepairFilter: boolean;
|
|
19
21
|
isFilterActive: boolean;
|
|
20
22
|
private destroy$;
|
|
23
|
+
showMoneyListItems: boolean[];
|
|
24
|
+
moneyListTextOptions: string[][];
|
|
21
25
|
showPart1: boolean;
|
|
22
26
|
showPart2: boolean;
|
|
23
27
|
showPart3: boolean;
|
|
28
|
+
moneyFilterForm: UntypedFormGroup;
|
|
24
29
|
moneyForm: UntypedFormGroup;
|
|
30
|
+
rangeForm: UntypedFormGroup;
|
|
25
31
|
singleFormError: string | boolean;
|
|
26
32
|
multiFormFirstError: string | boolean;
|
|
27
33
|
multiFormSecondError: string | boolean;
|
|
@@ -45,6 +51,12 @@ export declare class CaMoneyFilterComponent implements OnInit, OnDestroy {
|
|
|
45
51
|
swipeActiveRange: number;
|
|
46
52
|
totalFiltersNum: number;
|
|
47
53
|
isSingleFormActive: boolean;
|
|
54
|
+
minValueDragged: number;
|
|
55
|
+
maxValueDragged: number;
|
|
56
|
+
rangeValue: number;
|
|
57
|
+
rangeDiffNum: number;
|
|
58
|
+
moneySliderData: Options;
|
|
59
|
+
milesSliderData: Options;
|
|
48
60
|
constructor(formBuilder: UntypedFormBuilder, thousandSeparator: ThousandSeparator);
|
|
49
61
|
ngOnInit(): void;
|
|
50
62
|
get singleFormFrom(): ICaInput;
|
|
@@ -55,25 +67,19 @@ export declare class CaMoneyFilterComponent implements OnInit, OnDestroy {
|
|
|
55
67
|
get multiFormSecondTo(): ICaInput;
|
|
56
68
|
get multiFormThirdFrom(): ICaInput;
|
|
57
69
|
get multiFormThirdTo(): ICaInput;
|
|
70
|
+
setMinValueRange(mod: number | ChangeContext): void;
|
|
71
|
+
setMaxValueRange(mod: number | ChangeContext): void;
|
|
58
72
|
onFilterClose(): void;
|
|
73
|
+
get moneyArray(): UntypedFormArray;
|
|
59
74
|
private createForm;
|
|
60
|
-
|
|
61
|
-
clearAll(event?: Event): filterOutput | filterOutputWithParams;
|
|
62
|
-
hideFormPart(
|
|
63
|
-
clearForm(
|
|
75
|
+
updateValidators(): void;
|
|
76
|
+
clearAll(event?: Event): filterOutput | filterOutputWithParams | undefined;
|
|
77
|
+
hideFormPart(index: number): void;
|
|
78
|
+
clearForm(index: number, event?: MouseEvent): void;
|
|
64
79
|
setFilterValue(event: Event | undefined): filterOutput | filterOutputWithParams | undefined;
|
|
65
|
-
checkMoneyMultiForm(data: {
|
|
66
|
-
singleForm: string;
|
|
67
|
-
singleTo: string;
|
|
68
|
-
multiFromFirstFrom: string;
|
|
69
|
-
multiFromFirstTo: string;
|
|
70
|
-
multiFormSecondFrom: string;
|
|
71
|
-
multiFormSecondTo: string;
|
|
72
|
-
multiFormThirdFrom: string;
|
|
73
|
-
multiFormThirdTo: string;
|
|
74
|
-
}): void;
|
|
75
80
|
getSvgPath(propertyName: keyof typeof CaFiltersSvgRoutes): string;
|
|
76
81
|
ngOnDestroy(): void;
|
|
82
|
+
trackByIdentity: (index: number, _: any) => number;
|
|
77
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaMoneyFilterComponent, never>;
|
|
78
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaMoneyFilterComponent, "app-ca-money-filter", never, { "type": { "alias": "type"; "required": false; }; "subType": { "alias": "subType"; "required": false; }; "
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaMoneyFilterComponent, "app-ca-money-filter", never, { "type": { "alias": "type"; "required": false; }; "subType": { "alias": "subType"; "required": false; }; "isMoneyFilter": { "alias": "isMoneyFilter"; "required": false; }; "isMilesFilter": { "alias": "isMilesFilter"; "required": false; }; "fuelType": { "alias": "fuelType"; "required": false; }; "loadType": { "alias": "loadType"; "required": false; }; "isRepairFilter": { "alias": "isRepairFilter"; "required": false; }; "isFilterActive": { "alias": "isFilterActive"; "required": false; }; }, {}, never, never, true, never>;
|
|
79
85
|
}
|
package/lib/components/ca-filters/components/ca-money-filter/enums/money-filter-string.enum.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export declare enum MoneyFilterStringEnum {
|
|
|
2
2
|
SINGLE_FORM = "singleForm",
|
|
3
3
|
SINGLE_FROM = "singleFrom",
|
|
4
4
|
SINGLE_TO = "singleTo",
|
|
5
|
+
RANGE_FROM = "rangeFrom",
|
|
6
|
+
RANGE_TO = "rangeTo",
|
|
5
7
|
MULTI_FROM_FIRST = "multiFromFirst",
|
|
6
8
|
MULTI_FROM_FIRST_FROM = "multiFromFirstFrom",
|
|
7
9
|
MULTI_FROM_FIRST_TO = "multiFromFirstTo",
|
package/lib/components/ca-filters/components/ca-violation-filter/ca-violation-filter.component.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { ChangeContext, Options } from '@angular-slider/ngx-slider';
|
|
4
|
+
import { ThousandSeparatorPipe as ThousandSeparator } from '../../../../pipes/thousand-separator.pipe';
|
|
5
|
+
import { CaFiltersSvgRoutes } from '../../utils/svg-routes/ca-filters-svg-routes';
|
|
6
|
+
import { filterOutput } from '../../../../models/filter-output.model';
|
|
7
|
+
import { filterOutputWithParams } from '../../../../models/filter-output-params.model';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class CaViolationFilterComponent implements OnInit, OnDestroy {
|
|
10
|
+
private formBuilder;
|
|
11
|
+
private thousandSeparator;
|
|
12
|
+
type: string;
|
|
13
|
+
isFilterActive: boolean;
|
|
14
|
+
toDoSubType: string;
|
|
15
|
+
private destroy$;
|
|
16
|
+
violationFilterForm: UntypedFormGroup;
|
|
17
|
+
minValueRange: string;
|
|
18
|
+
maxValueRange: string;
|
|
19
|
+
minValueSet: string;
|
|
20
|
+
maxValueSet: string;
|
|
21
|
+
minValueDragged: number;
|
|
22
|
+
maxValueDragged: number;
|
|
23
|
+
rangeValue: number;
|
|
24
|
+
rangeDiffNum: number;
|
|
25
|
+
violationSliderData: Options;
|
|
26
|
+
constructor(formBuilder: UntypedFormBuilder, thousandSeparator: ThousandSeparator);
|
|
27
|
+
trackByIdentity: (index: number, _: any) => number;
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
setMinValueRange(mod: number | ChangeContext): void;
|
|
30
|
+
setMaxValueRange(mod: number | ChangeContext): void;
|
|
31
|
+
onFilterClose(): void;
|
|
32
|
+
private createForm;
|
|
33
|
+
clearAll(event?: Event): filterOutput | filterOutputWithParams | undefined;
|
|
34
|
+
setFilterValue(event: Event | undefined): filterOutput | filterOutputWithParams | undefined;
|
|
35
|
+
getSvgPath(propertyName: keyof typeof CaFiltersSvgRoutes): string;
|
|
36
|
+
ngOnDestroy(): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaViolationFilterComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaViolationFilterComponent, "app-ca-violation-filter", never, { "type": { "alias": "type"; "required": false; }; "isFilterActive": { "alias": "isFilterActive"; "required": false; }; "toDoSubType": { "alias": "toDoSubType"; "required": false; }; }, {}, never, never, true, never>;
|
|
39
|
+
}
|
|
@@ -7,10 +7,12 @@ import { CaStateFilterComponent } from '../components/ca-state-filter/ca-state-f
|
|
|
7
7
|
import { CaTruckTypeFilterComponent } from '../components/ca-truck-type-filter/ca-truck-type-filter.component';
|
|
8
8
|
import { CaTrailerTypeFilterComponent } from '../components/ca-trailer-type-filter/ca-trailer-type-filter.component';
|
|
9
9
|
import { CaPmFilterComponent } from '../components/ca-pm-filter/ca-pm-filter.component';
|
|
10
|
+
import { CaLocationFilterComponent } from '../components/ca-location-filter/ca-location-filter.component';
|
|
10
11
|
import { CaUserFilterComponent } from '../components/ca-user-filter/ca-user-filter.component';
|
|
12
|
+
import { CaViolationFilterComponent } from '../components/ca-violation-filter/ca-violation-filter.component';
|
|
11
13
|
import * as i0 from "@angular/core";
|
|
12
14
|
export declare class FilterConditionsClearPipe implements PipeTransform {
|
|
13
|
-
transform(type: string, caMoneyFilter: CaMoneyFilterComponent, caStatusFilter: CaStatusFilterComponent, caTimeFilter: CaTimeFilterComponent, caDispatcherFilter: CaDispatcherFilterComponent, caStateFilter: CaStateFilterComponent, caTruckTypeFilter: CaTruckTypeFilterComponent, caTrailerTypeFilter: CaTrailerTypeFilterComponent, caPmFilter: CaPmFilterComponent, caUserFilter: CaUserFilterComponent): boolean | number;
|
|
15
|
+
transform(type: string, caMoneyFilter: CaMoneyFilterComponent, caStatusFilter: CaStatusFilterComponent, caTimeFilter: CaTimeFilterComponent, caDispatcherFilter: CaDispatcherFilterComponent, caStateFilter: CaStateFilterComponent, caTruckTypeFilter: CaTruckTypeFilterComponent, caTrailerTypeFilter: CaTrailerTypeFilterComponent, caPmFilter: CaPmFilterComponent, caLocationFilter: CaLocationFilterComponent, caUserFilter: CaUserFilterComponent, caViolationFilter: CaViolationFilterComponent): boolean | number;
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterConditionsClearPipe, never>;
|
|
15
17
|
static ɵpipe: i0.ɵɵPipeDeclaration<FilterConditionsClearPipe, "filterConditionsClear", true>;
|
|
16
18
|
}
|
|
@@ -7,10 +7,12 @@ import { CaStateFilterComponent } from '../components/ca-state-filter/ca-state-f
|
|
|
7
7
|
import { CaTruckTypeFilterComponent } from '../components/ca-truck-type-filter/ca-truck-type-filter.component';
|
|
8
8
|
import { CaTrailerTypeFilterComponent } from '../components/ca-trailer-type-filter/ca-trailer-type-filter.component';
|
|
9
9
|
import { CaPmFilterComponent } from '../components/ca-pm-filter/ca-pm-filter.component';
|
|
10
|
+
import { CaLocationFilterComponent } from '../components/ca-location-filter/ca-location-filter.component';
|
|
10
11
|
import { CaUserFilterComponent } from '../components/ca-user-filter/ca-user-filter.component';
|
|
12
|
+
import { CaViolationFilterComponent } from '../components/ca-violation-filter/ca-violation-filter.component';
|
|
11
13
|
import * as i0 from "@angular/core";
|
|
12
14
|
export declare class FilterConditionsSetPipe implements PipeTransform {
|
|
13
|
-
transform(type: string, caMoneyFilter: CaMoneyFilterComponent, caStatusFilter: CaStatusFilterComponent, caTimeFilter: CaTimeFilterComponent, caDispatcherFilter: CaDispatcherFilterComponent, caStateFilter: CaStateFilterComponent, caTruckTypeFilter: CaTruckTypeFilterComponent, caTrailerTypeFilter: CaTrailerTypeFilterComponent, caPmFilter: CaPmFilterComponent, caUserFilter: CaUserFilterComponent): boolean | number;
|
|
15
|
+
transform(type: string, caMoneyFilter: CaMoneyFilterComponent, caStatusFilter: CaStatusFilterComponent, caTimeFilter: CaTimeFilterComponent, caDispatcherFilter: CaDispatcherFilterComponent, caStateFilter: CaStateFilterComponent, caTruckTypeFilter: CaTruckTypeFilterComponent, caTrailerTypeFilter: CaTrailerTypeFilterComponent, caPmFilter: CaPmFilterComponent, caLocationFilter: CaLocationFilterComponent, caUserFilter: CaUserFilterComponent, caViolationFilter: CaViolationFilterComponent): boolean | number;
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterConditionsSetPipe, never>;
|
|
15
17
|
static ɵpipe: i0.ɵɵPipeDeclaration<FilterConditionsSetPipe, "filterConditionsSet", true>;
|
|
16
18
|
}
|
|
@@ -2,6 +2,7 @@ import { ArrayStatus } from '../../../../models/array-status.model';
|
|
|
2
2
|
import { UserGroup } from '../../components/ca-user-filter/models/ca-user-group.model';
|
|
3
3
|
import { UserData } from '../../components/ca-user-filter/models/ca-user-data.model';
|
|
4
4
|
import { CaFiltersSvgRoutes } from '../svg-routes/ca-filters-svg-routes';
|
|
5
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
5
6
|
export declare class FilterHelper {
|
|
6
7
|
static sortItems(sortedFilterArray: ArrayStatus[], sortedSelectedFilterArray: ArrayStatus[], isAscendingSortOrder: boolean): {
|
|
7
8
|
sortedFilterArray: ArrayStatus[];
|
|
@@ -33,4 +34,5 @@ export declare class FilterHelper {
|
|
|
33
34
|
static getSvgPath(propertyName: keyof typeof CaFiltersSvgRoutes): string;
|
|
34
35
|
static handleGroupFilterClose(filterArray: UserGroup[], selectedFilterArray: UserGroup[], removeFunction: (item: UserData, index: number, index2: number) => void, addFunction: (item: UserData, index: number, index2: number) => void): void;
|
|
35
36
|
static handleFilterClose(filterArray: ArrayStatus[], selectedFilterArray: ArrayStatus[], removeFunction: (item: ArrayStatus, index: number) => void, addFunction: (item: ArrayStatus, index: number) => void): void;
|
|
37
|
+
static handleAreaFilterClose(locationForm: UntypedFormGroup, locationNameSet: string | null, longVal: number, latVal: number, longValueSet: number, latValSet: number, locationRange: number, locationRangeSet: number): void;
|
|
36
38
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './filter.helper';
|
|
@@ -14,7 +14,7 @@ export declare class CaInputComponent implements OnInit, OnDestroy, OnChanges, A
|
|
|
14
14
|
ngbMainPopover: NgbPopover;
|
|
15
15
|
inputConfig: ICaInput;
|
|
16
16
|
incorrectValue: boolean;
|
|
17
|
-
selectedDropdownLabelColor: LabelColor;
|
|
17
|
+
selectedDropdownLabelColor: LabelColor | null;
|
|
18
18
|
template: string;
|
|
19
19
|
incorrectInput: EventEmitter<boolean>;
|
|
20
20
|
blurInput: EventEmitter<boolean>;
|
|
@@ -9,7 +9,7 @@ export declare class CaInputClearComponent {
|
|
|
9
9
|
getSuperControl: AbstractControl<any, any> | null;
|
|
10
10
|
isFocusInput: boolean;
|
|
11
11
|
incorrectValue: boolean;
|
|
12
|
-
selectedDropdownLabelColor: LabelColor;
|
|
12
|
+
selectedDropdownLabelColor: LabelColor | null;
|
|
13
13
|
clearInputClick: EventEmitter<Event>;
|
|
14
14
|
constructor();
|
|
15
15
|
clearInput(event: Event): void;
|
|
@@ -11,7 +11,7 @@ export declare class CaInputPlaceholderIconComponent implements OnInit, AfterVie
|
|
|
11
11
|
getSuperControl: AbstractControl<any, any> | null;
|
|
12
12
|
isFocusInput: boolean;
|
|
13
13
|
isTouchedInput: boolean;
|
|
14
|
-
selectedDropdownLabelColor: LabelColor;
|
|
14
|
+
selectedDropdownLabelColor: LabelColor | null;
|
|
15
15
|
isEditInput: boolean;
|
|
16
16
|
dateTimePopover: TemplateRef<any>;
|
|
17
17
|
onPopoverShownEmitter: EventEmitter<boolean>;
|
|
@@ -4,7 +4,7 @@ import { ICaInput } from "../config/ca-input.config";
|
|
|
4
4
|
import { LabelColor } from "../models/label-color.model";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class InputPlaceholderIconClassPipe implements PipeTransform {
|
|
7
|
-
transform(getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, inputConfig: ICaInput, selectedDropdownLabelColor: LabelColor, isTouchedInput: boolean, isEditInput: boolean, value: string): {
|
|
7
|
+
transform(getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, inputConfig: ICaInput, selectedDropdownLabelColor: LabelColor | null, isTouchedInput: boolean, isEditInput: boolean, value: string): {
|
|
8
8
|
[key: string]: boolean | undefined;
|
|
9
9
|
};
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputPlaceholderIconClassPipe, never>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
|
2
|
+
import { EventEmitter, OnDestroy, OnInit, ChangeDetectorRef } from '@angular/core';
|
|
3
|
+
import { UntypedFormGroup, NgControl, ControlValueAccessor } from '@angular/forms';
|
|
4
|
+
import { ICaInput } from '../ca-input/config/ca-input.config';
|
|
5
|
+
import { CaInputDropdownComponent } from '../ca-input-dropdown/ca-input-dropdown.component';
|
|
6
|
+
import { AddressData } from './models/address-data.model';
|
|
7
|
+
import { AddressList } from './models/address-list.model';
|
|
8
|
+
import { CommandsHandler } from './models/commands-handler.model';
|
|
9
|
+
import { InputAddressCommandsString } from './models/input-address-commands-string.model';
|
|
10
|
+
import { SentAddressData } from './models/sent-address-data.model';
|
|
11
|
+
import { AddressListResponse } from '../../models/address-list-response.model';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class CaInputAddressDropdownComponent implements OnInit, ControlValueAccessor, OnDestroy {
|
|
14
|
+
superControl: NgControl;
|
|
15
|
+
private ref;
|
|
16
|
+
inputDropdown: CaInputDropdownComponent;
|
|
17
|
+
set placeholderType(value: string);
|
|
18
|
+
activeAddress: AddressList | null;
|
|
19
|
+
receivedAddressData: AddressData | null;
|
|
20
|
+
receivedAddressList: AddressListResponse | null;
|
|
21
|
+
sentAddressValue: EventEmitter<string>;
|
|
22
|
+
inputConfig: ICaInput;
|
|
23
|
+
commandHandler: CommandsHandler;
|
|
24
|
+
isRouting: boolean;
|
|
25
|
+
closedBorder: boolean;
|
|
26
|
+
incorrectValue: boolean;
|
|
27
|
+
hideEmptyLoaded: boolean;
|
|
28
|
+
selectedAddress: EventEmitter<AddressData>;
|
|
29
|
+
sentAddressData: EventEmitter<SentAddressData>;
|
|
30
|
+
closeDropdown: EventEmitter<boolean>;
|
|
31
|
+
commandEvent: EventEmitter<AddressData | {}>;
|
|
32
|
+
changeFlag: EventEmitter<boolean>;
|
|
33
|
+
incorrectEvent: EventEmitter<boolean>;
|
|
34
|
+
handleKeyboardEvent(event: KeyboardEvent): void;
|
|
35
|
+
addresList: AddressList[];
|
|
36
|
+
private searchLayers;
|
|
37
|
+
currentAddressData: AddressData | null;
|
|
38
|
+
addressExpanded: boolean;
|
|
39
|
+
chosenFromDropdown: boolean;
|
|
40
|
+
private allowValidation;
|
|
41
|
+
stopType: string;
|
|
42
|
+
private requestSent;
|
|
43
|
+
private destroy$;
|
|
44
|
+
addressForm: UntypedFormGroup;
|
|
45
|
+
constructor(superControl: NgControl, ref: ChangeDetectorRef);
|
|
46
|
+
writeValue(_: any): void;
|
|
47
|
+
registerOnChange(fn: any): void;
|
|
48
|
+
onChange(_: any): void;
|
|
49
|
+
registerOnTouched(_: any): void;
|
|
50
|
+
ngOnInit(): void;
|
|
51
|
+
initChangesListener(): void;
|
|
52
|
+
get getSuperControl(): FormControl<any>;
|
|
53
|
+
onCloseDropdown(e: boolean): void;
|
|
54
|
+
getAddressData(address: string): void;
|
|
55
|
+
onSelectDropdown(event: AddressList | null, action: string): void;
|
|
56
|
+
onCommands(e: KeyboardEvent, type: InputAddressCommandsString): void;
|
|
57
|
+
addressExpand(): void;
|
|
58
|
+
closeAddress(): void;
|
|
59
|
+
clearInput(e: KeyboardEvent): void;
|
|
60
|
+
private checkSearchLayers;
|
|
61
|
+
changeStopType(): void;
|
|
62
|
+
onIncorrectInput(event: boolean): void;
|
|
63
|
+
onClearInputEvent(): void;
|
|
64
|
+
private checkAddressValidation;
|
|
65
|
+
ngOnDestroy(): void;
|
|
66
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaInputAddressDropdownComponent, [{ self: true; }, null]>;
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaInputAddressDropdownComponent, "app-ca-input-address-dropdown", never, { "placeholderType": { "alias": "placeholderType"; "required": false; }; "activeAddress": { "alias": "activeAddress"; "required": false; }; "receivedAddressData": { "alias": "receivedAddressData"; "required": false; }; "receivedAddressList": { "alias": "receivedAddressList"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; "commandHandler": { "alias": "commandHandler"; "required": false; }; "isRouting": { "alias": "isRouting"; "required": false; }; "closedBorder": { "alias": "closedBorder"; "required": false; }; "incorrectValue": { "alias": "incorrectValue"; "required": false; }; "hideEmptyLoaded": { "alias": "hideEmptyLoaded"; "required": false; }; }, { "sentAddressValue": "sentAddressValue"; "selectedAddress": "selectedAddress"; "sentAddressData": "sentAddressData"; "closeDropdown": "closeDropdown"; "commandEvent": "commandEvent"; "changeFlag": "changeFlag"; "incorrectEvent": "incorrectEvent"; }, never, never, true, never>;
|
|
68
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InputAddressCommandsStringEnum } from '../enums/input-address-commands-string.enum';
|
|
2
|
+
import { AddressEntity } from '../../../models/address-entity.model';
|
|
3
|
+
import { LongLat } from './long-lat.model';
|
|
4
|
+
import { InputAddressCommandsString } from './input-address-commands-string.model';
|
|
5
|
+
export interface AddressData {
|
|
6
|
+
address: AddressEntity;
|
|
7
|
+
longLat?: LongLat;
|
|
8
|
+
valid: boolean;
|
|
9
|
+
type?: InputAddressCommandsStringEnum | InputAddressCommandsString;
|
|
10
|
+
}
|