@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
@@ -1,322 +1,337 @@
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 CheckboxInput {
5
- constructor() {
6
- /**
7
- * Default value for the input.
8
- */
9
- this.defaultValue = '';
10
- /**
11
- * Client custom styling via inline style
12
- */
13
- this.clientStyling = '';
14
- this.limitStylingAppends = false;
15
- this.showTooltip = false;
16
- this.value = '';
17
- this.setClientStyling = () => {
18
- let sheet = document.createElement('style');
19
- sheet.innerHTML = this.clientStyling;
20
- this.stylingContainer.prepend(sheet);
21
- };
22
- }
23
- validityChanged() {
24
- if (this.emitValue == true) {
25
- this.valueHandler({ name: this.name, value: this.value });
5
+ constructor() {
6
+ this.value = '';
7
+ this.setClientStyling = () => {
8
+ let sheet = document.createElement('style');
9
+ sheet.innerHTML = this.clientStyling;
10
+ this.stylingContainer.prepend(sheet);
11
+ };
12
+ this.name = undefined;
13
+ this.displayName = undefined;
14
+ this.defaultValue = '';
15
+ this.autofilled = undefined;
16
+ this.tooltip = undefined;
17
+ this.validation = undefined;
18
+ this.language = undefined;
19
+ this.emitValue = undefined;
20
+ this.clientStyling = '';
21
+ this.errorMessage = undefined;
22
+ this.isValid = undefined;
23
+ this.limitStylingAppends = false;
24
+ this.showTooltip = false;
26
25
  }
27
- }
28
- validityStateHandler(inputStateEvent) {
29
- this.sendValidityState.emit(inputStateEvent);
30
- }
31
- emitValueHandler(newValue) {
32
- if (newValue == true && this.isValid) {
33
- this.valueHandler({ name: this.name, value: this.value });
26
+ validityChanged() {
27
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
28
+ if (this.emitValue == true) {
29
+ this.valueHandler({ name: this.name, value: this.value });
30
+ }
34
31
  }
35
- }
36
- valueHandler(inputValueEvent) {
37
- this.sendInputValue.emit(inputValueEvent);
38
- }
39
- handleClickOutside(event) {
40
- if (event.composedPath()[0] === this.tooltipIconReference)
41
- return;
42
- if (event.composedPath()[0] !== this.tooltipReference)
43
- this.showTooltip = false;
44
- }
45
- componentDidRender() {
46
- // start custom styling area
47
- if (!this.limitStylingAppends && this.stylingContainer) {
48
- if (this.clientStyling)
49
- this.setClientStyling();
50
- this.limitStylingAppends = true;
32
+ validityStateHandler(inputStateEvent) {
33
+ this.sendValidityState.emit(inputStateEvent);
51
34
  }
52
- // end custom styling area
53
- if (this.defaultValue) {
54
- this.value = this.defaultValue;
55
- this.valueHandler({ name: this.name, value: this.value });
35
+ emitValueHandler(newValue) {
36
+ if (newValue == true && this.isValid) {
37
+ this.valueHandler({ name: this.name, value: this.value });
38
+ }
56
39
  }
57
- }
58
- handleClick() {
59
- this.value = this.inputReference.checked.toString();
60
- this.errorMessage = this.setErrorMessage();
61
- this.isValid = this.setValidity();
62
- this.validityStateHandler({ valid: this.isValid, name: this.name });
63
- this.emitValueHandler(true);
64
- }
65
- setValidity() {
66
- return this.inputReference.validity.valid;
67
- }
68
- setErrorMessage() {
69
- if (this.inputReference.validity.valueMissing) {
70
- return translate('requiredError', this.language);
40
+ valueHandler(inputValueEvent) {
41
+ this.sendInputValue.emit(inputValueEvent);
71
42
  }
72
- }
73
- renderLabel() {
74
- return (h("label", { class: 'checkbox__label', htmlFor: `${this.name}__input` },
75
- h("div", { class: 'checkbox__label-text', innerHTML: `${this.displayName} ${this.validation.mandatory ? '*' : ''}` })));
76
- }
77
- renderTooltip() {
78
- if (this.showTooltip) {
79
- return (h("div", { class: `checkbox__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
43
+ handleClickOutside(event) {
44
+ if (event.composedPath()[0] === this.tooltipIconReference)
45
+ return;
46
+ if (event.composedPath()[0] !== this.tooltipReference)
47
+ this.showTooltip = false;
80
48
  }
81
- return null;
82
- }
83
- render() {
84
- return h("div", { class: 'checkbox__wrapper', ref: el => this.stylingContainer = el },
85
- h("input", { type: "checkbox", id: `${this.name}__input`, ref: (el) => this.inputReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }),
86
- this.renderLabel(),
87
- h("small", { class: 'checkbox__error-message' }, this.errorMessage),
88
- h("div", { class: 'checkbox__wrapper--relative' },
89
- this.tooltip &&
90
- h("img", { class: 'checkbox__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }),
91
- this.renderTooltip()));
92
- }
93
- static get is() { return "checkbox-input"; }
94
- static get encapsulation() { return "shadow"; }
95
- static get originalStyleUrls() { return {
96
- "$": ["checkbox-input.scss"]
97
- }; }
98
- static get styleUrls() { return {
99
- "$": ["checkbox-input.css"]
100
- }; }
101
- static get properties() { return {
102
- "name": {
103
- "type": "string",
104
- "mutable": false,
105
- "complexType": {
106
- "original": "string",
107
- "resolved": "string",
108
- "references": {}
109
- },
110
- "required": false,
111
- "optional": false,
112
- "docs": {
113
- "tags": [],
114
- "text": "Name of the input."
115
- },
116
- "attribute": "name",
117
- "reflect": true
118
- },
119
- "displayName": {
120
- "type": "string",
121
- "mutable": false,
122
- "complexType": {
123
- "original": "string",
124
- "resolved": "string",
125
- "references": {}
126
- },
127
- "required": false,
128
- "optional": false,
129
- "docs": {
130
- "tags": [],
131
- "text": "Name of input to be shown to the user."
132
- },
133
- "attribute": "display-name",
134
- "reflect": true
135
- },
136
- "defaultValue": {
137
- "type": "string",
138
- "mutable": false,
139
- "complexType": {
140
- "original": "string",
141
- "resolved": "string",
142
- "references": {}
143
- },
144
- "required": false,
145
- "optional": false,
146
- "docs": {
147
- "tags": [],
148
- "text": "Default value for the input."
149
- },
150
- "attribute": "default-value",
151
- "reflect": true,
152
- "defaultValue": "''"
153
- },
154
- "autofilled": {
155
- "type": "boolean",
156
- "mutable": false,
157
- "complexType": {
158
- "original": "boolean",
159
- "resolved": "boolean",
160
- "references": {}
161
- },
162
- "required": false,
163
- "optional": false,
164
- "docs": {
165
- "tags": [],
166
- "text": "Boolean. Determines if input should be readonly."
167
- },
168
- "attribute": "autofilled",
169
- "reflect": true
170
- },
171
- "tooltip": {
172
- "type": "string",
173
- "mutable": false,
174
- "complexType": {
175
- "original": "string",
176
- "resolved": "string",
177
- "references": {}
178
- },
179
- "required": false,
180
- "optional": false,
181
- "docs": {
182
- "tags": [],
183
- "text": "Tooltip text."
184
- },
185
- "attribute": "tooltip",
186
- "reflect": true
187
- },
188
- "validation": {
189
- "type": "unknown",
190
- "mutable": false,
191
- "complexType": {
192
- "original": "ValidationSchema",
193
- "resolved": "ValidationSchema",
194
- "references": {
195
- "ValidationSchema": {
196
- "location": "import",
197
- "path": "../../utils/types"
198
- }
49
+ componentDidRender() {
50
+ // start custom styling area
51
+ if (!this.limitStylingAppends && this.stylingContainer) {
52
+ if (this.clientStyling)
53
+ this.setClientStyling();
54
+ this.limitStylingAppends = true;
199
55
  }
200
- },
201
- "required": false,
202
- "optional": false,
203
- "docs": {
204
- "tags": [],
205
- "text": "Object of validation rules for the input."
206
- }
207
- },
208
- "language": {
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": "Currently selected language."
221
- },
222
- "attribute": "language",
223
- "reflect": true
224
- },
225
- "emitValue": {
226
- "type": "boolean",
227
- "mutable": false,
228
- "complexType": {
229
- "original": "boolean",
230
- "resolved": "boolean",
231
- "references": {}
232
- },
233
- "required": false,
234
- "optional": false,
235
- "docs": {
236
- "tags": [],
237
- "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
238
- },
239
- "attribute": "emit-value",
240
- "reflect": true
241
- },
242
- "clientStyling": {
243
- "type": "string",
244
- "mutable": false,
245
- "complexType": {
246
- "original": "string",
247
- "resolved": "string",
248
- "references": {}
249
- },
250
- "required": false,
251
- "optional": false,
252
- "docs": {
253
- "tags": [],
254
- "text": "Client custom styling via inline style"
255
- },
256
- "attribute": "client-styling",
257
- "reflect": true,
258
- "defaultValue": "''"
56
+ // end custom styling area
259
57
  }
260
- }; }
261
- static get states() { return {
262
- "errorMessage": {},
263
- "isValid": {},
264
- "limitStylingAppends": {},
265
- "showTooltip": {}
266
- }; }
267
- static get events() { return [{
268
- "method": "sendValidityState",
269
- "name": "sendValidityState",
270
- "bubbles": true,
271
- "cancelable": true,
272
- "composed": true,
273
- "docs": {
274
- "tags": [],
275
- "text": ""
276
- },
277
- "complexType": {
278
- "original": "InputStateEvent",
279
- "resolved": "InputStateEvent",
280
- "references": {
281
- "InputStateEvent": {
282
- "location": "import",
283
- "path": "../../utils/types"
284
- }
58
+ componentDidLoad() {
59
+ if (this.defaultValue) {
60
+ this.value = this.defaultValue;
61
+ this.valueHandler({ name: this.name, value: this.value });
285
62
  }
286
- }
287
- }, {
288
- "method": "sendInputValue",
289
- "name": "sendInputValue",
290
- "bubbles": true,
291
- "cancelable": true,
292
- "composed": true,
293
- "docs": {
294
- "tags": [],
295
- "text": ""
296
- },
297
- "complexType": {
298
- "original": "InputValueEvent",
299
- "resolved": "InputValueEvent",
300
- "references": {
301
- "InputValueEvent": {
302
- "location": "import",
303
- "path": "../../utils/types"
304
- }
63
+ }
64
+ handleClick() {
65
+ this.value = this.inputReference.checked.toString();
66
+ this.errorMessage = this.setErrorMessage();
67
+ this.isValid = this.setValidity();
68
+ this.emitValueHandler(true);
69
+ }
70
+ setValidity() {
71
+ return this.inputReference.validity.valid;
72
+ }
73
+ setErrorMessage() {
74
+ if (this.inputReference.validity.valueMissing) {
75
+ return translate('requiredError', this.language);
305
76
  }
306
- }
307
- }]; }
308
- static get watchers() { return [{
309
- "propName": "isValid",
310
- "methodName": "validityChanged"
311
- }, {
312
- "propName": "emitValue",
313
- "methodName": "emitValueHandler"
314
- }]; }
315
- static get listeners() { return [{
316
- "name": "click",
317
- "method": "handleClickOutside",
318
- "target": "document",
319
- "capture": false,
320
- "passive": false
321
- }]; }
77
+ }
78
+ renderLabel() {
79
+ return (h("label", { class: 'checkbox__label', htmlFor: `${this.name}__input` }, h("div", { class: 'checkbox__label-text', innerHTML: `${this.displayName} ${this.validation.mandatory ? '*' : ''}` })));
80
+ }
81
+ renderTooltip() {
82
+ if (this.showTooltip) {
83
+ return (h("div", { class: `checkbox__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
84
+ }
85
+ return null;
86
+ }
87
+ render() {
88
+ return h("div", { key: '0aae00d291d1da02adae1bc91e79ccd579aa5c7f', class: `checkbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, h("input", { key: '4b8c61d322b5065d8abe4e2687e270511fadc97f', class: 'checkbox__input', type: "checkbox", id: `${this.name}__input`, ref: (el) => this.inputReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel(), h("small", { key: '934263cb58a0d379e8b7dc1f5004ad7e61c63ce0', class: 'checkbox__error-message' }, this.errorMessage), h("div", { key: '88cc71329d88b6325d792226e64ff7f93e940178', class: 'checkbox__wrapper--relative' }, this.tooltip &&
89
+ h("img", { key: '3708dc613dc920bac6557f2a8020bbafd97d9127', class: 'checkbox__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()));
90
+ }
91
+ static get is() { return "checkbox-input"; }
92
+ static get encapsulation() { return "shadow"; }
93
+ static get originalStyleUrls() {
94
+ return {
95
+ "$": ["checkbox-input.scss"]
96
+ };
97
+ }
98
+ static get styleUrls() {
99
+ return {
100
+ "$": ["checkbox-input.css"]
101
+ };
102
+ }
103
+ static get properties() {
104
+ return {
105
+ "name": {
106
+ "type": "string",
107
+ "mutable": false,
108
+ "complexType": {
109
+ "original": "string",
110
+ "resolved": "string",
111
+ "references": {}
112
+ },
113
+ "required": false,
114
+ "optional": false,
115
+ "docs": {
116
+ "tags": [],
117
+ "text": "Name of the input."
118
+ },
119
+ "attribute": "name",
120
+ "reflect": true
121
+ },
122
+ "displayName": {
123
+ "type": "string",
124
+ "mutable": false,
125
+ "complexType": {
126
+ "original": "string",
127
+ "resolved": "string",
128
+ "references": {}
129
+ },
130
+ "required": false,
131
+ "optional": false,
132
+ "docs": {
133
+ "tags": [],
134
+ "text": "Name of input to be shown to the user."
135
+ },
136
+ "attribute": "display-name",
137
+ "reflect": true
138
+ },
139
+ "defaultValue": {
140
+ "type": "string",
141
+ "mutable": false,
142
+ "complexType": {
143
+ "original": "string",
144
+ "resolved": "string",
145
+ "references": {}
146
+ },
147
+ "required": false,
148
+ "optional": false,
149
+ "docs": {
150
+ "tags": [],
151
+ "text": "Default value for the input."
152
+ },
153
+ "attribute": "default-value",
154
+ "reflect": true,
155
+ "defaultValue": "''"
156
+ },
157
+ "autofilled": {
158
+ "type": "boolean",
159
+ "mutable": false,
160
+ "complexType": {
161
+ "original": "boolean",
162
+ "resolved": "boolean",
163
+ "references": {}
164
+ },
165
+ "required": false,
166
+ "optional": false,
167
+ "docs": {
168
+ "tags": [],
169
+ "text": "Boolean. Determines if input should be readonly."
170
+ },
171
+ "attribute": "autofilled",
172
+ "reflect": true
173
+ },
174
+ "tooltip": {
175
+ "type": "string",
176
+ "mutable": false,
177
+ "complexType": {
178
+ "original": "string",
179
+ "resolved": "string",
180
+ "references": {}
181
+ },
182
+ "required": false,
183
+ "optional": false,
184
+ "docs": {
185
+ "tags": [],
186
+ "text": "Tooltip text."
187
+ },
188
+ "attribute": "tooltip",
189
+ "reflect": true
190
+ },
191
+ "validation": {
192
+ "type": "unknown",
193
+ "mutable": false,
194
+ "complexType": {
195
+ "original": "ValidationSchema",
196
+ "resolved": "ValidationSchema",
197
+ "references": {
198
+ "ValidationSchema": {
199
+ "location": "import",
200
+ "path": "../../utils/types",
201
+ "id": "../../../../packages/stencil/general-input/src/utils/types.ts::ValidationSchema"
202
+ }
203
+ }
204
+ },
205
+ "required": false,
206
+ "optional": false,
207
+ "docs": {
208
+ "tags": [],
209
+ "text": "Object of validation rules for the input."
210
+ }
211
+ },
212
+ "language": {
213
+ "type": "string",
214
+ "mutable": false,
215
+ "complexType": {
216
+ "original": "string",
217
+ "resolved": "string",
218
+ "references": {}
219
+ },
220
+ "required": false,
221
+ "optional": false,
222
+ "docs": {
223
+ "tags": [],
224
+ "text": "Currently selected language."
225
+ },
226
+ "attribute": "language",
227
+ "reflect": true
228
+ },
229
+ "emitValue": {
230
+ "type": "boolean",
231
+ "mutable": false,
232
+ "complexType": {
233
+ "original": "boolean",
234
+ "resolved": "boolean",
235
+ "references": {}
236
+ },
237
+ "required": false,
238
+ "optional": false,
239
+ "docs": {
240
+ "tags": [],
241
+ "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
242
+ },
243
+ "attribute": "emit-value",
244
+ "reflect": true
245
+ },
246
+ "clientStyling": {
247
+ "type": "string",
248
+ "mutable": false,
249
+ "complexType": {
250
+ "original": "string",
251
+ "resolved": "string",
252
+ "references": {}
253
+ },
254
+ "required": false,
255
+ "optional": false,
256
+ "docs": {
257
+ "tags": [],
258
+ "text": "Client custom styling via inline style"
259
+ },
260
+ "attribute": "client-styling",
261
+ "reflect": true,
262
+ "defaultValue": "''"
263
+ }
264
+ };
265
+ }
266
+ static get states() {
267
+ return {
268
+ "errorMessage": {},
269
+ "isValid": {},
270
+ "limitStylingAppends": {},
271
+ "showTooltip": {}
272
+ };
273
+ }
274
+ static get events() {
275
+ return [{
276
+ "method": "sendValidityState",
277
+ "name": "sendValidityState",
278
+ "bubbles": true,
279
+ "cancelable": true,
280
+ "composed": true,
281
+ "docs": {
282
+ "tags": [],
283
+ "text": ""
284
+ },
285
+ "complexType": {
286
+ "original": "InputStateEvent",
287
+ "resolved": "InputStateEvent",
288
+ "references": {
289
+ "InputStateEvent": {
290
+ "location": "import",
291
+ "path": "../../utils/types",
292
+ "id": "../../../../packages/stencil/general-input/src/utils/types.ts::InputStateEvent"
293
+ }
294
+ }
295
+ }
296
+ }, {
297
+ "method": "sendInputValue",
298
+ "name": "sendInputValue",
299
+ "bubbles": true,
300
+ "cancelable": true,
301
+ "composed": true,
302
+ "docs": {
303
+ "tags": [],
304
+ "text": ""
305
+ },
306
+ "complexType": {
307
+ "original": "InputValueEvent",
308
+ "resolved": "InputValueEvent",
309
+ "references": {
310
+ "InputValueEvent": {
311
+ "location": "import",
312
+ "path": "../../utils/types",
313
+ "id": "../../../../packages/stencil/general-input/src/utils/types.ts::InputValueEvent"
314
+ }
315
+ }
316
+ }
317
+ }];
318
+ }
319
+ static get watchers() {
320
+ return [{
321
+ "propName": "isValid",
322
+ "methodName": "validityChanged"
323
+ }, {
324
+ "propName": "emitValue",
325
+ "methodName": "emitValueHandler"
326
+ }];
327
+ }
328
+ static get listeners() {
329
+ return [{
330
+ "name": "click",
331
+ "method": "handleClickOutside",
332
+ "target": "document",
333
+ "capture": false,
334
+ "passive": false
335
+ }];
336
+ }
322
337
  }