@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-77074.0 → 0.0.0-bugfix-dev-KB-75047.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 (144) hide show
  1. package/dist/cjs/{SnkMessageBuilder-7691a2c1.js → SnkMessageBuilder-bae64d0d.js} +0 -10
  2. package/dist/cjs/index-f9e81701.js +0 -8
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  5. package/dist/cjs/snk-actions-button_4.cjs.entry.js +25 -22
  6. package/dist/cjs/snk-application.cjs.entry.js +18 -2
  7. package/dist/cjs/snk-config-options_3.cjs.entry.js +17 -5
  8. package/dist/cjs/snk-crud.cjs.entry.js +8 -2
  9. package/dist/cjs/snk-data-exporter.cjs.entry.js +2 -2
  10. package/dist/cjs/{snk-data-unit-7dbdad0e.js → snk-data-unit-3d9b6ed4.js} +26 -14
  11. package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
  12. package/dist/cjs/snk-detail-view.cjs.entry.js +2 -2
  13. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +9 -0
  14. package/dist/cjs/snk-filter-text.cjs.entry.js +2 -1
  15. package/dist/cjs/snk-grid.cjs.entry.js +10 -2
  16. package/dist/cjs/{snk-guides-viewer-eee43c8b.js → snk-guides-viewer-2139481c.js} +1 -1
  17. package/dist/cjs/snk-guides-viewer.cjs.entry.js +1 -1
  18. package/dist/cjs/snk-simple-crud.cjs.entry.js +7 -4
  19. package/dist/cjs/snk-taskbar.cjs.entry.js +40 -37
  20. package/dist/collection/collection-manifest.json +0 -3
  21. package/dist/collection/components/snk-actions-button/snk-actions-button.js +27 -26
  22. package/dist/collection/components/snk-application/snk-application.js +41 -1
  23. package/dist/collection/components/snk-crud/snk-crud.js +26 -2
  24. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +1 -1
  25. package/dist/collection/components/snk-data-unit/snk-data-unit.js +25 -13
  26. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +2 -1
  27. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type-mask.enum.js +8 -0
  28. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +5 -1
  29. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +20 -0
  30. package/dist/collection/components/snk-form-config/snk-form-config.js +17 -5
  31. package/dist/collection/components/snk-grid/snk-grid.js +28 -2
  32. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +25 -4
  33. package/dist/collection/components/snk-taskbar/snk-taskbar.js +41 -38
  34. package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +7 -1
  35. package/dist/collection/lib/message/SnkMessageBuilder.js +0 -2
  36. package/dist/components/SnkMessageBuilder.js +0 -10
  37. package/dist/components/index.d.ts +0 -3
  38. package/dist/components/index.js +0 -3
  39. package/dist/components/snk-actions-button2.js +27 -26
  40. package/dist/components/snk-application2.js +19 -2
  41. package/dist/components/snk-crud.js +9 -2
  42. package/dist/components/snk-data-unit2.js +25 -13
  43. package/dist/components/snk-detail-view2.js +1 -1
  44. package/dist/components/snk-filter-bar2.js +6 -0
  45. package/dist/components/snk-filter-item2.js +5 -1
  46. package/dist/components/snk-filter-text.js +2 -1
  47. package/dist/components/snk-form-config2.js +17 -5
  48. package/dist/components/snk-grid2.js +11 -2
  49. package/dist/components/snk-simple-crud2.js +8 -4
  50. package/dist/components/snk-taskbar2.js +41 -38
  51. package/dist/esm/{SnkMessageBuilder-7ace6803.js → SnkMessageBuilder-6fff4a4c.js} +0 -10
  52. package/dist/esm/index-a7d3d3f1.js +0 -8
  53. package/dist/esm/loader.js +1 -1
  54. package/dist/esm/sankhyablocks.js +1 -1
  55. package/dist/esm/snk-actions-button_4.entry.js +26 -23
  56. package/dist/esm/snk-application.entry.js +19 -3
  57. package/dist/esm/snk-config-options_3.entry.js +17 -5
  58. package/dist/esm/snk-crud.entry.js +8 -2
  59. package/dist/esm/snk-data-exporter.entry.js +2 -2
  60. package/dist/esm/{snk-data-unit-7a579dbd.js → snk-data-unit-9fa7d2b9.js} +26 -14
  61. package/dist/esm/snk-data-unit.entry.js +2 -2
  62. package/dist/esm/snk-detail-view.entry.js +2 -2
  63. package/dist/esm/snk-filter-bar_4.entry.js +10 -1
  64. package/dist/esm/snk-filter-text.entry.js +2 -1
  65. package/dist/esm/snk-grid.entry.js +10 -2
  66. package/dist/esm/{snk-guides-viewer-e8ca764a.js → snk-guides-viewer-b7ed39eb.js} +1 -1
  67. package/dist/esm/snk-guides-viewer.entry.js +1 -1
  68. package/dist/esm/snk-simple-crud.entry.js +7 -4
  69. package/dist/esm/snk-taskbar.entry.js +41 -38
  70. package/dist/sankhyablocks/{p-f4e221b2.entry.js → p-0d2a2e9e.entry.js} +1 -1
  71. package/dist/sankhyablocks/p-17425c72.js +1 -0
  72. package/dist/sankhyablocks/p-1d3ce0d9.entry.js +1 -0
  73. package/dist/sankhyablocks/p-342eeb3b.js +1 -0
  74. package/dist/sankhyablocks/p-3728d2aa.entry.js +11 -0
  75. package/dist/sankhyablocks/{p-42130213.entry.js → p-4138da61.entry.js} +1 -1
  76. package/dist/sankhyablocks/p-4e1f992e.entry.js +1 -0
  77. package/dist/sankhyablocks/p-619aeac8.entry.js +1 -0
  78. package/dist/sankhyablocks/{p-00f9fe5c.entry.js → p-7075b789.entry.js} +1 -1
  79. package/dist/sankhyablocks/p-83e71703.entry.js +1 -0
  80. package/dist/sankhyablocks/p-89c92727.entry.js +1 -0
  81. package/dist/sankhyablocks/p-a3fadd0b.entry.js +1 -0
  82. package/dist/sankhyablocks/p-af7f7b3e.entry.js +1 -0
  83. package/dist/sankhyablocks/{p-b389ed49.entry.js → p-e390641b.entry.js} +1 -1
  84. package/dist/sankhyablocks/{p-e3a285a2.js → p-e97be1c8.js} +1 -1
  85. package/dist/sankhyablocks/p-ec43fcc8.entry.js +1 -0
  86. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  87. package/dist/types/components/snk-actions-button/interfaces/index.d.ts +3 -0
  88. package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +3 -2
  89. package/dist/types/components/snk-application/snk-application.d.ts +6 -1
  90. package/dist/types/components/snk-crud/snk-crud.d.ts +4 -0
  91. package/dist/types/components/snk-filter-bar/filter-item/filter-item-type-mask.enum.d.ts +7 -0
  92. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +2 -0
  93. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +4 -0
  94. package/dist/types/components/snk-grid/snk-grid.d.ts +4 -0
  95. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +2 -0
  96. package/dist/types/components.d.ts +31 -393
  97. package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +1 -0
  98. package/package.json +1 -1
  99. package/react/components.d.ts +0 -3
  100. package/react/components.js +0 -3
  101. package/react/components.js.map +1 -1
  102. package/dist/cjs/input-distinct-search_2.cjs.entry.js +0 -469
  103. package/dist/cjs/snk-distinct-search.cjs.entry.js +0 -123
  104. package/dist/collection/components/snk-distinct-search/snk-distinct-search.css +0 -4
  105. package/dist/collection/components/snk-distinct-search/snk-distinct-search.js +0 -372
  106. package/dist/collection/components/snk-distinct-search/subcomponents/input-distinct-search/input-distinct-search.css +0 -109
  107. package/dist/collection/components/snk-distinct-search/subcomponents/input-distinct-search/input-distinct-search.js +0 -542
  108. package/dist/collection/components/snk-distinct-search/subcomponents/search-modal/search-modal.css +0 -27
  109. package/dist/collection/components/snk-distinct-search/subcomponents/search-modal/search-modal.js +0 -600
  110. package/dist/collection/components/snk-distinct-search/utils/filter-distinct-search.js +0 -13
  111. package/dist/collection/lib/http/data-fetcher/fetchers/distinct-search-fetcher.js +0 -25
  112. package/dist/collection/lib/message/resources/snk-distinct-search.msg.js +0 -9
  113. package/dist/components/filter-distinct-search.js +0 -15
  114. package/dist/components/input-distinct-search.d.ts +0 -11
  115. package/dist/components/input-distinct-search.js +0 -6
  116. package/dist/components/input-distinct-search2.js +0 -262
  117. package/dist/components/search-modal.d.ts +0 -11
  118. package/dist/components/search-modal.js +0 -6
  119. package/dist/components/search-modal2.js +0 -264
  120. package/dist/components/snk-distinct-search.d.ts +0 -11
  121. package/dist/components/snk-distinct-search.js +0 -163
  122. package/dist/esm/input-distinct-search_2.entry.js +0 -464
  123. package/dist/esm/snk-distinct-search.entry.js +0 -119
  124. package/dist/sankhyablocks/p-0e250436.entry.js +0 -1
  125. package/dist/sankhyablocks/p-154aa2a6.entry.js +0 -11
  126. package/dist/sankhyablocks/p-18cb1acb.entry.js +0 -1
  127. package/dist/sankhyablocks/p-1dbd5c18.entry.js +0 -1
  128. package/dist/sankhyablocks/p-2aae03a1.entry.js +0 -1
  129. package/dist/sankhyablocks/p-30ebcbe0.entry.js +0 -1
  130. package/dist/sankhyablocks/p-37074cc3.entry.js +0 -1
  131. package/dist/sankhyablocks/p-3858a2e4.entry.js +0 -1
  132. package/dist/sankhyablocks/p-563b7c28.entry.js +0 -1
  133. package/dist/sankhyablocks/p-96a89d58.entry.js +0 -1
  134. package/dist/sankhyablocks/p-c75fae8e.js +0 -1
  135. package/dist/sankhyablocks/p-d8665750.js +0 -1
  136. package/dist/sankhyablocks/p-f0aaad2b.entry.js +0 -1
  137. package/dist/types/components/snk-distinct-search/snk-distinct-search.d.ts +0 -83
  138. package/dist/types/components/snk-distinct-search/subcomponents/input-distinct-search/input-distinct-search.d.ts +0 -105
  139. package/dist/types/components/snk-distinct-search/subcomponents/search-modal/search-modal.d.ts +0 -126
  140. package/dist/types/components/snk-distinct-search/types/index.d.ts +0 -8
  141. package/dist/types/components/snk-distinct-search/utils/filter-distinct-search.d.ts +0 -3
  142. package/dist/types/lib/http/data-fetcher/fetchers/distinct-search-fetcher.d.ts +0 -6
  143. package/dist/types/lib/message/resources/snk-distinct-search.msg.d.ts +0 -2
  144. /package/dist/collection/components/{snk-distinct-search/types → snk-actions-button/interfaces}/index.js +0 -0
@@ -1,542 +0,0 @@
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
- }
@@ -1,27 +0,0 @@
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
- }