@everymatrix/general-input 1.53.0 → 1.53.10

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 (38) hide show
  1. package/dist/cjs/checkbox-group-input_10.cjs.entry.js +1707 -584
  2. package/dist/cjs/general-input.cjs.entry.js +17 -18
  3. package/dist/cjs/general-input.cjs.js +2 -2
  4. package/dist/cjs/{index-01420a64.js → index-1277658a.js} +171 -76
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/toggle-checkbox-input.cjs.entry.js +12 -16
  7. package/dist/collection/collection-manifest.json +1 -1
  8. package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +33 -17
  9. package/dist/collection/components/checkbox-input/checkbox-input.js +29 -14
  10. package/dist/collection/components/date-input/date-input.js +35 -17
  11. package/dist/collection/components/email-input/email-input.js +29 -16
  12. package/dist/collection/components/general-input/general-input.js +51 -18
  13. package/dist/collection/components/number-input/number-input.js +27 -15
  14. package/dist/collection/components/password-input/password-input.js +34 -19
  15. package/dist/collection/components/radio-input/radio-input.js +24 -14
  16. package/dist/collection/components/select-input/select-input.js +39 -17
  17. package/dist/collection/components/tel-input/tel-input.js +31 -17
  18. package/dist/collection/components/text-input/text-input.js +36 -17
  19. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +33 -17
  20. package/dist/esm/checkbox-group-input_10.entry.js +1742 -619
  21. package/dist/esm/general-input.entry.js +17 -18
  22. package/dist/esm/general-input.js +3 -3
  23. package/dist/esm/{index-542cff81.js → index-b1fc8a5f.js} +171 -76
  24. package/dist/esm/loader.js +2 -2
  25. package/dist/esm/toggle-checkbox-input.entry.js +12 -16
  26. package/dist/general-input/general-input.esm.js +1 -1
  27. package/dist/general-input/p-09c73744.js +2 -0
  28. package/dist/general-input/p-1922ef4e.entry.js +1 -0
  29. package/dist/general-input/{p-cc4fcb3f.entry.js → p-5b3e1098.entry.js} +1912 -926
  30. package/dist/general-input/p-ab0375f4.entry.js +1 -0
  31. 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
  32. 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
  33. package/package.json +1 -1
  34. package/dist/general-input/p-3cab3b95.entry.js +0 -1
  35. package/dist/general-input/p-3ce1e382.js +0 -2
  36. package/dist/general-input/p-e5532cb1.entry.js +0 -1
  37. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.d.ts +0 -2
  38. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.dev.d.ts +0 -2
@@ -4,6 +4,20 @@ import "@vaadin/combo-box";
4
4
  import tooltipIcon from "../../utils/tooltipIcon.svg";
5
5
  export class SelectInput {
6
6
  constructor() {
7
+ /**
8
+ * Default value for the input.
9
+ */
10
+ this.defaultValue = '';
11
+ /**
12
+ * Options of the input.
13
+ */
14
+ this.options = [];
15
+ /**
16
+ * Client custom styling via inline style
17
+ */
18
+ this.clientStyling = '';
19
+ this.limitStylingAppends = false;
20
+ this.showTooltip = false;
7
21
  this.touched = false;
8
22
  this.handleChange = (event) => {
9
23
  this.touched = true;
@@ -32,22 +46,6 @@ export class SelectInput {
32
46
  sheet.innerHTML = this.clientStyling;
33
47
  this.stylingContainer.prepend(sheet);
34
48
  };
35
- this.name = undefined;
36
- this.displayName = undefined;
37
- this.placeholder = undefined;
38
- this.action = undefined;
39
- this.defaultValue = '';
40
- this.autofilled = undefined;
41
- this.tooltip = undefined;
42
- this.options = [];
43
- this.validation = undefined;
44
- this.language = undefined;
45
- this.emitValue = undefined;
46
- this.clientStyling = '';
47
- this.errorMessage = undefined;
48
- this.isValid = undefined;
49
- this.limitStylingAppends = false;
50
- this.showTooltip = false;
51
49
  }
52
50
  validityChanged() {
53
51
  this.validityStateHandler({ valid: this.isValid, name: this.name });
@@ -171,6 +169,8 @@ export class SelectInput {
171
169
  "tags": [],
172
170
  "text": "Name of the input."
173
171
  },
172
+ "getter": false,
173
+ "setter": false,
174
174
  "attribute": "name",
175
175
  "reflect": true
176
176
  },
@@ -188,6 +188,8 @@ export class SelectInput {
188
188
  "tags": [],
189
189
  "text": "Name of input to be shown to the user."
190
190
  },
191
+ "getter": false,
192
+ "setter": false,
191
193
  "attribute": "display-name",
192
194
  "reflect": true
193
195
  },
@@ -205,6 +207,8 @@ export class SelectInput {
205
207
  "tags": [],
206
208
  "text": "Placeholder text to be shown."
207
209
  },
210
+ "getter": false,
211
+ "setter": false,
208
212
  "attribute": "placeholder",
209
213
  "reflect": true
210
214
  },
