@sankhyalabs/ezui 6.5.0-dev.7 → 6.5.0-dev.9

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/ez-chip.cjs.entry.js +26 -4
  2. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  3. package/dist/cjs/ez-tag-input.cjs.entry.js +245 -0
  4. package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
  5. package/dist/cjs/ezui.cjs.js +1 -1
  6. package/dist/cjs/index-a7b0c73d.js +4 -0
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -0
  9. package/dist/collection/components/ez-chip/ez-chip.css +7 -4
  10. package/dist/collection/components/ez-chip/ez-chip.js +61 -3
  11. package/dist/collection/components/ez-tabselector/ez-tabselector.css +5 -1
  12. package/dist/collection/components/ez-tag-input/ez-tag-input.css +163 -0
  13. package/dist/collection/components/ez-tag-input/ez-tag-input.js +703 -0
  14. package/dist/collection/components/ez-tag-input/interfaces/optionsSetFocus.js +1 -0
  15. package/dist/collection/components/ez-text-input/ez-text-input.css +0 -4
  16. package/dist/custom-elements/index.d.ts +6 -0
  17. package/dist/custom-elements/index.js +271 -8
  18. package/dist/esm/ez-chip.entry.js +26 -4
  19. package/dist/esm/ez-tabselector.entry.js +1 -1
  20. package/dist/esm/ez-tag-input.entry.js +241 -0
  21. package/dist/esm/ez-text-input.entry.js +1 -1
  22. package/dist/esm/ezui.js +1 -1
  23. package/dist/esm/index-baa5e267.js +4 -0
  24. package/dist/esm/loader.js +1 -1
  25. package/dist/ezui/ezui.esm.js +1 -1
  26. package/dist/ezui/{p-53bc30a1.entry.js → p-0e49c0ff.entry.js} +1 -1
  27. package/dist/ezui/{p-c0d9c4f8.entry.js → p-6020f3d5.entry.js} +1 -1
  28. package/dist/ezui/p-c8a773e3.entry.js +1 -0
  29. package/dist/ezui/p-d52443f3.entry.js +1 -0
  30. package/dist/types/components/ez-chip/ez-chip.d.ts +11 -0
  31. package/dist/types/components/ez-tag-input/ez-tag-input.d.ts +93 -0
  32. package/dist/types/components/ez-tag-input/interfaces/optionsSetFocus.d.ts +4 -0
  33. package/dist/types/components.d.ts +202 -0
  34. package/package.json +1 -1
  35. package/react/components.d.ts +1 -0
  36. package/react/components.js +1 -0
  37. package/react/components.js.map +1 -1
  38. package/dist/ezui/p-fcdc7d0b.entry.js +0 -1
