@sankhyalabs/ezui 5.20.0-dev.1 → 5.20.0-dev.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -5
- package/dist/cjs/ez-alert-list.cjs.entry.js +33 -28
- package/dist/cjs/ez-card-item_3.cjs.entry.js +182 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js +12 -156
- package/dist/cjs/ez-date-input.cjs.entry.js +3 -0
- package/dist/cjs/ez-date-time-input.cjs.entry.js +3 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +4 -2
- package/dist/cjs/ez-grid.cjs.entry.js +27 -21
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -10
- package/dist/cjs/ez-number-input.cjs.entry.js +3 -0
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +611 -31
- package/dist/cjs/ez-split-button.cjs.entry.js +147 -0
- package/dist/cjs/ez-split-item.cjs.entry.js +12 -2
- package/dist/cjs/ez-split-panel.cjs.entry.js +15 -12
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/filter-column.cjs.entry.js +16 -5
- package/dist/cjs/index-a7b0c73d.js +10 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/ez-alert-list/ez-alert-list.js +33 -28
- package/dist/collection/components/ez-card-item/ez-card-item.css +35 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +13 -174
- package/dist/collection/components/ez-date-input/ez-date-input.js +3 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +3 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +4 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +11 -10
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +15 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -3
- package/dist/collection/components/ez-grid/ez-grid.css +1 -0
- package/dist/collection/components/ez-grid/ez-grid.js +2 -2
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +16 -5
- package/dist/collection/components/ez-icon/ez-icon.css +1 -1
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +2 -10
- package/dist/collection/components/ez-number-input/ez-number-input.js +3 -0
- package/dist/collection/components/ez-popup/ez-popup.css +0 -1
- package/dist/collection/components/ez-search/ez-search.css +331 -0
- package/dist/collection/components/ez-search/ez-search.js +689 -55
- package/dist/collection/components/ez-split-button/ez-split-button.css +229 -0
- package/dist/collection/components/ez-split-button/ez-split-button.js +436 -0
- package/dist/collection/components/ez-split-button/test/dropdownItems.js +42 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.css +6 -7
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +35 -14
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +40 -12
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +78 -2
- package/dist/collection/utils/form/test/DataBinder.test.js +9 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +895 -281
- package/dist/esm/ez-alert-list.entry.js +33 -28
- package/dist/esm/ez-card-item_3.entry.js +176 -0
- package/dist/esm/ez-combo-box.entry.js +13 -157
- package/dist/esm/ez-date-input.entry.js +3 -0
- package/dist/esm/ez-date-time-input.entry.js +3 -0
- package/dist/esm/ez-form-view.entry.js +4 -2
- package/dist/esm/ez-grid.entry.js +27 -21
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list.entry.js +2 -10
- package/dist/esm/ez-number-input.entry.js +3 -0
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +613 -33
- package/dist/esm/ez-split-button.entry.js +143 -0
- package/dist/esm/ez-split-item.entry.js +12 -2
- package/dist/esm/ez-split-panel.entry.js +15 -12
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/filter-column.entry.js +16 -5
- package/dist/esm/index-baa5e267.js +10 -10
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-51c5e071.entry.js → p-02c8831a.entry.js} +1 -1
- package/dist/ezui/{p-f56dd1da.entry.js → p-07cbffce.entry.js} +1 -1
- package/dist/ezui/p-13dbad96.entry.js +1 -0
- package/dist/ezui/{p-c0f1715f.entry.js → p-18e7870d.entry.js} +1 -1
- package/dist/ezui/p-25ed09c6.entry.js +1 -0
- package/dist/ezui/p-428a05fe.entry.js +1 -0
- package/dist/ezui/p-50186acb.entry.js +1 -0
- package/dist/ezui/p-60848ef6.entry.js +1 -0
- package/dist/ezui/{p-6e2f8e6b.entry.js → p-661f6820.entry.js} +1 -1
- package/dist/ezui/p-672dd122.entry.js +1 -0
- package/dist/ezui/{p-40f72de4.entry.js → p-784fe207.entry.js} +1 -1
- package/dist/ezui/p-940ed30b.entry.js +1 -0
- package/dist/ezui/p-b9fbf4e7.entry.js +1 -0
- package/dist/ezui/p-baf80b13.entry.js +1 -0
- package/dist/ezui/p-e52cbcc7.entry.js +1 -0
- package/dist/ezui/p-e562d05e.entry.js +1 -0
- package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +1 -1
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +0 -15
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +2 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +4 -1
- package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +0 -1
- package/dist/types/components/ez-search/ez-search.d.ts +100 -10
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +89 -0
- package/dist/types/components/ez-split-button/test/dropdownItems.d.ts +2 -0
- package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +23 -0
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +22 -0
- package/dist/types/components.d.ts +170 -14
- package/dist/types/utils/form/test/DataBinder.test.d.ts +1 -0
- package/dist/types/utils/interfaces/AbstractFieldMetadata.d.ts +2 -1
- package/package.json +12 -4
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/ez-card-item.cjs.entry.js +0 -52
- package/dist/cjs/ez-filter-input_2.cjs.entry.js +0 -137
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridUtils.js +0 -8
- package/dist/esm/ez-card-item.entry.js +0 -48
- package/dist/esm/ez-filter-input_2.entry.js +0 -132
- package/dist/ezui/p-05f5a778.entry.js +0 -1
- package/dist/ezui/p-24d3fede.entry.js +0 -1
- package/dist/ezui/p-4a7f113d.entry.js +0 -1
- package/dist/ezui/p-5613fe63.entry.js +0 -1
- package/dist/ezui/p-596634e9.entry.js +0 -1
- package/dist/ezui/p-76ba9d67.entry.js +0 -1
- package/dist/ezui/p-796c1a88.entry.js +0 -1
- package/dist/ezui/p-a32aaac6.entry.js +0 -1
- package/dist/ezui/p-a5ac7151.entry.js +0 -1
- package/dist/ezui/p-af15c277.entry.js +0 -1
- package/dist/ezui/p-d6ffe679.entry.js +0 -1
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridUtils.d.ts +0 -1
|
@@ -1171,11 +1171,13 @@ const EzAlertList$1 = class extends HTMLElement$1 {
|
|
|
1171
1171
|
/**
|
|
1172
1172
|
* Gerencia a exibição do overlay usando FloatingManager do Core.
|
|
1173
1173
|
*/
|
|
1174
|
-
|
|
1175
|
-
if (this.opened) {
|
|
1174
|
+
manageOverlay() {
|
|
1175
|
+
if (this.opened && this._container) {
|
|
1176
1176
|
this._overlayId = FloatingManager.float(this._container, this._overlayRef, this.getFloatOptions());
|
|
1177
1177
|
}
|
|
1178
1178
|
else {
|
|
1179
|
+
if (this._overlayId === undefined)
|
|
1180
|
+
return;
|
|
1179
1181
|
FloatingManager.close(this._overlayId);
|
|
1180
1182
|
this._overlayId = undefined;
|
|
1181
1183
|
}
|
|
@@ -1184,8 +1186,10 @@ const EzAlertList$1 = class extends HTMLElement$1 {
|
|
|
1184
1186
|
* Atualiza a posição da lista.
|
|
1185
1187
|
*/
|
|
1186
1188
|
updatePosition(right, bottom) {
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
+
if (this.opened) {
|
|
1190
|
+
FloatingManager.updateFloatPosition(this._container, this._overlayRef, Object.assign(Object.assign({}, this.getFloatOptions()), { right,
|
|
1191
|
+
bottom }));
|
|
1192
|
+
}
|
|
1189
1193
|
}
|
|
1190
1194
|
;
|
|
1191
1195
|
/**
|
|
@@ -1194,7 +1198,7 @@ const EzAlertList$1 = class extends HTMLElement$1 {
|
|
|
1194
1198
|
getFloatOptions() {
|
|
1195
1199
|
return {
|
|
1196
1200
|
autoClose: false,
|
|
1197
|
-
isFixed:
|
|
1201
|
+
isFixed: true,
|
|
1198
1202
|
bottom: '10px',
|
|
1199
1203
|
right: '10px',
|
|
1200
1204
|
};
|
|
@@ -1216,9 +1220,9 @@ const EzAlertList$1 = class extends HTMLElement$1 {
|
|
|
1216
1220
|
const boxHeight = this._container.getBoundingClientRect().height;
|
|
1217
1221
|
return ((docHeight - boxHeight) / 2) + 'px';
|
|
1218
1222
|
}
|
|
1219
|
-
|
|
1223
|
+
componentDidLoad() {
|
|
1220
1224
|
this.manageOverlay();
|
|
1221
|
-
if (this.opened) {
|
|
1225
|
+
if (this.opened && this._container) {
|
|
1222
1226
|
this._container.focus();
|
|
1223
1227
|
}
|
|
1224
1228
|
}
|
|
@@ -1226,27 +1230,28 @@ const EzAlertList$1 = class extends HTMLElement$1 {
|
|
|
1226
1230
|
this.dataElementId = ElementIDUtils.addIDInfo(this._element, 'EzAlertList');
|
|
1227
1231
|
}
|
|
1228
1232
|
render() {
|
|
1229
|
-
return (h(Host, Object.assign({}, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: this.dataElementId }),
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1233
|
+
return (h(Host, Object.assign({}, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: this.dataElementId }), this.opened ?
|
|
1234
|
+
(h("div", { ref: elem => (this._overlayRef = elem) }, h("div", { class: `alert-list__container ${this.expanded ? 'expanded' : ''}`, ref: elem => (this._container = elem) }, h("div", { class: "alert-list__content" }, h("div", { class: "alert-list__header" }, h("div", { class: "alert-list__title" }, `Avisos (${this.alerts.length})`), h("div", { class: "alert-list__header__buttons" }, this.enableExpand && (h("ez-button", { mode: "icon", size: "small", iconName: "expand", onClick: () => this.toggleExpandContainer(), "data-element-id": ElementIDUtils.getInternalIDInfo('expandButton'), title: this.expanded ? 'Resumir' : 'Expandir' })), h("ez-button", { mode: "icon", size: "small", iconName: "close", "data-element-id": ElementIDUtils.getInternalIDInfo('closeButton'), onClick: () => {
|
|
1235
|
+
this.opened = false;
|
|
1236
|
+
}, title: 'Fechar' }))), h("div", { class: "alert-list__expandable-content" }, h("ez-list", { itemSlotBuilder: this.itemRightSlotBuilder, hoverFeedback: true, itemLeftSlotBuilder: item => {
|
|
1237
|
+
return (h("a", { href: "#", style: {
|
|
1238
|
+
fontFamily: "var(--font-pattern, 'Roboto')",
|
|
1239
|
+
fontSize: 'var(--text--medium, 14px)',
|
|
1240
|
+
fontWeight: 'var(--text-weight--medium, 400)',
|
|
1241
|
+
color: 'var(--color--primary, #008561)',
|
|
1242
|
+
marginRight: '4px',
|
|
1243
|
+
cursor: 'pointer',
|
|
1244
|
+
display: 'flex',
|
|
1245
|
+
width: 'max-content',
|
|
1246
|
+
textDecoration: 'none'
|
|
1247
|
+
} }, this.getTitleText(item)));
|
|
1248
|
+
}, dataSource: this.alerts.map((alert, index) => {
|
|
1249
|
+
var _a;
|
|
1250
|
+
return {
|
|
1251
|
+
id: this.alertId(alert.title, index),
|
|
1252
|
+
label: (_a = alert.detail) !== null && _a !== void 0 ? _a : "",
|
|
1253
|
+
};
|
|
1254
|
+
}) })))))) : null));
|
|
1250
1255
|
}
|
|
1251
1256
|
get _element() { return this; }
|
|
1252
1257
|
static get watchers() { return {
|
|
@@ -1981,7 +1986,7 @@ const EzCalendar$1 = class extends HTMLElement$1 {
|
|
|
1981
1986
|
static get style() { return ezCalendarCss; }
|
|
1982
1987
|
};
|
|
1983
1988
|
|
|
1984
|
-
const ezCardItemCss = ":host{--ez-card-item--font-size:var(--text--medium, 14px)
|
|
1989
|
+
const ezCardItemCss = ":host {\n /*@doc Define o tamanho da fonte do componente.*/\n --ez-card-item--font-size: var(--text--medium, 14px);\n\n /*@doc Define a família da fonte do componente.*/\n --ez-card-item--font-family: var(--font-pattern, Arial);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--font-weight: var(--text-weight--medium, 400);\n\n /*@doc Define o peso da fonte do title do componente.*/\n --ez-card-item--font-weight-large: var(--text-weight--large, 600);\n\n /*@doc Define a cor da fonte do componente.*/\n --ez-card-item--color: var(--title--primary, #2B3A54);\n\n /*@doc Define a cor da fonte da key do componente.*/\n --ez-card-item__key--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte do label do detalhe do componente.*/\n --ez-card-item__detail-label--color: var(--text--secondary, #A2ABB9);\n\n /*@doc Define o espaçamento inferior dos detalhes do componente.*/\n --ez-card-item__detail--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define o espaçamento inferior do title do componente.*/\n --ez-card-item__title--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define a cor do highlight / marcação nos textos do componente.*/\n --ez-card-item__highlight--color: var(--color--primary-300, #E2F4EF);\n\n width: 100%;\n display: flex;\n cursor: pointer;\n}\n\n.card-item {\n display: flex;\n flex-direction: column;\n width: 100%;\n cursor: pointer;\n padding: 12px;\n z-index: 0;\n position: relative;\n container-type: inline-size;\n container-name: box;\n white-space: pre-line;\n}\n\n.card-item:hover {\n background: #F0F3F7;\n border-radius: 12px;\n}\n\n.card-item__title {\n display: flex;\n align-items: center;\n line-height: 18px;\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight-large);\n color: var(--ez-card-item--color);\n padding-bottom: var(--ez-card-item__title--padding-bottom);\n gap: var(--space--small, 6px);\n}\n\n.card-item__key {\n /*public*/\n color: var(--ez-card-item__key--color);\n}\n\n.card-item__details {\n display: flex;\n cursor: pointer;\n justify-content: space-between;\n gap: var(--space--small, 6px);\n}\n\n.card-item__details-left {\n white-space: pre-line;\n cursor: pointer;\n width: 50%;\n}\n\n.card-item__details-right {\n white-space: pre-line;\n width: 50%;\n cursor: pointer;\n}\n\n.card-item__detail:not(:last-child) {\n cursor: pointer;\n white-space: pre-line;\n\n /*public*/\n padding-bottom: var(--ez-card-item__detail--padding-bottom);\n}\n\n.card-item__detail-label {\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight);\n color: var(--ez-card-item__detail-label--color);\n}\n\n.card-item__detail-value {\n cursor: pointer;\n line-break: anywhere;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight);\n color: var(--ez-card-item--color);\n}\n\n.card-item__highlight {\n position: relative;\n border-radius: 8px;\n z-index: -1;\n\n /*public*/\n background-color: var(--ez-card-item__highlight--color);\n outline: 2px solid var(--ez-card-item__highlight--color);\n box-shadow: -4px 0px 0px 0px var(--ez-card-item__highlight--color), \n 4px 0px 0px 0px var(--ez-card-item__highlight--color);\n}\n\n@container box (max-width: 550px) {\n .card-item__details {\n flex-direction: column;\n }\n\n .card-item__details-left {\n width: 100%;\n }\n \n .card-item__details-right {\n width: 100%;\n }\n}\n\n@container box (max-width: 200px) {\n .card-item__title {\n font-size: 10px;\n }\n\n .card-item__detail-label {\n font-size: 10px;\n }\n\n .card-item__detail-value {\n font-size: 10px;\n }\n\n}";
|
|
1985
1990
|
|
|
1986
1991
|
const EzCardItem$1 = class extends HTMLElement$1 {
|
|
1987
1992
|
constructor() {
|
|
@@ -2348,10 +2353,6 @@ const EzCollapsibleBox$1 = class extends HTMLElement$1 {
|
|
|
2348
2353
|
static get style() { return ezCollapsibleBoxCss; }
|
|
2349
2354
|
};
|
|
2350
2355
|
|
|
2351
|
-
const REQUIRED_INFO = " (obrigatório) *";
|
|
2352
|
-
const DISTINCT_FILTER_NAME_PREFIX = 'FILTRO_COLUNA_';
|
|
2353
|
-
const EZ_GRID_LOADING_SOURCE = "EZ_GRID_LOADING_SOURCE";
|
|
2354
|
-
|
|
2355
2356
|
const ezComboBoxCss = ":host{--ez-combo-box--height:42px;--ez-combo-box--width:100%;--ez-combo-box__icon--width:48px;--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--border-radius-small:var(--border--radius-small, 6px);--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__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__input--error--border-color:#CC2936;--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);--ez-combo-box__label--color:var(--title--primary, #2B3A54);--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__list-min-width:64px;--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);display:flex;flex-wrap:wrap;position:relative;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)}.list-container{min-width:var(--ez-combo-box__list-min-width);position:relative;width:100%}.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, 0px 0px 16px 0px #000);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)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-combo-box__btn--color)}.btn:disabled{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:disabled:hover{cursor:unset;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}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
|
2356
2357
|
|
|
2357
2358
|
const EzComboBox$1 = class extends HTMLElement$1 {
|
|
@@ -2365,7 +2366,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2365
2366
|
this._maxWidthValue = 0;
|
|
2366
2367
|
this._tabPressed = false;
|
|
2367
2368
|
this._textEmptyList = "Nenhum resultado encontrado";
|
|
2368
|
-
this._textEmptySearch = "Nenhum resultado de {0} encontrado";
|
|
2369
2369
|
this._lookupMode = false;
|
|
2370
2370
|
this._preSelection = undefined;
|
|
2371
2371
|
this._visibleOptions = undefined;
|
|
@@ -2378,7 +2378,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2378
2378
|
this.enabled = true;
|
|
2379
2379
|
this.options = undefined;
|
|
2380
2380
|
this.errorMessage = undefined;
|
|
2381
|
-
this.searchMode = undefined;
|
|
2382
2381
|
this.showSelectedValue = false;
|
|
2383
2382
|
this.showOptionValue = false;
|
|
2384
2383
|
this.suppressSearch = false;
|
|
@@ -2402,7 +2401,7 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2402
2401
|
observeValue(newValue, oldValue) {
|
|
2403
2402
|
if (this._textInput && newValue != oldValue) {
|
|
2404
2403
|
try {
|
|
2405
|
-
if (
|
|
2404
|
+
if (typeof newValue === "string") {
|
|
2406
2405
|
this.setInputValue();
|
|
2407
2406
|
return;
|
|
2408
2407
|
}
|
|
@@ -2429,7 +2428,7 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2429
2428
|
observeOptions(newOptions, oldOptions) {
|
|
2430
2429
|
if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
|
|
2431
2430
|
return;
|
|
2432
|
-
this.loadOptions(SearchMode.PRELOAD);
|
|
2431
|
+
this.loadOptions(SearchMode$1.PRELOAD);
|
|
2433
2432
|
}
|
|
2434
2433
|
/*
|
|
2435
2434
|
* Retorna uma promise com o valor da opção selecionada,
|
|
@@ -2565,7 +2564,7 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2565
2564
|
}
|
|
2566
2565
|
updateVisibleOptions() {
|
|
2567
2566
|
let opts = this._source || [];
|
|
2568
|
-
if (
|
|
2567
|
+
if (this._criteria) {
|
|
2569
2568
|
const upperCriteria = this._criteria.toUpperCase();
|
|
2570
2569
|
opts = opts.filter(opt => opt.label.toLocaleUpperCase().indexOf(upperCriteria) > -1);
|
|
2571
2570
|
}
|
|
@@ -2640,7 +2639,7 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2640
2639
|
return this._floatingID !== undefined && FloatingManager.isFloating(this._floatingID);
|
|
2641
2640
|
}
|
|
2642
2641
|
nextOption() {
|
|
2643
|
-
if (
|
|
2642
|
+
if (!this.isOptionsVisible()) {
|
|
2644
2643
|
return;
|
|
2645
2644
|
}
|
|
2646
2645
|
this.showOptions();
|
|
@@ -2663,9 +2662,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2663
2662
|
this.selectOption(this._visibleOptions[this._preSelection]);
|
|
2664
2663
|
this._preSelection = undefined;
|
|
2665
2664
|
}
|
|
2666
|
-
else {
|
|
2667
|
-
this.controlListWithOnlyOne();
|
|
2668
|
-
}
|
|
2669
2665
|
}
|
|
2670
2666
|
updateSource(source) {
|
|
2671
2667
|
this._startLoading = false;
|
|
@@ -2684,7 +2680,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2684
2680
|
this.updateVisibleOptions();
|
|
2685
2681
|
if (this._tabPressed) {
|
|
2686
2682
|
this._tabPressed = false;
|
|
2687
|
-
this.controlEmptySearch();
|
|
2688
2683
|
}
|
|
2689
2684
|
}
|
|
2690
2685
|
else {
|
|
@@ -2692,10 +2687,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2692
2687
|
}
|
|
2693
2688
|
}
|
|
2694
2689
|
}
|
|
2695
|
-
clearSource() {
|
|
2696
|
-
this._source = [];
|
|
2697
|
-
this.updateVisibleOptions();
|
|
2698
|
-
}
|
|
2699
2690
|
selectOption(newOption) {
|
|
2700
2691
|
var _a, _b;
|
|
2701
2692
|
const currentValue = this.getSelectedOption(this.value);
|
|
@@ -2707,10 +2698,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2707
2698
|
else {
|
|
2708
2699
|
this.resetOptions();
|
|
2709
2700
|
}
|
|
2710
|
-
if (this.searchMode) {
|
|
2711
|
-
this._visibleOptions = [];
|
|
2712
|
-
this.clearSource();
|
|
2713
|
-
}
|
|
2714
2701
|
}
|
|
2715
2702
|
loadOptions(mode, argument = "") {
|
|
2716
2703
|
this._criteria = argument;
|
|
@@ -2729,7 +2716,7 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2729
2716
|
}
|
|
2730
2717
|
else {
|
|
2731
2718
|
window.setTimeout(() => {
|
|
2732
|
-
this.setInputValue();
|
|
2719
|
+
this.setInputValue(false);
|
|
2733
2720
|
}, this._deboucingTime);
|
|
2734
2721
|
}
|
|
2735
2722
|
this.resetOptions();
|
|
@@ -2746,93 +2733,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2746
2733
|
clearSearch() {
|
|
2747
2734
|
this.value = null;
|
|
2748
2735
|
}
|
|
2749
|
-
controlListWithOnlyOne() {
|
|
2750
|
-
var _a;
|
|
2751
|
-
if (this.searchMode) {
|
|
2752
|
-
const source = (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.filter((opt) => opt.label !== "" && opt.value != undefined);
|
|
2753
|
-
if ((source === null || source === void 0 ? void 0 : source.length) === 1) {
|
|
2754
|
-
this.selectOption(source[0]);
|
|
2755
|
-
}
|
|
2756
|
-
}
|
|
2757
|
-
}
|
|
2758
|
-
controlEmptySearch() {
|
|
2759
|
-
var _a;
|
|
2760
|
-
if (this.searchMode) {
|
|
2761
|
-
if (!((_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
2762
|
-
this.clearSearch();
|
|
2763
|
-
ApplicationUtils.info(this._textEmptyList);
|
|
2764
|
-
}
|
|
2765
|
-
else {
|
|
2766
|
-
this.controlListWithOnlyOne();
|
|
2767
|
-
}
|
|
2768
|
-
}
|
|
2769
|
-
}
|
|
2770
|
-
validateDescriptionValue() {
|
|
2771
|
-
if (!this.searchMode || StringUtils$1.isEmpty(this.value)) {
|
|
2772
|
-
return;
|
|
2773
|
-
}
|
|
2774
|
-
let value = this.value;
|
|
2775
|
-
if (typeof value === "object") {
|
|
2776
|
-
return;
|
|
2777
|
-
}
|
|
2778
|
-
if (StringUtils$1.isEmpty(value)) {
|
|
2779
|
-
return;
|
|
2780
|
-
}
|
|
2781
|
-
this.loadDescriptionValue(value);
|
|
2782
|
-
}
|
|
2783
|
-
async loadDescriptionValue(argument) {
|
|
2784
|
-
var _a, _b;
|
|
2785
|
-
if (argument == undefined) {
|
|
2786
|
-
return;
|
|
2787
|
-
}
|
|
2788
|
-
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
2789
|
-
this.loadOptionValue(argument);
|
|
2790
|
-
return;
|
|
2791
|
-
}
|
|
2792
|
-
const searchArgument = {
|
|
2793
|
-
mode: SearchMode.PREDICTIVE,
|
|
2794
|
-
argument
|
|
2795
|
-
};
|
|
2796
|
-
const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument));
|
|
2797
|
-
if (source == undefined) {
|
|
2798
|
-
return;
|
|
2799
|
-
}
|
|
2800
|
-
if (source instanceof Promise) {
|
|
2801
|
-
source.then((result) => {
|
|
2802
|
-
this.setDescriptionValue(result);
|
|
2803
|
-
});
|
|
2804
|
-
}
|
|
2805
|
-
else {
|
|
2806
|
-
this.setDescriptionValue(source);
|
|
2807
|
-
}
|
|
2808
|
-
}
|
|
2809
|
-
setDescriptionValue(source) {
|
|
2810
|
-
const value = (source === null || source === void 0 ? void 0 : source[0]) || source;
|
|
2811
|
-
if (value == undefined || !Object.keys(value).length) {
|
|
2812
|
-
this.showNoResultMessage();
|
|
2813
|
-
return;
|
|
2814
|
-
}
|
|
2815
|
-
this._lookupMode = true;
|
|
2816
|
-
this.value = value;
|
|
2817
|
-
}
|
|
2818
|
-
loadOptionValue(argument) {
|
|
2819
|
-
var _a;
|
|
2820
|
-
const source = (_a = this.options) === null || _a === void 0 ? void 0 : _a.find((opt) => opt.value === argument);
|
|
2821
|
-
if (source != undefined) {
|
|
2822
|
-
this.selectOption(source);
|
|
2823
|
-
}
|
|
2824
|
-
else {
|
|
2825
|
-
this.showNoResultMessage();
|
|
2826
|
-
}
|
|
2827
|
-
}
|
|
2828
|
-
async showNoResultMessage() {
|
|
2829
|
-
this.clearSearch();
|
|
2830
|
-
ApplicationUtils.info(this._textEmptySearch.replace("{0}", this.getFieldLabel()));
|
|
2831
|
-
}
|
|
2832
|
-
getFieldLabel() {
|
|
2833
|
-
var _a;
|
|
2834
|
-
return (_a = this.label) === null || _a === void 0 ? void 0 : _a.replace(REQUIRED_INFO, "").toUpperCase();
|
|
2835
|
-
}
|
|
2836
2736
|
resetOptions() {
|
|
2837
2737
|
this.hideOptions();
|
|
2838
2738
|
this._criteria = undefined;
|
|
@@ -2858,12 +2758,7 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2858
2758
|
});
|
|
2859
2759
|
}
|
|
2860
2760
|
}
|
|
2861
|
-
|
|
2862
|
-
this.updateSource([]);
|
|
2863
|
-
}
|
|
2864
|
-
else {
|
|
2865
|
-
this.loadOptions(SearchMode.PRELOAD);
|
|
2866
|
-
}
|
|
2761
|
+
this.loadOptions(SearchMode$1.PRELOAD);
|
|
2867
2762
|
}
|
|
2868
2763
|
componentDidRender() {
|
|
2869
2764
|
var _a;
|
|
@@ -2873,7 +2768,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2873
2768
|
(_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
|
|
2874
2769
|
ElementIDUtils.addIDInfoIfNotExists(elem, "itemComboBox");
|
|
2875
2770
|
});
|
|
2876
|
-
this.validateDescriptionValue();
|
|
2877
2771
|
}
|
|
2878
2772
|
componentDidLoad() {
|
|
2879
2773
|
CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
|
|
@@ -2893,13 +2787,7 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2893
2787
|
// Event handlers
|
|
2894
2788
|
//---------------------------------------------
|
|
2895
2789
|
handlerIconClick() {
|
|
2896
|
-
this.
|
|
2897
|
-
}
|
|
2898
|
-
buildNumberArgument(argument) {
|
|
2899
|
-
if (this.isTextSearch) {
|
|
2900
|
-
return NaN;
|
|
2901
|
-
}
|
|
2902
|
-
return Number(argument || undefined);
|
|
2790
|
+
this.showOptions();
|
|
2903
2791
|
}
|
|
2904
2792
|
onTextInputChangeHandler(event) {
|
|
2905
2793
|
var _a;
|
|
@@ -2916,36 +2804,12 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2916
2804
|
}
|
|
2917
2805
|
this._criteria = argument;
|
|
2918
2806
|
if (argument) {
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
this.clearSource();
|
|
2922
|
-
const enoughChars = argument.length >= this.limitCharsToSearch;
|
|
2923
|
-
const argumentNumber = this.buildNumberArgument(argument);
|
|
2924
|
-
if (enoughChars || !isNaN(argumentNumber)) {
|
|
2925
|
-
this._showLoading = true;
|
|
2926
|
-
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
2927
|
-
this.loadOptions(SearchMode.PREDICTIVE, isNaN(argumentNumber) ? argument : argumentNumber.toString());
|
|
2928
|
-
}, this._deboucingTime);
|
|
2929
|
-
this.showOptions();
|
|
2930
|
-
}
|
|
2931
|
-
else {
|
|
2932
|
-
this.hideOptions();
|
|
2933
|
-
}
|
|
2934
|
-
}
|
|
2935
|
-
else {
|
|
2936
|
-
this.updateVisibleOptions();
|
|
2937
|
-
this.showOptions();
|
|
2938
|
-
}
|
|
2807
|
+
this.updateVisibleOptions();
|
|
2808
|
+
this.showOptions();
|
|
2939
2809
|
}
|
|
2940
2810
|
else {
|
|
2941
2811
|
this.hideOptions();
|
|
2942
|
-
|
|
2943
|
-
this._showLoading = false;
|
|
2944
|
-
this.clearSource();
|
|
2945
|
-
}
|
|
2946
|
-
else {
|
|
2947
|
-
this.updateVisibleOptions();
|
|
2948
|
-
}
|
|
2812
|
+
this.updateVisibleOptions();
|
|
2949
2813
|
}
|
|
2950
2814
|
}
|
|
2951
2815
|
clearDeboucingTimeout() {
|
|
@@ -2955,15 +2819,13 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2955
2819
|
}
|
|
2956
2820
|
}
|
|
2957
2821
|
onTextInputClickHandler() {
|
|
2958
|
-
|
|
2959
|
-
this.showOptions();
|
|
2960
|
-
}
|
|
2822
|
+
this.showOptions();
|
|
2961
2823
|
}
|
|
2962
2824
|
keyDownHandler(event) {
|
|
2963
2825
|
this._tabPressed = false;
|
|
2964
2826
|
if (event.ctrlKey) {
|
|
2965
2827
|
if (event.key === "f" || event.key === "F") {
|
|
2966
|
-
this.loadOptions(SearchMode.ADVANCED);
|
|
2828
|
+
this.loadOptions(SearchMode$1.ADVANCED);
|
|
2967
2829
|
//ATENÇÃO: Ctrl + F tem ação específica nos browsers
|
|
2968
2830
|
//nesse caso, como vamos abrir o popup de busca avançada,
|
|
2969
2831
|
//não é interessante deixar o evento propagar;
|
|
@@ -2989,7 +2851,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2989
2851
|
break;
|
|
2990
2852
|
case "Tab":
|
|
2991
2853
|
this._tabPressed = true;
|
|
2992
|
-
this.controlListWithOnlyOne();
|
|
2993
2854
|
break;
|
|
2994
2855
|
}
|
|
2995
2856
|
//ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
|
|
@@ -3006,11 +2867,8 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
3006
2867
|
return !this._showLoading && this._visibleOptions.length > 0;
|
|
3007
2868
|
}
|
|
3008
2869
|
render() {
|
|
3009
|
-
var _a;
|
|
3010
2870
|
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
3011
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: 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:
|
|
3012
|
-
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
3013
|
-
: undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
|
|
2871
|
+
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: 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("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
|
|
3014
2872
|
&& this._visibleOptions.length === 0
|
|
3015
2873
|
&& h("div", { class: "message" }, h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
|
|
3016
2874
|
&& h("div", { class: "message" }, h("div", { class: "message__loading" })), this.showOptionValue
|
|
@@ -3025,12 +2883,12 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
3025
2883
|
}; }
|
|
3026
2884
|
static get style() { return ezComboBoxCss; }
|
|
3027
2885
|
};
|
|
3028
|
-
var SearchMode;
|
|
2886
|
+
var SearchMode$1;
|
|
3029
2887
|
(function (SearchMode) {
|
|
3030
2888
|
SearchMode["ADVANCED"] = "ADVANCED";
|
|
3031
2889
|
SearchMode["PRELOAD"] = "PRELOAD";
|
|
3032
2890
|
SearchMode["PREDICTIVE"] = "PREDICTIVE";
|
|
3033
|
-
})(SearchMode || (SearchMode = {}));
|
|
2891
|
+
})(SearchMode$1 || (SearchMode$1 = {}));
|
|
3034
2892
|
|
|
3035
2893
|
const ezDateInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:unset}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}";
|
|
3036
2894
|
|
|
@@ -3139,6 +2997,9 @@ const EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
3139
2997
|
this._calendar.hide();
|
|
3140
2998
|
}
|
|
3141
2999
|
handleBlur() {
|
|
3000
|
+
if (!this._changePending) {
|
|
3001
|
+
return;
|
|
3002
|
+
}
|
|
3142
3003
|
try {
|
|
3143
3004
|
const strValue = this._textInput.value;
|
|
3144
3005
|
const newValue = DateUtils$1.strToDate(strValue);
|
|
@@ -3372,6 +3233,9 @@ const EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
3372
3233
|
}
|
|
3373
3234
|
handleBlur() {
|
|
3374
3235
|
var _a, _b;
|
|
3236
|
+
if (!this._changePending) {
|
|
3237
|
+
return;
|
|
3238
|
+
}
|
|
3375
3239
|
try {
|
|
3376
3240
|
const strValue = ((_b = (_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.trim()) || "";
|
|
3377
3241
|
const newValue = this.getParsedDateTime();
|
|
@@ -4834,6 +4698,10 @@ const EzForm$1 = class extends HTMLElement$1 {
|
|
|
4834
4698
|
static get style() { return ezFormCss; }
|
|
4835
4699
|
};
|
|
4836
4700
|
|
|
4701
|
+
const REQUIRED_INFO = " (obrigatório) *";
|
|
4702
|
+
const DISTINCT_FILTER_NAME_PREFIX = 'FILTRO_COLUNA_';
|
|
4703
|
+
const EZ_GRID_LOADING_SOURCE = "EZ_GRID_LOADING_SOURCE";
|
|
4704
|
+
|
|
4837
4705
|
const buildSwitch$1 = (field) => {
|
|
4838
4706
|
return buildField(field.name, field.label, field.readOnly, field.contextName, true);
|
|
4839
4707
|
};
|
|
@@ -4875,9 +4743,11 @@ const buildDateTime$1 = ({ name, label, readOnly, contextName, canShowError }) =
|
|
|
4875
4743
|
const buildFile = ({ name, label, readOnly, contextName, props }) => {
|
|
4876
4744
|
const uploadProps = ObjectUtils$1.removeEmptyValues({
|
|
4877
4745
|
subTitle: props.subTitle,
|
|
4878
|
-
requestHeaders: props.STORAGESTRATEGY
|
|
4746
|
+
requestHeaders: Object.assign(Object.assign({}, (props.STORAGESTRATEGY && {
|
|
4879
4747
|
STORAGESTRATEGY: props.STORAGESTRATEGY
|
|
4880
|
-
}
|
|
4748
|
+
})), (props.INTERNAL_FILENAME && {
|
|
4749
|
+
INTERNAL_FILENAME: props.INTERNAL_FILENAME
|
|
4750
|
+
})),
|
|
4881
4751
|
});
|
|
4882
4752
|
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
4883
4753
|
h("ez-upload", Object.assign({ enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name }, uploadProps))));
|
|
@@ -123842,6 +123712,14 @@ var AllEnterpriseModules = [
|
|
|
123842
123712
|
ModuleRegistry.registerModules(AllEnterpriseModules);
|
|
123843
123713
|
|
|
123844
123714
|
class DataSource {
|
|
123715
|
+
updateLoadedRecords(action) {
|
|
123716
|
+
const records = action.payload;
|
|
123717
|
+
if ((records === null || records === void 0 ? void 0 : records.length) > 0) {
|
|
123718
|
+
records.forEach(record => {
|
|
123719
|
+
this._controller.changeValues(record, [record.__record__id__]);
|
|
123720
|
+
});
|
|
123721
|
+
}
|
|
123722
|
+
}
|
|
123845
123723
|
isSilentChange(action) {
|
|
123846
123724
|
//TODO: Provisorio p/ não atualizar a grade quando a alteração for apenas de campos transisntes
|
|
123847
123725
|
var _a, _b;
|
|
@@ -123864,6 +123742,9 @@ class DataSource {
|
|
|
123864
123742
|
break;
|
|
123865
123743
|
case Action.LOADING_DATA:
|
|
123866
123744
|
this._waitingForLoad = true;
|
|
123745
|
+
if (EZ_GRID_LOADING_SOURCE !== action.payload.source) {
|
|
123746
|
+
this._controller.clearFilter();
|
|
123747
|
+
}
|
|
123867
123748
|
this._controller.refresh();
|
|
123868
123749
|
break;
|
|
123869
123750
|
case Action.DATA_LOADED:
|
|
@@ -123894,6 +123775,9 @@ class DataSource {
|
|
|
123894
123775
|
case Action.PREVIOUS_SELECTED:
|
|
123895
123776
|
this.updateSelection();
|
|
123896
123777
|
break;
|
|
123778
|
+
case Action.RECORD_LOADED:
|
|
123779
|
+
this.updateLoadedRecords(action);
|
|
123780
|
+
break;
|
|
123897
123781
|
}
|
|
123898
123782
|
};
|
|
123899
123783
|
this._dataUnit = dataUnit;
|
|
@@ -123963,15 +123847,6 @@ class DataSource {
|
|
|
123963
123847
|
}
|
|
123964
123848
|
}
|
|
123965
123849
|
|
|
123966
|
-
function calcFilterColumnLeftPosition(leftReference) {
|
|
123967
|
-
const FIX_MARGIN = 60;
|
|
123968
|
-
const FILTER_COLUMN_WIDTH = 330;
|
|
123969
|
-
const screenWidth = window.innerWidth;
|
|
123970
|
-
const maxLeft = screenWidth - (FILTER_COLUMN_WIDTH + FIX_MARGIN);
|
|
123971
|
-
const leftInt = leftReference - FIX_MARGIN;
|
|
123972
|
-
return leftInt > maxLeft ? maxLeft : leftInt;
|
|
123973
|
-
}
|
|
123974
|
-
|
|
123975
123850
|
class EzGridCustomHeader {
|
|
123976
123851
|
init(agParams) {
|
|
123977
123852
|
var _a;
|
|
@@ -124008,8 +123883,7 @@ class EzGridCustomHeader {
|
|
|
124008
123883
|
}
|
|
124009
123884
|
onClickFilter() {
|
|
124010
123885
|
var _a;
|
|
124011
|
-
|
|
124012
|
-
this.params.showColumnFilter(`${calcFilterColumnLeftPosition(iconLeft)}px`, true);
|
|
123886
|
+
this.params.showColumnFilter((_a = this.filterButton) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left);
|
|
124013
123887
|
}
|
|
124014
123888
|
configSortIcon() {
|
|
124015
123889
|
this.sortDownIcon.style.display = this.params.column.isSortDescending() ? 'flex' : 'none';
|
|
@@ -124668,6 +124542,10 @@ class AgGridController {
|
|
|
124668
124542
|
this._gridOptions.api.refreshHeader();
|
|
124669
124543
|
this._dataUnit.loadData(undefined, undefined, undefined, EZ_GRID_LOADING_SOURCE);
|
|
124670
124544
|
}
|
|
124545
|
+
clearFilter() {
|
|
124546
|
+
this._filteredColumns.clear();
|
|
124547
|
+
this._gridOptions.api.refreshHeader();
|
|
124548
|
+
}
|
|
124671
124549
|
showFilterColumn(configs) {
|
|
124672
124550
|
var _a;
|
|
124673
124551
|
(_a = this._filterColumn) === null || _a === void 0 ? void 0 : _a.show(configs);
|
|
@@ -124686,7 +124564,7 @@ class AgGridController {
|
|
|
124686
124564
|
this._idAttribName = '__record__id__';
|
|
124687
124565
|
this._gridConfig = [];
|
|
124688
124566
|
this._filteredColumns = new Map();
|
|
124689
|
-
this._filterColumnleftPosition =
|
|
124567
|
+
this._filterColumnleftPosition = 0;
|
|
124690
124568
|
this._enterprise = enterprise;
|
|
124691
124569
|
}
|
|
124692
124570
|
getGridConfig() {
|
|
@@ -124812,11 +124690,9 @@ class AgGridController {
|
|
|
124812
124690
|
this._gridOptions.api.setHeaderHeight(this.getHeaderRowHeight());
|
|
124813
124691
|
}
|
|
124814
124692
|
}
|
|
124815
|
-
setFilterColumnLeftPosition(
|
|
124816
|
-
if (
|
|
124817
|
-
|
|
124818
|
-
const leftString = ePopup.style.left.replace('px', '');
|
|
124819
|
-
this._filterColumnleftPosition = `${calcFilterColumnLeftPosition(parseInt(leftString))}px`;
|
|
124693
|
+
setFilterColumnLeftPosition({ type, ePopup }) {
|
|
124694
|
+
if (type === 'columnMenu') {
|
|
124695
|
+
this._filterColumnleftPosition = ePopup.getBoundingClientRect().left;
|
|
124820
124696
|
return;
|
|
124821
124697
|
}
|
|
124822
124698
|
}
|
|
@@ -125256,7 +125132,7 @@ class AgGridController {
|
|
|
125256
125132
|
tooltip: tooltip,
|
|
125257
125133
|
isSortable: propSortable,
|
|
125258
125134
|
hasFilter: () => this.hasFilterColumn(source.name),
|
|
125259
|
-
showColumnFilter: (leftPosition
|
|
125135
|
+
showColumnFilter: (leftPosition) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name), fromIcon: true }),
|
|
125260
125136
|
},
|
|
125261
125137
|
valueFormatter: params => {
|
|
125262
125138
|
if (params.value == undefined) {
|
|
@@ -125641,13 +125517,13 @@ class InMemoryFilterColumnDataSource {
|
|
|
125641
125517
|
}
|
|
125642
125518
|
}
|
|
125643
125519
|
|
|
125644
|
-
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100
|
|
125520
|
+
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;min-height:300px;--ez-grid__header--background-color:var(--background--xlight, #FFF);--ez-grid__selection-counter--z-index:var(--visible, 1);--ez-grid__container--shadow:0 0 16px 0 rgb(0 38 111 / 12%)}.grid-header.sc-ez-grid{display:grid;justify-content:space-between;align-items:center;grid-row-start:1;grid-template-columns:1fr;background-color:var(--ez-grid__header--background-color, #FFF)}.grid__container.sc-ez-grid{padding-top:15px;margin-top:-12px;box-shadow:var(--ez-grid__container--shadow);background-color:var(--ez-grid__header--background-color)}.grid-header__popover.sc-ez-grid{position:relative;top:var(--space--sm, 16px)}.grid-header__container.sc-ez-grid{display:flex;align-items:center}.grid-header__position.sc-ez-grid{display:flex;align-items:center;justify-content:space-between}.grid__selection-counter.sc-ez-grid{position:fixed;white-space:nowrap;transform:translate(-50%, 0px);left:50%;opacity:0;bottom:-100%;transition:opacity 0.1s, bottom 0.5s}.grid__selection-counter--opened.sc-ez-grid{opacity:1;bottom:0px}.grid__btn-close.sc-ez-grid{display:flex;align-items:center;justify-content:center;padding:0;outline:none;width:20px;height:20px;border:none;background-color:unset;cursor:pointer}.grid__btn-clear.sc-ez-grid{--ez-button--link-color:var(--color--alert-warning-900, #8C6B00);--ez-button--link--hover-color:var(--color--alert-warning-900, #8C6B00)}[no-header].sc-ez-grid-h .grid-header.sc-ez-grid{height:0;padding:0}";
|
|
125645
125521
|
|
|
125646
125522
|
const windowInstace$1 = window;
|
|
125647
125523
|
const matches = (text, filter) => {
|
|
125648
|
-
const normalizedText = StringUtils$1.replaceAccentuatedCharsLower(text.toLocaleLowerCase());
|
|
125524
|
+
const normalizedText = StringUtils$1.replaceAccentuatedCharsLower(text === null || text === void 0 ? void 0 : text.toLocaleLowerCase());
|
|
125649
125525
|
const normalizedFilter = StringUtils$1.replaceAccentuatedCharsLower(filter.toLocaleLowerCase());
|
|
125650
|
-
return normalizedText.includes(normalizedFilter);
|
|
125526
|
+
return normalizedText === null || normalizedText === void 0 ? void 0 : normalizedText.includes(normalizedFilter);
|
|
125651
125527
|
};
|
|
125652
125528
|
const EzGrid$1 = class extends HTMLElement$1 {
|
|
125653
125529
|
constructor() {
|
|
@@ -126081,7 +125957,7 @@ const EzGuideNavigator$1 = class extends HTMLElement$1 {
|
|
|
126081
125957
|
static get style() { return ezGuideNavigatorCss; }
|
|
126082
125958
|
};
|
|
126083
125959
|
|
|
126084
|
-
const ezIconCss = ":host{display:flex;overflow:hidden;position:relative;--ez-icon--color:var(--icon--color, #ffffff)}svg{display:flex;justify-content:center;align-items:center;fill:var(--ez-icon--color)}.x-small{width:12px;height:12px}.small{width:16px;height:16px}.medium{width:20px;height:20px}.large{width:24px;height:24px}.x-large{width:30px;height:30px}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{color:var(--ez-icon--color)}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{font-family:'ez-icons' !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ez-icon-2chevron-down:before{content:\"\\ea01\"}.ez-icon-2chevron-up:before{content:\"\\ea02\"}.ez-icon-acao:before{content:\"\\ea03\"}.ez-icon-account-outline:before{content:\"\\ea04\"}.ez-icon-account:before{content:\"\\ea05\"}.ez-icon-alert-circle-inverted:before{content:\"\\ea06\"}.ez-icon-alert-circle:before{content:\"\\ea07\"}.ez-icon-alert-mail:before{content:\"\\ea08\"}.ez-icon-alert-popup:before{content:\"\\ea09\"}.ez-icon-anexo:before{content:\"\\ea0a\"}.ez-icon-
|
|
125960
|
+
const ezIconCss = ":host{display:flex;overflow:hidden;position:relative;--ez-icon--color:var(--icon--color, #ffffff)}svg{display:flex;justify-content:center;align-items:center;fill:var(--ez-icon--color)}.x-small{width:12px;height:12px}.small{width:16px;height:16px}.medium{width:20px;height:20px}.large{width:24px;height:24px}.x-large{width:30px;height:30px}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{color:var(--ez-icon--color)}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{font-family:'ez-icons' !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ez-icon-2chevron-down:before{content:\"\\ea01\"}.ez-icon-2chevron-up:before{content:\"\\ea02\"}.ez-icon-acao:before{content:\"\\ea03\"}.ez-icon-account-outline:before{content:\"\\ea04\"}.ez-icon-account:before{content:\"\\ea05\"}.ez-icon-alert-circle-inverted:before{content:\"\\ea06\"}.ez-icon-alert-circle:before{content:\"\\ea07\"}.ez-icon-alert-mail:before{content:\"\\ea08\"}.ez-icon-alert-popup:before{content:\"\\ea09\"}.ez-icon-anexo:before{content:\"\\ea0a\"}.ez-icon-antecipacao:before{content:\"\\ea0b\"}.ez-icon-apps:before{content:\"\\ea0c\"}.ez-icon-arrow-forward:before{content:\"\\ea0d\"}.ez-icon-arrow-upward:before{content:\"\\ea0e\"}.ez-icon-arrow_back:before{content:\"\\ea0f\"}.ez-icon-arrow_downward:before{content:\"\\ea10\"}.ez-icon-baixa:before{content:\"\\ea11\"}.ez-icon-balance:before{content:\"\\ea12\"}.ez-icon-bell-inverted:before{content:\"\\ea13\"}.ez-icon-bell:before{content:\"\\ea14\"}.ez-icon-boleto:before{content:\"\\ea15\"}.ez-icon-boolean:before{content:\"\\ea16\"}.ez-icon-business-center:before{content:\"\\ea17\"}.ez-icon-calendar-clock:before{content:\"\\ea18\"}.ez-icon-calendar:before{content:\"\\ea19\"}.ez-icon-cash-remove:before{content:\"\\ea1a\"}.ez-icon-check-circle-inverted:before{content:\"\\ea1b\"}.ez-icon-check-circle:before{content:\"\\ea1c\"}.ez-icon-check:before{content:\"\\ea1d\"}.ez-icon-chevron-down:before{content:\"\\ea1e\"}.ez-icon-chevron-left:before{content:\"\\ea1f\"}.ez-icon-chevron-right:before{content:\"\\ea20\"}.ez-icon-chevron-up:before{content:\"\\ea21\"}.ez-icon-circle--medium:before{content:\"\\ea22\"}.ez-icon-circle:before{content:\"\\ea23\"}.ez-icon-cleaning:before{content:\"\\ea24\"}.ez-icon-clipboard:before{content:\"\\ea25\"}.ez-icon-close:before{content:\"\\ea26\"}.ez-icon-cobrar:before{content:\"\\ea27\"}.ez-icon-code:before{content:\"\\ea28\"}.ez-icon-configuration:before{content:\"\\ea29\"}.ez-icon-content-cut:before{content:\"\\ea2a\"}.ez-icon-copy:before{content:\"\\ea2b\"}.ez-icon-credit_card:before{content:\"\\ea2c\"}.ez-icon-crop:before{content:\"\\ea2d\"}.ez-icon-custom:before{content:\"\\ea2e\"}.ez-icon-delete-file:before{content:\"\\ea2f\"}.ez-icon-delete:before{content:\"\\ea30\"}.ez-icon-description:before{content:\"\\ea31\"}.ez-icon-dividir:before{content:\"\\ea32\"}.ez-icon-docx:before{content:\"\\ea33\"}.ez-icon-dot-notification:before{content:\"\\ea34\"}.ez-icon-dots-horizontal:before{content:\"\\ea35\"}.ez-icon-dots-vertical:before{content:\"\\ea36\"}.ez-icon-drag-indicator:before{content:\"\\ea37\"}.ez-icon-dual-chevron-down:before{content:\"\\ea38\"}.ez-icon-dual-chevron-left:before{content:\"\\ea39\"}.ez-icon-dual-chevron-right:before{content:\"\\ea3a\"}.ez-icon-dual-chevron-up:before{content:\"\\ea3b\"}.ez-icon-edit-file:before{content:\"\\ea3c\"}.ez-icon-edit-table:before{content:\"\\ea3d\"}.ez-icon-edit-time:before{content:\"\\ea3e\"}.ez-icon-edit-value:before{content:\"\\ea3f\"}.ez-icon-edit:before{content:\"\\ea40\"}.ez-icon-email:before{content:\"\\ea41\"}.ez-icon-estorno:before{content:\"\\ea42\"}.ez-icon-exe:before{content:\"\\ea43\"}.ez-icon-expand:before{content:\"\\ea44\"}.ez-icon-expandir_card:before{content:\"\\ea45\"}.ez-icon-extrato:before{content:\"\\ea46\"}.ez-icon-eye-off:before{content:\"\\ea47\"}.ez-icon-eye:before{content:\"\\ea48\"}.ez-icon-favorite:before{content:\"\\ea49\"}.ez-icon-figma:before{content:\"\\ea4a\"}.ez-icon-file-download:before{content:\"\\ea4b\"}.ez-icon-file-upload:before{content:\"\\ea4c\"}.ez-icon-filter:before{content:\"\\ea4d\"}.ez-icon-find-file:before{content:\"\\ea4e\"}.ez-icon-find-page:before{content:\"\\ea4f\"}.ez-icon-format-color-fill:before{content:\"\\ea50\"}.ez-icon-generic:before{content:\"\\ea51\"}.ez-icon-gif:before{content:\"\\ea52\"}.ez-icon-graph_bar:before{content:\"\\ea53\"}.ez-icon-handshake:before{content:\"\\ea54\"}.ez-icon-help-inverted:before{content:\"\\ea55\"}.ez-icon-help:before{content:\"\\ea56\"}.ez-icon-hide_menu:before{content:\"\\ea57\"}.ez-icon-home:before{content:\"\\ea58\"}.ez-icon-icons104:before{content:\"\\ea59\"}.ez-icon-language:before{content:\"\\ea5a\"}.ez-icon-launch:before{content:\"\\ea5b\"}.ez-icon-lightbulb:before{content:\"\\ea5c\"}.ez-icon-list:before{content:\"\\ea5d\"}.ez-icon-location:before{content:\"\\ea5e\"}.ez-icon-lock-outline:before{content:\"\\ea5f\"}.ez-icon-lock:before{content:\"\\ea60\"}.ez-icon-menu:before{content:\"\\ea61\"}.ez-icon-mid:before{content:\"\\ea62\"}.ez-icon-minus:before{content:\"\\ea63\"}.ez-icon-money-off:before{content:\"\\ea64\"}.ez-icon-money:before{content:\"\\ea65\"}.ez-icon-more:before{content:\"\\ea66\"}.ez-icon-mp3:before{content:\"\\ea67\"}.ez-icon-mp4:before{content:\"\\ea68\"}.ez-icon-multiple-files:before{content:\"\\ea69\"}.ez-icon-north-west:before{content:\"\\ea6a\"}.ez-icon-number:before{content:\"\\ea6b\"}.ez-icon-ordem-ascendente:before{content:\"\\ea6c\"}.ez-icon-ordem-descendente:before{content:\"\\ea6d\"}.ez-icon-parcelar:before{content:\"\\ea6e\"}.ez-icon-pause:before{content:\"\\ea6f\"}.ez-icon-payments:before{content:\"\\ea70\"}.ez-icon-pdf:before{content:\"\\ea71\"}.ez-icon-play:before{content:\"\\ea72\"}.ez-icon-plus:before{content:\"\\ea73\"}.ez-icon-png:before{content:\"\\ea74\"}.ez-icon-power:before{content:\"\\ea75\"}.ez-icon-pptx:before{content:\"\\ea76\"}.ez-icon-preview:before{content:\"\\ea77\"}.ez-icon-print:before{content:\"\\ea78\"}.ez-icon-push-pin:before{content:\"\\ea79\"}.ez-icon-rateio:before{content:\"\\ea7a\"}.ez-icon-receipt:before{content:\"\\ea7b\"}.ez-icon-recolher_card:before{content:\"\\ea7c\"}.ez-icon-restore:before{content:\"\\ea7d\"}.ez-icon-return:before{content:\"\\ea7e\"}.ez-icon-sankhya-place:before{content:\"\\ea7f\"}.ez-icon-save:before{content:\"\\ea80\"}.ez-icon-search:before{content:\"\\ea81\"}.ez-icon-settings-inverted:before{content:\"\\ea82\"}.ez-icon-settings:before{content:\"\\ea83\"}.ez-icon-share:before{content:\"\\ea84\"}.ez-icon-shield:before{content:\"\\ea85\"}.ez-icon-show_menu:before{content:\"\\ea86\"}.ez-icon-south-east:before{content:\"\\ea87\"}.ez-icon-sync:before{content:\"\\ea88\"}.ez-icon-table:before{content:\"\\ea89\"}.ez-icon-tag_code:before{content:\"\\ea8a\"}.ez-icon-text:before{content:\"\\ea8b\"}.ez-icon-timeline:before{content:\"\\ea8c\"}.ez-icon-timer-outline:before{content:\"\\ea8d\"}.ez-icon-trending-up:before{content:\"\\ea8e\"}.ez-icon-tune:before{content:\"\\ea8f\"}.ez-icon-txt:before{content:\"\\ea90\"}.ez-icon-un-pin:before{content:\"\\ea91\"}.ez-icon-unfold_less:before{content:\"\\ea92\"}.ez-icon-unfold_more:before{content:\"\\ea93\"}.ez-icon-user-circle:before{content:\"\\ea94\"}.ez-icon-warning-outline:before{content:\"\\ea95\"}.ez-icon-warning_triangle:before{content:\"\\ea96\"}.ez-icon-whatshot:before{content:\"\\ea97\"}.ez-icon-xlsx:before{content:\"\\ea98\"}.ez-icon-zip:before{content:\"\\ea99\"}.x-small--font{font-size:12px}.small--font{font-size:16px}.medium--font{font-size:20px}.large--font{font-size:24px}.x-large--font{font-size:30px}";
|
|
126085
125961
|
|
|
126086
125962
|
const EzIcon$1 = class extends HTMLElement$1 {
|
|
126087
125963
|
constructor() {
|
|
@@ -126966,16 +126842,8 @@ const EzMuiltiSelectionList = class extends HTMLElement$1 {
|
|
|
126966
126842
|
}
|
|
126967
126843
|
handleChangeSelectedItem(event) {
|
|
126968
126844
|
const { detail: itemCheckSelected } = event;
|
|
126969
|
-
|
|
126970
|
-
|
|
126971
|
-
return Object.assign(Object.assign({}, item), { check: itemCheckSelected.check });
|
|
126972
|
-
}
|
|
126973
|
-
return item;
|
|
126974
|
-
});
|
|
126975
|
-
this.clearInputs();
|
|
126976
|
-
}
|
|
126977
|
-
clearInputs() {
|
|
126978
|
-
this.filterInput ? (this.filterInput.value = '') : (this.searchInput.value = '');
|
|
126845
|
+
const itemSelected = this.filteredOptions.find(item => item.label === itemCheckSelected.label);
|
|
126846
|
+
itemSelected.check = itemCheckSelected.check;
|
|
126979
126847
|
}
|
|
126980
126848
|
buildViewList(hasDelete) {
|
|
126981
126849
|
return (h(Fragment, null, this.displayOptionToCheckAllItems && (h("ez-check", { ref: (element) => (this.checkInput = element), label: "Selecionar todos", class: "multi-selection__select-all", onEzChange: this.handleChangeSelectAllItems.bind(this) })), h("ez-list", { class: "multi-selection__list", dataSource: this.displayOptions, listMode: "check", hoverFeedback: true, onEzCheckChange: this.handleChangeSelectedItem.bind(this), itemSlotBuilder: hasDelete ? this.buildDeleteIconSlot.bind(this) : null })));
|
|
@@ -127125,6 +126993,9 @@ const EzNumberInput$1 = class extends HTMLElement$1 {
|
|
|
127125
126993
|
this.ezCancelWaitingChange.emit();
|
|
127126
126994
|
}
|
|
127127
126995
|
handleBlur() {
|
|
126996
|
+
if (!this._changePending) {
|
|
126997
|
+
return;
|
|
126998
|
+
}
|
|
127128
126999
|
try {
|
|
127129
127000
|
const parsedNumber = this.getParsedNumber();
|
|
127130
127001
|
if (parsedNumber !== undefined && isNaN(parsedNumber)) {
|
|
@@ -127335,7 +127206,7 @@ const EzPopover$1 = class extends HTMLElement$1 {
|
|
|
127335
127206
|
static get style() { return ezPopoverCss; }
|
|
127336
127207
|
};
|
|
127337
127208
|
|
|
127338
|
-
const ezPopupCss = ":host{display:flex;--ez-popup-z-index:var(--elevation--24, 24);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--large, 24px);--ez-popup__header--padding-bottom:var(--space--medium, 12px);--ez-popup__title--font-family:var(--font-pattern, \"Roboto\");--ez-popup__title--font-size:var(--title--extra-large, 24px);--ez-popup__title--color:var(--title--primary, #2b3a54);--ez-popup__title--font-weight:var(--text-weight--large, 600);--ez-popup__btn__close--icon-color:var(--title--primary, #2b3a54);--ez-popup__btn__close--icon:url('data:image/svg+xml;utf8,<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 8.2421753,6.9944578 13.743748,1.4930784 C 13.907781,1.3290628 14,1.1065946 14,0.87462511 14,0.64266712 13.907782,0.42019873 13.743748,0.25617155 13.579712,0.09215597 13.35727,6.48e-8 13.125266,6.48e-8 12.89338,6.48e-8 12.670821,0.09215634 12.506787,0.25617155 L 7.005215,5.7575508 1.5035972,0.25617155 C 1.3395631,0.09215597 1.1170968,6.48e-8 0.88511716,6.48e-8 0.65314917,6.48e-8 0.4306712,0.09215597 0.26663695,0.25617155 0.10260271,0.42019873 0.01045441,0.64266712 0.01045441,0.87462511 c 0,0.23196949 0.0921483,0.45443769 0.25618254,0.61845329 L 5.7682546,6.9944578 0.26663695,12.497027 c -0.0834745,0.08067 -0.15003245,0.1772 -0.19581514,0.283871 C 0.02505077,12.887561 9.831648e-4,13.002399 2.950369e-5,13.118395 -9.2415746e-4,13.234504 0.02125019,13.349689 0.06527245,13.457057 c 0.04401053,0.107479 0.10898307,0.205064 0.1911168,0.287137 0.0821454,0.08208 0.17979645,0.146888 0.28727561,0.190839 0.10747906,0.04395 0.22262954,0.06598 0.33872417,0.06493 0.116095,-10e-4 0.23082547,-0.0253 0.33747687,-0.07112 0.1066637,-0.04593 0.2031133,-0.112615 0.2837313,-0.196086 L 7.005215,8.2313646 12.506787,13.732768 c 0.164034,0.164027 0.386593,0.256125 0.618479,0.256125 0.232004,0 0.454446,-0.09209 0.618482,-0.256125 C 13.907781,13.568741 14,13.346308 14,13.114315 14,12.882323 13.90779,12.659888 13.743748,12.495861 Z\"/></svg>')}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index, 24);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup{display:flex;height:100%;align-items:center;justify-content:center;box-sizing:border-box}.popup__container{width:100%;max-height:90%;height:100%;display:flex;flex-wrap:wrap;overflow:hidden;outline:none;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding)}.popup__container--auto{height:auto}.popup__content{box-sizing:border-box;max-height:100%;width:100%;display:grid;grid-template-rows:auto 1fr}.popup__expandable-content{box-sizing:border-box;width:100%;
|
|
127209
|
+
const ezPopupCss = ":host{display:flex;--ez-popup-z-index:var(--elevation--24, 24);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--large, 24px);--ez-popup__header--padding-bottom:var(--space--medium, 12px);--ez-popup__title--font-family:var(--font-pattern, \"Roboto\");--ez-popup__title--font-size:var(--title--extra-large, 24px);--ez-popup__title--color:var(--title--primary, #2b3a54);--ez-popup__title--font-weight:var(--text-weight--large, 600);--ez-popup__btn__close--icon-color:var(--title--primary, #2b3a54);--ez-popup__btn__close--icon:url('data:image/svg+xml;utf8,<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 8.2421753,6.9944578 13.743748,1.4930784 C 13.907781,1.3290628 14,1.1065946 14,0.87462511 14,0.64266712 13.907782,0.42019873 13.743748,0.25617155 13.579712,0.09215597 13.35727,6.48e-8 13.125266,6.48e-8 12.89338,6.48e-8 12.670821,0.09215634 12.506787,0.25617155 L 7.005215,5.7575508 1.5035972,0.25617155 C 1.3395631,0.09215597 1.1170968,6.48e-8 0.88511716,6.48e-8 0.65314917,6.48e-8 0.4306712,0.09215597 0.26663695,0.25617155 0.10260271,0.42019873 0.01045441,0.64266712 0.01045441,0.87462511 c 0,0.23196949 0.0921483,0.45443769 0.25618254,0.61845329 L 5.7682546,6.9944578 0.26663695,12.497027 c -0.0834745,0.08067 -0.15003245,0.1772 -0.19581514,0.283871 C 0.02505077,12.887561 9.831648e-4,13.002399 2.950369e-5,13.118395 -9.2415746e-4,13.234504 0.02125019,13.349689 0.06527245,13.457057 c 0.04401053,0.107479 0.10898307,0.205064 0.1911168,0.287137 0.0821454,0.08208 0.17979645,0.146888 0.28727561,0.190839 0.10747906,0.04395 0.22262954,0.06598 0.33872417,0.06493 0.116095,-10e-4 0.23082547,-0.0253 0.33747687,-0.07112 0.1066637,-0.04593 0.2031133,-0.112615 0.2837313,-0.196086 L 7.005215,8.2313646 12.506787,13.732768 c 0.164034,0.164027 0.386593,0.256125 0.618479,0.256125 0.232004,0 0.454446,-0.09209 0.618482,-0.256125 C 13.907781,13.568741 14,13.346308 14,13.114315 14,12.882323 13.90779,12.659888 13.743748,12.495861 Z\"/></svg>')}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index, 24);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup{display:flex;height:100%;align-items:center;justify-content:center;box-sizing:border-box}.popup__container{width:100%;max-height:90%;height:100%;display:flex;flex-wrap:wrap;overflow:hidden;outline:none;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding)}.popup__container--auto{height:auto}.popup__content{box-sizing:border-box;max-height:100%;width:100%;display:grid;grid-template-rows:auto 1fr}.popup__expandable-content{box-sizing:border-box;width:100%;height:100%}.popup__header{width:100%;display:flex}.popup__header--padding{padding-bottom:var(--ez-popup__header--padding-bottom)}.popup__title{display:flex;margin:0;width:100%;font-family:var(--ez-popup__title--font-family);font-size:var(--ez-popup__title--font-size);font-weight:var(--ez-popup__title--font-weight);color:var(--ez-popup__title--color);line-height:1.3}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--ez-popup__btn__close--icon-color);width:14px;height:14px;-webkit-mask-image:var(--ez-popup__btn__close--icon);mask-image:var(--ez-popup__btn__close--icon)}.btn-close--solo{width:100%}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}.ez-popup__size-limit--x-small{min-width:350px;max-width:560px}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
|
|
127339
127210
|
|
|
127340
127211
|
const EzPopup$1 = class extends HTMLElement$1 {
|
|
127341
127212
|
constructor() {
|
|
@@ -127628,7 +127499,7 @@ class ScrollCtrl {
|
|
|
127628
127499
|
}
|
|
127629
127500
|
}
|
|
127630
127501
|
|
|
127631
|
-
const ezSearchCss = ":host{width:100%}";
|
|
127502
|
+
const ezSearchCss = ":host{--ez-search--height:42px;--ez-search--width:100%;--ez-search__icon--width:48px;--ez-search--border-radius:var(--border--radius-medium, 12px);--ez-search--border-radius-small:var(--border--radius-small, 6px);--ez-search--font-size:var(--text--medium, 14px);--ez-search--font-family:var(--font-pattern, Arial);--ez-search--font-weight--large:var(--text-weight--large, 500);--ez-search--font-weight--medium:var(--text-weight--medium, 400);--ez-search--background-color--xlight:var(--background--xlight, #fff);--ez-search--background-medium:var(--background--medium, #f0f3f7);--ez-search--line-height:calc(var(--text--medium, 14px) + 4px);--ez-search__input--background-color:var(--background--medium, #e0e0e0);--ez-search__input--border:var(--border--medium, 2px solid);--ez-search__input--border-color:var(--ez-search__input--background-color);--ez-search__input--focus--border-color:var(--color--primary, #008561);--ez-search__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-search__input--disabled--color:var(--text--disable, #AFB6C0);--ez-search__input--error--border-color:#CC2936;--ez-search__btn--color:var(--title--primary, #2B3A54);--ez-search__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-search__btn-hover--color:var(--color--primary, #4e4e4e);--ez-search__label--color:var(--title--primary, #2B3A54);--ez-search__list-title--primary:var(--title--primary, #2B3A54);--ez-search__list-text--primary:var(--text--primary, #626e82);--ez-search__list-height:calc(var(--ez-search--font-size) + var(--ez-search--space--medium) + 4px);--ez-search__list-min-width:64px;--ez-search--space--medium:var(--space--medium, 12px);--ez-search--space--small:var(--space--small, 6px);--ez-search__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-search__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-search__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-search__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-search__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-search__scrollbar--width:var(--space--medium, 12px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-search--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)}.list-container{min-width:var(--ez-search__list-min-width);overflow:auto;position:relative;width:100%}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:0;z-index:var(--more-visible, 2);max-height:350px;min-width:150px;background-color:var(--ez-search--background-color--xlight);border-radius:var(--ez-search--border-radius);box-shadow:var(--shadow, 0px 0px 16px 0px #000);padding:var(--ez-search--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-search__scrollbar--color-clicked) var(--ez-search__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--ez-search__scrollbar--color-background);width:var(--ez-search__scrollbar--width);max-width:var(--ez-search__scrollbar--width);min-width:var(--ez-search__scrollbar--width)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-search__scrollbar--color-background);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-search__scrollbar--color-default);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-search__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-search__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-search--border-radius-small);padding:var(--ez-search--space--small);gap:var(--space--small, 6px)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--font-size);line-height:var(--ez-search--line-height)}.item__label{font-weight:var(--ez-search--font-weight--medium)}.item__label--bold{font-weight:var(--ez-search--font-weight--large)}.item__value{text-align:center;color:var(--ez-search__list-text--primary);font-weight:var(--ez-search--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-search__list-height)}.message__no-result{color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--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-search__list-title--primary);border-top:3px solid transparent}.item__list>li:hover{background-color:var(--ez-search--background-medium)}.preselected{background-color:var(--background--medium)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-search__btn--color)}.btn:disabled{cursor:unset;color:var(--ez-search__btn-disabled--color)}.btn:disabled:hover{cursor:unset;color:var(--ez-search__btn-disabled--color)}.btn:hover{color:var(--ez-search__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
|
127632
127503
|
|
|
127633
127504
|
const EzSearch$1 = class extends HTMLElement$1 {
|
|
127634
127505
|
constructor() {
|
|
@@ -127636,6 +127507,21 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127636
127507
|
this.__registerHost();
|
|
127637
127508
|
this.__attachShadow();
|
|
127638
127509
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
127510
|
+
this._changeDeboucingTimeout = null;
|
|
127511
|
+
this._limitCharsToSearch = 3;
|
|
127512
|
+
this._deboucingTime = 300;
|
|
127513
|
+
this._maxWidthValue = 0;
|
|
127514
|
+
this._tabPressed = false;
|
|
127515
|
+
this._textEmptyList = "Nenhum resultado encontrado";
|
|
127516
|
+
this._textEmptySearch = "Nenhum resultado de {0} encontrado";
|
|
127517
|
+
this._lookupMode = false;
|
|
127518
|
+
this._startHighlightTag = "<span class='card-item__highlight'>";
|
|
127519
|
+
this._endHighlightTag = "</span>";
|
|
127520
|
+
this._preSelection = undefined;
|
|
127521
|
+
this._visibleOptions = undefined;
|
|
127522
|
+
this._startLoading = false;
|
|
127523
|
+
this._showLoading = true;
|
|
127524
|
+
this._criteria = undefined;
|
|
127639
127525
|
this.value = undefined;
|
|
127640
127526
|
this.label = undefined;
|
|
127641
127527
|
this.enabled = true;
|
|
@@ -127650,28 +127536,82 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127650
127536
|
this.listOptionsPosition = undefined;
|
|
127651
127537
|
this.isTextSearch = false;
|
|
127652
127538
|
this.ignoreLimitCharsToSearch = false;
|
|
127539
|
+
this.options = undefined;
|
|
127540
|
+
this.suppressSearch = false;
|
|
127653
127541
|
}
|
|
127654
127542
|
observeErrorMessage() {
|
|
127655
|
-
|
|
127656
|
-
|
|
127543
|
+
var _a;
|
|
127544
|
+
if (this._textInput) {
|
|
127545
|
+
this._textInput.errorMessage = this.errorMessage;
|
|
127546
|
+
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
127547
|
+
this.setInputValue();
|
|
127548
|
+
}
|
|
127657
127549
|
}
|
|
127658
127550
|
}
|
|
127659
|
-
observeValue() {
|
|
127660
|
-
if (this.
|
|
127661
|
-
|
|
127551
|
+
observeValue(newValue, oldValue) {
|
|
127552
|
+
if (this._textInput && newValue != oldValue) {
|
|
127553
|
+
try {
|
|
127554
|
+
if (newValue === "string") {
|
|
127555
|
+
this.setInputValue();
|
|
127556
|
+
return;
|
|
127557
|
+
}
|
|
127558
|
+
const newValueSelected = this.getSelectedOption(newValue);
|
|
127559
|
+
const oldValueSelected = this.getSelectedOption(oldValue);
|
|
127560
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
127561
|
+
if (this.isDifferentValues(currentValue, newValueSelected)) {
|
|
127562
|
+
this.value = newValueSelected;
|
|
127563
|
+
}
|
|
127564
|
+
if (this.isDifferentValues(newValueSelected, oldValueSelected)) {
|
|
127565
|
+
this.setInputValue();
|
|
127566
|
+
const valueEmitted = newValueSelected === null ? undefined : newValueSelected;
|
|
127567
|
+
if (!this._lookupMode) {
|
|
127568
|
+
this.ezChange.emit(valueEmitted);
|
|
127569
|
+
}
|
|
127570
|
+
}
|
|
127571
|
+
this.resetOptions();
|
|
127572
|
+
}
|
|
127573
|
+
finally {
|
|
127574
|
+
this._lookupMode = false;
|
|
127575
|
+
}
|
|
127662
127576
|
}
|
|
127663
127577
|
}
|
|
127578
|
+
observeOptions(newOptions, oldOptions) {
|
|
127579
|
+
if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
|
|
127580
|
+
return;
|
|
127581
|
+
this.loadOptions(SearchMode.PRELOAD);
|
|
127582
|
+
}
|
|
127583
|
+
/*
|
|
127584
|
+
* Retorna uma promise com o valor da opção selecionada,
|
|
127585
|
+
* que será resolvida quando o backend devolver este dado.
|
|
127586
|
+
*/
|
|
127587
|
+
async getValueAsync() {
|
|
127588
|
+
if (!this._showLoading) {
|
|
127589
|
+
return new Promise(resolve => resolve(this.value));
|
|
127590
|
+
}
|
|
127591
|
+
return new Promise(resolve => {
|
|
127592
|
+
let id = setInterval(() => {
|
|
127593
|
+
if (!this._showLoading) {
|
|
127594
|
+
clearInterval(id);
|
|
127595
|
+
resolve(this.value);
|
|
127596
|
+
}
|
|
127597
|
+
}, 100);
|
|
127598
|
+
});
|
|
127599
|
+
}
|
|
127664
127600
|
/**
|
|
127665
|
-
|
|
127666
|
-
|
|
127601
|
+
* Aplica o foco no campo.
|
|
127602
|
+
*/
|
|
127667
127603
|
async setFocus() {
|
|
127668
|
-
this.
|
|
127604
|
+
if (this._textInput) {
|
|
127605
|
+
this._textInput.setFocus();
|
|
127606
|
+
}
|
|
127669
127607
|
}
|
|
127670
127608
|
/**
|
|
127671
|
-
|
|
127672
|
-
|
|
127609
|
+
* Remove o foco do campo.
|
|
127610
|
+
*/
|
|
127673
127611
|
async setBlur() {
|
|
127674
|
-
this.
|
|
127612
|
+
if (this._textInput) {
|
|
127613
|
+
this._textInput.setBlur();
|
|
127614
|
+
}
|
|
127675
127615
|
}
|
|
127676
127616
|
/**
|
|
127677
127617
|
* Retorna se o conteúdo é inválido.
|
|
@@ -127683,40 +127623,547 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127683
127623
|
* Limpa o valor do campo de pesquisa
|
|
127684
127624
|
*/
|
|
127685
127625
|
async clearValue() {
|
|
127626
|
+
this.clearSearch();
|
|
127627
|
+
}
|
|
127628
|
+
scrollListener() {
|
|
127629
|
+
var _a;
|
|
127630
|
+
if (this._floatingID == undefined) {
|
|
127631
|
+
return;
|
|
127632
|
+
}
|
|
127633
|
+
if ((_a = this.listOptionsPosition) === null || _a === void 0 ? void 0 : _a.hardPosition) {
|
|
127634
|
+
this.hideOptions();
|
|
127635
|
+
}
|
|
127636
|
+
else {
|
|
127637
|
+
window.requestAnimationFrame(() => {
|
|
127638
|
+
this.updateListPosition();
|
|
127639
|
+
});
|
|
127640
|
+
}
|
|
127641
|
+
}
|
|
127642
|
+
updateListPosition() {
|
|
127643
|
+
let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
|
|
127644
|
+
const elementRect = this._listWrapper.getBoundingClientRect();
|
|
127645
|
+
const containerRect = this._listContainer.getBoundingClientRect();
|
|
127646
|
+
const textInputRect = this._textInput.getBoundingClientRect();
|
|
127647
|
+
const limitHeight = bottomLimit || window.innerHeight;
|
|
127648
|
+
const neededHeight = containerRect.bottom + elementRect.height;
|
|
127649
|
+
if (!fromBottom && (elementRect.top < 0 || neededHeight > limitHeight)) {
|
|
127650
|
+
fromBottom = true;
|
|
127651
|
+
}
|
|
127652
|
+
if (!hardPosition) {
|
|
127653
|
+
verticalPosition = verticalPosition || 0;
|
|
127654
|
+
horizontalPosition = horizontalPosition || 0;
|
|
127655
|
+
if (fromBottom) {
|
|
127656
|
+
verticalPosition = window.innerHeight - textInputRect.top + verticalPosition;
|
|
127657
|
+
}
|
|
127658
|
+
else {
|
|
127659
|
+
verticalPosition += containerRect.top;
|
|
127660
|
+
}
|
|
127661
|
+
if (fromRight) {
|
|
127662
|
+
horizontalPosition = window.innerWidth - textInputRect.right + horizontalPosition;
|
|
127663
|
+
}
|
|
127664
|
+
else {
|
|
127665
|
+
horizontalPosition += containerRect.left;
|
|
127666
|
+
}
|
|
127667
|
+
}
|
|
127668
|
+
if (verticalPosition != undefined) {
|
|
127669
|
+
this._listWrapper.style[fromBottom ? "bottom" : "top"] = `${verticalPosition}px`;
|
|
127670
|
+
this._listWrapper.style[fromBottom ? "top" : "bottom"] = "";
|
|
127671
|
+
}
|
|
127672
|
+
if (horizontalPosition != undefined) {
|
|
127673
|
+
this._listWrapper.style[fromRight ? "right" : "left"] = `${horizontalPosition}px`;
|
|
127674
|
+
this._listWrapper.style[fromRight ? "left" : "right"] = "";
|
|
127675
|
+
}
|
|
127676
|
+
}
|
|
127677
|
+
getListPosition() {
|
|
127678
|
+
if (this.listOptionsPosition) {
|
|
127679
|
+
return this.listOptionsPosition;
|
|
127680
|
+
}
|
|
127681
|
+
return {
|
|
127682
|
+
verticalPosition: (this.errorMessage || !this.canShowError || this.mode === "slim") ? 6 : -13
|
|
127683
|
+
};
|
|
127684
|
+
}
|
|
127685
|
+
isDifferentValues(firstValue, secondValue) {
|
|
127686
|
+
return ObjectUtils$1.objectToString(firstValue || {}) !== ObjectUtils$1.objectToString(secondValue || {});
|
|
127687
|
+
}
|
|
127688
|
+
getFormattedText(currentValue) {
|
|
127689
|
+
if (currentValue == undefined) {
|
|
127690
|
+
return;
|
|
127691
|
+
}
|
|
127692
|
+
if (!this.showSelectedValue || currentValue.value == undefined) {
|
|
127693
|
+
return currentValue.label;
|
|
127694
|
+
}
|
|
127695
|
+
return currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
|
|
127696
|
+
}
|
|
127697
|
+
getText() {
|
|
127698
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
127699
|
+
const text = this.getFormattedText(currentValue);
|
|
127700
|
+
if (text == undefined) {
|
|
127701
|
+
return;
|
|
127702
|
+
}
|
|
127703
|
+
return String(text)
|
|
127704
|
+
.replace(/&/g, '&')
|
|
127705
|
+
.replace(/</g, '<')
|
|
127706
|
+
.replace(/>/g, '>')
|
|
127707
|
+
.replace(/"/g, '"');
|
|
127708
|
+
}
|
|
127709
|
+
getSelectedOption(value) {
|
|
127710
|
+
if (typeof value === "string" || value instanceof String) {
|
|
127711
|
+
return this._visibleOptions.find(o => o.value === value);
|
|
127712
|
+
}
|
|
127713
|
+
return value;
|
|
127714
|
+
}
|
|
127715
|
+
updateVisibleOptions() {
|
|
127716
|
+
let opts = this._source || [];
|
|
127717
|
+
if (this.suppressEmptyOption) {
|
|
127718
|
+
this._visibleOptions = opts;
|
|
127719
|
+
}
|
|
127720
|
+
else {
|
|
127721
|
+
this._visibleOptions = [{ value: undefined, label: "" }].concat(opts);
|
|
127722
|
+
}
|
|
127723
|
+
this._maxWidthValue = this.getMaxWidthValue();
|
|
127724
|
+
}
|
|
127725
|
+
getMaxWidthValue() {
|
|
127726
|
+
var _a;
|
|
127727
|
+
const arrValues = [];
|
|
127728
|
+
(_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.forEach(opt => {
|
|
127729
|
+
const widthValue = this.getWidthValue(opt.value);
|
|
127730
|
+
if (!arrValues.includes(widthValue)) {
|
|
127731
|
+
arrValues.push(widthValue);
|
|
127732
|
+
}
|
|
127733
|
+
});
|
|
127734
|
+
return arrValues.length > 1 ? Math.max(...arrValues) : 0;
|
|
127735
|
+
}
|
|
127736
|
+
getWidthValue(value) {
|
|
127737
|
+
if (this._itemValueBasis != undefined) {
|
|
127738
|
+
const span = this._itemValueBasis;
|
|
127739
|
+
if (value != undefined) {
|
|
127740
|
+
span.innerHTML = value;
|
|
127741
|
+
return span.clientWidth > 0 ? (span.clientWidth + 2) : 0;
|
|
127742
|
+
}
|
|
127743
|
+
else {
|
|
127744
|
+
span.innerHTML = "";
|
|
127745
|
+
}
|
|
127746
|
+
}
|
|
127747
|
+
return 0;
|
|
127748
|
+
}
|
|
127749
|
+
createOption(detail) {
|
|
127750
|
+
let { key, title } = detail;
|
|
127751
|
+
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
127752
|
+
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
127753
|
+
title = StringUtils$1.decodeHtmlEntities(title);
|
|
127754
|
+
const option = {
|
|
127755
|
+
value: key === null || key === void 0 ? void 0 : key.replace(startHighlight, '').replace(endHighlight, ''),
|
|
127756
|
+
label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
|
|
127757
|
+
};
|
|
127758
|
+
this.selectOption(option);
|
|
127759
|
+
}
|
|
127760
|
+
buildItem(opt, index) {
|
|
127761
|
+
opt.label = opt.label || opt.value;
|
|
127762
|
+
const card = {
|
|
127763
|
+
key: opt.value,
|
|
127764
|
+
title: opt.label,
|
|
127765
|
+
details: opt.details
|
|
127766
|
+
};
|
|
127767
|
+
return h("div", { style: { "height": "100%" }, class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this._preSelection = index }, h("ez-card-item", { item: card }));
|
|
127768
|
+
}
|
|
127769
|
+
showOptions() {
|
|
127770
|
+
if (!this.enabled)
|
|
127771
|
+
return;
|
|
127772
|
+
if (this.isOptionsVisible()) {
|
|
127773
|
+
return;
|
|
127774
|
+
}
|
|
127775
|
+
if (!!this._resizeObserver)
|
|
127776
|
+
this._resizeObserver.observe(this._textInput);
|
|
127777
|
+
this._floatingID = FloatingManager.float(this._listWrapper, this._listContainer, { autoClose: false, isFixed: true, backClickListener: () => this.hideOptions() });
|
|
127778
|
+
this.setFocus();
|
|
127779
|
+
window.requestAnimationFrame(() => {
|
|
127780
|
+
this.updateListPosition();
|
|
127781
|
+
if (!this.listOptionsPosition) {
|
|
127782
|
+
this._listWrapper.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
127783
|
+
}
|
|
127784
|
+
});
|
|
127785
|
+
}
|
|
127786
|
+
hideOptions() {
|
|
127787
|
+
if (this._floatingID !== undefined) {
|
|
127788
|
+
FloatingManager.close(this._floatingID);
|
|
127789
|
+
}
|
|
127790
|
+
this._floatingID = undefined;
|
|
127791
|
+
if (!!this._resizeObserver)
|
|
127792
|
+
this._resizeObserver.unobserve(this._textInput);
|
|
127793
|
+
}
|
|
127794
|
+
isOptionsVisible() {
|
|
127795
|
+
return this._floatingID !== undefined && FloatingManager.isFloating(this._floatingID);
|
|
127796
|
+
}
|
|
127797
|
+
nextOption() {
|
|
127798
|
+
if (!this.isOptionsVisible()) {
|
|
127799
|
+
return;
|
|
127800
|
+
}
|
|
127801
|
+
this.showOptions();
|
|
127802
|
+
this._preSelection = this._preSelection === undefined ? 0 : Math.min(this._preSelection + 1, this._visibleOptions.length - 1);
|
|
127803
|
+
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
127804
|
+
}
|
|
127805
|
+
previousOption() {
|
|
127806
|
+
this._preSelection = this._preSelection === undefined ? 0 : Math.max(this._preSelection - 1, 0);
|
|
127807
|
+
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
127808
|
+
}
|
|
127809
|
+
scrollToOption(opt) {
|
|
127810
|
+
window.requestAnimationFrame(() => {
|
|
127811
|
+
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`div#item_${opt.value.replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
|
|
127812
|
+
if (liElem)
|
|
127813
|
+
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
127814
|
+
});
|
|
127815
|
+
}
|
|
127816
|
+
selectCurrentOption() {
|
|
127817
|
+
if (this._preSelection !== undefined) {
|
|
127818
|
+
this.selectOption(this._visibleOptions[this._preSelection]);
|
|
127819
|
+
this._preSelection = undefined;
|
|
127820
|
+
}
|
|
127821
|
+
else {
|
|
127822
|
+
this.controlListWithOnlyOne();
|
|
127823
|
+
}
|
|
127824
|
+
}
|
|
127825
|
+
updateSource(source) {
|
|
127826
|
+
this._startLoading = false;
|
|
127827
|
+
if (source instanceof Promise) {
|
|
127828
|
+
this._showLoading = true;
|
|
127829
|
+
source.then(result => {
|
|
127830
|
+
this._showLoading = false;
|
|
127831
|
+
this.updateSource(result);
|
|
127832
|
+
}).catch(() => this._showLoading = false);
|
|
127833
|
+
this.updateVisibleOptions();
|
|
127834
|
+
}
|
|
127835
|
+
else {
|
|
127836
|
+
this._showLoading = false;
|
|
127837
|
+
if (Array.isArray(source)) {
|
|
127838
|
+
this._source = source;
|
|
127839
|
+
this.updateVisibleOptions();
|
|
127840
|
+
if (this._tabPressed) {
|
|
127841
|
+
this._tabPressed = false;
|
|
127842
|
+
this.controlEmptySearch();
|
|
127843
|
+
}
|
|
127844
|
+
}
|
|
127845
|
+
else {
|
|
127846
|
+
this.selectOption(source);
|
|
127847
|
+
}
|
|
127848
|
+
}
|
|
127849
|
+
}
|
|
127850
|
+
clearSource() {
|
|
127851
|
+
this._source = [];
|
|
127852
|
+
this.updateVisibleOptions();
|
|
127853
|
+
}
|
|
127854
|
+
selectOption(newOption) {
|
|
127686
127855
|
var _a, _b;
|
|
127687
|
-
|
|
127856
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
127857
|
+
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()))
|
|
127858
|
+
|| (currentValue == undefined && newOption != undefined && "value" in newOption)) {
|
|
127859
|
+
const adjustedOpt = !(newOption === null || newOption === void 0 ? void 0 : newOption.value) ? undefined : newOption;
|
|
127860
|
+
this.value = adjustedOpt;
|
|
127861
|
+
}
|
|
127862
|
+
else {
|
|
127863
|
+
this.resetOptions();
|
|
127864
|
+
}
|
|
127865
|
+
this._visibleOptions = [];
|
|
127866
|
+
this.clearSource();
|
|
127688
127867
|
}
|
|
127689
|
-
|
|
127690
|
-
|
|
127691
|
-
|
|
127692
|
-
|
|
127693
|
-
|
|
127868
|
+
loadOptions(mode, argument = "") {
|
|
127869
|
+
this._criteria = argument;
|
|
127870
|
+
this._startLoading = true;
|
|
127871
|
+
if (this.optionLoader) {
|
|
127872
|
+
const searchArgument = { mode, argument };
|
|
127873
|
+
this.updateSource(this.optionLoader(searchArgument));
|
|
127874
|
+
}
|
|
127875
|
+
else {
|
|
127876
|
+
this.updateSource(this.options);
|
|
127877
|
+
}
|
|
127878
|
+
}
|
|
127879
|
+
cancelPreselection() {
|
|
127880
|
+
if (!this._textInput.value && this.value) {
|
|
127881
|
+
this.selectOption(undefined);
|
|
127882
|
+
}
|
|
127883
|
+
else {
|
|
127884
|
+
window.setTimeout(() => {
|
|
127885
|
+
this.setInputValue();
|
|
127886
|
+
}, this._deboucingTime);
|
|
127887
|
+
}
|
|
127888
|
+
this.resetOptions();
|
|
127889
|
+
}
|
|
127890
|
+
setInputValue(clearError = true) {
|
|
127891
|
+
const textValue = this.getText();
|
|
127892
|
+
if ((this._textInput.value || '') !== textValue) {
|
|
127893
|
+
this._textInput.value = textValue;
|
|
127894
|
+
if (clearError) {
|
|
127895
|
+
this.errorMessage = null;
|
|
127896
|
+
}
|
|
127897
|
+
}
|
|
127898
|
+
}
|
|
127899
|
+
clearSearch() {
|
|
127900
|
+
this.value = null;
|
|
127901
|
+
}
|
|
127902
|
+
controlListWithOnlyOne() {
|
|
127903
|
+
var _a, _b;
|
|
127904
|
+
const source = (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.filter((opt) => opt.label !== "" && opt.value != undefined);
|
|
127905
|
+
if ((source === null || source === void 0 ? void 0 : source.length) > 0) {
|
|
127906
|
+
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
127907
|
+
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
127908
|
+
let title = StringUtils$1.decodeHtmlEntities(source[0].label);
|
|
127909
|
+
const option = {
|
|
127910
|
+
value: (_b = source[0].value) === null || _b === void 0 ? void 0 : _b.replace(startHighlight, '').replace(endHighlight, ''),
|
|
127911
|
+
label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
|
|
127912
|
+
};
|
|
127913
|
+
this.selectOption(option);
|
|
127914
|
+
}
|
|
127915
|
+
}
|
|
127916
|
+
controlEmptySearch() {
|
|
127694
127917
|
var _a;
|
|
127695
|
-
|
|
127918
|
+
if (!((_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
127919
|
+
this.clearSearch();
|
|
127920
|
+
ApplicationUtils.info(this._textEmptyList);
|
|
127921
|
+
}
|
|
127922
|
+
else {
|
|
127923
|
+
this.controlListWithOnlyOne();
|
|
127924
|
+
}
|
|
127696
127925
|
}
|
|
127697
|
-
|
|
127698
|
-
|
|
127699
|
-
|
|
127700
|
-
|
|
127701
|
-
|
|
127702
|
-
|
|
127926
|
+
validateDescriptionValue() {
|
|
127927
|
+
if (StringUtils$1.isEmpty(this.value)) {
|
|
127928
|
+
return;
|
|
127929
|
+
}
|
|
127930
|
+
let value = this.value;
|
|
127931
|
+
if (typeof value === "object") {
|
|
127932
|
+
return;
|
|
127703
127933
|
}
|
|
127934
|
+
if (StringUtils$1.isEmpty(value)) {
|
|
127935
|
+
return;
|
|
127936
|
+
}
|
|
127937
|
+
this.loadDescriptionValue(value);
|
|
127938
|
+
}
|
|
127939
|
+
async loadDescriptionValue(argument) {
|
|
127940
|
+
var _a, _b;
|
|
127941
|
+
if (argument == undefined) {
|
|
127942
|
+
return;
|
|
127943
|
+
}
|
|
127944
|
+
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
127945
|
+
this.loadOptionValue(argument);
|
|
127946
|
+
return;
|
|
127947
|
+
}
|
|
127948
|
+
const searchArgument = {
|
|
127949
|
+
mode: SearchMode.PREDICTIVE,
|
|
127950
|
+
argument
|
|
127951
|
+
};
|
|
127952
|
+
const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument));
|
|
127953
|
+
if (source == undefined) {
|
|
127954
|
+
return;
|
|
127955
|
+
}
|
|
127956
|
+
if (source instanceof Promise) {
|
|
127957
|
+
source.then((result) => {
|
|
127958
|
+
this.setDescriptionValue(result);
|
|
127959
|
+
});
|
|
127960
|
+
}
|
|
127961
|
+
else {
|
|
127962
|
+
this.setDescriptionValue(source);
|
|
127963
|
+
}
|
|
127964
|
+
}
|
|
127965
|
+
setDescriptionValue(source) {
|
|
127966
|
+
const value = (source === null || source === void 0 ? void 0 : source[0]) || source;
|
|
127967
|
+
if (value == undefined || !Object.keys(value).length) {
|
|
127968
|
+
this.showNoResultMessage();
|
|
127969
|
+
return;
|
|
127970
|
+
}
|
|
127971
|
+
this._lookupMode = true;
|
|
127972
|
+
this.value = value;
|
|
127973
|
+
}
|
|
127974
|
+
loadOptionValue(argument) {
|
|
127975
|
+
var _a;
|
|
127976
|
+
const source = (_a = this.options) === null || _a === void 0 ? void 0 : _a.find((opt) => opt.value === argument);
|
|
127977
|
+
if (source != undefined) {
|
|
127978
|
+
this.selectOption(source);
|
|
127979
|
+
}
|
|
127980
|
+
else {
|
|
127981
|
+
this.showNoResultMessage();
|
|
127982
|
+
}
|
|
127983
|
+
}
|
|
127984
|
+
async showNoResultMessage() {
|
|
127985
|
+
this.clearSearch();
|
|
127986
|
+
ApplicationUtils.info(this._textEmptySearch.replace("{0}", this.getFieldLabel()));
|
|
127987
|
+
}
|
|
127988
|
+
getFieldLabel() {
|
|
127989
|
+
var _a;
|
|
127990
|
+
return (_a = this.label) === null || _a === void 0 ? void 0 : _a.replace(REQUIRED_INFO, "").toUpperCase();
|
|
127991
|
+
}
|
|
127992
|
+
resetOptions() {
|
|
127993
|
+
this.hideOptions();
|
|
127994
|
+
this._criteria = undefined;
|
|
127995
|
+
this._preSelection = undefined;
|
|
127996
|
+
this.updateVisibleOptions();
|
|
127997
|
+
}
|
|
127998
|
+
//---------------------------------------------
|
|
127999
|
+
// Lifecycle web component
|
|
128000
|
+
//---------------------------------------------
|
|
128001
|
+
componentWillLoad() {
|
|
128002
|
+
if (this.options === undefined) {
|
|
128003
|
+
this.options = [];
|
|
128004
|
+
const optionsTags = this.el.querySelectorAll("option");
|
|
128005
|
+
if (optionsTags) {
|
|
128006
|
+
optionsTags.forEach(e => {
|
|
128007
|
+
let label = e.innerText;
|
|
128008
|
+
let value = e.getAttribute("value");
|
|
128009
|
+
let details = e.getAttribute("details");
|
|
128010
|
+
if (!value) {
|
|
128011
|
+
value = label;
|
|
128012
|
+
}
|
|
128013
|
+
this.options.push({ label, value, details });
|
|
128014
|
+
e.hidden = true;
|
|
128015
|
+
});
|
|
128016
|
+
}
|
|
128017
|
+
}
|
|
128018
|
+
this.updateSource([]);
|
|
128019
|
+
}
|
|
128020
|
+
componentDidRender() {
|
|
128021
|
+
var _a;
|
|
128022
|
+
if (this._floatingID === undefined) {
|
|
128023
|
+
this._listWrapper.remove();
|
|
128024
|
+
}
|
|
128025
|
+
(_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
|
|
128026
|
+
ElementIDUtils.addIDInfoIfNotExists(elem, "itemSearch");
|
|
128027
|
+
});
|
|
128028
|
+
this.validateDescriptionValue();
|
|
127704
128029
|
}
|
|
127705
128030
|
componentDidLoad() {
|
|
127706
|
-
CSSVarsUtils.applyVarsTextInput(this.
|
|
128031
|
+
CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
|
|
128032
|
+
this.setInputValue(false);
|
|
128033
|
+
this._resizeObserver = new ResizeObserver((entries) => {
|
|
128034
|
+
window.requestAnimationFrame(() => {
|
|
128035
|
+
if (!Array.isArray(entries) || !entries.length)
|
|
128036
|
+
return;
|
|
128037
|
+
const { clientWidth } = this._listContainer;
|
|
128038
|
+
if (clientWidth > 0 && !!this._listWrapper) {
|
|
128039
|
+
this._listWrapper.style.width = `${clientWidth}px`;
|
|
128040
|
+
}
|
|
128041
|
+
});
|
|
128042
|
+
});
|
|
128043
|
+
}
|
|
128044
|
+
//---------------------------------------------
|
|
128045
|
+
// Event handlers
|
|
128046
|
+
//---------------------------------------------
|
|
128047
|
+
handlerIconClick() {
|
|
128048
|
+
this.loadOptions(SearchMode.ADVANCED);
|
|
128049
|
+
}
|
|
128050
|
+
buildNumberArgument(argument) {
|
|
128051
|
+
if (this.isTextSearch) {
|
|
128052
|
+
return NaN;
|
|
128053
|
+
}
|
|
128054
|
+
return Number(argument || undefined);
|
|
128055
|
+
}
|
|
128056
|
+
onTextInputChangeHandler(event) {
|
|
128057
|
+
var _a;
|
|
128058
|
+
this.clearDeboucingTimeout();
|
|
128059
|
+
if (this._startLoading) {
|
|
128060
|
+
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
128061
|
+
this.onTextInputChangeHandler(event);
|
|
128062
|
+
}, this._deboucingTime);
|
|
128063
|
+
return;
|
|
128064
|
+
}
|
|
128065
|
+
const argument = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim();
|
|
128066
|
+
const argumentNumber = this.buildNumberArgument(argument);
|
|
128067
|
+
if (!this._criteria) {
|
|
128068
|
+
this._textInput.value = event.data || argument;
|
|
128069
|
+
}
|
|
128070
|
+
this._criteria = argument;
|
|
128071
|
+
if (argument) {
|
|
128072
|
+
this._showLoading = false;
|
|
128073
|
+
this.clearSource();
|
|
128074
|
+
if (!isNaN(argumentNumber) || argument.length >= this._limitCharsToSearch) {
|
|
128075
|
+
this._showLoading = true;
|
|
128076
|
+
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
128077
|
+
this.loadOptions(SearchMode.PREDICTIVE, isNaN(argumentNumber) ? argument : argumentNumber.toString());
|
|
128078
|
+
}, this._deboucingTime);
|
|
128079
|
+
this.showOptions();
|
|
128080
|
+
}
|
|
128081
|
+
else {
|
|
128082
|
+
this.hideOptions();
|
|
128083
|
+
}
|
|
128084
|
+
}
|
|
128085
|
+
else {
|
|
128086
|
+
this.hideOptions();
|
|
128087
|
+
this._showLoading = false;
|
|
128088
|
+
this.clearSource();
|
|
128089
|
+
}
|
|
128090
|
+
}
|
|
128091
|
+
clearDeboucingTimeout() {
|
|
128092
|
+
if (this._changeDeboucingTimeout) {
|
|
128093
|
+
window.clearTimeout(this._changeDeboucingTimeout);
|
|
128094
|
+
this._changeDeboucingTimeout = null;
|
|
128095
|
+
}
|
|
128096
|
+
}
|
|
128097
|
+
keyDownHandler(event) {
|
|
128098
|
+
this._tabPressed = false;
|
|
128099
|
+
if (event.ctrlKey) {
|
|
128100
|
+
if (event.key === "f" || event.key === "F") {
|
|
128101
|
+
this.loadOptions(SearchMode.ADVANCED);
|
|
128102
|
+
//ATENÇÃO: Ctrl + F tem ação específica nos browsers
|
|
128103
|
+
//nesse caso, como vamos abrir o popup de busca avançada,
|
|
128104
|
+
//não é interessante deixar o evento propagar;
|
|
128105
|
+
event.stopPropagation();
|
|
128106
|
+
event.stopImmediatePropagation();
|
|
128107
|
+
event.preventDefault();
|
|
128108
|
+
}
|
|
128109
|
+
}
|
|
128110
|
+
switch (event.key) {
|
|
128111
|
+
case "ArrowDown":
|
|
128112
|
+
this.nextOption();
|
|
128113
|
+
event.stopPropagation();
|
|
128114
|
+
break;
|
|
128115
|
+
case "ArrowUp":
|
|
128116
|
+
this.previousOption();
|
|
128117
|
+
event.stopPropagation();
|
|
128118
|
+
break;
|
|
128119
|
+
case "Enter":
|
|
128120
|
+
this.selectCurrentOption();
|
|
128121
|
+
break;
|
|
128122
|
+
case "Escape":
|
|
128123
|
+
this.cancelPreselection();
|
|
128124
|
+
break;
|
|
128125
|
+
case "Tab":
|
|
128126
|
+
this._tabPressed = true;
|
|
128127
|
+
this.controlListWithOnlyOne();
|
|
128128
|
+
break;
|
|
128129
|
+
}
|
|
128130
|
+
//ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
|
|
128131
|
+
//Por exemplo, quando o usuário dá um Enter, além de selecionar
|
|
128132
|
+
//um valor, também significa que a ateração finalizou,
|
|
128133
|
+
//e o contexto pode reagir (fechar um popup por exemplo).
|
|
128134
|
+
//event.stopPropagation();
|
|
128135
|
+
}
|
|
128136
|
+
onTextInputFocusOutHandler() {
|
|
128137
|
+
if (this.hideErrorOnFocusOut)
|
|
128138
|
+
this.cancelPreselection();
|
|
128139
|
+
}
|
|
128140
|
+
canShowListOptions() {
|
|
128141
|
+
return !this._showLoading && this._visibleOptions.length > 0;
|
|
127707
128142
|
}
|
|
127708
128143
|
render() {
|
|
127709
|
-
|
|
127710
|
-
|
|
128144
|
+
var _a;
|
|
128145
|
+
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
128146
|
+
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), 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: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "search" })), ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value)
|
|
128147
|
+
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
128148
|
+
: undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
|
|
128149
|
+
&& this._visibleOptions.length === 0
|
|
128150
|
+
&& h("div", { class: "message" }, h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
|
|
128151
|
+
&& h("div", { class: "message" }, h("div", { class: "message__loading" })), h("span", { class: "item__value item__value--hidden", ref: elem => this._itemValueBasis = elem }), this.canShowListOptions() && this._visibleOptions.map((opt, index) => this.buildItem(opt, index)))))));
|
|
127711
128152
|
}
|
|
127712
|
-
;
|
|
127713
|
-
get _elem() { return this; }
|
|
128153
|
+
get el() { return this; }
|
|
127714
128154
|
static get watchers() { return {
|
|
127715
128155
|
"errorMessage": ["observeErrorMessage"],
|
|
127716
|
-
"value": ["observeValue"]
|
|
128156
|
+
"value": ["observeValue"],
|
|
128157
|
+
"options": ["observeOptions"]
|
|
127717
128158
|
}; }
|
|
127718
128159
|
static get style() { return ezSearchCss; }
|
|
127719
128160
|
};
|
|
128161
|
+
var SearchMode;
|
|
128162
|
+
(function (SearchMode) {
|
|
128163
|
+
SearchMode["ADVANCED"] = "ADVANCED";
|
|
128164
|
+
SearchMode["PRELOAD"] = "PRELOAD";
|
|
128165
|
+
SearchMode["PREDICTIVE"] = "PREDICTIVE";
|
|
128166
|
+
})(SearchMode || (SearchMode = {}));
|
|
127720
128167
|
|
|
127721
128168
|
const ezSidebarButtonCss = ":host{position:relative;--ez-sidebar-button--width:6px;--ez-sidebar-button--hover--width:12px;--ez-sidebar-button--height:96px;--ez-sidebar-button--background-color--xlight:var(--background--xlight, #fff);--ez-sidebar-button--background-color--primary:var(--color--primary);--ez-sidebar-button--space--small:var(--space--small, 6px);--ez-sidebar-button--space--medium:var(--space--medium, 12px);--ez-sidebar-button--box-shadow:var(--shadow--small, 0px 0px 16px rgba(0, 38, 111, 0.07));--ez-sidebar-button--hover--box-shadow:var(--shadow--hard, 0px 0px 16px rgba(43, 58, 84, 0.24));--ez-sidebar-button--border--radius-small:var(--border--radius-small);--ez-sidebar-button--border--radius-medium:var(--border--radius-medium)}button{position:absolute;display:flex;background:var(--ez-sidebar-button--background-color--xlight);border:0;border-radius:0 var(--ez-sidebar-button--border--radius-medium) var(--ez-sidebar-button--border--radius-medium) 0;box-shadow:var(--ez-sidebar-button--box-shadow);padding:0;cursor:pointer}span{width:var(--ez-sidebar-button--width);height:var(--ez-sidebar-button--height);margin:var(--ez-sidebar-button--space--medium) var(--ez-sidebar-button--space--small) var(--ez-sidebar-button--space--medium) 0;background:var(--ez-sidebar-button--background-color--primary);border-radius:0 var(--ez-sidebar-button--border--radius-small) var(--ez-sidebar-button--border--radius-small) 0}button:hover{box-shadow:var(--ez-sidebar-button--hover--box-shadow)}button:hover span{width:var(--ez-sidebar-button--hover--width);margin:var(--ez-sidebar-button--space--medium) var(--ez-sidebar-button--space--medium) var(--ez-sidebar-button--space--medium) 0}";
|
|
127722
128169
|
|
|
@@ -127804,15 +128251,166 @@ const EzSkeleton$1 = class extends HTMLElement$1 {
|
|
|
127804
128251
|
static get style() { return ezSkeletonCss; }
|
|
127805
128252
|
};
|
|
127806
128253
|
|
|
127807
|
-
const
|
|
128254
|
+
const ezSplitButtonCss = ":host{--ez-split-button--min-width:24;--ez-split-button--width:'auto';--ez-split-button__medium--height:32px;--ez-split-button__large--height:42px;--ez-split-button__medium-icon--width:40px;--ez-split-button__large-icon--width:44px;--ez-split-button__inline__icon--gap:6px;--ez-split-button__label--padding-top:0px;--ez-split-button__label--padding-bottom:0px;--ez-split-button__right-button--padding-left:8px;--ez-split-button--color:var(--title--primary, #FFF);--ez-split-button--font-size:var(--text--medium, 14px);--ez-split-button--font-family:var(--font-pattern, Arial);--ez-split-button--font-weight:var(--text-weight--large);--ez-split-button--background-color:var(--background--medium, #008561);--ez-split-button--border-radius:var(--border--radius-large, 12px);--ez-split-button--border:none;--ez-split-button--justify-content:center;--ez-split-button--hover-color:var(--color--primary-600);--ez-split-button--hover--background-color:var(--background--medium, var(--ez-split-button--background-color));--ez-split-button--disabled-color:var(--text--disable);--ez-split-button--disabled--background-color:var(--color--disable-secondary);--ez-split-button--focus--border:var(--border--medium, 2px) var(--color--primary-300);--ez-split-button--focus--box-shadow:none;--ez-split-button--active-color:var(--color--primary-700);--ez-split-button--active--background-color:var(--background--strong)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-split-button--min-width);width:var(--ez-split-button--width);height:var(--ez-split-button__medium--height);font-family:var(--ez-split-button--font-family);font-size:var(--ez-split-button--font-size);font-weight:var(--ez-split-button--font-weight);padding:var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;border-top-left-radius:var(--ez-split-button--border-radius);border-bottom-left-radius:var(--ez-split-button--border-radius);background-color:var(--ez-split-button--background-color);color:var(--ez-split-button--color);fill:var(--ez-split-button--color);border:var(--ez-split-button--border);justify-content:var(--ez-split-button--justify-content)}label{cursor:pointer}button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button:focus,.ez-split-button__right-button:focus{outline:var(--ez-split-button--focus--border);box-shadow:var(--ez-split-button--focus--box-shadow)}.ez-split-button__left-button:hover,.ez-split-button__right-button:hover{outline:none;background-color:var(--ez-split-button--hover--background-color);color:var(--ez-split-button--hover-color);fill:var(--ez-split-button--hover-color);--ez-icon--color:var(--ez-split-button--hover-color)}.ez-split-button__left-button:disabled,.ez-split-button__left-button:disabled label,.ez-split-button__right-button:disabled{background-color:var(--ez-split-button--disabled--background-color);color:var(--ez-split-button--disabled-color);fill:var(--ez-split-button--disabled-color);border:none;--ez-icon--color:var(--ez-split-button--disabled-color);cursor:not-allowed}button.large{height:var(--ez-split-button__large--height)}button.medium{height:var(--ez-split-button__medium--height)}.default label{padding:var(--ez-split-button__label--padding-top) 12px var(--ez-split-button__label--padding-bottom) 20px}.icon-left{gap:var(--ez-split-button__inline__icon--gap)}.icon-left label{padding-right:12px}.icon-left ez-icon{padding-left:20px}.icon-only{padding-left:12px;padding-right:12px}.ez-split-button__right-button{border-top-right-radius:var(--ez-split-button--border-radius);border-bottom-right-radius:var(--ez-split-button--border-radius);border-top-left-radius:0;border-bottom-left-radius:0}.ez-split-button__right-button--medium{min-width:var(--ez-split-button__medium-icon--width)}.ez-split-button__right-button--large{min-width:var(--ez-split-button__large-icon--width)}.ez-split-button__right-button--divider{top:10%;bottom:10%}.ez-split-button__right-button--divider:before{content:\"\";position:absolute;left:0;border-left:1px solid rgba(0, 0, 0, 20%);border-radius:2px;height:75%}.btn-icon--medium{min-width:--ez-split-button__medium-icon--width}.btn-icon--large{min-width:--ez-split-button__large-icon--width}.ez-split-button__right-button-container{position:absolute;left:0;padding-left:var(--ez-split-button__right-button--padding-left)}.label-icon{display:flex;flex-direction:row;align-items:center;color:var(--ez-split-button--color)}.label-icon:active{color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.dropdown{display:flex}.dropdown-content{display:block;position:absolute;background-color:#f1f1f1;min-width:160px;z-index:--ez-elevation--8;border-radius:var(--ez-split-button--border-radius)}.dropdown-content>ez-dropdown{position:relative}";
|
|
128255
|
+
|
|
128256
|
+
const EzSplitButton$1 = class extends HTMLElement$1 {
|
|
128257
|
+
constructor() {
|
|
128258
|
+
super();
|
|
128259
|
+
this.__registerHost();
|
|
128260
|
+
this.__attachShadow();
|
|
128261
|
+
this.buttonClick = createEvent(this, "buttonClick", 7);
|
|
128262
|
+
this.dropdownItemClick = createEvent(this, "dropdownItemClick", 7);
|
|
128263
|
+
this.dropdownSubActionClick = createEvent(this, "dropdownSubActionClick", 7);
|
|
128264
|
+
this.rightDefaultTitle = 'Mais opções';
|
|
128265
|
+
this.show = false;
|
|
128266
|
+
this.enabled = true;
|
|
128267
|
+
this.iconName = undefined;
|
|
128268
|
+
this.image = undefined;
|
|
128269
|
+
this.items = undefined;
|
|
128270
|
+
this.label = undefined;
|
|
128271
|
+
this.leftTitle = undefined;
|
|
128272
|
+
this.rightTitle = 'Mais opções';
|
|
128273
|
+
this.mode = 'default';
|
|
128274
|
+
this.size = 'medium';
|
|
128275
|
+
}
|
|
128276
|
+
/**
|
|
128277
|
+
* Remove o foco de ambos os botões.
|
|
128278
|
+
*/
|
|
128279
|
+
async setBlur() {
|
|
128280
|
+
this.leftButton.blur();
|
|
128281
|
+
this.rightButton.blur();
|
|
128282
|
+
}
|
|
128283
|
+
/**
|
|
128284
|
+
* Aplica o foco no botão principal.
|
|
128285
|
+
*/
|
|
128286
|
+
async setLeftButtonFocus() {
|
|
128287
|
+
this.leftButton.focus();
|
|
128288
|
+
}
|
|
128289
|
+
/**
|
|
128290
|
+
* Aplica o foco no botão do dropdown.
|
|
128291
|
+
*/
|
|
128292
|
+
async setRightButtonFocus() {
|
|
128293
|
+
this.rightButton.focus();
|
|
128294
|
+
}
|
|
128295
|
+
clickListener(evt) {
|
|
128296
|
+
if (!this.enabled) {
|
|
128297
|
+
evt.preventDefault();
|
|
128298
|
+
evt.stopPropagation();
|
|
128299
|
+
evt.stopImmediatePropagation();
|
|
128300
|
+
}
|
|
128301
|
+
}
|
|
128302
|
+
getIconSize(sizeParam = 'medium') {
|
|
128303
|
+
var _a;
|
|
128304
|
+
const sizeList = ['medium', 'large'];
|
|
128305
|
+
const sizeLowerCase = (_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
128306
|
+
return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
|
|
128307
|
+
}
|
|
128308
|
+
closeDropdown() {
|
|
128309
|
+
this.show = false;
|
|
128310
|
+
}
|
|
128311
|
+
toggleDropdown() {
|
|
128312
|
+
this.show = !this.show;
|
|
128313
|
+
}
|
|
128314
|
+
handleButtonClick() {
|
|
128315
|
+
this.buttonClick.emit();
|
|
128316
|
+
}
|
|
128317
|
+
handleDropdownItemClick(evt) {
|
|
128318
|
+
this.dropdownItemClick.emit(evt.detail);
|
|
128319
|
+
evt.stopPropagation();
|
|
128320
|
+
this.closeDropdown();
|
|
128321
|
+
}
|
|
128322
|
+
handleDropdownSubActionClick(evt) {
|
|
128323
|
+
this.dropdownSubActionClick.emit(evt.detail);
|
|
128324
|
+
evt.stopPropagation();
|
|
128325
|
+
this.closeDropdown();
|
|
128326
|
+
}
|
|
128327
|
+
/**
|
|
128328
|
+
* Método responsável em posicionar o dropdown na tela.
|
|
128329
|
+
* Faz com que o dropdown se ajuste automaticamente ao espaco na tela
|
|
128330
|
+
*/
|
|
128331
|
+
positionDropdown() {
|
|
128332
|
+
const { rightButton: _rightButton, dropdownParent: _dropdownParent } = this;
|
|
128333
|
+
const rightButtonRect = _rightButton.getBoundingClientRect();
|
|
128334
|
+
const dropdownParentRect = _dropdownParent.getBoundingClientRect();
|
|
128335
|
+
const spaceBelow = window.innerHeight - rightButtonRect.bottom;
|
|
128336
|
+
const spaceAbove = rightButtonRect.top;
|
|
128337
|
+
const spaceRight = window.innerWidth - rightButtonRect.right;
|
|
128338
|
+
const spaceLeft = rightButtonRect.left;
|
|
128339
|
+
const hasSpaceBelow = spaceBelow < dropdownParentRect.height && spaceAbove > dropdownParentRect.height;
|
|
128340
|
+
const hasSpaceRight = spaceRight < dropdownParentRect.width && spaceLeft > dropdownParentRect.width;
|
|
128341
|
+
let top = `${rightButtonRect.bottom + window.scrollY}px`;
|
|
128342
|
+
let left = `${rightButtonRect.left + window.scrollX}px`;
|
|
128343
|
+
let bottom = 'auto';
|
|
128344
|
+
if (hasSpaceBelow) {
|
|
128345
|
+
bottom = `${window.innerHeight - rightButtonRect.top - window.scrollY}px`;
|
|
128346
|
+
top = 'auto';
|
|
128347
|
+
_dropdownParent.style.maxHeight = `${spaceAbove}px`;
|
|
128348
|
+
}
|
|
128349
|
+
if (hasSpaceRight) {
|
|
128350
|
+
left = `${rightButtonRect.right - dropdownParentRect.width + window.scrollX}px`;
|
|
128351
|
+
}
|
|
128352
|
+
_dropdownParent.style.top = top;
|
|
128353
|
+
_dropdownParent.style.bottom = bottom;
|
|
128354
|
+
_dropdownParent.style.left = left;
|
|
128355
|
+
}
|
|
128356
|
+
setEvents() {
|
|
128357
|
+
window.removeEventListener('scroll', this.positionDropdown.bind(this));
|
|
128358
|
+
window.addEventListener('scroll', this.positionDropdown.bind(this));
|
|
128359
|
+
}
|
|
128360
|
+
componentWillLoad() {
|
|
128361
|
+
this.setEvents();
|
|
128362
|
+
}
|
|
128363
|
+
componentDidLoad() {
|
|
128364
|
+
if (this._element)
|
|
128365
|
+
ElementIDUtils.addIDInfo(this._element);
|
|
128366
|
+
if (this.leftButton) {
|
|
128367
|
+
const dataInfo = { id: 'embedded' };
|
|
128368
|
+
ElementIDUtils.addIDInfo(this.leftButton, 'left-button', dataInfo);
|
|
128369
|
+
}
|
|
128370
|
+
if (this.rightButton) {
|
|
128371
|
+
const dataInfo = { id: 'embedded' };
|
|
128372
|
+
ElementIDUtils.addIDInfo(this.rightButton, 'right-button', dataInfo);
|
|
128373
|
+
}
|
|
128374
|
+
this.positionDropdown();
|
|
128375
|
+
}
|
|
128376
|
+
componentDidUpdate() {
|
|
128377
|
+
this.positionDropdown();
|
|
128378
|
+
}
|
|
128379
|
+
render() {
|
|
128380
|
+
const hasIconButton = this.shouldShowIconOnLeftButton();
|
|
128381
|
+
const hasLabelButton = this.shouldShowLabelOnLeftButton();
|
|
128382
|
+
const iconSize = this.getIconSize();
|
|
128383
|
+
return (h("div", { class: "label-icon" }, h("button", { class: `ez-split-button__left-button ${iconSize} ${this.mode}`, title: this.leftTitle || this.label, type: "button", disabled: !this.enabled, onClick: () => { this.handleButtonClick(); }, ref: el => (this.leftButton = el) }, hasIconButton && h("ez-icon", { href: this.image, iconName: this.iconName, size: iconSize }), hasLabelButton && h("label", { title: this.leftTitle || this.label }, this.label)), h("div", { class: "dropdown" }, h("button", { class: `ez-split-button__right-button ${iconSize} ez-split-button__right-button--${iconSize} ez-split-button__right-button--divider`, title: this.rightTitle || this.rightDefaultTitle, type: "button", disabled: !this.enabled, onClick: () => { this.toggleDropdown(); }, ref: el => (this.rightButton = el) }, h("ez-icon", { class: `ez-split-button__right-button-container ` + (iconSize ? `btn-icon--${iconSize}` : ''), iconName: 'chevron-down', size: iconSize })), h("div", { class: `dropdown-content dropdown-content--${this.size}`, ref: (ref) => (this.dropdownParent = ref) }, this.show && (h("ez-dropdown", { items: this.items, onClick: evt => { evt.stopPropagation(); }, onEzOutsideClick: () => { this.closeDropdown(); }, onEzClick: evt => { this.handleDropdownItemClick(evt); }, onEzSubActionClick: evt => { this.handleDropdownSubActionClick(evt); } }))))));
|
|
128384
|
+
}
|
|
128385
|
+
shouldShowLabelOnLeftButton() {
|
|
128386
|
+
return ['icon-left', 'default'].includes(this.mode);
|
|
128387
|
+
}
|
|
128388
|
+
shouldShowIconOnLeftButton() {
|
|
128389
|
+
return ['icon-left', 'icon-only'].includes(this.mode);
|
|
128390
|
+
}
|
|
128391
|
+
get _element() { return this; }
|
|
128392
|
+
static get style() { return ezSplitButtonCss; }
|
|
128393
|
+
};
|
|
128394
|
+
|
|
128395
|
+
const ezSplitItemCss = ".box_split-item{background-color:var(--background--xlight);width:100%;height:100%;border-radius:var(--border--radius-medium);box-shadow:var(--shadow);flex-direction:column;overflow:hidden;display:flex;padding:var(--space--nano)}.box_split-item>.ez-split-item--content{overflow:auto}.expanded__item{position:absolute;z-index:var(--more-visible);top:0;left:0;width:100%;height:100%}.ez-split-item--header{display:flex;align-items:center;justify-content:space-between}.ez-split-item--header-buttons{display:flex;align-items:center}.ez-split-item--content{display:block;height:100%}";
|
|
127808
128396
|
|
|
127809
128397
|
const SplitItem = class extends HTMLElement$1 {
|
|
127810
128398
|
constructor() {
|
|
127811
128399
|
super();
|
|
127812
128400
|
this.__registerHost();
|
|
128401
|
+
this.label = undefined;
|
|
128402
|
+
this.enableExpand = true;
|
|
128403
|
+
this._expanded = false;
|
|
128404
|
+
this.size = undefined;
|
|
128405
|
+
}
|
|
128406
|
+
/**
|
|
128407
|
+
* Alterna a visibilidade do painel.
|
|
128408
|
+
*/
|
|
128409
|
+
toggleExpandItem() {
|
|
128410
|
+
this._expanded = !this._expanded;
|
|
127813
128411
|
}
|
|
127814
128412
|
render() {
|
|
127815
|
-
return (h(Host, { class:
|
|
128413
|
+
return (h(Host, { class: `box_split-item ${this._expanded ? 'expanded__item' : ''}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("div", null, this.label && (h("div", { class: "ez-margin--small" }, h("h3", { class: " ez-title ez-title--small" }, this.label)))), h("div", { class: "ez-split-item--header-buttons" }, this.enableExpand && (h("ez-button", { size: "medium", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })), h("slot", { name: "rightButtons" }))), h("div", { class: "ez-split-item--content" }, h("slot", null))));
|
|
127816
128414
|
}
|
|
127817
128415
|
static get style() { return ezSplitItemCss; }
|
|
127818
128416
|
};
|
|
@@ -128502,6 +129100,7 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128502
129100
|
this.__registerHost();
|
|
128503
129101
|
this._items = [];
|
|
128504
129102
|
this.direction = 'column';
|
|
129103
|
+
this.anchorToExpand = false;
|
|
128505
129104
|
}
|
|
128506
129105
|
componentDidLoad() {
|
|
128507
129106
|
this._panelID = StringUtils$1.generateUUID();
|
|
@@ -128528,7 +129127,7 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128528
129127
|
getGutters() {
|
|
128529
129128
|
const gutters = {
|
|
128530
129129
|
columnGutters: [],
|
|
128531
|
-
rowGutters: []
|
|
129130
|
+
rowGutters: [],
|
|
128532
129131
|
};
|
|
128533
129132
|
if (!this._items.length) {
|
|
128534
129133
|
return gutters;
|
|
@@ -128538,19 +129137,19 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128538
129137
|
if (index == this._items.length - 1)
|
|
128539
129138
|
return;
|
|
128540
129139
|
let gutterTrack = item.dataset.trackNumber;
|
|
128541
|
-
if (index ===
|
|
129140
|
+
if (index === this._items.length - 1) {
|
|
128542
129141
|
gutterTrack = this._items.length.toString();
|
|
128543
129142
|
}
|
|
128544
129143
|
gutters[proToChange].push({
|
|
128545
129144
|
track: Number(gutterTrack),
|
|
128546
|
-
element: this._element.querySelector(`ez-split-panel[data-panel-id="${this._panelID}"] > [data-item-track="${item.dataset.trackNumber}"]`)
|
|
129145
|
+
element: this._element.querySelector(`ez-split-panel[data-panel-id="${this._panelID}"] > [data-item-track="${item.dataset.trackNumber}"]`),
|
|
128547
129146
|
});
|
|
128548
129147
|
});
|
|
128549
129148
|
return gutters;
|
|
128550
129149
|
}
|
|
128551
129150
|
addItemGutter(item) {
|
|
128552
129151
|
const gutter = document.createElement('div');
|
|
128553
|
-
gutter.classList.add(
|
|
129152
|
+
gutter.classList.add('ez-split-gutter');
|
|
128554
129153
|
gutter.classList.add(this.direction);
|
|
128555
129154
|
gutter.dataset.itemTrack = `${item.dataset.trackNumber}`;
|
|
128556
129155
|
gutter.dataset.trackNumber = (Number(item.dataset.trackNumber) + 1).toString();
|
|
@@ -128558,29 +129157,31 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128558
129157
|
}
|
|
128559
129158
|
getElementStyle() {
|
|
128560
129159
|
const style = {
|
|
128561
|
-
|
|
128562
|
-
|
|
128563
|
-
|
|
129160
|
+
display: 'grid',
|
|
129161
|
+
height: '100%',
|
|
129162
|
+
width: '100%',
|
|
129163
|
+
position: this.anchorToExpand ? 'relative' : 'unset',
|
|
128564
129164
|
};
|
|
128565
129165
|
return style;
|
|
128566
129166
|
}
|
|
128567
129167
|
getGridTemplate() {
|
|
128568
129168
|
let template = '';
|
|
128569
|
-
this._items.forEach((
|
|
129169
|
+
this._items.forEach((col, index) => {
|
|
129170
|
+
const size = col.size || '1fr';
|
|
128570
129171
|
if (index === this._items.length - 1) {
|
|
128571
|
-
template += `
|
|
129172
|
+
template += ` ${size}`;
|
|
128572
129173
|
return;
|
|
128573
129174
|
}
|
|
128574
129175
|
if (index === 0) {
|
|
128575
|
-
template +=
|
|
129176
|
+
template += `${size} 5px`;
|
|
128576
129177
|
return;
|
|
128577
129178
|
}
|
|
128578
|
-
template += `
|
|
129179
|
+
template += ` ${size} 5px`;
|
|
128579
129180
|
});
|
|
128580
129181
|
return template;
|
|
128581
129182
|
}
|
|
128582
129183
|
render() {
|
|
128583
|
-
return
|
|
129184
|
+
return h(Host, { style: this.getElementStyle() });
|
|
128584
129185
|
}
|
|
128585
129186
|
get _element() { return this; }
|
|
128586
129187
|
static get style() { return ezSplitPanelCss; }
|
|
@@ -130634,6 +131235,8 @@ const FilterColumn$1 = class extends HTMLElement$1 {
|
|
|
130634
131235
|
this.TOP_POSITION_NO_TASKBAR = '32';
|
|
130635
131236
|
this.TOP_POSITION_NO_TASKBAR_HEADER_HIDDEN = '20';
|
|
130636
131237
|
this.DEFAULT_HEIGHT = 430;
|
|
131238
|
+
this.FIX_MARGIN = 60;
|
|
131239
|
+
this.FILTER_COLUMN_WIDTH = 330;
|
|
130637
131240
|
this.opened = true;
|
|
130638
131241
|
this.columnName = undefined;
|
|
130639
131242
|
this.columnLabel = undefined;
|
|
@@ -130666,15 +131269,24 @@ const FilterColumn$1 = class extends HTMLElement$1 {
|
|
|
130666
131269
|
await this.ezPopoverElement.show(this.calcTopPosition(), this.calculateLeftPosition(configs));
|
|
130667
131270
|
}
|
|
130668
131271
|
}
|
|
130669
|
-
calculateLeftPosition(
|
|
130670
|
-
|
|
130671
|
-
|
|
131272
|
+
calculateLeftPosition({ leftPosition, fromIcon }) {
|
|
131273
|
+
const leftPositionCalculated = this.calcFilterColumnLeftPosition(leftPosition);
|
|
131274
|
+
if (!fromIcon) {
|
|
131275
|
+
return `${leftPositionCalculated}px`;
|
|
130672
131276
|
}
|
|
130673
131277
|
const difference = this.ezPopoverElement.getBoundingClientRect().left;
|
|
130674
|
-
const
|
|
130675
|
-
const leftResolved = (leftReference + 16) - difference;
|
|
131278
|
+
const leftResolved = (leftPositionCalculated + 16) - difference;
|
|
130676
131279
|
return `${(leftResolved > 0 ? leftResolved : 0)}px`;
|
|
130677
131280
|
}
|
|
131281
|
+
calcFilterColumnLeftPosition(leftReference) {
|
|
131282
|
+
var _a, _b;
|
|
131283
|
+
const gridReference = this.ezPopoverElement.closest("ez-grid");
|
|
131284
|
+
const gridLimit = (_a = gridReference.getBoundingClientRect()) === null || _a === void 0 ? void 0 : _a.right;
|
|
131285
|
+
const popoverDiff = (_b = this.ezPopoverElement.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.left;
|
|
131286
|
+
const maxLeft = gridLimit - (this.FILTER_COLUMN_WIDTH + popoverDiff);
|
|
131287
|
+
const leftInt = leftReference - (this.FIX_MARGIN + popoverDiff);
|
|
131288
|
+
return leftInt > maxLeft ? maxLeft : leftInt;
|
|
131289
|
+
}
|
|
130678
131290
|
buildIsTextSearch() {
|
|
130679
131291
|
var _a, _b;
|
|
130680
131292
|
const userInterface = (_b = (_a = this.fieldDescriptor) === null || _a === void 0 ? void 0 : _a.userInterface) !== null && _b !== void 0 ? _b : UserInterface.SHORTTEXT;
|
|
@@ -130798,7 +131410,7 @@ const EzCardItem = /*@__PURE__*/proxyCustomElement(EzCardItem$1, [1,"ez-card-ite
|
|
|
130798
131410
|
const EzCheck = /*@__PURE__*/proxyCustomElement(EzCheck$1, [1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[1540],"mode":[513],"compact":[4]}]);
|
|
130799
131411
|
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"]}]);
|
|
130800
131412
|
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]}]);
|
|
130801
|
-
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"],"
|
|
131413
|
+
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"],"canShowError":[516,"can-show-error"],"mode":[513],"hideErrorOnFocusOut":[4,"hide-error-on-focus-out"],"listOptionsPosition":[16],"isTextSearch":[4,"is-text-search"],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_criteria":[32]},[[11,"scroll","scrollListener"]]]);
|
|
130802
131414
|
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"]}]);
|
|
130803
131415
|
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"]}]);
|
|
130804
131416
|
const EzDialog = /*@__PURE__*/proxyCustomElement(EzDialog$1, [1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"beforeClose":[1040]},[[8,"keydown","handleKeyDown"]]]);
|
|
@@ -130820,11 +131432,12 @@ const EzPopover = /*@__PURE__*/proxyCustomElement(EzPopover$1, [1,"ez-popover",{
|
|
|
130820
131432
|
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"]}]);
|
|
130821
131433
|
const EzRadioButton = /*@__PURE__*/proxyCustomElement(EzRadioButton$1, [1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]);
|
|
130822
131434
|
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"]]]);
|
|
130823
|
-
const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressEmptyOption":[4,"suppress-empty-option"],"mode":[513],"canShowError":[516,"can-show-error"],"hideErrorOnFocusOut":[4,"hide-error-on-focus-out"],"listOptionsPosition":[16],"isTextSearch":[4,"is-text-search"],"ignoreLimitCharsToSearch":[4,"ignore-limit-chars-to-search"]}]);
|
|
131435
|
+
const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressEmptyOption":[4,"suppress-empty-option"],"mode":[513],"canShowError":[516,"can-show-error"],"hideErrorOnFocusOut":[4,"hide-error-on-focus-out"],"listOptionsPosition":[16],"isTextSearch":[4,"is-text-search"],"ignoreLimitCharsToSearch":[4,"ignore-limit-chars-to-search"],"options":[1040],"suppressSearch":[4,"suppress-search"],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_criteria":[32]},[[11,"scroll","scrollListener"]]]);
|
|
130824
131436
|
const EzSidebarButton = /*@__PURE__*/proxyCustomElement(EzSidebarButton$1, [1,"ez-sidebar-button"]);
|
|
130825
131437
|
const EzSkeleton = /*@__PURE__*/proxyCustomElement(EzSkeleton$1, [0,"ez-skeleton",{"count":[2],"variant":[1],"width":[1],"height":[1],"marginBottom":[1,"margin-bottom"],"animation":[1]}]);
|
|
130826
|
-
const
|
|
130827
|
-
const
|
|
131438
|
+
const EzSplitButton = /*@__PURE__*/proxyCustomElement(EzSplitButton$1, [1,"ez-split-button",{"enabled":[516],"iconName":[513,"icon-name"],"image":[513],"items":[16],"label":[513],"leftTitle":[513,"left-title"],"rightTitle":[513,"right-title"],"mode":[513],"size":[513],"show":[32]},[[2,"click","clickListener"]]]);
|
|
131439
|
+
const EzSplitItem = /*@__PURE__*/proxyCustomElement(SplitItem, [4,"ez-split-item",{"label":[1],"enableExpand":[516,"enable-expand"],"size":[1],"_expanded":[32]}]);
|
|
131440
|
+
const EzSplitPanel = /*@__PURE__*/proxyCustomElement(SplitPanel, [0,"ez-split-panel",{"direction":[1],"anchorToExpand":[4,"anchor-to-expand"]}]);
|
|
130828
131441
|
const EzTabselector = /*@__PURE__*/proxyCustomElement(EzTabselector$1, [1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]);
|
|
130829
131442
|
const EzTextArea = /*@__PURE__*/proxyCustomElement(EzTextArea$1, [1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"canShowError":[516,"can-show-error"],"mode":[513],"enableResize":[516,"enable-resize"]}]);
|
|
130830
131443
|
const EzTextEdit = /*@__PURE__*/proxyCustomElement(EzTextEdit$1, [1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32]}]);
|
|
@@ -130876,6 +131489,7 @@ const defineCustomElements = (opts) => {
|
|
|
130876
131489
|
EzSearch,
|
|
130877
131490
|
EzSidebarButton,
|
|
130878
131491
|
EzSkeleton,
|
|
131492
|
+
EzSplitButton,
|
|
130879
131493
|
EzSplitItem,
|
|
130880
131494
|
EzSplitPanel,
|
|
130881
131495
|
EzTabselector,
|
|
@@ -130897,4 +131511,4 @@ const defineCustomElements = (opts) => {
|
|
|
130897
131511
|
}
|
|
130898
131512
|
};
|
|
130899
131513
|
|
|
130900
|
-
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzDateInput, EzDateTimeInput, EzDialog, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSidebarButton, EzSkeleton, EzSplitItem, EzSplitPanel, EzTabselector, EzTextArea, EzTextEdit, EzTextInput, EzTimeInput, EzToast, EzTree, EzUpload, EzViewStack, FilterColumn, MultiSelectionBoxMessage, defineCustomElements };
|
|
131514
|
+
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzDateInput, EzDateTimeInput, EzDialog, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSidebarButton, EzSkeleton, EzSplitButton, EzSplitItem, EzSplitPanel, EzTabselector, EzTextArea, EzTextEdit, EzTextInput, EzTimeInput, EzToast, EzTree, EzUpload, EzViewStack, FilterColumn, MultiSelectionBoxMessage, defineCustomElements };
|