@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-75070.0 → 0.0.0-bugfix-dev-KB-77074.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 (117) hide show
  1. package/dist/cjs/{SnkMessageBuilder-bae64d0d.js → SnkMessageBuilder-7691a2c1.js} +10 -0
  2. package/dist/cjs/index-f9e81701.js +8 -0
  3. package/dist/cjs/input-distinct-search_2.cjs.entry.js +469 -0
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  6. package/dist/cjs/snk-actions-button_4.cjs.entry.js +22 -25
  7. package/dist/cjs/snk-application.cjs.entry.js +1 -11
  8. package/dist/cjs/snk-crud.cjs.entry.js +2 -8
  9. package/dist/cjs/snk-data-exporter.cjs.entry.js +2 -2
  10. package/dist/cjs/{snk-data-unit-3d9b6ed4.js → snk-data-unit-7dbdad0e.js} +14 -26
  11. package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
  12. package/dist/cjs/snk-detail-view.cjs.entry.js +1 -1
  13. package/dist/cjs/snk-distinct-search.cjs.entry.js +123 -0
  14. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +0 -3
  15. package/dist/cjs/snk-grid.cjs.entry.js +2 -10
  16. package/dist/cjs/snk-simple-crud.cjs.entry.js +4 -39
  17. package/dist/cjs/snk-taskbar.cjs.entry.js +35 -37
  18. package/dist/collection/collection-manifest.json +3 -0
  19. package/dist/collection/components/snk-actions-button/snk-actions-button.js +26 -27
  20. package/dist/collection/components/snk-application/snk-application.js +1 -41
  21. package/dist/collection/components/snk-crud/snk-crud.js +2 -26
  22. package/dist/collection/components/snk-data-unit/snk-data-unit.js +13 -25
  23. package/dist/collection/components/snk-distinct-search/snk-distinct-search.css +4 -0
  24. package/dist/collection/components/snk-distinct-search/snk-distinct-search.js +372 -0
  25. package/dist/collection/components/snk-distinct-search/subcomponents/input-distinct-search/input-distinct-search.css +109 -0
  26. package/dist/collection/components/snk-distinct-search/subcomponents/input-distinct-search/input-distinct-search.js +542 -0
  27. package/dist/collection/components/snk-distinct-search/subcomponents/search-modal/search-modal.css +27 -0
  28. package/dist/collection/components/snk-distinct-search/subcomponents/search-modal/search-modal.js +600 -0
  29. package/dist/collection/components/snk-distinct-search/utils/filter-distinct-search.js +13 -0
  30. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +0 -18
  31. package/dist/collection/components/snk-grid/snk-grid.js +2 -28
  32. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +5 -58
  33. package/dist/collection/components/snk-taskbar/snk-taskbar.js +36 -38
  34. package/dist/collection/lib/http/data-fetcher/fetchers/distinct-search-fetcher.js +25 -0
  35. package/dist/collection/lib/message/SnkMessageBuilder.js +2 -0
  36. package/dist/collection/lib/message/resources/snk-distinct-search.msg.js +9 -0
  37. package/dist/components/SnkMessageBuilder.js +10 -0
  38. package/dist/components/filter-distinct-search.js +15 -0
  39. package/dist/components/index.d.ts +3 -0
  40. package/dist/components/index.js +3 -0
  41. package/dist/components/input-distinct-search.d.ts +11 -0
  42. package/dist/components/input-distinct-search.js +6 -0
  43. package/dist/components/input-distinct-search2.js +262 -0
  44. package/dist/components/search-modal.d.ts +11 -0
  45. package/dist/components/search-modal.js +6 -0
  46. package/dist/components/search-modal2.js +264 -0
  47. package/dist/components/snk-actions-button2.js +26 -27
  48. package/dist/components/snk-application2.js +1 -12
  49. package/dist/components/snk-crud.js +2 -9
  50. package/dist/components/snk-data-unit2.js +13 -25
  51. package/dist/components/snk-distinct-search.d.ts +11 -0
  52. package/dist/components/snk-distinct-search.js +163 -0
  53. package/dist/components/snk-filter-bar2.js +0 -4
  54. package/dist/components/snk-grid2.js +2 -11
  55. package/dist/components/snk-simple-crud2.js +5 -41
  56. package/dist/components/snk-taskbar2.js +36 -38
  57. package/dist/esm/{SnkMessageBuilder-6fff4a4c.js → SnkMessageBuilder-7ace6803.js} +10 -0
  58. package/dist/esm/index-a7d3d3f1.js +8 -0
  59. package/dist/esm/input-distinct-search_2.entry.js +464 -0
  60. package/dist/esm/loader.js +1 -1
  61. package/dist/esm/sankhyablocks.js +1 -1
  62. package/dist/esm/snk-actions-button_4.entry.js +23 -26
  63. package/dist/esm/snk-application.entry.js +2 -12
  64. package/dist/esm/snk-crud.entry.js +2 -8
  65. package/dist/esm/snk-data-exporter.entry.js +2 -2
  66. package/dist/esm/{snk-data-unit-9fa7d2b9.js → snk-data-unit-7a579dbd.js} +14 -26
  67. package/dist/esm/snk-data-unit.entry.js +2 -2
  68. package/dist/esm/snk-detail-view.entry.js +1 -1
  69. package/dist/esm/snk-distinct-search.entry.js +119 -0
  70. package/dist/esm/snk-filter-bar_4.entry.js +0 -3
  71. package/dist/esm/snk-grid.entry.js +2 -10
  72. package/dist/esm/snk-simple-crud.entry.js +5 -40
  73. package/dist/esm/snk-taskbar.entry.js +36 -38
  74. package/dist/sankhyablocks/{p-7075b789.entry.js → p-00f9fe5c.entry.js} +1 -1
  75. package/dist/sankhyablocks/p-0e250436.entry.js +1 -0
  76. package/dist/sankhyablocks/p-154aa2a6.entry.js +11 -0
  77. package/dist/sankhyablocks/p-18cb1acb.entry.js +1 -0
  78. package/dist/sankhyablocks/p-1dbd5c18.entry.js +1 -0
  79. package/dist/sankhyablocks/p-2aae03a1.entry.js +1 -0
  80. package/dist/sankhyablocks/p-37074cc3.entry.js +1 -0
  81. package/dist/sankhyablocks/p-3858a2e4.entry.js +1 -0
  82. package/dist/sankhyablocks/p-563b7c28.entry.js +1 -0
  83. package/dist/sankhyablocks/{p-43353d86.entry.js → p-b389ed49.entry.js} +1 -1
  84. package/dist/sankhyablocks/p-c75fae8e.js +1 -0
  85. package/dist/sankhyablocks/p-d8665750.js +1 -0
  86. package/dist/sankhyablocks/p-f0aaad2b.entry.js +1 -0
  87. package/dist/sankhyablocks/{p-0d2a2e9e.entry.js → p-f4e221b2.entry.js} +1 -1
  88. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  89. package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +2 -3
  90. package/dist/types/components/snk-application/snk-application.d.ts +1 -6
  91. package/dist/types/components/snk-crud/snk-crud.d.ts +0 -4
  92. package/dist/types/components/snk-distinct-search/snk-distinct-search.d.ts +83 -0
  93. package/dist/types/components/snk-distinct-search/subcomponents/input-distinct-search/input-distinct-search.d.ts +105 -0
  94. package/dist/types/components/snk-distinct-search/subcomponents/search-modal/search-modal.d.ts +126 -0
  95. package/dist/types/components/snk-distinct-search/types/index.d.ts +8 -0
  96. package/dist/types/components/snk-distinct-search/utils/filter-distinct-search.d.ts +3 -0
  97. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +0 -4
  98. package/dist/types/components/snk-grid/snk-grid.d.ts +0 -4
  99. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +0 -3
  100. package/dist/types/components.d.ts +393 -31
  101. package/dist/types/lib/http/data-fetcher/fetchers/distinct-search-fetcher.d.ts +6 -0
  102. package/dist/types/lib/message/resources/snk-distinct-search.msg.d.ts +2 -0
  103. package/package.json +1 -1
  104. package/react/components.d.ts +3 -0
  105. package/react/components.js +3 -0
  106. package/react/components.js.map +1 -1
  107. package/dist/sankhyablocks/p-17425c72.js +0 -1
  108. package/dist/sankhyablocks/p-200a5481.entry.js +0 -11
  109. package/dist/sankhyablocks/p-342eeb3b.js +0 -1
  110. package/dist/sankhyablocks/p-520c7c38.entry.js +0 -1
  111. package/dist/sankhyablocks/p-83e71703.entry.js +0 -1
  112. package/dist/sankhyablocks/p-a3fadd0b.entry.js +0 -1
  113. package/dist/sankhyablocks/p-ac26df7a.entry.js +0 -1
  114. package/dist/sankhyablocks/p-af7f7b3e.entry.js +0 -1
  115. package/dist/sankhyablocks/p-c51ad0e7.entry.js +0 -1
  116. package/dist/types/components/snk-actions-button/interfaces/index.d.ts +0 -3
  117. /package/dist/collection/components/{snk-actions-button/interfaces → snk-distinct-search/types}/index.js +0 -0
