@genesislcap/foundation-login 10.3.1 → 11.3.1

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 (213) hide show
  1. package/README.md +28 -72
  2. package/dist/dts/main/config.d.ts +13 -0
  3. package/dist/dts/main/config.d.ts.map +1 -1
  4. package/dist/dts/main/main.definition.d.ts +1 -1
  5. package/dist/dts/main/main.styles.d.ts +4 -1
  6. package/dist/dts/main/main.styles.d.ts.map +1 -1
  7. package/dist/dts/main/main.template.d.ts +1 -1
  8. package/dist/dts/main/main.template.d.ts.map +1 -1
  9. package/dist/dts/routes/base.d.ts +5 -4
  10. package/dist/dts/routes/base.d.ts.map +1 -1
  11. package/dist/dts/routes/config.d.ts +1 -1
  12. package/dist/dts/routes/config.d.ts.map +1 -1
  13. package/dist/dts/routes/forgot-password/forgot-password.d.ts.map +1 -1
  14. package/dist/dts/routes/login-form/login-form.d.ts +7 -3
  15. package/dist/dts/routes/login-form/login-form.d.ts.map +1 -1
  16. package/dist/dts/routes/login-form/login-form.template.d.ts.map +1 -1
  17. package/dist/dts/routes/not-found/not-found.d.ts.map +1 -1
  18. package/dist/dts/routes/protected/protected.d.ts.map +1 -1
  19. package/dist/dts/routes/request-account/request-account.d.ts.map +1 -1
  20. package/dist/dts/routes/reset-password/reset-password.d.ts.map +1 -1
  21. package/dist/dts/routes/verify/verify.d.ts.map +1 -1
  22. package/dist/dts/styles/index.d.ts +0 -1
  23. package/dist/dts/styles/index.d.ts.map +1 -1
  24. package/dist/dts/styles/styles.d.ts.map +1 -1
  25. package/dist/dts/utils/logger.d.ts.map +1 -1
  26. package/dist/esm/components/components.js +0 -1
  27. package/dist/esm/components/index.js +0 -1
  28. package/dist/esm/index.js +0 -1
  29. package/dist/esm/layouts/default.js +0 -1
  30. package/dist/esm/layouts/index.js +0 -1
  31. package/dist/esm/main/config.js +4 -2
  32. package/dist/esm/main/define.js +0 -1
  33. package/dist/esm/main/index.js +0 -1
  34. package/dist/esm/main/main.definition.js +2 -3
  35. package/dist/esm/main/main.js +0 -1
  36. package/dist/esm/main/main.styles.js +5 -3
  37. package/dist/esm/main/main.template.js +0 -1
  38. package/dist/esm/routes/base.js +10 -8
  39. package/dist/esm/routes/config.js +5 -6
  40. package/dist/esm/routes/forgot-password/forgot-password.js +4 -5
  41. package/dist/esm/routes/forgot-password/forgot-password.template.js +0 -1
  42. package/dist/esm/routes/index.js +0 -1
  43. package/dist/esm/routes/login-form/login-form.js +38 -24
  44. package/dist/esm/routes/login-form/login-form.styles.js +0 -1
  45. package/dist/esm/routes/login-form/login-form.template.js +6 -7
  46. package/dist/esm/routes/not-found/not-found.js +1 -2
  47. package/dist/esm/routes/protected/protected.js +2 -3
  48. package/dist/esm/routes/protected/protected.template.js +0 -1
  49. package/dist/esm/routes/request-account/request-account.js +2 -3
  50. package/dist/esm/routes/request-account/request-account.template.js +1 -2
  51. package/dist/esm/routes/reset-password/reset-password.js +2 -3
  52. package/dist/esm/routes/reset-password/reset-password.template.js +0 -1
  53. package/dist/esm/routes/types.js +0 -1
  54. package/dist/esm/routes/verify/verify.js +2 -3
  55. package/dist/esm/routes/verify/verify.template.js +0 -1
  56. package/dist/esm/styles/index.js +0 -2
  57. package/dist/esm/styles/styles.js +2 -11
  58. package/dist/esm/utils/index.js +0 -1
  59. package/dist/esm/utils/logger.js +0 -1
  60. package/dist/foundation-login.api.json +30 -3
  61. package/dist/foundation-login.d.ts +23 -6
  62. package/package.json +27 -11
  63. package/playwright.config.ts +50 -0
  64. package/test/README.md +3 -0
  65. package/dist/1.0.0.remoteEntry.js +0 -1
  66. package/dist/15.15.7a2c23dfae8db4e093ae.js +0 -1347
  67. package/dist/15.707b18d09d78e18958de7e35549b69f2.js.map +0 -1
  68. package/dist/170.02ecd6ffb7bb9c9531e72b7099ba0dce.js.map +0 -1
  69. package/dist/170.170.6ccfc6db6319d932ea16.js +0 -726
  70. package/dist/176.176.bfbfc60ffad852c406c4.js +0 -2
  71. package/dist/176.7ce7d4e386b9ebd99f2a121d6364c1ad.js.map +0 -1
  72. package/dist/185.185.6c3ef3df3fe6f4879dab.js +0 -2
  73. package/dist/185.d623d7c2df70c9d665343444e7c1fa6c.js.map +0 -1
  74. package/dist/338.338.e399ff6c11eb8175de4c.js +0 -2
  75. package/dist/338.4f68feefeaca1bf1dbc7ba12af2e84aa.js.map +0 -1
  76. package/dist/397.397.1de89f70cc9876b09be8.js +0 -3
  77. package/dist/397.397.1de89f70cc9876b09be8.js.LICENSE.txt +0 -1
  78. package/dist/397.984e24423ff2adb107881e130126575a.js.map +0 -1
  79. package/dist/419.419.25c54d30d5ef03de4733.js +0 -2140
  80. package/dist/419.500ae8ac8e1ffc781af411dd2ad588cd.js.map +0 -1
  81. package/dist/453.3c9a25d2af3ccf8232fdd1dfc5244b3d.js.map +0 -1
  82. package/dist/453.453.14247e88aa4df78dca2c.js +0 -2
  83. package/dist/726.4c7419d8edb8ba5e67699f4820c8c461.js.map +0 -1
  84. package/dist/726.726.e09fed9a1e3b529acd46.js +0 -3
  85. package/dist/726.726.e09fed9a1e3b529acd46.js.LICENSE.txt +0 -4
  86. package/dist/741.741.d84fc7e9236cae1acc99.js +0 -3
  87. package/dist/741.741.d84fc7e9236cae1acc99.js.LICENSE.txt +0 -4
  88. package/dist/741.a3dfed45252169e53ee396a8b76cea67.js.map +0 -1
  89. package/dist/b634d7e1f2324faf1230.svg +0 -10
  90. package/dist/c0bd2c45d93ce443d624.jpg +0 -0
  91. package/dist/dashboard.json +0 -1
  92. package/dist/dts/index.federated.d.ts +0 -1
  93. package/dist/dts/index.federated.d.ts.map +0 -1
  94. package/dist/dts/styles/typography.d.ts +0 -4
  95. package/dist/dts/styles/typography.d.ts.map +0 -1
  96. package/dist/esm/components/components.js.map +0 -1
  97. package/dist/esm/components/index.js.map +0 -1
  98. package/dist/esm/index.federated.js +0 -2
  99. package/dist/esm/index.federated.js.map +0 -1
  100. package/dist/esm/index.js.map +0 -1
  101. package/dist/esm/layouts/default.js.map +0 -1
  102. package/dist/esm/layouts/index.js.map +0 -1
  103. package/dist/esm/main/config.js.map +0 -1
  104. package/dist/esm/main/define.js.map +0 -1
  105. package/dist/esm/main/index.js.map +0 -1
  106. package/dist/esm/main/main.definition.js.map +0 -1
  107. package/dist/esm/main/main.js.map +0 -1
  108. package/dist/esm/main/main.styles.js.map +0 -1
  109. package/dist/esm/main/main.template.js.map +0 -1
  110. package/dist/esm/routes/base.js.map +0 -1
  111. package/dist/esm/routes/config.js.map +0 -1
  112. package/dist/esm/routes/forgot-password/forgot-password.js.map +0 -1
  113. package/dist/esm/routes/forgot-password/forgot-password.template.js.map +0 -1
  114. package/dist/esm/routes/index.js.map +0 -1
  115. package/dist/esm/routes/login-form/login-form.js.map +0 -1
  116. package/dist/esm/routes/login-form/login-form.styles.js.map +0 -1
  117. package/dist/esm/routes/login-form/login-form.template.js.map +0 -1
  118. package/dist/esm/routes/not-found/not-found.js.map +0 -1
  119. package/dist/esm/routes/protected/protected.js.map +0 -1
  120. package/dist/esm/routes/protected/protected.template.js.map +0 -1
  121. package/dist/esm/routes/request-account/request-account.js.map +0 -1
  122. package/dist/esm/routes/request-account/request-account.template.js.map +0 -1
  123. package/dist/esm/routes/reset-password/reset-password.js.map +0 -1
  124. package/dist/esm/routes/reset-password/reset-password.template.js.map +0 -1
  125. package/dist/esm/routes/types.js.map +0 -1
  126. package/dist/esm/routes/verify/verify.js.map +0 -1
  127. package/dist/esm/routes/verify/verify.template.js.map +0 -1
  128. package/dist/esm/styles/index.js.map +0 -1
  129. package/dist/esm/styles/styles.js.map +0 -1
  130. package/dist/esm/styles/typography.js +0 -27
  131. package/dist/esm/styles/typography.js.map +0 -1
  132. package/dist/esm/utils/index.js.map +0 -1
  133. package/dist/esm/utils/logger.js.map +0 -1
  134. package/dist/favicon.ico +0 -0
  135. package/dist/foundationLogin.dd27ce925c9e142951f9e650fb3f9b7e.js.map +0 -1
  136. package/dist/index.ejs +0 -23
  137. package/dist/index.html +0 -10
  138. package/dist/info.ejs +0 -13
  139. package/dist/info.html +0 -22
  140. package/dist/main.49b5ccad79942a173c5044389ff4b88b.js.map +0 -1
  141. package/dist/main.cf8907a8eac5d741ac98.js +0 -2
  142. package/dist/npm.analytics.343.1691cbc7d8a5badd3734.js +0 -2
  143. package/dist/npm.analytics.ce2eefcbb0dbd8ec610f4a90f48aa689.js.map +0 -1
  144. package/dist/npm.consola.713.661cb6ae3806c228029d.js +0 -2
  145. package/dist/npm.consola.96aceeeb14c801e429604b872dd754d7.js.map +0 -1
  146. package/dist/npm.dialog-polyfill.47.34b0c0d52e6712cf91bb.js +0 -2
  147. package/dist/npm.dialog-polyfill.9d605973cbc29184d8b9b4736433dddc.js.map +0 -1
  148. package/dist/npm.finos.690.d012d887fab1a50fd3fd.js +0 -2
  149. package/dist/npm.finos.bb7f5996c8be19fd2a1c0bb82b2512ef.js.map +0 -1
  150. package/dist/npm.fortawesome.104.f45009da0a55a389999c.js +0 -2
  151. package/dist/npm.fortawesome.e10775e8f8583851351996b12aec3dfb.js.map +0 -1
  152. package/dist/npm.microsoft.127.7781d48b93413319f199.js +0 -6406
  153. package/dist/npm.microsoft.127.7781d48b93413319f199.js.LICENSE.txt +0 -14
  154. package/dist/npm.microsoft.b0947aa2f980f173ee68c35127bf2481.js.map +0 -1
  155. package/dist/npm.popperjs.47700ec72e909558c6ebe29941887dcf.js.map +0 -1
  156. package/dist/npm.popperjs.591.6ab52bc8e177edef695a.js +0 -2
  157. package/dist/npm.rxjs.271.210fdd198235c86ce4cd.js +0 -2
  158. package/dist/npm.rxjs.36e7291df63583daef7bbafd0a3ab9dc.js.map +0 -1
  159. package/dist/remoteEntry.js +0 -2
  160. package/dist/serve.json +0 -3
  161. package/dist/tsdoc-metadata.json +0 -11
  162. package/docs/.gitattributes +0 -2
  163. package/docs/api/foundation-login.configure.md +0 -62
  164. package/docs/api/foundation-login.defaultapihost.md +0 -12
  165. package/docs/api/foundation-login.defaultloginconfig.md +0 -13
  166. package/docs/api/foundation-login.defaultorganisation.md +0 -12
  167. package/docs/api/foundation-login.defaultpassword.md +0 -12
  168. package/docs/api/foundation-login.defaultsocketext.md +0 -12
  169. package/docs/api/foundation-login.defaulttemplateoptions.md +0 -16
  170. package/docs/api/foundation-login.defaultuser.md +0 -12
  171. package/docs/api/foundation-login.define.md +0 -38
  172. package/docs/api/foundation-login.definition.md +0 -19
  173. package/docs/api/foundation-login.fieldconfig.md +0 -16
  174. package/docs/api/foundation-login.fieldconfigmap.md +0 -19
  175. package/docs/api/foundation-login.hostenv.md +0 -12
  176. package/docs/api/foundation-login.hosturl.md +0 -12
  177. package/docs/api/foundation-login.idp.id.md +0 -11
  178. package/docs/api/foundation-login.idp.md +0 -20
  179. package/docs/api/foundation-login.idp.type.md +0 -11
  180. package/docs/api/foundation-login.idpresponse.id.md +0 -11
  181. package/docs/api/foundation-login.idpresponse.md +0 -20
  182. package/docs/api/foundation-login.idpresponse.type.md +0 -11
  183. package/docs/api/foundation-login.ismfroute.md +0 -24
  184. package/docs/api/foundation-login.login.md +0 -108
  185. package/docs/api/foundation-login.loginconfig.autoauth.md +0 -18
  186. package/docs/api/foundation-login.loginconfig.autoconnect.md +0 -13
  187. package/docs/api/foundation-login.loginconfig.background.md +0 -30
  188. package/docs/api/foundation-login.loginconfig.defaultredirecturl.md +0 -18
  189. package/docs/api/foundation-login.loginconfig.fields.md +0 -18
  190. package/docs/api/foundation-login.loginconfig.logo.md +0 -28
  191. package/docs/api/foundation-login.loginconfig.md +0 -30
  192. package/docs/api/foundation-login.loginconfig.omitredirecturls.md +0 -21
  193. package/docs/api/foundation-login.loginconfig.omitroutes.md +0 -25
  194. package/docs/api/foundation-login.loginconfig.showconnectionindicator.md +0 -13
  195. package/docs/api/foundation-login.loginconfig.sso.md +0 -18
  196. package/docs/api/foundation-login.loginconfig.versioninformation.md +0 -25
  197. package/docs/api/foundation-login.loginhosted.md +0 -23
  198. package/docs/api/foundation-login.loginhosted.registercommoncomponents.md +0 -18
  199. package/docs/api/foundation-login.md +0 -59
  200. package/docs/api/foundation-login.routes.md +0 -20
  201. package/docs/api/foundation-login.settings.md +0 -20
  202. package/docs/api/foundation-login.ssoconfig.md +0 -15
  203. package/docs/api/foundation-login.styles.md +0 -12
  204. package/docs/api/foundation-login.template.md +0 -12
  205. package/docs/api/foundation-login.templatecomponents.md +0 -25
  206. package/docs/api/foundation-login.templateoptions.md +0 -19
  207. package/docs/api/index.md +0 -12
  208. package/docs/api-report.md +0 -380
  209. package/docs/img/foundation-login_change-password.png +0 -0
  210. package/docs/img/foundation-login_forgotten-password.png +0 -0
  211. package/docs/img/foundation-login_login-sso.png +0 -0
  212. package/docs/img/foundation-login_login-standard.png +0 -0
  213. package/docs/img/foundation-login_request-account.png +0 -0
