master-control 0.5.12 → 0.5.14

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[];
@@ -64,12 +65,16 @@ export declare class LifeCoverDetailsComponent implements OnChanges {
64
65
  getControlLabel(type: 'cover' | 'term' | 'premium'): string;
65
66
  getActionLabel(): string;
66
67
  getDecorationLabel(): string;
68
+ isSectionVisible(section: LifeCoverSection): boolean;
69
+ shouldShowDividerAfter(section: 'cover' | 'term'): boolean;
70
+ isCompactVariant(): boolean;
67
71
  private initializeComponentState;
68
72
  private resolveDisplayOptions;
69
73
  private resolveSelectOptions;
70
74
  private resolvePaymentTermValue;
71
75
  private getSelectedDisplayValue;
72
76
  private normalizeValue;
77
+ private getConfigData;
73
78
  static ɵfac: i0.ɵɵFactoryDeclaration<LifeCoverDetailsComponent, never>;
74
79
  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
80
  }
@@ -1,4 +1,4 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
1
+ import { DoCheck, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  type PostPremiumSummaryConfig = {
4
4
  planName: string;
@@ -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,14 +18,47 @@ type PostPremiumSummaryConfig = {
15
18
  primaryActionLabel: string;
16
19
  secondaryActionLabel: string;
17
20
  };
18
- export declare class LifeCoverDetailsPostPremiumCalculationComponent implements OnChanges {
21
+ type PostPremiumActionIconType = 'share' | 'sparkle' | 'view' | 'copy';
22
+ export declare class LifeCoverDetailsPostPremiumCalculationComponent implements OnChanges, DoCheck {
19
23
  field: any;
20
24
  premiumSummary: Partial<PostPremiumSummaryConfig> | null;
21
25
  premiumSummaryState: PostPremiumSummaryConfig;
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;
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;
22
45
  ngOnChanges(changes: SimpleChanges): void;
46
+ ngDoCheck(): void;
23
47
  private initializePremiumSummary;
48
+ isHighlightedSummary(): boolean;
49
+ hasMiddleSection(): boolean;
50
+ hasMiddleSuffix(): boolean;
51
+ hasFirstYearSuffix(): boolean;
52
+ hasRenewalSuffix(): boolean;
53
+ isPrimaryActionFilled(): boolean;
54
+ getPrimaryActionLabel(): string;
55
+ getSecondaryActionLabel(): string;
56
+ private syncFinalQuoteSummaryState;
57
+ private createPremiumSummarySnapshot;
24
58
  private resolveValue;
59
+ private resolveBoolean;
60
+ private resolveActionIconType;
25
61
  static ɵfac: i0.ɵɵFactoryDeclaration<LifeCoverDetailsPostPremiumCalculationComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<LifeCoverDetailsPostPremiumCalculationComponent, "lib-life-cover-details-post-premium-calculation", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "premiumSummary": { "alias": "premiumSummary"; "required": false; }; }, {}, never, never, true, never>;
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>;
27
63
  }
28
64
  export {};
@@ -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.12",
3
+ "version": "0.5.14",
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