@everymatrix/general-input 1.43.4 → 1.45.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.
Files changed (138) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/checkbox-group-input_10.cjs.entry.js +3873 -1756
  3. package/dist/cjs/general-input.cjs.entry.js +65 -62
  4. package/dist/cjs/general-input.cjs.js +17 -11
  5. package/dist/cjs/index-8cb018cb.js +1316 -0
  6. package/dist/cjs/index.cjs.js +13 -13
  7. package/dist/cjs/loader.cjs.js +7 -13
  8. package/dist/cjs/locale.utils-fdc29445.js +147 -0
  9. package/dist/cjs/toggle-checkbox-input.cjs.entry.js +77 -74
  10. package/dist/collection/collection-manifest.json +14 -14
  11. package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +368 -353
  12. package/dist/collection/components/checkbox-input/checkbox-input.js +325 -315
  13. package/dist/collection/components/date-input/date-input.css +2 -2
  14. package/dist/collection/components/date-input/date-input.js +397 -376
  15. package/dist/collection/components/email-input/email-input.css +7 -11
  16. package/dist/collection/components/email-input/email-input.js +404 -385
  17. package/dist/collection/components/general-input/general-input.js +373 -367
  18. package/dist/collection/components/general-input/index.js +1 -0
  19. package/dist/collection/components/number-input/number-input.js +370 -352
  20. package/dist/collection/components/password-input/password-input.css +2 -4
  21. package/dist/collection/components/password-input/password-input.js +513 -540
  22. package/dist/collection/components/radio-input/radio-input.js +301 -286
  23. package/dist/collection/components/select-input/select-input.css +8 -9
  24. package/dist/collection/components/select-input/select-input.js +427 -414
  25. package/dist/collection/components/tel-input/tel-input.css +1 -1
  26. package/dist/collection/components/tel-input/tel-input.js +440 -422
  27. package/dist/collection/components/text-input/text-input.css +0 -1
  28. package/dist/collection/components/text-input/text-input.js +444 -429
  29. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +327 -318
  30. package/dist/collection/index.js +13 -13
  31. package/dist/collection/utils/locale.utils.js +133 -133
  32. package/dist/collection/utils/utils.js +3 -3
  33. package/dist/esm/app-globals-0f993ce5.js +3 -0
  34. package/dist/esm/checkbox-group-input_10.entry.js +3873 -1756
  35. package/dist/esm/general-input.entry.js +65 -62
  36. package/dist/esm/general-input.js +14 -11
  37. package/dist/esm/index-514fda47.js +1287 -0
  38. package/dist/esm/index.js +13 -13
  39. package/dist/esm/loader.js +7 -13
  40. package/dist/esm/locale.utils-75b7d185.js +144 -0
  41. package/dist/esm/toggle-checkbox-input.entry.js +77 -74
  42. package/dist/general-input/general-input.esm.js +1 -1
  43. package/dist/general-input/p-03e81c11.js +2 -0
  44. package/dist/general-input/p-122566dd.entry.js +5430 -0
  45. package/dist/general-input/p-1913dcb0.entry.js +1 -0
  46. package/dist/general-input/p-e1255160.js +1 -0
  47. package/dist/general-input/p-e7df9c4a.entry.js +1 -0
  48. package/dist/stencil.config.dev.js +17 -0
  49. package/dist/stencil.config.js +14 -19
  50. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.d.ts +2 -0
  51. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.dev.d.ts +2 -0
  52. package/dist/types/components/checkbox-group-input/checkbox-group-input.d.ts +68 -68
  53. package/dist/types/components/checkbox-input/checkbox-input.d.ts +61 -62
  54. package/dist/types/components/date-input/date-input.d.ts +78 -78
  55. package/dist/types/components/email-input/email-input.d.ts +77 -77
  56. package/dist/types/components/general-input/general-input.d.ts +72 -72
  57. package/dist/types/components/general-input/index.d.ts +1 -0
  58. package/dist/types/components/number-input/number-input.d.ts +71 -71
  59. package/dist/types/components/password-input/password-input.d.ts +87 -92
  60. package/dist/types/components/radio-input/radio-input.d.ts +55 -55
  61. package/dist/types/components/select-input/select-input.d.ts +79 -79
  62. package/dist/types/components/tel-input/tel-input.d.ts +85 -85
  63. package/dist/types/components/text-input/text-input.d.ts +81 -81
  64. package/dist/types/components/toggle-checkbox-input/toggle-checkbox-input.d.ts +63 -64
  65. package/dist/types/components.d.ts +201 -31
  66. package/dist/types/stencil-public-runtime.d.ts +142 -33
  67. package/dist/types/utils/locale.utils.d.ts +8 -8
  68. package/dist/types/utils/types.d.ts +54 -54
  69. package/loader/cdn.js +1 -3
  70. package/loader/index.cjs.js +1 -3
  71. package/loader/index.d.ts +13 -1
  72. package/loader/index.es2017.js +1 -3
  73. package/loader/index.js +1 -3
  74. package/loader/package.json +1 -0
  75. package/package.json +8 -1
  76. package/dist/cjs/index-132a0774.js +0 -1327
  77. package/dist/cjs/locale.utils-2fa6f747.js +0 -147
  78. package/dist/components/active-mixin.js +0 -975
  79. package/dist/components/checkbox-group-input.d.ts +0 -11
  80. package/dist/components/checkbox-group-input.js +0 -6
  81. package/dist/components/checkbox-group-input2.js +0 -1078
  82. package/dist/components/checkbox-input.d.ts +0 -11
  83. package/dist/components/checkbox-input.js +0 -6
  84. package/dist/components/checkbox-input2.js +0 -132
  85. package/dist/components/date-input.d.ts +0 -11
  86. package/dist/components/date-input.js +0 -6
  87. package/dist/components/date-input2.js +0 -11556
  88. package/dist/components/email-input.d.ts +0 -11
  89. package/dist/components/email-input.js +0 -6
  90. package/dist/components/email-input2.js +0 -171
  91. package/dist/components/field-mixin.js +0 -12426
  92. package/dist/components/general-input.d.ts +0 -11
  93. package/dist/components/general-input.js +0 -6
  94. package/dist/components/general-input2.js +0 -344
  95. package/dist/components/index.d.ts +0 -26
  96. package/dist/components/index.js +0 -18
  97. package/dist/components/input-field-shared-styles.js +0 -1211
  98. package/dist/components/number-input.d.ts +0 -11
  99. package/dist/components/number-input.js +0 -6
  100. package/dist/components/number-input2.js +0 -158
  101. package/dist/components/password-input.d.ts +0 -11
  102. package/dist/components/password-input.js +0 -6
  103. package/dist/components/password-input2.js +0 -1059
  104. package/dist/components/radio-input.d.ts +0 -11
  105. package/dist/components/radio-input.js +0 -6
  106. package/dist/components/radio-input2.js +0 -114
  107. package/dist/components/select-input.d.ts +0 -11
  108. package/dist/components/select-input.js +0 -6
  109. package/dist/components/select-input2.js +0 -183
  110. package/dist/components/tel-input.d.ts +0 -11
  111. package/dist/components/tel-input.js +0 -6
  112. package/dist/components/tel-input2.js +0 -197
  113. package/dist/components/text-input.d.ts +0 -11
  114. package/dist/components/text-input.js +0 -6
  115. package/dist/components/text-input2.js +0 -199
  116. package/dist/components/toggle-checkbox-input.d.ts +0 -11
  117. package/dist/components/toggle-checkbox-input.js +0 -6
  118. package/dist/components/tooltipIcon.js +0 -146
  119. package/dist/components/vaadin-button.js +0 -490
  120. package/dist/components/vaadin-combo-box.js +0 -4512
  121. package/dist/components/virtual-keyboard-controller.js +0 -2001
  122. package/dist/esm/index-db76d5b5.js +0 -1299
  123. package/dist/esm/locale.utils-30fb5289.js +0 -144
  124. package/dist/esm/polyfills/core-js.js +0 -11
  125. package/dist/esm/polyfills/css-shim.js +0 -1
  126. package/dist/esm/polyfills/dom.js +0 -79
  127. package/dist/esm/polyfills/es5-html-element.js +0 -1
  128. package/dist/esm/polyfills/index.js +0 -34
  129. package/dist/esm/polyfills/system.js +0 -6
  130. package/dist/general-input/p-6ae987d0.entry.js +0 -1
  131. package/dist/general-input/p-b408093e.js +0 -1
  132. package/dist/general-input/p-b64caafa.entry.js +0 -3646
  133. package/dist/general-input/p-f659e9ee.entry.js +0 -1
  134. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/general-input/.stencil/packages/general-input/stencil.config.d.ts +0 -2
  135. /package/dist/cjs/{tooltipIcon-092a795f.js → tooltipIcon-7e9ee226.js} +0 -0
  136. /package/dist/esm/{tooltipIcon-99c1c7b7.js → tooltipIcon-0a5a06a2.js} +0 -0
  137. /package/dist/general-input/{p-f4f4ccda.js → p-2dccd0bf.js} +0 -0
  138. /package/dist/general-input/{p-04d4b145.js → p-ba14eb83.js} +0 -0
