@everymatrix/general-input 1.32.4 → 1.33.1

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.
Files changed (136) hide show
  1. package/dist/cjs/checkbox-group-input_10.cjs.entry.js +36077 -0
  2. package/dist/cjs/general-input.cjs.entry.js +75 -0
  3. package/dist/cjs/general-input.cjs.js +19 -0
  4. package/dist/cjs/index-132a0774.js +1327 -0
  5. package/dist/cjs/index.cjs.js +18 -0
  6. package/dist/cjs/loader.cjs.js +21 -0
  7. package/dist/cjs/locale.utils-cef1d3b6.js +128 -0
  8. package/dist/cjs/toggle-checkbox-input.cjs.entry.js +85 -0
  9. package/dist/cjs/tooltipIcon-092a795f.js +5 -0
  10. package/dist/collection/collection-manifest.json +23 -0
  11. package/dist/collection/components/checkbox-group-input/checkbox-group-input.css +82 -0
  12. package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +366 -0
  13. package/dist/collection/components/checkbox-input/checkbox-input.css +68 -0
  14. package/dist/collection/components/checkbox-input/checkbox-input.js +324 -0
  15. package/dist/collection/components/date-input/date-input.css +101 -0
  16. package/dist/collection/components/date-input/date-input.js +396 -0
  17. package/dist/collection/components/email-input/email-input.css +95 -0
  18. package/dist/collection/components/email-input/email-input.js +403 -0
  19. package/dist/collection/components/general-input/general-input.css +4 -0
  20. package/dist/collection/components/general-input/general-input.js +373 -0
  21. package/dist/collection/components/number-input/number-input.css +102 -0
  22. package/dist/collection/components/number-input/number-input.js +368 -0
  23. package/dist/collection/components/password-input/password-input.css +182 -0
  24. package/dist/collection/components/password-input/password-input.js +527 -0
  25. package/dist/collection/components/radio-input/radio-input.css +43 -0
  26. package/dist/collection/components/radio-input/radio-input.js +297 -0
  27. package/dist/collection/components/select-input/select-input.css +122 -0
  28. package/dist/collection/components/select-input/select-input.js +429 -0
  29. package/dist/collection/components/tel-input/tel-input.css +145 -0
  30. package/dist/collection/components/tel-input/tel-input.js +440 -0
  31. package/dist/collection/components/text-input/text-input.css +98 -0
  32. package/dist/collection/components/text-input/text-input.js +448 -0
  33. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.css +82 -0
  34. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +324 -0
  35. package/dist/collection/index.js +17 -0
  36. package/dist/collection/utils/locale.utils.js +123 -0
  37. package/dist/collection/utils/tooltipIcon.svg +5 -0
  38. package/dist/collection/utils/types.js +1 -0
  39. package/dist/collection/utils/utils.js +5 -0
  40. package/dist/components/active-mixin.js +975 -0
  41. package/dist/components/checkbox-group-input.d.ts +11 -0
  42. package/dist/components/checkbox-group-input.js +6 -0
  43. package/dist/components/checkbox-group-input2.js +1078 -0
  44. package/dist/components/checkbox-input.d.ts +11 -0
  45. package/dist/components/checkbox-input.js +6 -0
  46. package/dist/components/checkbox-input2.js +129 -0
  47. package/dist/components/date-input.d.ts +11 -0
  48. package/dist/components/date-input.js +6 -0
  49. package/dist/components/date-input2.js +11556 -0
  50. package/dist/components/email-input.d.ts +11 -0
  51. package/dist/components/email-input.js +6 -0
  52. package/dist/components/email-input2.js +171 -0
  53. package/dist/components/field-mixin.js +12426 -0
  54. package/dist/components/general-input.d.ts +11 -0
  55. package/dist/components/general-input.js +6 -0
  56. package/dist/components/general-input2.js +341 -0
  57. package/dist/components/index.d.ts +26 -0
  58. package/dist/components/index.js +18 -0
  59. package/dist/components/input-field-shared-styles.js +1211 -0
  60. package/dist/components/number-input.d.ts +11 -0
  61. package/dist/components/number-input.js +6 -0
  62. package/dist/components/number-input2.js +158 -0
  63. package/dist/components/password-input.d.ts +11 -0
  64. package/dist/components/password-input.js +6 -0
  65. package/dist/components/password-input2.js +1041 -0
  66. package/dist/components/radio-input.d.ts +11 -0
  67. package/dist/components/radio-input.js +6 -0
  68. package/dist/components/radio-input2.js +114 -0
  69. package/dist/components/select-input.d.ts +11 -0
  70. package/dist/components/select-input.js +6 -0
  71. package/dist/components/select-input2.js +183 -0
  72. package/dist/components/tel-input.d.ts +11 -0
  73. package/dist/components/tel-input.js +6 -0
  74. package/dist/components/tel-input2.js +197 -0
  75. package/dist/components/text-input.d.ts +11 -0
  76. package/dist/components/text-input.js +6 -0
  77. package/dist/components/text-input2.js +199 -0
  78. package/dist/components/toggle-checkbox-input.d.ts +11 -0
  79. package/dist/components/toggle-checkbox-input.js +6 -0
  80. package/dist/components/tooltipIcon.js +127 -0
  81. package/dist/components/vaadin-button.js +490 -0
  82. package/dist/components/vaadin-combo-box.js +4512 -0
  83. package/dist/components/virtual-keyboard-controller.js +2001 -0
  84. package/dist/esm/checkbox-group-input_10.entry.js +36064 -0
  85. package/dist/esm/general-input.entry.js +71 -0
  86. package/dist/esm/general-input.js +17 -0
  87. package/dist/esm/index-db76d5b5.js +1299 -0
  88. package/dist/esm/index.js +16 -0
  89. package/dist/esm/loader.js +17 -0
  90. package/dist/esm/locale.utils-de759721.js +125 -0
  91. package/dist/esm/polyfills/core-js.js +11 -0
  92. package/dist/esm/polyfills/css-shim.js +1 -0
  93. package/dist/esm/polyfills/dom.js +79 -0
  94. package/dist/esm/polyfills/es5-html-element.js +1 -0
  95. package/dist/esm/polyfills/index.js +34 -0
  96. package/dist/esm/polyfills/system.js +6 -0
  97. package/dist/esm/toggle-checkbox-input.entry.js +81 -0
  98. package/dist/esm/tooltipIcon-99c1c7b7.js +3 -0
  99. package/dist/general-input/general-input.esm.js +1 -0
  100. package/dist/general-input/index.esm.js +1 -0
  101. package/dist/general-input/p-10efdf3f.js +1 -0
  102. package/dist/general-input/p-613c3e00.entry.js +1 -0
  103. package/dist/general-input/p-660bcdd1.entry.js +1 -0
  104. package/dist/general-input/p-9b6b0396.entry.js +3646 -0
  105. package/dist/general-input/p-b408093e.js +1 -0
  106. package/dist/general-input/p-f4f4ccda.js +1 -0
  107. package/dist/index.cjs.js +1 -0
  108. package/dist/index.js +1 -0
  109. package/dist/stencil.config.js +22 -0
  110. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/general-input/.stencil/packages/general-input/stencil.config.d.ts +2 -0
  111. package/dist/types/components/checkbox-group-input/checkbox-group-input.d.ts +74 -0
  112. package/dist/types/components/checkbox-input/checkbox-input.d.ts +65 -0
  113. package/dist/types/components/date-input/date-input.d.ts +84 -0
  114. package/dist/types/components/email-input/email-input.d.ts +80 -0
  115. package/dist/types/components/general-input/general-input.d.ts +75 -0
  116. package/dist/types/components/number-input/number-input.d.ts +74 -0
  117. package/dist/types/components/password-input/password-input.d.ts +91 -0
  118. package/dist/types/components/radio-input/radio-input.d.ts +59 -0
  119. package/dist/types/components/select-input/select-input.d.ts +83 -0
  120. package/dist/types/components/tel-input/tel-input.d.ts +89 -0
  121. package/dist/types/components/text-input/text-input.d.ts +84 -0
  122. package/dist/types/components/toggle-checkbox-input/toggle-checkbox-input.d.ts +67 -0
  123. package/dist/types/components.d.ts +1268 -0
  124. package/dist/types/index.d.ts +1 -0
  125. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  126. package/dist/types/utils/locale.utils.d.ts +17 -0
  127. package/dist/types/utils/types.d.ts +87 -0
  128. package/dist/types/utils/utils.d.ts +1 -0
  129. package/loader/cdn.js +3 -0
  130. package/loader/index.cjs.js +3 -0
  131. package/loader/index.d.ts +12 -0
  132. package/loader/index.es2017.js +3 -0
  133. package/loader/index.js +4 -0
  134. package/loader/package.json +10 -0
  135. package/package.json +2 -3
  136. package/LICENSE +0 -21
