@everymatrix/general-input-hsl 0.0.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 (95) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/checkbox-group-input_13.cjs.entry.js +7303 -0
  3. package/dist/cjs/general-input-hsl-2832e412.js +5800 -0
  4. package/dist/cjs/general-input-hsl.cjs.js +25 -0
  5. package/dist/cjs/index-6f821b8d.js +1299 -0
  6. package/dist/cjs/index.cjs.js +10 -0
  7. package/dist/cjs/loader.cjs.js +15 -0
  8. package/dist/collection/collection-manifest.json +24 -0
  9. package/dist/collection/components/checkbox-group-input/checkbox-group-input.css +89 -0
  10. package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +390 -0
  11. package/dist/collection/components/checkbox-input/checkbox-input.css +78 -0
  12. package/dist/collection/components/checkbox-input/checkbox-input.js +344 -0
  13. package/dist/collection/components/date-input/date-input.css +101 -0
  14. package/dist/collection/components/date-input/date-input.js +466 -0
  15. package/dist/collection/components/email-input/email-input.css +95 -0
  16. package/dist/collection/components/email-input/email-input.js +429 -0
  17. package/dist/collection/components/general-input-hsl/general-input-hsl.css +4 -0
  18. package/dist/collection/components/general-input-hsl/general-input-hsl.js +438 -0
  19. package/dist/collection/components/general-input-hsl/index.js +1 -0
  20. package/dist/collection/components/number-input/number-input.css +102 -0
  21. package/dist/collection/components/number-input/number-input.js +393 -0
  22. package/dist/collection/components/password-input/password-input.css +193 -0
  23. package/dist/collection/components/password-input/password-input.js +573 -0
  24. package/dist/collection/components/radio-input/radio-input.css +43 -0
  25. package/dist/collection/components/radio-input/radio-input.js +319 -0
  26. package/dist/collection/components/select-input/select-input.css +121 -0
  27. package/dist/collection/components/select-input/select-input.js +488 -0
  28. package/dist/collection/components/tel-input/tel-input.css +145 -0
  29. package/dist/collection/components/tel-input/tel-input.js +468 -0
  30. package/dist/collection/components/text-input/text-input.css +97 -0
  31. package/dist/collection/components/text-input/text-input.js +489 -0
  32. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.css +82 -0
  33. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +366 -0
  34. package/dist/collection/components/twofa-input/twofa-input.css +56 -0
  35. package/dist/collection/components/twofa-input/twofa-input.js +495 -0
  36. package/dist/collection/index.js +1 -0
  37. package/dist/collection/utils/locale.utils.js +81 -0
  38. package/dist/collection/utils/tooltipIcon.svg +5 -0
  39. package/dist/collection/utils/types.js +1 -0
  40. package/dist/collection/utils/utils.js +3 -0
  41. package/dist/esm/app-globals-0f993ce5.js +3 -0
  42. package/dist/esm/checkbox-group-input_13.entry.js +7288 -0
  43. package/dist/esm/general-input-hsl-31f19ad0.js +5797 -0
  44. package/dist/esm/general-input-hsl.js +20 -0
  45. package/dist/esm/index-8598bfb7.js +1270 -0
  46. package/dist/esm/index.js +2 -0
  47. package/dist/esm/loader.js +11 -0
  48. package/dist/general-input-hsl/app-globals-0f993ce5.js +1 -0
  49. package/dist/general-input-hsl/checkbox-group-input_13.entry.js +1 -0
  50. package/dist/general-input-hsl/general-input-hsl-31f19ad0.js +5614 -0
  51. package/dist/general-input-hsl/general-input-hsl.esm.js +1 -0
  52. package/dist/general-input-hsl/index-8598bfb7.js +2 -0
  53. package/dist/general-input-hsl/index.esm.js +1 -0
  54. package/dist/index.cjs.js +1 -0
  55. package/dist/index.js +1 -0
  56. package/dist/stencil.config.dev.js +19 -0
  57. package/dist/stencil.config.js +19 -0
  58. package/dist/storybook/main.js +43 -0
  59. package/dist/storybook/preview.js +9 -0
  60. package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  61. package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/packages/stencil/general-input-hsl/stencil.config.d.ts +2 -0
  62. package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/packages/stencil/general-input-hsl/stencil.config.dev.d.ts +2 -0
  63. package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/packages/stencil/general-input-hsl/storybook/main.d.ts +3 -0
  64. package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/packages/stencil/general-input-hsl/storybook/preview.d.ts +70 -0
  65. package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/tools/plugins/index.d.ts +3 -0
  66. package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  67. package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  68. package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  69. package/dist/types/components/checkbox-group-input/checkbox-group-input.d.ts +74 -0
  70. package/dist/types/components/checkbox-input/checkbox-input.d.ts +67 -0
  71. package/dist/types/components/date-input/date-input.d.ts +89 -0
  72. package/dist/types/components/email-input/email-input.d.ts +81 -0
  73. package/dist/types/components/general-input-hsl/general-input-hsl.d.ts +84 -0
  74. package/dist/types/components/general-input-hsl/index.d.ts +1 -0
  75. package/dist/types/components/number-input/number-input.d.ts +75 -0
  76. package/dist/types/components/password-input/password-input.d.ts +97 -0
  77. package/dist/types/components/radio-input/radio-input.d.ts +60 -0
  78. package/dist/types/components/select-input/select-input.d.ts +85 -0
  79. package/dist/types/components/tel-input/tel-input.d.ts +89 -0
  80. package/dist/types/components/text-input/text-input.d.ts +86 -0
  81. package/dist/types/components/toggle-checkbox-input/toggle-checkbox-input.d.ts +73 -0
  82. package/dist/types/components/twofa-input/twofa-input.d.ts +84 -0
  83. package/dist/types/components.d.ts +1599 -0
  84. package/dist/types/index.d.ts +1 -0
  85. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  86. package/dist/types/utils/locale.utils.d.ts +13 -0
  87. package/dist/types/utils/types.d.ts +111 -0
  88. package/dist/types/utils/utils.d.ts +1 -0
  89. package/loader/cdn.js +1 -0
  90. package/loader/index.cjs.js +1 -0
  91. package/loader/index.d.ts +24 -0
  92. package/loader/index.es2017.js +1 -0
  93. package/loader/index.js +2 -0
  94. package/loader/package.json +11 -0
  95. package/package.json +27 -0
