@sankhyalabs/ezui 5.20.0-dev.1 → 5.20.0-dev.10
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 +11 -155
- package/dist/cjs/ez-form-view.cjs.entry.js +4 -2
- package/dist/cjs/ez-grid.cjs.entry.js +20 -21
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- 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-item.cjs.entry.js +11 -2
- package/dist/cjs/ez-split-panel.cjs.entry.js +11 -9
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/filter-column.cjs.entry.js +16 -5
- package/dist/cjs/index-a7b0c73d.js +2 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -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 +12 -173
- 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 +7 -10
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +12 -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-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-panel/ez-split-panel.css +7 -7
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +30 -10
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +36 -12
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +57 -2
- package/dist/collection/utils/form/test/DataBinder.test.js +9 -0
- package/dist/custom-elements/index.js +727 -266
- 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 +12 -156
- package/dist/esm/ez-form-view.entry.js +4 -2
- package/dist/esm/ez-grid.entry.js +20 -21
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +613 -33
- package/dist/esm/ez-split-item.entry.js +12 -3
- package/dist/esm/ez-split-panel.entry.js +11 -9
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/filter-column.entry.js +16 -5
- package/dist/esm/index-baa5e267.js +2 -6
- 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-133fae4a.entry.js +1 -0
- package/dist/ezui/p-13dbad96.entry.js +1 -0
- package/dist/ezui/{p-f56dd1da.entry.js → p-300bf244.entry.js} +1 -1
- package/dist/ezui/p-428a05fe.entry.js +1 -0
- package/dist/ezui/p-60848ef6.entry.js +1 -0
- package/dist/ezui/p-940ed30b.entry.js +1 -0
- package/dist/ezui/{p-6e2f8e6b.entry.js → p-ab629244.entry.js} +1 -1
- package/dist/ezui/p-baf80b13.entry.js +1 -0
- package/dist/ezui/p-cd0499a2.entry.js +1 -0
- package/dist/ezui/p-e52cbcc7.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/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-search/ez-search.d.ts +100 -10
- 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 +17 -0
- package/dist/types/components.d.ts +47 -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 -5
- 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-4a7f113d.entry.js +0 -1
- package/dist/ezui/p-5613fe63.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;
|
|
@@ -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
|
|
|
@@ -4834,6 +4692,10 @@ const EzForm$1 = class extends HTMLElement$1 {
|
|
|
4834
4692
|
static get style() { return ezFormCss; }
|
|
4835
4693
|
};
|
|
4836
4694
|
|
|
4695
|
+
const REQUIRED_INFO = " (obrigatório) *";
|
|
4696
|
+
const DISTINCT_FILTER_NAME_PREFIX = 'FILTRO_COLUNA_';
|
|
4697
|
+
const EZ_GRID_LOADING_SOURCE = "EZ_GRID_LOADING_SOURCE";
|
|
4698
|
+
|
|
4837
4699
|
const buildSwitch$1 = (field) => {
|
|
4838
4700
|
return buildField(field.name, field.label, field.readOnly, field.contextName, true);
|
|
4839
4701
|
};
|
|
@@ -4875,9 +4737,11 @@ const buildDateTime$1 = ({ name, label, readOnly, contextName, canShowError }) =
|
|
|
4875
4737
|
const buildFile = ({ name, label, readOnly, contextName, props }) => {
|
|
4876
4738
|
const uploadProps = ObjectUtils$1.removeEmptyValues({
|
|
4877
4739
|
subTitle: props.subTitle,
|
|
4878
|
-
requestHeaders: props.STORAGESTRATEGY
|
|
4740
|
+
requestHeaders: Object.assign(Object.assign({}, (props.STORAGESTRATEGY && {
|
|
4879
4741
|
STORAGESTRATEGY: props.STORAGESTRATEGY
|
|
4880
|
-
}
|
|
4742
|
+
})), (props.INTERNAL_FILENAME && {
|
|
4743
|
+
INTERNAL_FILENAME: props.INTERNAL_FILENAME
|
|
4744
|
+
})),
|
|
4881
4745
|
});
|
|
4882
4746
|
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
4883
4747
|
h("ez-upload", Object.assign({ enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name }, uploadProps))));
|
|
@@ -123842,6 +123706,14 @@ var AllEnterpriseModules = [
|
|
|
123842
123706
|
ModuleRegistry.registerModules(AllEnterpriseModules);
|
|
123843
123707
|
|
|
123844
123708
|
class DataSource {
|
|
123709
|
+
updateLoadedRecords(action) {
|
|
123710
|
+
const records = action.payload;
|
|
123711
|
+
if ((records === null || records === void 0 ? void 0 : records.length) > 0) {
|
|
123712
|
+
records.forEach(record => {
|
|
123713
|
+
this._controller.changeValues(record, [record.__record__id__]);
|
|
123714
|
+
});
|
|
123715
|
+
}
|
|
123716
|
+
}
|
|
123845
123717
|
isSilentChange(action) {
|
|
123846
123718
|
//TODO: Provisorio p/ não atualizar a grade quando a alteração for apenas de campos transisntes
|
|
123847
123719
|
var _a, _b;
|
|
@@ -123894,6 +123766,9 @@ class DataSource {
|
|
|
123894
123766
|
case Action.PREVIOUS_SELECTED:
|
|
123895
123767
|
this.updateSelection();
|
|
123896
123768
|
break;
|
|
123769
|
+
case Action.RECORD_LOADED:
|
|
123770
|
+
this.updateLoadedRecords(action);
|
|
123771
|
+
break;
|
|
123897
123772
|
}
|
|
123898
123773
|
};
|
|
123899
123774
|
this._dataUnit = dataUnit;
|
|
@@ -123963,15 +123838,6 @@ class DataSource {
|
|
|
123963
123838
|
}
|
|
123964
123839
|
}
|
|
123965
123840
|
|
|
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
123841
|
class EzGridCustomHeader {
|
|
123976
123842
|
init(agParams) {
|
|
123977
123843
|
var _a;
|
|
@@ -124008,8 +123874,7 @@ class EzGridCustomHeader {
|
|
|
124008
123874
|
}
|
|
124009
123875
|
onClickFilter() {
|
|
124010
123876
|
var _a;
|
|
124011
|
-
|
|
124012
|
-
this.params.showColumnFilter(`${calcFilterColumnLeftPosition(iconLeft)}px`, true);
|
|
123877
|
+
this.params.showColumnFilter((_a = this.filterButton) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left);
|
|
124013
123878
|
}
|
|
124014
123879
|
configSortIcon() {
|
|
124015
123880
|
this.sortDownIcon.style.display = this.params.column.isSortDescending() ? 'flex' : 'none';
|
|
@@ -124686,7 +124551,7 @@ class AgGridController {
|
|
|
124686
124551
|
this._idAttribName = '__record__id__';
|
|
124687
124552
|
this._gridConfig = [];
|
|
124688
124553
|
this._filteredColumns = new Map();
|
|
124689
|
-
this._filterColumnleftPosition =
|
|
124554
|
+
this._filterColumnleftPosition = 0;
|
|
124690
124555
|
this._enterprise = enterprise;
|
|
124691
124556
|
}
|
|
124692
124557
|
getGridConfig() {
|
|
@@ -124812,11 +124677,9 @@ class AgGridController {
|
|
|
124812
124677
|
this._gridOptions.api.setHeaderHeight(this.getHeaderRowHeight());
|
|
124813
124678
|
}
|
|
124814
124679
|
}
|
|
124815
|
-
setFilterColumnLeftPosition(
|
|
124816
|
-
if (
|
|
124817
|
-
|
|
124818
|
-
const leftString = ePopup.style.left.replace('px', '');
|
|
124819
|
-
this._filterColumnleftPosition = `${calcFilterColumnLeftPosition(parseInt(leftString))}px`;
|
|
124680
|
+
setFilterColumnLeftPosition({ type, ePopup }) {
|
|
124681
|
+
if (type === 'columnMenu') {
|
|
124682
|
+
this._filterColumnleftPosition = ePopup.getBoundingClientRect().left;
|
|
124820
124683
|
return;
|
|
124821
124684
|
}
|
|
124822
124685
|
}
|
|
@@ -125256,7 +125119,7 @@ class AgGridController {
|
|
|
125256
125119
|
tooltip: tooltip,
|
|
125257
125120
|
isSortable: propSortable,
|
|
125258
125121
|
hasFilter: () => this.hasFilterColumn(source.name),
|
|
125259
|
-
showColumnFilter: (leftPosition
|
|
125122
|
+
showColumnFilter: (leftPosition) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name), fromIcon: true }),
|
|
125260
125123
|
},
|
|
125261
125124
|
valueFormatter: params => {
|
|
125262
125125
|
if (params.value == undefined) {
|
|
@@ -125641,13 +125504,13 @@ class InMemoryFilterColumnDataSource {
|
|
|
125641
125504
|
}
|
|
125642
125505
|
}
|
|
125643
125506
|
|
|
125644
|
-
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100
|
|
125507
|
+
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
125508
|
|
|
125646
125509
|
const windowInstace$1 = window;
|
|
125647
125510
|
const matches = (text, filter) => {
|
|
125648
|
-
const normalizedText = StringUtils$1.replaceAccentuatedCharsLower(text.toLocaleLowerCase());
|
|
125511
|
+
const normalizedText = StringUtils$1.replaceAccentuatedCharsLower(text === null || text === void 0 ? void 0 : text.toLocaleLowerCase());
|
|
125649
125512
|
const normalizedFilter = StringUtils$1.replaceAccentuatedCharsLower(filter.toLocaleLowerCase());
|
|
125650
|
-
return normalizedText.includes(normalizedFilter);
|
|
125513
|
+
return normalizedText === null || normalizedText === void 0 ? void 0 : normalizedText.includes(normalizedFilter);
|
|
125651
125514
|
};
|
|
125652
125515
|
const EzGrid$1 = class extends HTMLElement$1 {
|
|
125653
125516
|
constructor() {
|
|
@@ -126081,7 +125944,7 @@ const EzGuideNavigator$1 = class extends HTMLElement$1 {
|
|
|
126081
125944
|
static get style() { return ezGuideNavigatorCss; }
|
|
126082
125945
|
};
|
|
126083
125946
|
|
|
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-
|
|
125947
|
+
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
125948
|
|
|
126086
125949
|
const EzIcon$1 = class extends HTMLElement$1 {
|
|
126087
125950
|
constructor() {
|
|
@@ -127335,7 +127198,7 @@ const EzPopover$1 = class extends HTMLElement$1 {
|
|
|
127335
127198
|
static get style() { return ezPopoverCss; }
|
|
127336
127199
|
};
|
|
127337
127200
|
|
|
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%;
|
|
127201
|
+
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
127202
|
|
|
127340
127203
|
const EzPopup$1 = class extends HTMLElement$1 {
|
|
127341
127204
|
constructor() {
|
|
@@ -127628,7 +127491,7 @@ class ScrollCtrl {
|
|
|
127628
127491
|
}
|
|
127629
127492
|
}
|
|
127630
127493
|
|
|
127631
|
-
const ezSearchCss = ":host{width:100%}";
|
|
127494
|
+
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
127495
|
|
|
127633
127496
|
const EzSearch$1 = class extends HTMLElement$1 {
|
|
127634
127497
|
constructor() {
|
|
@@ -127636,6 +127499,21 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127636
127499
|
this.__registerHost();
|
|
127637
127500
|
this.__attachShadow();
|
|
127638
127501
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
127502
|
+
this._changeDeboucingTimeout = null;
|
|
127503
|
+
this._limitCharsToSearch = 3;
|
|
127504
|
+
this._deboucingTime = 300;
|
|
127505
|
+
this._maxWidthValue = 0;
|
|
127506
|
+
this._tabPressed = false;
|
|
127507
|
+
this._textEmptyList = "Nenhum resultado encontrado";
|
|
127508
|
+
this._textEmptySearch = "Nenhum resultado de {0} encontrado";
|
|
127509
|
+
this._lookupMode = false;
|
|
127510
|
+
this._startHighlightTag = "<span class='card-item__highlight'>";
|
|
127511
|
+
this._endHighlightTag = "</span>";
|
|
127512
|
+
this._preSelection = undefined;
|
|
127513
|
+
this._visibleOptions = undefined;
|
|
127514
|
+
this._startLoading = false;
|
|
127515
|
+
this._showLoading = true;
|
|
127516
|
+
this._criteria = undefined;
|
|
127639
127517
|
this.value = undefined;
|
|
127640
127518
|
this.label = undefined;
|
|
127641
127519
|
this.enabled = true;
|
|
@@ -127650,28 +127528,82 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127650
127528
|
this.listOptionsPosition = undefined;
|
|
127651
127529
|
this.isTextSearch = false;
|
|
127652
127530
|
this.ignoreLimitCharsToSearch = false;
|
|
127531
|
+
this.options = undefined;
|
|
127532
|
+
this.suppressSearch = false;
|
|
127653
127533
|
}
|
|
127654
127534
|
observeErrorMessage() {
|
|
127655
|
-
|
|
127656
|
-
|
|
127535
|
+
var _a;
|
|
127536
|
+
if (this._textInput) {
|
|
127537
|
+
this._textInput.errorMessage = this.errorMessage;
|
|
127538
|
+
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
127539
|
+
this.setInputValue();
|
|
127540
|
+
}
|
|
127657
127541
|
}
|
|
127658
127542
|
}
|
|
127659
|
-
observeValue() {
|
|
127660
|
-
if (this.
|
|
127661
|
-
|
|
127543
|
+
observeValue(newValue, oldValue) {
|
|
127544
|
+
if (this._textInput && newValue != oldValue) {
|
|
127545
|
+
try {
|
|
127546
|
+
if (newValue === "string") {
|
|
127547
|
+
this.setInputValue();
|
|
127548
|
+
return;
|
|
127549
|
+
}
|
|
127550
|
+
const newValueSelected = this.getSelectedOption(newValue);
|
|
127551
|
+
const oldValueSelected = this.getSelectedOption(oldValue);
|
|
127552
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
127553
|
+
if (this.isDifferentValues(currentValue, newValueSelected)) {
|
|
127554
|
+
this.value = newValueSelected;
|
|
127555
|
+
}
|
|
127556
|
+
if (this.isDifferentValues(newValueSelected, oldValueSelected)) {
|
|
127557
|
+
this.setInputValue();
|
|
127558
|
+
const valueEmitted = newValueSelected === null ? undefined : newValueSelected;
|
|
127559
|
+
if (!this._lookupMode) {
|
|
127560
|
+
this.ezChange.emit(valueEmitted);
|
|
127561
|
+
}
|
|
127562
|
+
}
|
|
127563
|
+
this.resetOptions();
|
|
127564
|
+
}
|
|
127565
|
+
finally {
|
|
127566
|
+
this._lookupMode = false;
|
|
127567
|
+
}
|
|
127568
|
+
}
|
|
127569
|
+
}
|
|
127570
|
+
observeOptions(newOptions, oldOptions) {
|
|
127571
|
+
if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
|
|
127572
|
+
return;
|
|
127573
|
+
this.loadOptions(SearchMode.PRELOAD);
|
|
127574
|
+
}
|
|
127575
|
+
/*
|
|
127576
|
+
* Retorna uma promise com o valor da opção selecionada,
|
|
127577
|
+
* que será resolvida quando o backend devolver este dado.
|
|
127578
|
+
*/
|
|
127579
|
+
async getValueAsync() {
|
|
127580
|
+
if (!this._showLoading) {
|
|
127581
|
+
return new Promise(resolve => resolve(this.value));
|
|
127662
127582
|
}
|
|
127583
|
+
return new Promise(resolve => {
|
|
127584
|
+
let id = setInterval(() => {
|
|
127585
|
+
if (!this._showLoading) {
|
|
127586
|
+
clearInterval(id);
|
|
127587
|
+
resolve(this.value);
|
|
127588
|
+
}
|
|
127589
|
+
}, 100);
|
|
127590
|
+
});
|
|
127663
127591
|
}
|
|
127664
127592
|
/**
|
|
127665
|
-
|
|
127666
|
-
|
|
127593
|
+
* Aplica o foco no campo.
|
|
127594
|
+
*/
|
|
127667
127595
|
async setFocus() {
|
|
127668
|
-
this.
|
|
127596
|
+
if (this._textInput) {
|
|
127597
|
+
this._textInput.setFocus();
|
|
127598
|
+
}
|
|
127669
127599
|
}
|
|
127670
127600
|
/**
|
|
127671
|
-
|
|
127672
|
-
|
|
127601
|
+
* Remove o foco do campo.
|
|
127602
|
+
*/
|
|
127673
127603
|
async setBlur() {
|
|
127674
|
-
this.
|
|
127604
|
+
if (this._textInput) {
|
|
127605
|
+
this._textInput.setBlur();
|
|
127606
|
+
}
|
|
127675
127607
|
}
|
|
127676
127608
|
/**
|
|
127677
127609
|
* Retorna se o conteúdo é inválido.
|
|
@@ -127683,40 +127615,547 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127683
127615
|
* Limpa o valor do campo de pesquisa
|
|
127684
127616
|
*/
|
|
127685
127617
|
async clearValue() {
|
|
127618
|
+
this.clearSearch();
|
|
127619
|
+
}
|
|
127620
|
+
scrollListener() {
|
|
127621
|
+
var _a;
|
|
127622
|
+
if (this._floatingID == undefined) {
|
|
127623
|
+
return;
|
|
127624
|
+
}
|
|
127625
|
+
if ((_a = this.listOptionsPosition) === null || _a === void 0 ? void 0 : _a.hardPosition) {
|
|
127626
|
+
this.hideOptions();
|
|
127627
|
+
}
|
|
127628
|
+
else {
|
|
127629
|
+
window.requestAnimationFrame(() => {
|
|
127630
|
+
this.updateListPosition();
|
|
127631
|
+
});
|
|
127632
|
+
}
|
|
127633
|
+
}
|
|
127634
|
+
updateListPosition() {
|
|
127635
|
+
let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
|
|
127636
|
+
const elementRect = this._listWrapper.getBoundingClientRect();
|
|
127637
|
+
const containerRect = this._listContainer.getBoundingClientRect();
|
|
127638
|
+
const textInputRect = this._textInput.getBoundingClientRect();
|
|
127639
|
+
const limitHeight = bottomLimit || window.innerHeight;
|
|
127640
|
+
const neededHeight = containerRect.bottom + elementRect.height;
|
|
127641
|
+
if (!fromBottom && (elementRect.top < 0 || neededHeight > limitHeight)) {
|
|
127642
|
+
fromBottom = true;
|
|
127643
|
+
}
|
|
127644
|
+
if (!hardPosition) {
|
|
127645
|
+
verticalPosition = verticalPosition || 0;
|
|
127646
|
+
horizontalPosition = horizontalPosition || 0;
|
|
127647
|
+
if (fromBottom) {
|
|
127648
|
+
verticalPosition = window.innerHeight - textInputRect.top + verticalPosition;
|
|
127649
|
+
}
|
|
127650
|
+
else {
|
|
127651
|
+
verticalPosition += containerRect.top;
|
|
127652
|
+
}
|
|
127653
|
+
if (fromRight) {
|
|
127654
|
+
horizontalPosition = window.innerWidth - textInputRect.right + horizontalPosition;
|
|
127655
|
+
}
|
|
127656
|
+
else {
|
|
127657
|
+
horizontalPosition += containerRect.left;
|
|
127658
|
+
}
|
|
127659
|
+
}
|
|
127660
|
+
if (verticalPosition != undefined) {
|
|
127661
|
+
this._listWrapper.style[fromBottom ? "bottom" : "top"] = `${verticalPosition}px`;
|
|
127662
|
+
this._listWrapper.style[fromBottom ? "top" : "bottom"] = "";
|
|
127663
|
+
}
|
|
127664
|
+
if (horizontalPosition != undefined) {
|
|
127665
|
+
this._listWrapper.style[fromRight ? "right" : "left"] = `${horizontalPosition}px`;
|
|
127666
|
+
this._listWrapper.style[fromRight ? "left" : "right"] = "";
|
|
127667
|
+
}
|
|
127668
|
+
}
|
|
127669
|
+
getListPosition() {
|
|
127670
|
+
if (this.listOptionsPosition) {
|
|
127671
|
+
return this.listOptionsPosition;
|
|
127672
|
+
}
|
|
127673
|
+
return {
|
|
127674
|
+
verticalPosition: (this.errorMessage || !this.canShowError || this.mode === "slim") ? 6 : -13
|
|
127675
|
+
};
|
|
127676
|
+
}
|
|
127677
|
+
isDifferentValues(firstValue, secondValue) {
|
|
127678
|
+
return ObjectUtils$1.objectToString(firstValue || {}) !== ObjectUtils$1.objectToString(secondValue || {});
|
|
127679
|
+
}
|
|
127680
|
+
getFormattedText(currentValue) {
|
|
127681
|
+
if (currentValue == undefined) {
|
|
127682
|
+
return;
|
|
127683
|
+
}
|
|
127684
|
+
if (!this.showSelectedValue || currentValue.value == undefined) {
|
|
127685
|
+
return currentValue.label;
|
|
127686
|
+
}
|
|
127687
|
+
return currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
|
|
127688
|
+
}
|
|
127689
|
+
getText() {
|
|
127690
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
127691
|
+
const text = this.getFormattedText(currentValue);
|
|
127692
|
+
if (text == undefined) {
|
|
127693
|
+
return;
|
|
127694
|
+
}
|
|
127695
|
+
return String(text)
|
|
127696
|
+
.replace(/&/g, '&')
|
|
127697
|
+
.replace(/</g, '<')
|
|
127698
|
+
.replace(/>/g, '>')
|
|
127699
|
+
.replace(/"/g, '"');
|
|
127700
|
+
}
|
|
127701
|
+
getSelectedOption(value) {
|
|
127702
|
+
if (typeof value === "string" || value instanceof String) {
|
|
127703
|
+
return this._visibleOptions.find(o => o.value === value);
|
|
127704
|
+
}
|
|
127705
|
+
return value;
|
|
127706
|
+
}
|
|
127707
|
+
updateVisibleOptions() {
|
|
127708
|
+
let opts = this._source || [];
|
|
127709
|
+
if (this.suppressEmptyOption) {
|
|
127710
|
+
this._visibleOptions = opts;
|
|
127711
|
+
}
|
|
127712
|
+
else {
|
|
127713
|
+
this._visibleOptions = [{ value: undefined, label: "" }].concat(opts);
|
|
127714
|
+
}
|
|
127715
|
+
this._maxWidthValue = this.getMaxWidthValue();
|
|
127716
|
+
}
|
|
127717
|
+
getMaxWidthValue() {
|
|
127718
|
+
var _a;
|
|
127719
|
+
const arrValues = [];
|
|
127720
|
+
(_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.forEach(opt => {
|
|
127721
|
+
const widthValue = this.getWidthValue(opt.value);
|
|
127722
|
+
if (!arrValues.includes(widthValue)) {
|
|
127723
|
+
arrValues.push(widthValue);
|
|
127724
|
+
}
|
|
127725
|
+
});
|
|
127726
|
+
return arrValues.length > 1 ? Math.max(...arrValues) : 0;
|
|
127727
|
+
}
|
|
127728
|
+
getWidthValue(value) {
|
|
127729
|
+
if (this._itemValueBasis != undefined) {
|
|
127730
|
+
const span = this._itemValueBasis;
|
|
127731
|
+
if (value != undefined) {
|
|
127732
|
+
span.innerHTML = value;
|
|
127733
|
+
return span.clientWidth > 0 ? (span.clientWidth + 2) : 0;
|
|
127734
|
+
}
|
|
127735
|
+
else {
|
|
127736
|
+
span.innerHTML = "";
|
|
127737
|
+
}
|
|
127738
|
+
}
|
|
127739
|
+
return 0;
|
|
127740
|
+
}
|
|
127741
|
+
createOption(detail) {
|
|
127742
|
+
let { key, title } = detail;
|
|
127743
|
+
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
127744
|
+
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
127745
|
+
title = StringUtils$1.decodeHtmlEntities(title);
|
|
127746
|
+
const option = {
|
|
127747
|
+
value: key === null || key === void 0 ? void 0 : key.replace(startHighlight, '').replace(endHighlight, ''),
|
|
127748
|
+
label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
|
|
127749
|
+
};
|
|
127750
|
+
this.selectOption(option);
|
|
127751
|
+
}
|
|
127752
|
+
buildItem(opt, index) {
|
|
127753
|
+
opt.label = opt.label || opt.value;
|
|
127754
|
+
const card = {
|
|
127755
|
+
key: opt.value,
|
|
127756
|
+
title: opt.label,
|
|
127757
|
+
details: opt.details
|
|
127758
|
+
};
|
|
127759
|
+
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 }));
|
|
127760
|
+
}
|
|
127761
|
+
showOptions() {
|
|
127762
|
+
if (!this.enabled)
|
|
127763
|
+
return;
|
|
127764
|
+
if (this.isOptionsVisible()) {
|
|
127765
|
+
return;
|
|
127766
|
+
}
|
|
127767
|
+
if (!!this._resizeObserver)
|
|
127768
|
+
this._resizeObserver.observe(this._textInput);
|
|
127769
|
+
this._floatingID = FloatingManager.float(this._listWrapper, this._listContainer, { autoClose: false, isFixed: true, backClickListener: () => this.hideOptions() });
|
|
127770
|
+
this.setFocus();
|
|
127771
|
+
window.requestAnimationFrame(() => {
|
|
127772
|
+
this.updateListPosition();
|
|
127773
|
+
if (!this.listOptionsPosition) {
|
|
127774
|
+
this._listWrapper.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
127775
|
+
}
|
|
127776
|
+
});
|
|
127777
|
+
}
|
|
127778
|
+
hideOptions() {
|
|
127779
|
+
if (this._floatingID !== undefined) {
|
|
127780
|
+
FloatingManager.close(this._floatingID);
|
|
127781
|
+
}
|
|
127782
|
+
this._floatingID = undefined;
|
|
127783
|
+
if (!!this._resizeObserver)
|
|
127784
|
+
this._resizeObserver.unobserve(this._textInput);
|
|
127785
|
+
}
|
|
127786
|
+
isOptionsVisible() {
|
|
127787
|
+
return this._floatingID !== undefined && FloatingManager.isFloating(this._floatingID);
|
|
127788
|
+
}
|
|
127789
|
+
nextOption() {
|
|
127790
|
+
if (!this.isOptionsVisible()) {
|
|
127791
|
+
return;
|
|
127792
|
+
}
|
|
127793
|
+
this.showOptions();
|
|
127794
|
+
this._preSelection = this._preSelection === undefined ? 0 : Math.min(this._preSelection + 1, this._visibleOptions.length - 1);
|
|
127795
|
+
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
127796
|
+
}
|
|
127797
|
+
previousOption() {
|
|
127798
|
+
this._preSelection = this._preSelection === undefined ? 0 : Math.max(this._preSelection - 1, 0);
|
|
127799
|
+
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
127800
|
+
}
|
|
127801
|
+
scrollToOption(opt) {
|
|
127802
|
+
window.requestAnimationFrame(() => {
|
|
127803
|
+
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`div#item_${opt.value.replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
|
|
127804
|
+
if (liElem)
|
|
127805
|
+
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
127806
|
+
});
|
|
127807
|
+
}
|
|
127808
|
+
selectCurrentOption() {
|
|
127809
|
+
if (this._preSelection !== undefined) {
|
|
127810
|
+
this.selectOption(this._visibleOptions[this._preSelection]);
|
|
127811
|
+
this._preSelection = undefined;
|
|
127812
|
+
}
|
|
127813
|
+
else {
|
|
127814
|
+
this.controlListWithOnlyOne();
|
|
127815
|
+
}
|
|
127816
|
+
}
|
|
127817
|
+
updateSource(source) {
|
|
127818
|
+
this._startLoading = false;
|
|
127819
|
+
if (source instanceof Promise) {
|
|
127820
|
+
this._showLoading = true;
|
|
127821
|
+
source.then(result => {
|
|
127822
|
+
this._showLoading = false;
|
|
127823
|
+
this.updateSource(result);
|
|
127824
|
+
}).catch(() => this._showLoading = false);
|
|
127825
|
+
this.updateVisibleOptions();
|
|
127826
|
+
}
|
|
127827
|
+
else {
|
|
127828
|
+
this._showLoading = false;
|
|
127829
|
+
if (Array.isArray(source)) {
|
|
127830
|
+
this._source = source;
|
|
127831
|
+
this.updateVisibleOptions();
|
|
127832
|
+
if (this._tabPressed) {
|
|
127833
|
+
this._tabPressed = false;
|
|
127834
|
+
this.controlEmptySearch();
|
|
127835
|
+
}
|
|
127836
|
+
}
|
|
127837
|
+
else {
|
|
127838
|
+
this.selectOption(source);
|
|
127839
|
+
}
|
|
127840
|
+
}
|
|
127841
|
+
}
|
|
127842
|
+
clearSource() {
|
|
127843
|
+
this._source = [];
|
|
127844
|
+
this.updateVisibleOptions();
|
|
127845
|
+
}
|
|
127846
|
+
selectOption(newOption) {
|
|
127686
127847
|
var _a, _b;
|
|
127687
|
-
|
|
127848
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
127849
|
+
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()))
|
|
127850
|
+
|| (currentValue == undefined && newOption != undefined && "value" in newOption)) {
|
|
127851
|
+
const adjustedOpt = !(newOption === null || newOption === void 0 ? void 0 : newOption.value) ? undefined : newOption;
|
|
127852
|
+
this.value = adjustedOpt;
|
|
127853
|
+
}
|
|
127854
|
+
else {
|
|
127855
|
+
this.resetOptions();
|
|
127856
|
+
}
|
|
127857
|
+
this._visibleOptions = [];
|
|
127858
|
+
this.clearSource();
|
|
127688
127859
|
}
|
|
127689
|
-
|
|
127690
|
-
|
|
127691
|
-
|
|
127692
|
-
|
|
127693
|
-
|
|
127860
|
+
loadOptions(mode, argument = "") {
|
|
127861
|
+
this._criteria = argument;
|
|
127862
|
+
this._startLoading = true;
|
|
127863
|
+
if (this.optionLoader) {
|
|
127864
|
+
const searchArgument = { mode, argument };
|
|
127865
|
+
this.updateSource(this.optionLoader(searchArgument));
|
|
127866
|
+
}
|
|
127867
|
+
else {
|
|
127868
|
+
this.updateSource(this.options);
|
|
127869
|
+
}
|
|
127870
|
+
}
|
|
127871
|
+
cancelPreselection() {
|
|
127872
|
+
if (!this._textInput.value && this.value) {
|
|
127873
|
+
this.selectOption(undefined);
|
|
127874
|
+
}
|
|
127875
|
+
else {
|
|
127876
|
+
window.setTimeout(() => {
|
|
127877
|
+
this.setInputValue();
|
|
127878
|
+
}, this._deboucingTime);
|
|
127879
|
+
}
|
|
127880
|
+
this.resetOptions();
|
|
127881
|
+
}
|
|
127882
|
+
setInputValue(clearError = true) {
|
|
127883
|
+
const textValue = this.getText();
|
|
127884
|
+
if ((this._textInput.value || '') !== textValue) {
|
|
127885
|
+
this._textInput.value = textValue;
|
|
127886
|
+
if (clearError) {
|
|
127887
|
+
this.errorMessage = null;
|
|
127888
|
+
}
|
|
127889
|
+
}
|
|
127890
|
+
}
|
|
127891
|
+
clearSearch() {
|
|
127892
|
+
this.value = null;
|
|
127893
|
+
}
|
|
127894
|
+
controlListWithOnlyOne() {
|
|
127895
|
+
var _a, _b;
|
|
127896
|
+
const source = (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.filter((opt) => opt.label !== "" && opt.value != undefined);
|
|
127897
|
+
if ((source === null || source === void 0 ? void 0 : source.length) > 0) {
|
|
127898
|
+
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
127899
|
+
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
127900
|
+
let title = StringUtils$1.decodeHtmlEntities(source[0].label);
|
|
127901
|
+
const option = {
|
|
127902
|
+
value: (_b = source[0].value) === null || _b === void 0 ? void 0 : _b.replace(startHighlight, '').replace(endHighlight, ''),
|
|
127903
|
+
label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
|
|
127904
|
+
};
|
|
127905
|
+
this.selectOption(option);
|
|
127906
|
+
}
|
|
127907
|
+
}
|
|
127908
|
+
controlEmptySearch() {
|
|
127694
127909
|
var _a;
|
|
127695
|
-
|
|
127910
|
+
if (!((_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
127911
|
+
this.clearSearch();
|
|
127912
|
+
ApplicationUtils.info(this._textEmptyList);
|
|
127913
|
+
}
|
|
127914
|
+
else {
|
|
127915
|
+
this.controlListWithOnlyOne();
|
|
127916
|
+
}
|
|
127696
127917
|
}
|
|
127697
|
-
|
|
127698
|
-
|
|
127699
|
-
|
|
127700
|
-
|
|
127701
|
-
|
|
127702
|
-
|
|
127918
|
+
validateDescriptionValue() {
|
|
127919
|
+
if (StringUtils$1.isEmpty(this.value)) {
|
|
127920
|
+
return;
|
|
127921
|
+
}
|
|
127922
|
+
let value = this.value;
|
|
127923
|
+
if (typeof value === "object") {
|
|
127924
|
+
return;
|
|
127925
|
+
}
|
|
127926
|
+
if (StringUtils$1.isEmpty(value)) {
|
|
127927
|
+
return;
|
|
127703
127928
|
}
|
|
127929
|
+
this.loadDescriptionValue(value);
|
|
127930
|
+
}
|
|
127931
|
+
async loadDescriptionValue(argument) {
|
|
127932
|
+
var _a, _b;
|
|
127933
|
+
if (argument == undefined) {
|
|
127934
|
+
return;
|
|
127935
|
+
}
|
|
127936
|
+
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
127937
|
+
this.loadOptionValue(argument);
|
|
127938
|
+
return;
|
|
127939
|
+
}
|
|
127940
|
+
const searchArgument = {
|
|
127941
|
+
mode: SearchMode.PREDICTIVE,
|
|
127942
|
+
argument
|
|
127943
|
+
};
|
|
127944
|
+
const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument));
|
|
127945
|
+
if (source == undefined) {
|
|
127946
|
+
return;
|
|
127947
|
+
}
|
|
127948
|
+
if (source instanceof Promise) {
|
|
127949
|
+
source.then((result) => {
|
|
127950
|
+
this.setDescriptionValue(result);
|
|
127951
|
+
});
|
|
127952
|
+
}
|
|
127953
|
+
else {
|
|
127954
|
+
this.setDescriptionValue(source);
|
|
127955
|
+
}
|
|
127956
|
+
}
|
|
127957
|
+
setDescriptionValue(source) {
|
|
127958
|
+
const value = (source === null || source === void 0 ? void 0 : source[0]) || source;
|
|
127959
|
+
if (value == undefined || !Object.keys(value).length) {
|
|
127960
|
+
this.showNoResultMessage();
|
|
127961
|
+
return;
|
|
127962
|
+
}
|
|
127963
|
+
this._lookupMode = true;
|
|
127964
|
+
this.value = value;
|
|
127965
|
+
}
|
|
127966
|
+
loadOptionValue(argument) {
|
|
127967
|
+
var _a;
|
|
127968
|
+
const source = (_a = this.options) === null || _a === void 0 ? void 0 : _a.find((opt) => opt.value === argument);
|
|
127969
|
+
if (source != undefined) {
|
|
127970
|
+
this.selectOption(source);
|
|
127971
|
+
}
|
|
127972
|
+
else {
|
|
127973
|
+
this.showNoResultMessage();
|
|
127974
|
+
}
|
|
127975
|
+
}
|
|
127976
|
+
async showNoResultMessage() {
|
|
127977
|
+
this.clearSearch();
|
|
127978
|
+
ApplicationUtils.info(this._textEmptySearch.replace("{0}", this.getFieldLabel()));
|
|
127979
|
+
}
|
|
127980
|
+
getFieldLabel() {
|
|
127981
|
+
var _a;
|
|
127982
|
+
return (_a = this.label) === null || _a === void 0 ? void 0 : _a.replace(REQUIRED_INFO, "").toUpperCase();
|
|
127983
|
+
}
|
|
127984
|
+
resetOptions() {
|
|
127985
|
+
this.hideOptions();
|
|
127986
|
+
this._criteria = undefined;
|
|
127987
|
+
this._preSelection = undefined;
|
|
127988
|
+
this.updateVisibleOptions();
|
|
127989
|
+
}
|
|
127990
|
+
//---------------------------------------------
|
|
127991
|
+
// Lifecycle web component
|
|
127992
|
+
//---------------------------------------------
|
|
127993
|
+
componentWillLoad() {
|
|
127994
|
+
if (this.options === undefined) {
|
|
127995
|
+
this.options = [];
|
|
127996
|
+
const optionsTags = this.el.querySelectorAll("option");
|
|
127997
|
+
if (optionsTags) {
|
|
127998
|
+
optionsTags.forEach(e => {
|
|
127999
|
+
let label = e.innerText;
|
|
128000
|
+
let value = e.getAttribute("value");
|
|
128001
|
+
let details = e.getAttribute("details");
|
|
128002
|
+
if (!value) {
|
|
128003
|
+
value = label;
|
|
128004
|
+
}
|
|
128005
|
+
this.options.push({ label, value, details });
|
|
128006
|
+
e.hidden = true;
|
|
128007
|
+
});
|
|
128008
|
+
}
|
|
128009
|
+
}
|
|
128010
|
+
this.updateSource([]);
|
|
128011
|
+
}
|
|
128012
|
+
componentDidRender() {
|
|
128013
|
+
var _a;
|
|
128014
|
+
if (this._floatingID === undefined) {
|
|
128015
|
+
this._listWrapper.remove();
|
|
128016
|
+
}
|
|
128017
|
+
(_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
|
|
128018
|
+
ElementIDUtils.addIDInfoIfNotExists(elem, "itemSearch");
|
|
128019
|
+
});
|
|
128020
|
+
this.validateDescriptionValue();
|
|
127704
128021
|
}
|
|
127705
128022
|
componentDidLoad() {
|
|
127706
|
-
CSSVarsUtils.applyVarsTextInput(this.
|
|
128023
|
+
CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
|
|
128024
|
+
this.setInputValue(false);
|
|
128025
|
+
this._resizeObserver = new ResizeObserver((entries) => {
|
|
128026
|
+
window.requestAnimationFrame(() => {
|
|
128027
|
+
if (!Array.isArray(entries) || !entries.length)
|
|
128028
|
+
return;
|
|
128029
|
+
const { clientWidth } = this._listContainer;
|
|
128030
|
+
if (clientWidth > 0 && !!this._listWrapper) {
|
|
128031
|
+
this._listWrapper.style.width = `${clientWidth}px`;
|
|
128032
|
+
}
|
|
128033
|
+
});
|
|
128034
|
+
});
|
|
128035
|
+
}
|
|
128036
|
+
//---------------------------------------------
|
|
128037
|
+
// Event handlers
|
|
128038
|
+
//---------------------------------------------
|
|
128039
|
+
handlerIconClick() {
|
|
128040
|
+
this.loadOptions(SearchMode.ADVANCED);
|
|
128041
|
+
}
|
|
128042
|
+
buildNumberArgument(argument) {
|
|
128043
|
+
if (this.isTextSearch) {
|
|
128044
|
+
return NaN;
|
|
128045
|
+
}
|
|
128046
|
+
return Number(argument || undefined);
|
|
128047
|
+
}
|
|
128048
|
+
onTextInputChangeHandler(event) {
|
|
128049
|
+
var _a;
|
|
128050
|
+
this.clearDeboucingTimeout();
|
|
128051
|
+
if (this._startLoading) {
|
|
128052
|
+
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
128053
|
+
this.onTextInputChangeHandler(event);
|
|
128054
|
+
}, this._deboucingTime);
|
|
128055
|
+
return;
|
|
128056
|
+
}
|
|
128057
|
+
const argument = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim();
|
|
128058
|
+
const argumentNumber = this.buildNumberArgument(argument);
|
|
128059
|
+
if (!this._criteria) {
|
|
128060
|
+
this._textInput.value = event.data || argument;
|
|
128061
|
+
}
|
|
128062
|
+
this._criteria = argument;
|
|
128063
|
+
if (argument) {
|
|
128064
|
+
this._showLoading = false;
|
|
128065
|
+
this.clearSource();
|
|
128066
|
+
if (!isNaN(argumentNumber) || argument.length >= this._limitCharsToSearch) {
|
|
128067
|
+
this._showLoading = true;
|
|
128068
|
+
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
128069
|
+
this.loadOptions(SearchMode.PREDICTIVE, isNaN(argumentNumber) ? argument : argumentNumber.toString());
|
|
128070
|
+
}, this._deboucingTime);
|
|
128071
|
+
this.showOptions();
|
|
128072
|
+
}
|
|
128073
|
+
else {
|
|
128074
|
+
this.hideOptions();
|
|
128075
|
+
}
|
|
128076
|
+
}
|
|
128077
|
+
else {
|
|
128078
|
+
this.hideOptions();
|
|
128079
|
+
this._showLoading = false;
|
|
128080
|
+
this.clearSource();
|
|
128081
|
+
}
|
|
128082
|
+
}
|
|
128083
|
+
clearDeboucingTimeout() {
|
|
128084
|
+
if (this._changeDeboucingTimeout) {
|
|
128085
|
+
window.clearTimeout(this._changeDeboucingTimeout);
|
|
128086
|
+
this._changeDeboucingTimeout = null;
|
|
128087
|
+
}
|
|
128088
|
+
}
|
|
128089
|
+
keyDownHandler(event) {
|
|
128090
|
+
this._tabPressed = false;
|
|
128091
|
+
if (event.ctrlKey) {
|
|
128092
|
+
if (event.key === "f" || event.key === "F") {
|
|
128093
|
+
this.loadOptions(SearchMode.ADVANCED);
|
|
128094
|
+
//ATENÇÃO: Ctrl + F tem ação específica nos browsers
|
|
128095
|
+
//nesse caso, como vamos abrir o popup de busca avançada,
|
|
128096
|
+
//não é interessante deixar o evento propagar;
|
|
128097
|
+
event.stopPropagation();
|
|
128098
|
+
event.stopImmediatePropagation();
|
|
128099
|
+
event.preventDefault();
|
|
128100
|
+
}
|
|
128101
|
+
}
|
|
128102
|
+
switch (event.key) {
|
|
128103
|
+
case "ArrowDown":
|
|
128104
|
+
this.nextOption();
|
|
128105
|
+
event.stopPropagation();
|
|
128106
|
+
break;
|
|
128107
|
+
case "ArrowUp":
|
|
128108
|
+
this.previousOption();
|
|
128109
|
+
event.stopPropagation();
|
|
128110
|
+
break;
|
|
128111
|
+
case "Enter":
|
|
128112
|
+
this.selectCurrentOption();
|
|
128113
|
+
break;
|
|
128114
|
+
case "Escape":
|
|
128115
|
+
this.cancelPreselection();
|
|
128116
|
+
break;
|
|
128117
|
+
case "Tab":
|
|
128118
|
+
this._tabPressed = true;
|
|
128119
|
+
this.controlListWithOnlyOne();
|
|
128120
|
+
break;
|
|
128121
|
+
}
|
|
128122
|
+
//ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
|
|
128123
|
+
//Por exemplo, quando o usuário dá um Enter, além de selecionar
|
|
128124
|
+
//um valor, também significa que a ateração finalizou,
|
|
128125
|
+
//e o contexto pode reagir (fechar um popup por exemplo).
|
|
128126
|
+
//event.stopPropagation();
|
|
128127
|
+
}
|
|
128128
|
+
onTextInputFocusOutHandler() {
|
|
128129
|
+
if (this.hideErrorOnFocusOut)
|
|
128130
|
+
this.cancelPreselection();
|
|
128131
|
+
}
|
|
128132
|
+
canShowListOptions() {
|
|
128133
|
+
return !this._showLoading && this._visibleOptions.length > 0;
|
|
127707
128134
|
}
|
|
127708
128135
|
render() {
|
|
127709
|
-
|
|
127710
|
-
|
|
128136
|
+
var _a;
|
|
128137
|
+
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
128138
|
+
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)
|
|
128139
|
+
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
128140
|
+
: 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
|
|
128141
|
+
&& this._visibleOptions.length === 0
|
|
128142
|
+
&& h("div", { class: "message" }, h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
|
|
128143
|
+
&& 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
128144
|
}
|
|
127712
|
-
;
|
|
127713
|
-
get _elem() { return this; }
|
|
128145
|
+
get el() { return this; }
|
|
127714
128146
|
static get watchers() { return {
|
|
127715
128147
|
"errorMessage": ["observeErrorMessage"],
|
|
127716
|
-
"value": ["observeValue"]
|
|
128148
|
+
"value": ["observeValue"],
|
|
128149
|
+
"options": ["observeOptions"]
|
|
127717
128150
|
}; }
|
|
127718
128151
|
static get style() { return ezSearchCss; }
|
|
127719
128152
|
};
|
|
128153
|
+
var SearchMode;
|
|
128154
|
+
(function (SearchMode) {
|
|
128155
|
+
SearchMode["ADVANCED"] = "ADVANCED";
|
|
128156
|
+
SearchMode["PRELOAD"] = "PRELOAD";
|
|
128157
|
+
SearchMode["PREDICTIVE"] = "PREDICTIVE";
|
|
128158
|
+
})(SearchMode || (SearchMode = {}));
|
|
127720
128159
|
|
|
127721
128160
|
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
128161
|
|
|
@@ -127804,15 +128243,24 @@ const EzSkeleton$1 = class extends HTMLElement$1 {
|
|
|
127804
128243
|
static get style() { return ezSkeletonCss; }
|
|
127805
128244
|
};
|
|
127806
128245
|
|
|
127807
|
-
const ezSplitItemCss = ".box_split-item{background-color:var(--background--xlight);padding:var(--space--nano);width:100%;height:100%;border-radius:var(--border--radius-medium);box-shadow:var(--shadow)}";
|
|
128246
|
+
const ezSplitItemCss = ".box_split-item{background-color:var(--background--xlight);padding:var(--space--nano);width:100%;height:100%;border-radius:var(--border--radius-medium);box-shadow:var(--shadow);display:flex;flex-direction:column;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:-webkit-fill-available}";
|
|
127808
128247
|
|
|
127809
128248
|
const SplitItem = class extends HTMLElement$1 {
|
|
127810
128249
|
constructor() {
|
|
127811
128250
|
super();
|
|
127812
128251
|
this.__registerHost();
|
|
128252
|
+
this.label = undefined;
|
|
128253
|
+
this.enableExpand = true;
|
|
128254
|
+
this._expanded = false;
|
|
128255
|
+
}
|
|
128256
|
+
/**
|
|
128257
|
+
* Alterna a visibilidade do painel.
|
|
128258
|
+
*/
|
|
128259
|
+
toggleExpandItem() {
|
|
128260
|
+
this._expanded = !this._expanded;
|
|
127813
128261
|
}
|
|
127814
128262
|
render() {
|
|
127815
|
-
return (h(
|
|
128263
|
+
return (h("div", { 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
128264
|
}
|
|
127817
128265
|
static get style() { return ezSplitItemCss; }
|
|
127818
128266
|
};
|
|
@@ -128494,7 +128942,7 @@ Grid.prototype.destroy = function destroy (immediate) {
|
|
|
128494
128942
|
|
|
128495
128943
|
function index (options) { return new Grid(options); }
|
|
128496
128944
|
|
|
128497
|
-
const ezSplitPanelCss = ".ez-split-gutter{cursor:grab;background-color:transparent}";
|
|
128945
|
+
const ezSplitPanelCss = ":host{height:100%}.ez-split-gutter{cursor:grab;background-color:transparent}";
|
|
128498
128946
|
|
|
128499
128947
|
const SplitPanel = class extends HTMLElement$1 {
|
|
128500
128948
|
constructor() {
|
|
@@ -128502,6 +128950,7 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128502
128950
|
this.__registerHost();
|
|
128503
128951
|
this._items = [];
|
|
128504
128952
|
this.direction = 'column';
|
|
128953
|
+
this.anchorToExpand = false;
|
|
128505
128954
|
}
|
|
128506
128955
|
componentDidLoad() {
|
|
128507
128956
|
this._panelID = StringUtils$1.generateUUID();
|
|
@@ -128528,7 +128977,7 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128528
128977
|
getGutters() {
|
|
128529
128978
|
const gutters = {
|
|
128530
128979
|
columnGutters: [],
|
|
128531
|
-
rowGutters: []
|
|
128980
|
+
rowGutters: [],
|
|
128532
128981
|
};
|
|
128533
128982
|
if (!this._items.length) {
|
|
128534
128983
|
return gutters;
|
|
@@ -128538,19 +128987,19 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128538
128987
|
if (index == this._items.length - 1)
|
|
128539
128988
|
return;
|
|
128540
128989
|
let gutterTrack = item.dataset.trackNumber;
|
|
128541
|
-
if (index ===
|
|
128990
|
+
if (index === this._items.length - 1) {
|
|
128542
128991
|
gutterTrack = this._items.length.toString();
|
|
128543
128992
|
}
|
|
128544
128993
|
gutters[proToChange].push({
|
|
128545
128994
|
track: Number(gutterTrack),
|
|
128546
|
-
element: this._element.querySelector(`ez-split-panel[data-panel-id="${this._panelID}"] > [data-item-track="${item.dataset.trackNumber}"]`)
|
|
128995
|
+
element: this._element.querySelector(`ez-split-panel[data-panel-id="${this._panelID}"] > [data-item-track="${item.dataset.trackNumber}"]`),
|
|
128547
128996
|
});
|
|
128548
128997
|
});
|
|
128549
128998
|
return gutters;
|
|
128550
128999
|
}
|
|
128551
129000
|
addItemGutter(item) {
|
|
128552
129001
|
const gutter = document.createElement('div');
|
|
128553
|
-
gutter.classList.add(
|
|
129002
|
+
gutter.classList.add('ez-split-gutter');
|
|
128554
129003
|
gutter.classList.add(this.direction);
|
|
128555
129004
|
gutter.dataset.itemTrack = `${item.dataset.trackNumber}`;
|
|
128556
129005
|
gutter.dataset.trackNumber = (Number(item.dataset.trackNumber) + 1).toString();
|
|
@@ -128558,9 +129007,10 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128558
129007
|
}
|
|
128559
129008
|
getElementStyle() {
|
|
128560
129009
|
const style = {
|
|
128561
|
-
|
|
128562
|
-
|
|
128563
|
-
|
|
129010
|
+
display: 'grid',
|
|
129011
|
+
height: '100%',
|
|
129012
|
+
width: '100%',
|
|
129013
|
+
position: this.anchorToExpand ? 'relative' : 'unset',
|
|
128564
129014
|
};
|
|
128565
129015
|
return style;
|
|
128566
129016
|
}
|
|
@@ -128580,7 +129030,7 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128580
129030
|
return template;
|
|
128581
129031
|
}
|
|
128582
129032
|
render() {
|
|
128583
|
-
return
|
|
129033
|
+
return h(Host, { style: this.getElementStyle() });
|
|
128584
129034
|
}
|
|
128585
129035
|
get _element() { return this; }
|
|
128586
129036
|
static get style() { return ezSplitPanelCss; }
|
|
@@ -130634,6 +131084,8 @@ const FilterColumn$1 = class extends HTMLElement$1 {
|
|
|
130634
131084
|
this.TOP_POSITION_NO_TASKBAR = '32';
|
|
130635
131085
|
this.TOP_POSITION_NO_TASKBAR_HEADER_HIDDEN = '20';
|
|
130636
131086
|
this.DEFAULT_HEIGHT = 430;
|
|
131087
|
+
this.FIX_MARGIN = 60;
|
|
131088
|
+
this.FILTER_COLUMN_WIDTH = 330;
|
|
130637
131089
|
this.opened = true;
|
|
130638
131090
|
this.columnName = undefined;
|
|
130639
131091
|
this.columnLabel = undefined;
|
|
@@ -130666,15 +131118,24 @@ const FilterColumn$1 = class extends HTMLElement$1 {
|
|
|
130666
131118
|
await this.ezPopoverElement.show(this.calcTopPosition(), this.calculateLeftPosition(configs));
|
|
130667
131119
|
}
|
|
130668
131120
|
}
|
|
130669
|
-
calculateLeftPosition(
|
|
130670
|
-
|
|
130671
|
-
|
|
131121
|
+
calculateLeftPosition({ leftPosition, fromIcon }) {
|
|
131122
|
+
const leftPositionCalculated = this.calcFilterColumnLeftPosition(leftPosition);
|
|
131123
|
+
if (!fromIcon) {
|
|
131124
|
+
return `${leftPositionCalculated}px`;
|
|
130672
131125
|
}
|
|
130673
131126
|
const difference = this.ezPopoverElement.getBoundingClientRect().left;
|
|
130674
|
-
const
|
|
130675
|
-
const leftResolved = (leftReference + 16) - difference;
|
|
131127
|
+
const leftResolved = (leftPositionCalculated + 16) - difference;
|
|
130676
131128
|
return `${(leftResolved > 0 ? leftResolved : 0)}px`;
|
|
130677
131129
|
}
|
|
131130
|
+
calcFilterColumnLeftPosition(leftReference) {
|
|
131131
|
+
var _a, _b;
|
|
131132
|
+
const gridReference = this.ezPopoverElement.closest("ez-grid");
|
|
131133
|
+
const gridLimit = (_a = gridReference.getBoundingClientRect()) === null || _a === void 0 ? void 0 : _a.right;
|
|
131134
|
+
const popoverDiff = (_b = this.ezPopoverElement.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.left;
|
|
131135
|
+
const maxLeft = gridLimit - (this.FILTER_COLUMN_WIDTH + popoverDiff);
|
|
131136
|
+
const leftInt = leftReference - (this.FIX_MARGIN + popoverDiff);
|
|
131137
|
+
return leftInt > maxLeft ? maxLeft : leftInt;
|
|
131138
|
+
}
|
|
130678
131139
|
buildIsTextSearch() {
|
|
130679
131140
|
var _a, _b;
|
|
130680
131141
|
const userInterface = (_b = (_a = this.fieldDescriptor) === null || _a === void 0 ? void 0 : _a.userInterface) !== null && _b !== void 0 ? _b : UserInterface.SHORTTEXT;
|
|
@@ -130798,7 +131259,7 @@ const EzCardItem = /*@__PURE__*/proxyCustomElement(EzCardItem$1, [1,"ez-card-ite
|
|
|
130798
131259
|
const EzCheck = /*@__PURE__*/proxyCustomElement(EzCheck$1, [1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[1540],"mode":[513],"compact":[4]}]);
|
|
130799
131260
|
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
131261
|
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"],"
|
|
131262
|
+
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
131263
|
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
131264
|
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
131265
|
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 +131281,11 @@ const EzPopover = /*@__PURE__*/proxyCustomElement(EzPopover$1, [1,"ez-popover",{
|
|
|
130820
131281
|
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
131282
|
const EzRadioButton = /*@__PURE__*/proxyCustomElement(EzRadioButton$1, [1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]);
|
|
130822
131283
|
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"]}]);
|
|
131284
|
+
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
131285
|
const EzSidebarButton = /*@__PURE__*/proxyCustomElement(EzSidebarButton$1, [1,"ez-sidebar-button"]);
|
|
130825
131286
|
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 EzSplitItem = /*@__PURE__*/proxyCustomElement(SplitItem, [
|
|
130827
|
-
const EzSplitPanel = /*@__PURE__*/proxyCustomElement(SplitPanel, [0,"ez-split-panel",{"direction":[1]}]);
|
|
131287
|
+
const EzSplitItem = /*@__PURE__*/proxyCustomElement(SplitItem, [4,"ez-split-item",{"label":[1],"enableExpand":[516,"enable-expand"],"_expanded":[32]}]);
|
|
131288
|
+
const EzSplitPanel = /*@__PURE__*/proxyCustomElement(SplitPanel, [0,"ez-split-panel",{"direction":[1],"anchorToExpand":[4,"anchor-to-expand"]}]);
|
|
130828
131289
|
const EzTabselector = /*@__PURE__*/proxyCustomElement(EzTabselector$1, [1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]);
|
|
130829
131290
|
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
131291
|
const EzTextEdit = /*@__PURE__*/proxyCustomElement(EzTextEdit$1, [1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32]}]);
|