@everymatrix/general-input 1.44.0 → 1.45.2

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