@everymatrix/pam-change-password 1.67.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/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/checkbox-group-input_14.cjs.entry.js +12803 -0
- package/dist/cjs/index-719211a0.js +1322 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/pam-change-password-99f2d5ce.js +430 -0
- package/dist/cjs/pam-change-password.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +36 -0
- package/dist/collection/components/pam-change-password/index.js +1 -0
- package/dist/collection/components/pam-change-password/pam-change-password.css +125 -0
- package/dist/collection/components/pam-change-password/pam-change-password.js +415 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +141 -0
- package/dist/collection/utils/utils.js +20 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/checkbox-group-input_14.entry.js +12786 -0
- package/dist/esm/index-13661b98.js +1293 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/pam-change-password-f4a1e7e7.js +428 -0
- package/dist/esm/pam-change-password.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/pam-change-password/app-globals-0f993ce5.js +1 -0
- package/dist/pam-change-password/checkbox-group-input_14.entry.js +5614 -0
- package/dist/pam-change-password/index-13661b98.js +2 -0
- package/dist/pam-change-password/index.esm.js +1 -0
- package/dist/pam-change-password/pam-change-password-f4a1e7e7.js +1 -0
- package/dist/pam-change-password/pam-change-password.esm.js +1 -0
- package/dist/stencil.config.dev.js +18 -0
- package/dist/stencil.config.js +19 -0
- package/dist/storybook/main.js +47 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-change-password/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-change-password/.stencil/packages/stencil/general-input/src/utils/types.d.ts +106 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-change-password/.stencil/packages/stencil/pam-change-password/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-change-password/.stencil/packages/stencil/pam-change-password/stencil.config.dev.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-change-password/.stencil/packages/stencil/pam-change-password/storybook/main.d.ts +3 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-change-password/.stencil/packages/stencil/pam-change-password/storybook/preview.d.ts +70 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-change-password/.stencil/tools/plugins/index.d.ts +3 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-change-password/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-change-password/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-change-password/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/pam-change-password/index.d.ts +1 -0
- package/dist/types/components/pam-change-password/pam-change-password.d.ts +67 -0
- package/dist/types/components.d.ts +103 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/locale.utils.d.ts +20 -0
- package/dist/types/utils/utils.d.ts +2 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +26 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.PlayerChangePassword {
|
|
6
|
+
font-family: inherit;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
container-type: inline-size;
|
|
10
|
+
opacity: 1;
|
|
11
|
+
animation-name: fadeIn;
|
|
12
|
+
animation-iteration-count: 1;
|
|
13
|
+
animation-timing-function: ease-in;
|
|
14
|
+
animation-duration: 0.3s;
|
|
15
|
+
container-type: inline-size;
|
|
16
|
+
}
|
|
17
|
+
.PlayerChangePassword .Wrapper {
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
align-items: center;
|
|
21
|
+
}
|
|
22
|
+
.PlayerChangePassword .Title {
|
|
23
|
+
background-color: transparent;
|
|
24
|
+
font-size: var(--emw--font-size-x-large, 26px);
|
|
25
|
+
color: var(--emw--color-primary, #22B04E);
|
|
26
|
+
font-weight: var(--emw--font-weight-semibold, 500);
|
|
27
|
+
}
|
|
28
|
+
.PlayerChangePassword .TitleMobile {
|
|
29
|
+
font-size: var(--emw--font-size-x-large, 20px);
|
|
30
|
+
color: var(--emw--color-primary, #22B04E);
|
|
31
|
+
}
|
|
32
|
+
.PlayerChangePassword svg {
|
|
33
|
+
fill: var(--emw--color-primary, #22B04E);
|
|
34
|
+
}
|
|
35
|
+
.PlayerChangePassword .ButtonReturn {
|
|
36
|
+
display: none;
|
|
37
|
+
font-family: inherit;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 10px;
|
|
40
|
+
}
|
|
41
|
+
.PlayerChangePassword .Form {
|
|
42
|
+
display: grid;
|
|
43
|
+
grid-template-columns: repeat(1, 1fr);
|
|
44
|
+
gap: 40px;
|
|
45
|
+
justify-items: stretch;
|
|
46
|
+
align-content: flex-start;
|
|
47
|
+
overflow: auto;
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: 100%;
|
|
50
|
+
}
|
|
51
|
+
.PlayerChangePassword .Form .FieldsSection {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
gap: 30px;
|
|
55
|
+
}
|
|
56
|
+
.PlayerChangePassword .Form .ButtonsSection {
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
justify-content: space-around;
|
|
60
|
+
align-items: center;
|
|
61
|
+
position: relative;
|
|
62
|
+
}
|
|
63
|
+
.PlayerChangePassword .Button {
|
|
64
|
+
font-family: inherit;
|
|
65
|
+
border-radius: var(--emw--button-border-radius, var(--emw--border-radius-large, 50px));
|
|
66
|
+
background: var(--emw--button-background-color, var(--emw--color-primary, #22B04E));
|
|
67
|
+
border: var(--emw--button-border, 1px solid var(--emw--button-border-color, #22B04E));
|
|
68
|
+
color: var(--emw--button-text-color, var(--emw--color-white, #FFFFFF));
|
|
69
|
+
font-size: var(--emw--font-size-large, 20px);
|
|
70
|
+
font-weight: var(--emw--font-weight-normal, 400);
|
|
71
|
+
height: 50px;
|
|
72
|
+
width: 100%;
|
|
73
|
+
text-transform: uppercase;
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
}
|
|
76
|
+
.PlayerChangePassword .Button:disabled {
|
|
77
|
+
background: var(--emfe-w-color-gray-100, #E6E6E6);
|
|
78
|
+
border: var(--emw--button-border, 1px solid var(--emw--button-border-color, #828282));
|
|
79
|
+
pointer-events: none;
|
|
80
|
+
cursor: not-allowed;
|
|
81
|
+
}
|
|
82
|
+
.PlayerChangePassword.skeleton .Form .ButtonReturn {
|
|
83
|
+
width: 150px;
|
|
84
|
+
height: 30px;
|
|
85
|
+
margin-top: 15px;
|
|
86
|
+
display: block;
|
|
87
|
+
}
|
|
88
|
+
.PlayerChangePassword.skeleton .Form .FieldsSection {
|
|
89
|
+
display: block;
|
|
90
|
+
}
|
|
91
|
+
.PlayerChangePassword.skeleton .Form .FieldsSection .FieldContainer .FieldTitle {
|
|
92
|
+
width: 100px;
|
|
93
|
+
margin-top: 30px;
|
|
94
|
+
margin-bottom: 15px;
|
|
95
|
+
}
|
|
96
|
+
.PlayerChangePassword.skeleton .Form .ButtonsSection .Button {
|
|
97
|
+
font-family: inherit;
|
|
98
|
+
border-radius: 50px;
|
|
99
|
+
background: transparent;
|
|
100
|
+
border: none;
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
}
|
|
103
|
+
@container (max-width: 425px) {
|
|
104
|
+
.PlayerChangePassword .Form .ButtonReturn {
|
|
105
|
+
display: inline-flex;
|
|
106
|
+
}
|
|
107
|
+
.PlayerChangePassword .Form .Title {
|
|
108
|
+
display: none;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@keyframes fadeIn {
|
|
113
|
+
0% {
|
|
114
|
+
opacity: 0.01;
|
|
115
|
+
}
|
|
116
|
+
1% {
|
|
117
|
+
opacity: 0;
|
|
118
|
+
}
|
|
119
|
+
50% {
|
|
120
|
+
opacity: 0;
|
|
121
|
+
}
|
|
122
|
+
100% {
|
|
123
|
+
opacity: 1;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { getTranslations, translate } from "../../utils/locale.utils";
|
|
3
|
+
import { checkDeviceType } from "../../utils/utils";
|
|
4
|
+
import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
|
|
5
|
+
import "../../../../../ui-skeleton/dist/types/index";
|
|
6
|
+
import "../../../../../general-input/dist/types/index";
|
|
7
|
+
export class PamChangePassword {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.currentPasswordValue = '';
|
|
10
|
+
this.newPasswordValue = '';
|
|
11
|
+
this.confirmPasswordValue = '';
|
|
12
|
+
this.isCurrentPasswordValid = false;
|
|
13
|
+
this.isNewPasswordValid = false;
|
|
14
|
+
this.isConfirmPasswordValid = false;
|
|
15
|
+
this.errorMsg = '';
|
|
16
|
+
this.currentPasswordValidationSchema = { mandatory: true, custom: [] };
|
|
17
|
+
this.newPasswordValidationSchema = { mandatory: true, custom: [] };
|
|
18
|
+
this.confirmPasswordValidationSchema = { mandatory: true, custom: [] };
|
|
19
|
+
this.initValidationSchemas = () => {
|
|
20
|
+
this.confirmPasswordValidationSchema = {
|
|
21
|
+
mandatory: true,
|
|
22
|
+
maxLength: this.policy.maximumPasswordLength,
|
|
23
|
+
minLength: this.policy.minimumPasswordLength,
|
|
24
|
+
custom: [
|
|
25
|
+
this.policy.customValidationRules.find(validation => validation.rule === 'duplicate-input')
|
|
26
|
+
]
|
|
27
|
+
};
|
|
28
|
+
this.newPasswordValidationSchema = {
|
|
29
|
+
mandatory: true,
|
|
30
|
+
maxLength: this.policy.maximumPasswordLength,
|
|
31
|
+
minLength: this.policy.minimumPasswordLength,
|
|
32
|
+
custom: this.policy.customValidationRules
|
|
33
|
+
};
|
|
34
|
+
this.currentPasswordValidationSchema = {
|
|
35
|
+
mandatory: true,
|
|
36
|
+
maxLength: this.policy.maximumPasswordLength,
|
|
37
|
+
minLength: this.policy.minimumPasswordLength,
|
|
38
|
+
custom: this.policy.customValidationRules
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
this.setErrorMsg = (key) => {
|
|
42
|
+
switch (key) {
|
|
43
|
+
case 'gm.pms.password_policy_failed':
|
|
44
|
+
const values = {
|
|
45
|
+
forbiddenLastPasswordsCount: this.policy.forbiddenLastPasswordsCount,
|
|
46
|
+
minimumPasswordAgeLimitHours: this.policy.minimumPasswordAgeLimitHours,
|
|
47
|
+
hours: this.policy.minimumPasswordAgeLimitHours > 1 ? 'hours' : 'hour'
|
|
48
|
+
};
|
|
49
|
+
this.errorMsg = translate(key, this.language, { values: values });
|
|
50
|
+
break;
|
|
51
|
+
case 'gm.pms.password_not_verified_unauthorized':
|
|
52
|
+
this.errorMsg = translate(key, this.language);
|
|
53
|
+
break;
|
|
54
|
+
default:
|
|
55
|
+
this.errorMsg = translate('errorMsgGeneric', this.language);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
this.toggleScreen = () => {
|
|
59
|
+
window.postMessage({ type: 'PlayerAccountMenuActive', isMobile: this.isMobile }, window.location.href);
|
|
60
|
+
};
|
|
61
|
+
this.getPolicy = () => {
|
|
62
|
+
const url = new URL('/api/v1/players/password-management/password', this.endpoint);
|
|
63
|
+
const headers = new Headers();
|
|
64
|
+
headers.append('Accept', 'text/plain');
|
|
65
|
+
headers.append('Content-Type', 'application/json-patch+json');
|
|
66
|
+
const requestParams = {
|
|
67
|
+
method: 'GET',
|
|
68
|
+
headers: headers
|
|
69
|
+
};
|
|
70
|
+
fetch(url.href, requestParams)
|
|
71
|
+
.then((res) => res.status === 200 && res.json())
|
|
72
|
+
.then((res) => {
|
|
73
|
+
this.policy = res;
|
|
74
|
+
this.policy.customValidationRules.forEach((validation) => {
|
|
75
|
+
validation.rule = validation.rule.toLowerCase();
|
|
76
|
+
if (validation.rule === 'duplicateinput')
|
|
77
|
+
validation.rule = 'duplicate-input';
|
|
78
|
+
});
|
|
79
|
+
this.initValidationSchemas();
|
|
80
|
+
})
|
|
81
|
+
.catch((err) => {
|
|
82
|
+
console.error(`${translate('errorMsgGeneric', this.language)}:`, err);
|
|
83
|
+
window.postMessage({ type: 'WidgetNotification', data: { type: 'error', message: translate('errorMsgGeneric', this.language) } }, window.location.href);
|
|
84
|
+
})
|
|
85
|
+
.finally(() => {
|
|
86
|
+
this.isSkeletonLoading = false;
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
this.submitNewPassword = (e) => {
|
|
90
|
+
e.preventDefault();
|
|
91
|
+
if (this.isBtnSubmitEnabled) {
|
|
92
|
+
const url = new URL('/api/v1/players/password-management/password', this.endpoint);
|
|
93
|
+
const headers = new Headers();
|
|
94
|
+
headers.append('accept', 'text/plain');
|
|
95
|
+
headers.append('Content-Type', 'application/json-patch+json');
|
|
96
|
+
const body = JSON.stringify({
|
|
97
|
+
token: this.forgotMode === 'true' ? this.token : this.session,
|
|
98
|
+
oldPassword: this.currentPasswordValue,
|
|
99
|
+
newPassword: this.confirmPasswordValue
|
|
100
|
+
});
|
|
101
|
+
const requestParams = {
|
|
102
|
+
method: 'PUT',
|
|
103
|
+
headers: headers,
|
|
104
|
+
body: body
|
|
105
|
+
};
|
|
106
|
+
fetch(url.href, requestParams)
|
|
107
|
+
.then((res) => res.json())
|
|
108
|
+
.then((res) => {
|
|
109
|
+
if (res.errorCode === null && res.message === 'pms.password.update.success') {
|
|
110
|
+
window.postMessage({ type: 'PasswordChangedSuccessfully' });
|
|
111
|
+
window.postMessage({ type: 'WidgetNotification', data: { type: 'success', message: translate('successMsg', this.language) } }, window.location.href);
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
this.setErrorMsg(res.message);
|
|
115
|
+
window.postMessage({ type: 'WidgetNotification', data: { type: 'error', message: this.errorMsg } }, window.location.href);
|
|
116
|
+
}
|
|
117
|
+
})
|
|
118
|
+
.catch((err) => console.error(err));
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
this.language = 'en';
|
|
122
|
+
this.endpoint = '';
|
|
123
|
+
this.session = '';
|
|
124
|
+
this.token = '';
|
|
125
|
+
this.forgotMode = '';
|
|
126
|
+
this.clientStyling = '';
|
|
127
|
+
this.clientStylingUrl = '';
|
|
128
|
+
this.mbSource = undefined;
|
|
129
|
+
this.translationUrl = '';
|
|
130
|
+
this.isBtnSubmitEnabled = false;
|
|
131
|
+
this.isSkeletonLoading = true;
|
|
132
|
+
this.isMobile = checkDeviceType() === 'mobile' || checkDeviceType() === 'tablet';
|
|
133
|
+
}
|
|
134
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
135
|
+
if (newValue != oldValue) {
|
|
136
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
handleClientStylingUrlChange(newValue, oldValue) {
|
|
140
|
+
if (newValue != oldValue) {
|
|
141
|
+
if (this.clientStylingUrl)
|
|
142
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
sendValidityStateHandler(e) {
|
|
146
|
+
this.isBtnSubmitEnabled = false;
|
|
147
|
+
switch (e.detail.name) {
|
|
148
|
+
case 'password':
|
|
149
|
+
this.isCurrentPasswordValid = e.detail.valid;
|
|
150
|
+
break;
|
|
151
|
+
case 'newPassword':
|
|
152
|
+
this.isNewPasswordValid = e.detail.valid;
|
|
153
|
+
break;
|
|
154
|
+
case 'newPasswordDuplicate':
|
|
155
|
+
this.isConfirmPasswordValid = e.detail.valid;
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
if ((this.forgotMode === 'true' || this.isCurrentPasswordValid) && this.isNewPasswordValid && this.isConfirmPasswordValid) {
|
|
159
|
+
this.isBtnSubmitEnabled = true;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
sendInputValueHandler(e) {
|
|
163
|
+
switch (e.detail.name) {
|
|
164
|
+
case 'password':
|
|
165
|
+
this.currentPasswordValue = e.detail.value;
|
|
166
|
+
break;
|
|
167
|
+
case 'newPassword':
|
|
168
|
+
this.newPasswordValue = e.detail.value;
|
|
169
|
+
break;
|
|
170
|
+
case 'newPasswordDuplicate':
|
|
171
|
+
this.confirmPasswordValue = e.detail.value;
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
componentWillLoad() {
|
|
176
|
+
this.getPolicy();
|
|
177
|
+
if (this.translationUrl) {
|
|
178
|
+
return getTranslations(this.translationUrl);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
componentDidLoad() {
|
|
182
|
+
if (this.stylingContainer) {
|
|
183
|
+
if (window.emMessageBus != undefined) {
|
|
184
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
if (this.clientStyling)
|
|
188
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
189
|
+
if (this.clientStylingUrl)
|
|
190
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
disconnectedCallback() {
|
|
195
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
196
|
+
}
|
|
197
|
+
render() {
|
|
198
|
+
if (this.isSkeletonLoading) {
|
|
199
|
+
return (h("div", { class: "PlayerChangePassword skeleton" }, h("form", { class: "Form" }, h("div", { class: "ButtonReturn" }, h("ui-skeleton", { structure: "text", width: "auto", height: "30px" })), h("section", { class: "FieldsSection" }, h("div", { class: "FieldContainer" }, h("div", { class: "FieldTitle" }, h("ui-skeleton", { structure: "title", width: "auto", height: "10px" })), h("ui-skeleton", { structure: "rectangle", width: "auto", height: "35px" })), h("div", { class: "FieldContainer" }, h("div", { class: "FieldTitle" }, h("ui-skeleton", { structure: "title", width: "auto", height: "10px" })), h("ui-skeleton", { structure: "rectangle", width: "auto", height: "35px" })), h("div", { class: "FieldContainer" }, h("div", { class: "FieldTitle" }, h("ui-skeleton", { structure: "title", width: "auto", height: "10px" })), h("ui-skeleton", { structure: "rectangle", width: "auto", height: "35px" }))), h("section", { class: "ButtonsSection" }, h("div", { class: "Button" }, h("ui-skeleton", { structure: "rectangle", width: "auto", height: "50px" }))))));
|
|
200
|
+
}
|
|
201
|
+
return (h("div", { class: "PlayerChangePassword", ref: el => this.stylingContainer = el }, h("form", { class: "Form" }, h("div", { class: "ButtonReturn", onClick: this.toggleScreen }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, h("g", { transform: "translate(-20 -158)" }, h("g", { transform: "translate(20 158)" }, h("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), h("h2", { class: "TitleMobile" }, translate('title', this.language))), h("h2", { class: "Title" }, translate('title', this.language)), h("section", { class: "FieldsSection" }, this.forgotMode === 'false'
|
|
202
|
+
&& h("general-input", { type: "password", action: "input", name: "password", language: this.language, "display-name": translate('passwordDisplayText', this.language), placeholder: translate('passwordPlaceholderText', this.language), validation: this.currentPasswordValidationSchema, clientStyling: this.clientStyling, "mb-source": this.mbSource, "hide-password-complexity": true }), h("general-input", { type: "password", action: "input", name: "newPassword", language: this.language, "display-name": translate('newPasswordDisplayText', this.language), placeholder: translate('newPasswordPlaceholderText', this.language), validation: this.newPasswordValidationSchema, clientStyling: this.clientStyling, "mb-source": this.mbSource }), h("general-input", { type: "password", action: "input", name: "newPasswordDuplicate", language: this.language, "display-name": translate('confirmPasswordDisplayText', this.language), placeholder: translate('confirmPasswordPlaceholderText', this.language), validation: this.confirmPasswordValidationSchema, "is-duplicate-input": true, clientStyling: this.clientStyling, "mb-source": this.mbSource })), h("section", { class: "ButtonsSection" }, h("button", { class: "Button", disabled: !this.isBtnSubmitEnabled, onClick: this.submitNewPassword }, translate('btnSubmit', this.language))))));
|
|
203
|
+
}
|
|
204
|
+
static get is() { return "pam-change-password"; }
|
|
205
|
+
static get encapsulation() { return "shadow"; }
|
|
206
|
+
static get originalStyleUrls() {
|
|
207
|
+
return {
|
|
208
|
+
"$": ["pam-change-password.scss"]
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
static get styleUrls() {
|
|
212
|
+
return {
|
|
213
|
+
"$": ["pam-change-password.css"]
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
static get properties() {
|
|
217
|
+
return {
|
|
218
|
+
"language": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"mutable": false,
|
|
221
|
+
"complexType": {
|
|
222
|
+
"original": "string",
|
|
223
|
+
"resolved": "string",
|
|
224
|
+
"references": {}
|
|
225
|
+
},
|
|
226
|
+
"required": false,
|
|
227
|
+
"optional": false,
|
|
228
|
+
"docs": {
|
|
229
|
+
"tags": [],
|
|
230
|
+
"text": "Language"
|
|
231
|
+
},
|
|
232
|
+
"attribute": "language",
|
|
233
|
+
"reflect": true,
|
|
234
|
+
"defaultValue": "'en'"
|
|
235
|
+
},
|
|
236
|
+
"endpoint": {
|
|
237
|
+
"type": "string",
|
|
238
|
+
"mutable": false,
|
|
239
|
+
"complexType": {
|
|
240
|
+
"original": "string",
|
|
241
|
+
"resolved": "string",
|
|
242
|
+
"references": {}
|
|
243
|
+
},
|
|
244
|
+
"required": false,
|
|
245
|
+
"optional": false,
|
|
246
|
+
"docs": {
|
|
247
|
+
"tags": [],
|
|
248
|
+
"text": "NWA Endpoint"
|
|
249
|
+
},
|
|
250
|
+
"attribute": "endpoint",
|
|
251
|
+
"reflect": true,
|
|
252
|
+
"defaultValue": "''"
|
|
253
|
+
},
|
|
254
|
+
"session": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"mutable": false,
|
|
257
|
+
"complexType": {
|
|
258
|
+
"original": "string",
|
|
259
|
+
"resolved": "string",
|
|
260
|
+
"references": {}
|
|
261
|
+
},
|
|
262
|
+
"required": false,
|
|
263
|
+
"optional": false,
|
|
264
|
+
"docs": {
|
|
265
|
+
"tags": [],
|
|
266
|
+
"text": "SessionId"
|
|
267
|
+
},
|
|
268
|
+
"attribute": "session",
|
|
269
|
+
"reflect": true,
|
|
270
|
+
"defaultValue": "''"
|
|
271
|
+
},
|
|
272
|
+
"token": {
|
|
273
|
+
"type": "string",
|
|
274
|
+
"mutable": false,
|
|
275
|
+
"complexType": {
|
|
276
|
+
"original": "string",
|
|
277
|
+
"resolved": "string",
|
|
278
|
+
"references": {}
|
|
279
|
+
},
|
|
280
|
+
"required": false,
|
|
281
|
+
"optional": false,
|
|
282
|
+
"docs": {
|
|
283
|
+
"tags": [],
|
|
284
|
+
"text": "Token, nonce value, used in forgot mode"
|
|
285
|
+
},
|
|
286
|
+
"attribute": "token",
|
|
287
|
+
"reflect": true,
|
|
288
|
+
"defaultValue": "''"
|
|
289
|
+
},
|
|
290
|
+
"forgotMode": {
|
|
291
|
+
"type": "string",
|
|
292
|
+
"mutable": false,
|
|
293
|
+
"complexType": {
|
|
294
|
+
"original": "string",
|
|
295
|
+
"resolved": "string",
|
|
296
|
+
"references": {}
|
|
297
|
+
},
|
|
298
|
+
"required": false,
|
|
299
|
+
"optional": false,
|
|
300
|
+
"docs": {
|
|
301
|
+
"tags": [],
|
|
302
|
+
"text": "forgotMode, can be eighter 'true' or 'false'"
|
|
303
|
+
},
|
|
304
|
+
"attribute": "forgot-mode",
|
|
305
|
+
"reflect": true,
|
|
306
|
+
"defaultValue": "''"
|
|
307
|
+
},
|
|
308
|
+
"clientStyling": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"mutable": false,
|
|
311
|
+
"complexType": {
|
|
312
|
+
"original": "string",
|
|
313
|
+
"resolved": "string",
|
|
314
|
+
"references": {}
|
|
315
|
+
},
|
|
316
|
+
"required": false,
|
|
317
|
+
"optional": false,
|
|
318
|
+
"docs": {
|
|
319
|
+
"tags": [],
|
|
320
|
+
"text": "Client Styling"
|
|
321
|
+
},
|
|
322
|
+
"attribute": "client-styling",
|
|
323
|
+
"reflect": true,
|
|
324
|
+
"defaultValue": "''"
|
|
325
|
+
},
|
|
326
|
+
"clientStylingUrl": {
|
|
327
|
+
"type": "string",
|
|
328
|
+
"mutable": false,
|
|
329
|
+
"complexType": {
|
|
330
|
+
"original": "string",
|
|
331
|
+
"resolved": "string",
|
|
332
|
+
"references": {}
|
|
333
|
+
},
|
|
334
|
+
"required": false,
|
|
335
|
+
"optional": false,
|
|
336
|
+
"docs": {
|
|
337
|
+
"tags": [],
|
|
338
|
+
"text": "Client Styling Url"
|
|
339
|
+
},
|
|
340
|
+
"attribute": "client-styling-url",
|
|
341
|
+
"reflect": true,
|
|
342
|
+
"defaultValue": "''"
|
|
343
|
+
},
|
|
344
|
+
"mbSource": {
|
|
345
|
+
"type": "string",
|
|
346
|
+
"mutable": false,
|
|
347
|
+
"complexType": {
|
|
348
|
+
"original": "string",
|
|
349
|
+
"resolved": "string",
|
|
350
|
+
"references": {}
|
|
351
|
+
},
|
|
352
|
+
"required": false,
|
|
353
|
+
"optional": false,
|
|
354
|
+
"docs": {
|
|
355
|
+
"tags": [],
|
|
356
|
+
"text": ""
|
|
357
|
+
},
|
|
358
|
+
"attribute": "mb-source",
|
|
359
|
+
"reflect": false
|
|
360
|
+
},
|
|
361
|
+
"translationUrl": {
|
|
362
|
+
"type": "string",
|
|
363
|
+
"mutable": false,
|
|
364
|
+
"complexType": {
|
|
365
|
+
"original": "string",
|
|
366
|
+
"resolved": "string",
|
|
367
|
+
"references": {}
|
|
368
|
+
},
|
|
369
|
+
"required": false,
|
|
370
|
+
"optional": false,
|
|
371
|
+
"docs": {
|
|
372
|
+
"tags": [],
|
|
373
|
+
"text": "Translation Url"
|
|
374
|
+
},
|
|
375
|
+
"attribute": "translation-url",
|
|
376
|
+
"reflect": true,
|
|
377
|
+
"defaultValue": "''"
|
|
378
|
+
}
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
static get states() {
|
|
382
|
+
return {
|
|
383
|
+
"isBtnSubmitEnabled": {},
|
|
384
|
+
"isSkeletonLoading": {},
|
|
385
|
+
"isMobile": {}
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
static get watchers() {
|
|
389
|
+
return [{
|
|
390
|
+
"propName": "clientStyling",
|
|
391
|
+
"methodName": "handleClientStylingChange"
|
|
392
|
+
}, {
|
|
393
|
+
"propName": "clientStyling",
|
|
394
|
+
"methodName": "handleClientStylingChange"
|
|
395
|
+
}, {
|
|
396
|
+
"propName": "clientStylingUrl",
|
|
397
|
+
"methodName": "handleClientStylingUrlChange"
|
|
398
|
+
}];
|
|
399
|
+
}
|
|
400
|
+
static get listeners() {
|
|
401
|
+
return [{
|
|
402
|
+
"name": "sendValidityState",
|
|
403
|
+
"method": "sendValidityStateHandler",
|
|
404
|
+
"target": undefined,
|
|
405
|
+
"capture": false,
|
|
406
|
+
"passive": false
|
|
407
|
+
}, {
|
|
408
|
+
"name": "sendInputValue",
|
|
409
|
+
"method": "sendInputValueHandler",
|
|
410
|
+
"target": undefined,
|
|
411
|
+
"capture": false,
|
|
412
|
+
"passive": false
|
|
413
|
+
}];
|
|
414
|
+
}
|
|
415
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/pam-change-password';
|