@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-35029.0 → 0.0.0-bugfix-dev-KB-38407.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/ez-combo-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-input.cjs.entry.js +3 -0
- package/dist/cjs/ez-date-time-input.cjs.entry.js +3 -0
- package/dist/cjs/ez-grid.cjs.entry.js +24 -18
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -10
- package/dist/cjs/ez-number-input.cjs.entry.js +3 -0
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +147 -0
- package/dist/cjs/ez-split-item.cjs.entry.js +3 -2
- package/dist/cjs/ez-split-panel.cjs.entry.js +6 -5
- 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 +1 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +1 -1
- 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-grid/controller/ag-grid/AgGridController.js +11 -10
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +15 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -3
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +16 -5
- 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 -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 +0 -1
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +5 -4
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +7 -3
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +23 -2
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +207 -44
- package/dist/esm/ez-combo-box.entry.js +1 -1
- package/dist/esm/ez-date-input.entry.js +3 -0
- package/dist/esm/ez-date-time-input.entry.js +3 -0
- package/dist/esm/ez-grid.entry.js +24 -18
- package/dist/esm/ez-multi-selection-list.entry.js +2 -10
- package/dist/esm/ez-number-input.entry.js +3 -0
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +143 -0
- package/dist/esm/ez-split-item.entry.js +4 -3
- package/dist/esm/ez-split-panel.entry.js +6 -5
- 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-300bf244.entry.js → p-07cbffce.entry.js} +1 -1
- package/dist/ezui/{p-c0f1715f.entry.js → p-18e7870d.entry.js} +1 -1
- package/dist/ezui/p-25ed09c6.entry.js +1 -0
- package/dist/ezui/p-50186acb.entry.js +1 -0
- package/dist/ezui/{p-844ee673.entry.js → p-661f6820.entry.js} +1 -1
- package/dist/ezui/p-672dd122.entry.js +1 -0
- package/dist/ezui/{p-40f72de4.entry.js → p-784fe207.entry.js} +1 -1
- package/dist/ezui/{p-d373ba17.entry.js → p-abc23d6f.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-e562d05e.entry.js +1 -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/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/structure/item/ez-split-item.d.ts +5 -0
- package/dist/types/components.d.ts +123 -0
- package/package.json +2 -1
- 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-596634e9.entry.js +0 -1
- package/dist/ezui/p-af15c277.entry.js +0 -1
- package/dist/ezui/p-cd0499a2.entry.js +0 -1
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridUtils.d.ts +0 -1
|
@@ -2716,7 +2716,7 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2716
2716
|
}
|
|
2717
2717
|
else {
|
|
2718
2718
|
window.setTimeout(() => {
|
|
2719
|
-
this.setInputValue();
|
|
2719
|
+
this.setInputValue(false);
|
|
2720
2720
|
}, this._deboucingTime);
|
|
2721
2721
|
}
|
|
2722
2722
|
this.resetOptions();
|
|
@@ -2997,6 +2997,9 @@ const EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
2997
2997
|
this._calendar.hide();
|
|
2998
2998
|
}
|
|
2999
2999
|
handleBlur() {
|
|
3000
|
+
if (!this._changePending) {
|
|
3001
|
+
return;
|
|
3002
|
+
}
|
|
3000
3003
|
try {
|
|
3001
3004
|
const strValue = this._textInput.value;
|
|
3002
3005
|
const newValue = DateUtils$1.strToDate(strValue);
|
|
@@ -3230,6 +3233,9 @@ const EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
3230
3233
|
}
|
|
3231
3234
|
handleBlur() {
|
|
3232
3235
|
var _a, _b;
|
|
3236
|
+
if (!this._changePending) {
|
|
3237
|
+
return;
|
|
3238
|
+
}
|
|
3233
3239
|
try {
|
|
3234
3240
|
const strValue = ((_b = (_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.trim()) || "";
|
|
3235
3241
|
const newValue = this.getParsedDateTime();
|
|
@@ -123706,6 +123712,14 @@ var AllEnterpriseModules = [
|
|
|
123706
123712
|
ModuleRegistry.registerModules(AllEnterpriseModules);
|
|
123707
123713
|
|
|
123708
123714
|
class DataSource {
|
|
123715
|
+
updateLoadedRecords(action) {
|
|
123716
|
+
const records = action.payload;
|
|
123717
|
+
if ((records === null || records === void 0 ? void 0 : records.length) > 0) {
|
|
123718
|
+
records.forEach(record => {
|
|
123719
|
+
this._controller.changeValues(record, [record.__record__id__]);
|
|
123720
|
+
});
|
|
123721
|
+
}
|
|
123722
|
+
}
|
|
123709
123723
|
isSilentChange(action) {
|
|
123710
123724
|
//TODO: Provisorio p/ não atualizar a grade quando a alteração for apenas de campos transisntes
|
|
123711
123725
|
var _a, _b;
|
|
@@ -123728,6 +123742,9 @@ class DataSource {
|
|
|
123728
123742
|
break;
|
|
123729
123743
|
case Action.LOADING_DATA:
|
|
123730
123744
|
this._waitingForLoad = true;
|
|
123745
|
+
if (EZ_GRID_LOADING_SOURCE !== action.payload.source) {
|
|
123746
|
+
this._controller.clearFilter();
|
|
123747
|
+
}
|
|
123731
123748
|
this._controller.refresh();
|
|
123732
123749
|
break;
|
|
123733
123750
|
case Action.DATA_LOADED:
|
|
@@ -123758,6 +123775,9 @@ class DataSource {
|
|
|
123758
123775
|
case Action.PREVIOUS_SELECTED:
|
|
123759
123776
|
this.updateSelection();
|
|
123760
123777
|
break;
|
|
123778
|
+
case Action.RECORD_LOADED:
|
|
123779
|
+
this.updateLoadedRecords(action);
|
|
123780
|
+
break;
|
|
123761
123781
|
}
|
|
123762
123782
|
};
|
|
123763
123783
|
this._dataUnit = dataUnit;
|
|
@@ -123827,15 +123847,6 @@ class DataSource {
|
|
|
123827
123847
|
}
|
|
123828
123848
|
}
|
|
123829
123849
|
|
|
123830
|
-
function calcFilterColumnLeftPosition(leftReference) {
|
|
123831
|
-
const FIX_MARGIN = 60;
|
|
123832
|
-
const FILTER_COLUMN_WIDTH = 330;
|
|
123833
|
-
const screenWidth = window.innerWidth;
|
|
123834
|
-
const maxLeft = screenWidth - (FILTER_COLUMN_WIDTH + FIX_MARGIN);
|
|
123835
|
-
const leftInt = leftReference - FIX_MARGIN;
|
|
123836
|
-
return leftInt > maxLeft ? maxLeft : leftInt;
|
|
123837
|
-
}
|
|
123838
|
-
|
|
123839
123850
|
class EzGridCustomHeader {
|
|
123840
123851
|
init(agParams) {
|
|
123841
123852
|
var _a;
|
|
@@ -123872,8 +123883,7 @@ class EzGridCustomHeader {
|
|
|
123872
123883
|
}
|
|
123873
123884
|
onClickFilter() {
|
|
123874
123885
|
var _a;
|
|
123875
|
-
|
|
123876
|
-
this.params.showColumnFilter(`${calcFilterColumnLeftPosition(iconLeft)}px`, true);
|
|
123886
|
+
this.params.showColumnFilter((_a = this.filterButton) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left);
|
|
123877
123887
|
}
|
|
123878
123888
|
configSortIcon() {
|
|
123879
123889
|
this.sortDownIcon.style.display = this.params.column.isSortDescending() ? 'flex' : 'none';
|
|
@@ -124532,6 +124542,10 @@ class AgGridController {
|
|
|
124532
124542
|
this._gridOptions.api.refreshHeader();
|
|
124533
124543
|
this._dataUnit.loadData(undefined, undefined, undefined, EZ_GRID_LOADING_SOURCE);
|
|
124534
124544
|
}
|
|
124545
|
+
clearFilter() {
|
|
124546
|
+
this._filteredColumns.clear();
|
|
124547
|
+
this._gridOptions.api.refreshHeader();
|
|
124548
|
+
}
|
|
124535
124549
|
showFilterColumn(configs) {
|
|
124536
124550
|
var _a;
|
|
124537
124551
|
(_a = this._filterColumn) === null || _a === void 0 ? void 0 : _a.show(configs);
|
|
@@ -124550,7 +124564,7 @@ class AgGridController {
|
|
|
124550
124564
|
this._idAttribName = '__record__id__';
|
|
124551
124565
|
this._gridConfig = [];
|
|
124552
124566
|
this._filteredColumns = new Map();
|
|
124553
|
-
this._filterColumnleftPosition =
|
|
124567
|
+
this._filterColumnleftPosition = 0;
|
|
124554
124568
|
this._enterprise = enterprise;
|
|
124555
124569
|
}
|
|
124556
124570
|
getGridConfig() {
|
|
@@ -124676,11 +124690,9 @@ class AgGridController {
|
|
|
124676
124690
|
this._gridOptions.api.setHeaderHeight(this.getHeaderRowHeight());
|
|
124677
124691
|
}
|
|
124678
124692
|
}
|
|
124679
|
-
setFilterColumnLeftPosition(
|
|
124680
|
-
if (
|
|
124681
|
-
|
|
124682
|
-
const leftString = ePopup.style.left.replace('px', '');
|
|
124683
|
-
this._filterColumnleftPosition = `${calcFilterColumnLeftPosition(parseInt(leftString))}px`;
|
|
124693
|
+
setFilterColumnLeftPosition({ type, ePopup }) {
|
|
124694
|
+
if (type === 'columnMenu') {
|
|
124695
|
+
this._filterColumnleftPosition = ePopup.getBoundingClientRect().left;
|
|
124684
124696
|
return;
|
|
124685
124697
|
}
|
|
124686
124698
|
}
|
|
@@ -125120,7 +125132,7 @@ class AgGridController {
|
|
|
125120
125132
|
tooltip: tooltip,
|
|
125121
125133
|
isSortable: propSortable,
|
|
125122
125134
|
hasFilter: () => this.hasFilterColumn(source.name),
|
|
125123
|
-
showColumnFilter: (leftPosition
|
|
125135
|
+
showColumnFilter: (leftPosition) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name), fromIcon: true }),
|
|
125124
125136
|
},
|
|
125125
125137
|
valueFormatter: params => {
|
|
125126
125138
|
if (params.value == undefined) {
|
|
@@ -126830,16 +126842,8 @@ const EzMuiltiSelectionList = class extends HTMLElement$1 {
|
|
|
126830
126842
|
}
|
|
126831
126843
|
handleChangeSelectedItem(event) {
|
|
126832
126844
|
const { detail: itemCheckSelected } = event;
|
|
126833
|
-
|
|
126834
|
-
|
|
126835
|
-
return Object.assign(Object.assign({}, item), { check: itemCheckSelected.check });
|
|
126836
|
-
}
|
|
126837
|
-
return item;
|
|
126838
|
-
});
|
|
126839
|
-
this.clearInputs();
|
|
126840
|
-
}
|
|
126841
|
-
clearInputs() {
|
|
126842
|
-
this.filterInput ? (this.filterInput.value = '') : (this.searchInput.value = '');
|
|
126845
|
+
const itemSelected = this.filteredOptions.find(item => item.label === itemCheckSelected.label);
|
|
126846
|
+
itemSelected.check = itemCheckSelected.check;
|
|
126843
126847
|
}
|
|
126844
126848
|
buildViewList(hasDelete) {
|
|
126845
126849
|
return (h(Fragment, null, this.displayOptionToCheckAllItems && (h("ez-check", { ref: (element) => (this.checkInput = element), label: "Selecionar todos", class: "multi-selection__select-all", onEzChange: this.handleChangeSelectAllItems.bind(this) })), h("ez-list", { class: "multi-selection__list", dataSource: this.displayOptions, listMode: "check", hoverFeedback: true, onEzCheckChange: this.handleChangeSelectedItem.bind(this), itemSlotBuilder: hasDelete ? this.buildDeleteIconSlot.bind(this) : null })));
|
|
@@ -126989,6 +126993,9 @@ const EzNumberInput$1 = class extends HTMLElement$1 {
|
|
|
126989
126993
|
this.ezCancelWaitingChange.emit();
|
|
126990
126994
|
}
|
|
126991
126995
|
handleBlur() {
|
|
126996
|
+
if (!this._changePending) {
|
|
126997
|
+
return;
|
|
126998
|
+
}
|
|
126992
126999
|
try {
|
|
126993
127000
|
const parsedNumber = this.getParsedNumber();
|
|
126994
127001
|
if (parsedNumber !== undefined && isNaN(parsedNumber)) {
|
|
@@ -127199,7 +127206,7 @@ const EzPopover$1 = class extends HTMLElement$1 {
|
|
|
127199
127206
|
static get style() { return ezPopoverCss; }
|
|
127200
127207
|
};
|
|
127201
127208
|
|
|
127202
|
-
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;
|
|
127209
|
+
const ezPopupCss = ":host{display:flex;--ez-popup-z-index:var(--elevation--24, 24);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--large, 24px);--ez-popup__header--padding-bottom:var(--space--medium, 12px);--ez-popup__title--font-family:var(--font-pattern, \"Roboto\");--ez-popup__title--font-size:var(--title--extra-large, 24px);--ez-popup__title--color:var(--title--primary, #2b3a54);--ez-popup__title--font-weight:var(--text-weight--large, 600);--ez-popup__btn__close--icon-color:var(--title--primary, #2b3a54);--ez-popup__btn__close--icon:url('data:image/svg+xml;utf8,<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 8.2421753,6.9944578 13.743748,1.4930784 C 13.907781,1.3290628 14,1.1065946 14,0.87462511 14,0.64266712 13.907782,0.42019873 13.743748,0.25617155 13.579712,0.09215597 13.35727,6.48e-8 13.125266,6.48e-8 12.89338,6.48e-8 12.670821,0.09215634 12.506787,0.25617155 L 7.005215,5.7575508 1.5035972,0.25617155 C 1.3395631,0.09215597 1.1170968,6.48e-8 0.88511716,6.48e-8 0.65314917,6.48e-8 0.4306712,0.09215597 0.26663695,0.25617155 0.10260271,0.42019873 0.01045441,0.64266712 0.01045441,0.87462511 c 0,0.23196949 0.0921483,0.45443769 0.25618254,0.61845329 L 5.7682546,6.9944578 0.26663695,12.497027 c -0.0834745,0.08067 -0.15003245,0.1772 -0.19581514,0.283871 C 0.02505077,12.887561 9.831648e-4,13.002399 2.950369e-5,13.118395 -9.2415746e-4,13.234504 0.02125019,13.349689 0.06527245,13.457057 c 0.04401053,0.107479 0.10898307,0.205064 0.1911168,0.287137 0.0821454,0.08208 0.17979645,0.146888 0.28727561,0.190839 0.10747906,0.04395 0.22262954,0.06598 0.33872417,0.06493 0.116095,-10e-4 0.23082547,-0.0253 0.33747687,-0.07112 0.1066637,-0.04593 0.2031133,-0.112615 0.2837313,-0.196086 L 7.005215,8.2313646 12.506787,13.732768 c 0.164034,0.164027 0.386593,0.256125 0.618479,0.256125 0.232004,0 0.454446,-0.09209 0.618482,-0.256125 C 13.907781,13.568741 14,13.346308 14,13.114315 14,12.882323 13.90779,12.659888 13.743748,12.495861 Z\"/></svg>')}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index, 24);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup{display:flex;height:100%;align-items:center;justify-content:center;box-sizing:border-box}.popup__container{width:100%;max-height:90%;height:100%;display:flex;flex-wrap:wrap;overflow:hidden;outline:none;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding)}.popup__container--auto{height:auto}.popup__content{box-sizing:border-box;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%}}";
|
|
127203
127210
|
|
|
127204
127211
|
const EzPopup$1 = class extends HTMLElement$1 {
|
|
127205
127212
|
constructor() {
|
|
@@ -128244,7 +128251,148 @@ const EzSkeleton$1 = class extends HTMLElement$1 {
|
|
|
128244
128251
|
static get style() { return ezSkeletonCss; }
|
|
128245
128252
|
};
|
|
128246
128253
|
|
|
128247
|
-
const
|
|
128254
|
+
const ezSplitButtonCss = ":host{--ez-split-button--min-width:24;--ez-split-button--width:'auto';--ez-split-button__medium--height:32px;--ez-split-button__large--height:42px;--ez-split-button__medium-icon--width:40px;--ez-split-button__large-icon--width:44px;--ez-split-button__inline__icon--gap:6px;--ez-split-button__label--padding-top:0px;--ez-split-button__label--padding-bottom:0px;--ez-split-button__right-button--padding-left:8px;--ez-split-button--color:var(--title--primary, #FFF);--ez-split-button--font-size:var(--text--medium, 14px);--ez-split-button--font-family:var(--font-pattern, Arial);--ez-split-button--font-weight:var(--text-weight--large);--ez-split-button--background-color:var(--background--medium, #008561);--ez-split-button--border-radius:var(--border--radius-large, 12px);--ez-split-button--border:none;--ez-split-button--justify-content:center;--ez-split-button--hover-color:var(--color--primary-600);--ez-split-button--hover--background-color:var(--background--medium, var(--ez-split-button--background-color));--ez-split-button--disabled-color:var(--text--disable);--ez-split-button--disabled--background-color:var(--color--disable-secondary);--ez-split-button--focus--border:var(--border--medium, 2px) var(--color--primary-300);--ez-split-button--focus--box-shadow:none;--ez-split-button--active-color:var(--color--primary-700);--ez-split-button--active--background-color:var(--background--strong)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-split-button--min-width);width:var(--ez-split-button--width);height:var(--ez-split-button__medium--height);font-family:var(--ez-split-button--font-family);font-size:var(--ez-split-button--font-size);font-weight:var(--ez-split-button--font-weight);padding:var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;border-top-left-radius:var(--ez-split-button--border-radius);border-bottom-left-radius:var(--ez-split-button--border-radius);background-color:var(--ez-split-button--background-color);color:var(--ez-split-button--color);fill:var(--ez-split-button--color);border:var(--ez-split-button--border);justify-content:var(--ez-split-button--justify-content)}label{cursor:pointer}button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button:focus,.ez-split-button__right-button:focus{outline:var(--ez-split-button--focus--border);box-shadow:var(--ez-split-button--focus--box-shadow)}.ez-split-button__left-button:hover,.ez-split-button__right-button:hover{outline:none;background-color:var(--ez-split-button--hover--background-color);color:var(--ez-split-button--hover-color);fill:var(--ez-split-button--hover-color);--ez-icon--color:var(--ez-split-button--hover-color)}.ez-split-button__left-button:disabled,.ez-split-button__left-button:disabled label,.ez-split-button__right-button:disabled{background-color:var(--ez-split-button--disabled--background-color);color:var(--ez-split-button--disabled-color);fill:var(--ez-split-button--disabled-color);border:none;--ez-icon--color:var(--ez-split-button--disabled-color);cursor:not-allowed}button.large{height:var(--ez-split-button__large--height)}button.medium{height:var(--ez-split-button__medium--height)}.default label{padding:var(--ez-split-button__label--padding-top) 12px var(--ez-split-button__label--padding-bottom) 20px}.icon-left{gap:var(--ez-split-button__inline__icon--gap)}.icon-left label{padding-right:12px}.icon-left ez-icon{padding-left:20px}.icon-only{padding-left:12px;padding-right:12px}.ez-split-button__right-button{border-top-right-radius:var(--ez-split-button--border-radius);border-bottom-right-radius:var(--ez-split-button--border-radius);border-top-left-radius:0;border-bottom-left-radius:0}.ez-split-button__right-button--medium{min-width:var(--ez-split-button__medium-icon--width)}.ez-split-button__right-button--large{min-width:var(--ez-split-button__large-icon--width)}.ez-split-button__right-button--divider{top:10%;bottom:10%}.ez-split-button__right-button--divider:before{content:\"\";position:absolute;left:0;border-left:1px solid rgba(0, 0, 0, 20%);border-radius:2px;height:75%}.btn-icon--medium{min-width:--ez-split-button__medium-icon--width}.btn-icon--large{min-width:--ez-split-button__large-icon--width}.ez-split-button__right-button-container{position:absolute;left:0;padding-left:var(--ez-split-button__right-button--padding-left)}.label-icon{display:flex;flex-direction:row;align-items:center;color:var(--ez-split-button--color)}.label-icon:active{color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.dropdown{display:flex}.dropdown-content{display:block;position:absolute;background-color:#f1f1f1;min-width:160px;z-index:--ez-elevation--8;border-radius:var(--ez-split-button--border-radius)}.dropdown-content>ez-dropdown{position:relative}";
|
|
128255
|
+
|
|
128256
|
+
const EzSplitButton$1 = class extends HTMLElement$1 {
|
|
128257
|
+
constructor() {
|
|
128258
|
+
super();
|
|
128259
|
+
this.__registerHost();
|
|
128260
|
+
this.__attachShadow();
|
|
128261
|
+
this.buttonClick = createEvent(this, "buttonClick", 7);
|
|
128262
|
+
this.dropdownItemClick = createEvent(this, "dropdownItemClick", 7);
|
|
128263
|
+
this.dropdownSubActionClick = createEvent(this, "dropdownSubActionClick", 7);
|
|
128264
|
+
this.rightDefaultTitle = 'Mais opções';
|
|
128265
|
+
this.show = false;
|
|
128266
|
+
this.enabled = true;
|
|
128267
|
+
this.iconName = undefined;
|
|
128268
|
+
this.image = undefined;
|
|
128269
|
+
this.items = undefined;
|
|
128270
|
+
this.label = undefined;
|
|
128271
|
+
this.leftTitle = undefined;
|
|
128272
|
+
this.rightTitle = 'Mais opções';
|
|
128273
|
+
this.mode = 'default';
|
|
128274
|
+
this.size = 'medium';
|
|
128275
|
+
}
|
|
128276
|
+
/**
|
|
128277
|
+
* Remove o foco de ambos os botões.
|
|
128278
|
+
*/
|
|
128279
|
+
async setBlur() {
|
|
128280
|
+
this.leftButton.blur();
|
|
128281
|
+
this.rightButton.blur();
|
|
128282
|
+
}
|
|
128283
|
+
/**
|
|
128284
|
+
* Aplica o foco no botão principal.
|
|
128285
|
+
*/
|
|
128286
|
+
async setLeftButtonFocus() {
|
|
128287
|
+
this.leftButton.focus();
|
|
128288
|
+
}
|
|
128289
|
+
/**
|
|
128290
|
+
* Aplica o foco no botão do dropdown.
|
|
128291
|
+
*/
|
|
128292
|
+
async setRightButtonFocus() {
|
|
128293
|
+
this.rightButton.focus();
|
|
128294
|
+
}
|
|
128295
|
+
clickListener(evt) {
|
|
128296
|
+
if (!this.enabled) {
|
|
128297
|
+
evt.preventDefault();
|
|
128298
|
+
evt.stopPropagation();
|
|
128299
|
+
evt.stopImmediatePropagation();
|
|
128300
|
+
}
|
|
128301
|
+
}
|
|
128302
|
+
getIconSize(sizeParam = 'medium') {
|
|
128303
|
+
var _a;
|
|
128304
|
+
const sizeList = ['medium', 'large'];
|
|
128305
|
+
const sizeLowerCase = (_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
128306
|
+
return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
|
|
128307
|
+
}
|
|
128308
|
+
closeDropdown() {
|
|
128309
|
+
this.show = false;
|
|
128310
|
+
}
|
|
128311
|
+
toggleDropdown() {
|
|
128312
|
+
this.show = !this.show;
|
|
128313
|
+
}
|
|
128314
|
+
handleButtonClick() {
|
|
128315
|
+
this.buttonClick.emit();
|
|
128316
|
+
}
|
|
128317
|
+
handleDropdownItemClick(evt) {
|
|
128318
|
+
this.dropdownItemClick.emit(evt.detail);
|
|
128319
|
+
evt.stopPropagation();
|
|
128320
|
+
this.closeDropdown();
|
|
128321
|
+
}
|
|
128322
|
+
handleDropdownSubActionClick(evt) {
|
|
128323
|
+
this.dropdownSubActionClick.emit(evt.detail);
|
|
128324
|
+
evt.stopPropagation();
|
|
128325
|
+
this.closeDropdown();
|
|
128326
|
+
}
|
|
128327
|
+
/**
|
|
128328
|
+
* Método responsável em posicionar o dropdown na tela.
|
|
128329
|
+
* Faz com que o dropdown se ajuste automaticamente ao espaco na tela
|
|
128330
|
+
*/
|
|
128331
|
+
positionDropdown() {
|
|
128332
|
+
const { rightButton: _rightButton, dropdownParent: _dropdownParent } = this;
|
|
128333
|
+
const rightButtonRect = _rightButton.getBoundingClientRect();
|
|
128334
|
+
const dropdownParentRect = _dropdownParent.getBoundingClientRect();
|
|
128335
|
+
const spaceBelow = window.innerHeight - rightButtonRect.bottom;
|
|
128336
|
+
const spaceAbove = rightButtonRect.top;
|
|
128337
|
+
const spaceRight = window.innerWidth - rightButtonRect.right;
|
|
128338
|
+
const spaceLeft = rightButtonRect.left;
|
|
128339
|
+
const hasSpaceBelow = spaceBelow < dropdownParentRect.height && spaceAbove > dropdownParentRect.height;
|
|
128340
|
+
const hasSpaceRight = spaceRight < dropdownParentRect.width && spaceLeft > dropdownParentRect.width;
|
|
128341
|
+
let top = `${rightButtonRect.bottom + window.scrollY}px`;
|
|
128342
|
+
let left = `${rightButtonRect.left + window.scrollX}px`;
|
|
128343
|
+
let bottom = 'auto';
|
|
128344
|
+
if (hasSpaceBelow) {
|
|
128345
|
+
bottom = `${window.innerHeight - rightButtonRect.top - window.scrollY}px`;
|
|
128346
|
+
top = 'auto';
|
|
128347
|
+
_dropdownParent.style.maxHeight = `${spaceAbove}px`;
|
|
128348
|
+
}
|
|
128349
|
+
if (hasSpaceRight) {
|
|
128350
|
+
left = `${rightButtonRect.right - dropdownParentRect.width + window.scrollX}px`;
|
|
128351
|
+
}
|
|
128352
|
+
_dropdownParent.style.top = top;
|
|
128353
|
+
_dropdownParent.style.bottom = bottom;
|
|
128354
|
+
_dropdownParent.style.left = left;
|
|
128355
|
+
}
|
|
128356
|
+
setEvents() {
|
|
128357
|
+
window.removeEventListener('scroll', this.positionDropdown.bind(this));
|
|
128358
|
+
window.addEventListener('scroll', this.positionDropdown.bind(this));
|
|
128359
|
+
}
|
|
128360
|
+
componentWillLoad() {
|
|
128361
|
+
this.setEvents();
|
|
128362
|
+
}
|
|
128363
|
+
componentDidLoad() {
|
|
128364
|
+
if (this._element)
|
|
128365
|
+
ElementIDUtils.addIDInfo(this._element);
|
|
128366
|
+
if (this.leftButton) {
|
|
128367
|
+
const dataInfo = { id: 'embedded' };
|
|
128368
|
+
ElementIDUtils.addIDInfo(this.leftButton, 'left-button', dataInfo);
|
|
128369
|
+
}
|
|
128370
|
+
if (this.rightButton) {
|
|
128371
|
+
const dataInfo = { id: 'embedded' };
|
|
128372
|
+
ElementIDUtils.addIDInfo(this.rightButton, 'right-button', dataInfo);
|
|
128373
|
+
}
|
|
128374
|
+
this.positionDropdown();
|
|
128375
|
+
}
|
|
128376
|
+
componentDidUpdate() {
|
|
128377
|
+
this.positionDropdown();
|
|
128378
|
+
}
|
|
128379
|
+
render() {
|
|
128380
|
+
const hasIconButton = this.shouldShowIconOnLeftButton();
|
|
128381
|
+
const hasLabelButton = this.shouldShowLabelOnLeftButton();
|
|
128382
|
+
const iconSize = this.getIconSize();
|
|
128383
|
+
return (h("div", { class: "label-icon" }, h("button", { class: `ez-split-button__left-button ${iconSize} ${this.mode}`, title: this.leftTitle || this.label, type: "button", disabled: !this.enabled, onClick: () => { this.handleButtonClick(); }, ref: el => (this.leftButton = el) }, hasIconButton && h("ez-icon", { href: this.image, iconName: this.iconName, size: iconSize }), hasLabelButton && h("label", { title: this.leftTitle || this.label }, this.label)), h("div", { class: "dropdown" }, h("button", { class: `ez-split-button__right-button ${iconSize} ez-split-button__right-button--${iconSize} ez-split-button__right-button--divider`, title: this.rightTitle || this.rightDefaultTitle, type: "button", disabled: !this.enabled, onClick: () => { this.toggleDropdown(); }, ref: el => (this.rightButton = el) }, h("ez-icon", { class: `ez-split-button__right-button-container ` + (iconSize ? `btn-icon--${iconSize}` : ''), iconName: 'chevron-down', size: iconSize })), h("div", { class: `dropdown-content dropdown-content--${this.size}`, ref: (ref) => (this.dropdownParent = ref) }, this.show && (h("ez-dropdown", { items: this.items, onClick: evt => { evt.stopPropagation(); }, onEzOutsideClick: () => { this.closeDropdown(); }, onEzClick: evt => { this.handleDropdownItemClick(evt); }, onEzSubActionClick: evt => { this.handleDropdownSubActionClick(evt); } }))))));
|
|
128384
|
+
}
|
|
128385
|
+
shouldShowLabelOnLeftButton() {
|
|
128386
|
+
return ['icon-left', 'default'].includes(this.mode);
|
|
128387
|
+
}
|
|
128388
|
+
shouldShowIconOnLeftButton() {
|
|
128389
|
+
return ['icon-left', 'icon-only'].includes(this.mode);
|
|
128390
|
+
}
|
|
128391
|
+
get _element() { return this; }
|
|
128392
|
+
static get style() { return ezSplitButtonCss; }
|
|
128393
|
+
};
|
|
128394
|
+
|
|
128395
|
+
const ezSplitItemCss = ".box_split-item{background-color:var(--background--xlight);width:100%;height:100%;border-radius:var(--border--radius-medium);box-shadow:var(--shadow);flex-direction:column;overflow:hidden;display:flex;padding:var(--space--nano)}.box_split-item>.ez-split-item--content{overflow:auto}.expanded__item{position:absolute;z-index:var(--more-visible);top:0;left:0;width:100%;height:100%}.ez-split-item--header{display:flex;align-items:center;justify-content:space-between}.ez-split-item--header-buttons{display:flex;align-items:center}.ez-split-item--content{display:block;height:100%}";
|
|
128248
128396
|
|
|
128249
128397
|
const SplitItem = class extends HTMLElement$1 {
|
|
128250
128398
|
constructor() {
|
|
@@ -128253,6 +128401,7 @@ const SplitItem = class extends HTMLElement$1 {
|
|
|
128253
128401
|
this.label = undefined;
|
|
128254
128402
|
this.enableExpand = true;
|
|
128255
128403
|
this._expanded = false;
|
|
128404
|
+
this.size = undefined;
|
|
128256
128405
|
}
|
|
128257
128406
|
/**
|
|
128258
128407
|
* Alterna a visibilidade do painel.
|
|
@@ -128261,7 +128410,7 @@ const SplitItem = class extends HTMLElement$1 {
|
|
|
128261
128410
|
this._expanded = !this._expanded;
|
|
128262
128411
|
}
|
|
128263
128412
|
render() {
|
|
128264
|
-
return (h(
|
|
128413
|
+
return (h(Host, { class: `box_split-item ${this._expanded ? 'expanded__item' : ''}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("div", null, this.label && (h("div", { class: "ez-margin--small" }, h("h3", { class: " ez-title ez-title--small" }, this.label)))), h("div", { class: "ez-split-item--header-buttons" }, this.enableExpand && (h("ez-button", { size: "medium", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })), h("slot", { name: "rightButtons" }))), h("div", { class: "ez-split-item--content" }, h("slot", null))));
|
|
128265
128414
|
}
|
|
128266
128415
|
static get style() { return ezSplitItemCss; }
|
|
128267
128416
|
};
|
|
@@ -128943,7 +129092,7 @@ Grid.prototype.destroy = function destroy (immediate) {
|
|
|
128943
129092
|
|
|
128944
129093
|
function index (options) { return new Grid(options); }
|
|
128945
129094
|
|
|
128946
|
-
const ezSplitPanelCss = "
|
|
129095
|
+
const ezSplitPanelCss = ".ez-split-gutter{cursor:grab;background-color:transparent}";
|
|
128947
129096
|
|
|
128948
129097
|
const SplitPanel = class extends HTMLElement$1 {
|
|
128949
129098
|
constructor() {
|
|
@@ -129017,16 +129166,17 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
129017
129166
|
}
|
|
129018
129167
|
getGridTemplate() {
|
|
129019
129168
|
let template = '';
|
|
129020
|
-
this._items.forEach((
|
|
129169
|
+
this._items.forEach((col, index) => {
|
|
129170
|
+
const size = col.size || '1fr';
|
|
129021
129171
|
if (index === this._items.length - 1) {
|
|
129022
|
-
template += `
|
|
129172
|
+
template += ` ${size}`;
|
|
129023
129173
|
return;
|
|
129024
129174
|
}
|
|
129025
129175
|
if (index === 0) {
|
|
129026
|
-
template +=
|
|
129176
|
+
template += `${size} 5px`;
|
|
129027
129177
|
return;
|
|
129028
129178
|
}
|
|
129029
|
-
template += `
|
|
129179
|
+
template += ` ${size} 5px`;
|
|
129030
129180
|
});
|
|
129031
129181
|
return template;
|
|
129032
129182
|
}
|
|
@@ -131085,6 +131235,8 @@ const FilterColumn$1 = class extends HTMLElement$1 {
|
|
|
131085
131235
|
this.TOP_POSITION_NO_TASKBAR = '32';
|
|
131086
131236
|
this.TOP_POSITION_NO_TASKBAR_HEADER_HIDDEN = '20';
|
|
131087
131237
|
this.DEFAULT_HEIGHT = 430;
|
|
131238
|
+
this.FIX_MARGIN = 60;
|
|
131239
|
+
this.FILTER_COLUMN_WIDTH = 330;
|
|
131088
131240
|
this.opened = true;
|
|
131089
131241
|
this.columnName = undefined;
|
|
131090
131242
|
this.columnLabel = undefined;
|
|
@@ -131117,15 +131269,24 @@ const FilterColumn$1 = class extends HTMLElement$1 {
|
|
|
131117
131269
|
await this.ezPopoverElement.show(this.calcTopPosition(), this.calculateLeftPosition(configs));
|
|
131118
131270
|
}
|
|
131119
131271
|
}
|
|
131120
|
-
calculateLeftPosition(
|
|
131121
|
-
|
|
131122
|
-
|
|
131272
|
+
calculateLeftPosition({ leftPosition, fromIcon }) {
|
|
131273
|
+
const leftPositionCalculated = this.calcFilterColumnLeftPosition(leftPosition);
|
|
131274
|
+
if (!fromIcon) {
|
|
131275
|
+
return `${leftPositionCalculated}px`;
|
|
131123
131276
|
}
|
|
131124
131277
|
const difference = this.ezPopoverElement.getBoundingClientRect().left;
|
|
131125
|
-
const
|
|
131126
|
-
const leftResolved = (leftReference + 16) - difference;
|
|
131278
|
+
const leftResolved = (leftPositionCalculated + 16) - difference;
|
|
131127
131279
|
return `${(leftResolved > 0 ? leftResolved : 0)}px`;
|
|
131128
131280
|
}
|
|
131281
|
+
calcFilterColumnLeftPosition(leftReference) {
|
|
131282
|
+
var _a, _b;
|
|
131283
|
+
const gridReference = this.ezPopoverElement.closest("ez-grid");
|
|
131284
|
+
const gridLimit = (_a = gridReference.getBoundingClientRect()) === null || _a === void 0 ? void 0 : _a.right;
|
|
131285
|
+
const popoverDiff = (_b = this.ezPopoverElement.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.left;
|
|
131286
|
+
const maxLeft = gridLimit - (this.FILTER_COLUMN_WIDTH + popoverDiff);
|
|
131287
|
+
const leftInt = leftReference - (this.FIX_MARGIN + popoverDiff);
|
|
131288
|
+
return leftInt > maxLeft ? maxLeft : leftInt;
|
|
131289
|
+
}
|
|
131129
131290
|
buildIsTextSearch() {
|
|
131130
131291
|
var _a, _b;
|
|
131131
131292
|
const userInterface = (_b = (_a = this.fieldDescriptor) === null || _a === void 0 ? void 0 : _a.userInterface) !== null && _b !== void 0 ? _b : UserInterface.SHORTTEXT;
|
|
@@ -131274,7 +131435,8 @@ const EzScroller = /*@__PURE__*/proxyCustomElement(EzScroller$1, [1,"ez-scroller
|
|
|
131274
131435
|
const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressEmptyOption":[4,"suppress-empty-option"],"mode":[513],"canShowError":[516,"can-show-error"],"hideErrorOnFocusOut":[4,"hide-error-on-focus-out"],"listOptionsPosition":[16],"isTextSearch":[4,"is-text-search"],"ignoreLimitCharsToSearch":[4,"ignore-limit-chars-to-search"],"options":[1040],"suppressSearch":[4,"suppress-search"],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_criteria":[32]},[[11,"scroll","scrollListener"]]]);
|
|
131275
131436
|
const EzSidebarButton = /*@__PURE__*/proxyCustomElement(EzSidebarButton$1, [1,"ez-sidebar-button"]);
|
|
131276
131437
|
const EzSkeleton = /*@__PURE__*/proxyCustomElement(EzSkeleton$1, [0,"ez-skeleton",{"count":[2],"variant":[1],"width":[1],"height":[1],"marginBottom":[1,"margin-bottom"],"animation":[1]}]);
|
|
131277
|
-
const
|
|
131438
|
+
const EzSplitButton = /*@__PURE__*/proxyCustomElement(EzSplitButton$1, [1,"ez-split-button",{"enabled":[516],"iconName":[513,"icon-name"],"image":[513],"items":[16],"label":[513],"leftTitle":[513,"left-title"],"rightTitle":[513,"right-title"],"mode":[513],"size":[513],"show":[32]},[[2,"click","clickListener"]]]);
|
|
131439
|
+
const EzSplitItem = /*@__PURE__*/proxyCustomElement(SplitItem, [4,"ez-split-item",{"label":[1],"enableExpand":[516,"enable-expand"],"size":[1],"_expanded":[32]}]);
|
|
131278
131440
|
const EzSplitPanel = /*@__PURE__*/proxyCustomElement(SplitPanel, [0,"ez-split-panel",{"direction":[1],"anchorToExpand":[4,"anchor-to-expand"]}]);
|
|
131279
131441
|
const EzTabselector = /*@__PURE__*/proxyCustomElement(EzTabselector$1, [1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]);
|
|
131280
131442
|
const EzTextArea = /*@__PURE__*/proxyCustomElement(EzTextArea$1, [1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"canShowError":[516,"can-show-error"],"mode":[513],"enableResize":[516,"enable-resize"]}]);
|
|
@@ -131327,6 +131489,7 @@ const defineCustomElements = (opts) => {
|
|
|
131327
131489
|
EzSearch,
|
|
131328
131490
|
EzSidebarButton,
|
|
131329
131491
|
EzSkeleton,
|
|
131492
|
+
EzSplitButton,
|
|
131330
131493
|
EzSplitItem,
|
|
131331
131494
|
EzSplitPanel,
|
|
131332
131495
|
EzTabselector,
|
|
@@ -131348,4 +131511,4 @@ const defineCustomElements = (opts) => {
|
|
|
131348
131511
|
}
|
|
131349
131512
|
};
|
|
131350
131513
|
|
|
131351
|
-
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzDateInput, EzDateTimeInput, EzDialog, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSidebarButton, EzSkeleton, EzSplitItem, EzSplitPanel, EzTabselector, EzTextArea, EzTextEdit, EzTextInput, EzTimeInput, EzToast, EzTree, EzUpload, EzViewStack, FilterColumn, MultiSelectionBoxMessage, defineCustomElements };
|
|
131514
|
+
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzDateInput, EzDateTimeInput, EzDialog, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSidebarButton, EzSkeleton, EzSplitButton, EzSplitItem, EzSplitPanel, EzTabselector, EzTextArea, EzTextEdit, EzTextInput, EzTimeInput, EzToast, EzTree, EzUpload, EzViewStack, FilterColumn, MultiSelectionBoxMessage, defineCustomElements };
|
|
@@ -159,6 +159,9 @@ const EzDateTimeInput = class {
|
|
|
159
159
|
}
|
|
160
160
|
handleBlur() {
|
|
161
161
|
var _a, _b;
|
|
162
|
+
if (!this._changePending) {
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
162
165
|
try {
|
|
163
166
|
const strValue = ((_b = (_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.trim()) || "";
|
|
164
167
|
const newValue = this.getParsedDateTime();
|
|
@@ -118828,6 +118828,14 @@ var AllEnterpriseModules = [
|
|
|
118828
118828
|
ModuleRegistry.registerModules(AllEnterpriseModules);
|
|
118829
118829
|
|
|
118830
118830
|
class DataSource {
|
|
118831
|
+
updateLoadedRecords(action) {
|
|
118832
|
+
const records = action.payload;
|
|
118833
|
+
if ((records === null || records === void 0 ? void 0 : records.length) > 0) {
|
|
118834
|
+
records.forEach(record => {
|
|
118835
|
+
this._controller.changeValues(record, [record.__record__id__]);
|
|
118836
|
+
});
|
|
118837
|
+
}
|
|
118838
|
+
}
|
|
118831
118839
|
isSilentChange(action) {
|
|
118832
118840
|
//TODO: Provisorio p/ não atualizar a grade quando a alteração for apenas de campos transisntes
|
|
118833
118841
|
var _a, _b;
|
|
@@ -118850,6 +118858,9 @@ class DataSource {
|
|
|
118850
118858
|
break;
|
|
118851
118859
|
case Action.LOADING_DATA:
|
|
118852
118860
|
this._waitingForLoad = true;
|
|
118861
|
+
if (EZ_GRID_LOADING_SOURCE !== action.payload.source) {
|
|
118862
|
+
this._controller.clearFilter();
|
|
118863
|
+
}
|
|
118853
118864
|
this._controller.refresh();
|
|
118854
118865
|
break;
|
|
118855
118866
|
case Action.DATA_LOADED:
|
|
@@ -118880,6 +118891,9 @@ class DataSource {
|
|
|
118880
118891
|
case Action.PREVIOUS_SELECTED:
|
|
118881
118892
|
this.updateSelection();
|
|
118882
118893
|
break;
|
|
118894
|
+
case Action.RECORD_LOADED:
|
|
118895
|
+
this.updateLoadedRecords(action);
|
|
118896
|
+
break;
|
|
118883
118897
|
}
|
|
118884
118898
|
};
|
|
118885
118899
|
this._dataUnit = dataUnit;
|
|
@@ -118949,15 +118963,6 @@ class DataSource {
|
|
|
118949
118963
|
}
|
|
118950
118964
|
}
|
|
118951
118965
|
|
|
118952
|
-
function calcFilterColumnLeftPosition(leftReference) {
|
|
118953
|
-
const FIX_MARGIN = 60;
|
|
118954
|
-
const FILTER_COLUMN_WIDTH = 330;
|
|
118955
|
-
const screenWidth = window.innerWidth;
|
|
118956
|
-
const maxLeft = screenWidth - (FILTER_COLUMN_WIDTH + FIX_MARGIN);
|
|
118957
|
-
const leftInt = leftReference - FIX_MARGIN;
|
|
118958
|
-
return leftInt > maxLeft ? maxLeft : leftInt;
|
|
118959
|
-
}
|
|
118960
|
-
|
|
118961
118966
|
class EzGridCustomHeader {
|
|
118962
118967
|
init(agParams) {
|
|
118963
118968
|
var _a;
|
|
@@ -118994,8 +118999,7 @@ class EzGridCustomHeader {
|
|
|
118994
118999
|
}
|
|
118995
119000
|
onClickFilter() {
|
|
118996
119001
|
var _a;
|
|
118997
|
-
|
|
118998
|
-
this.params.showColumnFilter(`${calcFilterColumnLeftPosition(iconLeft)}px`, true);
|
|
119002
|
+
this.params.showColumnFilter((_a = this.filterButton) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left);
|
|
118999
119003
|
}
|
|
119000
119004
|
configSortIcon() {
|
|
119001
119005
|
this.sortDownIcon.style.display = this.params.column.isSortDescending() ? 'flex' : 'none';
|
|
@@ -119654,6 +119658,10 @@ class AgGridController {
|
|
|
119654
119658
|
this._gridOptions.api.refreshHeader();
|
|
119655
119659
|
this._dataUnit.loadData(undefined, undefined, undefined, EZ_GRID_LOADING_SOURCE);
|
|
119656
119660
|
}
|
|
119661
|
+
clearFilter() {
|
|
119662
|
+
this._filteredColumns.clear();
|
|
119663
|
+
this._gridOptions.api.refreshHeader();
|
|
119664
|
+
}
|
|
119657
119665
|
showFilterColumn(configs) {
|
|
119658
119666
|
var _a;
|
|
119659
119667
|
(_a = this._filterColumn) === null || _a === void 0 ? void 0 : _a.show(configs);
|
|
@@ -119672,7 +119680,7 @@ class AgGridController {
|
|
|
119672
119680
|
this._idAttribName = '__record__id__';
|
|
119673
119681
|
this._gridConfig = [];
|
|
119674
119682
|
this._filteredColumns = new Map();
|
|
119675
|
-
this._filterColumnleftPosition =
|
|
119683
|
+
this._filterColumnleftPosition = 0;
|
|
119676
119684
|
this._enterprise = enterprise;
|
|
119677
119685
|
}
|
|
119678
119686
|
getGridConfig() {
|
|
@@ -119798,11 +119806,9 @@ class AgGridController {
|
|
|
119798
119806
|
this._gridOptions.api.setHeaderHeight(this.getHeaderRowHeight());
|
|
119799
119807
|
}
|
|
119800
119808
|
}
|
|
119801
|
-
setFilterColumnLeftPosition(
|
|
119802
|
-
if (
|
|
119803
|
-
|
|
119804
|
-
const leftString = ePopup.style.left.replace('px', '');
|
|
119805
|
-
this._filterColumnleftPosition = `${calcFilterColumnLeftPosition(parseInt(leftString))}px`;
|
|
119809
|
+
setFilterColumnLeftPosition({ type, ePopup }) {
|
|
119810
|
+
if (type === 'columnMenu') {
|
|
119811
|
+
this._filterColumnleftPosition = ePopup.getBoundingClientRect().left;
|
|
119806
119812
|
return;
|
|
119807
119813
|
}
|
|
119808
119814
|
}
|
|
@@ -120242,7 +120248,7 @@ class AgGridController {
|
|
|
120242
120248
|
tooltip: tooltip,
|
|
120243
120249
|
isSortable: propSortable,
|
|
120244
120250
|
hasFilter: () => this.hasFilterColumn(source.name),
|
|
120245
|
-
showColumnFilter: (leftPosition
|
|
120251
|
+
showColumnFilter: (leftPosition) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name), fromIcon: true }),
|
|
120246
120252
|
},
|
|
120247
120253
|
valueFormatter: params => {
|
|
120248
120254
|
if (params.value == undefined) {
|
|
@@ -142,16 +142,8 @@ const EzMuiltiSelectionList = class {
|
|
|
142
142
|
}
|
|
143
143
|
handleChangeSelectedItem(event) {
|
|
144
144
|
const { detail: itemCheckSelected } = event;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
return Object.assign(Object.assign({}, item), { check: itemCheckSelected.check });
|
|
148
|
-
}
|
|
149
|
-
return item;
|
|
150
|
-
});
|
|
151
|
-
this.clearInputs();
|
|
152
|
-
}
|
|
153
|
-
clearInputs() {
|
|
154
|
-
this.filterInput ? (this.filterInput.value = '') : (this.searchInput.value = '');
|
|
145
|
+
const itemSelected = this.filteredOptions.find(item => item.label === itemCheckSelected.label);
|
|
146
|
+
itemSelected.check = itemCheckSelected.check;
|
|
155
147
|
}
|
|
156
148
|
buildViewList(hasDelete) {
|
|
157
149
|
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 })));
|
|
@@ -114,6 +114,9 @@ const EzNumberInput = class {
|
|
|
114
114
|
this.ezCancelWaitingChange.emit();
|
|
115
115
|
}
|
|
116
116
|
handleBlur() {
|
|
117
|
+
if (!this._changePending) {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
117
120
|
try {
|
|
118
121
|
const parsedNumber = this.getParsedNumber();
|
|
119
122
|
if (parsedNumber !== undefined && isNaN(parsedNumber)) {
|