@@ -222,6 +226,8 @@ export class SelectInput {
222
226
  "tags": [],
223
227
  "text": "Special behaviour an input should have. Can be fetching for data."
224
228
  },
229
+ "getter": false,
230
+ "setter": false,
225
231
  "attribute": "action",
226
232
  "reflect": true
227
233
  },
@@ -239,6 +245,8 @@ export class SelectInput {
239
245
  "tags": [],
240
246
  "text": "Default value for the input."
241
247
  },
248
+ "getter": false,
249
+ "setter": false,
242
250
  "attribute": "default-value",
243
251
  "reflect": true,
244
252
  "defaultValue": "''"
@@ -257,6 +265,8 @@ export class SelectInput {
257
265
  "tags": [],
258
266
  "text": "Boolean. Determines if input should be readonly."
259
267
  },
268
+ "getter": false,
269
+ "setter": false,
260
270
  "attribute": "autofilled",
261
271
  "reflect": true
262
272
  },
@@ -274,6 +284,8 @@ export class SelectInput {
274
284
  "tags": [],
275
285
  "text": "Tooltip text."
276
286
  },
287
+ "getter": false,
288
+ "setter": false,
277
289
  "attribute": "tooltip",
278
290
  "reflect": true
279
291
  },
@@ -297,6 +309,8 @@ export class SelectInput {
297
309
  "tags": [],
298
310
  "text": "Options of the input."
299
311
  },
312
+ "getter": false,
313
+ "setter": false,
300
314
  "defaultValue": "[]"
301
315
  },
302
316
  "validation": {
@@ -318,7 +332,9 @@ export class SelectInput {
318
332
  "docs": {
319
333
  "tags": [],
320
334
  "text": "Object of validation rules for the input."
321
- }
335
+ },
336
+ "getter": false,
337
+ "setter": false
322
338
  },
323
339
  "language": {
324
340
  "type": "string",
@@ -334,6 +350,8 @@ export class SelectInput {
334
350
  "tags": [],
335
351
  "text": "Currently selected language."
336
352
  },
353
+ "getter": false,
354
+ "setter": false,
337
355
  "attribute": "language",
338
356
  "reflect": true
339
357
  },
@@ -351,6 +369,8 @@ export class SelectInput {
351
369
  "tags": [],
352
370
  "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
353
371
  },
372
+ "getter": false,
373
+ "setter": false,
354
374
  "attribute": "emit-value",
355
375
  "reflect": true
356
376
  },
@@ -368,6 +388,8 @@ export class SelectInput {
368
388
  "tags": [],
369
389
  "text": "Client custom styling via inline style"
370
390
  },
391
+ "getter": false,
392
+ "setter": false,
371
393
  "attribute": "client-styling",
372
394
  "reflect": true,
373
395
  "defaultValue": "''"
@@ -4,6 +4,12 @@ import "@vaadin/combo-box";
4
4
  import tooltipIcon from "../../utils/tooltipIcon.svg";