@@ -0,0 +1,468 @@
1
+ import { h } from "@stencil/core";
2
+ import { translate } from "../../utils/locale.utils";
3
+ import tooltipIcon from "../../utils/tooltipIcon.svg";
4
+ export class TelInput {
5
+ constructor() {
6
+ this.validationPattern = '';
7
+ this.touched = false;
8
+ this.handleInput = (event) => {
9
+ this.phoneValue = event.target.value;
10
+ this.value = { prefix: this.prefixValue, phone: this.phoneValue };
11
+ this.touched = true;
12
+ if (this.debounceTime) {
13
+ clearTimeout(this.debounceTime);
14
+ }
15
+ this.debounceTime = setTimeout(() => {
16
+ this.isValid = this.setValidity();
17
+ this.errorMessage = this.setErrorMessage();
18
+ this.emitValueHandler(true);
19
+ }, 500);
20
+ };
21
+ this.handleBlur = () => {
22
+ if (!this.touched) {
23
+ this.isValid = this.setValidity();
24
+ this.errorMessage = this.setErrorMessage();
25
+ this.touched = true;
26
+ }
27
+ };
28
+ this.setClientStyling = () => {
29
+ let sheet = document.createElement('style');
30
+ sheet.innerHTML = this.clientStyling;
31
+ this.stylingContainer.prepend(sheet);
32
+ };
33
+ this.name = undefined;
34
+ this.displayName = undefined;
35
+ this.placeholder = undefined;
36
+ this.showLabels = undefined;
37
+ this.action = undefined;
38
+ this.validation = undefined;
39
+ this.defaultValue = undefined;
40
+ this.autofilled = undefined;
41
+ this.tooltip = undefined;
42
+ this.language = undefined;
43
+ this.emitValue = undefined;
44
+ this.clientStyling = '';
45
+ this.isValid = undefined;
46
+ this.errorMessage = undefined;
47
+ this.limitStylingAppends = false;
48
+ this.showTooltip = false;
49
+ }
50
+ handleStylingChange(newValue, oldValue) {
51
+ if (newValue !== oldValue)
52
+ this.setClientStyling();
53
+ }
54
+ validityChanged() {
55
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
56
+ if (this.emitValue == true) {
57
+ this.valueHandler({ name: this.name, value: this.value, type: 'tel' });
58
+ }
59
+ }
60
+ validityStateHandler(inputStateEvent) {
61
+ this.sendValidityState.emit(inputStateEvent);
62
+ }
63
+ emitValueHandler(newValue) {
64
+ if (newValue == true && this.isValid) {
65
+ this.valueHandler({ name: this.name, value: this.value, type: 'tel' });
66
+ }
67
+ }
68
+ valueHandler(inputValueEvent) {
69
+ this.sendInputValue.emit(inputValueEvent);
70
+ }
71
+ handleClickOutside(event) {
72
+ if (event.composedPath()[0] === this.tooltipIconReference)
73
+ return;
74
+ if (event.composedPath()[0] !== this.tooltipReference)
75
+ this.showTooltip = false;
76
+ }
77
+ connectedCallback() {
78
+ this.validationPattern = this.setPattern();
79
+ if (this.defaultValue) {
80
+ this.prefixValue = this.defaultValue.prefix ? this.defaultValue.prefix : this.defaultValue;
81
+ this.phoneValue = this.defaultValue.phone || null;
82
+ }
83
+ }
84
+ componentWillLoad() {
85
+ if (this.action) {
86
+ if (this.action.split(" ")[0] == 'GET') {
87
+ const endpoint = this.action.split(" ")[1];
88
+ return this.getPhoneCodes(endpoint).then((options) => {
89
+ this.phoneCodesOptions = options.phoneCodes.map((code) => {
90
+ return typeof code === "object" && code.Prefix
91
+ ? { label: code.Prefix, value: code.Prefix }
92
+ : { label: code, value: code };
93
+ });
94
+ });
95
+ }
96
+ }
97
+ }
98
+ componentDidRender() {
99
+ // start custom styling area
100
+ if (!this.limitStylingAppends && this.stylingContainer) {
101
+ if (this.clientStyling)
102
+ this.setClientStyling();
103
+ this.limitStylingAppends = true;
104
+ }
105
+ // end custom styling area
106
+ }
107
+ componentDidLoad() {
108
+ this.isValid = this.setValidity();
109
+ if (this.defaultValue) {
110
+ this.value = this.defaultValue;
111
+ this.valueHandler({ name: this.name, value: this.value, type: 'tel' });
112
+ }
113
+ }
114
+ getPhoneCodes(endpoint) {
115
+ const url = new URL(endpoint);
116
+ return new Promise((resolve, reject) => {
117
+ fetch(url.href)
118
+ .then((res) => res.json())
119
+ .then((options) => {
120
+ resolve(options);
121
+ }).catch((err) => {
122
+ console.error(err);
123
+ reject(err);
124
+ });
125
+ });
126
+ }
127
+ handlePrefixInput(event) {
128
+ this.prefixValue = event.target.value;
129
+ this.value = { prefix: this.prefixValue, phone: this.phoneValue };
130
+ this.emitValueHandler(true);
131
+ }
132
+ setValidity() {
133
+ return this.inputReference.validity.valid;
134
+ }
135
+ setPattern() {
136
+ var _a, _b;
137
+ if (((_a = this.validation.custom) === null || _a === void 0 ? void 0 : _a.length) > 0) {
138
+ return (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.pattern;
139
+ }
140
+ }
141
+ setErrorMessage() {
142
+ var _a, _b;
143
+ if (this.inputReference.validity.patternMismatch) {
144
+ const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
145
+ const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
146
+ return translate(`${errorCode}`, this.language) ? translate(`${errorCode}`, this.language) : errorMessage;
147
+ }
148
+ if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
149
+ return translate('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
150
+ }
151
+ if (this.inputReference.validity.valueMissing) {
152
+ return translate('requiredError', this.language);
153
+ }
154
+ }
155
+ renderTooltip() {
156
+ if (this.showTooltip) {
157
+ return (h("div", { class: `tel__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
158
+ }
159
+ return null;
160
+ }
161
+ render() {
162
+ let invalidClass = '';
163
+ if (this.touched) {
164
+ invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
165
+ }
166
+ return h("div", { key: 'fece9774b581e9586fae8994292a4be33c2bc6fc', class: `tel__wrapper ${this.autofilled ? 'tel__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: '743411eb89c9080c75a8abee4b31b00f9870d596', class: 'tel__wrapper--flex-label' }, h("label", { key: '21126acf6975c055011e86bb4b0b19aafab80b8e', class: `tel__label ${this.validation.mandatory ? 'tel__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h("div", { key: 'a785fc9b57e25bbff801162127575406529a823b', class: 'tel__wrapper--relative' }, this.tooltip &&
167
+ h("img", { key: 'b0fd864bedd2a72749468b4ae2746e481c84bbf9', class: 'tel__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h("div", { key: '4dc98e17c959c5710b8e649d8e7f54ce439bc32b', class: `tel__wrapper--flex ${invalidClass}` }, h("vaadin-combo-box", { key: '759eed6000b6a8eac09b644db1bc5d0bf75f5791', class: 'tel__prefix', items: this.phoneCodesOptions, value: this.prefixValue, readOnly: this.autofilled, onChange: (e) => this.handlePrefixInput(e) }), h("input", { key: '38baf10b9daf84d65ef021c77ab6e7db7583e417', type: "tel", ref: (el) => this.inputReference = el, id: `${this.name}__input`, readOnly: this.autofilled, class: `tel__input`, value: this.phoneValue, placeholder: `${this.placeholder}`, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, pattern: this.validationPattern, onInput: this.handleInput, onBlur: this.handleBlur })), h("small", { key: '2277869cd1be3a49b6c79718c288fea0786180e8', class: 'tel__error-message' }, this.errorMessage));
168
+ }
169
+ static get is() { return "tel-input"; }
170
+ static get encapsulation() { return "shadow"; }
171
+ static get originalStyleUrls() {
172
+ return {
173
+ "$": ["tel-input.scss"]
174
+ };
175
+ }
176
+ static get styleUrls() {
177
+ return {
178
+ "$": ["tel-input.css"]
179
+ };
180
+ }
181
+ static get properties() {
182
+ return {
183
+ "name": {
184
+ "type": "string",
185
+ "mutable": false,
186
+ "complexType": {
187
+ "original": "string",
188
+ "resolved": "string",
189
+ "references": {}
190
+ },
191
+ "required": false,
192
+ "optional": false,
193
+ "docs": {
194
+ "tags": [],
195
+ "text": "Name of the input."
196
+ },
197
+ "attribute": "name",
198
+ "reflect": true
199
+ },
200
+ "displayName": {
201
+ "type": "string",
202
+ "mutable": false,
203
+ "complexType": {
204
+ "original": "string",
205
+ "resolved": "string",
206
+ "references": {}
207
+ },
208
+ "required": false,
209
+ "optional": false,
210
+ "docs": {
211
+ "tags": [],
212
+ "text": "Name of input to be shown to the user."
213
+ },
214
+ "attribute": "display-name",
215
+ "reflect": true
216
+ },
217
+ "placeholder": {
218
+ "type": "string",
219
+ "mutable": false,
220
+ "complexType": {
221
+ "original": "string",
222
+ "resolved": "string",
223
+ "references": {}
224
+ },
225
+ "required": false,
226
+ "optional": false,
227
+ "docs": {
228
+ "tags": [],
229
+ "text": "Placeholder text to be shown."
230
+ },
231
+ "attribute": "placeholder",
232
+ "reflect": true
233
+ },
234
+ "showLabels": {
235
+ "type": "boolean",
236
+ "mutable": false,
237
+ "complexType": {
238
+ "original": "boolean",
239
+ "resolved": "boolean",
240
+ "references": {}
241
+ },
242
+ "required": false,
243
+ "optional": false,
244
+ "docs": {
245
+ "tags": [],
246
+ "text": "Boolean that defines if the widget show labels or placeholders."
247
+ },
248
+ "attribute": "show-labels",
249
+ "reflect": true
250
+ },
251
+ "action": {
252
+ "type": "string",
253
+ "mutable": false,
254
+ "complexType": {
255
+ "original": "string",
256
+ "resolved": "string",
257
+ "references": {}
258
+ },
259
+ "required": false,
260
+ "optional": false,
261
+ "docs": {
262
+ "tags": [],
263
+ "text": "Special behaviour an input should have. Can be fetching for data."
264
+ },
265
+ "attribute": "action",
266
+ "reflect": true
267
+ },
268
+ "validation": {
269
+ "type": "unknown",
270
+ "mutable": false,
271
+ "complexType": {
272
+ "original": "ValidationSchema",
273
+ "resolved": "ValidationSchema",
274
+ "references": {
275
+ "ValidationSchema": {
276
+ "location": "import",
277
+ "path": "../../utils/types",
278
+ "id": "../../../../packages/stencil/general-input-hsl/src/utils/types.ts::ValidationSchema"
279
+ }
280
+ }
281
+ },
282
+ "required": false,
283
+ "optional": false,
284
+ "docs": {
285
+ "tags": [],
286
+ "text": "Object of validation rules for the input."
287
+ }
288
+ },
289
+ "defaultValue": {
290
+ "type": "any",
291
+ "mutable": false,
292
+ "complexType": {
293
+ "original": "string | any",
294
+ "resolved": "any",
295
+ "references": {}
296
+ },
297
+ "required": false,
298
+ "optional": false,
299
+ "docs": {
300
+ "tags": [],
301
+ "text": "Default value for the input."
302
+ },
303
+ "attribute": "default-value",
304
+ "reflect": true
305
+ },
306
+ "autofilled": {
307
+ "type": "boolean",
308
+ "mutable": false,
309
+ "complexType": {
310
+ "original": "boolean",
311
+ "resolved": "boolean",
312
+ "references": {}
313
+ },
314
+ "required": false,
315
+ "optional": false,
316
+ "docs": {
317
+ "tags": [],
318
+ "text": "Boolean. Determines if input should be readonly."
319
+ },
320
+ "attribute": "autofilled",
321
+ "reflect": true
322
+ },
323
+ "tooltip": {
324
+ "type": "string",
325
+ "mutable": false,
326
+ "complexType": {
327
+ "original": "string",
328
+ "resolved": "string",
329
+ "references": {}
330
+ },
331
+ "required": false,
332
+ "optional": false,
333
+ "docs": {
334
+ "tags": [],
335
+ "text": "Tooltip text."
336
+ },
337
+ "attribute": "tooltip",
338
+ "reflect": true
339
+ },
340
+ "language": {
341
+ "type": "string",
342
+ "mutable": false,
343
+ "complexType": {
344
+ "original": "string",
345
+ "resolved": "string",
346
+ "references": {}
347
+ },
348
+ "required": false,
349
+ "optional": false,
350
+ "docs": {
351
+ "tags": [],
352
+ "text": "Currently selected language."
353
+ },
354
+ "attribute": "language",
355
+ "reflect": true
356
+ },
357
+ "emitValue": {
358
+ "type": "boolean",
359
+ "mutable": false,
360
+ "complexType": {
361
+ "original": "boolean",
362
+ "resolved": "boolean",
363
+ "references": {}
364
+ },
365
+ "required": false,
366
+ "optional": false,
367
+ "docs": {
368
+ "tags": [],
369
+ "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
370
+ },
371
+ "attribute": "emit-value",
372
+ "reflect": true
373
+ },
374
+ "clientStyling": {
375
+ "type": "string",
376
+ "mutable": false,
377
+ "complexType": {
378
+ "original": "string",
379
+ "resolved": "string",
380
+ "references": {}
381
+ },
382
+ "required": false,
383
+ "optional": false,
384
+ "docs": {
385
+ "tags": [],
386
+ "text": "Client custom styling via inline style"
387
+ },
388
+ "attribute": "client-styling",
389
+ "reflect": true,
390
+ "defaultValue": "''"
391
+ }
392
+ };
393
+ }
394
+ static get states() {
395
+ return {
396
+ "isValid": {},
397
+ "errorMessage": {},
398
+ "limitStylingAppends": {},
399
+ "showTooltip": {}
400
+ };
401
+ }
402
+ static get events() {
403
+ return [{
404
+ "method": "sendValidityState",
405
+ "name": "sendValidityState",
406
+ "bubbles": true,
407
+ "cancelable": true,
408
+ "composed": true,
409
+ "docs": {
410
+ "tags": [],
411
+ "text": ""
412
+ },
413
+ "complexType": {
414
+ "original": "InputStateEvent",
415
+ "resolved": "InputStateEvent",
416
+ "references": {
417
+ "InputStateEvent": {
418
+ "location": "import",
419
+ "path": "../../utils/types",
420
+ "id": "../../../../packages/stencil/general-input-hsl/src/utils/types.ts::InputStateEvent"
421
+ }
422
+ }
423
+ }
424
+ }, {
425
+ "method": "sendInputValue",
426
+ "name": "sendInputValue",
427
+ "bubbles": true,
428
+ "cancelable": true,
429
+ "composed": true,
430
+ "docs": {
431
+ "tags": [],
432
+ "text": ""
433
+ },
434
+ "complexType": {
435
+ "original": "InputValueEvent",
436
+ "resolved": "InputValueEvent",
437
+ "references": {
438
+ "InputValueEvent": {
439
+ "location": "import",
440
+ "path": "../../utils/types",
441
+ "id": "../../../../packages/stencil/general-input-hsl/src/utils/types.ts::InputValueEvent"
442
+ }
443
+ }
444
+ }
445
+ }];
446
+ }
447
+ static get watchers() {
448
+ return [{
449
+ "propName": "clientStyling",
450
+ "methodName": "handleStylingChange"
451
+ }, {
452
+ "propName": "isValid",
453
+ "methodName": "validityChanged"
454
+ }, {
455
+ "propName": "emitValue",
456
+ "methodName": "emitValueHandler"
457
+ }];
458
+ }
459
+ static get listeners() {
460
+ return [{
461
+ "name": "click",
462
+ "method": "handleClickOutside",
463
+ "target": "document",
464
+ "capture": false,
465
+ "passive": false
466
+ }];
467
+ }
468
+ }
@@ -0,0 +1,97 @@
1
+ *,
2
+ *::before,
3
+ *::after {
4
+ padding: 0;
5
+ margin: 0;
6
+ box-sizing: border-box;
7
+ }
8
+
9
+ .text {
10
+ font-family: "Roboto";
11
+ font-style: normal;
12
+ }
13
+ .text__wrapper {
14
+ position: relative;
15
+ width: 100%;
16
+ display: flex;
17
+ flex-direction: column;
18
+ gap: 5px;
19
+ }
20
+ .text__wrapper--autofilled {
21
+ pointer-events: none;
22
+ }
23
+ .text__wrapper--autofilled .text__label {
24
+ color: var(--emw--registration-typography, var(--emw--color-black, #000000));
25
+ }
26
+ .text__wrapper--autofilled .text__input::part(input-field) {
27
+ color: var(--emw--color-black, #000000);
28
+ }
29
+ .text__wrapper--flex {
30
+ display: flex;
31
+ gap: 5px;
32
+ }
33
+ .text__wrapper--relative {
34
+ position: relative;
35
+ }
36
+ .text__label {
37
+ font-family: inherit;
38
+ font-style: normal;
39
+ font-weight: 500;
40
+ font-size: 16px;
41
+ line-height: 20px;
42
+ color: var(--emw--registration-typography, var(--emw--color-black, #000000));
43
+ }
44
+ .text__label--required::after {
45
+ content: "*";
46
+ font-family: inherit;
47
+ color: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));
48
+ margin-left: 2px;
49
+ }
50
+ .text__input {
51
+ font-family: inherit;
52
+ width: 100%;
53
+ height: 44px;
54
+ border: 1px solid var(--emw--color-gray-100, #E6E6E6);
55
+ background-color: var(--emw--color-white, #FFFFFF);
56
+ color: var(--emw--color-black, #000000);
57
+ border-radius: 5px;
58
+ font-size: 16px;
59
+ font-weight: 300;
60
+ line-height: 1.5;
61
+ padding: 5px 15px;
62
+ }
63
+ .text__input:focus {
64
+ border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));
65
+ }
66
+ .text__input--invalid {
67
+ border: 1px solid var(--emw--color-error, var(--emw--color-red, #ed0909));
68
+ }
69
+ .text__input::placeholder {
70
+ color: var(--emw--color-gray-150, #828282);
71
+ }
72
+ .text__error-message {
73
+ position: absolute;
74
+ top: calc(100% + 5px);
75
+ left: 0;
76
+ color: var(--emw--color-error, var(--emw--color-red, #ed0909));
77
+ }
78
+ .text__tooltip-icon {
79
+ width: 16px;
80
+ height: auto;
81
+ }
82
+ .text__tooltip {
83
+ position: absolute;
84
+ top: 0;
85
+ left: 20px;
86
+ background-color: var(--emw--color-white, #FFFFFF);
87
+ border: 1px solid var(--emw--color-gray-100, #E6E6E6);
88
+ color: var(--emw--registration-typography, var(--emw--color-black, #000000));
89
+ padding: 10px;
90
+ border-radius: 5px;
91
+ opacity: 0;
92
+ transition: opacity 0.3s ease-in-out;
93
+ z-index: 10;
94
+ }
95
+ .text__tooltip.visible {
96
+ opacity: 1;
97
+ }