@cscfi/csc-ui 3.0.18 → 3.0.19

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 (65) hide show
  1. package/dist/cjs/c-text-field-open.cjs.entry.js +152 -0
  2. package/dist/cjs/c-text-field-open.cjs.entry.js.map +1 -0
  3. package/dist/cjs/c-text-field-open.entry.cjs.js.map +1 -0
  4. package/dist/cjs/csc-ui.cjs.js +1 -1
  5. package/dist/cjs/index-BTBT6v3v.js +4 -0
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/collection-manifest.json +1 -0
  8. package/dist/collection/components/c-text-field-open/c-text-field-open.css +81 -0
  9. package/dist/collection/components/c-text-field-open/c-text-field-open.js +718 -0
  10. package/dist/collection/components/c-text-field-open/c-text-field-open.js.map +1 -0
  11. package/dist/components/c-text-field-open.d.ts +11 -0
  12. package/dist/components/c-text-field-open.js +204 -0
  13. package/dist/components/c-text-field-open.js.map +1 -0
  14. package/dist/components/index.d.ts +2 -0
  15. package/dist/components/index.js +1 -0
  16. package/dist/components/index.js.map +1 -1
  17. package/dist/csc-ui/c-text-field-open.entry.esm.js.map +1 -0
  18. package/dist/csc-ui/csc-ui.esm.js +1 -1
  19. package/dist/csc-ui/{p-781cde9c.entry.js → p-04f010cd.entry.js} +2 -2
  20. package/dist/csc-ui/{p-ad4cba6c.entry.js → p-13976903.entry.js} +2 -2
  21. package/dist/csc-ui/{p-74dfa0e1.entry.js → p-2acf252a.entry.js} +2 -2
  22. package/dist/csc-ui/p-9806cee5.entry.js +2 -0
  23. package/dist/csc-ui/p-9806cee5.entry.js.map +1 -0
  24. package/dist/csc-ui/{p-Cb-CImk5.js → p-RscoPQxP.js} +2 -2
  25. package/dist/csc-ui/{p-Cb-CImk5.js.map → p-RscoPQxP.js.map} +1 -1
  26. package/dist/csc-ui/{p-82038174.entry.js → p-a0129d80.entry.js} +2 -2
  27. package/dist/csc-ui/{p-516daf81.entry.js → p-b0e03fea.entry.js} +2 -2
  28. package/dist/csc-ui/p-cbafc9a2.entry.js +2 -0
  29. package/dist/csc-ui/{p-73c56177.entry.js.map → p-cbafc9a2.entry.js.map} +1 -1
  30. package/dist/csc-ui/p-e1cec030.entry.js +2 -0
  31. package/dist/csc-ui/{p-2b012d43.entry.js.map → p-e1cec030.entry.js.map} +1 -1
  32. package/dist/csc-ui/{p-3ab98b9a.entry.js → p-e48d90fa.entry.js} +2 -2
  33. package/dist/csc-ui/{p-0b56450b.entry.js → p-ea26b8b0.entry.js} +2 -2
  34. package/dist/csc-ui/{p-0e4d4890.entry.js → p-f62b6b95.entry.js} +2 -2
  35. package/dist/esm/c-accordion-item.entry.js +1 -1
  36. package/dist/esm/c-alert.entry.js +1 -1
  37. package/dist/esm/c-autocomplete_35.entry.js +1 -1
  38. package/dist/esm/c-data-table.entry.js +1 -1
  39. package/dist/esm/c-menu_2.entry.js +1 -1
  40. package/dist/esm/c-pagination.entry.js +1 -1
  41. package/dist/esm/c-swiper.entry.js +1 -1
  42. package/dist/esm/c-tabs.entry.js +1 -1
  43. package/dist/esm/c-tag.entry.js +1 -1
  44. package/dist/esm/c-text-field-open.entry.js +150 -0
  45. package/dist/esm/c-text-field-open.entry.js.map +1 -0
  46. package/dist/esm/c-toast.entry.js +1 -1
  47. package/dist/esm/csc-ui.js +1 -1
  48. package/dist/esm/index-gSzSMY-c.js +4 -0
  49. package/dist/esm/loader.js +1 -1
  50. package/dist/esm/{mdi-Cb-CImk5.js → mdi-RscoPQxP.js} +3 -3
  51. package/dist/esm/{mdi-Cb-CImk5.js.map → mdi-RscoPQxP.js.map} +1 -1
  52. package/dist/types/components/c-text-field-open/c-text-field-open.d.ts +52 -0
  53. package/dist/types/components.d.ts +270 -0
  54. package/package.json +1 -1
  55. package/vscode-data.json +117 -0
  56. package/dist/csc-ui/p-2b012d43.entry.js +0 -2
  57. package/dist/csc-ui/p-73c56177.entry.js +0 -2
  58. /package/dist/csc-ui/{p-781cde9c.entry.js.map → p-04f010cd.entry.js.map} +0 -0
  59. /package/dist/csc-ui/{p-ad4cba6c.entry.js.map → p-13976903.entry.js.map} +0 -0
  60. /package/dist/csc-ui/{p-74dfa0e1.entry.js.map → p-2acf252a.entry.js.map} +0 -0
  61. /package/dist/csc-ui/{p-82038174.entry.js.map → p-a0129d80.entry.js.map} +0 -0
  62. /package/dist/csc-ui/{p-516daf81.entry.js.map → p-b0e03fea.entry.js.map} +0 -0
  63. /package/dist/csc-ui/{p-3ab98b9a.entry.js.map → p-e48d90fa.entry.js.map} +0 -0
  64. /package/dist/csc-ui/{p-0b56450b.entry.js.map → p-ea26b8b0.entry.js.map} +0 -0
  65. /package/dist/csc-ui/{p-0e4d4890.entry.js.map → p-f62b6b95.entry.js.map} +0 -0