5
5
  export class TelInput {
6
6
  constructor() {
7
+ /**
8
+ * Client custom styling via inline style
9
+ */
10
+ this.clientStyling = '';
11
+ this.limitStylingAppends = false;
12
+ this.showTooltip = false;
7
13
  this.validationPattern = '';
8
14
  this.touched = false;
9
15
  this.handleInput = (event) => {
@@ -29,22 +35,6 @@ export class TelInput {
29
35
  sheet.innerHTML = this.clientStyling;
30
36
  this.stylingContainer.prepend(sheet);
31
37
  };
32
- this.name = undefined;
33
- this.displayName = undefined;
34
- this.placeholder = undefined;
35
- this.showLabels = undefined;
36
- this.action = undefined;
37
- this.validation = undefined;
38
- this.defaultValue = undefined;
39
- this.autofilled = undefined;
40
- this.tooltip = undefined;
41
- this.language = undefined;
42
- this.emitValue = undefined;
43
- this.clientStyling = '';
44
- this.isValid = undefined;
45
- this.errorMessage = undefined;
46
- this.limitStylingAppends = false;
47
- this.showTooltip = false;
48
38
  }
49
39
  validityChanged() {
50
40
  this.validityStateHandler({ valid: this.isValid, name: this.name });
@@ -187,6 +177,8 @@ export class TelInput {
187
177
  "tags": [],
188
178
  "text": "Name of the input."
189
179
  },
180
+ "getter": false,
181
+ "setter": false,
190
182
  "attribute": "name",
191
183
  "reflect": true
192
184
  },
@@ -204,6 +196,8 @@ export class TelInput {
204
196
  "tags": [],
205
197
  "text": "Name of input to be shown to the user."
206
198
  },
199
+ "getter": false,
200
+ "setter": false,
207
201
  "attribute": "display-name",
208
202
  "reflect": true
209
203
  },
@@ -221,6 +215,8 @@ export class TelInput {
221
215
  "tags": [],
222
216
  "text": "Placeholder text to be shown."
223
217
  },
218
+ "getter": false,
219
+ "setter": false,
224
220
  "attribute": "placeholder",
225
221
  "reflect": true
226
222
  },
@@ -238,6 +234,8 @@ export class TelInput {
238
234
  "tags": [],
239
235
  "text": "Boolean that defines if the widget show labels or placeholders."
240
236
  },
237
+ "getter": false,
238
+ "setter": false,
241
239
  "attribute": "show-labels",
242
240
  "reflect": true
243
241
  },
@@ -255,6 +253,8 @@ export class TelInput {
255
253
  "tags": [],
256
254
  "text": "Special behaviour an input should have. Can be fetching for data."
257
255
  },
256
+ "getter": false,
257
+ "setter": false,
258
258
  "attribute": "action",
259
259
  "reflect": true
260
260
  },
@@ -277,7 +277,9 @@ export class TelInput {
277
277
  "docs": {
278
278
  "tags": [],
279
279
  "text": "Object of validation rules for the input."
280
- }
280
+ },
281
+ "getter": false,
282
+ "setter": false
281
283
  },
282
284
  "defaultValue": {
283
285
  "type": "any",
@@ -293,6 +295,8 @@ export class TelInput {
293
295
  "tags": [],
294
296
  "text": "Default value for the input."
295
297
  },
298
+ "getter": false,
299
+ "setter": false,
296
300
  "attribute": "default-value",
297
301
  "reflect": true
298
302
  },
@@ -310,6 +314,8 @@ export class TelInput {
310
314
  "tags": [],
311
315
  "text": "Boolean. Determines if input should be readonly."
312
316
  },
317
+ "getter": false,
318
+ "setter": false,
313
319
  "attribute": "autofilled",
314
320
  "reflect": true
315
321
  },
@@ -327,6 +333,8 @@ export class TelInput {
327
333
  "tags": [],
328
334
  "text": "Tooltip text."
329
335
  },
336
+ "getter": false,
337
+ "setter": false,
330
338
  "attribute": "tooltip",
331
339
  "reflect": true
332
340
  },
@@ -344,6 +352,8 @@ export class TelInput {
344
352
  "tags": [],
345
353
  "text": "Currently selected language."
346
354
  },
355
+ "getter": false,
356
+ "setter": false,
347
357
  "attribute": "language",
348
358
  "reflect": true
349
359
  },
@@ -361,6 +371,8 @@ export class TelInput {
361
371
  "tags": [],
362
372
  "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
363
373
  },
374
+ "getter": false,
375
+ "setter": false,
364
376
  "attribute": "emit-value",
365
377
  "reflect": true
366
378
  },
@@ -378,6 +390,8 @@ export class TelInput {
378
390
  "tags": [],
379
391
  "text": "Client custom styling via inline style"
380
392
  },
393
+ "getter": false,
394
+ "setter": false,
381
395
  "attribute": "client-styling",
382
396
  "reflect": true,
383
397
  "defaultValue": "''"
@@ -3,6 +3,17 @@ import { translate } from "../../utils/locale.utils";
3
3
  import tooltipIcon from "../../utils/tooltipIcon.svg";
