master-control 0.5.41 → 0.5.43
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/master-control.component.mjs +9 -4
- package/esm2022/lib/medial-questions/google-maps.optional.mjs +27 -0
- package/esm2022/lib/medial-questions/medial-questions.component.mjs +60 -11
- package/esm2022/lib/quote-policy-card/quote-policy-card.component.mjs +188 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/master-control.mjs +277 -14
- package/fesm2022/master-control.mjs.map +1 -1
- package/lib/master-control.component.d.ts +3 -1
- package/lib/medial-questions/google-maps.optional.d.ts +19 -0
- package/lib/medial-questions/medial-questions.component.d.ts +5 -4
- package/lib/quote-policy-card/quote-policy-card.component.d.ts +171 -0
- package/master-control-0.5.43.tgz +0 -0
- package/package.json +6 -2
- package/public-api.d.ts +1 -0
- package/master-control-0.5.41.tgz +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { PlanBenefitsDiscount } from './plan-benefits-card/plan-benefits-card.component';
|
|
4
|
+
import { QuotePolicyCardEvent } from './quote-policy-card/quote-policy-card.component';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class MasterControlComponent {
|
|
6
7
|
field: any;
|
|
@@ -13,9 +14,10 @@ export declare class MasterControlComponent {
|
|
|
13
14
|
benefitAmountChange: EventEmitter<any>;
|
|
14
15
|
benefitAmountBlur: EventEmitter<any>;
|
|
15
16
|
discountPeriodChange: EventEmitter<string>;
|
|
17
|
+
quotePolicyCardEvent: EventEmitter<QuotePolicyCardEvent>;
|
|
16
18
|
constructor();
|
|
17
19
|
onLifeCoverSliderValueChange(event: any): void;
|
|
18
20
|
onLifeCoverAddonSelectionChange(event: any): void;
|
|
19
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<MasterControlComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MasterControlComponent, "lib-master-control", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "discounts": { "alias": "discounts"; "required": false; "isSignal": true; }; "formGroup": { "alias": "formGroup"; "required": false; }; }, { "lifeCoverSliderValueChange": "lifeCoverSliderValueChange"; "lifeCoverAddonSelectionChange": "lifeCoverAddonSelectionChange"; "benefitSelectionChange": "benefitSelectionChange"; "additionalBenefitChange": "additionalBenefitChange"; "benefitAmountChange": "benefitAmountChange"; "benefitAmountBlur": "benefitAmountBlur"; "discountPeriodChange": "discountPeriodChange"; }, never, never, true, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MasterControlComponent, "lib-master-control", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "discounts": { "alias": "discounts"; "required": false; "isSignal": true; }; "formGroup": { "alias": "formGroup"; "required": false; }; }, { "lifeCoverSliderValueChange": "lifeCoverSliderValueChange"; "lifeCoverAddonSelectionChange": "lifeCoverAddonSelectionChange"; "benefitSelectionChange": "benefitSelectionChange"; "additionalBenefitChange": "additionalBenefitChange"; "benefitAmountChange": "benefitAmountChange"; "benefitAmountBlur": "benefitAmountBlur"; "discountPeriodChange": "discountPeriodChange"; "quotePolicyCardEvent": "quotePolicyCardEvent"; }, never, never, true, never>;
|
|
21
23
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Optional Google Maps Module Loader
|
|
3
|
+
* This file handles the optional loading of GoogleMapsModule
|
|
4
|
+
* If @angular/google-maps is not installed, it provides a fallback
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Returns GoogleMapsModule in an array for conditional imports
|
|
8
|
+
* This can be used directly in component imports array
|
|
9
|
+
*/
|
|
10
|
+
export declare function getOptionalGoogleMapsModule(): any[];
|
|
11
|
+
/**
|
|
12
|
+
* Check if Google Maps is available
|
|
13
|
+
* Since we're importing it directly above, it's always available if the package is installed
|
|
14
|
+
*/
|
|
15
|
+
export declare function isGoogleMapsSupported(): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Get GoogleMapsModule
|
|
18
|
+
*/
|
|
19
|
+
export declare function getGoogleMapsModule(): any;
|
|
@@ -26,7 +26,7 @@ export declare class MedialQuestionsComponent implements OnInit, AfterViewInit {
|
|
|
26
26
|
questionList: any;
|
|
27
27
|
currentCoordinates: any;
|
|
28
28
|
personUwResponseObj: any;
|
|
29
|
-
center:
|
|
29
|
+
center: any;
|
|
30
30
|
latitude: any;
|
|
31
31
|
longitude: any;
|
|
32
32
|
zoom: any;
|
|
@@ -52,6 +52,7 @@ export declare class MedialQuestionsComponent implements OnInit, AfterViewInit {
|
|
|
52
52
|
fieldTouched: {
|
|
53
53
|
[key: string]: boolean;
|
|
54
54
|
};
|
|
55
|
+
googleMapsAvailable: boolean;
|
|
55
56
|
constructor(ngZone: NgZone, masterService: MasterService);
|
|
56
57
|
ngOnInit(): void;
|
|
57
58
|
private fetchCurrentLocation;
|
|
@@ -67,9 +68,9 @@ export declare class MedialQuestionsComponent implements OnInit, AfterViewInit {
|
|
|
67
68
|
selectAddress(suggestion: any): void;
|
|
68
69
|
onInputBlur(): void;
|
|
69
70
|
private reverseGeocode;
|
|
70
|
-
onMarkerDragEnd(event:
|
|
71
|
-
onMarkerClick(event:
|
|
72
|
-
onMapClick(event:
|
|
71
|
+
onMarkerDragEnd(event: any): void;
|
|
72
|
+
onMarkerClick(event: any): void;
|
|
73
|
+
onMapClick(event: any): void;
|
|
73
74
|
findMedicalQuestionsInOpenQuote(arrayOfObj: any): void;
|
|
74
75
|
mapAnswersForOpenQuote(): void;
|
|
75
76
|
preparePersonUwQuestionsObj(): void;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type QuotePolicyStatusTone = 'pending' | 'success' | 'neutral' | 'error';
|
|
4
|
+
export interface QuotePolicyStatus {
|
|
5
|
+
code: string;
|
|
6
|
+
label: string;
|
|
7
|
+
tone: QuotePolicyStatusTone;
|
|
8
|
+
description?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface QuotePolicyRecord {
|
|
11
|
+
id: string;
|
|
12
|
+
recordType: 'quote' | 'policy';
|
|
13
|
+
referenceNumber: string;
|
|
14
|
+
customerName: string;
|
|
15
|
+
productName: string;
|
|
16
|
+
coverageName?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface QuotePolicyDetailRecord extends QuotePolicyRecord {
|
|
19
|
+
statusFields: {
|
|
20
|
+
label: string;
|
|
21
|
+
status: QuotePolicyStatus;
|
|
22
|
+
}[];
|
|
23
|
+
}
|
|
24
|
+
export interface QuotePolicyListItem extends QuotePolicyRecord {
|
|
25
|
+
premium: {
|
|
26
|
+
amount: number;
|
|
27
|
+
currency: string;
|
|
28
|
+
};
|
|
29
|
+
statuses: QuotePolicyStatus[];
|
|
30
|
+
visibleStatusCount?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface QuotePolicyDetailData {
|
|
33
|
+
ui: 'quote-detail';
|
|
34
|
+
record: QuotePolicyDetailRecord;
|
|
35
|
+
filters: QuotePolicyButton[];
|
|
36
|
+
}
|
|
37
|
+
export type QuotePolicyFilterCondition = {
|
|
38
|
+
field: 'premium.amount' | 'pendingDays';
|
|
39
|
+
operator: 'gt';
|
|
40
|
+
value: number;
|
|
41
|
+
} | {
|
|
42
|
+
field: 'createdOn';
|
|
43
|
+
operator: 'eq';
|
|
44
|
+
value: string;
|
|
45
|
+
};
|
|
46
|
+
interface QuotePolicyButtonBase {
|
|
47
|
+
id: string;
|
|
48
|
+
label: string;
|
|
49
|
+
active: boolean;
|
|
50
|
+
isVisible?: boolean;
|
|
51
|
+
disabled: boolean;
|
|
52
|
+
tone: 'success' | 'neutral';
|
|
53
|
+
}
|
|
54
|
+
export type QuotePolicyButton = QuotePolicyButtonBase & ({
|
|
55
|
+
actionType: 'filter';
|
|
56
|
+
params: {
|
|
57
|
+
condition: QuotePolicyFilterCondition;
|
|
58
|
+
};
|
|
59
|
+
} | {
|
|
60
|
+
actionType: 'load-more';
|
|
61
|
+
params: {
|
|
62
|
+
count: number;
|
|
63
|
+
};
|
|
64
|
+
} | {
|
|
65
|
+
actionType: 'action';
|
|
66
|
+
params: {
|
|
67
|
+
actionId: string;
|
|
68
|
+
recordId?: string;
|
|
69
|
+
};
|
|
70
|
+
});
|
|
71
|
+
export interface QuotePolicyListData {
|
|
72
|
+
ui: 'quote-list';
|
|
73
|
+
items: QuotePolicyListItem[];
|
|
74
|
+
filters: QuotePolicyButton[];
|
|
75
|
+
hasMore: boolean;
|
|
76
|
+
emptyMessage: string;
|
|
77
|
+
}
|
|
78
|
+
export interface QuotePolicyCardField {
|
|
79
|
+
controlType: 'quotePolicyCard';
|
|
80
|
+
isVisible?: boolean;
|
|
81
|
+
configData: QuotePolicyDetailData | QuotePolicyListData;
|
|
82
|
+
}
|
|
83
|
+
export type QuotePolicyCardEvent = {
|
|
84
|
+
type: 'record-select';
|
|
85
|
+
recordId: string;
|
|
86
|
+
} | {
|
|
87
|
+
type: 'action';
|
|
88
|
+
actionId: string;
|
|
89
|
+
recordId: string;
|
|
90
|
+
} | {
|
|
91
|
+
type: 'filter';
|
|
92
|
+
filterId: string;
|
|
93
|
+
active: boolean;
|
|
94
|
+
condition: QuotePolicyFilterCondition;
|
|
95
|
+
} | {
|
|
96
|
+
type: 'load-more';
|
|
97
|
+
count: number;
|
|
98
|
+
} | {
|
|
99
|
+
type: 'show-statuses';
|
|
100
|
+
recordId: string;
|
|
101
|
+
};
|
|
102
|
+
type ButtonEvent = Extract<QuotePolicyCardEvent, {
|
|
103
|
+
type: QuotePolicyButton['actionType'];
|
|
104
|
+
}>;
|
|
105
|
+
export declare class QuotePolicyCardComponent {
|
|
106
|
+
readonly field: import("@angular/core").InputSignal<unknown>;
|
|
107
|
+
cardEvent: EventEmitter<QuotePolicyCardEvent>;
|
|
108
|
+
readonly card: import("@angular/core").Signal<{
|
|
109
|
+
readonly ui: "quote-detail";
|
|
110
|
+
readonly detail: {
|
|
111
|
+
id: string;
|
|
112
|
+
customerName: string;
|
|
113
|
+
referenceNumber: string;
|
|
114
|
+
product: string;
|
|
115
|
+
};
|
|
116
|
+
readonly statusFields: {
|
|
117
|
+
label: string;
|
|
118
|
+
status: {
|
|
119
|
+
label: string;
|
|
120
|
+
description: string;
|
|
121
|
+
tone: string;
|
|
122
|
+
};
|
|
123
|
+
}[];
|
|
124
|
+
readonly buttons: {
|
|
125
|
+
id: string;
|
|
126
|
+
label: string;
|
|
127
|
+
pressed: boolean | null;
|
|
128
|
+
isAction: boolean;
|
|
129
|
+
isSuccess: boolean;
|
|
130
|
+
disabled: boolean;
|
|
131
|
+
event: ButtonEvent | null;
|
|
132
|
+
}[];
|
|
133
|
+
readonly items?: undefined;
|
|
134
|
+
readonly emptyMessage?: undefined;
|
|
135
|
+
} | {
|
|
136
|
+
readonly ui: "quote-list";
|
|
137
|
+
readonly items: {
|
|
138
|
+
selectionLabel: string;
|
|
139
|
+
premium: {
|
|
140
|
+
amount: number;
|
|
141
|
+
currency: string;
|
|
142
|
+
} | null;
|
|
143
|
+
statuses: {
|
|
144
|
+
label: string;
|
|
145
|
+
description: string;
|
|
146
|
+
tone: string;
|
|
147
|
+
}[];
|
|
148
|
+
visibleStatusCount: number;
|
|
149
|
+
id: string;
|
|
150
|
+
customerName: string;
|
|
151
|
+
referenceNumber: string;
|
|
152
|
+
product: string;
|
|
153
|
+
}[];
|
|
154
|
+
readonly buttons: {
|
|
155
|
+
id: string;
|
|
156
|
+
label: string;
|
|
157
|
+
pressed: boolean | null;
|
|
158
|
+
isAction: boolean;
|
|
159
|
+
isSuccess: boolean;
|
|
160
|
+
disabled: boolean;
|
|
161
|
+
event: ButtonEvent | null;
|
|
162
|
+
}[];
|
|
163
|
+
readonly emptyMessage: string;
|
|
164
|
+
readonly detail?: undefined;
|
|
165
|
+
readonly statusFields?: undefined;
|
|
166
|
+
} | null>;
|
|
167
|
+
onButtonClick(event: ButtonEvent | null): void;
|
|
168
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuotePolicyCardComponent, never>;
|
|
169
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuotePolicyCardComponent, "lib-quote-policy-card", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; }, { "cardEvent": "cardEvent"; }, never, never, true, never>;
|
|
170
|
+
}
|
|
171
|
+
export {};
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "master-control",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.43",
|
|
4
4
|
"description": "Edit_PlanDetails_MotorTerm",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.0.00",
|
|
7
|
-
"@angular/core": "^20.0.00"
|
|
7
|
+
"@angular/core": "^20.0.00",
|
|
8
|
+
"@angular/google-maps": "^20.1.3"
|
|
8
9
|
},
|
|
10
|
+
"peerDependenciesOptional": [
|
|
11
|
+
"@angular/google-maps"
|
|
12
|
+
],
|
|
9
13
|
"dependencies": {
|
|
10
14
|
"tslib": "^2.3.0"
|
|
11
15
|
},
|
package/public-api.d.ts
CHANGED
|
@@ -84,3 +84,4 @@ export * from './lib/discounts-applied/discounts-applied.component';
|
|
|
84
84
|
export * from './lib/additional-benefits/additional-benefit-card.component';
|
|
85
85
|
export * from './lib/additional-benefits/additional-benefits.component';
|
|
86
86
|
export * from './lib/premium-breakup/premium-breakup.component';
|
|
87
|
+
export * from './lib/quote-policy-card/quote-policy-card.component';
|
|
Binary file
|