@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-43388.0 → 0.0.0-bugfix-dev-KB-9999.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-b136a156.js} +0 -13
- package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_3.cjs.entry.js +5 -6
- package/dist/cjs/ez-combo-box.cjs.entry.js +6 -7
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +13 -30
- package/dist/cjs/ez-grid.cjs.entry.js +10 -72
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +10 -2
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +5 -4
- package/dist/cjs/ez-split-item.cjs.entry.js +2 -11
- package/dist/cjs/ez-split-panel.cjs.entry.js +5 -6
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/index-a7b0c73d.js +4 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/ez-card-item/ez-card-item.css +5 -19
- package/dist/collection/components/ez-card-item/ez-card-item.js +3 -22
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +0 -1
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +5 -6
- package/dist/collection/components/ez-form-view/ez-form-view.css +1 -17
- package/dist/collection/components/ez-form-view/ez-form-view.js +5 -22
- 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/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 +1 -5
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +0 -3
- package/dist/collection/components/ez-grid/ez-grid.css +2 -25
- package/dist/collection/components/ez-grid/ez-grid.js +8 -65
- package/dist/collection/components/ez-icon/ez-icon.css +116 -118
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +10 -2
- package/dist/collection/components/ez-popup/ez-popup.css +4 -2
- package/dist/collection/components/ez-search/ez-search.js +4 -3
- package/dist/collection/components/ez-split-panel/ez-split-panel.css +1 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +4 -5
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +4 -15
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +2 -27
- package/dist/collection/utils/CSSVarsUtils.js +0 -13
- package/dist/custom-elements/index.d.ts +0 -6
- package/dist/custom-elements/index.js +57 -290
- package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-a97cfa29.js} +0 -13
- package/dist/esm/ez-actions-button.entry.js +1 -1
- package/dist/esm/ez-card-item_3.entry.js +5 -6
- package/dist/esm/ez-combo-box.entry.js +6 -7
- package/dist/esm/ez-date-input.entry.js +1 -1
- package/dist/esm/ez-date-time-input.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +14 -31
- package/dist/esm/ez-grid.entry.js +11 -73
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list.entry.js +10 -2
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +5 -4
- package/dist/esm/ez-split-item.entry.js +3 -12
- package/dist/esm/ez-split-panel.entry.js +5 -6
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/index-baa5e267.js +4 -8
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-abc23d6f.entry.js → p-02c8831a.entry.js} +1 -1
- package/dist/ezui/p-13dbad96.entry.js +1 -0
- package/dist/ezui/{p-b567fa8c.entry.js → p-18e7870d.entry.js} +1 -1
- package/dist/ezui/{p-07cbffce.entry.js → p-300bf244.entry.js} +1 -1
- package/dist/ezui/{p-784fe207.entry.js → p-40f72de4.entry.js} +1 -1
- package/dist/ezui/p-428a05fe.entry.js +1 -0
- package/dist/ezui/{p-af95cd16.entry.js → p-50186acb.entry.js} +1 -1
- package/dist/ezui/p-60848ef6.entry.js +1 -0
- package/dist/ezui/{p-9f1e89c9.entry.js → p-672dd122.entry.js} +1 -1
- package/dist/ezui/{p-9e11fc7b.js → p-7eb3e1a5.js} +1 -1
- package/dist/ezui/{p-e85c48d7.entry.js → p-9cad9b6e.entry.js} +1 -1
- package/dist/ezui/{p-22a04c1d.entry.js → p-ab629244.entry.js} +2 -2
- package/dist/ezui/p-cd0499a2.entry.js +1 -0
- package/dist/ezui/p-e52cbcc7.entry.js +1 -0
- package/dist/ezui/p-e562d05e.entry.js +1 -0
- package/dist/ezui/{p-99ead599.entry.js → p-eb36f072.entry.js} +1 -1
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +0 -4
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +0 -1
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +0 -3
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +0 -1
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +0 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +2 -15
- package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +1 -0
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +0 -10
- package/dist/types/components.d.ts +0 -131
- package/dist/types/utils/CSSVarsUtils.d.ts +0 -1
- package/package.json +2 -3
- package/react/components.d.ts +0 -1
- package/react/components.js +0 -1
- package/react/components.js.map +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +0 -147
- package/dist/collection/components/ez-split-button/ez-split-button.css +0 -229
- package/dist/collection/components/ez-split-button/ez-split-button.js +0 -436
- package/dist/collection/components/ez-split-button/test/dropdownItems.js +0 -42
- package/dist/esm/ez-split-button.entry.js +0 -143
- package/dist/ezui/p-2eb8f73b.entry.js +0 -1
- package/dist/ezui/p-7af81663.entry.js +0 -1
- package/dist/ezui/p-7bc07c31.entry.js +0 -1
- package/dist/ezui/p-801fd0f8.entry.js +0 -1
- package/dist/ezui/p-807560f0.entry.js +0 -1
- package/dist/ezui/p-b9fbf4e7.entry.js +0 -1
- package/dist/ezui/p-db77a984.entry.js +0 -1
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +0 -89
- package/dist/types/components/ez-split-button/test/dropdownItems.d.ts +0 -2
|
@@ -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
|
|
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';
|
|
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,19 +284,6 @@ 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
|
-
}
|
|
300
287
|
static applyIfExists(host, element, varName) {
|
|
301
288
|
const prop = getComputedStyle(host).getPropertyValue(varName);
|
|
302
289
|
if (prop) {
|
|
@@ -1999,7 +1986,7 @@ const EzCalendar$1 = class extends HTMLElement$1 {
|
|
|
1999
1986
|
static get style() { return ezCalendarCss; }
|
|
2000
1987
|
};
|
|
2001
1988
|
|
|
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
|
|
1989
|
+
const ezCardItemCss = ":host {\n /*@doc Define o tamanho da fonte do componente.*/\n --ez-card-item--font-size: var(--text--medium, 14px);\n\n /*@doc Define a família da fonte do componente.*/\n --ez-card-item--font-family: var(--font-pattern, Arial);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--font-weight: var(--text-weight--medium, 400);\n\n /*@doc Define o peso da fonte do title do componente.*/\n --ez-card-item--font-weight-large: var(--text-weight--large, 600);\n\n /*@doc Define a cor da fonte do componente.*/\n --ez-card-item--color: var(--title--primary, #2B3A54);\n\n /*@doc Define a cor da fonte da key do componente.*/\n --ez-card-item__key--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte do label do detalhe do componente.*/\n --ez-card-item__detail-label--color: var(--text--secondary, #A2ABB9);\n\n /*@doc Define o espaçamento inferior dos detalhes do componente.*/\n --ez-card-item__detail--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define o espaçamento inferior do title do componente.*/\n --ez-card-item__title--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define a cor do highlight / marcação nos textos do componente.*/\n --ez-card-item__highlight--color: var(--color--primary-300, #E2F4EF);\n\n width: 100%;\n display: flex;\n cursor: pointer;\n}\n\n.card-item {\n display: flex;\n flex-direction: column;\n width: 100%;\n cursor: pointer;\n padding: 12px;\n z-index: 0;\n position: relative;\n container-type: inline-size;\n container-name: box;\n white-space: pre-line;\n}\n\n.card-item:hover {\n background: #F0F3F7;\n border-radius: 12px;\n}\n\n.card-item__title {\n display: flex;\n align-items: center;\n line-height: 18px;\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight-large);\n color: var(--ez-card-item--color);\n padding-bottom: var(--ez-card-item__title--padding-bottom);\n gap: var(--space--small, 6px);\n}\n\n.card-item__key {\n /*public*/\n color: var(--ez-card-item__key--color);\n}\n\n.card-item__details {\n display: flex;\n cursor: pointer;\n justify-content: space-between;\n gap: var(--space--small, 6px);\n}\n\n.card-item__details-left {\n white-space: pre-line;\n cursor: pointer;\n width: 50%;\n}\n\n.card-item__details-right {\n white-space: pre-line;\n width: 50%;\n cursor: pointer;\n}\n\n.card-item__detail:not(:last-child) {\n cursor: pointer;\n white-space: pre-line;\n\n /*public*/\n padding-bottom: var(--ez-card-item__detail--padding-bottom);\n}\n\n.card-item__detail-label {\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight);\n color: var(--ez-card-item__detail-label--color);\n}\n\n.card-item__detail-value {\n cursor: pointer;\n line-break: anywhere;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight);\n color: var(--ez-card-item--color);\n}\n\n.card-item__highlight {\n position: relative;\n border-radius: 8px;\n z-index: -1;\n\n /*public*/\n background-color: var(--ez-card-item__highlight--color);\n outline: 2px solid var(--ez-card-item__highlight--color);\n box-shadow: -4px 0px 0px 0px var(--ez-card-item__highlight--color), \n 4px 0px 0px 0px var(--ez-card-item__highlight--color);\n}\n\n@container box (max-width: 550px) {\n .card-item__details {\n flex-direction: column;\n }\n\n .card-item__details-left {\n width: 100%;\n }\n \n .card-item__details-right {\n width: 100%;\n }\n}\n\n@container box (max-width: 200px) {\n .card-item__title {\n font-size: 10px;\n }\n\n .card-item__detail-label {\n font-size: 10px;\n }\n\n .card-item__detail-value {\n font-size: 10px;\n }\n\n}";
|
|
2003
1990
|
|
|
2004
1991
|
const EzCardItem$1 = class extends HTMLElement$1 {
|
|
2005
1992
|
constructor() {
|
|
@@ -2008,7 +1995,6 @@ const EzCardItem$1 = class extends HTMLElement$1 {
|
|
|
2008
1995
|
this.__attachShadow();
|
|
2009
1996
|
this.ezClick = createEvent(this, "ezClick", 7);
|
|
2010
1997
|
this.item = undefined;
|
|
2011
|
-
this.enableKey = true;
|
|
2012
1998
|
}
|
|
2013
1999
|
componentWillRender() {
|
|
2014
2000
|
this.createDetailList();
|
|
@@ -2036,11 +2022,11 @@ const EzCardItem$1 = class extends HTMLElement$1 {
|
|
|
2036
2022
|
}
|
|
2037
2023
|
render() {
|
|
2038
2024
|
return (h(Host, null, this.item &&
|
|
2039
|
-
h("div", { class: "card-item", onClick: () => { this.ezClick.emit(this.item); } }, h("
|
|
2025
|
+
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-left" }, this._details.detailsLeft.map(detail => {
|
|
2040
2026
|
return this.buildDetailContent(detail);
|
|
2041
|
-
})), h("div", { class: "card-item__details-
|
|
2027
|
+
})), h("div", { class: "card-item__details-right" }, this._details.detailsRight.map(detail => {
|
|
2042
2028
|
return this.buildDetailContent(detail);
|
|
2043
|
-
}))))
|
|
2029
|
+
}))))));
|
|
2044
2030
|
}
|
|
2045
2031
|
get _element() { return this; }
|
|
2046
2032
|
static get style() { return ezCardItemCss; }
|
|
@@ -2582,15 +2568,14 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2582
2568
|
const upperCriteria = this._criteria.toUpperCase();
|
|
2583
2569
|
opts = opts.filter(opt => opt.label.toLocaleUpperCase().indexOf(upperCriteria) > -1);
|
|
2584
2570
|
}
|
|
2585
|
-
if (this.
|
|
2586
|
-
|
|
2571
|
+
if (this.suppressEmptyOption) {
|
|
2572
|
+
this._visibleOptions = opts;
|
|
2573
|
+
}
|
|
2574
|
+
else {
|
|
2575
|
+
this._visibleOptions = [{ value: undefined, label: "" }].concat(opts);
|
|
2587
2576
|
}
|
|
2588
|
-
this._visibleOptions = opts;
|
|
2589
2577
|
this._maxWidthValue = this.getMaxWidthValue();
|
|
2590
2578
|
}
|
|
2591
|
-
hasToAddEmptyoption(opts) {
|
|
2592
|
-
return !this.suppressEmptyOption && !opts.filter(opt => !opt.value).length;
|
|
2593
|
-
}
|
|
2594
2579
|
getMaxWidthValue() {
|
|
2595
2580
|
var _a;
|
|
2596
2581
|
if (this.showOptionValue) {
|
|
@@ -4724,7 +4709,7 @@ const buildCheckBox = (field) => {
|
|
|
4724
4709
|
return buildField(field.name, field.label, field.readOnly, field.contextName, false);
|
|
4725
4710
|
};
|
|
4726
4711
|
function buildField(fieldName, fieldLabel, readOnly, contextName, switchMode) {
|
|
4727
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-align--middle ez-padding-horizontal--small ez-padding-bottom--large" },
|
|
4712
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-align--middle ez-padding-horizontal--small ez-padding-bottom--large" },
|
|
4728
4713
|
h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? CheckMode.SWITCH : CheckMode.REGULAR, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName })));
|
|
4729
4714
|
}
|
|
4730
4715
|
|
|
@@ -4738,20 +4723,20 @@ const buildComboBox$1 = ({ name, label, readOnly, required, props, contextName,
|
|
|
4738
4723
|
else {
|
|
4739
4724
|
options = prop;
|
|
4740
4725
|
}
|
|
4741
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
4726
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
4742
4727
|
h("ez-combo-box", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, options: options, canShowError: canShowError })));
|
|
4743
4728
|
};
|
|
4744
4729
|
|
|
4745
4730
|
const buildDate$1 = ({ name, label, readOnly, canShowError }) => {
|
|
4746
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
4731
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
4747
4732
|
h("ez-date-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError })));
|
|
4748
4733
|
};
|
|
4749
4734
|
const buildTime$1 = ({ name, label, readOnly, canShowError }) => {
|
|
4750
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
4735
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
4751
4736
|
h("ez-time-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError })));
|
|
4752
4737
|
};
|
|
4753
4738
|
const buildDateTime$1 = ({ name, label, readOnly, contextName, canShowError }) => {
|
|
4754
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
4739
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
4755
4740
|
h("ez-date-time-input", { enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError })));
|
|
4756
4741
|
};
|
|
4757
4742
|
|
|
@@ -4777,12 +4762,12 @@ const buildInteger$1 = ({ name, label, readOnly, contextName, canShowError }) =>
|
|
|
4777
4762
|
return buildNumeric$1(name, label, readOnly, 0, 0, contextName, canShowError);
|
|
4778
4763
|
};
|
|
4779
4764
|
function buildNumeric$1(fieldName, fieldLabel, readOnly, precision, prettyPrecision, contextName, canShowError) {
|
|
4780
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
4765
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
4781
4766
|
h("ez-number-input", { enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName, canShowError: canShowError })));
|
|
4782
4767
|
}
|
|
4783
4768
|
|
|
4784
4769
|
const buildSearch$1 = ({ name, label, readOnly, required, contextName, canShowError, optionLoader }) => {
|
|
4785
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
4770
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
4786
4771
|
h("ez-search", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader })));
|
|
4787
4772
|
};
|
|
4788
4773
|
|
|
@@ -4792,7 +4777,7 @@ const buildTextArea = ({ name, label, readOnly, contextName, rows, canShowError
|
|
|
4792
4777
|
};
|
|
4793
4778
|
|
|
4794
4779
|
const buildTextInput$1 = ({ name, label, readOnly, contextName, canShowError }) => {
|
|
4795
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
4780
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
4796
4781
|
h("ez-text-input", { label: label, "data-field-name": name, "data-context-name": contextName, key: name, enabled: !readOnly, canShowError: canShowError })));
|
|
4797
4782
|
};
|
|
4798
4783
|
|
|
@@ -4852,7 +4837,7 @@ class FormItems {
|
|
|
4852
4837
|
}
|
|
4853
4838
|
}
|
|
4854
4839
|
|
|
4855
|
-
const ezFormViewCss = ".sc-ez-form-view-h{display:flex;flex-
|
|
4840
|
+
const ezFormViewCss = ".sc-ez-form-view-h{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}";
|
|
4856
4841
|
|
|
4857
4842
|
const EzFormView$1 = class extends HTMLElement$1 {
|
|
4858
4843
|
constructor() {
|
|
@@ -4888,36 +4873,19 @@ const EzFormView$1 = class extends HTMLElement$1 {
|
|
|
4888
4873
|
const formItems = new FormItems(Array.from(this._element.querySelectorAll("[data-form-item]")));
|
|
4889
4874
|
this.formItemsReady.emit(formItems);
|
|
4890
4875
|
}
|
|
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
|
-
}
|
|
4903
4876
|
render() {
|
|
4904
4877
|
ElementIDUtils.addIDInfoIfNotExists(this._element, 'ezFormView');
|
|
4905
4878
|
if (this.fields == undefined) {
|
|
4906
4879
|
return;
|
|
4907
4880
|
}
|
|
4908
|
-
|
|
4909
|
-
let formContent = Array.from(this.groupFields(this.fields).entries()).map(([label, value]) => {
|
|
4881
|
+
return (h(Host, null, Array.from(this.groupFields(this.fields).entries()).map(([label, value]) => {
|
|
4910
4882
|
if (Array.isArray(value)) {
|
|
4911
|
-
return (h("ez-collapsible-box", { id: `group-${label}`, label: label, "header-size": "large", key: label },
|
|
4883
|
+
return (h("ez-collapsible-box", { id: `group-${label}`, label: label, "header-size": "large", key: label }, value.map(fi => fieldBuilder(fi))));
|
|
4912
4884
|
}
|
|
4913
4885
|
else {
|
|
4914
|
-
|
|
4886
|
+
return fieldBuilder(value);
|
|
4915
4887
|
}
|
|
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));
|
|
4888
|
+
})));
|
|
4921
4889
|
}
|
|
4922
4890
|
get _element() { return this; }
|
|
4923
4891
|
static get style() { return ezFormViewCss; }
|
|
@@ -123774,9 +123742,6 @@ class DataSource {
|
|
|
123774
123742
|
break;
|
|
123775
123743
|
case Action.LOADING_DATA:
|
|
123776
123744
|
this._waitingForLoad = true;
|
|
123777
|
-
if (EZ_GRID_LOADING_SOURCE !== action.payload.source) {
|
|
123778
|
-
this._controller.clearFilter();
|
|
123779
|
-
}
|
|
123780
123745
|
this._controller.refresh();
|
|
123781
123746
|
break;
|
|
123782
123747
|
case Action.DATA_LOADED:
|
|
@@ -124574,10 +124539,6 @@ class AgGridController {
|
|
|
124574
124539
|
this._gridOptions.api.refreshHeader();
|
|
124575
124540
|
this._dataUnit.loadData(undefined, undefined, undefined, EZ_GRID_LOADING_SOURCE);
|
|
124576
124541
|
}
|
|
124577
|
-
clearFilter() {
|
|
124578
|
-
this._filteredColumns.clear();
|
|
124579
|
-
this._gridOptions.api.refreshHeader();
|
|
124580
|
-
}
|
|
124581
124542
|
showFilterColumn(configs) {
|
|
124582
124543
|
var _a;
|
|
124583
124544
|
(_a = this._filterColumn) === null || _a === void 0 ? void 0 : _a.show(configs);
|
|
@@ -125167,7 +125128,7 @@ class AgGridController {
|
|
|
125167
125128
|
showColumnFilter: (leftPosition) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name), fromIcon: true }),
|
|
125168
125129
|
},
|
|
125169
125130
|
valueFormatter: params => {
|
|
125170
|
-
if (params.value
|
|
125131
|
+
if (params.value == undefined) {
|
|
125171
125132
|
return "";
|
|
125172
125133
|
}
|
|
125173
125134
|
if (params.value instanceof Promise) {
|
|
@@ -125549,7 +125510,7 @@ class InMemoryFilterColumnDataSource {
|
|
|
125549
125510
|
}
|
|
125550
125511
|
}
|
|
125551
125512
|
|
|
125552
|
-
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100
|
|
125513
|
+
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;min-height:300px;--ez-grid__header--background-color:var(--background--xlight, #FFF);--ez-grid__selection-counter--z-index:var(--visible, 1);--ez-grid__container--shadow:0 0 16px 0 rgb(0 38 111 / 12%)}.grid-header.sc-ez-grid{display:grid;justify-content:space-between;align-items:center;grid-row-start:1;grid-template-columns:1fr;background-color:var(--ez-grid__header--background-color, #FFF)}.grid__container.sc-ez-grid{padding-top:15px;margin-top:-12px;box-shadow:var(--ez-grid__container--shadow);background-color:var(--ez-grid__header--background-color)}.grid-header__popover.sc-ez-grid{position:relative;top:var(--space--sm, 16px)}.grid-header__container.sc-ez-grid{display:flex;align-items:center}.grid-header__position.sc-ez-grid{display:flex;align-items:center;justify-content:space-between}.grid__selection-counter.sc-ez-grid{position:fixed;white-space:nowrap;transform:translate(-50%, 0px);left:50%;opacity:0;bottom:-100%;transition:opacity 0.1s, bottom 0.5s}.grid__selection-counter--opened.sc-ez-grid{opacity:1;bottom:0px}.grid__btn-close.sc-ez-grid{display:flex;align-items:center;justify-content:center;padding:0;outline:none;width:20px;height:20px;border:none;background-color:unset;cursor:pointer}.grid__btn-clear.sc-ez-grid{--ez-button--link-color:var(--color--alert-warning-900, #8C6B00);--ez-button--link--hover-color:var(--color--alert-warning-900, #8C6B00)}[no-header].sc-ez-grid-h .grid-header.sc-ez-grid{height:0;padding:0}";
|
|
125553
125514
|
|
|
125554
125515
|
const windowInstace$1 = window;
|
|
125555
125516
|
const matches = (text, filter) => {
|
|
@@ -125649,14 +125610,6 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
125649
125610
|
observeConfig(config) {
|
|
125650
125611
|
this._gridController.setColumnsState(config.columns);
|
|
125651
125612
|
}
|
|
125652
|
-
updatePaginationTooltip() {
|
|
125653
|
-
if (this._refPaginationLabelTooltip) {
|
|
125654
|
-
const tooltip = this._getPaginationTooltip();
|
|
125655
|
-
if (tooltip) {
|
|
125656
|
-
this._refPaginationLabelTooltip.setAttribute('data-tooltip', tooltip);
|
|
125657
|
-
}
|
|
125658
|
-
}
|
|
125659
|
-
}
|
|
125660
125613
|
onSelectionChange(evt) {
|
|
125661
125614
|
this._currentPageSelected = evt.detail.selectionHeaderStatus === true;
|
|
125662
125615
|
if (this.dataUnit) {
|
|
@@ -125812,10 +125765,11 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
125812
125765
|
}
|
|
125813
125766
|
getPaginationControl() {
|
|
125814
125767
|
if (this._paginationInfo) {
|
|
125815
|
-
const { currentPage, hasMore } = this._paginationInfo;
|
|
125768
|
+
const { firstRecord, lastRecord, total, count, currentPage, hasMore } = this._paginationInfo;
|
|
125816
125769
|
return [
|
|
125817
|
-
h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium"
|
|
125818
|
-
h("
|
|
125770
|
+
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" }, `${firstRecord}-${lastRecord}`), total == undefined ? ` de ${count + 1} ou mais` : ` de ${total}`),
|
|
125771
|
+
h("ez-button", { size: "small", iconName: "chevron-left", class: "ez-margin-right--medium", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: "P\u00E1gina anterior" }),
|
|
125772
|
+
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" }),
|
|
125819
125773
|
];
|
|
125820
125774
|
}
|
|
125821
125775
|
return null;
|
|
@@ -125859,53 +125813,6 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
125859
125813
|
this.setEvents();
|
|
125860
125814
|
this.componentReady.emit();
|
|
125861
125815
|
this._gridController.configFilterColumn(this._filterColumn);
|
|
125862
|
-
this._initHeaderOverflowWatcher();
|
|
125863
|
-
}
|
|
125864
|
-
_getActualPageLabel() {
|
|
125865
|
-
const { firstRecord, lastRecord } = this._paginationInfo;
|
|
125866
|
-
return `${firstRecord}-${lastRecord}`;
|
|
125867
|
-
}
|
|
125868
|
-
_getRemainingPageLabel() {
|
|
125869
|
-
const { total, count } = this._paginationInfo;
|
|
125870
|
-
return `${total == undefined ? ` de ${count + 1} ou mais` : ` de ${total}`}`;
|
|
125871
|
-
}
|
|
125872
|
-
_getPaginationTooltip() {
|
|
125873
|
-
return this._getActualPageLabel() + this._getRemainingPageLabel();
|
|
125874
|
-
}
|
|
125875
|
-
_initHeaderOverflowWatcher() {
|
|
125876
|
-
this._headerOverflowWatcher = new OverflowWatcher(this.buildOverFlowWatcherParams());
|
|
125877
|
-
}
|
|
125878
|
-
buildOverFlowWatcherParams() {
|
|
125879
|
-
return {
|
|
125880
|
-
element: this._refPaginationControl,
|
|
125881
|
-
callback: this.handleOverFlow.bind(this),
|
|
125882
|
-
notOverFlow: ["grid-pagination-tooltip"]
|
|
125883
|
-
};
|
|
125884
|
-
}
|
|
125885
|
-
handleOverFlow(elementsOverflow) {
|
|
125886
|
-
if (!this._refPaginationLabel)
|
|
125887
|
-
return;
|
|
125888
|
-
if (elementsOverflow.length > 0) {
|
|
125889
|
-
this._hidePaginationDescription();
|
|
125890
|
-
}
|
|
125891
|
-
else {
|
|
125892
|
-
this._showPaginationDescription();
|
|
125893
|
-
}
|
|
125894
|
-
}
|
|
125895
|
-
_hidePaginationDescription() {
|
|
125896
|
-
this._refPaginationLabel.classList.add(OVERFLOWED_CLASS_NAME);
|
|
125897
|
-
this._refPaginationLabelTooltip.setAttribute('data-flow', 'bottom');
|
|
125898
|
-
this._refPaginationLabelTooltip.setAttribute('data-tooltip', this._getPaginationTooltip());
|
|
125899
|
-
}
|
|
125900
|
-
;
|
|
125901
|
-
_showPaginationDescription() {
|
|
125902
|
-
this._refPaginationLabel.classList.remove(OVERFLOWED_CLASS_NAME);
|
|
125903
|
-
this._refPaginationLabelTooltip.removeAttribute('data-flow');
|
|
125904
|
-
this._refPaginationLabelTooltip.removeAttribute('data-tooltip');
|
|
125905
|
-
}
|
|
125906
|
-
disconnectedCallback() {
|
|
125907
|
-
var _a;
|
|
125908
|
-
(_a = this._headerOverflowWatcher) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
125909
125816
|
}
|
|
125910
125817
|
componentWillRender() {
|
|
125911
125818
|
this.configSelectionCounter();
|
|
@@ -125929,15 +125836,14 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
125929
125836
|
}
|
|
125930
125837
|
render() {
|
|
125931
125838
|
var _a;
|
|
125932
|
-
return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: "grid__container ez-grid", ref: elem => (this._container = elem) }), h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: "grid-header__container
|
|
125839
|
+
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
|
|
125933
125840
|
${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
|
|
125934
125841
|
` }, 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" }))));
|
|
125935
125842
|
}
|
|
125936
125843
|
static get assetsDirs() { return ["../assets"]; }
|
|
125937
125844
|
get _element() { return this; }
|
|
125938
125845
|
static get watchers() { return {
|
|
125939
|
-
"config": ["observeConfig"]
|
|
125940
|
-
"_paginationInfo": ["updatePaginationTooltip"]
|
|
125846
|
+
"config": ["observeConfig"]
|
|
125941
125847
|
}; }
|
|
125942
125848
|
static get style() { return ezGridCss; }
|
|
125943
125849
|
};
|
|
@@ -126044,7 +125950,7 @@ const EzGuideNavigator$1 = class extends HTMLElement$1 {
|
|
|
126044
125950
|
static get style() { return ezGuideNavigatorCss; }
|
|
126045
125951
|
};
|
|
126046
125952
|
|
|
126047
|
-
const ezIconCss = ":host{display:flex;overflow:hidden;position:relative;--ez-icon--color:var(--icon--color, #ffffff)}svg{display:flex;justify-content:center;align-items:center;fill:var(--ez-icon--color)}.x-small{width:12px;height:12px}.small{width:16px;height:16px}.medium{width:20px;height:20px}.large{width:24px;height:24px}.x-large{width:30px;height:30px}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{color:var(--ez-icon--color)}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{font-family:'ez-icons' !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ez-icon-2chevron-down:before{content:\"\\ea01\"}.ez-icon-2chevron-up:before{content:\"\\ea02\"}.ez-icon-acao:before{content:\"\\ea03\"}.ez-icon-account-outline:before{content:\"\\ea04\"}.ez-icon-account:before{content:\"\\ea05\"}.ez-icon-alert-circle-inverted:before{content:\"\\ea06\"}.ez-icon-alert-circle:before{content:\"\\ea07\"}.ez-icon-alert-mail:before{content:\"\\ea08\"}.ez-icon-alert-popup:before{content:\"\\ea09\"}.ez-icon-anexo:before{content:\"\\ea0a\"}.ez-icon-antecipacao:before{content:\"\\ea0b\"}.ez-icon-apps:before{content:\"\\ea0c\"}.ez-icon-arrow-forward:before{content:\"\\ea0d\"}.ez-icon-arrow-upward:before{content:\"\\ea0e\"}.ez-icon-arrow_back:before{content:\"\\ea0f\"}.ez-icon-arrow_downward:before{content:\"\\ea10\"}.ez-icon-baixa:before{content:\"\\ea11\"}.ez-icon-balance:before{content:\"\\ea12\"}.ez-icon-bell-inverted:before{content:\"\\ea13\"}.ez-icon-bell:before{content:\"\\ea14\"}.ez-icon-boleto:before{content:\"\\ea15\"}.ez-icon-boolean:before{content:\"\\ea16\"}.ez-icon-business-center:before{content:\"\\ea17\"}.ez-icon-calendar-clock:before{content:\"\\ea18\"}.ez-icon-calendar:before{content:\"\\ea19\"}.ez-icon-cash-remove:before{content:\"\\ea1a\"}.ez-icon-check-circle-inverted:before{content:\"\\ea1b\"}.ez-icon-check-circle:before{content:\"\\ea1c\"}.ez-icon-check:before{content:\"\\ea1d\"}.ez-icon-chevron-down:before{content:\"\\ea1e\"}.ez-icon-chevron-left:before{content:\"\\ea1f\"}.ez-icon-chevron-right:before{content:\"\\ea20\"}.ez-icon-chevron-up:before{content:\"\\ea21\"}.ez-icon-circle--medium:before{content:\"\\ea22\"}.ez-icon-circle:before{content:\"\\ea23\"}.ez-icon-cleaning:before{content:\"\\ea24\"}.ez-icon-clipboard:before{content:\"\\ea25\"}.ez-icon-
|
|
125953
|
+
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}";
|
|
126048
125954
|
|
|
126049
125955
|
const EzIcon$1 = class extends HTMLElement$1 {
|
|
126050
125956
|
constructor() {
|
|
@@ -126929,8 +126835,16 @@ const EzMuiltiSelectionList = class extends HTMLElement$1 {
|
|
|
126929
126835
|
}
|
|
126930
126836
|
handleChangeSelectedItem(event) {
|
|
126931
126837
|
const { detail: itemCheckSelected } = event;
|
|
126932
|
-
|
|
126933
|
-
|
|
126838
|
+
this.filteredOptions = this.filteredOptions.map(item => {
|
|
126839
|
+
if (item.label === itemCheckSelected.label) {
|
|
126840
|
+
return Object.assign(Object.assign({}, item), { check: itemCheckSelected.check });
|
|
126841
|
+
}
|
|
126842
|
+
return item;
|
|
126843
|
+
});
|
|
126844
|
+
this.clearInputs();
|
|
126845
|
+
}
|
|
126846
|
+
clearInputs() {
|
|
126847
|
+
this.filterInput ? (this.filterInput.value = '') : (this.searchInput.value = '');
|
|
126934
126848
|
}
|
|
126935
126849
|
buildViewList(hasDelete) {
|
|
126936
126850
|
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 })));
|
|
@@ -127293,7 +127207,7 @@ const EzPopover$1 = class extends HTMLElement$1 {
|
|
|
127293
127207
|
static get style() { return ezPopoverCss; }
|
|
127294
127208
|
};
|
|
127295
127209
|
|
|
127296
|
-
const ezPopupCss = ":host{display:flex;--ez-popup-z-index:var(--elevation--24, 24);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--large, 24px);--ez-popup__header--padding-bottom:var(--space--medium, 12px);--ez-popup__title--font-family:var(--font-pattern, \"Roboto\");--ez-popup__title--font-size:var(--title--extra-large, 24px);--ez-popup__title--color:var(--title--primary, #2b3a54);--ez-popup__title--font-weight:var(--text-weight--large, 600);--ez-popup__btn__close--icon-color:var(--title--primary, #2b3a54);--ez-popup__btn__close--icon:url('data:image/svg+xml;utf8,<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 8.2421753,6.9944578 13.743748,1.4930784 C 13.907781,1.3290628 14,1.1065946 14,0.87462511 14,0.64266712 13.907782,0.42019873 13.743748,0.25617155 13.579712,0.09215597 13.35727,6.48e-8 13.125266,6.48e-8 12.89338,6.48e-8 12.670821,0.09215634 12.506787,0.25617155 L 7.005215,5.7575508 1.5035972,0.25617155 C 1.3395631,0.09215597 1.1170968,6.48e-8 0.88511716,6.48e-8 0.65314917,6.48e-8 0.4306712,0.09215597 0.26663695,0.25617155 0.10260271,0.42019873 0.01045441,0.64266712 0.01045441,0.87462511 c 0,0.23196949 0.0921483,0.45443769 0.25618254,0.61845329 L 5.7682546,6.9944578 0.26663695,12.497027 c -0.0834745,0.08067 -0.15003245,0.1772 -0.19581514,0.283871 C 0.02505077,12.887561 9.831648e-4,13.002399 2.950369e-5,13.118395 -9.2415746e-4,13.234504 0.02125019,13.349689 0.06527245,13.457057 c 0.04401053,0.107479 0.10898307,0.205064 0.1911168,0.287137 0.0821454,0.08208 0.17979645,0.146888 0.28727561,0.190839 0.10747906,0.04395 0.22262954,0.06598 0.33872417,0.06493 0.116095,-10e-4 0.23082547,-0.0253 0.33747687,-0.07112 0.1066637,-0.04593 0.2031133,-0.112615 0.2837313,-0.196086 L 7.005215,8.2313646 12.506787,13.732768 c 0.164034,0.164027 0.386593,0.256125 0.618479,0.256125 0.232004,0 0.454446,-0.09209 0.618482,-0.256125 C 13.907781,13.568741 14,13.346308 14,13.114315 14,12.882323 13.90779,12.659888 13.743748,12.495861 Z\"/></svg>')}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index, 24);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup{display:flex;height:100%;align-items:center;justify-content:center;box-sizing:border-box}.popup__container{width:100%;max-height:90%;height:100%;display:flex;flex-wrap:wrap;overflow:hidden;outline:none;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding)}.popup__container--auto{height:auto}.popup__content{box-sizing:border-box;height:100%;width:100
|
|
127210
|
+
const ezPopupCss = ":host{display:flex;--ez-popup-z-index:var(--elevation--24, 24);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--large, 24px);--ez-popup__header--padding-bottom:var(--space--medium, 12px);--ez-popup__title--font-family:var(--font-pattern, \"Roboto\");--ez-popup__title--font-size:var(--title--extra-large, 24px);--ez-popup__title--color:var(--title--primary, #2b3a54);--ez-popup__title--font-weight:var(--text-weight--large, 600);--ez-popup__btn__close--icon-color:var(--title--primary, #2b3a54);--ez-popup__btn__close--icon:url('data:image/svg+xml;utf8,<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 8.2421753,6.9944578 13.743748,1.4930784 C 13.907781,1.3290628 14,1.1065946 14,0.87462511 14,0.64266712 13.907782,0.42019873 13.743748,0.25617155 13.579712,0.09215597 13.35727,6.48e-8 13.125266,6.48e-8 12.89338,6.48e-8 12.670821,0.09215634 12.506787,0.25617155 L 7.005215,5.7575508 1.5035972,0.25617155 C 1.3395631,0.09215597 1.1170968,6.48e-8 0.88511716,6.48e-8 0.65314917,6.48e-8 0.4306712,0.09215597 0.26663695,0.25617155 0.10260271,0.42019873 0.01045441,0.64266712 0.01045441,0.87462511 c 0,0.23196949 0.0921483,0.45443769 0.25618254,0.61845329 L 5.7682546,6.9944578 0.26663695,12.497027 c -0.0834745,0.08067 -0.15003245,0.1772 -0.19581514,0.283871 C 0.02505077,12.887561 9.831648e-4,13.002399 2.950369e-5,13.118395 -9.2415746e-4,13.234504 0.02125019,13.349689 0.06527245,13.457057 c 0.04401053,0.107479 0.10898307,0.205064 0.1911168,0.287137 0.0821454,0.08208 0.17979645,0.146888 0.28727561,0.190839 0.10747906,0.04395 0.22262954,0.06598 0.33872417,0.06493 0.116095,-10e-4 0.23082547,-0.0253 0.33747687,-0.07112 0.1066637,-0.04593 0.2031133,-0.112615 0.2837313,-0.196086 L 7.005215,8.2313646 12.506787,13.732768 c 0.164034,0.164027 0.386593,0.256125 0.618479,0.256125 0.232004,0 0.454446,-0.09209 0.618482,-0.256125 C 13.907781,13.568741 14,13.346308 14,13.114315 14,12.882323 13.90779,12.659888 13.743748,12.495861 Z\"/></svg>')}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index, 24);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup{display:flex;height:100%;align-items:center;justify-content:center;box-sizing:border-box}.popup__container{width:100%;max-height:90%;height:100%;display:flex;flex-wrap:wrap;overflow:hidden;outline:none;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding)}.popup__container--auto{height:auto}.popup__content{box-sizing:border-box;max-height:100%;width:100%;display:grid;grid-template-rows:auto 1fr}.popup__expandable-content{box-sizing:border-box;width:100%;height:100%}.popup__header{width:100%;display:flex}.popup__header--padding{padding-bottom:var(--ez-popup__header--padding-bottom)}.popup__title{display:flex;margin:0;width:100%;font-family:var(--ez-popup__title--font-family);font-size:var(--ez-popup__title--font-size);font-weight:var(--ez-popup__title--font-weight);color:var(--ez-popup__title--color);line-height:1.3}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--ez-popup__btn__close--icon-color);width:14px;height:14px;-webkit-mask-image:var(--ez-popup__btn__close--icon);mask-image:var(--ez-popup__btn__close--icon)}.btn-close--solo{width:100%}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}.ez-popup__size-limit--x-small{min-width:350px;max-width:560px}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
|
|
127297
127211
|
|
|
127298
127212
|
const EzPopup$1 = class extends HTMLElement$1 {
|
|
127299
127213
|
constructor() {
|
|
@@ -127776,9 +127690,10 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127776
127690
|
if (currentValue == undefined) {
|
|
127777
127691
|
return;
|
|
127778
127692
|
}
|
|
127779
|
-
|
|
127780
|
-
|
|
127781
|
-
|
|
127693
|
+
if (!this.showSelectedValue || currentValue.value == undefined) {
|
|
127694
|
+
return currentValue.label;
|
|
127695
|
+
}
|
|
127696
|
+
return currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
|
|
127782
127697
|
}
|
|
127783
127698
|
getText() {
|
|
127784
127699
|
const currentValue = this.getSelectedOption(this.value);
|
|
@@ -128337,148 +128252,7 @@ const EzSkeleton$1 = class extends HTMLElement$1 {
|
|
|
128337
128252
|
static get style() { return ezSkeletonCss; }
|
|
128338
128253
|
};
|
|
128339
128254
|
|
|
128340
|
-
const
|
|
128341
|
-
|
|
128342
|
-
const EzSplitButton$1 = class extends HTMLElement$1 {
|
|
128343
|
-
constructor() {
|
|
128344
|
-
super();
|
|
128345
|
-
this.__registerHost();
|
|
128346
|
-
this.__attachShadow();
|
|
128347
|
-
this.buttonClick = createEvent(this, "buttonClick", 7);
|
|
128348
|
-
this.dropdownItemClick = createEvent(this, "dropdownItemClick", 7);
|
|
128349
|
-
this.dropdownSubActionClick = createEvent(this, "dropdownSubActionClick", 7);
|
|
128350
|
-
this.rightDefaultTitle = 'Mais opções';
|
|
128351
|
-
this.show = false;
|
|
128352
|
-
this.enabled = true;
|
|
128353
|
-
this.iconName = undefined;
|
|
128354
|
-
this.image = undefined;
|
|
128355
|
-
this.items = undefined;
|
|
128356
|
-
this.label = undefined;
|
|
128357
|
-
this.leftTitle = undefined;
|
|
128358
|
-
this.rightTitle = 'Mais opções';
|
|
128359
|
-
this.mode = 'default';
|
|
128360
|
-
this.size = 'medium';
|
|
128361
|
-
}
|
|
128362
|
-
/**
|
|
128363
|
-
* Remove o foco de ambos os botões.
|
|
128364
|
-
*/
|
|
128365
|
-
async setBlur() {
|
|
128366
|
-
this.leftButton.blur();
|
|
128367
|
-
this.rightButton.blur();
|
|
128368
|
-
}
|
|
128369
|
-
/**
|
|
128370
|
-
* Aplica o foco no botão principal.
|
|
128371
|
-
*/
|
|
128372
|
-
async setLeftButtonFocus() {
|
|
128373
|
-
this.leftButton.focus();
|
|
128374
|
-
}
|
|
128375
|
-
/**
|
|
128376
|
-
* Aplica o foco no botão do dropdown.
|
|
128377
|
-
*/
|
|
128378
|
-
async setRightButtonFocus() {
|
|
128379
|
-
this.rightButton.focus();
|
|
128380
|
-
}
|
|
128381
|
-
clickListener(evt) {
|
|
128382
|
-
if (!this.enabled) {
|
|
128383
|
-
evt.preventDefault();
|
|
128384
|
-
evt.stopPropagation();
|
|
128385
|
-
evt.stopImmediatePropagation();
|
|
128386
|
-
}
|
|
128387
|
-
}
|
|
128388
|
-
getIconSize(sizeParam = 'medium') {
|
|
128389
|
-
var _a;
|
|
128390
|
-
const sizeList = ['medium', 'large'];
|
|
128391
|
-
const sizeLowerCase = (_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
128392
|
-
return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
|
|
128393
|
-
}
|
|
128394
|
-
closeDropdown() {
|
|
128395
|
-
this.show = false;
|
|
128396
|
-
}
|
|
128397
|
-
toggleDropdown() {
|
|
128398
|
-
this.show = !this.show;
|
|
128399
|
-
}
|
|
128400
|
-
handleButtonClick() {
|
|
128401
|
-
this.buttonClick.emit();
|
|
128402
|
-
}
|
|
128403
|
-
handleDropdownItemClick(evt) {
|
|
128404
|
-
this.dropdownItemClick.emit(evt.detail);
|
|
128405
|
-
evt.stopPropagation();
|
|
128406
|
-
this.closeDropdown();
|
|
128407
|
-
}
|
|
128408
|
-
handleDropdownSubActionClick(evt) {
|
|
128409
|
-
this.dropdownSubActionClick.emit(evt.detail);
|
|
128410
|
-
evt.stopPropagation();
|
|
128411
|
-
this.closeDropdown();
|
|
128412
|
-
}
|
|
128413
|
-
/**
|
|
128414
|
-
* Método responsável em posicionar o dropdown na tela.
|
|
128415
|
-
* Faz com que o dropdown se ajuste automaticamente ao espaco na tela
|
|
128416
|
-
*/
|
|
128417
|
-
positionDropdown() {
|
|
128418
|
-
const { rightButton: _rightButton, dropdownParent: _dropdownParent } = this;
|
|
128419
|
-
const rightButtonRect = _rightButton.getBoundingClientRect();
|
|
128420
|
-
const dropdownParentRect = _dropdownParent.getBoundingClientRect();
|
|
128421
|
-
const spaceBelow = window.innerHeight - rightButtonRect.bottom;
|
|
128422
|
-
const spaceAbove = rightButtonRect.top;
|
|
128423
|
-
const spaceRight = window.innerWidth - rightButtonRect.right;
|
|
128424
|
-
const spaceLeft = rightButtonRect.left;
|
|
128425
|
-
const hasSpaceBelow = spaceBelow < dropdownParentRect.height && spaceAbove > dropdownParentRect.height;
|
|
128426
|
-
const hasSpaceRight = spaceRight < dropdownParentRect.width && spaceLeft > dropdownParentRect.width;
|
|
128427
|
-
let top = `${rightButtonRect.bottom + window.scrollY}px`;
|
|
128428
|
-
let left = `${rightButtonRect.left + window.scrollX}px`;
|
|
128429
|
-
let bottom = 'auto';
|
|
128430
|
-
if (hasSpaceBelow) {
|
|
128431
|
-
bottom = `${window.innerHeight - rightButtonRect.top - window.scrollY}px`;
|
|
128432
|
-
top = 'auto';
|
|
128433
|
-
_dropdownParent.style.maxHeight = `${spaceAbove}px`;
|
|
128434
|
-
}
|
|
128435
|
-
if (hasSpaceRight) {
|
|
128436
|
-
left = `${rightButtonRect.right - dropdownParentRect.width + window.scrollX}px`;
|
|
128437
|
-
}
|
|
128438
|
-
_dropdownParent.style.top = top;
|
|
128439
|
-
_dropdownParent.style.bottom = bottom;
|
|
128440
|
-
_dropdownParent.style.left = left;
|
|
128441
|
-
}
|
|
128442
|
-
setEvents() {
|
|
128443
|
-
window.removeEventListener('scroll', this.positionDropdown.bind(this));
|
|
128444
|
-
window.addEventListener('scroll', this.positionDropdown.bind(this));
|
|
128445
|
-
}
|
|
128446
|
-
componentWillLoad() {
|
|
128447
|
-
this.setEvents();
|
|
128448
|
-
}
|
|
128449
|
-
componentDidLoad() {
|
|
128450
|
-
if (this._element)
|
|
128451
|
-
ElementIDUtils.addIDInfo(this._element);
|
|
128452
|
-
if (this.leftButton) {
|
|
128453
|
-
const dataInfo = { id: 'embedded' };
|
|
128454
|
-
ElementIDUtils.addIDInfo(this.leftButton, 'left-button', dataInfo);
|
|
128455
|
-
}
|
|
128456
|
-
if (this.rightButton) {
|
|
128457
|
-
const dataInfo = { id: 'embedded' };
|
|
128458
|
-
ElementIDUtils.addIDInfo(this.rightButton, 'right-button', dataInfo);
|
|
128459
|
-
}
|
|
128460
|
-
this.positionDropdown();
|
|
128461
|
-
}
|
|
128462
|
-
componentDidUpdate() {
|
|
128463
|
-
this.positionDropdown();
|
|
128464
|
-
}
|
|
128465
|
-
render() {
|
|
128466
|
-
const hasIconButton = this.shouldShowIconOnLeftButton();
|
|
128467
|
-
const hasLabelButton = this.shouldShowLabelOnLeftButton();
|
|
128468
|
-
const iconSize = this.getIconSize();
|
|
128469
|
-
return (h("div", { class: "label-icon" }, h("button", { class: `ez-split-button__left-button ${iconSize} ${this.mode}`, title: this.leftTitle || this.label, type: "button", disabled: !this.enabled, onClick: () => { this.handleButtonClick(); }, ref: el => (this.leftButton = el) }, hasIconButton && h("ez-icon", { href: this.image, iconName: this.iconName, size: iconSize }), hasLabelButton && h("label", { title: this.leftTitle || this.label }, this.label)), h("div", { class: "dropdown" }, h("button", { class: `ez-split-button__right-button ${iconSize} ez-split-button__right-button--${iconSize} ez-split-button__right-button--divider`, title: this.rightTitle || this.rightDefaultTitle, type: "button", disabled: !this.enabled, onClick: () => { this.toggleDropdown(); }, ref: el => (this.rightButton = el) }, h("ez-icon", { class: `ez-split-button__right-button-container ` + (iconSize ? `btn-icon--${iconSize}` : ''), iconName: 'chevron-down', size: iconSize })), h("div", { class: `dropdown-content dropdown-content--${this.size}`, ref: (ref) => (this.dropdownParent = ref) }, this.show && (h("ez-dropdown", { items: this.items, onClick: evt => { evt.stopPropagation(); }, onEzOutsideClick: () => { this.closeDropdown(); }, onEzClick: evt => { this.handleDropdownItemClick(evt); }, onEzSubActionClick: evt => { this.handleDropdownSubActionClick(evt); } }))))));
|
|
128470
|
-
}
|
|
128471
|
-
shouldShowLabelOnLeftButton() {
|
|
128472
|
-
return ['icon-left', 'default'].includes(this.mode);
|
|
128473
|
-
}
|
|
128474
|
-
shouldShowIconOnLeftButton() {
|
|
128475
|
-
return ['icon-left', 'icon-only'].includes(this.mode);
|
|
128476
|
-
}
|
|
128477
|
-
get _element() { return this; }
|
|
128478
|
-
static get style() { return ezSplitButtonCss; }
|
|
128479
|
-
};
|
|
128480
|
-
|
|
128481
|
-
const ezSplitItemCss = "ez-split-item{--snk-grid-min-height:0;--ez-grid--min-height:0}.box_split-item{background-color:var(--background--xlight);width:100%;height:100%;border-radius:var(--border--radius-medium);box-shadow:var(--shadow);flex-direction:column;overflow:hidden;display:flex;padding:var(--space--nano)}.box_split-item>.ez-split-item--content{overflow:auto}.expanded__item{position:absolute;z-index:var(--more-visible);top:0;left:0;width:100%;height:100%}.ez-split-item--header{display:flex;align-items:center;justify-content:space-between}.ez-split-item--header-buttons{display:flex;align-items:center}.ez-split-item--content{display:block;height:100%}";
|
|
128255
|
+
const ezSplitItemCss = ".box_split-item{background-color:var(--background--xlight);padding:var(--space--nano);width:100%;height:100%;border-radius:var(--border--radius-medium);box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:auto}.expanded__item{position:absolute;z-index:var(--more-visible);top:0;left:0;width:100%;height:100%}.ez-split-item--header{display:flex;align-items:center;justify-content:space-between}.ez-split-item--header-buttons{display:flex;align-items:center}.ez-split-item--content{display:block;height:-webkit-fill-available}";
|
|
128482
128256
|
|
|
128483
128257
|
const SplitItem = class extends HTMLElement$1 {
|
|
128484
128258
|
constructor() {
|
|
@@ -128487,7 +128261,6 @@ const SplitItem = class extends HTMLElement$1 {
|
|
|
128487
128261
|
this.label = undefined;
|
|
128488
128262
|
this.enableExpand = true;
|
|
128489
128263
|
this._expanded = false;
|
|
128490
|
-
this.size = undefined;
|
|
128491
128264
|
}
|
|
128492
128265
|
/**
|
|
128493
128266
|
* Alterna a visibilidade do painel.
|
|
@@ -128495,11 +128268,8 @@ const SplitItem = class extends HTMLElement$1 {
|
|
|
128495
128268
|
toggleExpandItem() {
|
|
128496
128269
|
this._expanded = !this._expanded;
|
|
128497
128270
|
}
|
|
128498
|
-
componentDidLoad() {
|
|
128499
|
-
CSSVarsUtils.applyVarsGrid(this._element, this._slot.children[0]);
|
|
128500
|
-
}
|
|
128501
128271
|
render() {
|
|
128502
|
-
return (h(
|
|
128272
|
+
return (h("div", { class: `box_split-item ${this._expanded ? 'expanded__item' : ''}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("div", null, this.label && (h("div", { class: "ez-margin--small" }, h("h3", { class: " ez-title ez-title--small" }, this.label)))), h("div", { class: "ez-split-item--header-buttons" }, this.enableExpand && (h("ez-button", { size: "medium", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })), h("slot", { name: "rightButtons" }))), h("div", { class: "ez-split-item--content" }, h("slot", null))));
|
|
128503
128273
|
}
|
|
128504
128274
|
static get style() { return ezSplitItemCss; }
|
|
128505
128275
|
};
|
|
@@ -129181,7 +128951,7 @@ Grid.prototype.destroy = function destroy (immediate) {
|
|
|
129181
128951
|
|
|
129182
128952
|
function index (options) { return new Grid(options); }
|
|
129183
128953
|
|
|
129184
|
-
const ezSplitPanelCss = ".ez-split-gutter{cursor:grab;background-color:transparent}";
|
|
128954
|
+
const ezSplitPanelCss = ":host{height:100%}.ez-split-gutter{cursor:grab;background-color:transparent}";
|
|
129185
128955
|
|
|
129186
128956
|
const SplitPanel = class extends HTMLElement$1 {
|
|
129187
128957
|
constructor() {
|
|
@@ -129255,17 +129025,16 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
129255
129025
|
}
|
|
129256
129026
|
getGridTemplate() {
|
|
129257
129027
|
let template = '';
|
|
129258
|
-
this._items.forEach((
|
|
129259
|
-
const size = col.size || '1fr';
|
|
129028
|
+
this._items.forEach((_col, index) => {
|
|
129260
129029
|
if (index === this._items.length - 1) {
|
|
129261
|
-
template += `
|
|
129030
|
+
template += ` 1fr`;
|
|
129262
129031
|
return;
|
|
129263
129032
|
}
|
|
129264
129033
|
if (index === 0) {
|
|
129265
|
-
template +=
|
|
129034
|
+
template += `1fr 5px`;
|
|
129266
129035
|
return;
|
|
129267
129036
|
}
|
|
129268
|
-
template += `
|
|
129037
|
+
template += ` 1fr 5px`;
|
|
129269
129038
|
});
|
|
129270
129039
|
return template;
|
|
129271
129040
|
}
|
|
@@ -131495,7 +131264,7 @@ const EzBadge = /*@__PURE__*/proxyCustomElement(EzBadge$1, [1,"ez-badge",{"size"
|
|
|
131495
131264
|
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]}]);
|
|
131496
131265
|
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"]]]);
|
|
131497
131266
|
const EzCalendar = /*@__PURE__*/proxyCustomElement(EzCalendar$1, [1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"]},[[11,"scroll","scrollListener"]]]);
|
|
131498
|
-
const EzCardItem = /*@__PURE__*/proxyCustomElement(EzCardItem$1, [1,"ez-card-item",{"item":[16]
|
|
131267
|
+
const EzCardItem = /*@__PURE__*/proxyCustomElement(EzCardItem$1, [1,"ez-card-item",{"item":[16]}]);
|
|
131499
131268
|
const EzCheck = /*@__PURE__*/proxyCustomElement(EzCheck$1, [1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[1540],"mode":[513],"compact":[4]}]);
|
|
131500
131269
|
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"]}]);
|
|
131501
131270
|
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]}]);
|
|
@@ -131524,8 +131293,7 @@ const EzScroller = /*@__PURE__*/proxyCustomElement(EzScroller$1, [1,"ez-scroller
|
|
|
131524
131293
|
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"]]]);
|
|
131525
131294
|
const EzSidebarButton = /*@__PURE__*/proxyCustomElement(EzSidebarButton$1, [1,"ez-sidebar-button"]);
|
|
131526
131295
|
const EzSkeleton = /*@__PURE__*/proxyCustomElement(EzSkeleton$1, [0,"ez-skeleton",{"count":[2],"variant":[1],"width":[1],"height":[1],"marginBottom":[1,"margin-bottom"],"animation":[1]}]);
|
|
131527
|
-
const
|
|
131528
|
-
const EzSplitItem = /*@__PURE__*/proxyCustomElement(SplitItem, [4,"ez-split-item",{"label":[1],"enableExpand":[516,"enable-expand"],"size":[1],"_expanded":[32]}]);
|
|
131296
|
+
const EzSplitItem = /*@__PURE__*/proxyCustomElement(SplitItem, [4,"ez-split-item",{"label":[1],"enableExpand":[516,"enable-expand"],"_expanded":[32]}]);
|
|
131529
131297
|
const EzSplitPanel = /*@__PURE__*/proxyCustomElement(SplitPanel, [0,"ez-split-panel",{"direction":[1],"anchorToExpand":[4,"anchor-to-expand"]}]);
|
|
131530
131298
|
const EzTabselector = /*@__PURE__*/proxyCustomElement(EzTabselector$1, [1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]);
|
|
131531
131299
|
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"]}]);
|
|
@@ -131578,7 +131346,6 @@ const defineCustomElements = (opts) => {
|
|
|
131578
131346
|
EzSearch,
|
|
131579
131347
|
EzSidebarButton,
|
|
131580
131348
|
EzSkeleton,
|
|
131581
|
-
EzSplitButton,
|
|
131582
131349
|
EzSplitItem,
|
|
131583
131350
|
EzSplitPanel,
|
|
131584
131351
|
EzTabselector,
|
|
@@ -131600,4 +131367,4 @@ const defineCustomElements = (opts) => {
|
|
|
131600
131367
|
}
|
|
131601
131368
|
};
|
|
131602
131369
|
|
|
131603
|
-
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzDateInput, EzDateTimeInput, EzDialog, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSidebarButton, EzSkeleton,
|
|
131370
|
+
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 };
|