@@ -0,0 +1,542 @@
1
+ import { KeyboardManager } from "@sankhyalabs/core";
2
+ import { Fragment, h, Host } from '@stencil/core';
3
+ import { filterItems, getMatchOption, normalizeString } from "../../utils/filter-distinct-search";
4
+ export class InputDistinctSearch {
5
+ constructor() {
6
+ this.textValue = "";
7
+ this.isNewItem = false;
8
+ this.filteredItems = [];
9
+ this.isNewItemSelected = false;
10
+ this.application = undefined;
11
+ this.distinctItems = [];
12
+ this.label = "";
13
+ this.value = "";
14
+ this.maxItems = 100;
15
+ this.debounceTime = 300;
16
+ this.canShowError = false;
17
+ this.mode = 'regular';
18
+ this.restrict = undefined;
19
+ this.errorMessage = undefined;
20
+ }
21
+ async observerValue(newValue) {
22
+ await this.selectedNewItem(newValue, true);
23
+ }
24
+ /**
25
+ * Seleciona um item
26
+ */
27
+ async selectValue(value, isNewItem = false) {
28
+ this.isNewItem = isNewItem;
29
+ this.textValue = value;
30
+ await this._refFilterInput.setValue(value);
31
+ }
32
+ /**
33
+ * Método para limpa o campo de entrada de pesquisa
34
+ */
35
+ clearInput() {
36
+ this._refFilterInput.setValue("");
37
+ }
38
+ /**
39
+ * Retorna se o conteúdo é inválido.
40
+ */
41
+ isInvalid() {
42
+ return this._refFilterInput.isInvalid();
43
+ }
44
+ /**
45
+ * Remove o foco do campo
46
+ */
47
+ setBlur() {
48
+ this._refFilterInput.setBlur();
49
+ }
50
+ /**
51
+ * Aplica o foco do campo
52
+ */
53
+ setFocus() {
54
+ this._refFilterInput.setFocus();
55
+ }
56
+ getMessage(key) {
57
+ return this.application.messagesBuilder.getMessage(key, null);
58
+ }
59
+ async optionLoader(searchArgument) {
60
+ return new Promise((resolve) => {
61
+ if (this._debounceTimeout) {
62
+ clearTimeout(this._debounceTimeout);
63
+ }
64
+ ;
65
+ this._debounceTimeout = setTimeout(() => {
66
+ this.filteredItems = filterItems(searchArgument, this.distinctItems, this.maxItems);
67
+ resolve();
68
+ }, this.debounceTime);
69
+ });
70
+ }
71
+ async openPopOver() {
72
+ var _a;
73
+ await ((_a = this._refPopOver) === null || _a === void 0 ? void 0 : _a.showUnder(this._refFilterInput));
74
+ }
75
+ async closePopOver() {
76
+ var _a;
77
+ this.isNewItemSelected = false;
78
+ await ((_a = this._refPopOver) === null || _a === void 0 ? void 0 : _a.hide());
79
+ await this._refList.removeSelection();
80
+ }
81
+ async onTextChange(event) {
82
+ this.textValue = event.detail;
83
+ await this.optionLoader(event.detail);
84
+ await this.selectFirstItem();
85
+ }
86
+ onIconClick() {
87
+ this.iconClick.emit();
88
+ }
89
+ buidItems() {
90
+ var _a;
91
+ const items = (_a = this.filteredItems) === null || _a === void 0 ? void 0 : _a.map((item) => ({
92
+ label: item,
93
+ id: normalizeString(item),
94
+ }));
95
+ return items;
96
+ }
97
+ async setValue(value, isNewItem = false, preventEventEmit = false) {
98
+ this.isNewItem = isNewItem;
99
+ this.textValue = value;
100
+ await this._refFilterInput.setValue(value);
101
+ await this.closePopOver();
102
+ if (!preventEventEmit) {
103
+ this.changeValue.emit({
104
+ value,
105
+ isNewItem,
106
+ });
107
+ }
108
+ }
109
+ async selectedNewItem(value, preventEventEmit = false) {
110
+ if (!this.textValue && !value) {
111
+ await this.setValue("", false, preventEventEmit);
112
+ return;
113
+ }
114
+ const item = getMatchOption(value !== null && value !== void 0 ? value : this.textValue, this.distinctItems);
115
+ if (item) {
116
+ await this.setValue(item, false, preventEventEmit);
117
+ return;
118
+ }
119
+ await this.setValue(this.textValue || value, true, preventEventEmit);
120
+ }
121
+ async setSelectedValue() {
122
+ const selectedValue = await this._refList.getSelection();
123
+ await this.selectedNewItem((selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.label) || this.textValue, true);
124
+ await this._refFilterInput.setBlur();
125
+ this._element.focus();
126
+ }
127
+ async selectNextItem() {
128
+ if (this.isNewItemSelected) {
129
+ return;
130
+ }
131
+ const itemSelected = await this._refList.getSelection();
132
+ const itemsAmount = this.filteredItems.length;
133
+ const indexSelected = this.filteredItems.findIndex((item) => item === (itemSelected === null || itemSelected === void 0 ? void 0 : itemSelected.label));
134
+ const isLastItemSelected = indexSelected === (itemsAmount - 1);
135
+ const optionNewItemIsAvailable = !!this.textValue;
136
+ if (!isLastItemSelected || !optionNewItemIsAvailable) {
137
+ this.isNewItemSelected = false;
138
+ await this._refList.selectNextItem();
139
+ return;
140
+ }
141
+ this.isNewItemSelected = true;
142
+ await this._refList.removeSelection();
143
+ }
144
+ async selectPreviousItem() {
145
+ const itemsAmount = this.filteredItems.length;
146
+ const lastItem = this.filteredItems[itemsAmount - 1];
147
+ if (this.isNewItemSelected && lastItem) {
148
+ this.isNewItemSelected = false;
149
+ await this._refList.setSelection({
150
+ id: normalizeString(lastItem),
151
+ label: lastItem
152
+ });
153
+ return;
154
+ }
155
+ await this._refList.selectPreviousItem();
156
+ }
157
+ bindKeyboardManager() {
158
+ this._keyboardManager = new KeyboardManager({ propagate: false, element: this._element });
159
+ this._keyboardManager
160
+ .bind("ArrowDown", () => { this.selectNextItem(); })
161
+ .bind("ArrowUp", () => { this.selectPreviousItem(); })
162
+ .bind("Enter", () => { this.setSelectedValue(); })
163
+ .bind("Tab", () => { this.setSelectedValue(); });
164
+ }
165
+ unbindKeyboardManager() {
166
+ this._keyboardManager
167
+ .unbind("ArrowDown")
168
+ .unbind("ArrowUp")
169
+ .unbind("Enter")
170
+ .unbind("Tab");
171
+ }
172
+ async selectFirstItem() {
173
+ if (!this.filteredItems.length) {
174
+ await this._refList.removeSelection();
175
+ this.isNewItemSelected = true;
176
+ return;
177
+ }
178
+ const firstItem = this.filteredItems[0];
179
+ this.isNewItemSelected = false;
180
+ await this._refList.setSelection({
181
+ id: normalizeString(firstItem),
182
+ label: firstItem,
183
+ });
184
+ }
185
+ initializeComponent() {
186
+ this.filteredItems = this.distinctItems;
187
+ }
188
+ componentWillLoad() {
189
+ this.initializeComponent();
190
+ }
191
+ async componentDidLoad() {
192
+ this.bindKeyboardManager();
193
+ this.selectFirstItem();
194
+ await this.selectedNewItem(this.value, true);
195
+ }
196
+ disconnectedCallback() {
197
+ this.unbindKeyboardManager();
198
+ }
199
+ buildNewItemOption() {
200
+ if (!this.textValue) {
201
+ return;
202
+ }
203
+ return (h(Fragment, null, !!this.filteredItems.length &&
204
+ h("hr", { class: "divider" }), h("button", { slot: "bottomSlot", class: {
205
+ "new-value": true,
206
+ "new-value-selected": this.isNewItemSelected,
207
+ }, title: `${this.getMessage("snkDistinctSearch.titleAdd")} '${this.textValue}'`, onClick: () => this.selectedNewItem.bind(this)(undefined, true) }, this.getMessage("snkDistinctSearch.titleAdd"), " '", this.textValue, "'")));
208
+ }
209
+ render() {
210
+ return (h(Host, { onBlur: () => this.selectedNewItem.bind(this)() }, h("ez-filter-input", { ref: (ref) => this._refFilterInput = ref, label: this.label, value: this.textValue, onEzChange: this.onTextChange.bind(this), onEzIconClick: this.onIconClick.bind(this), onEzFocusIn: this.openPopOver.bind(this), canShowError: this.canShowError, mode: this.mode, restrict: this.restrict, errorMessage: this.errorMessage, enabledIconClick: true }, this.isNewItem &&
211
+ h("ez-badge", { slot: "right", label: this.getMessage("snkDistinctSearch.titleBadgeNew"), size: "small-medium", class: "badge-primary" })), h("ez-popover", { ref: (ref) => this._refPopOver = ref, boxWidth: "full-width", autoClose: false, overlayType: "none", class: {
212
+ 'space-error': this.canShowError,
213
+ } }, h("div", { class: "popover-content" }, h("section", { class: "list-container" }, h("ez-list", { ref: (ref) => this._refList = ref, dataSource: this.buidItems(), onEzClickItem: ({ detail }) => this.setValue.bind(this)(detail.label, false, true), ezSelectable: true, hoverFeedback: true, disableShortcuts: true })), this.buildNewItemOption()))));
214
+ }
215
+ static get is() { return "input-distinct-search"; }
216
+ static get encapsulation() { return "shadow"; }
217
+ static get originalStyleUrls() {
218
+ return {
219
+ "$": ["input-distinct-search.css"]
220
+ };
221
+ }
222
+ static get styleUrls() {
223
+ return {
224
+ "$": ["input-distinct-search.css"]
225
+ };
226
+ }
227
+ static get properties() {
228
+ return {
229
+ "application": {
230
+ "type": "unknown",
231
+ "mutable": false,
232
+ "complexType": {
233
+ "original": "SnkApplication",
234
+ "resolved": "SnkApplication",
235
+ "references": {
236
+ "SnkApplication": {
237
+ "location": "import",
238
+ "path": "../../../snk-application/snk-application"
239
+ }
240
+ }
241
+ },
242
+ "required": false,
243
+ "optional": false,
244
+ "docs": {
245
+ "tags": [],
246
+ "text": "SnkApplication"
247
+ }
248
+ },
249
+ "distinctItems": {
250
+ "type": "unknown",
251
+ "mutable": false,
252
+ "complexType": {
253
+ "original": "string[]",
254
+ "resolved": "string[]",
255
+ "references": {}
256
+ },
257
+ "required": false,
258
+ "optional": false,
259
+ "docs": {
260
+ "tags": [],
261
+ "text": "Lista completa de items distintos."
262
+ },
263
+ "defaultValue": "[]"
264
+ },
265
+ "label": {
266
+ "type": "string",
267
+ "mutable": false,
268
+ "complexType": {
269
+ "original": "string",
270
+ "resolved": "string",
271
+ "references": {}
272
+ },
273
+ "required": false,
274
+ "optional": false,
275
+ "docs": {
276
+ "tags": [],
277
+ "text": "Label apresentada no input."
278
+ },
279
+ "attribute": "label",
280
+ "reflect": false,
281
+ "defaultValue": "\"\""
282
+ },
283
+ "value": {
284
+ "type": "string",
285
+ "mutable": false,
286
+ "complexType": {
287
+ "original": "string",
288
+ "resolved": "string",
289
+ "references": {}
290
+ },
291
+ "required": false,
292
+ "optional": false,
293
+ "docs": {
294
+ "tags": [],
295
+ "text": "Valor inicial do campo."
296
+ },
297
+ "attribute": "value",
298
+ "reflect": false,
299
+ "defaultValue": "\"\""
300
+ },
301
+ "maxItems": {
302
+ "type": "number",
303
+ "mutable": false,
304
+ "complexType": {
305
+ "original": "number",
306
+ "resolved": "number",
307
+ "references": {}
308
+ },
309
+ "required": false,
310
+ "optional": false,
311
+ "docs": {
312
+ "tags": [],
313
+ "text": "N\u00FAmero m\u00E1ximo de itens na lista."
314
+ },
315
+ "attribute": "max-items",
316
+ "reflect": false,
317
+ "defaultValue": "100"
318
+ },
319
+ "debounceTime": {
320
+ "type": "number",
321
+ "mutable": false,
322
+ "complexType": {
323
+ "original": "number",
324
+ "resolved": "number",
325
+ "references": {}
326
+ },
327
+ "required": false,
328
+ "optional": false,
329
+ "docs": {
330
+ "tags": [],
331
+ "text": "Tempo em milissegundos para debouncing das chamadas de busca de sugest\u00F5es."
332
+ },
333
+ "attribute": "debounce-time",
334
+ "reflect": false,
335
+ "defaultValue": "300"
336
+ },
337
+ "canShowError": {
338
+ "type": "boolean",
339
+ "mutable": false,
340
+ "complexType": {
341
+ "original": "boolean",
342
+ "resolved": "boolean",
343
+ "references": {}
344
+ },
345
+ "required": false,
346
+ "optional": false,
347
+ "docs": {
348
+ "tags": [],
349
+ "text": "Se false deixa de exibir a mensagem de erro dentro do campo."
350
+ },
351
+ "attribute": "can-show-error",
352
+ "reflect": false,
353
+ "defaultValue": "false"
354
+ },
355
+ "mode": {
356
+ "type": "string",
357
+ "mutable": false,
358
+ "complexType": {
359
+ "original": "'slim' | 'regular'",
360
+ "resolved": "\"regular\" | \"slim\"",
361
+ "references": {}
362
+ },
363
+ "required": false,
364
+ "optional": false,
365
+ "docs": {
366
+ "tags": [],
367
+ "text": "Define o tamanho do campo."
368
+ },
369
+ "attribute": "mode",
370
+ "reflect": false,
371
+ "defaultValue": "'regular'"
372
+ },
373
+ "restrict": {
374
+ "type": "string",
375
+ "mutable": false,
376
+ "complexType": {
377
+ "original": "string",
378
+ "resolved": "string",
379
+ "references": {}
380
+ },
381
+ "required": false,
382
+ "optional": false,
383
+ "docs": {
384
+ "tags": [],
385
+ "text": "Express\u00E3o que define os caracteres permitidos na entrada."
386
+ },
387
+ "attribute": "restrict",
388
+ "reflect": false,
389
+ "defaultValue": "undefined"
390
+ },
391
+ "errorMessage": {
392
+ "type": "string",
393
+ "mutable": false,
394
+ "complexType": {
395
+ "original": "string",
396
+ "resolved": "string",
397
+ "references": {}
398
+ },
399
+ "required": false,
400
+ "optional": false,
401
+ "docs": {
402
+ "tags": [],
403
+ "text": "Define uma mensagem de orienta\u00E7\u00E3o ao usu\u00E1rio, colocando o campo em modo inv\u00E1lido."
404
+ },
405
+ "attribute": "error-message",
406
+ "reflect": false,
407
+ "defaultValue": "undefined"
408
+ }
409
+ };
410
+ }
411
+ static get states() {
412
+ return {
413
+ "textValue": {},
414
+ "isNewItem": {},
415
+ "filteredItems": {},
416
+ "isNewItemSelected": {}
417
+ };
418
+ }
419
+ static get events() {
420
+ return [{
421
+ "method": "changeValue",
422
+ "name": "changeValue",
423
+ "bubbles": true,
424
+ "cancelable": true,
425
+ "composed": true,
426
+ "docs": {
427
+ "tags": [],
428
+ "text": "Emitido quando h\u00E1 uma altera\u00E7\u00E3o no valor do campo."
429
+ },
430
+ "complexType": {
431
+ "original": "IDistinctValue",
432
+ "resolved": "IDistinctValue",
433
+ "references": {
434
+ "IDistinctValue": {
435
+ "location": "import",
436
+ "path": "../../types"
437
+ }
438
+ }
439
+ }
440
+ }, {
441
+ "method": "iconClick",
442
+ "name": "iconClick",
443
+ "bubbles": true,
444
+ "cancelable": true,
445
+ "composed": true,
446
+ "docs": {
447
+ "tags": [],
448
+ "text": "Emitido quando o icone de pesquisa \u00E9 clicado."
449
+ },
450
+ "complexType": {
451
+ "original": "void",
452
+ "resolved": "void",
453
+ "references": {}
454
+ }
455
+ }];
456
+ }
457
+ static get methods() {
458
+ return {
459
+ "selectValue": {
460
+ "complexType": {
461
+ "signature": "(value: string, isNewItem?: boolean) => Promise<void>",
462
+ "parameters": [{
463
+ "tags": [],
464
+ "text": ""
465
+ }, {
466
+ "tags": [],
467
+ "text": ""
468
+ }],
469
+ "references": {
470
+ "Promise": {
471
+ "location": "global"
472
+ }
473
+ },
474
+ "return": "Promise<void>"
475
+ },
476
+ "docs": {
477
+ "text": "Seleciona um item",
478
+ "tags": []
479
+ }
480
+ },
481
+ "clearInput": {
482
+ "complexType": {
483
+ "signature": "() => Promise<void>",
484
+ "parameters": [],
485
+ "references": {},
486
+ "return": "Promise<void>"
487
+ },
488
+ "docs": {
489
+ "text": "M\u00E9todo para limpa o campo de entrada de pesquisa",
490
+ "tags": []
491
+ }
492
+ },
493
+ "isInvalid": {
494
+ "complexType": {
495
+ "signature": "() => Promise<boolean>",
496
+ "parameters": [],
497
+ "references": {
498
+ "Promise": {
499
+ "location": "global"
500
+ }
501
+ },
502
+ "return": "Promise<boolean>"
503
+ },
504
+ "docs": {
505
+ "text": "Retorna se o conte\u00FAdo \u00E9 inv\u00E1lido.",
506
+ "tags": []
507
+ }
508
+ },
509
+ "setBlur": {
510
+ "complexType": {
511
+ "signature": "() => Promise<void>",
512
+ "parameters": [],
513
+ "references": {},
514
+ "return": "Promise<void>"
515
+ },
516
+ "docs": {
517
+ "text": "Remove o foco do campo",
518
+ "tags": []
519
+ }
520
+ },
521
+ "setFocus": {
522
+ "complexType": {
523
+ "signature": "() => Promise<void>",
524
+ "parameters": [],
525
+ "references": {},
526
+ "return": "Promise<void>"
527
+ },
528
+ "docs": {
529
+ "text": "Aplica o foco do campo",
530
+ "tags": []
531
+ }
532
+ }
533
+ };
534
+ }
535
+ static get elementRef() { return "_element"; }
536
+ static get watchers() {
537
+ return [{
538
+ "propName": "value",
539
+ "methodName": "observerValue"
540
+ }];
541
+ }
542
+ }
@@ -0,0 +1,27 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ ez-popup{
6
+ --ez-popup__title--font-size: var(--title--large, 20px);
7
+ }
8
+
9
+ .search-modal-scroller{
10
+ height: 174px;
11
+ }
12
+
13
+ .search-modal-text {
14
+ font-family: var(--font-pattern);
15
+ color: var(--text--primary);
16
+ font-size: var(--text--medium);
17
+ }
18
+
19
+ ez-filter-input > input {
20
+ text-overflow: ellipsis;
21
+ }
22
+ .ez-content {
23
+ height: 190px;
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: center;
27
+ }