4
4
  export class TextInput {
5
5
  constructor() {
6
+ /**
7
+ * Default value for the input.
8
+ */
9
+ this.defaultValue = '';
10
+ /**
11
+ * Client custom styling via inline style
12
+ */
13
+ this.clientStyling = '';
14
+ this.errorMessage = '';
15
+ this.limitStylingAppends = false;
16
+ this.showTooltip = false;
6
17
  this.value = '';
7
18
  this.validationPattern = '';
8
19
  this.duplicateInputValue = null;
@@ -32,22 +43,6 @@ export class TextInput {
32
43
  sheet.innerHTML = this.clientStyling;
33
44
  this.stylingContainer.prepend(sheet);
34
45
  };
35
- this.name = undefined;
36
- this.displayName = undefined;
37
- this.placeholder = undefined;
38
- this.validation = undefined;
39
- this.defaultValue = '';
40
- this.autofilled = undefined;
41
- this.tooltip = undefined;
42
- this.language = undefined;
43
- this.checkValidity = undefined;
44
- this.emitValue = undefined;
45
- this.isDuplicateInput = undefined;
46
- this.clientStyling = '';
47
- this.isValid = undefined;
48
- this.errorMessage = '';
49
- this.limitStylingAppends = false;
50
- this.showTooltip = false;
51
46
  }
52
47
  validityChanged() {
53
48
  this.validityStateHandler({ valid: this.isValid, name: this.name });
@@ -185,6 +180,8 @@ export class TextInput {
185
180
  "tags": [],
186
181
  "text": "Name of the input."
187
182
  },
183
+ "getter": false,
184
+ "setter": false,
188
185
  "attribute": "name",
189
186
  "reflect": true
190
187
  },
@@ -202,6 +199,8 @@ export class TextInput {
202
199
  "tags": [],
203
200
  "text": "Name of input to be shown to the user."
204
201
  },
202
+ "getter": false,
203
+ "setter": false,
205
204
  "attribute": "display-name",
206
205
  "reflect": true
207
206
  },
@@ -219,6 +218,8 @@ export class TextInput {
219
218
  "tags": [],
220
219
  "text": "Placeholder text to be shown."
221
220
  },
221
+ "getter": false,
222
+ "setter": false,
222
223
  "attribute": "placeholder",
223
224
  "reflect": true
224
225
  },
@@ -241,7 +242,9 @@ export class TextInput {
241
242
  "docs": {
242
243
  "tags": [],
243
244
  "text": "Object of validation rules for the input."
244
- }
245
+ },
246
+ "getter": false,
247
+ "setter": false
245
248
  },
246
249
  "defaultValue": {
247
250
  "type": "string",
@@ -257,6 +260,8 @@ export class TextInput {
257
260
  "tags": [],
258
261
  "text": "Default value for the input."
259
262
  },
263
+ "getter": false,
264
+ "setter": false,
260
265
  "attribute": "default-value",
261
266
  "reflect": true,
262
267
  "defaultValue": "''"
@@ -275,6 +280,8 @@ export class TextInput {
275
280
  "tags": [],
276
281
  "text": "Boolean. Determines if input should be readonly."
277
282
  },
283
+ "getter": false,
284
+ "setter": false,
278
285
  "attribute": "autofilled",
279
286
  "reflect": true
280
287
  },
@@ -292,6 +299,8 @@ export class TextInput {
292
299
  "tags": [],
293
300
  "text": "Tooltip text."
294
301
  },
302
+ "getter": false,
303
+ "setter": false,
295
304
  "attribute": "tooltip",
296
305
  "reflect": true
297
306
  },
@@ -309,6 +318,8 @@ export class TextInput {
309
318
  "tags": [],
310
319
  "text": "Currently selected language."
311
320
  },
321
+ "getter": false,
322
+ "setter": false,
312
323
  "attribute": "language",
313
324
  "reflect": true
314
325
  },
@@ -326,6 +337,8 @@ export class TextInput {
326
337
  "tags": [],
327
338
  "text": "State passed down from the parent element. Will trigger the input to check for validity."
328
339
  },
340
+ "getter": false,
341
+ "setter": false,
329
342
  "attribute": "check-validity",
330
343
  "reflect": true
331
344
  },
@@ -343,6 +356,8 @@ export class TextInput {
343
356
  "tags": [],
344
357
  "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
345
358
  },
359
+ "getter": false,
360
+ "setter": false,
346
361
  "attribute": "emit-value",
347
362
  "reflect": true
348
363
  },
@@ -360,6 +375,8 @@ export class TextInput {
360
375
  "tags": [],
361
376
  "text": "Boolean that triggers certain validation rules, for duplicated inputs."
362
377
  },
378
+ "getter": false,
379
+ "setter": false,
363
380
  "attribute": "is-duplicate-input",
364
381
  "reflect": true
365
382
  },
@@ -377,6 +394,8 @@ export class TextInput {
377
394
  "tags": [],
378
395
  "text": "Client custom styling via inline style"
379
396
  },
