master-control 0.5.38 → 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/discount-card/discount-card.component.mjs +3 -3
- 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 +11 -4
- package/esm2022/lib/radio/radio.component.mjs +3 -3
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/master-control.mjs +147 -10
- package/fesm2022/master-control.mjs.map +1 -1
- package/lib/discount-card/discount-card.component.d.ts +2 -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 +2 -1
- package/master-control-0.5.39.tgz +0 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/master-control-0.5.38.tgz +0 -0
|
@@ -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
|
+
}
|
|
@@ -12,9 +12,10 @@ export declare class MasterControlComponent {
|
|
|
12
12
|
additionalBenefitChange: EventEmitter<any>;
|
|
13
13
|
benefitAmountChange: EventEmitter<any>;
|
|
14
14
|
benefitAmountBlur: EventEmitter<any>;
|
|
15
|
+
discountPeriodChange: EventEmitter<string>;
|
|
15
16
|
constructor();
|
|
16
17
|
onLifeCoverSliderValueChange(event: any): void;
|
|
17
18
|
onLifeCoverAddonSelectionChange(event: any): void;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<MasterControlComponent, never>;
|
|
19
|
-
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"; }, 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>;
|
|
20
21
|
}
|
|
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';
|
|
@@ -79,6 +80,7 @@ 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';
|
|
81
82
|
export * from './lib/discount-card/discount-card.component';
|
|
83
|
+
export * from './lib/discounts-applied/discounts-applied.component';
|
|
82
84
|
export * from './lib/additional-benefits/additional-benefit-card.component';
|
|
83
85
|
export * from './lib/additional-benefits/additional-benefits.component';
|
|
84
86
|
export * from './lib/premium-breakup/premium-breakup.component';
|
|
Binary file
|