@@ -0,0 +1,703 @@
1
+ import { ElementIDUtils, KeyboardManager } from '@sankhyalabs/core';
2
+ import { h, Host } from '@stencil/core';
3
+ export class EzTagInput {
4
+ constructor() {
5
+ this.handleInputChange = (event) => {
6
+ const target = event.target;
7
+ this._inputElement.value = target.value;
8
+ this.ezType.emit(this._inputElement.value);
9
+ };
10
+ this.handleInputKeyDown = (event) => {
11
+ if (event.key === 'Backspace' && this._inputElement.value === '' && this.tags.length > 0 && !this.suppressBackspaceToRemove) {
12
+ this.handleRemoveTag(this.tags[this.tags.length - 1]);
13
+ }
14
+ };
15
+ this.handleInputFocus = () => {
16
+ this.ezFocus.emit();
17
+ };
18
+ this.handleInputBlur = () => {
19
+ this.ezBlur.emit();
20
+ };
21
+ this.handleTagClick = (tag, index) => {
22
+ if (this.enabled && !this.readonly) {
23
+ this.handleRemoveTag(tag);
24
+ this.updateTagFocus(index);
25
+ }
26
+ };
27
+ this.handleClearInput = () => {
28
+ this._inputElement.value = '';
29
+ };
30
+ this.label = '';
31
+ this.placeholder = '';
32
+ this.helpText = undefined;
33
+ this.enabled = true;
34
+ this.readonly = false;
35
+ this.name = undefined;
36
+ this.tags = [];
37
+ this.maxTagLength = undefined;
38
+ this.maxTags = undefined;
39
+ this.allowDuplicates = false;
40
+ this.state = "default";
41
+ this.validator = undefined;
42
+ this.suppressTagsKeyboardNavigation = false;
43
+ this.suppressBackspaceToRemove = false;
44
+ }
45
+ /** Aplica o foco no campo */
46
+ async setFocus(option) {
47
+ if (option === null || option === void 0 ? void 0 : option.selectText) {
48
+ this._inputElement.select();
49
+ }
50
+ if (!(option === null || option === void 0 ? void 0 : option.preventScroll)) {
51
+ this._inputElement.scrollIntoView({ behavior: "smooth", block: "center" });
52
+ }
53
+ this._inputElement.focus({ preventScroll: true });
54
+ }
55
+ /** Remove o foco do campo */
56
+ async setBlur() {
57
+ this._inputElement.blur();
58
+ }
59
+ /** Adiciona uma tag programaticamente */
60
+ async addTag(tag) {
61
+ return this.handleAddTag(tag);
62
+ }
63
+ /** Remove uma tag programaticamente */
64
+ async removeTag(tag) {
65
+ return this.handleRemoveTag(tag);
66
+ }
67
+ /** Limpa todas as tags */
68
+ async clearTags() {
69
+ this.tags = [];
70
+ this.ezChange.emit([...this.tags]);
71
+ }
72
+ addInfoId() {
73
+ if (this._element) {
74
+ ElementIDUtils.addIDInfo(this._element);
75
+ }
76
+ if (this._inputElement) {
77
+ const dataInfo = { id: 'embedded' };
78
+ ElementIDUtils.addIDInfo(this._inputElement, 'tag-input', dataInfo);
79
+ }
80
+ }
81
+ initializeKeyboardManager() {
82
+ this._keyboardManager = new KeyboardManager({
83
+ propagate: true,
84
+ element: this._element,
85
+ })
86
+ .bind("Enter", () => this.handleAddCurrentTag())
87
+ .bind("Tab", () => this.handleAddCurrentTag())
88
+ .bind("Escape", () => this.handleClearInput())
89
+ .bind("ArrowLeft", () => this.handlePreviousTagFocus())
90
+ .bind("ArrowRight", () => this.handleNextTagFocus());
91
+ }
92
+ handleAddCurrentTag() {
93
+ if (this._inputElement.value.trim()) {
94
+ const success = this.handleAddTag(this._inputElement.value);
95
+ if (success) {
96
+ this._inputElement.value = '';
97
+ }
98
+ return success;
99
+ }
100
+ return false;
101
+ }
102
+ handleAddTag(tag) {
103
+ const parsedTag = tag.trim();
104
+ if (!this.enabled || this.readonly) {
105
+ return false;
106
+ }
107
+ if (!parsedTag || parsedTag.length === 0) {
108
+ return false;
109
+ }
110
+ if (this.maxTagLength && parsedTag.length > this.maxTagLength) {
111
+ return false;
112
+ }
113
+ if (this.maxTags && this.tags.length >= this.maxTags) {
114
+ return false;
115
+ }
116
+ if (!this.allowDuplicates && this.tags.includes(parsedTag)) {
117
+ return false;
118
+ }
119
+ if (this.validator) {
120
+ const validationResult = this.validator(parsedTag, [...this.tags]);
121
+ if (validationResult === false) {
122
+ this.ezValidationError.emit({ tag: parsedTag, error: undefined });
123
+ return false;
124
+ }
125
+ if (typeof validationResult === 'string') {
126
+ this.ezValidationError.emit({ tag: parsedTag, error: validationResult });
127
+ return false;
128
+ }
129
+ }
130
+ this.tags = [...this.tags, parsedTag];
131
+ this.ezChange.emit([...this.tags]);
132
+ this.ezTagAdded.emit(parsedTag);
133
+ return true;
134
+ }
135
+ async updateTagFocus(lastIndex) {
136
+ var _a;
137
+ if (!((_a = this.tags) === null || _a === void 0 ? void 0 : _a.length) || this.suppressTagsKeyboardNavigation) {
138
+ await this.setFocus();
139
+ return;
140
+ }
141
+ if (!lastIndex) {
142
+ return;
143
+ }
144
+ const nextIndex = lastIndex - 1;
145
+ const tagElement = this._element.shadowRoot.querySelector(`#tag-${nextIndex}`);
146
+ if (tagElement) {
147
+ await tagElement.setFocus();
148
+ }
149
+ }
150
+ getCurrentActiveTagIndex() {
151
+ var _a;
152
+ const currentActiveTag = this._element.shadowRoot.activeElement;
153
+ if (!((_a = this.tags) === null || _a === void 0 ? void 0 : _a.length) || currentActiveTag.tagName.toLowerCase() !== 'ez-chip') {
154
+ return null;
155
+ }
156
+ const currentIndex = parseInt(currentActiveTag.id.split('-')[1], 10);
157
+ if (Number.isNaN(currentIndex) || currentIndex < 0 || currentIndex >= this.tags.length) {
158
+ return null;
159
+ }
160
+ return currentIndex;
161
+ }
162
+ async setTagFocus(tagIndex) {
163
+ const tagElement = this._element.shadowRoot.querySelector(`#tag-${tagIndex}`);
164
+ if (tagElement) {
165
+ await tagElement.setFocus();
166
+ }
167
+ }
168
+ async handlePreviousTagFocus() {
169
+ if (this.suppressTagsKeyboardNavigation || !this.enabled || this.readonly) {
170
+ return;
171
+ }
172
+ if (this._element.shadowRoot.activeElement === this._inputElement) {
173
+ await this.setTagFocus(this.tags.length - 1);
174
+ return;
175
+ }
176
+ const currentIndex = this.getCurrentActiveTagIndex();
177
+ if (currentIndex === null) {
178
+ await this.setFocus();
179
+ return;
180
+ }
181
+ if (currentIndex === 0) {
182
+ return;
183
+ }
184
+ await this.setTagFocus(currentIndex - 1);
185
+ }
186
+ async handleNextTagFocus() {
187
+ if (this.suppressTagsKeyboardNavigation || !this.enabled || this.readonly) {
188
+ return;
189
+ }
190
+ const currentIndex = this.getCurrentActiveTagIndex();
191
+ if (currentIndex === null || currentIndex >= this.tags.length - 1) {
192
+ await this.setFocus();
193
+ return;
194
+ }
195
+ await this.setTagFocus(currentIndex + 1);
196
+ }
197
+ handleRemoveTag(tagToRemove) {
198
+ if (!this.enabled || this.readonly) {
199
+ return false;
200
+ }
201
+ const tagIndex = this.tags.indexOf(tagToRemove);
202
+ if (tagIndex === -1) {
203
+ return false;
204
+ }
205
+ this.tags = this.tags.filter(tag => tag !== tagToRemove);
206
+ this.ezChange.emit([...this.tags]);
207
+ this.ezTagRemoved.emit(tagToRemove);
208
+ return true;
209
+ }
210
+ async componentWillLoad() {
211
+ if (!this.tags) {
212
+ this.tags = [];
213
+ }
214
+ }
215
+ componentDidLoad() {
216
+ this.addInfoId();
217
+ this.initializeKeyboardManager();
218
+ }
219
+ disconnectedCallback() {
220
+ var _a;
221
+ (_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
222
+ }
223
+ render() {
224
+ return (h(Host, null, h("label", { htmlFor: this.name }, this.label), h("div", { class: "tag-input__container", "data-state": this.state, "data-disabled": (!this.enabled).toString(), onClick: () => this.setFocus({ preventScroll: true }) }, this.tags.map((tag, index) => (h("ez-chip", { key: `tag-${index}`, id: `tag-${index}`, label: tag, enabled: this.enabled && !this.readonly, removePosition: this.enabled && !this.readonly ? "right" : undefined, mode: "label", onRemoveChip: () => this.handleTagClick(tag, index), tabIndex: (this.suppressTagsKeyboardNavigation || !this.enabled || this.readonly) ? -1 : 0, disableAutoUpdateValue: true, removeWithKeyboard: true }))), h("input", { ref: (el) => this._inputElement = el, id: this.name, type: "text", placeholder: this.placeholder, disabled: !this.enabled, readonly: this.readonly, maxlength: this.maxTagLength, onInput: this.handleInputChange, onKeyDown: this.handleInputKeyDown, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur })), this.helpText && (h("span", { title: this.helpText }, this.helpText))));
225
+ }
226
+ static get is() { return "ez-tag-input"; }
227
+ static get encapsulation() { return "shadow"; }
228
+ static get originalStyleUrls() {
229
+ return {
230
+ "$": ["ez-tag-input.css"]
231
+ };
232
+ }
233
+ static get styleUrls() {
234
+ return {
235
+ "$": ["ez-tag-input.css"]
236
+ };
237
+ }
238
+ static get properties() {
239
+ return {
240
+ "label": {
241
+ "type": "string",
242
+ "mutable": false,
243
+ "complexType": {
244
+ "original": "string",
245
+ "resolved": "string",
246
+ "references": {}
247
+ },
248
+ "required": false,
249
+ "optional": false,
250
+ "docs": {
251
+ "tags": [],
252
+ "text": "Texto do label exibido acima do input"
253
+ },
254
+ "attribute": "label",
255
+ "reflect": false,
256
+ "defaultValue": "''"
257
+ },
258
+ "placeholder": {
259
+ "type": "string",
260
+ "mutable": false,
261
+ "complexType": {
262
+ "original": "string",
263
+ "resolved": "string",
264
+ "references": {}
265
+ },
266
+ "required": false,
267
+ "optional": false,
268
+ "docs": {
269
+ "tags": [],
270
+ "text": "Placeholder do input"
271
+ },
272
+ "attribute": "placeholder",
273
+ "reflect": false,
274
+ "defaultValue": "''"
275
+ },
276
+ "helpText": {
277
+ "type": "string",
278
+ "mutable": true,
279
+ "complexType": {
280
+ "original": "string",
281
+ "resolved": "string",
282
+ "references": {}
283
+ },
284
+ "required": false,
285
+ "optional": true,
286
+ "docs": {
287
+ "tags": [],
288
+ "text": "Texto de ajuda exibido abaixo do input"
289
+ },
290
+ "attribute": "help-text",
291
+ "reflect": false
292
+ },
293
+ "enabled": {
294
+ "type": "boolean",
295
+ "mutable": false,
296
+ "complexType": {
297
+ "original": "boolean",
298
+ "resolved": "boolean",
299
+ "references": {}
300
+ },
301
+ "required": false,
302
+ "optional": true,
303
+ "docs": {
304
+ "tags": [],
305
+ "text": "Define se o input est\u00E1 habilitado"
306
+ },
307
+ "attribute": "enabled",
308
+ "reflect": false,
309
+ "defaultValue": "true"
310
+ },
311
+ "readonly": {
312
+ "type": "boolean",
313
+ "mutable": false,
314
+ "complexType": {
315
+ "original": "boolean",
316
+ "resolved": "boolean",
317
+ "references": {}
318
+ },
319
+ "required": false,
320
+ "optional": true,
321
+ "docs": {
322
+ "tags": [],
323
+ "text": "Define se o input \u00E9 somente leitura"
324
+ },
325
+ "attribute": "readonly",
326
+ "reflect": false,
327
+ "defaultValue": "false"
328
+ },
329
+ "name": {
330
+ "type": "string",
331
+ "mutable": false,
332
+ "complexType": {
333
+ "original": "string",
334
+ "resolved": "string",
335
+ "references": {}
336
+ },
337
+ "required": false,
338
+ "optional": true,
339
+ "docs": {
340
+ "tags": [],
341
+ "text": "Nome do input"
342
+ },
343
+ "attribute": "name",
344
+ "reflect": false
345
+ },
346
+ "tags": {
347
+ "type": "unknown",
348
+ "mutable": true,
349
+ "complexType": {
350
+ "original": "string[]",
351
+ "resolved": "string[]",
352
+ "references": {}
353
+ },
354
+ "required": false,
355
+ "optional": true,
356
+ "docs": {
357
+ "tags": [],
358
+ "text": "Array de tags iniciais"
359
+ },
360
+ "defaultValue": "[]"
361
+ },
362
+ "maxTagLength": {
363
+ "type": "number",
364
+ "mutable": false,
365
+ "complexType": {
366
+ "original": "number",
367
+ "resolved": "number",
368
+ "references": {}
369
+ },
370
+ "required": false,
371
+ "optional": true,
372
+ "docs": {
373
+ "tags": [],
374
+ "text": "Tamanho m\u00E1ximo de uma tag"
375
+ },
376
+ "attribute": "max-tag-length",
377
+ "reflect": false
378
+ },
379
+ "maxTags": {
380
+ "type": "number",
381
+ "mutable": false,
382
+ "complexType": {
383
+ "original": "number",
384
+ "resolved": "number",
385
+ "references": {}
386
+ },
387
+ "required": false,
388
+ "optional": true,
389
+ "docs": {
390
+ "tags": [],
391
+ "text": "N\u00FAmero m\u00E1ximo de tags permitidas"
392
+ },
393
+ "attribute": "max-tags",
394
+ "reflect": false
395
+ },
396
+ "allowDuplicates": {
397
+ "type": "boolean",
398
+ "mutable": false,
399
+ "complexType": {
400
+ "original": "boolean",
401
+ "resolved": "boolean",
402
+ "references": {}
403
+ },
404
+ "required": false,
405
+ "optional": true,
406
+ "docs": {
407
+ "tags": [],
408
+ "text": "Define se tags duplicadas s\u00E3o permitidas"
409
+ },
410
+ "attribute": "allow-duplicates",
411
+ "reflect": false,
412
+ "defaultValue": "false"
413
+ },
414
+ "state": {
415
+ "type": "string",
416
+ "mutable": true,
417
+ "complexType": {
418
+ "original": "\"default\" | \"error\" | \"success\" | \"warning\"",
419
+ "resolved": "\"default\" | \"error\" | \"success\" | \"warning\"",
420
+ "references": {}
421
+ },
422
+ "required": false,
423
+ "optional": true,
424
+ "docs": {
425
+ "tags": [],
426
+ "text": "Estado visual do componente"
427
+ },
428
+ "attribute": "state",
429
+ "reflect": true,
430
+ "defaultValue": "\"default\""
431
+ },
432
+ "validator": {
433
+ "type": "unknown",
434
+ "mutable": false,
435
+ "complexType": {
436
+ "original": "(tag: string, existingTags: string[]) => boolean | string",
437
+ "resolved": "(tag: string, existingTags: string[]) => string | boolean",
438
+ "references": {}
439
+ },
440
+ "required": false,
441
+ "optional": true,
442
+ "docs": {
443
+ "tags": [{
444
+ "name": "param",
445
+ "text": "tag - A tag que est\u00E1 sendo validada"
446
+ }, {
447
+ "name": "param",
448
+ "text": "existingTags - Array com as tags j\u00E1 existentes"
449
+ }, {
450
+ "name": "returns",
451
+ "text": "true se v\u00E1lida, false ou string com mensagem de erro se inv\u00E1lida"
452
+ }, {
453
+ "name": "example",
454
+ "text": "// Valida\u00E7\u00E3o para permitir apenas n\u00FAmeros\nvalidator={(tag) => /^\\d+$/.test(tag) || \"Apenas n\u00FAmeros s\u00E3o permitidos\"}\n\n// Valida\u00E7\u00E3o para evitar palavr\u00F5es\nvalidator={(tag) => !badWords.includes(tag.toLowerCase())}"
455
+ }],
456
+ "text": "Fun\u00E7\u00E3o de valida\u00E7\u00E3o customizada para tags"
457
+ }
458
+ },
459
+ "suppressTagsKeyboardNavigation": {
460
+ "type": "boolean",
461
+ "mutable": false,
462
+ "complexType": {
463
+ "original": "boolean",
464
+ "resolved": "boolean",
465
+ "references": {}
466
+ },
467
+ "required": false,
468
+ "optional": true,
469
+ "docs": {
470
+ "tags": [],
471
+ "text": "Define se a navega\u00E7\u00E3o por teclado pelas tags deve ser suprimida"
472
+ },
473
+ "attribute": "suppress-tags-keyboard-navigation",
474
+ "reflect": false,
475
+ "defaultValue": "false"
476
+ },
477
+ "suppressBackspaceToRemove": {
478
+ "type": "boolean",
479
+ "mutable": false,
480
+ "complexType": {
481
+ "original": "boolean",
482
+ "resolved": "boolean",
483
+ "references": {}
484
+ },
485
+ "required": false,
486
+ "optional": true,
487
+ "docs": {
488
+ "tags": [],
489
+ "text": "Define se a tecla Backspace deve remover a \u00FAltima tag quando o input est\u00E1 vazio"
490
+ },
491
+ "attribute": "suppress-backspace-to-remove",
492
+ "reflect": false,
493
+ "defaultValue": "false"
494
+ }
495
+ };
496
+ }
497
+ static get events() {
498
+ return [{
499
+ "method": "ezChange",
500
+ "name": "ezChange",
501
+ "bubbles": true,
502
+ "cancelable": true,
503
+ "composed": true,
504
+ "docs": {
505
+ "tags": [],
506
+ "text": "Evento disparado quando as tags mudam"
507
+ },
508
+ "complexType": {
509
+ "original": "string[]",
510
+ "resolved": "string[]",
511
+ "references": {}
512
+ }
513
+ }, {
514
+ "method": "ezTagAdded",
515
+ "name": "ezTagAdded",
516
+ "bubbles": true,
517
+ "cancelable": true,
518
+ "composed": true,
519
+ "docs": {
520
+ "tags": [],
521
+ "text": "Evento disparado quando uma tag \u00E9 adicionada"
522
+ },
523
+ "complexType": {
524
+ "original": "string",
525
+ "resolved": "string",
526
+ "references": {}
527
+ }
528
+ }, {
529
+ "method": "ezTagRemoved",
530
+ "name": "ezTagRemoved",
531
+ "bubbles": true,
532
+ "cancelable": true,
533
+ "composed": true,
534
+ "docs": {
535
+ "tags": [],
536
+ "text": "Evento disparado quando uma tag \u00E9 removida"
537
+ },
538
+ "complexType": {
539
+ "original": "string",
540
+ "resolved": "string",
541
+ "references": {}
542
+ }
543
+ }, {
544
+ "method": "ezFocus",
545
+ "name": "ezFocus",
546
+ "bubbles": true,
547
+ "cancelable": true,
548
+ "composed": true,
549
+ "docs": {
550
+ "tags": [],
551
+ "text": "Evento disparado quando o input recebe foco"
552
+ },
553
+ "complexType": {
554
+ "original": "void",
555
+ "resolved": "void",
556
+ "references": {}
557
+ }
558
+ }, {
559
+ "method": "ezBlur",
560
+ "name": "ezBlur",
561
+ "bubbles": true,
562
+ "cancelable": true,
563
+ "composed": true,
564
+ "docs": {
565
+ "tags": [],
566
+ "text": "Evento disparado quando o input perde foco"
567
+ },
568
+ "complexType": {
569
+ "original": "void",
570
+ "resolved": "void",
571
+ "references": {}
572
+ }
573
+ }, {
574
+ "method": "ezValidationError",
575
+ "name": "ezValidationError",
576
+ "bubbles": true,
577
+ "cancelable": true,
578
+ "composed": true,
579
+ "docs": {
580
+ "tags": [],
581
+ "text": "Evento disparado quando uma valida\u00E7\u00E3o falha"
582
+ },
583
+ "complexType": {
584
+ "original": "{ tag: string; error?: string }",
585
+ "resolved": "{ tag: string; error?: string; }",
586
+ "references": {}
587
+ }
588
+ }, {
589
+ "method": "ezType",
590
+ "name": "ezType",
591
+ "bubbles": true,
592
+ "cancelable": true,
593
+ "composed": true,
594
+ "docs": {
595
+ "tags": [],
596
+ "text": "Emitido quando \u00E9 digitado no campo de entrada"
597
+ },
598
+ "complexType": {
599
+ "original": "string",
600
+ "resolved": "string",
601
+ "references": {}
602
+ }
603
+ }];
604
+ }
605
+ static get methods() {
606
+ return {
607
+ "setFocus": {
608
+ "complexType": {
609
+ "signature": "(option?: OptionsSetFocus) => Promise<void>",
610
+ "parameters": [{
611
+ "tags": [],
612
+ "text": ""
613
+ }],
614
+ "references": {
615
+ "Promise": {
616
+ "location": "global"
617
+ },
618
+ "OptionsSetFocus": {
619
+ "location": "import",
620
+ "path": "./interfaces/optionsSetFocus"
621
+ }
622
+ },
623
+ "return": "Promise<void>"
624
+ },
625
+ "docs": {
626
+ "text": "Aplica o foco no campo",
627
+ "tags": []
628
+ }
629
+ },
630
+ "setBlur": {
631
+ "complexType": {
632
+ "signature": "() => Promise<void>",
633
+ "parameters": [],
634
+ "references": {
635
+ "Promise": {
636
+ "location": "global"
637
+ }
638
+ },
639
+ "return": "Promise<void>"
640
+ },
641
+ "docs": {
642
+ "text": "Remove o foco do campo",
643
+ "tags": []
644
+ }
645
+ },
646
+ "addTag": {
647
+ "complexType": {
648
+ "signature": "(tag: string) => Promise<boolean>",
649
+ "parameters": [{
650
+ "tags": [],
651
+ "text": ""
652
+ }],
653
+ "references": {
654
+ "Promise": {
655
+ "location": "global"
656
+ }
657
+ },
658
+ "return": "Promise<boolean>"
659
+ },
660
+ "docs": {
661
+ "text": "Adiciona uma tag programaticamente",
662
+ "tags": []
663
+ }
664
+ },
665
+ "removeTag": {
666
+ "complexType": {
667
+ "signature": "(tag: string) => Promise<boolean>",
668
+ "parameters": [{
669
+ "tags": [],
670
+ "text": ""
671
+ }],
672
+ "references": {
673
+ "Promise": {
674
+ "location": "global"
675
+ }
676
+ },
677
+ "return": "Promise<boolean>"
678
+ },
679
+ "docs": {
680
+ "text": "Remove uma tag programaticamente",
681
+ "tags": []
682
+ }
683
+ },
684
+ "clearTags": {
685
+ "complexType": {
686
+ "signature": "() => Promise<void>",
687
+ "parameters": [],
688
+ "references": {
689
+ "Promise": {
690
+ "location": "global"
691
+ }
692
+ },
693
+ "return": "Promise<void>"
694
+ },
695
+ "docs": {
696
+ "text": "Limpa todas as tags",
697
+ "tags": []
698
+ }
699
+ }
700
+ };
701
+ }
702
+ static get elementRef() { return "_element"; }
703
+ }