397
+ "getter": false,
398
+ "setter": false,
380
399
  "attribute": "client-styling",
381
400
  "reflect": true,
382
401
  "defaultValue": "''"
@@ -3,27 +3,23 @@ import { translate } from "../../utils/locale.utils";
3
3
  import tooltipIcon from "../../utils/tooltipIcon.svg";
4
4
  export class ToggleCheckboxInput {
5
5
  constructor() {
6
+ /**
7
+ * Default value for the input.
8
+ */
9
+ this.defaultValue = '';
10
+ /**
11
+ * Client custom styling via inline style
12
+ */
13
+ this.clientStyling = '';
14
+ this.limitStylingAppends = false;
15
+ this.showTooltip = false;
16
+ this.showFields = this.defaultValue === 'true';
6
17
  this.value = '';
7
18
  this.setClientStyling = () => {
8
19
  let sheet = document.createElement('style');
9
20
  sheet.innerHTML = this.clientStyling;
10
21
  this.stylingContainer.prepend(sheet);
11
22
  };
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 = this.defaultValue === 'true';
27
23
  }
28
24
  validityStateHandler(inputStateEvent) {
29
25
  this.sendValidityState.emit(inputStateEvent);
@@ -103,6 +99,8 @@ export class ToggleCheckboxInput {
103
99
  "tags": [],
104
100
  "text": "Name of the input."
105
101
  },
102
+ "getter": false,
103
+ "setter": false,
106
104
  "attribute": "name",
107
105
  "reflect": true
108
106
  },
@@ -120,6 +118,8 @@ export class ToggleCheckboxInput {
120
118
  "tags": [],
121
119
  "text": "Name of input to be shown to the user."
122
120
  },
121
+ "getter": false,
122
+ "setter": false,
123
123
  "attribute": "display-name",
124
124
  "reflect": true
125
125
  },
@@ -137,6 +137,8 @@ export class ToggleCheckboxInput {
137
137
  "tags": [],
138
138
  "text": "Default value for the input."
139
139
  },
140
+ "getter": false,
141
+ "setter": false,
140
142
  "attribute": "default-value",
141
143
  "reflect": true,
142
144
  "defaultValue": "''"
@@ -160,7 +162,9 @@ export class ToggleCheckboxInput {
160
162
  "docs": {
161
163
  "tags": [],
162
164
  "text": "Options of the input."
163
- }
165
+ },
166
+ "getter": false,
167
+ "setter": false
164
168
  },
165
169
  "autofilled": {
166
170
  "type": "boolean",
@@ -176,6 +180,8 @@ export class ToggleCheckboxInput {
176
180
  "tags": [],
177
181
  "text": "Boolean. Determines if input should be readonly."
178
182
  },
183
+ "getter": false,
184
+ "setter": false,
179
185
  "attribute": "autofilled",
180
186
  "reflect": true
181
187
  },
@@ -193,6 +199,8 @@ export class ToggleCheckboxInput {
193
199
  "tags": [],
194
200
  "text": "Tooltip text."
195
201
  },
202
+ "getter": false,
203
+ "setter": false,
196
204
  "attribute": "tooltip",
197
205
  "reflect": true
198
206
  },
@@ -215,7 +223,9 @@ export class ToggleCheckboxInput {
215
223
  "docs": {
216
224
  "tags": [],
217
225
  "text": "Object of validation rules for the input."
218
- }
226
+ },
227
+ "getter": false,
228
+ "setter": false
219
229
  },
220
230
  "language": {
221
231
  "type": "string",
@@ -231,6 +241,8 @@ export class ToggleCheckboxInput {
231
241
  "tags": [],
232
242
  "text": "Currently selected language."
233
243
  },
244
+ "getter": false,
245
+ "setter": false,
234
246
  "attribute": "language",
235
247
  "reflect": true
236
248
  },
@@ -248,6 +260,8 @@ export class ToggleCheckboxInput {
248
260
  "tags": [],
249
261
  "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
250
262
  },
263
+ "getter": false,
264
+ "setter": false,
251
265
  "attribute": "emit-value",
252
266
  "reflect": true
253
267
  },
@@ -265,6 +279,8 @@ export class ToggleCheckboxInput {
265
279
  "tags": [],
266
280
  "text": "Client custom styling via inline style"
267
281
  },
282
+ "getter": false,
283
+ "setter": false,
268
284
  "attribute": "client-styling",
269
285
  "reflect": true,
270
286
  "defaultValue": "''"