@everymatrix/general-registration-multistep 1.99.53 → 1.99.55
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.
|
@@ -16190,6 +16190,11 @@ const PasswordInput = class {
|
|
|
16190
16190
|
&& !this.hidePasswordComplexity
|
|
16191
16191
|
&& !this.isDuplicateInput;
|
|
16192
16192
|
}
|
|
16193
|
+
// The complexity popup only lists the regex rules, so length/required errors must stay visible next to it.
|
|
16194
|
+
isErrorCoveredByComplexityPopup() {
|
|
16195
|
+
const { valueMissing, tooShort, tooLong } = this.getValueValidity();
|
|
16196
|
+
return this.isComplexityPopupVisible() && !valueMissing && !tooShort && !tooLong;
|
|
16197
|
+
}
|
|
16193
16198
|
renderTooltip() {
|
|
16194
16199
|
if (this.showTooltip) {
|
|
16195
16200
|
return (index.h("div", { class: `password__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
@@ -16214,9 +16219,9 @@ const PasswordInput = class {
|
|
|
16214
16219
|
if (this.touched) {
|
|
16215
16220
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
16216
16221
|
}
|
|
16217
|
-
return index.h("div", { key: '
|
|
16218
|
-
index.h("img", { key: '
|
|
16219
|
-
index.h("small", { key: '
|
|
16222
|
+
return index.h("div", { key: 'c10920f293ff4935cc5e6e9efd78ad84afb55b39', class: `password__wrapper ${this.autofilled ? 'password__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '6592d199a5dfb9b81995c0b045b62e10af05158d', class: 'password__wrapper--flex' }, index.h("label", { key: '893732849fc38cc702d1e21e1868263ca4a1e422', class: `password__label ${this.validation.mandatory ? 'password__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: '0cd5a201d08c956989448770616f09a0e33836a1', class: 'password__wrapper--relative' }, this.tooltip &&
|
|
16223
|
+
index.h("img", { key: 'b5ff997ee6307cb53f38a6de60c048d32ec980ab', class: 'password__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("vaadin-password-field", { key: '6596dc25971341baeede5afc4fe65567a80f1a88', type: "password", id: `${this.name}__input`, class: `password__input ${invalidClass}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), !this.noValidation && !this.isErrorCoveredByComplexityPopup() &&
|
|
16224
|
+
index.h("small", { key: '9f436a53c0a1ca1959bd825e3547b16e9e6eda7e', class: 'password__error-message' }, this.errorMessage), this.isComplexityPopupVisible() &&
|
|
16220
16225
|
(this.enableSouthAfricanMode
|
|
16221
16226
|
? this.renderCustomComplexityPopup()
|
|
16222
16227
|
: this.renderComplexityPopup()));
|
|
@@ -16186,6 +16186,11 @@ const PasswordInput = class {
|
|
|
16186
16186
|
&& !this.hidePasswordComplexity
|
|
16187
16187
|
&& !this.isDuplicateInput;
|
|
16188
16188
|
}
|
|
16189
|
+
// The complexity popup only lists the regex rules, so length/required errors must stay visible next to it.
|
|
16190
|
+
isErrorCoveredByComplexityPopup() {
|
|
16191
|
+
const { valueMissing, tooShort, tooLong } = this.getValueValidity();
|
|
16192
|
+
return this.isComplexityPopupVisible() && !valueMissing && !tooShort && !tooLong;
|
|
16193
|
+
}
|
|
16189
16194
|
renderTooltip() {
|
|
16190
16195
|
if (this.showTooltip) {
|
|
16191
16196
|
return (h("div", { class: `password__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
@@ -16210,9 +16215,9 @@ const PasswordInput = class {
|
|
|
16210
16215
|
if (this.touched) {
|
|
16211
16216
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
16212
16217
|
}
|
|
16213
|
-
return h("div", { key: '
|
|
16214
|
-
h("img", { key: '
|
|
16215
|
-
h("small", { key: '
|
|
16218
|
+
return h("div", { key: 'c10920f293ff4935cc5e6e9efd78ad84afb55b39', class: `password__wrapper ${this.autofilled ? 'password__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: '6592d199a5dfb9b81995c0b045b62e10af05158d', class: 'password__wrapper--flex' }, h("label", { key: '893732849fc38cc702d1e21e1868263ca4a1e422', class: `password__label ${this.validation.mandatory ? 'password__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h("div", { key: '0cd5a201d08c956989448770616f09a0e33836a1', class: 'password__wrapper--relative' }, this.tooltip &&
|
|
16219
|
+
h("img", { key: 'b5ff997ee6307cb53f38a6de60c048d32ec980ab', class: 'password__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h("vaadin-password-field", { key: '6596dc25971341baeede5afc4fe65567a80f1a88', type: "password", id: `${this.name}__input`, class: `password__input ${invalidClass}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), !this.noValidation && !this.isErrorCoveredByComplexityPopup() &&
|
|
16220
|
+
h("small", { key: '9f436a53c0a1ca1959bd825e3547b16e9e6eda7e', class: 'password__error-message' }, this.errorMessage), this.isComplexityPopupVisible() &&
|
|
16216
16221
|
(this.enableSouthAfricanMode
|
|
16217
16222
|
? this.renderCustomComplexityPopup()
|
|
16218
16223
|
: this.renderComplexityPopup()));
|