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