master-control 0.5.37 → 0.5.39
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/additional-benefits/additional-benefit-card.component.mjs +36 -0
- package/esm2022/lib/additional-benefits/additional-benefits.component.mjs +23 -0
- package/esm2022/lib/discount-card/discount-card.component.mjs +18 -0
- package/esm2022/lib/discounts-applied/discounts-applied.component.mjs +78 -0
- package/esm2022/lib/journey-stepper/journey-stepper.component.mjs +69 -0
- package/esm2022/lib/master-control.component.mjs +20 -4
- package/esm2022/lib/premium-breakup/premium-breakup.component.mjs +43 -0
- package/esm2022/lib/radio/radio.component.mjs +3 -3
- package/esm2022/lib/toggle-button/toggle-button.component.mjs +27 -5
- package/esm2022/public-api.mjs +7 -1
- package/fesm2022/master-control.mjs +281 -21
- package/fesm2022/master-control.mjs.map +1 -1
- package/lib/additional-benefits/additional-benefit-card.component.d.ts +24 -0
- package/lib/additional-benefits/additional-benefits.component.d.ts +26 -0
- package/lib/discount-card/discount-card.component.d.ts +31 -0
- package/lib/discounts-applied/discounts-applied.component.d.ts +48 -0
- package/lib/journey-stepper/journey-stepper.component.d.ts +19 -0
- package/lib/master-control.component.d.ts +3 -1
- package/lib/premium-breakup/premium-breakup.component.d.ts +33 -0
- package/master-control-0.5.39.tgz +0 -0
- package/package.json +1 -1
- package/public-api.d.ts +6 -0
- package/master-control-0.5.37.tgz +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface AdditionalBenefit {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
supportingText?: string;
|
|
6
|
+
tag?: string;
|
|
7
|
+
infoText?: string;
|
|
8
|
+
included?: boolean;
|
|
9
|
+
selected?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
amount?: {
|
|
12
|
+
label?: string;
|
|
13
|
+
value: string;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
hint?: string;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare class AdditionalBenefitCardComponent {
|
|
20
|
+
readonly benefit: import("@angular/core").InputSignal<AdditionalBenefit>;
|
|
21
|
+
readonly benefitChange: import("@angular/core").OutputEmitterRef<AdditionalBenefit>;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdditionalBenefitCardComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdditionalBenefitCardComponent, "lib-additional-benefit-card", never, { "benefit": { "alias": "benefit"; "required": true; "isSignal": true; }; }, { "benefitChange": "benefitChange"; }, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AdditionalBenefit } from './additional-benefit-card.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface AdditionalBenefitsField {
|
|
4
|
+
isVisible?: boolean;
|
|
5
|
+
label?: string;
|
|
6
|
+
configData?: {
|
|
7
|
+
benefits?: AdditionalBenefit[];
|
|
8
|
+
} | null;
|
|
9
|
+
controlStyle?: {
|
|
10
|
+
width?: string;
|
|
11
|
+
borderColor?: string;
|
|
12
|
+
borderRadius?: string;
|
|
13
|
+
background?: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare class AdditionalBenefitsComponent {
|
|
17
|
+
readonly field: import("@angular/core").InputSignal<AdditionalBenefitsField>;
|
|
18
|
+
readonly benefitChange: import("@angular/core").OutputEmitterRef<{
|
|
19
|
+
index: number;
|
|
20
|
+
benefit: AdditionalBenefit;
|
|
21
|
+
}>;
|
|
22
|
+
get benefits(): AdditionalBenefit[];
|
|
23
|
+
trackBenefit(index: number): number;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdditionalBenefitsComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdditionalBenefitsComponent, "lib-additional-benefits", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; }, { "benefitChange": "benefitChange"; }, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface DiscountCardData {
|
|
3
|
+
discount?: number | string;
|
|
4
|
+
discountSuffix?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
applied?: boolean;
|
|
7
|
+
appliedText?: string;
|
|
8
|
+
notAppliedText?: string;
|
|
9
|
+
density?: 'default' | 'compact';
|
|
10
|
+
discountSuffixByPeriod?: Record<string, string>;
|
|
11
|
+
}
|
|
12
|
+
export interface DiscountCardField {
|
|
13
|
+
isVisible?: boolean;
|
|
14
|
+
label?: string;
|
|
15
|
+
configData?: DiscountCardData | null;
|
|
16
|
+
controlStyle?: {
|
|
17
|
+
borderColor?: string;
|
|
18
|
+
borderWidth?: string;
|
|
19
|
+
borderRadius?: string;
|
|
20
|
+
background?: string;
|
|
21
|
+
color?: string;
|
|
22
|
+
fontFamily?: string;
|
|
23
|
+
width?: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export declare class DiscountCardComponent {
|
|
27
|
+
readonly field: import("@angular/core").InputSignal<DiscountCardField>;
|
|
28
|
+
get data(): DiscountCardData;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DiscountCardComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DiscountCardComponent, "lib-discount-card", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { DiscountCardData, DiscountCardField } from '../discount-card/discount-card.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface DiscountPeriodOption {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class DiscountsAppliedComponent implements OnInit {
|
|
10
|
+
readonly field: import("@angular/core").InputSignal<any>;
|
|
11
|
+
readonly discountPeriodChange: EventEmitter<string>;
|
|
12
|
+
readonly periodControl: FormControl<string | null>;
|
|
13
|
+
private readonly chosenPeriod;
|
|
14
|
+
readonly selectedPeriod: import("@angular/core").Signal<any>;
|
|
15
|
+
readonly discountPeriods: import("@angular/core").Signal<DiscountPeriodOption[]>;
|
|
16
|
+
readonly discounts: import("@angular/core").Signal<DiscountCardData[]>;
|
|
17
|
+
readonly radioField: import("@angular/core").Signal<{
|
|
18
|
+
fieldName: string;
|
|
19
|
+
isVisible: boolean;
|
|
20
|
+
isShowLabel: boolean;
|
|
21
|
+
options: {
|
|
22
|
+
optionFieldNameAttribute: string;
|
|
23
|
+
label: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}[];
|
|
26
|
+
configData: {
|
|
27
|
+
isInlineLabel: boolean;
|
|
28
|
+
compactOptions: boolean;
|
|
29
|
+
};
|
|
30
|
+
controlStyle: {
|
|
31
|
+
borderColor: string;
|
|
32
|
+
borderWidth: string;
|
|
33
|
+
borderRadius: string;
|
|
34
|
+
background: string;
|
|
35
|
+
focusBorderColor: string;
|
|
36
|
+
focusBorderWidth: string;
|
|
37
|
+
focusBackground: string;
|
|
38
|
+
fontSize: string;
|
|
39
|
+
fontWeight: string;
|
|
40
|
+
color: string;
|
|
41
|
+
};
|
|
42
|
+
}>;
|
|
43
|
+
ngOnInit(): void;
|
|
44
|
+
onDiscountPeriodChange(value: string): void;
|
|
45
|
+
getDiscountCardField(discount: DiscountCardData): DiscountCardField;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DiscountsAppliedComponent, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DiscountsAppliedComponent, "lib-discounts-applied", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; }, { "discountPeriodChange": "discountPeriodChange"; }, never, never, true, never>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface JourneyStep {
|
|
3
|
+
label: string;
|
|
4
|
+
routes?: string | string[];
|
|
5
|
+
}
|
|
6
|
+
export declare class JourneyStepperComponent {
|
|
7
|
+
field: import("@angular/core").InputSignal<any>;
|
|
8
|
+
private readonly router;
|
|
9
|
+
private readonly destroyRef;
|
|
10
|
+
private readonly currentUrl;
|
|
11
|
+
readonly steps: import("@angular/core").Signal<JourneyStep[]>;
|
|
12
|
+
readonly currentStep: import("@angular/core").Signal<any>;
|
|
13
|
+
constructor();
|
|
14
|
+
getStatus(index: number): 'done' | 'inProgress' | 'pending';
|
|
15
|
+
getStepClass(index: number): string;
|
|
16
|
+
getConnectorClass(index: number): string;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JourneyStepperComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<JourneyStepperComponent, "lib-journey-stepper", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -9,11 +9,13 @@ export declare class MasterControlComponent {
|
|
|
9
9
|
lifeCoverSliderValueChange: EventEmitter<any>;
|
|
10
10
|
lifeCoverAddonSelectionChange: EventEmitter<any>;
|
|
11
11
|
benefitSelectionChange: EventEmitter<any>;
|
|
12
|
+
additionalBenefitChange: EventEmitter<any>;
|
|
12
13
|
benefitAmountChange: EventEmitter<any>;
|
|
13
14
|
benefitAmountBlur: EventEmitter<any>;
|
|
15
|
+
discountPeriodChange: EventEmitter<string>;
|
|
14
16
|
constructor();
|
|
15
17
|
onLifeCoverSliderValueChange(event: any): void;
|
|
16
18
|
onLifeCoverAddonSelectionChange(event: any): void;
|
|
17
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<MasterControlComponent, never>;
|
|
18
|
-
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"; "benefitAmountChange": "benefitAmountChange"; "benefitAmountBlur": "benefitAmountBlur"; }, never, never, true, 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>;
|
|
19
21
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface PremiumBreakupItem {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
}
|
|
6
|
+
export interface PremiumBreakupData {
|
|
7
|
+
basePremium?: string | number;
|
|
8
|
+
additionalBenefits?: PremiumBreakupItem[];
|
|
9
|
+
discounts?: PremiumBreakupItem[];
|
|
10
|
+
discountTotal?: string | number;
|
|
11
|
+
discountNote?: string;
|
|
12
|
+
gst?: string | number;
|
|
13
|
+
totalPremium?: string | number;
|
|
14
|
+
}
|
|
15
|
+
export interface PremiumBreakupField {
|
|
16
|
+
isVisible?: boolean;
|
|
17
|
+
configData?: PremiumBreakupData | null;
|
|
18
|
+
controlStyle?: {
|
|
19
|
+
width?: string;
|
|
20
|
+
background?: string;
|
|
21
|
+
borderColor?: string;
|
|
22
|
+
fontFamily?: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export declare class PremiumBreakupComponent {
|
|
26
|
+
readonly field: import("@angular/core").InputSignal<PremiumBreakupField>;
|
|
27
|
+
private readonly currency;
|
|
28
|
+
get data(): PremiumBreakupData;
|
|
29
|
+
get discountTotal(): string | number | undefined;
|
|
30
|
+
formatAmount(value: string | number | undefined, discount?: boolean): string;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PremiumBreakupComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PremiumBreakupComponent, "lib-premium-breakup", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
Binary file
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export * from './lib/textbox-with-underscore/textbox-with-underscore.component';
|
|
|
31
31
|
export * from './lib/icon-button/icon-button.component';
|
|
32
32
|
export * from './lib/image/image.component';
|
|
33
33
|
export * from './lib/stepper/stepper.component';
|
|
34
|
+
export * from './lib/journey-stepper/journey-stepper.component';
|
|
34
35
|
export * from './lib/card/card.component';
|
|
35
36
|
export * from './lib/hr-line/hr-line.component';
|
|
36
37
|
export * from './lib/search-multi-select/search-multi-select.component';
|
|
@@ -78,3 +79,8 @@ export * from './lib/life-cover-details-post-premium-calculation/life-cover-deta
|
|
|
78
79
|
export * from './lib/life-cover-addon-details/life-cover-addon-details.component';
|
|
79
80
|
export * from './lib/vehicle-coverage-plans/vehicle-coverage-plans.component';
|
|
80
81
|
export * from './lib/premium-breakdown/premium-breakdown.component';
|
|
82
|
+
export * from './lib/discount-card/discount-card.component';
|
|
83
|
+
export * from './lib/discounts-applied/discounts-applied.component';
|
|
84
|
+
export * from './lib/additional-benefits/additional-benefit-card.component';
|
|
85
|
+
export * from './lib/additional-benefits/additional-benefits.component';
|
|
86
|
+
export * from './lib/premium-breakup/premium-breakup.component';
|
|
Binary file
|