package/README.md CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  This micro front-end includes a set of identity management functions: authentication (including via SSO) and password reset, for example. Many of the features can be turned on and off as desired, and parts of the login screen (such as the logo) can be customised.
8
8
 
9
+ Login uses the [Credential Management API](https://developer.mozilla.org/en-US/docs/Web/API/Credential_Management_API), falling back to cookies when unavailable.
10
+
9
11
  An example of the main login screen: <br/>
10
12
  ![Main login screen example](./docs/img/foundation-login_login-standard.png)
11
13
 
@@ -29,7 +31,7 @@ If you build a project upon one of the Genesis seed apps, then the `Login` micro
29
31
 
30
32
  To enable this micro front-end in your application, follow the steps below.
31
33
 
32
- - Add `@genesislcap/foundation-login` as a dependency in your **package.json** file. Whenever you change the dependencies of your project, always you run the `$ npm run bootstrap` command again. You can see more information on the [package.json basics](https://docs.genesis.global/secure/web/micro-front-ends/foundation-login/) page.
34
+ - Add `@genesislcap/foundation-login` as a dependency in your **package.json** file. Whenever you change the dependencies of your project, always you run the `$ npm run bootstrap` or `$ npm run bootstrap:ignore-scripts` command again. You can see more information on the [package.json basics](https://learn.genesis.global/secure/web/micro-front-ends/foundation-login/) page.
33
35
 
34
36
  ```javascript
35
37
  {
@@ -45,70 +47,42 @@ To enable this micro front-end in your application, follow the steps below.
45
47
  This page assumes you're using the Routing systems that are part of `foundation-ui`, and will cover set-up as part of that routing system.
46
48
  :::
47
49
 
48
- - In the router configuration for your application, import the `Login` class and the `Settings` type. As shown in this example, you might want to import `Settings` with an alias to avoid name clashes.
50
+ Once installed, you can either use `Login` as is or re-configure it. As with all our micro-frontends, you also have the option of lazy loading it.
49
51
 
50
- ```javascript
51
- import { Login, Settings as LoginSettings } from '@genesislcap/foundation-login';
52
- ```
52
+ ### Basic usage
53
53
 
54
- - Next you'll want to ensure that your router config uses your `LoginSettings` as its generic type so you can configure the login route.
55
- ```javascript
56
- export class MainRouterConfig extends RouterConfiguration<LoginSettings> {
57
- ...
58
- }
59
- ```
54
+ [Basic usage example](./docs/api/foundation-login.login.md#example)
60
55
 
61
- - Then add the required config to the router config that you use. For example, you'll want to set up the `Login` class to be used on the `/login` route, and pass in its required settings. See [customising login](#customising-login).
62
- ```javascript
63
- { path: '', redirect: 'login' },
64
- {
65
- path: 'login',
66
- element: Login,
67
- title: 'Login',
68
- name: 'login',
69
- layout: loginLayout,
70
- // Login settings that are defined in the LoginSettings type
71
- settings: {
72
- defaultRedirectUrl: 'protected',
73
- public: true,
74
- resetPassword: true,
75
- ssoToggle: true,
76
- ssoEnable: false,
77
- },
78
- childRouters: true,
79
- },
80
- ```
56
+ ### Advanced usage
81
57
 
82
- - You'll also want to set up things like the `NavigationContributor` in this class.
58
+ [Advanced usage example](./docs/api/foundation-login.configure.md#example)
83
59
 
84
- :::noteExample
85
- An example of this and other required settings for the router configuration with regard to the login system can be found in the [example in the API reference](./docs/api/foundation-login.login/#example).
86
- :::
60
+ ## Public and Private Routes
87
61
 
88
- - The functionality of the Login class is configured via the settings block on its route, but the other routes will also have customisation on them too. The main options to set here are:
62
+ You may need to set up a `NavigationContributor` in your app's router config class to handle `public` and `autoAuth` route settings.
89
63
 
90
- - `allowAutoAuth` which will log the user back in onto the page when they navigate away if they already have an authenticated session
91
64
  - `public` which will indicate that a route doesn't require the user to be authenticated to view
65
+ - `autoAuth` which will log the user back in onto the page when they navigate away if they already have an authenticated session
92
66
 
93
- ```javascript
67
+ ```ts
94
68
  {
95
- path: 'admin',
96
- element: Admin,
97
- title: 'Admin',
98
- name: 'admin',
99
- settings: { allowAutoAuth: true },
69
+ path: 'info',
70
+ element: Info,
71
+ title: 'Info',
72
+ name: 'info',
73
+ settings: { public: true },
100
74
  },
101
75
  {
102
- path: 'info',
103
- element: Info,
104
- title: 'Info',
105
- name: 'info',
106
- settings: { public: true },
107
- },
76
+ path: 'admin',
77
+ element: Admin,
78
+ title: 'Admin',
79
+ name: 'admin',
80
+ settings: { autoAuth: true },
81
+ }
108
82
  ```
109
83
 
110
84
  :::warningWarning
111
- By default, a route that isn't marked public is not. However, a non-public route isn't going to block non-authenticated users automatically from viewing them. This must be impelmented in the `NavigationContributor`, as shown in the [previously mentioned example](./docs/api/foundation-login.login/#example).
85
+ By default, a route that isn't marked public is not. However, a non-public route isn't going to block non-authenticated users automatically from viewing them. This must be implemented in a `NavigationContributor`, see [example](./docs/api/foundation-login.login.md#example).
112
86
  :::
113
87
 
114
88
  ## Authentication
@@ -120,14 +94,14 @@ For authentication, most configuration is set in the back end. You should famili
120
94
  The standard authentication method is the user supplying their username and password. Even when SSO is enabled as an authentication method, the user will still have the option to sign in with their normal credentials.
121
95
 
122
96
  :::noteTip
123
- Setting the `DEFAULT_USER` and `DEFAULT_PASSWORD` environment variables will automatically populate the credentials in the login form, which can be useful during development so developers don't need to write out their credentials continuously.
97
+ Setting the `DEFAULT_USER` and `DEFAULT_PASSWORD` environment variables will automatically populate the credentials in the login form, which can be useful during development so developers don't need to write out their credentials continuously. However, the browser may also offer auto-filling if you have previously chosen to save your credentials, which can make setting these unnecessary.
124
98
  :::
125
99
 
126
100
  ### SSO
127
101
 
128
102
  SSO functionality allows the `Login` micro front-end to work with your company's existing authentication system, enabling them to have a single set of credentials - incluidng those built on the Genesis low-code platform. Genesis supports SSO with both JWT and SAML.
129
103
 
130
- Setting up SSO is primarily [a back-end task](docs/03_server/05_access-control/04_sso_authentication.md); however, there is a small amount of configuration covered in [the customisation part of this documentation](#enable-sso).
104
+ Setting up SSO is primarily [a back-end task](docs/03_server/05_access-control/04_sso_authentication.md); however, there is a small amount of front-end [sso configuration](docs/api/foundation-login.loginconfig.sso.md) required.
131
105
 
132
106
  :::noteInfo
133
107
  The standard process of SSO is that the SSO authentication provider flow is opened via a redirect in the current page. However, many authentication providers block their system when running in an iframe to prevent [clickjacking attacks](https://owasp.org/www-community/attacks/Clickjacking). Because of this, if the `Login` micro front-end detects that it is running in an iframe, it opens up the authentication provider in a popup instead.
@@ -135,26 +109,8 @@ The standard process of SSO is that the SSO authentication provider flow is open
135
109
 
136
110
  ## Customising login
137
111
 
138
- The `Login` micro front-end uses a parameterless constructor. Therefore, the configuration needs to be set via the settings javascript object in the router, as shown in the [set-up step](#login-set-up). See the full [settings API here](./docs/api/foundation-login.settings/#remarks).
139
-
140
- ### Enabled functionality
141
-
142
- In the [introduction section](#introduction), the reset password functionality is shown. However, this flow must be enabled with the `resetPassword` option.
143
-
144
- ### Logo
145
-
146
- You will probably want to use your company's logo instead of the Genesis logo. A custom logo can be configured with the `logoSrc`, `logoWidth`, `logoHeight` settings. If you don't want to use a logo, you can instead hide the logo with `hideLogo`.
147
-
148
- ### Enable SSO
149
-
150
- As mentioned in the [authentication](#sso) section, SSO must be configured on the server, but some front-end configuration is required too.
151
-
152
- - Setting `ssoToggle` is required to enable the SSO authentication as an option for the user; the user can then enable that flow with a checkbox that controls `ssoEnable`.
153
- - Enabling `ssoEnable` at the route-level sets the SSO flow to be the default.
154
-
155
- - Finally, set `defaultRedirectUrl`, which controls where the `Login` micro front-end will take the user back to once they complete the SSO journey. For example, setting option to `/home` will take the user to the `/home` path if they successfully login via SSO.
156
-
112
+ The `Login` micro front-end can be customised using an exported `configure` function. See [configure](docs/api/foundation-login.configure.md) in the API docs for more information.
157
113
 
158
114
  ## License
159
115
 
160
- Note: this project provides front end dependencies and uses licensed components listed in the next section, thus licenses for those components are required during development. Contact [Genesis Global](https://genesis.global/contact-us/) for more details.
116
+ Note: this project provides front end dependencies and uses licensed components listed in the next section, thus licenses for those components are required during development. Contact [Genesis Global](https://genesis.global/contact-us/) for more details.
@@ -65,6 +65,11 @@ export type FieldConfig = {
65
65
  * Added for now to apply defaults, but I'm not convinced we should do this. Could be made reactive after upgrade.
66
66
  */
67
67
  value?: any;
68
+ /**
69
+ * @privateRemarks
70
+ * Expect fields to be required by default, but can override in config if they want to make it optional
71
+ */
72
+ required?: boolean;
68
73
  };
69
74
  /**
70
75
  * @public
@@ -165,6 +170,13 @@ export interface LoginConfig {
165
170
  * Show or hide the connection status indicator.
166
171
  */
167
172
  showConnectionIndicator: boolean;
173
+ /**
174
+ * The `path` of the micro frontend as defined in the parent / host route.
175
+ *
176
+ * @remarks
177
+ * Used to help resolve internal route links. Defaults to an empty string.
178
+ */
179
+ hostPath: string;
168
180
  /**
169
181
  * The default URL to route the user to after a successful login.
170
182
  *
@@ -239,6 +251,7 @@ export declare const LoginConfig: import("@microsoft/fast-foundation").Interface
239
251
  * label: 'CompID',
240
252
  * },
241
253
  * },
254
+ * hostPath: 'login',
242
255
  * defaultRedirectUrl: 'dashboard',
243
256
  * logo: loginLogo,
244
257
  * background: loginBG,
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/main/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAoB,MAAM,4BAA4B,CAAC;AASzE;;GAEG;AACH,eAAO,MAAM,mBAAmB,QAAuB,CAAC;AAIxD;;GAEG;AACH,eAAO,MAAM,WAAW,QAAe,CAAC;AAIxC;;GAEG;AACH,eAAO,MAAM,eAAe,QAAmB,CAAC;AAIhD;;GAEG;AACH,eAAO,MAAM,cAAc,QAAW,CAAC;AAIvC;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAa,CAAC;AAE3C;;GA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SAAS,GAAG,IAAI,CAAC;IACtB;;;;;;;;;;OAUG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,WAiChC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,mEAAoC,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,SAAS,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,QAO3E"}
@@ -30,7 +30,7 @@ export type TemplateOptions = TemplateComponents & {
30
30
  * Hosts should be able to figure out everything they will need to do to fully customise a MF. Currently, they
31
31
  * import these `defaultTemplateOptions` and the host dev overrides. Each TemplateComponents key must be a mandatory
32
32
  * override, given in hosted mode the MFs won't be registering fallbacks as this would be wasteful, bloat etc.
33
- * I've added the components list to the package.json > config block for now, but I'm not using it here.
33
+ * I've added the components list to the package.json \> config block for now, but I'm not using it here.
34
34
  */
35
35
  export declare const defaultTemplateOptions: TemplateOptions;
36
36
  /**
@@ -2,12 +2,15 @@ import type { TemplateOptions } from './main.definition';
2
2
  /**
3
3
  * @public
4
4
  * @privateRemarks
5
- * Options cam be used to target unknown component tags in the css, such as:
5
+ * Options can be used to target unknown component tags in the css, such as:
6
+ * @example unknown target
7
+ * ```
6
8
  * const buttonTag = tagFor(options.button);
7
9
  * ...
8
10
  * ${buttonTag} {
9
11
  * width: 200px;
10
12
  * }
13
+ * ```
11
14
  */
12
15
  export declare const styles: (options: TemplateOptions) => import("@microsoft/fast-element").ElementStyles;
13
16
  //# sourceMappingURL=main.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.styles.d.ts","sourceRoot":"","sources":["../../../src/main/main.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGzD;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM,YAAa,eAAe,oDAwB9C,CAAC"}
1
+ {"version":3,"file":"main.styles.d.ts","sourceRoot":"","sources":["../../../src/main/main.styles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,YAAa,eAAe,oDAwB9C,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { TemplateOptions } from './main.definition';
2
1
  import type { Login } from './main';
2
+ import type { TemplateOptions } from './main.definition';
3
3
  /**
4
4
  * @public
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,QAAQ,YAAa,eAAe,+DAQhD,CAAC"}
1
+ {"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,QAAQ,YAAa,eAAe,+DAQhD,CAAC"}
@@ -15,8 +15,8 @@ export type ConfigHost = {
15
15
  /**
16
16
  * @internal
17
17
  * @privateRemarks
18
- * For services / constructor injection, using @optional(LoginConfig) config = defaultLoginConfig; works as expected.
19
- * However, for elements, the @optional decorator isn't viable. This base element provides an alternative approach.
18
+ * For services / constructor injection, using `@optional(LoginConfig) config = defaultLoginConfig;` works as expected.
19
+ * However, for elements, the `@optional` decorator isn't viable. This base element provides an alternative approach.
20
20
  */
21
21
  export declare class ConfigHostElement extends FASTElement implements ConfigHost {
22
22
  container: Container;
@@ -48,8 +48,9 @@ export declare class BaseRoute extends ConfigHostElement {
48
48
  setError(message: string): void;
49
49
  clearError(): void;
50
50
  get orgUsername(): string;
51
- onBack: () => Promise<void>;
52
- onNavigate: (routeName: Routes, params?: {}) => Promise<void>;
51
+ getSubRoutePath(routeName: Routes | string): string;
52
+ onBack: () => void;
53
+ onNavigate: (path: string) => void;
53
54
  queueOnBack(delay?: number): void;
54
55
  autofill(): Promise<boolean>;
55
56
  storeCredentials(password?: string): void;
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/routes/base.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,OAAO,EAEP,iBAAiB,EACjB,OAAO,EACP,cAAc,EACd,OAAO,EACR,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAEL,OAAO,EAGP,WAAW,EAIZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAGvD,OAAO,EAAsB,cAAc,EAAW,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGlG;;GAEG;AACH,eAAO,MAAM,eAAe,OAAQ,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF;;;;;GAKG;AACH,qBAAa,iBAAkB,SAAQ,WAAY,YAAW,UAAU;IAC3D,SAAS,EAAG,SAAS,CAAC;IACrB,MAAM,EAAE,WAAW,CAAC;IAEhC,iBAAiB;CAMlB;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,iBAAiB;IACxC,IAAI,EAAG,IAAI,CAAC;IACT,OAAO,EAAG,OAAO,CAAC;IAClB,OAAO,EAAG,OAAO,CAAC;IACX,cAAc,EAAG,cAAc,CAAC;IAC7B,iBAAiB,EAAG,iBAAiB,CAAC;IAE7C,IAAI,EAAE,MAAM,CAAM;IAClB,YAAY,EAAE,MAAM,CAAM;IAC1B,Q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EG;AACH,eAAO,MAAM,UAAU,mFAiBtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,gCAAiC,MAAM,2DAYhE,CAAC;AAOF;;GAEG;AACH,eAAO,MAAM,cAAc,8BAA+B,KAAK,GAAG,cAAc,2DAe/E,CAAC;AAEF;;;;GAIG;AACH,qBA2Ba,iBAAkB,SAAQ,iBAAiB;IACtD,iBAAiB;CAIlB;AAED;;GAEG;AACH,qBAoBa,WAAY,SAAQ,iBAAiB;CAAG;AAErD;;GAEG;AACH,eAAO,MAAM,UAAU,kCAAmC,OAAO,2DAUhE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,gCAChB,MAAM,eACD,MAAM,aACR,OAAO,2DAWlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,mFAQjC,CAAC;AAEF;;;;GAIG;AACH,qBA0Ba,cAAe,SAAQ,WAAW;IACjC,UAAU,EAAE,MAAM,CAAM;IAC9B,OAAO,EAAE,MAAM,CAAM;IACwB,QAAQ,EAAE,OAAO,CAAS;IAC7E,eAAe;CAGhB;AAED;;GAEG;AACH,qBAuBa,mBAAoB,SAAQ,WAAW;IACK,YAAY,EAAE,OAAO,CAAS;CACtF"}
@@ -1,7 +1,7 @@
1
+ import { Auth, Session, FoundationAnalytics } from '@genesislcap/foundation-comms';
1
2
  import { Constructable } from '@microsoft/fast-element';
2
3
  import { Container } from '@microsoft/fast-foundation';
3
4
  import { RouterConfiguration } from '@microsoft/fast-router';
4
- import { Auth, Session, FoundationAnalytics } from '@genesislcap/foundation-comms';
5
5
  import { LoginConfig } from '../main';
6
6
  import type { Settings } from './types';
7
7
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/routes/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAY,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAA2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AC,WAAW;gBAJ5B,IAAI,EAAE,IAAI,EACL,SAAS,EAAE,SAAS,EACV,SAAS,EAAE,mBAAmB,EAC1C,OAAO,EAAE,OAAO,EACF,WAAW,cAAqB;IAK1D,SAAS;IA8IT,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC;CAG/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"forgot-password.d.ts","sourceRoot":"","sources":["../../../../src/routes/forgot-password/forgot-password.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAMpC,qBAKa,cAAe,SAAQ,SAAS;IACrC,iBAAiB;IAKjB,QAAQ;CAUf"}
1
+ {"version":3,"file":"forgot-password.d.ts","sourceRoot":"","sources":["../../../../src/routes/forgot-password/forgot-password.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,qBAKa,cAAe,SAAQ,SAAS;IACrC,iBAAiB;IAKjB,QAAQ;CAUf"}
@@ -1,11 +1,17 @@
1
- import { AuthInfo } from '@genesislcap/foundation-comms';
1
+ import { AuthInfo, ConnectionStatus } from '@genesislcap/foundation-comms';
2
2
  import { BaseRoute } from '../base';
3
3
  import { IDP } from '../types';
4
4
  export declare class LoginForm extends BaseRoute {
5
5
  idps: IDP[];
6
6
  selectedIDP: string;
7
7
  ssoToggled: boolean;
8
+ showConnectionIndicator: boolean;
9
+ connectActionText: string;
10
+ status: ConnectionStatus;
11
+ submitDisabled: boolean;
12
+ private sub;
8
13
  connectedCallback(): Promise<void>;
14
+ disconnectedCallback(): Promise<void>;
9
15
  enter(): Promise<void>;
10
16
  toggleConnection(): Promise<boolean | undefined>;
11
17
  private attemptLoginWhenConnected;
@@ -20,8 +26,6 @@ export declare class LoginForm extends BaseRoute {
20
26
  onHostSubmit(): Promise<void>;
21
27
  onLoginSubmit(): Promise<void>;
22
28
  login(credentials: AuthInfo): Promise<void>;
23
- get connectActionText(): "Disconnect" | "Connect";
24
29
  get submitConnectDisabled(): boolean;
25
- get submitDisabled(): boolean;
26
30
  }
27
31
  //# sourceMappingURL=login-form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"login-form.d.ts","sourceRoot":"","sources":["../../../../src/routes/login-form/login-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAW,MAAM,+BAA+B,CAAC;AAO7E,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,GAAG,EAAe,MAAM,UAAU,CAAC;AAE5C,qBAKa,SAAU,SAAQ,SAAS;IAC1B,IAAI,EAAE,GAAG,EAAE,CAAM;IACjB,WAAW,EAAE,MAAM,CAAM;IACzB,UAAU,EAAE,OAAO,CAAS;IAElC,iBAAiB;IAajB,KAAK;IAeL,gBAAgB,IAAI,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;IAStD,OAAO,CAAC,yBAAyB;IA8BjC,OAAO,CAAC,iBAAiB;IAczB,iBAAiB;IAgBjB,IACI,eAAe,WAElB;IAED,OAAO,CAAC,SAAS,CAiBf;IAEF,cAAc,MAAO,WAAW,KAAG,IAAI,CAIrC;IAEF,UAAU;IAgBV,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,cAAc;IAQhB,YAAY;IAKZ,aAAa;IAQb,KAAK,CAAC,WAAW,EAAE,QAAQ;IAiCjC,IACI,iBAAiB,6BAEpB;IAED,IAAI,qBAAqB,YAExB;IAED,IAAI,cAAc,YAEjB;CACF"}
1
+ {"version":3,"file":"login-form.d.ts","sourceRoot":"","sources":["../../../../src/routes/login-form/login-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAMtF,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,GAAG,EAAe,MAAM,UAAU,CAAC;AAI5C,qBAKa,SAAU,SAAQ,SAAS;IAC1B,IAAI,EAAE,GAAG,EAAE,CAAM;IACjB,WAAW,EAAE,MAAM,CAAM;IACzB,UAAU,EAAE,OAAO,CAAS;IAE5B,uBAAuB,EAAE,OAAO,CAAS;IACzC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,gBAAgB,CAAC;IACzB,cAAc,EAAE,OAAO,CAAQ;IAE3C,OAAO,CAAC,GAAG,CAAe;IAEpB,iBAAiB;IAmBjB,oBAAoB;IAKpB,KAAK;IAeL,gBAAgB,IAAI,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;IAStD,OAAO,CAAC,yBAAyB;IA8BjC,OAAO,CAAC,iBAAiB;IAczB,iBAAiB;IAgBjB,IACI,eAAe,WAElB;IAED,OAAO,CAAC,SAAS,CASf;IAEF,cAAc,MAAO,WAAW,KAAG,IAAI,CAIrC;IAEF,UAAU;IAgBV,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,cAAc;IAQhB,YAAY;IAKZ,aAAa;IAQb,KAAK,CAAC,WAAW,EAAE,QAAQ;IAqCjC,IAAI,qBAAqB,YAExB;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"login-form.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/login-form/login-form.template.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAuH9C,eAAO,MAAM,iBAAiB,gEA8E7B,CAAC"}
1
+ {"version":3,"file":"login-form.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/login-form/login-form.template.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAsH9C,eAAO,MAAM,iBAAiB,gEA8E7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"not-found.d.ts","sourceRoot":"","sources":["../../../../src/routes/not-found/not-found.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,qBAOa,QAAS,SAAQ,SAAS;CAAG"}
1
+ {"version":3,"file":"not-found.d.ts","sourceRoot":"","sources":["../../../../src/routes/not-found/not-found.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,qBAOa,QAAS,SAAQ,SAAS;CAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"protected.d.ts","sourceRoot":"","sources":["../../../../src/routes/protected/protected.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIpC,qBAKa,SAAU,SAAQ,SAAS;IAChC,QAAQ;CAQf"}
1
+ {"version":3,"file":"protected.d.ts","sourceRoot":"","sources":["../../../../src/routes/protected/protected.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,qBAKa,SAAU,SAAQ,SAAS;IAChC,QAAQ;CAQf"}
@@ -1 +1 @@
1
- {"version":3,"file":"request-account.d.ts","sourceRoot":"","sources":["../../../../src/routes/request-account/request-account.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAKpC,qBAKa,cAAe,SAAQ,SAAS;IAC/B,WAAW,UAAS;IAE1B,QAAQ;CAIf"}
1
+ {"version":3,"file":"request-account.d.ts","sourceRoot":"","sources":["../../../../src/routes/request-account/request-account.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,qBAKa,cAAe,SAAQ,SAAS;IAC/B,WAAW,UAAS;IAE1B,QAAQ;CAIf"}
@@ -1 +1 @@
1
- {"version":3,"file":"reset-password.d.ts","sourceRoot":"","sources":["../../../../src/routes/reset-password/reset-password.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGzC,qBAKa,aAAc,SAAQ,SAAS;IAC9B,kBAAkB,EAAE,OAAO,CAAS;IACpC,kBAAkB,EAAE,MAAM,CAAM;IAEtC,iBAAiB;IAKjB,KAAK,CAAC,KAAK,EAAE,eAAe,CAAC,QAAQ,CAAC;IAKtC,QAAQ;IAQR,wBAAwB;IAYxB,wBAAwB;IAY9B,IACI,WAAW,mEAEd;CACF"}
1
+ {"version":3,"file":"reset-password.d.ts","sourceRoot":"","sources":["../../../../src/routes/reset-password/reset-password.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAG9D,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGzC,qBAKa,aAAc,SAAQ,SAAS;IAC9B,kBAAkB,EAAE,OAAO,CAAS;IACpC,kBAAkB,EAAE,MAAM,CAAM;IAEtC,iBAAiB;IAKjB,KAAK,CAAC,KAAK,EAAE,eAAe,CAAC,QAAQ,CAAC;IAKtC,QAAQ;IAQR,wBAAwB;IAYxB,wBAAwB;IAY9B,IACI,WAAW,mEAEd;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../../../../src/routes/verify/verify.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAKpC,qBAKa,MAAO,SAAQ,SAAS;IACvB,IAAI,EAAE,MAAM,CAAM;IAExB,QAAQ;CAIf"}
1
+ {"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../../../../src/routes/verify/verify.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,qBAKa,MAAO,SAAQ,SAAS;IACvB,IAAI,EAAE,MAAM,CAAM;IAExB,QAAQ;CAIf"}
@@ -1,3 +1,2 @@
1
1
  export * from './styles';
2
- export * from './typography';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/styles/styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,aAAa,MAAM,WAM1C,CAAC;AAEF,eAAO,MAAM,gBAAgB,iDAY5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,iDAoH7B,CAAC;AAEF,eAAO,MAAM,sBAAsB,iDAGlC,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/styles/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,aAAa,MAAM,WAM1C,CAAC;AAEF,eAAO,MAAM,gBAAgB,iDAY5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,iDA6G7B,CAAC;AAEF,eAAO,MAAM,sBAAsB,iDAGlC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,MAAM,gDAAmC,CAAC"}
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,gDAAmC,CAAC"}
@@ -46,4 +46,3 @@ export function loadRemotes(options) {
46
46
  * Perhaps we keep these MFs style free, ie. they need to get wrapped to have style applied. Keeping it simple for now.
47
47
  */
48
48
  FoundationRouter;
49
- //# sourceMappingURL=components.js.map
@@ -1,2 +1 @@
1
1
  export * from './components';
2
- //# sourceMappingURL=index.js.map
package/dist/esm/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from './main';
2
2
  export * from './routes';
3
- //# sourceMappingURL=index.js.map
@@ -25,4 +25,3 @@ export const defaultLayout = new FASTElementLayout(html `
25
25
  right: 0;
26
26
  }
27
27
  `);
28
- //# sourceMappingURL=default.js.map
@@ -1,2 +1 @@
1
1
  export * from './default';
2
- //# sourceMappingURL=index.js.map
@@ -1,7 +1,8 @@
1
+ import { API_HOST, DEFAULT_ORGANISATION, DEFAULT_PASSWORD, DEFAULT_USER, SOCKET_EXT, } from '@genesislcap/foundation-utils';
1
2
  import { css } from '@microsoft/fast-element';
2
3
  import { DI, Registration } from '@microsoft/fast-foundation';
3
- import defaultLogoSrc from '../assets/genesis-logo-light.svg';
4
4
  import defaultBackgroundSrc from '../assets/bg.jpg';
5
+ import defaultLogoSrc from '../assets/genesis-logo-light.svg';
5
6
  /**
6
7
  * @public
7
8
  */
@@ -90,6 +91,7 @@ export const defaultLoginConfig = {
90
91
  },
91
92
  },
92
93
  showConnectionIndicator: false,
94
+ hostPath: '',
93
95
  defaultRedirectUrl: '/protected',
94
96
  omitRedirectUrls: ['/not-found', '/not-permitted'],
95
97
  sso: {
@@ -129,6 +131,7 @@ export const LoginConfig = DI.createInterface();
129
131
  * label: 'CompID',
130
132
  * },
131
133
  * },
134
+ * hostPath: 'login',
132
135
  * defaultRedirectUrl: 'dashboard',
133
136
  * logo: loginLogo,
134
137
  * background: loginBG,
@@ -150,4 +153,3 @@ export const LoginConfig = DI.createInterface();
150
153
  export function configure(container, config) {
151
154
  container.register(Registration.instance(LoginConfig, Object.assign(Object.assign({}, defaultLoginConfig), config)));
152
155
  }
153
- //# sourceMappingURL=config.js.map
@@ -28,4 +28,3 @@ import { definition } from './main.definition';
28
28
  * TODO: Use LoginHosted instead of Login when elements manifest stuff lands, which will drive tagFor etc.
29
29
  */
30
30
  export const define = defineFactory(Login, definition);
31
- //# sourceMappingURL=define.js.map
@@ -4,4 +4,3 @@ export * from './main.definition';
4
4
  export * from './main.template';
5
5
  export * from './main.styles';
6
6
  export * from './main';
7
- //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import { template } from './main.template';
2
1
  import { styles } from './main.styles';
2
+ import { template } from './main.template';
3
3
  /**
4
4
  * The default template options this MF has been created with.
5
5
  * @beta
@@ -8,7 +8,7 @@ import { styles } from './main.styles';
8
8
  * Hosts should be able to figure out everything they will need to do to fully customise a MF. Currently, they
9
9
  * import these `defaultTemplateOptions` and the host dev overrides. Each TemplateComponents key must be a mandatory
10
10
  * override, given in hosted mode the MFs won't be registering fallbacks as this would be wasteful, bloat etc.
11
- * I've added the components list to the package.json > config block for now, but I'm not using it here.
11
+ * I've added the components list to the package.json \> config block for now, but I'm not using it here.
12
12
  */
13
13
  export const defaultTemplateOptions = {
14
14
  anchor: 'zero-anchor',
@@ -41,4 +41,3 @@ export const standaloneDefinition = {
41
41
  template: template(Object.assign(Object.assign({}, defaultTemplateOptions), { provider: 'zero-design-system-provider' })),
42
42
  styles: styles(Object.assign(Object.assign({}, defaultTemplateOptions), { provider: 'zero-design-system-provider' })),
43
43
  };
44
- //# sourceMappingURL=main.definition.js.map
@@ -231,4 +231,3 @@ LoginHosted = __decorate([
231
231
  customElement(Object.assign(Object.assign({}, definition), { name: `${definition.name}-hosted` }))
232
232
  ], LoginHosted);
233
233
  export { LoginHosted };
234
- //# sourceMappingURL=main.js.map
@@ -1,15 +1,18 @@
1
+ import { tagFor } from '@genesislcap/foundation-ui';
1
2
  import { mixinRobotoFont } from '@genesislcap/foundation-zero';
2
3
  import { css } from '@microsoft/fast-element';
3
- import { tagFor } from '@genesislcap/foundation-ui';
4
4
  /**
5
5
  * @public
6
6
  * @privateRemarks
7
- * Options cam be used to target unknown component tags in the css, such as:
7
+ * Options can be used to target unknown component tags in the css, such as:
8
+ * @example unknown target
9
+ * ```
8
10
  * const buttonTag = tagFor(options.button);
9
11
  * ...
10
12
  * ${buttonTag} {
11
13
  * width: 200px;
12
14
  * }
15
+ * ```
13
16
  */
14
17
  export const styles = (options) => {
15
18
  const providerTag = tagFor(options.provider); // < technically if this is `template` we wouldn't need it, as that's covered by :host
@@ -36,4 +39,3 @@ export const styles = (options) => {
36
39
  }
37
40
  `;
38
41
  };
39
- //# sourceMappingURL=main.styles.js.map
@@ -12,4 +12,3 @@ export const template = (options) => {
12
12
  </${providerTag}>
13
13
  `;
14
14
  };
15
- //# sourceMappingURL=main.template.js.map
@@ -4,7 +4,7 @@ import { sync } from '@genesislcap/foundation-utils';
4
4
  import { SecondaryRapidColorHEX } from '@genesislcap/foundation-zero';
5
5
  import { attr, css, customElement, FASTElement, html, observable, when, } from '@microsoft/fast-element';
6
6
  import { Container } from '@microsoft/fast-foundation';
7
- import { Route, Router } from '@microsoft/fast-router';
7
+ import { Route } from '@microsoft/fast-router';
8
8
  import { classNames } from '@microsoft/fast-web-utilities';
9
9
  import { defaultLoginConfig, hostUrl, LoginConfig } from '../main/config';
10
10
  import { logger } from '../utils';
@@ -15,8 +15,8 @@ export const defaultOnBackMS = 3000;
15
15
  /**
16
16
  * @internal
17
17
  * @privateRemarks
18
- * For services / constructor injection, using @optional(LoginConfig) config = defaultLoginConfig; works as expected.
19
- * However, for elements, the @optional decorator isn't viable. This base element provides an alternative approach.
18
+ * For services / constructor injection, using `@optional(LoginConfig) config = defaultLoginConfig;` works as expected.
19
+ * However, for elements, the `@optional` decorator isn't viable. This base element provides an alternative approach.
20
20
  */
21
21
  export class ConfigHostElement extends FASTElement {
22
22
  connectedCallback() {
@@ -48,8 +48,8 @@ export class BaseRoute extends ConfigHostElement {
48
48
  this.message = '';
49
49
  this.hasErrors = false;
50
50
  this.isSubmitting = false;
51
- this.onBack = () => this.onNavigate('login');
52
- this.onNavigate = (routeName, params) => Route.name.push(Router.find(this), routeName, params);
51
+ this.onBack = () => this.onNavigate('/');
52
+ this.onNavigate = (path) => Route.path.push(path);
53
53
  }
54
54
  connectedCallback() {
55
55
  var _a;
@@ -89,10 +89,13 @@ export class BaseRoute extends ConfigHostElement {
89
89
  this.hasErrors = false;
90
90
  }
91
91
  get orgUsername() {
92
- return this.config.fields.organisation
92
+ return this.config.fields.organisation && this.organisation.trim() !== ''
93
93
  ? `${this.username.trim()}:${this.organisation.trim()}`
94
94
  : this.username.trim();
95
95
  }
96
+ getSubRoutePath(routeName) {
97
+ return this.config.hostPath !== '' ? `${this.config.hostPath}/${routeName}` : routeName;
98
+ }
96
99
  queueOnBack(delay = defaultOnBackMS) {
97
100
  setTimeout(() => {
98
101
  this.onBack();
@@ -234,7 +237,7 @@ export const organisationField = () => html `
234
237
  :value="${sync((x) => x.organisation)}"
235
238
  autofocus
236
239
  class="${(x) => (!x.config.logo ? 'no-top-margin' : '')}"
237
- required
240
+ ?required="${(x) => (x.config.fields.organisation.required === false ? false : true)}"
238
241
  >
239
242
  <span class="form-title">
240
243
  ${(x) => { var _a; return (_a = x.config.fields.organisation.label) !== null && _a !== void 0 ? _a : 'Organisation'; }}
@@ -509,4 +512,3 @@ SubmittingIndicator = __decorate([
509
512
  })
510
513
  ], SubmittingIndicator);
511
514
  export { SubmittingIndicator };
512
- //# sourceMappingURL=base.js.map