@everymatrix/general-registration 1.10.17 → 1.10.19
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/checkbox-input_11.cjs.entry.js +162 -33
- package/dist/cjs/general-registration.cjs.js +2 -2
- package/dist/cjs/{index-a69a5278.js → index-5b4544e8.js} +2 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/general-registration/general-registration.js +5 -4
- package/dist/components/checkbox-input2.js +22 -6
- package/dist/components/date-input2.js +21 -5
- package/dist/components/email-input2.js +21 -5
- package/dist/components/general-input2.js +9 -8
- package/dist/components/general-registration.js +5 -4
- package/dist/components/number-input2.js +21 -5
- package/dist/components/password-input2.js +22 -6
- package/dist/components/radio-input2.js +21 -5
- package/dist/components/select-input2.js +21 -5
- package/dist/components/tel-input2.js +21 -5
- package/dist/components/text-input2.js +21 -5
- package/dist/components/tooltipIcon.js +29 -0
- package/dist/esm/checkbox-input_11.entry.js +162 -33
- package/dist/esm/general-registration.js +2 -2
- package/dist/esm/{index-b3c0d3c9.js → index-5b8d16cc.js} +2 -0
- package/dist/esm/loader.js +2 -2
- package/dist/general-registration/general-registration.esm.js +1 -1
- package/dist/general-registration/{p-9fd2de44.entry.js → p-0f29dba0.entry.js} +130 -130
- package/dist/general-registration/p-cba9c0b1.js +1 -0
- package/package.json +1 -1
- package/dist/components/locale.utils.js +0 -27
- package/dist/general-registration/p-35d6abbe.js +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-5b4544e8.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE$1 = 'en';
|
|
8
8
|
const SUPPORTED_LANGUAGES$1 = ['ro', 'en'];
|
|
@@ -30,7 +30,9 @@ const translate$2 = (key, customLang, values) => {
|
|
|
30
30
|
return translation;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
const
|
|
33
|
+
const tooltipIconSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMiAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iMTEuOTA5OSIgeT0iMTYuMTUiIHdpZHRoPSIxLjgyIiBoZWlnaHQ9IjcuNjAwMDEiIHRyYW5zZm9ybT0icm90YXRlKC0xODAgMTEuOTA5OSAxNi4xNSkiIGZpbGw9IiMyQjJEM0YiLz4KPHJlY3QgeD0iMTEuOTA5OSIgeT0iNi42NTAwMiIgd2lkdGg9IjEuODIiIGhlaWdodD0iMS45MDAwMSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE4MCAxMS45MDk5IDYuNjUwMDIpIiBmaWxsPSIjMkIyRDNGIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMC45ODk5OSAxMC40NUMwLjk4OTk5IDQuNjc3NjggNS40NzE5NyAwIDExIDBDMTYuNTI4IDAgMjEuMDEgNC42Nzc2OCAyMS4wMSAxMC40NUMyMS4wMSAxNi4yMjEgMTYuNTI4IDIwLjkgMTEgMjAuOUM1LjQ3MTk3IDIwLjkgMC45ODk5OSAxNi4yMjEgMC45ODk5OSAxMC40NVpNMi44MDk5OSAxMC40NTA2QzIuODA5OTkgMTUuMTcyMyA2LjQ3Njc3IDE5IDExIDE5QzE1LjUyMiAxOSAxOS4xOSAxNS4xNzIzIDE5LjE5IDEwLjQ1MDZDMTkuMTkgNS43Mjg5MSAxNS41MjIgMS45MDAwMSAxMSAxLjkwMDAxQzYuNDc2NzcgMS45MDAwMSAyLjgwOTk5IDUuNzI4OTEgMi44MDk5OSAxMC40NTA2WiIgZmlsbD0iIzJCMkQzRiIvPgo8L3N2Zz4K';
|
|
34
|
+
|
|
35
|
+
const checkboxInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:\"Roboto\";font-style:normal}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--flex{display:flex;gap:5px}.checkbox__wrapper--relative{position:relative}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:#2B2D3F;line-height:14px}.checkbox__label-text{font-size:16px}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:#cc0000b3}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{position:absolute;top:0;right:20px;background-color:#FFFFFF;border:1px solid #B0B0B0;color:#2B2D3F;padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkbox__tooltip.visible{opacity:1}";
|
|
34
36
|
|
|
35
37
|
const CheckboxInput = class {
|
|
36
38
|
constructor(hostRef) {
|
|
@@ -46,6 +48,7 @@ const CheckboxInput = class {
|
|
|
46
48
|
*/
|
|
47
49
|
this.clientStyling = '';
|
|
48
50
|
this.limitStylingAppends = false;
|
|
51
|
+
this.showTooltip = false;
|
|
49
52
|
this.value = '';
|
|
50
53
|
this.setClientStyling = () => {
|
|
51
54
|
let sheet = document.createElement('style');
|
|
@@ -69,6 +72,12 @@ const CheckboxInput = class {
|
|
|
69
72
|
valueHandler(inputValueEvent) {
|
|
70
73
|
this.sendInputValue.emit(inputValueEvent);
|
|
71
74
|
}
|
|
75
|
+
handleClickOutside(event) {
|
|
76
|
+
if (event.composedPath()[0] === this.tooltipIconReference)
|
|
77
|
+
return;
|
|
78
|
+
if (event.composedPath()[0] !== this.tooltipReference)
|
|
79
|
+
this.showTooltip = false;
|
|
80
|
+
}
|
|
72
81
|
componentDidRender() {
|
|
73
82
|
// start custom styling area
|
|
74
83
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
@@ -98,10 +107,17 @@ const CheckboxInput = class {
|
|
|
98
107
|
}
|
|
99
108
|
}
|
|
100
109
|
renderLabel() {
|
|
101
|
-
return (index.h("label", { class: 'checkbox__label', htmlFor: `${this.name}__input` }, index.h("div", { innerHTML: `${this.displayName} ${this.validation.mandatory ? '*' : ''}` })));
|
|
110
|
+
return (index.h("label", { class: 'checkbox__label', htmlFor: `${this.name}__input` }, index.h("div", { class: 'checkbox__label-text', innerHTML: `${this.displayName} ${this.validation.mandatory ? '*' : ''}` })));
|
|
111
|
+
}
|
|
112
|
+
renderTooltip() {
|
|
113
|
+
if (this.showTooltip) {
|
|
114
|
+
return (index.h("div", { class: `checkbox__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
115
|
+
}
|
|
116
|
+
return null;
|
|
102
117
|
}
|
|
103
118
|
render() {
|
|
104
|
-
return index.h("div", { class: 'checkbox__wrapper', ref: el => this.stylingContainer = el }, index.h("input", { type: "checkbox", id: `${this.name}__input`, ref: (el) => this.inputReference = el, name: this.name, checked: this.defaultValue
|
|
119
|
+
return index.h("div", { class: 'checkbox__wrapper', ref: el => this.stylingContainer = el }, index.h("input", { type: "checkbox", id: `${this.name}__input`, ref: (el) => this.inputReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel(), index.h("small", { class: 'checkbox__error-message' }, this.errorMessage), index.h("div", { class: 'checkbox__wrapper--relative' }, this.tooltip &&
|
|
120
|
+
index.h("img", { class: 'checkbox__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()));
|
|
105
121
|
}
|
|
106
122
|
static get watchers() { return {
|
|
107
123
|
"isValid": ["validityChanged"],
|
|
@@ -23052,7 +23068,7 @@ class DatePicker extends DatePickerMixin(InputControlMixin(ThemableMixin(Element
|
|
|
23052
23068
|
|
|
23053
23069
|
customElements.define(DatePicker.is, DatePicker);
|
|
23054
23070
|
|
|
23055
|
-
const dateInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:\"Roboto\";font-style:normal}.date__wrapper{position:relative;width:100%;padding-top:26px}.date__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:#1F1F1F;position:absolute;top:0;left:0}.date__label--required::after{content:\"*\";font-family:inherit;color:#1F1F1F;margin-left:2px}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){border-color:#3E3E3E}.date__input[invalid]::part(input-field){border-color:#cc0000b3}.date__input::part(input-field){border-radius:4px;background-color:#FFFFFF;border:2px solid #DEE1EE;color:#2A2E3F;border-radius:4px;background-color:transparent;font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:#cc0000b3}";
|
|
23071
|
+
const dateInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:\"Roboto\";font-style:normal}.date__wrapper{position:relative;width:100%;padding-top:26px}.date__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:#1F1F1F;position:absolute;top:0;left:0}.date__label--required::after{content:\"*\";font-family:inherit;color:#1F1F1F;margin-left:2px}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){border-color:#3E3E3E}.date__input[invalid]::part(input-field){border-color:#cc0000b3}.date__input::part(input-field){border-radius:4px;background-color:#FFFFFF;border:2px solid #DEE1EE;color:#2A2E3F;border-radius:4px;background-color:transparent;font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:#cc0000b3}.date__tooltip-icon{position:absolute;right:0;bottom:10px}.date__tooltip{position:absolute;bottom:35px;right:10px;background-color:#FFFFFF;border:1px solid #B0B0B0;color:#2B2D3F;padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.date__tooltip.visible{opacity:1}";
|
|
23056
23072
|
|
|
23057
23073
|
const DateInput = class {
|
|
23058
23074
|
constructor(hostRef) {
|
|
@@ -23064,6 +23080,7 @@ const DateInput = class {
|
|
|
23064
23080
|
*/
|
|
23065
23081
|
this.clientStyling = '';
|
|
23066
23082
|
this.limitStylingAppends = false;
|
|
23083
|
+
this.showTooltip = false;
|
|
23067
23084
|
this.setClientStyling = () => {
|
|
23068
23085
|
let sheet = document.createElement('style');
|
|
23069
23086
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -23087,6 +23104,12 @@ const DateInput = class {
|
|
|
23087
23104
|
valueHandler(inputValueEvent) {
|
|
23088
23105
|
this.sendInputValue.emit(inputValueEvent);
|
|
23089
23106
|
}
|
|
23107
|
+
handleClickOutside(event) {
|
|
23108
|
+
if (event.composedPath()[0] === this.tooltipIconReference)
|
|
23109
|
+
return;
|
|
23110
|
+
if (event.composedPath()[0] !== this.tooltipReference)
|
|
23111
|
+
this.showTooltip = false;
|
|
23112
|
+
}
|
|
23090
23113
|
componentDidRender() {
|
|
23091
23114
|
// start custom styling area
|
|
23092
23115
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
@@ -23121,9 +23144,16 @@ const DateInput = class {
|
|
|
23121
23144
|
return translate$2('requiredError', this.language);
|
|
23122
23145
|
}
|
|
23123
23146
|
}
|
|
23147
|
+
renderTooltip() {
|
|
23148
|
+
if (this.showTooltip) {
|
|
23149
|
+
return (index.h("div", { class: `date__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
23150
|
+
}
|
|
23151
|
+
return null;
|
|
23152
|
+
}
|
|
23124
23153
|
render() {
|
|
23125
23154
|
const invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'date__input--invalid';
|
|
23126
|
-
return index.h("div", { class: 'date__wrapper', ref: el => this.stylingContainer = el }, index.h("label", { class: `date__label ${this.validation.mandatory ? 'date__label--required' : ''}}`, htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? '*' : ''), index.h("vaadin-date-picker", { id: `${this.name}__input`, type: 'date', class: `date__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onBlur: (e) => this.handleInput(e) }), index.h("small", { class: 'date__error-message' }, this.errorMessage)
|
|
23155
|
+
return index.h("div", { class: 'date__wrapper', ref: el => this.stylingContainer = el }, index.h("label", { class: `date__label ${this.validation.mandatory ? 'date__label--required' : ''}}`, htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? '*' : ''), index.h("vaadin-date-picker", { id: `${this.name}__input`, type: 'date', class: `date__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onBlur: (e) => this.handleInput(e) }), index.h("small", { class: 'date__error-message' }, this.errorMessage), this.tooltip &&
|
|
23156
|
+
index.h("img", { class: 'date__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
|
|
23127
23157
|
}
|
|
23128
23158
|
get element() { return index.getElement(this); }
|
|
23129
23159
|
static get watchers() { return {
|
|
@@ -23133,7 +23163,7 @@ const DateInput = class {
|
|
|
23133
23163
|
};
|
|
23134
23164
|
DateInput.style = dateInputCss;
|
|
23135
23165
|
|
|
23136
|
-
const emailInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email{font-family:\"Roboto\";font-style:normal}.email__wrapper{position:relative;width:100
|
|
23166
|
+
const emailInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email{font-family:\"Roboto\";font-style:normal}.email__wrapper{position:relative;width:100%}.email__wrapper--flex{display:flex;gap:5px}.email__wrapper--relative{position:relative}.email__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:#1F1F1F}.email__label--required::after{content:\"*\";font-family:inherit;color:#1F1F1F;margin-left:2px}.email__input{border-radius:4px;background-color:transparent;font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px;color:#2A2E3F;padding:8px 20px;width:inherit;position:relative;border:2px solid #DEE1EE}.email__input:focus{outline-color:#3E3E3E}.email__input--invalid{border:2px solid #cc0000b3}.email__error-message{position:absolute;top:calc(100% + 5px);left:0;color:#cc0000b3}.email__tooltip-icon{width:16px;height:auto}.email__tooltip{position:absolute;top:0;left:20px;background-color:#FFFFFF;border:1px solid #B0B0B0;color:#2B2D3F;padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.email__tooltip.visible{opacity:1}";
|
|
23137
23167
|
|
|
23138
23168
|
const EmailInput = class {
|
|
23139
23169
|
constructor(hostRef) {
|
|
@@ -23145,6 +23175,7 @@ const EmailInput = class {
|
|
|
23145
23175
|
*/
|
|
23146
23176
|
this.clientStyling = '';
|
|
23147
23177
|
this.limitStylingAppends = false;
|
|
23178
|
+
this.showTooltip = false;
|
|
23148
23179
|
this.validationPattern = '';
|
|
23149
23180
|
this.setClientStyling = () => {
|
|
23150
23181
|
let sheet = document.createElement('style');
|
|
@@ -23169,6 +23200,12 @@ const EmailInput = class {
|
|
|
23169
23200
|
valueHandler(inputValueEvent) {
|
|
23170
23201
|
this.sendInputValue.emit(inputValueEvent);
|
|
23171
23202
|
}
|
|
23203
|
+
handleClickOutside(event) {
|
|
23204
|
+
if (event.composedPath()[0] === this.tooltipIconReference)
|
|
23205
|
+
return;
|
|
23206
|
+
if (event.composedPath()[0] !== this.tooltipReference)
|
|
23207
|
+
this.showTooltip = false;
|
|
23208
|
+
}
|
|
23172
23209
|
valueChangedHandler(event) {
|
|
23173
23210
|
if (this.isDuplicateInput) {
|
|
23174
23211
|
if (this.name === event.detail.name + 'Duplicate') {
|
|
@@ -23223,9 +23260,16 @@ const EmailInput = class {
|
|
|
23223
23260
|
return this.validation.custom.find(customRule => customRule.rule === 'duplicate-input').errorMessage;
|
|
23224
23261
|
}
|
|
23225
23262
|
}
|
|
23263
|
+
renderTooltip() {
|
|
23264
|
+
if (this.showTooltip) {
|
|
23265
|
+
return (index.h("div", { class: `email__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
23266
|
+
}
|
|
23267
|
+
return null;
|
|
23268
|
+
}
|
|
23226
23269
|
render() {
|
|
23227
23270
|
const invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'email__input--invalid';
|
|
23228
|
-
return index.h("div", { class: 'email__wrapper', ref: el => this.stylingContainer = el }, index.h("
|
|
23271
|
+
return index.h("div", { class: 'email__wrapper', ref: el => this.stylingContainer = el }, index.h("div", { class: 'email__wrapper--flex' }, index.h("label", { class: `email__label ${this.validation.mandatory ? 'email__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { class: 'email__wrapper--relative' }, this.tooltip &&
|
|
23272
|
+
index.h("img", { class: 'email__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("input", { id: `${this.name}__input`, type: 'email', class: `email__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, ref: (el) => this.inputReference = el, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onBlur: (e) => this.handleInput(e) }), index.h("small", { class: 'email__error-message' }, this.errorMessage));
|
|
23229
23273
|
}
|
|
23230
23274
|
static get watchers() { return {
|
|
23231
23275
|
"isValid": ["validityChanged"],
|
|
@@ -23252,23 +23296,23 @@ const GeneralInput = class {
|
|
|
23252
23296
|
var _a;
|
|
23253
23297
|
switch ((_a = this.type) === null || _a === void 0 ? void 0 : _a.toLowerCase()) {
|
|
23254
23298
|
case 'text':
|
|
23255
|
-
return index.h("text-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling });
|
|
23299
|
+
return index.h("text-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip });
|
|
23256
23300
|
case 'email':
|
|
23257
|
-
return index.h("email-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling });
|
|
23301
|
+
return index.h("email-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip });
|
|
23258
23302
|
case 'number':
|
|
23259
|
-
return index.h("number-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling });
|
|
23303
|
+
return index.h("number-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip });
|
|
23260
23304
|
case 'checkbox':
|
|
23261
|
-
return index.h("checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, emitValue: this.emitValue, defaultValue: this.defaultValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling });
|
|
23305
|
+
return index.h("checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, emitValue: this.emitValue, defaultValue: this.defaultValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip });
|
|
23262
23306
|
case 'datetime':
|
|
23263
|
-
return index.h("date-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling });
|
|
23307
|
+
return index.h("date-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip });
|
|
23264
23308
|
case 'password':
|
|
23265
|
-
return index.h("password-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling });
|
|
23309
|
+
return index.h("password-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip });
|
|
23266
23310
|
case 'radio':
|
|
23267
23311
|
return index.h("radio-input", { name: this.name, displayName: this.displayName, optionsGroup: this.options, validation: this.validation, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling });
|
|
23268
23312
|
case 'tel':
|
|
23269
|
-
return index.h("tel-input", { name: this.name, action: this.action, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, emitValue: this.emitValue, language: this.language, autofilled: this.autofilled, "client-styling": this.clientStyling });
|
|
23313
|
+
return index.h("tel-input", { name: this.name, action: this.action, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, emitValue: this.emitValue, language: this.language, autofilled: this.autofilled, "client-styling": this.clientStyling, tooltip: this.tooltip });
|
|
23270
23314
|
case 'dropdown':
|
|
23271
|
-
return index.h("select-input", { name: this.name, action: this.action, defaultValue: this.defaultValue, displayName: this.displayName, options: this.options, validation: this.validation, emitValue: this.emitValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling });
|
|
23315
|
+
return index.h("select-input", { name: this.name, action: this.action, defaultValue: this.defaultValue, displayName: this.displayName, options: this.options, validation: this.validation, emitValue: this.emitValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip });
|
|
23272
23316
|
default:
|
|
23273
23317
|
return index.h("p", null, "The ", this.type, " input type is not valid");
|
|
23274
23318
|
}
|
|
@@ -23518,6 +23562,9 @@ const GeneralRegistration = class {
|
|
|
23518
23562
|
return res.json();
|
|
23519
23563
|
})
|
|
23520
23564
|
.then((data) => {
|
|
23565
|
+
this.isLoading = false;
|
|
23566
|
+
if (!data)
|
|
23567
|
+
return;
|
|
23521
23568
|
this.registrationID = data.registrationId;
|
|
23522
23569
|
if (this.listOfActions.some(action => action == '/register')) {
|
|
23523
23570
|
this.setRegister();
|
|
@@ -23545,9 +23592,7 @@ const GeneralRegistration = class {
|
|
|
23545
23592
|
})
|
|
23546
23593
|
.catch((err) => {
|
|
23547
23594
|
console.error(err);
|
|
23548
|
-
|
|
23549
|
-
.finally(() => {
|
|
23550
|
-
this.isLoading = false;
|
|
23595
|
+
// this.isLoading = false;
|
|
23551
23596
|
});
|
|
23552
23597
|
}
|
|
23553
23598
|
setRegister() {
|
|
@@ -23642,7 +23687,7 @@ const GeneralRegistration = class {
|
|
|
23642
23687
|
return listOfInputs.filter(input => input.isValid == false).length > 0;
|
|
23643
23688
|
}
|
|
23644
23689
|
renderInputs() {
|
|
23645
|
-
return (this.listOfInputs.map(input => index.h("general-input", { type: input.inputType, name: input.name, displayName: input.displayName, validation: input.validate, action: input.action || null, options: input.data ? input.data.values : [], defaultValue: input.defaultValue, autofilled: input.autofill, emitValue: this.emitValue, language: this.language, isDuplicateInput: input.isDuplicateInput, "client-styling": this.clientStyling })));
|
|
23690
|
+
return (this.listOfInputs.map(input => index.h("general-input", { type: input.inputType, name: input.name, displayName: input.displayName, validation: input.validate, action: input.action || null, options: input.data ? input.data.values : [], defaultValue: input.defaultValue, autofilled: input.autofill, emitValue: this.emitValue, language: this.language, isDuplicateInput: input.isDuplicateInput, "client-styling": this.clientStyling, tooltip: input.tooltip })));
|
|
23646
23691
|
}
|
|
23647
23692
|
;
|
|
23648
23693
|
renderButtons() {
|
|
@@ -23661,7 +23706,7 @@ const GeneralRegistration = class {
|
|
|
23661
23706
|
};
|
|
23662
23707
|
GeneralRegistration.style = generalRegistrationCss;
|
|
23663
23708
|
|
|
23664
|
-
const numberInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:\"Roboto\";font-style:normal}.number__wrapper{position:relative;width:100
|
|
23709
|
+
const numberInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:\"Roboto\";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:#1F1F1F}.number__label--required::after{content:\"*\";font-family:inherit;color:#1F1F1F;margin-left:2px}.number__input{border-radius:4px;background-color:transparent;font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px;color:#2A2E3F;padding:8px 20px;width:inherit;position:relative;border:2px solid #DEE1EE;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:2px solid #cc0000b3}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:#cc0000b3}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left:20px;background-color:#FFFFFF;border:1px solid #B0B0B0;color:#2B2D3F;padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.number__tooltip.visible{opacity:1}";
|
|
23665
23710
|
|
|
23666
23711
|
const NumberInput = class {
|
|
23667
23712
|
constructor(hostRef) {
|
|
@@ -23673,6 +23718,7 @@ const NumberInput = class {
|
|
|
23673
23718
|
*/
|
|
23674
23719
|
this.clientStyling = '';
|
|
23675
23720
|
this.limitStylingAppends = false;
|
|
23721
|
+
this.showTooltip = false;
|
|
23676
23722
|
this.validationPattern = '';
|
|
23677
23723
|
this.setClientStyling = () => {
|
|
23678
23724
|
let sheet = document.createElement('style');
|
|
@@ -23697,6 +23743,12 @@ const NumberInput = class {
|
|
|
23697
23743
|
valueHandler(inputValueEvent) {
|
|
23698
23744
|
this.sendInputValue.emit(inputValueEvent);
|
|
23699
23745
|
}
|
|
23746
|
+
handleClickOutside(event) {
|
|
23747
|
+
if (event.composedPath()[0] === this.tooltipIconReference)
|
|
23748
|
+
return;
|
|
23749
|
+
if (event.composedPath()[0] !== this.tooltipReference)
|
|
23750
|
+
this.showTooltip = false;
|
|
23751
|
+
}
|
|
23700
23752
|
connectedCallback() {
|
|
23701
23753
|
this.validationPattern = this.setPattern();
|
|
23702
23754
|
}
|
|
@@ -23741,9 +23793,16 @@ const NumberInput = class {
|
|
|
23741
23793
|
return translate$2('requiredError', this.language);
|
|
23742
23794
|
}
|
|
23743
23795
|
}
|
|
23796
|
+
renderTooltip() {
|
|
23797
|
+
if (this.showTooltip) {
|
|
23798
|
+
return (index.h("div", { class: `number__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
23799
|
+
}
|
|
23800
|
+
return null;
|
|
23801
|
+
}
|
|
23744
23802
|
render() {
|
|
23745
23803
|
const invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'number__input--invalid';
|
|
23746
|
-
return index.h("div", { class: 'number__wrapper', ref: el => this.stylingContainer = el }, index.h("
|
|
23804
|
+
return index.h("div", { class: 'number__wrapper', ref: el => this.stylingContainer = el }, index.h("div", { class: 'number__wrapper--flex' }, index.h("label", { class: `number__label ${this.validation.mandatory ? 'number__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { class: 'number__wrapper--relative' }, this.tooltip &&
|
|
23805
|
+
index.h("img", { class: 'number__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("input", { ref: (el) => this.inputReference = el, type: "number", value: this.defaultValue, readOnly: this.autofilled, id: `${this.name}__input`, class: `number__input ${invalidClass}`, pattern: this.validationPattern, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onBlur: (e) => this.handleInput(e) }), index.h("small", { class: 'number__error-message' }, this.errorMessage));
|
|
23747
23806
|
}
|
|
23748
23807
|
static get watchers() { return {
|
|
23749
23808
|
"isValid": ["validityChanged"],
|
|
@@ -24547,7 +24606,7 @@ class PasswordField extends TextField {
|
|
|
24547
24606
|
|
|
24548
24607
|
customElements.define(PasswordField.is, PasswordField);
|
|
24549
24608
|
|
|
24550
|
-
const passwordInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.password{font-family:\"Roboto\";font-style:normal}.password__wrapper{position:relative;width:100
|
|
24609
|
+
const passwordInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.password{font-family:\"Roboto\";font-style:normal}.password__wrapper{position:relative;width:100%}.password__wrapper--flex{display:flex;gap:5px}.password__wrapper--relative{position:relative}.password__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:#1F1F1F}.password__label--required::after{content:\"*\";font-family:inherit;color:#1F1F1F;margin-left:2px}.password__input{width:inherit;border:none}.password__input[focused]::part(input-field){border-color:#3E3E3E}.password__input[invalid]::part(input-field){border-color:#cc0000b3}.password__input::part(input-field){border-radius:4px;background-color:transparent;font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px;color:#2A2E3F;width:100%;position:relative;border:2px solid #DEE1EE}.password__error-message{position:absolute;top:calc(100% + 5px);left:0;color:#cc0000b3}.password__tooltip-icon{width:16px;height:auto}.password__tooltip{position:absolute;top:0;left:20px;background-color:#FFFFFF;border:1px solid #B0B0B0;color:#2B2D3F;padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.password__tooltip.visible{opacity:1}";
|
|
24551
24610
|
|
|
24552
24611
|
const PasswordInput = class {
|
|
24553
24612
|
constructor(hostRef) {
|
|
@@ -24563,6 +24622,7 @@ const PasswordInput = class {
|
|
|
24563
24622
|
*/
|
|
24564
24623
|
this.clientStyling = '';
|
|
24565
24624
|
this.limitStylingAppends = false;
|
|
24625
|
+
this.showTooltip = false;
|
|
24566
24626
|
this.value = '';
|
|
24567
24627
|
this.validationPattern = '';
|
|
24568
24628
|
this.setClientStyling = () => {
|
|
@@ -24595,6 +24655,12 @@ const PasswordInput = class {
|
|
|
24595
24655
|
}
|
|
24596
24656
|
}
|
|
24597
24657
|
}
|
|
24658
|
+
handleClickOutside(event) {
|
|
24659
|
+
if (event.composedPath()[0] === this.tooltipIconReference)
|
|
24660
|
+
return;
|
|
24661
|
+
if (event.composedPath()[0] !== this.tooltipReference)
|
|
24662
|
+
this.showTooltip = false;
|
|
24663
|
+
}
|
|
24598
24664
|
connectedCallback() {
|
|
24599
24665
|
this.validationPattern = this.setPattern();
|
|
24600
24666
|
}
|
|
@@ -24645,11 +24711,18 @@ const PasswordInput = class {
|
|
|
24645
24711
|
return this.validation.custom.find(customRule => customRule.rule === 'duplicate-input').errorMessage;
|
|
24646
24712
|
}
|
|
24647
24713
|
}
|
|
24714
|
+
renderTooltip() {
|
|
24715
|
+
if (this.showTooltip) {
|
|
24716
|
+
return (index.h("div", { class: `password__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
24717
|
+
}
|
|
24718
|
+
return null;
|
|
24719
|
+
}
|
|
24648
24720
|
render() {
|
|
24649
24721
|
const invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'password__input--invalid';
|
|
24650
|
-
return index.h("div", { class: 'password__wrapper', ref: el => this.stylingContainer = el }, index.h("
|
|
24722
|
+
return index.h("div", { class: 'password__wrapper', ref: el => this.stylingContainer = el }, index.h("div", { class: 'password__wrapper--flex' }, index.h("label", { class: `password__label ${this.validation.mandatory ? 'password__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { class: 'password__wrapper--relative' }, this.tooltip &&
|
|
24723
|
+
index.h("img", { class: 'password__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("vaadin-password-field", { type: "password", id: `${this.name}__input`, class: `password__input ${invalidClass}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue,
|
|
24651
24724
|
// ref={(el) => this.inputReference = el as HTMLInputElement}
|
|
24652
|
-
required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, onBlur: (e) => this.handleInput(e) }), index.h("
|
|
24725
|
+
required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, onBlur: (e) => this.handleInput(e) }), index.h("small", { class: 'password__error-message' }, this.errorMessage));
|
|
24653
24726
|
}
|
|
24654
24727
|
get element() { return index.getElement(this); }
|
|
24655
24728
|
static get watchers() { return {
|
|
@@ -24659,7 +24732,7 @@ const PasswordInput = class {
|
|
|
24659
24732
|
};
|
|
24660
24733
|
PasswordInput.style = passwordInputCss;
|
|
24661
24734
|
|
|
24662
|
-
const radioInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:#cc0000b3}";
|
|
24735
|
+
const radioInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:#cc0000b3}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:#FFFFFF;border:1px solid #B0B0B0;color:#2B2D3F;padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}";
|
|
24663
24736
|
|
|
24664
24737
|
const RadioInput = class {
|
|
24665
24738
|
constructor(hostRef) {
|
|
@@ -24671,6 +24744,7 @@ const RadioInput = class {
|
|
|
24671
24744
|
*/
|
|
24672
24745
|
this.clientStyling = '';
|
|
24673
24746
|
this.limitStylingAppends = false;
|
|
24747
|
+
this.showTooltip = false;
|
|
24674
24748
|
this.setClientStyling = () => {
|
|
24675
24749
|
let sheet = document.createElement('style');
|
|
24676
24750
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -24694,6 +24768,12 @@ const RadioInput = class {
|
|
|
24694
24768
|
validityStateHandler(inputStateEvent) {
|
|
24695
24769
|
this.sendValidityState.emit(inputStateEvent);
|
|
24696
24770
|
}
|
|
24771
|
+
handleClickOutside(event) {
|
|
24772
|
+
if (event.composedPath()[0] === this.tooltipIconReference)
|
|
24773
|
+
return;
|
|
24774
|
+
if (event.composedPath()[0] !== this.tooltipReference)
|
|
24775
|
+
this.showTooltip = false;
|
|
24776
|
+
}
|
|
24697
24777
|
componentDidRender() {
|
|
24698
24778
|
// start custom styling area
|
|
24699
24779
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
@@ -24718,8 +24798,15 @@ const RadioInput = class {
|
|
|
24718
24798
|
return translate$2('requiredError', this.language);
|
|
24719
24799
|
}
|
|
24720
24800
|
}
|
|
24801
|
+
renderTooltip() {
|
|
24802
|
+
if (this.showTooltip) {
|
|
24803
|
+
return (index.h("div", { class: `radio__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
24804
|
+
}
|
|
24805
|
+
return null;
|
|
24806
|
+
}
|
|
24721
24807
|
render() {
|
|
24722
|
-
return index.h("fieldset", { class: 'radio__fieldset', ref: el => this.stylingContainer = el }, index.h("legend", { class: 'radio__legend' }, this.displayName, ":"), this.optionsGroup.map(option => index.h("div", { class: 'radio__wrapper' }, index.h("input", { type: "radio", class: 'radio__input', id: `${option.label}__input`, ref: (el) => this.inputReference = el, value: option.value, name: this.name, required: this.validation.mandatory, onClick: (e) => this.handleClick(e) }), index.h("label", { htmlFor: `${option.label}__input` }, option.label))), index.h("small", { class: 'radio__error-message' }, this.errorMessage)
|
|
24808
|
+
return index.h("fieldset", { class: 'radio__fieldset', ref: el => this.stylingContainer = el }, index.h("legend", { class: 'radio__legend' }, this.displayName, ":"), this.optionsGroup.map(option => index.h("div", { class: 'radio__wrapper' }, index.h("input", { type: "radio", class: 'radio__input', id: `${option.label}__input`, ref: (el) => this.inputReference = el, value: option.value, name: this.name, required: this.validation.mandatory, onClick: (e) => this.handleClick(e) }), index.h("label", { htmlFor: `${option.label}__input` }, option.label))), index.h("small", { class: 'radio__error-message' }, this.errorMessage), this.tooltip &&
|
|
24809
|
+
index.h("img", { class: 'radio__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
|
|
24723
24810
|
}
|
|
24724
24811
|
static get watchers() { return {
|
|
24725
24812
|
"isValid": ["validityChanged"],
|
|
@@ -29069,7 +29156,7 @@ class ComboBox extends ComboBoxDataProviderMixin(
|
|
|
29069
29156
|
|
|
29070
29157
|
customElements.define(ComboBox.is, ComboBox);
|
|
29071
29158
|
|
|
29072
|
-
const selectInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.select{font-family:\"Roboto\";font-style:normal}.select__wrapper{position:relative;width:100
|
|
29159
|
+
const selectInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.select{font-family:\"Roboto\";font-style:normal}.select__wrapper{position:relative;width:100%}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:#1F1F1F}.select__label--required::after{content:\"*\";font-family:inherit;color:#1F1F1F;margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]::part(input-field){border-color:#3E3E3E}.select__input[invalid]::part(input-field){border-color:#cc0000b3}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:#1F1F1F}.select__input vaadin-month-calendar::part(selected date){background-color:red}.select__input::part(input-field){border-radius:4px;background-color:#FFFFFF;border:2px solid #DEE1EE;color:#2A2E3F;border-radius:4px;background-color:transparent;font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:#cc0000b3}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:#FFFFFF;border:1px solid #B0B0B0;color:#2B2D3F;padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}";
|
|
29073
29160
|
|
|
29074
29161
|
const SelectInput = class {
|
|
29075
29162
|
constructor(hostRef) {
|
|
@@ -29089,6 +29176,7 @@ const SelectInput = class {
|
|
|
29089
29176
|
*/
|
|
29090
29177
|
this.clientStyling = '';
|
|
29091
29178
|
this.limitStylingAppends = false;
|
|
29179
|
+
this.showTooltip = false;
|
|
29092
29180
|
this.setClientStyling = () => {
|
|
29093
29181
|
let sheet = document.createElement('style');
|
|
29094
29182
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -29112,6 +29200,12 @@ const SelectInput = class {
|
|
|
29112
29200
|
valueHandler(inputValueEvent) {
|
|
29113
29201
|
this.sendInputValue.emit(inputValueEvent);
|
|
29114
29202
|
}
|
|
29203
|
+
handleClickOutside(event) {
|
|
29204
|
+
if (event.composedPath()[0] === this.tooltipIconReference)
|
|
29205
|
+
return;
|
|
29206
|
+
if (event.composedPath()[0] !== this.tooltipReference)
|
|
29207
|
+
this.showTooltip = false;
|
|
29208
|
+
}
|
|
29115
29209
|
connectedCallback() {
|
|
29116
29210
|
this.displayedOptions = this.options;
|
|
29117
29211
|
}
|
|
@@ -29171,9 +29265,16 @@ const SelectInput = class {
|
|
|
29171
29265
|
return translate$2('requiredError', this.language);
|
|
29172
29266
|
}
|
|
29173
29267
|
}
|
|
29268
|
+
renderTooltip() {
|
|
29269
|
+
if (this.showTooltip) {
|
|
29270
|
+
return (index.h("div", { class: `select__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
29271
|
+
}
|
|
29272
|
+
return null;
|
|
29273
|
+
}
|
|
29174
29274
|
render() {
|
|
29175
29275
|
const invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'select__input--invalid';
|
|
29176
|
-
return index.h("div", { class: 'select__wrapper', ref: el => this.stylingContainer = el }, index.h("
|
|
29276
|
+
return index.h("div", { class: 'select__wrapper', ref: el => this.stylingContainer = el }, index.h("div", { class: 'select__wrapper--flex' }, index.h("label", { class: 'select__label', htmlFor: `${this.name}__input` }, `${this.displayName} ${this.validation.mandatory ? '*' : ''}`), index.h("div", { class: 'select__wrapper--relative' }, this.tooltip &&
|
|
29277
|
+
index.h("img", { class: 'select__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("vaadin-combo-box", { name: this.name, id: `${this.name}__input`, class: `select__input ${invalidClass}`, "item-label-path": "label", "item-value-path": "value", readOnly: this.autofilled, required: this.validation.mandatory, value: this.defaultValue, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, items: this.displayedOptions, onBlur: (e) => this.handleChange(e) }), index.h("small", { class: 'select__error-message' }, this.errorMessage));
|
|
29177
29278
|
}
|
|
29178
29279
|
get element() { return index.getElement(this); }
|
|
29179
29280
|
static get watchers() { return {
|
|
@@ -29183,7 +29284,7 @@ const SelectInput = class {
|
|
|
29183
29284
|
};
|
|
29184
29285
|
SelectInput.style = selectInputCss;
|
|
29185
29286
|
|
|
29186
|
-
const telInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:\"Roboto\";font-style:normal}.tel__wrapper{position:relative;width:100
|
|
29287
|
+
const telInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:\"Roboto\";font-style:normal}.tel__wrapper{position:relative;width:100%}.tel__wrapper--flex{width:inherit;display:flex;align-items:stretch;border-radius:4px;border:2px solid #DEE1EE}.tel__wrapper--flex:focus-within{border:2px solid #3E3E3E}.tel__wrapper--flex--invalid{border:2px solid #cc0000b3}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:#1F1F1F}.tel__label--required::after{content:\"*\";font-family:inherit;color:#1F1F1F;margin-left:2px}.tel__prefix{width:120px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){border-radius:0 4px 4px 0;background-color:#DEE1EE;color:#1F1F1F;font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px}.tel__input{border-radius:4px;background-color:transparent;font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px;color:#2A2E3F;border:none;padding:8px 20px;width:inherit;position:relative;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:#cc0000b3}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:#FFFFFF;border:1px solid #B0B0B0;color:#2B2D3F;padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}";
|
|
29187
29288
|
|
|
29188
29289
|
const TelInput = class {
|
|
29189
29290
|
constructor(hostRef) {
|
|
@@ -29195,6 +29296,7 @@ const TelInput = class {
|
|
|
29195
29296
|
*/
|
|
29196
29297
|
this.clientStyling = '';
|
|
29197
29298
|
this.limitStylingAppends = false;
|
|
29299
|
+
this.showTooltip = false;
|
|
29198
29300
|
this.validationPattern = '';
|
|
29199
29301
|
this.setClientStyling = () => {
|
|
29200
29302
|
let sheet = document.createElement('style');
|
|
@@ -29219,6 +29321,12 @@ const TelInput = class {
|
|
|
29219
29321
|
valueHandler(inputValueEvent) {
|
|
29220
29322
|
this.sendInputValue.emit(inputValueEvent);
|
|
29221
29323
|
}
|
|
29324
|
+
handleClickOutside(event) {
|
|
29325
|
+
if (event.composedPath()[0] === this.tooltipIconReference)
|
|
29326
|
+
return;
|
|
29327
|
+
if (event.composedPath()[0] !== this.tooltipReference)
|
|
29328
|
+
this.showTooltip = false;
|
|
29329
|
+
}
|
|
29222
29330
|
connectedCallback() {
|
|
29223
29331
|
this.validationPattern = this.setPattern();
|
|
29224
29332
|
if (this.defaultValue) {
|
|
@@ -29293,9 +29401,16 @@ const TelInput = class {
|
|
|
29293
29401
|
return translate$2('requiredError', this.language);
|
|
29294
29402
|
}
|
|
29295
29403
|
}
|
|
29404
|
+
renderTooltip() {
|
|
29405
|
+
if (this.showTooltip) {
|
|
29406
|
+
return (index.h("div", { class: `tel__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
29407
|
+
}
|
|
29408
|
+
return null;
|
|
29409
|
+
}
|
|
29296
29410
|
render() {
|
|
29297
29411
|
const invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'tel__wrapper--flex--invalid';
|
|
29298
|
-
return index.h("div", { class: 'tel__wrapper', ref: el => this.stylingContainer = el }, index.h("div", { class:
|
|
29412
|
+
return index.h("div", { class: 'tel__wrapper', ref: el => this.stylingContainer = el }, index.h("div", { class: 'tel__wrapper--flex-label' }, index.h("label", { class: `tel__label ${this.validation.mandatory ? 'tel__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { class: 'tel__wrapper--relative' }, this.tooltip &&
|
|
29413
|
+
index.h("img", { class: 'tel__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("div", { class: `tel__wrapper--flex ${invalidClass}` }, index.h("vaadin-combo-box", { class: 'tel__prefix', items: this.phoneCodesOptions, value: this.prefixValue, readOnly: this.autofilled, onChange: (e) => this.prefixValue = e.target.value }), index.h("input", { type: "tel", ref: (el) => this.inputReference = el, id: `${this.name}__input`, readOnly: this.autofilled, class: `tel__input`, value: this.phoneValue, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, pattern: this.validationPattern, onBlur: (e) => this.handleInput(e) })), index.h("small", { class: 'tel__error-message' }, this.errorMessage));
|
|
29299
29414
|
}
|
|
29300
29415
|
static get watchers() { return {
|
|
29301
29416
|
"isValid": ["validityChanged"],
|
|
@@ -29304,7 +29419,7 @@ const TelInput = class {
|
|
|
29304
29419
|
};
|
|
29305
29420
|
TelInput.style = telInputCss;
|
|
29306
29421
|
|
|
29307
|
-
const textInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:\"Roboto\";font-style:normal}.text__wrapper{position:relative;width:100
|
|
29422
|
+
const textInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:\"Roboto\";font-style:normal}.text__wrapper{position:relative;width:100%}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:#1F1F1F}.text__label--required::after{content:\"*\";font-family:inherit;color:#1F1F1F;margin-left:2px}.text__input{border-radius:4px;background-color:transparent;font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px;color:#2A2E3F;padding:8px 20px;width:inherit;position:relative;border:2px solid #DEE1EE}.text__input:focus{outline-color:#3E3E3E}.text__input--invalid{border:2px solid #cc0000b3}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:#cc0000b3}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:#FFFFFF;border:1px solid #B0B0B0;color:#2B2D3F;padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}";
|
|
29308
29423
|
|
|
29309
29424
|
const TextInput = class {
|
|
29310
29425
|
constructor(hostRef) {
|
|
@@ -29321,6 +29436,7 @@ const TextInput = class {
|
|
|
29321
29436
|
this.clientStyling = '';
|
|
29322
29437
|
this.errorMessage = '';
|
|
29323
29438
|
this.limitStylingAppends = false;
|
|
29439
|
+
this.showTooltip = false;
|
|
29324
29440
|
this.value = '';
|
|
29325
29441
|
this.customRules = [];
|
|
29326
29442
|
this.validationPattern = '';
|
|
@@ -29346,6 +29462,12 @@ const TextInput = class {
|
|
|
29346
29462
|
valueHandler(inputValueEvent) {
|
|
29347
29463
|
this.sendInputValue.emit(inputValueEvent);
|
|
29348
29464
|
}
|
|
29465
|
+
handleClickOutside(event) {
|
|
29466
|
+
if (event.composedPath()[0] === this.tooltipIconReference)
|
|
29467
|
+
return;
|
|
29468
|
+
if (event.composedPath()[0] !== this.tooltipReference)
|
|
29469
|
+
this.showTooltip = false;
|
|
29470
|
+
}
|
|
29349
29471
|
valueChangedHandler(event) {
|
|
29350
29472
|
if (this.isDuplicateInput) {
|
|
29351
29473
|
if (this.name === event.detail.name + 'Duplicate') {
|
|
@@ -29400,9 +29522,16 @@ const TextInput = class {
|
|
|
29400
29522
|
return this.validation.custom.find(customRule => customRule.rule === 'duplicate-input').errorMessage;
|
|
29401
29523
|
}
|
|
29402
29524
|
}
|
|
29525
|
+
renderTooltip() {
|
|
29526
|
+
if (this.showTooltip) {
|
|
29527
|
+
return (index.h("div", { class: `text__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
29528
|
+
}
|
|
29529
|
+
return null;
|
|
29530
|
+
}
|
|
29403
29531
|
render() {
|
|
29404
29532
|
const invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
29405
|
-
return index.h("div", { class: 'text__wrapper', ref: el => this.stylingContainer = el }, index.h("
|
|
29533
|
+
return index.h("div", { class: 'text__wrapper', ref: el => this.stylingContainer = el }, index.h("div", { class: 'text__wrapper--flex' }, index.h("label", { class: `text__label ${this.validation.mandatory ? 'text__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { class: 'text__wrapper--relative' }, this.tooltip &&
|
|
29534
|
+
index.h("img", { class: 'text__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("input", { name: this.name, id: `${this.name}__input`, value: this.defaultValue, type: 'text', class: `text__input ${invalidClass}`, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, ref: (el) => this.inputReference = el, readOnly: this.autofilled, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onBlur: (e) => { this.handleInput(e); } }), index.h("small", { class: 'text__error-message' }, this.errorMessage));
|
|
29406
29535
|
}
|
|
29407
29536
|
static get watchers() { return {
|
|
29408
29537
|
"isValid": ["validityChanged"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-5b4544e8.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["checkbox-input_11.cjs",[[1,"general-registration",{"endpoint":[513],"language":[513],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationsUrl":[513,"translations-url"],"errorMessage":[32],"isFormValid":[32],"listOfInputs":[32],"isLoading":[32],"registrationStep":[32]},[[0,"sendValidityState","checkInputsValidityHandler"],[0,"sendInputValue","getInputsValueHandler"]]],[1,"general-input",{"type":[513],"name":[513],"displayName":[513,"display-name"],"action":[513],"validation":[16],"options":[520],"language":[513],"autofilled":[516],"defaultValue":[520,"default-value"],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[520,"client-styling"]}],[1,"checkbox-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"autofilled":[516],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32]}],[1,"date-input",{"name":[513],"displayName":[513,"display-name"],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32]}],[1,"email-input",{"name":[513],"displayName":[513,"display-name"],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"language":[513],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32]},[[16,"sendInputValue","valueChangedHandler"]]],[1,"number-input",{"name":[513],"displayName":[513,"display-name"],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32]}],[1,"password-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"autofilled":[516],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32]},[[16,"sendInputValue","valueChangedHandler"]]],[1,"radio-input",{"name":[513],"displayName":[513,"display-name"],"optionsGroup":[16],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32]}],[1,"select-input",{"name":[513],"displayName":[513,"display-name"],"action":[513],"defaultValue":[513,"default-value"],"autofilled":[516],"options":[16],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32]}],[1,"tel-input",{"name":[513],"displayName":[513,"display-name"],"showLabels":[516,"show-labels"],"action":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32]}],[1,"text-input",{"name":[513],"displayName":[513,"display-name"],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"language":[513],"checkValidity":[516,"check-validity"],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32]},[[16,"sendInputValue","valueChangedHandler"]]]]]], options);
|
|
18
|
+
return index.bootstrapLazy([["checkbox-input_11.cjs",[[1,"general-registration",{"endpoint":[513],"language":[513],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationsUrl":[513,"translations-url"],"errorMessage":[32],"isFormValid":[32],"listOfInputs":[32],"isLoading":[32],"registrationStep":[32]},[[0,"sendValidityState","checkInputsValidityHandler"],[0,"sendInputValue","getInputsValueHandler"]]],[1,"general-input",{"type":[513],"name":[513],"displayName":[513,"display-name"],"action":[513],"validation":[16],"options":[520],"language":[513],"autofilled":[516],"tooltip":[513],"defaultValue":[520,"default-value"],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[520,"client-styling"]}],[1,"checkbox-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"date-input",{"name":[513],"displayName":[513,"display-name"],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"email-input",{"name":[513],"displayName":[513,"display-name"],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]]],[1,"number-input",{"name":[513],"displayName":[513,"display-name"],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"password-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]]],[1,"radio-input",{"name":[513],"displayName":[513,"display-name"],"optionsGroup":[16],"validation":[16],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"select-input",{"name":[513],"displayName":[513,"display-name"],"action":[513],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"options":[16],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"tel-input",{"name":[513],"displayName":[513,"display-name"],"showLabels":[516,"show-labels"],"action":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"text-input",{"name":[513],"displayName":[513,"display-name"],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"checkValidity":[516,"check-validity"],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]]]]]], options);
|
|
19
19
|
});
|