@flarehr/apollo-super-selection 3.52.60060 → 3.53.61179

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 (162) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.css +1 -0
  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/assets/icon-check.svg +3 -0
  5. package/dist/lib/apollo-super-selection/assets/icon-exclamation.svg +3 -0
  6. package/dist/lib/apollo-super-selection/assets/icon-information-circle.svg +3 -0
  7. package/dist/lib/apollo-super-selection/p-03373b03.system.js +1 -0
  8. package/dist/lib/apollo-super-selection/p-14885f78.system.js +15 -0
  9. package/dist/lib/apollo-super-selection/{p-381262c1.system.js → p-15f0e5eb.system.js} +1 -1
  10. package/dist/lib/apollo-super-selection/p-29c11183.js +15 -0
  11. package/dist/lib/apollo-super-selection/p-6c94de60.system.entry.js +69 -0
  12. package/dist/lib/apollo-super-selection/p-74f91404.entry.js +14 -0
  13. package/dist/lib/apollo-super-selection/p-86e3e03f.js +1 -0
  14. package/dist/lib/cjs/apollo-super-selection.cjs.js +3 -4
  15. package/dist/lib/cjs/{app-globals-45007120.js → app-globals-b1125d8c.js} +1 -1
  16. package/dist/lib/cjs/{datorama-akita-7f4b082a.js → datorama-akita-6c9cb8fb.js} +1005 -68
  17. package/dist/lib/cjs/loader.cjs.js +3 -4
  18. package/dist/lib/cjs/{fl-button_31.cjs.entry.js → sss-button_28.cjs.entry.js} +2099 -2167
  19. package/dist/lib/collection/apollo-super-selection.css +1 -0
  20. package/dist/lib/collection/collection-manifest.json +16 -28
  21. package/dist/lib/collection/components/app-host/loading-page.js +3 -3
  22. package/dist/lib/collection/components/app-host/super-selection-app-host.css +0 -4
  23. package/dist/lib/collection/components/app-host/super-selection-app-host.js +7 -19
  24. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +69 -1
  25. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +9 -3
  26. package/dist/lib/collection/components/super-selection-app/app-state-pages/success.js +16 -21
  27. package/dist/lib/collection/components/super-selection-app/assets/icon-check.svg +3 -0
  28. package/dist/lib/collection/components/super-selection-app/assets/icon-exclamation.svg +3 -0
  29. package/dist/lib/collection/components/super-selection-app/assets/icon-information-circle.svg +3 -0
  30. package/dist/lib/collection/components/super-selection-app/consent/consent.js +57 -0
  31. package/dist/lib/collection/components/super-selection-app/existing-choice/existing-choice.js +132 -0
  32. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +6 -18
  33. package/dist/lib/collection/components/super-selection-app/funds/constants.js +50 -0
  34. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.js +31 -16
  35. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.store.js +10 -14
  36. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +36 -45
  37. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.js +40 -19
  38. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +45 -40
  39. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.js +104 -58
  40. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +53 -49
  41. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.js +6 -16
  42. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-join-page.js +1 -1
  43. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund.store.js +1 -4
  44. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-iframe-builder.js +10 -4
  45. package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +13 -4
  46. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-join-page.js +2 -3
  47. package/dist/lib/collection/components/super-selection-app/header-section/header-section.js +28 -0
  48. package/dist/lib/collection/components/super-selection-app/misc/button.js +146 -0
  49. package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.css +7 -0
  50. package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.js +359 -0
  51. package/dist/lib/collection/components/super-selection-app/misc/loading-indicator.js +52 -0
  52. package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +8 -4
  53. package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +20 -0
  54. package/dist/lib/collection/components/super-selection-app/services/existing-super-choice-info.service.js +95 -0
  55. package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +8 -0
  56. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +6 -4
  57. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +71 -34
  58. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.store.js +10 -0
  59. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-bottom.js +94 -0
  60. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-top.js +89 -0
  61. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +67 -90
  62. package/dist/lib/collection/components/super-selection-app/super-selection-app.css +16 -4
  63. package/dist/lib/collection/components/super-selection-app/super-selection-app.js +32 -11
  64. package/dist/lib/esm/apollo-super-selection.js +3 -4
  65. package/dist/lib/esm/{app-globals-7ac1ffba.js → app-globals-c1f89805.js} +1 -1
  66. package/dist/lib/esm/{datorama-akita-79ce4385.js → datorama-akita-127aea91.js} +960 -28
  67. package/dist/lib/esm/loader.js +3 -4
  68. package/dist/lib/esm/{fl-button_31.entry.js → sss-button_28.entry.js} +2086 -2151
  69. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  70. package/dist/lib/esm-es5/{app-globals-7ac1ffba.js → app-globals-c1f89805.js} +1 -1
  71. package/dist/lib/esm-es5/datorama-akita-127aea91.js +15 -0
  72. package/dist/lib/esm-es5/loader.js +1 -1
  73. package/dist/lib/esm-es5/sss-button_28.entry.js +69 -0
  74. package/dist/lib/types/components/app-host/super-selection-app-host.d.ts +0 -3
  75. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +30 -0
  76. package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +2 -1
  77. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +19 -4
  78. package/dist/lib/types/components/super-selection-app/consent/consent.d.ts +9 -0
  79. package/dist/lib/types/components/super-selection-app/existing-choice/existing-choice.d.ts +12 -0
  80. package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +0 -1
  81. package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +3 -0
  82. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.d.ts +1 -1
  83. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +4 -6
  84. package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund.d.ts +0 -2
  85. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.d.ts +2 -1
  86. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.d.ts +1 -0
  87. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.d.ts +7 -0
  88. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.d.ts +1 -0
  89. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.d.ts +0 -1
  90. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund.store.d.ts +0 -3
  91. package/dist/lib/types/components/super-selection-app/header-section/header-section.d.ts +4 -0
  92. package/dist/lib/types/components/super-selection-app/misc/button.d.ts +11 -0
  93. package/dist/lib/types/components/super-selection-app/misc/dropdown-async.d.ts +44 -0
  94. package/dist/lib/types/components/super-selection-app/misc/loading-indicator.d.ts +5 -0
  95. package/dist/lib/types/components/super-selection-app/services/australian-fund-lookup.service.d.ts +1 -0
  96. package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +4 -0
  97. package/dist/lib/types/components/super-selection-app/services/existing-super-choice-info.service.d.ts +51 -0
  98. package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +6 -0
  99. package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +3 -2
  100. package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +6 -3
  101. package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.store.d.ts +8 -0
  102. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-bottom.d.ts +9 -0
  103. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-top.d.ts +7 -0
  104. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +0 -3
  105. package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +1 -1
  106. package/dist/lib/types/components.d.ts +146 -97
  107. package/package.json +12 -7
  108. package/dist/lib/apollo-super-selection/assets/logo-qsuper-square.png +0 -0
  109. package/dist/lib/apollo-super-selection/assets/logo-qsuper.png +0 -0
  110. package/dist/lib/apollo-super-selection/p-0623b20a.system.entry.js +0 -69
  111. package/dist/lib/apollo-super-selection/p-13573238.system.js +0 -15
  112. package/dist/lib/apollo-super-selection/p-342cee5a.js +0 -1
  113. package/dist/lib/apollo-super-selection/p-38f24f69.js +0 -1
  114. package/dist/lib/apollo-super-selection/p-64ebe17d.system.entry.js +0 -1
  115. package/dist/lib/apollo-super-selection/p-7dbe5a2f.system.js +0 -1
  116. package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +0 -1
  117. package/dist/lib/apollo-super-selection/p-df9ce4b7.js +0 -15
  118. package/dist/lib/apollo-super-selection/p-f7a45412.entry.js +0 -1
  119. package/dist/lib/apollo-super-selection/p-fbe8c6d1.entry.js +0 -14
  120. package/dist/lib/cjs/delay-81aff2f1.js +0 -955
  121. package/dist/lib/cjs/fl-style-guide.cjs.entry.js +0 -90
  122. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.css +0 -11
  123. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.css +0 -23
  124. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.js +0 -62
  125. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-fund.store.js +0 -10
  126. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-standard-choice-page.js +0 -67
  127. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.css +0 -0
  128. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.js +0 -19
  129. package/dist/lib/collection/components/super-selection-app/notifications-section/notifications-section.js +0 -25
  130. package/dist/lib/collection/components/super-selection-app/services/notifications.service.js +0 -37
  131. package/dist/lib/collection/components/super-selection-app/services/notifications.store.js +0 -3
  132. package/dist/lib/collection/components/super-selection-app/services/selected-super-choice-info.service.js +0 -50
  133. package/dist/lib/collection/components/super-selection-app/standard-choice/api/standard-choice.model.js +0 -1
  134. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-qsuper-square.png +0 -0
  135. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-qsuper.png +0 -0
  136. package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.css +0 -18
  137. package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.js +0 -53
  138. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item.js +0 -296
  139. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.css +0 -70
  140. package/dist/lib/esm/delay-c0555599.js +0 -935
  141. package/dist/lib/esm/fl-style-guide.entry.js +0 -86
  142. package/dist/lib/esm-es5/datorama-akita-79ce4385.js +0 -15
  143. package/dist/lib/esm-es5/delay-c0555599.js +0 -1
  144. package/dist/lib/esm-es5/fl-button_31.entry.js +0 -69
  145. package/dist/lib/esm-es5/fl-style-guide.entry.js +0 -1
  146. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/button/button.css +0 -45
  147. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown/dropdown.css +0 -9
  148. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown-async/dropdown-async.css +0 -9
  149. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/loading-indicator/loading-indicator.css +0 -141
  150. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/promise-button/promise-button.css +0 -5
  151. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/style-guide/style-guide.css +0 -0
  152. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.d.ts +0 -8
  153. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-fund.store.d.ts +0 -7
  154. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-standard-choice-page.d.ts +0 -8
  155. package/dist/lib/types/components/super-selection-app/funds/slate-super/slatesuper-header.d.ts +0 -3
  156. package/dist/lib/types/components/super-selection-app/notifications-section/notifications-section.d.ts +0 -5
  157. package/dist/lib/types/components/super-selection-app/services/notifications.service.d.ts +0 -15
  158. package/dist/lib/types/components/super-selection-app/services/notifications.store.d.ts +0 -14
  159. package/dist/lib/types/components/super-selection-app/services/selected-super-choice-info.service.d.ts +0 -18
  160. package/dist/lib/types/components/super-selection-app/standard-choice/api/standard-choice.model.d.ts +0 -3
  161. package/dist/lib/types/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.d.ts +0 -5
  162. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item.d.ts +0 -22
