@sankhyalabs/ezui 5.22.0-dev.90 → 5.22.0-dev.91
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 +1 -1
- 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-list_3.cjs.entry.js +366 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js +59 -185
- 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 -1
- 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-multi-selection-list.cjs.entry.js +186 -0
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/{ez-multi-selection-list_2.cjs.entry.js → ez-popover-core_2.cjs.entry.js} +116 -197
- 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-9e5554cb.js → index-a7b0c73d.js} +8 -7
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +205 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +405 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +0 -250
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +61 -194
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +0 -64
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +47 -127
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +67 -0
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +468 -0
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +312 -203
- 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 +1 -1
- 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-list_3.entry.js +360 -0
- package/dist/esm/ez-combo-box.entry.js +60 -186
- 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 +1 -1
- 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-multi-selection-list.entry.js +182 -0
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/{ez-multi-selection-list_2.entry.js → ez-popover-core_2.entry.js} +116 -197
- 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-5a720e56.js → index-baa5e267.js} +9 -7
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
- package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
- package/dist/ezui/{p-88c615f0.entry.js → p-0fa52b0f.entry.js} +1 -1
- package/dist/ezui/{p-92fbaf2b.entry.js → p-0faf71c5.entry.js} +1 -1
- package/dist/ezui/p-15134d97.entry.js +1 -0
- package/dist/ezui/{p-b2f6bc0a.entry.js → p-17be134a.entry.js} +1 -1
- package/dist/ezui/{p-c96fbbef.entry.js → p-17de16e5.entry.js} +1 -1
- package/dist/ezui/{p-24b42f3d.entry.js → p-17eabf46.entry.js} +1 -1
- package/dist/ezui/{p-3885e66e.entry.js → p-1ad6c61b.entry.js} +1 -1
- package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
- package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
- package/dist/ezui/{p-cf33bc48.entry.js → p-20c024f7.entry.js} +1 -1
- package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
- package/dist/ezui/{p-6d31c43c.entry.js → p-2bb2a0c4.entry.js} +1 -1
- package/dist/ezui/{p-ca8936df.entry.js → p-2f45506d.entry.js} +1 -1
- package/dist/ezui/{p-9fc250d4.entry.js → p-3195a7a7.entry.js} +1 -1
- package/dist/ezui/{p-23dab72f.entry.js → p-31b71e50.entry.js} +1 -1
- package/dist/ezui/{p-b22889ea.entry.js → p-3429080c.entry.js} +1 -1
- package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
- package/dist/ezui/{p-9e5bbe25.entry.js → p-463be973.entry.js} +1 -1
- package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
- package/dist/ezui/{p-3791d9c8.entry.js → p-556468d9.entry.js} +1 -1
- package/dist/ezui/{p-9066b0b0.entry.js → p-56fe5341.entry.js} +1 -1
- package/dist/ezui/{p-cf3b60fd.entry.js → p-58783dcf.entry.js} +1 -1
- package/dist/ezui/{p-044d46d5.entry.js → p-5b205c80.entry.js} +1 -1
- package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
- package/dist/ezui/{p-f1c2c19e.entry.js → p-650e4b6d.entry.js} +1 -1
- package/dist/ezui/{p-03b0ed5a.entry.js → p-65f471bc.entry.js} +1 -1
- package/dist/ezui/{p-6d8b3298.entry.js → p-6cdd3e0a.entry.js} +1 -1
- package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
- package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
- package/dist/ezui/p-7bd15498.entry.js +1 -0
- package/dist/ezui/{p-2069c78a.entry.js → p-7e677b7b.entry.js} +1 -1
- package/dist/ezui/{p-e18d9e6a.entry.js → p-7fdd479f.entry.js} +1 -1
- package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
- package/dist/ezui/{p-a921e3e7.entry.js → p-990b4318.entry.js} +1 -1
- package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
- package/dist/ezui/{p-0cfbbe82.entry.js → p-a4cee65d.entry.js} +1 -1
- package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
- package/dist/ezui/{p-f30e0590.entry.js → p-b26f6c5b.entry.js} +1 -1
- package/dist/ezui/p-bc2f844e.entry.js +1 -0
- package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
- package/dist/ezui/{p-4818b8ce.entry.js → p-c1527804.entry.js} +1 -1
- package/dist/ezui/{p-b9282c79.entry.js → p-cb1535f7.entry.js} +1 -1
- package/dist/ezui/{p-f4da7e1e.entry.js → p-cf87aacb.entry.js} +1 -1
- package/dist/ezui/{p-5010315a.entry.js → p-d9548bdf.entry.js} +1 -1
- package/dist/ezui/{p-708b196e.entry.js → p-da1b4a38.entry.js} +1 -1
- package/dist/ezui/p-dc73e1fe.entry.js +1 -0
- package/dist/ezui/{p-bef7daac.entry.js → p-e347df9c.entry.js} +1 -1
- package/dist/ezui/{p-9e95bfeb.entry.js → p-e6a9041d.entry.js} +1 -1
- package/dist/ezui/{p-68b2e579.entry.js → p-ea54d056.entry.js} +1 -1
- package/dist/ezui/p-f5931caa.entry.js +1 -0
- package/dist/ezui/{p-44b39e81.entry.js → p-fa6732f2.entry.js} +1 -1
- package/dist/ezui/{p-e3f8660b.entry.js → p-fd0a19d6.entry.js} +1 -1
- package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +104 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +7 -16
- package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +6 -19
- package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +81 -0
- package/dist/types/components.d.ts +218 -3
- package/package.json +1 -1
- package/react/components.d.ts +2 -0
- package/react/components.js +2 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +0 -236
- package/dist/esm/ez-custom-form-input_2.entry.js +0 -231
- package/dist/ezui/p-3af64edd.entry.js +0 -1
- package/dist/ezui/p-6ec40dec.entry.js +0 -1
- package/dist/ezui/p-cba34702.entry.js +0 -1
- package/dist/ezui/p-fcc78b7f.entry.js +0 -1
|
@@ -2891,7 +2891,7 @@ const EzCollapsibleBox$1 = class extends HTMLElement$1 {
|
|
|
2891
2891
|
static get style() { return ezCollapsibleBoxCss; }
|
|
2892
2892
|
};
|
|
2893
2893
|
|
|
2894
|
-
const ezComboBoxCss = ":host{--ez-combo-box--height:42px;--ez-combo-box--width:100%;--ez-combo-
|
|
2894
|
+
const ezComboBoxCss = ":host{--ez-combo-box--height:42px;--ez-combo-box--width:100%;--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box__input--background-color:var(--background--medium, #e0e0e0);--ez-combo-box__input--border:var(--border--medium, 2px solid);--ez-combo-box__input--border-color:var(--ez-combo-box__input--background-color);--ez-combo-box__input--focus--border-color:var(--color--primary, #008561);--ez-combo-box__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-combo-box__input--disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn--color:var(--title--primary, #2B3A54);--ez-combo-box__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn-hover--color:var(--color--primary, #4e4e4e);width:var(--ez-combo-box--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.btn{outline:none;border:none;background:none;cursor:pointer;padding:0px;color:var(--ez-combo-box__btn--color)}.btn:disabled{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:disabled:hover{cursor:not-allowed;color:var(--ez-combo-box__btn-disabled--color)}.btn:hover{color:var(--ez-combo-box__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}.text-input-slot-container{--ez-text-input__icon--width:32px;--ez-text-input__min-width:var(--ez-combo-box__min-width);--ez-text-input__max-width:var(--ez-combo-box__max-width)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
|
2895
2895
|
|
|
2896
2896
|
const EzComboBox$1 = class extends HTMLElement$1 {
|
|
2897
2897
|
constructor() {
|
|
@@ -2905,11 +2905,13 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2905
2905
|
this._tabPressed = false;
|
|
2906
2906
|
this._textEmptyList = "Nenhum resultado encontrado";
|
|
2907
2907
|
this._lookupMode = false;
|
|
2908
|
+
this.isOpen = false;
|
|
2908
2909
|
this._preSelection = undefined;
|
|
2909
2910
|
this._visibleOptions = undefined;
|
|
2910
2911
|
this._startLoading = false;
|
|
2911
2912
|
this._showLoading = true;
|
|
2912
2913
|
this._criteria = undefined;
|
|
2914
|
+
this._textInputReady = undefined;
|
|
2913
2915
|
this.limitCharsToSearch = 3;
|
|
2914
2916
|
this.value = undefined;
|
|
2915
2917
|
this.label = undefined;
|
|
@@ -3015,63 +3017,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
3015
3017
|
async clearValue() {
|
|
3016
3018
|
this.clearSearch();
|
|
3017
3019
|
}
|
|
3018
|
-
scrollListener() {
|
|
3019
|
-
var _a;
|
|
3020
|
-
if (this._floatingID == undefined) {
|
|
3021
|
-
return;
|
|
3022
|
-
}
|
|
3023
|
-
if ((_a = this.listOptionsPosition) === null || _a === void 0 ? void 0 : _a.hardPosition) {
|
|
3024
|
-
this.hideOptions();
|
|
3025
|
-
}
|
|
3026
|
-
else {
|
|
3027
|
-
window.requestAnimationFrame(() => {
|
|
3028
|
-
this.updateListPosition();
|
|
3029
|
-
});
|
|
3030
|
-
}
|
|
3031
|
-
}
|
|
3032
|
-
updateListPosition() {
|
|
3033
|
-
let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
|
|
3034
|
-
const elementRect = this._listWrapper.getBoundingClientRect();
|
|
3035
|
-
const containerRect = this._listContainer.getBoundingClientRect();
|
|
3036
|
-
const textInputRect = this._textInput.getBoundingClientRect();
|
|
3037
|
-
const limitHeight = bottomLimit || window.innerHeight;
|
|
3038
|
-
const neededHeight = containerRect.bottom + elementRect.height;
|
|
3039
|
-
if (!fromBottom && (elementRect.top < 0 || neededHeight > limitHeight)) {
|
|
3040
|
-
fromBottom = true;
|
|
3041
|
-
}
|
|
3042
|
-
if (!hardPosition) {
|
|
3043
|
-
verticalPosition = verticalPosition || 0;
|
|
3044
|
-
horizontalPosition = horizontalPosition || 0;
|
|
3045
|
-
if (fromBottom) {
|
|
3046
|
-
verticalPosition = window.innerHeight - textInputRect.top + verticalPosition;
|
|
3047
|
-
}
|
|
3048
|
-
else {
|
|
3049
|
-
verticalPosition += containerRect.top;
|
|
3050
|
-
}
|
|
3051
|
-
if (fromRight) {
|
|
3052
|
-
horizontalPosition = window.innerWidth - textInputRect.right + horizontalPosition;
|
|
3053
|
-
}
|
|
3054
|
-
else {
|
|
3055
|
-
horizontalPosition += containerRect.left;
|
|
3056
|
-
}
|
|
3057
|
-
}
|
|
3058
|
-
if (verticalPosition != undefined) {
|
|
3059
|
-
this._listWrapper.style[fromBottom ? "bottom" : "top"] = `${verticalPosition}px`;
|
|
3060
|
-
this._listWrapper.style[fromBottom ? "top" : "bottom"] = "";
|
|
3061
|
-
}
|
|
3062
|
-
if (horizontalPosition != undefined) {
|
|
3063
|
-
this._listWrapper.style[fromRight ? "right" : "left"] = `${horizontalPosition}px`;
|
|
3064
|
-
this._listWrapper.style[fromRight ? "left" : "right"] = "";
|
|
3065
|
-
}
|
|
3066
|
-
}
|
|
3067
|
-
getListPosition() {
|
|
3068
|
-
if (this.listOptionsPosition) {
|
|
3069
|
-
return this.listOptionsPosition;
|
|
3070
|
-
}
|
|
3071
|
-
return {
|
|
3072
|
-
verticalPosition: 6
|
|
3073
|
-
};
|
|
3074
|
-
}
|
|
3075
3020
|
isDifferentValues(firstValue, secondValue) {
|
|
3076
3021
|
return ObjectUtils$1.objectToString(firstValue || {}) !== ObjectUtils$1.objectToString(secondValue || {});
|
|
3077
3022
|
}
|
|
@@ -3144,85 +3089,24 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
3144
3089
|
}
|
|
3145
3090
|
return 0;
|
|
3146
3091
|
}
|
|
3147
|
-
buildItem(opt, index) {
|
|
3148
|
-
const widthValue = this.showOptionValue && this._maxWidthValue > 0 ? `${this._maxWidthValue}px` : '';
|
|
3149
|
-
opt.label = opt.label || opt.value;
|
|
3150
|
-
return h("li", { class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.selectOption(opt), onMouseOver: () => this._preSelection = index }, this.showOptionValue
|
|
3151
|
-
? h("span", { class: "item__value", title: opt.value, style: { width: widthValue, minWidth: widthValue, maxWidth: widthValue } }, opt.value)
|
|
3152
|
-
: undefined, h("span", { class: "item__label " + (this.showOptionValue ? "item__label--bold" : ""), title: opt.label }, opt.label));
|
|
3153
|
-
}
|
|
3154
3092
|
showOptions() {
|
|
3155
3093
|
var _a, _b;
|
|
3156
3094
|
if (!this.enabled)
|
|
3157
3095
|
return;
|
|
3158
|
-
|
|
3159
|
-
return;
|
|
3160
|
-
}
|
|
3096
|
+
this.openPopover();
|
|
3161
3097
|
const valueString = (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : this.value;
|
|
3162
3098
|
const indexValue = this._visibleOptions.findIndex(option => option.value === valueString);
|
|
3163
3099
|
this._preSelection = indexValue === -1 ? 0 : indexValue;
|
|
3164
3100
|
if (!!this._resizeObserver)
|
|
3165
3101
|
this._resizeObserver.observe(this._textInput);
|
|
3166
|
-
this._floatingID = FloatingManager.float(this._listWrapper, this._listContainer, { autoClose: true, isFixed: true, backClickListener: () => this.hideOptions() });
|
|
3167
3102
|
this.setFocus();
|
|
3168
|
-
window.requestAnimationFrame(() => {
|
|
3169
|
-
this.updateListPosition();
|
|
3170
|
-
if (!this.listOptionsPosition) {
|
|
3171
|
-
this._listWrapper.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
3172
|
-
}
|
|
3173
|
-
});
|
|
3174
3103
|
}
|
|
3175
3104
|
hideOptions() {
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
}
|
|
3179
|
-
this._floatingID = undefined;
|
|
3105
|
+
var _a;
|
|
3106
|
+
(_a = this._popover) === null || _a === void 0 ? void 0 : _a.hide();
|
|
3180
3107
|
if (!!this._resizeObserver)
|
|
3181
3108
|
this._resizeObserver.unobserve(this._textInput);
|
|
3182
3109
|
}
|
|
3183
|
-
isOptionsVisible() {
|
|
3184
|
-
return this._floatingID !== undefined && FloatingManager.isFloating(this._floatingID);
|
|
3185
|
-
}
|
|
3186
|
-
nextOption() {
|
|
3187
|
-
if (!this.isOptionsVisible()) {
|
|
3188
|
-
return;
|
|
3189
|
-
}
|
|
3190
|
-
this.showOptions();
|
|
3191
|
-
this._preSelection = this._preSelection === undefined ? 0 : Math.min(this._preSelection + 1, this._visibleOptions.length - 1);
|
|
3192
|
-
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
3193
|
-
}
|
|
3194
|
-
previousOption() {
|
|
3195
|
-
this._preSelection = this._preSelection === undefined ? 0 : Math.max(this._preSelection - 1, 0);
|
|
3196
|
-
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
3197
|
-
}
|
|
3198
|
-
scrollToOption(opt) {
|
|
3199
|
-
window.requestAnimationFrame(() => {
|
|
3200
|
-
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`li#item_${opt.value.replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
|
|
3201
|
-
if (liElem)
|
|
3202
|
-
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
3203
|
-
});
|
|
3204
|
-
}
|
|
3205
|
-
selectCurrentOption(focusOnInput = true) {
|
|
3206
|
-
if (this._preSelection !== undefined) {
|
|
3207
|
-
this.selectOption(this._visibleOptions[this._preSelection], focusOnInput);
|
|
3208
|
-
this._preSelection = undefined;
|
|
3209
|
-
}
|
|
3210
|
-
else {
|
|
3211
|
-
this.controlListWithOnlyOne(focusOnInput);
|
|
3212
|
-
}
|
|
3213
|
-
}
|
|
3214
|
-
controlListWithOnlyOne(focusOnInput = true) {
|
|
3215
|
-
var _a;
|
|
3216
|
-
const source = (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.filter((opt) => opt.label !== "" && opt.value != undefined);
|
|
3217
|
-
if ((source === null || source === void 0 ? void 0 : source.length) > 0) {
|
|
3218
|
-
let title = StringUtils$1.decodeHtmlEntities(source[0].label);
|
|
3219
|
-
const option = {
|
|
3220
|
-
value: source[0].value,
|
|
3221
|
-
label: title,
|
|
3222
|
-
};
|
|
3223
|
-
this.selectOption(option, focusOnInput);
|
|
3224
|
-
}
|
|
3225
|
-
}
|
|
3226
3110
|
updateSource(source) {
|
|
3227
3111
|
this._startLoading = false;
|
|
3228
3112
|
if (source instanceof Promise) {
|
|
@@ -3248,12 +3132,13 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
3248
3132
|
}
|
|
3249
3133
|
}
|
|
3250
3134
|
selectOption(newOption, focusOnInput = true) {
|
|
3251
|
-
var _a, _b;
|
|
3135
|
+
var _a, _b, _c;
|
|
3252
3136
|
const currentValue = this.getSelectedOption(this.value);
|
|
3253
3137
|
if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOption === null || newOption === void 0 ? void 0 : newOption.value) === null || _b === void 0 ? void 0 : _b.toString()))
|
|
3254
3138
|
|| (currentValue == undefined && newOption != undefined && "value" in newOption)) {
|
|
3255
3139
|
const adjustedOpt = !(newOption === null || newOption === void 0 ? void 0 : newOption.value) ? undefined : newOption;
|
|
3256
3140
|
this.value = adjustedOpt;
|
|
3141
|
+
(_c = this._popover) === null || _c === void 0 ? void 0 : _c.hide();
|
|
3257
3142
|
}
|
|
3258
3143
|
else {
|
|
3259
3144
|
this.resetOptions();
|
|
@@ -3306,6 +3191,11 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
3306
3191
|
//---------------------------------------------
|
|
3307
3192
|
// Lifecycle web component
|
|
3308
3193
|
//---------------------------------------------
|
|
3194
|
+
componentDidRender() {
|
|
3195
|
+
if (this._textInput) {
|
|
3196
|
+
this._textInputReady = true;
|
|
3197
|
+
}
|
|
3198
|
+
}
|
|
3309
3199
|
componentWillLoad() {
|
|
3310
3200
|
if (this.options === undefined) {
|
|
3311
3201
|
this.options = [];
|
|
@@ -3324,15 +3214,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
3324
3214
|
}
|
|
3325
3215
|
this.loadOptions(SearchMode$1.PRELOAD);
|
|
3326
3216
|
}
|
|
3327
|
-
componentDidRender() {
|
|
3328
|
-
var _a;
|
|
3329
|
-
if (this._floatingID === undefined) {
|
|
3330
|
-
this._listWrapper.remove();
|
|
3331
|
-
}
|
|
3332
|
-
(_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
|
|
3333
|
-
ElementIDUtils.addIDInfoIfNotExists(elem, "itemComboBox");
|
|
3334
|
-
});
|
|
3335
|
-
}
|
|
3336
3217
|
componentDidLoad() {
|
|
3337
3218
|
CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
|
|
3338
3219
|
this.setInputValue(false);
|
|
@@ -3340,10 +3221,12 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
3340
3221
|
window.requestAnimationFrame(() => {
|
|
3341
3222
|
if (!Array.isArray(entries) || !entries.length)
|
|
3342
3223
|
return;
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3224
|
+
if (!this._textInput)
|
|
3225
|
+
return;
|
|
3226
|
+
if (!this._comboBoxList)
|
|
3227
|
+
return;
|
|
3228
|
+
const textInputWidth = this._textInput.clientWidth;
|
|
3229
|
+
this._comboBoxList.width = textInputWidth;
|
|
3347
3230
|
});
|
|
3348
3231
|
});
|
|
3349
3232
|
if (this.autoFocus) {
|
|
@@ -3352,6 +3235,13 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
3352
3235
|
});
|
|
3353
3236
|
}
|
|
3354
3237
|
}
|
|
3238
|
+
disconnectedCallback() {
|
|
3239
|
+
var _a;
|
|
3240
|
+
(_a = this._popover) === null || _a === void 0 ? void 0 : _a.remove();
|
|
3241
|
+
if (this._resizeObserver) {
|
|
3242
|
+
this._resizeObserver.disconnect();
|
|
3243
|
+
}
|
|
3244
|
+
}
|
|
3355
3245
|
//---------------------------------------------
|
|
3356
3246
|
// Event handlers
|
|
3357
3247
|
//---------------------------------------------
|
|
@@ -3391,65 +3281,48 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
3391
3281
|
this.showOptions();
|
|
3392
3282
|
}
|
|
3393
3283
|
keyDownHandler(event) {
|
|
3394
|
-
|
|
3395
|
-
if (event.ctrlKey) {
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
//não é interessante deixar o evento propagar;
|
|
3401
|
-
event.stopPropagation();
|
|
3402
|
-
event.stopImmediatePropagation();
|
|
3403
|
-
event.preventDefault();
|
|
3404
|
-
}
|
|
3284
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3285
|
+
if (event.ctrlKey && (event.key === "f" || event.key === "F")) {
|
|
3286
|
+
this.loadOptions(SearchMode$1.ADVANCED);
|
|
3287
|
+
event.preventDefault();
|
|
3288
|
+
event.stopPropagation();
|
|
3289
|
+
return;
|
|
3405
3290
|
}
|
|
3406
3291
|
switch (event.key) {
|
|
3407
3292
|
case "ArrowDown":
|
|
3408
|
-
event.
|
|
3409
|
-
if (this.canShowListOptions())
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3293
|
+
event.preventDefault();
|
|
3294
|
+
if (this.canShowListOptions()) {
|
|
3295
|
+
this.showOptions();
|
|
3296
|
+
(_a = this._comboBoxList) === null || _a === void 0 ? void 0 : _a.nextOption();
|
|
3297
|
+
}
|
|
3413
3298
|
break;
|
|
3414
3299
|
case "ArrowUp":
|
|
3415
|
-
event.
|
|
3416
|
-
if (this.canShowListOptions())
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3300
|
+
event.preventDefault();
|
|
3301
|
+
if (this.canShowListOptions()) {
|
|
3302
|
+
this.showOptions();
|
|
3303
|
+
(_b = this._comboBoxList) === null || _b === void 0 ? void 0 : _b.previousOption();
|
|
3304
|
+
}
|
|
3420
3305
|
break;
|
|
3421
3306
|
case "Enter":
|
|
3422
|
-
this.
|
|
3423
|
-
|
|
3424
|
-
this.selectCurrentOption();
|
|
3307
|
+
if (this.isOpen) {
|
|
3308
|
+
event.preventDefault();
|
|
3309
|
+
(_c = this._comboBoxList) === null || _c === void 0 ? void 0 : _c.selectCurrentOption();
|
|
3425
3310
|
}
|
|
3426
3311
|
break;
|
|
3427
3312
|
case "Escape":
|
|
3428
|
-
if (this.
|
|
3429
|
-
event.
|
|
3313
|
+
if (this.isOpen) {
|
|
3314
|
+
event.preventDefault();
|
|
3315
|
+
(_d = this._popover) === null || _d === void 0 ? void 0 : _d.hide();
|
|
3430
3316
|
}
|
|
3431
|
-
this.cancelPreselection();
|
|
3432
|
-
this.resetOptions();
|
|
3433
3317
|
break;
|
|
3434
3318
|
case "Tab":
|
|
3435
3319
|
this._tabPressed = true;
|
|
3436
|
-
if (this.
|
|
3437
|
-
this.selectCurrentOption(
|
|
3320
|
+
if (this.isOpen) {
|
|
3321
|
+
(_e = this._comboBoxList) === null || _e === void 0 ? void 0 : _e.selectCurrentOption();
|
|
3322
|
+
(_f = this._popover) === null || _f === void 0 ? void 0 : _f.hide();
|
|
3438
3323
|
}
|
|
3439
|
-
this.resetOptions();
|
|
3440
3324
|
break;
|
|
3441
3325
|
}
|
|
3442
|
-
//ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
|
|
3443
|
-
//Por exemplo, quando o usuário dá um Enter, além de selecionar
|
|
3444
|
-
//um valor, também significa que a ateração finalizou,
|
|
3445
|
-
//e o contexto pode reagir (fechar um popup por exemplo).
|
|
3446
|
-
//event.stopPropagation();
|
|
3447
|
-
}
|
|
3448
|
-
//O evento deve ter sua propagação interrompida, apenas se a lista de opções estiver sendo exibida.
|
|
3449
|
-
handleEventPropagation(event) {
|
|
3450
|
-
if (this._listContainer.hasChildNodes() && this.stopPropagateEnterKeyEvent) {
|
|
3451
|
-
event.stopPropagation();
|
|
3452
|
-
}
|
|
3453
3326
|
}
|
|
3454
3327
|
onTextInputFocusOutHandler() {
|
|
3455
3328
|
if (this.hideErrorOnFocusOut)
|
|
@@ -3458,14 +3331,15 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
3458
3331
|
canShowListOptions() {
|
|
3459
3332
|
return !this._showLoading && this._visibleOptions.length > 0;
|
|
3460
3333
|
}
|
|
3334
|
+
openPopover() {
|
|
3335
|
+
var _a;
|
|
3336
|
+
this.isOpen = true;
|
|
3337
|
+
(_a = this._popover) === null || _a === void 0 ? void 0 : _a.show();
|
|
3338
|
+
}
|
|
3461
3339
|
render() {
|
|
3340
|
+
var _a;
|
|
3462
3341
|
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
3463
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: `text-input-slot-container ${this.suppressSearch ? "suppressed-search-input" : ""}`, ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "chevron-down" }))), h("
|
|
3464
|
-
&& this._visibleOptions.length === 0
|
|
3465
|
-
&& h("div", { class: "message" }, h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
|
|
3466
|
-
&& h("div", { class: "message" }, h("div", { class: "message__loading" })), this.showOptionValue
|
|
3467
|
-
? h("span", { class: "item__value item__value--hidden", ref: elem => this._itemValueBasis = elem })
|
|
3468
|
-
: undefined, this.canShowListOptions() && this._visibleOptions.map((opt, index) => this.buildItem(opt, index)))))));
|
|
3342
|
+
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: `text-input-slot-container ${this.suppressSearch ? "suppressed-search-input" : ""}`, ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "chevron-down" }))), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', onEzVisibilityChange: event => this.isOpen = event.detail }, h("ez-combo-box-list", { ref: ref => this._comboBoxList = ref, showLoading: this._showLoading, visibleOptions: this._visibleOptions, textEmptyList: this._textEmptyList, showOptionValue: this.showOptionValue, preSelection: this._preSelection, maxWidth: this._maxWidthValue, width: (_a = this._textInput) === null || _a === void 0 ? void 0 : _a.clientWidth, onOptionSelect: (opt) => this.selectOption(opt), onOptionHover: (index) => this._preSelection = index }))));
|
|
3469
3343
|
}
|
|
3470
3344
|
get el() { return this; }
|
|
3471
3345
|
static get watchers() { return {
|
|
@@ -3482,6 +3356,137 @@ var SearchMode$1;
|
|
|
3482
3356
|
SearchMode["PREDICTIVE"] = "PREDICTIVE";
|
|
3483
3357
|
})(SearchMode$1 || (SearchMode$1 = {}));
|
|
3484
3358
|
|
|
3359
|
+
const ezComboBoxListCss = ":host{--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--font-weight--large:var(--text-weight--large, 500);--ez-combo-box--font-weight--medium:var(--text-weight--medium, 400);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box--background-medium:var(--background--medium, #f0f3f7);--ez-combo-box--line-height:calc(var(--text--medium, 14px) + 4px);--ez-combo-box__list-title--primary:var(--title--primary, #2B3A54);--ez-combo-box__list-text--primary:var(--text--primary, #626e82);--ez-combo-box__list-height:calc(var(--ez-combo-box--font-size) + var(--ez-combo-box--space--medium) + 4px);--ez-combo-box--space--medium:var(--space--medium, 12px);--ez-combo-box--space--small:var(--space--small, 6px);--ez-combo-box__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-combo-box__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-combo-box__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-combo-box__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-combo-box__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-combo-box__scrollbar--width:var(--space--medium, 12px);--ez-combo-box__list-container--padding:var(--space--extra-small, 3px)}.list-container{padding-top:var(--ez-combo-box__list-container--padding)}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:0;z-index:var(--more-visible, 2);max-height:calc(4*var(--ez-combo-box__list-height) + 2*var(--ez-combo-box--space--small) + 9px);background-color:var(--ez-combo-box--background-color--xlight);border-radius:var(--ez-combo-box--border-radius);box-shadow:var(--shadow--medium, 0 8px 24px 0 rgba(43, 58, 84, 0.10));padding:var(--ez-combo-box--space--small)}.list-options{box-sizing:border-box;width:100%;height:100%;padding:0;display:flex;flex-direction:column;scroll-behavior:smooth;overflow:auto;scrollbar-width:thin;gap:3px;scrollbar-color:var(--ez-combo-box__scrollbar--color-clicked) var(--ez-combo-box__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--ez-combo-box__scrollbar--color-background);width:var(--ez-combo-box__scrollbar--width);max-width:var(--ez-combo-box__scrollbar--width);min-width:var(--ez-combo-box__scrollbar--width)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-combo-box__scrollbar--color-background);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-combo-box__scrollbar--color-default);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-combo-box__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-combo-box__scrollbar--color-clicked)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-combo-box--border-radius-small);padding:var(--ez-combo-box--space--small);min-height:var(--ez-combo-box__list-height);gap:var(--space--small, 6px)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size);line-height:var(--ez-combo-box--line-height)}.item__label{font-weight:var(--ez-combo-box--font-weight--medium)}.item__label--bold{font-weight:var(--ez-combo-box--font-weight--large)}.item__value{text-align:center;color:var(--ez-combo-box__list-text--primary);font-weight:var(--ez-combo-box--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;min-height:var(--ez-combo-box__list-height)}.message__no-result{color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size)}.message__loading{border-radius:50%;width:14px;height:14px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-combo-box__list-title--primary);border-top:3px solid transparent}li:hover{background-color:var(--ez-combo-box--background-medium)}.preselected{background-color:var(--background--medium)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
|
3360
|
+
|
|
3361
|
+
const EzComboBoxList$1 = class extends HTMLElement$1 {
|
|
3362
|
+
constructor() {
|
|
3363
|
+
super();
|
|
3364
|
+
this.__registerHost();
|
|
3365
|
+
this.__attachShadow();
|
|
3366
|
+
this.showLoading = undefined;
|
|
3367
|
+
this.visibleOptions = undefined;
|
|
3368
|
+
this.textEmptyList = "Nenhum resultado encontrado";
|
|
3369
|
+
this.showOptionValue = undefined;
|
|
3370
|
+
this.preSelection = undefined;
|
|
3371
|
+
this.maxWidth = undefined;
|
|
3372
|
+
this.width = undefined;
|
|
3373
|
+
this.onOptionSelect = undefined;
|
|
3374
|
+
this.onOptionHover = undefined;
|
|
3375
|
+
}
|
|
3376
|
+
/**
|
|
3377
|
+
* Move a seleção para a próxima opção na lista.
|
|
3378
|
+
*/
|
|
3379
|
+
async nextOption() {
|
|
3380
|
+
this.preSelection = this.preSelection === undefined ? 0 : Math.min(this.preSelection + 1, this.visibleOptions.length - 1);
|
|
3381
|
+
this.scrollToOption(this.visibleOptions[this.preSelection]);
|
|
3382
|
+
}
|
|
3383
|
+
/**
|
|
3384
|
+
* Move a seleção para a opção anterior na lista.
|
|
3385
|
+
*/
|
|
3386
|
+
async previousOption() {
|
|
3387
|
+
this.preSelection = this.preSelection === undefined ? 0 : Math.max(this.preSelection - 1, 0);
|
|
3388
|
+
this.scrollToOption(this.visibleOptions[this.preSelection]);
|
|
3389
|
+
}
|
|
3390
|
+
/**
|
|
3391
|
+
* Seleciona a opção atualmente pré-selecionada.
|
|
3392
|
+
*/
|
|
3393
|
+
async selectCurrentOption() {
|
|
3394
|
+
if (this.preSelection !== undefined) {
|
|
3395
|
+
this.onOptionSelect(this.visibleOptions[this.preSelection]);
|
|
3396
|
+
this.preSelection = undefined;
|
|
3397
|
+
}
|
|
3398
|
+
}
|
|
3399
|
+
/**
|
|
3400
|
+
* Observa mudanças na propriedade `width` e ajusta a largura da lista.
|
|
3401
|
+
*
|
|
3402
|
+
* @param newValue O novo valor da largura.
|
|
3403
|
+
* @param oldValue O valor anterior da largura.
|
|
3404
|
+
*/
|
|
3405
|
+
observeWidth(newValue, oldValue) {
|
|
3406
|
+
if (newValue === oldValue)
|
|
3407
|
+
return;
|
|
3408
|
+
if (!this._listWrapper)
|
|
3409
|
+
return;
|
|
3410
|
+
this._listWrapper.style.width = `${this.width}px`;
|
|
3411
|
+
}
|
|
3412
|
+
/**
|
|
3413
|
+
* Observa mudanças na propriedade `maxWidth` e ajusta a largura máxima da lista.
|
|
3414
|
+
*
|
|
3415
|
+
* @param newValue O novo valor da largura máxima.
|
|
3416
|
+
* @param oldValue O valor anterior da largura máxima.
|
|
3417
|
+
*/
|
|
3418
|
+
observeMaxWidth(newValue, oldValue) {
|
|
3419
|
+
if (newValue === oldValue)
|
|
3420
|
+
return;
|
|
3421
|
+
if (!this._listWrapper)
|
|
3422
|
+
return;
|
|
3423
|
+
this._listWrapper.style.maxWidth = this.maxWidth ? `${this.maxWidth}px` : '';
|
|
3424
|
+
}
|
|
3425
|
+
/**
|
|
3426
|
+
* Gerencia a navegação por teclado na lista do combo box.
|
|
3427
|
+
*
|
|
3428
|
+
* - `ArrowDown`: Move para a próxima opção.
|
|
3429
|
+
* - `ArrowUp`: Move para a opção anterior.
|
|
3430
|
+
* - `Enter`: Seleciona a opção atual.
|
|
3431
|
+
* - `Escape`: Limpa a pré-seleção.
|
|
3432
|
+
*
|
|
3433
|
+
* @param event O evento de teclado.
|
|
3434
|
+
*/
|
|
3435
|
+
handleKeyDown(event) {
|
|
3436
|
+
switch (event.key) {
|
|
3437
|
+
case "ArrowDown":
|
|
3438
|
+
event.preventDefault();
|
|
3439
|
+
event.stopPropagation();
|
|
3440
|
+
this.nextOption();
|
|
3441
|
+
break;
|
|
3442
|
+
case "ArrowUp":
|
|
3443
|
+
event.preventDefault();
|
|
3444
|
+
event.stopPropagation();
|
|
3445
|
+
this.previousOption();
|
|
3446
|
+
break;
|
|
3447
|
+
case "Enter":
|
|
3448
|
+
this.selectCurrentOption();
|
|
3449
|
+
break;
|
|
3450
|
+
case "Escape":
|
|
3451
|
+
this.preSelection = undefined;
|
|
3452
|
+
break;
|
|
3453
|
+
}
|
|
3454
|
+
}
|
|
3455
|
+
buildItem(opt, index) {
|
|
3456
|
+
const widthValue = this.showOptionValue && this.maxWidth > 0 ? `${this.maxWidth}px` : '';
|
|
3457
|
+
opt.label = opt.label || opt.value;
|
|
3458
|
+
return h("li", { class: index === this.preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.onOptionSelect(opt), onMouseOver: () => this.preSelection = index }, this.showOptionValue
|
|
3459
|
+
? h("span", { class: "item__value", title: opt.value, style: { width: widthValue, minWidth: widthValue, maxWidth: widthValue } }, opt.value)
|
|
3460
|
+
: undefined, h("span", { class: "item__label " + (this.showOptionValue ? "item__label--bold" : ""), title: opt.label }, opt.label));
|
|
3461
|
+
}
|
|
3462
|
+
scrollToOption(opt) {
|
|
3463
|
+
window.requestAnimationFrame(() => {
|
|
3464
|
+
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`li#item_${opt.value.replace(/[ <>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
|
|
3465
|
+
if (liElem)
|
|
3466
|
+
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
3467
|
+
});
|
|
3468
|
+
}
|
|
3469
|
+
componentDidLoad() {
|
|
3470
|
+
this._listWrapper.style.width = `${this.width}px`;
|
|
3471
|
+
this._listWrapper.style.maxWidth = this.maxWidth ? `${this.maxWidth}px` : '';
|
|
3472
|
+
}
|
|
3473
|
+
componentDidRender() {
|
|
3474
|
+
var _a;
|
|
3475
|
+
(_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
|
|
3476
|
+
ElementIDUtils.addIDInfoIfNotExists(elem, "itemComboBox");
|
|
3477
|
+
});
|
|
3478
|
+
}
|
|
3479
|
+
render() {
|
|
3480
|
+
return (h("section", { class: "list-container" }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading && this.visibleOptions.length === 0 && (h("div", { class: "message" }, h("span", { class: "message__no-result" }, this.textEmptyList))), this.showLoading && (h("div", { class: "message" }, h("div", { class: "message__loading" }))), this.showOptionValue && (h("span", { class: "item__value item__value--hidden" })), !this.showLoading && this.visibleOptions.length > 0 &&
|
|
3481
|
+
this.visibleOptions.map((opt, index) => this.buildItem(opt, index))))));
|
|
3482
|
+
}
|
|
3483
|
+
static get watchers() { return {
|
|
3484
|
+
"width": ["observeWidth"],
|
|
3485
|
+
"maxWidth": ["observeMaxWidth"]
|
|
3486
|
+
}; }
|
|
3487
|
+
static get style() { return ezComboBoxListCss; }
|
|
3488
|
+
};
|
|
3489
|
+
|
|
3485
3490
|
const EzCustomFormInput$1 = class extends HTMLElement$1 {
|
|
3486
3491
|
constructor() {
|
|
3487
3492
|
super();
|
|
@@ -75428,9 +75433,9 @@ const computePosition = (reference, floating, options) => {
|
|
|
75428
75433
|
});
|
|
75429
75434
|
};
|
|
75430
75435
|
|
|
75431
|
-
const
|
|
75436
|
+
const ezPopoverCoreCss = ":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--most-visible, 4);position:relative;display:flex;user-select:none}.popover__overlay{display:none;position:fixed;padding:0;top:0px;left:0px;width:100%;height:100vh;box-sizing:border-box;z-index:var(--more-visible--2x, 3)}.popover__overlay--light{background-color:rgba(var(--rgb-background--overlay), var(--opacity--bright))}.popover__overlay--medium{background-color:rgba(var(--rgb-background--overlay), var(--opacity--soft));backdrop-filter:blur(var(--background-blur--medium))}.popover__box{display:none;position:fixed;top:0;left:0;z-index:var(--ez-popover__box--z-index);flex-direction:column;height:fit-content;background-color:var(--ez-popover__box--background-color);border-radius:var(--ez-popover__box--border-radius);box-shadow:var(--ez-popover__box--box-shadow)}.popover__box--fit-content{width:fit-content}.popover__box--full-width{width:calc(100% - 10px)}";
|
|
75432
75437
|
|
|
75433
|
-
const
|
|
75438
|
+
const EzPopoverCore$1 = class extends HTMLElement$1 {
|
|
75434
75439
|
constructor() {
|
|
75435
75440
|
super();
|
|
75436
75441
|
this.__registerHost();
|
|
@@ -75445,16 +75450,16 @@ const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
|
75445
75450
|
this.options = { horizontalGap: 0, verticalGap: 0, fromRight: false };
|
|
75446
75451
|
}
|
|
75447
75452
|
async observeOpened(newValue, oldValue) {
|
|
75448
|
-
if (newValue
|
|
75449
|
-
if (newValue) {
|
|
75450
|
-
this.openPopover();
|
|
75451
|
-
}
|
|
75452
|
-
else {
|
|
75453
|
-
this.hidePopover();
|
|
75454
|
-
}
|
|
75455
|
-
this.ezVisibilityChange.emit(newValue);
|
|
75453
|
+
if (newValue === oldValue)
|
|
75456
75454
|
return;
|
|
75455
|
+
if (newValue) {
|
|
75456
|
+
this.openPopover();
|
|
75457
|
+
}
|
|
75458
|
+
else {
|
|
75459
|
+
this.hidePopover();
|
|
75457
75460
|
}
|
|
75461
|
+
this.ezVisibilityChange.emit(newValue);
|
|
75462
|
+
return;
|
|
75458
75463
|
}
|
|
75459
75464
|
/**
|
|
75460
75465
|
* Atualiza a posição do popover.
|
|
@@ -75548,12 +75553,14 @@ const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
|
75548
75553
|
if (!this._box) {
|
|
75549
75554
|
return;
|
|
75550
75555
|
}
|
|
75551
|
-
this.
|
|
75552
|
-
|
|
75553
|
-
|
|
75554
|
-
|
|
75555
|
-
|
|
75556
|
-
|
|
75556
|
+
if (this.opened) {
|
|
75557
|
+
this._box.style.display = 'flex';
|
|
75558
|
+
this._box.style.visibility = 'hidden';
|
|
75559
|
+
await this.updatePositionPopover();
|
|
75560
|
+
this.openOverlay();
|
|
75561
|
+
this.ezVisibilityChange.emit(true);
|
|
75562
|
+
this._box.style.visibility = 'visible';
|
|
75563
|
+
}
|
|
75557
75564
|
}
|
|
75558
75565
|
openOverlay() {
|
|
75559
75566
|
if (!this._overlay || !this._overlayIsActive) {
|
|
@@ -75593,6 +75600,7 @@ const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
|
75593
75600
|
this._overlayIsActive = this.checkStatusOverlay();
|
|
75594
75601
|
this._resizeObserver = new ResizeObserver(this.updatePositionPopover.bind(this));
|
|
75595
75602
|
this._resizeObserver.observe(this._box);
|
|
75603
|
+
this.openPopover();
|
|
75596
75604
|
}
|
|
75597
75605
|
disconnectedCallback() {
|
|
75598
75606
|
window.removeEventListener('scroll', this.updatePositionDebounce.bind(this), true);
|
|
@@ -75610,6 +75618,103 @@ const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
|
75610
75618
|
static get watchers() { return {
|
|
75611
75619
|
"opened": ["observeOpened"]
|
|
75612
75620
|
}; }
|
|
75621
|
+
static get style() { return ezPopoverCoreCss; }
|
|
75622
|
+
};
|
|
75623
|
+
|
|
75624
|
+
const ezPopoverPlusCss = ":host{display:none}";
|
|
75625
|
+
|
|
75626
|
+
const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
75627
|
+
constructor() {
|
|
75628
|
+
super();
|
|
75629
|
+
this.__registerHost();
|
|
75630
|
+
this.__attachShadow();
|
|
75631
|
+
this.ezVisibilityChange = createEvent(this, "ezVisibilityChange", 7);
|
|
75632
|
+
this.autoClose = true;
|
|
75633
|
+
this.boxWidth = "fit-content";
|
|
75634
|
+
this.opened = false;
|
|
75635
|
+
this.overlayType = "light";
|
|
75636
|
+
this.anchorElement = undefined;
|
|
75637
|
+
this.options = { horizontalGap: 0, verticalGap: 0, fromRight: false };
|
|
75638
|
+
}
|
|
75639
|
+
listenerEzVisibilityChange({ detail }) {
|
|
75640
|
+
this.ezVisibilityChange.emit(detail);
|
|
75641
|
+
}
|
|
75642
|
+
async observeOpened(newValue) {
|
|
75643
|
+
if (newValue && !this._popOverCore) {
|
|
75644
|
+
this.renderPopoverCore();
|
|
75645
|
+
}
|
|
75646
|
+
this._popOverCore.opened = newValue;
|
|
75647
|
+
}
|
|
75648
|
+
/**
|
|
75649
|
+
* Atualiza a posição do popover.
|
|
75650
|
+
*/
|
|
75651
|
+
async updatePosition(top, left) {
|
|
75652
|
+
var _a;
|
|
75653
|
+
await ((_a = this._popOverCore) === null || _a === void 0 ? void 0 : _a.updatePosition(top, left));
|
|
75654
|
+
}
|
|
75655
|
+
/**
|
|
75656
|
+
* Exibe o ez-popover.
|
|
75657
|
+
*/
|
|
75658
|
+
async show(top, left) {
|
|
75659
|
+
if (!this._popOverCore) {
|
|
75660
|
+
this.renderPopoverCore();
|
|
75661
|
+
}
|
|
75662
|
+
await this._popOverCore.show(top, left);
|
|
75663
|
+
}
|
|
75664
|
+
/**
|
|
75665
|
+
* Ancora a exibição do popOver a um elemento HTML.
|
|
75666
|
+
*/
|
|
75667
|
+
async showUnder(element, options) {
|
|
75668
|
+
if (!this._popOverCore) {
|
|
75669
|
+
this.renderPopoverCore();
|
|
75670
|
+
}
|
|
75671
|
+
await this._popOverCore.showUnder(element, options);
|
|
75672
|
+
}
|
|
75673
|
+
/**
|
|
75674
|
+
* Oculta o ez-popover.
|
|
75675
|
+
*/
|
|
75676
|
+
async hide() {
|
|
75677
|
+
var _a;
|
|
75678
|
+
await ((_a = this._popOverCore) === null || _a === void 0 ? void 0 : _a.hide());
|
|
75679
|
+
}
|
|
75680
|
+
/**
|
|
75681
|
+
* Altera as opções.
|
|
75682
|
+
*/
|
|
75683
|
+
async setOptions(options) {
|
|
75684
|
+
var _a;
|
|
75685
|
+
await ((_a = this._popOverCore) === null || _a === void 0 ? void 0 : _a.setOptions(options));
|
|
75686
|
+
}
|
|
75687
|
+
/**
|
|
75688
|
+
* Altera o elemento de ancoragem.
|
|
75689
|
+
*/
|
|
75690
|
+
async setAnchorElement(anchor) {
|
|
75691
|
+
var _a;
|
|
75692
|
+
await ((_a = this._popOverCore) === null || _a === void 0 ? void 0 : _a.setAnchorElement(anchor));
|
|
75693
|
+
}
|
|
75694
|
+
renderPopoverCore() {
|
|
75695
|
+
this._popOverCore = document.createElement('ez-popover-core');
|
|
75696
|
+
this._popOverCore.opened = this.opened;
|
|
75697
|
+
this._popOverCore.anchorElement = this.anchorElement;
|
|
75698
|
+
this._popOverCore.autoClose = this.autoClose;
|
|
75699
|
+
this._popOverCore.boxWidth = this.boxWidth;
|
|
75700
|
+
this._popOverCore.overlayType = this.overlayType;
|
|
75701
|
+
this._popOverCore.options = this.options;
|
|
75702
|
+
const firstChild = this._host.children.item(0);
|
|
75703
|
+
if (firstChild) {
|
|
75704
|
+
this._popOverCore.appendChild(firstChild);
|
|
75705
|
+
}
|
|
75706
|
+
else {
|
|
75707
|
+
console.warn('O slot do popover está vazio. Adicione conteúdo ao slot para exibição correta.');
|
|
75708
|
+
}
|
|
75709
|
+
document.body.appendChild(this._popOverCore);
|
|
75710
|
+
}
|
|
75711
|
+
render() {
|
|
75712
|
+
return (h(Host, null, h("slot", null)));
|
|
75713
|
+
}
|
|
75714
|
+
get _host() { return this; }
|
|
75715
|
+
static get watchers() { return {
|
|
75716
|
+
"opened": ["observeOpened"]
|
|
75717
|
+
}; }
|
|
75613
75718
|
static get style() { return ezPopoverPlusCss; }
|
|
75614
75719
|
};
|
|
75615
75720
|
|
|
@@ -80400,7 +80505,8 @@ const EzChart = /*@__PURE__*/proxyCustomElement(EzChart$1, [1,"ez-chart",{"type"
|
|
|
80400
80505
|
const EzCheck = /*@__PURE__*/proxyCustomElement(EzCheck$1, [1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[1540],"mode":[513],"compact":[4]}]);
|
|
80401
80506
|
const EzChip = /*@__PURE__*/proxyCustomElement(EzChip$1, [1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"showNativeTooltip":[4,"show-native-tooltip"]}]);
|
|
80402
80507
|
const EzCollapsibleBox = /*@__PURE__*/proxyCustomElement(EzCollapsibleBox$1, [1,"ez-collapsible-box",{"value":[1540],"boxBordered":[4,"box-bordered"],"label":[513],"subtitle":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"headerAlign":[513,"header-align"],"removable":[516],"editable":[516],"conditionalSave":[16],"_activeEditText":[32]}]);
|
|
80403
|
-
const EzComboBox = /*@__PURE__*/proxyCustomElement(EzComboBox$1, [1,"ez-combo-box",{"limitCharsToSearch":[2,"limit-chars-to-search"],"value":[1537],"label":[513],"enabled":[516],"options":[1040],"errorMessage":[1537,"error-message"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressSearch":[4,"suppress-search"],"optionLoader":[16],"suppressEmptyOption":[4,"suppress-empty-option"],"stopPropagateEnterKeyEvent":[4,"stop-propagate-enter-key-event"],"canShowError":[516,"can-show-error"],"mode":[513],"hideErrorOnFocusOut":[4,"hide-error-on-focus-out"],"listOptionsPosition":[16],"isTextSearch":[4,"is-text-search"],"autoFocus":[4,"auto-focus"],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_criteria":[32]
|
|
80508
|
+
const EzComboBox = /*@__PURE__*/proxyCustomElement(EzComboBox$1, [1,"ez-combo-box",{"limitCharsToSearch":[2,"limit-chars-to-search"],"value":[1537],"label":[513],"enabled":[516],"options":[1040],"errorMessage":[1537,"error-message"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressSearch":[4,"suppress-search"],"optionLoader":[16],"suppressEmptyOption":[4,"suppress-empty-option"],"stopPropagateEnterKeyEvent":[4,"stop-propagate-enter-key-event"],"canShowError":[516,"can-show-error"],"mode":[513],"hideErrorOnFocusOut":[4,"hide-error-on-focus-out"],"listOptionsPosition":[16],"isTextSearch":[4,"is-text-search"],"autoFocus":[4,"auto-focus"],"isOpen":[32],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_criteria":[32],"_textInputReady":[32]}]);
|
|
80509
|
+
const EzComboBoxList = /*@__PURE__*/proxyCustomElement(EzComboBoxList$1, [1,"ez-combo-box-list",{"showLoading":[4,"show-loading"],"visibleOptions":[16],"textEmptyList":[1,"text-empty-list"],"showOptionValue":[4,"show-option-value"],"preSelection":[2,"pre-selection"],"maxWidth":[2,"max-width"],"width":[2],"onOptionSelect":[16],"onOptionHover":[16]},[[0,"keydown","handleKeyDown"]]]);
|
|
80404
80510
|
const EzCustomFormInput = /*@__PURE__*/proxyCustomElement(EzCustomFormInput$1, [2,"ez-custom-form-input",{"customEditor":[16],"formViewField":[16],"value":[1032],"detailContext":[1,"detail-context"],"builderFallback":[16],"selectedRecord":[16],"gui":[32]}]);
|
|
80405
80511
|
const EzDateInput = /*@__PURE__*/proxyCustomElement(EzDateInput$1, [1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"mode":[513],"canShowError":[516,"can-show-error"],"autoFocus":[4,"auto-focus"]}]);
|
|
80406
80512
|
const EzDateTimeInput = /*@__PURE__*/proxyCustomElement(EzDateTimeInput$1, [1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"canShowError":[516,"can-show-error"],"autoFocus":[4,"auto-focus"]}]);
|
|
@@ -80421,7 +80527,8 @@ const EzModalContainer = /*@__PURE__*/proxyCustomElement(EzModalContainer$1, [6,
|
|
|
80421
80527
|
const EzMultiSelectionList = /*@__PURE__*/proxyCustomElement(EzMuiltiSelectionList, [2,"ez-multi-selection-list",{"columnName":[1,"column-name"],"dataSource":[16],"useOptions":[1028,"use-options"],"options":[1040],"isTextSearch":[4,"is-text-search"],"filteredOptions":[32],"displayOptions":[32],"viewScenario":[32],"displayOptionToCheckAllItems":[32]}]);
|
|
80422
80528
|
const EzNumberInput = /*@__PURE__*/proxyCustomElement(EzNumberInput$1, [1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"canShowError":[516,"can-show-error"],"errorMessage":[1537,"error-message"],"allowNegative":[4,"allow-negative"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"mode":[513],"autoFocus":[4,"auto-focus"],"_value":[32]}]);
|
|
80423
80529
|
const EzPopover = /*@__PURE__*/proxyCustomElement(EzPopover$1, [1,"ez-popover",{"autoClose":[516,"auto-close"],"boxWidth":[513,"box-width"],"opened":[1540],"innerElement":[1537,"inner-element"],"overlayType":[513,"overlay-type"]}]);
|
|
80424
|
-
const
|
|
80530
|
+
const EzPopoverCore = /*@__PURE__*/proxyCustomElement(EzPopoverCore$1, [1,"ez-popover-core",{"autoClose":[516,"auto-close"],"boxWidth":[513,"box-width"],"opened":[1540],"overlayType":[513,"overlay-type"],"anchorElement":[1537,"anchor-element"],"options":[1040]}]);
|
|
80531
|
+
const EzPopoverPlus = /*@__PURE__*/proxyCustomElement(EzPopoverPlus$1, [1,"ez-popover-plus",{"autoClose":[516,"auto-close"],"boxWidth":[513,"box-width"],"opened":[1540],"overlayType":[513,"overlay-type"],"anchorElement":[1537,"anchor-element"],"options":[1040]},[[0,"ezVisibilityChange","listenerEzVisibilityChange"]]]);
|
|
80425
80532
|
const EzPopup = /*@__PURE__*/proxyCustomElement(EzPopup$1, [1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"],"enabledScroll":[4,"enabled-scroll"]}]);
|
|
80426
80533
|
const EzRadioButton = /*@__PURE__*/proxyCustomElement(EzRadioButton$1, [1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]);
|
|
80427
80534
|
const EzScroller = /*@__PURE__*/proxyCustomElement(EzScroller$1, [1,"ez-scroller",{"direction":[1],"locked":[4],"activeShadow":[4,"active-shadow"],"isActive":[32]},[[2,"click","clickListener"],[1,"mousedown","mouseDownHandler"],[1,"mouseup","mouseUpHandler"],[1,"mousemove","mouseMoveHandler"]]]);
|
|
@@ -80461,6 +80568,7 @@ const defineCustomElements = (opts) => {
|
|
|
80461
80568
|
EzChip,
|
|
80462
80569
|
EzCollapsibleBox,
|
|
80463
80570
|
EzComboBox,
|
|
80571
|
+
EzComboBoxList,
|
|
80464
80572
|
EzCustomFormInput,
|
|
80465
80573
|
EzDateInput,
|
|
80466
80574
|
EzDateTimeInput,
|
|
@@ -80481,6 +80589,7 @@ const defineCustomElements = (opts) => {
|
|
|
80481
80589
|
EzMultiSelectionList,
|
|
80482
80590
|
EzNumberInput,
|
|
80483
80591
|
EzPopover,
|
|
80592
|
+
EzPopoverCore,
|
|
80484
80593
|
EzPopoverPlus,
|
|
80485
80594
|
EzPopup,
|
|
80486
80595
|
EzRadioButton,
|
|
@@ -80512,4 +80621,4 @@ const defineCustomElements = (opts) => {
|
|
|
80512
80621
|
}
|
|
80513
80622
|
};
|
|
80514
80623
|
|
|
80515
|
-
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzChart, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzCustomFormInput, EzDateInput, EzDateTimeInput, EzDialog, EzDoubleList, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover, EzPopoverPlus, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSidebarButton, EzSidebarNavigator, EzSkeleton, EzSplitButton, EzSplitItem, EzSplitPanel, EzTabselector, EzTextArea, EzTextEdit, EzTextInput, EzTimeInput, EzToast, EzTooltip, EzTree, EzUpload, EzViewStack, FilterColumn, MultiSelectionBoxMessage, defineCustomElements };
|
|
80624
|
+
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzChart, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzComboBoxList, EzCustomFormInput, EzDateInput, EzDateTimeInput, EzDialog, EzDoubleList, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover, EzPopoverCore, EzPopoverPlus, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSidebarButton, EzSidebarNavigator, EzSkeleton, EzSplitButton, EzSplitItem, EzSplitPanel, EzTabselector, EzTextArea, EzTextEdit, EzTextInput, EzTimeInput, EzToast, EzTooltip, EzTree, EzUpload, EzViewStack, FilterColumn, MultiSelectionBoxMessage, defineCustomElements };
|