@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,373 +1,379 @@
1
- import { Component, h, Prop, Host } from '@stencil/core';
2
- import { getTranslations } from '../../utils/locale.utils';
1
+ import { h, Host } from "@stencil/core";
2
+ import { getTranslations } from "../../utils/locale.utils";
3
3
  export class GeneralInput {
4
- constructor() {
5
- /**
6
- * Type the general-input should take. Can take the default HTML input values.
7
- */
8
- this.type = 'text';
9
- /**
10
- * Client custom styling via inline style
11
- */
12
- this.clientStyling = '';
13
- /**
14
- * Translations via URL
15
- */
16
- this.translationUrl = '';
17
- /**
18
- * Emit event on click
19
- */
20
- this.emitOnClick = false;
21
- this.handleClick = () => {
22
- if (this.emitOnClick) {
23
- window.postMessage({ type: `registration${this.name}Clicked` }, window.location.href);
24
- }
25
- };
26
- }
27
- connectedCallback() {
28
- if (this.translationUrl) {
29
- getTranslations(this.translationUrl);
4
+ constructor() {
5
+ this.handleClick = (event) => {
6
+ if (this.emitOnClick) {
7
+ event.stopPropagation();
8
+ window.postMessage({ type: `registration${this.name}Clicked` }, window.location.href);
9
+ }
10
+ };
11
+ this.type = 'text';
12
+ this.name = undefined;
13
+ this.displayName = undefined;
14
+ this.placeholder = undefined;
15
+ this.action = undefined;
16
+ this.validation = undefined;
17
+ this.options = undefined;
18
+ this.language = undefined;
19
+ this.autofilled = undefined;
20
+ this.tooltip = undefined;
21
+ this.defaultValue = undefined;
22
+ this.emitValue = undefined;
23
+ this.isDuplicateInput = undefined;
24
+ this.clientStyling = '';
25
+ this.dateFormat = undefined;
26
+ this.translationUrl = '';
27
+ this.emitOnClick = false;
30
28
  }
31
- }
32
- renderInput() {
33
- var _a;
34
- switch ((_a = this.type) === null || _a === void 0 ? void 0 : _a.toLowerCase()) {
35
- case 'text':
36
- return h("text-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
37
- case 'email':
38
- return h("email-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
39
- case 'number':
40
- return h("number-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
41
- case 'checkbox':
42
- return h("checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, emitValue: this.emitValue, defaultValue: this.defaultValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip });
43
- case 'checkboxgroup':
44
- return h("checkbox-group-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, options: this.options });
45
- case 'togglecheckbox':
46
- return h("toggle-checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, options: this.options });
47
- case 'datetime':
48
- return h("date-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder, dateFormat: this.dateFormat });
49
- case 'password':
50
- return h("password-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
51
- case 'radio':
52
- return h("radio-input", { name: this.name, displayName: this.displayName, optionsGroup: this.options, validation: this.validation, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling });
53
- case 'tel':
54
- return h("tel-input", { name: this.name, action: this.action, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, emitValue: this.emitValue, language: this.language, autofilled: this.autofilled, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
55
- case 'dropdown':
56
- return h("select-input", { name: this.name, action: this.action, defaultValue: this.defaultValue, displayName: this.displayName, options: this.options, validation: this.validation, emitValue: this.emitValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
57
- default:
58
- return h("p", null,
59
- "The ",
60
- this.type,
61
- " input type is not valid");
29
+ connectedCallback() {
30
+ if (this.translationUrl) {
31
+ getTranslations(this.translationUrl);
32
+ }
62
33
  }
63
- }
64
- render() {
65
- return (h(Host, { class: `general-input--${this.name}`, onClick: this.handleClick }, this.renderInput()));
66
- }
67
- static get is() { return "general-input"; }
68
- static get encapsulation() { return "shadow"; }
69
- static get originalStyleUrls() { return {
70
- "$": ["general-input.scss"]
71
- }; }
72
- static get styleUrls() { return {
73
- "$": ["general-input.css"]
74
- }; }
75
- static get properties() { return {
76
- "type": {
77
- "type": "string",
78
- "mutable": false,
79
- "complexType": {
80
- "original": "string",
81
- "resolved": "string",
82
- "references": {}
83
- },
84
- "required": false,
85
- "optional": false,
86
- "docs": {
87
- "tags": [],
88
- "text": "Type the general-input should take. Can take the default HTML input values."
89
- },
90
- "attribute": "type",
91
- "reflect": true,
92
- "defaultValue": "'text'"
93
- },
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
- "placeholder": {
129
- "type": "string",
130
- "mutable": false,
131
- "complexType": {
132
- "original": "string",
133
- "resolved": "string",
134
- "references": {}
135
- },
136
- "required": false,
137
- "optional": false,
138
- "docs": {
139
- "tags": [],
140
- "text": "Placeholder text to be shown."
141
- },
142
- "attribute": "placeholder",
143
- "reflect": true
144
- },
145
- "action": {
146
- "type": "string",
147
- "mutable": false,
148
- "complexType": {
149
- "original": "string",
150
- "resolved": "string",
151
- "references": {}
152
- },
153
- "required": false,
154
- "optional": false,
155
- "docs": {
156
- "tags": [],
157
- "text": "Special behaviour an input should have. Can be fetching for data."
158
- },
159
- "attribute": "action",
160
- "reflect": true
161
- },
162
- "validation": {
163
- "type": "unknown",
164
- "mutable": false,
165
- "complexType": {
166
- "original": "ValidationSchema",
167
- "resolved": "ValidationSchema",
168
- "references": {
169
- "ValidationSchema": {
170
- "location": "import",
171
- "path": "../../utils/types"
172
- }
34
+ renderInput() {
35
+ var _a;
36
+ switch ((_a = this.type) === null || _a === void 0 ? void 0 : _a.toLowerCase()) {
37
+ case 'text':
38
+ return h("text-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
39
+ case 'email':
40
+ return h("email-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
41
+ case 'number':
42
+ return h("number-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
43
+ case 'checkbox':
44
+ return h("checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, emitValue: this.emitValue, defaultValue: this.defaultValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip });
45
+ case 'checkboxgroup':
46
+ return h("checkbox-group-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, options: this.options });
47
+ case 'togglecheckbox':
48
+ return h("toggle-checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, options: this.options, "emit-on-click": this.emitOnClick });
49
+ case 'datetime':
50
+ return h("date-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder, dateFormat: this.dateFormat });
51
+ case 'password':
52
+ return h("password-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
53
+ case 'radio':
54
+ return h("radio-input", { name: this.name, displayName: this.displayName, optionsGroup: this.options, validation: this.validation, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling });
55
+ case 'tel':
56
+ return h("tel-input", { name: this.name, action: this.action, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, emitValue: this.emitValue, language: this.language, autofilled: this.autofilled, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
57
+ case 'dropdown':
58
+ return h("select-input", { name: this.name, action: this.action, defaultValue: this.defaultValue, displayName: this.displayName, options: this.options, validation: this.validation, emitValue: this.emitValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
59
+ default:
60
+ return h("p", null, "The ", this.type, " input type is not valid");
173
61
  }
174
- },
175
- "required": false,
176
- "optional": false,
177
- "docs": {
178
- "tags": [],
179
- "text": "Object of validation rules for the input."
180
- }
181
- },
182
- "options": {
183
- "type": "any",
184
- "mutable": false,
185
- "complexType": {
186
- "original": "any",
187
- "resolved": "any",
188
- "references": {}
189
- },
190
- "required": false,
191
- "optional": false,
192
- "docs": {
193
- "tags": [],
194
- "text": "For input elements that have multiple options or choises."
195
- },
196
- "attribute": "options",
197
- "reflect": true
198
- },
199
- "language": {
200
- "type": "string",
201
- "mutable": false,
202
- "complexType": {
203
- "original": "string",
204
- "resolved": "string",
205
- "references": {}
206
- },
207
- "required": false,
208
- "optional": false,
209
- "docs": {
210
- "tags": [],
211
- "text": "Currently selected language."
212
- },
213
- "attribute": "language",
214
- "reflect": true
215
- },
216
- "autofilled": {
217
- "type": "boolean",
218
- "mutable": false,
219
- "complexType": {
220
- "original": "boolean",
221
- "resolved": "boolean",
222
- "references": {}
223
- },
224
- "required": false,
225
- "optional": false,
226
- "docs": {
227
- "tags": [],
228
- "text": "Boolean. Determines if input should be readonly."
229
- },
230
- "attribute": "autofilled",
231
- "reflect": true
232
- },
233
- "tooltip": {
234
- "type": "string",
235
- "mutable": false,
236
- "complexType": {
237
- "original": "string",
238
- "resolved": "string",
239
- "references": {}
240
- },
241
- "required": false,
242
- "optional": false,
243
- "docs": {
244
- "tags": [],
245
- "text": "Tooltip text."
246
- },
247
- "attribute": "tooltip",
248
- "reflect": true
249
- },
250
- "defaultValue": {
251
- "type": "any",
252
- "mutable": false,
253
- "complexType": {
254
- "original": "any",
255
- "resolved": "any",
256
- "references": {}
257
- },
258
- "required": false,
259
- "optional": false,
260
- "docs": {
261
- "tags": [],
262
- "text": "Default value for the input."
263
- },
264
- "attribute": "default-value",
265
- "reflect": true
266
- },
267
- "emitValue": {
268
- "type": "boolean",
269
- "mutable": false,
270
- "complexType": {
271
- "original": "boolean",
272
- "resolved": "boolean",
273
- "references": {}
274
- },
275
- "required": false,
276
- "optional": false,
277
- "docs": {
278
- "tags": [],
279
- "text": "State passed down from the parent element. Will trigger the child specialised input to send it's value through an event."
280
- },
281
- "attribute": "emit-value",
282
- "reflect": true
283
- },
284
- "isDuplicateInput": {
285
- "type": "boolean",
286
- "mutable": false,
287
- "complexType": {
288
- "original": "boolean",
289
- "resolved": "boolean",
290
- "references": {}
291
- },
292
- "required": false,
293
- "optional": false,
294
- "docs": {
295
- "tags": [],
296
- "text": "Boolean that triggers certain validation rules, for duplicated inputs."
297
- },
298
- "attribute": "is-duplicate-input",
299
- "reflect": true
300
- },
301
- "clientStyling": {
302
- "type": "any",
303
- "mutable": false,
304
- "complexType": {
305
- "original": "any",
306
- "resolved": "any",
307
- "references": {}
308
- },
309
- "required": false,
310
- "optional": false,
311
- "docs": {
312
- "tags": [],
313
- "text": "Client custom styling via inline style"
314
- },
315
- "attribute": "client-styling",
316
- "reflect": true,
317
- "defaultValue": "''"
318
- },
319
- "dateFormat": {
320
- "type": "string",
321
- "mutable": false,
322
- "complexType": {
323
- "original": "string",
324
- "resolved": "string",
325
- "references": {}
326
- },
327
- "required": false,
328
- "optional": false,
329
- "docs": {
330
- "tags": [],
331
- "text": "Date format for date picker."
332
- },
333
- "attribute": "date-format",
334
- "reflect": true
335
- },
336
- "translationUrl": {
337
- "type": "string",
338
- "mutable": false,
339
- "complexType": {
340
- "original": "string",
341
- "resolved": "string",
342
- "references": {}
343
- },
344
- "required": false,
345
- "optional": false,
346
- "docs": {
347
- "tags": [],
348
- "text": "Translations via URL"
349
- },
350
- "attribute": "translation-url",
351
- "reflect": true,
352
- "defaultValue": "''"
353
- },
354
- "emitOnClick": {
355
- "type": "boolean",
356
- "mutable": false,
357
- "complexType": {
358
- "original": "boolean",
359
- "resolved": "boolean",
360
- "references": {}
361
- },
362
- "required": false,
363
- "optional": false,
364
- "docs": {
365
- "tags": [],
366
- "text": "Emit event on click"
367
- },
368
- "attribute": "emit-on-click",
369
- "reflect": true,
370
- "defaultValue": "false"
371
62
  }
372
- }; }
63
+ render() {
64
+ return (h(Host, { key: '00fe51389e06cbdc9225d3246bc6c629d4cf15d8', class: `general-input--${this.name}`, onClick: this.handleClick }, this.renderInput()));
65
+ }
66
+ static get is() { return "general-input"; }
67
+ static get encapsulation() { return "shadow"; }
68
+ static get originalStyleUrls() {
69
+ return {
70
+ "$": ["general-input.scss"]
71
+ };
72
+ }
73
+ static get styleUrls() {
74
+ return {
75
+ "$": ["general-input.css"]
76
+ };
77
+ }
78
+ static get properties() {
79
+ return {
80
+ "type": {
81
+ "type": "string",
82
+ "mutable": false,
83
+ "complexType": {
84
+ "original": "string",
85
+ "resolved": "string",
86
+ "references": {}
87
+ },
88
+ "required": false,
89
+ "optional": false,
90
+ "docs": {
91
+ "tags": [],
92
+ "text": "Type the general-input should take. Can take the default HTML input values."
93
+ },
94
+ "attribute": "type",
95
+ "reflect": true,
96
+ "defaultValue": "'text'"
97
+ },
98
+ "name": {
99
+ "type": "string",
100
+ "mutable": false,
101
+ "complexType": {
102
+ "original": "string",
103
+ "resolved": "string",
104
+ "references": {}
105
+ },
106
+ "required": false,
107
+ "optional": false,
108
+ "docs": {
109
+ "tags": [],
110
+ "text": "Name of the input."
111
+ },
112
+ "attribute": "name",
113
+ "reflect": true
114
+ },
115
+ "displayName": {
116
+ "type": "string",
117
+ "mutable": false,
118
+ "complexType": {
119
+ "original": "string",
120
+ "resolved": "string",
121
+ "references": {}
122
+ },
123
+ "required": false,
124
+ "optional": false,
125
+ "docs": {
126
+ "tags": [],
127
+ "text": "Name of input to be shown to the user."
128
+ },
129
+ "attribute": "display-name",
130
+ "reflect": true
131
+ },
132
+ "placeholder": {
133
+ "type": "string",
134
+ "mutable": false,
135
+ "complexType": {
136
+ "original": "string",
137
+ "resolved": "string",
138
+ "references": {}
139
+ },
140
+ "required": false,
141
+ "optional": false,
142
+ "docs": {
143
+ "tags": [],
144
+ "text": "Placeholder text to be shown."
145
+ },
146
+ "attribute": "placeholder",
147
+ "reflect": true
148
+ },
149
+ "action": {
150
+ "type": "string",
151
+ "mutable": false,
152
+ "complexType": {
153
+ "original": "string",
154
+ "resolved": "string",
155
+ "references": {}
156
+ },
157
+ "required": false,
158
+ "optional": false,
159
+ "docs": {
160
+ "tags": [],
161
+ "text": "Special behaviour an input should have. Can be fetching for data."
162
+ },
163
+ "attribute": "action",
164
+ "reflect": true
165
+ },
166
+ "validation": {
167
+ "type": "unknown",
168
+ "mutable": false,
169
+ "complexType": {
170
+ "original": "ValidationSchema",
171
+ "resolved": "ValidationSchema",
172
+ "references": {
173
+ "ValidationSchema": {
174
+ "location": "import",
175
+ "path": "../../utils/types",
176
+ "id": "../../../../packages/stencil/general-input/src/utils/types.ts::ValidationSchema"
177
+ }
178
+ }
179
+ },
180
+ "required": false,
181
+ "optional": false,
182
+ "docs": {
183
+ "tags": [],
184
+ "text": "Object of validation rules for the input."
185
+ }
186
+ },
187
+ "options": {
188
+ "type": "any",
189
+ "mutable": false,
190
+ "complexType": {
191
+ "original": "any",
192
+ "resolved": "any",
193
+ "references": {}
194
+ },
195
+ "required": false,
196
+ "optional": false,
197
+ "docs": {
198
+ "tags": [],
199
+ "text": "For input elements that have multiple options or choises."
200
+ },
201
+ "attribute": "options",
202
+ "reflect": true
203
+ },
204
+ "language": {
205
+ "type": "string",
206
+ "mutable": false,
207
+ "complexType": {
208
+ "original": "string",
209
+ "resolved": "string",
210
+ "references": {}
211
+ },
212
+ "required": false,
213
+ "optional": false,
214
+ "docs": {
215
+ "tags": [],
216
+ "text": "Currently selected language."
217
+ },
218
+ "attribute": "language",
219
+ "reflect": true
220
+ },
221
+ "autofilled": {
222
+ "type": "boolean",
223
+ "mutable": false,
224
+ "complexType": {
225
+ "original": "boolean",
226
+ "resolved": "boolean",
227
+ "references": {}
228
+ },
229
+ "required": false,
230
+ "optional": false,
231
+ "docs": {
232
+ "tags": [],
233
+ "text": "Boolean. Determines if input should be readonly."
234
+ },
235
+ "attribute": "autofilled",
236
+ "reflect": true
237
+ },
238
+ "tooltip": {
239
+ "type": "string",
240
+ "mutable": false,
241
+ "complexType": {
242
+ "original": "string",
243
+ "resolved": "string",
244
+ "references": {}
245
+ },
246
+ "required": false,
247
+ "optional": false,
248
+ "docs": {
249
+ "tags": [],
250
+ "text": "Tooltip text."
251
+ },
252
+ "attribute": "tooltip",
253
+ "reflect": true
254
+ },
255
+ "defaultValue": {
256
+ "type": "any",
257
+ "mutable": false,
258
+ "complexType": {
259
+ "original": "any",
260
+ "resolved": "any",
261
+ "references": {}
262
+ },
263
+ "required": false,
264
+ "optional": false,
265
+ "docs": {
266
+ "tags": [],
267
+ "text": "Default value for the input."
268
+ },
269
+ "attribute": "default-value",
270
+ "reflect": true
271
+ },
272
+ "emitValue": {
273
+ "type": "boolean",
274
+ "mutable": false,
275
+ "complexType": {
276
+ "original": "boolean",
277
+ "resolved": "boolean",
278
+ "references": {}
279
+ },
280
+ "required": false,
281
+ "optional": false,
282
+ "docs": {
283
+ "tags": [],
284
+ "text": "State passed down from the parent element. Will trigger the child specialised input to send it's value through an event."
285
+ },
286
+ "attribute": "emit-value",
287
+ "reflect": true
288
+ },
289
+ "isDuplicateInput": {
290
+ "type": "boolean",
291
+ "mutable": false,
292
+ "complexType": {
293
+ "original": "boolean",
294
+ "resolved": "boolean",
295
+ "references": {}
296
+ },
297
+ "required": false,
298
+ "optional": false,
299
+ "docs": {
300
+ "tags": [],
301
+ "text": "Boolean that triggers certain validation rules, for duplicated inputs."
302
+ },
303
+ "attribute": "is-duplicate-input",
304
+ "reflect": true
305
+ },
306
+ "clientStyling": {
307
+ "type": "any",
308
+ "mutable": false,
309
+ "complexType": {
310
+ "original": "any",
311
+ "resolved": "any",
312
+ "references": {}
313
+ },
314
+ "required": false,
315
+ "optional": false,
316
+ "docs": {
317
+ "tags": [],
318
+ "text": "Client custom styling via inline style"
319
+ },
320
+ "attribute": "client-styling",
321
+ "reflect": true,
322
+ "defaultValue": "''"
323
+ },
324
+ "dateFormat": {
325
+ "type": "string",
326
+ "mutable": false,
327
+ "complexType": {
328
+ "original": "string",
329
+ "resolved": "string",
330
+ "references": {}
331
+ },
332
+ "required": false,
333
+ "optional": false,
334
+ "docs": {
335
+ "tags": [],
336
+ "text": "Date format for date picker."
337
+ },
338
+ "attribute": "date-format",
339
+ "reflect": true
340
+ },
341
+ "translationUrl": {
342
+ "type": "string",
343
+ "mutable": false,
344
+ "complexType": {
345
+ "original": "string",
346
+ "resolved": "string",
347
+ "references": {}
348
+ },
349
+ "required": false,
350
+ "optional": false,
351
+ "docs": {
352
+ "tags": [],
353
+ "text": "Translations via URL"
354
+ },
355
+ "attribute": "translation-url",
356
+ "reflect": true,
357
+ "defaultValue": "''"
358
+ },
359
+ "emitOnClick": {
360
+ "type": "boolean",
361
+ "mutable": false,
362
+ "complexType": {
363
+ "original": "boolean",
364
+ "resolved": "boolean",
365
+ "references": {}
366
+ },
367
+ "required": false,
368
+ "optional": false,
369
+ "docs": {
370
+ "tags": [],
371
+ "text": "Emit event on click"
372
+ },
373
+ "attribute": "emit-on-click",
374
+ "reflect": true,
375
+ "defaultValue": "false"
376
+ }
377
+ };
378
+ }
373
379
  }