@genesislcap/foundation-auth 14.227.0 → 14.227.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.
- package/dist/dts/config/config.d.ts.map +1 -1
- package/dist/dts/config/configure.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +4 -56
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.styles.d.ts.map +1 -1
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/dts/routes/base.d.ts +6 -0
- package/dist/dts/routes/base.d.ts.map +1 -1
- package/dist/dts/routes/forgot-password/forgot-password.template.d.ts.map +1 -1
- package/dist/dts/routes/login/login.template.d.ts.map +1 -1
- package/dist/dts/routes/logout/logout.template.d.ts.map +1 -1
- package/dist/dts/routes/protected/protected.template.d.ts.map +1 -1
- package/dist/dts/routes/request-account/request-account.template.d.ts.map +1 -1
- package/dist/dts/routes/reset-password/reset-password.template.d.ts.map +1 -1
- package/dist/dts/routes/verify/verify.template.d.ts.map +1 -1
- package/dist/dts/styles/styles.d.ts.map +1 -1
- package/dist/esm/config/config.js +7 -1
- package/dist/esm/config/configure.js +2 -1
- package/dist/esm/main/main.js +2 -86
- package/dist/esm/main/main.styles.js +3 -3
- package/dist/esm/main/main.template.js +3 -4
- package/dist/esm/routes/base.js +32 -27
- package/dist/esm/routes/forgot-password/forgot-password.template.js +7 -5
- package/dist/esm/routes/login/login.template.js +19 -18
- package/dist/esm/routes/logout/logout.template.js +2 -3
- package/dist/esm/routes/protected/protected.template.js +9 -10
- package/dist/esm/routes/request-account/request-account.template.js +6 -7
- package/dist/esm/routes/reset-password/reset-password.template.js +2 -3
- package/dist/esm/routes/verify/verify.template.js +9 -9
- package/dist/esm/styles/styles.js +9 -10
- package/dist/foundation-auth.api.json +0 -31
- package/dist/foundation-auth.d.ts +4 -57
- package/docs/api/foundation-auth.md +0 -1
- package/docs/api-report.md +0 -12
- package/package.json +19 -19
- package/dist/dts/components/zero-components.d.ts +0 -6
- package/dist/dts/components/zero-components.d.ts.map +0 -1
- package/dist/dts/tags/index.d.ts +0 -2
- package/dist/dts/tags/index.d.ts.map +0 -1
- package/dist/dts/tags/tags.d.ts +0 -52
- package/dist/dts/tags/tags.d.ts.map +0 -1
- package/dist/esm/components/zero-components.js +0 -22
- package/dist/esm/tags/index.js +0 -1
- package/dist/esm/tags/tags.js +0 -55
- package/docs/api/foundation-auth.zeroauth.md +0 -45
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,EAAO,gBAAgB,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAK9F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,OAAO,EAA0B,eAAe,EAAE,MAAM,aAAa,CAAC;AAEtE;;GAEG;AAEH;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,YAAY,EAAE,WAAW,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,WAAW,CAAC;IACtB,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,WAAW,CAAC;CACvB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,UAAW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":"configure.d.ts","sourceRoot":"","sources":["../../../src/config/configure.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAqB,MAAM,UAAU,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,wBAAsB,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,oDAgC1D"}
|
package/dist/dts/main/main.d.ts
CHANGED
|
@@ -18,14 +18,14 @@ declare const FoundationAuth_base: abstract new (...args: any[]) => {
|
|
|
18
18
|
inert: boolean;
|
|
19
19
|
innerText: string;
|
|
20
20
|
lang: string;
|
|
21
|
-
readonly offsetHeight: number;
|
|
22
|
-
* @internal
|
|
23
|
-
*/
|
|
21
|
+
readonly offsetHeight: number;
|
|
24
22
|
readonly offsetLeft: number;
|
|
25
23
|
readonly offsetParent: Element;
|
|
26
24
|
readonly offsetTop: number;
|
|
27
25
|
readonly offsetWidth: number;
|
|
28
|
-
outerText: string;
|
|
26
|
+
outerText: string; /**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
29
|
spellcheck: boolean;
|
|
30
30
|
title: string;
|
|
31
31
|
translate: boolean;
|
|
@@ -407,57 +407,5 @@ export declare class FoundationAuth extends FoundationAuth_base {
|
|
|
407
407
|
*/
|
|
408
408
|
attemptAutofill(): void;
|
|
409
409
|
}
|
|
410
|
-
/**
|
|
411
|
-
* ZeroAuth.
|
|
412
|
-
*
|
|
413
|
-
* @remarks
|
|
414
|
-
* A zero version that pre-registers zero components and uses the zero design system so that it can run standalone.
|
|
415
|
-
* Generally this is used for development purposes, but can be deployed as a standalone application if required or be
|
|
416
|
-
* used by a host application that is already using zero. ZeroAuth and its components won't bloat the core bundle as
|
|
417
|
-
* these are only loaded on-demand when in use.
|
|
418
|
-
*
|
|
419
|
-
* @example
|
|
420
|
-
* ```ts
|
|
421
|
-
* import { ZeroAuth } from '@genesislcap/foundation-auth';
|
|
422
|
-
* ...
|
|
423
|
-
* title: 'Authenticate',
|
|
424
|
-
* name: 'auth',
|
|
425
|
-
* path: '',
|
|
426
|
-
* element: ZeroAuth,
|
|
427
|
-
* ```
|
|
428
|
-
*
|
|
429
|
-
* @example Load the micro frontend on-demand
|
|
430
|
-
* ```ts
|
|
431
|
-
* title: 'Authenticate',
|
|
432
|
-
* name: 'auth',
|
|
433
|
-
* path: '',
|
|
434
|
-
* element: async () => {
|
|
435
|
-
* const { ZeroAuth } = await import('@genesislcap/foundation-auth');
|
|
436
|
-
* return ZeroAuth;
|
|
437
|
-
* },
|
|
438
|
-
* ```
|
|
439
|
-
*
|
|
440
|
-
* @public
|
|
441
|
-
*/
|
|
442
|
-
export declare class ZeroAuth extends FoundationAuth {
|
|
443
|
-
/**
|
|
444
|
-
* @internal
|
|
445
|
-
*/
|
|
446
|
-
zeroReady: boolean;
|
|
447
|
-
/**
|
|
448
|
-
* @internal
|
|
449
|
-
*/
|
|
450
|
-
connectedCallback(): Promise<void>;
|
|
451
|
-
/**
|
|
452
|
-
* @internal
|
|
453
|
-
*/
|
|
454
|
-
protected loadRemotes(): Promise<void>;
|
|
455
|
-
/**
|
|
456
|
-
* @internal
|
|
457
|
-
* @privateRemarks
|
|
458
|
-
* The order of the check is important here, check super first.
|
|
459
|
-
*/
|
|
460
|
-
get isReady(): boolean;
|
|
461
|
-
}
|
|
462
410
|
export {};
|
|
463
411
|
//# sourceMappingURL=main.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAyB,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,SAAS,EAAwB,MAAM,4BAA4B,CAAC;AAG7E,OAAO,+BAA+B,CAAC;AACvC,OAAO,EAAE,gBAAgB,EA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ACH,IACI,UAAU,WAEb;IAED;;OAEG;IACH,eAAe,IAAI,IAAI;CAMxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.styles.d.ts","sourceRoot":"","sources":["../../../src/main/main.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.styles.d.ts","sourceRoot":"","sources":["../../../src/main/main.styles.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,MAAM,iDAwBlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,QAAQ,qEAKpB,CAAC"}
|
|
@@ -119,6 +119,9 @@ declare const ConfigHostElement_base: abstract new (...args: any[]) => {
|
|
|
119
119
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
120
120
|
webkitMatchesSelector(selectors: string): boolean;
|
|
121
121
|
readonly baseURI: string;
|
|
122
|
+
/**
|
|
123
|
+
* If there's a background video we'll need to ensure there's no image set on the background that blocks it.
|
|
124
|
+
*/
|
|
122
125
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
123
126
|
readonly firstChild: ChildNode;
|
|
124
127
|
readonly isConnected: boolean;
|
|
@@ -152,6 +155,9 @@ declare const ConfigHostElement_base: abstract new (...args: any[]) => {
|
|
|
152
155
|
readonly DOCUMENT_FRAGMENT_NODE: number;
|
|
153
156
|
readonly DOCUMENT_NODE: number;
|
|
154
157
|
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
|
158
|
+
/**
|
|
159
|
+
* @internal
|
|
160
|
+
*/
|
|
155
161
|
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
156
162
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
157
163
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/routes/base.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAGpD,OAAO,EAEL,OAAO,EAQR,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAGvD,OAAO,EAAE,UAAU,EAAqB,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/routes/base.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAGpD,OAAO,EAEL,OAAO,EAQR,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAGvD,OAAO,EAAE,UAAU,EAAqB,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC;;GAEG;AACH,KAAK,QAAQ,GAAG,YAAY,GAAG,qBAAqB,GAAG,EAAE,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,SAAS,wLAAiC,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,UAAU,wLAAkC,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,EAAE,UAAU,CAAC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,eAAO,MAAM,YAAY,gCAChB,MAAM,eACD,MAAM,aACR,OAAO,2DAWlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,mFAUhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forgot-password.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/forgot-password/forgot-password.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"forgot-password.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/forgot-password/forgot-password.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,qEAwBlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/login/login.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"login.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/login/login.template.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AA8GrC;;;GAGG;AACH,eAAO,MAAM,aAAa,4DAsCzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/logout/logout.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logout.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/logout/logout.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,cAAc,6DAY1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protected.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/protected/protected.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"protected.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/protected/protected.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,iBAAiB,gEAmC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-account.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/request-account/request-account.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"request-account.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/request-account/request-account.template.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,qEA2BlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-password.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/reset-password/reset-password.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reset-password.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/reset-password/reset-password.template.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,oEA4BjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/verify/verify.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/verify/verify.template.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,cAAc,6DAgC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/styles/styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/styles/styles.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,YAAY,iDA6HxB,CAAC"}
|
|
@@ -61,4 +61,10 @@ export const defaultAuthConfig = {
|
|
|
61
61
|
* @privateRemarks
|
|
62
62
|
* Marked as internal to stop api-extractor becoming confused cross-linking tokens with the same name.
|
|
63
63
|
*/
|
|
64
|
-
export const AuthConfig = DI.createInterface((x) =>
|
|
64
|
+
export const AuthConfig = DI.createInterface((x) => {
|
|
65
|
+
debugger;
|
|
66
|
+
return x.instance(defaultAuthConfig);
|
|
67
|
+
}, (configurator) => {
|
|
68
|
+
debugger;
|
|
69
|
+
return configurator.instance(defaultAuthConfig);
|
|
70
|
+
});
|
|
@@ -65,7 +65,8 @@ export function configure(config) {
|
|
|
65
65
|
/**
|
|
66
66
|
* Register a new AuthConfig
|
|
67
67
|
*/
|
|
68
|
-
DI.getOrCreateDOMContainer()
|
|
68
|
+
const container = DI.getOrCreateDOMContainer();
|
|
69
|
+
container.register(Registration.instance(AuthConfig, value));
|
|
69
70
|
/**
|
|
70
71
|
* Lazily reference and define the micro frontend element post config setting.
|
|
71
72
|
*/
|
package/dist/esm/main/main.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
2
|
import { EventEmitter } from '@genesislcap/foundation-events';
|
|
3
|
-
import {
|
|
3
|
+
import { FASTElement, volatile } from '@microsoft/fast-element';
|
|
4
4
|
import { Container, inject, Registration } from '@microsoft/fast-foundation';
|
|
5
5
|
import { DefaultRouteRecognizer } from '@microsoft/fast-router';
|
|
6
6
|
import { classNames } from '@microsoft/fast-web-utilities';
|
|
7
7
|
import '../components/core-components';
|
|
8
8
|
import { AuthRouterConfig } from '../routes/config';
|
|
9
9
|
import { AuthStore } from '../store';
|
|
10
|
-
import { styles } from './main.styles';
|
|
11
|
-
import { template } from './main.template';
|
|
12
10
|
/**
|
|
13
11
|
* FoundationAuth.
|
|
14
12
|
*
|
|
@@ -127,85 +125,3 @@ __decorate([
|
|
|
127
125
|
__decorate([
|
|
128
126
|
volatile
|
|
129
127
|
], FoundationAuth.prototype, "classNames", null);
|
|
130
|
-
/**
|
|
131
|
-
* ZeroAuth.
|
|
132
|
-
*
|
|
133
|
-
* @remarks
|
|
134
|
-
* A zero version that pre-registers zero components and uses the zero design system so that it can run standalone.
|
|
135
|
-
* Generally this is used for development purposes, but can be deployed as a standalone application if required or be
|
|
136
|
-
* used by a host application that is already using zero. ZeroAuth and its components won't bloat the core bundle as
|
|
137
|
-
* these are only loaded on-demand when in use.
|
|
138
|
-
*
|
|
139
|
-
* @example
|
|
140
|
-
* ```ts
|
|
141
|
-
* import { ZeroAuth } from '@genesislcap/foundation-auth';
|
|
142
|
-
* ...
|
|
143
|
-
* title: 'Authenticate',
|
|
144
|
-
* name: 'auth',
|
|
145
|
-
* path: '',
|
|
146
|
-
* element: ZeroAuth,
|
|
147
|
-
* ```
|
|
148
|
-
*
|
|
149
|
-
* @example Load the micro frontend on-demand
|
|
150
|
-
* ```ts
|
|
151
|
-
* title: 'Authenticate',
|
|
152
|
-
* name: 'auth',
|
|
153
|
-
* path: '',
|
|
154
|
-
* element: async () => {
|
|
155
|
-
* const { ZeroAuth } = await import('@genesislcap/foundation-auth');
|
|
156
|
-
* return ZeroAuth;
|
|
157
|
-
* },
|
|
158
|
-
* ```
|
|
159
|
-
*
|
|
160
|
-
* @public
|
|
161
|
-
*/
|
|
162
|
-
let ZeroAuth = class ZeroAuth extends FoundationAuth {
|
|
163
|
-
constructor() {
|
|
164
|
-
super(...arguments);
|
|
165
|
-
/**
|
|
166
|
-
* @internal
|
|
167
|
-
*/
|
|
168
|
-
this.zeroReady = false;
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* @internal
|
|
172
|
-
*/
|
|
173
|
-
connectedCallback() {
|
|
174
|
-
const _super = Object.create(null, {
|
|
175
|
-
connectedCallback: { get: () => super.connectedCallback }
|
|
176
|
-
});
|
|
177
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
178
|
-
_super.connectedCallback.call(this);
|
|
179
|
-
yield this.loadRemotes();
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* @internal
|
|
184
|
-
*/
|
|
185
|
-
loadRemotes() {
|
|
186
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
-
const { registerCommonZeroComponents } = yield import('../components/zero-components');
|
|
188
|
-
yield registerCommonZeroComponents();
|
|
189
|
-
this.zeroReady = true;
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* @internal
|
|
194
|
-
* @privateRemarks
|
|
195
|
-
* The order of the check is important here, check super first.
|
|
196
|
-
*/
|
|
197
|
-
get isReady() {
|
|
198
|
-
return super.isReady && this.zeroReady;
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
__decorate([
|
|
202
|
-
observable
|
|
203
|
-
], ZeroAuth.prototype, "zeroReady", void 0);
|
|
204
|
-
ZeroAuth = __decorate([
|
|
205
|
-
customElement({
|
|
206
|
-
name: 'zero-auth',
|
|
207
|
-
template,
|
|
208
|
-
styles,
|
|
209
|
-
})
|
|
210
|
-
], ZeroAuth);
|
|
211
|
-
export { ZeroAuth };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { mixinRobotoFont } from '@genesislcap/foundation-zero';
|
|
2
2
|
import { css } from '@microsoft/fast-element';
|
|
3
|
-
import { providerTag, routerTag } from '../tags';
|
|
4
3
|
/**
|
|
5
4
|
* @public
|
|
6
5
|
*/
|
|
@@ -12,7 +11,8 @@ export const styles = css `
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
:host,
|
|
15
|
-
|
|
14
|
+
rapid-design-system-provider,
|
|
15
|
+
foundation-router {
|
|
16
16
|
display: flex;
|
|
17
17
|
width: 100%;
|
|
18
18
|
height: 100%;
|
|
@@ -20,7 +20,7 @@ export const styles = css `
|
|
|
20
20
|
|
|
21
21
|
:host([hidden]),
|
|
22
22
|
:host(.not-ready),
|
|
23
|
-
|
|
23
|
+
rapid-design-system-provider.not-ready {
|
|
24
24
|
display: none;
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { html } from '@microsoft/fast-element';
|
|
2
|
-
import { providerTag, routerTag } from '../tags';
|
|
3
2
|
/**
|
|
4
3
|
* @public
|
|
5
4
|
*/
|
|
6
5
|
export const template = html `
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
<rapid-design-system-provider data-test-id="auth-provider" class="${(x) => x.classNames}">
|
|
7
|
+
<foundation-router :config=${(x) => x.config} data-test-id="auth-router"></foundation-router>
|
|
9
8
|
<slot></slot>
|
|
10
|
-
|
|
9
|
+
</rapid-design-system-provider>
|
|
11
10
|
`;
|
package/dist/esm/routes/base.js
CHANGED
|
@@ -10,7 +10,6 @@ import { classNames } from '@microsoft/fast-web-utilities';
|
|
|
10
10
|
import merge from 'lodash/merge';
|
|
11
11
|
import { AuthConfig, defaultAuthConfig } from '../config/config';
|
|
12
12
|
import { AuthStore } from '../store';
|
|
13
|
-
import { buttonTag, checkboxTag, progressRingTag, textFieldTag } from '../tags';
|
|
14
13
|
import { AuthRouting } from './routing';
|
|
15
14
|
/**
|
|
16
15
|
* @internal
|
|
@@ -28,9 +27,8 @@ export const selectEmit = createSelectEmitter();
|
|
|
28
27
|
*/
|
|
29
28
|
export class ConfigHostElement extends EventEmitter(FASTElement) {
|
|
30
29
|
connectedCallback() {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
: defaultAuthConfig;
|
|
30
|
+
const hasConfig = this.container.has(AuthConfig, true);
|
|
31
|
+
this.config = hasConfig ? this.container.get(AuthConfig) : defaultAuthConfig;
|
|
34
32
|
const localizationResources = merge(defaultAuthConfig.localizationResources, this.config.localizationResources);
|
|
35
33
|
this.i18next.addResources(localizationResources);
|
|
36
34
|
super.connectedCallback();
|
|
@@ -71,7 +69,7 @@ __decorate([
|
|
|
71
69
|
*/
|
|
72
70
|
export const organisationField = () => html `
|
|
73
71
|
${when((x) => x.config.fields.organisation, html `
|
|
74
|
-
|
|
72
|
+
<rapid-text-field
|
|
75
73
|
type="text"
|
|
76
74
|
name="organisation"
|
|
77
75
|
id="organisation"
|
|
@@ -86,14 +84,14 @@ export const organisationField = () => html `
|
|
|
86
84
|
<span class="form-title">
|
|
87
85
|
${(x) => { var _a; return x.toLocalisedText((_a = x.config.fields.organisation.label) !== null && _a !== void 0 ? _a : 'ORGANISATION_TITLE'); }}
|
|
88
86
|
</span>
|
|
89
|
-
|
|
87
|
+
</rapid-text-field>
|
|
90
88
|
`)}
|
|
91
89
|
`;
|
|
92
90
|
/**
|
|
93
91
|
* @internal
|
|
94
92
|
*/
|
|
95
93
|
export const usernameField = () => html `
|
|
96
|
-
|
|
94
|
+
<rapid-text-field
|
|
97
95
|
type="text"
|
|
98
96
|
name="username"
|
|
99
97
|
id="username"
|
|
@@ -107,15 +105,17 @@ export const usernameField = () => html `
|
|
|
107
105
|
title="${(x) => x.config.fields.username.title}"
|
|
108
106
|
required
|
|
109
107
|
>
|
|
110
|
-
<span class="form-title"
|
|
111
|
-
|
|
108
|
+
<span class="form-title">
|
|
109
|
+
${(x) => { var _a; return x.toLocalisedText((_a = x.config.fields.username.label) !== null && _a !== void 0 ? _a : 'FIELD_USERNAME_TITLE'); }}
|
|
110
|
+
</span>
|
|
111
|
+
</rapid-text-field>
|
|
112
112
|
`;
|
|
113
113
|
/**
|
|
114
114
|
* @internal
|
|
115
115
|
*/
|
|
116
116
|
export const emailField = () => html `
|
|
117
117
|
${when((x) => x.config.fields.email, html `
|
|
118
|
-
|
|
118
|
+
<rapid-text-field
|
|
119
119
|
type="email"
|
|
120
120
|
name="email"
|
|
121
121
|
id="email"
|
|
@@ -125,15 +125,17 @@ export const emailField = () => html `
|
|
|
125
125
|
@input="${inputEmit('auth-email-changed')}"
|
|
126
126
|
required
|
|
127
127
|
>
|
|
128
|
-
<span class="form-title"
|
|
129
|
-
|
|
128
|
+
<span class="form-title">
|
|
129
|
+
${(x) => { var _a; return x.toLocalisedText((_a = x.config.fields.email.label) !== null && _a !== void 0 ? _a : 'FIELD_EMAIL_TITLE'); }}
|
|
130
|
+
</span>
|
|
131
|
+
</rapid-text-field>
|
|
130
132
|
`)}
|
|
131
133
|
`;
|
|
132
134
|
/**
|
|
133
135
|
* @internal
|
|
134
136
|
*/
|
|
135
137
|
export const passwordField = (label) => html `
|
|
136
|
-
|
|
138
|
+
<rapid-text-field
|
|
137
139
|
type="${(x) => (x.store.formEntry.showPassword ? 'text' : 'password')}"
|
|
138
140
|
name="password"
|
|
139
141
|
id="password"
|
|
@@ -143,8 +145,10 @@ export const passwordField = (label) => html `
|
|
|
143
145
|
@input="${inputEmit('auth-password-changed')}"
|
|
144
146
|
required
|
|
145
147
|
>
|
|
146
|
-
<span class="form-title"
|
|
147
|
-
|
|
148
|
+
<span class="form-title">
|
|
149
|
+
${(x) => { var _a; return x.toLocalisedText((_a = label !== null && label !== void 0 ? label : x.config.fields.password.label) !== null && _a !== void 0 ? _a : 'FIELD_PASSWORD_TITLE'); }}
|
|
150
|
+
</span>
|
|
151
|
+
</rapid-text-field>
|
|
148
152
|
`;
|
|
149
153
|
const password2FieldMeta = {
|
|
150
154
|
new: ['new-password', 'FIELD_PASSWORD_NEW_TITLE'],
|
|
@@ -156,7 +160,7 @@ const password2FieldMeta = {
|
|
|
156
160
|
export const password2Field = (type) => {
|
|
157
161
|
const [name, label] = password2FieldMeta[type];
|
|
158
162
|
return html `
|
|
159
|
-
|
|
163
|
+
<rapid-text-field
|
|
160
164
|
type="${(x) => (x.store.formEntry.showPassword ? 'text' : 'password')}"
|
|
161
165
|
name="${name}"
|
|
162
166
|
id="${name}"
|
|
@@ -167,7 +171,7 @@ export const password2Field = (type) => {
|
|
|
167
171
|
required
|
|
168
172
|
>
|
|
169
173
|
<span class="form-title">${(x) => x.toLocalisedText(label)}</span>
|
|
170
|
-
|
|
174
|
+
</rapid-text-field>
|
|
171
175
|
`;
|
|
172
176
|
};
|
|
173
177
|
/**
|
|
@@ -283,7 +287,7 @@ LogoElement = __decorate([
|
|
|
283
287
|
* @internal
|
|
284
288
|
*/
|
|
285
289
|
export const backButton = (binding, label) => html `
|
|
286
|
-
|
|
290
|
+
<rapid-button
|
|
287
291
|
appearance="neutral-grey"
|
|
288
292
|
type="button"
|
|
289
293
|
class="action-btn"
|
|
@@ -291,13 +295,13 @@ export const backButton = (binding, label) => html `
|
|
|
291
295
|
data-test-id="back"
|
|
292
296
|
>
|
|
293
297
|
${label}
|
|
294
|
-
|
|
298
|
+
</rapid-button>
|
|
295
299
|
`;
|
|
296
300
|
/**
|
|
297
301
|
* @internal
|
|
298
302
|
*/
|
|
299
303
|
export const submitButton = (label, dataTestId = 'submit', disabled = false) => html `
|
|
300
|
-
|
|
304
|
+
<rapid-button
|
|
301
305
|
appearance="primary-gradient"
|
|
302
306
|
type="submit"
|
|
303
307
|
class="action-btn"
|
|
@@ -305,20 +309,21 @@ export const submitButton = (label, dataTestId = 'submit', disabled = false) =>
|
|
|
305
309
|
?disabled="${() => disabled}"
|
|
306
310
|
>
|
|
307
311
|
${label}
|
|
308
|
-
|
|
312
|
+
</rapid-button>
|
|
309
313
|
`;
|
|
310
314
|
/**
|
|
311
315
|
* @internal
|
|
312
316
|
*/
|
|
313
317
|
export const showPasswordCheckbox = () => html `
|
|
314
|
-
|
|
318
|
+
<rapid-checkbox
|
|
315
319
|
?checked="${(x) => x.store.formEntry.showPassword}"
|
|
316
|
-
r
|
|
320
|
+
r
|
|
321
|
+
@change="${(x, c) => x.$emit('auth-showPassword-changed', targetChecked(c))}"
|
|
317
322
|
name="show-password"
|
|
318
323
|
data-test-id="show-password"
|
|
319
324
|
>
|
|
320
325
|
Show Password
|
|
321
|
-
|
|
326
|
+
</rapid-checkbox>
|
|
322
327
|
`;
|
|
323
328
|
/**
|
|
324
329
|
* @internal
|
|
@@ -387,10 +392,10 @@ SubmittingIndicator = __decorate([
|
|
|
387
392
|
name: 'submitting-indicator',
|
|
388
393
|
template: html `
|
|
389
394
|
${when((x) => x.isSubmitting, html `
|
|
390
|
-
|
|
395
|
+
<rapid-progress-ring
|
|
391
396
|
part="submitting-indicator"
|
|
392
397
|
data-test-id="submitting-indicator"
|
|
393
|
-
|
|
398
|
+
></rapid-progress-ring>
|
|
394
399
|
`)}
|
|
395
400
|
`,
|
|
396
401
|
styles: css `
|
|
@@ -398,7 +403,7 @@ SubmittingIndicator = __decorate([
|
|
|
398
403
|
display: flex;
|
|
399
404
|
justify-content: center;
|
|
400
405
|
}
|
|
401
|
-
|
|
406
|
+
rapid-progress-ring {
|
|
402
407
|
align-self: center;
|
|
403
408
|
}
|
|
404
409
|
`,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { html } from '@microsoft/fast-element';
|
|
2
|
-
import { cardTag } from '../../tags';
|
|
3
2
|
import { backButton, organisationField, submitButton, usernameField } from '../base';
|
|
4
3
|
/**
|
|
5
4
|
* ForgotPasswordTemplate
|
|
@@ -8,21 +7,24 @@ import { backButton, organisationField, submitButton, usernameField } from '../b
|
|
|
8
7
|
export const ForgotPasswordTemplate = html `
|
|
9
8
|
<auth-background>
|
|
10
9
|
<div class="container">
|
|
11
|
-
|
|
10
|
+
<rapid-card class="card-pd">
|
|
12
11
|
<div class="column-content">
|
|
13
12
|
<auth-logo></auth-logo>
|
|
14
|
-
<div class="heading2" data-test-id="heading"
|
|
13
|
+
<div class="heading2" data-test-id="heading">
|
|
14
|
+
${(x) => x.toLocalisedText('FORGOTTEN_PASSWORD_TITLE')}
|
|
15
|
+
</div>
|
|
15
16
|
<div class="heading3">${(x) => x.toLocalisedText('FORGOTTEN_PASSWORD_SUBTITLE')}</div>
|
|
16
17
|
</div>
|
|
17
18
|
<form @submit=${(x) => x.onSubmit()} data-test-id="form">
|
|
18
19
|
${organisationField()} ${usernameField()}
|
|
19
20
|
<div class="form-buttons">
|
|
20
|
-
${(x) => submitButton(x.toLocalisedText('FORGOTTEN_PASSWORD_SUBMIT_BUTTON'))}
|
|
21
|
+
${(x) => submitButton(x.toLocalisedText('FORGOTTEN_PASSWORD_SUBMIT_BUTTON'))}
|
|
22
|
+
${(x) => backButton(() => x.onBack(), x.toLocalisedText('FORGOTTEN_PASSWORD_BACK_BUTTON'))}
|
|
21
23
|
</div>
|
|
22
24
|
<submitting-indicator is-submitting="${(x) => x.store.isPending}"></submitting-indicator>
|
|
23
25
|
<auth-message></auth-message>
|
|
24
26
|
</form>
|
|
25
|
-
|
|
27
|
+
</rapid-card>
|
|
26
28
|
</div>
|
|
27
29
|
</auth-background>
|
|
28
30
|
`;
|