@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,489 @@
1
+ import { h } from "@stencil/core";
2
+ import { translate } from "../../utils/locale.utils";
3
+ import tooltipIcon from "../../utils/tooltipIcon.svg";
4
+ export class TextInput {
5
+ constructor() {
6
+ this.value = '';
7
+ this.validationPattern = '';
8
+ this.duplicateInputValue = null;
9
+ this.touched = false;
10
+ this.handleInput = (event) => {
11
+ this.value = event.target.value;
12
+ this.touched = true;
13
+ if (this.debounceTime) {
14
+ clearTimeout(this.debounceTime);
15
+ }
16
+ this.debounceTime = setTimeout(() => {
17
+ this.isValid = this.setValidity();
18
+ this.errorMessage = this.setErrorMessage();
19
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
20
+ this.emitValueHandler(true);
21
+ }, 500);
22
+ };
23
+ this.handleBlur = (event) => {
24
+ this.value = event.target.value;
25
+ this.touched = true;
26
+ this.isValid = this.setValidity();
27
+ this.errorMessage = this.setErrorMessage();
28
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
29
+ };
30
+ this.setClientStyling = () => {
31
+ let sheet = document.createElement('style');
32
+ sheet.innerHTML = this.clientStyling;
33
+ this.stylingContainer.prepend(sheet);
34
+ };
35
+ this.name = undefined;
36
+ this.displayName = undefined;
37
+ this.placeholder = undefined;
38
+ this.validation = undefined;
39
+ this.defaultValue = '';
40
+ this.autofilled = undefined;
41
+ this.tooltip = undefined;
42
+ this.language = undefined;
43
+ this.checkValidity = undefined;
44
+ this.emitValue = undefined;
45
+ this.isDuplicateInput = undefined;
46
+ this.clientStyling = '';
47
+ this.isValid = undefined;
48
+ this.errorMessage = '';
49
+ this.limitStylingAppends = false;
50
+ this.showTooltip = false;
51
+ }
52
+ handleStylingChange(newValue, oldValue) {
53
+ if (newValue !== oldValue)
54
+ this.setClientStyling();
55
+ }
56
+ validityChanged() {
57
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
58
+ if (this.emitValue == true) {
59
+ this.valueHandler({ name: this.name, value: this.value });
60
+ }
61
+ }
62
+ emitValueHandler(newValue) {
63
+ if (newValue == true && this.isValid) {
64
+ this.valueHandler({ name: this.name, value: this.value });
65
+ }
66
+ }
67
+ validityStateHandler(inputStateEvent) {
68
+ this.sendValidityState.emit(inputStateEvent);
69
+ }
70
+ valueHandler(inputValueEvent) {
71
+ this.sendInputValue.emit(inputValueEvent);
72
+ }
73
+ handleClickOutside(event) {
74
+ if (event.composedPath()[0] === this.tooltipIconReference)
75
+ return;
76
+ if (event.composedPath()[0] !== this.tooltipReference)
77
+ this.showTooltip = false;
78
+ }
79
+ valueChangedHandler(event) {
80
+ if (this.isDuplicateInput && this.name === event.detail.name + 'Duplicate') {
81
+ this.duplicateInputValue = event.detail.value;
82
+ if (this.touched) {
83
+ this.isValid = this.setValidity();
84
+ this.errorMessage = this.setErrorMessage();
85
+ }
86
+ }
87
+ if (this.name === event.detail.name + 'Duplicate'
88
+ && this.name.replace('Duplicate', '') === event.detail.name
89
+ && this.touched === true) {
90
+ this.isValid = this.setValidity();
91
+ this.errorMessage = this.setErrorMessage();
92
+ }
93
+ }
94
+ handleValidationChange(event) {
95
+ if (event.detail.field !== this.name) {
96
+ return;
97
+ }
98
+ this.validation = event.detail.validation;
99
+ this.validationPattern = this.setPattern();
100
+ if (this.touched) {
101
+ this.isValid = this.setValidity();
102
+ this.errorMessage = this.setErrorMessage();
103
+ }
104
+ }
105
+ connectedCallback() {
106
+ this.validationPattern = this.setPattern();
107
+ }
108
+ componentDidRender() {
109
+ // start custom styling area
110
+ if (!this.limitStylingAppends && this.stylingContainer) {
111
+ if (this.clientStyling)
112
+ this.setClientStyling();
113
+ this.limitStylingAppends = true;
114
+ }
115
+ // end custom styling area
116
+ }
117
+ componentDidLoad() {
118
+ if (this.defaultValue) {
119
+ this.value = this.defaultValue;
120
+ this.valueHandler({ name: this.name, value: this.value });
121
+ if (this.isDuplicateInput) {
122
+ this.touched = true;
123
+ }
124
+ }
125
+ this.isValid = this.setValidity();
126
+ }
127
+ setValidity() {
128
+ if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
129
+ return false;
130
+ }
131
+ if (!this.inputReference) {
132
+ return false;
133
+ }
134
+ const inputIsValid = this.inputReference.validity.valid;
135
+ const inputMatchValidation = !this.inputReference.value || this.inputReference.value.match(this.validationPattern) !== null;
136
+ return inputIsValid && inputMatchValidation;
137
+ }
138
+ setPattern() {
139
+ var _a, _b;
140
+ if (((_a = this.validation.custom) === null || _a === void 0 ? void 0 : _a.length) > 0) {
141
+ return (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.pattern;
142
+ }
143
+ }
144
+ setErrorMessage() {
145
+ var _a, _b, _c, _d;
146
+ if (this.inputReference.validity.valueMissing) {
147
+ return translate('requiredError', this.language);
148
+ }
149
+ if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
150
+ return translate('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
151
+ }
152
+ if (this.inputReference.value.match(this.validationPattern) == null) {
153
+ const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
154
+ const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
155
+ return translate(`${errorCode}`, this.language) || errorMessage;
156
+ }
157
+ if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
158
+ const errorCode = (_c = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _c === void 0 ? void 0 : _c.errorKey;
159
+ const errorMessage = (_d = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _d === void 0 ? void 0 : _d.errorMessage;
160
+ return translate(`${errorCode}`, this.language) ? translate(`${errorCode}`, this.language) : errorMessage;
161
+ }
162
+ }
163
+ renderTooltip() {
164
+ if (this.showTooltip) {
165
+ return (h("div", { class: `text__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
166
+ }
167
+ return null;
168
+ }
169
+ render() {
170
+ let invalidClass = '';
171
+ if (this.touched) {
172
+ invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
173
+ }
174
+ return h("div", { key: '0d37459ea98b3c49dcb7598f34e5cf04ce565914', class: `text__wrapper ${this.name}__input ${this.autofilled ? 'text__wrapper--autofilled' : ''}`, ref: el => this.stylingContainer = el }, h("div", { key: 'b1eee66ffc52b811a32a502d4f7e5269f13eb9a9', class: 'text__wrapper--flex' }, h("label", { key: 'b57e64243fb2f21069537568790c0c3512a51aa0', class: `text__label ${this.validation.mandatory ? 'text__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h("div", { key: 'bb2904cf98b55975d8559dea2f8005009048981d', class: 'text__wrapper--relative' }, this.tooltip &&
175
+ h("img", { key: '386477132f6d99597ec6bb1ba4d11fe4a5aeddbd', class: 'text__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h("input", { key: '6435275fcf5d6a888c74913845987de681ef9a42', name: this.name, id: `${this.name}__input`, value: this.defaultValue, type: 'text', class: `text__input ${invalidClass}`, placeholder: `${this.placeholder}`, ref: (el) => this.inputReference = el, readOnly: this.autofilled, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onInput: this.handleInput, onBlur: this.handleBlur }), h("small", { key: '7a641909f39f6f2d1b3e5f2d6abfc3b258376516', class: 'text__error-message' }, this.errorMessage));
176
+ }
177
+ static get is() { return "text-input"; }
178
+ static get encapsulation() { return "shadow"; }
179
+ static get originalStyleUrls() {
180
+ return {
181
+ "$": ["text-input.scss"]
182
+ };
183
+ }
184
+ static get styleUrls() {
185
+ return {
186
+ "$": ["text-input.css"]
187
+ };
188
+ }
189
+ static get properties() {
190
+ return {
191
+ "name": {
192
+ "type": "string",
193
+ "mutable": false,
194
+ "complexType": {
195
+ "original": "string",
196
+ "resolved": "string",
197
+ "references": {}
198
+ },
199
+ "required": false,
200
+ "optional": false,
201
+ "docs": {
202
+ "tags": [],
203
+ "text": "Name of the input."
204
+ },
205
+ "attribute": "name",
206
+ "reflect": true
207
+ },
208
+ "displayName": {
209
+ "type": "string",
210
+ "mutable": false,
211
+ "complexType": {
212
+ "original": "string",
213
+ "resolved": "string",
214
+ "references": {}
215
+ },
216
+ "required": false,
217
+ "optional": false,
218
+ "docs": {
219
+ "tags": [],
220
+ "text": "Name of input to be shown to the user."
221
+ },
222
+ "attribute": "display-name",
223
+ "reflect": true
224
+ },
225
+ "placeholder": {
226
+ "type": "string",
227
+ "mutable": false,
228
+ "complexType": {
229
+ "original": "string",
230
+ "resolved": "string",
231
+ "references": {}
232
+ },
233
+ "required": false,
234
+ "optional": false,
235
+ "docs": {
236
+ "tags": [],
237
+ "text": "Placeholder text to be shown."
238
+ },
239
+ "attribute": "placeholder",
240
+ "reflect": true
241
+ },
242
+ "validation": {
243
+ "type": "unknown",
244
+ "mutable": false,
245
+ "complexType": {
246
+ "original": "ValidationSchema",
247
+ "resolved": "ValidationSchema",
248
+ "references": {
249
+ "ValidationSchema": {
250
+ "location": "import",
251
+ "path": "../../utils/types",
252
+ "id": "../../../../packages/stencil/general-input-hsl/src/utils/types.ts::ValidationSchema"
253
+ }
254
+ }
255
+ },
256
+ "required": false,
257
+ "optional": false,
258
+ "docs": {
259
+ "tags": [],
260
+ "text": "Object of validation rules for the input."
261
+ }
262
+ },
263
+ "defaultValue": {
264
+ "type": "string",
265
+ "mutable": false,
266
+ "complexType": {
267
+ "original": "string",
268
+ "resolved": "string",
269
+ "references": {}
270
+ },
271
+ "required": false,
272
+ "optional": false,
273
+ "docs": {
274
+ "tags": [],
275
+ "text": "Default value for the input."
276
+ },
277
+ "attribute": "default-value",
278
+ "reflect": true,
279
+ "defaultValue": "''"
280
+ },
281
+ "autofilled": {
282
+ "type": "boolean",
283
+ "mutable": false,
284
+ "complexType": {
285
+ "original": "boolean",
286
+ "resolved": "boolean",
287
+ "references": {}
288
+ },
289
+ "required": false,
290
+ "optional": false,
291
+ "docs": {
292
+ "tags": [],
293
+ "text": "Boolean. Determines if input should be readonly."
294
+ },
295
+ "attribute": "autofilled",
296
+ "reflect": true
297
+ },
298
+ "tooltip": {
299
+ "type": "string",
300
+ "mutable": false,
301
+ "complexType": {
302
+ "original": "string",
303
+ "resolved": "string",
304
+ "references": {}
305
+ },
306
+ "required": false,
307
+ "optional": false,
308
+ "docs": {
309
+ "tags": [],
310
+ "text": "Tooltip text."
311
+ },
312
+ "attribute": "tooltip",
313
+ "reflect": true
314
+ },
315
+ "language": {
316
+ "type": "string",
317
+ "mutable": false,
318
+ "complexType": {
319
+ "original": "string",
320
+ "resolved": "string",
321
+ "references": {}
322
+ },
323
+ "required": false,
324
+ "optional": false,
325
+ "docs": {
326
+ "tags": [],
327
+ "text": "Currently selected language."
328
+ },
329
+ "attribute": "language",
330
+ "reflect": true
331
+ },
332
+ "checkValidity": {
333
+ "type": "boolean",
334
+ "mutable": false,
335
+ "complexType": {
336
+ "original": "boolean",
337
+ "resolved": "boolean",
338
+ "references": {}
339
+ },
340
+ "required": false,
341
+ "optional": false,
342
+ "docs": {
343
+ "tags": [],
344
+ "text": "State passed down from the parent element. Will trigger the input to check for validity."
345
+ },
346
+ "attribute": "check-validity",
347
+ "reflect": true
348
+ },
349
+ "emitValue": {
350
+ "type": "boolean",
351
+ "mutable": false,
352
+ "complexType": {
353
+ "original": "boolean",
354
+ "resolved": "boolean",
355
+ "references": {}
356
+ },
357
+ "required": false,
358
+ "optional": false,
359
+ "docs": {
360
+ "tags": [],
361
+ "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
362
+ },
363
+ "attribute": "emit-value",
364
+ "reflect": true
365
+ },
366
+ "isDuplicateInput": {
367
+ "type": "boolean",
368
+ "mutable": false,
369
+ "complexType": {
370
+ "original": "boolean",
371
+ "resolved": "boolean",
372
+ "references": {}
373
+ },
374
+ "required": false,
375
+ "optional": false,
376
+ "docs": {
377
+ "tags": [],
378
+ "text": "Boolean that triggers certain validation rules, for duplicated inputs."
379
+ },
380
+ "attribute": "is-duplicate-input",
381
+ "reflect": true
382
+ },
383
+ "clientStyling": {
384
+ "type": "string",
385
+ "mutable": false,
386
+ "complexType": {
387
+ "original": "string",
388
+ "resolved": "string",
389
+ "references": {}
390
+ },
391
+ "required": false,
392
+ "optional": false,
393
+ "docs": {
394
+ "tags": [],
395
+ "text": "Client custom styling via inline style"
396
+ },
397
+ "attribute": "client-styling",
398
+ "reflect": true,
399
+ "defaultValue": "''"
400
+ }
401
+ };
402
+ }
403
+ static get states() {
404
+ return {
405
+ "isValid": {},
406
+ "errorMessage": {},
407
+ "limitStylingAppends": {},
408
+ "showTooltip": {}
409
+ };
410
+ }
411
+ static get events() {
412
+ return [{
413
+ "method": "sendValidityState",
414
+ "name": "sendValidityState",
415
+ "bubbles": true,
416
+ "cancelable": true,
417
+ "composed": true,
418
+ "docs": {
419
+ "tags": [],
420
+ "text": ""
421
+ },
422
+ "complexType": {
423
+ "original": "InputStateEvent",
424
+ "resolved": "InputStateEvent",
425
+ "references": {
426
+ "InputStateEvent": {
427
+ "location": "import",
428
+ "path": "../../utils/types",
429
+ "id": "../../../../packages/stencil/general-input-hsl/src/utils/types.ts::InputStateEvent"
430
+ }
431
+ }
432
+ }
433
+ }, {
434
+ "method": "sendInputValue",
435
+ "name": "sendInputValue",
436
+ "bubbles": true,
437
+ "cancelable": true,
438
+ "composed": true,
439
+ "docs": {
440
+ "tags": [],
441
+ "text": ""
442
+ },
443
+ "complexType": {
444
+ "original": "InputValueEvent",
445
+ "resolved": "InputValueEvent",
446
+ "references": {
447
+ "InputValueEvent": {
448
+ "location": "import",
449
+ "path": "../../utils/types",
450
+ "id": "../../../../packages/stencil/general-input-hsl/src/utils/types.ts::InputValueEvent"
451
+ }
452
+ }
453
+ }
454
+ }];
455
+ }
456
+ static get watchers() {
457
+ return [{
458
+ "propName": "clientStyling",
459
+ "methodName": "handleStylingChange"
460
+ }, {
461
+ "propName": "isValid",
462
+ "methodName": "validityChanged"
463
+ }, {
464
+ "propName": "emitValue",
465
+ "methodName": "emitValueHandler"
466
+ }];
467
+ }
468
+ static get listeners() {
469
+ return [{
470
+ "name": "click",
471
+ "method": "handleClickOutside",
472
+ "target": "document",
473
+ "capture": false,
474
+ "passive": false
475
+ }, {
476
+ "name": "sendInputValue",
477
+ "method": "valueChangedHandler",
478
+ "target": "body",
479
+ "capture": false,
480
+ "passive": false
481
+ }, {
482
+ "name": "validationChange",
483
+ "method": "handleValidationChange",
484
+ "target": "body",
485
+ "capture": false,
486
+ "passive": false
487
+ }];
488
+ }
489
+ }
@@ -0,0 +1,82 @@
1
+ *,
2
+ *::before,
3
+ *::after {
4
+ padding: 0;
5
+ margin: 0;
6
+ box-sizing: border-box;
7
+ }
8
+
9
+ .togglecheckbox {
10
+ font-family: "Roboto";
11
+ font-style: normal;
12
+ font-size: 15px;
13
+ }
14
+ .togglecheckbox__wrapper {
15
+ position: relative;
16
+ }
17
+ .togglecheckbox__wrapper--flex {
18
+ display: flex;
19
+ gap: 10px;
20
+ align-items: baseline;
21
+ }
22
+ .togglecheckbox__wrapper--relative {
23
+ position: relative;
24
+ display: inline;
25
+ }
26
+ .togglecheckbox__input {
27
+ transform: scale(1.307, 1.307);
28
+ margin-left: 2px;
29
+ accent-color: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));
30
+ }
31
+ .togglecheckbox__label {
32
+ font-style: inherit;
33
+ font-family: inherit;
34
+ font-weight: 400;
35
+ font-size: 16px;
36
+ color: var(--emw--registration-typography, var(--emw--color-black, #000000));
37
+ line-height: 1.5;
38
+ cursor: pointer;
39
+ padding: 0;
40
+ }
41
+ .togglecheckbox__label-text {
42
+ font-size: 16px;
43
+ }
44
+ .togglecheckbox__label a {
45
+ color: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));
46
+ }
47
+ .togglecheckbox__error-message {
48
+ position: absolute;
49
+ top: calc(100% + 5px);
50
+ left: 0;
51
+ color: var(--emw--color-error, var(--emw--color-red, #ed0909));
52
+ }
53
+ .togglecheckbox__tooltip-icon {
54
+ width: 16px;
55
+ height: auto;
56
+ }
57
+ .togglecheckbox__tooltip {
58
+ position: absolute;
59
+ top: 0;
60
+ right: 0;
61
+ background-color: var(--emw--color-white, #FFFFFF);
62
+ border: 1px solid var(--emw--color-gray-100, #E6E6E6);
63
+ color: var(--emw--registration-typography, var(--emw--color-black, #000000));
64
+ padding: 10px;
65
+ border-radius: 5px;
66
+ opacity: 0;
67
+ transition: opacity 0.3s ease-in-out;
68
+ z-index: 10;
69
+ }
70
+ .togglecheckbox__tooltip.visible {
71
+ opacity: 1;
72
+ }
73
+ .togglecheckbox__fields-wrapper {
74
+ margin-top: 40px;
75
+ display: flex;
76
+ flex-direction: column;
77
+ gap: 40px;
78
+ }
79
+
80
+ .hidden {
81
+ display: none;
82
+ }