@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-83282.1 → 0.0.0-bugfix-dev-KB-84596.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.
- package/dist/cjs/ez-badge.cjs.entry.js +14 -2
- package/dist/cjs/ez-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_2.cjs.entry.js +1416 -7
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-input.cjs.entry.js +4 -17
- package/dist/cjs/ez-date-time-input.cjs.entry.js +4 -16
- package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +35 -61
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js +200 -0
- package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +28 -158
- package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/index-a7b0c73d.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/searchFormatters-b7e1ed1e.js +23 -0
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/ez-badge/ez-badge.css +12 -1
- package/dist/collection/components/ez-badge/ez-badge.js +31 -1
- package/dist/collection/components/ez-button/ez-button.css +1 -1
- package/dist/collection/components/ez-card-item/ez-card-item.css +1 -3
- package/dist/collection/components/ez-chip/ez-chip.css +5 -1
- package/dist/collection/components/ez-date-input/ez-date-input.js +4 -17
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +4 -16
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +4 -2
- package/dist/collection/components/ez-grid/ez-grid.js +6 -3
- package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js +7 -54
- package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +20 -4
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +55 -15
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +2 -2
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +73 -13
- package/dist/collection/components/ez-scroller/ez-scroller.css +3 -0
- package/dist/collection/components/ez-search/ez-search.css +0 -219
- package/dist/collection/components/ez-search/ez-search.js +28 -167
- package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css +227 -0
- package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +289 -0
- package/dist/collection/components/ez-search/utils/searchFormatters.js +18 -0
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +1 -1
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +237 -282
- package/dist/esm/ez-badge.entry.js +14 -2
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-card-item_2.entry.js +1416 -7
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-date-input.entry.js +4 -17
- package/dist/esm/ez-date-time-input.entry.js +4 -16
- package/dist/esm/ez-form-view.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +36 -62
- package/dist/esm/ez-popover-plus_3.entry.js +194 -0
- package/dist/esm/ez-scroller_2.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +29 -159
- package/dist/esm/ez-split-item.entry.js +1 -1
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/index-baa5e267.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/searchFormatters-8229207e.js +20 -0
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-20cb13fa.entry.js +1 -0
- package/dist/ezui/p-23b6128c.entry.js +1 -0
- package/dist/ezui/p-2872fd16.entry.js +1 -0
- package/dist/ezui/p-288631d1.entry.js +1 -0
- package/dist/ezui/p-40a60148.js +1 -0
- package/dist/ezui/p-788467fe.entry.js +1 -0
- package/dist/ezui/p-a69355eb.entry.js +1 -0
- package/dist/ezui/p-b7706b43.entry.js +1 -0
- package/dist/ezui/{p-53116373.entry.js → p-cb5cd243.entry.js} +46 -46
- package/dist/ezui/p-d2bc2f06.entry.js +1 -0
- package/dist/ezui/p-dcf3c8e5.entry.js +1 -0
- package/dist/ezui/{p-17be134a.entry.js → p-e06a9886.entry.js} +1 -1
- package/dist/ezui/p-e75c7a23.entry.js +1 -0
- package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
- package/dist/types/components/ez-calendar/ez-calendar.d.ts +3 -3
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +2 -2
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +2 -2
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +1 -0
- package/dist/types/components/ez-grid/utils/ColumnFilterManager.d.ts +1 -1
- package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +3 -0
- package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +9 -4
- package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +13 -3
- package/dist/types/components/ez-search/ez-search.d.ts +3 -13
- package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +23 -0
- package/dist/types/components/ez-search/utils/searchFormatters.d.ts +2 -0
- package/dist/types/components.d.ts +82 -6
- package/package.json +1 -1
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/ez-popover-core_2.cjs.entry.js +0 -1504
- package/dist/esm/ez-popover-core_2.entry.js +0 -1499
- package/dist/ezui/p-0faf71c5.entry.js +0 -1
- package/dist/ezui/p-2bb2a0c4.entry.js +0 -1
- package/dist/ezui/p-3429080c.entry.js +0 -1
- package/dist/ezui/p-58783dcf.entry.js +0 -1
- package/dist/ezui/p-650e4b6d.entry.js +0 -1
- package/dist/ezui/p-65f471bc.entry.js +0 -1
- package/dist/ezui/p-7bd15498.entry.js +0 -1
- package/dist/ezui/p-990b4318.entry.js +0 -1
- package/dist/ezui/p-b26f6c5b.entry.js +0 -1
- package/dist/ezui/p-d9548bdf.entry.js +0 -1
|
@@ -7,9 +7,8 @@ export class EzPopoverPlus {
|
|
|
7
7
|
this.overlayType = "light";
|
|
8
8
|
this.anchorElement = undefined;
|
|
9
9
|
this.options = { horizontalGap: 0, verticalGap: 0, fromRight: false };
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
this.ezVisibilityChange.emit(detail);
|
|
10
|
+
this.useAnchorSize = false;
|
|
11
|
+
this.minWidth = 150;
|
|
13
12
|
}
|
|
14
13
|
async observeOpened(newValue) {
|
|
15
14
|
if (newValue && !this._popOverCore) {
|
|
@@ -62,8 +61,10 @@ export class EzPopoverPlus {
|
|
|
62
61
|
async setAnchorElement(anchor) {
|
|
63
62
|
var _a;
|
|
64
63
|
await ((_a = this._popOverCore) === null || _a === void 0 ? void 0 : _a.setAnchorElement(anchor));
|
|
64
|
+
this.anchorElement = anchor;
|
|
65
65
|
}
|
|
66
66
|
renderPopoverCore() {
|
|
67
|
+
var _a;
|
|
67
68
|
this._popOverCore = document.createElement('ez-popover-core');
|
|
68
69
|
this._popOverCore.opened = this.opened;
|
|
69
70
|
this._popOverCore.anchorElement = this.anchorElement;
|
|
@@ -71,6 +72,12 @@ export class EzPopoverPlus {
|
|
|
71
72
|
this._popOverCore.boxWidth = this.boxWidth;
|
|
72
73
|
this._popOverCore.overlayType = this.overlayType;
|
|
73
74
|
this._popOverCore.options = this.options;
|
|
75
|
+
this._popOverCore.useAnchorSize = this.useAnchorSize;
|
|
76
|
+
this._popOverCore.minWidth = this.minWidth;
|
|
77
|
+
this._popOverCore.addEventListener('ezVisibilityChange', ({ detail }) => {
|
|
78
|
+
this.ezVisibilityChange.emit(detail);
|
|
79
|
+
this.opened = detail;
|
|
80
|
+
});
|
|
74
81
|
const firstChild = this._host.children.item(0);
|
|
75
82
|
if (firstChild) {
|
|
76
83
|
this._popOverCore.appendChild(firstChild);
|
|
@@ -78,7 +85,10 @@ export class EzPopoverPlus {
|
|
|
78
85
|
else {
|
|
79
86
|
console.warn('O slot do popover está vazio. Adicione conteúdo ao slot para exibição correta.');
|
|
80
87
|
}
|
|
81
|
-
document.body.
|
|
88
|
+
const root = document.body.querySelector("#root");
|
|
89
|
+
const firstDiv = document.body.getElementsByTagName("div").item(0);
|
|
90
|
+
const parentElement = (_a = root !== null && root !== void 0 ? root : firstDiv) !== null && _a !== void 0 ? _a : document.body;
|
|
91
|
+
parentElement.appendChild(this._popOverCore);
|
|
82
92
|
}
|
|
83
93
|
render() {
|
|
84
94
|
return (h(Host, null, h("slot", null)));
|
|
@@ -173,9 +183,12 @@ export class EzPopoverPlus {
|
|
|
173
183
|
"type": "string",
|
|
174
184
|
"mutable": true,
|
|
175
185
|
"complexType": {
|
|
176
|
-
"original": "HTMLElement | string",
|
|
177
|
-
"resolved": "HTMLElement | string",
|
|
186
|
+
"original": "Array<HTMLElement | string> | HTMLElement | string",
|
|
187
|
+
"resolved": "(string | HTMLElement)[] | HTMLElement | string",
|
|
178
188
|
"references": {
|
|
189
|
+
"Array": {
|
|
190
|
+
"location": "global"
|
|
191
|
+
},
|
|
179
192
|
"HTMLElement": {
|
|
180
193
|
"location": "global"
|
|
181
194
|
}
|
|
@@ -209,6 +222,42 @@ export class EzPopoverPlus {
|
|
|
209
222
|
"text": "Define as op\u00E7\u00F5es do elemento."
|
|
210
223
|
},
|
|
211
224
|
"defaultValue": "{ horizontalGap: 0, verticalGap: 0, fromRight: false }"
|
|
225
|
+
},
|
|
226
|
+
"useAnchorSize": {
|
|
227
|
+
"type": "boolean",
|
|
228
|
+
"mutable": false,
|
|
229
|
+
"complexType": {
|
|
230
|
+
"original": "boolean",
|
|
231
|
+
"resolved": "boolean",
|
|
232
|
+
"references": {}
|
|
233
|
+
},
|
|
234
|
+
"required": false,
|
|
235
|
+
"optional": false,
|
|
236
|
+
"docs": {
|
|
237
|
+
"tags": [],
|
|
238
|
+
"text": "Define se o elemento manter\u00E1 o mesmo tamanho do componente de ancora."
|
|
239
|
+
},
|
|
240
|
+
"attribute": "use-anchor-size",
|
|
241
|
+
"reflect": true,
|
|
242
|
+
"defaultValue": "false"
|
|
243
|
+
},
|
|
244
|
+
"minWidth": {
|
|
245
|
+
"type": "number",
|
|
246
|
+
"mutable": false,
|
|
247
|
+
"complexType": {
|
|
248
|
+
"original": "number",
|
|
249
|
+
"resolved": "number",
|
|
250
|
+
"references": {}
|
|
251
|
+
},
|
|
252
|
+
"required": false,
|
|
253
|
+
"optional": false,
|
|
254
|
+
"docs": {
|
|
255
|
+
"tags": [],
|
|
256
|
+
"text": "Define a largura m\u00EDnima do elemento (apenas ser\u00E1 considerada caso a propriedade useAnchorSize seja verdadeira)."
|
|
257
|
+
},
|
|
258
|
+
"attribute": "min-width",
|
|
259
|
+
"reflect": true,
|
|
260
|
+
"defaultValue": "150"
|
|
212
261
|
}
|
|
213
262
|
};
|
|
214
263
|
}
|
|
@@ -373,13 +422,4 @@ export class EzPopoverPlus {
|
|
|
373
422
|
"methodName": "observeOpened"
|
|
374
423
|
}];
|
|
375
424
|
}
|
|
376
|
-
static get listeners() {
|
|
377
|
-
return [{
|
|
378
|
-
"name": "ezVisibilityChange",
|
|
379
|
-
"method": "listenerEzVisibilityChange",
|
|
380
|
-
"target": undefined,
|
|
381
|
-
"capture": false,
|
|
382
|
-
"passive": false
|
|
383
|
-
}];
|
|
384
|
-
}
|
|
385
425
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/*@doc Define a cor de fundo do popover.*/
|
|
9
9
|
--ez-popover__box--background-color: var(--background--xlight, #fff);
|
|
10
10
|
/*@doc Define a camada de visibilidade do popover.*/
|
|
11
|
-
--ez-popover__box--z-index: var(--
|
|
11
|
+
--ez-popover__box--z-index: var(--elevation--100, 100);
|
|
12
12
|
|
|
13
13
|
/***************
|
|
14
14
|
host style
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
width: 100%;
|
|
29
29
|
height: 100vh;
|
|
30
30
|
box-sizing: border-box;
|
|
31
|
-
z-index: var(--
|
|
31
|
+
z-index: var(--elevation--24, 24);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.popover__overlay--light {
|
|
@@ -9,18 +9,19 @@ export class EzPopoverCore {
|
|
|
9
9
|
this.overlayType = "light";
|
|
10
10
|
this.anchorElement = undefined;
|
|
11
11
|
this.options = { horizontalGap: 0, verticalGap: 0, fromRight: false };
|
|
12
|
+
this.useAnchorSize = false;
|
|
13
|
+
this.minWidth = 150;
|
|
12
14
|
}
|
|
13
|
-
|
|
14
|
-
if (newValue === oldValue)
|
|
15
|
+
observeOpened(newValue, oldValue) {
|
|
16
|
+
if (newValue === oldValue) {
|
|
15
17
|
return;
|
|
18
|
+
}
|
|
16
19
|
if (newValue) {
|
|
17
20
|
this.openPopover();
|
|
18
21
|
}
|
|
19
22
|
else {
|
|
20
23
|
this.hidePopover();
|
|
21
24
|
}
|
|
22
|
-
this.ezVisibilityChange.emit(newValue);
|
|
23
|
-
return;
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
27
|
* Atualiza a posição do popover.
|
|
@@ -79,17 +80,37 @@ export class EzPopoverCore {
|
|
|
79
80
|
verticalGap: this.parseSizePixel(top, this.options.verticalGap),
|
|
80
81
|
});
|
|
81
82
|
}
|
|
83
|
+
getElement(element) {
|
|
84
|
+
if (typeof element === 'string') {
|
|
85
|
+
return document.getElementById(element);
|
|
86
|
+
}
|
|
87
|
+
return element;
|
|
88
|
+
}
|
|
89
|
+
getAnchorElement() {
|
|
90
|
+
if (!this.anchorElement) {
|
|
91
|
+
return this._host;
|
|
92
|
+
}
|
|
93
|
+
if (Array.isArray(this.anchorElement)) {
|
|
94
|
+
for (const element of this.anchorElement) {
|
|
95
|
+
const htmlElement = this.getElement(element);
|
|
96
|
+
if (htmlElement) {
|
|
97
|
+
return htmlElement;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return this.getElement(this.anchorElement);
|
|
102
|
+
}
|
|
82
103
|
async updatePositionPopover() {
|
|
83
104
|
if (!this._box || !this.opened) {
|
|
84
105
|
return;
|
|
85
106
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
this.
|
|
107
|
+
const currentAnchorElement = this.getAnchorElement();
|
|
108
|
+
if (this.useAnchorSize) {
|
|
109
|
+
const anchorSize = currentAnchorElement.getBoundingClientRect().width;
|
|
110
|
+
const width = anchorSize < this.minWidth ? this.minWidth : anchorSize;
|
|
111
|
+
this._box.style.width = `${width}px`;
|
|
91
112
|
}
|
|
92
|
-
await computePosition(
|
|
113
|
+
await computePosition(currentAnchorElement, this._box, {
|
|
93
114
|
placement: this.options.fromRight ? 'bottom-end' : 'bottom-start',
|
|
94
115
|
middleware: [flip(), shift({ padding: 5 })],
|
|
95
116
|
strategy: 'fixed',
|
|
@@ -201,7 +222,7 @@ export class EzPopoverCore {
|
|
|
201
222
|
"optional": false,
|
|
202
223
|
"docs": {
|
|
203
224
|
"tags": [],
|
|
204
|
-
"text": "Define
|
|
225
|
+
"text": "Define se ser\u00E1 fechado automaticamente quando o usu\u00E1rio clicar fora do conte\u00FAdo."
|
|
205
226
|
},
|
|
206
227
|
"attribute": "auto-close",
|
|
207
228
|
"reflect": true,
|
|
@@ -265,9 +286,12 @@ export class EzPopoverCore {
|
|
|
265
286
|
"type": "string",
|
|
266
287
|
"mutable": true,
|
|
267
288
|
"complexType": {
|
|
268
|
-
"original": "HTMLElement | string",
|
|
269
|
-
"resolved": "HTMLElement | string",
|
|
289
|
+
"original": "Array<HTMLElement | string> | HTMLElement | string",
|
|
290
|
+
"resolved": "(string | HTMLElement)[] | HTMLElement | string",
|
|
270
291
|
"references": {
|
|
292
|
+
"Array": {
|
|
293
|
+
"location": "global"
|
|
294
|
+
},
|
|
271
295
|
"HTMLElement": {
|
|
272
296
|
"location": "global"
|
|
273
297
|
}
|
|
@@ -301,6 +325,42 @@ export class EzPopoverCore {
|
|
|
301
325
|
"text": "Define as op\u00E7\u00F5es do elemento."
|
|
302
326
|
},
|
|
303
327
|
"defaultValue": "{ horizontalGap: 0, verticalGap: 0, fromRight: false }"
|
|
328
|
+
},
|
|
329
|
+
"useAnchorSize": {
|
|
330
|
+
"type": "boolean",
|
|
331
|
+
"mutable": false,
|
|
332
|
+
"complexType": {
|
|
333
|
+
"original": "boolean",
|
|
334
|
+
"resolved": "boolean",
|
|
335
|
+
"references": {}
|
|
336
|
+
},
|
|
337
|
+
"required": false,
|
|
338
|
+
"optional": false,
|
|
339
|
+
"docs": {
|
|
340
|
+
"tags": [],
|
|
341
|
+
"text": "Define se o elemento manter\u00E1 o mesmo tamanho do componente de ancora."
|
|
342
|
+
},
|
|
343
|
+
"attribute": "use-anchor-size",
|
|
344
|
+
"reflect": true,
|
|
345
|
+
"defaultValue": "false"
|
|
346
|
+
},
|
|
347
|
+
"minWidth": {
|
|
348
|
+
"type": "number",
|
|
349
|
+
"mutable": false,
|
|
350
|
+
"complexType": {
|
|
351
|
+
"original": "number",
|
|
352
|
+
"resolved": "number",
|
|
353
|
+
"references": {}
|
|
354
|
+
},
|
|
355
|
+
"required": false,
|
|
356
|
+
"optional": false,
|
|
357
|
+
"docs": {
|
|
358
|
+
"tags": [],
|
|
359
|
+
"text": "Define a largura m\u00EDnima do elemento (apenas ser\u00E1 considerada caso a propriedade useAnchorSize seja verdadeira)."
|
|
360
|
+
},
|
|
361
|
+
"attribute": "min-width",
|
|
362
|
+
"reflect": true,
|
|
363
|
+
"defaultValue": "150"
|
|
304
364
|
}
|
|
305
365
|
};
|
|
306
366
|
}
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
--ez-scroller__scrollbar--width: var(--space--small, 6px);
|
|
18
18
|
/*@doc Define o a altura máxima do componente.*/
|
|
19
19
|
--ez-scroller__max-height: unset;
|
|
20
|
+
/*@doc Define o espaçamento interno direito da barra de rolagem do componente.*/
|
|
21
|
+
--ez-scroller__scrollbar--padding-right: var(--space-extra-small, 3px);
|
|
20
22
|
|
|
21
23
|
display: flex;
|
|
22
24
|
cursor: grab;
|
|
@@ -51,6 +53,7 @@
|
|
|
51
53
|
.ez-scroller__container--horizontal {
|
|
52
54
|
overflow-x: scroll;
|
|
53
55
|
flex-direction: row;
|
|
56
|
+
padding-right: var(--ez-scroller__scrollbar--padding-right);
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
.ez-scroller__container--vertical {
|
|
@@ -56,36 +56,12 @@
|
|
|
56
56
|
/*@doc Define a cor do label.*/
|
|
57
57
|
--ez-search__label--color: var(--title--primary, #2B3A54);
|
|
58
58
|
|
|
59
|
-
/* list */
|
|
60
|
-
/*@doc Define a cor do texto da lista de opções.*/
|
|
61
|
-
--ez-search__list-title--primary: var(--title--primary, #2B3A54);
|
|
62
|
-
/*@doc Define a cor do texto do value da lista de opções.*/
|
|
63
|
-
--ez-search__list-text--primary: var(--text--primary, #626e82);
|
|
64
|
-
/*@doc Define a altura do box da lista de opções.*/
|
|
65
|
-
--ez-search__list-height: calc(var(--ez-search--font-size) + var(--ez-search--space--medium) + 4px);
|
|
66
|
-
/*@doc Define a largura mínima da lista de opções.*/
|
|
67
|
-
--ez-search__list-min-width: 64px;
|
|
68
|
-
|
|
69
59
|
/* espaçamento */
|
|
70
60
|
/*@doc Define um espaçamento mediano entre elementos do componente.*/
|
|
71
61
|
--ez-search--space--medium: var(--space--medium, 12px);
|
|
72
62
|
/*@doc Define um espaçamento pequeno entre elementos do componente.*/
|
|
73
63
|
--ez-search--space--small: var(--space--small, 6px);
|
|
74
64
|
|
|
75
|
-
/* scrollbar */
|
|
76
|
-
/*@doc Define a cor da barra de rolagem do componente.*/
|
|
77
|
-
--ez-search__scrollbar--color-default: var(--scrollbar--default, #626e82);
|
|
78
|
-
/*@doc Define a cor de fundo da barra de rolagem do componente.*/
|
|
79
|
-
--ez-search__scrollbar--color-background: var(--scrollbar--background, #E5EAF0);
|
|
80
|
-
/*@doc Define a cor do hover na barra de rolagem do componente.*/
|
|
81
|
-
--ez-search__scrollbar--color-hover: var(--scrollbar--hover, #2B3A54);
|
|
82
|
-
/*@doc Define a cor do active na barra de rolagem do componente.*/
|
|
83
|
-
--ez-search__scrollbar--color-clicked: var(--scrollbar--clicked, #a2abb9);
|
|
84
|
-
/*@doc Define o raio da borda da barra de rolagem do componente.*/
|
|
85
|
-
--ez-search__scrollbar--border-radius: var(--border--radius-small, 6px);
|
|
86
|
-
/*@doc Define a largura da barra de rolagem do componente.*/
|
|
87
|
-
--ez-search__scrollbar--width: var(--space--small, 6px);
|
|
88
|
-
|
|
89
65
|
/***************
|
|
90
66
|
host style
|
|
91
67
|
***************/
|
|
@@ -112,182 +88,6 @@ ez-icon {
|
|
|
112
88
|
--ez-text-input__input--disabled--color: var(--title--primary, #2B3A54);
|
|
113
89
|
}
|
|
114
90
|
|
|
115
|
-
.list-container {
|
|
116
|
-
/*public*/
|
|
117
|
-
min-width: var(--ez-search__list-min-width);
|
|
118
|
-
overflow: auto;
|
|
119
|
-
|
|
120
|
-
/*private*/
|
|
121
|
-
position: relative;
|
|
122
|
-
width: 100%;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.list-wrapper {
|
|
126
|
-
display: flex;
|
|
127
|
-
flex-direction: column;
|
|
128
|
-
box-sizing: border-box;
|
|
129
|
-
width: 0;
|
|
130
|
-
|
|
131
|
-
/*public*/
|
|
132
|
-
z-index: var(--more-visible, 2);
|
|
133
|
-
max-height: 350px;
|
|
134
|
-
min-width: 150px;
|
|
135
|
-
background-color: var(--ez-search--background-color--xlight);
|
|
136
|
-
border-radius: var(--ez-search--border-radius);
|
|
137
|
-
box-shadow: var(--shadow, 0px 0px 16px 0px #000);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.list-options {
|
|
141
|
-
margin-top: 0px;
|
|
142
|
-
box-sizing: border-box;
|
|
143
|
-
width: 100%;
|
|
144
|
-
height: 100%;
|
|
145
|
-
padding: 0;
|
|
146
|
-
display: flex;
|
|
147
|
-
flex-direction: column;
|
|
148
|
-
scroll-behavior: smooth;
|
|
149
|
-
overflow-y: auto;
|
|
150
|
-
overflow-x: hidden;
|
|
151
|
-
scrollbar-width: thin;
|
|
152
|
-
|
|
153
|
-
/*public*/
|
|
154
|
-
scrollbar-color: var(--ez-search__scrollbar--color-clicked) var(--ez-search__scrollbar--color-background);
|
|
155
|
-
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.list-options::-webkit-scrollbar {
|
|
159
|
-
/*public*/
|
|
160
|
-
background-color: var(--scrollbar--background);
|
|
161
|
-
width: var(--space--small);
|
|
162
|
-
max-width: var(--space--small);
|
|
163
|
-
min-width: var(--space--small);
|
|
164
|
-
height: var(--space--small);
|
|
165
|
-
max-height: var(--space--small);
|
|
166
|
-
min-height: var(--space--small);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.list-options::-webkit-scrollbar-track {
|
|
170
|
-
/*public*/
|
|
171
|
-
background-color: var(--ez-search__scrollbar--color-background);
|
|
172
|
-
border-radius: var(--ez-search__scrollbar--border-radius);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.list-options::-webkit-scrollbar-thumb {
|
|
176
|
-
/*public*/
|
|
177
|
-
background-color: var(--ez-search__scrollbar--color-default);
|
|
178
|
-
border-radius: var(--ez-search__scrollbar--border-radius);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.list-options::-webkit-scrollbar-thumb:vertical:hover,
|
|
182
|
-
.list-options::-webkit-scrollbar-thumb:horizontal:hover {
|
|
183
|
-
/*public*/
|
|
184
|
-
background-color: var(--ez-search__scrollbar--color-hover);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.list-options::-webkit-scrollbar-thumb:vertical:active,
|
|
188
|
-
.list-options::-webkit-scrollbar-thumb:horizontal:active {
|
|
189
|
-
/*public*/
|
|
190
|
-
background-color: var(--ez-search__scrollbar--color-clicked);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.item {
|
|
194
|
-
display: flex;
|
|
195
|
-
align-items: center;
|
|
196
|
-
width: 100%;
|
|
197
|
-
box-sizing: border-box;
|
|
198
|
-
list-style-type: none;
|
|
199
|
-
cursor: pointer;
|
|
200
|
-
|
|
201
|
-
/*public*/
|
|
202
|
-
border-radius: var(--ez-search--border-radius-small);
|
|
203
|
-
gap: var(--space--small, 6px);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.item__value,
|
|
207
|
-
.item__label {
|
|
208
|
-
flex-basis: auto;
|
|
209
|
-
white-space: nowrap;
|
|
210
|
-
overflow: hidden;
|
|
211
|
-
text-overflow: ellipsis;
|
|
212
|
-
|
|
213
|
-
/*public*/
|
|
214
|
-
color: var(--ez-search__list-title--primary);
|
|
215
|
-
font-family: var(--ez-search--font-family);
|
|
216
|
-
font-size: var(--ez-search--font-size);
|
|
217
|
-
line-height: var(--ez-search--line-height);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.item__label {
|
|
221
|
-
/*public*/
|
|
222
|
-
font-weight: var(--ez-search--font-weight--medium);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.item__label--bold {
|
|
226
|
-
/*public*/
|
|
227
|
-
font-weight: var(--ez-search--font-weight--large);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.item__value {
|
|
231
|
-
text-align: center;
|
|
232
|
-
|
|
233
|
-
/*public*/
|
|
234
|
-
color: var(--ez-search__list-text--primary);
|
|
235
|
-
font-weight: var(--ez-search--font-weight--large);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.item__value--hidden {
|
|
239
|
-
visibility: hidden;
|
|
240
|
-
position: absolute;
|
|
241
|
-
white-space: nowrap;
|
|
242
|
-
z-index: -1;
|
|
243
|
-
top: 0;
|
|
244
|
-
left: 0;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.item__label {
|
|
248
|
-
text-align: left;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.message {
|
|
252
|
-
text-align: center;
|
|
253
|
-
display: flex;
|
|
254
|
-
justify-content: center;
|
|
255
|
-
align-items: center;
|
|
256
|
-
list-style-type: none;
|
|
257
|
-
|
|
258
|
-
/*public*/
|
|
259
|
-
min-height: var(--ez-search__list-height);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.message__no-result {
|
|
263
|
-
/*public*/
|
|
264
|
-
color: var(--ez-search__list-title--primary);
|
|
265
|
-
font-family: var(--ez-search--font-family);
|
|
266
|
-
font-size: var(--ez-search--font-size);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.message__loading {
|
|
270
|
-
border-radius: 50%;
|
|
271
|
-
width: 14px;
|
|
272
|
-
height: 14px;
|
|
273
|
-
-webkit-animation: spin 1s linear infinite;
|
|
274
|
-
animation: spin 1s linear infinite;
|
|
275
|
-
|
|
276
|
-
/*public*/
|
|
277
|
-
border: 3px solid var(--ez-search__list-title--primary);
|
|
278
|
-
border-top: 3px solid transparent;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.item__list > li:hover {
|
|
282
|
-
/*public*/
|
|
283
|
-
background-color: var(--ez-search--background-medium);
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.preselected {
|
|
287
|
-
/*public*/
|
|
288
|
-
background-color: var(--background--medium);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
91
|
.btn {
|
|
292
92
|
outline: none;
|
|
293
93
|
border: none;
|
|
@@ -323,23 +123,4 @@ ez-icon {
|
|
|
323
123
|
|
|
324
124
|
ez-text-input:hover .btn__close, ez-text-input:focus .btn__close {
|
|
325
125
|
visibility: visible;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
@-webkit-keyframes spin {
|
|
330
|
-
0% { -webkit-transform: rotate(0deg); }
|
|
331
|
-
100% { -webkit-transform: rotate(360deg); }
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
@keyframes spin {
|
|
335
|
-
0% { transform: rotate(0deg); }
|
|
336
|
-
100% { transform: rotate(360deg); }
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
@supports not (scrollbar-width: thin) {
|
|
340
|
-
/* Estilos para navegadores que NÃO suportam scrollbar-width */
|
|
341
|
-
.item {
|
|
342
|
-
/* Estilos alternativos, por exemplo, para navegadores que não suportam scrollbar-width */
|
|
343
|
-
padding-right: 8px;
|
|
344
|
-
}
|
|
345
126
|
}
|