@sankhyalabs/ezui 1.1.4 → 1.1.8
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.
- package/README.md +72 -72
- package/dist/{ezui/DataUnit-285bec19.js → cjs/DataUnit-28b290cb.js} +382 -369
- package/dist/{ezui/index-919090de.js → cjs/RequestMetadata-2cd01e8a.js} +4 -383
- package/dist/cjs/ez-action-chip.cjs.entry.js +52 -0
- package/dist/cjs/ez-button_14.cjs.entry.js +3341 -0
- package/dist/cjs/ez-label-chip.cjs.entry.js +131 -0
- package/dist/cjs/ez-modal.cjs.entry.js +115 -0
- package/dist/cjs/ez-number-input.cjs.entry.js +248 -0
- package/dist/cjs/ez-time-input.cjs.entry.js +180 -0
- package/dist/cjs/ezui.cjs.js +19 -0
- package/dist/cjs/form-metadata.cjs.entry.js +74 -0
- package/dist/cjs/index-9403fe8f.js +1322 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/collection/collection-manifest.json +31 -0
- package/dist/collection/components/ez-action-chip/ez-action-chip.css +82 -0
- package/dist/collection/components/ez-action-chip/ez-action-chip.js +109 -0
- package/dist/collection/components/ez-button/ez-button.css +94 -0
- package/dist/collection/components/ez-button/ez-button.js +125 -0
- package/dist/collection/components/ez-calendar/ez-calendar.css +210 -0
- package/dist/collection/components/ez-calendar/ez-calendar.js +215 -0
- package/dist/collection/components/ez-check/ez-check.css +266 -0
- package/dist/collection/components/ez-check/ez-check.js +168 -0
- package/dist/collection/components/ez-collapsable-box/ez-collapsable-box.css +68 -0
- package/dist/collection/components/ez-collapsable-box/ez-collapsable-box.js +108 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box-interfaces.js +2 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +167 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +363 -0
- package/dist/collection/components/ez-date-input/ez-date-input.css +39 -0
- package/dist/collection/components/ez-date-input/ez-date-input.js +172 -0
- package/dist/collection/components/ez-form/ez-form.css +19 -0
- package/dist/collection/components/ez-form/ez-form.js +368 -0
- package/dist/collection/components/ez-form/store/Form.actions.js +132 -0
- package/dist/collection/components/ez-form/store/Form.reducer.js +194 -0
- package/dist/collection/components/ez-form/store/Form.selectors.js +44 -0
- package/dist/collection/components/ez-form/subcomponents/DataUnit.js +207 -0
- package/dist/collection/components/ez-form/subcomponents/FormMetadata.js +16 -0
- package/dist/collection/components/ez-form/subcomponents/css/place-holder.css +24 -0
- package/dist/collection/components/ez-form/subcomponents/form-metadata.js +173 -0
- package/dist/collection/components/ez-form/subcomponents/place-holder.js +14 -0
- package/dist/collection/components/ez-form/subcomponents/structure/Field.js +71 -0
- package/dist/collection/components/ez-form/subcomponents/structure/FieldSet.js +27 -0
- package/dist/collection/components/ez-form/subcomponents/structure/FormSheet.js +40 -0
- package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +27 -0
- package/dist/collection/components/ez-icon/ez-icon.css +37 -0
- package/dist/collection/components/ez-icon/ez-icon.js +56 -0
- package/dist/collection/components/ez-label-chip/ez-label-chip.css +117 -0
- package/dist/collection/components/ez-label-chip/ez-label-chip.js +276 -0
- package/dist/collection/components/ez-modal/ez-modal.css +87 -0
- package/dist/collection/components/ez-modal/ez-modal.js +224 -0
- package/dist/collection/components/ez-number-input/ez-number-input.css +144 -0
- package/dist/collection/components/ez-number-input/ez-number-input.js +465 -0
- package/dist/collection/components/ez-popover/ez-popover.css +39 -0
- package/dist/collection/components/ez-popover/ez-popover.js +323 -0
- package/dist/collection/components/ez-search/ez-search.css +296 -0
- package/dist/{ezui/ez-search.entry.js → collection/components/ez-search/ez-search.js} +527 -334
- package/dist/collection/components/ez-tabselector/ez-tabselector.css +126 -0
- package/dist/{ezui/ez-tabselector.entry.js → collection/components/ez-tabselector/ez-tabselector.js} +283 -209
- package/dist/collection/components/ez-text-area/ez-text-area.css +140 -0
- package/dist/collection/components/ez-text-area/ez-text-area.js +267 -0
- package/dist/collection/components/ez-text-input/ez-text-input.css +170 -0
- package/dist/collection/components/ez-text-input/ez-text-input.js +395 -0
- package/dist/collection/components/ez-time-input/ez-time-input.css +155 -0
- package/dist/collection/components/ez-time-input/ez-time-input.js +326 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/servidor.js +101 -0
- package/dist/collection/utils/FloatingManager.js +16 -0
- package/dist/collection/utils/utils.js +6 -0
- package/dist/custom-elements/index.js +5071 -0
- package/dist/esm/DataUnit-69e518fa.js +378 -0
- package/dist/esm/RequestMetadata-c265c9d5.js +527 -0
- package/dist/{ezui → esm}/ez-action-chip.entry.js +42 -42
- package/dist/esm/ez-button_14.entry.js +3324 -0
- package/dist/{ezui → esm}/ez-label-chip.entry.js +121 -121
- package/dist/{ezui → esm}/ez-modal.entry.js +105 -96
- package/dist/{ezui → esm}/ez-number-input.entry.js +238 -238
- package/dist/{ezui → esm}/ez-time-input.entry.js +170 -170
- package/dist/esm/ezui.js +17 -0
- package/dist/{ezui → esm}/form-metadata.entry.js +66 -66
- package/dist/esm/index-95bb3fd9.js +1293 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/ezui/ezui.esm.js +1 -122
- package/dist/ezui/index.esm.js +0 -1
- package/dist/ezui/p-10ef58b3.js +1 -0
- package/dist/ezui/p-185c57f4.js +1 -0
- package/dist/ezui/p-22b82efb.entry.js +1 -0
- package/dist/ezui/p-77fdb4fd.entry.js +1 -0
- package/dist/ezui/p-9dfccb16.js +1 -0
- package/dist/ezui/p-b0974f4f.entry.js +1 -0
- package/dist/ezui/p-db11c600.entry.js +1 -0
- package/dist/ezui/p-dd4331b7.entry.js +1 -0
- package/dist/ezui/p-f6fd31ab.entry.js +1 -0
- package/dist/ezui/p-fa260f22.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/ez-action-chip/ez-action-chip.d.ts +16 -16
- package/dist/types/components/ez-button/ez-button.d.ts +20 -20
- package/dist/types/components/ez-calendar/ez-calendar.d.ts +42 -42
- package/dist/types/components/ez-check/ez-check.d.ts +32 -32
- package/dist/types/components/ez-collapsable-box/ez-collapsable-box.d.ts +18 -18
- package/dist/types/components/ez-combo-box/ez-combo-box-interfaces.d.ts +4 -4
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +68 -68
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +31 -31
- package/dist/types/components/ez-form/ez-form.d.ts +31 -27
- package/dist/types/components/ez-form/store/Form.actions.d.ts +111 -104
- package/dist/types/components/ez-form/store/Form.reducer.d.ts +20 -11
- package/dist/types/components/ez-form/store/Form.selectors.d.ts +14 -13
- package/dist/types/components/ez-form/subcomponents/DataUnit.d.ts +55 -48
- package/dist/types/components/ez-form/subcomponents/FormMetadata.d.ts +41 -41
- package/dist/types/components/ez-form/subcomponents/form-metadata.d.ts +15 -15
- package/dist/types/components/ez-form/subcomponents/place-holder.d.ts +3 -3
- package/dist/types/components/ez-form/subcomponents/structure/Field.d.ts +10 -10
- package/dist/types/components/ez-form/subcomponents/structure/FieldSet.d.ts +12 -12
- package/dist/types/components/ez-form/subcomponents/structure/FormSheet.d.ts +13 -13
- package/dist/types/components/ez-form/subcomponents/structure/NavigationBar.d.ts +17 -7
- package/dist/types/components/ez-icon/ez-icon.d.ts +5 -5
- package/dist/types/components/ez-label-chip/ez-label-chip.d.ts +40 -40
- package/dist/types/components/ez-modal/ez-modal.d.ts +32 -26
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +73 -73
- package/dist/types/components/ez-popover/ez-popover.d.ts +52 -52
- package/dist/types/components/ez-search/ez-search.d.ts +95 -95
- package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +31 -31
- package/dist/types/components/ez-text-area/ez-text-area.d.ts +49 -49
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +64 -64
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +53 -53
- package/dist/types/components.d.ts +8 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +2 -2
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +13 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +114 -114
- package/react/components.d.ts +22 -0
- package/react/components.js +25 -0
- package/react/components.js.map +1 -0
- package/react/react-component-lib/createComponent.d.ts +10 -0
- package/react/react-component-lib/createComponent.js +59 -0
- package/react/react-component-lib/createComponent.js.map +1 -0
- package/react/react-component-lib/createOverlayComponent.d.ts +20 -0
- package/react/react-component-lib/createOverlayComponent.js +89 -0
- package/react/react-component-lib/createOverlayComponent.js.map +1 -0
- package/react/react-component-lib/index.d.ts +2 -0
- package/react/react-component-lib/index.js +3 -0
- package/react/react-component-lib/index.js.map +1 -0
- package/react/react-component-lib/interfaces.d.ts +29 -0
- package/react/react-component-lib/interfaces.js +1 -0
- package/react/react-component-lib/interfaces.js.map +1 -0
- package/react/react-component-lib/utils/attachProps.d.ts +12 -0
- package/react/react-component-lib/utils/attachProps.js +96 -0
- package/react/react-component-lib/utils/attachProps.js.map +1 -0
- package/react/react-component-lib/utils/case.d.ts +2 -0
- package/react/react-component-lib/utils/case.js +7 -0
- package/react/react-component-lib/utils/case.js.map +1 -0
- package/react/react-component-lib/utils/dev.d.ts +2 -0
- package/react/react-component-lib/utils/dev.js +13 -0
- package/react/react-component-lib/utils/dev.js.map +1 -0
- package/react/react-component-lib/utils/index.d.ts +7 -0
- package/react/react-component-lib/utils/index.js +21 -0
- package/react/react-component-lib/utils/index.js.map +1 -0
- package/dist/ezui/app-globals-0f993ce5.js +0 -3
- package/dist/ezui/css-shim-003e9264.js +0 -4
- package/dist/ezui/dom-1b195079.js +0 -73
- package/dist/ezui/ez-button.entry.js +0 -47
- package/dist/ezui/ez-calendar.entry.js +0 -102
- package/dist/ezui/ez-check.entry.js +0 -62
- package/dist/ezui/ez-collapsable-box.entry.js +0 -32
- package/dist/ezui/ez-combo-box.entry.js +0 -181
- package/dist/ezui/ez-date-input.entry.js +0 -77
- package/dist/ezui/ez-form.entry.js +0 -1907
- package/dist/ezui/ez-icon.entry.js +0 -17
- package/dist/ezui/ez-popover.entry.js +0 -112
- package/dist/ezui/ez-text-area.entry.js +0 -105
- package/dist/ezui/ez-text-input.entry.js +0 -202
- package/dist/ezui/index-39044be2.js +0 -2832
- package/dist/ezui/place-holder.entry.js +0 -15
- package/dist/ezui/shadow-css-c1ad5fdc.js +0 -383
|
@@ -1,334 +1,527 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
this.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
this.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
return
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
return (h("span", { class: spanClassName }, label));
|
|
174
|
-
}
|
|
175
|
-
showOptions() {
|
|
176
|
-
if (this.enabled) {
|
|
177
|
-
const top = this._inputElem.errormessage ? '0px' : '-17px';
|
|
178
|
-
this._popover.show(top);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
nextOption() {
|
|
182
|
-
this.showOptions();
|
|
183
|
-
this._preSelection = this._preSelection === undefined ? 0 : Math.min(this._preSelection + 1, this._visibleOptions.length - 1);
|
|
184
|
-
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
185
|
-
}
|
|
186
|
-
previousOption() {
|
|
187
|
-
this._preSelection = this._preSelection === undefined ? 0 : Math.max(this._preSelection - 1, 0);
|
|
188
|
-
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
189
|
-
}
|
|
190
|
-
scrollToOption(opt) {
|
|
191
|
-
const liElem = this.el.shadowRoot.querySelector(`li#item_${opt.value}`);
|
|
192
|
-
if (liElem) {
|
|
193
|
-
const parent = liElem.parentElement;
|
|
194
|
-
const parentRect = parent.getBoundingClientRect();
|
|
195
|
-
const itemRect = liElem.getBoundingClientRect();
|
|
196
|
-
if (itemRect.bottom > parentRect.bottom || itemRect.top < parentRect.top) {
|
|
197
|
-
liElem.scrollIntoView();
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
selectCurrentOption() {
|
|
202
|
-
if (this._preSelection !== undefined) {
|
|
203
|
-
this.selectOption(this._visibleOptions[this._preSelection]);
|
|
204
|
-
this._preSelection = undefined;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
selectOption(opt) {
|
|
208
|
-
this._popover.hide();
|
|
209
|
-
this.value = opt === null || opt === void 0 ? void 0 : opt.ajustedValue;
|
|
210
|
-
this._inputElem.value = opt.value;
|
|
211
|
-
//Definir com a equipe de design se vai ser utilizado dessa forma.
|
|
212
|
-
// this._inputElem.value = opt.value? opt.value + " - "+ opt?.label: '';
|
|
213
|
-
}
|
|
214
|
-
keyDownHandler(event) {
|
|
215
|
-
switch (event.key) {
|
|
216
|
-
case "ArrowDown":
|
|
217
|
-
this.nextOption();
|
|
218
|
-
break;
|
|
219
|
-
case "ArrowUp":
|
|
220
|
-
this.previousOption();
|
|
221
|
-
break;
|
|
222
|
-
case "Enter":
|
|
223
|
-
this.selectCurrentOption();
|
|
224
|
-
break;
|
|
225
|
-
}
|
|
226
|
-
event.stopPropagation();
|
|
227
|
-
}
|
|
228
|
-
handleSetValueByOption(ev) {
|
|
229
|
-
this._popover.hide();
|
|
230
|
-
const spanEl = ev.target;
|
|
231
|
-
const sourceElement = ev.composedPath()[0];
|
|
232
|
-
let li;
|
|
233
|
-
if (sourceElement.tagName === 'SPAN') {
|
|
234
|
-
li = spanEl.parentNode;
|
|
235
|
-
}
|
|
236
|
-
else {
|
|
237
|
-
li = spanEl.parentNode.parentNode;
|
|
238
|
-
}
|
|
239
|
-
this.value = li.id.split('_')[1];
|
|
240
|
-
this._inputElem.value = li.accessKey;
|
|
241
|
-
this.ezChange.emit();
|
|
242
|
-
}
|
|
243
|
-
handleChange() {
|
|
244
|
-
if (this._changeDeboucing) {
|
|
245
|
-
window.clearTimeout(this._changeDeboucing);
|
|
246
|
-
}
|
|
247
|
-
this._changeDeboucing = window.setTimeout(() => {
|
|
248
|
-
var _a, _b;
|
|
249
|
-
if (((_b = (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.length) <= 0) {
|
|
250
|
-
return;
|
|
251
|
-
}
|
|
252
|
-
/* save tip on localStorage */
|
|
253
|
-
let key = this.buildId();
|
|
254
|
-
this.saveStorageItem(key, this._inputElem.value);
|
|
255
|
-
/* load data */
|
|
256
|
-
if (this.loadexecutor) {
|
|
257
|
-
this._loadDataFunction(this._inputElem.value, (serverData) => { this.populateOptions(serverData); });
|
|
258
|
-
}
|
|
259
|
-
}, 200);
|
|
260
|
-
}
|
|
261
|
-
normalizeResult(data) {
|
|
262
|
-
let options = [];
|
|
263
|
-
if (data instanceof Array) {
|
|
264
|
-
options = data;
|
|
265
|
-
}
|
|
266
|
-
else {
|
|
267
|
-
if (data instanceof Object) {
|
|
268
|
-
for (var key in data) {
|
|
269
|
-
let newOption = { value: '', label: '' };
|
|
270
|
-
newOption.value = key;
|
|
271
|
-
newOption.label = data[key];
|
|
272
|
-
options.push(newOption);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
this._options = [{ value: '', label: '' }].concat(options);
|
|
277
|
-
this.buildOptions();
|
|
278
|
-
}
|
|
279
|
-
populateOptions(serverData) {
|
|
280
|
-
if (serverData instanceof Promise) {
|
|
281
|
-
serverData.then(this.normalizeResult);
|
|
282
|
-
}
|
|
283
|
-
else {
|
|
284
|
-
this.normalizeResult(serverData);
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
buildOptions() {
|
|
288
|
-
var _a;
|
|
289
|
-
this._visibleOptions = [];
|
|
290
|
-
this._visibleOptions = this.adjustOptions(this._options);
|
|
291
|
-
this._visibleOptions = this.sortArrayOptions(this._visibleOptions, 'label');
|
|
292
|
-
if (this._visibleOptions.length > 0) {
|
|
293
|
-
(_a = this._divElem) === null || _a === void 0 ? void 0 : _a.classList.add(this._classSelect);
|
|
294
|
-
this.showOptions();
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
setClassForSpanLabel() {
|
|
298
|
-
if (!this.showvalue) {
|
|
299
|
-
return '--li__spanlabel--full-width';
|
|
300
|
-
}
|
|
301
|
-
else {
|
|
302
|
-
return '--li__spanlabel';
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
handleFocus() {
|
|
306
|
-
if (this._inputElem && (!this._inputElem.value || this._inputElem.value.length === 0)) {
|
|
307
|
-
this.buildDataList();
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
parseExecutor(executor) {
|
|
311
|
-
if (executor) {
|
|
312
|
-
return executor instanceof Function ? executor : eval(executor);
|
|
313
|
-
}
|
|
314
|
-
return null;
|
|
315
|
-
}
|
|
316
|
-
componentDidLoad() {
|
|
317
|
-
if (this.value && this.value.length > 0) {
|
|
318
|
-
this._inputElem.value = this.value;
|
|
319
|
-
}
|
|
320
|
-
this._loadDataFunction = this.parseExecutor(this.loadexecutor);
|
|
321
|
-
}
|
|
322
|
-
render() {
|
|
323
|
-
var _a;
|
|
324
|
-
return (h(Host, null,
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
1
|
+
import { Component, Element, Event, h, Host, Method, Prop, State, Watch } from '@stencil/core';
|
|
2
|
+
;
|
|
3
|
+
;
|
|
4
|
+
export class EzSearch {
|
|
5
|
+
constructor() {
|
|
6
|
+
this._options = [];
|
|
7
|
+
this._classSelect = 'list-container--4row';
|
|
8
|
+
/**
|
|
9
|
+
* Deixa o campo disponível ou não para digitação.
|
|
10
|
+
*/
|
|
11
|
+
this.enabled = true;
|
|
12
|
+
/**
|
|
13
|
+
* Quantidade máxima de itens guardados no localstorage
|
|
14
|
+
*/
|
|
15
|
+
this.qtdHotItems = 6;
|
|
16
|
+
/**
|
|
17
|
+
* Ajusta a opção de mostrar o "value" para cada "label". Como default "value" não está presente (showvalue = false)
|
|
18
|
+
*/
|
|
19
|
+
this.showvalue = false;
|
|
20
|
+
///// HOTSEARCH /////
|
|
21
|
+
this.buildId = () => {
|
|
22
|
+
return btoa(`${this.hotsearchid}:${location.pathname}`);
|
|
23
|
+
};
|
|
24
|
+
this.getStorageItems = (key) => {
|
|
25
|
+
let storageValueStr = localStorage.getItem('hotSearch-ez-search:' + key);
|
|
26
|
+
let storageItems = [];
|
|
27
|
+
if (storageValueStr !== null) {
|
|
28
|
+
storageItems = JSON.parse(storageValueStr);
|
|
29
|
+
}
|
|
30
|
+
return storageItems;
|
|
31
|
+
};
|
|
32
|
+
this.orderHotList = (list) => {
|
|
33
|
+
return list.sort((a, b) => {
|
|
34
|
+
let time1 = new Date(a.dtRecent).getTime();
|
|
35
|
+
let time2 = new Date(b.dtRecent).getTime();
|
|
36
|
+
let qtd1 = a.qtd;
|
|
37
|
+
let qtd2 = b.qtd;
|
|
38
|
+
if (time1 < time2)
|
|
39
|
+
return -1;
|
|
40
|
+
if (time1 > time2)
|
|
41
|
+
return 1;
|
|
42
|
+
if (qtd1 > qtd2)
|
|
43
|
+
return -1;
|
|
44
|
+
if (qtd1 < qtd2)
|
|
45
|
+
return 1;
|
|
46
|
+
return 0;
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
this.saveStorageItem = (key, value) => {
|
|
50
|
+
if (value == '' || value == undefined)
|
|
51
|
+
return;
|
|
52
|
+
let storageItem = this.getStorageItems(key);
|
|
53
|
+
let element = this.getElement(storageItem, value);
|
|
54
|
+
if (element) {
|
|
55
|
+
element.qtd++;
|
|
56
|
+
element.dtRecent = this.getOnlyDate();
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
if (storageItem.length >= this.qtdHotItems) {
|
|
60
|
+
storageItem = this.orderHotList(storageItem);
|
|
61
|
+
storageItem.splice(-1, 1);
|
|
62
|
+
}
|
|
63
|
+
storageItem.push({
|
|
64
|
+
description: value,
|
|
65
|
+
qtd: 1,
|
|
66
|
+
dtRecent: this.getOnlyDate()
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
localStorage.setItem('hotSearch-ez-search:' + key, JSON.stringify(storageItem));
|
|
70
|
+
return storageItem;
|
|
71
|
+
};
|
|
72
|
+
this.adjustOptions = (arrayOptions) => {
|
|
73
|
+
let optionsTemp = [];
|
|
74
|
+
arrayOptions.map(el => {
|
|
75
|
+
optionsTemp.push({
|
|
76
|
+
value: el.value,
|
|
77
|
+
label: el.label,
|
|
78
|
+
ajustedValue: el.value === null || el.value === undefined || el.value === '' ? el.label : el.value,
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
return optionsTemp;
|
|
82
|
+
};
|
|
83
|
+
this.sortArrayOptions = (array, propname) => {
|
|
84
|
+
const sortedArray = array.sort(function (a, b) {
|
|
85
|
+
if (a[propname] < b[propname]) {
|
|
86
|
+
return -1;
|
|
87
|
+
}
|
|
88
|
+
if (a[propname] > b[propname]) {
|
|
89
|
+
return 1;
|
|
90
|
+
}
|
|
91
|
+
return 0;
|
|
92
|
+
});
|
|
93
|
+
return sortedArray;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
valueChanged() {
|
|
97
|
+
var _a;
|
|
98
|
+
if (this.value) {
|
|
99
|
+
this.ezChange.emit({ value: this.value, label: (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.value });
|
|
100
|
+
let key = this.buildId();
|
|
101
|
+
this.saveStorageItem(key, this.value);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
//ajustar ao fim do teste
|
|
105
|
+
onInputTeste() {
|
|
106
|
+
if (this._inputElem) {
|
|
107
|
+
this.handleChange();
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
getElement(storageItem, value) {
|
|
111
|
+
return storageItem.find(e => e.description === value);
|
|
112
|
+
}
|
|
113
|
+
getOnlyDate() {
|
|
114
|
+
let dt = new Date();
|
|
115
|
+
dt.setHours(0);
|
|
116
|
+
dt.setMinutes(0);
|
|
117
|
+
dt.setSeconds(0);
|
|
118
|
+
dt.setUTCMilliseconds(0);
|
|
119
|
+
return dt.toString();
|
|
120
|
+
}
|
|
121
|
+
onInputChange(ev) {
|
|
122
|
+
const el = ev.target;
|
|
123
|
+
let key = this.buildId();
|
|
124
|
+
this.saveStorageItem(key, el.value);
|
|
125
|
+
}
|
|
126
|
+
buildDataList() {
|
|
127
|
+
try {
|
|
128
|
+
if (this.hotsearchid === undefined) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
let key = this.buildId();
|
|
132
|
+
let optionsArray = [];
|
|
133
|
+
this._options = [];
|
|
134
|
+
if (this.getStorageItems(key).length > 0) {
|
|
135
|
+
this.orderHotList(this.getStorageItems(key))
|
|
136
|
+
.forEach((el) => {
|
|
137
|
+
optionsArray.push({
|
|
138
|
+
value: el.description,
|
|
139
|
+
label: el.description,
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
this._options = [{ value: '', label: '' }].concat(optionsArray);
|
|
143
|
+
this.buildOptions();
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
catch (err) {
|
|
147
|
+
this.errormessage = err;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
///// EVENT HANDLERS
|
|
151
|
+
buildItem(opt, index) {
|
|
152
|
+
const className = index === this._preSelection ? "--li--preselected" : "";
|
|
153
|
+
return h("li", { class: className, key: opt.ajustedValue, accessKey: opt.label.toString(), id: 'item_' + opt.ajustedValue, onMouseDown: (ev) => this.handleSetValueByOption(ev) },
|
|
154
|
+
this.highlightMatch(opt.label),
|
|
155
|
+
this.showvalue ? h("span", { title: opt.ajustedValue, class: '--li__spanvalue' }, opt.ajustedValue) : null);
|
|
156
|
+
}
|
|
157
|
+
highlightMatch(label) {
|
|
158
|
+
var _a;
|
|
159
|
+
const spanClassName = this.showvalue ? '--li__spanlabel' : '--li__spanlabel--full-width';
|
|
160
|
+
if ((_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.value) {
|
|
161
|
+
const criteriaLength = this._inputElem.value.length;
|
|
162
|
+
const matchStart = label.toUpperCase().indexOf(this._inputElem.value);
|
|
163
|
+
if (matchStart > -1) {
|
|
164
|
+
const strLabelStart = label.substr(0, matchStart);
|
|
165
|
+
const strLabelEnd = label.substr(matchStart + criteriaLength);
|
|
166
|
+
const strMatch = label.substr(matchStart, criteriaLength);
|
|
167
|
+
return (h("span", { class: spanClassName },
|
|
168
|
+
strLabelStart,
|
|
169
|
+
h("strong", null, strMatch),
|
|
170
|
+
strLabelEnd));
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return (h("span", { class: spanClassName }, label));
|
|
174
|
+
}
|
|
175
|
+
showOptions() {
|
|
176
|
+
if (this.enabled) {
|
|
177
|
+
const top = this._inputElem.errormessage ? '0px' : '-17px';
|
|
178
|
+
this._popover.show(top);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
nextOption() {
|
|
182
|
+
this.showOptions();
|
|
183
|
+
this._preSelection = this._preSelection === undefined ? 0 : Math.min(this._preSelection + 1, this._visibleOptions.length - 1);
|
|
184
|
+
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
185
|
+
}
|
|
186
|
+
previousOption() {
|
|
187
|
+
this._preSelection = this._preSelection === undefined ? 0 : Math.max(this._preSelection - 1, 0);
|
|
188
|
+
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
189
|
+
}
|
|
190
|
+
scrollToOption(opt) {
|
|
191
|
+
const liElem = this.el.shadowRoot.querySelector(`li#item_${opt.value}`);
|
|
192
|
+
if (liElem) {
|
|
193
|
+
const parent = liElem.parentElement;
|
|
194
|
+
const parentRect = parent.getBoundingClientRect();
|
|
195
|
+
const itemRect = liElem.getBoundingClientRect();
|
|
196
|
+
if (itemRect.bottom > parentRect.bottom || itemRect.top < parentRect.top) {
|
|
197
|
+
liElem.scrollIntoView();
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
selectCurrentOption() {
|
|
202
|
+
if (this._preSelection !== undefined) {
|
|
203
|
+
this.selectOption(this._visibleOptions[this._preSelection]);
|
|
204
|
+
this._preSelection = undefined;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
selectOption(opt) {
|
|
208
|
+
this._popover.hide();
|
|
209
|
+
this.value = opt === null || opt === void 0 ? void 0 : opt.ajustedValue;
|
|
210
|
+
this._inputElem.value = opt.value;
|
|
211
|
+
//Definir com a equipe de design se vai ser utilizado dessa forma.
|
|
212
|
+
// this._inputElem.value = opt.value? opt.value + " - "+ opt?.label: '';
|
|
213
|
+
}
|
|
214
|
+
keyDownHandler(event) {
|
|
215
|
+
switch (event.key) {
|
|
216
|
+
case "ArrowDown":
|
|
217
|
+
this.nextOption();
|
|
218
|
+
break;
|
|
219
|
+
case "ArrowUp":
|
|
220
|
+
this.previousOption();
|
|
221
|
+
break;
|
|
222
|
+
case "Enter":
|
|
223
|
+
this.selectCurrentOption();
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
event.stopPropagation();
|
|
227
|
+
}
|
|
228
|
+
handleSetValueByOption(ev) {
|
|
229
|
+
this._popover.hide();
|
|
230
|
+
const spanEl = ev.target;
|
|
231
|
+
const sourceElement = ev.composedPath()[0];
|
|
232
|
+
let li;
|
|
233
|
+
if (sourceElement.tagName === 'SPAN') {
|
|
234
|
+
li = spanEl.parentNode;
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
li = spanEl.parentNode.parentNode;
|
|
238
|
+
}
|
|
239
|
+
this.value = li.id.split('_')[1];
|
|
240
|
+
this._inputElem.value = li.accessKey;
|
|
241
|
+
this.ezChange.emit();
|
|
242
|
+
}
|
|
243
|
+
handleChange() {
|
|
244
|
+
if (this._changeDeboucing) {
|
|
245
|
+
window.clearTimeout(this._changeDeboucing);
|
|
246
|
+
}
|
|
247
|
+
this._changeDeboucing = window.setTimeout(() => {
|
|
248
|
+
var _a, _b;
|
|
249
|
+
if (((_b = (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.length) <= 0) {
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
/* save tip on localStorage */
|
|
253
|
+
let key = this.buildId();
|
|
254
|
+
this.saveStorageItem(key, this._inputElem.value);
|
|
255
|
+
/* load data */
|
|
256
|
+
if (this.loadexecutor) {
|
|
257
|
+
this._loadDataFunction(this._inputElem.value, (serverData) => { this.populateOptions(serverData); });
|
|
258
|
+
}
|
|
259
|
+
}, 200);
|
|
260
|
+
}
|
|
261
|
+
normalizeResult(data) {
|
|
262
|
+
let options = [];
|
|
263
|
+
if (data instanceof Array) {
|
|
264
|
+
options = data;
|
|
265
|
+
}
|
|
266
|
+
else {
|
|
267
|
+
if (data instanceof Object) {
|
|
268
|
+
for (var key in data) {
|
|
269
|
+
let newOption = { value: '', label: '' };
|
|
270
|
+
newOption.value = key;
|
|
271
|
+
newOption.label = data[key];
|
|
272
|
+
options.push(newOption);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
this._options = [{ value: '', label: '' }].concat(options);
|
|
277
|
+
this.buildOptions();
|
|
278
|
+
}
|
|
279
|
+
populateOptions(serverData) {
|
|
280
|
+
if (serverData instanceof Promise) {
|
|
281
|
+
serverData.then(this.normalizeResult);
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
this.normalizeResult(serverData);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
buildOptions() {
|
|
288
|
+
var _a;
|
|
289
|
+
this._visibleOptions = [];
|
|
290
|
+
this._visibleOptions = this.adjustOptions(this._options);
|
|
291
|
+
this._visibleOptions = this.sortArrayOptions(this._visibleOptions, 'label');
|
|
292
|
+
if (this._visibleOptions.length > 0) {
|
|
293
|
+
(_a = this._divElem) === null || _a === void 0 ? void 0 : _a.classList.add(this._classSelect);
|
|
294
|
+
this.showOptions();
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
setClassForSpanLabel() {
|
|
298
|
+
if (!this.showvalue) {
|
|
299
|
+
return '--li__spanlabel--full-width';
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
return '--li__spanlabel';
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
handleFocus() {
|
|
306
|
+
if (this._inputElem && (!this._inputElem.value || this._inputElem.value.length === 0)) {
|
|
307
|
+
this.buildDataList();
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
parseExecutor(executor) {
|
|
311
|
+
if (executor) {
|
|
312
|
+
return executor instanceof Function ? executor : eval(executor);
|
|
313
|
+
}
|
|
314
|
+
return null;
|
|
315
|
+
}
|
|
316
|
+
componentDidLoad() {
|
|
317
|
+
if (this.value && this.value.length > 0) {
|
|
318
|
+
this._inputElem.value = this.value;
|
|
319
|
+
}
|
|
320
|
+
this._loadDataFunction = this.parseExecutor(this.loadexecutor);
|
|
321
|
+
}
|
|
322
|
+
render() {
|
|
323
|
+
var _a;
|
|
324
|
+
return (h(Host, null,
|
|
325
|
+
h("ez-text-input", { ref: (el) => { this._inputElem = el; }, label: this.label, enabled: this.enabled, onFocus: () => { this.handleFocus(); }, onInput: () => { this.handleChange(); }, onKeyDown: event => this.keyDownHandler(event), errormessage: this.errormessage },
|
|
326
|
+
h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-search", onClick: () => { alert("Esta ação irá abrir o PopUp!"); }, slot: "leftIcon" })),
|
|
327
|
+
h("ez-popover", { boxwidth: '100%', ref: el => this._popover = el },
|
|
328
|
+
h("div", { class: 'list-container', ref: (el) => this._divElem = el }, (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.map((opt, index) => this.buildItem(opt, index))))));
|
|
329
|
+
}
|
|
330
|
+
;
|
|
331
|
+
static get is() { return "ez-search"; }
|
|
332
|
+
static get encapsulation() { return "shadow"; }
|
|
333
|
+
static get originalStyleUrls() { return {
|
|
334
|
+
"$": ["ez-search.css"]
|
|
335
|
+
}; }
|
|
336
|
+
static get styleUrls() { return {
|
|
337
|
+
"$": ["ez-search.css"]
|
|
338
|
+
}; }
|
|
339
|
+
static get properties() { return {
|
|
340
|
+
"value": {
|
|
341
|
+
"type": "string",
|
|
342
|
+
"mutable": true,
|
|
343
|
+
"complexType": {
|
|
344
|
+
"original": "string",
|
|
345
|
+
"resolved": "string",
|
|
346
|
+
"references": {}
|
|
347
|
+
},
|
|
348
|
+
"required": false,
|
|
349
|
+
"optional": false,
|
|
350
|
+
"docs": {
|
|
351
|
+
"tags": [],
|
|
352
|
+
"text": "C\u00F3digo do registro selecionado"
|
|
353
|
+
},
|
|
354
|
+
"attribute": "value",
|
|
355
|
+
"reflect": true
|
|
356
|
+
},
|
|
357
|
+
"label": {
|
|
358
|
+
"type": "string",
|
|
359
|
+
"mutable": true,
|
|
360
|
+
"complexType": {
|
|
361
|
+
"original": "string",
|
|
362
|
+
"resolved": "string",
|
|
363
|
+
"references": {}
|
|
364
|
+
},
|
|
365
|
+
"required": false,
|
|
366
|
+
"optional": false,
|
|
367
|
+
"docs": {
|
|
368
|
+
"tags": [],
|
|
369
|
+
"text": "Label \u00E9 o t\u00EDtulo do campo"
|
|
370
|
+
},
|
|
371
|
+
"attribute": "label",
|
|
372
|
+
"reflect": true
|
|
373
|
+
},
|
|
374
|
+
"enabled": {
|
|
375
|
+
"type": "boolean",
|
|
376
|
+
"mutable": true,
|
|
377
|
+
"complexType": {
|
|
378
|
+
"original": "boolean",
|
|
379
|
+
"resolved": "boolean",
|
|
380
|
+
"references": {}
|
|
381
|
+
},
|
|
382
|
+
"required": false,
|
|
383
|
+
"optional": false,
|
|
384
|
+
"docs": {
|
|
385
|
+
"tags": [],
|
|
386
|
+
"text": "Deixa o campo dispon\u00EDvel ou n\u00E3o para digita\u00E7\u00E3o."
|
|
387
|
+
},
|
|
388
|
+
"attribute": "enabled",
|
|
389
|
+
"reflect": true,
|
|
390
|
+
"defaultValue": "true"
|
|
391
|
+
},
|
|
392
|
+
"qtdHotItems": {
|
|
393
|
+
"type": "number",
|
|
394
|
+
"mutable": false,
|
|
395
|
+
"complexType": {
|
|
396
|
+
"original": "number",
|
|
397
|
+
"resolved": "number",
|
|
398
|
+
"references": {}
|
|
399
|
+
},
|
|
400
|
+
"required": false,
|
|
401
|
+
"optional": false,
|
|
402
|
+
"docs": {
|
|
403
|
+
"tags": [],
|
|
404
|
+
"text": "Quantidade m\u00E1xima de itens guardados no localstorage"
|
|
405
|
+
},
|
|
406
|
+
"attribute": "qtd-hot-items",
|
|
407
|
+
"reflect": true,
|
|
408
|
+
"defaultValue": "6"
|
|
409
|
+
},
|
|
410
|
+
"showvalue": {
|
|
411
|
+
"type": "boolean",
|
|
412
|
+
"mutable": false,
|
|
413
|
+
"complexType": {
|
|
414
|
+
"original": "boolean",
|
|
415
|
+
"resolved": "boolean",
|
|
416
|
+
"references": {}
|
|
417
|
+
},
|
|
418
|
+
"required": false,
|
|
419
|
+
"optional": false,
|
|
420
|
+
"docs": {
|
|
421
|
+
"tags": [],
|
|
422
|
+
"text": "Ajusta a op\u00E7\u00E3o de mostrar o \"value\" para cada \"label\". Como default \"value\" n\u00E3o est\u00E1 presente (showvalue = false)"
|
|
423
|
+
},
|
|
424
|
+
"attribute": "showvalue",
|
|
425
|
+
"reflect": true,
|
|
426
|
+
"defaultValue": "false"
|
|
427
|
+
},
|
|
428
|
+
"errormessage": {
|
|
429
|
+
"type": "string",
|
|
430
|
+
"mutable": true,
|
|
431
|
+
"complexType": {
|
|
432
|
+
"original": "string",
|
|
433
|
+
"resolved": "string",
|
|
434
|
+
"references": {}
|
|
435
|
+
},
|
|
436
|
+
"required": false,
|
|
437
|
+
"optional": false,
|
|
438
|
+
"docs": {
|
|
439
|
+
"tags": [],
|
|
440
|
+
"text": "Quando h\u00E1 um problema de valida\u00E7\u00E3o, serve como orienta\u00E7\u00E3o ao usu\u00E1rio"
|
|
441
|
+
},
|
|
442
|
+
"attribute": "errormessage",
|
|
443
|
+
"reflect": true
|
|
444
|
+
},
|
|
445
|
+
"loadexecutor": {
|
|
446
|
+
"type": "string",
|
|
447
|
+
"mutable": false,
|
|
448
|
+
"complexType": {
|
|
449
|
+
"original": "string | Function",
|
|
450
|
+
"resolved": "Function | string",
|
|
451
|
+
"references": {
|
|
452
|
+
"Function": {
|
|
453
|
+
"location": "global"
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"required": false,
|
|
458
|
+
"optional": false,
|
|
459
|
+
"docs": {
|
|
460
|
+
"tags": [],
|
|
461
|
+
"text": "Quando h\u00E1 um problema de valida\u00E7\u00E3o, serve como orienta\u00E7\u00E3o ao usu\u00E1rio"
|
|
462
|
+
},
|
|
463
|
+
"attribute": "loadexecutor",
|
|
464
|
+
"reflect": false
|
|
465
|
+
},
|
|
466
|
+
"hotsearchid": {
|
|
467
|
+
"type": "string",
|
|
468
|
+
"mutable": false,
|
|
469
|
+
"complexType": {
|
|
470
|
+
"original": "string",
|
|
471
|
+
"resolved": "string",
|
|
472
|
+
"references": {}
|
|
473
|
+
},
|
|
474
|
+
"required": false,
|
|
475
|
+
"optional": false,
|
|
476
|
+
"docs": {
|
|
477
|
+
"tags": [],
|
|
478
|
+
"text": "Define o identificador \u00FAnico do hotSearch, caso esta propriedade n\u00E3o seja preenchida, o hotSearch n\u00E3o funcionar\u00E1."
|
|
479
|
+
},
|
|
480
|
+
"attribute": "hotsearchid",
|
|
481
|
+
"reflect": false
|
|
482
|
+
}
|
|
483
|
+
}; }
|
|
484
|
+
static get states() { return {
|
|
485
|
+
"_preSelection": {},
|
|
486
|
+
"_visibleOptions": {}
|
|
487
|
+
}; }
|
|
488
|
+
static get events() { return [{
|
|
489
|
+
"method": "ezChange",
|
|
490
|
+
"name": "ezChange",
|
|
491
|
+
"bubbles": true,
|
|
492
|
+
"cancelable": true,
|
|
493
|
+
"composed": true,
|
|
494
|
+
"docs": {
|
|
495
|
+
"tags": [],
|
|
496
|
+
"text": "Este evento emite o c\u00F3digo do registro selecionado"
|
|
497
|
+
},
|
|
498
|
+
"complexType": {
|
|
499
|
+
"original": "OptionsPesquisa",
|
|
500
|
+
"resolved": "OptionsPesquisa",
|
|
501
|
+
"references": {
|
|
502
|
+
"OptionsPesquisa": {
|
|
503
|
+
"location": "local"
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}]; }
|
|
508
|
+
static get methods() { return {
|
|
509
|
+
"onInputTeste": {
|
|
510
|
+
"complexType": {
|
|
511
|
+
"signature": "() => Promise<void>",
|
|
512
|
+
"parameters": [],
|
|
513
|
+
"references": {},
|
|
514
|
+
"return": "Promise<void>"
|
|
515
|
+
},
|
|
516
|
+
"docs": {
|
|
517
|
+
"text": "",
|
|
518
|
+
"tags": []
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
}; }
|
|
522
|
+
static get elementRef() { return "el"; }
|
|
523
|
+
static get watchers() { return [{
|
|
524
|
+
"propName": "value",
|
|
525
|
+
"methodName": "valueChanged"
|
|
526
|
+
}]; }
|
|
527
|
+
}
|