@genesislcap/foundation-login 14.192.2 → 14.193.0
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/routes/base.d.ts +2 -2
- package/dist/dts/routes/base.d.ts.map +1 -1
- package/dist/esm/routes/base.js +8 -8
- package/dist/esm/routes/login-form/login-form.template.js +2 -2
- package/dist/esm/routes/reset-password/reset-password.template.js +2 -2
- package/dist/esm/translation.json +1 -1
- package/dist/foundation-login.d.ts +2 -2
- package/docs/api-report.md +3 -3
- package/package.json +15 -15
|
@@ -44,7 +44,7 @@ export declare class BaseRoute extends ConfigHostElement {
|
|
|
44
44
|
email: string;
|
|
45
45
|
password: string;
|
|
46
46
|
password2: string;
|
|
47
|
-
|
|
47
|
+
showPassword: boolean;
|
|
48
48
|
message: string;
|
|
49
49
|
hasErrors: boolean;
|
|
50
50
|
isSubmitting: boolean;
|
|
@@ -114,7 +114,7 @@ export declare const submitButton: <T extends ConfigHost>(label: string, dataTes
|
|
|
114
114
|
/**
|
|
115
115
|
* @internal
|
|
116
116
|
*/
|
|
117
|
-
export declare const
|
|
117
|
+
export declare const showPasswordCheckbox: <T extends BaseRoute>() => import("@microsoft/fast-element").ViewTemplate<T, any>;
|
|
118
118
|
/**
|
|
119
119
|
* @internal
|
|
120
120
|
* @privateRemarks
|
|
@@ -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,EAEjB,OAAO,EACP,cAAc,EACd,OAAO,EACR,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAGvD,OAAO,EAEL,OAAO,EAGP,WAAW,EAIZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAIvD,OAAO,EAAsB,cA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/esm/routes/base.js
CHANGED
|
@@ -51,7 +51,7 @@ export class BaseRoute extends ConfigHostElement {
|
|
|
51
51
|
this.email = '';
|
|
52
52
|
this.password = '';
|
|
53
53
|
this.password2 = ''; // < New, confirm etc.
|
|
54
|
-
this.
|
|
54
|
+
this.showPassword = false;
|
|
55
55
|
this.message = '';
|
|
56
56
|
this.hasErrors = false;
|
|
57
57
|
this.isSubmitting = false;
|
|
@@ -227,7 +227,7 @@ __decorate([
|
|
|
227
227
|
], BaseRoute.prototype, "password2", void 0);
|
|
228
228
|
__decorate([
|
|
229
229
|
observable
|
|
230
|
-
], BaseRoute.prototype, "
|
|
230
|
+
], BaseRoute.prototype, "showPassword", void 0);
|
|
231
231
|
__decorate([
|
|
232
232
|
observable
|
|
233
233
|
], BaseRoute.prototype, "message", void 0);
|
|
@@ -335,7 +335,7 @@ export const emailField = () => html `
|
|
|
335
335
|
*/
|
|
336
336
|
export const passwordField = (label) => html `
|
|
337
337
|
<zero-text-field
|
|
338
|
-
type="${(x) => (x.
|
|
338
|
+
type="${(x) => (x.showPassword ? 'text' : 'password')}"
|
|
339
339
|
name="password"
|
|
340
340
|
id="password"
|
|
341
341
|
autocomplete="current-password"
|
|
@@ -359,7 +359,7 @@ export const password2Field = (type) => {
|
|
|
359
359
|
const [name, label] = password2FieldMeta[type];
|
|
360
360
|
return html `
|
|
361
361
|
<zero-text-field
|
|
362
|
-
type="${(x) => (x.
|
|
362
|
+
type="${(x) => (x.showPassword ? 'text' : 'password')}"
|
|
363
363
|
name="${name}"
|
|
364
364
|
id="${name}"
|
|
365
365
|
autocomplete="${name}"
|
|
@@ -468,11 +468,11 @@ export const submitButton = (label, dataTestId = 'submit', disabled = false) =>
|
|
|
468
468
|
/**
|
|
469
469
|
* @internal
|
|
470
470
|
*/
|
|
471
|
-
export const
|
|
471
|
+
export const showPasswordCheckbox = () => html `
|
|
472
472
|
<zero-checkbox
|
|
473
|
-
?checked="${sync((x) => x.
|
|
474
|
-
name="show-
|
|
475
|
-
data-test-id="show-
|
|
473
|
+
?checked="${sync((x) => x.showPassword, 'boolean')}"
|
|
474
|
+
name="show-password"
|
|
475
|
+
data-test-id="show-password"
|
|
476
476
|
>
|
|
477
477
|
${(x) => x.toLocalisedText('FIELD_SHOW_PASSWORD_TITLE')}
|
|
478
478
|
</zero-checkbox>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { sync } from '@genesislcap/foundation-utils';
|
|
2
2
|
import { html, repeat, when } from '@microsoft/fast-element';
|
|
3
|
-
import { organisationField, passwordField,
|
|
3
|
+
import { organisationField, passwordField, showPasswordCheckbox, usernameField, submitButton, } from '../base';
|
|
4
4
|
const regularLogin = html `
|
|
5
5
|
${when((login) => !login.ssoToggled, html `
|
|
6
6
|
${organisationField()} ${usernameField()} ${passwordField()}
|
|
7
7
|
<span class="case-warning">${(x) => x.toLocalisedText('LOGIN_FORM_CASE_WARNING')}</span>
|
|
8
|
-
${
|
|
8
|
+
${showPasswordCheckbox()}
|
|
9
9
|
<div class="form-buttons">
|
|
10
10
|
${(x) => submitButton(x.toLocalisedText('LOGIN_FORM_SUBMIT_BUTTON'), 'submit-login', x.submitDisabled)}
|
|
11
11
|
<div class="links">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { html, when } from '@microsoft/fast-element';
|
|
2
|
-
import { backButton, organisationField, password2Field, passwordField,
|
|
2
|
+
import { backButton, organisationField, password2Field, passwordField, showPasswordCheckbox, submitButton, usernameField, } from '../base';
|
|
3
3
|
export const ResetPasswordTemplate = html `
|
|
4
4
|
<login-background>
|
|
5
5
|
<div class="container">
|
|
@@ -14,7 +14,7 @@ export const ResetPasswordTemplate = html `
|
|
|
14
14
|
${when((x) => !x.passwordResetToken, html `
|
|
15
15
|
${(x) => passwordField(x.toLocalisedText('RESET_PASSWORD_PASSWORD_FIELD'))}
|
|
16
16
|
`)}
|
|
17
|
-
${password2Field('new')} ${
|
|
17
|
+
${password2Field('new')} ${showPasswordCheckbox()}
|
|
18
18
|
<div class="form-buttons">
|
|
19
19
|
${(x) => submitButton(x.toLocalisedText('RESET_PASSWORD_SUBMIT_BUTTON'))}
|
|
20
20
|
${(x) => backButton(() => x.onBack(), x.toLocalisedText('RESET_PASSWORD_BACK_BUTTON'))}
|
|
@@ -49,7 +49,7 @@ export declare class BaseRoute extends ConfigHostElement {
|
|
|
49
49
|
email: string;
|
|
50
50
|
password: string;
|
|
51
51
|
password2: string;
|
|
52
|
-
|
|
52
|
+
showPassword: boolean;
|
|
53
53
|
message: string;
|
|
54
54
|
hasErrors: boolean;
|
|
55
55
|
isSubmitting: boolean;
|
|
@@ -785,7 +785,7 @@ export declare type Settings = {
|
|
|
785
785
|
/**
|
|
786
786
|
* @internal
|
|
787
787
|
*/
|
|
788
|
-
export declare const
|
|
788
|
+
export declare const showPasswordCheckbox: <T extends BaseRoute>() => ViewTemplate<T, any>;
|
|
789
789
|
|
|
790
790
|
/**
|
|
791
791
|
* @public
|
package/docs/api-report.md
CHANGED
|
@@ -94,7 +94,7 @@ export class BaseRoute extends ConfigHostElement {
|
|
|
94
94
|
// (undocumented)
|
|
95
95
|
setError(message: string): void;
|
|
96
96
|
// (undocumented)
|
|
97
|
-
|
|
97
|
+
showPassword: boolean;
|
|
98
98
|
// (undocumented)
|
|
99
99
|
storeCredentials(password?: string): void;
|
|
100
100
|
// (undocumented)
|
|
@@ -341,10 +341,10 @@ export type Settings = {
|
|
|
341
341
|
public?: boolean;
|
|
342
342
|
};
|
|
343
343
|
|
|
344
|
-
// Warning: (ae-internal-missing-underscore) The name "
|
|
344
|
+
// Warning: (ae-internal-missing-underscore) The name "showPasswordCheckbox" should be prefixed with an underscore because the declaration is marked as @internal
|
|
345
345
|
//
|
|
346
346
|
// @internal (undocumented)
|
|
347
|
-
export const
|
|
347
|
+
export const showPasswordCheckbox: <T extends BaseRoute>() => ViewTemplate<T, any>;
|
|
348
348
|
|
|
349
349
|
// @public (undocumented)
|
|
350
350
|
export type SSOConfig = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-login",
|
|
3
3
|
"description": "Genesis Foundation Login",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.193.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-login.d.ts",
|
|
@@ -67,22 +67,22 @@
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@genesislcap/foundation-testing": "14.
|
|
71
|
-
"@genesislcap/genx": "14.
|
|
72
|
-
"@genesislcap/rollup-builder": "14.
|
|
73
|
-
"@genesislcap/ts-builder": "14.
|
|
74
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
75
|
-
"@genesislcap/vite-builder": "14.
|
|
76
|
-
"@genesislcap/webpack-builder": "14.
|
|
70
|
+
"@genesislcap/foundation-testing": "14.193.0",
|
|
71
|
+
"@genesislcap/genx": "14.193.0",
|
|
72
|
+
"@genesislcap/rollup-builder": "14.193.0",
|
|
73
|
+
"@genesislcap/ts-builder": "14.193.0",
|
|
74
|
+
"@genesislcap/uvu-playwright-builder": "14.193.0",
|
|
75
|
+
"@genesislcap/vite-builder": "14.193.0",
|
|
76
|
+
"@genesislcap/webpack-builder": "14.193.0",
|
|
77
77
|
"rimraf": "^5.0.0"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@genesislcap/foundation-comms": "14.
|
|
81
|
-
"@genesislcap/foundation-i18n": "14.
|
|
82
|
-
"@genesislcap/foundation-logger": "14.
|
|
83
|
-
"@genesislcap/foundation-ui": "14.
|
|
84
|
-
"@genesislcap/foundation-utils": "14.
|
|
85
|
-
"@genesislcap/foundation-zero": "14.
|
|
80
|
+
"@genesislcap/foundation-comms": "14.193.0",
|
|
81
|
+
"@genesislcap/foundation-i18n": "14.193.0",
|
|
82
|
+
"@genesislcap/foundation-logger": "14.193.0",
|
|
83
|
+
"@genesislcap/foundation-ui": "14.193.0",
|
|
84
|
+
"@genesislcap/foundation-utils": "14.193.0",
|
|
85
|
+
"@genesislcap/foundation-zero": "14.193.0",
|
|
86
86
|
"@microsoft/fast-components": "^2.30.6",
|
|
87
87
|
"@microsoft/fast-element": "^1.12.0",
|
|
88
88
|
"@microsoft/fast-foundation": "^2.49.4",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"access": "public"
|
|
101
101
|
},
|
|
102
102
|
"customElements": "dist/custom-elements.json",
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "8ffb9b512f059cfabe6bb8a0e4b58f12b12f7a89"
|
|
104
104
|
}
|