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