@@ -1,90 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-942e6faa.js');
6
- const delay = require('./delay-81aff2f1.js');
7
-
8
- function isNumeric(val) {
9
- return !delay.isArray(val) && (val - parseFloat(val) + 1) >= 0;
10
- }
11
-
12
- function timer(dueTime = 0, periodOrScheduler, scheduler) {
13
- let period = -1;
14
- if (isNumeric(periodOrScheduler)) {
15
- period = Number(periodOrScheduler) < 1 && 1 || Number(periodOrScheduler);
16
- }
17
- else if (delay.isScheduler(periodOrScheduler)) {
18
- scheduler = periodOrScheduler;
19
- }
20
- if (!delay.isScheduler(scheduler)) {
21
- scheduler = delay.async;
22
- }
23
- return new delay.Observable(subscriber => {
24
- const due = isNumeric(dueTime)
25
- ? dueTime
26
- : (+dueTime - scheduler.now());
27
- return scheduler.schedule(dispatch, due, {
28
- index: 0, period, subscriber
29
- });
30
- });
31
- }
32
- function dispatch(state) {
33
- const { index, period, subscriber } = state;
34
- subscriber.next(index);
35
- if (subscriber.closed) {
36
- return;
37
- }
38
- else if (period === -1) {
39
- return subscriber.complete();
40
- }
41
- state.index = index + 1;
42
- this.schedule(state, period);
43
- }
44
-
45
- const getLocalResourceUrl = (relativePath) => {
46
- const resourcesUrlElement = document.querySelector('script[data-fl-namespace="design-system"][data-fl-resources-url]');
47
- const resourcesUrl = (resourcesUrlElement && resourcesUrlElement.getAttribute('data-fl-resources-url')) || '';
48
- try {
49
- return new URL(relativePath, resourcesUrl).href;
50
- }
51
- catch (error) {
52
- return `${resourcesUrl}/${relativePath}`;
53
- }
54
- };
55
-
56
- const styleGuideCss = "";
57
-
58
- const FlareStyleGuide = class {
59
- constructor(hostRef) {
60
- index.registerInstance(this, hostRef);
61
- this.data = [
62
- 'Apple',
63
- 'Application',
64
- 'Appetizer',
65
- 'Anna',
66
- 'Banana',
67
- 'Archery',
68
- 'Apogee'
69
- ].map((v) => ({
70
- label: v,
71
- value: v
72
- }));
73
- this.searchFunction = (query) => {
74
- const results = this.data.filter((item) => item.label.toLowerCase().includes(query.toLowerCase()));
75
- return delay.of(results).pipe(delay.delay(1000)).toPromise();
76
- };
77
- }
78
- render() {
79
- return (index.h(index.Host, null, index.h("link", { rel: "stylesheet", href: getLocalResourceUrl('beacon.css'), media: "all" }), this.themeCssUrl && index.h("link", { rel: "stylesheet", href: this.themeCssUrl, media: "all" }), index.h("div", { class: "container m-3 p-5 shadow" }, index.h("h1", null, "Beacon"), index.h("h5", null, "Flare-Apollo Component Library \uD83D\uDE80"), index.h("div", { class: "row" }, index.h("div", { class: "col" }, index.h("ul", { class: "list-group" }, index.h("li", { class: "list-group-item" }, index.h("small", { class: "text-muted" }, "Typography"), index.h("div", { class: "col" }, index.h("h1", null, "h1 Heading"), index.h("h2", null, "h2 Sub-heading"), index.h("h3", null, "h3 Sub-heading"), index.h("h4", null, "h4 Sub-heading"), index.h("p", null, "Paragraph"), index.h("div", { class: "d-flex flex-column" }, index.h("strong", null, "Strong"), index.h("small", null, "small"), index.h("a", { href: "https://www.flarehr.com", target: "_blank" }, "Weblink")))), index.h("li", { class: "list-group-item" }, index.h("small", { class: "text-muted" }, "Buttons"), index.h("div", { class: "col-3 my-2" }, this.renderButtonVariants())), index.h("li", { class: "list-group-item" }, index.h("small", { class: "text-muted" }, "Loading indicator"), index.h("div", { class: "col" }, index.h("fl-loading-indicator", null), index.h("fl-loading-indicator", { theme: "dark" }))), index.h("li", { class: "list-group-item" }, index.h("small", { class: "text-muted" }, "Dropdown"), index.h("div", { class: "col-4" }, index.h("fl-dropdown", { options: this.data }))), index.h("li", { class: "list-group-item" }, index.h("small", { class: "text-muted" }, "Async Dropdown"), index.h("div", { class: "col-4" }, index.h("fl-dropdown-async", { "min-search-string-length": "2", searchFunction: this.searchFunction }))), index.h("li", { class: "list-group-item" }, index.h("small", { class: "text-muted" }, "Promise Button"), index.h("div", { class: "col-3 my-2" }, index.h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.takeTime() }, "Promise Button block")), index.h("div", { class: "col-3 my-2" }, index.h("fl-promise-button", { promiseFn: () => this.takeTime() }, "Promise Button")), index.h("div", { class: "col-3 my-2" }, index.h("fl-promise-button", { variant: "secondary", promiseFn: () => this.takeTime() }, "Secondary Promise Button")))))))));
80
- }
81
- renderButtonVariants() {
82
- return (index.h("ul", { class: "list-group" }, index.h("li", { class: "list-group-item" }, index.h("i", null, "Primary"), index.h("fl-button", { isBlockElement: true }, "Button")), index.h("li", { class: "list-group-item" }, index.h("i", null, "Primary, disabled"), index.h("fl-button", { isBlockElement: true, disabled: true }, "Button")), index.h("li", { class: "list-group-item" }, index.h("i", null, "Secondary"), index.h("fl-button", { isBlockElement: true, variant: "secondary" }, "Button")), index.h("li", { class: "list-group-item" }, index.h("i", null, "Secondary, disabled"), index.h("fl-button", { isBlockElement: true, disabled: true, variant: "secondary" }, "Button"))));
83
- }
84
- async takeTime() {
85
- return timer(Math.random() * 2000 + 2000).toPromise();
86
- }
87
- };
88
- FlareStyleGuide.style = styleGuideCss;
89
-
90
- exports.fl_style_guide = FlareStyleGuide;
@@ -1,11 +0,0 @@
1
- html {
2
- scroll-behavior: smooth;
3
- }
4
-
5
- img.fluid-fit {
6
- object-fit: cover;
7
- }
8
-
9
- .ss-footer-logo {
10
- max-width: 7rem;
11
- }
@@ -1,23 +0,0 @@
1
- html {
2
- scroll-behavior: smooth;
3
- }
4
-
5
- img.fluid-fit {
6
- object-fit: cover;
7
- }
8
-
9
- .overlay {
10
- position: absolute;
11
- top: 0;
12
- left: 0;
13
- z-index: 100;
14
- background-color: #fff;
15
- opacity: 0.7;
16
- width: 100%;
17
- height: 100%;
18
- }
19
-
20
- .dialog {
21
- z-index: 101;
22
- position: relative;
23
- }
@@ -1,62 +0,0 @@
1
- import { Component, h, Host, Prop, State } from '@stencil/core';
2
- import navigationService from '../../services/navigation.service';
3
- import { SuperSelectionAppRoutes } from '../../services/super-selection-app.routes';
4
- import superSelectionAppService from '../../services/super-selection-app.service';
5
- import promotedFundChoiceApi from './api/promoted-fund-choice.api';
6
- import promotedFundState from './promoted-fund.store';
7
- export class PromotedFundStandardChoicePage {
8
- render() {
9
- return (h(Host, { class: "d-flex flex-fill" },
10
- h("div", { class: "container" },
11
- h("div", { class: "row justify-content-center" },
12
- h("div", { class: "col col-sm-10 col-md-7" },
13
- h("div", null,
14
- h("div", null, "You're almost done, simply sign the Standard Choice Form below to finalise your superannuation choice."),
15
- h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
16
- 'was-validated': this.formState === 'validated'
17
- }, ref: (el) => (this.formElement = el) },
18
- h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
19
- promotedFundState.standardChoiceFormSignature =
20
- event.detail.standardChoiceFormSignature;
21
- } })),
22
- h("div", { class: "d-flex mt-4" },
23
- h("div", { class: "flex-grow-1 w-50" },
24
- h("div", { class: "ml-2" },
25
- h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() },
26
- h("span", null, "Save and continue")))))))))));
27
- }
28
- async handleSubmitForm() {
29
- this.formState = 'validated';
30
- if (this.formElement.checkValidity()) {
31
- await promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, promotedFundState), { shownFunds: superSelectionAppService.promotedFunds }));
32
- superSelectionAppService.markSuperSelectionAsSubmitted();
33
- navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
34
- }
35
- }
36
- static get is() { return "sss-promoted-fund-standard-choice-page"; }
37
- static get properties() { return {
38
- "history": {
39
- "type": "unknown",
40
- "mutable": false,
41
- "complexType": {
42
- "original": "RouterHistory",
43
- "resolved": "RouterHistory",
44
- "references": {
45
- "RouterHistory": {
46
- "location": "import",
47
- "path": "@stencil/router"
48
- }
49
- }
50
- },
51
- "required": false,
52
- "optional": false,
53
- "docs": {
54
- "tags": [],
55
- "text": ""
56
- }
57
- }
58
- }; }
59
- static get states() { return {
60
- "formState": {}
61
- }; }
62
- }
@@ -1,10 +0,0 @@
1
- import { createStore } from '@stencil/store';
2
- export const initialSlateSuper = {
3
- slateFundForm: {
4
- memberNumber: '',
5
- standardChoiceFormSignature: '',
6
- shownFunds: []
7
- }
8
- };
9
- const { state } = createStore(initialSlateSuper);
10
- export default state;
@@ -1,67 +0,0 @@
1
- import { Component, h, Host, Prop, State } from '@stencil/core';
2
- import navigationService from '../../services/navigation.service';
3
- import { SuperSelectionAppRoutes } from '../../services/super-selection-app.routes';
4
- import superSelectionAppService from '../../services/super-selection-app.service';
5
- import slateState from '../slate-super/slate-fund.store';
6
- import slateFundState from '../slate-super/slate-fund.store';
7
- import slateChoiceApi from './api/slate-choice.api';
8
- export class SlateStandardChoicePage {
9
- render() {
10
- return (h(Host, { class: "d-flex flex-fill" },
11
- h("div", { class: "container" },
12
- h("div", { class: "row justify-content-center" },
13
- h("div", { class: "col col-sm-10 col-md-7" },
14
- h("sss-slatesuper-header", null),
15
- h("div", null,
16
- h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
17
- 'was-validated': this.formState === 'validated'
18
- }, ref: (el) => (this.formElement = el) },
19
- h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
20
- slateFundState.slateFundForm = Object.assign(Object.assign({}, slateFundState.slateFundForm), event.detail);
21
- } })),
22
- h("div", { class: "d-flex mt-4" },
23
- h("div", { class: "flex-grow-1 w-50" },
24
- h("div", { class: "mr-2" },
25
- h("stencil-route-link", { url: "/" },
26
- h("fl-button", { isBlockElement: true, variant: "secondary" },
27
- h("span", null, "Back"))))),
28
- h("div", { class: "flex-grow-1 w-50" },
29
- h("div", { class: "ml-2" },
30
- h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() },
31
- h("span", null, "Save and continue")))))))))));
32
- }
33
- async handleSubmitForm() {
34
- this.formState = 'validated';
35
- if (this.formElement.checkValidity()) {
36
- await slateChoiceApi.submitSlateChoiceAsync(Object.assign(Object.assign({}, slateState.slateFundForm), { shownFunds: superSelectionAppService.promotedFunds }));
37
- superSelectionAppService.markSuperSelectionAsSubmitted();
38
- navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
39
- }
40
- }
41
- static get is() { return "sss-slate-standard-choice-page"; }
42
- static get properties() { return {
43
- "history": {
44
- "type": "unknown",
45
- "mutable": false,
46
- "complexType": {
47
- "original": "RouterHistory",
48
- "resolved": "RouterHistory",
49
- "references": {
50
- "RouterHistory": {
51
- "location": "import",
52
- "path": "@stencil/router"
53
- }
54
- }
55
- },
56
- "required": false,
57
- "optional": false,
58
- "docs": {
59
- "tags": [],
60
- "text": ""
61
- }
62
- }
63
- }; }
64
- static get states() { return {
65
- "formState": {}
66
- }; }
67
- }
@@ -1,19 +0,0 @@
1
- import { Component, getAssetPath, h } from '@stencil/core';
2
- export class SlatesuperHeader {
3
- render() {
4
- return (h("div", { class: "d-flex" },
5
- h("div", null,
6
- h("img", { class: "ss-choice-logo img-thumbnail", alt: "Simple Financial Choices Pty Ltd", src: getAssetPath(`assets/logo-slate.png`) })),
7
- h("div", { class: "d-flex flex-column ml-3 align-items-left" },
8
- h("p", { class: "confirm-title font-weight-bold mb-0" }, "You\u2019re almost there!"),
9
- h("p", { class: "confirm-text mb-0" }, "To proceed type your name below which authorises the signing of the Standard Choice form confirming your super selection."))));
10
- }
11
- static get is() { return "sss-slatesuper-header"; }
12
- static get originalStyleUrls() { return {
13
- "$": ["slatesuper-header.scss"]
14
- }; }
15
- static get styleUrls() { return {
16
- "$": ["slatesuper-header.css"]
17
- }; }
18
- static get assetsDirs() { return ["assets"]; }
19
- }
@@ -1,25 +0,0 @@
1
- import { Component, h, Host } from '@stencil/core';
2
- import notificationsService from '../services/notifications.service';
3
- export class NotificationsSection {
4
- disconnectedCallback() {
5
- notificationsService.clearNotifications();
6
- }
7
- render() {
8
- const { items } = notificationsService.state;
9
- if (items.length <= 0)
10
- return h(Host, null);
11
- const firstAlert = items[0];
12
- const className = `alert alert-${firstAlert.type}`;
13
- return (h("div", { class: className, role: "alert" },
14
- h("div", { class: "d-flex" },
15
- h("p", { class: "mb-0 flex-grow-1" },
16
- h("strong", null, items[0].details.title)),
17
- h("button", { onClick: this.handleClose, type: "button", class: "close pb-1", "aria-label": "Close" },
18
- h("span", { "aria-hidden": "true" }, "\u00D7"))),
19
- h("p", { class: "mb-0 mt-1" }, items[0].details.description)));
20
- }
21
- handleClose() {
22
- notificationsService.closeCurrent();
23
- }
24
- static get is() { return "sss-notifications-section"; }
25
- }
@@ -1,37 +0,0 @@
1
- import { createStore } from '@stencil/store';
2
- import { initialState } from './notifications.store';
3
- class NotificationsService {
4
- constructor() {
5
- const { state } = createStore(initialState);
6
- this._state = state;
7
- }
8
- get state() {
9
- return this._state;
10
- }
11
- closeCurrent() {
12
- const items = [...this._state.items];
13
- items.shift();
14
- this._state.items = items;
15
- }
16
- clearNotifications() {
17
- this._state.items = [];
18
- }
19
- showErrorNotification(details, priority) {
20
- this.pushNotification(details, priority !== null && priority !== void 0 ? priority : 0, 'danger');
21
- }
22
- showInfoNotification(details, priority) {
23
- this.pushNotification(details, priority !== null && priority !== void 0 ? priority : 0, 'info');
24
- }
25
- showWarningNotification(details, priority) {
26
- this.pushNotification(details, priority !== null && priority !== void 0 ? priority : 0, 'warning');
27
- }
28
- showSuccessNotification(details, priority) {
29
- this.pushNotification(details, priority !== null && priority !== void 0 ? priority : 0, 'success');
30
- }
31
- pushNotification(details, priority, type) {
32
- const items = [...this._state.items];
33
- items.push({ details, type, priority });
34
- this._state.items = items.sort((a, b) => b.priority - a.priority);
35
- }
36
- }
37
- export default new NotificationsService();
@@ -1,3 +0,0 @@
1
- export const initialState = {
2
- items: []
3
- };
@@ -1,50 +0,0 @@
1
- import { isSome, none, some } from 'fp-ts/Option';
2
- import * as constants from '../funds/constants';
3
- import australianFundLookupService from './australian-fund-lookup.service';
4
- import superSelectionAppService from './super-selection-app.service';
5
- export class ChosenFundService {
6
- async GetChosenFundAsync() {
7
- var _a, _b;
8
- const choiceDetails = (_a = superSelectionAppService.superBuyer.superChoice) === null || _a === void 0 ? void 0 : _a.choiceDetails;
9
- if (!choiceDetails)
10
- return none;
11
- if ('promoted' in choiceDetails) {
12
- const fund = constants.PromotedFundIdList.find((f) => f.dtoPropName in choiceDetails.promoted);
13
- const promotedId = (_b = fund === null || fund === void 0 ? void 0 : fund.id) !== null && _b !== void 0 ? _b : '';
14
- return some({
15
- isPromoted: true,
16
- promotedId
17
- });
18
- }
19
- else if ('smsf' in choiceDetails) {
20
- return some({
21
- isPromoted: false,
22
- name: choiceDetails.smsf.fundName,
23
- type: 'Self Managed Fund'
24
- });
25
- }
26
- else if ('myOwnFund' in choiceDetails) {
27
- const fundUsi = choiceDetails.myOwnFund.usi;
28
- const fund = await this.getFundByUsiAsync(fundUsi);
29
- return some({
30
- isPromoted: false,
31
- name: isSome(fund) ? fund.value.productName : fundUsi,
32
- type: 'My Own Fund'
33
- });
34
- }
35
- else if ('default' in choiceDetails) {
36
- const defaultUsi = choiceDetails.default.usi;
37
- const defaultFund = await this.getFundByUsiAsync(defaultUsi);
38
- return some({
39
- isPromoted: false,
40
- name: isSome(defaultFund) ? defaultFund.value.productName : defaultUsi,
41
- type: 'Default Fund'
42
- });
43
- }
44
- return none;
45
- }
46
- getFundByUsiAsync(usi) {
47
- return australianFundLookupService.getFundByUsiAsync(usi);
48
- }
49
- }
50
- export default new ChosenFundService();
@@ -1,18 +0,0 @@
1
- html {
2
- scroll-behavior: smooth;
3
- }
4
-
5
- img.fluid-fit {
6
- object-fit: cover;
7
- }
8
-
9
- .picked-block {
10
- background-color: var(--fl-color-primary);
11
- border-top-right-radius: 3px;
12
- right: 0;
13
- top: 0;
14
- }
15
-
16
- .picked-box-border {
17
- border: 2px solid var(--fl-color-primary);
18
- }
@@ -1,53 +0,0 @@
1
- import { Component, h, Host, Prop } from '@stencil/core';
2
- export class SelectedSuperChoiceSection {
3
- render() {
4
- return (h(Host, { class: "bg-white rounded-sm picked-box-border p-3" },
5
- h("div", { class: "d-flex" },
6
- h("div", { class: "flex-grow-1 font-weight-bold" }, this.fundType),
7
- h("div", { class: "px-3 py-2 text-white picked-block position-absolute" }, "You picked")),
8
- h("div", null, this.fundName)));
9
- }
10
- static get is() { return "sss-selected-super-choice-section"; }
11
- static get originalStyleUrls() { return {
12
- "$": ["selected-super-choice-section.scss"]
13
- }; }
14
- static get styleUrls() { return {
15
- "$": ["selected-super-choice-section.css"]
16
- }; }
17
- static get properties() { return {
18
- "fundType": {
19
- "type": "string",
20
- "mutable": false,
21
- "complexType": {
22
- "original": "string",
23
- "resolved": "string",
24
- "references": {}
25
- },
26
- "required": false,
27
- "optional": false,
28
- "docs": {
29
- "tags": [],
30
- "text": ""
31
- },
32
- "attribute": "fund-type",
33
- "reflect": false
34
- },
35
- "fundName": {
36
- "type": "string",
37
- "mutable": false,
38
- "complexType": {
39
- "original": "string",
40
- "resolved": "string",
41
- "references": {}
42
- },
43
- "required": false,
44
- "optional": false,
45
- "docs": {
46
- "tags": [],
47
- "text": ""
48
- },
49
- "attribute": "fund-name",
50
- "reflect": false
51
- }
52
- }; }
53
- }