@sankhyalabs/ezui 5.20.0-dev.2 → 5.20.0-dev.20
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 +85 -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 +10 -1
- package/dist/collection/components/ez-grid/ez-grid.js +61 -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 +388 -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 +86 -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-6e2f8e6b.entry.js → p-79bbf86d.entry.js} +2 -2
- 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-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 +14 -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, OverflowDirection } 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-label.sc-ez-grid{width:100%;white-space:nowrap}";
|
|
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() {
|
|
@@ -125753,11 +125804,10 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
125753
125804
|
}
|
|
125754
125805
|
getPaginationControl() {
|
|
125755
125806
|
if (this._paginationInfo) {
|
|
125756
|
-
const {
|
|
125807
|
+
const { currentPage, hasMore } = this._paginationInfo;
|
|
125757
125808
|
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" }),
|
|
125809
|
+
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())),
|
|
125810
|
+
h("div", { 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
125811
|
];
|
|
125762
125812
|
}
|
|
125763
125813
|
return null;
|
|
@@ -125801,6 +125851,55 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
125801
125851
|
this.setEvents();
|
|
125802
125852
|
this.componentReady.emit();
|
|
125803
125853
|
this._gridController.configFilterColumn(this._filterColumn);
|
|
125854
|
+
this._initHeaderOverflowWatcher();
|
|
125855
|
+
}
|
|
125856
|
+
_getActualPageLabel() {
|
|
125857
|
+
const { firstRecord, lastRecord } = this._paginationInfo;
|
|
125858
|
+
return `${firstRecord}-${lastRecord}`;
|
|
125859
|
+
}
|
|
125860
|
+
_getRemainingPageLabel() {
|
|
125861
|
+
const { total, count } = this._paginationInfo;
|
|
125862
|
+
return `${total == undefined ? ` de ${count + 1} ou mais` : ` de ${total}`}`;
|
|
125863
|
+
}
|
|
125864
|
+
_getPaginationTooltip() {
|
|
125865
|
+
return this._getActualPageLabel() + this._getRemainingPageLabel();
|
|
125866
|
+
}
|
|
125867
|
+
_updatePaginationTooltip() {
|
|
125868
|
+
if (!this._refPaginationLabelTooltip) {
|
|
125869
|
+
return;
|
|
125870
|
+
}
|
|
125871
|
+
const alreadyDefined = this._refPaginationLabelTooltip.getAttribute('data-tooltip');
|
|
125872
|
+
if (alreadyDefined) {
|
|
125873
|
+
this._refPaginationLabelTooltip
|
|
125874
|
+
.setAttribute('data-tooltip', this._getPaginationTooltip());
|
|
125875
|
+
}
|
|
125876
|
+
}
|
|
125877
|
+
_initHeaderOverflowWatcher() {
|
|
125878
|
+
this._headerOverflowWatcher = new OverflowWatcher(this._refHeader, (elementsOverflow) => {
|
|
125879
|
+
if (!this._refPaginationLabel) {
|
|
125880
|
+
return;
|
|
125881
|
+
}
|
|
125882
|
+
if (elementsOverflow.length > 0) {
|
|
125883
|
+
this._hidePaginationDescription();
|
|
125884
|
+
}
|
|
125885
|
+
else {
|
|
125886
|
+
this._showPaginationDescription();
|
|
125887
|
+
}
|
|
125888
|
+
}, OverflowDirection.HORIZONTAL, 20);
|
|
125889
|
+
}
|
|
125890
|
+
_hidePaginationDescription() {
|
|
125891
|
+
this._refPaginationLabel.hidden = true;
|
|
125892
|
+
this._refPaginationLabelTooltip.setAttribute('data-flow', 'bottom');
|
|
125893
|
+
this._refPaginationLabelTooltip.setAttribute('data-tooltip', this._getPaginationTooltip());
|
|
125894
|
+
}
|
|
125895
|
+
;
|
|
125896
|
+
_showPaginationDescription() {
|
|
125897
|
+
this._refPaginationLabel.hidden = false;
|
|
125898
|
+
this._refPaginationLabelTooltip.removeAttribute('data-flow');
|
|
125899
|
+
this._refPaginationLabelTooltip.removeAttribute('data-tooltip');
|
|
125900
|
+
}
|
|
125901
|
+
disconnectedCallback() {
|
|
125902
|
+
this._headerOverflowWatcher.destroy();
|
|
125804
125903
|
}
|
|
125805
125904
|
componentWillRender() {
|
|
125806
125905
|
this.configSelectionCounter();
|
|
@@ -125824,14 +125923,15 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
125824
125923
|
}
|
|
125825
125924
|
render() {
|
|
125826
125925
|
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
|
|
125926
|
+
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", ref: ref => (this._refHeader = ref) }, 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
|
|
125828
125927
|
${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
|
|
125829
125928
|
` }, 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
125929
|
}
|
|
125831
125930
|
static get assetsDirs() { return ["../assets"]; }
|
|
125832
125931
|
get _element() { return this; }
|
|
125833
125932
|
static get watchers() { return {
|
|
125834
|
-
"config": ["observeConfig"]
|
|
125933
|
+
"config": ["observeConfig"],
|
|
125934
|
+
"_paginationInfo": ["_updatePaginationTooltip"]
|
|
125835
125935
|
}; }
|
|
125836
125936
|
static get style() { return ezGridCss; }
|
|
125837
125937
|
};
|
|
@@ -125938,7 +126038,7 @@ const EzGuideNavigator$1 = class extends HTMLElement$1 {
|
|
|
125938
126038
|
static get style() { return ezGuideNavigatorCss; }
|
|
125939
126039
|
};
|
|
125940
126040
|
|
|
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-
|
|
126041
|
+
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
126042
|
|
|
125943
126043
|
const EzIcon$1 = class extends HTMLElement$1 {
|
|
125944
126044
|
constructor() {
|
|
@@ -126823,16 +126923,8 @@ const EzMuiltiSelectionList = class extends HTMLElement$1 {
|
|
|
126823
126923
|
}
|
|
126824
126924
|
handleChangeSelectedItem(event) {
|
|
126825
126925
|
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 = '');
|
|
126926
|
+
const itemSelected = this.filteredOptions.find(item => item.label === itemCheckSelected.label);
|
|
126927
|
+
itemSelected.check = itemCheckSelected.check;
|
|
126836
126928
|
}
|
|
126837
126929
|
buildViewList(hasDelete) {
|
|
126838
126930
|
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 +127074,9 @@ const EzNumberInput$1 = class extends HTMLElement$1 {
|
|
|
126982
127074
|
this.ezCancelWaitingChange.emit();
|
|
126983
127075
|
}
|
|
126984
127076
|
handleBlur() {
|
|
127077
|
+
if (!this._changePending) {
|
|
127078
|
+
return;
|
|
127079
|
+
}
|
|
126985
127080
|
try {
|
|
126986
127081
|
const parsedNumber = this.getParsedNumber();
|
|
126987
127082
|
if (parsedNumber !== undefined && isNaN(parsedNumber)) {
|
|
@@ -127192,7 +127287,7 @@ const EzPopover$1 = class extends HTMLElement$1 {
|
|
|
127192
127287
|
static get style() { return ezPopoverCss; }
|
|
127193
127288
|
};
|
|
127194
127289
|
|
|
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;
|
|
127290
|
+
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
127291
|
|
|
127197
127292
|
const EzPopup$1 = class extends HTMLElement$1 {
|
|
127198
127293
|
constructor() {
|
|
@@ -127485,7 +127580,7 @@ class ScrollCtrl {
|
|
|
127485
127580
|
}
|
|
127486
127581
|
}
|
|
127487
127582
|
|
|
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);
|
|
127583
|
+
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
127584
|
|
|
127490
127585
|
const EzSearch$1 = class extends HTMLElement$1 {
|
|
127491
127586
|
constructor() {
|
|
@@ -127675,10 +127770,9 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127675
127770
|
if (currentValue == undefined) {
|
|
127676
127771
|
return;
|
|
127677
127772
|
}
|
|
127678
|
-
|
|
127679
|
-
|
|
127680
|
-
|
|
127681
|
-
return currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
|
|
127773
|
+
let text = (!this.showSelectedValue || currentValue.value == undefined) ? currentValue.label : `${currentValue.value} - ${currentValue.label}`;
|
|
127774
|
+
text = text.replace(new RegExp(this._startHighlightTag, 'g'), '').replace(new RegExp(this._endHighlightTag, 'g'), '');
|
|
127775
|
+
return text;
|
|
127682
127776
|
}
|
|
127683
127777
|
getText() {
|
|
127684
127778
|
const currentValue = this.getSelectedOption(this.value);
|
|
@@ -127750,7 +127844,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127750
127844
|
title: opt.label,
|
|
127751
127845
|
details: opt.details
|
|
127752
127846
|
};
|
|
127753
|
-
return h("div", { style: { "height": "100%" }, onMouseDown: () => this.createOption(card), onMouseOver: () => this._preSelection = index }, h("ez-card-item", { item: card }));
|
|
127847
|
+
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
127848
|
}
|
|
127755
127849
|
showOptions() {
|
|
127756
127850
|
if (!this.enabled)
|
|
@@ -127794,7 +127888,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127794
127888
|
}
|
|
127795
127889
|
scrollToOption(opt) {
|
|
127796
127890
|
window.requestAnimationFrame(() => {
|
|
127797
|
-
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`
|
|
127891
|
+
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`div#item_${opt.value.replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
|
|
127798
127892
|
if (liElem)
|
|
127799
127893
|
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
127800
127894
|
});
|
|
@@ -128237,15 +128331,169 @@ const EzSkeleton$1 = class extends HTMLElement$1 {
|
|
|
128237
128331
|
static get style() { return ezSkeletonCss; }
|
|
128238
128332
|
};
|
|
128239
128333
|
|
|
128240
|
-
const
|
|
128334
|
+
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}";
|
|
128335
|
+
|
|
128336
|
+
const EzSplitButton$1 = class extends HTMLElement$1 {
|
|
128337
|
+
constructor() {
|
|
128338
|
+
super();
|
|
128339
|
+
this.__registerHost();
|
|
128340
|
+
this.__attachShadow();
|
|
128341
|
+
this.buttonClick = createEvent(this, "buttonClick", 7);
|
|
128342
|
+
this.dropdownItemClick = createEvent(this, "dropdownItemClick", 7);
|
|
128343
|
+
this.dropdownSubActionClick = createEvent(this, "dropdownSubActionClick", 7);
|
|
128344
|
+
this.rightDefaultTitle = 'Mais opções';
|
|
128345
|
+
this.show = false;
|
|
128346
|
+
this.enabled = true;
|
|
128347
|
+
this.iconName = undefined;
|
|
128348
|
+
this.image = undefined;
|
|
128349
|
+
this.items = undefined;
|
|
128350
|
+
this.label = undefined;
|
|
128351
|
+
this.leftTitle = undefined;
|
|
128352
|
+
this.rightTitle = 'Mais opções';
|
|
128353
|
+
this.mode = 'default';
|
|
128354
|
+
this.size = 'medium';
|
|
128355
|
+
}
|
|
128356
|
+
/**
|
|
128357
|
+
* Remove o foco de ambos os botões.
|
|
128358
|
+
*/
|
|
128359
|
+
async setBlur() {
|
|
128360
|
+
this.leftButton.blur();
|
|
128361
|
+
this.rightButton.blur();
|
|
128362
|
+
}
|
|
128363
|
+
/**
|
|
128364
|
+
* Aplica o foco no botão principal.
|
|
128365
|
+
*/
|
|
128366
|
+
async setLeftButtonFocus() {
|
|
128367
|
+
this.leftButton.focus();
|
|
128368
|
+
}
|
|
128369
|
+
/**
|
|
128370
|
+
* Aplica o foco no botão do dropdown.
|
|
128371
|
+
*/
|
|
128372
|
+
async setRightButtonFocus() {
|
|
128373
|
+
this.rightButton.focus();
|
|
128374
|
+
}
|
|
128375
|
+
clickListener(evt) {
|
|
128376
|
+
if (!this.enabled) {
|
|
128377
|
+
evt.preventDefault();
|
|
128378
|
+
evt.stopPropagation();
|
|
128379
|
+
evt.stopImmediatePropagation();
|
|
128380
|
+
}
|
|
128381
|
+
}
|
|
128382
|
+
getIconSize(sizeParam = 'medium') {
|
|
128383
|
+
var _a;
|
|
128384
|
+
const sizeList = ['medium', 'large'];
|
|
128385
|
+
const sizeLowerCase = (_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
128386
|
+
return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
|
|
128387
|
+
}
|
|
128388
|
+
closeDropdown() {
|
|
128389
|
+
this.show = false;
|
|
128390
|
+
}
|
|
128391
|
+
toggleDropdown() {
|
|
128392
|
+
this.show = !this.show;
|
|
128393
|
+
}
|
|
128394
|
+
handleButtonClick() {
|
|
128395
|
+
this.buttonClick.emit();
|
|
128396
|
+
}
|
|
128397
|
+
handleDropdownItemClick(evt) {
|
|
128398
|
+
this.dropdownItemClick.emit(evt.detail);
|
|
128399
|
+
evt.stopPropagation();
|
|
128400
|
+
this.closeDropdown();
|
|
128401
|
+
}
|
|
128402
|
+
handleDropdownSubActionClick(evt) {
|
|
128403
|
+
this.dropdownSubActionClick.emit(evt.detail);
|
|
128404
|
+
evt.stopPropagation();
|
|
128405
|
+
this.closeDropdown();
|
|
128406
|
+
}
|
|
128407
|
+
/**
|
|
128408
|
+
* Método responsável em posicionar o dropdown na tela.
|
|
128409
|
+
* Faz com que o dropdown se ajuste automaticamente ao espaco na tela
|
|
128410
|
+
*/
|
|
128411
|
+
positionDropdown() {
|
|
128412
|
+
const { rightButton: _rightButton, dropdownParent: _dropdownParent } = this;
|
|
128413
|
+
const rightButtonRect = _rightButton.getBoundingClientRect();
|
|
128414
|
+
const dropdownParentRect = _dropdownParent.getBoundingClientRect();
|
|
128415
|
+
const spaceBelow = window.innerHeight - rightButtonRect.bottom;
|
|
128416
|
+
const spaceAbove = rightButtonRect.top;
|
|
128417
|
+
const spaceRight = window.innerWidth - rightButtonRect.right;
|
|
128418
|
+
const spaceLeft = rightButtonRect.left;
|
|
128419
|
+
const hasSpaceBelow = spaceBelow < dropdownParentRect.height && spaceAbove > dropdownParentRect.height;
|
|
128420
|
+
const hasSpaceRight = spaceRight < dropdownParentRect.width && spaceLeft > dropdownParentRect.width;
|
|
128421
|
+
let top = `${rightButtonRect.bottom + window.scrollY}px`;
|
|
128422
|
+
let left = `${rightButtonRect.left + window.scrollX}px`;
|
|
128423
|
+
let bottom = 'auto';
|
|
128424
|
+
if (hasSpaceBelow) {
|
|
128425
|
+
bottom = `${window.innerHeight - rightButtonRect.top - window.scrollY}px`;
|
|
128426
|
+
top = 'auto';
|
|
128427
|
+
_dropdownParent.style.maxHeight = `${spaceAbove}px`;
|
|
128428
|
+
}
|
|
128429
|
+
if (hasSpaceRight) {
|
|
128430
|
+
left = `${rightButtonRect.right - dropdownParentRect.width + window.scrollX}px`;
|
|
128431
|
+
}
|
|
128432
|
+
_dropdownParent.style.top = top;
|
|
128433
|
+
_dropdownParent.style.bottom = bottom;
|
|
128434
|
+
_dropdownParent.style.left = left;
|
|
128435
|
+
}
|
|
128436
|
+
setEvents() {
|
|
128437
|
+
window.removeEventListener('scroll', this.positionDropdown.bind(this));
|
|
128438
|
+
window.addEventListener('scroll', this.positionDropdown.bind(this));
|
|
128439
|
+
}
|
|
128440
|
+
componentWillLoad() {
|
|
128441
|
+
this.setEvents();
|
|
128442
|
+
}
|
|
128443
|
+
componentDidLoad() {
|
|
128444
|
+
if (this._element)
|
|
128445
|
+
ElementIDUtils.addIDInfo(this._element);
|
|
128446
|
+
if (this.leftButton) {
|
|
128447
|
+
const dataInfo = { id: 'embedded' };
|
|
128448
|
+
ElementIDUtils.addIDInfo(this.leftButton, 'left-button', dataInfo);
|
|
128449
|
+
}
|
|
128450
|
+
if (this.rightButton) {
|
|
128451
|
+
const dataInfo = { id: 'embedded' };
|
|
128452
|
+
ElementIDUtils.addIDInfo(this.rightButton, 'right-button', dataInfo);
|
|
128453
|
+
}
|
|
128454
|
+
this.positionDropdown();
|
|
128455
|
+
}
|
|
128456
|
+
componentDidUpdate() {
|
|
128457
|
+
this.positionDropdown();
|
|
128458
|
+
}
|
|
128459
|
+
render() {
|
|
128460
|
+
const hasIconButton = this.shouldShowIconOnLeftButton();
|
|
128461
|
+
const hasLabelButton = this.shouldShowLabelOnLeftButton();
|
|
128462
|
+
const iconSize = this.getIconSize();
|
|
128463
|
+
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); } }))))));
|
|
128464
|
+
}
|
|
128465
|
+
shouldShowLabelOnLeftButton() {
|
|
128466
|
+
return ['icon-left', 'default'].includes(this.mode);
|
|
128467
|
+
}
|
|
128468
|
+
shouldShowIconOnLeftButton() {
|
|
128469
|
+
return ['icon-left', 'icon-only'].includes(this.mode);
|
|
128470
|
+
}
|
|
128471
|
+
get _element() { return this; }
|
|
128472
|
+
static get style() { return ezSplitButtonCss; }
|
|
128473
|
+
};
|
|
128474
|
+
|
|
128475
|
+
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
128476
|
|
|
128242
128477
|
const SplitItem = class extends HTMLElement$1 {
|
|
128243
128478
|
constructor() {
|
|
128244
128479
|
super();
|
|
128245
128480
|
this.__registerHost();
|
|
128481
|
+
this.label = undefined;
|
|
128482
|
+
this.enableExpand = true;
|
|
128483
|
+
this._expanded = false;
|
|
128484
|
+
this.size = undefined;
|
|
128485
|
+
}
|
|
128486
|
+
/**
|
|
128487
|
+
* Alterna a visibilidade do painel.
|
|
128488
|
+
*/
|
|
128489
|
+
toggleExpandItem() {
|
|
128490
|
+
this._expanded = !this._expanded;
|
|
128491
|
+
}
|
|
128492
|
+
componentDidLoad() {
|
|
128493
|
+
CSSVarsUtils.applyVarsGrid(this._element, this._slot.children[0]);
|
|
128246
128494
|
}
|
|
128247
128495
|
render() {
|
|
128248
|
-
return (h(Host, { class:
|
|
128496
|
+
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
128497
|
}
|
|
128250
128498
|
static get style() { return ezSplitItemCss; }
|
|
128251
128499
|
};
|
|
@@ -128935,6 +129183,7 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128935
129183
|
this.__registerHost();
|
|
128936
129184
|
this._items = [];
|
|
128937
129185
|
this.direction = 'column';
|
|
129186
|
+
this.anchorToExpand = false;
|
|
128938
129187
|
}
|
|
128939
129188
|
componentDidLoad() {
|
|
128940
129189
|
this._panelID = StringUtils$1.generateUUID();
|
|
@@ -128961,7 +129210,7 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128961
129210
|
getGutters() {
|
|
128962
129211
|
const gutters = {
|
|
128963
129212
|
columnGutters: [],
|
|
128964
|
-
rowGutters: []
|
|
129213
|
+
rowGutters: [],
|
|
128965
129214
|
};
|
|
128966
129215
|
if (!this._items.length) {
|
|
128967
129216
|
return gutters;
|
|
@@ -128971,19 +129220,19 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128971
129220
|
if (index == this._items.length - 1)
|
|
128972
129221
|
return;
|
|
128973
129222
|
let gutterTrack = item.dataset.trackNumber;
|
|
128974
|
-
if (index ===
|
|
129223
|
+
if (index === this._items.length - 1) {
|
|
128975
129224
|
gutterTrack = this._items.length.toString();
|
|
128976
129225
|
}
|
|
128977
129226
|
gutters[proToChange].push({
|
|
128978
129227
|
track: Number(gutterTrack),
|
|
128979
|
-
element: this._element.querySelector(`ez-split-panel[data-panel-id="${this._panelID}"] > [data-item-track="${item.dataset.trackNumber}"]`)
|
|
129228
|
+
element: this._element.querySelector(`ez-split-panel[data-panel-id="${this._panelID}"] > [data-item-track="${item.dataset.trackNumber}"]`),
|
|
128980
129229
|
});
|
|
128981
129230
|
});
|
|
128982
129231
|
return gutters;
|
|
128983
129232
|
}
|
|
128984
129233
|
addItemGutter(item) {
|
|
128985
129234
|
const gutter = document.createElement('div');
|
|
128986
|
-
gutter.classList.add(
|
|
129235
|
+
gutter.classList.add('ez-split-gutter');
|
|
128987
129236
|
gutter.classList.add(this.direction);
|
|
128988
129237
|
gutter.dataset.itemTrack = `${item.dataset.trackNumber}`;
|
|
128989
129238
|
gutter.dataset.trackNumber = (Number(item.dataset.trackNumber) + 1).toString();
|
|
@@ -128991,29 +129240,31 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128991
129240
|
}
|
|
128992
129241
|
getElementStyle() {
|
|
128993
129242
|
const style = {
|
|
128994
|
-
|
|
128995
|
-
|
|
128996
|
-
|
|
129243
|
+
display: 'grid',
|
|
129244
|
+
height: '100%',
|
|
129245
|
+
width: '100%',
|
|
129246
|
+
position: this.anchorToExpand ? 'relative' : 'unset',
|
|
128997
129247
|
};
|
|
128998
129248
|
return style;
|
|
128999
129249
|
}
|
|
129000
129250
|
getGridTemplate() {
|
|
129001
129251
|
let template = '';
|
|
129002
|
-
this._items.forEach((
|
|
129252
|
+
this._items.forEach((col, index) => {
|
|
129253
|
+
const size = col.size || '1fr';
|
|
129003
129254
|
if (index === this._items.length - 1) {
|
|
129004
|
-
template += `
|
|
129255
|
+
template += ` ${size}`;
|
|
129005
129256
|
return;
|
|
129006
129257
|
}
|
|
129007
129258
|
if (index === 0) {
|
|
129008
|
-
template +=
|
|
129259
|
+
template += `${size} 5px`;
|
|
129009
129260
|
return;
|
|
129010
129261
|
}
|
|
129011
|
-
template += `
|
|
129262
|
+
template += ` ${size} 5px`;
|
|
129012
129263
|
});
|
|
129013
129264
|
return template;
|
|
129014
129265
|
}
|
|
129015
129266
|
render() {
|
|
129016
|
-
return
|
|
129267
|
+
return h(Host, { style: this.getElementStyle() });
|
|
129017
129268
|
}
|
|
129018
129269
|
get _element() { return this; }
|
|
129019
129270
|
static get style() { return ezSplitPanelCss; }
|
|
@@ -131067,6 +131318,8 @@ const FilterColumn$1 = class extends HTMLElement$1 {
|
|
|
131067
131318
|
this.TOP_POSITION_NO_TASKBAR = '32';
|
|
131068
131319
|
this.TOP_POSITION_NO_TASKBAR_HEADER_HIDDEN = '20';
|
|
131069
131320
|
this.DEFAULT_HEIGHT = 430;
|
|
131321
|
+
this.FIX_MARGIN = 60;
|
|
131322
|
+
this.FILTER_COLUMN_WIDTH = 330;
|
|
131070
131323
|
this.opened = true;
|
|
131071
131324
|
this.columnName = undefined;
|
|
131072
131325
|
this.columnLabel = undefined;
|
|
@@ -131099,15 +131352,24 @@ const FilterColumn$1 = class extends HTMLElement$1 {
|
|
|
131099
131352
|
await this.ezPopoverElement.show(this.calcTopPosition(), this.calculateLeftPosition(configs));
|
|
131100
131353
|
}
|
|
131101
131354
|
}
|
|
131102
|
-
calculateLeftPosition(
|
|
131103
|
-
|
|
131104
|
-
|
|
131355
|
+
calculateLeftPosition({ leftPosition, fromIcon }) {
|
|
131356
|
+
const leftPositionCalculated = this.calcFilterColumnLeftPosition(leftPosition);
|
|
131357
|
+
if (!fromIcon) {
|
|
131358
|
+
return `${leftPositionCalculated}px`;
|
|
131105
131359
|
}
|
|
131106
131360
|
const difference = this.ezPopoverElement.getBoundingClientRect().left;
|
|
131107
|
-
const
|
|
131108
|
-
const leftResolved = (leftReference + 16) - difference;
|
|
131361
|
+
const leftResolved = (leftPositionCalculated + 16) - difference;
|
|
131109
131362
|
return `${(leftResolved > 0 ? leftResolved : 0)}px`;
|
|
131110
131363
|
}
|
|
131364
|
+
calcFilterColumnLeftPosition(leftReference) {
|
|
131365
|
+
var _a, _b;
|
|
131366
|
+
const gridReference = this.ezPopoverElement.closest("ez-grid");
|
|
131367
|
+
const gridLimit = (_a = gridReference.getBoundingClientRect()) === null || _a === void 0 ? void 0 : _a.right;
|
|
131368
|
+
const popoverDiff = (_b = this.ezPopoverElement.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.left;
|
|
131369
|
+
const maxLeft = gridLimit - (this.FILTER_COLUMN_WIDTH + popoverDiff);
|
|
131370
|
+
const leftInt = leftReference - (this.FIX_MARGIN + popoverDiff);
|
|
131371
|
+
return leftInt > maxLeft ? maxLeft : leftInt;
|
|
131372
|
+
}
|
|
131111
131373
|
buildIsTextSearch() {
|
|
131112
131374
|
var _a, _b;
|
|
131113
131375
|
const userInterface = (_b = (_a = this.fieldDescriptor) === null || _a === void 0 ? void 0 : _a.userInterface) !== null && _b !== void 0 ? _b : UserInterface.SHORTTEXT;
|
|
@@ -131227,7 +131489,7 @@ const EzBadge = /*@__PURE__*/proxyCustomElement(EzBadge$1, [1,"ez-badge",{"size"
|
|
|
131227
131489
|
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
131490
|
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
131491
|
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]}]);
|
|
131492
|
+
const EzCardItem = /*@__PURE__*/proxyCustomElement(EzCardItem$1, [1,"ez-card-item",{"item":[16],"enableKey":[4,"enable-key"]}]);
|
|
131231
131493
|
const EzCheck = /*@__PURE__*/proxyCustomElement(EzCheck$1, [1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[1540],"mode":[513],"compact":[4]}]);
|
|
131232
131494
|
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
131495
|
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 +131518,9 @@ const EzScroller = /*@__PURE__*/proxyCustomElement(EzScroller$1, [1,"ez-scroller
|
|
|
131256
131518
|
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
131519
|
const EzSidebarButton = /*@__PURE__*/proxyCustomElement(EzSidebarButton$1, [1,"ez-sidebar-button"]);
|
|
131258
131520
|
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
|
|
131521
|
+
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"]]]);
|
|
131522
|
+
const EzSplitItem = /*@__PURE__*/proxyCustomElement(SplitItem, [4,"ez-split-item",{"label":[1],"enableExpand":[516,"enable-expand"],"size":[1],"_expanded":[32]}]);
|
|
131523
|
+
const EzSplitPanel = /*@__PURE__*/proxyCustomElement(SplitPanel, [0,"ez-split-panel",{"direction":[1],"anchorToExpand":[4,"anchor-to-expand"]}]);
|
|
131261
131524
|
const EzTabselector = /*@__PURE__*/proxyCustomElement(EzTabselector$1, [1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]);
|
|
131262
131525
|
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
131526
|
const EzTextEdit = /*@__PURE__*/proxyCustomElement(EzTextEdit$1, [1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32]}]);
|
|
@@ -131309,6 +131572,7 @@ const defineCustomElements = (opts) => {
|
|
|
131309
131572
|
EzSearch,
|
|
131310
131573
|
EzSidebarButton,
|
|
131311
131574
|
EzSkeleton,
|
|
131575
|
+
EzSplitButton,
|
|
131312
131576
|
EzSplitItem,
|
|
131313
131577
|
EzSplitPanel,
|
|
131314
131578
|
EzTabselector,
|
|
@@ -131330,4 +131594,4 @@ const defineCustomElements = (opts) => {
|
|
|
131330
131594
|
}
|
|
131331
131595
|
};
|
|
131332
131596
|
|
|
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 };
|
|
131597
|
+
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 };
|