@everymatrix/general-input 1.69.2 → 1.70.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/{general-input.cjs.entry.js → checkbox-group-input_13.cjs.entry.js} +12269 -4776
- package/dist/cjs/general-input.cjs.js +2 -2
- package/dist/cjs/{index-bce82d29.js → index-9179e91b.js} +6 -11
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/date-input/date-input.js +13 -4
- package/dist/collection/components/general-input/general-input.js +40 -1
- package/dist/collection/components/twofa-input/twofa-input.css +56 -0
- package/dist/collection/components/twofa-input/twofa-input.js +495 -0
- package/dist/collection/utils/locale.utils.js +36 -11
- package/dist/esm/{general-input.entry.js → checkbox-group-input_13.entry.js} +12259 -4778
- package/dist/esm/general-input.js +3 -3
- package/dist/esm/{index-34f25346.js → index-ed8fc8f4.js} +6 -11
- package/dist/esm/loader.js +3 -3
- package/dist/general-input/{general-input.entry.js → checkbox-group-input_13.entry.js} +222 -222
- package/dist/general-input/general-input.esm.js +1 -1
- package/dist/general-input/{index-34f25346.js → index-ed8fc8f4.js} +2 -2
- package/dist/types/components/date-input/date-input.d.ts +1 -0
- package/dist/types/components/general-input/general-input.d.ts +4 -0
- package/dist/types/components/twofa-input/twofa-input.d.ts +84 -0
- package/dist/types/components.d.ts +129 -0
- package/dist/types/utils/types.d.ts +17 -12
- package/package.json +1 -1
- package/dist/cjs/checkbox-group-input_10.cjs.entry.js +0 -6677
- package/dist/cjs/locale.utils-f0ae0a97.js +0 -165
- package/dist/cjs/toggle-checkbox-input.cjs.entry.js +0 -118
- package/dist/cjs/tooltipIcon-7e9ee226.js +0 -5
- package/dist/esm/checkbox-group-input_10.entry.js +0 -6664
- package/dist/esm/locale.utils-14c3dac3.js +0 -162
- package/dist/esm/toggle-checkbox-input.entry.js +0 -114
- package/dist/esm/tooltipIcon-0a5a06a2.js +0 -3
- package/dist/general-input/checkbox-group-input_10.entry.js +0 -1
- package/dist/general-input/locale.utils-14c3dac3.js +0 -1
- package/dist/general-input/toggle-checkbox-input.entry.js +0 -1
- package/dist/general-input/tooltipIcon-0a5a06a2.js +0 -1
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
const DEFAULT_LANGUAGE = 'en';
|
|
2
|
-
const TRANSLATIONS = {
|
|
3
|
-
"en": {
|
|
4
|
-
"dateError": "The selected date should be between {min} and {max}",
|
|
5
|
-
"dateError2": "The selected date is not within the accepted range",
|
|
6
|
-
"numberLengthError": "The number should be between {min} and {max}",
|
|
7
|
-
"lengthError": "The length should be between {minLength} and {maxLength}",
|
|
8
|
-
"requiredError": "This input is required.",
|
|
9
|
-
"invalidOriginalPasswordError": "Initial password field does not validate all criteria.",
|
|
10
|
-
"invalidPassword": "Password does not meet all criteria",
|
|
11
|
-
"passwordStrength": "Password strength",
|
|
12
|
-
"passwordStrengthWeak": "is not adequate",
|
|
13
|
-
"passwordStrengthStrong": "is adequate",
|
|
14
|
-
"SpecialCharactersNotAllowed": "Should not contain special characters",
|
|
15
|
-
"InvalidEmailFormat": "Invalid email format.",
|
|
16
|
-
"EmailNotMatching": "Emails not matching!",
|
|
17
|
-
"PasswordNotMatching": "Passwords not matching",
|
|
18
|
-
"MustIncludeNumber": "Password must include a number",
|
|
19
|
-
"MustContainCapital": "Password must include a capital letter",
|
|
20
|
-
"MustIncludePunctation": "Password must include punctuation",
|
|
21
|
-
"OnlyNumbers": "Should contains only numbers.",
|
|
22
|
-
"InvalidFieldSize": "The length must be exactly 11 digits.",
|
|
23
|
-
"InvalidDocumentNumber": "Only numerical characters are allowed."
|
|
24
|
-
},
|
|
25
|
-
"hu": {
|
|
26
|
-
"dateError": "A választott dátumnak {min} és {max} között kell lennie",
|
|
27
|
-
"numberLengthError": "A számnak {min} és {max} között kell lennie",
|
|
28
|
-
"lengthError": "A hossznak {minLength} és {maxLength} között kell lennie",
|
|
29
|
-
"requiredError": "Ez a beviteli mező kötelező.",
|
|
30
|
-
"invalidOriginalPasswordError": "Initial password field does not validate all criteria.",
|
|
31
|
-
"invalidPassword": "A jelszó nem felel meg minden kritériumnak",
|
|
32
|
-
"passwordStrength": "Jelszó erőssége",
|
|
33
|
-
"passwordStrengthWeak": "nem megfelelő",
|
|
34
|
-
"passwordStrengthStrong": "megfelelő",
|
|
35
|
-
"SpecialCharactersNotAllowed": "Nem tartalmazhat speciális karaktereket",
|
|
36
|
-
"InvalidEmailFormat": "Érvénytelen e-mail formátum.",
|
|
37
|
-
"EmailNotMatching": "Az e-mailek nem egyeznek!",
|
|
38
|
-
"PasswordNotMatching": "A jelszavak nem egyeznek",
|
|
39
|
-
"MustIncludeNumber": "A jelszónak tartalmaznia kell egy számot",
|
|
40
|
-
"MustContainCapital": "A jelszónak tartalmaznia kell egy nagybetűt",
|
|
41
|
-
"MustIncludePunctation": "A jelszónak tartalmaznia kell írásjelet",
|
|
42
|
-
"OnlyNumbers": "Csak számokat kell tartalmaznia.",
|
|
43
|
-
"InvalidFieldSize": "A hosszúságnak pontosan 11 számjegynek kell lennie.",
|
|
44
|
-
"InvalidDocumentNumber": "Csak számjegyek engedélyezettek.",
|
|
45
|
-
},
|
|
46
|
-
"hr": {
|
|
47
|
-
"dateError": "Odabrani datum treba biti između {min} i {max}",
|
|
48
|
-
"dateError2": "Odabrani datum nije unutar prihvaćenog raspona",
|
|
49
|
-
"numberLengthError": "Broj bi trebao biti između {min} i {max}",
|
|
50
|
-
"lengthError": "Duljina bi trebala biti između {minLength} i {maxLength}",
|
|
51
|
-
"requiredError": "Ovaj unos je obavezan.",
|
|
52
|
-
"invalidOriginalPasswordError": "Lozinke se ne podudaraju",
|
|
53
|
-
"invalidPassword": "Lozinka ne zadovoljava sve kriterije",
|
|
54
|
-
"passwordStrength": "Lozinka",
|
|
55
|
-
"passwordStrengthWeak": "nije dovoljno jaka",
|
|
56
|
-
"passwordStrengthStrong": "je dovoljno jaka",
|
|
57
|
-
"SpecialCharactersNotAllowed": "Ne smije sadržavati posebne znakove",
|
|
58
|
-
"InvalidEmailFormat": "Nevažeći format e-maila",
|
|
59
|
-
"EmailNotMatching": "E-mailovi se ne podudaraju!",
|
|
60
|
-
"PasswordNotMatching": "Lozinke se ne podudaraju",
|
|
61
|
-
"MustIncludeNumber": "Lozinka mora sadržavati broj",
|
|
62
|
-
"MustContainCapital": "Lozinka mora sadržavati veliko slovo",
|
|
63
|
-
"MustIncludePunctation": "Lozinka mora sadržavati barem jedan znak",
|
|
64
|
-
"OnlyNumbers": "Treba sadržavati samo brojeve.",
|
|
65
|
-
"InvalidFieldSize": "Dužina mora biti točno 11 znamenki.",
|
|
66
|
-
"InvalidDocumentNumber": "Dopušteni su samo numerički znakovi."
|
|
67
|
-
},
|
|
68
|
-
"tr": {
|
|
69
|
-
"dateError": "Seçilen tarih {min} ve {max} arasında olmalıdır",
|
|
70
|
-
"dateError2": "Seçilen tarih kabul edilen aralıkta değil",
|
|
71
|
-
"numberLengthError": "Sayı {min} ve {max} arasında olmalıdır",
|
|
72
|
-
"lengthError": "Uzunluk {minLength} ve {maxLength} arasında olmalıdır",
|
|
73
|
-
"requiredError": "Bu alan zorunludur.",
|
|
74
|
-
"invalidOriginalPasswordError": "İlk şifre alanı tüm kriterleri karşılamıyor.",
|
|
75
|
-
"invalidPassword": "Şifre tüm kriterleri karşılamıyor",
|
|
76
|
-
"passwordStrength": "Şifre gücü",
|
|
77
|
-
"passwordStrengthWeak": "yetersiz",
|
|
78
|
-
"passwordStrengthStrong": "yeterli",
|
|
79
|
-
"SpecialCharactersNotAllowed": "Özel karakter içermemelidir",
|
|
80
|
-
"InvalidEmailFormat": "Geçersiz e-posta formatı.",
|
|
81
|
-
"EmailNotMatching": "E-postalar uyuşmuyor!",
|
|
82
|
-
"PasswordNotMatching": "Şifreler uyuşmuyor",
|
|
83
|
-
"MustIncludeNumber": "bir sayı içermelidir",
|
|
84
|
-
"MustContainCapital": "büyük harf içermelidir",
|
|
85
|
-
"MustIncludePunctation": "noktalama işareti içermelidir",
|
|
86
|
-
"OnlyNumbers": "Sadece sayılar içermelidir.",
|
|
87
|
-
"InvalidFieldSize": "Uzunluk tam olarak 11 rakam olmalıdır.",
|
|
88
|
-
"InvalidDocumentNumber": "Sadece sayısal karakterlere izin verilir."
|
|
89
|
-
},
|
|
90
|
-
"pt-br": {
|
|
91
|
-
"dateError": "A data selecionada deve estar entre {min} e {max}",
|
|
92
|
-
"dateError2": "A data selecionada não está dentro de um intervalo válido",
|
|
93
|
-
"numberLengthError": "O número deve estar entre {min} e {max}",
|
|
94
|
-
"lengthError": "O comprimento deve estar entre {minLength} e {maxLength}",
|
|
95
|
-
"requiredError": "Este campo é obrigatório",
|
|
96
|
-
"invalidOriginalPasswordError": "O campo de senha inicial não faz parte dos critérios válidos",
|
|
97
|
-
"invalidPassword": "A senha não atende a todos os critérios",
|
|
98
|
-
"PasswordStrength": "Força da senha",
|
|
99
|
-
"PasswordStrengthWeak": "Não é adequado",
|
|
100
|
-
"PasswordStrengthStrong": "é apropriado",
|
|
101
|
-
"SpecialCharactersNotAllowed": "Não deve conter caracteres especiais",
|
|
102
|
-
"InvalidEmailFormat": "Formato de email inválido",
|
|
103
|
-
"EmailNotMatching": "E-mail não corresponde",
|
|
104
|
-
"PasswordNotMatching": "Senha não corresponde",
|
|
105
|
-
"MustIncludeNumber": "A senha deve incluir um número",
|
|
106
|
-
"MustContainCapital": "A senha deve incluir uma letra maiúscula",
|
|
107
|
-
"MustIncludePunctation": "A senha deve incluir um sinal de pontuação",
|
|
108
|
-
"OnlyNumbers": "Deve conter apenas números",
|
|
109
|
-
"InvalidFieldSize": "O comprimento deve ser exatamente 11 dígitos.",
|
|
110
|
-
"InvalidDocumentNumber": "Apenas caracteres numéricos são permitidos."
|
|
111
|
-
},
|
|
112
|
-
"es-mx": {
|
|
113
|
-
"dateError": "La fecha seleccionada debe ser entre {min} y {max}",
|
|
114
|
-
"dateError2": "La fecha seleccionada no está dentro de un rango válido",
|
|
115
|
-
"numberLengthError": "El número debe ser entre {min} y {max}",
|
|
116
|
-
"lengthError": "La longitud deber ser entre {minLength} y {maxLength}",
|
|
117
|
-
"requiredError": "Este campo es requerido",
|
|
118
|
-
"invalidOriginalPasswordError": "El campo de contraseña inicial no es parte del criterio válido",
|
|
119
|
-
"invalidPassword": "La contraseña no cumple con todos los criterios",
|
|
120
|
-
"PasswordStrength": "La fortaleza de la contraseña",
|
|
121
|
-
"PasswordStrengthWeak": "no es adecuada",
|
|
122
|
-
"PasswordStrengthStrong": "es adecuada",
|
|
123
|
-
"SpecialCharactersNotAllowed": "No debe contener caracteres especiales",
|
|
124
|
-
"InvalidEmailFormat": "Formato inválido de correo",
|
|
125
|
-
"EmailNotMatching": "El correo electrónico no coincide",
|
|
126
|
-
"PasswordNotMatching": "La contraseña no coincide",
|
|
127
|
-
"MustIncludeNumber": "La contraseña debe incluir un número",
|
|
128
|
-
"MustContainCapital": "La contraseña debe incluir una letra mayúscula",
|
|
129
|
-
"MustIncludePunctation": "La contraseña debe incluir un signo de puntuación",
|
|
130
|
-
"OnlyNumbers": "Solo debe contener números",
|
|
131
|
-
"InvalidFieldSize": "La longitud debe ser exactamente de 11 dígitos.",
|
|
132
|
-
"InvalidDocumentNumber": "Solo se permiten caracteres numéricos."
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
const translate = (key, customLang, values) => {
|
|
136
|
-
const lang = customLang;
|
|
137
|
-
let translation = TRANSLATIONS[lang !== undefined ? lang : DEFAULT_LANGUAGE][key];
|
|
138
|
-
if (values !== undefined) {
|
|
139
|
-
for (const [key, value] of Object.entries(values.values)) {
|
|
140
|
-
const regex = new RegExp(`{${key}}`, 'g');
|
|
141
|
-
translation = translation.replace(regex, value);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
return translation;
|
|
145
|
-
};
|
|
146
|
-
const getTranslations = (url) => {
|
|
147
|
-
// fetch url, get the data, replace the TRANSLATIONS content
|
|
148
|
-
return new Promise((resolve) => {
|
|
149
|
-
fetch(url)
|
|
150
|
-
.then((res) => res.json())
|
|
151
|
-
.then((data) => {
|
|
152
|
-
Object.keys(data).forEach((item) => {
|
|
153
|
-
for (let key in data[item]) {
|
|
154
|
-
TRANSLATIONS[item][key] = data[item][key];
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
resolve(true);
|
|
158
|
-
});
|
|
159
|
-
});
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
export { getTranslations as g, translate as t };
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-34f25346.js';
|
|
2
|
-
import { t as translate } from './locale.utils-14c3dac3.js';
|
|
3
|
-
import { t as tooltipIconSvg } from './tooltipIcon-0a5a06a2.js';
|
|
4
|
-
|
|
5
|
-
const toggleCheckboxInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:\"Roboto\";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}";
|
|
6
|
-
const ToggleCheckboxInputStyle0 = toggleCheckboxInputCss;
|
|
7
|
-
|
|
8
|
-
const ToggleCheckboxInput = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
this.sendValidityState = createEvent(this, "sendValidityState", 7);
|
|
12
|
-
this.sendInputValue = createEvent(this, "sendInputValue", 7);
|
|
13
|
-
this.callBackObject = {};
|
|
14
|
-
this.subFieldsObject = {};
|
|
15
|
-
this.value = '';
|
|
16
|
-
this.handleRevealField = (event, fieldName) => {
|
|
17
|
-
event.stopPropagation();
|
|
18
|
-
window.postMessage({ type: `registration${fieldName}Clicked` }, window.location.href);
|
|
19
|
-
};
|
|
20
|
-
this.setClientStyling = () => {
|
|
21
|
-
let sheet = document.createElement('style');
|
|
22
|
-
sheet.innerHTML = this.clientStyling;
|
|
23
|
-
this.stylingContainer.prepend(sheet);
|
|
24
|
-
};
|
|
25
|
-
this.name = undefined;
|
|
26
|
-
this.displayName = undefined;
|
|
27
|
-
this.defaultValue = '';
|
|
28
|
-
this.options = undefined;
|
|
29
|
-
this.autofilled = undefined;
|
|
30
|
-
this.tooltip = undefined;
|
|
31
|
-
this.validation = undefined;
|
|
32
|
-
this.language = undefined;
|
|
33
|
-
this.emitValue = undefined;
|
|
34
|
-
this.clientStyling = '';
|
|
35
|
-
this.errorMessage = undefined;
|
|
36
|
-
this.isValid = undefined;
|
|
37
|
-
this.limitStylingAppends = false;
|
|
38
|
-
this.showTooltip = false;
|
|
39
|
-
this.showFields = this.defaultValue === 'true';
|
|
40
|
-
}
|
|
41
|
-
handleStylingChange(newValue, oldValue) {
|
|
42
|
-
if (newValue !== oldValue)
|
|
43
|
-
this.setClientStyling();
|
|
44
|
-
}
|
|
45
|
-
validityStateHandler(inputStateEvent) {
|
|
46
|
-
this.sendValidityState.emit(inputStateEvent);
|
|
47
|
-
}
|
|
48
|
-
valueHandler(inputValueEvent) {
|
|
49
|
-
this.sendInputValue.emit(inputValueEvent);
|
|
50
|
-
}
|
|
51
|
-
handleClickOutside(event) {
|
|
52
|
-
if (event.composedPath()[0] === this.tooltipIconReference)
|
|
53
|
-
return;
|
|
54
|
-
if (event.composedPath()[0] !== this.tooltipReference)
|
|
55
|
-
this.showTooltip = false;
|
|
56
|
-
}
|
|
57
|
-
componentDidRender() {
|
|
58
|
-
// start custom styling area
|
|
59
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
60
|
-
if (this.clientStyling)
|
|
61
|
-
this.setClientStyling();
|
|
62
|
-
this.limitStylingAppends = true;
|
|
63
|
-
}
|
|
64
|
-
// end custom styling area
|
|
65
|
-
}
|
|
66
|
-
componentDidLoad() {
|
|
67
|
-
if (this.options.length === 0)
|
|
68
|
-
return;
|
|
69
|
-
this.options.forEach((subField) => {
|
|
70
|
-
this.callBackObject[subField.name] = (e) => { this.handleRevealField(e, subField.name); };
|
|
71
|
-
this.subFieldsObject[subField.name].addEventListener('click', this.callBackObject[subField.name]);
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
handleClick() {
|
|
75
|
-
this.showFields = this.checkboxReference.checked;
|
|
76
|
-
this.errorMessage = this.setErrorMessage();
|
|
77
|
-
this.isValid = this.setValidity();
|
|
78
|
-
this.valueHandler({ name: this.name, value: this.checkboxReference.checked ? 'true' : 'false', type: 'toggle' });
|
|
79
|
-
}
|
|
80
|
-
setValidity() {
|
|
81
|
-
return this.checkboxReference.validity.valid;
|
|
82
|
-
}
|
|
83
|
-
setErrorMessage() {
|
|
84
|
-
if (this.checkboxReference.validity.valueMissing) {
|
|
85
|
-
return translate('requiredError', this.language);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
disconnectedCallback() {
|
|
89
|
-
this.options.forEach((subField) => {
|
|
90
|
-
this.subFieldsObject[subField.name].removeEventListener('click', this.callBackObject[subField.name]);
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
renderLabel() {
|
|
94
|
-
return (h("label", { class: 'togglecheckbox__label', htmlFor: `${this.name}__input` }, h("div", { class: 'togglecheckbox__label-text', innerHTML: `${this.displayName} ${this.validation.mandatory ? '*' : ''}` })));
|
|
95
|
-
}
|
|
96
|
-
renderTooltip() {
|
|
97
|
-
if (this.showTooltip) {
|
|
98
|
-
return (h("div", { class: `togglecheckbox__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
99
|
-
}
|
|
100
|
-
return null;
|
|
101
|
-
}
|
|
102
|
-
render() {
|
|
103
|
-
return h("div", { key: '1f359a8390bb4296e94573131009eeff1bd2293c', class: `togglecheckbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: '76033e62f8d111e3071b1a09a6d8f9b909a05244', class: 'togglecheckbox__wrapper--flex' }, h("input", { key: '6d944818346ce6e62117856ff5dfd2278c1ccad4', class: 'togglecheckbox__input', type: "checkbox", id: `${this.name}__input`, ref: (el) => this.checkboxReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel()), h("small", { key: '7e2b7612f6dc179035027b551a6ac9801a1ba3c5', class: 'togglecheckbox__error-message' }, this.errorMessage), h("div", { key: '3a77da5b3544107d49137e6024888f8e774be170', class: 'togglecheckbox__wrapper--relative' }, this.tooltip &&
|
|
104
|
-
h("img", { key: '7edd9a8cce9d66e7f6fb2d61a4513754df62d5df', class: 'togglecheckbox__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), h("div", { key: '49de8d42d4b9f4c5668de6379f015c92098578a6', class: `togglecheckbox__fields-wrapper ${this.showFields ? '' : 'hidden'}` }, this.options.map(subfield => {
|
|
105
|
-
return h("general-input", { type: subfield.inputType, name: subfield.name, displayName: subfield.displayName, validation: subfield.validate, action: subfield.action || null, defaultValue: subfield.defaultValue, autofilled: subfield.autofill, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: subfield.tooltip, placeholder: subfield.placeholder == null ? '' : subfield.placeholder, ref: el => this.subFieldsObject[subfield.name] = el });
|
|
106
|
-
})));
|
|
107
|
-
}
|
|
108
|
-
static get watchers() { return {
|
|
109
|
-
"clientStyling": ["handleStylingChange"]
|
|
110
|
-
}; }
|
|
111
|
-
};
|
|
112
|
-
ToggleCheckboxInput.style = ToggleCheckboxInputStyle0;
|
|
113
|
-
|
|
114
|
-
export { ToggleCheckboxInput as toggle_checkbox_input };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const tooltipIconSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==';
|
|
2
|
-
|
|
3
|
-
export { tooltipIconSvg as t };
|