@flarehr/apollo-super-selection 1.3.65402 → 1.4.32906

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 (103) 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/apollo-super-selection.js +1 -1
  4. package/dist/lib/apollo-super-selection/p-2054e932.system.entry.js +69 -0
  5. package/dist/lib/apollo-super-selection/{p-ef3afa00.system.entry.js → p-22939048.system.entry.js} +1 -1
  6. package/dist/lib/apollo-super-selection/p-24d6e2b8.js +1 -0
  7. package/dist/lib/apollo-super-selection/{p-02f24922.system.entry.js → p-2b42304a.system.entry.js} +1 -1
  8. package/dist/lib/apollo-super-selection/{p-9c855634.entry.js → p-33eca162.entry.js} +1 -1
  9. package/dist/lib/apollo-super-selection/p-4e871154.entry.js +1 -0
  10. package/dist/lib/apollo-super-selection/{p-6ac8791e.system.entry.js → p-53b231f0.system.entry.js} +1 -1
  11. package/dist/lib/apollo-super-selection/{p-b89b68db.entry.js → p-5c73c587.entry.js} +1 -1
  12. package/dist/lib/apollo-super-selection/{p-fcb4050d.entry.js → p-69bbf1dd.entry.js} +1 -1
  13. package/dist/lib/apollo-super-selection/{p-44bec843.system.js → p-71ca4cf8.system.js} +1 -1
  14. package/dist/lib/apollo-super-selection/p-9101bd39.entry.js +14 -0
  15. package/dist/lib/apollo-super-selection/p-97188c78.system.js +1 -0
  16. package/dist/lib/apollo-super-selection/{p-23cfdd82.entry.js → p-9d2a7c0e.entry.js} +1 -1
  17. package/dist/lib/apollo-super-selection/p-a0063575.system.entry.js +1 -0
  18. package/dist/lib/apollo-super-selection/p-b00f648b.entry.js +1 -0
  19. package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -0
  20. package/dist/lib/apollo-super-selection/p-c775c0e4.system.entry.js +1 -0
  21. package/dist/lib/apollo-super-selection/p-cd3ed541.system.js +1 -0
  22. package/dist/lib/apollo-super-selection/{p-51c6dd08.js → p-db0bded8.js} +1 -1
  23. package/dist/lib/apollo-super-selection/{p-f29066b9.system.entry.js → p-e957b393.system.entry.js} +1 -1
  24. package/dist/lib/apollo-super-selection/{p-7a89efaf.js → p-fdadb647.js} +1 -1
  25. package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
  26. package/dist/lib/cjs/custom-fund-choice.api-293c1ace.js +3209 -0
  27. package/dist/lib/cjs/loader.cjs.js +1 -1
  28. package/dist/lib/cjs/{sss-button_34.cjs.entry.js → sss-button_32.cjs.entry.js} +577 -3838
  29. package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +111 -0
  30. package/dist/lib/collection/apollo-super-selection.css +1 -1
  31. package/dist/lib/collection/collection-manifest.json +6 -9
  32. package/dist/lib/collection/components/super-byof/super-byof-types.js +1 -0
  33. package/dist/lib/collection/components/super-byof/super-byof.js +139 -0
  34. package/dist/lib/collection/components/super-campaign/super-campaign.js +15 -18
  35. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.js +5 -5
  36. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.js +161 -0
  37. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-types.js +1 -0
  38. package/dist/lib/collection/components/super-selection-app/header-section/header-section.js +24 -5
  39. package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +10 -0
  40. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +4 -2
  41. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +4 -0
  42. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +1 -0
  43. package/dist/lib/collection/components/super-smsf/super-smsf-types.js +1 -0
  44. package/dist/lib/collection/components/super-smsf/super-smsf.form.js +1 -0
  45. package/dist/lib/collection/components/super-smsf/super-smsf.js +166 -0
  46. package/dist/lib/esm/{active-router-5e40c0f8.js → active-router-d18b36fb.js} +1 -1
  47. package/dist/lib/esm/apollo-super-selection.js +2 -2
  48. package/dist/lib/esm/context-consumer.entry.js +1 -1
  49. package/dist/lib/esm/custom-fund-choice.api-42801d64.js +3188 -0
  50. package/dist/lib/esm/{index-189b2180.js → index-107d7c24.js} +1 -1
  51. package/dist/lib/esm/loader.js +2 -2
  52. package/dist/lib/esm/{sss-button_34.entry.js → sss-button_32.entry.js} +374 -3633
  53. package/dist/lib/esm/sss-super-byof-host.entry.js +107 -0
  54. package/dist/lib/esm/stencil-async-content.entry.js +1 -1
  55. package/dist/lib/esm/stencil-route-title.entry.js +2 -2
  56. package/dist/lib/esm/stencil-router-prompt.entry.js +2 -2
  57. package/dist/lib/esm/stencil-router-redirect.entry.js +2 -2
  58. package/dist/lib/esm-es5/{active-router-5e40c0f8.js → active-router-d18b36fb.js} +1 -1
  59. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  60. package/dist/lib/esm-es5/context-consumer.entry.js +1 -1
  61. package/dist/lib/esm-es5/custom-fund-choice.api-42801d64.js +1 -0
  62. package/dist/lib/esm-es5/{index-189b2180.js → index-107d7c24.js} +1 -1
  63. package/dist/lib/esm-es5/loader.js +1 -1
  64. package/dist/lib/esm-es5/sss-button_32.entry.js +69 -0
  65. package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -0
  66. package/dist/lib/esm-es5/stencil-async-content.entry.js +1 -1
  67. package/dist/lib/esm-es5/stencil-route-title.entry.js +1 -1
  68. package/dist/lib/esm-es5/stencil-router-prompt.entry.js +1 -1
  69. package/dist/lib/esm-es5/stencil-router-redirect.entry.js +1 -1
  70. package/dist/lib/types/components/super-byof/super-byof-types.d.ts +26 -0
  71. package/dist/lib/types/components/super-byof/super-byof.d.ts +19 -0
  72. package/dist/lib/types/components/super-byof/super-byof.form.d.ts +6 -0
  73. package/dist/lib/types/components/super-campaign/super-campaign.d.ts +0 -1
  74. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +8 -0
  75. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +1 -0
  76. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +1 -1
  77. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.d.ts +28 -0
  78. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-types.d.ts +15 -0
  79. package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +2 -0
  80. package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +1 -0
  81. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +1 -0
  82. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +1 -0
  83. package/dist/lib/types/components/super-smsf/super-smsf-types.d.ts +34 -0
  84. package/dist/lib/types/components/super-smsf/super-smsf.d.ts +20 -0
  85. package/dist/lib/types/components.d.ts +39 -63
  86. package/package.json +2 -1
  87. package/dist/lib/apollo-super-selection/p-071b8545.entry.js +0 -1
  88. package/dist/lib/apollo-super-selection/p-2d13d0e4.system.entry.js +0 -69
  89. package/dist/lib/apollo-super-selection/p-51aefdb1.system.entry.js +0 -1
  90. package/dist/lib/apollo-super-selection/p-664825cf.entry.js +0 -14
  91. package/dist/lib/apollo-super-selection/p-80178f87.system.js +0 -1
  92. package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +0 -1
  93. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.js +0 -143
  94. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +0 -123
  95. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.js +0 -253
  96. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +0 -121
  97. package/dist/lib/esm-es5/sss-button_34.entry.js +0 -69
  98. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.d.ts +0 -16
  99. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.d.ts +0 -13
  100. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.d.ts +0 -29
  101. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.d.ts +0 -14
  102. /package/dist/lib/collection/components/{super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.js → super-byof/super-byof.form.js} +0 -0
  103. /package/dist/lib/types/components/{super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.d.ts → super-smsf/super-smsf.form.d.ts} +0 -0