@@ -0,0 +1,718 @@
1
+ import { h, Host, } from "@stencil/core";
2
+ import { mdiCalendar, mdiEye, mdiEyeOff } from "@mdi/js";
3
+ export class CTextFieldOpen {
4
+ constructor() {
5
+ this.automaticFocus = false;
6
+ this.automaticCapitalize = '';
7
+ this.autocorrect = '';
8
+ this.autocomplete = '';
9
+ this.disabled = false;
10
+ this.hideDetails = false;
11
+ this.hint = '';
12
+ this.trimWhitespace = false;
13
+ this.labelOnTop = false;
14
+ this.max = null;
15
+ this.min = null;
16
+ this.readonly = false;
17
+ this.required = false;
18
+ this.rows = 1;
19
+ this.shadow = false;
20
+ this.step = null;
21
+ this.type = 'text';
22
+ this.valid = true;
23
+ this.validate = false;
24
+ this.validateOnBlur = false;
25
+ this.validation = 'Required field';
26
+ this.renderOutsideShadow = false;
27
+ this.isFocused = false;
28
+ this.labelWidth = 0;
29
+ this.preSlotWidth = 0;
30
+ this._originalType = '';
31
+ this._handleChange = (event) => {
32
+ if (this.type === 'number' && !event.target.value && event.key === '-') {
33
+ return;
34
+ }
35
+ this.value = this.trimWhitespace
36
+ ? event.target.value.trim()
37
+ : event.target.value;
38
+ this.changeValue.emit(this.value);
39
+ this.internals.setFormValue(this.value);
40
+ };
41
+ this._handleBlur = (event) => {
42
+ if (this.trimWhitespace) {
43
+ const trimmedValue = event.target.value.trim();
44
+ event.target.value = trimmedValue;
45
+ }
46
+ };
47
+ this._togglePasswordVisibility = () => {
48
+ if (this.disabled)
49
+ return;
50
+ this.type = this.type === 'password' ? 'text' : 'password';
51
+ };
52
+ }
53
+ componentWillLoad() {
54
+ CTextFieldOpen._uniqueId += 1;
55
+ this._originalType = this.type;
56
+ this._inputId = `${(this.hostId ||
57
+ this.label ||
58
+ this.placeholder ||
59
+ '').replace(/[^a-zA-Z0-9-_]/g, '')}_${CTextFieldOpen._uniqueId}`;
60
+ this.internals.setFormValue(this.value);
61
+ }
62
+ get isActive() {
63
+ return !!this.value || this.isFocused;
64
+ }
65
+ get passwordIcon() {
66
+ return this.type === 'password' ? mdiEye : mdiEyeOff;
67
+ }
68
+ _renderInputElement() {
69
+ const props = {
70
+ classes: {
71
+ 'c-input__input': true,
72
+ 'c-input__input--filled': !!this.value,
73
+ },
74
+ shared: {
75
+ id: this._inputId,
76
+ name: this.name,
77
+ disabled: this.disabled,
78
+ readonly: this.readonly,
79
+ value: this.value,
80
+ onInput: this._handleChange,
81
+ onChange: this._handleChange,
82
+ onBlur: this._handleBlur,
83
+ },
84
+ input: Object.assign(Object.assign(Object.assign({ type: this.type, min: this.min, max: this.max, step: this.step }, (!!this.autocomplete && { autocomplete: this.autocomplete })), (!!this.automaticCapitalize && {
85
+ autocapitalize: this.automaticCapitalize,
86
+ })), (!!this.autocorrect && { autocorrect: this.autocorrect })),
87
+ textArea: {
88
+ rows: this.rows,
89
+ },
90
+ };
91
+ const textInput = (h("input", Object.assign({ class: props.classes }, props.input, props.shared, { ref: (el) => (this._inputElement = el) })));
92
+ const textArea = (h("textarea", Object.assign({ class: props.classes }, props.shared, props.textArea)));
93
+ return this.rows > 1 ? textArea : textInput;
94
+ }
95
+ _isFirefox() {
96
+ return !!navigator.userAgent.match(/firefox|fxios/i);
97
+ }
98
+ _renderDateToggle() {
99
+ if (this._originalType !== 'date' || this._isFirefox())
100
+ return;
101
+ const classes = {
102
+ 'c-input__date-toggle': true,
103
+ 'c-input__date-toggle--disabled': this.disabled,
104
+ };
105
+ return (h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._toggleDatepicker.bind(this) }, h("path", { d: mdiCalendar })));
106
+ }
107
+ _toggleDatepicker() {
108
+ var _a;
109
+ (_a = this._inputElement) === null || _a === void 0 ? void 0 : _a.showPicker();
110
+ }
111
+ _renderPasswordToggle() {
112
+ if (this._originalType !== 'password')
113
+ return;
114
+ const classes = {
115
+ 'c-input__password-toggle': true,
116
+ 'c-input__password-toggle--disabled': this.disabled,
117
+ };
118
+ return (h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._togglePasswordVisibility }, h("path", { d: this.passwordIcon })));
119
+ }
120
+ render() {
121
+ const inputElement = this._renderInputElement();
122
+ const passwordToggle = this._renderPasswordToggle();
123
+ const dateToggle = this._renderDateToggle();
124
+ if (this.renderOutsideShadow) {
125
+ return (h(Host, null, h("c-input", { autofocus: this.automaticFocus, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, "label-on-top": this.labelOnTop, name: this.name, placeholder: this.placeholder, readonly: this.readonly, required: this.required, rows: this.rows, shadow: this.shadow, type: this.type, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value }, h("slot", { name: "pre", slot: "pre" }), h("slot", { name: "input-slot" }), passwordToggle, dateToggle, h("slot", { name: "post" })), h("div", { slot: "input-slot" }, inputElement)));
126
+ }
127
+ return (h(Host, null, h("c-input", { autofocus: this.automaticFocus, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, "label-on-top": this.labelOnTop, name: this.name, placeholder: this.placeholder, readonly: this.readonly, required: this.required, rows: this.rows, shadow: this.shadow, type: this.type, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value }, h("slot", { name: "pre", slot: "pre" }), inputElement, passwordToggle, dateToggle, h("slot", { name: "post" }))));
128
+ }
129
+ static get is() { return "c-text-field-open"; }
130
+ static get formAssociated() { return true; }
131
+ static get originalStyleUrls() {
132
+ return {
133
+ "$": ["c-text-field-open.scss"]
134
+ };
135
+ }
136
+ static get styleUrls() {
137
+ return {
138
+ "$": ["c-text-field-open.css"]
139
+ };
140
+ }
141
+ static get properties() {
142
+ return {
143
+ "automaticFocus": {
144
+ "type": "boolean",
145
+ "mutable": false,
146
+ "complexType": {
147
+ "original": "boolean",
148
+ "resolved": "boolean",
149
+ "references": {}
150
+ },
151
+ "required": false,
152
+ "optional": false,
153
+ "docs": {
154
+ "tags": [{
155
+ "name": "name",
156
+ "text": "autofocus"
157
+ }],
158
+ "text": "Auto focus the input"
159
+ },
160
+ "getter": false,
161
+ "setter": false,
162
+ "attribute": "autofocus",
163
+ "reflect": false,
164
+ "defaultValue": "false"
165
+ },
166
+ "automaticCapitalize": {
167
+ "type": "string",
168
+ "mutable": false,
169
+ "complexType": {
170
+ "original": "string",
171
+ "resolved": "string",
172
+ "references": {}
173
+ },
174
+ "required": false,
175
+ "optional": false,
176
+ "docs": {
177
+ "tags": [{
178
+ "name": "name",
179
+ "text": "autocapitalize"
180
+ }],
181
+ "text": "HTML input autocapitalize"
182
+ },
183
+ "getter": false,
184
+ "setter": false,
185
+ "attribute": "autocapitalize",
186
+ "reflect": false,
187
+ "defaultValue": "''"
188
+ },
189
+ "autocorrect": {
190
+ "type": "string",
191
+ "mutable": false,
192
+ "complexType": {
193
+ "original": "string",
194
+ "resolved": "string",
195
+ "references": {}
196
+ },
197
+ "required": false,
198
+ "optional": false,
199
+ "docs": {
200
+ "tags": [],
201
+ "text": "HTML input autocorrect"
202
+ },
203
+ "getter": false,
204
+ "setter": false,
205
+ "attribute": "autocorrect",
206
+ "reflect": false,
207
+ "defaultValue": "''"
208
+ },
209
+ "autocomplete": {
210
+ "type": "string",
211
+ "mutable": false,
212
+ "complexType": {
213
+ "original": "string",
214
+ "resolved": "string",
215
+ "references": {}
216
+ },
217
+ "required": false,
218
+ "optional": false,
219
+ "docs": {
220
+ "tags": [],
221
+ "text": "HTML input autocomplete"
222
+ },
223
+ "getter": false,
224
+ "setter": false,
225
+ "attribute": "autocomplete",
226
+ "reflect": false,
227
+ "defaultValue": "''"
228
+ },
229
+ "disabled": {
230
+ "type": "boolean",
231
+ "mutable": false,
232
+ "complexType": {
233
+ "original": "boolean",
234
+ "resolved": "boolean",
235
+ "references": {}
236
+ },
237
+ "required": false,
238
+ "optional": false,
239
+ "docs": {
240
+ "tags": [],
241
+ "text": "Disable the input"
242
+ },
243
+ "getter": false,
244
+ "setter": false,
245
+ "attribute": "disabled",
246
+ "reflect": false,
247
+ "defaultValue": "false"
248
+ },
249
+ "hideDetails": {
250
+ "type": "boolean",
251
+ "mutable": false,
252
+ "complexType": {
253
+ "original": "boolean",
254
+ "resolved": "boolean",
255
+ "references": {}
256
+ },
257
+ "required": false,
258
+ "optional": false,
259
+ "docs": {
260
+ "tags": [],
261
+ "text": "Hide the hint and error messages"
262
+ },
263
+ "getter": false,
264
+ "setter": false,
265
+ "attribute": "hide-details",
266
+ "reflect": false,
267
+ "defaultValue": "false"
268
+ },
269
+ "hint": {
270
+ "type": "string",
271
+ "mutable": false,
272
+ "complexType": {
273
+ "original": "string",
274
+ "resolved": "string",
275
+ "references": {}
276
+ },
277
+ "required": false,
278
+ "optional": false,
279
+ "docs": {
280
+ "tags": [],
281
+ "text": "Hint text for the input"
282
+ },
283
+ "getter": false,
284
+ "setter": false,
285
+ "attribute": "hint",
286
+ "reflect": false,
287
+ "defaultValue": "''"
288
+ },
289
+ "hostId": {
290
+ "type": "string",
291
+ "mutable": false,
292
+ "complexType": {
293
+ "original": "string",
294
+ "resolved": "string",
295
+ "references": {}
296
+ },
297
+ "required": false,
298
+ "optional": false,
299
+ "docs": {
300
+ "tags": [{
301
+ "name": "name",
302
+ "text": "id"
303
+ }],
304
+ "text": "Id of the input"
305
+ },
306
+ "getter": false,
307
+ "setter": false,
308
+ "attribute": "id",
309
+ "reflect": false
310
+ },
311
+ "trimWhitespace": {
312
+ "type": "boolean",
313
+ "mutable": false,
314
+ "complexType": {
315
+ "original": "boolean",
316
+ "resolved": "boolean",
317
+ "references": {}
318
+ },
319
+ "required": false,
320
+ "optional": false,
321
+ "docs": {
322
+ "tags": [],
323
+ "text": "Trim whitespace from the return value"
324
+ },
325
+ "getter": false,
326
+ "setter": false,
327
+ "attribute": "trim-whitespace",
328
+ "reflect": false,
329
+ "defaultValue": "false"
330
+ },
331
+ "label": {
332
+ "type": "string",
333
+ "mutable": false,
334
+ "complexType": {
335
+ "original": "string",
336
+ "resolved": "string",
337
+ "references": {}
338
+ },
339
+ "required": false,
340
+ "optional": false,
341
+ "docs": {
342
+ "tags": [],
343
+ "text": "Label of the input"
344
+ },
345
+ "getter": false,
346
+ "setter": false,
347
+ "attribute": "label",
348
+ "reflect": false
349
+ },
350
+ "labelOnTop": {
351
+ "type": "boolean",
352
+ "mutable": false,
353
+ "complexType": {
354
+ "original": "boolean",
355
+ "resolved": "boolean",
356
+ "references": {}
357
+ },
358
+ "required": false,
359
+ "optional": false,
360
+ "docs": {
361
+ "tags": [],
362
+ "text": "Label on top of the input"
363
+ },
364
+ "getter": false,
365
+ "setter": false,
366
+ "attribute": "label-on-top",
367
+ "reflect": false,
368
+ "defaultValue": "false"
369
+ },
370
+ "max": {
371
+ "type": "number",
372
+ "mutable": false,
373
+ "complexType": {
374
+ "original": "number",
375
+ "resolved": "number",
376
+ "references": {}
377
+ },
378
+ "required": false,
379
+ "optional": false,
380
+ "docs": {
381
+ "tags": [],
382
+ "text": "Maximum value on a numeric input"
383
+ },
384
+ "getter": false,
385
+ "setter": false,
386
+ "attribute": "max",
387
+ "reflect": false,
388
+ "defaultValue": "null"
389
+ },
390
+ "min": {
391
+ "type": "number",
392
+ "mutable": false,
393
+ "complexType": {
394
+ "original": "number",
395
+ "resolved": "number",
396
+ "references": {}
397
+ },
398
+ "required": false,
399
+ "optional": false,
400
+ "docs": {
401
+ "tags": [],
402
+ "text": "Minimum value on a numeric input"
403
+ },
404
+ "getter": false,
405
+ "setter": false,
406
+ "attribute": "min",
407
+ "reflect": false,
408
+ "defaultValue": "null"
409
+ },
410
+ "name": {
411
+ "type": "string",
412
+ "mutable": false,
413
+ "complexType": {
414
+ "original": "string",
415
+ "resolved": "string",
416
+ "references": {}
417
+ },
418
+ "required": false,
419
+ "optional": false,
420
+ "docs": {
421
+ "tags": [],
422
+ "text": "Name of the input"
423
+ },
424
+ "getter": false,
425
+ "setter": false,
426
+ "attribute": "name",
427
+ "reflect": false
428
+ },
429
+ "placeholder": {
430
+ "type": "string",
431
+ "mutable": false,
432
+ "complexType": {
433
+ "original": "string",
434
+ "resolved": "string",
435
+ "references": {}
436
+ },
437
+ "required": false,
438
+ "optional": false,
439
+ "docs": {
440
+ "tags": [],
441
+ "text": "Placeholder of the input"
442
+ },
443
+ "getter": false,
444
+ "setter": false,
445
+ "attribute": "placeholder",
446
+ "reflect": false
447
+ },
448
+ "readonly": {
449
+ "type": "boolean",
450
+ "mutable": false,
451
+ "complexType": {
452
+ "original": "boolean",
453
+ "resolved": "boolean",
454
+ "references": {}
455
+ },
456
+ "required": false,
457
+ "optional": false,
458
+ "docs": {
459
+ "tags": [],
460
+ "text": "Mark as readonly"
461
+ },
462
+ "getter": false,
463
+ "setter": false,
464
+ "attribute": "readonly",
465
+ "reflect": false,
466
+ "defaultValue": "false"
467
+ },
468
+ "required": {
469
+ "type": "boolean",
470
+ "mutable": false,
471
+ "complexType": {
472
+ "original": "boolean",
473
+ "resolved": "boolean",
474
+ "references": {}
475
+ },
476
+ "required": false,
477
+ "optional": false,
478
+ "docs": {
479
+ "tags": [],
480
+ "text": "Set the input as required"
481
+ },
482
+ "getter": false,
483
+ "setter": false,
484
+ "attribute": "required",
485
+ "reflect": false,
486
+ "defaultValue": "false"
487
+ },
488
+ "rows": {
489
+ "type": "number",
490
+ "mutable": false,
491
+ "complexType": {
492
+ "original": "number",
493
+ "resolved": "number",
494
+ "references": {}
495
+ },
496
+ "required": false,
497
+ "optional": false,
498
+ "docs": {
499
+ "tags": [],
500
+ "text": "Rows on the input"
501
+ },
502
+ "getter": false,
503
+ "setter": false,
504
+ "attribute": "rows",
505
+ "reflect": false,
506
+ "defaultValue": "1"
507
+ },
508
+ "shadow": {
509
+ "type": "boolean",
510
+ "mutable": false,
511
+ "complexType": {
512
+ "original": "boolean",
513
+ "resolved": "boolean",
514
+ "references": {}
515
+ },
516
+ "required": false,
517
+ "optional": false,
518
+ "docs": {
519
+ "tags": [],
520
+ "text": "Shadow variant of the input"
521
+ },
522
+ "getter": false,
523
+ "setter": false,
524
+ "attribute": "shadow",
525
+ "reflect": false,
526
+ "defaultValue": "false"
527
+ },
528
+ "step": {
529
+ "type": "number",
530
+ "mutable": false,
531
+ "complexType": {
532
+ "original": "number",
533
+ "resolved": "number",
534
+ "references": {}
535
+ },
536
+ "required": false,
537
+ "optional": false,
538
+ "docs": {
539
+ "tags": [],
540
+ "text": "Step size on a numeric input"
541
+ },
542
+ "getter": false,
543
+ "setter": false,
544
+ "attribute": "step",
545
+ "reflect": false,
546
+ "defaultValue": "null"
547
+ },
548
+ "type": {
549
+ "type": "string",
550
+ "mutable": false,
551
+ "complexType": {
552
+ "original": "string",
553
+ "resolved": "string",
554
+ "references": {}
555
+ },
556
+ "required": false,
557
+ "optional": false,
558
+ "docs": {
559
+ "tags": [],
560
+ "text": "Type of the input"
561
+ },
562
+ "getter": false,
563
+ "setter": false,
564
+ "attribute": "type",
565
+ "reflect": false,
566
+ "defaultValue": "'text'"
567
+ },
568
+ "valid": {
569
+ "type": "boolean",
570
+ "mutable": false,
571
+ "complexType": {
572
+ "original": "boolean",
573
+ "resolved": "boolean",
574
+ "references": {}
575
+ },
576
+ "required": false,
577
+ "optional": false,
578
+ "docs": {
579
+ "tags": [],
580
+ "text": "Set the validity of the input"
581
+ },
582
+ "getter": false,
583
+ "setter": false,
584
+ "attribute": "valid",
585
+ "reflect": false,
586
+ "defaultValue": "true"
587
+ },
588
+ "validate": {
589
+ "type": "boolean",
590
+ "mutable": false,
591
+ "complexType": {
592
+ "original": "boolean",
593
+ "resolved": "boolean",
594
+ "references": {}
595
+ },
596
+ "required": false,
597
+ "optional": false,
598
+ "docs": {
599
+ "tags": [],
600
+ "text": "Manual validation"
601
+ },
602
+ "getter": false,
603
+ "setter": false,
604
+ "attribute": "validate",
605
+ "reflect": false,
606
+ "defaultValue": "false"
607
+ },
608
+ "validateOnBlur": {
609
+ "type": "boolean",
610
+ "mutable": false,
611
+ "complexType": {
612
+ "original": "boolean",
613
+ "resolved": "boolean",
614
+ "references": {}
615
+ },
616
+ "required": false,
617
+ "optional": false,
618
+ "docs": {
619
+ "tags": [],
620
+ "text": "Validate the input on blur"
621
+ },
622
+ "getter": false,
623
+ "setter": false,
624
+ "attribute": "validate-on-blur",
625
+ "reflect": false,
626
+ "defaultValue": "false"
627
+ },
628
+ "validation": {
629
+ "type": "string",
630
+ "mutable": false,
631
+ "complexType": {
632
+ "original": "string",
633
+ "resolved": "string",
634
+ "references": {}
635
+ },
636
+ "required": false,
637
+ "optional": false,
638
+ "docs": {
639
+ "tags": [],
640
+ "text": "Custom validation message"
641
+ },
642
+ "getter": false,
643
+ "setter": false,
644
+ "attribute": "validation",
645
+ "reflect": false,
646
+ "defaultValue": "'Required field'"
647
+ },
648
+ "value": {
649
+ "type": "string",
650
+ "mutable": true,
651
+ "complexType": {
652
+ "original": "string",
653
+ "resolved": "string",
654
+ "references": {}
655
+ },
656
+ "required": false,
657
+ "optional": false,
658
+ "docs": {
659
+ "tags": [],
660
+ "text": "Value of the input"
661
+ },
662
+ "getter": false,
663
+ "setter": false,
664
+ "attribute": "value",
665
+ "reflect": false
666
+ },
667
+ "renderOutsideShadow": {
668
+ "type": "boolean",
669
+ "mutable": false,
670
+ "complexType": {
671
+ "original": "boolean",
672
+ "resolved": "boolean",
673
+ "references": {}
674
+ },
675
+ "required": false,
676
+ "optional": false,
677
+ "docs": {
678
+ "tags": [],
679
+ "text": "Render input element outside shadow DOM for maximum compatibility"
680
+ },
681
+ "getter": false,
682
+ "setter": false,
683
+ "attribute": "render-outside-shadow",
684
+ "reflect": false,
685
+ "defaultValue": "false"
686
+ }
687
+ };
688
+ }
689
+ static get states() {
690
+ return {
691
+ "isFocused": {},
692
+ "labelWidth": {},
693
+ "preSlotWidth": {}
694
+ };
695
+ }
696
+ static get events() {
697
+ return [{
698
+ "method": "changeValue",
699
+ "name": "changeValue",
700
+ "bubbles": false,
701
+ "cancelable": true,
702
+ "composed": true,
703
+ "docs": {
704
+ "tags": [],
705
+ "text": "Emit changes to the parent"
706
+ },
707
+ "complexType": {
708
+ "original": "any",
709
+ "resolved": "any",
710
+ "references": {}
711
+ }
712
+ }];
713
+ }
714
+ static get elementRef() { return "hiddenEl"; }
715
+ static get attachInternalsMemberName() { return "internals"; }
716
+ }
717
+ CTextFieldOpen._uniqueId = 0;
718
+ //# sourceMappingURL=c-text-field-open.js.map