@flarehr/apollo-super-selection 5.38.61955 → 5.40.63109

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.
Files changed (36) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.css +1 -1
  2. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  3. package/dist/lib/apollo-super-selection/p-53c454f4.entry.js +14 -0
  4. package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
  5. package/dist/lib/apollo-super-selection/p-d440214e.system.entry.js +69 -0
  6. package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
  7. package/dist/lib/cjs/loader.cjs.js +1 -1
  8. package/dist/lib/cjs/sss-button_34.cjs.entry.js +265 -196
  9. package/dist/lib/collection/apollo-super-selection.css +1 -1
  10. package/dist/lib/collection/components/super-campaign/fund-tile-clicked.handler.js +49 -0
  11. package/dist/lib/collection/components/super-campaign/promoted-fund-joined.handler.js +121 -0
  12. package/dist/lib/collection/components/super-campaign/super-campaign.js +21 -165
  13. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.js +59 -5
  14. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.types.js +1 -0
  15. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +2 -2
  16. package/dist/lib/esm/apollo-super-selection.js +1 -1
  17. package/dist/lib/esm/loader.js +1 -1
  18. package/dist/lib/esm/sss-button_34.entry.js +265 -196
  19. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  20. package/dist/lib/esm-es5/loader.js +1 -1
  21. package/dist/lib/esm-es5/sss-button_34.entry.js +4 -4
  22. package/dist/lib/types/components/super-campaign/fund-tile-clicked.handler.d.ts +12 -0
  23. package/dist/lib/types/components/super-campaign/promoted-fund-joined.handler.d.ts +15 -0
  24. package/dist/lib/types/components/super-campaign/super-campaign-types.d.ts +3 -1
  25. package/dist/lib/types/components/super-campaign/super-campaign.d.ts +0 -8
  26. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +3 -0
  27. package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +2 -2
  28. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +6 -0
  29. package/dist/lib/types/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.d.ts +9 -0
  30. package/dist/lib/types/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.types.d.ts +26 -0
  31. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +11 -13
  32. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +2 -1
  33. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +2 -2
  34. package/package.json +1 -1
  35. package/dist/lib/apollo-super-selection/p-12c5f04e.system.entry.js +0 -69
  36. package/dist/lib/apollo-super-selection/p-5952a4b2.entry.js +0 -14
