@everymatrix/general-input 0.0.1 → 1.0.69

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 (141) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/checkbox-group-input_10.cjs.entry.js +20007 -16663
  3. package/dist/cjs/general-input.cjs.entry.js +67 -40
  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 +16 -0
  7. package/dist/cjs/loader.cjs.js +7 -13
  8. package/dist/cjs/locale.utils-7a3dfe2f.js +128 -0
  9. package/dist/cjs/toggle-checkbox-input.cjs.entry.js +91 -0
  10. package/dist/cjs/tooltipIcon-7e9ee226.js +5 -0
  11. package/dist/collection/collection-manifest.json +14 -13
  12. package/dist/collection/components/checkbox-group-input/checkbox-group-input.css +26 -6
  13. package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +372 -335
  14. package/dist/collection/components/checkbox-input/checkbox-input.css +16 -10
  15. package/dist/collection/components/checkbox-input/checkbox-input.js +325 -310
  16. package/dist/collection/components/date-input/date-input.css +35 -19
  17. package/dist/collection/components/date-input/date-input.js +401 -328
  18. package/dist/collection/components/email-input/email-input.css +30 -18
  19. package/dist/collection/components/email-input/email-input.js +405 -365
  20. package/dist/collection/components/general-input/general-input.css +1 -0
  21. package/dist/collection/components/general-input/general-input.js +374 -291
  22. package/dist/collection/components/general-input/index.js +1 -0
  23. package/dist/collection/components/number-input/number-input.css +28 -16
  24. package/dist/collection/components/number-input/number-input.js +371 -334
  25. package/dist/collection/components/password-input/password-input.css +105 -11
  26. package/dist/collection/components/password-input/password-input.js +518 -378
  27. package/dist/collection/components/radio-input/radio-input.css +4 -4
  28. package/dist/collection/components/radio-input/radio-input.js +301 -287
  29. package/dist/collection/components/select-input/select-input.css +47 -19
  30. package/dist/collection/components/select-input/select-input.js +428 -398
  31. package/dist/collection/components/tel-input/tel-input.css +52 -23
  32. package/dist/collection/components/tel-input/tel-input.js +441 -404
  33. package/dist/collection/components/text-input/text-input.css +33 -18
  34. package/dist/collection/components/text-input/text-input.js +446 -389
  35. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.css +82 -0
  36. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +336 -0
  37. package/dist/collection/index.js +16 -0
  38. package/dist/collection/utils/locale.utils.js +118 -21
  39. package/dist/collection/utils/tooltipIcon.svg +4 -4
  40. package/dist/collection/utils/utils.js +3 -3
  41. package/dist/esm/app-globals-0f993ce5.js +3 -0
  42. package/dist/esm/checkbox-group-input_10.entry.js +20007 -16663
  43. package/dist/esm/general-input.entry.js +67 -40
  44. package/dist/esm/general-input.js +14 -11
  45. package/dist/esm/index-514fda47.js +1287 -0
  46. package/dist/esm/index.js +16 -1
  47. package/dist/esm/loader.js +7 -13
  48. package/dist/esm/locale.utils-21605050.js +125 -0
  49. package/dist/esm/toggle-checkbox-input.entry.js +87 -0
  50. package/dist/esm/tooltipIcon-0a5a06a2.js +3 -0
  51. package/dist/general-input/general-input.esm.js +1 -1
  52. package/dist/general-input/index.esm.js +1 -0
  53. package/dist/general-input/p-03e81c11.js +2 -0
  54. package/dist/general-input/p-2dccd0bf.js +1 -0
  55. package/dist/general-input/p-34939f14.entry.js +1 -0
  56. package/dist/general-input/p-b32f19c2.entry.js +5430 -0
  57. package/dist/general-input/p-c43bb82e.entry.js +1 -0
  58. package/dist/general-input/p-cfe9eb31.js +1 -0
  59. package/dist/general-input/p-e1255160.js +1 -0
  60. package/dist/stencil.config.dev.js +17 -0
  61. package/dist/stencil.config.js +14 -19
  62. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.d.ts +2 -0
  63. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.dev.d.ts +2 -0
  64. package/dist/types/components/checkbox-group-input/checkbox-group-input.d.ts +69 -67
  65. package/dist/types/components/checkbox-input/checkbox-input.d.ts +61 -60
  66. package/dist/types/components/date-input/date-input.d.ts +79 -65
  67. package/dist/types/components/email-input/email-input.d.ts +76 -73
  68. package/dist/types/components/general-input/general-input.d.ts +72 -57
  69. package/dist/types/components/general-input/index.d.ts +1 -0
  70. package/dist/types/components/number-input/number-input.d.ts +70 -66
  71. package/dist/types/components/password-input/password-input.d.ts +87 -75
  72. package/dist/types/components/radio-input/radio-input.d.ts +55 -55
  73. package/dist/types/components/select-input/select-input.d.ts +78 -77
  74. package/dist/types/components/tel-input/tel-input.d.ts +84 -80
  75. package/dist/types/components/text-input/text-input.d.ts +81 -78
  76. package/dist/types/components/toggle-checkbox-input/toggle-checkbox-input.d.ts +67 -0
  77. package/dist/types/components.d.ts +331 -25
  78. package/dist/types/stencil-public-runtime.d.ts +142 -33
  79. package/dist/types/utils/locale.utils.d.ts +13 -1
  80. package/dist/types/utils/types.d.ts +58 -47
  81. package/loader/cdn.js +1 -3
  82. package/loader/index.cjs.js +1 -3
  83. package/loader/index.d.ts +13 -1
  84. package/loader/index.es2017.js +1 -3
  85. package/loader/index.js +1 -3
  86. package/loader/package.json +1 -0
  87. package/package.json +9 -9
  88. package/dist/cjs/index-1768513d.js +0 -1286
  89. package/dist/components/active-mixin.js +0 -975
  90. package/dist/components/checkbox-group-input.d.ts +0 -11
  91. package/dist/components/checkbox-group-input.js +0 -6
  92. package/dist/components/checkbox-group-input2.js +0 -5793
  93. package/dist/components/checkbox-input.d.ts +0 -11
  94. package/dist/components/checkbox-input.js +0 -6
  95. package/dist/components/checkbox-input2.js +0 -127
  96. package/dist/components/date-input.d.ts +0 -11
  97. package/dist/components/date-input.js +0 -6
  98. package/dist/components/date-input2.js +0 -5182
  99. package/dist/components/email-input.d.ts +0 -11
  100. package/dist/components/email-input.js +0 -6
  101. package/dist/components/email-input2.js +0 -150
  102. package/dist/components/field-mixin.js +0 -12712
  103. package/dist/components/general-input.d.ts +0 -11
  104. package/dist/components/general-input.js +0 -140
  105. package/dist/components/index.d.ts +0 -26
  106. package/dist/components/index.js +0 -1
  107. package/dist/components/input-field-shared-styles.js +0 -1067
  108. package/dist/components/number-input.d.ts +0 -11
  109. package/dist/components/number-input.js +0 -6
  110. package/dist/components/number-input2.js +0 -139
  111. package/dist/components/password-input.d.ts +0 -11
  112. package/dist/components/password-input.js +0 -6
  113. package/dist/components/password-input2.js +0 -879
  114. package/dist/components/pattern-mixin.js +0 -85
  115. package/dist/components/radio-input.d.ts +0 -11
  116. package/dist/components/radio-input.js +0 -6
  117. package/dist/components/radio-input2.js +0 -115
  118. package/dist/components/select-input.d.ts +0 -11
  119. package/dist/components/select-input.js +0 -6
  120. package/dist/components/select-input2.js +0 -166
  121. package/dist/components/tel-input.d.ts +0 -11
  122. package/dist/components/tel-input.js +0 -6
  123. package/dist/components/tel-input2.js +0 -178
  124. package/dist/components/text-input.d.ts +0 -11
  125. package/dist/components/text-input.js +0 -6
  126. package/dist/components/text-input2.js +0 -157
  127. package/dist/components/tooltipIcon.js +0 -30
  128. package/dist/components/vaadin-button.js +0 -461
  129. package/dist/components/vaadin-combo-box.js +0 -4329
  130. package/dist/components/virtual-keyboard-controller.js +0 -2693
  131. package/dist/esm/index-7e24a6f1.js +0 -1259
  132. package/dist/esm/polyfills/core-js.js +0 -11
  133. package/dist/esm/polyfills/css-shim.js +0 -1
  134. package/dist/esm/polyfills/dom.js +0 -79
  135. package/dist/esm/polyfills/es5-html-element.js +0 -1
  136. package/dist/esm/polyfills/index.js +0 -34
  137. package/dist/esm/polyfills/system.js +0 -6
  138. package/dist/general-input/p-61d76ec3.entry.js +0 -1
  139. package/dist/general-input/p-a79eb0a3.entry.js +0 -4413
  140. package/dist/general-input/p-fb647820.js +0 -1
  141. package/dist/types/Users/adrian.pripon/Documents/Work/stencil/widgets-stencil/packages/general-input/.stencil/packages/general-input/stencil.config.d.ts +0 -2
