@sankhyalabs/ezui 5.20.0-dev.2 → 5.20.0-dev.21
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/{CSSVarsUtils-b136a156.js → CSSVarsUtils-10c9d5b4.js} +13 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-alert-list.cjs.entry.js +33 -28
- package/dist/cjs/ez-card-item_3.cjs.entry.js +6 -5
- package/dist/cjs/ez-combo-box.cjs.entry.js +8 -7
- package/dist/cjs/ez-date-input.cjs.entry.js +4 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +4 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +34 -15
- package/dist/cjs/ez-grid.cjs.entry.js +91 -30
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -10
- package/dist/cjs/ez-number-input.cjs.entry.js +4 -1
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +7 -8
- package/dist/cjs/ez-split-button.cjs.entry.js +147 -0
- package/dist/cjs/ez-split-item.cjs.entry.js +20 -2
- package/dist/cjs/ez-split-panel.cjs.entry.js +15 -12
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/filter-column.cjs.entry.js +16 -5
- package/dist/cjs/index-a7b0c73d.js +8 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/ez-alert-list/ez-alert-list.js +33 -28
- package/dist/collection/components/ez-card-item/ez-card-item.css +39 -6
- package/dist/collection/components/ez-card-item/ez-card-item.js +22 -3
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +7 -6
- package/dist/collection/components/ez-date-input/ez-date-input.js +3 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +3 -0
- package/dist/collection/components/ez-form-view/ez-form-view.css +17 -1
- package/dist/collection/components/ez-form-view/ez-form-view.js +22 -5
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +3 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +4 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +12 -11
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +15 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -3
- package/dist/collection/components/ez-grid/ez-grid.css +25 -1
- package/dist/collection/components/ez-grid/ez-grid.js +67 -10
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +16 -5
- package/dist/collection/components/ez-icon/ez-icon.css +1 -1
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +2 -10
- package/dist/collection/components/ez-number-input/ez-number-input.js +3 -0
- package/dist/collection/components/ez-popup/ez-popup.css +2 -5
- package/dist/collection/components/ez-search/ez-search.css +2 -1
- package/dist/collection/components/ez-search/ez-search.js +5 -6
- package/dist/collection/components/ez-split-button/ez-split-button.css +229 -0
- package/dist/collection/components/ez-split-button/ez-split-button.js +436 -0
- package/dist/collection/components/ez-split-button/test/dropdownItems.js +42 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.css +6 -7
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +35 -14
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +47 -12
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +82 -2
- package/dist/collection/utils/CSSVarsUtils.js +13 -0
- package/dist/collection/utils/form/test/DataBinder.test.js +9 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +394 -124
- package/dist/esm/{CSSVarsUtils-a97cfa29.js → CSSVarsUtils-71ce76be.js} +13 -0
- package/dist/esm/ez-actions-button.entry.js +1 -1
- package/dist/esm/ez-alert-list.entry.js +33 -28
- package/dist/esm/ez-card-item_3.entry.js +6 -5
- package/dist/esm/ez-combo-box.entry.js +8 -7
- package/dist/esm/ez-date-input.entry.js +4 -1
- package/dist/esm/ez-date-time-input.entry.js +4 -1
- package/dist/esm/ez-form-view.entry.js +35 -16
- package/dist/esm/ez-grid.entry.js +92 -31
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list.entry.js +2 -10
- package/dist/esm/ez-number-input.entry.js +4 -1
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +7 -8
- package/dist/esm/ez-split-button.entry.js +143 -0
- package/dist/esm/ez-split-item.entry.js +20 -2
- package/dist/esm/ez-split-panel.entry.js +15 -12
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/filter-column.entry.js +16 -5
- package/dist/esm/index-baa5e267.js +8 -4
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-f56dd1da.entry.js → p-07cbffce.entry.js} +1 -1
- package/dist/ezui/p-13dbad96.entry.js +1 -0
- package/dist/ezui/p-2eb8f73b.entry.js +1 -0
- package/dist/ezui/{p-40f72de4.entry.js → p-784fe207.entry.js} +1 -1
- package/dist/ezui/p-7af81663.entry.js +1 -0
- package/dist/ezui/p-801fd0f8.entry.js +1 -0
- package/dist/ezui/p-807560f0.entry.js +1 -0
- package/dist/ezui/p-940ed30b.entry.js +1 -0
- package/dist/ezui/{p-eb36f072.entry.js → p-99ead599.entry.js} +1 -1
- package/dist/ezui/{p-7eb3e1a5.js → p-9e11fc7b.js} +1 -1
- package/dist/ezui/p-9f1e89c9.entry.js +1 -0
- package/dist/ezui/{p-6e2f8e6b.entry.js → p-a2704c1a.entry.js} +2 -2
- package/dist/ezui/{p-51c5e071.entry.js → p-abc23d6f.entry.js} +1 -1
- package/dist/ezui/p-af95cd16.entry.js +1 -0
- package/dist/ezui/{p-c0f1715f.entry.js → p-b567fa8c.entry.js} +1 -1
- package/dist/ezui/p-b9fbf4e7.entry.js +1 -0
- package/dist/ezui/p-baf80b13.entry.js +1 -0
- package/dist/ezui/p-db77a984.entry.js +1 -0
- package/dist/ezui/{p-9cad9b6e.entry.js → p-e85c48d7.entry.js} +1 -1
- package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +1 -1
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +4 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +1 -0
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +3 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +2 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +15 -2
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +4 -1
- package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +0 -1
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +89 -0
- package/dist/types/components/ez-split-button/test/dropdownItems.d.ts +2 -0
- package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +23 -0
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +27 -0
- package/dist/types/components.d.ts +155 -0
- package/dist/types/utils/CSSVarsUtils.d.ts +1 -0
- package/dist/types/utils/form/test/DataBinder.test.d.ts +1 -0
- package/package.json +13 -5
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridUtils.js +0 -8
- package/dist/ezui/p-133fae4a.entry.js +0 -1
- package/dist/ezui/p-24d3fede.entry.js +0 -1
- package/dist/ezui/p-43b03119.entry.js +0 -1
- package/dist/ezui/p-4a7f113d.entry.js +0 -1
- package/dist/ezui/p-596634e9.entry.js +0 -1
- package/dist/ezui/p-76ba9d67.entry.js +0 -1
- package/dist/ezui/p-796c1a88.entry.js +0 -1
- package/dist/ezui/p-af15c277.entry.js +0 -1
- package/dist/ezui/p-ba875f37.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLElement as HTMLElement$1, createEvent, h, Host, forceUpdate, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
2
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
|
-
import { UserInterface, DateUtils as DateUtils$1, Action, WaitingChangeException, ApplicationContext, DataUnitAction, FloatingManager, ElementIDUtils, ObjectUtils as ObjectUtils$1, JSUtils, StringUtils as StringUtils$1, TimeFormatter, DataUnit, HTMLBuilder, NumberUtils as NumberUtils$1, MaskFormatter, DataType, SortMode, FieldComparator, ArrayUtils as ArrayUtils$1 } from '@sankhyalabs/core';
|
|
3
|
+
import { UserInterface, DateUtils as DateUtils$1, Action, WaitingChangeException, ApplicationContext, DataUnitAction, FloatingManager, ElementIDUtils, ObjectUtils as ObjectUtils$1, JSUtils, StringUtils as StringUtils$1, TimeFormatter, DataUnit, HTMLBuilder, NumberUtils as NumberUtils$1, MaskFormatter, DataType, SortMode, FieldComparator, ArrayUtils as ArrayUtils$1, OverflowWatcher, OVERFLOWED_CLASS_NAME } from '@sankhyalabs/core';
|
|
4
4
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
5
5
|
|
|
6
6
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
@@ -284,6 +284,19 @@ class CSSVarsUtils {
|
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
+
static applyVarsGrid(host, child) {
|
|
288
|
+
if (child) {
|
|
289
|
+
[
|
|
290
|
+
"--ez-grid--min-height",
|
|
291
|
+
"--snk-grid-min-height",
|
|
292
|
+
].forEach(prop => {
|
|
293
|
+
const propValue = getComputedStyle(host).getPropertyValue(prop);
|
|
294
|
+
if (propValue !== null && propValue !== undefined) {
|
|
295
|
+
child.style.setProperty(prop, propValue);
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
}
|
|
287
300
|
static applyIfExists(host, element, varName) {
|
|
288
301
|
const prop = getComputedStyle(host).getPropertyValue(varName);
|
|
289
302
|
if (prop) {
|
|
@@ -1171,11 +1184,13 @@ const EzAlertList$1 = class extends HTMLElement$1 {
|
|
|
1171
1184
|
/**
|
|
1172
1185
|
* Gerencia a exibição do overlay usando FloatingManager do Core.
|
|
1173
1186
|
*/
|
|
1174
|
-
|
|
1175
|
-
if (this.opened) {
|
|
1187
|
+
manageOverlay() {
|
|
1188
|
+
if (this.opened && this._container) {
|
|
1176
1189
|
this._overlayId = FloatingManager.float(this._container, this._overlayRef, this.getFloatOptions());
|
|
1177
1190
|
}
|
|
1178
1191
|
else {
|
|
1192
|
+
if (this._overlayId === undefined)
|
|
1193
|
+
return;
|
|
1179
1194
|
FloatingManager.close(this._overlayId);
|
|
1180
1195
|
this._overlayId = undefined;
|
|
1181
1196
|
}
|
|
@@ -1184,8 +1199,10 @@ const EzAlertList$1 = class extends HTMLElement$1 {
|
|
|
1184
1199
|
* Atualiza a posição da lista.
|
|
1185
1200
|
*/
|
|
1186
1201
|
updatePosition(right, bottom) {
|
|
1187
|
-
|
|
1188
|
-
|
|
1202
|
+
if (this.opened) {
|
|
1203
|
+
FloatingManager.updateFloatPosition(this._container, this._overlayRef, Object.assign(Object.assign({}, this.getFloatOptions()), { right,
|
|
1204
|
+
bottom }));
|
|
1205
|
+
}
|
|
1189
1206
|
}
|
|
1190
1207
|
;
|
|
1191
1208
|
/**
|
|
@@ -1194,7 +1211,7 @@ const EzAlertList$1 = class extends HTMLElement$1 {
|
|
|
1194
1211
|
getFloatOptions() {
|
|
1195
1212
|
return {
|
|
1196
1213
|
autoClose: false,
|
|
1197
|
-
isFixed:
|
|
1214
|
+
isFixed: true,
|
|
1198
1215
|
bottom: '10px',
|
|
1199
1216
|
right: '10px',
|
|
1200
1217
|
};
|
|
@@ -1216,9 +1233,9 @@ const EzAlertList$1 = class extends HTMLElement$1 {
|
|
|
1216
1233
|
const boxHeight = this._container.getBoundingClientRect().height;
|
|
1217
1234
|
return ((docHeight - boxHeight) / 2) + 'px';
|
|
1218
1235
|
}
|
|
1219
|
-
|
|
1236
|
+
componentDidLoad() {
|
|
1220
1237
|
this.manageOverlay();
|
|
1221
|
-
if (this.opened) {
|
|
1238
|
+
if (this.opened && this._container) {
|
|
1222
1239
|
this._container.focus();
|
|
1223
1240
|
}
|
|
1224
1241
|
}
|
|
@@ -1226,27 +1243,28 @@ const EzAlertList$1 = class extends HTMLElement$1 {
|
|
|
1226
1243
|
this.dataElementId = ElementIDUtils.addIDInfo(this._element, 'EzAlertList');
|
|
1227
1244
|
}
|
|
1228
1245
|
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
|
-
|
|
1246
|
+
return (h(Host, Object.assign({}, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: this.dataElementId }), this.opened ?
|
|
1247
|
+
(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: () => {
|
|
1248
|
+
this.opened = false;
|
|
1249
|
+
}, title: 'Fechar' }))), h("div", { class: "alert-list__expandable-content" }, h("ez-list", { itemSlotBuilder: this.itemRightSlotBuilder, hoverFeedback: true, itemLeftSlotBuilder: item => {
|
|
1250
|
+
return (h("a", { href: "#", style: {
|
|
1251
|
+
fontFamily: "var(--font-pattern, 'Roboto')",
|
|
1252
|
+
fontSize: 'var(--text--medium, 14px)',
|
|
1253
|
+
fontWeight: 'var(--text-weight--medium, 400)',
|
|
1254
|
+
color: 'var(--color--primary, #008561)',
|
|
1255
|
+
marginRight: '4px',
|
|
1256
|
+
cursor: 'pointer',
|
|
1257
|
+
display: 'flex',
|
|
1258
|
+
width: 'max-content',
|
|
1259
|
+
textDecoration: 'none'
|
|
1260
|
+
} }, this.getTitleText(item)));
|
|
1261
|
+
}, dataSource: this.alerts.map((alert, index) => {
|
|
1262
|
+
var _a;
|
|
1263
|
+
return {
|
|
1264
|
+
id: this.alertId(alert.title, index),
|
|
1265
|
+
label: (_a = alert.detail) !== null && _a !== void 0 ? _a : "",
|
|
1266
|
+
};
|
|
1267
|
+
}) })))))) : null));
|
|
1250
1268
|
}
|
|
1251
1269
|
get _element() { return this; }
|
|
1252
1270
|
static get watchers() { return {
|
|
@@ -1981,7 +1999,7 @@ const EzCalendar$1 = class extends HTMLElement$1 {
|
|
|
1981
1999
|
static get style() { return ezCalendarCss; }
|
|
1982
2000
|
};
|
|
1983
2001
|
|
|
1984
|
-
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}\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
|
|
2002
|
+
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 flex-direction: column;\n cursor: pointer;\n justify-content: space-between;\n width: 100%;\n}\n\n.card-item__details-container__left {\n white-space: pre-line;\n cursor: pointer;\n width: 50%;\n}\n\n.card-item__details-container__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.card-item__content{\n display: flex;\n align-items: center;\n}\n\n.card-item__details-container{\n display: flex;\n}\n\n.card-item__details-slot{\n margin-left: auto;\n}\n\n@container box (max-width: 550px) {\n .card-item__details {\n flex-direction: column;\n }\n\n .card-item__details-container__left {\n width: 100%;\n }\n \n .card-item__details-container__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
2003
|
|
|
1986
2004
|
const EzCardItem$1 = class extends HTMLElement$1 {
|
|
1987
2005
|
constructor() {
|
|
@@ -1990,6 +2008,7 @@ const EzCardItem$1 = class extends HTMLElement$1 {
|
|
|
1990
2008
|
this.__attachShadow();
|
|
1991
2009
|
this.ezClick = createEvent(this, "ezClick", 7);
|
|
1992
2010
|
this.item = undefined;
|
|
2011
|
+
this.enableKey = true;
|
|
1993
2012
|
}
|
|
1994
2013
|
componentWillRender() {
|
|
1995
2014
|
this.createDetailList();
|
|
@@ -2017,11 +2036,11 @@ const EzCardItem$1 = class extends HTMLElement$1 {
|
|
|
2017
2036
|
}
|
|
2018
2037
|
render() {
|
|
2019
2038
|
return (h(Host, null, this.item &&
|
|
2020
|
-
h("div", { class: "card-item", onClick: () => { this.ezClick.emit(this.item); } }, h("label", { class: "card-item__title" }, h("span", { class: "card-item__key", innerHTML: this.item.key }), h("span", { innerHTML: this.item.title })), h("div", { class: "card-item__details" }, h("div", { class: "card-item__details-
|
|
2039
|
+
h("div", { class: "card-item", onClick: () => { this.ezClick.emit(this.item); } }, h("div", { class: "ez-row card-item__content" }, h("div", { class: "ez-col ez-col--sd-11 card-item__details" }, h("label", { class: "card-item__title" }, this.enableKey && (h("span", { class: "card-item__key", innerHTML: this.item.key })), h("span", { innerHTML: this.item.title })), h("div", { class: "card-item__details-container" }, h("div", { class: "card-item__details-container__left" }, this._details.detailsLeft.map(detail => {
|
|
2021
2040
|
return this.buildDetailContent(detail);
|
|
2022
|
-
})), h("div", { class: "card-item__details-
|
|
2041
|
+
})), h("div", { class: "card-item__details-container__right" }, this._details.detailsRight.map(detail => {
|
|
2023
2042
|
return this.buildDetailContent(detail);
|
|
2024
|
-
}))))));
|
|
2043
|
+
})))), h("div", { class: "ez-col ez-col--sd-1 card-item__details-slot" }, h("slot", { name: "rightSlot" }))))));
|
|
2025
2044
|
}
|
|
2026
2045
|
get _element() { return this; }
|
|
2027
2046
|
static get style() { return ezCardItemCss; }
|
|
@@ -2563,14 +2582,15 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2563
2582
|
const upperCriteria = this._criteria.toUpperCase();
|
|
2564
2583
|
opts = opts.filter(opt => opt.label.toLocaleUpperCase().indexOf(upperCriteria) > -1);
|
|
2565
2584
|
}
|
|
2566
|
-
if (this.
|
|
2567
|
-
|
|
2568
|
-
}
|
|
2569
|
-
else {
|
|
2570
|
-
this._visibleOptions = [{ value: undefined, label: "" }].concat(opts);
|
|
2585
|
+
if (this.hasToAddEmptyoption(opts)) {
|
|
2586
|
+
opts = [{ value: undefined, label: "" }].concat(opts);
|
|
2571
2587
|
}
|
|
2588
|
+
this._visibleOptions = opts;
|
|
2572
2589
|
this._maxWidthValue = this.getMaxWidthValue();
|
|
2573
2590
|
}
|
|
2591
|
+
hasToAddEmptyoption(opts) {
|
|
2592
|
+
return !this.suppressEmptyOption && !opts.filter(opt => !opt.value).length;
|
|
2593
|
+
}
|
|
2574
2594
|
getMaxWidthValue() {
|
|
2575
2595
|
var _a;
|
|
2576
2596
|
if (this.showOptionValue) {
|
|
@@ -2711,7 +2731,7 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2711
2731
|
}
|
|
2712
2732
|
else {
|
|
2713
2733
|
window.setTimeout(() => {
|
|
2714
|
-
this.setInputValue();
|
|
2734
|
+
this.setInputValue(false);
|
|
2715
2735
|
}, this._deboucingTime);
|
|
2716
2736
|
}
|
|
2717
2737
|
this.resetOptions();
|
|
@@ -2992,6 +3012,9 @@ const EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
2992
3012
|
this._calendar.hide();
|
|
2993
3013
|
}
|
|
2994
3014
|
handleBlur() {
|
|
3015
|
+
if (!this._changePending) {
|
|
3016
|
+
return;
|
|
3017
|
+
}
|
|
2995
3018
|
try {
|
|
2996
3019
|
const strValue = this._textInput.value;
|
|
2997
3020
|
const newValue = DateUtils$1.strToDate(strValue);
|
|
@@ -3225,6 +3248,9 @@ const EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
3225
3248
|
}
|
|
3226
3249
|
handleBlur() {
|
|
3227
3250
|
var _a, _b;
|
|
3251
|
+
if (!this._changePending) {
|
|
3252
|
+
return;
|
|
3253
|
+
}
|
|
3228
3254
|
try {
|
|
3229
3255
|
const strValue = ((_b = (_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.trim()) || "";
|
|
3230
3256
|
const newValue = this.getParsedDateTime();
|
|
@@ -4698,7 +4724,7 @@ const buildCheckBox = (field) => {
|
|
|
4698
4724
|
return buildField(field.name, field.label, field.readOnly, field.contextName, false);
|
|
4699
4725
|
};
|
|
4700
4726
|
function buildField(fieldName, fieldLabel, readOnly, contextName, switchMode) {
|
|
4701
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-
|
|
4727
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-align--middle ez-padding-horizontal--small ez-padding-bottom--large" },
|
|
4702
4728
|
h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? CheckMode.SWITCH : CheckMode.REGULAR, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName })));
|
|
4703
4729
|
}
|
|
4704
4730
|
|
|
@@ -4712,29 +4738,31 @@ const buildComboBox$1 = ({ name, label, readOnly, required, props, contextName,
|
|
|
4712
4738
|
else {
|
|
4713
4739
|
options = prop;
|
|
4714
4740
|
}
|
|
4715
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-
|
|
4741
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
4716
4742
|
h("ez-combo-box", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, options: options, canShowError: canShowError })));
|
|
4717
4743
|
};
|
|
4718
4744
|
|
|
4719
4745
|
const buildDate$1 = ({ name, label, readOnly, canShowError }) => {
|
|
4720
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-
|
|
4746
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
4721
4747
|
h("ez-date-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError })));
|
|
4722
4748
|
};
|
|
4723
4749
|
const buildTime$1 = ({ name, label, readOnly, canShowError }) => {
|
|
4724
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-
|
|
4750
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
4725
4751
|
h("ez-time-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError })));
|
|
4726
4752
|
};
|
|
4727
4753
|
const buildDateTime$1 = ({ name, label, readOnly, contextName, canShowError }) => {
|
|
4728
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-
|
|
4754
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
4729
4755
|
h("ez-date-time-input", { enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError })));
|
|
4730
4756
|
};
|
|
4731
4757
|
|
|
4732
4758
|
const buildFile = ({ name, label, readOnly, contextName, props }) => {
|
|
4733
4759
|
const uploadProps = ObjectUtils$1.removeEmptyValues({
|
|
4734
4760
|
subTitle: props.subTitle,
|
|
4735
|
-
requestHeaders: props.STORAGESTRATEGY
|
|
4761
|
+
requestHeaders: Object.assign(Object.assign({}, (props.STORAGESTRATEGY && {
|
|
4736
4762
|
STORAGESTRATEGY: props.STORAGESTRATEGY
|
|
4737
|
-
}
|
|
4763
|
+
})), (props.INTERNAL_FILENAME && {
|
|
4764
|
+
INTERNAL_FILENAME: props.INTERNAL_FILENAME
|
|
4765
|
+
})),
|
|
4738
4766
|
});
|
|
4739
4767
|
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
4740
4768
|
h("ez-upload", Object.assign({ enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name }, uploadProps))));
|
|
@@ -4749,12 +4777,12 @@ const buildInteger$1 = ({ name, label, readOnly, contextName, canShowError }) =>
|
|
|
4749
4777
|
return buildNumeric$1(name, label, readOnly, 0, 0, contextName, canShowError);
|
|
4750
4778
|
};
|
|
4751
4779
|
function buildNumeric$1(fieldName, fieldLabel, readOnly, precision, prettyPrecision, contextName, canShowError) {
|
|
4752
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-
|
|
4780
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
4753
4781
|
h("ez-number-input", { enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName, canShowError: canShowError })));
|
|
4754
4782
|
}
|
|
4755
4783
|
|
|
4756
4784
|
const buildSearch$1 = ({ name, label, readOnly, required, contextName, canShowError, optionLoader }) => {
|
|
4757
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-
|
|
4785
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
4758
4786
|
h("ez-search", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader })));
|
|
4759
4787
|
};
|
|
4760
4788
|
|
|
@@ -4764,7 +4792,7 @@ const buildTextArea = ({ name, label, readOnly, contextName, rows, canShowError
|
|
|
4764
4792
|
};
|
|
4765
4793
|
|
|
4766
4794
|
const buildTextInput$1 = ({ name, label, readOnly, contextName, canShowError }) => {
|
|
4767
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-
|
|
4795
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
4768
4796
|
h("ez-text-input", { label: label, "data-field-name": name, "data-context-name": contextName, key: name, enabled: !readOnly, canShowError: canShowError })));
|
|
4769
4797
|
};
|
|
4770
4798
|
|
|
@@ -4824,7 +4852,7 @@ class FormItems {
|
|
|
4824
4852
|
}
|
|
4825
4853
|
}
|
|
4826
4854
|
|
|
4827
|
-
const ezFormViewCss = ".sc-ez-form-view-h{display:flex;flex-
|
|
4855
|
+
const ezFormViewCss = ".sc-ez-form-view-h{display:flex;flex-wrap:wrap;width:100%;--ez-form-view__item--min-width:220px;--ez-form-view__item--sapce-width:5px}.form-view__content.sc-ez-form-view{display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--ez-form-view__item--min-width), 1fr));gap:var(--ez-form-view__item--sapce-width);width:100%}.input-full_width.sc-ez-form-view{grid-column:1 / -1;width:100%}";
|
|
4828
4856
|
|
|
4829
4857
|
const EzFormView$1 = class extends HTMLElement$1 {
|
|
4830
4858
|
constructor() {
|
|
@@ -4860,19 +4888,36 @@ const EzFormView$1 = class extends HTMLElement$1 {
|
|
|
4860
4888
|
const formItems = new FormItems(Array.from(this._element.querySelectorAll("[data-form-item]")));
|
|
4861
4889
|
this.formItemsReady.emit(formItems);
|
|
4862
4890
|
}
|
|
4891
|
+
isItemFullWidth(userInterface) {
|
|
4892
|
+
return [
|
|
4893
|
+
UserInterface.FILE,
|
|
4894
|
+
UserInterface.LONGTEXT
|
|
4895
|
+
].includes(userInterface);
|
|
4896
|
+
}
|
|
4897
|
+
buildFormItemElement(item, classItem = "") {
|
|
4898
|
+
if (this.isItemFullWidth(item.userInterface)) {
|
|
4899
|
+
classItem += " input-full_width";
|
|
4900
|
+
}
|
|
4901
|
+
return h("div", { class: classItem }, fieldBuilder(item));
|
|
4902
|
+
}
|
|
4863
4903
|
render() {
|
|
4864
4904
|
ElementIDUtils.addIDInfoIfNotExists(this._element, 'ezFormView');
|
|
4865
4905
|
if (this.fields == undefined) {
|
|
4866
4906
|
return;
|
|
4867
4907
|
}
|
|
4868
|
-
|
|
4908
|
+
let nonArrayGrup = [];
|
|
4909
|
+
let formContent = Array.from(this.groupFields(this.fields).entries()).map(([label, value]) => {
|
|
4869
4910
|
if (Array.isArray(value)) {
|
|
4870
|
-
return (h("ez-collapsible-box", { id: `group-${label}`, label: label, "header-size": "large", key: label }, value.map(fi =>
|
|
4911
|
+
return (h("ez-collapsible-box", { id: `group-${label}`, label: label, "header-size": "large", key: label }, h("div", { class: "form-view__content" }, value.map(fi => (this.buildFormItemElement(fi))))));
|
|
4871
4912
|
}
|
|
4872
4913
|
else {
|
|
4873
|
-
|
|
4914
|
+
nonArrayGrup.push(value);
|
|
4874
4915
|
}
|
|
4875
|
-
})
|
|
4916
|
+
});
|
|
4917
|
+
// Filtra os elementos que não são arrays e os coloca dentro de uma única div
|
|
4918
|
+
let nonArrayElements = nonArrayGrup.map((value) => this.buildFormItemElement(value));
|
|
4919
|
+
let groupedNonArrayElements = h("div", { class: "form-view__content" }, nonArrayElements);
|
|
4920
|
+
return (h(Host, null, groupedNonArrayElements, formContent));
|
|
4876
4921
|
}
|
|
4877
4922
|
get _element() { return this; }
|
|
4878
4923
|
static get style() { return ezFormViewCss; }
|
|
@@ -123699,6 +123744,14 @@ var AllEnterpriseModules = [
|
|
|
123699
123744
|
ModuleRegistry.registerModules(AllEnterpriseModules);
|
|
123700
123745
|
|
|
123701
123746
|
class DataSource {
|
|
123747
|
+
updateLoadedRecords(action) {
|
|
123748
|
+
const records = action.payload;
|
|
123749
|
+
if ((records === null || records === void 0 ? void 0 : records.length) > 0) {
|
|
123750
|
+
records.forEach(record => {
|
|
123751
|
+
this._controller.changeValues(record, [record.__record__id__]);
|
|
123752
|
+
});
|
|
123753
|
+
}
|
|
123754
|
+
}
|
|
123702
123755
|
isSilentChange(action) {
|
|
123703
123756
|
//TODO: Provisorio p/ não atualizar a grade quando a alteração for apenas de campos transisntes
|
|
123704
123757
|
var _a, _b;
|
|
@@ -123721,6 +123774,9 @@ class DataSource {
|
|
|
123721
123774
|
break;
|
|
123722
123775
|
case Action.LOADING_DATA:
|
|
123723
123776
|
this._waitingForLoad = true;
|
|
123777
|
+
if (EZ_GRID_LOADING_SOURCE !== action.payload.source) {
|
|
123778
|
+
this._controller.clearFilter();
|
|
123779
|
+
}
|
|
123724
123780
|
this._controller.refresh();
|
|
123725
123781
|
break;
|
|
123726
123782
|
case Action.DATA_LOADED:
|
|
@@ -123751,6 +123807,9 @@ class DataSource {
|
|
|
123751
123807
|
case Action.PREVIOUS_SELECTED:
|
|
123752
123808
|
this.updateSelection();
|
|
123753
123809
|
break;
|
|
123810
|
+
case Action.RECORD_LOADED:
|
|
123811
|
+
this.updateLoadedRecords(action);
|
|
123812
|
+
break;
|
|
123754
123813
|
}
|
|
123755
123814
|
};
|
|
123756
123815
|
this._dataUnit = dataUnit;
|
|
@@ -123820,15 +123879,6 @@ class DataSource {
|
|
|
123820
123879
|
}
|
|
123821
123880
|
}
|
|
123822
123881
|
|
|
123823
|
-
function calcFilterColumnLeftPosition(leftReference) {
|
|
123824
|
-
const FIX_MARGIN = 60;
|
|
123825
|
-
const FILTER_COLUMN_WIDTH = 330;
|
|
123826
|
-
const screenWidth = window.innerWidth;
|
|
123827
|
-
const maxLeft = screenWidth - (FILTER_COLUMN_WIDTH + FIX_MARGIN);
|
|
123828
|
-
const leftInt = leftReference - FIX_MARGIN;
|
|
123829
|
-
return leftInt > maxLeft ? maxLeft : leftInt;
|
|
123830
|
-
}
|
|
123831
|
-
|
|
123832
123882
|
class EzGridCustomHeader {
|
|
123833
123883
|
init(agParams) {
|
|
123834
123884
|
var _a;
|
|
@@ -123865,8 +123915,7 @@ class EzGridCustomHeader {
|
|
|
123865
123915
|
}
|
|
123866
123916
|
onClickFilter() {
|
|
123867
123917
|
var _a;
|
|
123868
|
-
|
|
123869
|
-
this.params.showColumnFilter(`${calcFilterColumnLeftPosition(iconLeft)}px`, true);
|
|
123918
|
+
this.params.showColumnFilter((_a = this.filterButton) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left);
|
|
123870
123919
|
}
|
|
123871
123920
|
configSortIcon() {
|
|
123872
123921
|
this.sortDownIcon.style.display = this.params.column.isSortDescending() ? 'flex' : 'none';
|
|
@@ -124525,6 +124574,10 @@ class AgGridController {
|
|
|
124525
124574
|
this._gridOptions.api.refreshHeader();
|
|
124526
124575
|
this._dataUnit.loadData(undefined, undefined, undefined, EZ_GRID_LOADING_SOURCE);
|
|
124527
124576
|
}
|
|
124577
|
+
clearFilter() {
|
|
124578
|
+
this._filteredColumns.clear();
|
|
124579
|
+
this._gridOptions.api.refreshHeader();
|
|
124580
|
+
}
|
|
124528
124581
|
showFilterColumn(configs) {
|
|
124529
124582
|
var _a;
|
|
124530
124583
|
(_a = this._filterColumn) === null || _a === void 0 ? void 0 : _a.show(configs);
|
|
@@ -124543,7 +124596,7 @@ class AgGridController {
|
|
|
124543
124596
|
this._idAttribName = '__record__id__';
|
|
124544
124597
|
this._gridConfig = [];
|
|
124545
124598
|
this._filteredColumns = new Map();
|
|
124546
|
-
this._filterColumnleftPosition =
|
|
124599
|
+
this._filterColumnleftPosition = 0;
|
|
124547
124600
|
this._enterprise = enterprise;
|
|
124548
124601
|
}
|
|
124549
124602
|
getGridConfig() {
|
|
@@ -124669,11 +124722,9 @@ class AgGridController {
|
|
|
124669
124722
|
this._gridOptions.api.setHeaderHeight(this.getHeaderRowHeight());
|
|
124670
124723
|
}
|
|
124671
124724
|
}
|
|
124672
|
-
setFilterColumnLeftPosition(
|
|
124673
|
-
if (
|
|
124674
|
-
|
|
124675
|
-
const leftString = ePopup.style.left.replace('px', '');
|
|
124676
|
-
this._filterColumnleftPosition = `${calcFilterColumnLeftPosition(parseInt(leftString))}px`;
|
|
124725
|
+
setFilterColumnLeftPosition({ type, ePopup }) {
|
|
124726
|
+
if (type === 'columnMenu') {
|
|
124727
|
+
this._filterColumnleftPosition = ePopup.getBoundingClientRect().left;
|
|
124677
124728
|
return;
|
|
124678
124729
|
}
|
|
124679
124730
|
}
|
|
@@ -125113,10 +125164,10 @@ class AgGridController {
|
|
|
125113
125164
|
tooltip: tooltip,
|
|
125114
125165
|
isSortable: propSortable,
|
|
125115
125166
|
hasFilter: () => this.hasFilterColumn(source.name),
|
|
125116
|
-
showColumnFilter: (leftPosition
|
|
125167
|
+
showColumnFilter: (leftPosition) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name), fromIcon: true }),
|
|
125117
125168
|
},
|
|
125118
125169
|
valueFormatter: params => {
|
|
125119
|
-
if (params.value
|
|
125170
|
+
if (params.value === undefined) {
|
|
125120
125171
|
return "";
|
|
125121
125172
|
}
|
|
125122
125173
|
if (params.value instanceof Promise) {
|
|
@@ -125498,13 +125549,13 @@ class InMemoryFilterColumnDataSource {
|
|
|
125498
125549
|
}
|
|
125499
125550
|
}
|
|
125500
125551
|
|
|
125501
|
-
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--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}";
|
|
125552
|
+
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--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%);--ez-grid--min-height:300px;min-height:var(--ez-grid--min-height)}.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}.grid-header__pagination.sc-ez-grid{width:30%;min-width:100px;justify-content:end;flex-wrap:wrap}.grid-header__left-container.sc-ez-grid{width:70%}.grid-header__pagination-label.sc-ez-grid{width:100%;white-space:nowrap}.overflowed.sc-ez-grid{display:none}";
|
|
125502
125553
|
|
|
125503
125554
|
const windowInstace$1 = window;
|
|
125504
125555
|
const matches = (text, filter) => {
|
|
125505
|
-
const normalizedText = StringUtils$1.replaceAccentuatedCharsLower(text.toLocaleLowerCase());
|
|
125556
|
+
const normalizedText = StringUtils$1.replaceAccentuatedCharsLower(text === null || text === void 0 ? void 0 : text.toLocaleLowerCase());
|
|
125506
125557
|
const normalizedFilter = StringUtils$1.replaceAccentuatedCharsLower(filter.toLocaleLowerCase());
|
|
125507
|
-
return normalizedText.includes(normalizedFilter);
|
|
125558
|
+
return normalizedText === null || normalizedText === void 0 ? void 0 : normalizedText.includes(normalizedFilter);
|
|
125508
125559
|
};
|
|
125509
125560
|
const EzGrid$1 = class extends HTMLElement$1 {
|
|
125510
125561
|
constructor() {
|
|
@@ -125598,6 +125649,14 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
125598
125649
|
observeConfig(config) {
|
|
125599
125650
|
this._gridController.setColumnsState(config.columns);
|
|
125600
125651
|
}
|
|
125652
|
+
updatePaginationTooltip() {
|
|
125653
|
+
if (this._refPaginationLabelTooltip) {
|
|
125654
|
+
const tooltip = this._getPaginationTooltip();
|
|
125655
|
+
if (tooltip) {
|
|
125656
|
+
this._refPaginationLabelTooltip.setAttribute('data-tooltip', tooltip);
|
|
125657
|
+
}
|
|
125658
|
+
}
|
|
125659
|
+
}
|
|
125601
125660
|
onSelectionChange(evt) {
|
|
125602
125661
|
this._currentPageSelected = evt.detail.selectionHeaderStatus === true;
|
|
125603
125662
|
if (this.dataUnit) {
|
|
@@ -125753,11 +125812,10 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
125753
125812
|
}
|
|
125754
125813
|
getPaginationControl() {
|
|
125755
125814
|
if (this._paginationInfo) {
|
|
125756
|
-
const {
|
|
125815
|
+
const { currentPage, hasMore } = this._paginationInfo;
|
|
125757
125816
|
return [
|
|
125758
|
-
h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium" }, h("strong", { class: "ez-text ez-text--primary ez-text--medium" },
|
|
125759
|
-
h("
|
|
125760
|
-
h("ez-button", { size: "small", iconName: "chevron-right", class: "ez-margin-right--medium", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: "Pr\u00F3xima P\u00E1gina" }),
|
|
125817
|
+
h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium", ref: (element) => (this._refPaginationLabel = element) }, h("span", { class: "grid-header__pagination-label" }, h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this._getRemainingPageLabel())),
|
|
125818
|
+
h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium" }, h("ez-button", { size: "small", class: "ez-margin-right--medium", iconName: "chevron-left", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: "P\u00E1gina anterior" }), h("ez-button", { size: "small", iconName: "chevron-right", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: "Pr\u00F3xima P\u00E1gina" })),
|
|
125761
125819
|
];
|
|
125762
125820
|
}
|
|
125763
125821
|
return null;
|
|
@@ -125801,6 +125859,53 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
125801
125859
|
this.setEvents();
|
|
125802
125860
|
this.componentReady.emit();
|
|
125803
125861
|
this._gridController.configFilterColumn(this._filterColumn);
|
|
125862
|
+
this._initHeaderOverflowWatcher();
|
|
125863
|
+
}
|
|
125864
|
+
_getActualPageLabel() {
|
|
125865
|
+
const { firstRecord, lastRecord } = this._paginationInfo;
|
|
125866
|
+
return `${firstRecord}-${lastRecord}`;
|
|
125867
|
+
}
|
|
125868
|
+
_getRemainingPageLabel() {
|
|
125869
|
+
const { total, count } = this._paginationInfo;
|
|
125870
|
+
return `${total == undefined ? ` de ${count + 1} ou mais` : ` de ${total}`}`;
|
|
125871
|
+
}
|
|
125872
|
+
_getPaginationTooltip() {
|
|
125873
|
+
return this._getActualPageLabel() + this._getRemainingPageLabel();
|
|
125874
|
+
}
|
|
125875
|
+
_initHeaderOverflowWatcher() {
|
|
125876
|
+
this._headerOverflowWatcher = new OverflowWatcher(this.buildOverFlowWatcherParams());
|
|
125877
|
+
}
|
|
125878
|
+
buildOverFlowWatcherParams() {
|
|
125879
|
+
return {
|
|
125880
|
+
element: this._refPaginationControl,
|
|
125881
|
+
callback: this.handleOverFlow.bind(this),
|
|
125882
|
+
notOverFlow: ["grid-pagination-tooltip"]
|
|
125883
|
+
};
|
|
125884
|
+
}
|
|
125885
|
+
handleOverFlow(elementsOverflow) {
|
|
125886
|
+
if (!this._refPaginationLabel)
|
|
125887
|
+
return;
|
|
125888
|
+
if (elementsOverflow.length > 0) {
|
|
125889
|
+
this._hidePaginationDescription();
|
|
125890
|
+
}
|
|
125891
|
+
else {
|
|
125892
|
+
this._showPaginationDescription();
|
|
125893
|
+
}
|
|
125894
|
+
}
|
|
125895
|
+
_hidePaginationDescription() {
|
|
125896
|
+
this._refPaginationLabel.classList.add(OVERFLOWED_CLASS_NAME);
|
|
125897
|
+
this._refPaginationLabelTooltip.setAttribute('data-flow', 'bottom');
|
|
125898
|
+
this._refPaginationLabelTooltip.setAttribute('data-tooltip', this._getPaginationTooltip());
|
|
125899
|
+
}
|
|
125900
|
+
;
|
|
125901
|
+
_showPaginationDescription() {
|
|
125902
|
+
this._refPaginationLabel.classList.remove(OVERFLOWED_CLASS_NAME);
|
|
125903
|
+
this._refPaginationLabelTooltip.removeAttribute('data-flow');
|
|
125904
|
+
this._refPaginationLabelTooltip.removeAttribute('data-tooltip');
|
|
125905
|
+
}
|
|
125906
|
+
disconnectedCallback() {
|
|
125907
|
+
var _a;
|
|
125908
|
+
(_a = this._headerOverflowWatcher) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
125804
125909
|
}
|
|
125805
125910
|
componentWillRender() {
|
|
125806
125911
|
this.configSelectionCounter();
|
|
@@ -125824,14 +125929,15 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
125824
125929
|
}
|
|
125825
125930
|
render() {
|
|
125826
125931
|
var _a;
|
|
125827
|
-
return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: "grid__container ez-grid", ref: elem => (this._container = elem) }), h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: "grid-header__container" }, h("slot", { name: "leftButtons" })), h("div", { class: "grid-header__container", ref: ref => (this._refPaginationControl = ref) }, this.getPaginationControl()))), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
|
|
125932
|
+
return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: "grid__container ez-grid", ref: elem => (this._container = elem) }), h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: "grid-header__container grid-header__left-container" }, h("slot", { name: "leftButtons" })), h("div", { class: "grid-header__container grid-header__pagination", ref: ref => (this._refPaginationControl = ref) }, this.getPaginationControl()))), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
|
|
125828
125933
|
${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
|
|
125829
125934
|
` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
|
|
125830
125935
|
}
|
|
125831
125936
|
static get assetsDirs() { return ["../assets"]; }
|
|
125832
125937
|
get _element() { return this; }
|
|
125833
125938
|
static get watchers() { return {
|
|
125834
|
-
"config": ["observeConfig"]
|
|
125939
|
+
"config": ["observeConfig"],
|
|
125940
|
+
"_paginationInfo": ["updatePaginationTooltip"]
|
|
125835
125941
|
}; }
|
|
125836
125942
|
static get style() { return ezGridCss; }
|
|
125837
125943
|
};
|
|
@@ -125938,7 +126044,7 @@ const EzGuideNavigator$1 = class extends HTMLElement$1 {
|
|
|
125938
126044
|
static get style() { return ezGuideNavigatorCss; }
|
|
125939
126045
|
};
|
|
125940
126046
|
|
|
125941
|
-
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-
|
|
126047
|
+
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}";
|
|
125942
126048
|
|
|
125943
126049
|
const EzIcon$1 = class extends HTMLElement$1 {
|
|
125944
126050
|
constructor() {
|
|
@@ -126823,16 +126929,8 @@ const EzMuiltiSelectionList = class extends HTMLElement$1 {
|
|
|
126823
126929
|
}
|
|
126824
126930
|
handleChangeSelectedItem(event) {
|
|
126825
126931
|
const { detail: itemCheckSelected } = event;
|
|
126826
|
-
|
|
126827
|
-
|
|
126828
|
-
return Object.assign(Object.assign({}, item), { check: itemCheckSelected.check });
|
|
126829
|
-
}
|
|
126830
|
-
return item;
|
|
126831
|
-
});
|
|
126832
|
-
this.clearInputs();
|
|
126833
|
-
}
|
|
126834
|
-
clearInputs() {
|
|
126835
|
-
this.filterInput ? (this.filterInput.value = '') : (this.searchInput.value = '');
|
|
126932
|
+
const itemSelected = this.filteredOptions.find(item => item.label === itemCheckSelected.label);
|
|
126933
|
+
itemSelected.check = itemCheckSelected.check;
|
|
126836
126934
|
}
|
|
126837
126935
|
buildViewList(hasDelete) {
|
|
126838
126936
|
return (h(Fragment, null, this.displayOptionToCheckAllItems && (h("ez-check", { ref: (element) => (this.checkInput = element), label: "Selecionar todos", class: "multi-selection__select-all", onEzChange: this.handleChangeSelectAllItems.bind(this) })), h("ez-list", { class: "multi-selection__list", dataSource: this.displayOptions, listMode: "check", hoverFeedback: true, onEzCheckChange: this.handleChangeSelectedItem.bind(this), itemSlotBuilder: hasDelete ? this.buildDeleteIconSlot.bind(this) : null })));
|
|
@@ -126982,6 +127080,9 @@ const EzNumberInput$1 = class extends HTMLElement$1 {
|
|
|
126982
127080
|
this.ezCancelWaitingChange.emit();
|
|
126983
127081
|
}
|
|
126984
127082
|
handleBlur() {
|
|
127083
|
+
if (!this._changePending) {
|
|
127084
|
+
return;
|
|
127085
|
+
}
|
|
126985
127086
|
try {
|
|
126986
127087
|
const parsedNumber = this.getParsedNumber();
|
|
126987
127088
|
if (parsedNumber !== undefined && isNaN(parsedNumber)) {
|
|
@@ -127192,7 +127293,7 @@ const EzPopover$1 = class extends HTMLElement$1 {
|
|
|
127192
127293
|
static get style() { return ezPopoverCss; }
|
|
127193
127294
|
};
|
|
127194
127295
|
|
|
127195
|
-
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;
|
|
127296
|
+
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;height:100%;width:100%}.popup__expandable-content{box-sizing:border-box;width:100%;height:calc(100% - 44px)}.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%}}";
|
|
127196
127297
|
|
|
127197
127298
|
const EzPopup$1 = class extends HTMLElement$1 {
|
|
127198
127299
|
constructor() {
|
|
@@ -127485,7 +127586,7 @@ class ScrollCtrl {
|
|
|
127485
127586
|
}
|
|
127486
127587
|
}
|
|
127487
127588
|
|
|
127488
|
-
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);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;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);
|
|
127589
|
+
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)}}";
|
|
127489
127590
|
|
|
127490
127591
|
const EzSearch$1 = class extends HTMLElement$1 {
|
|
127491
127592
|
constructor() {
|
|
@@ -127675,10 +127776,9 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127675
127776
|
if (currentValue == undefined) {
|
|
127676
127777
|
return;
|
|
127677
127778
|
}
|
|
127678
|
-
|
|
127679
|
-
|
|
127680
|
-
|
|
127681
|
-
return currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
|
|
127779
|
+
let text = (!this.showSelectedValue || currentValue.value == undefined) ? currentValue.label : `${currentValue.value} - ${currentValue.label}`;
|
|
127780
|
+
text = text.replace(new RegExp(this._startHighlightTag, 'g'), '').replace(new RegExp(this._endHighlightTag, 'g'), '');
|
|
127781
|
+
return text;
|
|
127682
127782
|
}
|
|
127683
127783
|
getText() {
|
|
127684
127784
|
const currentValue = this.getSelectedOption(this.value);
|
|
@@ -127750,7 +127850,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127750
127850
|
title: opt.label,
|
|
127751
127851
|
details: opt.details
|
|
127752
127852
|
};
|
|
127753
|
-
return h("div", { style: { "height": "100%" }, onMouseDown: () => this.createOption(card), onMouseOver: () => this._preSelection = index }, h("ez-card-item", { item: card }));
|
|
127853
|
+
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 }));
|
|
127754
127854
|
}
|
|
127755
127855
|
showOptions() {
|
|
127756
127856
|
if (!this.enabled)
|
|
@@ -127794,7 +127894,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127794
127894
|
}
|
|
127795
127895
|
scrollToOption(opt) {
|
|
127796
127896
|
window.requestAnimationFrame(() => {
|
|
127797
|
-
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`
|
|
127897
|
+
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`div#item_${opt.value.replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
|
|
127798
127898
|
if (liElem)
|
|
127799
127899
|
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
127800
127900
|
});
|
|
@@ -128237,15 +128337,169 @@ const EzSkeleton$1 = class extends HTMLElement$1 {
|
|
|
128237
128337
|
static get style() { return ezSkeletonCss; }
|
|
128238
128338
|
};
|
|
128239
128339
|
|
|
128240
|
-
const
|
|
128340
|
+
const ezSplitButtonCss = ":host{--ez-split-button--min-width:24;--ez-split-button--width:'auto';--ez-split-button__medium--height:32px;--ez-split-button__large--height:42px;--ez-split-button__medium-icon--width:40px;--ez-split-button__large-icon--width:44px;--ez-split-button__inline__icon--gap:6px;--ez-split-button__label--padding-top:0px;--ez-split-button__label--padding-bottom:0px;--ez-split-button__right-button--padding-left:8px;--ez-split-button--color:var(--title--primary, #FFF);--ez-split-button--font-size:var(--text--medium, 14px);--ez-split-button--font-family:var(--font-pattern, Arial);--ez-split-button--font-weight:var(--text-weight--large);--ez-split-button--background-color:var(--background--medium, #008561);--ez-split-button--border-radius:var(--border--radius-large, 12px);--ez-split-button--border:none;--ez-split-button--justify-content:center;--ez-split-button--hover-color:var(--color--primary-600);--ez-split-button--hover--background-color:var(--background--medium, var(--ez-split-button--background-color));--ez-split-button--disabled-color:var(--text--disable);--ez-split-button--disabled--background-color:var(--color--disable-secondary);--ez-split-button--focus--border:var(--border--medium, 2px) var(--color--primary-300);--ez-split-button--focus--box-shadow:none;--ez-split-button--active-color:var(--color--primary-700);--ez-split-button--active--background-color:var(--background--strong)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-split-button--min-width);width:var(--ez-split-button--width);height:var(--ez-split-button__medium--height);font-family:var(--ez-split-button--font-family);font-size:var(--ez-split-button--font-size);font-weight:var(--ez-split-button--font-weight);padding:var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;border-top-left-radius:var(--ez-split-button--border-radius);border-bottom-left-radius:var(--ez-split-button--border-radius);background-color:var(--ez-split-button--background-color);color:var(--ez-split-button--color);fill:var(--ez-split-button--color);border:var(--ez-split-button--border);justify-content:var(--ez-split-button--justify-content)}label{cursor:pointer}button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button:focus,.ez-split-button__right-button:focus{outline:var(--ez-split-button--focus--border);box-shadow:var(--ez-split-button--focus--box-shadow)}.ez-split-button__left-button:hover,.ez-split-button__right-button:hover{outline:none;background-color:var(--ez-split-button--hover--background-color);color:var(--ez-split-button--hover-color);fill:var(--ez-split-button--hover-color);--ez-icon--color:var(--ez-split-button--hover-color)}.ez-split-button__left-button:disabled,.ez-split-button__left-button:disabled label,.ez-split-button__right-button:disabled{background-color:var(--ez-split-button--disabled--background-color);color:var(--ez-split-button--disabled-color);fill:var(--ez-split-button--disabled-color);border:none;--ez-icon--color:var(--ez-split-button--disabled-color);cursor:not-allowed}button.large{height:var(--ez-split-button__large--height)}button.medium{height:var(--ez-split-button__medium--height)}.default label{padding:var(--ez-split-button__label--padding-top) 12px var(--ez-split-button__label--padding-bottom) 20px}.icon-left{gap:var(--ez-split-button__inline__icon--gap)}.icon-left label{padding-right:12px}.icon-left ez-icon{padding-left:20px}.icon-only{padding-left:12px;padding-right:12px}.ez-split-button__right-button{border-top-right-radius:var(--ez-split-button--border-radius);border-bottom-right-radius:var(--ez-split-button--border-radius);border-top-left-radius:0;border-bottom-left-radius:0}.ez-split-button__right-button--medium{min-width:var(--ez-split-button__medium-icon--width)}.ez-split-button__right-button--large{min-width:var(--ez-split-button__large-icon--width)}.ez-split-button__right-button--divider{top:10%;bottom:10%}.ez-split-button__right-button--divider:before{content:\"\";position:absolute;left:0;border-left:1px solid rgba(0, 0, 0, 20%);border-radius:2px;height:75%}.btn-icon--medium{min-width:--ez-split-button__medium-icon--width}.btn-icon--large{min-width:--ez-split-button__large-icon--width}.ez-split-button__right-button-container{position:absolute;left:0;padding-left:var(--ez-split-button__right-button--padding-left)}.label-icon{display:flex;flex-direction:row;align-items:center;color:var(--ez-split-button--color)}.label-icon:active{color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.dropdown{display:flex}.dropdown-content{display:block;position:absolute;background-color:#f1f1f1;min-width:160px;z-index:--ez-elevation--8;border-radius:var(--ez-split-button--border-radius)}.dropdown-content>ez-dropdown{position:relative}";
|
|
128341
|
+
|
|
128342
|
+
const EzSplitButton$1 = class extends HTMLElement$1 {
|
|
128343
|
+
constructor() {
|
|
128344
|
+
super();
|
|
128345
|
+
this.__registerHost();
|
|
128346
|
+
this.__attachShadow();
|
|
128347
|
+
this.buttonClick = createEvent(this, "buttonClick", 7);
|
|
128348
|
+
this.dropdownItemClick = createEvent(this, "dropdownItemClick", 7);
|
|
128349
|
+
this.dropdownSubActionClick = createEvent(this, "dropdownSubActionClick", 7);
|
|
128350
|
+
this.rightDefaultTitle = 'Mais opções';
|
|
128351
|
+
this.show = false;
|
|
128352
|
+
this.enabled = true;
|
|
128353
|
+
this.iconName = undefined;
|
|
128354
|
+
this.image = undefined;
|
|
128355
|
+
this.items = undefined;
|
|
128356
|
+
this.label = undefined;
|
|
128357
|
+
this.leftTitle = undefined;
|
|
128358
|
+
this.rightTitle = 'Mais opções';
|
|
128359
|
+
this.mode = 'default';
|
|
128360
|
+
this.size = 'medium';
|
|
128361
|
+
}
|
|
128362
|
+
/**
|
|
128363
|
+
* Remove o foco de ambos os botões.
|
|
128364
|
+
*/
|
|
128365
|
+
async setBlur() {
|
|
128366
|
+
this.leftButton.blur();
|
|
128367
|
+
this.rightButton.blur();
|
|
128368
|
+
}
|
|
128369
|
+
/**
|
|
128370
|
+
* Aplica o foco no botão principal.
|
|
128371
|
+
*/
|
|
128372
|
+
async setLeftButtonFocus() {
|
|
128373
|
+
this.leftButton.focus();
|
|
128374
|
+
}
|
|
128375
|
+
/**
|
|
128376
|
+
* Aplica o foco no botão do dropdown.
|
|
128377
|
+
*/
|
|
128378
|
+
async setRightButtonFocus() {
|
|
128379
|
+
this.rightButton.focus();
|
|
128380
|
+
}
|
|
128381
|
+
clickListener(evt) {
|
|
128382
|
+
if (!this.enabled) {
|
|
128383
|
+
evt.preventDefault();
|
|
128384
|
+
evt.stopPropagation();
|
|
128385
|
+
evt.stopImmediatePropagation();
|
|
128386
|
+
}
|
|
128387
|
+
}
|
|
128388
|
+
getIconSize(sizeParam = 'medium') {
|
|
128389
|
+
var _a;
|
|
128390
|
+
const sizeList = ['medium', 'large'];
|
|
128391
|
+
const sizeLowerCase = (_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
128392
|
+
return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
|
|
128393
|
+
}
|
|
128394
|
+
closeDropdown() {
|
|
128395
|
+
this.show = false;
|
|
128396
|
+
}
|
|
128397
|
+
toggleDropdown() {
|
|
128398
|
+
this.show = !this.show;
|
|
128399
|
+
}
|
|
128400
|
+
handleButtonClick() {
|
|
128401
|
+
this.buttonClick.emit();
|
|
128402
|
+
}
|
|
128403
|
+
handleDropdownItemClick(evt) {
|
|
128404
|
+
this.dropdownItemClick.emit(evt.detail);
|
|
128405
|
+
evt.stopPropagation();
|
|
128406
|
+
this.closeDropdown();
|
|
128407
|
+
}
|
|
128408
|
+
handleDropdownSubActionClick(evt) {
|
|
128409
|
+
this.dropdownSubActionClick.emit(evt.detail);
|
|
128410
|
+
evt.stopPropagation();
|
|
128411
|
+
this.closeDropdown();
|
|
128412
|
+
}
|
|
128413
|
+
/**
|
|
128414
|
+
* Método responsável em posicionar o dropdown na tela.
|
|
128415
|
+
* Faz com que o dropdown se ajuste automaticamente ao espaco na tela
|
|
128416
|
+
*/
|
|
128417
|
+
positionDropdown() {
|
|
128418
|
+
const { rightButton: _rightButton, dropdownParent: _dropdownParent } = this;
|
|
128419
|
+
const rightButtonRect = _rightButton.getBoundingClientRect();
|
|
128420
|
+
const dropdownParentRect = _dropdownParent.getBoundingClientRect();
|
|
128421
|
+
const spaceBelow = window.innerHeight - rightButtonRect.bottom;
|
|
128422
|
+
const spaceAbove = rightButtonRect.top;
|
|
128423
|
+
const spaceRight = window.innerWidth - rightButtonRect.right;
|
|
128424
|
+
const spaceLeft = rightButtonRect.left;
|
|
128425
|
+
const hasSpaceBelow = spaceBelow < dropdownParentRect.height && spaceAbove > dropdownParentRect.height;
|
|
128426
|
+
const hasSpaceRight = spaceRight < dropdownParentRect.width && spaceLeft > dropdownParentRect.width;
|
|
128427
|
+
let top = `${rightButtonRect.bottom + window.scrollY}px`;
|
|
128428
|
+
let left = `${rightButtonRect.left + window.scrollX}px`;
|
|
128429
|
+
let bottom = 'auto';
|
|
128430
|
+
if (hasSpaceBelow) {
|
|
128431
|
+
bottom = `${window.innerHeight - rightButtonRect.top - window.scrollY}px`;
|
|
128432
|
+
top = 'auto';
|
|
128433
|
+
_dropdownParent.style.maxHeight = `${spaceAbove}px`;
|
|
128434
|
+
}
|
|
128435
|
+
if (hasSpaceRight) {
|
|
128436
|
+
left = `${rightButtonRect.right - dropdownParentRect.width + window.scrollX}px`;
|
|
128437
|
+
}
|
|
128438
|
+
_dropdownParent.style.top = top;
|
|
128439
|
+
_dropdownParent.style.bottom = bottom;
|
|
128440
|
+
_dropdownParent.style.left = left;
|
|
128441
|
+
}
|
|
128442
|
+
setEvents() {
|
|
128443
|
+
window.removeEventListener('scroll', this.positionDropdown.bind(this));
|
|
128444
|
+
window.addEventListener('scroll', this.positionDropdown.bind(this));
|
|
128445
|
+
}
|
|
128446
|
+
componentWillLoad() {
|
|
128447
|
+
this.setEvents();
|
|
128448
|
+
}
|
|
128449
|
+
componentDidLoad() {
|
|
128450
|
+
if (this._element)
|
|
128451
|
+
ElementIDUtils.addIDInfo(this._element);
|
|
128452
|
+
if (this.leftButton) {
|
|
128453
|
+
const dataInfo = { id: 'embedded' };
|
|
128454
|
+
ElementIDUtils.addIDInfo(this.leftButton, 'left-button', dataInfo);
|
|
128455
|
+
}
|
|
128456
|
+
if (this.rightButton) {
|
|
128457
|
+
const dataInfo = { id: 'embedded' };
|
|
128458
|
+
ElementIDUtils.addIDInfo(this.rightButton, 'right-button', dataInfo);
|
|
128459
|
+
}
|
|
128460
|
+
this.positionDropdown();
|
|
128461
|
+
}
|
|
128462
|
+
componentDidUpdate() {
|
|
128463
|
+
this.positionDropdown();
|
|
128464
|
+
}
|
|
128465
|
+
render() {
|
|
128466
|
+
const hasIconButton = this.shouldShowIconOnLeftButton();
|
|
128467
|
+
const hasLabelButton = this.shouldShowLabelOnLeftButton();
|
|
128468
|
+
const iconSize = this.getIconSize();
|
|
128469
|
+
return (h("div", { class: "label-icon" }, h("button", { class: `ez-split-button__left-button ${iconSize} ${this.mode}`, title: this.leftTitle || this.label, type: "button", disabled: !this.enabled, onClick: () => { this.handleButtonClick(); }, ref: el => (this.leftButton = el) }, hasIconButton && h("ez-icon", { href: this.image, iconName: this.iconName, size: iconSize }), hasLabelButton && h("label", { title: this.leftTitle || this.label }, this.label)), h("div", { class: "dropdown" }, h("button", { class: `ez-split-button__right-button ${iconSize} ez-split-button__right-button--${iconSize} ez-split-button__right-button--divider`, title: this.rightTitle || this.rightDefaultTitle, type: "button", disabled: !this.enabled, onClick: () => { this.toggleDropdown(); }, ref: el => (this.rightButton = el) }, h("ez-icon", { class: `ez-split-button__right-button-container ` + (iconSize ? `btn-icon--${iconSize}` : ''), iconName: 'chevron-down', size: iconSize })), h("div", { class: `dropdown-content dropdown-content--${this.size}`, ref: (ref) => (this.dropdownParent = ref) }, this.show && (h("ez-dropdown", { items: this.items, onClick: evt => { evt.stopPropagation(); }, onEzOutsideClick: () => { this.closeDropdown(); }, onEzClick: evt => { this.handleDropdownItemClick(evt); }, onEzSubActionClick: evt => { this.handleDropdownSubActionClick(evt); } }))))));
|
|
128470
|
+
}
|
|
128471
|
+
shouldShowLabelOnLeftButton() {
|
|
128472
|
+
return ['icon-left', 'default'].includes(this.mode);
|
|
128473
|
+
}
|
|
128474
|
+
shouldShowIconOnLeftButton() {
|
|
128475
|
+
return ['icon-left', 'icon-only'].includes(this.mode);
|
|
128476
|
+
}
|
|
128477
|
+
get _element() { return this; }
|
|
128478
|
+
static get style() { return ezSplitButtonCss; }
|
|
128479
|
+
};
|
|
128480
|
+
|
|
128481
|
+
const ezSplitItemCss = "ez-split-item{--snk-grid-min-height:0;--ez-grid--min-height:0}.box_split-item{background-color:var(--background--xlight);width:100%;height:100%;border-radius:var(--border--radius-medium);box-shadow:var(--shadow);flex-direction:column;overflow:hidden;display:flex;padding:var(--space--nano)}.box_split-item>.ez-split-item--content{overflow:auto}.expanded__item{position:absolute;z-index:var(--more-visible);top:0;left:0;width:100%;height:100%}.ez-split-item--header{display:flex;align-items:center;justify-content:space-between}.ez-split-item--header-buttons{display:flex;align-items:center}.ez-split-item--content{display:block;height:100%}";
|
|
128241
128482
|
|
|
128242
128483
|
const SplitItem = class extends HTMLElement$1 {
|
|
128243
128484
|
constructor() {
|
|
128244
128485
|
super();
|
|
128245
128486
|
this.__registerHost();
|
|
128487
|
+
this.label = undefined;
|
|
128488
|
+
this.enableExpand = true;
|
|
128489
|
+
this._expanded = false;
|
|
128490
|
+
this.size = undefined;
|
|
128491
|
+
}
|
|
128492
|
+
/**
|
|
128493
|
+
* Alterna a visibilidade do painel.
|
|
128494
|
+
*/
|
|
128495
|
+
toggleExpandItem() {
|
|
128496
|
+
this._expanded = !this._expanded;
|
|
128497
|
+
}
|
|
128498
|
+
componentDidLoad() {
|
|
128499
|
+
CSSVarsUtils.applyVarsGrid(this._element, this._slot.children[0]);
|
|
128246
128500
|
}
|
|
128247
128501
|
render() {
|
|
128248
|
-
return (h(Host, { class:
|
|
128502
|
+
return (h(Host, { class: `box_split-item ${this._expanded ? 'expanded__item' : ''}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("div", null, this.label && (h("div", { class: "ez-margin--small" }, h("h3", { class: " ez-title ez-title--small" }, this.label)))), h("div", { class: "ez-split-item--header-buttons" }, this.enableExpand && (h("ez-button", { size: "medium", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })), h("slot", { name: "rightButtons" }))), h("div", { class: "ez-split-item--content", ref: el => (this._slot = el) }, h("slot", null))));
|
|
128249
128503
|
}
|
|
128250
128504
|
static get style() { return ezSplitItemCss; }
|
|
128251
128505
|
};
|
|
@@ -128935,6 +129189,7 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128935
129189
|
this.__registerHost();
|
|
128936
129190
|
this._items = [];
|
|
128937
129191
|
this.direction = 'column';
|
|
129192
|
+
this.anchorToExpand = false;
|
|
128938
129193
|
}
|
|
128939
129194
|
componentDidLoad() {
|
|
128940
129195
|
this._panelID = StringUtils$1.generateUUID();
|
|
@@ -128961,7 +129216,7 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128961
129216
|
getGutters() {
|
|
128962
129217
|
const gutters = {
|
|
128963
129218
|
columnGutters: [],
|
|
128964
|
-
rowGutters: []
|
|
129219
|
+
rowGutters: [],
|
|
128965
129220
|
};
|
|
128966
129221
|
if (!this._items.length) {
|
|
128967
129222
|
return gutters;
|
|
@@ -128971,19 +129226,19 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128971
129226
|
if (index == this._items.length - 1)
|
|
128972
129227
|
return;
|
|
128973
129228
|
let gutterTrack = item.dataset.trackNumber;
|
|
128974
|
-
if (index ===
|
|
129229
|
+
if (index === this._items.length - 1) {
|
|
128975
129230
|
gutterTrack = this._items.length.toString();
|
|
128976
129231
|
}
|
|
128977
129232
|
gutters[proToChange].push({
|
|
128978
129233
|
track: Number(gutterTrack),
|
|
128979
|
-
element: this._element.querySelector(`ez-split-panel[data-panel-id="${this._panelID}"] > [data-item-track="${item.dataset.trackNumber}"]`)
|
|
129234
|
+
element: this._element.querySelector(`ez-split-panel[data-panel-id="${this._panelID}"] > [data-item-track="${item.dataset.trackNumber}"]`),
|
|
128980
129235
|
});
|
|
128981
129236
|
});
|
|
128982
129237
|
return gutters;
|
|
128983
129238
|
}
|
|
128984
129239
|
addItemGutter(item) {
|
|
128985
129240
|
const gutter = document.createElement('div');
|
|
128986
|
-
gutter.classList.add(
|
|
129241
|
+
gutter.classList.add('ez-split-gutter');
|
|
128987
129242
|
gutter.classList.add(this.direction);
|
|
128988
129243
|
gutter.dataset.itemTrack = `${item.dataset.trackNumber}`;
|
|
128989
129244
|
gutter.dataset.trackNumber = (Number(item.dataset.trackNumber) + 1).toString();
|
|
@@ -128991,29 +129246,31 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128991
129246
|
}
|
|
128992
129247
|
getElementStyle() {
|
|
128993
129248
|
const style = {
|
|
128994
|
-
|
|
128995
|
-
|
|
128996
|
-
|
|
129249
|
+
display: 'grid',
|
|
129250
|
+
height: '100%',
|
|
129251
|
+
width: '100%',
|
|
129252
|
+
position: this.anchorToExpand ? 'relative' : 'unset',
|
|
128997
129253
|
};
|
|
128998
129254
|
return style;
|
|
128999
129255
|
}
|
|
129000
129256
|
getGridTemplate() {
|
|
129001
129257
|
let template = '';
|
|
129002
|
-
this._items.forEach((
|
|
129258
|
+
this._items.forEach((col, index) => {
|
|
129259
|
+
const size = col.size || '1fr';
|
|
129003
129260
|
if (index === this._items.length - 1) {
|
|
129004
|
-
template += `
|
|
129261
|
+
template += ` ${size}`;
|
|
129005
129262
|
return;
|
|
129006
129263
|
}
|
|
129007
129264
|
if (index === 0) {
|
|
129008
|
-
template +=
|
|
129265
|
+
template += `${size} 5px`;
|
|
129009
129266
|
return;
|
|
129010
129267
|
}
|
|
129011
|
-
template += `
|
|
129268
|
+
template += ` ${size} 5px`;
|
|
129012
129269
|
});
|
|
129013
129270
|
return template;
|
|
129014
129271
|
}
|
|
129015
129272
|
render() {
|
|
129016
|
-
return
|
|
129273
|
+
return h(Host, { style: this.getElementStyle() });
|
|
129017
129274
|
}
|
|
129018
129275
|
get _element() { return this; }
|
|
129019
129276
|
static get style() { return ezSplitPanelCss; }
|
|
@@ -131067,6 +131324,8 @@ const FilterColumn$1 = class extends HTMLElement$1 {
|
|
|
131067
131324
|
this.TOP_POSITION_NO_TASKBAR = '32';
|
|
131068
131325
|
this.TOP_POSITION_NO_TASKBAR_HEADER_HIDDEN = '20';
|
|
131069
131326
|
this.DEFAULT_HEIGHT = 430;
|
|
131327
|
+
this.FIX_MARGIN = 60;
|
|
131328
|
+
this.FILTER_COLUMN_WIDTH = 330;
|
|
131070
131329
|
this.opened = true;
|
|
131071
131330
|
this.columnName = undefined;
|
|
131072
131331
|
this.columnLabel = undefined;
|
|
@@ -131099,15 +131358,24 @@ const FilterColumn$1 = class extends HTMLElement$1 {
|
|
|
131099
131358
|
await this.ezPopoverElement.show(this.calcTopPosition(), this.calculateLeftPosition(configs));
|
|
131100
131359
|
}
|
|
131101
131360
|
}
|
|
131102
|
-
calculateLeftPosition(
|
|
131103
|
-
|
|
131104
|
-
|
|
131361
|
+
calculateLeftPosition({ leftPosition, fromIcon }) {
|
|
131362
|
+
const leftPositionCalculated = this.calcFilterColumnLeftPosition(leftPosition);
|
|
131363
|
+
if (!fromIcon) {
|
|
131364
|
+
return `${leftPositionCalculated}px`;
|
|
131105
131365
|
}
|
|
131106
131366
|
const difference = this.ezPopoverElement.getBoundingClientRect().left;
|
|
131107
|
-
const
|
|
131108
|
-
const leftResolved = (leftReference + 16) - difference;
|
|
131367
|
+
const leftResolved = (leftPositionCalculated + 16) - difference;
|
|
131109
131368
|
return `${(leftResolved > 0 ? leftResolved : 0)}px`;
|
|
131110
131369
|
}
|
|
131370
|
+
calcFilterColumnLeftPosition(leftReference) {
|
|
131371
|
+
var _a, _b;
|
|
131372
|
+
const gridReference = this.ezPopoverElement.closest("ez-grid");
|
|
131373
|
+
const gridLimit = (_a = gridReference.getBoundingClientRect()) === null || _a === void 0 ? void 0 : _a.right;
|
|
131374
|
+
const popoverDiff = (_b = this.ezPopoverElement.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.left;
|
|
131375
|
+
const maxLeft = gridLimit - (this.FILTER_COLUMN_WIDTH + popoverDiff);
|
|
131376
|
+
const leftInt = leftReference - (this.FIX_MARGIN + popoverDiff);
|
|
131377
|
+
return leftInt > maxLeft ? maxLeft : leftInt;
|
|
131378
|
+
}
|
|
131111
131379
|
buildIsTextSearch() {
|
|
131112
131380
|
var _a, _b;
|
|
131113
131381
|
const userInterface = (_b = (_a = this.fieldDescriptor) === null || _a === void 0 ? void 0 : _a.userInterface) !== null && _b !== void 0 ? _b : UserInterface.SHORTTEXT;
|
|
@@ -131227,7 +131495,7 @@ const EzBadge = /*@__PURE__*/proxyCustomElement(EzBadge$1, [1,"ez-badge",{"size"
|
|
|
131227
131495
|
const EzBreadcrumb = /*@__PURE__*/proxyCustomElement(EzBreadcrumb$1, [1,"ez-breadcrumb",{"items":[1040],"fillMode":[1025,"fill-mode"],"maxItems":[1026,"max-items"],"positionEllipsis":[1026,"position-ellipsis"],"visibleItems":[32],"hiddenItems":[32],"showDropdown":[32],"collapseConfigPosition":[32]}]);
|
|
131228
131496
|
const EzButton = /*@__PURE__*/proxyCustomElement(EzButton$1, [1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513]},[[2,"click","clickListener"]]]);
|
|
131229
131497
|
const EzCalendar = /*@__PURE__*/proxyCustomElement(EzCalendar$1, [1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"]},[[11,"scroll","scrollListener"]]]);
|
|
131230
|
-
const EzCardItem = /*@__PURE__*/proxyCustomElement(EzCardItem$1, [1,"ez-card-item",{"item":[16]}]);
|
|
131498
|
+
const EzCardItem = /*@__PURE__*/proxyCustomElement(EzCardItem$1, [1,"ez-card-item",{"item":[16],"enableKey":[4,"enable-key"]}]);
|
|
131231
131499
|
const EzCheck = /*@__PURE__*/proxyCustomElement(EzCheck$1, [1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[1540],"mode":[513],"compact":[4]}]);
|
|
131232
131500
|
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"]}]);
|
|
131233
131501
|
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]}]);
|
|
@@ -131256,8 +131524,9 @@ const EzScroller = /*@__PURE__*/proxyCustomElement(EzScroller$1, [1,"ez-scroller
|
|
|
131256
131524
|
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"]]]);
|
|
131257
131525
|
const EzSidebarButton = /*@__PURE__*/proxyCustomElement(EzSidebarButton$1, [1,"ez-sidebar-button"]);
|
|
131258
131526
|
const EzSkeleton = /*@__PURE__*/proxyCustomElement(EzSkeleton$1, [0,"ez-skeleton",{"count":[2],"variant":[1],"width":[1],"height":[1],"marginBottom":[1,"margin-bottom"],"animation":[1]}]);
|
|
131259
|
-
const
|
|
131260
|
-
const
|
|
131527
|
+
const EzSplitButton = /*@__PURE__*/proxyCustomElement(EzSplitButton$1, [1,"ez-split-button",{"enabled":[516],"iconName":[513,"icon-name"],"image":[513],"items":[16],"label":[513],"leftTitle":[513,"left-title"],"rightTitle":[513,"right-title"],"mode":[513],"size":[513],"show":[32]},[[2,"click","clickListener"]]]);
|
|
131528
|
+
const EzSplitItem = /*@__PURE__*/proxyCustomElement(SplitItem, [4,"ez-split-item",{"label":[1],"enableExpand":[516,"enable-expand"],"size":[1],"_expanded":[32]}]);
|
|
131529
|
+
const EzSplitPanel = /*@__PURE__*/proxyCustomElement(SplitPanel, [0,"ez-split-panel",{"direction":[1],"anchorToExpand":[4,"anchor-to-expand"]}]);
|
|
131261
131530
|
const EzTabselector = /*@__PURE__*/proxyCustomElement(EzTabselector$1, [1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]);
|
|
131262
131531
|
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"]}]);
|
|
131263
131532
|
const EzTextEdit = /*@__PURE__*/proxyCustomElement(EzTextEdit$1, [1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32]}]);
|
|
@@ -131309,6 +131578,7 @@ const defineCustomElements = (opts) => {
|
|
|
131309
131578
|
EzSearch,
|
|
131310
131579
|
EzSidebarButton,
|
|
131311
131580
|
EzSkeleton,
|
|
131581
|
+
EzSplitButton,
|
|
131312
131582
|
EzSplitItem,
|
|
131313
131583
|
EzSplitPanel,
|
|
131314
131584
|
EzTabselector,
|
|
@@ -131330,4 +131600,4 @@ const defineCustomElements = (opts) => {
|
|
|
131330
131600
|
}
|
|
131331
131601
|
};
|
|
131332
131602
|
|
|
131333
|
-
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzDateInput, EzDateTimeInput, EzDialog, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSidebarButton, EzSkeleton, EzSplitItem, EzSplitPanel, EzTabselector, EzTextArea, EzTextEdit, EzTextInput, EzTimeInput, EzToast, EzTree, EzUpload, EzViewStack, FilterColumn, MultiSelectionBoxMessage, defineCustomElements };
|
|
131603
|
+
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzDateInput, EzDateTimeInput, EzDialog, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSidebarButton, EzSkeleton, EzSplitButton, EzSplitItem, EzSplitPanel, EzTabselector, EzTextArea, EzTextEdit, EzTextInput, EzTimeInput, EzToast, EzTree, EzUpload, EzViewStack, FilterColumn, MultiSelectionBoxMessage, defineCustomElements };
|