@sankhyalabs/ezui 5.19.2 → 5.20.0-dev.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -5
- package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-alert-list.cjs.entry.js +108 -47
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-badge.cjs.entry.js +1 -1
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_3.cjs.entry.js +182 -0
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +13 -157
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -4
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -4
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-dropdown.cjs.entry.js +10 -4
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +5 -3
- package/dist/cjs/ez-form.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +21 -22
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +2 -2
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -4
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +2 -2
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_3.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +612 -32
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-item.cjs.entry.js +12 -3
- package/dist/cjs/ez-split-panel.cjs.entry.js +12 -10
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-edit.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +1 -1
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +2 -2
- package/dist/cjs/filter-column.cjs.entry.js +17 -6
- package/dist/cjs/{index-1064511f.js → index-a7b0c73d.js} +4 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/ez-alert-list/ez-alert-list.css +15 -1
- package/dist/collection/components/ez-alert-list/ez-alert-list.js +109 -46
- package/dist/collection/components/ez-card-item/ez-card-item.css +35 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +13 -174
- package/dist/collection/components/ez-date-input/ez-date-input.js +0 -3
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +0 -3
- package/dist/collection/components/ez-dropdown/ez-dropdown.js +32 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +4 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +7 -10
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +12 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -3
- package/dist/collection/components/ez-grid/ez-grid.css +1 -0
- package/dist/collection/components/ez-grid/ez-grid.js +2 -2
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +16 -5
- package/dist/collection/components/ez-icon/ez-icon.css +1 -1
- package/dist/collection/components/ez-number-input/ez-number-input.js +0 -3
- package/dist/collection/components/ez-popup/ez-popup.css +0 -1
- package/dist/collection/components/ez-search/ez-search.css +331 -0
- package/dist/collection/components/ez-search/ez-search.js +689 -55
- package/dist/collection/components/ez-split-panel/ez-split-panel.css +7 -7
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +30 -10
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +36 -12
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +57 -2
- package/dist/collection/utils/form/test/DataBinder.test.js +9 -0
- package/dist/custom-elements/index.js +812 -298
- package/dist/esm/ez-actions-button.entry.js +1 -1
- package/dist/esm/ez-alert-list.entry.js +108 -47
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-badge.entry.js +1 -1
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-card-item_3.entry.js +176 -0
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +14 -158
- package/dist/esm/ez-date-input.entry.js +1 -4
- package/dist/esm/ez-date-time-input.entry.js +1 -4
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-dropdown.entry.js +10 -4
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +5 -3
- package/dist/esm/ez-form.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +21 -22
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +2 -2
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +1 -1
- package/dist/esm/ez-modal.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +1 -4
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +2 -2
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_3.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +613 -33
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-split-item.entry.js +12 -3
- package/dist/esm/ez-split-panel.entry.js +12 -10
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +1 -1
- package/dist/esm/ez-text-edit.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +1 -1
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +17 -6
- package/dist/esm/{index-296b8458.js → index-baa5e267.js} +4 -6
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-99692afa.entry.js → p-02c8831a.entry.js} +1 -1
- package/dist/ezui/{p-5cef0264.entry.js → p-0306dff7.entry.js} +1 -1
- package/dist/ezui/{p-871c1a07.entry.js → p-0447d17c.entry.js} +1 -1
- package/dist/ezui/p-072e6347.entry.js +1 -0
- package/dist/ezui/p-133fae4a.entry.js +1 -0
- package/dist/ezui/p-13dbad96.entry.js +1 -0
- package/dist/ezui/{p-f4208819.entry.js → p-17be134a.entry.js} +1 -1
- package/dist/ezui/{p-cd19a6f8.entry.js → p-1e7a8633.entry.js} +1 -1
- package/dist/ezui/{p-60ba28ea.entry.js → p-1f50fa05.entry.js} +1 -1
- package/dist/ezui/{p-245a44ed.entry.js → p-20ec22c0.entry.js} +1 -1
- package/dist/ezui/{p-e318d280.js → p-23a36bb6.js} +1 -1
- package/dist/ezui/p-24d3fede.entry.js +1 -0
- package/dist/ezui/{p-8252d9b5.entry.js → p-2a1a0e04.entry.js} +1 -1
- package/dist/ezui/{p-d20ed286.entry.js → p-300bf244.entry.js} +1 -1
- package/dist/ezui/{p-22208198.entry.js → p-40f72de4.entry.js} +1 -1
- package/dist/ezui/p-428a05fe.entry.js +1 -0
- package/dist/ezui/{p-9b347f04.entry.js → p-44caad9a.entry.js} +1 -1
- package/dist/ezui/{p-7319c253.entry.js → p-49456b34.entry.js} +1 -1
- package/dist/ezui/{p-ccb4ccd9.entry.js → p-555c9018.entry.js} +1 -1
- package/dist/ezui/p-596634e9.entry.js +1 -0
- package/dist/ezui/{p-52dd8b4c.entry.js → p-5bd5e68f.entry.js} +1 -1
- package/dist/ezui/{p-a01068e1.entry.js → p-5d692ed1.entry.js} +1 -1
- package/dist/ezui/{p-95426f93.entry.js → p-5d86cca9.entry.js} +1 -1
- package/dist/ezui/{p-62304715.entry.js → p-5e1d036e.entry.js} +1 -1
- package/dist/ezui/{p-7525e604.entry.js → p-5ed81457.entry.js} +1 -1
- package/dist/ezui/p-60848ef6.entry.js +1 -0
- package/dist/ezui/{p-c49dbf23.entry.js → p-650e4b6d.entry.js} +1 -1
- package/dist/ezui/{p-f55d75e7.entry.js → p-6e429cff.entry.js} +1 -1
- package/dist/ezui/{p-0b902469.entry.js → p-77a4bd35.entry.js} +1 -1
- package/dist/ezui/{p-5d6f2550.entry.js → p-85c8baae.entry.js} +1 -1
- package/dist/ezui/{p-fa571a4e.entry.js → p-8becebf8.entry.js} +1 -1
- package/dist/ezui/{p-d3b5228e.entry.js → p-8defa6d3.entry.js} +1 -1
- package/dist/ezui/{p-391de0e4.entry.js → p-9050d2cd.entry.js} +1 -1
- package/dist/ezui/p-940ed30b.entry.js +1 -0
- package/dist/ezui/{p-028f264f.entry.js → p-9cad9b6e.entry.js} +1 -1
- package/dist/ezui/{p-b11f035c.entry.js → p-9f5fa3f9.entry.js} +1 -1
- package/dist/ezui/{p-d81917fd.entry.js → p-a08b309b.entry.js} +1 -1
- package/dist/ezui/{p-2da09f70.entry.js → p-a80b1287.entry.js} +1 -1
- package/dist/ezui/{p-4b988ee7.entry.js → p-ab629244.entry.js} +2 -2
- package/dist/ezui/{p-32b4163f.entry.js → p-b041333c.entry.js} +1 -1
- package/dist/ezui/p-baf80b13.entry.js +1 -0
- package/dist/ezui/p-bc2f844e.entry.js +1 -0
- package/dist/ezui/{p-12526044.entry.js → p-c0f1715f.entry.js} +1 -1
- package/dist/ezui/{p-83885b21.entry.js → p-cc2dc4f4.entry.js} +1 -1
- package/dist/ezui/p-cd0499a2.entry.js +1 -0
- package/dist/ezui/p-e52cbcc7.entry.js +1 -0
- package/dist/ezui/{p-3e7cc8a4.entry.js → p-eb36f072.entry.js} +1 -1
- package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +33 -4
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +0 -15
- package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +5 -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-search/ez-search.d.ts +100 -10
- package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +23 -0
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +17 -0
- package/dist/types/components.d.ts +51 -14
- package/dist/types/utils/form/test/DataBinder.test.d.ts +1 -0
- package/dist/types/utils/interfaces/AbstractFieldMetadata.d.ts +2 -1
- package/dist/types/utils/interfaces/IAction.d.ts +1 -1
- package/package.json +12 -5
- package/dist/cjs/ez-card-item.cjs.entry.js +0 -52
- package/dist/cjs/ez-filter-input_2.cjs.entry.js +0 -137
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridUtils.js +0 -8
- package/dist/esm/ez-card-item.entry.js +0 -48
- package/dist/esm/ez-filter-input_2.entry.js +0 -132
- package/dist/ezui/p-0843df02.entry.js +0 -1
- package/dist/ezui/p-47afb974.entry.js +0 -1
- package/dist/ezui/p-59bcb27c.entry.js +0 -1
- package/dist/ezui/p-74049254.entry.js +0 -1
- package/dist/ezui/p-76d16a24.entry.js +0 -1
- package/dist/ezui/p-7fd54841.entry.js +0 -1
- package/dist/ezui/p-87e85160.entry.js +0 -1
- package/dist/ezui/p-a42fe2ce.entry.js +0 -1
- package/dist/ezui/p-af285e68.entry.js +0 -1
- package/dist/ezui/p-b6867f19.entry.js +0 -1
- package/dist/ezui/p-d51aa09b.entry.js +0 -1
- package/dist/ezui/p-e8f88361.entry.js +0 -1
- package/dist/ezui/p-f8653522.entry.js +0 -1
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridUtils.d.ts +0 -1
|
@@ -3,9 +3,11 @@ import { ObjectUtils } from "@sankhyalabs/core";
|
|
|
3
3
|
export const buildFile = ({ name, label, readOnly, contextName, props }) => {
|
|
4
4
|
const uploadProps = ObjectUtils.removeEmptyValues({
|
|
5
5
|
subTitle: props.subTitle,
|
|
6
|
-
requestHeaders: props.STORAGESTRATEGY
|
|
6
|
+
requestHeaders: Object.assign(Object.assign({}, (props.STORAGESTRATEGY && {
|
|
7
7
|
STORAGESTRATEGY: props.STORAGESTRATEGY
|
|
8
|
-
}
|
|
8
|
+
})), (props.INTERNAL_FILENAME && {
|
|
9
|
+
INTERNAL_FILENAME: props.INTERNAL_FILENAME
|
|
10
|
+
})),
|
|
9
11
|
});
|
|
10
12
|
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" }, h("ez-upload", Object.assign({ enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name }, uploadProps))));
|
|
11
13
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApplicationContext, DataType, MaskFormatter, NumberUtils, SortMode, StringUtils, UserInterface } from '@sankhyalabs/core';
|
|
1
|
+
import { ApplicationContext, DataType, MaskFormatter, NumberUtils, SortMode, StringUtils, UserInterface, } from '@sankhyalabs/core';
|
|
2
2
|
import { Grid, } from 'ag-grid-community';
|
|
3
3
|
import { Grid as EnterpriseGrid, LicenseManager } from 'ag-grid-enterprise';
|
|
4
4
|
import DataSource from './DataSource';
|
|
@@ -6,8 +6,7 @@ import { EzGridCustomHeader } from './components/EzGridCustomHeader';
|
|
|
6
6
|
import { CellRendererStatus } from './components/cellRendererStatus';
|
|
7
7
|
import SelectionHeader from './components/selectionHeader';
|
|
8
8
|
import gridTerms from './i18n/pt-BR.js';
|
|
9
|
-
import {
|
|
10
|
-
import { calcFilterColumnLeftPosition } from './AgGridUtils';
|
|
9
|
+
import { DISTINCT_FILTER_NAME_PREFIX, EZ_GRID_LOADING_SOURCE } from '../../../../utils/constants';
|
|
11
10
|
import GridEditionManager from './GridEditionManager';
|
|
12
11
|
export default class AgGridController {
|
|
13
12
|
configFilterColumn(filterColumn) {
|
|
@@ -38,7 +37,7 @@ export default class AgGridController {
|
|
|
38
37
|
this._idAttribName = '__record__id__';
|
|
39
38
|
this._gridConfig = [];
|
|
40
39
|
this._filteredColumns = new Map();
|
|
41
|
-
this._filterColumnleftPosition =
|
|
40
|
+
this._filterColumnleftPosition = 0;
|
|
42
41
|
this._enterprise = enterprise;
|
|
43
42
|
}
|
|
44
43
|
getGridConfig() {
|
|
@@ -164,11 +163,9 @@ export default class AgGridController {
|
|
|
164
163
|
this._gridOptions.api.setHeaderHeight(this.getHeaderRowHeight());
|
|
165
164
|
}
|
|
166
165
|
}
|
|
167
|
-
setFilterColumnLeftPosition(
|
|
168
|
-
if (
|
|
169
|
-
|
|
170
|
-
const leftString = ePopup.style.left.replace('px', '');
|
|
171
|
-
this._filterColumnleftPosition = `${calcFilterColumnLeftPosition(parseInt(leftString))}px`;
|
|
166
|
+
setFilterColumnLeftPosition({ type, ePopup }) {
|
|
167
|
+
if (type === 'columnMenu') {
|
|
168
|
+
this._filterColumnleftPosition = ePopup.getBoundingClientRect().left;
|
|
172
169
|
return;
|
|
173
170
|
}
|
|
174
171
|
}
|
|
@@ -608,7 +605,7 @@ export default class AgGridController {
|
|
|
608
605
|
tooltip: tooltip,
|
|
609
606
|
isSortable: propSortable,
|
|
610
607
|
hasFilter: () => this.hasFilterColumn(source.name),
|
|
611
|
-
showColumnFilter: (leftPosition
|
|
608
|
+
showColumnFilter: (leftPosition) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name), fromIcon: true }),
|
|
612
609
|
},
|
|
613
610
|
valueFormatter: params => {
|
|
614
611
|
if (params.value == undefined) {
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import { Action, ObjectUtils } from
|
|
1
|
+
import { Action, ObjectUtils } from '@sankhyalabs/core';
|
|
2
2
|
import { EZ_GRID_LOADING_SOURCE } from "../../../../utils/constants";
|
|
3
3
|
export default class DataSource {
|
|
4
|
+
updateLoadedRecords(action) {
|
|
5
|
+
const records = action.payload;
|
|
6
|
+
if ((records === null || records === void 0 ? void 0 : records.length) > 0) {
|
|
7
|
+
records.forEach(record => {
|
|
8
|
+
this._controller.changeValues(record, [record.__record__id__]);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
}
|
|
4
12
|
isSilentChange(action) {
|
|
5
13
|
//TODO: Provisorio p/ não atualizar a grade quando a alteração for apenas de campos transisntes
|
|
6
14
|
var _a, _b;
|
|
@@ -53,6 +61,9 @@ export default class DataSource {
|
|
|
53
61
|
case Action.PREVIOUS_SELECTED:
|
|
54
62
|
this.updateSelection();
|
|
55
63
|
break;
|
|
64
|
+
case Action.RECORD_LOADED:
|
|
65
|
+
this.updateLoadedRecords(action);
|
|
66
|
+
break;
|
|
56
67
|
}
|
|
57
68
|
};
|
|
58
69
|
this._dataUnit = dataUnit;
|
package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { calcFilterColumnLeftPosition } from '../AgGridUtils';
|
|
2
1
|
export class EzGridCustomHeader {
|
|
3
2
|
init(agParams) {
|
|
4
3
|
var _a;
|
|
@@ -35,8 +34,7 @@ export class EzGridCustomHeader {
|
|
|
35
34
|
}
|
|
36
35
|
onClickFilter() {
|
|
37
36
|
var _a;
|
|
38
|
-
|
|
39
|
-
this.params.showColumnFilter(`${calcFilterColumnLeftPosition(iconLeft)}px`, true);
|
|
37
|
+
this.params.showColumnFilter((_a = this.filterButton) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left);
|
|
40
38
|
}
|
|
41
39
|
configSortIcon() {
|
|
42
40
|
this.sortDownIcon.style.display = this.params.column.isSortDescending() ? 'flex' : 'none';
|
|
@@ -7,9 +7,9 @@ import { ApplicationUtils } from '../../utils';
|
|
|
7
7
|
import InMemoryFilterColumnDataSource from './utils/InMemoryFilterColumnDataSource';
|
|
8
8
|
const windowInstace = window;
|
|
9
9
|
const matches = (text, filter) => {
|
|
10
|
-
const normalizedText = StringUtils.replaceAccentuatedCharsLower(text.toLocaleLowerCase());
|
|
10
|
+
const normalizedText = StringUtils.replaceAccentuatedCharsLower(text === null || text === void 0 ? void 0 : text.toLocaleLowerCase());
|
|
11
11
|
const normalizedFilter = StringUtils.replaceAccentuatedCharsLower(filter.toLocaleLowerCase());
|
|
12
|
-
return normalizedText.includes(normalizedFilter);
|
|
12
|
+
return normalizedText === null || normalizedText === void 0 ? void 0 : normalizedText.includes(normalizedFilter);
|
|
13
13
|
};
|
|
14
14
|
export class EzGrid {
|
|
15
15
|
constructor() {
|
|
@@ -13,6 +13,8 @@ export class FilterColumn {
|
|
|
13
13
|
this.TOP_POSITION_NO_TASKBAR = '32';
|
|
14
14
|
this.TOP_POSITION_NO_TASKBAR_HEADER_HIDDEN = '20';
|
|
15
15
|
this.DEFAULT_HEIGHT = 430;
|
|
16
|
+
this.FIX_MARGIN = 60;
|
|
17
|
+
this.FILTER_COLUMN_WIDTH = 330;
|
|
16
18
|
this.opened = true;
|
|
17
19
|
this.columnName = undefined;
|
|
18
20
|
this.columnLabel = undefined;
|
|
@@ -45,15 +47,24 @@ export class FilterColumn {
|
|
|
45
47
|
await this.ezPopoverElement.show(this.calcTopPosition(), this.calculateLeftPosition(configs));
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
|
-
calculateLeftPosition(
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
calculateLeftPosition({ leftPosition, fromIcon }) {
|
|
51
|
+
const leftPositionCalculated = this.calcFilterColumnLeftPosition(leftPosition);
|
|
52
|
+
if (!fromIcon) {
|
|
53
|
+
return `${leftPositionCalculated}px`;
|
|
51
54
|
}
|
|
52
55
|
const difference = this.ezPopoverElement.getBoundingClientRect().left;
|
|
53
|
-
const
|
|
54
|
-
const leftResolved = (leftReference + 16) - difference;
|
|
56
|
+
const leftResolved = (leftPositionCalculated + 16) - difference;
|
|
55
57
|
return `${(leftResolved > 0 ? leftResolved : 0)}px`;
|
|
56
58
|
}
|
|
59
|
+
calcFilterColumnLeftPosition(leftReference) {
|
|
60
|
+
var _a, _b;
|
|
61
|
+
const gridReference = this.ezPopoverElement.closest("ez-grid");
|
|
62
|
+
const gridLimit = (_a = gridReference.getBoundingClientRect()) === null || _a === void 0 ? void 0 : _a.right;
|
|
63
|
+
const popoverDiff = (_b = this.ezPopoverElement.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.left;
|
|
64
|
+
const maxLeft = gridLimit - (this.FILTER_COLUMN_WIDTH + popoverDiff);
|
|
65
|
+
const leftInt = leftReference - (this.FIX_MARGIN + popoverDiff);
|
|
66
|
+
return leftInt > maxLeft ? maxLeft : leftInt;
|
|
67
|
+
}
|
|
57
68
|
buildIsTextSearch() {
|
|
58
69
|
var _a, _b;
|
|
59
70
|
const userInterface = (_b = (_a = this.fieldDescriptor) === null || _a === void 0 ? void 0 : _a.userInterface) !== null && _b !== void 0 ? _b : UserInterface.SHORTTEXT;
|
|
@@ -64,7 +64,7 @@ svg {
|
|
|
64
64
|
.ez-icon-alert-mail:before { content: "\ea08"; }
|
|
65
65
|
.ez-icon-alert-popup:before { content: "\ea09"; }
|
|
66
66
|
.ez-icon-anexo:before { content: "\ea0a"; }
|
|
67
|
-
.ez-icon-
|
|
67
|
+
.ez-icon-antecipacao:before { content: "\ea0b"; }
|
|
68
68
|
.ez-icon-apps:before { content: "\ea0c"; }
|
|
69
69
|
.ez-icon-arrow-forward:before { content: "\ea0d"; }
|
|
70
70
|
.ez-icon-arrow-upward:before { content: "\ea0e"; }
|
|
@@ -107,9 +107,6 @@ export class EzNumberInput {
|
|
|
107
107
|
this.ezCancelWaitingChange.emit();
|
|
108
108
|
}
|
|
109
109
|
handleBlur() {
|
|
110
|
-
if (!this._changePending) {
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
110
|
try {
|
|
114
111
|
const parsedNumber = this.getParsedNumber();
|
|
115
112
|
if (parsedNumber !== undefined && isNaN(parsedNumber)) {
|
|
@@ -1,3 +1,334 @@
|
|
|
1
1
|
:host {
|
|
2
|
+
/* dimensions */
|
|
3
|
+
/*@doc Define altura do input.*/
|
|
4
|
+
--ez-search--height: 42px;
|
|
5
|
+
/*@doc Define largura do input.*/
|
|
6
|
+
--ez-search--width: 100%;
|
|
7
|
+
/*@doc Define largura do slot do ícone do input.*/
|
|
8
|
+
--ez-search__icon--width: 48px;
|
|
9
|
+
|
|
10
|
+
/* general */
|
|
11
|
+
/*@doc Define o raio da borda do input.*/
|
|
12
|
+
--ez-search--border-radius: var(--border--radius-medium, 12px);
|
|
13
|
+
/*@doc Define o raio da borda do input quando pequeno.*/
|
|
14
|
+
--ez-search--border-radius-small: var(--border--radius-small, 6px);
|
|
15
|
+
/*@doc Define o tamanho da fonte dentro do input.*/
|
|
16
|
+
--ez-search--font-size: var(--text--medium, 14px);
|
|
17
|
+
/*@doc Define a família da fonte dentro do input.*/
|
|
18
|
+
--ez-search--font-family: var(--font-pattern, Arial);
|
|
19
|
+
/*@doc Define o peso da fonte dentro do input quando pesada.*/
|
|
20
|
+
--ez-search--font-weight--large: var(--text-weight--large, 500);
|
|
21
|
+
/*@doc Define o peso da fonte dentro do input quando média.*/
|
|
22
|
+
--ez-search--font-weight--medium: var(--text-weight--medium, 400);
|
|
23
|
+
/*@doc Define a cor de fundo da lista de opções.*/
|
|
24
|
+
--ez-search--background-color--xlight: var(--background--xlight, #fff);
|
|
25
|
+
/*@doc Define a cor de fundo dos itens da lista de opções.*/
|
|
26
|
+
--ez-search--background-medium: var(--background--medium, #f0f3f7);
|
|
27
|
+
/*@doc Define a altura da linha do texto dentro do input.*/
|
|
28
|
+
--ez-search--line-height: calc(var(--text--medium, 14px) + 4px);
|
|
29
|
+
|
|
30
|
+
/* input */
|
|
31
|
+
/*@doc Define a cor de fundo do input.*/
|
|
32
|
+
--ez-search__input--background-color: var(--background--medium, #e0e0e0);
|
|
33
|
+
/*@doc Define o estilo da borda do input.*/
|
|
34
|
+
--ez-search__input--border: var(--border--medium, 2px solid);
|
|
35
|
+
/*@doc Define a cor da borda do input.*/
|
|
36
|
+
--ez-search__input--border-color: var(--ez-search__input--background-color);
|
|
37
|
+
/*no modo normal usamos a borda com a mesma cor do bg*/
|
|
38
|
+
/*@doc Define a cor da borda do input quando focado.*/
|
|
39
|
+
--ez-search__input--focus--border-color: var(--color--primary, #008561);
|
|
40
|
+
/*@doc Define a cor de fundo do input quando desabilitado.*/
|
|
41
|
+
--ez-search__input--disabled--background-color: var(--color--disable-secondary, #F2F5F8);
|
|
42
|
+
/*@doc Define a cor do texto dentro do input quando desabilitado.*/
|
|
43
|
+
--ez-search__input--disabled--color: var(--text--disable, #AFB6C0);
|
|
44
|
+
/*@doc Define a cor da borda do input quando com erro.*/
|
|
45
|
+
--ez-search__input--error--border-color: #CC2936;
|
|
46
|
+
|
|
47
|
+
/* buttons */
|
|
48
|
+
/*@doc Define a cor do botão de pesquisa do componente.*/
|
|
49
|
+
--ez-search__btn--color: var(--title--primary, #2B3A54);
|
|
50
|
+
/*@doc Define a cor do botão de pesquisa do componente quando desabilitado.*/
|
|
51
|
+
--ez-search__btn-disabled--color: var(--text--disable, #AFB6C0);
|
|
52
|
+
/*@doc Define a cor do botão de pesquisa do componente quando o mouse está sobre ele.*/
|
|
53
|
+
--ez-search__btn-hover--color: var(--color--primary, #4e4e4e);
|
|
54
|
+
|
|
55
|
+
/* label */
|
|
56
|
+
/*@doc Define a cor do label.*/
|
|
57
|
+
--ez-search__label--color: var(--title--primary, #2B3A54);
|
|
58
|
+
|
|
59
|
+
/* list */
|
|
60
|
+
/*@doc Define a cor do texto da lista de opções.*/
|
|
61
|
+
--ez-search__list-title--primary: var(--title--primary, #2B3A54);
|
|
62
|
+
/*@doc Define a cor do texto do value da lista de opções.*/
|
|
63
|
+
--ez-search__list-text--primary: var(--text--primary, #626e82);
|
|
64
|
+
/*@doc Define a altura do box da lista de opções.*/
|
|
65
|
+
--ez-search__list-height: calc(var(--ez-search--font-size) + var(--ez-search--space--medium) + 4px);
|
|
66
|
+
/*@doc Define a largura mínima da lista de opções.*/
|
|
67
|
+
--ez-search__list-min-width: 64px;
|
|
68
|
+
|
|
69
|
+
/* espaçamento */
|
|
70
|
+
/*@doc Define um espaçamento mediano entre elementos do componente.*/
|
|
71
|
+
--ez-search--space--medium: var(--space--medium, 12px);
|
|
72
|
+
/*@doc Define um espaçamento pequeno entre elementos do componente.*/
|
|
73
|
+
--ez-search--space--small: var(--space--small, 6px);
|
|
74
|
+
|
|
75
|
+
/* scrollbar */
|
|
76
|
+
/*@doc Define a cor da barra de rolagem do componente.*/
|
|
77
|
+
--ez-search__scrollbar--color-default: var(--scrollbar--default, #626e82);
|
|
78
|
+
/*@doc Define a cor de fundo da barra de rolagem do componente.*/
|
|
79
|
+
--ez-search__scrollbar--color-background: var(--scrollbar--background, #E5EAF0);
|
|
80
|
+
/*@doc Define a cor do hover na barra de rolagem do componente.*/
|
|
81
|
+
--ez-search__scrollbar--color-hover: var(--scrollbar--hover, #2B3A54);
|
|
82
|
+
/*@doc Define a cor do active na barra de rolagem do componente.*/
|
|
83
|
+
--ez-search__scrollbar--color-clicked: var(--scrollbar--clicked, #a2abb9);
|
|
84
|
+
/*@doc Define o raio da borda da barra de rolagem do componente.*/
|
|
85
|
+
--ez-search__scrollbar--border-radius: var(--border--radius-small, 6px);
|
|
86
|
+
/*@doc Define a largura da barra de rolagem do componente.*/
|
|
87
|
+
--ez-search__scrollbar--width: var(--space--medium, 12px);
|
|
88
|
+
|
|
89
|
+
/***************
|
|
90
|
+
host style
|
|
91
|
+
***************/
|
|
92
|
+
/*private*/
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-wrap: wrap;
|
|
95
|
+
position: relative;
|
|
96
|
+
|
|
97
|
+
/*public*/
|
|
98
|
+
width: var(--ez-search--width);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
ez-icon {
|
|
102
|
+
--ez-icon--color: inherit;
|
|
103
|
+
|
|
104
|
+
/*public*/
|
|
105
|
+
font-weight: var(--text-weight--large, 600);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.suppressed-search-input{
|
|
109
|
+
/*public*/
|
|
110
|
+
--ez-text-input__input--border-color: var(--color--strokes, #dce0e8);
|
|
111
|
+
--ez-text-input__input--disabled--background-color: var(--background--xlight, #fff);
|
|
112
|
+
--ez-text-input__input--disabled--color: var(--title--primary, #2B3A54);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.list-container {
|
|
116
|
+
/*public*/
|
|
117
|
+
min-width: var(--ez-search__list-min-width);
|
|
118
|
+
overflow: auto;
|
|
119
|
+
|
|
120
|
+
/*private*/
|
|
121
|
+
position: relative;
|
|
2
122
|
width: 100%;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.list-wrapper {
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-direction: column;
|
|
128
|
+
box-sizing: border-box;
|
|
129
|
+
width: 0;
|
|
130
|
+
|
|
131
|
+
/*public*/
|
|
132
|
+
z-index: var(--more-visible, 2);
|
|
133
|
+
max-height: 350px;
|
|
134
|
+
min-width: 150px;
|
|
135
|
+
background-color: var(--ez-search--background-color--xlight);
|
|
136
|
+
border-radius: var(--ez-search--border-radius);
|
|
137
|
+
box-shadow: var(--shadow, 0px 0px 16px 0px #000);
|
|
138
|
+
padding: var(--ez-search--space--small);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.list-options {
|
|
142
|
+
box-sizing: border-box;
|
|
143
|
+
width: 100%;
|
|
144
|
+
height: 100%;
|
|
145
|
+
padding: 0;
|
|
146
|
+
display: flex;
|
|
147
|
+
flex-direction: column;
|
|
148
|
+
scroll-behavior: smooth;
|
|
149
|
+
overflow: auto;
|
|
150
|
+
scrollbar-width: thin;
|
|
151
|
+
gap: 3px;
|
|
152
|
+
|
|
153
|
+
/*public*/
|
|
154
|
+
scrollbar-color: var(--ez-search__scrollbar--color-clicked) var(--ez-search__scrollbar--color-background);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.list-options::-webkit-scrollbar {
|
|
158
|
+
/*public*/
|
|
159
|
+
background-color: var(--ez-search__scrollbar--color-background);
|
|
160
|
+
width: var(--ez-search__scrollbar--width);
|
|
161
|
+
max-width: var(--ez-search__scrollbar--width);
|
|
162
|
+
min-width: var(--ez-search__scrollbar--width);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.list-options::-webkit-scrollbar-track {
|
|
166
|
+
/*public*/
|
|
167
|
+
background-color: var(--ez-search__scrollbar--color-background);
|
|
168
|
+
border-radius: var(--ez-search__scrollbar--border-radius);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.list-options::-webkit-scrollbar-thumb {
|
|
172
|
+
/*public*/
|
|
173
|
+
background-color: var(--ez-search__scrollbar--color-default);
|
|
174
|
+
border-radius: var(--ez-search__scrollbar--border-radius);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.list-options::-webkit-scrollbar-thumb:vertical:hover,
|
|
178
|
+
.list-options::-webkit-scrollbar-thumb:horizontal:hover {
|
|
179
|
+
/*public*/
|
|
180
|
+
background-color: var(--ez-search__scrollbar--color-hover);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.list-options::-webkit-scrollbar-thumb:vertical:active,
|
|
184
|
+
.list-options::-webkit-scrollbar-thumb:horizontal:active {
|
|
185
|
+
/*public*/
|
|
186
|
+
background-color: var(--ez-search__scrollbar--color-clicked);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.item {
|
|
190
|
+
display: flex;
|
|
191
|
+
align-items: center;
|
|
192
|
+
width: 100%;
|
|
193
|
+
box-sizing: border-box;
|
|
194
|
+
list-style-type: none;
|
|
195
|
+
cursor: pointer;
|
|
196
|
+
|
|
197
|
+
/*public*/
|
|
198
|
+
border-radius: var(--ez-search--border-radius-small);
|
|
199
|
+
padding: var(--ez-search--space--small);
|
|
200
|
+
gap: var(--space--small, 6px);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.item__value,
|
|
204
|
+
.item__label {
|
|
205
|
+
flex-basis: auto;
|
|
206
|
+
white-space: nowrap;
|
|
207
|
+
overflow: hidden;
|
|
208
|
+
text-overflow: ellipsis;
|
|
209
|
+
|
|
210
|
+
/*public*/
|
|
211
|
+
color: var(--ez-search__list-title--primary);
|
|
212
|
+
font-family: var(--ez-search--font-family);
|
|
213
|
+
font-size: var(--ez-search--font-size);
|
|
214
|
+
line-height: var(--ez-search--line-height);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.item__label {
|
|
218
|
+
/*public*/
|
|
219
|
+
font-weight: var(--ez-search--font-weight--medium);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.item__label--bold {
|
|
223
|
+
/*public*/
|
|
224
|
+
font-weight: var(--ez-search--font-weight--large);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.item__value {
|
|
228
|
+
text-align: center;
|
|
229
|
+
|
|
230
|
+
/*public*/
|
|
231
|
+
color: var(--ez-search__list-text--primary);
|
|
232
|
+
font-weight: var(--ez-search--font-weight--large);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.item__value--hidden {
|
|
236
|
+
visibility: hidden;
|
|
237
|
+
position: absolute;
|
|
238
|
+
white-space: nowrap;
|
|
239
|
+
z-index: -1;
|
|
240
|
+
top: 0;
|
|
241
|
+
left: 0;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.item__label {
|
|
245
|
+
text-align: left;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.message {
|
|
249
|
+
text-align: center;
|
|
250
|
+
display: flex;
|
|
251
|
+
justify-content: center;
|
|
252
|
+
align-items: center;
|
|
253
|
+
list-style-type: none;
|
|
254
|
+
|
|
255
|
+
/*public*/
|
|
256
|
+
min-height: var(--ez-search__list-height);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.message__no-result {
|
|
260
|
+
/*public*/
|
|
261
|
+
color: var(--ez-search__list-title--primary);
|
|
262
|
+
font-family: var(--ez-search--font-family);
|
|
263
|
+
font-size: var(--ez-search--font-size);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.message__loading {
|
|
267
|
+
border-radius: 50%;
|
|
268
|
+
width: 14px;
|
|
269
|
+
height: 14px;
|
|
270
|
+
-webkit-animation: spin 1s linear infinite;
|
|
271
|
+
animation: spin 1s linear infinite;
|
|
272
|
+
|
|
273
|
+
/*public*/
|
|
274
|
+
border: 3px solid var(--ez-search__list-title--primary);
|
|
275
|
+
border-top: 3px solid transparent;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.item__list > li:hover {
|
|
279
|
+
/*public*/
|
|
280
|
+
background-color: var(--ez-search--background-medium);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.preselected {
|
|
284
|
+
/*public*/
|
|
285
|
+
background-color: var(--background--medium);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.btn {
|
|
289
|
+
outline: none;
|
|
290
|
+
border: none;
|
|
291
|
+
background: none;
|
|
292
|
+
cursor: pointer;
|
|
293
|
+
|
|
294
|
+
/*public*/
|
|
295
|
+
color: var(--ez-search__btn--color);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.btn:disabled {
|
|
299
|
+
cursor: unset;
|
|
300
|
+
|
|
301
|
+
/*public*/
|
|
302
|
+
color: var(--ez-search__btn-disabled--color);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.btn:disabled:hover {
|
|
306
|
+
cursor: unset;
|
|
307
|
+
|
|
308
|
+
/*public*/
|
|
309
|
+
color: var(--ez-search__btn-disabled--color);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.btn:hover {
|
|
313
|
+
/*public*/
|
|
314
|
+
color: var(--ez-search__btn-hover--color);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.btn__close {
|
|
318
|
+
visibility: hidden;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
ez-text-input:hover .btn__close, ez-text-input:focus .btn__close {
|
|
322
|
+
visibility: visible;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
@-webkit-keyframes spin {
|
|
327
|
+
0% { -webkit-transform: rotate(0deg); }
|
|
328
|
+
100% { -webkit-transform: rotate(360deg); }
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
@keyframes spin {
|
|
332
|
+
0% { transform: rotate(0deg); }
|
|
333
|
+
100% { transform: rotate(360deg); }
|
|
3
334
|
}
|