@@ -18,7 +18,7 @@
18
18
  position: absolute;
19
19
  top: calc(100% + 5px);
20
20
  left: 0;
21
- color: #cc0000b3;
21
+ color: var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));
22
22
  }
23
23
  .radio__tooltip-icon {
24
24
  position: absolute;
@@ -29,9 +29,9 @@
29
29
  position: absolute;
30
30
  bottom: 35px;
31
31
  right: 10px;
32
- background-color: #FFFFFF;
33
- border: 1px solid #B0B0B0;
34
- color: #2B2D3F;
32
+ background-color: var(--emfe-w-color-white, #FFFFFF);
33
+ border: 1px solid var(--emfe-w-color-gray-100, #E6E6E6);
34
+ color: var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));
35
35
  padding: 10px;
36
36
  border-radius: 5px;
37
37
  opacity: 0;
@@ -1,298 +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.validityStateHandler({ valid: this.isValid, name: this.name });
55
- this.emitValueHandler(true);
56
- }
57
- setValidity() {
58
- return this.inputReference.validity.valid;
59
- }
60
- setErrorMessage() {
61
- if (this.inputReference.validity.valueMissing) {
62
- return translate('requiredError', this.language);
38
+ validityStateHandler(inputStateEvent) {
39
+ this.sendValidityState.emit(inputStateEvent);
63
40
  }
64
- }
65
- renderTooltip() {
66
- if (this.showTooltip) {
67
- 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;
68
46
  }
69
- return null;
70
- }
71
- render() {
72
- return h("fieldset", { class: 'radio__fieldset', ref: el => this.stylingContainer = el },
73
- h("legend", { class: 'radio__legend' },
74
- this.displayName,
75
- ":"),
76
- this.optionsGroup.map(option => h("div", { class: 'radio__wrapper' },
77
- 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) }),
78
- h("label", { htmlFor: `${option.label}__input` }, option.label))),
79
- h("small", { class: 'radio__error-message' }, this.errorMessage),
80
- this.tooltip &&
81
- h("img", { class: 'radio__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }),
82
- this.renderTooltip());
83
- }
84
- static get is() { return "radio-input"; }
85
- static get encapsulation() { return "shadow"; }
86
- static get originalStyleUrls() { return {
87
- "$": ["radio-input.scss"]
88
- }; }
89
- static get styleUrls() { return {
90
- "$": ["radio-input.css"]
91
- }; }
92
- static get properties() { return {
93
- "name": {
94
- "type": "string",
95
- "mutable": false,
96
- "complexType": {
97
- "original": "string",
98
- "resolved": "string",
99
- "references": {}
100
- },
101
- "required": false,
102
- "optional": false,
103
- "docs": {
104
- "tags": [],
105
- "text": "Name of the input."
106
- },
107
- "attribute": "name",
108
- "reflect": true
109
- },
110
- "displayName": {
111
- "type": "string",
112
- "mutable": false,
113
- "complexType": {
114
- "original": "string",
115
- "resolved": "string",
116
- "references": {}
117
- },
118
- "required": false,
119
- "optional": false,
120
- "docs": {
121
- "tags": [],
122
- "text": "Name of input to be shown to the user."
123
- },
124
- "attribute": "display-name",
125
- "reflect": true
126
- },
127
- "optionsGroup": {
128
- "type": "unknown",
129
- "mutable": false,
130
- "complexType": {
131
- "original": "Option[]",
132
- "resolved": "Option[]",
133
- "references": {
134
- "Option": {
135
- "location": "import",
136
- "path": "../../utils/types"
137
- }
138
- }
139
- },
140
- "required": false,
141
- "optional": false,
142
- "docs": {
143
- "tags": [],
144
- "text": "Options of the input."
145
- }
146
- },
147
- "validation": {
148
- "type": "unknown",
149
- "mutable": false,
150
- "complexType": {
151
- "original": "ValidationSchema",
152
- "resolved": "ValidationSchema",
153
- "references": {
154
- "ValidationSchema": {
155
- "location": "import",
156
- "path": "../../utils/types"
157
- }
47
+ componentDidRender() {
48
+ // start custom styling area
49
+ if (!this.limitStylingAppends && this.stylingContainer) {
50
+ if (this.clientStyling)
51
+ this.setClientStyling();
52
+ this.limitStylingAppends = true;
158
53
  }
159
- },
160
- "required": false,
161
- "optional": false,
162
- "docs": {
163
- "tags": [],
164
- "text": "Object of validation rules for the input."
165
- }
166
- },
167
- "tooltip": {
168
- "type": "string",
169
- "mutable": false,
170
- "complexType": {
171
- "original": "string",
172
- "resolved": "string",
173
- "references": {}
174
- },
175
- "required": false,
176
- "optional": false,
177
- "docs": {
178
- "tags": [],
179
- "text": "Tooltip text."
180
- },
181
- "attribute": "tooltip",
182
- "reflect": true
183
- },
184
- "language": {
185
- "type": "string",
186
- "mutable": false,
187
- "complexType": {
188
- "original": "string",
189
- "resolved": "string",
190
- "references": {}
191
- },
192
- "required": false,
193
- "optional": false,
194
- "docs": {
195
- "tags": [],
196
- "text": "Currently selected language."
197
- },
198
- "attribute": "language",
199
- "reflect": true
200
- },
201
- "emitValue": {
202
- "type": "boolean",
203
- "mutable": false,
204
- "complexType": {
205
- "original": "boolean",
206
- "resolved": "boolean",
207
- "references": {}
208
- },
209
- "required": false,
210
- "optional": false,
211
- "docs": {
212
- "tags": [],
213
- "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
214
- },
215
- "attribute": "emit-value",
216
- "reflect": true
217
- },
218
- "clientStyling": {
219
- "type": "string",
220
- "mutable": false,
221
- "complexType": {
222
- "original": "string",
223
- "resolved": "string",
224
- "references": {}
225
- },
226
- "required": false,
227
- "optional": false,
228
- "docs": {
229
- "tags": [],
230
- "text": "Client custom styling via inline style"
231
- },
232
- "attribute": "client-styling",
233
- "reflect": true,
234
- "defaultValue": "''"
54
+ // end custom styling area
235
55
  }
236
- }; }
237
- static get states() { return {
238
- "errorMessage": {},
239
- "isValid": {},
240
- "limitStylingAppends": {},
241
- "showTooltip": {}
242
- }; }
243
- static get events() { return [{
244
- "method": "sendInputValue",
245
- "name": "sendInputValue",
246
- "bubbles": true,
247
- "cancelable": true,
248
- "composed": true,
249
- "docs": {
250
- "tags": [],
251
- "text": ""
252
- },
253
- "complexType": {
254
- "original": "InputValueEvent",
255
- "resolved": "InputValueEvent",
256
- "references": {
257
- "InputValueEvent": {
258
- "location": "import",
259
- "path": "../../utils/types"
260
- }
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);
261
68
  }
262
- }
263
- }, {
264
- "method": "sendValidityState",
265
- "name": "sendValidityState",
266
- "bubbles": true,
267
- "cancelable": true,
268
- "composed": true,
269
- "docs": {
270
- "tags": [],
271
- "text": ""
272
- },
273
- "complexType": {
274
- "original": "InputStateEvent",
275
- "resolved": "InputStateEvent",
276
- "references": {
277
- "InputStateEvent": {
278
- "location": "import",
279
- "path": "../../utils/types"
280
- }
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 }));
281
73
  }
282
- }
283
- }]; }
284
- static get watchers() { return [{
285
- "propName": "isValid",
286
- "methodName": "validityChanged"
287
- }, {
288
- "propName": "emitValue",
289
- "methodName": "emitValueHandler"
290
- }]; }
291
- static get listeners() { return [{
292
- "name": "click",
293
- "method": "handleClickOutside",
294
- "target": "document",
295
- "capture": false,
296
- "passive": false
297
- }]; }
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
+ }
298
312
  }