@@ -0,0 +1,12 @@
1
+ import { PlacementId } from '../super-selection-app/api/super-selection.api.dto';
2
+ import { FeaturedFundsSender, Sender, ShownFundType } from './super-campaign-types';
3
+ declare type FundTileClickedArgs = {
4
+ sender: Sender | FeaturedFundsSender;
5
+ placementId: PlacementId;
6
+ fundId: string;
7
+ fundUsi?: string;
8
+ fundName: string;
9
+ fundType: ShownFundType;
10
+ };
11
+ export declare const fundTileClicked: ({ sender, placementId, fundId, fundUsi, fundName, fundType }: FundTileClickedArgs) => Promise<void>;
12
+ export {};
@@ -0,0 +1,15 @@
1
+ import { RouterHistory } from '@stencil/router';
2
+ import { PlacementId } from '../super-selection-app/api/super-selection.api.dto';
3
+ import { PromotedFundJoinedEvent } from './super-campaign-types';
4
+ export declare class PromotedFundJoinedEventHandler {
5
+ private readonly history;
6
+ private readonly placementId;
7
+ constructor(placementId: PlacementId, history: RouterHistory);
8
+ handle: (event: CustomEvent<PromotedFundJoinedEvent>) => Promise<void>;
9
+ private stringIsNullOrEmtpty;
10
+ private get PromotedFundsConfig();
11
+ private handlePromotedFundJoined;
12
+ private handlePromotedDefaultFundJoined;
13
+ private handlePromotedDefaultFundWithJoinWasJoined;
14
+ private handleDefinedBenefitsJoined;
15
+ }
@@ -39,7 +39,9 @@ export declare type DisclaimerViewedEvent = SuperCampaignCommonEventPayload & {
39
39
  export declare type DisclaimerAcceptedEvent = SuperCampaignCommonEventPayload & {
40
40
  type: 'disclaimer-accepted';
41
41
  };
42
- export declare type PromotedFundJoinedEvent = SuperCampaignCommonEventPayload & {
42
+ export declare type FeaturedFundsSender = 'featured-funds';
43
+ export declare type PromotedFundJoinedEvent = {
44
+ sender: Sender | FeaturedFundsSender;
43
45
  type: 'promoted-fund-joined';
44
46
  fundJoinInfo: FundJoinInfo;
45
47
  };
@@ -25,12 +25,4 @@ export declare class SuperCampaignHost {
25
25
  private fundPdsViewed;
26
26
  private disclaimerViewed;
27
27
  private disclaimerAccepted;
28
- private promotedFundJoined;
29
- private stringIsNullOrEmtpty;
30
- private get SuperCampaignState();
31
- private get PromotedFundsConfig();
32
- private handlePromotedFundJoined;
33
- private handlePromotedDefaultFundJoined;
34
- private handlePromotedDefaultFundWithJoinWasJoined;
35
- private handleDefinedBenefitsJoined;
36
28
  }
@@ -1,3 +1,4 @@
1
+ import { PlacementId } from './super-selection.api.dto';
1
2
  export declare type SuperFundPdsViewedDetail = {
2
3
  fundUsi?: string;
3
4
  fundName: string;
@@ -11,6 +12,7 @@ export declare type ViewedPromotedFundDetail = {
11
12
  promotedFundsShown: Array<string>;
12
13
  defaultFundUsiSet?: string;
13
14
  superCampaignEnabled: boolean;
15
+ placementId: PlacementId;
14
16
  };
15
17
  export declare type FundDetailChangeRequested = Omit<ViewedDefaultFundDetail, 'superCampaignEnabled'>;
16
18
  export declare type ViewedPromotedDefaultFundDetail = {
@@ -20,6 +22,7 @@ export declare type ViewedPromotedDefaultFundDetail = {
20
22
  promotedFundsShown: Array<string>;
21
23
  defaultFundUsiSet?: string;
22
24
  superCampaignEnabled: boolean;
25
+ placementId: PlacementId;
23
26
  };
24
27
  export declare type ViewedMyOwnFundDetail = {
25
28
  promotedFundsShown: Array<string>;
@@ -1,4 +1,4 @@
1
- import { AppStateDto, AustralianFundDto, AustralianFundsLookupResponseDto, ClickPromotedTileDto, PromotedFundsConfigDto } from './super-selection.api.dto';
1
+ import { AppStateDto, AustralianFundDto, AustralianFundsLookupResponseDto, ClickPromotedTileDto, ViewSuperFundPanelDto } from './super-selection.api.dto';
2
2
  export declare type SuperFundSearchFilter = {
3
3
  searchString: string;
4
4
  maxRecordCount: number;
@@ -8,7 +8,7 @@ export declare class SuperSelectionApi {
8
8
  getAustralianFundAsync(usi: string, includeInactive: boolean): Promise<AustralianFundDto>;
9
9
  getAppStateAsync(): Promise<AppStateDto>;
10
10
  clickPromotedTileAsync(payload: ClickPromotedTileDto): Promise<void>;
11
- viewSuperFundPanelAsync(payload: PromotedFundsConfigDto): Promise<void>;
11
+ viewSuperFundPanelAsync(payload: ViewSuperFundPanelDto): Promise<void>;
12
12
  private toSearchFilterQueryString;
13
13
  private toQueryString;
14
14
  }
@@ -228,10 +228,12 @@ export declare type PromotedFundsConfigSourceDto = 'superSelection' | 'superCamp
228
228
  export declare type ClickPromotedTileDto = {
229
229
  promoted: {
230
230
  fundId: string;
231
+ placementId: PlacementId;
231
232
  };
232
233
  } | {
233
234
  promotedDefault: {
234
235
  fundId: string;
236
+ placementId: PlacementId;
235
237
  };
236
238
  };
237
239
  export declare type PromotedFundsConfigDto = {
@@ -239,4 +241,8 @@ export declare type PromotedFundsConfigDto = {
239
241
  promotedDefaultFundPosition?: number;
240
242
  promotedFundsConfigSource: PromotedFundsConfigSourceDto;
241
243
  };
244
+ export declare type PlacementId = 'panel' | 'byof';
245
+ export declare type ViewSuperFundPanelDto = {
246
+ placementId: PlacementId;
247
+ } & PromotedFundsConfigDto;
242
248
  export {};
@@ -3,7 +3,16 @@ export declare class FeaturedFunds {
3
3
  history: RouterHistory;
4
4
  private backendUrl;
5
5
  private accessToken;
6
+ private currentView;
7
+ private eventHandlers;
8
+ constructor();
6
9
  componentWillLoad(): void;
7
10
  disconnectedCallback(): void;
8
11
  render(): Element[];
12
+ private subscribeToEvents;
13
+ private unsubscribeFromEvents;
14
+ private backClicked;
15
+ private cancelClicked;
16
+ private continueClicked;
17
+ private fundPanelShown;
9
18
  }
@@ -0,0 +1,26 @@
1
+ import { FeaturedFundsSender, PromotedFundJoinedEvent, ShownFund, ShownFundType } from '../../../../super-campaign/super-campaign-types';
2
+ declare type FeaturedFundsCommonEventPayload = {
3
+ sender: FeaturedFundsSender;
4
+ };
5
+ export declare type ContinueClicked = FeaturedFundsCommonEventPayload & {
6
+ type: 'continue-clicked';
7
+ fundId: string;
8
+ fundUsi?: string;
9
+ fundName: string;
10
+ fundType: ShownFundType;
11
+ };
12
+ export declare type FeaturedFundPanelShown = FeaturedFundsCommonEventPayload & {
13
+ type: 'featured-fund-panel-shown';
14
+ shownFunds: ShownFund[];
15
+ };
16
+ export declare type FeaturedFundsEvents = FeaturedFundsCommonEventPayload & ({
17
+ type: 'back-clicked';
18
+ } | {
19
+ type: 'cancel-clicked';
20
+ } | ContinueClicked | FeaturedFundPanelShown | PromotedFundJoinedEvent);
21
+ export declare type EventHandlers = {
22
+ [k in FeaturedFundsEvents['type']]: (event: CustomEvent<Extract<FeaturedFundsEvents, {
23
+ type: k;
24
+ }>>) => Promise<void>;
25
+ };
26
+ export {};
@@ -1,25 +1,23 @@
1
- import { PromotedFundsConfigDto } from '../../../api/super-selection.api.dto';
2
- export declare type PromotedFundChoiceRequestDto = {
1
+ import { PlacementId, PromotedFundsConfigDto } from '../../../api/super-selection.api.dto';
2
+ declare type CommonDto = {
3
3
  fundId: string;
4
+ standardChoiceFormSignature: string;
5
+ defaultFundUsiSet?: string;
6
+ placementId: PlacementId;
7
+ };
8
+ export declare type PromotedFundChoiceRequestDto = {
4
9
  usi?: string;
5
10
  memberNumber: string;
6
11
  memberFirstName?: string;
7
12
  memberFamilyName?: string;
8
- standardChoiceFormSignature: string;
9
- defaultFundUsiSet?: string;
10
- } & PromotedFundsConfigDto;
13
+ } & CommonDto & PromotedFundsConfigDto;
11
14
  export declare type PromotedDefaultFundChoiceRequestDto = {
12
- fundId: string;
13
15
  usi: string;
14
- standardChoiceFormSignature: string;
15
- defaultFundUsiSet?: string;
16
- } & PromotedFundsConfigDto;
16
+ } & CommonDto & PromotedFundsConfigDto;
17
17
  export declare type PromotedDefaultFundWithJoinChoiceRequestDto = {
18
- fundId: string;
19
18
  usi: string;
20
19
  memberNumber: string;
21
20
  memberFirstName: string;
22
21
  memberFamilyName: string;
23
- standardChoiceFormSignature: string;
24
- defaultFundUsiSet?: string;
25
- } & PromotedFundsConfigDto;
22
+ } & CommonDto & PromotedFundsConfigDto;
23
+ export {};
@@ -1,8 +1,9 @@
1
- import { PromotedFundsConfigDto } from '../../../api/super-selection.api.dto';
1
+ import { PlacementId, PromotedFundsConfigDto } from '../../../api/super-selection.api.dto';
2
2
  export declare type SlateFundForm = {
3
3
  memberNumber: string;
4
4
  memberFirstName?: string;
5
5
  memberFamilyName?: string;
6
6
  standardChoiceFormSignature: string;
7
7
  defaultFundUsiSet?: string;
8
+ placementId: PlacementId;
8
9
  } & PromotedFundsConfigDto;
@@ -1,7 +1,7 @@
1
1
  import { OnChangeHandler } from '@stencil/store/dist/types';
2
2
  import * as O from 'fp-ts/lib/Option';
3
3
  import { ShownFund as SuperCampaignShownFund } from '../../super-campaign/super-campaign-types';
4
- import { PromotedFundsConfigDto, SuperBuyerDto } from '../api/super-selection.api.dto';
4
+ import { PlacementId, PromotedFundsConfigDto, SuperBuyerDto } from '../api/super-selection.api.dto';
5
5
  import { AppContextState, SuperCampaignComponentStatus, SuperCampaignState } from './super-selection.store';
6
6
  export declare class SuperSelectionAppService {
7
7
  private readonly _state;
@@ -25,7 +25,7 @@ export declare class SuperSelectionAppService {
25
25
  get isDefinedBenefitsEligible(): O.Option<boolean>;
26
26
  loadAppStateAsync(): Promise<void>;
27
27
  setSuperCampaignPromotedFundsShown(shownFunds: SuperCampaignShownFund[]): void;
28
- viewSuperFundPanelAsync(promotedFundIdListOverride?: string[]): Promise<void>;
28
+ viewSuperFundPanelAsync(placementId: PlacementId, promotedFundIdListOverride?: string[]): Promise<void>;
29
29
  get superCampaignState(): SuperCampaignState | undefined;
30
30
  get superCampaignComponentStatus(): SuperCampaignComponentStatus;
31
31
  set superCampaignComponentStatus(value: SuperCampaignComponentStatus);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-super-selection",
3
- "version": "5.38.61955",
3
+ "version": "5.40.63109",
4
4
  "description": "Apollo Super Selection",
5
5
  "main": "dist/lib/index.cjs.js",
6
6
  "module": "dist/lib/index.js",