master-control 0.5.13 → 0.5.15

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.
@@ -11,6 +11,7 @@ type LifeCoverAddonItem = {
11
11
  [key: string]: unknown;
12
12
  };
13
13
  type LifeCoverAddonConfig = {
14
+ layoutVariant: string;
14
15
  borderColor: string;
15
16
  dividerColor: string;
16
17
  moneyColor: string;
@@ -35,6 +36,7 @@ export declare class LifeCoverAddonDetailsComponent implements OnChanges {
35
36
  ngOnChanges(changes: SimpleChanges): void;
36
37
  onAddonCheckboxChange(checked: boolean, addonIndex: number): void;
37
38
  get isSingleAddon(): boolean;
39
+ get isCompactVariant(): boolean;
38
40
  private initializeAddonConfig;
39
41
  private resolveText;
40
42
  private resolveColor;
@@ -8,6 +8,7 @@ type LifeCoverSelectOption = {
8
8
  label: string;
9
9
  value: string;
10
10
  };
11
+ type LifeCoverSection = 'cover' | 'term' | 'premium' | 'button';
11
12
  type LifeCoverCoverDetails = {
12
13
  coverLabel?: string;
13
14
  coverBadgeValues?: LifeCoverDisplayOption[];
@@ -51,8 +52,15 @@ export declare class LifeCoverDetailsComponent implements OnChanges {
51
52
  coverDetailsState: LifeCoverCoverDetails;
52
53
  termDetailsState: LifeCoverTermDetails;
53
54
  premiumDetailsState: LifeCoverPremiumDetails;
55
+ coverInputValue: string;
56
+ termInputValue: string;
57
+ coverInputError: string;
58
+ termInputError: string;
54
59
  ngOnChanges(changes: SimpleChanges): void;
55
60
  onTextButtonClick(): void;
61
+ onBadgeFocus(type: 'cover' | 'term'): void;
62
+ onBadgeInput(type: 'cover' | 'term', value: string): void;
63
+ onBadgeBlur(type: 'cover' | 'term'): void;
56
64
  onCoverSliderChange(value: number): void;
57
65
  onTermSliderChange(value: number): void;
58
66
  onPaymentTermChange(value: string): void;
@@ -60,16 +68,41 @@ export declare class LifeCoverDetailsComponent implements OnChanges {
60
68
  getSliderMax(type: 'cover' | 'term'): number;
61
69
  getSliderStep(type: 'cover' | 'term'): number;
62
70
  getSelectedScaleLabel(type: 'cover' | 'term', value?: number): string;
71
+ isScaleLabelActive(type: 'cover' | 'term', index: number): boolean;
72
+ getScaleLabelOffset(index: number, total: number): number;
63
73
  getBadgeValue(type: 'cover' | 'term'): string;
64
74
  getControlLabel(type: 'cover' | 'term' | 'premium'): string;
65
75
  getActionLabel(): string;
76
+ getInputError(type: 'cover' | 'term'): string;
66
77
  getDecorationLabel(): string;
78
+ isSectionVisible(section: LifeCoverSection): boolean;
79
+ shouldShowDividerAfter(section: 'cover' | 'term'): boolean;
80
+ isCompactVariant(): boolean;
67
81
  private initializeComponentState;
68
82
  private resolveDisplayOptions;
69
83
  private resolveSelectOptions;
70
84
  private resolvePaymentTermValue;
71
85
  private getSelectedDisplayValue;
72
86
  private normalizeValue;
87
+ private getConfigData;
88
+ private syncSliderInputValues;
89
+ private getEditableIntegerValue;
90
+ private getCurrentSliderPoint;
91
+ private resolveSliderInput;
92
+ private getSliderPoints;
93
+ private createSliderPoint;
94
+ private parseSliderPointValue;
95
+ private isInputWithinSliderRange;
96
+ private getComparableCandidates;
97
+ private getNearestScaleIndex;
98
+ private getComparableValueForSliderPosition;
99
+ private getInterpolatedSliderValue;
100
+ private formatSliderDisplayValue;
101
+ private formatCompactNumber;
102
+ private getSliderInputValidationMessage;
103
+ private setInputValue;
104
+ private getInputValue;
105
+ private setInputError;
73
106
  static ɵfac: i0.ɵɵFactoryDeclaration<LifeCoverDetailsComponent, never>;
74
107
  static ɵcmp: i0.ɵɵComponentDeclaration<LifeCoverDetailsComponent, "lib-life-cover-details", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "coverDetails": { "alias": "coverDetails"; "required": false; }; "termDetails": { "alias": "termDetails"; "required": false; }; "premiumDetails": { "alias": "premiumDetails"; "required": false; }; }, { "textButtonClick": "textButtonClick"; "sliderValueChange": "sliderValueChange"; }, never, never, true, never>;
75
108
  }
@@ -6,6 +6,9 @@ type PostPremiumSummaryConfig = {
6
6
  coverValue: string;
7
7
  ageLabel: string;
8
8
  ageValue: string;
9
+ middleLabel: string;
10
+ middleValue: string;
11
+ middleSuffix: string;
9
12
  firstYearLabel: string;
10
13
  firstYearValue: string;
11
14
  firstYearSuffix: string;
@@ -15,20 +18,46 @@ type PostPremiumSummaryConfig = {
15
18
  primaryActionLabel: string;
16
19
  secondaryActionLabel: string;
17
20
  };
21
+ type PostPremiumActionIconType = 'share' | 'sparkle' | 'view' | 'copy';
18
22
  export declare class LifeCoverDetailsPostPremiumCalculationComponent implements OnChanges, DoCheck {
19
23
  field: any;
20
24
  premiumSummary: Partial<PostPremiumSummaryConfig> | null;
21
25
  premiumSummaryState: PostPremiumSummaryConfig;
22
26
  isShowFinalQuoteSummary: boolean;
27
+ isShowMotorPlanSummary: boolean;
28
+ hideHeaderIcon: boolean;
29
+ hideHeaderActionButton: boolean;
30
+ showHeaderSuccessBadge: boolean;
31
+ showActionButtons: boolean;
32
+ headerActionLabel: string;
33
+ primaryActionIconType: PostPremiumActionIconType;
34
+ secondaryActionIconType: PostPremiumActionIconType;
23
35
  private previousIsShowFinalQuoteSummary;
36
+ private previousIsShowMotorPlanSummary;
37
+ private previousHideHeaderIcon;
38
+ private previousHideHeaderActionButton;
39
+ private previousShowHeaderSuccessBadge;
40
+ private previousShowActionButtons;
41
+ private previousHeaderActionLabel;
42
+ private previousPrimaryActionIconType;
43
+ private previousSecondaryActionIconType;
44
+ private previousPremiumSummarySnapshot;
24
45
  ngOnChanges(changes: SimpleChanges): void;
25
46
  ngDoCheck(): void;
26
47
  private initializePremiumSummary;
27
- getViewBiLabel(): string;
28
- getViewCreativeLabel(): string;
48
+ isHighlightedSummary(): boolean;
49
+ hasMiddleSection(): boolean;
50
+ hasMiddleSuffix(): boolean;
51
+ hasFirstYearSuffix(): boolean;
52
+ hasRenewalSuffix(): boolean;
53
+ isPrimaryActionFilled(): boolean;
54
+ getPrimaryActionLabel(): string;
55
+ getSecondaryActionLabel(): string;
29
56
  private syncFinalQuoteSummaryState;
57
+ private createPremiumSummarySnapshot;
30
58
  private resolveValue;
31
59
  private resolveBoolean;
60
+ private resolveActionIconType;
32
61
  static ɵfac: i0.ɵɵFactoryDeclaration<LifeCoverDetailsPostPremiumCalculationComponent, never>;
33
62
  static ɵcmp: i0.ɵɵComponentDeclaration<LifeCoverDetailsPostPremiumCalculationComponent, "lib-life-cover-details-post-premium-calculation", never, { "field": { "alias": "field"; "required": false; }; "premiumSummary": { "alias": "premiumSummary"; "required": false; }; }, {}, never, never, true, never>;
34
63
  }
@@ -0,0 +1,31 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ type PremiumBreakdownItem = {
4
+ label: string;
5
+ value: string;
6
+ valueColor?: string;
7
+ };
8
+ type PremiumBreakdownData = {
9
+ title: string;
10
+ subtitle: string;
11
+ items: PremiumBreakdownItem[];
12
+ totalLabel: string;
13
+ totalValue: string;
14
+ totalValueColor?: string;
15
+ };
16
+ export declare class PremiumBreakdownComponent implements OnChanges {
17
+ field: any;
18
+ premiumBreakdownData: Partial<PremiumBreakdownData> | null;
19
+ premiumBreakdownState: PremiumBreakdownData;
20
+ ngOnChanges(changes: SimpleChanges): void;
21
+ getItemValueColor(item: PremiumBreakdownItem): string;
22
+ getTotalValueColor(): string;
23
+ private initializePremiumBreakdownData;
24
+ private normalizePremiumBreakdownItem;
25
+ private resolveText;
26
+ private resolveOptionalText;
27
+ private getDefaultPremiumBreakdownData;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<PremiumBreakdownComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<PremiumBreakdownComponent, "lib-premium-breakdown", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "premiumBreakdownData": { "alias": "premiumBreakdownData"; "required": false; }; }, {}, never, never, true, never>;
30
+ }
31
+ export {};
@@ -0,0 +1,26 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ type VehicleCoveragePlanItem = {
4
+ title: string;
5
+ subtitle: string;
6
+ amount: string;
7
+ };
8
+ type VehicleCoveragePlansData = {
9
+ headerLabel: string;
10
+ idvLabel: string;
11
+ idvValue: string;
12
+ plans: VehicleCoveragePlanItem[];
13
+ };
14
+ export declare class VehicleCoveragePlansComponent implements OnChanges {
15
+ field: any;
16
+ coveragePlansData: Partial<VehicleCoveragePlansData> | null;
17
+ coveragePlansState: VehicleCoveragePlansData;
18
+ ngOnChanges(changes: SimpleChanges): void;
19
+ private initializeCoveragePlansData;
20
+ private normalizeCoveragePlanItem;
21
+ private resolveText;
22
+ private getDefaultCoveragePlansData;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<VehicleCoveragePlansComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<VehicleCoveragePlansComponent, "lib-vehicle-coverage-plans", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "coveragePlansData": { "alias": "coveragePlansData"; "required": false; }; }, {}, never, never, true, never>;
25
+ }
26
+ export {};
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "master-control",
3
- "version": "0.5.13",
3
+ "version": "0.5.15",
4
4
  "description": "Annuity plan calculator",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^19.2.18",
package/public-api.d.ts CHANGED
@@ -74,3 +74,5 @@ export * from './lib/life-cover-details/life-cover-details.component';
74
74
  export * from './lib/life-cover-details-view/life-cover-details-view.component';
75
75
  export * from './lib/life-cover-details-post-premium-calculation/life-cover-details-post-premium-calculation.component';
76
76
  export * from './lib/life-cover-addon-details/life-cover-addon-details.component';
77
+ export * from './lib/vehicle-coverage-plans/vehicle-coverage-plans.component';
78
+ export * from './lib/premium-breakdown/premium-breakdown.component';
Binary file