ca-components 0.0.46 → 0.0.48
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/in-out.animation.mjs +1 -1
- package/esm2022/lib/components/ca-app-tooltip-v2/ca-app-tooltip-v2.component.mjs +6 -5
- package/esm2022/lib/components/ca-custom-datetime-pickers/ca-custom-datetime-pickers.component.mjs +1 -2
- package/esm2022/lib/components/ca-filters/ca-filter.component.mjs +37 -150
- package/esm2022/lib/components/ca-filters/components/ca-money-filter/ca-money-filter.component.mjs +7 -7
- 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-time-filter/ca-time-filter.component.mjs +3 -3
- package/esm2022/lib/components/ca-filters/components/ca-trailer-type-filter/ca-trailer-type-filter.component.mjs +4 -5
- package/esm2022/lib/components/ca-filters/components/ca-truck-type-filter/ca-truck-type-filter.component.mjs +4 -5
- package/esm2022/lib/components/ca-filters/components/ca-user-filter/ca-user-filter.component.mjs +247 -0
- package/esm2022/lib/components/ca-filters/components/ca-user-filter/config/ca-user-filter.config.mjs +15 -0
- package/esm2022/lib/components/ca-filters/components/ca-user-filter/models/ca-user-data.model.mjs +2 -0
- package/esm2022/lib/components/ca-filters/components/ca-user-filter/models/ca-user-group.model.mjs +2 -0
- package/esm2022/lib/components/ca-filters/components/ca-user-filter/pipes/filter-selected-items.pipe.mjs +20 -0
- package/esm2022/lib/components/ca-filters/components/ca-user-filter/pipes/group-selection-state.pipe.mjs +23 -0
- package/esm2022/lib/components/ca-filters/components/ca-user-filter/pipes/selected-users.pipe.mjs +19 -0
- package/esm2022/lib/components/ca-filters/pipes/filter-conditions-clear.pipe.mjs +5 -15
- package/esm2022/lib/components/ca-filters/pipes/filter-conditions-set.pipe.mjs +5 -25
- package/esm2022/lib/components/ca-filters/pipes/filter-conditions-user-box.pipe.mjs +1 -2
- package/esm2022/lib/components/ca-filters/pipes/filter-popover-conditions.pipe.mjs +6 -2
- package/esm2022/lib/components/ca-filters/utils/constants/directive.constants.mjs +258 -1
- package/esm2022/lib/components/ca-filters/utils/helpers/filter.helper.mjs +76 -1
- package/esm2022/lib/components/ca-filters/utils/svg-routes/ca-filters-svg-routes.mjs +4 -1
- package/esm2022/lib/components/ca-input/ca-input.component.mjs +28 -68
- package/esm2022/lib/components/ca-input/components/ca-input-clear/ca-input-clear.component.mjs +4 -4
- package/esm2022/lib/components/ca-input/components/ca-input-commands/ca-input-commands.component.mjs +1 -1
- package/esm2022/lib/components/ca-input/components/ca-input-datetime-picker/ca-input-datetime-picker.component.mjs +6 -6
- package/esm2022/lib/components/ca-input/components/ca-input-password/ca-input-password.component.mjs +3 -3
- package/esm2022/lib/components/ca-input/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.mjs +12 -6
- package/esm2022/lib/components/ca-input/config/index.mjs +2 -0
- package/esm2022/lib/components/ca-input/enums/index.mjs +5 -0
- package/esm2022/lib/components/ca-input/enums/input-config-name-string.enum.mjs +3 -1
- package/esm2022/lib/components/ca-input/enums/input-string.enum.mjs +5 -0
- package/esm2022/lib/components/ca-input/models/index.mjs +4 -0
- package/esm2022/lib/components/ca-input/pipes/color-finder.pipe.mjs +62 -0
- package/esm2022/lib/components/ca-input/pipes/form-control.pipe.mjs +17 -0
- package/esm2022/lib/components/ca-input/pipes/index.mjs +17 -0
- package/esm2022/lib/components/ca-input/pipes/show-dropdown-arrow.pipe.mjs +4 -3
- package/esm2022/lib/components/ca-input/services/ca-input-state.service.mjs +233 -23
- package/esm2022/lib/components/ca-input/services/index.mjs +2 -0
- package/esm2022/lib/components/ca-input/utils/index.mjs +3 -0
- package/esm2022/lib/components/ca-input/utils/input-change-value.type.mjs +2 -0
- package/esm2022/lib/components/ca-input/utils/input-svg-routes.mjs +3 -1
- package/esm2022/lib/components/ca-map/enums/toolbar-filter-string.enum.mjs +4 -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/models/driver-info.mjs +1 -1
- package/esm2022/lib/directives/hover-svg-directives.mjs +47 -0
- package/esm2022/lib/pipes/load-status-color.pipe.mjs +169 -0
- package/fesm2022/ca-components.mjs +1652 -699
- package/fesm2022/ca-components.mjs.map +1 -1
- package/lib/components/ca-app-tooltip-v2/ca-app-tooltip-v2.component.d.ts +4 -3
- package/lib/components/ca-filters/ca-filter.component.d.ts +5 -1
- package/lib/components/ca-filters/components/ca-money-filter/ca-money-filter.component.d.ts +4 -5
- package/lib/components/ca-filters/components/ca-trailer-type-filter/ca-trailer-type-filter.component.d.ts +2 -3
- package/lib/components/ca-filters/components/ca-truck-type-filter/ca-truck-type-filter.component.d.ts +2 -3
- package/lib/components/ca-filters/components/ca-user-filter/ca-user-filter.component.d.ts +52 -0
- package/lib/components/ca-filters/components/ca-user-filter/config/ca-user-filter.config.d.ts +4 -0
- package/lib/components/ca-filters/components/ca-user-filter/models/ca-user-data.model.d.ts +10 -0
- package/lib/components/ca-filters/components/ca-user-filter/models/ca-user-group.model.d.ts +6 -0
- package/lib/components/ca-filters/components/ca-user-filter/pipes/filter-selected-items.pipe.d.ts +8 -0
- package/lib/components/ca-filters/components/ca-user-filter/pipes/group-selection-state.pipe.d.ts +11 -0
- package/lib/components/ca-filters/components/ca-user-filter/pipes/selected-users.pipe.d.ts +8 -0
- package/lib/components/ca-filters/pipes/filter-conditions-clear.pipe.d.ts +2 -1
- package/lib/components/ca-filters/pipes/filter-conditions-set.pipe.d.ts +2 -1
- package/lib/components/ca-filters/utils/constants/directive.constants.d.ts +3 -0
- package/lib/components/ca-filters/utils/helpers/filter.helper.d.ts +16 -0
- package/lib/components/ca-filters/utils/svg-routes/ca-filters-svg-routes.d.ts +3 -0
- package/lib/components/ca-input/ca-input.component.d.ts +10 -9
- package/lib/components/ca-input/components/ca-input-clear/ca-input-clear.component.d.ts +3 -3
- package/lib/components/ca-input/components/ca-input-commands/ca-input-commands.component.d.ts +2 -2
- package/lib/components/ca-input/components/ca-input-datetime-picker/ca-input-datetime-picker.component.d.ts +2 -2
- package/lib/components/ca-input/components/ca-input-password/ca-input-password.component.d.ts +2 -2
- 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/index.d.ts +1 -0
- package/lib/components/ca-input/enums/index.d.ts +4 -0
- package/lib/components/ca-input/enums/input-config-name-string.enum.d.ts +3 -1
- package/lib/components/ca-input/enums/input-string.enum.d.ts +3 -0
- package/lib/components/ca-input/models/index.d.ts +3 -0
- package/lib/components/ca-input/pipes/color-finder.pipe.d.ts +7 -0
- package/lib/components/ca-input/pipes/form-control.pipe.d.ts +8 -0
- package/lib/components/ca-input/pipes/index.d.ts +16 -0
- package/lib/components/ca-input/services/ca-input-state.service.d.ts +30 -6
- package/lib/components/ca-input/services/index.d.ts +1 -0
- package/lib/components/ca-input/utils/index.d.ts +2 -0
- package/lib/components/ca-input/utils/input-change-value.type.d.ts +1 -0
- package/lib/components/ca-input/utils/input-svg-routes.d.ts +2 -0
- package/lib/components/ca-map/enums/toolbar-filter-string.enum.d.ts +3 -1
- package/lib/components/ca-payroll-list-summary-overview/ca-payroll-list-summary-overview.component.d.ts +4 -1
- package/lib/directives/hover-svg-directives.d.ts +15 -0
- package/lib/pipes/load-status-color.pipe.d.ts +7 -0
- package/package.json +1 -1
- package/src/assets/ca-components/svg/common/ic_accounting.svg +3 -0
- package/src/assets/ca-components/svg/common/ic_arrow_filter.svg +3 -0
- package/src/assets/ca-components/svg/common/ic_contact.svg +3 -0
- package/src/assets/ca-components/svg/common/ic_customer.svg +4 -0
- package/src/assets/ca-components/svg/common/ic_debtor.svg +3 -0
- package/src/assets/ca-components/svg/common/ic_document.svg +3 -0
- package/src/assets/ca-components/svg/common/ic_driver.svg +3 -0
- package/src/assets/ca-components/svg/common/ic_fmcsa.svg +5 -0
- package/src/assets/ca-components/svg/common/ic_integration.svg +3 -0
- package/src/assets/ca-components/svg/common/ic_load.svg +5 -0
- package/src/assets/ca-components/svg/common/ic_location_map.svg +3 -0
- package/src/assets/ca-components/svg/common/ic_miles.svg +3 -0
- package/src/assets/ca-components/svg/common/ic_owner.svg +3 -0
- package/src/assets/ca-components/svg/common/ic_password_key.svg +3 -0
- package/src/assets/ca-components/svg/common/ic_settings.svg +4 -0
- package/src/assets/ca-components/svg/common/ic_telematics.svg +3 -0
- package/src/assets/ca-components/svg/common/ic_todo.svg +4 -0
- package/src/assets/ca-components/svg/common/ic_unsafe_driving.svg +3 -0
- package/src/assets/ca-components/svg/input/ic_dynamic_focus_label.svg +6 -0
- package/src/assets/ca-components/svg/input/ic_dynamic_label.svg +6 -0
- package/esm2022/lib/components/ca-filters/utils/svg-routes/ca-money-filter-svg-routes.mjs +0 -4
- package/lib/components/ca-filters/utils/svg-routes/ca-money-filter-svg-routes.d.ts +0 -3
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap';
|
|
2
|
-
import { TemplateRef, AfterViewInit } from
|
|
2
|
+
import { TemplateRef, AfterViewInit, OnInit } from '@angular/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CaAppTooltipV2Component implements AfterViewInit {
|
|
4
|
+
export declare class CaAppTooltipV2Component implements OnInit, AfterViewInit {
|
|
5
5
|
private ngbTooltop;
|
|
6
|
-
constructor(ngbTooltop: NgbTooltip);
|
|
7
6
|
mainTooltip?: string;
|
|
8
7
|
position: string;
|
|
9
8
|
openTooltipDelay: number;
|
|
@@ -12,6 +11,8 @@ export declare class CaAppTooltipV2Component implements AfterViewInit {
|
|
|
12
11
|
tooltipTextAlign: string;
|
|
13
12
|
tooltipMarginTop: string;
|
|
14
13
|
template: TemplateRef<void>;
|
|
14
|
+
constructor(ngbTooltop: NgbTooltip);
|
|
15
|
+
ngOnInit(): void;
|
|
15
16
|
ngAfterViewInit(): void;
|
|
16
17
|
bindTemplete(): void;
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaAppTooltipV2Component, [{ host: true; }]>;
|
|
@@ -4,6 +4,7 @@ import { CaFiltersSvgRoutes } from '../ca-filters/utils/svg-routes/ca-filters-sv
|
|
|
4
4
|
import { ArrayStatus } from '../../models/array-status.model';
|
|
5
5
|
import { filterOutput } from '../../models/filter-output.model';
|
|
6
6
|
import { filterOutputWithParams } from '../../models/filter-output-params.model';
|
|
7
|
+
import { UserGroup } from './components/ca-user-filter/models/ca-user-group.model';
|
|
7
8
|
import { CaMoneyFilterComponent } from './components/ca-money-filter/ca-money-filter.component';
|
|
8
9
|
import { CaStatusFilterComponent } from './components/ca-status-filter/ca-status-filter.component';
|
|
9
10
|
import { CaTimeFilterComponent } from './components/ca-time-filter/ca-time-filter.component';
|
|
@@ -12,6 +13,7 @@ import { CaStateFilterComponent } from './components/ca-state-filter/ca-state-fi
|
|
|
12
13
|
import { CaTruckTypeFilterComponent } from './components/ca-truck-type-filter/ca-truck-type-filter.component';
|
|
13
14
|
import { CaTrailerTypeFilterComponent } from './components/ca-trailer-type-filter/ca-trailer-type-filter.component';
|
|
14
15
|
import { CaPmFilterComponent } from './components/ca-pm-filter/ca-pm-filter.component';
|
|
16
|
+
import { CaUserFilterComponent } from './components/ca-user-filter/ca-user-filter.component';
|
|
15
17
|
import { CaAutoclosePopoverComponent } from '../ca-autoclose-popover/ca-autoclose-popover.component';
|
|
16
18
|
import * as i0 from "@angular/core";
|
|
17
19
|
export declare class CaFilterComponent implements OnDestroy {
|
|
@@ -26,10 +28,12 @@ export declare class CaFilterComponent implements OnDestroy {
|
|
|
26
28
|
caTruckTypeFilter: CaTruckTypeFilterComponent;
|
|
27
29
|
caTrailerTypeFilter: CaTrailerTypeFilterComponent;
|
|
28
30
|
caPmFilter: CaPmFilterComponent;
|
|
31
|
+
caUserFilter: CaUserFilterComponent;
|
|
29
32
|
type: string;
|
|
30
33
|
timeSubType: string;
|
|
31
34
|
subType: string;
|
|
32
35
|
unselectedUser: ArrayStatus[];
|
|
36
|
+
userGroup: UserGroup[];
|
|
33
37
|
loadStatusOptionsArray: ArrayStatus[];
|
|
34
38
|
truckTypeArray: ArrayStatus[];
|
|
35
39
|
trailerTypeArray: ArrayStatus[];
|
|
@@ -70,5 +74,5 @@ export declare class CaFilterComponent implements OnDestroy {
|
|
|
70
74
|
getSvgPath(propertyName: keyof typeof CaFiltersSvgRoutes): string;
|
|
71
75
|
ngOnDestroy(): void;
|
|
72
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaFilterComponent, never>;
|
|
73
|
-
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; }; "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>;
|
|
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>;
|
|
74
78
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OnInit, OnDestroy
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { ThousandSeparatorPipe as ThousandSeparator } from '../../../../pipes/thousand-separator.pipe';
|
|
4
|
-
import {
|
|
4
|
+
import { CaFiltersSvgRoutes } from '../../utils/svg-routes/ca-filters-svg-routes';
|
|
5
5
|
import { ArrayStatus } from '../../../../models/array-status.model';
|
|
6
6
|
import { filterOutput } from '../../../../models/filter-output.model';
|
|
7
7
|
import { filterOutputWithParams } from '../../../../models/filter-output-params.model';
|
|
@@ -10,7 +10,6 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
export declare class CaMoneyFilterComponent implements OnInit, OnDestroy {
|
|
11
11
|
private formBuilder;
|
|
12
12
|
private thousandSeparator;
|
|
13
|
-
private renderer;
|
|
14
13
|
type: string;
|
|
15
14
|
subType: string;
|
|
16
15
|
moneyFilter: boolean;
|
|
@@ -46,7 +45,7 @@ export declare class CaMoneyFilterComponent implements OnInit, OnDestroy {
|
|
|
46
45
|
swipeActiveRange: number;
|
|
47
46
|
totalFiltersNum: number;
|
|
48
47
|
isSingleFormActive: boolean;
|
|
49
|
-
constructor(formBuilder: UntypedFormBuilder, thousandSeparator: ThousandSeparator
|
|
48
|
+
constructor(formBuilder: UntypedFormBuilder, thousandSeparator: ThousandSeparator);
|
|
50
49
|
ngOnInit(): void;
|
|
51
50
|
get singleFormFrom(): ICaInput;
|
|
52
51
|
get singleFormTo(): ICaInput;
|
|
@@ -73,7 +72,7 @@ export declare class CaMoneyFilterComponent implements OnInit, OnDestroy {
|
|
|
73
72
|
multiFormThirdFrom: string;
|
|
74
73
|
multiFormThirdTo: string;
|
|
75
74
|
}): void;
|
|
76
|
-
getSvgPath(propertyName: keyof typeof
|
|
75
|
+
getSvgPath(propertyName: keyof typeof CaFiltersSvgRoutes): string;
|
|
77
76
|
ngOnDestroy(): void;
|
|
78
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaMoneyFilterComponent, never>;
|
|
79
78
|
static ɵcmp: i0.ɵɵComponentDeclaration<CaMoneyFilterComponent, "app-ca-money-filter", never, { "type": { "alias": "type"; "required": false; }; "subType": { "alias": "subType"; "required": false; }; "moneyFilter": { "alias": "moneyFilter"; "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>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit, OnDestroy
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { userSelected } from '../../../../models/user-selected.model';
|
|
3
3
|
import { ArrayStatus } from '../../../../models/array-status.model';
|
|
4
4
|
import { filterOutput } from '../../../../models/filter-output.model';
|
|
@@ -8,7 +8,6 @@ import { TruckassistTableService } from '../../../../services/truckassist-table.
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class CaTrailerTypeFilterComponent implements OnInit, OnDestroy {
|
|
10
10
|
private tableService;
|
|
11
|
-
private renderer;
|
|
12
11
|
type: string;
|
|
13
12
|
isFilterActive: boolean;
|
|
14
13
|
hasLeftSideIcon: boolean;
|
|
@@ -19,7 +18,7 @@ export declare class CaTrailerTypeFilterComponent implements OnInit, OnDestroy {
|
|
|
19
18
|
isAscendingSortOrder: boolean;
|
|
20
19
|
filterActiveArray: ArrayStatus[];
|
|
21
20
|
unselectedVisibleCount: number;
|
|
22
|
-
constructor(tableService: TruckassistTableService
|
|
21
|
+
constructor(tableService: TruckassistTableService);
|
|
23
22
|
ngOnInit(): void;
|
|
24
23
|
trackByIdentity(index: number): number;
|
|
25
24
|
onFilterClose(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit, OnDestroy
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { userSelected } from '../../../../models/user-selected.model';
|
|
3
3
|
import { ArrayStatus } from '../../../../models/array-status.model';
|
|
4
4
|
import { filterOutput } from '../../../../models/filter-output.model';
|
|
@@ -8,7 +8,6 @@ import { TruckassistTableService } from '../../../../services/truckassist-table.
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class CaTruckTypeFilterComponent implements OnInit, OnDestroy {
|
|
10
10
|
private tableService;
|
|
11
|
-
private renderer;
|
|
12
11
|
type: string;
|
|
13
12
|
isFilterActive: boolean;
|
|
14
13
|
hasLeftSideIcon: boolean;
|
|
@@ -19,7 +18,7 @@ export declare class CaTruckTypeFilterComponent implements OnInit, OnDestroy {
|
|
|
19
18
|
isAscendingSortOrder: boolean;
|
|
20
19
|
filterActiveArray: ArrayStatus[];
|
|
21
20
|
unselectedVisibleCount: number;
|
|
22
|
-
constructor(tableService: TruckassistTableService
|
|
21
|
+
constructor(tableService: TruckassistTableService);
|
|
23
22
|
ngOnInit(): void;
|
|
24
23
|
trackByIdentity(index: number): number;
|
|
25
24
|
onFilterClose(): void;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { LoadStatusEnum } from '../../../../enums/load-status.enum';
|
|
4
|
+
import { filterOutput } from '../../../../models/filter-output.model';
|
|
5
|
+
import { filterOutputWithParams } from '../../../../models/filter-output-params.model';
|
|
6
|
+
import { UserData } from './models/ca-user-data.model';
|
|
7
|
+
import { UserGroup } from './models/ca-user-group.model';
|
|
8
|
+
import { CaFiltersSvgRoutes } from '../../utils/svg-routes/ca-filters-svg-routes';
|
|
9
|
+
import { ICaInput } from '../../../ca-input/config/ca-input.config';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class CaUserFilterComponent implements OnInit, OnDestroy {
|
|
12
|
+
private formBuilder;
|
|
13
|
+
type: string;
|
|
14
|
+
isFilterActive: boolean;
|
|
15
|
+
filterTitle: string;
|
|
16
|
+
hasLeftSideIcon: boolean;
|
|
17
|
+
toDoSubType: string;
|
|
18
|
+
userGroup: UserGroup[];
|
|
19
|
+
isSearchExpanded: boolean;
|
|
20
|
+
private destroy$;
|
|
21
|
+
loadStatusEnum: typeof LoadStatusEnum;
|
|
22
|
+
searchForm: UntypedFormGroup;
|
|
23
|
+
searchInputValue: string;
|
|
24
|
+
unselectedVisibleCount: number;
|
|
25
|
+
caFiltersSvgRoutes: CaFiltersSvgRoutes;
|
|
26
|
+
selectedUserGroup: UserGroup[];
|
|
27
|
+
filterActiveArray: UserGroup[];
|
|
28
|
+
isAscendingSortOrder: boolean;
|
|
29
|
+
isButtonAvailable: boolean;
|
|
30
|
+
hasSelectedUsers: boolean;
|
|
31
|
+
totalFiltersNum: number;
|
|
32
|
+
constructor(formBuilder: UntypedFormBuilder);
|
|
33
|
+
ngOnInit(): void;
|
|
34
|
+
get userSearch(): ICaInput;
|
|
35
|
+
onGroupSwitchState(group: UserGroup): void;
|
|
36
|
+
onCheckboxSelect(event: Event, group: UserGroup): void;
|
|
37
|
+
onFilterClose(): void;
|
|
38
|
+
setFilterValue(event: Event): filterOutput | filterOutputWithParams | undefined;
|
|
39
|
+
clearAll(event?: Event): filterOutput | filterOutputWithParams;
|
|
40
|
+
trackByIdentity(index: number): number;
|
|
41
|
+
private createForm;
|
|
42
|
+
handleSelectedUsers(item: UserData, indx: number, indx2: number): void;
|
|
43
|
+
addToSelectedUser(item: UserData, indx: number, indx2: number): void;
|
|
44
|
+
removeFromSelectedUser(item: UserData, indx: number, indx2: number): void;
|
|
45
|
+
checkFilterActiveValue(): void;
|
|
46
|
+
private watchSearchFormValueChanges;
|
|
47
|
+
sortItems(): void;
|
|
48
|
+
getSvgPath(propertyName: keyof typeof CaFiltersSvgRoutes): string;
|
|
49
|
+
ngOnDestroy(): void;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaUserFilterComponent, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaUserFilterComponent, "app-ca-user-filter", never, { "type": { "alias": "type"; "required": false; }; "isFilterActive": { "alias": "isFilterActive"; "required": false; }; "filterTitle": { "alias": "filterTitle"; "required": false; }; "hasLeftSideIcon": { "alias": "hasLeftSideIcon"; "required": false; }; "toDoSubType": { "alias": "toDoSubType"; "required": false; }; "userGroup": { "alias": "userGroup"; "required": false; }; "isSearchExpanded": { "alias": "isSearchExpanded"; "required": false; }; }, {}, never, never, true, never>;
|
|
52
|
+
}
|
package/lib/components/ca-filters/components/ca-user-filter/pipes/filter-selected-items.pipe.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { UserData } from '../models/ca-user-data.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FilterSelectedItemsPipe implements PipeTransform {
|
|
5
|
+
transform(items: UserData[]): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterSelectedItemsPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FilterSelectedItemsPipe, "filterSelectedItems", true>;
|
|
8
|
+
}
|
package/lib/components/ca-filters/components/ca-user-filter/pipes/group-selection-state.pipe.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { UserGroup } from '../models/ca-user-group.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GroupSelectionStatePipe implements PipeTransform {
|
|
5
|
+
transform(group: UserGroup): {
|
|
6
|
+
allSelected: boolean;
|
|
7
|
+
someSelected: boolean;
|
|
8
|
+
};
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GroupSelectionStatePipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<GroupSelectionStatePipe, "groupSelectionState", true>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { UserData } from '../models/ca-user-data.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SelectedUsersPipe implements PipeTransform {
|
|
5
|
+
transform(userData: UserData[], onlySelected?: boolean): UserData[];
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectedUsersPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SelectedUsersPipe, "selectedUser", true>;
|
|
8
|
+
}
|
|
@@ -7,9 +7,10 @@ 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 { CaUserFilterComponent } from '../components/ca-user-filter/ca-user-filter.component';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class FilterConditionsClearPipe implements PipeTransform {
|
|
12
|
-
transform(type: string, caMoneyFilter: CaMoneyFilterComponent, caStatusFilter: CaStatusFilterComponent, caTimeFilter: CaTimeFilterComponent, caDispatcherFilter: CaDispatcherFilterComponent, caStateFilter: CaStateFilterComponent, caTruckTypeFilter: CaTruckTypeFilterComponent, caTrailerTypeFilter: CaTrailerTypeFilterComponent, caPmFilter: CaPmFilterComponent): boolean | number;
|
|
13
|
+
transform(type: string, caMoneyFilter: CaMoneyFilterComponent, caStatusFilter: CaStatusFilterComponent, caTimeFilter: CaTimeFilterComponent, caDispatcherFilter: CaDispatcherFilterComponent, caStateFilter: CaStateFilterComponent, caTruckTypeFilter: CaTruckTypeFilterComponent, caTrailerTypeFilter: CaTrailerTypeFilterComponent, caPmFilter: CaPmFilterComponent, caUserFilter: CaUserFilterComponent): boolean | number;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterConditionsClearPipe, never>;
|
|
14
15
|
static ɵpipe: i0.ɵɵPipeDeclaration<FilterConditionsClearPipe, "filterConditionsClear", true>;
|
|
15
16
|
}
|
|
@@ -7,9 +7,10 @@ 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 { CaUserFilterComponent } from '../components/ca-user-filter/ca-user-filter.component';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class FilterConditionsSetPipe implements PipeTransform {
|
|
12
|
-
transform(type: string, caMoneyFilter: CaMoneyFilterComponent, caStatusFilter: CaStatusFilterComponent, caTimeFilter: CaTimeFilterComponent, caDispatcherFilter: CaDispatcherFilterComponent, caStateFilter: CaStateFilterComponent, caTruckTypeFilter: CaTruckTypeFilterComponent, caTrailerTypeFilter: CaTrailerTypeFilterComponent, caPmFilter: CaPmFilterComponent): boolean | number;
|
|
13
|
+
transform(type: string, caMoneyFilter: CaMoneyFilterComponent, caStatusFilter: CaStatusFilterComponent, caTimeFilter: CaTimeFilterComponent, caDispatcherFilter: CaDispatcherFilterComponent, caStateFilter: CaStateFilterComponent, caTruckTypeFilter: CaTruckTypeFilterComponent, caTrailerTypeFilter: CaTrailerTypeFilterComponent, caPmFilter: CaPmFilterComponent, caUserFilter: CaUserFilterComponent): boolean | number;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterConditionsSetPipe, never>;
|
|
14
15
|
static ɵpipe: i0.ɵɵPipeDeclaration<FilterConditionsSetPipe, "filterConditionsSet", true>;
|
|
15
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ArrayStatus } from '../../../../models/array-status.model';
|
|
2
|
+
import { UserGroup } from '../../components/ca-user-filter/models/ca-user-group.model';
|
|
2
3
|
export declare class DirectiveConstants {
|
|
3
4
|
static UNSELECTED_USER: ArrayStatus[];
|
|
4
5
|
static DRIVER_ARRAY: ArrayStatus[];
|
|
@@ -16,4 +17,6 @@ export declare class DirectiveConstants {
|
|
|
16
17
|
static TAG_ARRAY: ArrayStatus[];
|
|
17
18
|
static ACTION_ARRAY: ArrayStatus[];
|
|
18
19
|
static LABEL_ARRAY: ArrayStatus[];
|
|
20
|
+
static USER_GROUP_ARRAY: UserGroup[];
|
|
21
|
+
static MODULE_GROUP_ARRAY: UserGroup[];
|
|
19
22
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ArrayStatus } from '../../../../models/array-status.model';
|
|
2
|
+
import { UserGroup } from '../../components/ca-user-filter/models/ca-user-group.model';
|
|
3
|
+
import { UserData } from '../../components/ca-user-filter/models/ca-user-data.model';
|
|
2
4
|
import { CaFiltersSvgRoutes } from '../svg-routes/ca-filters-svg-routes';
|
|
3
5
|
export declare class FilterHelper {
|
|
4
6
|
static sortItems(sortedFilterArray: ArrayStatus[], sortedSelectedFilterArray: ArrayStatus[], isAscendingSortOrder: boolean): {
|
|
@@ -11,9 +13,23 @@ export declare class FilterHelper {
|
|
|
11
13
|
sortedSelectedFilterArray: ArrayStatus[];
|
|
12
14
|
isAscendingSortOrder: boolean;
|
|
13
15
|
};
|
|
16
|
+
static sortGroupItemsCount(sortedFilterArray: UserGroup[], sortedSelectedFilterArray: UserGroup[], isAscendingSortOrder: boolean): {
|
|
17
|
+
sortedFilterArray: UserGroup[];
|
|
18
|
+
sortedSelectedFilterArray: UserGroup[];
|
|
19
|
+
isAscendingSortOrder: boolean;
|
|
20
|
+
};
|
|
21
|
+
static addOrRemoveFromGroup(addOrRemove: 'add' | 'remove', groupArray: UserGroup[], item: UserData, indx: number, indx2: number): {
|
|
22
|
+
hasSelectedUsers: boolean;
|
|
23
|
+
unselectedVisibleCount: number;
|
|
24
|
+
groupArray: UserGroup[];
|
|
25
|
+
};
|
|
14
26
|
static checkFilterActiveValue(filterArray: ArrayStatus[], selectedFilterArray: ArrayStatus[], isButtonAvailable: boolean): {
|
|
15
27
|
isButtonAvailable: boolean;
|
|
16
28
|
};
|
|
29
|
+
static checkGroupFilterActiveValue(filterArray: UserGroup[], isButtonAvailable: boolean): {
|
|
30
|
+
isButtonAvailable: boolean;
|
|
31
|
+
};
|
|
17
32
|
static getSvgPath(propertyName: keyof typeof CaFiltersSvgRoutes): string;
|
|
33
|
+
static handleGroupFilterClose(filterArray: UserGroup[], selectedFilterArray: UserGroup[], removeFunction: (item: UserData, index: number, index2: number) => void, addFunction: (item: UserData, index: number, index2: number) => void): void;
|
|
18
34
|
static handleFilterClose(filterArray: ArrayStatus[], selectedFilterArray: ArrayStatus[], removeFunction: (item: ArrayStatus, index: number) => void, addFunction: (item: ArrayStatus, index: number) => void): void;
|
|
19
35
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export declare class CaFiltersSvgRoutes {
|
|
2
|
+
static arrowLeftSvgRoute: string;
|
|
2
3
|
static sortArrowSvgRoute: string;
|
|
3
4
|
static searchIconRoute: string;
|
|
4
5
|
static iconConfirm: string;
|
|
5
6
|
static removeSelectedValue: string;
|
|
6
7
|
static cancelViolation: string;
|
|
8
|
+
static arrowFilter: string;
|
|
9
|
+
static defaultProfilePicture: string;
|
|
7
10
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
-
import { ICaInput } from './config
|
|
4
|
-
import { CommandsEvent } from './models
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { InputSvgRoutes } from './utils/input-svg-routes';
|
|
3
|
+
import { ICaInput } from './config';
|
|
4
|
+
import { LabelColor, CommandsEvent } from './models';
|
|
5
|
+
import { InputStateService } from './services';
|
|
6
|
+
import { InputChangeValue, InputSvgRoutes } from './utils';
|
|
8
7
|
import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class CaInputComponent implements OnInit, OnDestroy, OnChanges, ControlValueAccessor {
|
|
9
|
+
export declare class CaInputComponent implements OnInit, OnDestroy, OnChanges, AfterViewInit, ControlValueAccessor {
|
|
11
10
|
superControl: NgControl;
|
|
12
11
|
private cdRef;
|
|
13
12
|
private inputStateService;
|
|
@@ -20,7 +19,7 @@ export declare class CaInputComponent implements OnInit, OnDestroy, OnChanges, C
|
|
|
20
19
|
incorrectInput: EventEmitter<boolean>;
|
|
21
20
|
blurInput: EventEmitter<boolean>;
|
|
22
21
|
focusInputEvent: EventEmitter<boolean>;
|
|
23
|
-
changeInput: EventEmitter<
|
|
22
|
+
changeInput: EventEmitter<InputChangeValue>;
|
|
24
23
|
commandEvent: EventEmitter<CommandsEvent>;
|
|
25
24
|
clearInputEvent: EventEmitter<boolean>;
|
|
26
25
|
showHideDropdownEvent: EventEmitter<boolean>;
|
|
@@ -43,16 +42,18 @@ export declare class CaInputComponent implements OnInit, OnDestroy, OnChanges, C
|
|
|
43
42
|
get getSuperControl(): import("@angular/forms").AbstractControl<any, any> | null;
|
|
44
43
|
ngOnInit(): void;
|
|
45
44
|
ngOnChanges(changes: SimpleChanges): void;
|
|
45
|
+
ngAfterViewInit(): void;
|
|
46
46
|
initStateService(): void;
|
|
47
47
|
outputListeners(): void;
|
|
48
48
|
initChangesListener(): void;
|
|
49
49
|
setStateInputs(changes: SimpleChanges): void;
|
|
50
|
-
writeValue(obj:
|
|
50
|
+
writeValue(obj: InputChangeValue): void;
|
|
51
51
|
registerOnChange(fn: any): void;
|
|
52
52
|
onChange(_: any): void;
|
|
53
53
|
registerOnTouched(): void;
|
|
54
54
|
onBlur(event?: FocusEvent): void;
|
|
55
55
|
onFocus(event?: FocusEvent): void;
|
|
56
|
+
onKeyPress(event?: KeyboardEvent): void;
|
|
56
57
|
onKeydown(event: KeyboardEvent): void;
|
|
57
58
|
onKeyup(event: KeyboardEvent): void;
|
|
58
59
|
transformText(event: Event): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { AbstractControl } from '@angular/forms';
|
|
3
|
-
import { ICaInput } from '../../config
|
|
4
|
-
import { LabelColor } from '../../models
|
|
5
|
-
import { InputSvgRoutes } from '../../utils
|
|
3
|
+
import { ICaInput } from '../../config';
|
|
4
|
+
import { LabelColor } from '../../models';
|
|
5
|
+
import { InputSvgRoutes } from '../../utils';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class CaInputClearComponent {
|
|
8
8
|
inputConfig: ICaInput;
|
package/lib/components/ca-input/components/ca-input-commands/ca-input-commands.component.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from "@angular/core";
|
|
2
|
-
import { ICaInput } from "../../config
|
|
3
|
-
import { CommandClick } from "../../models
|
|
2
|
+
import { ICaInput } from "../../config";
|
|
3
|
+
import { CommandClick } from "../../models";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class CaInputCommandsComponent {
|
|
6
6
|
inputConfig: ICaInput;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { AbstractControl } from '@angular/forms';
|
|
3
|
-
import { ICaInput } from '../../config
|
|
4
|
-
import { InputStateService } from '../../services
|
|
3
|
+
import { ICaInput } from '../../config';
|
|
4
|
+
import { InputStateService } from '../../services';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class CaInputDatetimePickerComponent implements AfterViewInit {
|
|
7
7
|
private inputStateService;
|
package/lib/components/ca-input/components/ca-input-password/ca-input-password.component.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
2
|
import { AbstractControl } from "@angular/forms";
|
|
3
|
-
import { InputSvgRoutes } from "../../utils
|
|
4
|
-
import { ICaInput } from "../../config
|
|
3
|
+
import { InputSvgRoutes } from "../../utils";
|
|
4
|
+
import { ICaInput } from "../../config";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class CaInputPasswordComponent implements OnInit {
|
|
7
7
|
inputConfig: ICaInput;
|
|
@@ -3,7 +3,7 @@ import { AbstractControl } from '@angular/forms';
|
|
|
3
3
|
import { ICaInput } from '../../config/ca-input.config';
|
|
4
4
|
import { LabelColor } from '../../models/label-color.model';
|
|
5
5
|
import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
|
|
6
|
-
import { InputStateService } from '../../services
|
|
6
|
+
import { InputStateService } from '../../services';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class CaInputPlaceholderIconComponent implements OnInit, AfterViewInit {
|
|
9
9
|
private inputStateService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ca-input.config';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare enum InputConfigNameStringEnum {
|
|
2
2
|
DATE_PICKER = "datepicker",
|
|
3
3
|
TIME_PICKER = "timepicker",
|
|
4
|
-
DATE_PICKER_BANK_CARD = "datepickerBankCard"
|
|
4
|
+
DATE_PICKER_BANK_CARD = "datepickerBankCard",
|
|
5
|
+
INPUT_DROPDOWN_BANK_NAME = "Input Dropdown Bank Name",
|
|
6
|
+
ADDRESS = "Address"
|
|
5
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ColorFinderPipe implements PipeTransform {
|
|
4
|
+
transform(id: number, type: string, isTooltip?: boolean): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorFinderPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ColorFinderPipe, "colorFinder", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { AbstractControl, UntypedFormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormControlPipe implements PipeTransform {
|
|
5
|
+
transform(value: AbstractControl): UntypedFormControl;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FormControlPipe, "formControl", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './color-finder.pipe';
|
|
2
|
+
export * from './form-control.pipe';
|
|
3
|
+
export * from './input-class.pipe';
|
|
4
|
+
export * from './input-clear-class.pipe';
|
|
5
|
+
export * from './input-container-class.pipe';
|
|
6
|
+
export * from './input-datetime-picker-class.pipe';
|
|
7
|
+
export * from './input-dropdown-arrow-class.pipe';
|
|
8
|
+
export * from './input-error.pipe';
|
|
9
|
+
export * from './input-password-eye-class.pipe';
|
|
10
|
+
export * from './input-placeholder-icon.class.pipe';
|
|
11
|
+
export * from './input-type.pipe';
|
|
12
|
+
export * from './label-class.pipe';
|
|
13
|
+
export * from './show-clear.pipe';
|
|
14
|
+
export * from './show-dropdown-arrow.pipe';
|
|
15
|
+
export * from './show-invalid-danger-mark.pipe';
|
|
16
|
+
export * from './show-valid-check.pipe';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { NgControl } from '@angular/forms';
|
|
4
|
-
import { ICaInput } from '../config
|
|
5
|
-
import { CommandsEvent } from '../models
|
|
4
|
+
import { ICaInput } from '../config';
|
|
5
|
+
import { CommandsEvent } from '../models';
|
|
6
6
|
import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
|
|
7
7
|
import { CalendarDateTimePickerService } from '../../ca-custom-datetime-pickers/services/calendar-datetime-picker.service';
|
|
8
|
+
import { InputChangeValue } from '../utils';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class InputStateService {
|
|
10
11
|
private calendarService;
|
|
@@ -22,8 +23,10 @@ export declare class InputStateService {
|
|
|
22
23
|
dateTimeInputDate$: Observable<Date>;
|
|
23
24
|
private showDateInputSubject;
|
|
24
25
|
showDateInput$: Observable<boolean>;
|
|
26
|
+
private isCapsLockOnSubject;
|
|
27
|
+
isCapsLockOn$: Observable<boolean>;
|
|
25
28
|
private onChangeSubject;
|
|
26
|
-
onChange$: Observable<
|
|
29
|
+
onChange$: Observable<InputChangeValue>;
|
|
27
30
|
private commandEventSubject;
|
|
28
31
|
commandEvent$: Observable<CommandsEvent>;
|
|
29
32
|
private clearInputEventSubject;
|
|
@@ -39,7 +42,9 @@ export declare class InputStateService {
|
|
|
39
42
|
}>;
|
|
40
43
|
private blurInputSubject;
|
|
41
44
|
blurInput$: Observable<boolean>;
|
|
42
|
-
|
|
45
|
+
private changeInputSubject;
|
|
46
|
+
changeInput$: Observable<InputChangeValue>;
|
|
47
|
+
combinedVariables$: Observable<[boolean, boolean, boolean, boolean, boolean, Date, boolean, boolean]>;
|
|
43
48
|
private cdRef;
|
|
44
49
|
private inputConfig;
|
|
45
50
|
private incorrectValue;
|
|
@@ -47,6 +52,7 @@ export declare class InputStateService {
|
|
|
47
52
|
private superControl;
|
|
48
53
|
newInputChanged: boolean;
|
|
49
54
|
selectionInput: number;
|
|
55
|
+
private preventBlur;
|
|
50
56
|
inputSelection: boolean;
|
|
51
57
|
spanOne: ElementRef;
|
|
52
58
|
spanTwo: ElementRef;
|
|
@@ -58,6 +64,16 @@ export declare class InputStateService {
|
|
|
58
64
|
private focusBlur;
|
|
59
65
|
private timeoutCleaner;
|
|
60
66
|
private dateTimeMainTimer;
|
|
67
|
+
private passwordTimeout;
|
|
68
|
+
cursorInputPosition: number;
|
|
69
|
+
hasDecimalIndex: number;
|
|
70
|
+
originPriceSeparatorLimit: number;
|
|
71
|
+
isDotDeleted: boolean;
|
|
72
|
+
numberOfConsecutivelySpaces: number;
|
|
73
|
+
oneSpaceOnlyCounter: number;
|
|
74
|
+
lastCursorSpacePosition: number;
|
|
75
|
+
numberOfConsecutivelyPoints: number;
|
|
76
|
+
numberOfPoints: number;
|
|
61
77
|
private destroy$;
|
|
62
78
|
constructor(calendarService: CalendarDateTimePickerService);
|
|
63
79
|
setIsFocusInput(value: boolean): void;
|
|
@@ -67,6 +83,7 @@ export declare class InputStateService {
|
|
|
67
83
|
setIsDropdownToggler(value: boolean): void;
|
|
68
84
|
setDateTimeInputDate(value: Date): void;
|
|
69
85
|
setShowDateInput(value: boolean): void;
|
|
86
|
+
setIsCapsLockOn(value: boolean): void;
|
|
70
87
|
setInputElementRef(input: ElementRef, cdRef: ChangeDetectorRef): void;
|
|
71
88
|
setSuperControl(superControl: NgControl): void;
|
|
72
89
|
setInputConfig(config: ICaInput): void;
|
|
@@ -80,9 +97,12 @@ export declare class InputStateService {
|
|
|
80
97
|
data: ICaInput | null;
|
|
81
98
|
}): void;
|
|
82
99
|
setBlurInput(value: boolean): void;
|
|
83
|
-
|
|
100
|
+
setChangeInput(value: InputChangeValue): void;
|
|
101
|
+
setOnChange(value: InputChangeValue): void;
|
|
102
|
+
writeValue(obj: InputChangeValue): void;
|
|
84
103
|
clearInput(event: Event): void;
|
|
85
104
|
transformText(event: Event): void;
|
|
105
|
+
autoFocusFirstInput(): void;
|
|
86
106
|
onCommands(event: Event, type: string, action: string): void;
|
|
87
107
|
private handlePmIncrementDecrement;
|
|
88
108
|
private decrementPmValue;
|
|
@@ -98,6 +118,7 @@ export declare class InputStateService {
|
|
|
98
118
|
onBlur(event?: FocusEvent): void;
|
|
99
119
|
private blurOnCommands;
|
|
100
120
|
private blurOnDropDownArrow;
|
|
121
|
+
blurOnPassword(): void;
|
|
101
122
|
setInputCursorAtTheEnd(input: any, time?: number): void;
|
|
102
123
|
onEditInput(event: Event): void;
|
|
103
124
|
setViewChilds(spanOne: ElementRef, spanTwo: ElementRef, spanThree: ElementRef, holder1: ElementRef): void;
|
|
@@ -105,8 +126,10 @@ export declare class InputStateService {
|
|
|
105
126
|
toggleDropdownOptions(): void;
|
|
106
127
|
onPlaceholderIconEvent(event: Event): void;
|
|
107
128
|
onInputConfigChange(): void;
|
|
129
|
+
onKeydown(event: KeyboardEvent): void;
|
|
130
|
+
onKeyup(event: KeyboardEvent): void;
|
|
108
131
|
setTimePickerTime(): void;
|
|
109
|
-
setTimeDateInput(date:
|
|
132
|
+
setTimeDateInput(date: InputChangeValue): void;
|
|
110
133
|
resetDateTimeInputs(): void;
|
|
111
134
|
selectionChange(event: Event): void;
|
|
112
135
|
onDatePaste(event: ClipboardEvent): void;
|
|
@@ -142,6 +165,7 @@ export declare class InputStateService {
|
|
|
142
165
|
private blurOnDateTime;
|
|
143
166
|
selectLastOneForSelection(): void;
|
|
144
167
|
selectLastOneAfterMouseUp(): void;
|
|
168
|
+
private isDateTimePicker;
|
|
145
169
|
onDestory(): void;
|
|
146
170
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputStateService, never>;
|
|
147
171
|
static ɵprov: i0.ɵɵInjectableDeclaration<InputStateService>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ca-input-state.service';
|