@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-83282.0 → 0.0.0-bugfix-dev-KB-75065.1
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-actions-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-badge.cjs.entry.js +15 -3
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-chart.cjs.entry.js +1 -1
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +185 -59
- package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +236 -0
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-dropdown_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +1 -59
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- package/dist/cjs/{ez-popover-core_2.cjs.entry.js → ez-multi-selection-list_2.cjs.entry.js} +197 -116
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +1 -1
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/ez-tree.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +1 -1
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +2 -2
- package/dist/cjs/filter-column.cjs.entry.js +1 -1
- package/dist/cjs/{index-a7b0c73d.js → index-9e5554cb.js} +7 -8
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +0 -2
- 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-combo-box/ez-combo-box.css +250 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +194 -61
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +0 -3
- package/dist/collection/components/ez-grid/ez-grid.js +1 -56
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +64 -0
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +127 -47
- package/dist/custom-elements/index.d.ts +0 -12
- package/dist/custom-elements/index.js +218 -394
- package/dist/esm/ez-actions-button.entry.js +1 -1
- package/dist/esm/ez-alert-list.entry.js +1 -1
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-badge.entry.js +15 -3
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-card-item_2.entry.js +1 -1
- package/dist/esm/ez-chart.entry.js +1 -1
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +186 -60
- package/dist/esm/ez-custom-form-input_2.entry.js +231 -0
- package/dist/esm/ez-date-input.entry.js +1 -1
- package/dist/esm/ez-date-time-input.entry.js +1 -1
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-double-list.entry.js +1 -1
- package/dist/esm/ez-dropdown_2.entry.js +1 -1
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-filter-input.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +2 -60
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +1 -1
- package/dist/esm/ez-modal.entry.js +1 -1
- package/dist/esm/{ez-popover-core_2.entry.js → ez-multi-selection-list_2.entry.js} +197 -116
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_2.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +1 -1
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +1 -1
- package/dist/esm/ez-split-item.entry.js +1 -1
- package/dist/esm/ez-split-panel.entry.js +1 -1
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-tooltip.entry.js +1 -1
- package/dist/esm/ez-tree.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +1 -1
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +1 -1
- package/dist/esm/{index-baa5e267.js → index-5a720e56.js} +7 -9
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-000159dc.entry.js +1 -0
- package/dist/ezui/{p-44caad9a.entry.js → p-0378416a.entry.js} +1 -1
- package/dist/ezui/{p-65f471bc.entry.js → p-03b0ed5a.entry.js} +1 -1
- package/dist/ezui/{p-5b205c80.entry.js → p-044d46d5.entry.js} +1 -1
- package/dist/ezui/{p-a4cee65d.entry.js → p-0cfbbe82.entry.js} +1 -1
- package/dist/ezui/{p-77a4bd35.entry.js → p-11bfeca3.entry.js} +1 -1
- package/dist/ezui/{p-7e677b7b.entry.js → p-2069c78a.entry.js} +1 -1
- package/dist/ezui/{p-31b71e50.entry.js → p-23dab72f.entry.js} +1 -1
- package/dist/ezui/{p-17eabf46.entry.js → p-24b42f3d.entry.js} +1 -1
- package/dist/ezui/{p-556468d9.entry.js → p-3791d9c8.entry.js} +1 -1
- package/dist/ezui/{p-1ad6c61b.entry.js → p-3885e66e.entry.js} +1 -1
- package/dist/ezui/p-3af64edd.entry.js +1 -0
- package/dist/ezui/{p-fa6732f2.entry.js → p-44b39e81.entry.js} +1 -1
- package/dist/ezui/{p-c1527804.entry.js → p-4818b8ce.entry.js} +1 -1
- package/dist/ezui/{p-d9548bdf.entry.js → p-5010315a.entry.js} +1 -1
- package/dist/ezui/{p-ea54d056.entry.js → p-68b2e579.entry.js} +1 -1
- package/dist/ezui/{p-1f50fa05.entry.js → p-6b51c9cc.entry.js} +1 -1
- package/dist/ezui/{p-2bb2a0c4.entry.js → p-6d31c43c.entry.js} +1 -1
- package/dist/ezui/{p-6cdd3e0a.entry.js → p-6d8b3298.entry.js} +1 -1
- package/dist/ezui/p-6ec40dec.entry.js +1 -0
- package/dist/ezui/{p-5ed81457.entry.js → p-6fc26622.entry.js} +1 -1
- package/dist/ezui/{p-da1b4a38.entry.js → p-708b196e.entry.js} +1 -1
- package/dist/ezui/{p-555c9018.entry.js → p-7567ccdd.entry.js} +1 -1
- package/dist/ezui/{p-1e7a8633.entry.js → p-81461d2f.entry.js} +1 -1
- package/dist/ezui/{p-8df1ca33.entry.js → p-82fa4b09.entry.js} +1 -1
- package/dist/ezui/{p-0fa52b0f.entry.js → p-88c615f0.entry.js} +1 -1
- package/dist/ezui/{p-56fe5341.entry.js → p-9066b0b0.entry.js} +1 -1
- package/dist/ezui/{p-09de35a2.entry.js → p-91ccae0c.entry.js} +1 -1
- package/dist/ezui/{p-c0d9c4f8.entry.js → p-92748142.entry.js} +1 -1
- package/dist/ezui/{p-0faf71c5.entry.js → p-92fbaf2b.entry.js} +1 -1
- package/dist/ezui/{p-e6a9041d.entry.js → p-9e95bfeb.entry.js} +1 -1
- package/dist/ezui/{p-3195a7a7.entry.js → p-9fc250d4.entry.js} +1 -1
- package/dist/ezui/{p-53116373.entry.js → p-a3319796.entry.js} +46 -46
- package/dist/ezui/{p-990b4318.entry.js → p-a921e3e7.entry.js} +1 -1
- package/dist/ezui/{p-3429080c.entry.js → p-b22889ea.entry.js} +1 -1
- package/dist/ezui/{p-17be134a.entry.js → p-b2f6bc0a.entry.js} +1 -1
- package/dist/ezui/{p-cb1535f7.entry.js → p-b9282c79.entry.js} +1 -1
- package/dist/ezui/{p-e347df9c.entry.js → p-bef7daac.entry.js} +1 -1
- package/dist/ezui/{p-9f5fa3f9.entry.js → p-c2b20f78.entry.js} +1 -1
- package/dist/ezui/{p-17de16e5.entry.js → p-c96fbbef.entry.js} +1 -1
- package/dist/ezui/{p-2f45506d.entry.js → p-ca8936df.entry.js} +1 -1
- package/dist/ezui/p-cba34702.entry.js +1 -0
- package/dist/ezui/{p-20c024f7.entry.js → p-cf33bc48.entry.js} +1 -1
- package/dist/ezui/{p-58783dcf.entry.js → p-cf3b60fd.entry.js} +1 -1
- package/dist/ezui/{p-a80b1287.entry.js → p-dfca5946.entry.js} +1 -1
- package/dist/ezui/{p-7fdd479f.entry.js → p-e18d9e6a.entry.js} +1 -1
- package/dist/ezui/{p-fd0a19d6.entry.js → p-e3f8660b.entry.js} +1 -1
- package/dist/ezui/{p-23a36bb6.js → p-e4c7eb39.js} +2 -2
- package/dist/ezui/{p-0306dff7.entry.js → p-e6b38ade.entry.js} +1 -1
- package/dist/ezui/{p-b26f6c5b.entry.js → p-f30e0590.entry.js} +1 -1
- package/dist/ezui/{p-cf87aacb.entry.js → p-f4da7e1e.entry.js} +1 -1
- package/dist/ezui/{p-6e429cff.entry.js → p-fc194825.entry.js} +1 -1
- package/dist/ezui/p-fcc78b7f.entry.js +1 -0
- package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +16 -7
- package/dist/types/components/ez-grid/ez-grid.d.ts +0 -5
- package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +19 -6
- package/dist/types/components.d.ts +11 -218
- package/package.json +1 -1
- package/react/components.d.ts +0 -2
- package/react/components.js +0 -2
- package/react/components.js.map +1 -1
- package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +0 -387
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +0 -186
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +0 -205
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +0 -426
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +0 -67
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +0 -468
- package/dist/esm/ez-combo-box-list_3.entry.js +0 -381
- package/dist/esm/ez-multi-selection-list.entry.js +0 -182
- package/dist/ezui/p-3a009184.entry.js +0 -1
- package/dist/ezui/p-650e4b6d.entry.js +0 -1
- package/dist/ezui/p-7bd15498.entry.js +0 -1
- package/dist/ezui/p-bc2f844e.entry.js +0 -1
- package/dist/ezui/p-dc73e1fe.entry.js +0 -1
- package/dist/ezui/p-f5931caa.entry.js +0 -1
- package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +0 -104
- package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +0 -81
|
@@ -1,468 +0,0 @@
|
|
|
1
|
-
import { computePosition, flip, shift } from "@floating-ui/dom";
|
|
2
|
-
import { h, Host } from "@stencil/core";
|
|
3
|
-
export class EzPopoverCore {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.TIME_DEBOUNCE = 500;
|
|
6
|
-
this.autoClose = true;
|
|
7
|
-
this.boxWidth = "fit-content";
|
|
8
|
-
this.opened = false;
|
|
9
|
-
this.overlayType = "light";
|
|
10
|
-
this.anchorElement = undefined;
|
|
11
|
-
this.options = { horizontalGap: 0, verticalGap: 0, fromRight: false };
|
|
12
|
-
}
|
|
13
|
-
async observeOpened(newValue, oldValue) {
|
|
14
|
-
if (newValue === oldValue)
|
|
15
|
-
return;
|
|
16
|
-
if (newValue) {
|
|
17
|
-
this.openPopover();
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
this.hidePopover();
|
|
21
|
-
}
|
|
22
|
-
this.ezVisibilityChange.emit(newValue);
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Atualiza a posição do popover.
|
|
27
|
-
*/
|
|
28
|
-
async updatePosition(top, left) {
|
|
29
|
-
this.updateOptionPosition(top, left);
|
|
30
|
-
await this.updatePositionPopover();
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Exibe o ez-popover.
|
|
34
|
-
*/
|
|
35
|
-
async show(top, left) {
|
|
36
|
-
this.updateOptionPosition(top, left);
|
|
37
|
-
this.opened = true;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Ancora a exibição do popOver a um elemento HTML.
|
|
41
|
-
*/
|
|
42
|
-
async showUnder(element, options) {
|
|
43
|
-
if (options) {
|
|
44
|
-
this.options = options;
|
|
45
|
-
}
|
|
46
|
-
this.anchorElement = element;
|
|
47
|
-
this.opened = true;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Oculta o ez-popover.
|
|
51
|
-
*/
|
|
52
|
-
async hide() {
|
|
53
|
-
this.opened = false;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Altera as opções.
|
|
57
|
-
*/
|
|
58
|
-
async setOptions(options) {
|
|
59
|
-
Object.assign(this.options, options);
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Altera o elemento de ancoragem.
|
|
63
|
-
*/
|
|
64
|
-
async setAnchorElement(anchor) {
|
|
65
|
-
this.anchorElement = anchor;
|
|
66
|
-
}
|
|
67
|
-
parseSizePixel(sizePixel, defaultValue) {
|
|
68
|
-
if (!sizePixel) {
|
|
69
|
-
return defaultValue !== null && defaultValue !== void 0 ? defaultValue : 0;
|
|
70
|
-
}
|
|
71
|
-
if (typeof sizePixel === "string") {
|
|
72
|
-
return Number(sizePixel.replace("px", ""));
|
|
73
|
-
}
|
|
74
|
-
return sizePixel !== null && sizePixel !== void 0 ? sizePixel : 0;
|
|
75
|
-
}
|
|
76
|
-
updateOptionPosition(top, left) {
|
|
77
|
-
Object.assign(this.options, {
|
|
78
|
-
horizontalGap: this.parseSizePixel(left, this.options.horizontalGap),
|
|
79
|
-
verticalGap: this.parseSizePixel(top, this.options.verticalGap),
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
async updatePositionPopover() {
|
|
83
|
-
if (!this._box || !this.opened) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
if (!this.anchorElement) {
|
|
87
|
-
this.anchorElement = this._host;
|
|
88
|
-
}
|
|
89
|
-
if (typeof this.anchorElement === 'string') {
|
|
90
|
-
this.anchorElement = document.getElementById(this.anchorElement);
|
|
91
|
-
}
|
|
92
|
-
await computePosition(this.anchorElement, this._box, {
|
|
93
|
-
placement: this.options.fromRight ? 'bottom-end' : 'bottom-start',
|
|
94
|
-
middleware: [flip(), shift({ padding: 5 })],
|
|
95
|
-
strategy: 'fixed',
|
|
96
|
-
}).then(({ x, y, placement }) => {
|
|
97
|
-
const newTop = placement.includes("bottom") ? y + this.options.verticalGap : y - this.options.verticalGap;
|
|
98
|
-
const newLeft = placement.includes("start") ? x + this.options.horizontalGap : x - this.options.horizontalGap;
|
|
99
|
-
Object.assign(this._box.style, {
|
|
100
|
-
top: `${newTop}px`,
|
|
101
|
-
left: `${newLeft}px`,
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
hidePopover() {
|
|
106
|
-
if (!this._box) {
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
this._box.style.display = '';
|
|
110
|
-
this.hideOverlay();
|
|
111
|
-
this.ezVisibilityChange.emit(false);
|
|
112
|
-
}
|
|
113
|
-
async openPopover() {
|
|
114
|
-
if (!this._box) {
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
if (this.opened) {
|
|
118
|
-
this._box.style.display = 'flex';
|
|
119
|
-
this._box.style.visibility = 'hidden';
|
|
120
|
-
await this.updatePositionPopover();
|
|
121
|
-
this.openOverlay();
|
|
122
|
-
this.ezVisibilityChange.emit(true);
|
|
123
|
-
this._box.style.visibility = 'visible';
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
openOverlay() {
|
|
127
|
-
if (!this._overlay || !this._overlayIsActive) {
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
this._overlay.style.display = 'block';
|
|
131
|
-
}
|
|
132
|
-
hideOverlay() {
|
|
133
|
-
if (!this._overlay) {
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
this._overlay.style.display = 'none';
|
|
137
|
-
}
|
|
138
|
-
checkStatusOverlay() {
|
|
139
|
-
if (this.overlayType !== "none") {
|
|
140
|
-
return true;
|
|
141
|
-
}
|
|
142
|
-
if (this.overlayType === "none" && this.autoClose) {
|
|
143
|
-
return true;
|
|
144
|
-
}
|
|
145
|
-
return false;
|
|
146
|
-
}
|
|
147
|
-
updatePositionDebounce() {
|
|
148
|
-
if (!this.opened) {
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
clearTimeout(this._timeoutDebounce);
|
|
152
|
-
this._timeoutDebounce = setTimeout(() => {
|
|
153
|
-
this.updatePositionPopover();
|
|
154
|
-
}, this.TIME_DEBOUNCE);
|
|
155
|
-
}
|
|
156
|
-
componentWillLoad() {
|
|
157
|
-
window.addEventListener('scroll', this.updatePositionDebounce.bind(this), true);
|
|
158
|
-
window.addEventListener('resize', this.updatePositionDebounce.bind(this), true);
|
|
159
|
-
}
|
|
160
|
-
componentDidLoad() {
|
|
161
|
-
this._overlayIsActive = this.checkStatusOverlay();
|
|
162
|
-
this._resizeObserver = new ResizeObserver(this.updatePositionPopover.bind(this));
|
|
163
|
-
this._resizeObserver.observe(this._box);
|
|
164
|
-
this.openPopover();
|
|
165
|
-
}
|
|
166
|
-
disconnectedCallback() {
|
|
167
|
-
window.removeEventListener('scroll', this.updatePositionDebounce.bind(this), true);
|
|
168
|
-
window.removeEventListener('resize', this.updatePositionDebounce.bind(this), true);
|
|
169
|
-
this._resizeObserver.disconnect();
|
|
170
|
-
}
|
|
171
|
-
render() {
|
|
172
|
-
return (h(Host, null, h("div", { ref: el => this._overlay = el, onClick: () => this.hide(), class: `popover__overlay popover__overlay--${this.overlayType}` }), h("section", { ref: el => this._box = el, class: {
|
|
173
|
-
"popover__box": true,
|
|
174
|
-
"popover__box--fit-content": this.boxWidth === "fit-content",
|
|
175
|
-
"popover__box--full-width": this.boxWidth !== "fit-content",
|
|
176
|
-
} }, h("slot", null))));
|
|
177
|
-
}
|
|
178
|
-
static get is() { return "ez-popover-core"; }
|
|
179
|
-
static get encapsulation() { return "shadow"; }
|
|
180
|
-
static get originalStyleUrls() {
|
|
181
|
-
return {
|
|
182
|
-
"$": ["ez-popover-core.css"]
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
static get styleUrls() {
|
|
186
|
-
return {
|
|
187
|
-
"$": ["ez-popover-core.css"]
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
static get properties() {
|
|
191
|
-
return {
|
|
192
|
-
"autoClose": {
|
|
193
|
-
"type": "boolean",
|
|
194
|
-
"mutable": false,
|
|
195
|
-
"complexType": {
|
|
196
|
-
"original": "boolean",
|
|
197
|
-
"resolved": "boolean",
|
|
198
|
-
"references": {}
|
|
199
|
-
},
|
|
200
|
-
"required": false,
|
|
201
|
-
"optional": false,
|
|
202
|
-
"docs": {
|
|
203
|
-
"tags": [],
|
|
204
|
-
"text": "Define que ser\u00E1 fechado automaticamente quando o usu\u00E1rio clicar fora do conte\u00FAdo."
|
|
205
|
-
},
|
|
206
|
-
"attribute": "auto-close",
|
|
207
|
-
"reflect": true,
|
|
208
|
-
"defaultValue": "true"
|
|
209
|
-
},
|
|
210
|
-
"boxWidth": {
|
|
211
|
-
"type": "string",
|
|
212
|
-
"mutable": false,
|
|
213
|
-
"complexType": {
|
|
214
|
-
"original": "\"full-width\" | \"fit-content\"",
|
|
215
|
-
"resolved": "\"fit-content\" | \"full-width\"",
|
|
216
|
-
"references": {}
|
|
217
|
-
},
|
|
218
|
-
"required": false,
|
|
219
|
-
"optional": false,
|
|
220
|
-
"docs": {
|
|
221
|
-
"tags": [],
|
|
222
|
-
"text": "Ajusta o comportamento da largura do popover."
|
|
223
|
-
},
|
|
224
|
-
"attribute": "box-width",
|
|
225
|
-
"reflect": true,
|
|
226
|
-
"defaultValue": "\"fit-content\""
|
|
227
|
-
},
|
|
228
|
-
"opened": {
|
|
229
|
-
"type": "boolean",
|
|
230
|
-
"mutable": true,
|
|
231
|
-
"complexType": {
|
|
232
|
-
"original": "boolean",
|
|
233
|
-
"resolved": "boolean",
|
|
234
|
-
"references": {}
|
|
235
|
-
},
|
|
236
|
-
"required": false,
|
|
237
|
-
"optional": false,
|
|
238
|
-
"docs": {
|
|
239
|
-
"tags": [],
|
|
240
|
-
"text": "Define se o ez-popover est\u00E1 aberto."
|
|
241
|
-
},
|
|
242
|
-
"attribute": "opened",
|
|
243
|
-
"reflect": true,
|
|
244
|
-
"defaultValue": "false"
|
|
245
|
-
},
|
|
246
|
-
"overlayType": {
|
|
247
|
-
"type": "string",
|
|
248
|
-
"mutable": false,
|
|
249
|
-
"complexType": {
|
|
250
|
-
"original": "\"medium\" | \"light\" | \"none\"",
|
|
251
|
-
"resolved": "\"light\" | \"medium\" | \"none\"",
|
|
252
|
-
"references": {}
|
|
253
|
-
},
|
|
254
|
-
"required": false,
|
|
255
|
-
"optional": false,
|
|
256
|
-
"docs": {
|
|
257
|
-
"tags": [],
|
|
258
|
-
"text": "Define o tipo de overlay do popover."
|
|
259
|
-
},
|
|
260
|
-
"attribute": "overlay-type",
|
|
261
|
-
"reflect": true,
|
|
262
|
-
"defaultValue": "\"light\""
|
|
263
|
-
},
|
|
264
|
-
"anchorElement": {
|
|
265
|
-
"type": "string",
|
|
266
|
-
"mutable": true,
|
|
267
|
-
"complexType": {
|
|
268
|
-
"original": "HTMLElement | string",
|
|
269
|
-
"resolved": "HTMLElement | string",
|
|
270
|
-
"references": {
|
|
271
|
-
"HTMLElement": {
|
|
272
|
-
"location": "global"
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
},
|
|
276
|
-
"required": false,
|
|
277
|
-
"optional": false,
|
|
278
|
-
"docs": {
|
|
279
|
-
"tags": [],
|
|
280
|
-
"text": "Define o elemento de ancoragem."
|
|
281
|
-
},
|
|
282
|
-
"attribute": "anchor-element",
|
|
283
|
-
"reflect": true
|
|
284
|
-
},
|
|
285
|
-
"options": {
|
|
286
|
-
"type": "unknown",
|
|
287
|
-
"mutable": true,
|
|
288
|
-
"complexType": {
|
|
289
|
-
"original": "IEzPopoverAnchorOptions",
|
|
290
|
-
"resolved": "IEzPopoverAnchorOptions",
|
|
291
|
-
"references": {
|
|
292
|
-
"IEzPopoverAnchorOptions": {
|
|
293
|
-
"location": "local"
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
},
|
|
297
|
-
"required": false,
|
|
298
|
-
"optional": false,
|
|
299
|
-
"docs": {
|
|
300
|
-
"tags": [],
|
|
301
|
-
"text": "Define as op\u00E7\u00F5es do elemento."
|
|
302
|
-
},
|
|
303
|
-
"defaultValue": "{ horizontalGap: 0, verticalGap: 0, fromRight: false }"
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
static get events() {
|
|
308
|
-
return [{
|
|
309
|
-
"method": "ezVisibilityChange",
|
|
310
|
-
"name": "ezVisibilityChange",
|
|
311
|
-
"bubbles": true,
|
|
312
|
-
"cancelable": true,
|
|
313
|
-
"composed": true,
|
|
314
|
-
"docs": {
|
|
315
|
-
"tags": [],
|
|
316
|
-
"text": "Emitido quando acontece a altera\u00E7\u00E3o de estado do componente."
|
|
317
|
-
},
|
|
318
|
-
"complexType": {
|
|
319
|
-
"original": "boolean",
|
|
320
|
-
"resolved": "boolean",
|
|
321
|
-
"references": {}
|
|
322
|
-
}
|
|
323
|
-
}];
|
|
324
|
-
}
|
|
325
|
-
static get methods() {
|
|
326
|
-
return {
|
|
327
|
-
"updatePosition": {
|
|
328
|
-
"complexType": {
|
|
329
|
-
"signature": "(top?: string, left?: string) => Promise<void>",
|
|
330
|
-
"parameters": [{
|
|
331
|
-
"tags": [],
|
|
332
|
-
"text": ""
|
|
333
|
-
}, {
|
|
334
|
-
"tags": [],
|
|
335
|
-
"text": ""
|
|
336
|
-
}],
|
|
337
|
-
"references": {
|
|
338
|
-
"Promise": {
|
|
339
|
-
"location": "global"
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
"return": "Promise<void>"
|
|
343
|
-
},
|
|
344
|
-
"docs": {
|
|
345
|
-
"text": "Atualiza a posi\u00E7\u00E3o do popover.",
|
|
346
|
-
"tags": []
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
"show": {
|
|
350
|
-
"complexType": {
|
|
351
|
-
"signature": "(top?: string | number, left?: string | number) => Promise<void>",
|
|
352
|
-
"parameters": [{
|
|
353
|
-
"tags": [],
|
|
354
|
-
"text": ""
|
|
355
|
-
}, {
|
|
356
|
-
"tags": [],
|
|
357
|
-
"text": ""
|
|
358
|
-
}],
|
|
359
|
-
"references": {
|
|
360
|
-
"Promise": {
|
|
361
|
-
"location": "global"
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
"return": "Promise<void>"
|
|
365
|
-
},
|
|
366
|
-
"docs": {
|
|
367
|
-
"text": "Exibe o ez-popover.",
|
|
368
|
-
"tags": []
|
|
369
|
-
}
|
|
370
|
-
},
|
|
371
|
-
"showUnder": {
|
|
372
|
-
"complexType": {
|
|
373
|
-
"signature": "(element: HTMLElement | string, options?: IEzPopoverAnchorOptions) => Promise<void>",
|
|
374
|
-
"parameters": [{
|
|
375
|
-
"tags": [],
|
|
376
|
-
"text": ""
|
|
377
|
-
}, {
|
|
378
|
-
"tags": [],
|
|
379
|
-
"text": ""
|
|
380
|
-
}],
|
|
381
|
-
"references": {
|
|
382
|
-
"Promise": {
|
|
383
|
-
"location": "global"
|
|
384
|
-
},
|
|
385
|
-
"HTMLElement": {
|
|
386
|
-
"location": "global"
|
|
387
|
-
},
|
|
388
|
-
"IEzPopoverAnchorOptions": {
|
|
389
|
-
"location": "local"
|
|
390
|
-
}
|
|
391
|
-
},
|
|
392
|
-
"return": "Promise<void>"
|
|
393
|
-
},
|
|
394
|
-
"docs": {
|
|
395
|
-
"text": "Ancora a exibi\u00E7\u00E3o do popOver a um elemento HTML.",
|
|
396
|
-
"tags": []
|
|
397
|
-
}
|
|
398
|
-
},
|
|
399
|
-
"hide": {
|
|
400
|
-
"complexType": {
|
|
401
|
-
"signature": "() => Promise<void>",
|
|
402
|
-
"parameters": [],
|
|
403
|
-
"references": {
|
|
404
|
-
"Promise": {
|
|
405
|
-
"location": "global"
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
|
-
"return": "Promise<void>"
|
|
409
|
-
},
|
|
410
|
-
"docs": {
|
|
411
|
-
"text": "Oculta o ez-popover.",
|
|
412
|
-
"tags": []
|
|
413
|
-
}
|
|
414
|
-
},
|
|
415
|
-
"setOptions": {
|
|
416
|
-
"complexType": {
|
|
417
|
-
"signature": "(options: IEzPopoverAnchorOptions) => Promise<void>",
|
|
418
|
-
"parameters": [{
|
|
419
|
-
"tags": [],
|
|
420
|
-
"text": ""
|
|
421
|
-
}],
|
|
422
|
-
"references": {
|
|
423
|
-
"Promise": {
|
|
424
|
-
"location": "global"
|
|
425
|
-
},
|
|
426
|
-
"IEzPopoverAnchorOptions": {
|
|
427
|
-
"location": "local"
|
|
428
|
-
}
|
|
429
|
-
},
|
|
430
|
-
"return": "Promise<void>"
|
|
431
|
-
},
|
|
432
|
-
"docs": {
|
|
433
|
-
"text": "Altera as op\u00E7\u00F5es.",
|
|
434
|
-
"tags": []
|
|
435
|
-
}
|
|
436
|
-
},
|
|
437
|
-
"setAnchorElement": {
|
|
438
|
-
"complexType": {
|
|
439
|
-
"signature": "(anchor: HTMLElement | string) => Promise<void>",
|
|
440
|
-
"parameters": [{
|
|
441
|
-
"tags": [],
|
|
442
|
-
"text": ""
|
|
443
|
-
}],
|
|
444
|
-
"references": {
|
|
445
|
-
"Promise": {
|
|
446
|
-
"location": "global"
|
|
447
|
-
},
|
|
448
|
-
"HTMLElement": {
|
|
449
|
-
"location": "global"
|
|
450
|
-
}
|
|
451
|
-
},
|
|
452
|
-
"return": "Promise<void>"
|
|
453
|
-
},
|
|
454
|
-
"docs": {
|
|
455
|
-
"text": "Altera o elemento de ancoragem.",
|
|
456
|
-
"tags": []
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
};
|
|
460
|
-
}
|
|
461
|
-
static get elementRef() { return "_host"; }
|
|
462
|
-
static get watchers() {
|
|
463
|
-
return [{
|
|
464
|
-
"propName": "opened",
|
|
465
|
-
"methodName": "observeOpened"
|
|
466
|
-
}];
|
|
467
|
-
}
|
|
468
|
-
}
|