@@ -1,121 +0,0 @@
1
- import { Component, getAssetPath, h, Host, Prop, State } from '@stencil/core';
2
- import { injectHistory } from '@stencil/router';
3
- import * as O from 'fp-ts/Option';
4
- import { EventTrackingService } from '../../../services/event-tracking.service';
5
- import navigationService from '../../../services/navigation.service';
6
- import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
7
- import superSelectionAppService from '../../../services/super-selection-app.service';
8
- import customFundChoiceApi from '../api/custom-fund-choice.api';
9
- import customFundState from '../custom-fund.store';
10
- import { validateAbn } from './abn-validation';
11
- export class SelfManagedFund {
12
- constructor() {
13
- this.isSubmitDisabled = true;
14
- this.isAbnValid = validateAbn(customFundState.selfManagedFundForm.fundAbn);
15
- this.eventTrackingService = EventTrackingService.Instance;
16
- this.success = () => {
17
- navigationService.navigateInternallyToStandardChoice({
18
- history: this.history,
19
- fundName: 'Self-managed super fund',
20
- fundDetails: {
21
- type: 'smsf',
22
- fundName: customFundState.selfManagedFundForm.fundName,
23
- fundEsa: customFundState.selfManagedFundForm.fundEsa
24
- },
25
- handleSubmitFn: async (standardChoiceFormSignature) => {
26
- const requestDto = Object.assign({ smsfChoice: {
27
- abn: customFundState.selfManagedFundForm.fundAbn,
28
- fundName: customFundState.selfManagedFundForm.fundName,
29
- fundAddress: {
30
- addressLine1: customFundState.selfManagedFundForm.addressLine1,
31
- addressLine2: customFundState.selfManagedFundForm.addressLine2,
32
- city: customFundState.selfManagedFundForm.city,
33
- state: customFundState.selfManagedFundForm.state,
34
- postcode: customFundState.selfManagedFundForm.postcode
35
- },
36
- bsb: customFundState.selfManagedFundForm.bsb,
37
- bankAccountName: customFundState.selfManagedFundForm.bankAccountName,
38
- bankAccountNumber: customFundState.selfManagedFundForm.bankAccountNumber,
39
- electronicServiceAddress: customFundState.selfManagedFundForm.fundEsa,
40
- memberFirstName: customFundState.selfManagedFundForm.memberFirstName,
41
- memberFamilyName: customFundState.selfManagedFundForm.memberFamilyName
42
- }, standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig);
43
- await customFundChoiceApi.submitSelfManagedFundChoiceAsync(requestDto);
44
- }
45
- });
46
- };
47
- }
48
- componentDidLoad() {
49
- this.updateIsSubmitDisabled();
50
- return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
51
- promotedFundsShown: superSelectionAppService.promotedFunds,
52
- defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi)
53
- });
54
- }
55
- render() {
56
- return (h(Host, null,
57
- h("sss-header-section", null),
58
- h("div", { class: "flex justify-center mt-11" },
59
- h("sss-custom-fund", null,
60
- h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
61
- 'was-validated': this.formState === 'validated'
62
- }, ref: (el) => (this.formElement = el), onInput: (_) => this.updateIsSubmitDisabled() },
63
- h("div", { class: "p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560" },
64
- h("p", { class: "sm:text-lg font-bold" }, "Fund details"),
65
- h("div", { class: "bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3" },
66
- h("div", { class: "flex" },
67
- h("div", { class: "flex-shrink-0" },
68
- h("img", { class: "h-5 w-5", src: getAssetPath('assets/icon-exclamation.svg') })),
69
- h("div", { class: "ml-3 text-sm text-yellow-700 leading-5" }, "Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step."))),
70
- h("sss-self-managed-fund-inputs", { fundForm: customFundState.selfManagedFundForm, showValidationErrors: this.formState === 'validated', onFormChanged: (event) => {
71
- customFundState.selfManagedFundForm = Object.assign(Object.assign({}, customFundState.selfManagedFundForm), event.detail);
72
- if (event.detail.isAbnValid !== undefined)
73
- this.isAbnValid = event.detail.isAbnValid;
74
- this.updateIsSubmitDisabled();
75
- } })),
76
- h("div", { class: "flex justify-center mt-8" },
77
- h("div", { class: "sm:max-w-320 w-full" },
78
- h("div", { class: "mb-4", onClick:
79
- // user clicks on disabled button (div wrapper) then validation errors will show
80
- () => (this.formState = 'validated') },
81
- h("sss-button", { testid: "continue-button", fillWidth: true, promiseFn: () => this.handleSubmitForm(), disabled: this.isSubmitDisabled }, "Continue")),
82
- h("stencil-route-link", { url: SuperSelectionAppRoutes.ChoicePage },
83
- h("sss-button", { testid: "back-button", fillWidth: true, variant: "secondary" }, "Back")))))))));
84
- }
85
- updateIsSubmitDisabled() {
86
- this.isSubmitDisabled = !this.formElement.checkValidity() || !this.isAbnValid;
87
- }
88
- async handleSubmitForm() {
89
- this.formState = 'validated';
90
- if (this.formElement.checkValidity())
91
- this.success();
92
- }
93
- static get is() { return "sss-self-managed-fund"; }
94
- static get properties() { return {
95
- "history": {
96
- "type": "unknown",
97
- "mutable": false,
98
- "complexType": {
99
- "original": "RouterHistory",
100
- "resolved": "RouterHistory",
101
- "references": {
102
- "RouterHistory": {
103
- "location": "import",
104
- "path": "@stencil/router"
105
- }
106
- }
107
- },
108
- "required": false,
109
- "optional": false,
110
- "docs": {
111
- "tags": [],
112
- "text": ""
113
- }
114
- }
115
- }; }
116
- static get states() { return {
117
- "formState": {},
118
- "isSubmitDisabled": {}
119
- }; }
120
- }
121
- injectHistory(SelfManagedFund);