@@ -0,0 +1,429 @@
1
+ import { Component, h, Prop, State, Watch, Event, Element, Listen } from '@stencil/core';
2
+ import { translate } from '../../utils/locale.utils';
3
+ import '@vaadin/combo-box';
4
+ import tooltipIcon from '../../utils/tooltipIcon.svg';
5
+ export class SelectInput {
6
+ constructor() {
7
+ /**
8
+ * Default value for the input.
9
+ */
10
+ this.defaultValue = '';
11
+ /**
12
+ * Options of the input.
13
+ */
14
+ this.options = [];
15
+ /**
16
+ * Client custom styling via inline style
17
+ */
18
+ this.clientStyling = '';
19
+ this.limitStylingAppends = false;
20
+ this.showTooltip = false;
21
+ this.touched = false;
22
+ this.handleChange = (event) => {
23
+ this.touched = true;
24
+ const selectedValue = event.target.value;
25
+ // Find the original option based on case-insensitive comparison
26
+ const originalOption = this.options.find(option => option.value.toLowerCase() === selectedValue.toLowerCase());
27
+ if (originalOption) {
28
+ this.value = originalOption.value;
29
+ }
30
+ else {
31
+ this.value = selectedValue;
32
+ }
33
+ this.isValid = this.setValidity();
34
+ this.errorMessage = this.setErrorMessage();
35
+ this.emitValueHandler(true);
36
+ };
37
+ this.setClientStyling = () => {
38
+ let sheet = document.createElement('style');
39
+ sheet.innerHTML = this.clientStyling;
40
+ this.stylingContainer.prepend(sheet);
41
+ };
42
+ }
43
+ validityChanged() {
44
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
45
+ if (this.emitValue == true) {
46
+ this.valueHandler({ name: this.name, value: this.value });
47
+ }
48
+ }
49
+ validityStateHandler(inputStateEvent) {
50
+ this.sendValidityState.emit(inputStateEvent);
51
+ }
52
+ emitValueHandler(newValue) {
53
+ if (newValue == true && this.isValid) {
54
+ this.valueHandler({ name: this.name, value: this.value });
55
+ }
56
+ }
57
+ valueHandler(inputValueEvent) {
58
+ this.sendInputValue.emit(inputValueEvent);
59
+ }
60
+ handleClickOutside(event) {
61
+ if (event.composedPath()[0] === this.tooltipIconReference)
62
+ return;
63
+ if (event.composedPath()[0] !== this.tooltipReference)
64
+ this.showTooltip = false;
65
+ }
66
+ connectedCallback() {
67
+ this.displayedOptions = this.options.map(option => ({
68
+ label: option.label,
69
+ value: option.value.toUpperCase()
70
+ }));
71
+ }
72
+ componentWillLoad() {
73
+ if (this.action && !this.options.length) {
74
+ if (this.action.split(" ")[0] == 'GET') {
75
+ const endpoint = this.action.split(" ")[1];
76
+ return this.getOptions(endpoint).then((options) => {
77
+ const firstKey = Object.keys(options)[0];
78
+ this.displayedOptions = options[firstKey].map(option => {
79
+ return { label: option.Name, value: option.Alpha2Code };
80
+ });
81
+ });
82
+ }
83
+ }
84
+ }
85
+ componentDidRender() {
86
+ // start custom styling area
87
+ if (!this.limitStylingAppends && this.stylingContainer) {
88
+ if (this.clientStyling)
89
+ this.setClientStyling();
90
+ this.limitStylingAppends = true;
91
+ }
92
+ // end custom styling area
93
+ }
94
+ componentDidLoad() {
95
+ this.inputReference = this.element.shadowRoot.querySelector('input');
96
+ this.isValid = this.setValidity();
97
+ if (this.defaultValue) {
98
+ this.value = this.defaultValue.toUpperCase();
99
+ this.valueHandler({ name: this.name, value: this.value });
100
+ }
101
+ }
102
+ getOptions(endpoint) {
103
+ const url = new URL(endpoint);
104
+ return new Promise((resolve, reject) => {
105
+ fetch(url.href)
106
+ .then((res) => res.json())
107
+ .then((options) => {
108
+ resolve(options);
109
+ }).catch((err) => {
110
+ console.error(err);
111
+ reject(err);
112
+ });
113
+ });
114
+ }
115
+ setValidity() {
116
+ return this.inputReference.validity.valid;
117
+ }
118
+ setErrorMessage() {
119
+ if (this.inputReference.validity.valueMissing) {
120
+ return translate('requiredError', this.language);
121
+ }
122
+ }
123
+ renderTooltip() {
124
+ if (this.showTooltip) {
125
+ return (h("div", { class: `select__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
126
+ }
127
+ return null;
128
+ }
129
+ render() {
130
+ let invalidClass = '';
131
+ if (this.touched) {
132
+ invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
133
+ }
134
+ return h("div", { class: `select__wrapper ${this.autofilled ? 'select__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el },
135
+ h("div", { class: 'select__wrapper--flex' },
136
+ h("label", { class: 'select__label', htmlFor: `${this.name}__input` }, `${this.displayName} ${this.validation.mandatory ? '*' : ''}`),
137
+ h("div", { class: 'select__wrapper--relative' },
138
+ this.tooltip &&
139
+ h("img", { class: 'select__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }),
140
+ this.renderTooltip())),
141
+ h("vaadin-combo-box", { name: this.name, id: `${this.name}__input`, class: `select__input ${invalidClass} ${this.autofilled ? 'select__input--autofilled' : ''}`, "item-label-path": "label", "item-value-path": "value", readOnly: this.autofilled, required: this.validation.mandatory, value: this.defaultValue, placeholder: `${this.placeholder}`, items: this.displayedOptions, onChange: this.handleChange }),
142
+ h("small", { class: 'select__error-message' }, this.errorMessage));
143
+ }
144
+ static get is() { return "select-input"; }
145
+ static get encapsulation() { return "shadow"; }
146
+ static get originalStyleUrls() { return {
147
+ "$": ["select-input.scss"]
148
+ }; }
149
+ static get styleUrls() { return {
150
+ "$": ["select-input.css"]
151
+ }; }
152
+ static get properties() { return {
153
+ "name": {
154
+ "type": "string",
155
+ "mutable": false,
156
+ "complexType": {
157
+ "original": "string",
158
+ "resolved": "string",
159
+ "references": {}
160
+ },
161
+ "required": false,
162
+ "optional": false,
163
+ "docs": {
164
+ "tags": [],
165
+ "text": "Name of the input."
166
+ },
167
+ "attribute": "name",
168
+ "reflect": true
169
+ },
170
+ "displayName": {
171
+ "type": "string",
172
+ "mutable": false,
173
+ "complexType": {
174
+ "original": "string",
175
+ "resolved": "string",
176
+ "references": {}
177
+ },
178
+ "required": false,
179
+ "optional": false,
180
+ "docs": {
181
+ "tags": [],
182
+ "text": "Name of input to be shown to the user."
183
+ },
184
+ "attribute": "display-name",
185
+ "reflect": true
186
+ },
187
+ "placeholder": {
188
+ "type": "string",
189
+ "mutable": false,
190
+ "complexType": {
191
+ "original": "string",
192
+ "resolved": "string",
193
+ "references": {}
194
+ },
195
+ "required": false,
196
+ "optional": false,
197
+ "docs": {
198
+ "tags": [],
199
+ "text": "Placeholder text to be shown."
200
+ },
201
+ "attribute": "placeholder",
202
+ "reflect": true
203
+ },
204
+ "action": {
205
+ "type": "string",
206
+ "mutable": false,
207
+ "complexType": {
208
+ "original": "string",
209
+ "resolved": "string",
210
+ "references": {}
211
+ },
212
+ "required": false,
213
+ "optional": false,
214
+ "docs": {
215
+ "tags": [],
216
+ "text": "Special behaviour an input should have. Can be fetching for data."
217
+ },
218
+ "attribute": "action",
219
+ "reflect": true
220
+ },
221
+ "defaultValue": {
222
+ "type": "string",
223
+ "mutable": false,
224
+ "complexType": {
225
+ "original": "string",
226
+ "resolved": "string",
227
+ "references": {}
228
+ },
229
+ "required": false,
230
+ "optional": false,
231
+ "docs": {
232
+ "tags": [],
233
+ "text": "Default value for the input."
234
+ },
235
+ "attribute": "default-value",
236
+ "reflect": true,
237
+ "defaultValue": "''"
238
+ },
239
+ "autofilled": {
240
+ "type": "boolean",
241
+ "mutable": false,
242
+ "complexType": {
243
+ "original": "boolean",
244
+ "resolved": "boolean",
245
+ "references": {}
246
+ },
247
+ "required": false,
248
+ "optional": false,
249
+ "docs": {
250
+ "tags": [],
251
+ "text": "Boolean. Determines if input should be readonly."
252
+ },
253
+ "attribute": "autofilled",
254
+ "reflect": true
255
+ },
256
+ "tooltip": {
257
+ "type": "string",
258
+ "mutable": false,
259
+ "complexType": {
260
+ "original": "string",
261
+ "resolved": "string",
262
+ "references": {}
263
+ },
264
+ "required": false,
265
+ "optional": false,
266
+ "docs": {
267
+ "tags": [],
268
+ "text": "Tooltip text."
269
+ },
270
+ "attribute": "tooltip",
271
+ "reflect": true
272
+ },
273
+ "options": {
274
+ "type": "unknown",
275
+ "mutable": false,
276
+ "complexType": {
277
+ "original": "Option[]",
278
+ "resolved": "Option[]",
279
+ "references": {
280
+ "Option": {
281
+ "location": "import",
282
+ "path": "../../utils/types"
283
+ }
284
+ }
285
+ },
286
+ "required": false,
287
+ "optional": false,
288
+ "docs": {
289
+ "tags": [],
290
+ "text": "Options of the input."
291
+ },
292
+ "defaultValue": "[]"
293
+ },
294
+ "validation": {
295
+ "type": "unknown",
296
+ "mutable": false,
297
+ "complexType": {
298
+ "original": "ValidationSchema",
299
+ "resolved": "ValidationSchema",
300
+ "references": {
301
+ "ValidationSchema": {
302
+ "location": "import",
303
+ "path": "../../utils/types"
304
+ }
305
+ }
306
+ },
307
+ "required": false,
308
+ "optional": false,
309
+ "docs": {
310
+ "tags": [],
311
+ "text": "Object of validation rules for the input."
312
+ }
313
+ },
314
+ "language": {
315
+ "type": "string",
316
+ "mutable": false,
317
+ "complexType": {
318
+ "original": "string",
319
+ "resolved": "string",
320
+ "references": {}
321
+ },
322
+ "required": false,
323
+ "optional": false,
324
+ "docs": {
325
+ "tags": [],
326
+ "text": "Currently selected language."
327
+ },
328
+ "attribute": "language",
329
+ "reflect": true
330
+ },
331
+ "emitValue": {
332
+ "type": "boolean",
333
+ "mutable": false,
334
+ "complexType": {
335
+ "original": "boolean",
336
+ "resolved": "boolean",
337
+ "references": {}
338
+ },
339
+ "required": false,
340
+ "optional": false,
341
+ "docs": {
342
+ "tags": [],
343
+ "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
344
+ },
345
+ "attribute": "emit-value",
346
+ "reflect": true
347
+ },
348
+ "clientStyling": {
349
+ "type": "string",
350
+ "mutable": false,
351
+ "complexType": {
352
+ "original": "string",
353
+ "resolved": "string",
354
+ "references": {}
355
+ },
356
+ "required": false,
357
+ "optional": false,
358
+ "docs": {
359
+ "tags": [],
360
+ "text": "Client custom styling via inline style"
361
+ },
362
+ "attribute": "client-styling",
363
+ "reflect": true,
364
+ "defaultValue": "''"
365
+ }
366
+ }; }
367
+ static get states() { return {
368
+ "errorMessage": {},
369
+ "isValid": {},
370
+ "limitStylingAppends": {},
371
+ "showTooltip": {}
372
+ }; }
373
+ static get events() { return [{
374
+ "method": "sendValidityState",
375
+ "name": "sendValidityState",
376
+ "bubbles": true,
377
+ "cancelable": true,
378
+ "composed": true,
379
+ "docs": {
380
+ "tags": [],
381
+ "text": ""
382
+ },
383
+ "complexType": {
384
+ "original": "InputStateEvent",
385
+ "resolved": "InputStateEvent",
386
+ "references": {
387
+ "InputStateEvent": {
388
+ "location": "import",
389
+ "path": "../../utils/types"
390
+ }
391
+ }
392
+ }
393
+ }, {
394
+ "method": "sendInputValue",
395
+ "name": "sendInputValue",
396
+ "bubbles": true,
397
+ "cancelable": true,
398
+ "composed": true,
399
+ "docs": {
400
+ "tags": [],
401
+ "text": ""
402
+ },
403
+ "complexType": {
404
+ "original": "InputValueEvent",
405
+ "resolved": "InputValueEvent",
406
+ "references": {
407
+ "InputValueEvent": {
408
+ "location": "import",
409
+ "path": "../../utils/types"
410
+ }
411
+ }
412
+ }
413
+ }]; }
414
+ static get elementRef() { return "element"; }
415
+ static get watchers() { return [{
416
+ "propName": "isValid",
417
+ "methodName": "validityChanged"
418
+ }, {
419
+ "propName": "emitValue",
420
+ "methodName": "emitValueHandler"
421
+ }]; }
422
+ static get listeners() { return [{
423
+ "name": "click",
424
+ "method": "handleClickOutside",
425
+ "target": "document",
426
+ "capture": false,
427
+ "passive": false
428
+ }]; }
429
+ }
@@ -0,0 +1,145 @@
1
+ *,
2
+ *::before,
3
+ *::after {
4
+ padding: 0;
5
+ margin: 0;
6
+ box-sizing: border-box;
7
+ }
8
+
9
+ .tel {
10
+ font-family: "Roboto";
11
+ font-style: normal;
12
+ }
13
+ .tel__wrapper {
14
+ position: relative;
15
+ width: 100%;
16
+ display: flex;
17
+ flex-direction: column;
18
+ gap: 5px;
19
+ }
20
+ .tel__wrapper--autofilled {
21
+ pointer-events: none;
22
+ }
23
+ .tel__wrapper--autofilled .tel__label {
24
+ color: var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));
25
+ }
26
+ .tel__wrapper--autofilled .tel__input::part(input-field) {
27
+ color: var(--emfe-w-color-black, #000000);
28
+ }
29
+ .tel__wrapper--flex {
30
+ width: inherit;
31
+ display: flex;
32
+ align-items: center;
33
+ border-radius: 4px;
34
+ border: 1px solid var(--emfe-w-color-gray-100, #E6E6E6);
35
+ background-color: var(--emfe-w-color-white, #FFFFFF);
36
+ overflow: hidden;
37
+ }
38
+ .tel__wrapper--flex:focus-within {
39
+ border-color: var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));
40
+ }
41
+ .tel__wrapper--flex--invalid {
42
+ border: 1px solid var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));
43
+ }
44
+ .tel__wrapper--flex-label {
45
+ display: flex;
46
+ gap: 5px;
47
+ }
48
+ .tel__wrapper--flex--relative {
49
+ position: relative;
50
+ }
51
+ .tel__label {
52
+ font-family: inherit;
53
+ font-style: normal;
54
+ font-weight: 500;
55
+ font-size: 16px;
56
+ line-height: 20px;
57
+ color: var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));
58
+ }
59
+ .tel__label--required::after {
60
+ content: "*";
61
+ font-family: inherit;
62
+ color: var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));
63
+ margin-left: 2px;
64
+ }
65
+ .tel__prefix {
66
+ --vaadin-field-default-width: 90px;
67
+ }
68
+ .tel__prefix[focus] {
69
+ outline: none;
70
+ }
71
+ .tel__prefix::part(input-field) {
72
+ border-radius: 0 5px 5px 0;
73
+ background-color: var(--emfe-w-color-white, #FFFFFF);
74
+ color: var(--emfe-w-color-black, #000000);
75
+ font-family: inherit;
76
+ font-style: normal;
77
+ font-weight: 300;
78
+ font-size: 16px;
79
+ line-height: 1.5;
80
+ border: none;
81
+ border-right: 2px solid #DDE0EE;
82
+ border-image-source: linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, #dde0ee 25%, #dde0ee 75%, rgba(221, 224, 238, 0) 75%);
83
+ border-image-slice: 1;
84
+ border-image-repeat: round;
85
+ }
86
+ .tel__prefix::part(input-field):hover {
87
+ background-color: var(--emfe-w-color-white, #FFFFFF);
88
+ }
89
+ .tel__prefix::part(toggle-button) {
90
+ color: var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));
91
+ }
92
+ .tel__input {
93
+ font-family: inherit;
94
+ border-radius: 5px;
95
+ width: 100%;
96
+ color: var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));
97
+ background-color: var(--emfe-w-color-white, #FFFFFF);
98
+ border: none;
99
+ width: inherit;
100
+ position: relative;
101
+ font-size: 16px;
102
+ font-weight: 300;
103
+ line-height: 1.5;
104
+ padding: 5px 15px;
105
+ height: 42px;
106
+ /* Firefox */
107
+ -moz-appearance: textfield;
108
+ /* Chrome, Safari, Edge, Opera */
109
+ }
110
+ .tel__input:focus {
111
+ outline: none;
112
+ }
113
+ .tel__input::-webkit-outer-spin-button, .tel__input::-webkit-inner-spin-button {
114
+ -webkit-appearance: none;
115
+ margin: 0;
116
+ }
117
+ .tel__input::placeholder {
118
+ color: var(--emfe-w-color-gray-150, #979797);
119
+ }
120
+ .tel__error-message {
121
+ position: absolute;
122
+ top: calc(100% + 5px);
123
+ left: 0;
124
+ color: var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));
125
+ }
126
+ .tel__tooltip-icon {
127
+ width: 16px;
128
+ height: auto;
129
+ }
130
+ .tel__tooltip {
131
+ position: absolute;
132
+ top: 0;
133
+ left: 20px;
134
+ background-color: var(--emfe-w-color-white, #FFFFFF);
135
+ border: 1px solid var(--emfe-w-color-gray-100, #E6E6E6);
136
+ color: var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));
137
+ padding: 10px;
138
+ border-radius: 5px;
139
+ opacity: 0;
140
+ transition: opacity 0.3s ease-in-out;
141
+ z-index: 10;
142
+ }
143
+ .tel__tooltip.visible {
144
+ opacity: 1;
145
+ }