@@ -1,297 +1,312 @@
1
- import { Component, h, Prop, State, Watch, Event, Listen } from '@stencil/core';
2
- import { translate } from '../../utils/locale.utils';
3
- import tooltipIcon from '../../utils/tooltipIcon.svg';
1
+ import { h } from "@stencil/core";
2
+ import { translate } from "../../utils/locale.utils";
3
+ import tooltipIcon from "../../utils/tooltipIcon.svg";
4
4
  export class RadioInput {
5
- constructor() {
6
- /**
7
- * Client custom styling via inline style
8
- */
9
- this.clientStyling = '';
10
- this.limitStylingAppends = false;
11
- this.showTooltip = false;
12
- this.setClientStyling = () => {
13
- let sheet = document.createElement('style');
14
- sheet.innerHTML = this.clientStyling;
15
- this.stylingContainer.prepend(sheet);
16
- };
17
- }
18
- validityChanged() {
19
- this.validityStateHandler({ valid: this.isValid, name: this.name });
20
- if (this.emitValue == true) {
21
- this.valueHandler({ name: this.name, value: this.value });
5
+ constructor() {
6
+ this.setClientStyling = () => {
7
+ let sheet = document.createElement('style');
8
+ sheet.innerHTML = this.clientStyling;
9
+ this.stylingContainer.prepend(sheet);
10
+ };
11
+ this.name = undefined;
12
+ this.displayName = undefined;
13
+ this.optionsGroup = undefined;
14
+ this.validation = undefined;
15
+ this.tooltip = undefined;
16
+ this.language = undefined;
17
+ this.emitValue = undefined;
18
+ this.clientStyling = '';
19
+ this.errorMessage = undefined;
20
+ this.isValid = undefined;
21
+ this.limitStylingAppends = false;
22
+ this.showTooltip = false;
22
23
  }
23
- }
24
- emitValueHandler(newValue) {
25
- if (newValue == true && this.isValid) {
26
- this.valueHandler({ name: this.name, value: this.value });
24
+ validityChanged() {
25
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
26
+ if (this.emitValue == true) {
27
+ this.valueHandler({ name: this.name, value: this.value });
28
+ }
29
+ }
30
+ emitValueHandler(newValue) {
31
+ if (newValue == true && this.isValid) {
32
+ this.valueHandler({ name: this.name, value: this.value });
33
+ }
27
34
  }
28
- }
29
- valueHandler(inputValueEvent) {
30
- this.sendInputValue.emit(inputValueEvent);
31
- }
32
- validityStateHandler(inputStateEvent) {
33
- this.sendValidityState.emit(inputStateEvent);
34
- }
35
- handleClickOutside(event) {
36
- if (event.composedPath()[0] === this.tooltipIconReference)
37
- return;
38
- if (event.composedPath()[0] !== this.tooltipReference)
39
- this.showTooltip = false;
40
- }
41
- componentDidRender() {
42
- // start custom styling area
43
- if (!this.limitStylingAppends && this.stylingContainer) {
44
- if (this.clientStyling)
45
- this.setClientStyling();
46
- this.limitStylingAppends = true;
35
+ valueHandler(inputValueEvent) {
36
+ this.sendInputValue.emit(inputValueEvent);
47
37
  }
48
- // end custom styling area
49
- }
50
- handleClick(event) {
51
- this.value = event.target.value;
52
- this.isValid = this.setValidity();
53
- this.errorMessage = this.setErrorMessage();
54
- this.emitValueHandler(true);
55
- }
56
- setValidity() {
57
- return this.inputReference.validity.valid;
58
- }
59
- setErrorMessage() {
60
- if (this.inputReference.validity.valueMissing) {
61
- return translate('requiredError', this.language);
38
+ validityStateHandler(inputStateEvent) {
39
+ this.sendValidityState.emit(inputStateEvent);
62
40
  }
63
- }
64
- renderTooltip() {
65
- if (this.showTooltip) {
66
- return (h("div", { class: `radio__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
41
+ handleClickOutside(event) {
42
+ if (event.composedPath()[0] === this.tooltipIconReference)
43
+ return;
44
+ if (event.composedPath()[0] !== this.tooltipReference)
45
+ this.showTooltip = false;
67
46
  }
68
- return null;
69
- }
70
- render() {
71
- return h("fieldset", { class: `radio__fieldset ${this.name}__input`, ref: el => this.stylingContainer = el },
72
- h("legend", { class: 'radio__legend' },
73
- this.displayName,
74
- ":"),
75
- this.optionsGroup.map(option => h("div", { class: 'radio__wrapper' },
76
- h("input", { type: "radio", class: 'radio__input', id: `${option.label}__input`, ref: (el) => this.inputReference = el, value: option.value, name: this.name, required: this.validation.mandatory, onClick: (e) => this.handleClick(e) }),
77
- h("label", { htmlFor: `${option.label}__input` }, option.label))),
78
- h("small", { class: 'radio__error-message' }, this.errorMessage),
79
- this.tooltip &&
80
- h("img", { class: 'radio__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }),
81
- this.renderTooltip());
82
- }
83
- static get is() { return "radio-input"; }
84
- static get encapsulation() { return "shadow"; }
85
- static get originalStyleUrls() { return {
86
- "$": ["radio-input.scss"]
87
- }; }
88
- static get styleUrls() { return {
89
- "$": ["radio-input.css"]
90
- }; }
91
- static get properties() { return {
92
- "name": {
93
- "type": "string",
94
- "mutable": false,
95
- "complexType": {
96
- "original": "string",
97
- "resolved": "string",
98
- "references": {}
99
- },
100
- "required": false,
101
- "optional": false,
102
- "docs": {
103
- "tags": [],
104
- "text": "Name of the input."
105
- },
106
- "attribute": "name",
107
- "reflect": true
108
- },
109
- "displayName": {
110
- "type": "string",
111
- "mutable": false,
112
- "complexType": {
113
- "original": "string",
114
- "resolved": "string",
115
- "references": {}
116
- },
117
- "required": false,
118
- "optional": false,
119
- "docs": {
120
- "tags": [],
121
- "text": "Name of input to be shown to the user."
122
- },
123
- "attribute": "display-name",
124
- "reflect": true
125
- },
126
- "optionsGroup": {
127
- "type": "unknown",
128
- "mutable": false,
129
- "complexType": {
130
- "original": "Option[]",
131
- "resolved": "Option[]",
132
- "references": {
133
- "Option": {
134
- "location": "import",
135
- "path": "../../utils/types"
136
- }
137
- }
138
- },
139
- "required": false,
140
- "optional": false,
141
- "docs": {
142
- "tags": [],
143
- "text": "Options of the input."
144
- }
145
- },
146
- "validation": {
147
- "type": "unknown",
148
- "mutable": false,
149
- "complexType": {
150
- "original": "ValidationSchema",
151
- "resolved": "ValidationSchema",
152
- "references": {
153
- "ValidationSchema": {
154
- "location": "import",
155
- "path": "../../utils/types"
156
- }
47
+ componentDidRender() {
48
+ // start custom styling area
49
+ if (!this.limitStylingAppends && this.stylingContainer) {
50
+ if (this.clientStyling)
51
+ this.setClientStyling();
52
+ this.limitStylingAppends = true;
157
53
  }
158
- },
159
- "required": false,
160
- "optional": false,
161
- "docs": {
162
- "tags": [],
163
- "text": "Object of validation rules for the input."
164
- }
165
- },
166
- "tooltip": {
167
- "type": "string",
168
- "mutable": false,
169
- "complexType": {
170
- "original": "string",
171
- "resolved": "string",
172
- "references": {}
173
- },
174
- "required": false,
175
- "optional": false,
176
- "docs": {
177
- "tags": [],
178
- "text": "Tooltip text."
179
- },
180
- "attribute": "tooltip",
181
- "reflect": true
182
- },
183
- "language": {
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": "Currently selected language."
196
- },
197
- "attribute": "language",
198
- "reflect": true
199
- },
200
- "emitValue": {
201
- "type": "boolean",
202
- "mutable": false,
203
- "complexType": {
204
- "original": "boolean",
205
- "resolved": "boolean",
206
- "references": {}
207
- },
208
- "required": false,
209
- "optional": false,
210
- "docs": {
211
- "tags": [],
212
- "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
213
- },
214
- "attribute": "emit-value",
215
- "reflect": true
216
- },
217
- "clientStyling": {
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": "Client custom styling via inline style"
230
- },
231
- "attribute": "client-styling",
232
- "reflect": true,
233
- "defaultValue": "''"
54
+ // end custom styling area
234
55
  }
235
- }; }
236
- static get states() { return {
237
- "errorMessage": {},
238
- "isValid": {},
239
- "limitStylingAppends": {},
240
- "showTooltip": {}
241
- }; }
242
- static get events() { return [{
243
- "method": "sendInputValue",
244
- "name": "sendInputValue",
245
- "bubbles": true,
246
- "cancelable": true,
247
- "composed": true,
248
- "docs": {
249
- "tags": [],
250
- "text": ""
251
- },
252
- "complexType": {
253
- "original": "InputValueEvent",
254
- "resolved": "InputValueEvent",
255
- "references": {
256
- "InputValueEvent": {
257
- "location": "import",
258
- "path": "../../utils/types"
259
- }
56
+ handleClick(event) {
57
+ this.value = event.target.value;
58
+ this.isValid = this.setValidity();
59
+ this.errorMessage = this.setErrorMessage();
60
+ this.emitValueHandler(true);
61
+ }
62
+ setValidity() {
63
+ return this.inputReference.validity.valid;
64
+ }
65
+ setErrorMessage() {
66
+ if (this.inputReference.validity.valueMissing) {
67
+ return translate('requiredError', this.language);
260
68
  }
261
- }
262
- }, {
263
- "method": "sendValidityState",
264
- "name": "sendValidityState",
265
- "bubbles": true,
266
- "cancelable": true,
267
- "composed": true,
268
- "docs": {
269
- "tags": [],
270
- "text": ""
271
- },
272
- "complexType": {
273
- "original": "InputStateEvent",
274
- "resolved": "InputStateEvent",
275
- "references": {
276
- "InputStateEvent": {
277
- "location": "import",
278
- "path": "../../utils/types"
279
- }
69
+ }
70
+ renderTooltip() {
71
+ if (this.showTooltip) {
72
+ return (h("div", { class: `radio__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
280
73
  }
281
- }
282
- }]; }
283
- static get watchers() { return [{
284
- "propName": "isValid",
285
- "methodName": "validityChanged"
286
- }, {
287
- "propName": "emitValue",
288
- "methodName": "emitValueHandler"
289
- }]; }
290
- static get listeners() { return [{
291
- "name": "click",
292
- "method": "handleClickOutside",
293
- "target": "document",
294
- "capture": false,
295
- "passive": false
296
- }]; }
74
+ return null;
75
+ }
76
+ render() {
77
+ return h("fieldset", { key: '3d90735f7dc8fef6a96dc85b8f9ba22880cb205f', class: `radio__fieldset ${this.name}__input`, ref: el => this.stylingContainer = el }, h("legend", { key: '9472ed76f5c7fabb90d2b3d39eeb9e18f05a30dd', class: 'radio__legend' }, this.displayName, ":"), this.optionsGroup.map(option => h("div", { class: 'radio__wrapper' }, h("input", { type: "radio", class: 'radio__input', id: `${option.label}__input`, ref: (el) => this.inputReference = el, value: option.value, name: this.name, required: this.validation.mandatory, onClick: (e) => this.handleClick(e) }), h("label", { htmlFor: `${option.label}__input` }, option.label))), h("small", { key: '2ae0947580bb8a0a3d889a2d9ebd0b82458fdfd2', class: 'radio__error-message' }, this.errorMessage), this.tooltip &&
78
+ h("img", { key: '4f3cbf341f1c559bbdf44ca5d169be7a64d46e97', class: 'radio__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
79
+ }
80
+ static get is() { return "radio-input"; }
81
+ static get encapsulation() { return "shadow"; }
82
+ static get originalStyleUrls() {
83
+ return {
84
+ "$": ["radio-input.scss"]
85
+ };
86
+ }
87
+ static get styleUrls() {
88
+ return {
89
+ "$": ["radio-input.css"]
90
+ };
91
+ }
92
+ static get properties() {
93
+ return {
94
+ "name": {
95
+ "type": "string",
96
+ "mutable": false,
97
+ "complexType": {
98
+ "original": "string",
99
+ "resolved": "string",
100
+ "references": {}
101
+ },
102
+ "required": false,
103
+ "optional": false,
104
+ "docs": {
105
+ "tags": [],
106
+ "text": "Name of the input."
107
+ },
108
+ "attribute": "name",
109
+ "reflect": true
110
+ },
111
+ "displayName": {
112
+ "type": "string",
113
+ "mutable": false,
114
+ "complexType": {
115
+ "original": "string",
116
+ "resolved": "string",
117
+ "references": {}
118
+ },
119
+ "required": false,
120
+ "optional": false,
121
+ "docs": {
122
+ "tags": [],
123
+ "text": "Name of input to be shown to the user."
124
+ },
125
+ "attribute": "display-name",
126
+ "reflect": true
127
+ },
128
+ "optionsGroup": {
129
+ "type": "unknown",
130
+ "mutable": false,
131
+ "complexType": {
132
+ "original": "Option[]",
133
+ "resolved": "Option[]",
134
+ "references": {
135
+ "Option": {
136
+ "location": "import",
137
+ "path": "../../utils/types",
138
+ "id": "../../../../packages/stencil/general-input/src/utils/types.ts::Option"
139
+ }
140
+ }
141
+ },
142
+ "required": false,
143
+ "optional": false,
144
+ "docs": {
145
+ "tags": [],
146
+ "text": "Options of the input."
147
+ }
148
+ },
149
+ "validation": {
150
+ "type": "unknown",
151
+ "mutable": false,
152
+ "complexType": {
153
+ "original": "ValidationSchema",
154
+ "resolved": "ValidationSchema",
155
+ "references": {
156
+ "ValidationSchema": {
157
+ "location": "import",
158
+ "path": "../../utils/types",
159
+ "id": "../../../../packages/stencil/general-input/src/utils/types.ts::ValidationSchema"
160
+ }
161
+ }
162
+ },
163
+ "required": false,
164
+ "optional": false,
165
+ "docs": {
166
+ "tags": [],
167
+ "text": "Object of validation rules for the input."
168
+ }
169
+ },
170
+ "tooltip": {
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": "Tooltip text."
183
+ },
184
+ "attribute": "tooltip",
185
+ "reflect": true
186
+ },
187
+ "language": {
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": "Currently selected language."
200
+ },
201
+ "attribute": "language",
202
+ "reflect": true
203
+ },
204
+ "emitValue": {
205
+ "type": "boolean",
206
+ "mutable": false,
207
+ "complexType": {
208
+ "original": "boolean",
209
+ "resolved": "boolean",
210
+ "references": {}
211
+ },
212
+ "required": false,
213
+ "optional": false,
214
+ "docs": {
215
+ "tags": [],
216
+ "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
217
+ },
218
+ "attribute": "emit-value",
219
+ "reflect": true
220
+ },
221
+ "clientStyling": {
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": "Client custom styling via inline style"
234
+ },
235
+ "attribute": "client-styling",
236
+ "reflect": true,
237
+ "defaultValue": "''"
238
+ }
239
+ };
240
+ }
241
+ static get states() {
242
+ return {
243
+ "errorMessage": {},
244
+ "isValid": {},
245
+ "limitStylingAppends": {},
246
+ "showTooltip": {}
247
+ };
248
+ }
249
+ static get events() {
250
+ return [{
251
+ "method": "sendInputValue",
252
+ "name": "sendInputValue",
253
+ "bubbles": true,
254
+ "cancelable": true,
255
+ "composed": true,
256
+ "docs": {
257
+ "tags": [],
258
+ "text": ""
259
+ },
260
+ "complexType": {
261
+ "original": "InputValueEvent",
262
+ "resolved": "InputValueEvent",
263
+ "references": {
264
+ "InputValueEvent": {
265
+ "location": "import",
266
+ "path": "../../utils/types",
267
+ "id": "../../../../packages/stencil/general-input/src/utils/types.ts::InputValueEvent"
268
+ }
269
+ }
270
+ }
271
+ }, {
272
+ "method": "sendValidityState",
273
+ "name": "sendValidityState",
274
+ "bubbles": true,
275
+ "cancelable": true,
276
+ "composed": true,
277
+ "docs": {
278
+ "tags": [],
279
+ "text": ""
280
+ },
281
+ "complexType": {
282
+ "original": "InputStateEvent",
283
+ "resolved": "InputStateEvent",
284
+ "references": {
285
+ "InputStateEvent": {
286
+ "location": "import",
287
+ "path": "../../utils/types",
288
+ "id": "../../../../packages/stencil/general-input/src/utils/types.ts::InputStateEvent"
289
+ }
290
+ }
291
+ }
292
+ }];
293
+ }
294
+ static get watchers() {
295
+ return [{
296
+ "propName": "isValid",
297
+ "methodName": "validityChanged"
298
+ }, {
299
+ "propName": "emitValue",
300
+ "methodName": "emitValueHandler"
301
+ }];
302
+ }
303
+ static get listeners() {
304
+ return [{
305
+ "name": "click",
306
+ "method": "handleClickOutside",
307
+ "target": "document",
308
+ "capture": false,
309
+ "passive": false
310
+ }];
311
+ }
297
312
  }
@@ -15,8 +15,7 @@ vaadin-combo-box > input {
15
15
  color: var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));
16
16
  font-weight: 300;
17
17
  font-size: 16px;
18
- -webkit-font-smoothing: initial;
19
- /* fucks up font-weight */
18
+ -webkit-font-smoothing: initial; /* fucks up font-weight */
20
19
  }
21
20
 
22
21
  .select {
@@ -29,7 +28,6 @@ vaadin-combo-box > input {
29
28
  display: flex;
30
29
  flex-direction: column;
31
30
  gap: 5px;
32
- height: 100%;
33
31
  }
34
32
  .select__wrapper--autofilled {
35
33
  pointer-events: none;
@@ -67,7 +65,7 @@ vaadin-combo-box > input {
67
65
  position: relative;
68
66
  }
69
67
  .select__input[focused]::part(input-field) {
70
- border: 1px solid var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));
68
+ border-color: var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));
71
69
  }
72
70
  .select__input[invalid]::part(input-field) {
73
71
  border: 1px solid var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));
@@ -76,16 +74,17 @@ vaadin-combo-box > input {
76
74
  color: var(--emfe-w-color-black, #000000);
77
75
  }
78
76
  .select__input::part(input-field) {
79
- font-family: inherit;
80
- width: 100%;
81
- height: 44px;
82
- border: 1px solid var(--emfe-w-color-gray-100, #E6E6E6);
77
+ border-radius: 4px;
83
78
  background-color: var(--emfe-w-color-white, #FFFFFF);
79
+ border: 1px solid var(--emfe-w-color-gray-100, #E6E6E6);
84
80
  color: var(--emfe-w-color-black, #000000);
85
- border-radius: 5px;
81
+ font-family: inherit;
82
+ font-style: normal;
86
83
  font-size: 16px;
87
84
  font-weight: 300;
88
85
  line-height: 1.5;
86
+ padding: 0;
87
+ height: 44px;
89
88
  }
90
89
  .select__input::part(toggle-button) {
91
90
  position: relative;