master-control 0.5.41 → 0.5.42
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/quote-policy-card/quote-policy-card.component.mjs +188 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/master-control.mjs +193 -5
- package/fesm2022/master-control.mjs.map +1 -1
- package/lib/master-control.component.d.ts +3 -1
- package/lib/quote-policy-card/quote-policy-card.component.d.ts +171 -0
- package/master-control-0.5.42.tgz +0 -0
- package/package.json +1 -1
- 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,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
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
|